diff --git a/.github/release-please.yml b/.github/release-please.yml index 619db3b3c9ee..1b655307ebbb 100644 --- a/.github/release-please.yml +++ b/.github/release-please.yml @@ -23,3 +23,8 @@ branches: manifest: true handleGHRelease: true branch: 1.53.x + - primaryBranch: main + releaseType: java-backport + manifest: true + handleGHRelease: true + branch: 1.61.x diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml index 3cebf5835f09..ce2386948be8 100644 --- a/.github/sync-repo-settings.yaml +++ b/.github/sync-repo-settings.yaml @@ -97,6 +97,24 @@ branchProtectionRules: - header-check - library_generation - unmanaged_dependency_check + - pattern: 1.61.x + isAdminEnforced: true + requiredApprovingReviewCount: 1 + requiresCodeOwnerReviews: true + requiresStrictStatusChecks: false + requiredStatusCheckContexts: + - units (8) + - units (11) + - units (17) + - cla/google + - lint + - 'Kokoro - Test: Integration' + - 'Kokoro - Test: GraalVM Native Image A' + - 'Kokoro - Test: GraalVM Native Image B' + - 'Kokoro - Test: GraalVM Native Image C' + - header-check + - library_generation + - unmanaged_dependency_check permissionRules: - team: yoshi-admins permission: admin diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b688fe666f0d..a2561f9ec3da 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -127,7 +127,7 @@ jobs: gcr.io/cloud-devrel-public-resources/java-library-generation:"${library_generation_image_tag}" \ /src/library_generation/cli/entry_point.py validate-generation-config env: - library_generation_image_tag: 2.60.0 + library_generation_image_tag: 2.60.1 workspace_name: /workspace # TODO: Uncomment the needed Github Actions diff --git a/.github/workflows/generated_files_sync.yaml b/.github/workflows/generated_files_sync.yaml index fcdaac655d97..d3f09ab54642 100644 --- a/.github/workflows/generated_files_sync.yaml +++ b/.github/workflows/generated_files_sync.yaml @@ -20,7 +20,7 @@ on: pull_request: name: generation diff env: - library_generation_image_tag: 2.60.0 + library_generation_image_tag: 2.60.1 jobs: root-pom: # root pom.xml does not have diff from generated one diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml index c01f3faec3af..f611b78e296d 100644 --- a/.github/workflows/hermetic_library_generation.yaml +++ b/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.59.0 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.60.1 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml index 141c210f2720..4613924c6947 100644 --- a/.github/workflows/unmanaged_dependency_check.yaml +++ b/.github/workflows/unmanaged_dependency_check.yaml @@ -14,6 +14,6 @@ jobs: shell: bash run: mvn install -B -ntp -T 1C -DskipTests -Dclirr.skip -Dcheckstyle.skip -Denforcer.skip - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.50.0 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.50.1 with: bom-path: gapic-libraries-bom/pom.xml diff --git a/.kokoro/nightly/graalvm-native-a.cfg b/.kokoro/nightly/graalvm-native-a.cfg index f035f7111a7e..e11c25b71766 100644 --- a/.kokoro/nightly/graalvm-native-a.cfg +++ b/.kokoro/nightly/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.50.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.50.1" } env_vars: { diff --git a/.kokoro/nightly/graalvm-native-b.cfg b/.kokoro/nightly/graalvm-native-b.cfg index 0ffa98965215..d884b9236e57 100644 --- a/.kokoro/nightly/graalvm-native-b.cfg +++ b/.kokoro/nightly/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.50.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.50.1" } env_vars: { diff --git a/.kokoro/nightly/graalvm-native-c.cfg b/.kokoro/nightly/graalvm-native-c.cfg index 53958be3397a..9984126c05eb 100644 --- a/.kokoro/nightly/graalvm-native-c.cfg +++ b/.kokoro/nightly/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.50.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.50.1" } env_vars: { diff --git a/.kokoro/nightly/graalvm-sub-jobs/native-a/common.cfg b/.kokoro/nightly/graalvm-sub-jobs/native-a/common.cfg index 8559d2473364..67e1863457a0 100644 --- a/.kokoro/nightly/graalvm-sub-jobs/native-a/common.cfg +++ b/.kokoro/nightly/graalvm-sub-jobs/native-a/common.cfg @@ -29,7 +29,7 @@ env_vars: { env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.50.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.50.1" } # TODO: remove this after we've migrated all tests and scripts diff --git a/.kokoro/nightly/graalvm-sub-jobs/native-b/common.cfg b/.kokoro/nightly/graalvm-sub-jobs/native-b/common.cfg index 08e603ac30c8..d99e6bec5708 100644 --- a/.kokoro/nightly/graalvm-sub-jobs/native-b/common.cfg +++ b/.kokoro/nightly/graalvm-sub-jobs/native-b/common.cfg @@ -24,7 +24,7 @@ env_vars: { env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.50.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.50.1" } env_vars: { diff --git a/.kokoro/nightly/graalvm-sub-jobs/native-c/common.cfg b/.kokoro/nightly/graalvm-sub-jobs/native-c/common.cfg index d2e9c94c74ef..b054dde5a052 100644 --- a/.kokoro/nightly/graalvm-sub-jobs/native-c/common.cfg +++ b/.kokoro/nightly/graalvm-sub-jobs/native-c/common.cfg @@ -24,7 +24,7 @@ env_vars: { env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.50.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.50.1" } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-a-presubmit.cfg b/.kokoro/presubmit/graalvm-native-a-presubmit.cfg index 99b24ca86023..3d0cce81bc6d 100644 --- a/.kokoro/presubmit/graalvm-native-a-presubmit.cfg +++ b/.kokoro/presubmit/graalvm-native-a-presubmit.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.50.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.50.1" } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-b-presubmit.cfg b/.kokoro/presubmit/graalvm-native-b-presubmit.cfg index 186fe1b070b5..602a9379ce67 100644 --- a/.kokoro/presubmit/graalvm-native-b-presubmit.cfg +++ b/.kokoro/presubmit/graalvm-native-b-presubmit.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.50.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.50.1" } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-c-presubmit.cfg b/.kokoro/presubmit/graalvm-native-c-presubmit.cfg index be830baa43e7..8f979e413769 100644 --- a/.kokoro/presubmit/graalvm-native-c-presubmit.cfg +++ b/.kokoro/presubmit/graalvm-native-c-presubmit.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.50.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.50.1" } env_vars: { diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 854a53744612..58be4986bb6e 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.61.0" + ".": "1.62.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index c1f7f6b7e70e..eb0827eac9b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,55 @@ # Changelog +## [1.62.0](https://github.com/googleapis/google-cloud-java/compare/v1.61.0...v1.62.0) (2025-07-11) + + +### Features + +* [admanager] Added support for AdBreak resource ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) +* [aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) +* [aiplatform] add computer use support to tools ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) +* [aiplatform] add computer use support to tools ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) +* [aiplatform] add flexstart option to v1beta1 ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) +* [aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) +* [aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) +* [aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) +* [aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) +* [aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) +* [bigquerydatapolicy] new module for bigquerydatapolicy v2beta1 ([#11674](https://github.com/googleapis/google-cloud-java/issues/11674)) ([5bf0054](https://github.com/googleapis/google-cloud-java/commit/5bf0054e7bba3187bcd09b08b06d639023817bcb)) +* [compute] Update Compute Engine v1 API to revision 20250626 ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) +* [dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest` ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) +* [dataproc] Add `cluster_tier` to support creating premium clusters ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) +* [dialogflow-cx] Add support for generator settings on fulfillment ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) +* [dialogflow] add a sipTrunk API ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) +* [infra-manager] added resource change and drift details for the preview ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) +* [licensemanager] new module for licensemanager ([#11673](https://github.com/googleapis/google-cloud-java/issues/11673)) ([c192cdc](https://github.com/googleapis/google-cloud-java/commit/c192cdc1843f34caad0cbe05c1216bf892a5c0f7)) +* [managedkafka] update libraries and clients for Managed Kafka ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) +* [maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) +* [merchantapi] new module for merchant-reports-v1alpha ([#11672](https://github.com/googleapis/google-cloud-java/issues/11672)) ([e611ec2](https://github.com/googleapis/google-cloud-java/commit/e611ec22adb990a3ca6b2785b183618231309b92)) +* [modelarmor] add client libraries for v1beta API ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) +* [modelarmor] Add MultiLingual Support for Sanitize APIs ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) +* [networkservices] Add isolation support to prevent cross-region overflow by adding a new field "isolation_config" to message "ServiceLbPolicy" ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) +* [security-private-ca] add RDN sequence ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) +* [securitycenter] Add AffectedResources proto ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) +* [shopping-merchant-accounts] Add CheckoutSettings service ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) +* [shopping-merchant-product-studio] Initial Image API publication ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) +* next release from main branch is 1.62.0 ([#11666](https://github.com/googleapis/google-cloud-java/issues/11666)) ([6173dc1](https://github.com/googleapis/google-cloud-java/commit/6173dc1da7078eb9e66fdadc209db6fe01bdbc26)) + + +### Bug Fixes + +* **deps:** update the Java code generator (gapic-generator-java) to 2.60.1 ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + +### Documentation + +* [maintenance] Add missing comments for messages ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) +* [maps-places] clarify behavior of primary types and weekday text ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) +* [network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) +* [shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) +* [shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) + ## [1.61.0](https://github.com/googleapis/google-cloud-java/compare/v1.60.0...v1.61.0) (2025-06-25) diff --git a/changelog.json b/changelog.json index 918ad1a864db..f386292309c0 100644 --- a/changelog.json +++ b/changelog.json @@ -1,6 +1,41787 @@ { "repository": "googleapis/google-cloud-java", "entries": [ + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-workstations", + "id": "3e80cf2a-2f21-4169-8dbe-1ea45a3725ec", + "createTime": "2025-07-11T22:14:01.769Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-workspaceevents", + "id": "27c00998-8abd-461e-bc70-83daf0ba37b3", + "createTime": "2025-07-11T22:14:01.133Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-workflows", + "id": "ae07a559-17ba-4fe0-9cd8-2eb82dbb287c", + "createTime": "2025-07-11T22:14:00.619Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-workflow-executions", + "id": "ba6d2607-77a2-4cbe-81f4-61b2e605a0a7", + "createTime": "2025-07-11T22:13:59.894Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-websecurityscanner", + "id": "c29fb4f6-36d4-4d6c-8043-a07268acd30e", + "createTime": "2025-07-11T22:13:59.362Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-webrisk", + "id": "ce22fb68-e445-4062-ab9b-4725d148b7c6", + "createTime": "2025-07-11T22:13:58.685Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-vpcaccess", + "id": "636b860a-bade-4b78-a96a-dc0b54059726", + "createTime": "2025-07-11T22:13:58.035Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-vmwareengine", + "id": "15575c92-3341-454a-b9af-89b9c95d0308", + "createTime": "2025-07-11T22:13:57.546Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-vmmigration", + "id": "25f1cdea-9f18-494d-80b7-53de798dd2ed", + "createTime": "2025-07-11T22:13:56.842Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-visionai", + "id": "a051e977-f3ea-4bfc-9e15-44cb25c67b2d", + "createTime": "2025-07-11T22:13:56.312Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-vision", + "id": "97cf9c24-1af6-44a0-a51e-25af98b66c6a", + "createTime": "2025-07-11T22:13:55.583Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-video-transcoder", + "id": "3f30cd1e-c442-469e-b482-79935857516c", + "createTime": "2025-07-11T22:13:54.934Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-video-stitcher", + "id": "21383816-1107-4bbf-a748-e685bee9fd24", + "createTime": "2025-07-11T22:13:54.451Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-live-stream", + "id": "b707a013-3eeb-4329-8185-e2cef272af4a", + "createTime": "2025-07-11T22:13:53.735Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-video-intelligence", + "id": "d23f6232-1c1d-4620-a8b2-ff11577ff222", + "createTime": "2025-07-11T22:13:53.183Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-valkey", + "id": "66d9b361-3350-433a-80fb-5b5b22550809", + "createTime": "2025-07-11T22:13:52.528Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-translate", + "id": "5036c9e4-7ade-46c0-b234-8055cebae674", + "createTime": "2025-07-11T22:13:51.867Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-trace", + "id": "c797a7b3-3e3c-4fde-a1da-1d6658dfddf8", + "createTime": "2025-07-11T22:13:51.409Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-tpu", + "id": "13f65add-8c48-4459-b89b-99f151a9d48b", + "createTime": "2025-07-11T22:13:50.742Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-texttospeech", + "id": "7276322d-9d77-49e4-b348-b7e8d4dda5fb", + "createTime": "2025-07-11T22:13:50.206Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-telcoautomation", + "id": "2567c73d-e3b7-488f-bc63-55bccdc7b2c3", + "createTime": "2025-07-11T22:13:49.543Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-tasks", + "id": "2643063e-1677-435b-9df8-85d6de83bc29", + "createTime": "2025-07-11T22:13:48.898Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-talent", + "id": "4e3a756d-dc9d-4435-8a41-6480e9fad3dd", + "createTime": "2025-07-11T22:13:48.463Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-storageinsights", + "id": "26ecce1c-aaeb-463c-87af-91a24016c521", + "createTime": "2025-07-11T22:13:47.786Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-storagebatchoperations", + "id": "78b1d35e-6c30-4b6f-a495-93d9e73c0002", + "createTime": "2025-07-11T22:13:47.259Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-storage-transfer", + "id": "f88af03c-ea73-47b3-9377-4c66670fa5c4", + "createTime": "2025-07-11T22:13:46.584Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-speech", + "id": "4212ab79-6ab2-485a-97cc-635bde7e489d", + "createTime": "2025-07-11T22:13:45.961Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-spanneradapter", + "id": "38aae668-1107-409b-98f2-7b25920acce5", + "createTime": "2025-07-11T22:13:45.501Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-merchant-reviews", + "id": "ba4a6bf7-44c8-4cf1-8522-7d51fd34b48b", + "createTime": "2025-07-11T22:13:44.861Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-merchant-quota", + "id": "c206a5c5-1341-46f9-a81f-d75ff7115e19", + "createTime": "2025-07-11T22:13:44.344Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-merchant-promotions", + "id": "b086e970-e01b-4015-841f-fc8f7ac27b0d", + "createTime": "2025-07-11T22:13:43.674Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-merchant-products", + "id": "f292a22d-089c-4ac1-b1a4-18d24ff65b39", + "createTime": "2025-07-11T22:13:43.013Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-merchant-productstudio", + "id": "e154a275-91da-4866-be48-deb141263ee6", + "createTime": "2025-07-11T22:13:42.566Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-merchant-lfp", + "id": "d9035798-2236-4aa3-b3f4-ecaf3177390f", + "createTime": "2025-07-11T22:13:41.927Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-merchant-inventories", + "id": "d67b3c04-2b79-45ac-a537-46d71db4072d", + "createTime": "2025-07-11T22:13:41.387Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-merchant-datasources", + "id": "da060c14-bd2f-45c6-9b4b-5ca79e685be2", + "createTime": "2025-07-11T22:13:40.782Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-merchant-conversions", + "id": "beb33192-78a8-4588-956d-8c109e8d64f9", + "createTime": "2025-07-11T22:13:40.133Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-merchant-accounts", + "id": "997d02cd-d112-48fa-a89b-a6d74e47a234", + "createTime": "2025-07-11T22:13:39.620Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-css", + "id": "510b3b1d-86ef-4b43-87e7-b5c92e05cac7", + "createTime": "2025-07-11T22:13:38.968Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-shell", + "id": "14cbe28f-0e53-48ab-8188-44fbdc6b8381", + "createTime": "2025-07-11T22:13:38.449Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-servicehealth", + "id": "d521eeb2-b7de-4ecb-8c4f-c3fad1da474c", + "createTime": "2025-07-11T22:13:37.685Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-servicedirectory", + "id": "f678e144-a03e-45ba-b93d-98e30196be63", + "createTime": "2025-07-11T22:13:37.052Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-service-usage", + "id": "50f00288-732b-4881-a877-998d57266ef8", + "createTime": "2025-07-11T22:13:36.501Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-service-management", + "id": "b2ec0db3-b6bd-4213-8b26-5e96b50523fb", + "createTime": "2025-07-11T22:13:35.792Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-service-control", + "id": "2bec0392-55ce-4d4d-8119-8654fe94cd9c", + "createTime": "2025-07-11T22:13:35.183Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-securityposture", + "id": "1f0b866f-a045-4949-9cca-c1ab3a7b04ef", + "createTime": "2025-07-11T22:13:34.668Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-securitycentermanagement", + "id": "057c5614-5eb6-4c99-8916-618b8afd14a1", + "createTime": "2025-07-11T22:13:33.982Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-securitycenter", + "id": "a4afb4f8-a138-4334-b731-045647a27f6d", + "createTime": "2025-07-11T22:13:33.356Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-securitycenter-settings", + "id": "0cd4cb0f-98d9-40da-84f4-ff021f017881", + "createTime": "2025-07-11T22:13:32.845Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-security-private-ca", + "id": "b6db0f30-4d2c-4a75-aefa-859e604b1edd", + "createTime": "2025-07-11T22:13:32.136Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-securesourcemanager", + "id": "f711beb9-9b24-4805-9fc4-15079e7847f6", + "createTime": "2025-07-11T22:13:31.532Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-secretmanager", + "id": "f521c5ef-51b4-496e-ac45-c113b669b7aa", + "createTime": "2025-07-11T22:13:31.040Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-scheduler", + "id": "3d9a2629-6aa5-4284-9d36-87ffc75ad173", + "createTime": "2025-07-11T22:13:30.252Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-run", + "id": "e6c334aa-a4c8-4cbc-a398-e3e93b924336", + "createTime": "2025-07-11T22:13:29.685Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-retail", + "id": "3ab357a8-7218-4d97-aaed-ee19c58b32e5", + "createTime": "2025-07-11T22:13:29.246Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-resourcemanager", + "id": "fe46debb-d821-42ff-90ed-2e0c694abb0e", + "createTime": "2025-07-11T22:13:28.450Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-redis", + "id": "2a439ca9-7c03-4116-b5f9-1282bb4cdf8f", + "createTime": "2025-07-11T22:13:27.920Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-redis-cluster", + "id": "3b63e5bc-d876-4556-a062-d057bfde9fa6", + "createTime": "2025-07-11T22:13:27.274Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-recommender", + "id": "08511aaa-04fa-420d-81c5-e29b4ad68dec", + "createTime": "2025-07-11T22:13:26.634Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-recommendations-ai", + "id": "eec8a879-c761-40f8-8e83-b3c6f6c0a7ba", + "createTime": "2025-07-11T22:13:26.126Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-recaptchaenterprise", + "id": "fbee9cdd-a46b-45e7-98a9-5d7fcc1f6b94", + "createTime": "2025-07-11T22:13:25.386Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-rapidmigrationassessment", + "id": "5c86c899-1180-4bb2-b017-004bb947d2b5", + "createTime": "2025-07-11T22:13:24.780Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-publicca", + "id": "c4da1f92-cc6a-4eaa-ae3f-66665d078a3e", + "createTime": "2025-07-11T22:13:24.256Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-profiler", + "id": "db581bb6-a3e4-4f7d-8e6e-c0e7d2996573", + "createTime": "2025-07-11T22:13:23.417Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-privilegedaccessmanager", + "id": "34a70b26-cf11-46e8-b6b4-ca476b8cd530", + "createTime": "2025-07-11T22:13:22.890Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-private-catalog", + "id": "ac54ac3a-b732-4557-8943-8f481856e1f7", + "createTime": "2025-07-11T22:13:22.455Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-policysimulator", + "id": "ec9e9c07-a9e9-411a-adf5-bc96e7400616", + "createTime": "2025-07-11T22:13:21.733Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-policy-troubleshooter", + "id": "7c2388a8-d39c-480e-a67d-2131ca2097dc", + "createTime": "2025-07-11T22:13:21.198Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-phishingprotection", + "id": "6e9c9b1d-b5c6-49d3-86fa-7bcedb3cc89c", + "createTime": "2025-07-11T22:13:20.434Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-parametermanager", + "id": "282285d6-9e98-4369-9964-33c61723bccd", + "createTime": "2025-07-11T22:13:19.834Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-parallelstore", + "id": "4baf9083-aaa1-4adf-a142-20c832c9a095", + "createTime": "2025-07-11T22:13:19.387Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-os-login", + "id": "383df1bc-f572-4483-91e0-79d05ad1599d", + "createTime": "2025-07-11T22:13:18.642Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-os-config", + "id": "48b62968-dea8-413d-bf4b-7cc1e367a2f0", + "createTime": "2025-07-11T22:13:18.127Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-orgpolicy", + "id": "d4c3621d-4db5-4679-96ad-eb01d4b3c4e7", + "createTime": "2025-07-11T22:13:17.438Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-orchestration-airflow", + "id": "550f6fd4-305b-49f0-9b4b-32e4ac3c274c", + "createTime": "2025-07-11T22:13:16.789Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-oracledatabase", + "id": "eaf97c67-5975-4f9d-a762-d23032f2722f", + "createTime": "2025-07-11T22:13:16.363Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-optimization", + "id": "bdb29152-3b42-4244-9972-eb51c47e34ab", + "createTime": "2025-07-11T22:13:15.479Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-notebooks", + "id": "262bd5e6-b556-43b0-a7df-eba4e9cb386f", + "createTime": "2025-07-11T22:13:14.973Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-networkservices", + "id": "4a69668c-57ba-48e8-a62d-e558f07962f2", + "createTime": "2025-07-11T22:13:14.282Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-networkconnectivity", + "id": "bb97f348-affc-4f88-9886-2fc9b96add39", + "createTime": "2025-07-11T22:13:13.659Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-network-security", + "id": "d4b7a29e-d748-4fa7-8f23-acbe8cd9a174", + "createTime": "2025-07-11T22:13:13.164Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-network-management", + "id": "23e61632-6700-4563-bc79-53717c027cc8", + "createTime": "2025-07-11T22:13:12.349Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-netapp", + "id": "0ab3d2ce-ac63-4c9a-b0e6-fddd1e34b475", + "createTime": "2025-07-11T22:13:11.786Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-monitoring", + "id": "03ee4c65-c2f4-4327-ad2f-37081cebb947", + "createTime": "2025-07-11T22:13:11.294Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-monitoring-metricsscope", + "id": "4ad1e86b-290c-4857-9b4e-6ca3e0ac8406", + "createTime": "2025-07-11T22:13:10.664Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-monitoring-dashboard", + "id": "cf357073-b877-42c6-9fbe-844becde74f7", + "createTime": "2025-07-11T22:13:10.059Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-modelarmor", + "id": "dff34b36-0c4c-4a67-84f0-4d2da12ee731", + "createTime": "2025-07-11T22:13:09.638Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-migrationcenter", + "id": "a77495e9-2661-45fa-8660-5d59d08e726b", + "createTime": "2025-07-11T22:13:08.894Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-memcache", + "id": "949ca8b7-7a0f-4a42-8617-65f7a3f92ffe", + "createTime": "2025-07-11T22:13:08.396Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-meet", + "id": "c4afde18-a501-4a73-b6ac-77091016ff03", + "createTime": "2025-07-11T22:13:07.737Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-mediatranslation", + "id": "5da87756-939f-4564-82ed-b40c507e05ee", + "createTime": "2025-07-11T22:13:07.147Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.ads-marketingplatform:admin", + "id": "a3cc18ae-90be-4d37-975f-f9bda9c3301f", + "createTime": "2025-07-11T22:13:06.713Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.maps:google-maps-solar", + "id": "91b1d96e-a900-48b1-a147-55107947d0a2", + "createTime": "2025-07-11T22:13:05.940Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.maps:google-maps-routing", + "id": "68d74d61-d637-45be-a48a-11ac90fed134", + "createTime": "2025-07-11T22:13:05.443Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.maps:google-maps-routeoptimization", + "id": "ab58f212-81ea-4e72-875e-6ff268a7f67e", + "createTime": "2025-07-11T22:13:04.683Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.maps:google-maps-places", + "id": "5c4fd5b7-1ca8-42b8-a7d3-23af778cc902", + "createTime": "2025-07-11T22:13:04.074Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.maps:google-maps-mapsplatformdatasets", + "id": "cf6fbd11-c85a-4e83-873d-37d9e1de6357", + "createTime": "2025-07-11T22:13:03.570Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.maps:google-maps-fleetengine", + "id": "0634ff95-fd82-46a8-bef4-41c7bbf92092", + "createTime": "2025-07-11T22:13:02.825Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.maps:google-maps-fleetengine-delivery", + "id": "cd667a38-f101-42be-af4a-3aecc8746368", + "createTime": "2025-07-11T22:13:02.132Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.maps:google-maps-area-insights", + "id": "e6766627-e62d-40bb-8752-a175c7210e7e", + "createTime": "2025-07-11T22:13:01.622Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.maps:google-maps-addressvalidation", + "id": "892357da-24a9-4572-820a-865bcf9011ec", + "createTime": "2025-07-11T22:13:00.847Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-managedkafka", + "id": "6094df89-fc89-4304-a1db-785a0cf28b63", + "createTime": "2025-07-11T22:13:00.302Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-managed-identities", + "id": "1a5fdebd-ef2c-4146-be6d-e8df534ac762", + "createTime": "2025-07-11T22:12:59.870Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-maintenance", + "id": "326745a3-a36a-40ac-a94e-2fcd59192f1e", + "createTime": "2025-07-11T22:12:59.197Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-lustre", + "id": "ccd9fd20-92b3-4a40-86c4-b239ade8dae7", + "createTime": "2025-07-11T22:12:58.697Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-life-sciences", + "id": "c2a58250-74cd-4f88-a2f1-5b3076de8442", + "createTime": "2025-07-11T22:12:57.987Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-language", + "id": "d96328bb-dba5-475b-bcc0-7632d973acb7", + "createTime": "2025-07-11T22:12:57.384Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-kmsinventory", + "id": "b859c438-f0f1-46d8-bb2c-fdee8265e6f4", + "createTime": "2025-07-11T22:12:56.883Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-kms", + "id": "ff1bb571-98b9-44d7-9537-3a15f8d384a6", + "createTime": "2025-07-11T22:12:56.142Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-merchant-order-tracking", + "id": "8bb5074c-9adc-4d6e-8e3e-2a839d3e6a46", + "createTime": "2025-07-11T22:12:55.504Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-merchant-issue-resolution", + "id": "4771347b-caac-4bed-b18a-0cfea3ff36c7", + "createTime": "2025-07-11T22:12:55.000Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-iot", + "id": "6bb13b84-5336-4897-abf2-44a4c07c3a2e", + "createTime": "2025-07-11T22:12:54.254Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-infra-manager", + "id": "03497d80-7351-4cc5-98c6-203f2ab43d1e", + "createTime": "2025-07-11T22:12:53.677Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-ids", + "id": "3e496a2a-3932-44a3-94a8-5fee18587f48", + "createTime": "2025-07-11T22:12:53.239Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-iap", + "id": "496bde43-3f45-4544-8193-ff796cc22514", + "createTime": "2025-07-11T22:12:52.502Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-iamcredentials", + "id": "40469683-656f-46ee-8b84-d061561fdb5f", + "createTime": "2025-07-11T22:12:51.988Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-iam-policy", + "id": "4b0bd0d4-872e-49d1-a210-0e45d7875017", + "createTime": "2025-07-11T22:12:51.338Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-iam-admin", + "id": "ed4bc3d3-6503-4401-964c-1c202f3e411b", + "createTime": "2025-07-11T22:12:50.670Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-gsuite-addons", + "id": "1e6a4a75-e192-4cb5-ac7a-d5e91c1bb32d", + "createTime": "2025-07-11T22:12:50.151Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "io.grafeas:grafeas", + "id": "6484ab8d-414b-4dc4-b727-1a8bf1fcbdda", + "createTime": "2025-07-11T22:12:49.323Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-gkehub", + "id": "2256ad77-55ae-4dca-8dd5-195bc0c02567", + "createTime": "2025-07-11T22:12:48.763Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-gke-multi-cloud", + "id": "484a3cb4-f772-4ab9-bbe4-07e41399c9ac", + "createTime": "2025-07-11T22:12:48.355Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-gke-connect-gateway", + "id": "36f6429b-03be-458c-b39d-eec22d8d4d17", + "createTime": "2025-07-11T22:12:47.661Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-gke-backup", + "id": "44f0520e-25f4-4284-a4ef-8d4889fc4ca8", + "createTime": "2025-07-11T22:12:47.144Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-gdchardwaremanagement", + "id": "901058d4-737c-4c72-a452-2f1904ea847a", + "createTime": "2025-07-11T22:12:46.332Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-functions", + "id": "70158d4b-23c4-4c06-82d0-4ef7a6afe271", + "createTime": "2025-07-11T22:12:45.762Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-financialservices", + "id": "f0497673-1567-4375-91bf-25c5eb663a5e", + "createTime": "2025-07-11T22:12:45.326Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-filestore", + "id": "3ac94fc5-1152-48a1-823f-32389b62da03", + "createTime": "2025-07-11T22:12:44.632Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-eventarc", + "id": "9943bfcd-fd85-42c1-a744-f55a6a2e308a", + "createTime": "2025-07-11T22:12:44.146Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-eventarc-publishing", + "id": "caad36d1-36b8-4d66-a651-6b0764f95a3b", + "createTime": "2025-07-11T22:12:43.398Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-essential-contacts", + "id": "b84552ac-2669-459b-8d87-826314741dea", + "createTime": "2025-07-11T22:12:42.773Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-errorreporting", + "id": "6bb2ea83-641f-49f9-8d86-b9ebaecfd11f", + "createTime": "2025-07-11T22:12:42.268Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-enterpriseknowledgegraph", + "id": "bd0fc6b6-96cb-44f6-acb9-2f71f6df9657", + "createTime": "2025-07-11T22:12:41.445Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-edgenetwork", + "id": "46930e3e-6c4f-4624-b46d-901f064be5ef", + "createTime": "2025-07-11T22:12:40.850Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-domains", + "id": "73627052-81c3-438f-b61f-3fb0b29f4b0a", + "createTime": "2025-07-11T22:12:40.344Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-document-ai", + "id": "308efe99-51ac-4900-92c5-bb06e8e67f30", + "createTime": "2025-07-11T22:12:39.536Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-dms", + "id": "4bf6fdbd-4da9-4bec-a255-2f3cbabd3638", + "createTime": "2025-07-11T22:12:38.981Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-dlp", + "id": "9779c5cb-11c4-4445-b605-18b091a9fafd", + "createTime": "2025-07-11T22:12:38.555Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-distributedcloudedge", + "id": "c9cf1887-8440-4349-b25d-7cb2cb3b6f5b", + "createTime": "2025-07-11T22:12:37.795Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-discoveryengine", + "id": "48c8fab5-311b-4382-bbba-2a05d5c94723", + "createTime": "2025-07-11T22:12:37.305Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-dialogflow", + "id": "02a6d073-cc78-455e-818c-c8609b86939a", + "createTime": "2025-07-11T22:12:36.675Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-dialogflow-cx", + "id": "d6dc56d4-dab0-462c-8c70-d52593b1e24c", + "createTime": "2025-07-11T22:12:36.079Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-devicestreaming", + "id": "83b5c7f8-f6bb-4c96-b3cf-690899c5deac", + "createTime": "2025-07-11T22:12:35.569Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-developerconnect", + "id": "896b79e6-f05d-437d-ad8f-29ec0911d7ef", + "createTime": "2025-07-11T22:12:34.732Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-deploy", + "id": "88e05f6b-cede-453d-a260-59bdc409bcc5", + "createTime": "2025-07-11T22:12:34.195Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-datastream", + "id": "136b75c6-7a89-4bf5-92eb-033eff615ad9", + "createTime": "2025-07-11T22:12:33.755Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-dataproc", + "id": "5a4c624e-9b42-435e-9744-13753df2a818", + "createTime": "2025-07-11T22:12:33.034Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-dataproc-metastore", + "id": "9edc398a-4ff9-45cf-b567-7dcfaef53343", + "createTime": "2025-07-11T22:12:32.508Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-dataplex", + "id": "2f3845d9-abf0-4210-bd40-2dcfc5c5acc0", + "createTime": "2025-07-11T22:12:31.776Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-datalineage", + "id": "9b511c45-277a-44ce-840c-169506bd126b", + "createTime": "2025-07-11T22:12:31.126Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-datalabeling", + "id": "032778c2-0692-4bb8-9b75-00fbefd7166e", + "createTime": "2025-07-11T22:12:30.585Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-dataform", + "id": "22d7505e-671f-4347-adb4-1e3a18f8c426", + "createTime": "2025-07-11T22:12:29.825Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-dataflow", + "id": "8d242cd6-71a4-4457-bff9-38cbe18de52f", + "createTime": "2025-07-11T22:12:29.179Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-datacatalog", + "id": "2939eaa3-4483-4d17-9c06-3bfa30da9fff", + "createTime": "2025-07-11T22:12:28.674Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-data-fusion", + "id": "3b45ad67-09b8-45dc-b981-8a7daa73a338", + "createTime": "2025-07-11T22:12:27.944Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-contentwarehouse", + "id": "f8821a3c-4782-4827-987b-ee4c3eda93ac", + "createTime": "2025-07-11T22:12:27.433Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-containeranalysis", + "id": "3f86765c-8a7f-4c70-b21e-90b3eb39957a", + "createTime": "2025-07-11T22:12:26.975Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-container", + "id": "8fcfcac6-8ce4-4949-ae8d-d827949bfef3", + "createTime": "2025-07-11T22:12:26.289Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-contact-center-insights", + "id": "74ea2506-2e98-48db-a38e-ab0d2a9ad470", + "createTime": "2025-07-11T22:12:25.804Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-connectgateway", + "id": "9b8c7bbb-1114-4c9c-997d-4ffba4a98af9", + "createTime": "2025-07-11T22:12:25.132Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-configdelivery", + "id": "f5e07321-3408-428c-ac79-16f042cce177", + "createTime": "2025-07-11T22:12:24.438Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-confidentialcomputing", + "id": "76dbbb0a-7c57-4ec8-87e6-6f9afac39ceb", + "createTime": "2025-07-11T22:12:23.946Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-compute", + "id": "354330ec-af33-4881-8f72-a4e52a6b0e7c", + "createTime": "2025-07-11T22:12:23.200Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-cloudsupport", + "id": "eb9e4259-5181-4ab6-98f4-d7ec61544bfc", + "createTime": "2025-07-11T22:12:22.674Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-cloudquotas", + "id": "4839d909-3cf7-433c-850e-fc6d14924dcc", + "createTime": "2025-07-11T22:12:22.231Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-cloudcontrolspartner", + "id": "9652cfed-0273-46f2-8900-f30550124b3f", + "createTime": "2025-07-11T22:12:21.479Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-cloudcommerceconsumerprocurement", + "id": "b59a8008-a28b-4131-b1b6-6e6bab2960df", + "createTime": "2025-07-11T22:12:20.979Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-build", + "id": "f3f297bc-da89-45a2-8a13-5f54ff00e078", + "createTime": "2025-07-11T22:12:20.324Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-chronicle", + "id": "36067093-f2ab-4c74-bee4-01aad942616b", + "createTime": "2025-07-11T22:12:19.633Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-chat", + "id": "f19973d9-b0a7-440e-9bce-f0fe4256df53", + "createTime": "2025-07-11T22:12:19.140Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-channel", + "id": "d5d2ea15-53ed-4300-be9c-cb2882cc4861", + "createTime": "2025-07-11T22:12:18.376Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-certificate-manager", + "id": "05ed26f7-a5b9-44bd-a560-c8c442f6220f", + "createTime": "2025-07-11T22:12:17.804Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-binary-authorization", + "id": "b3352b1c-28c3-405e-bd3a-c3ec824d13b5", + "createTime": "2025-07-11T22:12:17.333Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-billingbudgets", + "id": "95454f60-72c0-4f70-aa72-5e41c27b3911", + "createTime": "2025-07-11T22:12:16.637Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-billing", + "id": "a9f642d2-fafc-4b5f-8be0-013241447a44", + "createTime": "2025-07-11T22:12:16.034Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-bigqueryreservation", + "id": "0cd1ff3e-b2d8-4c8d-9b0f-291ebe460df1", + "createTime": "2025-07-11T22:12:15.529Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-bigquerymigration", + "id": "1d06e8f7-6c12-40d0-b8aa-9f093f4b8fc8", + "createTime": "2025-07-11T22:12:14.825Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-bigquerydatatransfer", + "id": "469417bd-2413-4b6e-ace2-421ac7aa4540", + "createTime": "2025-07-11T22:12:14.263Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-bigqueryconnection", + "id": "0aad3daf-a750-42a8-ac52-209aba22afe9", + "createTime": "2025-07-11T22:12:13.836Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-bigquery-data-exchange", + "id": "d81f5454-7106-406d-93ab-e3ac61e7ff0e", + "createTime": "2025-07-11T22:12:13.074Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-biglake", + "id": "94572a33-46e9-4d33-b66b-6e2a50805fc5", + "createTime": "2025-07-11T22:12:12.596Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-beyondcorp-clientgateways", + "id": "c19223aa-f05a-49b4-b3ec-cb264540fd34", + "createTime": "2025-07-11T22:12:11.893Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-beyondcorp-clientconnectorservices", + "id": "40d1af81-f085-4b5f-b982-0a607844531c", + "createTime": "2025-07-11T22:12:11.262Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-beyondcorp-appgateways", + "id": "af5e46f1-fb81-4437-9eb5-c1231249cd79", + "createTime": "2025-07-11T22:12:10.748Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-beyondcorp-appconnectors", + "id": "2f922750-14b4-4dd1-b2e8-38be641a2eee", + "createTime": "2025-07-11T22:12:09.985Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-beyondcorp-appconnections", + "id": "3d628ec5-0eb0-4c40-906c-db893e442a11", + "createTime": "2025-07-11T22:12:09.358Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-batch", + "id": "fa87fcb7-7f98-48a8-a68c-29b54e90d321", + "createTime": "2025-07-11T22:12:08.862Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-bare-metal-solution", + "id": "b4c8c890-1a0e-4d5e-8d3f-f063e8ce9ccc", + "createTime": "2025-07-11T22:12:08.142Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-backupdr", + "id": "4fd22d6e-3ad8-4ced-a44f-7eea8c61201e", + "createTime": "2025-07-11T22:12:07.650Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-automl", + "id": "f2a7307c-0018-47c6-8adb-9ca915103e5c", + "createTime": "2025-07-11T22:12:07.205Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-assured-workloads", + "id": "7b35cdb3-1714-4915-94d6-2943b927b9ab", + "createTime": "2025-07-11T22:12:06.489Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-asset", + "id": "feb3a9fe-6605-473e-afef-2b0cb70ab995", + "createTime": "2025-07-11T22:12:05.964Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-artifact-registry", + "id": "f14f29d9-becc-4618-a34c-feab75b49a36", + "createTime": "2025-07-11T22:12:05.243Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.area120:google-area120-tables", + "id": "3cc44b5f-6fce-4b29-9140-63b8261cab35", + "createTime": "2025-07-11T22:12:04.637Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-apphub", + "id": "41b671d3-676b-4d1c-8c8b-91ce7055f044", + "createTime": "2025-07-11T22:12:04.152Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-appengine-admin", + "id": "5060db84-b069-4786-95ba-b4e655bf8808", + "createTime": "2025-07-11T22:12:03.192Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-apikeys", + "id": "d9bd2ea6-a3a9-4708-b727-c013eee56cf7", + "createTime": "2025-07-11T22:12:02.586Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-apihub", + "id": "b74106b2-807a-4f4d-9dd3-eeebcf8a4b75", + "createTime": "2025-07-11T22:12:02.093Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-apigee-registry", + "id": "a8d9f59f-2c06-4223-8ae6-38658b6e3d2e", + "createTime": "2025-07-11T22:12:01.432Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-apigee-connect", + "id": "ba70fdfb-1e8b-40ad-8d63-6834f9dcd21d", + "createTime": "2025-07-11T22:12:00.782Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-api-gateway", + "id": "faeebc49-9cd8-449c-9195-e725f6ab1197", + "createTime": "2025-07-11T22:12:00.275Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-analyticshub", + "id": "c3e08275-038f-4d2c-8230-37689c85de36", + "createTime": "2025-07-11T22:11:59.525Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.analytics:google-analytics-data", + "id": "bb162c42-eaae-4ed8-b4d3-ad44831ec278", + "createTime": "2025-07-11T22:11:58.959Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.analytics:google-analytics-admin", + "id": "f50801ef-e493-48a4-9de2-585cf987a5a0", + "createTime": "2025-07-11T22:11:58.540Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-alloydb", + "id": "a02cc2e1-c5ca-4fc5-8f3d-03d9f60846f9", + "createTime": "2025-07-11T22:11:57.834Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-alloydb-connectors", + "id": "219393c1-11cc-45f8-9baf-4f408450cdb9", + "createTime": "2025-07-11T22:11:57.345Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-aiplatform", + "id": "998dd46b-d2bf-4859-a0cd-d2b17d307e25", + "createTime": "2025-07-11T22:11:56.543Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-advisorynotifications", + "id": "b7220b5d-1bbb-4e04-85d4-0bc7b22d1e0a", + "createTime": "2025-07-11T22:11:55.931Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.api-ads:ad-manager", + "id": "35814aa0-7683-4920-a935-89eef763e7fe", + "createTime": "2025-07-11T22:11:55.409Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-identity-accesscontextmanager", + "id": "6a245311-0c92-4ab9-8ec5-a67d0280455f", + "createTime": "2025-07-11T22:11:54.687Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-accessapproval", + "id": "68e82794-2fe8-4f55-8601-3e18c50cf36c", + "createTime": "2025-07-11T22:11:54.106Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "e611ec22adb990a3ca6b2785b183618231309b92", + "message": "[merchantapi] new module for merchant-reports-v1alpha", + "issues": [ + "11672" + ] + }, + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-merchant-reports", + "id": "7d9bdb57-ec08-4cc2-aad2-984fe7ab3b1d", + "createTime": "2025-07-11T22:11:53.623Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "c192cdc1843f34caad0cbe05c1216bf892a5c0f7", + "message": "[licensemanager] new module for licensemanager", + "issues": [ + "11673" + ] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-licensemanager", + "id": "18f536e5-f015-4aaa-b6bc-bdca16f8b8eb", + "createTime": "2025-07-11T22:11:53.160Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "5bf0054e7bba3187bcd09b08b06d639023817bcb", + "message": "[bigquerydatapolicy] new module for bigquerydatapolicy v2beta1", + "issues": [ + "11674" + ] + }, + { + "type": "fix", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "update the Java code generator (gapic-generator-java) to 2.60.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow] add a sipTrunk API", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-products] A comment for method `InsertProductInput` in service `ProductInputsService` is changed", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-reviews] A comment for field `custom_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Add Aggregation Output in EvaluateDataset Get Operation Response", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-fleetengine-delivery] add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add flexstart option to v1beta1", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[infra-manager] added resource change and drift details for the preview", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maintenance] Add missing comments for messages", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[security-private-ca] add RDN sequence", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[networkservices] Add isolation support to prevent cross-region overflow by adding a new field \"isolation_config\" to message \"ServiceLbPolicy\"", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[compute] Update Compute Engine v1 API to revision 20250626", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[managedkafka] update libraries and clients for Managed Kafka", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataplex] A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest`", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[network-management] Various documentation and comment improvements, Enable organization-level support for VPC Flow Logs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dialogflow-cx] Add support for generator settings on fulfillment", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] Add MultiLingual Support for Sanitize APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[modelarmor] add client libraries for v1beta API", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add message ColabImage, add field colab_image to NotebookSoftwareConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[maps-places] clarify behavior of primary types and weekday text", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] Expose task_unique_name in pipeline task details for pipeline rerun", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[securitycenter] Add AffectedResources proto", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[dataproc] Add `cluster_tier` to support creating premium clusters", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add computer use support to tools", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[admanager] Added support for AdBreak resource", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-accounts] Add CheckoutSettings service", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[shopping-merchant-product-studio] Initial Image API publication", + "issues": [] + }, + { + "type": "feat", + "sha": "961af1881e5332f33a231baef0ba291b3648b038", + "message": "[aiplatform] add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto", + "issues": [] + } + ], + "version": "1.62.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-bigquerydatapolicy", + "id": "a1fca74a-7666-485f-968a-c4d58878ce80", + "createTime": "2025-07-11T22:11:52.536Z" + }, { "changes": [ { @@ -816253,5 +858034,5 @@ "createTime": "2023-02-03T16:27:23.198Z" } ], - "updateTime": "2025-06-25T21:20:30.671Z" + "updateTime": "2025-07-11T22:14:01.769Z" } \ No newline at end of file diff --git a/gapic-libraries-bom/pom.xml b/gapic-libraries-bom/pom.xml index b67613d8aca3..225145bfebde 100644 --- a/gapic-libraries-bom/pom.xml +++ b/gapic-libraries-bom/pom.xml @@ -4,7 +4,7 @@ com.google.cloud gapic-libraries-bom pom - 1.61.0 + 1.62.0 Google Cloud Java BOM BOM for the libraries in google-cloud-java repository. Users should not @@ -15,7 +15,7 @@ google-cloud-pom-parent com.google.cloud - 1.61.0 + 1.62.0 ../google-cloud-pom-parent/pom.xml @@ -24,1333 +24,1340 @@ com.google.analytics google-analytics-admin-bom - 0.77.0 + 0.78.0 pom import com.google.analytics google-analytics-data-bom - 0.78.0 + 0.79.0 pom import com.google.area120 google-area120-tables-bom - 0.71.0 + 0.72.0 pom import com.google.cloud google-cloud-accessapproval-bom - 2.68.0 + 2.69.0 pom import com.google.cloud google-cloud-advisorynotifications-bom - 0.56.0 + 0.57.0 pom import com.google.cloud google-cloud-aiplatform-bom - 3.68.0 + 3.69.0 pom import com.google.cloud google-cloud-alloydb-bom - 0.56.0 + 0.57.0 pom import com.google.cloud google-cloud-alloydb-connectors-bom - 0.45.0 + 0.46.0 pom import com.google.cloud google-cloud-analyticshub-bom - 0.64.0 + 0.65.0 pom import com.google.cloud google-cloud-api-gateway-bom - 2.67.0 + 2.68.0 pom import com.google.cloud google-cloud-apigee-connect-bom - 2.67.0 + 2.68.0 pom import com.google.cloud google-cloud-apigee-registry-bom - 0.67.0 + 0.68.0 pom import com.google.cloud google-cloud-apihub-bom - 0.20.0 + 0.21.0 pom import com.google.cloud google-cloud-apikeys-bom - 0.65.0 + 0.66.0 pom import com.google.cloud google-cloud-appengine-admin-bom - 2.67.0 + 2.68.0 pom import com.google.cloud google-cloud-apphub-bom - 0.31.0 + 0.32.0 pom import com.google.cloud google-cloud-artifact-registry-bom - 1.66.0 + 1.67.0 pom import com.google.cloud google-cloud-asset-bom - 3.71.0 + 3.72.0 pom import com.google.cloud google-cloud-assured-workloads-bom - 2.67.0 + 2.68.0 pom import com.google.cloud google-cloud-automl-bom - 2.67.0 + 2.68.0 pom import com.google.cloud google-cloud-backupdr-bom - 0.26.0 + 0.27.0 pom import com.google.cloud google-cloud-bare-metal-solution-bom - 0.67.0 + 0.68.0 pom import com.google.cloud google-cloud-batch-bom - 0.67.0 + 0.68.0 pom import com.google.cloud google-cloud-beyondcorp-appconnections-bom - 0.65.0 + 0.66.0 pom import com.google.cloud google-cloud-beyondcorp-appconnectors-bom - 0.65.0 + 0.66.0 pom import com.google.cloud google-cloud-beyondcorp-appgateways-bom - 0.65.0 + 0.66.0 pom import com.google.cloud google-cloud-beyondcorp-clientconnectorservices-bom - 0.65.0 + 0.66.0 pom import com.google.cloud google-cloud-beyondcorp-clientgateways-bom - 0.65.0 + 0.66.0 pom import com.google.cloud google-cloud-biglake-bom - 0.55.0 + 0.56.0 pom import com.google.cloud google-cloud-bigquery-data-exchange-bom - 2.62.0 + 2.63.0 pom import com.google.cloud google-cloud-bigqueryconnection-bom - 2.69.0 + 2.70.0 pom import com.google.cloud google-cloud-bigquerydatapolicy-bom - 0.64.0 + 0.65.0 pom import com.google.cloud google-cloud-bigquerydatatransfer-bom - 2.67.0 + 2.68.0 pom import com.google.cloud google-cloud-bigquerymigration-bom - 0.70.0 + 0.71.0 pom import com.google.cloud google-cloud-bigqueryreservation-bom - 2.68.0 + 2.69.0 pom import com.google.cloud google-cloud-billing-bom - 2.67.0 + 2.68.0 pom import com.google.cloud google-cloud-billingbudgets-bom - 2.67.0 + 2.68.0 pom import com.google.cloud google-cloud-binary-authorization-bom - 1.66.0 + 1.67.0 pom import com.google.cloud google-cloud-build-bom - 3.69.0 + 3.70.0 pom import com.google.cloud google-cloud-certificate-manager-bom - 0.70.0 + 0.71.0 pom import com.google.cloud google-cloud-channel-bom - 3.71.0 + 3.72.0 pom import com.google.cloud google-cloud-chat-bom - 0.31.0 + 0.32.0 pom import com.google.cloud google-cloud-chronicle-bom - 0.5.0 + 0.6.0 pom import com.google.cloud google-cloud-cloudcommerceconsumerprocurement-bom - 0.65.0 + 0.66.0 pom import com.google.cloud google-cloud-cloudcontrolspartner-bom - 0.31.0 + 0.32.0 pom import com.google.cloud google-cloud-cloudquotas-bom - 0.35.0 + 0.36.0 pom import com.google.cloud google-cloud-cloudsupport-bom - 0.51.0 + 0.52.0 pom import com.google.cloud google-cloud-compute-bom - 1.77.0 + 1.78.0 pom import com.google.cloud google-cloud-confidentialcomputing-bom - 0.53.0 + 0.54.0 pom import com.google.cloud google-cloud-configdelivery-bom - 0.1.0 + 0.2.0 pom import com.google.cloud google-cloud-connectgateway-bom - 0.19.0 + 0.20.0 pom import com.google.cloud google-cloud-contact-center-insights-bom - 2.67.0 + 2.68.0 pom import com.google.cloud google-cloud-container-bom - 2.70.0 + 2.71.0 pom import com.google.cloud google-cloud-containeranalysis-bom - 2.68.0 + 2.69.0 pom import com.google.cloud google-cloud-contentwarehouse-bom - 0.63.0 + 0.64.0 pom import com.google.cloud google-cloud-data-fusion-bom - 1.67.0 + 1.68.0 pom import com.google.cloud google-cloud-datacatalog-bom - 1.73.0 + 1.74.0 pom import com.google.cloud google-cloud-dataflow-bom - 0.71.0 + 0.72.0 pom import com.google.cloud google-cloud-dataform-bom - 0.66.0 + 0.67.0 pom import com.google.cloud google-cloud-datalabeling-bom - 0.187.0 + 0.188.0 pom import com.google.cloud google-cloud-datalineage-bom - 0.59.0 + 0.60.0 pom import com.google.cloud google-cloud-dataplex-bom - 1.65.0 + 1.66.0 pom import com.google.cloud google-cloud-dataproc-bom - 4.64.0 + 4.65.0 pom import com.google.cloud google-cloud-dataproc-metastore-bom - 2.68.0 + 2.69.0 pom import com.google.cloud google-cloud-datastream-bom - 1.66.0 + 1.67.0 pom import com.google.cloud google-cloud-deploy-bom - 1.65.0 + 1.66.0 pom import com.google.cloud google-cloud-developerconnect-bom - 0.24.0 + 0.25.0 pom import com.google.cloud google-cloud-devicestreaming-bom - 0.7.0 + 0.8.0 pom import com.google.cloud google-cloud-dialogflow-bom - 4.73.0 + 4.74.0 pom import com.google.cloud google-cloud-dialogflow-cx-bom - 0.78.0 + 0.79.0 pom import com.google.cloud google-cloud-discoveryengine-bom - 0.63.0 + 0.64.0 pom import com.google.cloud google-cloud-distributedcloudedge-bom - 0.64.0 + 0.65.0 pom import com.google.cloud google-cloud-dlp-bom - 3.71.0 + 3.72.0 pom import com.google.cloud google-cloud-dms-bom - 2.66.0 + 2.67.0 pom import com.google.cloud google-cloud-dns - 2.65.0 + 2.66.0 com.google.cloud google-cloud-document-ai-bom - 2.71.0 + 2.72.0 pom import com.google.cloud google-cloud-domains-bom - 1.64.0 + 1.65.0 pom import com.google.cloud google-cloud-edgenetwork-bom - 0.35.0 + 0.36.0 pom import com.google.cloud google-cloud-enterpriseknowledgegraph-bom - 0.63.0 + 0.64.0 pom import com.google.cloud google-cloud-errorreporting-bom - 0.188.0-beta + 0.189.0-beta pom import com.google.cloud google-cloud-essential-contacts-bom - 2.67.0 + 2.68.0 pom import com.google.cloud google-cloud-eventarc-bom - 1.67.0 + 1.68.0 pom import com.google.cloud google-cloud-eventarc-publishing-bom - 0.67.0 + 0.68.0 pom import com.google.cloud google-cloud-filestore-bom - 1.68.0 + 1.69.0 pom import com.google.cloud google-cloud-financialservices-bom - 0.8.0 + 0.9.0 pom import com.google.cloud google-cloud-functions-bom - 2.69.0 + 2.70.0 pom import com.google.cloud google-cloud-gdchardwaremanagement-bom - 0.22.0 + 0.23.0 pom import com.google.cloud google-cloud-gke-backup-bom - 0.66.0 + 0.67.0 pom import com.google.cloud google-cloud-gke-connect-gateway-bom - 0.68.0 + 0.69.0 pom import com.google.cloud google-cloud-gke-multi-cloud-bom - 0.66.0 + 0.67.0 pom import com.google.cloud google-cloud-gkehub-bom - 1.67.0 + 1.68.0 pom import com.google.cloud google-cloud-gsuite-addons-bom - 2.67.0 + 2.68.0 pom import com.google.cloud google-cloud-iamcredentials-bom - 2.67.0 + 2.68.0 pom import com.google.cloud google-cloud-iap-bom - 0.23.0 + 0.24.0 pom import com.google.cloud google-cloud-ids-bom - 1.66.0 + 1.67.0 pom import com.google.cloud google-cloud-infra-manager-bom - 0.44.0 + 0.45.0 pom import com.google.cloud google-cloud-iot-bom - 2.67.0 + 2.68.0 pom import com.google.cloud google-cloud-kms-bom - 2.70.0 + 2.71.0 pom import com.google.cloud google-cloud-kmsinventory-bom - 0.56.0 + 0.57.0 pom import com.google.cloud google-cloud-language-bom - 2.68.0 + 2.69.0 + pom + import + + + com.google.cloud + google-cloud-licensemanager-bom + 0.1.0 pom import com.google.cloud google-cloud-life-sciences-bom - 0.69.0 + 0.70.0 pom import com.google.cloud google-cloud-live-stream-bom - 0.69.0 + 0.70.0 pom import com.google.cloud google-cloud-lustre-bom - 0.7.0 + 0.8.0 pom import com.google.cloud google-cloud-maintenance-bom - 0.1.0 + 0.2.0 pom import com.google.cloud google-cloud-managed-identities-bom - 1.65.0 + 1.66.0 pom import com.google.cloud google-cloud-managedkafka-bom - 0.23.0 + 0.24.0 pom import com.google.cloud google-cloud-mediatranslation-bom - 0.73.0 + 0.74.0 pom import com.google.cloud google-cloud-meet-bom - 0.34.0 + 0.35.0 pom import com.google.cloud google-cloud-memcache-bom - 2.67.0 + 2.68.0 pom import com.google.cloud google-cloud-migrationcenter-bom - 0.49.0 + 0.50.0 pom import com.google.cloud google-cloud-modelarmor-bom - 0.8.0 + 0.9.0 pom import com.google.cloud google-cloud-monitoring-bom - 3.68.0 + 3.69.0 pom import com.google.cloud google-cloud-monitoring-dashboard-bom - 2.69.0 + 2.70.0 pom import com.google.cloud google-cloud-monitoring-metricsscope-bom - 0.61.0 + 0.62.0 pom import com.google.cloud google-cloud-netapp-bom - 0.46.0 + 0.47.0 pom import com.google.cloud google-cloud-network-management-bom - 1.68.0 + 1.69.0 pom import com.google.cloud google-cloud-network-security-bom - 0.70.0 + 0.71.0 pom import com.google.cloud google-cloud-networkconnectivity-bom - 1.66.0 + 1.67.0 pom import com.google.cloud google-cloud-networkservices-bom - 0.23.0 + 0.24.0 pom import com.google.cloud google-cloud-notebooks-bom - 1.65.0 + 1.66.0 pom import com.google.cloud google-cloud-notification - 0.185.0-beta + 0.186.0-beta com.google.cloud google-cloud-optimization-bom - 1.65.0 + 1.66.0 pom import com.google.cloud google-cloud-oracledatabase-bom - 0.16.0 + 0.17.0 pom import com.google.cloud google-cloud-orchestration-airflow-bom - 1.67.0 + 1.68.0 pom import com.google.cloud google-cloud-orgpolicy-bom - 2.67.0 + 2.68.0 pom import com.google.cloud google-cloud-os-config-bom - 2.69.0 + 2.70.0 pom import com.google.cloud google-cloud-os-login-bom - 2.66.0 + 2.67.0 pom import com.google.cloud google-cloud-parallelstore-bom - 0.30.0 + 0.31.0 pom import com.google.cloud google-cloud-parametermanager-bom - 0.11.0 + 0.12.0 pom import com.google.cloud google-cloud-phishingprotection-bom - 0.98.0 + 0.99.0 pom import com.google.cloud google-cloud-policy-troubleshooter-bom - 1.66.0 + 1.67.0 pom import com.google.cloud google-cloud-policysimulator-bom - 0.46.0 + 0.47.0 pom import com.google.cloud google-cloud-private-catalog-bom - 0.69.0 + 0.70.0 pom import com.google.cloud google-cloud-privilegedaccessmanager-bom - 0.21.0 + 0.22.0 pom import com.google.cloud google-cloud-profiler-bom - 2.67.0 + 2.68.0 pom import com.google.cloud google-cloud-publicca-bom - 0.64.0 + 0.65.0 pom import com.google.cloud google-cloud-rapidmigrationassessment-bom - 0.50.0 + 0.51.0 pom import com.google.cloud google-cloud-recaptchaenterprise-bom - 3.64.0 + 3.65.0 pom import com.google.cloud google-cloud-recommendations-ai-bom - 0.74.0 + 0.75.0 pom import com.google.cloud google-cloud-recommender-bom - 2.69.0 + 2.70.0 pom import com.google.cloud google-cloud-redis-bom - 2.70.0 + 2.71.0 pom import com.google.cloud google-cloud-redis-cluster-bom - 0.39.0 + 0.40.0 pom import com.google.cloud google-cloud-resourcemanager-bom - 1.69.0 + 1.70.0 pom import com.google.cloud google-cloud-retail-bom - 2.69.0 + 2.70.0 pom import com.google.cloud google-cloud-run-bom - 0.67.0 + 0.68.0 pom import com.google.cloud google-cloud-scheduler-bom - 2.67.0 + 2.68.0 pom import com.google.cloud google-cloud-secretmanager-bom - 2.67.0 + 2.68.0 pom import com.google.cloud google-cloud-securesourcemanager-bom - 0.37.0 + 0.38.0 pom import com.google.cloud google-cloud-security-private-ca-bom - 2.69.0 + 2.70.0 pom import com.google.cloud google-cloud-securitycenter-bom - 2.75.0 + 2.76.0 pom import com.google.cloud google-cloud-securitycenter-settings-bom - 0.70.0 + 0.71.0 pom import com.google.cloud google-cloud-securitycentermanagement-bom - 0.35.0 + 0.36.0 pom import com.google.cloud google-cloud-securityposture-bom - 0.32.0 + 0.33.0 pom import com.google.cloud google-cloud-service-control-bom - 1.67.0 + 1.68.0 pom import com.google.cloud google-cloud-service-management-bom - 3.65.0 + 3.66.0 pom import com.google.cloud google-cloud-service-usage-bom - 2.67.0 + 2.68.0 pom import com.google.cloud google-cloud-servicedirectory-bom - 2.68.0 + 2.69.0 pom import com.google.cloud google-cloud-servicehealth-bom - 0.34.0 + 0.35.0 pom import com.google.cloud google-cloud-shell-bom - 2.66.0 + 2.67.0 pom import com.google.cloud google-cloud-spanneradapter-bom - 0.3.0 + 0.4.0 pom import com.google.cloud google-cloud-speech-bom - 4.62.0 + 4.63.0 pom import com.google.cloud google-cloud-storage-transfer-bom - 1.67.0 + 1.68.0 pom import com.google.cloud google-cloud-storagebatchoperations-bom - 0.7.0 + 0.8.0 pom import com.google.cloud google-cloud-storageinsights-bom - 0.52.0 + 0.53.0 pom import com.google.cloud google-cloud-talent-bom - 2.68.0 + 2.69.0 pom import com.google.cloud google-cloud-tasks-bom - 2.67.0 + 2.68.0 pom import com.google.cloud google-cloud-telcoautomation-bom - 0.37.0 + 0.38.0 pom import com.google.cloud google-cloud-texttospeech-bom - 2.68.0 + 2.69.0 pom import com.google.cloud google-cloud-tpu-bom - 2.68.0 + 2.69.0 pom import com.google.cloud google-cloud-trace-bom - 2.67.0 + 2.68.0 pom import com.google.cloud google-cloud-translate-bom - 2.67.0 + 2.68.0 pom import com.google.cloud google-cloud-valkey-bom - 0.13.0 + 0.14.0 pom import com.google.cloud google-cloud-vertexai-bom - 1.27.0 + 1.28.0 pom import com.google.cloud google-cloud-video-intelligence-bom - 2.66.0 + 2.67.0 pom import com.google.cloud google-cloud-video-stitcher-bom - 0.67.0 + 0.68.0 pom import com.google.cloud google-cloud-video-transcoder-bom - 1.66.0 + 1.67.0 pom import com.google.cloud google-cloud-vision-bom - 3.65.0 + 3.66.0 pom import com.google.cloud google-cloud-visionai-bom - 0.24.0 + 0.25.0 pom import com.google.cloud google-cloud-vmmigration-bom - 1.67.0 + 1.68.0 pom import com.google.cloud google-cloud-vmwareengine-bom - 0.61.0 + 0.62.0 pom import com.google.cloud google-cloud-vpcaccess-bom - 2.68.0 + 2.69.0 pom import com.google.cloud google-cloud-webrisk-bom - 2.66.0 + 2.67.0 pom import com.google.cloud google-cloud-websecurityscanner-bom - 2.67.0 + 2.68.0 pom import com.google.cloud google-cloud-workflow-executions-bom - 2.67.0 + 2.68.0 pom import com.google.cloud google-cloud-workflows-bom - 2.67.0 + 2.68.0 pom import com.google.cloud google-cloud-workspaceevents-bom - 0.31.0 + 0.32.0 pom import com.google.cloud google-cloud-workstations-bom - 0.55.0 + 0.56.0 pom import com.google.cloud google-iam-admin-bom - 3.62.0 + 3.63.0 pom import com.google.cloud google-iam-policy-bom - 1.65.0 + 1.66.0 pom import com.google.cloud google-identity-accesscontextmanager-bom - 1.68.0 + 1.69.0 pom import io.grafeas grafeas - 2.68.0 + 2.69.0 diff --git a/generation_config.yaml b/generation_config.yaml index 87f6eaa48a12..5446253f3a39 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ -gapic_generator_version: 2.60.0 -googleapis_commitish: 8a883235bc76e941ef745a5b5465878dadc9c440 +gapic_generator_version: 2.60.1 +googleapis_commitish: d4be887ef681aa9c3c1c6b10aed839d154effa53 libraries_bom_version: 26.61.0 # the libraries are ordered with respect to library name, which is @@ -396,6 +396,7 @@ libraries: GAPICs: - proto_path: google/cloud/bigquery/datapolicies/v1 - proto_path: google/cloud/bigquery/datapolicies/v1beta1 + - proto_path: google/cloud/bigquery/datapolicies/v2beta1 - api_shortname: bigquerydatatransfer name_pretty: BigQuery Data Transfer Service @@ -1301,6 +1302,22 @@ libraries: - proto_path: google/cloud/language/v1beta2 - proto_path: google/cloud/language/v2 +- api_shortname: licensemanager + name_pretty: License Manager API + product_documentation: https://cloud.google.com/compute/docs/instances/windows/ms-licensing + api_description: License Manager is a tool to manage and track third-party licenses + on Google Cloud. + client_documentation: + https://cloud.google.com/java/docs/reference/google-cloud-licensemanager/latest/overview + release_level: preview + distribution_name: com.google.cloud:google-cloud-licensemanager + api_id: licensemanager.googleapis.com + library_type: GAPIC_AUTO + group_id: com.google.cloud + cloud_api: true + GAPICs: + - proto_path: google/cloud/licensemanager/v1 + requires_billing: true - api_shortname: lifesciences name_pretty: Cloud Life Sciences product_documentation: https://cloud.google.com/life-sciences/docs @@ -2346,6 +2363,7 @@ libraries: distribution_name: com.google.shopping:google-shopping-merchant-reports GAPICs: - proto_path: google/shopping/merchant/reports/v1beta + - proto_path: google/shopping/merchant/reports/v1alpha - api_shortname: merchantapi name_pretty: Merchant API diff --git a/google-cloud-jar-parent/pom.xml b/google-cloud-jar-parent/pom.xml index 458be8bcb71d..7e41ff18fc40 100644 --- a/google-cloud-jar-parent/pom.xml +++ b/google-cloud-jar-parent/pom.xml @@ -5,7 +5,7 @@ 4.0.0 google-cloud-jar-parent com.google.cloud - 1.61.0 + 1.62.0 pom Google Cloud JAR Parent @@ -15,7 +15,7 @@ com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../google-cloud-pom-parent/pom.xml diff --git a/google-cloud-pom-parent/pom.xml b/google-cloud-pom-parent/pom.xml index 46a381f154cd..a537431d4a55 100644 --- a/google-cloud-pom-parent/pom.xml +++ b/google-cloud-pom-parent/pom.xml @@ -5,7 +5,7 @@ 4.0.0 google-cloud-pom-parent com.google.cloud - 1.61.0 + 1.62.0 pom Google Cloud POM Parent https://github.com/googleapis/google-cloud-java @@ -15,7 +15,7 @@ com.google.cloud sdk-platform-java-config - 3.50.0 + 3.50.1 diff --git a/java-accessapproval/CHANGELOG.md b/java-accessapproval/CHANGELOG.md index e70b58d897cf..1c6b89ef5f4d 100644 --- a/java-accessapproval/CHANGELOG.md +++ b/java-accessapproval/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.69.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.68.0 (2025-06-25) ### Dependencies diff --git a/java-accessapproval/README.md b/java-accessapproval/README.md index 62ade5bdfa12..0c339f233d92 100644 --- a/java-accessapproval/README.md +++ b/java-accessapproval/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-accessapproval - 2.67.0 + 2.68.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-accessapproval:2.67.0' +implementation 'com.google.cloud:google-cloud-accessapproval:2.68.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-accessapproval" % "2.67.0" +libraryDependencies += "com.google.cloud" % "google-cloud-accessapproval" % "2.68.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.67.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-accessapproval/2.68.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-accessapproval/google-cloud-accessapproval-bom/pom.xml b/java-accessapproval/google-cloud-accessapproval-bom/pom.xml index d86fb01c1dbe..6c145b0234fa 100644 --- a/java-accessapproval/google-cloud-accessapproval-bom/pom.xml +++ b/java-accessapproval/google-cloud-accessapproval-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-accessapproval-bom - 2.68.0 + 2.69.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-accessapproval - 2.68.0 + 2.69.0 com.google.api.grpc grpc-google-cloud-accessapproval-v1 - 2.68.0 + 2.69.0 com.google.api.grpc proto-google-cloud-accessapproval-v1 - 2.68.0 + 2.69.0 diff --git a/java-accessapproval/google-cloud-accessapproval/pom.xml b/java-accessapproval/google-cloud-accessapproval/pom.xml index 60694fcc00e9..4bbe060ed4c4 100644 --- a/java-accessapproval/google-cloud-accessapproval/pom.xml +++ b/java-accessapproval/google-cloud-accessapproval/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-accessapproval - 2.68.0 + 2.69.0 jar Google Cloud Access Approval Java idiomatic client for Google Cloud accessapproval com.google.cloud google-cloud-accessapproval-parent - 2.68.0 + 2.69.0 google-cloud-accessapproval diff --git a/java-accessapproval/grpc-google-cloud-accessapproval-v1/pom.xml b/java-accessapproval/grpc-google-cloud-accessapproval-v1/pom.xml index e2171a465aa6..6a9caafaa100 100644 --- a/java-accessapproval/grpc-google-cloud-accessapproval-v1/pom.xml +++ b/java-accessapproval/grpc-google-cloud-accessapproval-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-accessapproval-v1 - 2.68.0 + 2.69.0 grpc-google-cloud-accessapproval-v1 GRPC library for grpc-google-cloud-accessapproval-v1 com.google.cloud google-cloud-accessapproval-parent - 2.68.0 + 2.69.0 diff --git a/java-accessapproval/pom.xml b/java-accessapproval/pom.xml index 48ce1259bb07..027b77a7973a 100644 --- a/java-accessapproval/pom.xml +++ b/java-accessapproval/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-accessapproval-parent pom - 2.68.0 + 2.69.0 Google Cloud Access Approval Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api.grpc proto-google-cloud-accessapproval-v1 - 2.68.0 + 2.69.0 com.google.api.grpc grpc-google-cloud-accessapproval-v1 - 2.68.0 + 2.69.0 com.google.cloud google-cloud-accessapproval - 2.68.0 + 2.69.0 diff --git a/java-accessapproval/proto-google-cloud-accessapproval-v1/pom.xml b/java-accessapproval/proto-google-cloud-accessapproval-v1/pom.xml index e09ced9bd0e0..35fdf2cf2ae5 100644 --- a/java-accessapproval/proto-google-cloud-accessapproval-v1/pom.xml +++ b/java-accessapproval/proto-google-cloud-accessapproval-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-accessapproval-v1 - 2.68.0 + 2.69.0 proto-google-cloud-accessapproval-v1beta1 PROTO library for proto-google-cloud-accessapproval-v1 com.google.cloud google-cloud-accessapproval-parent - 2.68.0 + 2.69.0 diff --git a/java-accesscontextmanager/CHANGELOG.md b/java-accesscontextmanager/CHANGELOG.md index f39390a0ec2f..16de57ac033e 100644 --- a/java-accesscontextmanager/CHANGELOG.md +++ b/java-accesscontextmanager/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 1.69.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 1.68.0 (2025-06-25) ### Dependencies diff --git a/java-accesscontextmanager/README.md b/java-accesscontextmanager/README.md index 7f8c994d740b..a35b384e8f27 100644 --- a/java-accesscontextmanager/README.md +++ b/java-accesscontextmanager/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-identity-accesscontextmanager - 1.67.0 + 1.68.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-identity-accesscontextmanager:1.67.0' +implementation 'com.google.cloud:google-identity-accesscontextmanager:1.68.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-identity-accesscontextmanager" % "1.67.0" +libraryDependencies += "com.google.cloud" % "google-identity-accesscontextmanager" % "1.68.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.67.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-identity-accesscontextmanager/1.68.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/google-identity-accesscontextmanager-bom/pom.xml b/java-accesscontextmanager/google-identity-accesscontextmanager-bom/pom.xml index 9e9fb0097129..3f819be246fe 100644 --- a/java-accesscontextmanager/google-identity-accesscontextmanager-bom/pom.xml +++ b/java-accesscontextmanager/google-identity-accesscontextmanager-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-identity-accesscontextmanager-bom - 1.68.0 + 1.69.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,22 +27,22 @@ com.google.cloud google-identity-accesscontextmanager - 1.68.0 + 1.69.0 com.google.api.grpc grpc-google-identity-accesscontextmanager-v1 - 1.68.0 + 1.69.0 com.google.api.grpc proto-google-identity-accesscontextmanager-v1 - 1.68.0 + 1.69.0 com.google.api.grpc proto-google-identity-accesscontextmanager-type - 1.68.0 + 1.69.0 diff --git a/java-accesscontextmanager/google-identity-accesscontextmanager/pom.xml b/java-accesscontextmanager/google-identity-accesscontextmanager/pom.xml index b2205bc42055..dc9557dd99bd 100644 --- a/java-accesscontextmanager/google-identity-accesscontextmanager/pom.xml +++ b/java-accesscontextmanager/google-identity-accesscontextmanager/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-identity-accesscontextmanager - 1.68.0 + 1.69.0 jar Google Identity Access Context Manager Identity Access Context Manager n/a com.google.cloud google-identity-accesscontextmanager-parent - 1.68.0 + 1.69.0 google-identity-accesscontextmanager diff --git a/java-accesscontextmanager/grpc-google-identity-accesscontextmanager-v1/pom.xml b/java-accesscontextmanager/grpc-google-identity-accesscontextmanager-v1/pom.xml index c4478a3d3f59..dbc2effda58d 100644 --- a/java-accesscontextmanager/grpc-google-identity-accesscontextmanager-v1/pom.xml +++ b/java-accesscontextmanager/grpc-google-identity-accesscontextmanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-identity-accesscontextmanager-v1 - 1.68.0 + 1.69.0 grpc-google-identity-accesscontextmanager-v1 GRPC library for google-identity-accesscontextmanager com.google.cloud google-identity-accesscontextmanager-parent - 1.68.0 + 1.69.0 diff --git a/java-accesscontextmanager/pom.xml b/java-accesscontextmanager/pom.xml index 548696c4bc0a..2ae8ec3c5b71 100644 --- a/java-accesscontextmanager/pom.xml +++ b/java-accesscontextmanager/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-identity-accesscontextmanager-parent pom - 1.68.0 + 1.69.0 Google Identity Access Context Manager Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -30,22 +30,22 @@ com.google.api.grpc proto-google-identity-accesscontextmanager-type - 1.68.0 + 1.69.0 com.google.api.grpc proto-google-identity-accesscontextmanager-v1 - 1.68.0 + 1.69.0 com.google.api.grpc grpc-google-identity-accesscontextmanager-v1 - 1.68.0 + 1.69.0 com.google.cloud google-identity-accesscontextmanager - 1.68.0 + 1.69.0 diff --git a/java-accesscontextmanager/proto-google-identity-accesscontextmanager-type/pom.xml b/java-accesscontextmanager/proto-google-identity-accesscontextmanager-type/pom.xml index 90c9ff00ba6b..5388d6a83995 100644 --- a/java-accesscontextmanager/proto-google-identity-accesscontextmanager-type/pom.xml +++ b/java-accesscontextmanager/proto-google-identity-accesscontextmanager-type/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-identity-accesscontextmanager-type - 1.68.0 + 1.69.0 proto-google-identity-accesscontextmanager-type PROTO library for proto-google-identity-accesscontextmanager-type com.google.cloud google-identity-accesscontextmanager-parent - 1.68.0 + 1.69.0 diff --git a/java-accesscontextmanager/proto-google-identity-accesscontextmanager-v1/pom.xml b/java-accesscontextmanager/proto-google-identity-accesscontextmanager-v1/pom.xml index 49d3299213b0..1007d1a22b0e 100644 --- a/java-accesscontextmanager/proto-google-identity-accesscontextmanager-v1/pom.xml +++ b/java-accesscontextmanager/proto-google-identity-accesscontextmanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-identity-accesscontextmanager-v1 - 1.68.0 + 1.69.0 proto-google-identity-accesscontextmanager-v1 PROTO library for proto-google-identity-accesscontextmanager-v1 com.google.cloud google-identity-accesscontextmanager-parent - 1.68.0 + 1.69.0 @@ -37,7 +37,7 @@ com.google.api.grpc proto-google-identity-accesscontextmanager-type - 1.68.0 + 1.69.0 diff --git a/java-admanager/CHANGELOG.md b/java-admanager/CHANGELOG.md index 0d4200b1e5a3..d867e56a4ad0 100644 --- a/java-admanager/CHANGELOG.md +++ b/java-admanager/CHANGELOG.md @@ -1,5 +1,16 @@ # Changelog +## 0.27.0 (2025-07-11) + +### Features + +* Added support for AdBreak resource ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.26.0 (2025-06-25) ### Dependencies diff --git a/java-admanager/README.md b/java-admanager/README.md index 4b87dda557b3..0a004c11c1f2 100644 --- a/java-admanager/README.md +++ b/java-admanager/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.api-ads ad-manager - 0.25.0 + 0.26.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.api-ads:ad-manager:0.25.0' +implementation 'com.google.api-ads:ad-manager:0.26.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.api-ads" % "ad-manager" % "0.25.0" +libraryDependencies += "com.google.api-ads" % "ad-manager" % "0.26.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.api-ads/ad-manager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/ad-manager/0.25.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/ad-manager/0.26.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/ad-manager-bom/pom.xml b/java-admanager/ad-manager-bom/pom.xml index 5741f7403abe..bcb67346ba91 100644 --- a/java-admanager/ad-manager-bom/pom.xml +++ b/java-admanager/ad-manager-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.api-ads ad-manager-bom - 0.26.0 + 0.27.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -26,12 +26,12 @@ com.google.api-ads ad-manager - 0.26.0 + 0.27.0 com.google.api-ads.api.grpc proto-ad-manager-v1 - 0.26.0 + 0.27.0 diff --git a/java-admanager/ad-manager/pom.xml b/java-admanager/ad-manager/pom.xml index ac49a70ccc7c..ba34f56e47e6 100644 --- a/java-admanager/ad-manager/pom.xml +++ b/java-admanager/ad-manager/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.api-ads ad-manager - 0.26.0 + 0.27.0 jar Google Google Ad Manager API Google Ad Manager API 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. com.google.api-ads ad-manager-parent - 0.26.0 + 0.27.0 ad-manager diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdBreakServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdBreakServiceClient.java new file mode 100644 index 000000000000..8a9d86605d39 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdBreakServiceClient.java @@ -0,0 +1,1108 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1; + +import com.google.ads.admanager.v1.stub.AdBreakServiceStub; +import com.google.ads.admanager.v1.stub.AdBreakServiceStubSettings; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Provides methods for handling `AdBreak` objects. + * + *

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 (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) {
+ *   AdBreakName name = AdBreakName.of("[NETWORK_CODE]", "[ASSET_KEY]", "[AD_BREAK]");
+ *   AdBreak response = adBreakServiceClient.getAdBreak(name);
+ * }
+ * }
+ * + *

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

GetAdBreak

API to retrieve an `AdBreak` object. + *

Query an ad break by its resource name or custom asset key. Check the resource's `breakState` field to determine its state.

+ *

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

+ *
    + *
  • getAdBreak(GetAdBreakRequest request) + *

+ *

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

+ *
    + *
  • getAdBreak(AdBreakName name) + *

  • getAdBreak(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.

+ *
    + *
  • getAdBreakCallable() + *

+ *

ListAdBreaks

API to retrieve a list of `AdBreak` objects. + *

By default, when no `orderBy` query parameter is specified, ad breaks are ordered reverse chronologically. However, ad breaks with a 'breakState' of 'SCHEDULED' or 'DECISIONED' are prioritized and appear first.

+ *

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

+ *
    + *
  • listAdBreaks(ListAdBreaksRequest request) + *

+ *

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

+ *
    + *
  • listAdBreaks(LiveStreamEventName parent) + *

  • listAdBreaks(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.

+ *
    + *
  • listAdBreaksPagedCallable() + *

  • listAdBreaksCallable() + *

+ *

CreateAdBreak

API to create an `AdBreak` object. + *

Informs DAI of an upcoming ad break for a live stream event, with an optional expected start time. DAI will begin decisioning ads for the break shortly before the expected start time, if provided. Each live stream event can only have one incomplete ad break at any given time. The next ad break can be scheduled after the previous ad break has started serving, indicated by its state being [`COMPLETE`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.COMPLETE], or it has been deleted. + *

This method cannot be used if the `LiveStreamEvent` has [prefetching ad breaks enabled](https://developers.google.com/ad-manager/api/reference/latest/LiveStreamEventService.LiveStreamEvent#prefetchenabled) or the event is not active. If a `LiveStreamEvent` is deactivated after creating an ad break and before the ad break is complete, the ad break is discarded. + *

An ad break's state is complete when the following occurs: - Full service DAI: after a matching ad break shows in the `LiveStreamEvent` manifest only when the ad break has started decisioning. - Pod Serving: after the ad break is requested using the ad break ID or break sequence.

+ *

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

+ *
    + *
  • createAdBreak(CreateAdBreakRequest request) + *

+ *

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

+ *
    + *
  • createAdBreak(LiveStreamEventName parent, AdBreak adBreak) + *

  • createAdBreak(String parent, AdBreak adBreak) + *

+ *

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

+ *
    + *
  • createAdBreakCallable() + *

+ *

UpdateAdBreak

API to update an `AdBreak` object. + *

Modify an ad break when its state is [`SCHEDULED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.SCHEDULED].

+ *

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

+ *
    + *
  • updateAdBreak(UpdateAdBreakRequest request) + *

+ *

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

+ *
    + *
  • updateAdBreak(AdBreak adBreak, FieldMask updateMask) + *

+ *

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

+ *
    + *
  • updateAdBreakCallable() + *

+ *

DeleteAdBreak

API to delete an `AdBreak` object. + *

Deletes and cancels an incomplete ad break, mitigating the need to wait for the current break to serve before recreating an ad break. You can delete an ad break that has not started serving or seen in manifests, indicated by its state being [`SCHEDULED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.SCHEDULED] or [`DECISIONED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.DECISIONED].

+ *

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

+ *
    + *
  • deleteAdBreak(DeleteAdBreakRequest request) + *

+ *

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

+ *
    + *
  • deleteAdBreak(AdBreakName name) + *

  • deleteAdBreak(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.

+ *
    + *
  • deleteAdBreakCallable() + *

+ *
+ * + *

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 AdBreakServiceSettings 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
+ * AdBreakServiceSettings adBreakServiceSettings =
+ *     AdBreakServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create(adBreakServiceSettings);
+ * }
+ * + *

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
+ * AdBreakServiceSettings adBreakServiceSettings =
+ *     AdBreakServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create(adBreakServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class AdBreakServiceClient implements BackgroundResource { + private final AdBreakServiceSettings settings; + private final AdBreakServiceStub stub; + + /** Constructs an instance of AdBreakServiceClient with default settings. */ + public static final AdBreakServiceClient create() throws IOException { + return create(AdBreakServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of AdBreakServiceClient, 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 AdBreakServiceClient create(AdBreakServiceSettings settings) + throws IOException { + return new AdBreakServiceClient(settings); + } + + /** + * Constructs an instance of AdBreakServiceClient, using the given stub for making calls. This is + * for advanced usage - prefer using create(AdBreakServiceSettings). + */ + public static final AdBreakServiceClient create(AdBreakServiceStub stub) { + return new AdBreakServiceClient(stub); + } + + /** + * Constructs an instance of AdBreakServiceClient, 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 AdBreakServiceClient(AdBreakServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((AdBreakServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected AdBreakServiceClient(AdBreakServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final AdBreakServiceSettings getSettings() { + return settings; + } + + public AdBreakServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve an `AdBreak` object. + * + *

Query an ad break by its resource name or custom asset key. Check the resource's + * `breakState` field to determine its state. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) {
+   *   AdBreakName name = AdBreakName.of("[NETWORK_CODE]", "[ASSET_KEY]", "[AD_BREAK]");
+   *   AdBreak response = adBreakServiceClient.getAdBreak(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the AdBreak using the asset key or custom asset key. + *

Format: + * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break_id}` + * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}/adBreaks/{ad_break_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AdBreak getAdBreak(AdBreakName name) { + GetAdBreakRequest request = + GetAdBreakRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getAdBreak(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve an `AdBreak` object. + * + *

Query an ad break by its resource name or custom asset key. Check the resource's + * `breakState` field to determine its state. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) {
+   *   String name = AdBreakName.of("[NETWORK_CODE]", "[ASSET_KEY]", "[AD_BREAK]").toString();
+   *   AdBreak response = adBreakServiceClient.getAdBreak(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the AdBreak using the asset key or custom asset key. + *

Format: + * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break_id}` + * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}/adBreaks/{ad_break_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AdBreak getAdBreak(String name) { + GetAdBreakRequest request = GetAdBreakRequest.newBuilder().setName(name).build(); + return getAdBreak(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve an `AdBreak` object. + * + *

Query an ad break by its resource name or custom asset key. Check the resource's + * `breakState` field to determine its state. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) {
+   *   GetAdBreakRequest request =
+   *       GetAdBreakRequest.newBuilder()
+   *           .setName(AdBreakName.of("[NETWORK_CODE]", "[ASSET_KEY]", "[AD_BREAK]").toString())
+   *           .build();
+   *   AdBreak response = adBreakServiceClient.getAdBreak(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 AdBreak getAdBreak(GetAdBreakRequest request) { + return getAdBreakCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve an `AdBreak` object. + * + *

Query an ad break by its resource name or custom asset key. Check the resource's + * `breakState` field to determine its state. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) {
+   *   GetAdBreakRequest request =
+   *       GetAdBreakRequest.newBuilder()
+   *           .setName(AdBreakName.of("[NETWORK_CODE]", "[ASSET_KEY]", "[AD_BREAK]").toString())
+   *           .build();
+   *   ApiFuture future = adBreakServiceClient.getAdBreakCallable().futureCall(request);
+   *   // Do something.
+   *   AdBreak response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getAdBreakCallable() { + return stub.getAdBreakCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `AdBreak` objects. + * + *

By default, when no `orderBy` query parameter is specified, ad breaks are ordered reverse + * chronologically. However, ad breaks with a 'breakState' of 'SCHEDULED' or 'DECISIONED' are + * prioritized and appear first. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) {
+   *   LiveStreamEventName parent = LiveStreamEventName.of("[NETWORK_CODE]", "[LIVE_STREAM_EVENT]");
+   *   for (AdBreak element : adBreakServiceClient.listAdBreaks(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of AdBreaks. + *

Formats: `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}` + * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAdBreaksPagedResponse listAdBreaks(LiveStreamEventName parent) { + ListAdBreaksRequest request = + ListAdBreaksRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAdBreaks(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `AdBreak` objects. + * + *

By default, when no `orderBy` query parameter is specified, ad breaks are ordered reverse + * chronologically. However, ad breaks with a 'breakState' of 'SCHEDULED' or 'DECISIONED' are + * prioritized and appear first. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) {
+   *   String parent = LiveStreamEventName.of("[NETWORK_CODE]", "[LIVE_STREAM_EVENT]").toString();
+   *   for (AdBreak element : adBreakServiceClient.listAdBreaks(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of AdBreaks. + *

Formats: `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}` + * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAdBreaksPagedResponse listAdBreaks(String parent) { + ListAdBreaksRequest request = ListAdBreaksRequest.newBuilder().setParent(parent).build(); + return listAdBreaks(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `AdBreak` objects. + * + *

By default, when no `orderBy` query parameter is specified, ad breaks are ordered reverse + * chronologically. However, ad breaks with a 'breakState' of 'SCHEDULED' or 'DECISIONED' are + * prioritized and appear first. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) {
+   *   ListAdBreaksRequest request =
+   *       ListAdBreaksRequest.newBuilder()
+   *           .setParent(LiveStreamEventName.of("[NETWORK_CODE]", "[LIVE_STREAM_EVENT]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   for (AdBreak element : adBreakServiceClient.listAdBreaks(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 ListAdBreaksPagedResponse listAdBreaks(ListAdBreaksRequest request) { + return listAdBreaksPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `AdBreak` objects. + * + *

By default, when no `orderBy` query parameter is specified, ad breaks are ordered reverse + * chronologically. However, ad breaks with a 'breakState' of 'SCHEDULED' or 'DECISIONED' are + * prioritized and appear first. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) {
+   *   ListAdBreaksRequest request =
+   *       ListAdBreaksRequest.newBuilder()
+   *           .setParent(LiveStreamEventName.of("[NETWORK_CODE]", "[LIVE_STREAM_EVENT]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   ApiFuture future =
+   *       adBreakServiceClient.listAdBreaksPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (AdBreak element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listAdBreaksPagedCallable() { + return stub.listAdBreaksPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `AdBreak` objects. + * + *

By default, when no `orderBy` query parameter is specified, ad breaks are ordered reverse + * chronologically. However, ad breaks with a 'breakState' of 'SCHEDULED' or 'DECISIONED' are + * prioritized and appear first. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) {
+   *   ListAdBreaksRequest request =
+   *       ListAdBreaksRequest.newBuilder()
+   *           .setParent(LiveStreamEventName.of("[NETWORK_CODE]", "[LIVE_STREAM_EVENT]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   while (true) {
+   *     ListAdBreaksResponse response = adBreakServiceClient.listAdBreaksCallable().call(request);
+   *     for (AdBreak element : response.getAdBreaksList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listAdBreaksCallable() { + return stub.listAdBreaksCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to create an `AdBreak` object. + * + *

Informs DAI of an upcoming ad break for a live stream event, with an optional expected start + * time. DAI will begin decisioning ads for the break shortly before the expected start time, if + * provided. Each live stream event can only have one incomplete ad break at any given time. The + * next ad break can be scheduled after the previous ad break has started serving, indicated by + * its state being [`COMPLETE`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.COMPLETE], + * or it has been deleted. + * + *

This method cannot be used if the `LiveStreamEvent` has [prefetching ad breaks + * enabled](https://developers.google.com/ad-manager/api/reference/latest/LiveStreamEventService.LiveStreamEvent#prefetchenabled) + * or the event is not active. If a `LiveStreamEvent` is deactivated after creating an ad break + * and before the ad break is complete, the ad break is discarded. + * + *

An ad break's state is complete when the following occurs: - Full service DAI: after a + * matching ad break shows in the `LiveStreamEvent` manifest only when the ad break has started + * decisioning. - Pod Serving: after the ad break is requested using the ad break ID or break + * sequence. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) {
+   *   LiveStreamEventName parent = LiveStreamEventName.of("[NETWORK_CODE]", "[LIVE_STREAM_EVENT]");
+   *   AdBreak adBreak = AdBreak.newBuilder().build();
+   *   AdBreak response = adBreakServiceClient.createAdBreak(parent, adBreak);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where this `AdBreak` will be created identified by + * an asset key or custom asset key. + *

Formats: `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}` + * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}` + * @param adBreak Required. The `AdBreak` to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AdBreak createAdBreak(LiveStreamEventName parent, AdBreak adBreak) { + CreateAdBreakRequest request = + CreateAdBreakRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setAdBreak(adBreak) + .build(); + return createAdBreak(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to create an `AdBreak` object. + * + *

Informs DAI of an upcoming ad break for a live stream event, with an optional expected start + * time. DAI will begin decisioning ads for the break shortly before the expected start time, if + * provided. Each live stream event can only have one incomplete ad break at any given time. The + * next ad break can be scheduled after the previous ad break has started serving, indicated by + * its state being [`COMPLETE`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.COMPLETE], + * or it has been deleted. + * + *

This method cannot be used if the `LiveStreamEvent` has [prefetching ad breaks + * enabled](https://developers.google.com/ad-manager/api/reference/latest/LiveStreamEventService.LiveStreamEvent#prefetchenabled) + * or the event is not active. If a `LiveStreamEvent` is deactivated after creating an ad break + * and before the ad break is complete, the ad break is discarded. + * + *

An ad break's state is complete when the following occurs: - Full service DAI: after a + * matching ad break shows in the `LiveStreamEvent` manifest only when the ad break has started + * decisioning. - Pod Serving: after the ad break is requested using the ad break ID or break + * sequence. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) {
+   *   String parent = LiveStreamEventName.of("[NETWORK_CODE]", "[LIVE_STREAM_EVENT]").toString();
+   *   AdBreak adBreak = AdBreak.newBuilder().build();
+   *   AdBreak response = adBreakServiceClient.createAdBreak(parent, adBreak);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where this `AdBreak` will be created identified by + * an asset key or custom asset key. + *

Formats: `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}` + * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}` + * @param adBreak Required. The `AdBreak` to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AdBreak createAdBreak(String parent, AdBreak adBreak) { + CreateAdBreakRequest request = + CreateAdBreakRequest.newBuilder().setParent(parent).setAdBreak(adBreak).build(); + return createAdBreak(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to create an `AdBreak` object. + * + *

Informs DAI of an upcoming ad break for a live stream event, with an optional expected start + * time. DAI will begin decisioning ads for the break shortly before the expected start time, if + * provided. Each live stream event can only have one incomplete ad break at any given time. The + * next ad break can be scheduled after the previous ad break has started serving, indicated by + * its state being [`COMPLETE`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.COMPLETE], + * or it has been deleted. + * + *

This method cannot be used if the `LiveStreamEvent` has [prefetching ad breaks + * enabled](https://developers.google.com/ad-manager/api/reference/latest/LiveStreamEventService.LiveStreamEvent#prefetchenabled) + * or the event is not active. If a `LiveStreamEvent` is deactivated after creating an ad break + * and before the ad break is complete, the ad break is discarded. + * + *

An ad break's state is complete when the following occurs: - Full service DAI: after a + * matching ad break shows in the `LiveStreamEvent` manifest only when the ad break has started + * decisioning. - Pod Serving: after the ad break is requested using the ad break ID or break + * sequence. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) {
+   *   CreateAdBreakRequest request =
+   *       CreateAdBreakRequest.newBuilder()
+   *           .setParent(LiveStreamEventName.of("[NETWORK_CODE]", "[LIVE_STREAM_EVENT]").toString())
+   *           .setAdBreak(AdBreak.newBuilder().build())
+   *           .build();
+   *   AdBreak response = adBreakServiceClient.createAdBreak(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 AdBreak createAdBreak(CreateAdBreakRequest request) { + return createAdBreakCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to create an `AdBreak` object. + * + *

Informs DAI of an upcoming ad break for a live stream event, with an optional expected start + * time. DAI will begin decisioning ads for the break shortly before the expected start time, if + * provided. Each live stream event can only have one incomplete ad break at any given time. The + * next ad break can be scheduled after the previous ad break has started serving, indicated by + * its state being [`COMPLETE`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.COMPLETE], + * or it has been deleted. + * + *

This method cannot be used if the `LiveStreamEvent` has [prefetching ad breaks + * enabled](https://developers.google.com/ad-manager/api/reference/latest/LiveStreamEventService.LiveStreamEvent#prefetchenabled) + * or the event is not active. If a `LiveStreamEvent` is deactivated after creating an ad break + * and before the ad break is complete, the ad break is discarded. + * + *

An ad break's state is complete when the following occurs: - Full service DAI: after a + * matching ad break shows in the `LiveStreamEvent` manifest only when the ad break has started + * decisioning. - Pod Serving: after the ad break is requested using the ad break ID or break + * sequence. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) {
+   *   CreateAdBreakRequest request =
+   *       CreateAdBreakRequest.newBuilder()
+   *           .setParent(LiveStreamEventName.of("[NETWORK_CODE]", "[LIVE_STREAM_EVENT]").toString())
+   *           .setAdBreak(AdBreak.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = adBreakServiceClient.createAdBreakCallable().futureCall(request);
+   *   // Do something.
+   *   AdBreak response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createAdBreakCallable() { + return stub.createAdBreakCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to update an `AdBreak` object. + * + *

Modify an ad break when its state is + * [`SCHEDULED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.SCHEDULED]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) {
+   *   AdBreak adBreak = AdBreak.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   AdBreak response = adBreakServiceClient.updateAdBreak(adBreak, updateMask);
+   * }
+   * }
+ * + * @param adBreak Required. The `AdBreak` to update. + *

The `AdBreak`'s `name` is used to identify the `AdBreak` to update. + * @param updateMask Required. The list of fields to update. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AdBreak updateAdBreak(AdBreak adBreak, FieldMask updateMask) { + UpdateAdBreakRequest request = + UpdateAdBreakRequest.newBuilder().setAdBreak(adBreak).setUpdateMask(updateMask).build(); + return updateAdBreak(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to update an `AdBreak` object. + * + *

Modify an ad break when its state is + * [`SCHEDULED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.SCHEDULED]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) {
+   *   UpdateAdBreakRequest request =
+   *       UpdateAdBreakRequest.newBuilder()
+   *           .setAdBreak(AdBreak.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   AdBreak response = adBreakServiceClient.updateAdBreak(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 AdBreak updateAdBreak(UpdateAdBreakRequest request) { + return updateAdBreakCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to update an `AdBreak` object. + * + *

Modify an ad break when its state is + * [`SCHEDULED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.SCHEDULED]. + * + *

Sample code: + * + *

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

Deletes and cancels an incomplete ad break, mitigating the need to wait for the current + * break to serve before recreating an ad break. You can delete an ad break that has not started + * serving or seen in manifests, indicated by its state being + * [`SCHEDULED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.SCHEDULED] or + * [`DECISIONED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.DECISIONED]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) {
+   *   AdBreakName name = AdBreakName.of("[NETWORK_CODE]", "[ASSET_KEY]", "[AD_BREAK]");
+   *   adBreakServiceClient.deleteAdBreak(name);
+   * }
+   * }
+ * + * @param name Required. The name of the ad break to delete. + *

Format: + * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteAdBreak(AdBreakName name) { + DeleteAdBreakRequest request = + DeleteAdBreakRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteAdBreak(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to delete an `AdBreak` object. + * + *

Deletes and cancels an incomplete ad break, mitigating the need to wait for the current + * break to serve before recreating an ad break. You can delete an ad break that has not started + * serving or seen in manifests, indicated by its state being + * [`SCHEDULED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.SCHEDULED] or + * [`DECISIONED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.DECISIONED]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) {
+   *   String name = AdBreakName.of("[NETWORK_CODE]", "[ASSET_KEY]", "[AD_BREAK]").toString();
+   *   adBreakServiceClient.deleteAdBreak(name);
+   * }
+   * }
+ * + * @param name Required. The name of the ad break to delete. + *

Format: + * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteAdBreak(String name) { + DeleteAdBreakRequest request = DeleteAdBreakRequest.newBuilder().setName(name).build(); + deleteAdBreak(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to delete an `AdBreak` object. + * + *

Deletes and cancels an incomplete ad break, mitigating the need to wait for the current + * break to serve before recreating an ad break. You can delete an ad break that has not started + * serving or seen in manifests, indicated by its state being + * [`SCHEDULED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.SCHEDULED] or + * [`DECISIONED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.DECISIONED]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) {
+   *   DeleteAdBreakRequest request =
+   *       DeleteAdBreakRequest.newBuilder()
+   *           .setName(AdBreakName.of("[NETWORK_CODE]", "[ASSET_KEY]", "[AD_BREAK]").toString())
+   *           .build();
+   *   adBreakServiceClient.deleteAdBreak(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteAdBreak(DeleteAdBreakRequest request) { + deleteAdBreakCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to delete an `AdBreak` object. + * + *

Deletes and cancels an incomplete ad break, mitigating the need to wait for the current + * break to serve before recreating an ad break. You can delete an ad break that has not started + * serving or seen in manifests, indicated by its state being + * [`SCHEDULED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.SCHEDULED] or + * [`DECISIONED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.DECISIONED]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) {
+   *   DeleteAdBreakRequest request =
+   *       DeleteAdBreakRequest.newBuilder()
+   *           .setName(AdBreakName.of("[NETWORK_CODE]", "[ASSET_KEY]", "[AD_BREAK]").toString())
+   *           .build();
+   *   ApiFuture future = adBreakServiceClient.deleteAdBreakCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteAdBreakCallable() { + return stub.deleteAdBreakCallable(); + } + + @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 ListAdBreaksPagedResponse + extends AbstractPagedListResponse< + ListAdBreaksRequest, + ListAdBreaksResponse, + AdBreak, + ListAdBreaksPage, + ListAdBreaksFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAdBreaksPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListAdBreaksPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListAdBreaksPagedResponse(ListAdBreaksPage page) { + super(page, ListAdBreaksFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListAdBreaksPage + extends AbstractPage { + + private ListAdBreaksPage( + PageContext context, + ListAdBreaksResponse response) { + super(context, response); + } + + private static ListAdBreaksPage createEmptyPage() { + return new ListAdBreaksPage(null, null); + } + + @Override + protected ListAdBreaksPage createPage( + PageContext context, + ListAdBreaksResponse response) { + return new ListAdBreaksPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListAdBreaksFixedSizeCollection + extends AbstractFixedSizeCollection< + ListAdBreaksRequest, + ListAdBreaksResponse, + AdBreak, + ListAdBreaksPage, + ListAdBreaksFixedSizeCollection> { + + private ListAdBreaksFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListAdBreaksFixedSizeCollection createEmptyCollection() { + return new ListAdBreaksFixedSizeCollection(null, 0); + } + + @Override + protected ListAdBreaksFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListAdBreaksFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdBreakServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdBreakServiceSettings.java new file mode 100644 index 000000000000..f74294d2e967 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdBreakServiceSettings.java @@ -0,0 +1,245 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1; + +import static com.google.ads.admanager.v1.AdBreakServiceClient.ListAdBreaksPagedResponse; + +import com.google.ads.admanager.v1.stub.AdBreakServiceStubSettings; +import com.google.api.core.ApiFunction; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link AdBreakServiceClient}. + * + *

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

    + *
  • The default service address (admanager.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 getAdBreak: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AdBreakServiceSettings.Builder adBreakServiceSettingsBuilder =
+ *     AdBreakServiceSettings.newBuilder();
+ * adBreakServiceSettingsBuilder
+ *     .getAdBreakSettings()
+ *     .setRetrySettings(
+ *         adBreakServiceSettingsBuilder
+ *             .getAdBreakSettings()
+ *             .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());
+ * AdBreakServiceSettings adBreakServiceSettings = adBreakServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class AdBreakServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to getAdBreak. */ + public UnaryCallSettings getAdBreakSettings() { + return ((AdBreakServiceStubSettings) getStubSettings()).getAdBreakSettings(); + } + + /** Returns the object with the settings used for calls to listAdBreaks. */ + public PagedCallSettings + listAdBreaksSettings() { + return ((AdBreakServiceStubSettings) getStubSettings()).listAdBreaksSettings(); + } + + /** Returns the object with the settings used for calls to createAdBreak. */ + public UnaryCallSettings createAdBreakSettings() { + return ((AdBreakServiceStubSettings) getStubSettings()).createAdBreakSettings(); + } + + /** Returns the object with the settings used for calls to updateAdBreak. */ + public UnaryCallSettings updateAdBreakSettings() { + return ((AdBreakServiceStubSettings) getStubSettings()).updateAdBreakSettings(); + } + + /** Returns the object with the settings used for calls to deleteAdBreak. */ + public UnaryCallSettings deleteAdBreakSettings() { + return ((AdBreakServiceStubSettings) getStubSettings()).deleteAdBreakSettings(); + } + + public static final AdBreakServiceSettings create(AdBreakServiceStubSettings stub) + throws IOException { + return new AdBreakServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return AdBreakServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return AdBreakServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return AdBreakServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return AdBreakServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return AdBreakServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return AdBreakServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return AdBreakServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected AdBreakServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for AdBreakServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(AdBreakServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(AdBreakServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(AdBreakServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(AdBreakServiceStubSettings.newBuilder()); + } + + public AdBreakServiceStubSettings.Builder getStubSettingsBuilder() { + return ((AdBreakServiceStubSettings.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 getAdBreak. */ + public UnaryCallSettings.Builder getAdBreakSettings() { + return getStubSettingsBuilder().getAdBreakSettings(); + } + + /** Returns the builder for the settings used for calls to listAdBreaks. */ + public PagedCallSettings.Builder< + ListAdBreaksRequest, ListAdBreaksResponse, ListAdBreaksPagedResponse> + listAdBreaksSettings() { + return getStubSettingsBuilder().listAdBreaksSettings(); + } + + /** Returns the builder for the settings used for calls to createAdBreak. */ + public UnaryCallSettings.Builder createAdBreakSettings() { + return getStubSettingsBuilder().createAdBreakSettings(); + } + + /** Returns the builder for the settings used for calls to updateAdBreak. */ + public UnaryCallSettings.Builder updateAdBreakSettings() { + return getStubSettingsBuilder().updateAdBreakSettings(); + } + + /** Returns the builder for the settings used for calls to deleteAdBreak. */ + public UnaryCallSettings.Builder deleteAdBreakSettings() { + return getStubSettingsBuilder().deleteAdBreakSettings(); + } + + @Override + public AdBreakServiceSettings build() throws IOException { + return new AdBreakServiceSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BandwidthGroupServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BandwidthGroupServiceClient.java new file mode 100644 index 000000000000..1138196c995b --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BandwidthGroupServiceClient.java @@ -0,0 +1,613 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1; + +import com.google.ads.admanager.v1.stub.BandwidthGroupServiceStub; +import com.google.ads.admanager.v1.stub.BandwidthGroupServiceStubSettings; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.util.concurrent.MoreExecutors; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Provides methods for handling `BandwidthGroup` objects. + * + *

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 (BandwidthGroupServiceClient bandwidthGroupServiceClient =
+ *     BandwidthGroupServiceClient.create()) {
+ *   BandwidthGroupName name = BandwidthGroupName.of("[NETWORK_CODE]", "[BANDWIDTH_GROUP]");
+ *   BandwidthGroup response = bandwidthGroupServiceClient.getBandwidthGroup(name);
+ * }
+ * }
+ * + *

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

GetBandwidthGroup

API to retrieve a `BandwidthGroup` object.

+ *

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

+ *
    + *
  • getBandwidthGroup(GetBandwidthGroupRequest request) + *

+ *

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

+ *
    + *
  • getBandwidthGroup(BandwidthGroupName name) + *

  • getBandwidthGroup(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.

+ *
    + *
  • getBandwidthGroupCallable() + *

+ *

ListBandwidthGroups

API to retrieve a list of `BandwidthGroup` objects.

+ *

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

+ *
    + *
  • listBandwidthGroups(ListBandwidthGroupsRequest request) + *

+ *

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

+ *
    + *
  • listBandwidthGroups(NetworkName parent) + *

  • listBandwidthGroups(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.

+ *
    + *
  • listBandwidthGroupsPagedCallable() + *

  • listBandwidthGroupsCallable() + *

+ *
+ * + *

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 BandwidthGroupServiceSettings + * 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
+ * BandwidthGroupServiceSettings bandwidthGroupServiceSettings =
+ *     BandwidthGroupServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * BandwidthGroupServiceClient bandwidthGroupServiceClient =
+ *     BandwidthGroupServiceClient.create(bandwidthGroupServiceSettings);
+ * }
+ * + *

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
+ * BandwidthGroupServiceSettings bandwidthGroupServiceSettings =
+ *     BandwidthGroupServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * BandwidthGroupServiceClient bandwidthGroupServiceClient =
+ *     BandwidthGroupServiceClient.create(bandwidthGroupServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class BandwidthGroupServiceClient implements BackgroundResource { + private final BandwidthGroupServiceSettings settings; + private final BandwidthGroupServiceStub stub; + + /** Constructs an instance of BandwidthGroupServiceClient with default settings. */ + public static final BandwidthGroupServiceClient create() throws IOException { + return create(BandwidthGroupServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of BandwidthGroupServiceClient, 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 BandwidthGroupServiceClient create(BandwidthGroupServiceSettings settings) + throws IOException { + return new BandwidthGroupServiceClient(settings); + } + + /** + * Constructs an instance of BandwidthGroupServiceClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(BandwidthGroupServiceSettings). + */ + public static final BandwidthGroupServiceClient create(BandwidthGroupServiceStub stub) { + return new BandwidthGroupServiceClient(stub); + } + + /** + * Constructs an instance of BandwidthGroupServiceClient, 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 BandwidthGroupServiceClient(BandwidthGroupServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((BandwidthGroupServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected BandwidthGroupServiceClient(BandwidthGroupServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final BandwidthGroupServiceSettings getSettings() { + return settings; + } + + public BandwidthGroupServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `BandwidthGroup` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BandwidthGroupServiceClient bandwidthGroupServiceClient =
+   *     BandwidthGroupServiceClient.create()) {
+   *   BandwidthGroupName name = BandwidthGroupName.of("[NETWORK_CODE]", "[BANDWIDTH_GROUP]");
+   *   BandwidthGroup response = bandwidthGroupServiceClient.getBandwidthGroup(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the BandwidthGroup. Format: + * `networks/{network_code}/bandwidthGroups/{bandwidth_group_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BandwidthGroup getBandwidthGroup(BandwidthGroupName name) { + GetBandwidthGroupRequest request = + GetBandwidthGroupRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getBandwidthGroup(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `BandwidthGroup` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BandwidthGroupServiceClient bandwidthGroupServiceClient =
+   *     BandwidthGroupServiceClient.create()) {
+   *   String name = BandwidthGroupName.of("[NETWORK_CODE]", "[BANDWIDTH_GROUP]").toString();
+   *   BandwidthGroup response = bandwidthGroupServiceClient.getBandwidthGroup(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the BandwidthGroup. Format: + * `networks/{network_code}/bandwidthGroups/{bandwidth_group_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BandwidthGroup getBandwidthGroup(String name) { + GetBandwidthGroupRequest request = GetBandwidthGroupRequest.newBuilder().setName(name).build(); + return getBandwidthGroup(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `BandwidthGroup` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BandwidthGroupServiceClient bandwidthGroupServiceClient =
+   *     BandwidthGroupServiceClient.create()) {
+   *   GetBandwidthGroupRequest request =
+   *       GetBandwidthGroupRequest.newBuilder()
+   *           .setName(BandwidthGroupName.of("[NETWORK_CODE]", "[BANDWIDTH_GROUP]").toString())
+   *           .build();
+   *   BandwidthGroup response = bandwidthGroupServiceClient.getBandwidthGroup(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 BandwidthGroup getBandwidthGroup(GetBandwidthGroupRequest request) { + return getBandwidthGroupCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `BandwidthGroup` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BandwidthGroupServiceClient bandwidthGroupServiceClient =
+   *     BandwidthGroupServiceClient.create()) {
+   *   GetBandwidthGroupRequest request =
+   *       GetBandwidthGroupRequest.newBuilder()
+   *           .setName(BandwidthGroupName.of("[NETWORK_CODE]", "[BANDWIDTH_GROUP]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       bandwidthGroupServiceClient.getBandwidthGroupCallable().futureCall(request);
+   *   // Do something.
+   *   BandwidthGroup response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getBandwidthGroupCallable() { + return stub.getBandwidthGroupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `BandwidthGroup` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BandwidthGroupServiceClient bandwidthGroupServiceClient =
+   *     BandwidthGroupServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   for (BandwidthGroup element :
+   *       bandwidthGroupServiceClient.listBandwidthGroups(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of BandwidthGroups. Format: + * `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBandwidthGroupsPagedResponse listBandwidthGroups(NetworkName parent) { + ListBandwidthGroupsRequest request = + ListBandwidthGroupsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listBandwidthGroups(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `BandwidthGroup` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BandwidthGroupServiceClient bandwidthGroupServiceClient =
+   *     BandwidthGroupServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   for (BandwidthGroup element :
+   *       bandwidthGroupServiceClient.listBandwidthGroups(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of BandwidthGroups. Format: + * `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBandwidthGroupsPagedResponse listBandwidthGroups(String parent) { + ListBandwidthGroupsRequest request = + ListBandwidthGroupsRequest.newBuilder().setParent(parent).build(); + return listBandwidthGroups(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `BandwidthGroup` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BandwidthGroupServiceClient bandwidthGroupServiceClient =
+   *     BandwidthGroupServiceClient.create()) {
+   *   ListBandwidthGroupsRequest request =
+   *       ListBandwidthGroupsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   for (BandwidthGroup element :
+   *       bandwidthGroupServiceClient.listBandwidthGroups(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 ListBandwidthGroupsPagedResponse listBandwidthGroups( + ListBandwidthGroupsRequest request) { + return listBandwidthGroupsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `BandwidthGroup` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BandwidthGroupServiceClient bandwidthGroupServiceClient =
+   *     BandwidthGroupServiceClient.create()) {
+   *   ListBandwidthGroupsRequest request =
+   *       ListBandwidthGroupsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   ApiFuture future =
+   *       bandwidthGroupServiceClient.listBandwidthGroupsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (BandwidthGroup element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listBandwidthGroupsPagedCallable() { + return stub.listBandwidthGroupsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `BandwidthGroup` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BandwidthGroupServiceClient bandwidthGroupServiceClient =
+   *     BandwidthGroupServiceClient.create()) {
+   *   ListBandwidthGroupsRequest request =
+   *       ListBandwidthGroupsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   while (true) {
+   *     ListBandwidthGroupsResponse response =
+   *         bandwidthGroupServiceClient.listBandwidthGroupsCallable().call(request);
+   *     for (BandwidthGroup element : response.getBandwidthGroupsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listBandwidthGroupsCallable() { + return stub.listBandwidthGroupsCallable(); + } + + @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 ListBandwidthGroupsPagedResponse + extends AbstractPagedListResponse< + ListBandwidthGroupsRequest, + ListBandwidthGroupsResponse, + BandwidthGroup, + ListBandwidthGroupsPage, + ListBandwidthGroupsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListBandwidthGroupsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListBandwidthGroupsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListBandwidthGroupsPagedResponse(ListBandwidthGroupsPage page) { + super(page, ListBandwidthGroupsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListBandwidthGroupsPage + extends AbstractPage< + ListBandwidthGroupsRequest, + ListBandwidthGroupsResponse, + BandwidthGroup, + ListBandwidthGroupsPage> { + + private ListBandwidthGroupsPage( + PageContext + context, + ListBandwidthGroupsResponse response) { + super(context, response); + } + + private static ListBandwidthGroupsPage createEmptyPage() { + return new ListBandwidthGroupsPage(null, null); + } + + @Override + protected ListBandwidthGroupsPage createPage( + PageContext + context, + ListBandwidthGroupsResponse response) { + return new ListBandwidthGroupsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListBandwidthGroupsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListBandwidthGroupsRequest, + ListBandwidthGroupsResponse, + BandwidthGroup, + ListBandwidthGroupsPage, + ListBandwidthGroupsFixedSizeCollection> { + + private ListBandwidthGroupsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListBandwidthGroupsFixedSizeCollection createEmptyCollection() { + return new ListBandwidthGroupsFixedSizeCollection(null, 0); + } + + @Override + protected ListBandwidthGroupsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListBandwidthGroupsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BandwidthGroupServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BandwidthGroupServiceSettings.java new file mode 100644 index 000000000000..4b7dd343b985 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BandwidthGroupServiceSettings.java @@ -0,0 +1,220 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1; + +import static com.google.ads.admanager.v1.BandwidthGroupServiceClient.ListBandwidthGroupsPagedResponse; + +import com.google.ads.admanager.v1.stub.BandwidthGroupServiceStubSettings; +import com.google.api.core.ApiFunction; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link BandwidthGroupServiceClient}. + * + *

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

    + *
  • The default service address (admanager.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 getBandwidthGroup: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * BandwidthGroupServiceSettings.Builder bandwidthGroupServiceSettingsBuilder =
+ *     BandwidthGroupServiceSettings.newBuilder();
+ * bandwidthGroupServiceSettingsBuilder
+ *     .getBandwidthGroupSettings()
+ *     .setRetrySettings(
+ *         bandwidthGroupServiceSettingsBuilder
+ *             .getBandwidthGroupSettings()
+ *             .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());
+ * BandwidthGroupServiceSettings bandwidthGroupServiceSettings =
+ *     bandwidthGroupServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class BandwidthGroupServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to getBandwidthGroup. */ + public UnaryCallSettings getBandwidthGroupSettings() { + return ((BandwidthGroupServiceStubSettings) getStubSettings()).getBandwidthGroupSettings(); + } + + /** Returns the object with the settings used for calls to listBandwidthGroups. */ + public PagedCallSettings< + ListBandwidthGroupsRequest, ListBandwidthGroupsResponse, ListBandwidthGroupsPagedResponse> + listBandwidthGroupsSettings() { + return ((BandwidthGroupServiceStubSettings) getStubSettings()).listBandwidthGroupsSettings(); + } + + public static final BandwidthGroupServiceSettings create(BandwidthGroupServiceStubSettings stub) + throws IOException { + return new BandwidthGroupServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return BandwidthGroupServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return BandwidthGroupServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return BandwidthGroupServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return BandwidthGroupServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return BandwidthGroupServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return BandwidthGroupServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return BandwidthGroupServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected BandwidthGroupServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for BandwidthGroupServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(BandwidthGroupServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(BandwidthGroupServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(BandwidthGroupServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(BandwidthGroupServiceStubSettings.newBuilder()); + } + + public BandwidthGroupServiceStubSettings.Builder getStubSettingsBuilder() { + return ((BandwidthGroupServiceStubSettings.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 getBandwidthGroup. */ + public UnaryCallSettings.Builder + getBandwidthGroupSettings() { + return getStubSettingsBuilder().getBandwidthGroupSettings(); + } + + /** Returns the builder for the settings used for calls to listBandwidthGroups. */ + public PagedCallSettings.Builder< + ListBandwidthGroupsRequest, + ListBandwidthGroupsResponse, + ListBandwidthGroupsPagedResponse> + listBandwidthGroupsSettings() { + return getStubSettingsBuilder().listBandwidthGroupsSettings(); + } + + @Override + public BandwidthGroupServiceSettings build() throws IOException { + return new BandwidthGroupServiceSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueServiceClient.java index 91ff6dc97d5e..1676c113a285 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueServiceClient.java @@ -48,8 +48,7 @@ * try (CustomTargetingValueServiceClient customTargetingValueServiceClient = * CustomTargetingValueServiceClient.create()) { * CustomTargetingValueName name = - * CustomTargetingValueName.of( - * "[NETWORK_CODE]", "[CUSTOM_TARGETING_KEY]", "[CUSTOM_TARGETING_VALUE]"); + * CustomTargetingValueName.of("[NETWORK_CODE]", "[CUSTOM_TARGETING_VALUE]"); * CustomTargetingValue response = * customTargetingValueServiceClient.getCustomTargetingValue(name); * } @@ -95,7 +94,7 @@ * *

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

*
    - *
  • listCustomTargetingValues(CustomTargetingKeyName parent) + *

  • listCustomTargetingValues(NetworkName parent) *

  • listCustomTargetingValues(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.

@@ -216,15 +215,14 @@ public CustomTargetingValueServiceStub getStub() { * try (CustomTargetingValueServiceClient customTargetingValueServiceClient = * CustomTargetingValueServiceClient.create()) { * CustomTargetingValueName name = - * CustomTargetingValueName.of( - * "[NETWORK_CODE]", "[CUSTOM_TARGETING_KEY]", "[CUSTOM_TARGETING_VALUE]"); + * CustomTargetingValueName.of("[NETWORK_CODE]", "[CUSTOM_TARGETING_VALUE]"); * CustomTargetingValue response = * customTargetingValueServiceClient.getCustomTargetingValue(name); * } * } * * @param name Required. The resource name of the CustomTargetingValue. Format: - * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}/customTargetingValues/{custom_targeting_value_id}` + * `networks/{network_code}/customTargetingValues/{custom_targeting_value_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final CustomTargetingValue getCustomTargetingValue(CustomTargetingValueName name) { @@ -250,16 +248,14 @@ public final CustomTargetingValue getCustomTargetingValue(CustomTargetingValueNa * try (CustomTargetingValueServiceClient customTargetingValueServiceClient = * CustomTargetingValueServiceClient.create()) { * String name = - * CustomTargetingValueName.of( - * "[NETWORK_CODE]", "[CUSTOM_TARGETING_KEY]", "[CUSTOM_TARGETING_VALUE]") - * .toString(); + * CustomTargetingValueName.of("[NETWORK_CODE]", "[CUSTOM_TARGETING_VALUE]").toString(); * CustomTargetingValue response = * customTargetingValueServiceClient.getCustomTargetingValue(name); * } * } * * @param name Required. The resource name of the CustomTargetingValue. Format: - * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}/customTargetingValues/{custom_targeting_value_id}` + * `networks/{network_code}/customTargetingValues/{custom_targeting_value_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final CustomTargetingValue getCustomTargetingValue(String name) { @@ -285,8 +281,7 @@ public final CustomTargetingValue getCustomTargetingValue(String name) { * GetCustomTargetingValueRequest request = * GetCustomTargetingValueRequest.newBuilder() * .setName( - * CustomTargetingValueName.of( - * "[NETWORK_CODE]", "[CUSTOM_TARGETING_KEY]", "[CUSTOM_TARGETING_VALUE]") + * CustomTargetingValueName.of("[NETWORK_CODE]", "[CUSTOM_TARGETING_VALUE]") * .toString()) * .build(); * CustomTargetingValue response = @@ -319,8 +314,7 @@ public final CustomTargetingValue getCustomTargetingValue( * GetCustomTargetingValueRequest request = * GetCustomTargetingValueRequest.newBuilder() * .setName( - * CustomTargetingValueName.of( - * "[NETWORK_CODE]", "[CUSTOM_TARGETING_KEY]", "[CUSTOM_TARGETING_VALUE]") + * CustomTargetingValueName.of("[NETWORK_CODE]", "[CUSTOM_TARGETING_VALUE]") * .toString()) * .build(); * ApiFuture future = @@ -349,8 +343,7 @@ public final CustomTargetingValue getCustomTargetingValue( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CustomTargetingValueServiceClient customTargetingValueServiceClient = * CustomTargetingValueServiceClient.create()) { - * CustomTargetingKeyName parent = - * CustomTargetingKeyName.of("[NETWORK_CODE]", "[CUSTOM_TARGETING_KEY]"); + * NetworkName parent = NetworkName.of("[NETWORK_CODE]"); * for (CustomTargetingValue element : * customTargetingValueServiceClient.listCustomTargetingValues(parent).iterateAll()) { * // doThingsWith(element); @@ -359,11 +352,11 @@ public final CustomTargetingValue getCustomTargetingValue( * } * * @param parent Required. The parent, which owns this collection of CustomTargetingValues. - * Format: `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` + * Format: `networks/{network_code}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListCustomTargetingValuesPagedResponse listCustomTargetingValues( - CustomTargetingKeyName parent) { + NetworkName parent) { ListCustomTargetingValuesRequest request = ListCustomTargetingValuesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -385,8 +378,7 @@ public final ListCustomTargetingValuesPagedResponse listCustomTargetingValues( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CustomTargetingValueServiceClient customTargetingValueServiceClient = * CustomTargetingValueServiceClient.create()) { - * String parent = - * CustomTargetingKeyName.of("[NETWORK_CODE]", "[CUSTOM_TARGETING_KEY]").toString(); + * String parent = NetworkName.of("[NETWORK_CODE]").toString(); * for (CustomTargetingValue element : * customTargetingValueServiceClient.listCustomTargetingValues(parent).iterateAll()) { * // doThingsWith(element); @@ -395,7 +387,7 @@ public final ListCustomTargetingValuesPagedResponse listCustomTargetingValues( * } * * @param parent Required. The parent, which owns this collection of CustomTargetingValues. - * Format: `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` + * Format: `networks/{network_code}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListCustomTargetingValuesPagedResponse listCustomTargetingValues(String parent) { @@ -420,8 +412,7 @@ public final ListCustomTargetingValuesPagedResponse listCustomTargetingValues(St * CustomTargetingValueServiceClient.create()) { * ListCustomTargetingValuesRequest request = * ListCustomTargetingValuesRequest.newBuilder() - * .setParent( - * CustomTargetingKeyName.of("[NETWORK_CODE]", "[CUSTOM_TARGETING_KEY]").toString()) + * .setParent(NetworkName.of("[NETWORK_CODE]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setFilter("filter-1274492040") @@ -459,8 +450,7 @@ public final ListCustomTargetingValuesPagedResponse listCustomTargetingValues( * CustomTargetingValueServiceClient.create()) { * ListCustomTargetingValuesRequest request = * ListCustomTargetingValuesRequest.newBuilder() - * .setParent( - * CustomTargetingKeyName.of("[NETWORK_CODE]", "[CUSTOM_TARGETING_KEY]").toString()) + * .setParent(NetworkName.of("[NETWORK_CODE]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setFilter("filter-1274492040") @@ -500,8 +490,7 @@ public final ListCustomTargetingValuesPagedResponse listCustomTargetingValues( * CustomTargetingValueServiceClient.create()) { * ListCustomTargetingValuesRequest request = * ListCustomTargetingValuesRequest.newBuilder() - * .setParent( - * CustomTargetingKeyName.of("[NETWORK_CODE]", "[CUSTOM_TARGETING_KEY]").toString()) + * .setParent(NetworkName.of("[NETWORK_CODE]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setFilter("filter-1274492040") diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DeviceCategoryServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DeviceCategoryServiceClient.java new file mode 100644 index 000000000000..f1d95a4627c2 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DeviceCategoryServiceClient.java @@ -0,0 +1,613 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1; + +import com.google.ads.admanager.v1.stub.DeviceCategoryServiceStub; +import com.google.ads.admanager.v1.stub.DeviceCategoryServiceStubSettings; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.util.concurrent.MoreExecutors; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Provides methods for handling `DeviceCategory` objects. + * + *

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 (DeviceCategoryServiceClient deviceCategoryServiceClient =
+ *     DeviceCategoryServiceClient.create()) {
+ *   DeviceCategoryName name = DeviceCategoryName.of("[NETWORK_CODE]", "[DEVICE_CATEGORY]");
+ *   DeviceCategory response = deviceCategoryServiceClient.getDeviceCategory(name);
+ * }
+ * }
+ * + *

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

GetDeviceCategory

API to retrieve a `DeviceCategory` object.

+ *

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

+ *
    + *
  • getDeviceCategory(GetDeviceCategoryRequest request) + *

+ *

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

+ *
    + *
  • getDeviceCategory(DeviceCategoryName name) + *

  • getDeviceCategory(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.

+ *
    + *
  • getDeviceCategoryCallable() + *

+ *

ListDeviceCategories

API to retrieve a list of `DeviceCategory` objects.

+ *

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

+ *
    + *
  • listDeviceCategories(ListDeviceCategoriesRequest request) + *

+ *

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

+ *
    + *
  • listDeviceCategories(NetworkName parent) + *

  • listDeviceCategories(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.

+ *
    + *
  • listDeviceCategoriesPagedCallable() + *

  • listDeviceCategoriesCallable() + *

+ *
+ * + *

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 DeviceCategoryServiceSettings + * 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
+ * DeviceCategoryServiceSettings deviceCategoryServiceSettings =
+ *     DeviceCategoryServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * DeviceCategoryServiceClient deviceCategoryServiceClient =
+ *     DeviceCategoryServiceClient.create(deviceCategoryServiceSettings);
+ * }
+ * + *

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
+ * DeviceCategoryServiceSettings deviceCategoryServiceSettings =
+ *     DeviceCategoryServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * DeviceCategoryServiceClient deviceCategoryServiceClient =
+ *     DeviceCategoryServiceClient.create(deviceCategoryServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class DeviceCategoryServiceClient implements BackgroundResource { + private final DeviceCategoryServiceSettings settings; + private final DeviceCategoryServiceStub stub; + + /** Constructs an instance of DeviceCategoryServiceClient with default settings. */ + public static final DeviceCategoryServiceClient create() throws IOException { + return create(DeviceCategoryServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of DeviceCategoryServiceClient, 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 DeviceCategoryServiceClient create(DeviceCategoryServiceSettings settings) + throws IOException { + return new DeviceCategoryServiceClient(settings); + } + + /** + * Constructs an instance of DeviceCategoryServiceClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(DeviceCategoryServiceSettings). + */ + public static final DeviceCategoryServiceClient create(DeviceCategoryServiceStub stub) { + return new DeviceCategoryServiceClient(stub); + } + + /** + * Constructs an instance of DeviceCategoryServiceClient, 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 DeviceCategoryServiceClient(DeviceCategoryServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((DeviceCategoryServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected DeviceCategoryServiceClient(DeviceCategoryServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final DeviceCategoryServiceSettings getSettings() { + return settings; + } + + public DeviceCategoryServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `DeviceCategory` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DeviceCategoryServiceClient deviceCategoryServiceClient =
+   *     DeviceCategoryServiceClient.create()) {
+   *   DeviceCategoryName name = DeviceCategoryName.of("[NETWORK_CODE]", "[DEVICE_CATEGORY]");
+   *   DeviceCategory response = deviceCategoryServiceClient.getDeviceCategory(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the DeviceCategory. Format: + * `networks/{network_code}/deviceCategories/{device_category_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DeviceCategory getDeviceCategory(DeviceCategoryName name) { + GetDeviceCategoryRequest request = + GetDeviceCategoryRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getDeviceCategory(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `DeviceCategory` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DeviceCategoryServiceClient deviceCategoryServiceClient =
+   *     DeviceCategoryServiceClient.create()) {
+   *   String name = DeviceCategoryName.of("[NETWORK_CODE]", "[DEVICE_CATEGORY]").toString();
+   *   DeviceCategory response = deviceCategoryServiceClient.getDeviceCategory(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the DeviceCategory. Format: + * `networks/{network_code}/deviceCategories/{device_category_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DeviceCategory getDeviceCategory(String name) { + GetDeviceCategoryRequest request = GetDeviceCategoryRequest.newBuilder().setName(name).build(); + return getDeviceCategory(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `DeviceCategory` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DeviceCategoryServiceClient deviceCategoryServiceClient =
+   *     DeviceCategoryServiceClient.create()) {
+   *   GetDeviceCategoryRequest request =
+   *       GetDeviceCategoryRequest.newBuilder()
+   *           .setName(DeviceCategoryName.of("[NETWORK_CODE]", "[DEVICE_CATEGORY]").toString())
+   *           .build();
+   *   DeviceCategory response = deviceCategoryServiceClient.getDeviceCategory(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 DeviceCategory getDeviceCategory(GetDeviceCategoryRequest request) { + return getDeviceCategoryCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `DeviceCategory` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DeviceCategoryServiceClient deviceCategoryServiceClient =
+   *     DeviceCategoryServiceClient.create()) {
+   *   GetDeviceCategoryRequest request =
+   *       GetDeviceCategoryRequest.newBuilder()
+   *           .setName(DeviceCategoryName.of("[NETWORK_CODE]", "[DEVICE_CATEGORY]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       deviceCategoryServiceClient.getDeviceCategoryCallable().futureCall(request);
+   *   // Do something.
+   *   DeviceCategory response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getDeviceCategoryCallable() { + return stub.getDeviceCategoryCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `DeviceCategory` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DeviceCategoryServiceClient deviceCategoryServiceClient =
+   *     DeviceCategoryServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   for (DeviceCategory element :
+   *       deviceCategoryServiceClient.listDeviceCategories(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of DeviceCategories. Format: + * `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDeviceCategoriesPagedResponse listDeviceCategories(NetworkName parent) { + ListDeviceCategoriesRequest request = + ListDeviceCategoriesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listDeviceCategories(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `DeviceCategory` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DeviceCategoryServiceClient deviceCategoryServiceClient =
+   *     DeviceCategoryServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   for (DeviceCategory element :
+   *       deviceCategoryServiceClient.listDeviceCategories(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of DeviceCategories. Format: + * `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDeviceCategoriesPagedResponse listDeviceCategories(String parent) { + ListDeviceCategoriesRequest request = + ListDeviceCategoriesRequest.newBuilder().setParent(parent).build(); + return listDeviceCategories(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `DeviceCategory` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DeviceCategoryServiceClient deviceCategoryServiceClient =
+   *     DeviceCategoryServiceClient.create()) {
+   *   ListDeviceCategoriesRequest request =
+   *       ListDeviceCategoriesRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   for (DeviceCategory element :
+   *       deviceCategoryServiceClient.listDeviceCategories(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 ListDeviceCategoriesPagedResponse listDeviceCategories( + ListDeviceCategoriesRequest request) { + return listDeviceCategoriesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `DeviceCategory` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DeviceCategoryServiceClient deviceCategoryServiceClient =
+   *     DeviceCategoryServiceClient.create()) {
+   *   ListDeviceCategoriesRequest request =
+   *       ListDeviceCategoriesRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   ApiFuture future =
+   *       deviceCategoryServiceClient.listDeviceCategoriesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (DeviceCategory element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listDeviceCategoriesPagedCallable() { + return stub.listDeviceCategoriesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `DeviceCategory` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DeviceCategoryServiceClient deviceCategoryServiceClient =
+   *     DeviceCategoryServiceClient.create()) {
+   *   ListDeviceCategoriesRequest request =
+   *       ListDeviceCategoriesRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   while (true) {
+   *     ListDeviceCategoriesResponse response =
+   *         deviceCategoryServiceClient.listDeviceCategoriesCallable().call(request);
+   *     for (DeviceCategory element : response.getDeviceCategoriesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listDeviceCategoriesCallable() { + return stub.listDeviceCategoriesCallable(); + } + + @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 ListDeviceCategoriesPagedResponse + extends AbstractPagedListResponse< + ListDeviceCategoriesRequest, + ListDeviceCategoriesResponse, + DeviceCategory, + ListDeviceCategoriesPage, + ListDeviceCategoriesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListDeviceCategoriesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListDeviceCategoriesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListDeviceCategoriesPagedResponse(ListDeviceCategoriesPage page) { + super(page, ListDeviceCategoriesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListDeviceCategoriesPage + extends AbstractPage< + ListDeviceCategoriesRequest, + ListDeviceCategoriesResponse, + DeviceCategory, + ListDeviceCategoriesPage> { + + private ListDeviceCategoriesPage( + PageContext + context, + ListDeviceCategoriesResponse response) { + super(context, response); + } + + private static ListDeviceCategoriesPage createEmptyPage() { + return new ListDeviceCategoriesPage(null, null); + } + + @Override + protected ListDeviceCategoriesPage createPage( + PageContext + context, + ListDeviceCategoriesResponse response) { + return new ListDeviceCategoriesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListDeviceCategoriesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListDeviceCategoriesRequest, + ListDeviceCategoriesResponse, + DeviceCategory, + ListDeviceCategoriesPage, + ListDeviceCategoriesFixedSizeCollection> { + + private ListDeviceCategoriesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListDeviceCategoriesFixedSizeCollection createEmptyCollection() { + return new ListDeviceCategoriesFixedSizeCollection(null, 0); + } + + @Override + protected ListDeviceCategoriesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListDeviceCategoriesFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DeviceCategoryServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DeviceCategoryServiceSettings.java new file mode 100644 index 000000000000..6bd7914a1b32 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DeviceCategoryServiceSettings.java @@ -0,0 +1,222 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1; + +import static com.google.ads.admanager.v1.DeviceCategoryServiceClient.ListDeviceCategoriesPagedResponse; + +import com.google.ads.admanager.v1.stub.DeviceCategoryServiceStubSettings; +import com.google.api.core.ApiFunction; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link DeviceCategoryServiceClient}. + * + *

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

    + *
  • The default service address (admanager.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 getDeviceCategory: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * DeviceCategoryServiceSettings.Builder deviceCategoryServiceSettingsBuilder =
+ *     DeviceCategoryServiceSettings.newBuilder();
+ * deviceCategoryServiceSettingsBuilder
+ *     .getDeviceCategorySettings()
+ *     .setRetrySettings(
+ *         deviceCategoryServiceSettingsBuilder
+ *             .getDeviceCategorySettings()
+ *             .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());
+ * DeviceCategoryServiceSettings deviceCategoryServiceSettings =
+ *     deviceCategoryServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class DeviceCategoryServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to getDeviceCategory. */ + public UnaryCallSettings getDeviceCategorySettings() { + return ((DeviceCategoryServiceStubSettings) getStubSettings()).getDeviceCategorySettings(); + } + + /** Returns the object with the settings used for calls to listDeviceCategories. */ + public PagedCallSettings< + ListDeviceCategoriesRequest, + ListDeviceCategoriesResponse, + ListDeviceCategoriesPagedResponse> + listDeviceCategoriesSettings() { + return ((DeviceCategoryServiceStubSettings) getStubSettings()).listDeviceCategoriesSettings(); + } + + public static final DeviceCategoryServiceSettings create(DeviceCategoryServiceStubSettings stub) + throws IOException { + return new DeviceCategoryServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return DeviceCategoryServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return DeviceCategoryServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DeviceCategoryServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return DeviceCategoryServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return DeviceCategoryServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return DeviceCategoryServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return DeviceCategoryServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected DeviceCategoryServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for DeviceCategoryServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(DeviceCategoryServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(DeviceCategoryServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(DeviceCategoryServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(DeviceCategoryServiceStubSettings.newBuilder()); + } + + public DeviceCategoryServiceStubSettings.Builder getStubSettingsBuilder() { + return ((DeviceCategoryServiceStubSettings.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 getDeviceCategory. */ + public UnaryCallSettings.Builder + getDeviceCategorySettings() { + return getStubSettingsBuilder().getDeviceCategorySettings(); + } + + /** Returns the builder for the settings used for calls to listDeviceCategories. */ + public PagedCallSettings.Builder< + ListDeviceCategoriesRequest, + ListDeviceCategoriesResponse, + ListDeviceCategoriesPagedResponse> + listDeviceCategoriesSettings() { + return getStubSettingsBuilder().listDeviceCategoriesSettings(); + } + + @Override + public DeviceCategoryServiceSettings build() throws IOException { + return new DeviceCategoryServiceSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/GeoTargetServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/GeoTargetServiceClient.java new file mode 100644 index 000000000000..240d8b54209b --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/GeoTargetServiceClient.java @@ -0,0 +1,588 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1; + +import com.google.ads.admanager.v1.stub.GeoTargetServiceStub; +import com.google.ads.admanager.v1.stub.GeoTargetServiceStubSettings; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.util.concurrent.MoreExecutors; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Provides methods for handling `GeoTarget` objects. + * + *

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 (GeoTargetServiceClient geoTargetServiceClient = GeoTargetServiceClient.create()) {
+ *   GeoTargetName name = GeoTargetName.of("[NETWORK_CODE]", "[GEO_TARGET]");
+ *   GeoTarget response = geoTargetServiceClient.getGeoTarget(name);
+ * }
+ * }
+ * + *

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

GetGeoTarget

API to retrieve a `GeoTarget` object.

+ *

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

+ *
    + *
  • getGeoTarget(GetGeoTargetRequest request) + *

+ *

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

+ *
    + *
  • getGeoTarget(GeoTargetName name) + *

  • getGeoTarget(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.

+ *
    + *
  • getGeoTargetCallable() + *

+ *

ListGeoTargets

API to retrieve a list of `GeoTarget` objects.

+ *

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

+ *
    + *
  • listGeoTargets(ListGeoTargetsRequest request) + *

+ *

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

+ *
    + *
  • listGeoTargets(NetworkName parent) + *

  • listGeoTargets(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.

+ *
    + *
  • listGeoTargetsPagedCallable() + *

  • listGeoTargetsCallable() + *

+ *
+ * + *

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 GeoTargetServiceSettings 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
+ * GeoTargetServiceSettings geoTargetServiceSettings =
+ *     GeoTargetServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * GeoTargetServiceClient geoTargetServiceClient =
+ *     GeoTargetServiceClient.create(geoTargetServiceSettings);
+ * }
+ * + *

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
+ * GeoTargetServiceSettings geoTargetServiceSettings =
+ *     GeoTargetServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * GeoTargetServiceClient geoTargetServiceClient =
+ *     GeoTargetServiceClient.create(geoTargetServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class GeoTargetServiceClient implements BackgroundResource { + private final GeoTargetServiceSettings settings; + private final GeoTargetServiceStub stub; + + /** Constructs an instance of GeoTargetServiceClient with default settings. */ + public static final GeoTargetServiceClient create() throws IOException { + return create(GeoTargetServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of GeoTargetServiceClient, 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 GeoTargetServiceClient create(GeoTargetServiceSettings settings) + throws IOException { + return new GeoTargetServiceClient(settings); + } + + /** + * Constructs an instance of GeoTargetServiceClient, using the given stub for making calls. This + * is for advanced usage - prefer using create(GeoTargetServiceSettings). + */ + public static final GeoTargetServiceClient create(GeoTargetServiceStub stub) { + return new GeoTargetServiceClient(stub); + } + + /** + * Constructs an instance of GeoTargetServiceClient, 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 GeoTargetServiceClient(GeoTargetServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((GeoTargetServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected GeoTargetServiceClient(GeoTargetServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final GeoTargetServiceSettings getSettings() { + return settings; + } + + public GeoTargetServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `GeoTarget` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (GeoTargetServiceClient geoTargetServiceClient = GeoTargetServiceClient.create()) {
+   *   GeoTargetName name = GeoTargetName.of("[NETWORK_CODE]", "[GEO_TARGET]");
+   *   GeoTarget response = geoTargetServiceClient.getGeoTarget(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the GeoTarget. Format: + * `networks/{network_code}/geoTargets/{geo_target_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final GeoTarget getGeoTarget(GeoTargetName name) { + GetGeoTargetRequest request = + GetGeoTargetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getGeoTarget(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `GeoTarget` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (GeoTargetServiceClient geoTargetServiceClient = GeoTargetServiceClient.create()) {
+   *   String name = GeoTargetName.of("[NETWORK_CODE]", "[GEO_TARGET]").toString();
+   *   GeoTarget response = geoTargetServiceClient.getGeoTarget(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the GeoTarget. Format: + * `networks/{network_code}/geoTargets/{geo_target_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final GeoTarget getGeoTarget(String name) { + GetGeoTargetRequest request = GetGeoTargetRequest.newBuilder().setName(name).build(); + return getGeoTarget(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `GeoTarget` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (GeoTargetServiceClient geoTargetServiceClient = GeoTargetServiceClient.create()) {
+   *   GetGeoTargetRequest request =
+   *       GetGeoTargetRequest.newBuilder()
+   *           .setName(GeoTargetName.of("[NETWORK_CODE]", "[GEO_TARGET]").toString())
+   *           .build();
+   *   GeoTarget response = geoTargetServiceClient.getGeoTarget(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 GeoTarget getGeoTarget(GetGeoTargetRequest request) { + return getGeoTargetCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `GeoTarget` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (GeoTargetServiceClient geoTargetServiceClient = GeoTargetServiceClient.create()) {
+   *   GetGeoTargetRequest request =
+   *       GetGeoTargetRequest.newBuilder()
+   *           .setName(GeoTargetName.of("[NETWORK_CODE]", "[GEO_TARGET]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       geoTargetServiceClient.getGeoTargetCallable().futureCall(request);
+   *   // Do something.
+   *   GeoTarget response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getGeoTargetCallable() { + return stub.getGeoTargetCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `GeoTarget` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (GeoTargetServiceClient geoTargetServiceClient = GeoTargetServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   for (GeoTarget element : geoTargetServiceClient.listGeoTargets(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of GeoTargets. Format: + * `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListGeoTargetsPagedResponse listGeoTargets(NetworkName parent) { + ListGeoTargetsRequest request = + ListGeoTargetsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listGeoTargets(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `GeoTarget` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (GeoTargetServiceClient geoTargetServiceClient = GeoTargetServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   for (GeoTarget element : geoTargetServiceClient.listGeoTargets(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of GeoTargets. Format: + * `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListGeoTargetsPagedResponse listGeoTargets(String parent) { + ListGeoTargetsRequest request = ListGeoTargetsRequest.newBuilder().setParent(parent).build(); + return listGeoTargets(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `GeoTarget` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (GeoTargetServiceClient geoTargetServiceClient = GeoTargetServiceClient.create()) {
+   *   ListGeoTargetsRequest request =
+   *       ListGeoTargetsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   for (GeoTarget element : geoTargetServiceClient.listGeoTargets(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 ListGeoTargetsPagedResponse listGeoTargets(ListGeoTargetsRequest request) { + return listGeoTargetsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `GeoTarget` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (GeoTargetServiceClient geoTargetServiceClient = GeoTargetServiceClient.create()) {
+   *   ListGeoTargetsRequest request =
+   *       ListGeoTargetsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   ApiFuture future =
+   *       geoTargetServiceClient.listGeoTargetsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (GeoTarget element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listGeoTargetsPagedCallable() { + return stub.listGeoTargetsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `GeoTarget` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (GeoTargetServiceClient geoTargetServiceClient = GeoTargetServiceClient.create()) {
+   *   ListGeoTargetsRequest request =
+   *       ListGeoTargetsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   while (true) {
+   *     ListGeoTargetsResponse response =
+   *         geoTargetServiceClient.listGeoTargetsCallable().call(request);
+   *     for (GeoTarget element : response.getGeoTargetsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listGeoTargetsCallable() { + return stub.listGeoTargetsCallable(); + } + + @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 ListGeoTargetsPagedResponse + extends AbstractPagedListResponse< + ListGeoTargetsRequest, + ListGeoTargetsResponse, + GeoTarget, + ListGeoTargetsPage, + ListGeoTargetsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListGeoTargetsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListGeoTargetsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListGeoTargetsPagedResponse(ListGeoTargetsPage page) { + super(page, ListGeoTargetsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListGeoTargetsPage + extends AbstractPage< + ListGeoTargetsRequest, ListGeoTargetsResponse, GeoTarget, ListGeoTargetsPage> { + + private ListGeoTargetsPage( + PageContext context, + ListGeoTargetsResponse response) { + super(context, response); + } + + private static ListGeoTargetsPage createEmptyPage() { + return new ListGeoTargetsPage(null, null); + } + + @Override + protected ListGeoTargetsPage createPage( + PageContext context, + ListGeoTargetsResponse response) { + return new ListGeoTargetsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListGeoTargetsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListGeoTargetsRequest, + ListGeoTargetsResponse, + GeoTarget, + ListGeoTargetsPage, + ListGeoTargetsFixedSizeCollection> { + + private ListGeoTargetsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListGeoTargetsFixedSizeCollection createEmptyCollection() { + return new ListGeoTargetsFixedSizeCollection(null, 0); + } + + @Override + protected ListGeoTargetsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListGeoTargetsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/GeoTargetServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/GeoTargetServiceSettings.java new file mode 100644 index 000000000000..b72965ee8c0a --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/GeoTargetServiceSettings.java @@ -0,0 +1,215 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1; + +import static com.google.ads.admanager.v1.GeoTargetServiceClient.ListGeoTargetsPagedResponse; + +import com.google.ads.admanager.v1.stub.GeoTargetServiceStubSettings; +import com.google.api.core.ApiFunction; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link GeoTargetServiceClient}. + * + *

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

    + *
  • The default service address (admanager.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 getGeoTarget: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * GeoTargetServiceSettings.Builder geoTargetServiceSettingsBuilder =
+ *     GeoTargetServiceSettings.newBuilder();
+ * geoTargetServiceSettingsBuilder
+ *     .getGeoTargetSettings()
+ *     .setRetrySettings(
+ *         geoTargetServiceSettingsBuilder
+ *             .getGeoTargetSettings()
+ *             .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());
+ * GeoTargetServiceSettings geoTargetServiceSettings = geoTargetServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class GeoTargetServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to getGeoTarget. */ + public UnaryCallSettings getGeoTargetSettings() { + return ((GeoTargetServiceStubSettings) getStubSettings()).getGeoTargetSettings(); + } + + /** Returns the object with the settings used for calls to listGeoTargets. */ + public PagedCallSettings< + ListGeoTargetsRequest, ListGeoTargetsResponse, ListGeoTargetsPagedResponse> + listGeoTargetsSettings() { + return ((GeoTargetServiceStubSettings) getStubSettings()).listGeoTargetsSettings(); + } + + public static final GeoTargetServiceSettings create(GeoTargetServiceStubSettings stub) + throws IOException { + return new GeoTargetServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return GeoTargetServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return GeoTargetServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return GeoTargetServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GeoTargetServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return GeoTargetServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return GeoTargetServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return GeoTargetServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected GeoTargetServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for GeoTargetServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(GeoTargetServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(GeoTargetServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(GeoTargetServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(GeoTargetServiceStubSettings.newBuilder()); + } + + public GeoTargetServiceStubSettings.Builder getStubSettingsBuilder() { + return ((GeoTargetServiceStubSettings.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 getGeoTarget. */ + public UnaryCallSettings.Builder getGeoTargetSettings() { + return getStubSettingsBuilder().getGeoTargetSettings(); + } + + /** Returns the builder for the settings used for calls to listGeoTargets. */ + public PagedCallSettings.Builder< + ListGeoTargetsRequest, ListGeoTargetsResponse, ListGeoTargetsPagedResponse> + listGeoTargetsSettings() { + return getStubSettingsBuilder().listGeoTargetsSettings(); + } + + @Override + public GeoTargetServiceSettings build() throws IOException { + return new GeoTargetServiceSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/NetworkServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/NetworkServiceClient.java index df8f46c60ea2..78450c1e24a2 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/NetworkServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/NetworkServiceClient.java @@ -26,7 +26,7 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * Service Description: Provides methods for handling Network objects. + * Service Description: Provides methods for handling `Network` objects. * *

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: diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OperatingSystemServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OperatingSystemServiceClient.java new file mode 100644 index 000000000000..e4a5058ffcae --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OperatingSystemServiceClient.java @@ -0,0 +1,616 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1; + +import com.google.ads.admanager.v1.stub.OperatingSystemServiceStub; +import com.google.ads.admanager.v1.stub.OperatingSystemServiceStubSettings; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.util.concurrent.MoreExecutors; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Provides methods for handling `OperatingSystem` objects. + * + *

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 (OperatingSystemServiceClient operatingSystemServiceClient =
+ *     OperatingSystemServiceClient.create()) {
+ *   OperatingSystemName name = OperatingSystemName.of("[NETWORK_CODE]", "[OPERATING_SYSTEM]");
+ *   OperatingSystem response = operatingSystemServiceClient.getOperatingSystem(name);
+ * }
+ * }
+ * + *

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

GetOperatingSystem

API to retrieve a `OperatingSystem` object.

+ *

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

+ *
    + *
  • getOperatingSystem(GetOperatingSystemRequest request) + *

+ *

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

+ *
    + *
  • getOperatingSystem(OperatingSystemName name) + *

  • getOperatingSystem(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.

+ *
    + *
  • getOperatingSystemCallable() + *

+ *

ListOperatingSystems

API to retrieve a list of `OperatingSystem` objects.

+ *

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

+ *
    + *
  • listOperatingSystems(ListOperatingSystemsRequest request) + *

+ *

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

+ *
    + *
  • listOperatingSystems(NetworkName parent) + *

  • listOperatingSystems(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.

+ *
    + *
  • listOperatingSystemsPagedCallable() + *

  • listOperatingSystemsCallable() + *

+ *
+ * + *

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 OperatingSystemServiceSettings + * 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
+ * OperatingSystemServiceSettings operatingSystemServiceSettings =
+ *     OperatingSystemServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * OperatingSystemServiceClient operatingSystemServiceClient =
+ *     OperatingSystemServiceClient.create(operatingSystemServiceSettings);
+ * }
+ * + *

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
+ * OperatingSystemServiceSettings operatingSystemServiceSettings =
+ *     OperatingSystemServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * OperatingSystemServiceClient operatingSystemServiceClient =
+ *     OperatingSystemServiceClient.create(operatingSystemServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class OperatingSystemServiceClient implements BackgroundResource { + private final OperatingSystemServiceSettings settings; + private final OperatingSystemServiceStub stub; + + /** Constructs an instance of OperatingSystemServiceClient with default settings. */ + public static final OperatingSystemServiceClient create() throws IOException { + return create(OperatingSystemServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of OperatingSystemServiceClient, 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 OperatingSystemServiceClient create(OperatingSystemServiceSettings settings) + throws IOException { + return new OperatingSystemServiceClient(settings); + } + + /** + * Constructs an instance of OperatingSystemServiceClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(OperatingSystemServiceSettings). + */ + public static final OperatingSystemServiceClient create(OperatingSystemServiceStub stub) { + return new OperatingSystemServiceClient(stub); + } + + /** + * Constructs an instance of OperatingSystemServiceClient, 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 OperatingSystemServiceClient(OperatingSystemServiceSettings settings) + throws IOException { + this.settings = settings; + this.stub = ((OperatingSystemServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected OperatingSystemServiceClient(OperatingSystemServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final OperatingSystemServiceSettings getSettings() { + return settings; + } + + public OperatingSystemServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `OperatingSystem` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OperatingSystemServiceClient operatingSystemServiceClient =
+   *     OperatingSystemServiceClient.create()) {
+   *   OperatingSystemName name = OperatingSystemName.of("[NETWORK_CODE]", "[OPERATING_SYSTEM]");
+   *   OperatingSystem response = operatingSystemServiceClient.getOperatingSystem(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the OperatingSystem. Format: + * `networks/{network_code}/operatingSystems/{operating_system_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperatingSystem getOperatingSystem(OperatingSystemName name) { + GetOperatingSystemRequest request = + GetOperatingSystemRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getOperatingSystem(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `OperatingSystem` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OperatingSystemServiceClient operatingSystemServiceClient =
+   *     OperatingSystemServiceClient.create()) {
+   *   String name = OperatingSystemName.of("[NETWORK_CODE]", "[OPERATING_SYSTEM]").toString();
+   *   OperatingSystem response = operatingSystemServiceClient.getOperatingSystem(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the OperatingSystem. Format: + * `networks/{network_code}/operatingSystems/{operating_system_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperatingSystem getOperatingSystem(String name) { + GetOperatingSystemRequest request = + GetOperatingSystemRequest.newBuilder().setName(name).build(); + return getOperatingSystem(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `OperatingSystem` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OperatingSystemServiceClient operatingSystemServiceClient =
+   *     OperatingSystemServiceClient.create()) {
+   *   GetOperatingSystemRequest request =
+   *       GetOperatingSystemRequest.newBuilder()
+   *           .setName(OperatingSystemName.of("[NETWORK_CODE]", "[OPERATING_SYSTEM]").toString())
+   *           .build();
+   *   OperatingSystem response = operatingSystemServiceClient.getOperatingSystem(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 OperatingSystem getOperatingSystem(GetOperatingSystemRequest request) { + return getOperatingSystemCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `OperatingSystem` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OperatingSystemServiceClient operatingSystemServiceClient =
+   *     OperatingSystemServiceClient.create()) {
+   *   GetOperatingSystemRequest request =
+   *       GetOperatingSystemRequest.newBuilder()
+   *           .setName(OperatingSystemName.of("[NETWORK_CODE]", "[OPERATING_SYSTEM]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       operatingSystemServiceClient.getOperatingSystemCallable().futureCall(request);
+   *   // Do something.
+   *   OperatingSystem response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getOperatingSystemCallable() { + return stub.getOperatingSystemCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `OperatingSystem` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OperatingSystemServiceClient operatingSystemServiceClient =
+   *     OperatingSystemServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   for (OperatingSystem element :
+   *       operatingSystemServiceClient.listOperatingSystems(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of OperatingSystems. Format: + * `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListOperatingSystemsPagedResponse listOperatingSystems(NetworkName parent) { + ListOperatingSystemsRequest request = + ListOperatingSystemsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listOperatingSystems(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `OperatingSystem` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OperatingSystemServiceClient operatingSystemServiceClient =
+   *     OperatingSystemServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   for (OperatingSystem element :
+   *       operatingSystemServiceClient.listOperatingSystems(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of OperatingSystems. Format: + * `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListOperatingSystemsPagedResponse listOperatingSystems(String parent) { + ListOperatingSystemsRequest request = + ListOperatingSystemsRequest.newBuilder().setParent(parent).build(); + return listOperatingSystems(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `OperatingSystem` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OperatingSystemServiceClient operatingSystemServiceClient =
+   *     OperatingSystemServiceClient.create()) {
+   *   ListOperatingSystemsRequest request =
+   *       ListOperatingSystemsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   for (OperatingSystem element :
+   *       operatingSystemServiceClient.listOperatingSystems(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 ListOperatingSystemsPagedResponse listOperatingSystems( + ListOperatingSystemsRequest request) { + return listOperatingSystemsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `OperatingSystem` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OperatingSystemServiceClient operatingSystemServiceClient =
+   *     OperatingSystemServiceClient.create()) {
+   *   ListOperatingSystemsRequest request =
+   *       ListOperatingSystemsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   ApiFuture future =
+   *       operatingSystemServiceClient.listOperatingSystemsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (OperatingSystem element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listOperatingSystemsPagedCallable() { + return stub.listOperatingSystemsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `OperatingSystem` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OperatingSystemServiceClient operatingSystemServiceClient =
+   *     OperatingSystemServiceClient.create()) {
+   *   ListOperatingSystemsRequest request =
+   *       ListOperatingSystemsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   while (true) {
+   *     ListOperatingSystemsResponse response =
+   *         operatingSystemServiceClient.listOperatingSystemsCallable().call(request);
+   *     for (OperatingSystem element : response.getOperatingSystemsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listOperatingSystemsCallable() { + return stub.listOperatingSystemsCallable(); + } + + @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 ListOperatingSystemsPagedResponse + extends AbstractPagedListResponse< + ListOperatingSystemsRequest, + ListOperatingSystemsResponse, + OperatingSystem, + ListOperatingSystemsPage, + ListOperatingSystemsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListOperatingSystemsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListOperatingSystemsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListOperatingSystemsPagedResponse(ListOperatingSystemsPage page) { + super(page, ListOperatingSystemsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListOperatingSystemsPage + extends AbstractPage< + ListOperatingSystemsRequest, + ListOperatingSystemsResponse, + OperatingSystem, + ListOperatingSystemsPage> { + + private ListOperatingSystemsPage( + PageContext + context, + ListOperatingSystemsResponse response) { + super(context, response); + } + + private static ListOperatingSystemsPage createEmptyPage() { + return new ListOperatingSystemsPage(null, null); + } + + @Override + protected ListOperatingSystemsPage createPage( + PageContext + context, + ListOperatingSystemsResponse response) { + return new ListOperatingSystemsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListOperatingSystemsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListOperatingSystemsRequest, + ListOperatingSystemsResponse, + OperatingSystem, + ListOperatingSystemsPage, + ListOperatingSystemsFixedSizeCollection> { + + private ListOperatingSystemsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListOperatingSystemsFixedSizeCollection createEmptyCollection() { + return new ListOperatingSystemsFixedSizeCollection(null, 0); + } + + @Override + protected ListOperatingSystemsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListOperatingSystemsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OperatingSystemServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OperatingSystemServiceSettings.java new file mode 100644 index 000000000000..4708812df17b --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OperatingSystemServiceSettings.java @@ -0,0 +1,223 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1; + +import static com.google.ads.admanager.v1.OperatingSystemServiceClient.ListOperatingSystemsPagedResponse; + +import com.google.ads.admanager.v1.stub.OperatingSystemServiceStubSettings; +import com.google.api.core.ApiFunction; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link OperatingSystemServiceClient}. + * + *

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

    + *
  • The default service address (admanager.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 getOperatingSystem: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * OperatingSystemServiceSettings.Builder operatingSystemServiceSettingsBuilder =
+ *     OperatingSystemServiceSettings.newBuilder();
+ * operatingSystemServiceSettingsBuilder
+ *     .getOperatingSystemSettings()
+ *     .setRetrySettings(
+ *         operatingSystemServiceSettingsBuilder
+ *             .getOperatingSystemSettings()
+ *             .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());
+ * OperatingSystemServiceSettings operatingSystemServiceSettings =
+ *     operatingSystemServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class OperatingSystemServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to getOperatingSystem. */ + public UnaryCallSettings + getOperatingSystemSettings() { + return ((OperatingSystemServiceStubSettings) getStubSettings()).getOperatingSystemSettings(); + } + + /** Returns the object with the settings used for calls to listOperatingSystems. */ + public PagedCallSettings< + ListOperatingSystemsRequest, + ListOperatingSystemsResponse, + ListOperatingSystemsPagedResponse> + listOperatingSystemsSettings() { + return ((OperatingSystemServiceStubSettings) getStubSettings()).listOperatingSystemsSettings(); + } + + public static final OperatingSystemServiceSettings create(OperatingSystemServiceStubSettings stub) + throws IOException { + return new OperatingSystemServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return OperatingSystemServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return OperatingSystemServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return OperatingSystemServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return OperatingSystemServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return OperatingSystemServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return OperatingSystemServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return OperatingSystemServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected OperatingSystemServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for OperatingSystemServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(OperatingSystemServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(OperatingSystemServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(OperatingSystemServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(OperatingSystemServiceStubSettings.newBuilder()); + } + + public OperatingSystemServiceStubSettings.Builder getStubSettingsBuilder() { + return ((OperatingSystemServiceStubSettings.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 getOperatingSystem. */ + public UnaryCallSettings.Builder + getOperatingSystemSettings() { + return getStubSettingsBuilder().getOperatingSystemSettings(); + } + + /** Returns the builder for the settings used for calls to listOperatingSystems. */ + public PagedCallSettings.Builder< + ListOperatingSystemsRequest, + ListOperatingSystemsResponse, + ListOperatingSystemsPagedResponse> + listOperatingSystemsSettings() { + return getStubSettingsBuilder().listOperatingSystemsSettings(); + } + + @Override + public OperatingSystemServiceSettings build() throws IOException { + return new OperatingSystemServiceSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OperatingSystemVersionServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OperatingSystemVersionServiceClient.java new file mode 100644 index 000000000000..457a4ee7f0f4 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OperatingSystemVersionServiceClient.java @@ -0,0 +1,651 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1; + +import com.google.ads.admanager.v1.stub.OperatingSystemVersionServiceStub; +import com.google.ads.admanager.v1.stub.OperatingSystemVersionServiceStubSettings; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.util.concurrent.MoreExecutors; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Provides methods for handling `OperatingSystemVersion` objects. + * + *

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 (OperatingSystemVersionServiceClient operatingSystemVersionServiceClient =
+ *     OperatingSystemVersionServiceClient.create()) {
+ *   OperatingSystemVersionName name =
+ *       OperatingSystemVersionName.of("[NETWORK_CODE]", "[OPERATING_SYSTEM_VERSION]");
+ *   OperatingSystemVersion response =
+ *       operatingSystemVersionServiceClient.getOperatingSystemVersion(name);
+ * }
+ * }
+ * + *

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

GetOperatingSystemVersion

API to retrieve a `OperatingSystemVersion` object.

+ *

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

+ *
    + *
  • getOperatingSystemVersion(GetOperatingSystemVersionRequest request) + *

+ *

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

+ *
    + *
  • getOperatingSystemVersion(OperatingSystemVersionName name) + *

  • getOperatingSystemVersion(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.

+ *
    + *
  • getOperatingSystemVersionCallable() + *

+ *

ListOperatingSystemVersions

API to retrieve a list of `OperatingSystemVersion` objects.

+ *

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

+ *
    + *
  • listOperatingSystemVersions(ListOperatingSystemVersionsRequest request) + *

+ *

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

+ *
    + *
  • listOperatingSystemVersions(NetworkName parent) + *

  • listOperatingSystemVersions(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.

+ *
    + *
  • listOperatingSystemVersionsPagedCallable() + *

  • listOperatingSystemVersionsCallable() + *

+ *
+ * + *

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 + * OperatingSystemVersionServiceSettings 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
+ * OperatingSystemVersionServiceSettings operatingSystemVersionServiceSettings =
+ *     OperatingSystemVersionServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * OperatingSystemVersionServiceClient operatingSystemVersionServiceClient =
+ *     OperatingSystemVersionServiceClient.create(operatingSystemVersionServiceSettings);
+ * }
+ * + *

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
+ * OperatingSystemVersionServiceSettings operatingSystemVersionServiceSettings =
+ *     OperatingSystemVersionServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * OperatingSystemVersionServiceClient operatingSystemVersionServiceClient =
+ *     OperatingSystemVersionServiceClient.create(operatingSystemVersionServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class OperatingSystemVersionServiceClient implements BackgroundResource { + private final OperatingSystemVersionServiceSettings settings; + private final OperatingSystemVersionServiceStub stub; + + /** Constructs an instance of OperatingSystemVersionServiceClient with default settings. */ + public static final OperatingSystemVersionServiceClient create() throws IOException { + return create(OperatingSystemVersionServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of OperatingSystemVersionServiceClient, 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 OperatingSystemVersionServiceClient create( + OperatingSystemVersionServiceSettings settings) throws IOException { + return new OperatingSystemVersionServiceClient(settings); + } + + /** + * Constructs an instance of OperatingSystemVersionServiceClient, using the given stub for making + * calls. This is for advanced usage - prefer using create(OperatingSystemVersionServiceSettings). + */ + public static final OperatingSystemVersionServiceClient create( + OperatingSystemVersionServiceStub stub) { + return new OperatingSystemVersionServiceClient(stub); + } + + /** + * Constructs an instance of OperatingSystemVersionServiceClient, 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 OperatingSystemVersionServiceClient(OperatingSystemVersionServiceSettings settings) + throws IOException { + this.settings = settings; + this.stub = + ((OperatingSystemVersionServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected OperatingSystemVersionServiceClient(OperatingSystemVersionServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final OperatingSystemVersionServiceSettings getSettings() { + return settings; + } + + public OperatingSystemVersionServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `OperatingSystemVersion` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OperatingSystemVersionServiceClient operatingSystemVersionServiceClient =
+   *     OperatingSystemVersionServiceClient.create()) {
+   *   OperatingSystemVersionName name =
+   *       OperatingSystemVersionName.of("[NETWORK_CODE]", "[OPERATING_SYSTEM_VERSION]");
+   *   OperatingSystemVersion response =
+   *       operatingSystemVersionServiceClient.getOperatingSystemVersion(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the OperatingSystemVersion. Format: + * `networks/{network_code}/operatingSystemVersions/{operating_system_version_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperatingSystemVersion getOperatingSystemVersion(OperatingSystemVersionName name) { + GetOperatingSystemVersionRequest request = + GetOperatingSystemVersionRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getOperatingSystemVersion(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `OperatingSystemVersion` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OperatingSystemVersionServiceClient operatingSystemVersionServiceClient =
+   *     OperatingSystemVersionServiceClient.create()) {
+   *   String name =
+   *       OperatingSystemVersionName.of("[NETWORK_CODE]", "[OPERATING_SYSTEM_VERSION]").toString();
+   *   OperatingSystemVersion response =
+   *       operatingSystemVersionServiceClient.getOperatingSystemVersion(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the OperatingSystemVersion. Format: + * `networks/{network_code}/operatingSystemVersions/{operating_system_version_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperatingSystemVersion getOperatingSystemVersion(String name) { + GetOperatingSystemVersionRequest request = + GetOperatingSystemVersionRequest.newBuilder().setName(name).build(); + return getOperatingSystemVersion(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `OperatingSystemVersion` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OperatingSystemVersionServiceClient operatingSystemVersionServiceClient =
+   *     OperatingSystemVersionServiceClient.create()) {
+   *   GetOperatingSystemVersionRequest request =
+   *       GetOperatingSystemVersionRequest.newBuilder()
+   *           .setName(
+   *               OperatingSystemVersionName.of("[NETWORK_CODE]", "[OPERATING_SYSTEM_VERSION]")
+   *                   .toString())
+   *           .build();
+   *   OperatingSystemVersion response =
+   *       operatingSystemVersionServiceClient.getOperatingSystemVersion(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 OperatingSystemVersion getOperatingSystemVersion( + GetOperatingSystemVersionRequest request) { + return getOperatingSystemVersionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `OperatingSystemVersion` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OperatingSystemVersionServiceClient operatingSystemVersionServiceClient =
+   *     OperatingSystemVersionServiceClient.create()) {
+   *   GetOperatingSystemVersionRequest request =
+   *       GetOperatingSystemVersionRequest.newBuilder()
+   *           .setName(
+   *               OperatingSystemVersionName.of("[NETWORK_CODE]", "[OPERATING_SYSTEM_VERSION]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       operatingSystemVersionServiceClient
+   *           .getOperatingSystemVersionCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   OperatingSystemVersion response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getOperatingSystemVersionCallable() { + return stub.getOperatingSystemVersionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `OperatingSystemVersion` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OperatingSystemVersionServiceClient operatingSystemVersionServiceClient =
+   *     OperatingSystemVersionServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   for (OperatingSystemVersion element :
+   *       operatingSystemVersionServiceClient.listOperatingSystemVersions(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of OperatingSystemVersions. + * Format: `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListOperatingSystemVersionsPagedResponse listOperatingSystemVersions( + NetworkName parent) { + ListOperatingSystemVersionsRequest request = + ListOperatingSystemVersionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listOperatingSystemVersions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `OperatingSystemVersion` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OperatingSystemVersionServiceClient operatingSystemVersionServiceClient =
+   *     OperatingSystemVersionServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   for (OperatingSystemVersion element :
+   *       operatingSystemVersionServiceClient.listOperatingSystemVersions(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of OperatingSystemVersions. + * Format: `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListOperatingSystemVersionsPagedResponse listOperatingSystemVersions(String parent) { + ListOperatingSystemVersionsRequest request = + ListOperatingSystemVersionsRequest.newBuilder().setParent(parent).build(); + return listOperatingSystemVersions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `OperatingSystemVersion` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OperatingSystemVersionServiceClient operatingSystemVersionServiceClient =
+   *     OperatingSystemVersionServiceClient.create()) {
+   *   ListOperatingSystemVersionsRequest request =
+   *       ListOperatingSystemVersionsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   for (OperatingSystemVersion element :
+   *       operatingSystemVersionServiceClient.listOperatingSystemVersions(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 ListOperatingSystemVersionsPagedResponse listOperatingSystemVersions( + ListOperatingSystemVersionsRequest request) { + return listOperatingSystemVersionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `OperatingSystemVersion` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OperatingSystemVersionServiceClient operatingSystemVersionServiceClient =
+   *     OperatingSystemVersionServiceClient.create()) {
+   *   ListOperatingSystemVersionsRequest request =
+   *       ListOperatingSystemVersionsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   ApiFuture future =
+   *       operatingSystemVersionServiceClient
+   *           .listOperatingSystemVersionsPagedCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   for (OperatingSystemVersion element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListOperatingSystemVersionsRequest, ListOperatingSystemVersionsPagedResponse> + listOperatingSystemVersionsPagedCallable() { + return stub.listOperatingSystemVersionsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `OperatingSystemVersion` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OperatingSystemVersionServiceClient operatingSystemVersionServiceClient =
+   *     OperatingSystemVersionServiceClient.create()) {
+   *   ListOperatingSystemVersionsRequest request =
+   *       ListOperatingSystemVersionsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   while (true) {
+   *     ListOperatingSystemVersionsResponse response =
+   *         operatingSystemVersionServiceClient.listOperatingSystemVersionsCallable().call(request);
+   *     for (OperatingSystemVersion element : response.getOperatingSystemVersionsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListOperatingSystemVersionsRequest, ListOperatingSystemVersionsResponse> + listOperatingSystemVersionsCallable() { + return stub.listOperatingSystemVersionsCallable(); + } + + @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 ListOperatingSystemVersionsPagedResponse + extends AbstractPagedListResponse< + ListOperatingSystemVersionsRequest, + ListOperatingSystemVersionsResponse, + OperatingSystemVersion, + ListOperatingSystemVersionsPage, + ListOperatingSystemVersionsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListOperatingSystemVersionsRequest, + ListOperatingSystemVersionsResponse, + OperatingSystemVersion> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListOperatingSystemVersionsPage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListOperatingSystemVersionsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListOperatingSystemVersionsPagedResponse(ListOperatingSystemVersionsPage page) { + super(page, ListOperatingSystemVersionsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListOperatingSystemVersionsPage + extends AbstractPage< + ListOperatingSystemVersionsRequest, + ListOperatingSystemVersionsResponse, + OperatingSystemVersion, + ListOperatingSystemVersionsPage> { + + private ListOperatingSystemVersionsPage( + PageContext< + ListOperatingSystemVersionsRequest, + ListOperatingSystemVersionsResponse, + OperatingSystemVersion> + context, + ListOperatingSystemVersionsResponse response) { + super(context, response); + } + + private static ListOperatingSystemVersionsPage createEmptyPage() { + return new ListOperatingSystemVersionsPage(null, null); + } + + @Override + protected ListOperatingSystemVersionsPage createPage( + PageContext< + ListOperatingSystemVersionsRequest, + ListOperatingSystemVersionsResponse, + OperatingSystemVersion> + context, + ListOperatingSystemVersionsResponse response) { + return new ListOperatingSystemVersionsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListOperatingSystemVersionsRequest, + ListOperatingSystemVersionsResponse, + OperatingSystemVersion> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListOperatingSystemVersionsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListOperatingSystemVersionsRequest, + ListOperatingSystemVersionsResponse, + OperatingSystemVersion, + ListOperatingSystemVersionsPage, + ListOperatingSystemVersionsFixedSizeCollection> { + + private ListOperatingSystemVersionsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListOperatingSystemVersionsFixedSizeCollection createEmptyCollection() { + return new ListOperatingSystemVersionsFixedSizeCollection(null, 0); + } + + @Override + protected ListOperatingSystemVersionsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListOperatingSystemVersionsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OperatingSystemVersionServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OperatingSystemVersionServiceSettings.java new file mode 100644 index 000000000000..7c3c6ff5b511 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OperatingSystemVersionServiceSettings.java @@ -0,0 +1,226 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1; + +import static com.google.ads.admanager.v1.OperatingSystemVersionServiceClient.ListOperatingSystemVersionsPagedResponse; + +import com.google.ads.admanager.v1.stub.OperatingSystemVersionServiceStubSettings; +import com.google.api.core.ApiFunction; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link OperatingSystemVersionServiceClient}. + * + *

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

    + *
  • The default service address (admanager.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 getOperatingSystemVersion: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * OperatingSystemVersionServiceSettings.Builder operatingSystemVersionServiceSettingsBuilder =
+ *     OperatingSystemVersionServiceSettings.newBuilder();
+ * operatingSystemVersionServiceSettingsBuilder
+ *     .getOperatingSystemVersionSettings()
+ *     .setRetrySettings(
+ *         operatingSystemVersionServiceSettingsBuilder
+ *             .getOperatingSystemVersionSettings()
+ *             .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());
+ * OperatingSystemVersionServiceSettings operatingSystemVersionServiceSettings =
+ *     operatingSystemVersionServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class OperatingSystemVersionServiceSettings + extends ClientSettings { + + /** Returns the object with the settings used for calls to getOperatingSystemVersion. */ + public UnaryCallSettings + getOperatingSystemVersionSettings() { + return ((OperatingSystemVersionServiceStubSettings) getStubSettings()) + .getOperatingSystemVersionSettings(); + } + + /** Returns the object with the settings used for calls to listOperatingSystemVersions. */ + public PagedCallSettings< + ListOperatingSystemVersionsRequest, + ListOperatingSystemVersionsResponse, + ListOperatingSystemVersionsPagedResponse> + listOperatingSystemVersionsSettings() { + return ((OperatingSystemVersionServiceStubSettings) getStubSettings()) + .listOperatingSystemVersionsSettings(); + } + + public static final OperatingSystemVersionServiceSettings create( + OperatingSystemVersionServiceStubSettings stub) throws IOException { + return new OperatingSystemVersionServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return OperatingSystemVersionServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return OperatingSystemVersionServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return OperatingSystemVersionServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return OperatingSystemVersionServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return OperatingSystemVersionServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return OperatingSystemVersionServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return OperatingSystemVersionServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected OperatingSystemVersionServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for OperatingSystemVersionServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(OperatingSystemVersionServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(OperatingSystemVersionServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(OperatingSystemVersionServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(OperatingSystemVersionServiceStubSettings.newBuilder()); + } + + public OperatingSystemVersionServiceStubSettings.Builder getStubSettingsBuilder() { + return ((OperatingSystemVersionServiceStubSettings.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 getOperatingSystemVersion. */ + public UnaryCallSettings.Builder + getOperatingSystemVersionSettings() { + return getStubSettingsBuilder().getOperatingSystemVersionSettings(); + } + + /** Returns the builder for the settings used for calls to listOperatingSystemVersions. */ + public PagedCallSettings.Builder< + ListOperatingSystemVersionsRequest, + ListOperatingSystemVersionsResponse, + ListOperatingSystemVersionsPagedResponse> + listOperatingSystemVersionsSettings() { + return getStubSettingsBuilder().listOperatingSystemVersionsSettings(); + } + + @Override + public OperatingSystemVersionServiceSettings build() throws IOException { + return new OperatingSystemVersionServiceSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PrivateAuctionDealServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PrivateAuctionDealServiceClient.java new file mode 100644 index 000000000000..b6e502a9f345 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PrivateAuctionDealServiceClient.java @@ -0,0 +1,901 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1; + +import com.google.ads.admanager.v1.stub.PrivateAuctionDealServiceStub; +import com.google.ads.admanager.v1.stub.PrivateAuctionDealServiceStubSettings; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Provides methods for handling `PrivateAuctionDeal` objects. + * + *

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 (PrivateAuctionDealServiceClient privateAuctionDealServiceClient =
+ *     PrivateAuctionDealServiceClient.create()) {
+ *   PrivateAuctionDealName name =
+ *       PrivateAuctionDealName.of("[NETWORK_CODE]", "[PRIVATE_AUCTION_DEAL]");
+ *   PrivateAuctionDeal response = privateAuctionDealServiceClient.getPrivateAuctionDeal(name);
+ * }
+ * }
+ * + *

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

GetPrivateAuctionDeal

API to retrieve a `PrivateAuctionDeal` object.

+ *

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

+ *
    + *
  • getPrivateAuctionDeal(GetPrivateAuctionDealRequest request) + *

+ *

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

+ *
    + *
  • getPrivateAuctionDeal(PrivateAuctionDealName name) + *

  • getPrivateAuctionDeal(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.

+ *
    + *
  • getPrivateAuctionDealCallable() + *

+ *

ListPrivateAuctionDeals

API to retrieve a list of `PrivateAuctionDeal` objects.

+ *

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

+ *
    + *
  • listPrivateAuctionDeals(ListPrivateAuctionDealsRequest request) + *

+ *

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

+ *
    + *
  • listPrivateAuctionDeals(NetworkName parent) + *

  • listPrivateAuctionDeals(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.

+ *
    + *
  • listPrivateAuctionDealsPagedCallable() + *

  • listPrivateAuctionDealsCallable() + *

+ *

CreatePrivateAuctionDeal

API to create a `PrivateAuctionDeal` object.

+ *

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

+ *
    + *
  • createPrivateAuctionDeal(CreatePrivateAuctionDealRequest request) + *

+ *

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

+ *
    + *
  • createPrivateAuctionDeal(NetworkName parent, PrivateAuctionDeal privateAuctionDeal) + *

  • createPrivateAuctionDeal(String parent, PrivateAuctionDeal privateAuctionDeal) + *

+ *

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

+ *
    + *
  • createPrivateAuctionDealCallable() + *

+ *

UpdatePrivateAuctionDeal

API to update a `PrivateAuctionDeal` object.

+ *

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

+ *
    + *
  • updatePrivateAuctionDeal(UpdatePrivateAuctionDealRequest request) + *

+ *

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

+ *
    + *
  • updatePrivateAuctionDeal(PrivateAuctionDeal privateAuctionDeal, FieldMask updateMask) + *

+ *

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

+ *
    + *
  • updatePrivateAuctionDealCallable() + *

+ *
+ * + *

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 + * PrivateAuctionDealServiceSettings 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
+ * PrivateAuctionDealServiceSettings privateAuctionDealServiceSettings =
+ *     PrivateAuctionDealServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * PrivateAuctionDealServiceClient privateAuctionDealServiceClient =
+ *     PrivateAuctionDealServiceClient.create(privateAuctionDealServiceSettings);
+ * }
+ * + *

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
+ * PrivateAuctionDealServiceSettings privateAuctionDealServiceSettings =
+ *     PrivateAuctionDealServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * PrivateAuctionDealServiceClient privateAuctionDealServiceClient =
+ *     PrivateAuctionDealServiceClient.create(privateAuctionDealServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class PrivateAuctionDealServiceClient implements BackgroundResource { + private final PrivateAuctionDealServiceSettings settings; + private final PrivateAuctionDealServiceStub stub; + + /** Constructs an instance of PrivateAuctionDealServiceClient with default settings. */ + public static final PrivateAuctionDealServiceClient create() throws IOException { + return create(PrivateAuctionDealServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of PrivateAuctionDealServiceClient, 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 PrivateAuctionDealServiceClient create( + PrivateAuctionDealServiceSettings settings) throws IOException { + return new PrivateAuctionDealServiceClient(settings); + } + + /** + * Constructs an instance of PrivateAuctionDealServiceClient, using the given stub for making + * calls. This is for advanced usage - prefer using create(PrivateAuctionDealServiceSettings). + */ + public static final PrivateAuctionDealServiceClient create(PrivateAuctionDealServiceStub stub) { + return new PrivateAuctionDealServiceClient(stub); + } + + /** + * Constructs an instance of PrivateAuctionDealServiceClient, 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 PrivateAuctionDealServiceClient(PrivateAuctionDealServiceSettings settings) + throws IOException { + this.settings = settings; + this.stub = ((PrivateAuctionDealServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected PrivateAuctionDealServiceClient(PrivateAuctionDealServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final PrivateAuctionDealServiceSettings getSettings() { + return settings; + } + + public PrivateAuctionDealServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `PrivateAuctionDeal` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PrivateAuctionDealServiceClient privateAuctionDealServiceClient =
+   *     PrivateAuctionDealServiceClient.create()) {
+   *   PrivateAuctionDealName name =
+   *       PrivateAuctionDealName.of("[NETWORK_CODE]", "[PRIVATE_AUCTION_DEAL]");
+   *   PrivateAuctionDeal response = privateAuctionDealServiceClient.getPrivateAuctionDeal(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the PrivateAuctionDeal. Format: + * `networks/{network_code}/privateAuctionDeals/{private_auction_deal_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PrivateAuctionDeal getPrivateAuctionDeal(PrivateAuctionDealName name) { + GetPrivateAuctionDealRequest request = + GetPrivateAuctionDealRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getPrivateAuctionDeal(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `PrivateAuctionDeal` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PrivateAuctionDealServiceClient privateAuctionDealServiceClient =
+   *     PrivateAuctionDealServiceClient.create()) {
+   *   String name =
+   *       PrivateAuctionDealName.of("[NETWORK_CODE]", "[PRIVATE_AUCTION_DEAL]").toString();
+   *   PrivateAuctionDeal response = privateAuctionDealServiceClient.getPrivateAuctionDeal(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the PrivateAuctionDeal. Format: + * `networks/{network_code}/privateAuctionDeals/{private_auction_deal_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PrivateAuctionDeal getPrivateAuctionDeal(String name) { + GetPrivateAuctionDealRequest request = + GetPrivateAuctionDealRequest.newBuilder().setName(name).build(); + return getPrivateAuctionDeal(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `PrivateAuctionDeal` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PrivateAuctionDealServiceClient privateAuctionDealServiceClient =
+   *     PrivateAuctionDealServiceClient.create()) {
+   *   GetPrivateAuctionDealRequest request =
+   *       GetPrivateAuctionDealRequest.newBuilder()
+   *           .setName(
+   *               PrivateAuctionDealName.of("[NETWORK_CODE]", "[PRIVATE_AUCTION_DEAL]").toString())
+   *           .build();
+   *   PrivateAuctionDeal response = privateAuctionDealServiceClient.getPrivateAuctionDeal(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 PrivateAuctionDeal getPrivateAuctionDeal(GetPrivateAuctionDealRequest request) { + return getPrivateAuctionDealCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `PrivateAuctionDeal` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PrivateAuctionDealServiceClient privateAuctionDealServiceClient =
+   *     PrivateAuctionDealServiceClient.create()) {
+   *   GetPrivateAuctionDealRequest request =
+   *       GetPrivateAuctionDealRequest.newBuilder()
+   *           .setName(
+   *               PrivateAuctionDealName.of("[NETWORK_CODE]", "[PRIVATE_AUCTION_DEAL]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       privateAuctionDealServiceClient.getPrivateAuctionDealCallable().futureCall(request);
+   *   // Do something.
+   *   PrivateAuctionDeal response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getPrivateAuctionDealCallable() { + return stub.getPrivateAuctionDealCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `PrivateAuctionDeal` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PrivateAuctionDealServiceClient privateAuctionDealServiceClient =
+   *     PrivateAuctionDealServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   for (PrivateAuctionDeal element :
+   *       privateAuctionDealServiceClient.listPrivateAuctionDeals(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of PrivateAuctionDeals. Format: + * `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListPrivateAuctionDealsPagedResponse listPrivateAuctionDeals(NetworkName parent) { + ListPrivateAuctionDealsRequest request = + ListPrivateAuctionDealsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listPrivateAuctionDeals(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `PrivateAuctionDeal` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PrivateAuctionDealServiceClient privateAuctionDealServiceClient =
+   *     PrivateAuctionDealServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   for (PrivateAuctionDeal element :
+   *       privateAuctionDealServiceClient.listPrivateAuctionDeals(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of PrivateAuctionDeals. Format: + * `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListPrivateAuctionDealsPagedResponse listPrivateAuctionDeals(String parent) { + ListPrivateAuctionDealsRequest request = + ListPrivateAuctionDealsRequest.newBuilder().setParent(parent).build(); + return listPrivateAuctionDeals(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `PrivateAuctionDeal` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PrivateAuctionDealServiceClient privateAuctionDealServiceClient =
+   *     PrivateAuctionDealServiceClient.create()) {
+   *   ListPrivateAuctionDealsRequest request =
+   *       ListPrivateAuctionDealsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   for (PrivateAuctionDeal element :
+   *       privateAuctionDealServiceClient.listPrivateAuctionDeals(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 ListPrivateAuctionDealsPagedResponse listPrivateAuctionDeals( + ListPrivateAuctionDealsRequest request) { + return listPrivateAuctionDealsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `PrivateAuctionDeal` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PrivateAuctionDealServiceClient privateAuctionDealServiceClient =
+   *     PrivateAuctionDealServiceClient.create()) {
+   *   ListPrivateAuctionDealsRequest request =
+   *       ListPrivateAuctionDealsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   ApiFuture future =
+   *       privateAuctionDealServiceClient
+   *           .listPrivateAuctionDealsPagedCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   for (PrivateAuctionDeal element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listPrivateAuctionDealsPagedCallable() { + return stub.listPrivateAuctionDealsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `PrivateAuctionDeal` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PrivateAuctionDealServiceClient privateAuctionDealServiceClient =
+   *     PrivateAuctionDealServiceClient.create()) {
+   *   ListPrivateAuctionDealsRequest request =
+   *       ListPrivateAuctionDealsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   while (true) {
+   *     ListPrivateAuctionDealsResponse response =
+   *         privateAuctionDealServiceClient.listPrivateAuctionDealsCallable().call(request);
+   *     for (PrivateAuctionDeal element : response.getPrivateAuctionDealsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listPrivateAuctionDealsCallable() { + return stub.listPrivateAuctionDealsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to create a `PrivateAuctionDeal` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PrivateAuctionDealServiceClient privateAuctionDealServiceClient =
+   *     PrivateAuctionDealServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   PrivateAuctionDeal privateAuctionDeal = PrivateAuctionDeal.newBuilder().build();
+   *   PrivateAuctionDeal response =
+   *       privateAuctionDealServiceClient.createPrivateAuctionDeal(parent, privateAuctionDeal);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where this `PrivateAuctionDeal` will be created. + * Format: `networks/{network_code}` + * @param privateAuctionDeal Required. The `PrivateAuctionDeal` to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PrivateAuctionDeal createPrivateAuctionDeal( + NetworkName parent, PrivateAuctionDeal privateAuctionDeal) { + CreatePrivateAuctionDealRequest request = + CreatePrivateAuctionDealRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setPrivateAuctionDeal(privateAuctionDeal) + .build(); + return createPrivateAuctionDeal(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to create a `PrivateAuctionDeal` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PrivateAuctionDealServiceClient privateAuctionDealServiceClient =
+   *     PrivateAuctionDealServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   PrivateAuctionDeal privateAuctionDeal = PrivateAuctionDeal.newBuilder().build();
+   *   PrivateAuctionDeal response =
+   *       privateAuctionDealServiceClient.createPrivateAuctionDeal(parent, privateAuctionDeal);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where this `PrivateAuctionDeal` will be created. + * Format: `networks/{network_code}` + * @param privateAuctionDeal Required. The `PrivateAuctionDeal` to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PrivateAuctionDeal createPrivateAuctionDeal( + String parent, PrivateAuctionDeal privateAuctionDeal) { + CreatePrivateAuctionDealRequest request = + CreatePrivateAuctionDealRequest.newBuilder() + .setParent(parent) + .setPrivateAuctionDeal(privateAuctionDeal) + .build(); + return createPrivateAuctionDeal(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to create a `PrivateAuctionDeal` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PrivateAuctionDealServiceClient privateAuctionDealServiceClient =
+   *     PrivateAuctionDealServiceClient.create()) {
+   *   CreatePrivateAuctionDealRequest request =
+   *       CreatePrivateAuctionDealRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPrivateAuctionDeal(PrivateAuctionDeal.newBuilder().build())
+   *           .build();
+   *   PrivateAuctionDeal response =
+   *       privateAuctionDealServiceClient.createPrivateAuctionDeal(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 PrivateAuctionDeal createPrivateAuctionDeal( + CreatePrivateAuctionDealRequest request) { + return createPrivateAuctionDealCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to create a `PrivateAuctionDeal` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PrivateAuctionDealServiceClient privateAuctionDealServiceClient =
+   *     PrivateAuctionDealServiceClient.create()) {
+   *   CreatePrivateAuctionDealRequest request =
+   *       CreatePrivateAuctionDealRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPrivateAuctionDeal(PrivateAuctionDeal.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       privateAuctionDealServiceClient.createPrivateAuctionDealCallable().futureCall(request);
+   *   // Do something.
+   *   PrivateAuctionDeal response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createPrivateAuctionDealCallable() { + return stub.createPrivateAuctionDealCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to update a `PrivateAuctionDeal` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PrivateAuctionDealServiceClient privateAuctionDealServiceClient =
+   *     PrivateAuctionDealServiceClient.create()) {
+   *   PrivateAuctionDeal privateAuctionDeal = PrivateAuctionDeal.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   PrivateAuctionDeal response =
+   *       privateAuctionDealServiceClient.updatePrivateAuctionDeal(privateAuctionDeal, updateMask);
+   * }
+   * }
+ * + * @param privateAuctionDeal Required. The `PrivateAuctionDeal` to update. + *

The `PrivateAuctionDeal`'s `name` is used to identify the `PrivateAuctionDeal` to + * update. + * @param updateMask Required. The list of fields to update. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PrivateAuctionDeal updatePrivateAuctionDeal( + PrivateAuctionDeal privateAuctionDeal, FieldMask updateMask) { + UpdatePrivateAuctionDealRequest request = + UpdatePrivateAuctionDealRequest.newBuilder() + .setPrivateAuctionDeal(privateAuctionDeal) + .setUpdateMask(updateMask) + .build(); + return updatePrivateAuctionDeal(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to update a `PrivateAuctionDeal` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PrivateAuctionDealServiceClient privateAuctionDealServiceClient =
+   *     PrivateAuctionDealServiceClient.create()) {
+   *   UpdatePrivateAuctionDealRequest request =
+   *       UpdatePrivateAuctionDealRequest.newBuilder()
+   *           .setPrivateAuctionDeal(PrivateAuctionDeal.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   PrivateAuctionDeal response =
+   *       privateAuctionDealServiceClient.updatePrivateAuctionDeal(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 PrivateAuctionDeal updatePrivateAuctionDeal( + UpdatePrivateAuctionDealRequest request) { + return updatePrivateAuctionDealCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to update a `PrivateAuctionDeal` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PrivateAuctionDealServiceClient privateAuctionDealServiceClient =
+   *     PrivateAuctionDealServiceClient.create()) {
+   *   UpdatePrivateAuctionDealRequest request =
+   *       UpdatePrivateAuctionDealRequest.newBuilder()
+   *           .setPrivateAuctionDeal(PrivateAuctionDeal.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       privateAuctionDealServiceClient.updatePrivateAuctionDealCallable().futureCall(request);
+   *   // Do something.
+   *   PrivateAuctionDeal response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updatePrivateAuctionDealCallable() { + return stub.updatePrivateAuctionDealCallable(); + } + + @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 ListPrivateAuctionDealsPagedResponse + extends AbstractPagedListResponse< + ListPrivateAuctionDealsRequest, + ListPrivateAuctionDealsResponse, + PrivateAuctionDeal, + ListPrivateAuctionDealsPage, + ListPrivateAuctionDealsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListPrivateAuctionDealsRequest, ListPrivateAuctionDealsResponse, PrivateAuctionDeal> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListPrivateAuctionDealsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListPrivateAuctionDealsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListPrivateAuctionDealsPagedResponse(ListPrivateAuctionDealsPage page) { + super(page, ListPrivateAuctionDealsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListPrivateAuctionDealsPage + extends AbstractPage< + ListPrivateAuctionDealsRequest, + ListPrivateAuctionDealsResponse, + PrivateAuctionDeal, + ListPrivateAuctionDealsPage> { + + private ListPrivateAuctionDealsPage( + PageContext< + ListPrivateAuctionDealsRequest, ListPrivateAuctionDealsResponse, PrivateAuctionDeal> + context, + ListPrivateAuctionDealsResponse response) { + super(context, response); + } + + private static ListPrivateAuctionDealsPage createEmptyPage() { + return new ListPrivateAuctionDealsPage(null, null); + } + + @Override + protected ListPrivateAuctionDealsPage createPage( + PageContext< + ListPrivateAuctionDealsRequest, ListPrivateAuctionDealsResponse, PrivateAuctionDeal> + context, + ListPrivateAuctionDealsResponse response) { + return new ListPrivateAuctionDealsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListPrivateAuctionDealsRequest, ListPrivateAuctionDealsResponse, PrivateAuctionDeal> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListPrivateAuctionDealsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListPrivateAuctionDealsRequest, + ListPrivateAuctionDealsResponse, + PrivateAuctionDeal, + ListPrivateAuctionDealsPage, + ListPrivateAuctionDealsFixedSizeCollection> { + + private ListPrivateAuctionDealsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListPrivateAuctionDealsFixedSizeCollection createEmptyCollection() { + return new ListPrivateAuctionDealsFixedSizeCollection(null, 0); + } + + @Override + protected ListPrivateAuctionDealsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListPrivateAuctionDealsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PrivateAuctionDealServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PrivateAuctionDealServiceSettings.java new file mode 100644 index 000000000000..37ba3614e95d --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PrivateAuctionDealServiceSettings.java @@ -0,0 +1,252 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1; + +import static com.google.ads.admanager.v1.PrivateAuctionDealServiceClient.ListPrivateAuctionDealsPagedResponse; + +import com.google.ads.admanager.v1.stub.PrivateAuctionDealServiceStubSettings; +import com.google.api.core.ApiFunction; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link PrivateAuctionDealServiceClient}. + * + *

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

    + *
  • The default service address (admanager.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 getPrivateAuctionDeal: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * PrivateAuctionDealServiceSettings.Builder privateAuctionDealServiceSettingsBuilder =
+ *     PrivateAuctionDealServiceSettings.newBuilder();
+ * privateAuctionDealServiceSettingsBuilder
+ *     .getPrivateAuctionDealSettings()
+ *     .setRetrySettings(
+ *         privateAuctionDealServiceSettingsBuilder
+ *             .getPrivateAuctionDealSettings()
+ *             .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());
+ * PrivateAuctionDealServiceSettings privateAuctionDealServiceSettings =
+ *     privateAuctionDealServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class PrivateAuctionDealServiceSettings + extends ClientSettings { + + /** Returns the object with the settings used for calls to getPrivateAuctionDeal. */ + public UnaryCallSettings + getPrivateAuctionDealSettings() { + return ((PrivateAuctionDealServiceStubSettings) getStubSettings()) + .getPrivateAuctionDealSettings(); + } + + /** Returns the object with the settings used for calls to listPrivateAuctionDeals. */ + public PagedCallSettings< + ListPrivateAuctionDealsRequest, + ListPrivateAuctionDealsResponse, + ListPrivateAuctionDealsPagedResponse> + listPrivateAuctionDealsSettings() { + return ((PrivateAuctionDealServiceStubSettings) getStubSettings()) + .listPrivateAuctionDealsSettings(); + } + + /** Returns the object with the settings used for calls to createPrivateAuctionDeal. */ + public UnaryCallSettings + createPrivateAuctionDealSettings() { + return ((PrivateAuctionDealServiceStubSettings) getStubSettings()) + .createPrivateAuctionDealSettings(); + } + + /** Returns the object with the settings used for calls to updatePrivateAuctionDeal. */ + public UnaryCallSettings + updatePrivateAuctionDealSettings() { + return ((PrivateAuctionDealServiceStubSettings) getStubSettings()) + .updatePrivateAuctionDealSettings(); + } + + public static final PrivateAuctionDealServiceSettings create( + PrivateAuctionDealServiceStubSettings stub) throws IOException { + return new PrivateAuctionDealServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return PrivateAuctionDealServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return PrivateAuctionDealServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return PrivateAuctionDealServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return PrivateAuctionDealServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return PrivateAuctionDealServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return PrivateAuctionDealServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return PrivateAuctionDealServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected PrivateAuctionDealServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for PrivateAuctionDealServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(PrivateAuctionDealServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(PrivateAuctionDealServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(PrivateAuctionDealServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(PrivateAuctionDealServiceStubSettings.newBuilder()); + } + + public PrivateAuctionDealServiceStubSettings.Builder getStubSettingsBuilder() { + return ((PrivateAuctionDealServiceStubSettings.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 getPrivateAuctionDeal. */ + public UnaryCallSettings.Builder + getPrivateAuctionDealSettings() { + return getStubSettingsBuilder().getPrivateAuctionDealSettings(); + } + + /** Returns the builder for the settings used for calls to listPrivateAuctionDeals. */ + public PagedCallSettings.Builder< + ListPrivateAuctionDealsRequest, + ListPrivateAuctionDealsResponse, + ListPrivateAuctionDealsPagedResponse> + listPrivateAuctionDealsSettings() { + return getStubSettingsBuilder().listPrivateAuctionDealsSettings(); + } + + /** Returns the builder for the settings used for calls to createPrivateAuctionDeal. */ + public UnaryCallSettings.Builder + createPrivateAuctionDealSettings() { + return getStubSettingsBuilder().createPrivateAuctionDealSettings(); + } + + /** Returns the builder for the settings used for calls to updatePrivateAuctionDeal. */ + public UnaryCallSettings.Builder + updatePrivateAuctionDealSettings() { + return getStubSettingsBuilder().updatePrivateAuctionDealSettings(); + } + + @Override + public PrivateAuctionDealServiceSettings build() throws IOException { + return new PrivateAuctionDealServiceSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PrivateAuctionServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PrivateAuctionServiceClient.java new file mode 100644 index 000000000000..0baecf674f7b --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PrivateAuctionServiceClient.java @@ -0,0 +1,880 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1; + +import com.google.ads.admanager.v1.stub.PrivateAuctionServiceStub; +import com.google.ads.admanager.v1.stub.PrivateAuctionServiceStubSettings; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Provides methods for handling `PrivateAuction` objects. + * + *

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 (PrivateAuctionServiceClient privateAuctionServiceClient =
+ *     PrivateAuctionServiceClient.create()) {
+ *   PrivateAuctionName name = PrivateAuctionName.of("[NETWORK_CODE]", "[PRIVATE_AUCTION]");
+ *   PrivateAuction response = privateAuctionServiceClient.getPrivateAuction(name);
+ * }
+ * }
+ * + *

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

GetPrivateAuction

API to retrieve a `PrivateAuction` object.

+ *

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

+ *
    + *
  • getPrivateAuction(GetPrivateAuctionRequest request) + *

+ *

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

+ *
    + *
  • getPrivateAuction(PrivateAuctionName name) + *

  • getPrivateAuction(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.

+ *
    + *
  • getPrivateAuctionCallable() + *

+ *

ListPrivateAuctions

API to retrieve a list of `PrivateAuction` objects.

+ *

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

+ *
    + *
  • listPrivateAuctions(ListPrivateAuctionsRequest request) + *

+ *

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

+ *
    + *
  • listPrivateAuctions(NetworkName parent) + *

  • listPrivateAuctions(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.

+ *
    + *
  • listPrivateAuctionsPagedCallable() + *

  • listPrivateAuctionsCallable() + *

+ *

CreatePrivateAuction

API to create a `PrivateAuction` object.

+ *

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

+ *
    + *
  • createPrivateAuction(CreatePrivateAuctionRequest request) + *

+ *

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

+ *
    + *
  • createPrivateAuction(NetworkName parent, PrivateAuction privateAuction) + *

  • createPrivateAuction(String parent, PrivateAuction privateAuction) + *

+ *

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

+ *
    + *
  • createPrivateAuctionCallable() + *

+ *

UpdatePrivateAuction

API to update a `PrivateAuction` object.

+ *

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

+ *
    + *
  • updatePrivateAuction(UpdatePrivateAuctionRequest request) + *

+ *

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

+ *
    + *
  • updatePrivateAuction(PrivateAuction privateAuction, FieldMask updateMask) + *

+ *

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

+ *
    + *
  • updatePrivateAuctionCallable() + *

+ *
+ * + *

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 PrivateAuctionServiceSettings + * 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
+ * PrivateAuctionServiceSettings privateAuctionServiceSettings =
+ *     PrivateAuctionServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * PrivateAuctionServiceClient privateAuctionServiceClient =
+ *     PrivateAuctionServiceClient.create(privateAuctionServiceSettings);
+ * }
+ * + *

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
+ * PrivateAuctionServiceSettings privateAuctionServiceSettings =
+ *     PrivateAuctionServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * PrivateAuctionServiceClient privateAuctionServiceClient =
+ *     PrivateAuctionServiceClient.create(privateAuctionServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class PrivateAuctionServiceClient implements BackgroundResource { + private final PrivateAuctionServiceSettings settings; + private final PrivateAuctionServiceStub stub; + + /** Constructs an instance of PrivateAuctionServiceClient with default settings. */ + public static final PrivateAuctionServiceClient create() throws IOException { + return create(PrivateAuctionServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of PrivateAuctionServiceClient, 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 PrivateAuctionServiceClient create(PrivateAuctionServiceSettings settings) + throws IOException { + return new PrivateAuctionServiceClient(settings); + } + + /** + * Constructs an instance of PrivateAuctionServiceClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(PrivateAuctionServiceSettings). + */ + public static final PrivateAuctionServiceClient create(PrivateAuctionServiceStub stub) { + return new PrivateAuctionServiceClient(stub); + } + + /** + * Constructs an instance of PrivateAuctionServiceClient, 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 PrivateAuctionServiceClient(PrivateAuctionServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((PrivateAuctionServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected PrivateAuctionServiceClient(PrivateAuctionServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final PrivateAuctionServiceSettings getSettings() { + return settings; + } + + public PrivateAuctionServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `PrivateAuction` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PrivateAuctionServiceClient privateAuctionServiceClient =
+   *     PrivateAuctionServiceClient.create()) {
+   *   PrivateAuctionName name = PrivateAuctionName.of("[NETWORK_CODE]", "[PRIVATE_AUCTION]");
+   *   PrivateAuction response = privateAuctionServiceClient.getPrivateAuction(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the PrivateAuction. Format: + * `networks/{network_code}/privateAuctions/{private_auction_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PrivateAuction getPrivateAuction(PrivateAuctionName name) { + GetPrivateAuctionRequest request = + GetPrivateAuctionRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getPrivateAuction(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `PrivateAuction` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PrivateAuctionServiceClient privateAuctionServiceClient =
+   *     PrivateAuctionServiceClient.create()) {
+   *   String name = PrivateAuctionName.of("[NETWORK_CODE]", "[PRIVATE_AUCTION]").toString();
+   *   PrivateAuction response = privateAuctionServiceClient.getPrivateAuction(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the PrivateAuction. Format: + * `networks/{network_code}/privateAuctions/{private_auction_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PrivateAuction getPrivateAuction(String name) { + GetPrivateAuctionRequest request = GetPrivateAuctionRequest.newBuilder().setName(name).build(); + return getPrivateAuction(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `PrivateAuction` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PrivateAuctionServiceClient privateAuctionServiceClient =
+   *     PrivateAuctionServiceClient.create()) {
+   *   GetPrivateAuctionRequest request =
+   *       GetPrivateAuctionRequest.newBuilder()
+   *           .setName(PrivateAuctionName.of("[NETWORK_CODE]", "[PRIVATE_AUCTION]").toString())
+   *           .build();
+   *   PrivateAuction response = privateAuctionServiceClient.getPrivateAuction(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 PrivateAuction getPrivateAuction(GetPrivateAuctionRequest request) { + return getPrivateAuctionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `PrivateAuction` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PrivateAuctionServiceClient privateAuctionServiceClient =
+   *     PrivateAuctionServiceClient.create()) {
+   *   GetPrivateAuctionRequest request =
+   *       GetPrivateAuctionRequest.newBuilder()
+   *           .setName(PrivateAuctionName.of("[NETWORK_CODE]", "[PRIVATE_AUCTION]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       privateAuctionServiceClient.getPrivateAuctionCallable().futureCall(request);
+   *   // Do something.
+   *   PrivateAuction response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getPrivateAuctionCallable() { + return stub.getPrivateAuctionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `PrivateAuction` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PrivateAuctionServiceClient privateAuctionServiceClient =
+   *     PrivateAuctionServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   for (PrivateAuction element :
+   *       privateAuctionServiceClient.listPrivateAuctions(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of PrivateAuctions. Format: + * `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListPrivateAuctionsPagedResponse listPrivateAuctions(NetworkName parent) { + ListPrivateAuctionsRequest request = + ListPrivateAuctionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listPrivateAuctions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `PrivateAuction` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PrivateAuctionServiceClient privateAuctionServiceClient =
+   *     PrivateAuctionServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   for (PrivateAuction element :
+   *       privateAuctionServiceClient.listPrivateAuctions(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of PrivateAuctions. Format: + * `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListPrivateAuctionsPagedResponse listPrivateAuctions(String parent) { + ListPrivateAuctionsRequest request = + ListPrivateAuctionsRequest.newBuilder().setParent(parent).build(); + return listPrivateAuctions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `PrivateAuction` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PrivateAuctionServiceClient privateAuctionServiceClient =
+   *     PrivateAuctionServiceClient.create()) {
+   *   ListPrivateAuctionsRequest request =
+   *       ListPrivateAuctionsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   for (PrivateAuction element :
+   *       privateAuctionServiceClient.listPrivateAuctions(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 ListPrivateAuctionsPagedResponse listPrivateAuctions( + ListPrivateAuctionsRequest request) { + return listPrivateAuctionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `PrivateAuction` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PrivateAuctionServiceClient privateAuctionServiceClient =
+   *     PrivateAuctionServiceClient.create()) {
+   *   ListPrivateAuctionsRequest request =
+   *       ListPrivateAuctionsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   ApiFuture future =
+   *       privateAuctionServiceClient.listPrivateAuctionsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (PrivateAuction element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listPrivateAuctionsPagedCallable() { + return stub.listPrivateAuctionsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `PrivateAuction` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PrivateAuctionServiceClient privateAuctionServiceClient =
+   *     PrivateAuctionServiceClient.create()) {
+   *   ListPrivateAuctionsRequest request =
+   *       ListPrivateAuctionsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   while (true) {
+   *     ListPrivateAuctionsResponse response =
+   *         privateAuctionServiceClient.listPrivateAuctionsCallable().call(request);
+   *     for (PrivateAuction element : response.getPrivateAuctionsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listPrivateAuctionsCallable() { + return stub.listPrivateAuctionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to create a `PrivateAuction` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PrivateAuctionServiceClient privateAuctionServiceClient =
+   *     PrivateAuctionServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   PrivateAuction privateAuction = PrivateAuction.newBuilder().build();
+   *   PrivateAuction response =
+   *       privateAuctionServiceClient.createPrivateAuction(parent, privateAuction);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where this `PrivateAuction` will be created. + * Format: `networks/{network_code}` + * @param privateAuction Required. The `PrivateAuction` to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PrivateAuction createPrivateAuction( + NetworkName parent, PrivateAuction privateAuction) { + CreatePrivateAuctionRequest request = + CreatePrivateAuctionRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setPrivateAuction(privateAuction) + .build(); + return createPrivateAuction(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to create a `PrivateAuction` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PrivateAuctionServiceClient privateAuctionServiceClient =
+   *     PrivateAuctionServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   PrivateAuction privateAuction = PrivateAuction.newBuilder().build();
+   *   PrivateAuction response =
+   *       privateAuctionServiceClient.createPrivateAuction(parent, privateAuction);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where this `PrivateAuction` will be created. + * Format: `networks/{network_code}` + * @param privateAuction Required. The `PrivateAuction` to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PrivateAuction createPrivateAuction(String parent, PrivateAuction privateAuction) { + CreatePrivateAuctionRequest request = + CreatePrivateAuctionRequest.newBuilder() + .setParent(parent) + .setPrivateAuction(privateAuction) + .build(); + return createPrivateAuction(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to create a `PrivateAuction` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PrivateAuctionServiceClient privateAuctionServiceClient =
+   *     PrivateAuctionServiceClient.create()) {
+   *   CreatePrivateAuctionRequest request =
+   *       CreatePrivateAuctionRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPrivateAuction(PrivateAuction.newBuilder().build())
+   *           .build();
+   *   PrivateAuction response = privateAuctionServiceClient.createPrivateAuction(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 PrivateAuction createPrivateAuction(CreatePrivateAuctionRequest request) { + return createPrivateAuctionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to create a `PrivateAuction` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PrivateAuctionServiceClient privateAuctionServiceClient =
+   *     PrivateAuctionServiceClient.create()) {
+   *   CreatePrivateAuctionRequest request =
+   *       CreatePrivateAuctionRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPrivateAuction(PrivateAuction.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       privateAuctionServiceClient.createPrivateAuctionCallable().futureCall(request);
+   *   // Do something.
+   *   PrivateAuction response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createPrivateAuctionCallable() { + return stub.createPrivateAuctionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to update a `PrivateAuction` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PrivateAuctionServiceClient privateAuctionServiceClient =
+   *     PrivateAuctionServiceClient.create()) {
+   *   PrivateAuction privateAuction = PrivateAuction.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   PrivateAuction response =
+   *       privateAuctionServiceClient.updatePrivateAuction(privateAuction, updateMask);
+   * }
+   * }
+ * + * @param privateAuction Required. The `PrivateAuction` to update. + *

The `PrivateAuction`'s `name` is used to identify the `PrivateAuction` to update. + * @param updateMask Required. The list of fields to update. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PrivateAuction updatePrivateAuction( + PrivateAuction privateAuction, FieldMask updateMask) { + UpdatePrivateAuctionRequest request = + UpdatePrivateAuctionRequest.newBuilder() + .setPrivateAuction(privateAuction) + .setUpdateMask(updateMask) + .build(); + return updatePrivateAuction(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to update a `PrivateAuction` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PrivateAuctionServiceClient privateAuctionServiceClient =
+   *     PrivateAuctionServiceClient.create()) {
+   *   UpdatePrivateAuctionRequest request =
+   *       UpdatePrivateAuctionRequest.newBuilder()
+   *           .setPrivateAuction(PrivateAuction.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   PrivateAuction response = privateAuctionServiceClient.updatePrivateAuction(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 PrivateAuction updatePrivateAuction(UpdatePrivateAuctionRequest request) { + return updatePrivateAuctionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to update a `PrivateAuction` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PrivateAuctionServiceClient privateAuctionServiceClient =
+   *     PrivateAuctionServiceClient.create()) {
+   *   UpdatePrivateAuctionRequest request =
+   *       UpdatePrivateAuctionRequest.newBuilder()
+   *           .setPrivateAuction(PrivateAuction.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       privateAuctionServiceClient.updatePrivateAuctionCallable().futureCall(request);
+   *   // Do something.
+   *   PrivateAuction response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updatePrivateAuctionCallable() { + return stub.updatePrivateAuctionCallable(); + } + + @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 ListPrivateAuctionsPagedResponse + extends AbstractPagedListResponse< + ListPrivateAuctionsRequest, + ListPrivateAuctionsResponse, + PrivateAuction, + ListPrivateAuctionsPage, + ListPrivateAuctionsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListPrivateAuctionsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListPrivateAuctionsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListPrivateAuctionsPagedResponse(ListPrivateAuctionsPage page) { + super(page, ListPrivateAuctionsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListPrivateAuctionsPage + extends AbstractPage< + ListPrivateAuctionsRequest, + ListPrivateAuctionsResponse, + PrivateAuction, + ListPrivateAuctionsPage> { + + private ListPrivateAuctionsPage( + PageContext + context, + ListPrivateAuctionsResponse response) { + super(context, response); + } + + private static ListPrivateAuctionsPage createEmptyPage() { + return new ListPrivateAuctionsPage(null, null); + } + + @Override + protected ListPrivateAuctionsPage createPage( + PageContext + context, + ListPrivateAuctionsResponse response) { + return new ListPrivateAuctionsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListPrivateAuctionsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListPrivateAuctionsRequest, + ListPrivateAuctionsResponse, + PrivateAuction, + ListPrivateAuctionsPage, + ListPrivateAuctionsFixedSizeCollection> { + + private ListPrivateAuctionsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListPrivateAuctionsFixedSizeCollection createEmptyCollection() { + return new ListPrivateAuctionsFixedSizeCollection(null, 0); + } + + @Override + protected ListPrivateAuctionsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListPrivateAuctionsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PrivateAuctionServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PrivateAuctionServiceSettings.java new file mode 100644 index 000000000000..f951d4c59316 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PrivateAuctionServiceSettings.java @@ -0,0 +1,244 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1; + +import static com.google.ads.admanager.v1.PrivateAuctionServiceClient.ListPrivateAuctionsPagedResponse; + +import com.google.ads.admanager.v1.stub.PrivateAuctionServiceStubSettings; +import com.google.api.core.ApiFunction; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link PrivateAuctionServiceClient}. + * + *

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

    + *
  • The default service address (admanager.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 getPrivateAuction: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * PrivateAuctionServiceSettings.Builder privateAuctionServiceSettingsBuilder =
+ *     PrivateAuctionServiceSettings.newBuilder();
+ * privateAuctionServiceSettingsBuilder
+ *     .getPrivateAuctionSettings()
+ *     .setRetrySettings(
+ *         privateAuctionServiceSettingsBuilder
+ *             .getPrivateAuctionSettings()
+ *             .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());
+ * PrivateAuctionServiceSettings privateAuctionServiceSettings =
+ *     privateAuctionServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class PrivateAuctionServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to getPrivateAuction. */ + public UnaryCallSettings getPrivateAuctionSettings() { + return ((PrivateAuctionServiceStubSettings) getStubSettings()).getPrivateAuctionSettings(); + } + + /** Returns the object with the settings used for calls to listPrivateAuctions. */ + public PagedCallSettings< + ListPrivateAuctionsRequest, ListPrivateAuctionsResponse, ListPrivateAuctionsPagedResponse> + listPrivateAuctionsSettings() { + return ((PrivateAuctionServiceStubSettings) getStubSettings()).listPrivateAuctionsSettings(); + } + + /** Returns the object with the settings used for calls to createPrivateAuction. */ + public UnaryCallSettings + createPrivateAuctionSettings() { + return ((PrivateAuctionServiceStubSettings) getStubSettings()).createPrivateAuctionSettings(); + } + + /** Returns the object with the settings used for calls to updatePrivateAuction. */ + public UnaryCallSettings + updatePrivateAuctionSettings() { + return ((PrivateAuctionServiceStubSettings) getStubSettings()).updatePrivateAuctionSettings(); + } + + public static final PrivateAuctionServiceSettings create(PrivateAuctionServiceStubSettings stub) + throws IOException { + return new PrivateAuctionServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return PrivateAuctionServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return PrivateAuctionServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return PrivateAuctionServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return PrivateAuctionServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return PrivateAuctionServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return PrivateAuctionServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return PrivateAuctionServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected PrivateAuctionServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for PrivateAuctionServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(PrivateAuctionServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(PrivateAuctionServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(PrivateAuctionServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(PrivateAuctionServiceStubSettings.newBuilder()); + } + + public PrivateAuctionServiceStubSettings.Builder getStubSettingsBuilder() { + return ((PrivateAuctionServiceStubSettings.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 getPrivateAuction. */ + public UnaryCallSettings.Builder + getPrivateAuctionSettings() { + return getStubSettingsBuilder().getPrivateAuctionSettings(); + } + + /** Returns the builder for the settings used for calls to listPrivateAuctions. */ + public PagedCallSettings.Builder< + ListPrivateAuctionsRequest, + ListPrivateAuctionsResponse, + ListPrivateAuctionsPagedResponse> + listPrivateAuctionsSettings() { + return getStubSettingsBuilder().listPrivateAuctionsSettings(); + } + + /** Returns the builder for the settings used for calls to createPrivateAuction. */ + public UnaryCallSettings.Builder + createPrivateAuctionSettings() { + return getStubSettingsBuilder().createPrivateAuctionSettings(); + } + + /** Returns the builder for the settings used for calls to updatePrivateAuction. */ + public UnaryCallSettings.Builder + updatePrivateAuctionSettings() { + return getStubSettingsBuilder().updatePrivateAuctionSettings(); + } + + @Override + public PrivateAuctionServiceSettings build() throws IOException { + return new PrivateAuctionServiceSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ProgrammaticBuyerServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ProgrammaticBuyerServiceClient.java new file mode 100644 index 000000000000..2fb4e8bcdb38 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ProgrammaticBuyerServiceClient.java @@ -0,0 +1,625 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1; + +import com.google.ads.admanager.v1.stub.ProgrammaticBuyerServiceStub; +import com.google.ads.admanager.v1.stub.ProgrammaticBuyerServiceStubSettings; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.util.concurrent.MoreExecutors; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Provides methods for handling `ProgrammaticBuyer` objects. + * + *

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 (ProgrammaticBuyerServiceClient programmaticBuyerServiceClient =
+ *     ProgrammaticBuyerServiceClient.create()) {
+ *   ProgrammaticBuyerName name =
+ *       ProgrammaticBuyerName.of("[NETWORK_CODE]", "[PROGRAMMATIC_BUYER]");
+ *   ProgrammaticBuyer response = programmaticBuyerServiceClient.getProgrammaticBuyer(name);
+ * }
+ * }
+ * + *

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

GetProgrammaticBuyer

API to retrieve a `ProgrammaticBuyer` object.

+ *

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

+ *
    + *
  • getProgrammaticBuyer(GetProgrammaticBuyerRequest request) + *

+ *

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

+ *
    + *
  • getProgrammaticBuyer(ProgrammaticBuyerName name) + *

  • getProgrammaticBuyer(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.

+ *
    + *
  • getProgrammaticBuyerCallable() + *

+ *

ListProgrammaticBuyers

API to retrieve a list of `ProgrammaticBuyer` objects.

+ *

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

+ *
    + *
  • listProgrammaticBuyers(ListProgrammaticBuyersRequest request) + *

+ *

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

+ *
    + *
  • listProgrammaticBuyers(NetworkName parent) + *

  • listProgrammaticBuyers(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.

+ *
    + *
  • listProgrammaticBuyersPagedCallable() + *

  • listProgrammaticBuyersCallable() + *

+ *
+ * + *

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 + * ProgrammaticBuyerServiceSettings 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
+ * ProgrammaticBuyerServiceSettings programmaticBuyerServiceSettings =
+ *     ProgrammaticBuyerServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * ProgrammaticBuyerServiceClient programmaticBuyerServiceClient =
+ *     ProgrammaticBuyerServiceClient.create(programmaticBuyerServiceSettings);
+ * }
+ * + *

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
+ * ProgrammaticBuyerServiceSettings programmaticBuyerServiceSettings =
+ *     ProgrammaticBuyerServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * ProgrammaticBuyerServiceClient programmaticBuyerServiceClient =
+ *     ProgrammaticBuyerServiceClient.create(programmaticBuyerServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class ProgrammaticBuyerServiceClient implements BackgroundResource { + private final ProgrammaticBuyerServiceSettings settings; + private final ProgrammaticBuyerServiceStub stub; + + /** Constructs an instance of ProgrammaticBuyerServiceClient with default settings. */ + public static final ProgrammaticBuyerServiceClient create() throws IOException { + return create(ProgrammaticBuyerServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of ProgrammaticBuyerServiceClient, 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 ProgrammaticBuyerServiceClient create( + ProgrammaticBuyerServiceSettings settings) throws IOException { + return new ProgrammaticBuyerServiceClient(settings); + } + + /** + * Constructs an instance of ProgrammaticBuyerServiceClient, using the given stub for making + * calls. This is for advanced usage - prefer using create(ProgrammaticBuyerServiceSettings). + */ + public static final ProgrammaticBuyerServiceClient create(ProgrammaticBuyerServiceStub stub) { + return new ProgrammaticBuyerServiceClient(stub); + } + + /** + * Constructs an instance of ProgrammaticBuyerServiceClient, 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 ProgrammaticBuyerServiceClient(ProgrammaticBuyerServiceSettings settings) + throws IOException { + this.settings = settings; + this.stub = ((ProgrammaticBuyerServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected ProgrammaticBuyerServiceClient(ProgrammaticBuyerServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final ProgrammaticBuyerServiceSettings getSettings() { + return settings; + } + + public ProgrammaticBuyerServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `ProgrammaticBuyer` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ProgrammaticBuyerServiceClient programmaticBuyerServiceClient =
+   *     ProgrammaticBuyerServiceClient.create()) {
+   *   ProgrammaticBuyerName name =
+   *       ProgrammaticBuyerName.of("[NETWORK_CODE]", "[PROGRAMMATIC_BUYER]");
+   *   ProgrammaticBuyer response = programmaticBuyerServiceClient.getProgrammaticBuyer(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the ProgrammaticBuyer. Format: + * `networks/{network_code}/programmaticBuyers/{buyer_account_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ProgrammaticBuyer getProgrammaticBuyer(ProgrammaticBuyerName name) { + GetProgrammaticBuyerRequest request = + GetProgrammaticBuyerRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getProgrammaticBuyer(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `ProgrammaticBuyer` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ProgrammaticBuyerServiceClient programmaticBuyerServiceClient =
+   *     ProgrammaticBuyerServiceClient.create()) {
+   *   String name = ProgrammaticBuyerName.of("[NETWORK_CODE]", "[PROGRAMMATIC_BUYER]").toString();
+   *   ProgrammaticBuyer response = programmaticBuyerServiceClient.getProgrammaticBuyer(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the ProgrammaticBuyer. Format: + * `networks/{network_code}/programmaticBuyers/{buyer_account_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ProgrammaticBuyer getProgrammaticBuyer(String name) { + GetProgrammaticBuyerRequest request = + GetProgrammaticBuyerRequest.newBuilder().setName(name).build(); + return getProgrammaticBuyer(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `ProgrammaticBuyer` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ProgrammaticBuyerServiceClient programmaticBuyerServiceClient =
+   *     ProgrammaticBuyerServiceClient.create()) {
+   *   GetProgrammaticBuyerRequest request =
+   *       GetProgrammaticBuyerRequest.newBuilder()
+   *           .setName(
+   *               ProgrammaticBuyerName.of("[NETWORK_CODE]", "[PROGRAMMATIC_BUYER]").toString())
+   *           .build();
+   *   ProgrammaticBuyer response = programmaticBuyerServiceClient.getProgrammaticBuyer(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 ProgrammaticBuyer getProgrammaticBuyer(GetProgrammaticBuyerRequest request) { + return getProgrammaticBuyerCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `ProgrammaticBuyer` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ProgrammaticBuyerServiceClient programmaticBuyerServiceClient =
+   *     ProgrammaticBuyerServiceClient.create()) {
+   *   GetProgrammaticBuyerRequest request =
+   *       GetProgrammaticBuyerRequest.newBuilder()
+   *           .setName(
+   *               ProgrammaticBuyerName.of("[NETWORK_CODE]", "[PROGRAMMATIC_BUYER]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       programmaticBuyerServiceClient.getProgrammaticBuyerCallable().futureCall(request);
+   *   // Do something.
+   *   ProgrammaticBuyer response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getProgrammaticBuyerCallable() { + return stub.getProgrammaticBuyerCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `ProgrammaticBuyer` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ProgrammaticBuyerServiceClient programmaticBuyerServiceClient =
+   *     ProgrammaticBuyerServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   for (ProgrammaticBuyer element :
+   *       programmaticBuyerServiceClient.listProgrammaticBuyers(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of ProgrammaticBuyers. Format: + * `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListProgrammaticBuyersPagedResponse listProgrammaticBuyers(NetworkName parent) { + ListProgrammaticBuyersRequest request = + ListProgrammaticBuyersRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listProgrammaticBuyers(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `ProgrammaticBuyer` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ProgrammaticBuyerServiceClient programmaticBuyerServiceClient =
+   *     ProgrammaticBuyerServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   for (ProgrammaticBuyer element :
+   *       programmaticBuyerServiceClient.listProgrammaticBuyers(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of ProgrammaticBuyers. Format: + * `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListProgrammaticBuyersPagedResponse listProgrammaticBuyers(String parent) { + ListProgrammaticBuyersRequest request = + ListProgrammaticBuyersRequest.newBuilder().setParent(parent).build(); + return listProgrammaticBuyers(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `ProgrammaticBuyer` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ProgrammaticBuyerServiceClient programmaticBuyerServiceClient =
+   *     ProgrammaticBuyerServiceClient.create()) {
+   *   ListProgrammaticBuyersRequest request =
+   *       ListProgrammaticBuyersRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   for (ProgrammaticBuyer element :
+   *       programmaticBuyerServiceClient.listProgrammaticBuyers(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 ListProgrammaticBuyersPagedResponse listProgrammaticBuyers( + ListProgrammaticBuyersRequest request) { + return listProgrammaticBuyersPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `ProgrammaticBuyer` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ProgrammaticBuyerServiceClient programmaticBuyerServiceClient =
+   *     ProgrammaticBuyerServiceClient.create()) {
+   *   ListProgrammaticBuyersRequest request =
+   *       ListProgrammaticBuyersRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   ApiFuture future =
+   *       programmaticBuyerServiceClient.listProgrammaticBuyersPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (ProgrammaticBuyer element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listProgrammaticBuyersPagedCallable() { + return stub.listProgrammaticBuyersPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `ProgrammaticBuyer` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ProgrammaticBuyerServiceClient programmaticBuyerServiceClient =
+   *     ProgrammaticBuyerServiceClient.create()) {
+   *   ListProgrammaticBuyersRequest request =
+   *       ListProgrammaticBuyersRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   while (true) {
+   *     ListProgrammaticBuyersResponse response =
+   *         programmaticBuyerServiceClient.listProgrammaticBuyersCallable().call(request);
+   *     for (ProgrammaticBuyer element : response.getProgrammaticBuyersList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listProgrammaticBuyersCallable() { + return stub.listProgrammaticBuyersCallable(); + } + + @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 ListProgrammaticBuyersPagedResponse + extends AbstractPagedListResponse< + ListProgrammaticBuyersRequest, + ListProgrammaticBuyersResponse, + ProgrammaticBuyer, + ListProgrammaticBuyersPage, + ListProgrammaticBuyersFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListProgrammaticBuyersRequest, ListProgrammaticBuyersResponse, ProgrammaticBuyer> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListProgrammaticBuyersPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListProgrammaticBuyersPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListProgrammaticBuyersPagedResponse(ListProgrammaticBuyersPage page) { + super(page, ListProgrammaticBuyersFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListProgrammaticBuyersPage + extends AbstractPage< + ListProgrammaticBuyersRequest, + ListProgrammaticBuyersResponse, + ProgrammaticBuyer, + ListProgrammaticBuyersPage> { + + private ListProgrammaticBuyersPage( + PageContext< + ListProgrammaticBuyersRequest, ListProgrammaticBuyersResponse, ProgrammaticBuyer> + context, + ListProgrammaticBuyersResponse response) { + super(context, response); + } + + private static ListProgrammaticBuyersPage createEmptyPage() { + return new ListProgrammaticBuyersPage(null, null); + } + + @Override + protected ListProgrammaticBuyersPage createPage( + PageContext< + ListProgrammaticBuyersRequest, ListProgrammaticBuyersResponse, ProgrammaticBuyer> + context, + ListProgrammaticBuyersResponse response) { + return new ListProgrammaticBuyersPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListProgrammaticBuyersRequest, ListProgrammaticBuyersResponse, ProgrammaticBuyer> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListProgrammaticBuyersFixedSizeCollection + extends AbstractFixedSizeCollection< + ListProgrammaticBuyersRequest, + ListProgrammaticBuyersResponse, + ProgrammaticBuyer, + ListProgrammaticBuyersPage, + ListProgrammaticBuyersFixedSizeCollection> { + + private ListProgrammaticBuyersFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListProgrammaticBuyersFixedSizeCollection createEmptyCollection() { + return new ListProgrammaticBuyersFixedSizeCollection(null, 0); + } + + @Override + protected ListProgrammaticBuyersFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListProgrammaticBuyersFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ProgrammaticBuyerServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ProgrammaticBuyerServiceSettings.java new file mode 100644 index 000000000000..44a127cc6a0a --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ProgrammaticBuyerServiceSettings.java @@ -0,0 +1,226 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1; + +import static com.google.ads.admanager.v1.ProgrammaticBuyerServiceClient.ListProgrammaticBuyersPagedResponse; + +import com.google.ads.admanager.v1.stub.ProgrammaticBuyerServiceStubSettings; +import com.google.api.core.ApiFunction; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link ProgrammaticBuyerServiceClient}. + * + *

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

    + *
  • The default service address (admanager.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 getProgrammaticBuyer: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ProgrammaticBuyerServiceSettings.Builder programmaticBuyerServiceSettingsBuilder =
+ *     ProgrammaticBuyerServiceSettings.newBuilder();
+ * programmaticBuyerServiceSettingsBuilder
+ *     .getProgrammaticBuyerSettings()
+ *     .setRetrySettings(
+ *         programmaticBuyerServiceSettingsBuilder
+ *             .getProgrammaticBuyerSettings()
+ *             .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());
+ * ProgrammaticBuyerServiceSettings programmaticBuyerServiceSettings =
+ *     programmaticBuyerServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class ProgrammaticBuyerServiceSettings + extends ClientSettings { + + /** Returns the object with the settings used for calls to getProgrammaticBuyer. */ + public UnaryCallSettings + getProgrammaticBuyerSettings() { + return ((ProgrammaticBuyerServiceStubSettings) getStubSettings()) + .getProgrammaticBuyerSettings(); + } + + /** Returns the object with the settings used for calls to listProgrammaticBuyers. */ + public PagedCallSettings< + ListProgrammaticBuyersRequest, + ListProgrammaticBuyersResponse, + ListProgrammaticBuyersPagedResponse> + listProgrammaticBuyersSettings() { + return ((ProgrammaticBuyerServiceStubSettings) getStubSettings()) + .listProgrammaticBuyersSettings(); + } + + public static final ProgrammaticBuyerServiceSettings create( + ProgrammaticBuyerServiceStubSettings stub) throws IOException { + return new ProgrammaticBuyerServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return ProgrammaticBuyerServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return ProgrammaticBuyerServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return ProgrammaticBuyerServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return ProgrammaticBuyerServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return ProgrammaticBuyerServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return ProgrammaticBuyerServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ProgrammaticBuyerServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected ProgrammaticBuyerServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for ProgrammaticBuyerServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(ProgrammaticBuyerServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(ProgrammaticBuyerServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(ProgrammaticBuyerServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(ProgrammaticBuyerServiceStubSettings.newBuilder()); + } + + public ProgrammaticBuyerServiceStubSettings.Builder getStubSettingsBuilder() { + return ((ProgrammaticBuyerServiceStubSettings.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 getProgrammaticBuyer. */ + public UnaryCallSettings.Builder + getProgrammaticBuyerSettings() { + return getStubSettingsBuilder().getProgrammaticBuyerSettings(); + } + + /** Returns the builder for the settings used for calls to listProgrammaticBuyers. */ + public PagedCallSettings.Builder< + ListProgrammaticBuyersRequest, + ListProgrammaticBuyersResponse, + ListProgrammaticBuyersPagedResponse> + listProgrammaticBuyersSettings() { + return getStubSettingsBuilder().listProgrammaticBuyersSettings(); + } + + @Override + public ProgrammaticBuyerServiceSettings build() throws IOException { + return new ProgrammaticBuyerServiceSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/gapic_metadata.json b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/gapic_metadata.json index 998efae64208..78fb448743de 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/gapic_metadata.json +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/gapic_metadata.json @@ -5,6 +5,30 @@ "protoPackage": "google.ads.admanager.v1", "libraryPackage": "com.google.ads.admanager.v1", "services": { + "AdBreakService": { + "clients": { + "grpc": { + "libraryClient": "AdBreakServiceClient", + "rpcs": { + "CreateAdBreak": { + "methods": ["createAdBreak", "createAdBreak", "createAdBreak", "createAdBreakCallable"] + }, + "DeleteAdBreak": { + "methods": ["deleteAdBreak", "deleteAdBreak", "deleteAdBreak", "deleteAdBreakCallable"] + }, + "GetAdBreak": { + "methods": ["getAdBreak", "getAdBreak", "getAdBreak", "getAdBreakCallable"] + }, + "ListAdBreaks": { + "methods": ["listAdBreaks", "listAdBreaks", "listAdBreaks", "listAdBreaksPagedCallable", "listAdBreaksCallable"] + }, + "UpdateAdBreak": { + "methods": ["updateAdBreak", "updateAdBreak", "updateAdBreakCallable"] + } + } + } + } + }, "AdUnitService": { "clients": { "grpc": { @@ -23,6 +47,21 @@ } } }, + "BandwidthGroupService": { + "clients": { + "grpc": { + "libraryClient": "BandwidthGroupServiceClient", + "rpcs": { + "GetBandwidthGroup": { + "methods": ["getBandwidthGroup", "getBandwidthGroup", "getBandwidthGroup", "getBandwidthGroupCallable"] + }, + "ListBandwidthGroups": { + "methods": ["listBandwidthGroups", "listBandwidthGroups", "listBandwidthGroups", "listBandwidthGroupsPagedCallable", "listBandwidthGroupsCallable"] + } + } + } + } + }, "CompanyService": { "clients": { "grpc": { @@ -83,6 +122,21 @@ } } }, + "DeviceCategoryService": { + "clients": { + "grpc": { + "libraryClient": "DeviceCategoryServiceClient", + "rpcs": { + "GetDeviceCategory": { + "methods": ["getDeviceCategory", "getDeviceCategory", "getDeviceCategory", "getDeviceCategoryCallable"] + }, + "ListDeviceCategories": { + "methods": ["listDeviceCategories", "listDeviceCategories", "listDeviceCategories", "listDeviceCategoriesPagedCallable", "listDeviceCategoriesCallable"] + } + } + } + } + }, "EntitySignalsMappingService": { "clients": { "grpc": { @@ -110,6 +164,21 @@ } } }, + "GeoTargetService": { + "clients": { + "grpc": { + "libraryClient": "GeoTargetServiceClient", + "rpcs": { + "GetGeoTarget": { + "methods": ["getGeoTarget", "getGeoTarget", "getGeoTarget", "getGeoTargetCallable"] + }, + "ListGeoTargets": { + "methods": ["listGeoTargets", "listGeoTargets", "listGeoTargets", "listGeoTargetsPagedCallable", "listGeoTargetsCallable"] + } + } + } + } + }, "NetworkService": { "clients": { "grpc": { @@ -125,6 +194,36 @@ } } }, + "OperatingSystemService": { + "clients": { + "grpc": { + "libraryClient": "OperatingSystemServiceClient", + "rpcs": { + "GetOperatingSystem": { + "methods": ["getOperatingSystem", "getOperatingSystem", "getOperatingSystem", "getOperatingSystemCallable"] + }, + "ListOperatingSystems": { + "methods": ["listOperatingSystems", "listOperatingSystems", "listOperatingSystems", "listOperatingSystemsPagedCallable", "listOperatingSystemsCallable"] + } + } + } + } + }, + "OperatingSystemVersionService": { + "clients": { + "grpc": { + "libraryClient": "OperatingSystemVersionServiceClient", + "rpcs": { + "GetOperatingSystemVersion": { + "methods": ["getOperatingSystemVersion", "getOperatingSystemVersion", "getOperatingSystemVersion", "getOperatingSystemVersionCallable"] + }, + "ListOperatingSystemVersions": { + "methods": ["listOperatingSystemVersions", "listOperatingSystemVersions", "listOperatingSystemVersions", "listOperatingSystemVersionsPagedCallable", "listOperatingSystemVersionsCallable"] + } + } + } + } + }, "OrderService": { "clients": { "grpc": { @@ -155,6 +254,63 @@ } } }, + "PrivateAuctionDealService": { + "clients": { + "grpc": { + "libraryClient": "PrivateAuctionDealServiceClient", + "rpcs": { + "CreatePrivateAuctionDeal": { + "methods": ["createPrivateAuctionDeal", "createPrivateAuctionDeal", "createPrivateAuctionDeal", "createPrivateAuctionDealCallable"] + }, + "GetPrivateAuctionDeal": { + "methods": ["getPrivateAuctionDeal", "getPrivateAuctionDeal", "getPrivateAuctionDeal", "getPrivateAuctionDealCallable"] + }, + "ListPrivateAuctionDeals": { + "methods": ["listPrivateAuctionDeals", "listPrivateAuctionDeals", "listPrivateAuctionDeals", "listPrivateAuctionDealsPagedCallable", "listPrivateAuctionDealsCallable"] + }, + "UpdatePrivateAuctionDeal": { + "methods": ["updatePrivateAuctionDeal", "updatePrivateAuctionDeal", "updatePrivateAuctionDealCallable"] + } + } + } + } + }, + "PrivateAuctionService": { + "clients": { + "grpc": { + "libraryClient": "PrivateAuctionServiceClient", + "rpcs": { + "CreatePrivateAuction": { + "methods": ["createPrivateAuction", "createPrivateAuction", "createPrivateAuction", "createPrivateAuctionCallable"] + }, + "GetPrivateAuction": { + "methods": ["getPrivateAuction", "getPrivateAuction", "getPrivateAuction", "getPrivateAuctionCallable"] + }, + "ListPrivateAuctions": { + "methods": ["listPrivateAuctions", "listPrivateAuctions", "listPrivateAuctions", "listPrivateAuctionsPagedCallable", "listPrivateAuctionsCallable"] + }, + "UpdatePrivateAuction": { + "methods": ["updatePrivateAuction", "updatePrivateAuction", "updatePrivateAuctionCallable"] + } + } + } + } + }, + "ProgrammaticBuyerService": { + "clients": { + "grpc": { + "libraryClient": "ProgrammaticBuyerServiceClient", + "rpcs": { + "GetProgrammaticBuyer": { + "methods": ["getProgrammaticBuyer", "getProgrammaticBuyer", "getProgrammaticBuyer", "getProgrammaticBuyerCallable"] + }, + "ListProgrammaticBuyers": { + "methods": ["listProgrammaticBuyers", "listProgrammaticBuyers", "listProgrammaticBuyers", "listProgrammaticBuyersPagedCallable", "listProgrammaticBuyersCallable"] + } + } + } + } + }, "ReportService": { "clients": { "grpc": { diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/package-info.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/package-info.java index 9fc705b63b93..f188f89a58fb 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/package-info.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/package-info.java @@ -19,6 +19,24 @@ * *

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

======================= AdBreakServiceClient ======================= + * + *

Service Description: Provides methods for handling `AdBreak` objects. + * + *

Sample for AdBreakServiceClient: + * + *

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

======================= AdUnitServiceClient ======================= * *

Service Description: Provides methods for handling AdUnit objects. @@ -37,6 +55,25 @@ * } * } * + *

======================= BandwidthGroupServiceClient ======================= + * + *

Service Description: Provides methods for handling `BandwidthGroup` objects. + * + *

Sample for BandwidthGroupServiceClient: + * + *

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

======================= CompanyServiceClient ======================= * *

Service Description: Provides methods for handling `Company` objects. @@ -108,13 +145,31 @@ * try (CustomTargetingValueServiceClient customTargetingValueServiceClient = * CustomTargetingValueServiceClient.create()) { * CustomTargetingValueName name = - * CustomTargetingValueName.of( - * "[NETWORK_CODE]", "[CUSTOM_TARGETING_KEY]", "[CUSTOM_TARGETING_VALUE]"); + * CustomTargetingValueName.of("[NETWORK_CODE]", "[CUSTOM_TARGETING_VALUE]"); * CustomTargetingValue response = * customTargetingValueServiceClient.getCustomTargetingValue(name); * } * } * + *

======================= DeviceCategoryServiceClient ======================= + * + *

Service Description: Provides methods for handling `DeviceCategory` objects. + * + *

Sample for DeviceCategoryServiceClient: + * + *

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

======================= EntitySignalsMappingServiceClient ======================= * *

Service Description: Provides methods for handling `EntitySignalsMapping` objects. @@ -136,9 +191,27 @@ * } * } * + *

======================= GeoTargetServiceClient ======================= + * + *

Service Description: Provides methods for handling `GeoTarget` objects. + * + *

Sample for GeoTargetServiceClient: + * + *

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

======================= NetworkServiceClient ======================= * - *

Service Description: Provides methods for handling Network objects. + *

Service Description: Provides methods for handling `Network` objects. * *

Sample for NetworkServiceClient: * @@ -154,6 +227,46 @@ * } * } * + *

======================= OperatingSystemServiceClient ======================= + * + *

Service Description: Provides methods for handling `OperatingSystem` objects. + * + *

Sample for OperatingSystemServiceClient: + * + *

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

======================= OperatingSystemVersionServiceClient ======================= + * + *

Service Description: Provides methods for handling `OperatingSystemVersion` objects. + * + *

Sample for OperatingSystemVersionServiceClient: + * + *

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

======================= OrderServiceClient ======================= * *

Service Description: Provides methods for handling `Order` objects. @@ -190,6 +303,65 @@ * } * } * + *

======================= PrivateAuctionDealServiceClient ======================= + * + *

Service Description: Provides methods for handling `PrivateAuctionDeal` objects. + * + *

Sample for PrivateAuctionDealServiceClient: + * + *

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

======================= PrivateAuctionServiceClient ======================= + * + *

Service Description: Provides methods for handling `PrivateAuction` objects. + * + *

Sample for PrivateAuctionServiceClient: + * + *

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

======================= ProgrammaticBuyerServiceClient ======================= + * + *

Service Description: Provides methods for handling `ProgrammaticBuyer` objects. + * + *

Sample for ProgrammaticBuyerServiceClient: + * + *

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

======================= ReportServiceClient ======================= * *

Service Description: Provides methods for interacting with reports. diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdBreakServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdBreakServiceStub.java new file mode 100644 index 000000000000..5be03074c9dd --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdBreakServiceStub.java @@ -0,0 +1,68 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.AdBreakServiceClient.ListAdBreaksPagedResponse; + +import com.google.ads.admanager.v1.AdBreak; +import com.google.ads.admanager.v1.CreateAdBreakRequest; +import com.google.ads.admanager.v1.DeleteAdBreakRequest; +import com.google.ads.admanager.v1.GetAdBreakRequest; +import com.google.ads.admanager.v1.ListAdBreaksRequest; +import com.google.ads.admanager.v1.ListAdBreaksResponse; +import com.google.ads.admanager.v1.UpdateAdBreakRequest; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the AdBreakService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class AdBreakServiceStub implements BackgroundResource { + + public UnaryCallable getAdBreakCallable() { + throw new UnsupportedOperationException("Not implemented: getAdBreakCallable()"); + } + + public UnaryCallable listAdBreaksPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listAdBreaksPagedCallable()"); + } + + public UnaryCallable listAdBreaksCallable() { + throw new UnsupportedOperationException("Not implemented: listAdBreaksCallable()"); + } + + public UnaryCallable createAdBreakCallable() { + throw new UnsupportedOperationException("Not implemented: createAdBreakCallable()"); + } + + public UnaryCallable updateAdBreakCallable() { + throw new UnsupportedOperationException("Not implemented: updateAdBreakCallable()"); + } + + public UnaryCallable deleteAdBreakCallable() { + throw new UnsupportedOperationException("Not implemented: deleteAdBreakCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdBreakServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdBreakServiceStubSettings.java new file mode 100644 index 000000000000..eb4d50c11d42 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdBreakServiceStubSettings.java @@ -0,0 +1,448 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.AdBreakServiceClient.ListAdBreaksPagedResponse; + +import com.google.ads.admanager.v1.AdBreak; +import com.google.ads.admanager.v1.CreateAdBreakRequest; +import com.google.ads.admanager.v1.DeleteAdBreakRequest; +import com.google.ads.admanager.v1.GetAdBreakRequest; +import com.google.ads.admanager.v1.ListAdBreaksRequest; +import com.google.ads.admanager.v1.ListAdBreaksResponse; +import com.google.ads.admanager.v1.UpdateAdBreakRequest; +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +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.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link AdBreakServiceStub}. + * + *

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

    + *
  • The default service address (admanager.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 getAdBreak: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AdBreakServiceStubSettings.Builder adBreakServiceSettingsBuilder =
+ *     AdBreakServiceStubSettings.newBuilder();
+ * adBreakServiceSettingsBuilder
+ *     .getAdBreakSettings()
+ *     .setRetrySettings(
+ *         adBreakServiceSettingsBuilder
+ *             .getAdBreakSettings()
+ *             .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());
+ * AdBreakServiceStubSettings adBreakServiceSettings = adBreakServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class AdBreakServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/admanager").build(); + + private final UnaryCallSettings getAdBreakSettings; + private final PagedCallSettings< + ListAdBreaksRequest, ListAdBreaksResponse, ListAdBreaksPagedResponse> + listAdBreaksSettings; + private final UnaryCallSettings createAdBreakSettings; + private final UnaryCallSettings updateAdBreakSettings; + private final UnaryCallSettings deleteAdBreakSettings; + + private static final PagedListDescriptor + LIST_AD_BREAKS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListAdBreaksRequest injectToken(ListAdBreaksRequest payload, String token) { + return ListAdBreaksRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListAdBreaksRequest injectPageSize(ListAdBreaksRequest payload, int pageSize) { + return ListAdBreaksRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListAdBreaksRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListAdBreaksResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListAdBreaksResponse payload) { + return payload.getAdBreaksList(); + } + }; + + private static final PagedListResponseFactory< + ListAdBreaksRequest, ListAdBreaksResponse, ListAdBreaksPagedResponse> + LIST_AD_BREAKS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAdBreaksRequest, ListAdBreaksResponse, ListAdBreaksPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListAdBreaksRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_AD_BREAKS_PAGE_STR_DESC, request, context); + return ListAdBreaksPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to getAdBreak. */ + public UnaryCallSettings getAdBreakSettings() { + return getAdBreakSettings; + } + + /** Returns the object with the settings used for calls to listAdBreaks. */ + public PagedCallSettings + listAdBreaksSettings() { + return listAdBreaksSettings; + } + + /** Returns the object with the settings used for calls to createAdBreak. */ + public UnaryCallSettings createAdBreakSettings() { + return createAdBreakSettings; + } + + /** Returns the object with the settings used for calls to updateAdBreak. */ + public UnaryCallSettings updateAdBreakSettings() { + return updateAdBreakSettings; + } + + /** Returns the object with the settings used for calls to deleteAdBreak. */ + public UnaryCallSettings deleteAdBreakSettings() { + return deleteAdBreakSettings; + } + + public AdBreakServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonAdBreakServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "admanager"; + } + + /** 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 "admanager.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "admanager.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 ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultHttpJsonTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(AdBreakServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected AdBreakServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getAdBreakSettings = settingsBuilder.getAdBreakSettings().build(); + listAdBreaksSettings = settingsBuilder.listAdBreaksSettings().build(); + createAdBreakSettings = settingsBuilder.createAdBreakSettings().build(); + updateAdBreakSettings = settingsBuilder.updateAdBreakSettings().build(); + deleteAdBreakSettings = settingsBuilder.deleteAdBreakSettings().build(); + } + + /** Builder for AdBreakServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder getAdBreakSettings; + private final PagedCallSettings.Builder< + ListAdBreaksRequest, ListAdBreaksResponse, ListAdBreaksPagedResponse> + listAdBreaksSettings; + private final UnaryCallSettings.Builder createAdBreakSettings; + private final UnaryCallSettings.Builder updateAdBreakSettings; + private final UnaryCallSettings.Builder deleteAdBreakSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getAdBreakSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listAdBreaksSettings = PagedCallSettings.newBuilder(LIST_AD_BREAKS_PAGE_STR_FACT); + createAdBreakSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateAdBreakSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteAdBreakSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getAdBreakSettings, + listAdBreaksSettings, + createAdBreakSettings, + updateAdBreakSettings, + deleteAdBreakSettings); + initDefaults(this); + } + + protected Builder(AdBreakServiceStubSettings settings) { + super(settings); + + getAdBreakSettings = settings.getAdBreakSettings.toBuilder(); + listAdBreaksSettings = settings.listAdBreaksSettings.toBuilder(); + createAdBreakSettings = settings.createAdBreakSettings.toBuilder(); + updateAdBreakSettings = settings.updateAdBreakSettings.toBuilder(); + deleteAdBreakSettings = settings.deleteAdBreakSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getAdBreakSettings, + listAdBreaksSettings, + createAdBreakSettings, + updateAdBreakSettings, + deleteAdBreakSettings); + } + + 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 initDefaults(Builder builder) { + builder + .getAdBreakSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listAdBreaksSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createAdBreakSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateAdBreakSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteAdBreakSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getAdBreak. */ + public UnaryCallSettings.Builder getAdBreakSettings() { + return getAdBreakSettings; + } + + /** Returns the builder for the settings used for calls to listAdBreaks. */ + public PagedCallSettings.Builder< + ListAdBreaksRequest, ListAdBreaksResponse, ListAdBreaksPagedResponse> + listAdBreaksSettings() { + return listAdBreaksSettings; + } + + /** Returns the builder for the settings used for calls to createAdBreak. */ + public UnaryCallSettings.Builder createAdBreakSettings() { + return createAdBreakSettings; + } + + /** Returns the builder for the settings used for calls to updateAdBreak. */ + public UnaryCallSettings.Builder updateAdBreakSettings() { + return updateAdBreakSettings; + } + + /** Returns the builder for the settings used for calls to deleteAdBreak. */ + public UnaryCallSettings.Builder deleteAdBreakSettings() { + return deleteAdBreakSettings; + } + + @Override + public AdBreakServiceStubSettings build() throws IOException { + return new AdBreakServiceStubSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdUnitServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdUnitServiceStubSettings.java index 7418307b9014..3e14cb9ecc11 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdUnitServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdUnitServiceStubSettings.java @@ -110,7 +110,7 @@ public class AdUnitServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().build(); + ImmutableList.builder().add("https://www.googleapis.com/auth/admanager").build(); private final UnaryCallSettings getAdUnitSettings; private final PagedCallSettings diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/BandwidthGroupServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/BandwidthGroupServiceStub.java new file mode 100644 index 000000000000..824b0b4009d6 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/BandwidthGroupServiceStub.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.BandwidthGroupServiceClient.ListBandwidthGroupsPagedResponse; + +import com.google.ads.admanager.v1.BandwidthGroup; +import com.google.ads.admanager.v1.GetBandwidthGroupRequest; +import com.google.ads.admanager.v1.ListBandwidthGroupsRequest; +import com.google.ads.admanager.v1.ListBandwidthGroupsResponse; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the BandwidthGroupService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class BandwidthGroupServiceStub implements BackgroundResource { + + public UnaryCallable getBandwidthGroupCallable() { + throw new UnsupportedOperationException("Not implemented: getBandwidthGroupCallable()"); + } + + public UnaryCallable + listBandwidthGroupsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listBandwidthGroupsPagedCallable()"); + } + + public UnaryCallable + listBandwidthGroupsCallable() { + throw new UnsupportedOperationException("Not implemented: listBandwidthGroupsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/BandwidthGroupServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/BandwidthGroupServiceStubSettings.java new file mode 100644 index 000000000000..8fa908a81649 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/BandwidthGroupServiceStubSettings.java @@ -0,0 +1,396 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.BandwidthGroupServiceClient.ListBandwidthGroupsPagedResponse; + +import com.google.ads.admanager.v1.BandwidthGroup; +import com.google.ads.admanager.v1.GetBandwidthGroupRequest; +import com.google.ads.admanager.v1.ListBandwidthGroupsRequest; +import com.google.ads.admanager.v1.ListBandwidthGroupsResponse; +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +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.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link BandwidthGroupServiceStub}. + * + *

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

    + *
  • The default service address (admanager.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 getBandwidthGroup: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * BandwidthGroupServiceStubSettings.Builder bandwidthGroupServiceSettingsBuilder =
+ *     BandwidthGroupServiceStubSettings.newBuilder();
+ * bandwidthGroupServiceSettingsBuilder
+ *     .getBandwidthGroupSettings()
+ *     .setRetrySettings(
+ *         bandwidthGroupServiceSettingsBuilder
+ *             .getBandwidthGroupSettings()
+ *             .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());
+ * BandwidthGroupServiceStubSettings bandwidthGroupServiceSettings =
+ *     bandwidthGroupServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class BandwidthGroupServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/admanager").build(); + + private final UnaryCallSettings + getBandwidthGroupSettings; + private final PagedCallSettings< + ListBandwidthGroupsRequest, ListBandwidthGroupsResponse, ListBandwidthGroupsPagedResponse> + listBandwidthGroupsSettings; + + private static final PagedListDescriptor< + ListBandwidthGroupsRequest, ListBandwidthGroupsResponse, BandwidthGroup> + LIST_BANDWIDTH_GROUPS_PAGE_STR_DESC = + new PagedListDescriptor< + ListBandwidthGroupsRequest, ListBandwidthGroupsResponse, BandwidthGroup>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListBandwidthGroupsRequest injectToken( + ListBandwidthGroupsRequest payload, String token) { + return ListBandwidthGroupsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListBandwidthGroupsRequest injectPageSize( + ListBandwidthGroupsRequest payload, int pageSize) { + return ListBandwidthGroupsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListBandwidthGroupsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListBandwidthGroupsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListBandwidthGroupsResponse payload) { + return payload.getBandwidthGroupsList(); + } + }; + + private static final PagedListResponseFactory< + ListBandwidthGroupsRequest, ListBandwidthGroupsResponse, ListBandwidthGroupsPagedResponse> + LIST_BANDWIDTH_GROUPS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListBandwidthGroupsRequest, + ListBandwidthGroupsResponse, + ListBandwidthGroupsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListBandwidthGroupsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_BANDWIDTH_GROUPS_PAGE_STR_DESC, request, context); + return ListBandwidthGroupsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to getBandwidthGroup. */ + public UnaryCallSettings getBandwidthGroupSettings() { + return getBandwidthGroupSettings; + } + + /** Returns the object with the settings used for calls to listBandwidthGroups. */ + public PagedCallSettings< + ListBandwidthGroupsRequest, ListBandwidthGroupsResponse, ListBandwidthGroupsPagedResponse> + listBandwidthGroupsSettings() { + return listBandwidthGroupsSettings; + } + + public BandwidthGroupServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonBandwidthGroupServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "admanager"; + } + + /** 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 "admanager.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "admanager.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 ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultHttpJsonTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(BandwidthGroupServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected BandwidthGroupServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getBandwidthGroupSettings = settingsBuilder.getBandwidthGroupSettings().build(); + listBandwidthGroupsSettings = settingsBuilder.listBandwidthGroupsSettings().build(); + } + + /** Builder for BandwidthGroupServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + getBandwidthGroupSettings; + private final PagedCallSettings.Builder< + ListBandwidthGroupsRequest, + ListBandwidthGroupsResponse, + ListBandwidthGroupsPagedResponse> + listBandwidthGroupsSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getBandwidthGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listBandwidthGroupsSettings = + PagedCallSettings.newBuilder(LIST_BANDWIDTH_GROUPS_PAGE_STR_FACT); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getBandwidthGroupSettings, listBandwidthGroupsSettings); + initDefaults(this); + } + + protected Builder(BandwidthGroupServiceStubSettings settings) { + super(settings); + + getBandwidthGroupSettings = settings.getBandwidthGroupSettings.toBuilder(); + listBandwidthGroupsSettings = settings.listBandwidthGroupsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getBandwidthGroupSettings, listBandwidthGroupsSettings); + } + + 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 initDefaults(Builder builder) { + builder + .getBandwidthGroupSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listBandwidthGroupsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getBandwidthGroup. */ + public UnaryCallSettings.Builder + getBandwidthGroupSettings() { + return getBandwidthGroupSettings; + } + + /** Returns the builder for the settings used for calls to listBandwidthGroups. */ + public PagedCallSettings.Builder< + ListBandwidthGroupsRequest, + ListBandwidthGroupsResponse, + ListBandwidthGroupsPagedResponse> + listBandwidthGroupsSettings() { + return listBandwidthGroupsSettings; + } + + @Override + public BandwidthGroupServiceStubSettings build() throws IOException { + return new BandwidthGroupServiceStubSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CompanyServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CompanyServiceStubSettings.java index 9709cf7b6abb..32efd3a4f113 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CompanyServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CompanyServiceStubSettings.java @@ -106,7 +106,7 @@ public class CompanyServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().build(); + ImmutableList.builder().add("https://www.googleapis.com/auth/admanager").build(); private final UnaryCallSettings getCompanySettings; private final PagedCallSettings< diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomFieldServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomFieldServiceStubSettings.java index 6ffc1da6b45d..3a826fe53e35 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomFieldServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomFieldServiceStubSettings.java @@ -107,7 +107,7 @@ public class CustomFieldServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().build(); + ImmutableList.builder().add("https://www.googleapis.com/auth/admanager").build(); private final UnaryCallSettings getCustomFieldSettings; private final PagedCallSettings< diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomTargetingKeyServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomTargetingKeyServiceStubSettings.java index 8d02fbea96ca..907860e16a0a 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomTargetingKeyServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomTargetingKeyServiceStubSettings.java @@ -108,7 +108,7 @@ public class CustomTargetingKeyServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().build(); + ImmutableList.builder().add("https://www.googleapis.com/auth/admanager").build(); private final UnaryCallSettings getCustomTargetingKeySettings; diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomTargetingValueServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomTargetingValueServiceStubSettings.java index 37efa9131ddc..df80aee98069 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomTargetingValueServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomTargetingValueServiceStubSettings.java @@ -108,7 +108,7 @@ public class CustomTargetingValueServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().build(); + ImmutableList.builder().add("https://www.googleapis.com/auth/admanager").build(); private final UnaryCallSettings getCustomTargetingValueSettings; diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/DeviceCategoryServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/DeviceCategoryServiceStub.java new file mode 100644 index 000000000000..2f4d2f69cf5a --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/DeviceCategoryServiceStub.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.DeviceCategoryServiceClient.ListDeviceCategoriesPagedResponse; + +import com.google.ads.admanager.v1.DeviceCategory; +import com.google.ads.admanager.v1.GetDeviceCategoryRequest; +import com.google.ads.admanager.v1.ListDeviceCategoriesRequest; +import com.google.ads.admanager.v1.ListDeviceCategoriesResponse; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the DeviceCategoryService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class DeviceCategoryServiceStub implements BackgroundResource { + + public UnaryCallable getDeviceCategoryCallable() { + throw new UnsupportedOperationException("Not implemented: getDeviceCategoryCallable()"); + } + + public UnaryCallable + listDeviceCategoriesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listDeviceCategoriesPagedCallable()"); + } + + public UnaryCallable + listDeviceCategoriesCallable() { + throw new UnsupportedOperationException("Not implemented: listDeviceCategoriesCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/DeviceCategoryServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/DeviceCategoryServiceStubSettings.java new file mode 100644 index 000000000000..a67b171229c6 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/DeviceCategoryServiceStubSettings.java @@ -0,0 +1,402 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.DeviceCategoryServiceClient.ListDeviceCategoriesPagedResponse; + +import com.google.ads.admanager.v1.DeviceCategory; +import com.google.ads.admanager.v1.GetDeviceCategoryRequest; +import com.google.ads.admanager.v1.ListDeviceCategoriesRequest; +import com.google.ads.admanager.v1.ListDeviceCategoriesResponse; +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +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.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link DeviceCategoryServiceStub}. + * + *

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

    + *
  • The default service address (admanager.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 getDeviceCategory: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * DeviceCategoryServiceStubSettings.Builder deviceCategoryServiceSettingsBuilder =
+ *     DeviceCategoryServiceStubSettings.newBuilder();
+ * deviceCategoryServiceSettingsBuilder
+ *     .getDeviceCategorySettings()
+ *     .setRetrySettings(
+ *         deviceCategoryServiceSettingsBuilder
+ *             .getDeviceCategorySettings()
+ *             .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());
+ * DeviceCategoryServiceStubSettings deviceCategoryServiceSettings =
+ *     deviceCategoryServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class DeviceCategoryServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/admanager").build(); + + private final UnaryCallSettings + getDeviceCategorySettings; + private final PagedCallSettings< + ListDeviceCategoriesRequest, + ListDeviceCategoriesResponse, + ListDeviceCategoriesPagedResponse> + listDeviceCategoriesSettings; + + private static final PagedListDescriptor< + ListDeviceCategoriesRequest, ListDeviceCategoriesResponse, DeviceCategory> + LIST_DEVICE_CATEGORIES_PAGE_STR_DESC = + new PagedListDescriptor< + ListDeviceCategoriesRequest, ListDeviceCategoriesResponse, DeviceCategory>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListDeviceCategoriesRequest injectToken( + ListDeviceCategoriesRequest payload, String token) { + return ListDeviceCategoriesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListDeviceCategoriesRequest injectPageSize( + ListDeviceCategoriesRequest payload, int pageSize) { + return ListDeviceCategoriesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListDeviceCategoriesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListDeviceCategoriesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListDeviceCategoriesResponse payload) { + return payload.getDeviceCategoriesList(); + } + }; + + private static final PagedListResponseFactory< + ListDeviceCategoriesRequest, + ListDeviceCategoriesResponse, + ListDeviceCategoriesPagedResponse> + LIST_DEVICE_CATEGORIES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListDeviceCategoriesRequest, + ListDeviceCategoriesResponse, + ListDeviceCategoriesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListDeviceCategoriesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_DEVICE_CATEGORIES_PAGE_STR_DESC, request, context); + return ListDeviceCategoriesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to getDeviceCategory. */ + public UnaryCallSettings getDeviceCategorySettings() { + return getDeviceCategorySettings; + } + + /** Returns the object with the settings used for calls to listDeviceCategories. */ + public PagedCallSettings< + ListDeviceCategoriesRequest, + ListDeviceCategoriesResponse, + ListDeviceCategoriesPagedResponse> + listDeviceCategoriesSettings() { + return listDeviceCategoriesSettings; + } + + public DeviceCategoryServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonDeviceCategoryServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "admanager"; + } + + /** 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 "admanager.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "admanager.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 ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultHttpJsonTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(DeviceCategoryServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected DeviceCategoryServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getDeviceCategorySettings = settingsBuilder.getDeviceCategorySettings().build(); + listDeviceCategoriesSettings = settingsBuilder.listDeviceCategoriesSettings().build(); + } + + /** Builder for DeviceCategoryServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + getDeviceCategorySettings; + private final PagedCallSettings.Builder< + ListDeviceCategoriesRequest, + ListDeviceCategoriesResponse, + ListDeviceCategoriesPagedResponse> + listDeviceCategoriesSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getDeviceCategorySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listDeviceCategoriesSettings = + PagedCallSettings.newBuilder(LIST_DEVICE_CATEGORIES_PAGE_STR_FACT); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getDeviceCategorySettings, listDeviceCategoriesSettings); + initDefaults(this); + } + + protected Builder(DeviceCategoryServiceStubSettings settings) { + super(settings); + + getDeviceCategorySettings = settings.getDeviceCategorySettings.toBuilder(); + listDeviceCategoriesSettings = settings.listDeviceCategoriesSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getDeviceCategorySettings, listDeviceCategoriesSettings); + } + + 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 initDefaults(Builder builder) { + builder + .getDeviceCategorySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listDeviceCategoriesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getDeviceCategory. */ + public UnaryCallSettings.Builder + getDeviceCategorySettings() { + return getDeviceCategorySettings; + } + + /** Returns the builder for the settings used for calls to listDeviceCategories. */ + public PagedCallSettings.Builder< + ListDeviceCategoriesRequest, + ListDeviceCategoriesResponse, + ListDeviceCategoriesPagedResponse> + listDeviceCategoriesSettings() { + return listDeviceCategoriesSettings; + } + + @Override + public DeviceCategoryServiceStubSettings build() throws IOException { + return new DeviceCategoryServiceStubSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/EntitySignalsMappingServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/EntitySignalsMappingServiceStubSettings.java index 11453a95e0b7..efdc83f21122 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/EntitySignalsMappingServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/EntitySignalsMappingServiceStubSettings.java @@ -114,7 +114,7 @@ public class EntitySignalsMappingServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().build(); + ImmutableList.builder().add("https://www.googleapis.com/auth/admanager").build(); private final UnaryCallSettings getEntitySignalsMappingSettings; diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/GeoTargetServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/GeoTargetServiceStub.java new file mode 100644 index 000000000000..0af9be4b3fff --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/GeoTargetServiceStub.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.GeoTargetServiceClient.ListGeoTargetsPagedResponse; + +import com.google.ads.admanager.v1.GeoTarget; +import com.google.ads.admanager.v1.GetGeoTargetRequest; +import com.google.ads.admanager.v1.ListGeoTargetsRequest; +import com.google.ads.admanager.v1.ListGeoTargetsResponse; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the GeoTargetService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class GeoTargetServiceStub implements BackgroundResource { + + public UnaryCallable getGeoTargetCallable() { + throw new UnsupportedOperationException("Not implemented: getGeoTargetCallable()"); + } + + public UnaryCallable + listGeoTargetsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listGeoTargetsPagedCallable()"); + } + + public UnaryCallable listGeoTargetsCallable() { + throw new UnsupportedOperationException("Not implemented: listGeoTargetsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/GeoTargetServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/GeoTargetServiceStubSettings.java new file mode 100644 index 000000000000..cf8f85703d85 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/GeoTargetServiceStubSettings.java @@ -0,0 +1,378 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.GeoTargetServiceClient.ListGeoTargetsPagedResponse; + +import com.google.ads.admanager.v1.GeoTarget; +import com.google.ads.admanager.v1.GetGeoTargetRequest; +import com.google.ads.admanager.v1.ListGeoTargetsRequest; +import com.google.ads.admanager.v1.ListGeoTargetsResponse; +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +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.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link GeoTargetServiceStub}. + * + *

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

    + *
  • The default service address (admanager.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 getGeoTarget: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * GeoTargetServiceStubSettings.Builder geoTargetServiceSettingsBuilder =
+ *     GeoTargetServiceStubSettings.newBuilder();
+ * geoTargetServiceSettingsBuilder
+ *     .getGeoTargetSettings()
+ *     .setRetrySettings(
+ *         geoTargetServiceSettingsBuilder
+ *             .getGeoTargetSettings()
+ *             .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());
+ * GeoTargetServiceStubSettings geoTargetServiceSettings = geoTargetServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class GeoTargetServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/admanager").build(); + + private final UnaryCallSettings getGeoTargetSettings; + private final PagedCallSettings< + ListGeoTargetsRequest, ListGeoTargetsResponse, ListGeoTargetsPagedResponse> + listGeoTargetsSettings; + + private static final PagedListDescriptor + LIST_GEO_TARGETS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListGeoTargetsRequest injectToken(ListGeoTargetsRequest payload, String token) { + return ListGeoTargetsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListGeoTargetsRequest injectPageSize( + ListGeoTargetsRequest payload, int pageSize) { + return ListGeoTargetsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListGeoTargetsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListGeoTargetsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListGeoTargetsResponse payload) { + return payload.getGeoTargetsList(); + } + }; + + private static final PagedListResponseFactory< + ListGeoTargetsRequest, ListGeoTargetsResponse, ListGeoTargetsPagedResponse> + LIST_GEO_TARGETS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListGeoTargetsRequest, ListGeoTargetsResponse, ListGeoTargetsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListGeoTargetsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_GEO_TARGETS_PAGE_STR_DESC, request, context); + return ListGeoTargetsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to getGeoTarget. */ + public UnaryCallSettings getGeoTargetSettings() { + return getGeoTargetSettings; + } + + /** Returns the object with the settings used for calls to listGeoTargets. */ + public PagedCallSettings< + ListGeoTargetsRequest, ListGeoTargetsResponse, ListGeoTargetsPagedResponse> + listGeoTargetsSettings() { + return listGeoTargetsSettings; + } + + public GeoTargetServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonGeoTargetServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "admanager"; + } + + /** 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 "admanager.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "admanager.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 ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultHttpJsonTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(GeoTargetServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected GeoTargetServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getGeoTargetSettings = settingsBuilder.getGeoTargetSettings().build(); + listGeoTargetsSettings = settingsBuilder.listGeoTargetsSettings().build(); + } + + /** Builder for GeoTargetServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder getGeoTargetSettings; + private final PagedCallSettings.Builder< + ListGeoTargetsRequest, ListGeoTargetsResponse, ListGeoTargetsPagedResponse> + listGeoTargetsSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getGeoTargetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listGeoTargetsSettings = PagedCallSettings.newBuilder(LIST_GEO_TARGETS_PAGE_STR_FACT); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getGeoTargetSettings, listGeoTargetsSettings); + initDefaults(this); + } + + protected Builder(GeoTargetServiceStubSettings settings) { + super(settings); + + getGeoTargetSettings = settings.getGeoTargetSettings.toBuilder(); + listGeoTargetsSettings = settings.listGeoTargetsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getGeoTargetSettings, listGeoTargetsSettings); + } + + 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 initDefaults(Builder builder) { + builder + .getGeoTargetSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listGeoTargetsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getGeoTarget. */ + public UnaryCallSettings.Builder getGeoTargetSettings() { + return getGeoTargetSettings; + } + + /** Returns the builder for the settings used for calls to listGeoTargets. */ + public PagedCallSettings.Builder< + ListGeoTargetsRequest, ListGeoTargetsResponse, ListGeoTargetsPagedResponse> + listGeoTargetsSettings() { + return listGeoTargetsSettings; + } + + @Override + public GeoTargetServiceStubSettings build() throws IOException { + return new GeoTargetServiceStubSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonAdBreakServiceCallableFactory.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonAdBreakServiceCallableFactory.java new file mode 100644 index 000000000000..70014fb9516e --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonAdBreakServiceCallableFactory.java @@ -0,0 +1,101 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.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; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the AdBreakService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonAdBreakServiceCallableFactory + 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-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonAdBreakServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonAdBreakServiceStub.java new file mode 100644 index 000000000000..ae3ed68f9368 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonAdBreakServiceStub.java @@ -0,0 +1,456 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.AdBreakServiceClient.ListAdBreaksPagedResponse; + +import com.google.ads.admanager.v1.AdBreak; +import com.google.ads.admanager.v1.CreateAdBreakRequest; +import com.google.ads.admanager.v1.DeleteAdBreakRequest; +import com.google.ads.admanager.v1.GetAdBreakRequest; +import com.google.ads.admanager.v1.ListAdBreaksRequest; +import com.google.ads.admanager.v1.ListAdBreaksResponse; +import com.google.ads.admanager.v1.UpdateAdBreakRequest; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the AdBreakService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonAdBreakServiceStub extends AdBreakServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor getAdBreakMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.AdBreakService/GetAdBreak") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=networks/*/liveStreamEventsByAssetKey/*/adBreaks/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v1/{name=networks/*/liveStreamEventsByCustomAssetKey/*/adBreaks/*}", + "/v1/{name=networks/*/liveStreamEvents/*/adBreaks/*}") + .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(AdBreak.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listAdBreaksMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.AdBreakService/ListAdBreaks") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*/liveStreamEventsByAssetKey/*}/adBreaks", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1/{parent=networks/*/liveStreamEventsByCustomAssetKey/*}/adBreaks", + "/v1/{parent=networks/*/liveStreamEvents/*}/adBreaks") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "skip", request.getSkip()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListAdBreaksResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createAdBreakMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.AdBreakService/CreateAdBreak") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*/liveStreamEventsByAssetKey/*}/adBreaks", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1/{parent=networks/*/liveStreamEventsByCustomAssetKey/*}/adBreaks", + "/v1/{parent=networks/*/liveStreamEvents/*}/adBreaks") + .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("adBreak", request.getAdBreak(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AdBreak.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateAdBreakMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.AdBreakService/UpdateAdBreak") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{adBreak.name=networks/*/liveStreamEventsByAssetKey/*/adBreaks/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "adBreak.name", request.getAdBreak().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("adBreak", request.getAdBreak(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AdBreak.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteAdBreakMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.AdBreakService/DeleteAdBreak") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=networks/*/liveStreamEventsByAssetKey/*/adBreaks/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable getAdBreakCallable; + private final UnaryCallable listAdBreaksCallable; + private final UnaryCallable + listAdBreaksPagedCallable; + private final UnaryCallable createAdBreakCallable; + private final UnaryCallable updateAdBreakCallable; + private final UnaryCallable deleteAdBreakCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonAdBreakServiceStub create(AdBreakServiceStubSettings settings) + throws IOException { + return new HttpJsonAdBreakServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonAdBreakServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonAdBreakServiceStub( + AdBreakServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final HttpJsonAdBreakServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonAdBreakServiceStub( + AdBreakServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonAdBreakServiceStub, 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 HttpJsonAdBreakServiceStub( + AdBreakServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonAdBreakServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonAdBreakServiceStub, 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 HttpJsonAdBreakServiceStub( + AdBreakServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings getAdBreakTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getAdBreakMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings listAdBreaksTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listAdBreaksMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createAdBreakTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createAdBreakMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateAdBreakTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateAdBreakMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("ad_break.name", String.valueOf(request.getAdBreak().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteAdBreakTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteAdBreakMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.getAdBreakCallable = + callableFactory.createUnaryCallable( + getAdBreakTransportSettings, settings.getAdBreakSettings(), clientContext); + this.listAdBreaksCallable = + callableFactory.createUnaryCallable( + listAdBreaksTransportSettings, settings.listAdBreaksSettings(), clientContext); + this.listAdBreaksPagedCallable = + callableFactory.createPagedCallable( + listAdBreaksTransportSettings, settings.listAdBreaksSettings(), clientContext); + this.createAdBreakCallable = + callableFactory.createUnaryCallable( + createAdBreakTransportSettings, settings.createAdBreakSettings(), clientContext); + this.updateAdBreakCallable = + callableFactory.createUnaryCallable( + updateAdBreakTransportSettings, settings.updateAdBreakSettings(), clientContext); + this.deleteAdBreakCallable = + callableFactory.createUnaryCallable( + deleteAdBreakTransportSettings, settings.deleteAdBreakSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getAdBreakMethodDescriptor); + methodDescriptors.add(listAdBreaksMethodDescriptor); + methodDescriptors.add(createAdBreakMethodDescriptor); + methodDescriptors.add(updateAdBreakMethodDescriptor); + methodDescriptors.add(deleteAdBreakMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable getAdBreakCallable() { + return getAdBreakCallable; + } + + @Override + public UnaryCallable listAdBreaksCallable() { + return listAdBreaksCallable; + } + + @Override + public UnaryCallable listAdBreaksPagedCallable() { + return listAdBreaksPagedCallable; + } + + @Override + public UnaryCallable createAdBreakCallable() { + return createAdBreakCallable; + } + + @Override + public UnaryCallable updateAdBreakCallable() { + return updateAdBreakCallable; + } + + @Override + public UnaryCallable deleteAdBreakCallable() { + return deleteAdBreakCallable; + } + + @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-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonBandwidthGroupServiceCallableFactory.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonBandwidthGroupServiceCallableFactory.java new file mode 100644 index 000000000000..fa44c0632a34 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonBandwidthGroupServiceCallableFactory.java @@ -0,0 +1,101 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.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; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the BandwidthGroupService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonBandwidthGroupServiceCallableFactory + 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-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonBandwidthGroupServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonBandwidthGroupServiceStub.java new file mode 100644 index 000000000000..c4c125ff269b --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonBandwidthGroupServiceStub.java @@ -0,0 +1,284 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.BandwidthGroupServiceClient.ListBandwidthGroupsPagedResponse; + +import com.google.ads.admanager.v1.BandwidthGroup; +import com.google.ads.admanager.v1.GetBandwidthGroupRequest; +import com.google.ads.admanager.v1.ListBandwidthGroupsRequest; +import com.google.ads.admanager.v1.ListBandwidthGroupsResponse; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the BandwidthGroupService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonBandwidthGroupServiceStub extends BandwidthGroupServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + getBandwidthGroupMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.BandwidthGroupService/GetBandwidthGroup") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=networks/*/bandwidthGroups/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(BandwidthGroup.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listBandwidthGroupsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.ads.admanager.v1.BandwidthGroupService/ListBandwidthGroups") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/bandwidthGroups", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "skip", request.getSkip()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListBandwidthGroupsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable getBandwidthGroupCallable; + private final UnaryCallable + listBandwidthGroupsCallable; + private final UnaryCallable + listBandwidthGroupsPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonBandwidthGroupServiceStub create( + BandwidthGroupServiceStubSettings settings) throws IOException { + return new HttpJsonBandwidthGroupServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonBandwidthGroupServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonBandwidthGroupServiceStub( + BandwidthGroupServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final HttpJsonBandwidthGroupServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonBandwidthGroupServiceStub( + BandwidthGroupServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonBandwidthGroupServiceStub, 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 HttpJsonBandwidthGroupServiceStub( + BandwidthGroupServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonBandwidthGroupServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonBandwidthGroupServiceStub, 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 HttpJsonBandwidthGroupServiceStub( + BandwidthGroupServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + getBandwidthGroupTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getBandwidthGroupMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listBandwidthGroupsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listBandwidthGroupsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + + this.getBandwidthGroupCallable = + callableFactory.createUnaryCallable( + getBandwidthGroupTransportSettings, + settings.getBandwidthGroupSettings(), + clientContext); + this.listBandwidthGroupsCallable = + callableFactory.createUnaryCallable( + listBandwidthGroupsTransportSettings, + settings.listBandwidthGroupsSettings(), + clientContext); + this.listBandwidthGroupsPagedCallable = + callableFactory.createPagedCallable( + listBandwidthGroupsTransportSettings, + settings.listBandwidthGroupsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getBandwidthGroupMethodDescriptor); + methodDescriptors.add(listBandwidthGroupsMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable getBandwidthGroupCallable() { + return getBandwidthGroupCallable; + } + + @Override + public UnaryCallable + listBandwidthGroupsCallable() { + return listBandwidthGroupsCallable; + } + + @Override + public UnaryCallable + listBandwidthGroupsPagedCallable() { + return listBandwidthGroupsPagedCallable; + } + + @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-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonCustomTargetingValueServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonCustomTargetingValueServiceStub.java index abaeec4dcc9d..4623080bbed9 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonCustomTargetingValueServiceStub.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonCustomTargetingValueServiceStub.java @@ -63,7 +63,7 @@ public class HttpJsonCustomTargetingValueServiceStub extends CustomTargetingValu .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1/{name=networks/*/customTargetingKeys/*/customTargetingValues/*}", + "/v1/{name=networks/*/customTargetingValues/*}", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = @@ -71,6 +71,8 @@ public class HttpJsonCustomTargetingValueServiceStub extends CustomTargetingValu serializer.putPathParam(fields, "name", request.getName()); return fields; }) + .setAdditionalPaths( + "/v1/{name=networks/*/customTargetingKeys/*/customTargetingValues/*}") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -100,7 +102,7 @@ public class HttpJsonCustomTargetingValueServiceStub extends CustomTargetingValu .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1/{parent=networks/*/customTargetingKeys/*}/customTargetingValues", + "/v1/{parent=networks/*}/customTargetingValues", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = @@ -108,6 +110,8 @@ public class HttpJsonCustomTargetingValueServiceStub extends CustomTargetingValu serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) + .setAdditionalPaths( + "/v1/{parent=networks/*/customTargetingKeys/*}/customTargetingValues") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonDeviceCategoryServiceCallableFactory.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonDeviceCategoryServiceCallableFactory.java new file mode 100644 index 000000000000..68e26c3704a9 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonDeviceCategoryServiceCallableFactory.java @@ -0,0 +1,101 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.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; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the DeviceCategoryService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonDeviceCategoryServiceCallableFactory + 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-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonDeviceCategoryServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonDeviceCategoryServiceStub.java new file mode 100644 index 000000000000..cb51776cc691 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonDeviceCategoryServiceStub.java @@ -0,0 +1,286 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.DeviceCategoryServiceClient.ListDeviceCategoriesPagedResponse; + +import com.google.ads.admanager.v1.DeviceCategory; +import com.google.ads.admanager.v1.GetDeviceCategoryRequest; +import com.google.ads.admanager.v1.ListDeviceCategoriesRequest; +import com.google.ads.admanager.v1.ListDeviceCategoriesResponse; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the DeviceCategoryService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonDeviceCategoryServiceStub extends DeviceCategoryServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + getDeviceCategoryMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.DeviceCategoryService/GetDeviceCategory") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=networks/*/deviceCategories/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(DeviceCategory.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListDeviceCategoriesRequest, ListDeviceCategoriesResponse> + listDeviceCategoriesMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.ads.admanager.v1.DeviceCategoryService/ListDeviceCategories") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/deviceCategories", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "skip", request.getSkip()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListDeviceCategoriesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable getDeviceCategoryCallable; + private final UnaryCallable + listDeviceCategoriesCallable; + private final UnaryCallable + listDeviceCategoriesPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonDeviceCategoryServiceStub create( + DeviceCategoryServiceStubSettings settings) throws IOException { + return new HttpJsonDeviceCategoryServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonDeviceCategoryServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonDeviceCategoryServiceStub( + DeviceCategoryServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final HttpJsonDeviceCategoryServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonDeviceCategoryServiceStub( + DeviceCategoryServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonDeviceCategoryServiceStub, 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 HttpJsonDeviceCategoryServiceStub( + DeviceCategoryServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonDeviceCategoryServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonDeviceCategoryServiceStub, 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 HttpJsonDeviceCategoryServiceStub( + DeviceCategoryServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + getDeviceCategoryTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getDeviceCategoryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listDeviceCategoriesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listDeviceCategoriesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + + this.getDeviceCategoryCallable = + callableFactory.createUnaryCallable( + getDeviceCategoryTransportSettings, + settings.getDeviceCategorySettings(), + clientContext); + this.listDeviceCategoriesCallable = + callableFactory.createUnaryCallable( + listDeviceCategoriesTransportSettings, + settings.listDeviceCategoriesSettings(), + clientContext); + this.listDeviceCategoriesPagedCallable = + callableFactory.createPagedCallable( + listDeviceCategoriesTransportSettings, + settings.listDeviceCategoriesSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getDeviceCategoryMethodDescriptor); + methodDescriptors.add(listDeviceCategoriesMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable getDeviceCategoryCallable() { + return getDeviceCategoryCallable; + } + + @Override + public UnaryCallable + listDeviceCategoriesCallable() { + return listDeviceCategoriesCallable; + } + + @Override + public UnaryCallable + listDeviceCategoriesPagedCallable() { + return listDeviceCategoriesPagedCallable; + } + + @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-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonGeoTargetServiceCallableFactory.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonGeoTargetServiceCallableFactory.java new file mode 100644 index 000000000000..8383c291e157 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonGeoTargetServiceCallableFactory.java @@ -0,0 +1,101 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.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; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the GeoTargetService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonGeoTargetServiceCallableFactory + 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-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonGeoTargetServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonGeoTargetServiceStub.java new file mode 100644 index 000000000000..b7db7cb498d7 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonGeoTargetServiceStub.java @@ -0,0 +1,273 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.GeoTargetServiceClient.ListGeoTargetsPagedResponse; + +import com.google.ads.admanager.v1.GeoTarget; +import com.google.ads.admanager.v1.GetGeoTargetRequest; +import com.google.ads.admanager.v1.ListGeoTargetsRequest; +import com.google.ads.admanager.v1.ListGeoTargetsResponse; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the GeoTargetService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonGeoTargetServiceStub extends GeoTargetServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + getGeoTargetMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.GeoTargetService/GetGeoTarget") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=networks/*/geoTargets/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(GeoTarget.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listGeoTargetsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.GeoTargetService/ListGeoTargets") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/geoTargets", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "skip", request.getSkip()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListGeoTargetsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable getGeoTargetCallable; + private final UnaryCallable listGeoTargetsCallable; + private final UnaryCallable + listGeoTargetsPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonGeoTargetServiceStub create(GeoTargetServiceStubSettings settings) + throws IOException { + return new HttpJsonGeoTargetServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonGeoTargetServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonGeoTargetServiceStub( + GeoTargetServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final HttpJsonGeoTargetServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonGeoTargetServiceStub( + GeoTargetServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonGeoTargetServiceStub, 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 HttpJsonGeoTargetServiceStub( + GeoTargetServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonGeoTargetServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonGeoTargetServiceStub, 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 HttpJsonGeoTargetServiceStub( + GeoTargetServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings getGeoTargetTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getGeoTargetMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listGeoTargetsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listGeoTargetsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + + this.getGeoTargetCallable = + callableFactory.createUnaryCallable( + getGeoTargetTransportSettings, settings.getGeoTargetSettings(), clientContext); + this.listGeoTargetsCallable = + callableFactory.createUnaryCallable( + listGeoTargetsTransportSettings, settings.listGeoTargetsSettings(), clientContext); + this.listGeoTargetsPagedCallable = + callableFactory.createPagedCallable( + listGeoTargetsTransportSettings, settings.listGeoTargetsSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getGeoTargetMethodDescriptor); + methodDescriptors.add(listGeoTargetsMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable getGeoTargetCallable() { + return getGeoTargetCallable; + } + + @Override + public UnaryCallable listGeoTargetsCallable() { + return listGeoTargetsCallable; + } + + @Override + public UnaryCallable + listGeoTargetsPagedCallable() { + return listGeoTargetsPagedCallable; + } + + @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-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonOperatingSystemServiceCallableFactory.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonOperatingSystemServiceCallableFactory.java new file mode 100644 index 000000000000..0ab178ecfbe4 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonOperatingSystemServiceCallableFactory.java @@ -0,0 +1,101 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.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; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the OperatingSystemService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonOperatingSystemServiceCallableFactory + 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-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonOperatingSystemServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonOperatingSystemServiceStub.java new file mode 100644 index 000000000000..fc73576b8873 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonOperatingSystemServiceStub.java @@ -0,0 +1,288 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.OperatingSystemServiceClient.ListOperatingSystemsPagedResponse; + +import com.google.ads.admanager.v1.GetOperatingSystemRequest; +import com.google.ads.admanager.v1.ListOperatingSystemsRequest; +import com.google.ads.admanager.v1.ListOperatingSystemsResponse; +import com.google.ads.admanager.v1.OperatingSystem; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the OperatingSystemService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonOperatingSystemServiceStub extends OperatingSystemServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + getOperatingSystemMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.ads.admanager.v1.OperatingSystemService/GetOperatingSystem") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=networks/*/operatingSystems/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(OperatingSystem.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListOperatingSystemsRequest, ListOperatingSystemsResponse> + listOperatingSystemsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.ads.admanager.v1.OperatingSystemService/ListOperatingSystems") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/operatingSystems", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "skip", request.getSkip()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListOperatingSystemsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable + getOperatingSystemCallable; + private final UnaryCallable + listOperatingSystemsCallable; + private final UnaryCallable + listOperatingSystemsPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonOperatingSystemServiceStub create( + OperatingSystemServiceStubSettings settings) throws IOException { + return new HttpJsonOperatingSystemServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonOperatingSystemServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonOperatingSystemServiceStub( + OperatingSystemServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final HttpJsonOperatingSystemServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonOperatingSystemServiceStub( + OperatingSystemServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonOperatingSystemServiceStub, 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 HttpJsonOperatingSystemServiceStub( + OperatingSystemServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonOperatingSystemServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonOperatingSystemServiceStub, 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 HttpJsonOperatingSystemServiceStub( + OperatingSystemServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + getOperatingSystemTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getOperatingSystemMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listOperatingSystemsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listOperatingSystemsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + + this.getOperatingSystemCallable = + callableFactory.createUnaryCallable( + getOperatingSystemTransportSettings, + settings.getOperatingSystemSettings(), + clientContext); + this.listOperatingSystemsCallable = + callableFactory.createUnaryCallable( + listOperatingSystemsTransportSettings, + settings.listOperatingSystemsSettings(), + clientContext); + this.listOperatingSystemsPagedCallable = + callableFactory.createPagedCallable( + listOperatingSystemsTransportSettings, + settings.listOperatingSystemsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getOperatingSystemMethodDescriptor); + methodDescriptors.add(listOperatingSystemsMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable getOperatingSystemCallable() { + return getOperatingSystemCallable; + } + + @Override + public UnaryCallable + listOperatingSystemsCallable() { + return listOperatingSystemsCallable; + } + + @Override + public UnaryCallable + listOperatingSystemsPagedCallable() { + return listOperatingSystemsPagedCallable; + } + + @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-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonOperatingSystemVersionServiceCallableFactory.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonOperatingSystemVersionServiceCallableFactory.java new file mode 100644 index 000000000000..f28df2182b6e --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonOperatingSystemVersionServiceCallableFactory.java @@ -0,0 +1,101 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.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; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the OperatingSystemVersionService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonOperatingSystemVersionServiceCallableFactory + 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-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonOperatingSystemVersionServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonOperatingSystemVersionServiceStub.java new file mode 100644 index 000000000000..77dadbd65b39 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonOperatingSystemVersionServiceStub.java @@ -0,0 +1,296 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.OperatingSystemVersionServiceClient.ListOperatingSystemVersionsPagedResponse; + +import com.google.ads.admanager.v1.GetOperatingSystemVersionRequest; +import com.google.ads.admanager.v1.ListOperatingSystemVersionsRequest; +import com.google.ads.admanager.v1.ListOperatingSystemVersionsResponse; +import com.google.ads.admanager.v1.OperatingSystemVersion; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the OperatingSystemVersionService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonOperatingSystemVersionServiceStub extends OperatingSystemVersionServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + getOperatingSystemVersionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.ads.admanager.v1.OperatingSystemVersionService/GetOperatingSystemVersion") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=networks/*/operatingSystemVersions/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(OperatingSystemVersion.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListOperatingSystemVersionsRequest, ListOperatingSystemVersionsResponse> + listOperatingSystemVersionsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.ads.admanager.v1.OperatingSystemVersionService/ListOperatingSystemVersions") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/operatingSystemVersions", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "skip", request.getSkip()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListOperatingSystemVersionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable + getOperatingSystemVersionCallable; + private final UnaryCallable< + ListOperatingSystemVersionsRequest, ListOperatingSystemVersionsResponse> + listOperatingSystemVersionsCallable; + private final UnaryCallable< + ListOperatingSystemVersionsRequest, ListOperatingSystemVersionsPagedResponse> + listOperatingSystemVersionsPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonOperatingSystemVersionServiceStub create( + OperatingSystemVersionServiceStubSettings settings) throws IOException { + return new HttpJsonOperatingSystemVersionServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonOperatingSystemVersionServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonOperatingSystemVersionServiceStub( + OperatingSystemVersionServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final HttpJsonOperatingSystemVersionServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonOperatingSystemVersionServiceStub( + OperatingSystemVersionServiceStubSettings.newBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonOperatingSystemVersionServiceStub, 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 HttpJsonOperatingSystemVersionServiceStub( + OperatingSystemVersionServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonOperatingSystemVersionServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonOperatingSystemVersionServiceStub, 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 HttpJsonOperatingSystemVersionServiceStub( + OperatingSystemVersionServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + getOperatingSystemVersionTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(getOperatingSystemVersionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listOperatingSystemVersionsTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(listOperatingSystemVersionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + + this.getOperatingSystemVersionCallable = + callableFactory.createUnaryCallable( + getOperatingSystemVersionTransportSettings, + settings.getOperatingSystemVersionSettings(), + clientContext); + this.listOperatingSystemVersionsCallable = + callableFactory.createUnaryCallable( + listOperatingSystemVersionsTransportSettings, + settings.listOperatingSystemVersionsSettings(), + clientContext); + this.listOperatingSystemVersionsPagedCallable = + callableFactory.createPagedCallable( + listOperatingSystemVersionsTransportSettings, + settings.listOperatingSystemVersionsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getOperatingSystemVersionMethodDescriptor); + methodDescriptors.add(listOperatingSystemVersionsMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable + getOperatingSystemVersionCallable() { + return getOperatingSystemVersionCallable; + } + + @Override + public UnaryCallable + listOperatingSystemVersionsCallable() { + return listOperatingSystemVersionsCallable; + } + + @Override + public UnaryCallable + listOperatingSystemVersionsPagedCallable() { + return listOperatingSystemVersionsPagedCallable; + } + + @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-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonPrivateAuctionDealServiceCallableFactory.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonPrivateAuctionDealServiceCallableFactory.java new file mode 100644 index 000000000000..c451de970457 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonPrivateAuctionDealServiceCallableFactory.java @@ -0,0 +1,101 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.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; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the PrivateAuctionDealService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonPrivateAuctionDealServiceCallableFactory + 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-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonPrivateAuctionDealServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonPrivateAuctionDealServiceStub.java new file mode 100644 index 000000000000..8e57227bc137 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonPrivateAuctionDealServiceStub.java @@ -0,0 +1,428 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.PrivateAuctionDealServiceClient.ListPrivateAuctionDealsPagedResponse; + +import com.google.ads.admanager.v1.CreatePrivateAuctionDealRequest; +import com.google.ads.admanager.v1.GetPrivateAuctionDealRequest; +import com.google.ads.admanager.v1.ListPrivateAuctionDealsRequest; +import com.google.ads.admanager.v1.ListPrivateAuctionDealsResponse; +import com.google.ads.admanager.v1.PrivateAuctionDeal; +import com.google.ads.admanager.v1.UpdatePrivateAuctionDealRequest; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the PrivateAuctionDealService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonPrivateAuctionDealServiceStub extends PrivateAuctionDealServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + getPrivateAuctionDealMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.ads.admanager.v1.PrivateAuctionDealService/GetPrivateAuctionDeal") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=networks/*/privateAuctionDeals/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(PrivateAuctionDeal.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListPrivateAuctionDealsRequest, ListPrivateAuctionDealsResponse> + listPrivateAuctionDealsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.ads.admanager.v1.PrivateAuctionDealService/ListPrivateAuctionDeals") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/privateAuctionDeals", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "skip", request.getSkip()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListPrivateAuctionDealsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createPrivateAuctionDealMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.ads.admanager.v1.PrivateAuctionDealService/CreatePrivateAuctionDeal") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/privateAuctionDeals", + 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( + "privateAuctionDeal", request.getPrivateAuctionDeal(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(PrivateAuctionDeal.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updatePrivateAuctionDealMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.ads.admanager.v1.PrivateAuctionDealService/UpdatePrivateAuctionDeal") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{privateAuctionDeal.name=networks/*/privateAuctionDeals/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "privateAuctionDeal.name", + request.getPrivateAuctionDeal().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "privateAuctionDeal", request.getPrivateAuctionDeal(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(PrivateAuctionDeal.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable + getPrivateAuctionDealCallable; + private final UnaryCallable + listPrivateAuctionDealsCallable; + private final UnaryCallable + listPrivateAuctionDealsPagedCallable; + private final UnaryCallable + createPrivateAuctionDealCallable; + private final UnaryCallable + updatePrivateAuctionDealCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonPrivateAuctionDealServiceStub create( + PrivateAuctionDealServiceStubSettings settings) throws IOException { + return new HttpJsonPrivateAuctionDealServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonPrivateAuctionDealServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonPrivateAuctionDealServiceStub( + PrivateAuctionDealServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final HttpJsonPrivateAuctionDealServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonPrivateAuctionDealServiceStub( + PrivateAuctionDealServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonPrivateAuctionDealServiceStub, 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 HttpJsonPrivateAuctionDealServiceStub( + PrivateAuctionDealServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonPrivateAuctionDealServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonPrivateAuctionDealServiceStub, 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 HttpJsonPrivateAuctionDealServiceStub( + PrivateAuctionDealServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + getPrivateAuctionDealTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getPrivateAuctionDealMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listPrivateAuctionDealsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listPrivateAuctionDealsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + createPrivateAuctionDealTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createPrivateAuctionDealMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + updatePrivateAuctionDealTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updatePrivateAuctionDealMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "private_auction_deal.name", + String.valueOf(request.getPrivateAuctionDeal().getName())); + return builder.build(); + }) + .build(); + + this.getPrivateAuctionDealCallable = + callableFactory.createUnaryCallable( + getPrivateAuctionDealTransportSettings, + settings.getPrivateAuctionDealSettings(), + clientContext); + this.listPrivateAuctionDealsCallable = + callableFactory.createUnaryCallable( + listPrivateAuctionDealsTransportSettings, + settings.listPrivateAuctionDealsSettings(), + clientContext); + this.listPrivateAuctionDealsPagedCallable = + callableFactory.createPagedCallable( + listPrivateAuctionDealsTransportSettings, + settings.listPrivateAuctionDealsSettings(), + clientContext); + this.createPrivateAuctionDealCallable = + callableFactory.createUnaryCallable( + createPrivateAuctionDealTransportSettings, + settings.createPrivateAuctionDealSettings(), + clientContext); + this.updatePrivateAuctionDealCallable = + callableFactory.createUnaryCallable( + updatePrivateAuctionDealTransportSettings, + settings.updatePrivateAuctionDealSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getPrivateAuctionDealMethodDescriptor); + methodDescriptors.add(listPrivateAuctionDealsMethodDescriptor); + methodDescriptors.add(createPrivateAuctionDealMethodDescriptor); + methodDescriptors.add(updatePrivateAuctionDealMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable + getPrivateAuctionDealCallable() { + return getPrivateAuctionDealCallable; + } + + @Override + public UnaryCallable + listPrivateAuctionDealsCallable() { + return listPrivateAuctionDealsCallable; + } + + @Override + public UnaryCallable + listPrivateAuctionDealsPagedCallable() { + return listPrivateAuctionDealsPagedCallable; + } + + @Override + public UnaryCallable + createPrivateAuctionDealCallable() { + return createPrivateAuctionDealCallable; + } + + @Override + public UnaryCallable + updatePrivateAuctionDealCallable() { + return updatePrivateAuctionDealCallable; + } + + @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-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonPrivateAuctionServiceCallableFactory.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonPrivateAuctionServiceCallableFactory.java new file mode 100644 index 000000000000..9d8086367475 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonPrivateAuctionServiceCallableFactory.java @@ -0,0 +1,101 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.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; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the PrivateAuctionService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonPrivateAuctionServiceCallableFactory + 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-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonPrivateAuctionServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonPrivateAuctionServiceStub.java new file mode 100644 index 000000000000..5366dccdf549 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonPrivateAuctionServiceStub.java @@ -0,0 +1,418 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.PrivateAuctionServiceClient.ListPrivateAuctionsPagedResponse; + +import com.google.ads.admanager.v1.CreatePrivateAuctionRequest; +import com.google.ads.admanager.v1.GetPrivateAuctionRequest; +import com.google.ads.admanager.v1.ListPrivateAuctionsRequest; +import com.google.ads.admanager.v1.ListPrivateAuctionsResponse; +import com.google.ads.admanager.v1.PrivateAuction; +import com.google.ads.admanager.v1.UpdatePrivateAuctionRequest; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the PrivateAuctionService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonPrivateAuctionServiceStub extends PrivateAuctionServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + getPrivateAuctionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.PrivateAuctionService/GetPrivateAuction") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=networks/*/privateAuctions/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(PrivateAuction.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listPrivateAuctionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.ads.admanager.v1.PrivateAuctionService/ListPrivateAuctions") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/privateAuctions", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "skip", request.getSkip()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListPrivateAuctionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createPrivateAuctionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.ads.admanager.v1.PrivateAuctionService/CreatePrivateAuction") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/privateAuctions", + 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("privateAuction", request.getPrivateAuction(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(PrivateAuction.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updatePrivateAuctionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.ads.admanager.v1.PrivateAuctionService/UpdatePrivateAuction") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{privateAuction.name=networks/*/privateAuctions/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "privateAuction.name", + request.getPrivateAuction().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("privateAuction", request.getPrivateAuction(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(PrivateAuction.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable getPrivateAuctionCallable; + private final UnaryCallable + listPrivateAuctionsCallable; + private final UnaryCallable + listPrivateAuctionsPagedCallable; + private final UnaryCallable + createPrivateAuctionCallable; + private final UnaryCallable + updatePrivateAuctionCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonPrivateAuctionServiceStub create( + PrivateAuctionServiceStubSettings settings) throws IOException { + return new HttpJsonPrivateAuctionServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonPrivateAuctionServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonPrivateAuctionServiceStub( + PrivateAuctionServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final HttpJsonPrivateAuctionServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonPrivateAuctionServiceStub( + PrivateAuctionServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonPrivateAuctionServiceStub, 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 HttpJsonPrivateAuctionServiceStub( + PrivateAuctionServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonPrivateAuctionServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonPrivateAuctionServiceStub, 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 HttpJsonPrivateAuctionServiceStub( + PrivateAuctionServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + getPrivateAuctionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getPrivateAuctionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listPrivateAuctionsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listPrivateAuctionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + createPrivateAuctionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createPrivateAuctionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + updatePrivateAuctionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updatePrivateAuctionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "private_auction.name", + String.valueOf(request.getPrivateAuction().getName())); + return builder.build(); + }) + .build(); + + this.getPrivateAuctionCallable = + callableFactory.createUnaryCallable( + getPrivateAuctionTransportSettings, + settings.getPrivateAuctionSettings(), + clientContext); + this.listPrivateAuctionsCallable = + callableFactory.createUnaryCallable( + listPrivateAuctionsTransportSettings, + settings.listPrivateAuctionsSettings(), + clientContext); + this.listPrivateAuctionsPagedCallable = + callableFactory.createPagedCallable( + listPrivateAuctionsTransportSettings, + settings.listPrivateAuctionsSettings(), + clientContext); + this.createPrivateAuctionCallable = + callableFactory.createUnaryCallable( + createPrivateAuctionTransportSettings, + settings.createPrivateAuctionSettings(), + clientContext); + this.updatePrivateAuctionCallable = + callableFactory.createUnaryCallable( + updatePrivateAuctionTransportSettings, + settings.updatePrivateAuctionSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getPrivateAuctionMethodDescriptor); + methodDescriptors.add(listPrivateAuctionsMethodDescriptor); + methodDescriptors.add(createPrivateAuctionMethodDescriptor); + methodDescriptors.add(updatePrivateAuctionMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable getPrivateAuctionCallable() { + return getPrivateAuctionCallable; + } + + @Override + public UnaryCallable + listPrivateAuctionsCallable() { + return listPrivateAuctionsCallable; + } + + @Override + public UnaryCallable + listPrivateAuctionsPagedCallable() { + return listPrivateAuctionsPagedCallable; + } + + @Override + public UnaryCallable createPrivateAuctionCallable() { + return createPrivateAuctionCallable; + } + + @Override + public UnaryCallable updatePrivateAuctionCallable() { + return updatePrivateAuctionCallable; + } + + @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-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonProgrammaticBuyerServiceCallableFactory.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonProgrammaticBuyerServiceCallableFactory.java new file mode 100644 index 000000000000..6362f6f6fb42 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonProgrammaticBuyerServiceCallableFactory.java @@ -0,0 +1,101 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.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; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the ProgrammaticBuyerService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonProgrammaticBuyerServiceCallableFactory + 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-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonProgrammaticBuyerServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonProgrammaticBuyerServiceStub.java new file mode 100644 index 000000000000..62623f5d62eb --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonProgrammaticBuyerServiceStub.java @@ -0,0 +1,290 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.ProgrammaticBuyerServiceClient.ListProgrammaticBuyersPagedResponse; + +import com.google.ads.admanager.v1.GetProgrammaticBuyerRequest; +import com.google.ads.admanager.v1.ListProgrammaticBuyersRequest; +import com.google.ads.admanager.v1.ListProgrammaticBuyersResponse; +import com.google.ads.admanager.v1.ProgrammaticBuyer; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the ProgrammaticBuyerService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonProgrammaticBuyerServiceStub extends ProgrammaticBuyerServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + getProgrammaticBuyerMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.ads.admanager.v1.ProgrammaticBuyerService/GetProgrammaticBuyer") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=networks/*/programmaticBuyers/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ProgrammaticBuyer.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListProgrammaticBuyersRequest, ListProgrammaticBuyersResponse> + listProgrammaticBuyersMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.ads.admanager.v1.ProgrammaticBuyerService/ListProgrammaticBuyers") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/programmaticBuyers", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "skip", request.getSkip()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListProgrammaticBuyersResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable + getProgrammaticBuyerCallable; + private final UnaryCallable + listProgrammaticBuyersCallable; + private final UnaryCallable + listProgrammaticBuyersPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonProgrammaticBuyerServiceStub create( + ProgrammaticBuyerServiceStubSettings settings) throws IOException { + return new HttpJsonProgrammaticBuyerServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonProgrammaticBuyerServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonProgrammaticBuyerServiceStub( + ProgrammaticBuyerServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final HttpJsonProgrammaticBuyerServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonProgrammaticBuyerServiceStub( + ProgrammaticBuyerServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonProgrammaticBuyerServiceStub, 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 HttpJsonProgrammaticBuyerServiceStub( + ProgrammaticBuyerServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonProgrammaticBuyerServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonProgrammaticBuyerServiceStub, 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 HttpJsonProgrammaticBuyerServiceStub( + ProgrammaticBuyerServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + getProgrammaticBuyerTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getProgrammaticBuyerMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listProgrammaticBuyersTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listProgrammaticBuyersMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + + this.getProgrammaticBuyerCallable = + callableFactory.createUnaryCallable( + getProgrammaticBuyerTransportSettings, + settings.getProgrammaticBuyerSettings(), + clientContext); + this.listProgrammaticBuyersCallable = + callableFactory.createUnaryCallable( + listProgrammaticBuyersTransportSettings, + settings.listProgrammaticBuyersSettings(), + clientContext); + this.listProgrammaticBuyersPagedCallable = + callableFactory.createPagedCallable( + listProgrammaticBuyersTransportSettings, + settings.listProgrammaticBuyersSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getProgrammaticBuyerMethodDescriptor); + methodDescriptors.add(listProgrammaticBuyersMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable + getProgrammaticBuyerCallable() { + return getProgrammaticBuyerCallable; + } + + @Override + public UnaryCallable + listProgrammaticBuyersCallable() { + return listProgrammaticBuyersCallable; + } + + @Override + public UnaryCallable + listProgrammaticBuyersPagedCallable() { + return listProgrammaticBuyersPagedCallable; + } + + @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-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonReportServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonReportServiceStub.java index 13e006dfad25..4f62cb27df56 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonReportServiceStub.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonReportServiceStub.java @@ -362,10 +362,6 @@ protected HttpJsonReportServiceStub( "google.longrunning.Operations.GetOperation", HttpRule.newBuilder() .setGet("/v1/{name=networks/*/operations/reports/runs/*}") - .addAdditionalBindings( - HttpRule.newBuilder() - .setGet("/v1/{name=networks/*/operations/reports/exports/*}") - .build()) .build()) .build()); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/NetworkServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/NetworkServiceStubSettings.java index a056812e223a..149e55c6fee3 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/NetworkServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/NetworkServiceStubSettings.java @@ -97,7 +97,7 @@ public class NetworkServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().build(); + ImmutableList.builder().add("https://www.googleapis.com/auth/admanager").build(); private final UnaryCallSettings getNetworkSettings; private final UnaryCallSettings listNetworksSettings; diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/OperatingSystemServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/OperatingSystemServiceStub.java new file mode 100644 index 000000000000..21ed2440d22e --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/OperatingSystemServiceStub.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.OperatingSystemServiceClient.ListOperatingSystemsPagedResponse; + +import com.google.ads.admanager.v1.GetOperatingSystemRequest; +import com.google.ads.admanager.v1.ListOperatingSystemsRequest; +import com.google.ads.admanager.v1.ListOperatingSystemsResponse; +import com.google.ads.admanager.v1.OperatingSystem; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the OperatingSystemService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class OperatingSystemServiceStub implements BackgroundResource { + + public UnaryCallable getOperatingSystemCallable() { + throw new UnsupportedOperationException("Not implemented: getOperatingSystemCallable()"); + } + + public UnaryCallable + listOperatingSystemsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listOperatingSystemsPagedCallable()"); + } + + public UnaryCallable + listOperatingSystemsCallable() { + throw new UnsupportedOperationException("Not implemented: listOperatingSystemsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/OperatingSystemServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/OperatingSystemServiceStubSettings.java new file mode 100644 index 000000000000..ce88ce23898f --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/OperatingSystemServiceStubSettings.java @@ -0,0 +1,405 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.OperatingSystemServiceClient.ListOperatingSystemsPagedResponse; + +import com.google.ads.admanager.v1.GetOperatingSystemRequest; +import com.google.ads.admanager.v1.ListOperatingSystemsRequest; +import com.google.ads.admanager.v1.ListOperatingSystemsResponse; +import com.google.ads.admanager.v1.OperatingSystem; +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +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.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link OperatingSystemServiceStub}. + * + *

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

    + *
  • The default service address (admanager.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 getOperatingSystem: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * OperatingSystemServiceStubSettings.Builder operatingSystemServiceSettingsBuilder =
+ *     OperatingSystemServiceStubSettings.newBuilder();
+ * operatingSystemServiceSettingsBuilder
+ *     .getOperatingSystemSettings()
+ *     .setRetrySettings(
+ *         operatingSystemServiceSettingsBuilder
+ *             .getOperatingSystemSettings()
+ *             .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());
+ * OperatingSystemServiceStubSettings operatingSystemServiceSettings =
+ *     operatingSystemServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class OperatingSystemServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/admanager").build(); + + private final UnaryCallSettings + getOperatingSystemSettings; + private final PagedCallSettings< + ListOperatingSystemsRequest, + ListOperatingSystemsResponse, + ListOperatingSystemsPagedResponse> + listOperatingSystemsSettings; + + private static final PagedListDescriptor< + ListOperatingSystemsRequest, ListOperatingSystemsResponse, OperatingSystem> + LIST_OPERATING_SYSTEMS_PAGE_STR_DESC = + new PagedListDescriptor< + ListOperatingSystemsRequest, ListOperatingSystemsResponse, OperatingSystem>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListOperatingSystemsRequest injectToken( + ListOperatingSystemsRequest payload, String token) { + return ListOperatingSystemsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListOperatingSystemsRequest injectPageSize( + ListOperatingSystemsRequest payload, int pageSize) { + return ListOperatingSystemsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListOperatingSystemsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListOperatingSystemsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListOperatingSystemsResponse payload) { + return payload.getOperatingSystemsList(); + } + }; + + private static final PagedListResponseFactory< + ListOperatingSystemsRequest, + ListOperatingSystemsResponse, + ListOperatingSystemsPagedResponse> + LIST_OPERATING_SYSTEMS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListOperatingSystemsRequest, + ListOperatingSystemsResponse, + ListOperatingSystemsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListOperatingSystemsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListOperatingSystemsRequest, ListOperatingSystemsResponse, OperatingSystem> + pageContext = + PageContext.create( + callable, LIST_OPERATING_SYSTEMS_PAGE_STR_DESC, request, context); + return ListOperatingSystemsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to getOperatingSystem. */ + public UnaryCallSettings + getOperatingSystemSettings() { + return getOperatingSystemSettings; + } + + /** Returns the object with the settings used for calls to listOperatingSystems. */ + public PagedCallSettings< + ListOperatingSystemsRequest, + ListOperatingSystemsResponse, + ListOperatingSystemsPagedResponse> + listOperatingSystemsSettings() { + return listOperatingSystemsSettings; + } + + public OperatingSystemServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonOperatingSystemServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "admanager"; + } + + /** 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 "admanager.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "admanager.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 ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultHttpJsonTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(OperatingSystemServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected OperatingSystemServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getOperatingSystemSettings = settingsBuilder.getOperatingSystemSettings().build(); + listOperatingSystemsSettings = settingsBuilder.listOperatingSystemsSettings().build(); + } + + /** Builder for OperatingSystemServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + getOperatingSystemSettings; + private final PagedCallSettings.Builder< + ListOperatingSystemsRequest, + ListOperatingSystemsResponse, + ListOperatingSystemsPagedResponse> + listOperatingSystemsSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getOperatingSystemSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listOperatingSystemsSettings = + PagedCallSettings.newBuilder(LIST_OPERATING_SYSTEMS_PAGE_STR_FACT); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getOperatingSystemSettings, listOperatingSystemsSettings); + initDefaults(this); + } + + protected Builder(OperatingSystemServiceStubSettings settings) { + super(settings); + + getOperatingSystemSettings = settings.getOperatingSystemSettings.toBuilder(); + listOperatingSystemsSettings = settings.listOperatingSystemsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getOperatingSystemSettings, listOperatingSystemsSettings); + } + + 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 initDefaults(Builder builder) { + builder + .getOperatingSystemSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listOperatingSystemsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getOperatingSystem. */ + public UnaryCallSettings.Builder + getOperatingSystemSettings() { + return getOperatingSystemSettings; + } + + /** Returns the builder for the settings used for calls to listOperatingSystems. */ + public PagedCallSettings.Builder< + ListOperatingSystemsRequest, + ListOperatingSystemsResponse, + ListOperatingSystemsPagedResponse> + listOperatingSystemsSettings() { + return listOperatingSystemsSettings; + } + + @Override + public OperatingSystemServiceStubSettings build() throws IOException { + return new OperatingSystemServiceStubSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/OperatingSystemVersionServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/OperatingSystemVersionServiceStub.java new file mode 100644 index 000000000000..f3ce19b74431 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/OperatingSystemVersionServiceStub.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.OperatingSystemVersionServiceClient.ListOperatingSystemVersionsPagedResponse; + +import com.google.ads.admanager.v1.GetOperatingSystemVersionRequest; +import com.google.ads.admanager.v1.ListOperatingSystemVersionsRequest; +import com.google.ads.admanager.v1.ListOperatingSystemVersionsResponse; +import com.google.ads.admanager.v1.OperatingSystemVersion; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the OperatingSystemVersionService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class OperatingSystemVersionServiceStub implements BackgroundResource { + + public UnaryCallable + getOperatingSystemVersionCallable() { + throw new UnsupportedOperationException("Not implemented: getOperatingSystemVersionCallable()"); + } + + public UnaryCallable + listOperatingSystemVersionsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listOperatingSystemVersionsPagedCallable()"); + } + + public UnaryCallable + listOperatingSystemVersionsCallable() { + throw new UnsupportedOperationException( + "Not implemented: listOperatingSystemVersionsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/OperatingSystemVersionServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/OperatingSystemVersionServiceStubSettings.java new file mode 100644 index 000000000000..b759814f7c8a --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/OperatingSystemVersionServiceStubSettings.java @@ -0,0 +1,422 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.OperatingSystemVersionServiceClient.ListOperatingSystemVersionsPagedResponse; + +import com.google.ads.admanager.v1.GetOperatingSystemVersionRequest; +import com.google.ads.admanager.v1.ListOperatingSystemVersionsRequest; +import com.google.ads.admanager.v1.ListOperatingSystemVersionsResponse; +import com.google.ads.admanager.v1.OperatingSystemVersion; +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +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.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link OperatingSystemVersionServiceStub}. + * + *

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

    + *
  • The default service address (admanager.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 getOperatingSystemVersion: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * OperatingSystemVersionServiceStubSettings.Builder operatingSystemVersionServiceSettingsBuilder =
+ *     OperatingSystemVersionServiceStubSettings.newBuilder();
+ * operatingSystemVersionServiceSettingsBuilder
+ *     .getOperatingSystemVersionSettings()
+ *     .setRetrySettings(
+ *         operatingSystemVersionServiceSettingsBuilder
+ *             .getOperatingSystemVersionSettings()
+ *             .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());
+ * OperatingSystemVersionServiceStubSettings operatingSystemVersionServiceSettings =
+ *     operatingSystemVersionServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class OperatingSystemVersionServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/admanager").build(); + + private final UnaryCallSettings + getOperatingSystemVersionSettings; + private final PagedCallSettings< + ListOperatingSystemVersionsRequest, + ListOperatingSystemVersionsResponse, + ListOperatingSystemVersionsPagedResponse> + listOperatingSystemVersionsSettings; + + private static final PagedListDescriptor< + ListOperatingSystemVersionsRequest, + ListOperatingSystemVersionsResponse, + OperatingSystemVersion> + LIST_OPERATING_SYSTEM_VERSIONS_PAGE_STR_DESC = + new PagedListDescriptor< + ListOperatingSystemVersionsRequest, + ListOperatingSystemVersionsResponse, + OperatingSystemVersion>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListOperatingSystemVersionsRequest injectToken( + ListOperatingSystemVersionsRequest payload, String token) { + return ListOperatingSystemVersionsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListOperatingSystemVersionsRequest injectPageSize( + ListOperatingSystemVersionsRequest payload, int pageSize) { + return ListOperatingSystemVersionsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListOperatingSystemVersionsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListOperatingSystemVersionsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListOperatingSystemVersionsResponse payload) { + return payload.getOperatingSystemVersionsList(); + } + }; + + private static final PagedListResponseFactory< + ListOperatingSystemVersionsRequest, + ListOperatingSystemVersionsResponse, + ListOperatingSystemVersionsPagedResponse> + LIST_OPERATING_SYSTEM_VERSIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListOperatingSystemVersionsRequest, + ListOperatingSystemVersionsResponse, + ListOperatingSystemVersionsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable< + ListOperatingSystemVersionsRequest, ListOperatingSystemVersionsResponse> + callable, + ListOperatingSystemVersionsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListOperatingSystemVersionsRequest, + ListOperatingSystemVersionsResponse, + OperatingSystemVersion> + pageContext = + PageContext.create( + callable, LIST_OPERATING_SYSTEM_VERSIONS_PAGE_STR_DESC, request, context); + return ListOperatingSystemVersionsPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to getOperatingSystemVersion. */ + public UnaryCallSettings + getOperatingSystemVersionSettings() { + return getOperatingSystemVersionSettings; + } + + /** Returns the object with the settings used for calls to listOperatingSystemVersions. */ + public PagedCallSettings< + ListOperatingSystemVersionsRequest, + ListOperatingSystemVersionsResponse, + ListOperatingSystemVersionsPagedResponse> + listOperatingSystemVersionsSettings() { + return listOperatingSystemVersionsSettings; + } + + public OperatingSystemVersionServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonOperatingSystemVersionServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "admanager"; + } + + /** 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 "admanager.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "admanager.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 ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultHttpJsonTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", + GaxProperties.getLibraryVersion(OperatingSystemVersionServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected OperatingSystemVersionServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getOperatingSystemVersionSettings = settingsBuilder.getOperatingSystemVersionSettings().build(); + listOperatingSystemVersionsSettings = + settingsBuilder.listOperatingSystemVersionsSettings().build(); + } + + /** Builder for OperatingSystemVersionServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder< + GetOperatingSystemVersionRequest, OperatingSystemVersion> + getOperatingSystemVersionSettings; + private final PagedCallSettings.Builder< + ListOperatingSystemVersionsRequest, + ListOperatingSystemVersionsResponse, + ListOperatingSystemVersionsPagedResponse> + listOperatingSystemVersionsSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getOperatingSystemVersionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listOperatingSystemVersionsSettings = + PagedCallSettings.newBuilder(LIST_OPERATING_SYSTEM_VERSIONS_PAGE_STR_FACT); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getOperatingSystemVersionSettings, listOperatingSystemVersionsSettings); + initDefaults(this); + } + + protected Builder(OperatingSystemVersionServiceStubSettings settings) { + super(settings); + + getOperatingSystemVersionSettings = settings.getOperatingSystemVersionSettings.toBuilder(); + listOperatingSystemVersionsSettings = + settings.listOperatingSystemVersionsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getOperatingSystemVersionSettings, listOperatingSystemVersionsSettings); + } + + 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 initDefaults(Builder builder) { + builder + .getOperatingSystemVersionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listOperatingSystemVersionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getOperatingSystemVersion. */ + public UnaryCallSettings.Builder + getOperatingSystemVersionSettings() { + return getOperatingSystemVersionSettings; + } + + /** Returns the builder for the settings used for calls to listOperatingSystemVersions. */ + public PagedCallSettings.Builder< + ListOperatingSystemVersionsRequest, + ListOperatingSystemVersionsResponse, + ListOperatingSystemVersionsPagedResponse> + listOperatingSystemVersionsSettings() { + return listOperatingSystemVersionsSettings; + } + + @Override + public OperatingSystemVersionServiceStubSettings build() throws IOException { + return new OperatingSystemVersionServiceStubSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/OrderServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/OrderServiceStubSettings.java index cd20d64a5b63..1f5beca0af28 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/OrderServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/OrderServiceStubSettings.java @@ -107,7 +107,7 @@ public class OrderServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().build(); + ImmutableList.builder().add("https://www.googleapis.com/auth/admanager").build(); private final UnaryCallSettings getOrderSettings; private final PagedCallSettings diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PlacementServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PlacementServiceStubSettings.java index aac0b0ce3776..6a7f6e9cbfc7 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PlacementServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PlacementServiceStubSettings.java @@ -106,7 +106,7 @@ public class PlacementServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().build(); + ImmutableList.builder().add("https://www.googleapis.com/auth/admanager").build(); private final UnaryCallSettings getPlacementSettings; private final PagedCallSettings< diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PrivateAuctionDealServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PrivateAuctionDealServiceStub.java new file mode 100644 index 000000000000..2aeba1a14e5b --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PrivateAuctionDealServiceStub.java @@ -0,0 +1,68 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.PrivateAuctionDealServiceClient.ListPrivateAuctionDealsPagedResponse; + +import com.google.ads.admanager.v1.CreatePrivateAuctionDealRequest; +import com.google.ads.admanager.v1.GetPrivateAuctionDealRequest; +import com.google.ads.admanager.v1.ListPrivateAuctionDealsRequest; +import com.google.ads.admanager.v1.ListPrivateAuctionDealsResponse; +import com.google.ads.admanager.v1.PrivateAuctionDeal; +import com.google.ads.admanager.v1.UpdatePrivateAuctionDealRequest; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the PrivateAuctionDealService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class PrivateAuctionDealServiceStub implements BackgroundResource { + + public UnaryCallable + getPrivateAuctionDealCallable() { + throw new UnsupportedOperationException("Not implemented: getPrivateAuctionDealCallable()"); + } + + public UnaryCallable + listPrivateAuctionDealsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listPrivateAuctionDealsPagedCallable()"); + } + + public UnaryCallable + listPrivateAuctionDealsCallable() { + throw new UnsupportedOperationException("Not implemented: listPrivateAuctionDealsCallable()"); + } + + public UnaryCallable + createPrivateAuctionDealCallable() { + throw new UnsupportedOperationException("Not implemented: createPrivateAuctionDealCallable()"); + } + + public UnaryCallable + updatePrivateAuctionDealCallable() { + throw new UnsupportedOperationException("Not implemented: updatePrivateAuctionDealCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PrivateAuctionDealServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PrivateAuctionDealServiceStubSettings.java new file mode 100644 index 000000000000..752b748e0f96 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PrivateAuctionDealServiceStubSettings.java @@ -0,0 +1,468 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.PrivateAuctionDealServiceClient.ListPrivateAuctionDealsPagedResponse; + +import com.google.ads.admanager.v1.CreatePrivateAuctionDealRequest; +import com.google.ads.admanager.v1.GetPrivateAuctionDealRequest; +import com.google.ads.admanager.v1.ListPrivateAuctionDealsRequest; +import com.google.ads.admanager.v1.ListPrivateAuctionDealsResponse; +import com.google.ads.admanager.v1.PrivateAuctionDeal; +import com.google.ads.admanager.v1.UpdatePrivateAuctionDealRequest; +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +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.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link PrivateAuctionDealServiceStub}. + * + *

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

    + *
  • The default service address (admanager.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 getPrivateAuctionDeal: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * PrivateAuctionDealServiceStubSettings.Builder privateAuctionDealServiceSettingsBuilder =
+ *     PrivateAuctionDealServiceStubSettings.newBuilder();
+ * privateAuctionDealServiceSettingsBuilder
+ *     .getPrivateAuctionDealSettings()
+ *     .setRetrySettings(
+ *         privateAuctionDealServiceSettingsBuilder
+ *             .getPrivateAuctionDealSettings()
+ *             .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());
+ * PrivateAuctionDealServiceStubSettings privateAuctionDealServiceSettings =
+ *     privateAuctionDealServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class PrivateAuctionDealServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/admanager").build(); + + private final UnaryCallSettings + getPrivateAuctionDealSettings; + private final PagedCallSettings< + ListPrivateAuctionDealsRequest, + ListPrivateAuctionDealsResponse, + ListPrivateAuctionDealsPagedResponse> + listPrivateAuctionDealsSettings; + private final UnaryCallSettings + createPrivateAuctionDealSettings; + private final UnaryCallSettings + updatePrivateAuctionDealSettings; + + private static final PagedListDescriptor< + ListPrivateAuctionDealsRequest, ListPrivateAuctionDealsResponse, PrivateAuctionDeal> + LIST_PRIVATE_AUCTION_DEALS_PAGE_STR_DESC = + new PagedListDescriptor< + ListPrivateAuctionDealsRequest, + ListPrivateAuctionDealsResponse, + PrivateAuctionDeal>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListPrivateAuctionDealsRequest injectToken( + ListPrivateAuctionDealsRequest payload, String token) { + return ListPrivateAuctionDealsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListPrivateAuctionDealsRequest injectPageSize( + ListPrivateAuctionDealsRequest payload, int pageSize) { + return ListPrivateAuctionDealsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListPrivateAuctionDealsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListPrivateAuctionDealsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListPrivateAuctionDealsResponse payload) { + return payload.getPrivateAuctionDealsList(); + } + }; + + private static final PagedListResponseFactory< + ListPrivateAuctionDealsRequest, + ListPrivateAuctionDealsResponse, + ListPrivateAuctionDealsPagedResponse> + LIST_PRIVATE_AUCTION_DEALS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListPrivateAuctionDealsRequest, + ListPrivateAuctionDealsResponse, + ListPrivateAuctionDealsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListPrivateAuctionDealsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListPrivateAuctionDealsRequest, + ListPrivateAuctionDealsResponse, + PrivateAuctionDeal> + pageContext = + PageContext.create( + callable, LIST_PRIVATE_AUCTION_DEALS_PAGE_STR_DESC, request, context); + return ListPrivateAuctionDealsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to getPrivateAuctionDeal. */ + public UnaryCallSettings + getPrivateAuctionDealSettings() { + return getPrivateAuctionDealSettings; + } + + /** Returns the object with the settings used for calls to listPrivateAuctionDeals. */ + public PagedCallSettings< + ListPrivateAuctionDealsRequest, + ListPrivateAuctionDealsResponse, + ListPrivateAuctionDealsPagedResponse> + listPrivateAuctionDealsSettings() { + return listPrivateAuctionDealsSettings; + } + + /** Returns the object with the settings used for calls to createPrivateAuctionDeal. */ + public UnaryCallSettings + createPrivateAuctionDealSettings() { + return createPrivateAuctionDealSettings; + } + + /** Returns the object with the settings used for calls to updatePrivateAuctionDeal. */ + public UnaryCallSettings + updatePrivateAuctionDealSettings() { + return updatePrivateAuctionDealSettings; + } + + public PrivateAuctionDealServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonPrivateAuctionDealServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "admanager"; + } + + /** 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 "admanager.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "admanager.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 ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultHttpJsonTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(PrivateAuctionDealServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected PrivateAuctionDealServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getPrivateAuctionDealSettings = settingsBuilder.getPrivateAuctionDealSettings().build(); + listPrivateAuctionDealsSettings = settingsBuilder.listPrivateAuctionDealsSettings().build(); + createPrivateAuctionDealSettings = settingsBuilder.createPrivateAuctionDealSettings().build(); + updatePrivateAuctionDealSettings = settingsBuilder.updatePrivateAuctionDealSettings().build(); + } + + /** Builder for PrivateAuctionDealServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + getPrivateAuctionDealSettings; + private final PagedCallSettings.Builder< + ListPrivateAuctionDealsRequest, + ListPrivateAuctionDealsResponse, + ListPrivateAuctionDealsPagedResponse> + listPrivateAuctionDealsSettings; + private final UnaryCallSettings.Builder + createPrivateAuctionDealSettings; + private final UnaryCallSettings.Builder + updatePrivateAuctionDealSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getPrivateAuctionDealSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listPrivateAuctionDealsSettings = + PagedCallSettings.newBuilder(LIST_PRIVATE_AUCTION_DEALS_PAGE_STR_FACT); + createPrivateAuctionDealSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updatePrivateAuctionDealSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getPrivateAuctionDealSettings, + listPrivateAuctionDealsSettings, + createPrivateAuctionDealSettings, + updatePrivateAuctionDealSettings); + initDefaults(this); + } + + protected Builder(PrivateAuctionDealServiceStubSettings settings) { + super(settings); + + getPrivateAuctionDealSettings = settings.getPrivateAuctionDealSettings.toBuilder(); + listPrivateAuctionDealsSettings = settings.listPrivateAuctionDealsSettings.toBuilder(); + createPrivateAuctionDealSettings = settings.createPrivateAuctionDealSettings.toBuilder(); + updatePrivateAuctionDealSettings = settings.updatePrivateAuctionDealSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getPrivateAuctionDealSettings, + listPrivateAuctionDealsSettings, + createPrivateAuctionDealSettings, + updatePrivateAuctionDealSettings); + } + + 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 initDefaults(Builder builder) { + builder + .getPrivateAuctionDealSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listPrivateAuctionDealsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createPrivateAuctionDealSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updatePrivateAuctionDealSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getPrivateAuctionDeal. */ + public UnaryCallSettings.Builder + getPrivateAuctionDealSettings() { + return getPrivateAuctionDealSettings; + } + + /** Returns the builder for the settings used for calls to listPrivateAuctionDeals. */ + public PagedCallSettings.Builder< + ListPrivateAuctionDealsRequest, + ListPrivateAuctionDealsResponse, + ListPrivateAuctionDealsPagedResponse> + listPrivateAuctionDealsSettings() { + return listPrivateAuctionDealsSettings; + } + + /** Returns the builder for the settings used for calls to createPrivateAuctionDeal. */ + public UnaryCallSettings.Builder + createPrivateAuctionDealSettings() { + return createPrivateAuctionDealSettings; + } + + /** Returns the builder for the settings used for calls to updatePrivateAuctionDeal. */ + public UnaryCallSettings.Builder + updatePrivateAuctionDealSettings() { + return updatePrivateAuctionDealSettings; + } + + @Override + public PrivateAuctionDealServiceStubSettings build() throws IOException { + return new PrivateAuctionDealServiceStubSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PrivateAuctionServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PrivateAuctionServiceStub.java new file mode 100644 index 000000000000..b586ddc5da01 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PrivateAuctionServiceStub.java @@ -0,0 +1,64 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.PrivateAuctionServiceClient.ListPrivateAuctionsPagedResponse; + +import com.google.ads.admanager.v1.CreatePrivateAuctionRequest; +import com.google.ads.admanager.v1.GetPrivateAuctionRequest; +import com.google.ads.admanager.v1.ListPrivateAuctionsRequest; +import com.google.ads.admanager.v1.ListPrivateAuctionsResponse; +import com.google.ads.admanager.v1.PrivateAuction; +import com.google.ads.admanager.v1.UpdatePrivateAuctionRequest; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the PrivateAuctionService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class PrivateAuctionServiceStub implements BackgroundResource { + + public UnaryCallable getPrivateAuctionCallable() { + throw new UnsupportedOperationException("Not implemented: getPrivateAuctionCallable()"); + } + + public UnaryCallable + listPrivateAuctionsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listPrivateAuctionsPagedCallable()"); + } + + public UnaryCallable + listPrivateAuctionsCallable() { + throw new UnsupportedOperationException("Not implemented: listPrivateAuctionsCallable()"); + } + + public UnaryCallable createPrivateAuctionCallable() { + throw new UnsupportedOperationException("Not implemented: createPrivateAuctionCallable()"); + } + + public UnaryCallable updatePrivateAuctionCallable() { + throw new UnsupportedOperationException("Not implemented: updatePrivateAuctionCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PrivateAuctionServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PrivateAuctionServiceStubSettings.java new file mode 100644 index 000000000000..e583a9d7027f --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PrivateAuctionServiceStubSettings.java @@ -0,0 +1,452 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.PrivateAuctionServiceClient.ListPrivateAuctionsPagedResponse; + +import com.google.ads.admanager.v1.CreatePrivateAuctionRequest; +import com.google.ads.admanager.v1.GetPrivateAuctionRequest; +import com.google.ads.admanager.v1.ListPrivateAuctionsRequest; +import com.google.ads.admanager.v1.ListPrivateAuctionsResponse; +import com.google.ads.admanager.v1.PrivateAuction; +import com.google.ads.admanager.v1.UpdatePrivateAuctionRequest; +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +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.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link PrivateAuctionServiceStub}. + * + *

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

    + *
  • The default service address (admanager.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 getPrivateAuction: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * PrivateAuctionServiceStubSettings.Builder privateAuctionServiceSettingsBuilder =
+ *     PrivateAuctionServiceStubSettings.newBuilder();
+ * privateAuctionServiceSettingsBuilder
+ *     .getPrivateAuctionSettings()
+ *     .setRetrySettings(
+ *         privateAuctionServiceSettingsBuilder
+ *             .getPrivateAuctionSettings()
+ *             .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());
+ * PrivateAuctionServiceStubSettings privateAuctionServiceSettings =
+ *     privateAuctionServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class PrivateAuctionServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/admanager").build(); + + private final UnaryCallSettings + getPrivateAuctionSettings; + private final PagedCallSettings< + ListPrivateAuctionsRequest, ListPrivateAuctionsResponse, ListPrivateAuctionsPagedResponse> + listPrivateAuctionsSettings; + private final UnaryCallSettings + createPrivateAuctionSettings; + private final UnaryCallSettings + updatePrivateAuctionSettings; + + private static final PagedListDescriptor< + ListPrivateAuctionsRequest, ListPrivateAuctionsResponse, PrivateAuction> + LIST_PRIVATE_AUCTIONS_PAGE_STR_DESC = + new PagedListDescriptor< + ListPrivateAuctionsRequest, ListPrivateAuctionsResponse, PrivateAuction>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListPrivateAuctionsRequest injectToken( + ListPrivateAuctionsRequest payload, String token) { + return ListPrivateAuctionsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListPrivateAuctionsRequest injectPageSize( + ListPrivateAuctionsRequest payload, int pageSize) { + return ListPrivateAuctionsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListPrivateAuctionsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListPrivateAuctionsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListPrivateAuctionsResponse payload) { + return payload.getPrivateAuctionsList(); + } + }; + + private static final PagedListResponseFactory< + ListPrivateAuctionsRequest, ListPrivateAuctionsResponse, ListPrivateAuctionsPagedResponse> + LIST_PRIVATE_AUCTIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListPrivateAuctionsRequest, + ListPrivateAuctionsResponse, + ListPrivateAuctionsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListPrivateAuctionsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_PRIVATE_AUCTIONS_PAGE_STR_DESC, request, context); + return ListPrivateAuctionsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to getPrivateAuction. */ + public UnaryCallSettings getPrivateAuctionSettings() { + return getPrivateAuctionSettings; + } + + /** Returns the object with the settings used for calls to listPrivateAuctions. */ + public PagedCallSettings< + ListPrivateAuctionsRequest, ListPrivateAuctionsResponse, ListPrivateAuctionsPagedResponse> + listPrivateAuctionsSettings() { + return listPrivateAuctionsSettings; + } + + /** Returns the object with the settings used for calls to createPrivateAuction. */ + public UnaryCallSettings + createPrivateAuctionSettings() { + return createPrivateAuctionSettings; + } + + /** Returns the object with the settings used for calls to updatePrivateAuction. */ + public UnaryCallSettings + updatePrivateAuctionSettings() { + return updatePrivateAuctionSettings; + } + + public PrivateAuctionServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonPrivateAuctionServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "admanager"; + } + + /** 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 "admanager.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "admanager.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 ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultHttpJsonTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(PrivateAuctionServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected PrivateAuctionServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getPrivateAuctionSettings = settingsBuilder.getPrivateAuctionSettings().build(); + listPrivateAuctionsSettings = settingsBuilder.listPrivateAuctionsSettings().build(); + createPrivateAuctionSettings = settingsBuilder.createPrivateAuctionSettings().build(); + updatePrivateAuctionSettings = settingsBuilder.updatePrivateAuctionSettings().build(); + } + + /** Builder for PrivateAuctionServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + getPrivateAuctionSettings; + private final PagedCallSettings.Builder< + ListPrivateAuctionsRequest, + ListPrivateAuctionsResponse, + ListPrivateAuctionsPagedResponse> + listPrivateAuctionsSettings; + private final UnaryCallSettings.Builder + createPrivateAuctionSettings; + private final UnaryCallSettings.Builder + updatePrivateAuctionSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getPrivateAuctionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listPrivateAuctionsSettings = + PagedCallSettings.newBuilder(LIST_PRIVATE_AUCTIONS_PAGE_STR_FACT); + createPrivateAuctionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updatePrivateAuctionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getPrivateAuctionSettings, + listPrivateAuctionsSettings, + createPrivateAuctionSettings, + updatePrivateAuctionSettings); + initDefaults(this); + } + + protected Builder(PrivateAuctionServiceStubSettings settings) { + super(settings); + + getPrivateAuctionSettings = settings.getPrivateAuctionSettings.toBuilder(); + listPrivateAuctionsSettings = settings.listPrivateAuctionsSettings.toBuilder(); + createPrivateAuctionSettings = settings.createPrivateAuctionSettings.toBuilder(); + updatePrivateAuctionSettings = settings.updatePrivateAuctionSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getPrivateAuctionSettings, + listPrivateAuctionsSettings, + createPrivateAuctionSettings, + updatePrivateAuctionSettings); + } + + 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 initDefaults(Builder builder) { + builder + .getPrivateAuctionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listPrivateAuctionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createPrivateAuctionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updatePrivateAuctionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getPrivateAuction. */ + public UnaryCallSettings.Builder + getPrivateAuctionSettings() { + return getPrivateAuctionSettings; + } + + /** Returns the builder for the settings used for calls to listPrivateAuctions. */ + public PagedCallSettings.Builder< + ListPrivateAuctionsRequest, + ListPrivateAuctionsResponse, + ListPrivateAuctionsPagedResponse> + listPrivateAuctionsSettings() { + return listPrivateAuctionsSettings; + } + + /** Returns the builder for the settings used for calls to createPrivateAuction. */ + public UnaryCallSettings.Builder + createPrivateAuctionSettings() { + return createPrivateAuctionSettings; + } + + /** Returns the builder for the settings used for calls to updatePrivateAuction. */ + public UnaryCallSettings.Builder + updatePrivateAuctionSettings() { + return updatePrivateAuctionSettings; + } + + @Override + public PrivateAuctionServiceStubSettings build() throws IOException { + return new PrivateAuctionServiceStubSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ProgrammaticBuyerServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ProgrammaticBuyerServiceStub.java new file mode 100644 index 000000000000..acb3b89bcd5e --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ProgrammaticBuyerServiceStub.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.ProgrammaticBuyerServiceClient.ListProgrammaticBuyersPagedResponse; + +import com.google.ads.admanager.v1.GetProgrammaticBuyerRequest; +import com.google.ads.admanager.v1.ListProgrammaticBuyersRequest; +import com.google.ads.admanager.v1.ListProgrammaticBuyersResponse; +import com.google.ads.admanager.v1.ProgrammaticBuyer; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the ProgrammaticBuyerService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class ProgrammaticBuyerServiceStub implements BackgroundResource { + + public UnaryCallable + getProgrammaticBuyerCallable() { + throw new UnsupportedOperationException("Not implemented: getProgrammaticBuyerCallable()"); + } + + public UnaryCallable + listProgrammaticBuyersPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listProgrammaticBuyersPagedCallable()"); + } + + public UnaryCallable + listProgrammaticBuyersCallable() { + throw new UnsupportedOperationException("Not implemented: listProgrammaticBuyersCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ProgrammaticBuyerServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ProgrammaticBuyerServiceStubSettings.java new file mode 100644 index 000000000000..7d4ee0944747 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ProgrammaticBuyerServiceStubSettings.java @@ -0,0 +1,410 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.stub; + +import static com.google.ads.admanager.v1.ProgrammaticBuyerServiceClient.ListProgrammaticBuyersPagedResponse; + +import com.google.ads.admanager.v1.GetProgrammaticBuyerRequest; +import com.google.ads.admanager.v1.ListProgrammaticBuyersRequest; +import com.google.ads.admanager.v1.ListProgrammaticBuyersResponse; +import com.google.ads.admanager.v1.ProgrammaticBuyer; +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +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.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link ProgrammaticBuyerServiceStub}. + * + *

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

    + *
  • The default service address (admanager.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 getProgrammaticBuyer: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ProgrammaticBuyerServiceStubSettings.Builder programmaticBuyerServiceSettingsBuilder =
+ *     ProgrammaticBuyerServiceStubSettings.newBuilder();
+ * programmaticBuyerServiceSettingsBuilder
+ *     .getProgrammaticBuyerSettings()
+ *     .setRetrySettings(
+ *         programmaticBuyerServiceSettingsBuilder
+ *             .getProgrammaticBuyerSettings()
+ *             .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());
+ * ProgrammaticBuyerServiceStubSettings programmaticBuyerServiceSettings =
+ *     programmaticBuyerServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class ProgrammaticBuyerServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/admanager").build(); + + private final UnaryCallSettings + getProgrammaticBuyerSettings; + private final PagedCallSettings< + ListProgrammaticBuyersRequest, + ListProgrammaticBuyersResponse, + ListProgrammaticBuyersPagedResponse> + listProgrammaticBuyersSettings; + + private static final PagedListDescriptor< + ListProgrammaticBuyersRequest, ListProgrammaticBuyersResponse, ProgrammaticBuyer> + LIST_PROGRAMMATIC_BUYERS_PAGE_STR_DESC = + new PagedListDescriptor< + ListProgrammaticBuyersRequest, ListProgrammaticBuyersResponse, ProgrammaticBuyer>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListProgrammaticBuyersRequest injectToken( + ListProgrammaticBuyersRequest payload, String token) { + return ListProgrammaticBuyersRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListProgrammaticBuyersRequest injectPageSize( + ListProgrammaticBuyersRequest payload, int pageSize) { + return ListProgrammaticBuyersRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListProgrammaticBuyersRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListProgrammaticBuyersResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListProgrammaticBuyersResponse payload) { + return payload.getProgrammaticBuyersList(); + } + }; + + private static final PagedListResponseFactory< + ListProgrammaticBuyersRequest, + ListProgrammaticBuyersResponse, + ListProgrammaticBuyersPagedResponse> + LIST_PROGRAMMATIC_BUYERS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListProgrammaticBuyersRequest, + ListProgrammaticBuyersResponse, + ListProgrammaticBuyersPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListProgrammaticBuyersRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListProgrammaticBuyersRequest, + ListProgrammaticBuyersResponse, + ProgrammaticBuyer> + pageContext = + PageContext.create( + callable, LIST_PROGRAMMATIC_BUYERS_PAGE_STR_DESC, request, context); + return ListProgrammaticBuyersPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to getProgrammaticBuyer. */ + public UnaryCallSettings + getProgrammaticBuyerSettings() { + return getProgrammaticBuyerSettings; + } + + /** Returns the object with the settings used for calls to listProgrammaticBuyers. */ + public PagedCallSettings< + ListProgrammaticBuyersRequest, + ListProgrammaticBuyersResponse, + ListProgrammaticBuyersPagedResponse> + listProgrammaticBuyersSettings() { + return listProgrammaticBuyersSettings; + } + + public ProgrammaticBuyerServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonProgrammaticBuyerServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "admanager"; + } + + /** 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 "admanager.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "admanager.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 ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultHttpJsonTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(ProgrammaticBuyerServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected ProgrammaticBuyerServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getProgrammaticBuyerSettings = settingsBuilder.getProgrammaticBuyerSettings().build(); + listProgrammaticBuyersSettings = settingsBuilder.listProgrammaticBuyersSettings().build(); + } + + /** Builder for ProgrammaticBuyerServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + getProgrammaticBuyerSettings; + private final PagedCallSettings.Builder< + ListProgrammaticBuyersRequest, + ListProgrammaticBuyersResponse, + ListProgrammaticBuyersPagedResponse> + listProgrammaticBuyersSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getProgrammaticBuyerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listProgrammaticBuyersSettings = + PagedCallSettings.newBuilder(LIST_PROGRAMMATIC_BUYERS_PAGE_STR_FACT); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getProgrammaticBuyerSettings, listProgrammaticBuyersSettings); + initDefaults(this); + } + + protected Builder(ProgrammaticBuyerServiceStubSettings settings) { + super(settings); + + getProgrammaticBuyerSettings = settings.getProgrammaticBuyerSettings.toBuilder(); + listProgrammaticBuyersSettings = settings.listProgrammaticBuyersSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getProgrammaticBuyerSettings, listProgrammaticBuyersSettings); + } + + 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 initDefaults(Builder builder) { + builder + .getProgrammaticBuyerSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listProgrammaticBuyersSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getProgrammaticBuyer. */ + public UnaryCallSettings.Builder + getProgrammaticBuyerSettings() { + return getProgrammaticBuyerSettings; + } + + /** Returns the builder for the settings used for calls to listProgrammaticBuyers. */ + public PagedCallSettings.Builder< + ListProgrammaticBuyersRequest, + ListProgrammaticBuyersResponse, + ListProgrammaticBuyersPagedResponse> + listProgrammaticBuyersSettings() { + return listProgrammaticBuyersSettings; + } + + @Override + public ProgrammaticBuyerServiceStubSettings build() throws IOException { + return new ProgrammaticBuyerServiceStubSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ReportServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ReportServiceStubSettings.java index 76830eb7a767..b56ba0caa8fc 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ReportServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ReportServiceStubSettings.java @@ -146,7 +146,7 @@ public class ReportServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().build(); + ImmutableList.builder().add("https://www.googleapis.com/auth/admanager").build(); private final UnaryCallSettings getReportSettings; private final PagedCallSettings diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/RoleServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/RoleServiceStubSettings.java index 3dc0e1f48d54..53b1225226ac 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/RoleServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/RoleServiceStubSettings.java @@ -106,7 +106,7 @@ public class RoleServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().build(); + ImmutableList.builder().add("https://www.googleapis.com/auth/admanager").build(); private final UnaryCallSettings getRoleSettings; private final PagedCallSettings diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/TaxonomyCategoryServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/TaxonomyCategoryServiceStubSettings.java index 22fa1fdb4c7e..be0ca2c37721 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/TaxonomyCategoryServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/TaxonomyCategoryServiceStubSettings.java @@ -108,7 +108,7 @@ public class TaxonomyCategoryServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().build(); + ImmutableList.builder().add("https://www.googleapis.com/auth/admanager").build(); private final UnaryCallSettings getTaxonomyCategorySettings; diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/UserServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/UserServiceStubSettings.java index c8a524f2efea..307a87c404de 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/UserServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/UserServiceStubSettings.java @@ -95,7 +95,7 @@ public class UserServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().build(); + ImmutableList.builder().add("https://www.googleapis.com/auth/admanager").build(); private final UnaryCallSettings getUserSettings; diff --git a/java-admanager/ad-manager/src/main/resources/META-INF/native-image/com.google.ads.admanager.v1/reflect-config.json b/java-admanager/ad-manager/src/main/resources/META-INF/native-image/com.google.ads.admanager.v1/reflect-config.json index e48c10fcb47a..cb60791e2a54 100644 --- a/java-admanager/ad-manager/src/main/resources/META-INF/native-image/com.google.ads.admanager.v1/reflect-config.json +++ b/java-admanager/ad-manager/src/main/resources/META-INF/native-image/com.google.ads.admanager.v1/reflect-config.json @@ -1,4 +1,49 @@ [ + { + "name": "com.google.ads.admanager.v1.AdBreak", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.AdBreak$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.AdBreakStateEnum", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.AdBreakStateEnum$AdBreakState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.AdBreakStateEnum$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.admanager.v1.AdManagerError", "queryAllDeclaredConstructors": true, @@ -98,6 +143,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.admanager.v1.AdUnitTargeting", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.AdUnitTargeting$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.admanager.v1.AppliedLabel", "queryAllDeclaredConstructors": true, @@ -116,6 +179,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.admanager.v1.BandwidthGroup", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.BandwidthGroup$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.BandwidthTargeting", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.BandwidthTargeting$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.admanager.v1.BatchCreateEntitySignalsMappingsRequest", "queryAllDeclaredConstructors": true, @@ -278,6 +377,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.admanager.v1.CreateAdBreakRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.CreateAdBreakRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.admanager.v1.CreateEntitySignalsMappingRequest", "queryAllDeclaredConstructors": true, @@ -296,6 +413,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.admanager.v1.CreatePrivateAuctionDealRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.CreatePrivateAuctionDealRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.CreatePrivateAuctionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.CreatePrivateAuctionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.admanager.v1.CreateReportRequest", "queryAllDeclaredConstructors": true, @@ -495,7 +648,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomTargetingKey", + "name": "com.google.ads.admanager.v1.CustomTargeting", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -504,7 +657,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomTargetingKey$Builder", + "name": "com.google.ads.admanager.v1.CustomTargeting$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -513,7 +666,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum", + "name": "com.google.ads.admanager.v1.CustomTargetingClause", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -522,7 +675,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum$Builder", + "name": "com.google.ads.admanager.v1.CustomTargetingClause$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -531,7 +684,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum$CustomTargetingKeyReportableType", + "name": "com.google.ads.admanager.v1.CustomTargetingKey", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -540,7 +693,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomTargetingKeyStatusEnum", + "name": "com.google.ads.admanager.v1.CustomTargetingKey$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -549,7 +702,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomTargetingKeyStatusEnum$Builder", + "name": "com.google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -558,7 +711,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomTargetingKeyStatusEnum$CustomTargetingKeyStatus", + "name": "com.google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -567,7 +720,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomTargetingKeyTypeEnum", + "name": "com.google.ads.admanager.v1.CustomTargetingKeyReportableTypeEnum$CustomTargetingKeyReportableType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -576,7 +729,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomTargetingKeyTypeEnum$Builder", + "name": "com.google.ads.admanager.v1.CustomTargetingKeyStatusEnum", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -585,7 +738,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomTargetingKeyTypeEnum$CustomTargetingKeyType", + "name": "com.google.ads.admanager.v1.CustomTargetingKeyStatusEnum$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -594,7 +747,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomTargetingValue", + "name": "com.google.ads.admanager.v1.CustomTargetingKeyStatusEnum$CustomTargetingKeyStatus", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -603,7 +756,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomTargetingValue$Builder", + "name": "com.google.ads.admanager.v1.CustomTargetingKeyTypeEnum", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -612,7 +765,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum", + "name": "com.google.ads.admanager.v1.CustomTargetingKeyTypeEnum$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -621,7 +774,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum$Builder", + "name": "com.google.ads.admanager.v1.CustomTargetingKeyTypeEnum$CustomTargetingKeyType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -630,7 +783,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum$CustomTargetingValueMatchType", + "name": "com.google.ads.admanager.v1.CustomTargetingLiteral", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -639,7 +792,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomTargetingValueStatusEnum", + "name": "com.google.ads.admanager.v1.CustomTargetingLiteral$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -648,7 +801,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomTargetingValueStatusEnum$Builder", + "name": "com.google.ads.admanager.v1.CustomTargetingValue", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -657,7 +810,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.CustomTargetingValueStatusEnum$CustomTargetingValueStatus", + "name": "com.google.ads.admanager.v1.CustomTargetingValue$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -666,7 +819,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.EntitySignalsMapping", + "name": "com.google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -675,7 +828,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.EntitySignalsMapping$Builder", + "name": "com.google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -684,7 +837,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.EnvironmentTypeEnum", + "name": "com.google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum$CustomTargetingValueMatchType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -693,7 +846,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.EnvironmentTypeEnum$Builder", + "name": "com.google.ads.admanager.v1.CustomTargetingValueStatusEnum", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -702,7 +855,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.EnvironmentTypeEnum$EnvironmentType", + "name": "com.google.ads.admanager.v1.CustomTargetingValueStatusEnum$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -711,7 +864,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.FetchReportResultRowsRequest", + "name": "com.google.ads.admanager.v1.CustomTargetingValueStatusEnum$CustomTargetingValueStatus", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -720,7 +873,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.FetchReportResultRowsRequest$Builder", + "name": "com.google.ads.admanager.v1.DataSegmentTargeting", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -729,7 +882,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.FetchReportResultRowsResponse", + "name": "com.google.ads.admanager.v1.DataSegmentTargeting$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -738,7 +891,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.FetchReportResultRowsResponse$Builder", + "name": "com.google.ads.admanager.v1.DealBuyerPermissionTypeEnum", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -747,7 +900,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.FrequencyCap", + "name": "com.google.ads.admanager.v1.DealBuyerPermissionTypeEnum$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -756,7 +909,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.FrequencyCap$Builder", + "name": "com.google.ads.admanager.v1.DealBuyerPermissionTypeEnum$DealBuyerPermissionType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -765,7 +918,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetAdUnitRequest", + "name": "com.google.ads.admanager.v1.DeleteAdBreakRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -774,7 +927,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetAdUnitRequest$Builder", + "name": "com.google.ads.admanager.v1.DeleteAdBreakRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -783,7 +936,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetCompanyRequest", + "name": "com.google.ads.admanager.v1.DeviceCategory", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -792,7 +945,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetCompanyRequest$Builder", + "name": "com.google.ads.admanager.v1.DeviceCategory$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -801,7 +954,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetCustomFieldRequest", + "name": "com.google.ads.admanager.v1.DeviceCategoryTargeting", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -810,7 +963,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetCustomFieldRequest$Builder", + "name": "com.google.ads.admanager.v1.DeviceCategoryTargeting$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -819,7 +972,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetCustomTargetingKeyRequest", + "name": "com.google.ads.admanager.v1.EntitySignalsMapping", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -828,7 +981,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetCustomTargetingKeyRequest$Builder", + "name": "com.google.ads.admanager.v1.EntitySignalsMapping$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -837,7 +990,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetCustomTargetingValueRequest", + "name": "com.google.ads.admanager.v1.EnvironmentTypeEnum", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -846,7 +999,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetCustomTargetingValueRequest$Builder", + "name": "com.google.ads.admanager.v1.EnvironmentTypeEnum$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -855,7 +1008,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetEntitySignalsMappingRequest", + "name": "com.google.ads.admanager.v1.EnvironmentTypeEnum$EnvironmentType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -864,7 +1017,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetEntitySignalsMappingRequest$Builder", + "name": "com.google.ads.admanager.v1.FetchReportResultRowsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -873,7 +1026,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetNetworkRequest", + "name": "com.google.ads.admanager.v1.FetchReportResultRowsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -882,7 +1035,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetNetworkRequest$Builder", + "name": "com.google.ads.admanager.v1.FetchReportResultRowsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -891,7 +1044,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetOrderRequest", + "name": "com.google.ads.admanager.v1.FetchReportResultRowsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -900,7 +1053,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetOrderRequest$Builder", + "name": "com.google.ads.admanager.v1.FrequencyCap", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -909,7 +1062,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetPlacementRequest", + "name": "com.google.ads.admanager.v1.FrequencyCap$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -918,7 +1071,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetPlacementRequest$Builder", + "name": "com.google.ads.admanager.v1.GeoTarget", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -927,7 +1080,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetReportRequest", + "name": "com.google.ads.admanager.v1.GeoTarget$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -936,7 +1089,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetReportRequest$Builder", + "name": "com.google.ads.admanager.v1.GeoTargeting", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -945,7 +1098,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetRoleRequest", + "name": "com.google.ads.admanager.v1.GeoTargeting$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -954,7 +1107,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetRoleRequest$Builder", + "name": "com.google.ads.admanager.v1.GetAdBreakRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -963,7 +1116,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetTaxonomyCategoryRequest", + "name": "com.google.ads.admanager.v1.GetAdBreakRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -972,7 +1125,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetTaxonomyCategoryRequest$Builder", + "name": "com.google.ads.admanager.v1.GetAdUnitRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -981,7 +1134,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetUserRequest", + "name": "com.google.ads.admanager.v1.GetAdUnitRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -990,7 +1143,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.GetUserRequest$Builder", + "name": "com.google.ads.admanager.v1.GetBandwidthGroupRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -999,7 +1152,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Label", + "name": "com.google.ads.admanager.v1.GetBandwidthGroupRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1008,7 +1161,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Label$Builder", + "name": "com.google.ads.admanager.v1.GetCompanyRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1017,7 +1170,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.LabelFrequencyCap", + "name": "com.google.ads.admanager.v1.GetCompanyRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1026,7 +1179,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.LabelFrequencyCap$Builder", + "name": "com.google.ads.admanager.v1.GetCustomFieldRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1035,7 +1188,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListAdUnitSizesRequest", + "name": "com.google.ads.admanager.v1.GetCustomFieldRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1044,7 +1197,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListAdUnitSizesRequest$Builder", + "name": "com.google.ads.admanager.v1.GetCustomTargetingKeyRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1053,7 +1206,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListAdUnitSizesResponse", + "name": "com.google.ads.admanager.v1.GetCustomTargetingKeyRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1062,7 +1215,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListAdUnitSizesResponse$Builder", + "name": "com.google.ads.admanager.v1.GetCustomTargetingValueRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1071,7 +1224,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListAdUnitsRequest", + "name": "com.google.ads.admanager.v1.GetCustomTargetingValueRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1080,7 +1233,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListAdUnitsRequest$Builder", + "name": "com.google.ads.admanager.v1.GetDeviceCategoryRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1089,7 +1242,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListAdUnitsResponse", + "name": "com.google.ads.admanager.v1.GetDeviceCategoryRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1098,7 +1251,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListAdUnitsResponse$Builder", + "name": "com.google.ads.admanager.v1.GetEntitySignalsMappingRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1107,7 +1260,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListCompaniesRequest", + "name": "com.google.ads.admanager.v1.GetEntitySignalsMappingRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1116,7 +1269,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListCompaniesRequest$Builder", + "name": "com.google.ads.admanager.v1.GetGeoTargetRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1125,7 +1278,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListCompaniesResponse", + "name": "com.google.ads.admanager.v1.GetGeoTargetRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1134,7 +1287,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListCompaniesResponse$Builder", + "name": "com.google.ads.admanager.v1.GetNetworkRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1143,7 +1296,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListCustomFieldsRequest", + "name": "com.google.ads.admanager.v1.GetNetworkRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1152,7 +1305,1123 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListCustomFieldsRequest$Builder", + "name": "com.google.ads.admanager.v1.GetOperatingSystemRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetOperatingSystemRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetOperatingSystemVersionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetOperatingSystemVersionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetOrderRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetOrderRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetPlacementRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetPlacementRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetPrivateAuctionDealRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetPrivateAuctionDealRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetPrivateAuctionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetPrivateAuctionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetProgrammaticBuyerRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetProgrammaticBuyerRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetReportRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetReportRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetRoleRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetRoleRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetTaxonomyCategoryRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetTaxonomyCategoryRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetUserRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetUserRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.InventoryTargeting", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.InventoryTargeting$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.Label", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.Label$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.LabelFrequencyCap", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.LabelFrequencyCap$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListAdBreaksRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListAdBreaksRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListAdBreaksResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListAdBreaksResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListAdUnitSizesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListAdUnitSizesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListAdUnitSizesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListAdUnitSizesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListAdUnitsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListAdUnitsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListAdUnitsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListAdUnitsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListBandwidthGroupsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListBandwidthGroupsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListBandwidthGroupsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListBandwidthGroupsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListCompaniesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListCompaniesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListCompaniesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListCompaniesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListCustomFieldsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListCustomFieldsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListCustomFieldsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListCustomFieldsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListCustomTargetingKeysRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListCustomTargetingKeysRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListCustomTargetingKeysResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListCustomTargetingKeysResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListCustomTargetingValuesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListCustomTargetingValuesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListCustomTargetingValuesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListCustomTargetingValuesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListDeviceCategoriesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListDeviceCategoriesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListDeviceCategoriesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListDeviceCategoriesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListEntitySignalsMappingsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListEntitySignalsMappingsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListEntitySignalsMappingsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListEntitySignalsMappingsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListGeoTargetsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListGeoTargetsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListGeoTargetsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListGeoTargetsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListNetworksRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListNetworksRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListNetworksResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListNetworksResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListOperatingSystemVersionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListOperatingSystemVersionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListOperatingSystemVersionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListOperatingSystemVersionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListOperatingSystemsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListOperatingSystemsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListOperatingSystemsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListOperatingSystemsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListOrdersRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListOrdersRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListOrdersResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListOrdersResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListPlacementsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListPlacementsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListPlacementsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListPlacementsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListPrivateAuctionDealsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListPrivateAuctionDealsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListPrivateAuctionDealsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListPrivateAuctionDealsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListPrivateAuctionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListPrivateAuctionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListPrivateAuctionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListPrivateAuctionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListProgrammaticBuyersRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListProgrammaticBuyersRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListProgrammaticBuyersResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListProgrammaticBuyersResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListReportsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListReportsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListReportsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListReportsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListRolesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListRolesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListRolesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListRolesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListTaxonomyCategoriesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListTaxonomyCategoriesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListTaxonomyCategoriesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListTaxonomyCategoriesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.LiveStreamEvent", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.LiveStreamEvent$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.Network", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.Network$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.OperatingSystem", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.OperatingSystem$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.OperatingSystemTargeting", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.OperatingSystemTargeting$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.OperatingSystemVersion", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1161,7 +2430,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListCustomFieldsResponse", + "name": "com.google.ads.admanager.v1.OperatingSystemVersion$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1170,7 +2439,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListCustomFieldsResponse$Builder", + "name": "com.google.ads.admanager.v1.Order", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1179,7 +2448,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListCustomTargetingKeysRequest", + "name": "com.google.ads.admanager.v1.Order$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1188,7 +2457,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListCustomTargetingKeysRequest$Builder", + "name": "com.google.ads.admanager.v1.OrderStatusEnum", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1197,7 +2466,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListCustomTargetingKeysResponse", + "name": "com.google.ads.admanager.v1.OrderStatusEnum$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1206,7 +2475,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListCustomTargetingKeysResponse$Builder", + "name": "com.google.ads.admanager.v1.OrderStatusEnum$OrderStatus", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1215,7 +2484,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListCustomTargetingValuesRequest", + "name": "com.google.ads.admanager.v1.Placement", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1224,7 +2493,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListCustomTargetingValuesRequest$Builder", + "name": "com.google.ads.admanager.v1.Placement$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1233,7 +2502,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListCustomTargetingValuesResponse", + "name": "com.google.ads.admanager.v1.PlacementStatusEnum", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1242,7 +2511,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListCustomTargetingValuesResponse$Builder", + "name": "com.google.ads.admanager.v1.PlacementStatusEnum$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1251,7 +2520,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListEntitySignalsMappingsRequest", + "name": "com.google.ads.admanager.v1.PlacementStatusEnum$PlacementStatus", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1260,7 +2529,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListEntitySignalsMappingsRequest$Builder", + "name": "com.google.ads.admanager.v1.PrivateAuction", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1269,7 +2538,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListEntitySignalsMappingsResponse", + "name": "com.google.ads.admanager.v1.PrivateAuction$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1278,7 +2547,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListEntitySignalsMappingsResponse$Builder", + "name": "com.google.ads.admanager.v1.PrivateAuctionDeal", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1287,7 +2556,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListNetworksRequest", + "name": "com.google.ads.admanager.v1.PrivateAuctionDeal$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1296,7 +2565,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListNetworksRequest$Builder", + "name": "com.google.ads.admanager.v1.PrivateAuctionDeal$BuyerData", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1305,7 +2574,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListNetworksResponse", + "name": "com.google.ads.admanager.v1.PrivateAuctionDeal$BuyerData$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1314,7 +2583,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListNetworksResponse$Builder", + "name": "com.google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1323,7 +2592,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListOrdersRequest", + "name": "com.google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1332,7 +2601,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListOrdersRequest$Builder", + "name": "com.google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum$PrivateMarketplaceDealStatus", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1341,7 +2610,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListOrdersResponse", + "name": "com.google.ads.admanager.v1.ProgrammaticBuyer", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1350,7 +2619,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListOrdersResponse$Builder", + "name": "com.google.ads.admanager.v1.ProgrammaticBuyer$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1359,7 +2628,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListPlacementsRequest", + "name": "com.google.ads.admanager.v1.Report", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1368,7 +2637,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListPlacementsRequest$Builder", + "name": "com.google.ads.admanager.v1.Report$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1377,7 +2646,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListPlacementsResponse", + "name": "com.google.ads.admanager.v1.Report$DataTable", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1386,7 +2655,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListPlacementsResponse$Builder", + "name": "com.google.ads.admanager.v1.Report$DataTable$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1395,7 +2664,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListReportsRequest", + "name": "com.google.ads.admanager.v1.Report$DataTable$MetricValueGroup", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1404,7 +2673,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListReportsRequest$Builder", + "name": "com.google.ads.admanager.v1.Report$DataTable$MetricValueGroup$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1413,7 +2682,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListReportsResponse", + "name": "com.google.ads.admanager.v1.Report$DataTable$Row", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1422,7 +2691,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListReportsResponse$Builder", + "name": "com.google.ads.admanager.v1.Report$DataTable$Row$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1431,7 +2700,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListRolesRequest", + "name": "com.google.ads.admanager.v1.Report$DateRange", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1440,7 +2709,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListRolesRequest$Builder", + "name": "com.google.ads.admanager.v1.Report$DateRange$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1449,7 +2718,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListRolesResponse", + "name": "com.google.ads.admanager.v1.Report$DateRange$FixedDateRange", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1458,7 +2727,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListRolesResponse$Builder", + "name": "com.google.ads.admanager.v1.Report$DateRange$FixedDateRange$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1467,7 +2736,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListTaxonomyCategoriesRequest", + "name": "com.google.ads.admanager.v1.Report$DateRange$RelativeDateRange", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1476,7 +2745,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListTaxonomyCategoriesRequest$Builder", + "name": "com.google.ads.admanager.v1.Report$Dimension", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1485,7 +2754,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListTaxonomyCategoriesResponse", + "name": "com.google.ads.admanager.v1.Report$Field", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1494,7 +2763,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ListTaxonomyCategoriesResponse$Builder", + "name": "com.google.ads.admanager.v1.Report$Field$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1503,7 +2772,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Network", + "name": "com.google.ads.admanager.v1.Report$Filter", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1512,7 +2781,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Network$Builder", + "name": "com.google.ads.admanager.v1.Report$Filter$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1521,7 +2790,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Order", + "name": "com.google.ads.admanager.v1.Report$Filter$FieldFilter", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1530,7 +2799,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Order$Builder", + "name": "com.google.ads.admanager.v1.Report$Filter$FieldFilter$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1539,7 +2808,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.OrderStatusEnum", + "name": "com.google.ads.admanager.v1.Report$Filter$FilterList", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1548,7 +2817,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.OrderStatusEnum$Builder", + "name": "com.google.ads.admanager.v1.Report$Filter$FilterList$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1557,7 +2826,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.OrderStatusEnum$OrderStatus", + "name": "com.google.ads.admanager.v1.Report$Filter$Operation", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1566,7 +2835,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Placement", + "name": "com.google.ads.admanager.v1.Report$Flag", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1575,7 +2844,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Placement$Builder", + "name": "com.google.ads.admanager.v1.Report$Flag$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1584,7 +2853,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.PlacementStatusEnum", + "name": "com.google.ads.admanager.v1.Report$Metric", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1593,7 +2862,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.PlacementStatusEnum$Builder", + "name": "com.google.ads.admanager.v1.Report$MetricValueType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1602,7 +2871,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.PlacementStatusEnum$PlacementStatus", + "name": "com.google.ads.admanager.v1.Report$ReportType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1611,7 +2880,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report", + "name": "com.google.ads.admanager.v1.Report$Slice", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1620,7 +2889,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$Builder", + "name": "com.google.ads.admanager.v1.Report$Slice$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1629,7 +2898,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$DataTable", + "name": "com.google.ads.admanager.v1.Report$Sort", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1638,7 +2907,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$DataTable$Builder", + "name": "com.google.ads.admanager.v1.Report$Sort$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1647,7 +2916,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$DataTable$MetricValueGroup", + "name": "com.google.ads.admanager.v1.Report$TimePeriodColumn", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1656,7 +2925,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$DataTable$MetricValueGroup$Builder", + "name": "com.google.ads.admanager.v1.Report$TimeZoneSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1665,7 +2934,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$DataTable$Row", + "name": "com.google.ads.admanager.v1.Report$Value", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1674,7 +2943,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$DataTable$Row$Builder", + "name": "com.google.ads.admanager.v1.Report$Value$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1683,7 +2952,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$DateRange", + "name": "com.google.ads.admanager.v1.Report$Value$IntList", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1692,7 +2961,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$DateRange$Builder", + "name": "com.google.ads.admanager.v1.Report$Value$IntList$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1701,7 +2970,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$DateRange$FixedDateRange", + "name": "com.google.ads.admanager.v1.Report$Value$StringList", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1710,7 +2979,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$DateRange$FixedDateRange$Builder", + "name": "com.google.ads.admanager.v1.Report$Value$StringList$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1719,7 +2988,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$DateRange$RelativeDateRange", + "name": "com.google.ads.admanager.v1.Report$Visibility", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1728,7 +2997,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$Dimension", + "name": "com.google.ads.admanager.v1.ReportDefinition", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1737,7 +3006,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$Field", + "name": "com.google.ads.admanager.v1.ReportDefinition$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1746,7 +3015,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$Field$Builder", + "name": "com.google.ads.admanager.v1.RequestPlatformEnum", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1755,7 +3024,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$Filter", + "name": "com.google.ads.admanager.v1.RequestPlatformEnum$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1764,7 +3033,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$Filter$Builder", + "name": "com.google.ads.admanager.v1.RequestPlatformEnum$RequestPlatform", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1773,7 +3042,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$Filter$FieldFilter", + "name": "com.google.ads.admanager.v1.RequestPlatformTargeting", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1782,7 +3051,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$Filter$FieldFilter$Builder", + "name": "com.google.ads.admanager.v1.RequestPlatformTargeting$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1791,7 +3060,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$Filter$FilterList", + "name": "com.google.ads.admanager.v1.Role", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1800,7 +3069,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$Filter$FilterList$Builder", + "name": "com.google.ads.admanager.v1.Role$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1809,7 +3078,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$Filter$Operation", + "name": "com.google.ads.admanager.v1.RoleStatusEnum", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1818,7 +3087,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$Flag", + "name": "com.google.ads.admanager.v1.RoleStatusEnum$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1827,7 +3096,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$Flag$Builder", + "name": "com.google.ads.admanager.v1.RoleStatusEnum$RoleStatus", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1836,7 +3105,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$Metric", + "name": "com.google.ads.admanager.v1.RunReportMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1845,7 +3114,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$MetricValueType", + "name": "com.google.ads.admanager.v1.RunReportMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1854,7 +3123,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$ReportType", + "name": "com.google.ads.admanager.v1.RunReportRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1863,7 +3132,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$Slice", + "name": "com.google.ads.admanager.v1.RunReportRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1872,7 +3141,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$Slice$Builder", + "name": "com.google.ads.admanager.v1.RunReportResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1881,7 +3150,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$Sort", + "name": "com.google.ads.admanager.v1.RunReportResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1890,7 +3159,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$Sort$Builder", + "name": "com.google.ads.admanager.v1.Schedule", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1899,7 +3168,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$TimePeriodColumn", + "name": "com.google.ads.admanager.v1.Schedule$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1908,7 +3177,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$Value", + "name": "com.google.ads.admanager.v1.Schedule$Frequency", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1917,7 +3186,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$Value$Builder", + "name": "com.google.ads.admanager.v1.Schedule$MonthlySchedule", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1926,7 +3195,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$Value$IntList", + "name": "com.google.ads.admanager.v1.Schedule$MonthlySchedule$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1935,7 +3204,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$Value$IntList$Builder", + "name": "com.google.ads.admanager.v1.Schedule$WeeklySchedule", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1944,7 +3213,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$Value$StringList", + "name": "com.google.ads.admanager.v1.Schedule$WeeklySchedule$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1953,7 +3222,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$Value$StringList$Builder", + "name": "com.google.ads.admanager.v1.ScheduleOptions", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1962,7 +3231,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Report$Visibility", + "name": "com.google.ads.admanager.v1.ScheduleOptions$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1971,7 +3240,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ReportDefinition", + "name": "com.google.ads.admanager.v1.ScheduleOptions$DeliveryCondition", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1980,7 +3249,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ReportDefinition$Builder", + "name": "com.google.ads.admanager.v1.Size", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1989,7 +3258,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Role", + "name": "com.google.ads.admanager.v1.Size$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1998,7 +3267,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Role$Builder", + "name": "com.google.ads.admanager.v1.SizeTypeEnum", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2007,7 +3276,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.RoleStatusEnum", + "name": "com.google.ads.admanager.v1.SizeTypeEnum$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2016,7 +3285,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.RoleStatusEnum$Builder", + "name": "com.google.ads.admanager.v1.SizeTypeEnum$SizeType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2025,7 +3294,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.RoleStatusEnum$RoleStatus", + "name": "com.google.ads.admanager.v1.SmartSizeModeEnum", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2034,7 +3303,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.RunReportMetadata", + "name": "com.google.ads.admanager.v1.SmartSizeModeEnum$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2043,7 +3312,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.RunReportMetadata$Builder", + "name": "com.google.ads.admanager.v1.SmartSizeModeEnum$SmartSizeMode", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2052,7 +3321,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.RunReportRequest", + "name": "com.google.ads.admanager.v1.TargetWindowEnum", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2061,7 +3330,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.RunReportRequest$Builder", + "name": "com.google.ads.admanager.v1.TargetWindowEnum$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2070,7 +3339,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.RunReportResponse", + "name": "com.google.ads.admanager.v1.TargetWindowEnum$TargetWindow", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2079,7 +3348,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.RunReportResponse$Builder", + "name": "com.google.ads.admanager.v1.TargetedVideoBumperTypeEnum", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2088,7 +3357,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Schedule", + "name": "com.google.ads.admanager.v1.TargetedVideoBumperTypeEnum$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2097,7 +3366,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Schedule$Builder", + "name": "com.google.ads.admanager.v1.TargetedVideoBumperTypeEnum$TargetedVideoBumperType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2106,7 +3375,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Schedule$Frequency", + "name": "com.google.ads.admanager.v1.Targeting", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2115,7 +3384,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Schedule$MonthlySchedule", + "name": "com.google.ads.admanager.v1.Targeting$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2124,7 +3393,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Schedule$MonthlySchedule$Builder", + "name": "com.google.ads.admanager.v1.TaxonomyCategory", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2133,7 +3402,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Schedule$WeeklySchedule", + "name": "com.google.ads.admanager.v1.TaxonomyCategory$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2142,7 +3411,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Schedule$WeeklySchedule$Builder", + "name": "com.google.ads.admanager.v1.TaxonomyTypeEnum", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2151,7 +3420,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ScheduleOptions", + "name": "com.google.ads.admanager.v1.TaxonomyTypeEnum$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2160,7 +3429,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ScheduleOptions$Builder", + "name": "com.google.ads.admanager.v1.TaxonomyTypeEnum$TaxonomyType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2169,7 +3438,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.ScheduleOptions$DeliveryCondition", + "name": "com.google.ads.admanager.v1.Team", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2178,7 +3447,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Size", + "name": "com.google.ads.admanager.v1.Team$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2187,7 +3456,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Size$Builder", + "name": "com.google.ads.admanager.v1.TechnologyTargeting", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2196,7 +3465,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.SizeTypeEnum", + "name": "com.google.ads.admanager.v1.TechnologyTargeting$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2205,7 +3474,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.SizeTypeEnum$Builder", + "name": "com.google.ads.admanager.v1.TimeUnitEnum", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2214,7 +3483,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.SizeTypeEnum$SizeType", + "name": "com.google.ads.admanager.v1.TimeUnitEnum$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2223,7 +3492,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.SmartSizeModeEnum", + "name": "com.google.ads.admanager.v1.TimeUnitEnum$TimeUnit", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2232,7 +3501,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.SmartSizeModeEnum$Builder", + "name": "com.google.ads.admanager.v1.UpdateAdBreakRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2241,7 +3510,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.SmartSizeModeEnum$SmartSizeMode", + "name": "com.google.ads.admanager.v1.UpdateAdBreakRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2250,7 +3519,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.TargetWindowEnum", + "name": "com.google.ads.admanager.v1.UpdateEntitySignalsMappingRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2259,7 +3528,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.TargetWindowEnum$Builder", + "name": "com.google.ads.admanager.v1.UpdateEntitySignalsMappingRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2268,7 +3537,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.TargetWindowEnum$TargetWindow", + "name": "com.google.ads.admanager.v1.UpdatePrivateAuctionDealRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2277,7 +3546,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.TaxonomyCategory", + "name": "com.google.ads.admanager.v1.UpdatePrivateAuctionDealRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2286,7 +3555,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.TaxonomyCategory$Builder", + "name": "com.google.ads.admanager.v1.UpdatePrivateAuctionRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2295,7 +3564,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.TaxonomyTypeEnum", + "name": "com.google.ads.admanager.v1.UpdatePrivateAuctionRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2304,7 +3573,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.TaxonomyTypeEnum$Builder", + "name": "com.google.ads.admanager.v1.UpdateReportRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2313,7 +3582,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.TaxonomyTypeEnum$TaxonomyType", + "name": "com.google.ads.admanager.v1.UpdateReportRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2322,7 +3591,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Team", + "name": "com.google.ads.admanager.v1.User", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2331,7 +3600,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.Team$Builder", + "name": "com.google.ads.admanager.v1.User$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2340,7 +3609,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.TimeUnitEnum", + "name": "com.google.ads.admanager.v1.UserDomainTargeting", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2349,7 +3618,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.TimeUnitEnum$Builder", + "name": "com.google.ads.admanager.v1.UserDomainTargeting$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2358,7 +3627,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.TimeUnitEnum$TimeUnit", + "name": "com.google.ads.admanager.v1.VideoPosition", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2367,7 +3636,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.UpdateEntitySignalsMappingRequest", + "name": "com.google.ads.admanager.v1.VideoPosition$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2376,7 +3645,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.UpdateEntitySignalsMappingRequest$Builder", + "name": "com.google.ads.admanager.v1.VideoPositionEnum", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2385,7 +3654,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.UpdateReportRequest", + "name": "com.google.ads.admanager.v1.VideoPositionEnum$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2394,7 +3663,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.UpdateReportRequest$Builder", + "name": "com.google.ads.admanager.v1.VideoPositionEnum$VideoPosition", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2403,7 +3672,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.User", + "name": "com.google.ads.admanager.v1.VideoPositionTargeting", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2412,7 +3681,7 @@ "allPublicClasses": true }, { - "name": "com.google.ads.admanager.v1.User$Builder", + "name": "com.google.ads.admanager.v1.VideoPositionTargeting$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3842,6 +5111,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.type.Money", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.Money$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.type.TimeOfDay", "queryAllDeclaredConstructors": true, diff --git a/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/AdBreakServiceClientTest.java b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/AdBreakServiceClientTest.java new file mode 100644 index 000000000000..a7f9591366db --- /dev/null +++ b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/AdBreakServiceClientTest.java @@ -0,0 +1,564 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1; + +import static com.google.ads.admanager.v1.AdBreakServiceClient.ListAdBreaksPagedResponse; + +import com.google.ads.admanager.v1.stub.HttpJsonAdBreakServiceStub; +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.common.collect.Lists; +import com.google.protobuf.Duration; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class AdBreakServiceClientTest { + private static MockHttpService mockService; + private static AdBreakServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonAdBreakServiceStub.getMethodDescriptors(), + AdBreakServiceSettings.getDefaultEndpoint()); + AdBreakServiceSettings settings = + AdBreakServiceSettings.newBuilder() + .setTransportChannelProvider( + AdBreakServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = AdBreakServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getAdBreakTest() throws Exception { + AdBreak expectedResponse = + AdBreak.newBuilder() + .setName(AdBreakName.of("[NETWORK_CODE]", "[ASSET_KEY]", "[AD_BREAK]").toString()) + .setAdBreakId("adBreakId763645143") + .setAssetKey("assetKey-373222065") + .setCustomAssetKey("customAssetKey1101792224") + .setExpectedStartTime(Timestamp.newBuilder().build()) + .setDuration(Duration.newBuilder().build()) + .setBreakSequence(-1853489407) + .setPodTemplateName("podTemplateName972272906") + .setCustomParams("customParams284317783") + .setScte35CueOut("scte35CueOut1476410590") + .build(); + mockService.addResponse(expectedResponse); + + AdBreakName name = AdBreakName.of("[NETWORK_CODE]", "[ASSET_KEY]", "[AD_BREAK]"); + + AdBreak actualResponse = client.getAdBreak(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 getAdBreakExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AdBreakName name = AdBreakName.of("[NETWORK_CODE]", "[ASSET_KEY]", "[AD_BREAK]"); + client.getAdBreak(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAdBreakTest2() throws Exception { + AdBreak expectedResponse = + AdBreak.newBuilder() + .setName(AdBreakName.of("[NETWORK_CODE]", "[ASSET_KEY]", "[AD_BREAK]").toString()) + .setAdBreakId("adBreakId763645143") + .setAssetKey("assetKey-373222065") + .setCustomAssetKey("customAssetKey1101792224") + .setExpectedStartTime(Timestamp.newBuilder().build()) + .setDuration(Duration.newBuilder().build()) + .setBreakSequence(-1853489407) + .setPodTemplateName("podTemplateName972272906") + .setCustomParams("customParams284317783") + .setScte35CueOut("scte35CueOut1476410590") + .build(); + mockService.addResponse(expectedResponse); + + String name = + "networks/network-5271/liveStreamEventsByAssetKey/liveStreamEventsByAssetKe-5271/adBreaks/adBreak-5271"; + + AdBreak actualResponse = client.getAdBreak(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 getAdBreakExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "networks/network-5271/liveStreamEventsByAssetKey/liveStreamEventsByAssetKe-5271/adBreaks/adBreak-5271"; + client.getAdBreak(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAdBreaksTest() throws Exception { + AdBreak responsesElement = AdBreak.newBuilder().build(); + ListAdBreaksResponse expectedResponse = + ListAdBreaksResponse.newBuilder() + .setNextPageToken("") + .addAllAdBreaks(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LiveStreamEventName parent = LiveStreamEventName.of("[NETWORK_CODE]", "[LIVE_STREAM_EVENT]"); + + ListAdBreaksPagedResponse pagedListResponse = client.listAdBreaks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAdBreaksList().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 listAdBreaksExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LiveStreamEventName parent = LiveStreamEventName.of("[NETWORK_CODE]", "[LIVE_STREAM_EVENT]"); + client.listAdBreaks(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAdBreaksTest2() throws Exception { + AdBreak responsesElement = AdBreak.newBuilder().build(); + ListAdBreaksResponse expectedResponse = + ListAdBreaksResponse.newBuilder() + .setNextPageToken("") + .addAllAdBreaks(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "networks/network-1947/liveStreamEventsByAssetKey/liveStreamEventsByAssetKe-1947"; + + ListAdBreaksPagedResponse pagedListResponse = client.listAdBreaks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAdBreaksList().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 listAdBreaksExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "networks/network-1947/liveStreamEventsByAssetKey/liveStreamEventsByAssetKe-1947"; + client.listAdBreaks(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAdBreakTest() throws Exception { + AdBreak expectedResponse = + AdBreak.newBuilder() + .setName(AdBreakName.of("[NETWORK_CODE]", "[ASSET_KEY]", "[AD_BREAK]").toString()) + .setAdBreakId("adBreakId763645143") + .setAssetKey("assetKey-373222065") + .setCustomAssetKey("customAssetKey1101792224") + .setExpectedStartTime(Timestamp.newBuilder().build()) + .setDuration(Duration.newBuilder().build()) + .setBreakSequence(-1853489407) + .setPodTemplateName("podTemplateName972272906") + .setCustomParams("customParams284317783") + .setScte35CueOut("scte35CueOut1476410590") + .build(); + mockService.addResponse(expectedResponse); + + LiveStreamEventName parent = LiveStreamEventName.of("[NETWORK_CODE]", "[LIVE_STREAM_EVENT]"); + AdBreak adBreak = AdBreak.newBuilder().build(); + + AdBreak actualResponse = client.createAdBreak(parent, adBreak); + 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 createAdBreakExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LiveStreamEventName parent = LiveStreamEventName.of("[NETWORK_CODE]", "[LIVE_STREAM_EVENT]"); + AdBreak adBreak = AdBreak.newBuilder().build(); + client.createAdBreak(parent, adBreak); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAdBreakTest2() throws Exception { + AdBreak expectedResponse = + AdBreak.newBuilder() + .setName(AdBreakName.of("[NETWORK_CODE]", "[ASSET_KEY]", "[AD_BREAK]").toString()) + .setAdBreakId("adBreakId763645143") + .setAssetKey("assetKey-373222065") + .setCustomAssetKey("customAssetKey1101792224") + .setExpectedStartTime(Timestamp.newBuilder().build()) + .setDuration(Duration.newBuilder().build()) + .setBreakSequence(-1853489407) + .setPodTemplateName("podTemplateName972272906") + .setCustomParams("customParams284317783") + .setScte35CueOut("scte35CueOut1476410590") + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "networks/network-1947/liveStreamEventsByAssetKey/liveStreamEventsByAssetKe-1947"; + AdBreak adBreak = AdBreak.newBuilder().build(); + + AdBreak actualResponse = client.createAdBreak(parent, adBreak); + 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 createAdBreakExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "networks/network-1947/liveStreamEventsByAssetKey/liveStreamEventsByAssetKe-1947"; + AdBreak adBreak = AdBreak.newBuilder().build(); + client.createAdBreak(parent, adBreak); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateAdBreakTest() throws Exception { + AdBreak expectedResponse = + AdBreak.newBuilder() + .setName(AdBreakName.of("[NETWORK_CODE]", "[ASSET_KEY]", "[AD_BREAK]").toString()) + .setAdBreakId("adBreakId763645143") + .setAssetKey("assetKey-373222065") + .setCustomAssetKey("customAssetKey1101792224") + .setExpectedStartTime(Timestamp.newBuilder().build()) + .setDuration(Duration.newBuilder().build()) + .setBreakSequence(-1853489407) + .setPodTemplateName("podTemplateName972272906") + .setCustomParams("customParams284317783") + .setScte35CueOut("scte35CueOut1476410590") + .build(); + mockService.addResponse(expectedResponse); + + AdBreak adBreak = + AdBreak.newBuilder() + .setName(AdBreakName.of("[NETWORK_CODE]", "[ASSET_KEY]", "[AD_BREAK]").toString()) + .setAdBreakId("adBreakId763645143") + .setAssetKey("assetKey-373222065") + .setCustomAssetKey("customAssetKey1101792224") + .setExpectedStartTime(Timestamp.newBuilder().build()) + .setDuration(Duration.newBuilder().build()) + .setBreakSequence(-1853489407) + .setPodTemplateName("podTemplateName972272906") + .setCustomParams("customParams284317783") + .setScte35CueOut("scte35CueOut1476410590") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + AdBreak actualResponse = client.updateAdBreak(adBreak, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateAdBreakExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AdBreak adBreak = + AdBreak.newBuilder() + .setName(AdBreakName.of("[NETWORK_CODE]", "[ASSET_KEY]", "[AD_BREAK]").toString()) + .setAdBreakId("adBreakId763645143") + .setAssetKey("assetKey-373222065") + .setCustomAssetKey("customAssetKey1101792224") + .setExpectedStartTime(Timestamp.newBuilder().build()) + .setDuration(Duration.newBuilder().build()) + .setBreakSequence(-1853489407) + .setPodTemplateName("podTemplateName972272906") + .setCustomParams("customParams284317783") + .setScte35CueOut("scte35CueOut1476410590") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateAdBreak(adBreak, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAdBreakTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + AdBreakName name = AdBreakName.of("[NETWORK_CODE]", "[ASSET_KEY]", "[AD_BREAK]"); + + client.deleteAdBreak(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteAdBreakExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AdBreakName name = AdBreakName.of("[NETWORK_CODE]", "[ASSET_KEY]", "[AD_BREAK]"); + client.deleteAdBreak(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAdBreakTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "networks/network-5271/liveStreamEventsByAssetKey/liveStreamEventsByAssetKe-5271/adBreaks/adBreak-5271"; + + client.deleteAdBreak(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteAdBreakExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "networks/network-5271/liveStreamEventsByAssetKey/liveStreamEventsByAssetKe-5271/adBreaks/adBreak-5271"; + client.deleteAdBreak(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/BandwidthGroupServiceClientTest.java b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/BandwidthGroupServiceClientTest.java new file mode 100644 index 000000000000..66699c7112db --- /dev/null +++ b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/BandwidthGroupServiceClientTest.java @@ -0,0 +1,267 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1; + +import static com.google.ads.admanager.v1.BandwidthGroupServiceClient.ListBandwidthGroupsPagedResponse; + +import com.google.ads.admanager.v1.stub.HttpJsonBandwidthGroupServiceStub; +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 java.io.IOException; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class BandwidthGroupServiceClientTest { + private static MockHttpService mockService; + private static BandwidthGroupServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonBandwidthGroupServiceStub.getMethodDescriptors(), + BandwidthGroupServiceSettings.getDefaultEndpoint()); + BandwidthGroupServiceSettings settings = + BandwidthGroupServiceSettings.newBuilder() + .setTransportChannelProvider( + BandwidthGroupServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = BandwidthGroupServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getBandwidthGroupTest() throws Exception { + BandwidthGroup expectedResponse = + BandwidthGroup.newBuilder() + .setName(BandwidthGroupName.of("[NETWORK_CODE]", "[BANDWIDTH_GROUP]").toString()) + .setDisplayName("displayName1714148973") + .build(); + mockService.addResponse(expectedResponse); + + BandwidthGroupName name = BandwidthGroupName.of("[NETWORK_CODE]", "[BANDWIDTH_GROUP]"); + + BandwidthGroup actualResponse = client.getBandwidthGroup(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 getBandwidthGroupExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BandwidthGroupName name = BandwidthGroupName.of("[NETWORK_CODE]", "[BANDWIDTH_GROUP]"); + client.getBandwidthGroup(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBandwidthGroupTest2() throws Exception { + BandwidthGroup expectedResponse = + BandwidthGroup.newBuilder() + .setName(BandwidthGroupName.of("[NETWORK_CODE]", "[BANDWIDTH_GROUP]").toString()) + .setDisplayName("displayName1714148973") + .build(); + mockService.addResponse(expectedResponse); + + String name = "networks/network-4348/bandwidthGroups/bandwidthGroup-4348"; + + BandwidthGroup actualResponse = client.getBandwidthGroup(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 getBandwidthGroupExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "networks/network-4348/bandwidthGroups/bandwidthGroup-4348"; + client.getBandwidthGroup(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBandwidthGroupsTest() throws Exception { + BandwidthGroup responsesElement = BandwidthGroup.newBuilder().build(); + ListBandwidthGroupsResponse expectedResponse = + ListBandwidthGroupsResponse.newBuilder() + .setNextPageToken("") + .addAllBandwidthGroups(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + + ListBandwidthGroupsPagedResponse pagedListResponse = client.listBandwidthGroups(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBandwidthGroupsList().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 listBandwidthGroupsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + client.listBandwidthGroups(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBandwidthGroupsTest2() throws Exception { + BandwidthGroup responsesElement = BandwidthGroup.newBuilder().build(); + ListBandwidthGroupsResponse expectedResponse = + ListBandwidthGroupsResponse.newBuilder() + .setNextPageToken("") + .addAllBandwidthGroups(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + + ListBandwidthGroupsPagedResponse pagedListResponse = client.listBandwidthGroups(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBandwidthGroupsList().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 listBandwidthGroupsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + client.listBandwidthGroups(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/CompanyServiceClientTest.java b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/CompanyServiceClientTest.java index 05a89dbeae73..ed304b0f0b44 100644 --- a/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/CompanyServiceClientTest.java +++ b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/CompanyServiceClientTest.java @@ -93,8 +93,8 @@ public void getCompanyTest() throws Exception { .addAllAppliedLabels(new ArrayList()) .setPrimaryContact("primaryContact-532068418") .addAllAppliedTeams(new ArrayList()) - .setUpdateTime(Timestamp.newBuilder().build()) .setThirdPartyCompanyId(2003341038) + .setUpdateTime(Timestamp.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -150,8 +150,8 @@ public void getCompanyTest2() throws Exception { .addAllAppliedLabels(new ArrayList()) .setPrimaryContact("primaryContact-532068418") .addAllAppliedTeams(new ArrayList()) - .setUpdateTime(Timestamp.newBuilder().build()) .setThirdPartyCompanyId(2003341038) + .setUpdateTime(Timestamp.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); diff --git a/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/CustomTargetingValueServiceClientTest.java b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/CustomTargetingValueServiceClientTest.java index dffbfcc97a88..399048c775e3 100644 --- a/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/CustomTargetingValueServiceClientTest.java +++ b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/CustomTargetingValueServiceClientTest.java @@ -80,17 +80,17 @@ public void getCustomTargetingValueTest() throws Exception { CustomTargetingValue expectedResponse = CustomTargetingValue.newBuilder() .setName( - CustomTargetingValueName.of( - "[NETWORK_CODE]", "[CUSTOM_TARGETING_KEY]", "[CUSTOM_TARGETING_VALUE]") + CustomTargetingValueName.of("[NETWORK_CODE]", "[CUSTOM_TARGETING_VALUE]") .toString()) + .setCustomTargetingKey( + CustomTargetingKeyName.of("[NETWORK_CODE]", "[CUSTOM_TARGETING_KEY]").toString()) .setAdTagName("adTagName-926580830") .setDisplayName("displayName1714148973") .build(); mockService.addResponse(expectedResponse); CustomTargetingValueName name = - CustomTargetingValueName.of( - "[NETWORK_CODE]", "[CUSTOM_TARGETING_KEY]", "[CUSTOM_TARGETING_VALUE]"); + CustomTargetingValueName.of("[NETWORK_CODE]", "[CUSTOM_TARGETING_VALUE]"); CustomTargetingValue actualResponse = client.getCustomTargetingValue(name); Assert.assertEquals(expectedResponse, actualResponse); @@ -119,8 +119,7 @@ public void getCustomTargetingValueExceptionTest() throws Exception { try { CustomTargetingValueName name = - CustomTargetingValueName.of( - "[NETWORK_CODE]", "[CUSTOM_TARGETING_KEY]", "[CUSTOM_TARGETING_VALUE]"); + CustomTargetingValueName.of("[NETWORK_CODE]", "[CUSTOM_TARGETING_VALUE]"); client.getCustomTargetingValue(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -133,16 +132,16 @@ public void getCustomTargetingValueTest2() throws Exception { CustomTargetingValue expectedResponse = CustomTargetingValue.newBuilder() .setName( - CustomTargetingValueName.of( - "[NETWORK_CODE]", "[CUSTOM_TARGETING_KEY]", "[CUSTOM_TARGETING_VALUE]") + CustomTargetingValueName.of("[NETWORK_CODE]", "[CUSTOM_TARGETING_VALUE]") .toString()) + .setCustomTargetingKey( + CustomTargetingKeyName.of("[NETWORK_CODE]", "[CUSTOM_TARGETING_KEY]").toString()) .setAdTagName("adTagName-926580830") .setDisplayName("displayName1714148973") .build(); mockService.addResponse(expectedResponse); - String name = - "networks/network-4153/customTargetingKeys/customTargetingKey-4153/customTargetingValues/customTargetingValue-4153"; + String name = "networks/network-3047/customTargetingValues/customTargetingValue-3047"; CustomTargetingValue actualResponse = client.getCustomTargetingValue(name); Assert.assertEquals(expectedResponse, actualResponse); @@ -170,8 +169,7 @@ public void getCustomTargetingValueExceptionTest2() throws Exception { mockService.addException(exception); try { - String name = - "networks/network-4153/customTargetingKeys/customTargetingKey-4153/customTargetingValues/customTargetingValue-4153"; + String name = "networks/network-3047/customTargetingValues/customTargetingValue-3047"; client.getCustomTargetingValue(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -189,8 +187,7 @@ public void listCustomTargetingValuesTest() throws Exception { .build(); mockService.addResponse(expectedResponse); - CustomTargetingKeyName parent = - CustomTargetingKeyName.of("[NETWORK_CODE]", "[CUSTOM_TARGETING_KEY]"); + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); ListCustomTargetingValuesPagedResponse pagedListResponse = client.listCustomTargetingValues(parent); @@ -223,8 +220,7 @@ public void listCustomTargetingValuesExceptionTest() throws Exception { mockService.addException(exception); try { - CustomTargetingKeyName parent = - CustomTargetingKeyName.of("[NETWORK_CODE]", "[CUSTOM_TARGETING_KEY]"); + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); client.listCustomTargetingValues(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -242,7 +238,7 @@ public void listCustomTargetingValuesTest2() throws Exception { .build(); mockService.addResponse(expectedResponse); - String parent = "networks/network-3002/customTargetingKeys/customTargetingKey-3002"; + String parent = "networks/network-5450"; ListCustomTargetingValuesPagedResponse pagedListResponse = client.listCustomTargetingValues(parent); @@ -275,7 +271,7 @@ public void listCustomTargetingValuesExceptionTest2() throws Exception { mockService.addException(exception); try { - String parent = "networks/network-3002/customTargetingKeys/customTargetingKey-3002"; + String parent = "networks/network-5450"; client.listCustomTargetingValues(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { diff --git a/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/DeviceCategoryServiceClientTest.java b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/DeviceCategoryServiceClientTest.java new file mode 100644 index 000000000000..716f44a7aa6a --- /dev/null +++ b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/DeviceCategoryServiceClientTest.java @@ -0,0 +1,267 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1; + +import static com.google.ads.admanager.v1.DeviceCategoryServiceClient.ListDeviceCategoriesPagedResponse; + +import com.google.ads.admanager.v1.stub.HttpJsonDeviceCategoryServiceStub; +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 java.io.IOException; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class DeviceCategoryServiceClientTest { + private static MockHttpService mockService; + private static DeviceCategoryServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonDeviceCategoryServiceStub.getMethodDescriptors(), + DeviceCategoryServiceSettings.getDefaultEndpoint()); + DeviceCategoryServiceSettings settings = + DeviceCategoryServiceSettings.newBuilder() + .setTransportChannelProvider( + DeviceCategoryServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = DeviceCategoryServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getDeviceCategoryTest() throws Exception { + DeviceCategory expectedResponse = + DeviceCategory.newBuilder() + .setName(DeviceCategoryName.of("[NETWORK_CODE]", "[DEVICE_CATEGORY]").toString()) + .setDisplayName("displayName1714148973") + .build(); + mockService.addResponse(expectedResponse); + + DeviceCategoryName name = DeviceCategoryName.of("[NETWORK_CODE]", "[DEVICE_CATEGORY]"); + + DeviceCategory actualResponse = client.getDeviceCategory(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 getDeviceCategoryExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DeviceCategoryName name = DeviceCategoryName.of("[NETWORK_CODE]", "[DEVICE_CATEGORY]"); + client.getDeviceCategory(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDeviceCategoryTest2() throws Exception { + DeviceCategory expectedResponse = + DeviceCategory.newBuilder() + .setName(DeviceCategoryName.of("[NETWORK_CODE]", "[DEVICE_CATEGORY]").toString()) + .setDisplayName("displayName1714148973") + .build(); + mockService.addResponse(expectedResponse); + + String name = "networks/network-1919/deviceCategories/deviceCategorie-1919"; + + DeviceCategory actualResponse = client.getDeviceCategory(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 getDeviceCategoryExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "networks/network-1919/deviceCategories/deviceCategorie-1919"; + client.getDeviceCategory(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDeviceCategoriesTest() throws Exception { + DeviceCategory responsesElement = DeviceCategory.newBuilder().build(); + ListDeviceCategoriesResponse expectedResponse = + ListDeviceCategoriesResponse.newBuilder() + .setNextPageToken("") + .addAllDeviceCategories(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + + ListDeviceCategoriesPagedResponse pagedListResponse = client.listDeviceCategories(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDeviceCategoriesList().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 listDeviceCategoriesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + client.listDeviceCategories(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDeviceCategoriesTest2() throws Exception { + DeviceCategory responsesElement = DeviceCategory.newBuilder().build(); + ListDeviceCategoriesResponse expectedResponse = + ListDeviceCategoriesResponse.newBuilder() + .setNextPageToken("") + .addAllDeviceCategories(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + + ListDeviceCategoriesPagedResponse pagedListResponse = client.listDeviceCategories(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDeviceCategoriesList().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 listDeviceCategoriesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + client.listDeviceCategories(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/GeoTargetServiceClientTest.java b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/GeoTargetServiceClientTest.java new file mode 100644 index 000000000000..e23537b98203 --- /dev/null +++ b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/GeoTargetServiceClientTest.java @@ -0,0 +1,278 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1; + +import static com.google.ads.admanager.v1.GeoTargetServiceClient.ListGeoTargetsPagedResponse; + +import com.google.ads.admanager.v1.stub.HttpJsonGeoTargetServiceStub; +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 java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class GeoTargetServiceClientTest { + private static MockHttpService mockService; + private static GeoTargetServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonGeoTargetServiceStub.getMethodDescriptors(), + GeoTargetServiceSettings.getDefaultEndpoint()); + GeoTargetServiceSettings settings = + GeoTargetServiceSettings.newBuilder() + .setTransportChannelProvider( + GeoTargetServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = GeoTargetServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getGeoTargetTest() throws Exception { + GeoTarget expectedResponse = + GeoTarget.newBuilder() + .setName(GeoTargetName.of("[NETWORK_CODE]", "[GEO_TARGET]").toString()) + .setDisplayName("displayName1714148973") + .setCanonicalParent(GeoTargetName.of("[NETWORK_CODE]", "[GEO_TARGET]").toString()) + .addAllParentNames(new ArrayList()) + .setRegionCode("regionCode-1991004415") + .setType("type3575610") + .setTargetable(true) + .build(); + mockService.addResponse(expectedResponse); + + GeoTargetName name = GeoTargetName.of("[NETWORK_CODE]", "[GEO_TARGET]"); + + GeoTarget actualResponse = client.getGeoTarget(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 getGeoTargetExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GeoTargetName name = GeoTargetName.of("[NETWORK_CODE]", "[GEO_TARGET]"); + client.getGeoTarget(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getGeoTargetTest2() throws Exception { + GeoTarget expectedResponse = + GeoTarget.newBuilder() + .setName(GeoTargetName.of("[NETWORK_CODE]", "[GEO_TARGET]").toString()) + .setDisplayName("displayName1714148973") + .setCanonicalParent(GeoTargetName.of("[NETWORK_CODE]", "[GEO_TARGET]").toString()) + .addAllParentNames(new ArrayList()) + .setRegionCode("regionCode-1991004415") + .setType("type3575610") + .setTargetable(true) + .build(); + mockService.addResponse(expectedResponse); + + String name = "networks/network-9312/geoTargets/geoTarget-9312"; + + GeoTarget actualResponse = client.getGeoTarget(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 getGeoTargetExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "networks/network-9312/geoTargets/geoTarget-9312"; + client.getGeoTarget(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listGeoTargetsTest() throws Exception { + GeoTarget responsesElement = GeoTarget.newBuilder().build(); + ListGeoTargetsResponse expectedResponse = + ListGeoTargetsResponse.newBuilder() + .setNextPageToken("") + .addAllGeoTargets(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + + ListGeoTargetsPagedResponse pagedListResponse = client.listGeoTargets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGeoTargetsList().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 listGeoTargetsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + client.listGeoTargets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listGeoTargetsTest2() throws Exception { + GeoTarget responsesElement = GeoTarget.newBuilder().build(); + ListGeoTargetsResponse expectedResponse = + ListGeoTargetsResponse.newBuilder() + .setNextPageToken("") + .addAllGeoTargets(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + + ListGeoTargetsPagedResponse pagedListResponse = client.listGeoTargets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGeoTargetsList().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 listGeoTargetsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + client.listGeoTargets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/OperatingSystemServiceClientTest.java b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/OperatingSystemServiceClientTest.java new file mode 100644 index 000000000000..9fe8fd7beb26 --- /dev/null +++ b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/OperatingSystemServiceClientTest.java @@ -0,0 +1,267 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1; + +import static com.google.ads.admanager.v1.OperatingSystemServiceClient.ListOperatingSystemsPagedResponse; + +import com.google.ads.admanager.v1.stub.HttpJsonOperatingSystemServiceStub; +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 java.io.IOException; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class OperatingSystemServiceClientTest { + private static MockHttpService mockService; + private static OperatingSystemServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonOperatingSystemServiceStub.getMethodDescriptors(), + OperatingSystemServiceSettings.getDefaultEndpoint()); + OperatingSystemServiceSettings settings = + OperatingSystemServiceSettings.newBuilder() + .setTransportChannelProvider( + OperatingSystemServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = OperatingSystemServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getOperatingSystemTest() throws Exception { + OperatingSystem expectedResponse = + OperatingSystem.newBuilder() + .setName(OperatingSystemName.of("[NETWORK_CODE]", "[OPERATING_SYSTEM]").toString()) + .setDisplayName("displayName1714148973") + .build(); + mockService.addResponse(expectedResponse); + + OperatingSystemName name = OperatingSystemName.of("[NETWORK_CODE]", "[OPERATING_SYSTEM]"); + + OperatingSystem actualResponse = client.getOperatingSystem(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 getOperatingSystemExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OperatingSystemName name = OperatingSystemName.of("[NETWORK_CODE]", "[OPERATING_SYSTEM]"); + client.getOperatingSystem(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getOperatingSystemTest2() throws Exception { + OperatingSystem expectedResponse = + OperatingSystem.newBuilder() + .setName(OperatingSystemName.of("[NETWORK_CODE]", "[OPERATING_SYSTEM]").toString()) + .setDisplayName("displayName1714148973") + .build(); + mockService.addResponse(expectedResponse); + + String name = "networks/network-878/operatingSystems/operatingSystem-878"; + + OperatingSystem actualResponse = client.getOperatingSystem(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 getOperatingSystemExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "networks/network-878/operatingSystems/operatingSystem-878"; + client.getOperatingSystem(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listOperatingSystemsTest() throws Exception { + OperatingSystem responsesElement = OperatingSystem.newBuilder().build(); + ListOperatingSystemsResponse expectedResponse = + ListOperatingSystemsResponse.newBuilder() + .setNextPageToken("") + .addAllOperatingSystems(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + + ListOperatingSystemsPagedResponse pagedListResponse = client.listOperatingSystems(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getOperatingSystemsList().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 listOperatingSystemsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + client.listOperatingSystems(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listOperatingSystemsTest2() throws Exception { + OperatingSystem responsesElement = OperatingSystem.newBuilder().build(); + ListOperatingSystemsResponse expectedResponse = + ListOperatingSystemsResponse.newBuilder() + .setNextPageToken("") + .addAllOperatingSystems(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + + ListOperatingSystemsPagedResponse pagedListResponse = client.listOperatingSystems(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getOperatingSystemsList().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 listOperatingSystemsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + client.listOperatingSystems(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/OperatingSystemVersionServiceClientTest.java b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/OperatingSystemVersionServiceClientTest.java new file mode 100644 index 000000000000..a8a28fbba32a --- /dev/null +++ b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/OperatingSystemVersionServiceClientTest.java @@ -0,0 +1,279 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1; + +import static com.google.ads.admanager.v1.OperatingSystemVersionServiceClient.ListOperatingSystemVersionsPagedResponse; + +import com.google.ads.admanager.v1.stub.HttpJsonOperatingSystemVersionServiceStub; +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 java.io.IOException; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class OperatingSystemVersionServiceClientTest { + private static MockHttpService mockService; + private static OperatingSystemVersionServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonOperatingSystemVersionServiceStub.getMethodDescriptors(), + OperatingSystemVersionServiceSettings.getDefaultEndpoint()); + OperatingSystemVersionServiceSettings settings = + OperatingSystemVersionServiceSettings.newBuilder() + .setTransportChannelProvider( + OperatingSystemVersionServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = OperatingSystemVersionServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getOperatingSystemVersionTest() throws Exception { + OperatingSystemVersion expectedResponse = + OperatingSystemVersion.newBuilder() + .setName( + OperatingSystemVersionName.of("[NETWORK_CODE]", "[OPERATING_SYSTEM_VERSION]") + .toString()) + .setMajorVersion(-1298026414) + .setMinorVersion(1136764494) + .setMicroVersion(-33751459) + .build(); + mockService.addResponse(expectedResponse); + + OperatingSystemVersionName name = + OperatingSystemVersionName.of("[NETWORK_CODE]", "[OPERATING_SYSTEM_VERSION]"); + + OperatingSystemVersion actualResponse = client.getOperatingSystemVersion(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 getOperatingSystemVersionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OperatingSystemVersionName name = + OperatingSystemVersionName.of("[NETWORK_CODE]", "[OPERATING_SYSTEM_VERSION]"); + client.getOperatingSystemVersion(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getOperatingSystemVersionTest2() throws Exception { + OperatingSystemVersion expectedResponse = + OperatingSystemVersion.newBuilder() + .setName( + OperatingSystemVersionName.of("[NETWORK_CODE]", "[OPERATING_SYSTEM_VERSION]") + .toString()) + .setMajorVersion(-1298026414) + .setMinorVersion(1136764494) + .setMicroVersion(-33751459) + .build(); + mockService.addResponse(expectedResponse); + + String name = "networks/network-5058/operatingSystemVersions/operatingSystemVersion-5058"; + + OperatingSystemVersion actualResponse = client.getOperatingSystemVersion(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 getOperatingSystemVersionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "networks/network-5058/operatingSystemVersions/operatingSystemVersion-5058"; + client.getOperatingSystemVersion(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listOperatingSystemVersionsTest() throws Exception { + OperatingSystemVersion responsesElement = OperatingSystemVersion.newBuilder().build(); + ListOperatingSystemVersionsResponse expectedResponse = + ListOperatingSystemVersionsResponse.newBuilder() + .setNextPageToken("") + .addAllOperatingSystemVersions(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + + ListOperatingSystemVersionsPagedResponse pagedListResponse = + client.listOperatingSystemVersions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getOperatingSystemVersionsList().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 listOperatingSystemVersionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + client.listOperatingSystemVersions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listOperatingSystemVersionsTest2() throws Exception { + OperatingSystemVersion responsesElement = OperatingSystemVersion.newBuilder().build(); + ListOperatingSystemVersionsResponse expectedResponse = + ListOperatingSystemVersionsResponse.newBuilder() + .setNextPageToken("") + .addAllOperatingSystemVersions(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + + ListOperatingSystemVersionsPagedResponse pagedListResponse = + client.listOperatingSystemVersions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getOperatingSystemVersionsList().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 listOperatingSystemVersionsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + client.listOperatingSystemVersions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/PrivateAuctionDealServiceClientTest.java b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/PrivateAuctionDealServiceClientTest.java new file mode 100644 index 000000000000..ae5b91535dec --- /dev/null +++ b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/PrivateAuctionDealServiceClientTest.java @@ -0,0 +1,521 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1; + +import static com.google.ads.admanager.v1.PrivateAuctionDealServiceClient.ListPrivateAuctionDealsPagedResponse; + +import com.google.ads.admanager.v1.stub.HttpJsonPrivateAuctionDealServiceStub; +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.common.collect.Lists; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import com.google.type.Money; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class PrivateAuctionDealServiceClientTest { + private static MockHttpService mockService; + private static PrivateAuctionDealServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonPrivateAuctionDealServiceStub.getMethodDescriptors(), + PrivateAuctionDealServiceSettings.getDefaultEndpoint()); + PrivateAuctionDealServiceSettings settings = + PrivateAuctionDealServiceSettings.newBuilder() + .setTransportChannelProvider( + PrivateAuctionDealServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = PrivateAuctionDealServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getPrivateAuctionDealTest() throws Exception { + PrivateAuctionDeal expectedResponse = + PrivateAuctionDeal.newBuilder() + .setName( + PrivateAuctionDealName.of("[NETWORK_CODE]", "[PRIVATE_AUCTION_DEAL]").toString()) + .setPrivateAuctionDealId(1870574870) + .setPrivateAuctionId(-20317997) + .setPrivateAuctionDisplayName("privateAuctionDisplayName1032179469") + .setBuyerAccountId(-994282887) + .setExternalDealId(-66314918) + .setTargeting(Targeting.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setFloorPrice(Money.newBuilder().build()) + .addAllCreativeSizes(new ArrayList()) + .setAuctionPriorityEnabled(true) + .setBlockOverrideEnabled(true) + .setBuyerData(PrivateAuctionDeal.BuyerData.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + PrivateAuctionDealName name = + PrivateAuctionDealName.of("[NETWORK_CODE]", "[PRIVATE_AUCTION_DEAL]"); + + PrivateAuctionDeal actualResponse = client.getPrivateAuctionDeal(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 getPrivateAuctionDealExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PrivateAuctionDealName name = + PrivateAuctionDealName.of("[NETWORK_CODE]", "[PRIVATE_AUCTION_DEAL]"); + client.getPrivateAuctionDeal(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getPrivateAuctionDealTest2() throws Exception { + PrivateAuctionDeal expectedResponse = + PrivateAuctionDeal.newBuilder() + .setName( + PrivateAuctionDealName.of("[NETWORK_CODE]", "[PRIVATE_AUCTION_DEAL]").toString()) + .setPrivateAuctionDealId(1870574870) + .setPrivateAuctionId(-20317997) + .setPrivateAuctionDisplayName("privateAuctionDisplayName1032179469") + .setBuyerAccountId(-994282887) + .setExternalDealId(-66314918) + .setTargeting(Targeting.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setFloorPrice(Money.newBuilder().build()) + .addAllCreativeSizes(new ArrayList()) + .setAuctionPriorityEnabled(true) + .setBlockOverrideEnabled(true) + .setBuyerData(PrivateAuctionDeal.BuyerData.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "networks/network-2898/privateAuctionDeals/privateAuctionDeal-2898"; + + PrivateAuctionDeal actualResponse = client.getPrivateAuctionDeal(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 getPrivateAuctionDealExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "networks/network-2898/privateAuctionDeals/privateAuctionDeal-2898"; + client.getPrivateAuctionDeal(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPrivateAuctionDealsTest() throws Exception { + PrivateAuctionDeal responsesElement = PrivateAuctionDeal.newBuilder().build(); + ListPrivateAuctionDealsResponse expectedResponse = + ListPrivateAuctionDealsResponse.newBuilder() + .setNextPageToken("") + .addAllPrivateAuctionDeals(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + + ListPrivateAuctionDealsPagedResponse pagedListResponse = client.listPrivateAuctionDeals(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPrivateAuctionDealsList().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 listPrivateAuctionDealsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + client.listPrivateAuctionDeals(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPrivateAuctionDealsTest2() throws Exception { + PrivateAuctionDeal responsesElement = PrivateAuctionDeal.newBuilder().build(); + ListPrivateAuctionDealsResponse expectedResponse = + ListPrivateAuctionDealsResponse.newBuilder() + .setNextPageToken("") + .addAllPrivateAuctionDeals(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + + ListPrivateAuctionDealsPagedResponse pagedListResponse = client.listPrivateAuctionDeals(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPrivateAuctionDealsList().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 listPrivateAuctionDealsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + client.listPrivateAuctionDeals(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createPrivateAuctionDealTest() throws Exception { + PrivateAuctionDeal expectedResponse = + PrivateAuctionDeal.newBuilder() + .setName( + PrivateAuctionDealName.of("[NETWORK_CODE]", "[PRIVATE_AUCTION_DEAL]").toString()) + .setPrivateAuctionDealId(1870574870) + .setPrivateAuctionId(-20317997) + .setPrivateAuctionDisplayName("privateAuctionDisplayName1032179469") + .setBuyerAccountId(-994282887) + .setExternalDealId(-66314918) + .setTargeting(Targeting.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setFloorPrice(Money.newBuilder().build()) + .addAllCreativeSizes(new ArrayList()) + .setAuctionPriorityEnabled(true) + .setBlockOverrideEnabled(true) + .setBuyerData(PrivateAuctionDeal.BuyerData.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + PrivateAuctionDeal privateAuctionDeal = PrivateAuctionDeal.newBuilder().build(); + + PrivateAuctionDeal actualResponse = client.createPrivateAuctionDeal(parent, privateAuctionDeal); + 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 createPrivateAuctionDealExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + PrivateAuctionDeal privateAuctionDeal = PrivateAuctionDeal.newBuilder().build(); + client.createPrivateAuctionDeal(parent, privateAuctionDeal); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createPrivateAuctionDealTest2() throws Exception { + PrivateAuctionDeal expectedResponse = + PrivateAuctionDeal.newBuilder() + .setName( + PrivateAuctionDealName.of("[NETWORK_CODE]", "[PRIVATE_AUCTION_DEAL]").toString()) + .setPrivateAuctionDealId(1870574870) + .setPrivateAuctionId(-20317997) + .setPrivateAuctionDisplayName("privateAuctionDisplayName1032179469") + .setBuyerAccountId(-994282887) + .setExternalDealId(-66314918) + .setTargeting(Targeting.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setFloorPrice(Money.newBuilder().build()) + .addAllCreativeSizes(new ArrayList()) + .setAuctionPriorityEnabled(true) + .setBlockOverrideEnabled(true) + .setBuyerData(PrivateAuctionDeal.BuyerData.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + PrivateAuctionDeal privateAuctionDeal = PrivateAuctionDeal.newBuilder().build(); + + PrivateAuctionDeal actualResponse = client.createPrivateAuctionDeal(parent, privateAuctionDeal); + 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 createPrivateAuctionDealExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + PrivateAuctionDeal privateAuctionDeal = PrivateAuctionDeal.newBuilder().build(); + client.createPrivateAuctionDeal(parent, privateAuctionDeal); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updatePrivateAuctionDealTest() throws Exception { + PrivateAuctionDeal expectedResponse = + PrivateAuctionDeal.newBuilder() + .setName( + PrivateAuctionDealName.of("[NETWORK_CODE]", "[PRIVATE_AUCTION_DEAL]").toString()) + .setPrivateAuctionDealId(1870574870) + .setPrivateAuctionId(-20317997) + .setPrivateAuctionDisplayName("privateAuctionDisplayName1032179469") + .setBuyerAccountId(-994282887) + .setExternalDealId(-66314918) + .setTargeting(Targeting.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setFloorPrice(Money.newBuilder().build()) + .addAllCreativeSizes(new ArrayList()) + .setAuctionPriorityEnabled(true) + .setBlockOverrideEnabled(true) + .setBuyerData(PrivateAuctionDeal.BuyerData.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + PrivateAuctionDeal privateAuctionDeal = + PrivateAuctionDeal.newBuilder() + .setName( + PrivateAuctionDealName.of("[NETWORK_CODE]", "[PRIVATE_AUCTION_DEAL]").toString()) + .setPrivateAuctionDealId(1870574870) + .setPrivateAuctionId(-20317997) + .setPrivateAuctionDisplayName("privateAuctionDisplayName1032179469") + .setBuyerAccountId(-994282887) + .setExternalDealId(-66314918) + .setTargeting(Targeting.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setFloorPrice(Money.newBuilder().build()) + .addAllCreativeSizes(new ArrayList()) + .setAuctionPriorityEnabled(true) + .setBlockOverrideEnabled(true) + .setBuyerData(PrivateAuctionDeal.BuyerData.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + PrivateAuctionDeal actualResponse = + client.updatePrivateAuctionDeal(privateAuctionDeal, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updatePrivateAuctionDealExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PrivateAuctionDeal privateAuctionDeal = + PrivateAuctionDeal.newBuilder() + .setName( + PrivateAuctionDealName.of("[NETWORK_CODE]", "[PRIVATE_AUCTION_DEAL]").toString()) + .setPrivateAuctionDealId(1870574870) + .setPrivateAuctionId(-20317997) + .setPrivateAuctionDisplayName("privateAuctionDisplayName1032179469") + .setBuyerAccountId(-994282887) + .setExternalDealId(-66314918) + .setTargeting(Targeting.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setFloorPrice(Money.newBuilder().build()) + .addAllCreativeSizes(new ArrayList()) + .setAuctionPriorityEnabled(true) + .setBlockOverrideEnabled(true) + .setBuyerData(PrivateAuctionDeal.BuyerData.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updatePrivateAuctionDeal(privateAuctionDeal, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/PrivateAuctionServiceClientTest.java b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/PrivateAuctionServiceClientTest.java new file mode 100644 index 000000000000..35aaad14f078 --- /dev/null +++ b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/PrivateAuctionServiceClientTest.java @@ -0,0 +1,461 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1; + +import static com.google.ads.admanager.v1.PrivateAuctionServiceClient.ListPrivateAuctionsPagedResponse; + +import com.google.ads.admanager.v1.stub.HttpJsonPrivateAuctionServiceStub; +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.common.collect.Lists; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class PrivateAuctionServiceClientTest { + private static MockHttpService mockService; + private static PrivateAuctionServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonPrivateAuctionServiceStub.getMethodDescriptors(), + PrivateAuctionServiceSettings.getDefaultEndpoint()); + PrivateAuctionServiceSettings settings = + PrivateAuctionServiceSettings.newBuilder() + .setTransportChannelProvider( + PrivateAuctionServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = PrivateAuctionServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getPrivateAuctionTest() throws Exception { + PrivateAuction expectedResponse = + PrivateAuction.newBuilder() + .setName(PrivateAuctionName.of("[NETWORK_CODE]", "[PRIVATE_AUCTION]").toString()) + .setPrivateAuctionId(-20317997) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllSellerContactUsers(new ArrayList()) + .setArchived(true) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + PrivateAuctionName name = PrivateAuctionName.of("[NETWORK_CODE]", "[PRIVATE_AUCTION]"); + + PrivateAuction actualResponse = client.getPrivateAuction(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 getPrivateAuctionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PrivateAuctionName name = PrivateAuctionName.of("[NETWORK_CODE]", "[PRIVATE_AUCTION]"); + client.getPrivateAuction(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getPrivateAuctionTest2() throws Exception { + PrivateAuction expectedResponse = + PrivateAuction.newBuilder() + .setName(PrivateAuctionName.of("[NETWORK_CODE]", "[PRIVATE_AUCTION]").toString()) + .setPrivateAuctionId(-20317997) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllSellerContactUsers(new ArrayList()) + .setArchived(true) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "networks/network-4294/privateAuctions/privateAuction-4294"; + + PrivateAuction actualResponse = client.getPrivateAuction(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 getPrivateAuctionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "networks/network-4294/privateAuctions/privateAuction-4294"; + client.getPrivateAuction(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPrivateAuctionsTest() throws Exception { + PrivateAuction responsesElement = PrivateAuction.newBuilder().build(); + ListPrivateAuctionsResponse expectedResponse = + ListPrivateAuctionsResponse.newBuilder() + .setNextPageToken("") + .addAllPrivateAuctions(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + + ListPrivateAuctionsPagedResponse pagedListResponse = client.listPrivateAuctions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPrivateAuctionsList().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 listPrivateAuctionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + client.listPrivateAuctions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPrivateAuctionsTest2() throws Exception { + PrivateAuction responsesElement = PrivateAuction.newBuilder().build(); + ListPrivateAuctionsResponse expectedResponse = + ListPrivateAuctionsResponse.newBuilder() + .setNextPageToken("") + .addAllPrivateAuctions(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + + ListPrivateAuctionsPagedResponse pagedListResponse = client.listPrivateAuctions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPrivateAuctionsList().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 listPrivateAuctionsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + client.listPrivateAuctions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createPrivateAuctionTest() throws Exception { + PrivateAuction expectedResponse = + PrivateAuction.newBuilder() + .setName(PrivateAuctionName.of("[NETWORK_CODE]", "[PRIVATE_AUCTION]").toString()) + .setPrivateAuctionId(-20317997) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllSellerContactUsers(new ArrayList()) + .setArchived(true) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + PrivateAuction privateAuction = PrivateAuction.newBuilder().build(); + + PrivateAuction actualResponse = client.createPrivateAuction(parent, privateAuction); + 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 createPrivateAuctionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + PrivateAuction privateAuction = PrivateAuction.newBuilder().build(); + client.createPrivateAuction(parent, privateAuction); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createPrivateAuctionTest2() throws Exception { + PrivateAuction expectedResponse = + PrivateAuction.newBuilder() + .setName(PrivateAuctionName.of("[NETWORK_CODE]", "[PRIVATE_AUCTION]").toString()) + .setPrivateAuctionId(-20317997) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllSellerContactUsers(new ArrayList()) + .setArchived(true) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + PrivateAuction privateAuction = PrivateAuction.newBuilder().build(); + + PrivateAuction actualResponse = client.createPrivateAuction(parent, privateAuction); + 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 createPrivateAuctionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + PrivateAuction privateAuction = PrivateAuction.newBuilder().build(); + client.createPrivateAuction(parent, privateAuction); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updatePrivateAuctionTest() throws Exception { + PrivateAuction expectedResponse = + PrivateAuction.newBuilder() + .setName(PrivateAuctionName.of("[NETWORK_CODE]", "[PRIVATE_AUCTION]").toString()) + .setPrivateAuctionId(-20317997) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllSellerContactUsers(new ArrayList()) + .setArchived(true) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + PrivateAuction privateAuction = + PrivateAuction.newBuilder() + .setName(PrivateAuctionName.of("[NETWORK_CODE]", "[PRIVATE_AUCTION]").toString()) + .setPrivateAuctionId(-20317997) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllSellerContactUsers(new ArrayList()) + .setArchived(true) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + PrivateAuction actualResponse = client.updatePrivateAuction(privateAuction, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updatePrivateAuctionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PrivateAuction privateAuction = + PrivateAuction.newBuilder() + .setName(PrivateAuctionName.of("[NETWORK_CODE]", "[PRIVATE_AUCTION]").toString()) + .setPrivateAuctionId(-20317997) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllSellerContactUsers(new ArrayList()) + .setArchived(true) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updatePrivateAuction(privateAuction, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/ProgrammaticBuyerServiceClientTest.java b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/ProgrammaticBuyerServiceClientTest.java new file mode 100644 index 000000000000..f7853b8c46ff --- /dev/null +++ b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/ProgrammaticBuyerServiceClientTest.java @@ -0,0 +1,280 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1; + +import static com.google.ads.admanager.v1.ProgrammaticBuyerServiceClient.ListProgrammaticBuyersPagedResponse; + +import com.google.ads.admanager.v1.stub.HttpJsonProgrammaticBuyerServiceStub; +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 java.io.IOException; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class ProgrammaticBuyerServiceClientTest { + private static MockHttpService mockService; + private static ProgrammaticBuyerServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonProgrammaticBuyerServiceStub.getMethodDescriptors(), + ProgrammaticBuyerServiceSettings.getDefaultEndpoint()); + ProgrammaticBuyerServiceSettings settings = + ProgrammaticBuyerServiceSettings.newBuilder() + .setTransportChannelProvider( + ProgrammaticBuyerServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ProgrammaticBuyerServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getProgrammaticBuyerTest() throws Exception { + ProgrammaticBuyer expectedResponse = + ProgrammaticBuyer.newBuilder() + .setName(ProgrammaticBuyerName.of("[NETWORK_CODE]", "[PROGRAMMATIC_BUYER]").toString()) + .setBuyerAccountId(-994282887) + .setDisplayName("displayName1714148973") + .setParentAccountId(-325829854) + .setPartnerClientId("partnerClientId865546030") + .setAgency(true) + .setPreferredDealsEnabled(true) + .setProgrammaticGuaranteedEnabled(true) + .build(); + mockService.addResponse(expectedResponse); + + ProgrammaticBuyerName name = ProgrammaticBuyerName.of("[NETWORK_CODE]", "[PROGRAMMATIC_BUYER]"); + + ProgrammaticBuyer actualResponse = client.getProgrammaticBuyer(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 getProgrammaticBuyerExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProgrammaticBuyerName name = + ProgrammaticBuyerName.of("[NETWORK_CODE]", "[PROGRAMMATIC_BUYER]"); + client.getProgrammaticBuyer(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getProgrammaticBuyerTest2() throws Exception { + ProgrammaticBuyer expectedResponse = + ProgrammaticBuyer.newBuilder() + .setName(ProgrammaticBuyerName.of("[NETWORK_CODE]", "[PROGRAMMATIC_BUYER]").toString()) + .setBuyerAccountId(-994282887) + .setDisplayName("displayName1714148973") + .setParentAccountId(-325829854) + .setPartnerClientId("partnerClientId865546030") + .setAgency(true) + .setPreferredDealsEnabled(true) + .setProgrammaticGuaranteedEnabled(true) + .build(); + mockService.addResponse(expectedResponse); + + String name = "networks/network-3525/programmaticBuyers/programmaticBuyer-3525"; + + ProgrammaticBuyer actualResponse = client.getProgrammaticBuyer(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 getProgrammaticBuyerExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "networks/network-3525/programmaticBuyers/programmaticBuyer-3525"; + client.getProgrammaticBuyer(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listProgrammaticBuyersTest() throws Exception { + ProgrammaticBuyer responsesElement = ProgrammaticBuyer.newBuilder().build(); + ListProgrammaticBuyersResponse expectedResponse = + ListProgrammaticBuyersResponse.newBuilder() + .setNextPageToken("") + .addAllProgrammaticBuyers(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + + ListProgrammaticBuyersPagedResponse pagedListResponse = client.listProgrammaticBuyers(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getProgrammaticBuyersList().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 listProgrammaticBuyersExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + client.listProgrammaticBuyers(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listProgrammaticBuyersTest2() throws Exception { + ProgrammaticBuyer responsesElement = ProgrammaticBuyer.newBuilder().build(); + ListProgrammaticBuyersResponse expectedResponse = + ListProgrammaticBuyersResponse.newBuilder() + .setNextPageToken("") + .addAllProgrammaticBuyers(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + + ListProgrammaticBuyersPagedResponse pagedListResponse = client.listProgrammaticBuyers(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getProgrammaticBuyersList().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 listProgrammaticBuyersExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + client.listProgrammaticBuyers(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-admanager/pom.xml b/java-admanager/pom.xml index 48bdb32eead0..4f4c70253550 100644 --- a/java-admanager/pom.xml +++ b/java-admanager/pom.xml @@ -4,7 +4,7 @@ com.google.api-ads ad-manager-parent pom - 0.26.0 + 0.27.0 Google Google Ad Manager API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,12 +29,12 @@ com.google.api-ads ad-manager - 0.26.0 + 0.27.0 com.google.api-ads.api.grpc proto-ad-manager-v1 - 0.26.0 + 0.27.0 diff --git a/java-admanager/proto-ad-manager-v1/pom.xml b/java-admanager/proto-ad-manager-v1/pom.xml index 296ed468addf..815bea802ec5 100644 --- a/java-admanager/proto-ad-manager-v1/pom.xml +++ b/java-admanager/proto-ad-manager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api-ads.api.grpc proto-ad-manager-v1 - 0.26.0 + 0.27.0 proto-ad-manager-v1 Proto library for ad-manager com.google.api-ads ad-manager-parent - 0.26.0 + 0.27.0 diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdBreak.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdBreak.java new file mode 100644 index 000000000000..bf4c39154ede --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdBreak.java @@ -0,0 +1,3428 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/ad_break_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *

+ * The `AdBreak` resource.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.AdBreak} + */ +public final class AdBreak extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.AdBreak) + AdBreakOrBuilder { + private static final long serialVersionUID = 0L; + + // Use AdBreak.newBuilder() to construct. + private AdBreak(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AdBreak() { + name_ = ""; + adBreakId_ = ""; + assetKey_ = ""; + customAssetKey_ = ""; + breakState_ = 0; + podTemplateName_ = ""; + customParams_ = ""; + scte35CueOut_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AdBreak(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdBreakMessagesProto + .internal_static_google_ads_admanager_v1_AdBreak_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdBreakMessagesProto + .internal_static_google_ads_admanager_v1_AdBreak_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.AdBreak.class, + com.google.ads.admanager.v1.AdBreak.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 `AdBreak`.
+   * This field uses the `LiveStreamEvent` resource's asset key in the
+   * URI, even if the ad break was created, updated, or queried using the custom
+   * asset key.
+   *
+   * Format:
+   * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break_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 `AdBreak`.
+   * This field uses the `LiveStreamEvent` resource's asset key in the
+   * URI, even if the ad break was created, updated, or queried using the custom
+   * asset key.
+   *
+   * Format:
+   * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break_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 AD_BREAK_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object adBreakId_ = ""; + + /** + * + * + *
+   * Optional. Immutable. `AdBreak` ID.
+   * Must consist only of lowercase letters, digits, and hyphens. Ad break IDs
+   * have a maximum length of 63 characters.
+   * If not set, an ad break ID is generated as a UUID string.
+   * 
+ * + * + * optional string ad_break_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the adBreakId field is set. + */ + @java.lang.Override + public boolean hasAdBreakId() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Immutable. `AdBreak` ID.
+   * Must consist only of lowercase letters, digits, and hyphens. Ad break IDs
+   * have a maximum length of 63 characters.
+   * If not set, an ad break ID is generated as a UUID string.
+   * 
+ * + * + * optional string ad_break_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The adBreakId. + */ + @java.lang.Override + public java.lang.String getAdBreakId() { + java.lang.Object ref = adBreakId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + adBreakId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Immutable. `AdBreak` ID.
+   * Must consist only of lowercase letters, digits, and hyphens. Ad break IDs
+   * have a maximum length of 63 characters.
+   * If not set, an ad break ID is generated as a UUID string.
+   * 
+ * + * + * optional string ad_break_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for adBreakId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAdBreakIdBytes() { + java.lang.Object ref = adBreakId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + adBreakId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ASSET_KEY_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object assetKey_ = ""; + + /** + * + * + *
+   * Optional. Immutable. The asset key of the `LiveStreamEvent` that the ad
+   * break belongs to. Either an asset key or a custom asset key must be
+   * provided for creation.
+   * 
+ * + * + * optional string asset_key = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the assetKey field is set. + */ + @java.lang.Override + public boolean hasAssetKey() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. Immutable. The asset key of the `LiveStreamEvent` that the ad
+   * break belongs to. Either an asset key or a custom asset key must be
+   * provided for creation.
+   * 
+ * + * + * optional string asset_key = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The assetKey. + */ + @java.lang.Override + public java.lang.String getAssetKey() { + java.lang.Object ref = assetKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assetKey_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Immutable. The asset key of the `LiveStreamEvent` that the ad
+   * break belongs to. Either an asset key or a custom asset key must be
+   * provided for creation.
+   * 
+ * + * + * optional string asset_key = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for assetKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAssetKeyBytes() { + java.lang.Object ref = assetKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + assetKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CUSTOM_ASSET_KEY_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object customAssetKey_ = ""; + + /** + * + * + *
+   * Optional. Immutable. The custom asset key of the `LiveStreamEvent` that the
+   * ad break belongs to. Either an asset key or a custom asset key must be
+   * provided for creation.
+   * 
+ * + * + * optional string custom_asset_key = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the customAssetKey field is set. + */ + @java.lang.Override + public boolean hasCustomAssetKey() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Optional. Immutable. The custom asset key of the `LiveStreamEvent` that the
+   * ad break belongs to. Either an asset key or a custom asset key must be
+   * provided for creation.
+   * 
+ * + * + * optional string custom_asset_key = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The customAssetKey. + */ + @java.lang.Override + public java.lang.String getCustomAssetKey() { + java.lang.Object ref = customAssetKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customAssetKey_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Immutable. The custom asset key of the `LiveStreamEvent` that the
+   * ad break belongs to. Either an asset key or a custom asset key must be
+   * provided for creation.
+   * 
+ * + * + * optional string custom_asset_key = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for customAssetKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCustomAssetKeyBytes() { + java.lang.Object ref = customAssetKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customAssetKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXPECTED_START_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp expectedStartTime_; + + /** + * + * + *
+   * Optional. The expected start time of the ad break.
+   * When set, the scheduled ad break will be decisioned shortly before the
+   * expected start time.
+   * If this field is not set, ad decisioning begins immediately.
+   * An ad break can be created up to six hours before the expected start time.
+   * 
+ * + * + * optional .google.protobuf.Timestamp expected_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the expectedStartTime field is set. + */ + @java.lang.Override + public boolean hasExpectedStartTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Optional. The expected start time of the ad break.
+   * When set, the scheduled ad break will be decisioned shortly before the
+   * expected start time.
+   * If this field is not set, ad decisioning begins immediately.
+   * An ad break can be created up to six hours before the expected start time.
+   * 
+ * + * + * optional .google.protobuf.Timestamp expected_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The expectedStartTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getExpectedStartTime() { + return expectedStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expectedStartTime_; + } + + /** + * + * + *
+   * Optional. The expected start time of the ad break.
+   * When set, the scheduled ad break will be decisioned shortly before the
+   * expected start time.
+   * If this field is not set, ad decisioning begins immediately.
+   * An ad break can be created up to six hours before the expected start time.
+   * 
+ * + * + * optional .google.protobuf.Timestamp expected_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getExpectedStartTimeOrBuilder() { + return expectedStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expectedStartTime_; + } + + public static final int DURATION_FIELD_NUMBER = 6; + private com.google.protobuf.Duration duration_; + + /** + * + * + *
+   * Required. The duration of the `AdBreak`.
+   * An expected duration in seconds with up to nine fractional digits, ending
+   * with `s`, for example, `3.5s`. This value will be updated to match the
+   * actual duration from the manifest or pod request after the ad break's state
+   * is
+   * [`COMPLETE`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.COMPLETE].
+   * 
+ * + * + * optional .google.protobuf.Duration duration = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the duration field is set. + */ + @java.lang.Override + public boolean hasDuration() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Required. The duration of the `AdBreak`.
+   * An expected duration in seconds with up to nine fractional digits, ending
+   * with `s`, for example, `3.5s`. This value will be updated to match the
+   * actual duration from the manifest or pod request after the ad break's state
+   * is
+   * [`COMPLETE`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.COMPLETE].
+   * 
+ * + * + * optional .google.protobuf.Duration duration = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The duration. + */ + @java.lang.Override + public com.google.protobuf.Duration getDuration() { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } + + /** + * + * + *
+   * Required. The duration of the `AdBreak`.
+   * An expected duration in seconds with up to nine fractional digits, ending
+   * with `s`, for example, `3.5s`. This value will be updated to match the
+   * actual duration from the manifest or pod request after the ad break's state
+   * is
+   * [`COMPLETE`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.COMPLETE].
+   * 
+ * + * + * optional .google.protobuf.Duration duration = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } + + public static final int BREAK_STATE_FIELD_NUMBER = 7; + private int breakState_ = 0; + + /** + * + * + *
+   * Output only. The state of the `AdBreak`.
+   * 
+ * + * + * optional .google.ads.admanager.v1.AdBreakStateEnum.AdBreakState break_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the breakState field is set. + */ + @java.lang.Override + public boolean hasBreakState() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+   * Output only. The state of the `AdBreak`.
+   * 
+ * + * + * optional .google.ads.admanager.v1.AdBreakStateEnum.AdBreakState break_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for breakState. + */ + @java.lang.Override + public int getBreakStateValue() { + return breakState_; + } + + /** + * + * + *
+   * Output only. The state of the `AdBreak`.
+   * 
+ * + * + * optional .google.ads.admanager.v1.AdBreakStateEnum.AdBreakState break_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The breakState. + */ + @java.lang.Override + public com.google.ads.admanager.v1.AdBreakStateEnum.AdBreakState getBreakState() { + com.google.ads.admanager.v1.AdBreakStateEnum.AdBreakState result = + com.google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.forNumber(breakState_); + return result == null + ? com.google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.UNRECOGNIZED + : result; + } + + public static final int BREAK_SEQUENCE_FIELD_NUMBER = 8; + private long breakSequence_ = 0L; + + /** + * + * + *
+   * Output only. The sequence id of the `AdBreak`.
+   * The unique sequence number of the created ad break. This value is only set
+   * after the `AdBreak` starts decisioning indicated by the ad break state's
+   * being
+   * [`DECISIONED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.DECISIONED]
+   * .
+   * 
+ * + * optional int64 break_sequence = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the breakSequence field is set. + */ + @java.lang.Override + public boolean hasBreakSequence() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+   * Output only. The sequence id of the `AdBreak`.
+   * The unique sequence number of the created ad break. This value is only set
+   * after the `AdBreak` starts decisioning indicated by the ad break state's
+   * being
+   * [`DECISIONED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.DECISIONED]
+   * .
+   * 
+ * + * optional int64 break_sequence = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The breakSequence. + */ + @java.lang.Override + public long getBreakSequence() { + return breakSequence_; + } + + public static final int POD_TEMPLATE_NAME_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object podTemplateName_ = ""; + + /** + * + * + *
+   * Optional. The pod template name of the `AdBreak`.
+   * This field is the required unique name across all pod templates in the
+   * network, not the display name.
+   * 
+ * + * optional string pod_template_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the podTemplateName field is set. + */ + @java.lang.Override + public boolean hasPodTemplateName() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+   * Optional. The pod template name of the `AdBreak`.
+   * This field is the required unique name across all pod templates in the
+   * network, not the display name.
+   * 
+ * + * optional string pod_template_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The podTemplateName. + */ + @java.lang.Override + public java.lang.String getPodTemplateName() { + java.lang.Object ref = podTemplateName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + podTemplateName_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The pod template name of the `AdBreak`.
+   * This field is the required unique name across all pod templates in the
+   * network, not the display name.
+   * 
+ * + * optional string pod_template_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for podTemplateName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPodTemplateNameBytes() { + java.lang.Object ref = podTemplateName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + podTemplateName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CUSTOM_PARAMS_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object customParams_ = ""; + + /** + * + * + *
+   * Optional. The key-value pairs to be included on the ad requests for this
+   * `AdBreak`. Key-value pairs to include on ad requests for this break for
+   * custom criteria targeting in Google Ad Manager, separated by `=` and joined
+   * by
+   * `&`.
+   *
+   * Format:"key1=value&key2=value"
+   * 
+ * + * optional string custom_params = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the customParams field is set. + */ + @java.lang.Override + public boolean hasCustomParams() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
+   * Optional. The key-value pairs to be included on the ad requests for this
+   * `AdBreak`. Key-value pairs to include on ad requests for this break for
+   * custom criteria targeting in Google Ad Manager, separated by `=` and joined
+   * by
+   * `&`.
+   *
+   * Format:"key1=value&key2=value"
+   * 
+ * + * optional string custom_params = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The customParams. + */ + @java.lang.Override + public java.lang.String getCustomParams() { + java.lang.Object ref = customParams_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customParams_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The key-value pairs to be included on the ad requests for this
+   * `AdBreak`. Key-value pairs to include on ad requests for this break for
+   * custom criteria targeting in Google Ad Manager, separated by `=` and joined
+   * by
+   * `&`.
+   *
+   * Format:"key1=value&key2=value"
+   * 
+ * + * optional string custom_params = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for customParams. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCustomParamsBytes() { + java.lang.Object ref = customParams_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customParams_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCTE_35_CUE_OUT_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object scte35CueOut_ = ""; + + /** + * + * + *
+   * Optional. The Base64-encoded SCTE-35 command associated with the `AdBreak`.
+   * This field can include the `splice_insert()` or `time_signal()` command.
+   *
+   * **Examples**
+   *
+   * * `time_signal()`
+   *   ```
+   *   /DA0AAAAAAAA///wBQb+cr0AUAAeAhxDVUVJSAAAjn/PAAGlmbAICAAAAAAsoKGKNAIAmsnRfg==
+   *   ```
+   * * `splice_insert()`
+   *   ```
+   *   /DAvAAAAAAAA///wFAVIAACPf+/+c2nALv4AUsz1AAAAAAAKAAhDVUVJAAABNWLbowo=
+   *   ```
+   * 
+ * + * optional string scte_35_cue_out = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the scte35CueOut field is set. + */ + @java.lang.Override + public boolean hasScte35CueOut() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
+   * Optional. The Base64-encoded SCTE-35 command associated with the `AdBreak`.
+   * This field can include the `splice_insert()` or `time_signal()` command.
+   *
+   * **Examples**
+   *
+   * * `time_signal()`
+   *   ```
+   *   /DA0AAAAAAAA///wBQb+cr0AUAAeAhxDVUVJSAAAjn/PAAGlmbAICAAAAAAsoKGKNAIAmsnRfg==
+   *   ```
+   * * `splice_insert()`
+   *   ```
+   *   /DAvAAAAAAAA///wFAVIAACPf+/+c2nALv4AUsz1AAAAAAAKAAhDVUVJAAABNWLbowo=
+   *   ```
+   * 
+ * + * optional string scte_35_cue_out = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The scte35CueOut. + */ + @java.lang.Override + public java.lang.String getScte35CueOut() { + java.lang.Object ref = scte35CueOut_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + scte35CueOut_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The Base64-encoded SCTE-35 command associated with the `AdBreak`.
+   * This field can include the `splice_insert()` or `time_signal()` command.
+   *
+   * **Examples**
+   *
+   * * `time_signal()`
+   *   ```
+   *   /DA0AAAAAAAA///wBQb+cr0AUAAeAhxDVUVJSAAAjn/PAAGlmbAICAAAAAAsoKGKNAIAmsnRfg==
+   *   ```
+   * * `splice_insert()`
+   *   ```
+   *   /DAvAAAAAAAA///wFAVIAACPf+/+c2nALv4AUsz1AAAAAAAKAAhDVUVJAAABNWLbowo=
+   *   ```
+   * 
+ * + * optional string scte_35_cue_out = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for scte35CueOut. + */ + @java.lang.Override + public com.google.protobuf.ByteString getScte35CueOutBytes() { + java.lang.Object ref = scte35CueOut_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + scte35CueOut_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, adBreakId_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, assetKey_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, customAssetKey_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(5, getExpectedStartTime()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(6, getDuration()); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeEnum(7, breakState_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeInt64(8, breakSequence_); + } + if (((bitField0_ & 0x00000080) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, podTemplateName_); + } + if (((bitField0_ & 0x00000100) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, customParams_); + } + if (((bitField0_ & 0x00000200) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, scte35CueOut_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, adBreakId_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, assetKey_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, customAssetKey_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getExpectedStartTime()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getDuration()); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, breakState_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, breakSequence_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, podTemplateName_); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, customParams_); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, scte35CueOut_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.admanager.v1.AdBreak)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.AdBreak other = (com.google.ads.admanager.v1.AdBreak) obj; + + if (!getName().equals(other.getName())) return false; + if (hasAdBreakId() != other.hasAdBreakId()) return false; + if (hasAdBreakId()) { + if (!getAdBreakId().equals(other.getAdBreakId())) return false; + } + if (hasAssetKey() != other.hasAssetKey()) return false; + if (hasAssetKey()) { + if (!getAssetKey().equals(other.getAssetKey())) return false; + } + if (hasCustomAssetKey() != other.hasCustomAssetKey()) return false; + if (hasCustomAssetKey()) { + if (!getCustomAssetKey().equals(other.getCustomAssetKey())) return false; + } + if (hasExpectedStartTime() != other.hasExpectedStartTime()) return false; + if (hasExpectedStartTime()) { + if (!getExpectedStartTime().equals(other.getExpectedStartTime())) return false; + } + if (hasDuration() != other.hasDuration()) return false; + if (hasDuration()) { + if (!getDuration().equals(other.getDuration())) return false; + } + if (hasBreakState() != other.hasBreakState()) return false; + if (hasBreakState()) { + if (breakState_ != other.breakState_) return false; + } + if (hasBreakSequence() != other.hasBreakSequence()) return false; + if (hasBreakSequence()) { + if (getBreakSequence() != other.getBreakSequence()) return false; + } + if (hasPodTemplateName() != other.hasPodTemplateName()) return false; + if (hasPodTemplateName()) { + if (!getPodTemplateName().equals(other.getPodTemplateName())) return false; + } + if (hasCustomParams() != other.hasCustomParams()) return false; + if (hasCustomParams()) { + if (!getCustomParams().equals(other.getCustomParams())) return false; + } + if (hasScte35CueOut() != other.hasScte35CueOut()) return false; + if (hasScte35CueOut()) { + if (!getScte35CueOut().equals(other.getScte35CueOut())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasAdBreakId()) { + hash = (37 * hash) + AD_BREAK_ID_FIELD_NUMBER; + hash = (53 * hash) + getAdBreakId().hashCode(); + } + if (hasAssetKey()) { + hash = (37 * hash) + ASSET_KEY_FIELD_NUMBER; + hash = (53 * hash) + getAssetKey().hashCode(); + } + if (hasCustomAssetKey()) { + hash = (37 * hash) + CUSTOM_ASSET_KEY_FIELD_NUMBER; + hash = (53 * hash) + getCustomAssetKey().hashCode(); + } + if (hasExpectedStartTime()) { + hash = (37 * hash) + EXPECTED_START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getExpectedStartTime().hashCode(); + } + if (hasDuration()) { + hash = (37 * hash) + DURATION_FIELD_NUMBER; + hash = (53 * hash) + getDuration().hashCode(); + } + if (hasBreakState()) { + hash = (37 * hash) + BREAK_STATE_FIELD_NUMBER; + hash = (53 * hash) + breakState_; + } + if (hasBreakSequence()) { + hash = (37 * hash) + BREAK_SEQUENCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBreakSequence()); + } + if (hasPodTemplateName()) { + hash = (37 * hash) + POD_TEMPLATE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getPodTemplateName().hashCode(); + } + if (hasCustomParams()) { + hash = (37 * hash) + CUSTOM_PARAMS_FIELD_NUMBER; + hash = (53 * hash) + getCustomParams().hashCode(); + } + if (hasScte35CueOut()) { + hash = (37 * hash) + SCTE_35_CUE_OUT_FIELD_NUMBER; + hash = (53 * hash) + getScte35CueOut().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.AdBreak parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.AdBreak 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.admanager.v1.AdBreak parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.AdBreak parseFrom( + 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.admanager.v1.AdBreak parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.AdBreak parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.AdBreak parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.AdBreak parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.AdBreak parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.AdBreak parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.AdBreak parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.AdBreak parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.AdBreak prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The `AdBreak` resource.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.AdBreak} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.AdBreak) + com.google.ads.admanager.v1.AdBreakOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdBreakMessagesProto + .internal_static_google_ads_admanager_v1_AdBreak_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdBreakMessagesProto + .internal_static_google_ads_admanager_v1_AdBreak_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.AdBreak.class, + com.google.ads.admanager.v1.AdBreak.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.AdBreak.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getExpectedStartTimeFieldBuilder(); + getDurationFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + adBreakId_ = ""; + assetKey_ = ""; + customAssetKey_ = ""; + expectedStartTime_ = null; + if (expectedStartTimeBuilder_ != null) { + expectedStartTimeBuilder_.dispose(); + expectedStartTimeBuilder_ = null; + } + duration_ = null; + if (durationBuilder_ != null) { + durationBuilder_.dispose(); + durationBuilder_ = null; + } + breakState_ = 0; + breakSequence_ = 0L; + podTemplateName_ = ""; + customParams_ = ""; + scte35CueOut_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.AdBreakMessagesProto + .internal_static_google_ads_admanager_v1_AdBreak_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.AdBreak getDefaultInstanceForType() { + return com.google.ads.admanager.v1.AdBreak.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.AdBreak build() { + com.google.ads.admanager.v1.AdBreak result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.AdBreak buildPartial() { + com.google.ads.admanager.v1.AdBreak result = new com.google.ads.admanager.v1.AdBreak(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.AdBreak result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.adBreakId_ = adBreakId_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.assetKey_ = assetKey_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.customAssetKey_ = customAssetKey_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.expectedStartTime_ = + expectedStartTimeBuilder_ == null + ? expectedStartTime_ + : expectedStartTimeBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.duration_ = durationBuilder_ == null ? duration_ : durationBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.breakState_ = breakState_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.breakSequence_ = breakSequence_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.podTemplateName_ = podTemplateName_; + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.customParams_ = customParams_; + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.scte35CueOut_ = scte35CueOut_; + to_bitField0_ |= 0x00000200; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.AdBreak) { + return mergeFrom((com.google.ads.admanager.v1.AdBreak) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.AdBreak other) { + if (other == com.google.ads.admanager.v1.AdBreak.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasAdBreakId()) { + adBreakId_ = other.adBreakId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasAssetKey()) { + assetKey_ = other.assetKey_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasCustomAssetKey()) { + customAssetKey_ = other.customAssetKey_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasExpectedStartTime()) { + mergeExpectedStartTime(other.getExpectedStartTime()); + } + if (other.hasDuration()) { + mergeDuration(other.getDuration()); + } + if (other.hasBreakState()) { + setBreakState(other.getBreakState()); + } + if (other.hasBreakSequence()) { + setBreakSequence(other.getBreakSequence()); + } + if (other.hasPodTemplateName()) { + podTemplateName_ = other.podTemplateName_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.hasCustomParams()) { + customParams_ = other.customParams_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (other.hasScte35CueOut()) { + scte35CueOut_ = other.scte35CueOut_; + bitField0_ |= 0x00000400; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.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: + { + adBreakId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + assetKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + customAssetKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + getExpectedStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage(getDurationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: + { + breakState_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: + { + breakSequence_ = input.readInt64(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 74: + { + podTemplateName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + customParams_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: + { + scte35CueOut_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 90 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Identifier. The resource name of the `AdBreak`.
+     * This field uses the `LiveStreamEvent` resource's asset key in the
+     * URI, even if the ad break was created, updated, or queried using the custom
+     * asset key.
+     *
+     * Format:
+     * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break_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 `AdBreak`.
+     * This field uses the `LiveStreamEvent` resource's asset key in the
+     * URI, even if the ad break was created, updated, or queried using the custom
+     * asset key.
+     *
+     * Format:
+     * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break_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 `AdBreak`.
+     * This field uses the `LiveStreamEvent` resource's asset key in the
+     * URI, even if the ad break was created, updated, or queried using the custom
+     * asset key.
+     *
+     * Format:
+     * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break_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 `AdBreak`.
+     * This field uses the `LiveStreamEvent` resource's asset key in the
+     * URI, even if the ad break was created, updated, or queried using the custom
+     * asset key.
+     *
+     * Format:
+     * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break_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 `AdBreak`.
+     * This field uses the `LiveStreamEvent` resource's asset key in the
+     * URI, even if the ad break was created, updated, or queried using the custom
+     * asset key.
+     *
+     * Format:
+     * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break_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 adBreakId_ = ""; + + /** + * + * + *
+     * Optional. Immutable. `AdBreak` ID.
+     * Must consist only of lowercase letters, digits, and hyphens. Ad break IDs
+     * have a maximum length of 63 characters.
+     * If not set, an ad break ID is generated as a UUID string.
+     * 
+ * + * + * optional string ad_break_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the adBreakId field is set. + */ + public boolean hasAdBreakId() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. Immutable. `AdBreak` ID.
+     * Must consist only of lowercase letters, digits, and hyphens. Ad break IDs
+     * have a maximum length of 63 characters.
+     * If not set, an ad break ID is generated as a UUID string.
+     * 
+ * + * + * optional string ad_break_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The adBreakId. + */ + public java.lang.String getAdBreakId() { + java.lang.Object ref = adBreakId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + adBreakId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Immutable. `AdBreak` ID.
+     * Must consist only of lowercase letters, digits, and hyphens. Ad break IDs
+     * have a maximum length of 63 characters.
+     * If not set, an ad break ID is generated as a UUID string.
+     * 
+ * + * + * optional string ad_break_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for adBreakId. + */ + public com.google.protobuf.ByteString getAdBreakIdBytes() { + java.lang.Object ref = adBreakId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + adBreakId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Immutable. `AdBreak` ID.
+     * Must consist only of lowercase letters, digits, and hyphens. Ad break IDs
+     * have a maximum length of 63 characters.
+     * If not set, an ad break ID is generated as a UUID string.
+     * 
+ * + * + * optional string ad_break_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The adBreakId to set. + * @return This builder for chaining. + */ + public Builder setAdBreakId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + adBreakId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Immutable. `AdBreak` ID.
+     * Must consist only of lowercase letters, digits, and hyphens. Ad break IDs
+     * have a maximum length of 63 characters.
+     * If not set, an ad break ID is generated as a UUID string.
+     * 
+ * + * + * optional string ad_break_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearAdBreakId() { + adBreakId_ = getDefaultInstance().getAdBreakId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Immutable. `AdBreak` ID.
+     * Must consist only of lowercase letters, digits, and hyphens. Ad break IDs
+     * have a maximum length of 63 characters.
+     * If not set, an ad break ID is generated as a UUID string.
+     * 
+ * + * + * optional string ad_break_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for adBreakId to set. + * @return This builder for chaining. + */ + public Builder setAdBreakIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + adBreakId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object assetKey_ = ""; + + /** + * + * + *
+     * Optional. Immutable. The asset key of the `LiveStreamEvent` that the ad
+     * break belongs to. Either an asset key or a custom asset key must be
+     * provided for creation.
+     * 
+ * + * + * optional string asset_key = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the assetKey field is set. + */ + public boolean hasAssetKey() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Optional. Immutable. The asset key of the `LiveStreamEvent` that the ad
+     * break belongs to. Either an asset key or a custom asset key must be
+     * provided for creation.
+     * 
+ * + * + * optional string asset_key = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The assetKey. + */ + public java.lang.String getAssetKey() { + java.lang.Object ref = assetKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assetKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Immutable. The asset key of the `LiveStreamEvent` that the ad
+     * break belongs to. Either an asset key or a custom asset key must be
+     * provided for creation.
+     * 
+ * + * + * optional string asset_key = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for assetKey. + */ + public com.google.protobuf.ByteString getAssetKeyBytes() { + java.lang.Object ref = assetKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + assetKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Immutable. The asset key of the `LiveStreamEvent` that the ad
+     * break belongs to. Either an asset key or a custom asset key must be
+     * provided for creation.
+     * 
+ * + * + * optional string asset_key = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The assetKey to set. + * @return This builder for chaining. + */ + public Builder setAssetKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + assetKey_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Immutable. The asset key of the `LiveStreamEvent` that the ad
+     * break belongs to. Either an asset key or a custom asset key must be
+     * provided for creation.
+     * 
+ * + * + * optional string asset_key = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearAssetKey() { + assetKey_ = getDefaultInstance().getAssetKey(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Immutable. The asset key of the `LiveStreamEvent` that the ad
+     * break belongs to. Either an asset key or a custom asset key must be
+     * provided for creation.
+     * 
+ * + * + * optional string asset_key = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for assetKey to set. + * @return This builder for chaining. + */ + public Builder setAssetKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + assetKey_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object customAssetKey_ = ""; + + /** + * + * + *
+     * Optional. Immutable. The custom asset key of the `LiveStreamEvent` that the
+     * ad break belongs to. Either an asset key or a custom asset key must be
+     * provided for creation.
+     * 
+ * + * + * optional string custom_asset_key = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the customAssetKey field is set. + */ + public boolean hasCustomAssetKey() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Optional. Immutable. The custom asset key of the `LiveStreamEvent` that the
+     * ad break belongs to. Either an asset key or a custom asset key must be
+     * provided for creation.
+     * 
+ * + * + * optional string custom_asset_key = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The customAssetKey. + */ + public java.lang.String getCustomAssetKey() { + java.lang.Object ref = customAssetKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customAssetKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Immutable. The custom asset key of the `LiveStreamEvent` that the
+     * ad break belongs to. Either an asset key or a custom asset key must be
+     * provided for creation.
+     * 
+ * + * + * optional string custom_asset_key = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for customAssetKey. + */ + public com.google.protobuf.ByteString getCustomAssetKeyBytes() { + java.lang.Object ref = customAssetKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customAssetKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Immutable. The custom asset key of the `LiveStreamEvent` that the
+     * ad break belongs to. Either an asset key or a custom asset key must be
+     * provided for creation.
+     * 
+ * + * + * optional string custom_asset_key = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The customAssetKey to set. + * @return This builder for chaining. + */ + public Builder setCustomAssetKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + customAssetKey_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Immutable. The custom asset key of the `LiveStreamEvent` that the
+     * ad break belongs to. Either an asset key or a custom asset key must be
+     * provided for creation.
+     * 
+ * + * + * optional string custom_asset_key = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearCustomAssetKey() { + customAssetKey_ = getDefaultInstance().getCustomAssetKey(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Immutable. The custom asset key of the `LiveStreamEvent` that the
+     * ad break belongs to. Either an asset key or a custom asset key must be
+     * provided for creation.
+     * 
+ * + * + * optional string custom_asset_key = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for customAssetKey to set. + * @return This builder for chaining. + */ + public Builder setCustomAssetKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customAssetKey_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp expectedStartTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expectedStartTimeBuilder_; + + /** + * + * + *
+     * Optional. The expected start time of the ad break.
+     * When set, the scheduled ad break will be decisioned shortly before the
+     * expected start time.
+     * If this field is not set, ad decisioning begins immediately.
+     * An ad break can be created up to six hours before the expected start time.
+     * 
+ * + * + * optional .google.protobuf.Timestamp expected_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the expectedStartTime field is set. + */ + public boolean hasExpectedStartTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Optional. The expected start time of the ad break.
+     * When set, the scheduled ad break will be decisioned shortly before the
+     * expected start time.
+     * If this field is not set, ad decisioning begins immediately.
+     * An ad break can be created up to six hours before the expected start time.
+     * 
+ * + * + * optional .google.protobuf.Timestamp expected_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The expectedStartTime. + */ + public com.google.protobuf.Timestamp getExpectedStartTime() { + if (expectedStartTimeBuilder_ == null) { + return expectedStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expectedStartTime_; + } else { + return expectedStartTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The expected start time of the ad break.
+     * When set, the scheduled ad break will be decisioned shortly before the
+     * expected start time.
+     * If this field is not set, ad decisioning begins immediately.
+     * An ad break can be created up to six hours before the expected start time.
+     * 
+ * + * + * optional .google.protobuf.Timestamp expected_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExpectedStartTime(com.google.protobuf.Timestamp value) { + if (expectedStartTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expectedStartTime_ = value; + } else { + expectedStartTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The expected start time of the ad break.
+     * When set, the scheduled ad break will be decisioned shortly before the
+     * expected start time.
+     * If this field is not set, ad decisioning begins immediately.
+     * An ad break can be created up to six hours before the expected start time.
+     * 
+ * + * + * optional .google.protobuf.Timestamp expected_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExpectedStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (expectedStartTimeBuilder_ == null) { + expectedStartTime_ = builderForValue.build(); + } else { + expectedStartTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The expected start time of the ad break.
+     * When set, the scheduled ad break will be decisioned shortly before the
+     * expected start time.
+     * If this field is not set, ad decisioning begins immediately.
+     * An ad break can be created up to six hours before the expected start time.
+     * 
+ * + * + * optional .google.protobuf.Timestamp expected_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeExpectedStartTime(com.google.protobuf.Timestamp value) { + if (expectedStartTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && expectedStartTime_ != null + && expectedStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getExpectedStartTimeBuilder().mergeFrom(value); + } else { + expectedStartTime_ = value; + } + } else { + expectedStartTimeBuilder_.mergeFrom(value); + } + if (expectedStartTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The expected start time of the ad break.
+     * When set, the scheduled ad break will be decisioned shortly before the
+     * expected start time.
+     * If this field is not set, ad decisioning begins immediately.
+     * An ad break can be created up to six hours before the expected start time.
+     * 
+ * + * + * optional .google.protobuf.Timestamp expected_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearExpectedStartTime() { + bitField0_ = (bitField0_ & ~0x00000010); + expectedStartTime_ = null; + if (expectedStartTimeBuilder_ != null) { + expectedStartTimeBuilder_.dispose(); + expectedStartTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The expected start time of the ad break.
+     * When set, the scheduled ad break will be decisioned shortly before the
+     * expected start time.
+     * If this field is not set, ad decisioning begins immediately.
+     * An ad break can be created up to six hours before the expected start time.
+     * 
+ * + * + * optional .google.protobuf.Timestamp expected_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Timestamp.Builder getExpectedStartTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getExpectedStartTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The expected start time of the ad break.
+     * When set, the scheduled ad break will be decisioned shortly before the
+     * expected start time.
+     * If this field is not set, ad decisioning begins immediately.
+     * An ad break can be created up to six hours before the expected start time.
+     * 
+ * + * + * optional .google.protobuf.Timestamp expected_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.TimestampOrBuilder getExpectedStartTimeOrBuilder() { + if (expectedStartTimeBuilder_ != null) { + return expectedStartTimeBuilder_.getMessageOrBuilder(); + } else { + return expectedStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expectedStartTime_; + } + } + + /** + * + * + *
+     * Optional. The expected start time of the ad break.
+     * When set, the scheduled ad break will be decisioned shortly before the
+     * expected start time.
+     * If this field is not set, ad decisioning begins immediately.
+     * An ad break can be created up to six hours before the expected start time.
+     * 
+ * + * + * optional .google.protobuf.Timestamp expected_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getExpectedStartTimeFieldBuilder() { + if (expectedStartTimeBuilder_ == null) { + expectedStartTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getExpectedStartTime(), getParentForChildren(), isClean()); + expectedStartTime_ = null; + } + return expectedStartTimeBuilder_; + } + + private com.google.protobuf.Duration duration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + durationBuilder_; + + /** + * + * + *
+     * Required. The duration of the `AdBreak`.
+     * An expected duration in seconds with up to nine fractional digits, ending
+     * with `s`, for example, `3.5s`. This value will be updated to match the
+     * actual duration from the manifest or pod request after the ad break's state
+     * is
+     * [`COMPLETE`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.COMPLETE].
+     * 
+ * + * + * optional .google.protobuf.Duration duration = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the duration field is set. + */ + public boolean hasDuration() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Required. The duration of the `AdBreak`.
+     * An expected duration in seconds with up to nine fractional digits, ending
+     * with `s`, for example, `3.5s`. This value will be updated to match the
+     * actual duration from the manifest or pod request after the ad break's state
+     * is
+     * [`COMPLETE`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.COMPLETE].
+     * 
+ * + * + * optional .google.protobuf.Duration duration = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The duration. + */ + public com.google.protobuf.Duration getDuration() { + if (durationBuilder_ == null) { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } else { + return durationBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The duration of the `AdBreak`.
+     * An expected duration in seconds with up to nine fractional digits, ending
+     * with `s`, for example, `3.5s`. This value will be updated to match the
+     * actual duration from the manifest or pod request after the ad break's state
+     * is
+     * [`COMPLETE`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.COMPLETE].
+     * 
+ * + * + * optional .google.protobuf.Duration duration = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + duration_ = value; + } else { + durationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The duration of the `AdBreak`.
+     * An expected duration in seconds with up to nine fractional digits, ending
+     * with `s`, for example, `3.5s`. This value will be updated to match the
+     * actual duration from the manifest or pod request after the ad break's state
+     * is
+     * [`COMPLETE`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.COMPLETE].
+     * 
+ * + * + * optional .google.protobuf.Duration duration = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) { + if (durationBuilder_ == null) { + duration_ = builderForValue.build(); + } else { + durationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The duration of the `AdBreak`.
+     * An expected duration in seconds with up to nine fractional digits, ending
+     * with `s`, for example, `3.5s`. This value will be updated to match the
+     * actual duration from the manifest or pod request after the ad break's state
+     * is
+     * [`COMPLETE`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.COMPLETE].
+     * 
+ * + * + * optional .google.protobuf.Duration duration = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && duration_ != null + && duration_ != com.google.protobuf.Duration.getDefaultInstance()) { + getDurationBuilder().mergeFrom(value); + } else { + duration_ = value; + } + } else { + durationBuilder_.mergeFrom(value); + } + if (duration_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The duration of the `AdBreak`.
+     * An expected duration in seconds with up to nine fractional digits, ending
+     * with `s`, for example, `3.5s`. This value will be updated to match the
+     * actual duration from the manifest or pod request after the ad break's state
+     * is
+     * [`COMPLETE`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.COMPLETE].
+     * 
+ * + * + * optional .google.protobuf.Duration duration = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDuration() { + bitField0_ = (bitField0_ & ~0x00000020); + duration_ = null; + if (durationBuilder_ != null) { + durationBuilder_.dispose(); + durationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The duration of the `AdBreak`.
+     * An expected duration in seconds with up to nine fractional digits, ending
+     * with `s`, for example, `3.5s`. This value will be updated to match the
+     * actual duration from the manifest or pod request after the ad break's state
+     * is
+     * [`COMPLETE`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.COMPLETE].
+     * 
+ * + * + * optional .google.protobuf.Duration duration = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.Duration.Builder getDurationBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getDurationFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The duration of the `AdBreak`.
+     * An expected duration in seconds with up to nine fractional digits, ending
+     * with `s`, for example, `3.5s`. This value will be updated to match the
+     * actual duration from the manifest or pod request after the ad break's state
+     * is
+     * [`COMPLETE`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.COMPLETE].
+     * 
+ * + * + * optional .google.protobuf.Duration duration = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + if (durationBuilder_ != null) { + return durationBuilder_.getMessageOrBuilder(); + } else { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } + } + + /** + * + * + *
+     * Required. The duration of the `AdBreak`.
+     * An expected duration in seconds with up to nine fractional digits, ending
+     * with `s`, for example, `3.5s`. This value will be updated to match the
+     * actual duration from the manifest or pod request after the ad break's state
+     * is
+     * [`COMPLETE`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.COMPLETE].
+     * 
+ * + * + * optional .google.protobuf.Duration duration = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getDurationFieldBuilder() { + if (durationBuilder_ == null) { + durationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getDuration(), getParentForChildren(), isClean()); + duration_ = null; + } + return durationBuilder_; + } + + private int breakState_ = 0; + + /** + * + * + *
+     * Output only. The state of the `AdBreak`.
+     * 
+ * + * + * optional .google.ads.admanager.v1.AdBreakStateEnum.AdBreakState break_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the breakState field is set. + */ + @java.lang.Override + public boolean hasBreakState() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Output only. The state of the `AdBreak`.
+     * 
+ * + * + * optional .google.ads.admanager.v1.AdBreakStateEnum.AdBreakState break_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for breakState. + */ + @java.lang.Override + public int getBreakStateValue() { + return breakState_; + } + + /** + * + * + *
+     * Output only. The state of the `AdBreak`.
+     * 
+ * + * + * optional .google.ads.admanager.v1.AdBreakStateEnum.AdBreakState break_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for breakState to set. + * @return This builder for chaining. + */ + public Builder setBreakStateValue(int value) { + breakState_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The state of the `AdBreak`.
+     * 
+ * + * + * optional .google.ads.admanager.v1.AdBreakStateEnum.AdBreakState break_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The breakState. + */ + @java.lang.Override + public com.google.ads.admanager.v1.AdBreakStateEnum.AdBreakState getBreakState() { + com.google.ads.admanager.v1.AdBreakStateEnum.AdBreakState result = + com.google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.forNumber(breakState_); + return result == null + ? com.google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. The state of the `AdBreak`.
+     * 
+ * + * + * optional .google.ads.admanager.v1.AdBreakStateEnum.AdBreakState break_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The breakState to set. + * @return This builder for chaining. + */ + public Builder setBreakState(com.google.ads.admanager.v1.AdBreakStateEnum.AdBreakState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + breakState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The state of the `AdBreak`.
+     * 
+ * + * + * optional .google.ads.admanager.v1.AdBreakStateEnum.AdBreakState break_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearBreakState() { + bitField0_ = (bitField0_ & ~0x00000040); + breakState_ = 0; + onChanged(); + return this; + } + + private long breakSequence_; + + /** + * + * + *
+     * Output only. The sequence id of the `AdBreak`.
+     * The unique sequence number of the created ad break. This value is only set
+     * after the `AdBreak` starts decisioning indicated by the ad break state's
+     * being
+     * [`DECISIONED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.DECISIONED]
+     * .
+     * 
+ * + * optional int64 break_sequence = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the breakSequence field is set. + */ + @java.lang.Override + public boolean hasBreakSequence() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Output only. The sequence id of the `AdBreak`.
+     * The unique sequence number of the created ad break. This value is only set
+     * after the `AdBreak` starts decisioning indicated by the ad break state's
+     * being
+     * [`DECISIONED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.DECISIONED]
+     * .
+     * 
+ * + * optional int64 break_sequence = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The breakSequence. + */ + @java.lang.Override + public long getBreakSequence() { + return breakSequence_; + } + + /** + * + * + *
+     * Output only. The sequence id of the `AdBreak`.
+     * The unique sequence number of the created ad break. This value is only set
+     * after the `AdBreak` starts decisioning indicated by the ad break state's
+     * being
+     * [`DECISIONED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.DECISIONED]
+     * .
+     * 
+ * + * optional int64 break_sequence = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The breakSequence to set. + * @return This builder for chaining. + */ + public Builder setBreakSequence(long value) { + + breakSequence_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The sequence id of the `AdBreak`.
+     * The unique sequence number of the created ad break. This value is only set
+     * after the `AdBreak` starts decisioning indicated by the ad break state's
+     * being
+     * [`DECISIONED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.DECISIONED]
+     * .
+     * 
+ * + * optional int64 break_sequence = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearBreakSequence() { + bitField0_ = (bitField0_ & ~0x00000080); + breakSequence_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object podTemplateName_ = ""; + + /** + * + * + *
+     * Optional. The pod template name of the `AdBreak`.
+     * This field is the required unique name across all pod templates in the
+     * network, not the display name.
+     * 
+ * + * optional string pod_template_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the podTemplateName field is set. + */ + public boolean hasPodTemplateName() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
+     * Optional. The pod template name of the `AdBreak`.
+     * This field is the required unique name across all pod templates in the
+     * network, not the display name.
+     * 
+ * + * optional string pod_template_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The podTemplateName. + */ + public java.lang.String getPodTemplateName() { + java.lang.Object ref = podTemplateName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + podTemplateName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The pod template name of the `AdBreak`.
+     * This field is the required unique name across all pod templates in the
+     * network, not the display name.
+     * 
+ * + * optional string pod_template_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for podTemplateName. + */ + public com.google.protobuf.ByteString getPodTemplateNameBytes() { + java.lang.Object ref = podTemplateName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + podTemplateName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The pod template name of the `AdBreak`.
+     * This field is the required unique name across all pod templates in the
+     * network, not the display name.
+     * 
+ * + * optional string pod_template_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The podTemplateName to set. + * @return This builder for chaining. + */ + public Builder setPodTemplateName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + podTemplateName_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The pod template name of the `AdBreak`.
+     * This field is the required unique name across all pod templates in the
+     * network, not the display name.
+     * 
+ * + * optional string pod_template_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPodTemplateName() { + podTemplateName_ = getDefaultInstance().getPodTemplateName(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The pod template name of the `AdBreak`.
+     * This field is the required unique name across all pod templates in the
+     * network, not the display name.
+     * 
+ * + * optional string pod_template_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for podTemplateName to set. + * @return This builder for chaining. + */ + public Builder setPodTemplateNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + podTemplateName_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private java.lang.Object customParams_ = ""; + + /** + * + * + *
+     * Optional. The key-value pairs to be included on the ad requests for this
+     * `AdBreak`. Key-value pairs to include on ad requests for this break for
+     * custom criteria targeting in Google Ad Manager, separated by `=` and joined
+     * by
+     * `&`.
+     *
+     * Format:"key1=value&key2=value"
+     * 
+ * + * optional string custom_params = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the customParams field is set. + */ + public boolean hasCustomParams() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
+     * Optional. The key-value pairs to be included on the ad requests for this
+     * `AdBreak`. Key-value pairs to include on ad requests for this break for
+     * custom criteria targeting in Google Ad Manager, separated by `=` and joined
+     * by
+     * `&`.
+     *
+     * Format:"key1=value&key2=value"
+     * 
+ * + * optional string custom_params = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The customParams. + */ + public java.lang.String getCustomParams() { + java.lang.Object ref = customParams_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customParams_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The key-value pairs to be included on the ad requests for this
+     * `AdBreak`. Key-value pairs to include on ad requests for this break for
+     * custom criteria targeting in Google Ad Manager, separated by `=` and joined
+     * by
+     * `&`.
+     *
+     * Format:"key1=value&key2=value"
+     * 
+ * + * optional string custom_params = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for customParams. + */ + public com.google.protobuf.ByteString getCustomParamsBytes() { + java.lang.Object ref = customParams_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customParams_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The key-value pairs to be included on the ad requests for this
+     * `AdBreak`. Key-value pairs to include on ad requests for this break for
+     * custom criteria targeting in Google Ad Manager, separated by `=` and joined
+     * by
+     * `&`.
+     *
+     * Format:"key1=value&key2=value"
+     * 
+ * + * optional string custom_params = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The customParams to set. + * @return This builder for chaining. + */ + public Builder setCustomParams(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + customParams_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The key-value pairs to be included on the ad requests for this
+     * `AdBreak`. Key-value pairs to include on ad requests for this break for
+     * custom criteria targeting in Google Ad Manager, separated by `=` and joined
+     * by
+     * `&`.
+     *
+     * Format:"key1=value&key2=value"
+     * 
+ * + * optional string custom_params = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCustomParams() { + customParams_ = getDefaultInstance().getCustomParams(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The key-value pairs to be included on the ad requests for this
+     * `AdBreak`. Key-value pairs to include on ad requests for this break for
+     * custom criteria targeting in Google Ad Manager, separated by `=` and joined
+     * by
+     * `&`.
+     *
+     * Format:"key1=value&key2=value"
+     * 
+ * + * optional string custom_params = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for customParams to set. + * @return This builder for chaining. + */ + public Builder setCustomParamsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customParams_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private java.lang.Object scte35CueOut_ = ""; + + /** + * + * + *
+     * Optional. The Base64-encoded SCTE-35 command associated with the `AdBreak`.
+     * This field can include the `splice_insert()` or `time_signal()` command.
+     *
+     * **Examples**
+     *
+     * * `time_signal()`
+     *   ```
+     *   /DA0AAAAAAAA///wBQb+cr0AUAAeAhxDVUVJSAAAjn/PAAGlmbAICAAAAAAsoKGKNAIAmsnRfg==
+     *   ```
+     * * `splice_insert()`
+     *   ```
+     *   /DAvAAAAAAAA///wFAVIAACPf+/+c2nALv4AUsz1AAAAAAAKAAhDVUVJAAABNWLbowo=
+     *   ```
+     * 
+ * + * optional string scte_35_cue_out = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the scte35CueOut field is set. + */ + public boolean hasScte35CueOut() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
+     * Optional. The Base64-encoded SCTE-35 command associated with the `AdBreak`.
+     * This field can include the `splice_insert()` or `time_signal()` command.
+     *
+     * **Examples**
+     *
+     * * `time_signal()`
+     *   ```
+     *   /DA0AAAAAAAA///wBQb+cr0AUAAeAhxDVUVJSAAAjn/PAAGlmbAICAAAAAAsoKGKNAIAmsnRfg==
+     *   ```
+     * * `splice_insert()`
+     *   ```
+     *   /DAvAAAAAAAA///wFAVIAACPf+/+c2nALv4AUsz1AAAAAAAKAAhDVUVJAAABNWLbowo=
+     *   ```
+     * 
+ * + * optional string scte_35_cue_out = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The scte35CueOut. + */ + public java.lang.String getScte35CueOut() { + java.lang.Object ref = scte35CueOut_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + scte35CueOut_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The Base64-encoded SCTE-35 command associated with the `AdBreak`.
+     * This field can include the `splice_insert()` or `time_signal()` command.
+     *
+     * **Examples**
+     *
+     * * `time_signal()`
+     *   ```
+     *   /DA0AAAAAAAA///wBQb+cr0AUAAeAhxDVUVJSAAAjn/PAAGlmbAICAAAAAAsoKGKNAIAmsnRfg==
+     *   ```
+     * * `splice_insert()`
+     *   ```
+     *   /DAvAAAAAAAA///wFAVIAACPf+/+c2nALv4AUsz1AAAAAAAKAAhDVUVJAAABNWLbowo=
+     *   ```
+     * 
+ * + * optional string scte_35_cue_out = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for scte35CueOut. + */ + public com.google.protobuf.ByteString getScte35CueOutBytes() { + java.lang.Object ref = scte35CueOut_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + scte35CueOut_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The Base64-encoded SCTE-35 command associated with the `AdBreak`.
+     * This field can include the `splice_insert()` or `time_signal()` command.
+     *
+     * **Examples**
+     *
+     * * `time_signal()`
+     *   ```
+     *   /DA0AAAAAAAA///wBQb+cr0AUAAeAhxDVUVJSAAAjn/PAAGlmbAICAAAAAAsoKGKNAIAmsnRfg==
+     *   ```
+     * * `splice_insert()`
+     *   ```
+     *   /DAvAAAAAAAA///wFAVIAACPf+/+c2nALv4AUsz1AAAAAAAKAAhDVUVJAAABNWLbowo=
+     *   ```
+     * 
+ * + * optional string scte_35_cue_out = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The scte35CueOut to set. + * @return This builder for chaining. + */ + public Builder setScte35CueOut(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + scte35CueOut_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The Base64-encoded SCTE-35 command associated with the `AdBreak`.
+     * This field can include the `splice_insert()` or `time_signal()` command.
+     *
+     * **Examples**
+     *
+     * * `time_signal()`
+     *   ```
+     *   /DA0AAAAAAAA///wBQb+cr0AUAAeAhxDVUVJSAAAjn/PAAGlmbAICAAAAAAsoKGKNAIAmsnRfg==
+     *   ```
+     * * `splice_insert()`
+     *   ```
+     *   /DAvAAAAAAAA///wFAVIAACPf+/+c2nALv4AUsz1AAAAAAAKAAhDVUVJAAABNWLbowo=
+     *   ```
+     * 
+ * + * optional string scte_35_cue_out = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearScte35CueOut() { + scte35CueOut_ = getDefaultInstance().getScte35CueOut(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The Base64-encoded SCTE-35 command associated with the `AdBreak`.
+     * This field can include the `splice_insert()` or `time_signal()` command.
+     *
+     * **Examples**
+     *
+     * * `time_signal()`
+     *   ```
+     *   /DA0AAAAAAAA///wBQb+cr0AUAAeAhxDVUVJSAAAjn/PAAGlmbAICAAAAAAsoKGKNAIAmsnRfg==
+     *   ```
+     * * `splice_insert()`
+     *   ```
+     *   /DAvAAAAAAAA///wFAVIAACPf+/+c2nALv4AUsz1AAAAAAAKAAhDVUVJAAABNWLbowo=
+     *   ```
+     * 
+ * + * optional string scte_35_cue_out = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for scte35CueOut to set. + * @return This builder for chaining. + */ + public Builder setScte35CueOutBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + scte35CueOut_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.AdBreak) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.AdBreak) + private static final com.google.ads.admanager.v1.AdBreak DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.AdBreak(); + } + + public static com.google.ads.admanager.v1.AdBreak getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdBreak parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.AdBreak getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdBreakMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdBreakMessagesProto.java new file mode 100644 index 000000000000..77b68d6678d5 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdBreakMessagesProto.java @@ -0,0 +1,128 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/ad_break_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class AdBreakMessagesProto { + private AdBreakMessagesProto() {} + + 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_ads_admanager_v1_AdBreak_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_AdBreak_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/ads/admanager/v1/ad_break_messa" + + "ges.proto\022\027google.ads.admanager.v1\032?goog" + + "le/ads/admanager/v1/early_ad_break_notification_enums.proto\032\037google/api/field_be" + + "havior.proto\032\031google/api/resource.proto\032" + + "\036google/protobuf/duration.proto\032\037google/protobuf/timestamp.proto\"\250\006\n" + + "\007AdBreak\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022 \n" + + "\013ad_break_id\030\002 \001(\tB\006\340A\001\340A\005H\000\210\001\001\022\036\n" + + "\tasset_key\030\003 \001(\tB\006\340A\001\340A\005H\001\210\001\001\022%\n" + + "\020custom_asset_key\030\004 \001(\tB\006\340A\001\340A\005H\002\210\001\001\022A\n" + + "\023expected_start_time\030\005" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001H\003\210\001\001\0225\n" + + "\010duration\030\006" + + " \001(\0132\031.google.protobuf.DurationB\003\340A\002H\004\210\001\001\022U\n" + + "\013break_state\030\007 \001(\01626.google.ads.adm" + + "anager.v1.AdBreakStateEnum.AdBreakStateB\003\340A\003H\005\210\001\001\022 \n" + + "\016break_sequence\030\010 \001(\003B\003\340A\003H\006\210\001\001\022#\n" + + "\021pod_template_name\030\t \001(\tB\003\340A\001H\007\210\001\001\022\037\n\r" + + "custom_params\030\n" + + " \001(\tB\003\340A\001H\010\210\001\001\022!\n" + + "\017scte_35_cue_out\030\013 \001(\tB\003\340A\001H" + + "\t\210\001\001:\215\001\352A\211\001\n" + + " admanager.googleapis.com/AdBreak\022Rnetworks/" + + "{network_code}/liveStreamEventsByAssetKe" + + "y/{asset_key}/adBreaks/{ad_break}*\010adBreaks2\007adBreakB\016\n" + + "\014_ad_break_idB\014\n\n" + + "_asset_keyB\023\n" + + "\021_custom_asset_keyB\026\n" + + "\024_expected_start_timeB\013\n" + + "\t_durationB\016\n" + + "\014_break_stateB\021\n" + + "\017_break_sequenceB\024\n" + + "\022_pod_template_nameB\020\n" + + "\016_custom_paramsB\022\n" + + "\020_scte_35_cue_outB\310\001\n" + + "\033com.google.ads.admanager.v1B\024AdBreakMess" + + "agesProtoP\001Z@google.golang.org/genproto/" + + "googleapis/ads/admanager/v1;admanager\252\002\027" + + "Google.Ads.AdManager.V1\312\002\027Google\\Ads\\AdM" + + "anager\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.admanager.v1.EarlyAdBreakNotificationEnumsProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_ads_admanager_v1_AdBreak_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_AdBreak_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_AdBreak_descriptor, + new java.lang.String[] { + "Name", + "AdBreakId", + "AssetKey", + "CustomAssetKey", + "ExpectedStartTime", + "Duration", + "BreakState", + "BreakSequence", + "PodTemplateName", + "CustomParams", + "Scte35CueOut", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.ads.admanager.v1.EarlyAdBreakNotificationEnumsProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdBreakName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdBreakName.java new file mode 100644 index 000000000000..274eed9b5288 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdBreakName.java @@ -0,0 +1,229 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class AdBreakName implements ResourceName { + private static final PathTemplate NETWORK_CODE_ASSET_KEY_AD_BREAK = + PathTemplate.createWithoutUrlEncoding( + "networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break}"); + private volatile Map fieldValuesMap; + private final String networkCode; + private final String assetKey; + private final String adBreak; + + @Deprecated + protected AdBreakName() { + networkCode = null; + assetKey = null; + adBreak = null; + } + + private AdBreakName(Builder builder) { + networkCode = Preconditions.checkNotNull(builder.getNetworkCode()); + assetKey = Preconditions.checkNotNull(builder.getAssetKey()); + adBreak = Preconditions.checkNotNull(builder.getAdBreak()); + } + + public String getNetworkCode() { + return networkCode; + } + + public String getAssetKey() { + return assetKey; + } + + public String getAdBreak() { + return adBreak; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static AdBreakName of(String networkCode, String assetKey, String adBreak) { + return newBuilder() + .setNetworkCode(networkCode) + .setAssetKey(assetKey) + .setAdBreak(adBreak) + .build(); + } + + public static String format(String networkCode, String assetKey, String adBreak) { + return newBuilder() + .setNetworkCode(networkCode) + .setAssetKey(assetKey) + .setAdBreak(adBreak) + .build() + .toString(); + } + + public static AdBreakName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + NETWORK_CODE_ASSET_KEY_AD_BREAK.validatedMatch( + formattedString, "AdBreakName.parse: formattedString not in valid format"); + return of(matchMap.get("network_code"), matchMap.get("asset_key"), matchMap.get("ad_break")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (AdBreakName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return NETWORK_CODE_ASSET_KEY_AD_BREAK.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (networkCode != null) { + fieldMapBuilder.put("network_code", networkCode); + } + if (assetKey != null) { + fieldMapBuilder.put("asset_key", assetKey); + } + if (adBreak != null) { + fieldMapBuilder.put("ad_break", adBreak); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return NETWORK_CODE_ASSET_KEY_AD_BREAK.instantiate( + "network_code", networkCode, "asset_key", assetKey, "ad_break", adBreak); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + AdBreakName that = ((AdBreakName) o); + return Objects.equals(this.networkCode, that.networkCode) + && Objects.equals(this.assetKey, that.assetKey) + && Objects.equals(this.adBreak, that.adBreak); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(networkCode); + h *= 1000003; + h ^= Objects.hashCode(assetKey); + h *= 1000003; + h ^= Objects.hashCode(adBreak); + return h; + } + + /** + * Builder for networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break}. + */ + public static class Builder { + private String networkCode; + private String assetKey; + private String adBreak; + + protected Builder() {} + + public String getNetworkCode() { + return networkCode; + } + + public String getAssetKey() { + return assetKey; + } + + public String getAdBreak() { + return adBreak; + } + + public Builder setNetworkCode(String networkCode) { + this.networkCode = networkCode; + return this; + } + + public Builder setAssetKey(String assetKey) { + this.assetKey = assetKey; + return this; + } + + public Builder setAdBreak(String adBreak) { + this.adBreak = adBreak; + return this; + } + + private Builder(AdBreakName adBreakName) { + this.networkCode = adBreakName.networkCode; + this.assetKey = adBreakName.assetKey; + this.adBreak = adBreakName.adBreak; + } + + public AdBreakName build() { + return new AdBreakName(this); + } + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdBreakOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdBreakOrBuilder.java new file mode 100644 index 000000000000..49760c549ed0 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdBreakOrBuilder.java @@ -0,0 +1,591 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/ad_break_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface AdBreakOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.AdBreak) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. The resource name of the `AdBreak`.
+   * This field uses the `LiveStreamEvent` resource's asset key in the
+   * URI, even if the ad break was created, updated, or queried using the custom
+   * asset key.
+   *
+   * Format:
+   * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. The resource name of the `AdBreak`.
+   * This field uses the `LiveStreamEvent` resource's asset key in the
+   * URI, even if the ad break was created, updated, or queried using the custom
+   * asset key.
+   *
+   * Format:
+   * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. Immutable. `AdBreak` ID.
+   * Must consist only of lowercase letters, digits, and hyphens. Ad break IDs
+   * have a maximum length of 63 characters.
+   * If not set, an ad break ID is generated as a UUID string.
+   * 
+ * + * + * optional string ad_break_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the adBreakId field is set. + */ + boolean hasAdBreakId(); + + /** + * + * + *
+   * Optional. Immutable. `AdBreak` ID.
+   * Must consist only of lowercase letters, digits, and hyphens. Ad break IDs
+   * have a maximum length of 63 characters.
+   * If not set, an ad break ID is generated as a UUID string.
+   * 
+ * + * + * optional string ad_break_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The adBreakId. + */ + java.lang.String getAdBreakId(); + + /** + * + * + *
+   * Optional. Immutable. `AdBreak` ID.
+   * Must consist only of lowercase letters, digits, and hyphens. Ad break IDs
+   * have a maximum length of 63 characters.
+   * If not set, an ad break ID is generated as a UUID string.
+   * 
+ * + * + * optional string ad_break_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for adBreakId. + */ + com.google.protobuf.ByteString getAdBreakIdBytes(); + + /** + * + * + *
+   * Optional. Immutable. The asset key of the `LiveStreamEvent` that the ad
+   * break belongs to. Either an asset key or a custom asset key must be
+   * provided for creation.
+   * 
+ * + * + * optional string asset_key = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the assetKey field is set. + */ + boolean hasAssetKey(); + + /** + * + * + *
+   * Optional. Immutable. The asset key of the `LiveStreamEvent` that the ad
+   * break belongs to. Either an asset key or a custom asset key must be
+   * provided for creation.
+   * 
+ * + * + * optional string asset_key = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The assetKey. + */ + java.lang.String getAssetKey(); + + /** + * + * + *
+   * Optional. Immutable. The asset key of the `LiveStreamEvent` that the ad
+   * break belongs to. Either an asset key or a custom asset key must be
+   * provided for creation.
+   * 
+ * + * + * optional string asset_key = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for assetKey. + */ + com.google.protobuf.ByteString getAssetKeyBytes(); + + /** + * + * + *
+   * Optional. Immutable. The custom asset key of the `LiveStreamEvent` that the
+   * ad break belongs to. Either an asset key or a custom asset key must be
+   * provided for creation.
+   * 
+ * + * + * optional string custom_asset_key = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the customAssetKey field is set. + */ + boolean hasCustomAssetKey(); + + /** + * + * + *
+   * Optional. Immutable. The custom asset key of the `LiveStreamEvent` that the
+   * ad break belongs to. Either an asset key or a custom asset key must be
+   * provided for creation.
+   * 
+ * + * + * optional string custom_asset_key = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The customAssetKey. + */ + java.lang.String getCustomAssetKey(); + + /** + * + * + *
+   * Optional. Immutable. The custom asset key of the `LiveStreamEvent` that the
+   * ad break belongs to. Either an asset key or a custom asset key must be
+   * provided for creation.
+   * 
+ * + * + * optional string custom_asset_key = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for customAssetKey. + */ + com.google.protobuf.ByteString getCustomAssetKeyBytes(); + + /** + * + * + *
+   * Optional. The expected start time of the ad break.
+   * When set, the scheduled ad break will be decisioned shortly before the
+   * expected start time.
+   * If this field is not set, ad decisioning begins immediately.
+   * An ad break can be created up to six hours before the expected start time.
+   * 
+ * + * + * optional .google.protobuf.Timestamp expected_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the expectedStartTime field is set. + */ + boolean hasExpectedStartTime(); + + /** + * + * + *
+   * Optional. The expected start time of the ad break.
+   * When set, the scheduled ad break will be decisioned shortly before the
+   * expected start time.
+   * If this field is not set, ad decisioning begins immediately.
+   * An ad break can be created up to six hours before the expected start time.
+   * 
+ * + * + * optional .google.protobuf.Timestamp expected_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The expectedStartTime. + */ + com.google.protobuf.Timestamp getExpectedStartTime(); + + /** + * + * + *
+   * Optional. The expected start time of the ad break.
+   * When set, the scheduled ad break will be decisioned shortly before the
+   * expected start time.
+   * If this field is not set, ad decisioning begins immediately.
+   * An ad break can be created up to six hours before the expected start time.
+   * 
+ * + * + * optional .google.protobuf.Timestamp expected_start_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.TimestampOrBuilder getExpectedStartTimeOrBuilder(); + + /** + * + * + *
+   * Required. The duration of the `AdBreak`.
+   * An expected duration in seconds with up to nine fractional digits, ending
+   * with `s`, for example, `3.5s`. This value will be updated to match the
+   * actual duration from the manifest or pod request after the ad break's state
+   * is
+   * [`COMPLETE`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.COMPLETE].
+   * 
+ * + * + * optional .google.protobuf.Duration duration = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the duration field is set. + */ + boolean hasDuration(); + + /** + * + * + *
+   * Required. The duration of the `AdBreak`.
+   * An expected duration in seconds with up to nine fractional digits, ending
+   * with `s`, for example, `3.5s`. This value will be updated to match the
+   * actual duration from the manifest or pod request after the ad break's state
+   * is
+   * [`COMPLETE`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.COMPLETE].
+   * 
+ * + * + * optional .google.protobuf.Duration duration = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The duration. + */ + com.google.protobuf.Duration getDuration(); + + /** + * + * + *
+   * Required. The duration of the `AdBreak`.
+   * An expected duration in seconds with up to nine fractional digits, ending
+   * with `s`, for example, `3.5s`. This value will be updated to match the
+   * actual duration from the manifest or pod request after the ad break's state
+   * is
+   * [`COMPLETE`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.COMPLETE].
+   * 
+ * + * + * optional .google.protobuf.Duration duration = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); + + /** + * + * + *
+   * Output only. The state of the `AdBreak`.
+   * 
+ * + * + * optional .google.ads.admanager.v1.AdBreakStateEnum.AdBreakState break_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the breakState field is set. + */ + boolean hasBreakState(); + + /** + * + * + *
+   * Output only. The state of the `AdBreak`.
+   * 
+ * + * + * optional .google.ads.admanager.v1.AdBreakStateEnum.AdBreakState break_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for breakState. + */ + int getBreakStateValue(); + + /** + * + * + *
+   * Output only. The state of the `AdBreak`.
+   * 
+ * + * + * optional .google.ads.admanager.v1.AdBreakStateEnum.AdBreakState break_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The breakState. + */ + com.google.ads.admanager.v1.AdBreakStateEnum.AdBreakState getBreakState(); + + /** + * + * + *
+   * Output only. The sequence id of the `AdBreak`.
+   * The unique sequence number of the created ad break. This value is only set
+   * after the `AdBreak` starts decisioning indicated by the ad break state's
+   * being
+   * [`DECISIONED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.DECISIONED]
+   * .
+   * 
+ * + * optional int64 break_sequence = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the breakSequence field is set. + */ + boolean hasBreakSequence(); + + /** + * + * + *
+   * Output only. The sequence id of the `AdBreak`.
+   * The unique sequence number of the created ad break. This value is only set
+   * after the `AdBreak` starts decisioning indicated by the ad break state's
+   * being
+   * [`DECISIONED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.DECISIONED]
+   * .
+   * 
+ * + * optional int64 break_sequence = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The breakSequence. + */ + long getBreakSequence(); + + /** + * + * + *
+   * Optional. The pod template name of the `AdBreak`.
+   * This field is the required unique name across all pod templates in the
+   * network, not the display name.
+   * 
+ * + * optional string pod_template_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the podTemplateName field is set. + */ + boolean hasPodTemplateName(); + + /** + * + * + *
+   * Optional. The pod template name of the `AdBreak`.
+   * This field is the required unique name across all pod templates in the
+   * network, not the display name.
+   * 
+ * + * optional string pod_template_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The podTemplateName. + */ + java.lang.String getPodTemplateName(); + + /** + * + * + *
+   * Optional. The pod template name of the `AdBreak`.
+   * This field is the required unique name across all pod templates in the
+   * network, not the display name.
+   * 
+ * + * optional string pod_template_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for podTemplateName. + */ + com.google.protobuf.ByteString getPodTemplateNameBytes(); + + /** + * + * + *
+   * Optional. The key-value pairs to be included on the ad requests for this
+   * `AdBreak`. Key-value pairs to include on ad requests for this break for
+   * custom criteria targeting in Google Ad Manager, separated by `=` and joined
+   * by
+   * `&`.
+   *
+   * Format:"key1=value&key2=value"
+   * 
+ * + * optional string custom_params = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the customParams field is set. + */ + boolean hasCustomParams(); + + /** + * + * + *
+   * Optional. The key-value pairs to be included on the ad requests for this
+   * `AdBreak`. Key-value pairs to include on ad requests for this break for
+   * custom criteria targeting in Google Ad Manager, separated by `=` and joined
+   * by
+   * `&`.
+   *
+   * Format:"key1=value&key2=value"
+   * 
+ * + * optional string custom_params = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The customParams. + */ + java.lang.String getCustomParams(); + + /** + * + * + *
+   * Optional. The key-value pairs to be included on the ad requests for this
+   * `AdBreak`. Key-value pairs to include on ad requests for this break for
+   * custom criteria targeting in Google Ad Manager, separated by `=` and joined
+   * by
+   * `&`.
+   *
+   * Format:"key1=value&key2=value"
+   * 
+ * + * optional string custom_params = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for customParams. + */ + com.google.protobuf.ByteString getCustomParamsBytes(); + + /** + * + * + *
+   * Optional. The Base64-encoded SCTE-35 command associated with the `AdBreak`.
+   * This field can include the `splice_insert()` or `time_signal()` command.
+   *
+   * **Examples**
+   *
+   * * `time_signal()`
+   *   ```
+   *   /DA0AAAAAAAA///wBQb+cr0AUAAeAhxDVUVJSAAAjn/PAAGlmbAICAAAAAAsoKGKNAIAmsnRfg==
+   *   ```
+   * * `splice_insert()`
+   *   ```
+   *   /DAvAAAAAAAA///wFAVIAACPf+/+c2nALv4AUsz1AAAAAAAKAAhDVUVJAAABNWLbowo=
+   *   ```
+   * 
+ * + * optional string scte_35_cue_out = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the scte35CueOut field is set. + */ + boolean hasScte35CueOut(); + + /** + * + * + *
+   * Optional. The Base64-encoded SCTE-35 command associated with the `AdBreak`.
+   * This field can include the `splice_insert()` or `time_signal()` command.
+   *
+   * **Examples**
+   *
+   * * `time_signal()`
+   *   ```
+   *   /DA0AAAAAAAA///wBQb+cr0AUAAeAhxDVUVJSAAAjn/PAAGlmbAICAAAAAAsoKGKNAIAmsnRfg==
+   *   ```
+   * * `splice_insert()`
+   *   ```
+   *   /DAvAAAAAAAA///wFAVIAACPf+/+c2nALv4AUsz1AAAAAAAKAAhDVUVJAAABNWLbowo=
+   *   ```
+   * 
+ * + * optional string scte_35_cue_out = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The scte35CueOut. + */ + java.lang.String getScte35CueOut(); + + /** + * + * + *
+   * Optional. The Base64-encoded SCTE-35 command associated with the `AdBreak`.
+   * This field can include the `splice_insert()` or `time_signal()` command.
+   *
+   * **Examples**
+   *
+   * * `time_signal()`
+   *   ```
+   *   /DA0AAAAAAAA///wBQb+cr0AUAAeAhxDVUVJSAAAjn/PAAGlmbAICAAAAAAsoKGKNAIAmsnRfg==
+   *   ```
+   * * `splice_insert()`
+   *   ```
+   *   /DAvAAAAAAAA///wFAVIAACPf+/+c2nALv4AUsz1AAAAAAAKAAhDVUVJAAABNWLbowo=
+   *   ```
+   * 
+ * + * optional string scte_35_cue_out = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for scte35CueOut. + */ + com.google.protobuf.ByteString getScte35CueOutBytes(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdBreakServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdBreakServiceProto.java new file mode 100644 index 000000000000..83e4a7583184 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdBreakServiceProto.java @@ -0,0 +1,211 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/ad_break_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class AdBreakServiceProto { + private AdBreakServiceProto() {} + + 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_ads_admanager_v1_GetAdBreakRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_GetAdBreakRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListAdBreaksRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListAdBreaksRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListAdBreaksResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListAdBreaksResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_CreateAdBreakRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_CreateAdBreakRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_UpdateAdBreakRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_UpdateAdBreakRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_DeleteAdBreakRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_DeleteAdBreakRequest_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/ads/admanager/v1/ad_break_servi" + + "ce.proto\022\027google.ads.admanager.v1\032/googl" + + "e/ads/admanager/v1/ad_break_messages.pro" + + "to\032\034google/api/annotations.proto\032\027google" + + "/api/client.proto\032\037google/api/field_beha" + + "vior.proto\032\031google/api/resource.proto\032\033google/protobuf/empty.proto\032" + + " google/protobuf/field_mask.proto\"K\n" + + "\021GetAdBreakRequest\0226\n" + + "\004name\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/AdBreak\"\307\001\n" + + "\023ListAdBreaksRequest\022@\n" + + "\006parent\030\001 \001(\tB0\340A\002\372A*\n" + + "(admanager.googleapis.com/LiveStreamEvent\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\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\022\021\n" + + "\004skip\030\006 \001(\005B\003\340A\001\"x\n" + + "\024ListAdBreaksResponse\0223\n" + + "\tad_breaks\030\001 \003(\0132 .google.ads.admanager.v1.AdBreak\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\022\n\n" + + "total_size\030\003 \001(\005\"\221\001\n" + + "\024CreateAdBreakRequest\022@\n" + + "\006parent\030\001 \001(\tB0\340A\002\372A*\n" + + "(admanager.googleapis.com/LiveStreamEvent\0227\n" + + "\010ad_break\030\002 \001(\0132" + + " .google.ads.admanager.v1.AdBreakB\003\340A\002\"\205\001\n" + + "\024UpdateAdBreakRequest\0227\n" + + "\010ad_break\030\001 \001(\0132 .google.ads.admanager.v1.AdBreakB\003\340A\002\0224\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"N\n" + + "\024DeleteAdBreakRequest\0226\n" + + "\004name\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/AdBreak2\227\013\n" + + "\016AdBreakService\022\250\002\n\n" + + "GetAdBreak\022*.google.ads.admanager.v1.GetAdBreakRequest\032 .google.ads.adm" + + "anager.v1.AdBreak\"\313\001\332A\004name\202\323\344\223\002\275\001\022=/v1/" + + "{name=networks/*/liveStreamEventsByAssetKey/*/adBreaks/*}ZE\022C/v1/{name=networks/" + + "*/liveStreamEventsByCustomAssetKey/*/adB" + + "reaks/*}Z5\0223/v1/{name=networks/*/liveStreamEvents/*/adBreaks/*}\022\273\002\n" + + "\014ListAdBreaks\022,.google.ads.admanager.v1.ListAdBreaksR" + + "equest\032-.google.ads.admanager.v1.ListAdB" + + "reaksResponse\"\315\001\332A\006parent\202\323\344\223\002\275\001\022=/v1/{p" + + "arent=networks/*/liveStreamEventsByAssetKey/*}/adBreaksZE\022C/v1/{parent=networks/" + + "*/liveStreamEventsByCustomAssetKey/*}/ad" + + "BreaksZ5\0223/v1/{parent=networks/*/liveStreamEvents/*}/adBreaks\022\327\002\n\r" + + "CreateAdBreak\022-.google.ads.admanager.v1.CreateAdBreakRequest\032" + + " .google.ads.admanager.v1.AdBreak" + + "\"\364\001\332A\017parent,ad_break\202\323\344\223\002\333\001\"=/v1/{paren" + + "t=networks/*/liveStreamEventsByAssetKey/*}/adBreaks:\010ad_breakZO\"C/v1/{parent=net" + + "works/*/liveStreamEventsByCustomAssetKey/*}/adBreaks:\010ad_breakZ?\"3/v1/{parent=ne" + + "tworks/*/liveStreamEvents/*}/adBreaks:\010ad_break\022\321\001\n\r" + + "UpdateAdBreak\022-.google.ads.admanager.v1.UpdateAdBreakRequest\032 .googl" + + "e.ads.admanager.v1.AdBreak\"o\332A\024ad_break," + + "update_mask\202\323\344\223\002R2F/v1/{ad_break.name=ne" + + "tworks/*/liveStreamEventsByAssetKey/*/adBreaks/*}:\010ad_break\022\244\001\n\r" + + "DeleteAdBreak\022-.google.ads.admanager.v1.DeleteAdBreakReq" + + "uest\032\026.google.protobuf.Empty\"L\332A\004name\202\323\344" + + "\223\002?*=/v1/{name=networks/*/liveStreamEven" + + "tsByAssetKey/*/adBreaks/*}\032G\312A\030admanager" + + ".googleapis.com\322A)https://www.googleapis.com/auth/admanagerB\307\001\n" + + "\033com.google.ads.admanager.v1B\023AdBreakServiceProtoP\001Z@goog" + + "le.golang.org/genproto/googleapis/ads/ad" + + "manager/v1;admanager\252\002\027Google.Ads.AdMana" + + "ger.V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032Googl" + + "e::Ads::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.admanager.v1.AdBreakMessagesProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_ads_admanager_v1_GetAdBreakRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_GetAdBreakRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_GetAdBreakRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_ads_admanager_v1_ListAdBreaksRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_ads_admanager_v1_ListAdBreaksRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListAdBreaksRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", "Skip", + }); + internal_static_google_ads_admanager_v1_ListAdBreaksResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_ads_admanager_v1_ListAdBreaksResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListAdBreaksResponse_descriptor, + new java.lang.String[] { + "AdBreaks", "NextPageToken", "TotalSize", + }); + internal_static_google_ads_admanager_v1_CreateAdBreakRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_ads_admanager_v1_CreateAdBreakRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_CreateAdBreakRequest_descriptor, + new java.lang.String[] { + "Parent", "AdBreak", + }); + internal_static_google_ads_admanager_v1_UpdateAdBreakRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_ads_admanager_v1_UpdateAdBreakRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_UpdateAdBreakRequest_descriptor, + new java.lang.String[] { + "AdBreak", "UpdateMask", + }); + internal_static_google_ads_admanager_v1_DeleteAdBreakRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_ads_admanager_v1_DeleteAdBreakRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_DeleteAdBreakRequest_descriptor, + new java.lang.String[] { + "Name", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.ads.admanager.v1.AdBreakMessagesProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdBreakStateEnum.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdBreakStateEnum.java new file mode 100644 index 000000000000..50c0c3ea883d --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdBreakStateEnum.java @@ -0,0 +1,623 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/early_ad_break_notification_enums.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Wrapper message for
+ * [AdBreakState][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState]
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.AdBreakStateEnum} + */ +public final class AdBreakStateEnum extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.AdBreakStateEnum) + AdBreakStateEnumOrBuilder { + private static final long serialVersionUID = 0L; + + // Use AdBreakStateEnum.newBuilder() to construct. + private AdBreakStateEnum(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AdBreakStateEnum() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AdBreakStateEnum(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.EarlyAdBreakNotificationEnumsProto + .internal_static_google_ads_admanager_v1_AdBreakStateEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.EarlyAdBreakNotificationEnumsProto + .internal_static_google_ads_admanager_v1_AdBreakStateEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.AdBreakStateEnum.class, + com.google.ads.admanager.v1.AdBreakStateEnum.Builder.class); + } + + /** + * + * + *
+   * Represents the state of an ad break
+   * 
+ * + * Protobuf enum {@code google.ads.admanager.v1.AdBreakStateEnum.AdBreakState} + */ + public enum AdBreakState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value. This value is unused.
+     * 
+ * + * AD_BREAK_STATE_UNSPECIFIED = 0; + */ + AD_BREAK_STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The ad break's decisioning has finished. You can delete, but not update
+     * the ad break.
+     * 
+ * + * DECISIONED = 1; + */ + DECISIONED(1), + /** + * + * + *
+     * The ad break has started serving to users. You cannot delete or update
+     * the ad break.
+     * 
+ * + * COMPLETE = 2; + */ + COMPLETE(2), + /** + * + * + *
+     * The ad break is scheduled and decisioning will start later. You can
+     * delete or update the ad break.
+     * 
+ * + * SCHEDULED = 3; + */ + SCHEDULED(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value. This value is unused.
+     * 
+ * + * AD_BREAK_STATE_UNSPECIFIED = 0; + */ + public static final int AD_BREAK_STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The ad break's decisioning has finished. You can delete, but not update
+     * the ad break.
+     * 
+ * + * DECISIONED = 1; + */ + public static final int DECISIONED_VALUE = 1; + + /** + * + * + *
+     * The ad break has started serving to users. You cannot delete or update
+     * the ad break.
+     * 
+ * + * COMPLETE = 2; + */ + public static final int COMPLETE_VALUE = 2; + + /** + * + * + *
+     * The ad break is scheduled and decisioning will start later. You can
+     * delete or update the ad break.
+     * 
+ * + * SCHEDULED = 3; + */ + public static final int SCHEDULED_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static AdBreakState 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 AdBreakState forNumber(int value) { + switch (value) { + case 0: + return AD_BREAK_STATE_UNSPECIFIED; + case 1: + return DECISIONED; + case 2: + return COMPLETE; + case 3: + return SCHEDULED; + 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 AdBreakState findValueByNumber(int number) { + return AdBreakState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.admanager.v1.AdBreakStateEnum.getDescriptor().getEnumTypes().get(0); + } + + private static final AdBreakState[] VALUES = values(); + + public static AdBreakState 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 AdBreakState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.admanager.v1.AdBreakStateEnum.AdBreakState) + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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.admanager.v1.AdBreakStateEnum)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.AdBreakStateEnum other = + (com.google.ads.admanager.v1.AdBreakStateEnum) 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.admanager.v1.AdBreakStateEnum parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.AdBreakStateEnum 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.admanager.v1.AdBreakStateEnum parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.AdBreakStateEnum parseFrom( + 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.admanager.v1.AdBreakStateEnum parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.AdBreakStateEnum parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.AdBreakStateEnum parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.AdBreakStateEnum parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.AdBreakStateEnum parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.AdBreakStateEnum parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.AdBreakStateEnum parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.AdBreakStateEnum parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.AdBreakStateEnum prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Wrapper message for
+   * [AdBreakState][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState]
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.AdBreakStateEnum} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.AdBreakStateEnum) + com.google.ads.admanager.v1.AdBreakStateEnumOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.EarlyAdBreakNotificationEnumsProto + .internal_static_google_ads_admanager_v1_AdBreakStateEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.EarlyAdBreakNotificationEnumsProto + .internal_static_google_ads_admanager_v1_AdBreakStateEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.AdBreakStateEnum.class, + com.google.ads.admanager.v1.AdBreakStateEnum.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.AdBreakStateEnum.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.EarlyAdBreakNotificationEnumsProto + .internal_static_google_ads_admanager_v1_AdBreakStateEnum_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.AdBreakStateEnum getDefaultInstanceForType() { + return com.google.ads.admanager.v1.AdBreakStateEnum.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.AdBreakStateEnum build() { + com.google.ads.admanager.v1.AdBreakStateEnum result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.AdBreakStateEnum buildPartial() { + com.google.ads.admanager.v1.AdBreakStateEnum result = + new com.google.ads.admanager.v1.AdBreakStateEnum(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.AdBreakStateEnum) { + return mergeFrom((com.google.ads.admanager.v1.AdBreakStateEnum) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.AdBreakStateEnum other) { + if (other == com.google.ads.admanager.v1.AdBreakStateEnum.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.AdBreakStateEnum) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.AdBreakStateEnum) + private static final com.google.ads.admanager.v1.AdBreakStateEnum DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.AdBreakStateEnum(); + } + + public static com.google.ads.admanager.v1.AdBreakStateEnum getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdBreakStateEnum parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.AdBreakStateEnum getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdBreakStateEnumOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdBreakStateEnumOrBuilder.java new file mode 100644 index 000000000000..24b8c08e9a48 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdBreakStateEnumOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/early_ad_break_notification_enums.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface AdBreakStateEnumOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.AdBreakStateEnum) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnit.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnit.java index c16472fd2b07..c7496d466a31 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnit.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnit.java @@ -171,7 +171,27 @@ public long getAdUnitId() { * * * - * string parent_ad_unit = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * optional string parent_ad_unit = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the parentAdUnit field is set. + */ + @java.lang.Override + public boolean hasParentAdUnit() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. Immutable. The AdUnit's parent. Every ad unit has a parent except
+   * for the root ad unit, which is created by Google. Format:
+   * "networks/{network_code}/adUnits/{ad_unit_id}"
+   * 
+ * + * + * optional string parent_ad_unit = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * * * @return The parentAdUnit. @@ -199,7 +219,7 @@ public java.lang.String getParentAdUnit() { * * * - * string parent_ad_unit = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * optional string parent_ad_unit = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * * * @return The bytes for parentAdUnit. @@ -326,7 +346,24 @@ public com.google.ads.admanager.v1.AdUnitParentOrBuilder getParentPathOrBuilder( * characters. * * - * string display_name = 9 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the displayName field is set. + */ + @java.lang.Override + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Required. The display name of the ad unit. Its maximum length is 255
+   * characters.
+   * 
+ * + * optional string display_name = 9 [(.google.api.field_behavior) = REQUIRED]; * * @return The displayName. */ @@ -351,7 +388,7 @@ public java.lang.String getDisplayName() { * characters. * * - * string display_name = 9 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 9 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for displayName. */ @@ -377,13 +414,36 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
-   * Immutable. A string used to uniquely identify the ad unit for the purposes
-   * of serving the ad. This attribute is optional and can be set during ad unit
+   * Optional. Immutable. A string used to uniquely identify the ad unit for the
+   * purposes of serving the ad. This attribute can be set during ad unit
    * creation. If it is not provided, it will be assigned by Google based on the
    * ad unit ID.
    * 
* - * string ad_unit_code = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * optional string ad_unit_code = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the adUnitCode field is set. + */ + @java.lang.Override + public boolean hasAdUnitCode() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Optional. Immutable. A string used to uniquely identify the ad unit for the
+   * purposes of serving the ad. This attribute can be set during ad unit
+   * creation. If it is not provided, it will be assigned by Google based on the
+   * ad unit ID.
+   * 
+ * + * + * optional string ad_unit_code = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * * * @return The adUnitCode. */ @@ -404,13 +464,15 @@ public java.lang.String getAdUnitCode() { * * *
-   * Immutable. A string used to uniquely identify the ad unit for the purposes
-   * of serving the ad. This attribute is optional and can be set during ad unit
+   * Optional. Immutable. A string used to uniquely identify the ad unit for the
+   * purposes of serving the ad. This attribute can be set during ad unit
    * creation. If it is not provided, it will be assigned by Google based on the
    * ad unit ID.
    * 
* - * string ad_unit_code = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * optional string ad_unit_code = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * * * @return The bytes for adUnitCode. */ @@ -438,7 +500,25 @@ public com.google.protobuf.ByteString getAdUnitCodeBytes() { * * * - * .google.ads.admanager.v1.AdUnitStatusEnum.AdUnitStatus status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.AdUnitStatusEnum.AdUnitStatus status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Output only. The status of this ad unit.  It defaults to ACTIVE.
+   * 
+ * + * + * optional .google.ads.admanager.v1.AdUnitStatusEnum.AdUnitStatus status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for status. @@ -456,7 +536,7 @@ public int getStatusValue() { * * * - * .google.ads.admanager.v1.AdUnitStatusEnum.AdUnitStatus status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.AdUnitStatusEnum.AdUnitStatus status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The status. @@ -483,7 +563,27 @@ public com.google.ads.admanager.v1.AdUnitStatusEnum.AdUnitStatus getStatus() { * * * - * .google.ads.admanager.v1.TargetWindowEnum.TargetWindow applied_target_window = 44 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.ads.admanager.v1.TargetWindowEnum.TargetWindow applied_target_window = 44 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the appliedTargetWindow field is set. + */ + @java.lang.Override + public boolean hasAppliedTargetWindow() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Optional. The target window directly applied to this AdUnit.
+   * If this field is not set, this AdUnit uses the target window specified in
+   * effectiveTargetWindow.
+   * 
+ * + * + * optional .google.ads.admanager.v1.TargetWindowEnum.TargetWindow applied_target_window = 44 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The enum numeric value on the wire for appliedTargetWindow. @@ -503,7 +603,7 @@ public int getAppliedTargetWindowValue() { * * * - * .google.ads.admanager.v1.TargetWindowEnum.TargetWindow applied_target_window = 44 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.ads.admanager.v1.TargetWindowEnum.TargetWindow applied_target_window = 44 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The appliedTargetWindow. @@ -530,7 +630,27 @@ public com.google.ads.admanager.v1.TargetWindowEnum.TargetWindow getAppliedTarge * * * - * .google.ads.admanager.v1.TargetWindowEnum.TargetWindow effective_target_window = 45 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT, (.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.TargetWindowEnum.TargetWindow effective_target_window = 45 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the effectiveTargetWindow field is set. + */ + @java.lang.Override + public boolean hasEffectiveTargetWindow() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+   * Output only. Non-empty default. The target window of this AdUnit. This
+   * value is inherited from ancestor AdUnits and defaults to TOP if no AdUnit
+   * in the hierarchy specifies it.
+   * 
+ * + * + * optional .google.ads.admanager.v1.TargetWindowEnum.TargetWindow effective_target_window = 45 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT, (.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for effectiveTargetWindow. @@ -550,7 +670,7 @@ public int getEffectiveTargetWindowValue() { * * * - * .google.ads.admanager.v1.TargetWindowEnum.TargetWindow effective_target_window = 45 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT, (.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.TargetWindowEnum.TargetWindow effective_target_window = 45 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT, (.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The effectiveTargetWindow. @@ -741,7 +861,24 @@ public com.google.protobuf.ByteString getTeamsBytes(int index) { * characters. * * - * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * optional string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the description field is set. + */ + @java.lang.Override + public boolean hasDescription() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+   * Optional. A description of the ad unit. The maximum length is 65,535
+   * characters.
+   * 
+ * + * optional string description = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The description. */ @@ -766,7 +903,7 @@ public java.lang.String getDescription() { * characters. * * - * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * optional string description = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for description. */ @@ -796,7 +933,26 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * feature is only available for Ad Manager 360 accounts. * * - * bool explicitly_targeted = 6 [(.google.api.field_behavior) = OPTIONAL]; + * optional bool explicitly_targeted = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the explicitlyTargeted field is set. + */ + @java.lang.Override + public boolean hasExplicitlyTargeted() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+   * Optional. If this field is set to true, then the AdUnit will not be
+   * implicitly targeted when its parent is. Traffickers must explicitly
+   * target such an AdUnit or else no line items will serve to it. This
+   * feature is only available for Ad Manager 360 accounts.
+   * 
+ * + * optional bool explicitly_targeted = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The explicitlyTargeted. */ @@ -815,7 +971,23 @@ public boolean getExplicitlyTargeted() { * Output only. This field is set to true if the ad unit has any children. * * - * bool has_children = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool has_children = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the hasChildren field is set. + */ + @java.lang.Override + public boolean hasHasChildren() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
+   * Output only. This field is set to true if the ad unit has any children.
+   * 
+ * + * optional bool has_children = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The hasChildren. */ @@ -834,14 +1006,15 @@ public boolean getHasChildren() { * Output only. The time this AdUnit was last modified. * * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the updateTime field is set. */ @java.lang.Override public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** @@ -851,7 +1024,8 @@ public boolean hasUpdateTime() { * Output only. The time this AdUnit was last modified. * * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The updateTime. @@ -868,7 +1042,8 @@ public com.google.protobuf.Timestamp getUpdateTime() { * Output only. The time this AdUnit was last modified. * * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override @@ -975,12 +1150,38 @@ public com.google.ads.admanager.v1.AdUnitSizeOrBuilder getAdUnitSizesOrBuilder(i * corresponds to in an external set top box ad campaign system. * * - * string external_set_top_box_channel_id = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional string external_set_top_box_channel_id = 17 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.ads.admanager.v1.AdUnit.external_set_top_box_channel_id is deprecated. See + * google/ads/admanager/v1/ad_unit_messages.proto;l=139 + * @return Whether the externalSetTopBoxChannelId field is set. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean hasExternalSetTopBoxChannelId() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
+   * Optional. Determines what set top box video on demand channel this ad unit
+   * corresponds to in an external set top box ad campaign system.
+   * 
+ * + * + * optional string external_set_top_box_channel_id = 17 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.ads.admanager.v1.AdUnit.external_set_top_box_channel_id is deprecated. See + * google/ads/admanager/v1/ad_unit_messages.proto;l=139 * @return The externalSetTopBoxChannelId. */ @java.lang.Override + @java.lang.Deprecated public java.lang.String getExternalSetTopBoxChannelId() { java.lang.Object ref = externalSetTopBoxChannelId_; if (ref instanceof java.lang.String) { @@ -1001,12 +1202,16 @@ public java.lang.String getExternalSetTopBoxChannelId() { * corresponds to in an external set top box ad campaign system. * * - * string external_set_top_box_channel_id = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional string external_set_top_box_channel_id = 17 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.ads.admanager.v1.AdUnit.external_set_top_box_channel_id is deprecated. See + * google/ads/admanager/v1/ad_unit_messages.proto;l=139 * @return The bytes for externalSetTopBoxChannelId. */ @java.lang.Override + @java.lang.Deprecated public com.google.protobuf.ByteString getExternalSetTopBoxChannelIdBytes() { java.lang.Object ref = externalSetTopBoxChannelId_; if (ref instanceof java.lang.String) { @@ -1031,14 +1236,15 @@ public com.google.protobuf.ByteString getExternalSetTopBoxChannelIdBytes() { * will not refresh. * * - * .google.protobuf.Duration refresh_delay = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional .google.protobuf.Duration refresh_delay = 19 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the refreshDelay field is set. */ @java.lang.Override public boolean hasRefreshDelay() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** @@ -1050,7 +1256,8 @@ public boolean hasRefreshDelay() { * will not refresh. * * - * .google.protobuf.Duration refresh_delay = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional .google.protobuf.Duration refresh_delay = 19 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The refreshDelay. @@ -1071,7 +1278,8 @@ public com.google.protobuf.Duration getRefreshDelay() { * will not refresh. * * - * .google.protobuf.Duration refresh_delay = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional .google.protobuf.Duration refresh_delay = 19 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -1178,8 +1386,8 @@ public com.google.ads.admanager.v1.AppliedLabelOrBuilder getAppliedLabelsOrBuild *
    * Output only. Contains the set of labels applied directly to the ad unit as
    * well as those inherited from the parent ad units. If a label has been
-   * negated, only the negated label is returned. This field is readonly and is
-   * assigned by Google.
+   * negated, only the negated label is returned. This attribute is assigned by
+   * Google.
    * 
* * @@ -1197,8 +1405,8 @@ public java.util.List getEffectiveAppl *
    * Output only. Contains the set of labels applied directly to the ad unit as
    * well as those inherited from the parent ad units. If a label has been
-   * negated, only the negated label is returned. This field is readonly and is
-   * assigned by Google.
+   * negated, only the negated label is returned. This attribute is assigned by
+   * Google.
    * 
* * @@ -1217,8 +1425,8 @@ public java.util.List getEffectiveAppl *
    * Output only. Contains the set of labels applied directly to the ad unit as
    * well as those inherited from the parent ad units. If a label has been
-   * negated, only the negated label is returned. This field is readonly and is
-   * assigned by Google.
+   * negated, only the negated label is returned. This attribute is assigned by
+   * Google.
    * 
* * @@ -1236,8 +1444,8 @@ public int getEffectiveAppliedLabelsCount() { *
    * Output only. Contains the set of labels applied directly to the ad unit as
    * well as those inherited from the parent ad units. If a label has been
-   * negated, only the negated label is returned. This field is readonly and is
-   * assigned by Google.
+   * negated, only the negated label is returned. This attribute is assigned by
+   * Google.
    * 
* * @@ -1255,8 +1463,8 @@ public com.google.ads.admanager.v1.AppliedLabel getEffectiveAppliedLabels(int in *
    * Output only. Contains the set of labels applied directly to the ad unit as
    * well as those inherited from the parent ad units. If a label has been
-   * negated, only the negated label is returned. This field is readonly and is
-   * assigned by Google.
+   * negated, only the negated label is returned. This attribute is assigned by
+   * Google.
    * 
* * @@ -1463,12 +1671,31 @@ public com.google.ads.admanager.v1.LabelFrequencyCap getEffectiveLabelFrequencyC * * *
-   * Optional. The smart size mode for this ad unit. This attribute is optional
-   * and defaults to SmartSizeMode.NONE for fixed sizes.
+   * Optional. Non-empty default. The smart size mode for this ad unit. This
+   * attribute defaults to SmartSizeMode.NONE for fixed sizes.
    * 
* * - * .google.ads.admanager.v1.SmartSizeModeEnum.SmartSizeMode smart_size_mode = 25 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.ads.admanager.v1.SmartSizeModeEnum.SmartSizeMode smart_size_mode = 25 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT]; + * + * + * @return Whether the smartSizeMode field is set. + */ + @java.lang.Override + public boolean hasSmartSizeMode() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
+   * Optional. Non-empty default. The smart size mode for this ad unit. This
+   * attribute defaults to SmartSizeMode.NONE for fixed sizes.
+   * 
+ * + * + * optional .google.ads.admanager.v1.SmartSizeModeEnum.SmartSizeMode smart_size_mode = 25 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT]; * * * @return The enum numeric value on the wire for smartSizeMode. @@ -1482,12 +1709,12 @@ public int getSmartSizeModeValue() { * * *
-   * Optional. The smart size mode for this ad unit. This attribute is optional
-   * and defaults to SmartSizeMode.NONE for fixed sizes.
+   * Optional. Non-empty default. The smart size mode for this ad unit. This
+   * attribute defaults to SmartSizeMode.NONE for fixed sizes.
    * 
* * - * .google.ads.admanager.v1.SmartSizeModeEnum.SmartSizeMode smart_size_mode = 25 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.ads.admanager.v1.SmartSizeModeEnum.SmartSizeMode smart_size_mode = 25 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT]; * * * @return The smartSizeMode. @@ -1508,9 +1735,9 @@ public com.google.ads.admanager.v1.SmartSizeModeEnum.SmartSizeMode getSmartSizeM * * *
-   * Optional. The value of AdSense enabled directly applied to this ad unit.
-   * This attribute is optional and if not specified this ad unit will inherit
-   * the value of effectiveAdsenseEnabled from its ancestors.
+   * Optional. The value of AdSense enabled directly applied to this ad unit. If
+   * not specified this ad unit will inherit the value of
+   * effectiveAdsenseEnabled from its ancestors.
    * 
* * optional bool applied_adsense_enabled = 26 [(.google.api.field_behavior) = OPTIONAL]; @@ -1520,16 +1747,16 @@ public com.google.ads.admanager.v1.SmartSizeModeEnum.SmartSizeMode getSmartSizeM */ @java.lang.Override public boolean hasAppliedAdsenseEnabled() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** * * *
-   * Optional. The value of AdSense enabled directly applied to this ad unit.
-   * This attribute is optional and if not specified this ad unit will inherit
-   * the value of effectiveAdsenseEnabled from its ancestors.
+   * Optional. The value of AdSense enabled directly applied to this ad unit. If
+   * not specified this ad unit will inherit the value of
+   * effectiveAdsenseEnabled from its ancestors.
    * 
* * optional bool applied_adsense_enabled = 26 [(.google.api.field_behavior) = OPTIONAL]; @@ -1555,7 +1782,30 @@ public boolean getAppliedAdsenseEnabled() { * unit has set appliedAdsenseEnabled, the attribute is defaulted to true. * * - * bool effective_adsense_enabled = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional bool effective_adsense_enabled = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the effectiveAdsenseEnabled field is set. + */ + @java.lang.Override + public boolean hasEffectiveAdsenseEnabled() { + return ((bitField0_ & 0x00004000) != 0); + } + + /** + * + * + *
+   * Output only. Specifies whether or not the AdUnit is enabled for serving ads
+   * from the AdSense content network. This attribute defaults to the ad unit's
+   * parent or ancestor's setting if one has been set. If no ancestor of the ad
+   * unit has set appliedAdsenseEnabled, the attribute is defaulted to true.
+   * 
+ * + * + * optional bool effective_adsense_enabled = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The effectiveAdsenseEnabled. */ @@ -1581,7 +1831,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(adUnitCode_)) { + if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, adUnitCode_); } for (int i = 0; i < appliedTeams_.size(); i++) { @@ -1590,30 +1840,28 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < teams_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, teams_.getRaw(i)); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + if (((bitField0_ & 0x00000040) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); } - if (explicitlyTargeted_ != false) { + if (((bitField0_ & 0x00000080) != 0)) { output.writeBool(6, explicitlyTargeted_); } - if (hasChildren_ != false) { + if (((bitField0_ & 0x00000100) != 0)) { output.writeBool(7, hasChildren_); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { output.writeMessage(8, getUpdateTime()); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, displayName_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentAdUnit_)) { + if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, parentAdUnit_); } for (int i = 0; i < parentPath_.size(); i++) { output.writeMessage(11, parentPath_.get(i)); } - if (status_ - != com.google.ads.admanager.v1.AdUnitStatusEnum.AdUnitStatus.AD_UNIT_STATUS_UNSPECIFIED - .getNumber()) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeEnum(13, status_); } for (int i = 0; i < adUnitSizes_.size(); i++) { @@ -1622,10 +1870,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (adUnitId_ != 0L) { output.writeInt64(15, adUnitId_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalSetTopBoxChannelId_)) { + if (((bitField0_ & 0x00000400) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 17, externalSetTopBoxChannelId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000800) != 0)) { output.writeMessage(19, getRefreshDelay()); } for (int i = 0; i < appliedLabels_.size(); i++) { @@ -1640,25 +1888,19 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < effectiveLabelFrequencyCaps_.size(); i++) { output.writeMessage(24, effectiveLabelFrequencyCaps_.get(i)); } - if (smartSizeMode_ - != com.google.ads.admanager.v1.SmartSizeModeEnum.SmartSizeMode.SMART_SIZE_MODE_UNSPECIFIED - .getNumber()) { + if (((bitField0_ & 0x00001000) != 0)) { output.writeEnum(25, smartSizeMode_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00002000) != 0)) { output.writeBool(26, appliedAdsenseEnabled_); } - if (effectiveAdsenseEnabled_ != false) { + if (((bitField0_ & 0x00004000) != 0)) { output.writeBool(27, effectiveAdsenseEnabled_); } - if (appliedTargetWindow_ - != com.google.ads.admanager.v1.TargetWindowEnum.TargetWindow.TARGET_WINDOW_UNSPECIFIED - .getNumber()) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeEnum(44, appliedTargetWindow_); } - if (effectiveTargetWindow_ - != com.google.ads.admanager.v1.TargetWindowEnum.TargetWindow.TARGET_WINDOW_UNSPECIFIED - .getNumber()) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeEnum(45, effectiveTargetWindow_); } getUnknownFields().writeTo(output); @@ -1673,7 +1915,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(adUnitCode_)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, adUnitCode_); } { @@ -1692,30 +1934,28 @@ public int getSerializedSize() { size += dataSize; size += 1 * getTeamsList().size(); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); } - if (explicitlyTargeted_ != false) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, explicitlyTargeted_); } - if (hasChildren_ != false) { + if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, hasChildren_); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime()); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, displayName_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentAdUnit_)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, parentAdUnit_); } for (int i = 0; i < parentPath_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, parentPath_.get(i)); } - if (status_ - != com.google.ads.admanager.v1.AdUnitStatusEnum.AdUnitStatus.AD_UNIT_STATUS_UNSPECIFIED - .getNumber()) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, status_); } for (int i = 0; i < adUnitSizes_.size(); i++) { @@ -1724,11 +1964,11 @@ public int getSerializedSize() { if (adUnitId_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(15, adUnitId_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalSetTopBoxChannelId_)) { + if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, externalSetTopBoxChannelId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getRefreshDelay()); } for (int i = 0; i < appliedLabels_.size(); i++) { @@ -1749,25 +1989,19 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 24, effectiveLabelFrequencyCaps_.get(i)); } - if (smartSizeMode_ - != com.google.ads.admanager.v1.SmartSizeModeEnum.SmartSizeMode.SMART_SIZE_MODE_UNSPECIFIED - .getNumber()) { + if (((bitField0_ & 0x00001000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(25, smartSizeMode_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00002000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(26, appliedAdsenseEnabled_); } - if (effectiveAdsenseEnabled_ != false) { + if (((bitField0_ & 0x00004000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(27, effectiveAdsenseEnabled_); } - if (appliedTargetWindow_ - != com.google.ads.admanager.v1.TargetWindowEnum.TargetWindow.TARGET_WINDOW_UNSPECIFIED - .getNumber()) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(44, appliedTargetWindow_); } - if (effectiveTargetWindow_ - != com.google.ads.admanager.v1.TargetWindowEnum.TargetWindow.TARGET_WINDOW_UNSPECIFIED - .getNumber()) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(45, effectiveTargetWindow_); } size += getUnknownFields().getSerializedSize(); @@ -1787,25 +2021,55 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (getAdUnitId() != other.getAdUnitId()) return false; - if (!getParentAdUnit().equals(other.getParentAdUnit())) return false; + if (hasParentAdUnit() != other.hasParentAdUnit()) return false; + if (hasParentAdUnit()) { + if (!getParentAdUnit().equals(other.getParentAdUnit())) return false; + } if (!getParentPathList().equals(other.getParentPathList())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getAdUnitCode().equals(other.getAdUnitCode())) return false; - if (status_ != other.status_) return false; - if (appliedTargetWindow_ != other.appliedTargetWindow_) return false; - if (effectiveTargetWindow_ != other.effectiveTargetWindow_) return false; + if (hasDisplayName() != other.hasDisplayName()) return false; + if (hasDisplayName()) { + if (!getDisplayName().equals(other.getDisplayName())) return false; + } + if (hasAdUnitCode() != other.hasAdUnitCode()) return false; + if (hasAdUnitCode()) { + if (!getAdUnitCode().equals(other.getAdUnitCode())) return false; + } + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (status_ != other.status_) return false; + } + if (hasAppliedTargetWindow() != other.hasAppliedTargetWindow()) return false; + if (hasAppliedTargetWindow()) { + if (appliedTargetWindow_ != other.appliedTargetWindow_) return false; + } + if (hasEffectiveTargetWindow() != other.hasEffectiveTargetWindow()) return false; + if (hasEffectiveTargetWindow()) { + if (effectiveTargetWindow_ != other.effectiveTargetWindow_) return false; + } if (!getAppliedTeamsList().equals(other.getAppliedTeamsList())) return false; if (!getTeamsList().equals(other.getTeamsList())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (getExplicitlyTargeted() != other.getExplicitlyTargeted()) return false; - if (getHasChildren() != other.getHasChildren()) return false; + if (hasDescription() != other.hasDescription()) return false; + if (hasDescription()) { + if (!getDescription().equals(other.getDescription())) return false; + } + if (hasExplicitlyTargeted() != other.hasExplicitlyTargeted()) return false; + if (hasExplicitlyTargeted()) { + if (getExplicitlyTargeted() != other.getExplicitlyTargeted()) return false; + } + if (hasHasChildren() != other.hasHasChildren()) return false; + if (hasHasChildren()) { + if (getHasChildren() != other.getHasChildren()) return false; + } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (!getAdUnitSizesList().equals(other.getAdUnitSizesList())) return false; - if (!getExternalSetTopBoxChannelId().equals(other.getExternalSetTopBoxChannelId())) - return false; + if (hasExternalSetTopBoxChannelId() != other.hasExternalSetTopBoxChannelId()) return false; + if (hasExternalSetTopBoxChannelId()) { + if (!getExternalSetTopBoxChannelId().equals(other.getExternalSetTopBoxChannelId())) + return false; + } if (hasRefreshDelay() != other.hasRefreshDelay()) return false; if (hasRefreshDelay()) { if (!getRefreshDelay().equals(other.getRefreshDelay())) return false; @@ -1817,12 +2081,18 @@ public boolean equals(final java.lang.Object obj) { return false; if (!getEffectiveLabelFrequencyCapsList().equals(other.getEffectiveLabelFrequencyCapsList())) return false; - if (smartSizeMode_ != other.smartSizeMode_) return false; + if (hasSmartSizeMode() != other.hasSmartSizeMode()) return false; + if (hasSmartSizeMode()) { + if (smartSizeMode_ != other.smartSizeMode_) return false; + } if (hasAppliedAdsenseEnabled() != other.hasAppliedAdsenseEnabled()) return false; if (hasAppliedAdsenseEnabled()) { if (getAppliedAdsenseEnabled() != other.getAppliedAdsenseEnabled()) return false; } - if (getEffectiveAdsenseEnabled() != other.getEffectiveAdsenseEnabled()) return false; + if (hasEffectiveAdsenseEnabled() != other.hasEffectiveAdsenseEnabled()) return false; + if (hasEffectiveAdsenseEnabled()) { + if (getEffectiveAdsenseEnabled() != other.getEffectiveAdsenseEnabled()) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1838,22 +2108,34 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + AD_UNIT_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAdUnitId()); - hash = (37 * hash) + PARENT_AD_UNIT_FIELD_NUMBER; - hash = (53 * hash) + getParentAdUnit().hashCode(); + if (hasParentAdUnit()) { + hash = (37 * hash) + PARENT_AD_UNIT_FIELD_NUMBER; + hash = (53 * hash) + getParentAdUnit().hashCode(); + } if (getParentPathCount() > 0) { hash = (37 * hash) + PARENT_PATH_FIELD_NUMBER; hash = (53 * hash) + getParentPathList().hashCode(); } - hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - hash = (37 * hash) + AD_UNIT_CODE_FIELD_NUMBER; - hash = (53 * hash) + getAdUnitCode().hashCode(); - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + status_; - hash = (37 * hash) + APPLIED_TARGET_WINDOW_FIELD_NUMBER; - hash = (53 * hash) + appliedTargetWindow_; - hash = (37 * hash) + EFFECTIVE_TARGET_WINDOW_FIELD_NUMBER; - hash = (53 * hash) + effectiveTargetWindow_; + if (hasDisplayName()) { + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + } + if (hasAdUnitCode()) { + hash = (37 * hash) + AD_UNIT_CODE_FIELD_NUMBER; + hash = (53 * hash) + getAdUnitCode().hashCode(); + } + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + } + if (hasAppliedTargetWindow()) { + hash = (37 * hash) + APPLIED_TARGET_WINDOW_FIELD_NUMBER; + hash = (53 * hash) + appliedTargetWindow_; + } + if (hasEffectiveTargetWindow()) { + hash = (37 * hash) + EFFECTIVE_TARGET_WINDOW_FIELD_NUMBER; + hash = (53 * hash) + effectiveTargetWindow_; + } if (getAppliedTeamsCount() > 0) { hash = (37 * hash) + APPLIED_TEAMS_FIELD_NUMBER; hash = (53 * hash) + getAppliedTeamsList().hashCode(); @@ -1862,12 +2144,18 @@ public int hashCode() { hash = (37 * hash) + TEAMS_FIELD_NUMBER; hash = (53 * hash) + getTeamsList().hashCode(); } - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (37 * hash) + EXPLICITLY_TARGETED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getExplicitlyTargeted()); - hash = (37 * hash) + HAS_CHILDREN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHasChildren()); + if (hasDescription()) { + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + } + if (hasExplicitlyTargeted()) { + hash = (37 * hash) + EXPLICITLY_TARGETED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getExplicitlyTargeted()); + } + if (hasHasChildren()) { + hash = (37 * hash) + HAS_CHILDREN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHasChildren()); + } if (hasUpdateTime()) { hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getUpdateTime().hashCode(); @@ -1876,8 +2164,10 @@ public int hashCode() { hash = (37 * hash) + AD_UNIT_SIZES_FIELD_NUMBER; hash = (53 * hash) + getAdUnitSizesList().hashCode(); } - hash = (37 * hash) + EXTERNAL_SET_TOP_BOX_CHANNEL_ID_FIELD_NUMBER; - hash = (53 * hash) + getExternalSetTopBoxChannelId().hashCode(); + if (hasExternalSetTopBoxChannelId()) { + hash = (37 * hash) + EXTERNAL_SET_TOP_BOX_CHANNEL_ID_FIELD_NUMBER; + hash = (53 * hash) + getExternalSetTopBoxChannelId().hashCode(); + } if (hasRefreshDelay()) { hash = (37 * hash) + REFRESH_DELAY_FIELD_NUMBER; hash = (53 * hash) + getRefreshDelay().hashCode(); @@ -1898,14 +2188,18 @@ public int hashCode() { hash = (37 * hash) + EFFECTIVE_LABEL_FREQUENCY_CAPS_FIELD_NUMBER; hash = (53 * hash) + getEffectiveLabelFrequencyCapsList().hashCode(); } - hash = (37 * hash) + SMART_SIZE_MODE_FIELD_NUMBER; - hash = (53 * hash) + smartSizeMode_; + if (hasSmartSizeMode()) { + hash = (37 * hash) + SMART_SIZE_MODE_FIELD_NUMBER; + hash = (53 * hash) + smartSizeMode_; + } if (hasAppliedAdsenseEnabled()) { hash = (37 * hash) + APPLIED_ADSENSE_ENABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAppliedAdsenseEnabled()); } - hash = (37 * hash) + EFFECTIVE_ADSENSE_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEffectiveAdsenseEnabled()); + if (hasEffectiveAdsenseEnabled()) { + hash = (37 * hash) + EFFECTIVE_ADSENSE_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEffectiveAdsenseEnabled()); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2231,23 +2525,30 @@ private void buildPartial0(com.google.ads.admanager.v1.AdUnit result) { if (((from_bitField0_ & 0x00000002) != 0)) { result.adUnitId_ = adUnitId_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.parentAdUnit_ = parentAdUnit_; + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000010) != 0)) { result.displayName_ = displayName_; + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000020) != 0)) { result.adUnitCode_ = adUnitCode_; + to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000040) != 0)) { result.status_ = status_; + to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000080) != 0)) { result.appliedTargetWindow_ = appliedTargetWindow_; + to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000100) != 0)) { result.effectiveTargetWindow_ = effectiveTargetWindow_; + to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000200) != 0)) { appliedTeams_.makeImmutable(); @@ -2259,35 +2560,40 @@ private void buildPartial0(com.google.ads.admanager.v1.AdUnit result) { } if (((from_bitField0_ & 0x00000800) != 0)) { result.description_ = description_; + to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00001000) != 0)) { result.explicitlyTargeted_ = explicitlyTargeted_; + to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00002000) != 0)) { result.hasChildren_ = hasChildren_; + to_bitField0_ |= 0x00000100; } - int to_bitField0_ = 0; if (((from_bitField0_ & 0x00004000) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); - to_bitField0_ |= 0x00000001; + to_bitField0_ |= 0x00000200; } if (((from_bitField0_ & 0x00010000) != 0)) { result.externalSetTopBoxChannelId_ = externalSetTopBoxChannelId_; + to_bitField0_ |= 0x00000400; } if (((from_bitField0_ & 0x00020000) != 0)) { result.refreshDelay_ = refreshDelayBuilder_ == null ? refreshDelay_ : refreshDelayBuilder_.build(); - to_bitField0_ |= 0x00000002; + to_bitField0_ |= 0x00000800; } if (((from_bitField0_ & 0x00400000) != 0)) { result.smartSizeMode_ = smartSizeMode_; + to_bitField0_ |= 0x00001000; } if (((from_bitField0_ & 0x00800000) != 0)) { result.appliedAdsenseEnabled_ = appliedAdsenseEnabled_; - to_bitField0_ |= 0x00000004; + to_bitField0_ |= 0x00002000; } if (((from_bitField0_ & 0x01000000) != 0)) { result.effectiveAdsenseEnabled_ = effectiveAdsenseEnabled_; + to_bitField0_ |= 0x00004000; } result.bitField0_ |= to_bitField0_; } @@ -2345,7 +2651,7 @@ public Builder mergeFrom(com.google.ads.admanager.v1.AdUnit other) { if (other.getAdUnitId() != 0L) { setAdUnitId(other.getAdUnitId()); } - if (!other.getParentAdUnit().isEmpty()) { + if (other.hasParentAdUnit()) { parentAdUnit_ = other.parentAdUnit_; bitField0_ |= 0x00000004; onChanged(); @@ -2377,24 +2683,24 @@ public Builder mergeFrom(com.google.ads.admanager.v1.AdUnit other) { } } } - if (!other.getDisplayName().isEmpty()) { + if (other.hasDisplayName()) { displayName_ = other.displayName_; bitField0_ |= 0x00000010; onChanged(); } - if (!other.getAdUnitCode().isEmpty()) { + if (other.hasAdUnitCode()) { adUnitCode_ = other.adUnitCode_; bitField0_ |= 0x00000020; onChanged(); } - if (other.status_ != 0) { - setStatusValue(other.getStatusValue()); + if (other.hasStatus()) { + setStatus(other.getStatus()); } - if (other.appliedTargetWindow_ != 0) { - setAppliedTargetWindowValue(other.getAppliedTargetWindowValue()); + if (other.hasAppliedTargetWindow()) { + setAppliedTargetWindow(other.getAppliedTargetWindow()); } - if (other.effectiveTargetWindow_ != 0) { - setEffectiveTargetWindowValue(other.getEffectiveTargetWindowValue()); + if (other.hasEffectiveTargetWindow()) { + setEffectiveTargetWindow(other.getEffectiveTargetWindow()); } if (!other.appliedTeams_.isEmpty()) { if (appliedTeams_.isEmpty()) { @@ -2416,15 +2722,15 @@ public Builder mergeFrom(com.google.ads.admanager.v1.AdUnit other) { } onChanged(); } - if (!other.getDescription().isEmpty()) { + if (other.hasDescription()) { description_ = other.description_; bitField0_ |= 0x00000800; onChanged(); } - if (other.getExplicitlyTargeted() != false) { + if (other.hasExplicitlyTargeted()) { setExplicitlyTargeted(other.getExplicitlyTargeted()); } - if (other.getHasChildren() != false) { + if (other.hasHasChildren()) { setHasChildren(other.getHasChildren()); } if (other.hasUpdateTime()) { @@ -2457,7 +2763,7 @@ public Builder mergeFrom(com.google.ads.admanager.v1.AdUnit other) { } } } - if (!other.getExternalSetTopBoxChannelId().isEmpty()) { + if (other.hasExternalSetTopBoxChannelId()) { externalSetTopBoxChannelId_ = other.externalSetTopBoxChannelId_; bitField0_ |= 0x00010000; onChanged(); @@ -2573,13 +2879,13 @@ public Builder mergeFrom(com.google.ads.admanager.v1.AdUnit other) { } } } - if (other.smartSizeMode_ != 0) { - setSmartSizeModeValue(other.getSmartSizeModeValue()); + if (other.hasSmartSizeMode()) { + setSmartSizeMode(other.getSmartSizeMode()); } if (other.hasAppliedAdsenseEnabled()) { setAppliedAdsenseEnabled(other.getAppliedAdsenseEnabled()); } - if (other.getEffectiveAdsenseEnabled() != false) { + if (other.hasEffectiveAdsenseEnabled()) { setEffectiveAdsenseEnabled(other.getEffectiveAdsenseEnabled()); } this.mergeUnknownFields(other.getUnknownFields()); @@ -3005,7 +3311,26 @@ public Builder clearAdUnitId() { * * * - * string parent_ad_unit = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * optional string parent_ad_unit = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the parentAdUnit field is set. + */ + public boolean hasParentAdUnit() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. Immutable. The AdUnit's parent. Every ad unit has a parent except
+     * for the root ad unit, which is created by Google. Format:
+     * "networks/{network_code}/adUnits/{ad_unit_id}"
+     * 
+ * + * + * optional string parent_ad_unit = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * * * @return The parentAdUnit. @@ -3032,7 +3357,7 @@ public java.lang.String getParentAdUnit() { * * * - * string parent_ad_unit = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * optional string parent_ad_unit = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * * * @return The bytes for parentAdUnit. @@ -3059,7 +3384,7 @@ public com.google.protobuf.ByteString getParentAdUnitBytes() { * * * - * string parent_ad_unit = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * optional string parent_ad_unit = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * * * @param value The parentAdUnit to set. @@ -3085,7 +3410,7 @@ public Builder setParentAdUnit(java.lang.String value) { * * * - * string parent_ad_unit = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * optional string parent_ad_unit = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -3107,7 +3432,7 @@ public Builder clearParentAdUnit() { * * * - * string parent_ad_unit = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * optional string parent_ad_unit = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * * * @param value The bytes for parentAdUnit to set. @@ -3573,7 +3898,23 @@ public com.google.ads.admanager.v1.AdUnitParent.Builder addParentPathBuilder(int * characters. * * - * string display_name = 9 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the displayName field is set. + */ + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Required. The display name of the ad unit. Its maximum length is 255
+     * characters.
+     * 
+ * + * optional string display_name = 9 [(.google.api.field_behavior) = REQUIRED]; * * @return The displayName. */ @@ -3597,7 +3938,7 @@ public java.lang.String getDisplayName() { * characters. * * - * string display_name = 9 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 9 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for displayName. */ @@ -3621,7 +3962,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * characters. * * - * string display_name = 9 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 9 [(.google.api.field_behavior) = REQUIRED]; * * @param value The displayName to set. * @return This builder for chaining. @@ -3644,7 +3985,7 @@ public Builder setDisplayName(java.lang.String value) { * characters. * * - * string display_name = 9 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 9 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ @@ -3663,7 +4004,7 @@ public Builder clearDisplayName() { * characters. * * - * string display_name = 9 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 9 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for displayName to set. * @return This builder for chaining. @@ -3685,13 +4026,35 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Immutable. A string used to uniquely identify the ad unit for the purposes
-     * of serving the ad. This attribute is optional and can be set during ad unit
+     * Optional. Immutable. A string used to uniquely identify the ad unit for the
+     * purposes of serving the ad. This attribute can be set during ad unit
      * creation. If it is not provided, it will be assigned by Google based on the
      * ad unit ID.
      * 
* - * string ad_unit_code = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * optional string ad_unit_code = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the adUnitCode field is set. + */ + public boolean hasAdUnitCode() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Optional. Immutable. A string used to uniquely identify the ad unit for the
+     * purposes of serving the ad. This attribute can be set during ad unit
+     * creation. If it is not provided, it will be assigned by Google based on the
+     * ad unit ID.
+     * 
+ * + * + * optional string ad_unit_code = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * * * @return The adUnitCode. */ @@ -3711,13 +4074,15 @@ public java.lang.String getAdUnitCode() { * * *
-     * Immutable. A string used to uniquely identify the ad unit for the purposes
-     * of serving the ad. This attribute is optional and can be set during ad unit
+     * Optional. Immutable. A string used to uniquely identify the ad unit for the
+     * purposes of serving the ad. This attribute can be set during ad unit
      * creation. If it is not provided, it will be assigned by Google based on the
      * ad unit ID.
      * 
* - * string ad_unit_code = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * optional string ad_unit_code = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * * * @return The bytes for adUnitCode. */ @@ -3737,13 +4102,15 @@ public com.google.protobuf.ByteString getAdUnitCodeBytes() { * * *
-     * Immutable. A string used to uniquely identify the ad unit for the purposes
-     * of serving the ad. This attribute is optional and can be set during ad unit
+     * Optional. Immutable. A string used to uniquely identify the ad unit for the
+     * purposes of serving the ad. This attribute can be set during ad unit
      * creation. If it is not provided, it will be assigned by Google based on the
      * ad unit ID.
      * 
* - * string ad_unit_code = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * optional string ad_unit_code = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * * * @param value The adUnitCode to set. * @return This builder for chaining. @@ -3762,13 +4129,15 @@ public Builder setAdUnitCode(java.lang.String value) { * * *
-     * Immutable. A string used to uniquely identify the ad unit for the purposes
-     * of serving the ad. This attribute is optional and can be set during ad unit
+     * Optional. Immutable. A string used to uniquely identify the ad unit for the
+     * purposes of serving the ad. This attribute can be set during ad unit
      * creation. If it is not provided, it will be assigned by Google based on the
      * ad unit ID.
      * 
* - * string ad_unit_code = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * optional string ad_unit_code = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * * * @return This builder for chaining. */ @@ -3783,13 +4152,15 @@ public Builder clearAdUnitCode() { * * *
-     * Immutable. A string used to uniquely identify the ad unit for the purposes
-     * of serving the ad. This attribute is optional and can be set during ad unit
+     * Optional. Immutable. A string used to uniquely identify the ad unit for the
+     * purposes of serving the ad. This attribute can be set during ad unit
      * creation. If it is not provided, it will be assigned by Google based on the
      * ad unit ID.
      * 
* - * string ad_unit_code = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * optional string ad_unit_code = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * * * @param value The bytes for adUnitCode to set. * @return This builder for chaining. @@ -3815,7 +4186,25 @@ public Builder setAdUnitCodeBytes(com.google.protobuf.ByteString value) { * * * - * .google.ads.admanager.v1.AdUnitStatusEnum.AdUnitStatus status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.AdUnitStatusEnum.AdUnitStatus status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Output only. The status of this ad unit.  It defaults to ACTIVE.
+     * 
+ * + * + * optional .google.ads.admanager.v1.AdUnitStatusEnum.AdUnitStatus status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for status. @@ -3833,7 +4222,7 @@ public int getStatusValue() { * * * - * .google.ads.admanager.v1.AdUnitStatusEnum.AdUnitStatus status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.AdUnitStatusEnum.AdUnitStatus status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The enum numeric value on the wire for status to set. @@ -3854,7 +4243,7 @@ public Builder setStatusValue(int value) { * * * - * .google.ads.admanager.v1.AdUnitStatusEnum.AdUnitStatus status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.AdUnitStatusEnum.AdUnitStatus status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The status. @@ -3876,7 +4265,7 @@ public com.google.ads.admanager.v1.AdUnitStatusEnum.AdUnitStatus getStatus() { * * * - * .google.ads.admanager.v1.AdUnitStatusEnum.AdUnitStatus status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.AdUnitStatusEnum.AdUnitStatus status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The status to set. @@ -3900,7 +4289,7 @@ public Builder setStatus(com.google.ads.admanager.v1.AdUnitStatusEnum.AdUnitStat * * * - * .google.ads.admanager.v1.AdUnitStatusEnum.AdUnitStatus status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.AdUnitStatusEnum.AdUnitStatus status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. @@ -3924,7 +4313,27 @@ public Builder clearStatus() { * * * - * .google.ads.admanager.v1.TargetWindowEnum.TargetWindow applied_target_window = 44 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.ads.admanager.v1.TargetWindowEnum.TargetWindow applied_target_window = 44 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the appliedTargetWindow field is set. + */ + @java.lang.Override + public boolean hasAppliedTargetWindow() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Optional. The target window directly applied to this AdUnit.
+     * If this field is not set, this AdUnit uses the target window specified in
+     * effectiveTargetWindow.
+     * 
+ * + * + * optional .google.ads.admanager.v1.TargetWindowEnum.TargetWindow applied_target_window = 44 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The enum numeric value on the wire for appliedTargetWindow. @@ -3944,7 +4353,7 @@ public int getAppliedTargetWindowValue() { * * * - * .google.ads.admanager.v1.TargetWindowEnum.TargetWindow applied_target_window = 44 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.ads.admanager.v1.TargetWindowEnum.TargetWindow applied_target_window = 44 [(.google.api.field_behavior) = OPTIONAL]; * * * @param value The enum numeric value on the wire for appliedTargetWindow to set. @@ -3967,7 +4376,7 @@ public Builder setAppliedTargetWindowValue(int value) { * * * - * .google.ads.admanager.v1.TargetWindowEnum.TargetWindow applied_target_window = 44 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.ads.admanager.v1.TargetWindowEnum.TargetWindow applied_target_window = 44 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The appliedTargetWindow. @@ -3991,7 +4400,7 @@ public com.google.ads.admanager.v1.TargetWindowEnum.TargetWindow getAppliedTarge * * * - * .google.ads.admanager.v1.TargetWindowEnum.TargetWindow applied_target_window = 44 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.ads.admanager.v1.TargetWindowEnum.TargetWindow applied_target_window = 44 [(.google.api.field_behavior) = OPTIONAL]; * * * @param value The appliedTargetWindow to set. @@ -4018,7 +4427,7 @@ public Builder setAppliedTargetWindow( * * * - * .google.ads.admanager.v1.TargetWindowEnum.TargetWindow applied_target_window = 44 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.ads.admanager.v1.TargetWindowEnum.TargetWindow applied_target_window = 44 [(.google.api.field_behavior) = OPTIONAL]; * * * @return This builder for chaining. @@ -4042,7 +4451,27 @@ public Builder clearAppliedTargetWindow() { * * * - * .google.ads.admanager.v1.TargetWindowEnum.TargetWindow effective_target_window = 45 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT, (.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.TargetWindowEnum.TargetWindow effective_target_window = 45 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the effectiveTargetWindow field is set. + */ + @java.lang.Override + public boolean hasEffectiveTargetWindow() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
+     * Output only. Non-empty default. The target window of this AdUnit. This
+     * value is inherited from ancestor AdUnits and defaults to TOP if no AdUnit
+     * in the hierarchy specifies it.
+     * 
+ * + * + * optional .google.ads.admanager.v1.TargetWindowEnum.TargetWindow effective_target_window = 45 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT, (.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for effectiveTargetWindow. @@ -4062,7 +4491,7 @@ public int getEffectiveTargetWindowValue() { * * * - * .google.ads.admanager.v1.TargetWindowEnum.TargetWindow effective_target_window = 45 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT, (.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.TargetWindowEnum.TargetWindow effective_target_window = 45 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT, (.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The enum numeric value on the wire for effectiveTargetWindow to set. @@ -4085,7 +4514,7 @@ public Builder setEffectiveTargetWindowValue(int value) { * * * - * .google.ads.admanager.v1.TargetWindowEnum.TargetWindow effective_target_window = 45 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT, (.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.TargetWindowEnum.TargetWindow effective_target_window = 45 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT, (.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The effectiveTargetWindow. @@ -4110,7 +4539,7 @@ public com.google.ads.admanager.v1.TargetWindowEnum.TargetWindow getEffectiveTar * * * - * .google.ads.admanager.v1.TargetWindowEnum.TargetWindow effective_target_window = 45 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT, (.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.TargetWindowEnum.TargetWindow effective_target_window = 45 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT, (.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The effectiveTargetWindow to set. @@ -4137,7 +4566,7 @@ public Builder setEffectiveTargetWindow( * * * - * .google.ads.admanager.v1.TargetWindowEnum.TargetWindow effective_target_window = 45 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT, (.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.TargetWindowEnum.TargetWindow effective_target_window = 45 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT, (.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. @@ -4588,7 +5017,23 @@ public Builder addTeamsBytes(com.google.protobuf.ByteString value) { * characters. * * - * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * optional string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the description field is set. + */ + public boolean hasDescription() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
+     * Optional. A description of the ad unit. The maximum length is 65,535
+     * characters.
+     * 
+ * + * optional string description = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The description. */ @@ -4612,7 +5057,7 @@ public java.lang.String getDescription() { * characters. * * - * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * optional string description = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for description. */ @@ -4636,7 +5081,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * characters. * * - * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * optional string description = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The description to set. * @return This builder for chaining. @@ -4659,7 +5104,7 @@ public Builder setDescription(java.lang.String value) { * characters. * * - * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * optional string description = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -4678,7 +5123,7 @@ public Builder clearDescription() { * characters. * * - * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * optional string description = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for description to set. * @return This builder for chaining. @@ -4706,7 +5151,26 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * feature is only available for Ad Manager 360 accounts. * * - * bool explicitly_targeted = 6 [(.google.api.field_behavior) = OPTIONAL]; + * optional bool explicitly_targeted = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the explicitlyTargeted field is set. + */ + @java.lang.Override + public boolean hasExplicitlyTargeted() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
+     * Optional. If this field is set to true, then the AdUnit will not be
+     * implicitly targeted when its parent is. Traffickers must explicitly
+     * target such an AdUnit or else no line items will serve to it. This
+     * feature is only available for Ad Manager 360 accounts.
+     * 
+ * + * optional bool explicitly_targeted = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The explicitlyTargeted. */ @@ -4725,7 +5189,7 @@ public boolean getExplicitlyTargeted() { * feature is only available for Ad Manager 360 accounts. * * - * bool explicitly_targeted = 6 [(.google.api.field_behavior) = OPTIONAL]; + * optional bool explicitly_targeted = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The explicitlyTargeted to set. * @return This builder for chaining. @@ -4748,7 +5212,7 @@ public Builder setExplicitlyTargeted(boolean value) { * feature is only available for Ad Manager 360 accounts. * * - * bool explicitly_targeted = 6 [(.google.api.field_behavior) = OPTIONAL]; + * optional bool explicitly_targeted = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -4768,7 +5232,23 @@ public Builder clearExplicitlyTargeted() { * Output only. This field is set to true if the ad unit has any children. * * - * bool has_children = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool has_children = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the hasChildren field is set. + */ + @java.lang.Override + public boolean hasHasChildren() { + return ((bitField0_ & 0x00002000) != 0); + } + + /** + * + * + *
+     * Output only. This field is set to true if the ad unit has any children.
+     * 
+ * + * optional bool has_children = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The hasChildren. */ @@ -4784,7 +5264,7 @@ public boolean getHasChildren() { * Output only. This field is set to true if the ad unit has any children. * * - * bool has_children = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool has_children = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The hasChildren to set. * @return This builder for chaining. @@ -4804,7 +5284,7 @@ public Builder setHasChildren(boolean value) { * Output only. This field is set to true if the ad unit has any children. * * - * bool has_children = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool has_children = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -4830,7 +5310,7 @@ public Builder clearHasChildren() { * * * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the updateTime field is set. @@ -4847,7 +5327,7 @@ public boolean hasUpdateTime() { * * * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The updateTime. @@ -4870,7 +5350,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { * * * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { @@ -4895,7 +5375,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { * * * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { @@ -4917,7 +5397,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal * * * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { @@ -4947,7 +5427,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * * * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearUpdateTime() { @@ -4969,7 +5449,7 @@ public Builder clearUpdateTime() { * * * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { @@ -4986,7 +5466,7 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { * * * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -5007,7 +5487,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< @@ -5440,11 +5920,36 @@ public com.google.ads.admanager.v1.AdUnitSize.Builder addAdUnitSizesBuilder(int * corresponds to in an external set top box ad campaign system. * * - * string external_set_top_box_channel_id = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional string external_set_top_box_channel_id = 17 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.ads.admanager.v1.AdUnit.external_set_top_box_channel_id is deprecated. See + * google/ads/admanager/v1/ad_unit_messages.proto;l=139 + * @return Whether the externalSetTopBoxChannelId field is set. + */ + @java.lang.Deprecated + public boolean hasExternalSetTopBoxChannelId() { + return ((bitField0_ & 0x00010000) != 0); + } + + /** + * + * + *
+     * Optional. Determines what set top box video on demand channel this ad unit
+     * corresponds to in an external set top box ad campaign system.
+     * 
+ * + * + * optional string external_set_top_box_channel_id = 17 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.ads.admanager.v1.AdUnit.external_set_top_box_channel_id is deprecated. See + * google/ads/admanager/v1/ad_unit_messages.proto;l=139 * @return The externalSetTopBoxChannelId. */ + @java.lang.Deprecated public java.lang.String getExternalSetTopBoxChannelId() { java.lang.Object ref = externalSetTopBoxChannelId_; if (!(ref instanceof java.lang.String)) { @@ -5465,11 +5970,15 @@ public java.lang.String getExternalSetTopBoxChannelId() { * corresponds to in an external set top box ad campaign system. * * - * string external_set_top_box_channel_id = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional string external_set_top_box_channel_id = 17 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.ads.admanager.v1.AdUnit.external_set_top_box_channel_id is deprecated. See + * google/ads/admanager/v1/ad_unit_messages.proto;l=139 * @return The bytes for externalSetTopBoxChannelId. */ + @java.lang.Deprecated public com.google.protobuf.ByteString getExternalSetTopBoxChannelIdBytes() { java.lang.Object ref = externalSetTopBoxChannelId_; if (ref instanceof String) { @@ -5490,12 +5999,16 @@ public com.google.protobuf.ByteString getExternalSetTopBoxChannelIdBytes() { * corresponds to in an external set top box ad campaign system. * * - * string external_set_top_box_channel_id = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional string external_set_top_box_channel_id = 17 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.ads.admanager.v1.AdUnit.external_set_top_box_channel_id is deprecated. See + * google/ads/admanager/v1/ad_unit_messages.proto;l=139 * @param value The externalSetTopBoxChannelId to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setExternalSetTopBoxChannelId(java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -5514,11 +6027,15 @@ public Builder setExternalSetTopBoxChannelId(java.lang.String value) { * corresponds to in an external set top box ad campaign system. * * - * string external_set_top_box_channel_id = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional string external_set_top_box_channel_id = 17 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.ads.admanager.v1.AdUnit.external_set_top_box_channel_id is deprecated. See + * google/ads/admanager/v1/ad_unit_messages.proto;l=139 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearExternalSetTopBoxChannelId() { externalSetTopBoxChannelId_ = getDefaultInstance().getExternalSetTopBoxChannelId(); bitField0_ = (bitField0_ & ~0x00010000); @@ -5534,12 +6051,16 @@ public Builder clearExternalSetTopBoxChannelId() { * corresponds to in an external set top box ad campaign system. * * - * string external_set_top_box_channel_id = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional string external_set_top_box_channel_id = 17 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.ads.admanager.v1.AdUnit.external_set_top_box_channel_id is deprecated. See + * google/ads/admanager/v1/ad_unit_messages.proto;l=139 * @param value The bytes for externalSetTopBoxChannelId to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setExternalSetTopBoxChannelIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -5567,7 +6088,8 @@ public Builder setExternalSetTopBoxChannelIdBytes(com.google.protobuf.ByteString * will not refresh. * * - * .google.protobuf.Duration refresh_delay = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional .google.protobuf.Duration refresh_delay = 19 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the refreshDelay field is set. @@ -5585,7 +6107,8 @@ public boolean hasRefreshDelay() { * will not refresh. * * - * .google.protobuf.Duration refresh_delay = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional .google.protobuf.Duration refresh_delay = 19 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The refreshDelay. @@ -5609,7 +6132,8 @@ public com.google.protobuf.Duration getRefreshDelay() { * will not refresh. * * - * .google.protobuf.Duration refresh_delay = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional .google.protobuf.Duration refresh_delay = 19 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setRefreshDelay(com.google.protobuf.Duration value) { @@ -5635,7 +6159,8 @@ public Builder setRefreshDelay(com.google.protobuf.Duration value) { * will not refresh. * * - * .google.protobuf.Duration refresh_delay = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional .google.protobuf.Duration refresh_delay = 19 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setRefreshDelay(com.google.protobuf.Duration.Builder builderForValue) { @@ -5658,7 +6183,8 @@ public Builder setRefreshDelay(com.google.protobuf.Duration.Builder builderForVa * will not refresh. * * - * .google.protobuf.Duration refresh_delay = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional .google.protobuf.Duration refresh_delay = 19 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeRefreshDelay(com.google.protobuf.Duration value) { @@ -5689,7 +6215,8 @@ public Builder mergeRefreshDelay(com.google.protobuf.Duration value) { * will not refresh. * * - * .google.protobuf.Duration refresh_delay = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional .google.protobuf.Duration refresh_delay = 19 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearRefreshDelay() { @@ -5712,7 +6239,8 @@ public Builder clearRefreshDelay() { * will not refresh. * * - * .google.protobuf.Duration refresh_delay = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional .google.protobuf.Duration refresh_delay = 19 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.protobuf.Duration.Builder getRefreshDelayBuilder() { @@ -5730,7 +6258,8 @@ public com.google.protobuf.Duration.Builder getRefreshDelayBuilder() { * will not refresh. * * - * .google.protobuf.Duration refresh_delay = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional .google.protobuf.Duration refresh_delay = 19 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.protobuf.DurationOrBuilder getRefreshDelayOrBuilder() { @@ -5752,7 +6281,8 @@ public com.google.protobuf.DurationOrBuilder getRefreshDelayOrBuilder() { * will not refresh. * * - * .google.protobuf.Duration refresh_delay = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional .google.protobuf.Duration refresh_delay = 19 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< @@ -6203,8 +6733,8 @@ private void ensureEffectiveAppliedLabelsIsMutable() { *
      * Output only. Contains the set of labels applied directly to the ad unit as
      * well as those inherited from the parent ad units. If a label has been
-     * negated, only the negated label is returned. This field is readonly and is
-     * assigned by Google.
+     * negated, only the negated label is returned. This attribute is assigned by
+     * Google.
      * 
* * @@ -6226,8 +6756,8 @@ private void ensureEffectiveAppliedLabelsIsMutable() { *
      * Output only. Contains the set of labels applied directly to the ad unit as
      * well as those inherited from the parent ad units. If a label has been
-     * negated, only the negated label is returned. This field is readonly and is
-     * assigned by Google.
+     * negated, only the negated label is returned. This attribute is assigned by
+     * Google.
      * 
* * @@ -6248,8 +6778,8 @@ public int getEffectiveAppliedLabelsCount() { *
      * Output only. Contains the set of labels applied directly to the ad unit as
      * well as those inherited from the parent ad units. If a label has been
-     * negated, only the negated label is returned. This field is readonly and is
-     * assigned by Google.
+     * negated, only the negated label is returned. This attribute is assigned by
+     * Google.
      * 
* * @@ -6270,8 +6800,8 @@ public com.google.ads.admanager.v1.AppliedLabel getEffectiveAppliedLabels(int in *
      * Output only. Contains the set of labels applied directly to the ad unit as
      * well as those inherited from the parent ad units. If a label has been
-     * negated, only the negated label is returned. This field is readonly and is
-     * assigned by Google.
+     * negated, only the negated label is returned. This attribute is assigned by
+     * Google.
      * 
* * @@ -6299,8 +6829,8 @@ public Builder setEffectiveAppliedLabels( *
      * Output only. Contains the set of labels applied directly to the ad unit as
      * well as those inherited from the parent ad units. If a label has been
-     * negated, only the negated label is returned. This field is readonly and is
-     * assigned by Google.
+     * negated, only the negated label is returned. This attribute is assigned by
+     * Google.
      * 
* * @@ -6325,8 +6855,8 @@ public Builder setEffectiveAppliedLabels( *
      * Output only. Contains the set of labels applied directly to the ad unit as
      * well as those inherited from the parent ad units. If a label has been
-     * negated, only the negated label is returned. This field is readonly and is
-     * assigned by Google.
+     * negated, only the negated label is returned. This attribute is assigned by
+     * Google.
      * 
* * @@ -6353,8 +6883,8 @@ public Builder addEffectiveAppliedLabels(com.google.ads.admanager.v1.AppliedLabe *
      * Output only. Contains the set of labels applied directly to the ad unit as
      * well as those inherited from the parent ad units. If a label has been
-     * negated, only the negated label is returned. This field is readonly and is
-     * assigned by Google.
+     * negated, only the negated label is returned. This attribute is assigned by
+     * Google.
      * 
* * @@ -6382,8 +6912,8 @@ public Builder addEffectiveAppliedLabels( *
      * Output only. Contains the set of labels applied directly to the ad unit as
      * well as those inherited from the parent ad units. If a label has been
-     * negated, only the negated label is returned. This field is readonly and is
-     * assigned by Google.
+     * negated, only the negated label is returned. This attribute is assigned by
+     * Google.
      * 
* * @@ -6408,8 +6938,8 @@ public Builder addEffectiveAppliedLabels( *
      * Output only. Contains the set of labels applied directly to the ad unit as
      * well as those inherited from the parent ad units. If a label has been
-     * negated, only the negated label is returned. This field is readonly and is
-     * assigned by Google.
+     * negated, only the negated label is returned. This attribute is assigned by
+     * Google.
      * 
* * @@ -6434,8 +6964,8 @@ public Builder addEffectiveAppliedLabels( *
      * Output only. Contains the set of labels applied directly to the ad unit as
      * well as those inherited from the parent ad units. If a label has been
-     * negated, only the negated label is returned. This field is readonly and is
-     * assigned by Google.
+     * negated, only the negated label is returned. This attribute is assigned by
+     * Google.
      * 
* * @@ -6460,8 +6990,8 @@ public Builder addAllEffectiveAppliedLabels( *
      * Output only. Contains the set of labels applied directly to the ad unit as
      * well as those inherited from the parent ad units. If a label has been
-     * negated, only the negated label is returned. This field is readonly and is
-     * assigned by Google.
+     * negated, only the negated label is returned. This attribute is assigned by
+     * Google.
      * 
* * @@ -6485,8 +7015,8 @@ public Builder clearEffectiveAppliedLabels() { *
      * Output only. Contains the set of labels applied directly to the ad unit as
      * well as those inherited from the parent ad units. If a label has been
-     * negated, only the negated label is returned. This field is readonly and is
-     * assigned by Google.
+     * negated, only the negated label is returned. This attribute is assigned by
+     * Google.
      * 
* * @@ -6510,8 +7040,8 @@ public Builder removeEffectiveAppliedLabels(int index) { *
      * Output only. Contains the set of labels applied directly to the ad unit as
      * well as those inherited from the parent ad units. If a label has been
-     * negated, only the negated label is returned. This field is readonly and is
-     * assigned by Google.
+     * negated, only the negated label is returned. This attribute is assigned by
+     * Google.
      * 
* * @@ -6529,8 +7059,8 @@ public com.google.ads.admanager.v1.AppliedLabel.Builder getEffectiveAppliedLabel *
      * Output only. Contains the set of labels applied directly to the ad unit as
      * well as those inherited from the parent ad units. If a label has been
-     * negated, only the negated label is returned. This field is readonly and is
-     * assigned by Google.
+     * negated, only the negated label is returned. This attribute is assigned by
+     * Google.
      * 
* * @@ -6552,8 +7082,8 @@ public com.google.ads.admanager.v1.AppliedLabelOrBuilder getEffectiveAppliedLabe *
      * Output only. Contains the set of labels applied directly to the ad unit as
      * well as those inherited from the parent ad units. If a label has been
-     * negated, only the negated label is returned. This field is readonly and is
-     * assigned by Google.
+     * negated, only the negated label is returned. This attribute is assigned by
+     * Google.
      * 
* * @@ -6575,8 +7105,8 @@ public com.google.ads.admanager.v1.AppliedLabelOrBuilder getEffectiveAppliedLabe *
      * Output only. Contains the set of labels applied directly to the ad unit as
      * well as those inherited from the parent ad units. If a label has been
-     * negated, only the negated label is returned. This field is readonly and is
-     * assigned by Google.
+     * negated, only the negated label is returned. This attribute is assigned by
+     * Google.
      * 
* * @@ -6594,8 +7124,8 @@ public com.google.ads.admanager.v1.AppliedLabel.Builder addEffectiveAppliedLabel *
      * Output only. Contains the set of labels applied directly to the ad unit as
      * well as those inherited from the parent ad units. If a label has been
-     * negated, only the negated label is returned. This field is readonly and is
-     * assigned by Google.
+     * negated, only the negated label is returned. This attribute is assigned by
+     * Google.
      * 
* * @@ -6614,8 +7144,8 @@ public com.google.ads.admanager.v1.AppliedLabel.Builder addEffectiveAppliedLabel *
      * Output only. Contains the set of labels applied directly to the ad unit as
      * well as those inherited from the parent ad units. If a label has been
-     * negated, only the negated label is returned. This field is readonly and is
-     * assigned by Google.
+     * negated, only the negated label is returned. This attribute is assigned by
+     * Google.
      * 
* * @@ -7522,12 +8052,31 @@ public Builder removeEffectiveLabelFrequencyCaps(int index) { * * *
-     * Optional. The smart size mode for this ad unit. This attribute is optional
-     * and defaults to SmartSizeMode.NONE for fixed sizes.
+     * Optional. Non-empty default. The smart size mode for this ad unit. This
+     * attribute defaults to SmartSizeMode.NONE for fixed sizes.
+     * 
+ * + * + * optional .google.ads.admanager.v1.SmartSizeModeEnum.SmartSizeMode smart_size_mode = 25 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT]; + * + * + * @return Whether the smartSizeMode field is set. + */ + @java.lang.Override + public boolean hasSmartSizeMode() { + return ((bitField0_ & 0x00400000) != 0); + } + + /** + * + * + *
+     * Optional. Non-empty default. The smart size mode for this ad unit. This
+     * attribute defaults to SmartSizeMode.NONE for fixed sizes.
      * 
* * - * .google.ads.admanager.v1.SmartSizeModeEnum.SmartSizeMode smart_size_mode = 25 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.ads.admanager.v1.SmartSizeModeEnum.SmartSizeMode smart_size_mode = 25 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT]; * * * @return The enum numeric value on the wire for smartSizeMode. @@ -7541,12 +8090,12 @@ public int getSmartSizeModeValue() { * * *
-     * Optional. The smart size mode for this ad unit. This attribute is optional
-     * and defaults to SmartSizeMode.NONE for fixed sizes.
+     * Optional. Non-empty default. The smart size mode for this ad unit. This
+     * attribute defaults to SmartSizeMode.NONE for fixed sizes.
      * 
* * - * .google.ads.admanager.v1.SmartSizeModeEnum.SmartSizeMode smart_size_mode = 25 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.ads.admanager.v1.SmartSizeModeEnum.SmartSizeMode smart_size_mode = 25 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT]; * * * @param value The enum numeric value on the wire for smartSizeMode to set. @@ -7563,12 +8112,12 @@ public Builder setSmartSizeModeValue(int value) { * * *
-     * Optional. The smart size mode for this ad unit. This attribute is optional
-     * and defaults to SmartSizeMode.NONE for fixed sizes.
+     * Optional. Non-empty default. The smart size mode for this ad unit. This
+     * attribute defaults to SmartSizeMode.NONE for fixed sizes.
      * 
* * - * .google.ads.admanager.v1.SmartSizeModeEnum.SmartSizeMode smart_size_mode = 25 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.ads.admanager.v1.SmartSizeModeEnum.SmartSizeMode smart_size_mode = 25 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT]; * * * @return The smartSizeMode. @@ -7586,12 +8135,12 @@ public com.google.ads.admanager.v1.SmartSizeModeEnum.SmartSizeMode getSmartSizeM * * *
-     * Optional. The smart size mode for this ad unit. This attribute is optional
-     * and defaults to SmartSizeMode.NONE for fixed sizes.
+     * Optional. Non-empty default. The smart size mode for this ad unit. This
+     * attribute defaults to SmartSizeMode.NONE for fixed sizes.
      * 
* * - * .google.ads.admanager.v1.SmartSizeModeEnum.SmartSizeMode smart_size_mode = 25 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.ads.admanager.v1.SmartSizeModeEnum.SmartSizeMode smart_size_mode = 25 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT]; * * * @param value The smartSizeMode to set. @@ -7612,12 +8161,12 @@ public Builder setSmartSizeMode( * * *
-     * Optional. The smart size mode for this ad unit. This attribute is optional
-     * and defaults to SmartSizeMode.NONE for fixed sizes.
+     * Optional. Non-empty default. The smart size mode for this ad unit. This
+     * attribute defaults to SmartSizeMode.NONE for fixed sizes.
      * 
* * - * .google.ads.admanager.v1.SmartSizeModeEnum.SmartSizeMode smart_size_mode = 25 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.ads.admanager.v1.SmartSizeModeEnum.SmartSizeMode smart_size_mode = 25 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT]; * * * @return This builder for chaining. @@ -7635,9 +8184,9 @@ public Builder clearSmartSizeMode() { * * *
-     * Optional. The value of AdSense enabled directly applied to this ad unit.
-     * This attribute is optional and if not specified this ad unit will inherit
-     * the value of effectiveAdsenseEnabled from its ancestors.
+     * Optional. The value of AdSense enabled directly applied to this ad unit. If
+     * not specified this ad unit will inherit the value of
+     * effectiveAdsenseEnabled from its ancestors.
      * 
* * optional bool applied_adsense_enabled = 26 [(.google.api.field_behavior) = OPTIONAL]; @@ -7654,9 +8203,9 @@ public boolean hasAppliedAdsenseEnabled() { * * *
-     * Optional. The value of AdSense enabled directly applied to this ad unit.
-     * This attribute is optional and if not specified this ad unit will inherit
-     * the value of effectiveAdsenseEnabled from its ancestors.
+     * Optional. The value of AdSense enabled directly applied to this ad unit. If
+     * not specified this ad unit will inherit the value of
+     * effectiveAdsenseEnabled from its ancestors.
      * 
* * optional bool applied_adsense_enabled = 26 [(.google.api.field_behavior) = OPTIONAL]; @@ -7673,9 +8222,9 @@ public boolean getAppliedAdsenseEnabled() { * * *
-     * Optional. The value of AdSense enabled directly applied to this ad unit.
-     * This attribute is optional and if not specified this ad unit will inherit
-     * the value of effectiveAdsenseEnabled from its ancestors.
+     * Optional. The value of AdSense enabled directly applied to this ad unit. If
+     * not specified this ad unit will inherit the value of
+     * effectiveAdsenseEnabled from its ancestors.
      * 
* * optional bool applied_adsense_enabled = 26 [(.google.api.field_behavior) = OPTIONAL]; @@ -7696,9 +8245,9 @@ public Builder setAppliedAdsenseEnabled(boolean value) { * * *
-     * Optional. The value of AdSense enabled directly applied to this ad unit.
-     * This attribute is optional and if not specified this ad unit will inherit
-     * the value of effectiveAdsenseEnabled from its ancestors.
+     * Optional. The value of AdSense enabled directly applied to this ad unit. If
+     * not specified this ad unit will inherit the value of
+     * effectiveAdsenseEnabled from its ancestors.
      * 
* * optional bool applied_adsense_enabled = 26 [(.google.api.field_behavior) = OPTIONAL]; @@ -7725,7 +8274,29 @@ public Builder clearAppliedAdsenseEnabled() { * unit has set appliedAdsenseEnabled, the attribute is defaulted to true. * * - * bool effective_adsense_enabled = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional bool effective_adsense_enabled = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the effectiveAdsenseEnabled field is set. + */ + @java.lang.Override + public boolean hasEffectiveAdsenseEnabled() { + return ((bitField0_ & 0x01000000) != 0); + } + + /** + * + * + *
+     * Output only. Specifies whether or not the AdUnit is enabled for serving ads
+     * from the AdSense content network. This attribute defaults to the ad unit's
+     * parent or ancestor's setting if one has been set. If no ancestor of the ad
+     * unit has set appliedAdsenseEnabled, the attribute is defaulted to true.
+     * 
+ * + * + * optional bool effective_adsense_enabled = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The effectiveAdsenseEnabled. @@ -7745,7 +8316,8 @@ public boolean getEffectiveAdsenseEnabled() { * unit has set appliedAdsenseEnabled, the attribute is defaulted to true. * * - * bool effective_adsense_enabled = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional bool effective_adsense_enabled = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The effectiveAdsenseEnabled to set. @@ -7769,7 +8341,8 @@ public Builder setEffectiveAdsenseEnabled(boolean value) { * unit has set appliedAdsenseEnabled, the attribute is defaulted to true. * * - * bool effective_adsense_enabled = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional bool effective_adsense_enabled = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitMessagesProto.java index 415778046762..99fe4e12c9e4 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitMessagesProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitMessagesProto.java @@ -61,56 +61,74 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "1/frequency_cap.proto\032\"google/ads/admana" + "ger/v1/size.proto\032\037google/api/field_beha" + "vior.proto\032\031google/api/resource.proto\032\036g" - + "oogle/protobuf/duration.proto\032\037google/protobuf/timestamp.proto\"\213\014\n" + + "oogle/protobuf/duration.proto\032\037google/protobuf/timestamp.proto\"\200\017\n" + "\006AdUnit\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\027\n\n" - + "ad_unit_id\030\017 \001(\003B\003\340A\003\022B\n" + + "ad_unit_id\030\017 \001(\003B\003\340A\003\022G\n" + "\016parent_ad_unit\030\n" + " \001(\tB*\340A\002\340A\005\372A!\n" - + "\037admanager.googleapis.com/AdUnit\022?\n" + + "\037admanager.googleapis.com/AdUnitH\000\210\001\001\022?\n" + "\013parent_path\030\013" - + " \003(\0132%.google.ads.admanager.v1.AdUnitParentB\003\340A\003\022\031\n" - + "\014display_name\030\t \001(\tB\003\340A\002\022\031\n" - + "\014ad_unit_code\030\002 \001(\tB\003\340A\005\022K\n" + + " \003(\0132%.google.ads.admanager.v1.AdUnitParentB\003\340A\003\022\036\n" + + "\014display_name\030\t \001(\tB\003\340A\002H\001\210\001\001\022!\n" + + "\014ad_unit_code\030\002 \001(\tB\006\340A\001\340A\005H\002\210\001\001\022P\n" + "\006status\030\r" - + " \001(\016" - + "26.google.ads.admanager.v1.AdUnitStatusEnum.AdUnitStatusB\003\340A\003\022Z\n" - + "\025applied_target_window\030," - + " \001(\01626.google.ads.admanager.v1.TargetWindowEnum.TargetWindowB\003\340A\001\022_\n" - + "\027effective_target_window\030- \001(\01626.google.ads." - + "admanager.v1.TargetWindowEnum.TargetWindowB\006\340A\007\340A\003\022<\n\r" + + " \001(\01626.google.ads.admanage" + + "r.v1.AdUnitStatusEnum.AdUnitStatusB\003\340A\003H\003\210\001\001\022_\n" + + "\025applied_target_window\030, \001(\01626.go" + + "ogle.ads.admanager.v1.TargetWindowEnum.TargetWindowB\003\340A\001H\004\210\001\001\022d\n" + + "\027effective_target_window\030- \001(\01626.google.ads.admanager.v1" + + ".TargetWindowEnum.TargetWindowB\006\340A\007\340A\003H\005\210\001\001\022<\n\r" + "applied_teams\030\003 \003(\tB%\340A\001\372A\037\n" + "\035admanager.googleapis.com/Team\0224\n" + "\005teams\030\004 \003(\tB%\340A\003\372A\037\n" - + "\035admanager.googleapis.com/Team\022\030\n" - + "\013description\030\005 \001(\tB\003\340A\001\022 \n" - + "\023explicitly_targeted\030\006 \001(\010B\003\340A\001\022\031\n" - + "\014has_children\030\007 \001(\010B\003\340A\003\0224\n" - + "\013update_time\030\010" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022?\n\r" + + "\035admanager.googleapis.com/Team\022\035\n" + + "\013description\030\005 \001(\tB\003\340A\001H\006\210\001\001\022%\n" + + "\023explicitly_targeted\030\006 \001(\010B\003\340A\001H\007\210\001\001\022\036\n" + + "\014has_children\030\007 \001(\010B\003\340A\003H\010\210\001\001\0229\n" + + "\013update_time\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340A\003H" + + "\t\210\001\001\022?\n\r" + "ad_unit_sizes\030\016" - + " \003(\0132#.google.ads.admanager.v1.AdUnitSizeB\003\340A\001\022,\n" - + "\037external_set_top_box_channel_id\030\021 \001(\tB\003\340A\001\0225\n\r" - + "refresh_delay\030\023 \001(\0132\031.google.protobuf.DurationB\003\340A\001\022B\n" - + "\016applied_labels\030\025" - + " \003(\0132%.google.ads.admanager.v1.AppliedLabelB\003\340A\001\022L\n" - + "\030effective_applied_labels\030\026" - + " \003(\0132%.google.ads.admanager.v1.AppliedLabelB\003\340A\003\022U\n" - + "\034applied_label_frequency_caps\030\027" - + " \003(\0132*.google.ads.admanager.v1.LabelFrequencyCapB\003\340A\001\022W\n" + + " \003(\0132#.google.ads.admanager.v1.AdUnitSizeB\003\340A\001\0223\n" + + "\037external_set_top_box_channel_id\030\021 \001(\tB\005\030\001\340A\001H\n" + + "\210\001\001\022:\n\r" + + "refresh_delay\030\023" + + " \001(\0132\031.google.protobuf.DurationB\003\340A\001H\013\210\001\001\022B\n" + + "\016applied_labels\030\025 \003" + + "(\0132%.google.ads.admanager.v1.AppliedLabelB\003\340A\001\022L\n" + + "\030effective_applied_labels\030\026 \003(\013" + + "2%.google.ads.admanager.v1.AppliedLabelB\003\340A\003\022U\n" + + "\034applied_label_frequency_caps\030\027 \003" + + "(\0132*.google.ads.admanager.v1.LabelFrequencyCapB\003\340A\001\022W\n" + "\036effective_label_frequency_caps\030\030" - + " \003(\0132*.google.ads.admanager.v1.LabelFrequencyCapB\003\340A\003\022V\n" - + "\017smart_size_mode\030\031 \001(\01628.google.ads.admana" - + "ger.v1.SmartSizeModeEnum.SmartSizeModeB\003\340A\001\022)\n" - + "\027applied_adsense_enabled\030\032 \001(\010B\003\340A\001H\000\210\001\001\022&\n" - + "\031effective_adsense_enabled\030\033 \001(\010B\003\340A\003:`\352A]\n" - + "\037admanager.googleapis.com/Ad" - + "Unit\022)networks/{network_code}/adUnits/{ad_unit}*\007adUnits2\006adUnitB\032\n" - + "\030_applied_adsense_enabled\"\316\001\n\n" + + " \003(\0132*.google.ads.admanager.v1.LabelFrequencyCapB\003\340A\003\022^\n" + + "\017smart_size_mode\030\031" + + " \001(\01628.google.ads.admanager.v1.SmartSizeModeEnum.SmartSizeModeB\006\340A\001\340A\007H\014\210\001\001\022)\n" + + "\027applied_adsense_enabled\030\032 \001(\010B\003\340A\001H\r" + + "\210\001\001\022+\n" + + "\031effective_adsense_enabled\030\033" + + " \001(\010B\003\340A\003H\016\210\001\001:`\352A]\n" + + "\037admanager.googleapis.com/AdUn" + + "it\022)networks/{network_code}/adUnits/{ad_unit}*\007adUnits2\006adUnitB\021\n" + + "\017_parent_ad_unitB\017\n\r" + + "_display_nameB\017\n\r" + + "_ad_unit_codeB\t\n" + + "\007_statusB\030\n" + + "\026_applied_target_windowB\032\n" + + "\030_effective_target_windowB\016\n" + + "\014_descriptionB\026\n" + + "\024_explicitly_targetedB\017\n\r" + + "_has_childrenB\016\n" + + "\014_update_timeB\"\n" + + " _external_set_top_box_channel_idB\020\n" + + "\016_refresh_delayB\022\n" + + "\020_smart_size_modeB\032\n" + + "\030_applied_adsense_enabledB\034\n" + + "\032_effective_adsense_enabled\"\316\001\n\n" + "AdUnitSize\0220\n" + "\004size\030\001 \001(\0132\035.google.ads.admanager.v1.SizeB\003\340A\002\022[\n" - + "\020environment_type\030\002 \001(\0162<.google.ads.adm" - + "anager.v1.EnvironmentTypeEnum.EnvironmentTypeB\003\340A\002\0221\n\n" + + "\020environment_type\030\002 \001(\0162<.g" + + "oogle.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentTypeB\003\340A\002\0221\n\n" + "companions\030\003 \003(\0132\035.google.ads.admanager.v1.Size\"\205\001\n" + "\014AdUnitParent\022?\n" + "\016parent_ad_unit\030\001 \001(\tB\'\340A\003\372A!\n" @@ -121,11 +139,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005label\030\001 \001(\tB&\340A\002\372A \n" + "\036admanager.googleapis.com/Label\022<\n\r" + "frequency_cap\030\002 \001(\0132%.google.ads.admanager.v1.FrequencyCapB\307\001\n" - + "\033com.google.ads.admanager.v1B\023AdUnitMessagesProtoP\001Z@google." - + "golang.org/genproto/googleapis/ads/adman" - + "ager/v1;admanager\252\002\027Google.Ads.AdManager" - + ".V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032Google::" - + "Ads::AdManager::V1b\006proto3" + + "\033com.google.ads.admanager.v1B\023AdUnitMessagesPro" + + "toP\001Z@google.golang.org/genproto/googlea" + + "pis/ads/admanager/v1;admanager\252\002\027Google." + + "Ads.AdManager.V1\312\002\027Google\\Ads\\AdManager\\" + + "V1\352\002\032Google::Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitOrBuilder.java index 7c63cd9a4e20..684cb1aaceb9 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitOrBuilder.java @@ -75,7 +75,24 @@ public interface AdUnitOrBuilder * * * - * string parent_ad_unit = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * optional string parent_ad_unit = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the parentAdUnit field is set. + */ + boolean hasParentAdUnit(); + + /** + * + * + *
+   * Required. Immutable. The AdUnit's parent. Every ad unit has a parent except
+   * for the root ad unit, which is created by Google. Format:
+   * "networks/{network_code}/adUnits/{ad_unit_id}"
+   * 
+ * + * + * optional string parent_ad_unit = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * * * @return The parentAdUnit. @@ -92,7 +109,7 @@ public interface AdUnitOrBuilder * * * - * string parent_ad_unit = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * optional string parent_ad_unit = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * * * @return The bytes for parentAdUnit. @@ -183,7 +200,21 @@ public interface AdUnitOrBuilder * characters. * * - * string display_name = 9 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the displayName field is set. + */ + boolean hasDisplayName(); + + /** + * + * + *
+   * Required. The display name of the ad unit. Its maximum length is 255
+   * characters.
+   * 
+ * + * optional string display_name = 9 [(.google.api.field_behavior) = REQUIRED]; * * @return The displayName. */ @@ -197,7 +228,7 @@ public interface AdUnitOrBuilder * characters. * * - * string display_name = 9 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 9 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for displayName. */ @@ -207,13 +238,33 @@ public interface AdUnitOrBuilder * * *
-   * Immutable. A string used to uniquely identify the ad unit for the purposes
-   * of serving the ad. This attribute is optional and can be set during ad unit
+   * Optional. Immutable. A string used to uniquely identify the ad unit for the
+   * purposes of serving the ad. This attribute can be set during ad unit
    * creation. If it is not provided, it will be assigned by Google based on the
    * ad unit ID.
    * 
* - * string ad_unit_code = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * optional string ad_unit_code = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the adUnitCode field is set. + */ + boolean hasAdUnitCode(); + + /** + * + * + *
+   * Optional. Immutable. A string used to uniquely identify the ad unit for the
+   * purposes of serving the ad. This attribute can be set during ad unit
+   * creation. If it is not provided, it will be assigned by Google based on the
+   * ad unit ID.
+   * 
+ * + * + * optional string ad_unit_code = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * * * @return The adUnitCode. */ @@ -223,13 +274,15 @@ public interface AdUnitOrBuilder * * *
-   * Immutable. A string used to uniquely identify the ad unit for the purposes
-   * of serving the ad. This attribute is optional and can be set during ad unit
+   * Optional. Immutable. A string used to uniquely identify the ad unit for the
+   * purposes of serving the ad. This attribute can be set during ad unit
    * creation. If it is not provided, it will be assigned by Google based on the
    * ad unit ID.
    * 
* - * string ad_unit_code = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * optional string ad_unit_code = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * * * @return The bytes for adUnitCode. */ @@ -243,7 +296,22 @@ public interface AdUnitOrBuilder * * * - * .google.ads.admanager.v1.AdUnitStatusEnum.AdUnitStatus status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.AdUnitStatusEnum.AdUnitStatus status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the status field is set. + */ + boolean hasStatus(); + + /** + * + * + *
+   * Output only. The status of this ad unit.  It defaults to ACTIVE.
+   * 
+ * + * + * optional .google.ads.admanager.v1.AdUnitStatusEnum.AdUnitStatus status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for status. @@ -258,7 +326,7 @@ public interface AdUnitOrBuilder * * * - * .google.ads.admanager.v1.AdUnitStatusEnum.AdUnitStatus status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.AdUnitStatusEnum.AdUnitStatus status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The status. @@ -275,7 +343,24 @@ public interface AdUnitOrBuilder * * * - * .google.ads.admanager.v1.TargetWindowEnum.TargetWindow applied_target_window = 44 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.ads.admanager.v1.TargetWindowEnum.TargetWindow applied_target_window = 44 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the appliedTargetWindow field is set. + */ + boolean hasAppliedTargetWindow(); + + /** + * + * + *
+   * Optional. The target window directly applied to this AdUnit.
+   * If this field is not set, this AdUnit uses the target window specified in
+   * effectiveTargetWindow.
+   * 
+ * + * + * optional .google.ads.admanager.v1.TargetWindowEnum.TargetWindow applied_target_window = 44 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The enum numeric value on the wire for appliedTargetWindow. @@ -292,7 +377,7 @@ public interface AdUnitOrBuilder * * * - * .google.ads.admanager.v1.TargetWindowEnum.TargetWindow applied_target_window = 44 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.ads.admanager.v1.TargetWindowEnum.TargetWindow applied_target_window = 44 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The appliedTargetWindow. @@ -309,7 +394,24 @@ public interface AdUnitOrBuilder * * * - * .google.ads.admanager.v1.TargetWindowEnum.TargetWindow effective_target_window = 45 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT, (.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.TargetWindowEnum.TargetWindow effective_target_window = 45 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the effectiveTargetWindow field is set. + */ + boolean hasEffectiveTargetWindow(); + + /** + * + * + *
+   * Output only. Non-empty default. The target window of this AdUnit. This
+   * value is inherited from ancestor AdUnits and defaults to TOP if no AdUnit
+   * in the hierarchy specifies it.
+   * 
+ * + * + * optional .google.ads.admanager.v1.TargetWindowEnum.TargetWindow effective_target_window = 45 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT, (.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for effectiveTargetWindow. @@ -326,7 +428,7 @@ public interface AdUnitOrBuilder * * * - * .google.ads.admanager.v1.TargetWindowEnum.TargetWindow effective_target_window = 45 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT, (.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.TargetWindowEnum.TargetWindow effective_target_window = 45 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT, (.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The effectiveTargetWindow. @@ -477,7 +579,21 @@ public interface AdUnitOrBuilder * characters. * * - * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * optional string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the description field is set. + */ + boolean hasDescription(); + + /** + * + * + *
+   * Optional. A description of the ad unit. The maximum length is 65,535
+   * characters.
+   * 
+ * + * optional string description = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The description. */ @@ -491,7 +607,7 @@ public interface AdUnitOrBuilder * characters. * * - * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * optional string description = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for description. */ @@ -507,7 +623,23 @@ public interface AdUnitOrBuilder * feature is only available for Ad Manager 360 accounts. * * - * bool explicitly_targeted = 6 [(.google.api.field_behavior) = OPTIONAL]; + * optional bool explicitly_targeted = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the explicitlyTargeted field is set. + */ + boolean hasExplicitlyTargeted(); + + /** + * + * + *
+   * Optional. If this field is set to true, then the AdUnit will not be
+   * implicitly targeted when its parent is. Traffickers must explicitly
+   * target such an AdUnit or else no line items will serve to it. This
+   * feature is only available for Ad Manager 360 accounts.
+   * 
+ * + * optional bool explicitly_targeted = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The explicitlyTargeted. */ @@ -520,7 +652,20 @@ public interface AdUnitOrBuilder * Output only. This field is set to true if the ad unit has any children. * * - * bool has_children = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool has_children = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the hasChildren field is set. + */ + boolean hasHasChildren(); + + /** + * + * + *
+   * Output only. This field is set to true if the ad unit has any children.
+   * 
+ * + * optional bool has_children = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The hasChildren. */ @@ -533,7 +678,8 @@ public interface AdUnitOrBuilder * Output only. The time this AdUnit was last modified. * * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the updateTime field is set. @@ -547,7 +693,8 @@ public interface AdUnitOrBuilder * Output only. The time this AdUnit was last modified. * * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The updateTime. @@ -561,7 +708,8 @@ public interface AdUnitOrBuilder * Output only. The time this AdUnit was last modified. * * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); @@ -640,11 +788,34 @@ public interface AdUnitOrBuilder * corresponds to in an external set top box ad campaign system. * * - * string external_set_top_box_channel_id = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional string external_set_top_box_channel_id = 17 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.ads.admanager.v1.AdUnit.external_set_top_box_channel_id is deprecated. See + * google/ads/admanager/v1/ad_unit_messages.proto;l=139 + * @return Whether the externalSetTopBoxChannelId field is set. + */ + @java.lang.Deprecated + boolean hasExternalSetTopBoxChannelId(); + + /** + * + * + *
+   * Optional. Determines what set top box video on demand channel this ad unit
+   * corresponds to in an external set top box ad campaign system.
+   * 
+ * + * + * optional string external_set_top_box_channel_id = 17 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.ads.admanager.v1.AdUnit.external_set_top_box_channel_id is deprecated. See + * google/ads/admanager/v1/ad_unit_messages.proto;l=139 * @return The externalSetTopBoxChannelId. */ + @java.lang.Deprecated java.lang.String getExternalSetTopBoxChannelId(); /** @@ -655,11 +826,15 @@ public interface AdUnitOrBuilder * corresponds to in an external set top box ad campaign system. * * - * string external_set_top_box_channel_id = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional string external_set_top_box_channel_id = 17 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.ads.admanager.v1.AdUnit.external_set_top_box_channel_id is deprecated. See + * google/ads/admanager/v1/ad_unit_messages.proto;l=139 * @return The bytes for externalSetTopBoxChannelId. */ + @java.lang.Deprecated com.google.protobuf.ByteString getExternalSetTopBoxChannelIdBytes(); /** @@ -671,7 +846,8 @@ public interface AdUnitOrBuilder * will not refresh. * * - * .google.protobuf.Duration refresh_delay = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional .google.protobuf.Duration refresh_delay = 19 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the refreshDelay field is set. @@ -687,7 +863,8 @@ public interface AdUnitOrBuilder * will not refresh. * * - * .google.protobuf.Duration refresh_delay = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional .google.protobuf.Duration refresh_delay = 19 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The refreshDelay. @@ -703,7 +880,8 @@ public interface AdUnitOrBuilder * will not refresh. * * - * .google.protobuf.Duration refresh_delay = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional .google.protobuf.Duration refresh_delay = 19 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.protobuf.DurationOrBuilder getRefreshDelayOrBuilder(); @@ -780,8 +958,8 @@ public interface AdUnitOrBuilder *
    * Output only. Contains the set of labels applied directly to the ad unit as
    * well as those inherited from the parent ad units. If a label has been
-   * negated, only the negated label is returned. This field is readonly and is
-   * assigned by Google.
+   * negated, only the negated label is returned. This attribute is assigned by
+   * Google.
    * 
* * @@ -796,8 +974,8 @@ public interface AdUnitOrBuilder *
    * Output only. Contains the set of labels applied directly to the ad unit as
    * well as those inherited from the parent ad units. If a label has been
-   * negated, only the negated label is returned. This field is readonly and is
-   * assigned by Google.
+   * negated, only the negated label is returned. This attribute is assigned by
+   * Google.
    * 
* * @@ -812,8 +990,8 @@ public interface AdUnitOrBuilder *
    * Output only. Contains the set of labels applied directly to the ad unit as
    * well as those inherited from the parent ad units. If a label has been
-   * negated, only the negated label is returned. This field is readonly and is
-   * assigned by Google.
+   * negated, only the negated label is returned. This attribute is assigned by
+   * Google.
    * 
* * @@ -828,8 +1006,8 @@ public interface AdUnitOrBuilder *
    * Output only. Contains the set of labels applied directly to the ad unit as
    * well as those inherited from the parent ad units. If a label has been
-   * negated, only the negated label is returned. This field is readonly and is
-   * assigned by Google.
+   * negated, only the negated label is returned. This attribute is assigned by
+   * Google.
    * 
* * @@ -845,8 +1023,8 @@ public interface AdUnitOrBuilder *
    * Output only. Contains the set of labels applied directly to the ad unit as
    * well as those inherited from the parent ad units. If a label has been
-   * negated, only the negated label is returned. This field is readonly and is
-   * assigned by Google.
+   * negated, only the negated label is returned. This attribute is assigned by
+   * Google.
    * 
* * @@ -1004,12 +1182,28 @@ com.google.ads.admanager.v1.LabelFrequencyCapOrBuilder getEffectiveLabelFrequenc * * *
-   * Optional. The smart size mode for this ad unit. This attribute is optional
-   * and defaults to SmartSizeMode.NONE for fixed sizes.
+   * Optional. Non-empty default. The smart size mode for this ad unit. This
+   * attribute defaults to SmartSizeMode.NONE for fixed sizes.
    * 
* * - * .google.ads.admanager.v1.SmartSizeModeEnum.SmartSizeMode smart_size_mode = 25 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.ads.admanager.v1.SmartSizeModeEnum.SmartSizeMode smart_size_mode = 25 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT]; + * + * + * @return Whether the smartSizeMode field is set. + */ + boolean hasSmartSizeMode(); + + /** + * + * + *
+   * Optional. Non-empty default. The smart size mode for this ad unit. This
+   * attribute defaults to SmartSizeMode.NONE for fixed sizes.
+   * 
+ * + * + * optional .google.ads.admanager.v1.SmartSizeModeEnum.SmartSizeMode smart_size_mode = 25 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT]; * * * @return The enum numeric value on the wire for smartSizeMode. @@ -1020,12 +1214,12 @@ com.google.ads.admanager.v1.LabelFrequencyCapOrBuilder getEffectiveLabelFrequenc * * *
-   * Optional. The smart size mode for this ad unit. This attribute is optional
-   * and defaults to SmartSizeMode.NONE for fixed sizes.
+   * Optional. Non-empty default. The smart size mode for this ad unit. This
+   * attribute defaults to SmartSizeMode.NONE for fixed sizes.
    * 
* * - * .google.ads.admanager.v1.SmartSizeModeEnum.SmartSizeMode smart_size_mode = 25 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.ads.admanager.v1.SmartSizeModeEnum.SmartSizeMode smart_size_mode = 25 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT]; * * * @return The smartSizeMode. @@ -1036,9 +1230,9 @@ com.google.ads.admanager.v1.LabelFrequencyCapOrBuilder getEffectiveLabelFrequenc * * *
-   * Optional. The value of AdSense enabled directly applied to this ad unit.
-   * This attribute is optional and if not specified this ad unit will inherit
-   * the value of effectiveAdsenseEnabled from its ancestors.
+   * Optional. The value of AdSense enabled directly applied to this ad unit. If
+   * not specified this ad unit will inherit the value of
+   * effectiveAdsenseEnabled from its ancestors.
    * 
* * optional bool applied_adsense_enabled = 26 [(.google.api.field_behavior) = OPTIONAL]; @@ -1052,9 +1246,9 @@ com.google.ads.admanager.v1.LabelFrequencyCapOrBuilder getEffectiveLabelFrequenc * * *
-   * Optional. The value of AdSense enabled directly applied to this ad unit.
-   * This attribute is optional and if not specified this ad unit will inherit
-   * the value of effectiveAdsenseEnabled from its ancestors.
+   * Optional. The value of AdSense enabled directly applied to this ad unit. If
+   * not specified this ad unit will inherit the value of
+   * effectiveAdsenseEnabled from its ancestors.
    * 
* * optional bool applied_adsense_enabled = 26 [(.google.api.field_behavior) = OPTIONAL]; @@ -1074,7 +1268,27 @@ com.google.ads.admanager.v1.LabelFrequencyCapOrBuilder getEffectiveLabelFrequenc * unit has set appliedAdsenseEnabled, the attribute is defaulted to true. * * - * bool effective_adsense_enabled = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional bool effective_adsense_enabled = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the effectiveAdsenseEnabled field is set. + */ + boolean hasEffectiveAdsenseEnabled(); + + /** + * + * + *
+   * Output only. Specifies whether or not the AdUnit is enabled for serving ads
+   * from the AdSense content network. This attribute defaults to the ad unit's
+   * parent or ancestor's setting if one has been set. If no ancestor of the ad
+   * unit has set appliedAdsenseEnabled, the attribute is defaulted to true.
+   * 
+ * + * + * optional bool effective_adsense_enabled = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The effectiveAdsenseEnabled. */ diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitServiceProto.java index 9f6de2623b4d..a6b0e636988e 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitServiceProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitServiceProto.java @@ -89,7 +89,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027ListAdUnitSizesResponse\022:\n\r" + "ad_unit_sizes\030\001 \003(\0132#.google.ads.admanager.v1.AdUnitSize\022\027\n" + "\017next_page_token\030\002 \001(\t\022\022\n\n" - + "total_size\030\003 \001(\0052\200\004\n\r" + + "total_size\030\003 \001(\0052\254\004\n\r" + "AdUnitService\022\207\001\n" + "\tGetAdUnit\022).google.ads.admanager.v1.GetAdUnitRequest\032\037.google.ads" + ".admanager.v1.AdUnit\".\332A\004name\202\323\344\223\002!\022\037/v1/{name=networks/*/adUnits/*}\022\232\001\n" @@ -99,12 +99,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017ListAdUnitSizes\022/.google.ads.admanager.v1.ListAdUn" + "itSizesRequest\0320.google.ads.admanager.v1" + ".ListAdUnitSizesResponse\"4\332A\006parent\202\323\344\223\002" - + "%\022#/v1/{parent=networks/*}/adUnitSizes\032\033\312A\030admanager.googleapis.comB\306\001\n" - + "\033com.google.ads.admanager.v1B\022AdUnitServiceProtoP" - + "\001Z@google.golang.org/genproto/googleapis" - + "/ads/admanager/v1;admanager\252\002\027Google.Ads" - + ".AdManager.V1\312\002\027Google\\Ads\\AdManager\\V1\352" - + "\002\032Google::Ads::AdManager::V1b\006proto3" + + "%\022#/v1/{parent=networks/*}/adUnitSizes\032G" + + "\312A\030admanager.googleapis.com\322A)https://www.googleapis.com/auth/admanagerB\306\001\n" + + "\033com.google.ads.admanager.v1B\022AdUnitServicePr" + + "otoP\001Z@google.golang.org/genproto/google" + + "apis/ads/admanager/v1;admanager\252\002\027Google" + + ".Ads.AdManager.V1\312\002\027Google\\Ads\\AdManager" + + "\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -162,6 +163,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.AnnotationsProto.http); registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitTargeting.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitTargeting.java new file mode 100644 index 000000000000..d9bbc15c12de --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitTargeting.java @@ -0,0 +1,826 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Specifies an ad unit and (optionally) its descendants.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.AdUnitTargeting} + */ +public final class AdUnitTargeting extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.AdUnitTargeting) + AdUnitTargetingOrBuilder { + private static final long serialVersionUID = 0L; + + // Use AdUnitTargeting.newBuilder() to construct. + private AdUnitTargeting(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AdUnitTargeting() { + adUnit_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AdUnitTargeting(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_AdUnitTargeting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_AdUnitTargeting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.AdUnitTargeting.class, + com.google.ads.admanager.v1.AdUnitTargeting.Builder.class); + } + + private int bitField0_; + public static final int INCLUDE_DESCENDANTS_FIELD_NUMBER = 1; + private boolean includeDescendants_ = false; + + /** + * + * + *
+   * Whether this ad unit's children should be targeted/excluded as well.
+   * 
+ * + * optional bool include_descendants = 1; + * + * @return Whether the includeDescendants field is set. + */ + @java.lang.Override + public boolean hasIncludeDescendants() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Whether this ad unit's children should be targeted/excluded as well.
+   * 
+ * + * optional bool include_descendants = 1; + * + * @return The includeDescendants. + */ + @java.lang.Override + public boolean getIncludeDescendants() { + return includeDescendants_; + } + + public static final int AD_UNIT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object adUnit_ = ""; + + /** + * + * + *
+   * Optional. The resource name of this ad unit.
+   * 
+ * + * + * optional string ad_unit = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the adUnit field is set. + */ + @java.lang.Override + public boolean hasAdUnit() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. The resource name of this ad unit.
+   * 
+ * + * + * optional string ad_unit = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The adUnit. + */ + @java.lang.Override + public java.lang.String getAdUnit() { + java.lang.Object ref = adUnit_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + adUnit_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The resource name of this ad unit.
+   * 
+ * + * + * optional string ad_unit = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for adUnit. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAdUnitBytes() { + java.lang.Object ref = adUnit_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + adUnit_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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.writeBool(1, includeDescendants_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, adUnit_); + } + 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.computeBoolSize(1, includeDescendants_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, adUnit_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.admanager.v1.AdUnitTargeting)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.AdUnitTargeting other = + (com.google.ads.admanager.v1.AdUnitTargeting) obj; + + if (hasIncludeDescendants() != other.hasIncludeDescendants()) return false; + if (hasIncludeDescendants()) { + if (getIncludeDescendants() != other.getIncludeDescendants()) return false; + } + if (hasAdUnit() != other.hasAdUnit()) return false; + if (hasAdUnit()) { + if (!getAdUnit().equals(other.getAdUnit())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasIncludeDescendants()) { + hash = (37 * hash) + INCLUDE_DESCENDANTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeDescendants()); + } + if (hasAdUnit()) { + hash = (37 * hash) + AD_UNIT_FIELD_NUMBER; + hash = (53 * hash) + getAdUnit().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.AdUnitTargeting parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.AdUnitTargeting 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.admanager.v1.AdUnitTargeting parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.AdUnitTargeting parseFrom( + 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.admanager.v1.AdUnitTargeting parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.AdUnitTargeting parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.AdUnitTargeting parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.AdUnitTargeting parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.AdUnitTargeting parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.AdUnitTargeting parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.AdUnitTargeting parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.AdUnitTargeting parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.AdUnitTargeting prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Specifies an ad unit and (optionally) its descendants.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.AdUnitTargeting} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.AdUnitTargeting) + com.google.ads.admanager.v1.AdUnitTargetingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_AdUnitTargeting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_AdUnitTargeting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.AdUnitTargeting.class, + com.google.ads.admanager.v1.AdUnitTargeting.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.AdUnitTargeting.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + includeDescendants_ = false; + adUnit_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_AdUnitTargeting_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.AdUnitTargeting getDefaultInstanceForType() { + return com.google.ads.admanager.v1.AdUnitTargeting.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.AdUnitTargeting build() { + com.google.ads.admanager.v1.AdUnitTargeting result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.AdUnitTargeting buildPartial() { + com.google.ads.admanager.v1.AdUnitTargeting result = + new com.google.ads.admanager.v1.AdUnitTargeting(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.AdUnitTargeting result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.includeDescendants_ = includeDescendants_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.adUnit_ = adUnit_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.AdUnitTargeting) { + return mergeFrom((com.google.ads.admanager.v1.AdUnitTargeting) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.AdUnitTargeting other) { + if (other == com.google.ads.admanager.v1.AdUnitTargeting.getDefaultInstance()) return this; + if (other.hasIncludeDescendants()) { + setIncludeDescendants(other.getIncludeDescendants()); + } + if (other.hasAdUnit()) { + adUnit_ = other.adUnit_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + includeDescendants_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 26: + { + adUnit_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + 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 boolean includeDescendants_; + + /** + * + * + *
+     * Whether this ad unit's children should be targeted/excluded as well.
+     * 
+ * + * optional bool include_descendants = 1; + * + * @return Whether the includeDescendants field is set. + */ + @java.lang.Override + public boolean hasIncludeDescendants() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Whether this ad unit's children should be targeted/excluded as well.
+     * 
+ * + * optional bool include_descendants = 1; + * + * @return The includeDescendants. + */ + @java.lang.Override + public boolean getIncludeDescendants() { + return includeDescendants_; + } + + /** + * + * + *
+     * Whether this ad unit's children should be targeted/excluded as well.
+     * 
+ * + * optional bool include_descendants = 1; + * + * @param value The includeDescendants to set. + * @return This builder for chaining. + */ + public Builder setIncludeDescendants(boolean value) { + + includeDescendants_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Whether this ad unit's children should be targeted/excluded as well.
+     * 
+ * + * optional bool include_descendants = 1; + * + * @return This builder for chaining. + */ + public Builder clearIncludeDescendants() { + bitField0_ = (bitField0_ & ~0x00000001); + includeDescendants_ = false; + onChanged(); + return this; + } + + private java.lang.Object adUnit_ = ""; + + /** + * + * + *
+     * Optional. The resource name of this ad unit.
+     * 
+ * + * + * optional string ad_unit = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the adUnit field is set. + */ + public boolean hasAdUnit() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. The resource name of this ad unit.
+     * 
+ * + * + * optional string ad_unit = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The adUnit. + */ + public java.lang.String getAdUnit() { + java.lang.Object ref = adUnit_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + adUnit_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The resource name of this ad unit.
+     * 
+ * + * + * optional string ad_unit = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for adUnit. + */ + public com.google.protobuf.ByteString getAdUnitBytes() { + java.lang.Object ref = adUnit_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + adUnit_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The resource name of this ad unit.
+     * 
+ * + * + * optional string ad_unit = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The adUnit to set. + * @return This builder for chaining. + */ + public Builder setAdUnit(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + adUnit_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The resource name of this ad unit.
+     * 
+ * + * + * optional string ad_unit = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAdUnit() { + adUnit_ = getDefaultInstance().getAdUnit(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The resource name of this ad unit.
+     * 
+ * + * + * optional string ad_unit = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for adUnit to set. + * @return This builder for chaining. + */ + public Builder setAdUnitBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + adUnit_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.AdUnitTargeting) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.AdUnitTargeting) + private static final com.google.ads.admanager.v1.AdUnitTargeting DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.AdUnitTargeting(); + } + + public static com.google.ads.admanager.v1.AdUnitTargeting getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdUnitTargeting parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.AdUnitTargeting getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitTargetingOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitTargetingOrBuilder.java new file mode 100644 index 000000000000..ddad1fd57eaf --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitTargetingOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface AdUnitTargetingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.AdUnitTargeting) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether this ad unit's children should be targeted/excluded as well.
+   * 
+ * + * optional bool include_descendants = 1; + * + * @return Whether the includeDescendants field is set. + */ + boolean hasIncludeDescendants(); + + /** + * + * + *
+   * Whether this ad unit's children should be targeted/excluded as well.
+   * 
+ * + * optional bool include_descendants = 1; + * + * @return The includeDescendants. + */ + boolean getIncludeDescendants(); + + /** + * + * + *
+   * Optional. The resource name of this ad unit.
+   * 
+ * + * + * optional string ad_unit = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the adUnit field is set. + */ + boolean hasAdUnit(); + + /** + * + * + *
+   * Optional. The resource name of this ad unit.
+   * 
+ * + * + * optional string ad_unit = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The adUnit. + */ + java.lang.String getAdUnit(); + + /** + * + * + *
+   * Optional. The resource name of this ad unit.
+   * 
+ * + * + * optional string ad_unit = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for adUnit. + */ + com.google.protobuf.ByteString getAdUnitBytes(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BandwidthGroup.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BandwidthGroup.java new file mode 100644 index 000000000000..f5367deda7e4 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BandwidthGroup.java @@ -0,0 +1,910 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/bandwidth_group_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Represents a group of bandwidths that are logically organized by some well
+ * known generic name such as 'Cable' or 'DSL'.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.BandwidthGroup} + */ +public final class BandwidthGroup extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BandwidthGroup) + BandwidthGroupOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BandwidthGroup.newBuilder() to construct. + private BandwidthGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BandwidthGroup() { + name_ = ""; + displayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BandwidthGroup(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.BandwidthGroupMessagesProto + .internal_static_google_ads_admanager_v1_BandwidthGroup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.BandwidthGroupMessagesProto + .internal_static_google_ads_admanager_v1_BandwidthGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BandwidthGroup.class, + com.google.ads.admanager.v1.BandwidthGroup.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 `BandwidthGroup`.
+   * Format: `networks/{network_code}/bandwidthGroups/{bandwidth_group_id}`
+   * 
+ * + * optional string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return Whether the name field is set. + */ + @java.lang.Override + public boolean hasName() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Identifier. The resource name of the `BandwidthGroup`.
+   * Format: `networks/{network_code}/bandwidthGroups/{bandwidth_group_id}`
+   * 
+ * + * optional 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 `BandwidthGroup`.
+   * Format: `networks/{network_code}/bandwidthGroups/{bandwidth_group_id}`
+   * 
+ * + * optional 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 DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
+   * Output only. The localized name of the bandwidth group.
+   * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the displayName field is set. + */ + @java.lang.Override + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. The localized name of the bandwidth group.
+   * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+   * Output only. The localized name of the bandwidth group.
+   * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + 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.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.admanager.v1.BandwidthGroup)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BandwidthGroup other = + (com.google.ads.admanager.v1.BandwidthGroup) obj; + + if (hasName() != other.hasName()) return false; + if (hasName()) { + if (!getName().equals(other.getName())) return false; + } + if (hasDisplayName() != other.hasDisplayName()) return false; + if (hasDisplayName()) { + if (!getDisplayName().equals(other.getDisplayName())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasName()) { + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + } + if (hasDisplayName()) { + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BandwidthGroup parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BandwidthGroup 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.admanager.v1.BandwidthGroup parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BandwidthGroup parseFrom( + 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.admanager.v1.BandwidthGroup parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BandwidthGroup parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BandwidthGroup parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BandwidthGroup parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BandwidthGroup parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BandwidthGroup parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BandwidthGroup parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BandwidthGroup parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.BandwidthGroup prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Represents a group of bandwidths that are logically organized by some well
+   * known generic name such as 'Cable' or 'DSL'.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.BandwidthGroup} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BandwidthGroup) + com.google.ads.admanager.v1.BandwidthGroupOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.BandwidthGroupMessagesProto + .internal_static_google_ads_admanager_v1_BandwidthGroup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.BandwidthGroupMessagesProto + .internal_static_google_ads_admanager_v1_BandwidthGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BandwidthGroup.class, + com.google.ads.admanager.v1.BandwidthGroup.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BandwidthGroup.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.BandwidthGroupMessagesProto + .internal_static_google_ads_admanager_v1_BandwidthGroup_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BandwidthGroup getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BandwidthGroup.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BandwidthGroup build() { + com.google.ads.admanager.v1.BandwidthGroup result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BandwidthGroup buildPartial() { + com.google.ads.admanager.v1.BandwidthGroup result = + new com.google.ads.admanager.v1.BandwidthGroup(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.BandwidthGroup result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BandwidthGroup) { + return mergeFrom((com.google.ads.admanager.v1.BandwidthGroup) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BandwidthGroup other) { + if (other == com.google.ads.admanager.v1.BandwidthGroup.getDefaultInstance()) return this; + if (other.hasName()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDisplayName()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Identifier. The resource name of the `BandwidthGroup`.
+     * Format: `networks/{network_code}/bandwidthGroups/{bandwidth_group_id}`
+     * 
+ * + * optional string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return Whether the name field is set. + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Identifier. The resource name of the `BandwidthGroup`.
+     * Format: `networks/{network_code}/bandwidthGroups/{bandwidth_group_id}`
+     * 
+ * + * optional 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 `BandwidthGroup`.
+     * Format: `networks/{network_code}/bandwidthGroups/{bandwidth_group_id}`
+     * 
+ * + * optional 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 `BandwidthGroup`.
+     * Format: `networks/{network_code}/bandwidthGroups/{bandwidth_group_id}`
+     * 
+ * + * optional 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 `BandwidthGroup`.
+     * Format: `networks/{network_code}/bandwidthGroups/{bandwidth_group_id}`
+     * 
+ * + * optional 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 `BandwidthGroup`.
+     * Format: `networks/{network_code}/bandwidthGroups/{bandwidth_group_id}`
+     * 
+ * + * optional 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 displayName_ = ""; + + /** + * + * + *
+     * Output only. The localized name of the bandwidth group.
+     * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the displayName field is set. + */ + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. The localized name of the bandwidth group.
+     * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. The localized name of the bandwidth group.
+     * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. The localized name of the bandwidth group.
+     * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The localized name of the bandwidth group.
+     * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The localized name of the bandwidth group.
+     * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.BandwidthGroup) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BandwidthGroup) + private static final com.google.ads.admanager.v1.BandwidthGroup DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BandwidthGroup(); + } + + public static com.google.ads.admanager.v1.BandwidthGroup getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BandwidthGroup parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.BandwidthGroup getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BandwidthGroupMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BandwidthGroupMessagesProto.java new file mode 100644 index 000000000000..3ba636cf0d68 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BandwidthGroupMessagesProto.java @@ -0,0 +1,87 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/bandwidth_group_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class BandwidthGroupMessagesProto { + private BandwidthGroupMessagesProto() {} + + 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_ads_admanager_v1_BandwidthGroup_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BandwidthGroup_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" + + "6google/ads/admanager/v1/bandwidth_group_messages.proto\022\027google.ads.admanager.v" + + "1\032\037google/api/field_behavior.proto\032\031google/api/resource.proto\"\356\001\n" + + "\016BandwidthGroup\022\026\n" + + "\004name\030\001 \001(\tB\003\340A\010H\000\210\001\001\022\036\n" + + "\014display_name\030\002 \001(" + + "\tB\003\340A\003H\001\210\001\001:\211\001\352A\205\001\n" + + "\'admanager.googleapis.com/BandwidthGroup\0229networks/{netw" + + "ork_code}/bandwidthGroups/{bandwidth_group}*\017bandwidthGroups2\016bandwidthGroupB\007\n" + + "\005_nameB\017\n\r" + + "_display_nameB\317\001\n" + + "\033com.google.ads.admanager.v1B\033BandwidthGroupMessagesPr" + + "otoP\001Z@google.golang.org/genproto/google" + + "apis/ads/admanager/v1;admanager\252\002\027Google" + + ".Ads.AdManager.V1\312\002\027Google\\Ads\\AdManager" + + "\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_ads_admanager_v1_BandwidthGroup_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_BandwidthGroup_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BandwidthGroup_descriptor, + new java.lang.String[] { + "Name", "DisplayName", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BandwidthGroupName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BandwidthGroupName.java new file mode 100644 index 000000000000..0e9e9e968c56 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BandwidthGroupName.java @@ -0,0 +1,198 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class BandwidthGroupName implements ResourceName { + private static final PathTemplate NETWORK_CODE_BANDWIDTH_GROUP = + PathTemplate.createWithoutUrlEncoding( + "networks/{network_code}/bandwidthGroups/{bandwidth_group}"); + private volatile Map fieldValuesMap; + private final String networkCode; + private final String bandwidthGroup; + + @Deprecated + protected BandwidthGroupName() { + networkCode = null; + bandwidthGroup = null; + } + + private BandwidthGroupName(Builder builder) { + networkCode = Preconditions.checkNotNull(builder.getNetworkCode()); + bandwidthGroup = Preconditions.checkNotNull(builder.getBandwidthGroup()); + } + + public String getNetworkCode() { + return networkCode; + } + + public String getBandwidthGroup() { + return bandwidthGroup; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static BandwidthGroupName of(String networkCode, String bandwidthGroup) { + return newBuilder().setNetworkCode(networkCode).setBandwidthGroup(bandwidthGroup).build(); + } + + public static String format(String networkCode, String bandwidthGroup) { + return newBuilder() + .setNetworkCode(networkCode) + .setBandwidthGroup(bandwidthGroup) + .build() + .toString(); + } + + public static BandwidthGroupName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + NETWORK_CODE_BANDWIDTH_GROUP.validatedMatch( + formattedString, "BandwidthGroupName.parse: formattedString not in valid format"); + return of(matchMap.get("network_code"), matchMap.get("bandwidth_group")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (BandwidthGroupName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return NETWORK_CODE_BANDWIDTH_GROUP.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (networkCode != null) { + fieldMapBuilder.put("network_code", networkCode); + } + if (bandwidthGroup != null) { + fieldMapBuilder.put("bandwidth_group", bandwidthGroup); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return NETWORK_CODE_BANDWIDTH_GROUP.instantiate( + "network_code", networkCode, "bandwidth_group", bandwidthGroup); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + BandwidthGroupName that = ((BandwidthGroupName) o); + return Objects.equals(this.networkCode, that.networkCode) + && Objects.equals(this.bandwidthGroup, that.bandwidthGroup); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(networkCode); + h *= 1000003; + h ^= Objects.hashCode(bandwidthGroup); + return h; + } + + /** Builder for networks/{network_code}/bandwidthGroups/{bandwidth_group}. */ + public static class Builder { + private String networkCode; + private String bandwidthGroup; + + protected Builder() {} + + public String getNetworkCode() { + return networkCode; + } + + public String getBandwidthGroup() { + return bandwidthGroup; + } + + public Builder setNetworkCode(String networkCode) { + this.networkCode = networkCode; + return this; + } + + public Builder setBandwidthGroup(String bandwidthGroup) { + this.bandwidthGroup = bandwidthGroup; + return this; + } + + private Builder(BandwidthGroupName bandwidthGroupName) { + this.networkCode = bandwidthGroupName.networkCode; + this.bandwidthGroup = bandwidthGroupName.bandwidthGroup; + } + + public BandwidthGroupName build() { + return new BandwidthGroupName(this); + } + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BandwidthGroupOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BandwidthGroupOrBuilder.java new file mode 100644 index 000000000000..c656428dd9b1 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BandwidthGroupOrBuilder.java @@ -0,0 +1,107 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/bandwidth_group_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BandwidthGroupOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BandwidthGroup) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. The resource name of the `BandwidthGroup`.
+   * Format: `networks/{network_code}/bandwidthGroups/{bandwidth_group_id}`
+   * 
+ * + * optional string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return Whether the name field is set. + */ + boolean hasName(); + + /** + * + * + *
+   * Identifier. The resource name of the `BandwidthGroup`.
+   * Format: `networks/{network_code}/bandwidthGroups/{bandwidth_group_id}`
+   * 
+ * + * optional string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. The resource name of the `BandwidthGroup`.
+   * Format: `networks/{network_code}/bandwidthGroups/{bandwidth_group_id}`
+   * 
+ * + * optional string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. The localized name of the bandwidth group.
+   * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the displayName field is set. + */ + boolean hasDisplayName(); + + /** + * + * + *
+   * Output only. The localized name of the bandwidth group.
+   * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+   * Output only. The localized name of the bandwidth group.
+   * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BandwidthGroupServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BandwidthGroupServiceProto.java new file mode 100644 index 000000000000..0a4225ec8d05 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BandwidthGroupServiceProto.java @@ -0,0 +1,142 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/bandwidth_group_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class BandwidthGroupServiceProto { + private BandwidthGroupServiceProto() {} + + 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_ads_admanager_v1_GetBandwidthGroupRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_GetBandwidthGroupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListBandwidthGroupsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListBandwidthGroupsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListBandwidthGroupsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListBandwidthGroupsResponse_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" + + "5google/ads/admanager/v1/bandwidth_group_service.proto\022\027google.ads.admanager.v1" + + "\0326google/ads/admanager/v1/bandwidth_grou" + + "p_messages.proto\032\034google/api/annotations" + + ".proto\032\027google/api/client.proto\032\037google/" + + "api/field_behavior.proto\032\031google/api/resource.proto\"Y\n" + + "\030GetBandwidthGroupRequest\022=\n" + + "\004name\030\001 \001(\tB/\340A\002\372A)\n" + + "\'admanager.googleapis.com/BandwidthGroup\"\306\001\n" + + "\032ListBandwidthGroupsRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\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\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\022\021\n" + + "\004skip\030\006 \001(\005B\003\340A\001\"\215\001\n" + + "\033ListBandwidthGroupsResponse\022A\n" + + "\020bandwidth_groups\030\001 \003(" + + "\0132\'.google.ads.admanager.v1.BandwidthGroup\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\022\n\n" + + "total_size\030\003 \001(\0052\307\003\n" + + "\025BandwidthGroupService\022\247\001\n" + + "\021GetBandwidthGroup\0221.google.ads.admanager.v" + + "1.GetBandwidthGroupRequest\032\'.google.ads." + + "admanager.v1.BandwidthGroup\"6\332A\004name\202\323\344\223" + + "\002)\022\'/v1/{name=networks/*/bandwidthGroups/*}\022\272\001\n" + + "\023ListBandwidthGroups\0223.google.ads.admanager.v1.ListBandwidthGroupsRequest" + + "\0324.google.ads.admanager.v1.ListBandwidth" + + "GroupsResponse\"8\332A\006parent\202\323\344\223\002)\022\'/v1/{pa" + + "rent=networks/*}/bandwidthGroups\032G\312A\030adm" + + "anager.googleapis.com\322A)https://www.googleapis.com/auth/admanagerB\316\001\n" + + "\033com.google.ads.admanager.v1B\032BandwidthGroupService" + + "ProtoP\001Z@google.golang.org/genproto/goog" + + "leapis/ads/admanager/v1;admanager\252\002\027Goog" + + "le.Ads.AdManager.V1\312\002\027Google\\Ads\\AdManag" + + "er\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.admanager.v1.BandwidthGroupMessagesProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_ads_admanager_v1_GetBandwidthGroupRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_GetBandwidthGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_GetBandwidthGroupRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_ads_admanager_v1_ListBandwidthGroupsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_ads_admanager_v1_ListBandwidthGroupsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListBandwidthGroupsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", "Skip", + }); + internal_static_google_ads_admanager_v1_ListBandwidthGroupsResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_ads_admanager_v1_ListBandwidthGroupsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListBandwidthGroupsResponse_descriptor, + new java.lang.String[] { + "BandwidthGroups", "NextPageToken", "TotalSize", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.ads.admanager.v1.BandwidthGroupMessagesProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BandwidthTargeting.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BandwidthTargeting.java new file mode 100644 index 000000000000..5179ad219d8e --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BandwidthTargeting.java @@ -0,0 +1,1116 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Bandwidth Targeting.
+ *
+ * Reach users accessing the internet via various means of connection, such as
+ * cable, DSL, or dial-up. Can be useful to target campaigns using
+ * low-resolution creatives or text ads for users with low bandwidth.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.BandwidthTargeting} + */ +public final class BandwidthTargeting extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BandwidthTargeting) + BandwidthTargetingOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BandwidthTargeting.newBuilder() to construct. + private BandwidthTargeting(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BandwidthTargeting() { + targetedBandwidthGroups_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludedBandwidthGroups_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BandwidthTargeting(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_BandwidthTargeting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_BandwidthTargeting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BandwidthTargeting.class, + com.google.ads.admanager.v1.BandwidthTargeting.Builder.class); + } + + public static final int TARGETED_BANDWIDTH_GROUPS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList targetedBandwidthGroups_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. A list of resource names of the bandwidth groups that should be
+   * targeted/included.
+   * 
+ * + * + * repeated string targeted_bandwidth_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetedBandwidthGroups. + */ + public com.google.protobuf.ProtocolStringList getTargetedBandwidthGroupsList() { + return targetedBandwidthGroups_; + } + + /** + * + * + *
+   * Optional. A list of resource names of the bandwidth groups that should be
+   * targeted/included.
+   * 
+ * + * + * repeated string targeted_bandwidth_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetedBandwidthGroups. + */ + public int getTargetedBandwidthGroupsCount() { + return targetedBandwidthGroups_.size(); + } + + /** + * + * + *
+   * Optional. A list of resource names of the bandwidth groups that should be
+   * targeted/included.
+   * 
+ * + * + * repeated string targeted_bandwidth_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetedBandwidthGroups at the given index. + */ + public java.lang.String getTargetedBandwidthGroups(int index) { + return targetedBandwidthGroups_.get(index); + } + + /** + * + * + *
+   * Optional. A list of resource names of the bandwidth groups that should be
+   * targeted/included.
+   * 
+ * + * + * repeated string targeted_bandwidth_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetedBandwidthGroups at the given index. + */ + public com.google.protobuf.ByteString getTargetedBandwidthGroupsBytes(int index) { + return targetedBandwidthGroups_.getByteString(index); + } + + public static final int EXCLUDED_BANDWIDTH_GROUPS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList excludedBandwidthGroups_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. A list of resource names of the bandwidth groups that should be
+   * excluded.
+   * 
+ * + * + * repeated string excluded_bandwidth_groups = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the excludedBandwidthGroups. + */ + public com.google.protobuf.ProtocolStringList getExcludedBandwidthGroupsList() { + return excludedBandwidthGroups_; + } + + /** + * + * + *
+   * Optional. A list of resource names of the bandwidth groups that should be
+   * excluded.
+   * 
+ * + * + * repeated string excluded_bandwidth_groups = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of excludedBandwidthGroups. + */ + public int getExcludedBandwidthGroupsCount() { + return excludedBandwidthGroups_.size(); + } + + /** + * + * + *
+   * Optional. A list of resource names of the bandwidth groups that should be
+   * excluded.
+   * 
+ * + * + * repeated string excluded_bandwidth_groups = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The excludedBandwidthGroups at the given index. + */ + public java.lang.String getExcludedBandwidthGroups(int index) { + return excludedBandwidthGroups_.get(index); + } + + /** + * + * + *
+   * Optional. A list of resource names of the bandwidth groups that should be
+   * excluded.
+   * 
+ * + * + * repeated string excluded_bandwidth_groups = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedBandwidthGroups at the given index. + */ + public com.google.protobuf.ByteString getExcludedBandwidthGroupsBytes(int index) { + return excludedBandwidthGroups_.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 < targetedBandwidthGroups_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 3, targetedBandwidthGroups_.getRaw(i)); + } + for (int i = 0; i < excludedBandwidthGroups_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 4, excludedBandwidthGroups_.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 < targetedBandwidthGroups_.size(); i++) { + dataSize += computeStringSizeNoTag(targetedBandwidthGroups_.getRaw(i)); + } + size += dataSize; + size += 1 * getTargetedBandwidthGroupsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < excludedBandwidthGroups_.size(); i++) { + dataSize += computeStringSizeNoTag(excludedBandwidthGroups_.getRaw(i)); + } + size += dataSize; + size += 1 * getExcludedBandwidthGroupsList().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.admanager.v1.BandwidthTargeting)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BandwidthTargeting other = + (com.google.ads.admanager.v1.BandwidthTargeting) obj; + + if (!getTargetedBandwidthGroupsList().equals(other.getTargetedBandwidthGroupsList())) + return false; + if (!getExcludedBandwidthGroupsList().equals(other.getExcludedBandwidthGroupsList())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTargetedBandwidthGroupsCount() > 0) { + hash = (37 * hash) + TARGETED_BANDWIDTH_GROUPS_FIELD_NUMBER; + hash = (53 * hash) + getTargetedBandwidthGroupsList().hashCode(); + } + if (getExcludedBandwidthGroupsCount() > 0) { + hash = (37 * hash) + EXCLUDED_BANDWIDTH_GROUPS_FIELD_NUMBER; + hash = (53 * hash) + getExcludedBandwidthGroupsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BandwidthTargeting parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BandwidthTargeting 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.admanager.v1.BandwidthTargeting parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BandwidthTargeting parseFrom( + 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.admanager.v1.BandwidthTargeting parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BandwidthTargeting parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BandwidthTargeting parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BandwidthTargeting parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BandwidthTargeting parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BandwidthTargeting parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BandwidthTargeting parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BandwidthTargeting parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.BandwidthTargeting prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Bandwidth Targeting.
+   *
+   * Reach users accessing the internet via various means of connection, such as
+   * cable, DSL, or dial-up. Can be useful to target campaigns using
+   * low-resolution creatives or text ads for users with low bandwidth.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.BandwidthTargeting} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BandwidthTargeting) + com.google.ads.admanager.v1.BandwidthTargetingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_BandwidthTargeting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_BandwidthTargeting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BandwidthTargeting.class, + com.google.ads.admanager.v1.BandwidthTargeting.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BandwidthTargeting.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + targetedBandwidthGroups_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludedBandwidthGroups_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_BandwidthTargeting_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BandwidthTargeting getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BandwidthTargeting.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BandwidthTargeting build() { + com.google.ads.admanager.v1.BandwidthTargeting result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BandwidthTargeting buildPartial() { + com.google.ads.admanager.v1.BandwidthTargeting result = + new com.google.ads.admanager.v1.BandwidthTargeting(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.BandwidthTargeting result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + targetedBandwidthGroups_.makeImmutable(); + result.targetedBandwidthGroups_ = targetedBandwidthGroups_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + excludedBandwidthGroups_.makeImmutable(); + result.excludedBandwidthGroups_ = excludedBandwidthGroups_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BandwidthTargeting) { + return mergeFrom((com.google.ads.admanager.v1.BandwidthTargeting) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BandwidthTargeting other) { + if (other == com.google.ads.admanager.v1.BandwidthTargeting.getDefaultInstance()) return this; + if (!other.targetedBandwidthGroups_.isEmpty()) { + if (targetedBandwidthGroups_.isEmpty()) { + targetedBandwidthGroups_ = other.targetedBandwidthGroups_; + bitField0_ |= 0x00000001; + } else { + ensureTargetedBandwidthGroupsIsMutable(); + targetedBandwidthGroups_.addAll(other.targetedBandwidthGroups_); + } + onChanged(); + } + if (!other.excludedBandwidthGroups_.isEmpty()) { + if (excludedBandwidthGroups_.isEmpty()) { + excludedBandwidthGroups_ = other.excludedBandwidthGroups_; + bitField0_ |= 0x00000002; + } else { + ensureExcludedBandwidthGroupsIsMutable(); + excludedBandwidthGroups_.addAll(other.excludedBandwidthGroups_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTargetedBandwidthGroupsIsMutable(); + targetedBandwidthGroups_.add(s); + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureExcludedBandwidthGroupsIsMutable(); + excludedBandwidthGroups_.add(s); + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList targetedBandwidthGroups_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureTargetedBandwidthGroupsIsMutable() { + if (!targetedBandwidthGroups_.isModifiable()) { + targetedBandwidthGroups_ = + new com.google.protobuf.LazyStringArrayList(targetedBandwidthGroups_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
+     * Optional. A list of resource names of the bandwidth groups that should be
+     * targeted/included.
+     * 
+ * + * + * repeated string targeted_bandwidth_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetedBandwidthGroups. + */ + public com.google.protobuf.ProtocolStringList getTargetedBandwidthGroupsList() { + targetedBandwidthGroups_.makeImmutable(); + return targetedBandwidthGroups_; + } + + /** + * + * + *
+     * Optional. A list of resource names of the bandwidth groups that should be
+     * targeted/included.
+     * 
+ * + * + * repeated string targeted_bandwidth_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetedBandwidthGroups. + */ + public int getTargetedBandwidthGroupsCount() { + return targetedBandwidthGroups_.size(); + } + + /** + * + * + *
+     * Optional. A list of resource names of the bandwidth groups that should be
+     * targeted/included.
+     * 
+ * + * + * repeated string targeted_bandwidth_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetedBandwidthGroups at the given index. + */ + public java.lang.String getTargetedBandwidthGroups(int index) { + return targetedBandwidthGroups_.get(index); + } + + /** + * + * + *
+     * Optional. A list of resource names of the bandwidth groups that should be
+     * targeted/included.
+     * 
+ * + * + * repeated string targeted_bandwidth_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetedBandwidthGroups at the given index. + */ + public com.google.protobuf.ByteString getTargetedBandwidthGroupsBytes(int index) { + return targetedBandwidthGroups_.getByteString(index); + } + + /** + * + * + *
+     * Optional. A list of resource names of the bandwidth groups that should be
+     * targeted/included.
+     * 
+ * + * + * repeated string targeted_bandwidth_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The targetedBandwidthGroups to set. + * @return This builder for chaining. + */ + public Builder setTargetedBandwidthGroups(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetedBandwidthGroupsIsMutable(); + targetedBandwidthGroups_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of resource names of the bandwidth groups that should be
+     * targeted/included.
+     * 
+ * + * + * repeated string targeted_bandwidth_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The targetedBandwidthGroups to add. + * @return This builder for chaining. + */ + public Builder addTargetedBandwidthGroups(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetedBandwidthGroupsIsMutable(); + targetedBandwidthGroups_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of resource names of the bandwidth groups that should be
+     * targeted/included.
+     * 
+ * + * + * repeated string targeted_bandwidth_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param values The targetedBandwidthGroups to add. + * @return This builder for chaining. + */ + public Builder addAllTargetedBandwidthGroups(java.lang.Iterable values) { + ensureTargetedBandwidthGroupsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetedBandwidthGroups_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of resource names of the bandwidth groups that should be
+     * targeted/included.
+     * 
+ * + * + * repeated string targeted_bandwidth_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTargetedBandwidthGroups() { + targetedBandwidthGroups_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of resource names of the bandwidth groups that should be
+     * targeted/included.
+     * 
+ * + * + * repeated string targeted_bandwidth_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the targetedBandwidthGroups to add. + * @return This builder for chaining. + */ + public Builder addTargetedBandwidthGroupsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTargetedBandwidthGroupsIsMutable(); + targetedBandwidthGroups_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList excludedBandwidthGroups_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureExcludedBandwidthGroupsIsMutable() { + if (!excludedBandwidthGroups_.isModifiable()) { + excludedBandwidthGroups_ = + new com.google.protobuf.LazyStringArrayList(excludedBandwidthGroups_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
+     * Optional. A list of resource names of the bandwidth groups that should be
+     * excluded.
+     * 
+ * + * + * repeated string excluded_bandwidth_groups = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the excludedBandwidthGroups. + */ + public com.google.protobuf.ProtocolStringList getExcludedBandwidthGroupsList() { + excludedBandwidthGroups_.makeImmutable(); + return excludedBandwidthGroups_; + } + + /** + * + * + *
+     * Optional. A list of resource names of the bandwidth groups that should be
+     * excluded.
+     * 
+ * + * + * repeated string excluded_bandwidth_groups = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of excludedBandwidthGroups. + */ + public int getExcludedBandwidthGroupsCount() { + return excludedBandwidthGroups_.size(); + } + + /** + * + * + *
+     * Optional. A list of resource names of the bandwidth groups that should be
+     * excluded.
+     * 
+ * + * + * repeated string excluded_bandwidth_groups = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The excludedBandwidthGroups at the given index. + */ + public java.lang.String getExcludedBandwidthGroups(int index) { + return excludedBandwidthGroups_.get(index); + } + + /** + * + * + *
+     * Optional. A list of resource names of the bandwidth groups that should be
+     * excluded.
+     * 
+ * + * + * repeated string excluded_bandwidth_groups = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedBandwidthGroups at the given index. + */ + public com.google.protobuf.ByteString getExcludedBandwidthGroupsBytes(int index) { + return excludedBandwidthGroups_.getByteString(index); + } + + /** + * + * + *
+     * Optional. A list of resource names of the bandwidth groups that should be
+     * excluded.
+     * 
+ * + * + * repeated string excluded_bandwidth_groups = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The excludedBandwidthGroups to set. + * @return This builder for chaining. + */ + public Builder setExcludedBandwidthGroups(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedBandwidthGroupsIsMutable(); + excludedBandwidthGroups_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of resource names of the bandwidth groups that should be
+     * excluded.
+     * 
+ * + * + * repeated string excluded_bandwidth_groups = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The excludedBandwidthGroups to add. + * @return This builder for chaining. + */ + public Builder addExcludedBandwidthGroups(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedBandwidthGroupsIsMutable(); + excludedBandwidthGroups_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of resource names of the bandwidth groups that should be
+     * excluded.
+     * 
+ * + * + * repeated string excluded_bandwidth_groups = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param values The excludedBandwidthGroups to add. + * @return This builder for chaining. + */ + public Builder addAllExcludedBandwidthGroups(java.lang.Iterable values) { + ensureExcludedBandwidthGroupsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, excludedBandwidthGroups_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of resource names of the bandwidth groups that should be
+     * excluded.
+     * 
+ * + * + * repeated string excluded_bandwidth_groups = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearExcludedBandwidthGroups() { + excludedBandwidthGroups_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of resource names of the bandwidth groups that should be
+     * excluded.
+     * 
+ * + * + * repeated string excluded_bandwidth_groups = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the excludedBandwidthGroups to add. + * @return This builder for chaining. + */ + public Builder addExcludedBandwidthGroupsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureExcludedBandwidthGroupsIsMutable(); + excludedBandwidthGroups_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.BandwidthTargeting) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BandwidthTargeting) + private static final com.google.ads.admanager.v1.BandwidthTargeting DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BandwidthTargeting(); + } + + public static com.google.ads.admanager.v1.BandwidthTargeting getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BandwidthTargeting parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.BandwidthTargeting getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BandwidthTargetingOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BandwidthTargetingOrBuilder.java new file mode 100644 index 000000000000..215631d0d3e1 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BandwidthTargetingOrBuilder.java @@ -0,0 +1,158 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BandwidthTargetingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BandwidthTargeting) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. A list of resource names of the bandwidth groups that should be
+   * targeted/included.
+   * 
+ * + * + * repeated string targeted_bandwidth_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetedBandwidthGroups. + */ + java.util.List getTargetedBandwidthGroupsList(); + + /** + * + * + *
+   * Optional. A list of resource names of the bandwidth groups that should be
+   * targeted/included.
+   * 
+ * + * + * repeated string targeted_bandwidth_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetedBandwidthGroups. + */ + int getTargetedBandwidthGroupsCount(); + + /** + * + * + *
+   * Optional. A list of resource names of the bandwidth groups that should be
+   * targeted/included.
+   * 
+ * + * + * repeated string targeted_bandwidth_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetedBandwidthGroups at the given index. + */ + java.lang.String getTargetedBandwidthGroups(int index); + + /** + * + * + *
+   * Optional. A list of resource names of the bandwidth groups that should be
+   * targeted/included.
+   * 
+ * + * + * repeated string targeted_bandwidth_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetedBandwidthGroups at the given index. + */ + com.google.protobuf.ByteString getTargetedBandwidthGroupsBytes(int index); + + /** + * + * + *
+   * Optional. A list of resource names of the bandwidth groups that should be
+   * excluded.
+   * 
+ * + * + * repeated string excluded_bandwidth_groups = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the excludedBandwidthGroups. + */ + java.util.List getExcludedBandwidthGroupsList(); + + /** + * + * + *
+   * Optional. A list of resource names of the bandwidth groups that should be
+   * excluded.
+   * 
+ * + * + * repeated string excluded_bandwidth_groups = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of excludedBandwidthGroups. + */ + int getExcludedBandwidthGroupsCount(); + + /** + * + * + *
+   * Optional. A list of resource names of the bandwidth groups that should be
+   * excluded.
+   * 
+ * + * + * repeated string excluded_bandwidth_groups = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The excludedBandwidthGroups at the given index. + */ + java.lang.String getExcludedBandwidthGroups(int index); + + /** + * + * + *
+   * Optional. A list of resource names of the bandwidth groups that should be
+   * excluded.
+   * 
+ * + * + * repeated string excluded_bandwidth_groups = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedBandwidthGroups at the given index. + */ + com.google.protobuf.ByteString getExcludedBandwidthGroupsBytes(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Company.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Company.java index 042e19f783c4..2c300f89d223 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Company.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Company.java @@ -887,6 +887,26 @@ public com.google.protobuf.ByteString getAppliedTeamsBytes(int index) { return appliedTeams_.getByteString(index); } + public static final int THIRD_PARTY_COMPANY_ID_FIELD_NUMBER = 16; + private long thirdPartyCompanyId_ = 0L; + + /** + * + * + *
+   * Optional. The ID of the Google-recognized canonicalized form of the
+   * `Company`.
+   * 
+ * + * int64 third_party_company_id = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The thirdPartyCompanyId. + */ + @java.lang.Override + public long getThirdPartyCompanyId() { + return thirdPartyCompanyId_; + } + public static final int UPDATE_TIME_FIELD_NUMBER = 15; private com.google.protobuf.Timestamp updateTime_; @@ -939,26 +959,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } - public static final int THIRD_PARTY_COMPANY_ID_FIELD_NUMBER = 16; - private long thirdPartyCompanyId_ = 0L; - - /** - * - * - *
-   * Optional. The ID of the Google-recognized canonicalized form of the
-   * `Company`.
-   * 
- * - * int64 third_party_company_id = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The thirdPartyCompanyId. - */ - @java.lang.Override - public long getThirdPartyCompanyId() { - return thirdPartyCompanyId_; - } - private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1125,11 +1125,11 @@ public boolean equals(final java.lang.Object obj) { if (!getPrimaryContact().equals(other.getPrimaryContact())) return false; } if (!getAppliedTeamsList().equals(other.getAppliedTeamsList())) return false; + if (getThirdPartyCompanyId() != other.getThirdPartyCompanyId()) return false; if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { if (!getUpdateTime().equals(other.getUpdateTime())) return false; } - if (getThirdPartyCompanyId() != other.getThirdPartyCompanyId()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1175,12 +1175,12 @@ public int hashCode() { hash = (37 * hash) + APPLIED_TEAMS_FIELD_NUMBER; hash = (53 * hash) + getAppliedTeamsList().hashCode(); } + hash = (37 * hash) + THIRD_PARTY_COMPANY_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getThirdPartyCompanyId()); if (hasUpdateTime()) { hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getUpdateTime().hashCode(); } - hash = (37 * hash) + THIRD_PARTY_COMPANY_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getThirdPartyCompanyId()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1350,12 +1350,12 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000800); primaryContact_ = ""; appliedTeams_ = com.google.protobuf.LazyStringArrayList.emptyList(); + thirdPartyCompanyId_ = 0L; updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - thirdPartyCompanyId_ = 0L; return this; } @@ -1447,11 +1447,11 @@ private void buildPartial0(com.google.ads.admanager.v1.Company result) { result.appliedTeams_ = appliedTeams_; } if (((from_bitField0_ & 0x00004000) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); - to_bitField0_ |= 0x00000002; + result.thirdPartyCompanyId_ = thirdPartyCompanyId_; } if (((from_bitField0_ & 0x00008000) != 0)) { - result.thirdPartyCompanyId_ = thirdPartyCompanyId_; + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @@ -1592,12 +1592,12 @@ public Builder mergeFrom(com.google.ads.admanager.v1.Company other) { } onChanged(); } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); - } if (other.getThirdPartyCompanyId() != 0L) { setThirdPartyCompanyId(other.getThirdPartyCompanyId()); } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1719,13 +1719,13 @@ public Builder mergeFrom( case 122: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 122 case 128: { thirdPartyCompanyId_ = input.readInt64(); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00004000; break; } // case 128 default: @@ -3759,6 +3759,65 @@ public Builder addAppliedTeamsBytes(com.google.protobuf.ByteString value) { return this; } + private long thirdPartyCompanyId_; + + /** + * + * + *
+     * Optional. The ID of the Google-recognized canonicalized form of the
+     * `Company`.
+     * 
+ * + * int64 third_party_company_id = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The thirdPartyCompanyId. + */ + @java.lang.Override + public long getThirdPartyCompanyId() { + return thirdPartyCompanyId_; + } + + /** + * + * + *
+     * Optional. The ID of the Google-recognized canonicalized form of the
+     * `Company`.
+     * 
+ * + * int64 third_party_company_id = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The thirdPartyCompanyId to set. + * @return This builder for chaining. + */ + public Builder setThirdPartyCompanyId(long value) { + + thirdPartyCompanyId_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The ID of the Google-recognized canonicalized form of the
+     * `Company`.
+     * 
+ * + * int64 third_party_company_id = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearThirdPartyCompanyId() { + bitField0_ = (bitField0_ & ~0x00004000); + thirdPartyCompanyId_ = 0L; + onChanged(); + return this; + } + private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, @@ -3780,7 +3839,7 @@ public Builder addAppliedTeamsBytes(com.google.protobuf.ByteString value) { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** @@ -3826,7 +3885,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -3848,7 +3907,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -3866,7 +3925,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) + if (((bitField0_ & 0x00008000) != 0) && updateTime_ != null && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); @@ -3877,7 +3936,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { updateTimeBuilder_.mergeFrom(value); } if (updateTime_ != null) { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); } return this; @@ -3895,7 +3954,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { *
*/ public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); @@ -3917,7 +3976,7 @@ public Builder clearUpdateTime() { *
*/ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -3971,65 +4030,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return updateTimeBuilder_; } - private long thirdPartyCompanyId_; - - /** - * - * - *
-     * Optional. The ID of the Google-recognized canonicalized form of the
-     * `Company`.
-     * 
- * - * int64 third_party_company_id = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The thirdPartyCompanyId. - */ - @java.lang.Override - public long getThirdPartyCompanyId() { - return thirdPartyCompanyId_; - } - - /** - * - * - *
-     * Optional. The ID of the Google-recognized canonicalized form of the
-     * `Company`.
-     * 
- * - * int64 third_party_company_id = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The thirdPartyCompanyId to set. - * @return This builder for chaining. - */ - public Builder setThirdPartyCompanyId(long value) { - - thirdPartyCompanyId_ = value; - bitField0_ |= 0x00008000; - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. The ID of the Google-recognized canonicalized form of the
-     * `Company`.
-     * 
- * - * int64 third_party_company_id = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearThirdPartyCompanyId() { - bitField0_ = (bitField0_ & ~0x00008000); - thirdPartyCompanyId_ = 0L; - onChanged(); - return this; - } - @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyCreditStatusEnum.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyCreditStatusEnum.java index 4d6772b6ba34..1fb111b74a25 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyCreditStatusEnum.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyCreditStatusEnum.java @@ -14,7 +14,7 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/admanager/v1/company_credit_status_enum.proto +// source: google/ads/admanager/v1/company_enums.proto // Protobuf Java Version: 3.25.8 package com.google.ads.admanager.v1; @@ -49,14 +49,14 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.CompanyCreditStatusEnumProto + return com.google.ads.admanager.v1.CompanyEnumsProto .internal_static_google_ads_admanager_v1_CompanyCreditStatusEnum_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.CompanyCreditStatusEnumProto + return com.google.ads.admanager.v1.CompanyEnumsProto .internal_static_google_ads_admanager_v1_CompanyCreditStatusEnum_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.admanager.v1.CompanyCreditStatusEnum.class, @@ -546,14 +546,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.CompanyCreditStatusEnum) com.google.ads.admanager.v1.CompanyCreditStatusEnumOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.CompanyCreditStatusEnumProto + return com.google.ads.admanager.v1.CompanyEnumsProto .internal_static_google_ads_admanager_v1_CompanyCreditStatusEnum_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.CompanyCreditStatusEnumProto + return com.google.ads.admanager.v1.CompanyEnumsProto .internal_static_google_ads_admanager_v1_CompanyCreditStatusEnum_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.admanager.v1.CompanyCreditStatusEnum.class, @@ -575,7 +575,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.admanager.v1.CompanyCreditStatusEnumProto + return com.google.ads.admanager.v1.CompanyEnumsProto .internal_static_google_ads_admanager_v1_CompanyCreditStatusEnum_descriptor; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyCreditStatusEnumOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyCreditStatusEnumOrBuilder.java index 76192d065a0a..1c97cb82d99c 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyCreditStatusEnumOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyCreditStatusEnumOrBuilder.java @@ -14,7 +14,7 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/admanager/v1/company_credit_status_enum.proto +// source: google/ads/admanager/v1/company_enums.proto // Protobuf Java Version: 3.25.8 package com.google.ads.admanager.v1; diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyCreditStatusEnumProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyEnumsProto.java similarity index 60% rename from java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyCreditStatusEnumProto.java rename to java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyEnumsProto.java index 9beea5948978..3ed1af6a6326 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyCreditStatusEnumProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyEnumsProto.java @@ -14,13 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/admanager/v1/company_credit_status_enum.proto +// source: google/ads/admanager/v1/company_enums.proto // Protobuf Java Version: 3.25.8 package com.google.ads.admanager.v1; -public final class CompanyCreditStatusEnumProto { - private CompanyCreditStatusEnumProto() {} +public final class CompanyEnumsProto { + private CompanyEnumsProto() {} public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} @@ -28,6 +28,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_CompanyTypeEnum_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_CompanyTypeEnum_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_ads_admanager_v1_CompanyCreditStatusEnum_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -42,8 +46,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n" - + "8google/ads/admanager/v1/company_credit" - + "_status_enum.proto\022\027google.ads.admanager.v1\"\225\001\n" + + "+google/ads/admanager/v1/company_enums.proto\022\027google.ads.admanager.v1\"\222\001\n" + + "\017CompanyTypeEnum\"\177\n" + + "\013CompanyType\022\034\n" + + "\030COMPANY_TYPE_UNSPECIFIED\020\000\022\016\n\n" + + "ADVERTISER\020\001\022\024\n" + + "\020HOUSE_ADVERTISER\020\002\022\n\n" + + "\006AGENCY\020\003\022\020\n" + + "\014HOUSE_AGENCY\020\004\022\016\n\n" + + "AD_NETWORK\020\005\"\225\001\n" + "\027CompanyCreditStatusEnum\"z\n" + "\023CompanyCreditStatus\022%\n" + "!COMPANY_CREDIT_STATUS_UNSPECIFIED\020\000\022\n\n" @@ -51,17 +62,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010INACTIVE\020\002\022\013\n" + "\007ON_HOLD\020\003\022\010\n" + "\004STOP\020\004\022\013\n" - + "\007BLOCKED\020\005B\320\001\n" - + "\033com.google.ads.admanager.v1B\034CompanyCred" - + "itStatusEnumProtoP\001Z@google.golang.org/genproto/googleapis/ads/admanager/v1;adma" - + "nager\252\002\027Google.Ads.AdManager.V1\312\002\027Google" - + "\\Ads\\AdManager\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" + + "\007BLOCKED\020\005B\305\001\n" + + "\033com.google.ads.admanager.v1B\021CompanyEnumsProtoP\001Z@google.golang." + + "org/genproto/googleapis/ads/admanager/v1" + + ";admanager\252\002\027Google.Ads.AdManager.V1\312\002\027G" + + "oogle\\Ads\\AdManager\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_ads_admanager_v1_CompanyCreditStatusEnum_descriptor = + internal_static_google_ads_admanager_v1_CompanyTypeEnum_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_CompanyTypeEnum_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_CompanyTypeEnum_descriptor, + new java.lang.String[] {}); + internal_static_google_ads_admanager_v1_CompanyCreditStatusEnum_descriptor = + getDescriptor().getMessageTypes().get(1); internal_static_google_ads_admanager_v1_CompanyCreditStatusEnum_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_admanager_v1_CompanyCreditStatusEnum_descriptor, diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyMessagesProto.java index f20699716a47..a0ce545592c2 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyMessagesProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyMessagesProto.java @@ -44,17 +44,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n" + ".google/ads/admanager/v1/company_messag" + "es.proto\022\027google.ads.admanager.v1\032+googl" - + "e/ads/admanager/v1/applied_label.proto\0328google/ads/admanager/v1/company_credit_s" - + "tatus_enum.proto\032/google/ads/admanager/v" - + "1/company_type_enum.proto\032\037google/api/fi" - + "eld_behavior.proto\032\031google/api/resource." - + "proto\032\037google/protobuf/timestamp.proto\"\234\006\n" + + "e/ads/admanager/v1/applied_label.proto\032+google/ads/admanager/v1/company_enums.pr" + + "oto\032\037google/api/field_behavior.proto\032\031go" + + "ogle/api/resource.proto\032\037google/protobuf/timestamp.proto\"\234\006\n" + "\007Company\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\027\n\n" + "company_id\030\002 \001(\003B\003\340A\003\022\031\n" + "\014display_name\030\003 \001(\tB\003\340A\002\022G\n" - + "\004type\030\004" - + " \001(\01624.google.ads.admanager.v1.CompanyTypeEnum.CompanyTypeB\003\340A\002\022\024\n" + + "\004type\030\004 \001(\01624.goog" + + "le.ads.admanager.v1.CompanyTypeEnum.CompanyTypeB\003\340A\002\022\024\n" + "\007address\030\005 \001(\tB\003\340A\001\022\022\n" + "\005email\030\006 \001(\tB\003\340A\001\022\020\n" + "\003fax\030\007 \001(\tB\003\340A\001\022\022\n" @@ -62,32 +60,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013external_id\030\t \001(\tB\003\340A\001\022\024\n" + "\007comment\030\n" + " \001(\tB\003\340A\001\022`\n\r" - + "credit_status\030\013 \001(\0162D.google.ads.a" - + "dmanager.v1.CompanyCreditStatusEnum.CompanyCreditStatusB\003\340A\001\022B\n" + + "credit_status\030\013 \001(\0162D.google.ads.admanager.v1.CompanyCre" + + "ditStatusEnum.CompanyCreditStatusB\003\340A\001\022B\n" + "\016applied_labels\030\014" + " \003(\0132%.google.ads.admanager.v1.AppliedLabelB\003\340A\001\022F\n" + "\017primary_contact\030\r" + " \001(\tB(\340A\001\372A\"\n" + " admanager.googleapis.com/ContactH\000\210\001\001\022<\n\r" + "applied_teams\030\016 \003(\tB%\340A\001\372A\037\n" - + "\035admanager.googleapis.com/Team\0224\n" - + "\013update_time\030\017 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022#\n" - + "\026third_party_company_id\030\020 \001(\003B\003\340A\001:f\352Ac\n" + + "\035admanager.googleapis.com/Team\022#\n" + + "\026third_party_company_id\030\020 \001(\003B\003\340A\001\0224\n" + + "\013update_time\030\017" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003:f\352Ac\n" + " admanager.googleapis.com/Company\022+networks/{network_code}/companies/{company}*" + "\tcompanies2\007companyB\022\n" + "\020_primary_contactB\310\001\n" - + "\033com.google.ads.admanager.v1B\024CompanyMe" - + "ssagesProtoP\001Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\252" - + "\002\027Google.Ads.AdManager.V1\312\002\027Google\\Ads\\A" - + "dManager\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" + + "\033com.google.ads.admanager.v1B\024CompanyMessagesProtoP\001Z@google." + + "golang.org/genproto/googleapis/ads/adman" + + "ager/v1;admanager\252\002\027Google.Ads.AdManager" + + ".V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032Google::" + + "Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.ads.admanager.v1.AppliedLabelProto.getDescriptor(), - com.google.ads.admanager.v1.CompanyCreditStatusEnumProto.getDescriptor(), - com.google.ads.admanager.v1.CompanyTypeEnumProto.getDescriptor(), + com.google.ads.admanager.v1.CompanyEnumsProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), @@ -112,8 +111,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AppliedLabels", "PrimaryContact", "AppliedTeams", - "UpdateTime", "ThirdPartyCompanyId", + "UpdateTime", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); @@ -123,8 +122,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); com.google.ads.admanager.v1.AppliedLabelProto.getDescriptor(); - com.google.ads.admanager.v1.CompanyCreditStatusEnumProto.getDescriptor(); - com.google.ads.admanager.v1.CompanyTypeEnumProto.getDescriptor(); + com.google.ads.admanager.v1.CompanyEnumsProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyOrBuilder.java index a91f9a95474d..c86672138e48 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyOrBuilder.java @@ -525,15 +525,15 @@ public interface CompanyOrBuilder * * *
-   * Output only. The time the `Company` was last modified.
+   * Optional. The ID of the Google-recognized canonicalized form of the
+   * `Company`.
    * 
* - * .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * int64 third_party_company_id = 16 [(.google.api.field_behavior) = OPTIONAL]; * - * @return Whether the updateTime field is set. + * @return The thirdPartyCompanyId. */ - boolean hasUpdateTime(); + long getThirdPartyCompanyId(); /** * @@ -545,9 +545,9 @@ public interface CompanyOrBuilder * .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The updateTime. + * @return Whether the updateTime field is set. */ - com.google.protobuf.Timestamp getUpdateTime(); + boolean hasUpdateTime(); /** * @@ -558,20 +558,20 @@ public interface CompanyOrBuilder * * .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The updateTime. */ - com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + com.google.protobuf.Timestamp getUpdateTime(); /** * * *
-   * Optional. The ID of the Google-recognized canonicalized form of the
-   * `Company`.
+   * Output only. The time the `Company` was last modified.
    * 
* - * int64 third_party_company_id = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The thirdPartyCompanyId. + * .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - long getThirdPartyCompanyId(); + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyServiceProto.java index 29b23dca7352..54b3b0f4d576 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyServiceProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyServiceProto.java @@ -69,19 +69,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025ListCompaniesResponse\0223\n" + "\tcompanies\030\001 \003(\0132 .google.ads.admanager.v1.Company\022\027\n" + "\017next_page_token\030\002 \001(\t\022\022\n\n" - + "total_size\030\003 \001(\0052\341\002\n" + + "total_size\030\003 \001(\0052\215\003\n" + "\016CompanyService\022\214\001\n\n" + "GetCompany\022*.google.ads.admanager.v1.GetCompanyRequest\032 .google.ad" + "s.admanager.v1.Company\"0\332A\004name\202\323\344\223\002#\022!/v1/{name=networks/*/companies/*}\022\242\001\n\r" + "ListCompanies\022-.google.ads.admanager.v1.Lis" + "tCompaniesRequest\032..google.ads.admanager" + ".v1.ListCompaniesResponse\"2\332A\006parent\202\323\344\223" - + "\002#\022!/v1/{parent=networks/*}/companies\032\033\312A\030admanager.googleapis.comB\307\001\n" - + "\033com.google.ads.admanager.v1B\023CompanyServiceProtoP" - + "\001Z@google.golang.org/genproto/googleapis" - + "/ads/admanager/v1;admanager\252\002\027Google.Ads" - + ".AdManager.V1\312\002\027Google\\Ads\\AdManager\\V1\352" - + "\002\032Google::Ads::AdManager::V1b\006proto3" + + "\002#\022!/v1/{parent=networks/*}/companies\032G\312" + + "A\030admanager.googleapis.com\322A)https://www.googleapis.com/auth/admanagerB\307\001\n" + + "\033com.google.ads.admanager.v1B\023CompanyServicePr" + + "otoP\001Z@google.golang.org/genproto/google" + + "apis/ads/admanager/v1;admanager\252\002\027Google" + + ".Ads.AdManager.V1\312\002\027Google\\Ads\\AdManager" + + "\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -123,6 +124,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.AnnotationsProto.http); registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyTypeEnum.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyTypeEnum.java index c00e0078cc2e..9fa215d0af27 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyTypeEnum.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyTypeEnum.java @@ -14,7 +14,7 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/admanager/v1/company_type_enum.proto +// source: google/ads/admanager/v1/company_enums.proto // Protobuf Java Version: 3.25.8 package com.google.ads.admanager.v1; @@ -49,14 +49,14 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.CompanyTypeEnumProto + return com.google.ads.admanager.v1.CompanyEnumsProto .internal_static_google_ads_admanager_v1_CompanyTypeEnum_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.CompanyTypeEnumProto + return com.google.ads.admanager.v1.CompanyEnumsProto .internal_static_google_ads_admanager_v1_CompanyTypeEnum_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.admanager.v1.CompanyTypeEnum.class, @@ -459,14 +459,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.CompanyTypeEnum) com.google.ads.admanager.v1.CompanyTypeEnumOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.CompanyTypeEnumProto + return com.google.ads.admanager.v1.CompanyEnumsProto .internal_static_google_ads_admanager_v1_CompanyTypeEnum_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.CompanyTypeEnumProto + return com.google.ads.admanager.v1.CompanyEnumsProto .internal_static_google_ads_admanager_v1_CompanyTypeEnum_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.admanager.v1.CompanyTypeEnum.class, @@ -488,7 +488,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.admanager.v1.CompanyTypeEnumProto + return com.google.ads.admanager.v1.CompanyEnumsProto .internal_static_google_ads_admanager_v1_CompanyTypeEnum_descriptor; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyTypeEnumOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyTypeEnumOrBuilder.java index e0d4a53ccc51..f1557399f7af 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyTypeEnumOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyTypeEnumOrBuilder.java @@ -14,7 +14,7 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/admanager/v1/company_type_enum.proto +// source: google/ads/admanager/v1/company_enums.proto // Protobuf Java Version: 3.25.8 package com.google.ads.admanager.v1; diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Contact.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Contact.java index 656cebe2e603..647a4d3e9558 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Contact.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Contact.java @@ -44,6 +44,7 @@ private Contact(com.google.protobuf.GeneratedMessageV3.Builder builder) { private Contact() { name_ = ""; + companyDisplayName_ = ""; } @java.lang.Override @@ -67,6 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.ads.admanager.v1.Contact.Builder.class); } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -122,24 +124,76 @@ public com.google.protobuf.ByteString getNameBytes() { } } - public static final int CONTACT_ID_FIELD_NUMBER = 2; - private long contactId_ = 0L; + public static final int COMPANY_DISPLAY_NAME_FIELD_NUMBER = 19; + + @SuppressWarnings("serial") + private volatile java.lang.Object companyDisplayName_ = ""; /** * * *
-   * Output only. The unique ID of the contact. This value is readonly and is
-   * assigned by Google.
+   * Output only. The display name of the Company.
    * 
* - * int64 contact_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string company_display_name = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return The contactId. + * @return Whether the companyDisplayName field is set. */ @java.lang.Override - public long getContactId() { - return contactId_; + public boolean hasCompanyDisplayName() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. The display name of the Company.
+   * 
+ * + * optional string company_display_name = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The companyDisplayName. + */ + @java.lang.Override + public java.lang.String getCompanyDisplayName() { + java.lang.Object ref = companyDisplayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + companyDisplayName_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The display name of the Company.
+   * 
+ * + * optional string company_display_name = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for companyDisplayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCompanyDisplayNameBytes() { + java.lang.Object ref = companyDisplayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + companyDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } private byte memoizedIsInitialized = -1; @@ -159,8 +213,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (contactId_ != 0L) { - output.writeInt64(2, contactId_); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 19, companyDisplayName_); } getUnknownFields().writeTo(output); } @@ -174,8 +228,8 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (contactId_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, contactId_); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, companyDisplayName_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -193,7 +247,10 @@ public boolean equals(final java.lang.Object obj) { com.google.ads.admanager.v1.Contact other = (com.google.ads.admanager.v1.Contact) obj; if (!getName().equals(other.getName())) return false; - if (getContactId() != other.getContactId()) return false; + if (hasCompanyDisplayName() != other.hasCompanyDisplayName()) return false; + if (hasCompanyDisplayName()) { + if (!getCompanyDisplayName().equals(other.getCompanyDisplayName())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -207,8 +264,10 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + CONTACT_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getContactId()); + if (hasCompanyDisplayName()) { + hash = (37 * hash) + COMPANY_DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getCompanyDisplayName().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -352,7 +411,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; - contactId_ = 0L; + companyDisplayName_ = ""; return this; } @@ -391,9 +450,12 @@ private void buildPartial0(com.google.ads.admanager.v1.Contact result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.contactId_ = contactId_; + result.companyDisplayName_ = companyDisplayName_; + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -446,8 +508,10 @@ public Builder mergeFrom(com.google.ads.admanager.v1.Contact other) { bitField0_ |= 0x00000001; onChanged(); } - if (other.getContactId() != 0L) { - setContactId(other.getContactId()); + if (other.hasCompanyDisplayName()) { + companyDisplayName_ = other.companyDisplayName_; + bitField0_ |= 0x00000002; + onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -481,12 +545,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 - case 16: + case 154: { - contactId_ = input.readInt64(); + companyDisplayName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; - } // case 16 + } // case 154 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -622,41 +686,90 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private long contactId_; + private java.lang.Object companyDisplayName_ = ""; /** * * *
-     * Output only. The unique ID of the contact. This value is readonly and is
-     * assigned by Google.
+     * Output only. The display name of the Company.
      * 
* - * int64 contact_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string company_display_name = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return The contactId. + * @return Whether the companyDisplayName field is set. */ - @java.lang.Override - public long getContactId() { - return contactId_; + public boolean hasCompanyDisplayName() { + return ((bitField0_ & 0x00000002) != 0); } /** * * *
-     * Output only. The unique ID of the contact. This value is readonly and is
-     * assigned by Google.
+     * Output only. The display name of the Company.
      * 
* - * int64 contact_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string company_display_name = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @param value The contactId to set. - * @return This builder for chaining. + * @return The companyDisplayName. + */ + public java.lang.String getCompanyDisplayName() { + java.lang.Object ref = companyDisplayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + companyDisplayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The display name of the Company.
+     * 
+ * + * optional string company_display_name = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for companyDisplayName. */ - public Builder setContactId(long value) { + public com.google.protobuf.ByteString getCompanyDisplayNameBytes() { + java.lang.Object ref = companyDisplayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + companyDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - contactId_ = value; + /** + * + * + *
+     * Output only. The display name of the Company.
+     * 
+ * + * optional string company_display_name = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The companyDisplayName to set. + * @return This builder for chaining. + */ + public Builder setCompanyDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + companyDisplayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; @@ -666,17 +779,41 @@ public Builder setContactId(long value) { * * *
-     * Output only. The unique ID of the contact. This value is readonly and is
-     * assigned by Google.
+     * Output only. The display name of the Company.
      * 
* - * int64 contact_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string company_display_name = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ - public Builder clearContactId() { + public Builder clearCompanyDisplayName() { + companyDisplayName_ = getDefaultInstance().getCompanyDisplayName(); bitField0_ = (bitField0_ & ~0x00000002); - contactId_ = 0L; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The display name of the Company.
+     * 
+ * + * optional string company_display_name = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for companyDisplayName to set. + * @return This builder for chaining. + */ + public Builder setCompanyDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + companyDisplayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContactMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContactMessagesProto.java index bd7d5826f302..19c5c865921e 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContactMessagesProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContactMessagesProto.java @@ -44,11 +44,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n.google/ads/admanager/v1/contact_messag" + "es.proto\022\027google.ads.admanager.v1\032\037googl" + "e/api/field_behavior.proto\032\031google/api/r" - + "esource.proto\"\233\001\n\007Contact\022\021\n\004name\030\001 \001(\tB" - + "\003\340A\010\022\027\n\ncontact_id\030\002 \001(\003B\003\340A\003:d\352Aa\n adma" - + "nager.googleapis.com/Contact\022*networks/{" - + "network_code}/contacts/{contact}*\010contac" - + "ts2\007contactB\310\001\n\033com.google.ads.admanager" + + "esource.proto\"\303\001\n\007Contact\022\021\n\004name\030\001 \001(\tB" + + "\003\340A\010\022&\n\024company_display_name\030\023 \001(\tB\003\340A\003H" + + "\000\210\001\001:d\352Aa\n admanager.googleapis.com/Cont" + + "act\022*networks/{network_code}/contacts/{c" + + "ontact}*\010contacts2\007contactB\027\n\025_company_d" + + "isplay_nameB\310\001\n\033com.google.ads.admanager" + ".v1B\024ContactMessagesProtoP\001Z@google.gola" + "ng.org/genproto/googleapis/ads/admanager" + "/v1;admanager\252\002\027Google.Ads.AdManager.V1\312" @@ -68,7 +69,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_admanager_v1_Contact_descriptor, new java.lang.String[] { - "Name", "ContactId", + "Name", "CompanyDisplayName", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContactOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContactOrBuilder.java index d32a73aac9cd..b66c914e7fd7 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContactOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContactOrBuilder.java @@ -56,13 +56,41 @@ public interface ContactOrBuilder * * *
-   * Output only. The unique ID of the contact. This value is readonly and is
-   * assigned by Google.
+   * Output only. The display name of the Company.
    * 
* - * int64 contact_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string company_display_name = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return The contactId. + * @return Whether the companyDisplayName field is set. */ - long getContactId(); + boolean hasCompanyDisplayName(); + + /** + * + * + *
+   * Output only. The display name of the Company.
+   * 
+ * + * optional string company_display_name = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The companyDisplayName. + */ + java.lang.String getCompanyDisplayName(); + + /** + * + * + *
+   * Output only. The display name of the Company.
+   * 
+ * + * optional string company_display_name = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for companyDisplayName. + */ + com.google.protobuf.ByteString getCompanyDisplayNameBytes(); } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreateAdBreakRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreateAdBreakRequest.java new file mode 100644 index 000000000000..a6e2fcc60e96 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreateAdBreakRequest.java @@ -0,0 +1,991 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/ad_break_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Request object for `CreateAdBreak` method.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.CreateAdBreakRequest} + */ +public final class CreateAdBreakRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.CreateAdBreakRequest) + CreateAdBreakRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CreateAdBreakRequest.newBuilder() to construct. + private CreateAdBreakRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateAdBreakRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateAdBreakRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdBreakServiceProto + .internal_static_google_ads_admanager_v1_CreateAdBreakRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdBreakServiceProto + .internal_static_google_ads_admanager_v1_CreateAdBreakRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CreateAdBreakRequest.class, + com.google.ads.admanager.v1.CreateAdBreakRequest.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 `AdBreak` will be created
+   * identified by an asset key or custom asset key.
+   *
+   * Formats:
+   * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}`
+   * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}`
+   * 
+ * + * + * 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 `AdBreak` will be created
+   * identified by an asset key or custom asset key.
+   *
+   * Formats:
+   * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}`
+   * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}`
+   * 
+ * + * + * 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 AD_BREAK_FIELD_NUMBER = 2; + private com.google.ads.admanager.v1.AdBreak adBreak_; + + /** + * + * + *
+   * Required. The `AdBreak` to create.
+   * 
+ * + * .google.ads.admanager.v1.AdBreak ad_break = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the adBreak field is set. + */ + @java.lang.Override + public boolean hasAdBreak() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The `AdBreak` to create.
+   * 
+ * + * .google.ads.admanager.v1.AdBreak ad_break = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The adBreak. + */ + @java.lang.Override + public com.google.ads.admanager.v1.AdBreak getAdBreak() { + return adBreak_ == null ? com.google.ads.admanager.v1.AdBreak.getDefaultInstance() : adBreak_; + } + + /** + * + * + *
+   * Required. The `AdBreak` to create.
+   * 
+ * + * .google.ads.admanager.v1.AdBreak ad_break = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.AdBreakOrBuilder getAdBreakOrBuilder() { + return adBreak_ == null ? com.google.ads.admanager.v1.AdBreak.getDefaultInstance() : adBreak_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getAdBreak()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAdBreak()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.admanager.v1.CreateAdBreakRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.CreateAdBreakRequest other = + (com.google.ads.admanager.v1.CreateAdBreakRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasAdBreak() != other.hasAdBreak()) return false; + if (hasAdBreak()) { + if (!getAdBreak().equals(other.getAdBreak())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasAdBreak()) { + hash = (37 * hash) + AD_BREAK_FIELD_NUMBER; + hash = (53 * hash) + getAdBreak().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.CreateAdBreakRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreateAdBreakRequest 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.admanager.v1.CreateAdBreakRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreateAdBreakRequest parseFrom( + 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.admanager.v1.CreateAdBreakRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreateAdBreakRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreateAdBreakRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreateAdBreakRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreateAdBreakRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreateAdBreakRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreateAdBreakRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreateAdBreakRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.CreateAdBreakRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request object for `CreateAdBreak` method.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.CreateAdBreakRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.CreateAdBreakRequest) + com.google.ads.admanager.v1.CreateAdBreakRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdBreakServiceProto + .internal_static_google_ads_admanager_v1_CreateAdBreakRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdBreakServiceProto + .internal_static_google_ads_admanager_v1_CreateAdBreakRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CreateAdBreakRequest.class, + com.google.ads.admanager.v1.CreateAdBreakRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.CreateAdBreakRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getAdBreakFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + adBreak_ = null; + if (adBreakBuilder_ != null) { + adBreakBuilder_.dispose(); + adBreakBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.AdBreakServiceProto + .internal_static_google_ads_admanager_v1_CreateAdBreakRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreateAdBreakRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.CreateAdBreakRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreateAdBreakRequest build() { + com.google.ads.admanager.v1.CreateAdBreakRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreateAdBreakRequest buildPartial() { + com.google.ads.admanager.v1.CreateAdBreakRequest result = + new com.google.ads.admanager.v1.CreateAdBreakRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.CreateAdBreakRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.adBreak_ = adBreakBuilder_ == null ? adBreak_ : adBreakBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.CreateAdBreakRequest) { + return mergeFrom((com.google.ads.admanager.v1.CreateAdBreakRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.CreateAdBreakRequest other) { + if (other == com.google.ads.admanager.v1.CreateAdBreakRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasAdBreak()) { + mergeAdBreak(other.getAdBreak()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getAdBreakFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent resource where this `AdBreak` will be created
+     * identified by an asset key or custom asset key.
+     *
+     * Formats:
+     * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}`
+     * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}`
+     * 
+ * + * + * 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 `AdBreak` will be created
+     * identified by an asset key or custom asset key.
+     *
+     * Formats:
+     * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}`
+     * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}`
+     * 
+ * + * + * 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 `AdBreak` will be created
+     * identified by an asset key or custom asset key.
+     *
+     * Formats:
+     * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}`
+     * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}`
+     * 
+ * + * + * 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 `AdBreak` will be created
+     * identified by an asset key or custom asset key.
+     *
+     * Formats:
+     * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}`
+     * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}`
+     * 
+ * + * + * 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 `AdBreak` will be created
+     * identified by an asset key or custom asset key.
+     *
+     * Formats:
+     * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}`
+     * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.ads.admanager.v1.AdBreak adBreak_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.AdBreak, + com.google.ads.admanager.v1.AdBreak.Builder, + com.google.ads.admanager.v1.AdBreakOrBuilder> + adBreakBuilder_; + + /** + * + * + *
+     * Required. The `AdBreak` to create.
+     * 
+ * + * + * .google.ads.admanager.v1.AdBreak ad_break = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the adBreak field is set. + */ + public boolean hasAdBreak() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. The `AdBreak` to create.
+     * 
+ * + * + * .google.ads.admanager.v1.AdBreak ad_break = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The adBreak. + */ + public com.google.ads.admanager.v1.AdBreak getAdBreak() { + if (adBreakBuilder_ == null) { + return adBreak_ == null + ? com.google.ads.admanager.v1.AdBreak.getDefaultInstance() + : adBreak_; + } else { + return adBreakBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The `AdBreak` to create.
+     * 
+ * + * + * .google.ads.admanager.v1.AdBreak ad_break = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAdBreak(com.google.ads.admanager.v1.AdBreak value) { + if (adBreakBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + adBreak_ = value; + } else { + adBreakBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The `AdBreak` to create.
+     * 
+ * + * + * .google.ads.admanager.v1.AdBreak ad_break = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAdBreak(com.google.ads.admanager.v1.AdBreak.Builder builderForValue) { + if (adBreakBuilder_ == null) { + adBreak_ = builderForValue.build(); + } else { + adBreakBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The `AdBreak` to create.
+     * 
+ * + * + * .google.ads.admanager.v1.AdBreak ad_break = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAdBreak(com.google.ads.admanager.v1.AdBreak value) { + if (adBreakBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && adBreak_ != null + && adBreak_ != com.google.ads.admanager.v1.AdBreak.getDefaultInstance()) { + getAdBreakBuilder().mergeFrom(value); + } else { + adBreak_ = value; + } + } else { + adBreakBuilder_.mergeFrom(value); + } + if (adBreak_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The `AdBreak` to create.
+     * 
+ * + * + * .google.ads.admanager.v1.AdBreak ad_break = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAdBreak() { + bitField0_ = (bitField0_ & ~0x00000002); + adBreak_ = null; + if (adBreakBuilder_ != null) { + adBreakBuilder_.dispose(); + adBreakBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The `AdBreak` to create.
+     * 
+ * + * + * .google.ads.admanager.v1.AdBreak ad_break = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.AdBreak.Builder getAdBreakBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getAdBreakFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The `AdBreak` to create.
+     * 
+ * + * + * .google.ads.admanager.v1.AdBreak ad_break = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.AdBreakOrBuilder getAdBreakOrBuilder() { + if (adBreakBuilder_ != null) { + return adBreakBuilder_.getMessageOrBuilder(); + } else { + return adBreak_ == null + ? com.google.ads.admanager.v1.AdBreak.getDefaultInstance() + : adBreak_; + } + } + + /** + * + * + *
+     * Required. The `AdBreak` to create.
+     * 
+ * + * + * .google.ads.admanager.v1.AdBreak ad_break = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.AdBreak, + com.google.ads.admanager.v1.AdBreak.Builder, + com.google.ads.admanager.v1.AdBreakOrBuilder> + getAdBreakFieldBuilder() { + if (adBreakBuilder_ == null) { + adBreakBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.AdBreak, + com.google.ads.admanager.v1.AdBreak.Builder, + com.google.ads.admanager.v1.AdBreakOrBuilder>( + getAdBreak(), getParentForChildren(), isClean()); + adBreak_ = null; + } + return adBreakBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.CreateAdBreakRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.CreateAdBreakRequest) + private static final com.google.ads.admanager.v1.CreateAdBreakRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.CreateAdBreakRequest(); + } + + public static com.google.ads.admanager.v1.CreateAdBreakRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAdBreakRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.CreateAdBreakRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreateAdBreakRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreateAdBreakRequestOrBuilder.java new file mode 100644 index 000000000000..9a70d2fc2606 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreateAdBreakRequestOrBuilder.java @@ -0,0 +1,106 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/ad_break_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface CreateAdBreakRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.CreateAdBreakRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource where this `AdBreak` will be created
+   * identified by an asset key or custom asset key.
+   *
+   * Formats:
+   * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}`
+   * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}`
+   * 
+ * + * + * 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 `AdBreak` will be created
+   * identified by an asset key or custom asset key.
+   *
+   * Formats:
+   * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}`
+   * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The `AdBreak` to create.
+   * 
+ * + * .google.ads.admanager.v1.AdBreak ad_break = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the adBreak field is set. + */ + boolean hasAdBreak(); + + /** + * + * + *
+   * Required. The `AdBreak` to create.
+   * 
+ * + * .google.ads.admanager.v1.AdBreak ad_break = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The adBreak. + */ + com.google.ads.admanager.v1.AdBreak getAdBreak(); + + /** + * + * + *
+   * Required. The `AdBreak` to create.
+   * 
+ * + * .google.ads.admanager.v1.AdBreak ad_break = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.AdBreakOrBuilder getAdBreakOrBuilder(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreatePrivateAuctionDealRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreatePrivateAuctionDealRequest.java new file mode 100644 index 000000000000..7ed1c3867e93 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreatePrivateAuctionDealRequest.java @@ -0,0 +1,979 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/private_auction_deal_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Request object for `CreatePrivateAuctionDeal` method.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.CreatePrivateAuctionDealRequest} + */ +public final class CreatePrivateAuctionDealRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.CreatePrivateAuctionDealRequest) + CreatePrivateAuctionDealRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CreatePrivateAuctionDealRequest.newBuilder() to construct. + private CreatePrivateAuctionDealRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreatePrivateAuctionDealRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreatePrivateAuctionDealRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PrivateAuctionDealServiceProto + .internal_static_google_ads_admanager_v1_CreatePrivateAuctionDealRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PrivateAuctionDealServiceProto + .internal_static_google_ads_admanager_v1_CreatePrivateAuctionDealRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CreatePrivateAuctionDealRequest.class, + com.google.ads.admanager.v1.CreatePrivateAuctionDealRequest.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 `PrivateAuctionDeal` will be
+   * created. Format: `networks/{network_code}`
+   * 
+ * + * + * 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 `PrivateAuctionDeal` will be
+   * created. Format: `networks/{network_code}`
+   * 
+ * + * + * 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 PRIVATE_AUCTION_DEAL_FIELD_NUMBER = 2; + private com.google.ads.admanager.v1.PrivateAuctionDeal privateAuctionDeal_; + + /** + * + * + *
+   * Required. The `PrivateAuctionDeal` to create.
+   * 
+ * + * + * .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the privateAuctionDeal field is set. + */ + @java.lang.Override + public boolean hasPrivateAuctionDeal() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The `PrivateAuctionDeal` to create.
+   * 
+ * + * + * .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The privateAuctionDeal. + */ + @java.lang.Override + public com.google.ads.admanager.v1.PrivateAuctionDeal getPrivateAuctionDeal() { + return privateAuctionDeal_ == null + ? com.google.ads.admanager.v1.PrivateAuctionDeal.getDefaultInstance() + : privateAuctionDeal_; + } + + /** + * + * + *
+   * Required. The `PrivateAuctionDeal` to create.
+   * 
+ * + * + * .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.PrivateAuctionDealOrBuilder getPrivateAuctionDealOrBuilder() { + return privateAuctionDeal_ == null + ? com.google.ads.admanager.v1.PrivateAuctionDeal.getDefaultInstance() + : privateAuctionDeal_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getPrivateAuctionDeal()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPrivateAuctionDeal()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.admanager.v1.CreatePrivateAuctionDealRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.CreatePrivateAuctionDealRequest other = + (com.google.ads.admanager.v1.CreatePrivateAuctionDealRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasPrivateAuctionDeal() != other.hasPrivateAuctionDeal()) return false; + if (hasPrivateAuctionDeal()) { + if (!getPrivateAuctionDeal().equals(other.getPrivateAuctionDeal())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasPrivateAuctionDeal()) { + hash = (37 * hash) + PRIVATE_AUCTION_DEAL_FIELD_NUMBER; + hash = (53 * hash) + getPrivateAuctionDeal().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.CreatePrivateAuctionDealRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreatePrivateAuctionDealRequest 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.admanager.v1.CreatePrivateAuctionDealRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreatePrivateAuctionDealRequest parseFrom( + 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.admanager.v1.CreatePrivateAuctionDealRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreatePrivateAuctionDealRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreatePrivateAuctionDealRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreatePrivateAuctionDealRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreatePrivateAuctionDealRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreatePrivateAuctionDealRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreatePrivateAuctionDealRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreatePrivateAuctionDealRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.CreatePrivateAuctionDealRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request object for `CreatePrivateAuctionDeal` method.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.CreatePrivateAuctionDealRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.CreatePrivateAuctionDealRequest) + com.google.ads.admanager.v1.CreatePrivateAuctionDealRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PrivateAuctionDealServiceProto + .internal_static_google_ads_admanager_v1_CreatePrivateAuctionDealRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PrivateAuctionDealServiceProto + .internal_static_google_ads_admanager_v1_CreatePrivateAuctionDealRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CreatePrivateAuctionDealRequest.class, + com.google.ads.admanager.v1.CreatePrivateAuctionDealRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.CreatePrivateAuctionDealRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPrivateAuctionDealFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + privateAuctionDeal_ = null; + if (privateAuctionDealBuilder_ != null) { + privateAuctionDealBuilder_.dispose(); + privateAuctionDealBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.PrivateAuctionDealServiceProto + .internal_static_google_ads_admanager_v1_CreatePrivateAuctionDealRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreatePrivateAuctionDealRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.CreatePrivateAuctionDealRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreatePrivateAuctionDealRequest build() { + com.google.ads.admanager.v1.CreatePrivateAuctionDealRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreatePrivateAuctionDealRequest buildPartial() { + com.google.ads.admanager.v1.CreatePrivateAuctionDealRequest result = + new com.google.ads.admanager.v1.CreatePrivateAuctionDealRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.CreatePrivateAuctionDealRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.privateAuctionDeal_ = + privateAuctionDealBuilder_ == null + ? privateAuctionDeal_ + : privateAuctionDealBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.CreatePrivateAuctionDealRequest) { + return mergeFrom((com.google.ads.admanager.v1.CreatePrivateAuctionDealRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.CreatePrivateAuctionDealRequest other) { + if (other == com.google.ads.admanager.v1.CreatePrivateAuctionDealRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasPrivateAuctionDeal()) { + mergePrivateAuctionDeal(other.getPrivateAuctionDeal()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getPrivateAuctionDealFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent resource where this `PrivateAuctionDeal` will be
+     * created. Format: `networks/{network_code}`
+     * 
+ * + * + * 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 `PrivateAuctionDeal` will be
+     * created. Format: `networks/{network_code}`
+     * 
+ * + * + * 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 `PrivateAuctionDeal` will be
+     * created. Format: `networks/{network_code}`
+     * 
+ * + * + * 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 `PrivateAuctionDeal` will be
+     * created. Format: `networks/{network_code}`
+     * 
+ * + * + * 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 `PrivateAuctionDeal` will be
+     * created. Format: `networks/{network_code}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.ads.admanager.v1.PrivateAuctionDeal privateAuctionDeal_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.PrivateAuctionDeal, + com.google.ads.admanager.v1.PrivateAuctionDeal.Builder, + com.google.ads.admanager.v1.PrivateAuctionDealOrBuilder> + privateAuctionDealBuilder_; + + /** + * + * + *
+     * Required. The `PrivateAuctionDeal` to create.
+     * 
+ * + * + * .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the privateAuctionDeal field is set. + */ + public boolean hasPrivateAuctionDeal() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. The `PrivateAuctionDeal` to create.
+     * 
+ * + * + * .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The privateAuctionDeal. + */ + public com.google.ads.admanager.v1.PrivateAuctionDeal getPrivateAuctionDeal() { + if (privateAuctionDealBuilder_ == null) { + return privateAuctionDeal_ == null + ? com.google.ads.admanager.v1.PrivateAuctionDeal.getDefaultInstance() + : privateAuctionDeal_; + } else { + return privateAuctionDealBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The `PrivateAuctionDeal` to create.
+     * 
+ * + * + * .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPrivateAuctionDeal(com.google.ads.admanager.v1.PrivateAuctionDeal value) { + if (privateAuctionDealBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + privateAuctionDeal_ = value; + } else { + privateAuctionDealBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The `PrivateAuctionDeal` to create.
+     * 
+ * + * + * .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPrivateAuctionDeal( + com.google.ads.admanager.v1.PrivateAuctionDeal.Builder builderForValue) { + if (privateAuctionDealBuilder_ == null) { + privateAuctionDeal_ = builderForValue.build(); + } else { + privateAuctionDealBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The `PrivateAuctionDeal` to create.
+     * 
+ * + * + * .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergePrivateAuctionDeal(com.google.ads.admanager.v1.PrivateAuctionDeal value) { + if (privateAuctionDealBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && privateAuctionDeal_ != null + && privateAuctionDeal_ + != com.google.ads.admanager.v1.PrivateAuctionDeal.getDefaultInstance()) { + getPrivateAuctionDealBuilder().mergeFrom(value); + } else { + privateAuctionDeal_ = value; + } + } else { + privateAuctionDealBuilder_.mergeFrom(value); + } + if (privateAuctionDeal_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The `PrivateAuctionDeal` to create.
+     * 
+ * + * + * .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearPrivateAuctionDeal() { + bitField0_ = (bitField0_ & ~0x00000002); + privateAuctionDeal_ = null; + if (privateAuctionDealBuilder_ != null) { + privateAuctionDealBuilder_.dispose(); + privateAuctionDealBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The `PrivateAuctionDeal` to create.
+     * 
+ * + * + * .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.PrivateAuctionDeal.Builder getPrivateAuctionDealBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getPrivateAuctionDealFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The `PrivateAuctionDeal` to create.
+     * 
+ * + * + * .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.PrivateAuctionDealOrBuilder + getPrivateAuctionDealOrBuilder() { + if (privateAuctionDealBuilder_ != null) { + return privateAuctionDealBuilder_.getMessageOrBuilder(); + } else { + return privateAuctionDeal_ == null + ? com.google.ads.admanager.v1.PrivateAuctionDeal.getDefaultInstance() + : privateAuctionDeal_; + } + } + + /** + * + * + *
+     * Required. The `PrivateAuctionDeal` to create.
+     * 
+ * + * + * .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.PrivateAuctionDeal, + com.google.ads.admanager.v1.PrivateAuctionDeal.Builder, + com.google.ads.admanager.v1.PrivateAuctionDealOrBuilder> + getPrivateAuctionDealFieldBuilder() { + if (privateAuctionDealBuilder_ == null) { + privateAuctionDealBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.PrivateAuctionDeal, + com.google.ads.admanager.v1.PrivateAuctionDeal.Builder, + com.google.ads.admanager.v1.PrivateAuctionDealOrBuilder>( + getPrivateAuctionDeal(), getParentForChildren(), isClean()); + privateAuctionDeal_ = null; + } + return privateAuctionDealBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.CreatePrivateAuctionDealRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.CreatePrivateAuctionDealRequest) + private static final com.google.ads.admanager.v1.CreatePrivateAuctionDealRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.CreatePrivateAuctionDealRequest(); + } + + public static com.google.ads.admanager.v1.CreatePrivateAuctionDealRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreatePrivateAuctionDealRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.CreatePrivateAuctionDealRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreatePrivateAuctionDealRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreatePrivateAuctionDealRequestOrBuilder.java new file mode 100644 index 000000000000..ac44c9bceab0 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreatePrivateAuctionDealRequestOrBuilder.java @@ -0,0 +1,101 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/private_auction_deal_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface CreatePrivateAuctionDealRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.CreatePrivateAuctionDealRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource where this `PrivateAuctionDeal` will be
+   * created. Format: `networks/{network_code}`
+   * 
+ * + * + * 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 `PrivateAuctionDeal` will be
+   * created. Format: `networks/{network_code}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The `PrivateAuctionDeal` to create.
+   * 
+ * + * + * .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the privateAuctionDeal field is set. + */ + boolean hasPrivateAuctionDeal(); + + /** + * + * + *
+   * Required. The `PrivateAuctionDeal` to create.
+   * 
+ * + * + * .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The privateAuctionDeal. + */ + com.google.ads.admanager.v1.PrivateAuctionDeal getPrivateAuctionDeal(); + + /** + * + * + *
+   * Required. The `PrivateAuctionDeal` to create.
+   * 
+ * + * + * .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.PrivateAuctionDealOrBuilder getPrivateAuctionDealOrBuilder(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreatePrivateAuctionRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreatePrivateAuctionRequest.java new file mode 100644 index 000000000000..44e63e967857 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreatePrivateAuctionRequest.java @@ -0,0 +1,973 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/private_auction_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Request object for `CreatePrivateAuction` method.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.CreatePrivateAuctionRequest} + */ +public final class CreatePrivateAuctionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.CreatePrivateAuctionRequest) + CreatePrivateAuctionRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CreatePrivateAuctionRequest.newBuilder() to construct. + private CreatePrivateAuctionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreatePrivateAuctionRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreatePrivateAuctionRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PrivateAuctionServiceProto + .internal_static_google_ads_admanager_v1_CreatePrivateAuctionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PrivateAuctionServiceProto + .internal_static_google_ads_admanager_v1_CreatePrivateAuctionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CreatePrivateAuctionRequest.class, + com.google.ads.admanager.v1.CreatePrivateAuctionRequest.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 `PrivateAuction` will be
+   * created. Format: `networks/{network_code}`
+   * 
+ * + * + * 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 `PrivateAuction` will be
+   * created. Format: `networks/{network_code}`
+   * 
+ * + * + * 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 PRIVATE_AUCTION_FIELD_NUMBER = 2; + private com.google.ads.admanager.v1.PrivateAuction privateAuction_; + + /** + * + * + *
+   * Required. The `PrivateAuction` to create.
+   * 
+ * + * + * .google.ads.admanager.v1.PrivateAuction private_auction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the privateAuction field is set. + */ + @java.lang.Override + public boolean hasPrivateAuction() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The `PrivateAuction` to create.
+   * 
+ * + * + * .google.ads.admanager.v1.PrivateAuction private_auction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The privateAuction. + */ + @java.lang.Override + public com.google.ads.admanager.v1.PrivateAuction getPrivateAuction() { + return privateAuction_ == null + ? com.google.ads.admanager.v1.PrivateAuction.getDefaultInstance() + : privateAuction_; + } + + /** + * + * + *
+   * Required. The `PrivateAuction` to create.
+   * 
+ * + * + * .google.ads.admanager.v1.PrivateAuction private_auction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.PrivateAuctionOrBuilder getPrivateAuctionOrBuilder() { + return privateAuction_ == null + ? com.google.ads.admanager.v1.PrivateAuction.getDefaultInstance() + : privateAuction_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getPrivateAuction()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPrivateAuction()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.admanager.v1.CreatePrivateAuctionRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.CreatePrivateAuctionRequest other = + (com.google.ads.admanager.v1.CreatePrivateAuctionRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasPrivateAuction() != other.hasPrivateAuction()) return false; + if (hasPrivateAuction()) { + if (!getPrivateAuction().equals(other.getPrivateAuction())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasPrivateAuction()) { + hash = (37 * hash) + PRIVATE_AUCTION_FIELD_NUMBER; + hash = (53 * hash) + getPrivateAuction().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.CreatePrivateAuctionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreatePrivateAuctionRequest 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.admanager.v1.CreatePrivateAuctionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreatePrivateAuctionRequest parseFrom( + 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.admanager.v1.CreatePrivateAuctionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreatePrivateAuctionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreatePrivateAuctionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreatePrivateAuctionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreatePrivateAuctionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreatePrivateAuctionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreatePrivateAuctionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreatePrivateAuctionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.CreatePrivateAuctionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request object for `CreatePrivateAuction` method.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.CreatePrivateAuctionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.CreatePrivateAuctionRequest) + com.google.ads.admanager.v1.CreatePrivateAuctionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PrivateAuctionServiceProto + .internal_static_google_ads_admanager_v1_CreatePrivateAuctionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PrivateAuctionServiceProto + .internal_static_google_ads_admanager_v1_CreatePrivateAuctionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CreatePrivateAuctionRequest.class, + com.google.ads.admanager.v1.CreatePrivateAuctionRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.CreatePrivateAuctionRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPrivateAuctionFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + privateAuction_ = null; + if (privateAuctionBuilder_ != null) { + privateAuctionBuilder_.dispose(); + privateAuctionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.PrivateAuctionServiceProto + .internal_static_google_ads_admanager_v1_CreatePrivateAuctionRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreatePrivateAuctionRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.CreatePrivateAuctionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreatePrivateAuctionRequest build() { + com.google.ads.admanager.v1.CreatePrivateAuctionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreatePrivateAuctionRequest buildPartial() { + com.google.ads.admanager.v1.CreatePrivateAuctionRequest result = + new com.google.ads.admanager.v1.CreatePrivateAuctionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.CreatePrivateAuctionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.privateAuction_ = + privateAuctionBuilder_ == null ? privateAuction_ : privateAuctionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.CreatePrivateAuctionRequest) { + return mergeFrom((com.google.ads.admanager.v1.CreatePrivateAuctionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.CreatePrivateAuctionRequest other) { + if (other == com.google.ads.admanager.v1.CreatePrivateAuctionRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasPrivateAuction()) { + mergePrivateAuction(other.getPrivateAuction()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getPrivateAuctionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent resource where this `PrivateAuction` will be
+     * created. Format: `networks/{network_code}`
+     * 
+ * + * + * 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 `PrivateAuction` will be
+     * created. Format: `networks/{network_code}`
+     * 
+ * + * + * 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 `PrivateAuction` will be
+     * created. Format: `networks/{network_code}`
+     * 
+ * + * + * 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 `PrivateAuction` will be
+     * created. Format: `networks/{network_code}`
+     * 
+ * + * + * 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 `PrivateAuction` will be
+     * created. Format: `networks/{network_code}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.ads.admanager.v1.PrivateAuction privateAuction_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.PrivateAuction, + com.google.ads.admanager.v1.PrivateAuction.Builder, + com.google.ads.admanager.v1.PrivateAuctionOrBuilder> + privateAuctionBuilder_; + + /** + * + * + *
+     * Required. The `PrivateAuction` to create.
+     * 
+ * + * + * .google.ads.admanager.v1.PrivateAuction private_auction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the privateAuction field is set. + */ + public boolean hasPrivateAuction() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. The `PrivateAuction` to create.
+     * 
+ * + * + * .google.ads.admanager.v1.PrivateAuction private_auction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The privateAuction. + */ + public com.google.ads.admanager.v1.PrivateAuction getPrivateAuction() { + if (privateAuctionBuilder_ == null) { + return privateAuction_ == null + ? com.google.ads.admanager.v1.PrivateAuction.getDefaultInstance() + : privateAuction_; + } else { + return privateAuctionBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The `PrivateAuction` to create.
+     * 
+ * + * + * .google.ads.admanager.v1.PrivateAuction private_auction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPrivateAuction(com.google.ads.admanager.v1.PrivateAuction value) { + if (privateAuctionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + privateAuction_ = value; + } else { + privateAuctionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The `PrivateAuction` to create.
+     * 
+ * + * + * .google.ads.admanager.v1.PrivateAuction private_auction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPrivateAuction( + com.google.ads.admanager.v1.PrivateAuction.Builder builderForValue) { + if (privateAuctionBuilder_ == null) { + privateAuction_ = builderForValue.build(); + } else { + privateAuctionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The `PrivateAuction` to create.
+     * 
+ * + * + * .google.ads.admanager.v1.PrivateAuction private_auction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergePrivateAuction(com.google.ads.admanager.v1.PrivateAuction value) { + if (privateAuctionBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && privateAuction_ != null + && privateAuction_ != com.google.ads.admanager.v1.PrivateAuction.getDefaultInstance()) { + getPrivateAuctionBuilder().mergeFrom(value); + } else { + privateAuction_ = value; + } + } else { + privateAuctionBuilder_.mergeFrom(value); + } + if (privateAuction_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The `PrivateAuction` to create.
+     * 
+ * + * + * .google.ads.admanager.v1.PrivateAuction private_auction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearPrivateAuction() { + bitField0_ = (bitField0_ & ~0x00000002); + privateAuction_ = null; + if (privateAuctionBuilder_ != null) { + privateAuctionBuilder_.dispose(); + privateAuctionBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The `PrivateAuction` to create.
+     * 
+ * + * + * .google.ads.admanager.v1.PrivateAuction private_auction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.PrivateAuction.Builder getPrivateAuctionBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getPrivateAuctionFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The `PrivateAuction` to create.
+     * 
+ * + * + * .google.ads.admanager.v1.PrivateAuction private_auction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.PrivateAuctionOrBuilder getPrivateAuctionOrBuilder() { + if (privateAuctionBuilder_ != null) { + return privateAuctionBuilder_.getMessageOrBuilder(); + } else { + return privateAuction_ == null + ? com.google.ads.admanager.v1.PrivateAuction.getDefaultInstance() + : privateAuction_; + } + } + + /** + * + * + *
+     * Required. The `PrivateAuction` to create.
+     * 
+ * + * + * .google.ads.admanager.v1.PrivateAuction private_auction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.PrivateAuction, + com.google.ads.admanager.v1.PrivateAuction.Builder, + com.google.ads.admanager.v1.PrivateAuctionOrBuilder> + getPrivateAuctionFieldBuilder() { + if (privateAuctionBuilder_ == null) { + privateAuctionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.PrivateAuction, + com.google.ads.admanager.v1.PrivateAuction.Builder, + com.google.ads.admanager.v1.PrivateAuctionOrBuilder>( + getPrivateAuction(), getParentForChildren(), isClean()); + privateAuction_ = null; + } + return privateAuctionBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.CreatePrivateAuctionRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.CreatePrivateAuctionRequest) + private static final com.google.ads.admanager.v1.CreatePrivateAuctionRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.CreatePrivateAuctionRequest(); + } + + public static com.google.ads.admanager.v1.CreatePrivateAuctionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreatePrivateAuctionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.CreatePrivateAuctionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreatePrivateAuctionRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreatePrivateAuctionRequestOrBuilder.java new file mode 100644 index 000000000000..afb6a74ca803 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreatePrivateAuctionRequestOrBuilder.java @@ -0,0 +1,101 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/private_auction_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface CreatePrivateAuctionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.CreatePrivateAuctionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource where this `PrivateAuction` will be
+   * created. Format: `networks/{network_code}`
+   * 
+ * + * + * 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 `PrivateAuction` will be
+   * created. Format: `networks/{network_code}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The `PrivateAuction` to create.
+   * 
+ * + * + * .google.ads.admanager.v1.PrivateAuction private_auction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the privateAuction field is set. + */ + boolean hasPrivateAuction(); + + /** + * + * + *
+   * Required. The `PrivateAuction` to create.
+   * 
+ * + * + * .google.ads.admanager.v1.PrivateAuction private_auction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The privateAuction. + */ + com.google.ads.admanager.v1.PrivateAuction getPrivateAuction(); + + /** + * + * + *
+   * Required. The `PrivateAuction` to create.
+   * 
+ * + * + * .google.ads.admanager.v1.PrivateAuction private_auction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.PrivateAuctionOrBuilder getPrivateAuctionOrBuilder(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomField.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomField.java index e0813f6ff39a..f77e553503c1 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomField.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomField.java @@ -71,6 +71,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.ads.admanager.v1.CustomField.Builder.class); } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -81,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Identifier. The resource name of the `CustomField`.
-   * Format: `networks/{network_code}/customFields/{custom_field_id}`
+   * Format: `networks/{network_code}/customFields/{custom_field}`
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -106,7 +107,7 @@ public java.lang.String getName() { * *
    * Identifier. The resource name of the `CustomField`.
-   * Format: `networks/{network_code}/customFields/{custom_field_id}`
+   * Format: `networks/{network_code}/customFields/{custom_field}`
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -133,11 +134,28 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * Output only. Unique ID of the CustomField. This value is readonly and is
-   * assigned by Google.
+   * Output only. Unique ID of the CustomField. This attribute is assigned by
+   * Google.
    * 
* - * int64 custom_field_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional int64 custom_field_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the customFieldId field is set. + */ + @java.lang.Override + public boolean hasCustomFieldId() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. Unique ID of the CustomField. This attribute is assigned by
+   * Google.
+   * 
+ * + * optional int64 custom_field_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The customFieldId. */ @@ -158,7 +176,23 @@ public long getCustomFieldId() { * Required. Name of the CustomField. The max length is 127 characters. * * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the displayName field is set. + */ + @java.lang.Override + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Required. Name of the CustomField. The max length is 127 characters.
+   * 
+ * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The displayName. */ @@ -182,7 +216,7 @@ public java.lang.String getDisplayName() { * Required. Name of the CustomField. The max length is 127 characters. * * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for displayName. */ @@ -212,7 +246,24 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * characters. * * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the description field is set. + */ + @java.lang.Override + public boolean hasDescription() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Optional. A description of the custom field. The maximum length is 511
+   * characters.
+   * 
+ * + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The description. */ @@ -237,7 +288,7 @@ public java.lang.String getDescription() { * characters. * * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for description. */ @@ -265,7 +316,25 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * * - * .google.ads.admanager.v1.CustomFieldStatusEnum.CustomFieldStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.CustomFieldStatusEnum.CustomFieldStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Output only. The status of the `CustomField`.
+   * 
+ * + * + * optional .google.ads.admanager.v1.CustomFieldStatusEnum.CustomFieldStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for status. @@ -283,7 +352,7 @@ public int getStatusValue() { * * * - * .google.ads.admanager.v1.CustomFieldStatusEnum.CustomFieldStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.CustomFieldStatusEnum.CustomFieldStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The status. @@ -308,7 +377,25 @@ public com.google.ads.admanager.v1.CustomFieldStatusEnum.CustomFieldStatus getSt * * * - * .google.ads.admanager.v1.CustomFieldEntityTypeEnum.CustomFieldEntityType entity_type = 7 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomFieldEntityTypeEnum.CustomFieldEntityType entity_type = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the entityType field is set. + */ + @java.lang.Override + public boolean hasEntityType() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Required. The type of entity the `CustomField` can be applied to.
+   * 
+ * + * + * optional .google.ads.admanager.v1.CustomFieldEntityTypeEnum.CustomFieldEntityType entity_type = 7 [(.google.api.field_behavior) = REQUIRED]; * * * @return The enum numeric value on the wire for entityType. @@ -326,7 +413,7 @@ public int getEntityTypeValue() { * * * - * .google.ads.admanager.v1.CustomFieldEntityTypeEnum.CustomFieldEntityType entity_type = 7 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomFieldEntityTypeEnum.CustomFieldEntityType entity_type = 7 [(.google.api.field_behavior) = REQUIRED]; * * * @return The entityType. @@ -353,7 +440,25 @@ public int getEntityTypeValue() { * * * - * .google.ads.admanager.v1.CustomFieldDataTypeEnum.CustomFieldDataType data_type = 8 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomFieldDataTypeEnum.CustomFieldDataType data_type = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataType field is set. + */ + @java.lang.Override + public boolean hasDataType() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+   * Required. The data type of the `CustomField`.
+   * 
+ * + * + * optional .google.ads.admanager.v1.CustomFieldDataTypeEnum.CustomFieldDataType data_type = 8 [(.google.api.field_behavior) = REQUIRED]; * * * @return The enum numeric value on the wire for dataType. @@ -371,7 +476,7 @@ public int getDataTypeValue() { * * * - * .google.ads.admanager.v1.CustomFieldDataTypeEnum.CustomFieldDataType data_type = 8 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomFieldDataTypeEnum.CustomFieldDataType data_type = 8 [(.google.api.field_behavior) = REQUIRED]; * * * @return The dataType. @@ -397,7 +502,25 @@ public com.google.ads.admanager.v1.CustomFieldDataTypeEnum.CustomFieldDataType g * * * - * .google.ads.admanager.v1.CustomFieldVisibilityEnum.CustomFieldVisibility visibility = 9 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomFieldVisibilityEnum.CustomFieldVisibility visibility = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the visibility field is set. + */ + @java.lang.Override + public boolean hasVisibility() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+   * Required. The visibility of the `CustomField`.
+   * 
+ * + * + * optional .google.ads.admanager.v1.CustomFieldVisibilityEnum.CustomFieldVisibility visibility = 9 [(.google.api.field_behavior) = REQUIRED]; * * * @return The enum numeric value on the wire for visibility. @@ -415,7 +538,7 @@ public int getVisibilityValue() { * * * - * .google.ads.admanager.v1.CustomFieldVisibilityEnum.CustomFieldVisibility visibility = 9 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomFieldVisibilityEnum.CustomFieldVisibility visibility = 9 [(.google.api.field_behavior) = REQUIRED]; * * * @return The visibility. @@ -544,37 +667,25 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (customFieldId_ != 0L) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(2, customFieldId_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); } - if (status_ - != com.google.ads.admanager.v1.CustomFieldStatusEnum.CustomFieldStatus - .CUSTOM_FIELD_STATUS_UNSPECIFIED - .getNumber()) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeEnum(5, status_); } - if (entityType_ - != com.google.ads.admanager.v1.CustomFieldEntityTypeEnum.CustomFieldEntityType - .CUSTOM_FIELD_ENTITY_TYPE_UNSPECIFIED - .getNumber()) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeEnum(7, entityType_); } - if (dataType_ - != com.google.ads.admanager.v1.CustomFieldDataTypeEnum.CustomFieldDataType - .CUSTOM_FIELD_DATA_TYPE_UNSPECIFIED - .getNumber()) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeEnum(8, dataType_); } - if (visibility_ - != com.google.ads.admanager.v1.CustomFieldVisibilityEnum.CustomFieldVisibility - .CUSTOM_FIELD_VISIBILITY_UNSPECIFIED - .getNumber()) { + if (((bitField0_ & 0x00000040) != 0)) { output.writeEnum(9, visibility_); } for (int i = 0; i < options_.size(); i++) { @@ -592,37 +703,25 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (customFieldId_ != 0L) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, customFieldId_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); } - if (status_ - != com.google.ads.admanager.v1.CustomFieldStatusEnum.CustomFieldStatus - .CUSTOM_FIELD_STATUS_UNSPECIFIED - .getNumber()) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, status_); } - if (entityType_ - != com.google.ads.admanager.v1.CustomFieldEntityTypeEnum.CustomFieldEntityType - .CUSTOM_FIELD_ENTITY_TYPE_UNSPECIFIED - .getNumber()) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, entityType_); } - if (dataType_ - != com.google.ads.admanager.v1.CustomFieldDataTypeEnum.CustomFieldDataType - .CUSTOM_FIELD_DATA_TYPE_UNSPECIFIED - .getNumber()) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, dataType_); } - if (visibility_ - != com.google.ads.admanager.v1.CustomFieldVisibilityEnum.CustomFieldVisibility - .CUSTOM_FIELD_VISIBILITY_UNSPECIFIED - .getNumber()) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, visibility_); } for (int i = 0; i < options_.size(); i++) { @@ -644,13 +743,34 @@ public boolean equals(final java.lang.Object obj) { com.google.ads.admanager.v1.CustomField other = (com.google.ads.admanager.v1.CustomField) obj; if (!getName().equals(other.getName())) return false; - if (getCustomFieldId() != other.getCustomFieldId()) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (status_ != other.status_) return false; - if (entityType_ != other.entityType_) return false; - if (dataType_ != other.dataType_) return false; - if (visibility_ != other.visibility_) return false; + if (hasCustomFieldId() != other.hasCustomFieldId()) return false; + if (hasCustomFieldId()) { + if (getCustomFieldId() != other.getCustomFieldId()) return false; + } + if (hasDisplayName() != other.hasDisplayName()) return false; + if (hasDisplayName()) { + if (!getDisplayName().equals(other.getDisplayName())) return false; + } + if (hasDescription() != other.hasDescription()) return false; + if (hasDescription()) { + if (!getDescription().equals(other.getDescription())) return false; + } + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (status_ != other.status_) return false; + } + if (hasEntityType() != other.hasEntityType()) return false; + if (hasEntityType()) { + if (entityType_ != other.entityType_) return false; + } + if (hasDataType() != other.hasDataType()) return false; + if (hasDataType()) { + if (dataType_ != other.dataType_) return false; + } + if (hasVisibility() != other.hasVisibility()) return false; + if (hasVisibility()) { + if (visibility_ != other.visibility_) return false; + } if (!getOptionsList().equals(other.getOptionsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -665,20 +785,34 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + CUSTOM_FIELD_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCustomFieldId()); - hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + status_; - hash = (37 * hash) + ENTITY_TYPE_FIELD_NUMBER; - hash = (53 * hash) + entityType_; - hash = (37 * hash) + DATA_TYPE_FIELD_NUMBER; - hash = (53 * hash) + dataType_; - hash = (37 * hash) + VISIBILITY_FIELD_NUMBER; - hash = (53 * hash) + visibility_; + if (hasCustomFieldId()) { + hash = (37 * hash) + CUSTOM_FIELD_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCustomFieldId()); + } + if (hasDisplayName()) { + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + } + if (hasDescription()) { + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + } + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + } + if (hasEntityType()) { + hash = (37 * hash) + ENTITY_TYPE_FIELD_NUMBER; + hash = (53 * hash) + entityType_; + } + if (hasDataType()) { + hash = (37 * hash) + DATA_TYPE_FIELD_NUMBER; + hash = (53 * hash) + dataType_; + } + if (hasVisibility()) { + hash = (37 * hash) + VISIBILITY_FIELD_NUMBER; + hash = (53 * hash) + visibility_; + } if (getOptionsCount() > 0) { hash = (37 * hash) + OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getOptionsList().hashCode(); @@ -890,27 +1024,36 @@ private void buildPartial0(com.google.ads.admanager.v1.CustomField result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.customFieldId_ = customFieldId_; + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.displayName_ = displayName_; + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.description_ = description_; + to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { result.status_ = status_; + to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000020) != 0)) { result.entityType_ = entityType_; + to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000040) != 0)) { result.dataType_ = dataType_; + to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000080) != 0)) { result.visibility_ = visibility_; + to_bitField0_ |= 0x00000040; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -963,30 +1106,30 @@ public Builder mergeFrom(com.google.ads.admanager.v1.CustomField other) { bitField0_ |= 0x00000001; onChanged(); } - if (other.getCustomFieldId() != 0L) { + if (other.hasCustomFieldId()) { setCustomFieldId(other.getCustomFieldId()); } - if (!other.getDisplayName().isEmpty()) { + if (other.hasDisplayName()) { displayName_ = other.displayName_; bitField0_ |= 0x00000004; onChanged(); } - if (!other.getDescription().isEmpty()) { + if (other.hasDescription()) { description_ = other.description_; bitField0_ |= 0x00000008; onChanged(); } - if (other.status_ != 0) { - setStatusValue(other.getStatusValue()); + if (other.hasStatus()) { + setStatus(other.getStatus()); } - if (other.entityType_ != 0) { - setEntityTypeValue(other.getEntityTypeValue()); + if (other.hasEntityType()) { + setEntityType(other.getEntityType()); } - if (other.dataType_ != 0) { - setDataTypeValue(other.getDataTypeValue()); + if (other.hasDataType()) { + setDataType(other.getDataType()); } - if (other.visibility_ != 0) { - setVisibilityValue(other.getVisibilityValue()); + if (other.hasVisibility()) { + setVisibility(other.getVisibility()); } if (optionsBuilder_ == null) { if (!other.options_.isEmpty()) { @@ -1128,7 +1271,7 @@ public Builder mergeFrom( * *
      * Identifier. The resource name of the `CustomField`.
-     * Format: `networks/{network_code}/customFields/{custom_field_id}`
+     * Format: `networks/{network_code}/customFields/{custom_field}`
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1152,7 +1295,7 @@ public java.lang.String getName() { * *
      * Identifier. The resource name of the `CustomField`.
-     * Format: `networks/{network_code}/customFields/{custom_field_id}`
+     * Format: `networks/{network_code}/customFields/{custom_field}`
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1176,7 +1319,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Identifier. The resource name of the `CustomField`.
-     * Format: `networks/{network_code}/customFields/{custom_field_id}`
+     * Format: `networks/{network_code}/customFields/{custom_field}`
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1199,7 +1342,7 @@ public Builder setName(java.lang.String value) { * *
      * Identifier. The resource name of the `CustomField`.
-     * Format: `networks/{network_code}/customFields/{custom_field_id}`
+     * Format: `networks/{network_code}/customFields/{custom_field}`
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1218,7 +1361,7 @@ public Builder clearName() { * *
      * Identifier. The resource name of the `CustomField`.
-     * Format: `networks/{network_code}/customFields/{custom_field_id}`
+     * Format: `networks/{network_code}/customFields/{custom_field}`
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1243,11 +1386,28 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. Unique ID of the CustomField. This value is readonly and is
-     * assigned by Google.
+     * Output only. Unique ID of the CustomField. This attribute is assigned by
+     * Google.
      * 
* - * int64 custom_field_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional int64 custom_field_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the customFieldId field is set. + */ + @java.lang.Override + public boolean hasCustomFieldId() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. Unique ID of the CustomField. This attribute is assigned by
+     * Google.
+     * 
+ * + * optional int64 custom_field_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The customFieldId. */ @@ -1260,11 +1420,11 @@ public long getCustomFieldId() { * * *
-     * Output only. Unique ID of the CustomField. This value is readonly and is
-     * assigned by Google.
+     * Output only. Unique ID of the CustomField. This attribute is assigned by
+     * Google.
      * 
* - * int64 custom_field_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional int64 custom_field_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The customFieldId to set. * @return This builder for chaining. @@ -1281,11 +1441,11 @@ public Builder setCustomFieldId(long value) { * * *
-     * Output only. Unique ID of the CustomField. This value is readonly and is
-     * assigned by Google.
+     * Output only. Unique ID of the CustomField. This attribute is assigned by
+     * Google.
      * 
* - * int64 custom_field_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional int64 custom_field_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -1305,7 +1465,22 @@ public Builder clearCustomFieldId() { * Required. Name of the CustomField. The max length is 127 characters. * * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the displayName field is set. + */ + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. Name of the CustomField. The max length is 127 characters.
+     * 
+ * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The displayName. */ @@ -1328,7 +1503,7 @@ public java.lang.String getDisplayName() { * Required. Name of the CustomField. The max length is 127 characters. * * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for displayName. */ @@ -1351,7 +1526,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * Required. Name of the CustomField. The max length is 127 characters. * * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; * * @param value The displayName to set. * @return This builder for chaining. @@ -1373,7 +1548,7 @@ public Builder setDisplayName(java.lang.String value) { * Required. Name of the CustomField. The max length is 127 characters. * * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ @@ -1391,7 +1566,7 @@ public Builder clearDisplayName() { * Required. Name of the CustomField. The max length is 127 characters. * * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for displayName to set. * @return This builder for chaining. @@ -1417,7 +1592,23 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * characters. * * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the description field is set. + */ + public boolean hasDescription() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Optional. A description of the custom field. The maximum length is 511
+     * characters.
+     * 
+ * + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The description. */ @@ -1441,7 +1632,7 @@ public java.lang.String getDescription() { * characters. * * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for description. */ @@ -1465,7 +1656,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * characters. * * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The description to set. * @return This builder for chaining. @@ -1488,7 +1679,7 @@ public Builder setDescription(java.lang.String value) { * characters. * * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1507,7 +1698,7 @@ public Builder clearDescription() { * characters. * * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for description to set. * @return This builder for chaining. @@ -1533,7 +1724,25 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * * * - * .google.ads.admanager.v1.CustomFieldStatusEnum.CustomFieldStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.CustomFieldStatusEnum.CustomFieldStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Output only. The status of the `CustomField`.
+     * 
+ * + * + * optional .google.ads.admanager.v1.CustomFieldStatusEnum.CustomFieldStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for status. @@ -1551,7 +1760,7 @@ public int getStatusValue() { * * * - * .google.ads.admanager.v1.CustomFieldStatusEnum.CustomFieldStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.CustomFieldStatusEnum.CustomFieldStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The enum numeric value on the wire for status to set. @@ -1572,7 +1781,7 @@ public Builder setStatusValue(int value) { * * * - * .google.ads.admanager.v1.CustomFieldStatusEnum.CustomFieldStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.CustomFieldStatusEnum.CustomFieldStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The status. @@ -1594,7 +1803,7 @@ public com.google.ads.admanager.v1.CustomFieldStatusEnum.CustomFieldStatus getSt * * * - * .google.ads.admanager.v1.CustomFieldStatusEnum.CustomFieldStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.CustomFieldStatusEnum.CustomFieldStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The status to set. @@ -1619,7 +1828,7 @@ public Builder setStatus( * * * - * .google.ads.admanager.v1.CustomFieldStatusEnum.CustomFieldStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.CustomFieldStatusEnum.CustomFieldStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. @@ -1641,7 +1850,25 @@ public Builder clearStatus() { * * * - * .google.ads.admanager.v1.CustomFieldEntityTypeEnum.CustomFieldEntityType entity_type = 7 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomFieldEntityTypeEnum.CustomFieldEntityType entity_type = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the entityType field is set. + */ + @java.lang.Override + public boolean hasEntityType() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Required. The type of entity the `CustomField` can be applied to.
+     * 
+ * + * + * optional .google.ads.admanager.v1.CustomFieldEntityTypeEnum.CustomFieldEntityType entity_type = 7 [(.google.api.field_behavior) = REQUIRED]; * * * @return The enum numeric value on the wire for entityType. @@ -1659,7 +1886,7 @@ public int getEntityTypeValue() { * * * - * .google.ads.admanager.v1.CustomFieldEntityTypeEnum.CustomFieldEntityType entity_type = 7 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomFieldEntityTypeEnum.CustomFieldEntityType entity_type = 7 [(.google.api.field_behavior) = REQUIRED]; * * * @param value The enum numeric value on the wire for entityType to set. @@ -1680,7 +1907,7 @@ public Builder setEntityTypeValue(int value) { * * * - * .google.ads.admanager.v1.CustomFieldEntityTypeEnum.CustomFieldEntityType entity_type = 7 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomFieldEntityTypeEnum.CustomFieldEntityType entity_type = 7 [(.google.api.field_behavior) = REQUIRED]; * * * @return The entityType. @@ -1704,7 +1931,7 @@ public Builder setEntityTypeValue(int value) { * * * - * .google.ads.admanager.v1.CustomFieldEntityTypeEnum.CustomFieldEntityType entity_type = 7 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomFieldEntityTypeEnum.CustomFieldEntityType entity_type = 7 [(.google.api.field_behavior) = REQUIRED]; * * * @param value The entityType to set. @@ -1729,7 +1956,7 @@ public Builder setEntityType( * * * - * .google.ads.admanager.v1.CustomFieldEntityTypeEnum.CustomFieldEntityType entity_type = 7 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomFieldEntityTypeEnum.CustomFieldEntityType entity_type = 7 [(.google.api.field_behavior) = REQUIRED]; * * * @return This builder for chaining. @@ -1751,7 +1978,25 @@ public Builder clearEntityType() { * * * - * .google.ads.admanager.v1.CustomFieldDataTypeEnum.CustomFieldDataType data_type = 8 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomFieldDataTypeEnum.CustomFieldDataType data_type = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataType field is set. + */ + @java.lang.Override + public boolean hasDataType() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Required. The data type of the `CustomField`.
+     * 
+ * + * + * optional .google.ads.admanager.v1.CustomFieldDataTypeEnum.CustomFieldDataType data_type = 8 [(.google.api.field_behavior) = REQUIRED]; * * * @return The enum numeric value on the wire for dataType. @@ -1769,7 +2014,7 @@ public int getDataTypeValue() { * * * - * .google.ads.admanager.v1.CustomFieldDataTypeEnum.CustomFieldDataType data_type = 8 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomFieldDataTypeEnum.CustomFieldDataType data_type = 8 [(.google.api.field_behavior) = REQUIRED]; * * * @param value The enum numeric value on the wire for dataType to set. @@ -1790,7 +2035,7 @@ public Builder setDataTypeValue(int value) { * * * - * .google.ads.admanager.v1.CustomFieldDataTypeEnum.CustomFieldDataType data_type = 8 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomFieldDataTypeEnum.CustomFieldDataType data_type = 8 [(.google.api.field_behavior) = REQUIRED]; * * * @return The dataType. @@ -1813,7 +2058,7 @@ public com.google.ads.admanager.v1.CustomFieldDataTypeEnum.CustomFieldDataType g * * * - * .google.ads.admanager.v1.CustomFieldDataTypeEnum.CustomFieldDataType data_type = 8 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomFieldDataTypeEnum.CustomFieldDataType data_type = 8 [(.google.api.field_behavior) = REQUIRED]; * * * @param value The dataType to set. @@ -1838,7 +2083,7 @@ public Builder setDataType( * * * - * .google.ads.admanager.v1.CustomFieldDataTypeEnum.CustomFieldDataType data_type = 8 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomFieldDataTypeEnum.CustomFieldDataType data_type = 8 [(.google.api.field_behavior) = REQUIRED]; * * * @return This builder for chaining. @@ -1860,7 +2105,25 @@ public Builder clearDataType() { * * * - * .google.ads.admanager.v1.CustomFieldVisibilityEnum.CustomFieldVisibility visibility = 9 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomFieldVisibilityEnum.CustomFieldVisibility visibility = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the visibility field is set. + */ + @java.lang.Override + public boolean hasVisibility() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Required. The visibility of the `CustomField`.
+     * 
+ * + * + * optional .google.ads.admanager.v1.CustomFieldVisibilityEnum.CustomFieldVisibility visibility = 9 [(.google.api.field_behavior) = REQUIRED]; * * * @return The enum numeric value on the wire for visibility. @@ -1878,7 +2141,7 @@ public int getVisibilityValue() { * * * - * .google.ads.admanager.v1.CustomFieldVisibilityEnum.CustomFieldVisibility visibility = 9 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomFieldVisibilityEnum.CustomFieldVisibility visibility = 9 [(.google.api.field_behavior) = REQUIRED]; * * * @param value The enum numeric value on the wire for visibility to set. @@ -1899,7 +2162,7 @@ public Builder setVisibilityValue(int value) { * * * - * .google.ads.admanager.v1.CustomFieldVisibilityEnum.CustomFieldVisibility visibility = 9 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomFieldVisibilityEnum.CustomFieldVisibility visibility = 9 [(.google.api.field_behavior) = REQUIRED]; * * * @return The visibility. @@ -1923,7 +2186,7 @@ public Builder setVisibilityValue(int value) { * * * - * .google.ads.admanager.v1.CustomFieldVisibilityEnum.CustomFieldVisibility visibility = 9 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomFieldVisibilityEnum.CustomFieldVisibility visibility = 9 [(.google.api.field_behavior) = REQUIRED]; * * * @param value The visibility to set. @@ -1948,7 +2211,7 @@ public Builder setVisibility( * * * - * .google.ads.admanager.v1.CustomFieldVisibilityEnum.CustomFieldVisibility visibility = 9 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomFieldVisibilityEnum.CustomFieldVisibility visibility = 9 [(.google.api.field_behavior) = REQUIRED]; * * * @return This builder for chaining. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldMessagesProto.java index 01112d91facd..dec41ad48786 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldMessagesProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldMessagesProto.java @@ -49,31 +49,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "3google/ads/admanager/v1/custom_field_m" + "essages.proto\022\027google.ads.admanager.v1\0320" + "google/ads/admanager/v1/custom_field_enu" - + "ms.proto\032\037google/api/field_behavior.proto\032\031google/api/resource.proto\"\254\005\n" + + "ms.proto\032\037google/api/field_behavior.proto\032\031google/api/resource.proto\"\274\006\n" + "\013CustomField\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\010\022\034\n" - + "\017custom_field_id\030\002 \001(\003B\003\340A\003\022\031\n" - + "\014display_name\030\003 \001(\tB\003\340A\002\022\030\n" - + "\013description\030\004 \001(\tB\003\340A\001\022U\n" - + "\006status\030\005 \001" - + "(\0162@.google.ads.admanager.v1.CustomFieldStatusEnum.CustomFieldStatusB\003\340A\003\022b\n" - + "\013entity_type\030\007 \001(\0162H.google.ads.admanager.v1" - + ".CustomFieldEntityTypeEnum.CustomFieldEntityTypeB\003\340A\002\022\\\n" - + "\tdata_type\030\010 \001(\0162D.googl" - + "e.ads.admanager.v1.CustomFieldDataTypeEnum.CustomFieldDataTypeB\003\340A\002\022a\n\n" - + "visibility\030\t \001(\0162H.google.ads.admanager.v1.Custom" - + "FieldVisibilityEnum.CustomFieldVisibilityB\003\340A\002\022@\n" + + "\004name\030\001 \001(\tB\003\340A\010\022!\n" + + "\017custom_field_id\030\002 \001(\003B\003\340A\003H\000\210\001\001\022\036\n" + + "\014display_name\030\003 \001(\tB\003\340A\002H\001\210\001\001\022\035\n" + + "\013description\030\004 \001(\tB\003\340A\001H\002\210\001\001\022Z\n" + + "\006status\030\005 \001(\0162@.google.ads.admanager" + + ".v1.CustomFieldStatusEnum.CustomFieldStatusB\003\340A\003H\003\210\001\001\022g\n" + + "\013entity_type\030\007 \001(\0162H.google.ads.admanager.v1.CustomFieldEntityTy" + + "peEnum.CustomFieldEntityTypeB\003\340A\002H\004\210\001\001\022a\n" + + "\tdata_type\030\010 \001(\0162D.google.ads.admanager" + + ".v1.CustomFieldDataTypeEnum.CustomFieldDataTypeB\003\340A\002H\005\210\001\001\022f\n\n" + + "visibility\030\t \001(\0162H.google.ads.admanager.v1.CustomFieldVisib" + + "ilityEnum.CustomFieldVisibilityB\003\340A\002H\006\210\001\001\022@\n" + "\007options\030\n" + " \003(\0132*.google.ads.admanager.v1.CustomFieldOptionB\003\340A\001:y\352Av\n" - + "$admanager.googleapis.com/CustomField\0223net" - + "works/{network_code}/customFields/{custom_field}*\014customFields2\013customField\"S\n" + + "$admanager.googleapis.com/CustomField\0223networks" + + "/{network_code}/customFields/{custom_field}*\014customFields2\013customFieldB\022\n" + + "\020_custom_field_idB\017\n\r" + + "_display_nameB\016\n" + + "\014_descriptionB\t\n" + + "\007_statusB\016\n" + + "\014_entity_typeB\014\n\n" + + "_data_typeB\r\n" + + "\013_visibility\"S\n" + "\021CustomFieldOption\022#\n" + "\026custom_field_option_id\030\001 \001(\003B\003\340A\003\022\031\n" + "\014display_name\030\002 \001(\tB\003\340A\002B\314\001\n" - + "\033com.google.ads.admanager.v1B\030CustomFieldMessagesProtoP\001Z@google.golang.org/" - + "genproto/googleapis/ads/admanager/v1;adm" - + "anager\252\002\027Google.Ads.AdManager.V1\312\002\027Googl" - + "e\\Ads\\AdManager\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" + + "\033com.google.ads.admanager.v1B\030CustomFieldMessagesPro" + + "toP\001Z@google.golang.org/genproto/googlea" + + "pis/ads/admanager/v1;admanager\252\002\027Google." + + "Ads.AdManager.V1\312\002\027Google\\Ads\\AdManager\\" + + "V1\352\002\032Google::Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldOrBuilder.java index a6fb10a70914..6593bc2d1d12 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldOrBuilder.java @@ -29,7 +29,7 @@ public interface CustomFieldOrBuilder * *
    * Identifier. The resource name of the `CustomField`.
-   * Format: `networks/{network_code}/customFields/{custom_field_id}`
+   * Format: `networks/{network_code}/customFields/{custom_field}`
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -43,7 +43,7 @@ public interface CustomFieldOrBuilder * *
    * Identifier. The resource name of the `CustomField`.
-   * Format: `networks/{network_code}/customFields/{custom_field_id}`
+   * Format: `networks/{network_code}/customFields/{custom_field}`
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -56,11 +56,25 @@ public interface CustomFieldOrBuilder * * *
-   * Output only. Unique ID of the CustomField. This value is readonly and is
-   * assigned by Google.
+   * Output only. Unique ID of the CustomField. This attribute is assigned by
+   * Google.
    * 
* - * int64 custom_field_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional int64 custom_field_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the customFieldId field is set. + */ + boolean hasCustomFieldId(); + + /** + * + * + *
+   * Output only. Unique ID of the CustomField. This attribute is assigned by
+   * Google.
+   * 
+ * + * optional int64 custom_field_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The customFieldId. */ @@ -73,7 +87,20 @@ public interface CustomFieldOrBuilder * Required. Name of the CustomField. The max length is 127 characters. * * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the displayName field is set. + */ + boolean hasDisplayName(); + + /** + * + * + *
+   * Required. Name of the CustomField. The max length is 127 characters.
+   * 
+ * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The displayName. */ @@ -86,7 +113,7 @@ public interface CustomFieldOrBuilder * Required. Name of the CustomField. The max length is 127 characters. * * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for displayName. */ @@ -100,7 +127,21 @@ public interface CustomFieldOrBuilder * characters. * * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the description field is set. + */ + boolean hasDescription(); + + /** + * + * + *
+   * Optional. A description of the custom field. The maximum length is 511
+   * characters.
+   * 
+ * + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The description. */ @@ -114,7 +155,7 @@ public interface CustomFieldOrBuilder * characters. * * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for description. */ @@ -128,7 +169,22 @@ public interface CustomFieldOrBuilder * * * - * .google.ads.admanager.v1.CustomFieldStatusEnum.CustomFieldStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.CustomFieldStatusEnum.CustomFieldStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the status field is set. + */ + boolean hasStatus(); + + /** + * + * + *
+   * Output only. The status of the `CustomField`.
+   * 
+ * + * + * optional .google.ads.admanager.v1.CustomFieldStatusEnum.CustomFieldStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for status. @@ -143,7 +199,7 @@ public interface CustomFieldOrBuilder * * * - * .google.ads.admanager.v1.CustomFieldStatusEnum.CustomFieldStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.CustomFieldStatusEnum.CustomFieldStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The status. @@ -158,7 +214,22 @@ public interface CustomFieldOrBuilder * * * - * .google.ads.admanager.v1.CustomFieldEntityTypeEnum.CustomFieldEntityType entity_type = 7 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomFieldEntityTypeEnum.CustomFieldEntityType entity_type = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the entityType field is set. + */ + boolean hasEntityType(); + + /** + * + * + *
+   * Required. The type of entity the `CustomField` can be applied to.
+   * 
+ * + * + * optional .google.ads.admanager.v1.CustomFieldEntityTypeEnum.CustomFieldEntityType entity_type = 7 [(.google.api.field_behavior) = REQUIRED]; * * * @return The enum numeric value on the wire for entityType. @@ -173,7 +244,7 @@ public interface CustomFieldOrBuilder * * * - * .google.ads.admanager.v1.CustomFieldEntityTypeEnum.CustomFieldEntityType entity_type = 7 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomFieldEntityTypeEnum.CustomFieldEntityType entity_type = 7 [(.google.api.field_behavior) = REQUIRED]; * * * @return The entityType. @@ -188,7 +259,22 @@ public interface CustomFieldOrBuilder * * * - * .google.ads.admanager.v1.CustomFieldDataTypeEnum.CustomFieldDataType data_type = 8 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomFieldDataTypeEnum.CustomFieldDataType data_type = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataType field is set. + */ + boolean hasDataType(); + + /** + * + * + *
+   * Required. The data type of the `CustomField`.
+   * 
+ * + * + * optional .google.ads.admanager.v1.CustomFieldDataTypeEnum.CustomFieldDataType data_type = 8 [(.google.api.field_behavior) = REQUIRED]; * * * @return The enum numeric value on the wire for dataType. @@ -203,7 +289,7 @@ public interface CustomFieldOrBuilder * * * - * .google.ads.admanager.v1.CustomFieldDataTypeEnum.CustomFieldDataType data_type = 8 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomFieldDataTypeEnum.CustomFieldDataType data_type = 8 [(.google.api.field_behavior) = REQUIRED]; * * * @return The dataType. @@ -218,7 +304,22 @@ public interface CustomFieldOrBuilder * * * - * .google.ads.admanager.v1.CustomFieldVisibilityEnum.CustomFieldVisibility visibility = 9 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomFieldVisibilityEnum.CustomFieldVisibility visibility = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the visibility field is set. + */ + boolean hasVisibility(); + + /** + * + * + *
+   * Required. The visibility of the `CustomField`.
+   * 
+ * + * + * optional .google.ads.admanager.v1.CustomFieldVisibilityEnum.CustomFieldVisibility visibility = 9 [(.google.api.field_behavior) = REQUIRED]; * * * @return The enum numeric value on the wire for visibility. @@ -233,7 +334,7 @@ public interface CustomFieldOrBuilder * * * - * .google.ads.admanager.v1.CustomFieldVisibilityEnum.CustomFieldVisibility visibility = 9 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.ads.admanager.v1.CustomFieldVisibilityEnum.CustomFieldVisibility visibility = 9 [(.google.api.field_behavior) = REQUIRED]; * * * @return The visibility. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldServiceProto.java index 7d6e7343aca9..753e70fb67e6 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldServiceProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldServiceProto.java @@ -70,7 +70,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\r" + "custom_fields\030\001 \003(\0132$.google.ads.admanager.v1.CustomField\022\027\n" + "\017next_page_token\030\002 \001(\t\022\022\n\n" - + "total_size\030\003 \001(\0052\200\003\n" + + "total_size\030\003 \001(\0052\254\003\n" + "\022CustomFieldService\022\233\001\n" + "\016GetCustomField\022..google.ads.admanager.v1.GetCustomFieldRequest\032$.goog" + "le.ads.admanager.v1.CustomField\"3\332A\004name" @@ -78,12 +78,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020ListCustomFields\0220.google.ads.admanager.v1.ListCustomFieldsRequest\0321.go" + "ogle.ads.admanager.v1.ListCustomFieldsRe" + "sponse\"5\332A\006parent\202\323\344\223\002&\022$/v1/{parent=net" - + "works/*}/customFields\032\033\312A\030admanager.googleapis.comB\313\001\n" - + "\033com.google.ads.admanager.v1B\027CustomFieldServiceProtoP\001Z@google.go" - + "lang.org/genproto/googleapis/ads/admanag" - + "er/v1;admanager\252\002\027Google.Ads.AdManager.V" - + "1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032Google::Ad" - + "s::AdManager::V1b\006proto3" + + "works/*}/customFields\032G\312A\030admanager.goog" + + "leapis.com\322A)https://www.googleapis.com/auth/admanagerB\313\001\n" + + "\033com.google.ads.admanager.v1B\027CustomFieldServiceProtoP\001Z@googl" + + "e.golang.org/genproto/googleapis/ads/adm" + + "anager/v1;admanager\252\002\027Google.Ads.AdManag" + + "er.V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032Google" + + "::Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -125,6 +126,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.AnnotationsProto.http); registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldValue.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldValue.java index d427d83236fe..44f604b61582 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldValue.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldValue.java @@ -194,7 +194,6 @@ public interface ValueOrBuilder * *
    * Represent custom field value type.
-   * Next Id: 5
    * 
* * Protobuf type {@code google.ads.admanager.v1.CustomFieldValue.Value} @@ -701,7 +700,6 @@ protected Builder newBuilderForType( * *
      * Represent custom field value type.
-     * Next Id: 5
      * 
* * Protobuf type {@code google.ads.admanager.v1.CustomFieldValue.Value} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargeting.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargeting.java new file mode 100644 index 000000000000..d17047d6fd9c --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargeting.java @@ -0,0 +1,1027 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Represents the top level targeting expression for custom key/values,
+ * audience segments, and/or CMS metadata.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.CustomTargeting} + */ +public final class CustomTargeting extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.CustomTargeting) + CustomTargetingOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CustomTargeting.newBuilder() to construct. + private CustomTargeting(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CustomTargeting() { + customTargetingClauses_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CustomTargeting(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_CustomTargeting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_CustomTargeting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CustomTargeting.class, + com.google.ads.admanager.v1.CustomTargeting.Builder.class); + } + + public static final int CUSTOM_TARGETING_CLAUSES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List customTargetingClauses_; + + /** + * + * + *
+   * Optional. These clauses are all ORed together.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingClause custom_targeting_clauses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getCustomTargetingClausesList() { + return customTargetingClauses_; + } + + /** + * + * + *
+   * Optional. These clauses are all ORed together.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingClause custom_targeting_clauses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getCustomTargetingClausesOrBuilderList() { + return customTargetingClauses_; + } + + /** + * + * + *
+   * Optional. These clauses are all ORed together.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingClause custom_targeting_clauses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getCustomTargetingClausesCount() { + return customTargetingClauses_.size(); + } + + /** + * + * + *
+   * Optional. These clauses are all ORed together.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingClause custom_targeting_clauses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.CustomTargetingClause getCustomTargetingClauses(int index) { + return customTargetingClauses_.get(index); + } + + /** + * + * + *
+   * Optional. These clauses are all ORed together.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingClause custom_targeting_clauses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.CustomTargetingClauseOrBuilder + getCustomTargetingClausesOrBuilder(int index) { + return customTargetingClauses_.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 < customTargetingClauses_.size(); i++) { + output.writeMessage(1, customTargetingClauses_.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 < customTargetingClauses_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, customTargetingClauses_.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.ads.admanager.v1.CustomTargeting)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.CustomTargeting other = + (com.google.ads.admanager.v1.CustomTargeting) obj; + + if (!getCustomTargetingClausesList().equals(other.getCustomTargetingClausesList())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getCustomTargetingClausesCount() > 0) { + hash = (37 * hash) + CUSTOM_TARGETING_CLAUSES_FIELD_NUMBER; + hash = (53 * hash) + getCustomTargetingClausesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.CustomTargeting parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CustomTargeting 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.admanager.v1.CustomTargeting parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CustomTargeting parseFrom( + 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.admanager.v1.CustomTargeting parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CustomTargeting parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CustomTargeting parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CustomTargeting parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CustomTargeting parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CustomTargeting parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CustomTargeting parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CustomTargeting parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.CustomTargeting prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Represents the top level targeting expression for custom key/values,
+   * audience segments, and/or CMS metadata.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.CustomTargeting} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.CustomTargeting) + com.google.ads.admanager.v1.CustomTargetingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_CustomTargeting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_CustomTargeting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CustomTargeting.class, + com.google.ads.admanager.v1.CustomTargeting.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.CustomTargeting.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (customTargetingClausesBuilder_ == null) { + customTargetingClauses_ = java.util.Collections.emptyList(); + } else { + customTargetingClauses_ = null; + customTargetingClausesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_CustomTargeting_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CustomTargeting getDefaultInstanceForType() { + return com.google.ads.admanager.v1.CustomTargeting.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.CustomTargeting build() { + com.google.ads.admanager.v1.CustomTargeting result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CustomTargeting buildPartial() { + com.google.ads.admanager.v1.CustomTargeting result = + new com.google.ads.admanager.v1.CustomTargeting(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.ads.admanager.v1.CustomTargeting result) { + if (customTargetingClausesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + customTargetingClauses_ = java.util.Collections.unmodifiableList(customTargetingClauses_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.customTargetingClauses_ = customTargetingClauses_; + } else { + result.customTargetingClauses_ = customTargetingClausesBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.CustomTargeting result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.CustomTargeting) { + return mergeFrom((com.google.ads.admanager.v1.CustomTargeting) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.CustomTargeting other) { + if (other == com.google.ads.admanager.v1.CustomTargeting.getDefaultInstance()) return this; + if (customTargetingClausesBuilder_ == null) { + if (!other.customTargetingClauses_.isEmpty()) { + if (customTargetingClauses_.isEmpty()) { + customTargetingClauses_ = other.customTargetingClauses_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCustomTargetingClausesIsMutable(); + customTargetingClauses_.addAll(other.customTargetingClauses_); + } + onChanged(); + } + } else { + if (!other.customTargetingClauses_.isEmpty()) { + if (customTargetingClausesBuilder_.isEmpty()) { + customTargetingClausesBuilder_.dispose(); + customTargetingClausesBuilder_ = null; + customTargetingClauses_ = other.customTargetingClauses_; + bitField0_ = (bitField0_ & ~0x00000001); + customTargetingClausesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCustomTargetingClausesFieldBuilder() + : null; + } else { + customTargetingClausesBuilder_.addAllMessages(other.customTargetingClauses_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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.admanager.v1.CustomTargetingClause m = + input.readMessage( + com.google.ads.admanager.v1.CustomTargetingClause.parser(), + extensionRegistry); + if (customTargetingClausesBuilder_ == null) { + ensureCustomTargetingClausesIsMutable(); + customTargetingClauses_.add(m); + } else { + customTargetingClausesBuilder_.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 + customTargetingClauses_ = java.util.Collections.emptyList(); + + private void ensureCustomTargetingClausesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + customTargetingClauses_ = + new java.util.ArrayList( + customTargetingClauses_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CustomTargetingClause, + com.google.ads.admanager.v1.CustomTargetingClause.Builder, + com.google.ads.admanager.v1.CustomTargetingClauseOrBuilder> + customTargetingClausesBuilder_; + + /** + * + * + *
+     * Optional. These clauses are all ORed together.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingClause custom_targeting_clauses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCustomTargetingClausesList() { + if (customTargetingClausesBuilder_ == null) { + return java.util.Collections.unmodifiableList(customTargetingClauses_); + } else { + return customTargetingClausesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. These clauses are all ORed together.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingClause custom_targeting_clauses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getCustomTargetingClausesCount() { + if (customTargetingClausesBuilder_ == null) { + return customTargetingClauses_.size(); + } else { + return customTargetingClausesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. These clauses are all ORed together.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingClause custom_targeting_clauses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.CustomTargetingClause getCustomTargetingClauses(int index) { + if (customTargetingClausesBuilder_ == null) { + return customTargetingClauses_.get(index); + } else { + return customTargetingClausesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. These clauses are all ORed together.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingClause custom_targeting_clauses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomTargetingClauses( + int index, com.google.ads.admanager.v1.CustomTargetingClause value) { + if (customTargetingClausesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomTargetingClausesIsMutable(); + customTargetingClauses_.set(index, value); + onChanged(); + } else { + customTargetingClausesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. These clauses are all ORed together.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingClause custom_targeting_clauses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomTargetingClauses( + int index, com.google.ads.admanager.v1.CustomTargetingClause.Builder builderForValue) { + if (customTargetingClausesBuilder_ == null) { + ensureCustomTargetingClausesIsMutable(); + customTargetingClauses_.set(index, builderForValue.build()); + onChanged(); + } else { + customTargetingClausesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. These clauses are all ORed together.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingClause custom_targeting_clauses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCustomTargetingClauses( + com.google.ads.admanager.v1.CustomTargetingClause value) { + if (customTargetingClausesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomTargetingClausesIsMutable(); + customTargetingClauses_.add(value); + onChanged(); + } else { + customTargetingClausesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. These clauses are all ORed together.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingClause custom_targeting_clauses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCustomTargetingClauses( + int index, com.google.ads.admanager.v1.CustomTargetingClause value) { + if (customTargetingClausesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomTargetingClausesIsMutable(); + customTargetingClauses_.add(index, value); + onChanged(); + } else { + customTargetingClausesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. These clauses are all ORed together.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingClause custom_targeting_clauses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCustomTargetingClauses( + com.google.ads.admanager.v1.CustomTargetingClause.Builder builderForValue) { + if (customTargetingClausesBuilder_ == null) { + ensureCustomTargetingClausesIsMutable(); + customTargetingClauses_.add(builderForValue.build()); + onChanged(); + } else { + customTargetingClausesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. These clauses are all ORed together.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingClause custom_targeting_clauses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCustomTargetingClauses( + int index, com.google.ads.admanager.v1.CustomTargetingClause.Builder builderForValue) { + if (customTargetingClausesBuilder_ == null) { + ensureCustomTargetingClausesIsMutable(); + customTargetingClauses_.add(index, builderForValue.build()); + onChanged(); + } else { + customTargetingClausesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. These clauses are all ORed together.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingClause custom_targeting_clauses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllCustomTargetingClauses( + java.lang.Iterable values) { + if (customTargetingClausesBuilder_ == null) { + ensureCustomTargetingClausesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, customTargetingClauses_); + onChanged(); + } else { + customTargetingClausesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. These clauses are all ORed together.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingClause custom_targeting_clauses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCustomTargetingClauses() { + if (customTargetingClausesBuilder_ == null) { + customTargetingClauses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + customTargetingClausesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. These clauses are all ORed together.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingClause custom_targeting_clauses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeCustomTargetingClauses(int index) { + if (customTargetingClausesBuilder_ == null) { + ensureCustomTargetingClausesIsMutable(); + customTargetingClauses_.remove(index); + onChanged(); + } else { + customTargetingClausesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. These clauses are all ORed together.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingClause custom_targeting_clauses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.CustomTargetingClause.Builder + getCustomTargetingClausesBuilder(int index) { + return getCustomTargetingClausesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. These clauses are all ORed together.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingClause custom_targeting_clauses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.CustomTargetingClauseOrBuilder + getCustomTargetingClausesOrBuilder(int index) { + if (customTargetingClausesBuilder_ == null) { + return customTargetingClauses_.get(index); + } else { + return customTargetingClausesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. These clauses are all ORed together.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingClause custom_targeting_clauses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCustomTargetingClausesOrBuilderList() { + if (customTargetingClausesBuilder_ != null) { + return customTargetingClausesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(customTargetingClauses_); + } + } + + /** + * + * + *
+     * Optional. These clauses are all ORed together.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingClause custom_targeting_clauses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.CustomTargetingClause.Builder + addCustomTargetingClausesBuilder() { + return getCustomTargetingClausesFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.CustomTargetingClause.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. These clauses are all ORed together.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingClause custom_targeting_clauses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.CustomTargetingClause.Builder + addCustomTargetingClausesBuilder(int index) { + return getCustomTargetingClausesFieldBuilder() + .addBuilder( + index, com.google.ads.admanager.v1.CustomTargetingClause.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. These clauses are all ORed together.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingClause custom_targeting_clauses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCustomTargetingClausesBuilderList() { + return getCustomTargetingClausesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CustomTargetingClause, + com.google.ads.admanager.v1.CustomTargetingClause.Builder, + com.google.ads.admanager.v1.CustomTargetingClauseOrBuilder> + getCustomTargetingClausesFieldBuilder() { + if (customTargetingClausesBuilder_ == null) { + customTargetingClausesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CustomTargetingClause, + com.google.ads.admanager.v1.CustomTargetingClause.Builder, + com.google.ads.admanager.v1.CustomTargetingClauseOrBuilder>( + customTargetingClauses_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + customTargetingClauses_ = null; + } + return customTargetingClausesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.CustomTargeting) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.CustomTargeting) + private static final com.google.ads.admanager.v1.CustomTargeting DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.CustomTargeting(); + } + + public static com.google.ads.admanager.v1.CustomTargeting getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomTargeting parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.CustomTargeting getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingClause.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingClause.java new file mode 100644 index 000000000000..17db349f52f1 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingClause.java @@ -0,0 +1,1030 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Represents a logical AND of individual custom targeting expressions.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.CustomTargetingClause} + */ +public final class CustomTargetingClause extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.CustomTargetingClause) + CustomTargetingClauseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CustomTargetingClause.newBuilder() to construct. + private CustomTargetingClause(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CustomTargetingClause() { + customTargetingLiterals_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CustomTargetingClause(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_CustomTargetingClause_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_CustomTargetingClause_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CustomTargetingClause.class, + com.google.ads.admanager.v1.CustomTargetingClause.Builder.class); + } + + public static final int CUSTOM_TARGETING_LITERALS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + customTargetingLiterals_; + + /** + * + * + *
+   * Optional. Leaf targeting expressions for custom key/values.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingLiteral custom_targeting_literals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getCustomTargetingLiteralsList() { + return customTargetingLiterals_; + } + + /** + * + * + *
+   * Optional. Leaf targeting expressions for custom key/values.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingLiteral custom_targeting_literals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getCustomTargetingLiteralsOrBuilderList() { + return customTargetingLiterals_; + } + + /** + * + * + *
+   * Optional. Leaf targeting expressions for custom key/values.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingLiteral custom_targeting_literals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getCustomTargetingLiteralsCount() { + return customTargetingLiterals_.size(); + } + + /** + * + * + *
+   * Optional. Leaf targeting expressions for custom key/values.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingLiteral custom_targeting_literals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.CustomTargetingLiteral getCustomTargetingLiterals(int index) { + return customTargetingLiterals_.get(index); + } + + /** + * + * + *
+   * Optional. Leaf targeting expressions for custom key/values.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingLiteral custom_targeting_literals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.CustomTargetingLiteralOrBuilder + getCustomTargetingLiteralsOrBuilder(int index) { + return customTargetingLiterals_.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 < customTargetingLiterals_.size(); i++) { + output.writeMessage(1, customTargetingLiterals_.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 < customTargetingLiterals_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, customTargetingLiterals_.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.ads.admanager.v1.CustomTargetingClause)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.CustomTargetingClause other = + (com.google.ads.admanager.v1.CustomTargetingClause) obj; + + if (!getCustomTargetingLiteralsList().equals(other.getCustomTargetingLiteralsList())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getCustomTargetingLiteralsCount() > 0) { + hash = (37 * hash) + CUSTOM_TARGETING_LITERALS_FIELD_NUMBER; + hash = (53 * hash) + getCustomTargetingLiteralsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.CustomTargetingClause parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CustomTargetingClause 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.admanager.v1.CustomTargetingClause parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CustomTargetingClause parseFrom( + 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.admanager.v1.CustomTargetingClause parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CustomTargetingClause parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CustomTargetingClause parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CustomTargetingClause parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CustomTargetingClause parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CustomTargetingClause parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CustomTargetingClause parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CustomTargetingClause parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.CustomTargetingClause prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Represents a logical AND of individual custom targeting expressions.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.CustomTargetingClause} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.CustomTargetingClause) + com.google.ads.admanager.v1.CustomTargetingClauseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_CustomTargetingClause_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_CustomTargetingClause_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CustomTargetingClause.class, + com.google.ads.admanager.v1.CustomTargetingClause.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.CustomTargetingClause.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (customTargetingLiteralsBuilder_ == null) { + customTargetingLiterals_ = java.util.Collections.emptyList(); + } else { + customTargetingLiterals_ = null; + customTargetingLiteralsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_CustomTargetingClause_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CustomTargetingClause getDefaultInstanceForType() { + return com.google.ads.admanager.v1.CustomTargetingClause.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.CustomTargetingClause build() { + com.google.ads.admanager.v1.CustomTargetingClause result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CustomTargetingClause buildPartial() { + com.google.ads.admanager.v1.CustomTargetingClause result = + new com.google.ads.admanager.v1.CustomTargetingClause(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.CustomTargetingClause result) { + if (customTargetingLiteralsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + customTargetingLiterals_ = + java.util.Collections.unmodifiableList(customTargetingLiterals_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.customTargetingLiterals_ = customTargetingLiterals_; + } else { + result.customTargetingLiterals_ = customTargetingLiteralsBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.CustomTargetingClause result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.CustomTargetingClause) { + return mergeFrom((com.google.ads.admanager.v1.CustomTargetingClause) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.CustomTargetingClause other) { + if (other == com.google.ads.admanager.v1.CustomTargetingClause.getDefaultInstance()) + return this; + if (customTargetingLiteralsBuilder_ == null) { + if (!other.customTargetingLiterals_.isEmpty()) { + if (customTargetingLiterals_.isEmpty()) { + customTargetingLiterals_ = other.customTargetingLiterals_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCustomTargetingLiteralsIsMutable(); + customTargetingLiterals_.addAll(other.customTargetingLiterals_); + } + onChanged(); + } + } else { + if (!other.customTargetingLiterals_.isEmpty()) { + if (customTargetingLiteralsBuilder_.isEmpty()) { + customTargetingLiteralsBuilder_.dispose(); + customTargetingLiteralsBuilder_ = null; + customTargetingLiterals_ = other.customTargetingLiterals_; + bitField0_ = (bitField0_ & ~0x00000001); + customTargetingLiteralsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCustomTargetingLiteralsFieldBuilder() + : null; + } else { + customTargetingLiteralsBuilder_.addAllMessages(other.customTargetingLiterals_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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.admanager.v1.CustomTargetingLiteral m = + input.readMessage( + com.google.ads.admanager.v1.CustomTargetingLiteral.parser(), + extensionRegistry); + if (customTargetingLiteralsBuilder_ == null) { + ensureCustomTargetingLiteralsIsMutable(); + customTargetingLiterals_.add(m); + } else { + customTargetingLiteralsBuilder_.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 + customTargetingLiterals_ = java.util.Collections.emptyList(); + + private void ensureCustomTargetingLiteralsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + customTargetingLiterals_ = + new java.util.ArrayList( + customTargetingLiterals_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CustomTargetingLiteral, + com.google.ads.admanager.v1.CustomTargetingLiteral.Builder, + com.google.ads.admanager.v1.CustomTargetingLiteralOrBuilder> + customTargetingLiteralsBuilder_; + + /** + * + * + *
+     * Optional. Leaf targeting expressions for custom key/values.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingLiteral custom_targeting_literals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCustomTargetingLiteralsList() { + if (customTargetingLiteralsBuilder_ == null) { + return java.util.Collections.unmodifiableList(customTargetingLiterals_); + } else { + return customTargetingLiteralsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. Leaf targeting expressions for custom key/values.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingLiteral custom_targeting_literals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getCustomTargetingLiteralsCount() { + if (customTargetingLiteralsBuilder_ == null) { + return customTargetingLiterals_.size(); + } else { + return customTargetingLiteralsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. Leaf targeting expressions for custom key/values.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingLiteral custom_targeting_literals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.CustomTargetingLiteral getCustomTargetingLiterals( + int index) { + if (customTargetingLiteralsBuilder_ == null) { + return customTargetingLiterals_.get(index); + } else { + return customTargetingLiteralsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. Leaf targeting expressions for custom key/values.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingLiteral custom_targeting_literals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomTargetingLiterals( + int index, com.google.ads.admanager.v1.CustomTargetingLiteral value) { + if (customTargetingLiteralsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomTargetingLiteralsIsMutable(); + customTargetingLiterals_.set(index, value); + onChanged(); + } else { + customTargetingLiteralsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Leaf targeting expressions for custom key/values.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingLiteral custom_targeting_literals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomTargetingLiterals( + int index, com.google.ads.admanager.v1.CustomTargetingLiteral.Builder builderForValue) { + if (customTargetingLiteralsBuilder_ == null) { + ensureCustomTargetingLiteralsIsMutable(); + customTargetingLiterals_.set(index, builderForValue.build()); + onChanged(); + } else { + customTargetingLiteralsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Leaf targeting expressions for custom key/values.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingLiteral custom_targeting_literals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCustomTargetingLiterals( + com.google.ads.admanager.v1.CustomTargetingLiteral value) { + if (customTargetingLiteralsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomTargetingLiteralsIsMutable(); + customTargetingLiterals_.add(value); + onChanged(); + } else { + customTargetingLiteralsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. Leaf targeting expressions for custom key/values.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingLiteral custom_targeting_literals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCustomTargetingLiterals( + int index, com.google.ads.admanager.v1.CustomTargetingLiteral value) { + if (customTargetingLiteralsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomTargetingLiteralsIsMutable(); + customTargetingLiterals_.add(index, value); + onChanged(); + } else { + customTargetingLiteralsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Leaf targeting expressions for custom key/values.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingLiteral custom_targeting_literals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCustomTargetingLiterals( + com.google.ads.admanager.v1.CustomTargetingLiteral.Builder builderForValue) { + if (customTargetingLiteralsBuilder_ == null) { + ensureCustomTargetingLiteralsIsMutable(); + customTargetingLiterals_.add(builderForValue.build()); + onChanged(); + } else { + customTargetingLiteralsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Leaf targeting expressions for custom key/values.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingLiteral custom_targeting_literals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCustomTargetingLiterals( + int index, com.google.ads.admanager.v1.CustomTargetingLiteral.Builder builderForValue) { + if (customTargetingLiteralsBuilder_ == null) { + ensureCustomTargetingLiteralsIsMutable(); + customTargetingLiterals_.add(index, builderForValue.build()); + onChanged(); + } else { + customTargetingLiteralsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Leaf targeting expressions for custom key/values.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingLiteral custom_targeting_literals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllCustomTargetingLiterals( + java.lang.Iterable values) { + if (customTargetingLiteralsBuilder_ == null) { + ensureCustomTargetingLiteralsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, customTargetingLiterals_); + onChanged(); + } else { + customTargetingLiteralsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. Leaf targeting expressions for custom key/values.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingLiteral custom_targeting_literals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCustomTargetingLiterals() { + if (customTargetingLiteralsBuilder_ == null) { + customTargetingLiterals_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + customTargetingLiteralsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Leaf targeting expressions for custom key/values.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingLiteral custom_targeting_literals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeCustomTargetingLiterals(int index) { + if (customTargetingLiteralsBuilder_ == null) { + ensureCustomTargetingLiteralsIsMutable(); + customTargetingLiterals_.remove(index); + onChanged(); + } else { + customTargetingLiteralsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. Leaf targeting expressions for custom key/values.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingLiteral custom_targeting_literals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.CustomTargetingLiteral.Builder + getCustomTargetingLiteralsBuilder(int index) { + return getCustomTargetingLiteralsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. Leaf targeting expressions for custom key/values.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingLiteral custom_targeting_literals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.CustomTargetingLiteralOrBuilder + getCustomTargetingLiteralsOrBuilder(int index) { + if (customTargetingLiteralsBuilder_ == null) { + return customTargetingLiterals_.get(index); + } else { + return customTargetingLiteralsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. Leaf targeting expressions for custom key/values.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingLiteral custom_targeting_literals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCustomTargetingLiteralsOrBuilderList() { + if (customTargetingLiteralsBuilder_ != null) { + return customTargetingLiteralsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(customTargetingLiterals_); + } + } + + /** + * + * + *
+     * Optional. Leaf targeting expressions for custom key/values.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingLiteral custom_targeting_literals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.CustomTargetingLiteral.Builder + addCustomTargetingLiteralsBuilder() { + return getCustomTargetingLiteralsFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.CustomTargetingLiteral.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Leaf targeting expressions for custom key/values.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingLiteral custom_targeting_literals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.CustomTargetingLiteral.Builder + addCustomTargetingLiteralsBuilder(int index) { + return getCustomTargetingLiteralsFieldBuilder() + .addBuilder( + index, com.google.ads.admanager.v1.CustomTargetingLiteral.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Leaf targeting expressions for custom key/values.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingLiteral custom_targeting_literals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCustomTargetingLiteralsBuilderList() { + return getCustomTargetingLiteralsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CustomTargetingLiteral, + com.google.ads.admanager.v1.CustomTargetingLiteral.Builder, + com.google.ads.admanager.v1.CustomTargetingLiteralOrBuilder> + getCustomTargetingLiteralsFieldBuilder() { + if (customTargetingLiteralsBuilder_ == null) { + customTargetingLiteralsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CustomTargetingLiteral, + com.google.ads.admanager.v1.CustomTargetingLiteral.Builder, + com.google.ads.admanager.v1.CustomTargetingLiteralOrBuilder>( + customTargetingLiterals_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + customTargetingLiterals_ = null; + } + return customTargetingLiteralsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.CustomTargetingClause) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.CustomTargetingClause) + private static final com.google.ads.admanager.v1.CustomTargetingClause DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.CustomTargetingClause(); + } + + public static com.google.ads.admanager.v1.CustomTargetingClause getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomTargetingClause parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.CustomTargetingClause getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingClauseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingClauseOrBuilder.java new file mode 100644 index 000000000000..715d94ecee3f --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingClauseOrBuilder.java @@ -0,0 +1,94 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface CustomTargetingClauseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.CustomTargetingClause) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Leaf targeting expressions for custom key/values.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingLiteral custom_targeting_literals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getCustomTargetingLiteralsList(); + + /** + * + * + *
+   * Optional. Leaf targeting expressions for custom key/values.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingLiteral custom_targeting_literals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.admanager.v1.CustomTargetingLiteral getCustomTargetingLiterals(int index); + + /** + * + * + *
+   * Optional. Leaf targeting expressions for custom key/values.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingLiteral custom_targeting_literals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getCustomTargetingLiteralsCount(); + + /** + * + * + *
+   * Optional. Leaf targeting expressions for custom key/values.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingLiteral custom_targeting_literals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getCustomTargetingLiteralsOrBuilderList(); + + /** + * + * + *
+   * Optional. Leaf targeting expressions for custom key/values.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingLiteral custom_targeting_literals = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.admanager.v1.CustomTargetingLiteralOrBuilder getCustomTargetingLiteralsOrBuilder( + int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyServiceProto.java index fe84c19a783c..24de01092545 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyServiceProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyServiceProto.java @@ -71,7 +71,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025custom_targeting_keys\030\001" + " \003(\0132+.google.ads.admanager.v1.CustomTargetingKey\022\027\n" + "\017next_page_token\030\002 \001(\t\022\022\n\n" - + "total_size\030\003 \001(\0052\277\003\n" + + "total_size\030\003 \001(\0052\353\003\n" + "\031CustomTargetingKeyService\022\267\001\n" + "\025GetCustomTargetingKey\0225.google.ads.admanage" + "r.v1.GetCustomTargetingKeyRequest\032+.google.ads.admanager.v1.CustomTargetingKey\":" @@ -79,12 +79,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027ListCustomTargetingKeys\0227.google.ads.admanager.v1.ListCus" + "tomTargetingKeysRequest\0328.google.ads.admanager.v1.ListCustomTargetingKeysRespons" + "e\"<\332A\006parent\202\323\344\223\002-\022+/v1/{parent=networks" - + "/*}/customTargetingKeys\032\033\312A\030admanager.googleapis.comB\322\001\n" - + "\033com.google.ads.admanager.v1B\036CustomTargetingKeyServiceProtoP\001Z@" - + "google.golang.org/genproto/googleapis/ad" - + "s/admanager/v1;admanager\252\002\027Google.Ads.Ad" - + "Manager.V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032G" - + "oogle::Ads::AdManager::V1b\006proto3" + + "/*}/customTargetingKeys\032G\312A\030admanager.go" + + "ogleapis.com\322A)https://www.googleapis.com/auth/admanagerB\322\001\n" + + "\033com.google.ads.admanager.v1B\036CustomTargetingKeyServiceProto" + + "P\001Z@google.golang.org/genproto/googleapi" + + "s/ads/admanager/v1;admanager\252\002\027Google.Ad" + + "s.AdManager.V1\312\002\027Google\\Ads\\AdManager\\V1" + + "\352\002\032Google::Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -126,6 +127,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.AnnotationsProto.http); registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingLiteral.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingLiteral.java new file mode 100644 index 000000000000..74641811be69 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingLiteral.java @@ -0,0 +1,1151 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Represents targeting for custom key/values. The values are ORed together.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.CustomTargetingLiteral} + */ +public final class CustomTargetingLiteral extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.CustomTargetingLiteral) + CustomTargetingLiteralOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CustomTargetingLiteral.newBuilder() to construct. + private CustomTargetingLiteral(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CustomTargetingLiteral() { + customTargetingKey_ = ""; + customTargetingValues_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CustomTargetingLiteral(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_CustomTargetingLiteral_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_CustomTargetingLiteral_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CustomTargetingLiteral.class, + com.google.ads.admanager.v1.CustomTargetingLiteral.Builder.class); + } + + private int bitField0_; + public static final int NEGATIVE_FIELD_NUMBER = 1; + private boolean negative_ = false; + + /** + * + * + *
+   * Whether this expression is negatively targeted, meaning it matches
+   * ad requests that exclude the below values.
+   * 
+ * + * optional bool negative = 1; + * + * @return Whether the negative field is set. + */ + @java.lang.Override + public boolean hasNegative() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Whether this expression is negatively targeted, meaning it matches
+   * ad requests that exclude the below values.
+   * 
+ * + * optional bool negative = 1; + * + * @return The negative. + */ + @java.lang.Override + public boolean getNegative() { + return negative_; + } + + public static final int CUSTOM_TARGETING_KEY_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object customTargetingKey_ = ""; + + /** + * + * + *
+   * Optional. The resource name of the targeted CustomKey.
+   * 
+ * + * + * optional string custom_targeting_key = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the customTargetingKey field is set. + */ + @java.lang.Override + public boolean hasCustomTargetingKey() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. The resource name of the targeted CustomKey.
+   * 
+ * + * + * optional string custom_targeting_key = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The customTargetingKey. + */ + @java.lang.Override + public java.lang.String getCustomTargetingKey() { + java.lang.Object ref = customTargetingKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customTargetingKey_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The resource name of the targeted CustomKey.
+   * 
+ * + * + * optional string custom_targeting_key = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for customTargetingKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCustomTargetingKeyBytes() { + java.lang.Object ref = customTargetingKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customTargetingKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CUSTOM_TARGETING_VALUES_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList customTargetingValues_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. The resource names of the targeted CustomValues.
+   * 
+ * + * + * repeated string custom_targeting_values = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the customTargetingValues. + */ + public com.google.protobuf.ProtocolStringList getCustomTargetingValuesList() { + return customTargetingValues_; + } + + /** + * + * + *
+   * Optional. The resource names of the targeted CustomValues.
+   * 
+ * + * + * repeated string custom_targeting_values = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of customTargetingValues. + */ + public int getCustomTargetingValuesCount() { + return customTargetingValues_.size(); + } + + /** + * + * + *
+   * Optional. The resource names of the targeted CustomValues.
+   * 
+ * + * + * repeated string custom_targeting_values = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The customTargetingValues at the given index. + */ + public java.lang.String getCustomTargetingValues(int index) { + return customTargetingValues_.get(index); + } + + /** + * + * + *
+   * Optional. The resource names of the targeted CustomValues.
+   * 
+ * + * + * repeated string custom_targeting_values = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the customTargetingValues at the given index. + */ + public com.google.protobuf.ByteString getCustomTargetingValuesBytes(int index) { + return customTargetingValues_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(1, negative_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, customTargetingKey_); + } + for (int i = 0; i < customTargetingValues_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 5, customTargetingValues_.getRaw(i)); + } + 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.computeBoolSize(1, negative_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, customTargetingKey_); + } + { + int dataSize = 0; + for (int i = 0; i < customTargetingValues_.size(); i++) { + dataSize += computeStringSizeNoTag(customTargetingValues_.getRaw(i)); + } + size += dataSize; + size += 1 * getCustomTargetingValuesList().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.admanager.v1.CustomTargetingLiteral)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.CustomTargetingLiteral other = + (com.google.ads.admanager.v1.CustomTargetingLiteral) obj; + + if (hasNegative() != other.hasNegative()) return false; + if (hasNegative()) { + if (getNegative() != other.getNegative()) return false; + } + if (hasCustomTargetingKey() != other.hasCustomTargetingKey()) return false; + if (hasCustomTargetingKey()) { + if (!getCustomTargetingKey().equals(other.getCustomTargetingKey())) return false; + } + if (!getCustomTargetingValuesList().equals(other.getCustomTargetingValuesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasNegative()) { + hash = (37 * hash) + NEGATIVE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNegative()); + } + if (hasCustomTargetingKey()) { + hash = (37 * hash) + CUSTOM_TARGETING_KEY_FIELD_NUMBER; + hash = (53 * hash) + getCustomTargetingKey().hashCode(); + } + if (getCustomTargetingValuesCount() > 0) { + hash = (37 * hash) + CUSTOM_TARGETING_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getCustomTargetingValuesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.CustomTargetingLiteral parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CustomTargetingLiteral 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.admanager.v1.CustomTargetingLiteral parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CustomTargetingLiteral parseFrom( + 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.admanager.v1.CustomTargetingLiteral parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CustomTargetingLiteral parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CustomTargetingLiteral parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CustomTargetingLiteral parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CustomTargetingLiteral parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CustomTargetingLiteral parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CustomTargetingLiteral parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CustomTargetingLiteral parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.CustomTargetingLiteral prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Represents targeting for custom key/values. The values are ORed together.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.CustomTargetingLiteral} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.CustomTargetingLiteral) + com.google.ads.admanager.v1.CustomTargetingLiteralOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_CustomTargetingLiteral_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_CustomTargetingLiteral_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CustomTargetingLiteral.class, + com.google.ads.admanager.v1.CustomTargetingLiteral.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.CustomTargetingLiteral.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + negative_ = false; + customTargetingKey_ = ""; + customTargetingValues_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_CustomTargetingLiteral_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CustomTargetingLiteral getDefaultInstanceForType() { + return com.google.ads.admanager.v1.CustomTargetingLiteral.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.CustomTargetingLiteral build() { + com.google.ads.admanager.v1.CustomTargetingLiteral result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CustomTargetingLiteral buildPartial() { + com.google.ads.admanager.v1.CustomTargetingLiteral result = + new com.google.ads.admanager.v1.CustomTargetingLiteral(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.CustomTargetingLiteral result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.negative_ = negative_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.customTargetingKey_ = customTargetingKey_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + customTargetingValues_.makeImmutable(); + result.customTargetingValues_ = customTargetingValues_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.CustomTargetingLiteral) { + return mergeFrom((com.google.ads.admanager.v1.CustomTargetingLiteral) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.CustomTargetingLiteral other) { + if (other == com.google.ads.admanager.v1.CustomTargetingLiteral.getDefaultInstance()) + return this; + if (other.hasNegative()) { + setNegative(other.getNegative()); + } + if (other.hasCustomTargetingKey()) { + customTargetingKey_ = other.customTargetingKey_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.customTargetingValues_.isEmpty()) { + if (customTargetingValues_.isEmpty()) { + customTargetingValues_ = other.customTargetingValues_; + bitField0_ |= 0x00000004; + } else { + ensureCustomTargetingValuesIsMutable(); + customTargetingValues_.addAll(other.customTargetingValues_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + negative_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 34: + { + customTargetingKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureCustomTargetingValuesIsMutable(); + customTargetingValues_.add(s); + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean negative_; + + /** + * + * + *
+     * Whether this expression is negatively targeted, meaning it matches
+     * ad requests that exclude the below values.
+     * 
+ * + * optional bool negative = 1; + * + * @return Whether the negative field is set. + */ + @java.lang.Override + public boolean hasNegative() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Whether this expression is negatively targeted, meaning it matches
+     * ad requests that exclude the below values.
+     * 
+ * + * optional bool negative = 1; + * + * @return The negative. + */ + @java.lang.Override + public boolean getNegative() { + return negative_; + } + + /** + * + * + *
+     * Whether this expression is negatively targeted, meaning it matches
+     * ad requests that exclude the below values.
+     * 
+ * + * optional bool negative = 1; + * + * @param value The negative to set. + * @return This builder for chaining. + */ + public Builder setNegative(boolean value) { + + negative_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Whether this expression is negatively targeted, meaning it matches
+     * ad requests that exclude the below values.
+     * 
+ * + * optional bool negative = 1; + * + * @return This builder for chaining. + */ + public Builder clearNegative() { + bitField0_ = (bitField0_ & ~0x00000001); + negative_ = false; + onChanged(); + return this; + } + + private java.lang.Object customTargetingKey_ = ""; + + /** + * + * + *
+     * Optional. The resource name of the targeted CustomKey.
+     * 
+ * + * + * optional string custom_targeting_key = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the customTargetingKey field is set. + */ + public boolean hasCustomTargetingKey() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. The resource name of the targeted CustomKey.
+     * 
+ * + * + * optional string custom_targeting_key = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The customTargetingKey. + */ + public java.lang.String getCustomTargetingKey() { + java.lang.Object ref = customTargetingKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customTargetingKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The resource name of the targeted CustomKey.
+     * 
+ * + * + * optional string custom_targeting_key = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for customTargetingKey. + */ + public com.google.protobuf.ByteString getCustomTargetingKeyBytes() { + java.lang.Object ref = customTargetingKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customTargetingKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The resource name of the targeted CustomKey.
+     * 
+ * + * + * optional string custom_targeting_key = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The customTargetingKey to set. + * @return This builder for chaining. + */ + public Builder setCustomTargetingKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + customTargetingKey_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The resource name of the targeted CustomKey.
+     * 
+ * + * + * optional string custom_targeting_key = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCustomTargetingKey() { + customTargetingKey_ = getDefaultInstance().getCustomTargetingKey(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The resource name of the targeted CustomKey.
+     * 
+ * + * + * optional string custom_targeting_key = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for customTargetingKey to set. + * @return This builder for chaining. + */ + public Builder setCustomTargetingKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customTargetingKey_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList customTargetingValues_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureCustomTargetingValuesIsMutable() { + if (!customTargetingValues_.isModifiable()) { + customTargetingValues_ = + new com.google.protobuf.LazyStringArrayList(customTargetingValues_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
+     * Optional. The resource names of the targeted CustomValues.
+     * 
+ * + * + * repeated string custom_targeting_values = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the customTargetingValues. + */ + public com.google.protobuf.ProtocolStringList getCustomTargetingValuesList() { + customTargetingValues_.makeImmutable(); + return customTargetingValues_; + } + + /** + * + * + *
+     * Optional. The resource names of the targeted CustomValues.
+     * 
+ * + * + * repeated string custom_targeting_values = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of customTargetingValues. + */ + public int getCustomTargetingValuesCount() { + return customTargetingValues_.size(); + } + + /** + * + * + *
+     * Optional. The resource names of the targeted CustomValues.
+     * 
+ * + * + * repeated string custom_targeting_values = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The customTargetingValues at the given index. + */ + public java.lang.String getCustomTargetingValues(int index) { + return customTargetingValues_.get(index); + } + + /** + * + * + *
+     * Optional. The resource names of the targeted CustomValues.
+     * 
+ * + * + * repeated string custom_targeting_values = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the customTargetingValues at the given index. + */ + public com.google.protobuf.ByteString getCustomTargetingValuesBytes(int index) { + return customTargetingValues_.getByteString(index); + } + + /** + * + * + *
+     * Optional. The resource names of the targeted CustomValues.
+     * 
+ * + * + * repeated string custom_targeting_values = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The customTargetingValues to set. + * @return This builder for chaining. + */ + public Builder setCustomTargetingValues(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomTargetingValuesIsMutable(); + customTargetingValues_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The resource names of the targeted CustomValues.
+     * 
+ * + * + * repeated string custom_targeting_values = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The customTargetingValues to add. + * @return This builder for chaining. + */ + public Builder addCustomTargetingValues(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomTargetingValuesIsMutable(); + customTargetingValues_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The resource names of the targeted CustomValues.
+     * 
+ * + * + * repeated string custom_targeting_values = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param values The customTargetingValues to add. + * @return This builder for chaining. + */ + public Builder addAllCustomTargetingValues(java.lang.Iterable values) { + ensureCustomTargetingValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, customTargetingValues_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The resource names of the targeted CustomValues.
+     * 
+ * + * + * repeated string custom_targeting_values = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCustomTargetingValues() { + customTargetingValues_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The resource names of the targeted CustomValues.
+     * 
+ * + * + * repeated string custom_targeting_values = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the customTargetingValues to add. + * @return This builder for chaining. + */ + public Builder addCustomTargetingValuesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureCustomTargetingValuesIsMutable(); + customTargetingValues_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.CustomTargetingLiteral) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.CustomTargetingLiteral) + private static final com.google.ads.admanager.v1.CustomTargetingLiteral DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.CustomTargetingLiteral(); + } + + public static com.google.ads.admanager.v1.CustomTargetingLiteral getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomTargetingLiteral parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.CustomTargetingLiteral getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingLiteralOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingLiteralOrBuilder.java new file mode 100644 index 000000000000..a23a8b2ffbe6 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingLiteralOrBuilder.java @@ -0,0 +1,161 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface CustomTargetingLiteralOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.CustomTargetingLiteral) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether this expression is negatively targeted, meaning it matches
+   * ad requests that exclude the below values.
+   * 
+ * + * optional bool negative = 1; + * + * @return Whether the negative field is set. + */ + boolean hasNegative(); + + /** + * + * + *
+   * Whether this expression is negatively targeted, meaning it matches
+   * ad requests that exclude the below values.
+   * 
+ * + * optional bool negative = 1; + * + * @return The negative. + */ + boolean getNegative(); + + /** + * + * + *
+   * Optional. The resource name of the targeted CustomKey.
+   * 
+ * + * + * optional string custom_targeting_key = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the customTargetingKey field is set. + */ + boolean hasCustomTargetingKey(); + + /** + * + * + *
+   * Optional. The resource name of the targeted CustomKey.
+   * 
+ * + * + * optional string custom_targeting_key = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The customTargetingKey. + */ + java.lang.String getCustomTargetingKey(); + + /** + * + * + *
+   * Optional. The resource name of the targeted CustomKey.
+   * 
+ * + * + * optional string custom_targeting_key = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for customTargetingKey. + */ + com.google.protobuf.ByteString getCustomTargetingKeyBytes(); + + /** + * + * + *
+   * Optional. The resource names of the targeted CustomValues.
+   * 
+ * + * + * repeated string custom_targeting_values = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the customTargetingValues. + */ + java.util.List getCustomTargetingValuesList(); + + /** + * + * + *
+   * Optional. The resource names of the targeted CustomValues.
+   * 
+ * + * + * repeated string custom_targeting_values = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of customTargetingValues. + */ + int getCustomTargetingValuesCount(); + + /** + * + * + *
+   * Optional. The resource names of the targeted CustomValues.
+   * 
+ * + * + * repeated string custom_targeting_values = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The customTargetingValues at the given index. + */ + java.lang.String getCustomTargetingValues(int index); + + /** + * + * + *
+   * Optional. The resource names of the targeted CustomValues.
+   * 
+ * + * + * repeated string custom_targeting_values = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the customTargetingValues at the given index. + */ + com.google.protobuf.ByteString getCustomTargetingValuesBytes(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingOrBuilder.java new file mode 100644 index 000000000000..f2ed65e5ded3 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingOrBuilder.java @@ -0,0 +1,93 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface CustomTargetingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.CustomTargeting) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. These clauses are all ORed together.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingClause custom_targeting_clauses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getCustomTargetingClausesList(); + + /** + * + * + *
+   * Optional. These clauses are all ORed together.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingClause custom_targeting_clauses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.admanager.v1.CustomTargetingClause getCustomTargetingClauses(int index); + + /** + * + * + *
+   * Optional. These clauses are all ORed together.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingClause custom_targeting_clauses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getCustomTargetingClausesCount(); + + /** + * + * + *
+   * Optional. These clauses are all ORed together.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingClause custom_targeting_clauses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getCustomTargetingClausesOrBuilderList(); + + /** + * + * + *
+   * Optional. These clauses are all ORed together.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.CustomTargetingClause custom_targeting_clauses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.admanager.v1.CustomTargetingClauseOrBuilder getCustomTargetingClausesOrBuilder( + int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingValue.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingValue.java index 29b15ce6b8c0..d0c3fda07e3f 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingValue.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingValue.java @@ -41,6 +41,7 @@ private CustomTargetingValue(com.google.protobuf.GeneratedMessageV3.Builder b private CustomTargetingValue() { name_ = ""; + customTargetingKey_ = ""; adTagName_ = ""; displayName_ = ""; matchType_ = 0; @@ -79,7 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * Identifier. The resource name of the `CustomTargetingValue`.
    * Format:
-   * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}/customTargetingValues/{custom_targeting_value_id}`
+   * `networks/{network_code}/customTargetingValues/{custom_targeting_value_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -105,7 +106,7 @@ public java.lang.String getName() { *
    * Identifier. The resource name of the `CustomTargetingValue`.
    * Format:
-   * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}/customTargetingValues/{custom_targeting_value_id}`
+   * `networks/{network_code}/customTargetingValues/{custom_targeting_value_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -125,6 +126,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } + public static final int CUSTOM_TARGETING_KEY_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object customTargetingKey_ = ""; + + /** + * + * + *
+   * Required. Immutable. The resource name of the `CustomTargetingKey`.
+   * Format:
+   * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+   * 
+ * + * + * string custom_targeting_key = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The customTargetingKey. + */ + @java.lang.Override + public java.lang.String getCustomTargetingKey() { + java.lang.Object ref = customTargetingKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customTargetingKey_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Immutable. The resource name of the `CustomTargetingKey`.
+   * Format:
+   * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+   * 
+ * + * + * string custom_targeting_key = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for customTargetingKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCustomTargetingKeyBytes() { + java.lang.Object ref = customTargetingKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customTargetingKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int AD_TAG_NAME_FIELD_NUMBER = 4; @SuppressWarnings("serial") @@ -369,6 +431,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(7, status_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customTargetingKey_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, customTargetingKey_); + } getUnknownFields().writeTo(output); } @@ -399,6 +464,9 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, status_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customTargetingKey_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, customTargetingKey_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -416,6 +484,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.ads.admanager.v1.CustomTargetingValue) obj; if (!getName().equals(other.getName())) return false; + if (!getCustomTargetingKey().equals(other.getCustomTargetingKey())) return false; if (!getAdTagName().equals(other.getAdTagName())) return false; if (!getDisplayName().equals(other.getDisplayName())) return false; if (matchType_ != other.matchType_) return false; @@ -433,6 +502,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + CUSTOM_TARGETING_KEY_FIELD_NUMBER; + hash = (53 * hash) + getCustomTargetingKey().hashCode(); hash = (37 * hash) + AD_TAG_NAME_FIELD_NUMBER; hash = (53 * hash) + getAdTagName().hashCode(); hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; @@ -582,6 +653,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; + customTargetingKey_ = ""; adTagName_ = ""; displayName_ = ""; matchType_ = 0; @@ -626,15 +698,18 @@ private void buildPartial0(com.google.ads.admanager.v1.CustomTargetingValue resu result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.adTagName_ = adTagName_; + result.customTargetingKey_ = customTargetingKey_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.displayName_ = displayName_; + result.adTagName_ = adTagName_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.matchType_ = matchType_; + result.displayName_ = displayName_; } if (((from_bitField0_ & 0x00000010) != 0)) { + result.matchType_ = matchType_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { result.status_ = status_; } } @@ -690,14 +765,19 @@ public Builder mergeFrom(com.google.ads.admanager.v1.CustomTargetingValue other) bitField0_ |= 0x00000001; onChanged(); } + if (!other.getCustomTargetingKey().isEmpty()) { + customTargetingKey_ = other.customTargetingKey_; + bitField0_ |= 0x00000002; + onChanged(); + } if (!other.getAdTagName().isEmpty()) { adTagName_ = other.adTagName_; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } if (other.matchType_ != 0) { @@ -741,27 +821,33 @@ public Builder mergeFrom( case 34: { adTagName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; break; } // case 34 case 42: { displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 42 case 48: { matchType_ = input.readEnum(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 48 case 56: { status_ = input.readEnum(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 56 + case 66: + { + customTargetingKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -789,7 +875,7 @@ public Builder mergeFrom( *
      * Identifier. The resource name of the `CustomTargetingValue`.
      * Format:
-     * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}/customTargetingValues/{custom_targeting_value_id}`
+     * `networks/{network_code}/customTargetingValues/{custom_targeting_value_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -814,7 +900,7 @@ public java.lang.String getName() { *
      * Identifier. The resource name of the `CustomTargetingValue`.
      * Format:
-     * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}/customTargetingValues/{custom_targeting_value_id}`
+     * `networks/{network_code}/customTargetingValues/{custom_targeting_value_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -839,7 +925,7 @@ public com.google.protobuf.ByteString getNameBytes() { *
      * Identifier. The resource name of the `CustomTargetingValue`.
      * Format:
-     * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}/customTargetingValues/{custom_targeting_value_id}`
+     * `networks/{network_code}/customTargetingValues/{custom_targeting_value_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -863,7 +949,7 @@ public Builder setName(java.lang.String value) { *
      * Identifier. The resource name of the `CustomTargetingValue`.
      * Format:
-     * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}/customTargetingValues/{custom_targeting_value_id}`
+     * `networks/{network_code}/customTargetingValues/{custom_targeting_value_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -883,7 +969,7 @@ public Builder clearName() { *
      * Identifier. The resource name of the `CustomTargetingValue`.
      * Format:
-     * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}/customTargetingValues/{custom_targeting_value_id}`
+     * `networks/{network_code}/customTargetingValues/{custom_targeting_value_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -902,6 +988,137 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object customTargetingKey_ = ""; + + /** + * + * + *
+     * Required. Immutable. The resource name of the `CustomTargetingKey`.
+     * Format:
+     * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+     * 
+ * + * + * string custom_targeting_key = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The customTargetingKey. + */ + public java.lang.String getCustomTargetingKey() { + java.lang.Object ref = customTargetingKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customTargetingKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Immutable. The resource name of the `CustomTargetingKey`.
+     * Format:
+     * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+     * 
+ * + * + * string custom_targeting_key = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for customTargetingKey. + */ + public com.google.protobuf.ByteString getCustomTargetingKeyBytes() { + java.lang.Object ref = customTargetingKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customTargetingKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Immutable. The resource name of the `CustomTargetingKey`.
+     * Format:
+     * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+     * 
+ * + * + * string custom_targeting_key = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The customTargetingKey to set. + * @return This builder for chaining. + */ + public Builder setCustomTargetingKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + customTargetingKey_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Immutable. The resource name of the `CustomTargetingKey`.
+     * Format:
+     * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+     * 
+ * + * + * string custom_targeting_key = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCustomTargetingKey() { + customTargetingKey_ = getDefaultInstance().getCustomTargetingKey(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Immutable. The resource name of the `CustomTargetingKey`.
+     * Format:
+     * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+     * 
+ * + * + * string custom_targeting_key = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for customTargetingKey to set. + * @return This builder for chaining. + */ + public Builder setCustomTargetingKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customTargetingKey_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + private java.lang.Object adTagName_ = ""; /** @@ -979,7 +1196,7 @@ public Builder setAdTagName(java.lang.String value) { throw new NullPointerException(); } adTagName_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1001,7 +1218,7 @@ public Builder setAdTagName(java.lang.String value) { */ public Builder clearAdTagName() { adTagName_ = getDefaultInstance().getAdTagName(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1028,7 +1245,7 @@ public Builder setAdTagNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); adTagName_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1098,7 +1315,7 @@ public Builder setDisplayName(java.lang.String value) { throw new NullPointerException(); } displayName_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1116,7 +1333,7 @@ public Builder setDisplayName(java.lang.String value) { */ public Builder clearDisplayName() { displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1139,7 +1356,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); displayName_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1182,7 +1399,7 @@ public int getMatchTypeValue() { */ public Builder setMatchTypeValue(int value) { matchType_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1236,7 +1453,7 @@ public Builder setMatchType( if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; matchType_ = value.getNumber(); onChanged(); return this; @@ -1257,7 +1474,7 @@ public Builder setMatchType( * @return This builder for chaining. */ public Builder clearMatchType() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); matchType_ = 0; onChanged(); return this; @@ -1299,7 +1516,7 @@ public int getStatusValue() { */ public Builder setStatusValue(int value) { status_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1349,7 +1566,7 @@ public Builder setStatus( if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; status_ = value.getNumber(); onChanged(); return this; @@ -1369,7 +1586,7 @@ public Builder setStatus( * @return This builder for chaining. */ public Builder clearStatus() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); status_ = 0; onChanged(); return this; diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueMessagesProto.java index 807348ec4de5..fc233bdf15b3 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueMessagesProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueMessagesProto.java @@ -41,27 +41,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n" - + "=google/ads/admanager/v1/custom_targeting_value_messages.proto\022\027google.ads.adma" + "\n=google/ads/admanager/v1/custom_targeti" + + "ng_value_messages.proto\022\027google.ads.adma" + "nager.v1\032:google/ads/admanager/v1/custom" + "_targeting_value_enums.proto\032\037google/api" - + "/field_behavior.proto\032\031google/api/resource.proto\"\223\004\n" - + "\024CustomTargetingValue\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\010\022\030\n" - + "\013ad_tag_name\030\004 \001(\tB\003\340A\005\022\031\n" - + "\014display_name\030\005 \001(\tB\003\340A\001\022t\n\n" - + "match_type\030\006 \001(\0162X.google.ads.admanager.v1.CustomTa" - + "rgetingValueMatchTypeEnum.CustomTargetingValueMatchTypeB\006\340A\005\340A\002\022g\n" - + "\006status\030\007 \001(\0162R.google.ads.admanager.v1.CustomTargetin" - + "gValueStatusEnum.CustomTargetingValueStatusB\003\340A\003:\323\001\352A\317\001\n" - + "-admanager.googleapis.com/CustomTargetingValue\022qnetworks/{networ" - + "k_code}/customTargetingKeys/{custom_targeting_key}/customTargetingValues/{custom" - + "_targeting_value}*\025customTargetingValues2\024customTargetingValueB\325\001\n" - + "\033com.google.ads.admanager.v1B!CustomTargetingValueMess" - + "agesProtoP\001Z@google.golang.org/genproto/" - + "googleapis/ads/admanager/v1;admanager\252\002\027" - + "Google.Ads.AdManager.V1\312\002\027Google\\Ads\\AdM" - + "anager\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" + + "/field_behavior.proto\032\031google/api/resour" + + "ce.proto\"\276\004\n\024CustomTargetingValue\022\021\n\004nam" + + "e\030\001 \001(\tB\003\340A\010\022T\n\024custom_targeting_key\030\010 \001" + + "(\tB6\340A\002\340A\005\372A-\n+admanager.googleapis.com/" + + "CustomTargetingKey\022\030\n\013ad_tag_name\030\004 \001(\tB" + + "\003\340A\005\022\031\n\014display_name\030\005 \001(\tB\003\340A\001\022t\n\nmatch" + + "_type\030\006 \001(\0162X.google.ads.admanager.v1.Cu" + + "stomTargetingValueMatchTypeEnum.CustomTa" + + "rgetingValueMatchTypeB\006\340A\005\340A\002\022g\n\006status\030" + + "\007 \001(\0162R.google.ads.admanager.v1.CustomTa" + + "rgetingValueStatusEnum.CustomTargetingVa" + + "lueStatusB\003\340A\003:\250\001\352A\244\001\n-admanager.googlea" + + "pis.com/CustomTargetingValue\022Fnetworks/{" + + "network_code}/customTargetingValues/{cus" + + "tom_targeting_value}*\025customTargetingVal" + + "ues2\024customTargetingValueB\325\001\n\033com.google" + + ".ads.admanager.v1B!CustomTargetingValueM" + + "essagesProtoP\001Z@google.golang.org/genpro" + + "to/googleapis/ads/admanager/v1;admanager" + + "\252\002\027Google.Ads.AdManager.V1\312\002\027Google\\Ads\\" + + "AdManager\\V1\352\002\032Google::Ads::AdManager::V" + + "1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -77,12 +82,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_admanager_v1_CustomTargetingValue_descriptor, new java.lang.String[] { - "Name", "AdTagName", "DisplayName", "MatchType", "Status", + "Name", "CustomTargetingKey", "AdTagName", "DisplayName", "MatchType", "Status", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); com.google.ads.admanager.v1.CustomTargetingValueEnumsProto.getDescriptor(); diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueName.java index fc5090b48daa..f15d3f131438 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueName.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueName.java @@ -29,24 +29,21 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS. @Generated("by gapic-generator-java") public class CustomTargetingValueName implements ResourceName { - private static final PathTemplate NETWORK_CODE_CUSTOM_TARGETING_KEY_CUSTOM_TARGETING_VALUE = + private static final PathTemplate NETWORK_CODE_CUSTOM_TARGETING_VALUE = PathTemplate.createWithoutUrlEncoding( - "networks/{network_code}/customTargetingKeys/{custom_targeting_key}/customTargetingValues/{custom_targeting_value}"); + "networks/{network_code}/customTargetingValues/{custom_targeting_value}"); private volatile Map fieldValuesMap; private final String networkCode; - private final String customTargetingKey; private final String customTargetingValue; @Deprecated protected CustomTargetingValueName() { networkCode = null; - customTargetingKey = null; customTargetingValue = null; } private CustomTargetingValueName(Builder builder) { networkCode = Preconditions.checkNotNull(builder.getNetworkCode()); - customTargetingKey = Preconditions.checkNotNull(builder.getCustomTargetingKey()); customTargetingValue = Preconditions.checkNotNull(builder.getCustomTargetingValue()); } @@ -54,10 +51,6 @@ public String getNetworkCode() { return networkCode; } - public String getCustomTargetingKey() { - return customTargetingKey; - } - public String getCustomTargetingValue() { return customTargetingValue; } @@ -70,20 +63,16 @@ public Builder toBuilder() { return new Builder(this); } - public static CustomTargetingValueName of( - String networkCode, String customTargetingKey, String customTargetingValue) { + public static CustomTargetingValueName of(String networkCode, String customTargetingValue) { return newBuilder() .setNetworkCode(networkCode) - .setCustomTargetingKey(customTargetingKey) .setCustomTargetingValue(customTargetingValue) .build(); } - public static String format( - String networkCode, String customTargetingKey, String customTargetingValue) { + public static String format(String networkCode, String customTargetingValue) { return newBuilder() .setNetworkCode(networkCode) - .setCustomTargetingKey(customTargetingKey) .setCustomTargetingValue(customTargetingValue) .build() .toString(); @@ -94,12 +83,9 @@ public static CustomTargetingValueName parse(String formattedString) { return null; } Map matchMap = - NETWORK_CODE_CUSTOM_TARGETING_KEY_CUSTOM_TARGETING_VALUE.validatedMatch( + NETWORK_CODE_CUSTOM_TARGETING_VALUE.validatedMatch( formattedString, "CustomTargetingValueName.parse: formattedString not in valid format"); - return of( - matchMap.get("network_code"), - matchMap.get("custom_targeting_key"), - matchMap.get("custom_targeting_value")); + return of(matchMap.get("network_code"), matchMap.get("custom_targeting_value")); } public static List parseList(List formattedStrings) { @@ -123,7 +109,7 @@ public static List toStringList(List values) { } public static boolean isParsableFrom(String formattedString) { - return NETWORK_CODE_CUSTOM_TARGETING_KEY_CUSTOM_TARGETING_VALUE.matches(formattedString); + return NETWORK_CODE_CUSTOM_TARGETING_VALUE.matches(formattedString); } @Override @@ -135,9 +121,6 @@ public Map getFieldValuesMap() { if (networkCode != null) { fieldMapBuilder.put("network_code", networkCode); } - if (customTargetingKey != null) { - fieldMapBuilder.put("custom_targeting_key", customTargetingKey); - } if (customTargetingValue != null) { fieldMapBuilder.put("custom_targeting_value", customTargetingValue); } @@ -154,13 +137,8 @@ public String getFieldValue(String fieldName) { @Override public String toString() { - return NETWORK_CODE_CUSTOM_TARGETING_KEY_CUSTOM_TARGETING_VALUE.instantiate( - "network_code", - networkCode, - "custom_targeting_key", - customTargetingKey, - "custom_targeting_value", - customTargetingValue); + return NETWORK_CODE_CUSTOM_TARGETING_VALUE.instantiate( + "network_code", networkCode, "custom_targeting_value", customTargetingValue); } @Override @@ -171,7 +149,6 @@ public boolean equals(Object o) { if (o != null && getClass() == o.getClass()) { CustomTargetingValueName that = ((CustomTargetingValueName) o); return Objects.equals(this.networkCode, that.networkCode) - && Objects.equals(this.customTargetingKey, that.customTargetingKey) && Objects.equals(this.customTargetingValue, that.customTargetingValue); } return false; @@ -183,19 +160,13 @@ public int hashCode() { h *= 1000003; h ^= Objects.hashCode(networkCode); h *= 1000003; - h ^= Objects.hashCode(customTargetingKey); - h *= 1000003; h ^= Objects.hashCode(customTargetingValue); return h; } - /** - * Builder for - * networks/{network_code}/customTargetingKeys/{custom_targeting_key}/customTargetingValues/{custom_targeting_value}. - */ + /** Builder for networks/{network_code}/customTargetingValues/{custom_targeting_value}. */ public static class Builder { private String networkCode; - private String customTargetingKey; private String customTargetingValue; protected Builder() {} @@ -204,10 +175,6 @@ public String getNetworkCode() { return networkCode; } - public String getCustomTargetingKey() { - return customTargetingKey; - } - public String getCustomTargetingValue() { return customTargetingValue; } @@ -217,11 +184,6 @@ public Builder setNetworkCode(String networkCode) { return this; } - public Builder setCustomTargetingKey(String customTargetingKey) { - this.customTargetingKey = customTargetingKey; - return this; - } - public Builder setCustomTargetingValue(String customTargetingValue) { this.customTargetingValue = customTargetingValue; return this; @@ -229,7 +191,6 @@ public Builder setCustomTargetingValue(String customTargetingValue) { private Builder(CustomTargetingValueName customTargetingValueName) { this.networkCode = customTargetingValueName.networkCode; - this.customTargetingKey = customTargetingValueName.customTargetingKey; this.customTargetingValue = customTargetingValueName.customTargetingValue; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueOrBuilder.java index 1cc1a54f60ea..1c8f71244ec2 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueOrBuilder.java @@ -30,7 +30,7 @@ public interface CustomTargetingValueOrBuilder *
    * Identifier. The resource name of the `CustomTargetingValue`.
    * Format:
-   * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}/customTargetingValues/{custom_targeting_value_id}`
+   * `networks/{network_code}/customTargetingValues/{custom_targeting_value_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -45,7 +45,7 @@ public interface CustomTargetingValueOrBuilder *
    * Identifier. The resource name of the `CustomTargetingValue`.
    * Format:
-   * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}/customTargetingValues/{custom_targeting_value_id}`
+   * `networks/{network_code}/customTargetingValues/{custom_targeting_value_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -54,6 +54,40 @@ public interface CustomTargetingValueOrBuilder */ com.google.protobuf.ByteString getNameBytes(); + /** + * + * + *
+   * Required. Immutable. The resource name of the `CustomTargetingKey`.
+   * Format:
+   * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+   * 
+ * + * + * string custom_targeting_key = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The customTargetingKey. + */ + java.lang.String getCustomTargetingKey(); + + /** + * + * + *
+   * Required. Immutable. The resource name of the `CustomTargetingKey`.
+   * Format:
+   * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+   * 
+ * + * + * string custom_targeting_key = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for customTargetingKey. + */ + com.google.protobuf.ByteString getCustomTargetingKeyBytes(); + /** * * diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueServiceProto.java index 1391c2e8f96c..f0f1d21449cd 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueServiceProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueServiceProto.java @@ -57,10 +57,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "proto\032\037google/api/field_behavior.proto\032\031google/api/resource.proto\"e\n" + "\036GetCustomTargetingValueRequest\022C\n" + "\004name\030\001 \001(\tB5\340A\002\372A/\n" - + "-admanager.googleapis.com/CustomTargetingValue\"\327\001\n" - + " ListCustomTargetingValuesRequest\022C\n" - + "\006parent\030\001 \001(\tB3\340A\002\372A-\n" - + "+admanager.googleapis.com/CustomTargetingKey\022\026\n" + + "-admanager.googleapis.com/CustomTargetingValue\"\314\001\n" + + " ListCustomTargetingValuesRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\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\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" @@ -70,23 +70,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027custom_targeting_values\030\001" + " \003(\0132-.google.ads.admanager.v1.CustomTargetingValue\022\027\n" + "\017next_page_token\030\002 \001(\t\022\022\n\n" - + "total_size\030\003 \001(\0052\375\003\n" - + "\033CustomTargetingValueService\022\325\001\n" - + "\027GetCustomTargetingValue\0227.google.ads.admanager.v1.GetC" - + "ustomTargetingValueRequest\032-.google.ads." - + "admanager.v1.CustomTargetingValue\"R\332A\004na" - + "me\202\323\344\223\002E\022C/v1/{name=networks/*/customTar" - + "getingKeys/*/customTargetingValues/*}\022\350\001\n" - + "\031ListCustomTargetingValues\0229.google.ads.admanager.v1.ListCustomTargetingValuesR" - + "equest\032:.google.ads.admanager.v1.ListCus" - + "tomTargetingValuesResponse\"T\332A\006parent\202\323\344" - + "\223\002E\022C/v1/{parent=networks/*/customTarget" - + "ingKeys/*}/customTargetingValues\032\033\312A\030admanager.googleapis.comB\324\001\n" - + "\033com.google.ads.admanager.v1B CustomTargetingValueServi" - + "ceProtoP\001Z@google.golang.org/genproto/go" - + "ogleapis/ads/admanager/v1;admanager\252\002\027Go" - + "ogle.Ads.AdManager.V1\312\002\027Google\\Ads\\AdMan" - + "ager\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" + + "total_size\030\003 \001(\0052\215\005\n" + + "\033CustomTargetingValueService\022\207\002\n" + + "\027GetCustomTargetingValue\0227.google.ads.admanager.v1.GetCustomTarget" + + "ingValueRequest\032-.google.ads.admanager.v" + + "1.CustomTargetingValue\"\203\001\332A\004name\202\323\344\223\002v\022-" + + "/v1/{name=networks/*/customTargetingValu" + + "es/*}ZE\022C/v1/{name=networks/*/customTargetingKeys/*/customTargetingValues/*}\022\232\002\n" + + "\031ListCustomTargetingValues\0229.google.ads.admanager.v1.ListCustomTargetingValuesRe" + + "quest\032:.google.ads.admanager.v1.ListCust" + + "omTargetingValuesResponse\"\205\001\332A\006parent\202\323\344" + + "\223\002v\022-/v1/{parent=networks/*}/customTarge" + + "tingValuesZE\022C/v1/{parent=networks/*/customTargetingKeys/*}/customTargetingValue" + + "s\032G\312A\030admanager.googleapis.com\322A)https://www.googleapis.com/auth/admanagerB\324\001\n" + + "\033com.google.ads.admanager.v1B CustomTarget" + + "ingValueServiceProtoP\001Z@google.golang.org/genproto/googleapis/ads/admanager/v1;a" + + "dmanager\252\002\027Google.Ads.AdManager.V1\312\002\027Goo" + + "gle\\Ads\\AdManager\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -128,6 +128,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.AnnotationsProto.http); registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DataSegmentTargeting.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DataSegmentTargeting.java new file mode 100644 index 000000000000..8e7b3f1d84be --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DataSegmentTargeting.java @@ -0,0 +1,544 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Data Segment Targeting
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.DataSegmentTargeting} + */ +public final class DataSegmentTargeting extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.DataSegmentTargeting) + DataSegmentTargetingOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DataSegmentTargeting.newBuilder() to construct. + private DataSegmentTargeting(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DataSegmentTargeting() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DataSegmentTargeting(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_DataSegmentTargeting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_DataSegmentTargeting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.DataSegmentTargeting.class, + com.google.ads.admanager.v1.DataSegmentTargeting.Builder.class); + } + + public static final int HAS_DATA_SEGMENT_TARGETING_FIELD_NUMBER = 2; + private boolean hasDataSegmentTargeting_ = false; + + /** + * + * + *
+   * Output only. Whether any data segments are currently targeted.
+   * 
+ * + * bool has_data_segment_targeting = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The hasDataSegmentTargeting. + */ + @java.lang.Override + public boolean getHasDataSegmentTargeting() { + return hasDataSegmentTargeting_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (hasDataSegmentTargeting_ != false) { + output.writeBool(2, hasDataSegmentTargeting_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (hasDataSegmentTargeting_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, hasDataSegmentTargeting_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.admanager.v1.DataSegmentTargeting)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.DataSegmentTargeting other = + (com.google.ads.admanager.v1.DataSegmentTargeting) obj; + + if (getHasDataSegmentTargeting() != other.getHasDataSegmentTargeting()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + HAS_DATA_SEGMENT_TARGETING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHasDataSegmentTargeting()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.DataSegmentTargeting parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.DataSegmentTargeting 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.admanager.v1.DataSegmentTargeting parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.DataSegmentTargeting parseFrom( + 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.admanager.v1.DataSegmentTargeting parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.DataSegmentTargeting parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.DataSegmentTargeting parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.DataSegmentTargeting parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.DataSegmentTargeting parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.DataSegmentTargeting parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.DataSegmentTargeting parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.DataSegmentTargeting parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.DataSegmentTargeting prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Data Segment Targeting
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.DataSegmentTargeting} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.DataSegmentTargeting) + com.google.ads.admanager.v1.DataSegmentTargetingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_DataSegmentTargeting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_DataSegmentTargeting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.DataSegmentTargeting.class, + com.google.ads.admanager.v1.DataSegmentTargeting.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.DataSegmentTargeting.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + hasDataSegmentTargeting_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_DataSegmentTargeting_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.DataSegmentTargeting getDefaultInstanceForType() { + return com.google.ads.admanager.v1.DataSegmentTargeting.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.DataSegmentTargeting build() { + com.google.ads.admanager.v1.DataSegmentTargeting result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.DataSegmentTargeting buildPartial() { + com.google.ads.admanager.v1.DataSegmentTargeting result = + new com.google.ads.admanager.v1.DataSegmentTargeting(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.DataSegmentTargeting result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.hasDataSegmentTargeting_ = hasDataSegmentTargeting_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.DataSegmentTargeting) { + return mergeFrom((com.google.ads.admanager.v1.DataSegmentTargeting) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.DataSegmentTargeting other) { + if (other == com.google.ads.admanager.v1.DataSegmentTargeting.getDefaultInstance()) + return this; + if (other.getHasDataSegmentTargeting() != false) { + setHasDataSegmentTargeting(other.getHasDataSegmentTargeting()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 16: + { + hasDataSegmentTargeting_ = input.readBool(); + bitField0_ |= 0x00000001; + 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 boolean hasDataSegmentTargeting_; + + /** + * + * + *
+     * Output only. Whether any data segments are currently targeted.
+     * 
+ * + * bool has_data_segment_targeting = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The hasDataSegmentTargeting. + */ + @java.lang.Override + public boolean getHasDataSegmentTargeting() { + return hasDataSegmentTargeting_; + } + + /** + * + * + *
+     * Output only. Whether any data segments are currently targeted.
+     * 
+ * + * bool has_data_segment_targeting = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The hasDataSegmentTargeting to set. + * @return This builder for chaining. + */ + public Builder setHasDataSegmentTargeting(boolean value) { + + hasDataSegmentTargeting_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Whether any data segments are currently targeted.
+     * 
+ * + * bool has_data_segment_targeting = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearHasDataSegmentTargeting() { + bitField0_ = (bitField0_ & ~0x00000001); + hasDataSegmentTargeting_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.DataSegmentTargeting) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.DataSegmentTargeting) + private static final com.google.ads.admanager.v1.DataSegmentTargeting DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.DataSegmentTargeting(); + } + + public static com.google.ads.admanager.v1.DataSegmentTargeting getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataSegmentTargeting parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.DataSegmentTargeting getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DataSegmentTargetingOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DataSegmentTargetingOrBuilder.java new file mode 100644 index 000000000000..7d809db325e0 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DataSegmentTargetingOrBuilder.java @@ -0,0 +1,39 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface DataSegmentTargetingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.DataSegmentTargeting) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Whether any data segments are currently targeted.
+   * 
+ * + * bool has_data_segment_targeting = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The hasDataSegmentTargeting. + */ + boolean getHasDataSegmentTargeting(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DealBuyerPermissionTypeEnum.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DealBuyerPermissionTypeEnum.java new file mode 100644 index 000000000000..3298016b4eb2 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DealBuyerPermissionTypeEnum.java @@ -0,0 +1,602 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/deal_buyer_permission_type_enum.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Wrapper message for
+ * [DealBuyerPermissionType][google.ads.admanager.v1.DealBuyerPermissionTypeEnum.DealBuyerPermissionType].
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.DealBuyerPermissionTypeEnum} + */ +public final class DealBuyerPermissionTypeEnum extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.DealBuyerPermissionTypeEnum) + DealBuyerPermissionTypeEnumOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DealBuyerPermissionTypeEnum.newBuilder() to construct. + private DealBuyerPermissionTypeEnum(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DealBuyerPermissionTypeEnum() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DealBuyerPermissionTypeEnum(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.DealBuyerPermissionTypeEnumProto + .internal_static_google_ads_admanager_v1_DealBuyerPermissionTypeEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.DealBuyerPermissionTypeEnumProto + .internal_static_google_ads_admanager_v1_DealBuyerPermissionTypeEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.DealBuyerPermissionTypeEnum.class, + com.google.ads.admanager.v1.DealBuyerPermissionTypeEnum.Builder.class); + } + + /** + * + * + *
+   * Defines how a deal would transact among all buyers under the same bidder.
+   * 
+ * + * Protobuf enum {@code + * google.ads.admanager.v1.DealBuyerPermissionTypeEnum.DealBuyerPermissionType} + */ + public enum DealBuyerPermissionType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * No value specified.
+     * 
+ * + * DEAL_BUYER_PERMISSION_TYPE_UNSPECIFIED = 0; + */ + DEAL_BUYER_PERMISSION_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * The deal only transacts with the buyer specified.
+     * 
+ * + * NEGOTIATOR_ONLY = 1; + */ + NEGOTIATOR_ONLY(1), + /** + * + * + *
+     * The deal transacts with all buyers under the same bidder.
+     * 
+ * + * BIDDER = 2; + */ + BIDDER(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * No value specified.
+     * 
+ * + * DEAL_BUYER_PERMISSION_TYPE_UNSPECIFIED = 0; + */ + public static final int DEAL_BUYER_PERMISSION_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The deal only transacts with the buyer specified.
+     * 
+ * + * NEGOTIATOR_ONLY = 1; + */ + public static final int NEGOTIATOR_ONLY_VALUE = 1; + + /** + * + * + *
+     * The deal transacts with all buyers under the same bidder.
+     * 
+ * + * BIDDER = 2; + */ + public static final int BIDDER_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 DealBuyerPermissionType 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 DealBuyerPermissionType forNumber(int value) { + switch (value) { + case 0: + return DEAL_BUYER_PERMISSION_TYPE_UNSPECIFIED; + case 1: + return NEGOTIATOR_ONLY; + case 2: + return BIDDER; + 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 DealBuyerPermissionType findValueByNumber(int number) { + return DealBuyerPermissionType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.admanager.v1.DealBuyerPermissionTypeEnum.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final DealBuyerPermissionType[] VALUES = values(); + + public static DealBuyerPermissionType 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 DealBuyerPermissionType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.admanager.v1.DealBuyerPermissionTypeEnum.DealBuyerPermissionType) + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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.admanager.v1.DealBuyerPermissionTypeEnum)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.DealBuyerPermissionTypeEnum other = + (com.google.ads.admanager.v1.DealBuyerPermissionTypeEnum) 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.admanager.v1.DealBuyerPermissionTypeEnum parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.DealBuyerPermissionTypeEnum 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.admanager.v1.DealBuyerPermissionTypeEnum parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.DealBuyerPermissionTypeEnum parseFrom( + 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.admanager.v1.DealBuyerPermissionTypeEnum parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.DealBuyerPermissionTypeEnum parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.DealBuyerPermissionTypeEnum parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.DealBuyerPermissionTypeEnum parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.DealBuyerPermissionTypeEnum parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.DealBuyerPermissionTypeEnum parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.DealBuyerPermissionTypeEnum parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.DealBuyerPermissionTypeEnum parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.DealBuyerPermissionTypeEnum prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Wrapper message for
+   * [DealBuyerPermissionType][google.ads.admanager.v1.DealBuyerPermissionTypeEnum.DealBuyerPermissionType].
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.DealBuyerPermissionTypeEnum} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.DealBuyerPermissionTypeEnum) + com.google.ads.admanager.v1.DealBuyerPermissionTypeEnumOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.DealBuyerPermissionTypeEnumProto + .internal_static_google_ads_admanager_v1_DealBuyerPermissionTypeEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.DealBuyerPermissionTypeEnumProto + .internal_static_google_ads_admanager_v1_DealBuyerPermissionTypeEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.DealBuyerPermissionTypeEnum.class, + com.google.ads.admanager.v1.DealBuyerPermissionTypeEnum.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.DealBuyerPermissionTypeEnum.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.DealBuyerPermissionTypeEnumProto + .internal_static_google_ads_admanager_v1_DealBuyerPermissionTypeEnum_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.DealBuyerPermissionTypeEnum getDefaultInstanceForType() { + return com.google.ads.admanager.v1.DealBuyerPermissionTypeEnum.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.DealBuyerPermissionTypeEnum build() { + com.google.ads.admanager.v1.DealBuyerPermissionTypeEnum result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.DealBuyerPermissionTypeEnum buildPartial() { + com.google.ads.admanager.v1.DealBuyerPermissionTypeEnum result = + new com.google.ads.admanager.v1.DealBuyerPermissionTypeEnum(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.DealBuyerPermissionTypeEnum) { + return mergeFrom((com.google.ads.admanager.v1.DealBuyerPermissionTypeEnum) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.DealBuyerPermissionTypeEnum other) { + if (other == com.google.ads.admanager.v1.DealBuyerPermissionTypeEnum.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.DealBuyerPermissionTypeEnum) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.DealBuyerPermissionTypeEnum) + private static final com.google.ads.admanager.v1.DealBuyerPermissionTypeEnum DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.DealBuyerPermissionTypeEnum(); + } + + public static com.google.ads.admanager.v1.DealBuyerPermissionTypeEnum getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DealBuyerPermissionTypeEnum parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.DealBuyerPermissionTypeEnum getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DealBuyerPermissionTypeEnumOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DealBuyerPermissionTypeEnumOrBuilder.java new file mode 100644 index 000000000000..dd1a38b69bc4 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DealBuyerPermissionTypeEnumOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/deal_buyer_permission_type_enum.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface DealBuyerPermissionTypeEnumOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.DealBuyerPermissionTypeEnum) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DealBuyerPermissionTypeEnumProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DealBuyerPermissionTypeEnumProto.java new file mode 100644 index 000000000000..ca30893988af --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DealBuyerPermissionTypeEnumProto.java @@ -0,0 +1,69 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/deal_buyer_permission_type_enum.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class DealBuyerPermissionTypeEnumProto { + private DealBuyerPermissionTypeEnumProto() {} + + 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_ads_admanager_v1_DealBuyerPermissionTypeEnum_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_DealBuyerPermissionTypeEnum_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/ads/admanager/v1/deal_buyer_per" + + "mission_type_enum.proto\022\027google.ads.adma" + + "nager.v1\"\205\001\n\033DealBuyerPermissionTypeEnum" + + "\"f\n\027DealBuyerPermissionType\022*\n&DEAL_BUYE" + + "R_PERMISSION_TYPE_UNSPECIFIED\020\000\022\023\n\017NEGOT" + + "IATOR_ONLY\020\001\022\n\n\006BIDDER\020\002B\324\001\n\033com.google." + + "ads.admanager.v1B DealBuyerPermissionTyp" + + "eEnumProtoP\001Z@google.golang.org/genproto" + + "/googleapis/ads/admanager/v1;admanager\252\002" + + "\027Google.Ads.AdManager.V1\312\002\027Google\\Ads\\Ad" + + "Manager\\V1\352\002\032Google::Ads::AdManager::V1b" + + "\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_ads_admanager_v1_DealBuyerPermissionTypeEnum_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_DealBuyerPermissionTypeEnum_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_DealBuyerPermissionTypeEnum_descriptor, + new java.lang.String[] {}); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeleteAdBreakRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeleteAdBreakRequest.java new file mode 100644 index 000000000000..1688e1f420fb --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeleteAdBreakRequest.java @@ -0,0 +1,669 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/ad_break_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Request object for `DeleteAdBreak` method.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.DeleteAdBreakRequest} + */ +public final class DeleteAdBreakRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.DeleteAdBreakRequest) + DeleteAdBreakRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DeleteAdBreakRequest.newBuilder() to construct. + private DeleteAdBreakRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteAdBreakRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteAdBreakRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdBreakServiceProto + .internal_static_google_ads_admanager_v1_DeleteAdBreakRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdBreakServiceProto + .internal_static_google_ads_admanager_v1_DeleteAdBreakRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.DeleteAdBreakRequest.class, + com.google.ads.admanager.v1.DeleteAdBreakRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The name of the ad break to delete.
+   *
+   * Format:
+   * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break}`
+   * 
+ * + * + * 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 ad break to delete.
+   *
+   * Format:
+   * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.ads.admanager.v1.DeleteAdBreakRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.DeleteAdBreakRequest other = + (com.google.ads.admanager.v1.DeleteAdBreakRequest) 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.ads.admanager.v1.DeleteAdBreakRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.DeleteAdBreakRequest 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.admanager.v1.DeleteAdBreakRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.DeleteAdBreakRequest parseFrom( + 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.admanager.v1.DeleteAdBreakRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.DeleteAdBreakRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.DeleteAdBreakRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.DeleteAdBreakRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.DeleteAdBreakRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.DeleteAdBreakRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.DeleteAdBreakRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.DeleteAdBreakRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.DeleteAdBreakRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request object for `DeleteAdBreak` method.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.DeleteAdBreakRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.DeleteAdBreakRequest) + com.google.ads.admanager.v1.DeleteAdBreakRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdBreakServiceProto + .internal_static_google_ads_admanager_v1_DeleteAdBreakRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdBreakServiceProto + .internal_static_google_ads_admanager_v1_DeleteAdBreakRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.DeleteAdBreakRequest.class, + com.google.ads.admanager.v1.DeleteAdBreakRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.DeleteAdBreakRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.AdBreakServiceProto + .internal_static_google_ads_admanager_v1_DeleteAdBreakRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.DeleteAdBreakRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.DeleteAdBreakRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.DeleteAdBreakRequest build() { + com.google.ads.admanager.v1.DeleteAdBreakRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.DeleteAdBreakRequest buildPartial() { + com.google.ads.admanager.v1.DeleteAdBreakRequest result = + new com.google.ads.admanager.v1.DeleteAdBreakRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.DeleteAdBreakRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.DeleteAdBreakRequest) { + return mergeFrom((com.google.ads.admanager.v1.DeleteAdBreakRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.DeleteAdBreakRequest other) { + if (other == com.google.ads.admanager.v1.DeleteAdBreakRequest.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 ad break to delete.
+     *
+     * Format:
+     * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break}`
+     * 
+ * + * + * 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 ad break to delete.
+     *
+     * Format:
+     * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break}`
+     * 
+ * + * + * 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 ad break to delete.
+     *
+     * Format:
+     * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break}`
+     * 
+ * + * + * 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 ad break to delete.
+     *
+     * Format:
+     * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break}`
+     * 
+ * + * + * 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 ad break to delete.
+     *
+     * Format:
+     * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.DeleteAdBreakRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.DeleteAdBreakRequest) + private static final com.google.ads.admanager.v1.DeleteAdBreakRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.DeleteAdBreakRequest(); + } + + public static com.google.ads.admanager.v1.DeleteAdBreakRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAdBreakRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.DeleteAdBreakRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeleteAdBreakRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeleteAdBreakRequestOrBuilder.java new file mode 100644 index 000000000000..5d0d4c1323d0 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeleteAdBreakRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/ad_break_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface DeleteAdBreakRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.DeleteAdBreakRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the ad break to delete.
+   *
+   * Format:
+   * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The name of the ad break to delete.
+   *
+   * Format:
+   * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break}`
+   * 
+ * + * + * 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-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceCategory.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceCategory.java new file mode 100644 index 000000000000..2e373d6c6dfb --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceCategory.java @@ -0,0 +1,869 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/device_category_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Represents the category of a device. For example, "smartphone" or "desktop".
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.DeviceCategory} + */ +public final class DeviceCategory extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.DeviceCategory) + DeviceCategoryOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DeviceCategory.newBuilder() to construct. + private DeviceCategory(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeviceCategory() { + name_ = ""; + displayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeviceCategory(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.DeviceCategoryMessagesProto + .internal_static_google_ads_admanager_v1_DeviceCategory_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.DeviceCategoryMessagesProto + .internal_static_google_ads_admanager_v1_DeviceCategory_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.DeviceCategory.class, + com.google.ads.admanager.v1.DeviceCategory.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 `DeviceCategory`.
+   * Format: `networks/{network_code}/deviceCategories/{device_category}`
+   * 
+ * + * 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 `DeviceCategory`.
+   * Format: `networks/{network_code}/deviceCategories/{device_category}`
+   * 
+ * + * 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 DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
+   * Output only. The display name of the device category.
+   * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the displayName field is set. + */ + @java.lang.Override + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. The display name of the device category.
+   * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+   * Output only. The display name of the device category.
+   * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.admanager.v1.DeviceCategory)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.DeviceCategory other = + (com.google.ads.admanager.v1.DeviceCategory) obj; + + if (!getName().equals(other.getName())) return false; + if (hasDisplayName() != other.hasDisplayName()) return false; + if (hasDisplayName()) { + if (!getDisplayName().equals(other.getDisplayName())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasDisplayName()) { + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.DeviceCategory parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.DeviceCategory 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.admanager.v1.DeviceCategory parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.DeviceCategory parseFrom( + 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.admanager.v1.DeviceCategory parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.DeviceCategory parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.DeviceCategory parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.DeviceCategory parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.DeviceCategory parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.DeviceCategory parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.DeviceCategory parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.DeviceCategory parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.DeviceCategory prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Represents the category of a device. For example, "smartphone" or "desktop".
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.DeviceCategory} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.DeviceCategory) + com.google.ads.admanager.v1.DeviceCategoryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.DeviceCategoryMessagesProto + .internal_static_google_ads_admanager_v1_DeviceCategory_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.DeviceCategoryMessagesProto + .internal_static_google_ads_admanager_v1_DeviceCategory_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.DeviceCategory.class, + com.google.ads.admanager.v1.DeviceCategory.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.DeviceCategory.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.DeviceCategoryMessagesProto + .internal_static_google_ads_admanager_v1_DeviceCategory_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.DeviceCategory getDefaultInstanceForType() { + return com.google.ads.admanager.v1.DeviceCategory.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.DeviceCategory build() { + com.google.ads.admanager.v1.DeviceCategory result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.DeviceCategory buildPartial() { + com.google.ads.admanager.v1.DeviceCategory result = + new com.google.ads.admanager.v1.DeviceCategory(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.DeviceCategory result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.DeviceCategory) { + return mergeFrom((com.google.ads.admanager.v1.DeviceCategory) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.DeviceCategory other) { + if (other == com.google.ads.admanager.v1.DeviceCategory.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDisplayName()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Identifier. The resource name of the `DeviceCategory`.
+     * Format: `networks/{network_code}/deviceCategories/{device_category}`
+     * 
+ * + * 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 `DeviceCategory`.
+     * Format: `networks/{network_code}/deviceCategories/{device_category}`
+     * 
+ * + * 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 `DeviceCategory`.
+     * Format: `networks/{network_code}/deviceCategories/{device_category}`
+     * 
+ * + * 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 `DeviceCategory`.
+     * Format: `networks/{network_code}/deviceCategories/{device_category}`
+     * 
+ * + * 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 `DeviceCategory`.
+     * Format: `networks/{network_code}/deviceCategories/{device_category}`
+     * 
+ * + * 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 displayName_ = ""; + + /** + * + * + *
+     * Output only. The display name of the device category.
+     * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the displayName field is set. + */ + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. The display name of the device category.
+     * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. The display name of the device category.
+     * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. The display name of the device category.
+     * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The display name of the device category.
+     * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The display name of the device category.
+     * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.DeviceCategory) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.DeviceCategory) + private static final com.google.ads.admanager.v1.DeviceCategory DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.DeviceCategory(); + } + + public static com.google.ads.admanager.v1.DeviceCategory getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeviceCategory parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.DeviceCategory getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceCategoryMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceCategoryMessagesProto.java new file mode 100644 index 000000000000..767b19ab80ea --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceCategoryMessagesProto.java @@ -0,0 +1,86 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/device_category_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class DeviceCategoryMessagesProto { + private DeviceCategoryMessagesProto() {} + + 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_ads_admanager_v1_DeviceCategory_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_DeviceCategory_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" + + "6google/ads/admanager/v1/device_category_messages.proto\022\027google.ads.admanager.v" + + "1\032\037google/api/field_behavior.proto\032\031google/api/resource.proto\"\342\001\n" + + "\016DeviceCategory\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\036\n" + + "\014display_name\030\002 \001(" + + "\tB\003\340A\003H\000\210\001\001:\213\001\352A\207\001\n" + + "\'admanager.googleapis.com/DeviceCategory\022:networks/{network_c" + + "ode}/deviceCategories/{device_category}*\020deviceCategories2\016deviceCategoryB\017\n\r" + + "_display_nameB\317\001\n" + + "\033com.google.ads.admanager.v1B\033DeviceCategoryMessagesProtoP\001Z@googl" + + "e.golang.org/genproto/googleapis/ads/adm" + + "anager/v1;admanager\252\002\027Google.Ads.AdManag" + + "er.V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032Google" + + "::Ads::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_ads_admanager_v1_DeviceCategory_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_DeviceCategory_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_DeviceCategory_descriptor, + new java.lang.String[] { + "Name", "DisplayName", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceCategoryName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceCategoryName.java new file mode 100644 index 000000000000..f7576f6fffbf --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceCategoryName.java @@ -0,0 +1,198 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class DeviceCategoryName implements ResourceName { + private static final PathTemplate NETWORK_CODE_DEVICE_CATEGORY = + PathTemplate.createWithoutUrlEncoding( + "networks/{network_code}/deviceCategories/{device_category}"); + private volatile Map fieldValuesMap; + private final String networkCode; + private final String deviceCategory; + + @Deprecated + protected DeviceCategoryName() { + networkCode = null; + deviceCategory = null; + } + + private DeviceCategoryName(Builder builder) { + networkCode = Preconditions.checkNotNull(builder.getNetworkCode()); + deviceCategory = Preconditions.checkNotNull(builder.getDeviceCategory()); + } + + public String getNetworkCode() { + return networkCode; + } + + public String getDeviceCategory() { + return deviceCategory; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static DeviceCategoryName of(String networkCode, String deviceCategory) { + return newBuilder().setNetworkCode(networkCode).setDeviceCategory(deviceCategory).build(); + } + + public static String format(String networkCode, String deviceCategory) { + return newBuilder() + .setNetworkCode(networkCode) + .setDeviceCategory(deviceCategory) + .build() + .toString(); + } + + public static DeviceCategoryName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + NETWORK_CODE_DEVICE_CATEGORY.validatedMatch( + formattedString, "DeviceCategoryName.parse: formattedString not in valid format"); + return of(matchMap.get("network_code"), matchMap.get("device_category")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (DeviceCategoryName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return NETWORK_CODE_DEVICE_CATEGORY.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (networkCode != null) { + fieldMapBuilder.put("network_code", networkCode); + } + if (deviceCategory != null) { + fieldMapBuilder.put("device_category", deviceCategory); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return NETWORK_CODE_DEVICE_CATEGORY.instantiate( + "network_code", networkCode, "device_category", deviceCategory); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + DeviceCategoryName that = ((DeviceCategoryName) o); + return Objects.equals(this.networkCode, that.networkCode) + && Objects.equals(this.deviceCategory, that.deviceCategory); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(networkCode); + h *= 1000003; + h ^= Objects.hashCode(deviceCategory); + return h; + } + + /** Builder for networks/{network_code}/deviceCategories/{device_category}. */ + public static class Builder { + private String networkCode; + private String deviceCategory; + + protected Builder() {} + + public String getNetworkCode() { + return networkCode; + } + + public String getDeviceCategory() { + return deviceCategory; + } + + public Builder setNetworkCode(String networkCode) { + this.networkCode = networkCode; + return this; + } + + public Builder setDeviceCategory(String deviceCategory) { + this.deviceCategory = deviceCategory; + return this; + } + + private Builder(DeviceCategoryName deviceCategoryName) { + this.networkCode = deviceCategoryName.networkCode; + this.deviceCategory = deviceCategoryName.deviceCategory; + } + + public DeviceCategoryName build() { + return new DeviceCategoryName(this); + } + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceCategoryOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceCategoryOrBuilder.java new file mode 100644 index 000000000000..27bee58185c4 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceCategoryOrBuilder.java @@ -0,0 +1,93 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/device_category_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface DeviceCategoryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.DeviceCategory) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. The resource name of the `DeviceCategory`.
+   * Format: `networks/{network_code}/deviceCategories/{device_category}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. The resource name of the `DeviceCategory`.
+   * Format: `networks/{network_code}/deviceCategories/{device_category}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. The display name of the device category.
+   * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the displayName field is set. + */ + boolean hasDisplayName(); + + /** + * + * + *
+   * Output only. The display name of the device category.
+   * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+   * Output only. The display name of the device category.
+   * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceCategoryServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceCategoryServiceProto.java new file mode 100644 index 000000000000..505af1547a4b --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceCategoryServiceProto.java @@ -0,0 +1,141 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/device_category_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class DeviceCategoryServiceProto { + private DeviceCategoryServiceProto() {} + + 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_ads_admanager_v1_GetDeviceCategoryRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_GetDeviceCategoryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListDeviceCategoriesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListDeviceCategoriesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListDeviceCategoriesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListDeviceCategoriesResponse_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" + + "5google/ads/admanager/v1/device_category_service.proto\022\027google.ads.admanager.v1" + + "\0326google/ads/admanager/v1/device_categor" + + "y_messages.proto\032\034google/api/annotations" + + ".proto\032\027google/api/client.proto\032\037google/" + + "api/field_behavior.proto\032\031google/api/resource.proto\"Y\n" + + "\030GetDeviceCategoryRequest\022=\n" + + "\004name\030\001 \001(\tB/\340A\002\372A)\n" + + "\'admanager.googleapis.com/DeviceCategory\"\307\001\n" + + "\033ListDeviceCategoriesRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\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\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\022\021\n" + + "\004skip\030\006 \001(\005B\003\340A\001\"\217\001\n" + + "\034ListDeviceCategoriesResponse\022B\n" + + "\021device_categories\030\001" + + " \003(\0132\'.google.ads.admanager.v1.DeviceCategory\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\022\n\n" + + "total_size\030\003 \001(\0052\314\003\n" + + "\025DeviceCategoryService\022\250\001\n" + + "\021GetDeviceCategory\0221.google.ads.admanage" + + "r.v1.GetDeviceCategoryRequest\032\'.google.a" + + "ds.admanager.v1.DeviceCategory\"7\332A\004name\202" + + "\323\344\223\002*\022(/v1/{name=networks/*/deviceCategories/*}\022\276\001\n" + + "\024ListDeviceCategories\0224.google.ads.admanager.v1.ListDeviceCategoriesR" + + "equest\0325.google.ads.admanager.v1.ListDev" + + "iceCategoriesResponse\"9\332A\006parent\202\323\344\223\002*\022(" + + "/v1/{parent=networks/*}/deviceCategories" + + "\032G\312A\030admanager.googleapis.com\322A)https://www.googleapis.com/auth/admanagerB\316\001\n" + + "\033com.google.ads.admanager.v1B\032DeviceCategor" + + "yServiceProtoP\001Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanage" + + "r\252\002\027Google.Ads.AdManager.V1\312\002\027Google\\Ads" + + "\\AdManager\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.admanager.v1.DeviceCategoryMessagesProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_ads_admanager_v1_GetDeviceCategoryRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_GetDeviceCategoryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_GetDeviceCategoryRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_ads_admanager_v1_ListDeviceCategoriesRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_ads_admanager_v1_ListDeviceCategoriesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListDeviceCategoriesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", "Skip", + }); + internal_static_google_ads_admanager_v1_ListDeviceCategoriesResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_ads_admanager_v1_ListDeviceCategoriesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListDeviceCategoriesResponse_descriptor, + new java.lang.String[] { + "DeviceCategories", "NextPageToken", "TotalSize", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.ads.admanager.v1.DeviceCategoryMessagesProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceCategoryTargeting.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceCategoryTargeting.java new file mode 100644 index 000000000000..c2055ed1e85a --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceCategoryTargeting.java @@ -0,0 +1,1090 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Represents a list of targeted and excluded device categories.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.DeviceCategoryTargeting} + */ +public final class DeviceCategoryTargeting extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.DeviceCategoryTargeting) + DeviceCategoryTargetingOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DeviceCategoryTargeting.newBuilder() to construct. + private DeviceCategoryTargeting(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeviceCategoryTargeting() { + targetedCategories_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludedCategories_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeviceCategoryTargeting(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_DeviceCategoryTargeting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_DeviceCategoryTargeting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.DeviceCategoryTargeting.class, + com.google.ads.admanager.v1.DeviceCategoryTargeting.Builder.class); + } + + public static final int TARGETED_CATEGORIES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList targetedCategories_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. A list of device category resource names that should be
+   * targeted/included.
+   * 
+ * + * + * repeated string targeted_categories = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetedCategories. + */ + public com.google.protobuf.ProtocolStringList getTargetedCategoriesList() { + return targetedCategories_; + } + + /** + * + * + *
+   * Optional. A list of device category resource names that should be
+   * targeted/included.
+   * 
+ * + * + * repeated string targeted_categories = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetedCategories. + */ + public int getTargetedCategoriesCount() { + return targetedCategories_.size(); + } + + /** + * + * + *
+   * Optional. A list of device category resource names that should be
+   * targeted/included.
+   * 
+ * + * + * repeated string targeted_categories = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetedCategories at the given index. + */ + public java.lang.String getTargetedCategories(int index) { + return targetedCategories_.get(index); + } + + /** + * + * + *
+   * Optional. A list of device category resource names that should be
+   * targeted/included.
+   * 
+ * + * + * repeated string targeted_categories = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetedCategories at the given index. + */ + public com.google.protobuf.ByteString getTargetedCategoriesBytes(int index) { + return targetedCategories_.getByteString(index); + } + + public static final int EXCLUDED_CATEGORIES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList excludedCategories_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. A list of device category resource names that should be excluded.
+   * 
+ * + * + * repeated string excluded_categories = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the excludedCategories. + */ + public com.google.protobuf.ProtocolStringList getExcludedCategoriesList() { + return excludedCategories_; + } + + /** + * + * + *
+   * Optional. A list of device category resource names that should be excluded.
+   * 
+ * + * + * repeated string excluded_categories = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of excludedCategories. + */ + public int getExcludedCategoriesCount() { + return excludedCategories_.size(); + } + + /** + * + * + *
+   * Optional. A list of device category resource names that should be excluded.
+   * 
+ * + * + * repeated string excluded_categories = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The excludedCategories at the given index. + */ + public java.lang.String getExcludedCategories(int index) { + return excludedCategories_.get(index); + } + + /** + * + * + *
+   * Optional. A list of device category resource names that should be excluded.
+   * 
+ * + * + * repeated string excluded_categories = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedCategories at the given index. + */ + public com.google.protobuf.ByteString getExcludedCategoriesBytes(int index) { + return excludedCategories_.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 < targetedCategories_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, targetedCategories_.getRaw(i)); + } + for (int i = 0; i < excludedCategories_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, excludedCategories_.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 < targetedCategories_.size(); i++) { + dataSize += computeStringSizeNoTag(targetedCategories_.getRaw(i)); + } + size += dataSize; + size += 1 * getTargetedCategoriesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < excludedCategories_.size(); i++) { + dataSize += computeStringSizeNoTag(excludedCategories_.getRaw(i)); + } + size += dataSize; + size += 1 * getExcludedCategoriesList().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.admanager.v1.DeviceCategoryTargeting)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.DeviceCategoryTargeting other = + (com.google.ads.admanager.v1.DeviceCategoryTargeting) obj; + + if (!getTargetedCategoriesList().equals(other.getTargetedCategoriesList())) return false; + if (!getExcludedCategoriesList().equals(other.getExcludedCategoriesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTargetedCategoriesCount() > 0) { + hash = (37 * hash) + TARGETED_CATEGORIES_FIELD_NUMBER; + hash = (53 * hash) + getTargetedCategoriesList().hashCode(); + } + if (getExcludedCategoriesCount() > 0) { + hash = (37 * hash) + EXCLUDED_CATEGORIES_FIELD_NUMBER; + hash = (53 * hash) + getExcludedCategoriesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.DeviceCategoryTargeting parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.DeviceCategoryTargeting 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.admanager.v1.DeviceCategoryTargeting parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.DeviceCategoryTargeting parseFrom( + 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.admanager.v1.DeviceCategoryTargeting parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.DeviceCategoryTargeting parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.DeviceCategoryTargeting parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.DeviceCategoryTargeting parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.DeviceCategoryTargeting parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.DeviceCategoryTargeting parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.DeviceCategoryTargeting parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.DeviceCategoryTargeting parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.DeviceCategoryTargeting prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Represents a list of targeted and excluded device categories.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.DeviceCategoryTargeting} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.DeviceCategoryTargeting) + com.google.ads.admanager.v1.DeviceCategoryTargetingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_DeviceCategoryTargeting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_DeviceCategoryTargeting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.DeviceCategoryTargeting.class, + com.google.ads.admanager.v1.DeviceCategoryTargeting.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.DeviceCategoryTargeting.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + targetedCategories_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludedCategories_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_DeviceCategoryTargeting_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.DeviceCategoryTargeting getDefaultInstanceForType() { + return com.google.ads.admanager.v1.DeviceCategoryTargeting.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.DeviceCategoryTargeting build() { + com.google.ads.admanager.v1.DeviceCategoryTargeting result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.DeviceCategoryTargeting buildPartial() { + com.google.ads.admanager.v1.DeviceCategoryTargeting result = + new com.google.ads.admanager.v1.DeviceCategoryTargeting(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.DeviceCategoryTargeting result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + targetedCategories_.makeImmutable(); + result.targetedCategories_ = targetedCategories_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + excludedCategories_.makeImmutable(); + result.excludedCategories_ = excludedCategories_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.DeviceCategoryTargeting) { + return mergeFrom((com.google.ads.admanager.v1.DeviceCategoryTargeting) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.DeviceCategoryTargeting other) { + if (other == com.google.ads.admanager.v1.DeviceCategoryTargeting.getDefaultInstance()) + return this; + if (!other.targetedCategories_.isEmpty()) { + if (targetedCategories_.isEmpty()) { + targetedCategories_ = other.targetedCategories_; + bitField0_ |= 0x00000001; + } else { + ensureTargetedCategoriesIsMutable(); + targetedCategories_.addAll(other.targetedCategories_); + } + onChanged(); + } + if (!other.excludedCategories_.isEmpty()) { + if (excludedCategories_.isEmpty()) { + excludedCategories_ = other.excludedCategories_; + bitField0_ |= 0x00000002; + } else { + ensureExcludedCategoriesIsMutable(); + excludedCategories_.addAll(other.excludedCategories_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTargetedCategoriesIsMutable(); + targetedCategories_.add(s); + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureExcludedCategoriesIsMutable(); + excludedCategories_.add(s); + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList targetedCategories_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureTargetedCategoriesIsMutable() { + if (!targetedCategories_.isModifiable()) { + targetedCategories_ = new com.google.protobuf.LazyStringArrayList(targetedCategories_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
+     * Optional. A list of device category resource names that should be
+     * targeted/included.
+     * 
+ * + * + * repeated string targeted_categories = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetedCategories. + */ + public com.google.protobuf.ProtocolStringList getTargetedCategoriesList() { + targetedCategories_.makeImmutable(); + return targetedCategories_; + } + + /** + * + * + *
+     * Optional. A list of device category resource names that should be
+     * targeted/included.
+     * 
+ * + * + * repeated string targeted_categories = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetedCategories. + */ + public int getTargetedCategoriesCount() { + return targetedCategories_.size(); + } + + /** + * + * + *
+     * Optional. A list of device category resource names that should be
+     * targeted/included.
+     * 
+ * + * + * repeated string targeted_categories = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetedCategories at the given index. + */ + public java.lang.String getTargetedCategories(int index) { + return targetedCategories_.get(index); + } + + /** + * + * + *
+     * Optional. A list of device category resource names that should be
+     * targeted/included.
+     * 
+ * + * + * repeated string targeted_categories = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetedCategories at the given index. + */ + public com.google.protobuf.ByteString getTargetedCategoriesBytes(int index) { + return targetedCategories_.getByteString(index); + } + + /** + * + * + *
+     * Optional. A list of device category resource names that should be
+     * targeted/included.
+     * 
+ * + * + * repeated string targeted_categories = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The targetedCategories to set. + * @return This builder for chaining. + */ + public Builder setTargetedCategories(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetedCategoriesIsMutable(); + targetedCategories_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of device category resource names that should be
+     * targeted/included.
+     * 
+ * + * + * repeated string targeted_categories = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The targetedCategories to add. + * @return This builder for chaining. + */ + public Builder addTargetedCategories(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetedCategoriesIsMutable(); + targetedCategories_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of device category resource names that should be
+     * targeted/included.
+     * 
+ * + * + * repeated string targeted_categories = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param values The targetedCategories to add. + * @return This builder for chaining. + */ + public Builder addAllTargetedCategories(java.lang.Iterable values) { + ensureTargetedCategoriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetedCategories_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of device category resource names that should be
+     * targeted/included.
+     * 
+ * + * + * repeated string targeted_categories = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTargetedCategories() { + targetedCategories_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of device category resource names that should be
+     * targeted/included.
+     * 
+ * + * + * repeated string targeted_categories = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the targetedCategories to add. + * @return This builder for chaining. + */ + public Builder addTargetedCategoriesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTargetedCategoriesIsMutable(); + targetedCategories_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList excludedCategories_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureExcludedCategoriesIsMutable() { + if (!excludedCategories_.isModifiable()) { + excludedCategories_ = new com.google.protobuf.LazyStringArrayList(excludedCategories_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
+     * Optional. A list of device category resource names that should be excluded.
+     * 
+ * + * + * repeated string excluded_categories = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the excludedCategories. + */ + public com.google.protobuf.ProtocolStringList getExcludedCategoriesList() { + excludedCategories_.makeImmutable(); + return excludedCategories_; + } + + /** + * + * + *
+     * Optional. A list of device category resource names that should be excluded.
+     * 
+ * + * + * repeated string excluded_categories = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of excludedCategories. + */ + public int getExcludedCategoriesCount() { + return excludedCategories_.size(); + } + + /** + * + * + *
+     * Optional. A list of device category resource names that should be excluded.
+     * 
+ * + * + * repeated string excluded_categories = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The excludedCategories at the given index. + */ + public java.lang.String getExcludedCategories(int index) { + return excludedCategories_.get(index); + } + + /** + * + * + *
+     * Optional. A list of device category resource names that should be excluded.
+     * 
+ * + * + * repeated string excluded_categories = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedCategories at the given index. + */ + public com.google.protobuf.ByteString getExcludedCategoriesBytes(int index) { + return excludedCategories_.getByteString(index); + } + + /** + * + * + *
+     * Optional. A list of device category resource names that should be excluded.
+     * 
+ * + * + * repeated string excluded_categories = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The excludedCategories to set. + * @return This builder for chaining. + */ + public Builder setExcludedCategories(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedCategoriesIsMutable(); + excludedCategories_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of device category resource names that should be excluded.
+     * 
+ * + * + * repeated string excluded_categories = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The excludedCategories to add. + * @return This builder for chaining. + */ + public Builder addExcludedCategories(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedCategoriesIsMutable(); + excludedCategories_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of device category resource names that should be excluded.
+     * 
+ * + * + * repeated string excluded_categories = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param values The excludedCategories to add. + * @return This builder for chaining. + */ + public Builder addAllExcludedCategories(java.lang.Iterable values) { + ensureExcludedCategoriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, excludedCategories_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of device category resource names that should be excluded.
+     * 
+ * + * + * repeated string excluded_categories = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearExcludedCategories() { + excludedCategories_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of device category resource names that should be excluded.
+     * 
+ * + * + * repeated string excluded_categories = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the excludedCategories to add. + * @return This builder for chaining. + */ + public Builder addExcludedCategoriesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureExcludedCategoriesIsMutable(); + excludedCategories_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.DeviceCategoryTargeting) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.DeviceCategoryTargeting) + private static final com.google.ads.admanager.v1.DeviceCategoryTargeting DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.DeviceCategoryTargeting(); + } + + public static com.google.ads.admanager.v1.DeviceCategoryTargeting getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeviceCategoryTargeting parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.DeviceCategoryTargeting getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceCategoryTargetingOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceCategoryTargetingOrBuilder.java new file mode 100644 index 000000000000..7c3d4d5559c1 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceCategoryTargetingOrBuilder.java @@ -0,0 +1,154 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface DeviceCategoryTargetingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.DeviceCategoryTargeting) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. A list of device category resource names that should be
+   * targeted/included.
+   * 
+ * + * + * repeated string targeted_categories = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetedCategories. + */ + java.util.List getTargetedCategoriesList(); + + /** + * + * + *
+   * Optional. A list of device category resource names that should be
+   * targeted/included.
+   * 
+ * + * + * repeated string targeted_categories = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetedCategories. + */ + int getTargetedCategoriesCount(); + + /** + * + * + *
+   * Optional. A list of device category resource names that should be
+   * targeted/included.
+   * 
+ * + * + * repeated string targeted_categories = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetedCategories at the given index. + */ + java.lang.String getTargetedCategories(int index); + + /** + * + * + *
+   * Optional. A list of device category resource names that should be
+   * targeted/included.
+   * 
+ * + * + * repeated string targeted_categories = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetedCategories at the given index. + */ + com.google.protobuf.ByteString getTargetedCategoriesBytes(int index); + + /** + * + * + *
+   * Optional. A list of device category resource names that should be excluded.
+   * 
+ * + * + * repeated string excluded_categories = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the excludedCategories. + */ + java.util.List getExcludedCategoriesList(); + + /** + * + * + *
+   * Optional. A list of device category resource names that should be excluded.
+   * 
+ * + * + * repeated string excluded_categories = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of excludedCategories. + */ + int getExcludedCategoriesCount(); + + /** + * + * + *
+   * Optional. A list of device category resource names that should be excluded.
+   * 
+ * + * + * repeated string excluded_categories = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The excludedCategories at the given index. + */ + java.lang.String getExcludedCategories(int index); + + /** + * + * + *
+   * Optional. A list of device category resource names that should be excluded.
+   * 
+ * + * + * repeated string excluded_categories = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedCategories at the given index. + */ + com.google.protobuf.ByteString getExcludedCategoriesBytes(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyTypeEnumProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/EarlyAdBreakNotificationEnumsProto.java similarity index 58% rename from java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyTypeEnumProto.java rename to java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/EarlyAdBreakNotificationEnumsProto.java index a011c92875a2..2946bd70b96b 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyTypeEnumProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/EarlyAdBreakNotificationEnumsProto.java @@ -14,13 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/admanager/v1/company_type_enum.proto +// source: google/ads/admanager/v1/early_ad_break_notification_enums.proto // Protobuf Java Version: 3.25.8 package com.google.ads.admanager.v1; -public final class CompanyTypeEnumProto { - private CompanyTypeEnumProto() {} +public final class EarlyAdBreakNotificationEnumsProto { + private EarlyAdBreakNotificationEnumsProto() {} public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} @@ -29,9 +29,9 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r } static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_ads_admanager_v1_CompanyTypeEnum_descriptor; + internal_static_google_ads_admanager_v1_AdBreakStateEnum_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_ads_admanager_v1_CompanyTypeEnum_fieldAccessorTable; + internal_static_google_ads_admanager_v1_AdBreakStateEnum_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -41,26 +41,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n/google/ads/admanager/v1/company_type_e" - + "num.proto\022\027google.ads.admanager.v1\"\222\001\n\017C" - + "ompanyTypeEnum\"\177\n\013CompanyType\022\034\n\030COMPANY" - + "_TYPE_UNSPECIFIED\020\000\022\016\n\nADVERTISER\020\001\022\024\n\020H" - + "OUSE_ADVERTISER\020\002\022\n\n\006AGENCY\020\003\022\020\n\014HOUSE_A" - + "GENCY\020\004\022\016\n\nAD_NETWORK\020\005B\310\001\n\033com.google.a" - + "ds.admanager.v1B\024CompanyTypeEnumProtoP\001Z" - + "@google.golang.org/genproto/googleapis/a" - + "ds/admanager/v1;admanager\252\002\027Google.Ads.A" - + "dManager.V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032" - + "Google::Ads::AdManager::V1b\006proto3" + "\n?google/ads/admanager/v1/early_ad_break" + + "_notification_enums.proto\022\027google.ads.ad" + + "manager.v1\"o\n\020AdBreakStateEnum\"[\n\014AdBrea" + + "kState\022\036\n\032AD_BREAK_STATE_UNSPECIFIED\020\000\022\016" + + "\n\nDECISIONED\020\001\022\014\n\010COMPLETE\020\002\022\r\n\tSCHEDULE" + + "D\020\003B\326\001\n\033com.google.ads.admanager.v1B\"Ear" + + "lyAdBreakNotificationEnumsProtoP\001Z@googl" + + "e.golang.org/genproto/googleapis/ads/adm" + + "anager/v1;admanager\252\002\027Google.Ads.AdManag" + + "er.V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032Google" + + "::Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_ads_admanager_v1_CompanyTypeEnum_descriptor = + internal_static_google_ads_admanager_v1_AdBreakStateEnum_descriptor = getDescriptor().getMessageTypes().get(0); - internal_static_google_ads_admanager_v1_CompanyTypeEnum_fieldAccessorTable = + internal_static_google_ads_admanager_v1_AdBreakStateEnum_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_ads_admanager_v1_CompanyTypeEnum_descriptor, + internal_static_google_ads_admanager_v1_AdBreakStateEnum_descriptor, new java.lang.String[] {}); } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/EntitySignalsMapping.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/EntitySignalsMapping.java index 443f6e67dabc..0a15d5cdbbe8 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/EntitySignalsMapping.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/EntitySignalsMapping.java @@ -65,6 +65,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.ads.admanager.v1.EntitySignalsMapping.Builder.class); } + private int bitField0_; private int entityCase_ = 0; @SuppressWarnings("serial") @@ -296,7 +297,27 @@ public com.google.protobuf.ByteString getNameBytes() { * Output only. `EntitySignalsMapping` ID. * * - * int64 entity_signals_mapping_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional int64 entity_signals_mapping_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the entitySignalsMappingId field is set. + */ + @java.lang.Override + public boolean hasEntitySignalsMappingId() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. `EntitySignalsMapping` ID.
+   * 
+ * + * + * optional int64 entity_signals_mapping_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The entitySignalsMappingId. */ @@ -314,11 +335,11 @@ public long getEntitySignalsMappingId() { * * *
-   * Required. The IDs of the categories that are associated with the
+   * Optional. The IDs of the categories that are associated with the
    * referencing entity.
    * 
* - * repeated int64 taxonomy_category_ids = 6 [(.google.api.field_behavior) = REQUIRED]; + * repeated int64 taxonomy_category_ids = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @return A list containing the taxonomyCategoryIds. @@ -332,11 +353,11 @@ public java.util.List getTaxonomyCategoryIdsList() { * * *
-   * Required. The IDs of the categories that are associated with the
+   * Optional. The IDs of the categories that are associated with the
    * referencing entity.
    * 
* - * repeated int64 taxonomy_category_ids = 6 [(.google.api.field_behavior) = REQUIRED]; + * repeated int64 taxonomy_category_ids = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The count of taxonomyCategoryIds. @@ -349,11 +370,11 @@ public int getTaxonomyCategoryIdsCount() { * * *
-   * Required. The IDs of the categories that are associated with the
+   * Optional. The IDs of the categories that are associated with the
    * referencing entity.
    * 
* - * repeated int64 taxonomy_category_ids = 6 [(.google.api.field_behavior) = REQUIRED]; + * repeated int64 taxonomy_category_ids = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @param index The index of the element to return. @@ -383,7 +404,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (entitySignalsMappingId_ != 0L) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(2, entitySignalsMappingId_); } if (entityCase_ == 3) { @@ -414,7 +435,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (entitySignalsMappingId_ != 0L) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, entitySignalsMappingId_); } if (entityCase_ == 3) { @@ -463,7 +484,10 @@ public boolean equals(final java.lang.Object obj) { (com.google.ads.admanager.v1.EntitySignalsMapping) obj; if (!getName().equals(other.getName())) return false; - if (getEntitySignalsMappingId() != other.getEntitySignalsMappingId()) return false; + if (hasEntitySignalsMappingId() != other.hasEntitySignalsMappingId()) return false; + if (hasEntitySignalsMappingId()) { + if (getEntitySignalsMappingId() != other.getEntitySignalsMappingId()) return false; + } if (!getTaxonomyCategoryIdsList().equals(other.getTaxonomyCategoryIdsList())) return false; if (!getEntityCase().equals(other.getEntityCase())) return false; switch (entityCase_) { @@ -492,8 +516,10 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + ENTITY_SIGNALS_MAPPING_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEntitySignalsMappingId()); + if (hasEntitySignalsMappingId()) { + hash = (37 * hash) + ENTITY_SIGNALS_MAPPING_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEntitySignalsMappingId()); + } if (getTaxonomyCategoryIdsCount() > 0) { hash = (37 * hash) + TAXONOMY_CATEGORY_IDS_FIELD_NUMBER; hash = (53 * hash) + getTaxonomyCategoryIdsList().hashCode(); @@ -699,13 +725,16 @@ private void buildPartial0(com.google.ads.admanager.v1.EntitySignalsMapping resu if (((from_bitField0_ & 0x00000008) != 0)) { result.name_ = name_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000010) != 0)) { result.entitySignalsMappingId_ = entitySignalsMappingId_; + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000020) != 0)) { taxonomyCategoryIds_.makeImmutable(); result.taxonomyCategoryIds_ = taxonomyCategoryIds_; } + result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.google.ads.admanager.v1.EntitySignalsMapping result) { @@ -764,7 +793,7 @@ public Builder mergeFrom(com.google.ads.admanager.v1.EntitySignalsMapping other) bitField0_ |= 0x00000008; onChanged(); } - if (other.getEntitySignalsMappingId() != 0L) { + if (other.hasEntitySignalsMappingId()) { setEntitySignalsMappingId(other.getEntitySignalsMappingId()); } if (!other.taxonomyCategoryIds_.isEmpty()) { @@ -1255,7 +1284,26 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * Output only. `EntitySignalsMapping` ID. * * - * int64 entity_signals_mapping_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional int64 entity_signals_mapping_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the entitySignalsMappingId field is set. + */ + @java.lang.Override + public boolean hasEntitySignalsMappingId() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Output only. `EntitySignalsMapping` ID.
+     * 
+ * + * + * optional int64 entity_signals_mapping_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The entitySignalsMappingId. @@ -1272,7 +1320,8 @@ public long getEntitySignalsMappingId() { * Output only. `EntitySignalsMapping` ID. * * - * int64 entity_signals_mapping_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional int64 entity_signals_mapping_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The entitySignalsMappingId to set. @@ -1293,7 +1342,8 @@ public Builder setEntitySignalsMappingId(long value) { * Output only. `EntitySignalsMapping` ID. * * - * int64 entity_signals_mapping_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional int64 entity_signals_mapping_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. @@ -1318,11 +1368,11 @@ private void ensureTaxonomyCategoryIdsIsMutable() { * * *
-     * Required. The IDs of the categories that are associated with the
+     * Optional. The IDs of the categories that are associated with the
      * referencing entity.
      * 
* - * repeated int64 taxonomy_category_ids = 6 [(.google.api.field_behavior) = REQUIRED]; + * repeated int64 taxonomy_category_ids = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @return A list containing the taxonomyCategoryIds. @@ -1336,11 +1386,11 @@ public java.util.List getTaxonomyCategoryIdsList() { * * *
-     * Required. The IDs of the categories that are associated with the
+     * Optional. The IDs of the categories that are associated with the
      * referencing entity.
      * 
* - * repeated int64 taxonomy_category_ids = 6 [(.google.api.field_behavior) = REQUIRED]; + * repeated int64 taxonomy_category_ids = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The count of taxonomyCategoryIds. @@ -1353,11 +1403,11 @@ public int getTaxonomyCategoryIdsCount() { * * *
-     * Required. The IDs of the categories that are associated with the
+     * Optional. The IDs of the categories that are associated with the
      * referencing entity.
      * 
* - * repeated int64 taxonomy_category_ids = 6 [(.google.api.field_behavior) = REQUIRED]; + * repeated int64 taxonomy_category_ids = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @param index The index of the element to return. @@ -1371,11 +1421,11 @@ public long getTaxonomyCategoryIds(int index) { * * *
-     * Required. The IDs of the categories that are associated with the
+     * Optional. The IDs of the categories that are associated with the
      * referencing entity.
      * 
* - * repeated int64 taxonomy_category_ids = 6 [(.google.api.field_behavior) = REQUIRED]; + * repeated int64 taxonomy_category_ids = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @param index The index to set the value at. @@ -1395,11 +1445,11 @@ public Builder setTaxonomyCategoryIds(int index, long value) { * * *
-     * Required. The IDs of the categories that are associated with the
+     * Optional. The IDs of the categories that are associated with the
      * referencing entity.
      * 
* - * repeated int64 taxonomy_category_ids = 6 [(.google.api.field_behavior) = REQUIRED]; + * repeated int64 taxonomy_category_ids = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @param value The taxonomyCategoryIds to add. @@ -1418,11 +1468,11 @@ public Builder addTaxonomyCategoryIds(long value) { * * *
-     * Required. The IDs of the categories that are associated with the
+     * Optional. The IDs of the categories that are associated with the
      * referencing entity.
      * 
* - * repeated int64 taxonomy_category_ids = 6 [(.google.api.field_behavior) = REQUIRED]; + * repeated int64 taxonomy_category_ids = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @param values The taxonomyCategoryIds to add. @@ -1440,11 +1490,11 @@ public Builder addAllTaxonomyCategoryIds(java.lang.Iterable - * Required. The IDs of the categories that are associated with the + * Optional. The IDs of the categories that are associated with the * referencing entity. * * - * repeated int64 taxonomy_category_ids = 6 [(.google.api.field_behavior) = REQUIRED]; + * repeated int64 taxonomy_category_ids = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @return This builder for chaining. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/EntitySignalsMappingMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/EntitySignalsMappingMessagesProto.java index 6d0cc07aaa59..b7da12ee1381 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/EntitySignalsMappingMessagesProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/EntitySignalsMappingMessagesProto.java @@ -44,23 +44,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n=google/ads/admanager/v1/entity_signals" + "_mapping_messages.proto\022\027google.ads.adma" + "nager.v1\032\037google/api/field_behavior.prot" - + "o\032\031google/api/resource.proto\"\213\003\n\024EntityS" + + "o\032\031google/api/resource.proto\"\256\003\n\024EntityS" + "ignalsMapping\022\035\n\023audience_segment_id\030\003 \001" + "(\003H\000\022\033\n\021content_bundle_id\030\004 \001(\003H\000\022#\n\031cus" + "tom_targeting_value_id\030\005 \001(\003H\000\022\021\n\004name\030\001" - + " \001(\tB\003\340A\010\022&\n\031entity_signals_mapping_id\030\002" - + " \001(\003B\003\340A\003\022\"\n\025taxonomy_category_ids\030\006 \003(\003" - + "B\003\340A\002:\250\001\352A\244\001\n-admanager.googleapis.com/E" - + "ntitySignalsMapping\022Fnetworks/{network_c" - + "ode}/entitySignalsMappings/{entity_signa" - + "ls_mapping}*\025entitySignalsMappings2\024enti" - + "tySignalsMappingB\010\n\006entityB\325\001\n\033com.googl" - + "e.ads.admanager.v1B!EntitySignalsMapping" - + "MessagesProtoP\001Z@google.golang.org/genpr" - + "oto/googleapis/ads/admanager/v1;admanage" - + "r\252\002\027Google.Ads.AdManager.V1\312\002\027Google\\Ads" - + "\\AdManager\\V1\352\002\032Google::Ads::AdManager::" - + "V1b\006proto3" + + " \001(\tB\003\340A\010\022+\n\031entity_signals_mapping_id\030\002" + + " \001(\003B\003\340A\003H\001\210\001\001\022\"\n\025taxonomy_category_ids\030" + + "\006 \003(\003B\003\340A\001:\250\001\352A\244\001\n-admanager.googleapis." + + "com/EntitySignalsMapping\022Fnetworks/{netw" + + "ork_code}/entitySignalsMappings/{entity_" + + "signals_mapping}*\025entitySignalsMappings2" + + "\024entitySignalsMappingB\010\n\006entityB\034\n\032_enti" + + "ty_signals_mapping_idB\325\001\n\033com.google.ads" + + ".admanager.v1B!EntitySignalsMappingMessa" + + "gesProtoP\001Z@google.golang.org/genproto/g" + + "oogleapis/ads/admanager/v1;admanager\252\002\027G" + + "oogle.Ads.AdManager.V1\312\002\027Google\\Ads\\AdMa" + + "nager\\V1\352\002\032Google::Ads::AdManager::V1b\006p" + + "roto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/EntitySignalsMappingOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/EntitySignalsMappingOrBuilder.java index c92cd5950803..7f16473d0d63 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/EntitySignalsMappingOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/EntitySignalsMappingOrBuilder.java @@ -139,7 +139,24 @@ public interface EntitySignalsMappingOrBuilder * Output only. `EntitySignalsMapping` ID. * * - * int64 entity_signals_mapping_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional int64 entity_signals_mapping_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the entitySignalsMappingId field is set. + */ + boolean hasEntitySignalsMappingId(); + + /** + * + * + *
+   * Output only. `EntitySignalsMapping` ID.
+   * 
+ * + * + * optional int64 entity_signals_mapping_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The entitySignalsMappingId. */ @@ -149,11 +166,11 @@ public interface EntitySignalsMappingOrBuilder * * *
-   * Required. The IDs of the categories that are associated with the
+   * Optional. The IDs of the categories that are associated with the
    * referencing entity.
    * 
* - * repeated int64 taxonomy_category_ids = 6 [(.google.api.field_behavior) = REQUIRED]; + * repeated int64 taxonomy_category_ids = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @return A list containing the taxonomyCategoryIds. @@ -164,11 +181,11 @@ public interface EntitySignalsMappingOrBuilder * * *
-   * Required. The IDs of the categories that are associated with the
+   * Optional. The IDs of the categories that are associated with the
    * referencing entity.
    * 
* - * repeated int64 taxonomy_category_ids = 6 [(.google.api.field_behavior) = REQUIRED]; + * repeated int64 taxonomy_category_ids = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The count of taxonomyCategoryIds. @@ -179,11 +196,11 @@ public interface EntitySignalsMappingOrBuilder * * *
-   * Required. The IDs of the categories that are associated with the
+   * Optional. The IDs of the categories that are associated with the
    * referencing entity.
    * 
* - * repeated int64 taxonomy_category_ids = 6 [(.google.api.field_behavior) = REQUIRED]; + * repeated int64 taxonomy_category_ids = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @param index The index of the element to return. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/EntitySignalsMappingServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/EntitySignalsMappingServiceProto.java index e7952646c0ec..ffd095f2b5c1 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/EntitySignalsMappingServiceProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/EntitySignalsMappingServiceProto.java @@ -90,70 +90,71 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + "\010order_by\030\005 \001(\tB\003\340A\001\022\021\n" - + "\004skip\030\006 \001(\005B\003\340A\001\"\276\001\n" - + "!CreateEntitySignalsMappingRequest\022E\n" - + "\006parent\030\001 \001(\tB5\340A\002\372A/\022-admanag" - + "er.googleapis.com/EntitySignalsMapping\022R\n" - + "\026entity_signals_mapping\030\002 \001(\0132-.google." - + "ads.admanager.v1.EntitySignalsMappingB\003\340A\002\"\255\001\n" + + "\004skip\030\006 \001(\005B\003\340A\001\"\261\001\n" + + "!CreateEntitySignalsMappingRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\022R\n" + + "\026entity_signals_mapping\030\002" + + " \001(\0132-.google.ads.admanager.v1.EntitySignalsMappingB\003\340A\002\"\255\001\n" + "!UpdateEntitySignalsMappingRequest\022R\n" - + "\026entity_signals_mapping\030\001 \001(\0132-.googl" - + "e.ads.admanager.v1.EntitySignalsMappingB\003\340A\002\0224\n" + + "\026entity_signals_mapping\030\001" + + " \001(\0132-.google.ads.admanager.v1.EntitySignalsMappingB\003\340A\002\0224\n" + "\013update_mask\030\002" + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\240\001\n" + "!ListEntitySignalsMappingsResponse\022N\n" - + "\027entity_signals_mappings\030\001" - + " \003(\0132-.google.ads.admanager.v1.EntitySignalsMapping\022\027\n" + + "\027entity_signals_mappings\030\001 \003(\0132-.g" + + "oogle.ads.admanager.v1.EntitySignalsMapping\022\027\n" + "\017next_page_token\030\002 \001(\t\022\022\n\n" - + "total_size\030\003 \001(\005\"\303\001\n" - + "\'BatchCreateEntitySignalsMappingsRequest\022E\n" - + "\006parent\030\001 \001(" - + "\tB5\340A\002\372A/\022-admanager.googleapis.com/EntitySignalsMapping\022Q\n" - + "\010requests\030\002 \003(\0132:.goo" - + "gle.ads.admanager.v1.CreateEntitySignalsMappingRequestB\003\340A\002\"z\n" + + "total_size\030\003 \001(\005\"\266\001\n" + + "\'BatchCreateEntitySignalsMappingsRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\022Q\n" + + "\010requests\030\002" + + " \003(\0132:.google.ads.admanager.v1.CreateEntitySignalsMappingRequestB\003\340A\002\"z\n" + "(BatchCreateEntitySignalsMappingsResponse\022N\n" - + "\027entity_signals_mappings\030\001" - + " \003(\0132-.google.ads.admanager.v1.EntitySignalsMapping\"\303\001\n" - + "\'BatchUpdateEntitySignalsMappingsRequest\022E\n" - + "\006parent\030\001 \001(" - + "\tB5\340A\002\372A/\022-admanager.googleapis.com/EntitySignalsMapping\022Q\n" - + "\010requests\030\002 \003(\0132:.g" - + "oogle.ads.admanager.v1.UpdateEntitySignalsMappingRequestB\003\340A\002\"z\n" + + "\027entity_signals_mappings\030\001 \003(\0132-.google." + + "ads.admanager.v1.EntitySignalsMapping\"\266\001\n" + + "\'BatchUpdateEntitySignalsMappingsRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\022Q\n" + + "\010requests\030\002 \003(\0132:." + + "google.ads.admanager.v1.UpdateEntitySignalsMappingRequestB\003\340A\002\"z\n" + "(BatchUpdateEntitySignalsMappingsResponse\022N\n" + "\027entity_signals_mappings\030\001" - + " \003(\0132-.google.ads.admanager.v1.EntitySignalsMapping2\344\013\n" + + " \003(\0132-.google.ads.admanager.v1.EntitySignalsMapping2\220\014\n" + "\033EntitySignalsMappingService\022\277\001\n" - + "\027GetEntitySignalsMapping\0227.google.ads.admanager.v1.GetEntit" - + "ySignalsMappingRequest\032-.google.ads.adma" - + "nager.v1.EntitySignalsMapping\"<\332A\004name\202\323" - + "\344\223\002/\022-/v1/{name=networks/*/entitySignalsMappings/*}\022\322\001\n" - + "\031ListEntitySignalsMappings\0229.google.ads.admanager.v1.ListEntitySi" - + "gnalsMappingsRequest\032:.google.ads.admanager.v1.ListEntitySignalsMappingsResponse" - + "\">\332A\006parent\202\323\344\223\002/\022-/v1/{parent=networks/*}/entitySignalsMappings\022\366\001\n" - + "\032CreateEntitySignalsMapping\022:.google.ads.admanager.v" - + "1.CreateEntitySignalsMappingRequest\032-.google.ads.admanager.v1.EntitySignalsMappi" - + "ng\"m\332A\035parent,entity_signals_mapping\202\323\344\223" - + "\002G\"-/v1/{parent=networks/*}/entitySignalsMappings:\026entity_signals_mapping\022\223\002\n" - + "\032UpdateEntitySignalsMapping\022:.google.ads.ad" - + "manager.v1.UpdateEntitySignalsMappingRequest\032-.google.ads.admanager.v1.EntitySig" - + "nalsMapping\"\211\001\332A\"entity_signals_mapping," - + "update_mask\202\323\344\223\002^2D/v1/{entity_signals_m" - + "apping.name=networks/*/entitySignalsMappings/*}:\026entity_signals_mapping\022\377\001\n" - + " BatchCreateEntitySignalsMappings\022@.google.ad" - + "s.admanager.v1.BatchCreateEntitySignalsMappingsRequest\032A.google.ads.admanager.v1" - + ".BatchCreateEntitySignalsMappingsRespons" - + "e\"V\332A\017parent,requests\202\323\344\223\002>\"9/v1/{parent" - + "=networks/*}/entitySignalsMappings:batchCreate:\001*\022\377\001\n" - + " BatchUpdateEntitySignalsMappings\022@.google.ads.admanager.v1.BatchUp" - + "dateEntitySignalsMappingsRequest\032A.google.ads.admanager.v1.BatchUpdateEntitySign" - + "alsMappingsResponse\"V\332A\017parent,requests\202" - + "\323\344\223\002>\"9/v1/{parent=networks/*}/entitySig" - + "nalsMappings:batchUpdate:\001*\032\033\312A\030admanager.googleapis.comB\324\001\n" - + "\033com.google.ads.admanager.v1B EntitySignalsMappingServicePro" - + "toP\001Z@google.golang.org/genproto/googlea" - + "pis/ads/admanager/v1;admanager\252\002\027Google." - + "Ads.AdManager.V1\312\002\027Google\\Ads\\AdManager\\" - + "V1\352\002\032Google::Ads::AdManager::V1b\006proto3" + + "\027GetEntitySignalsMapping\0227.google.ads.admanager.v1.GetEnti" + + "tySignalsMappingRequest\032-.google.ads.adm" + + "anager.v1.EntitySignalsMapping\"<\332A\004name\202" + + "\323\344\223\002/\022-/v1/{name=networks/*/entitySignalsMappings/*}\022\322\001\n" + + "\031ListEntitySignalsMappings\0229.google.ads.admanager.v1.ListEntityS" + + "ignalsMappingsRequest\032:.google.ads.admanager.v1.ListEntitySignalsMappingsRespons" + + "e\">\332A\006parent\202\323\344\223\002/\022-/v1/{parent=networks/*}/entitySignalsMappings\022\366\001\n" + + "\032CreateEntitySignalsMapping\022:.google.ads.admanager." + + "v1.CreateEntitySignalsMappingRequest\032-.google.ads.admanager.v1.EntitySignalsMapp" + + "ing\"m\332A\035parent,entity_signals_mapping\202\323\344" + + "\223\002G\"-/v1/{parent=networks/*}/entitySignalsMappings:\026entity_signals_mapping\022\223\002\n" + + "\032UpdateEntitySignalsMapping\022:.google.ads.a" + + "dmanager.v1.UpdateEntitySignalsMappingRequest\032-.google.ads.admanager.v1.EntitySi" + + "gnalsMapping\"\211\001\332A\"entity_signals_mapping" + + ",update_mask\202\323\344\223\002^2D/v1/{entity_signals_" + + "mapping.name=networks/*/entitySignalsMappings/*}:\026entity_signals_mapping\022\377\001\n" + + " BatchCreateEntitySignalsMappings\022@.google.a" + + "ds.admanager.v1.BatchCreateEntitySignalsMappingsRequest\032A.google.ads.admanager.v" + + "1.BatchCreateEntitySignalsMappingsRespon" + + "se\"V\332A\017parent,requests\202\323\344\223\002>\"9/v1/{paren" + + "t=networks/*}/entitySignalsMappings:batchCreate:\001*\022\377\001\n" + + " BatchUpdateEntitySignalsMappings\022@.google.ads.admanager.v1.BatchU" + + "pdateEntitySignalsMappingsRequest\032A.google.ads.admanager.v1.BatchUpdateEntitySig" + + "nalsMappingsResponse\"V\332A\017parent,requests" + + "\202\323\344\223\002>\"9/v1/{parent=networks/*}/entitySi" + + "gnalsMappings:batchUpdate:\001*\032G\312A\030admanag" + + "er.googleapis.com\322A)https://www.googleapis.com/auth/admanagerB\324\001\n" + + "\033com.google.ads.admanager.v1B EntitySignalsMappingServi" + + "ceProtoP\001Z@google.golang.org/genproto/go" + + "ogleapis/ads/admanager/v1;admanager\252\002\027Go" + + "ogle.Ads.AdManager.V1\312\002\027Google\\Ads\\AdMan" + + "ager\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -244,6 +245,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.AnnotationsProto.http); registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GeoTarget.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GeoTarget.java new file mode 100644 index 000000000000..91053909e3ea --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GeoTarget.java @@ -0,0 +1,2033 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/geo_target_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Represents a location in the world, for targeting.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.GeoTarget} + */ +public final class GeoTarget extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.GeoTarget) + GeoTargetOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GeoTarget.newBuilder() to construct. + private GeoTarget(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GeoTarget() { + name_ = ""; + displayName_ = ""; + canonicalParent_ = ""; + parentNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + regionCode_ = ""; + type_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GeoTarget(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.GeoTargetMessagesProto + .internal_static_google_ads_admanager_v1_GeoTarget_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.GeoTargetMessagesProto + .internal_static_google_ads_admanager_v1_GeoTarget_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GeoTarget.class, + com.google.ads.admanager.v1.GeoTarget.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 `GeoTarget`.
+   * Format: `networks/{network_code}/geoTargets/{geo_target_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 `GeoTarget`.
+   * Format: `networks/{network_code}/geoTargets/{geo_target_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 DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
+   * Output only. The display name of the GeoTarget.
+   * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the displayName field is set. + */ + @java.lang.Override + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. The display name of the GeoTarget.
+   * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+   * Output only. The display name of the GeoTarget.
+   * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 CANONICAL_PARENT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object canonicalParent_ = ""; + + /** + * + * + *
+   * Output only. The name of the direct parent that defines the canonical name
+   * of the geo target. For example, if the current geo target is "San
+   * Francisco", its canonical name would be "San Francisco, California, United
+   * States" thus the canonical_parent would be the name of California and the
+   * canonical_parent of California would be the name of United states Format:
+   * `networks/{network_code}/geoTargets/{geo_target}`
+   * 
+ * + * + * optional string canonical_parent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the canonicalParent field is set. + */ + @java.lang.Override + public boolean hasCanonicalParent() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. The name of the direct parent that defines the canonical name
+   * of the geo target. For example, if the current geo target is "San
+   * Francisco", its canonical name would be "San Francisco, California, United
+   * States" thus the canonical_parent would be the name of California and the
+   * canonical_parent of California would be the name of United states Format:
+   * `networks/{network_code}/geoTargets/{geo_target}`
+   * 
+ * + * + * optional string canonical_parent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The canonicalParent. + */ + @java.lang.Override + public java.lang.String getCanonicalParent() { + java.lang.Object ref = canonicalParent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + canonicalParent_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The name of the direct parent that defines the canonical name
+   * of the geo target. For example, if the current geo target is "San
+   * Francisco", its canonical name would be "San Francisco, California, United
+   * States" thus the canonical_parent would be the name of California and the
+   * canonical_parent of California would be the name of United states Format:
+   * `networks/{network_code}/geoTargets/{geo_target}`
+   * 
+ * + * + * optional string canonical_parent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for canonicalParent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCanonicalParentBytes() { + java.lang.Object ref = canonicalParent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + canonicalParent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARENT_NAMES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList parentNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Output only. All parents of the geo target ordered by ascending size.
+   * 
+ * + * repeated string parent_names = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the parentNames. + */ + public com.google.protobuf.ProtocolStringList getParentNamesList() { + return parentNames_; + } + + /** + * + * + *
+   * Output only. All parents of the geo target ordered by ascending size.
+   * 
+ * + * repeated string parent_names = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of parentNames. + */ + public int getParentNamesCount() { + return parentNames_.size(); + } + + /** + * + * + *
+   * Output only. All parents of the geo target ordered by ascending size.
+   * 
+ * + * repeated string parent_names = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The parentNames at the given index. + */ + public java.lang.String getParentNames(int index) { + return parentNames_.get(index); + } + + /** + * + * + *
+   * Output only. All parents of the geo target ordered by ascending size.
+   * 
+ * + * repeated string parent_names = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the parentNames at the given index. + */ + public com.google.protobuf.ByteString getParentNamesBytes(int index) { + return parentNames_.getByteString(index); + } + + public static final int REGION_CODE_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object regionCode_ = ""; + + /** + * + * + *
+   * Output only. The Unicode CLDR region code of the geo target.
+   * 
+ * + * optional string region_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the regionCode field is set. + */ + @java.lang.Override + public boolean hasRegionCode() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Output only. The Unicode CLDR region code of the geo target.
+   * 
+ * + * optional string region_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The regionCode. + */ + @java.lang.Override + public java.lang.String getRegionCode() { + java.lang.Object ref = regionCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + regionCode_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The Unicode CLDR region code of the geo target.
+   * 
+ * + * optional string region_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for regionCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionCodeBytes() { + java.lang.Object ref = regionCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + regionCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object type_ = ""; + + /** + * + * + *
+   * Output only. The location type (unlocalized) for this geographical entity.
+   * 
+ * + * optional string type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the type field is set. + */ + @java.lang.Override + public boolean hasType() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Output only. The location type (unlocalized) for this geographical entity.
+   * 
+ * + * optional string type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The type. + */ + @java.lang.Override + public java.lang.String getType() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The location type (unlocalized) for this geographical entity.
+   * 
+ * + * optional string type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for type. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGETABLE_FIELD_NUMBER = 7; + private boolean targetable_ = false; + + /** + * + * + *
+   * Output only. Whether the geo target is targetable.
+   * 
+ * + * optional bool targetable = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the targetable field is set. + */ + @java.lang.Override + public boolean hasTargetable() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Output only. Whether the geo target is targetable.
+   * 
+ * + * optional bool targetable = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The targetable. + */ + @java.lang.Override + public boolean getTargetable() { + return targetable_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, canonicalParent_); + } + for (int i = 0; i < parentNames_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, parentNames_.getRaw(i)); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, regionCode_); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, type_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeBool(7, targetable_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, canonicalParent_); + } + { + int dataSize = 0; + for (int i = 0; i < parentNames_.size(); i++) { + dataSize += computeStringSizeNoTag(parentNames_.getRaw(i)); + } + size += dataSize; + size += 1 * getParentNamesList().size(); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, regionCode_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, type_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, targetable_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.admanager.v1.GeoTarget)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.GeoTarget other = (com.google.ads.admanager.v1.GeoTarget) obj; + + if (!getName().equals(other.getName())) return false; + if (hasDisplayName() != other.hasDisplayName()) return false; + if (hasDisplayName()) { + if (!getDisplayName().equals(other.getDisplayName())) return false; + } + if (hasCanonicalParent() != other.hasCanonicalParent()) return false; + if (hasCanonicalParent()) { + if (!getCanonicalParent().equals(other.getCanonicalParent())) return false; + } + if (!getParentNamesList().equals(other.getParentNamesList())) return false; + if (hasRegionCode() != other.hasRegionCode()) return false; + if (hasRegionCode()) { + if (!getRegionCode().equals(other.getRegionCode())) return false; + } + if (hasType() != other.hasType()) return false; + if (hasType()) { + if (!getType().equals(other.getType())) return false; + } + if (hasTargetable() != other.hasTargetable()) return false; + if (hasTargetable()) { + if (getTargetable() != other.getTargetable()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasDisplayName()) { + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + } + if (hasCanonicalParent()) { + hash = (37 * hash) + CANONICAL_PARENT_FIELD_NUMBER; + hash = (53 * hash) + getCanonicalParent().hashCode(); + } + if (getParentNamesCount() > 0) { + hash = (37 * hash) + PARENT_NAMES_FIELD_NUMBER; + hash = (53 * hash) + getParentNamesList().hashCode(); + } + if (hasRegionCode()) { + hash = (37 * hash) + REGION_CODE_FIELD_NUMBER; + hash = (53 * hash) + getRegionCode().hashCode(); + } + if (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + } + if (hasTargetable()) { + hash = (37 * hash) + TARGETABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTargetable()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.GeoTarget parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GeoTarget 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.admanager.v1.GeoTarget parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GeoTarget parseFrom( + 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.admanager.v1.GeoTarget parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GeoTarget parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GeoTarget parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GeoTarget parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GeoTarget parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GeoTarget parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GeoTarget parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GeoTarget parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.GeoTarget prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Represents a location in the world, for targeting.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.GeoTarget} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.GeoTarget) + com.google.ads.admanager.v1.GeoTargetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.GeoTargetMessagesProto + .internal_static_google_ads_admanager_v1_GeoTarget_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.GeoTargetMessagesProto + .internal_static_google_ads_admanager_v1_GeoTarget_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GeoTarget.class, + com.google.ads.admanager.v1.GeoTarget.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.GeoTarget.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + canonicalParent_ = ""; + parentNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + regionCode_ = ""; + type_ = ""; + targetable_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.GeoTargetMessagesProto + .internal_static_google_ads_admanager_v1_GeoTarget_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GeoTarget getDefaultInstanceForType() { + return com.google.ads.admanager.v1.GeoTarget.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.GeoTarget build() { + com.google.ads.admanager.v1.GeoTarget result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GeoTarget buildPartial() { + com.google.ads.admanager.v1.GeoTarget result = + new com.google.ads.admanager.v1.GeoTarget(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.GeoTarget result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.canonicalParent_ = canonicalParent_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + parentNames_.makeImmutable(); + result.parentNames_ = parentNames_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.regionCode_ = regionCode_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.type_ = type_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.targetable_ = targetable_; + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.GeoTarget) { + return mergeFrom((com.google.ads.admanager.v1.GeoTarget) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.GeoTarget other) { + if (other == com.google.ads.admanager.v1.GeoTarget.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDisplayName()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCanonicalParent()) { + canonicalParent_ = other.canonicalParent_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.parentNames_.isEmpty()) { + if (parentNames_.isEmpty()) { + parentNames_ = other.parentNames_; + bitField0_ |= 0x00000008; + } else { + ensureParentNamesIsMutable(); + parentNames_.addAll(other.parentNames_); + } + onChanged(); + } + if (other.hasRegionCode()) { + regionCode_ = other.regionCode_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasType()) { + type_ = other.type_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasTargetable()) { + setTargetable(other.getTargetable()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + canonicalParent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureParentNamesIsMutable(); + parentNames_.add(s); + break; + } // case 34 + case 42: + { + regionCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + type_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: + { + targetable_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 56 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Identifier. The resource name of the `GeoTarget`.
+     * Format: `networks/{network_code}/geoTargets/{geo_target_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 `GeoTarget`.
+     * Format: `networks/{network_code}/geoTargets/{geo_target_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 `GeoTarget`.
+     * Format: `networks/{network_code}/geoTargets/{geo_target_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 `GeoTarget`.
+     * Format: `networks/{network_code}/geoTargets/{geo_target_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 `GeoTarget`.
+     * Format: `networks/{network_code}/geoTargets/{geo_target_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 displayName_ = ""; + + /** + * + * + *
+     * Output only. The display name of the GeoTarget.
+     * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the displayName field is set. + */ + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. The display name of the GeoTarget.
+     * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. The display name of the GeoTarget.
+     * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. The display name of the GeoTarget.
+     * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The display name of the GeoTarget.
+     * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The display name of the GeoTarget.
+     * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object canonicalParent_ = ""; + + /** + * + * + *
+     * Output only. The name of the direct parent that defines the canonical name
+     * of the geo target. For example, if the current geo target is "San
+     * Francisco", its canonical name would be "San Francisco, California, United
+     * States" thus the canonical_parent would be the name of California and the
+     * canonical_parent of California would be the name of United states Format:
+     * `networks/{network_code}/geoTargets/{geo_target}`
+     * 
+ * + * + * optional string canonical_parent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the canonicalParent field is set. + */ + public boolean hasCanonicalParent() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Output only. The name of the direct parent that defines the canonical name
+     * of the geo target. For example, if the current geo target is "San
+     * Francisco", its canonical name would be "San Francisco, California, United
+     * States" thus the canonical_parent would be the name of California and the
+     * canonical_parent of California would be the name of United states Format:
+     * `networks/{network_code}/geoTargets/{geo_target}`
+     * 
+ * + * + * optional string canonical_parent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The canonicalParent. + */ + public java.lang.String getCanonicalParent() { + java.lang.Object ref = canonicalParent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + canonicalParent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The name of the direct parent that defines the canonical name
+     * of the geo target. For example, if the current geo target is "San
+     * Francisco", its canonical name would be "San Francisco, California, United
+     * States" thus the canonical_parent would be the name of California and the
+     * canonical_parent of California would be the name of United states Format:
+     * `networks/{network_code}/geoTargets/{geo_target}`
+     * 
+ * + * + * optional string canonical_parent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for canonicalParent. + */ + public com.google.protobuf.ByteString getCanonicalParentBytes() { + java.lang.Object ref = canonicalParent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + canonicalParent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The name of the direct parent that defines the canonical name
+     * of the geo target. For example, if the current geo target is "San
+     * Francisco", its canonical name would be "San Francisco, California, United
+     * States" thus the canonical_parent would be the name of California and the
+     * canonical_parent of California would be the name of United states Format:
+     * `networks/{network_code}/geoTargets/{geo_target}`
+     * 
+ * + * + * optional string canonical_parent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The canonicalParent to set. + * @return This builder for chaining. + */ + public Builder setCanonicalParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + canonicalParent_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The name of the direct parent that defines the canonical name
+     * of the geo target. For example, if the current geo target is "San
+     * Francisco", its canonical name would be "San Francisco, California, United
+     * States" thus the canonical_parent would be the name of California and the
+     * canonical_parent of California would be the name of United states Format:
+     * `networks/{network_code}/geoTargets/{geo_target}`
+     * 
+ * + * + * optional string canonical_parent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCanonicalParent() { + canonicalParent_ = getDefaultInstance().getCanonicalParent(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The name of the direct parent that defines the canonical name
+     * of the geo target. For example, if the current geo target is "San
+     * Francisco", its canonical name would be "San Francisco, California, United
+     * States" thus the canonical_parent would be the name of California and the
+     * canonical_parent of California would be the name of United states Format:
+     * `networks/{network_code}/geoTargets/{geo_target}`
+     * 
+ * + * + * optional string canonical_parent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for canonicalParent to set. + * @return This builder for chaining. + */ + public Builder setCanonicalParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + canonicalParent_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList parentNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureParentNamesIsMutable() { + if (!parentNames_.isModifiable()) { + parentNames_ = new com.google.protobuf.LazyStringArrayList(parentNames_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
+     * Output only. All parents of the geo target ordered by ascending size.
+     * 
+ * + * repeated string parent_names = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the parentNames. + */ + public com.google.protobuf.ProtocolStringList getParentNamesList() { + parentNames_.makeImmutable(); + return parentNames_; + } + + /** + * + * + *
+     * Output only. All parents of the geo target ordered by ascending size.
+     * 
+ * + * repeated string parent_names = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of parentNames. + */ + public int getParentNamesCount() { + return parentNames_.size(); + } + + /** + * + * + *
+     * Output only. All parents of the geo target ordered by ascending size.
+     * 
+ * + * repeated string parent_names = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The parentNames at the given index. + */ + public java.lang.String getParentNames(int index) { + return parentNames_.get(index); + } + + /** + * + * + *
+     * Output only. All parents of the geo target ordered by ascending size.
+     * 
+ * + * repeated string parent_names = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the parentNames at the given index. + */ + public com.google.protobuf.ByteString getParentNamesBytes(int index) { + return parentNames_.getByteString(index); + } + + /** + * + * + *
+     * Output only. All parents of the geo target ordered by ascending size.
+     * 
+ * + * repeated string parent_names = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index to set the value at. + * @param value The parentNames to set. + * @return This builder for chaining. + */ + public Builder setParentNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureParentNamesIsMutable(); + parentNames_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. All parents of the geo target ordered by ascending size.
+     * 
+ * + * repeated string parent_names = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The parentNames to add. + * @return This builder for chaining. + */ + public Builder addParentNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureParentNamesIsMutable(); + parentNames_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. All parents of the geo target ordered by ascending size.
+     * 
+ * + * repeated string parent_names = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param values The parentNames to add. + * @return This builder for chaining. + */ + public Builder addAllParentNames(java.lang.Iterable values) { + ensureParentNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parentNames_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. All parents of the geo target ordered by ascending size.
+     * 
+ * + * repeated string parent_names = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearParentNames() { + parentNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. All parents of the geo target ordered by ascending size.
+     * 
+ * + * repeated string parent_names = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes of the parentNames to add. + * @return This builder for chaining. + */ + public Builder addParentNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureParentNamesIsMutable(); + parentNames_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object regionCode_ = ""; + + /** + * + * + *
+     * Output only. The Unicode CLDR region code of the geo target.
+     * 
+ * + * optional string region_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the regionCode field is set. + */ + public boolean hasRegionCode() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Output only. The Unicode CLDR region code of the geo target.
+     * 
+ * + * optional string region_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The regionCode. + */ + public java.lang.String getRegionCode() { + java.lang.Object ref = regionCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + regionCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The Unicode CLDR region code of the geo target.
+     * 
+ * + * optional string region_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for regionCode. + */ + public com.google.protobuf.ByteString getRegionCodeBytes() { + java.lang.Object ref = regionCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + regionCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The Unicode CLDR region code of the geo target.
+     * 
+ * + * optional string region_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The regionCode to set. + * @return This builder for chaining. + */ + public Builder setRegionCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + regionCode_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The Unicode CLDR region code of the geo target.
+     * 
+ * + * optional string region_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRegionCode() { + regionCode_ = getDefaultInstance().getRegionCode(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The Unicode CLDR region code of the geo target.
+     * 
+ * + * optional string region_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for regionCode to set. + * @return This builder for chaining. + */ + public Builder setRegionCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + regionCode_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object type_ = ""; + + /** + * + * + *
+     * Output only. The location type (unlocalized) for this geographical entity.
+     * 
+ * + * optional string type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the type field is set. + */ + public boolean hasType() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Output only. The location type (unlocalized) for this geographical entity.
+     * 
+ * + * optional string type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The type. + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The location type (unlocalized) for this geographical entity.
+     * 
+ * + * optional string type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for type. + */ + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The location type (unlocalized) for this geographical entity.
+     * 
+ * + * optional string type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The location type (unlocalized) for this geographical entity.
+     * 
+ * + * optional string type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearType() { + type_ = getDefaultInstance().getType(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The location type (unlocalized) for this geographical entity.
+     * 
+ * + * optional string type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for type to set. + * @return This builder for chaining. + */ + public Builder setTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private boolean targetable_; + + /** + * + * + *
+     * Output only. Whether the geo target is targetable.
+     * 
+ * + * optional bool targetable = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the targetable field is set. + */ + @java.lang.Override + public boolean hasTargetable() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Output only. Whether the geo target is targetable.
+     * 
+ * + * optional bool targetable = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The targetable. + */ + @java.lang.Override + public boolean getTargetable() { + return targetable_; + } + + /** + * + * + *
+     * Output only. Whether the geo target is targetable.
+     * 
+ * + * optional bool targetable = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The targetable to set. + * @return This builder for chaining. + */ + public Builder setTargetable(boolean value) { + + targetable_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Whether the geo target is targetable.
+     * 
+ * + * optional bool targetable = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTargetable() { + bitField0_ = (bitField0_ & ~0x00000040); + targetable_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.GeoTarget) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.GeoTarget) + private static final com.google.ads.admanager.v1.GeoTarget DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.GeoTarget(); + } + + public static com.google.ads.admanager.v1.GeoTarget getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GeoTarget parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.GeoTarget getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GeoTargetMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GeoTargetMessagesProto.java new file mode 100644 index 000000000000..b7732f32f10b --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GeoTargetMessagesProto.java @@ -0,0 +1,104 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/geo_target_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class GeoTargetMessagesProto { + private GeoTargetMessagesProto() {} + + 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_ads_admanager_v1_GeoTarget_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_GeoTarget_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" + + "1google/ads/admanager/v1/geo_target_mes" + + "sages.proto\022\027google.ads.admanager.v1\032\037go" + + "ogle/api/field_behavior.proto\032\031google/api/resource.proto\"\270\003\n" + + "\tGeoTarget\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\036\n" + + "\014display_name\030\002 \001(\tB\003\340A\003H\000\210\001\001\022I\n" + + "\020canonical_parent\030\003 \001(\tB*\340A\003\372A$\n" + + "\"admanager.googleapis.com/GeoTargetH\001\210\001\001\022\031\n" + + "\014parent_names\030\004 \003(\tB\003\340A\003\022\035\n" + + "\013region_code\030\005 \001(\tB\003\340A\003H\002\210\001\001\022\026\n" + + "\004type\030\006 \001(\tB\003\340A\003H\003\210\001\001\022\034\n\n" + + "targetable\030\007 \001(\010B\003\340A\003H\004\210\001\001:o\352Al\n" + + "\"adman" + + "ager.googleapis.com/GeoTarget\022/networks/{network_code}/geoTargets/{geo_target}*\n" + + "geoTargets2\tgeoTargetB\017\n\r" + + "_display_nameB\023\n" + + "\021_canonical_parentB\016\n" + + "\014_region_codeB\007\n" + + "\005_typeB\r\n" + + "\013_targetableB\312\001\n" + + "\033com.google.ads.admanager.v1B\026GeoTargetMessagesProtoP\001Z@g" + + "oogle.golang.org/genproto/googleapis/ads" + + "/admanager/v1;admanager\252\002\027Google.Ads.AdM" + + "anager.V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032Go" + + "ogle::Ads::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_ads_admanager_v1_GeoTarget_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_GeoTarget_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_GeoTarget_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "CanonicalParent", + "ParentNames", + "RegionCode", + "Type", + "Targetable", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GeoTargetName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GeoTargetName.java new file mode 100644 index 000000000000..8c0765d58331 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GeoTargetName.java @@ -0,0 +1,193 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class GeoTargetName implements ResourceName { + private static final PathTemplate NETWORK_CODE_GEO_TARGET = + PathTemplate.createWithoutUrlEncoding("networks/{network_code}/geoTargets/{geo_target}"); + private volatile Map fieldValuesMap; + private final String networkCode; + private final String geoTarget; + + @Deprecated + protected GeoTargetName() { + networkCode = null; + geoTarget = null; + } + + private GeoTargetName(Builder builder) { + networkCode = Preconditions.checkNotNull(builder.getNetworkCode()); + geoTarget = Preconditions.checkNotNull(builder.getGeoTarget()); + } + + public String getNetworkCode() { + return networkCode; + } + + public String getGeoTarget() { + return geoTarget; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static GeoTargetName of(String networkCode, String geoTarget) { + return newBuilder().setNetworkCode(networkCode).setGeoTarget(geoTarget).build(); + } + + public static String format(String networkCode, String geoTarget) { + return newBuilder().setNetworkCode(networkCode).setGeoTarget(geoTarget).build().toString(); + } + + public static GeoTargetName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + NETWORK_CODE_GEO_TARGET.validatedMatch( + formattedString, "GeoTargetName.parse: formattedString not in valid format"); + return of(matchMap.get("network_code"), matchMap.get("geo_target")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (GeoTargetName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return NETWORK_CODE_GEO_TARGET.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (networkCode != null) { + fieldMapBuilder.put("network_code", networkCode); + } + if (geoTarget != null) { + fieldMapBuilder.put("geo_target", geoTarget); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return NETWORK_CODE_GEO_TARGET.instantiate( + "network_code", networkCode, "geo_target", geoTarget); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + GeoTargetName that = ((GeoTargetName) o); + return Objects.equals(this.networkCode, that.networkCode) + && Objects.equals(this.geoTarget, that.geoTarget); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(networkCode); + h *= 1000003; + h ^= Objects.hashCode(geoTarget); + return h; + } + + /** Builder for networks/{network_code}/geoTargets/{geo_target}. */ + public static class Builder { + private String networkCode; + private String geoTarget; + + protected Builder() {} + + public String getNetworkCode() { + return networkCode; + } + + public String getGeoTarget() { + return geoTarget; + } + + public Builder setNetworkCode(String networkCode) { + this.networkCode = networkCode; + return this; + } + + public Builder setGeoTarget(String geoTarget) { + this.geoTarget = geoTarget; + return this; + } + + private Builder(GeoTargetName geoTargetName) { + this.networkCode = geoTargetName.networkCode; + this.geoTarget = geoTargetName.geoTarget; + } + + public GeoTargetName build() { + return new GeoTargetName(this); + } + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GeoTargetOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GeoTargetOrBuilder.java new file mode 100644 index 000000000000..dbb8f8f24f58 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GeoTargetOrBuilder.java @@ -0,0 +1,311 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/geo_target_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface GeoTargetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.GeoTarget) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. The resource name of the `GeoTarget`.
+   * Format: `networks/{network_code}/geoTargets/{geo_target_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. The resource name of the `GeoTarget`.
+   * Format: `networks/{network_code}/geoTargets/{geo_target_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. The display name of the GeoTarget.
+   * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the displayName field is set. + */ + boolean hasDisplayName(); + + /** + * + * + *
+   * Output only. The display name of the GeoTarget.
+   * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+   * Output only. The display name of the GeoTarget.
+   * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Output only. The name of the direct parent that defines the canonical name
+   * of the geo target. For example, if the current geo target is "San
+   * Francisco", its canonical name would be "San Francisco, California, United
+   * States" thus the canonical_parent would be the name of California and the
+   * canonical_parent of California would be the name of United states Format:
+   * `networks/{network_code}/geoTargets/{geo_target}`
+   * 
+ * + * + * optional string canonical_parent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the canonicalParent field is set. + */ + boolean hasCanonicalParent(); + + /** + * + * + *
+   * Output only. The name of the direct parent that defines the canonical name
+   * of the geo target. For example, if the current geo target is "San
+   * Francisco", its canonical name would be "San Francisco, California, United
+   * States" thus the canonical_parent would be the name of California and the
+   * canonical_parent of California would be the name of United states Format:
+   * `networks/{network_code}/geoTargets/{geo_target}`
+   * 
+ * + * + * optional string canonical_parent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The canonicalParent. + */ + java.lang.String getCanonicalParent(); + + /** + * + * + *
+   * Output only. The name of the direct parent that defines the canonical name
+   * of the geo target. For example, if the current geo target is "San
+   * Francisco", its canonical name would be "San Francisco, California, United
+   * States" thus the canonical_parent would be the name of California and the
+   * canonical_parent of California would be the name of United states Format:
+   * `networks/{network_code}/geoTargets/{geo_target}`
+   * 
+ * + * + * optional string canonical_parent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for canonicalParent. + */ + com.google.protobuf.ByteString getCanonicalParentBytes(); + + /** + * + * + *
+   * Output only. All parents of the geo target ordered by ascending size.
+   * 
+ * + * repeated string parent_names = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the parentNames. + */ + java.util.List getParentNamesList(); + + /** + * + * + *
+   * Output only. All parents of the geo target ordered by ascending size.
+   * 
+ * + * repeated string parent_names = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of parentNames. + */ + int getParentNamesCount(); + + /** + * + * + *
+   * Output only. All parents of the geo target ordered by ascending size.
+   * 
+ * + * repeated string parent_names = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The parentNames at the given index. + */ + java.lang.String getParentNames(int index); + + /** + * + * + *
+   * Output only. All parents of the geo target ordered by ascending size.
+   * 
+ * + * repeated string parent_names = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the parentNames at the given index. + */ + com.google.protobuf.ByteString getParentNamesBytes(int index); + + /** + * + * + *
+   * Output only. The Unicode CLDR region code of the geo target.
+   * 
+ * + * optional string region_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the regionCode field is set. + */ + boolean hasRegionCode(); + + /** + * + * + *
+   * Output only. The Unicode CLDR region code of the geo target.
+   * 
+ * + * optional string region_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The regionCode. + */ + java.lang.String getRegionCode(); + + /** + * + * + *
+   * Output only. The Unicode CLDR region code of the geo target.
+   * 
+ * + * optional string region_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for regionCode. + */ + com.google.protobuf.ByteString getRegionCodeBytes(); + + /** + * + * + *
+   * Output only. The location type (unlocalized) for this geographical entity.
+   * 
+ * + * optional string type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the type field is set. + */ + boolean hasType(); + + /** + * + * + *
+   * Output only. The location type (unlocalized) for this geographical entity.
+   * 
+ * + * optional string type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The type. + */ + java.lang.String getType(); + + /** + * + * + *
+   * Output only. The location type (unlocalized) for this geographical entity.
+   * 
+ * + * optional string type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for type. + */ + com.google.protobuf.ByteString getTypeBytes(); + + /** + * + * + *
+   * Output only. Whether the geo target is targetable.
+   * 
+ * + * optional bool targetable = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the targetable field is set. + */ + boolean hasTargetable(); + + /** + * + * + *
+   * Output only. Whether the geo target is targetable.
+   * 
+ * + * optional bool targetable = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The targetable. + */ + boolean getTargetable(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GeoTargetServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GeoTargetServiceProto.java new file mode 100644 index 000000000000..f85d3a3a8f5d --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GeoTargetServiceProto.java @@ -0,0 +1,141 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/geo_target_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class GeoTargetServiceProto { + private GeoTargetServiceProto() {} + + 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_ads_admanager_v1_GetGeoTargetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_GetGeoTargetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListGeoTargetsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListGeoTargetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListGeoTargetsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListGeoTargetsResponse_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" + + "0google/ads/admanager/v1/geo_target_ser" + + "vice.proto\022\027google.ads.admanager.v1\0321goo" + + "gle/ads/admanager/v1/geo_target_messages" + + ".proto\032\034google/api/annotations.proto\032\027go" + + "ogle/api/client.proto\032\037google/api/field_" + + "behavior.proto\032\031google/api/resource.proto\"O\n" + + "\023GetGeoTargetRequest\0228\n" + + "\004name\030\001 \001(\tB*\340A\002\372A$\n" + + "\"admanager.googleapis.com/GeoTarget\"\301\001\n" + + "\025ListGeoTargetsRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\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\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\022\021\n" + + "\004skip\030\006 \001(\005B\003\340A\001\"~\n" + + "\026ListGeoTargetsResponse\0227\n" + + "\013geo_targets\030\001 \003(\0132\".google.ads.admanager.v1.GeoTarget\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\022\n\n" + + "total_size\030\003 \001(\0052\232\003\n" + + "\020GeoTargetService\022\223\001\n" + + "\014GetGeoTarget\022,.google.ads.admanager.v1.GetGeoTar" + + "getRequest\032\".google.ads.admanager.v1.Geo" + + "Target\"1\332A\004name\202\323\344\223\002$\022\"/v1/{name=networks/*/geoTargets/*}\022\246\001\n" + + "\016ListGeoTargets\022..google.ads.admanager.v1.ListGeoTargetsReq" + + "uest\032/.google.ads.admanager.v1.ListGeoTa" + + "rgetsResponse\"3\332A\006parent\202\323\344\223\002$\022\"/v1/{par" + + "ent=networks/*}/geoTargets\032G\312A\030admanager" + + ".googleapis.com\322A)https://www.googleapis.com/auth/admanagerB\311\001\n" + + "\033com.google.ads.admanager.v1B\025GeoTargetServiceProtoP\001Z@go" + + "ogle.golang.org/genproto/googleapis/ads/" + + "admanager/v1;admanager\252\002\027Google.Ads.AdMa" + + "nager.V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032Goo" + + "gle::Ads::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.admanager.v1.GeoTargetMessagesProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_ads_admanager_v1_GetGeoTargetRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_GetGeoTargetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_GetGeoTargetRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_ads_admanager_v1_ListGeoTargetsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_ads_admanager_v1_ListGeoTargetsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListGeoTargetsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", "Skip", + }); + internal_static_google_ads_admanager_v1_ListGeoTargetsResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_ads_admanager_v1_ListGeoTargetsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListGeoTargetsResponse_descriptor, + new java.lang.String[] { + "GeoTargets", "NextPageToken", "TotalSize", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.ads.admanager.v1.GeoTargetMessagesProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GeoTargeting.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GeoTargeting.java new file mode 100644 index 000000000000..aab315ab27bd --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GeoTargeting.java @@ -0,0 +1,1075 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Represents a list of targeted and excluded geos.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.GeoTargeting} + */ +public final class GeoTargeting extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.GeoTargeting) + GeoTargetingOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GeoTargeting.newBuilder() to construct. + private GeoTargeting(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GeoTargeting() { + targetedGeos_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludedGeos_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GeoTargeting(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_GeoTargeting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_GeoTargeting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GeoTargeting.class, + com.google.ads.admanager.v1.GeoTargeting.Builder.class); + } + + public static final int TARGETED_GEOS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList targetedGeos_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. A list of geo resource names that should be targeted/included.
+   * 
+ * + * + * repeated string targeted_geos = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetedGeos. + */ + public com.google.protobuf.ProtocolStringList getTargetedGeosList() { + return targetedGeos_; + } + + /** + * + * + *
+   * Optional. A list of geo resource names that should be targeted/included.
+   * 
+ * + * + * repeated string targeted_geos = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetedGeos. + */ + public int getTargetedGeosCount() { + return targetedGeos_.size(); + } + + /** + * + * + *
+   * Optional. A list of geo resource names that should be targeted/included.
+   * 
+ * + * + * repeated string targeted_geos = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetedGeos at the given index. + */ + public java.lang.String getTargetedGeos(int index) { + return targetedGeos_.get(index); + } + + /** + * + * + *
+   * Optional. A list of geo resource names that should be targeted/included.
+   * 
+ * + * + * repeated string targeted_geos = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetedGeos at the given index. + */ + public com.google.protobuf.ByteString getTargetedGeosBytes(int index) { + return targetedGeos_.getByteString(index); + } + + public static final int EXCLUDED_GEOS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList excludedGeos_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. A list of geo resource names that should be excluded.
+   * 
+ * + * + * repeated string excluded_geos = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the excludedGeos. + */ + public com.google.protobuf.ProtocolStringList getExcludedGeosList() { + return excludedGeos_; + } + + /** + * + * + *
+   * Optional. A list of geo resource names that should be excluded.
+   * 
+ * + * + * repeated string excluded_geos = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of excludedGeos. + */ + public int getExcludedGeosCount() { + return excludedGeos_.size(); + } + + /** + * + * + *
+   * Optional. A list of geo resource names that should be excluded.
+   * 
+ * + * + * repeated string excluded_geos = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The excludedGeos at the given index. + */ + public java.lang.String getExcludedGeos(int index) { + return excludedGeos_.get(index); + } + + /** + * + * + *
+   * Optional. A list of geo resource names that should be excluded.
+   * 
+ * + * + * repeated string excluded_geos = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedGeos at the given index. + */ + public com.google.protobuf.ByteString getExcludedGeosBytes(int index) { + return excludedGeos_.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 < targetedGeos_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, targetedGeos_.getRaw(i)); + } + for (int i = 0; i < excludedGeos_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, excludedGeos_.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 < targetedGeos_.size(); i++) { + dataSize += computeStringSizeNoTag(targetedGeos_.getRaw(i)); + } + size += dataSize; + size += 1 * getTargetedGeosList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < excludedGeos_.size(); i++) { + dataSize += computeStringSizeNoTag(excludedGeos_.getRaw(i)); + } + size += dataSize; + size += 1 * getExcludedGeosList().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.admanager.v1.GeoTargeting)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.GeoTargeting other = (com.google.ads.admanager.v1.GeoTargeting) obj; + + if (!getTargetedGeosList().equals(other.getTargetedGeosList())) return false; + if (!getExcludedGeosList().equals(other.getExcludedGeosList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTargetedGeosCount() > 0) { + hash = (37 * hash) + TARGETED_GEOS_FIELD_NUMBER; + hash = (53 * hash) + getTargetedGeosList().hashCode(); + } + if (getExcludedGeosCount() > 0) { + hash = (37 * hash) + EXCLUDED_GEOS_FIELD_NUMBER; + hash = (53 * hash) + getExcludedGeosList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.GeoTargeting parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GeoTargeting 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.admanager.v1.GeoTargeting parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GeoTargeting parseFrom( + 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.admanager.v1.GeoTargeting parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GeoTargeting parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GeoTargeting parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GeoTargeting parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GeoTargeting parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GeoTargeting parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GeoTargeting parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GeoTargeting parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.GeoTargeting prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Represents a list of targeted and excluded geos.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.GeoTargeting} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.GeoTargeting) + com.google.ads.admanager.v1.GeoTargetingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_GeoTargeting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_GeoTargeting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GeoTargeting.class, + com.google.ads.admanager.v1.GeoTargeting.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.GeoTargeting.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + targetedGeos_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludedGeos_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_GeoTargeting_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GeoTargeting getDefaultInstanceForType() { + return com.google.ads.admanager.v1.GeoTargeting.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.GeoTargeting build() { + com.google.ads.admanager.v1.GeoTargeting result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GeoTargeting buildPartial() { + com.google.ads.admanager.v1.GeoTargeting result = + new com.google.ads.admanager.v1.GeoTargeting(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.GeoTargeting result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + targetedGeos_.makeImmutable(); + result.targetedGeos_ = targetedGeos_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + excludedGeos_.makeImmutable(); + result.excludedGeos_ = excludedGeos_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.GeoTargeting) { + return mergeFrom((com.google.ads.admanager.v1.GeoTargeting) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.GeoTargeting other) { + if (other == com.google.ads.admanager.v1.GeoTargeting.getDefaultInstance()) return this; + if (!other.targetedGeos_.isEmpty()) { + if (targetedGeos_.isEmpty()) { + targetedGeos_ = other.targetedGeos_; + bitField0_ |= 0x00000001; + } else { + ensureTargetedGeosIsMutable(); + targetedGeos_.addAll(other.targetedGeos_); + } + onChanged(); + } + if (!other.excludedGeos_.isEmpty()) { + if (excludedGeos_.isEmpty()) { + excludedGeos_ = other.excludedGeos_; + bitField0_ |= 0x00000002; + } else { + ensureExcludedGeosIsMutable(); + excludedGeos_.addAll(other.excludedGeos_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTargetedGeosIsMutable(); + targetedGeos_.add(s); + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureExcludedGeosIsMutable(); + excludedGeos_.add(s); + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList targetedGeos_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureTargetedGeosIsMutable() { + if (!targetedGeos_.isModifiable()) { + targetedGeos_ = new com.google.protobuf.LazyStringArrayList(targetedGeos_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
+     * Optional. A list of geo resource names that should be targeted/included.
+     * 
+ * + * + * repeated string targeted_geos = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetedGeos. + */ + public com.google.protobuf.ProtocolStringList getTargetedGeosList() { + targetedGeos_.makeImmutable(); + return targetedGeos_; + } + + /** + * + * + *
+     * Optional. A list of geo resource names that should be targeted/included.
+     * 
+ * + * + * repeated string targeted_geos = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetedGeos. + */ + public int getTargetedGeosCount() { + return targetedGeos_.size(); + } + + /** + * + * + *
+     * Optional. A list of geo resource names that should be targeted/included.
+     * 
+ * + * + * repeated string targeted_geos = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetedGeos at the given index. + */ + public java.lang.String getTargetedGeos(int index) { + return targetedGeos_.get(index); + } + + /** + * + * + *
+     * Optional. A list of geo resource names that should be targeted/included.
+     * 
+ * + * + * repeated string targeted_geos = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetedGeos at the given index. + */ + public com.google.protobuf.ByteString getTargetedGeosBytes(int index) { + return targetedGeos_.getByteString(index); + } + + /** + * + * + *
+     * Optional. A list of geo resource names that should be targeted/included.
+     * 
+ * + * + * repeated string targeted_geos = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The targetedGeos to set. + * @return This builder for chaining. + */ + public Builder setTargetedGeos(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetedGeosIsMutable(); + targetedGeos_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of geo resource names that should be targeted/included.
+     * 
+ * + * + * repeated string targeted_geos = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The targetedGeos to add. + * @return This builder for chaining. + */ + public Builder addTargetedGeos(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetedGeosIsMutable(); + targetedGeos_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of geo resource names that should be targeted/included.
+     * 
+ * + * + * repeated string targeted_geos = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param values The targetedGeos to add. + * @return This builder for chaining. + */ + public Builder addAllTargetedGeos(java.lang.Iterable values) { + ensureTargetedGeosIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetedGeos_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of geo resource names that should be targeted/included.
+     * 
+ * + * + * repeated string targeted_geos = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTargetedGeos() { + targetedGeos_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of geo resource names that should be targeted/included.
+     * 
+ * + * + * repeated string targeted_geos = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the targetedGeos to add. + * @return This builder for chaining. + */ + public Builder addTargetedGeosBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTargetedGeosIsMutable(); + targetedGeos_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList excludedGeos_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureExcludedGeosIsMutable() { + if (!excludedGeos_.isModifiable()) { + excludedGeos_ = new com.google.protobuf.LazyStringArrayList(excludedGeos_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
+     * Optional. A list of geo resource names that should be excluded.
+     * 
+ * + * + * repeated string excluded_geos = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the excludedGeos. + */ + public com.google.protobuf.ProtocolStringList getExcludedGeosList() { + excludedGeos_.makeImmutable(); + return excludedGeos_; + } + + /** + * + * + *
+     * Optional. A list of geo resource names that should be excluded.
+     * 
+ * + * + * repeated string excluded_geos = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of excludedGeos. + */ + public int getExcludedGeosCount() { + return excludedGeos_.size(); + } + + /** + * + * + *
+     * Optional. A list of geo resource names that should be excluded.
+     * 
+ * + * + * repeated string excluded_geos = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The excludedGeos at the given index. + */ + public java.lang.String getExcludedGeos(int index) { + return excludedGeos_.get(index); + } + + /** + * + * + *
+     * Optional. A list of geo resource names that should be excluded.
+     * 
+ * + * + * repeated string excluded_geos = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedGeos at the given index. + */ + public com.google.protobuf.ByteString getExcludedGeosBytes(int index) { + return excludedGeos_.getByteString(index); + } + + /** + * + * + *
+     * Optional. A list of geo resource names that should be excluded.
+     * 
+ * + * + * repeated string excluded_geos = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The excludedGeos to set. + * @return This builder for chaining. + */ + public Builder setExcludedGeos(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedGeosIsMutable(); + excludedGeos_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of geo resource names that should be excluded.
+     * 
+ * + * + * repeated string excluded_geos = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The excludedGeos to add. + * @return This builder for chaining. + */ + public Builder addExcludedGeos(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedGeosIsMutable(); + excludedGeos_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of geo resource names that should be excluded.
+     * 
+ * + * + * repeated string excluded_geos = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param values The excludedGeos to add. + * @return This builder for chaining. + */ + public Builder addAllExcludedGeos(java.lang.Iterable values) { + ensureExcludedGeosIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, excludedGeos_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of geo resource names that should be excluded.
+     * 
+ * + * + * repeated string excluded_geos = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearExcludedGeos() { + excludedGeos_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of geo resource names that should be excluded.
+     * 
+ * + * + * repeated string excluded_geos = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the excludedGeos to add. + * @return This builder for chaining. + */ + public Builder addExcludedGeosBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureExcludedGeosIsMutable(); + excludedGeos_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.GeoTargeting) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.GeoTargeting) + private static final com.google.ads.admanager.v1.GeoTargeting DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.GeoTargeting(); + } + + public static com.google.ads.admanager.v1.GeoTargeting getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GeoTargeting parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.GeoTargeting getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GeoTargetingOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GeoTargetingOrBuilder.java new file mode 100644 index 000000000000..efcf1c47e386 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GeoTargetingOrBuilder.java @@ -0,0 +1,150 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface GeoTargetingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.GeoTargeting) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. A list of geo resource names that should be targeted/included.
+   * 
+ * + * + * repeated string targeted_geos = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetedGeos. + */ + java.util.List getTargetedGeosList(); + + /** + * + * + *
+   * Optional. A list of geo resource names that should be targeted/included.
+   * 
+ * + * + * repeated string targeted_geos = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetedGeos. + */ + int getTargetedGeosCount(); + + /** + * + * + *
+   * Optional. A list of geo resource names that should be targeted/included.
+   * 
+ * + * + * repeated string targeted_geos = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetedGeos at the given index. + */ + java.lang.String getTargetedGeos(int index); + + /** + * + * + *
+   * Optional. A list of geo resource names that should be targeted/included.
+   * 
+ * + * + * repeated string targeted_geos = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetedGeos at the given index. + */ + com.google.protobuf.ByteString getTargetedGeosBytes(int index); + + /** + * + * + *
+   * Optional. A list of geo resource names that should be excluded.
+   * 
+ * + * + * repeated string excluded_geos = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the excludedGeos. + */ + java.util.List getExcludedGeosList(); + + /** + * + * + *
+   * Optional. A list of geo resource names that should be excluded.
+   * 
+ * + * + * repeated string excluded_geos = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of excludedGeos. + */ + int getExcludedGeosCount(); + + /** + * + * + *
+   * Optional. A list of geo resource names that should be excluded.
+   * 
+ * + * + * repeated string excluded_geos = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The excludedGeos at the given index. + */ + java.lang.String getExcludedGeos(int index); + + /** + * + * + *
+   * Optional. A list of geo resource names that should be excluded.
+   * 
+ * + * + * repeated string excluded_geos = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedGeos at the given index. + */ + com.google.protobuf.ByteString getExcludedGeosBytes(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetAdBreakRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetAdBreakRequest.java new file mode 100644 index 000000000000..b070ba81a5f3 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetAdBreakRequest.java @@ -0,0 +1,682 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/ad_break_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Request object for `GetAdBreak` method.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.GetAdBreakRequest} + */ +public final class GetAdBreakRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.GetAdBreakRequest) + GetAdBreakRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetAdBreakRequest.newBuilder() to construct. + private GetAdBreakRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetAdBreakRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetAdBreakRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdBreakServiceProto + .internal_static_google_ads_admanager_v1_GetAdBreakRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdBreakServiceProto + .internal_static_google_ads_admanager_v1_GetAdBreakRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetAdBreakRequest.class, + com.google.ads.admanager.v1.GetAdBreakRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the AdBreak using the asset key or custom
+   * asset key.
+   *
+   * Format:
+   * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break_id}`
+   * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}/adBreaks/{ad_break_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 resource name of the AdBreak using the asset key or custom
+   * asset key.
+   *
+   * Format:
+   * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break_id}`
+   * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}/adBreaks/{ad_break_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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.ads.admanager.v1.GetAdBreakRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.GetAdBreakRequest other = + (com.google.ads.admanager.v1.GetAdBreakRequest) 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.ads.admanager.v1.GetAdBreakRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetAdBreakRequest 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.admanager.v1.GetAdBreakRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetAdBreakRequest parseFrom( + 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.admanager.v1.GetAdBreakRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetAdBreakRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetAdBreakRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetAdBreakRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetAdBreakRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetAdBreakRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetAdBreakRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetAdBreakRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.GetAdBreakRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request object for `GetAdBreak` method.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.GetAdBreakRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.GetAdBreakRequest) + com.google.ads.admanager.v1.GetAdBreakRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdBreakServiceProto + .internal_static_google_ads_admanager_v1_GetAdBreakRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdBreakServiceProto + .internal_static_google_ads_admanager_v1_GetAdBreakRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetAdBreakRequest.class, + com.google.ads.admanager.v1.GetAdBreakRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.GetAdBreakRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.AdBreakServiceProto + .internal_static_google_ads_admanager_v1_GetAdBreakRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetAdBreakRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.GetAdBreakRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetAdBreakRequest build() { + com.google.ads.admanager.v1.GetAdBreakRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetAdBreakRequest buildPartial() { + com.google.ads.admanager.v1.GetAdBreakRequest result = + new com.google.ads.admanager.v1.GetAdBreakRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.GetAdBreakRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.GetAdBreakRequest) { + return mergeFrom((com.google.ads.admanager.v1.GetAdBreakRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.GetAdBreakRequest other) { + if (other == com.google.ads.admanager.v1.GetAdBreakRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the AdBreak using the asset key or custom
+     * asset key.
+     *
+     * Format:
+     * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break_id}`
+     * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}/adBreaks/{ad_break_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 resource name of the AdBreak using the asset key or custom
+     * asset key.
+     *
+     * Format:
+     * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break_id}`
+     * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}/adBreaks/{ad_break_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 resource name of the AdBreak using the asset key or custom
+     * asset key.
+     *
+     * Format:
+     * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break_id}`
+     * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}/adBreaks/{ad_break_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 resource name of the AdBreak using the asset key or custom
+     * asset key.
+     *
+     * Format:
+     * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break_id}`
+     * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}/adBreaks/{ad_break_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 resource name of the AdBreak using the asset key or custom
+     * asset key.
+     *
+     * Format:
+     * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break_id}`
+     * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}/adBreaks/{ad_break_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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.GetAdBreakRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.GetAdBreakRequest) + private static final com.google.ads.admanager.v1.GetAdBreakRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.GetAdBreakRequest(); + } + + public static com.google.ads.admanager.v1.GetAdBreakRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAdBreakRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.GetAdBreakRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetAdBreakRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetAdBreakRequestOrBuilder.java new file mode 100644 index 000000000000..f6d0563f215e --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetAdBreakRequestOrBuilder.java @@ -0,0 +1,66 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/ad_break_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface GetAdBreakRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.GetAdBreakRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the AdBreak using the asset key or custom
+   * asset key.
+   *
+   * Format:
+   * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break_id}`
+   * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}/adBreaks/{ad_break_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource name of the AdBreak using the asset key or custom
+   * asset key.
+   *
+   * Format:
+   * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break_id}`
+   * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}/adBreaks/{ad_break_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-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetBandwidthGroupRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetBandwidthGroupRequest.java new file mode 100644 index 000000000000..8e93d96c49a7 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetBandwidthGroupRequest.java @@ -0,0 +1,655 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/bandwidth_group_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Request object for `GetBandwidthGroup` method.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.GetBandwidthGroupRequest} + */ +public final class GetBandwidthGroupRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.GetBandwidthGroupRequest) + GetBandwidthGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetBandwidthGroupRequest.newBuilder() to construct. + private GetBandwidthGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetBandwidthGroupRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetBandwidthGroupRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.BandwidthGroupServiceProto + .internal_static_google_ads_admanager_v1_GetBandwidthGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.BandwidthGroupServiceProto + .internal_static_google_ads_admanager_v1_GetBandwidthGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetBandwidthGroupRequest.class, + com.google.ads.admanager.v1.GetBandwidthGroupRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the BandwidthGroup.
+   * Format: `networks/{network_code}/bandwidthGroups/{bandwidth_group_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 resource name of the BandwidthGroup.
+   * Format: `networks/{network_code}/bandwidthGroups/{bandwidth_group_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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.ads.admanager.v1.GetBandwidthGroupRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.GetBandwidthGroupRequest other = + (com.google.ads.admanager.v1.GetBandwidthGroupRequest) 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.ads.admanager.v1.GetBandwidthGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetBandwidthGroupRequest 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.admanager.v1.GetBandwidthGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetBandwidthGroupRequest parseFrom( + 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.admanager.v1.GetBandwidthGroupRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetBandwidthGroupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetBandwidthGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetBandwidthGroupRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetBandwidthGroupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetBandwidthGroupRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetBandwidthGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetBandwidthGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.GetBandwidthGroupRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request object for `GetBandwidthGroup` method.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.GetBandwidthGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.GetBandwidthGroupRequest) + com.google.ads.admanager.v1.GetBandwidthGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.BandwidthGroupServiceProto + .internal_static_google_ads_admanager_v1_GetBandwidthGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.BandwidthGroupServiceProto + .internal_static_google_ads_admanager_v1_GetBandwidthGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetBandwidthGroupRequest.class, + com.google.ads.admanager.v1.GetBandwidthGroupRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.GetBandwidthGroupRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.BandwidthGroupServiceProto + .internal_static_google_ads_admanager_v1_GetBandwidthGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetBandwidthGroupRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.GetBandwidthGroupRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetBandwidthGroupRequest build() { + com.google.ads.admanager.v1.GetBandwidthGroupRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetBandwidthGroupRequest buildPartial() { + com.google.ads.admanager.v1.GetBandwidthGroupRequest result = + new com.google.ads.admanager.v1.GetBandwidthGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.GetBandwidthGroupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.GetBandwidthGroupRequest) { + return mergeFrom((com.google.ads.admanager.v1.GetBandwidthGroupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.GetBandwidthGroupRequest other) { + if (other == com.google.ads.admanager.v1.GetBandwidthGroupRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the BandwidthGroup.
+     * Format: `networks/{network_code}/bandwidthGroups/{bandwidth_group_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 resource name of the BandwidthGroup.
+     * Format: `networks/{network_code}/bandwidthGroups/{bandwidth_group_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 resource name of the BandwidthGroup.
+     * Format: `networks/{network_code}/bandwidthGroups/{bandwidth_group_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 resource name of the BandwidthGroup.
+     * Format: `networks/{network_code}/bandwidthGroups/{bandwidth_group_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 resource name of the BandwidthGroup.
+     * Format: `networks/{network_code}/bandwidthGroups/{bandwidth_group_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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.GetBandwidthGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.GetBandwidthGroupRequest) + private static final com.google.ads.admanager.v1.GetBandwidthGroupRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.GetBandwidthGroupRequest(); + } + + public static com.google.ads.admanager.v1.GetBandwidthGroupRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetBandwidthGroupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.GetBandwidthGroupRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetBandwidthGroupRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetBandwidthGroupRequestOrBuilder.java new file mode 100644 index 000000000000..9514af4624d9 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetBandwidthGroupRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/bandwidth_group_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface GetBandwidthGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.GetBandwidthGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the BandwidthGroup.
+   * Format: `networks/{network_code}/bandwidthGroups/{bandwidth_group_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource name of the BandwidthGroup.
+   * Format: `networks/{network_code}/bandwidthGroups/{bandwidth_group_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-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetCustomTargetingValueRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetCustomTargetingValueRequest.java index 61c83a856ae4..df9870d1cf88 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetCustomTargetingValueRequest.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetCustomTargetingValueRequest.java @@ -76,7 +76,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * Required. The resource name of the CustomTargetingValue.
    * Format:
-   * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}/customTargetingValues/{custom_targeting_value_id}`
+   * `networks/{network_code}/customTargetingValues/{custom_targeting_value_id}`
    * 
* * @@ -104,7 +104,7 @@ public java.lang.String getName() { *
    * Required. The resource name of the CustomTargetingValue.
    * Format:
-   * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}/customTargetingValues/{custom_targeting_value_id}`
+   * `networks/{network_code}/customTargetingValues/{custom_targeting_value_id}`
    * 
* * @@ -478,7 +478,7 @@ public Builder mergeFrom( *
      * Required. The resource name of the CustomTargetingValue.
      * Format:
-     * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}/customTargetingValues/{custom_targeting_value_id}`
+     * `networks/{network_code}/customTargetingValues/{custom_targeting_value_id}`
      * 
* * @@ -505,7 +505,7 @@ public java.lang.String getName() { *
      * Required. The resource name of the CustomTargetingValue.
      * Format:
-     * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}/customTargetingValues/{custom_targeting_value_id}`
+     * `networks/{network_code}/customTargetingValues/{custom_targeting_value_id}`
      * 
* * @@ -532,7 +532,7 @@ public com.google.protobuf.ByteString getNameBytes() { *
      * Required. The resource name of the CustomTargetingValue.
      * Format:
-     * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}/customTargetingValues/{custom_targeting_value_id}`
+     * `networks/{network_code}/customTargetingValues/{custom_targeting_value_id}`
      * 
* * @@ -558,7 +558,7 @@ public Builder setName(java.lang.String value) { *
      * Required. The resource name of the CustomTargetingValue.
      * Format:
-     * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}/customTargetingValues/{custom_targeting_value_id}`
+     * `networks/{network_code}/customTargetingValues/{custom_targeting_value_id}`
      * 
* * @@ -580,7 +580,7 @@ public Builder clearName() { *
      * Required. The resource name of the CustomTargetingValue.
      * Format:
-     * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}/customTargetingValues/{custom_targeting_value_id}`
+     * `networks/{network_code}/customTargetingValues/{custom_targeting_value_id}`
      * 
* * diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetCustomTargetingValueRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetCustomTargetingValueRequestOrBuilder.java index fff5e5882310..f8ae3ac35373 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetCustomTargetingValueRequestOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetCustomTargetingValueRequestOrBuilder.java @@ -30,7 +30,7 @@ public interface GetCustomTargetingValueRequestOrBuilder *
    * Required. The resource name of the CustomTargetingValue.
    * Format:
-   * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}/customTargetingValues/{custom_targeting_value_id}`
+   * `networks/{network_code}/customTargetingValues/{custom_targeting_value_id}`
    * 
* * @@ -47,7 +47,7 @@ public interface GetCustomTargetingValueRequestOrBuilder *
    * Required. The resource name of the CustomTargetingValue.
    * Format:
-   * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}/customTargetingValues/{custom_targeting_value_id}`
+   * `networks/{network_code}/customTargetingValues/{custom_targeting_value_id}`
    * 
* * diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetDeviceCategoryRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetDeviceCategoryRequest.java new file mode 100644 index 000000000000..62a3e32850cf --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetDeviceCategoryRequest.java @@ -0,0 +1,655 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/device_category_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Request object for `GetDeviceCategory` method.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.GetDeviceCategoryRequest} + */ +public final class GetDeviceCategoryRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.GetDeviceCategoryRequest) + GetDeviceCategoryRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetDeviceCategoryRequest.newBuilder() to construct. + private GetDeviceCategoryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetDeviceCategoryRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetDeviceCategoryRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.DeviceCategoryServiceProto + .internal_static_google_ads_admanager_v1_GetDeviceCategoryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.DeviceCategoryServiceProto + .internal_static_google_ads_admanager_v1_GetDeviceCategoryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetDeviceCategoryRequest.class, + com.google.ads.admanager.v1.GetDeviceCategoryRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the DeviceCategory.
+   * Format: `networks/{network_code}/deviceCategories/{device_category_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 resource name of the DeviceCategory.
+   * Format: `networks/{network_code}/deviceCategories/{device_category_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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.ads.admanager.v1.GetDeviceCategoryRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.GetDeviceCategoryRequest other = + (com.google.ads.admanager.v1.GetDeviceCategoryRequest) 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.ads.admanager.v1.GetDeviceCategoryRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetDeviceCategoryRequest 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.admanager.v1.GetDeviceCategoryRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetDeviceCategoryRequest parseFrom( + 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.admanager.v1.GetDeviceCategoryRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetDeviceCategoryRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetDeviceCategoryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetDeviceCategoryRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetDeviceCategoryRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetDeviceCategoryRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetDeviceCategoryRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetDeviceCategoryRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.GetDeviceCategoryRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request object for `GetDeviceCategory` method.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.GetDeviceCategoryRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.GetDeviceCategoryRequest) + com.google.ads.admanager.v1.GetDeviceCategoryRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.DeviceCategoryServiceProto + .internal_static_google_ads_admanager_v1_GetDeviceCategoryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.DeviceCategoryServiceProto + .internal_static_google_ads_admanager_v1_GetDeviceCategoryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetDeviceCategoryRequest.class, + com.google.ads.admanager.v1.GetDeviceCategoryRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.GetDeviceCategoryRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.DeviceCategoryServiceProto + .internal_static_google_ads_admanager_v1_GetDeviceCategoryRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetDeviceCategoryRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.GetDeviceCategoryRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetDeviceCategoryRequest build() { + com.google.ads.admanager.v1.GetDeviceCategoryRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetDeviceCategoryRequest buildPartial() { + com.google.ads.admanager.v1.GetDeviceCategoryRequest result = + new com.google.ads.admanager.v1.GetDeviceCategoryRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.GetDeviceCategoryRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.GetDeviceCategoryRequest) { + return mergeFrom((com.google.ads.admanager.v1.GetDeviceCategoryRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.GetDeviceCategoryRequest other) { + if (other == com.google.ads.admanager.v1.GetDeviceCategoryRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the DeviceCategory.
+     * Format: `networks/{network_code}/deviceCategories/{device_category_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 resource name of the DeviceCategory.
+     * Format: `networks/{network_code}/deviceCategories/{device_category_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 resource name of the DeviceCategory.
+     * Format: `networks/{network_code}/deviceCategories/{device_category_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 resource name of the DeviceCategory.
+     * Format: `networks/{network_code}/deviceCategories/{device_category_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 resource name of the DeviceCategory.
+     * Format: `networks/{network_code}/deviceCategories/{device_category_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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.GetDeviceCategoryRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.GetDeviceCategoryRequest) + private static final com.google.ads.admanager.v1.GetDeviceCategoryRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.GetDeviceCategoryRequest(); + } + + public static com.google.ads.admanager.v1.GetDeviceCategoryRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDeviceCategoryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.GetDeviceCategoryRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetDeviceCategoryRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetDeviceCategoryRequestOrBuilder.java new file mode 100644 index 000000000000..129fcdb92b89 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetDeviceCategoryRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/device_category_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface GetDeviceCategoryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.GetDeviceCategoryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the DeviceCategory.
+   * Format: `networks/{network_code}/deviceCategories/{device_category_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource name of the DeviceCategory.
+   * Format: `networks/{network_code}/deviceCategories/{device_category_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-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetGeoTargetRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetGeoTargetRequest.java new file mode 100644 index 000000000000..d40d655c067e --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetGeoTargetRequest.java @@ -0,0 +1,655 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/geo_target_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Request object for `GetGeoTarget` method.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.GetGeoTargetRequest} + */ +public final class GetGeoTargetRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.GetGeoTargetRequest) + GetGeoTargetRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetGeoTargetRequest.newBuilder() to construct. + private GetGeoTargetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetGeoTargetRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetGeoTargetRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.GeoTargetServiceProto + .internal_static_google_ads_admanager_v1_GetGeoTargetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.GeoTargetServiceProto + .internal_static_google_ads_admanager_v1_GetGeoTargetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetGeoTargetRequest.class, + com.google.ads.admanager.v1.GetGeoTargetRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the GeoTarget.
+   * Format: `networks/{network_code}/geoTargets/{geo_target_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 resource name of the GeoTarget.
+   * Format: `networks/{network_code}/geoTargets/{geo_target_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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.ads.admanager.v1.GetGeoTargetRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.GetGeoTargetRequest other = + (com.google.ads.admanager.v1.GetGeoTargetRequest) 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.ads.admanager.v1.GetGeoTargetRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetGeoTargetRequest 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.admanager.v1.GetGeoTargetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetGeoTargetRequest parseFrom( + 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.admanager.v1.GetGeoTargetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetGeoTargetRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetGeoTargetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetGeoTargetRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetGeoTargetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetGeoTargetRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetGeoTargetRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetGeoTargetRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.GetGeoTargetRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request object for `GetGeoTarget` method.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.GetGeoTargetRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.GetGeoTargetRequest) + com.google.ads.admanager.v1.GetGeoTargetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.GeoTargetServiceProto + .internal_static_google_ads_admanager_v1_GetGeoTargetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.GeoTargetServiceProto + .internal_static_google_ads_admanager_v1_GetGeoTargetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetGeoTargetRequest.class, + com.google.ads.admanager.v1.GetGeoTargetRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.GetGeoTargetRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.GeoTargetServiceProto + .internal_static_google_ads_admanager_v1_GetGeoTargetRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetGeoTargetRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.GetGeoTargetRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetGeoTargetRequest build() { + com.google.ads.admanager.v1.GetGeoTargetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetGeoTargetRequest buildPartial() { + com.google.ads.admanager.v1.GetGeoTargetRequest result = + new com.google.ads.admanager.v1.GetGeoTargetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.GetGeoTargetRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.GetGeoTargetRequest) { + return mergeFrom((com.google.ads.admanager.v1.GetGeoTargetRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.GetGeoTargetRequest other) { + if (other == com.google.ads.admanager.v1.GetGeoTargetRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the GeoTarget.
+     * Format: `networks/{network_code}/geoTargets/{geo_target_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 resource name of the GeoTarget.
+     * Format: `networks/{network_code}/geoTargets/{geo_target_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 resource name of the GeoTarget.
+     * Format: `networks/{network_code}/geoTargets/{geo_target_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 resource name of the GeoTarget.
+     * Format: `networks/{network_code}/geoTargets/{geo_target_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 resource name of the GeoTarget.
+     * Format: `networks/{network_code}/geoTargets/{geo_target_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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.GetGeoTargetRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.GetGeoTargetRequest) + private static final com.google.ads.admanager.v1.GetGeoTargetRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.GetGeoTargetRequest(); + } + + public static com.google.ads.admanager.v1.GetGeoTargetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetGeoTargetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.GetGeoTargetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetGeoTargetRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetGeoTargetRequestOrBuilder.java new file mode 100644 index 000000000000..48edaf955a86 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetGeoTargetRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/geo_target_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface GetGeoTargetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.GetGeoTargetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the GeoTarget.
+   * Format: `networks/{network_code}/geoTargets/{geo_target_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource name of the GeoTarget.
+   * Format: `networks/{network_code}/geoTargets/{geo_target_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-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetOperatingSystemRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetOperatingSystemRequest.java new file mode 100644 index 000000000000..252530ab1c60 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetOperatingSystemRequest.java @@ -0,0 +1,656 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/operating_system_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Request object for `GetOperatingSystem` method.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.GetOperatingSystemRequest} + */ +public final class GetOperatingSystemRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.GetOperatingSystemRequest) + GetOperatingSystemRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetOperatingSystemRequest.newBuilder() to construct. + private GetOperatingSystemRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetOperatingSystemRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetOperatingSystemRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.OperatingSystemServiceProto + .internal_static_google_ads_admanager_v1_GetOperatingSystemRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.OperatingSystemServiceProto + .internal_static_google_ads_admanager_v1_GetOperatingSystemRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetOperatingSystemRequest.class, + com.google.ads.admanager.v1.GetOperatingSystemRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the OperatingSystem.
+   * Format: `networks/{network_code}/operatingSystems/{operating_system_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 resource name of the OperatingSystem.
+   * Format: `networks/{network_code}/operatingSystems/{operating_system_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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.ads.admanager.v1.GetOperatingSystemRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.GetOperatingSystemRequest other = + (com.google.ads.admanager.v1.GetOperatingSystemRequest) 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.ads.admanager.v1.GetOperatingSystemRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetOperatingSystemRequest 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.admanager.v1.GetOperatingSystemRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetOperatingSystemRequest parseFrom( + 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.admanager.v1.GetOperatingSystemRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetOperatingSystemRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetOperatingSystemRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetOperatingSystemRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetOperatingSystemRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetOperatingSystemRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetOperatingSystemRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetOperatingSystemRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.GetOperatingSystemRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request object for `GetOperatingSystem` method.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.GetOperatingSystemRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.GetOperatingSystemRequest) + com.google.ads.admanager.v1.GetOperatingSystemRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.OperatingSystemServiceProto + .internal_static_google_ads_admanager_v1_GetOperatingSystemRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.OperatingSystemServiceProto + .internal_static_google_ads_admanager_v1_GetOperatingSystemRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetOperatingSystemRequest.class, + com.google.ads.admanager.v1.GetOperatingSystemRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.GetOperatingSystemRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.OperatingSystemServiceProto + .internal_static_google_ads_admanager_v1_GetOperatingSystemRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetOperatingSystemRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.GetOperatingSystemRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetOperatingSystemRequest build() { + com.google.ads.admanager.v1.GetOperatingSystemRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetOperatingSystemRequest buildPartial() { + com.google.ads.admanager.v1.GetOperatingSystemRequest result = + new com.google.ads.admanager.v1.GetOperatingSystemRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.GetOperatingSystemRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.GetOperatingSystemRequest) { + return mergeFrom((com.google.ads.admanager.v1.GetOperatingSystemRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.GetOperatingSystemRequest other) { + if (other == com.google.ads.admanager.v1.GetOperatingSystemRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the OperatingSystem.
+     * Format: `networks/{network_code}/operatingSystems/{operating_system_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 resource name of the OperatingSystem.
+     * Format: `networks/{network_code}/operatingSystems/{operating_system_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 resource name of the OperatingSystem.
+     * Format: `networks/{network_code}/operatingSystems/{operating_system_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 resource name of the OperatingSystem.
+     * Format: `networks/{network_code}/operatingSystems/{operating_system_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 resource name of the OperatingSystem.
+     * Format: `networks/{network_code}/operatingSystems/{operating_system_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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.GetOperatingSystemRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.GetOperatingSystemRequest) + private static final com.google.ads.admanager.v1.GetOperatingSystemRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.GetOperatingSystemRequest(); + } + + public static com.google.ads.admanager.v1.GetOperatingSystemRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetOperatingSystemRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.GetOperatingSystemRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetOperatingSystemRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetOperatingSystemRequestOrBuilder.java new file mode 100644 index 000000000000..e2b349589f1a --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetOperatingSystemRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/operating_system_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface GetOperatingSystemRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.GetOperatingSystemRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the OperatingSystem.
+   * Format: `networks/{network_code}/operatingSystems/{operating_system_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource name of the OperatingSystem.
+   * Format: `networks/{network_code}/operatingSystems/{operating_system_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-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetOperatingSystemVersionRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetOperatingSystemVersionRequest.java new file mode 100644 index 000000000000..929140ec08f6 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetOperatingSystemVersionRequest.java @@ -0,0 +1,668 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/operating_system_version_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Request object for `GetOperatingSystemVersion` method.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.GetOperatingSystemVersionRequest} + */ +public final class GetOperatingSystemVersionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.GetOperatingSystemVersionRequest) + GetOperatingSystemVersionRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetOperatingSystemVersionRequest.newBuilder() to construct. + private GetOperatingSystemVersionRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetOperatingSystemVersionRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetOperatingSystemVersionRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.OperatingSystemVersionServiceProto + .internal_static_google_ads_admanager_v1_GetOperatingSystemVersionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.OperatingSystemVersionServiceProto + .internal_static_google_ads_admanager_v1_GetOperatingSystemVersionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetOperatingSystemVersionRequest.class, + com.google.ads.admanager.v1.GetOperatingSystemVersionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the OperatingSystemVersion.
+   * Format:
+   * `networks/{network_code}/operatingSystemVersions/{operating_system_version_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 resource name of the OperatingSystemVersion.
+   * Format:
+   * `networks/{network_code}/operatingSystemVersions/{operating_system_version_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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.ads.admanager.v1.GetOperatingSystemVersionRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.GetOperatingSystemVersionRequest other = + (com.google.ads.admanager.v1.GetOperatingSystemVersionRequest) 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.ads.admanager.v1.GetOperatingSystemVersionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetOperatingSystemVersionRequest 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.admanager.v1.GetOperatingSystemVersionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetOperatingSystemVersionRequest parseFrom( + 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.admanager.v1.GetOperatingSystemVersionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetOperatingSystemVersionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetOperatingSystemVersionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetOperatingSystemVersionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetOperatingSystemVersionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetOperatingSystemVersionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetOperatingSystemVersionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetOperatingSystemVersionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.GetOperatingSystemVersionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request object for `GetOperatingSystemVersion` method.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.GetOperatingSystemVersionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.GetOperatingSystemVersionRequest) + com.google.ads.admanager.v1.GetOperatingSystemVersionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.OperatingSystemVersionServiceProto + .internal_static_google_ads_admanager_v1_GetOperatingSystemVersionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.OperatingSystemVersionServiceProto + .internal_static_google_ads_admanager_v1_GetOperatingSystemVersionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetOperatingSystemVersionRequest.class, + com.google.ads.admanager.v1.GetOperatingSystemVersionRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.GetOperatingSystemVersionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.OperatingSystemVersionServiceProto + .internal_static_google_ads_admanager_v1_GetOperatingSystemVersionRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetOperatingSystemVersionRequest + getDefaultInstanceForType() { + return com.google.ads.admanager.v1.GetOperatingSystemVersionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetOperatingSystemVersionRequest build() { + com.google.ads.admanager.v1.GetOperatingSystemVersionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetOperatingSystemVersionRequest buildPartial() { + com.google.ads.admanager.v1.GetOperatingSystemVersionRequest result = + new com.google.ads.admanager.v1.GetOperatingSystemVersionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.ads.admanager.v1.GetOperatingSystemVersionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.GetOperatingSystemVersionRequest) { + return mergeFrom((com.google.ads.admanager.v1.GetOperatingSystemVersionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.GetOperatingSystemVersionRequest other) { + if (other + == com.google.ads.admanager.v1.GetOperatingSystemVersionRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the OperatingSystemVersion.
+     * Format:
+     * `networks/{network_code}/operatingSystemVersions/{operating_system_version_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 resource name of the OperatingSystemVersion.
+     * Format:
+     * `networks/{network_code}/operatingSystemVersions/{operating_system_version_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 resource name of the OperatingSystemVersion.
+     * Format:
+     * `networks/{network_code}/operatingSystemVersions/{operating_system_version_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 resource name of the OperatingSystemVersion.
+     * Format:
+     * `networks/{network_code}/operatingSystemVersions/{operating_system_version_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 resource name of the OperatingSystemVersion.
+     * Format:
+     * `networks/{network_code}/operatingSystemVersions/{operating_system_version_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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.GetOperatingSystemVersionRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.GetOperatingSystemVersionRequest) + private static final com.google.ads.admanager.v1.GetOperatingSystemVersionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.GetOperatingSystemVersionRequest(); + } + + public static com.google.ads.admanager.v1.GetOperatingSystemVersionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetOperatingSystemVersionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.GetOperatingSystemVersionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetOperatingSystemVersionRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetOperatingSystemVersionRequestOrBuilder.java new file mode 100644 index 000000000000..b92e3e28a08d --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetOperatingSystemVersionRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/operating_system_version_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface GetOperatingSystemVersionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.GetOperatingSystemVersionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the OperatingSystemVersion.
+   * Format:
+   * `networks/{network_code}/operatingSystemVersions/{operating_system_version_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource name of the OperatingSystemVersion.
+   * Format:
+   * `networks/{network_code}/operatingSystemVersions/{operating_system_version_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-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetPrivateAuctionDealRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetPrivateAuctionDealRequest.java new file mode 100644 index 000000000000..a02d7412fca0 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetPrivateAuctionDealRequest.java @@ -0,0 +1,663 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/private_auction_deal_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Request object for `GetPrivateAuctionDeal` method.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.GetPrivateAuctionDealRequest} + */ +public final class GetPrivateAuctionDealRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.GetPrivateAuctionDealRequest) + GetPrivateAuctionDealRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetPrivateAuctionDealRequest.newBuilder() to construct. + private GetPrivateAuctionDealRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetPrivateAuctionDealRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetPrivateAuctionDealRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PrivateAuctionDealServiceProto + .internal_static_google_ads_admanager_v1_GetPrivateAuctionDealRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PrivateAuctionDealServiceProto + .internal_static_google_ads_admanager_v1_GetPrivateAuctionDealRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetPrivateAuctionDealRequest.class, + com.google.ads.admanager.v1.GetPrivateAuctionDealRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the PrivateAuctionDeal.
+   * Format:
+   * `networks/{network_code}/privateAuctionDeals/{private_auction_deal_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 resource name of the PrivateAuctionDeal.
+   * Format:
+   * `networks/{network_code}/privateAuctionDeals/{private_auction_deal_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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.ads.admanager.v1.GetPrivateAuctionDealRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.GetPrivateAuctionDealRequest other = + (com.google.ads.admanager.v1.GetPrivateAuctionDealRequest) 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.ads.admanager.v1.GetPrivateAuctionDealRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetPrivateAuctionDealRequest 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.admanager.v1.GetPrivateAuctionDealRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetPrivateAuctionDealRequest parseFrom( + 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.admanager.v1.GetPrivateAuctionDealRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetPrivateAuctionDealRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetPrivateAuctionDealRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetPrivateAuctionDealRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetPrivateAuctionDealRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetPrivateAuctionDealRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetPrivateAuctionDealRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetPrivateAuctionDealRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.GetPrivateAuctionDealRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request object for `GetPrivateAuctionDeal` method.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.GetPrivateAuctionDealRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.GetPrivateAuctionDealRequest) + com.google.ads.admanager.v1.GetPrivateAuctionDealRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PrivateAuctionDealServiceProto + .internal_static_google_ads_admanager_v1_GetPrivateAuctionDealRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PrivateAuctionDealServiceProto + .internal_static_google_ads_admanager_v1_GetPrivateAuctionDealRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetPrivateAuctionDealRequest.class, + com.google.ads.admanager.v1.GetPrivateAuctionDealRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.GetPrivateAuctionDealRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.PrivateAuctionDealServiceProto + .internal_static_google_ads_admanager_v1_GetPrivateAuctionDealRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetPrivateAuctionDealRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.GetPrivateAuctionDealRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetPrivateAuctionDealRequest build() { + com.google.ads.admanager.v1.GetPrivateAuctionDealRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetPrivateAuctionDealRequest buildPartial() { + com.google.ads.admanager.v1.GetPrivateAuctionDealRequest result = + new com.google.ads.admanager.v1.GetPrivateAuctionDealRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.GetPrivateAuctionDealRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.GetPrivateAuctionDealRequest) { + return mergeFrom((com.google.ads.admanager.v1.GetPrivateAuctionDealRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.GetPrivateAuctionDealRequest other) { + if (other == com.google.ads.admanager.v1.GetPrivateAuctionDealRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the PrivateAuctionDeal.
+     * Format:
+     * `networks/{network_code}/privateAuctionDeals/{private_auction_deal_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 resource name of the PrivateAuctionDeal.
+     * Format:
+     * `networks/{network_code}/privateAuctionDeals/{private_auction_deal_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 resource name of the PrivateAuctionDeal.
+     * Format:
+     * `networks/{network_code}/privateAuctionDeals/{private_auction_deal_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 resource name of the PrivateAuctionDeal.
+     * Format:
+     * `networks/{network_code}/privateAuctionDeals/{private_auction_deal_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 resource name of the PrivateAuctionDeal.
+     * Format:
+     * `networks/{network_code}/privateAuctionDeals/{private_auction_deal_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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.GetPrivateAuctionDealRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.GetPrivateAuctionDealRequest) + private static final com.google.ads.admanager.v1.GetPrivateAuctionDealRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.GetPrivateAuctionDealRequest(); + } + + public static com.google.ads.admanager.v1.GetPrivateAuctionDealRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetPrivateAuctionDealRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.GetPrivateAuctionDealRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetPrivateAuctionDealRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetPrivateAuctionDealRequestOrBuilder.java new file mode 100644 index 000000000000..f76146f53473 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetPrivateAuctionDealRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/private_auction_deal_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface GetPrivateAuctionDealRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.GetPrivateAuctionDealRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the PrivateAuctionDeal.
+   * Format:
+   * `networks/{network_code}/privateAuctionDeals/{private_auction_deal_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource name of the PrivateAuctionDeal.
+   * Format:
+   * `networks/{network_code}/privateAuctionDeals/{private_auction_deal_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-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetPrivateAuctionRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetPrivateAuctionRequest.java new file mode 100644 index 000000000000..c87a69874d50 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetPrivateAuctionRequest.java @@ -0,0 +1,662 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/private_auction_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Request object for `GetPrivateAuction` method.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.GetPrivateAuctionRequest} + */ +public final class GetPrivateAuctionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.GetPrivateAuctionRequest) + GetPrivateAuctionRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetPrivateAuctionRequest.newBuilder() to construct. + private GetPrivateAuctionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetPrivateAuctionRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetPrivateAuctionRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PrivateAuctionServiceProto + .internal_static_google_ads_admanager_v1_GetPrivateAuctionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PrivateAuctionServiceProto + .internal_static_google_ads_admanager_v1_GetPrivateAuctionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetPrivateAuctionRequest.class, + com.google.ads.admanager.v1.GetPrivateAuctionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the PrivateAuction.
+   * Format:
+   * `networks/{network_code}/privateAuctions/{private_auction_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 resource name of the PrivateAuction.
+   * Format:
+   * `networks/{network_code}/privateAuctions/{private_auction_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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.ads.admanager.v1.GetPrivateAuctionRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.GetPrivateAuctionRequest other = + (com.google.ads.admanager.v1.GetPrivateAuctionRequest) 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.ads.admanager.v1.GetPrivateAuctionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetPrivateAuctionRequest 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.admanager.v1.GetPrivateAuctionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetPrivateAuctionRequest parseFrom( + 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.admanager.v1.GetPrivateAuctionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetPrivateAuctionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetPrivateAuctionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetPrivateAuctionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetPrivateAuctionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetPrivateAuctionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetPrivateAuctionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetPrivateAuctionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.GetPrivateAuctionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request object for `GetPrivateAuction` method.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.GetPrivateAuctionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.GetPrivateAuctionRequest) + com.google.ads.admanager.v1.GetPrivateAuctionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PrivateAuctionServiceProto + .internal_static_google_ads_admanager_v1_GetPrivateAuctionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PrivateAuctionServiceProto + .internal_static_google_ads_admanager_v1_GetPrivateAuctionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetPrivateAuctionRequest.class, + com.google.ads.admanager.v1.GetPrivateAuctionRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.GetPrivateAuctionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.PrivateAuctionServiceProto + .internal_static_google_ads_admanager_v1_GetPrivateAuctionRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetPrivateAuctionRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.GetPrivateAuctionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetPrivateAuctionRequest build() { + com.google.ads.admanager.v1.GetPrivateAuctionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetPrivateAuctionRequest buildPartial() { + com.google.ads.admanager.v1.GetPrivateAuctionRequest result = + new com.google.ads.admanager.v1.GetPrivateAuctionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.GetPrivateAuctionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.GetPrivateAuctionRequest) { + return mergeFrom((com.google.ads.admanager.v1.GetPrivateAuctionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.GetPrivateAuctionRequest other) { + if (other == com.google.ads.admanager.v1.GetPrivateAuctionRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the PrivateAuction.
+     * Format:
+     * `networks/{network_code}/privateAuctions/{private_auction_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 resource name of the PrivateAuction.
+     * Format:
+     * `networks/{network_code}/privateAuctions/{private_auction_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 resource name of the PrivateAuction.
+     * Format:
+     * `networks/{network_code}/privateAuctions/{private_auction_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 resource name of the PrivateAuction.
+     * Format:
+     * `networks/{network_code}/privateAuctions/{private_auction_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 resource name of the PrivateAuction.
+     * Format:
+     * `networks/{network_code}/privateAuctions/{private_auction_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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.GetPrivateAuctionRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.GetPrivateAuctionRequest) + private static final com.google.ads.admanager.v1.GetPrivateAuctionRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.GetPrivateAuctionRequest(); + } + + public static com.google.ads.admanager.v1.GetPrivateAuctionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetPrivateAuctionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.GetPrivateAuctionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetPrivateAuctionRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetPrivateAuctionRequestOrBuilder.java new file mode 100644 index 000000000000..c0fe32de5a17 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetPrivateAuctionRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/private_auction_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface GetPrivateAuctionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.GetPrivateAuctionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the PrivateAuction.
+   * Format:
+   * `networks/{network_code}/privateAuctions/{private_auction_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource name of the PrivateAuction.
+   * Format:
+   * `networks/{network_code}/privateAuctions/{private_auction_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-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetProgrammaticBuyerRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetProgrammaticBuyerRequest.java new file mode 100644 index 000000000000..5400dcffaff3 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetProgrammaticBuyerRequest.java @@ -0,0 +1,663 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/programmatic_buyer_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Request object for `GetProgrammaticBuyer` method.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.GetProgrammaticBuyerRequest} + */ +public final class GetProgrammaticBuyerRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.GetProgrammaticBuyerRequest) + GetProgrammaticBuyerRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetProgrammaticBuyerRequest.newBuilder() to construct. + private GetProgrammaticBuyerRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetProgrammaticBuyerRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetProgrammaticBuyerRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ProgrammaticBuyerServiceProto + .internal_static_google_ads_admanager_v1_GetProgrammaticBuyerRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ProgrammaticBuyerServiceProto + .internal_static_google_ads_admanager_v1_GetProgrammaticBuyerRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetProgrammaticBuyerRequest.class, + com.google.ads.admanager.v1.GetProgrammaticBuyerRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the ProgrammaticBuyer.
+   * Format:
+   * `networks/{network_code}/programmaticBuyers/{buyer_account_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 resource name of the ProgrammaticBuyer.
+   * Format:
+   * `networks/{network_code}/programmaticBuyers/{buyer_account_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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.ads.admanager.v1.GetProgrammaticBuyerRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.GetProgrammaticBuyerRequest other = + (com.google.ads.admanager.v1.GetProgrammaticBuyerRequest) 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.ads.admanager.v1.GetProgrammaticBuyerRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetProgrammaticBuyerRequest 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.admanager.v1.GetProgrammaticBuyerRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetProgrammaticBuyerRequest parseFrom( + 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.admanager.v1.GetProgrammaticBuyerRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetProgrammaticBuyerRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetProgrammaticBuyerRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetProgrammaticBuyerRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetProgrammaticBuyerRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetProgrammaticBuyerRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetProgrammaticBuyerRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetProgrammaticBuyerRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.GetProgrammaticBuyerRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request object for `GetProgrammaticBuyer` method.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.GetProgrammaticBuyerRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.GetProgrammaticBuyerRequest) + com.google.ads.admanager.v1.GetProgrammaticBuyerRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ProgrammaticBuyerServiceProto + .internal_static_google_ads_admanager_v1_GetProgrammaticBuyerRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ProgrammaticBuyerServiceProto + .internal_static_google_ads_admanager_v1_GetProgrammaticBuyerRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetProgrammaticBuyerRequest.class, + com.google.ads.admanager.v1.GetProgrammaticBuyerRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.GetProgrammaticBuyerRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.ProgrammaticBuyerServiceProto + .internal_static_google_ads_admanager_v1_GetProgrammaticBuyerRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetProgrammaticBuyerRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.GetProgrammaticBuyerRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetProgrammaticBuyerRequest build() { + com.google.ads.admanager.v1.GetProgrammaticBuyerRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetProgrammaticBuyerRequest buildPartial() { + com.google.ads.admanager.v1.GetProgrammaticBuyerRequest result = + new com.google.ads.admanager.v1.GetProgrammaticBuyerRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.GetProgrammaticBuyerRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.GetProgrammaticBuyerRequest) { + return mergeFrom((com.google.ads.admanager.v1.GetProgrammaticBuyerRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.GetProgrammaticBuyerRequest other) { + if (other == com.google.ads.admanager.v1.GetProgrammaticBuyerRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the ProgrammaticBuyer.
+     * Format:
+     * `networks/{network_code}/programmaticBuyers/{buyer_account_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 resource name of the ProgrammaticBuyer.
+     * Format:
+     * `networks/{network_code}/programmaticBuyers/{buyer_account_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 resource name of the ProgrammaticBuyer.
+     * Format:
+     * `networks/{network_code}/programmaticBuyers/{buyer_account_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 resource name of the ProgrammaticBuyer.
+     * Format:
+     * `networks/{network_code}/programmaticBuyers/{buyer_account_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 resource name of the ProgrammaticBuyer.
+     * Format:
+     * `networks/{network_code}/programmaticBuyers/{buyer_account_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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.GetProgrammaticBuyerRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.GetProgrammaticBuyerRequest) + private static final com.google.ads.admanager.v1.GetProgrammaticBuyerRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.GetProgrammaticBuyerRequest(); + } + + public static com.google.ads.admanager.v1.GetProgrammaticBuyerRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetProgrammaticBuyerRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.GetProgrammaticBuyerRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetProgrammaticBuyerRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetProgrammaticBuyerRequestOrBuilder.java new file mode 100644 index 000000000000..b615db66ba98 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetProgrammaticBuyerRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/programmatic_buyer_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface GetProgrammaticBuyerRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.GetProgrammaticBuyerRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the ProgrammaticBuyer.
+   * Format:
+   * `networks/{network_code}/programmaticBuyers/{buyer_account_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource name of the ProgrammaticBuyer.
+   * Format:
+   * `networks/{network_code}/programmaticBuyers/{buyer_account_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-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/InventoryTargeting.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/InventoryTargeting.java new file mode 100644 index 000000000000..b9c1ef5b1eae --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/InventoryTargeting.java @@ -0,0 +1,2009 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Targeted ad units and AU placements are applied with
+ * logical OR. Example:
+ *
+ *  (au:1 OR au:2 OR au_placement:5) AND (NOT (au:3))
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.InventoryTargeting} + */ +public final class InventoryTargeting extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.InventoryTargeting) + InventoryTargetingOrBuilder { + private static final long serialVersionUID = 0L; + + // Use InventoryTargeting.newBuilder() to construct. + private InventoryTargeting(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private InventoryTargeting() { + targetedAdUnits_ = java.util.Collections.emptyList(); + excludedAdUnits_ = java.util.Collections.emptyList(); + targetedPlacements_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new InventoryTargeting(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_InventoryTargeting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_InventoryTargeting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.InventoryTargeting.class, + com.google.ads.admanager.v1.InventoryTargeting.Builder.class); + } + + public static final int TARGETED_AD_UNITS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List targetedAdUnits_; + + /** + * + * + *
+   * Optional. A list of ad units that should be targeted/included.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting targeted_ad_units = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getTargetedAdUnitsList() { + return targetedAdUnits_; + } + + /** + * + * + *
+   * Optional. A list of ad units that should be targeted/included.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting targeted_ad_units = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getTargetedAdUnitsOrBuilderList() { + return targetedAdUnits_; + } + + /** + * + * + *
+   * Optional. A list of ad units that should be targeted/included.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting targeted_ad_units = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getTargetedAdUnitsCount() { + return targetedAdUnits_.size(); + } + + /** + * + * + *
+   * Optional. A list of ad units that should be targeted/included.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting targeted_ad_units = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.AdUnitTargeting getTargetedAdUnits(int index) { + return targetedAdUnits_.get(index); + } + + /** + * + * + *
+   * Optional. A list of ad units that should be targeted/included.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting targeted_ad_units = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.AdUnitTargetingOrBuilder getTargetedAdUnitsOrBuilder( + int index) { + return targetedAdUnits_.get(index); + } + + public static final int EXCLUDED_AD_UNITS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List excludedAdUnits_; + + /** + * + * + *
+   * Optional. A list of ad units that should be excluded.
+   *
+   * Excluded AUs take precedence over targeted AUs. In fact an AU can be
+   * excluded only if one of its ancestors is targeted. Subsequently child
+   * AUs of an excluded AU can not be targeted (except via a placement).
+   * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting excluded_ad_units = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getExcludedAdUnitsList() { + return excludedAdUnits_; + } + + /** + * + * + *
+   * Optional. A list of ad units that should be excluded.
+   *
+   * Excluded AUs take precedence over targeted AUs. In fact an AU can be
+   * excluded only if one of its ancestors is targeted. Subsequently child
+   * AUs of an excluded AU can not be targeted (except via a placement).
+   * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting excluded_ad_units = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getExcludedAdUnitsOrBuilderList() { + return excludedAdUnits_; + } + + /** + * + * + *
+   * Optional. A list of ad units that should be excluded.
+   *
+   * Excluded AUs take precedence over targeted AUs. In fact an AU can be
+   * excluded only if one of its ancestors is targeted. Subsequently child
+   * AUs of an excluded AU can not be targeted (except via a placement).
+   * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting excluded_ad_units = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getExcludedAdUnitsCount() { + return excludedAdUnits_.size(); + } + + /** + * + * + *
+   * Optional. A list of ad units that should be excluded.
+   *
+   * Excluded AUs take precedence over targeted AUs. In fact an AU can be
+   * excluded only if one of its ancestors is targeted. Subsequently child
+   * AUs of an excluded AU can not be targeted (except via a placement).
+   * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting excluded_ad_units = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.AdUnitTargeting getExcludedAdUnits(int index) { + return excludedAdUnits_.get(index); + } + + /** + * + * + *
+   * Optional. A list of ad units that should be excluded.
+   *
+   * Excluded AUs take precedence over targeted AUs. In fact an AU can be
+   * excluded only if one of its ancestors is targeted. Subsequently child
+   * AUs of an excluded AU can not be targeted (except via a placement).
+   * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting excluded_ad_units = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.AdUnitTargetingOrBuilder getExcludedAdUnitsOrBuilder( + int index) { + return excludedAdUnits_.get(index); + } + + public static final int TARGETED_PLACEMENTS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList targetedPlacements_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. The resource names of the placements that should be
+   * targeted/included.
+   * 
+ * + * + * repeated string targeted_placements = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetedPlacements. + */ + public com.google.protobuf.ProtocolStringList getTargetedPlacementsList() { + return targetedPlacements_; + } + + /** + * + * + *
+   * Optional. The resource names of the placements that should be
+   * targeted/included.
+   * 
+ * + * + * repeated string targeted_placements = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetedPlacements. + */ + public int getTargetedPlacementsCount() { + return targetedPlacements_.size(); + } + + /** + * + * + *
+   * Optional. The resource names of the placements that should be
+   * targeted/included.
+   * 
+ * + * + * repeated string targeted_placements = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetedPlacements at the given index. + */ + public java.lang.String getTargetedPlacements(int index) { + return targetedPlacements_.get(index); + } + + /** + * + * + *
+   * Optional. The resource names of the placements that should be
+   * targeted/included.
+   * 
+ * + * + * repeated string targeted_placements = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetedPlacements at the given index. + */ + public com.google.protobuf.ByteString getTargetedPlacementsBytes(int index) { + return targetedPlacements_.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 < targetedAdUnits_.size(); i++) { + output.writeMessage(1, targetedAdUnits_.get(i)); + } + for (int i = 0; i < excludedAdUnits_.size(); i++) { + output.writeMessage(2, excludedAdUnits_.get(i)); + } + for (int i = 0; i < targetedPlacements_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, targetedPlacements_.getRaw(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 < targetedAdUnits_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, targetedAdUnits_.get(i)); + } + for (int i = 0; i < excludedAdUnits_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, excludedAdUnits_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < targetedPlacements_.size(); i++) { + dataSize += computeStringSizeNoTag(targetedPlacements_.getRaw(i)); + } + size += dataSize; + size += 1 * getTargetedPlacementsList().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.admanager.v1.InventoryTargeting)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.InventoryTargeting other = + (com.google.ads.admanager.v1.InventoryTargeting) obj; + + if (!getTargetedAdUnitsList().equals(other.getTargetedAdUnitsList())) return false; + if (!getExcludedAdUnitsList().equals(other.getExcludedAdUnitsList())) return false; + if (!getTargetedPlacementsList().equals(other.getTargetedPlacementsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTargetedAdUnitsCount() > 0) { + hash = (37 * hash) + TARGETED_AD_UNITS_FIELD_NUMBER; + hash = (53 * hash) + getTargetedAdUnitsList().hashCode(); + } + if (getExcludedAdUnitsCount() > 0) { + hash = (37 * hash) + EXCLUDED_AD_UNITS_FIELD_NUMBER; + hash = (53 * hash) + getExcludedAdUnitsList().hashCode(); + } + if (getTargetedPlacementsCount() > 0) { + hash = (37 * hash) + TARGETED_PLACEMENTS_FIELD_NUMBER; + hash = (53 * hash) + getTargetedPlacementsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.InventoryTargeting parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.InventoryTargeting 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.admanager.v1.InventoryTargeting parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.InventoryTargeting parseFrom( + 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.admanager.v1.InventoryTargeting parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.InventoryTargeting parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.InventoryTargeting parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.InventoryTargeting parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.InventoryTargeting parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.InventoryTargeting parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.InventoryTargeting parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.InventoryTargeting parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.InventoryTargeting prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Targeted ad units and AU placements are applied with
+   * logical OR. Example:
+   *
+   *  (au:1 OR au:2 OR au_placement:5) AND (NOT (au:3))
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.InventoryTargeting} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.InventoryTargeting) + com.google.ads.admanager.v1.InventoryTargetingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_InventoryTargeting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_InventoryTargeting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.InventoryTargeting.class, + com.google.ads.admanager.v1.InventoryTargeting.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.InventoryTargeting.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (targetedAdUnitsBuilder_ == null) { + targetedAdUnits_ = java.util.Collections.emptyList(); + } else { + targetedAdUnits_ = null; + targetedAdUnitsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (excludedAdUnitsBuilder_ == null) { + excludedAdUnits_ = java.util.Collections.emptyList(); + } else { + excludedAdUnits_ = null; + excludedAdUnitsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + targetedPlacements_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_InventoryTargeting_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.InventoryTargeting getDefaultInstanceForType() { + return com.google.ads.admanager.v1.InventoryTargeting.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.InventoryTargeting build() { + com.google.ads.admanager.v1.InventoryTargeting result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.InventoryTargeting buildPartial() { + com.google.ads.admanager.v1.InventoryTargeting result = + new com.google.ads.admanager.v1.InventoryTargeting(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.ads.admanager.v1.InventoryTargeting result) { + if (targetedAdUnitsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + targetedAdUnits_ = java.util.Collections.unmodifiableList(targetedAdUnits_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.targetedAdUnits_ = targetedAdUnits_; + } else { + result.targetedAdUnits_ = targetedAdUnitsBuilder_.build(); + } + if (excludedAdUnitsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + excludedAdUnits_ = java.util.Collections.unmodifiableList(excludedAdUnits_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.excludedAdUnits_ = excludedAdUnits_; + } else { + result.excludedAdUnits_ = excludedAdUnitsBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.InventoryTargeting result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + targetedPlacements_.makeImmutable(); + result.targetedPlacements_ = targetedPlacements_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.InventoryTargeting) { + return mergeFrom((com.google.ads.admanager.v1.InventoryTargeting) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.InventoryTargeting other) { + if (other == com.google.ads.admanager.v1.InventoryTargeting.getDefaultInstance()) return this; + if (targetedAdUnitsBuilder_ == null) { + if (!other.targetedAdUnits_.isEmpty()) { + if (targetedAdUnits_.isEmpty()) { + targetedAdUnits_ = other.targetedAdUnits_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTargetedAdUnitsIsMutable(); + targetedAdUnits_.addAll(other.targetedAdUnits_); + } + onChanged(); + } + } else { + if (!other.targetedAdUnits_.isEmpty()) { + if (targetedAdUnitsBuilder_.isEmpty()) { + targetedAdUnitsBuilder_.dispose(); + targetedAdUnitsBuilder_ = null; + targetedAdUnits_ = other.targetedAdUnits_; + bitField0_ = (bitField0_ & ~0x00000001); + targetedAdUnitsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTargetedAdUnitsFieldBuilder() + : null; + } else { + targetedAdUnitsBuilder_.addAllMessages(other.targetedAdUnits_); + } + } + } + if (excludedAdUnitsBuilder_ == null) { + if (!other.excludedAdUnits_.isEmpty()) { + if (excludedAdUnits_.isEmpty()) { + excludedAdUnits_ = other.excludedAdUnits_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureExcludedAdUnitsIsMutable(); + excludedAdUnits_.addAll(other.excludedAdUnits_); + } + onChanged(); + } + } else { + if (!other.excludedAdUnits_.isEmpty()) { + if (excludedAdUnitsBuilder_.isEmpty()) { + excludedAdUnitsBuilder_.dispose(); + excludedAdUnitsBuilder_ = null; + excludedAdUnits_ = other.excludedAdUnits_; + bitField0_ = (bitField0_ & ~0x00000002); + excludedAdUnitsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getExcludedAdUnitsFieldBuilder() + : null; + } else { + excludedAdUnitsBuilder_.addAllMessages(other.excludedAdUnits_); + } + } + } + if (!other.targetedPlacements_.isEmpty()) { + if (targetedPlacements_.isEmpty()) { + targetedPlacements_ = other.targetedPlacements_; + bitField0_ |= 0x00000004; + } else { + ensureTargetedPlacementsIsMutable(); + targetedPlacements_.addAll(other.targetedPlacements_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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.admanager.v1.AdUnitTargeting m = + input.readMessage( + com.google.ads.admanager.v1.AdUnitTargeting.parser(), extensionRegistry); + if (targetedAdUnitsBuilder_ == null) { + ensureTargetedAdUnitsIsMutable(); + targetedAdUnits_.add(m); + } else { + targetedAdUnitsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.ads.admanager.v1.AdUnitTargeting m = + input.readMessage( + com.google.ads.admanager.v1.AdUnitTargeting.parser(), extensionRegistry); + if (excludedAdUnitsBuilder_ == null) { + ensureExcludedAdUnitsIsMutable(); + excludedAdUnits_.add(m); + } else { + excludedAdUnitsBuilder_.addMessage(m); + } + break; + } // case 18 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTargetedPlacementsIsMutable(); + targetedPlacements_.add(s); + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List targetedAdUnits_ = + java.util.Collections.emptyList(); + + private void ensureTargetedAdUnitsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + targetedAdUnits_ = + new java.util.ArrayList(targetedAdUnits_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.AdUnitTargeting, + com.google.ads.admanager.v1.AdUnitTargeting.Builder, + com.google.ads.admanager.v1.AdUnitTargetingOrBuilder> + targetedAdUnitsBuilder_; + + /** + * + * + *
+     * Optional. A list of ad units that should be targeted/included.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting targeted_ad_units = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getTargetedAdUnitsList() { + if (targetedAdUnitsBuilder_ == null) { + return java.util.Collections.unmodifiableList(targetedAdUnits_); + } else { + return targetedAdUnitsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. A list of ad units that should be targeted/included.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting targeted_ad_units = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getTargetedAdUnitsCount() { + if (targetedAdUnitsBuilder_ == null) { + return targetedAdUnits_.size(); + } else { + return targetedAdUnitsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. A list of ad units that should be targeted/included.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting targeted_ad_units = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.AdUnitTargeting getTargetedAdUnits(int index) { + if (targetedAdUnitsBuilder_ == null) { + return targetedAdUnits_.get(index); + } else { + return targetedAdUnitsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. A list of ad units that should be targeted/included.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting targeted_ad_units = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTargetedAdUnits( + int index, com.google.ads.admanager.v1.AdUnitTargeting value) { + if (targetedAdUnitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetedAdUnitsIsMutable(); + targetedAdUnits_.set(index, value); + onChanged(); + } else { + targetedAdUnitsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of ad units that should be targeted/included.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting targeted_ad_units = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTargetedAdUnits( + int index, com.google.ads.admanager.v1.AdUnitTargeting.Builder builderForValue) { + if (targetedAdUnitsBuilder_ == null) { + ensureTargetedAdUnitsIsMutable(); + targetedAdUnits_.set(index, builderForValue.build()); + onChanged(); + } else { + targetedAdUnitsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of ad units that should be targeted/included.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting targeted_ad_units = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTargetedAdUnits(com.google.ads.admanager.v1.AdUnitTargeting value) { + if (targetedAdUnitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetedAdUnitsIsMutable(); + targetedAdUnits_.add(value); + onChanged(); + } else { + targetedAdUnitsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of ad units that should be targeted/included.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting targeted_ad_units = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTargetedAdUnits( + int index, com.google.ads.admanager.v1.AdUnitTargeting value) { + if (targetedAdUnitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetedAdUnitsIsMutable(); + targetedAdUnits_.add(index, value); + onChanged(); + } else { + targetedAdUnitsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of ad units that should be targeted/included.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting targeted_ad_units = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTargetedAdUnits( + com.google.ads.admanager.v1.AdUnitTargeting.Builder builderForValue) { + if (targetedAdUnitsBuilder_ == null) { + ensureTargetedAdUnitsIsMutable(); + targetedAdUnits_.add(builderForValue.build()); + onChanged(); + } else { + targetedAdUnitsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of ad units that should be targeted/included.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting targeted_ad_units = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTargetedAdUnits( + int index, com.google.ads.admanager.v1.AdUnitTargeting.Builder builderForValue) { + if (targetedAdUnitsBuilder_ == null) { + ensureTargetedAdUnitsIsMutable(); + targetedAdUnits_.add(index, builderForValue.build()); + onChanged(); + } else { + targetedAdUnitsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of ad units that should be targeted/included.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting targeted_ad_units = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllTargetedAdUnits( + java.lang.Iterable values) { + if (targetedAdUnitsBuilder_ == null) { + ensureTargetedAdUnitsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetedAdUnits_); + onChanged(); + } else { + targetedAdUnitsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of ad units that should be targeted/included.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting targeted_ad_units = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearTargetedAdUnits() { + if (targetedAdUnitsBuilder_ == null) { + targetedAdUnits_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + targetedAdUnitsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of ad units that should be targeted/included.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting targeted_ad_units = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeTargetedAdUnits(int index) { + if (targetedAdUnitsBuilder_ == null) { + ensureTargetedAdUnitsIsMutable(); + targetedAdUnits_.remove(index); + onChanged(); + } else { + targetedAdUnitsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of ad units that should be targeted/included.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting targeted_ad_units = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.AdUnitTargeting.Builder getTargetedAdUnitsBuilder( + int index) { + return getTargetedAdUnitsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. A list of ad units that should be targeted/included.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting targeted_ad_units = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.AdUnitTargetingOrBuilder getTargetedAdUnitsOrBuilder( + int index) { + if (targetedAdUnitsBuilder_ == null) { + return targetedAdUnits_.get(index); + } else { + return targetedAdUnitsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. A list of ad units that should be targeted/included.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting targeted_ad_units = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getTargetedAdUnitsOrBuilderList() { + if (targetedAdUnitsBuilder_ != null) { + return targetedAdUnitsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(targetedAdUnits_); + } + } + + /** + * + * + *
+     * Optional. A list of ad units that should be targeted/included.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting targeted_ad_units = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.AdUnitTargeting.Builder addTargetedAdUnitsBuilder() { + return getTargetedAdUnitsFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.AdUnitTargeting.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. A list of ad units that should be targeted/included.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting targeted_ad_units = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.AdUnitTargeting.Builder addTargetedAdUnitsBuilder( + int index) { + return getTargetedAdUnitsFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.AdUnitTargeting.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. A list of ad units that should be targeted/included.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting targeted_ad_units = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getTargetedAdUnitsBuilderList() { + return getTargetedAdUnitsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.AdUnitTargeting, + com.google.ads.admanager.v1.AdUnitTargeting.Builder, + com.google.ads.admanager.v1.AdUnitTargetingOrBuilder> + getTargetedAdUnitsFieldBuilder() { + if (targetedAdUnitsBuilder_ == null) { + targetedAdUnitsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.AdUnitTargeting, + com.google.ads.admanager.v1.AdUnitTargeting.Builder, + com.google.ads.admanager.v1.AdUnitTargetingOrBuilder>( + targetedAdUnits_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + targetedAdUnits_ = null; + } + return targetedAdUnitsBuilder_; + } + + private java.util.List excludedAdUnits_ = + java.util.Collections.emptyList(); + + private void ensureExcludedAdUnitsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + excludedAdUnits_ = + new java.util.ArrayList(excludedAdUnits_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.AdUnitTargeting, + com.google.ads.admanager.v1.AdUnitTargeting.Builder, + com.google.ads.admanager.v1.AdUnitTargetingOrBuilder> + excludedAdUnitsBuilder_; + + /** + * + * + *
+     * Optional. A list of ad units that should be excluded.
+     *
+     * Excluded AUs take precedence over targeted AUs. In fact an AU can be
+     * excluded only if one of its ancestors is targeted. Subsequently child
+     * AUs of an excluded AU can not be targeted (except via a placement).
+     * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting excluded_ad_units = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getExcludedAdUnitsList() { + if (excludedAdUnitsBuilder_ == null) { + return java.util.Collections.unmodifiableList(excludedAdUnits_); + } else { + return excludedAdUnitsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. A list of ad units that should be excluded.
+     *
+     * Excluded AUs take precedence over targeted AUs. In fact an AU can be
+     * excluded only if one of its ancestors is targeted. Subsequently child
+     * AUs of an excluded AU can not be targeted (except via a placement).
+     * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting excluded_ad_units = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getExcludedAdUnitsCount() { + if (excludedAdUnitsBuilder_ == null) { + return excludedAdUnits_.size(); + } else { + return excludedAdUnitsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. A list of ad units that should be excluded.
+     *
+     * Excluded AUs take precedence over targeted AUs. In fact an AU can be
+     * excluded only if one of its ancestors is targeted. Subsequently child
+     * AUs of an excluded AU can not be targeted (except via a placement).
+     * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting excluded_ad_units = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.AdUnitTargeting getExcludedAdUnits(int index) { + if (excludedAdUnitsBuilder_ == null) { + return excludedAdUnits_.get(index); + } else { + return excludedAdUnitsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. A list of ad units that should be excluded.
+     *
+     * Excluded AUs take precedence over targeted AUs. In fact an AU can be
+     * excluded only if one of its ancestors is targeted. Subsequently child
+     * AUs of an excluded AU can not be targeted (except via a placement).
+     * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting excluded_ad_units = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExcludedAdUnits( + int index, com.google.ads.admanager.v1.AdUnitTargeting value) { + if (excludedAdUnitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedAdUnitsIsMutable(); + excludedAdUnits_.set(index, value); + onChanged(); + } else { + excludedAdUnitsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of ad units that should be excluded.
+     *
+     * Excluded AUs take precedence over targeted AUs. In fact an AU can be
+     * excluded only if one of its ancestors is targeted. Subsequently child
+     * AUs of an excluded AU can not be targeted (except via a placement).
+     * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting excluded_ad_units = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExcludedAdUnits( + int index, com.google.ads.admanager.v1.AdUnitTargeting.Builder builderForValue) { + if (excludedAdUnitsBuilder_ == null) { + ensureExcludedAdUnitsIsMutable(); + excludedAdUnits_.set(index, builderForValue.build()); + onChanged(); + } else { + excludedAdUnitsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of ad units that should be excluded.
+     *
+     * Excluded AUs take precedence over targeted AUs. In fact an AU can be
+     * excluded only if one of its ancestors is targeted. Subsequently child
+     * AUs of an excluded AU can not be targeted (except via a placement).
+     * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting excluded_ad_units = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addExcludedAdUnits(com.google.ads.admanager.v1.AdUnitTargeting value) { + if (excludedAdUnitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedAdUnitsIsMutable(); + excludedAdUnits_.add(value); + onChanged(); + } else { + excludedAdUnitsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of ad units that should be excluded.
+     *
+     * Excluded AUs take precedence over targeted AUs. In fact an AU can be
+     * excluded only if one of its ancestors is targeted. Subsequently child
+     * AUs of an excluded AU can not be targeted (except via a placement).
+     * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting excluded_ad_units = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addExcludedAdUnits( + int index, com.google.ads.admanager.v1.AdUnitTargeting value) { + if (excludedAdUnitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedAdUnitsIsMutable(); + excludedAdUnits_.add(index, value); + onChanged(); + } else { + excludedAdUnitsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of ad units that should be excluded.
+     *
+     * Excluded AUs take precedence over targeted AUs. In fact an AU can be
+     * excluded only if one of its ancestors is targeted. Subsequently child
+     * AUs of an excluded AU can not be targeted (except via a placement).
+     * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting excluded_ad_units = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addExcludedAdUnits( + com.google.ads.admanager.v1.AdUnitTargeting.Builder builderForValue) { + if (excludedAdUnitsBuilder_ == null) { + ensureExcludedAdUnitsIsMutable(); + excludedAdUnits_.add(builderForValue.build()); + onChanged(); + } else { + excludedAdUnitsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of ad units that should be excluded.
+     *
+     * Excluded AUs take precedence over targeted AUs. In fact an AU can be
+     * excluded only if one of its ancestors is targeted. Subsequently child
+     * AUs of an excluded AU can not be targeted (except via a placement).
+     * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting excluded_ad_units = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addExcludedAdUnits( + int index, com.google.ads.admanager.v1.AdUnitTargeting.Builder builderForValue) { + if (excludedAdUnitsBuilder_ == null) { + ensureExcludedAdUnitsIsMutable(); + excludedAdUnits_.add(index, builderForValue.build()); + onChanged(); + } else { + excludedAdUnitsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of ad units that should be excluded.
+     *
+     * Excluded AUs take precedence over targeted AUs. In fact an AU can be
+     * excluded only if one of its ancestors is targeted. Subsequently child
+     * AUs of an excluded AU can not be targeted (except via a placement).
+     * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting excluded_ad_units = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllExcludedAdUnits( + java.lang.Iterable values) { + if (excludedAdUnitsBuilder_ == null) { + ensureExcludedAdUnitsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, excludedAdUnits_); + onChanged(); + } else { + excludedAdUnitsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of ad units that should be excluded.
+     *
+     * Excluded AUs take precedence over targeted AUs. In fact an AU can be
+     * excluded only if one of its ancestors is targeted. Subsequently child
+     * AUs of an excluded AU can not be targeted (except via a placement).
+     * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting excluded_ad_units = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearExcludedAdUnits() { + if (excludedAdUnitsBuilder_ == null) { + excludedAdUnits_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + excludedAdUnitsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of ad units that should be excluded.
+     *
+     * Excluded AUs take precedence over targeted AUs. In fact an AU can be
+     * excluded only if one of its ancestors is targeted. Subsequently child
+     * AUs of an excluded AU can not be targeted (except via a placement).
+     * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting excluded_ad_units = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeExcludedAdUnits(int index) { + if (excludedAdUnitsBuilder_ == null) { + ensureExcludedAdUnitsIsMutable(); + excludedAdUnits_.remove(index); + onChanged(); + } else { + excludedAdUnitsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of ad units that should be excluded.
+     *
+     * Excluded AUs take precedence over targeted AUs. In fact an AU can be
+     * excluded only if one of its ancestors is targeted. Subsequently child
+     * AUs of an excluded AU can not be targeted (except via a placement).
+     * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting excluded_ad_units = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.AdUnitTargeting.Builder getExcludedAdUnitsBuilder( + int index) { + return getExcludedAdUnitsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. A list of ad units that should be excluded.
+     *
+     * Excluded AUs take precedence over targeted AUs. In fact an AU can be
+     * excluded only if one of its ancestors is targeted. Subsequently child
+     * AUs of an excluded AU can not be targeted (except via a placement).
+     * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting excluded_ad_units = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.AdUnitTargetingOrBuilder getExcludedAdUnitsOrBuilder( + int index) { + if (excludedAdUnitsBuilder_ == null) { + return excludedAdUnits_.get(index); + } else { + return excludedAdUnitsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. A list of ad units that should be excluded.
+     *
+     * Excluded AUs take precedence over targeted AUs. In fact an AU can be
+     * excluded only if one of its ancestors is targeted. Subsequently child
+     * AUs of an excluded AU can not be targeted (except via a placement).
+     * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting excluded_ad_units = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getExcludedAdUnitsOrBuilderList() { + if (excludedAdUnitsBuilder_ != null) { + return excludedAdUnitsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(excludedAdUnits_); + } + } + + /** + * + * + *
+     * Optional. A list of ad units that should be excluded.
+     *
+     * Excluded AUs take precedence over targeted AUs. In fact an AU can be
+     * excluded only if one of its ancestors is targeted. Subsequently child
+     * AUs of an excluded AU can not be targeted (except via a placement).
+     * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting excluded_ad_units = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.AdUnitTargeting.Builder addExcludedAdUnitsBuilder() { + return getExcludedAdUnitsFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.AdUnitTargeting.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. A list of ad units that should be excluded.
+     *
+     * Excluded AUs take precedence over targeted AUs. In fact an AU can be
+     * excluded only if one of its ancestors is targeted. Subsequently child
+     * AUs of an excluded AU can not be targeted (except via a placement).
+     * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting excluded_ad_units = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.AdUnitTargeting.Builder addExcludedAdUnitsBuilder( + int index) { + return getExcludedAdUnitsFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.AdUnitTargeting.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. A list of ad units that should be excluded.
+     *
+     * Excluded AUs take precedence over targeted AUs. In fact an AU can be
+     * excluded only if one of its ancestors is targeted. Subsequently child
+     * AUs of an excluded AU can not be targeted (except via a placement).
+     * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting excluded_ad_units = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getExcludedAdUnitsBuilderList() { + return getExcludedAdUnitsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.AdUnitTargeting, + com.google.ads.admanager.v1.AdUnitTargeting.Builder, + com.google.ads.admanager.v1.AdUnitTargetingOrBuilder> + getExcludedAdUnitsFieldBuilder() { + if (excludedAdUnitsBuilder_ == null) { + excludedAdUnitsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.AdUnitTargeting, + com.google.ads.admanager.v1.AdUnitTargeting.Builder, + com.google.ads.admanager.v1.AdUnitTargetingOrBuilder>( + excludedAdUnits_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + excludedAdUnits_ = null; + } + return excludedAdUnitsBuilder_; + } + + private com.google.protobuf.LazyStringArrayList targetedPlacements_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureTargetedPlacementsIsMutable() { + if (!targetedPlacements_.isModifiable()) { + targetedPlacements_ = new com.google.protobuf.LazyStringArrayList(targetedPlacements_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
+     * Optional. The resource names of the placements that should be
+     * targeted/included.
+     * 
+ * + * + * repeated string targeted_placements = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetedPlacements. + */ + public com.google.protobuf.ProtocolStringList getTargetedPlacementsList() { + targetedPlacements_.makeImmutable(); + return targetedPlacements_; + } + + /** + * + * + *
+     * Optional. The resource names of the placements that should be
+     * targeted/included.
+     * 
+ * + * + * repeated string targeted_placements = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetedPlacements. + */ + public int getTargetedPlacementsCount() { + return targetedPlacements_.size(); + } + + /** + * + * + *
+     * Optional. The resource names of the placements that should be
+     * targeted/included.
+     * 
+ * + * + * repeated string targeted_placements = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetedPlacements at the given index. + */ + public java.lang.String getTargetedPlacements(int index) { + return targetedPlacements_.get(index); + } + + /** + * + * + *
+     * Optional. The resource names of the placements that should be
+     * targeted/included.
+     * 
+ * + * + * repeated string targeted_placements = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetedPlacements at the given index. + */ + public com.google.protobuf.ByteString getTargetedPlacementsBytes(int index) { + return targetedPlacements_.getByteString(index); + } + + /** + * + * + *
+     * Optional. The resource names of the placements that should be
+     * targeted/included.
+     * 
+ * + * + * repeated string targeted_placements = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The targetedPlacements to set. + * @return This builder for chaining. + */ + public Builder setTargetedPlacements(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetedPlacementsIsMutable(); + targetedPlacements_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The resource names of the placements that should be
+     * targeted/included.
+     * 
+ * + * + * repeated string targeted_placements = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The targetedPlacements to add. + * @return This builder for chaining. + */ + public Builder addTargetedPlacements(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetedPlacementsIsMutable(); + targetedPlacements_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The resource names of the placements that should be
+     * targeted/included.
+     * 
+ * + * + * repeated string targeted_placements = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param values The targetedPlacements to add. + * @return This builder for chaining. + */ + public Builder addAllTargetedPlacements(java.lang.Iterable values) { + ensureTargetedPlacementsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetedPlacements_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The resource names of the placements that should be
+     * targeted/included.
+     * 
+ * + * + * repeated string targeted_placements = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTargetedPlacements() { + targetedPlacements_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The resource names of the placements that should be
+     * targeted/included.
+     * 
+ * + * + * repeated string targeted_placements = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the targetedPlacements to add. + * @return This builder for chaining. + */ + public Builder addTargetedPlacementsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTargetedPlacementsIsMutable(); + targetedPlacements_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.InventoryTargeting) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.InventoryTargeting) + private static final com.google.ads.admanager.v1.InventoryTargeting DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.InventoryTargeting(); + } + + public static com.google.ads.admanager.v1.InventoryTargeting getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InventoryTargeting parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.InventoryTargeting getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/InventoryTargetingOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/InventoryTargetingOrBuilder.java new file mode 100644 index 000000000000..96a20aeb0060 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/InventoryTargetingOrBuilder.java @@ -0,0 +1,244 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface InventoryTargetingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.InventoryTargeting) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. A list of ad units that should be targeted/included.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting targeted_ad_units = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getTargetedAdUnitsList(); + + /** + * + * + *
+   * Optional. A list of ad units that should be targeted/included.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting targeted_ad_units = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.admanager.v1.AdUnitTargeting getTargetedAdUnits(int index); + + /** + * + * + *
+   * Optional. A list of ad units that should be targeted/included.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting targeted_ad_units = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getTargetedAdUnitsCount(); + + /** + * + * + *
+   * Optional. A list of ad units that should be targeted/included.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting targeted_ad_units = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getTargetedAdUnitsOrBuilderList(); + + /** + * + * + *
+   * Optional. A list of ad units that should be targeted/included.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting targeted_ad_units = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.admanager.v1.AdUnitTargetingOrBuilder getTargetedAdUnitsOrBuilder(int index); + + /** + * + * + *
+   * Optional. A list of ad units that should be excluded.
+   *
+   * Excluded AUs take precedence over targeted AUs. In fact an AU can be
+   * excluded only if one of its ancestors is targeted. Subsequently child
+   * AUs of an excluded AU can not be targeted (except via a placement).
+   * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting excluded_ad_units = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getExcludedAdUnitsList(); + + /** + * + * + *
+   * Optional. A list of ad units that should be excluded.
+   *
+   * Excluded AUs take precedence over targeted AUs. In fact an AU can be
+   * excluded only if one of its ancestors is targeted. Subsequently child
+   * AUs of an excluded AU can not be targeted (except via a placement).
+   * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting excluded_ad_units = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.admanager.v1.AdUnitTargeting getExcludedAdUnits(int index); + + /** + * + * + *
+   * Optional. A list of ad units that should be excluded.
+   *
+   * Excluded AUs take precedence over targeted AUs. In fact an AU can be
+   * excluded only if one of its ancestors is targeted. Subsequently child
+   * AUs of an excluded AU can not be targeted (except via a placement).
+   * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting excluded_ad_units = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getExcludedAdUnitsCount(); + + /** + * + * + *
+   * Optional. A list of ad units that should be excluded.
+   *
+   * Excluded AUs take precedence over targeted AUs. In fact an AU can be
+   * excluded only if one of its ancestors is targeted. Subsequently child
+   * AUs of an excluded AU can not be targeted (except via a placement).
+   * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting excluded_ad_units = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getExcludedAdUnitsOrBuilderList(); + + /** + * + * + *
+   * Optional. A list of ad units that should be excluded.
+   *
+   * Excluded AUs take precedence over targeted AUs. In fact an AU can be
+   * excluded only if one of its ancestors is targeted. Subsequently child
+   * AUs of an excluded AU can not be targeted (except via a placement).
+   * 
+ * + * + * repeated .google.ads.admanager.v1.AdUnitTargeting excluded_ad_units = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.admanager.v1.AdUnitTargetingOrBuilder getExcludedAdUnitsOrBuilder(int index); + + /** + * + * + *
+   * Optional. The resource names of the placements that should be
+   * targeted/included.
+   * 
+ * + * + * repeated string targeted_placements = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetedPlacements. + */ + java.util.List getTargetedPlacementsList(); + + /** + * + * + *
+   * Optional. The resource names of the placements that should be
+   * targeted/included.
+   * 
+ * + * + * repeated string targeted_placements = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetedPlacements. + */ + int getTargetedPlacementsCount(); + + /** + * + * + *
+   * Optional. The resource names of the placements that should be
+   * targeted/included.
+   * 
+ * + * + * repeated string targeted_placements = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetedPlacements at the given index. + */ + java.lang.String getTargetedPlacements(int index); + + /** + * + * + *
+   * Optional. The resource names of the placements that should be
+   * targeted/included.
+   * 
+ * + * + * repeated string targeted_placements = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetedPlacements at the given index. + */ + com.google.protobuf.ByteString getTargetedPlacementsBytes(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdBreaksRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdBreaksRequest.java new file mode 100644 index 000000000000..a7df6bf75674 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdBreaksRequest.java @@ -0,0 +1,1505 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/ad_break_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Request object for `ListAdBreaks` method.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.ListAdBreaksRequest} + */ +public final class ListAdBreaksRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListAdBreaksRequest) + ListAdBreaksRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListAdBreaksRequest.newBuilder() to construct. + private ListAdBreaksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListAdBreaksRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListAdBreaksRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdBreakServiceProto + .internal_static_google_ads_admanager_v1_ListAdBreaksRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdBreakServiceProto + .internal_static_google_ads_admanager_v1_ListAdBreaksRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListAdBreaksRequest.class, + com.google.ads.admanager.v1.ListAdBreaksRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent, which owns this collection of AdBreaks.
+   *
+   * Formats:
+   * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}`
+   * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}`
+   * 
+ * + * + * 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, which owns this collection of AdBreaks.
+   *
+   * Formats:
+   * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}`
+   * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}`
+   * 
+ * + * + * 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 `AdBreaks` to return. The service might
+   * return fewer than this value. If unspecified, at most 10 ad breaks are
+   * returned. The maximum value is `100`. Values above `100` are coerced to
+   * `100`.
+   * 
+ * + * 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 `ListAdBreaks` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListAdBreaks` 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 `ListAdBreaks` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListAdBreaks` 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; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Optional. Expression to filter the response.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters
+   * 
+ * + * string filter = 4 [(.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. Expression to filter the response.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters
+   * 
+ * + * string filter = 4 [(.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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Optional. Expression to specify sorting order.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters#order
+   * 
+ * + * 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. Expression to specify sorting order.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters#order
+   * 
+ * + * 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 SKIP_FIELD_NUMBER = 6; + private int skip_ = 0; + + /** + * + * + *
+   * Optional. Number of individual resources to skip while paginating.
+   * 
+ * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + if (skip_ != 0) { + output.writeInt32(6, skip_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + if (skip_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, skip_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.admanager.v1.ListAdBreaksRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListAdBreaksRequest other = + (com.google.ads.admanager.v1.ListAdBreaksRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (getSkip() != other.getSkip()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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 = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + SKIP_FIELD_NUMBER; + hash = (53 * hash) + getSkip(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListAdBreaksRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListAdBreaksRequest 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.admanager.v1.ListAdBreaksRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListAdBreaksRequest parseFrom( + 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.admanager.v1.ListAdBreaksRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListAdBreaksRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListAdBreaksRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListAdBreaksRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListAdBreaksRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListAdBreaksRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListAdBreaksRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListAdBreaksRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.ListAdBreaksRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request object for `ListAdBreaks` method.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.ListAdBreaksRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListAdBreaksRequest) + com.google.ads.admanager.v1.ListAdBreaksRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdBreakServiceProto + .internal_static_google_ads_admanager_v1_ListAdBreaksRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdBreakServiceProto + .internal_static_google_ads_admanager_v1_ListAdBreaksRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListAdBreaksRequest.class, + com.google.ads.admanager.v1.ListAdBreaksRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListAdBreaksRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + skip_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.AdBreakServiceProto + .internal_static_google_ads_admanager_v1_ListAdBreaksRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListAdBreaksRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListAdBreaksRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListAdBreaksRequest build() { + com.google.ads.admanager.v1.ListAdBreaksRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListAdBreaksRequest buildPartial() { + com.google.ads.admanager.v1.ListAdBreaksRequest result = + new com.google.ads.admanager.v1.ListAdBreaksRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.ListAdBreaksRequest 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_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.skip_ = skip_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListAdBreaksRequest) { + return mergeFrom((com.google.ads.admanager.v1.ListAdBreaksRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListAdBreaksRequest other) { + if (other == com.google.ads.admanager.v1.ListAdBreaksRequest.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(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getSkip() != 0) { + setSkip(other.getSkip()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + skip_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent, which owns this collection of AdBreaks.
+     *
+     * Formats:
+     * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}`
+     * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}`
+     * 
+ * + * + * 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, which owns this collection of AdBreaks.
+     *
+     * Formats:
+     * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}`
+     * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}`
+     * 
+ * + * + * 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, which owns this collection of AdBreaks.
+     *
+     * Formats:
+     * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}`
+     * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}`
+     * 
+ * + * + * 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, which owns this collection of AdBreaks.
+     *
+     * Formats:
+     * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}`
+     * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}`
+     * 
+ * + * + * 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, which owns this collection of AdBreaks.
+     *
+     * Formats:
+     * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}`
+     * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}`
+     * 
+ * + * + * 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 `AdBreaks` to return. The service might
+     * return fewer than this value. If unspecified, at most 10 ad breaks are
+     * returned. The maximum value is `100`. Values above `100` are coerced to
+     * `100`.
+     * 
+ * + * 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 `AdBreaks` to return. The service might
+     * return fewer than this value. If unspecified, at most 10 ad breaks are
+     * returned. The maximum value is `100`. Values above `100` are coerced to
+     * `100`.
+     * 
+ * + * 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 `AdBreaks` to return. The service might
+     * return fewer than this value. If unspecified, at most 10 ad breaks are
+     * returned. The maximum value is `100`. Values above `100` are coerced to
+     * `100`.
+     * 
+ * + * 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 `ListAdBreaks` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListAdBreaks` 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 `ListAdBreaks` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListAdBreaks` 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 `ListAdBreaks` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListAdBreaks` 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 `ListAdBreaks` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListAdBreaks` 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 `ListAdBreaks` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListAdBreaks` 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; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Optional. Expression to filter the response.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters
+     * 
+ * + * string filter = 4 [(.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. Expression to filter the response.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters
+     * 
+ * + * string filter = 4 [(.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. Expression to filter the response.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters
+     * 
+ * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Expression to filter the response.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Expression to filter the response.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters
+     * 
+ * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Optional. Expression to specify sorting order.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters#order
+     * 
+ * + * 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. Expression to specify sorting order.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters#order
+     * 
+ * + * 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. Expression to specify sorting order.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters#order
+     * 
+ * + * 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. Expression to specify sorting order.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters#order
+     * 
+ * + * 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. Expression to specify sorting order.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters#order
+     * 
+ * + * 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 skip_; + + /** + * + * + *
+     * Optional. Number of individual resources to skip while paginating.
+     * 
+ * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + /** + * + * + *
+     * Optional. Number of individual resources to skip while paginating.
+     * 
+ * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The skip to set. + * @return This builder for chaining. + */ + public Builder setSkip(int value) { + + skip_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Number of individual resources to skip while paginating.
+     * 
+ * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSkip() { + bitField0_ = (bitField0_ & ~0x00000020); + skip_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListAdBreaksRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListAdBreaksRequest) + private static final com.google.ads.admanager.v1.ListAdBreaksRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListAdBreaksRequest(); + } + + public static com.google.ads.admanager.v1.ListAdBreaksRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAdBreaksRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.ListAdBreaksRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdBreaksRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdBreaksRequestOrBuilder.java new file mode 100644 index 000000000000..2842ac3568fe --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdBreaksRequestOrBuilder.java @@ -0,0 +1,187 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/ad_break_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListAdBreaksRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListAdBreaksRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent, which owns this collection of AdBreaks.
+   *
+   * Formats:
+   * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}`
+   * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent, which owns this collection of AdBreaks.
+   *
+   * Formats:
+   * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}`
+   * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}`
+   * 
+ * + * + * 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 `AdBreaks` to return. The service might
+   * return fewer than this value. If unspecified, at most 10 ad breaks are
+   * returned. The maximum value is `100`. Values above `100` are coerced to
+   * `100`.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A page token, received from a previous `ListAdBreaks` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListAdBreaks` 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 `ListAdBreaks` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListAdBreaks` 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(); + + /** + * + * + *
+   * Optional. Expression to filter the response.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. Expression to filter the response.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. Expression to specify sorting order.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters#order
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Optional. Expression to specify sorting order.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters#order
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
+   * Optional. Number of individual resources to skip while paginating.
+   * 
+ * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + int getSkip(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdBreaksResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdBreaksResponse.java new file mode 100644 index 000000000000..f40aa5a1003e --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdBreaksResponse.java @@ -0,0 +1,1301 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/ad_break_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Response object for `ListAdBreaksRequest` containing matching `AdBreak`
+ * objects.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.ListAdBreaksResponse} + */ +public final class ListAdBreaksResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListAdBreaksResponse) + ListAdBreaksResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListAdBreaksResponse.newBuilder() to construct. + private ListAdBreaksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListAdBreaksResponse() { + adBreaks_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListAdBreaksResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdBreakServiceProto + .internal_static_google_ads_admanager_v1_ListAdBreaksResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdBreakServiceProto + .internal_static_google_ads_admanager_v1_ListAdBreaksResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListAdBreaksResponse.class, + com.google.ads.admanager.v1.ListAdBreaksResponse.Builder.class); + } + + public static final int AD_BREAKS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List adBreaks_; + + /** + * + * + *
+   * The `AdBreak` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.AdBreak ad_breaks = 1; + */ + @java.lang.Override + public java.util.List getAdBreaksList() { + return adBreaks_; + } + + /** + * + * + *
+   * The `AdBreak` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.AdBreak ad_breaks = 1; + */ + @java.lang.Override + public java.util.List + getAdBreaksOrBuilderList() { + return adBreaks_; + } + + /** + * + * + *
+   * The `AdBreak` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.AdBreak ad_breaks = 1; + */ + @java.lang.Override + public int getAdBreaksCount() { + return adBreaks_.size(); + } + + /** + * + * + *
+   * The `AdBreak` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.AdBreak ad_breaks = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.AdBreak getAdBreaks(int index) { + return adBreaks_.get(index); + } + + /** + * + * + *
+   * The `AdBreak` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.AdBreak ad_breaks = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.AdBreakOrBuilder getAdBreaksOrBuilder(int index) { + return adBreaks_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages. This field expires
+   * after five minutes.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages. This field expires
+   * after five minutes.
+   * 
+ * + * 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; + } + } + + public static final int TOTAL_SIZE_FIELD_NUMBER = 3; + private int totalSize_ = 0; + + /** + * + * + *
+   * Total number of `AdBreak` objects.
+   * If a filter was included in the request, this reflects the total number
+   * after the filtering is applied.
+   *
+   * `total_size` will not be calculated in the response unless it has been
+   * included in a response field mask. The response field mask can be provided
+   * to the method by using the URL parameter `$fields` or `fields`, or by using
+   * the HTTP/gRPC header `X-Goog-FieldMask`.
+   *
+   * For more information, see
+   * https://developers.google.com/ad-manager/api/beta/field-masks
+   * 
+ * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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 < adBreaks_.size(); i++) { + output.writeMessage(1, adBreaks_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + if (totalSize_ != 0) { + output.writeInt32(3, totalSize_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < adBreaks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, adBreaks_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + if (totalSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSize_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.admanager.v1.ListAdBreaksResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListAdBreaksResponse other = + (com.google.ads.admanager.v1.ListAdBreaksResponse) obj; + + if (!getAdBreaksList().equals(other.getAdBreaksList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAdBreaksCount() > 0) { + hash = (37 * hash) + AD_BREAKS_FIELD_NUMBER; + hash = (53 * hash) + getAdBreaksList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (37 * hash) + TOTAL_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getTotalSize(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListAdBreaksResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListAdBreaksResponse 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.admanager.v1.ListAdBreaksResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListAdBreaksResponse parseFrom( + 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.admanager.v1.ListAdBreaksResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListAdBreaksResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListAdBreaksResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListAdBreaksResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListAdBreaksResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListAdBreaksResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListAdBreaksResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListAdBreaksResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.ListAdBreaksResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response object for `ListAdBreaksRequest` containing matching `AdBreak`
+   * objects.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.ListAdBreaksResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListAdBreaksResponse) + com.google.ads.admanager.v1.ListAdBreaksResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdBreakServiceProto + .internal_static_google_ads_admanager_v1_ListAdBreaksResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdBreakServiceProto + .internal_static_google_ads_admanager_v1_ListAdBreaksResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListAdBreaksResponse.class, + com.google.ads.admanager.v1.ListAdBreaksResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListAdBreaksResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (adBreaksBuilder_ == null) { + adBreaks_ = java.util.Collections.emptyList(); + } else { + adBreaks_ = null; + adBreaksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + totalSize_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.AdBreakServiceProto + .internal_static_google_ads_admanager_v1_ListAdBreaksResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListAdBreaksResponse getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListAdBreaksResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListAdBreaksResponse build() { + com.google.ads.admanager.v1.ListAdBreaksResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListAdBreaksResponse buildPartial() { + com.google.ads.admanager.v1.ListAdBreaksResponse result = + new com.google.ads.admanager.v1.ListAdBreaksResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.ListAdBreaksResponse result) { + if (adBreaksBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + adBreaks_ = java.util.Collections.unmodifiableList(adBreaks_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.adBreaks_ = adBreaks_; + } else { + result.adBreaks_ = adBreaksBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.ListAdBreaksResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalSize_ = totalSize_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListAdBreaksResponse) { + return mergeFrom((com.google.ads.admanager.v1.ListAdBreaksResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListAdBreaksResponse other) { + if (other == com.google.ads.admanager.v1.ListAdBreaksResponse.getDefaultInstance()) + return this; + if (adBreaksBuilder_ == null) { + if (!other.adBreaks_.isEmpty()) { + if (adBreaks_.isEmpty()) { + adBreaks_ = other.adBreaks_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAdBreaksIsMutable(); + adBreaks_.addAll(other.adBreaks_); + } + onChanged(); + } + } else { + if (!other.adBreaks_.isEmpty()) { + if (adBreaksBuilder_.isEmpty()) { + adBreaksBuilder_.dispose(); + adBreaksBuilder_ = null; + adBreaks_ = other.adBreaks_; + bitField0_ = (bitField0_ & ~0x00000001); + adBreaksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAdBreaksFieldBuilder() + : null; + } else { + adBreaksBuilder_.addAllMessages(other.adBreaks_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getTotalSize() != 0) { + setTotalSize(other.getTotalSize()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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.admanager.v1.AdBreak m = + input.readMessage( + com.google.ads.admanager.v1.AdBreak.parser(), extensionRegistry); + if (adBreaksBuilder_ == null) { + ensureAdBreaksIsMutable(); + adBreaks_.add(m); + } else { + adBreaksBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + totalSize_ = input.readInt32(); + 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 adBreaks_ = + java.util.Collections.emptyList(); + + private void ensureAdBreaksIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + adBreaks_ = new java.util.ArrayList(adBreaks_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.AdBreak, + com.google.ads.admanager.v1.AdBreak.Builder, + com.google.ads.admanager.v1.AdBreakOrBuilder> + adBreaksBuilder_; + + /** + * + * + *
+     * The `AdBreak` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdBreak ad_breaks = 1; + */ + public java.util.List getAdBreaksList() { + if (adBreaksBuilder_ == null) { + return java.util.Collections.unmodifiableList(adBreaks_); + } else { + return adBreaksBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The `AdBreak` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdBreak ad_breaks = 1; + */ + public int getAdBreaksCount() { + if (adBreaksBuilder_ == null) { + return adBreaks_.size(); + } else { + return adBreaksBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The `AdBreak` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdBreak ad_breaks = 1; + */ + public com.google.ads.admanager.v1.AdBreak getAdBreaks(int index) { + if (adBreaksBuilder_ == null) { + return adBreaks_.get(index); + } else { + return adBreaksBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The `AdBreak` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdBreak ad_breaks = 1; + */ + public Builder setAdBreaks(int index, com.google.ads.admanager.v1.AdBreak value) { + if (adBreaksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdBreaksIsMutable(); + adBreaks_.set(index, value); + onChanged(); + } else { + adBreaksBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The `AdBreak` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdBreak ad_breaks = 1; + */ + public Builder setAdBreaks( + int index, com.google.ads.admanager.v1.AdBreak.Builder builderForValue) { + if (adBreaksBuilder_ == null) { + ensureAdBreaksIsMutable(); + adBreaks_.set(index, builderForValue.build()); + onChanged(); + } else { + adBreaksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The `AdBreak` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdBreak ad_breaks = 1; + */ + public Builder addAdBreaks(com.google.ads.admanager.v1.AdBreak value) { + if (adBreaksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdBreaksIsMutable(); + adBreaks_.add(value); + onChanged(); + } else { + adBreaksBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The `AdBreak` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdBreak ad_breaks = 1; + */ + public Builder addAdBreaks(int index, com.google.ads.admanager.v1.AdBreak value) { + if (adBreaksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdBreaksIsMutable(); + adBreaks_.add(index, value); + onChanged(); + } else { + adBreaksBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The `AdBreak` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdBreak ad_breaks = 1; + */ + public Builder addAdBreaks(com.google.ads.admanager.v1.AdBreak.Builder builderForValue) { + if (adBreaksBuilder_ == null) { + ensureAdBreaksIsMutable(); + adBreaks_.add(builderForValue.build()); + onChanged(); + } else { + adBreaksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The `AdBreak` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdBreak ad_breaks = 1; + */ + public Builder addAdBreaks( + int index, com.google.ads.admanager.v1.AdBreak.Builder builderForValue) { + if (adBreaksBuilder_ == null) { + ensureAdBreaksIsMutable(); + adBreaks_.add(index, builderForValue.build()); + onChanged(); + } else { + adBreaksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The `AdBreak` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdBreak ad_breaks = 1; + */ + public Builder addAllAdBreaks( + java.lang.Iterable values) { + if (adBreaksBuilder_ == null) { + ensureAdBreaksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, adBreaks_); + onChanged(); + } else { + adBreaksBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The `AdBreak` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdBreak ad_breaks = 1; + */ + public Builder clearAdBreaks() { + if (adBreaksBuilder_ == null) { + adBreaks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + adBreaksBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The `AdBreak` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdBreak ad_breaks = 1; + */ + public Builder removeAdBreaks(int index) { + if (adBreaksBuilder_ == null) { + ensureAdBreaksIsMutable(); + adBreaks_.remove(index); + onChanged(); + } else { + adBreaksBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The `AdBreak` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdBreak ad_breaks = 1; + */ + public com.google.ads.admanager.v1.AdBreak.Builder getAdBreaksBuilder(int index) { + return getAdBreaksFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The `AdBreak` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdBreak ad_breaks = 1; + */ + public com.google.ads.admanager.v1.AdBreakOrBuilder getAdBreaksOrBuilder(int index) { + if (adBreaksBuilder_ == null) { + return adBreaks_.get(index); + } else { + return adBreaksBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The `AdBreak` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdBreak ad_breaks = 1; + */ + public java.util.List + getAdBreaksOrBuilderList() { + if (adBreaksBuilder_ != null) { + return adBreaksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(adBreaks_); + } + } + + /** + * + * + *
+     * The `AdBreak` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdBreak ad_breaks = 1; + */ + public com.google.ads.admanager.v1.AdBreak.Builder addAdBreaksBuilder() { + return getAdBreaksFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.AdBreak.getDefaultInstance()); + } + + /** + * + * + *
+     * The `AdBreak` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdBreak ad_breaks = 1; + */ + public com.google.ads.admanager.v1.AdBreak.Builder addAdBreaksBuilder(int index) { + return getAdBreaksFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.AdBreak.getDefaultInstance()); + } + + /** + * + * + *
+     * The `AdBreak` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdBreak ad_breaks = 1; + */ + public java.util.List getAdBreaksBuilderList() { + return getAdBreaksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.AdBreak, + com.google.ads.admanager.v1.AdBreak.Builder, + com.google.ads.admanager.v1.AdBreakOrBuilder> + getAdBreaksFieldBuilder() { + if (adBreaksBuilder_ == null) { + adBreaksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.AdBreak, + com.google.ads.admanager.v1.AdBreak.Builder, + com.google.ads.admanager.v1.AdBreakOrBuilder>( + adBreaks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + adBreaks_ = null; + } + return adBreaksBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages. This field expires
+     * after five minutes.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages. This field expires
+     * after five minutes.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages. This field expires
+     * after five minutes.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages. This field expires
+     * after five minutes.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages. This field expires
+     * after five minutes.
+     * 
+ * + * 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; + } + + private int totalSize_; + + /** + * + * + *
+     * Total number of `AdBreak` objects.
+     * If a filter was included in the request, this reflects the total number
+     * after the filtering is applied.
+     *
+     * `total_size` will not be calculated in the response unless it has been
+     * included in a response field mask. The response field mask can be provided
+     * to the method by using the URL parameter `$fields` or `fields`, or by using
+     * the HTTP/gRPC header `X-Goog-FieldMask`.
+     *
+     * For more information, see
+     * https://developers.google.com/ad-manager/api/beta/field-masks
+     * 
+ * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + /** + * + * + *
+     * Total number of `AdBreak` objects.
+     * If a filter was included in the request, this reflects the total number
+     * after the filtering is applied.
+     *
+     * `total_size` will not be calculated in the response unless it has been
+     * included in a response field mask. The response field mask can be provided
+     * to the method by using the URL parameter `$fields` or `fields`, or by using
+     * the HTTP/gRPC header `X-Goog-FieldMask`.
+     *
+     * For more information, see
+     * https://developers.google.com/ad-manager/api/beta/field-masks
+     * 
+ * + * int32 total_size = 3; + * + * @param value The totalSize to set. + * @return This builder for chaining. + */ + public Builder setTotalSize(int value) { + + totalSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Total number of `AdBreak` objects.
+     * If a filter was included in the request, this reflects the total number
+     * after the filtering is applied.
+     *
+     * `total_size` will not be calculated in the response unless it has been
+     * included in a response field mask. The response field mask can be provided
+     * to the method by using the URL parameter `$fields` or `fields`, or by using
+     * the HTTP/gRPC header `X-Goog-FieldMask`.
+     *
+     * For more information, see
+     * https://developers.google.com/ad-manager/api/beta/field-masks
+     * 
+ * + * int32 total_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearTotalSize() { + bitField0_ = (bitField0_ & ~0x00000004); + totalSize_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListAdBreaksResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListAdBreaksResponse) + private static final com.google.ads.admanager.v1.ListAdBreaksResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListAdBreaksResponse(); + } + + public static com.google.ads.admanager.v1.ListAdBreaksResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAdBreaksResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.ListAdBreaksResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdBreaksResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdBreaksResponseOrBuilder.java new file mode 100644 index 000000000000..bed101104e1b --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListAdBreaksResponseOrBuilder.java @@ -0,0 +1,134 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/ad_break_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListAdBreaksResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListAdBreaksResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The `AdBreak` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.AdBreak ad_breaks = 1; + */ + java.util.List getAdBreaksList(); + + /** + * + * + *
+   * The `AdBreak` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.AdBreak ad_breaks = 1; + */ + com.google.ads.admanager.v1.AdBreak getAdBreaks(int index); + + /** + * + * + *
+   * The `AdBreak` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.AdBreak ad_breaks = 1; + */ + int getAdBreaksCount(); + + /** + * + * + *
+   * The `AdBreak` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.AdBreak ad_breaks = 1; + */ + java.util.List getAdBreaksOrBuilderList(); + + /** + * + * + *
+   * The `AdBreak` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.AdBreak ad_breaks = 1; + */ + com.google.ads.admanager.v1.AdBreakOrBuilder getAdBreaksOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages. This field expires
+   * after five minutes.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages. This field expires
+   * after five minutes.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Total number of `AdBreak` objects.
+   * If a filter was included in the request, this reflects the total number
+   * after the filtering is applied.
+   *
+   * `total_size` will not be calculated in the response unless it has been
+   * included in a response field mask. The response field mask can be provided
+   * to the method by using the URL parameter `$fields` or `fields`, or by using
+   * the HTTP/gRPC header `X-Goog-FieldMask`.
+   *
+   * For more information, see
+   * https://developers.google.com/ad-manager/api/beta/field-masks
+   * 
+ * + * int32 total_size = 3; + * + * @return The totalSize. + */ + int getTotalSize(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBandwidthGroupsRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBandwidthGroupsRequest.java new file mode 100644 index 000000000000..0a57f22c8cac --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBandwidthGroupsRequest.java @@ -0,0 +1,1485 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/bandwidth_group_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Request object for `ListBandwidthGroups` method.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.ListBandwidthGroupsRequest} + */ +public final class ListBandwidthGroupsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListBandwidthGroupsRequest) + ListBandwidthGroupsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListBandwidthGroupsRequest.newBuilder() to construct. + private ListBandwidthGroupsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListBandwidthGroupsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListBandwidthGroupsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.BandwidthGroupServiceProto + .internal_static_google_ads_admanager_v1_ListBandwidthGroupsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.BandwidthGroupServiceProto + .internal_static_google_ads_admanager_v1_ListBandwidthGroupsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListBandwidthGroupsRequest.class, + com.google.ads.admanager.v1.ListBandwidthGroupsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent, which owns this collection of BandwidthGroups.
+   * Format: `networks/{network_code}`
+   * 
+ * + * + * 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, which owns this collection of BandwidthGroups.
+   * Format: `networks/{network_code}`
+   * 
+ * + * + * 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 `BandwidthGroups` to return. The service
+   * may return fewer than this value. If unspecified, at most 50
+   * `BandwidthGroups` 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 `ListBandwidthGroups`
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListBandwidthGroups`
+   * 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 `ListBandwidthGroups`
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListBandwidthGroups`
+   * 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; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Optional. Expression to filter the response.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters
+   * 
+ * + * string filter = 4 [(.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. Expression to filter the response.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters
+   * 
+ * + * string filter = 4 [(.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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Optional. Expression to specify sorting order.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters#order
+   * 
+ * + * 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. Expression to specify sorting order.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters#order
+   * 
+ * + * 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 SKIP_FIELD_NUMBER = 6; + private int skip_ = 0; + + /** + * + * + *
+   * Optional. Number of individual resources to skip while paginating.
+   * 
+ * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + if (skip_ != 0) { + output.writeInt32(6, skip_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + if (skip_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, skip_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.admanager.v1.ListBandwidthGroupsRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListBandwidthGroupsRequest other = + (com.google.ads.admanager.v1.ListBandwidthGroupsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (getSkip() != other.getSkip()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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 = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + SKIP_FIELD_NUMBER; + hash = (53 * hash) + getSkip(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListBandwidthGroupsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListBandwidthGroupsRequest 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.admanager.v1.ListBandwidthGroupsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListBandwidthGroupsRequest parseFrom( + 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.admanager.v1.ListBandwidthGroupsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListBandwidthGroupsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListBandwidthGroupsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListBandwidthGroupsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListBandwidthGroupsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListBandwidthGroupsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListBandwidthGroupsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListBandwidthGroupsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.ListBandwidthGroupsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request object for `ListBandwidthGroups` method.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.ListBandwidthGroupsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListBandwidthGroupsRequest) + com.google.ads.admanager.v1.ListBandwidthGroupsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.BandwidthGroupServiceProto + .internal_static_google_ads_admanager_v1_ListBandwidthGroupsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.BandwidthGroupServiceProto + .internal_static_google_ads_admanager_v1_ListBandwidthGroupsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListBandwidthGroupsRequest.class, + com.google.ads.admanager.v1.ListBandwidthGroupsRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListBandwidthGroupsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + skip_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.BandwidthGroupServiceProto + .internal_static_google_ads_admanager_v1_ListBandwidthGroupsRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListBandwidthGroupsRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListBandwidthGroupsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListBandwidthGroupsRequest build() { + com.google.ads.admanager.v1.ListBandwidthGroupsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListBandwidthGroupsRequest buildPartial() { + com.google.ads.admanager.v1.ListBandwidthGroupsRequest result = + new com.google.ads.admanager.v1.ListBandwidthGroupsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.ListBandwidthGroupsRequest 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_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.skip_ = skip_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListBandwidthGroupsRequest) { + return mergeFrom((com.google.ads.admanager.v1.ListBandwidthGroupsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListBandwidthGroupsRequest other) { + if (other == com.google.ads.admanager.v1.ListBandwidthGroupsRequest.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(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getSkip() != 0) { + setSkip(other.getSkip()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + skip_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent, which owns this collection of BandwidthGroups.
+     * Format: `networks/{network_code}`
+     * 
+ * + * + * 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, which owns this collection of BandwidthGroups.
+     * Format: `networks/{network_code}`
+     * 
+ * + * + * 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, which owns this collection of BandwidthGroups.
+     * Format: `networks/{network_code}`
+     * 
+ * + * + * 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, which owns this collection of BandwidthGroups.
+     * Format: `networks/{network_code}`
+     * 
+ * + * + * 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, which owns this collection of BandwidthGroups.
+     * Format: `networks/{network_code}`
+     * 
+ * + * + * 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 `BandwidthGroups` to return. The service
+     * may return fewer than this value. If unspecified, at most 50
+     * `BandwidthGroups` 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 `BandwidthGroups` to return. The service
+     * may return fewer than this value. If unspecified, at most 50
+     * `BandwidthGroups` 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 `BandwidthGroups` to return. The service
+     * may return fewer than this value. If unspecified, at most 50
+     * `BandwidthGroups` 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 `ListBandwidthGroups`
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListBandwidthGroups`
+     * 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 `ListBandwidthGroups`
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListBandwidthGroups`
+     * 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 `ListBandwidthGroups`
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListBandwidthGroups`
+     * 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 `ListBandwidthGroups`
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListBandwidthGroups`
+     * 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 `ListBandwidthGroups`
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListBandwidthGroups`
+     * 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; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Optional. Expression to filter the response.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters
+     * 
+ * + * string filter = 4 [(.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. Expression to filter the response.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters
+     * 
+ * + * string filter = 4 [(.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. Expression to filter the response.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters
+     * 
+ * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Expression to filter the response.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Expression to filter the response.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters
+     * 
+ * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Optional. Expression to specify sorting order.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters#order
+     * 
+ * + * 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. Expression to specify sorting order.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters#order
+     * 
+ * + * 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. Expression to specify sorting order.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters#order
+     * 
+ * + * 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. Expression to specify sorting order.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters#order
+     * 
+ * + * 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. Expression to specify sorting order.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters#order
+     * 
+ * + * 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 skip_; + + /** + * + * + *
+     * Optional. Number of individual resources to skip while paginating.
+     * 
+ * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + /** + * + * + *
+     * Optional. Number of individual resources to skip while paginating.
+     * 
+ * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The skip to set. + * @return This builder for chaining. + */ + public Builder setSkip(int value) { + + skip_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Number of individual resources to skip while paginating.
+     * 
+ * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSkip() { + bitField0_ = (bitField0_ & ~0x00000020); + skip_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListBandwidthGroupsRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListBandwidthGroupsRequest) + private static final com.google.ads.admanager.v1.ListBandwidthGroupsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListBandwidthGroupsRequest(); + } + + public static com.google.ads.admanager.v1.ListBandwidthGroupsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBandwidthGroupsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.ListBandwidthGroupsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBandwidthGroupsRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBandwidthGroupsRequestOrBuilder.java new file mode 100644 index 000000000000..6e00d516485b --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBandwidthGroupsRequestOrBuilder.java @@ -0,0 +1,181 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/bandwidth_group_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListBandwidthGroupsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListBandwidthGroupsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent, which owns this collection of BandwidthGroups.
+   * Format: `networks/{network_code}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent, which owns this collection of BandwidthGroups.
+   * Format: `networks/{network_code}`
+   * 
+ * + * + * 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 `BandwidthGroups` to return. The service
+   * may return fewer than this value. If unspecified, at most 50
+   * `BandwidthGroups` 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 `ListBandwidthGroups`
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListBandwidthGroups`
+   * 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 `ListBandwidthGroups`
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListBandwidthGroups`
+   * 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(); + + /** + * + * + *
+   * Optional. Expression to filter the response.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. Expression to filter the response.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. Expression to specify sorting order.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters#order
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Optional. Expression to specify sorting order.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters#order
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
+   * Optional. Number of individual resources to skip while paginating.
+   * 
+ * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + int getSkip(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBandwidthGroupsResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBandwidthGroupsResponse.java new file mode 100644 index 000000000000..6d565488ef72 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBandwidthGroupsResponse.java @@ -0,0 +1,1303 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/bandwidth_group_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Response object for `ListBandwidthGroupsRequest` containing matching
+ * `BandwidthGroup` objects.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.ListBandwidthGroupsResponse} + */ +public final class ListBandwidthGroupsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListBandwidthGroupsResponse) + ListBandwidthGroupsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListBandwidthGroupsResponse.newBuilder() to construct. + private ListBandwidthGroupsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListBandwidthGroupsResponse() { + bandwidthGroups_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListBandwidthGroupsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.BandwidthGroupServiceProto + .internal_static_google_ads_admanager_v1_ListBandwidthGroupsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.BandwidthGroupServiceProto + .internal_static_google_ads_admanager_v1_ListBandwidthGroupsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListBandwidthGroupsResponse.class, + com.google.ads.admanager.v1.ListBandwidthGroupsResponse.Builder.class); + } + + public static final int BANDWIDTH_GROUPS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List bandwidthGroups_; + + /** + * + * + *
+   * The `BandwidthGroup` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.BandwidthGroup bandwidth_groups = 1; + */ + @java.lang.Override + public java.util.List getBandwidthGroupsList() { + return bandwidthGroups_; + } + + /** + * + * + *
+   * The `BandwidthGroup` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.BandwidthGroup bandwidth_groups = 1; + */ + @java.lang.Override + public java.util.List + getBandwidthGroupsOrBuilderList() { + return bandwidthGroups_; + } + + /** + * + * + *
+   * The `BandwidthGroup` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.BandwidthGroup bandwidth_groups = 1; + */ + @java.lang.Override + public int getBandwidthGroupsCount() { + return bandwidthGroups_.size(); + } + + /** + * + * + *
+   * The `BandwidthGroup` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.BandwidthGroup bandwidth_groups = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.BandwidthGroup getBandwidthGroups(int index) { + return bandwidthGroups_.get(index); + } + + /** + * + * + *
+   * The `BandwidthGroup` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.BandwidthGroup bandwidth_groups = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.BandwidthGroupOrBuilder getBandwidthGroupsOrBuilder( + int index) { + return bandwidthGroups_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOTAL_SIZE_FIELD_NUMBER = 3; + private int totalSize_ = 0; + + /** + * + * + *
+   * Total number of `BandwidthGroup` objects.
+   * If a filter was included in the request, this reflects the total number
+   * after the filtering is applied.
+   *
+   * `total_size` will not be calculated in the response unless it has been
+   * included in a response field mask. The response field mask can be provided
+   * to the method by using the URL parameter `$fields` or `fields`, or by using
+   * the HTTP/gRPC header `X-Goog-FieldMask`.
+   *
+   * For more information, see
+   * https://developers.google.com/ad-manager/api/beta/field-masks
+   * 
+ * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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 < bandwidthGroups_.size(); i++) { + output.writeMessage(1, bandwidthGroups_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + if (totalSize_ != 0) { + output.writeInt32(3, totalSize_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < bandwidthGroups_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, bandwidthGroups_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + if (totalSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSize_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.admanager.v1.ListBandwidthGroupsResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListBandwidthGroupsResponse other = + (com.google.ads.admanager.v1.ListBandwidthGroupsResponse) obj; + + if (!getBandwidthGroupsList().equals(other.getBandwidthGroupsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getBandwidthGroupsCount() > 0) { + hash = (37 * hash) + BANDWIDTH_GROUPS_FIELD_NUMBER; + hash = (53 * hash) + getBandwidthGroupsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (37 * hash) + TOTAL_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getTotalSize(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListBandwidthGroupsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListBandwidthGroupsResponse 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.admanager.v1.ListBandwidthGroupsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListBandwidthGroupsResponse parseFrom( + 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.admanager.v1.ListBandwidthGroupsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListBandwidthGroupsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListBandwidthGroupsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListBandwidthGroupsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListBandwidthGroupsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListBandwidthGroupsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListBandwidthGroupsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListBandwidthGroupsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.ListBandwidthGroupsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response object for `ListBandwidthGroupsRequest` containing matching
+   * `BandwidthGroup` objects.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.ListBandwidthGroupsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListBandwidthGroupsResponse) + com.google.ads.admanager.v1.ListBandwidthGroupsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.BandwidthGroupServiceProto + .internal_static_google_ads_admanager_v1_ListBandwidthGroupsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.BandwidthGroupServiceProto + .internal_static_google_ads_admanager_v1_ListBandwidthGroupsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListBandwidthGroupsResponse.class, + com.google.ads.admanager.v1.ListBandwidthGroupsResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListBandwidthGroupsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (bandwidthGroupsBuilder_ == null) { + bandwidthGroups_ = java.util.Collections.emptyList(); + } else { + bandwidthGroups_ = null; + bandwidthGroupsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + totalSize_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.BandwidthGroupServiceProto + .internal_static_google_ads_admanager_v1_ListBandwidthGroupsResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListBandwidthGroupsResponse getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListBandwidthGroupsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListBandwidthGroupsResponse build() { + com.google.ads.admanager.v1.ListBandwidthGroupsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListBandwidthGroupsResponse buildPartial() { + com.google.ads.admanager.v1.ListBandwidthGroupsResponse result = + new com.google.ads.admanager.v1.ListBandwidthGroupsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.ListBandwidthGroupsResponse result) { + if (bandwidthGroupsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + bandwidthGroups_ = java.util.Collections.unmodifiableList(bandwidthGroups_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.bandwidthGroups_ = bandwidthGroups_; + } else { + result.bandwidthGroups_ = bandwidthGroupsBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.ListBandwidthGroupsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalSize_ = totalSize_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListBandwidthGroupsResponse) { + return mergeFrom((com.google.ads.admanager.v1.ListBandwidthGroupsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListBandwidthGroupsResponse other) { + if (other == com.google.ads.admanager.v1.ListBandwidthGroupsResponse.getDefaultInstance()) + return this; + if (bandwidthGroupsBuilder_ == null) { + if (!other.bandwidthGroups_.isEmpty()) { + if (bandwidthGroups_.isEmpty()) { + bandwidthGroups_ = other.bandwidthGroups_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBandwidthGroupsIsMutable(); + bandwidthGroups_.addAll(other.bandwidthGroups_); + } + onChanged(); + } + } else { + if (!other.bandwidthGroups_.isEmpty()) { + if (bandwidthGroupsBuilder_.isEmpty()) { + bandwidthGroupsBuilder_.dispose(); + bandwidthGroupsBuilder_ = null; + bandwidthGroups_ = other.bandwidthGroups_; + bitField0_ = (bitField0_ & ~0x00000001); + bandwidthGroupsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBandwidthGroupsFieldBuilder() + : null; + } else { + bandwidthGroupsBuilder_.addAllMessages(other.bandwidthGroups_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getTotalSize() != 0) { + setTotalSize(other.getTotalSize()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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.admanager.v1.BandwidthGroup m = + input.readMessage( + com.google.ads.admanager.v1.BandwidthGroup.parser(), extensionRegistry); + if (bandwidthGroupsBuilder_ == null) { + ensureBandwidthGroupsIsMutable(); + bandwidthGroups_.add(m); + } else { + bandwidthGroupsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + totalSize_ = input.readInt32(); + 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 bandwidthGroups_ = + java.util.Collections.emptyList(); + + private void ensureBandwidthGroupsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + bandwidthGroups_ = + new java.util.ArrayList(bandwidthGroups_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.BandwidthGroup, + com.google.ads.admanager.v1.BandwidthGroup.Builder, + com.google.ads.admanager.v1.BandwidthGroupOrBuilder> + bandwidthGroupsBuilder_; + + /** + * + * + *
+     * The `BandwidthGroup` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.BandwidthGroup bandwidth_groups = 1; + */ + public java.util.List getBandwidthGroupsList() { + if (bandwidthGroupsBuilder_ == null) { + return java.util.Collections.unmodifiableList(bandwidthGroups_); + } else { + return bandwidthGroupsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The `BandwidthGroup` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.BandwidthGroup bandwidth_groups = 1; + */ + public int getBandwidthGroupsCount() { + if (bandwidthGroupsBuilder_ == null) { + return bandwidthGroups_.size(); + } else { + return bandwidthGroupsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The `BandwidthGroup` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.BandwidthGroup bandwidth_groups = 1; + */ + public com.google.ads.admanager.v1.BandwidthGroup getBandwidthGroups(int index) { + if (bandwidthGroupsBuilder_ == null) { + return bandwidthGroups_.get(index); + } else { + return bandwidthGroupsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The `BandwidthGroup` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.BandwidthGroup bandwidth_groups = 1; + */ + public Builder setBandwidthGroups(int index, com.google.ads.admanager.v1.BandwidthGroup value) { + if (bandwidthGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBandwidthGroupsIsMutable(); + bandwidthGroups_.set(index, value); + onChanged(); + } else { + bandwidthGroupsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The `BandwidthGroup` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.BandwidthGroup bandwidth_groups = 1; + */ + public Builder setBandwidthGroups( + int index, com.google.ads.admanager.v1.BandwidthGroup.Builder builderForValue) { + if (bandwidthGroupsBuilder_ == null) { + ensureBandwidthGroupsIsMutable(); + bandwidthGroups_.set(index, builderForValue.build()); + onChanged(); + } else { + bandwidthGroupsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The `BandwidthGroup` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.BandwidthGroup bandwidth_groups = 1; + */ + public Builder addBandwidthGroups(com.google.ads.admanager.v1.BandwidthGroup value) { + if (bandwidthGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBandwidthGroupsIsMutable(); + bandwidthGroups_.add(value); + onChanged(); + } else { + bandwidthGroupsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The `BandwidthGroup` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.BandwidthGroup bandwidth_groups = 1; + */ + public Builder addBandwidthGroups(int index, com.google.ads.admanager.v1.BandwidthGroup value) { + if (bandwidthGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBandwidthGroupsIsMutable(); + bandwidthGroups_.add(index, value); + onChanged(); + } else { + bandwidthGroupsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The `BandwidthGroup` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.BandwidthGroup bandwidth_groups = 1; + */ + public Builder addBandwidthGroups( + com.google.ads.admanager.v1.BandwidthGroup.Builder builderForValue) { + if (bandwidthGroupsBuilder_ == null) { + ensureBandwidthGroupsIsMutable(); + bandwidthGroups_.add(builderForValue.build()); + onChanged(); + } else { + bandwidthGroupsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The `BandwidthGroup` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.BandwidthGroup bandwidth_groups = 1; + */ + public Builder addBandwidthGroups( + int index, com.google.ads.admanager.v1.BandwidthGroup.Builder builderForValue) { + if (bandwidthGroupsBuilder_ == null) { + ensureBandwidthGroupsIsMutable(); + bandwidthGroups_.add(index, builderForValue.build()); + onChanged(); + } else { + bandwidthGroupsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The `BandwidthGroup` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.BandwidthGroup bandwidth_groups = 1; + */ + public Builder addAllBandwidthGroups( + java.lang.Iterable values) { + if (bandwidthGroupsBuilder_ == null) { + ensureBandwidthGroupsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, bandwidthGroups_); + onChanged(); + } else { + bandwidthGroupsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The `BandwidthGroup` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.BandwidthGroup bandwidth_groups = 1; + */ + public Builder clearBandwidthGroups() { + if (bandwidthGroupsBuilder_ == null) { + bandwidthGroups_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + bandwidthGroupsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The `BandwidthGroup` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.BandwidthGroup bandwidth_groups = 1; + */ + public Builder removeBandwidthGroups(int index) { + if (bandwidthGroupsBuilder_ == null) { + ensureBandwidthGroupsIsMutable(); + bandwidthGroups_.remove(index); + onChanged(); + } else { + bandwidthGroupsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The `BandwidthGroup` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.BandwidthGroup bandwidth_groups = 1; + */ + public com.google.ads.admanager.v1.BandwidthGroup.Builder getBandwidthGroupsBuilder(int index) { + return getBandwidthGroupsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The `BandwidthGroup` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.BandwidthGroup bandwidth_groups = 1; + */ + public com.google.ads.admanager.v1.BandwidthGroupOrBuilder getBandwidthGroupsOrBuilder( + int index) { + if (bandwidthGroupsBuilder_ == null) { + return bandwidthGroups_.get(index); + } else { + return bandwidthGroupsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The `BandwidthGroup` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.BandwidthGroup bandwidth_groups = 1; + */ + public java.util.List + getBandwidthGroupsOrBuilderList() { + if (bandwidthGroupsBuilder_ != null) { + return bandwidthGroupsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(bandwidthGroups_); + } + } + + /** + * + * + *
+     * The `BandwidthGroup` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.BandwidthGroup bandwidth_groups = 1; + */ + public com.google.ads.admanager.v1.BandwidthGroup.Builder addBandwidthGroupsBuilder() { + return getBandwidthGroupsFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.BandwidthGroup.getDefaultInstance()); + } + + /** + * + * + *
+     * The `BandwidthGroup` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.BandwidthGroup bandwidth_groups = 1; + */ + public com.google.ads.admanager.v1.BandwidthGroup.Builder addBandwidthGroupsBuilder(int index) { + return getBandwidthGroupsFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.BandwidthGroup.getDefaultInstance()); + } + + /** + * + * + *
+     * The `BandwidthGroup` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.BandwidthGroup bandwidth_groups = 1; + */ + public java.util.List + getBandwidthGroupsBuilderList() { + return getBandwidthGroupsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.BandwidthGroup, + com.google.ads.admanager.v1.BandwidthGroup.Builder, + com.google.ads.admanager.v1.BandwidthGroupOrBuilder> + getBandwidthGroupsFieldBuilder() { + if (bandwidthGroupsBuilder_ == null) { + bandwidthGroupsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.BandwidthGroup, + com.google.ads.admanager.v1.BandwidthGroup.Builder, + com.google.ads.admanager.v1.BandwidthGroupOrBuilder>( + bandwidthGroups_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + bandwidthGroups_ = null; + } + return bandwidthGroupsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int totalSize_; + + /** + * + * + *
+     * Total number of `BandwidthGroup` objects.
+     * If a filter was included in the request, this reflects the total number
+     * after the filtering is applied.
+     *
+     * `total_size` will not be calculated in the response unless it has been
+     * included in a response field mask. The response field mask can be provided
+     * to the method by using the URL parameter `$fields` or `fields`, or by using
+     * the HTTP/gRPC header `X-Goog-FieldMask`.
+     *
+     * For more information, see
+     * https://developers.google.com/ad-manager/api/beta/field-masks
+     * 
+ * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + /** + * + * + *
+     * Total number of `BandwidthGroup` objects.
+     * If a filter was included in the request, this reflects the total number
+     * after the filtering is applied.
+     *
+     * `total_size` will not be calculated in the response unless it has been
+     * included in a response field mask. The response field mask can be provided
+     * to the method by using the URL parameter `$fields` or `fields`, or by using
+     * the HTTP/gRPC header `X-Goog-FieldMask`.
+     *
+     * For more information, see
+     * https://developers.google.com/ad-manager/api/beta/field-masks
+     * 
+ * + * int32 total_size = 3; + * + * @param value The totalSize to set. + * @return This builder for chaining. + */ + public Builder setTotalSize(int value) { + + totalSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Total number of `BandwidthGroup` objects.
+     * If a filter was included in the request, this reflects the total number
+     * after the filtering is applied.
+     *
+     * `total_size` will not be calculated in the response unless it has been
+     * included in a response field mask. The response field mask can be provided
+     * to the method by using the URL parameter `$fields` or `fields`, or by using
+     * the HTTP/gRPC header `X-Goog-FieldMask`.
+     *
+     * For more information, see
+     * https://developers.google.com/ad-manager/api/beta/field-masks
+     * 
+ * + * int32 total_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearTotalSize() { + bitField0_ = (bitField0_ & ~0x00000004); + totalSize_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListBandwidthGroupsResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListBandwidthGroupsResponse) + private static final com.google.ads.admanager.v1.ListBandwidthGroupsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListBandwidthGroupsResponse(); + } + + public static com.google.ads.admanager.v1.ListBandwidthGroupsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBandwidthGroupsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.ListBandwidthGroupsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBandwidthGroupsResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBandwidthGroupsResponseOrBuilder.java new file mode 100644 index 000000000000..4a9fe1c5f919 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListBandwidthGroupsResponseOrBuilder.java @@ -0,0 +1,133 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/bandwidth_group_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListBandwidthGroupsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListBandwidthGroupsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The `BandwidthGroup` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.BandwidthGroup bandwidth_groups = 1; + */ + java.util.List getBandwidthGroupsList(); + + /** + * + * + *
+   * The `BandwidthGroup` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.BandwidthGroup bandwidth_groups = 1; + */ + com.google.ads.admanager.v1.BandwidthGroup getBandwidthGroups(int index); + + /** + * + * + *
+   * The `BandwidthGroup` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.BandwidthGroup bandwidth_groups = 1; + */ + int getBandwidthGroupsCount(); + + /** + * + * + *
+   * The `BandwidthGroup` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.BandwidthGroup bandwidth_groups = 1; + */ + java.util.List + getBandwidthGroupsOrBuilderList(); + + /** + * + * + *
+   * The `BandwidthGroup` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.BandwidthGroup bandwidth_groups = 1; + */ + com.google.ads.admanager.v1.BandwidthGroupOrBuilder getBandwidthGroupsOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Total number of `BandwidthGroup` objects.
+   * If a filter was included in the request, this reflects the total number
+   * after the filtering is applied.
+   *
+   * `total_size` will not be calculated in the response unless it has been
+   * included in a response field mask. The response field mask can be provided
+   * to the method by using the URL parameter `$fields` or `fields`, or by using
+   * the HTTP/gRPC header `X-Goog-FieldMask`.
+   *
+   * For more information, see
+   * https://developers.google.com/ad-manager/api/beta/field-masks
+   * 
+ * + * int32 total_size = 3; + * + * @return The totalSize. + */ + int getTotalSize(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCustomTargetingValuesRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCustomTargetingValuesRequest.java index bd1652968d75..cf7de8c9e362 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCustomTargetingValuesRequest.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCustomTargetingValuesRequest.java @@ -79,7 +79,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * Required. The parent, which owns this collection of CustomTargetingValues.
    * Format:
-   * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+   * `networks/{network_code}`
    * 
* * @@ -107,7 +107,7 @@ public java.lang.String getParent() { *
    * Required. The parent, which owns this collection of CustomTargetingValues.
    * Format:
-   * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+   * `networks/{network_code}`
    * 
* * @@ -820,7 +820,7 @@ public Builder mergeFrom( *
      * Required. The parent, which owns this collection of CustomTargetingValues.
      * Format:
-     * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+     * `networks/{network_code}`
      * 
* * @@ -847,7 +847,7 @@ public java.lang.String getParent() { *
      * Required. The parent, which owns this collection of CustomTargetingValues.
      * Format:
-     * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+     * `networks/{network_code}`
      * 
* * @@ -874,7 +874,7 @@ public com.google.protobuf.ByteString getParentBytes() { *
      * Required. The parent, which owns this collection of CustomTargetingValues.
      * Format:
-     * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+     * `networks/{network_code}`
      * 
* * @@ -900,7 +900,7 @@ public Builder setParent(java.lang.String value) { *
      * Required. The parent, which owns this collection of CustomTargetingValues.
      * Format:
-     * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+     * `networks/{network_code}`
      * 
* * @@ -922,7 +922,7 @@ public Builder clearParent() { *
      * Required. The parent, which owns this collection of CustomTargetingValues.
      * Format:
-     * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+     * `networks/{network_code}`
      * 
* * diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCustomTargetingValuesRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCustomTargetingValuesRequestOrBuilder.java index b376a5de9eb2..5952a5bcc26d 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCustomTargetingValuesRequestOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListCustomTargetingValuesRequestOrBuilder.java @@ -30,7 +30,7 @@ public interface ListCustomTargetingValuesRequestOrBuilder *
    * Required. The parent, which owns this collection of CustomTargetingValues.
    * Format:
-   * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+   * `networks/{network_code}`
    * 
* * @@ -47,7 +47,7 @@ public interface ListCustomTargetingValuesRequestOrBuilder *
    * Required. The parent, which owns this collection of CustomTargetingValues.
    * Format:
-   * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+   * `networks/{network_code}`
    * 
* * diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceCategoriesRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceCategoriesRequest.java new file mode 100644 index 000000000000..88f313a50ec1 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceCategoriesRequest.java @@ -0,0 +1,1485 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/device_category_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Request object for `ListDeviceCategories` method.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.ListDeviceCategoriesRequest} + */ +public final class ListDeviceCategoriesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListDeviceCategoriesRequest) + ListDeviceCategoriesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListDeviceCategoriesRequest.newBuilder() to construct. + private ListDeviceCategoriesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDeviceCategoriesRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDeviceCategoriesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.DeviceCategoryServiceProto + .internal_static_google_ads_admanager_v1_ListDeviceCategoriesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.DeviceCategoryServiceProto + .internal_static_google_ads_admanager_v1_ListDeviceCategoriesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListDeviceCategoriesRequest.class, + com.google.ads.admanager.v1.ListDeviceCategoriesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent, which owns this collection of DeviceCategories.
+   * Format: `networks/{network_code}`
+   * 
+ * + * + * 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, which owns this collection of DeviceCategories.
+   * Format: `networks/{network_code}`
+   * 
+ * + * + * 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 `DeviceCategories` to return. The service
+   * may return fewer than this value. If unspecified, at most 50
+   * `DeviceCategories` 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 `ListDeviceCategories`
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListDeviceCategories`
+   * 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 `ListDeviceCategories`
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListDeviceCategories`
+   * 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; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Optional. Expression to filter the response.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters
+   * 
+ * + * string filter = 4 [(.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. Expression to filter the response.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters
+   * 
+ * + * string filter = 4 [(.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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Optional. Expression to specify sorting order.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters#order
+   * 
+ * + * 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. Expression to specify sorting order.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters#order
+   * 
+ * + * 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 SKIP_FIELD_NUMBER = 6; + private int skip_ = 0; + + /** + * + * + *
+   * Optional. Number of individual resources to skip while paginating.
+   * 
+ * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + if (skip_ != 0) { + output.writeInt32(6, skip_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + if (skip_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, skip_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.admanager.v1.ListDeviceCategoriesRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListDeviceCategoriesRequest other = + (com.google.ads.admanager.v1.ListDeviceCategoriesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (getSkip() != other.getSkip()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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 = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + SKIP_FIELD_NUMBER; + hash = (53 * hash) + getSkip(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListDeviceCategoriesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListDeviceCategoriesRequest 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.admanager.v1.ListDeviceCategoriesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListDeviceCategoriesRequest parseFrom( + 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.admanager.v1.ListDeviceCategoriesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListDeviceCategoriesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListDeviceCategoriesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListDeviceCategoriesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListDeviceCategoriesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListDeviceCategoriesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListDeviceCategoriesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListDeviceCategoriesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.ListDeviceCategoriesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request object for `ListDeviceCategories` method.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.ListDeviceCategoriesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListDeviceCategoriesRequest) + com.google.ads.admanager.v1.ListDeviceCategoriesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.DeviceCategoryServiceProto + .internal_static_google_ads_admanager_v1_ListDeviceCategoriesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.DeviceCategoryServiceProto + .internal_static_google_ads_admanager_v1_ListDeviceCategoriesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListDeviceCategoriesRequest.class, + com.google.ads.admanager.v1.ListDeviceCategoriesRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListDeviceCategoriesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + skip_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.DeviceCategoryServiceProto + .internal_static_google_ads_admanager_v1_ListDeviceCategoriesRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListDeviceCategoriesRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListDeviceCategoriesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListDeviceCategoriesRequest build() { + com.google.ads.admanager.v1.ListDeviceCategoriesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListDeviceCategoriesRequest buildPartial() { + com.google.ads.admanager.v1.ListDeviceCategoriesRequest result = + new com.google.ads.admanager.v1.ListDeviceCategoriesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.ListDeviceCategoriesRequest 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_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.skip_ = skip_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListDeviceCategoriesRequest) { + return mergeFrom((com.google.ads.admanager.v1.ListDeviceCategoriesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListDeviceCategoriesRequest other) { + if (other == com.google.ads.admanager.v1.ListDeviceCategoriesRequest.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(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getSkip() != 0) { + setSkip(other.getSkip()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + skip_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent, which owns this collection of DeviceCategories.
+     * Format: `networks/{network_code}`
+     * 
+ * + * + * 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, which owns this collection of DeviceCategories.
+     * Format: `networks/{network_code}`
+     * 
+ * + * + * 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, which owns this collection of DeviceCategories.
+     * Format: `networks/{network_code}`
+     * 
+ * + * + * 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, which owns this collection of DeviceCategories.
+     * Format: `networks/{network_code}`
+     * 
+ * + * + * 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, which owns this collection of DeviceCategories.
+     * Format: `networks/{network_code}`
+     * 
+ * + * + * 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 `DeviceCategories` to return. The service
+     * may return fewer than this value. If unspecified, at most 50
+     * `DeviceCategories` 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 `DeviceCategories` to return. The service
+     * may return fewer than this value. If unspecified, at most 50
+     * `DeviceCategories` 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 `DeviceCategories` to return. The service
+     * may return fewer than this value. If unspecified, at most 50
+     * `DeviceCategories` 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 `ListDeviceCategories`
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListDeviceCategories`
+     * 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 `ListDeviceCategories`
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListDeviceCategories`
+     * 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 `ListDeviceCategories`
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListDeviceCategories`
+     * 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 `ListDeviceCategories`
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListDeviceCategories`
+     * 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 `ListDeviceCategories`
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListDeviceCategories`
+     * 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; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Optional. Expression to filter the response.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters
+     * 
+ * + * string filter = 4 [(.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. Expression to filter the response.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters
+     * 
+ * + * string filter = 4 [(.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. Expression to filter the response.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters
+     * 
+ * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Expression to filter the response.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Expression to filter the response.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters
+     * 
+ * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Optional. Expression to specify sorting order.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters#order
+     * 
+ * + * 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. Expression to specify sorting order.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters#order
+     * 
+ * + * 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. Expression to specify sorting order.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters#order
+     * 
+ * + * 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. Expression to specify sorting order.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters#order
+     * 
+ * + * 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. Expression to specify sorting order.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters#order
+     * 
+ * + * 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 skip_; + + /** + * + * + *
+     * Optional. Number of individual resources to skip while paginating.
+     * 
+ * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + /** + * + * + *
+     * Optional. Number of individual resources to skip while paginating.
+     * 
+ * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The skip to set. + * @return This builder for chaining. + */ + public Builder setSkip(int value) { + + skip_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Number of individual resources to skip while paginating.
+     * 
+ * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSkip() { + bitField0_ = (bitField0_ & ~0x00000020); + skip_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListDeviceCategoriesRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListDeviceCategoriesRequest) + private static final com.google.ads.admanager.v1.ListDeviceCategoriesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListDeviceCategoriesRequest(); + } + + public static com.google.ads.admanager.v1.ListDeviceCategoriesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDeviceCategoriesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.ListDeviceCategoriesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceCategoriesRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceCategoriesRequestOrBuilder.java new file mode 100644 index 000000000000..7f04402e9682 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceCategoriesRequestOrBuilder.java @@ -0,0 +1,181 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/device_category_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListDeviceCategoriesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListDeviceCategoriesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent, which owns this collection of DeviceCategories.
+   * Format: `networks/{network_code}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent, which owns this collection of DeviceCategories.
+   * Format: `networks/{network_code}`
+   * 
+ * + * + * 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 `DeviceCategories` to return. The service
+   * may return fewer than this value. If unspecified, at most 50
+   * `DeviceCategories` 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 `ListDeviceCategories`
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListDeviceCategories`
+   * 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 `ListDeviceCategories`
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListDeviceCategories`
+   * 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(); + + /** + * + * + *
+   * Optional. Expression to filter the response.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. Expression to filter the response.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. Expression to specify sorting order.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters#order
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Optional. Expression to specify sorting order.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters#order
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
+   * Optional. Number of individual resources to skip while paginating.
+   * 
+ * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + int getSkip(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceCategoriesResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceCategoriesResponse.java new file mode 100644 index 000000000000..ff377ae838fb --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceCategoriesResponse.java @@ -0,0 +1,1307 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/device_category_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Response object for `ListDeviceCategoriesRequest` containing matching
+ * `DeviceCategory` objects.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.ListDeviceCategoriesResponse} + */ +public final class ListDeviceCategoriesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListDeviceCategoriesResponse) + ListDeviceCategoriesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListDeviceCategoriesResponse.newBuilder() to construct. + private ListDeviceCategoriesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDeviceCategoriesResponse() { + deviceCategories_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDeviceCategoriesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.DeviceCategoryServiceProto + .internal_static_google_ads_admanager_v1_ListDeviceCategoriesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.DeviceCategoryServiceProto + .internal_static_google_ads_admanager_v1_ListDeviceCategoriesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListDeviceCategoriesResponse.class, + com.google.ads.admanager.v1.ListDeviceCategoriesResponse.Builder.class); + } + + public static final int DEVICE_CATEGORIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List deviceCategories_; + + /** + * + * + *
+   * The `DeviceCategory` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1; + */ + @java.lang.Override + public java.util.List getDeviceCategoriesList() { + return deviceCategories_; + } + + /** + * + * + *
+   * The `DeviceCategory` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1; + */ + @java.lang.Override + public java.util.List + getDeviceCategoriesOrBuilderList() { + return deviceCategories_; + } + + /** + * + * + *
+   * The `DeviceCategory` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1; + */ + @java.lang.Override + public int getDeviceCategoriesCount() { + return deviceCategories_.size(); + } + + /** + * + * + *
+   * The `DeviceCategory` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.DeviceCategory getDeviceCategories(int index) { + return deviceCategories_.get(index); + } + + /** + * + * + *
+   * The `DeviceCategory` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.DeviceCategoryOrBuilder getDeviceCategoriesOrBuilder( + int index) { + return deviceCategories_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOTAL_SIZE_FIELD_NUMBER = 3; + private int totalSize_ = 0; + + /** + * + * + *
+   * Total number of `DeviceCategory` objects.
+   * If a filter was included in the request, this reflects the total number
+   * after the filtering is applied.
+   *
+   * `total_size` will not be calculated in the response unless it has been
+   * included in a response field mask. The response field mask can be provided
+   * to the method by using the URL parameter `$fields` or `fields`, or by using
+   * the HTTP/gRPC header `X-Goog-FieldMask`.
+   *
+   * For more information, see
+   * https://developers.google.com/ad-manager/api/beta/field-masks
+   * 
+ * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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 < deviceCategories_.size(); i++) { + output.writeMessage(1, deviceCategories_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + if (totalSize_ != 0) { + output.writeInt32(3, totalSize_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < deviceCategories_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, deviceCategories_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + if (totalSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSize_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.admanager.v1.ListDeviceCategoriesResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListDeviceCategoriesResponse other = + (com.google.ads.admanager.v1.ListDeviceCategoriesResponse) obj; + + if (!getDeviceCategoriesList().equals(other.getDeviceCategoriesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDeviceCategoriesCount() > 0) { + hash = (37 * hash) + DEVICE_CATEGORIES_FIELD_NUMBER; + hash = (53 * hash) + getDeviceCategoriesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (37 * hash) + TOTAL_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getTotalSize(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListDeviceCategoriesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListDeviceCategoriesResponse 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.admanager.v1.ListDeviceCategoriesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListDeviceCategoriesResponse parseFrom( + 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.admanager.v1.ListDeviceCategoriesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListDeviceCategoriesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListDeviceCategoriesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListDeviceCategoriesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListDeviceCategoriesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListDeviceCategoriesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListDeviceCategoriesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListDeviceCategoriesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.ListDeviceCategoriesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response object for `ListDeviceCategoriesRequest` containing matching
+   * `DeviceCategory` objects.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.ListDeviceCategoriesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListDeviceCategoriesResponse) + com.google.ads.admanager.v1.ListDeviceCategoriesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.DeviceCategoryServiceProto + .internal_static_google_ads_admanager_v1_ListDeviceCategoriesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.DeviceCategoryServiceProto + .internal_static_google_ads_admanager_v1_ListDeviceCategoriesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListDeviceCategoriesResponse.class, + com.google.ads.admanager.v1.ListDeviceCategoriesResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListDeviceCategoriesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (deviceCategoriesBuilder_ == null) { + deviceCategories_ = java.util.Collections.emptyList(); + } else { + deviceCategories_ = null; + deviceCategoriesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + totalSize_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.DeviceCategoryServiceProto + .internal_static_google_ads_admanager_v1_ListDeviceCategoriesResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListDeviceCategoriesResponse getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListDeviceCategoriesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListDeviceCategoriesResponse build() { + com.google.ads.admanager.v1.ListDeviceCategoriesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListDeviceCategoriesResponse buildPartial() { + com.google.ads.admanager.v1.ListDeviceCategoriesResponse result = + new com.google.ads.admanager.v1.ListDeviceCategoriesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.ListDeviceCategoriesResponse result) { + if (deviceCategoriesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + deviceCategories_ = java.util.Collections.unmodifiableList(deviceCategories_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.deviceCategories_ = deviceCategories_; + } else { + result.deviceCategories_ = deviceCategoriesBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.ListDeviceCategoriesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalSize_ = totalSize_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListDeviceCategoriesResponse) { + return mergeFrom((com.google.ads.admanager.v1.ListDeviceCategoriesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListDeviceCategoriesResponse other) { + if (other == com.google.ads.admanager.v1.ListDeviceCategoriesResponse.getDefaultInstance()) + return this; + if (deviceCategoriesBuilder_ == null) { + if (!other.deviceCategories_.isEmpty()) { + if (deviceCategories_.isEmpty()) { + deviceCategories_ = other.deviceCategories_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDeviceCategoriesIsMutable(); + deviceCategories_.addAll(other.deviceCategories_); + } + onChanged(); + } + } else { + if (!other.deviceCategories_.isEmpty()) { + if (deviceCategoriesBuilder_.isEmpty()) { + deviceCategoriesBuilder_.dispose(); + deviceCategoriesBuilder_ = null; + deviceCategories_ = other.deviceCategories_; + bitField0_ = (bitField0_ & ~0x00000001); + deviceCategoriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDeviceCategoriesFieldBuilder() + : null; + } else { + deviceCategoriesBuilder_.addAllMessages(other.deviceCategories_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getTotalSize() != 0) { + setTotalSize(other.getTotalSize()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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.admanager.v1.DeviceCategory m = + input.readMessage( + com.google.ads.admanager.v1.DeviceCategory.parser(), extensionRegistry); + if (deviceCategoriesBuilder_ == null) { + ensureDeviceCategoriesIsMutable(); + deviceCategories_.add(m); + } else { + deviceCategoriesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + totalSize_ = input.readInt32(); + 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 deviceCategories_ = + java.util.Collections.emptyList(); + + private void ensureDeviceCategoriesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + deviceCategories_ = + new java.util.ArrayList(deviceCategories_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.DeviceCategory, + com.google.ads.admanager.v1.DeviceCategory.Builder, + com.google.ads.admanager.v1.DeviceCategoryOrBuilder> + deviceCategoriesBuilder_; + + /** + * + * + *
+     * The `DeviceCategory` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1; + */ + public java.util.List getDeviceCategoriesList() { + if (deviceCategoriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(deviceCategories_); + } else { + return deviceCategoriesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The `DeviceCategory` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1; + */ + public int getDeviceCategoriesCount() { + if (deviceCategoriesBuilder_ == null) { + return deviceCategories_.size(); + } else { + return deviceCategoriesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The `DeviceCategory` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1; + */ + public com.google.ads.admanager.v1.DeviceCategory getDeviceCategories(int index) { + if (deviceCategoriesBuilder_ == null) { + return deviceCategories_.get(index); + } else { + return deviceCategoriesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The `DeviceCategory` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1; + */ + public Builder setDeviceCategories( + int index, com.google.ads.admanager.v1.DeviceCategory value) { + if (deviceCategoriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeviceCategoriesIsMutable(); + deviceCategories_.set(index, value); + onChanged(); + } else { + deviceCategoriesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The `DeviceCategory` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1; + */ + public Builder setDeviceCategories( + int index, com.google.ads.admanager.v1.DeviceCategory.Builder builderForValue) { + if (deviceCategoriesBuilder_ == null) { + ensureDeviceCategoriesIsMutable(); + deviceCategories_.set(index, builderForValue.build()); + onChanged(); + } else { + deviceCategoriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The `DeviceCategory` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1; + */ + public Builder addDeviceCategories(com.google.ads.admanager.v1.DeviceCategory value) { + if (deviceCategoriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeviceCategoriesIsMutable(); + deviceCategories_.add(value); + onChanged(); + } else { + deviceCategoriesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The `DeviceCategory` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1; + */ + public Builder addDeviceCategories( + int index, com.google.ads.admanager.v1.DeviceCategory value) { + if (deviceCategoriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeviceCategoriesIsMutable(); + deviceCategories_.add(index, value); + onChanged(); + } else { + deviceCategoriesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The `DeviceCategory` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1; + */ + public Builder addDeviceCategories( + com.google.ads.admanager.v1.DeviceCategory.Builder builderForValue) { + if (deviceCategoriesBuilder_ == null) { + ensureDeviceCategoriesIsMutable(); + deviceCategories_.add(builderForValue.build()); + onChanged(); + } else { + deviceCategoriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The `DeviceCategory` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1; + */ + public Builder addDeviceCategories( + int index, com.google.ads.admanager.v1.DeviceCategory.Builder builderForValue) { + if (deviceCategoriesBuilder_ == null) { + ensureDeviceCategoriesIsMutable(); + deviceCategories_.add(index, builderForValue.build()); + onChanged(); + } else { + deviceCategoriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The `DeviceCategory` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1; + */ + public Builder addAllDeviceCategories( + java.lang.Iterable values) { + if (deviceCategoriesBuilder_ == null) { + ensureDeviceCategoriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deviceCategories_); + onChanged(); + } else { + deviceCategoriesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The `DeviceCategory` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1; + */ + public Builder clearDeviceCategories() { + if (deviceCategoriesBuilder_ == null) { + deviceCategories_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + deviceCategoriesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The `DeviceCategory` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1; + */ + public Builder removeDeviceCategories(int index) { + if (deviceCategoriesBuilder_ == null) { + ensureDeviceCategoriesIsMutable(); + deviceCategories_.remove(index); + onChanged(); + } else { + deviceCategoriesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The `DeviceCategory` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1; + */ + public com.google.ads.admanager.v1.DeviceCategory.Builder getDeviceCategoriesBuilder( + int index) { + return getDeviceCategoriesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The `DeviceCategory` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1; + */ + public com.google.ads.admanager.v1.DeviceCategoryOrBuilder getDeviceCategoriesOrBuilder( + int index) { + if (deviceCategoriesBuilder_ == null) { + return deviceCategories_.get(index); + } else { + return deviceCategoriesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The `DeviceCategory` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1; + */ + public java.util.List + getDeviceCategoriesOrBuilderList() { + if (deviceCategoriesBuilder_ != null) { + return deviceCategoriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(deviceCategories_); + } + } + + /** + * + * + *
+     * The `DeviceCategory` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1; + */ + public com.google.ads.admanager.v1.DeviceCategory.Builder addDeviceCategoriesBuilder() { + return getDeviceCategoriesFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.DeviceCategory.getDefaultInstance()); + } + + /** + * + * + *
+     * The `DeviceCategory` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1; + */ + public com.google.ads.admanager.v1.DeviceCategory.Builder addDeviceCategoriesBuilder( + int index) { + return getDeviceCategoriesFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.DeviceCategory.getDefaultInstance()); + } + + /** + * + * + *
+     * The `DeviceCategory` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1; + */ + public java.util.List + getDeviceCategoriesBuilderList() { + return getDeviceCategoriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.DeviceCategory, + com.google.ads.admanager.v1.DeviceCategory.Builder, + com.google.ads.admanager.v1.DeviceCategoryOrBuilder> + getDeviceCategoriesFieldBuilder() { + if (deviceCategoriesBuilder_ == null) { + deviceCategoriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.DeviceCategory, + com.google.ads.admanager.v1.DeviceCategory.Builder, + com.google.ads.admanager.v1.DeviceCategoryOrBuilder>( + deviceCategories_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + deviceCategories_ = null; + } + return deviceCategoriesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int totalSize_; + + /** + * + * + *
+     * Total number of `DeviceCategory` objects.
+     * If a filter was included in the request, this reflects the total number
+     * after the filtering is applied.
+     *
+     * `total_size` will not be calculated in the response unless it has been
+     * included in a response field mask. The response field mask can be provided
+     * to the method by using the URL parameter `$fields` or `fields`, or by using
+     * the HTTP/gRPC header `X-Goog-FieldMask`.
+     *
+     * For more information, see
+     * https://developers.google.com/ad-manager/api/beta/field-masks
+     * 
+ * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + /** + * + * + *
+     * Total number of `DeviceCategory` objects.
+     * If a filter was included in the request, this reflects the total number
+     * after the filtering is applied.
+     *
+     * `total_size` will not be calculated in the response unless it has been
+     * included in a response field mask. The response field mask can be provided
+     * to the method by using the URL parameter `$fields` or `fields`, or by using
+     * the HTTP/gRPC header `X-Goog-FieldMask`.
+     *
+     * For more information, see
+     * https://developers.google.com/ad-manager/api/beta/field-masks
+     * 
+ * + * int32 total_size = 3; + * + * @param value The totalSize to set. + * @return This builder for chaining. + */ + public Builder setTotalSize(int value) { + + totalSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Total number of `DeviceCategory` objects.
+     * If a filter was included in the request, this reflects the total number
+     * after the filtering is applied.
+     *
+     * `total_size` will not be calculated in the response unless it has been
+     * included in a response field mask. The response field mask can be provided
+     * to the method by using the URL parameter `$fields` or `fields`, or by using
+     * the HTTP/gRPC header `X-Goog-FieldMask`.
+     *
+     * For more information, see
+     * https://developers.google.com/ad-manager/api/beta/field-masks
+     * 
+ * + * int32 total_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearTotalSize() { + bitField0_ = (bitField0_ & ~0x00000004); + totalSize_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListDeviceCategoriesResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListDeviceCategoriesResponse) + private static final com.google.ads.admanager.v1.ListDeviceCategoriesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListDeviceCategoriesResponse(); + } + + public static com.google.ads.admanager.v1.ListDeviceCategoriesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDeviceCategoriesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.ListDeviceCategoriesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceCategoriesResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceCategoriesResponseOrBuilder.java new file mode 100644 index 000000000000..d7d94e629f94 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListDeviceCategoriesResponseOrBuilder.java @@ -0,0 +1,133 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/device_category_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListDeviceCategoriesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListDeviceCategoriesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The `DeviceCategory` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1; + */ + java.util.List getDeviceCategoriesList(); + + /** + * + * + *
+   * The `DeviceCategory` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1; + */ + com.google.ads.admanager.v1.DeviceCategory getDeviceCategories(int index); + + /** + * + * + *
+   * The `DeviceCategory` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1; + */ + int getDeviceCategoriesCount(); + + /** + * + * + *
+   * The `DeviceCategory` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1; + */ + java.util.List + getDeviceCategoriesOrBuilderList(); + + /** + * + * + *
+   * The `DeviceCategory` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.DeviceCategory device_categories = 1; + */ + com.google.ads.admanager.v1.DeviceCategoryOrBuilder getDeviceCategoriesOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Total number of `DeviceCategory` objects.
+   * If a filter was included in the request, this reflects the total number
+   * after the filtering is applied.
+   *
+   * `total_size` will not be calculated in the response unless it has been
+   * included in a response field mask. The response field mask can be provided
+   * to the method by using the URL parameter `$fields` or `fields`, or by using
+   * the HTTP/gRPC header `X-Goog-FieldMask`.
+   *
+   * For more information, see
+   * https://developers.google.com/ad-manager/api/beta/field-masks
+   * 
+ * + * int32 total_size = 3; + * + * @return The totalSize. + */ + int getTotalSize(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListGeoTargetsRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListGeoTargetsRequest.java new file mode 100644 index 000000000000..fc8b0dfb773e --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListGeoTargetsRequest.java @@ -0,0 +1,1484 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/geo_target_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Request object for `ListGeoTargets` method.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.ListGeoTargetsRequest} + */ +public final class ListGeoTargetsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListGeoTargetsRequest) + ListGeoTargetsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListGeoTargetsRequest.newBuilder() to construct. + private ListGeoTargetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListGeoTargetsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListGeoTargetsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.GeoTargetServiceProto + .internal_static_google_ads_admanager_v1_ListGeoTargetsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.GeoTargetServiceProto + .internal_static_google_ads_admanager_v1_ListGeoTargetsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListGeoTargetsRequest.class, + com.google.ads.admanager.v1.ListGeoTargetsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent, which owns this collection of GeoTargets.
+   * Format: `networks/{network_code}`
+   * 
+ * + * + * 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, which owns this collection of GeoTargets.
+   * Format: `networks/{network_code}`
+   * 
+ * + * + * 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 `GeoTargets` to return. The service may
+   * return fewer than this value. If unspecified, at most 50 `GeoTargets` 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 `ListGeoTargets` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListGeoTargets` 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 `ListGeoTargets` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListGeoTargets` 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; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Optional. Expression to filter the response.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters
+   * 
+ * + * string filter = 4 [(.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. Expression to filter the response.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters
+   * 
+ * + * string filter = 4 [(.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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Optional. Expression to specify sorting order.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters#order
+   * 
+ * + * 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. Expression to specify sorting order.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters#order
+   * 
+ * + * 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 SKIP_FIELD_NUMBER = 6; + private int skip_ = 0; + + /** + * + * + *
+   * Optional. Number of individual resources to skip while paginating.
+   * 
+ * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + if (skip_ != 0) { + output.writeInt32(6, skip_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + if (skip_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, skip_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.admanager.v1.ListGeoTargetsRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListGeoTargetsRequest other = + (com.google.ads.admanager.v1.ListGeoTargetsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (getSkip() != other.getSkip()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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 = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + SKIP_FIELD_NUMBER; + hash = (53 * hash) + getSkip(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListGeoTargetsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListGeoTargetsRequest 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.admanager.v1.ListGeoTargetsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListGeoTargetsRequest parseFrom( + 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.admanager.v1.ListGeoTargetsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListGeoTargetsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListGeoTargetsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListGeoTargetsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListGeoTargetsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListGeoTargetsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListGeoTargetsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListGeoTargetsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.ListGeoTargetsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request object for `ListGeoTargets` method.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.ListGeoTargetsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListGeoTargetsRequest) + com.google.ads.admanager.v1.ListGeoTargetsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.GeoTargetServiceProto + .internal_static_google_ads_admanager_v1_ListGeoTargetsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.GeoTargetServiceProto + .internal_static_google_ads_admanager_v1_ListGeoTargetsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListGeoTargetsRequest.class, + com.google.ads.admanager.v1.ListGeoTargetsRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListGeoTargetsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + skip_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.GeoTargetServiceProto + .internal_static_google_ads_admanager_v1_ListGeoTargetsRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListGeoTargetsRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListGeoTargetsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListGeoTargetsRequest build() { + com.google.ads.admanager.v1.ListGeoTargetsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListGeoTargetsRequest buildPartial() { + com.google.ads.admanager.v1.ListGeoTargetsRequest result = + new com.google.ads.admanager.v1.ListGeoTargetsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.ListGeoTargetsRequest 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_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.skip_ = skip_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListGeoTargetsRequest) { + return mergeFrom((com.google.ads.admanager.v1.ListGeoTargetsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListGeoTargetsRequest other) { + if (other == com.google.ads.admanager.v1.ListGeoTargetsRequest.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(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getSkip() != 0) { + setSkip(other.getSkip()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + skip_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent, which owns this collection of GeoTargets.
+     * Format: `networks/{network_code}`
+     * 
+ * + * + * 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, which owns this collection of GeoTargets.
+     * Format: `networks/{network_code}`
+     * 
+ * + * + * 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, which owns this collection of GeoTargets.
+     * Format: `networks/{network_code}`
+     * 
+ * + * + * 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, which owns this collection of GeoTargets.
+     * Format: `networks/{network_code}`
+     * 
+ * + * + * 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, which owns this collection of GeoTargets.
+     * Format: `networks/{network_code}`
+     * 
+ * + * + * 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 `GeoTargets` to return. The service may
+     * return fewer than this value. If unspecified, at most 50 `GeoTargets` 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 `GeoTargets` to return. The service may
+     * return fewer than this value. If unspecified, at most 50 `GeoTargets` 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 `GeoTargets` to return. The service may
+     * return fewer than this value. If unspecified, at most 50 `GeoTargets` 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 `ListGeoTargets` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListGeoTargets` 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 `ListGeoTargets` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListGeoTargets` 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 `ListGeoTargets` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListGeoTargets` 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 `ListGeoTargets` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListGeoTargets` 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 `ListGeoTargets` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListGeoTargets` 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; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Optional. Expression to filter the response.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters
+     * 
+ * + * string filter = 4 [(.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. Expression to filter the response.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters
+     * 
+ * + * string filter = 4 [(.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. Expression to filter the response.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters
+     * 
+ * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Expression to filter the response.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Expression to filter the response.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters
+     * 
+ * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Optional. Expression to specify sorting order.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters#order
+     * 
+ * + * 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. Expression to specify sorting order.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters#order
+     * 
+ * + * 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. Expression to specify sorting order.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters#order
+     * 
+ * + * 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. Expression to specify sorting order.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters#order
+     * 
+ * + * 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. Expression to specify sorting order.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters#order
+     * 
+ * + * 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 skip_; + + /** + * + * + *
+     * Optional. Number of individual resources to skip while paginating.
+     * 
+ * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + /** + * + * + *
+     * Optional. Number of individual resources to skip while paginating.
+     * 
+ * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The skip to set. + * @return This builder for chaining. + */ + public Builder setSkip(int value) { + + skip_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Number of individual resources to skip while paginating.
+     * 
+ * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSkip() { + bitField0_ = (bitField0_ & ~0x00000020); + skip_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListGeoTargetsRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListGeoTargetsRequest) + private static final com.google.ads.admanager.v1.ListGeoTargetsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListGeoTargetsRequest(); + } + + public static com.google.ads.admanager.v1.ListGeoTargetsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListGeoTargetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.ListGeoTargetsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListGeoTargetsRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListGeoTargetsRequestOrBuilder.java new file mode 100644 index 000000000000..ce273c48e42c --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListGeoTargetsRequestOrBuilder.java @@ -0,0 +1,181 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/geo_target_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListGeoTargetsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListGeoTargetsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent, which owns this collection of GeoTargets.
+   * Format: `networks/{network_code}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent, which owns this collection of GeoTargets.
+   * Format: `networks/{network_code}`
+   * 
+ * + * + * 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 `GeoTargets` to return. The service may
+   * return fewer than this value. If unspecified, at most 50 `GeoTargets` 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 `ListGeoTargets` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListGeoTargets` 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 `ListGeoTargets` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListGeoTargets` 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(); + + /** + * + * + *
+   * Optional. Expression to filter the response.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. Expression to filter the response.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. Expression to specify sorting order.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters#order
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Optional. Expression to specify sorting order.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters#order
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
+   * Optional. Number of individual resources to skip while paginating.
+   * 
+ * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + int getSkip(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListGeoTargetsResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListGeoTargetsResponse.java new file mode 100644 index 000000000000..5c8e4ff27147 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListGeoTargetsResponse.java @@ -0,0 +1,1295 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/geo_target_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Response object for `ListGeoTargetsRequest` containing matching `GeoTarget`
+ * objects.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.ListGeoTargetsResponse} + */ +public final class ListGeoTargetsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListGeoTargetsResponse) + ListGeoTargetsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListGeoTargetsResponse.newBuilder() to construct. + private ListGeoTargetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListGeoTargetsResponse() { + geoTargets_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListGeoTargetsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.GeoTargetServiceProto + .internal_static_google_ads_admanager_v1_ListGeoTargetsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.GeoTargetServiceProto + .internal_static_google_ads_admanager_v1_ListGeoTargetsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListGeoTargetsResponse.class, + com.google.ads.admanager.v1.ListGeoTargetsResponse.Builder.class); + } + + public static final int GEO_TARGETS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List geoTargets_; + + /** + * + * + *
+   * The `GeoTarget` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.GeoTarget geo_targets = 1; + */ + @java.lang.Override + public java.util.List getGeoTargetsList() { + return geoTargets_; + } + + /** + * + * + *
+   * The `GeoTarget` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.GeoTarget geo_targets = 1; + */ + @java.lang.Override + public java.util.List + getGeoTargetsOrBuilderList() { + return geoTargets_; + } + + /** + * + * + *
+   * The `GeoTarget` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.GeoTarget geo_targets = 1; + */ + @java.lang.Override + public int getGeoTargetsCount() { + return geoTargets_.size(); + } + + /** + * + * + *
+   * The `GeoTarget` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.GeoTarget geo_targets = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.GeoTarget getGeoTargets(int index) { + return geoTargets_.get(index); + } + + /** + * + * + *
+   * The `GeoTarget` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.GeoTarget geo_targets = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.GeoTargetOrBuilder getGeoTargetsOrBuilder(int index) { + return geoTargets_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOTAL_SIZE_FIELD_NUMBER = 3; + private int totalSize_ = 0; + + /** + * + * + *
+   * Total number of `GeoTarget` objects.
+   * If a filter was included in the request, this reflects the total number
+   * after the filtering is applied.
+   *
+   * `total_size` will not be calculated in the response unless it has been
+   * included in a response field mask. The response field mask can be provided
+   * to the method by using the URL parameter `$fields` or `fields`, or by using
+   * the HTTP/gRPC header `X-Goog-FieldMask`.
+   *
+   * For more information, see
+   * https://developers.google.com/ad-manager/api/beta/field-masks
+   * 
+ * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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 < geoTargets_.size(); i++) { + output.writeMessage(1, geoTargets_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + if (totalSize_ != 0) { + output.writeInt32(3, totalSize_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < geoTargets_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, geoTargets_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + if (totalSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSize_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.admanager.v1.ListGeoTargetsResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListGeoTargetsResponse other = + (com.google.ads.admanager.v1.ListGeoTargetsResponse) obj; + + if (!getGeoTargetsList().equals(other.getGeoTargetsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getGeoTargetsCount() > 0) { + hash = (37 * hash) + GEO_TARGETS_FIELD_NUMBER; + hash = (53 * hash) + getGeoTargetsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (37 * hash) + TOTAL_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getTotalSize(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListGeoTargetsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListGeoTargetsResponse 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.admanager.v1.ListGeoTargetsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListGeoTargetsResponse parseFrom( + 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.admanager.v1.ListGeoTargetsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListGeoTargetsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListGeoTargetsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListGeoTargetsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListGeoTargetsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListGeoTargetsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListGeoTargetsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListGeoTargetsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.ListGeoTargetsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response object for `ListGeoTargetsRequest` containing matching `GeoTarget`
+   * objects.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.ListGeoTargetsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListGeoTargetsResponse) + com.google.ads.admanager.v1.ListGeoTargetsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.GeoTargetServiceProto + .internal_static_google_ads_admanager_v1_ListGeoTargetsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.GeoTargetServiceProto + .internal_static_google_ads_admanager_v1_ListGeoTargetsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListGeoTargetsResponse.class, + com.google.ads.admanager.v1.ListGeoTargetsResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListGeoTargetsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (geoTargetsBuilder_ == null) { + geoTargets_ = java.util.Collections.emptyList(); + } else { + geoTargets_ = null; + geoTargetsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + totalSize_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.GeoTargetServiceProto + .internal_static_google_ads_admanager_v1_ListGeoTargetsResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListGeoTargetsResponse getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListGeoTargetsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListGeoTargetsResponse build() { + com.google.ads.admanager.v1.ListGeoTargetsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListGeoTargetsResponse buildPartial() { + com.google.ads.admanager.v1.ListGeoTargetsResponse result = + new com.google.ads.admanager.v1.ListGeoTargetsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.ListGeoTargetsResponse result) { + if (geoTargetsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + geoTargets_ = java.util.Collections.unmodifiableList(geoTargets_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.geoTargets_ = geoTargets_; + } else { + result.geoTargets_ = geoTargetsBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.ListGeoTargetsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalSize_ = totalSize_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListGeoTargetsResponse) { + return mergeFrom((com.google.ads.admanager.v1.ListGeoTargetsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListGeoTargetsResponse other) { + if (other == com.google.ads.admanager.v1.ListGeoTargetsResponse.getDefaultInstance()) + return this; + if (geoTargetsBuilder_ == null) { + if (!other.geoTargets_.isEmpty()) { + if (geoTargets_.isEmpty()) { + geoTargets_ = other.geoTargets_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureGeoTargetsIsMutable(); + geoTargets_.addAll(other.geoTargets_); + } + onChanged(); + } + } else { + if (!other.geoTargets_.isEmpty()) { + if (geoTargetsBuilder_.isEmpty()) { + geoTargetsBuilder_.dispose(); + geoTargetsBuilder_ = null; + geoTargets_ = other.geoTargets_; + bitField0_ = (bitField0_ & ~0x00000001); + geoTargetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getGeoTargetsFieldBuilder() + : null; + } else { + geoTargetsBuilder_.addAllMessages(other.geoTargets_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getTotalSize() != 0) { + setTotalSize(other.getTotalSize()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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.admanager.v1.GeoTarget m = + input.readMessage( + com.google.ads.admanager.v1.GeoTarget.parser(), extensionRegistry); + if (geoTargetsBuilder_ == null) { + ensureGeoTargetsIsMutable(); + geoTargets_.add(m); + } else { + geoTargetsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + totalSize_ = input.readInt32(); + 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 geoTargets_ = + java.util.Collections.emptyList(); + + private void ensureGeoTargetsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + geoTargets_ = new java.util.ArrayList(geoTargets_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.GeoTarget, + com.google.ads.admanager.v1.GeoTarget.Builder, + com.google.ads.admanager.v1.GeoTargetOrBuilder> + geoTargetsBuilder_; + + /** + * + * + *
+     * The `GeoTarget` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.GeoTarget geo_targets = 1; + */ + public java.util.List getGeoTargetsList() { + if (geoTargetsBuilder_ == null) { + return java.util.Collections.unmodifiableList(geoTargets_); + } else { + return geoTargetsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The `GeoTarget` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.GeoTarget geo_targets = 1; + */ + public int getGeoTargetsCount() { + if (geoTargetsBuilder_ == null) { + return geoTargets_.size(); + } else { + return geoTargetsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The `GeoTarget` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.GeoTarget geo_targets = 1; + */ + public com.google.ads.admanager.v1.GeoTarget getGeoTargets(int index) { + if (geoTargetsBuilder_ == null) { + return geoTargets_.get(index); + } else { + return geoTargetsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The `GeoTarget` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.GeoTarget geo_targets = 1; + */ + public Builder setGeoTargets(int index, com.google.ads.admanager.v1.GeoTarget value) { + if (geoTargetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGeoTargetsIsMutable(); + geoTargets_.set(index, value); + onChanged(); + } else { + geoTargetsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The `GeoTarget` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.GeoTarget geo_targets = 1; + */ + public Builder setGeoTargets( + int index, com.google.ads.admanager.v1.GeoTarget.Builder builderForValue) { + if (geoTargetsBuilder_ == null) { + ensureGeoTargetsIsMutable(); + geoTargets_.set(index, builderForValue.build()); + onChanged(); + } else { + geoTargetsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The `GeoTarget` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.GeoTarget geo_targets = 1; + */ + public Builder addGeoTargets(com.google.ads.admanager.v1.GeoTarget value) { + if (geoTargetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGeoTargetsIsMutable(); + geoTargets_.add(value); + onChanged(); + } else { + geoTargetsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The `GeoTarget` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.GeoTarget geo_targets = 1; + */ + public Builder addGeoTargets(int index, com.google.ads.admanager.v1.GeoTarget value) { + if (geoTargetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGeoTargetsIsMutable(); + geoTargets_.add(index, value); + onChanged(); + } else { + geoTargetsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The `GeoTarget` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.GeoTarget geo_targets = 1; + */ + public Builder addGeoTargets(com.google.ads.admanager.v1.GeoTarget.Builder builderForValue) { + if (geoTargetsBuilder_ == null) { + ensureGeoTargetsIsMutable(); + geoTargets_.add(builderForValue.build()); + onChanged(); + } else { + geoTargetsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The `GeoTarget` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.GeoTarget geo_targets = 1; + */ + public Builder addGeoTargets( + int index, com.google.ads.admanager.v1.GeoTarget.Builder builderForValue) { + if (geoTargetsBuilder_ == null) { + ensureGeoTargetsIsMutable(); + geoTargets_.add(index, builderForValue.build()); + onChanged(); + } else { + geoTargetsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The `GeoTarget` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.GeoTarget geo_targets = 1; + */ + public Builder addAllGeoTargets( + java.lang.Iterable values) { + if (geoTargetsBuilder_ == null) { + ensureGeoTargetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, geoTargets_); + onChanged(); + } else { + geoTargetsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The `GeoTarget` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.GeoTarget geo_targets = 1; + */ + public Builder clearGeoTargets() { + if (geoTargetsBuilder_ == null) { + geoTargets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + geoTargetsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The `GeoTarget` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.GeoTarget geo_targets = 1; + */ + public Builder removeGeoTargets(int index) { + if (geoTargetsBuilder_ == null) { + ensureGeoTargetsIsMutable(); + geoTargets_.remove(index); + onChanged(); + } else { + geoTargetsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The `GeoTarget` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.GeoTarget geo_targets = 1; + */ + public com.google.ads.admanager.v1.GeoTarget.Builder getGeoTargetsBuilder(int index) { + return getGeoTargetsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The `GeoTarget` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.GeoTarget geo_targets = 1; + */ + public com.google.ads.admanager.v1.GeoTargetOrBuilder getGeoTargetsOrBuilder(int index) { + if (geoTargetsBuilder_ == null) { + return geoTargets_.get(index); + } else { + return geoTargetsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The `GeoTarget` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.GeoTarget geo_targets = 1; + */ + public java.util.List + getGeoTargetsOrBuilderList() { + if (geoTargetsBuilder_ != null) { + return geoTargetsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(geoTargets_); + } + } + + /** + * + * + *
+     * The `GeoTarget` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.GeoTarget geo_targets = 1; + */ + public com.google.ads.admanager.v1.GeoTarget.Builder addGeoTargetsBuilder() { + return getGeoTargetsFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.GeoTarget.getDefaultInstance()); + } + + /** + * + * + *
+     * The `GeoTarget` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.GeoTarget geo_targets = 1; + */ + public com.google.ads.admanager.v1.GeoTarget.Builder addGeoTargetsBuilder(int index) { + return getGeoTargetsFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.GeoTarget.getDefaultInstance()); + } + + /** + * + * + *
+     * The `GeoTarget` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.GeoTarget geo_targets = 1; + */ + public java.util.List + getGeoTargetsBuilderList() { + return getGeoTargetsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.GeoTarget, + com.google.ads.admanager.v1.GeoTarget.Builder, + com.google.ads.admanager.v1.GeoTargetOrBuilder> + getGeoTargetsFieldBuilder() { + if (geoTargetsBuilder_ == null) { + geoTargetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.GeoTarget, + com.google.ads.admanager.v1.GeoTarget.Builder, + com.google.ads.admanager.v1.GeoTargetOrBuilder>( + geoTargets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + geoTargets_ = null; + } + return geoTargetsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int totalSize_; + + /** + * + * + *
+     * Total number of `GeoTarget` objects.
+     * If a filter was included in the request, this reflects the total number
+     * after the filtering is applied.
+     *
+     * `total_size` will not be calculated in the response unless it has been
+     * included in a response field mask. The response field mask can be provided
+     * to the method by using the URL parameter `$fields` or `fields`, or by using
+     * the HTTP/gRPC header `X-Goog-FieldMask`.
+     *
+     * For more information, see
+     * https://developers.google.com/ad-manager/api/beta/field-masks
+     * 
+ * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + /** + * + * + *
+     * Total number of `GeoTarget` objects.
+     * If a filter was included in the request, this reflects the total number
+     * after the filtering is applied.
+     *
+     * `total_size` will not be calculated in the response unless it has been
+     * included in a response field mask. The response field mask can be provided
+     * to the method by using the URL parameter `$fields` or `fields`, or by using
+     * the HTTP/gRPC header `X-Goog-FieldMask`.
+     *
+     * For more information, see
+     * https://developers.google.com/ad-manager/api/beta/field-masks
+     * 
+ * + * int32 total_size = 3; + * + * @param value The totalSize to set. + * @return This builder for chaining. + */ + public Builder setTotalSize(int value) { + + totalSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Total number of `GeoTarget` objects.
+     * If a filter was included in the request, this reflects the total number
+     * after the filtering is applied.
+     *
+     * `total_size` will not be calculated in the response unless it has been
+     * included in a response field mask. The response field mask can be provided
+     * to the method by using the URL parameter `$fields` or `fields`, or by using
+     * the HTTP/gRPC header `X-Goog-FieldMask`.
+     *
+     * For more information, see
+     * https://developers.google.com/ad-manager/api/beta/field-masks
+     * 
+ * + * int32 total_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearTotalSize() { + bitField0_ = (bitField0_ & ~0x00000004); + totalSize_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListGeoTargetsResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListGeoTargetsResponse) + private static final com.google.ads.admanager.v1.ListGeoTargetsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListGeoTargetsResponse(); + } + + public static com.google.ads.admanager.v1.ListGeoTargetsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListGeoTargetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.ListGeoTargetsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListGeoTargetsResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListGeoTargetsResponseOrBuilder.java new file mode 100644 index 000000000000..25b31e8a87fd --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListGeoTargetsResponseOrBuilder.java @@ -0,0 +1,133 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/geo_target_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListGeoTargetsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListGeoTargetsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The `GeoTarget` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.GeoTarget geo_targets = 1; + */ + java.util.List getGeoTargetsList(); + + /** + * + * + *
+   * The `GeoTarget` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.GeoTarget geo_targets = 1; + */ + com.google.ads.admanager.v1.GeoTarget getGeoTargets(int index); + + /** + * + * + *
+   * The `GeoTarget` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.GeoTarget geo_targets = 1; + */ + int getGeoTargetsCount(); + + /** + * + * + *
+   * The `GeoTarget` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.GeoTarget geo_targets = 1; + */ + java.util.List + getGeoTargetsOrBuilderList(); + + /** + * + * + *
+   * The `GeoTarget` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.GeoTarget geo_targets = 1; + */ + com.google.ads.admanager.v1.GeoTargetOrBuilder getGeoTargetsOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Total number of `GeoTarget` objects.
+   * If a filter was included in the request, this reflects the total number
+   * after the filtering is applied.
+   *
+   * `total_size` will not be calculated in the response unless it has been
+   * included in a response field mask. The response field mask can be provided
+   * to the method by using the URL parameter `$fields` or `fields`, or by using
+   * the HTTP/gRPC header `X-Goog-FieldMask`.
+   *
+   * For more information, see
+   * https://developers.google.com/ad-manager/api/beta/field-masks
+   * 
+ * + * int32 total_size = 3; + * + * @return The totalSize. + */ + int getTotalSize(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemVersionsRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemVersionsRequest.java new file mode 100644 index 000000000000..bf3f9e6b0781 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemVersionsRequest.java @@ -0,0 +1,1506 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/operating_system_version_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Request object for `ListOperatingSystemVersions` method.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.ListOperatingSystemVersionsRequest} + */ +public final class ListOperatingSystemVersionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListOperatingSystemVersionsRequest) + ListOperatingSystemVersionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListOperatingSystemVersionsRequest.newBuilder() to construct. + private ListOperatingSystemVersionsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListOperatingSystemVersionsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListOperatingSystemVersionsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.OperatingSystemVersionServiceProto + .internal_static_google_ads_admanager_v1_ListOperatingSystemVersionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.OperatingSystemVersionServiceProto + .internal_static_google_ads_admanager_v1_ListOperatingSystemVersionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListOperatingSystemVersionsRequest.class, + com.google.ads.admanager.v1.ListOperatingSystemVersionsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent, which owns this collection of
+   * OperatingSystemVersions. Format: `networks/{network_code}`
+   * 
+ * + * + * 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, which owns this collection of
+   * OperatingSystemVersions. Format: `networks/{network_code}`
+   * 
+ * + * + * 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 `OperatingSystemVersions` to return. The
+   * service may return fewer than this value. If unspecified, at most 50
+   * `OperatingSystemVersions` 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
+   * `ListOperatingSystemVersions` call. Provide this to retrieve the subsequent
+   * page.
+   *
+   * When paginating, all other parameters provided to
+   * `ListOperatingSystemVersions` 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
+   * `ListOperatingSystemVersions` call. Provide this to retrieve the subsequent
+   * page.
+   *
+   * When paginating, all other parameters provided to
+   * `ListOperatingSystemVersions` 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; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Optional. Expression to filter the response.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters
+   * 
+ * + * string filter = 4 [(.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. Expression to filter the response.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters
+   * 
+ * + * string filter = 4 [(.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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Optional. Expression to specify sorting order.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters#order
+   * 
+ * + * 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. Expression to specify sorting order.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters#order
+   * 
+ * + * 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 SKIP_FIELD_NUMBER = 6; + private int skip_ = 0; + + /** + * + * + *
+   * Optional. Number of individual resources to skip while paginating.
+   * 
+ * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + if (skip_ != 0) { + output.writeInt32(6, skip_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + if (skip_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, skip_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.admanager.v1.ListOperatingSystemVersionsRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListOperatingSystemVersionsRequest other = + (com.google.ads.admanager.v1.ListOperatingSystemVersionsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (getSkip() != other.getSkip()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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 = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + SKIP_FIELD_NUMBER; + hash = (53 * hash) + getSkip(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListOperatingSystemVersionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListOperatingSystemVersionsRequest 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.admanager.v1.ListOperatingSystemVersionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListOperatingSystemVersionsRequest parseFrom( + 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.admanager.v1.ListOperatingSystemVersionsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListOperatingSystemVersionsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListOperatingSystemVersionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListOperatingSystemVersionsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListOperatingSystemVersionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListOperatingSystemVersionsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListOperatingSystemVersionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListOperatingSystemVersionsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.ListOperatingSystemVersionsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request object for `ListOperatingSystemVersions` method.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.ListOperatingSystemVersionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListOperatingSystemVersionsRequest) + com.google.ads.admanager.v1.ListOperatingSystemVersionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.OperatingSystemVersionServiceProto + .internal_static_google_ads_admanager_v1_ListOperatingSystemVersionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.OperatingSystemVersionServiceProto + .internal_static_google_ads_admanager_v1_ListOperatingSystemVersionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListOperatingSystemVersionsRequest.class, + com.google.ads.admanager.v1.ListOperatingSystemVersionsRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListOperatingSystemVersionsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + skip_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.OperatingSystemVersionServiceProto + .internal_static_google_ads_admanager_v1_ListOperatingSystemVersionsRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListOperatingSystemVersionsRequest + getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListOperatingSystemVersionsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListOperatingSystemVersionsRequest build() { + com.google.ads.admanager.v1.ListOperatingSystemVersionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListOperatingSystemVersionsRequest buildPartial() { + com.google.ads.admanager.v1.ListOperatingSystemVersionsRequest result = + new com.google.ads.admanager.v1.ListOperatingSystemVersionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.ads.admanager.v1.ListOperatingSystemVersionsRequest 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_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.skip_ = skip_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListOperatingSystemVersionsRequest) { + return mergeFrom((com.google.ads.admanager.v1.ListOperatingSystemVersionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListOperatingSystemVersionsRequest other) { + if (other + == com.google.ads.admanager.v1.ListOperatingSystemVersionsRequest.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(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getSkip() != 0) { + setSkip(other.getSkip()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + skip_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent, which owns this collection of
+     * OperatingSystemVersions. Format: `networks/{network_code}`
+     * 
+ * + * + * 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, which owns this collection of
+     * OperatingSystemVersions. Format: `networks/{network_code}`
+     * 
+ * + * + * 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, which owns this collection of
+     * OperatingSystemVersions. Format: `networks/{network_code}`
+     * 
+ * + * + * 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, which owns this collection of
+     * OperatingSystemVersions. Format: `networks/{network_code}`
+     * 
+ * + * + * 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, which owns this collection of
+     * OperatingSystemVersions. Format: `networks/{network_code}`
+     * 
+ * + * + * 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 `OperatingSystemVersions` to return. The
+     * service may return fewer than this value. If unspecified, at most 50
+     * `OperatingSystemVersions` 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 `OperatingSystemVersions` to return. The
+     * service may return fewer than this value. If unspecified, at most 50
+     * `OperatingSystemVersions` 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 `OperatingSystemVersions` to return. The
+     * service may return fewer than this value. If unspecified, at most 50
+     * `OperatingSystemVersions` 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
+     * `ListOperatingSystemVersions` call. Provide this to retrieve the subsequent
+     * page.
+     *
+     * When paginating, all other parameters provided to
+     * `ListOperatingSystemVersions` 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
+     * `ListOperatingSystemVersions` call. Provide this to retrieve the subsequent
+     * page.
+     *
+     * When paginating, all other parameters provided to
+     * `ListOperatingSystemVersions` 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
+     * `ListOperatingSystemVersions` call. Provide this to retrieve the subsequent
+     * page.
+     *
+     * When paginating, all other parameters provided to
+     * `ListOperatingSystemVersions` 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
+     * `ListOperatingSystemVersions` call. Provide this to retrieve the subsequent
+     * page.
+     *
+     * When paginating, all other parameters provided to
+     * `ListOperatingSystemVersions` 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
+     * `ListOperatingSystemVersions` call. Provide this to retrieve the subsequent
+     * page.
+     *
+     * When paginating, all other parameters provided to
+     * `ListOperatingSystemVersions` 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; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Optional. Expression to filter the response.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters
+     * 
+ * + * string filter = 4 [(.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. Expression to filter the response.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters
+     * 
+ * + * string filter = 4 [(.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. Expression to filter the response.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters
+     * 
+ * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Expression to filter the response.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Expression to filter the response.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters
+     * 
+ * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Optional. Expression to specify sorting order.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters#order
+     * 
+ * + * 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. Expression to specify sorting order.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters#order
+     * 
+ * + * 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. Expression to specify sorting order.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters#order
+     * 
+ * + * 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. Expression to specify sorting order.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters#order
+     * 
+ * + * 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. Expression to specify sorting order.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters#order
+     * 
+ * + * 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 skip_; + + /** + * + * + *
+     * Optional. Number of individual resources to skip while paginating.
+     * 
+ * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + /** + * + * + *
+     * Optional. Number of individual resources to skip while paginating.
+     * 
+ * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The skip to set. + * @return This builder for chaining. + */ + public Builder setSkip(int value) { + + skip_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Number of individual resources to skip while paginating.
+     * 
+ * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSkip() { + bitField0_ = (bitField0_ & ~0x00000020); + skip_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListOperatingSystemVersionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListOperatingSystemVersionsRequest) + private static final com.google.ads.admanager.v1.ListOperatingSystemVersionsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListOperatingSystemVersionsRequest(); + } + + public static com.google.ads.admanager.v1.ListOperatingSystemVersionsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListOperatingSystemVersionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.ListOperatingSystemVersionsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemVersionsRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemVersionsRequestOrBuilder.java new file mode 100644 index 000000000000..511f38db01a2 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemVersionsRequestOrBuilder.java @@ -0,0 +1,185 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/operating_system_version_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListOperatingSystemVersionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListOperatingSystemVersionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent, which owns this collection of
+   * OperatingSystemVersions. Format: `networks/{network_code}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent, which owns this collection of
+   * OperatingSystemVersions. Format: `networks/{network_code}`
+   * 
+ * + * + * 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 `OperatingSystemVersions` to return. The
+   * service may return fewer than this value. If unspecified, at most 50
+   * `OperatingSystemVersions` 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
+   * `ListOperatingSystemVersions` call. Provide this to retrieve the subsequent
+   * page.
+   *
+   * When paginating, all other parameters provided to
+   * `ListOperatingSystemVersions` 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
+   * `ListOperatingSystemVersions` call. Provide this to retrieve the subsequent
+   * page.
+   *
+   * When paginating, all other parameters provided to
+   * `ListOperatingSystemVersions` 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(); + + /** + * + * + *
+   * Optional. Expression to filter the response.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. Expression to filter the response.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. Expression to specify sorting order.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters#order
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Optional. Expression to specify sorting order.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters#order
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
+   * Optional. Number of individual resources to skip while paginating.
+   * 
+ * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + int getSkip(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemVersionsResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemVersionsResponse.java new file mode 100644 index 000000000000..e7fdea1833a6 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemVersionsResponse.java @@ -0,0 +1,1352 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/operating_system_version_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Response object for `ListOperatingSystemVersionsRequest` containing matching
+ * `OperatingSystemVersion` objects.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.ListOperatingSystemVersionsResponse} + */ +public final class ListOperatingSystemVersionsResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListOperatingSystemVersionsResponse) + ListOperatingSystemVersionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListOperatingSystemVersionsResponse.newBuilder() to construct. + private ListOperatingSystemVersionsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListOperatingSystemVersionsResponse() { + operatingSystemVersions_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListOperatingSystemVersionsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.OperatingSystemVersionServiceProto + .internal_static_google_ads_admanager_v1_ListOperatingSystemVersionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.OperatingSystemVersionServiceProto + .internal_static_google_ads_admanager_v1_ListOperatingSystemVersionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListOperatingSystemVersionsResponse.class, + com.google.ads.admanager.v1.ListOperatingSystemVersionsResponse.Builder.class); + } + + public static final int OPERATING_SYSTEM_VERSIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + operatingSystemVersions_; + + /** + * + * + *
+   * The `OperatingSystemVersion` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystemVersion operating_system_versions = 1; + * + */ + @java.lang.Override + public java.util.List + getOperatingSystemVersionsList() { + return operatingSystemVersions_; + } + + /** + * + * + *
+   * The `OperatingSystemVersion` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystemVersion operating_system_versions = 1; + * + */ + @java.lang.Override + public java.util.List + getOperatingSystemVersionsOrBuilderList() { + return operatingSystemVersions_; + } + + /** + * + * + *
+   * The `OperatingSystemVersion` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystemVersion operating_system_versions = 1; + * + */ + @java.lang.Override + public int getOperatingSystemVersionsCount() { + return operatingSystemVersions_.size(); + } + + /** + * + * + *
+   * The `OperatingSystemVersion` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystemVersion operating_system_versions = 1; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.OperatingSystemVersion getOperatingSystemVersions(int index) { + return operatingSystemVersions_.get(index); + } + + /** + * + * + *
+   * The `OperatingSystemVersion` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystemVersion operating_system_versions = 1; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.OperatingSystemVersionOrBuilder + getOperatingSystemVersionsOrBuilder(int index) { + return operatingSystemVersions_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOTAL_SIZE_FIELD_NUMBER = 3; + private int totalSize_ = 0; + + /** + * + * + *
+   * Total number of `OperatingSystemVersion` objects.
+   * If a filter was included in the request, this reflects the total number
+   * after the filtering is applied.
+   *
+   * `total_size` will not be calculated in the response unless it has been
+   * included in a response field mask. The response field mask can be provided
+   * to the method by using the URL parameter `$fields` or `fields`, or by using
+   * the HTTP/gRPC header `X-Goog-FieldMask`.
+   *
+   * For more information, see
+   * https://developers.google.com/ad-manager/api/beta/field-masks
+   * 
+ * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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 < operatingSystemVersions_.size(); i++) { + output.writeMessage(1, operatingSystemVersions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + if (totalSize_ != 0) { + output.writeInt32(3, totalSize_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < operatingSystemVersions_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, operatingSystemVersions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + if (totalSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSize_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.admanager.v1.ListOperatingSystemVersionsResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListOperatingSystemVersionsResponse other = + (com.google.ads.admanager.v1.ListOperatingSystemVersionsResponse) obj; + + if (!getOperatingSystemVersionsList().equals(other.getOperatingSystemVersionsList())) + return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getOperatingSystemVersionsCount() > 0) { + hash = (37 * hash) + OPERATING_SYSTEM_VERSIONS_FIELD_NUMBER; + hash = (53 * hash) + getOperatingSystemVersionsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (37 * hash) + TOTAL_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getTotalSize(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListOperatingSystemVersionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListOperatingSystemVersionsResponse 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.admanager.v1.ListOperatingSystemVersionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListOperatingSystemVersionsResponse parseFrom( + 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.admanager.v1.ListOperatingSystemVersionsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListOperatingSystemVersionsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListOperatingSystemVersionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListOperatingSystemVersionsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListOperatingSystemVersionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListOperatingSystemVersionsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListOperatingSystemVersionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListOperatingSystemVersionsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.ListOperatingSystemVersionsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response object for `ListOperatingSystemVersionsRequest` containing matching
+   * `OperatingSystemVersion` objects.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.ListOperatingSystemVersionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListOperatingSystemVersionsResponse) + com.google.ads.admanager.v1.ListOperatingSystemVersionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.OperatingSystemVersionServiceProto + .internal_static_google_ads_admanager_v1_ListOperatingSystemVersionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.OperatingSystemVersionServiceProto + .internal_static_google_ads_admanager_v1_ListOperatingSystemVersionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListOperatingSystemVersionsResponse.class, + com.google.ads.admanager.v1.ListOperatingSystemVersionsResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListOperatingSystemVersionsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (operatingSystemVersionsBuilder_ == null) { + operatingSystemVersions_ = java.util.Collections.emptyList(); + } else { + operatingSystemVersions_ = null; + operatingSystemVersionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + totalSize_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.OperatingSystemVersionServiceProto + .internal_static_google_ads_admanager_v1_ListOperatingSystemVersionsResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListOperatingSystemVersionsResponse + getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListOperatingSystemVersionsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListOperatingSystemVersionsResponse build() { + com.google.ads.admanager.v1.ListOperatingSystemVersionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListOperatingSystemVersionsResponse buildPartial() { + com.google.ads.admanager.v1.ListOperatingSystemVersionsResponse result = + new com.google.ads.admanager.v1.ListOperatingSystemVersionsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.ListOperatingSystemVersionsResponse result) { + if (operatingSystemVersionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + operatingSystemVersions_ = + java.util.Collections.unmodifiableList(operatingSystemVersions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.operatingSystemVersions_ = operatingSystemVersions_; + } else { + result.operatingSystemVersions_ = operatingSystemVersionsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.ads.admanager.v1.ListOperatingSystemVersionsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalSize_ = totalSize_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListOperatingSystemVersionsResponse) { + return mergeFrom((com.google.ads.admanager.v1.ListOperatingSystemVersionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.ads.admanager.v1.ListOperatingSystemVersionsResponse other) { + if (other + == com.google.ads.admanager.v1.ListOperatingSystemVersionsResponse.getDefaultInstance()) + return this; + if (operatingSystemVersionsBuilder_ == null) { + if (!other.operatingSystemVersions_.isEmpty()) { + if (operatingSystemVersions_.isEmpty()) { + operatingSystemVersions_ = other.operatingSystemVersions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureOperatingSystemVersionsIsMutable(); + operatingSystemVersions_.addAll(other.operatingSystemVersions_); + } + onChanged(); + } + } else { + if (!other.operatingSystemVersions_.isEmpty()) { + if (operatingSystemVersionsBuilder_.isEmpty()) { + operatingSystemVersionsBuilder_.dispose(); + operatingSystemVersionsBuilder_ = null; + operatingSystemVersions_ = other.operatingSystemVersions_; + bitField0_ = (bitField0_ & ~0x00000001); + operatingSystemVersionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getOperatingSystemVersionsFieldBuilder() + : null; + } else { + operatingSystemVersionsBuilder_.addAllMessages(other.operatingSystemVersions_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getTotalSize() != 0) { + setTotalSize(other.getTotalSize()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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.admanager.v1.OperatingSystemVersion m = + input.readMessage( + com.google.ads.admanager.v1.OperatingSystemVersion.parser(), + extensionRegistry); + if (operatingSystemVersionsBuilder_ == null) { + ensureOperatingSystemVersionsIsMutable(); + operatingSystemVersions_.add(m); + } else { + operatingSystemVersionsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + totalSize_ = input.readInt32(); + 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 + operatingSystemVersions_ = java.util.Collections.emptyList(); + + private void ensureOperatingSystemVersionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + operatingSystemVersions_ = + new java.util.ArrayList( + operatingSystemVersions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.OperatingSystemVersion, + com.google.ads.admanager.v1.OperatingSystemVersion.Builder, + com.google.ads.admanager.v1.OperatingSystemVersionOrBuilder> + operatingSystemVersionsBuilder_; + + /** + * + * + *
+     * The `OperatingSystemVersion` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystemVersion operating_system_versions = 1; + * + */ + public java.util.List + getOperatingSystemVersionsList() { + if (operatingSystemVersionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(operatingSystemVersions_); + } else { + return operatingSystemVersionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The `OperatingSystemVersion` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystemVersion operating_system_versions = 1; + * + */ + public int getOperatingSystemVersionsCount() { + if (operatingSystemVersionsBuilder_ == null) { + return operatingSystemVersions_.size(); + } else { + return operatingSystemVersionsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The `OperatingSystemVersion` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystemVersion operating_system_versions = 1; + * + */ + public com.google.ads.admanager.v1.OperatingSystemVersion getOperatingSystemVersions( + int index) { + if (operatingSystemVersionsBuilder_ == null) { + return operatingSystemVersions_.get(index); + } else { + return operatingSystemVersionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The `OperatingSystemVersion` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystemVersion operating_system_versions = 1; + * + */ + public Builder setOperatingSystemVersions( + int index, com.google.ads.admanager.v1.OperatingSystemVersion value) { + if (operatingSystemVersionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOperatingSystemVersionsIsMutable(); + operatingSystemVersions_.set(index, value); + onChanged(); + } else { + operatingSystemVersionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The `OperatingSystemVersion` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystemVersion operating_system_versions = 1; + * + */ + public Builder setOperatingSystemVersions( + int index, com.google.ads.admanager.v1.OperatingSystemVersion.Builder builderForValue) { + if (operatingSystemVersionsBuilder_ == null) { + ensureOperatingSystemVersionsIsMutable(); + operatingSystemVersions_.set(index, builderForValue.build()); + onChanged(); + } else { + operatingSystemVersionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The `OperatingSystemVersion` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystemVersion operating_system_versions = 1; + * + */ + public Builder addOperatingSystemVersions( + com.google.ads.admanager.v1.OperatingSystemVersion value) { + if (operatingSystemVersionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOperatingSystemVersionsIsMutable(); + operatingSystemVersions_.add(value); + onChanged(); + } else { + operatingSystemVersionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The `OperatingSystemVersion` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystemVersion operating_system_versions = 1; + * + */ + public Builder addOperatingSystemVersions( + int index, com.google.ads.admanager.v1.OperatingSystemVersion value) { + if (operatingSystemVersionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOperatingSystemVersionsIsMutable(); + operatingSystemVersions_.add(index, value); + onChanged(); + } else { + operatingSystemVersionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The `OperatingSystemVersion` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystemVersion operating_system_versions = 1; + * + */ + public Builder addOperatingSystemVersions( + com.google.ads.admanager.v1.OperatingSystemVersion.Builder builderForValue) { + if (operatingSystemVersionsBuilder_ == null) { + ensureOperatingSystemVersionsIsMutable(); + operatingSystemVersions_.add(builderForValue.build()); + onChanged(); + } else { + operatingSystemVersionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The `OperatingSystemVersion` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystemVersion operating_system_versions = 1; + * + */ + public Builder addOperatingSystemVersions( + int index, com.google.ads.admanager.v1.OperatingSystemVersion.Builder builderForValue) { + if (operatingSystemVersionsBuilder_ == null) { + ensureOperatingSystemVersionsIsMutable(); + operatingSystemVersions_.add(index, builderForValue.build()); + onChanged(); + } else { + operatingSystemVersionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The `OperatingSystemVersion` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystemVersion operating_system_versions = 1; + * + */ + public Builder addAllOperatingSystemVersions( + java.lang.Iterable values) { + if (operatingSystemVersionsBuilder_ == null) { + ensureOperatingSystemVersionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, operatingSystemVersions_); + onChanged(); + } else { + operatingSystemVersionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The `OperatingSystemVersion` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystemVersion operating_system_versions = 1; + * + */ + public Builder clearOperatingSystemVersions() { + if (operatingSystemVersionsBuilder_ == null) { + operatingSystemVersions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + operatingSystemVersionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The `OperatingSystemVersion` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystemVersion operating_system_versions = 1; + * + */ + public Builder removeOperatingSystemVersions(int index) { + if (operatingSystemVersionsBuilder_ == null) { + ensureOperatingSystemVersionsIsMutable(); + operatingSystemVersions_.remove(index); + onChanged(); + } else { + operatingSystemVersionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The `OperatingSystemVersion` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystemVersion operating_system_versions = 1; + * + */ + public com.google.ads.admanager.v1.OperatingSystemVersion.Builder + getOperatingSystemVersionsBuilder(int index) { + return getOperatingSystemVersionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The `OperatingSystemVersion` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystemVersion operating_system_versions = 1; + * + */ + public com.google.ads.admanager.v1.OperatingSystemVersionOrBuilder + getOperatingSystemVersionsOrBuilder(int index) { + if (operatingSystemVersionsBuilder_ == null) { + return operatingSystemVersions_.get(index); + } else { + return operatingSystemVersionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The `OperatingSystemVersion` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystemVersion operating_system_versions = 1; + * + */ + public java.util.List + getOperatingSystemVersionsOrBuilderList() { + if (operatingSystemVersionsBuilder_ != null) { + return operatingSystemVersionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(operatingSystemVersions_); + } + } + + /** + * + * + *
+     * The `OperatingSystemVersion` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystemVersion operating_system_versions = 1; + * + */ + public com.google.ads.admanager.v1.OperatingSystemVersion.Builder + addOperatingSystemVersionsBuilder() { + return getOperatingSystemVersionsFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.OperatingSystemVersion.getDefaultInstance()); + } + + /** + * + * + *
+     * The `OperatingSystemVersion` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystemVersion operating_system_versions = 1; + * + */ + public com.google.ads.admanager.v1.OperatingSystemVersion.Builder + addOperatingSystemVersionsBuilder(int index) { + return getOperatingSystemVersionsFieldBuilder() + .addBuilder( + index, com.google.ads.admanager.v1.OperatingSystemVersion.getDefaultInstance()); + } + + /** + * + * + *
+     * The `OperatingSystemVersion` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystemVersion operating_system_versions = 1; + * + */ + public java.util.List + getOperatingSystemVersionsBuilderList() { + return getOperatingSystemVersionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.OperatingSystemVersion, + com.google.ads.admanager.v1.OperatingSystemVersion.Builder, + com.google.ads.admanager.v1.OperatingSystemVersionOrBuilder> + getOperatingSystemVersionsFieldBuilder() { + if (operatingSystemVersionsBuilder_ == null) { + operatingSystemVersionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.OperatingSystemVersion, + com.google.ads.admanager.v1.OperatingSystemVersion.Builder, + com.google.ads.admanager.v1.OperatingSystemVersionOrBuilder>( + operatingSystemVersions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + operatingSystemVersions_ = null; + } + return operatingSystemVersionsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int totalSize_; + + /** + * + * + *
+     * Total number of `OperatingSystemVersion` objects.
+     * If a filter was included in the request, this reflects the total number
+     * after the filtering is applied.
+     *
+     * `total_size` will not be calculated in the response unless it has been
+     * included in a response field mask. The response field mask can be provided
+     * to the method by using the URL parameter `$fields` or `fields`, or by using
+     * the HTTP/gRPC header `X-Goog-FieldMask`.
+     *
+     * For more information, see
+     * https://developers.google.com/ad-manager/api/beta/field-masks
+     * 
+ * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + /** + * + * + *
+     * Total number of `OperatingSystemVersion` objects.
+     * If a filter was included in the request, this reflects the total number
+     * after the filtering is applied.
+     *
+     * `total_size` will not be calculated in the response unless it has been
+     * included in a response field mask. The response field mask can be provided
+     * to the method by using the URL parameter `$fields` or `fields`, or by using
+     * the HTTP/gRPC header `X-Goog-FieldMask`.
+     *
+     * For more information, see
+     * https://developers.google.com/ad-manager/api/beta/field-masks
+     * 
+ * + * int32 total_size = 3; + * + * @param value The totalSize to set. + * @return This builder for chaining. + */ + public Builder setTotalSize(int value) { + + totalSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Total number of `OperatingSystemVersion` objects.
+     * If a filter was included in the request, this reflects the total number
+     * after the filtering is applied.
+     *
+     * `total_size` will not be calculated in the response unless it has been
+     * included in a response field mask. The response field mask can be provided
+     * to the method by using the URL parameter `$fields` or `fields`, or by using
+     * the HTTP/gRPC header `X-Goog-FieldMask`.
+     *
+     * For more information, see
+     * https://developers.google.com/ad-manager/api/beta/field-masks
+     * 
+ * + * int32 total_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearTotalSize() { + bitField0_ = (bitField0_ & ~0x00000004); + totalSize_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListOperatingSystemVersionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListOperatingSystemVersionsResponse) + private static final com.google.ads.admanager.v1.ListOperatingSystemVersionsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListOperatingSystemVersionsResponse(); + } + + public static com.google.ads.admanager.v1.ListOperatingSystemVersionsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListOperatingSystemVersionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.ListOperatingSystemVersionsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemVersionsResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemVersionsResponseOrBuilder.java new file mode 100644 index 000000000000..b06ea9e6a08b --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemVersionsResponseOrBuilder.java @@ -0,0 +1,140 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/operating_system_version_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListOperatingSystemVersionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListOperatingSystemVersionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The `OperatingSystemVersion` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystemVersion operating_system_versions = 1; + * + */ + java.util.List + getOperatingSystemVersionsList(); + + /** + * + * + *
+   * The `OperatingSystemVersion` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystemVersion operating_system_versions = 1; + * + */ + com.google.ads.admanager.v1.OperatingSystemVersion getOperatingSystemVersions(int index); + + /** + * + * + *
+   * The `OperatingSystemVersion` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystemVersion operating_system_versions = 1; + * + */ + int getOperatingSystemVersionsCount(); + + /** + * + * + *
+   * The `OperatingSystemVersion` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystemVersion operating_system_versions = 1; + * + */ + java.util.List + getOperatingSystemVersionsOrBuilderList(); + + /** + * + * + *
+   * The `OperatingSystemVersion` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystemVersion operating_system_versions = 1; + * + */ + com.google.ads.admanager.v1.OperatingSystemVersionOrBuilder getOperatingSystemVersionsOrBuilder( + int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Total number of `OperatingSystemVersion` objects.
+   * If a filter was included in the request, this reflects the total number
+   * after the filtering is applied.
+   *
+   * `total_size` will not be calculated in the response unless it has been
+   * included in a response field mask. The response field mask can be provided
+   * to the method by using the URL parameter `$fields` or `fields`, or by using
+   * the HTTP/gRPC header `X-Goog-FieldMask`.
+   *
+   * For more information, see
+   * https://developers.google.com/ad-manager/api/beta/field-masks
+   * 
+ * + * int32 total_size = 3; + * + * @return The totalSize. + */ + int getTotalSize(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemsRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemsRequest.java new file mode 100644 index 000000000000..1c2fec418700 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemsRequest.java @@ -0,0 +1,1485 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/operating_system_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Request object for `ListOperatingSystems` method.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.ListOperatingSystemsRequest} + */ +public final class ListOperatingSystemsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListOperatingSystemsRequest) + ListOperatingSystemsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListOperatingSystemsRequest.newBuilder() to construct. + private ListOperatingSystemsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListOperatingSystemsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListOperatingSystemsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.OperatingSystemServiceProto + .internal_static_google_ads_admanager_v1_ListOperatingSystemsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.OperatingSystemServiceProto + .internal_static_google_ads_admanager_v1_ListOperatingSystemsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListOperatingSystemsRequest.class, + com.google.ads.admanager.v1.ListOperatingSystemsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent, which owns this collection of OperatingSystems.
+   * Format: `networks/{network_code}`
+   * 
+ * + * + * 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, which owns this collection of OperatingSystems.
+   * Format: `networks/{network_code}`
+   * 
+ * + * + * 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 `OperatingSystems` to return. The service
+   * may return fewer than this value. If unspecified, at most 50
+   * `OperatingSystems` 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 `ListOperatingSystems`
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListOperatingSystems`
+   * 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 `ListOperatingSystems`
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListOperatingSystems`
+   * 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; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Optional. Expression to filter the response.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters
+   * 
+ * + * string filter = 4 [(.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. Expression to filter the response.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters
+   * 
+ * + * string filter = 4 [(.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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Optional. Expression to specify sorting order.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters#order
+   * 
+ * + * 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. Expression to specify sorting order.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters#order
+   * 
+ * + * 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 SKIP_FIELD_NUMBER = 6; + private int skip_ = 0; + + /** + * + * + *
+   * Optional. Number of individual resources to skip while paginating.
+   * 
+ * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + if (skip_ != 0) { + output.writeInt32(6, skip_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + if (skip_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, skip_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.admanager.v1.ListOperatingSystemsRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListOperatingSystemsRequest other = + (com.google.ads.admanager.v1.ListOperatingSystemsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (getSkip() != other.getSkip()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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 = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + SKIP_FIELD_NUMBER; + hash = (53 * hash) + getSkip(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListOperatingSystemsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListOperatingSystemsRequest 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.admanager.v1.ListOperatingSystemsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListOperatingSystemsRequest parseFrom( + 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.admanager.v1.ListOperatingSystemsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListOperatingSystemsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListOperatingSystemsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListOperatingSystemsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListOperatingSystemsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListOperatingSystemsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListOperatingSystemsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListOperatingSystemsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.ListOperatingSystemsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request object for `ListOperatingSystems` method.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.ListOperatingSystemsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListOperatingSystemsRequest) + com.google.ads.admanager.v1.ListOperatingSystemsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.OperatingSystemServiceProto + .internal_static_google_ads_admanager_v1_ListOperatingSystemsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.OperatingSystemServiceProto + .internal_static_google_ads_admanager_v1_ListOperatingSystemsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListOperatingSystemsRequest.class, + com.google.ads.admanager.v1.ListOperatingSystemsRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListOperatingSystemsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + skip_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.OperatingSystemServiceProto + .internal_static_google_ads_admanager_v1_ListOperatingSystemsRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListOperatingSystemsRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListOperatingSystemsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListOperatingSystemsRequest build() { + com.google.ads.admanager.v1.ListOperatingSystemsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListOperatingSystemsRequest buildPartial() { + com.google.ads.admanager.v1.ListOperatingSystemsRequest result = + new com.google.ads.admanager.v1.ListOperatingSystemsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.ListOperatingSystemsRequest 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_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.skip_ = skip_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListOperatingSystemsRequest) { + return mergeFrom((com.google.ads.admanager.v1.ListOperatingSystemsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListOperatingSystemsRequest other) { + if (other == com.google.ads.admanager.v1.ListOperatingSystemsRequest.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(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getSkip() != 0) { + setSkip(other.getSkip()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + skip_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent, which owns this collection of OperatingSystems.
+     * Format: `networks/{network_code}`
+     * 
+ * + * + * 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, which owns this collection of OperatingSystems.
+     * Format: `networks/{network_code}`
+     * 
+ * + * + * 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, which owns this collection of OperatingSystems.
+     * Format: `networks/{network_code}`
+     * 
+ * + * + * 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, which owns this collection of OperatingSystems.
+     * Format: `networks/{network_code}`
+     * 
+ * + * + * 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, which owns this collection of OperatingSystems.
+     * Format: `networks/{network_code}`
+     * 
+ * + * + * 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 `OperatingSystems` to return. The service
+     * may return fewer than this value. If unspecified, at most 50
+     * `OperatingSystems` 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 `OperatingSystems` to return. The service
+     * may return fewer than this value. If unspecified, at most 50
+     * `OperatingSystems` 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 `OperatingSystems` to return. The service
+     * may return fewer than this value. If unspecified, at most 50
+     * `OperatingSystems` 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 `ListOperatingSystems`
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListOperatingSystems`
+     * 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 `ListOperatingSystems`
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListOperatingSystems`
+     * 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 `ListOperatingSystems`
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListOperatingSystems`
+     * 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 `ListOperatingSystems`
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListOperatingSystems`
+     * 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 `ListOperatingSystems`
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListOperatingSystems`
+     * 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; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Optional. Expression to filter the response.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters
+     * 
+ * + * string filter = 4 [(.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. Expression to filter the response.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters
+     * 
+ * + * string filter = 4 [(.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. Expression to filter the response.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters
+     * 
+ * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Expression to filter the response.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Expression to filter the response.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters
+     * 
+ * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Optional. Expression to specify sorting order.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters#order
+     * 
+ * + * 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. Expression to specify sorting order.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters#order
+     * 
+ * + * 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. Expression to specify sorting order.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters#order
+     * 
+ * + * 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. Expression to specify sorting order.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters#order
+     * 
+ * + * 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. Expression to specify sorting order.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters#order
+     * 
+ * + * 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 skip_; + + /** + * + * + *
+     * Optional. Number of individual resources to skip while paginating.
+     * 
+ * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + /** + * + * + *
+     * Optional. Number of individual resources to skip while paginating.
+     * 
+ * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The skip to set. + * @return This builder for chaining. + */ + public Builder setSkip(int value) { + + skip_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Number of individual resources to skip while paginating.
+     * 
+ * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSkip() { + bitField0_ = (bitField0_ & ~0x00000020); + skip_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListOperatingSystemsRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListOperatingSystemsRequest) + private static final com.google.ads.admanager.v1.ListOperatingSystemsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListOperatingSystemsRequest(); + } + + public static com.google.ads.admanager.v1.ListOperatingSystemsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListOperatingSystemsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.ListOperatingSystemsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemsRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemsRequestOrBuilder.java new file mode 100644 index 000000000000..780a7b605653 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemsRequestOrBuilder.java @@ -0,0 +1,181 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/operating_system_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListOperatingSystemsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListOperatingSystemsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent, which owns this collection of OperatingSystems.
+   * Format: `networks/{network_code}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent, which owns this collection of OperatingSystems.
+   * Format: `networks/{network_code}`
+   * 
+ * + * + * 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 `OperatingSystems` to return. The service
+   * may return fewer than this value. If unspecified, at most 50
+   * `OperatingSystems` 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 `ListOperatingSystems`
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListOperatingSystems`
+   * 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 `ListOperatingSystems`
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListOperatingSystems`
+   * 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(); + + /** + * + * + *
+   * Optional. Expression to filter the response.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. Expression to filter the response.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. Expression to specify sorting order.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters#order
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Optional. Expression to specify sorting order.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters#order
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
+   * Optional. Number of individual resources to skip while paginating.
+   * 
+ * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + int getSkip(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemsResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemsResponse.java new file mode 100644 index 000000000000..5bae4e8560f9 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemsResponse.java @@ -0,0 +1,1307 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/operating_system_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Response object for `ListOperatingSystemsRequest` containing matching
+ * `OperatingSystem` objects.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.ListOperatingSystemsResponse} + */ +public final class ListOperatingSystemsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListOperatingSystemsResponse) + ListOperatingSystemsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListOperatingSystemsResponse.newBuilder() to construct. + private ListOperatingSystemsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListOperatingSystemsResponse() { + operatingSystems_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListOperatingSystemsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.OperatingSystemServiceProto + .internal_static_google_ads_admanager_v1_ListOperatingSystemsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.OperatingSystemServiceProto + .internal_static_google_ads_admanager_v1_ListOperatingSystemsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListOperatingSystemsResponse.class, + com.google.ads.admanager.v1.ListOperatingSystemsResponse.Builder.class); + } + + public static final int OPERATING_SYSTEMS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List operatingSystems_; + + /** + * + * + *
+   * The `OperatingSystem` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystem operating_systems = 1; + */ + @java.lang.Override + public java.util.List getOperatingSystemsList() { + return operatingSystems_; + } + + /** + * + * + *
+   * The `OperatingSystem` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystem operating_systems = 1; + */ + @java.lang.Override + public java.util.List + getOperatingSystemsOrBuilderList() { + return operatingSystems_; + } + + /** + * + * + *
+   * The `OperatingSystem` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystem operating_systems = 1; + */ + @java.lang.Override + public int getOperatingSystemsCount() { + return operatingSystems_.size(); + } + + /** + * + * + *
+   * The `OperatingSystem` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystem operating_systems = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.OperatingSystem getOperatingSystems(int index) { + return operatingSystems_.get(index); + } + + /** + * + * + *
+   * The `OperatingSystem` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystem operating_systems = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.OperatingSystemOrBuilder getOperatingSystemsOrBuilder( + int index) { + return operatingSystems_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOTAL_SIZE_FIELD_NUMBER = 3; + private int totalSize_ = 0; + + /** + * + * + *
+   * Total number of `OperatingSystem` objects.
+   * If a filter was included in the request, this reflects the total number
+   * after the filtering is applied.
+   *
+   * `total_size` will not be calculated in the response unless it has been
+   * included in a response field mask. The response field mask can be provided
+   * to the method by using the URL parameter `$fields` or `fields`, or by using
+   * the HTTP/gRPC header `X-Goog-FieldMask`.
+   *
+   * For more information, see
+   * https://developers.google.com/ad-manager/api/beta/field-masks
+   * 
+ * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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 < operatingSystems_.size(); i++) { + output.writeMessage(1, operatingSystems_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + if (totalSize_ != 0) { + output.writeInt32(3, totalSize_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < operatingSystems_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, operatingSystems_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + if (totalSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSize_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.admanager.v1.ListOperatingSystemsResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListOperatingSystemsResponse other = + (com.google.ads.admanager.v1.ListOperatingSystemsResponse) obj; + + if (!getOperatingSystemsList().equals(other.getOperatingSystemsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getOperatingSystemsCount() > 0) { + hash = (37 * hash) + OPERATING_SYSTEMS_FIELD_NUMBER; + hash = (53 * hash) + getOperatingSystemsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (37 * hash) + TOTAL_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getTotalSize(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListOperatingSystemsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListOperatingSystemsResponse 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.admanager.v1.ListOperatingSystemsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListOperatingSystemsResponse parseFrom( + 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.admanager.v1.ListOperatingSystemsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListOperatingSystemsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListOperatingSystemsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListOperatingSystemsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListOperatingSystemsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListOperatingSystemsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListOperatingSystemsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListOperatingSystemsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.ListOperatingSystemsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response object for `ListOperatingSystemsRequest` containing matching
+   * `OperatingSystem` objects.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.ListOperatingSystemsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListOperatingSystemsResponse) + com.google.ads.admanager.v1.ListOperatingSystemsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.OperatingSystemServiceProto + .internal_static_google_ads_admanager_v1_ListOperatingSystemsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.OperatingSystemServiceProto + .internal_static_google_ads_admanager_v1_ListOperatingSystemsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListOperatingSystemsResponse.class, + com.google.ads.admanager.v1.ListOperatingSystemsResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListOperatingSystemsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (operatingSystemsBuilder_ == null) { + operatingSystems_ = java.util.Collections.emptyList(); + } else { + operatingSystems_ = null; + operatingSystemsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + totalSize_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.OperatingSystemServiceProto + .internal_static_google_ads_admanager_v1_ListOperatingSystemsResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListOperatingSystemsResponse getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListOperatingSystemsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListOperatingSystemsResponse build() { + com.google.ads.admanager.v1.ListOperatingSystemsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListOperatingSystemsResponse buildPartial() { + com.google.ads.admanager.v1.ListOperatingSystemsResponse result = + new com.google.ads.admanager.v1.ListOperatingSystemsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.ListOperatingSystemsResponse result) { + if (operatingSystemsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + operatingSystems_ = java.util.Collections.unmodifiableList(operatingSystems_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.operatingSystems_ = operatingSystems_; + } else { + result.operatingSystems_ = operatingSystemsBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.ListOperatingSystemsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalSize_ = totalSize_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListOperatingSystemsResponse) { + return mergeFrom((com.google.ads.admanager.v1.ListOperatingSystemsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListOperatingSystemsResponse other) { + if (other == com.google.ads.admanager.v1.ListOperatingSystemsResponse.getDefaultInstance()) + return this; + if (operatingSystemsBuilder_ == null) { + if (!other.operatingSystems_.isEmpty()) { + if (operatingSystems_.isEmpty()) { + operatingSystems_ = other.operatingSystems_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureOperatingSystemsIsMutable(); + operatingSystems_.addAll(other.operatingSystems_); + } + onChanged(); + } + } else { + if (!other.operatingSystems_.isEmpty()) { + if (operatingSystemsBuilder_.isEmpty()) { + operatingSystemsBuilder_.dispose(); + operatingSystemsBuilder_ = null; + operatingSystems_ = other.operatingSystems_; + bitField0_ = (bitField0_ & ~0x00000001); + operatingSystemsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getOperatingSystemsFieldBuilder() + : null; + } else { + operatingSystemsBuilder_.addAllMessages(other.operatingSystems_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getTotalSize() != 0) { + setTotalSize(other.getTotalSize()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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.admanager.v1.OperatingSystem m = + input.readMessage( + com.google.ads.admanager.v1.OperatingSystem.parser(), extensionRegistry); + if (operatingSystemsBuilder_ == null) { + ensureOperatingSystemsIsMutable(); + operatingSystems_.add(m); + } else { + operatingSystemsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + totalSize_ = input.readInt32(); + 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 operatingSystems_ = + java.util.Collections.emptyList(); + + private void ensureOperatingSystemsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + operatingSystems_ = + new java.util.ArrayList(operatingSystems_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.OperatingSystem, + com.google.ads.admanager.v1.OperatingSystem.Builder, + com.google.ads.admanager.v1.OperatingSystemOrBuilder> + operatingSystemsBuilder_; + + /** + * + * + *
+     * The `OperatingSystem` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystem operating_systems = 1; + */ + public java.util.List getOperatingSystemsList() { + if (operatingSystemsBuilder_ == null) { + return java.util.Collections.unmodifiableList(operatingSystems_); + } else { + return operatingSystemsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The `OperatingSystem` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystem operating_systems = 1; + */ + public int getOperatingSystemsCount() { + if (operatingSystemsBuilder_ == null) { + return operatingSystems_.size(); + } else { + return operatingSystemsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The `OperatingSystem` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystem operating_systems = 1; + */ + public com.google.ads.admanager.v1.OperatingSystem getOperatingSystems(int index) { + if (operatingSystemsBuilder_ == null) { + return operatingSystems_.get(index); + } else { + return operatingSystemsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The `OperatingSystem` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystem operating_systems = 1; + */ + public Builder setOperatingSystems( + int index, com.google.ads.admanager.v1.OperatingSystem value) { + if (operatingSystemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOperatingSystemsIsMutable(); + operatingSystems_.set(index, value); + onChanged(); + } else { + operatingSystemsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The `OperatingSystem` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystem operating_systems = 1; + */ + public Builder setOperatingSystems( + int index, com.google.ads.admanager.v1.OperatingSystem.Builder builderForValue) { + if (operatingSystemsBuilder_ == null) { + ensureOperatingSystemsIsMutable(); + operatingSystems_.set(index, builderForValue.build()); + onChanged(); + } else { + operatingSystemsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The `OperatingSystem` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystem operating_systems = 1; + */ + public Builder addOperatingSystems(com.google.ads.admanager.v1.OperatingSystem value) { + if (operatingSystemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOperatingSystemsIsMutable(); + operatingSystems_.add(value); + onChanged(); + } else { + operatingSystemsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The `OperatingSystem` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystem operating_systems = 1; + */ + public Builder addOperatingSystems( + int index, com.google.ads.admanager.v1.OperatingSystem value) { + if (operatingSystemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOperatingSystemsIsMutable(); + operatingSystems_.add(index, value); + onChanged(); + } else { + operatingSystemsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The `OperatingSystem` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystem operating_systems = 1; + */ + public Builder addOperatingSystems( + com.google.ads.admanager.v1.OperatingSystem.Builder builderForValue) { + if (operatingSystemsBuilder_ == null) { + ensureOperatingSystemsIsMutable(); + operatingSystems_.add(builderForValue.build()); + onChanged(); + } else { + operatingSystemsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The `OperatingSystem` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystem operating_systems = 1; + */ + public Builder addOperatingSystems( + int index, com.google.ads.admanager.v1.OperatingSystem.Builder builderForValue) { + if (operatingSystemsBuilder_ == null) { + ensureOperatingSystemsIsMutable(); + operatingSystems_.add(index, builderForValue.build()); + onChanged(); + } else { + operatingSystemsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The `OperatingSystem` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystem operating_systems = 1; + */ + public Builder addAllOperatingSystems( + java.lang.Iterable values) { + if (operatingSystemsBuilder_ == null) { + ensureOperatingSystemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, operatingSystems_); + onChanged(); + } else { + operatingSystemsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The `OperatingSystem` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystem operating_systems = 1; + */ + public Builder clearOperatingSystems() { + if (operatingSystemsBuilder_ == null) { + operatingSystems_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + operatingSystemsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The `OperatingSystem` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystem operating_systems = 1; + */ + public Builder removeOperatingSystems(int index) { + if (operatingSystemsBuilder_ == null) { + ensureOperatingSystemsIsMutable(); + operatingSystems_.remove(index); + onChanged(); + } else { + operatingSystemsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The `OperatingSystem` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystem operating_systems = 1; + */ + public com.google.ads.admanager.v1.OperatingSystem.Builder getOperatingSystemsBuilder( + int index) { + return getOperatingSystemsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The `OperatingSystem` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystem operating_systems = 1; + */ + public com.google.ads.admanager.v1.OperatingSystemOrBuilder getOperatingSystemsOrBuilder( + int index) { + if (operatingSystemsBuilder_ == null) { + return operatingSystems_.get(index); + } else { + return operatingSystemsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The `OperatingSystem` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystem operating_systems = 1; + */ + public java.util.List + getOperatingSystemsOrBuilderList() { + if (operatingSystemsBuilder_ != null) { + return operatingSystemsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(operatingSystems_); + } + } + + /** + * + * + *
+     * The `OperatingSystem` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystem operating_systems = 1; + */ + public com.google.ads.admanager.v1.OperatingSystem.Builder addOperatingSystemsBuilder() { + return getOperatingSystemsFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.OperatingSystem.getDefaultInstance()); + } + + /** + * + * + *
+     * The `OperatingSystem` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystem operating_systems = 1; + */ + public com.google.ads.admanager.v1.OperatingSystem.Builder addOperatingSystemsBuilder( + int index) { + return getOperatingSystemsFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.OperatingSystem.getDefaultInstance()); + } + + /** + * + * + *
+     * The `OperatingSystem` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystem operating_systems = 1; + */ + public java.util.List + getOperatingSystemsBuilderList() { + return getOperatingSystemsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.OperatingSystem, + com.google.ads.admanager.v1.OperatingSystem.Builder, + com.google.ads.admanager.v1.OperatingSystemOrBuilder> + getOperatingSystemsFieldBuilder() { + if (operatingSystemsBuilder_ == null) { + operatingSystemsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.OperatingSystem, + com.google.ads.admanager.v1.OperatingSystem.Builder, + com.google.ads.admanager.v1.OperatingSystemOrBuilder>( + operatingSystems_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + operatingSystems_ = null; + } + return operatingSystemsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int totalSize_; + + /** + * + * + *
+     * Total number of `OperatingSystem` objects.
+     * If a filter was included in the request, this reflects the total number
+     * after the filtering is applied.
+     *
+     * `total_size` will not be calculated in the response unless it has been
+     * included in a response field mask. The response field mask can be provided
+     * to the method by using the URL parameter `$fields` or `fields`, or by using
+     * the HTTP/gRPC header `X-Goog-FieldMask`.
+     *
+     * For more information, see
+     * https://developers.google.com/ad-manager/api/beta/field-masks
+     * 
+ * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + /** + * + * + *
+     * Total number of `OperatingSystem` objects.
+     * If a filter was included in the request, this reflects the total number
+     * after the filtering is applied.
+     *
+     * `total_size` will not be calculated in the response unless it has been
+     * included in a response field mask. The response field mask can be provided
+     * to the method by using the URL parameter `$fields` or `fields`, or by using
+     * the HTTP/gRPC header `X-Goog-FieldMask`.
+     *
+     * For more information, see
+     * https://developers.google.com/ad-manager/api/beta/field-masks
+     * 
+ * + * int32 total_size = 3; + * + * @param value The totalSize to set. + * @return This builder for chaining. + */ + public Builder setTotalSize(int value) { + + totalSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Total number of `OperatingSystem` objects.
+     * If a filter was included in the request, this reflects the total number
+     * after the filtering is applied.
+     *
+     * `total_size` will not be calculated in the response unless it has been
+     * included in a response field mask. The response field mask can be provided
+     * to the method by using the URL parameter `$fields` or `fields`, or by using
+     * the HTTP/gRPC header `X-Goog-FieldMask`.
+     *
+     * For more information, see
+     * https://developers.google.com/ad-manager/api/beta/field-masks
+     * 
+ * + * int32 total_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearTotalSize() { + bitField0_ = (bitField0_ & ~0x00000004); + totalSize_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListOperatingSystemsResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListOperatingSystemsResponse) + private static final com.google.ads.admanager.v1.ListOperatingSystemsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListOperatingSystemsResponse(); + } + + public static com.google.ads.admanager.v1.ListOperatingSystemsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListOperatingSystemsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.ListOperatingSystemsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemsResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemsResponseOrBuilder.java new file mode 100644 index 000000000000..953338871459 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListOperatingSystemsResponseOrBuilder.java @@ -0,0 +1,133 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/operating_system_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListOperatingSystemsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListOperatingSystemsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The `OperatingSystem` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystem operating_systems = 1; + */ + java.util.List getOperatingSystemsList(); + + /** + * + * + *
+   * The `OperatingSystem` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystem operating_systems = 1; + */ + com.google.ads.admanager.v1.OperatingSystem getOperatingSystems(int index); + + /** + * + * + *
+   * The `OperatingSystem` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystem operating_systems = 1; + */ + int getOperatingSystemsCount(); + + /** + * + * + *
+   * The `OperatingSystem` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystem operating_systems = 1; + */ + java.util.List + getOperatingSystemsOrBuilderList(); + + /** + * + * + *
+   * The `OperatingSystem` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.OperatingSystem operating_systems = 1; + */ + com.google.ads.admanager.v1.OperatingSystemOrBuilder getOperatingSystemsOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Total number of `OperatingSystem` objects.
+   * If a filter was included in the request, this reflects the total number
+   * after the filtering is applied.
+   *
+   * `total_size` will not be calculated in the response unless it has been
+   * included in a response field mask. The response field mask can be provided
+   * to the method by using the URL parameter `$fields` or `fields`, or by using
+   * the HTTP/gRPC header `X-Goog-FieldMask`.
+   *
+   * For more information, see
+   * https://developers.google.com/ad-manager/api/beta/field-masks
+   * 
+ * + * int32 total_size = 3; + * + * @return The totalSize. + */ + int getTotalSize(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionDealsRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionDealsRequest.java new file mode 100644 index 000000000000..1ca0c4e7942e --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionDealsRequest.java @@ -0,0 +1,1500 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/private_auction_deal_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Request object for `ListPrivateAuctionDeals` method.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.ListPrivateAuctionDealsRequest} + */ +public final class ListPrivateAuctionDealsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListPrivateAuctionDealsRequest) + ListPrivateAuctionDealsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListPrivateAuctionDealsRequest.newBuilder() to construct. + private ListPrivateAuctionDealsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListPrivateAuctionDealsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListPrivateAuctionDealsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PrivateAuctionDealServiceProto + .internal_static_google_ads_admanager_v1_ListPrivateAuctionDealsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PrivateAuctionDealServiceProto + .internal_static_google_ads_admanager_v1_ListPrivateAuctionDealsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListPrivateAuctionDealsRequest.class, + com.google.ads.admanager.v1.ListPrivateAuctionDealsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent, which owns this collection of PrivateAuctionDeals.
+   * Format:
+   * `networks/{network_code}`
+   * 
+ * + * + * 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, which owns this collection of PrivateAuctionDeals.
+   * Format:
+   * `networks/{network_code}`
+   * 
+ * + * + * 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 `PrivateAuctionDeals` to return. The
+   * service may return fewer than this value. If unspecified, at most 50
+   * `PrivateAuctionDeals` 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 `ListPrivateAuctionDeals`
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to
+   * `ListPrivateAuctionDeals` 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 `ListPrivateAuctionDeals`
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to
+   * `ListPrivateAuctionDeals` 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; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Optional. Expression to filter the response.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters
+   * 
+ * + * string filter = 4 [(.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. Expression to filter the response.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters
+   * 
+ * + * string filter = 4 [(.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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Optional. Expression to specify sorting order.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters#order
+   * 
+ * + * 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. Expression to specify sorting order.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters#order
+   * 
+ * + * 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 SKIP_FIELD_NUMBER = 6; + private int skip_ = 0; + + /** + * + * + *
+   * Optional. Number of individual resources to skip while paginating.
+   * 
+ * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + if (skip_ != 0) { + output.writeInt32(6, skip_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + if (skip_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, skip_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.admanager.v1.ListPrivateAuctionDealsRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListPrivateAuctionDealsRequest other = + (com.google.ads.admanager.v1.ListPrivateAuctionDealsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (getSkip() != other.getSkip()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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 = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + SKIP_FIELD_NUMBER; + hash = (53 * hash) + getSkip(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListPrivateAuctionDealsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListPrivateAuctionDealsRequest 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.admanager.v1.ListPrivateAuctionDealsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListPrivateAuctionDealsRequest parseFrom( + 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.admanager.v1.ListPrivateAuctionDealsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListPrivateAuctionDealsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListPrivateAuctionDealsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListPrivateAuctionDealsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListPrivateAuctionDealsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListPrivateAuctionDealsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListPrivateAuctionDealsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListPrivateAuctionDealsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.ListPrivateAuctionDealsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request object for `ListPrivateAuctionDeals` method.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.ListPrivateAuctionDealsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListPrivateAuctionDealsRequest) + com.google.ads.admanager.v1.ListPrivateAuctionDealsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PrivateAuctionDealServiceProto + .internal_static_google_ads_admanager_v1_ListPrivateAuctionDealsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PrivateAuctionDealServiceProto + .internal_static_google_ads_admanager_v1_ListPrivateAuctionDealsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListPrivateAuctionDealsRequest.class, + com.google.ads.admanager.v1.ListPrivateAuctionDealsRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListPrivateAuctionDealsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + skip_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.PrivateAuctionDealServiceProto + .internal_static_google_ads_admanager_v1_ListPrivateAuctionDealsRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListPrivateAuctionDealsRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListPrivateAuctionDealsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListPrivateAuctionDealsRequest build() { + com.google.ads.admanager.v1.ListPrivateAuctionDealsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListPrivateAuctionDealsRequest buildPartial() { + com.google.ads.admanager.v1.ListPrivateAuctionDealsRequest result = + new com.google.ads.admanager.v1.ListPrivateAuctionDealsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.ListPrivateAuctionDealsRequest 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_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.skip_ = skip_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListPrivateAuctionDealsRequest) { + return mergeFrom((com.google.ads.admanager.v1.ListPrivateAuctionDealsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListPrivateAuctionDealsRequest other) { + if (other == com.google.ads.admanager.v1.ListPrivateAuctionDealsRequest.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(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getSkip() != 0) { + setSkip(other.getSkip()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + skip_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent, which owns this collection of PrivateAuctionDeals.
+     * Format:
+     * `networks/{network_code}`
+     * 
+ * + * + * 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, which owns this collection of PrivateAuctionDeals.
+     * Format:
+     * `networks/{network_code}`
+     * 
+ * + * + * 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, which owns this collection of PrivateAuctionDeals.
+     * Format:
+     * `networks/{network_code}`
+     * 
+ * + * + * 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, which owns this collection of PrivateAuctionDeals.
+     * Format:
+     * `networks/{network_code}`
+     * 
+ * + * + * 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, which owns this collection of PrivateAuctionDeals.
+     * Format:
+     * `networks/{network_code}`
+     * 
+ * + * + * 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 `PrivateAuctionDeals` to return. The
+     * service may return fewer than this value. If unspecified, at most 50
+     * `PrivateAuctionDeals` 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 `PrivateAuctionDeals` to return. The
+     * service may return fewer than this value. If unspecified, at most 50
+     * `PrivateAuctionDeals` 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 `PrivateAuctionDeals` to return. The
+     * service may return fewer than this value. If unspecified, at most 50
+     * `PrivateAuctionDeals` 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 `ListPrivateAuctionDeals`
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * `ListPrivateAuctionDeals` 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 `ListPrivateAuctionDeals`
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * `ListPrivateAuctionDeals` 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 `ListPrivateAuctionDeals`
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * `ListPrivateAuctionDeals` 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 `ListPrivateAuctionDeals`
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * `ListPrivateAuctionDeals` 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 `ListPrivateAuctionDeals`
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * `ListPrivateAuctionDeals` 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; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Optional. Expression to filter the response.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters
+     * 
+ * + * string filter = 4 [(.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. Expression to filter the response.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters
+     * 
+ * + * string filter = 4 [(.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. Expression to filter the response.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters
+     * 
+ * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Expression to filter the response.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Expression to filter the response.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters
+     * 
+ * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Optional. Expression to specify sorting order.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters#order
+     * 
+ * + * 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. Expression to specify sorting order.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters#order
+     * 
+ * + * 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. Expression to specify sorting order.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters#order
+     * 
+ * + * 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. Expression to specify sorting order.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters#order
+     * 
+ * + * 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. Expression to specify sorting order.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters#order
+     * 
+ * + * 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 skip_; + + /** + * + * + *
+     * Optional. Number of individual resources to skip while paginating.
+     * 
+ * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + /** + * + * + *
+     * Optional. Number of individual resources to skip while paginating.
+     * 
+ * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The skip to set. + * @return This builder for chaining. + */ + public Builder setSkip(int value) { + + skip_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Number of individual resources to skip while paginating.
+     * 
+ * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSkip() { + bitField0_ = (bitField0_ & ~0x00000020); + skip_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListPrivateAuctionDealsRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListPrivateAuctionDealsRequest) + private static final com.google.ads.admanager.v1.ListPrivateAuctionDealsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListPrivateAuctionDealsRequest(); + } + + public static com.google.ads.admanager.v1.ListPrivateAuctionDealsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPrivateAuctionDealsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.ListPrivateAuctionDealsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionDealsRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionDealsRequestOrBuilder.java new file mode 100644 index 000000000000..56e00b2bb2a2 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionDealsRequestOrBuilder.java @@ -0,0 +1,185 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/private_auction_deal_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListPrivateAuctionDealsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListPrivateAuctionDealsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent, which owns this collection of PrivateAuctionDeals.
+   * Format:
+   * `networks/{network_code}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent, which owns this collection of PrivateAuctionDeals.
+   * Format:
+   * `networks/{network_code}`
+   * 
+ * + * + * 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 `PrivateAuctionDeals` to return. The
+   * service may return fewer than this value. If unspecified, at most 50
+   * `PrivateAuctionDeals` 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 `ListPrivateAuctionDeals`
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to
+   * `ListPrivateAuctionDeals` 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 `ListPrivateAuctionDeals`
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to
+   * `ListPrivateAuctionDeals` 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(); + + /** + * + * + *
+   * Optional. Expression to filter the response.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. Expression to filter the response.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. Expression to specify sorting order.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters#order
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Optional. Expression to specify sorting order.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters#order
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
+   * Optional. Number of individual resources to skip while paginating.
+   * 
+ * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + int getSkip(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionDealsResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionDealsResponse.java new file mode 100644 index 000000000000..b04c1933c40a --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionDealsResponse.java @@ -0,0 +1,1312 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/private_auction_deal_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Response object for `ListPrivateAuctionDealsRequest` containing matching
+ * `PrivateAuctionDeal` objects.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.ListPrivateAuctionDealsResponse} + */ +public final class ListPrivateAuctionDealsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListPrivateAuctionDealsResponse) + ListPrivateAuctionDealsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListPrivateAuctionDealsResponse.newBuilder() to construct. + private ListPrivateAuctionDealsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListPrivateAuctionDealsResponse() { + privateAuctionDeals_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListPrivateAuctionDealsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PrivateAuctionDealServiceProto + .internal_static_google_ads_admanager_v1_ListPrivateAuctionDealsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PrivateAuctionDealServiceProto + .internal_static_google_ads_admanager_v1_ListPrivateAuctionDealsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListPrivateAuctionDealsResponse.class, + com.google.ads.admanager.v1.ListPrivateAuctionDealsResponse.Builder.class); + } + + public static final int PRIVATE_AUCTION_DEALS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List privateAuctionDeals_; + + /** + * + * + *
+   * The `PrivateAuctionDeal` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deals = 1; + */ + @java.lang.Override + public java.util.List + getPrivateAuctionDealsList() { + return privateAuctionDeals_; + } + + /** + * + * + *
+   * The `PrivateAuctionDeal` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deals = 1; + */ + @java.lang.Override + public java.util.List + getPrivateAuctionDealsOrBuilderList() { + return privateAuctionDeals_; + } + + /** + * + * + *
+   * The `PrivateAuctionDeal` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deals = 1; + */ + @java.lang.Override + public int getPrivateAuctionDealsCount() { + return privateAuctionDeals_.size(); + } + + /** + * + * + *
+   * The `PrivateAuctionDeal` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deals = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.PrivateAuctionDeal getPrivateAuctionDeals(int index) { + return privateAuctionDeals_.get(index); + } + + /** + * + * + *
+   * The `PrivateAuctionDeal` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deals = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.PrivateAuctionDealOrBuilder getPrivateAuctionDealsOrBuilder( + int index) { + return privateAuctionDeals_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOTAL_SIZE_FIELD_NUMBER = 3; + private int totalSize_ = 0; + + /** + * + * + *
+   * Total number of `PrivateAuctionDeal` objects.
+   * If a filter was included in the request, this reflects the total number
+   * after the filtering is applied.
+   *
+   * `total_size` will not be calculated in the response unless it has been
+   * included in a response field mask. The response field mask can be provided
+   * to the method by using the URL parameter `$fields` or `fields`, or by using
+   * the HTTP/gRPC header `X-Goog-FieldMask`.
+   *
+   * For more information, see
+   * https://developers.google.com/ad-manager/api/beta/field-masks
+   * 
+ * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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 < privateAuctionDeals_.size(); i++) { + output.writeMessage(1, privateAuctionDeals_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + if (totalSize_ != 0) { + output.writeInt32(3, totalSize_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < privateAuctionDeals_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, privateAuctionDeals_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + if (totalSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSize_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.admanager.v1.ListPrivateAuctionDealsResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListPrivateAuctionDealsResponse other = + (com.google.ads.admanager.v1.ListPrivateAuctionDealsResponse) obj; + + if (!getPrivateAuctionDealsList().equals(other.getPrivateAuctionDealsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getPrivateAuctionDealsCount() > 0) { + hash = (37 * hash) + PRIVATE_AUCTION_DEALS_FIELD_NUMBER; + hash = (53 * hash) + getPrivateAuctionDealsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (37 * hash) + TOTAL_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getTotalSize(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListPrivateAuctionDealsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListPrivateAuctionDealsResponse 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.admanager.v1.ListPrivateAuctionDealsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListPrivateAuctionDealsResponse parseFrom( + 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.admanager.v1.ListPrivateAuctionDealsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListPrivateAuctionDealsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListPrivateAuctionDealsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListPrivateAuctionDealsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListPrivateAuctionDealsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListPrivateAuctionDealsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListPrivateAuctionDealsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListPrivateAuctionDealsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.ListPrivateAuctionDealsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response object for `ListPrivateAuctionDealsRequest` containing matching
+   * `PrivateAuctionDeal` objects.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.ListPrivateAuctionDealsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListPrivateAuctionDealsResponse) + com.google.ads.admanager.v1.ListPrivateAuctionDealsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PrivateAuctionDealServiceProto + .internal_static_google_ads_admanager_v1_ListPrivateAuctionDealsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PrivateAuctionDealServiceProto + .internal_static_google_ads_admanager_v1_ListPrivateAuctionDealsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListPrivateAuctionDealsResponse.class, + com.google.ads.admanager.v1.ListPrivateAuctionDealsResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListPrivateAuctionDealsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (privateAuctionDealsBuilder_ == null) { + privateAuctionDeals_ = java.util.Collections.emptyList(); + } else { + privateAuctionDeals_ = null; + privateAuctionDealsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + totalSize_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.PrivateAuctionDealServiceProto + .internal_static_google_ads_admanager_v1_ListPrivateAuctionDealsResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListPrivateAuctionDealsResponse getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListPrivateAuctionDealsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListPrivateAuctionDealsResponse build() { + com.google.ads.admanager.v1.ListPrivateAuctionDealsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListPrivateAuctionDealsResponse buildPartial() { + com.google.ads.admanager.v1.ListPrivateAuctionDealsResponse result = + new com.google.ads.admanager.v1.ListPrivateAuctionDealsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.ListPrivateAuctionDealsResponse result) { + if (privateAuctionDealsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + privateAuctionDeals_ = java.util.Collections.unmodifiableList(privateAuctionDeals_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.privateAuctionDeals_ = privateAuctionDeals_; + } else { + result.privateAuctionDeals_ = privateAuctionDealsBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.ListPrivateAuctionDealsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalSize_ = totalSize_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListPrivateAuctionDealsResponse) { + return mergeFrom((com.google.ads.admanager.v1.ListPrivateAuctionDealsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListPrivateAuctionDealsResponse other) { + if (other == com.google.ads.admanager.v1.ListPrivateAuctionDealsResponse.getDefaultInstance()) + return this; + if (privateAuctionDealsBuilder_ == null) { + if (!other.privateAuctionDeals_.isEmpty()) { + if (privateAuctionDeals_.isEmpty()) { + privateAuctionDeals_ = other.privateAuctionDeals_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePrivateAuctionDealsIsMutable(); + privateAuctionDeals_.addAll(other.privateAuctionDeals_); + } + onChanged(); + } + } else { + if (!other.privateAuctionDeals_.isEmpty()) { + if (privateAuctionDealsBuilder_.isEmpty()) { + privateAuctionDealsBuilder_.dispose(); + privateAuctionDealsBuilder_ = null; + privateAuctionDeals_ = other.privateAuctionDeals_; + bitField0_ = (bitField0_ & ~0x00000001); + privateAuctionDealsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPrivateAuctionDealsFieldBuilder() + : null; + } else { + privateAuctionDealsBuilder_.addAllMessages(other.privateAuctionDeals_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getTotalSize() != 0) { + setTotalSize(other.getTotalSize()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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.admanager.v1.PrivateAuctionDeal m = + input.readMessage( + com.google.ads.admanager.v1.PrivateAuctionDeal.parser(), extensionRegistry); + if (privateAuctionDealsBuilder_ == null) { + ensurePrivateAuctionDealsIsMutable(); + privateAuctionDeals_.add(m); + } else { + privateAuctionDealsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + totalSize_ = input.readInt32(); + 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 privateAuctionDeals_ = + java.util.Collections.emptyList(); + + private void ensurePrivateAuctionDealsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + privateAuctionDeals_ = + new java.util.ArrayList( + privateAuctionDeals_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.PrivateAuctionDeal, + com.google.ads.admanager.v1.PrivateAuctionDeal.Builder, + com.google.ads.admanager.v1.PrivateAuctionDealOrBuilder> + privateAuctionDealsBuilder_; + + /** + * + * + *
+     * The `PrivateAuctionDeal` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deals = 1; + */ + public java.util.List + getPrivateAuctionDealsList() { + if (privateAuctionDealsBuilder_ == null) { + return java.util.Collections.unmodifiableList(privateAuctionDeals_); + } else { + return privateAuctionDealsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The `PrivateAuctionDeal` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deals = 1; + */ + public int getPrivateAuctionDealsCount() { + if (privateAuctionDealsBuilder_ == null) { + return privateAuctionDeals_.size(); + } else { + return privateAuctionDealsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The `PrivateAuctionDeal` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deals = 1; + */ + public com.google.ads.admanager.v1.PrivateAuctionDeal getPrivateAuctionDeals(int index) { + if (privateAuctionDealsBuilder_ == null) { + return privateAuctionDeals_.get(index); + } else { + return privateAuctionDealsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The `PrivateAuctionDeal` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deals = 1; + */ + public Builder setPrivateAuctionDeals( + int index, com.google.ads.admanager.v1.PrivateAuctionDeal value) { + if (privateAuctionDealsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrivateAuctionDealsIsMutable(); + privateAuctionDeals_.set(index, value); + onChanged(); + } else { + privateAuctionDealsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The `PrivateAuctionDeal` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deals = 1; + */ + public Builder setPrivateAuctionDeals( + int index, com.google.ads.admanager.v1.PrivateAuctionDeal.Builder builderForValue) { + if (privateAuctionDealsBuilder_ == null) { + ensurePrivateAuctionDealsIsMutable(); + privateAuctionDeals_.set(index, builderForValue.build()); + onChanged(); + } else { + privateAuctionDealsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The `PrivateAuctionDeal` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deals = 1; + */ + public Builder addPrivateAuctionDeals(com.google.ads.admanager.v1.PrivateAuctionDeal value) { + if (privateAuctionDealsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrivateAuctionDealsIsMutable(); + privateAuctionDeals_.add(value); + onChanged(); + } else { + privateAuctionDealsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The `PrivateAuctionDeal` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deals = 1; + */ + public Builder addPrivateAuctionDeals( + int index, com.google.ads.admanager.v1.PrivateAuctionDeal value) { + if (privateAuctionDealsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrivateAuctionDealsIsMutable(); + privateAuctionDeals_.add(index, value); + onChanged(); + } else { + privateAuctionDealsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The `PrivateAuctionDeal` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deals = 1; + */ + public Builder addPrivateAuctionDeals( + com.google.ads.admanager.v1.PrivateAuctionDeal.Builder builderForValue) { + if (privateAuctionDealsBuilder_ == null) { + ensurePrivateAuctionDealsIsMutable(); + privateAuctionDeals_.add(builderForValue.build()); + onChanged(); + } else { + privateAuctionDealsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The `PrivateAuctionDeal` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deals = 1; + */ + public Builder addPrivateAuctionDeals( + int index, com.google.ads.admanager.v1.PrivateAuctionDeal.Builder builderForValue) { + if (privateAuctionDealsBuilder_ == null) { + ensurePrivateAuctionDealsIsMutable(); + privateAuctionDeals_.add(index, builderForValue.build()); + onChanged(); + } else { + privateAuctionDealsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The `PrivateAuctionDeal` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deals = 1; + */ + public Builder addAllPrivateAuctionDeals( + java.lang.Iterable values) { + if (privateAuctionDealsBuilder_ == null) { + ensurePrivateAuctionDealsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, privateAuctionDeals_); + onChanged(); + } else { + privateAuctionDealsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The `PrivateAuctionDeal` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deals = 1; + */ + public Builder clearPrivateAuctionDeals() { + if (privateAuctionDealsBuilder_ == null) { + privateAuctionDeals_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + privateAuctionDealsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The `PrivateAuctionDeal` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deals = 1; + */ + public Builder removePrivateAuctionDeals(int index) { + if (privateAuctionDealsBuilder_ == null) { + ensurePrivateAuctionDealsIsMutable(); + privateAuctionDeals_.remove(index); + onChanged(); + } else { + privateAuctionDealsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The `PrivateAuctionDeal` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deals = 1; + */ + public com.google.ads.admanager.v1.PrivateAuctionDeal.Builder getPrivateAuctionDealsBuilder( + int index) { + return getPrivateAuctionDealsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The `PrivateAuctionDeal` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deals = 1; + */ + public com.google.ads.admanager.v1.PrivateAuctionDealOrBuilder getPrivateAuctionDealsOrBuilder( + int index) { + if (privateAuctionDealsBuilder_ == null) { + return privateAuctionDeals_.get(index); + } else { + return privateAuctionDealsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The `PrivateAuctionDeal` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deals = 1; + */ + public java.util.List + getPrivateAuctionDealsOrBuilderList() { + if (privateAuctionDealsBuilder_ != null) { + return privateAuctionDealsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(privateAuctionDeals_); + } + } + + /** + * + * + *
+     * The `PrivateAuctionDeal` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deals = 1; + */ + public com.google.ads.admanager.v1.PrivateAuctionDeal.Builder addPrivateAuctionDealsBuilder() { + return getPrivateAuctionDealsFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.PrivateAuctionDeal.getDefaultInstance()); + } + + /** + * + * + *
+     * The `PrivateAuctionDeal` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deals = 1; + */ + public com.google.ads.admanager.v1.PrivateAuctionDeal.Builder addPrivateAuctionDealsBuilder( + int index) { + return getPrivateAuctionDealsFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.PrivateAuctionDeal.getDefaultInstance()); + } + + /** + * + * + *
+     * The `PrivateAuctionDeal` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deals = 1; + */ + public java.util.List + getPrivateAuctionDealsBuilderList() { + return getPrivateAuctionDealsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.PrivateAuctionDeal, + com.google.ads.admanager.v1.PrivateAuctionDeal.Builder, + com.google.ads.admanager.v1.PrivateAuctionDealOrBuilder> + getPrivateAuctionDealsFieldBuilder() { + if (privateAuctionDealsBuilder_ == null) { + privateAuctionDealsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.PrivateAuctionDeal, + com.google.ads.admanager.v1.PrivateAuctionDeal.Builder, + com.google.ads.admanager.v1.PrivateAuctionDealOrBuilder>( + privateAuctionDeals_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + privateAuctionDeals_ = null; + } + return privateAuctionDealsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int totalSize_; + + /** + * + * + *
+     * Total number of `PrivateAuctionDeal` objects.
+     * If a filter was included in the request, this reflects the total number
+     * after the filtering is applied.
+     *
+     * `total_size` will not be calculated in the response unless it has been
+     * included in a response field mask. The response field mask can be provided
+     * to the method by using the URL parameter `$fields` or `fields`, or by using
+     * the HTTP/gRPC header `X-Goog-FieldMask`.
+     *
+     * For more information, see
+     * https://developers.google.com/ad-manager/api/beta/field-masks
+     * 
+ * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + /** + * + * + *
+     * Total number of `PrivateAuctionDeal` objects.
+     * If a filter was included in the request, this reflects the total number
+     * after the filtering is applied.
+     *
+     * `total_size` will not be calculated in the response unless it has been
+     * included in a response field mask. The response field mask can be provided
+     * to the method by using the URL parameter `$fields` or `fields`, or by using
+     * the HTTP/gRPC header `X-Goog-FieldMask`.
+     *
+     * For more information, see
+     * https://developers.google.com/ad-manager/api/beta/field-masks
+     * 
+ * + * int32 total_size = 3; + * + * @param value The totalSize to set. + * @return This builder for chaining. + */ + public Builder setTotalSize(int value) { + + totalSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Total number of `PrivateAuctionDeal` objects.
+     * If a filter was included in the request, this reflects the total number
+     * after the filtering is applied.
+     *
+     * `total_size` will not be calculated in the response unless it has been
+     * included in a response field mask. The response field mask can be provided
+     * to the method by using the URL parameter `$fields` or `fields`, or by using
+     * the HTTP/gRPC header `X-Goog-FieldMask`.
+     *
+     * For more information, see
+     * https://developers.google.com/ad-manager/api/beta/field-masks
+     * 
+ * + * int32 total_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearTotalSize() { + bitField0_ = (bitField0_ & ~0x00000004); + totalSize_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListPrivateAuctionDealsResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListPrivateAuctionDealsResponse) + private static final com.google.ads.admanager.v1.ListPrivateAuctionDealsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListPrivateAuctionDealsResponse(); + } + + public static com.google.ads.admanager.v1.ListPrivateAuctionDealsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPrivateAuctionDealsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.ListPrivateAuctionDealsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionDealsResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionDealsResponseOrBuilder.java new file mode 100644 index 000000000000..14301804c95d --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionDealsResponseOrBuilder.java @@ -0,0 +1,134 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/private_auction_deal_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListPrivateAuctionDealsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListPrivateAuctionDealsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The `PrivateAuctionDeal` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deals = 1; + */ + java.util.List getPrivateAuctionDealsList(); + + /** + * + * + *
+   * The `PrivateAuctionDeal` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deals = 1; + */ + com.google.ads.admanager.v1.PrivateAuctionDeal getPrivateAuctionDeals(int index); + + /** + * + * + *
+   * The `PrivateAuctionDeal` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deals = 1; + */ + int getPrivateAuctionDealsCount(); + + /** + * + * + *
+   * The `PrivateAuctionDeal` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deals = 1; + */ + java.util.List + getPrivateAuctionDealsOrBuilderList(); + + /** + * + * + *
+   * The `PrivateAuctionDeal` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deals = 1; + */ + com.google.ads.admanager.v1.PrivateAuctionDealOrBuilder getPrivateAuctionDealsOrBuilder( + int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Total number of `PrivateAuctionDeal` objects.
+   * If a filter was included in the request, this reflects the total number
+   * after the filtering is applied.
+   *
+   * `total_size` will not be calculated in the response unless it has been
+   * included in a response field mask. The response field mask can be provided
+   * to the method by using the URL parameter `$fields` or `fields`, or by using
+   * the HTTP/gRPC header `X-Goog-FieldMask`.
+   *
+   * For more information, see
+   * https://developers.google.com/ad-manager/api/beta/field-masks
+   * 
+ * + * int32 total_size = 3; + * + * @return The totalSize. + */ + int getTotalSize(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionsRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionsRequest.java new file mode 100644 index 000000000000..fc0727a784a5 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionsRequest.java @@ -0,0 +1,1492 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/private_auction_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Request object for `ListPrivateAuctions` method.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.ListPrivateAuctionsRequest} + */ +public final class ListPrivateAuctionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListPrivateAuctionsRequest) + ListPrivateAuctionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListPrivateAuctionsRequest.newBuilder() to construct. + private ListPrivateAuctionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListPrivateAuctionsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListPrivateAuctionsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PrivateAuctionServiceProto + .internal_static_google_ads_admanager_v1_ListPrivateAuctionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PrivateAuctionServiceProto + .internal_static_google_ads_admanager_v1_ListPrivateAuctionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListPrivateAuctionsRequest.class, + com.google.ads.admanager.v1.ListPrivateAuctionsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent, which owns this collection of PrivateAuctions.
+   * Format: `networks/{network_code}`
+   * 
+ * + * + * 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, which owns this collection of PrivateAuctions.
+   * Format: `networks/{network_code}`
+   * 
+ * + * + * 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 `PrivateAuctions` to return. The service
+   * may return fewer than this value. If unspecified, at most 50
+   * `PrivateAuctions` 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 `ListPrivateAuctions`
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to
+   * `ListPrivateAuctions` 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 `ListPrivateAuctions`
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to
+   * `ListPrivateAuctions` 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; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Optional. Expression to filter the response.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters
+   * 
+ * + * string filter = 4 [(.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. Expression to filter the response.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters
+   * 
+ * + * string filter = 4 [(.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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Optional. Expression to specify sorting order.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters#order
+   * 
+ * + * 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. Expression to specify sorting order.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters#order
+   * 
+ * + * 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 SKIP_FIELD_NUMBER = 6; + private int skip_ = 0; + + /** + * + * + *
+   * Optional. Number of individual resources to skip while paginating.
+   * 
+ * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + if (skip_ != 0) { + output.writeInt32(6, skip_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + if (skip_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, skip_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.admanager.v1.ListPrivateAuctionsRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListPrivateAuctionsRequest other = + (com.google.ads.admanager.v1.ListPrivateAuctionsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (getSkip() != other.getSkip()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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 = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + SKIP_FIELD_NUMBER; + hash = (53 * hash) + getSkip(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListPrivateAuctionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListPrivateAuctionsRequest 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.admanager.v1.ListPrivateAuctionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListPrivateAuctionsRequest parseFrom( + 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.admanager.v1.ListPrivateAuctionsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListPrivateAuctionsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListPrivateAuctionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListPrivateAuctionsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListPrivateAuctionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListPrivateAuctionsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListPrivateAuctionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListPrivateAuctionsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.ListPrivateAuctionsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request object for `ListPrivateAuctions` method.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.ListPrivateAuctionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListPrivateAuctionsRequest) + com.google.ads.admanager.v1.ListPrivateAuctionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PrivateAuctionServiceProto + .internal_static_google_ads_admanager_v1_ListPrivateAuctionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PrivateAuctionServiceProto + .internal_static_google_ads_admanager_v1_ListPrivateAuctionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListPrivateAuctionsRequest.class, + com.google.ads.admanager.v1.ListPrivateAuctionsRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListPrivateAuctionsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + skip_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.PrivateAuctionServiceProto + .internal_static_google_ads_admanager_v1_ListPrivateAuctionsRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListPrivateAuctionsRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListPrivateAuctionsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListPrivateAuctionsRequest build() { + com.google.ads.admanager.v1.ListPrivateAuctionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListPrivateAuctionsRequest buildPartial() { + com.google.ads.admanager.v1.ListPrivateAuctionsRequest result = + new com.google.ads.admanager.v1.ListPrivateAuctionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.ListPrivateAuctionsRequest 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_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.skip_ = skip_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListPrivateAuctionsRequest) { + return mergeFrom((com.google.ads.admanager.v1.ListPrivateAuctionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListPrivateAuctionsRequest other) { + if (other == com.google.ads.admanager.v1.ListPrivateAuctionsRequest.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(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getSkip() != 0) { + setSkip(other.getSkip()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + skip_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent, which owns this collection of PrivateAuctions.
+     * Format: `networks/{network_code}`
+     * 
+ * + * + * 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, which owns this collection of PrivateAuctions.
+     * Format: `networks/{network_code}`
+     * 
+ * + * + * 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, which owns this collection of PrivateAuctions.
+     * Format: `networks/{network_code}`
+     * 
+ * + * + * 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, which owns this collection of PrivateAuctions.
+     * Format: `networks/{network_code}`
+     * 
+ * + * + * 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, which owns this collection of PrivateAuctions.
+     * Format: `networks/{network_code}`
+     * 
+ * + * + * 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 `PrivateAuctions` to return. The service
+     * may return fewer than this value. If unspecified, at most 50
+     * `PrivateAuctions` 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 `PrivateAuctions` to return. The service
+     * may return fewer than this value. If unspecified, at most 50
+     * `PrivateAuctions` 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 `PrivateAuctions` to return. The service
+     * may return fewer than this value. If unspecified, at most 50
+     * `PrivateAuctions` 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 `ListPrivateAuctions`
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * `ListPrivateAuctions` 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 `ListPrivateAuctions`
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * `ListPrivateAuctions` 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 `ListPrivateAuctions`
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * `ListPrivateAuctions` 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 `ListPrivateAuctions`
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * `ListPrivateAuctions` 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 `ListPrivateAuctions`
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * `ListPrivateAuctions` 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; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Optional. Expression to filter the response.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters
+     * 
+ * + * string filter = 4 [(.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. Expression to filter the response.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters
+     * 
+ * + * string filter = 4 [(.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. Expression to filter the response.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters
+     * 
+ * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Expression to filter the response.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Expression to filter the response.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters
+     * 
+ * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Optional. Expression to specify sorting order.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters#order
+     * 
+ * + * 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. Expression to specify sorting order.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters#order
+     * 
+ * + * 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. Expression to specify sorting order.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters#order
+     * 
+ * + * 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. Expression to specify sorting order.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters#order
+     * 
+ * + * 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. Expression to specify sorting order.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters#order
+     * 
+ * + * 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 skip_; + + /** + * + * + *
+     * Optional. Number of individual resources to skip while paginating.
+     * 
+ * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + /** + * + * + *
+     * Optional. Number of individual resources to skip while paginating.
+     * 
+ * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The skip to set. + * @return This builder for chaining. + */ + public Builder setSkip(int value) { + + skip_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Number of individual resources to skip while paginating.
+     * 
+ * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSkip() { + bitField0_ = (bitField0_ & ~0x00000020); + skip_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListPrivateAuctionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListPrivateAuctionsRequest) + private static final com.google.ads.admanager.v1.ListPrivateAuctionsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListPrivateAuctionsRequest(); + } + + public static com.google.ads.admanager.v1.ListPrivateAuctionsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPrivateAuctionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.ListPrivateAuctionsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionsRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionsRequestOrBuilder.java new file mode 100644 index 000000000000..837415f4eb59 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionsRequestOrBuilder.java @@ -0,0 +1,183 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/private_auction_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListPrivateAuctionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListPrivateAuctionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent, which owns this collection of PrivateAuctions.
+   * Format: `networks/{network_code}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent, which owns this collection of PrivateAuctions.
+   * Format: `networks/{network_code}`
+   * 
+ * + * + * 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 `PrivateAuctions` to return. The service
+   * may return fewer than this value. If unspecified, at most 50
+   * `PrivateAuctions` 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 `ListPrivateAuctions`
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to
+   * `ListPrivateAuctions` 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 `ListPrivateAuctions`
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to
+   * `ListPrivateAuctions` 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(); + + /** + * + * + *
+   * Optional. Expression to filter the response.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. Expression to filter the response.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. Expression to specify sorting order.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters#order
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Optional. Expression to specify sorting order.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters#order
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
+   * Optional. Number of individual resources to skip while paginating.
+   * 
+ * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + int getSkip(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionsResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionsResponse.java new file mode 100644 index 000000000000..5c8dd4d6ac0f --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionsResponse.java @@ -0,0 +1,1303 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/private_auction_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Response object for `ListPrivateAuctionsRequest` containing
+ * matching `PrivateAuction` objects.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.ListPrivateAuctionsResponse} + */ +public final class ListPrivateAuctionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListPrivateAuctionsResponse) + ListPrivateAuctionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListPrivateAuctionsResponse.newBuilder() to construct. + private ListPrivateAuctionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListPrivateAuctionsResponse() { + privateAuctions_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListPrivateAuctionsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PrivateAuctionServiceProto + .internal_static_google_ads_admanager_v1_ListPrivateAuctionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PrivateAuctionServiceProto + .internal_static_google_ads_admanager_v1_ListPrivateAuctionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListPrivateAuctionsResponse.class, + com.google.ads.admanager.v1.ListPrivateAuctionsResponse.Builder.class); + } + + public static final int PRIVATE_AUCTIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List privateAuctions_; + + /** + * + * + *
+   * The `PrivateAuction` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuction private_auctions = 1; + */ + @java.lang.Override + public java.util.List getPrivateAuctionsList() { + return privateAuctions_; + } + + /** + * + * + *
+   * The `PrivateAuction` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuction private_auctions = 1; + */ + @java.lang.Override + public java.util.List + getPrivateAuctionsOrBuilderList() { + return privateAuctions_; + } + + /** + * + * + *
+   * The `PrivateAuction` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuction private_auctions = 1; + */ + @java.lang.Override + public int getPrivateAuctionsCount() { + return privateAuctions_.size(); + } + + /** + * + * + *
+   * The `PrivateAuction` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuction private_auctions = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.PrivateAuction getPrivateAuctions(int index) { + return privateAuctions_.get(index); + } + + /** + * + * + *
+   * The `PrivateAuction` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuction private_auctions = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.PrivateAuctionOrBuilder getPrivateAuctionsOrBuilder( + int index) { + return privateAuctions_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOTAL_SIZE_FIELD_NUMBER = 3; + private int totalSize_ = 0; + + /** + * + * + *
+   * Total number of `PrivateAuction` objects.
+   * If a filter was included in the request, this reflects the total number
+   * after the filtering is applied.
+   *
+   * `total_size` will not be calculated in the response unless it has been
+   * included in a response field mask. The response field mask can be provided
+   * to the method by using the URL parameter `$fields` or `fields`, or by using
+   * the HTTP/gRPC header `X-Goog-FieldMask`.
+   *
+   * For more information, see
+   * https://developers.google.com/ad-manager/api/beta/field-masks
+   * 
+ * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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 < privateAuctions_.size(); i++) { + output.writeMessage(1, privateAuctions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + if (totalSize_ != 0) { + output.writeInt32(3, totalSize_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < privateAuctions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, privateAuctions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + if (totalSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSize_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.admanager.v1.ListPrivateAuctionsResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListPrivateAuctionsResponse other = + (com.google.ads.admanager.v1.ListPrivateAuctionsResponse) obj; + + if (!getPrivateAuctionsList().equals(other.getPrivateAuctionsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getPrivateAuctionsCount() > 0) { + hash = (37 * hash) + PRIVATE_AUCTIONS_FIELD_NUMBER; + hash = (53 * hash) + getPrivateAuctionsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (37 * hash) + TOTAL_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getTotalSize(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListPrivateAuctionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListPrivateAuctionsResponse 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.admanager.v1.ListPrivateAuctionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListPrivateAuctionsResponse parseFrom( + 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.admanager.v1.ListPrivateAuctionsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListPrivateAuctionsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListPrivateAuctionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListPrivateAuctionsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListPrivateAuctionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListPrivateAuctionsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListPrivateAuctionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListPrivateAuctionsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.ListPrivateAuctionsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response object for `ListPrivateAuctionsRequest` containing
+   * matching `PrivateAuction` objects.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.ListPrivateAuctionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListPrivateAuctionsResponse) + com.google.ads.admanager.v1.ListPrivateAuctionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PrivateAuctionServiceProto + .internal_static_google_ads_admanager_v1_ListPrivateAuctionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PrivateAuctionServiceProto + .internal_static_google_ads_admanager_v1_ListPrivateAuctionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListPrivateAuctionsResponse.class, + com.google.ads.admanager.v1.ListPrivateAuctionsResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListPrivateAuctionsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (privateAuctionsBuilder_ == null) { + privateAuctions_ = java.util.Collections.emptyList(); + } else { + privateAuctions_ = null; + privateAuctionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + totalSize_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.PrivateAuctionServiceProto + .internal_static_google_ads_admanager_v1_ListPrivateAuctionsResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListPrivateAuctionsResponse getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListPrivateAuctionsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListPrivateAuctionsResponse build() { + com.google.ads.admanager.v1.ListPrivateAuctionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListPrivateAuctionsResponse buildPartial() { + com.google.ads.admanager.v1.ListPrivateAuctionsResponse result = + new com.google.ads.admanager.v1.ListPrivateAuctionsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.ListPrivateAuctionsResponse result) { + if (privateAuctionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + privateAuctions_ = java.util.Collections.unmodifiableList(privateAuctions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.privateAuctions_ = privateAuctions_; + } else { + result.privateAuctions_ = privateAuctionsBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.ListPrivateAuctionsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalSize_ = totalSize_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListPrivateAuctionsResponse) { + return mergeFrom((com.google.ads.admanager.v1.ListPrivateAuctionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListPrivateAuctionsResponse other) { + if (other == com.google.ads.admanager.v1.ListPrivateAuctionsResponse.getDefaultInstance()) + return this; + if (privateAuctionsBuilder_ == null) { + if (!other.privateAuctions_.isEmpty()) { + if (privateAuctions_.isEmpty()) { + privateAuctions_ = other.privateAuctions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePrivateAuctionsIsMutable(); + privateAuctions_.addAll(other.privateAuctions_); + } + onChanged(); + } + } else { + if (!other.privateAuctions_.isEmpty()) { + if (privateAuctionsBuilder_.isEmpty()) { + privateAuctionsBuilder_.dispose(); + privateAuctionsBuilder_ = null; + privateAuctions_ = other.privateAuctions_; + bitField0_ = (bitField0_ & ~0x00000001); + privateAuctionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPrivateAuctionsFieldBuilder() + : null; + } else { + privateAuctionsBuilder_.addAllMessages(other.privateAuctions_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getTotalSize() != 0) { + setTotalSize(other.getTotalSize()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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.admanager.v1.PrivateAuction m = + input.readMessage( + com.google.ads.admanager.v1.PrivateAuction.parser(), extensionRegistry); + if (privateAuctionsBuilder_ == null) { + ensurePrivateAuctionsIsMutable(); + privateAuctions_.add(m); + } else { + privateAuctionsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + totalSize_ = input.readInt32(); + 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 privateAuctions_ = + java.util.Collections.emptyList(); + + private void ensurePrivateAuctionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + privateAuctions_ = + new java.util.ArrayList(privateAuctions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.PrivateAuction, + com.google.ads.admanager.v1.PrivateAuction.Builder, + com.google.ads.admanager.v1.PrivateAuctionOrBuilder> + privateAuctionsBuilder_; + + /** + * + * + *
+     * The `PrivateAuction` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuction private_auctions = 1; + */ + public java.util.List getPrivateAuctionsList() { + if (privateAuctionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(privateAuctions_); + } else { + return privateAuctionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The `PrivateAuction` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuction private_auctions = 1; + */ + public int getPrivateAuctionsCount() { + if (privateAuctionsBuilder_ == null) { + return privateAuctions_.size(); + } else { + return privateAuctionsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The `PrivateAuction` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuction private_auctions = 1; + */ + public com.google.ads.admanager.v1.PrivateAuction getPrivateAuctions(int index) { + if (privateAuctionsBuilder_ == null) { + return privateAuctions_.get(index); + } else { + return privateAuctionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The `PrivateAuction` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuction private_auctions = 1; + */ + public Builder setPrivateAuctions(int index, com.google.ads.admanager.v1.PrivateAuction value) { + if (privateAuctionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrivateAuctionsIsMutable(); + privateAuctions_.set(index, value); + onChanged(); + } else { + privateAuctionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The `PrivateAuction` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuction private_auctions = 1; + */ + public Builder setPrivateAuctions( + int index, com.google.ads.admanager.v1.PrivateAuction.Builder builderForValue) { + if (privateAuctionsBuilder_ == null) { + ensurePrivateAuctionsIsMutable(); + privateAuctions_.set(index, builderForValue.build()); + onChanged(); + } else { + privateAuctionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The `PrivateAuction` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuction private_auctions = 1; + */ + public Builder addPrivateAuctions(com.google.ads.admanager.v1.PrivateAuction value) { + if (privateAuctionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrivateAuctionsIsMutable(); + privateAuctions_.add(value); + onChanged(); + } else { + privateAuctionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The `PrivateAuction` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuction private_auctions = 1; + */ + public Builder addPrivateAuctions(int index, com.google.ads.admanager.v1.PrivateAuction value) { + if (privateAuctionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrivateAuctionsIsMutable(); + privateAuctions_.add(index, value); + onChanged(); + } else { + privateAuctionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The `PrivateAuction` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuction private_auctions = 1; + */ + public Builder addPrivateAuctions( + com.google.ads.admanager.v1.PrivateAuction.Builder builderForValue) { + if (privateAuctionsBuilder_ == null) { + ensurePrivateAuctionsIsMutable(); + privateAuctions_.add(builderForValue.build()); + onChanged(); + } else { + privateAuctionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The `PrivateAuction` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuction private_auctions = 1; + */ + public Builder addPrivateAuctions( + int index, com.google.ads.admanager.v1.PrivateAuction.Builder builderForValue) { + if (privateAuctionsBuilder_ == null) { + ensurePrivateAuctionsIsMutable(); + privateAuctions_.add(index, builderForValue.build()); + onChanged(); + } else { + privateAuctionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The `PrivateAuction` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuction private_auctions = 1; + */ + public Builder addAllPrivateAuctions( + java.lang.Iterable values) { + if (privateAuctionsBuilder_ == null) { + ensurePrivateAuctionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, privateAuctions_); + onChanged(); + } else { + privateAuctionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The `PrivateAuction` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuction private_auctions = 1; + */ + public Builder clearPrivateAuctions() { + if (privateAuctionsBuilder_ == null) { + privateAuctions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + privateAuctionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The `PrivateAuction` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuction private_auctions = 1; + */ + public Builder removePrivateAuctions(int index) { + if (privateAuctionsBuilder_ == null) { + ensurePrivateAuctionsIsMutable(); + privateAuctions_.remove(index); + onChanged(); + } else { + privateAuctionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The `PrivateAuction` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuction private_auctions = 1; + */ + public com.google.ads.admanager.v1.PrivateAuction.Builder getPrivateAuctionsBuilder(int index) { + return getPrivateAuctionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The `PrivateAuction` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuction private_auctions = 1; + */ + public com.google.ads.admanager.v1.PrivateAuctionOrBuilder getPrivateAuctionsOrBuilder( + int index) { + if (privateAuctionsBuilder_ == null) { + return privateAuctions_.get(index); + } else { + return privateAuctionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The `PrivateAuction` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuction private_auctions = 1; + */ + public java.util.List + getPrivateAuctionsOrBuilderList() { + if (privateAuctionsBuilder_ != null) { + return privateAuctionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(privateAuctions_); + } + } + + /** + * + * + *
+     * The `PrivateAuction` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuction private_auctions = 1; + */ + public com.google.ads.admanager.v1.PrivateAuction.Builder addPrivateAuctionsBuilder() { + return getPrivateAuctionsFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.PrivateAuction.getDefaultInstance()); + } + + /** + * + * + *
+     * The `PrivateAuction` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuction private_auctions = 1; + */ + public com.google.ads.admanager.v1.PrivateAuction.Builder addPrivateAuctionsBuilder(int index) { + return getPrivateAuctionsFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.PrivateAuction.getDefaultInstance()); + } + + /** + * + * + *
+     * The `PrivateAuction` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuction private_auctions = 1; + */ + public java.util.List + getPrivateAuctionsBuilderList() { + return getPrivateAuctionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.PrivateAuction, + com.google.ads.admanager.v1.PrivateAuction.Builder, + com.google.ads.admanager.v1.PrivateAuctionOrBuilder> + getPrivateAuctionsFieldBuilder() { + if (privateAuctionsBuilder_ == null) { + privateAuctionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.PrivateAuction, + com.google.ads.admanager.v1.PrivateAuction.Builder, + com.google.ads.admanager.v1.PrivateAuctionOrBuilder>( + privateAuctions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + privateAuctions_ = null; + } + return privateAuctionsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int totalSize_; + + /** + * + * + *
+     * Total number of `PrivateAuction` objects.
+     * If a filter was included in the request, this reflects the total number
+     * after the filtering is applied.
+     *
+     * `total_size` will not be calculated in the response unless it has been
+     * included in a response field mask. The response field mask can be provided
+     * to the method by using the URL parameter `$fields` or `fields`, or by using
+     * the HTTP/gRPC header `X-Goog-FieldMask`.
+     *
+     * For more information, see
+     * https://developers.google.com/ad-manager/api/beta/field-masks
+     * 
+ * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + /** + * + * + *
+     * Total number of `PrivateAuction` objects.
+     * If a filter was included in the request, this reflects the total number
+     * after the filtering is applied.
+     *
+     * `total_size` will not be calculated in the response unless it has been
+     * included in a response field mask. The response field mask can be provided
+     * to the method by using the URL parameter `$fields` or `fields`, or by using
+     * the HTTP/gRPC header `X-Goog-FieldMask`.
+     *
+     * For more information, see
+     * https://developers.google.com/ad-manager/api/beta/field-masks
+     * 
+ * + * int32 total_size = 3; + * + * @param value The totalSize to set. + * @return This builder for chaining. + */ + public Builder setTotalSize(int value) { + + totalSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Total number of `PrivateAuction` objects.
+     * If a filter was included in the request, this reflects the total number
+     * after the filtering is applied.
+     *
+     * `total_size` will not be calculated in the response unless it has been
+     * included in a response field mask. The response field mask can be provided
+     * to the method by using the URL parameter `$fields` or `fields`, or by using
+     * the HTTP/gRPC header `X-Goog-FieldMask`.
+     *
+     * For more information, see
+     * https://developers.google.com/ad-manager/api/beta/field-masks
+     * 
+ * + * int32 total_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearTotalSize() { + bitField0_ = (bitField0_ & ~0x00000004); + totalSize_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListPrivateAuctionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListPrivateAuctionsResponse) + private static final com.google.ads.admanager.v1.ListPrivateAuctionsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListPrivateAuctionsResponse(); + } + + public static com.google.ads.admanager.v1.ListPrivateAuctionsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPrivateAuctionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.ListPrivateAuctionsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionsResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionsResponseOrBuilder.java new file mode 100644 index 000000000000..996c1f5a939b --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListPrivateAuctionsResponseOrBuilder.java @@ -0,0 +1,133 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/private_auction_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListPrivateAuctionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListPrivateAuctionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The `PrivateAuction` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuction private_auctions = 1; + */ + java.util.List getPrivateAuctionsList(); + + /** + * + * + *
+   * The `PrivateAuction` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuction private_auctions = 1; + */ + com.google.ads.admanager.v1.PrivateAuction getPrivateAuctions(int index); + + /** + * + * + *
+   * The `PrivateAuction` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuction private_auctions = 1; + */ + int getPrivateAuctionsCount(); + + /** + * + * + *
+   * The `PrivateAuction` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuction private_auctions = 1; + */ + java.util.List + getPrivateAuctionsOrBuilderList(); + + /** + * + * + *
+   * The `PrivateAuction` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.PrivateAuction private_auctions = 1; + */ + com.google.ads.admanager.v1.PrivateAuctionOrBuilder getPrivateAuctionsOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Total number of `PrivateAuction` objects.
+   * If a filter was included in the request, this reflects the total number
+   * after the filtering is applied.
+   *
+   * `total_size` will not be calculated in the response unless it has been
+   * included in a response field mask. The response field mask can be provided
+   * to the method by using the URL parameter `$fields` or `fields`, or by using
+   * the HTTP/gRPC header `X-Goog-FieldMask`.
+   *
+   * For more information, see
+   * https://developers.google.com/ad-manager/api/beta/field-masks
+   * 
+ * + * int32 total_size = 3; + * + * @return The totalSize. + */ + int getTotalSize(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListProgrammaticBuyersRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListProgrammaticBuyersRequest.java new file mode 100644 index 000000000000..3847a1012a95 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListProgrammaticBuyersRequest.java @@ -0,0 +1,1485 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/programmatic_buyer_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Request object for `ListProgrammaticBuyers` method.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.ListProgrammaticBuyersRequest} + */ +public final class ListProgrammaticBuyersRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListProgrammaticBuyersRequest) + ListProgrammaticBuyersRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListProgrammaticBuyersRequest.newBuilder() to construct. + private ListProgrammaticBuyersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListProgrammaticBuyersRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListProgrammaticBuyersRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ProgrammaticBuyerServiceProto + .internal_static_google_ads_admanager_v1_ListProgrammaticBuyersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ProgrammaticBuyerServiceProto + .internal_static_google_ads_admanager_v1_ListProgrammaticBuyersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListProgrammaticBuyersRequest.class, + com.google.ads.admanager.v1.ListProgrammaticBuyersRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent, which owns this collection of ProgrammaticBuyers.
+   * Format: `networks/{network_code}`
+   * 
+ * + * + * 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, which owns this collection of ProgrammaticBuyers.
+   * Format: `networks/{network_code}`
+   * 
+ * + * + * 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 `ProgrammaticBuyers` to return. The service
+   * may return fewer than this value. If unspecified, at most 50
+   * `ProgrammaticBuyers` 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 `ListProgrammaticBuyers`
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListProgrammaticBuyers`
+   * 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 `ListProgrammaticBuyers`
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListProgrammaticBuyers`
+   * 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; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Optional. Expression to filter the response.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters
+   * 
+ * + * string filter = 4 [(.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. Expression to filter the response.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters
+   * 
+ * + * string filter = 4 [(.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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Optional. Expression to specify sorting order.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters#order
+   * 
+ * + * 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. Expression to specify sorting order.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters#order
+   * 
+ * + * 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 SKIP_FIELD_NUMBER = 6; + private int skip_ = 0; + + /** + * + * + *
+   * Optional. Number of individual resources to skip while paginating.
+   * 
+ * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + if (skip_ != 0) { + output.writeInt32(6, skip_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + if (skip_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, skip_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.admanager.v1.ListProgrammaticBuyersRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListProgrammaticBuyersRequest other = + (com.google.ads.admanager.v1.ListProgrammaticBuyersRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (getSkip() != other.getSkip()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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 = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + SKIP_FIELD_NUMBER; + hash = (53 * hash) + getSkip(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListProgrammaticBuyersRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListProgrammaticBuyersRequest 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.admanager.v1.ListProgrammaticBuyersRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListProgrammaticBuyersRequest parseFrom( + 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.admanager.v1.ListProgrammaticBuyersRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListProgrammaticBuyersRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListProgrammaticBuyersRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListProgrammaticBuyersRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListProgrammaticBuyersRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListProgrammaticBuyersRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListProgrammaticBuyersRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListProgrammaticBuyersRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.ListProgrammaticBuyersRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request object for `ListProgrammaticBuyers` method.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.ListProgrammaticBuyersRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListProgrammaticBuyersRequest) + com.google.ads.admanager.v1.ListProgrammaticBuyersRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ProgrammaticBuyerServiceProto + .internal_static_google_ads_admanager_v1_ListProgrammaticBuyersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ProgrammaticBuyerServiceProto + .internal_static_google_ads_admanager_v1_ListProgrammaticBuyersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListProgrammaticBuyersRequest.class, + com.google.ads.admanager.v1.ListProgrammaticBuyersRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListProgrammaticBuyersRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + skip_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.ProgrammaticBuyerServiceProto + .internal_static_google_ads_admanager_v1_ListProgrammaticBuyersRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListProgrammaticBuyersRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListProgrammaticBuyersRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListProgrammaticBuyersRequest build() { + com.google.ads.admanager.v1.ListProgrammaticBuyersRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListProgrammaticBuyersRequest buildPartial() { + com.google.ads.admanager.v1.ListProgrammaticBuyersRequest result = + new com.google.ads.admanager.v1.ListProgrammaticBuyersRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.ListProgrammaticBuyersRequest 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_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.skip_ = skip_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListProgrammaticBuyersRequest) { + return mergeFrom((com.google.ads.admanager.v1.ListProgrammaticBuyersRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListProgrammaticBuyersRequest other) { + if (other == com.google.ads.admanager.v1.ListProgrammaticBuyersRequest.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(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getSkip() != 0) { + setSkip(other.getSkip()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + skip_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent, which owns this collection of ProgrammaticBuyers.
+     * Format: `networks/{network_code}`
+     * 
+ * + * + * 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, which owns this collection of ProgrammaticBuyers.
+     * Format: `networks/{network_code}`
+     * 
+ * + * + * 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, which owns this collection of ProgrammaticBuyers.
+     * Format: `networks/{network_code}`
+     * 
+ * + * + * 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, which owns this collection of ProgrammaticBuyers.
+     * Format: `networks/{network_code}`
+     * 
+ * + * + * 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, which owns this collection of ProgrammaticBuyers.
+     * Format: `networks/{network_code}`
+     * 
+ * + * + * 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 `ProgrammaticBuyers` to return. The service
+     * may return fewer than this value. If unspecified, at most 50
+     * `ProgrammaticBuyers` 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 `ProgrammaticBuyers` to return. The service
+     * may return fewer than this value. If unspecified, at most 50
+     * `ProgrammaticBuyers` 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 `ProgrammaticBuyers` to return. The service
+     * may return fewer than this value. If unspecified, at most 50
+     * `ProgrammaticBuyers` 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 `ListProgrammaticBuyers`
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListProgrammaticBuyers`
+     * 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 `ListProgrammaticBuyers`
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListProgrammaticBuyers`
+     * 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 `ListProgrammaticBuyers`
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListProgrammaticBuyers`
+     * 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 `ListProgrammaticBuyers`
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListProgrammaticBuyers`
+     * 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 `ListProgrammaticBuyers`
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListProgrammaticBuyers`
+     * 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; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Optional. Expression to filter the response.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters
+     * 
+ * + * string filter = 4 [(.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. Expression to filter the response.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters
+     * 
+ * + * string filter = 4 [(.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. Expression to filter the response.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters
+     * 
+ * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Expression to filter the response.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Expression to filter the response.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters
+     * 
+ * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Optional. Expression to specify sorting order.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters#order
+     * 
+ * + * 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. Expression to specify sorting order.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters#order
+     * 
+ * + * 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. Expression to specify sorting order.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters#order
+     * 
+ * + * 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. Expression to specify sorting order.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters#order
+     * 
+ * + * 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. Expression to specify sorting order.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters#order
+     * 
+ * + * 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 skip_; + + /** + * + * + *
+     * Optional. Number of individual resources to skip while paginating.
+     * 
+ * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + /** + * + * + *
+     * Optional. Number of individual resources to skip while paginating.
+     * 
+ * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The skip to set. + * @return This builder for chaining. + */ + public Builder setSkip(int value) { + + skip_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Number of individual resources to skip while paginating.
+     * 
+ * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSkip() { + bitField0_ = (bitField0_ & ~0x00000020); + skip_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListProgrammaticBuyersRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListProgrammaticBuyersRequest) + private static final com.google.ads.admanager.v1.ListProgrammaticBuyersRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListProgrammaticBuyersRequest(); + } + + public static com.google.ads.admanager.v1.ListProgrammaticBuyersRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProgrammaticBuyersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.ListProgrammaticBuyersRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListProgrammaticBuyersRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListProgrammaticBuyersRequestOrBuilder.java new file mode 100644 index 000000000000..453e5acc461c --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListProgrammaticBuyersRequestOrBuilder.java @@ -0,0 +1,181 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/programmatic_buyer_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListProgrammaticBuyersRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListProgrammaticBuyersRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent, which owns this collection of ProgrammaticBuyers.
+   * Format: `networks/{network_code}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent, which owns this collection of ProgrammaticBuyers.
+   * Format: `networks/{network_code}`
+   * 
+ * + * + * 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 `ProgrammaticBuyers` to return. The service
+   * may return fewer than this value. If unspecified, at most 50
+   * `ProgrammaticBuyers` 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 `ListProgrammaticBuyers`
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListProgrammaticBuyers`
+   * 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 `ListProgrammaticBuyers`
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListProgrammaticBuyers`
+   * 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(); + + /** + * + * + *
+   * Optional. Expression to filter the response.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. Expression to filter the response.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. Expression to specify sorting order.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters#order
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Optional. Expression to specify sorting order.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters#order
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
+   * Optional. Number of individual resources to skip while paginating.
+   * 
+ * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + int getSkip(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListProgrammaticBuyersResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListProgrammaticBuyersResponse.java new file mode 100644 index 000000000000..091a1865d4e3 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListProgrammaticBuyersResponse.java @@ -0,0 +1,1311 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/programmatic_buyer_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Response object for `ListProgrammaticBuyersRequest` containing matching
+ * `ProgrammaticBuyer` objects.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.ListProgrammaticBuyersResponse} + */ +public final class ListProgrammaticBuyersResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListProgrammaticBuyersResponse) + ListProgrammaticBuyersResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListProgrammaticBuyersResponse.newBuilder() to construct. + private ListProgrammaticBuyersResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListProgrammaticBuyersResponse() { + programmaticBuyers_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListProgrammaticBuyersResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ProgrammaticBuyerServiceProto + .internal_static_google_ads_admanager_v1_ListProgrammaticBuyersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ProgrammaticBuyerServiceProto + .internal_static_google_ads_admanager_v1_ListProgrammaticBuyersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListProgrammaticBuyersResponse.class, + com.google.ads.admanager.v1.ListProgrammaticBuyersResponse.Builder.class); + } + + public static final int PROGRAMMATIC_BUYERS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List programmaticBuyers_; + + /** + * + * + *
+   * The `ProgrammaticBuyer` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.ProgrammaticBuyer programmatic_buyers = 1; + */ + @java.lang.Override + public java.util.List getProgrammaticBuyersList() { + return programmaticBuyers_; + } + + /** + * + * + *
+   * The `ProgrammaticBuyer` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.ProgrammaticBuyer programmatic_buyers = 1; + */ + @java.lang.Override + public java.util.List + getProgrammaticBuyersOrBuilderList() { + return programmaticBuyers_; + } + + /** + * + * + *
+   * The `ProgrammaticBuyer` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.ProgrammaticBuyer programmatic_buyers = 1; + */ + @java.lang.Override + public int getProgrammaticBuyersCount() { + return programmaticBuyers_.size(); + } + + /** + * + * + *
+   * The `ProgrammaticBuyer` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.ProgrammaticBuyer programmatic_buyers = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.ProgrammaticBuyer getProgrammaticBuyers(int index) { + return programmaticBuyers_.get(index); + } + + /** + * + * + *
+   * The `ProgrammaticBuyer` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.ProgrammaticBuyer programmatic_buyers = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.ProgrammaticBuyerOrBuilder getProgrammaticBuyersOrBuilder( + int index) { + return programmaticBuyers_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOTAL_SIZE_FIELD_NUMBER = 3; + private int totalSize_ = 0; + + /** + * + * + *
+   * Total number of `ProgrammaticBuyer` objects.
+   * If a filter was included in the request, this reflects the total number
+   * after the filtering is applied.
+   *
+   * `total_size` will not be calculated in the response unless it has been
+   * included in a response field mask. The response field mask can be provided
+   * to the method by using the URL parameter `$fields` or `fields`, or by using
+   * the HTTP/gRPC header `X-Goog-FieldMask`.
+   *
+   * For more information, see
+   * https://developers.google.com/ad-manager/api/beta/field-masks
+   * 
+ * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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 < programmaticBuyers_.size(); i++) { + output.writeMessage(1, programmaticBuyers_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + if (totalSize_ != 0) { + output.writeInt32(3, totalSize_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < programmaticBuyers_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, programmaticBuyers_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + if (totalSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSize_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.admanager.v1.ListProgrammaticBuyersResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListProgrammaticBuyersResponse other = + (com.google.ads.admanager.v1.ListProgrammaticBuyersResponse) obj; + + if (!getProgrammaticBuyersList().equals(other.getProgrammaticBuyersList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getProgrammaticBuyersCount() > 0) { + hash = (37 * hash) + PROGRAMMATIC_BUYERS_FIELD_NUMBER; + hash = (53 * hash) + getProgrammaticBuyersList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (37 * hash) + TOTAL_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getTotalSize(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListProgrammaticBuyersResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListProgrammaticBuyersResponse 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.admanager.v1.ListProgrammaticBuyersResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListProgrammaticBuyersResponse parseFrom( + 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.admanager.v1.ListProgrammaticBuyersResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListProgrammaticBuyersResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListProgrammaticBuyersResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListProgrammaticBuyersResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListProgrammaticBuyersResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListProgrammaticBuyersResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListProgrammaticBuyersResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListProgrammaticBuyersResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.ListProgrammaticBuyersResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response object for `ListProgrammaticBuyersRequest` containing matching
+   * `ProgrammaticBuyer` objects.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.ListProgrammaticBuyersResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListProgrammaticBuyersResponse) + com.google.ads.admanager.v1.ListProgrammaticBuyersResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ProgrammaticBuyerServiceProto + .internal_static_google_ads_admanager_v1_ListProgrammaticBuyersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ProgrammaticBuyerServiceProto + .internal_static_google_ads_admanager_v1_ListProgrammaticBuyersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListProgrammaticBuyersResponse.class, + com.google.ads.admanager.v1.ListProgrammaticBuyersResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListProgrammaticBuyersResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (programmaticBuyersBuilder_ == null) { + programmaticBuyers_ = java.util.Collections.emptyList(); + } else { + programmaticBuyers_ = null; + programmaticBuyersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + totalSize_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.ProgrammaticBuyerServiceProto + .internal_static_google_ads_admanager_v1_ListProgrammaticBuyersResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListProgrammaticBuyersResponse getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListProgrammaticBuyersResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListProgrammaticBuyersResponse build() { + com.google.ads.admanager.v1.ListProgrammaticBuyersResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListProgrammaticBuyersResponse buildPartial() { + com.google.ads.admanager.v1.ListProgrammaticBuyersResponse result = + new com.google.ads.admanager.v1.ListProgrammaticBuyersResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.ListProgrammaticBuyersResponse result) { + if (programmaticBuyersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + programmaticBuyers_ = java.util.Collections.unmodifiableList(programmaticBuyers_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.programmaticBuyers_ = programmaticBuyers_; + } else { + result.programmaticBuyers_ = programmaticBuyersBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.ListProgrammaticBuyersResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalSize_ = totalSize_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListProgrammaticBuyersResponse) { + return mergeFrom((com.google.ads.admanager.v1.ListProgrammaticBuyersResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListProgrammaticBuyersResponse other) { + if (other == com.google.ads.admanager.v1.ListProgrammaticBuyersResponse.getDefaultInstance()) + return this; + if (programmaticBuyersBuilder_ == null) { + if (!other.programmaticBuyers_.isEmpty()) { + if (programmaticBuyers_.isEmpty()) { + programmaticBuyers_ = other.programmaticBuyers_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureProgrammaticBuyersIsMutable(); + programmaticBuyers_.addAll(other.programmaticBuyers_); + } + onChanged(); + } + } else { + if (!other.programmaticBuyers_.isEmpty()) { + if (programmaticBuyersBuilder_.isEmpty()) { + programmaticBuyersBuilder_.dispose(); + programmaticBuyersBuilder_ = null; + programmaticBuyers_ = other.programmaticBuyers_; + bitField0_ = (bitField0_ & ~0x00000001); + programmaticBuyersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getProgrammaticBuyersFieldBuilder() + : null; + } else { + programmaticBuyersBuilder_.addAllMessages(other.programmaticBuyers_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getTotalSize() != 0) { + setTotalSize(other.getTotalSize()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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.admanager.v1.ProgrammaticBuyer m = + input.readMessage( + com.google.ads.admanager.v1.ProgrammaticBuyer.parser(), extensionRegistry); + if (programmaticBuyersBuilder_ == null) { + ensureProgrammaticBuyersIsMutable(); + programmaticBuyers_.add(m); + } else { + programmaticBuyersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + totalSize_ = input.readInt32(); + 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 programmaticBuyers_ = + java.util.Collections.emptyList(); + + private void ensureProgrammaticBuyersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + programmaticBuyers_ = + new java.util.ArrayList( + programmaticBuyers_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.ProgrammaticBuyer, + com.google.ads.admanager.v1.ProgrammaticBuyer.Builder, + com.google.ads.admanager.v1.ProgrammaticBuyerOrBuilder> + programmaticBuyersBuilder_; + + /** + * + * + *
+     * The `ProgrammaticBuyer` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.ProgrammaticBuyer programmatic_buyers = 1; + */ + public java.util.List + getProgrammaticBuyersList() { + if (programmaticBuyersBuilder_ == null) { + return java.util.Collections.unmodifiableList(programmaticBuyers_); + } else { + return programmaticBuyersBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The `ProgrammaticBuyer` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.ProgrammaticBuyer programmatic_buyers = 1; + */ + public int getProgrammaticBuyersCount() { + if (programmaticBuyersBuilder_ == null) { + return programmaticBuyers_.size(); + } else { + return programmaticBuyersBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The `ProgrammaticBuyer` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.ProgrammaticBuyer programmatic_buyers = 1; + */ + public com.google.ads.admanager.v1.ProgrammaticBuyer getProgrammaticBuyers(int index) { + if (programmaticBuyersBuilder_ == null) { + return programmaticBuyers_.get(index); + } else { + return programmaticBuyersBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The `ProgrammaticBuyer` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.ProgrammaticBuyer programmatic_buyers = 1; + */ + public Builder setProgrammaticBuyers( + int index, com.google.ads.admanager.v1.ProgrammaticBuyer value) { + if (programmaticBuyersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProgrammaticBuyersIsMutable(); + programmaticBuyers_.set(index, value); + onChanged(); + } else { + programmaticBuyersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The `ProgrammaticBuyer` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.ProgrammaticBuyer programmatic_buyers = 1; + */ + public Builder setProgrammaticBuyers( + int index, com.google.ads.admanager.v1.ProgrammaticBuyer.Builder builderForValue) { + if (programmaticBuyersBuilder_ == null) { + ensureProgrammaticBuyersIsMutable(); + programmaticBuyers_.set(index, builderForValue.build()); + onChanged(); + } else { + programmaticBuyersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The `ProgrammaticBuyer` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.ProgrammaticBuyer programmatic_buyers = 1; + */ + public Builder addProgrammaticBuyers(com.google.ads.admanager.v1.ProgrammaticBuyer value) { + if (programmaticBuyersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProgrammaticBuyersIsMutable(); + programmaticBuyers_.add(value); + onChanged(); + } else { + programmaticBuyersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The `ProgrammaticBuyer` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.ProgrammaticBuyer programmatic_buyers = 1; + */ + public Builder addProgrammaticBuyers( + int index, com.google.ads.admanager.v1.ProgrammaticBuyer value) { + if (programmaticBuyersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProgrammaticBuyersIsMutable(); + programmaticBuyers_.add(index, value); + onChanged(); + } else { + programmaticBuyersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The `ProgrammaticBuyer` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.ProgrammaticBuyer programmatic_buyers = 1; + */ + public Builder addProgrammaticBuyers( + com.google.ads.admanager.v1.ProgrammaticBuyer.Builder builderForValue) { + if (programmaticBuyersBuilder_ == null) { + ensureProgrammaticBuyersIsMutable(); + programmaticBuyers_.add(builderForValue.build()); + onChanged(); + } else { + programmaticBuyersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The `ProgrammaticBuyer` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.ProgrammaticBuyer programmatic_buyers = 1; + */ + public Builder addProgrammaticBuyers( + int index, com.google.ads.admanager.v1.ProgrammaticBuyer.Builder builderForValue) { + if (programmaticBuyersBuilder_ == null) { + ensureProgrammaticBuyersIsMutable(); + programmaticBuyers_.add(index, builderForValue.build()); + onChanged(); + } else { + programmaticBuyersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The `ProgrammaticBuyer` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.ProgrammaticBuyer programmatic_buyers = 1; + */ + public Builder addAllProgrammaticBuyers( + java.lang.Iterable values) { + if (programmaticBuyersBuilder_ == null) { + ensureProgrammaticBuyersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, programmaticBuyers_); + onChanged(); + } else { + programmaticBuyersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The `ProgrammaticBuyer` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.ProgrammaticBuyer programmatic_buyers = 1; + */ + public Builder clearProgrammaticBuyers() { + if (programmaticBuyersBuilder_ == null) { + programmaticBuyers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + programmaticBuyersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The `ProgrammaticBuyer` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.ProgrammaticBuyer programmatic_buyers = 1; + */ + public Builder removeProgrammaticBuyers(int index) { + if (programmaticBuyersBuilder_ == null) { + ensureProgrammaticBuyersIsMutable(); + programmaticBuyers_.remove(index); + onChanged(); + } else { + programmaticBuyersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The `ProgrammaticBuyer` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.ProgrammaticBuyer programmatic_buyers = 1; + */ + public com.google.ads.admanager.v1.ProgrammaticBuyer.Builder getProgrammaticBuyersBuilder( + int index) { + return getProgrammaticBuyersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The `ProgrammaticBuyer` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.ProgrammaticBuyer programmatic_buyers = 1; + */ + public com.google.ads.admanager.v1.ProgrammaticBuyerOrBuilder getProgrammaticBuyersOrBuilder( + int index) { + if (programmaticBuyersBuilder_ == null) { + return programmaticBuyers_.get(index); + } else { + return programmaticBuyersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The `ProgrammaticBuyer` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.ProgrammaticBuyer programmatic_buyers = 1; + */ + public java.util.List + getProgrammaticBuyersOrBuilderList() { + if (programmaticBuyersBuilder_ != null) { + return programmaticBuyersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(programmaticBuyers_); + } + } + + /** + * + * + *
+     * The `ProgrammaticBuyer` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.ProgrammaticBuyer programmatic_buyers = 1; + */ + public com.google.ads.admanager.v1.ProgrammaticBuyer.Builder addProgrammaticBuyersBuilder() { + return getProgrammaticBuyersFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.ProgrammaticBuyer.getDefaultInstance()); + } + + /** + * + * + *
+     * The `ProgrammaticBuyer` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.ProgrammaticBuyer programmatic_buyers = 1; + */ + public com.google.ads.admanager.v1.ProgrammaticBuyer.Builder addProgrammaticBuyersBuilder( + int index) { + return getProgrammaticBuyersFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.ProgrammaticBuyer.getDefaultInstance()); + } + + /** + * + * + *
+     * The `ProgrammaticBuyer` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.ProgrammaticBuyer programmatic_buyers = 1; + */ + public java.util.List + getProgrammaticBuyersBuilderList() { + return getProgrammaticBuyersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.ProgrammaticBuyer, + com.google.ads.admanager.v1.ProgrammaticBuyer.Builder, + com.google.ads.admanager.v1.ProgrammaticBuyerOrBuilder> + getProgrammaticBuyersFieldBuilder() { + if (programmaticBuyersBuilder_ == null) { + programmaticBuyersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.ProgrammaticBuyer, + com.google.ads.admanager.v1.ProgrammaticBuyer.Builder, + com.google.ads.admanager.v1.ProgrammaticBuyerOrBuilder>( + programmaticBuyers_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + programmaticBuyers_ = null; + } + return programmaticBuyersBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int totalSize_; + + /** + * + * + *
+     * Total number of `ProgrammaticBuyer` objects.
+     * If a filter was included in the request, this reflects the total number
+     * after the filtering is applied.
+     *
+     * `total_size` will not be calculated in the response unless it has been
+     * included in a response field mask. The response field mask can be provided
+     * to the method by using the URL parameter `$fields` or `fields`, or by using
+     * the HTTP/gRPC header `X-Goog-FieldMask`.
+     *
+     * For more information, see
+     * https://developers.google.com/ad-manager/api/beta/field-masks
+     * 
+ * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + /** + * + * + *
+     * Total number of `ProgrammaticBuyer` objects.
+     * If a filter was included in the request, this reflects the total number
+     * after the filtering is applied.
+     *
+     * `total_size` will not be calculated in the response unless it has been
+     * included in a response field mask. The response field mask can be provided
+     * to the method by using the URL parameter `$fields` or `fields`, or by using
+     * the HTTP/gRPC header `X-Goog-FieldMask`.
+     *
+     * For more information, see
+     * https://developers.google.com/ad-manager/api/beta/field-masks
+     * 
+ * + * int32 total_size = 3; + * + * @param value The totalSize to set. + * @return This builder for chaining. + */ + public Builder setTotalSize(int value) { + + totalSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Total number of `ProgrammaticBuyer` objects.
+     * If a filter was included in the request, this reflects the total number
+     * after the filtering is applied.
+     *
+     * `total_size` will not be calculated in the response unless it has been
+     * included in a response field mask. The response field mask can be provided
+     * to the method by using the URL parameter `$fields` or `fields`, or by using
+     * the HTTP/gRPC header `X-Goog-FieldMask`.
+     *
+     * For more information, see
+     * https://developers.google.com/ad-manager/api/beta/field-masks
+     * 
+ * + * int32 total_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearTotalSize() { + bitField0_ = (bitField0_ & ~0x00000004); + totalSize_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListProgrammaticBuyersResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListProgrammaticBuyersResponse) + private static final com.google.ads.admanager.v1.ListProgrammaticBuyersResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListProgrammaticBuyersResponse(); + } + + public static com.google.ads.admanager.v1.ListProgrammaticBuyersResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProgrammaticBuyersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.ListProgrammaticBuyersResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListProgrammaticBuyersResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListProgrammaticBuyersResponseOrBuilder.java new file mode 100644 index 000000000000..e65f0b2674c4 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListProgrammaticBuyersResponseOrBuilder.java @@ -0,0 +1,133 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/programmatic_buyer_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListProgrammaticBuyersResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListProgrammaticBuyersResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The `ProgrammaticBuyer` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.ProgrammaticBuyer programmatic_buyers = 1; + */ + java.util.List getProgrammaticBuyersList(); + + /** + * + * + *
+   * The `ProgrammaticBuyer` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.ProgrammaticBuyer programmatic_buyers = 1; + */ + com.google.ads.admanager.v1.ProgrammaticBuyer getProgrammaticBuyers(int index); + + /** + * + * + *
+   * The `ProgrammaticBuyer` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.ProgrammaticBuyer programmatic_buyers = 1; + */ + int getProgrammaticBuyersCount(); + + /** + * + * + *
+   * The `ProgrammaticBuyer` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.ProgrammaticBuyer programmatic_buyers = 1; + */ + java.util.List + getProgrammaticBuyersOrBuilderList(); + + /** + * + * + *
+   * The `ProgrammaticBuyer` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.ProgrammaticBuyer programmatic_buyers = 1; + */ + com.google.ads.admanager.v1.ProgrammaticBuyerOrBuilder getProgrammaticBuyersOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Total number of `ProgrammaticBuyer` objects.
+   * If a filter was included in the request, this reflects the total number
+   * after the filtering is applied.
+   *
+   * `total_size` will not be calculated in the response unless it has been
+   * included in a response field mask. The response field mask can be provided
+   * to the method by using the URL parameter `$fields` or `fields`, or by using
+   * the HTTP/gRPC header `X-Goog-FieldMask`.
+   *
+   * For more information, see
+   * https://developers.google.com/ad-manager/api/beta/field-masks
+   * 
+ * + * int32 total_size = 3; + * + * @return The totalSize. + */ + int getTotalSize(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LiveStreamEvent.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LiveStreamEvent.java new file mode 100644 index 000000000000..7f0c6aabec9e --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LiveStreamEvent.java @@ -0,0 +1,650 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/live_stream_event_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * A `LiveStreamEvent` encapsulates all the information necessary to enable DAI
+ * (Dynamic Ad Insertion) into a live video stream.
+ * This includes information such as the start and expected end time of the
+ * `LiveStreamEvent`, the URL of the actual content for Ad Manager to pull and
+ * insert ads into, as well as the metadata necessary to generate ad requests
+ * during the live stream.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.LiveStreamEvent} + */ +public final class LiveStreamEvent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.LiveStreamEvent) + LiveStreamEventOrBuilder { + private static final long serialVersionUID = 0L; + + // Use LiveStreamEvent.newBuilder() to construct. + private LiveStreamEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LiveStreamEvent() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LiveStreamEvent(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.LiveStreamEventMessagesProto + .internal_static_google_ads_admanager_v1_LiveStreamEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.LiveStreamEventMessagesProto + .internal_static_google_ads_admanager_v1_LiveStreamEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.LiveStreamEvent.class, + com.google.ads.admanager.v1.LiveStreamEvent.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. The resource name of the `LiveStreamEvent`.
+   * Format: `networks/{network_code}/liveStreamEvents/{live_stream_event_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 `LiveStreamEvent`.
+   * Format: `networks/{network_code}/liveStreamEvents/{live_stream_event_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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.ads.admanager.v1.LiveStreamEvent)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.LiveStreamEvent other = + (com.google.ads.admanager.v1.LiveStreamEvent) 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.ads.admanager.v1.LiveStreamEvent parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.LiveStreamEvent 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.admanager.v1.LiveStreamEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.LiveStreamEvent parseFrom( + 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.admanager.v1.LiveStreamEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.LiveStreamEvent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.LiveStreamEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.LiveStreamEvent parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.LiveStreamEvent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.LiveStreamEvent parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.LiveStreamEvent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.LiveStreamEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.LiveStreamEvent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A `LiveStreamEvent` encapsulates all the information necessary to enable DAI
+   * (Dynamic Ad Insertion) into a live video stream.
+   * This includes information such as the start and expected end time of the
+   * `LiveStreamEvent`, the URL of the actual content for Ad Manager to pull and
+   * insert ads into, as well as the metadata necessary to generate ad requests
+   * during the live stream.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.LiveStreamEvent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.LiveStreamEvent) + com.google.ads.admanager.v1.LiveStreamEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.LiveStreamEventMessagesProto + .internal_static_google_ads_admanager_v1_LiveStreamEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.LiveStreamEventMessagesProto + .internal_static_google_ads_admanager_v1_LiveStreamEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.LiveStreamEvent.class, + com.google.ads.admanager.v1.LiveStreamEvent.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.LiveStreamEvent.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.LiveStreamEventMessagesProto + .internal_static_google_ads_admanager_v1_LiveStreamEvent_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.LiveStreamEvent getDefaultInstanceForType() { + return com.google.ads.admanager.v1.LiveStreamEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.LiveStreamEvent build() { + com.google.ads.admanager.v1.LiveStreamEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.LiveStreamEvent buildPartial() { + com.google.ads.admanager.v1.LiveStreamEvent result = + new com.google.ads.admanager.v1.LiveStreamEvent(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.LiveStreamEvent result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.LiveStreamEvent) { + return mergeFrom((com.google.ads.admanager.v1.LiveStreamEvent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.LiveStreamEvent other) { + if (other == com.google.ads.admanager.v1.LiveStreamEvent.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_ = ""; + + /** + * + * + *
+     * Identifier. The resource name of the `LiveStreamEvent`.
+     * Format: `networks/{network_code}/liveStreamEvents/{live_stream_event_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 `LiveStreamEvent`.
+     * Format: `networks/{network_code}/liveStreamEvents/{live_stream_event_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 `LiveStreamEvent`.
+     * Format: `networks/{network_code}/liveStreamEvents/{live_stream_event_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 `LiveStreamEvent`.
+     * Format: `networks/{network_code}/liveStreamEvents/{live_stream_event_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 `LiveStreamEvent`.
+     * Format: `networks/{network_code}/liveStreamEvents/{live_stream_event_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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.LiveStreamEvent) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.LiveStreamEvent) + private static final com.google.ads.admanager.v1.LiveStreamEvent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.LiveStreamEvent(); + } + + public static com.google.ads.admanager.v1.LiveStreamEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LiveStreamEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.LiveStreamEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LiveStreamEventMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LiveStreamEventMessagesProto.java new file mode 100644 index 000000000000..d6360781cdbd --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LiveStreamEventMessagesProto.java @@ -0,0 +1,85 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/live_stream_event_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class LiveStreamEventMessagesProto { + private LiveStreamEventMessagesProto() {} + + 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_ads_admanager_v1_LiveStreamEvent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_LiveStreamEvent_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n8google/ads/admanager/v1/live_stream_ev" + + "ent_messages.proto\022\027google.ads.admanager" + + ".v1\032\037google/api/field_behavior.proto\032\031go" + + "ogle/api/resource.proto\"\266\001\n\017LiveStreamEv" + + "ent\022\021\n\004name\030\001 \001(\tB\003\340A\010:\217\001\352A\213\001\n(admanager" + + ".googleapis.com/LiveStreamEvent\022 fieldValuesMap; + private final String networkCode; + private final String liveStreamEvent; + + @Deprecated + protected LiveStreamEventName() { + networkCode = null; + liveStreamEvent = null; + } + + private LiveStreamEventName(Builder builder) { + networkCode = Preconditions.checkNotNull(builder.getNetworkCode()); + liveStreamEvent = Preconditions.checkNotNull(builder.getLiveStreamEvent()); + } + + public String getNetworkCode() { + return networkCode; + } + + public String getLiveStreamEvent() { + return liveStreamEvent; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static LiveStreamEventName of(String networkCode, String liveStreamEvent) { + return newBuilder().setNetworkCode(networkCode).setLiveStreamEvent(liveStreamEvent).build(); + } + + public static String format(String networkCode, String liveStreamEvent) { + return newBuilder() + .setNetworkCode(networkCode) + .setLiveStreamEvent(liveStreamEvent) + .build() + .toString(); + } + + public static LiveStreamEventName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + NETWORK_CODE_LIVE_STREAM_EVENT.validatedMatch( + formattedString, "LiveStreamEventName.parse: formattedString not in valid format"); + return of(matchMap.get("network_code"), matchMap.get("live_stream_event")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (LiveStreamEventName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return NETWORK_CODE_LIVE_STREAM_EVENT.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (networkCode != null) { + fieldMapBuilder.put("network_code", networkCode); + } + if (liveStreamEvent != null) { + fieldMapBuilder.put("live_stream_event", liveStreamEvent); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return NETWORK_CODE_LIVE_STREAM_EVENT.instantiate( + "network_code", networkCode, "live_stream_event", liveStreamEvent); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + LiveStreamEventName that = ((LiveStreamEventName) o); + return Objects.equals(this.networkCode, that.networkCode) + && Objects.equals(this.liveStreamEvent, that.liveStreamEvent); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(networkCode); + h *= 1000003; + h ^= Objects.hashCode(liveStreamEvent); + return h; + } + + /** Builder for networks/{network_code}/liveStreamEvents/{live_stream_event}. */ + public static class Builder { + private String networkCode; + private String liveStreamEvent; + + protected Builder() {} + + public String getNetworkCode() { + return networkCode; + } + + public String getLiveStreamEvent() { + return liveStreamEvent; + } + + public Builder setNetworkCode(String networkCode) { + this.networkCode = networkCode; + return this; + } + + public Builder setLiveStreamEvent(String liveStreamEvent) { + this.liveStreamEvent = liveStreamEvent; + return this; + } + + private Builder(LiveStreamEventName liveStreamEventName) { + this.networkCode = liveStreamEventName.networkCode; + this.liveStreamEvent = liveStreamEventName.liveStreamEvent; + } + + public LiveStreamEventName build() { + return new LiveStreamEventName(this); + } + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LiveStreamEventOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LiveStreamEventOrBuilder.java new file mode 100644 index 000000000000..bd2cbb0164db --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LiveStreamEventOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/live_stream_event_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface LiveStreamEventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.LiveStreamEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. The resource name of the `LiveStreamEvent`.
+   * Format: `networks/{network_code}/liveStreamEvents/{live_stream_event_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. The resource name of the `LiveStreamEvent`.
+   * Format: `networks/{network_code}/liveStreamEvents/{live_stream_event_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Network.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Network.java index f30cd2e10648..3d19440ac7e1 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Network.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Network.java @@ -480,7 +480,7 @@ public com.google.protobuf.ByteString getSecondaryCurrencyCodesBytes(int index) *
    * Output only. Top most [Ad Unit](google.ads.admanager.v1.AdUnit) to which
    * descendant Ad Units can be added.
-   * Format: networks/{network_code}/adUnit/{ad_unit_id}
+   * Format: networks/{network_code}/adUnits/{ad_unit}
    * 
* * @@ -508,7 +508,7 @@ public java.lang.String getEffectiveRootAdUnit() { *
    * Output only. Top most [Ad Unit](google.ads.admanager.v1.AdUnit) to which
    * descendant Ad Units can be added.
-   * Format: networks/{network_code}/adUnit/{ad_unit_id}
+   * Format: networks/{network_code}/adUnits/{ad_unit}
    * 
* * @@ -2021,7 +2021,7 @@ public Builder addSecondaryCurrencyCodesBytes(com.google.protobuf.ByteString val *
      * Output only. Top most [Ad Unit](google.ads.admanager.v1.AdUnit) to which
      * descendant Ad Units can be added.
-     * Format: networks/{network_code}/adUnit/{ad_unit_id}
+     * Format: networks/{network_code}/adUnits/{ad_unit}
      * 
* * @@ -2048,7 +2048,7 @@ public java.lang.String getEffectiveRootAdUnit() { *
      * Output only. Top most [Ad Unit](google.ads.admanager.v1.AdUnit) to which
      * descendant Ad Units can be added.
-     * Format: networks/{network_code}/adUnit/{ad_unit_id}
+     * Format: networks/{network_code}/adUnits/{ad_unit}
      * 
* * @@ -2075,7 +2075,7 @@ public com.google.protobuf.ByteString getEffectiveRootAdUnitBytes() { *
      * Output only. Top most [Ad Unit](google.ads.admanager.v1.AdUnit) to which
      * descendant Ad Units can be added.
-     * Format: networks/{network_code}/adUnit/{ad_unit_id}
+     * Format: networks/{network_code}/adUnits/{ad_unit}
      * 
* * @@ -2101,7 +2101,7 @@ public Builder setEffectiveRootAdUnit(java.lang.String value) { *
      * Output only. Top most [Ad Unit](google.ads.admanager.v1.AdUnit) to which
      * descendant Ad Units can be added.
-     * Format: networks/{network_code}/adUnit/{ad_unit_id}
+     * Format: networks/{network_code}/adUnits/{ad_unit}
      * 
* * @@ -2123,7 +2123,7 @@ public Builder clearEffectiveRootAdUnit() { *
      * Output only. Top most [Ad Unit](google.ads.admanager.v1.AdUnit) to which
      * descendant Ad Units can be added.
-     * Format: networks/{network_code}/adUnit/{ad_unit_id}
+     * Format: networks/{network_code}/adUnits/{ad_unit}
      * 
* * diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/NetworkOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/NetworkOrBuilder.java index 2de641a60208..0117e79a25a9 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/NetworkOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/NetworkOrBuilder.java @@ -252,7 +252,7 @@ public interface NetworkOrBuilder *
    * Output only. Top most [Ad Unit](google.ads.admanager.v1.AdUnit) to which
    * descendant Ad Units can be added.
-   * Format: networks/{network_code}/adUnit/{ad_unit_id}
+   * Format: networks/{network_code}/adUnits/{ad_unit}
    * 
* * @@ -269,7 +269,7 @@ public interface NetworkOrBuilder *
    * Output only. Top most [Ad Unit](google.ads.admanager.v1.AdUnit) to which
    * descendant Ad Units can be added.
-   * Format: networks/{network_code}/adUnit/{ad_unit_id}
+   * Format: networks/{network_code}/adUnits/{ad_unit}
    * 
* * diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/NetworkServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/NetworkServiceProto.java index 2dba1c505674..53c120014d4e 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/NetworkServiceProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/NetworkServiceProto.java @@ -59,20 +59,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "admanager.googleapis.com/Network\"\025\n\023List" + "NetworksRequest\"J\n\024ListNetworksResponse\022" + "2\n\010networks\030\001 \003(\0132 .google.ads.admanager" - + ".v1.Network2\264\002\n\016NetworkService\022\200\001\n\nGetNe" + + ".v1.Network2\340\002\n\016NetworkService\022\200\001\n\nGetNe" + "twork\022*.google.ads.admanager.v1.GetNetwo" + "rkRequest\032 .google.ads.admanager.v1.Netw" + "ork\"$\332A\004name\202\323\344\223\002\027\022\025/v1/{name=networks/*" + "}\022\201\001\n\014ListNetworks\022,.google.ads.admanage" + "r.v1.ListNetworksRequest\032-.google.ads.ad" + "manager.v1.ListNetworksResponse\"\024\202\323\344\223\002\016\022" - + "\014/v1/networks\032\033\312A\030admanager.googleapis.c" - + "omB\307\001\n\033com.google.ads.admanager.v1B\023Netw" - + "orkServiceProtoP\001Z@google.golang.org/gen" - + "proto/googleapis/ads/admanager/v1;admana" - + "ger\252\002\027Google.Ads.AdManager.V1\312\002\027Google\\A" - + "ds\\AdManager\\V1\352\002\032Google::Ads::AdManager" - + "::V1b\006proto3" + + "\014/v1/networks\032G\312A\030admanager.googleapis.c" + + "om\322A)https://www.googleapis.com/auth/adm" + + "anagerB\307\001\n\033com.google.ads.admanager.v1B\023" + + "NetworkServiceProtoP\001Z@google.golang.org" + + "/genproto/googleapis/ads/admanager/v1;ad" + + "manager\252\002\027Google.Ads.AdManager.V1\312\002\027Goog" + + "le\\Ads\\AdManager\\V1\352\002\032Google::Ads::AdMan" + + "ager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -112,6 +113,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.AnnotationsProto.http); registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OperatingSystem.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OperatingSystem.java new file mode 100644 index 000000000000..d90325de4c08 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OperatingSystem.java @@ -0,0 +1,869 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/operating_system_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Represents a device's operating system.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.OperatingSystem} + */ +public final class OperatingSystem extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.OperatingSystem) + OperatingSystemOrBuilder { + private static final long serialVersionUID = 0L; + + // Use OperatingSystem.newBuilder() to construct. + private OperatingSystem(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private OperatingSystem() { + name_ = ""; + displayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OperatingSystem(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.OperatingSystemMessagesProto + .internal_static_google_ads_admanager_v1_OperatingSystem_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.OperatingSystemMessagesProto + .internal_static_google_ads_admanager_v1_OperatingSystem_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.OperatingSystem.class, + com.google.ads.admanager.v1.OperatingSystem.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 `OperatingSystem`.
+   * Format: `networks/{network_code}/operatingSystems/{operating_system_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 `OperatingSystem`.
+   * Format: `networks/{network_code}/operatingSystems/{operating_system_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 DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
+   * Output only. The name of the operating system.
+   * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the displayName field is set. + */ + @java.lang.Override + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. The name of the operating system.
+   * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+   * Output only. The name of the operating system.
+   * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.admanager.v1.OperatingSystem)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.OperatingSystem other = + (com.google.ads.admanager.v1.OperatingSystem) obj; + + if (!getName().equals(other.getName())) return false; + if (hasDisplayName() != other.hasDisplayName()) return false; + if (hasDisplayName()) { + if (!getDisplayName().equals(other.getDisplayName())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasDisplayName()) { + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.OperatingSystem parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.OperatingSystem 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.admanager.v1.OperatingSystem parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.OperatingSystem parseFrom( + 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.admanager.v1.OperatingSystem parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.OperatingSystem parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.OperatingSystem parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.OperatingSystem parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.OperatingSystem parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.OperatingSystem parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.OperatingSystem parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.OperatingSystem parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.OperatingSystem prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Represents a device's operating system.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.OperatingSystem} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.OperatingSystem) + com.google.ads.admanager.v1.OperatingSystemOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.OperatingSystemMessagesProto + .internal_static_google_ads_admanager_v1_OperatingSystem_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.OperatingSystemMessagesProto + .internal_static_google_ads_admanager_v1_OperatingSystem_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.OperatingSystem.class, + com.google.ads.admanager.v1.OperatingSystem.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.OperatingSystem.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.OperatingSystemMessagesProto + .internal_static_google_ads_admanager_v1_OperatingSystem_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.OperatingSystem getDefaultInstanceForType() { + return com.google.ads.admanager.v1.OperatingSystem.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.OperatingSystem build() { + com.google.ads.admanager.v1.OperatingSystem result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.OperatingSystem buildPartial() { + com.google.ads.admanager.v1.OperatingSystem result = + new com.google.ads.admanager.v1.OperatingSystem(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.OperatingSystem result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.OperatingSystem) { + return mergeFrom((com.google.ads.admanager.v1.OperatingSystem) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.OperatingSystem other) { + if (other == com.google.ads.admanager.v1.OperatingSystem.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDisplayName()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Identifier. The resource name of the `OperatingSystem`.
+     * Format: `networks/{network_code}/operatingSystems/{operating_system_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 `OperatingSystem`.
+     * Format: `networks/{network_code}/operatingSystems/{operating_system_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 `OperatingSystem`.
+     * Format: `networks/{network_code}/operatingSystems/{operating_system_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 `OperatingSystem`.
+     * Format: `networks/{network_code}/operatingSystems/{operating_system_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 `OperatingSystem`.
+     * Format: `networks/{network_code}/operatingSystems/{operating_system_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 displayName_ = ""; + + /** + * + * + *
+     * Output only. The name of the operating system.
+     * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the displayName field is set. + */ + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. The name of the operating system.
+     * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. The name of the operating system.
+     * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. The name of the operating system.
+     * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The name of the operating system.
+     * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The name of the operating system.
+     * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.OperatingSystem) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.OperatingSystem) + private static final com.google.ads.admanager.v1.OperatingSystem DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.OperatingSystem(); + } + + public static com.google.ads.admanager.v1.OperatingSystem getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperatingSystem parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.OperatingSystem getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OperatingSystemMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OperatingSystemMessagesProto.java new file mode 100644 index 000000000000..d8e14b38bd19 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OperatingSystemMessagesProto.java @@ -0,0 +1,86 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/operating_system_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class OperatingSystemMessagesProto { + private OperatingSystemMessagesProto() {} + + 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_ads_admanager_v1_OperatingSystem_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_OperatingSystem_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n7google/ads/admanager/v1/operating_syst" + + "em_messages.proto\022\027google.ads.admanager." + + "v1\032\037google/api/field_behavior.proto\032\031goo" + + "gle/api/resource.proto\"\346\001\n\017OperatingSyst" + + "em\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\036\n\014display_name\030\002 " + + "\001(\tB\003\340A\003H\000\210\001\001:\216\001\352A\212\001\n(admanager.googleap" + + "is.com/OperatingSystem\022;networks/{networ" + + "k_code}/operatingSystems/{operating_syst" + + "em}*\020operatingSystems2\017operatingSystemB\017" + + "\n\r_display_nameB\320\001\n\033com.google.ads.adman" + + "ager.v1B\034OperatingSystemMessagesProtoP\001Z" + + "@google.golang.org/genproto/googleapis/a" + + "ds/admanager/v1;admanager\252\002\027Google.Ads.A" + + "dManager.V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032" + + "Google::Ads::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_ads_admanager_v1_OperatingSystem_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_OperatingSystem_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_OperatingSystem_descriptor, + new java.lang.String[] { + "Name", "DisplayName", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OperatingSystemName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OperatingSystemName.java new file mode 100644 index 000000000000..0ee767732f4c --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OperatingSystemName.java @@ -0,0 +1,198 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class OperatingSystemName implements ResourceName { + private static final PathTemplate NETWORK_CODE_OPERATING_SYSTEM = + PathTemplate.createWithoutUrlEncoding( + "networks/{network_code}/operatingSystems/{operating_system}"); + private volatile Map fieldValuesMap; + private final String networkCode; + private final String operatingSystem; + + @Deprecated + protected OperatingSystemName() { + networkCode = null; + operatingSystem = null; + } + + private OperatingSystemName(Builder builder) { + networkCode = Preconditions.checkNotNull(builder.getNetworkCode()); + operatingSystem = Preconditions.checkNotNull(builder.getOperatingSystem()); + } + + public String getNetworkCode() { + return networkCode; + } + + public String getOperatingSystem() { + return operatingSystem; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static OperatingSystemName of(String networkCode, String operatingSystem) { + return newBuilder().setNetworkCode(networkCode).setOperatingSystem(operatingSystem).build(); + } + + public static String format(String networkCode, String operatingSystem) { + return newBuilder() + .setNetworkCode(networkCode) + .setOperatingSystem(operatingSystem) + .build() + .toString(); + } + + public static OperatingSystemName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + NETWORK_CODE_OPERATING_SYSTEM.validatedMatch( + formattedString, "OperatingSystemName.parse: formattedString not in valid format"); + return of(matchMap.get("network_code"), matchMap.get("operating_system")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (OperatingSystemName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return NETWORK_CODE_OPERATING_SYSTEM.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (networkCode != null) { + fieldMapBuilder.put("network_code", networkCode); + } + if (operatingSystem != null) { + fieldMapBuilder.put("operating_system", operatingSystem); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return NETWORK_CODE_OPERATING_SYSTEM.instantiate( + "network_code", networkCode, "operating_system", operatingSystem); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + OperatingSystemName that = ((OperatingSystemName) o); + return Objects.equals(this.networkCode, that.networkCode) + && Objects.equals(this.operatingSystem, that.operatingSystem); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(networkCode); + h *= 1000003; + h ^= Objects.hashCode(operatingSystem); + return h; + } + + /** Builder for networks/{network_code}/operatingSystems/{operating_system}. */ + public static class Builder { + private String networkCode; + private String operatingSystem; + + protected Builder() {} + + public String getNetworkCode() { + return networkCode; + } + + public String getOperatingSystem() { + return operatingSystem; + } + + public Builder setNetworkCode(String networkCode) { + this.networkCode = networkCode; + return this; + } + + public Builder setOperatingSystem(String operatingSystem) { + this.operatingSystem = operatingSystem; + return this; + } + + private Builder(OperatingSystemName operatingSystemName) { + this.networkCode = operatingSystemName.networkCode; + this.operatingSystem = operatingSystemName.operatingSystem; + } + + public OperatingSystemName build() { + return new OperatingSystemName(this); + } + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OperatingSystemOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OperatingSystemOrBuilder.java new file mode 100644 index 000000000000..2d73a251e29c --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OperatingSystemOrBuilder.java @@ -0,0 +1,93 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/operating_system_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface OperatingSystemOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.OperatingSystem) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. The resource name of the `OperatingSystem`.
+   * Format: `networks/{network_code}/operatingSystems/{operating_system_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. The resource name of the `OperatingSystem`.
+   * Format: `networks/{network_code}/operatingSystems/{operating_system_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. The name of the operating system.
+   * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the displayName field is set. + */ + boolean hasDisplayName(); + + /** + * + * + *
+   * Output only. The name of the operating system.
+   * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+   * Output only. The name of the operating system.
+   * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OperatingSystemServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OperatingSystemServiceProto.java new file mode 100644 index 000000000000..8298f4dd9535 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OperatingSystemServiceProto.java @@ -0,0 +1,141 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/operating_system_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class OperatingSystemServiceProto { + private OperatingSystemServiceProto() {} + + 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_ads_admanager_v1_GetOperatingSystemRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_GetOperatingSystemRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListOperatingSystemsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListOperatingSystemsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListOperatingSystemsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListOperatingSystemsResponse_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" + + "6google/ads/admanager/v1/operating_system_service.proto\022\027google.ads.admanager.v" + + "1\0327google/ads/admanager/v1/operating_sys" + + "tem_messages.proto\032\034google/api/annotatio" + + "ns.proto\032\027google/api/client.proto\032\037googl" + + "e/api/field_behavior.proto\032\031google/api/resource.proto\"[\n" + + "\031GetOperatingSystemRequest\022>\n" + + "\004name\030\001 \001(\tB0\340A\002\372A*\n" + + "(admanager.googleapis.com/OperatingSystem\"\307\001\n" + + "\033ListOperatingSystemsRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\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\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\022\021\n" + + "\004skip\030\006 \001(\005B\003\340A\001\"\220\001\n" + + "\034ListOperatingSystemsResponse\022C\n" + + "\021operating_systems\030\001" + + " \003(\0132(.google.ads.admanager.v1.OperatingSystem\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\022\n\n" + + "total_size\030\003 \001(\0052\320\003\n" + + "\026OperatingSystemService\022\253\001\n" + + "\022GetOperatingSystem\0222.google.ads.admanager.v1.GetOperatingSystemRequest\032(." + + "google.ads.admanager.v1.OperatingSystem\"" + + "7\332A\004name\202\323\344\223\002*\022(/v1/{name=networks/*/operatingSystems/*}\022\276\001\n" + + "\024ListOperatingSystems\0224.google.ads.admanager.v1.ListOperatin" + + "gSystemsRequest\0325.google.ads.admanager.v" + + "1.ListOperatingSystemsResponse\"9\332A\006paren" + + "t\202\323\344\223\002*\022(/v1/{parent=networks/*}/operati" + + "ngSystems\032G\312A\030admanager.googleapis.com\322A" + + ")https://www.googleapis.com/auth/admanagerB\317\001\n" + + "\033com.google.ads.admanager.v1B\033OperatingSystemServiceProtoP\001Z@google.golang" + + ".org/genproto/googleapis/ads/admanager/v" + + "1;admanager\252\002\027Google.Ads.AdManager.V1\312\002\027" + + "Google\\Ads\\AdManager\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.admanager.v1.OperatingSystemMessagesProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_ads_admanager_v1_GetOperatingSystemRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_GetOperatingSystemRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_GetOperatingSystemRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_ads_admanager_v1_ListOperatingSystemsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_ads_admanager_v1_ListOperatingSystemsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListOperatingSystemsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", "Skip", + }); + internal_static_google_ads_admanager_v1_ListOperatingSystemsResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_ads_admanager_v1_ListOperatingSystemsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListOperatingSystemsResponse_descriptor, + new java.lang.String[] { + "OperatingSystems", "NextPageToken", "TotalSize", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.ads.admanager.v1.OperatingSystemMessagesProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OperatingSystemTargeting.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OperatingSystemTargeting.java new file mode 100644 index 000000000000..ad178094eb29 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OperatingSystemTargeting.java @@ -0,0 +1,1777 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Operating System Targeting
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.OperatingSystemTargeting} + */ +public final class OperatingSystemTargeting extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.OperatingSystemTargeting) + OperatingSystemTargetingOrBuilder { + private static final long serialVersionUID = 0L; + + // Use OperatingSystemTargeting.newBuilder() to construct. + private OperatingSystemTargeting(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private OperatingSystemTargeting() { + targetedOperatingSystems_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludedOperatingSystems_ = com.google.protobuf.LazyStringArrayList.emptyList(); + targetedOperatingSystemVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludedOperatingSystemVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OperatingSystemTargeting(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_OperatingSystemTargeting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_OperatingSystemTargeting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.OperatingSystemTargeting.class, + com.google.ads.admanager.v1.OperatingSystemTargeting.Builder.class); + } + + public static final int TARGETED_OPERATING_SYSTEMS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList targetedOperatingSystems_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. A list of operating system resource names that should be
+   * targeted/included.
+   * 
+ * + * + * repeated string targeted_operating_systems = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetedOperatingSystems. + */ + public com.google.protobuf.ProtocolStringList getTargetedOperatingSystemsList() { + return targetedOperatingSystems_; + } + + /** + * + * + *
+   * Optional. A list of operating system resource names that should be
+   * targeted/included.
+   * 
+ * + * + * repeated string targeted_operating_systems = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetedOperatingSystems. + */ + public int getTargetedOperatingSystemsCount() { + return targetedOperatingSystems_.size(); + } + + /** + * + * + *
+   * Optional. A list of operating system resource names that should be
+   * targeted/included.
+   * 
+ * + * + * repeated string targeted_operating_systems = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetedOperatingSystems at the given index. + */ + public java.lang.String getTargetedOperatingSystems(int index) { + return targetedOperatingSystems_.get(index); + } + + /** + * + * + *
+   * Optional. A list of operating system resource names that should be
+   * targeted/included.
+   * 
+ * + * + * repeated string targeted_operating_systems = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetedOperatingSystems at the given index. + */ + public com.google.protobuf.ByteString getTargetedOperatingSystemsBytes(int index) { + return targetedOperatingSystems_.getByteString(index); + } + + public static final int EXCLUDED_OPERATING_SYSTEMS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList excludedOperatingSystems_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. A list of operating system resource names that should be
+   * excluded.
+   * 
+ * + * + * repeated string excluded_operating_systems = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the excludedOperatingSystems. + */ + public com.google.protobuf.ProtocolStringList getExcludedOperatingSystemsList() { + return excludedOperatingSystems_; + } + + /** + * + * + *
+   * Optional. A list of operating system resource names that should be
+   * excluded.
+   * 
+ * + * + * repeated string excluded_operating_systems = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of excludedOperatingSystems. + */ + public int getExcludedOperatingSystemsCount() { + return excludedOperatingSystems_.size(); + } + + /** + * + * + *
+   * Optional. A list of operating system resource names that should be
+   * excluded.
+   * 
+ * + * + * repeated string excluded_operating_systems = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The excludedOperatingSystems at the given index. + */ + public java.lang.String getExcludedOperatingSystems(int index) { + return excludedOperatingSystems_.get(index); + } + + /** + * + * + *
+   * Optional. A list of operating system resource names that should be
+   * excluded.
+   * 
+ * + * + * repeated string excluded_operating_systems = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedOperatingSystems at the given index. + */ + public com.google.protobuf.ByteString getExcludedOperatingSystemsBytes(int index) { + return excludedOperatingSystems_.getByteString(index); + } + + public static final int TARGETED_OPERATING_SYSTEM_VERSIONS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList targetedOperatingSystemVersions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. A list of operating system version resource names that should be
+   * targeted/included.
+   * 
+ * + * + * repeated string targeted_operating_system_versions = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetedOperatingSystemVersions. + */ + public com.google.protobuf.ProtocolStringList getTargetedOperatingSystemVersionsList() { + return targetedOperatingSystemVersions_; + } + + /** + * + * + *
+   * Optional. A list of operating system version resource names that should be
+   * targeted/included.
+   * 
+ * + * + * repeated string targeted_operating_system_versions = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetedOperatingSystemVersions. + */ + public int getTargetedOperatingSystemVersionsCount() { + return targetedOperatingSystemVersions_.size(); + } + + /** + * + * + *
+   * Optional. A list of operating system version resource names that should be
+   * targeted/included.
+   * 
+ * + * + * repeated string targeted_operating_system_versions = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetedOperatingSystemVersions at the given index. + */ + public java.lang.String getTargetedOperatingSystemVersions(int index) { + return targetedOperatingSystemVersions_.get(index); + } + + /** + * + * + *
+   * Optional. A list of operating system version resource names that should be
+   * targeted/included.
+   * 
+ * + * + * repeated string targeted_operating_system_versions = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetedOperatingSystemVersions at the given index. + */ + public com.google.protobuf.ByteString getTargetedOperatingSystemVersionsBytes(int index) { + return targetedOperatingSystemVersions_.getByteString(index); + } + + public static final int EXCLUDED_OPERATING_SYSTEM_VERSIONS_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList excludedOperatingSystemVersions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. A list of operating system version resource names that should be
+   * excluded.
+   * 
+ * + * + * repeated string excluded_operating_system_versions = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the excludedOperatingSystemVersions. + */ + public com.google.protobuf.ProtocolStringList getExcludedOperatingSystemVersionsList() { + return excludedOperatingSystemVersions_; + } + + /** + * + * + *
+   * Optional. A list of operating system version resource names that should be
+   * excluded.
+   * 
+ * + * + * repeated string excluded_operating_system_versions = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of excludedOperatingSystemVersions. + */ + public int getExcludedOperatingSystemVersionsCount() { + return excludedOperatingSystemVersions_.size(); + } + + /** + * + * + *
+   * Optional. A list of operating system version resource names that should be
+   * excluded.
+   * 
+ * + * + * repeated string excluded_operating_system_versions = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The excludedOperatingSystemVersions at the given index. + */ + public java.lang.String getExcludedOperatingSystemVersions(int index) { + return excludedOperatingSystemVersions_.get(index); + } + + /** + * + * + *
+   * Optional. A list of operating system version resource names that should be
+   * excluded.
+   * 
+ * + * + * repeated string excluded_operating_system_versions = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedOperatingSystemVersions at the given index. + */ + public com.google.protobuf.ByteString getExcludedOperatingSystemVersionsBytes(int index) { + return excludedOperatingSystemVersions_.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 < targetedOperatingSystems_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 5, targetedOperatingSystems_.getRaw(i)); + } + for (int i = 0; i < excludedOperatingSystems_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 6, excludedOperatingSystems_.getRaw(i)); + } + for (int i = 0; i < targetedOperatingSystemVersions_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 7, targetedOperatingSystemVersions_.getRaw(i)); + } + for (int i = 0; i < excludedOperatingSystemVersions_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 8, excludedOperatingSystemVersions_.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 < targetedOperatingSystems_.size(); i++) { + dataSize += computeStringSizeNoTag(targetedOperatingSystems_.getRaw(i)); + } + size += dataSize; + size += 1 * getTargetedOperatingSystemsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < excludedOperatingSystems_.size(); i++) { + dataSize += computeStringSizeNoTag(excludedOperatingSystems_.getRaw(i)); + } + size += dataSize; + size += 1 * getExcludedOperatingSystemsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < targetedOperatingSystemVersions_.size(); i++) { + dataSize += computeStringSizeNoTag(targetedOperatingSystemVersions_.getRaw(i)); + } + size += dataSize; + size += 1 * getTargetedOperatingSystemVersionsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < excludedOperatingSystemVersions_.size(); i++) { + dataSize += computeStringSizeNoTag(excludedOperatingSystemVersions_.getRaw(i)); + } + size += dataSize; + size += 1 * getExcludedOperatingSystemVersionsList().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.admanager.v1.OperatingSystemTargeting)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.OperatingSystemTargeting other = + (com.google.ads.admanager.v1.OperatingSystemTargeting) obj; + + if (!getTargetedOperatingSystemsList().equals(other.getTargetedOperatingSystemsList())) + return false; + if (!getExcludedOperatingSystemsList().equals(other.getExcludedOperatingSystemsList())) + return false; + if (!getTargetedOperatingSystemVersionsList() + .equals(other.getTargetedOperatingSystemVersionsList())) return false; + if (!getExcludedOperatingSystemVersionsList() + .equals(other.getExcludedOperatingSystemVersionsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTargetedOperatingSystemsCount() > 0) { + hash = (37 * hash) + TARGETED_OPERATING_SYSTEMS_FIELD_NUMBER; + hash = (53 * hash) + getTargetedOperatingSystemsList().hashCode(); + } + if (getExcludedOperatingSystemsCount() > 0) { + hash = (37 * hash) + EXCLUDED_OPERATING_SYSTEMS_FIELD_NUMBER; + hash = (53 * hash) + getExcludedOperatingSystemsList().hashCode(); + } + if (getTargetedOperatingSystemVersionsCount() > 0) { + hash = (37 * hash) + TARGETED_OPERATING_SYSTEM_VERSIONS_FIELD_NUMBER; + hash = (53 * hash) + getTargetedOperatingSystemVersionsList().hashCode(); + } + if (getExcludedOperatingSystemVersionsCount() > 0) { + hash = (37 * hash) + EXCLUDED_OPERATING_SYSTEM_VERSIONS_FIELD_NUMBER; + hash = (53 * hash) + getExcludedOperatingSystemVersionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.OperatingSystemTargeting parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.OperatingSystemTargeting 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.admanager.v1.OperatingSystemTargeting parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.OperatingSystemTargeting parseFrom( + 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.admanager.v1.OperatingSystemTargeting parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.OperatingSystemTargeting parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.OperatingSystemTargeting parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.OperatingSystemTargeting parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.OperatingSystemTargeting parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.OperatingSystemTargeting parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.OperatingSystemTargeting parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.OperatingSystemTargeting parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.OperatingSystemTargeting prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Operating System Targeting
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.OperatingSystemTargeting} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.OperatingSystemTargeting) + com.google.ads.admanager.v1.OperatingSystemTargetingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_OperatingSystemTargeting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_OperatingSystemTargeting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.OperatingSystemTargeting.class, + com.google.ads.admanager.v1.OperatingSystemTargeting.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.OperatingSystemTargeting.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + targetedOperatingSystems_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludedOperatingSystems_ = com.google.protobuf.LazyStringArrayList.emptyList(); + targetedOperatingSystemVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludedOperatingSystemVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_OperatingSystemTargeting_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.OperatingSystemTargeting getDefaultInstanceForType() { + return com.google.ads.admanager.v1.OperatingSystemTargeting.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.OperatingSystemTargeting build() { + com.google.ads.admanager.v1.OperatingSystemTargeting result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.OperatingSystemTargeting buildPartial() { + com.google.ads.admanager.v1.OperatingSystemTargeting result = + new com.google.ads.admanager.v1.OperatingSystemTargeting(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.OperatingSystemTargeting result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + targetedOperatingSystems_.makeImmutable(); + result.targetedOperatingSystems_ = targetedOperatingSystems_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + excludedOperatingSystems_.makeImmutable(); + result.excludedOperatingSystems_ = excludedOperatingSystems_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + targetedOperatingSystemVersions_.makeImmutable(); + result.targetedOperatingSystemVersions_ = targetedOperatingSystemVersions_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + excludedOperatingSystemVersions_.makeImmutable(); + result.excludedOperatingSystemVersions_ = excludedOperatingSystemVersions_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.OperatingSystemTargeting) { + return mergeFrom((com.google.ads.admanager.v1.OperatingSystemTargeting) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.OperatingSystemTargeting other) { + if (other == com.google.ads.admanager.v1.OperatingSystemTargeting.getDefaultInstance()) + return this; + if (!other.targetedOperatingSystems_.isEmpty()) { + if (targetedOperatingSystems_.isEmpty()) { + targetedOperatingSystems_ = other.targetedOperatingSystems_; + bitField0_ |= 0x00000001; + } else { + ensureTargetedOperatingSystemsIsMutable(); + targetedOperatingSystems_.addAll(other.targetedOperatingSystems_); + } + onChanged(); + } + if (!other.excludedOperatingSystems_.isEmpty()) { + if (excludedOperatingSystems_.isEmpty()) { + excludedOperatingSystems_ = other.excludedOperatingSystems_; + bitField0_ |= 0x00000002; + } else { + ensureExcludedOperatingSystemsIsMutable(); + excludedOperatingSystems_.addAll(other.excludedOperatingSystems_); + } + onChanged(); + } + if (!other.targetedOperatingSystemVersions_.isEmpty()) { + if (targetedOperatingSystemVersions_.isEmpty()) { + targetedOperatingSystemVersions_ = other.targetedOperatingSystemVersions_; + bitField0_ |= 0x00000004; + } else { + ensureTargetedOperatingSystemVersionsIsMutable(); + targetedOperatingSystemVersions_.addAll(other.targetedOperatingSystemVersions_); + } + onChanged(); + } + if (!other.excludedOperatingSystemVersions_.isEmpty()) { + if (excludedOperatingSystemVersions_.isEmpty()) { + excludedOperatingSystemVersions_ = other.excludedOperatingSystemVersions_; + bitField0_ |= 0x00000008; + } else { + ensureExcludedOperatingSystemVersionsIsMutable(); + excludedOperatingSystemVersions_.addAll(other.excludedOperatingSystemVersions_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTargetedOperatingSystemsIsMutable(); + targetedOperatingSystems_.add(s); + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureExcludedOperatingSystemsIsMutable(); + excludedOperatingSystems_.add(s); + break; + } // case 50 + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTargetedOperatingSystemVersionsIsMutable(); + targetedOperatingSystemVersions_.add(s); + break; + } // case 58 + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureExcludedOperatingSystemVersionsIsMutable(); + excludedOperatingSystemVersions_.add(s); + 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 com.google.protobuf.LazyStringArrayList targetedOperatingSystems_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureTargetedOperatingSystemsIsMutable() { + if (!targetedOperatingSystems_.isModifiable()) { + targetedOperatingSystems_ = + new com.google.protobuf.LazyStringArrayList(targetedOperatingSystems_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
+     * Optional. A list of operating system resource names that should be
+     * targeted/included.
+     * 
+ * + * + * repeated string targeted_operating_systems = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetedOperatingSystems. + */ + public com.google.protobuf.ProtocolStringList getTargetedOperatingSystemsList() { + targetedOperatingSystems_.makeImmutable(); + return targetedOperatingSystems_; + } + + /** + * + * + *
+     * Optional. A list of operating system resource names that should be
+     * targeted/included.
+     * 
+ * + * + * repeated string targeted_operating_systems = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetedOperatingSystems. + */ + public int getTargetedOperatingSystemsCount() { + return targetedOperatingSystems_.size(); + } + + /** + * + * + *
+     * Optional. A list of operating system resource names that should be
+     * targeted/included.
+     * 
+ * + * + * repeated string targeted_operating_systems = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetedOperatingSystems at the given index. + */ + public java.lang.String getTargetedOperatingSystems(int index) { + return targetedOperatingSystems_.get(index); + } + + /** + * + * + *
+     * Optional. A list of operating system resource names that should be
+     * targeted/included.
+     * 
+ * + * + * repeated string targeted_operating_systems = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetedOperatingSystems at the given index. + */ + public com.google.protobuf.ByteString getTargetedOperatingSystemsBytes(int index) { + return targetedOperatingSystems_.getByteString(index); + } + + /** + * + * + *
+     * Optional. A list of operating system resource names that should be
+     * targeted/included.
+     * 
+ * + * + * repeated string targeted_operating_systems = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The targetedOperatingSystems to set. + * @return This builder for chaining. + */ + public Builder setTargetedOperatingSystems(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetedOperatingSystemsIsMutable(); + targetedOperatingSystems_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of operating system resource names that should be
+     * targeted/included.
+     * 
+ * + * + * repeated string targeted_operating_systems = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The targetedOperatingSystems to add. + * @return This builder for chaining. + */ + public Builder addTargetedOperatingSystems(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetedOperatingSystemsIsMutable(); + targetedOperatingSystems_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of operating system resource names that should be
+     * targeted/included.
+     * 
+ * + * + * repeated string targeted_operating_systems = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param values The targetedOperatingSystems to add. + * @return This builder for chaining. + */ + public Builder addAllTargetedOperatingSystems(java.lang.Iterable values) { + ensureTargetedOperatingSystemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetedOperatingSystems_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of operating system resource names that should be
+     * targeted/included.
+     * 
+ * + * + * repeated string targeted_operating_systems = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTargetedOperatingSystems() { + targetedOperatingSystems_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of operating system resource names that should be
+     * targeted/included.
+     * 
+ * + * + * repeated string targeted_operating_systems = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the targetedOperatingSystems to add. + * @return This builder for chaining. + */ + public Builder addTargetedOperatingSystemsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTargetedOperatingSystemsIsMutable(); + targetedOperatingSystems_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList excludedOperatingSystems_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureExcludedOperatingSystemsIsMutable() { + if (!excludedOperatingSystems_.isModifiable()) { + excludedOperatingSystems_ = + new com.google.protobuf.LazyStringArrayList(excludedOperatingSystems_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
+     * Optional. A list of operating system resource names that should be
+     * excluded.
+     * 
+ * + * + * repeated string excluded_operating_systems = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the excludedOperatingSystems. + */ + public com.google.protobuf.ProtocolStringList getExcludedOperatingSystemsList() { + excludedOperatingSystems_.makeImmutable(); + return excludedOperatingSystems_; + } + + /** + * + * + *
+     * Optional. A list of operating system resource names that should be
+     * excluded.
+     * 
+ * + * + * repeated string excluded_operating_systems = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of excludedOperatingSystems. + */ + public int getExcludedOperatingSystemsCount() { + return excludedOperatingSystems_.size(); + } + + /** + * + * + *
+     * Optional. A list of operating system resource names that should be
+     * excluded.
+     * 
+ * + * + * repeated string excluded_operating_systems = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The excludedOperatingSystems at the given index. + */ + public java.lang.String getExcludedOperatingSystems(int index) { + return excludedOperatingSystems_.get(index); + } + + /** + * + * + *
+     * Optional. A list of operating system resource names that should be
+     * excluded.
+     * 
+ * + * + * repeated string excluded_operating_systems = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedOperatingSystems at the given index. + */ + public com.google.protobuf.ByteString getExcludedOperatingSystemsBytes(int index) { + return excludedOperatingSystems_.getByteString(index); + } + + /** + * + * + *
+     * Optional. A list of operating system resource names that should be
+     * excluded.
+     * 
+ * + * + * repeated string excluded_operating_systems = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The excludedOperatingSystems to set. + * @return This builder for chaining. + */ + public Builder setExcludedOperatingSystems(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedOperatingSystemsIsMutable(); + excludedOperatingSystems_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of operating system resource names that should be
+     * excluded.
+     * 
+ * + * + * repeated string excluded_operating_systems = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The excludedOperatingSystems to add. + * @return This builder for chaining. + */ + public Builder addExcludedOperatingSystems(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedOperatingSystemsIsMutable(); + excludedOperatingSystems_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of operating system resource names that should be
+     * excluded.
+     * 
+ * + * + * repeated string excluded_operating_systems = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param values The excludedOperatingSystems to add. + * @return This builder for chaining. + */ + public Builder addAllExcludedOperatingSystems(java.lang.Iterable values) { + ensureExcludedOperatingSystemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, excludedOperatingSystems_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of operating system resource names that should be
+     * excluded.
+     * 
+ * + * + * repeated string excluded_operating_systems = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearExcludedOperatingSystems() { + excludedOperatingSystems_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of operating system resource names that should be
+     * excluded.
+     * 
+ * + * + * repeated string excluded_operating_systems = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the excludedOperatingSystems to add. + * @return This builder for chaining. + */ + public Builder addExcludedOperatingSystemsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureExcludedOperatingSystemsIsMutable(); + excludedOperatingSystems_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList targetedOperatingSystemVersions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureTargetedOperatingSystemVersionsIsMutable() { + if (!targetedOperatingSystemVersions_.isModifiable()) { + targetedOperatingSystemVersions_ = + new com.google.protobuf.LazyStringArrayList(targetedOperatingSystemVersions_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
+     * Optional. A list of operating system version resource names that should be
+     * targeted/included.
+     * 
+ * + * + * repeated string targeted_operating_system_versions = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetedOperatingSystemVersions. + */ + public com.google.protobuf.ProtocolStringList getTargetedOperatingSystemVersionsList() { + targetedOperatingSystemVersions_.makeImmutable(); + return targetedOperatingSystemVersions_; + } + + /** + * + * + *
+     * Optional. A list of operating system version resource names that should be
+     * targeted/included.
+     * 
+ * + * + * repeated string targeted_operating_system_versions = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetedOperatingSystemVersions. + */ + public int getTargetedOperatingSystemVersionsCount() { + return targetedOperatingSystemVersions_.size(); + } + + /** + * + * + *
+     * Optional. A list of operating system version resource names that should be
+     * targeted/included.
+     * 
+ * + * + * repeated string targeted_operating_system_versions = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetedOperatingSystemVersions at the given index. + */ + public java.lang.String getTargetedOperatingSystemVersions(int index) { + return targetedOperatingSystemVersions_.get(index); + } + + /** + * + * + *
+     * Optional. A list of operating system version resource names that should be
+     * targeted/included.
+     * 
+ * + * + * repeated string targeted_operating_system_versions = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetedOperatingSystemVersions at the given index. + */ + public com.google.protobuf.ByteString getTargetedOperatingSystemVersionsBytes(int index) { + return targetedOperatingSystemVersions_.getByteString(index); + } + + /** + * + * + *
+     * Optional. A list of operating system version resource names that should be
+     * targeted/included.
+     * 
+ * + * + * repeated string targeted_operating_system_versions = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The targetedOperatingSystemVersions to set. + * @return This builder for chaining. + */ + public Builder setTargetedOperatingSystemVersions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetedOperatingSystemVersionsIsMutable(); + targetedOperatingSystemVersions_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of operating system version resource names that should be
+     * targeted/included.
+     * 
+ * + * + * repeated string targeted_operating_system_versions = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The targetedOperatingSystemVersions to add. + * @return This builder for chaining. + */ + public Builder addTargetedOperatingSystemVersions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetedOperatingSystemVersionsIsMutable(); + targetedOperatingSystemVersions_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of operating system version resource names that should be
+     * targeted/included.
+     * 
+ * + * + * repeated string targeted_operating_system_versions = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param values The targetedOperatingSystemVersions to add. + * @return This builder for chaining. + */ + public Builder addAllTargetedOperatingSystemVersions( + java.lang.Iterable values) { + ensureTargetedOperatingSystemVersionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, targetedOperatingSystemVersions_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of operating system version resource names that should be
+     * targeted/included.
+     * 
+ * + * + * repeated string targeted_operating_system_versions = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTargetedOperatingSystemVersions() { + targetedOperatingSystemVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of operating system version resource names that should be
+     * targeted/included.
+     * 
+ * + * + * repeated string targeted_operating_system_versions = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the targetedOperatingSystemVersions to add. + * @return This builder for chaining. + */ + public Builder addTargetedOperatingSystemVersionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTargetedOperatingSystemVersionsIsMutable(); + targetedOperatingSystemVersions_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList excludedOperatingSystemVersions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureExcludedOperatingSystemVersionsIsMutable() { + if (!excludedOperatingSystemVersions_.isModifiable()) { + excludedOperatingSystemVersions_ = + new com.google.protobuf.LazyStringArrayList(excludedOperatingSystemVersions_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
+     * Optional. A list of operating system version resource names that should be
+     * excluded.
+     * 
+ * + * + * repeated string excluded_operating_system_versions = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the excludedOperatingSystemVersions. + */ + public com.google.protobuf.ProtocolStringList getExcludedOperatingSystemVersionsList() { + excludedOperatingSystemVersions_.makeImmutable(); + return excludedOperatingSystemVersions_; + } + + /** + * + * + *
+     * Optional. A list of operating system version resource names that should be
+     * excluded.
+     * 
+ * + * + * repeated string excluded_operating_system_versions = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of excludedOperatingSystemVersions. + */ + public int getExcludedOperatingSystemVersionsCount() { + return excludedOperatingSystemVersions_.size(); + } + + /** + * + * + *
+     * Optional. A list of operating system version resource names that should be
+     * excluded.
+     * 
+ * + * + * repeated string excluded_operating_system_versions = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The excludedOperatingSystemVersions at the given index. + */ + public java.lang.String getExcludedOperatingSystemVersions(int index) { + return excludedOperatingSystemVersions_.get(index); + } + + /** + * + * + *
+     * Optional. A list of operating system version resource names that should be
+     * excluded.
+     * 
+ * + * + * repeated string excluded_operating_system_versions = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedOperatingSystemVersions at the given index. + */ + public com.google.protobuf.ByteString getExcludedOperatingSystemVersionsBytes(int index) { + return excludedOperatingSystemVersions_.getByteString(index); + } + + /** + * + * + *
+     * Optional. A list of operating system version resource names that should be
+     * excluded.
+     * 
+ * + * + * repeated string excluded_operating_system_versions = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The excludedOperatingSystemVersions to set. + * @return This builder for chaining. + */ + public Builder setExcludedOperatingSystemVersions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedOperatingSystemVersionsIsMutable(); + excludedOperatingSystemVersions_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of operating system version resource names that should be
+     * excluded.
+     * 
+ * + * + * repeated string excluded_operating_system_versions = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The excludedOperatingSystemVersions to add. + * @return This builder for chaining. + */ + public Builder addExcludedOperatingSystemVersions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedOperatingSystemVersionsIsMutable(); + excludedOperatingSystemVersions_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of operating system version resource names that should be
+     * excluded.
+     * 
+ * + * + * repeated string excluded_operating_system_versions = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param values The excludedOperatingSystemVersions to add. + * @return This builder for chaining. + */ + public Builder addAllExcludedOperatingSystemVersions( + java.lang.Iterable values) { + ensureExcludedOperatingSystemVersionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, excludedOperatingSystemVersions_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of operating system version resource names that should be
+     * excluded.
+     * 
+ * + * + * repeated string excluded_operating_system_versions = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearExcludedOperatingSystemVersions() { + excludedOperatingSystemVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of operating system version resource names that should be
+     * excluded.
+     * 
+ * + * + * repeated string excluded_operating_system_versions = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the excludedOperatingSystemVersions to add. + * @return This builder for chaining. + */ + public Builder addExcludedOperatingSystemVersionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureExcludedOperatingSystemVersionsIsMutable(); + excludedOperatingSystemVersions_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.OperatingSystemTargeting) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.OperatingSystemTargeting) + private static final com.google.ads.admanager.v1.OperatingSystemTargeting DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.OperatingSystemTargeting(); + } + + public static com.google.ads.admanager.v1.OperatingSystemTargeting getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperatingSystemTargeting parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.OperatingSystemTargeting getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OperatingSystemTargetingOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OperatingSystemTargetingOrBuilder.java new file mode 100644 index 000000000000..4e9c611f00cd --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OperatingSystemTargetingOrBuilder.java @@ -0,0 +1,290 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface OperatingSystemTargetingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.OperatingSystemTargeting) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. A list of operating system resource names that should be
+   * targeted/included.
+   * 
+ * + * + * repeated string targeted_operating_systems = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetedOperatingSystems. + */ + java.util.List getTargetedOperatingSystemsList(); + + /** + * + * + *
+   * Optional. A list of operating system resource names that should be
+   * targeted/included.
+   * 
+ * + * + * repeated string targeted_operating_systems = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetedOperatingSystems. + */ + int getTargetedOperatingSystemsCount(); + + /** + * + * + *
+   * Optional. A list of operating system resource names that should be
+   * targeted/included.
+   * 
+ * + * + * repeated string targeted_operating_systems = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetedOperatingSystems at the given index. + */ + java.lang.String getTargetedOperatingSystems(int index); + + /** + * + * + *
+   * Optional. A list of operating system resource names that should be
+   * targeted/included.
+   * 
+ * + * + * repeated string targeted_operating_systems = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetedOperatingSystems at the given index. + */ + com.google.protobuf.ByteString getTargetedOperatingSystemsBytes(int index); + + /** + * + * + *
+   * Optional. A list of operating system resource names that should be
+   * excluded.
+   * 
+ * + * + * repeated string excluded_operating_systems = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the excludedOperatingSystems. + */ + java.util.List getExcludedOperatingSystemsList(); + + /** + * + * + *
+   * Optional. A list of operating system resource names that should be
+   * excluded.
+   * 
+ * + * + * repeated string excluded_operating_systems = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of excludedOperatingSystems. + */ + int getExcludedOperatingSystemsCount(); + + /** + * + * + *
+   * Optional. A list of operating system resource names that should be
+   * excluded.
+   * 
+ * + * + * repeated string excluded_operating_systems = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The excludedOperatingSystems at the given index. + */ + java.lang.String getExcludedOperatingSystems(int index); + + /** + * + * + *
+   * Optional. A list of operating system resource names that should be
+   * excluded.
+   * 
+ * + * + * repeated string excluded_operating_systems = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedOperatingSystems at the given index. + */ + com.google.protobuf.ByteString getExcludedOperatingSystemsBytes(int index); + + /** + * + * + *
+   * Optional. A list of operating system version resource names that should be
+   * targeted/included.
+   * 
+ * + * + * repeated string targeted_operating_system_versions = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetedOperatingSystemVersions. + */ + java.util.List getTargetedOperatingSystemVersionsList(); + + /** + * + * + *
+   * Optional. A list of operating system version resource names that should be
+   * targeted/included.
+   * 
+ * + * + * repeated string targeted_operating_system_versions = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetedOperatingSystemVersions. + */ + int getTargetedOperatingSystemVersionsCount(); + + /** + * + * + *
+   * Optional. A list of operating system version resource names that should be
+   * targeted/included.
+   * 
+ * + * + * repeated string targeted_operating_system_versions = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetedOperatingSystemVersions at the given index. + */ + java.lang.String getTargetedOperatingSystemVersions(int index); + + /** + * + * + *
+   * Optional. A list of operating system version resource names that should be
+   * targeted/included.
+   * 
+ * + * + * repeated string targeted_operating_system_versions = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetedOperatingSystemVersions at the given index. + */ + com.google.protobuf.ByteString getTargetedOperatingSystemVersionsBytes(int index); + + /** + * + * + *
+   * Optional. A list of operating system version resource names that should be
+   * excluded.
+   * 
+ * + * + * repeated string excluded_operating_system_versions = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the excludedOperatingSystemVersions. + */ + java.util.List getExcludedOperatingSystemVersionsList(); + + /** + * + * + *
+   * Optional. A list of operating system version resource names that should be
+   * excluded.
+   * 
+ * + * + * repeated string excluded_operating_system_versions = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of excludedOperatingSystemVersions. + */ + int getExcludedOperatingSystemVersionsCount(); + + /** + * + * + *
+   * Optional. A list of operating system version resource names that should be
+   * excluded.
+   * 
+ * + * + * repeated string excluded_operating_system_versions = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The excludedOperatingSystemVersions at the given index. + */ + java.lang.String getExcludedOperatingSystemVersions(int index); + + /** + * + * + *
+   * Optional. A list of operating system version resource names that should be
+   * excluded.
+   * 
+ * + * + * repeated string excluded_operating_system_versions = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedOperatingSystemVersions at the given index. + */ + com.google.protobuf.ByteString getExcludedOperatingSystemVersionsBytes(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OperatingSystemVersion.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OperatingSystemVersion.java new file mode 100644 index 000000000000..7d2d84ce326e --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OperatingSystemVersion.java @@ -0,0 +1,1056 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/operating_system_version_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Represents a specific version of an operating system.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.OperatingSystemVersion} + */ +public final class OperatingSystemVersion extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.OperatingSystemVersion) + OperatingSystemVersionOrBuilder { + private static final long serialVersionUID = 0L; + + // Use OperatingSystemVersion.newBuilder() to construct. + private OperatingSystemVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private OperatingSystemVersion() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OperatingSystemVersion(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.OperatingSystemVersionMessagesProto + .internal_static_google_ads_admanager_v1_OperatingSystemVersion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.OperatingSystemVersionMessagesProto + .internal_static_google_ads_admanager_v1_OperatingSystemVersion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.OperatingSystemVersion.class, + com.google.ads.admanager.v1.OperatingSystemVersion.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 `OperatingSystemVersion`.
+   * Format:
+   * `networks/{network_code}/operatingSystemVersions/{operating_system_version_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 `OperatingSystemVersion`.
+   * Format:
+   * `networks/{network_code}/operatingSystemVersions/{operating_system_version_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 MAJOR_VERSION_FIELD_NUMBER = 2; + private int majorVersion_ = 0; + + /** + * + * + *
+   * Output only. The major version of the operating system.
+   * 
+ * + * optional int32 major_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the majorVersion field is set. + */ + @java.lang.Override + public boolean hasMajorVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. The major version of the operating system.
+   * 
+ * + * optional int32 major_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The majorVersion. + */ + @java.lang.Override + public int getMajorVersion() { + return majorVersion_; + } + + public static final int MINOR_VERSION_FIELD_NUMBER = 3; + private int minorVersion_ = 0; + + /** + * + * + *
+   * Output only. The minor version of the operating system.
+   * 
+ * + * optional int32 minor_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the minorVersion field is set. + */ + @java.lang.Override + public boolean hasMinorVersion() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. The minor version of the operating system.
+   * 
+ * + * optional int32 minor_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The minorVersion. + */ + @java.lang.Override + public int getMinorVersion() { + return minorVersion_; + } + + public static final int MICRO_VERSION_FIELD_NUMBER = 4; + private int microVersion_ = 0; + + /** + * + * + *
+   * Output only. The micro version of the operating system.
+   * 
+ * + * optional int32 micro_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the microVersion field is set. + */ + @java.lang.Override + public boolean hasMicroVersion() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Output only. The micro version of the operating system.
+   * 
+ * + * optional int32 micro_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The microVersion. + */ + @java.lang.Override + public int getMicroVersion() { + return microVersion_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt32(2, majorVersion_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeInt32(3, minorVersion_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeInt32(4, microVersion_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, majorVersion_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, minorVersion_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, microVersion_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.admanager.v1.OperatingSystemVersion)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.OperatingSystemVersion other = + (com.google.ads.admanager.v1.OperatingSystemVersion) obj; + + if (!getName().equals(other.getName())) return false; + if (hasMajorVersion() != other.hasMajorVersion()) return false; + if (hasMajorVersion()) { + if (getMajorVersion() != other.getMajorVersion()) return false; + } + if (hasMinorVersion() != other.hasMinorVersion()) return false; + if (hasMinorVersion()) { + if (getMinorVersion() != other.getMinorVersion()) return false; + } + if (hasMicroVersion() != other.hasMicroVersion()) return false; + if (hasMicroVersion()) { + if (getMicroVersion() != other.getMicroVersion()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasMajorVersion()) { + hash = (37 * hash) + MAJOR_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getMajorVersion(); + } + if (hasMinorVersion()) { + hash = (37 * hash) + MINOR_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getMinorVersion(); + } + if (hasMicroVersion()) { + hash = (37 * hash) + MICRO_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getMicroVersion(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.OperatingSystemVersion parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.OperatingSystemVersion 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.admanager.v1.OperatingSystemVersion parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.OperatingSystemVersion parseFrom( + 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.admanager.v1.OperatingSystemVersion parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.OperatingSystemVersion parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.OperatingSystemVersion parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.OperatingSystemVersion parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.OperatingSystemVersion parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.OperatingSystemVersion parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.OperatingSystemVersion parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.OperatingSystemVersion parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.OperatingSystemVersion prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Represents a specific version of an operating system.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.OperatingSystemVersion} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.OperatingSystemVersion) + com.google.ads.admanager.v1.OperatingSystemVersionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.OperatingSystemVersionMessagesProto + .internal_static_google_ads_admanager_v1_OperatingSystemVersion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.OperatingSystemVersionMessagesProto + .internal_static_google_ads_admanager_v1_OperatingSystemVersion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.OperatingSystemVersion.class, + com.google.ads.admanager.v1.OperatingSystemVersion.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.OperatingSystemVersion.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + majorVersion_ = 0; + minorVersion_ = 0; + microVersion_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.OperatingSystemVersionMessagesProto + .internal_static_google_ads_admanager_v1_OperatingSystemVersion_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.OperatingSystemVersion getDefaultInstanceForType() { + return com.google.ads.admanager.v1.OperatingSystemVersion.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.OperatingSystemVersion build() { + com.google.ads.admanager.v1.OperatingSystemVersion result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.OperatingSystemVersion buildPartial() { + com.google.ads.admanager.v1.OperatingSystemVersion result = + new com.google.ads.admanager.v1.OperatingSystemVersion(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.OperatingSystemVersion result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.majorVersion_ = majorVersion_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.minorVersion_ = minorVersion_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.microVersion_ = microVersion_; + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.OperatingSystemVersion) { + return mergeFrom((com.google.ads.admanager.v1.OperatingSystemVersion) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.OperatingSystemVersion other) { + if (other == com.google.ads.admanager.v1.OperatingSystemVersion.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasMajorVersion()) { + setMajorVersion(other.getMajorVersion()); + } + if (other.hasMinorVersion()) { + setMinorVersion(other.getMinorVersion()); + } + if (other.hasMicroVersion()) { + setMicroVersion(other.getMicroVersion()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.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: + { + majorVersion_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + minorVersion_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + microVersion_ = input.readInt32(); + 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_ = ""; + + /** + * + * + *
+     * Identifier. The resource name of the `OperatingSystemVersion`.
+     * Format:
+     * `networks/{network_code}/operatingSystemVersions/{operating_system_version_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 `OperatingSystemVersion`.
+     * Format:
+     * `networks/{network_code}/operatingSystemVersions/{operating_system_version_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 `OperatingSystemVersion`.
+     * Format:
+     * `networks/{network_code}/operatingSystemVersions/{operating_system_version_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 `OperatingSystemVersion`.
+     * Format:
+     * `networks/{network_code}/operatingSystemVersions/{operating_system_version_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 `OperatingSystemVersion`.
+     * Format:
+     * `networks/{network_code}/operatingSystemVersions/{operating_system_version_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 int majorVersion_; + + /** + * + * + *
+     * Output only. The major version of the operating system.
+     * 
+ * + * optional int32 major_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the majorVersion field is set. + */ + @java.lang.Override + public boolean hasMajorVersion() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. The major version of the operating system.
+     * 
+ * + * optional int32 major_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The majorVersion. + */ + @java.lang.Override + public int getMajorVersion() { + return majorVersion_; + } + + /** + * + * + *
+     * Output only. The major version of the operating system.
+     * 
+ * + * optional int32 major_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The majorVersion to set. + * @return This builder for chaining. + */ + public Builder setMajorVersion(int value) { + + majorVersion_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The major version of the operating system.
+     * 
+ * + * optional int32 major_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMajorVersion() { + bitField0_ = (bitField0_ & ~0x00000002); + majorVersion_ = 0; + onChanged(); + return this; + } + + private int minorVersion_; + + /** + * + * + *
+     * Output only. The minor version of the operating system.
+     * 
+ * + * optional int32 minor_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the minorVersion field is set. + */ + @java.lang.Override + public boolean hasMinorVersion() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Output only. The minor version of the operating system.
+     * 
+ * + * optional int32 minor_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The minorVersion. + */ + @java.lang.Override + public int getMinorVersion() { + return minorVersion_; + } + + /** + * + * + *
+     * Output only. The minor version of the operating system.
+     * 
+ * + * optional int32 minor_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The minorVersion to set. + * @return This builder for chaining. + */ + public Builder setMinorVersion(int value) { + + minorVersion_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The minor version of the operating system.
+     * 
+ * + * optional int32 minor_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMinorVersion() { + bitField0_ = (bitField0_ & ~0x00000004); + minorVersion_ = 0; + onChanged(); + return this; + } + + private int microVersion_; + + /** + * + * + *
+     * Output only. The micro version of the operating system.
+     * 
+ * + * optional int32 micro_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the microVersion field is set. + */ + @java.lang.Override + public boolean hasMicroVersion() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Output only. The micro version of the operating system.
+     * 
+ * + * optional int32 micro_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The microVersion. + */ + @java.lang.Override + public int getMicroVersion() { + return microVersion_; + } + + /** + * + * + *
+     * Output only. The micro version of the operating system.
+     * 
+ * + * optional int32 micro_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The microVersion to set. + * @return This builder for chaining. + */ + public Builder setMicroVersion(int value) { + + microVersion_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The micro version of the operating system.
+     * 
+ * + * optional int32 micro_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMicroVersion() { + bitField0_ = (bitField0_ & ~0x00000008); + microVersion_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.OperatingSystemVersion) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.OperatingSystemVersion) + private static final com.google.ads.admanager.v1.OperatingSystemVersion DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.OperatingSystemVersion(); + } + + public static com.google.ads.admanager.v1.OperatingSystemVersion getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperatingSystemVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.OperatingSystemVersion getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OperatingSystemVersionMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OperatingSystemVersionMessagesProto.java new file mode 100644 index 000000000000..04409c7ce287 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OperatingSystemVersionMessagesProto.java @@ -0,0 +1,90 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/operating_system_version_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class OperatingSystemVersionMessagesProto { + private OperatingSystemVersionMessagesProto() {} + + 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_ads_admanager_v1_OperatingSystemVersion_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_OperatingSystemVersion_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/ads/admanager/v1/operating_syst" + + "em_version_messages.proto\022\027google.ads.ad" + + "manager.v1\032\037google/api/field_behavior.pr" + + "oto\032\031google/api/resource.proto\"\371\002\n\026Opera" + + "tingSystemVersion\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\037\n\r" + + "major_version\030\002 \001(\005B\003\340A\003H\000\210\001\001\022\037\n\rminor_v" + + "ersion\030\003 \001(\005B\003\340A\003H\001\210\001\001\022\037\n\rmicro_version\030" + + "\004 \001(\005B\003\340A\003H\002\210\001\001:\262\001\352A\256\001\n/admanager.google" + + "apis.com/OperatingSystemVersion\022Jnetwork" + + "s/{network_code}/operatingSystemVersions" + + "/{operating_system_version}*\027operatingSy" + + "stemVersions2\026operatingSystemVersionB\020\n\016" + + "_major_versionB\020\n\016_minor_versionB\020\n\016_mic" + + "ro_versionB\327\001\n\033com.google.ads.admanager." + + "v1B#OperatingSystemVersionMessagesProtoP" + + "\001Z@google.golang.org/genproto/googleapis" + + "/ads/admanager/v1;admanager\252\002\027Google.Ads" + + ".AdManager.V1\312\002\027Google\\Ads\\AdManager\\V1\352" + + "\002\032Google::Ads::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_ads_admanager_v1_OperatingSystemVersion_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_OperatingSystemVersion_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_OperatingSystemVersion_descriptor, + new java.lang.String[] { + "Name", "MajorVersion", "MinorVersion", "MicroVersion", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OperatingSystemVersionName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OperatingSystemVersionName.java new file mode 100644 index 000000000000..6b71d6c7a157 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OperatingSystemVersionName.java @@ -0,0 +1,202 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class OperatingSystemVersionName implements ResourceName { + private static final PathTemplate NETWORK_CODE_OPERATING_SYSTEM_VERSION = + PathTemplate.createWithoutUrlEncoding( + "networks/{network_code}/operatingSystemVersions/{operating_system_version}"); + private volatile Map fieldValuesMap; + private final String networkCode; + private final String operatingSystemVersion; + + @Deprecated + protected OperatingSystemVersionName() { + networkCode = null; + operatingSystemVersion = null; + } + + private OperatingSystemVersionName(Builder builder) { + networkCode = Preconditions.checkNotNull(builder.getNetworkCode()); + operatingSystemVersion = Preconditions.checkNotNull(builder.getOperatingSystemVersion()); + } + + public String getNetworkCode() { + return networkCode; + } + + public String getOperatingSystemVersion() { + return operatingSystemVersion; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static OperatingSystemVersionName of(String networkCode, String operatingSystemVersion) { + return newBuilder() + .setNetworkCode(networkCode) + .setOperatingSystemVersion(operatingSystemVersion) + .build(); + } + + public static String format(String networkCode, String operatingSystemVersion) { + return newBuilder() + .setNetworkCode(networkCode) + .setOperatingSystemVersion(operatingSystemVersion) + .build() + .toString(); + } + + public static OperatingSystemVersionName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + NETWORK_CODE_OPERATING_SYSTEM_VERSION.validatedMatch( + formattedString, + "OperatingSystemVersionName.parse: formattedString not in valid format"); + return of(matchMap.get("network_code"), matchMap.get("operating_system_version")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (OperatingSystemVersionName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return NETWORK_CODE_OPERATING_SYSTEM_VERSION.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (networkCode != null) { + fieldMapBuilder.put("network_code", networkCode); + } + if (operatingSystemVersion != null) { + fieldMapBuilder.put("operating_system_version", operatingSystemVersion); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return NETWORK_CODE_OPERATING_SYSTEM_VERSION.instantiate( + "network_code", networkCode, "operating_system_version", operatingSystemVersion); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + OperatingSystemVersionName that = ((OperatingSystemVersionName) o); + return Objects.equals(this.networkCode, that.networkCode) + && Objects.equals(this.operatingSystemVersion, that.operatingSystemVersion); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(networkCode); + h *= 1000003; + h ^= Objects.hashCode(operatingSystemVersion); + return h; + } + + /** Builder for networks/{network_code}/operatingSystemVersions/{operating_system_version}. */ + public static class Builder { + private String networkCode; + private String operatingSystemVersion; + + protected Builder() {} + + public String getNetworkCode() { + return networkCode; + } + + public String getOperatingSystemVersion() { + return operatingSystemVersion; + } + + public Builder setNetworkCode(String networkCode) { + this.networkCode = networkCode; + return this; + } + + public Builder setOperatingSystemVersion(String operatingSystemVersion) { + this.operatingSystemVersion = operatingSystemVersion; + return this; + } + + private Builder(OperatingSystemVersionName operatingSystemVersionName) { + this.networkCode = operatingSystemVersionName.networkCode; + this.operatingSystemVersion = operatingSystemVersionName.operatingSystemVersion; + } + + public OperatingSystemVersionName build() { + return new OperatingSystemVersionName(this); + } + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OperatingSystemVersionOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OperatingSystemVersionOrBuilder.java new file mode 100644 index 000000000000..c7263770ae08 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OperatingSystemVersionOrBuilder.java @@ -0,0 +1,134 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/operating_system_version_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface OperatingSystemVersionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.OperatingSystemVersion) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. The resource name of the `OperatingSystemVersion`.
+   * Format:
+   * `networks/{network_code}/operatingSystemVersions/{operating_system_version_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. The resource name of the `OperatingSystemVersion`.
+   * Format:
+   * `networks/{network_code}/operatingSystemVersions/{operating_system_version_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. The major version of the operating system.
+   * 
+ * + * optional int32 major_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the majorVersion field is set. + */ + boolean hasMajorVersion(); + + /** + * + * + *
+   * Output only. The major version of the operating system.
+   * 
+ * + * optional int32 major_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The majorVersion. + */ + int getMajorVersion(); + + /** + * + * + *
+   * Output only. The minor version of the operating system.
+   * 
+ * + * optional int32 minor_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the minorVersion field is set. + */ + boolean hasMinorVersion(); + + /** + * + * + *
+   * Output only. The minor version of the operating system.
+   * 
+ * + * optional int32 minor_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The minorVersion. + */ + int getMinorVersion(); + + /** + * + * + *
+   * Output only. The micro version of the operating system.
+   * 
+ * + * optional int32 micro_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the microVersion field is set. + */ + boolean hasMicroVersion(); + + /** + * + * + *
+   * Output only. The micro version of the operating system.
+   * 
+ * + * optional int32 micro_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The microVersion. + */ + int getMicroVersion(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OperatingSystemVersionServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OperatingSystemVersionServiceProto.java new file mode 100644 index 000000000000..349ffe920931 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OperatingSystemVersionServiceProto.java @@ -0,0 +1,142 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/operating_system_version_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class OperatingSystemVersionServiceProto { + private OperatingSystemVersionServiceProto() {} + + 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_ads_admanager_v1_GetOperatingSystemVersionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_GetOperatingSystemVersionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListOperatingSystemVersionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListOperatingSystemVersionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListOperatingSystemVersionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListOperatingSystemVersionsResponse_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/ads/admanager/v1/operating_system_version_service.proto\022\027google.ads.adm" + + "anager.v1\032?google/ads/admanager/v1/opera" + + "ting_system_version_messages.proto\032\034goog" + + "le/api/annotations.proto\032\027google/api/cli" + + "ent.proto\032\037google/api/field_behavior.proto\032\031google/api/resource.proto\"i\n" + + " GetOperatingSystemVersionRequest\022E\n" + + "\004name\030\001 \001(\tB7\340A\002\372A1\n" + + "/admanager.googleapis.com/OperatingSystemVersion\"\316\001\n" + + "\"ListOperatingSystemVersionsRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\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\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\022\021\n" + + "\004skip\030\006 \001(\005B\003\340A\001\"\246\001\n" + + "#ListOperatingSystemVersionsResponse\022R\n" + + "\031operating_system_versions\030\001" + + " \003(\0132/.google.ads.admanager.v1.OperatingSystemVersion\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\022\n\n" + + "total_size\030\003 \001(\0052\217\004\n" + + "\035OperatingSystemVersionService\022\307\001\n" + + "\031GetOperatingSystemVersion\0229.google.ads.admanage" + + "r.v1.GetOperatingSystemVersionRequest\032/.google.ads.admanager.v1.OperatingSystemV" + + "ersion\">\332A\004name\202\323\344\223\0021\022//v1/{name=networks/*/operatingSystemVersions/*}\022\332\001\n" + + "\033ListOperatingSystemVersions\022;.google.ads.adma" + + "nager.v1.ListOperatingSystemVersionsRequest\032<.google.ads.admanager.v1.ListOperat" + + "ingSystemVersionsResponse\"@\332A\006parent\202\323\344\223" + + "\0021\022//v1/{parent=networks/*}/operatingSys" + + "temVersions\032G\312A\030admanager.googleapis.com" + + "\322A)https://www.googleapis.com/auth/admanagerB\326\001\n" + + "\033com.google.ads.admanager.v1B\"OperatingSystemVersionServiceProtoP\001Z@goog" + + "le.golang.org/genproto/googleapis/ads/ad" + + "manager/v1;admanager\252\002\027Google.Ads.AdMana" + + "ger.V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032Googl" + + "e::Ads::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.admanager.v1.OperatingSystemVersionMessagesProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_ads_admanager_v1_GetOperatingSystemVersionRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_GetOperatingSystemVersionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_GetOperatingSystemVersionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_ads_admanager_v1_ListOperatingSystemVersionsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_ads_admanager_v1_ListOperatingSystemVersionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListOperatingSystemVersionsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", "Skip", + }); + internal_static_google_ads_admanager_v1_ListOperatingSystemVersionsResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_ads_admanager_v1_ListOperatingSystemVersionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListOperatingSystemVersionsResponse_descriptor, + new java.lang.String[] { + "OperatingSystemVersions", "NextPageToken", "TotalSize", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.ads.admanager.v1.OperatingSystemVersionMessagesProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Order.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Order.java index 39cdf519536c..b34e452be45a 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Order.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Order.java @@ -150,7 +150,23 @@ public com.google.protobuf.ByteString getNameBytes() { * Output only. Order ID. * * - * int64 order_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional int64 order_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the orderId field is set. + */ + @java.lang.Override + public boolean hasOrderId() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. Order ID.
+   * 
+ * + * optional int64 order_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The orderId. */ @@ -172,7 +188,24 @@ public long getOrderId() { * of 255 characters. * * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the displayName field is set. + */ + @java.lang.Override + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Required. The display name of the Order.  This value has a maximum length
+   * of 255 characters.
+   * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The displayName. */ @@ -197,7 +230,7 @@ public java.lang.String getDisplayName() { * of 255 characters. * * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for displayName. */ @@ -224,7 +257,23 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * Optional. Specifies whether or not the Order is a programmatic order. * * - * bool programmatic = 3 [(.google.api.field_behavior) = OPTIONAL]; + * optional bool programmatic = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the programmatic field is set. + */ + @java.lang.Override + public boolean hasProgrammatic() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Optional. Specifies whether or not the Order is a programmatic order.
+   * 
+ * + * optional bool programmatic = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The programmatic. */ @@ -247,7 +296,26 @@ public boolean getProgrammatic() { * * * - * string trafficker = 23 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * optional string trafficker = 23 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the trafficker field is set. + */ + @java.lang.Override + public boolean hasTrafficker() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Required. The resource name of the User responsible for trafficking the
+   * Order. Format: "networks/{network_code}/users/{user_id}"
+   * 
+ * + * + * optional string trafficker = 23 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The trafficker. @@ -274,7 +342,7 @@ public java.lang.String getTrafficker() { * * * - * string trafficker = 23 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * optional string trafficker = 23 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for trafficker. @@ -387,7 +455,27 @@ public com.google.protobuf.ByteString getAdvertiserContactsBytes(int index) { * * * - * string advertiser = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * optional string advertiser = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the advertiser field is set. + */ + @java.lang.Override + public boolean hasAdvertiser() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Required. The resource name of the Company, which is of type
+   * Company.Type.ADVERTISER, to which this order belongs. Format:
+   * "networks/{network_code}/companies/{company_id}"
+   * 
+ * + * + * optional string advertiser = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The advertiser. @@ -415,7 +503,7 @@ public java.lang.String getAdvertiser() { * * * - * string advertiser = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * optional string advertiser = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for advertiser. @@ -528,7 +616,27 @@ public com.google.protobuf.ByteString getAgencyContactsBytes(int index) { * * * - * string agency = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * optional string agency = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the agency field is set. + */ + @java.lang.Override + public boolean hasAgency() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+   * Optional. The resource name of the Company, which is of type
+   * Company.Type.AGENCY, with which this order is associated. Format:
+   * "networks/{network_code}/companies/{company_id}"
+   * 
+ * + * + * optional string agency = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The agency. @@ -556,7 +664,7 @@ public java.lang.String getAgency() { * * * - * string agency = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * optional string agency = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The bytes for agency. @@ -749,7 +857,27 @@ public com.google.protobuf.ByteString getEffectiveTeamsBytes(int index) { * * * - * string creator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * optional string creator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the creator field is set. + */ + @java.lang.Override + public boolean hasCreator() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+   * Output only. The resource name of the User who created the Order on behalf
+   * of the advertiser. This value is assigned by Google. Format:
+   * "networks/{network_code}/users/{user_id}"
+   * 
+ * + * + * optional string creator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @return The creator. @@ -777,7 +905,7 @@ public java.lang.String getCreator() { * * * - * string creator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * optional string creator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @return The bytes for creator. @@ -808,7 +936,24 @@ public com.google.protobuf.ByteString getCreatorBytes() { * the Order. This value is the network's currency code. * * - * string currency_code = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string currency_code = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the currencyCode field is set. + */ + @java.lang.Override + public boolean hasCurrencyCode() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+   * Output only. The ISO 4217 3-letter currency code for the currency used by
+   * the Order. This value is the network's currency code.
+   * 
+ * + * optional string currency_code = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The currencyCode. */ @@ -833,7 +978,7 @@ public java.lang.String getCurrencyCode() { * the Order. This value is the network's currency code. * * - * string currency_code = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string currency_code = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for currencyCode. */ @@ -862,14 +1007,15 @@ public com.google.protobuf.ByteString getCurrencyCodeBytes() { * of the order that has the earliest LineItem.start_time. * * - * .google.protobuf.Timestamp start_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp start_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the startTime field is set. */ @java.lang.Override public boolean hasStartTime() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -881,7 +1027,8 @@ public boolean hasStartTime() { * of the order that has the earliest LineItem.start_time. * * - * .google.protobuf.Timestamp start_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp start_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The startTime. @@ -900,7 +1047,8 @@ public com.google.protobuf.Timestamp getStartTime() { * of the order that has the earliest LineItem.start_time. * * - * .google.protobuf.Timestamp start_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp start_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override @@ -920,14 +1068,15 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * order that has the latest LineItem.end_time. * * - * .google.protobuf.Timestamp end_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp end_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the endTime field is set. */ @java.lang.Override public boolean hasEndTime() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** @@ -939,7 +1088,8 @@ public boolean hasEndTime() { * order that has the latest LineItem.end_time. * * - * .google.protobuf.Timestamp end_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp end_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The endTime. @@ -958,7 +1108,8 @@ public com.google.protobuf.Timestamp getEndTime() { * order that has the latest LineItem.end_time. * * - * .google.protobuf.Timestamp end_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp end_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override @@ -976,7 +1127,25 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * Output only. Indicates whether or not this Order has an end time. * * - * bool unlimited_end_time = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool unlimited_end_time = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the unlimitedEndTime field is set. + */ + @java.lang.Override + public boolean hasUnlimitedEndTime() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
+   * Output only. Indicates whether or not this Order has an end time.
+   * 
+ * + * optional bool unlimited_end_time = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The unlimitedEndTime. */ @@ -986,7 +1155,7 @@ public boolean getUnlimitedEndTime() { } public static final int EXTERNAL_ORDER_ID_FIELD_NUMBER = 13; - private long externalOrderId_ = 0L; + private int externalOrderId_ = 0; /** * @@ -996,12 +1165,29 @@ public boolean getUnlimitedEndTime() { * key to an external system. * * - * int64 external_order_id = 13 [(.google.api.field_behavior) = OPTIONAL]; + * optional int32 external_order_id = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the externalOrderId field is set. + */ + @java.lang.Override + public boolean hasExternalOrderId() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
+   * Optional. An arbitrary ID to associate to the Order, which can be used as a
+   * key to an external system.
+   * 
+ * + * optional int32 external_order_id = 13 [(.google.api.field_behavior) = OPTIONAL]; * * @return The externalOrderId. */ @java.lang.Override - public long getExternalOrderId() { + public int getExternalOrderId() { return externalOrderId_; } @@ -1015,7 +1201,23 @@ public long getExternalOrderId() { * Output only. The archival status of the Order. * * - * bool archived = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool archived = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the archived field is set. + */ + @java.lang.Override + public boolean hasArchived() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
+   * Output only. The archival status of the Order.
+   * 
+ * + * optional bool archived = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The archived. */ @@ -1037,7 +1239,26 @@ public boolean getArchived() { * assigned by Google. * * - * string last_modified_by_app = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string last_modified_by_app = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the lastModifiedByApp field is set. + */ + @java.lang.Override + public boolean hasLastModifiedByApp() { + return ((bitField0_ & 0x00002000) != 0); + } + + /** + * + * + *
+   * Output only. The application which modified this order. This attribute is
+   * assigned by Google.
+   * 
+ * + * optional string last_modified_by_app = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The lastModifiedByApp. */ @@ -1062,7 +1283,8 @@ public java.lang.String getLastModifiedByApp() { * assigned by Google. * * - * string last_modified_by_app = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string last_modified_by_app = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The bytes for lastModifiedByApp. */ @@ -1089,14 +1311,15 @@ public com.google.protobuf.ByteString getLastModifiedByAppBytes() { * Output only. The instant this Order was last modified. * * - * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the updateTime field is set. */ @java.lang.Override public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00004000) != 0); } /** @@ -1106,7 +1329,8 @@ public boolean hasUpdateTime() { * Output only. The instant this Order was last modified. * * - * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The updateTime. @@ -1123,7 +1347,8 @@ public com.google.protobuf.Timestamp getUpdateTime() { * Output only. The instant this Order was last modified. * * - * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override @@ -1144,7 +1369,24 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * attribute has a maximum length of 65,535 characters. * * - * string notes = 17 [(.google.api.field_behavior) = OPTIONAL]; + * optional string notes = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the notes field is set. + */ + @java.lang.Override + public boolean hasNotes() { + return ((bitField0_ & 0x00008000) != 0); + } + + /** + * + * + *
+   * Optional. Provides any additional notes that may annotate the Order. This
+   * attribute has a maximum length of 65,535 characters.
+   * 
+ * + * optional string notes = 17 [(.google.api.field_behavior) = OPTIONAL]; * * @return The notes. */ @@ -1169,7 +1411,7 @@ public java.lang.String getNotes() { * attribute has a maximum length of 65,535 characters. * * - * string notes = 17 [(.google.api.field_behavior) = OPTIONAL]; + * optional string notes = 17 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for notes. */ @@ -1199,7 +1441,24 @@ public com.google.protobuf.ByteString getNotesBytes() { * length of 63 characters. * * - * string po_number = 18 [(.google.api.field_behavior) = OPTIONAL]; + * optional string po_number = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the poNumber field is set. + */ + @java.lang.Override + public boolean hasPoNumber() { + return ((bitField0_ & 0x00010000) != 0); + } + + /** + * + * + *
+   * Optional. The purchase order number for the Order. This value has a maximum
+   * length of 63 characters.
+   * 
+ * + * optional string po_number = 18 [(.google.api.field_behavior) = OPTIONAL]; * * @return The poNumber. */ @@ -1224,7 +1483,7 @@ public java.lang.String getPoNumber() { * length of 63 characters. * * - * string po_number = 18 [(.google.api.field_behavior) = OPTIONAL]; + * optional string po_number = 18 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for poNumber. */ @@ -1252,7 +1511,25 @@ public com.google.protobuf.ByteString getPoNumberBytes() { * * * - * .google.ads.admanager.v1.OrderStatusEnum.OrderStatus status = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.OrderStatusEnum.OrderStatus status = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00020000) != 0); + } + + /** + * + * + *
+   * Output only. The status of the Order.
+   * 
+ * + * + * optional .google.ads.admanager.v1.OrderStatusEnum.OrderStatus status = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for status. @@ -1270,7 +1547,7 @@ public int getStatusValue() { * * * - * .google.ads.admanager.v1.OrderStatusEnum.OrderStatus status = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.OrderStatusEnum.OrderStatus status = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The status. @@ -1298,7 +1575,26 @@ public com.google.ads.admanager.v1.OrderStatusEnum.OrderStatus getStatus() { * * * - * string salesperson = 21 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * optional string salesperson = 21 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the salesperson field is set. + */ + @java.lang.Override + public boolean hasSalesperson() { + return ((bitField0_ & 0x00040000) != 0); + } + + /** + * + * + *
+   * Optional. The resource name of the User responsible for the sales of the
+   * Order. Format: "networks/{network_code}/users/{user_id}"
+   * 
+ * + * + * optional string salesperson = 21 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The salesperson. @@ -1325,7 +1621,7 @@ public java.lang.String getSalesperson() { * * * - * string salesperson = 21 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * optional string salesperson = 21 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The bytes for salesperson. @@ -1803,73 +2099,71 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } - if (programmatic_ != false) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeBool(3, programmatic_); } - if (orderId_ != 0L) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(4, orderId_); } for (int i = 0; i < advertiserContacts_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, advertiserContacts_.getRaw(i)); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(advertiser_)) { + if (((bitField0_ & 0x00000010) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, advertiser_); } for (int i = 0; i < agencyContacts_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, agencyContacts_.getRaw(i)); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(agency_)) { + if (((bitField0_ & 0x00000020) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, agency_); } for (int i = 0; i < appliedTeams_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, appliedTeams_.getRaw(i)); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(creator_)) { + if (((bitField0_ & 0x00000040) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, creator_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currencyCode_)) { + if (((bitField0_ & 0x00000080) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, currencyCode_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { output.writeMessage(12, getEndTime()); } - if (externalOrderId_ != 0L) { - output.writeInt64(13, externalOrderId_); + if (((bitField0_ & 0x00000800) != 0)) { + output.writeInt32(13, externalOrderId_); } - if (archived_ != false) { + if (((bitField0_ & 0x00001000) != 0)) { output.writeBool(14, archived_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastModifiedByApp_)) { + if (((bitField0_ & 0x00002000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 15, lastModifiedByApp_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00004000) != 0)) { output.writeMessage(16, getUpdateTime()); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(notes_)) { + if (((bitField0_ & 0x00008000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 17, notes_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(poNumber_)) { + if (((bitField0_ & 0x00010000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 18, poNumber_); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { output.writeMessage(19, getStartTime()); } - if (status_ - != com.google.ads.admanager.v1.OrderStatusEnum.OrderStatus.ORDER_STATUS_UNSPECIFIED - .getNumber()) { + if (((bitField0_ & 0x00020000) != 0)) { output.writeEnum(20, status_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(salesperson_)) { + if (((bitField0_ & 0x00040000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 21, salesperson_); } for (int i = 0; i < secondarySalespeople_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString( output, 22, secondarySalespeople_.getRaw(i)); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(trafficker_)) { + if (((bitField0_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 23, trafficker_); } for (int i = 0; i < secondaryTraffickers_.size(); i++) { @@ -1888,7 +2182,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < customFieldValues_.size(); i++) { output.writeMessage(38, customFieldValues_.get(i)); } - if (unlimitedEndTime_ != false) { + if (((bitField0_ & 0x00000400) != 0)) { output.writeBool(45, unlimitedEndTime_); } getUnknownFields().writeTo(output); @@ -1903,13 +2197,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } - if (programmatic_ != false) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, programmatic_); } - if (orderId_ != 0L) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, orderId_); } { @@ -1920,7 +2214,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getAdvertiserContactsList().size(); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(advertiser_)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, advertiser_); } { @@ -1931,7 +2225,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getAgencyContactsList().size(); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(agency_)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, agency_); } { @@ -1942,42 +2236,40 @@ public int getSerializedSize() { size += dataSize; size += 1 * getAppliedTeamsList().size(); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(creator_)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, creator_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currencyCode_)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, currencyCode_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getEndTime()); } - if (externalOrderId_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(13, externalOrderId_); + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(13, externalOrderId_); } - if (archived_ != false) { + if (((bitField0_ & 0x00001000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, archived_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastModifiedByApp_)) { + if (((bitField0_ & 0x00002000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, lastModifiedByApp_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00004000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getUpdateTime()); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(notes_)) { + if (((bitField0_ & 0x00008000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, notes_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(poNumber_)) { + if (((bitField0_ & 0x00010000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, poNumber_); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getStartTime()); } - if (status_ - != com.google.ads.admanager.v1.OrderStatusEnum.OrderStatus.ORDER_STATUS_UNSPECIFIED - .getNumber()) { + if (((bitField0_ & 0x00020000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(20, status_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(salesperson_)) { + if (((bitField0_ & 0x00040000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, salesperson_); } { @@ -1988,7 +2280,7 @@ public int getSerializedSize() { size += dataSize; size += 2 * getSecondarySalespeopleList().size(); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(trafficker_)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, trafficker_); } { @@ -2019,7 +2311,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(38, customFieldValues_.get(i)); } - if (unlimitedEndTime_ != false) { + if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(45, unlimitedEndTime_); } size += getUnknownFields().getSerializedSize(); @@ -2038,18 +2330,42 @@ public boolean equals(final java.lang.Object obj) { com.google.ads.admanager.v1.Order other = (com.google.ads.admanager.v1.Order) obj; if (!getName().equals(other.getName())) return false; - if (getOrderId() != other.getOrderId()) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (getProgrammatic() != other.getProgrammatic()) return false; - if (!getTrafficker().equals(other.getTrafficker())) return false; + if (hasOrderId() != other.hasOrderId()) return false; + if (hasOrderId()) { + if (getOrderId() != other.getOrderId()) return false; + } + if (hasDisplayName() != other.hasDisplayName()) return false; + if (hasDisplayName()) { + if (!getDisplayName().equals(other.getDisplayName())) return false; + } + if (hasProgrammatic() != other.hasProgrammatic()) return false; + if (hasProgrammatic()) { + if (getProgrammatic() != other.getProgrammatic()) return false; + } + if (hasTrafficker() != other.hasTrafficker()) return false; + if (hasTrafficker()) { + if (!getTrafficker().equals(other.getTrafficker())) return false; + } if (!getAdvertiserContactsList().equals(other.getAdvertiserContactsList())) return false; - if (!getAdvertiser().equals(other.getAdvertiser())) return false; + if (hasAdvertiser() != other.hasAdvertiser()) return false; + if (hasAdvertiser()) { + if (!getAdvertiser().equals(other.getAdvertiser())) return false; + } if (!getAgencyContactsList().equals(other.getAgencyContactsList())) return false; - if (!getAgency().equals(other.getAgency())) return false; + if (hasAgency() != other.hasAgency()) return false; + if (hasAgency()) { + if (!getAgency().equals(other.getAgency())) return false; + } if (!getAppliedTeamsList().equals(other.getAppliedTeamsList())) return false; if (!getEffectiveTeamsList().equals(other.getEffectiveTeamsList())) return false; - if (!getCreator().equals(other.getCreator())) return false; - if (!getCurrencyCode().equals(other.getCurrencyCode())) return false; + if (hasCreator() != other.hasCreator()) return false; + if (hasCreator()) { + if (!getCreator().equals(other.getCreator())) return false; + } + if (hasCurrencyCode() != other.hasCurrencyCode()) return false; + if (hasCurrencyCode()) { + if (!getCurrencyCode().equals(other.getCurrencyCode())) return false; + } if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { if (!getStartTime().equals(other.getStartTime())) return false; @@ -2058,18 +2374,42 @@ public boolean equals(final java.lang.Object obj) { if (hasEndTime()) { if (!getEndTime().equals(other.getEndTime())) return false; } - if (getUnlimitedEndTime() != other.getUnlimitedEndTime()) return false; - if (getExternalOrderId() != other.getExternalOrderId()) return false; - if (getArchived() != other.getArchived()) return false; - if (!getLastModifiedByApp().equals(other.getLastModifiedByApp())) return false; + if (hasUnlimitedEndTime() != other.hasUnlimitedEndTime()) return false; + if (hasUnlimitedEndTime()) { + if (getUnlimitedEndTime() != other.getUnlimitedEndTime()) return false; + } + if (hasExternalOrderId() != other.hasExternalOrderId()) return false; + if (hasExternalOrderId()) { + if (getExternalOrderId() != other.getExternalOrderId()) return false; + } + if (hasArchived() != other.hasArchived()) return false; + if (hasArchived()) { + if (getArchived() != other.getArchived()) return false; + } + if (hasLastModifiedByApp() != other.hasLastModifiedByApp()) return false; + if (hasLastModifiedByApp()) { + if (!getLastModifiedByApp().equals(other.getLastModifiedByApp())) return false; + } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { if (!getUpdateTime().equals(other.getUpdateTime())) return false; } - if (!getNotes().equals(other.getNotes())) return false; - if (!getPoNumber().equals(other.getPoNumber())) return false; - if (status_ != other.status_) return false; - if (!getSalesperson().equals(other.getSalesperson())) return false; + if (hasNotes() != other.hasNotes()) return false; + if (hasNotes()) { + if (!getNotes().equals(other.getNotes())) return false; + } + if (hasPoNumber() != other.hasPoNumber()) return false; + if (hasPoNumber()) { + if (!getPoNumber().equals(other.getPoNumber())) return false; + } + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (status_ != other.status_) return false; + } + if (hasSalesperson() != other.hasSalesperson()) return false; + if (hasSalesperson()) { + if (!getSalesperson().equals(other.getSalesperson())) return false; + } if (!getSecondarySalespeopleList().equals(other.getSecondarySalespeopleList())) return false; if (!getSecondaryTraffickersList().equals(other.getSecondaryTraffickersList())) return false; if (!getAppliedLabelsList().equals(other.getAppliedLabelsList())) return false; @@ -2089,26 +2429,38 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + ORDER_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getOrderId()); - hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - hash = (37 * hash) + PROGRAMMATIC_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getProgrammatic()); - hash = (37 * hash) + TRAFFICKER_FIELD_NUMBER; - hash = (53 * hash) + getTrafficker().hashCode(); + if (hasOrderId()) { + hash = (37 * hash) + ORDER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getOrderId()); + } + if (hasDisplayName()) { + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + } + if (hasProgrammatic()) { + hash = (37 * hash) + PROGRAMMATIC_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getProgrammatic()); + } + if (hasTrafficker()) { + hash = (37 * hash) + TRAFFICKER_FIELD_NUMBER; + hash = (53 * hash) + getTrafficker().hashCode(); + } if (getAdvertiserContactsCount() > 0) { hash = (37 * hash) + ADVERTISER_CONTACTS_FIELD_NUMBER; hash = (53 * hash) + getAdvertiserContactsList().hashCode(); } - hash = (37 * hash) + ADVERTISER_FIELD_NUMBER; - hash = (53 * hash) + getAdvertiser().hashCode(); + if (hasAdvertiser()) { + hash = (37 * hash) + ADVERTISER_FIELD_NUMBER; + hash = (53 * hash) + getAdvertiser().hashCode(); + } if (getAgencyContactsCount() > 0) { hash = (37 * hash) + AGENCY_CONTACTS_FIELD_NUMBER; hash = (53 * hash) + getAgencyContactsList().hashCode(); } - hash = (37 * hash) + AGENCY_FIELD_NUMBER; - hash = (53 * hash) + getAgency().hashCode(); + if (hasAgency()) { + hash = (37 * hash) + AGENCY_FIELD_NUMBER; + hash = (53 * hash) + getAgency().hashCode(); + } if (getAppliedTeamsCount() > 0) { hash = (37 * hash) + APPLIED_TEAMS_FIELD_NUMBER; hash = (53 * hash) + getAppliedTeamsList().hashCode(); @@ -2117,10 +2469,14 @@ public int hashCode() { hash = (37 * hash) + EFFECTIVE_TEAMS_FIELD_NUMBER; hash = (53 * hash) + getEffectiveTeamsList().hashCode(); } - hash = (37 * hash) + CREATOR_FIELD_NUMBER; - hash = (53 * hash) + getCreator().hashCode(); - hash = (37 * hash) + CURRENCY_CODE_FIELD_NUMBER; - hash = (53 * hash) + getCurrencyCode().hashCode(); + if (hasCreator()) { + hash = (37 * hash) + CREATOR_FIELD_NUMBER; + hash = (53 * hash) + getCreator().hashCode(); + } + if (hasCurrencyCode()) { + hash = (37 * hash) + CURRENCY_CODE_FIELD_NUMBER; + hash = (53 * hash) + getCurrencyCode().hashCode(); + } if (hasStartTime()) { hash = (37 * hash) + START_TIME_FIELD_NUMBER; hash = (53 * hash) + getStartTime().hashCode(); @@ -2129,26 +2485,42 @@ public int hashCode() { hash = (37 * hash) + END_TIME_FIELD_NUMBER; hash = (53 * hash) + getEndTime().hashCode(); } - hash = (37 * hash) + UNLIMITED_END_TIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUnlimitedEndTime()); - hash = (37 * hash) + EXTERNAL_ORDER_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getExternalOrderId()); - hash = (37 * hash) + ARCHIVED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getArchived()); - hash = (37 * hash) + LAST_MODIFIED_BY_APP_FIELD_NUMBER; - hash = (53 * hash) + getLastModifiedByApp().hashCode(); + if (hasUnlimitedEndTime()) { + hash = (37 * hash) + UNLIMITED_END_TIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUnlimitedEndTime()); + } + if (hasExternalOrderId()) { + hash = (37 * hash) + EXTERNAL_ORDER_ID_FIELD_NUMBER; + hash = (53 * hash) + getExternalOrderId(); + } + if (hasArchived()) { + hash = (37 * hash) + ARCHIVED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getArchived()); + } + if (hasLastModifiedByApp()) { + hash = (37 * hash) + LAST_MODIFIED_BY_APP_FIELD_NUMBER; + hash = (53 * hash) + getLastModifiedByApp().hashCode(); + } if (hasUpdateTime()) { hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getUpdateTime().hashCode(); } - hash = (37 * hash) + NOTES_FIELD_NUMBER; - hash = (53 * hash) + getNotes().hashCode(); - hash = (37 * hash) + PO_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + getPoNumber().hashCode(); - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + status_; - hash = (37 * hash) + SALESPERSON_FIELD_NUMBER; - hash = (53 * hash) + getSalesperson().hashCode(); + if (hasNotes()) { + hash = (37 * hash) + NOTES_FIELD_NUMBER; + hash = (53 * hash) + getNotes().hashCode(); + } + if (hasPoNumber()) { + hash = (37 * hash) + PO_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getPoNumber().hashCode(); + } + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + } + if (hasSalesperson()) { + hash = (37 * hash) + SALESPERSON_FIELD_NUMBER; + hash = (53 * hash) + getSalesperson().hashCode(); + } if (getSecondarySalespeopleCount() > 0) { hash = (37 * hash) + SECONDARY_SALESPEOPLE_FIELD_NUMBER; hash = (53 * hash) + getSecondarySalespeopleList().hashCode(); @@ -2346,7 +2718,7 @@ public Builder clear() { endTimeBuilder_ = null; } unlimitedEndTime_ = false; - externalOrderId_ = 0L; + externalOrderId_ = 0; archived_ = false; lastModifiedByApp_ = ""; updateTime_ = null; @@ -2450,17 +2822,22 @@ private void buildPartial0(com.google.ads.admanager.v1.Order result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.orderId_ = orderId_; + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.displayName_ = displayName_; + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.programmatic_ = programmatic_; + to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { result.trafficker_ = trafficker_; + to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000020) != 0)) { advertiserContacts_.makeImmutable(); @@ -2468,6 +2845,7 @@ private void buildPartial0(com.google.ads.admanager.v1.Order result) { } if (((from_bitField0_ & 0x00000040) != 0)) { result.advertiser_ = advertiser_; + to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000080) != 0)) { agencyContacts_.makeImmutable(); @@ -2475,6 +2853,7 @@ private void buildPartial0(com.google.ads.admanager.v1.Order result) { } if (((from_bitField0_ & 0x00000100) != 0)) { result.agency_ = agency_; + to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000200) != 0)) { appliedTeams_.makeImmutable(); @@ -2486,46 +2865,55 @@ private void buildPartial0(com.google.ads.admanager.v1.Order result) { } if (((from_bitField0_ & 0x00000800) != 0)) { result.creator_ = creator_; + to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00001000) != 0)) { result.currencyCode_ = currencyCode_; + to_bitField0_ |= 0x00000080; } - int to_bitField0_ = 0; if (((from_bitField0_ & 0x00002000) != 0)) { result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); - to_bitField0_ |= 0x00000001; + to_bitField0_ |= 0x00000100; } if (((from_bitField0_ & 0x00004000) != 0)) { result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); - to_bitField0_ |= 0x00000002; + to_bitField0_ |= 0x00000200; } if (((from_bitField0_ & 0x00008000) != 0)) { result.unlimitedEndTime_ = unlimitedEndTime_; + to_bitField0_ |= 0x00000400; } if (((from_bitField0_ & 0x00010000) != 0)) { result.externalOrderId_ = externalOrderId_; + to_bitField0_ |= 0x00000800; } if (((from_bitField0_ & 0x00020000) != 0)) { result.archived_ = archived_; + to_bitField0_ |= 0x00001000; } if (((from_bitField0_ & 0x00040000) != 0)) { result.lastModifiedByApp_ = lastModifiedByApp_; + to_bitField0_ |= 0x00002000; } if (((from_bitField0_ & 0x00080000) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); - to_bitField0_ |= 0x00000004; + to_bitField0_ |= 0x00004000; } if (((from_bitField0_ & 0x00100000) != 0)) { result.notes_ = notes_; + to_bitField0_ |= 0x00008000; } if (((from_bitField0_ & 0x00200000) != 0)) { result.poNumber_ = poNumber_; + to_bitField0_ |= 0x00010000; } if (((from_bitField0_ & 0x00400000) != 0)) { result.status_ = status_; + to_bitField0_ |= 0x00020000; } if (((from_bitField0_ & 0x00800000) != 0)) { result.salesperson_ = salesperson_; + to_bitField0_ |= 0x00040000; } if (((from_bitField0_ & 0x01000000) != 0)) { secondarySalespeople_.makeImmutable(); @@ -2588,18 +2976,18 @@ public Builder mergeFrom(com.google.ads.admanager.v1.Order other) { bitField0_ |= 0x00000001; onChanged(); } - if (other.getOrderId() != 0L) { + if (other.hasOrderId()) { setOrderId(other.getOrderId()); } - if (!other.getDisplayName().isEmpty()) { + if (other.hasDisplayName()) { displayName_ = other.displayName_; bitField0_ |= 0x00000004; onChanged(); } - if (other.getProgrammatic() != false) { + if (other.hasProgrammatic()) { setProgrammatic(other.getProgrammatic()); } - if (!other.getTrafficker().isEmpty()) { + if (other.hasTrafficker()) { trafficker_ = other.trafficker_; bitField0_ |= 0x00000010; onChanged(); @@ -2614,7 +3002,7 @@ public Builder mergeFrom(com.google.ads.admanager.v1.Order other) { } onChanged(); } - if (!other.getAdvertiser().isEmpty()) { + if (other.hasAdvertiser()) { advertiser_ = other.advertiser_; bitField0_ |= 0x00000040; onChanged(); @@ -2629,7 +3017,7 @@ public Builder mergeFrom(com.google.ads.admanager.v1.Order other) { } onChanged(); } - if (!other.getAgency().isEmpty()) { + if (other.hasAgency()) { agency_ = other.agency_; bitField0_ |= 0x00000100; onChanged(); @@ -2654,12 +3042,12 @@ public Builder mergeFrom(com.google.ads.admanager.v1.Order other) { } onChanged(); } - if (!other.getCreator().isEmpty()) { + if (other.hasCreator()) { creator_ = other.creator_; bitField0_ |= 0x00000800; onChanged(); } - if (!other.getCurrencyCode().isEmpty()) { + if (other.hasCurrencyCode()) { currencyCode_ = other.currencyCode_; bitField0_ |= 0x00001000; onChanged(); @@ -2670,16 +3058,16 @@ public Builder mergeFrom(com.google.ads.admanager.v1.Order other) { if (other.hasEndTime()) { mergeEndTime(other.getEndTime()); } - if (other.getUnlimitedEndTime() != false) { + if (other.hasUnlimitedEndTime()) { setUnlimitedEndTime(other.getUnlimitedEndTime()); } - if (other.getExternalOrderId() != 0L) { + if (other.hasExternalOrderId()) { setExternalOrderId(other.getExternalOrderId()); } - if (other.getArchived() != false) { + if (other.hasArchived()) { setArchived(other.getArchived()); } - if (!other.getLastModifiedByApp().isEmpty()) { + if (other.hasLastModifiedByApp()) { lastModifiedByApp_ = other.lastModifiedByApp_; bitField0_ |= 0x00040000; onChanged(); @@ -2687,20 +3075,20 @@ public Builder mergeFrom(com.google.ads.admanager.v1.Order other) { if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } - if (!other.getNotes().isEmpty()) { + if (other.hasNotes()) { notes_ = other.notes_; bitField0_ |= 0x00100000; onChanged(); } - if (!other.getPoNumber().isEmpty()) { + if (other.hasPoNumber()) { poNumber_ = other.poNumber_; bitField0_ |= 0x00200000; onChanged(); } - if (other.status_ != 0) { - setStatusValue(other.getStatusValue()); + if (other.hasStatus()) { + setStatus(other.getStatus()); } - if (!other.getSalesperson().isEmpty()) { + if (other.hasSalesperson()) { salesperson_ = other.salesperson_; bitField0_ |= 0x00800000; onChanged(); @@ -2909,7 +3297,7 @@ public Builder mergeFrom( } // case 98 case 104: { - externalOrderId_ = input.readInt64(); + externalOrderId_ = input.readInt32(); bitField0_ |= 0x00010000; break; } // case 104 @@ -3177,7 +3565,23 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * Output only. Order ID. * * - * int64 order_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional int64 order_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the orderId field is set. + */ + @java.lang.Override + public boolean hasOrderId() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. Order ID.
+     * 
+ * + * optional int64 order_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The orderId. */ @@ -3193,7 +3597,7 @@ public long getOrderId() { * Output only. Order ID. * * - * int64 order_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional int64 order_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The orderId to set. * @return This builder for chaining. @@ -3213,7 +3617,7 @@ public Builder setOrderId(long value) { * Output only. Order ID. * * - * int64 order_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional int64 order_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -3234,7 +3638,23 @@ public Builder clearOrderId() { * of 255 characters. * * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the displayName field is set. + */ + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. The display name of the Order.  This value has a maximum length
+     * of 255 characters.
+     * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The displayName. */ @@ -3258,7 +3678,7 @@ public java.lang.String getDisplayName() { * of 255 characters. * * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for displayName. */ @@ -3282,7 +3702,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * of 255 characters. * * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @param value The displayName to set. * @return This builder for chaining. @@ -3305,7 +3725,7 @@ public Builder setDisplayName(java.lang.String value) { * of 255 characters. * * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ @@ -3324,7 +3744,7 @@ public Builder clearDisplayName() { * of 255 characters. * * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for displayName to set. * @return This builder for chaining. @@ -3349,7 +3769,23 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * Optional. Specifies whether or not the Order is a programmatic order. * * - * bool programmatic = 3 [(.google.api.field_behavior) = OPTIONAL]; + * optional bool programmatic = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the programmatic field is set. + */ + @java.lang.Override + public boolean hasProgrammatic() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Optional. Specifies whether or not the Order is a programmatic order.
+     * 
+ * + * optional bool programmatic = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The programmatic. */ @@ -3365,7 +3801,7 @@ public boolean getProgrammatic() { * Optional. Specifies whether or not the Order is a programmatic order. * * - * bool programmatic = 3 [(.google.api.field_behavior) = OPTIONAL]; + * optional bool programmatic = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The programmatic to set. * @return This builder for chaining. @@ -3385,7 +3821,7 @@ public Builder setProgrammatic(boolean value) { * Optional. Specifies whether or not the Order is a programmatic order. * * - * bool programmatic = 3 [(.google.api.field_behavior) = OPTIONAL]; + * optional bool programmatic = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -3407,7 +3843,25 @@ public Builder clearProgrammatic() { * * * - * string trafficker = 23 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * optional string trafficker = 23 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the trafficker field is set. + */ + public boolean hasTrafficker() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Required. The resource name of the User responsible for trafficking the
+     * Order. Format: "networks/{network_code}/users/{user_id}"
+     * 
+ * + * + * optional string trafficker = 23 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The trafficker. @@ -3433,7 +3887,7 @@ public java.lang.String getTrafficker() { * * * - * string trafficker = 23 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * optional string trafficker = 23 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for trafficker. @@ -3459,7 +3913,7 @@ public com.google.protobuf.ByteString getTraffickerBytes() { * * * - * string trafficker = 23 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * optional string trafficker = 23 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The trafficker to set. @@ -3484,7 +3938,7 @@ public Builder setTrafficker(java.lang.String value) { * * * - * string trafficker = 23 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * optional string trafficker = 23 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -3505,7 +3959,7 @@ public Builder clearTrafficker() { * * * - * string trafficker = 23 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * optional string trafficker = 23 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The bytes for trafficker to set. @@ -3744,7 +4198,26 @@ public Builder addAdvertiserContactsBytes(com.google.protobuf.ByteString value) * * * - * string advertiser = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * optional string advertiser = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the advertiser field is set. + */ + public boolean hasAdvertiser() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Required. The resource name of the Company, which is of type
+     * Company.Type.ADVERTISER, to which this order belongs. Format:
+     * "networks/{network_code}/companies/{company_id}"
+     * 
+ * + * + * optional string advertiser = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The advertiser. @@ -3771,7 +4244,7 @@ public java.lang.String getAdvertiser() { * * * - * string advertiser = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * optional string advertiser = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for advertiser. @@ -3798,7 +4271,7 @@ public com.google.protobuf.ByteString getAdvertiserBytes() { * * * - * string advertiser = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * optional string advertiser = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The advertiser to set. @@ -3824,7 +4297,7 @@ public Builder setAdvertiser(java.lang.String value) { * * * - * string advertiser = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * optional string advertiser = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -3846,7 +4319,7 @@ public Builder clearAdvertiser() { * * * - * string advertiser = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * optional string advertiser = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The bytes for advertiser to set. @@ -4085,7 +4558,26 @@ public Builder addAgencyContactsBytes(com.google.protobuf.ByteString value) { * * * - * string agency = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * optional string agency = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the agency field is set. + */ + public boolean hasAgency() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
+     * Optional. The resource name of the Company, which is of type
+     * Company.Type.AGENCY, with which this order is associated. Format:
+     * "networks/{network_code}/companies/{company_id}"
+     * 
+ * + * + * optional string agency = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The agency. @@ -4112,7 +4604,7 @@ public java.lang.String getAgency() { * * * - * string agency = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * optional string agency = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The bytes for agency. @@ -4139,7 +4631,7 @@ public com.google.protobuf.ByteString getAgencyBytes() { * * * - * string agency = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * optional string agency = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @param value The agency to set. @@ -4165,7 +4657,7 @@ public Builder setAgency(java.lang.String value) { * * * - * string agency = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * optional string agency = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -4187,7 +4679,7 @@ public Builder clearAgency() { * * * - * string agency = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * optional string agency = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @param value The bytes for agency to set. @@ -4636,7 +5128,26 @@ public Builder addEffectiveTeamsBytes(com.google.protobuf.ByteString value) { * * * - * string creator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * optional string creator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the creator field is set. + */ + public boolean hasCreator() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
+     * Output only. The resource name of the User who created the Order on behalf
+     * of the advertiser. This value is assigned by Google. Format:
+     * "networks/{network_code}/users/{user_id}"
+     * 
+ * + * + * optional string creator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @return The creator. @@ -4663,7 +5174,7 @@ public java.lang.String getCreator() { * * * - * string creator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * optional string creator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @return The bytes for creator. @@ -4690,7 +5201,7 @@ public com.google.protobuf.ByteString getCreatorBytes() { * * * - * string creator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * optional string creator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @param value The creator to set. @@ -4716,7 +5227,7 @@ public Builder setCreator(java.lang.String value) { * * * - * string creator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * optional string creator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -4738,7 +5249,7 @@ public Builder clearCreator() { * * * - * string creator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * optional string creator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @param value The bytes for creator to set. @@ -4765,7 +5276,23 @@ public Builder setCreatorBytes(com.google.protobuf.ByteString value) { * the Order. This value is the network's currency code. * * - * string currency_code = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string currency_code = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the currencyCode field is set. + */ + public boolean hasCurrencyCode() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
+     * Output only. The ISO 4217 3-letter currency code for the currency used by
+     * the Order. This value is the network's currency code.
+     * 
+ * + * optional string currency_code = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The currencyCode. */ @@ -4789,7 +5316,7 @@ public java.lang.String getCurrencyCode() { * the Order. This value is the network's currency code. * * - * string currency_code = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string currency_code = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for currencyCode. */ @@ -4813,7 +5340,7 @@ public com.google.protobuf.ByteString getCurrencyCodeBytes() { * the Order. This value is the network's currency code. * * - * string currency_code = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string currency_code = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The currencyCode to set. * @return This builder for chaining. @@ -4836,7 +5363,7 @@ public Builder setCurrencyCode(java.lang.String value) { * the Order. This value is the network's currency code. * * - * string currency_code = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string currency_code = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -4855,7 +5382,7 @@ public Builder clearCurrencyCode() { * the Order. This value is the network's currency code. * * - * string currency_code = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string currency_code = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for currencyCode to set. * @return This builder for chaining. @@ -4888,7 +5415,7 @@ public Builder setCurrencyCodeBytes(com.google.protobuf.ByteString value) { * * * - * .google.protobuf.Timestamp start_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.protobuf.Timestamp start_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the startTime field is set. @@ -4907,7 +5434,7 @@ public boolean hasStartTime() { * * * - * .google.protobuf.Timestamp start_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.protobuf.Timestamp start_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The startTime. @@ -4930,7 +5457,7 @@ public com.google.protobuf.Timestamp getStartTime() { * * * - * .google.protobuf.Timestamp start_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.protobuf.Timestamp start_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setStartTime(com.google.protobuf.Timestamp value) { @@ -4957,7 +5484,7 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { * * * - * .google.protobuf.Timestamp start_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.protobuf.Timestamp start_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { @@ -4981,7 +5508,7 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu * * * - * .google.protobuf.Timestamp start_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.protobuf.Timestamp start_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { @@ -5013,7 +5540,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { * * * - * .google.protobuf.Timestamp start_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.protobuf.Timestamp start_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearStartTime() { @@ -5037,7 +5564,7 @@ public Builder clearStartTime() { * * * - * .google.protobuf.Timestamp start_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.protobuf.Timestamp start_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { @@ -5056,7 +5583,7 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { * * * - * .google.protobuf.Timestamp start_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.protobuf.Timestamp start_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { @@ -5077,7 +5604,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * * * - * .google.protobuf.Timestamp start_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.protobuf.Timestamp start_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< @@ -5113,7 +5640,8 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * order that has the latest LineItem.end_time. * * - * .google.protobuf.Timestamp end_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp end_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the endTime field is set. @@ -5131,7 +5659,8 @@ public boolean hasEndTime() { * order that has the latest LineItem.end_time. * * - * .google.protobuf.Timestamp end_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp end_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The endTime. @@ -5153,7 +5682,8 @@ public com.google.protobuf.Timestamp getEndTime() { * order that has the latest LineItem.end_time. * * - * .google.protobuf.Timestamp end_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp end_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setEndTime(com.google.protobuf.Timestamp value) { @@ -5179,7 +5709,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { * order that has the latest LineItem.end_time. * * - * .google.protobuf.Timestamp end_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp end_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { @@ -5202,7 +5733,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) * order that has the latest LineItem.end_time. * * - * .google.protobuf.Timestamp end_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp end_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { @@ -5233,7 +5765,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { * order that has the latest LineItem.end_time. * * - * .google.protobuf.Timestamp end_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp end_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearEndTime() { @@ -5256,7 +5789,8 @@ public Builder clearEndTime() { * order that has the latest LineItem.end_time. * * - * .google.protobuf.Timestamp end_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp end_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { @@ -5274,7 +5808,8 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { * order that has the latest LineItem.end_time. * * - * .google.protobuf.Timestamp end_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp end_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -5294,7 +5829,8 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * order that has the latest LineItem.end_time. * * - * .google.protobuf.Timestamp end_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp end_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< @@ -5323,7 +5859,25 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * Output only. Indicates whether or not this Order has an end time. * * - * bool unlimited_end_time = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool unlimited_end_time = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the unlimitedEndTime field is set. + */ + @java.lang.Override + public boolean hasUnlimitedEndTime() { + return ((bitField0_ & 0x00008000) != 0); + } + + /** + * + * + *
+     * Output only. Indicates whether or not this Order has an end time.
+     * 
+ * + * optional bool unlimited_end_time = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The unlimitedEndTime. */ @@ -5339,7 +5893,8 @@ public boolean getUnlimitedEndTime() { * Output only. Indicates whether or not this Order has an end time. * * - * bool unlimited_end_time = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool unlimited_end_time = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The unlimitedEndTime to set. * @return This builder for chaining. @@ -5359,7 +5914,8 @@ public Builder setUnlimitedEndTime(boolean value) { * Output only. Indicates whether or not this Order has an end time. * * - * bool unlimited_end_time = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool unlimited_end_time = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ @@ -5370,7 +5926,24 @@ public Builder clearUnlimitedEndTime() { return this; } - private long externalOrderId_; + private int externalOrderId_; + + /** + * + * + *
+     * Optional. An arbitrary ID to associate to the Order, which can be used as a
+     * key to an external system.
+     * 
+ * + * optional int32 external_order_id = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the externalOrderId field is set. + */ + @java.lang.Override + public boolean hasExternalOrderId() { + return ((bitField0_ & 0x00010000) != 0); + } /** * @@ -5380,12 +5953,12 @@ public Builder clearUnlimitedEndTime() { * key to an external system. * * - * int64 external_order_id = 13 [(.google.api.field_behavior) = OPTIONAL]; + * optional int32 external_order_id = 13 [(.google.api.field_behavior) = OPTIONAL]; * * @return The externalOrderId. */ @java.lang.Override - public long getExternalOrderId() { + public int getExternalOrderId() { return externalOrderId_; } @@ -5397,12 +5970,12 @@ public long getExternalOrderId() { * key to an external system. * * - * int64 external_order_id = 13 [(.google.api.field_behavior) = OPTIONAL]; + * optional int32 external_order_id = 13 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The externalOrderId to set. * @return This builder for chaining. */ - public Builder setExternalOrderId(long value) { + public Builder setExternalOrderId(int value) { externalOrderId_ = value; bitField0_ |= 0x00010000; @@ -5418,13 +5991,13 @@ public Builder setExternalOrderId(long value) { * key to an external system. * * - * int64 external_order_id = 13 [(.google.api.field_behavior) = OPTIONAL]; + * optional int32 external_order_id = 13 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearExternalOrderId() { bitField0_ = (bitField0_ & ~0x00010000); - externalOrderId_ = 0L; + externalOrderId_ = 0; onChanged(); return this; } @@ -5438,7 +6011,23 @@ public Builder clearExternalOrderId() { * Output only. The archival status of the Order. * * - * bool archived = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool archived = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the archived field is set. + */ + @java.lang.Override + public boolean hasArchived() { + return ((bitField0_ & 0x00020000) != 0); + } + + /** + * + * + *
+     * Output only. The archival status of the Order.
+     * 
+ * + * optional bool archived = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The archived. */ @@ -5454,7 +6043,7 @@ public boolean getArchived() { * Output only. The archival status of the Order. * * - * bool archived = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool archived = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The archived to set. * @return This builder for chaining. @@ -5474,7 +6063,7 @@ public Builder setArchived(boolean value) { * Output only. The archival status of the Order. * * - * bool archived = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool archived = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -5495,7 +6084,25 @@ public Builder clearArchived() { * assigned by Google. * * - * string last_modified_by_app = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string last_modified_by_app = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the lastModifiedByApp field is set. + */ + public boolean hasLastModifiedByApp() { + return ((bitField0_ & 0x00040000) != 0); + } + + /** + * + * + *
+     * Output only. The application which modified this order. This attribute is
+     * assigned by Google.
+     * 
+ * + * optional string last_modified_by_app = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The lastModifiedByApp. */ @@ -5519,7 +6126,8 @@ public java.lang.String getLastModifiedByApp() { * assigned by Google. * * - * string last_modified_by_app = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string last_modified_by_app = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The bytes for lastModifiedByApp. */ @@ -5543,7 +6151,8 @@ public com.google.protobuf.ByteString getLastModifiedByAppBytes() { * assigned by Google. * * - * string last_modified_by_app = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string last_modified_by_app = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The lastModifiedByApp to set. * @return This builder for chaining. @@ -5566,7 +6175,8 @@ public Builder setLastModifiedByApp(java.lang.String value) { * assigned by Google. * * - * string last_modified_by_app = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string last_modified_by_app = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ @@ -5585,7 +6195,8 @@ public Builder clearLastModifiedByApp() { * assigned by Google. * * - * string last_modified_by_app = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string last_modified_by_app = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The bytes for lastModifiedByApp to set. * @return This builder for chaining. @@ -5616,7 +6227,7 @@ public Builder setLastModifiedByAppBytes(com.google.protobuf.ByteString value) { * * * - * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the updateTime field is set. @@ -5633,7 +6244,7 @@ public boolean hasUpdateTime() { * * * - * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The updateTime. @@ -5656,7 +6267,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { * * * - * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { @@ -5681,7 +6292,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { * * * - * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { @@ -5703,7 +6314,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal * * * - * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { @@ -5733,7 +6344,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * * * - * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearUpdateTime() { @@ -5755,7 +6366,7 @@ public Builder clearUpdateTime() { * * * - * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { @@ -5772,7 +6383,7 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { * * * - * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -5793,7 +6404,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * * - * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< @@ -5823,7 +6434,23 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * attribute has a maximum length of 65,535 characters. * * - * string notes = 17 [(.google.api.field_behavior) = OPTIONAL]; + * optional string notes = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the notes field is set. + */ + public boolean hasNotes() { + return ((bitField0_ & 0x00100000) != 0); + } + + /** + * + * + *
+     * Optional. Provides any additional notes that may annotate the Order. This
+     * attribute has a maximum length of 65,535 characters.
+     * 
+ * + * optional string notes = 17 [(.google.api.field_behavior) = OPTIONAL]; * * @return The notes. */ @@ -5847,7 +6474,7 @@ public java.lang.String getNotes() { * attribute has a maximum length of 65,535 characters. * * - * string notes = 17 [(.google.api.field_behavior) = OPTIONAL]; + * optional string notes = 17 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for notes. */ @@ -5871,7 +6498,7 @@ public com.google.protobuf.ByteString getNotesBytes() { * attribute has a maximum length of 65,535 characters. * * - * string notes = 17 [(.google.api.field_behavior) = OPTIONAL]; + * optional string notes = 17 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The notes to set. * @return This builder for chaining. @@ -5894,7 +6521,7 @@ public Builder setNotes(java.lang.String value) { * attribute has a maximum length of 65,535 characters. * * - * string notes = 17 [(.google.api.field_behavior) = OPTIONAL]; + * optional string notes = 17 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -5913,7 +6540,7 @@ public Builder clearNotes() { * attribute has a maximum length of 65,535 characters. * * - * string notes = 17 [(.google.api.field_behavior) = OPTIONAL]; + * optional string notes = 17 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for notes to set. * @return This builder for chaining. @@ -5939,7 +6566,23 @@ public Builder setNotesBytes(com.google.protobuf.ByteString value) { * length of 63 characters. * * - * string po_number = 18 [(.google.api.field_behavior) = OPTIONAL]; + * optional string po_number = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the poNumber field is set. + */ + public boolean hasPoNumber() { + return ((bitField0_ & 0x00200000) != 0); + } + + /** + * + * + *
+     * Optional. The purchase order number for the Order. This value has a maximum
+     * length of 63 characters.
+     * 
+ * + * optional string po_number = 18 [(.google.api.field_behavior) = OPTIONAL]; * * @return The poNumber. */ @@ -5963,7 +6606,7 @@ public java.lang.String getPoNumber() { * length of 63 characters. * * - * string po_number = 18 [(.google.api.field_behavior) = OPTIONAL]; + * optional string po_number = 18 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for poNumber. */ @@ -5987,7 +6630,7 @@ public com.google.protobuf.ByteString getPoNumberBytes() { * length of 63 characters. * * - * string po_number = 18 [(.google.api.field_behavior) = OPTIONAL]; + * optional string po_number = 18 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The poNumber to set. * @return This builder for chaining. @@ -6010,7 +6653,7 @@ public Builder setPoNumber(java.lang.String value) { * length of 63 characters. * * - * string po_number = 18 [(.google.api.field_behavior) = OPTIONAL]; + * optional string po_number = 18 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -6029,7 +6672,7 @@ public Builder clearPoNumber() { * length of 63 characters. * * - * string po_number = 18 [(.google.api.field_behavior) = OPTIONAL]; + * optional string po_number = 18 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for poNumber to set. * @return This builder for chaining. @@ -6055,7 +6698,25 @@ public Builder setPoNumberBytes(com.google.protobuf.ByteString value) { * * * - * .google.ads.admanager.v1.OrderStatusEnum.OrderStatus status = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.OrderStatusEnum.OrderStatus status = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00400000) != 0); + } + + /** + * + * + *
+     * Output only. The status of the Order.
+     * 
+ * + * + * optional .google.ads.admanager.v1.OrderStatusEnum.OrderStatus status = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for status. @@ -6073,7 +6734,7 @@ public int getStatusValue() { * * * - * .google.ads.admanager.v1.OrderStatusEnum.OrderStatus status = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.OrderStatusEnum.OrderStatus status = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The enum numeric value on the wire for status to set. @@ -6094,7 +6755,7 @@ public Builder setStatusValue(int value) { * * * - * .google.ads.admanager.v1.OrderStatusEnum.OrderStatus status = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.OrderStatusEnum.OrderStatus status = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The status. @@ -6116,7 +6777,7 @@ public com.google.ads.admanager.v1.OrderStatusEnum.OrderStatus getStatus() { * * * - * .google.ads.admanager.v1.OrderStatusEnum.OrderStatus status = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.OrderStatusEnum.OrderStatus status = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The status to set. @@ -6140,7 +6801,7 @@ public Builder setStatus(com.google.ads.admanager.v1.OrderStatusEnum.OrderStatus * * * - * .google.ads.admanager.v1.OrderStatusEnum.OrderStatus status = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.OrderStatusEnum.OrderStatus status = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. @@ -6163,7 +6824,25 @@ public Builder clearStatus() { * * * - * string salesperson = 21 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * optional string salesperson = 21 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the salesperson field is set. + */ + public boolean hasSalesperson() { + return ((bitField0_ & 0x00800000) != 0); + } + + /** + * + * + *
+     * Optional. The resource name of the User responsible for the sales of the
+     * Order. Format: "networks/{network_code}/users/{user_id}"
+     * 
+ * + * + * optional string salesperson = 21 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The salesperson. @@ -6189,7 +6868,7 @@ public java.lang.String getSalesperson() { * * * - * string salesperson = 21 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * optional string salesperson = 21 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The bytes for salesperson. @@ -6215,7 +6894,7 @@ public com.google.protobuf.ByteString getSalespersonBytes() { * * * - * string salesperson = 21 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * optional string salesperson = 21 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @param value The salesperson to set. @@ -6240,7 +6919,7 @@ public Builder setSalesperson(java.lang.String value) { * * * - * string salesperson = 21 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * optional string salesperson = 21 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -6261,7 +6940,7 @@ public Builder clearSalesperson() { * * * - * string salesperson = 21 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * optional string salesperson = 21 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @param value The bytes for salesperson to set. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OrderMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OrderMessagesProto.java index c4dcb0450a49..fb0cc7aac4af 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OrderMessagesProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OrderMessagesProto.java @@ -47,62 +47,85 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ads/admanager/v1/applied_label.proto\0320google/ads/admanager/v1/custom_field_value" + ".proto\032)google/ads/admanager/v1/order_en" + "ums.proto\032\037google/api/field_behavior.pro" - + "to\032\031google/api/resource.proto\032\037google/protobuf/timestamp.proto\"\217\014\n" + + "to\032\031google/api/resource.proto\032\037google/protobuf/timestamp.proto\"\226\017\n" + "\005Order\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\010\022\025\n" - + "\010order_id\030\004 \001(\003B\003\340A\003\022\031\n" - + "\014display_name\030\002 \001(\tB\003\340A\002\022\031\n" - + "\014programmatic\030\003 \001(\010B\003\340A\001\0229\n\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\032\n" + + "\010order_id\030\004 \001(\003B\003\340A\003H\000\210\001\001\022\036\n" + + "\014display_name\030\002 \001(\tB\003\340A\002H\001\210\001\001\022\036\n" + + "\014programmatic\030\003 \001(\010B\003\340A\001H\002\210\001\001\022>\n\n" + "trafficker\030\027 \001(\tB%\340A\002\372A\037\n" - + "\035admanager.googleapis.com/User\022E\n" + + "\035admanager.googleapis.com/UserH\003\210\001\001\022E\n" + "\023advertiser_contacts\030\005 \003(\tB(\340A\001\372A\"\n" - + " admanager.googleapis.com/Contact\022<\n\n" + + " admanager.googleapis.com/Contact\022A\n\n" + "advertiser\030\006 \001(\tB(\340A\002\372A\"\n" - + " admanager.googleapis.com/Company\022A\n" + + " admanager.googleapis.com/CompanyH\004\210\001\001\022A\n" + "\017agency_contacts\030\007 \003(\tB(\340A\001\372A\"\n" - + " admanager.googleapis.com/Contact\0228\n" + + " admanager.googleapis.com/Contact\022=\n" + "\006agency\030\010 \001(\tB(\340A\001\372A\"\n" - + " admanager.googleapis.com/Company\022<\n\r" + + " admanager.googleapis.com/CompanyH\005\210\001\001\022<\n\r" + "applied_teams\030\t \003(\tB%\340A\001\372A\037\n" + "\035admanager.googleapis.com/Team\022>\n" + "\017effective_teams\030\034 \003(\tB%\340A\003\372A\037\n" - + "\035admanager.googleapis.com/Team\0226\n" + + "\035admanager.googleapis.com/Team\022;\n" + "\007creator\030\n" + " \001(\tB%\340A\003\372A\037\n" - + "\035admanager.googleapis.com/User\022\032\n\r" - + "currency_code\030\013 \001(\tB\003\340A\003\0223\n\n" - + "start_time\030\023 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221\n" - + "\010end_time\030\014 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\037\n" - + "\022unlimited_end_time\030- \001(\010B\003\340A\003\022\036\n" + + "\035admanager.googleapis.com/UserH\006\210\001\001\022\037\n\r" + + "currency_code\030\013 \001(\tB\003\340A\003H\007\210\001\001\0228\n\n" + + "start_time\030\023" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003H\010\210\001\001\0226\n" + + "\010end_time\030\014 \001(\0132\032.google.protobuf.TimestampB\003\340A\003H" + + "\t\210\001\001\022$\n" + + "\022unlimited_end_time\030- \001(\010B\003\340A\003H\n" + + "\210\001\001\022#\n" + "\021external_order_id\030\r" - + " \001(\003B\003\340A\001\022\025\n" - + "\010archived\030\016 \001(\010B\003\340A\003\022!\n" - + "\024last_modified_by_app\030\017 \001(\tB\003\340A\003\0224\n" + + " \001(\005B\003\340A\001H\013\210\001\001\022\032\n" + + "\010archived\030\016 \001(\010B\003\340A\003H\014\210\001\001\022&\n" + + "\024last_modified_by_app\030\017 \001(\tB\003\340A\003H\r" + + "\210\001\001\0229\n" + "\013update_time\030\020" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\022\n" - + "\005notes\030\021 \001(\tB\003\340A\001\022\026\n" - + "\tpo_number\030\022 \001(\tB\003\340A\001\022I\n" - + "\006status\030\024 \001(\01624.g" - + "oogle.ads.admanager.v1.OrderStatusEnum.OrderStatusB\003\340A\003\022:\n" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003H\016\210\001\001\022\027\n" + + "\005notes\030\021 \001(\tB\003\340A\001H\017\210\001\001\022\033\n" + + "\tpo_number\030\022 \001(\tB\003\340A\001H\020\210\001\001\022N\n" + + "\006status\030\024 \001(" + + "\01624.google.ads.admanager.v1.OrderStatusEnum.OrderStatusB\003\340A\003H\021\210\001\001\022?\n" + "\013salesperson\030\025 \001(\tB%\340A\001\372A\037\n" - + "\035admanager.googleapis.com/User\022G\n" + + "\035admanager.googleapis.com/UserH\022\210\001\001\022G\n" + "\025secondary_salespeople\030\026 \003(\tB(\340A\001\340A\006\372A\037\n" + "\035admanager.googleapis.com/User\022G\n" + "\025secondary_traffickers\030\030 \003(\tB(\340A\001\340A\006\372A\037\n" + "\035admanager.googleapis.com/User\022B\n" + "\016applied_labels\030\031" + " \003(\0132%.google.ads.admanager.v1.AppliedLabelB\003\340A\001\022L\n" - + "\030effective_applied_labels\030\032 " - + "\003(\0132%.google.ads.admanager.v1.AppliedLabelB\003\340A\003\022K\n" - + "\023custom_field_values\030& \003(\0132).g" - + "oogle.ads.admanager.v1.CustomFieldValueB\003\340A\001:Z\352AW\n" - + "\036admanager.googleapis.com/Orde" - + "r\022&networks/{network_code}/orders/{order}*\006orders2\005orderB\306\001\n" - + "\033com.google.ads.admanager.v1B\022OrderMessagesProtoP\001Z@google.g" - + "olang.org/genproto/googleapis/ads/admana" - + "ger/v1;admanager\252\002\027Google.Ads.AdManager." - + "V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032Google::A" - + "ds::AdManager::V1b\006proto3" + + "\030effective_applied_labels\030\032" + + " \003(\0132%.google.ads.admanager.v1.AppliedLabelB\003\340A\003\022K\n" + + "\023custom_field_values\030&" + + " \003(\0132).google.ads.admanager.v1.CustomFieldValueB\003\340A\001:Z\352AW\n" + + "\036admanager.goog" + + "leapis.com/Order\022&networks/{network_code}/orders/{order}*\006orders2\005orderB\013\n" + + "\t_order_idB\017\n\r" + + "_display_nameB\017\n\r" + + "_programmaticB\r" + + "\n" + + "\013_traffickerB\r\n" + + "\013_advertiserB\t\n" + + "\007_agencyB\n\n" + + "\010_creatorB\020\n" + + "\016_currency_codeB\r\n" + + "\013_start_timeB\013\n" + + "\t_end_timeB\025\n" + + "\023_unlimited_end_timeB\024\n" + + "\022_external_order_idB\013\n" + + "\t_archivedB\027\n" + + "\025_last_modified_by_appB\016\n" + + "\014_update_timeB\010\n" + + "\006_notesB\014\n\n" + + "_po_numberB\t\n" + + "\007_statusB\016\n" + + "\014_salespersonB\306\001\n" + + "\033com.google.ads.admanager.v1B\022OrderMessagesProtoP\001Z@google.golang.org" + + "/genproto/googleapis/ads/admanager/v1;ad" + + "manager\252\002\027Google.Ads.AdManager.V1\312\002\027Goog" + + "le\\Ads\\AdManager\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OrderOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OrderOrBuilder.java index 0305a7f31c47..5fa54fa186ac 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OrderOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OrderOrBuilder.java @@ -59,7 +59,20 @@ public interface OrderOrBuilder * Output only. Order ID. * * - * int64 order_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional int64 order_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the orderId field is set. + */ + boolean hasOrderId(); + + /** + * + * + *
+   * Output only. Order ID.
+   * 
+ * + * optional int64 order_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The orderId. */ @@ -73,7 +86,21 @@ public interface OrderOrBuilder * of 255 characters. * * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the displayName field is set. + */ + boolean hasDisplayName(); + + /** + * + * + *
+   * Required. The display name of the Order.  This value has a maximum length
+   * of 255 characters.
+   * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The displayName. */ @@ -87,7 +114,7 @@ public interface OrderOrBuilder * of 255 characters. * * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for displayName. */ @@ -100,7 +127,20 @@ public interface OrderOrBuilder * Optional. Specifies whether or not the Order is a programmatic order. * * - * bool programmatic = 3 [(.google.api.field_behavior) = OPTIONAL]; + * optional bool programmatic = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the programmatic field is set. + */ + boolean hasProgrammatic(); + + /** + * + * + *
+   * Optional. Specifies whether or not the Order is a programmatic order.
+   * 
+ * + * optional bool programmatic = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The programmatic. */ @@ -115,7 +155,23 @@ public interface OrderOrBuilder * * * - * string trafficker = 23 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * optional string trafficker = 23 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the trafficker field is set. + */ + boolean hasTrafficker(); + + /** + * + * + *
+   * Required. The resource name of the User responsible for trafficking the
+   * Order. Format: "networks/{network_code}/users/{user_id}"
+   * 
+ * + * + * optional string trafficker = 23 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The trafficker. @@ -131,7 +187,7 @@ public interface OrderOrBuilder * * * - * string trafficker = 23 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * optional string trafficker = 23 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for trafficker. @@ -214,7 +270,24 @@ public interface OrderOrBuilder * * * - * string advertiser = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * optional string advertiser = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the advertiser field is set. + */ + boolean hasAdvertiser(); + + /** + * + * + *
+   * Required. The resource name of the Company, which is of type
+   * Company.Type.ADVERTISER, to which this order belongs. Format:
+   * "networks/{network_code}/companies/{company_id}"
+   * 
+ * + * + * optional string advertiser = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The advertiser. @@ -231,7 +304,7 @@ public interface OrderOrBuilder * * * - * string advertiser = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * optional string advertiser = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for advertiser. @@ -314,7 +387,24 @@ public interface OrderOrBuilder * * * - * string agency = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * optional string agency = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the agency field is set. + */ + boolean hasAgency(); + + /** + * + * + *
+   * Optional. The resource name of the Company, which is of type
+   * Company.Type.AGENCY, with which this order is associated. Format:
+   * "networks/{network_code}/companies/{company_id}"
+   * 
+ * + * + * optional string agency = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The agency. @@ -331,7 +421,7 @@ public interface OrderOrBuilder * * * - * string agency = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * optional string agency = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The bytes for agency. @@ -480,7 +570,24 @@ public interface OrderOrBuilder * * * - * string creator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * optional string creator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the creator field is set. + */ + boolean hasCreator(); + + /** + * + * + *
+   * Output only. The resource name of the User who created the Order on behalf
+   * of the advertiser. This value is assigned by Google. Format:
+   * "networks/{network_code}/users/{user_id}"
+   * 
+ * + * + * optional string creator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @return The creator. @@ -497,7 +604,7 @@ public interface OrderOrBuilder * * * - * string creator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * optional string creator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @return The bytes for creator. @@ -512,7 +619,21 @@ public interface OrderOrBuilder * the Order. This value is the network's currency code. * * - * string currency_code = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string currency_code = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the currencyCode field is set. + */ + boolean hasCurrencyCode(); + + /** + * + * + *
+   * Output only. The ISO 4217 3-letter currency code for the currency used by
+   * the Order. This value is the network's currency code.
+   * 
+ * + * optional string currency_code = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The currencyCode. */ @@ -526,7 +647,7 @@ public interface OrderOrBuilder * the Order. This value is the network's currency code. * * - * string currency_code = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string currency_code = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for currencyCode. */ @@ -541,7 +662,8 @@ public interface OrderOrBuilder * of the order that has the earliest LineItem.start_time. * * - * .google.protobuf.Timestamp start_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp start_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the startTime field is set. @@ -557,7 +679,8 @@ public interface OrderOrBuilder * of the order that has the earliest LineItem.start_time. * * - * .google.protobuf.Timestamp start_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp start_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The startTime. @@ -573,7 +696,8 @@ public interface OrderOrBuilder * of the order that has the earliest LineItem.start_time. * * - * .google.protobuf.Timestamp start_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp start_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); @@ -587,7 +711,8 @@ public interface OrderOrBuilder * order that has the latest LineItem.end_time. * * - * .google.protobuf.Timestamp end_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp end_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the endTime field is set. @@ -603,7 +728,8 @@ public interface OrderOrBuilder * order that has the latest LineItem.end_time. * * - * .google.protobuf.Timestamp end_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp end_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The endTime. @@ -619,7 +745,8 @@ public interface OrderOrBuilder * order that has the latest LineItem.end_time. * * - * .google.protobuf.Timestamp end_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp end_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); @@ -631,7 +758,22 @@ public interface OrderOrBuilder * Output only. Indicates whether or not this Order has an end time. * * - * bool unlimited_end_time = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool unlimited_end_time = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the unlimitedEndTime field is set. + */ + boolean hasUnlimitedEndTime(); + + /** + * + * + *
+   * Output only. Indicates whether or not this Order has an end time.
+   * 
+ * + * optional bool unlimited_end_time = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The unlimitedEndTime. */ @@ -645,11 +787,25 @@ public interface OrderOrBuilder * key to an external system. * * - * int64 external_order_id = 13 [(.google.api.field_behavior) = OPTIONAL]; + * optional int32 external_order_id = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the externalOrderId field is set. + */ + boolean hasExternalOrderId(); + + /** + * + * + *
+   * Optional. An arbitrary ID to associate to the Order, which can be used as a
+   * key to an external system.
+   * 
+ * + * optional int32 external_order_id = 13 [(.google.api.field_behavior) = OPTIONAL]; * * @return The externalOrderId. */ - long getExternalOrderId(); + int getExternalOrderId(); /** * @@ -658,7 +814,20 @@ public interface OrderOrBuilder * Output only. The archival status of the Order. * * - * bool archived = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool archived = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the archived field is set. + */ + boolean hasArchived(); + + /** + * + * + *
+   * Output only. The archival status of the Order.
+   * 
+ * + * optional bool archived = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The archived. */ @@ -672,7 +841,23 @@ public interface OrderOrBuilder * assigned by Google. * * - * string last_modified_by_app = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string last_modified_by_app = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the lastModifiedByApp field is set. + */ + boolean hasLastModifiedByApp(); + + /** + * + * + *
+   * Output only. The application which modified this order. This attribute is
+   * assigned by Google.
+   * 
+ * + * optional string last_modified_by_app = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The lastModifiedByApp. */ @@ -686,7 +871,8 @@ public interface OrderOrBuilder * assigned by Google. * * - * string last_modified_by_app = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string last_modified_by_app = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The bytes for lastModifiedByApp. */ @@ -699,7 +885,8 @@ public interface OrderOrBuilder * Output only. The instant this Order was last modified. * * - * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the updateTime field is set. @@ -713,7 +900,8 @@ public interface OrderOrBuilder * Output only. The instant this Order was last modified. * * - * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The updateTime. @@ -727,7 +915,8 @@ public interface OrderOrBuilder * Output only. The instant this Order was last modified. * * - * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); @@ -740,7 +929,21 @@ public interface OrderOrBuilder * attribute has a maximum length of 65,535 characters. * * - * string notes = 17 [(.google.api.field_behavior) = OPTIONAL]; + * optional string notes = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the notes field is set. + */ + boolean hasNotes(); + + /** + * + * + *
+   * Optional. Provides any additional notes that may annotate the Order. This
+   * attribute has a maximum length of 65,535 characters.
+   * 
+ * + * optional string notes = 17 [(.google.api.field_behavior) = OPTIONAL]; * * @return The notes. */ @@ -754,7 +957,7 @@ public interface OrderOrBuilder * attribute has a maximum length of 65,535 characters. * * - * string notes = 17 [(.google.api.field_behavior) = OPTIONAL]; + * optional string notes = 17 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for notes. */ @@ -768,7 +971,21 @@ public interface OrderOrBuilder * length of 63 characters. * * - * string po_number = 18 [(.google.api.field_behavior) = OPTIONAL]; + * optional string po_number = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the poNumber field is set. + */ + boolean hasPoNumber(); + + /** + * + * + *
+   * Optional. The purchase order number for the Order. This value has a maximum
+   * length of 63 characters.
+   * 
+ * + * optional string po_number = 18 [(.google.api.field_behavior) = OPTIONAL]; * * @return The poNumber. */ @@ -782,7 +999,7 @@ public interface OrderOrBuilder * length of 63 characters. * * - * string po_number = 18 [(.google.api.field_behavior) = OPTIONAL]; + * optional string po_number = 18 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for poNumber. */ @@ -796,7 +1013,22 @@ public interface OrderOrBuilder * * * - * .google.ads.admanager.v1.OrderStatusEnum.OrderStatus status = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.OrderStatusEnum.OrderStatus status = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the status field is set. + */ + boolean hasStatus(); + + /** + * + * + *
+   * Output only. The status of the Order.
+   * 
+ * + * + * optional .google.ads.admanager.v1.OrderStatusEnum.OrderStatus status = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for status. @@ -811,7 +1043,7 @@ public interface OrderOrBuilder * * * - * .google.ads.admanager.v1.OrderStatusEnum.OrderStatus status = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.OrderStatusEnum.OrderStatus status = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The status. @@ -827,7 +1059,23 @@ public interface OrderOrBuilder * * * - * string salesperson = 21 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * optional string salesperson = 21 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the salesperson field is set. + */ + boolean hasSalesperson(); + + /** + * + * + *
+   * Optional. The resource name of the User responsible for the sales of the
+   * Order. Format: "networks/{network_code}/users/{user_id}"
+   * 
+ * + * + * optional string salesperson = 21 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The salesperson. @@ -843,7 +1091,7 @@ public interface OrderOrBuilder * * * - * string salesperson = 21 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * optional string salesperson = 21 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The bytes for salesperson. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OrderServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OrderServiceProto.java index add663877137..a60001045296 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OrderServiceProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OrderServiceProto.java @@ -69,19 +69,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022ListOrdersResponse\022.\n" + "\006orders\030\001 \003(\0132\036.google.ads.admanager.v1.Order\022\027\n" + "\017next_page_token\030\002 \001(\t\022\022\n\n" - + "total_size\030\003 \001(\0052\312\002\n" + + "total_size\030\003 \001(\0052\366\002\n" + "\014OrderService\022\203\001\n" + "\010GetOrder\022(.google.ads.admanager.v1.GetOrderRequ" + "est\032\036.google.ads.admanager.v1.Order\"-\332A\004name\202\323\344\223\002" + " \022\036/v1/{name=networks/*/orders/*}\022\226\001\n\n" + "ListOrders\022*.google.ads.admanager.v1.ListOrdersRequest\032+.google.ads.adman" + "ager.v1.ListOrdersResponse\"/\332A\006parent\202\323\344\223\002" - + " \022\036/v1/{parent=networks/*}/orders\032\033\312A\030admanager.googleapis.comB\305\001\n" - + "\033com.google.ads.admanager.v1B\021OrderServiceProtoP\001Z@g" - + "oogle.golang.org/genproto/googleapis/ads" - + "/admanager/v1;admanager\252\002\027Google.Ads.AdM" - + "anager.V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032Go" - + "ogle::Ads::AdManager::V1b\006proto3" + + " \022\036/v1/{parent=networks/*}/orders\032G\312A\030" + + "admanager.googleapis.com\322A)https://www.googleapis.com/auth/admanagerB\305\001\n" + + "\033com.google.ads.admanager.v1B\021OrderServiceProtoP" + + "\001Z@google.golang.org/genproto/googleapis" + + "/ads/admanager/v1;admanager\252\002\027Google.Ads" + + ".AdManager.V1\312\002\027Google\\Ads\\AdManager\\V1\352" + + "\002\032Google::Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -123,6 +124,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.AnnotationsProto.http); registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Placement.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Placement.java index a763f1f1f93c..9868e883a6ca 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Placement.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Placement.java @@ -153,11 +153,28 @@ public long getPlacementId() { * * *
-   * Required. The display name of the placement. Its maximum length is 255
-   * characters.
+   * Required. The display name of the placement. This attribute has a maximum
+   * length of 255 characters.
    * 
* - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the displayName field is set. + */ + @java.lang.Override + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The display name of the placement. This attribute has a maximum
+   * length of 255 characters.
+   * 
+ * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The displayName. */ @@ -178,11 +195,11 @@ public java.lang.String getDisplayName() { * * *
-   * Required. The display name of the placement. Its maximum length is 255
-   * characters.
+   * Required. The display name of the placement. This attribute has a maximum
+   * length of 255 characters.
    * 
* - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for displayName. */ @@ -208,11 +225,28 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
-   * Optional. A description of the Placement. This value is optional and its
-   * maximum length is 65,535 characters.
+   * Optional. A description of the Placement. This attribute has a maximum
+   * length of 65,535 characters.
+   * 
+ * + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the description field is set. + */ + @java.lang.Override + public boolean hasDescription() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. A description of the Placement. This attribute has a maximum
+   * length of 65,535 characters.
    * 
* - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The description. */ @@ -233,11 +267,11 @@ public java.lang.String getDescription() { * * *
-   * Optional. A description of the Placement. This value is optional and its
-   * maximum length is 65,535 characters.
+   * Optional. A description of the Placement. This attribute has a maximum
+   * length of 65,535 characters.
    * 
* - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for description. */ @@ -264,11 +298,27 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * *
    * Output only. A string used to uniquely identify the Placement for purposes
-   * of serving the ad. This attribute is read-only and is assigned by Google
-   * when a placement is created.
+   * of serving the ad. This attribute is assigned by Google.
+   * 
+ * + * optional string placement_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the placementCode field is set. + */ + @java.lang.Override + public boolean hasPlacementCode() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Output only. A string used to uniquely identify the Placement for purposes
+   * of serving the ad. This attribute is assigned by Google.
    * 
* - * string placement_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string placement_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The placementCode. */ @@ -290,11 +340,10 @@ public java.lang.String getPlacementCode() { * *
    * Output only. A string used to uniquely identify the Placement for purposes
-   * of serving the ad. This attribute is read-only and is assigned by Google
-   * when a placement is created.
+   * of serving the ad. This attribute is assigned by Google.
    * 
* - * string placement_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string placement_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for placementCode. */ @@ -318,11 +367,29 @@ public com.google.protobuf.ByteString getPlacementCodeBytes() { * * *
-   * Output only. The status of the Placement. This attribute is read-only.
+   * Output only. The status of the Placement.
+   * 
+ * + * + * optional .google.ads.admanager.v1.PlacementStatusEnum.PlacementStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Output only. The status of the Placement.
    * 
* * - * .google.ads.admanager.v1.PlacementStatusEnum.PlacementStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.PlacementStatusEnum.PlacementStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for status. @@ -336,11 +403,11 @@ public int getStatusValue() { * * *
-   * Output only. The status of the Placement. This attribute is read-only.
+   * Output only. The status of the Placement.
    * 
* * - * .google.ads.admanager.v1.PlacementStatusEnum.PlacementStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.PlacementStatusEnum.PlacementStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The status. @@ -365,7 +432,7 @@ public com.google.ads.admanager.v1.PlacementStatusEnum.PlacementStatus getStatus * *
    * Optional. The resource names of AdUnits that constitute the Placement.
-   * Format: "networks/{network_code}/adUnits/{ad_unit_id}"
+   * Format: "networks/{network_code}/adUnits/{ad_unit}"
    * 
* * @@ -383,7 +450,7 @@ public com.google.protobuf.ProtocolStringList getTargetedAdUnitsList() { * *
    * Optional. The resource names of AdUnits that constitute the Placement.
-   * Format: "networks/{network_code}/adUnits/{ad_unit_id}"
+   * Format: "networks/{network_code}/adUnits/{ad_unit}"
    * 
* * @@ -401,7 +468,7 @@ public int getTargetedAdUnitsCount() { * *
    * Optional. The resource names of AdUnits that constitute the Placement.
-   * Format: "networks/{network_code}/adUnits/{ad_unit_id}"
+   * Format: "networks/{network_code}/adUnits/{ad_unit}"
    * 
* * @@ -420,7 +487,7 @@ public java.lang.String getTargetedAdUnits(int index) { * *
    * Optional. The resource names of AdUnits that constitute the Placement.
-   * Format: "networks/{network_code}/adUnits/{ad_unit_id}"
+   * Format: "networks/{network_code}/adUnits/{ad_unit}"
    * 
* * @@ -444,14 +511,15 @@ public com.google.protobuf.ByteString getTargetedAdUnitsBytes(int index) { * Output only. The instant this Placement was last modified. * * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the updateTime field is set. */ @java.lang.Override public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** @@ -461,7 +529,8 @@ public boolean hasUpdateTime() { * Output only. The instant this Placement was last modified. * * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The updateTime. @@ -478,7 +547,8 @@ public com.google.protobuf.Timestamp getUpdateTime() { * Output only. The instant this Placement was last modified. * * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override @@ -506,25 +576,22 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (placementId_ != 0L) { output.writeInt64(2, placementId_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(placementCode_)) { + if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, placementCode_); } - if (status_ - != com.google.ads.admanager.v1.PlacementStatusEnum.PlacementStatus - .PLACEMENT_STATUS_UNSPECIFIED - .getNumber()) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeEnum(6, status_); } for (int i = 0; i < targetedAdUnits_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, targetedAdUnits_.getRaw(i)); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(9, getUpdateTime()); } getUnknownFields().writeTo(output); @@ -542,19 +609,16 @@ public int getSerializedSize() { if (placementId_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, placementId_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(placementCode_)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, placementCode_); } - if (status_ - != com.google.ads.admanager.v1.PlacementStatusEnum.PlacementStatus - .PLACEMENT_STATUS_UNSPECIFIED - .getNumber()) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, status_); } { @@ -565,7 +629,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getTargetedAdUnitsList().size(); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getUpdateTime()); } size += getUnknownFields().getSerializedSize(); @@ -585,10 +649,22 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (getPlacementId() != other.getPlacementId()) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getPlacementCode().equals(other.getPlacementCode())) return false; - if (status_ != other.status_) return false; + if (hasDisplayName() != other.hasDisplayName()) return false; + if (hasDisplayName()) { + if (!getDisplayName().equals(other.getDisplayName())) return false; + } + if (hasDescription() != other.hasDescription()) return false; + if (hasDescription()) { + if (!getDescription().equals(other.getDescription())) return false; + } + if (hasPlacementCode() != other.hasPlacementCode()) return false; + if (hasPlacementCode()) { + if (!getPlacementCode().equals(other.getPlacementCode())) return false; + } + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (status_ != other.status_) return false; + } if (!getTargetedAdUnitsList().equals(other.getTargetedAdUnitsList())) return false; if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { @@ -609,14 +685,22 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + PLACEMENT_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPlacementId()); - hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (37 * hash) + PLACEMENT_CODE_FIELD_NUMBER; - hash = (53 * hash) + getPlacementCode().hashCode(); - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + status_; + if (hasDisplayName()) { + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + } + if (hasDescription()) { + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + } + if (hasPlacementCode()) { + hash = (37 * hash) + PLACEMENT_CODE_FIELD_NUMBER; + hash = (53 * hash) + getPlacementCode().hashCode(); + } + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + } if (getTargetedAdUnitsCount() > 0) { hash = (37 * hash) + TARGETED_AD_UNITS_FIELD_NUMBER; hash = (53 * hash) + getTargetedAdUnitsList().hashCode(); @@ -827,26 +911,30 @@ private void buildPartial0(com.google.ads.admanager.v1.Placement result) { if (((from_bitField0_ & 0x00000002) != 0)) { result.placementId_ = placementId_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.displayName_ = displayName_; + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.description_ = description_; + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { result.placementCode_ = placementCode_; + to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000020) != 0)) { result.status_ = status_; + to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000040) != 0)) { targetedAdUnits_.makeImmutable(); result.targetedAdUnits_ = targetedAdUnits_; } - int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000080) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); - to_bitField0_ |= 0x00000001; + to_bitField0_ |= 0x00000010; } result.bitField0_ |= to_bitField0_; } @@ -904,23 +992,23 @@ public Builder mergeFrom(com.google.ads.admanager.v1.Placement other) { if (other.getPlacementId() != 0L) { setPlacementId(other.getPlacementId()); } - if (!other.getDisplayName().isEmpty()) { + if (other.hasDisplayName()) { displayName_ = other.displayName_; bitField0_ |= 0x00000004; onChanged(); } - if (!other.getDescription().isEmpty()) { + if (other.hasDescription()) { description_ = other.description_; bitField0_ |= 0x00000008; onChanged(); } - if (!other.getPlacementCode().isEmpty()) { + if (other.hasPlacementCode()) { placementCode_ = other.placementCode_; bitField0_ |= 0x00000010; onChanged(); } - if (other.status_ != 0) { - setStatusValue(other.getStatusValue()); + if (other.hasStatus()) { + setStatus(other.getStatus()); } if (!other.targetedAdUnits_.isEmpty()) { if (targetedAdUnits_.isEmpty()) { @@ -1207,11 +1295,27 @@ public Builder clearPlacementId() { * * *
-     * Required. The display name of the placement. Its maximum length is 255
-     * characters.
+     * Required. The display name of the placement. This attribute has a maximum
+     * length of 255 characters.
+     * 
+ * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the displayName field is set. + */ + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. The display name of the placement. This attribute has a maximum
+     * length of 255 characters.
      * 
* - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The displayName. */ @@ -1231,11 +1335,11 @@ public java.lang.String getDisplayName() { * * *
-     * Required. The display name of the placement. Its maximum length is 255
-     * characters.
+     * Required. The display name of the placement. This attribute has a maximum
+     * length of 255 characters.
      * 
* - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for displayName. */ @@ -1255,11 +1359,11 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
-     * Required. The display name of the placement. Its maximum length is 255
-     * characters.
+     * Required. The display name of the placement. This attribute has a maximum
+     * length of 255 characters.
      * 
* - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; * * @param value The displayName to set. * @return This builder for chaining. @@ -1278,11 +1382,11 @@ public Builder setDisplayName(java.lang.String value) { * * *
-     * Required. The display name of the placement. Its maximum length is 255
-     * characters.
+     * Required. The display name of the placement. This attribute has a maximum
+     * length of 255 characters.
      * 
* - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ @@ -1297,11 +1401,11 @@ public Builder clearDisplayName() { * * *
-     * Required. The display name of the placement. Its maximum length is 255
-     * characters.
+     * Required. The display name of the placement. This attribute has a maximum
+     * length of 255 characters.
      * 
* - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for displayName to set. * @return This builder for chaining. @@ -1323,11 +1427,27 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. A description of the Placement. This value is optional and its
-     * maximum length is 65,535 characters.
+     * Optional. A description of the Placement. This attribute has a maximum
+     * length of 65,535 characters.
+     * 
+ * + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the description field is set. + */ + public boolean hasDescription() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Optional. A description of the Placement. This attribute has a maximum
+     * length of 65,535 characters.
      * 
* - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The description. */ @@ -1347,11 +1467,11 @@ public java.lang.String getDescription() { * * *
-     * Optional. A description of the Placement. This value is optional and its
-     * maximum length is 65,535 characters.
+     * Optional. A description of the Placement. This attribute has a maximum
+     * length of 65,535 characters.
      * 
* - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for description. */ @@ -1371,11 +1491,11 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
-     * Optional. A description of the Placement. This value is optional and its
-     * maximum length is 65,535 characters.
+     * Optional. A description of the Placement. This attribute has a maximum
+     * length of 65,535 characters.
      * 
* - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The description to set. * @return This builder for chaining. @@ -1394,11 +1514,11 @@ public Builder setDescription(java.lang.String value) { * * *
-     * Optional. A description of the Placement. This value is optional and its
-     * maximum length is 65,535 characters.
+     * Optional. A description of the Placement. This attribute has a maximum
+     * length of 65,535 characters.
      * 
* - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1413,11 +1533,11 @@ public Builder clearDescription() { * * *
-     * Optional. A description of the Placement. This value is optional and its
-     * maximum length is 65,535 characters.
+     * Optional. A description of the Placement. This attribute has a maximum
+     * length of 65,535 characters.
      * 
* - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for description to set. * @return This builder for chaining. @@ -1440,11 +1560,26 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * *
      * Output only. A string used to uniquely identify the Placement for purposes
-     * of serving the ad. This attribute is read-only and is assigned by Google
-     * when a placement is created.
+     * of serving the ad. This attribute is assigned by Google.
+     * 
+ * + * optional string placement_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the placementCode field is set. + */ + public boolean hasPlacementCode() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Output only. A string used to uniquely identify the Placement for purposes
+     * of serving the ad. This attribute is assigned by Google.
      * 
* - * string placement_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string placement_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The placementCode. */ @@ -1465,11 +1600,10 @@ public java.lang.String getPlacementCode() { * *
      * Output only. A string used to uniquely identify the Placement for purposes
-     * of serving the ad. This attribute is read-only and is assigned by Google
-     * when a placement is created.
+     * of serving the ad. This attribute is assigned by Google.
      * 
* - * string placement_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string placement_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for placementCode. */ @@ -1490,11 +1624,10 @@ public com.google.protobuf.ByteString getPlacementCodeBytes() { * *
      * Output only. A string used to uniquely identify the Placement for purposes
-     * of serving the ad. This attribute is read-only and is assigned by Google
-     * when a placement is created.
+     * of serving the ad. This attribute is assigned by Google.
      * 
* - * string placement_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string placement_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The placementCode to set. * @return This builder for chaining. @@ -1514,11 +1647,10 @@ public Builder setPlacementCode(java.lang.String value) { * *
      * Output only. A string used to uniquely identify the Placement for purposes
-     * of serving the ad. This attribute is read-only and is assigned by Google
-     * when a placement is created.
+     * of serving the ad. This attribute is assigned by Google.
      * 
* - * string placement_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string placement_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -1534,11 +1666,10 @@ public Builder clearPlacementCode() { * *
      * Output only. A string used to uniquely identify the Placement for purposes
-     * of serving the ad. This attribute is read-only and is assigned by Google
-     * when a placement is created.
+     * of serving the ad. This attribute is assigned by Google.
      * 
* - * string placement_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string placement_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for placementCode to set. * @return This builder for chaining. @@ -1560,11 +1691,29 @@ public Builder setPlacementCodeBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. The status of the Placement. This attribute is read-only.
+     * Output only. The status of the Placement.
+     * 
+ * + * + * optional .google.ads.admanager.v1.PlacementStatusEnum.PlacementStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Output only. The status of the Placement.
      * 
* * - * .google.ads.admanager.v1.PlacementStatusEnum.PlacementStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.PlacementStatusEnum.PlacementStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for status. @@ -1578,11 +1727,11 @@ public int getStatusValue() { * * *
-     * Output only. The status of the Placement. This attribute is read-only.
+     * Output only. The status of the Placement.
      * 
* * - * .google.ads.admanager.v1.PlacementStatusEnum.PlacementStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.PlacementStatusEnum.PlacementStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The enum numeric value on the wire for status to set. @@ -1599,11 +1748,11 @@ public Builder setStatusValue(int value) { * * *
-     * Output only. The status of the Placement. This attribute is read-only.
+     * Output only. The status of the Placement.
      * 
* * - * .google.ads.admanager.v1.PlacementStatusEnum.PlacementStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.PlacementStatusEnum.PlacementStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The status. @@ -1621,11 +1770,11 @@ public com.google.ads.admanager.v1.PlacementStatusEnum.PlacementStatus getStatus * * *
-     * Output only. The status of the Placement. This attribute is read-only.
+     * Output only. The status of the Placement.
      * 
* * - * .google.ads.admanager.v1.PlacementStatusEnum.PlacementStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.PlacementStatusEnum.PlacementStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The status to set. @@ -1646,11 +1795,11 @@ public Builder setStatus( * * *
-     * Output only. The status of the Placement. This attribute is read-only.
+     * Output only. The status of the Placement.
      * 
* * - * .google.ads.admanager.v1.PlacementStatusEnum.PlacementStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.PlacementStatusEnum.PlacementStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. @@ -1677,7 +1826,7 @@ private void ensureTargetedAdUnitsIsMutable() { * *
      * Optional. The resource names of AdUnits that constitute the Placement.
-     * Format: "networks/{network_code}/adUnits/{ad_unit_id}"
+     * Format: "networks/{network_code}/adUnits/{ad_unit}"
      * 
* * @@ -1696,7 +1845,7 @@ public com.google.protobuf.ProtocolStringList getTargetedAdUnitsList() { * *
      * Optional. The resource names of AdUnits that constitute the Placement.
-     * Format: "networks/{network_code}/adUnits/{ad_unit_id}"
+     * Format: "networks/{network_code}/adUnits/{ad_unit}"
      * 
* * @@ -1714,7 +1863,7 @@ public int getTargetedAdUnitsCount() { * *
      * Optional. The resource names of AdUnits that constitute the Placement.
-     * Format: "networks/{network_code}/adUnits/{ad_unit_id}"
+     * Format: "networks/{network_code}/adUnits/{ad_unit}"
      * 
* * @@ -1733,7 +1882,7 @@ public java.lang.String getTargetedAdUnits(int index) { * *
      * Optional. The resource names of AdUnits that constitute the Placement.
-     * Format: "networks/{network_code}/adUnits/{ad_unit_id}"
+     * Format: "networks/{network_code}/adUnits/{ad_unit}"
      * 
* * @@ -1752,7 +1901,7 @@ public com.google.protobuf.ByteString getTargetedAdUnitsBytes(int index) { * *
      * Optional. The resource names of AdUnits that constitute the Placement.
-     * Format: "networks/{network_code}/adUnits/{ad_unit_id}"
+     * Format: "networks/{network_code}/adUnits/{ad_unit}"
      * 
* * @@ -1779,7 +1928,7 @@ public Builder setTargetedAdUnits(int index, java.lang.String value) { * *
      * Optional. The resource names of AdUnits that constitute the Placement.
-     * Format: "networks/{network_code}/adUnits/{ad_unit_id}"
+     * Format: "networks/{network_code}/adUnits/{ad_unit}"
      * 
* * @@ -1805,7 +1954,7 @@ public Builder addTargetedAdUnits(java.lang.String value) { * *
      * Optional. The resource names of AdUnits that constitute the Placement.
-     * Format: "networks/{network_code}/adUnits/{ad_unit_id}"
+     * Format: "networks/{network_code}/adUnits/{ad_unit}"
      * 
* * @@ -1828,7 +1977,7 @@ public Builder addAllTargetedAdUnits(java.lang.Iterable values * *
      * Optional. The resource names of AdUnits that constitute the Placement.
-     * Format: "networks/{network_code}/adUnits/{ad_unit_id}"
+     * Format: "networks/{network_code}/adUnits/{ad_unit}"
      * 
* * @@ -1850,7 +1999,7 @@ public Builder clearTargetedAdUnits() { * *
      * Optional. The resource names of AdUnits that constitute the Placement.
-     * Format: "networks/{network_code}/adUnits/{ad_unit_id}"
+     * Format: "networks/{network_code}/adUnits/{ad_unit}"
      * 
* * @@ -1887,7 +2036,7 @@ public Builder addTargetedAdUnitsBytes(com.google.protobuf.ByteString value) { * * * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the updateTime field is set. @@ -1904,7 +2053,7 @@ public boolean hasUpdateTime() { * * * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The updateTime. @@ -1927,7 +2076,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { * * * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { @@ -1952,7 +2101,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { * * * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { @@ -1974,7 +2123,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal * * * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { @@ -2004,7 +2153,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * * * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearUpdateTime() { @@ -2026,7 +2175,7 @@ public Builder clearUpdateTime() { * * * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { @@ -2043,7 +2192,7 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { * * * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -2064,7 +2213,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PlacementMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PlacementMessagesProto.java index bb3d2ab57c28..007d02adaedf 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PlacementMessagesProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PlacementMessagesProto.java @@ -46,26 +46,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ages.proto\022\027google.ads.admanager.v1\032-goo" + "gle/ads/admanager/v1/placement_enums.pro" + "to\032\037google/api/field_behavior.proto\032\031goo" - + "gle/api/resource.proto\032\037google/protobuf/timestamp.proto\"\310\003\n" + + "gle/api/resource.proto\032\037google/protobuf/timestamp.proto\"\260\004\n" + "\tPlacement\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" - + "\014placement_id\030\002 \001(\003B\003\340A\003\022\031\n" - + "\014display_name\030\003 \001(\tB\003\340A\002\022\030\n" - + "\013description\030\004 \001(\tB\003\340A\001\022\033\n" - + "\016placement_code\030\005 \001(\tB\003\340A\003\022Q\n" - + "\006status\030\006 \001(\0162<.google.ads.admanager.v1." - + "PlacementStatusEnum.PlacementStatusB\003\340A\003\022B\n" + + "\014placement_id\030\002 \001(\003B\003\340A\003\022\036\n" + + "\014display_name\030\003 \001(\tB\003\340A\002H\000\210\001\001\022\035\n" + + "\013description\030\004 \001(\tB\003\340A\001H\001\210\001\001\022 \n" + + "\016placement_code\030\005 \001(\tB\003\340A\003H\002\210\001\001\022V\n" + + "\006status\030\006 \001(\0162<.google.ad" + + "s.admanager.v1.PlacementStatusEnum.PlacementStatusB\003\340A\003H\003\210\001\001\022B\n" + "\021targeted_ad_units\030\007 \003(\tB\'\340A\001\372A!\n" - + "\037admanager.googleapis.com/AdUnit\0224\n" - + "\013update_time\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A\003:n\352Ak\n" - + "\"admanager.googleapis.com/Placem" - + "ent\022.networks/{network_code}/placements/{placement}*\n" - + "placements2\tplacementB\312\001\n" - + "\033com.google.ads.admanager.v1B\026PlacementMes" - + "sagesProtoP\001Z@google.golang.org/genproto" - + "/googleapis/ads/admanager/v1;admanager\252\002" - + "\027Google.Ads.AdManager.V1\312\002\027Google\\Ads\\Ad" - + "Manager\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" + + "\037admanager.googleapis.com/AdUnit\0229\n" + + "\013update_time\030\t" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003H\004\210\001\001:n\352Ak\n" + + "\"admana" + + "ger.googleapis.com/Placement\022.networks/{network_code}/placements/{placement}*\n" + + "placements2\tplacementB\017\n\r" + + "_display_nameB\016\n" + + "\014_descriptionB\021\n" + + "\017_placement_codeB\t\n" + + "\007_statusB\016\n" + + "\014_update_timeB\312\001\n" + + "\033com.google.ads.admanager.v1B\026PlacementMessagesProtoP\001Z@go" + + "ogle.golang.org/genproto/googleapis/ads/" + + "admanager/v1;admanager\252\002\027Google.Ads.AdMa" + + "nager.V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032Goo" + + "gle::Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PlacementOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PlacementOrBuilder.java index e0d480189c83..e64844ab3b33 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PlacementOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PlacementOrBuilder.java @@ -69,11 +69,25 @@ public interface PlacementOrBuilder * * *
-   * Required. The display name of the placement. Its maximum length is 255
-   * characters.
+   * Required. The display name of the placement. This attribute has a maximum
+   * length of 255 characters.
    * 
* - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the displayName field is set. + */ + boolean hasDisplayName(); + + /** + * + * + *
+   * Required. The display name of the placement. This attribute has a maximum
+   * length of 255 characters.
+   * 
+ * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The displayName. */ @@ -83,11 +97,11 @@ public interface PlacementOrBuilder * * *
-   * Required. The display name of the placement. Its maximum length is 255
-   * characters.
+   * Required. The display name of the placement. This attribute has a maximum
+   * length of 255 characters.
    * 
* - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for displayName. */ @@ -97,11 +111,25 @@ public interface PlacementOrBuilder * * *
-   * Optional. A description of the Placement. This value is optional and its
-   * maximum length is 65,535 characters.
+   * Optional. A description of the Placement. This attribute has a maximum
+   * length of 65,535 characters.
    * 
* - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the description field is set. + */ + boolean hasDescription(); + + /** + * + * + *
+   * Optional. A description of the Placement. This attribute has a maximum
+   * length of 65,535 characters.
+   * 
+ * + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The description. */ @@ -111,11 +139,11 @@ public interface PlacementOrBuilder * * *
-   * Optional. A description of the Placement. This value is optional and its
-   * maximum length is 65,535 characters.
+   * Optional. A description of the Placement. This attribute has a maximum
+   * length of 65,535 characters.
    * 
* - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for description. */ @@ -126,11 +154,24 @@ public interface PlacementOrBuilder * *
    * Output only. A string used to uniquely identify the Placement for purposes
-   * of serving the ad. This attribute is read-only and is assigned by Google
-   * when a placement is created.
+   * of serving the ad. This attribute is assigned by Google.
+   * 
+ * + * optional string placement_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the placementCode field is set. + */ + boolean hasPlacementCode(); + + /** + * + * + *
+   * Output only. A string used to uniquely identify the Placement for purposes
+   * of serving the ad. This attribute is assigned by Google.
    * 
* - * string placement_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string placement_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The placementCode. */ @@ -141,11 +182,10 @@ public interface PlacementOrBuilder * *
    * Output only. A string used to uniquely identify the Placement for purposes
-   * of serving the ad. This attribute is read-only and is assigned by Google
-   * when a placement is created.
+   * of serving the ad. This attribute is assigned by Google.
    * 
* - * string placement_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string placement_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for placementCode. */ @@ -155,11 +195,26 @@ public interface PlacementOrBuilder * * *
-   * Output only. The status of the Placement. This attribute is read-only.
+   * Output only. The status of the Placement.
    * 
* * - * .google.ads.admanager.v1.PlacementStatusEnum.PlacementStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.PlacementStatusEnum.PlacementStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the status field is set. + */ + boolean hasStatus(); + + /** + * + * + *
+   * Output only. The status of the Placement.
+   * 
+ * + * + * optional .google.ads.admanager.v1.PlacementStatusEnum.PlacementStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for status. @@ -170,11 +225,11 @@ public interface PlacementOrBuilder * * *
-   * Output only. The status of the Placement. This attribute is read-only.
+   * Output only. The status of the Placement.
    * 
* * - * .google.ads.admanager.v1.PlacementStatusEnum.PlacementStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.PlacementStatusEnum.PlacementStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The status. @@ -186,7 +241,7 @@ public interface PlacementOrBuilder * *
    * Optional. The resource names of AdUnits that constitute the Placement.
-   * Format: "networks/{network_code}/adUnits/{ad_unit_id}"
+   * Format: "networks/{network_code}/adUnits/{ad_unit}"
    * 
* * @@ -202,7 +257,7 @@ public interface PlacementOrBuilder * *
    * Optional. The resource names of AdUnits that constitute the Placement.
-   * Format: "networks/{network_code}/adUnits/{ad_unit_id}"
+   * Format: "networks/{network_code}/adUnits/{ad_unit}"
    * 
* * @@ -218,7 +273,7 @@ public interface PlacementOrBuilder * *
    * Optional. The resource names of AdUnits that constitute the Placement.
-   * Format: "networks/{network_code}/adUnits/{ad_unit_id}"
+   * Format: "networks/{network_code}/adUnits/{ad_unit}"
    * 
* * @@ -235,7 +290,7 @@ public interface PlacementOrBuilder * *
    * Optional. The resource names of AdUnits that constitute the Placement.
-   * Format: "networks/{network_code}/adUnits/{ad_unit_id}"
+   * Format: "networks/{network_code}/adUnits/{ad_unit}"
    * 
* * @@ -254,7 +309,8 @@ public interface PlacementOrBuilder * Output only. The instant this Placement was last modified. * * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the updateTime field is set. @@ -268,7 +324,8 @@ public interface PlacementOrBuilder * Output only. The instant this Placement was last modified. * * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The updateTime. @@ -282,7 +339,8 @@ public interface PlacementOrBuilder * Output only. The instant this Placement was last modified. * * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PlacementServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PlacementServiceProto.java index 79ac234680a2..ada0b931975c 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PlacementServiceProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PlacementServiceProto.java @@ -70,7 +70,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026ListPlacementsResponse\0226\n\n" + "placements\030\001 \003(\0132\".google.ads.admanager.v1.Placement\022\027\n" + "\017next_page_token\030\002 \001(\t\022\022\n\n" - + "total_size\030\003 \001(\0052\356\002\n" + + "total_size\030\003 \001(\0052\232\003\n" + "\020PlacementService\022\223\001\n" + "\014GetPlacement\022,.google.ads.admanager.v1.GetPlacement" + "Request\032\".google.ads.admanager.v1.Placem" @@ -78,12 +78,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016ListPlacements\022..google.ads.admanager.v1.ListPlacementsReques" + "t\032/.google.ads.admanager.v1.ListPlacemen" + "tsResponse\"3\332A\006parent\202\323\344\223\002$\022\"/v1/{parent" - + "=networks/*}/placements\032\033\312A\030admanager.googleapis.comB\311\001\n" - + "\033com.google.ads.admanager.v1B\025PlacementServiceProtoP\001Z@google.go" - + "lang.org/genproto/googleapis/ads/admanag" - + "er/v1;admanager\252\002\027Google.Ads.AdManager.V" - + "1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032Google::Ad" - + "s::AdManager::V1b\006proto3" + + "=networks/*}/placements\032G\312A\030admanager.go" + + "ogleapis.com\322A)https://www.googleapis.com/auth/admanagerB\311\001\n" + + "\033com.google.ads.admanager.v1B\025PlacementServiceProtoP\001Z@googl" + + "e.golang.org/genproto/googleapis/ads/adm" + + "anager/v1;admanager\252\002\027Google.Ads.AdManag" + + "er.V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032Google" + + "::Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -125,6 +126,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.AnnotationsProto.http); registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PrivateAuction.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PrivateAuction.java new file mode 100644 index 000000000000..801421c40807 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PrivateAuction.java @@ -0,0 +1,2333 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/private_auction_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * The `PrivateAuction` resource.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.PrivateAuction} + */ +public final class PrivateAuction extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.PrivateAuction) + PrivateAuctionOrBuilder { + private static final long serialVersionUID = 0L; + + // Use PrivateAuction.newBuilder() to construct. + private PrivateAuction(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PrivateAuction() { + name_ = ""; + displayName_ = ""; + description_ = ""; + sellerContactUsers_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PrivateAuction(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PrivateAuctionMessagesProto + .internal_static_google_ads_admanager_v1_PrivateAuction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PrivateAuctionMessagesProto + .internal_static_google_ads_admanager_v1_PrivateAuction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.PrivateAuction.class, + com.google.ads.admanager.v1.PrivateAuction.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 `PrivateAuction`.
+   * Format:
+   * `networks/{network_code}/privateAuctions/{private_auction_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 `PrivateAuction`.
+   * Format:
+   * `networks/{network_code}/privateAuctions/{private_auction_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 PRIVATE_AUCTION_ID_FIELD_NUMBER = 2; + private long privateAuctionId_ = 0L; + + /** + * + * + *
+   * Output only. `PrivateAuction` ID.
+   * 
+ * + * optional int64 private_auction_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the privateAuctionId field is set. + */ + @java.lang.Override + public boolean hasPrivateAuctionId() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. `PrivateAuction` ID.
+   * 
+ * + * optional int64 private_auction_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The privateAuctionId. + */ + @java.lang.Override + public long getPrivateAuctionId() { + return privateAuctionId_; + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
+   * Required. Display name of the `PrivateAuction`. This attribute has a
+   * maximum length of 255 bytes.
+   * 
+ * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the displayName field is set. + */ + @java.lang.Override + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Required. Display name of the `PrivateAuction`. This attribute has a
+   * maximum length of 255 bytes.
+   * 
+ * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Display name of the `PrivateAuction`. This attribute has a
+   * maximum length of 255 bytes.
+   * 
+ * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * Optional. Description of the `PrivateAuction`. This attribute has a
+   * maximum length of 4096 bytes.
+   * 
+ * + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the description field is set. + */ + @java.lang.Override + public boolean hasDescription() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Optional. Description of the `PrivateAuction`. This attribute has a
+   * maximum length of 4096 bytes.
+   * 
+ * + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Description of the `PrivateAuction`. This attribute has a
+   * maximum length of 4096 bytes.
+   * 
+ * + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SELLER_CONTACT_USERS_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList sellerContactUsers_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. The resource names of the seller contact users associated with
+   * this `PrivateAuction`. Format: `networks/{network_code}/users/{user_id}`
+   * 
+ * + * + * repeated string seller_contact_users = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the sellerContactUsers. + */ + public com.google.protobuf.ProtocolStringList getSellerContactUsersList() { + return sellerContactUsers_; + } + + /** + * + * + *
+   * Optional. The resource names of the seller contact users associated with
+   * this `PrivateAuction`. Format: `networks/{network_code}/users/{user_id}`
+   * 
+ * + * + * repeated string seller_contact_users = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of sellerContactUsers. + */ + public int getSellerContactUsersCount() { + return sellerContactUsers_.size(); + } + + /** + * + * + *
+   * Optional. The resource names of the seller contact users associated with
+   * this `PrivateAuction`. Format: `networks/{network_code}/users/{user_id}`
+   * 
+ * + * + * repeated string seller_contact_users = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The sellerContactUsers at the given index. + */ + public java.lang.String getSellerContactUsers(int index) { + return sellerContactUsers_.get(index); + } + + /** + * + * + *
+   * Optional. The resource names of the seller contact users associated with
+   * this `PrivateAuction`. Format: `networks/{network_code}/users/{user_id}`
+   * 
+ * + * + * repeated string seller_contact_users = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the sellerContactUsers at the given index. + */ + public com.google.protobuf.ByteString getSellerContactUsersBytes(int index) { + return sellerContactUsers_.getByteString(index); + } + + public static final int ARCHIVED_FIELD_NUMBER = 6; + private boolean archived_ = false; + + /** + * + * + *
+   * Output only. Whether the `PrivateAuction` is archived.
+   * 
+ * + * optional bool archived = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the archived field is set. + */ + @java.lang.Override + public boolean hasArchived() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Output only. Whether the `PrivateAuction` is archived.
+   * 
+ * + * optional bool archived = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The archived. + */ + @java.lang.Override + public boolean getArchived() { + return archived_; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. The instant at which the PrivateAuction was created.
+   * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Output only. The instant at which the PrivateAuction was created.
+   * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
+   * Output only. The instant at which the PrivateAuction was created.
+   * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. The instant at which the PrivateAuction was last updated.
+   * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+   * Output only. The instant at which the PrivateAuction was last updated.
+   * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
+   * Output only. The instant at which the PrivateAuction was last updated.
+   * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt64(2, privateAuctionId_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeBool(6, archived_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(7, getCreateTime()); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(8, getUpdateTime()); + } + for (int i = 0; i < sellerContactUsers_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, sellerContactUsers_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, privateAuctionId_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, archived_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime()); + } + { + int dataSize = 0; + for (int i = 0; i < sellerContactUsers_.size(); i++) { + dataSize += computeStringSizeNoTag(sellerContactUsers_.getRaw(i)); + } + size += dataSize; + size += 1 * getSellerContactUsersList().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.admanager.v1.PrivateAuction)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.PrivateAuction other = + (com.google.ads.admanager.v1.PrivateAuction) obj; + + if (!getName().equals(other.getName())) return false; + if (hasPrivateAuctionId() != other.hasPrivateAuctionId()) return false; + if (hasPrivateAuctionId()) { + if (getPrivateAuctionId() != other.getPrivateAuctionId()) return false; + } + if (hasDisplayName() != other.hasDisplayName()) return false; + if (hasDisplayName()) { + if (!getDisplayName().equals(other.getDisplayName())) return false; + } + if (hasDescription() != other.hasDescription()) return false; + if (hasDescription()) { + if (!getDescription().equals(other.getDescription())) return false; + } + if (!getSellerContactUsersList().equals(other.getSellerContactUsersList())) return false; + if (hasArchived() != other.hasArchived()) return false; + if (hasArchived()) { + if (getArchived() != other.getArchived()) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasPrivateAuctionId()) { + hash = (37 * hash) + PRIVATE_AUCTION_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPrivateAuctionId()); + } + if (hasDisplayName()) { + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + } + if (hasDescription()) { + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + } + if (getSellerContactUsersCount() > 0) { + hash = (37 * hash) + SELLER_CONTACT_USERS_FIELD_NUMBER; + hash = (53 * hash) + getSellerContactUsersList().hashCode(); + } + if (hasArchived()) { + hash = (37 * hash) + ARCHIVED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getArchived()); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.PrivateAuction parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.PrivateAuction 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.admanager.v1.PrivateAuction parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.PrivateAuction parseFrom( + 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.admanager.v1.PrivateAuction parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.PrivateAuction parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.PrivateAuction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.PrivateAuction parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.PrivateAuction parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.PrivateAuction parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.PrivateAuction parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.PrivateAuction parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.PrivateAuction prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The `PrivateAuction` resource.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.PrivateAuction} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.PrivateAuction) + com.google.ads.admanager.v1.PrivateAuctionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PrivateAuctionMessagesProto + .internal_static_google_ads_admanager_v1_PrivateAuction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PrivateAuctionMessagesProto + .internal_static_google_ads_admanager_v1_PrivateAuction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.PrivateAuction.class, + com.google.ads.admanager.v1.PrivateAuction.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.PrivateAuction.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + privateAuctionId_ = 0L; + displayName_ = ""; + description_ = ""; + sellerContactUsers_ = com.google.protobuf.LazyStringArrayList.emptyList(); + archived_ = false; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.PrivateAuctionMessagesProto + .internal_static_google_ads_admanager_v1_PrivateAuction_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.PrivateAuction getDefaultInstanceForType() { + return com.google.ads.admanager.v1.PrivateAuction.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.PrivateAuction build() { + com.google.ads.admanager.v1.PrivateAuction result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.PrivateAuction buildPartial() { + com.google.ads.admanager.v1.PrivateAuction result = + new com.google.ads.admanager.v1.PrivateAuction(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.PrivateAuction result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.privateAuctionId_ = privateAuctionId_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.displayName_ = displayName_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.description_ = description_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + sellerContactUsers_.makeImmutable(); + result.sellerContactUsers_ = sellerContactUsers_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.archived_ = archived_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.PrivateAuction) { + return mergeFrom((com.google.ads.admanager.v1.PrivateAuction) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.PrivateAuction other) { + if (other == com.google.ads.admanager.v1.PrivateAuction.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasPrivateAuctionId()) { + setPrivateAuctionId(other.getPrivateAuctionId()); + } + if (other.hasDisplayName()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasDescription()) { + description_ = other.description_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.sellerContactUsers_.isEmpty()) { + if (sellerContactUsers_.isEmpty()) { + sellerContactUsers_ = other.sellerContactUsers_; + bitField0_ |= 0x00000010; + } else { + ensureSellerContactUsersIsMutable(); + sellerContactUsers_.addAll(other.sellerContactUsers_); + } + onChanged(); + } + if (other.hasArchived()) { + setArchived(other.getArchived()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.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: + { + privateAuctionId_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 48: + { + archived_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureSellerContactUsersIsMutable(); + sellerContactUsers_.add(s); + break; + } // case 74 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Identifier. The resource name of the `PrivateAuction`.
+     * Format:
+     * `networks/{network_code}/privateAuctions/{private_auction_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 `PrivateAuction`.
+     * Format:
+     * `networks/{network_code}/privateAuctions/{private_auction_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 `PrivateAuction`.
+     * Format:
+     * `networks/{network_code}/privateAuctions/{private_auction_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 `PrivateAuction`.
+     * Format:
+     * `networks/{network_code}/privateAuctions/{private_auction_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 `PrivateAuction`.
+     * Format:
+     * `networks/{network_code}/privateAuctions/{private_auction_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 long privateAuctionId_; + + /** + * + * + *
+     * Output only. `PrivateAuction` ID.
+     * 
+ * + * optional int64 private_auction_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the privateAuctionId field is set. + */ + @java.lang.Override + public boolean hasPrivateAuctionId() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. `PrivateAuction` ID.
+     * 
+ * + * optional int64 private_auction_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The privateAuctionId. + */ + @java.lang.Override + public long getPrivateAuctionId() { + return privateAuctionId_; + } + + /** + * + * + *
+     * Output only. `PrivateAuction` ID.
+     * 
+ * + * optional int64 private_auction_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The privateAuctionId to set. + * @return This builder for chaining. + */ + public Builder setPrivateAuctionId(long value) { + + privateAuctionId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. `PrivateAuction` ID.
+     * 
+ * + * optional int64 private_auction_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearPrivateAuctionId() { + bitField0_ = (bitField0_ & ~0x00000002); + privateAuctionId_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
+     * Required. Display name of the `PrivateAuction`. This attribute has a
+     * maximum length of 255 bytes.
+     * 
+ * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the displayName field is set. + */ + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. Display name of the `PrivateAuction`. This attribute has a
+     * maximum length of 255 bytes.
+     * 
+ * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Display name of the `PrivateAuction`. This attribute has a
+     * maximum length of 255 bytes.
+     * 
+ * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Display name of the `PrivateAuction`. This attribute has a
+     * maximum length of 255 bytes.
+     * 
+ * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Display name of the `PrivateAuction`. This attribute has a
+     * maximum length of 255 bytes.
+     * 
+ * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Display name of the `PrivateAuction`. This attribute has a
+     * maximum length of 255 bytes.
+     * 
+ * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+     * Optional. Description of the `PrivateAuction`. This attribute has a
+     * maximum length of 4096 bytes.
+     * 
+ * + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the description field is set. + */ + public boolean hasDescription() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Optional. Description of the `PrivateAuction`. This attribute has a
+     * maximum length of 4096 bytes.
+     * 
+ * + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Description of the `PrivateAuction`. This attribute has a
+     * maximum length of 4096 bytes.
+     * 
+ * + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Description of the `PrivateAuction`. This attribute has a
+     * maximum length of 4096 bytes.
+     * 
+ * + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Description of the `PrivateAuction`. This attribute has a
+     * maximum length of 4096 bytes.
+     * 
+ * + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Description of the `PrivateAuction`. This attribute has a
+     * maximum length of 4096 bytes.
+     * 
+ * + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList sellerContactUsers_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureSellerContactUsersIsMutable() { + if (!sellerContactUsers_.isModifiable()) { + sellerContactUsers_ = new com.google.protobuf.LazyStringArrayList(sellerContactUsers_); + } + bitField0_ |= 0x00000010; + } + + /** + * + * + *
+     * Optional. The resource names of the seller contact users associated with
+     * this `PrivateAuction`. Format: `networks/{network_code}/users/{user_id}`
+     * 
+ * + * + * repeated string seller_contact_users = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the sellerContactUsers. + */ + public com.google.protobuf.ProtocolStringList getSellerContactUsersList() { + sellerContactUsers_.makeImmutable(); + return sellerContactUsers_; + } + + /** + * + * + *
+     * Optional. The resource names of the seller contact users associated with
+     * this `PrivateAuction`. Format: `networks/{network_code}/users/{user_id}`
+     * 
+ * + * + * repeated string seller_contact_users = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of sellerContactUsers. + */ + public int getSellerContactUsersCount() { + return sellerContactUsers_.size(); + } + + /** + * + * + *
+     * Optional. The resource names of the seller contact users associated with
+     * this `PrivateAuction`. Format: `networks/{network_code}/users/{user_id}`
+     * 
+ * + * + * repeated string seller_contact_users = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The sellerContactUsers at the given index. + */ + public java.lang.String getSellerContactUsers(int index) { + return sellerContactUsers_.get(index); + } + + /** + * + * + *
+     * Optional. The resource names of the seller contact users associated with
+     * this `PrivateAuction`. Format: `networks/{network_code}/users/{user_id}`
+     * 
+ * + * + * repeated string seller_contact_users = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the sellerContactUsers at the given index. + */ + public com.google.protobuf.ByteString getSellerContactUsersBytes(int index) { + return sellerContactUsers_.getByteString(index); + } + + /** + * + * + *
+     * Optional. The resource names of the seller contact users associated with
+     * this `PrivateAuction`. Format: `networks/{network_code}/users/{user_id}`
+     * 
+ * + * + * repeated string seller_contact_users = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The sellerContactUsers to set. + * @return This builder for chaining. + */ + public Builder setSellerContactUsers(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSellerContactUsersIsMutable(); + sellerContactUsers_.set(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The resource names of the seller contact users associated with
+     * this `PrivateAuction`. Format: `networks/{network_code}/users/{user_id}`
+     * 
+ * + * + * repeated string seller_contact_users = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The sellerContactUsers to add. + * @return This builder for chaining. + */ + public Builder addSellerContactUsers(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSellerContactUsersIsMutable(); + sellerContactUsers_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The resource names of the seller contact users associated with
+     * this `PrivateAuction`. Format: `networks/{network_code}/users/{user_id}`
+     * 
+ * + * + * repeated string seller_contact_users = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param values The sellerContactUsers to add. + * @return This builder for chaining. + */ + public Builder addAllSellerContactUsers(java.lang.Iterable values) { + ensureSellerContactUsersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sellerContactUsers_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The resource names of the seller contact users associated with
+     * this `PrivateAuction`. Format: `networks/{network_code}/users/{user_id}`
+     * 
+ * + * + * repeated string seller_contact_users = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearSellerContactUsers() { + sellerContactUsers_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The resource names of the seller contact users associated with
+     * this `PrivateAuction`. Format: `networks/{network_code}/users/{user_id}`
+     * 
+ * + * + * repeated string seller_contact_users = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the sellerContactUsers to add. + * @return This builder for chaining. + */ + public Builder addSellerContactUsersBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSellerContactUsersIsMutable(); + sellerContactUsers_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private boolean archived_; + + /** + * + * + *
+     * Output only. Whether the `PrivateAuction` is archived.
+     * 
+ * + * optional bool archived = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the archived field is set. + */ + @java.lang.Override + public boolean hasArchived() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Output only. Whether the `PrivateAuction` is archived.
+     * 
+ * + * optional bool archived = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The archived. + */ + @java.lang.Override + public boolean getArchived() { + return archived_; + } + + /** + * + * + *
+     * Output only. Whether the `PrivateAuction` is archived.
+     * 
+ * + * optional bool archived = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The archived to set. + * @return This builder for chaining. + */ + public Builder setArchived(boolean value) { + + archived_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Whether the `PrivateAuction` is archived.
+     * 
+ * + * optional bool archived = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearArchived() { + bitField0_ = (bitField0_ & ~0x00000020); + archived_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. The instant at which the PrivateAuction was created.
+     * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Output only. The instant at which the PrivateAuction was created.
+     * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The instant at which the PrivateAuction was created.
+     * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The instant at which the PrivateAuction was created.
+     * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The instant at which the PrivateAuction was created.
+     * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The instant at which the PrivateAuction was created.
+     * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000040); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The instant at which the PrivateAuction was created.
+     * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The instant at which the PrivateAuction was created.
+     * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
+     * Output only. The instant at which the PrivateAuction was created.
+     * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
+     * Output only. The instant at which the PrivateAuction was last updated.
+     * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Output only. The instant at which the PrivateAuction was last updated.
+     * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The instant at which the PrivateAuction was last updated.
+     * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The instant at which the PrivateAuction was last updated.
+     * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The instant at which the PrivateAuction was last updated.
+     * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The instant at which the PrivateAuction was last updated.
+     * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000080); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The instant at which the PrivateAuction was last updated.
+     * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The instant at which the PrivateAuction was last updated.
+     * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
+     * Output only. The instant at which the PrivateAuction was last updated.
+     * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.PrivateAuction) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.PrivateAuction) + private static final com.google.ads.admanager.v1.PrivateAuction DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.PrivateAuction(); + } + + public static com.google.ads.admanager.v1.PrivateAuction getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrivateAuction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.PrivateAuction getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PrivateAuctionDeal.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PrivateAuctionDeal.java new file mode 100644 index 000000000000..1b15f460fef6 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PrivateAuctionDeal.java @@ -0,0 +1,5357 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/private_auction_deal_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * The `PrivateAuctionDeal` resource.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.PrivateAuctionDeal} + */ +public final class PrivateAuctionDeal extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.PrivateAuctionDeal) + PrivateAuctionDealOrBuilder { + private static final long serialVersionUID = 0L; + + // Use PrivateAuctionDeal.newBuilder() to construct. + private PrivateAuctionDeal(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PrivateAuctionDeal() { + name_ = ""; + privateAuctionDisplayName_ = ""; + creativeSizes_ = java.util.Collections.emptyList(); + status_ = 0; + buyerPermissionType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PrivateAuctionDeal(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PrivateAuctionDealMessagesProto + .internal_static_google_ads_admanager_v1_PrivateAuctionDeal_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PrivateAuctionDealMessagesProto + .internal_static_google_ads_admanager_v1_PrivateAuctionDeal_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.PrivateAuctionDeal.class, + com.google.ads.admanager.v1.PrivateAuctionDeal.Builder.class); + } + + public interface BuyerDataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.PrivateAuctionDeal.BuyerData) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. The email contacts of the buyer of the `PrivateAuctionDeal`.
+     * 
+ * + * repeated string buyer_emails = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the buyerEmails. + */ + java.util.List getBuyerEmailsList(); + + /** + * + * + *
+     * Optional. The email contacts of the buyer of the `PrivateAuctionDeal`.
+     * 
+ * + * repeated string buyer_emails = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of buyerEmails. + */ + int getBuyerEmailsCount(); + + /** + * + * + *
+     * Optional. The email contacts of the buyer of the `PrivateAuctionDeal`.
+     * 
+ * + * repeated string buyer_emails = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The buyerEmails at the given index. + */ + java.lang.String getBuyerEmails(int index); + + /** + * + * + *
+     * Optional. The email contacts of the buyer of the `PrivateAuctionDeal`.
+     * 
+ * + * repeated string buyer_emails = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the buyerEmails at the given index. + */ + com.google.protobuf.ByteString getBuyerEmailsBytes(int index); + } + + /** + * + * + *
+   * Contains buyer data. This data is required by the Marketplace API.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.PrivateAuctionDeal.BuyerData} + */ + public static final class BuyerData extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.PrivateAuctionDeal.BuyerData) + BuyerDataOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BuyerData.newBuilder() to construct. + private BuyerData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BuyerData() { + buyerEmails_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BuyerData(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PrivateAuctionDealMessagesProto + .internal_static_google_ads_admanager_v1_PrivateAuctionDeal_BuyerData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PrivateAuctionDealMessagesProto + .internal_static_google_ads_admanager_v1_PrivateAuctionDeal_BuyerData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData.class, + com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData.Builder.class); + } + + public static final int BUYER_EMAILS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList buyerEmails_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+     * Optional. The email contacts of the buyer of the `PrivateAuctionDeal`.
+     * 
+ * + * repeated string buyer_emails = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the buyerEmails. + */ + public com.google.protobuf.ProtocolStringList getBuyerEmailsList() { + return buyerEmails_; + } + + /** + * + * + *
+     * Optional. The email contacts of the buyer of the `PrivateAuctionDeal`.
+     * 
+ * + * repeated string buyer_emails = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of buyerEmails. + */ + public int getBuyerEmailsCount() { + return buyerEmails_.size(); + } + + /** + * + * + *
+     * Optional. The email contacts of the buyer of the `PrivateAuctionDeal`.
+     * 
+ * + * repeated string buyer_emails = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The buyerEmails at the given index. + */ + public java.lang.String getBuyerEmails(int index) { + return buyerEmails_.get(index); + } + + /** + * + * + *
+     * Optional. The email contacts of the buyer of the `PrivateAuctionDeal`.
+     * 
+ * + * repeated string buyer_emails = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the buyerEmails at the given index. + */ + public com.google.protobuf.ByteString getBuyerEmailsBytes(int index) { + return buyerEmails_.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 < buyerEmails_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, buyerEmails_.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 < buyerEmails_.size(); i++) { + dataSize += computeStringSizeNoTag(buyerEmails_.getRaw(i)); + } + size += dataSize; + size += 1 * getBuyerEmailsList().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.admanager.v1.PrivateAuctionDeal.BuyerData)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData other = + (com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData) obj; + + if (!getBuyerEmailsList().equals(other.getBuyerEmailsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getBuyerEmailsCount() > 0) { + hash = (37 * hash) + BUYER_EMAILS_FIELD_NUMBER; + hash = (53 * hash) + getBuyerEmailsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData 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.admanager.v1.PrivateAuctionDeal.BuyerData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData parseFrom( + 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.admanager.v1.PrivateAuctionDeal.BuyerData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.PrivateAuctionDeal.BuyerData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Contains buyer data. This data is required by the Marketplace API.
+     * 
+ * + * Protobuf type {@code google.ads.admanager.v1.PrivateAuctionDeal.BuyerData} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.PrivateAuctionDeal.BuyerData) + com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PrivateAuctionDealMessagesProto + .internal_static_google_ads_admanager_v1_PrivateAuctionDeal_BuyerData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PrivateAuctionDealMessagesProto + .internal_static_google_ads_admanager_v1_PrivateAuctionDeal_BuyerData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData.class, + com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + buyerEmails_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.PrivateAuctionDealMessagesProto + .internal_static_google_ads_admanager_v1_PrivateAuctionDeal_BuyerData_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData getDefaultInstanceForType() { + return com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData build() { + com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData buildPartial() { + com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData result = + new com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + buyerEmails_.makeImmutable(); + result.buyerEmails_ = buyerEmails_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData) { + return mergeFrom((com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData other) { + if (other == com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData.getDefaultInstance()) + return this; + if (!other.buyerEmails_.isEmpty()) { + if (buyerEmails_.isEmpty()) { + buyerEmails_ = other.buyerEmails_; + bitField0_ |= 0x00000001; + } else { + ensureBuyerEmailsIsMutable(); + buyerEmails_.addAll(other.buyerEmails_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + ensureBuyerEmailsIsMutable(); + buyerEmails_.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 buyerEmails_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureBuyerEmailsIsMutable() { + if (!buyerEmails_.isModifiable()) { + buyerEmails_ = new com.google.protobuf.LazyStringArrayList(buyerEmails_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
+       * Optional. The email contacts of the buyer of the `PrivateAuctionDeal`.
+       * 
+ * + * repeated string buyer_emails = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the buyerEmails. + */ + public com.google.protobuf.ProtocolStringList getBuyerEmailsList() { + buyerEmails_.makeImmutable(); + return buyerEmails_; + } + + /** + * + * + *
+       * Optional. The email contacts of the buyer of the `PrivateAuctionDeal`.
+       * 
+ * + * repeated string buyer_emails = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of buyerEmails. + */ + public int getBuyerEmailsCount() { + return buyerEmails_.size(); + } + + /** + * + * + *
+       * Optional. The email contacts of the buyer of the `PrivateAuctionDeal`.
+       * 
+ * + * repeated string buyer_emails = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The buyerEmails at the given index. + */ + public java.lang.String getBuyerEmails(int index) { + return buyerEmails_.get(index); + } + + /** + * + * + *
+       * Optional. The email contacts of the buyer of the `PrivateAuctionDeal`.
+       * 
+ * + * repeated string buyer_emails = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the buyerEmails at the given index. + */ + public com.google.protobuf.ByteString getBuyerEmailsBytes(int index) { + return buyerEmails_.getByteString(index); + } + + /** + * + * + *
+       * Optional. The email contacts of the buyer of the `PrivateAuctionDeal`.
+       * 
+ * + * repeated string buyer_emails = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The buyerEmails to set. + * @return This builder for chaining. + */ + public Builder setBuyerEmails(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureBuyerEmailsIsMutable(); + buyerEmails_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The email contacts of the buyer of the `PrivateAuctionDeal`.
+       * 
+ * + * repeated string buyer_emails = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The buyerEmails to add. + * @return This builder for chaining. + */ + public Builder addBuyerEmails(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureBuyerEmailsIsMutable(); + buyerEmails_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The email contacts of the buyer of the `PrivateAuctionDeal`.
+       * 
+ * + * repeated string buyer_emails = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The buyerEmails to add. + * @return This builder for chaining. + */ + public Builder addAllBuyerEmails(java.lang.Iterable values) { + ensureBuyerEmailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, buyerEmails_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The email contacts of the buyer of the `PrivateAuctionDeal`.
+       * 
+ * + * repeated string buyer_emails = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearBuyerEmails() { + buyerEmails_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The email contacts of the buyer of the `PrivateAuctionDeal`.
+       * 
+ * + * repeated string buyer_emails = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the buyerEmails to add. + * @return This builder for chaining. + */ + public Builder addBuyerEmailsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureBuyerEmailsIsMutable(); + buyerEmails_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.PrivateAuctionDeal.BuyerData) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.PrivateAuctionDeal.BuyerData) + private static final com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData(); + } + + public static com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BuyerData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.PrivateAuctionDeal.BuyerData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + 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 `PrivateAuctionDeal`.
+   * Format:
+   * `networks/{network_code}/privateAuctionDeals/{private_auction_deal_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 `PrivateAuctionDeal`.
+   * Format:
+   * `networks/{network_code}/privateAuctionDeals/{private_auction_deal_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 PRIVATE_AUCTION_DEAL_ID_FIELD_NUMBER = 2; + private long privateAuctionDealId_ = 0L; + + /** + * + * + *
+   * Output only. `PrivateAuctionDeal` ID.
+   * 
+ * + * optional int64 private_auction_deal_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the privateAuctionDealId field is set. + */ + @java.lang.Override + public boolean hasPrivateAuctionDealId() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. `PrivateAuctionDeal` ID.
+   * 
+ * + * optional int64 private_auction_deal_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The privateAuctionDealId. + */ + @java.lang.Override + public long getPrivateAuctionDealId() { + return privateAuctionDealId_; + } + + public static final int PRIVATE_AUCTION_ID_FIELD_NUMBER = 3; + private long privateAuctionId_ = 0L; + + /** + * + * + *
+   * Immutable. The ID of the
+   * [PrivateAuction](google.ads.admanager.v1.PrivateAuction).
+   * 
+ * + * optional int64 private_auction_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return Whether the privateAuctionId field is set. + */ + @java.lang.Override + public boolean hasPrivateAuctionId() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Immutable. The ID of the
+   * [PrivateAuction](google.ads.admanager.v1.PrivateAuction).
+   * 
+ * + * optional int64 private_auction_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The privateAuctionId. + */ + @java.lang.Override + public long getPrivateAuctionId() { + return privateAuctionId_; + } + + public static final int PRIVATE_AUCTION_DISPLAY_NAME_FIELD_NUMBER = 20; + + @SuppressWarnings("serial") + private volatile java.lang.Object privateAuctionDisplayName_ = ""; + + /** + * + * + *
+   * Output only. The display name of the
+   * [PrivateAuction](google.ads.admanager.v1.PrivateAuction).
+   * 
+ * + * + * optional string private_auction_display_name = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the privateAuctionDisplayName field is set. + */ + @java.lang.Override + public boolean hasPrivateAuctionDisplayName() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Output only. The display name of the
+   * [PrivateAuction](google.ads.admanager.v1.PrivateAuction).
+   * 
+ * + * + * optional string private_auction_display_name = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The privateAuctionDisplayName. + */ + @java.lang.Override + public java.lang.String getPrivateAuctionDisplayName() { + java.lang.Object ref = privateAuctionDisplayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privateAuctionDisplayName_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The display name of the
+   * [PrivateAuction](google.ads.admanager.v1.PrivateAuction).
+   * 
+ * + * + * optional string private_auction_display_name = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for privateAuctionDisplayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPrivateAuctionDisplayNameBytes() { + java.lang.Object ref = privateAuctionDisplayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privateAuctionDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BUYER_ACCOUNT_ID_FIELD_NUMBER = 4; + private long buyerAccountId_ = 0L; + + /** + * + * + *
+   * Immutable. The account ID of the buyer of the `PrivateAuctionDeal`.
+   * 
+ * + * optional int64 buyer_account_id = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return Whether the buyerAccountId field is set. + */ + @java.lang.Override + public boolean hasBuyerAccountId() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Immutable. The account ID of the buyer of the `PrivateAuctionDeal`.
+   * 
+ * + * optional int64 buyer_account_id = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The buyerAccountId. + */ + @java.lang.Override + public long getBuyerAccountId() { + return buyerAccountId_; + } + + public static final int EXTERNAL_DEAL_ID_FIELD_NUMBER = 5; + private long externalDealId_ = 0L; + + /** + * + * + *
+   * Output only. The external ID of the `PrivateAuctionDeal`.
+   * 
+ * + * optional int64 external_deal_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the externalDealId field is set. + */ + @java.lang.Override + public boolean hasExternalDealId() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Output only. The external ID of the `PrivateAuctionDeal`.
+   * 
+ * + * optional int64 external_deal_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The externalDealId. + */ + @java.lang.Override + public long getExternalDealId() { + return externalDealId_; + } + + public static final int TARGETING_FIELD_NUMBER = 6; + private com.google.ads.admanager.v1.Targeting targeting_; + + /** + * + * + *
+   * Optional. The targeting of the `PrivateAuctionDeal`.
+   * 
+ * + * + * optional .google.ads.admanager.v1.Targeting targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the targeting field is set. + */ + @java.lang.Override + public boolean hasTargeting() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+   * Optional. The targeting of the `PrivateAuctionDeal`.
+   * 
+ * + * + * optional .google.ads.admanager.v1.Targeting targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The targeting. + */ + @java.lang.Override + public com.google.ads.admanager.v1.Targeting getTargeting() { + return targeting_ == null + ? com.google.ads.admanager.v1.Targeting.getDefaultInstance() + : targeting_; + } + + /** + * + * + *
+   * Optional. The targeting of the `PrivateAuctionDeal`.
+   * 
+ * + * + * optional .google.ads.admanager.v1.Targeting targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.TargetingOrBuilder getTargetingOrBuilder() { + return targeting_ == null + ? com.google.ads.admanager.v1.Targeting.getDefaultInstance() + : targeting_; + } + + public static final int END_TIME_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp endTime_; + + /** + * + * + *
+   * Optional. The end time of the `PrivateAuctionDeal`.
+   * 
+ * + * + * optional .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+   * Optional. The end time of the `PrivateAuctionDeal`.
+   * 
+ * + * + * optional .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + /** + * + * + *
+   * Optional. The end time of the `PrivateAuctionDeal`.
+   * 
+ * + * + * optional .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + public static final int FLOOR_PRICE_FIELD_NUMBER = 9; + private com.google.type.Money floorPrice_; + + /** + * + * + *
+   * Required. The floor price of the `PrivateAuctionDeal`.
+   * 
+ * + * optional .google.type.Money floor_price = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the floorPrice field is set. + */ + @java.lang.Override + public boolean hasFloorPrice() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+   * Required. The floor price of the `PrivateAuctionDeal`.
+   * 
+ * + * optional .google.type.Money floor_price = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The floorPrice. + */ + @java.lang.Override + public com.google.type.Money getFloorPrice() { + return floorPrice_ == null ? com.google.type.Money.getDefaultInstance() : floorPrice_; + } + + /** + * + * + *
+   * Required. The floor price of the `PrivateAuctionDeal`.
+   * 
+ * + * optional .google.type.Money floor_price = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.type.MoneyOrBuilder getFloorPriceOrBuilder() { + return floorPrice_ == null ? com.google.type.Money.getDefaultInstance() : floorPrice_; + } + + public static final int CREATIVE_SIZES_FIELD_NUMBER = 18; + + @SuppressWarnings("serial") + private java.util.List creativeSizes_; + + /** + * + * + *
+   * Optional. The expected creative sizes of the `PrivateAuctionDeal`.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.Size creative_sizes = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getCreativeSizesList() { + return creativeSizes_; + } + + /** + * + * + *
+   * Optional. The expected creative sizes of the `PrivateAuctionDeal`.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.Size creative_sizes = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getCreativeSizesOrBuilderList() { + return creativeSizes_; + } + + /** + * + * + *
+   * Optional. The expected creative sizes of the `PrivateAuctionDeal`.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.Size creative_sizes = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getCreativeSizesCount() { + return creativeSizes_.size(); + } + + /** + * + * + *
+   * Optional. The expected creative sizes of the `PrivateAuctionDeal`.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.Size creative_sizes = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.Size getCreativeSizes(int index) { + return creativeSizes_.get(index); + } + + /** + * + * + *
+   * Optional. The expected creative sizes of the `PrivateAuctionDeal`.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.Size creative_sizes = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.SizeOrBuilder getCreativeSizesOrBuilder(int index) { + return creativeSizes_.get(index); + } + + public static final int STATUS_FIELD_NUMBER = 10; + private int status_ = 0; + + /** + * + * + *
+   * Output only. The status of the `PrivateAuctionDeal`.
+   * 
+ * + * + * optional .google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum.PrivateMarketplaceDealStatus status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
+   * Output only. The status of the `PrivateAuctionDeal`.
+   * 
+ * + * + * optional .google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum.PrivateMarketplaceDealStatus status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + + /** + * + * + *
+   * Output only. The status of the `PrivateAuctionDeal`.
+   * 
+ * + * + * optional .google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum.PrivateMarketplaceDealStatus status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The status. + */ + @java.lang.Override + public com.google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum.PrivateMarketplaceDealStatus + getStatus() { + com.google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum.PrivateMarketplaceDealStatus + result = + com.google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum + .PrivateMarketplaceDealStatus.forNumber(status_); + return result == null + ? com.google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum.PrivateMarketplaceDealStatus + .UNRECOGNIZED + : result; + } + + public static final int AUCTION_PRIORITY_ENABLED_FIELD_NUMBER = 11; + private boolean auctionPriorityEnabled_ = false; + + /** + * + * + *
+   * Optional. Whether the deal is enabled with priority over open auction.
+   * 
+ * + * optional bool auction_priority_enabled = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the auctionPriorityEnabled field is set. + */ + @java.lang.Override + public boolean hasAuctionPriorityEnabled() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
+   * Optional. Whether the deal is enabled with priority over open auction.
+   * 
+ * + * optional bool auction_priority_enabled = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The auctionPriorityEnabled. + */ + @java.lang.Override + public boolean getAuctionPriorityEnabled() { + return auctionPriorityEnabled_; + } + + public static final int BLOCK_OVERRIDE_ENABLED_FIELD_NUMBER = 12; + private boolean blockOverrideEnabled_ = false; + + /** + * + * + *
+   * Optional. Whether the deal has block override enabled.
+   * 
+ * + * optional bool block_override_enabled = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the blockOverrideEnabled field is set. + */ + @java.lang.Override + public boolean hasBlockOverrideEnabled() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
+   * Optional. Whether the deal has block override enabled.
+   * 
+ * + * optional bool block_override_enabled = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The blockOverrideEnabled. + */ + @java.lang.Override + public boolean getBlockOverrideEnabled() { + return blockOverrideEnabled_; + } + + public static final int BUYER_PERMISSION_TYPE_FIELD_NUMBER = 13; + private int buyerPermissionType_ = 0; + + /** + * + * + *
+   * Optional. The buyer permission model defining how the deal would transact
+   * among all buyers under the same bidder.
+   * 
+ * + * + * optional .google.ads.admanager.v1.DealBuyerPermissionTypeEnum.DealBuyerPermissionType buyer_permission_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the buyerPermissionType field is set. + */ + @java.lang.Override + public boolean hasBuyerPermissionType() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
+   * Optional. The buyer permission model defining how the deal would transact
+   * among all buyers under the same bidder.
+   * 
+ * + * + * optional .google.ads.admanager.v1.DealBuyerPermissionTypeEnum.DealBuyerPermissionType buyer_permission_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for buyerPermissionType. + */ + @java.lang.Override + public int getBuyerPermissionTypeValue() { + return buyerPermissionType_; + } + + /** + * + * + *
+   * Optional. The buyer permission model defining how the deal would transact
+   * among all buyers under the same bidder.
+   * 
+ * + * + * optional .google.ads.admanager.v1.DealBuyerPermissionTypeEnum.DealBuyerPermissionType buyer_permission_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The buyerPermissionType. + */ + @java.lang.Override + public com.google.ads.admanager.v1.DealBuyerPermissionTypeEnum.DealBuyerPermissionType + getBuyerPermissionType() { + com.google.ads.admanager.v1.DealBuyerPermissionTypeEnum.DealBuyerPermissionType result = + com.google.ads.admanager.v1.DealBuyerPermissionTypeEnum.DealBuyerPermissionType.forNumber( + buyerPermissionType_); + return result == null + ? com.google.ads.admanager.v1.DealBuyerPermissionTypeEnum.DealBuyerPermissionType + .UNRECOGNIZED + : result; + } + + public static final int BUYER_DATA_FIELD_NUMBER = 14; + private com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData buyerData_; + + /** + * + * + *
+   * Optional. The buyer data required by the Marketplace API.
+   * 
+ * + * + * optional .google.ads.admanager.v1.PrivateAuctionDeal.BuyerData buyer_data = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the buyerData field is set. + */ + @java.lang.Override + public boolean hasBuyerData() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
+   * Optional. The buyer data required by the Marketplace API.
+   * 
+ * + * + * optional .google.ads.admanager.v1.PrivateAuctionDeal.BuyerData buyer_data = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The buyerData. + */ + @java.lang.Override + public com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData getBuyerData() { + return buyerData_ == null + ? com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData.getDefaultInstance() + : buyerData_; + } + + /** + * + * + *
+   * Optional. The buyer data required by the Marketplace API.
+   * 
+ * + * + * optional .google.ads.admanager.v1.PrivateAuctionDeal.BuyerData buyer_data = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerDataOrBuilder getBuyerDataOrBuilder() { + return buyerData_ == null + ? com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData.getDefaultInstance() + : buyerData_; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 15; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. The instant at which the `PrivateAuctionDeal` was created.
+   * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00002000) != 0); + } + + /** + * + * + *
+   * Output only. The instant at which the `PrivateAuctionDeal` was created.
+   * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 15 [(.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 instant at which the `PrivateAuctionDeal` was created.
+   * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 15 [(.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 = 16; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. The instant at which the `PrivateAuctionDeal` was last
+   * updated.
+   * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00004000) != 0); + } + + /** + * + * + *
+   * Output only. The instant at which the `PrivateAuctionDeal` was last
+   * updated.
+   * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 16 [(.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 instant at which the `PrivateAuctionDeal` was last
+   * updated.
+   * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt64(2, privateAuctionDealId_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeInt64(3, privateAuctionId_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeInt64(4, buyerAccountId_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeInt64(5, externalDealId_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(6, getTargeting()); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(8, getEndTime()); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(9, getFloorPrice()); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeEnum(10, status_); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeBool(11, auctionPriorityEnabled_); + } + if (((bitField0_ & 0x00000400) != 0)) { + output.writeBool(12, blockOverrideEnabled_); + } + if (((bitField0_ & 0x00000800) != 0)) { + output.writeEnum(13, buyerPermissionType_); + } + if (((bitField0_ & 0x00001000) != 0)) { + output.writeMessage(14, getBuyerData()); + } + if (((bitField0_ & 0x00002000) != 0)) { + output.writeMessage(15, getCreateTime()); + } + if (((bitField0_ & 0x00004000) != 0)) { + output.writeMessage(16, getUpdateTime()); + } + for (int i = 0; i < creativeSizes_.size(); i++) { + output.writeMessage(18, creativeSizes_.get(i)); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 20, privateAuctionDisplayName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, privateAuctionDealId_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, privateAuctionId_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, buyerAccountId_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, externalDealId_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getTargeting()); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getEndTime()); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getFloorPrice()); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, status_); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, auctionPriorityEnabled_); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, blockOverrideEnabled_); + } + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, buyerPermissionType_); + } + if (((bitField0_ & 0x00001000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getBuyerData()); + } + if (((bitField0_ & 0x00002000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getCreateTime()); + } + if (((bitField0_ & 0x00004000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getUpdateTime()); + } + for (int i = 0; i < creativeSizes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, creativeSizes_.get(i)); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(20, privateAuctionDisplayName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.admanager.v1.PrivateAuctionDeal)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.PrivateAuctionDeal other = + (com.google.ads.admanager.v1.PrivateAuctionDeal) obj; + + if (!getName().equals(other.getName())) return false; + if (hasPrivateAuctionDealId() != other.hasPrivateAuctionDealId()) return false; + if (hasPrivateAuctionDealId()) { + if (getPrivateAuctionDealId() != other.getPrivateAuctionDealId()) return false; + } + if (hasPrivateAuctionId() != other.hasPrivateAuctionId()) return false; + if (hasPrivateAuctionId()) { + if (getPrivateAuctionId() != other.getPrivateAuctionId()) return false; + } + if (hasPrivateAuctionDisplayName() != other.hasPrivateAuctionDisplayName()) return false; + if (hasPrivateAuctionDisplayName()) { + if (!getPrivateAuctionDisplayName().equals(other.getPrivateAuctionDisplayName())) + return false; + } + if (hasBuyerAccountId() != other.hasBuyerAccountId()) return false; + if (hasBuyerAccountId()) { + if (getBuyerAccountId() != other.getBuyerAccountId()) return false; + } + if (hasExternalDealId() != other.hasExternalDealId()) return false; + if (hasExternalDealId()) { + if (getExternalDealId() != other.getExternalDealId()) return false; + } + if (hasTargeting() != other.hasTargeting()) return false; + if (hasTargeting()) { + if (!getTargeting().equals(other.getTargeting())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (hasFloorPrice() != other.hasFloorPrice()) return false; + if (hasFloorPrice()) { + if (!getFloorPrice().equals(other.getFloorPrice())) return false; + } + if (!getCreativeSizesList().equals(other.getCreativeSizesList())) return false; + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (status_ != other.status_) return false; + } + if (hasAuctionPriorityEnabled() != other.hasAuctionPriorityEnabled()) return false; + if (hasAuctionPriorityEnabled()) { + if (getAuctionPriorityEnabled() != other.getAuctionPriorityEnabled()) return false; + } + if (hasBlockOverrideEnabled() != other.hasBlockOverrideEnabled()) return false; + if (hasBlockOverrideEnabled()) { + if (getBlockOverrideEnabled() != other.getBlockOverrideEnabled()) return false; + } + if (hasBuyerPermissionType() != other.hasBuyerPermissionType()) return false; + if (hasBuyerPermissionType()) { + if (buyerPermissionType_ != other.buyerPermissionType_) return false; + } + if (hasBuyerData() != other.hasBuyerData()) return false; + if (hasBuyerData()) { + if (!getBuyerData().equals(other.getBuyerData())) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasPrivateAuctionDealId()) { + hash = (37 * hash) + PRIVATE_AUCTION_DEAL_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPrivateAuctionDealId()); + } + if (hasPrivateAuctionId()) { + hash = (37 * hash) + PRIVATE_AUCTION_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPrivateAuctionId()); + } + if (hasPrivateAuctionDisplayName()) { + hash = (37 * hash) + PRIVATE_AUCTION_DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getPrivateAuctionDisplayName().hashCode(); + } + if (hasBuyerAccountId()) { + hash = (37 * hash) + BUYER_ACCOUNT_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBuyerAccountId()); + } + if (hasExternalDealId()) { + hash = (37 * hash) + EXTERNAL_DEAL_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getExternalDealId()); + } + if (hasTargeting()) { + hash = (37 * hash) + TARGETING_FIELD_NUMBER; + hash = (53 * hash) + getTargeting().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + if (hasFloorPrice()) { + hash = (37 * hash) + FLOOR_PRICE_FIELD_NUMBER; + hash = (53 * hash) + getFloorPrice().hashCode(); + } + if (getCreativeSizesCount() > 0) { + hash = (37 * hash) + CREATIVE_SIZES_FIELD_NUMBER; + hash = (53 * hash) + getCreativeSizesList().hashCode(); + } + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + } + if (hasAuctionPriorityEnabled()) { + hash = (37 * hash) + AUCTION_PRIORITY_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAuctionPriorityEnabled()); + } + if (hasBlockOverrideEnabled()) { + hash = (37 * hash) + BLOCK_OVERRIDE_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBlockOverrideEnabled()); + } + if (hasBuyerPermissionType()) { + hash = (37 * hash) + BUYER_PERMISSION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + buyerPermissionType_; + } + if (hasBuyerData()) { + hash = (37 * hash) + BUYER_DATA_FIELD_NUMBER; + hash = (53 * hash) + getBuyerData().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.PrivateAuctionDeal parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.PrivateAuctionDeal 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.admanager.v1.PrivateAuctionDeal parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.PrivateAuctionDeal parseFrom( + 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.admanager.v1.PrivateAuctionDeal parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.PrivateAuctionDeal parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.PrivateAuctionDeal parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.PrivateAuctionDeal parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.PrivateAuctionDeal parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.PrivateAuctionDeal parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.PrivateAuctionDeal parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.PrivateAuctionDeal parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.PrivateAuctionDeal prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The `PrivateAuctionDeal` resource.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.PrivateAuctionDeal} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.PrivateAuctionDeal) + com.google.ads.admanager.v1.PrivateAuctionDealOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PrivateAuctionDealMessagesProto + .internal_static_google_ads_admanager_v1_PrivateAuctionDeal_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PrivateAuctionDealMessagesProto + .internal_static_google_ads_admanager_v1_PrivateAuctionDeal_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.PrivateAuctionDeal.class, + com.google.ads.admanager.v1.PrivateAuctionDeal.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.PrivateAuctionDeal.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTargetingFieldBuilder(); + getEndTimeFieldBuilder(); + getFloorPriceFieldBuilder(); + getCreativeSizesFieldBuilder(); + getBuyerDataFieldBuilder(); + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + privateAuctionDealId_ = 0L; + privateAuctionId_ = 0L; + privateAuctionDisplayName_ = ""; + buyerAccountId_ = 0L; + externalDealId_ = 0L; + targeting_ = null; + if (targetingBuilder_ != null) { + targetingBuilder_.dispose(); + targetingBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + floorPrice_ = null; + if (floorPriceBuilder_ != null) { + floorPriceBuilder_.dispose(); + floorPriceBuilder_ = null; + } + if (creativeSizesBuilder_ == null) { + creativeSizes_ = java.util.Collections.emptyList(); + } else { + creativeSizes_ = null; + creativeSizesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000200); + status_ = 0; + auctionPriorityEnabled_ = false; + blockOverrideEnabled_ = false; + buyerPermissionType_ = 0; + buyerData_ = null; + if (buyerDataBuilder_ != null) { + buyerDataBuilder_.dispose(); + buyerDataBuilder_ = null; + } + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.PrivateAuctionDealMessagesProto + .internal_static_google_ads_admanager_v1_PrivateAuctionDeal_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.PrivateAuctionDeal getDefaultInstanceForType() { + return com.google.ads.admanager.v1.PrivateAuctionDeal.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.PrivateAuctionDeal build() { + com.google.ads.admanager.v1.PrivateAuctionDeal result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.PrivateAuctionDeal buildPartial() { + com.google.ads.admanager.v1.PrivateAuctionDeal result = + new com.google.ads.admanager.v1.PrivateAuctionDeal(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.ads.admanager.v1.PrivateAuctionDeal result) { + if (creativeSizesBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0)) { + creativeSizes_ = java.util.Collections.unmodifiableList(creativeSizes_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.creativeSizes_ = creativeSizes_; + } else { + result.creativeSizes_ = creativeSizesBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.PrivateAuctionDeal result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.privateAuctionDealId_ = privateAuctionDealId_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.privateAuctionId_ = privateAuctionId_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.privateAuctionDisplayName_ = privateAuctionDisplayName_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.buyerAccountId_ = buyerAccountId_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.externalDealId_ = externalDealId_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.targeting_ = targetingBuilder_ == null ? targeting_ : targetingBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.floorPrice_ = floorPriceBuilder_ == null ? floorPrice_ : floorPriceBuilder_.build(); + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.status_ = status_; + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.auctionPriorityEnabled_ = auctionPriorityEnabled_; + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.blockOverrideEnabled_ = blockOverrideEnabled_; + to_bitField0_ |= 0x00000400; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.buyerPermissionType_ = buyerPermissionType_; + to_bitField0_ |= 0x00000800; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.buyerData_ = buyerDataBuilder_ == null ? buyerData_ : buyerDataBuilder_.build(); + to_bitField0_ |= 0x00001000; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00002000; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00004000; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.PrivateAuctionDeal) { + return mergeFrom((com.google.ads.admanager.v1.PrivateAuctionDeal) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.PrivateAuctionDeal other) { + if (other == com.google.ads.admanager.v1.PrivateAuctionDeal.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasPrivateAuctionDealId()) { + setPrivateAuctionDealId(other.getPrivateAuctionDealId()); + } + if (other.hasPrivateAuctionId()) { + setPrivateAuctionId(other.getPrivateAuctionId()); + } + if (other.hasPrivateAuctionDisplayName()) { + privateAuctionDisplayName_ = other.privateAuctionDisplayName_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasBuyerAccountId()) { + setBuyerAccountId(other.getBuyerAccountId()); + } + if (other.hasExternalDealId()) { + setExternalDealId(other.getExternalDealId()); + } + if (other.hasTargeting()) { + mergeTargeting(other.getTargeting()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (other.hasFloorPrice()) { + mergeFloorPrice(other.getFloorPrice()); + } + if (creativeSizesBuilder_ == null) { + if (!other.creativeSizes_.isEmpty()) { + if (creativeSizes_.isEmpty()) { + creativeSizes_ = other.creativeSizes_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureCreativeSizesIsMutable(); + creativeSizes_.addAll(other.creativeSizes_); + } + onChanged(); + } + } else { + if (!other.creativeSizes_.isEmpty()) { + if (creativeSizesBuilder_.isEmpty()) { + creativeSizesBuilder_.dispose(); + creativeSizesBuilder_ = null; + creativeSizes_ = other.creativeSizes_; + bitField0_ = (bitField0_ & ~0x00000200); + creativeSizesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCreativeSizesFieldBuilder() + : null; + } else { + creativeSizesBuilder_.addAllMessages(other.creativeSizes_); + } + } + } + if (other.hasStatus()) { + setStatus(other.getStatus()); + } + if (other.hasAuctionPriorityEnabled()) { + setAuctionPriorityEnabled(other.getAuctionPriorityEnabled()); + } + if (other.hasBlockOverrideEnabled()) { + setBlockOverrideEnabled(other.getBlockOverrideEnabled()); + } + if (other.hasBuyerPermissionType()) { + setBuyerPermissionType(other.getBuyerPermissionType()); + } + if (other.hasBuyerData()) { + mergeBuyerData(other.getBuyerData()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.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: + { + privateAuctionDealId_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + privateAuctionId_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + buyerAccountId_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 32 + case 40: + { + externalDealId_ = input.readInt64(); + bitField0_ |= 0x00000020; + break; + } // case 40 + case 50: + { + input.readMessage(getTargetingFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 66: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: + { + input.readMessage(getFloorPriceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 80: + { + status_ = input.readEnum(); + bitField0_ |= 0x00000400; + break; + } // case 80 + case 88: + { + auctionPriorityEnabled_ = input.readBool(); + bitField0_ |= 0x00000800; + break; + } // case 88 + case 96: + { + blockOverrideEnabled_ = input.readBool(); + bitField0_ |= 0x00001000; + break; + } // case 96 + case 104: + { + buyerPermissionType_ = input.readEnum(); + bitField0_ |= 0x00002000; + break; + } // case 104 + case 114: + { + input.readMessage(getBuyerDataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 114 + case 122: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00008000; + break; + } // case 122 + case 130: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00010000; + break; + } // case 130 + case 146: + { + com.google.ads.admanager.v1.Size m = + input.readMessage(com.google.ads.admanager.v1.Size.parser(), extensionRegistry); + if (creativeSizesBuilder_ == null) { + ensureCreativeSizesIsMutable(); + creativeSizes_.add(m); + } else { + creativeSizesBuilder_.addMessage(m); + } + break; + } // case 146 + case 162: + { + privateAuctionDisplayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 162 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Identifier. The resource name of the `PrivateAuctionDeal`.
+     * Format:
+     * `networks/{network_code}/privateAuctionDeals/{private_auction_deal_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 `PrivateAuctionDeal`.
+     * Format:
+     * `networks/{network_code}/privateAuctionDeals/{private_auction_deal_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 `PrivateAuctionDeal`.
+     * Format:
+     * `networks/{network_code}/privateAuctionDeals/{private_auction_deal_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 `PrivateAuctionDeal`.
+     * Format:
+     * `networks/{network_code}/privateAuctionDeals/{private_auction_deal_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 `PrivateAuctionDeal`.
+     * Format:
+     * `networks/{network_code}/privateAuctionDeals/{private_auction_deal_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 long privateAuctionDealId_; + + /** + * + * + *
+     * Output only. `PrivateAuctionDeal` ID.
+     * 
+ * + * + * optional int64 private_auction_deal_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the privateAuctionDealId field is set. + */ + @java.lang.Override + public boolean hasPrivateAuctionDealId() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. `PrivateAuctionDeal` ID.
+     * 
+ * + * + * optional int64 private_auction_deal_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The privateAuctionDealId. + */ + @java.lang.Override + public long getPrivateAuctionDealId() { + return privateAuctionDealId_; + } + + /** + * + * + *
+     * Output only. `PrivateAuctionDeal` ID.
+     * 
+ * + * + * optional int64 private_auction_deal_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The privateAuctionDealId to set. + * @return This builder for chaining. + */ + public Builder setPrivateAuctionDealId(long value) { + + privateAuctionDealId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. `PrivateAuctionDeal` ID.
+     * 
+ * + * + * optional int64 private_auction_deal_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearPrivateAuctionDealId() { + bitField0_ = (bitField0_ & ~0x00000002); + privateAuctionDealId_ = 0L; + onChanged(); + return this; + } + + private long privateAuctionId_; + + /** + * + * + *
+     * Immutable. The ID of the
+     * [PrivateAuction](google.ads.admanager.v1.PrivateAuction).
+     * 
+ * + * optional int64 private_auction_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the privateAuctionId field is set. + */ + @java.lang.Override + public boolean hasPrivateAuctionId() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Immutable. The ID of the
+     * [PrivateAuction](google.ads.admanager.v1.PrivateAuction).
+     * 
+ * + * optional int64 private_auction_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The privateAuctionId. + */ + @java.lang.Override + public long getPrivateAuctionId() { + return privateAuctionId_; + } + + /** + * + * + *
+     * Immutable. The ID of the
+     * [PrivateAuction](google.ads.admanager.v1.PrivateAuction).
+     * 
+ * + * optional int64 private_auction_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The privateAuctionId to set. + * @return This builder for chaining. + */ + public Builder setPrivateAuctionId(long value) { + + privateAuctionId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Immutable. The ID of the
+     * [PrivateAuction](google.ads.admanager.v1.PrivateAuction).
+     * 
+ * + * optional int64 private_auction_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearPrivateAuctionId() { + bitField0_ = (bitField0_ & ~0x00000004); + privateAuctionId_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object privateAuctionDisplayName_ = ""; + + /** + * + * + *
+     * Output only. The display name of the
+     * [PrivateAuction](google.ads.admanager.v1.PrivateAuction).
+     * 
+ * + * + * optional string private_auction_display_name = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the privateAuctionDisplayName field is set. + */ + public boolean hasPrivateAuctionDisplayName() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Output only. The display name of the
+     * [PrivateAuction](google.ads.admanager.v1.PrivateAuction).
+     * 
+ * + * + * optional string private_auction_display_name = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The privateAuctionDisplayName. + */ + public java.lang.String getPrivateAuctionDisplayName() { + java.lang.Object ref = privateAuctionDisplayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privateAuctionDisplayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The display name of the
+     * [PrivateAuction](google.ads.admanager.v1.PrivateAuction).
+     * 
+ * + * + * optional string private_auction_display_name = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for privateAuctionDisplayName. + */ + public com.google.protobuf.ByteString getPrivateAuctionDisplayNameBytes() { + java.lang.Object ref = privateAuctionDisplayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privateAuctionDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The display name of the
+     * [PrivateAuction](google.ads.admanager.v1.PrivateAuction).
+     * 
+ * + * + * optional string private_auction_display_name = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The privateAuctionDisplayName to set. + * @return This builder for chaining. + */ + public Builder setPrivateAuctionDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + privateAuctionDisplayName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The display name of the
+     * [PrivateAuction](google.ads.admanager.v1.PrivateAuction).
+     * 
+ * + * + * optional string private_auction_display_name = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearPrivateAuctionDisplayName() { + privateAuctionDisplayName_ = getDefaultInstance().getPrivateAuctionDisplayName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The display name of the
+     * [PrivateAuction](google.ads.admanager.v1.PrivateAuction).
+     * 
+ * + * + * optional string private_auction_display_name = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for privateAuctionDisplayName to set. + * @return This builder for chaining. + */ + public Builder setPrivateAuctionDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + privateAuctionDisplayName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private long buyerAccountId_; + + /** + * + * + *
+     * Immutable. The account ID of the buyer of the `PrivateAuctionDeal`.
+     * 
+ * + * optional int64 buyer_account_id = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return Whether the buyerAccountId field is set. + */ + @java.lang.Override + public boolean hasBuyerAccountId() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Immutable. The account ID of the buyer of the `PrivateAuctionDeal`.
+     * 
+ * + * optional int64 buyer_account_id = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The buyerAccountId. + */ + @java.lang.Override + public long getBuyerAccountId() { + return buyerAccountId_; + } + + /** + * + * + *
+     * Immutable. The account ID of the buyer of the `PrivateAuctionDeal`.
+     * 
+ * + * optional int64 buyer_account_id = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The buyerAccountId to set. + * @return This builder for chaining. + */ + public Builder setBuyerAccountId(long value) { + + buyerAccountId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Immutable. The account ID of the buyer of the `PrivateAuctionDeal`.
+     * 
+ * + * optional int64 buyer_account_id = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearBuyerAccountId() { + bitField0_ = (bitField0_ & ~0x00000010); + buyerAccountId_ = 0L; + onChanged(); + return this; + } + + private long externalDealId_; + + /** + * + * + *
+     * Output only. The external ID of the `PrivateAuctionDeal`.
+     * 
+ * + * optional int64 external_deal_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the externalDealId field is set. + */ + @java.lang.Override + public boolean hasExternalDealId() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Output only. The external ID of the `PrivateAuctionDeal`.
+     * 
+ * + * optional int64 external_deal_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The externalDealId. + */ + @java.lang.Override + public long getExternalDealId() { + return externalDealId_; + } + + /** + * + * + *
+     * Output only. The external ID of the `PrivateAuctionDeal`.
+     * 
+ * + * optional int64 external_deal_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The externalDealId to set. + * @return This builder for chaining. + */ + public Builder setExternalDealId(long value) { + + externalDealId_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The external ID of the `PrivateAuctionDeal`.
+     * 
+ * + * optional int64 external_deal_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearExternalDealId() { + bitField0_ = (bitField0_ & ~0x00000020); + externalDealId_ = 0L; + onChanged(); + return this; + } + + private com.google.ads.admanager.v1.Targeting targeting_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.Targeting, + com.google.ads.admanager.v1.Targeting.Builder, + com.google.ads.admanager.v1.TargetingOrBuilder> + targetingBuilder_; + + /** + * + * + *
+     * Optional. The targeting of the `PrivateAuctionDeal`.
+     * 
+ * + * + * optional .google.ads.admanager.v1.Targeting targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the targeting field is set. + */ + public boolean hasTargeting() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Optional. The targeting of the `PrivateAuctionDeal`.
+     * 
+ * + * + * optional .google.ads.admanager.v1.Targeting targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The targeting. + */ + public com.google.ads.admanager.v1.Targeting getTargeting() { + if (targetingBuilder_ == null) { + return targeting_ == null + ? com.google.ads.admanager.v1.Targeting.getDefaultInstance() + : targeting_; + } else { + return targetingBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The targeting of the `PrivateAuctionDeal`.
+     * 
+ * + * + * optional .google.ads.admanager.v1.Targeting targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTargeting(com.google.ads.admanager.v1.Targeting value) { + if (targetingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + targeting_ = value; + } else { + targetingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The targeting of the `PrivateAuctionDeal`.
+     * 
+ * + * + * optional .google.ads.admanager.v1.Targeting targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTargeting(com.google.ads.admanager.v1.Targeting.Builder builderForValue) { + if (targetingBuilder_ == null) { + targeting_ = builderForValue.build(); + } else { + targetingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The targeting of the `PrivateAuctionDeal`.
+     * 
+ * + * + * optional .google.ads.admanager.v1.Targeting targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeTargeting(com.google.ads.admanager.v1.Targeting value) { + if (targetingBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && targeting_ != null + && targeting_ != com.google.ads.admanager.v1.Targeting.getDefaultInstance()) { + getTargetingBuilder().mergeFrom(value); + } else { + targeting_ = value; + } + } else { + targetingBuilder_.mergeFrom(value); + } + if (targeting_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The targeting of the `PrivateAuctionDeal`.
+     * 
+ * + * + * optional .google.ads.admanager.v1.Targeting targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearTargeting() { + bitField0_ = (bitField0_ & ~0x00000040); + targeting_ = null; + if (targetingBuilder_ != null) { + targetingBuilder_.dispose(); + targetingBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The targeting of the `PrivateAuctionDeal`.
+     * 
+ * + * + * optional .google.ads.admanager.v1.Targeting targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.Targeting.Builder getTargetingBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getTargetingFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The targeting of the `PrivateAuctionDeal`.
+     * 
+ * + * + * optional .google.ads.admanager.v1.Targeting targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.TargetingOrBuilder getTargetingOrBuilder() { + if (targetingBuilder_ != null) { + return targetingBuilder_.getMessageOrBuilder(); + } else { + return targeting_ == null + ? com.google.ads.admanager.v1.Targeting.getDefaultInstance() + : targeting_; + } + } + + /** + * + * + *
+     * Optional. The targeting of the `PrivateAuctionDeal`.
+     * 
+ * + * + * optional .google.ads.admanager.v1.Targeting targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.Targeting, + com.google.ads.admanager.v1.Targeting.Builder, + com.google.ads.admanager.v1.TargetingOrBuilder> + getTargetingFieldBuilder() { + if (targetingBuilder_ == null) { + targetingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.Targeting, + com.google.ads.admanager.v1.Targeting.Builder, + com.google.ads.admanager.v1.TargetingOrBuilder>( + getTargeting(), getParentForChildren(), isClean()); + targeting_ = null; + } + return targetingBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + + /** + * + * + *
+     * Optional. The end time of the `PrivateAuctionDeal`.
+     * 
+ * + * + * optional .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Optional. The end time of the `PrivateAuctionDeal`.
+     * 
+ * + * + * optional .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The end time of the `PrivateAuctionDeal`.
+     * 
+ * + * + * optional .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The end time of the `PrivateAuctionDeal`.
+     * 
+ * + * + * optional .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The end time of the `PrivateAuctionDeal`.
+     * 
+ * + * + * optional .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The end time of the `PrivateAuctionDeal`.
+     * 
+ * + * + * optional .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000080); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The end time of the `PrivateAuctionDeal`.
+     * 
+ * + * + * optional .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The end time of the `PrivateAuctionDeal`.
+     * 
+ * + * + * optional .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + + /** + * + * + *
+     * Optional. The end time of the `PrivateAuctionDeal`.
+     * 
+ * + * + * optional .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + private com.google.type.Money floorPrice_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> + floorPriceBuilder_; + + /** + * + * + *
+     * Required. The floor price of the `PrivateAuctionDeal`.
+     * 
+ * + * optional .google.type.Money floor_price = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the floorPrice field is set. + */ + public boolean hasFloorPrice() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
+     * Required. The floor price of the `PrivateAuctionDeal`.
+     * 
+ * + * optional .google.type.Money floor_price = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The floorPrice. + */ + public com.google.type.Money getFloorPrice() { + if (floorPriceBuilder_ == null) { + return floorPrice_ == null ? com.google.type.Money.getDefaultInstance() : floorPrice_; + } else { + return floorPriceBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The floor price of the `PrivateAuctionDeal`.
+     * 
+ * + * optional .google.type.Money floor_price = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFloorPrice(com.google.type.Money value) { + if (floorPriceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + floorPrice_ = value; + } else { + floorPriceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The floor price of the `PrivateAuctionDeal`.
+     * 
+ * + * optional .google.type.Money floor_price = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFloorPrice(com.google.type.Money.Builder builderForValue) { + if (floorPriceBuilder_ == null) { + floorPrice_ = builderForValue.build(); + } else { + floorPriceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The floor price of the `PrivateAuctionDeal`.
+     * 
+ * + * optional .google.type.Money floor_price = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeFloorPrice(com.google.type.Money value) { + if (floorPriceBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && floorPrice_ != null + && floorPrice_ != com.google.type.Money.getDefaultInstance()) { + getFloorPriceBuilder().mergeFrom(value); + } else { + floorPrice_ = value; + } + } else { + floorPriceBuilder_.mergeFrom(value); + } + if (floorPrice_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The floor price of the `PrivateAuctionDeal`.
+     * 
+ * + * optional .google.type.Money floor_price = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearFloorPrice() { + bitField0_ = (bitField0_ & ~0x00000100); + floorPrice_ = null; + if (floorPriceBuilder_ != null) { + floorPriceBuilder_.dispose(); + floorPriceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The floor price of the `PrivateAuctionDeal`.
+     * 
+ * + * optional .google.type.Money floor_price = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.type.Money.Builder getFloorPriceBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getFloorPriceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The floor price of the `PrivateAuctionDeal`.
+     * 
+ * + * optional .google.type.Money floor_price = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.type.MoneyOrBuilder getFloorPriceOrBuilder() { + if (floorPriceBuilder_ != null) { + return floorPriceBuilder_.getMessageOrBuilder(); + } else { + return floorPrice_ == null ? com.google.type.Money.getDefaultInstance() : floorPrice_; + } + } + + /** + * + * + *
+     * Required. The floor price of the `PrivateAuctionDeal`.
+     * 
+ * + * optional .google.type.Money floor_price = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> + getFloorPriceFieldBuilder() { + if (floorPriceBuilder_ == null) { + floorPriceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, + com.google.type.Money.Builder, + com.google.type.MoneyOrBuilder>(getFloorPrice(), getParentForChildren(), isClean()); + floorPrice_ = null; + } + return floorPriceBuilder_; + } + + private java.util.List creativeSizes_ = + java.util.Collections.emptyList(); + + private void ensureCreativeSizesIsMutable() { + if (!((bitField0_ & 0x00000200) != 0)) { + creativeSizes_ = new java.util.ArrayList(creativeSizes_); + bitField0_ |= 0x00000200; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.Size, + com.google.ads.admanager.v1.Size.Builder, + com.google.ads.admanager.v1.SizeOrBuilder> + creativeSizesBuilder_; + + /** + * + * + *
+     * Optional. The expected creative sizes of the `PrivateAuctionDeal`.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.Size creative_sizes = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getCreativeSizesList() { + if (creativeSizesBuilder_ == null) { + return java.util.Collections.unmodifiableList(creativeSizes_); + } else { + return creativeSizesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. The expected creative sizes of the `PrivateAuctionDeal`.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.Size creative_sizes = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getCreativeSizesCount() { + if (creativeSizesBuilder_ == null) { + return creativeSizes_.size(); + } else { + return creativeSizesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. The expected creative sizes of the `PrivateAuctionDeal`.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.Size creative_sizes = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.Size getCreativeSizes(int index) { + if (creativeSizesBuilder_ == null) { + return creativeSizes_.get(index); + } else { + return creativeSizesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. The expected creative sizes of the `PrivateAuctionDeal`.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.Size creative_sizes = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCreativeSizes(int index, com.google.ads.admanager.v1.Size value) { + if (creativeSizesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCreativeSizesIsMutable(); + creativeSizes_.set(index, value); + onChanged(); + } else { + creativeSizesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The expected creative sizes of the `PrivateAuctionDeal`.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.Size creative_sizes = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCreativeSizes( + int index, com.google.ads.admanager.v1.Size.Builder builderForValue) { + if (creativeSizesBuilder_ == null) { + ensureCreativeSizesIsMutable(); + creativeSizes_.set(index, builderForValue.build()); + onChanged(); + } else { + creativeSizesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The expected creative sizes of the `PrivateAuctionDeal`.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.Size creative_sizes = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCreativeSizes(com.google.ads.admanager.v1.Size value) { + if (creativeSizesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCreativeSizesIsMutable(); + creativeSizes_.add(value); + onChanged(); + } else { + creativeSizesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. The expected creative sizes of the `PrivateAuctionDeal`.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.Size creative_sizes = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCreativeSizes(int index, com.google.ads.admanager.v1.Size value) { + if (creativeSizesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCreativeSizesIsMutable(); + creativeSizes_.add(index, value); + onChanged(); + } else { + creativeSizesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The expected creative sizes of the `PrivateAuctionDeal`.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.Size creative_sizes = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCreativeSizes(com.google.ads.admanager.v1.Size.Builder builderForValue) { + if (creativeSizesBuilder_ == null) { + ensureCreativeSizesIsMutable(); + creativeSizes_.add(builderForValue.build()); + onChanged(); + } else { + creativeSizesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The expected creative sizes of the `PrivateAuctionDeal`.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.Size creative_sizes = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCreativeSizes( + int index, com.google.ads.admanager.v1.Size.Builder builderForValue) { + if (creativeSizesBuilder_ == null) { + ensureCreativeSizesIsMutable(); + creativeSizes_.add(index, builderForValue.build()); + onChanged(); + } else { + creativeSizesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The expected creative sizes of the `PrivateAuctionDeal`.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.Size creative_sizes = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllCreativeSizes( + java.lang.Iterable values) { + if (creativeSizesBuilder_ == null) { + ensureCreativeSizesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, creativeSizes_); + onChanged(); + } else { + creativeSizesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. The expected creative sizes of the `PrivateAuctionDeal`.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.Size creative_sizes = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCreativeSizes() { + if (creativeSizesBuilder_ == null) { + creativeSizes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + creativeSizesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The expected creative sizes of the `PrivateAuctionDeal`.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.Size creative_sizes = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeCreativeSizes(int index) { + if (creativeSizesBuilder_ == null) { + ensureCreativeSizesIsMutable(); + creativeSizes_.remove(index); + onChanged(); + } else { + creativeSizesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. The expected creative sizes of the `PrivateAuctionDeal`.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.Size creative_sizes = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.Size.Builder getCreativeSizesBuilder(int index) { + return getCreativeSizesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. The expected creative sizes of the `PrivateAuctionDeal`.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.Size creative_sizes = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.SizeOrBuilder getCreativeSizesOrBuilder(int index) { + if (creativeSizesBuilder_ == null) { + return creativeSizes_.get(index); + } else { + return creativeSizesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. The expected creative sizes of the `PrivateAuctionDeal`.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.Size creative_sizes = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCreativeSizesOrBuilderList() { + if (creativeSizesBuilder_ != null) { + return creativeSizesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(creativeSizes_); + } + } + + /** + * + * + *
+     * Optional. The expected creative sizes of the `PrivateAuctionDeal`.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.Size creative_sizes = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.Size.Builder addCreativeSizesBuilder() { + return getCreativeSizesFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.Size.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The expected creative sizes of the `PrivateAuctionDeal`.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.Size creative_sizes = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.Size.Builder addCreativeSizesBuilder(int index) { + return getCreativeSizesFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.Size.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The expected creative sizes of the `PrivateAuctionDeal`.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.Size creative_sizes = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getCreativeSizesBuilderList() { + return getCreativeSizesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.Size, + com.google.ads.admanager.v1.Size.Builder, + com.google.ads.admanager.v1.SizeOrBuilder> + getCreativeSizesFieldBuilder() { + if (creativeSizesBuilder_ == null) { + creativeSizesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.Size, + com.google.ads.admanager.v1.Size.Builder, + com.google.ads.admanager.v1.SizeOrBuilder>( + creativeSizes_, + ((bitField0_ & 0x00000200) != 0), + getParentForChildren(), + isClean()); + creativeSizes_ = null; + } + return creativeSizesBuilder_; + } + + private int status_ = 0; + + /** + * + * + *
+     * Output only. The status of the `PrivateAuctionDeal`.
+     * 
+ * + * + * optional .google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum.PrivateMarketplaceDealStatus status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
+     * Output only. The status of the `PrivateAuctionDeal`.
+     * 
+ * + * + * optional .google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum.PrivateMarketplaceDealStatus status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + + /** + * + * + *
+     * Output only. The status of the `PrivateAuctionDeal`.
+     * 
+ * + * + * optional .google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum.PrivateMarketplaceDealStatus status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + status_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The status of the `PrivateAuctionDeal`.
+     * 
+ * + * + * optional .google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum.PrivateMarketplaceDealStatus status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The status. + */ + @java.lang.Override + public com.google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum.PrivateMarketplaceDealStatus + getStatus() { + com.google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum.PrivateMarketplaceDealStatus + result = + com.google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum + .PrivateMarketplaceDealStatus.forNumber(status_); + return result == null + ? com.google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum + .PrivateMarketplaceDealStatus.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. The status of the `PrivateAuctionDeal`.
+     * 
+ * + * + * optional .google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum.PrivateMarketplaceDealStatus status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus( + com.google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum.PrivateMarketplaceDealStatus + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000400; + status_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The status of the `PrivateAuctionDeal`.
+     * 
+ * + * + * optional .google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum.PrivateMarketplaceDealStatus status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000400); + status_ = 0; + onChanged(); + return this; + } + + private boolean auctionPriorityEnabled_; + + /** + * + * + *
+     * Optional. Whether the deal is enabled with priority over open auction.
+     * 
+ * + * optional bool auction_priority_enabled = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the auctionPriorityEnabled field is set. + */ + @java.lang.Override + public boolean hasAuctionPriorityEnabled() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
+     * Optional. Whether the deal is enabled with priority over open auction.
+     * 
+ * + * optional bool auction_priority_enabled = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The auctionPriorityEnabled. + */ + @java.lang.Override + public boolean getAuctionPriorityEnabled() { + return auctionPriorityEnabled_; + } + + /** + * + * + *
+     * Optional. Whether the deal is enabled with priority over open auction.
+     * 
+ * + * optional bool auction_priority_enabled = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The auctionPriorityEnabled to set. + * @return This builder for chaining. + */ + public Builder setAuctionPriorityEnabled(boolean value) { + + auctionPriorityEnabled_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Whether the deal is enabled with priority over open auction.
+     * 
+ * + * optional bool auction_priority_enabled = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAuctionPriorityEnabled() { + bitField0_ = (bitField0_ & ~0x00000800); + auctionPriorityEnabled_ = false; + onChanged(); + return this; + } + + private boolean blockOverrideEnabled_; + + /** + * + * + *
+     * Optional. Whether the deal has block override enabled.
+     * 
+ * + * optional bool block_override_enabled = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the blockOverrideEnabled field is set. + */ + @java.lang.Override + public boolean hasBlockOverrideEnabled() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
+     * Optional. Whether the deal has block override enabled.
+     * 
+ * + * optional bool block_override_enabled = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The blockOverrideEnabled. + */ + @java.lang.Override + public boolean getBlockOverrideEnabled() { + return blockOverrideEnabled_; + } + + /** + * + * + *
+     * Optional. Whether the deal has block override enabled.
+     * 
+ * + * optional bool block_override_enabled = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The blockOverrideEnabled to set. + * @return This builder for chaining. + */ + public Builder setBlockOverrideEnabled(boolean value) { + + blockOverrideEnabled_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Whether the deal has block override enabled.
+     * 
+ * + * optional bool block_override_enabled = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearBlockOverrideEnabled() { + bitField0_ = (bitField0_ & ~0x00001000); + blockOverrideEnabled_ = false; + onChanged(); + return this; + } + + private int buyerPermissionType_ = 0; + + /** + * + * + *
+     * Optional. The buyer permission model defining how the deal would transact
+     * among all buyers under the same bidder.
+     * 
+ * + * + * optional .google.ads.admanager.v1.DealBuyerPermissionTypeEnum.DealBuyerPermissionType buyer_permission_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the buyerPermissionType field is set. + */ + @java.lang.Override + public boolean hasBuyerPermissionType() { + return ((bitField0_ & 0x00002000) != 0); + } + + /** + * + * + *
+     * Optional. The buyer permission model defining how the deal would transact
+     * among all buyers under the same bidder.
+     * 
+ * + * + * optional .google.ads.admanager.v1.DealBuyerPermissionTypeEnum.DealBuyerPermissionType buyer_permission_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for buyerPermissionType. + */ + @java.lang.Override + public int getBuyerPermissionTypeValue() { + return buyerPermissionType_; + } + + /** + * + * + *
+     * Optional. The buyer permission model defining how the deal would transact
+     * among all buyers under the same bidder.
+     * 
+ * + * + * optional .google.ads.admanager.v1.DealBuyerPermissionTypeEnum.DealBuyerPermissionType buyer_permission_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for buyerPermissionType to set. + * @return This builder for chaining. + */ + public Builder setBuyerPermissionTypeValue(int value) { + buyerPermissionType_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The buyer permission model defining how the deal would transact
+     * among all buyers under the same bidder.
+     * 
+ * + * + * optional .google.ads.admanager.v1.DealBuyerPermissionTypeEnum.DealBuyerPermissionType buyer_permission_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The buyerPermissionType. + */ + @java.lang.Override + public com.google.ads.admanager.v1.DealBuyerPermissionTypeEnum.DealBuyerPermissionType + getBuyerPermissionType() { + com.google.ads.admanager.v1.DealBuyerPermissionTypeEnum.DealBuyerPermissionType result = + com.google.ads.admanager.v1.DealBuyerPermissionTypeEnum.DealBuyerPermissionType.forNumber( + buyerPermissionType_); + return result == null + ? com.google.ads.admanager.v1.DealBuyerPermissionTypeEnum.DealBuyerPermissionType + .UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. The buyer permission model defining how the deal would transact
+     * among all buyers under the same bidder.
+     * 
+ * + * + * optional .google.ads.admanager.v1.DealBuyerPermissionTypeEnum.DealBuyerPermissionType buyer_permission_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The buyerPermissionType to set. + * @return This builder for chaining. + */ + public Builder setBuyerPermissionType( + com.google.ads.admanager.v1.DealBuyerPermissionTypeEnum.DealBuyerPermissionType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00002000; + buyerPermissionType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The buyer permission model defining how the deal would transact
+     * among all buyers under the same bidder.
+     * 
+ * + * + * optional .google.ads.admanager.v1.DealBuyerPermissionTypeEnum.DealBuyerPermissionType buyer_permission_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearBuyerPermissionType() { + bitField0_ = (bitField0_ & ~0x00002000); + buyerPermissionType_ = 0; + onChanged(); + return this; + } + + private com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData buyerData_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData, + com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData.Builder, + com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerDataOrBuilder> + buyerDataBuilder_; + + /** + * + * + *
+     * Optional. The buyer data required by the Marketplace API.
+     * 
+ * + * + * optional .google.ads.admanager.v1.PrivateAuctionDeal.BuyerData buyer_data = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the buyerData field is set. + */ + public boolean hasBuyerData() { + return ((bitField0_ & 0x00004000) != 0); + } + + /** + * + * + *
+     * Optional. The buyer data required by the Marketplace API.
+     * 
+ * + * + * optional .google.ads.admanager.v1.PrivateAuctionDeal.BuyerData buyer_data = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The buyerData. + */ + public com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData getBuyerData() { + if (buyerDataBuilder_ == null) { + return buyerData_ == null + ? com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData.getDefaultInstance() + : buyerData_; + } else { + return buyerDataBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The buyer data required by the Marketplace API.
+     * 
+ * + * + * optional .google.ads.admanager.v1.PrivateAuctionDeal.BuyerData buyer_data = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBuyerData(com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData value) { + if (buyerDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + buyerData_ = value; + } else { + buyerDataBuilder_.setMessage(value); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The buyer data required by the Marketplace API.
+     * 
+ * + * + * optional .google.ads.admanager.v1.PrivateAuctionDeal.BuyerData buyer_data = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBuyerData( + com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData.Builder builderForValue) { + if (buyerDataBuilder_ == null) { + buyerData_ = builderForValue.build(); + } else { + buyerDataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The buyer data required by the Marketplace API.
+     * 
+ * + * + * optional .google.ads.admanager.v1.PrivateAuctionDeal.BuyerData buyer_data = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeBuyerData(com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData value) { + if (buyerDataBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0) + && buyerData_ != null + && buyerData_ + != com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData.getDefaultInstance()) { + getBuyerDataBuilder().mergeFrom(value); + } else { + buyerData_ = value; + } + } else { + buyerDataBuilder_.mergeFrom(value); + } + if (buyerData_ != null) { + bitField0_ |= 0x00004000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The buyer data required by the Marketplace API.
+     * 
+ * + * + * optional .google.ads.admanager.v1.PrivateAuctionDeal.BuyerData buyer_data = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearBuyerData() { + bitField0_ = (bitField0_ & ~0x00004000); + buyerData_ = null; + if (buyerDataBuilder_ != null) { + buyerDataBuilder_.dispose(); + buyerDataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The buyer data required by the Marketplace API.
+     * 
+ * + * + * optional .google.ads.admanager.v1.PrivateAuctionDeal.BuyerData buyer_data = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData.Builder getBuyerDataBuilder() { + bitField0_ |= 0x00004000; + onChanged(); + return getBuyerDataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The buyer data required by the Marketplace API.
+     * 
+ * + * + * optional .google.ads.admanager.v1.PrivateAuctionDeal.BuyerData buyer_data = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerDataOrBuilder + getBuyerDataOrBuilder() { + if (buyerDataBuilder_ != null) { + return buyerDataBuilder_.getMessageOrBuilder(); + } else { + return buyerData_ == null + ? com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData.getDefaultInstance() + : buyerData_; + } + } + + /** + * + * + *
+     * Optional. The buyer data required by the Marketplace API.
+     * 
+ * + * + * optional .google.ads.admanager.v1.PrivateAuctionDeal.BuyerData buyer_data = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData, + com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData.Builder, + com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerDataOrBuilder> + getBuyerDataFieldBuilder() { + if (buyerDataBuilder_ == null) { + buyerDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData, + com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData.Builder, + com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerDataOrBuilder>( + getBuyerData(), getParentForChildren(), isClean()); + buyerData_ = null; + } + return buyerDataBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. The instant at which the `PrivateAuctionDeal` was created.
+     * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00008000) != 0); + } + + /** + * + * + *
+     * Output only. The instant at which the `PrivateAuctionDeal` was created.
+     * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 15 [(.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 instant at which the `PrivateAuctionDeal` was created.
+     * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 15 [(.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_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The instant at which the `PrivateAuctionDeal` was created.
+     * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 15 [(.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_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The instant at which the `PrivateAuctionDeal` was created.
+     * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00008000) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00008000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The instant at which the `PrivateAuctionDeal` was created.
+     * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00008000); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The instant at which the `PrivateAuctionDeal` was created.
+     * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00008000; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The instant at which the `PrivateAuctionDeal` was created.
+     * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 15 [(.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 instant at which the `PrivateAuctionDeal` was created.
+     * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
+     * Output only. The instant at which the `PrivateAuctionDeal` was last
+     * updated.
+     * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00010000) != 0); + } + + /** + * + * + *
+     * Output only. The instant at which the `PrivateAuctionDeal` was last
+     * updated.
+     * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 16 [(.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 instant at which the `PrivateAuctionDeal` was last
+     * updated.
+     * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 16 [(.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_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The instant at which the `PrivateAuctionDeal` was last
+     * updated.
+     * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 16 [(.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_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The instant at which the `PrivateAuctionDeal` was last
+     * updated.
+     * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00010000) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00010000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The instant at which the `PrivateAuctionDeal` was last
+     * updated.
+     * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00010000); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The instant at which the `PrivateAuctionDeal` was last
+     * updated.
+     * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00010000; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The instant at which the `PrivateAuctionDeal` was last
+     * updated.
+     * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 16 [(.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 instant at which the `PrivateAuctionDeal` was last
+     * updated.
+     * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.PrivateAuctionDeal) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.PrivateAuctionDeal) + private static final com.google.ads.admanager.v1.PrivateAuctionDeal DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.PrivateAuctionDeal(); + } + + public static com.google.ads.admanager.v1.PrivateAuctionDeal getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrivateAuctionDeal parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.PrivateAuctionDeal getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PrivateAuctionDealMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PrivateAuctionDealMessagesProto.java new file mode 100644 index 000000000000..45bd9d2088d3 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PrivateAuctionDealMessagesProto.java @@ -0,0 +1,176 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/private_auction_deal_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class PrivateAuctionDealMessagesProto { + private PrivateAuctionDealMessagesProto() {} + + 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_ads_admanager_v1_PrivateAuctionDeal_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_PrivateAuctionDeal_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_PrivateAuctionDeal_BuyerData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_PrivateAuctionDeal_BuyerData_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/ads/admanager/v1/private_auction_deal_messages.proto\022\027google.ads.admana" + + "ger.v1\032=google/ads/admanager/v1/deal_buyer_permission_type_enum.proto\0327google/ad" + + "s/admanager/v1/private_marketplace_enums.proto\032\"google/ads/admanager/v1/size.pro" + + "to\032\'google/ads/admanager/v1/targeting.pr" + + "oto\032\037google/api/field_behavior.proto\032\031go" + + "ogle/api/resource.proto\032\037google/protobuf" + + "/timestamp.proto\032\027google/type/money.proto\"\340\013\n" + + "\022PrivateAuctionDeal\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022)\n" + + "\027private_auction_deal_id\030\002 \001(\003B\003\340A\003H\000\210\001\001\022$\n" + + "\022private_auction_id\030\003 \001(\003B\003\340A\005H\001\210\001\001\022.\n" + + "\034private_auction_display_name\030\024 \001(" + + "\tB\003\340A\003H\002\210\001\001\022\"\n" + + "\020buyer_account_id\030\004 \001(\003B\003\340A\005H\003\210\001\001\022\"\n" + + "\020external_deal_id\030\005 \001(\003B\003\340A\003H\004\210\001\001\022?\n" + + "\ttargeting\030\006" + + " \001(\0132\".google.ads.admanager.v1.TargetingB\003\340A\001H\005\210\001\001\0226\n" + + "\010end_time\030\010" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001H\006\210\001\001\0221\n" + + "\013floor_price\030\t" + + " \001(\0132\022.google.type.MoneyB\003\340A\002H\007\210\001\001\022:\n" + + "\016creative_sizes\030\022" + + " \003(\0132\035.google.ads.admanager.v1.SizeB\003\340A\001\022p\n" + + "\006status\030\n" + + " \001(\0162V.google.ads.admanager.v1.P" + + "rivateMarketplaceDealStatusEnum.PrivateMarketplaceDealStatusB\003\340A\003H\010\210\001\001\022*\n" + + "\030auction_priority_enabled\030\013 \001(\010B\003\340A\001H\t\210\001\001\022(\n" + + "\026block_override_enabled\030\014 \001(\010B\003\340A\001H\n" + + "\210\001\001\022u\n" + + "\025buyer_permission_type\030\r" + + " \001(\0162L.google.ads" + + ".admanager.v1.DealBuyerPermissionTypeEnum.DealBuyerPermissionTypeB\003\340A\001H\013\210\001\001\022S\n\n" + + "buyer_data\030\016 \001(\01325.google.ads.admanager.v" + + "1.PrivateAuctionDeal.BuyerDataB\003\340A\001H\014\210\001\001\0229\n" + + "\013create_time\030\017 \001(\0132\032.google.protobuf.TimestampB\003\340A\003H\r" + + "\210\001\001\0229\n" + + "\013update_time\030\020 \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003H\016\210\001\001\032&\n" + + "\tBuyerData\022\031\n" + + "\014buyer_emails\030\001 \003(\tB\003\340A\001:\236\001\352A\232\001\n" + + "+admanager.googleapis.com/PrivateAuctionDeal\022Bnetworks/{network_code}/priv" + + "ateAuctionDeals/{private_auction_deal}*\023" + + "privateAuctionDeals2\022privateAuctionDealB\032\n" + + "\030_private_auction_deal_idB\025\n" + + "\023_private_auction_idB\037\n" + + "\035_private_auction_display_nameB\023\n" + + "\021_buyer_account_idB\023\n" + + "\021_external_deal_idB\014\n\n" + + "_targetingB\013\n" + + "\t_end_timeB\016\n" + + "\014_floor_priceB\t\n" + + "\007_statusB\033\n" + + "\031_auction_priority_enabledB\031\n" + + "\027_block_override_enabledB\030\n" + + "\026_buyer_permission_typeB\r\n" + + "\013_buyer_dataB\016\n" + + "\014_create_timeB\016\n" + + "\014_update_timeB\323\001\n" + + "\033com.google.ads.admanager.v1B\037PrivateAuctionDeal" + + "MessagesProtoP\001Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanage" + + "r\252\002\027Google.Ads.AdManager.V1\312\002\027Google\\Ads" + + "\\AdManager\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.admanager.v1.DealBuyerPermissionTypeEnumProto.getDescriptor(), + com.google.ads.admanager.v1.PrivateMarketplaceEnumsProto.getDescriptor(), + com.google.ads.admanager.v1.SizeProto.getDescriptor(), + com.google.ads.admanager.v1.TargetingProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.type.MoneyProto.getDescriptor(), + }); + internal_static_google_ads_admanager_v1_PrivateAuctionDeal_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_PrivateAuctionDeal_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_PrivateAuctionDeal_descriptor, + new java.lang.String[] { + "Name", + "PrivateAuctionDealId", + "PrivateAuctionId", + "PrivateAuctionDisplayName", + "BuyerAccountId", + "ExternalDealId", + "Targeting", + "EndTime", + "FloorPrice", + "CreativeSizes", + "Status", + "AuctionPriorityEnabled", + "BlockOverrideEnabled", + "BuyerPermissionType", + "BuyerData", + "CreateTime", + "UpdateTime", + }); + internal_static_google_ads_admanager_v1_PrivateAuctionDeal_BuyerData_descriptor = + internal_static_google_ads_admanager_v1_PrivateAuctionDeal_descriptor + .getNestedTypes() + .get(0); + internal_static_google_ads_admanager_v1_PrivateAuctionDeal_BuyerData_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_PrivateAuctionDeal_BuyerData_descriptor, + new java.lang.String[] { + "BuyerEmails", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.ads.admanager.v1.DealBuyerPermissionTypeEnumProto.getDescriptor(); + com.google.ads.admanager.v1.PrivateMarketplaceEnumsProto.getDescriptor(); + com.google.ads.admanager.v1.SizeProto.getDescriptor(); + com.google.ads.admanager.v1.TargetingProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.type.MoneyProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PrivateAuctionDealName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PrivateAuctionDealName.java new file mode 100644 index 000000000000..9ca4f66370b8 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PrivateAuctionDealName.java @@ -0,0 +1,201 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class PrivateAuctionDealName implements ResourceName { + private static final PathTemplate NETWORK_CODE_PRIVATE_AUCTION_DEAL = + PathTemplate.createWithoutUrlEncoding( + "networks/{network_code}/privateAuctionDeals/{private_auction_deal}"); + private volatile Map fieldValuesMap; + private final String networkCode; + private final String privateAuctionDeal; + + @Deprecated + protected PrivateAuctionDealName() { + networkCode = null; + privateAuctionDeal = null; + } + + private PrivateAuctionDealName(Builder builder) { + networkCode = Preconditions.checkNotNull(builder.getNetworkCode()); + privateAuctionDeal = Preconditions.checkNotNull(builder.getPrivateAuctionDeal()); + } + + public String getNetworkCode() { + return networkCode; + } + + public String getPrivateAuctionDeal() { + return privateAuctionDeal; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static PrivateAuctionDealName of(String networkCode, String privateAuctionDeal) { + return newBuilder() + .setNetworkCode(networkCode) + .setPrivateAuctionDeal(privateAuctionDeal) + .build(); + } + + public static String format(String networkCode, String privateAuctionDeal) { + return newBuilder() + .setNetworkCode(networkCode) + .setPrivateAuctionDeal(privateAuctionDeal) + .build() + .toString(); + } + + public static PrivateAuctionDealName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + NETWORK_CODE_PRIVATE_AUCTION_DEAL.validatedMatch( + formattedString, "PrivateAuctionDealName.parse: formattedString not in valid format"); + return of(matchMap.get("network_code"), matchMap.get("private_auction_deal")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (PrivateAuctionDealName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return NETWORK_CODE_PRIVATE_AUCTION_DEAL.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (networkCode != null) { + fieldMapBuilder.put("network_code", networkCode); + } + if (privateAuctionDeal != null) { + fieldMapBuilder.put("private_auction_deal", privateAuctionDeal); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return NETWORK_CODE_PRIVATE_AUCTION_DEAL.instantiate( + "network_code", networkCode, "private_auction_deal", privateAuctionDeal); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + PrivateAuctionDealName that = ((PrivateAuctionDealName) o); + return Objects.equals(this.networkCode, that.networkCode) + && Objects.equals(this.privateAuctionDeal, that.privateAuctionDeal); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(networkCode); + h *= 1000003; + h ^= Objects.hashCode(privateAuctionDeal); + return h; + } + + /** Builder for networks/{network_code}/privateAuctionDeals/{private_auction_deal}. */ + public static class Builder { + private String networkCode; + private String privateAuctionDeal; + + protected Builder() {} + + public String getNetworkCode() { + return networkCode; + } + + public String getPrivateAuctionDeal() { + return privateAuctionDeal; + } + + public Builder setNetworkCode(String networkCode) { + this.networkCode = networkCode; + return this; + } + + public Builder setPrivateAuctionDeal(String privateAuctionDeal) { + this.privateAuctionDeal = privateAuctionDeal; + return this; + } + + private Builder(PrivateAuctionDealName privateAuctionDealName) { + this.networkCode = privateAuctionDealName.networkCode; + this.privateAuctionDeal = privateAuctionDealName.privateAuctionDeal; + } + + public PrivateAuctionDealName build() { + return new PrivateAuctionDealName(this); + } + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PrivateAuctionDealOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PrivateAuctionDealOrBuilder.java new file mode 100644 index 000000000000..eff0ba5ff726 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PrivateAuctionDealOrBuilder.java @@ -0,0 +1,687 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/private_auction_deal_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface PrivateAuctionDealOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.PrivateAuctionDeal) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. The resource name of the `PrivateAuctionDeal`.
+   * Format:
+   * `networks/{network_code}/privateAuctionDeals/{private_auction_deal_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. The resource name of the `PrivateAuctionDeal`.
+   * Format:
+   * `networks/{network_code}/privateAuctionDeals/{private_auction_deal_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. `PrivateAuctionDeal` ID.
+   * 
+ * + * optional int64 private_auction_deal_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the privateAuctionDealId field is set. + */ + boolean hasPrivateAuctionDealId(); + + /** + * + * + *
+   * Output only. `PrivateAuctionDeal` ID.
+   * 
+ * + * optional int64 private_auction_deal_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The privateAuctionDealId. + */ + long getPrivateAuctionDealId(); + + /** + * + * + *
+   * Immutable. The ID of the
+   * [PrivateAuction](google.ads.admanager.v1.PrivateAuction).
+   * 
+ * + * optional int64 private_auction_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return Whether the privateAuctionId field is set. + */ + boolean hasPrivateAuctionId(); + + /** + * + * + *
+   * Immutable. The ID of the
+   * [PrivateAuction](google.ads.admanager.v1.PrivateAuction).
+   * 
+ * + * optional int64 private_auction_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The privateAuctionId. + */ + long getPrivateAuctionId(); + + /** + * + * + *
+   * Output only. The display name of the
+   * [PrivateAuction](google.ads.admanager.v1.PrivateAuction).
+   * 
+ * + * + * optional string private_auction_display_name = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the privateAuctionDisplayName field is set. + */ + boolean hasPrivateAuctionDisplayName(); + + /** + * + * + *
+   * Output only. The display name of the
+   * [PrivateAuction](google.ads.admanager.v1.PrivateAuction).
+   * 
+ * + * + * optional string private_auction_display_name = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The privateAuctionDisplayName. + */ + java.lang.String getPrivateAuctionDisplayName(); + + /** + * + * + *
+   * Output only. The display name of the
+   * [PrivateAuction](google.ads.admanager.v1.PrivateAuction).
+   * 
+ * + * + * optional string private_auction_display_name = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for privateAuctionDisplayName. + */ + com.google.protobuf.ByteString getPrivateAuctionDisplayNameBytes(); + + /** + * + * + *
+   * Immutable. The account ID of the buyer of the `PrivateAuctionDeal`.
+   * 
+ * + * optional int64 buyer_account_id = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return Whether the buyerAccountId field is set. + */ + boolean hasBuyerAccountId(); + + /** + * + * + *
+   * Immutable. The account ID of the buyer of the `PrivateAuctionDeal`.
+   * 
+ * + * optional int64 buyer_account_id = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The buyerAccountId. + */ + long getBuyerAccountId(); + + /** + * + * + *
+   * Output only. The external ID of the `PrivateAuctionDeal`.
+   * 
+ * + * optional int64 external_deal_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the externalDealId field is set. + */ + boolean hasExternalDealId(); + + /** + * + * + *
+   * Output only. The external ID of the `PrivateAuctionDeal`.
+   * 
+ * + * optional int64 external_deal_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The externalDealId. + */ + long getExternalDealId(); + + /** + * + * + *
+   * Optional. The targeting of the `PrivateAuctionDeal`.
+   * 
+ * + * + * optional .google.ads.admanager.v1.Targeting targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the targeting field is set. + */ + boolean hasTargeting(); + + /** + * + * + *
+   * Optional. The targeting of the `PrivateAuctionDeal`.
+   * 
+ * + * + * optional .google.ads.admanager.v1.Targeting targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The targeting. + */ + com.google.ads.admanager.v1.Targeting getTargeting(); + + /** + * + * + *
+   * Optional. The targeting of the `PrivateAuctionDeal`.
+   * 
+ * + * + * optional .google.ads.admanager.v1.Targeting targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.admanager.v1.TargetingOrBuilder getTargetingOrBuilder(); + + /** + * + * + *
+   * Optional. The end time of the `PrivateAuctionDeal`.
+   * 
+ * + * + * optional .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + + /** + * + * + *
+   * Optional. The end time of the `PrivateAuctionDeal`.
+   * 
+ * + * + * optional .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + + /** + * + * + *
+   * Optional. The end time of the `PrivateAuctionDeal`.
+   * 
+ * + * + * optional .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + * + * + *
+   * Required. The floor price of the `PrivateAuctionDeal`.
+   * 
+ * + * optional .google.type.Money floor_price = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the floorPrice field is set. + */ + boolean hasFloorPrice(); + + /** + * + * + *
+   * Required. The floor price of the `PrivateAuctionDeal`.
+   * 
+ * + * optional .google.type.Money floor_price = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The floorPrice. + */ + com.google.type.Money getFloorPrice(); + + /** + * + * + *
+   * Required. The floor price of the `PrivateAuctionDeal`.
+   * 
+ * + * optional .google.type.Money floor_price = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.type.MoneyOrBuilder getFloorPriceOrBuilder(); + + /** + * + * + *
+   * Optional. The expected creative sizes of the `PrivateAuctionDeal`.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.Size creative_sizes = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getCreativeSizesList(); + + /** + * + * + *
+   * Optional. The expected creative sizes of the `PrivateAuctionDeal`.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.Size creative_sizes = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.admanager.v1.Size getCreativeSizes(int index); + + /** + * + * + *
+   * Optional. The expected creative sizes of the `PrivateAuctionDeal`.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.Size creative_sizes = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getCreativeSizesCount(); + + /** + * + * + *
+   * Optional. The expected creative sizes of the `PrivateAuctionDeal`.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.Size creative_sizes = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getCreativeSizesOrBuilderList(); + + /** + * + * + *
+   * Optional. The expected creative sizes of the `PrivateAuctionDeal`.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.Size creative_sizes = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.admanager.v1.SizeOrBuilder getCreativeSizesOrBuilder(int index); + + /** + * + * + *
+   * Output only. The status of the `PrivateAuctionDeal`.
+   * 
+ * + * + * optional .google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum.PrivateMarketplaceDealStatus status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the status field is set. + */ + boolean hasStatus(); + + /** + * + * + *
+   * Output only. The status of the `PrivateAuctionDeal`.
+   * 
+ * + * + * optional .google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum.PrivateMarketplaceDealStatus status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + + /** + * + * + *
+   * Output only. The status of the `PrivateAuctionDeal`.
+   * 
+ * + * + * optional .google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum.PrivateMarketplaceDealStatus status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The status. + */ + com.google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum.PrivateMarketplaceDealStatus + getStatus(); + + /** + * + * + *
+   * Optional. Whether the deal is enabled with priority over open auction.
+   * 
+ * + * optional bool auction_priority_enabled = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the auctionPriorityEnabled field is set. + */ + boolean hasAuctionPriorityEnabled(); + + /** + * + * + *
+   * Optional. Whether the deal is enabled with priority over open auction.
+   * 
+ * + * optional bool auction_priority_enabled = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The auctionPriorityEnabled. + */ + boolean getAuctionPriorityEnabled(); + + /** + * + * + *
+   * Optional. Whether the deal has block override enabled.
+   * 
+ * + * optional bool block_override_enabled = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the blockOverrideEnabled field is set. + */ + boolean hasBlockOverrideEnabled(); + + /** + * + * + *
+   * Optional. Whether the deal has block override enabled.
+   * 
+ * + * optional bool block_override_enabled = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The blockOverrideEnabled. + */ + boolean getBlockOverrideEnabled(); + + /** + * + * + *
+   * Optional. The buyer permission model defining how the deal would transact
+   * among all buyers under the same bidder.
+   * 
+ * + * + * optional .google.ads.admanager.v1.DealBuyerPermissionTypeEnum.DealBuyerPermissionType buyer_permission_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the buyerPermissionType field is set. + */ + boolean hasBuyerPermissionType(); + + /** + * + * + *
+   * Optional. The buyer permission model defining how the deal would transact
+   * among all buyers under the same bidder.
+   * 
+ * + * + * optional .google.ads.admanager.v1.DealBuyerPermissionTypeEnum.DealBuyerPermissionType buyer_permission_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for buyerPermissionType. + */ + int getBuyerPermissionTypeValue(); + + /** + * + * + *
+   * Optional. The buyer permission model defining how the deal would transact
+   * among all buyers under the same bidder.
+   * 
+ * + * + * optional .google.ads.admanager.v1.DealBuyerPermissionTypeEnum.DealBuyerPermissionType buyer_permission_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The buyerPermissionType. + */ + com.google.ads.admanager.v1.DealBuyerPermissionTypeEnum.DealBuyerPermissionType + getBuyerPermissionType(); + + /** + * + * + *
+   * Optional. The buyer data required by the Marketplace API.
+   * 
+ * + * + * optional .google.ads.admanager.v1.PrivateAuctionDeal.BuyerData buyer_data = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the buyerData field is set. + */ + boolean hasBuyerData(); + + /** + * + * + *
+   * Optional. The buyer data required by the Marketplace API.
+   * 
+ * + * + * optional .google.ads.admanager.v1.PrivateAuctionDeal.BuyerData buyer_data = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The buyerData. + */ + com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerData getBuyerData(); + + /** + * + * + *
+   * Optional. The buyer data required by the Marketplace API.
+   * 
+ * + * + * optional .google.ads.admanager.v1.PrivateAuctionDeal.BuyerData buyer_data = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.admanager.v1.PrivateAuctionDeal.BuyerDataOrBuilder getBuyerDataOrBuilder(); + + /** + * + * + *
+   * Output only. The instant at which the `PrivateAuctionDeal` was created.
+   * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. The instant at which the `PrivateAuctionDeal` was created.
+   * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. The instant at which the `PrivateAuctionDeal` was created.
+   * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The instant at which the `PrivateAuctionDeal` was last
+   * updated.
+   * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. The instant at which the `PrivateAuctionDeal` was last
+   * updated.
+   * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. The instant at which the `PrivateAuctionDeal` was last
+   * updated.
+   * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PrivateAuctionDealServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PrivateAuctionDealServiceProto.java new file mode 100644 index 000000000000..a802ad5ebdb8 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PrivateAuctionDealServiceProto.java @@ -0,0 +1,188 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/private_auction_deal_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class PrivateAuctionDealServiceProto { + private PrivateAuctionDealServiceProto() {} + + 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_ads_admanager_v1_GetPrivateAuctionDealRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_GetPrivateAuctionDealRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListPrivateAuctionDealsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListPrivateAuctionDealsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListPrivateAuctionDealsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListPrivateAuctionDealsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_CreatePrivateAuctionDealRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_CreatePrivateAuctionDealRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_UpdatePrivateAuctionDealRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_UpdatePrivateAuctionDealRequest_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/ads/admanager/v1/private_auction_deal_service.proto\022\027google.ads.admanag" + + "er.v1\032;google/ads/admanager/v1/private_a" + + "uction_deal_messages.proto\032\034google/api/a" + + "nnotations.proto\032\027google/api/client.prot" + + "o\032\037google/api/field_behavior.proto\032\031google/api/resource.proto\032" + + " google/protobuf/field_mask.proto\"a\n" + + "\034GetPrivateAuctionDealRequest\022A\n" + + "\004name\030\001 \001(\tB3\340A\002\372A-\n" + + "+admanager.googleapis.com/PrivateAuctionDeal\"\312\001\n" + + "\036ListPrivateAuctionDealsRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\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\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\022\021\n" + + "\004skip\030\006 \001(\005B\003\340A\001\"\232\001\n" + + "\037ListPrivateAuctionDealsResponse\022J\n" + + "\025private_auction_deals\030\001" + + " \003(\0132+.google.ads.admanager.v1.PrivateAuctionDeal\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\022\n\n" + + "total_size\030\003 \001(\005\"\253\001\n" + + "\037CreatePrivateAuctionDealRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\022N\n" + + "\024private_auction_deal\030\002 \001(\013" + + "2+.google.ads.admanager.v1.PrivateAuctionDealB\003\340A\002\"\247\001\n" + + "\037UpdatePrivateAuctionDealRequest\022N\n" + + "\024private_auction_deal\030\001 \001(\0132+.g" + + "oogle.ads.admanager.v1.PrivateAuctionDealB\003\340A\002\0224\n" + + "\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\0022\340\007\n" + + "\031PrivateAuctionDealService\022\267\001\n" + + "\025GetPrivateAuctionDeal\0225.google.ads.admanager.v1.GetPrivateAuction" + + "DealRequest\032+.google.ads.admanager.v1.Pr" + + "ivateAuctionDeal\":\332A\004name\202\323\344\223\002-\022+/v1/{name=networks/*/privateAuctionDeals/*}\022\312\001\n" + + "\027ListPrivateAuctionDeals\0227.google.ads.admanager.v1.ListPrivateAuctionDealsReques" + + "t\0328.google.ads.admanager.v1.ListPrivateA" + + "uctionDealsResponse\"<\332A\006parent\202\323\344\223\002-\022+/v" + + "1/{parent=networks/*}/privateAuctionDeals\022\352\001\n" + + "\030CreatePrivateAuctionDeal\0228.google.ads.admanager.v1.CreatePrivateAuctionDea" + + "lRequest\032+.google.ads.admanager.v1.Priva" + + "teAuctionDeal\"g\332A\033parent,private_auction" + + "_deal\202\323\344\223\002C\"+/v1/{parent=networks/*}/pri" + + "vateAuctionDeals:\024private_auction_deal\022\205\002\n" + + "\030UpdatePrivateAuctionDeal\0228.google.ads.admanager.v1.UpdatePrivateAuctionDealRe" + + "quest\032+.google.ads.admanager.v1.PrivateAuctionDeal\"\201\001\332A" + + " private_auction_deal,update_mask\202\323\344\223\002X2@/v1/{private_auction_dea" + + "l.name=networks/*/privateAuctionDeals/*}" + + ":\024private_auction_deal\032G\312A\030admanager.goo" + + "gleapis.com\322A)https://www.googleapis.com/auth/admanagerB\322\001\n" + + "\033com.google.ads.admanager.v1B\036PrivateAuctionDealServiceProtoP" + + "\001Z@google.golang.org/genproto/googleapis" + + "/ads/admanager/v1;admanager\252\002\027Google.Ads" + + ".AdManager.V1\312\002\027Google\\Ads\\AdManager\\V1\352" + + "\002\032Google::Ads::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.admanager.v1.PrivateAuctionDealMessagesProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_ads_admanager_v1_GetPrivateAuctionDealRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_GetPrivateAuctionDealRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_GetPrivateAuctionDealRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_ads_admanager_v1_ListPrivateAuctionDealsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_ads_admanager_v1_ListPrivateAuctionDealsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListPrivateAuctionDealsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", "Skip", + }); + internal_static_google_ads_admanager_v1_ListPrivateAuctionDealsResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_ads_admanager_v1_ListPrivateAuctionDealsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListPrivateAuctionDealsResponse_descriptor, + new java.lang.String[] { + "PrivateAuctionDeals", "NextPageToken", "TotalSize", + }); + internal_static_google_ads_admanager_v1_CreatePrivateAuctionDealRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_ads_admanager_v1_CreatePrivateAuctionDealRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_CreatePrivateAuctionDealRequest_descriptor, + new java.lang.String[] { + "Parent", "PrivateAuctionDeal", + }); + internal_static_google_ads_admanager_v1_UpdatePrivateAuctionDealRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_ads_admanager_v1_UpdatePrivateAuctionDealRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_UpdatePrivateAuctionDealRequest_descriptor, + new java.lang.String[] { + "PrivateAuctionDeal", "UpdateMask", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.ads.admanager.v1.PrivateAuctionDealMessagesProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PrivateAuctionMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PrivateAuctionMessagesProto.java new file mode 100644 index 000000000000..425524a0b0ed --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PrivateAuctionMessagesProto.java @@ -0,0 +1,110 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/private_auction_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class PrivateAuctionMessagesProto { + private PrivateAuctionMessagesProto() {} + + 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_ads_admanager_v1_PrivateAuction_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_PrivateAuction_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" + + "6google/ads/admanager/v1/private_auction_messages.proto\022\027google.ads.admanager.v" + + "1\032\037google/api/field_behavior.proto\032\031goog" + + "le/api/resource.proto\032\037google/protobuf/timestamp.proto\"\320\004\n" + + "\016PrivateAuction\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022$\n" + + "\022private_auction_id\030\002 \001(\003B\003\340A\003H\000\210\001\001\022\036\n" + + "\014display_name\030\003 \001(\tB\003\340A\002H\001\210\001\001\022\035\n" + + "\013description\030\004 \001(\tB\003\340A\001H\002\210\001\001\022C\n" + + "\024seller_contact_users\030\t \003(\tB%\340A\001\372A\037\n" + + "\035admanager.googleapis.com/User\022\032\n" + + "\010archived\030\006 \001(\010B\003\340A\003H\003\210\001\001\0229\n" + + "\013create_time\030\007" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003H\004\210\001\001\0229\n" + + "\013update_time\030\010" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003H\005\210\001\001:\211\001\352A\205\001\n" + + "\'admanager.googleapis.com/PrivateAuction\0229networks/{network_code" + + "}/privateAuctions/{private_auction}*\017privateAuctions2\016privateAuctionB\025\n" + + "\023_private_auction_idB\017\n\r" + + "_display_nameB\016\n" + + "\014_descriptionB\013\n" + + "\t_archivedB\016\n" + + "\014_create_timeB\016\n" + + "\014_update_timeB\317\001\n" + + "\033com.google.ads.admanager.v1B\033PrivateAuctionMessagesProtoP\001Z@google" + + ".golang.org/genproto/googleapis/ads/adma" + + "nager/v1;admanager\252\002\027Google.Ads.AdManage" + + "r.V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032Google:" + + ":Ads::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_ads_admanager_v1_PrivateAuction_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_PrivateAuction_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_PrivateAuction_descriptor, + new java.lang.String[] { + "Name", + "PrivateAuctionId", + "DisplayName", + "Description", + "SellerContactUsers", + "Archived", + "CreateTime", + "UpdateTime", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PrivateAuctionName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PrivateAuctionName.java new file mode 100644 index 000000000000..46b8ef20621d --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PrivateAuctionName.java @@ -0,0 +1,198 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class PrivateAuctionName implements ResourceName { + private static final PathTemplate NETWORK_CODE_PRIVATE_AUCTION = + PathTemplate.createWithoutUrlEncoding( + "networks/{network_code}/privateAuctions/{private_auction}"); + private volatile Map fieldValuesMap; + private final String networkCode; + private final String privateAuction; + + @Deprecated + protected PrivateAuctionName() { + networkCode = null; + privateAuction = null; + } + + private PrivateAuctionName(Builder builder) { + networkCode = Preconditions.checkNotNull(builder.getNetworkCode()); + privateAuction = Preconditions.checkNotNull(builder.getPrivateAuction()); + } + + public String getNetworkCode() { + return networkCode; + } + + public String getPrivateAuction() { + return privateAuction; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static PrivateAuctionName of(String networkCode, String privateAuction) { + return newBuilder().setNetworkCode(networkCode).setPrivateAuction(privateAuction).build(); + } + + public static String format(String networkCode, String privateAuction) { + return newBuilder() + .setNetworkCode(networkCode) + .setPrivateAuction(privateAuction) + .build() + .toString(); + } + + public static PrivateAuctionName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + NETWORK_CODE_PRIVATE_AUCTION.validatedMatch( + formattedString, "PrivateAuctionName.parse: formattedString not in valid format"); + return of(matchMap.get("network_code"), matchMap.get("private_auction")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (PrivateAuctionName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return NETWORK_CODE_PRIVATE_AUCTION.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (networkCode != null) { + fieldMapBuilder.put("network_code", networkCode); + } + if (privateAuction != null) { + fieldMapBuilder.put("private_auction", privateAuction); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return NETWORK_CODE_PRIVATE_AUCTION.instantiate( + "network_code", networkCode, "private_auction", privateAuction); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + PrivateAuctionName that = ((PrivateAuctionName) o); + return Objects.equals(this.networkCode, that.networkCode) + && Objects.equals(this.privateAuction, that.privateAuction); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(networkCode); + h *= 1000003; + h ^= Objects.hashCode(privateAuction); + return h; + } + + /** Builder for networks/{network_code}/privateAuctions/{private_auction}. */ + public static class Builder { + private String networkCode; + private String privateAuction; + + protected Builder() {} + + public String getNetworkCode() { + return networkCode; + } + + public String getPrivateAuction() { + return privateAuction; + } + + public Builder setNetworkCode(String networkCode) { + this.networkCode = networkCode; + return this; + } + + public Builder setPrivateAuction(String privateAuction) { + this.privateAuction = privateAuction; + return this; + } + + private Builder(PrivateAuctionName privateAuctionName) { + this.networkCode = privateAuctionName.networkCode; + this.privateAuction = privateAuctionName.privateAuction; + } + + public PrivateAuctionName build() { + return new PrivateAuctionName(this); + } + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PrivateAuctionOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PrivateAuctionOrBuilder.java new file mode 100644 index 000000000000..4f14c25b79c6 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PrivateAuctionOrBuilder.java @@ -0,0 +1,346 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/private_auction_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface PrivateAuctionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.PrivateAuction) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. The resource name of the `PrivateAuction`.
+   * Format:
+   * `networks/{network_code}/privateAuctions/{private_auction_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. The resource name of the `PrivateAuction`.
+   * Format:
+   * `networks/{network_code}/privateAuctions/{private_auction_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. `PrivateAuction` ID.
+   * 
+ * + * optional int64 private_auction_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the privateAuctionId field is set. + */ + boolean hasPrivateAuctionId(); + + /** + * + * + *
+   * Output only. `PrivateAuction` ID.
+   * 
+ * + * optional int64 private_auction_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The privateAuctionId. + */ + long getPrivateAuctionId(); + + /** + * + * + *
+   * Required. Display name of the `PrivateAuction`. This attribute has a
+   * maximum length of 255 bytes.
+   * 
+ * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the displayName field is set. + */ + boolean hasDisplayName(); + + /** + * + * + *
+   * Required. Display name of the `PrivateAuction`. This attribute has a
+   * maximum length of 255 bytes.
+   * 
+ * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+   * Required. Display name of the `PrivateAuction`. This attribute has a
+   * maximum length of 255 bytes.
+   * 
+ * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Optional. Description of the `PrivateAuction`. This attribute has a
+   * maximum length of 4096 bytes.
+   * 
+ * + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the description field is set. + */ + boolean hasDescription(); + + /** + * + * + *
+   * Optional. Description of the `PrivateAuction`. This attribute has a
+   * maximum length of 4096 bytes.
+   * 
+ * + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Optional. Description of the `PrivateAuction`. This attribute has a
+   * maximum length of 4096 bytes.
+   * 
+ * + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Optional. The resource names of the seller contact users associated with
+   * this `PrivateAuction`. Format: `networks/{network_code}/users/{user_id}`
+   * 
+ * + * + * repeated string seller_contact_users = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the sellerContactUsers. + */ + java.util.List getSellerContactUsersList(); + + /** + * + * + *
+   * Optional. The resource names of the seller contact users associated with
+   * this `PrivateAuction`. Format: `networks/{network_code}/users/{user_id}`
+   * 
+ * + * + * repeated string seller_contact_users = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of sellerContactUsers. + */ + int getSellerContactUsersCount(); + + /** + * + * + *
+   * Optional. The resource names of the seller contact users associated with
+   * this `PrivateAuction`. Format: `networks/{network_code}/users/{user_id}`
+   * 
+ * + * + * repeated string seller_contact_users = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The sellerContactUsers at the given index. + */ + java.lang.String getSellerContactUsers(int index); + + /** + * + * + *
+   * Optional. The resource names of the seller contact users associated with
+   * this `PrivateAuction`. Format: `networks/{network_code}/users/{user_id}`
+   * 
+ * + * + * repeated string seller_contact_users = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the sellerContactUsers at the given index. + */ + com.google.protobuf.ByteString getSellerContactUsersBytes(int index); + + /** + * + * + *
+   * Output only. Whether the `PrivateAuction` is archived.
+   * 
+ * + * optional bool archived = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the archived field is set. + */ + boolean hasArchived(); + + /** + * + * + *
+   * Output only. Whether the `PrivateAuction` is archived.
+   * 
+ * + * optional bool archived = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The archived. + */ + boolean getArchived(); + + /** + * + * + *
+   * Output only. The instant at which the PrivateAuction was created.
+   * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. The instant at which the PrivateAuction was created.
+   * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. The instant at which the PrivateAuction was created.
+   * 
+ * + * + * optional .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The instant at which the PrivateAuction was last updated.
+   * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. The instant at which the PrivateAuction was last updated.
+   * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. The instant at which the PrivateAuction was last updated.
+   * 
+ * + * + * optional .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PrivateAuctionServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PrivateAuctionServiceProto.java new file mode 100644 index 000000000000..1e10ca3c437d --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PrivateAuctionServiceProto.java @@ -0,0 +1,187 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/private_auction_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class PrivateAuctionServiceProto { + private PrivateAuctionServiceProto() {} + + 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_ads_admanager_v1_GetPrivateAuctionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_GetPrivateAuctionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListPrivateAuctionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListPrivateAuctionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListPrivateAuctionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListPrivateAuctionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_CreatePrivateAuctionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_CreatePrivateAuctionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_UpdatePrivateAuctionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_UpdatePrivateAuctionRequest_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" + + "5google/ads/admanager/v1/private_auction_service.proto\022\027google.ads.admanager.v1" + + "\0326google/ads/admanager/v1/private_auctio" + + "n_messages.proto\032\034google/api/annotations" + + ".proto\032\027google/api/client.proto\032\037google/" + + "api/field_behavior.proto\032\031google/api/resource.proto\032" + + " google/protobuf/field_mask.proto\"Y\n" + + "\030GetPrivateAuctionRequest\022=\n" + + "\004name\030\001 \001(\tB/\340A\002\372A)\n" + + "\'admanager.googleapis.com/PrivateAuction\"\306\001\n" + + "\032ListPrivateAuctionsRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\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\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\022\021\n" + + "\004skip\030\006 \001(\005B\003\340A\001\"\215\001\n" + + "\033ListPrivateAuctionsResponse\022A\n" + + "\020private_auctions\030\001" + + " \003(\0132\'.google.ads.admanager.v1.PrivateAuction\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\022\n\n" + + "total_size\030\003 \001(\005\"\236\001\n" + + "\033CreatePrivateAuctionRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\022E\n" + + "\017private_auction\030\002 \001(\0132\'.g" + + "oogle.ads.admanager.v1.PrivateAuctionB\003\340A\002\"\232\001\n" + + "\033UpdatePrivateAuctionRequest\022E\n" + + "\017private_auction\030\001" + + " \001(\0132\'.google.ads.admanager.v1.PrivateAuctionB\003\340A\002\0224\n" + + "\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\0022\202\007\n" + + "\025PrivateAuctionService\022\247\001\n" + + "\021GetPrivateAuction\0221.google.ads.admanager.v1.GetPri" + + "vateAuctionRequest\032\'.google.ads.admanage" + + "r.v1.PrivateAuction\"6\332A\004name\202\323\344\223\002)\022\'/v1/{name=networks/*/privateAuctions/*}\022\272\001\n" + + "\023ListPrivateAuctions\0223.google.ads.admanag" + + "er.v1.ListPrivateAuctionsRequest\0324.google.ads.admanager.v1.ListPrivateAuctionsRe" + + "sponse\"8\332A\006parent\202\323\344\223\002)\022\'/v1/{parent=networks/*}/privateAuctions\022\320\001\n" + + "\024CreatePrivateAuction\0224.google.ads.admanager.v1.Crea" + + "tePrivateAuctionRequest\032\'.google.ads.adm" + + "anager.v1.PrivateAuction\"Y\332A\026parent,priv" + + "ate_auction\202\323\344\223\002:\"\'/v1/{parent=networks/*}/privateAuctions:\017private_auction\022\345\001\n" + + "\024UpdatePrivateAuction\0224.google.ads.admana" + + "ger.v1.UpdatePrivateAuctionRequest\032\'.goo" + + "gle.ads.admanager.v1.PrivateAuction\"n\332A\033" + + "private_auction,update_mask\202\323\344\223\002J27/v1/{" + + "private_auction.name=networks/*/privateA" + + "uctions/*}:\017private_auction\032G\312A\030admanage" + + "r.googleapis.com\322A)https://www.googleapis.com/auth/admanagerB\316\001\n" + + "\033com.google.ads.admanager.v1B\032PrivateAuctionServiceProto" + + "P\001Z@google.golang.org/genproto/googleapi" + + "s/ads/admanager/v1;admanager\252\002\027Google.Ad" + + "s.AdManager.V1\312\002\027Google\\Ads\\AdManager\\V1" + + "\352\002\032Google::Ads::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.admanager.v1.PrivateAuctionMessagesProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_ads_admanager_v1_GetPrivateAuctionRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_GetPrivateAuctionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_GetPrivateAuctionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_ads_admanager_v1_ListPrivateAuctionsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_ads_admanager_v1_ListPrivateAuctionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListPrivateAuctionsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", "Skip", + }); + internal_static_google_ads_admanager_v1_ListPrivateAuctionsResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_ads_admanager_v1_ListPrivateAuctionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListPrivateAuctionsResponse_descriptor, + new java.lang.String[] { + "PrivateAuctions", "NextPageToken", "TotalSize", + }); + internal_static_google_ads_admanager_v1_CreatePrivateAuctionRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_ads_admanager_v1_CreatePrivateAuctionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_CreatePrivateAuctionRequest_descriptor, + new java.lang.String[] { + "Parent", "PrivateAuction", + }); + internal_static_google_ads_admanager_v1_UpdatePrivateAuctionRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_ads_admanager_v1_UpdatePrivateAuctionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_UpdatePrivateAuctionRequest_descriptor, + new java.lang.String[] { + "PrivateAuction", "UpdateMask", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.ads.admanager.v1.PrivateAuctionMessagesProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PrivateMarketplaceDealStatusEnum.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PrivateMarketplaceDealStatusEnum.java new file mode 100644 index 000000000000..85879ff57b40 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PrivateMarketplaceDealStatusEnum.java @@ -0,0 +1,675 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/private_marketplace_enums.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Wrapper message for
+ * [PrivateMarketplaceDealStatus][google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum.PrivateMarketplaceDealStatus].
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum} + */ +public final class PrivateMarketplaceDealStatusEnum extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum) + PrivateMarketplaceDealStatusEnumOrBuilder { + private static final long serialVersionUID = 0L; + + // Use PrivateMarketplaceDealStatusEnum.newBuilder() to construct. + private PrivateMarketplaceDealStatusEnum( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PrivateMarketplaceDealStatusEnum() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PrivateMarketplaceDealStatusEnum(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PrivateMarketplaceEnumsProto + .internal_static_google_ads_admanager_v1_PrivateMarketplaceDealStatusEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PrivateMarketplaceEnumsProto + .internal_static_google_ads_admanager_v1_PrivateMarketplaceDealStatusEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum.class, + com.google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum.Builder.class); + } + + /** + * + * + *
+   * Describes the status of a private marketplace deal.
+   * 
+ * + * Protobuf enum {@code + * google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum.PrivateMarketplaceDealStatus} + */ + public enum PrivateMarketplaceDealStatus implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * No value specified.
+     * 
+ * + * PRIVATE_MARKETPLACE_DEAL_STATUS_UNSPECIFIED = 0; + */ + PRIVATE_MARKETPLACE_DEAL_STATUS_UNSPECIFIED(0), + /** + * + * + *
+     * The deal is pending.
+     * 
+ * + * PENDING = 1; + */ + PENDING(1), + /** + * + * + *
+     * The deal is active.
+     * 
+ * + * ACTIVE = 2; + */ + ACTIVE(2), + /** + * + * + *
+     * The deal is canceled.
+     * 
+ * + * CANCELED = 3; + */ + CANCELED(3), + /** + * + * + *
+     * The deal is paused by the seller.
+     * 
+ * + * SELLER_PAUSED = 4; + */ + SELLER_PAUSED(4), + /** + * + * + *
+     * The deal is paused by the buyer.
+     * 
+ * + * BUYER_PAUSED = 5; + */ + BUYER_PAUSED(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * No value specified.
+     * 
+ * + * PRIVATE_MARKETPLACE_DEAL_STATUS_UNSPECIFIED = 0; + */ + public static final int PRIVATE_MARKETPLACE_DEAL_STATUS_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The deal is pending.
+     * 
+ * + * PENDING = 1; + */ + public static final int PENDING_VALUE = 1; + + /** + * + * + *
+     * The deal is active.
+     * 
+ * + * ACTIVE = 2; + */ + public static final int ACTIVE_VALUE = 2; + + /** + * + * + *
+     * The deal is canceled.
+     * 
+ * + * CANCELED = 3; + */ + public static final int CANCELED_VALUE = 3; + + /** + * + * + *
+     * The deal is paused by the seller.
+     * 
+ * + * SELLER_PAUSED = 4; + */ + public static final int SELLER_PAUSED_VALUE = 4; + + /** + * + * + *
+     * The deal is paused by the buyer.
+     * 
+ * + * BUYER_PAUSED = 5; + */ + public static final int BUYER_PAUSED_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PrivateMarketplaceDealStatus 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 PrivateMarketplaceDealStatus forNumber(int value) { + switch (value) { + case 0: + return PRIVATE_MARKETPLACE_DEAL_STATUS_UNSPECIFIED; + case 1: + return PENDING; + case 2: + return ACTIVE; + case 3: + return CANCELED; + case 4: + return SELLER_PAUSED; + case 5: + return BUYER_PAUSED; + 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 PrivateMarketplaceDealStatus findValueByNumber(int number) { + return PrivateMarketplaceDealStatus.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final PrivateMarketplaceDealStatus[] VALUES = values(); + + public static PrivateMarketplaceDealStatus 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 PrivateMarketplaceDealStatus(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum.PrivateMarketplaceDealStatus) + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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.admanager.v1.PrivateMarketplaceDealStatusEnum)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum other = + (com.google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum) 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.admanager.v1.PrivateMarketplaceDealStatusEnum parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum 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.admanager.v1.PrivateMarketplaceDealStatusEnum parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum parseFrom( + 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.admanager.v1.PrivateMarketplaceDealStatusEnum parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.PrivateMarketplaceDealStatusEnum prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Wrapper message for
+   * [PrivateMarketplaceDealStatus][google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum.PrivateMarketplaceDealStatus].
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum) + com.google.ads.admanager.v1.PrivateMarketplaceDealStatusEnumOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PrivateMarketplaceEnumsProto + .internal_static_google_ads_admanager_v1_PrivateMarketplaceDealStatusEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PrivateMarketplaceEnumsProto + .internal_static_google_ads_admanager_v1_PrivateMarketplaceDealStatusEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum.class, + com.google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.PrivateMarketplaceEnumsProto + .internal_static_google_ads_admanager_v1_PrivateMarketplaceDealStatusEnum_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum + getDefaultInstanceForType() { + return com.google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum build() { + com.google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum buildPartial() { + com.google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum result = + new com.google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum) { + return mergeFrom((com.google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum other) { + if (other + == com.google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum) + private static final com.google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum(); + } + + public static com.google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrivateMarketplaceDealStatusEnum parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.PrivateMarketplaceDealStatusEnum getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PrivateMarketplaceDealStatusEnumOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PrivateMarketplaceDealStatusEnumOrBuilder.java new file mode 100644 index 000000000000..ef121473af9e --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PrivateMarketplaceDealStatusEnumOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/private_marketplace_enums.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface PrivateMarketplaceDealStatusEnumOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PrivateMarketplaceEnumsProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PrivateMarketplaceEnumsProto.java new file mode 100644 index 000000000000..f651848489b1 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PrivateMarketplaceEnumsProto.java @@ -0,0 +1,72 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/private_marketplace_enums.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class PrivateMarketplaceEnumsProto { + private PrivateMarketplaceEnumsProto() {} + + 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_ads_admanager_v1_PrivateMarketplaceDealStatusEnum_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_PrivateMarketplaceDealStatusEnum_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" + + "7google/ads/admanager/v1/private_market" + + "place_enums.proto\022\027google.ads.admanager.v1\"\300\001\n" + + " PrivateMarketplaceDealStatusEnum\"\233\001\n" + + "\034PrivateMarketplaceDealStatus\022/\n" + + "+PRIVATE_MARKETPLACE_DEAL_STATUS_UNSPECIFIED\020\000\022\013\n" + + "\007PENDING\020\001\022\n\n" + + "\006ACTIVE\020\002\022\014\n" + + "\010CANCELED\020\003\022\021\n\r" + + "SELLER_PAUSED\020\004\022\020\n" + + "\014BUYER_PAUSED\020\005B\320\001\n" + + "\033com.google.ads.admanager.v1B\034PrivateMa" + + "rketplaceEnumsProtoP\001Z@google.golang.org/genproto/googleapis/ads/admanager/v1;ad" + + "manager\252\002\027Google.Ads.AdManager.V1\312\002\027Goog" + + "le\\Ads\\AdManager\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_ads_admanager_v1_PrivateMarketplaceDealStatusEnum_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_PrivateMarketplaceDealStatusEnum_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_PrivateMarketplaceDealStatusEnum_descriptor, + new java.lang.String[] {}); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ProgrammaticBuyer.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ProgrammaticBuyer.java new file mode 100644 index 000000000000..945450ed42a9 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ProgrammaticBuyer.java @@ -0,0 +1,1842 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/programmatic_buyer_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Represents a programmatic buyer.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.ProgrammaticBuyer} + */ +public final class ProgrammaticBuyer extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ProgrammaticBuyer) + ProgrammaticBuyerOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ProgrammaticBuyer.newBuilder() to construct. + private ProgrammaticBuyer(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ProgrammaticBuyer() { + name_ = ""; + displayName_ = ""; + partnerClientId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ProgrammaticBuyer(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ProgrammaticBuyerMessagesProto + .internal_static_google_ads_admanager_v1_ProgrammaticBuyer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ProgrammaticBuyerMessagesProto + .internal_static_google_ads_admanager_v1_ProgrammaticBuyer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ProgrammaticBuyer.class, + com.google.ads.admanager.v1.ProgrammaticBuyer.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 `ProgrammaticBuyer`.
+   * Format:
+   * `networks/{network_code}/programmaticBuyers/{buyer_account_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 `ProgrammaticBuyer`.
+   * Format:
+   * `networks/{network_code}/programmaticBuyers/{buyer_account_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 BUYER_ACCOUNT_ID_FIELD_NUMBER = 2; + private long buyerAccountId_ = 0L; + + /** + * + * + *
+   * Output only. The buyer account ID of the buyer.
+   * 
+ * + * optional int64 buyer_account_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the buyerAccountId field is set. + */ + @java.lang.Override + public boolean hasBuyerAccountId() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. The buyer account ID of the buyer.
+   * 
+ * + * optional int64 buyer_account_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The buyerAccountId. + */ + @java.lang.Override + public long getBuyerAccountId() { + return buyerAccountId_; + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
+   * Output only. The display name of the buyer.
+   * 
+ * + * optional string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the displayName field is set. + */ + @java.lang.Override + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. The display name of the buyer.
+   * 
+ * + * optional string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+   * Output only. The display name of the buyer.
+   * 
+ * + * optional string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 PARENT_ACCOUNT_ID_FIELD_NUMBER = 6; + private long parentAccountId_ = 0L; + + /** + * + * + *
+   * Output only. The ID of the programmatic buyer's sponsor. If the buyer has
+   * no sponsor, this field will be -1.
+   * 
+ * + * optional int64 parent_account_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the parentAccountId field is set. + */ + @java.lang.Override + public boolean hasParentAccountId() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Output only. The ID of the programmatic buyer's sponsor. If the buyer has
+   * no sponsor, this field will be -1.
+   * 
+ * + * optional int64 parent_account_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The parentAccountId. + */ + @java.lang.Override + public long getParentAccountId() { + return parentAccountId_; + } + + public static final int PARTNER_CLIENT_ID_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object partnerClientId_ = ""; + + /** + * + * + *
+   * Output only. ID of the Display & Video 360 client buyer partner ID (if
+   * Display & Video 360) or Authorized Buyers client buyer account ID.
+   * 
+ * + * optional string partner_client_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the partnerClientId field is set. + */ + @java.lang.Override + public boolean hasPartnerClientId() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Output only. ID of the Display & Video 360 client buyer partner ID (if
+   * Display & Video 360) or Authorized Buyers client buyer account ID.
+   * 
+ * + * optional string partner_client_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The partnerClientId. + */ + @java.lang.Override + public java.lang.String getPartnerClientId() { + java.lang.Object ref = partnerClientId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + partnerClientId_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. ID of the Display & Video 360 client buyer partner ID (if
+   * Display & Video 360) or Authorized Buyers client buyer account ID.
+   * 
+ * + * optional string partner_client_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for partnerClientId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPartnerClientIdBytes() { + java.lang.Object ref = partnerClientId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + partnerClientId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AGENCY_FIELD_NUMBER = 9; + private boolean agency_ = false; + + /** + * + * + *
+   * Output only. Whether the buyer is an advertising agency.
+   * 
+ * + * optional bool agency = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the agency field is set. + */ + @java.lang.Override + public boolean hasAgency() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Output only. Whether the buyer is an advertising agency.
+   * 
+ * + * optional bool agency = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The agency. + */ + @java.lang.Override + public boolean getAgency() { + return agency_; + } + + public static final int PREFERRED_DEALS_ENABLED_FIELD_NUMBER = 12; + private boolean preferredDealsEnabled_ = false; + + /** + * + * + *
+   * Output only. Whether the buyer is enabled for preferred deals.
+   * 
+ * + * optional bool preferred_deals_enabled = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the preferredDealsEnabled field is set. + */ + @java.lang.Override + public boolean hasPreferredDealsEnabled() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+   * Output only. Whether the buyer is enabled for preferred deals.
+   * 
+ * + * optional bool preferred_deals_enabled = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The preferredDealsEnabled. + */ + @java.lang.Override + public boolean getPreferredDealsEnabled() { + return preferredDealsEnabled_; + } + + public static final int PROGRAMMATIC_GUARANTEED_ENABLED_FIELD_NUMBER = 13; + private boolean programmaticGuaranteedEnabled_ = false; + + /** + * + * + *
+   * Output only. Whether the buyer is enabled for programmatic guaranteed
+   * deals.
+   * 
+ * + * + * optional bool programmatic_guaranteed_enabled = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the programmaticGuaranteedEnabled field is set. + */ + @java.lang.Override + public boolean hasProgrammaticGuaranteedEnabled() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+   * Output only. Whether the buyer is enabled for programmatic guaranteed
+   * deals.
+   * 
+ * + * + * optional bool programmatic_guaranteed_enabled = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The programmaticGuaranteedEnabled. + */ + @java.lang.Override + public boolean getProgrammaticGuaranteedEnabled() { + return programmaticGuaranteedEnabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt64(2, buyerAccountId_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeInt64(6, parentAccountId_); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, partnerClientId_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeBool(9, agency_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeBool(12, preferredDealsEnabled_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeBool(13, programmaticGuaranteedEnabled_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, buyerAccountId_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, parentAccountId_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, partnerClientId_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, agency_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, preferredDealsEnabled_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(13, programmaticGuaranteedEnabled_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.admanager.v1.ProgrammaticBuyer)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ProgrammaticBuyer other = + (com.google.ads.admanager.v1.ProgrammaticBuyer) obj; + + if (!getName().equals(other.getName())) return false; + if (hasBuyerAccountId() != other.hasBuyerAccountId()) return false; + if (hasBuyerAccountId()) { + if (getBuyerAccountId() != other.getBuyerAccountId()) return false; + } + if (hasDisplayName() != other.hasDisplayName()) return false; + if (hasDisplayName()) { + if (!getDisplayName().equals(other.getDisplayName())) return false; + } + if (hasParentAccountId() != other.hasParentAccountId()) return false; + if (hasParentAccountId()) { + if (getParentAccountId() != other.getParentAccountId()) return false; + } + if (hasPartnerClientId() != other.hasPartnerClientId()) return false; + if (hasPartnerClientId()) { + if (!getPartnerClientId().equals(other.getPartnerClientId())) return false; + } + if (hasAgency() != other.hasAgency()) return false; + if (hasAgency()) { + if (getAgency() != other.getAgency()) return false; + } + if (hasPreferredDealsEnabled() != other.hasPreferredDealsEnabled()) return false; + if (hasPreferredDealsEnabled()) { + if (getPreferredDealsEnabled() != other.getPreferredDealsEnabled()) return false; + } + if (hasProgrammaticGuaranteedEnabled() != other.hasProgrammaticGuaranteedEnabled()) + return false; + if (hasProgrammaticGuaranteedEnabled()) { + if (getProgrammaticGuaranteedEnabled() != other.getProgrammaticGuaranteedEnabled()) + return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasBuyerAccountId()) { + hash = (37 * hash) + BUYER_ACCOUNT_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBuyerAccountId()); + } + if (hasDisplayName()) { + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + } + if (hasParentAccountId()) { + hash = (37 * hash) + PARENT_ACCOUNT_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getParentAccountId()); + } + if (hasPartnerClientId()) { + hash = (37 * hash) + PARTNER_CLIENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getPartnerClientId().hashCode(); + } + if (hasAgency()) { + hash = (37 * hash) + AGENCY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAgency()); + } + if (hasPreferredDealsEnabled()) { + hash = (37 * hash) + PREFERRED_DEALS_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPreferredDealsEnabled()); + } + if (hasProgrammaticGuaranteedEnabled()) { + hash = (37 * hash) + PROGRAMMATIC_GUARANTEED_ENABLED_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getProgrammaticGuaranteedEnabled()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ProgrammaticBuyer parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ProgrammaticBuyer 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.admanager.v1.ProgrammaticBuyer parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ProgrammaticBuyer parseFrom( + 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.admanager.v1.ProgrammaticBuyer parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ProgrammaticBuyer parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ProgrammaticBuyer parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ProgrammaticBuyer parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ProgrammaticBuyer parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ProgrammaticBuyer parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ProgrammaticBuyer parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ProgrammaticBuyer parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.ProgrammaticBuyer prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Represents a programmatic buyer.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.ProgrammaticBuyer} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ProgrammaticBuyer) + com.google.ads.admanager.v1.ProgrammaticBuyerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.ProgrammaticBuyerMessagesProto + .internal_static_google_ads_admanager_v1_ProgrammaticBuyer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.ProgrammaticBuyerMessagesProto + .internal_static_google_ads_admanager_v1_ProgrammaticBuyer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ProgrammaticBuyer.class, + com.google.ads.admanager.v1.ProgrammaticBuyer.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ProgrammaticBuyer.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + buyerAccountId_ = 0L; + displayName_ = ""; + parentAccountId_ = 0L; + partnerClientId_ = ""; + agency_ = false; + preferredDealsEnabled_ = false; + programmaticGuaranteedEnabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.ProgrammaticBuyerMessagesProto + .internal_static_google_ads_admanager_v1_ProgrammaticBuyer_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ProgrammaticBuyer getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ProgrammaticBuyer.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ProgrammaticBuyer build() { + com.google.ads.admanager.v1.ProgrammaticBuyer result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ProgrammaticBuyer buildPartial() { + com.google.ads.admanager.v1.ProgrammaticBuyer result = + new com.google.ads.admanager.v1.ProgrammaticBuyer(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.ProgrammaticBuyer result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.buyerAccountId_ = buyerAccountId_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.displayName_ = displayName_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.parentAccountId_ = parentAccountId_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.partnerClientId_ = partnerClientId_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.agency_ = agency_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.preferredDealsEnabled_ = preferredDealsEnabled_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.programmaticGuaranteedEnabled_ = programmaticGuaranteedEnabled_; + to_bitField0_ |= 0x00000040; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ProgrammaticBuyer) { + return mergeFrom((com.google.ads.admanager.v1.ProgrammaticBuyer) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ProgrammaticBuyer other) { + if (other == com.google.ads.admanager.v1.ProgrammaticBuyer.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasBuyerAccountId()) { + setBuyerAccountId(other.getBuyerAccountId()); + } + if (other.hasDisplayName()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasParentAccountId()) { + setParentAccountId(other.getParentAccountId()); + } + if (other.hasPartnerClientId()) { + partnerClientId_ = other.partnerClientId_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasAgency()) { + setAgency(other.getAgency()); + } + if (other.hasPreferredDealsEnabled()) { + setPreferredDealsEnabled(other.getPreferredDealsEnabled()); + } + if (other.hasProgrammaticGuaranteedEnabled()) { + setProgrammaticGuaranteedEnabled(other.getProgrammaticGuaranteedEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.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: + { + buyerAccountId_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 42: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 42 + case 48: + { + parentAccountId_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 48 + case 58: + { + partnerClientId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 58 + case 72: + { + agency_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 72 + case 96: + { + preferredDealsEnabled_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 96 + case 104: + { + programmaticGuaranteedEnabled_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 104 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Identifier. The resource name of the `ProgrammaticBuyer`.
+     * Format:
+     * `networks/{network_code}/programmaticBuyers/{buyer_account_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 `ProgrammaticBuyer`.
+     * Format:
+     * `networks/{network_code}/programmaticBuyers/{buyer_account_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 `ProgrammaticBuyer`.
+     * Format:
+     * `networks/{network_code}/programmaticBuyers/{buyer_account_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 `ProgrammaticBuyer`.
+     * Format:
+     * `networks/{network_code}/programmaticBuyers/{buyer_account_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 `ProgrammaticBuyer`.
+     * Format:
+     * `networks/{network_code}/programmaticBuyers/{buyer_account_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 long buyerAccountId_; + + /** + * + * + *
+     * Output only. The buyer account ID of the buyer.
+     * 
+ * + * optional int64 buyer_account_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the buyerAccountId field is set. + */ + @java.lang.Override + public boolean hasBuyerAccountId() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. The buyer account ID of the buyer.
+     * 
+ * + * optional int64 buyer_account_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The buyerAccountId. + */ + @java.lang.Override + public long getBuyerAccountId() { + return buyerAccountId_; + } + + /** + * + * + *
+     * Output only. The buyer account ID of the buyer.
+     * 
+ * + * optional int64 buyer_account_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The buyerAccountId to set. + * @return This builder for chaining. + */ + public Builder setBuyerAccountId(long value) { + + buyerAccountId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The buyer account ID of the buyer.
+     * 
+ * + * optional int64 buyer_account_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearBuyerAccountId() { + bitField0_ = (bitField0_ & ~0x00000002); + buyerAccountId_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
+     * Output only. The display name of the buyer.
+     * 
+ * + * optional string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the displayName field is set. + */ + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Output only. The display name of the buyer.
+     * 
+ * + * optional string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. The display name of the buyer.
+     * 
+ * + * optional string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. The display name of the buyer.
+     * 
+ * + * optional string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The display name of the buyer.
+     * 
+ * + * optional string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The display name of the buyer.
+     * 
+ * + * optional string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private long parentAccountId_; + + /** + * + * + *
+     * Output only. The ID of the programmatic buyer's sponsor. If the buyer has
+     * no sponsor, this field will be -1.
+     * 
+ * + * optional int64 parent_account_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the parentAccountId field is set. + */ + @java.lang.Override + public boolean hasParentAccountId() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Output only. The ID of the programmatic buyer's sponsor. If the buyer has
+     * no sponsor, this field will be -1.
+     * 
+ * + * optional int64 parent_account_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The parentAccountId. + */ + @java.lang.Override + public long getParentAccountId() { + return parentAccountId_; + } + + /** + * + * + *
+     * Output only. The ID of the programmatic buyer's sponsor. If the buyer has
+     * no sponsor, this field will be -1.
+     * 
+ * + * optional int64 parent_account_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The parentAccountId to set. + * @return This builder for chaining. + */ + public Builder setParentAccountId(long value) { + + parentAccountId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The ID of the programmatic buyer's sponsor. If the buyer has
+     * no sponsor, this field will be -1.
+     * 
+ * + * optional int64 parent_account_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearParentAccountId() { + bitField0_ = (bitField0_ & ~0x00000008); + parentAccountId_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object partnerClientId_ = ""; + + /** + * + * + *
+     * Output only. ID of the Display & Video 360 client buyer partner ID (if
+     * Display & Video 360) or Authorized Buyers client buyer account ID.
+     * 
+ * + * optional string partner_client_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the partnerClientId field is set. + */ + public boolean hasPartnerClientId() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Output only. ID of the Display & Video 360 client buyer partner ID (if
+     * Display & Video 360) or Authorized Buyers client buyer account ID.
+     * 
+ * + * optional string partner_client_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The partnerClientId. + */ + public java.lang.String getPartnerClientId() { + java.lang.Object ref = partnerClientId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + partnerClientId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. ID of the Display & Video 360 client buyer partner ID (if
+     * Display & Video 360) or Authorized Buyers client buyer account ID.
+     * 
+ * + * optional string partner_client_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for partnerClientId. + */ + public com.google.protobuf.ByteString getPartnerClientIdBytes() { + java.lang.Object ref = partnerClientId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + partnerClientId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. ID of the Display & Video 360 client buyer partner ID (if
+     * Display & Video 360) or Authorized Buyers client buyer account ID.
+     * 
+ * + * optional string partner_client_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The partnerClientId to set. + * @return This builder for chaining. + */ + public Builder setPartnerClientId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + partnerClientId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. ID of the Display & Video 360 client buyer partner ID (if
+     * Display & Video 360) or Authorized Buyers client buyer account ID.
+     * 
+ * + * optional string partner_client_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearPartnerClientId() { + partnerClientId_ = getDefaultInstance().getPartnerClientId(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. ID of the Display & Video 360 client buyer partner ID (if
+     * Display & Video 360) or Authorized Buyers client buyer account ID.
+     * 
+ * + * optional string partner_client_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for partnerClientId to set. + * @return This builder for chaining. + */ + public Builder setPartnerClientIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + partnerClientId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private boolean agency_; + + /** + * + * + *
+     * Output only. Whether the buyer is an advertising agency.
+     * 
+ * + * optional bool agency = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the agency field is set. + */ + @java.lang.Override + public boolean hasAgency() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Output only. Whether the buyer is an advertising agency.
+     * 
+ * + * optional bool agency = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The agency. + */ + @java.lang.Override + public boolean getAgency() { + return agency_; + } + + /** + * + * + *
+     * Output only. Whether the buyer is an advertising agency.
+     * 
+ * + * optional bool agency = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The agency to set. + * @return This builder for chaining. + */ + public Builder setAgency(boolean value) { + + agency_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Whether the buyer is an advertising agency.
+     * 
+ * + * optional bool agency = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearAgency() { + bitField0_ = (bitField0_ & ~0x00000020); + agency_ = false; + onChanged(); + return this; + } + + private boolean preferredDealsEnabled_; + + /** + * + * + *
+     * Output only. Whether the buyer is enabled for preferred deals.
+     * 
+ * + * + * optional bool preferred_deals_enabled = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the preferredDealsEnabled field is set. + */ + @java.lang.Override + public boolean hasPreferredDealsEnabled() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Output only. Whether the buyer is enabled for preferred deals.
+     * 
+ * + * + * optional bool preferred_deals_enabled = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The preferredDealsEnabled. + */ + @java.lang.Override + public boolean getPreferredDealsEnabled() { + return preferredDealsEnabled_; + } + + /** + * + * + *
+     * Output only. Whether the buyer is enabled for preferred deals.
+     * 
+ * + * + * optional bool preferred_deals_enabled = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The preferredDealsEnabled to set. + * @return This builder for chaining. + */ + public Builder setPreferredDealsEnabled(boolean value) { + + preferredDealsEnabled_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Whether the buyer is enabled for preferred deals.
+     * 
+ * + * + * optional bool preferred_deals_enabled = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearPreferredDealsEnabled() { + bitField0_ = (bitField0_ & ~0x00000040); + preferredDealsEnabled_ = false; + onChanged(); + return this; + } + + private boolean programmaticGuaranteedEnabled_; + + /** + * + * + *
+     * Output only. Whether the buyer is enabled for programmatic guaranteed
+     * deals.
+     * 
+ * + * + * optional bool programmatic_guaranteed_enabled = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the programmaticGuaranteedEnabled field is set. + */ + @java.lang.Override + public boolean hasProgrammaticGuaranteedEnabled() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Output only. Whether the buyer is enabled for programmatic guaranteed
+     * deals.
+     * 
+ * + * + * optional bool programmatic_guaranteed_enabled = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The programmaticGuaranteedEnabled. + */ + @java.lang.Override + public boolean getProgrammaticGuaranteedEnabled() { + return programmaticGuaranteedEnabled_; + } + + /** + * + * + *
+     * Output only. Whether the buyer is enabled for programmatic guaranteed
+     * deals.
+     * 
+ * + * + * optional bool programmatic_guaranteed_enabled = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The programmaticGuaranteedEnabled to set. + * @return This builder for chaining. + */ + public Builder setProgrammaticGuaranteedEnabled(boolean value) { + + programmaticGuaranteedEnabled_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Whether the buyer is enabled for programmatic guaranteed
+     * deals.
+     * 
+ * + * + * optional bool programmatic_guaranteed_enabled = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearProgrammaticGuaranteedEnabled() { + bitField0_ = (bitField0_ & ~0x00000080); + programmaticGuaranteedEnabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ProgrammaticBuyer) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ProgrammaticBuyer) + private static final com.google.ads.admanager.v1.ProgrammaticBuyer DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ProgrammaticBuyer(); + } + + public static com.google.ads.admanager.v1.ProgrammaticBuyer getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProgrammaticBuyer parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.ProgrammaticBuyer getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ProgrammaticBuyerMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ProgrammaticBuyerMessagesProto.java new file mode 100644 index 000000000000..ae9e6436e4aa --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ProgrammaticBuyerMessagesProto.java @@ -0,0 +1,105 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/programmatic_buyer_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class ProgrammaticBuyerMessagesProto { + private ProgrammaticBuyerMessagesProto() {} + + 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_ads_admanager_v1_ProgrammaticBuyer_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ProgrammaticBuyer_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" + + "9google/ads/admanager/v1/programmatic_buyer_messages.proto\022\027google.ads.admanage" + + "r.v1\032\037google/api/field_behavior.proto\032\031google/api/resource.proto\"\344\004\n" + + "\021ProgrammaticBuyer\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\"\n" + + "\020buyer_account_id\030\002 \001(\003B\003\340A\003H\000\210\001\001\022\036\n" + + "\014display_name\030\005 \001(\tB\003\340A\003H\001\210\001\001\022#\n" + + "\021parent_account_id\030\006 \001(\003B\003\340A\003H\002\210\001\001\022#\n" + + "\021partner_client_id\030\007 \001(\tB\003\340A\003H\003\210\001\001\022\030\n" + + "\006agency\030\t \001(\010B\003\340A\003H\004\210\001\001\022)\n" + + "\027preferred_deals_enabled\030\014 \001(\010B\003\340A\003H\005\210\001\001\0221\n" + + "\037programmatic_guaranteed_enabled\030\r" + + " \001(\010B\003\340A\003H\006\210\001\001:\230\001\352A\224\001\n" + + "*admanager.googleapis.com/ProgrammaticBuyer\022?networks/{network_co" + + "de}/programmaticBuyers/{programmatic_buy" + + "er}*\022programmaticBuyers2\021programmaticBuyerB\023\n" + + "\021_buyer_account_idB\017\n\r" + + "_display_nameB\024\n" + + "\022_parent_account_idB\024\n" + + "\022_partner_client_idB\t\n" + + "\007_agencyB\032\n" + + "\030_preferred_deals_enabledB\"\n" + + " _programmatic_guaranteed_enabledB\322\001\n" + + "\033com.google.ads.admanager.v1B\036ProgrammaticBuyerMessagesProtoP\001Z@google.golang" + + ".org/genproto/googleapis/ads/admanager/v" + + "1;admanager\252\002\027Google.Ads.AdManager.V1\312\002\027" + + "Google\\Ads\\AdManager\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_ads_admanager_v1_ProgrammaticBuyer_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_ProgrammaticBuyer_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ProgrammaticBuyer_descriptor, + new java.lang.String[] { + "Name", + "BuyerAccountId", + "DisplayName", + "ParentAccountId", + "PartnerClientId", + "Agency", + "PreferredDealsEnabled", + "ProgrammaticGuaranteedEnabled", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ProgrammaticBuyerName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ProgrammaticBuyerName.java new file mode 100644 index 000000000000..12a7af6d2468 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ProgrammaticBuyerName.java @@ -0,0 +1,198 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class ProgrammaticBuyerName implements ResourceName { + private static final PathTemplate NETWORK_CODE_PROGRAMMATIC_BUYER = + PathTemplate.createWithoutUrlEncoding( + "networks/{network_code}/programmaticBuyers/{programmatic_buyer}"); + private volatile Map fieldValuesMap; + private final String networkCode; + private final String programmaticBuyer; + + @Deprecated + protected ProgrammaticBuyerName() { + networkCode = null; + programmaticBuyer = null; + } + + private ProgrammaticBuyerName(Builder builder) { + networkCode = Preconditions.checkNotNull(builder.getNetworkCode()); + programmaticBuyer = Preconditions.checkNotNull(builder.getProgrammaticBuyer()); + } + + public String getNetworkCode() { + return networkCode; + } + + public String getProgrammaticBuyer() { + return programmaticBuyer; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ProgrammaticBuyerName of(String networkCode, String programmaticBuyer) { + return newBuilder().setNetworkCode(networkCode).setProgrammaticBuyer(programmaticBuyer).build(); + } + + public static String format(String networkCode, String programmaticBuyer) { + return newBuilder() + .setNetworkCode(networkCode) + .setProgrammaticBuyer(programmaticBuyer) + .build() + .toString(); + } + + public static ProgrammaticBuyerName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + NETWORK_CODE_PROGRAMMATIC_BUYER.validatedMatch( + formattedString, "ProgrammaticBuyerName.parse: formattedString not in valid format"); + return of(matchMap.get("network_code"), matchMap.get("programmatic_buyer")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (ProgrammaticBuyerName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return NETWORK_CODE_PROGRAMMATIC_BUYER.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (networkCode != null) { + fieldMapBuilder.put("network_code", networkCode); + } + if (programmaticBuyer != null) { + fieldMapBuilder.put("programmatic_buyer", programmaticBuyer); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return NETWORK_CODE_PROGRAMMATIC_BUYER.instantiate( + "network_code", networkCode, "programmatic_buyer", programmaticBuyer); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ProgrammaticBuyerName that = ((ProgrammaticBuyerName) o); + return Objects.equals(this.networkCode, that.networkCode) + && Objects.equals(this.programmaticBuyer, that.programmaticBuyer); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(networkCode); + h *= 1000003; + h ^= Objects.hashCode(programmaticBuyer); + return h; + } + + /** Builder for networks/{network_code}/programmaticBuyers/{programmatic_buyer}. */ + public static class Builder { + private String networkCode; + private String programmaticBuyer; + + protected Builder() {} + + public String getNetworkCode() { + return networkCode; + } + + public String getProgrammaticBuyer() { + return programmaticBuyer; + } + + public Builder setNetworkCode(String networkCode) { + this.networkCode = networkCode; + return this; + } + + public Builder setProgrammaticBuyer(String programmaticBuyer) { + this.programmaticBuyer = programmaticBuyer; + return this; + } + + private Builder(ProgrammaticBuyerName programmaticBuyerName) { + this.networkCode = programmaticBuyerName.networkCode; + this.programmaticBuyer = programmaticBuyerName.programmaticBuyer; + } + + public ProgrammaticBuyerName build() { + return new ProgrammaticBuyerName(this); + } + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ProgrammaticBuyerOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ProgrammaticBuyerOrBuilder.java new file mode 100644 index 000000000000..f16924a74b0c --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ProgrammaticBuyerOrBuilder.java @@ -0,0 +1,280 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/programmatic_buyer_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ProgrammaticBuyerOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ProgrammaticBuyer) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. The resource name of the `ProgrammaticBuyer`.
+   * Format:
+   * `networks/{network_code}/programmaticBuyers/{buyer_account_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. The resource name of the `ProgrammaticBuyer`.
+   * Format:
+   * `networks/{network_code}/programmaticBuyers/{buyer_account_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. The buyer account ID of the buyer.
+   * 
+ * + * optional int64 buyer_account_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the buyerAccountId field is set. + */ + boolean hasBuyerAccountId(); + + /** + * + * + *
+   * Output only. The buyer account ID of the buyer.
+   * 
+ * + * optional int64 buyer_account_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The buyerAccountId. + */ + long getBuyerAccountId(); + + /** + * + * + *
+   * Output only. The display name of the buyer.
+   * 
+ * + * optional string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the displayName field is set. + */ + boolean hasDisplayName(); + + /** + * + * + *
+   * Output only. The display name of the buyer.
+   * 
+ * + * optional string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+   * Output only. The display name of the buyer.
+   * 
+ * + * optional string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Output only. The ID of the programmatic buyer's sponsor. If the buyer has
+   * no sponsor, this field will be -1.
+   * 
+ * + * optional int64 parent_account_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the parentAccountId field is set. + */ + boolean hasParentAccountId(); + + /** + * + * + *
+   * Output only. The ID of the programmatic buyer's sponsor. If the buyer has
+   * no sponsor, this field will be -1.
+   * 
+ * + * optional int64 parent_account_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The parentAccountId. + */ + long getParentAccountId(); + + /** + * + * + *
+   * Output only. ID of the Display & Video 360 client buyer partner ID (if
+   * Display & Video 360) or Authorized Buyers client buyer account ID.
+   * 
+ * + * optional string partner_client_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the partnerClientId field is set. + */ + boolean hasPartnerClientId(); + + /** + * + * + *
+   * Output only. ID of the Display & Video 360 client buyer partner ID (if
+   * Display & Video 360) or Authorized Buyers client buyer account ID.
+   * 
+ * + * optional string partner_client_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The partnerClientId. + */ + java.lang.String getPartnerClientId(); + + /** + * + * + *
+   * Output only. ID of the Display & Video 360 client buyer partner ID (if
+   * Display & Video 360) or Authorized Buyers client buyer account ID.
+   * 
+ * + * optional string partner_client_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for partnerClientId. + */ + com.google.protobuf.ByteString getPartnerClientIdBytes(); + + /** + * + * + *
+   * Output only. Whether the buyer is an advertising agency.
+   * 
+ * + * optional bool agency = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the agency field is set. + */ + boolean hasAgency(); + + /** + * + * + *
+   * Output only. Whether the buyer is an advertising agency.
+   * 
+ * + * optional bool agency = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The agency. + */ + boolean getAgency(); + + /** + * + * + *
+   * Output only. Whether the buyer is enabled for preferred deals.
+   * 
+ * + * optional bool preferred_deals_enabled = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the preferredDealsEnabled field is set. + */ + boolean hasPreferredDealsEnabled(); + + /** + * + * + *
+   * Output only. Whether the buyer is enabled for preferred deals.
+   * 
+ * + * optional bool preferred_deals_enabled = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The preferredDealsEnabled. + */ + boolean getPreferredDealsEnabled(); + + /** + * + * + *
+   * Output only. Whether the buyer is enabled for programmatic guaranteed
+   * deals.
+   * 
+ * + * + * optional bool programmatic_guaranteed_enabled = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the programmaticGuaranteedEnabled field is set. + */ + boolean hasProgrammaticGuaranteedEnabled(); + + /** + * + * + *
+   * Output only. Whether the buyer is enabled for programmatic guaranteed
+   * deals.
+   * 
+ * + * + * optional bool programmatic_guaranteed_enabled = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The programmaticGuaranteedEnabled. + */ + boolean getProgrammaticGuaranteedEnabled(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ProgrammaticBuyerServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ProgrammaticBuyerServiceProto.java new file mode 100644 index 000000000000..47343f8a247d --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ProgrammaticBuyerServiceProto.java @@ -0,0 +1,141 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/programmatic_buyer_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class ProgrammaticBuyerServiceProto { + private ProgrammaticBuyerServiceProto() {} + + 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_ads_admanager_v1_GetProgrammaticBuyerRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_GetProgrammaticBuyerRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListProgrammaticBuyersRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListProgrammaticBuyersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListProgrammaticBuyersResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListProgrammaticBuyersResponse_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" + + "8google/ads/admanager/v1/programmatic_buyer_service.proto\022\027google.ads.admanager" + + ".v1\0329google/ads/admanager/v1/programmati" + + "c_buyer_messages.proto\032\034google/api/annot" + + "ations.proto\032\027google/api/client.proto\032\037g" + + "oogle/api/field_behavior.proto\032\031google/api/resource.proto\"_\n" + + "\033GetProgrammaticBuyerRequest\022@\n" + + "\004name\030\001 \001(\tB2\340A\002\372A,\n" + + "*admanager.googleapis.com/ProgrammaticBuyer\"\311\001\n" + + "\035ListProgrammaticBuyersRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\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\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\022\021\n" + + "\004skip\030\006 \001(\005B\003\340A\001\"\226\001\n" + + "\036ListProgrammaticBuyersResponse\022G\n" + + "\023programmatic_buyers\030\001" + + " \003(\0132*.google.ads.admanager.v1.ProgrammaticBuyer\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\022\n\n" + + "total_size\030\003 \001(\0052\342\003\n" + + "\030ProgrammaticBuyerService\022\263\001\n" + + "\024GetProgrammaticBuyer\0224.google.ads.admanager.v1.GetProgr" + + "ammaticBuyerRequest\032*.google.ads.admanag" + + "er.v1.ProgrammaticBuyer\"9\332A\004name\202\323\344\223\002,\022*" + + "/v1/{name=networks/*/programmaticBuyers/*}\022\306\001\n" + + "\026ListProgrammaticBuyers\0226.google.ads.admanager.v1.ListProgrammaticBuyersRe" + + "quest\0327.google.ads.admanager.v1.ListProg" + + "rammaticBuyersResponse\";\332A\006parent\202\323\344\223\002,\022" + + "*/v1/{parent=networks/*}/programmaticBuy" + + "ers\032G\312A\030admanager.googleapis.com\322A)https://www.googleapis.com/auth/admanagerB\321\001\n" + + "\033com.google.ads.admanager.v1B\035Programmat" + + "icBuyerServiceProtoP\001Z@google.golang.org/genproto/googleapis/ads/admanager/v1;ad" + + "manager\252\002\027Google.Ads.AdManager.V1\312\002\027Goog" + + "le\\Ads\\AdManager\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.admanager.v1.ProgrammaticBuyerMessagesProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_ads_admanager_v1_GetProgrammaticBuyerRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_GetProgrammaticBuyerRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_GetProgrammaticBuyerRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_ads_admanager_v1_ListProgrammaticBuyersRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_ads_admanager_v1_ListProgrammaticBuyersRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListProgrammaticBuyersRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", "Skip", + }); + internal_static_google_ads_admanager_v1_ListProgrammaticBuyersResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_ads_admanager_v1_ListProgrammaticBuyersResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListProgrammaticBuyersResponse_descriptor, + new java.lang.String[] { + "ProgrammaticBuyers", "NextPageToken", "TotalSize", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.ads.admanager.v1.ProgrammaticBuyerMessagesProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Report.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Report.java index 50805abc653c..1d4afed424d6 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Report.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Report.java @@ -14,7 +14,7 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/admanager/v1/report_service.proto +// source: google/ads/admanager/v1/report_messages.proto // Protobuf Java Version: 3.25.8 package com.google.ads.admanager.v1; @@ -53,14 +53,14 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.admanager.v1.Report.class, @@ -3699,6 +3699,16 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * REQUEST_TYPE_NAME = 147; */ REQUEST_TYPE_NAME(147), + /** + * + * + *
+     * Indicates if a request was eligible for server-side unwrapping.
+     * 
+ * + * SERVER_SIDE_UNWRAPPING_ELIGIBLE = 597; + */ + SERVER_SIDE_UNWRAPPING_ELIGIBLE(597), /** * * @@ -4023,7 +4033,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Line Item with custom field ID equal to the ID
-     * in index 0 of `ReportDefinition.line_item_custom_field_ids`.
+     * in index 0 of `ReportDefinition.line_item_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 0 is of
+     * type STRING or DROPDOWN.
      * 
* * LINE_ITEM_CUSTOM_FIELD_0_VALUE = 11000; @@ -4034,7 +4046,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Line Item with custom field ID equal to the ID
-     * in index 1 of `ReportDefinition.line_item_custom_field_ids`.
+     * in index 1 of `ReportDefinition.line_item_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 1 is of
+     * type STRING or DROPDOWN.
      * 
* * LINE_ITEM_CUSTOM_FIELD_1_VALUE = 11001; @@ -4045,7 +4059,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Line Item with custom field ID equal to the ID
-     * in index 2 of `ReportDefinition.line_item_custom_field_ids`.
+     * in index 2 of `ReportDefinition.line_item_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 2 is of
+     * type STRING or DROPDOWN.
      * 
* * LINE_ITEM_CUSTOM_FIELD_2_VALUE = 11002; @@ -4056,7 +4072,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Line Item with custom field ID equal to the ID
-     * in index 3 of `ReportDefinition.line_item_custom_field_ids`.
+     * in index 3 of `ReportDefinition.line_item_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 3 is of
+     * type STRING or DROPDOWN.
      * 
* * LINE_ITEM_CUSTOM_FIELD_3_VALUE = 11003; @@ -4067,7 +4085,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Line Item with custom field ID equal to the ID
-     * in index 4 of `ReportDefinition.line_item_custom_field_ids`.
+     * in index 4 of `ReportDefinition.line_item_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 4 is of
+     * type STRING or DROPDOWN.
      * 
* * LINE_ITEM_CUSTOM_FIELD_4_VALUE = 11004; @@ -4078,7 +4098,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Line Item with custom field ID equal to the ID
-     * in index 5 of `ReportDefinition.line_item_custom_field_ids`.
+     * in index 5 of `ReportDefinition.line_item_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 5 is of
+     * type STRING or DROPDOWN.
      * 
* * LINE_ITEM_CUSTOM_FIELD_5_VALUE = 11005; @@ -4089,7 +4111,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Line Item with custom field ID equal to the ID
-     * in index 6 of `ReportDefinition.line_item_custom_field_ids`.
+     * in index 6 of `ReportDefinition.line_item_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 6 is of
+     * type STRING or DROPDOWN.
      * 
* * LINE_ITEM_CUSTOM_FIELD_6_VALUE = 11006; @@ -4100,7 +4124,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Line Item with custom field ID equal to the ID
-     * in index 7 of `ReportDefinition.line_item_custom_field_ids`.
+     * in index 7 of `ReportDefinition.line_item_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 7 is of
+     * type STRING or DROPDOWN.
      * 
* * LINE_ITEM_CUSTOM_FIELD_7_VALUE = 11007; @@ -4111,7 +4137,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Line Item with custom field ID equal to the ID
-     * in index 8 of `ReportDefinition.line_item_custom_field_ids`.
+     * in index 8 of `ReportDefinition.line_item_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 8 is of
+     * type STRING or DROPDOWN.
      * 
* * LINE_ITEM_CUSTOM_FIELD_8_VALUE = 11008; @@ -4122,7 +4150,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Line Item with custom field ID equal to the ID
-     * in index 9 of `ReportDefinition.line_item_custom_field_ids`.
+     * in index 9 of `ReportDefinition.line_item_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 9 is of
+     * type STRING or DROPDOWN.
      * 
* * LINE_ITEM_CUSTOM_FIELD_9_VALUE = 11009; @@ -4133,7 +4163,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Line Item with custom field ID equal to the ID
-     * in index 10 of `ReportDefinition.line_item_custom_field_ids`.
+     * in index 10 of `ReportDefinition.line_item_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 10 is of
+     * type STRING or DROPDOWN.
      * 
* * LINE_ITEM_CUSTOM_FIELD_10_VALUE = 11010; @@ -4144,7 +4176,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Line Item with custom field ID equal to the ID
-     * in index 11 of `ReportDefinition.line_item_custom_field_ids`.
+     * in index 11 of `ReportDefinition.line_item_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 11 is of
+     * type STRING or DROPDOWN.
      * 
* * LINE_ITEM_CUSTOM_FIELD_11_VALUE = 11011; @@ -4155,7 +4189,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Line Item with custom field ID equal to the ID
-     * in index 12 of `ReportDefinition.line_item_custom_field_ids`.
+     * in index 12 of `ReportDefinition.line_item_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 12 is of
+     * type STRING or DROPDOWN.
      * 
* * LINE_ITEM_CUSTOM_FIELD_12_VALUE = 11012; @@ -4166,7 +4202,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Line Item with custom field ID equal to the ID
-     * in index 13 of `ReportDefinition.line_item_custom_field_ids`.
+     * in index 13 of `ReportDefinition.line_item_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 13 is of
+     * type STRING or DROPDOWN.
      * 
* * LINE_ITEM_CUSTOM_FIELD_13_VALUE = 11013; @@ -4177,7 +4215,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Line Item with custom field ID equal to the ID
-     * in index 14 of `ReportDefinition.line_item_custom_field_ids`.
+     * in index 14 of `ReportDefinition.line_item_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 14 is of
+     * type STRING or DROPDOWN.
      * 
* * LINE_ITEM_CUSTOM_FIELD_14_VALUE = 11014; @@ -4353,7 +4393,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Order with custom field ID equal to the ID
-     * in index 0 of `ReportDefinition.order_custom_field_ids`.
+     * in index 0 of `ReportDefinition.order_custom_field_ids`. Treats the value
+     * as a string. Can only be used if the custom field at index 0 is of type
+     * STRING.
      * 
* * ORDER_CUSTOM_FIELD_0_VALUE = 13000; @@ -4364,7 +4406,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Order with custom field ID equal to the ID
-     * in index 1 of `ReportDefinition.order_custom_field_ids`.
+     * in index 1 of `ReportDefinition.order_custom_field_ids`. Treats the value
+     * as a string. Can only be used if the custom field at index 1 is of type
+     * STRING.
      * 
* * ORDER_CUSTOM_FIELD_1_VALUE = 13001; @@ -4375,7 +4419,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Order with custom field ID equal to the ID
-     * in index 2 of `ReportDefinition.order_custom_field_ids`.
+     * in index 2 of `ReportDefinition.order_custom_field_ids`. Treats the value
+     * as a string. Can only be used if the custom field at index 2 is of type
+     * STRING.
      * 
* * ORDER_CUSTOM_FIELD_2_VALUE = 13002; @@ -4386,7 +4432,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Order with custom field ID equal to the ID
-     * in index 3 of `ReportDefinition.order_custom_field_ids`.
+     * in index 3 of `ReportDefinition.order_custom_field_ids`. Treats the value
+     * as a string. Can only be used if the custom field at index 3 is of type
+     * STRING.
      * 
* * ORDER_CUSTOM_FIELD_3_VALUE = 13003; @@ -4397,7 +4445,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Order with custom field ID equal to the ID
-     * in index 4 of `ReportDefinition.order_custom_field_ids`.
+     * in index 4 of `ReportDefinition.order_custom_field_ids`. Treats the value
+     * as a string. Can only be used if the custom field at index 4 is of type
+     * STRING.
      * 
* * ORDER_CUSTOM_FIELD_4_VALUE = 13004; @@ -4408,7 +4458,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Order with custom field ID equal to the ID
-     * in index 5 of `ReportDefinition.order_custom_field_ids`.
+     * in index 5 of `ReportDefinition.order_custom_field_ids`. Treats the value
+     * as a string. Can only be used if the custom field at index 5 is of type
+     * STRING.
      * 
* * ORDER_CUSTOM_FIELD_5_VALUE = 13005; @@ -4419,7 +4471,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Order with custom field ID equal to the ID
-     * in index 6 of `ReportDefinition.order_custom_field_ids`.
+     * in index 6 of `ReportDefinition.order_custom_field_ids`. Treats the value
+     * as a string. Can only be used if the custom field at index 6 is of type
+     * STRING.
      * 
* * ORDER_CUSTOM_FIELD_6_VALUE = 13006; @@ -4430,7 +4484,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Order with custom field ID equal to the ID
-     * in index 7 of `ReportDefinition.order_custom_field_ids`.
+     * in index 7 of `ReportDefinition.order_custom_field_ids`. Treats the value
+     * as a string. Can only be used if the custom field at index 7 is of type
+     * STRING.
      * 
* * ORDER_CUSTOM_FIELD_7_VALUE = 13007; @@ -4441,7 +4497,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Order with custom field ID equal to the ID
-     * in index 8 of `ReportDefinition.order_custom_field_ids`.
+     * in index 8 of `ReportDefinition.order_custom_field_ids`. Treats the value
+     * as a string. Can only be used if the custom field at index 8 is of type
+     * STRING.
      * 
* * ORDER_CUSTOM_FIELD_8_VALUE = 13008; @@ -4452,7 +4510,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Order with custom field ID equal to the ID
-     * in index 9 of `ReportDefinition.order_custom_field_ids`.
+     * in index 9 of `ReportDefinition.order_custom_field_ids`. Treats the value
+     * as a string. Can only be used if the custom field at index 9 is of type
+     * STRING.
      * 
* * ORDER_CUSTOM_FIELD_9_VALUE = 13009; @@ -4463,7 +4523,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Order with custom field ID equal to the ID
-     * in index 10 of `ReportDefinition.order_custom_field_ids`.
+     * in index 10 of `ReportDefinition.order_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 10 is of
+     * type STRING.
      * 
* * ORDER_CUSTOM_FIELD_10_VALUE = 13010; @@ -4474,7 +4536,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Order with custom field ID equal to the ID
-     * in index 11 of `ReportDefinition.order_custom_field_ids`.
+     * in index 11 of `ReportDefinition.order_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 11 is of
+     * type STRING.
      * 
* * ORDER_CUSTOM_FIELD_11_VALUE = 13011; @@ -4485,7 +4549,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Order with custom field ID equal to the ID
-     * in index 12 of `ReportDefinition.order_custom_field_ids`.
+     * in index 12 of `ReportDefinition.order_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 12 is of
+     * type STRING.
      * 
* * ORDER_CUSTOM_FIELD_12_VALUE = 13012; @@ -4496,7 +4562,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Order with custom field ID equal to the ID
-     * in index 13 of `ReportDefinition.order_custom_field_ids`.
+     * in index 13 of `ReportDefinition.order_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 13 is of
+     * type STRING.
      * 
* * ORDER_CUSTOM_FIELD_13_VALUE = 13013; @@ -4507,7 +4575,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Order with custom field ID equal to the ID
-     * in index 14 of `ReportDefinition.order_custom_field_ids`.
+     * in index 14 of `ReportDefinition.order_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 14 is of
+     * type STRING.
      * 
* * ORDER_CUSTOM_FIELD_14_VALUE = 13014; @@ -4683,7 +4753,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Creative with custom field ID equal to the ID
-     * in index 0 of `ReportDefinition.creative_custom_field_ids`.
+     * in index 0 of `ReportDefinition.creative_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 0 is of
+     * type STRING.
      * 
* * CREATIVE_CUSTOM_FIELD_0_VALUE = 15000; @@ -4694,7 +4766,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Creative with custom field ID equal to the ID
-     * in index 1 of `ReportDefinition.creative_custom_field_ids`.
+     * in index 1 of `ReportDefinition.creative_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 1 is of
+     * type STRING.
      * 
* * CREATIVE_CUSTOM_FIELD_1_VALUE = 15001; @@ -4705,7 +4779,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Creative with custom field ID equal to the ID
-     * in index 2 of `ReportDefinition.creative_custom_field_ids`.
+     * in index 2 of `ReportDefinition.creative_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 2 is of
+     * type STRING.
      * 
* * CREATIVE_CUSTOM_FIELD_2_VALUE = 15002; @@ -4716,7 +4792,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Creative with custom field ID equal to the ID
-     * in index 3 of `ReportDefinition.creative_custom_field_ids`.
+     * in index 3 of `ReportDefinition.creative_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 3 is of
+     * type STRING.
      * 
* * CREATIVE_CUSTOM_FIELD_3_VALUE = 15003; @@ -4727,7 +4805,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Creative with custom field ID equal to the ID
-     * in index 4 of `ReportDefinition.creative_custom_field_ids`.
+     * in index 4 of `ReportDefinition.creative_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 4 is of
+     * type STRING.
      * 
* * CREATIVE_CUSTOM_FIELD_4_VALUE = 15004; @@ -4738,7 +4818,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Creative with custom field ID equal to the ID
-     * in index 5 of `ReportDefinition.creative_custom_field_ids`.
+     * in index 5 of `ReportDefinition.creative_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 5 is of
+     * type STRING.
      * 
* * CREATIVE_CUSTOM_FIELD_5_VALUE = 15005; @@ -4749,7 +4831,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Creative with custom field ID equal to the ID
-     * in index 6 of `ReportDefinition.creative_custom_field_ids`.
+     * in index 6 of `ReportDefinition.creative_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 6 is of
+     * type STRING.
      * 
* * CREATIVE_CUSTOM_FIELD_6_VALUE = 15006; @@ -4760,7 +4844,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Creative with custom field ID equal to the ID
-     * in index 7 of `ReportDefinition.creative_custom_field_ids`.
+     * in index 7 of `ReportDefinition.creative_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 7 is of
+     * type STRING.
      * 
* * CREATIVE_CUSTOM_FIELD_7_VALUE = 15007; @@ -4771,7 +4857,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Creative with custom field ID equal to the ID
-     * in index 8 of `ReportDefinition.creative_custom_field_ids`.
+     * in index 8 of `ReportDefinition.creative_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 8 is of
+     * type STRING.
      * 
* * CREATIVE_CUSTOM_FIELD_8_VALUE = 15008; @@ -4782,7 +4870,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Creative with custom field ID equal to the ID
-     * in index 9 of `ReportDefinition.creative_custom_field_ids`.
+     * in index 9 of `ReportDefinition.creative_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 9 is of
+     * type STRING.
      * 
* * CREATIVE_CUSTOM_FIELD_9_VALUE = 15009; @@ -4793,7 +4883,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Creative with custom field ID equal to the ID
-     * in index 10 of `ReportDefinition.creative_custom_field_ids`.
+     * in index 10 of `ReportDefinition.creative_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 10 is of
+     * type STRING.
      * 
* * CREATIVE_CUSTOM_FIELD_10_VALUE = 15010; @@ -4804,7 +4896,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Creative with custom field ID equal to the ID
-     * in index 11 of `ReportDefinition.creative_custom_field_ids`.
+     * in index 11 of `ReportDefinition.creative_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 11 is of
+     * type STRING.
      * 
* * CREATIVE_CUSTOM_FIELD_11_VALUE = 15011; @@ -4815,7 +4909,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Creative with custom field ID equal to the ID
-     * in index 12 of `ReportDefinition.creative_custom_field_ids`.
+     * in index 12 of `ReportDefinition.creative_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 12 is of
+     * type STRING.
      * 
* * CREATIVE_CUSTOM_FIELD_12_VALUE = 15012; @@ -4826,7 +4922,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Creative with custom field ID equal to the ID
-     * in index 13 of `ReportDefinition.creative_custom_field_ids`.
+     * in index 13 of `ReportDefinition.creative_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 13 is of
+     * type STRING.
      * 
* * CREATIVE_CUSTOM_FIELD_13_VALUE = 15013; @@ -4837,7 +4935,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Creative with custom field ID equal to the ID
-     * in index 14 of `ReportDefinition.creative_custom_field_ids`.
+     * in index 14 of `ReportDefinition.creative_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 14 is of
+     * type STRING.
      * 
* * CREATIVE_CUSTOM_FIELD_14_VALUE = 15014; @@ -5014,6 +5114,8 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { *
      * Custom field value for Backfill line item with custom field ID equal to
      * the ID in index 0 of `ReportDefinition.line_item_custom_field_ids`.
+     * Treats the value as a string. Can only be used if the custom field at
+     * index 0 is of type STRING or DROPDOWN.
      * 
* * BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_VALUE = 17000; @@ -5025,6 +5127,8 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { *
      * Custom field value for Backfill line item with custom field ID equal to
      * the ID in index 1 of `ReportDefinition.line_item_custom_field_ids`.
+     * Treats the value as a string. Can only be used if the custom field at
+     * index 1 is of type STRING or DROPDOWN.
      * 
* * BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_VALUE = 17001; @@ -5036,6 +5140,8 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { *
      * Custom field value for Backfill line item with custom field ID equal to
      * the ID in index 2 of `ReportDefinition.line_item_custom_field_ids`.
+     * Treats the value as a string. Can only be used if the custom field at
+     * index 2 is of type STRING or DROPDOWN.
      * 
* * BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_VALUE = 17002; @@ -5047,6 +5153,8 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { *
      * Custom field value for Backfill line item with custom field ID equal to
      * the ID in index 3 of `ReportDefinition.line_item_custom_field_ids`.
+     * Treats the value as a string. Can only be used if the custom field at
+     * index 3 is of type STRING or DROPDOWN.
      * 
* * BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_VALUE = 17003; @@ -5058,6 +5166,8 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { *
      * Custom field value for Backfill line item with custom field ID equal to
      * the ID in index 4 of `ReportDefinition.line_item_custom_field_ids`.
+     * Treats the value as a string. Can only be used if the custom field at
+     * index 4 is of type STRING or DROPDOWN.
      * 
* * BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_VALUE = 17004; @@ -5069,6 +5179,8 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { *
      * Custom field value for Backfill line item with custom field ID equal to
      * the ID in index 5 of `ReportDefinition.line_item_custom_field_ids`.
+     * Treats the value as a string. Can only be used if the custom field at
+     * index 5 is of type STRING or DROPDOWN.
      * 
* * BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_VALUE = 17005; @@ -5080,6 +5192,8 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { *
      * Custom field value for Backfill line item with custom field ID equal to
      * the ID in index 6 of `ReportDefinition.line_item_custom_field_ids`.
+     * Treats the value as a string. Can only be used if the custom field at
+     * index 6 is of type STRING or DROPDOWN.
      * 
* * BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_VALUE = 17006; @@ -5091,6 +5205,8 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { *
      * Custom field value for Backfill line item with custom field ID equal to
      * the ID in index 7 of `ReportDefinition.line_item_custom_field_ids`.
+     * Treats the value as a string. Can only be used if the custom field at
+     * index 7 is of type STRING or DROPDOWN.
      * 
* * BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_VALUE = 17007; @@ -5102,6 +5218,8 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { *
      * Custom field value for Backfill line item with custom field ID equal to
      * the ID in index 8 of `ReportDefinition.line_item_custom_field_ids`.
+     * Treats the value as a string. Can only be used if the custom field at
+     * index 8 is of type STRING or DROPDOWN.
      * 
* * BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_VALUE = 17008; @@ -5113,6 +5231,8 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { *
      * Custom field value for Backfill line item with custom field ID equal to
      * the ID in index 9 of `ReportDefinition.line_item_custom_field_ids`.
+     * Treats the value as a string. Can only be used if the custom field at
+     * index 9 is of type STRING or DROPDOWN.
      * 
* * BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_VALUE = 17009; @@ -5124,6 +5244,8 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { *
      * Custom field value for Backfill line item with custom field ID equal to
      * the ID in index 10 of `ReportDefinition.line_item_custom_field_ids`.
+     * Treats the value as a string. Can only be used if the custom field at
+     * index 10 is of type STRING or DROPDOWN.
      * 
* * BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_VALUE = 17010; @@ -5135,6 +5257,8 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { *
      * Custom field value for Backfill line item with custom field ID equal to
      * the ID in index 11 of `ReportDefinition.line_item_custom_field_ids`.
+     * Treats the value as a string. Can only be used if the custom field at
+     * index 11 is of type STRING or DROPDOWN.
      * 
* * BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_VALUE = 17011; @@ -5146,6 +5270,8 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { *
      * Custom field value for Backfill line item with custom field ID equal to
      * the ID in index 12 of `ReportDefinition.line_item_custom_field_ids`.
+     * Treats the value as a string. Can only be used if the custom field at
+     * index 12 is of type STRING or DROPDOWN.
      * 
* * BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_VALUE = 17012; @@ -5157,6 +5283,8 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { *
      * Custom field value for Backfill line item with custom field ID equal to
      * the ID in index 13 of `ReportDefinition.line_item_custom_field_ids`.
+     * Treats the value as a string. Can only be used if the custom field at
+     * index 13 is of type STRING or DROPDOWN.
      * 
* * BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_VALUE = 17013; @@ -5168,6 +5296,8 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { *
      * Custom field value for Backfill line item with custom field ID equal to
      * the ID in index 14 of `ReportDefinition.line_item_custom_field_ids`.
+     * Treats the value as a string. Can only be used if the custom field at
+     * index 14 is of type STRING or DROPDOWN.
      * 
* * BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_VALUE = 17014; @@ -5343,7 +5473,10 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Backfill order with custom field ID equal to the
-     * ID in index 0 of `ReportDefinition.order_custom_field_ids`.
+     * ID
+     * in index 0 of `ReportDefinition.order_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 0 is of
+     * type STRING or DROPDOWN.
      * 
* * BACKFILL_ORDER_CUSTOM_FIELD_0_VALUE = 19000; @@ -5354,7 +5487,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Backfill order with custom field ID equal to the
-     * ID in index 1 of `ReportDefinition.order_custom_field_ids`.
+     * ID in index 1 of `ReportDefinition.order_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 1 is of
+     * type STRING or DROPDOWN.
      * 
* * BACKFILL_ORDER_CUSTOM_FIELD_1_VALUE = 19001; @@ -5365,7 +5500,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Backfill order with custom field ID equal to the
-     * ID in index 2 of `ReportDefinition.order_custom_field_ids`.
+     * ID in index 2 of `ReportDefinition.order_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 2 is of
+     * type STRING or DROPDOWN.
      * 
* * BACKFILL_ORDER_CUSTOM_FIELD_2_VALUE = 19002; @@ -5376,7 +5513,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Backfill order with custom field ID equal to the
-     * ID in index 3 of `ReportDefinition.order_custom_field_ids`.
+     * ID in index 3 of `ReportDefinition.order_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 3 is of
+     * type STRING or DROPDOWN.
      * 
* * BACKFILL_ORDER_CUSTOM_FIELD_3_VALUE = 19003; @@ -5387,7 +5526,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Backfill order with custom field ID equal to the
-     * ID in index 4 of `ReportDefinition.order_custom_field_ids`.
+     * ID in index 4 of `ReportDefinition.order_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 4 is of
+     * type STRING or DROPDOWN.
      * 
* * BACKFILL_ORDER_CUSTOM_FIELD_4_VALUE = 19004; @@ -5398,7 +5539,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Backfill order with custom field ID equal to the
-     * ID in index 5 of `ReportDefinition.order_custom_field_ids`.
+     * ID in index 5 of `ReportDefinition.order_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 5 is of
+     * type STRING or DROPDOWN.
      * 
* * BACKFILL_ORDER_CUSTOM_FIELD_5_VALUE = 19005; @@ -5409,7 +5552,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Backfill order with custom field ID equal to the
-     * ID in index 6 of `ReportDefinition.order_custom_field_ids`.
+     * ID in index 6 of `ReportDefinition.order_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 6 is of
+     * type STRING or DROPDOWN.
      * 
* * BACKFILL_ORDER_CUSTOM_FIELD_6_VALUE = 19006; @@ -5420,7 +5565,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Backfill order with custom field ID equal to the
-     * ID in index 7 of `ReportDefinition.order_custom_field_ids`.
+     * ID in index 7 of `ReportDefinition.order_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 7 is of
+     * type STRING or DROPDOWN.
      * 
* * BACKFILL_ORDER_CUSTOM_FIELD_7_VALUE = 19007; @@ -5431,7 +5578,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Backfill order with custom field ID equal to the
-     * ID in index 8 of `ReportDefinition.order_custom_field_ids`.
+     * ID in index 8 of `ReportDefinition.order_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 8 is of
+     * type STRING or DROPDOWN.
      * 
* * BACKFILL_ORDER_CUSTOM_FIELD_8_VALUE = 19008; @@ -5442,7 +5591,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Backfill order with custom field ID equal to the
-     * ID in index 9 of `ReportDefinition.order_custom_field_ids`.
+     * ID in index 9 of `ReportDefinition.order_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 9 is of
+     * type STRING or DROPDOWN.
      * 
* * BACKFILL_ORDER_CUSTOM_FIELD_9_VALUE = 19009; @@ -5453,7 +5604,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Backfill order with custom field ID equal to the
-     * ID in index 10 of `ReportDefinition.order_custom_field_ids`.
+     * ID in index 10 of `ReportDefinition.order_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 10 is of
+     * type STRING or DROPDOWN.
      * 
* * BACKFILL_ORDER_CUSTOM_FIELD_10_VALUE = 19010; @@ -5464,7 +5617,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Backfill order with custom field ID equal to the
-     * ID in index 11 of `ReportDefinition.order_custom_field_ids`.
+     * ID in index 11 of `ReportDefinition.order_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 11 is of
+     * type STRING or DROPDOWN.
      * 
* * BACKFILL_ORDER_CUSTOM_FIELD_11_VALUE = 19011; @@ -5475,7 +5630,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Backfill order with custom field ID equal to the
-     * ID in index 12 of `ReportDefinition.order_custom_field_ids`.
+     * ID in index 12 of `ReportDefinition.order_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 12 is of
+     * type STRING or DROPDOWN.
      * 
* * BACKFILL_ORDER_CUSTOM_FIELD_12_VALUE = 19012; @@ -5486,7 +5643,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Backfill order with custom field ID equal to the
-     * ID in index 13 of `ReportDefinition.order_custom_field_ids`.
+     * ID in index 13 of `ReportDefinition.order_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 13 is of
+     * type STRING or DROPDOWN.
      * 
* * BACKFILL_ORDER_CUSTOM_FIELD_13_VALUE = 19013; @@ -5497,7 +5656,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Backfill order with custom field ID equal to the
-     * ID in index 14 of `ReportDefinition.order_custom_field_ids`.
+     * ID in index 14 of `ReportDefinition.order_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 14 is of
+     * type STRING or DROPDOWN.
      * 
* * BACKFILL_ORDER_CUSTOM_FIELD_14_VALUE = 19014; @@ -5673,7 +5834,10 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Backfill creative with custom field ID equal to
-     * the ID in index 0 of `ReportDefinition.creative_custom_field_ids`.
+     * the ID
+     * in index 0 of `ReportDefinition.creative_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 0 is of
+     * type STRING or DROPDOWN.
      * 
* * BACKFILL_CREATIVE_CUSTOM_FIELD_0_VALUE = 21000; @@ -5684,7 +5848,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Backfill creative with custom field ID equal to
-     * the ID in index 1 of `ReportDefinition.creative_custom_field_ids`.
+     * the ID in index 1 of `ReportDefinition.creative_custom_field_ids`. Treats
+     * the value as a string. Can only be used if the custom field at index 1 is
+     * of type STRING or DROPDOWN.
      * 
* * BACKFILL_CREATIVE_CUSTOM_FIELD_1_VALUE = 21001; @@ -5695,7 +5861,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Backfill creative with custom field ID equal to
-     * the ID in index 2 of `ReportDefinition.creative_custom_field_ids`.
+     * the ID in index 2 of `ReportDefinition.creative_custom_field_ids`. Treats
+     * the value as a string. Can only be used if the custom field at index 2 is
+     * of type STRING or DROPDOWN.
      * 
* * BACKFILL_CREATIVE_CUSTOM_FIELD_2_VALUE = 21002; @@ -5706,7 +5874,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Backfill creative with custom field ID equal to
-     * the ID in index 3 of `ReportDefinition.creative_custom_field_ids`.
+     * the ID in index 3 of `ReportDefinition.creative_custom_field_ids`. Treats
+     * the value as a string. Can only be used if the custom field at index 3 is
+     * of type STRING or DROPDOWN.
      * 
* * BACKFILL_CREATIVE_CUSTOM_FIELD_3_VALUE = 21003; @@ -5717,7 +5887,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Backfill creative with custom field ID equal to
-     * the ID in index 4 of `ReportDefinition.creative_custom_field_ids`.
+     * the ID in index 4 of `ReportDefinition.creative_custom_field_ids`. Treats
+     * the value as a string. Can only be used if the custom field at index 4 is
+     * of type STRING or DROPDOWN.
      * 
* * BACKFILL_CREATIVE_CUSTOM_FIELD_4_VALUE = 21004; @@ -5728,7 +5900,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Backfill creative with custom field ID equal to
-     * the ID in index 5 of `ReportDefinition.creative_custom_field_ids`.
+     * the ID in index 5 of `ReportDefinition.creative_custom_field_ids`. Treats
+     * the value as a string. Can only be used if the custom field at index 5 is
+     * of type STRING or DROPDOWN.
      * 
* * BACKFILL_CREATIVE_CUSTOM_FIELD_5_VALUE = 21005; @@ -5739,7 +5913,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Backfill creative with custom field ID equal to
-     * the ID in index 6 of `ReportDefinition.creative_custom_field_ids`.
+     * the ID in index 6 of `ReportDefinition.creative_custom_field_ids`. Treats
+     * the value as a string. Can only be used if the custom field at index 6 is
+     * of type STRING or DROPDOWN.
      * 
* * BACKFILL_CREATIVE_CUSTOM_FIELD_6_VALUE = 21006; @@ -5750,7 +5926,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Backfill creative with custom field ID equal to
-     * the ID in index 7 of `ReportDefinition.creative_custom_field_ids`.
+     * the ID in index 7 of `ReportDefinition.creative_custom_field_ids`. Treats
+     * the value as a string. Can only be used if the custom field at index 7 is
+     * of type STRING or DROPDOWN.
      * 
* * BACKFILL_CREATIVE_CUSTOM_FIELD_7_VALUE = 21007; @@ -5761,7 +5939,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Backfill creative with custom field ID equal to
-     * the ID in index 8 of `ReportDefinition.creative_custom_field_ids`.
+     * the ID in index 8 of `ReportDefinition.creative_custom_field_ids`. Treats
+     * the value as a string. Can only be used if the custom field at index 8 is
+     * of type STRING or DROPDOWN.
      * 
* * BACKFILL_CREATIVE_CUSTOM_FIELD_8_VALUE = 21008; @@ -5772,7 +5952,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Backfill creative with custom field ID equal to
-     * the ID in index 9 of `ReportDefinition.creative_custom_field_ids`.
+     * the ID in index 9 of `ReportDefinition.creative_custom_field_ids`. Treats
+     * the value as a string. Can only be used if the custom field at index 9 is
+     * of type STRING or DROPDOWN.
      * 
* * BACKFILL_CREATIVE_CUSTOM_FIELD_9_VALUE = 21009; @@ -5784,6 +5966,8 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { *
      * Custom field value for Backfill creative with custom field ID equal to
      * the ID in index 10 of `ReportDefinition.creative_custom_field_ids`.
+     * Treats the value as a string. Can only be used if the custom field at
+     * index 10 is of type STRING or DROPDOWN.
      * 
* * BACKFILL_CREATIVE_CUSTOM_FIELD_10_VALUE = 21010; @@ -5795,6 +5979,8 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { *
      * Custom field value for Backfill creative with custom field ID equal to
      * the ID in index 11 of `ReportDefinition.creative_custom_field_ids`.
+     * Treats the value as a string. Can only be used if the custom field at
+     * index 11 is of type STRING or DROPDOWN.
      * 
* * BACKFILL_CREATIVE_CUSTOM_FIELD_11_VALUE = 21011; @@ -5806,6 +5992,8 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { *
      * Custom field value for Backfill creative with custom field ID equal to
      * the ID in index 12 of `ReportDefinition.creative_custom_field_ids`.
+     * Treats the value as a string. Can only be used if the custom field at
+     * index 12 is of type STRING or DROPDOWN.
      * 
* * BACKFILL_CREATIVE_CUSTOM_FIELD_12_VALUE = 21012; @@ -5817,6 +6005,8 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { *
      * Custom field value for Backfill creative with custom field ID equal to
      * the ID in index 13 of `ReportDefinition.creative_custom_field_ids`.
+     * Treats the value as a string. Can only be used if the custom field at
+     * index 13 is of type STRING or DROPDOWN.
      * 
* * BACKFILL_CREATIVE_CUSTOM_FIELD_13_VALUE = 21013; @@ -5828,6 +6018,8 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { *
      * Custom field value for Backfill creative with custom field ID equal to
      * the ID in index 14 of `ReportDefinition.creative_custom_field_ids`.
+     * Treats the value as a string. Can only be used if the custom field at
+     * index 14 is of type STRING or DROPDOWN.
      * 
* * BACKFILL_CREATIVE_CUSTOM_FIELD_14_VALUE = 21014; @@ -9803,6 +9995,17 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { */ public static final int REQUEST_TYPE_NAME_VALUE = 147; + /** + * + * + *
+     * Indicates if a request was eligible for server-side unwrapping.
+     * 
+ * + * SERVER_SIDE_UNWRAPPING_ELIGIBLE = 597; + */ + public static final int SERVER_SIDE_UNWRAPPING_ELIGIBLE_VALUE = 597; + /** * * @@ -10157,7 +10360,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Line Item with custom field ID equal to the ID
-     * in index 0 of `ReportDefinition.line_item_custom_field_ids`.
+     * in index 0 of `ReportDefinition.line_item_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 0 is of
+     * type STRING or DROPDOWN.
      * 
* * LINE_ITEM_CUSTOM_FIELD_0_VALUE = 11000; @@ -10169,7 +10374,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Line Item with custom field ID equal to the ID
-     * in index 1 of `ReportDefinition.line_item_custom_field_ids`.
+     * in index 1 of `ReportDefinition.line_item_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 1 is of
+     * type STRING or DROPDOWN.
      * 
* * LINE_ITEM_CUSTOM_FIELD_1_VALUE = 11001; @@ -10181,7 +10388,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Line Item with custom field ID equal to the ID
-     * in index 2 of `ReportDefinition.line_item_custom_field_ids`.
+     * in index 2 of `ReportDefinition.line_item_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 2 is of
+     * type STRING or DROPDOWN.
      * 
* * LINE_ITEM_CUSTOM_FIELD_2_VALUE = 11002; @@ -10193,7 +10402,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Line Item with custom field ID equal to the ID
-     * in index 3 of `ReportDefinition.line_item_custom_field_ids`.
+     * in index 3 of `ReportDefinition.line_item_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 3 is of
+     * type STRING or DROPDOWN.
      * 
* * LINE_ITEM_CUSTOM_FIELD_3_VALUE = 11003; @@ -10205,7 +10416,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Line Item with custom field ID equal to the ID
-     * in index 4 of `ReportDefinition.line_item_custom_field_ids`.
+     * in index 4 of `ReportDefinition.line_item_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 4 is of
+     * type STRING or DROPDOWN.
      * 
* * LINE_ITEM_CUSTOM_FIELD_4_VALUE = 11004; @@ -10217,7 +10430,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Line Item with custom field ID equal to the ID
-     * in index 5 of `ReportDefinition.line_item_custom_field_ids`.
+     * in index 5 of `ReportDefinition.line_item_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 5 is of
+     * type STRING or DROPDOWN.
      * 
* * LINE_ITEM_CUSTOM_FIELD_5_VALUE = 11005; @@ -10229,7 +10444,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Line Item with custom field ID equal to the ID
-     * in index 6 of `ReportDefinition.line_item_custom_field_ids`.
+     * in index 6 of `ReportDefinition.line_item_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 6 is of
+     * type STRING or DROPDOWN.
      * 
* * LINE_ITEM_CUSTOM_FIELD_6_VALUE = 11006; @@ -10241,7 +10458,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Line Item with custom field ID equal to the ID
-     * in index 7 of `ReportDefinition.line_item_custom_field_ids`.
+     * in index 7 of `ReportDefinition.line_item_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 7 is of
+     * type STRING or DROPDOWN.
      * 
* * LINE_ITEM_CUSTOM_FIELD_7_VALUE = 11007; @@ -10253,7 +10472,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Line Item with custom field ID equal to the ID
-     * in index 8 of `ReportDefinition.line_item_custom_field_ids`.
+     * in index 8 of `ReportDefinition.line_item_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 8 is of
+     * type STRING or DROPDOWN.
      * 
* * LINE_ITEM_CUSTOM_FIELD_8_VALUE = 11008; @@ -10265,7 +10486,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Line Item with custom field ID equal to the ID
-     * in index 9 of `ReportDefinition.line_item_custom_field_ids`.
+     * in index 9 of `ReportDefinition.line_item_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 9 is of
+     * type STRING or DROPDOWN.
      * 
* * LINE_ITEM_CUSTOM_FIELD_9_VALUE = 11009; @@ -10277,7 +10500,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Line Item with custom field ID equal to the ID
-     * in index 10 of `ReportDefinition.line_item_custom_field_ids`.
+     * in index 10 of `ReportDefinition.line_item_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 10 is of
+     * type STRING or DROPDOWN.
      * 
* * LINE_ITEM_CUSTOM_FIELD_10_VALUE = 11010; @@ -10289,7 +10514,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Line Item with custom field ID equal to the ID
-     * in index 11 of `ReportDefinition.line_item_custom_field_ids`.
+     * in index 11 of `ReportDefinition.line_item_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 11 is of
+     * type STRING or DROPDOWN.
      * 
* * LINE_ITEM_CUSTOM_FIELD_11_VALUE = 11011; @@ -10301,7 +10528,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Line Item with custom field ID equal to the ID
-     * in index 12 of `ReportDefinition.line_item_custom_field_ids`.
+     * in index 12 of `ReportDefinition.line_item_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 12 is of
+     * type STRING or DROPDOWN.
      * 
* * LINE_ITEM_CUSTOM_FIELD_12_VALUE = 11012; @@ -10313,7 +10542,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Line Item with custom field ID equal to the ID
-     * in index 13 of `ReportDefinition.line_item_custom_field_ids`.
+     * in index 13 of `ReportDefinition.line_item_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 13 is of
+     * type STRING or DROPDOWN.
      * 
* * LINE_ITEM_CUSTOM_FIELD_13_VALUE = 11013; @@ -10325,7 +10556,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Line Item with custom field ID equal to the ID
-     * in index 14 of `ReportDefinition.line_item_custom_field_ids`.
+     * in index 14 of `ReportDefinition.line_item_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 14 is of
+     * type STRING or DROPDOWN.
      * 
* * LINE_ITEM_CUSTOM_FIELD_14_VALUE = 11014; @@ -10517,7 +10750,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Order with custom field ID equal to the ID
-     * in index 0 of `ReportDefinition.order_custom_field_ids`.
+     * in index 0 of `ReportDefinition.order_custom_field_ids`. Treats the value
+     * as a string. Can only be used if the custom field at index 0 is of type
+     * STRING.
      * 
* * ORDER_CUSTOM_FIELD_0_VALUE = 13000; @@ -10529,7 +10764,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Order with custom field ID equal to the ID
-     * in index 1 of `ReportDefinition.order_custom_field_ids`.
+     * in index 1 of `ReportDefinition.order_custom_field_ids`. Treats the value
+     * as a string. Can only be used if the custom field at index 1 is of type
+     * STRING.
      * 
* * ORDER_CUSTOM_FIELD_1_VALUE = 13001; @@ -10541,7 +10778,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Order with custom field ID equal to the ID
-     * in index 2 of `ReportDefinition.order_custom_field_ids`.
+     * in index 2 of `ReportDefinition.order_custom_field_ids`. Treats the value
+     * as a string. Can only be used if the custom field at index 2 is of type
+     * STRING.
      * 
* * ORDER_CUSTOM_FIELD_2_VALUE = 13002; @@ -10553,7 +10792,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Order with custom field ID equal to the ID
-     * in index 3 of `ReportDefinition.order_custom_field_ids`.
+     * in index 3 of `ReportDefinition.order_custom_field_ids`. Treats the value
+     * as a string. Can only be used if the custom field at index 3 is of type
+     * STRING.
      * 
* * ORDER_CUSTOM_FIELD_3_VALUE = 13003; @@ -10565,7 +10806,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Order with custom field ID equal to the ID
-     * in index 4 of `ReportDefinition.order_custom_field_ids`.
+     * in index 4 of `ReportDefinition.order_custom_field_ids`. Treats the value
+     * as a string. Can only be used if the custom field at index 4 is of type
+     * STRING.
      * 
* * ORDER_CUSTOM_FIELD_4_VALUE = 13004; @@ -10577,7 +10820,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Order with custom field ID equal to the ID
-     * in index 5 of `ReportDefinition.order_custom_field_ids`.
+     * in index 5 of `ReportDefinition.order_custom_field_ids`. Treats the value
+     * as a string. Can only be used if the custom field at index 5 is of type
+     * STRING.
      * 
* * ORDER_CUSTOM_FIELD_5_VALUE = 13005; @@ -10589,7 +10834,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Order with custom field ID equal to the ID
-     * in index 6 of `ReportDefinition.order_custom_field_ids`.
+     * in index 6 of `ReportDefinition.order_custom_field_ids`. Treats the value
+     * as a string. Can only be used if the custom field at index 6 is of type
+     * STRING.
      * 
* * ORDER_CUSTOM_FIELD_6_VALUE = 13006; @@ -10601,7 +10848,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Order with custom field ID equal to the ID
-     * in index 7 of `ReportDefinition.order_custom_field_ids`.
+     * in index 7 of `ReportDefinition.order_custom_field_ids`. Treats the value
+     * as a string. Can only be used if the custom field at index 7 is of type
+     * STRING.
      * 
* * ORDER_CUSTOM_FIELD_7_VALUE = 13007; @@ -10613,7 +10862,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Order with custom field ID equal to the ID
-     * in index 8 of `ReportDefinition.order_custom_field_ids`.
+     * in index 8 of `ReportDefinition.order_custom_field_ids`. Treats the value
+     * as a string. Can only be used if the custom field at index 8 is of type
+     * STRING.
      * 
* * ORDER_CUSTOM_FIELD_8_VALUE = 13008; @@ -10625,7 +10876,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Order with custom field ID equal to the ID
-     * in index 9 of `ReportDefinition.order_custom_field_ids`.
+     * in index 9 of `ReportDefinition.order_custom_field_ids`. Treats the value
+     * as a string. Can only be used if the custom field at index 9 is of type
+     * STRING.
      * 
* * ORDER_CUSTOM_FIELD_9_VALUE = 13009; @@ -10637,7 +10890,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Order with custom field ID equal to the ID
-     * in index 10 of `ReportDefinition.order_custom_field_ids`.
+     * in index 10 of `ReportDefinition.order_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 10 is of
+     * type STRING.
      * 
* * ORDER_CUSTOM_FIELD_10_VALUE = 13010; @@ -10649,7 +10904,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Order with custom field ID equal to the ID
-     * in index 11 of `ReportDefinition.order_custom_field_ids`.
+     * in index 11 of `ReportDefinition.order_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 11 is of
+     * type STRING.
      * 
* * ORDER_CUSTOM_FIELD_11_VALUE = 13011; @@ -10661,7 +10918,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Order with custom field ID equal to the ID
-     * in index 12 of `ReportDefinition.order_custom_field_ids`.
+     * in index 12 of `ReportDefinition.order_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 12 is of
+     * type STRING.
      * 
* * ORDER_CUSTOM_FIELD_12_VALUE = 13012; @@ -10673,7 +10932,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Order with custom field ID equal to the ID
-     * in index 13 of `ReportDefinition.order_custom_field_ids`.
+     * in index 13 of `ReportDefinition.order_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 13 is of
+     * type STRING.
      * 
* * ORDER_CUSTOM_FIELD_13_VALUE = 13013; @@ -10685,7 +10946,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Order with custom field ID equal to the ID
-     * in index 14 of `ReportDefinition.order_custom_field_ids`.
+     * in index 14 of `ReportDefinition.order_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 14 is of
+     * type STRING.
      * 
* * ORDER_CUSTOM_FIELD_14_VALUE = 13014; @@ -10877,7 +11140,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Creative with custom field ID equal to the ID
-     * in index 0 of `ReportDefinition.creative_custom_field_ids`.
+     * in index 0 of `ReportDefinition.creative_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 0 is of
+     * type STRING.
      * 
* * CREATIVE_CUSTOM_FIELD_0_VALUE = 15000; @@ -10889,7 +11154,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Creative with custom field ID equal to the ID
-     * in index 1 of `ReportDefinition.creative_custom_field_ids`.
+     * in index 1 of `ReportDefinition.creative_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 1 is of
+     * type STRING.
      * 
* * CREATIVE_CUSTOM_FIELD_1_VALUE = 15001; @@ -10901,7 +11168,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Creative with custom field ID equal to the ID
-     * in index 2 of `ReportDefinition.creative_custom_field_ids`.
+     * in index 2 of `ReportDefinition.creative_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 2 is of
+     * type STRING.
      * 
* * CREATIVE_CUSTOM_FIELD_2_VALUE = 15002; @@ -10913,7 +11182,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Creative with custom field ID equal to the ID
-     * in index 3 of `ReportDefinition.creative_custom_field_ids`.
+     * in index 3 of `ReportDefinition.creative_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 3 is of
+     * type STRING.
      * 
* * CREATIVE_CUSTOM_FIELD_3_VALUE = 15003; @@ -10925,7 +11196,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Creative with custom field ID equal to the ID
-     * in index 4 of `ReportDefinition.creative_custom_field_ids`.
+     * in index 4 of `ReportDefinition.creative_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 4 is of
+     * type STRING.
      * 
* * CREATIVE_CUSTOM_FIELD_4_VALUE = 15004; @@ -10937,7 +11210,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Creative with custom field ID equal to the ID
-     * in index 5 of `ReportDefinition.creative_custom_field_ids`.
+     * in index 5 of `ReportDefinition.creative_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 5 is of
+     * type STRING.
      * 
* * CREATIVE_CUSTOM_FIELD_5_VALUE = 15005; @@ -10949,7 +11224,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Creative with custom field ID equal to the ID
-     * in index 6 of `ReportDefinition.creative_custom_field_ids`.
+     * in index 6 of `ReportDefinition.creative_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 6 is of
+     * type STRING.
      * 
* * CREATIVE_CUSTOM_FIELD_6_VALUE = 15006; @@ -10961,7 +11238,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Creative with custom field ID equal to the ID
-     * in index 7 of `ReportDefinition.creative_custom_field_ids`.
+     * in index 7 of `ReportDefinition.creative_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 7 is of
+     * type STRING.
      * 
* * CREATIVE_CUSTOM_FIELD_7_VALUE = 15007; @@ -10973,7 +11252,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Creative with custom field ID equal to the ID
-     * in index 8 of `ReportDefinition.creative_custom_field_ids`.
+     * in index 8 of `ReportDefinition.creative_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 8 is of
+     * type STRING.
      * 
* * CREATIVE_CUSTOM_FIELD_8_VALUE = 15008; @@ -10985,7 +11266,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Creative with custom field ID equal to the ID
-     * in index 9 of `ReportDefinition.creative_custom_field_ids`.
+     * in index 9 of `ReportDefinition.creative_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 9 is of
+     * type STRING.
      * 
* * CREATIVE_CUSTOM_FIELD_9_VALUE = 15009; @@ -10997,7 +11280,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Creative with custom field ID equal to the ID
-     * in index 10 of `ReportDefinition.creative_custom_field_ids`.
+     * in index 10 of `ReportDefinition.creative_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 10 is of
+     * type STRING.
      * 
* * CREATIVE_CUSTOM_FIELD_10_VALUE = 15010; @@ -11009,7 +11294,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Creative with custom field ID equal to the ID
-     * in index 11 of `ReportDefinition.creative_custom_field_ids`.
+     * in index 11 of `ReportDefinition.creative_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 11 is of
+     * type STRING.
      * 
* * CREATIVE_CUSTOM_FIELD_11_VALUE = 15011; @@ -11021,7 +11308,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Creative with custom field ID equal to the ID
-     * in index 12 of `ReportDefinition.creative_custom_field_ids`.
+     * in index 12 of `ReportDefinition.creative_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 12 is of
+     * type STRING.
      * 
* * CREATIVE_CUSTOM_FIELD_12_VALUE = 15012; @@ -11033,7 +11322,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Creative with custom field ID equal to the ID
-     * in index 13 of `ReportDefinition.creative_custom_field_ids`.
+     * in index 13 of `ReportDefinition.creative_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 13 is of
+     * type STRING.
      * 
* * CREATIVE_CUSTOM_FIELD_13_VALUE = 15013; @@ -11045,7 +11336,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Creative with custom field ID equal to the ID
-     * in index 14 of `ReportDefinition.creative_custom_field_ids`.
+     * in index 14 of `ReportDefinition.creative_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 14 is of
+     * type STRING.
      * 
* * CREATIVE_CUSTOM_FIELD_14_VALUE = 15014; @@ -11238,6 +11531,8 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { *
      * Custom field value for Backfill line item with custom field ID equal to
      * the ID in index 0 of `ReportDefinition.line_item_custom_field_ids`.
+     * Treats the value as a string. Can only be used if the custom field at
+     * index 0 is of type STRING or DROPDOWN.
      * 
* * BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_VALUE = 17000; @@ -11250,6 +11545,8 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { *
      * Custom field value for Backfill line item with custom field ID equal to
      * the ID in index 1 of `ReportDefinition.line_item_custom_field_ids`.
+     * Treats the value as a string. Can only be used if the custom field at
+     * index 1 is of type STRING or DROPDOWN.
      * 
* * BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_VALUE = 17001; @@ -11262,6 +11559,8 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { *
      * Custom field value for Backfill line item with custom field ID equal to
      * the ID in index 2 of `ReportDefinition.line_item_custom_field_ids`.
+     * Treats the value as a string. Can only be used if the custom field at
+     * index 2 is of type STRING or DROPDOWN.
      * 
* * BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_VALUE = 17002; @@ -11274,6 +11573,8 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { *
      * Custom field value for Backfill line item with custom field ID equal to
      * the ID in index 3 of `ReportDefinition.line_item_custom_field_ids`.
+     * Treats the value as a string. Can only be used if the custom field at
+     * index 3 is of type STRING or DROPDOWN.
      * 
* * BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_VALUE = 17003; @@ -11286,6 +11587,8 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { *
      * Custom field value for Backfill line item with custom field ID equal to
      * the ID in index 4 of `ReportDefinition.line_item_custom_field_ids`.
+     * Treats the value as a string. Can only be used if the custom field at
+     * index 4 is of type STRING or DROPDOWN.
      * 
* * BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_VALUE = 17004; @@ -11298,6 +11601,8 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { *
      * Custom field value for Backfill line item with custom field ID equal to
      * the ID in index 5 of `ReportDefinition.line_item_custom_field_ids`.
+     * Treats the value as a string. Can only be used if the custom field at
+     * index 5 is of type STRING or DROPDOWN.
      * 
* * BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_VALUE = 17005; @@ -11310,6 +11615,8 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { *
      * Custom field value for Backfill line item with custom field ID equal to
      * the ID in index 6 of `ReportDefinition.line_item_custom_field_ids`.
+     * Treats the value as a string. Can only be used if the custom field at
+     * index 6 is of type STRING or DROPDOWN.
      * 
* * BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_VALUE = 17006; @@ -11322,6 +11629,8 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { *
      * Custom field value for Backfill line item with custom field ID equal to
      * the ID in index 7 of `ReportDefinition.line_item_custom_field_ids`.
+     * Treats the value as a string. Can only be used if the custom field at
+     * index 7 is of type STRING or DROPDOWN.
      * 
* * BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_VALUE = 17007; @@ -11334,6 +11643,8 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { *
      * Custom field value for Backfill line item with custom field ID equal to
      * the ID in index 8 of `ReportDefinition.line_item_custom_field_ids`.
+     * Treats the value as a string. Can only be used if the custom field at
+     * index 8 is of type STRING or DROPDOWN.
      * 
* * BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_VALUE = 17008; @@ -11346,6 +11657,8 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { *
      * Custom field value for Backfill line item with custom field ID equal to
      * the ID in index 9 of `ReportDefinition.line_item_custom_field_ids`.
+     * Treats the value as a string. Can only be used if the custom field at
+     * index 9 is of type STRING or DROPDOWN.
      * 
* * BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_VALUE = 17009; @@ -11358,6 +11671,8 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { *
      * Custom field value for Backfill line item with custom field ID equal to
      * the ID in index 10 of `ReportDefinition.line_item_custom_field_ids`.
+     * Treats the value as a string. Can only be used if the custom field at
+     * index 10 is of type STRING or DROPDOWN.
      * 
* * BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_VALUE = 17010; @@ -11370,6 +11685,8 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { *
      * Custom field value for Backfill line item with custom field ID equal to
      * the ID in index 11 of `ReportDefinition.line_item_custom_field_ids`.
+     * Treats the value as a string. Can only be used if the custom field at
+     * index 11 is of type STRING or DROPDOWN.
      * 
* * BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_VALUE = 17011; @@ -11382,6 +11699,8 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { *
      * Custom field value for Backfill line item with custom field ID equal to
      * the ID in index 12 of `ReportDefinition.line_item_custom_field_ids`.
+     * Treats the value as a string. Can only be used if the custom field at
+     * index 12 is of type STRING or DROPDOWN.
      * 
* * BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_VALUE = 17012; @@ -11394,6 +11713,8 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { *
      * Custom field value for Backfill line item with custom field ID equal to
      * the ID in index 13 of `ReportDefinition.line_item_custom_field_ids`.
+     * Treats the value as a string. Can only be used if the custom field at
+     * index 13 is of type STRING or DROPDOWN.
      * 
* * BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_VALUE = 17013; @@ -11406,6 +11727,8 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { *
      * Custom field value for Backfill line item with custom field ID equal to
      * the ID in index 14 of `ReportDefinition.line_item_custom_field_ids`.
+     * Treats the value as a string. Can only be used if the custom field at
+     * index 14 is of type STRING or DROPDOWN.
      * 
* * BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_VALUE = 17014; @@ -11597,7 +11920,10 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Backfill order with custom field ID equal to the
-     * ID in index 0 of `ReportDefinition.order_custom_field_ids`.
+     * ID
+     * in index 0 of `ReportDefinition.order_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 0 is of
+     * type STRING or DROPDOWN.
      * 
* * BACKFILL_ORDER_CUSTOM_FIELD_0_VALUE = 19000; @@ -11609,7 +11935,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Backfill order with custom field ID equal to the
-     * ID in index 1 of `ReportDefinition.order_custom_field_ids`.
+     * ID in index 1 of `ReportDefinition.order_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 1 is of
+     * type STRING or DROPDOWN.
      * 
* * BACKFILL_ORDER_CUSTOM_FIELD_1_VALUE = 19001; @@ -11621,7 +11949,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Backfill order with custom field ID equal to the
-     * ID in index 2 of `ReportDefinition.order_custom_field_ids`.
+     * ID in index 2 of `ReportDefinition.order_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 2 is of
+     * type STRING or DROPDOWN.
      * 
* * BACKFILL_ORDER_CUSTOM_FIELD_2_VALUE = 19002; @@ -11633,7 +11963,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Backfill order with custom field ID equal to the
-     * ID in index 3 of `ReportDefinition.order_custom_field_ids`.
+     * ID in index 3 of `ReportDefinition.order_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 3 is of
+     * type STRING or DROPDOWN.
      * 
* * BACKFILL_ORDER_CUSTOM_FIELD_3_VALUE = 19003; @@ -11645,7 +11977,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Backfill order with custom field ID equal to the
-     * ID in index 4 of `ReportDefinition.order_custom_field_ids`.
+     * ID in index 4 of `ReportDefinition.order_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 4 is of
+     * type STRING or DROPDOWN.
      * 
* * BACKFILL_ORDER_CUSTOM_FIELD_4_VALUE = 19004; @@ -11657,7 +11991,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Backfill order with custom field ID equal to the
-     * ID in index 5 of `ReportDefinition.order_custom_field_ids`.
+     * ID in index 5 of `ReportDefinition.order_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 5 is of
+     * type STRING or DROPDOWN.
      * 
* * BACKFILL_ORDER_CUSTOM_FIELD_5_VALUE = 19005; @@ -11669,7 +12005,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Backfill order with custom field ID equal to the
-     * ID in index 6 of `ReportDefinition.order_custom_field_ids`.
+     * ID in index 6 of `ReportDefinition.order_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 6 is of
+     * type STRING or DROPDOWN.
      * 
* * BACKFILL_ORDER_CUSTOM_FIELD_6_VALUE = 19006; @@ -11681,7 +12019,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Backfill order with custom field ID equal to the
-     * ID in index 7 of `ReportDefinition.order_custom_field_ids`.
+     * ID in index 7 of `ReportDefinition.order_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 7 is of
+     * type STRING or DROPDOWN.
      * 
* * BACKFILL_ORDER_CUSTOM_FIELD_7_VALUE = 19007; @@ -11693,7 +12033,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Backfill order with custom field ID equal to the
-     * ID in index 8 of `ReportDefinition.order_custom_field_ids`.
+     * ID in index 8 of `ReportDefinition.order_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 8 is of
+     * type STRING or DROPDOWN.
      * 
* * BACKFILL_ORDER_CUSTOM_FIELD_8_VALUE = 19008; @@ -11705,7 +12047,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Backfill order with custom field ID equal to the
-     * ID in index 9 of `ReportDefinition.order_custom_field_ids`.
+     * ID in index 9 of `ReportDefinition.order_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 9 is of
+     * type STRING or DROPDOWN.
      * 
* * BACKFILL_ORDER_CUSTOM_FIELD_9_VALUE = 19009; @@ -11717,7 +12061,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Backfill order with custom field ID equal to the
-     * ID in index 10 of `ReportDefinition.order_custom_field_ids`.
+     * ID in index 10 of `ReportDefinition.order_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 10 is of
+     * type STRING or DROPDOWN.
      * 
* * BACKFILL_ORDER_CUSTOM_FIELD_10_VALUE = 19010; @@ -11729,7 +12075,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Backfill order with custom field ID equal to the
-     * ID in index 11 of `ReportDefinition.order_custom_field_ids`.
+     * ID in index 11 of `ReportDefinition.order_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 11 is of
+     * type STRING or DROPDOWN.
      * 
* * BACKFILL_ORDER_CUSTOM_FIELD_11_VALUE = 19011; @@ -11741,7 +12089,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Backfill order with custom field ID equal to the
-     * ID in index 12 of `ReportDefinition.order_custom_field_ids`.
+     * ID in index 12 of `ReportDefinition.order_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 12 is of
+     * type STRING or DROPDOWN.
      * 
* * BACKFILL_ORDER_CUSTOM_FIELD_12_VALUE = 19012; @@ -11753,7 +12103,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Backfill order with custom field ID equal to the
-     * ID in index 13 of `ReportDefinition.order_custom_field_ids`.
+     * ID in index 13 of `ReportDefinition.order_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 13 is of
+     * type STRING or DROPDOWN.
      * 
* * BACKFILL_ORDER_CUSTOM_FIELD_13_VALUE = 19013; @@ -11765,7 +12117,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Backfill order with custom field ID equal to the
-     * ID in index 14 of `ReportDefinition.order_custom_field_ids`.
+     * ID in index 14 of `ReportDefinition.order_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 14 is of
+     * type STRING or DROPDOWN.
      * 
* * BACKFILL_ORDER_CUSTOM_FIELD_14_VALUE = 19014; @@ -11957,7 +12311,10 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Backfill creative with custom field ID equal to
-     * the ID in index 0 of `ReportDefinition.creative_custom_field_ids`.
+     * the ID
+     * in index 0 of `ReportDefinition.creative_custom_field_ids`. Treats the
+     * value as a string. Can only be used if the custom field at index 0 is of
+     * type STRING or DROPDOWN.
      * 
* * BACKFILL_CREATIVE_CUSTOM_FIELD_0_VALUE = 21000; @@ -11969,7 +12326,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Backfill creative with custom field ID equal to
-     * the ID in index 1 of `ReportDefinition.creative_custom_field_ids`.
+     * the ID in index 1 of `ReportDefinition.creative_custom_field_ids`. Treats
+     * the value as a string. Can only be used if the custom field at index 1 is
+     * of type STRING or DROPDOWN.
      * 
* * BACKFILL_CREATIVE_CUSTOM_FIELD_1_VALUE = 21001; @@ -11981,7 +12340,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Backfill creative with custom field ID equal to
-     * the ID in index 2 of `ReportDefinition.creative_custom_field_ids`.
+     * the ID in index 2 of `ReportDefinition.creative_custom_field_ids`. Treats
+     * the value as a string. Can only be used if the custom field at index 2 is
+     * of type STRING or DROPDOWN.
      * 
* * BACKFILL_CREATIVE_CUSTOM_FIELD_2_VALUE = 21002; @@ -11993,7 +12354,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Backfill creative with custom field ID equal to
-     * the ID in index 3 of `ReportDefinition.creative_custom_field_ids`.
+     * the ID in index 3 of `ReportDefinition.creative_custom_field_ids`. Treats
+     * the value as a string. Can only be used if the custom field at index 3 is
+     * of type STRING or DROPDOWN.
      * 
* * BACKFILL_CREATIVE_CUSTOM_FIELD_3_VALUE = 21003; @@ -12005,7 +12368,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Backfill creative with custom field ID equal to
-     * the ID in index 4 of `ReportDefinition.creative_custom_field_ids`.
+     * the ID in index 4 of `ReportDefinition.creative_custom_field_ids`. Treats
+     * the value as a string. Can only be used if the custom field at index 4 is
+     * of type STRING or DROPDOWN.
      * 
* * BACKFILL_CREATIVE_CUSTOM_FIELD_4_VALUE = 21004; @@ -12017,7 +12382,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Backfill creative with custom field ID equal to
-     * the ID in index 5 of `ReportDefinition.creative_custom_field_ids`.
+     * the ID in index 5 of `ReportDefinition.creative_custom_field_ids`. Treats
+     * the value as a string. Can only be used if the custom field at index 5 is
+     * of type STRING or DROPDOWN.
      * 
* * BACKFILL_CREATIVE_CUSTOM_FIELD_5_VALUE = 21005; @@ -12029,7 +12396,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Backfill creative with custom field ID equal to
-     * the ID in index 6 of `ReportDefinition.creative_custom_field_ids`.
+     * the ID in index 6 of `ReportDefinition.creative_custom_field_ids`. Treats
+     * the value as a string. Can only be used if the custom field at index 6 is
+     * of type STRING or DROPDOWN.
      * 
* * BACKFILL_CREATIVE_CUSTOM_FIELD_6_VALUE = 21006; @@ -12041,7 +12410,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Backfill creative with custom field ID equal to
-     * the ID in index 7 of `ReportDefinition.creative_custom_field_ids`.
+     * the ID in index 7 of `ReportDefinition.creative_custom_field_ids`. Treats
+     * the value as a string. Can only be used if the custom field at index 7 is
+     * of type STRING or DROPDOWN.
      * 
* * BACKFILL_CREATIVE_CUSTOM_FIELD_7_VALUE = 21007; @@ -12053,7 +12424,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Backfill creative with custom field ID equal to
-     * the ID in index 8 of `ReportDefinition.creative_custom_field_ids`.
+     * the ID in index 8 of `ReportDefinition.creative_custom_field_ids`. Treats
+     * the value as a string. Can only be used if the custom field at index 8 is
+     * of type STRING or DROPDOWN.
      * 
* * BACKFILL_CREATIVE_CUSTOM_FIELD_8_VALUE = 21008; @@ -12065,7 +12438,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * *
      * Custom field value for Backfill creative with custom field ID equal to
-     * the ID in index 9 of `ReportDefinition.creative_custom_field_ids`.
+     * the ID in index 9 of `ReportDefinition.creative_custom_field_ids`. Treats
+     * the value as a string. Can only be used if the custom field at index 9 is
+     * of type STRING or DROPDOWN.
      * 
* * BACKFILL_CREATIVE_CUSTOM_FIELD_9_VALUE = 21009; @@ -12078,6 +12453,8 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { *
      * Custom field value for Backfill creative with custom field ID equal to
      * the ID in index 10 of `ReportDefinition.creative_custom_field_ids`.
+     * Treats the value as a string. Can only be used if the custom field at
+     * index 10 is of type STRING or DROPDOWN.
      * 
* * BACKFILL_CREATIVE_CUSTOM_FIELD_10_VALUE = 21010; @@ -12090,6 +12467,8 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { *
      * Custom field value for Backfill creative with custom field ID equal to
      * the ID in index 11 of `ReportDefinition.creative_custom_field_ids`.
+     * Treats the value as a string. Can only be used if the custom field at
+     * index 11 is of type STRING or DROPDOWN.
      * 
* * BACKFILL_CREATIVE_CUSTOM_FIELD_11_VALUE = 21011; @@ -12102,6 +12481,8 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { *
      * Custom field value for Backfill creative with custom field ID equal to
      * the ID in index 12 of `ReportDefinition.creative_custom_field_ids`.
+     * Treats the value as a string. Can only be used if the custom field at
+     * index 12 is of type STRING or DROPDOWN.
      * 
* * BACKFILL_CREATIVE_CUSTOM_FIELD_12_VALUE = 21012; @@ -12114,6 +12495,8 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { *
      * Custom field value for Backfill creative with custom field ID equal to
      * the ID in index 13 of `ReportDefinition.creative_custom_field_ids`.
+     * Treats the value as a string. Can only be used if the custom field at
+     * index 13 is of type STRING or DROPDOWN.
      * 
* * BACKFILL_CREATIVE_CUSTOM_FIELD_13_VALUE = 21013; @@ -12126,6 +12509,8 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { *
      * Custom field value for Backfill creative with custom field ID equal to
      * the ID in index 14 of `ReportDefinition.creative_custom_field_ids`.
+     * Treats the value as a string. Can only be used if the custom field at
+     * index 14 is of type STRING or DROPDOWN.
      * 
* * BACKFILL_CREATIVE_CUSTOM_FIELD_14_VALUE = 21014; @@ -13060,6 +13445,8 @@ public static Dimension forNumber(int value) { return REQUEST_TYPE; case 147: return REQUEST_TYPE_NAME; + case 597: + return SERVER_SIDE_UNWRAPPING_ELIGIBLE; case 387: return SITE; case 232: @@ -14078,6 +14465,17 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * AD_SERVER_AVERAGE_ECPM_WITHOUT_CPD = 10; */ AD_SERVER_AVERAGE_ECPM_WITHOUT_CPD(10), + /** + * + * + *
+     * Total raw impressions counted when creative begins to render or the
+     * first frame of a video is shown.
+     * 
+ * + * AD_SERVER_BEGIN_TO_RENDER_IMPRESSIONS = 262; + */ + AD_SERVER_BEGIN_TO_RENDER_IMPRESSIONS(262), /** * * @@ -14207,68 +14605,77 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * Number of winning bids received from Open Bidding buyers, even when the
-     * winning bid is placed at the end of a mediation for mobile apps chain.
+     * The number of tracked ads delivered by the ad server.
      * 
* - * AUCTIONS_WON = 80; + * AD_SERVER_TRACKED_ADS = 264; */ - AUCTIONS_WON(80), + AD_SERVER_TRACKED_ADS(264), /** * * *
-     * eCPM averaged across the Google Ad Manager server, AdSense,
-     * and Ad Exchange.
+     * Total raw impressions counted when creative begins to render or the
+     * first frame of a video is shown, before invalid traffic filtrations by
+     * Ad Server.
      * 
* - * AVERAGE_ECPM = 37; + * AD_SERVER_UNFILTERED_BEGIN_TO_RENDER_IMPRESSIONS = 261; */ - AVERAGE_ECPM(37), + AD_SERVER_UNFILTERED_BEGIN_TO_RENDER_IMPRESSIONS(261), /** * * *
-     * eCPM averaged across the Google Ad Manager server (excluding CPD),
-     * AdSense, and Ad Exchange.
+     * Total clicks delivered by the Ad Server before spam filtering.
      * 
* - * AVERAGE_ECPM_WITHOUT_CPD = 5; + * AD_SERVER_UNFILTERED_CLICKS = 259; */ - AVERAGE_ECPM_WITHOUT_CPD(5), + AD_SERVER_UNFILTERED_CLICKS(259), /** * * *
-     * Number of bids received from Open Bidding buyers, regardless of whether
-     * the returned bid competes in an auction.
+     * Total impressions delivered by the Ad Server before spam filtering.
      * 
* - * BIDS = 81; + * AD_SERVER_UNFILTERED_IMPRESSIONS = 260; */ - BIDS(81), + AD_SERVER_UNFILTERED_IMPRESSIONS(260), /** * * *
-     * Number of bids received from Open Bidding buyers that competed in
-     * the auction.
+     * The number of tracked ads delivered by the ad server before invalid
+     * traffic filtrations.
      * 
* - * BIDS_IN_AUCTION = 82; + * AD_SERVER_UNFILTERED_TRACKED_ADS = 263; */ - BIDS_IN_AUCTION(82), + AD_SERVER_UNFILTERED_TRACKED_ADS(263), /** * * *
-     * Number of times a yield partner is asked to return bid to fill
-     * a yield group request.
+     * eCPM averaged across the Google Ad Manager server, AdSense,
+     * and Ad Exchange.
      * 
* - * CALLOUTS = 83; + * AVERAGE_ECPM = 37; */ - CALLOUTS(83), + AVERAGE_ECPM(37), + /** + * + * + *
+     * eCPM averaged across the Google Ad Manager server (excluding CPD),
+     * AdSense, and Ad Exchange.
+     * 
+ * + * AVERAGE_ECPM_WITHOUT_CPD = 5; + */ + AVERAGE_ECPM_WITHOUT_CPD(5), /** * * @@ -14295,8 +14702,8 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * *
      * For standard ads, your ad clickthrough rate (CTR) is the number of ad
-     *  clicks divided by the number of individual ad impressions expressed as a
-     *  fraction. Ad CTR = Clicks / Ad impressions.
+     * clicks divided by the number of individual ad impressions expressed as a
+     * fraction. Ad CTR = Clicks / Ad impressions.
      * 
* * CTR = 3; @@ -14547,13 +14954,71 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * Number of times a yield group buyer successfully returned a bid in
-     * response to a yield group callout.
+     * The average latency in milliseconds across all server-side unwrapping
+     * callout requests. There is no special handling for error or timeout
+     * responses. This reflects the entire chain of a parent callout request,
+     * which may result in multiple child callouts. This metric is not sliced by
+     * child callout dimensions.
+     * 
+ * + * SERVER_SIDE_UNWRAPPING_AVERAGE_LATENCY_MS = 434; + */ + SERVER_SIDE_UNWRAPPING_AVERAGE_LATENCY_MS(434), + /** + * + * + *
+     * The total number of server-side unwrapping callout requests.
+     * 
+ * + * SERVER_SIDE_UNWRAPPING_CALLOUTS = 435; + */ + SERVER_SIDE_UNWRAPPING_CALLOUTS(435), + /** + * + * + *
+     * The total number of server-side unwrapping callouts that returned an
+     * empty response. Timeouts are not considered empty responses.
+     * 
+ * + * SERVER_SIDE_UNWRAPPING_EMPTY_RESPONSES = 436; + */ + SERVER_SIDE_UNWRAPPING_EMPTY_RESPONSES(436), + /** + * + * + *
+     * The total number of server-side unwrapping callouts that returned an
+     * error response. Timeouts and empty responses are not considered errors.
      * 
* - * SUCCESSFUL_RESPONSES = 84; + * SERVER_SIDE_UNWRAPPING_ERROR_RESPONSES = 437; */ - SUCCESSFUL_RESPONSES(84), + SERVER_SIDE_UNWRAPPING_ERROR_RESPONSES(437), + /** + * + * + *
+     * The total number of successfully unwrapped, non-empty server-side
+     * wrapping callouts. Successful unwrapping does not indicate that the
+     * resulting creative was served.
+     * 
+ * + * SERVER_SIDE_UNWRAPPING_SUCCESSFUL_RESPONSES = 438; + */ + SERVER_SIDE_UNWRAPPING_SUCCESSFUL_RESPONSES(438), + /** + * + * + *
+     * The total number of server-side unwrapping callouts that timed out before
+     * returning a response.
+     * 
+ * + * SERVER_SIDE_UNWRAPPING_TIMEOUTS = 439; + */ + SERVER_SIDE_UNWRAPPING_TIMEOUTS(439), /** * * @@ -14642,7 +15107,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * *
      * The number of times video player was in mute state during play of ad
-     *  clip.
+     * clip.
      * 
* * VIDEO_INTERACTION_MUTES = 97; @@ -15242,6 +15707,50 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * VIDEO_VIEWERSHIP_VIEW_THROUGH_RATE = 117; */ VIDEO_VIEWERSHIP_VIEW_THROUGH_RATE(117), + /** + * + * + *
+     * Number of winning bids received from Open Bidding buyers, even when the
+     * winning bid is placed at the end of a mediation for mobile apps chain.
+     * 
+ * + * YIELD_GROUP_AUCTIONS_WON = 80; + */ + YIELD_GROUP_AUCTIONS_WON(80), + /** + * + * + *
+     * Number of bids received from Open Bidding buyers, regardless of whether
+     * the returned bid competes in an auction.
+     * 
+ * + * YIELD_GROUP_BIDS = 81; + */ + YIELD_GROUP_BIDS(81), + /** + * + * + *
+     * Number of bids received from Open Bidding buyers that competed in
+     * the auction.
+     * 
+ * + * YIELD_GROUP_BIDS_IN_AUCTION = 82; + */ + YIELD_GROUP_BIDS_IN_AUCTION(82), + /** + * + * + *
+     * Number of times a yield partner is asked to return bid to fill
+     * a yield group request.
+     * 
+ * + * YIELD_GROUP_CALLOUTS = 83; + */ + YIELD_GROUP_CALLOUTS(83), /** * * @@ -15317,6 +15826,17 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * YIELD_GROUP_MEDIATION_THIRD_PARTY_ECPM = 90; */ YIELD_GROUP_MEDIATION_THIRD_PARTY_ECPM(90), + /** + * + * + *
+     * Number of times a yield group buyer successfully returned a bid in
+     * response to a yield group callout.
+     * 
+ * + * YIELD_GROUP_SUCCESSFUL_RESPONSES = 84; + */ + YIELD_GROUP_SUCCESSFUL_RESPONSES(84), UNRECOGNIZED(-1), ; @@ -15893,6 +16413,18 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { */ public static final int AD_SERVER_AVERAGE_ECPM_WITHOUT_CPD_VALUE = 10; + /** + * + * + *
+     * Total raw impressions counted when creative begins to render or the
+     * first frame of a video is shown.
+     * 
+ * + * AD_SERVER_BEGIN_TO_RENDER_IMPRESSIONS = 262; + */ + public static final int AD_SERVER_BEGIN_TO_RENDER_IMPRESSIONS_VALUE = 262; + /** * * @@ -16033,73 +16565,83 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * Number of winning bids received from Open Bidding buyers, even when the
-     * winning bid is placed at the end of a mediation for mobile apps chain.
+     * The number of tracked ads delivered by the ad server.
      * 
* - * AUCTIONS_WON = 80; + * AD_SERVER_TRACKED_ADS = 264; */ - public static final int AUCTIONS_WON_VALUE = 80; + public static final int AD_SERVER_TRACKED_ADS_VALUE = 264; /** * * *
-     * eCPM averaged across the Google Ad Manager server, AdSense,
-     * and Ad Exchange.
+     * Total raw impressions counted when creative begins to render or the
+     * first frame of a video is shown, before invalid traffic filtrations by
+     * Ad Server.
      * 
* - * AVERAGE_ECPM = 37; + * AD_SERVER_UNFILTERED_BEGIN_TO_RENDER_IMPRESSIONS = 261; */ - public static final int AVERAGE_ECPM_VALUE = 37; + public static final int AD_SERVER_UNFILTERED_BEGIN_TO_RENDER_IMPRESSIONS_VALUE = 261; /** * * *
-     * eCPM averaged across the Google Ad Manager server (excluding CPD),
-     * AdSense, and Ad Exchange.
+     * Total clicks delivered by the Ad Server before spam filtering.
      * 
* - * AVERAGE_ECPM_WITHOUT_CPD = 5; + * AD_SERVER_UNFILTERED_CLICKS = 259; */ - public static final int AVERAGE_ECPM_WITHOUT_CPD_VALUE = 5; + public static final int AD_SERVER_UNFILTERED_CLICKS_VALUE = 259; /** * * *
-     * Number of bids received from Open Bidding buyers, regardless of whether
-     * the returned bid competes in an auction.
+     * Total impressions delivered by the Ad Server before spam filtering.
      * 
* - * BIDS = 81; + * AD_SERVER_UNFILTERED_IMPRESSIONS = 260; */ - public static final int BIDS_VALUE = 81; + public static final int AD_SERVER_UNFILTERED_IMPRESSIONS_VALUE = 260; /** * * *
-     * Number of bids received from Open Bidding buyers that competed in
-     * the auction.
+     * The number of tracked ads delivered by the ad server before invalid
+     * traffic filtrations.
      * 
* - * BIDS_IN_AUCTION = 82; + * AD_SERVER_UNFILTERED_TRACKED_ADS = 263; */ - public static final int BIDS_IN_AUCTION_VALUE = 82; + public static final int AD_SERVER_UNFILTERED_TRACKED_ADS_VALUE = 263; /** * * *
-     * Number of times a yield partner is asked to return bid to fill
-     * a yield group request.
+     * eCPM averaged across the Google Ad Manager server, AdSense,
+     * and Ad Exchange.
+     * 
+ * + * AVERAGE_ECPM = 37; + */ + public static final int AVERAGE_ECPM_VALUE = 37; + + /** + * + * + *
+     * eCPM averaged across the Google Ad Manager server (excluding CPD),
+     * AdSense, and Ad Exchange.
      * 
* - * CALLOUTS = 83; + * AVERAGE_ECPM_WITHOUT_CPD = 5; */ - public static final int CALLOUTS_VALUE = 83; + public static final int AVERAGE_ECPM_WITHOUT_CPD_VALUE = 5; /** * @@ -16129,8 +16671,8 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * *
      * For standard ads, your ad clickthrough rate (CTR) is the number of ad
-     *  clicks divided by the number of individual ad impressions expressed as a
-     *  fraction. Ad CTR = Clicks / Ad impressions.
+     * clicks divided by the number of individual ad impressions expressed as a
+     * fraction. Ad CTR = Clicks / Ad impressions.
      * 
* * CTR = 3; @@ -16404,13 +16946,76 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * Number of times a yield group buyer successfully returned a bid in
-     * response to a yield group callout.
+     * The average latency in milliseconds across all server-side unwrapping
+     * callout requests. There is no special handling for error or timeout
+     * responses. This reflects the entire chain of a parent callout request,
+     * which may result in multiple child callouts. This metric is not sliced by
+     * child callout dimensions.
+     * 
+ * + * SERVER_SIDE_UNWRAPPING_AVERAGE_LATENCY_MS = 434; + */ + public static final int SERVER_SIDE_UNWRAPPING_AVERAGE_LATENCY_MS_VALUE = 434; + + /** + * + * + *
+     * The total number of server-side unwrapping callout requests.
+     * 
+ * + * SERVER_SIDE_UNWRAPPING_CALLOUTS = 435; + */ + public static final int SERVER_SIDE_UNWRAPPING_CALLOUTS_VALUE = 435; + + /** + * + * + *
+     * The total number of server-side unwrapping callouts that returned an
+     * empty response. Timeouts are not considered empty responses.
+     * 
+ * + * SERVER_SIDE_UNWRAPPING_EMPTY_RESPONSES = 436; + */ + public static final int SERVER_SIDE_UNWRAPPING_EMPTY_RESPONSES_VALUE = 436; + + /** + * + * + *
+     * The total number of server-side unwrapping callouts that returned an
+     * error response. Timeouts and empty responses are not considered errors.
+     * 
+ * + * SERVER_SIDE_UNWRAPPING_ERROR_RESPONSES = 437; + */ + public static final int SERVER_SIDE_UNWRAPPING_ERROR_RESPONSES_VALUE = 437; + + /** + * + * + *
+     * The total number of successfully unwrapped, non-empty server-side
+     * wrapping callouts. Successful unwrapping does not indicate that the
+     * resulting creative was served.
+     * 
+ * + * SERVER_SIDE_UNWRAPPING_SUCCESSFUL_RESPONSES = 438; + */ + public static final int SERVER_SIDE_UNWRAPPING_SUCCESSFUL_RESPONSES_VALUE = 438; + + /** + * + * + *
+     * The total number of server-side unwrapping callouts that timed out before
+     * returning a response.
      * 
* - * SUCCESSFUL_RESPONSES = 84; + * SERVER_SIDE_UNWRAPPING_TIMEOUTS = 439; */ - public static final int SUCCESSFUL_RESPONSES_VALUE = 84; + public static final int SERVER_SIDE_UNWRAPPING_TIMEOUTS_VALUE = 439; /** * @@ -16508,7 +17113,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * *
      * The number of times video player was in mute state during play of ad
-     *  clip.
+     * clip.
      * 
* * VIDEO_INTERACTION_MUTES = 97; @@ -17168,6 +17773,54 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { */ public static final int VIDEO_VIEWERSHIP_VIEW_THROUGH_RATE_VALUE = 117; + /** + * + * + *
+     * Number of winning bids received from Open Bidding buyers, even when the
+     * winning bid is placed at the end of a mediation for mobile apps chain.
+     * 
+ * + * YIELD_GROUP_AUCTIONS_WON = 80; + */ + public static final int YIELD_GROUP_AUCTIONS_WON_VALUE = 80; + + /** + * + * + *
+     * Number of bids received from Open Bidding buyers, regardless of whether
+     * the returned bid competes in an auction.
+     * 
+ * + * YIELD_GROUP_BIDS = 81; + */ + public static final int YIELD_GROUP_BIDS_VALUE = 81; + + /** + * + * + *
+     * Number of bids received from Open Bidding buyers that competed in
+     * the auction.
+     * 
+ * + * YIELD_GROUP_BIDS_IN_AUCTION = 82; + */ + public static final int YIELD_GROUP_BIDS_IN_AUCTION_VALUE = 82; + + /** + * + * + *
+     * Number of times a yield partner is asked to return bid to fill
+     * a yield group request.
+     * 
+ * + * YIELD_GROUP_CALLOUTS = 83; + */ + public static final int YIELD_GROUP_CALLOUTS_VALUE = 83; + /** * * @@ -17250,6 +17903,18 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { */ public static final int YIELD_GROUP_MEDIATION_THIRD_PARTY_ECPM_VALUE = 90; + /** + * + * + *
+     * Number of times a yield group buyer successfully returned a bid in
+     * response to a yield group callout.
+     * 
+ * + * YIELD_GROUP_SUCCESSFUL_RESPONSES = 84; + */ + public static final int YIELD_GROUP_SUCCESSFUL_RESPONSES_VALUE = 84; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -17370,6 +18035,8 @@ public static Metric forNumber(int value) { return AD_SERVER_AVERAGE_ECPM; case 10: return AD_SERVER_AVERAGE_ECPM_WITHOUT_CPD; + case 262: + return AD_SERVER_BEGIN_TO_RENDER_IMPRESSIONS; case 7: return AD_SERVER_CLICKS; case 32: @@ -17392,18 +18059,20 @@ public static Metric forNumber(int value) { return AD_SERVER_REVENUE; case 9: return AD_SERVER_REVENUE_WITHOUT_CPD; - case 80: - return AUCTIONS_WON; + case 264: + return AD_SERVER_TRACKED_ADS; + case 261: + return AD_SERVER_UNFILTERED_BEGIN_TO_RENDER_IMPRESSIONS; + case 259: + return AD_SERVER_UNFILTERED_CLICKS; + case 260: + return AD_SERVER_UNFILTERED_IMPRESSIONS; + case 263: + return AD_SERVER_UNFILTERED_TRACKED_ADS; case 37: return AVERAGE_ECPM; case 5: return AVERAGE_ECPM_WITHOUT_CPD; - case 81: - return BIDS; - case 82: - return BIDS_IN_AUCTION; - case 83: - return CALLOUTS; case 2: return CLICKS; case 44: @@ -17454,8 +18123,18 @@ public static Metric forNumber(int value) { return REVENUE; case 4: return REVENUE_WITHOUT_CPD; - case 84: - return SUCCESSFUL_RESPONSES; + case 434: + return SERVER_SIDE_UNWRAPPING_AVERAGE_LATENCY_MS; + case 435: + return SERVER_SIDE_UNWRAPPING_CALLOUTS; + case 436: + return SERVER_SIDE_UNWRAPPING_EMPTY_RESPONSES; + case 437: + return SERVER_SIDE_UNWRAPPING_ERROR_RESPONSES; + case 438: + return SERVER_SIDE_UNWRAPPING_SUCCESSFUL_RESPONSES; + case 439: + return SERVER_SIDE_UNWRAPPING_TIMEOUTS; case 45: return UNFILLED_IMPRESSIONS; case 43: @@ -17592,6 +18271,14 @@ public static Metric forNumber(int value) { return VIDEO_VIEWERSHIP_VIDEO_LENGTH; case 117: return VIDEO_VIEWERSHIP_VIEW_THROUGH_RATE; + case 80: + return YIELD_GROUP_AUCTIONS_WON; + case 81: + return YIELD_GROUP_BIDS; + case 82: + return YIELD_GROUP_BIDS_IN_AUCTION; + case 83: + return YIELD_GROUP_CALLOUTS; case 88: return YIELD_GROUP_ESTIMATED_CPM; case 87: @@ -17606,6 +18293,8 @@ public static Metric forNumber(int value) { return YIELD_GROUP_MEDIATION_PASSBACKS; case 90: return YIELD_GROUP_MEDIATION_THIRD_PARTY_ECPM; + case 84: + return YIELD_GROUP_SUCCESSFUL_RESPONSES; default: return null; } @@ -18190,6 +18879,221 @@ private Visibility(int value) { // @@protoc_insertion_point(enum_scope:google.ads.admanager.v1.Report.Visibility) } + /** + * + * + *
+   * The source to determine the time zone for the report.
+   * 
+ * + * Protobuf enum {@code google.ads.admanager.v1.Report.TimeZoneSource} + */ + public enum TimeZoneSource implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified default value.
+     * 
+ * + * TIME_ZONE_SOURCE_UNSPECIFIED = 0; + */ + TIME_ZONE_SOURCE_UNSPECIFIED(0), + /** + * + * + *
+     * Use the publisher's time zone in network settings.
+     * 
+ * + * PUBLISHER = 1; + */ + PUBLISHER(1), + /** + * + * + *
+     * Use the time zone of the ad exchange.
+     * Only compatible with Ad Exchange dimensions and metrics.
+     * 
+ * + * AD_EXCHANGE = 2; + */ + AD_EXCHANGE(2), + /** + * + * + *
+     * Use UTC time zone.
+     * Only compatible with Revenue Verification reports.
+     * 
+ * + * UTC = 3; + */ + UTC(3), + /** + * + * + *
+     * Use the time zone provided in the ReportDefinition.time_zone field.
+     * Has limited dimension and metric compatibility compared with PUBLISHER,
+     * and reports may take longer to run since the dates are dynamically
+     * calculated at request time.
+     * 
+ * + * PROVIDED = 4; + */ + PROVIDED(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified default value.
+     * 
+ * + * TIME_ZONE_SOURCE_UNSPECIFIED = 0; + */ + public static final int TIME_ZONE_SOURCE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Use the publisher's time zone in network settings.
+     * 
+ * + * PUBLISHER = 1; + */ + public static final int PUBLISHER_VALUE = 1; + + /** + * + * + *
+     * Use the time zone of the ad exchange.
+     * Only compatible with Ad Exchange dimensions and metrics.
+     * 
+ * + * AD_EXCHANGE = 2; + */ + public static final int AD_EXCHANGE_VALUE = 2; + + /** + * + * + *
+     * Use UTC time zone.
+     * Only compatible with Revenue Verification reports.
+     * 
+ * + * UTC = 3; + */ + public static final int UTC_VALUE = 3; + + /** + * + * + *
+     * Use the time zone provided in the ReportDefinition.time_zone field.
+     * Has limited dimension and metric compatibility compared with PUBLISHER,
+     * and reports may take longer to run since the dates are dynamically
+     * calculated at request time.
+     * 
+ * + * PROVIDED = 4; + */ + public static final int PROVIDED_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TimeZoneSource 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 TimeZoneSource forNumber(int value) { + switch (value) { + case 0: + return TIME_ZONE_SOURCE_UNSPECIFIED; + case 1: + return PUBLISHER; + case 2: + return AD_EXCHANGE; + case 3: + return UTC; + case 4: + return PROVIDED; + 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 TimeZoneSource findValueByNumber(int number) { + return TimeZoneSource.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.admanager.v1.Report.getDescriptor().getEnumTypes().get(6); + } + + private static final TimeZoneSource[] VALUES = values(); + + public static TimeZoneSource 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 TimeZoneSource(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.admanager.v1.Report.TimeZoneSource) + } + public interface ValueOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.Report.Value) @@ -18444,14 +19348,14 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_Value_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_Value_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.admanager.v1.Report.Value.class, @@ -18535,14 +19439,14 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_Value_IntList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_Value_IntList_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.admanager.v1.Report.Value.IntList.class, @@ -18796,14 +19700,14 @@ public static final class Builder // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.Report.Value.IntList) com.google.ads.admanager.v1.Report.Value.IntListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_Value_IntList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_Value_IntList_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.admanager.v1.Report.Value.IntList.class, @@ -18827,7 +19731,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_Value_IntList_descriptor; } @@ -19278,14 +20182,14 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_Value_StringList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_Value_StringList_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.admanager.v1.Report.Value.StringList.class, @@ -19544,14 +20448,14 @@ public static final class Builder // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.Report.Value.StringList) com.google.ads.admanager.v1.Report.Value.StringListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_Value_StringList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_Value_StringList_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.admanager.v1.Report.Value.StringList.class, @@ -19575,7 +20479,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_Value_StringList_descriptor; } @@ -20647,14 +21551,14 @@ public static final class Builder // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.Report.Value) com.google.ads.admanager.v1.Report.ValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_Value_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_Value_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.admanager.v1.Report.Value.class, @@ -20685,7 +21589,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_Value_descriptor; } @@ -22072,14 +22976,14 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_Sort_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_Sort_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.admanager.v1.Report.Sort.class, @@ -22556,14 +23460,14 @@ public static final class Builder // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.Report.Sort) com.google.ads.admanager.v1.Report.SortOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_Sort_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_Sort_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.admanager.v1.Report.Sort.class, @@ -22609,7 +23513,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_Sort_descriptor; } @@ -23589,14 +24493,14 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_DataTable_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_DataTable_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.admanager.v1.Report.DataTable.class, @@ -23811,14 +24715,14 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_DataTable_Row_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_DataTable_Row_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.admanager.v1.Report.DataTable.Row.class, @@ -24230,14 +25134,14 @@ public static final class Builder // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.Report.DataTable.Row) com.google.ads.admanager.v1.Report.DataTable.RowOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_DataTable_Row_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_DataTable_Row_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.admanager.v1.Report.DataTable.Row.class, @@ -24274,7 +25178,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_DataTable_Row_descriptor; } @@ -25983,14 +26887,14 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_DataTable_MetricValueGroup_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_DataTable_MetricValueGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup.class, @@ -26818,14 +27722,14 @@ public static final class Builder // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.Report.DataTable.MetricValueGroup) com.google.ads.admanager.v1.Report.DataTable.MetricValueGroupOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_DataTable_MetricValueGroup_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_DataTable_MetricValueGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.admanager.v1.Report.DataTable.MetricValueGroup.class, @@ -26892,7 +27796,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_DataTable_MetricValueGroup_descriptor; } @@ -30080,14 +30984,14 @@ public static final class Builder // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.Report.DataTable) com.google.ads.admanager.v1.Report.DataTableOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_DataTable_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_DataTable_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.admanager.v1.Report.DataTable.class, @@ -30109,7 +31013,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_DataTable_descriptor; } @@ -30404,14 +31308,14 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_Field_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_Field_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.admanager.v1.Report.Field.class, @@ -30782,14 +31686,14 @@ public static final class Builder // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.Report.Field) com.google.ads.admanager.v1.Report.FieldOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_Field_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_Field_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.admanager.v1.Report.Field.class, @@ -30814,7 +31718,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_Field_descriptor; } @@ -31402,14 +32306,14 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_Slice_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_Slice_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.admanager.v1.Report.Slice.class, @@ -31712,14 +32616,14 @@ public static final class Builder // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.Report.Slice) com.google.ads.admanager.v1.Report.SliceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_Slice_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_Slice_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.admanager.v1.Report.Slice.class, @@ -31757,7 +32661,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_Slice_descriptor; } @@ -32475,14 +33379,14 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_Filter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_Filter_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.admanager.v1.Report.Filter.class, @@ -33169,14 +34073,14 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_Filter_FieldFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_Filter_FieldFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.admanager.v1.Report.Filter.FieldFilter.class, @@ -33778,14 +34682,14 @@ public static final class Builder // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.Report.Filter.FieldFilter) com.google.ads.admanager.v1.Report.Filter.FieldFilterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_Filter_FieldFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_Filter_FieldFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.admanager.v1.Report.Filter.FieldFilter.class, @@ -33839,7 +34743,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_Filter_FieldFilter_descriptor; } @@ -35397,14 +36301,14 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_Filter_FilterList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_Filter_FilterList_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.admanager.v1.Report.Filter.FilterList.class, @@ -35676,14 +36580,14 @@ public static final class Builder // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.Report.Filter.FilterList) com.google.ads.admanager.v1.Report.Filter.FilterListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_Filter_FilterList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_Filter_FilterList_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.admanager.v1.Report.Filter.FilterList.class, @@ -35713,7 +36617,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_Filter_FilterList_descriptor; } @@ -36869,14 +37773,14 @@ public static final class Builder // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.Report.Filter) com.google.ads.admanager.v1.Report.FilterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_Filter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_Filter_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.admanager.v1.Report.Filter.class, @@ -36913,7 +37817,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_Filter_descriptor; } @@ -38200,14 +39104,14 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_Flag_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_Flag_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.admanager.v1.Report.Flag.class, @@ -38549,14 +39453,14 @@ public static final class Builder // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.Report.Flag) com.google.ads.admanager.v1.Report.FlagOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_Flag_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_Flag_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.admanager.v1.Report.Flag.class, @@ -38587,7 +39491,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_Flag_descriptor; } @@ -39484,14 +40388,14 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_DateRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_DateRange_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.admanager.v1.Report.DateRange.class, @@ -40430,14 +41334,14 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_DateRange_FixedDateRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_DateRange_FixedDateRange_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.admanager.v1.Report.DateRange.FixedDateRange.class, @@ -40739,14 +41643,14 @@ public static final class Builder // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.Report.DateRange.FixedDateRange) com.google.ads.admanager.v1.Report.DateRange.FixedDateRangeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_DateRange_FixedDateRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_DateRange_FixedDateRange_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.admanager.v1.Report.DateRange.FixedDateRange.class, @@ -40789,7 +41693,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_DateRange_FixedDateRange_descriptor; } @@ -41756,14 +42660,14 @@ public static final class Builder // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.Report.DateRange) com.google.ads.admanager.v1.Report.DateRangeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_DateRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_DateRange_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.admanager.v1.Report.DateRange.class, @@ -41791,7 +42695,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_DateRange_descriptor; } @@ -43089,14 +43993,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.Report) com.google.ads.admanager.v1.ReportOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.admanager.v1.Report.class, @@ -43156,7 +44060,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Report_descriptor; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportDefinition.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportDefinition.java index a9426599c227..508002f015bd 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportDefinition.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportDefinition.java @@ -14,7 +14,7 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/admanager/v1/report_service.proto +// source: google/ads/admanager/v1/report_messages.proto // Protobuf Java Version: 3.25.8 package com.google.ads.admanager.v1; @@ -43,6 +43,7 @@ private ReportDefinition() { dimensions_ = java.util.Collections.emptyList(); metrics_ = java.util.Collections.emptyList(); filters_ = java.util.Collections.emptyList(); + timeZoneSource_ = 0; timeZone_ = ""; currencyCode_ = ""; customDimensionKeyIds_ = emptyLongList(); @@ -62,14 +63,14 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_ReportDefinition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_ReportDefinition_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.admanager.v1.ReportDefinition.class, @@ -402,6 +403,53 @@ public com.google.ads.admanager.v1.Report.FilterOrBuilder getFiltersOrBuilder(in return filters_.get(index); } + public static final int TIME_ZONE_SOURCE_FIELD_NUMBER = 20; + private int timeZoneSource_ = 0; + + /** + * + * + *
+   * Optional. Where to get the time zone for this report. Defaults to using the
+   * network time zone setting (PUBLISHER). If source is PROVIDED, the time_zone
+   * field in the report definition must also be provided with the desired time
+   * zone.
+   * 
+ * + * + * .google.ads.admanager.v1.Report.TimeZoneSource time_zone_source = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for timeZoneSource. + */ + @java.lang.Override + public int getTimeZoneSourceValue() { + return timeZoneSource_; + } + + /** + * + * + *
+   * Optional. Where to get the time zone for this report. Defaults to using the
+   * network time zone setting (PUBLISHER). If source is PROVIDED, the time_zone
+   * field in the report definition must also be provided with the desired time
+   * zone.
+   * 
+ * + * + * .google.ads.admanager.v1.Report.TimeZoneSource time_zone_source = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The timeZoneSource. + */ + @java.lang.Override + public com.google.ads.admanager.v1.Report.TimeZoneSource getTimeZoneSource() { + com.google.ads.admanager.v1.Report.TimeZoneSource result = + com.google.ads.admanager.v1.Report.TimeZoneSource.forNumber(timeZoneSource_); + return result == null ? com.google.ads.admanager.v1.Report.TimeZoneSource.UNRECOGNIZED : result; + } + public static final int TIME_ZONE_FIELD_NUMBER = 4; @SuppressWarnings("serial") @@ -411,11 +459,9 @@ public com.google.ads.admanager.v1.Report.FilterOrBuilder getFiltersOrBuilder(in * * *
-   * Optional. The time zone the date range is defined in for this report.
-   * Defaults to publisher's time zone if not specified. Time zone in IANA
-   * format. Acceptable values depend on the report type. Publisher time zone is
-   * always accepted. Use "America/Los_Angeles" for pacific time, or "Etc/UTC"
-   * for UTC.
+   * Optional. If time_zone_source is PROVIDED, this is the time zone to use for
+   * this report. Leave empty for any other time zone source. Time zone in IANA
+   * format (e.g. "America/New_York").
    * 
* * string time_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -439,11 +485,9 @@ public java.lang.String getTimeZone() { * * *
-   * Optional. The time zone the date range is defined in for this report.
-   * Defaults to publisher's time zone if not specified. Time zone in IANA
-   * format. Acceptable values depend on the report type. Publisher time zone is
-   * always accepted. Use "America/Los_Angeles" for pacific time, or "Etc/UTC"
-   * for UTC.
+   * Optional. If time_zone_source is PROVIDED, this is the time zone to use for
+   * this report. Leave empty for any other time zone source. Time zone in IANA
+   * format (e.g. "America/New_York").
    * 
* * string time_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1261,6 +1305,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < sorts_.size(); i++) { output.writeMessage(15, sorts_.get(i)); } + if (timeZoneSource_ + != com.google.ads.admanager.v1.Report.TimeZoneSource.TIME_ZONE_SOURCE_UNSPECIFIED + .getNumber()) { + output.writeEnum(20, timeZoneSource_); + } getUnknownFields().writeTo(output); } @@ -1380,6 +1429,11 @@ public int getSerializedSize() { for (int i = 0; i < sorts_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, sorts_.get(i)); } + if (timeZoneSource_ + != com.google.ads.admanager.v1.Report.TimeZoneSource.TIME_ZONE_SOURCE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(20, timeZoneSource_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1399,6 +1453,7 @@ public boolean equals(final java.lang.Object obj) { if (!dimensions_.equals(other.dimensions_)) return false; if (!metrics_.equals(other.metrics_)) return false; if (!getFiltersList().equals(other.getFiltersList())) return false; + if (timeZoneSource_ != other.timeZoneSource_) return false; if (!getTimeZone().equals(other.getTimeZone())) return false; if (!getCurrencyCode().equals(other.getCurrencyCode())) return false; if (hasDateRange() != other.hasDateRange()) return false; @@ -1442,6 +1497,8 @@ public int hashCode() { hash = (37 * hash) + FILTERS_FIELD_NUMBER; hash = (53 * hash) + getFiltersList().hashCode(); } + hash = (37 * hash) + TIME_ZONE_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + timeZoneSource_; hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER; hash = (53 * hash) + getTimeZone().hashCode(); hash = (37 * hash) + CURRENCY_CODE_FIELD_NUMBER; @@ -1597,14 +1654,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ReportDefinition) com.google.ads.admanager.v1.ReportDefinitionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_ReportDefinition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_ReportDefinition_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.admanager.v1.ReportDefinition.class, @@ -1646,6 +1703,7 @@ public Builder clear() { filtersBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); + timeZoneSource_ = 0; timeZone_ = ""; currencyCode_ = ""; dateRange_ = null; @@ -1670,20 +1728,20 @@ public Builder clear() { flags_ = null; flagsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); if (sortsBuilder_ == null) { sorts_ = java.util.Collections.emptyList(); } else { sorts_ = null; sortsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_ReportDefinition_descriptor; } @@ -1734,18 +1792,18 @@ private void buildPartialRepeatedFields(com.google.ads.admanager.v1.ReportDefini result.filters_ = filtersBuilder_.build(); } if (flagsBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0)) { + if (((bitField0_ & 0x00004000) != 0)) { flags_ = java.util.Collections.unmodifiableList(flags_); - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); } result.flags_ = flags_; } else { result.flags_ = flagsBuilder_.build(); } if (sortsBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0)) { + if (((bitField0_ & 0x00008000) != 0)) { sorts_ = java.util.Collections.unmodifiableList(sorts_); - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); } result.sorts_ = sorts_; } else { @@ -1756,43 +1814,46 @@ private void buildPartialRepeatedFields(com.google.ads.admanager.v1.ReportDefini private void buildPartial0(com.google.ads.admanager.v1.ReportDefinition result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000008) != 0)) { - result.timeZone_ = timeZone_; + result.timeZoneSource_ = timeZoneSource_; } if (((from_bitField0_ & 0x00000010) != 0)) { + result.timeZone_ = timeZone_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { result.currencyCode_ = currencyCode_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.dateRange_ = dateRangeBuilder_ == null ? dateRange_ : dateRangeBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.comparisonDateRange_ = comparisonDateRangeBuilder_ == null ? comparisonDateRange_ : comparisonDateRangeBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { customDimensionKeyIds_.makeImmutable(); result.customDimensionKeyIds_ = customDimensionKeyIds_; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { lineItemCustomFieldIds_.makeImmutable(); result.lineItemCustomFieldIds_ = lineItemCustomFieldIds_; } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { orderCustomFieldIds_.makeImmutable(); result.orderCustomFieldIds_ = orderCustomFieldIds_; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { creativeCustomFieldIds_.makeImmutable(); result.creativeCustomFieldIds_ = creativeCustomFieldIds_; } - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00001000) != 0)) { result.reportType_ = reportType_; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.timePeriodColumn_ = timePeriodColumn_; } result.bitField0_ |= to_bitField0_; @@ -1890,14 +1951,17 @@ public Builder mergeFrom(com.google.ads.admanager.v1.ReportDefinition other) { } } } + if (other.timeZoneSource_ != 0) { + setTimeZoneSourceValue(other.getTimeZoneSourceValue()); + } if (!other.getTimeZone().isEmpty()) { timeZone_ = other.timeZone_; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); } if (!other.getCurrencyCode().isEmpty()) { currencyCode_ = other.currencyCode_; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); } if (other.hasDateRange()) { @@ -1910,7 +1974,7 @@ public Builder mergeFrom(com.google.ads.admanager.v1.ReportDefinition other) { if (customDimensionKeyIds_.isEmpty()) { customDimensionKeyIds_ = other.customDimensionKeyIds_; customDimensionKeyIds_.makeImmutable(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; } else { ensureCustomDimensionKeyIdsIsMutable(); customDimensionKeyIds_.addAll(other.customDimensionKeyIds_); @@ -1921,7 +1985,7 @@ public Builder mergeFrom(com.google.ads.admanager.v1.ReportDefinition other) { if (lineItemCustomFieldIds_.isEmpty()) { lineItemCustomFieldIds_ = other.lineItemCustomFieldIds_; lineItemCustomFieldIds_.makeImmutable(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; } else { ensureLineItemCustomFieldIdsIsMutable(); lineItemCustomFieldIds_.addAll(other.lineItemCustomFieldIds_); @@ -1932,7 +1996,7 @@ public Builder mergeFrom(com.google.ads.admanager.v1.ReportDefinition other) { if (orderCustomFieldIds_.isEmpty()) { orderCustomFieldIds_ = other.orderCustomFieldIds_; orderCustomFieldIds_.makeImmutable(); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; } else { ensureOrderCustomFieldIdsIsMutable(); orderCustomFieldIds_.addAll(other.orderCustomFieldIds_); @@ -1943,7 +2007,7 @@ public Builder mergeFrom(com.google.ads.admanager.v1.ReportDefinition other) { if (creativeCustomFieldIds_.isEmpty()) { creativeCustomFieldIds_ = other.creativeCustomFieldIds_; creativeCustomFieldIds_.makeImmutable(); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; } else { ensureCreativeCustomFieldIdsIsMutable(); creativeCustomFieldIds_.addAll(other.creativeCustomFieldIds_); @@ -1960,7 +2024,7 @@ public Builder mergeFrom(com.google.ads.admanager.v1.ReportDefinition other) { if (!other.flags_.isEmpty()) { if (flags_.isEmpty()) { flags_ = other.flags_; - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); } else { ensureFlagsIsMutable(); flags_.addAll(other.flags_); @@ -1973,7 +2037,7 @@ public Builder mergeFrom(com.google.ads.admanager.v1.ReportDefinition other) { flagsBuilder_.dispose(); flagsBuilder_ = null; flags_ = other.flags_; - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); flagsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFlagsFieldBuilder() @@ -1987,7 +2051,7 @@ public Builder mergeFrom(com.google.ads.admanager.v1.ReportDefinition other) { if (!other.sorts_.isEmpty()) { if (sorts_.isEmpty()) { sorts_ = other.sorts_; - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); } else { ensureSortsIsMutable(); sorts_.addAll(other.sorts_); @@ -2000,7 +2064,7 @@ public Builder mergeFrom(com.google.ads.admanager.v1.ReportDefinition other) { sortsBuilder_.dispose(); sortsBuilder_ = null; sorts_ = other.sorts_; - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); sortsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSortsFieldBuilder() @@ -2090,19 +2154,19 @@ public Builder mergeFrom( case 34: { timeZone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 34 case 42: { currencyCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 42 case 50: { input.readMessage(getDateRangeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 50 case 56: @@ -2126,20 +2190,20 @@ public Builder mergeFrom( case 64: { reportType_ = input.readEnum(); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; break; } // case 64 case 74: { input.readMessage( getComparisonDateRangeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 74 case 80: { timePeriodColumn_ = input.readEnum(); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 80 case 88: @@ -2222,6 +2286,12 @@ public Builder mergeFrom( } break; } // case 122 + case 160: + { + timeZoneSource_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 160 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3181,17 +3251,137 @@ public com.google.ads.admanager.v1.Report.Filter.Builder addFiltersBuilder(int i return filtersBuilder_; } + private int timeZoneSource_ = 0; + + /** + * + * + *
+     * Optional. Where to get the time zone for this report. Defaults to using the
+     * network time zone setting (PUBLISHER). If source is PROVIDED, the time_zone
+     * field in the report definition must also be provided with the desired time
+     * zone.
+     * 
+ * + * + * .google.ads.admanager.v1.Report.TimeZoneSource time_zone_source = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for timeZoneSource. + */ + @java.lang.Override + public int getTimeZoneSourceValue() { + return timeZoneSource_; + } + + /** + * + * + *
+     * Optional. Where to get the time zone for this report. Defaults to using the
+     * network time zone setting (PUBLISHER). If source is PROVIDED, the time_zone
+     * field in the report definition must also be provided with the desired time
+     * zone.
+     * 
+ * + * + * .google.ads.admanager.v1.Report.TimeZoneSource time_zone_source = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for timeZoneSource to set. + * @return This builder for chaining. + */ + public Builder setTimeZoneSourceValue(int value) { + timeZoneSource_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Where to get the time zone for this report. Defaults to using the
+     * network time zone setting (PUBLISHER). If source is PROVIDED, the time_zone
+     * field in the report definition must also be provided with the desired time
+     * zone.
+     * 
+ * + * + * .google.ads.admanager.v1.Report.TimeZoneSource time_zone_source = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The timeZoneSource. + */ + @java.lang.Override + public com.google.ads.admanager.v1.Report.TimeZoneSource getTimeZoneSource() { + com.google.ads.admanager.v1.Report.TimeZoneSource result = + com.google.ads.admanager.v1.Report.TimeZoneSource.forNumber(timeZoneSource_); + return result == null + ? com.google.ads.admanager.v1.Report.TimeZoneSource.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. Where to get the time zone for this report. Defaults to using the
+     * network time zone setting (PUBLISHER). If source is PROVIDED, the time_zone
+     * field in the report definition must also be provided with the desired time
+     * zone.
+     * 
+ * + * + * .google.ads.admanager.v1.Report.TimeZoneSource time_zone_source = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The timeZoneSource to set. + * @return This builder for chaining. + */ + public Builder setTimeZoneSource(com.google.ads.admanager.v1.Report.TimeZoneSource value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + timeZoneSource_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Where to get the time zone for this report. Defaults to using the
+     * network time zone setting (PUBLISHER). If source is PROVIDED, the time_zone
+     * field in the report definition must also be provided with the desired time
+     * zone.
+     * 
+ * + * + * .google.ads.admanager.v1.Report.TimeZoneSource time_zone_source = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearTimeZoneSource() { + bitField0_ = (bitField0_ & ~0x00000008); + timeZoneSource_ = 0; + onChanged(); + return this; + } + private java.lang.Object timeZone_ = ""; /** * * *
-     * Optional. The time zone the date range is defined in for this report.
-     * Defaults to publisher's time zone if not specified. Time zone in IANA
-     * format. Acceptable values depend on the report type. Publisher time zone is
-     * always accepted. Use "America/Los_Angeles" for pacific time, or "Etc/UTC"
-     * for UTC.
+     * Optional. If time_zone_source is PROVIDED, this is the time zone to use for
+     * this report. Leave empty for any other time zone source. Time zone in IANA
+     * format (e.g. "America/New_York").
      * 
* * string time_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -3214,11 +3404,9 @@ public java.lang.String getTimeZone() { * * *
-     * Optional. The time zone the date range is defined in for this report.
-     * Defaults to publisher's time zone if not specified. Time zone in IANA
-     * format. Acceptable values depend on the report type. Publisher time zone is
-     * always accepted. Use "America/Los_Angeles" for pacific time, or "Etc/UTC"
-     * for UTC.
+     * Optional. If time_zone_source is PROVIDED, this is the time zone to use for
+     * this report. Leave empty for any other time zone source. Time zone in IANA
+     * format (e.g. "America/New_York").
      * 
* * string time_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -3241,11 +3429,9 @@ public com.google.protobuf.ByteString getTimeZoneBytes() { * * *
-     * Optional. The time zone the date range is defined in for this report.
-     * Defaults to publisher's time zone if not specified. Time zone in IANA
-     * format. Acceptable values depend on the report type. Publisher time zone is
-     * always accepted. Use "America/Los_Angeles" for pacific time, or "Etc/UTC"
-     * for UTC.
+     * Optional. If time_zone_source is PROVIDED, this is the time zone to use for
+     * this report. Leave empty for any other time zone source. Time zone in IANA
+     * format (e.g. "America/New_York").
      * 
* * string time_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -3258,7 +3444,7 @@ public Builder setTimeZone(java.lang.String value) { throw new NullPointerException(); } timeZone_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -3267,11 +3453,9 @@ public Builder setTimeZone(java.lang.String value) { * * *
-     * Optional. The time zone the date range is defined in for this report.
-     * Defaults to publisher's time zone if not specified. Time zone in IANA
-     * format. Acceptable values depend on the report type. Publisher time zone is
-     * always accepted. Use "America/Los_Angeles" for pacific time, or "Etc/UTC"
-     * for UTC.
+     * Optional. If time_zone_source is PROVIDED, this is the time zone to use for
+     * this report. Leave empty for any other time zone source. Time zone in IANA
+     * format (e.g. "America/New_York").
      * 
* * string time_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -3280,7 +3464,7 @@ public Builder setTimeZone(java.lang.String value) { */ public Builder clearTimeZone() { timeZone_ = getDefaultInstance().getTimeZone(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -3289,11 +3473,9 @@ public Builder clearTimeZone() { * * *
-     * Optional. The time zone the date range is defined in for this report.
-     * Defaults to publisher's time zone if not specified. Time zone in IANA
-     * format. Acceptable values depend on the report type. Publisher time zone is
-     * always accepted. Use "America/Los_Angeles" for pacific time, or "Etc/UTC"
-     * for UTC.
+     * Optional. If time_zone_source is PROVIDED, this is the time zone to use for
+     * this report. Leave empty for any other time zone source. Time zone in IANA
+     * format (e.g. "America/New_York").
      * 
* * string time_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -3307,7 +3489,7 @@ public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); timeZone_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -3380,7 +3562,7 @@ public Builder setCurrencyCode(java.lang.String value) { throw new NullPointerException(); } currencyCode_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -3399,7 +3581,7 @@ public Builder setCurrencyCode(java.lang.String value) { */ public Builder clearCurrencyCode() { currencyCode_ = getDefaultInstance().getCurrencyCode(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -3423,7 +3605,7 @@ public Builder setCurrencyCodeBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); currencyCode_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -3449,7 +3631,7 @@ public Builder setCurrencyCodeBytes(com.google.protobuf.ByteString value) { * @return Whether the dateRange field is set. */ public boolean hasDateRange() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -3495,7 +3677,7 @@ public Builder setDateRange(com.google.ads.admanager.v1.Report.DateRange value) } else { dateRangeBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -3518,7 +3700,7 @@ public Builder setDateRange( } else { dateRangeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -3536,7 +3718,7 @@ public Builder setDateRange( */ public Builder mergeDateRange(com.google.ads.admanager.v1.Report.DateRange value) { if (dateRangeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000040) != 0) && dateRange_ != null && dateRange_ != com.google.ads.admanager.v1.Report.DateRange.getDefaultInstance()) { getDateRangeBuilder().mergeFrom(value); @@ -3547,7 +3729,7 @@ public Builder mergeDateRange(com.google.ads.admanager.v1.Report.DateRange value dateRangeBuilder_.mergeFrom(value); } if (dateRange_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } return this; @@ -3565,7 +3747,7 @@ public Builder mergeDateRange(com.google.ads.admanager.v1.Report.DateRange value *
*/ public Builder clearDateRange() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); dateRange_ = null; if (dateRangeBuilder_ != null) { dateRangeBuilder_.dispose(); @@ -3587,7 +3769,7 @@ public Builder clearDateRange() { *
*/ public com.google.ads.admanager.v1.Report.DateRange.Builder getDateRangeBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return getDateRangeFieldBuilder().getBuilder(); } @@ -3663,7 +3845,7 @@ public com.google.ads.admanager.v1.Report.DateRangeOrBuilder getDateRangeOrBuild * @return Whether the comparisonDateRange field is set. */ public boolean hasComparisonDateRange() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -3711,7 +3893,7 @@ public Builder setComparisonDateRange(com.google.ads.admanager.v1.Report.DateRan } else { comparisonDateRangeBuilder_.setMessage(value); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3735,7 +3917,7 @@ public Builder setComparisonDateRange( } else { comparisonDateRangeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3754,7 +3936,7 @@ public Builder setComparisonDateRange( */ public Builder mergeComparisonDateRange(com.google.ads.admanager.v1.Report.DateRange value) { if (comparisonDateRangeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) + if (((bitField0_ & 0x00000080) != 0) && comparisonDateRange_ != null && comparisonDateRange_ != com.google.ads.admanager.v1.Report.DateRange.getDefaultInstance()) { @@ -3766,7 +3948,7 @@ public Builder mergeComparisonDateRange(com.google.ads.admanager.v1.Report.DateR comparisonDateRangeBuilder_.mergeFrom(value); } if (comparisonDateRange_ != null) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } return this; @@ -3785,7 +3967,7 @@ public Builder mergeComparisonDateRange(com.google.ads.admanager.v1.Report.DateR *
*/ public Builder clearComparisonDateRange() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); comparisonDateRange_ = null; if (comparisonDateRangeBuilder_ != null) { comparisonDateRangeBuilder_.dispose(); @@ -3808,7 +3990,7 @@ public Builder clearComparisonDateRange() { *
*/ public com.google.ads.admanager.v1.Report.DateRange.Builder getComparisonDateRangeBuilder() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return getComparisonDateRangeFieldBuilder().getBuilder(); } @@ -3870,7 +4052,7 @@ private void ensureCustomDimensionKeyIdsIsMutable() { if (!customDimensionKeyIds_.isModifiable()) { customDimensionKeyIds_ = makeMutableCopy(customDimensionKeyIds_); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; } /** @@ -3953,7 +4135,7 @@ public Builder setCustomDimensionKeyIds(int index, long value) { ensureCustomDimensionKeyIdsIsMutable(); customDimensionKeyIds_.setLong(index, value); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3978,7 +4160,7 @@ public Builder addCustomDimensionKeyIds(long value) { ensureCustomDimensionKeyIdsIsMutable(); customDimensionKeyIds_.addLong(value); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -4003,7 +4185,7 @@ public Builder addAllCustomDimensionKeyIds( java.lang.Iterable values) { ensureCustomDimensionKeyIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, customDimensionKeyIds_); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -4025,7 +4207,7 @@ public Builder addAllCustomDimensionKeyIds( */ public Builder clearCustomDimensionKeyIds() { customDimensionKeyIds_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -4036,7 +4218,7 @@ private void ensureLineItemCustomFieldIdsIsMutable() { if (!lineItemCustomFieldIds_.isModifiable()) { lineItemCustomFieldIds_ = makeMutableCopy(lineItemCustomFieldIds_); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; } /** @@ -4123,7 +4305,7 @@ public Builder setLineItemCustomFieldIds(int index, long value) { ensureLineItemCustomFieldIdsIsMutable(); lineItemCustomFieldIds_.setLong(index, value); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -4149,7 +4331,7 @@ public Builder addLineItemCustomFieldIds(long value) { ensureLineItemCustomFieldIdsIsMutable(); lineItemCustomFieldIds_.addLong(value); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -4175,7 +4357,7 @@ public Builder addAllLineItemCustomFieldIds( java.lang.Iterable values) { ensureLineItemCustomFieldIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, lineItemCustomFieldIds_); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -4198,7 +4380,7 @@ public Builder addAllLineItemCustomFieldIds( */ public Builder clearLineItemCustomFieldIds() { lineItemCustomFieldIds_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -4209,7 +4391,7 @@ private void ensureOrderCustomFieldIdsIsMutable() { if (!orderCustomFieldIds_.isModifiable()) { orderCustomFieldIds_ = makeMutableCopy(orderCustomFieldIds_); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; } /** @@ -4292,7 +4474,7 @@ public Builder setOrderCustomFieldIds(int index, long value) { ensureOrderCustomFieldIdsIsMutable(); orderCustomFieldIds_.setLong(index, value); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -4317,7 +4499,7 @@ public Builder addOrderCustomFieldIds(long value) { ensureOrderCustomFieldIdsIsMutable(); orderCustomFieldIds_.addLong(value); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -4341,7 +4523,7 @@ public Builder addOrderCustomFieldIds(long value) { public Builder addAllOrderCustomFieldIds(java.lang.Iterable values) { ensureOrderCustomFieldIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, orderCustomFieldIds_); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -4363,7 +4545,7 @@ public Builder addAllOrderCustomFieldIds(java.lang.Iterable values) { ensureCreativeCustomFieldIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, creativeCustomFieldIds_); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -4536,7 +4718,7 @@ public Builder addAllCreativeCustomFieldIds( */ public Builder clearCreativeCustomFieldIds() { creativeCustomFieldIds_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } @@ -4577,7 +4759,7 @@ public int getReportTypeValue() { */ public Builder setReportTypeValue(int value) { reportType_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4620,7 +4802,7 @@ public Builder setReportType(com.google.ads.admanager.v1.Report.ReportType value if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; reportType_ = value.getNumber(); onChanged(); return this; @@ -4640,7 +4822,7 @@ public Builder setReportType(com.google.ads.admanager.v1.Report.ReportType value * @return This builder for chaining. */ public Builder clearReportType() { - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); reportType_ = 0; onChanged(); return this; @@ -4692,7 +4874,7 @@ public int getTimePeriodColumnValue() { */ public Builder setTimePeriodColumnValue(int value) { timePeriodColumn_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -4747,7 +4929,7 @@ public Builder setTimePeriodColumn(com.google.ads.admanager.v1.Report.TimePeriod if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; timePeriodColumn_ = value.getNumber(); onChanged(); return this; @@ -4772,7 +4954,7 @@ public Builder setTimePeriodColumn(com.google.ads.admanager.v1.Report.TimePeriod * @return This builder for chaining. */ public Builder clearTimePeriodColumn() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); timePeriodColumn_ = 0; onChanged(); return this; @@ -4782,9 +4964,9 @@ public Builder clearTimePeriodColumn() { java.util.Collections.emptyList(); private void ensureFlagsIsMutable() { - if (!((bitField0_ & 0x00002000) != 0)) { + if (!((bitField0_ & 0x00004000) != 0)) { flags_ = new java.util.ArrayList(flags_); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; } } @@ -5042,7 +5224,7 @@ public Builder addAllFlags( public Builder clearFlags() { if (flagsBuilder_ == null) { flags_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); onChanged(); } else { flagsBuilder_.clear(); @@ -5191,7 +5373,7 @@ public java.util.List getFlagsB com.google.ads.admanager.v1.Report.Flag, com.google.ads.admanager.v1.Report.Flag.Builder, com.google.ads.admanager.v1.Report.FlagOrBuilder>( - flags_, ((bitField0_ & 0x00002000) != 0), getParentForChildren(), isClean()); + flags_, ((bitField0_ & 0x00004000) != 0), getParentForChildren(), isClean()); flags_ = null; } return flagsBuilder_; @@ -5201,9 +5383,9 @@ public java.util.List getFlagsB java.util.Collections.emptyList(); private void ensureSortsIsMutable() { - if (!((bitField0_ & 0x00004000) != 0)) { + if (!((bitField0_ & 0x00008000) != 0)) { sorts_ = new java.util.ArrayList(sorts_); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; } } @@ -5450,7 +5632,7 @@ public Builder addAllSorts( public Builder clearSorts() { if (sortsBuilder_ == null) { sorts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); onChanged(); } else { sortsBuilder_.clear(); @@ -5592,7 +5774,7 @@ public java.util.List getSortsB com.google.ads.admanager.v1.Report.Sort, com.google.ads.admanager.v1.Report.Sort.Builder, com.google.ads.admanager.v1.Report.SortOrBuilder>( - sorts_, ((bitField0_ & 0x00004000) != 0), getParentForChildren(), isClean()); + sorts_, ((bitField0_ & 0x00008000) != 0), getParentForChildren(), isClean()); sorts_ = null; } return sortsBuilder_; diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportDefinitionOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportDefinitionOrBuilder.java index 1cc49437b541..2779f064d7ee 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportDefinitionOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportDefinitionOrBuilder.java @@ -14,7 +14,7 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/admanager/v1/report_service.proto +// source: google/ads/admanager/v1/report_messages.proto // Protobuf Java Version: 3.25.8 package com.google.ads.admanager.v1; @@ -258,11 +258,45 @@ public interface ReportDefinitionOrBuilder * * *
-   * Optional. The time zone the date range is defined in for this report.
-   * Defaults to publisher's time zone if not specified. Time zone in IANA
-   * format. Acceptable values depend on the report type. Publisher time zone is
-   * always accepted. Use "America/Los_Angeles" for pacific time, or "Etc/UTC"
-   * for UTC.
+   * Optional. Where to get the time zone for this report. Defaults to using the
+   * network time zone setting (PUBLISHER). If source is PROVIDED, the time_zone
+   * field in the report definition must also be provided with the desired time
+   * zone.
+   * 
+ * + * + * .google.ads.admanager.v1.Report.TimeZoneSource time_zone_source = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for timeZoneSource. + */ + int getTimeZoneSourceValue(); + + /** + * + * + *
+   * Optional. Where to get the time zone for this report. Defaults to using the
+   * network time zone setting (PUBLISHER). If source is PROVIDED, the time_zone
+   * field in the report definition must also be provided with the desired time
+   * zone.
+   * 
+ * + * + * .google.ads.admanager.v1.Report.TimeZoneSource time_zone_source = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The timeZoneSource. + */ + com.google.ads.admanager.v1.Report.TimeZoneSource getTimeZoneSource(); + + /** + * + * + *
+   * Optional. If time_zone_source is PROVIDED, this is the time zone to use for
+   * this report. Leave empty for any other time zone source. Time zone in IANA
+   * format (e.g. "America/New_York").
    * 
* * string time_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -275,11 +309,9 @@ public interface ReportDefinitionOrBuilder * * *
-   * Optional. The time zone the date range is defined in for this report.
-   * Defaults to publisher's time zone if not specified. Time zone in IANA
-   * format. Acceptable values depend on the report type. Publisher time zone is
-   * always accepted. Use "America/Los_Angeles" for pacific time, or "Etc/UTC"
-   * for UTC.
+   * Optional. If time_zone_source is PROVIDED, this is the time zone to use for
+   * this report. Leave empty for any other time zone source. Time zone in IANA
+   * format (e.g. "America/New_York").
    * 
* * string time_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportMessagesProto.java new file mode 100644 index 000000000000..93c972922862 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportMessagesProto.java @@ -0,0 +1,1342 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/report_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class ReportMessagesProto { + private ReportMessagesProto() {} + + 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_ads_admanager_v1_Report_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_Report_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_Report_Value_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_Report_Value_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_Report_Value_IntList_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_Report_Value_IntList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_Report_Value_StringList_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_Report_Value_StringList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_Report_Sort_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_Report_Sort_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_Report_DataTable_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_Report_DataTable_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_Report_DataTable_Row_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_Report_DataTable_Row_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_Report_DataTable_MetricValueGroup_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_Report_DataTable_MetricValueGroup_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_Report_Field_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_Report_Field_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_Report_Slice_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_Report_Slice_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_Report_Filter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_Report_Filter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_Report_Filter_FieldFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_Report_Filter_FieldFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_Report_Filter_FilterList_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_Report_Filter_FilterList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_Report_Flag_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_Report_Flag_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_Report_DateRange_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_Report_DateRange_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_Report_DateRange_FixedDateRange_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_Report_DateRange_FixedDateRange_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ReportDefinition_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ReportDefinition_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ScheduleOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ScheduleOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_Schedule_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_Schedule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_Schedule_WeeklySchedule_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_Schedule_WeeklySchedule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_Schedule_MonthlySchedule_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_Schedule_MonthlySchedule_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/ads/admanager/v1/report_message" + + "s.proto\022\027google.ads.admanager.v1\032\037google" + + "/api/field_behavior.proto\032\031google/api/re" + + "source.proto\032\037google/protobuf/timestamp." + + "proto\032\026google/type/date.proto\032\033google/ty" + + "pe/dayofweek.proto\032\033google/type/timeofday.proto\"\265\351\001\n" + + "\006Report\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\026\n" + + "\treport_id\030\003 \001(\003B\003\340A\003\022C\n\n" + + "visibility\030\002 \001" + + "(\0162*.google.ads.admanager.v1.Report.VisibilityB\003\340A\001\022I\n" + + "\021report_definition\030\004 \001(\0132)" + + ".google.ads.admanager.v1.ReportDefinitionB\003\340A\002\022\031\n" + + "\014display_name\030\005 \001(\tB\003\340A\001\0224\n" + + "\013update_time\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013create_time\030\007" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n" + + "\006locale\030\010 \001(\tB\003\340A\003\022G\n" + + "\020schedule_options\030\t" + + " \001(\0132(.google.ads.admanager.v1.ScheduleOptionsB\003\340A\001\032\323\002\n" + + "\005Value\022\023\n" + + "\tint_value\030\001 \001(\003H\000\022\026\n" + + "\014double_value\030\002 \001(\001H\000\022\026\n" + + "\014string_value\030\003 \001(\tH\000\022\024\n\n" + + "bool_value\030\004 \001(\010H\000\022G\n" + + "\016int_list_value\030\006 \001(\013" + + "2-.google.ads.admanager.v1.Report.Value.IntListH\000\022M\n" + + "\021string_list_value\030\007 \001(\01320.g" + + "oogle.ads.admanager.v1.Report.Value.StringListH\000\022\025\n" + + "\013bytes_value\030\010 \001(\014H\000\032\031\n" + + "\007IntList\022\016\n" + + "\006values\030\001 \003(\003\032\034\n\n" + + "StringList\022\016\n" + + "\006values\030\001 \003(\tB\007\n" + + "\005value\032\313\002\n" + + "\004Sort\0229\n" + + "\005field\030\001 \001(" + + "\0132%.google.ads.admanager.v1.Report.FieldB\003\340A\002\022\027\n\n" + + "descending\030\002 \001(\010B\003\340A\001\022>\n" + + "\005slice\030\003" + + " \001(\0132%.google.ads.admanager.v1.Report.SliceB\003\340A\001H\000\210\001\001\022#\n" + + "\021time_period_index\030\004 \001(\005B\003\340A\001H\001\210\001\001\022T\n" + + "\021metric_value_type\030\005 \001(\0162/" + + ".google.ads.admanager.v1.Report.MetricValueTypeB\003\340A\001H\002\210\001\001B\010\n" + + "\006_sliceB\024\n" + + "\022_time_period_indexB\024\n" + + "\022_metric_value_type\032\211\005\n" + + "\tDataTable\032\237\001\n" + + "\003Row\022?\n" + + "\020dimension_values\030\001 \003(\0132%.google.ads.admanager.v1.Report.Value\022W\n" + + "\023metric_value_groups\030\002 \003(\0132:.google.ads" + + ".admanager.v1.Report.DataTable.MetricValueGroup\032\331\003\n" + + "\020MetricValueGroup\022=\n" + + "\016primary_values\030\001 \003(\0132%.google.ads.admanager.v1.Report.Value\022N\n" + + "\037primary_percent_of_total_values\030\002" + + " \003(\0132%.google.ads.admanager.v1.Report.Value\022@\n" + + "\021comparison_values\030\003 \003(\0132%.google.ads.admanager.v1.Report.Value\022Q\n" + + "\"comparison_percent_of_total_values\030\004 \003(" + + "\0132%.google.ads.admanager.v1.Report.Value\022E\n" + + "\026absolute_change_values\030\005" + + " \003(\0132%.google.ads.admanager.v1.Report.Value\022E\n" + + "\026relative_change_values\030\006" + + " \003(\0132%.google.ads.admanager.v1.Report.Value\022\023\n" + + "\013flag_values\030\007 \003(\010\032\212\001\n" + + "\005Field\022>\n" + + "\tdimension\030\001 \001(\0162).google.ads.admanager.v1.Report.DimensionH\000\0228\n" + + "\006metric\030\002 \001(\0162&.google.ads.admanager.v1.Report.MetricH\000B\007\n" + + "\005field\032\205\001\n" + + "\005Slice\022A\n" + + "\tdimension\030\001" + + " \001(\0162).google.ads.admanager.v1.Report.DimensionB\003\340A\002\0229\n" + + "\005value\030\002 \001(\0132%.g" + + "oogle.ads.admanager.v1.Report.ValueB\003\340A\002\032\366\007\n" + + "\006Filter\022J\n" + + "\014field_filter\030\001 \001(\01322.goog" + + "le.ads.admanager.v1.Report.Filter.FieldFilterH\000\022<\n\n" + + "not_filter\030\002 \001(\0132&.google.ads.admanager.v1.Report.FilterH\000\022G\n\n" + + "and_filter\030\003" + + " \001(\01321.google.ads.admanager.v1.Report.Filter.FilterListH\000\022F\n" + + "\tor_filter\030\004 \001(" + + "\01321.google.ads.admanager.v1.Report.Filter.FilterListH\000\032\277\003\n" + + "\013FieldFilter\0229\n" + + "\005field\030\001" + + " \001(\0132%.google.ads.admanager.v1.Report.FieldB\003\340A\002\022H\n" + + "\toperation\030\002 \001(\01620.google.ad" + + "s.admanager.v1.Report.Filter.OperationB\003\340A\002\022:\n" + + "\006values\030\003" + + " \003(\0132%.google.ads.admanager.v1.Report.ValueB\003\340A\002\022>\n" + + "\005slice\030\004 \001(\0132%" + + ".google.ads.admanager.v1.Report.SliceB\003\340A\001H\000\210\001\001\022#\n" + + "\021time_period_index\030\005 \001(\005B\003\340A\001H\001\210\001\001\022T\n" + + "\021metric_value_type\030\006 \001(\0162/.google" + + ".ads.admanager.v1.Report.MetricValueTypeB\003\340A\001H\002\210\001\001B\010\n" + + "\006_sliceB\024\n" + + "\022_time_period_indexB\024\n" + + "\022_metric_value_type\032J\n\n" + + "FilterList\022<\n" + + "\007filters\030\001" + + " \003(\0132&.google.ads.admanager.v1.Report.FilterB\003\340A\002\"\272\001\n" + + "\tOperation\022\006\n" + + "\002IN\020\000\022\n\n" + + "\006NOT_IN\020\001\022\014\n" + + "\010CONTAINS\020\002\022\020\n" + + "\014NOT_CONTAINS\020\003\022\r\n" + + "\tLESS_THAN\020\004\022\024\n" + + "\020LESS_THAN_EQUALS\020\005\022\020\n" + + "\014GREATER_THAN\020\006\022\027\n" + + "\023GREATER_THAN_EQUALS\020\007\022\013\n" + + "\007BETWEEN\020\010\022\013\n" + + "\007MATCHES\020\t\022\017\n" + + "\013NOT_MATCHES\020\n" + + "B\006\n" + + "\004type\032W\n" + + "\004Flag\022<\n" + + "\007filters\030\001 \003" + + "(\0132&.google.ads.admanager.v1.Report.FilterB\003\340A\002\022\021\n" + + "\004name\030\002 \001(\tB\003\340A\001\032\330\006\n" + + "\tDateRange\022I\n" + + "\005fixed\030\001" + + " \001(\01328.google.ads.admanager.v1.Report.DateRange.FixedDateRangeH\000\022O\n" + + "\010relative\030\002" + + " \001(\0162;.google.ads.admanager.v1.Report.DateRange.RelativeDateRangeH\000\032f\n" + + "\016FixedDateRange\022*\n\n" + + "start_date\030\001 \001(\0132\021.google.type.DateB\003\340A\002\022(\n" + + "\010end_date\030\002 \001(\0132\021.google.type.DateB\003\340A\002\"\263\004\n" + + "\021RelativeDateRange\022#\n" + + "\037RELATIVE_DATE_RANGE_UNSPECIFIED\020\000\022\t\n" + + "\005TODAY\020\001\022\r\n" + + "\tYESTERDAY\020\002\022\r\n" + + "\tTHIS_WEEK\020\003\022\025\n" + + "\021THIS_WEEK_TO_DATE\020\035\022\016\n\n" + + "THIS_MONTH\020\004\022\026\n" + + "\022THIS_MONTH_TO_DATE\020\032\022\020\n" + + "\014THIS_QUARTER\020\005\022\030\n" + + "\024THIS_QUARTER_TO_DATE\020\033\022\r\n" + + "\tTHIS_YEAR\020\006\022\025\n" + + "\021THIS_YEAR_TO_DATE\020\034\022\r\n" + + "\tLAST_WEEK\020\007\022\016\n\n" + + "LAST_MONTH\020\010\022\020\n" + + "\014LAST_QUARTER\020\t\022\r\n" + + "\tLAST_YEAR\020\n" + + "\022\017\n" + + "\013LAST_7_DAYS\020\013\022\020\n" + + "\014LAST_30_DAYS\020\014\022\020\n" + + "\014LAST_60_DAYS\020\r" + + "\022\020\n" + + "\014LAST_90_DAYS\020\016\022\021\n\r" + + "LAST_180_DAYS\020\017\022\021\n\r" + + "LAST_360_DAYS\020\020\022\021\n\r" + + "LAST_365_DAYS\020\021\022\021\n\r" + + "LAST_3_MONTHS\020\022\022\021\n\r" + + "LAST_6_MONTHS\020\023\022\022\n" + + "\016LAST_12_MONTHS\020\024\022\021\n\r" + + "ALL_AVAILABLE\020\025\022\023\n" + + "\017PREVIOUS_PERIOD\020\026\022\035\n" + + "\031SAME_PERIOD_PREVIOUS_YEAR\020\030B\021\n" + + "\017date_range_type\"\256\001\n" + + "\020TimePeriodColumn\022\"\n" + + "\036TIME_PERIOD_COLUMN_UNSPECIFIED\020\000\022\033\n" + + "\027TIME_PERIOD_COLUMN_DATE\020\001\022\033\n" + + "\027TIME_PERIOD_COLUMN_WEEK\020\002\022\034\n" + + "\030TIME_PERIOD_COLUMN_MONTH\020\003\022\036\n" + + "\032TIME_PERIOD_COLUMN_QUARTER\020\004\"\364\222\001\n" + + "\tDimension\022\031\n" + + "\025DIMENSION_UNSPECIFIED\020\000\022\033\n" + + "\026ADVERTISER_DOMAIN_NAME\020\362\001\022\033\n" + + "\026ADVERTISER_EXTERNAL_ID\020\344\001\022\022\n\r" + + "ADVERTISER_ID\020\203\001\022\026\n" + + "\021ADVERTISER_LABELS\020\346\001\022\031\n" + + "\024ADVERTISER_LABEL_IDS\020\345\001\022\024\n" + + "\017ADVERTISER_NAME\020\204\001\022\037\n" + + "\032ADVERTISER_PRIMARY_CONTACT\020\343\001\022\020\n" + + "\013AD_LOCATION\020\206\003\022\025\n" + + "\020AD_LOCATION_NAME\020\207\003\022\020\n" + + "\014AD_UNIT_CODE\020@\022\030\n" + + "\024AD_UNIT_CODE_LEVEL_1\020A\022\031\n" + + "\025AD_UNIT_CODE_LEVEL_10\020J\022\031\n" + + "\025AD_UNIT_CODE_LEVEL_11\020K\022\031\n" + + "\025AD_UNIT_CODE_LEVEL_12\020L\022\031\n" + + "\025AD_UNIT_CODE_LEVEL_13\020M\022\031\n" + + "\025AD_UNIT_CODE_LEVEL_14\020N\022\031\n" + + "\025AD_UNIT_CODE_LEVEL_15\020O\022\031\n" + + "\025AD_UNIT_CODE_LEVEL_16\020P\022\030\n" + + "\024AD_UNIT_CODE_LEVEL_2\020B\022\030\n" + + "\024AD_UNIT_CODE_LEVEL_3\020C\022\030\n" + + "\024AD_UNIT_CODE_LEVEL_4\020D\022\030\n" + + "\024AD_UNIT_CODE_LEVEL_5\020E\022\030\n" + + "\024AD_UNIT_CODE_LEVEL_6\020F\022\030\n" + + "\024AD_UNIT_CODE_LEVEL_7\020G\022\030\n" + + "\024AD_UNIT_CODE_LEVEL_8\020H\022\030\n" + + "\024AD_UNIT_CODE_LEVEL_9\020I\022\021\n\r" + + "AD_UNIT_DEPTH\020e\022\016\n\n" + + "AD_UNIT_ID\020\031\022\030\n" + + "\024AD_UNIT_ID_ALL_LEVEL\020\033\022\026\n" + + "\022AD_UNIT_ID_LEVEL_1\020\036\022\027\n" + + "\023AD_UNIT_ID_LEVEL_10\0200\022\027\n" + + "\023AD_UNIT_ID_LEVEL_11\0202\022\027\n" + + "\023AD_UNIT_ID_LEVEL_12\0204\022\027\n" + + "\023AD_UNIT_ID_LEVEL_13\0206\022\027\n" + + "\023AD_UNIT_ID_LEVEL_14\0208\022\027\n" + + "\023AD_UNIT_ID_LEVEL_15\020:\022\027\n" + + "\023AD_UNIT_ID_LEVEL_16\020<\022\026\n" + + "\022AD_UNIT_ID_LEVEL_2\020 \022\026\n" + + "\022AD_UNIT_ID_LEVEL_3\020\"\022\026\n" + + "\022AD_UNIT_ID_LEVEL_4\020$\022\026\n" + + "\022AD_UNIT_ID_LEVEL_5\020&\022\026\n" + + "\022AD_UNIT_ID_LEVEL_6\020(\022\026\n" + + "\022AD_UNIT_ID_LEVEL_7\020*\022\026\n" + + "\022AD_UNIT_ID_LEVEL_8\020,\022\026\n" + + "\022AD_UNIT_ID_LEVEL_9\020.\022\031\n" + + "\024AD_UNIT_ID_TOP_LEVEL\020\216\001\022\020\n" + + "\014AD_UNIT_NAME\020\032\022\032\n" + + "\026AD_UNIT_NAME_ALL_LEVEL\020\035\022\030\n" + + "\024AD_UNIT_NAME_LEVEL_1\020\037\022\031\n" + + "\025AD_UNIT_NAME_LEVEL_10\0201\022\031\n" + + "\025AD_UNIT_NAME_LEVEL_11\0203\022\031\n" + + "\025AD_UNIT_NAME_LEVEL_12\0205\022\031\n" + + "\025AD_UNIT_NAME_LEVEL_13\0207\022\031\n" + + "\025AD_UNIT_NAME_LEVEL_14\0209\022\031\n" + + "\025AD_UNIT_NAME_LEVEL_15\020;\022\031\n" + + "\025AD_UNIT_NAME_LEVEL_16\020=\022\030\n" + + "\024AD_UNIT_NAME_LEVEL_2\020!\022\030\n" + + "\024AD_UNIT_NAME_LEVEL_3\020#\022\030\n" + + "\024AD_UNIT_NAME_LEVEL_4\020%\022\030\n" + + "\024AD_UNIT_NAME_LEVEL_5\020\'\022\030\n" + + "\024AD_UNIT_NAME_LEVEL_6\020)\022\030\n" + + "\024AD_UNIT_NAME_LEVEL_7\020+\022\030\n" + + "\024AD_UNIT_NAME_LEVEL_8\020-\022\030\n" + + "\024AD_UNIT_NAME_LEVEL_9\020/\022\033\n" + + "\026AD_UNIT_NAME_TOP_LEVEL\020\217\001\022\031\n" + + "\025AD_UNIT_REWARD_AMOUNT\020?\022\027\n" + + "\023AD_UNIT_REWARD_TYPE\020>\022\023\n" + + "\016AD_UNIT_STATUS\020\316\001\022\030\n" + + "\023AD_UNIT_STATUS_NAME\020\317\001\022\020\n" + + "\013APP_VERSION\020\210\003\022$\n" + + "\037BACKFILL_ADVERTISER_EXTERNAL_ID\020\335\002\022\033\n" + + "\026BACKFILL_ADVERTISER_ID\020\332\002\022\037\n" + + "\032BACKFILL_ADVERTISER_LABELS\020\337\002\022\"\n" + + "\035BACKFILL_ADVERTISER_LABEL_IDS\020\336\002\022\035\n" + + "\030BACKFILL_ADVERTISER_NAME\020\333\002\022(\n" + + "#BACKFILL_ADVERTISER_PRIMARY_CONTACT\020\334\002\022#\n" + + "\036BACKFILL_CREATIVE_BILLING_TYPE\020\372\002\022(\n" + + "#BACKFILL_CREATIVE_BILLING_TYPE_NAME\020\373\002\022(\n" + + "#BACKFILL_CREATIVE_CLICK_THROUGH_URL\020\370\002\022\031\n" + + "\024BACKFILL_CREATIVE_ID\020\362\002\022\033\n" + + "\026BACKFILL_CREATIVE_NAME\020\363\002\022)\n" + + "$BACKFILL_CREATIVE_THIRD_PARTY_VENDOR\020\371\002\022\033\n" + + "\026BACKFILL_CREATIVE_TYPE\020\366\002\022 \n" + + "\033BACKFILL_CREATIVE_TYPE_NAME\020\367\002\022 \n" + + "\033BACKFILL_LINE_ITEM_ARCHIVED\020\226\002\0221\n" + + ",BACKFILL_LINE_ITEM_COMPANION_DELIVERY_OPTION\020\202\002\0226\n" + + "1BACKFILL_LINE_ITEM_COMPANION_DELIVERY_OPTION_NAME\020\203\002\022\'\n" + + "\"BACKFILL_LINE_ITEM_COMPUTED_STATUS\020\250\002\022,\n" + + "\'BACKFILL_LINE_ITEM_COMPUTED_STATUS_NAME\020\251\002\022+\n" + + "&BACKFILL_LINE_ITEM_CONTRACTED_QUANTITY\020\230\002\022%\n" + + " BACKFILL_LINE_ITEM_COST_PER_UNIT\020\220\002\022!\n" + + "\034BACKFILL_LINE_ITEM_COST_TYPE\020\210\002\022&\n" + + "!BACKFILL_LINE_ITEM_COST_TYPE_NAME\020\211\002\022)\n" + + "$BACKFILL_LINE_ITEM_CREATIVE_END_DATE\020\375\002\022.\n" + + ")BACKFILL_LINE_ITEM_CREATIVE_ROTATION_TYPE\020\242\002\0223\n" + + ".BACKFILL_LINE_ITEM_CREATIVE_ROTATION_TYPE_NAME\020\243\002\022+\n" + + "&BACKFILL_LINE_ITEM_CREATIVE_START_DATE\020\374\002\022%\n" + + " BACKFILL_LINE_ITEM_CURRENCY_CODE\020\240\002\022*\n" + + "%BACKFILL_LINE_ITEM_DELIVERY_INDICATOR\020\222\002\022*\n" + + "%BACKFILL_LINE_ITEM_DELIVERY_RATE_TYPE\020\244\002\022/\n" + + "*BACKFILL_LINE_ITEM_DELIVERY_RATE_TYPE_NAME\020\245\002\022)\n" + + "$BACKFILL_LINE_ITEM_DISCOUNT_ABSOLUTE\020\246\002\022+\n" + + "&BACKFILL_LINE_ITEM_DISCOUNT_PERCENTAGE\020\247\002\022 \n" + + "\033BACKFILL_LINE_ITEM_END_DATE\020\213\002\022%\n" + + " BACKFILL_LINE_ITEM_END_DATE_TIME\020\215\002\022(\n" + + "#BACKFILL_LINE_ITEM_ENVIRONMENT_TYPE\020\256\002\022-\n" + + "(BACKFILL_LINE_ITEM_ENVIRONMENT_TYPE_NAME\020\201\002\022(\n" + + "#BACKFILL_LINE_ITEM_EXTERNAL_DEAL_ID\020\235\002\022#\n" + + "\036BACKFILL_LINE_ITEM_EXTERNAL_ID\020\221\002\022%\n" + + " BACKFILL_LINE_ITEM_FREQUENCY_CAP\020\257\002\022\032\n" + + "\025BACKFILL_LINE_ITEM_ID\020\252\002\022,\n" + + "\'BACKFILL_LINE_ITEM_LAST_MODIFIED_BY_APP\020\241\002\022\'\n" + + "\"BACKFILL_LINE_ITEM_LIFETIME_CLICKS\020\233\002\022,\n" + + "\'BACKFILL_LINE_ITEM_LIFETIME_IMPRESSIONS\020\232\002\0225\n" + + "0BACKFILL_LINE_ITEM_LIFETIME_VIEWABLE_IMPRESSIONS\020\234\002\022 \n" + + "\033BACKFILL_LINE_ITEM_MAKEGOOD\020\224\002\022\034\n" + + "\027BACKFILL_LINE_ITEM_NAME\020\253\002\022.\n" + + ")BACKFILL_LINE_ITEM_NON_CPD_BOOKED_REVENUE\020\236\002\022#\n" + + "\036BACKFILL_LINE_ITEM_OPTIMIZABLE\020\225\002\022)\n" + + "$BACKFILL_LINE_ITEM_PRIMARY_GOAL_TYPE\020\206\002\022.\n" + + ")BACKFILL_LINE_ITEM_PRIMARY_GOAL_TYPE_NAME\020\207\002\022.\n" + + ")BACKFILL_LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE\020\204\002\0223\n" + + ".BACKFILL_LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_NAME\020\205\002\022 \n" + + "\033BACKFILL_LINE_ITEM_PRIORITY\020\212\002\022*\n" + + "%BACKFILL_LINE_ITEM_RESERVATION_STATUS\020\262\002\022/\n" + + "*BACKFILL_LINE_ITEM_RESERVATION_STATUS_NAME\020\263\002\022\"\n" + + "\035BACKFILL_LINE_ITEM_START_DATE\020\214\002\022\'\n" + + "\"BACKFILL_LINE_ITEM_START_DATE_TIME\020\216\002\022\034\n" + + "\027BACKFILL_LINE_ITEM_TYPE\020\254\002\022!\n" + + "\034BACKFILL_LINE_ITEM_TYPE_NAME\020\255\002\022%\n" + + " BACKFILL_LINE_ITEM_UNLIMITED_END\020\217\002\022+\n" + + "&BACKFILL_LINE_ITEM_VALUE_COST_PER_UNIT\020\223\002\022)\n" + + "$BACKFILL_LINE_ITEM_WEB_PROPERTY_CODE\020\237\002\022*\n" + + "%BACKFILL_MASTER_COMPANION_CREATIVE_ID\020\364\002\022,\n" + + "\'BACKFILL_MASTER_COMPANION_CREATIVE_NAME\020\365\002\022\032\n" + + "\025BACKFILL_ORDER_AGENCY\020\271\002\022\035\n" + + "\030BACKFILL_ORDER_AGENCY_ID\020\272\002\022\036\n" + + "\031BACKFILL_ORDER_BOOKED_CPC\020\273\002\022\036\n" + + "\031BACKFILL_ORDER_BOOKED_CPM\020\274\002\022#\n" + + "\036BACKFILL_ORDER_DELIVERY_STATUS\020\324\002\022(\n" + + "#BACKFILL_ORDER_DELIVERY_STATUS_NAME\020\325\002\022\034\n" + + "\027BACKFILL_ORDER_END_DATE\020\275\002\022!\n" + + "\034BACKFILL_ORDER_END_DATE_TIME\020\277\002\022\037\n" + + "\032BACKFILL_ORDER_EXTERNAL_ID\020\300\002\022\026\n" + + "\021BACKFILL_ORDER_ID\020\322\002\022\032\n" + + "\025BACKFILL_ORDER_LABELS\020\316\002\022\035\n" + + "\030BACKFILL_ORDER_LABEL_IDS\020\317\002\022#\n" + + "\036BACKFILL_ORDER_LIFETIME_CLICKS\020\302\002\022(\n" + + "#BACKFILL_ORDER_LIFETIME_IMPRESSIONS\020\303\002\022\030\n" + + "\023BACKFILL_ORDER_NAME\020\323\002\022\035\n" + + "\030BACKFILL_ORDER_PO_NUMBER\020\304\002\022 \n" + + "\033BACKFILL_ORDER_PROGRAMMATIC\020\301\002\022\037\n" + + "\032BACKFILL_ORDER_SALESPERSON\020\305\002\022)\n" + + "$BACKFILL_ORDER_SECONDARY_SALESPEOPLE\020\311\002\022,\n" + + "\'BACKFILL_ORDER_SECONDARY_SALESPEOPLE_ID\020\310\002\022)\n" + + "$BACKFILL_ORDER_SECONDARY_TRAFFICKERS\020\313\002\022,\n" + + "\'BACKFILL_ORDER_SECONDARY_TRAFFICKERS_ID\020\312\002\022\036\n" + + "\031BACKFILL_ORDER_START_DATE\020\314\002\022#\n" + + "\036BACKFILL_ORDER_START_DATE_TIME\020\315\002\022\036\n" + + "\031BACKFILL_ORDER_TRAFFICKER\020\306\002\022!\n" + + "\034BACKFILL_ORDER_TRAFFICKER_ID\020\307\002\022!\n" + + "\034BACKFILL_ORDER_UNLIMITED_END\020\276\002\022#\n" + + "\036BACKFILL_PROGRAMMATIC_BUYER_ID\020\320\002\022%\n" + + " BACKFILL_PROGRAMMATIC_BUYER_NAME\020\321\002\022\022\n\r" + + "BRANDING_TYPE\020\377\002\022\027\n" + + "\022BRANDING_TYPE_NAME\020\200\003\022\024\n" + + "\020BROWSER_CATEGORY\020w\022\031\n" + + "\025BROWSER_CATEGORY_NAME\020x\022\017\n\n" + + "BROWSER_ID\020\353\001\022\021\n" + + "\014BROWSER_NAME\020\354\001\022\017\n\n" + + "CARRIER_ID\020\361\002\022\021\n" + + "\014CARRIER_NAME\020\360\002\022\035\n" + + "\030CLASSIFIED_ADVERTISER_ID\020\205\001\022\037\n" + + "\032CLASSIFIED_ADVERTISER_NAME\020\206\001\022\030\n" + + "\023CLASSIFIED_BRAND_ID\020\363\001\022\032\n" + + "\025CLASSIFIED_BRAND_NAME\020\364\001\022\017\n\n" + + "CONTENT_ID\020\366\001\022\021\n" + + "\014CONTENT_NAME\020\367\001\022\016\n\n" + + "COUNTRY_ID\020\013\022\020\n" + + "\014COUNTRY_NAME\020\014\022\032\n" + + "\025CREATIVE_BILLING_TYPE\020\356\002\022\037\n" + + "\032CREATIVE_BILLING_TYPE_NAME\020\357\002\022\037\n" + + "\032CREATIVE_CLICK_THROUGH_URL\020\256\001\022\020\n" + + "\013CREATIVE_ID\020\212\001\022\022\n\r" + + "CREATIVE_NAME\020\213\001\022\030\n" + + "\023CREATIVE_TECHNOLOGY\020\224\001\022\035\n" + + "\030CREATIVE_TECHNOLOGY_NAME\020\225\001\022 \n" + + "\033CREATIVE_THIRD_PARTY_VENDOR\020\351\002\022\022\n\r" + + "CREATIVE_TYPE\020\330\002\022\027\n" + + "\022CREATIVE_TYPE_NAME\020\331\002\022\010\n" + + "\004DATE\020\003\022\017\n" + + "\013DAY_OF_WEEK\020\004\022\022\n" + + "\016DEMAND_CHANNEL\020\t\022\027\n" + + "\023DEMAND_CHANNEL_NAME\020\n" + + "\022\025\n" + + "\021DEMAND_SUBCHANNEL\020\026\022\032\n" + + "\026DEMAND_SUBCHANNEL_NAME\020\027\022\013\n" + + "\006DEVICE\020\342\001\022\023\n" + + "\017DEVICE_CATEGORY\020\017\022\030\n" + + "\024DEVICE_CATEGORY_NAME\020\020\022\020\n" + + "\013DEVICE_NAME\020\341\001\022$\n" + + "\037EXCHANGE_THIRD_PARTY_COMPANY_ID\020\271\001\022&\n" + + "!EXCHANGE_THIRD_PARTY_COMPANY_NAME\020\272\001\022\037\n" + + "\032FIRST_LOOK_PRICING_RULE_ID\020\370\001\022!\n" + + "\034FIRST_LOOK_PRICING_RULE_NAME\020\371\001\022\010\n" + + "\004HOUR\020d\022\025\n" + + "\020INTERACTION_TYPE\020\337\001\022\032\n" + + "\025INTERACTION_TYPE_NAME\020\340\001\022\024\n" + + "\020INVENTORY_FORMAT\020\021\022\031\n" + + "\025INVENTORY_FORMAT_NAME\020\022\022\022\n" + + "\016INVENTORY_TYPE\020\023\022\027\n" + + "\023INVENTORY_TYPE_NAME\020\024\022\022\n\r" + + "IS_ADX_DIRECT\020\376\002\022\027\n" + + "\022IS_FIRST_LOOK_DEAL\020\221\003\022\022\n\r" + + "KEY_VALUES_ID\020\326\001\022\024\n" + + "\017KEY_VALUES_NAME\020\327\001\022\027\n" + + "\022LINE_ITEM_ARCHIVED\020\274\001\022(\n" + + "#LINE_ITEM_COMPANION_DELIVERY_OPTION\020\314\001\022-\n" + + "(LINE_ITEM_COMPANION_DELIVERY_OPTION_NAME\020\315\001\022\036\n" + + "\031LINE_ITEM_COMPUTED_STATUS\020\372\001\022#\n" + + "\036LINE_ITEM_COMPUTED_STATUS_NAME\020\373\001\022!\n" + + "\035LINE_ITEM_CONTRACTED_QUANTITY\020\\\022\033\n" + + "\027LINE_ITEM_COST_PER_UNIT\020U\022\030\n" + + "\023LINE_ITEM_COST_TYPE\020\324\001\022\035\n" + + "\030LINE_ITEM_COST_TYPE_NAME\020\325\001\022 \n" + + "\033LINE_ITEM_CREATIVE_END_DATE\020\260\001\022%\n" + + " LINE_ITEM_CREATIVE_ROTATION_TYPE\020\275\001\022*\n" + + "%LINE_ITEM_CREATIVE_ROTATION_TYPE_NAME\020\276\001\022\"\n" + + "\035LINE_ITEM_CREATIVE_START_DATE\020\257\001\022\034\n" + + "\027LINE_ITEM_CURRENCY_CODE\020\264\001\022 \n" + + "\034LINE_ITEM_DELIVERY_INDICATOR\020W\022!\n" + + "\034LINE_ITEM_DELIVERY_RATE_TYPE\020\277\001\022&\n" + + "!LINE_ITEM_DELIVERY_RATE_TYPE_NAME\020\300\001\022 \n" + + "\033LINE_ITEM_DISCOUNT_ABSOLUTE\020\303\001\022\"\n" + + "\035LINE_ITEM_DISCOUNT_PERCENTAGE\020\304\001\022\026\n" + + "\022LINE_ITEM_END_DATE\020Q\022\033\n" + + "\027LINE_ITEM_END_DATE_TIME\020S\022\037\n" + + "\032LINE_ITEM_ENVIRONMENT_TYPE\020\311\001\022$\n" + + "\037LINE_ITEM_ENVIRONMENT_TYPE_NAME\020\312\001\022\036\n" + + "\032LINE_ITEM_EXTERNAL_DEAL_ID\020a\022\031\n" + + "\025LINE_ITEM_EXTERNAL_ID\020V\022\034\n" + + "\027LINE_ITEM_FREQUENCY_CAP\020\200\002\022\020\n" + + "\014LINE_ITEM_ID\020\001\022#\n" + + "\036LINE_ITEM_LAST_MODIFIED_BY_APP\020\265\001\022\035\n" + + "\031LINE_ITEM_LIFETIME_CLICKS\020_\022\"\n" + + "\036LINE_ITEM_LIFETIME_IMPRESSIONS\020^\022+\n" + + "\'LINE_ITEM_LIFETIME_VIEWABLE_IMPRESSIONS\020`\022\026\n" + + "\022LINE_ITEM_MAKEGOOD\020Y\022\022\n" + + "\016LINE_ITEM_NAME\020\002\022$\n" + + " LINE_ITEM_NON_CPD_BOOKED_REVENUE\020b\022\031\n" + + "\025LINE_ITEM_OPTIMIZABLE\020Z\022 \n" + + "\033LINE_ITEM_PRIMARY_GOAL_TYPE\020\322\001\022%\n" + + " LINE_ITEM_PRIMARY_GOAL_TYPE_NAME\020\323\001\022)\n" + + "%LINE_ITEM_PRIMARY_GOAL_UNITS_ABSOLUTE\020]\022,\n" + + "\'LINE_ITEM_PRIMARY_GOAL_UNITS_PERCENTAGE\020\214\003\022%\n" + + " LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE\020\320\001\022*\n" + + "%LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_NAME\020\321\001\022\026\n" + + "\022LINE_ITEM_PRIORITY\020\030\022!\n" + + "\034LINE_ITEM_RESERVATION_STATUS\020\260\002\022&\n" + + "!LINE_ITEM_RESERVATION_STATUS_NAME\020\261\002\022\030\n" + + "\024LINE_ITEM_START_DATE\020R\022\035\n" + + "\031LINE_ITEM_START_DATE_TIME\020T\022\023\n" + + "\016LINE_ITEM_TYPE\020\301\001\022\030\n" + + "\023LINE_ITEM_TYPE_NAME\020\302\001\022\034\n" + + "\027LINE_ITEM_UNLIMITED_END\020\273\001\022!\n" + + "\035LINE_ITEM_VALUE_COST_PER_UNIT\020X\022 \n" + + "\033LINE_ITEM_WEB_PROPERTY_CODE\020\263\001\022!\n" + + "\034MASTER_COMPANION_CREATIVE_ID\020\214\001\022#\n" + + "\036MASTER_COMPANION_CREATIVE_NAME\020\215\001\022\024\n" + + "\017MOBILE_APP_FREE\020\200\001\022\030\n" + + "\023MOBILE_APP_ICON_URL\020\201\001\022\021\n\r" + + "MOBILE_APP_ID\020{\022\023\n" + + "\017MOBILE_APP_NAME\020\177\022 \n" + + "\033MOBILE_APP_OWNERSHIP_STATUS\020\267\002\022%\n" + + " MOBILE_APP_OWNERSHIP_STATUS_NAME\020\270\002\022\024\n" + + "\020MOBILE_APP_STORE\020}\022\032\n" + + "\025MOBILE_APP_STORE_NAME\020\365\001\022\031\n" + + "\025MOBILE_INVENTORY_TYPE\020c\022\036\n" + + "\032MOBILE_INVENTORY_TYPE_NAME\020\025\022\034\n" + + "\027MOBILE_SDK_VERSION_NAME\020\202\001\022\016\n\n" + + "MONTH_YEAR\020\006\022\030\n" + + "\023NATIVE_AD_FORMAT_ID\020\377\001\022\032\n" + + "\025NATIVE_AD_FORMAT_NAME\020\376\001\022\024\n" + + "\017NATIVE_STYLE_ID\020\375\001\022\026\n" + + "\021NATIVE_STYLE_NAME\020\374\001\022\035\n" + + "\031OPERATING_SYSTEM_CATEGORY\020u\022\"\n" + + "\036OPERATING_SYSTEM_CATEGORY_NAME\020v\022 \n" + + "\033OPERATING_SYSTEM_VERSION_ID\020\356\001\022\"\n" + + "\035OPERATING_SYSTEM_VERSION_NAME\020\355\001\022\021\n" + + "\014ORDER_AGENCY\020\226\001\022\024\n" + + "\017ORDER_AGENCY_ID\020\227\001\022\025\n" + + "\020ORDER_BOOKED_CPC\020\230\001\022\025\n" + + "\020ORDER_BOOKED_CPM\020\231\001\022\032\n" + + "\025ORDER_DELIVERY_STATUS\020\347\001\022\037\n" + + "\032ORDER_DELIVERY_STATUS_NAME\020\357\001\022\023\n" + + "\016ORDER_END_DATE\020\232\001\022\030\n" + + "\023ORDER_END_DATE_TIME\020\233\001\022\026\n" + + "\021ORDER_EXTERNAL_ID\020\234\001\022\014\n" + + "\010ORDER_ID\020\007\022\021\n" + + "\014ORDER_LABELS\020\252\001\022\024\n" + + "\017ORDER_LABEL_IDS\020\253\001\022\032\n" + + "\025ORDER_LIFETIME_CLICKS\020\236\001\022\037\n" + + "\032ORDER_LIFETIME_IMPRESSIONS\020\237\001\022\016\n\n" + + "ORDER_NAME\020\010\022\024\n" + + "\017ORDER_PO_NUMBER\020\240\001\022\027\n" + + "\022ORDER_PROGRAMMATIC\020\235\001\022\026\n" + + "\021ORDER_SALESPERSON\020\241\001\022 \n" + + "\033ORDER_SECONDARY_SALESPEOPLE\020\244\001\022#\n" + + "\036ORDER_SECONDARY_SALESPEOPLE_ID\020\245\001\022 \n" + + "\033ORDER_SECONDARY_TRAFFICKERS\020\246\001\022#\n" + + "\036ORDER_SECONDARY_TRAFFICKERS_ID\020\247\001\022\025\n" + + "\020ORDER_START_DATE\020\250\001\022\032\n" + + "\025ORDER_START_DATE_TIME\020\251\001\022\025\n" + + "\020ORDER_TRAFFICKER\020\242\001\022\030\n" + + "\023ORDER_TRAFFICKER_ID\020\243\001\022\030\n" + + "\023ORDER_UNLIMITED_END\020\313\001\022\020\n" + + "\014PLACEMENT_ID\020q\022\025\n" + + "\020PLACEMENT_ID_ALL\020\220\001\022\022\n" + + "\016PLACEMENT_NAME\020r\022\027\n" + + "\022PLACEMENT_NAME_ALL\020\221\001\022\025\n" + + "\020PLACEMENT_STATUS\020\352\002\022\031\n" + + "\024PLACEMENT_STATUS_ALL\020\353\002\022\032\n" + + "\025PLACEMENT_STATUS_NAME\020\354\002\022\036\n" + + "\031PLACEMENT_STATUS_NAME_ALL\020\355\002\022\032\n" + + "\025PROGRAMMATIC_BUYER_ID\020\360\001\022\034\n" + + "\027PROGRAMMATIC_BUYER_NAME\020\361\001\022\030\n" + + "\024PROGRAMMATIC_CHANNEL\020\r" + + "\022\035\n" + + "\031PROGRAMMATIC_CHANNEL_NAME\020\016\022\033\n" + + "\026RENDERED_CREATIVE_SIZE\020\327\002\022\027\n" + + "\022REQUESTED_AD_SIZES\020\340\002\022\021\n" + + "\014REQUEST_TYPE\020\222\001\022\026\n" + + "\021REQUEST_TYPE_NAME\020\223\001\022$\n" + + "\037SERVER_SIDE_UNWRAPPING_ELIGIBLE\020\325\004\022\t\n" + + "\004SITE\020\203\003\022\021\n" + + "\014TARGETING_ID\020\350\001\022\023\n" + + "\016TARGETING_NAME\020\351\001\022\023\n" + + "\016TARGETING_TYPE\020\201\003\022\030\n" + + "\023TARGETING_TYPE_NAME\020\202\003\022\023\n" + + "\016TRAFFIC_SOURCE\020\204\003\022\030\n" + + "\023TRAFFIC_SOURCE_NAME\020\205\003\022\034\n" + + "\027UNIFIED_PRICING_RULE_ID\020\211\003\022\036\n" + + "\031UNIFIED_PRICING_RULE_NAME\020\212\003\022\020\n" + + "\013VIDEO_PLCMT\020\254\001\022\025\n" + + "\020VIDEO_PLCMT_NAME\020\255\001\022\010\n" + + "\004WEEK\020\005\022\033\n" + + "\026YIELD_GROUP_BUYER_NAME\020\270\001\022\023\n" + + "\016YIELD_GROUP_ID\020\266\001\022\025\n" + + "\020YIELD_GROUP_NAME\020\267\001\022\'\n" + + "\"LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID\020\220N\022\'\n" + + "\"LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID\020\221N\022\'\n" + + "\"LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID\020\222N\022\'\n" + + "\"LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID\020\223N\022\'\n" + + "\"LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID\020\224N\022\'\n" + + "\"LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID\020\225N\022\'\n" + + "\"LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID\020\226N\022\'\n" + + "\"LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID\020\227N\022\'\n" + + "\"LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID\020\230N\022\'\n" + + "\"LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID\020\231N\022(\n" + + "#LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID\020\232N\022(\n" + + "#LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID\020\233N\022(\n" + + "#LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID\020\234N\022(\n" + + "#LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID\020\235N\022(\n" + + "#LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID\020\236N\022#\n" + + "\036LINE_ITEM_CUSTOM_FIELD_0_VALUE\020\370U\022#\n" + + "\036LINE_ITEM_CUSTOM_FIELD_1_VALUE\020\371U\022#\n" + + "\036LINE_ITEM_CUSTOM_FIELD_2_VALUE\020\372U\022#\n" + + "\036LINE_ITEM_CUSTOM_FIELD_3_VALUE\020\373U\022#\n" + + "\036LINE_ITEM_CUSTOM_FIELD_4_VALUE\020\374U\022#\n" + + "\036LINE_ITEM_CUSTOM_FIELD_5_VALUE\020\375U\022#\n" + + "\036LINE_ITEM_CUSTOM_FIELD_6_VALUE\020\376U\022#\n" + + "\036LINE_ITEM_CUSTOM_FIELD_7_VALUE\020\377U\022#\n" + + "\036LINE_ITEM_CUSTOM_FIELD_8_VALUE\020\200V\022#\n" + + "\036LINE_ITEM_CUSTOM_FIELD_9_VALUE\020\201V\022$\n" + + "\037LINE_ITEM_CUSTOM_FIELD_10_VALUE\020\202V\022$\n" + + "\037LINE_ITEM_CUSTOM_FIELD_11_VALUE\020\203V\022$\n" + + "\037LINE_ITEM_CUSTOM_FIELD_12_VALUE\020\204V\022", + "$\n" + + "\037LINE_ITEM_CUSTOM_FIELD_13_VALUE\020\205V\022$\n" + + "\037LINE_ITEM_CUSTOM_FIELD_14_VALUE\020\206V\022#\n" + + "\036ORDER_CUSTOM_FIELD_0_OPTION_ID\020\340]\022#\n" + + "\036ORDER_CUSTOM_FIELD_1_OPTION_ID\020\341]\022#\n" + + "\036ORDER_CUSTOM_FIELD_2_OPTION_ID\020\342]\022#\n" + + "\036ORDER_CUSTOM_FIELD_3_OPTION_ID\020\343]\022#\n" + + "\036ORDER_CUSTOM_FIELD_4_OPTION_ID\020\344]\022#\n" + + "\036ORDER_CUSTOM_FIELD_5_OPTION_ID\020\345]\022#\n" + + "\036ORDER_CUSTOM_FIELD_6_OPTION_ID\020\346]\022#\n" + + "\036ORDER_CUSTOM_FIELD_7_OPTION_ID\020\347]\022#\n" + + "\036ORDER_CUSTOM_FIELD_8_OPTION_ID\020\350]\022#\n" + + "\036ORDER_CUSTOM_FIELD_9_OPTION_ID\020\351]\022$\n" + + "\037ORDER_CUSTOM_FIELD_10_OPTION_ID\020\352]\022$\n" + + "\037ORDER_CUSTOM_FIELD_11_OPTION_ID\020\353]\022$\n" + + "\037ORDER_CUSTOM_FIELD_12_OPTION_ID\020\354]\022$\n" + + "\037ORDER_CUSTOM_FIELD_13_OPTION_ID\020\355]\022$\n" + + "\037ORDER_CUSTOM_FIELD_14_OPTION_ID\020\356]\022\037\n" + + "\032ORDER_CUSTOM_FIELD_0_VALUE\020\310e\022\037\n" + + "\032ORDER_CUSTOM_FIELD_1_VALUE\020\311e\022\037\n" + + "\032ORDER_CUSTOM_FIELD_2_VALUE\020\312e\022\037\n" + + "\032ORDER_CUSTOM_FIELD_3_VALUE\020\313e\022\037\n" + + "\032ORDER_CUSTOM_FIELD_4_VALUE\020\314e\022\037\n" + + "\032ORDER_CUSTOM_FIELD_5_VALUE\020\315e\022\037\n" + + "\032ORDER_CUSTOM_FIELD_6_VALUE\020\316e\022\037\n" + + "\032ORDER_CUSTOM_FIELD_7_VALUE\020\317e\022\037\n" + + "\032ORDER_CUSTOM_FIELD_8_VALUE\020\320e\022\037\n" + + "\032ORDER_CUSTOM_FIELD_9_VALUE\020\321e\022 \n" + + "\033ORDER_CUSTOM_FIELD_10_VALUE\020\322e\022 \n" + + "\033ORDER_CUSTOM_FIELD_11_VALUE\020\323e\022 \n" + + "\033ORDER_CUSTOM_FIELD_12_VALUE\020\324e\022 \n" + + "\033ORDER_CUSTOM_FIELD_13_VALUE\020\325e\022 \n" + + "\033ORDER_CUSTOM_FIELD_14_VALUE\020\326e\022&\n" + + "!CREATIVE_CUSTOM_FIELD_0_OPTION_ID\020\260m\022&\n" + + "!CREATIVE_CUSTOM_FIELD_1_OPTION_ID\020\261m\022&\n" + + "!CREATIVE_CUSTOM_FIELD_2_OPTION_ID\020\262m\022&\n" + + "!CREATIVE_CUSTOM_FIELD_3_OPTION_ID\020\263m\022&\n" + + "!CREATIVE_CUSTOM_FIELD_4_OPTION_ID\020\264m\022&\n" + + "!CREATIVE_CUSTOM_FIELD_5_OPTION_ID\020\265m\022&\n" + + "!CREATIVE_CUSTOM_FIELD_6_OPTION_ID\020\266m\022&\n" + + "!CREATIVE_CUSTOM_FIELD_7_OPTION_ID\020\267m\022&\n" + + "!CREATIVE_CUSTOM_FIELD_8_OPTION_ID\020\270m\022&\n" + + "!CREATIVE_CUSTOM_FIELD_9_OPTION_ID\020\271m\022\'\n" + + "\"CREATIVE_CUSTOM_FIELD_10_OPTION_ID\020\272m\022\'\n" + + "\"CREATIVE_CUSTOM_FIELD_11_OPTION_ID\020\273m\022\'\n" + + "\"CREATIVE_CUSTOM_FIELD_12_OPTION_ID\020\274m\022\'\n" + + "\"CREATIVE_CUSTOM_FIELD_13_OPTION_ID\020\275m\022\'\n" + + "\"CREATIVE_CUSTOM_FIELD_14_OPTION_ID\020\276m\022\"\n" + + "\035CREATIVE_CUSTOM_FIELD_0_VALUE\020\230u\022\"\n" + + "\035CREATIVE_CUSTOM_FIELD_1_VALUE\020\231u\022\"\n" + + "\035CREATIVE_CUSTOM_FIELD_2_VALUE\020\232u\022\"\n" + + "\035CREATIVE_CUSTOM_FIELD_3_VALUE\020\233u\022\"\n" + + "\035CREATIVE_CUSTOM_FIELD_4_VALUE\020\234u\022\"\n" + + "\035CREATIVE_CUSTOM_FIELD_5_VALUE\020\235u\022\"\n" + + "\035CREATIVE_CUSTOM_FIELD_6_VALUE\020\236u\022\"\n" + + "\035CREATIVE_CUSTOM_FIELD_7_VALUE\020\237u\022\"\n" + + "\035CREATIVE_CUSTOM_FIELD_8_VALUE\020\240u\022\"\n" + + "\035CREATIVE_CUSTOM_FIELD_9_VALUE\020\241u\022#\n" + + "\036CREATIVE_CUSTOM_FIELD_10_VALUE\020\242u\022#\n" + + "\036CREATIVE_CUSTOM_FIELD_11_VALUE\020\243u\022#\n" + + "\036CREATIVE_CUSTOM_FIELD_12_VALUE\020\244u\022#\n" + + "\036CREATIVE_CUSTOM_FIELD_13_VALUE\020\245u\022#\n" + + "\036CREATIVE_CUSTOM_FIELD_14_VALUE\020\246u\0220\n" + + "+BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID\020\200}\0220\n" + + "+BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID\020\201}\0220\n" + + "+BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID\020\202}\0220\n" + + "+BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID\020\203}\0220\n" + + "+BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID\020\204}\0220\n" + + "+BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID\020\205}\0220\n" + + "+BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID\020\206}\0220\n" + + "+BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID\020\207}\0220\n" + + "+BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID\020\210}\0220\n" + + "+BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID\020\211}\0221\n" + + ",BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID\020\212}\0221\n" + + ",BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID\020\213}\0221\n" + + ",BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID\020\214}\0221\n" + + ",BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID\020\215}\0221\n" + + ",BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID\020\216}\022-\n" + + "\'BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_VALUE\020\350\204\001\022-\n" + + "\'BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_VALUE\020\351\204\001\022-\n" + + "\'BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_VALUE\020\352\204\001\022-\n" + + "\'BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_VALUE\020\353\204\001\022-\n" + + "\'BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_VALUE\020\354\204\001\022-\n" + + "\'BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_VALUE\020\355\204\001\022-\n" + + "\'BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_VALUE\020\356\204\001\022-\n" + + "\'BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_VALUE\020\357\204\001\022-\n" + + "\'BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_VALUE\020\360\204\001\022-\n" + + "\'BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_VALUE\020\361\204\001\022.\n" + + "(BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_VALUE\020\362\204\001\022.\n" + + "(BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_VALUE\020\363\204\001\022.\n" + + "(BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_VALUE\020\364\204\001\022.\n" + + "(BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_VALUE\020\365\204\001\022.\n" + + "(BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_VALUE\020\366\204\001\022-\n" + + "\'BACKFILL_ORDER_CUSTOM_FIELD_0_OPTION_ID\020\320\214\001\022-\n" + + "\'BACKFILL_ORDER_CUSTOM_FIELD_1_OPTION_ID\020\321\214\001\022-\n" + + "\'BACKFILL_ORDER_CUSTOM_FIELD_2_OPTION_ID\020\322\214\001\022-\n" + + "\'BACKFILL_ORDER_CUSTOM_FIELD_3_OPTION_ID\020\323\214\001\022-\n" + + "\'BACKFILL_ORDER_CUSTOM_FIELD_4_OPTION_ID\020\324\214\001\022-\n" + + "\'BACKFILL_ORDER_CUSTOM_FIELD_5_OPTION_ID\020\325\214\001\022-\n" + + "\'BACKFILL_ORDER_CUSTOM_FIELD_6_OPTION_ID\020\326\214\001\022-\n" + + "\'BACKFILL_ORDER_CUSTOM_FIELD_7_OPTION_ID\020\327\214\001\022-\n" + + "\'BACKFILL_ORDER_CUSTOM_FIELD_8_OPTION_ID\020\330\214\001\022-\n" + + "\'BACKFILL_ORDER_CUSTOM_FIELD_9_OPTION_ID\020\331\214\001\022.\n" + + "(BACKFILL_ORDER_CUSTOM_FIELD_10_OPTION_ID\020\332\214\001\022.\n" + + "(BACKFILL_ORDER_CUSTOM_FIELD_11_OPTION_ID\020\333\214\001\022.\n" + + "(BACKFILL_ORDER_CUSTOM_FIELD_12_OPTION_ID\020\334\214\001\022.\n" + + "(BACKFILL_ORDER_CUSTOM_FIELD_13_OPTION_ID\020\335\214\001\022.\n" + + "(BACKFILL_ORDER_CUSTOM_FIELD_14_OPTION_ID\020\336\214\001\022)\n" + + "#BACKFILL_ORDER_CUSTOM_FIELD_0_VALUE\020\270\224\001\022)\n" + + "#BACKFILL_ORDER_CUSTOM_FIELD_1_VALUE\020\271\224\001\022)\n" + + "#BACKFILL_ORDER_CUSTOM_FIELD_2_VALUE\020\272\224\001\022)\n" + + "#BACKFILL_ORDER_CUSTOM_FIELD_3_VALUE\020\273\224\001\022)\n" + + "#BACKFILL_ORDER_CUSTOM_FIELD_4_VALUE\020\274\224\001\022)\n" + + "#BACKFILL_ORDER_CUSTOM_FIELD_5_VALUE\020\275\224\001\022)\n" + + "#BACKFILL_ORDER_CUSTOM_FIELD_6_VALUE\020\276\224\001\022)\n" + + "#BACKFILL_ORDER_CUSTOM_FIELD_7_VALUE\020\277\224\001\022)\n" + + "#BACKFILL_ORDER_CUSTOM_FIELD_8_VALUE\020\300\224\001\022)\n" + + "#BACKFILL_ORDER_CUSTOM_FIELD_9_VALUE\020\301\224\001\022*\n" + + "$BACKFILL_ORDER_CUSTOM_FIELD_10_VALUE\020\302\224\001\022*\n" + + "$BACKFILL_ORDER_CUSTOM_FIELD_11_VALUE\020\303\224\001\022*\n" + + "$BACKFILL_ORDER_CUSTOM_FIELD_12_VALUE\020\304\224\001\022*\n" + + "$BACKFILL_ORDER_CUSTOM_FIELD_13_VALUE\020\305\224\001\022*\n" + + "$BACKFILL_ORDER_CUSTOM_FIELD_14_VALUE\020\306\224\001\0220\n" + + "*BACKFILL_CREATIVE_CUSTOM_FIELD_0_OPTION_ID\020\240\234\001\0220\n" + + "*BACKFILL_CREATIVE_CUSTOM_FIELD_1_OPTION_ID\020\241\234\001\0220\n" + + "*BACKFILL_CREATIVE_CUSTOM_FIELD_2_OPTION_ID\020\242\234\001\0220\n" + + "*BACKFILL_CREATIVE_CUSTOM_FIELD_3_OPTION_ID\020\243\234\001\0220\n" + + "*BACKFILL_CREATIVE_CUSTOM_FIELD_4_OPTION_ID\020\244\234\001\0220\n" + + "*BACKFILL_CREATIVE_CUSTOM_FIELD_5_OPTION_ID\020\245\234\001\0220\n" + + "*BACKFILL_CREATIVE_CUSTOM_FIELD_6_OPTION_ID\020\246\234\001\0220\n" + + "*BACKFILL_CREATIVE_CUSTOM_FIELD_7_OPTION_ID\020\247\234\001\0220\n" + + "*BACKFILL_CREATIVE_CUSTOM_FIELD_8_OPTION_ID\020\250\234\001\0220\n" + + "*BACKFILL_CREATIVE_CUSTOM_FIELD_9_OPTION_ID\020\251\234\001\0221\n" + + "+BACKFILL_CREATIVE_CUSTOM_FIELD_10_OPTION_ID\020\252\234\001\0221\n" + + "+BACKFILL_CREATIVE_CUSTOM_FIELD_11_OPTION_ID\020\253\234\001\0221\n" + + "+BACKFILL_CREATIVE_CUSTOM_FIELD_12_OPTION_ID\020\254\234\001\0221\n" + + "+BACKFILL_CREATIVE_CUSTOM_FIELD_13_OPTION_ID\020\255\234\001\0221\n" + + "+BACKFILL_CREATIVE_CUSTOM_FIELD_14_OPTION_ID\020\256\234\001\022,\n" + + "&BACKFILL_CREATIVE_CUSTOM_FIELD_0_VALUE\020\210\244\001\022,\n" + + "&BACKFILL_CREATIVE_CUSTOM_FIELD_1_VALUE\020\211\244\001\022,\n" + + "&BACKFILL_CREATIVE_CUSTOM_FIELD_2_VALUE\020\212\244\001\022,\n" + + "&BACKFILL_CREATIVE_CUSTOM_FIELD_3_VALUE\020\213\244\001\022,\n" + + "&BACKFILL_CREATIVE_CUSTOM_FIELD_4_VALUE\020\214\244\001\022,\n" + + "&BACKFILL_CREATIVE_CUSTOM_FIELD_5_VALUE\020\215\244\001\022,\n" + + "&BACKFILL_CREATIVE_CUSTOM_FIELD_6_VALUE\020\216\244\001\022,\n" + + "&BACKFILL_CREATIVE_CUSTOM_FIELD_7_VALUE\020\217\244\001\022,\n" + + "&BACKFILL_CREATIVE_CUSTOM_FIELD_8_VALUE\020\220\244\001\022,\n" + + "&BACKFILL_CREATIVE_CUSTOM_FIELD_9_VALUE\020\221\244\001\022-\n" + + "\'BACKFILL_CREATIVE_CUSTOM_FIELD_10_VALUE\020\222\244\001\022-\n" + + "\'BACKFILL_CREATIVE_CUSTOM_FIELD_11_VALUE\020\223\244\001\022-\n" + + "\'BACKFILL_CREATIVE_CUSTOM_FIELD_12_VALUE\020\224\244\001\022-\n" + + "\'BACKFILL_CREATIVE_CUSTOM_FIELD_13_VALUE\020\225\244\001\022-\n" + + "\'BACKFILL_CREATIVE_CUSTOM_FIELD_14_VALUE\020\226\244\001\022!\n" + + "\033CUSTOM_DIMENSION_0_VALUE_ID\020\240\215\006\022!\n" + + "\033CUSTOM_DIMENSION_1_VALUE_ID\020\241\215\006\022!\n" + + "\033CUSTOM_DIMENSION_2_VALUE_ID\020\242\215\006\022!\n" + + "\033CUSTOM_DIMENSION_3_VALUE_ID\020\243\215\006\022!\n" + + "\033CUSTOM_DIMENSION_4_VALUE_ID\020\244\215\006\022!\n" + + "\033CUSTOM_DIMENSION_5_VALUE_ID\020\245\215\006\022!\n" + + "\033CUSTOM_DIMENSION_6_VALUE_ID\020\246\215\006\022!\n" + + "\033CUSTOM_DIMENSION_7_VALUE_ID\020\247\215\006\022!\n" + + "\033CUSTOM_DIMENSION_8_VALUE_ID\020\250\215\006\022!\n" + + "\033CUSTOM_DIMENSION_9_VALUE_ID\020\251\215\006\022\036\n" + + "\030CUSTOM_DIMENSION_0_VALUE\020\210\225\006\022\036\n" + + "\030CUSTOM_DIMENSION_1_VALUE\020\211\225\006\022\036\n" + + "\030CUSTOM_DIMENSION_2_VALUE\020\212\225\006\022\036\n" + + "\030CUSTOM_DIMENSION_3_VALUE\020\213\225\006\022\036\n" + + "\030CUSTOM_DIMENSION_4_VALUE\020\214\225\006\022\036\n" + + "\030CUSTOM_DIMENSION_5_VALUE\020\215\225\006\022\036\n" + + "\030CUSTOM_DIMENSION_6_VALUE\020\216\225\006\022\036\n" + + "\030CUSTOM_DIMENSION_7_VALUE\020\217\225\006\022\036\n" + + "\030CUSTOM_DIMENSION_8_VALUE\020\220\225\006\022\036\n" + + "\030CUSTOM_DIMENSION_9_VALUE\020\221\225\006\"\2362\n" + + "\006Metric\022\026\n" + + "\022METRIC_UNSPECIFIED\020\000\022%\n" + + "!ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME\020=\022$\n" + + " ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS\020:\022&\n" + + "\"ACTIVE_VIEW_MEASURABLE_IMPRESSIONS\0209\022+\n" + + "\'ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE\020<\022$\n" + + " ACTIVE_VIEW_VIEWABLE_IMPRESSIONS\0208\022)\n" + + "%ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE\020;\022-\n" + + ")ADSENSE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME\020I\022,\n" + + "(ADSENSE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS\020F\022.\n" + + "*ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS\020E\0223\n" + + "/ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE\020H\022,\n" + + "(ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS\020D\0221\n" + + "-ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE\020G\022\030\n" + + "\024ADSENSE_AVERAGE_ECPM\020\032\022\022\n" + + "\016ADSENSE_CLICKS\020\027\022\017\n" + + "\013ADSENSE_CTR\020\030\022\027\n" + + "\023ADSENSE_IMPRESSIONS\020\026\022\032\n" + + "\026ADSENSE_PERCENT_CLICKS\020\034\022\037\n" + + "\033ADSENSE_PERCENT_IMPRESSIONS\020\033\022\033\n" + + "\027ADSENSE_PERCENT_REVENUE\020\035\022\'\n" + + "#ADSENSE_PERCENT_REVENUE_WITHOUT_CPD\020\036\022\034\n" + + "\030ADSENSE_RESPONSES_SERVED\020)\022\023\n" + + "\017ADSENSE_REVENUE\020\031\0221\n" + + "-AD_EXCHANGE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME\020O\0220\n" + + ",AD_EXCHANGE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS\020L\0222\n" + + ".AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS\020K\0227\n" + + "3AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE\020N\0220\n" + + ",AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS\020J\0225\n" + + "1AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE\020M\022\034\n" + + "\030AD_EXCHANGE_AVERAGE_ECPM\020\022\022\026\n" + + "\022AD_EXCHANGE_CLICKS\020\017\022\023\n" + + "\017AD_EXCHANGE_CTR\020\020\022\033\n" + + "\027AD_EXCHANGE_IMPRESSIONS\020\016\022\036\n" + + "\032AD_EXCHANGE_PERCENT_CLICKS\020\024\022#\n" + + "\037AD_EXCHANGE_PERCENT_IMPRESSIONS\020\023\022\037\n" + + "\033AD_EXCHANGE_PERCENT_REVENUE\020\025\022+\n" + + "\'AD_EXCHANGE_PERCENT_REVENUE_WITHOUT_CPD\020\037\022 \n" + + "\034AD_EXCHANGE_RESPONSES_SERVED\020*\022\027\n" + + "\023AD_EXCHANGE_REVENUE\020\021\022\017\n" + + "\013AD_REQUESTS\020&\022/\n" + + "+AD_SERVER_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME\020C\022.\n" + + "*AD_SERVER_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS\020@\0220\n" + + ",AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS\020?\0225\n" + + "1AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE\020B\022.\n" + + "*AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS\020>\0223\n" + + "/AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE\020A\022\032\n" + + "\026AD_SERVER_AVERAGE_ECPM\020\"\022&\n" + + "\"AD_SERVER_AVERAGE_ECPM_WITHOUT_CPD\020\n" + + "\022*\n" + + "%AD_SERVER_BEGIN_TO_RENDER_IMPRESSIONS\020\206\002\022\024\n" + + "\020AD_SERVER_CLICKS\020\007\022\031\n" + + "\025AD_SERVER_CPD_REVENUE\020 \022\021\n\r" + + "AD_SERVER_CTR\020\010\022\031\n" + + "\025AD_SERVER_IMPRESSIONS\020\006\022\034\n" + + "\030AD_SERVER_PERCENT_CLICKS\020\014\022!\n" + + "\035AD_SERVER_PERCENT_IMPRESSIONS\020\013\022\035\n" + + "\031AD_SERVER_PERCENT_REVENUE\020#\022)\n" + + "%AD_SERVER_PERCENT_REVENUE_WITHOUT_CPD\020\r" + + "\022\036\n" + + "\032AD_SERVER_RESPONSES_SERVED\020(\022\025\n" + + "\021AD_SERVER_REVENUE\020!\022!\n" + + "\035AD_SERVER_REVENUE_WITHOUT_CPD\020\t\022\032\n" + + "\025AD_SERVER_TRACKED_ADS\020\210\002\0225\n" + + "0AD_SERVER_UNFILTERED_BEGIN_TO_RENDER_IMPRESSIONS\020\205\002\022 \n" + + "\033AD_SERVER_UNFILTERED_CLICKS\020\203\002\022%\n" + + " AD_SERVER_UNFILTERED_IMPRESSIONS\020\204\002\022%\n" + + " AD_SERVER_UNFILTERED_TRACKED_ADS\020\207\002\022\020\n" + + "\014AVERAGE_ECPM\020%\022\034\n" + + "\030AVERAGE_ECPM_WITHOUT_CPD\020\005\022\n\n" + + "\006CLICKS\020\002\022\025\n" + + "\021CODE_SERVED_COUNT\020,\022\007\n" + + "\003CTR\020\003\022-\n" + + "(GOOGLE_SOLD_AUCTION_COVIEWED_IMPRESSIONS\020\201\001\022$\n" + + "\037GOOGLE_SOLD_AUCTION_IMPRESSIONS\020\200\001\022%\n" + + " GOOGLE_SOLD_COVIEWED_IMPRESSIONS\020\203\001\022\034\n" + + "\027GOOGLE_SOLD_IMPRESSIONS\020\202\001\0220\n" + + ",GOOGLE_SOLD_RESERVATION_COVIEWED_IMPRESSIONS\020\177\022\'\n" + + "#GOOGLE_SOLD_RESERVATION_IMPRESSIONS\020~\022\017\n" + + "\013IMPRESSIONS\020\001\022&\n" + + "!PARTNER_SALES_FILLED_POD_REQUESTS\020\207\001\022\034\n" + + "\027PARTNER_SALES_FILL_RATE\020\210\001\022%\n" + + " PARTNER_SALES_PARTNER_MATCH_RATE\020\211\001\022\032\n" + + "\025PARTNER_SALES_QUERIES\020\204\001\022\'\n" + + "\"PARTNER_SALES_UNFILLED_IMPRESSIONS\020\205\001\022$\n" + + "\037PARTNER_SALES_UNMATCHED_QUERIES\020\206\001\022\034\n" + + "\030PARTNER_SOLD_CODE_SERVED\020}\022%\n" + + "!PARTNER_SOLD_COVIEWED_IMPRESSIONS\020|\022\034\n" + + "\030PARTNER_SOLD_IMPRESSIONS\020{\022&\n" + + "!PROGRAMMATIC_ELIGIBLE_AD_REQUESTS\020\261\001\022\034\n" + + "\027PROGRAMMATIC_MATCH_RATE\020\262\001\022\"\n" + + "\035PROGRAMMATIC_RESPONSES_SERVED\020\260\001\022\024\n" + + "\020RESPONSES_SERVED\020\'\022\013\n" + + "\007REVENUE\020$\022\027\n" + + "\023REVENUE_WITHOUT_CPD\020\004\022.\n" + + ")SERVER_SIDE_UNWRAPPING_AVERAGE_LATENCY_MS\020\262\003\022$\n" + + "\037SERVER_SIDE_UNWRAPPING_CALLOUTS\020\263\003\022+\n" + + "&SERVER_SIDE_UNWRAPPING_EMPTY_RESPONSES\020\264\003\022+\n" + + "&SERVER_SIDE_UNWRAPPING_ERROR_RESPONSES\020\265\003\0220\n" + + "+SERVER_SIDE_UNWRAPPING_SUCCESSFUL_RESPONSES\020\266\003\022$\n" + + "\037SERVER_SIDE_UNWRAPPING_TIMEOUTS\020\267\003\022\030\n" + + "\024UNFILLED_IMPRESSIONS\020-\022\031\n" + + "\025UNMATCHED_AD_REQUESTS\020+\022*\n" + + "&USER_MESSAGES_OFFERWALL_MESSAGES_SHOWN\020y\0222\n" + + ".USER_MESSAGES_OFFERWALL_SUCCESSFUL_ENGAGEMENTS\020z\022.\n" + + "*VIDEO_INTERACTION_AVERAGE_INTERACTION_RATE\020\\\022\037\n" + + "\033VIDEO_INTERACTION_COLLAPSES\020]\022\035\n" + + "\031VIDEO_INTERACTION_EXPANDS\020_\022\"\n" + + "\036VIDEO_INTERACTION_FULL_SCREENS\020`\022\033\n" + + "\027VIDEO_INTERACTION_MUTES\020a\022\034\n" + + "\030VIDEO_INTERACTION_PAUSES\020b\022\035\n" + + "\031VIDEO_INTERACTION_RESUMES\020c\022\035\n" + + "\031VIDEO_INTERACTION_REWINDS\020d\022\035\n" + + "\031VIDEO_INTERACTION_UNMUTES\020e\022!\n" + + "\035VIDEO_INTERACTION_VIDEO_SKIPS\020f\022$\n" + + "\037VIDEO_REAL_TIME_CREATIVE_SERVES\020\213\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_100_COUNT\020\217\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_101_COUNT\020\220\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_102_COUNT\020\221\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_200_COUNT\020\222\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_201_COUNT\020\223\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_202_COUNT\020\224\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_203_COUNT\020\225\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_300_COUNT\020\226\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_301_COUNT\020\227\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_302_COUNT\020\230\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_303_COUNT\020\231\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_400_COUNT\020\232\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_401_COUNT\020\233\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_402_COUNT\020\234\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_403_COUNT\020\235\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_405_COUNT\020\236\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_406_COUNT\020\237\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_407_COUNT\020\240\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_408_COUNT\020\241\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_409_COUNT\020\242\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_410_COUNT\020\243\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_500_COUNT\020\244\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_501_COUNT\020\245\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_502_COUNT\020\246\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_503_COUNT\020\247\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_600_COUNT\020\250\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_601_COUNT\020\251\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_602_COUNT\020\252\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_603_COUNT\020\253\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_604_COUNT\020\254\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_900_COUNT\020\255\001\022$\n" + + "\037VIDEO_REAL_TIME_ERROR_901_COUNT\020\256\001\022 \n" + + "\033VIDEO_REAL_TIME_IMPRESSIONS\020\212\001\022$\n" + + "\037VIDEO_REAL_TIME_MATCHED_QUERIES\020\214\001\022&\n" + + "!VIDEO_REAL_TIME_TOTAL_ERROR_COUNT\020\257\001\022\"\n" + + "\035VIDEO_REAL_TIME_TOTAL_QUERIES\020\216\001\022&\n" + + "!VIDEO_REAL_TIME_UNMATCHED_QUERIES\020\215\001\022\037\n" + + "\033VIDEO_VIEWERSHIP_AUTO_PLAYS\020g\022&\n" + + "\"VIDEO_VIEWERSHIP_AVERAGE_VIEW_RATE\020h\022&\n" + + "\"VIDEO_VIEWERSHIP_AVERAGE_VIEW_TIME\020i\022#\n" + + "\037VIDEO_VIEWERSHIP_CLICK_TO_PLAYS\020j\022\036\n" + + "\032VIDEO_VIEWERSHIP_COMPLETES\020k\022$\n" + + " VIDEO_VIEWERSHIP_COMPLETION_RATE\020l\022\"\n" + + "\036VIDEO_VIEWERSHIP_ENGAGED_VIEWS\020m\022$\n" + + " VIDEO_VIEWERSHIP_FIRST_QUARTILES\020n\022\036\n" + + "\032VIDEO_VIEWERSHIP_MIDPOINTS\020o\022\'\n" + + "#VIDEO_VIEWERSHIP_SKIP_BUTTONS_SHOWN\020p\022\033\n" + + "\027VIDEO_VIEWERSHIP_STARTS\020q\022$\n" + + " VIDEO_VIEWERSHIP_THIRD_QUARTILES\020r\022&\n" + + "\"VIDEO_VIEWERSHIP_TOTAL_ERROR_COUNT\020s\022%\n" + + "!VIDEO_VIEWERSHIP_TOTAL_ERROR_RATE\020^\022!\n" + + "\035VIDEO_VIEWERSHIP_VIDEO_LENGTH\020t\022&\n" + + "\"VIDEO_VIEWERSHIP_VIEW_THROUGH_RATE\020u\022\034\n" + + "\030YIELD_GROUP_AUCTIONS_WON\020P\022\024\n" + + "\020YIELD_GROUP_BIDS\020Q\022\037\n" + + "\033YIELD_GROUP_BIDS_IN_AUCTION\020R\022\030\n" + + "\024YIELD_GROUP_CALLOUTS\020S\022\035\n" + + "\031YIELD_GROUP_ESTIMATED_CPM\020X\022!\n" + + "\035YIELD_GROUP_ESTIMATED_REVENUE\020W\022\033\n" + + "\027YIELD_GROUP_IMPRESSIONS\020U\022#\n" + + "\037YIELD_GROUP_MEDIATION_FILL_RATE\020Y\022)\n" + + "%YIELD_GROUP_MEDIATION_MATCHED_QUERIES\020V\022#\n" + + "\037YIELD_GROUP_MEDIATION_PASSBACKS\020v\022*\n" + + "&YIELD_GROUP_MEDIATION_THIRD_PARTY_ECPM\020Z\022$\n" + + " YIELD_GROUP_SUCCESSFUL_RESPONSES\020T\"\227\001\n" + + "\017MetricValueType\022\013\n" + + "\007PRIMARY\020\000\022\034\n" + + "\030PRIMARY_PERCENT_OF_TOTAL\020\001\022\016\n\n" + + "COMPARISON\020\002\022\037\n" + + "\033COMPARISON_PERCENT_OF_TOTAL\020\003\022\023\n" + + "\017ABSOLUTE_CHANGE\020\004\022\023\n" + + "\017RELATIVE_CHANGE\020\005\"9\n\n" + + "ReportType\022\033\n" + + "\027REPORT_TYPE_UNSPECIFIED\020\000\022\016\n\n" + + "HISTORICAL\020\001\".\n\n" + + "Visibility\022\n\n" + + "\006HIDDEN\020\000\022\t\n" + + "\005DRAFT\020\001\022\t\n" + + "\005SAVED\020\002\"i\n" + + "\016TimeZoneSource\022 \n" + + "\034TIME_ZONE_SOURCE_UNSPECIFIED\020\000\022\r\n" + + "\tPUBLISHER\020\001\022\017\n" + + "\013AD_EXCHANGE\020\002\022\007\n" + + "\003UTC\020\003\022\014\n" + + "\010PROVIDED\020\004:_\352A\\\n" + + "\037admanager.googleapis.com/Report\022(networks/" + + "{network_code}/reports/{report}*\007reports2\006report\"\261\007\n" + + "\020ReportDefinition\022B\n\n" + + "dimensions\030\001" + + " \003(\0162).google.ads.admanager.v1.Report.DimensionB\003\340A\002\022<\n" + + "\007metrics\030\002 \003(\0162&.goo" + + "gle.ads.admanager.v1.Report.MetricB\003\340A\002\022<\n" + + "\007filters\030\003" + + " \003(\0132&.google.ads.admanager.v1.Report.FilterB\003\340A\001\022M\n" + + "\020time_zone_source\030\024" + + " \001(\0162..google.ads.admanager.v1.Report.TimeZoneSourceB\003\340A\001\022\026\n" + + "\ttime_zone\030\004 \001(\tB\003\340A\001\022\032\n\r" + + "currency_code\030\005 \001(\tB\003\340A\001\022B\n\n" + + "date_range\030\006" + + " \001(\0132).google.ads.admanager.v1.Report.DateRangeB\003\340A\002\022R\n" + + "\025comparison_date_range\030\t" + + " \001(\0132).google.ads.admanager.v1.Report.DateRangeB\003\340A\001H\000\210\001\001\022%\n" + + "\030custom_dimension_key_ids\030\007 \003(\003B\003\340A\001\022\'\n" + + "\032line_item_custom_field_ids\030\013 \003(\003B\003\340A\001\022#\n" + + "\026order_custom_field_ids\030\014 \003(\003B\003\340A\001\022&\n" + + "\031creative_custom_field_ids\030\r" + + " \003(\003B\003\340A\001\022D\n" + + "\013report_type\030\010 \001" + + "(\0162*.google.ads.admanager.v1.Report.ReportTypeB\003\340A\002\022Q\n" + + "\022time_period_column\030\n" + + " \001(\01620.google.ads.admanager.v1.Report.TimePeriodColumnB\003\340A\001\0228\n" + + "\005flags\030\016 \003(\0132$.google.ads.admanager.v1.Report.FlagB\003\340A\001\0228\n" + + "\005sorts\030\017 \003(\0132$.google.ads.admanager.v1.Report.SortB\003\340A\001B\030\n" + + "\026_comparison_date_range\"\242\002\n" + + "\017ScheduleOptions\0223\n" + + "\010schedule\030\001 \001(\0132!.google.ads.admanager.v1.Schedule\022V\n" + + "\022delivery_condition\030\002" + + " \001(\0162:.google.ads.admanager.v1.ScheduleOptions.DeliveryCondition\0228\n" + + "\005flags\030\003 \003(\0132$.google.ads.admanager.v1.Report.FlagB\003\340A\001\"H\n" + + "\021DeliveryCondition\022\t\n" + + "\005NEVER\020\000\022\n\n" + + "\006ALWAYS\020\001\022\034\n" + + "\030WHEN_FLAG_CONDITIONS_MET\020\002\"\213\005\n" + + "\010Schedule\022K\n" + + "\017weekly_schedule\030\006" + + " \001(\01320.google.ads.admanager.v1.Schedule.WeeklyScheduleH\000\022M\n" + + "\020monthly_schedule\030\007" + + " \001(\01321.google.ads.admanager.v1.Schedule.MonthlyScheduleH\000\022%\n\n" + + "start_date\030\001 \001(\0132\021.google.type.Date\022#\n" + + "\010end_date\030\002 \001(\0132\021.google.type.Date\022>\n" + + "\tfrequency\030\003 \001(\0162+.google.ads.admanager.v1.Schedule.Frequency\022*\n\n" + + "start_time\030\004 \001(\0132\026.google.type.TimeOfDay\032G\n" + + "\016WeeklySchedule\0225\n" + + "\025weekly_scheduled_days\030\001 \003(\0162\026.google.type.DayOfWeek\0321\n" + + "\017MonthlySchedule\022\036\n" + + "\026monthly_scheduled_days\030\001 \003(\005\"\230\001\n" + + "\tFrequency\022\031\n" + + "\025FREQUENCY_UNSPECIFIED\020\000\022\n\n" + + "\006HOURLY\020\001\022\023\n" + + "\017TWO_TIMES_DAILY\020\002\022\025\n" + + "\021THREE_TIMES_DAILY\020\003\022\024\n" + + "\020FOUR_TIMES_DAILY\020\004\022\t\n" + + "\005DAILY\020\005\022\n\n" + + "\006WEEKLY\020\006\022\013\n" + + "\007MONTHLY\020", + "\007B\024\n\022frequency_scheduleB\307\001\n\033com.google.a" + + "ds.admanager.v1B\023ReportMessagesProtoP\001Z@" + + "google.golang.org/genproto/googleapis/ad" + + "s/admanager/v1;admanager\252\002\027Google.Ads.Ad" + + "Manager.V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032G" + + "oogle::Ads::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.type.DateProto.getDescriptor(), + com.google.type.DayOfWeekProto.getDescriptor(), + com.google.type.TimeOfDayProto.getDescriptor(), + }); + internal_static_google_ads_admanager_v1_Report_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_Report_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_Report_descriptor, + new java.lang.String[] { + "Name", + "ReportId", + "Visibility", + "ReportDefinition", + "DisplayName", + "UpdateTime", + "CreateTime", + "Locale", + "ScheduleOptions", + }); + internal_static_google_ads_admanager_v1_Report_Value_descriptor = + internal_static_google_ads_admanager_v1_Report_descriptor.getNestedTypes().get(0); + internal_static_google_ads_admanager_v1_Report_Value_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_Report_Value_descriptor, + new java.lang.String[] { + "IntValue", + "DoubleValue", + "StringValue", + "BoolValue", + "IntListValue", + "StringListValue", + "BytesValue", + "Value", + }); + internal_static_google_ads_admanager_v1_Report_Value_IntList_descriptor = + internal_static_google_ads_admanager_v1_Report_Value_descriptor.getNestedTypes().get(0); + internal_static_google_ads_admanager_v1_Report_Value_IntList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_Report_Value_IntList_descriptor, + new java.lang.String[] { + "Values", + }); + internal_static_google_ads_admanager_v1_Report_Value_StringList_descriptor = + internal_static_google_ads_admanager_v1_Report_Value_descriptor.getNestedTypes().get(1); + internal_static_google_ads_admanager_v1_Report_Value_StringList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_Report_Value_StringList_descriptor, + new java.lang.String[] { + "Values", + }); + internal_static_google_ads_admanager_v1_Report_Sort_descriptor = + internal_static_google_ads_admanager_v1_Report_descriptor.getNestedTypes().get(1); + internal_static_google_ads_admanager_v1_Report_Sort_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_Report_Sort_descriptor, + new java.lang.String[] { + "Field", "Descending", "Slice", "TimePeriodIndex", "MetricValueType", + }); + internal_static_google_ads_admanager_v1_Report_DataTable_descriptor = + internal_static_google_ads_admanager_v1_Report_descriptor.getNestedTypes().get(2); + internal_static_google_ads_admanager_v1_Report_DataTable_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_Report_DataTable_descriptor, + new java.lang.String[] {}); + internal_static_google_ads_admanager_v1_Report_DataTable_Row_descriptor = + internal_static_google_ads_admanager_v1_Report_DataTable_descriptor.getNestedTypes().get(0); + internal_static_google_ads_admanager_v1_Report_DataTable_Row_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_Report_DataTable_Row_descriptor, + new java.lang.String[] { + "DimensionValues", "MetricValueGroups", + }); + internal_static_google_ads_admanager_v1_Report_DataTable_MetricValueGroup_descriptor = + internal_static_google_ads_admanager_v1_Report_DataTable_descriptor.getNestedTypes().get(1); + internal_static_google_ads_admanager_v1_Report_DataTable_MetricValueGroup_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_Report_DataTable_MetricValueGroup_descriptor, + new java.lang.String[] { + "PrimaryValues", + "PrimaryPercentOfTotalValues", + "ComparisonValues", + "ComparisonPercentOfTotalValues", + "AbsoluteChangeValues", + "RelativeChangeValues", + "FlagValues", + }); + internal_static_google_ads_admanager_v1_Report_Field_descriptor = + internal_static_google_ads_admanager_v1_Report_descriptor.getNestedTypes().get(3); + internal_static_google_ads_admanager_v1_Report_Field_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_Report_Field_descriptor, + new java.lang.String[] { + "Dimension", "Metric", "Field", + }); + internal_static_google_ads_admanager_v1_Report_Slice_descriptor = + internal_static_google_ads_admanager_v1_Report_descriptor.getNestedTypes().get(4); + internal_static_google_ads_admanager_v1_Report_Slice_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_Report_Slice_descriptor, + new java.lang.String[] { + "Dimension", "Value", + }); + internal_static_google_ads_admanager_v1_Report_Filter_descriptor = + internal_static_google_ads_admanager_v1_Report_descriptor.getNestedTypes().get(5); + internal_static_google_ads_admanager_v1_Report_Filter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_Report_Filter_descriptor, + new java.lang.String[] { + "FieldFilter", "NotFilter", "AndFilter", "OrFilter", "Type", + }); + internal_static_google_ads_admanager_v1_Report_Filter_FieldFilter_descriptor = + internal_static_google_ads_admanager_v1_Report_Filter_descriptor.getNestedTypes().get(0); + internal_static_google_ads_admanager_v1_Report_Filter_FieldFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_Report_Filter_FieldFilter_descriptor, + new java.lang.String[] { + "Field", "Operation", "Values", "Slice", "TimePeriodIndex", "MetricValueType", + }); + internal_static_google_ads_admanager_v1_Report_Filter_FilterList_descriptor = + internal_static_google_ads_admanager_v1_Report_Filter_descriptor.getNestedTypes().get(1); + internal_static_google_ads_admanager_v1_Report_Filter_FilterList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_Report_Filter_FilterList_descriptor, + new java.lang.String[] { + "Filters", + }); + internal_static_google_ads_admanager_v1_Report_Flag_descriptor = + internal_static_google_ads_admanager_v1_Report_descriptor.getNestedTypes().get(6); + internal_static_google_ads_admanager_v1_Report_Flag_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_Report_Flag_descriptor, + new java.lang.String[] { + "Filters", "Name", + }); + internal_static_google_ads_admanager_v1_Report_DateRange_descriptor = + internal_static_google_ads_admanager_v1_Report_descriptor.getNestedTypes().get(7); + internal_static_google_ads_admanager_v1_Report_DateRange_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_Report_DateRange_descriptor, + new java.lang.String[] { + "Fixed", "Relative", "DateRangeType", + }); + internal_static_google_ads_admanager_v1_Report_DateRange_FixedDateRange_descriptor = + internal_static_google_ads_admanager_v1_Report_DateRange_descriptor.getNestedTypes().get(0); + internal_static_google_ads_admanager_v1_Report_DateRange_FixedDateRange_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_Report_DateRange_FixedDateRange_descriptor, + new java.lang.String[] { + "StartDate", "EndDate", + }); + internal_static_google_ads_admanager_v1_ReportDefinition_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_ads_admanager_v1_ReportDefinition_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ReportDefinition_descriptor, + new java.lang.String[] { + "Dimensions", + "Metrics", + "Filters", + "TimeZoneSource", + "TimeZone", + "CurrencyCode", + "DateRange", + "ComparisonDateRange", + "CustomDimensionKeyIds", + "LineItemCustomFieldIds", + "OrderCustomFieldIds", + "CreativeCustomFieldIds", + "ReportType", + "TimePeriodColumn", + "Flags", + "Sorts", + }); + internal_static_google_ads_admanager_v1_ScheduleOptions_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_ads_admanager_v1_ScheduleOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ScheduleOptions_descriptor, + new java.lang.String[] { + "Schedule", "DeliveryCondition", "Flags", + }); + internal_static_google_ads_admanager_v1_Schedule_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_ads_admanager_v1_Schedule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_Schedule_descriptor, + new java.lang.String[] { + "WeeklySchedule", + "MonthlySchedule", + "StartDate", + "EndDate", + "Frequency", + "StartTime", + "FrequencySchedule", + }); + internal_static_google_ads_admanager_v1_Schedule_WeeklySchedule_descriptor = + internal_static_google_ads_admanager_v1_Schedule_descriptor.getNestedTypes().get(0); + internal_static_google_ads_admanager_v1_Schedule_WeeklySchedule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_Schedule_WeeklySchedule_descriptor, + new java.lang.String[] { + "WeeklyScheduledDays", + }); + internal_static_google_ads_admanager_v1_Schedule_MonthlySchedule_descriptor = + internal_static_google_ads_admanager_v1_Schedule_descriptor.getNestedTypes().get(1); + internal_static_google_ads_admanager_v1_Schedule_MonthlySchedule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_Schedule_MonthlySchedule_descriptor, + new java.lang.String[] { + "MonthlyScheduledDays", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.type.DateProto.getDescriptor(); + com.google.type.DayOfWeekProto.getDescriptor(); + com.google.type.TimeOfDayProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportOrBuilder.java index d81769b091a4..63e65fa8096f 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportOrBuilder.java @@ -14,7 +14,7 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/admanager/v1/report_service.proto +// source: google/ads/admanager/v1/report_messages.proto // Protobuf Java Version: 3.25.8 package com.google.ads.admanager.v1; diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportServiceProto.java index 1cf6937dc5d7..fce5564fc9c5 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportServiceProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportServiceProto.java @@ -28,70 +28,6 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_ads_admanager_v1_Report_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_ads_admanager_v1_Report_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_ads_admanager_v1_Report_Value_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_ads_admanager_v1_Report_Value_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_ads_admanager_v1_Report_Value_IntList_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_ads_admanager_v1_Report_Value_IntList_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_ads_admanager_v1_Report_Value_StringList_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_ads_admanager_v1_Report_Value_StringList_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_ads_admanager_v1_Report_Sort_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_ads_admanager_v1_Report_Sort_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_ads_admanager_v1_Report_DataTable_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_ads_admanager_v1_Report_DataTable_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_ads_admanager_v1_Report_DataTable_Row_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_ads_admanager_v1_Report_DataTable_Row_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_ads_admanager_v1_Report_DataTable_MetricValueGroup_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_ads_admanager_v1_Report_DataTable_MetricValueGroup_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_ads_admanager_v1_Report_Field_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_ads_admanager_v1_Report_Field_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_ads_admanager_v1_Report_Slice_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_ads_admanager_v1_Report_Slice_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_ads_admanager_v1_Report_Filter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_ads_admanager_v1_Report_Filter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_ads_admanager_v1_Report_Filter_FieldFilter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_ads_admanager_v1_Report_Filter_FieldFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_ads_admanager_v1_Report_Filter_FilterList_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_ads_admanager_v1_Report_Filter_FilterList_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_ads_admanager_v1_Report_Flag_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_ads_admanager_v1_Report_Flag_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_ads_admanager_v1_Report_DateRange_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_ads_admanager_v1_Report_DateRange_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_ads_admanager_v1_Report_DateRange_FixedDateRange_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_ads_admanager_v1_Report_DateRange_FixedDateRange_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_ads_admanager_v1_RunReportRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -132,26 +68,6 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_ads_admanager_v1_FetchReportResultRowsResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_ads_admanager_v1_FetchReportResultRowsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_ads_admanager_v1_ReportDefinition_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_ads_admanager_v1_ReportDefinition_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_ads_admanager_v1_ScheduleOptions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_ads_admanager_v1_ScheduleOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_ads_admanager_v1_Schedule_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_ads_admanager_v1_Schedule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_ads_admanager_v1_Schedule_WeeklySchedule_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_ads_admanager_v1_Schedule_WeeklySchedule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_ads_admanager_v1_Schedule_MonthlySchedule_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_ads_admanager_v1_Schedule_MonthlySchedule_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -163,906 +79,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n" + ",google/ads/admanager/v1/report_service" - + ".proto\022\027google.ads.admanager.v1\032\034google/" - + "api/annotations.proto\032\027google/api/client" - + ".proto\032\037google/api/field_behavior.proto\032" - + "\031google/api/resource.proto\032#google/longrunning/operations.proto\032" - + " google/protobuf/field_mask.proto\032\037google/protobuf/times" - + "tamp.proto\032\026google/type/date.proto\032\033goog" - + "le/type/dayofweek.proto\032\033google/type/timeofday.proto\"\361\343\001\n" - + "\006Report\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\010\022\026\n" - + "\treport_id\030\003 \001(\003B\003\340A\003\022C\n\n" - + "visibility\030\002" - + " \001(\0162*.google.ads.admanager.v1.Report.VisibilityB\003\340A\001\022I\n" - + "\021report_definition\030\004 " - + "\001(\0132).google.ads.admanager.v1.ReportDefinitionB\003\340A\002\022\031\n" - + "\014display_name\030\005 \001(\tB\003\340A\001\0224\n" - + "\013update_time\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" - + "\013create_time\030\007" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n" - + "\006locale\030\010 \001(\tB\003\340A\003\022G\n" - + "\020schedule_options\030\t \001(\0132(.goog" - + "le.ads.admanager.v1.ScheduleOptionsB\003\340A\001\032\323\002\n" - + "\005Value\022\023\n" - + "\tint_value\030\001 \001(\003H\000\022\026\n" - + "\014double_value\030\002 \001(\001H\000\022\026\n" - + "\014string_value\030\003 \001(\tH\000\022\024\n\n" - + "bool_value\030\004 \001(\010H\000\022G\n" - + "\016int_list_value\030\006" - + " \001(\0132-.google.ads.admanager.v1.Report.Value.IntListH\000\022M\n" - + "\021string_list_value\030\007 \001(" - + "\01320.google.ads.admanager.v1.Report.Value.StringListH\000\022\025\n" - + "\013bytes_value\030\010 \001(\014H\000\032\031\n" - + "\007IntList\022\016\n" - + "\006values\030\001 \003(\003\032\034\n\n" - + "StringList\022\016\n" - + "\006values\030\001 \003(\tB\007\n" - + "\005value\032\313\002\n" - + "\004Sort\0229\n" - + "\005field\030\001" - + " \001(\0132%.google.ads.admanager.v1.Report.FieldB\003\340A\002\022\027\n\n" - + "descending\030\002 \001(\010B\003\340A\001\022>\n" - + "\005slice\030\003" - + " \001(\0132%.google.ads.admanager.v1.Report.SliceB\003\340A\001H\000\210\001\001\022#\n" - + "\021time_period_index\030\004 \001(\005B\003\340A\001H\001\210\001\001\022T\n" - + "\021metric_value_type\030\005 " - + "\001(\0162/.google.ads.admanager.v1.Report.MetricValueTypeB\003\340A\001H\002\210\001\001B\010\n" - + "\006_sliceB\024\n" - + "\022_time_period_indexB\024\n" - + "\022_metric_value_type\032\211\005\n" - + "\tDataTable\032\237\001\n" - + "\003Row\022?\n" - + "\020dimension_values\030\001 \003(\0132%.google.ads.admanager.v1.Report.Value\022W\n" - + "\023metric_value_groups\030\002 \003(\0132:.googl" - + "e.ads.admanager.v1.Report.DataTable.MetricValueGroup\032\331\003\n" - + "\020MetricValueGroup\022=\n" - + "\016primary_values\030\001 \003(\0132%.google.ads.admanager.v1.Report.Value\022N\n" - + "\037primary_percent_of_total_values\030\002" - + " \003(\0132%.google.ads.admanager.v1.Report.Value\022@\n" - + "\021comparison_values\030\003 \003(\0132%.google.ads.admanager.v1.Report.Value\022Q\n" - + "\"comparison_percent_of_total_values\030\004" - + " \003(\0132%.google.ads.admanager.v1.Report.Value\022E\n" - + "\026absolute_change_values\030\005" - + " \003(\0132%.google.ads.admanager.v1.Report.Value\022E\n" - + "\026relative_change_values\030\006" - + " \003(\0132%.google.ads.admanager.v1.Report.Value\022\023\n" - + "\013flag_values\030\007 \003(\010\032\212\001\n" - + "\005Field\022>\n" - + "\tdimension\030\001 \001(\0162).google.ads.admanager.v1.Report.DimensionH\000\0228\n" - + "\006metric\030\002 \001(\0162&.google.ads.admanager.v1.Report.MetricH\000B\007\n" - + "\005field\032\205\001\n" - + "\005Slice\022A\n" - + "\tdimension\030\001" - + " \001(\0162).google.ads.admanager.v1.Report.DimensionB\003\340A\002\0229\n" - + "\005value\030\002 \001(" - + "\0132%.google.ads.admanager.v1.Report.ValueB\003\340A\002\032\366\007\n" - + "\006Filter\022J\n" - + "\014field_filter\030\001 \001(\01322" - + ".google.ads.admanager.v1.Report.Filter.FieldFilterH\000\022<\n\n" - + "not_filter\030\002 \001(\0132&.google.ads.admanager.v1.Report.FilterH\000\022G\n\n" - + "and_filter\030\003" - + " \001(\01321.google.ads.admanager.v1.Report.Filter.FilterListH\000\022F\n" - + "\tor_filter\030\004" - + " \001(\01321.google.ads.admanager.v1.Report.Filter.FilterListH\000\032\277\003\n" - + "\013FieldFilter\0229\n" - + "\005field\030\001" - + " \001(\0132%.google.ads.admanager.v1.Report.FieldB\003\340A\002\022H\n" - + "\toperation\030\002 \001(\01620.goog" - + "le.ads.admanager.v1.Report.Filter.OperationB\003\340A\002\022:\n" - + "\006values\030\003" - + " \003(\0132%.google.ads.admanager.v1.Report.ValueB\003\340A\002\022>\n" - + "\005slice\030\004 " - + "\001(\0132%.google.ads.admanager.v1.Report.SliceB\003\340A\001H\000\210\001\001\022#\n" - + "\021time_period_index\030\005 \001(\005B\003\340A\001H\001\210\001\001\022T\n" - + "\021metric_value_type\030\006 \001(\0162/.g" - + "oogle.ads.admanager.v1.Report.MetricValueTypeB\003\340A\001H\002\210\001\001B\010\n" - + "\006_sliceB\024\n" - + "\022_time_period_indexB\024\n" - + "\022_metric_value_type\032J\n\n" - + "FilterList\022<\n" - + "\007filters\030\001" - + " \003(\0132&.google.ads.admanager.v1.Report.FilterB\003\340A\002\"\272\001\n" - + "\tOperation\022\006\n" - + "\002IN\020\000\022\n\n" - + "\006NOT_IN\020\001\022\014\n" - + "\010CONTAINS\020\002\022\020\n" - + "\014NOT_CONTAINS\020\003\022\r\n" - + "\tLESS_THAN\020\004\022\024\n" - + "\020LESS_THAN_EQUALS\020\005\022\020\n" - + "\014GREATER_THAN\020\006\022\027\n" - + "\023GREATER_THAN_EQUALS\020\007\022\013\n" - + "\007BETWEEN\020\010\022\013\n" - + "\007MATCHES\020\t\022\017\n" - + "\013NOT_MATCHES\020\n" - + "B\006\n" - + "\004type\032W\n" - + "\004Flag\022<\n" - + "\007filters\030\001" - + " \003(\0132&.google.ads.admanager.v1.Report.FilterB\003\340A\002\022\021\n" - + "\004name\030\002 \001(\tB\003\340A\001\032\330\006\n" - + "\tDateRange\022I\n" - + "\005fixed\030\001 \001(\01328.google.ads.admana" - + "ger.v1.Report.DateRange.FixedDateRangeH\000\022O\n" - + "\010relative\030\002 \001(\0162;.google.ads.admanage" - + "r.v1.Report.DateRange.RelativeDateRangeH\000\032f\n" - + "\016FixedDateRange\022*\n\n" - + "start_date\030\001 \001(\0132\021.google.type.DateB\003\340A\002\022(\n" - + "\010end_date\030\002 \001(\0132\021.google.type.DateB\003\340A\002\"\263\004\n" - + "\021RelativeDateRange\022#\n" - + "\037RELATIVE_DATE_RANGE_UNSPECIFIED\020\000\022\t\n" - + "\005TODAY\020\001\022\r\n" - + "\tYESTERDAY\020\002\022\r\n" - + "\tTHIS_WEEK\020\003\022\025\n" - + "\021THIS_WEEK_TO_DATE\020\035\022\016\n\n" - + "THIS_MONTH\020\004\022\026\n" - + "\022THIS_MONTH_TO_DATE\020\032\022\020\n" - + "\014THIS_QUARTER\020\005\022\030\n" - + "\024THIS_QUARTER_TO_DATE\020\033\022\r\n" - + "\tTHIS_YEAR\020\006\022\025\n" - + "\021THIS_YEAR_TO_DATE\020\034\022\r\n" - + "\tLAST_WEEK\020\007\022\016\n\n" - + "LAST_MONTH\020\010\022\020\n" - + "\014LAST_QUARTER\020\t\022\r\n" - + "\tLAST_YEAR\020\n" - + "\022\017\n" - + "\013LAST_7_DAYS\020\013\022\020\n" - + "\014LAST_30_DAYS\020\014\022\020\n" - + "\014LAST_60_DAYS\020\r" - + "\022\020\n" - + "\014LAST_90_DAYS\020\016\022\021\n\r" - + "LAST_180_DAYS\020\017\022\021\n\r" - + "LAST_360_DAYS\020\020\022\021\n\r" - + "LAST_365_DAYS\020\021\022\021\n\r" - + "LAST_3_MONTHS\020\022\022\021\n\r" - + "LAST_6_MONTHS\020\023\022\022\n" - + "\016LAST_12_MONTHS\020\024\022\021\n\r" - + "ALL_AVAILABLE\020\025\022\023\n" - + "\017PREVIOUS_PERIOD\020\026\022\035\n" - + "\031SAME_PERIOD_PREVIOUS_YEAR\020\030B\021\n" - + "\017date_range_type\"\256\001\n" - + "\020TimePeriodColumn\022\"\n" - + "\036TIME_PERIOD_COLUMN_UNSPECIFIED\020\000\022\033\n" - + "\027TIME_PERIOD_COLUMN_DATE\020\001\022\033\n" - + "\027TIME_PERIOD_COLUMN_WEEK\020\002\022\034\n" - + "\030TIME_PERIOD_COLUMN_MONTH\020\003\022\036\n" - + "\032TIME_PERIOD_COLUMN_QUARTER\020\004\"\316\222\001\n" - + "\tDimension\022\031\n" - + "\025DIMENSION_UNSPECIFIED\020\000\022\033\n" - + "\026ADVERTISER_DOMAIN_NAME\020\362\001\022\033\n" - + "\026ADVERTISER_EXTERNAL_ID\020\344\001\022\022\n\r" - + "ADVERTISER_ID\020\203\001\022\026\n" - + "\021ADVERTISER_LABELS\020\346\001\022\031\n" - + "\024ADVERTISER_LABEL_IDS\020\345\001\022\024\n" - + "\017ADVERTISER_NAME\020\204\001\022\037\n" - + "\032ADVERTISER_PRIMARY_CONTACT\020\343\001\022\020\n" - + "\013AD_LOCATION\020\206\003\022\025\n" - + "\020AD_LOCATION_NAME\020\207\003\022\020\n" - + "\014AD_UNIT_CODE\020@\022\030\n" - + "\024AD_UNIT_CODE_LEVEL_1\020A\022\031\n" - + "\025AD_UNIT_CODE_LEVEL_10\020J\022\031\n" - + "\025AD_UNIT_CODE_LEVEL_11\020K\022\031\n" - + "\025AD_UNIT_CODE_LEVEL_12\020L\022\031\n" - + "\025AD_UNIT_CODE_LEVEL_13\020M\022\031\n" - + "\025AD_UNIT_CODE_LEVEL_14\020N\022\031\n" - + "\025AD_UNIT_CODE_LEVEL_15\020O\022\031\n" - + "\025AD_UNIT_CODE_LEVEL_16\020P\022\030\n" - + "\024AD_UNIT_CODE_LEVEL_2\020B\022\030\n" - + "\024AD_UNIT_CODE_LEVEL_3\020C\022\030\n" - + "\024AD_UNIT_CODE_LEVEL_4\020D\022\030\n" - + "\024AD_UNIT_CODE_LEVEL_5\020E\022\030\n" - + "\024AD_UNIT_CODE_LEVEL_6\020F\022\030\n" - + "\024AD_UNIT_CODE_LEVEL_7\020G\022\030\n" - + "\024AD_UNIT_CODE_LEVEL_8\020H\022\030\n" - + "\024AD_UNIT_CODE_LEVEL_9\020I\022\021\n\r" - + "AD_UNIT_DEPTH\020e\022\016\n\n" - + "AD_UNIT_ID\020\031\022\030\n" - + "\024AD_UNIT_ID_ALL_LEVEL\020\033\022\026\n" - + "\022AD_UNIT_ID_LEVEL_1\020\036\022\027\n" - + "\023AD_UNIT_ID_LEVEL_10\0200\022\027\n" - + "\023AD_UNIT_ID_LEVEL_11\0202\022\027\n" - + "\023AD_UNIT_ID_LEVEL_12\0204\022\027\n" - + "\023AD_UNIT_ID_LEVEL_13\0206\022\027\n" - + "\023AD_UNIT_ID_LEVEL_14\0208\022\027\n" - + "\023AD_UNIT_ID_LEVEL_15\020:\022\027\n" - + "\023AD_UNIT_ID_LEVEL_16\020<\022\026\n" - + "\022AD_UNIT_ID_LEVEL_2\020 \022\026\n" - + "\022AD_UNIT_ID_LEVEL_3\020\"\022\026\n" - + "\022AD_UNIT_ID_LEVEL_4\020$\022\026\n" - + "\022AD_UNIT_ID_LEVEL_5\020&\022\026\n" - + "\022AD_UNIT_ID_LEVEL_6\020(\022\026\n" - + "\022AD_UNIT_ID_LEVEL_7\020*\022\026\n" - + "\022AD_UNIT_ID_LEVEL_8\020,\022\026\n" - + "\022AD_UNIT_ID_LEVEL_9\020.\022\031\n" - + "\024AD_UNIT_ID_TOP_LEVEL\020\216\001\022\020\n" - + "\014AD_UNIT_NAME\020\032\022\032\n" - + "\026AD_UNIT_NAME_ALL_LEVEL\020\035\022\030\n" - + "\024AD_UNIT_NAME_LEVEL_1\020\037\022\031\n" - + "\025AD_UNIT_NAME_LEVEL_10\0201\022\031\n" - + "\025AD_UNIT_NAME_LEVEL_11\0203\022\031\n" - + "\025AD_UNIT_NAME_LEVEL_12\0205\022\031\n" - + "\025AD_UNIT_NAME_LEVEL_13\0207\022\031\n" - + "\025AD_UNIT_NAME_LEVEL_14\0209\022\031\n" - + "\025AD_UNIT_NAME_LEVEL_15\020;\022\031\n" - + "\025AD_UNIT_NAME_LEVEL_16\020=\022\030\n" - + "\024AD_UNIT_NAME_LEVEL_2\020!\022\030\n" - + "\024AD_UNIT_NAME_LEVEL_3\020#\022\030\n" - + "\024AD_UNIT_NAME_LEVEL_4\020%\022\030\n" - + "\024AD_UNIT_NAME_LEVEL_5\020\'\022\030\n" - + "\024AD_UNIT_NAME_LEVEL_6\020)\022\030\n" - + "\024AD_UNIT_NAME_LEVEL_7\020+\022\030\n" - + "\024AD_UNIT_NAME_LEVEL_8\020-\022\030\n" - + "\024AD_UNIT_NAME_LEVEL_9\020/\022\033\n" - + "\026AD_UNIT_NAME_TOP_LEVEL\020\217\001\022\031\n" - + "\025AD_UNIT_REWARD_AMOUNT\020?\022\027\n" - + "\023AD_UNIT_REWARD_TYPE\020>\022\023\n" - + "\016AD_UNIT_STATUS\020\316\001\022\030\n" - + "\023AD_UNIT_STATUS_NAME\020\317\001\022\020\n" - + "\013APP_VERSION\020\210\003\022$\n" - + "\037BACKFILL_ADVERTISER_EXTERNAL_ID\020\335\002\022\033\n" - + "\026BACKFILL_ADVERTISER_ID\020\332\002\022\037\n" - + "\032BACKFILL_ADVERTISER_LABELS\020\337\002\022\"\n" - + "\035BACKFILL_ADVERTISER_LABEL_IDS\020\336\002\022\035\n" - + "\030BACKFILL_ADVERTISER_NAME\020\333\002\022(\n" - + "#BACKFILL_ADVERTISER_PRIMARY_CONTACT\020\334\002\022#\n" - + "\036BACKFILL_CREATIVE_BILLING_TYPE\020\372\002\022(\n" - + "#BACKFILL_CREATIVE_BILLING_TYPE_NAME\020\373\002\022(\n" - + "#BACKFILL_CREATIVE_CLICK_THROUGH_URL\020\370\002\022\031\n" - + "\024BACKFILL_CREATIVE_ID\020\362\002\022\033\n" - + "\026BACKFILL_CREATIVE_NAME\020\363\002\022)\n" - + "$BACKFILL_CREATIVE_THIRD_PARTY_VENDOR\020\371\002\022\033\n" - + "\026BACKFILL_CREATIVE_TYPE\020\366\002\022 \n" - + "\033BACKFILL_CREATIVE_TYPE_NAME\020\367\002\022 \n" - + "\033BACKFILL_LINE_ITEM_ARCHIVED\020\226\002\0221\n" - + ",BACKFILL_LINE_ITEM_COMPANION_DELIVERY_OPTION\020\202\002\0226\n" - + "1BACKFILL_LINE_ITEM_COMPANION_DELIVERY_OPTION_NAME\020\203\002\022\'\n" - + "\"BACKFILL_LINE_ITEM_COMPUTED_STATUS\020\250\002\022,\n" - + "\'BACKFILL_LINE_ITEM_COMPUTED_STATUS_NAME\020\251\002\022+\n" - + "&BACKFILL_LINE_ITEM_CONTRACTED_QUANTITY\020\230\002\022%\n" - + " BACKFILL_LINE_ITEM_COST_PER_UNIT\020\220\002\022!\n" - + "\034BACKFILL_LINE_ITEM_COST_TYPE\020\210\002\022&\n" - + "!BACKFILL_LINE_ITEM_COST_TYPE_NAME\020\211\002\022)\n" - + "$BACKFILL_LINE_ITEM_CREATIVE_END_DATE\020\375\002\022.\n" - + ")BACKFILL_LINE_ITEM_CREATIVE_ROTATION_TYPE\020\242\002\0223\n" - + ".BACKFILL_LINE_ITEM_CREATIVE_ROTATION_TYPE_NAME\020\243\002\022+\n" - + "&BACKFILL_LINE_ITEM_CREATIVE_START_DATE\020\374\002\022%\n" - + " BACKFILL_LINE_ITEM_CURRENCY_CODE\020\240\002\022*\n" - + "%BACKFILL_LINE_ITEM_DELIVERY_INDICATOR\020\222\002\022*\n" - + "%BACKFILL_LINE_ITEM_DELIVERY_RATE_TYPE\020\244\002\022/\n" - + "*BACKFILL_LINE_ITEM_DELIVERY_RATE_TYPE_NAME\020\245\002\022)\n" - + "$BACKFILL_LINE_ITEM_DISCOUNT_ABSOLUTE\020\246\002\022+\n" - + "&BACKFILL_LINE_ITEM_DISCOUNT_PERCENTAGE\020\247\002\022 \n" - + "\033BACKFILL_LINE_ITEM_END_DATE\020\213\002\022%\n" - + " BACKFILL_LINE_ITEM_END_DATE_TIME\020\215\002\022(\n" - + "#BACKFILL_LINE_ITEM_ENVIRONMENT_TYPE\020\256\002\022-\n" - + "(BACKFILL_LINE_ITEM_ENVIRONMENT_TYPE_NAME\020\201\002\022(\n" - + "#BACKFILL_LINE_ITEM_EXTERNAL_DEAL_ID\020\235\002\022#\n" - + "\036BACKFILL_LINE_ITEM_EXTERNAL_ID\020\221\002\022%\n" - + " BACKFILL_LINE_ITEM_FREQUENCY_CAP\020\257\002\022\032\n" - + "\025BACKFILL_LINE_ITEM_ID\020\252\002\022,\n" - + "\'BACKFILL_LINE_ITEM_LAST_MODIFIED_BY_APP\020\241\002\022\'\n" - + "\"BACKFILL_LINE_ITEM_LIFETIME_CLICKS\020\233\002\022,\n" - + "\'BACKFILL_LINE_ITEM_LIFETIME_IMPRESSIONS\020\232\002\0225\n" - + "0BACKFILL_LINE_ITEM_LIFETIME_VIEWABLE_IMPRESSIONS\020\234\002\022 \n" - + "\033BACKFILL_LINE_ITEM_MAKEGOOD\020\224\002\022\034\n" - + "\027BACKFILL_LINE_ITEM_NAME\020\253\002\022.\n" - + ")BACKFILL_LINE_ITEM_NON_CPD_BOOKED_REVENUE\020\236\002\022#\n" - + "\036BACKFILL_LINE_ITEM_OPTIMIZABLE\020\225\002\022)\n" - + "$BACKFILL_LINE_ITEM_PRIMARY_GOAL_TYPE\020\206\002\022.\n" - + ")BACKFILL_LINE_ITEM_PRIMARY_GOAL_TYPE_NAME\020\207\002\022.\n" - + ")BACKFILL_LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE\020\204\002\0223\n" - + ".BACKFILL_LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_NAME\020\205\002\022 \n" - + "\033BACKFILL_LINE_ITEM_PRIORITY\020\212\002\022*\n" - + "%BACKFILL_LINE_ITEM_RESERVATION_STATUS\020\262\002\022/\n" - + "*BACKFILL_LINE_ITEM_RESERVATION_STATUS_NAME\020\263\002\022\"\n" - + "\035BACKFILL_LINE_ITEM_START_DATE\020\214\002\022\'\n" - + "\"BACKFILL_LINE_ITEM_START_DATE_TIME\020\216\002\022\034\n" - + "\027BACKFILL_LINE_ITEM_TYPE\020\254\002\022!\n" - + "\034BACKFILL_LINE_ITEM_TYPE_NAME\020\255\002\022%\n" - + " BACKFILL_LINE_ITEM_UNLIMITED_END\020\217\002\022+\n" - + "&BACKFILL_LINE_ITEM_VALUE_COST_PER_UNIT\020\223\002\022)\n" - + "$BACKFILL_LINE_ITEM_WEB_PROPERTY_CODE\020\237\002\022*\n" - + "%BACKFILL_MASTER_COMPANION_CREATIVE_ID\020\364\002\022,\n" - + "\'BACKFILL_MASTER_COMPANION_CREATIVE_NAME\020\365\002\022\032\n" - + "\025BACKFILL_ORDER_AGENCY\020\271\002\022\035\n" - + "\030BACKFILL_ORDER_AGENCY_ID\020\272\002\022\036\n" - + "\031BACKFILL_ORDER_BOOKED_CPC\020\273\002\022\036\n" - + "\031BACKFILL_ORDER_BOOKED_CPM\020\274\002\022#\n" - + "\036BACKFILL_ORDER_DELIVERY_STATUS\020\324\002\022(\n" - + "#BACKFILL_ORDER_DELIVERY_STATUS_NAME\020\325\002\022\034\n" - + "\027BACKFILL_ORDER_END_DATE\020\275\002\022!\n" - + "\034BACKFILL_ORDER_END_DATE_TIME\020\277\002\022\037\n" - + "\032BACKFILL_ORDER_EXTERNAL_ID\020\300\002\022\026\n" - + "\021BACKFILL_ORDER_ID\020\322\002\022\032\n" - + "\025BACKFILL_ORDER_LABELS\020\316\002\022\035\n" - + "\030BACKFILL_ORDER_LABEL_IDS\020\317\002\022#\n" - + "\036BACKFILL_ORDER_LIFETIME_CLICKS\020\302\002\022(\n" - + "#BACKFILL_ORDER_LIFETIME_IMPRESSIONS\020\303\002\022\030\n" - + "\023BACKFILL_ORDER_NAME\020\323\002\022\035\n" - + "\030BACKFILL_ORDER_PO_NUMBER\020\304\002\022 \n" - + "\033BACKFILL_ORDER_PROGRAMMATIC\020\301\002\022\037\n" - + "\032BACKFILL_ORDER_SALESPERSON\020\305\002\022)\n" - + "$BACKFILL_ORDER_SECONDARY_SALESPEOPLE\020\311\002\022,\n" - + "\'BACKFILL_ORDER_SECONDARY_SALESPEOPLE_ID\020\310\002\022)\n" - + "$BACKFILL_ORDER_SECONDARY_TRAFFICKERS\020\313\002\022,\n" - + "\'BACKFILL_ORDER_SECONDARY_TRAFFICKERS_ID\020\312\002\022\036\n" - + "\031BACKFILL_ORDER_START_DATE\020\314\002\022#\n" - + "\036BACKFILL_ORDER_START_DATE_TIME\020\315\002\022\036\n" - + "\031BACKFILL_ORDER_TRAFFICKER\020\306\002\022!\n" - + "\034BACKFILL_ORDER_TRAFFICKER_ID\020\307\002\022!\n" - + "\034BACKFILL_ORDER_UNLIMITED_END\020\276\002\022#\n" - + "\036BACKFILL_PROGRAMMATIC_BUYER_ID\020\320\002\022%\n" - + " BACKFILL_PROGRAMMATIC_BUYER_NAME\020\321\002\022\022\n\r" - + "BRANDING_TYPE\020\377\002\022\027\n" - + "\022BRANDING_TYPE_NAME\020\200\003\022\024\n" - + "\020BROWSER_CATEGORY\020w\022\031\n" - + "\025BROWSER_CATEGORY_NAME\020x\022\017\n\n" - + "BROWSER_ID\020\353\001\022\021\n" - + "\014BROWSER_NAME\020\354\001\022\017\n\n" - + "CARRIER_ID\020\361\002\022\021\n" - + "\014CARRIER_NAME\020\360\002\022\035\n" - + "\030CLASSIFIED_ADVERTISER_ID\020\205\001\022\037\n" - + "\032CLASSIFIED_ADVERTISER_NAME\020\206\001\022\030\n" - + "\023CLASSIFIED_BRAND_ID\020\363\001\022\032\n" - + "\025CLASSIFIED_BRAND_NAME\020\364\001\022\017\n\n" - + "CONTENT_ID\020\366\001\022\021\n" - + "\014CONTENT_NAME\020\367\001\022\016\n\n" - + "COUNTRY_ID\020\013\022\020\n" - + "\014COUNTRY_NAME\020\014\022\032\n" - + "\025CREATIVE_BILLING_TYPE\020\356\002\022\037\n" - + "\032CREATIVE_BILLING_TYPE_NAME\020\357\002\022\037\n" - + "\032CREATIVE_CLICK_THROUGH_URL\020\256\001\022\020\n" - + "\013CREATIVE_ID\020\212\001\022\022\n\r" - + "CREATIVE_NAME\020\213\001\022\030\n" - + "\023CREATIVE_TECHNOLOGY\020\224\001\022\035\n" - + "\030CREATIVE_TECHNOLOGY_NAME\020\225\001\022 \n" - + "\033CREATIVE_THIRD_PARTY_VENDOR\020\351\002\022\022\n\r" - + "CREATIVE_TYPE\020\330\002\022\027\n" - + "\022CREATIVE_TYPE_NAME\020\331\002\022\010\n" - + "\004DATE\020\003\022\017\n" - + "\013DAY_OF_WEEK\020\004\022\022\n" - + "\016DEMAND_CHANNEL\020\t\022\027\n" - + "\023DEMAND_CHANNEL_NAME\020\n" - + "\022\025\n" - + "\021DEMAND_SUBCHANNEL\020\026\022\032\n" - + "\026DEMAND_SUBCHANNEL_NAME\020\027\022\013\n" - + "\006DEVICE\020\342\001\022\023\n" - + "\017DEVICE_CATEGORY\020\017\022\030\n" - + "\024DEVICE_CATEGORY_NAME\020\020\022\020\n" - + "\013DEVICE_NAME\020\341\001\022$\n" - + "\037EXCHANGE_THIRD_PARTY_COMPANY_ID\020\271\001\022&\n" - + "!EXCHANGE_THIRD_PARTY_COMPANY_NAME\020\272\001\022\037\n" - + "\032FIRST_LOOK_PRICING_RULE_ID\020\370\001\022!\n" - + "\034FIRST_LOOK_PRICING_RULE_NAME\020\371\001\022\010\n" - + "\004HOUR\020d\022\025\n" - + "\020INTERACTION_TYPE\020\337\001\022\032\n" - + "\025INTERACTION_TYPE_NAME\020\340\001\022\024\n" - + "\020INVENTORY_FORMAT\020\021\022\031\n" - + "\025INVENTORY_FORMAT_NAME\020\022\022\022\n" - + "\016INVENTORY_TYPE\020\023\022\027\n" - + "\023INVENTORY_TYPE_NAME\020\024\022\022\n\r" - + "IS_ADX_DIRECT\020\376\002\022\027\n" - + "\022IS_FIRST_LOOK_DEAL\020\221\003\022\022\n\r" - + "KEY_VALUES_ID\020\326\001\022\024\n" - + "\017KEY_VALUES_NAME\020\327\001\022\027\n" - + "\022LINE_ITEM_ARCHIVED\020\274\001\022(\n" - + "#LINE_ITEM_COMPANION_DELIVERY_OPTION\020\314\001\022-\n" - + "(LINE_ITEM_COMPANION_DELIVERY_OPTION_NAME\020\315\001\022\036\n" - + "\031LINE_ITEM_COMPUTED_STATUS\020\372\001\022#\n" - + "\036LINE_ITEM_COMPUTED_STATUS_NAME\020\373\001\022!\n" - + "\035LINE_ITEM_CONTRACTED_QUANTITY\020\\\022\033\n" - + "\027LINE_ITEM_COST_PER_UNIT\020U\022\030\n" - + "\023LINE_ITEM_COST_TYPE\020\324\001\022\035\n" - + "\030LINE_ITEM_COST_TYPE_NAME\020\325\001\022 \n" - + "\033LINE_ITEM_CREATIVE_END_DATE\020\260\001\022%\n" - + " LINE_ITEM_CREATIVE_ROTATION_TYPE\020\275\001\022*\n" - + "%LINE_ITEM_CREATIVE_ROTATION_TYPE_NAME\020\276\001\022\"\n" - + "\035LINE_ITEM_CREATIVE_START_DATE\020\257\001\022\034\n" - + "\027LINE_ITEM_CURRENCY_CODE\020\264\001\022 \n" - + "\034LINE_ITEM_DELIVERY_INDICATOR\020W\022!\n" - + "\034LINE_ITEM_DELIVERY_RATE_TYPE\020\277\001\022&\n" - + "!LINE_ITEM_DELIVERY_RATE_TYPE_NAME\020\300\001\022 \n" - + "\033LINE_ITEM_DISCOUNT_ABSOLUTE\020\303\001\022\"\n" - + "\035LINE_ITEM_DISCOUNT_PERCENTAGE\020\304\001\022\026\n" - + "\022LINE_ITEM_END_DATE\020Q\022\033\n" - + "\027LINE_ITEM_END_DATE_TIME\020S\022\037\n" - + "\032LINE_ITEM_ENVIRONMENT_TYPE\020\311\001\022$\n" - + "\037LINE_ITEM_ENVIRONMENT_TYPE_NAME\020\312\001\022\036\n" - + "\032LINE_ITEM_EXTERNAL_DEAL_ID\020a\022\031\n" - + "\025LINE_ITEM_EXTERNAL_ID\020V\022\034\n" - + "\027LINE_ITEM_FREQUENCY_CAP\020\200\002\022\020\n" - + "\014LINE_ITEM_ID\020\001\022#\n" - + "\036LINE_ITEM_LAST_MODIFIED_BY_APP\020\265\001\022\035\n" - + "\031LINE_ITEM_LIFETIME_CLICKS\020_\022\"\n" - + "\036LINE_ITEM_LIFETIME_IMPRESSIONS\020^\022+\n" - + "\'LINE_ITEM_LIFETIME_VIEWABLE_IMPRESSIONS\020`\022\026\n" - + "\022LINE_ITEM_MAKEGOOD\020Y\022\022\n" - + "\016LINE_ITEM_NAME\020\002\022$\n" - + " LINE_ITEM_NON_CPD_BOOKED_REVENUE\020b\022\031\n" - + "\025LINE_ITEM_OPTIMIZABLE\020Z\022 \n" - + "\033LINE_ITEM_PRIMARY_GOAL_TYPE\020\322\001\022%\n" - + " LINE_ITEM_PRIMARY_GOAL_TYPE_NAME\020\323\001\022)\n" - + "%LINE_ITEM_PRIMARY_GOAL_UNITS_ABSOLUTE\020]\022,\n" - + "\'LINE_ITEM_PRIMARY_GOAL_UNITS_PERCENTAGE\020\214\003\022%\n" - + " LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE\020\320\001\022*\n" - + "%LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_NAME\020\321\001\022\026\n" - + "\022LINE_ITEM_PRIORITY\020\030\022!\n" - + "\034LINE_ITEM_RESERVATION_STATUS\020\260\002\022&\n" - + "!LINE_ITEM_RESERVATION_STATUS_NAME\020\261\002\022\030\n" - + "\024LINE_ITEM_START_DATE\020R\022\035\n" - + "\031LINE_ITEM_START_DATE_TIME\020T\022\023\n" - + "\016LINE_ITEM_TYPE\020\301\001\022\030\n" - + "\023LINE_ITEM_TYPE_NAME\020\302\001\022\034\n" - + "\027LINE_ITEM_UNLIMITED_END\020\273\001\022!\n" - + "\035LINE_ITEM_VALUE_COST_PER_UNIT\020X\022 \n" - + "\033LINE_ITEM_WEB_PROPERTY_CODE\020\263\001\022!\n" - + "\034MASTER_COMPANION_CREATIVE_ID\020\214\001\022#\n" - + "\036MASTER_COMPANION_CREATIVE_NAME\020\215\001\022\024\n" - + "\017MOBILE_APP_FREE\020\200\001\022\030\n" - + "\023MOBILE_APP_ICON_URL\020\201\001\022\021\n\r" - + "MOBILE_APP_ID\020{\022\023\n" - + "\017MOBILE_APP_NAME\020\177\022 \n" - + "\033MOBILE_APP_OWNERSHIP_STATUS\020\267\002\022%\n" - + " MOBILE_APP_OWNERSHIP_STATUS_NAME\020\270\002\022\024\n" - + "\020MOBILE_APP_STORE\020}\022\032\n" - + "\025MOBILE_APP_STORE_NAME\020\365\001\022\031\n" - + "\025MOBILE_INVENTORY_TYPE\020c\022\036\n" - + "\032MOBILE_INVENTORY_TYPE_NAME\020\025\022\034\n" - + "\027MOBILE_SDK_VERSION_NAME\020\202\001\022\016\n\n" - + "MONTH_YEAR\020\006\022\030\n" - + "\023NATIVE_AD_FORMAT_ID\020\377\001\022\032\n" - + "\025NATIVE_AD_FORMAT_NAME\020\376\001\022\024\n" - + "\017NATIVE_STYLE_ID\020\375\001\022\026\n" - + "\021NATIVE_STYLE_NAME\020\374\001\022\035\n" - + "\031OPERATING_SYSTEM_CATEGORY\020u\022\"\n" - + "\036OPERATING_SYSTEM_CATEGORY_NAME\020v\022 \n" - + "\033OPERATING_SYSTEM_VERSION_ID\020\356\001\022\"\n" - + "\035OPERATING_SYSTEM_VERSION_NAME\020\355\001\022\021\n" - + "\014ORDER_AGENCY\020\226\001\022\024\n" - + "\017ORDER_AGENCY_ID\020\227\001\022\025\n" - + "\020ORDER_BOOKED_CPC\020\230\001\022\025\n" - + "\020ORDER_BOOKED_CPM\020\231\001\022\032\n" - + "\025ORDER_DELIVERY_STATUS\020\347\001\022\037\n" - + "\032ORDER_DELIVERY_STATUS_NAME\020\357\001\022\023\n" - + "\016ORDER_END_DATE\020\232\001\022\030\n" - + "\023ORDER_END_DATE_TIME\020\233\001\022\026\n" - + "\021ORDER_EXTERNAL_ID\020\234\001\022\014\n" - + "\010ORDER_ID\020\007\022\021\n" - + "\014ORDER_LABELS\020\252\001\022\024\n" - + "\017ORDER_LABEL_IDS\020\253\001\022\032\n" - + "\025ORDER_LIFETIME_CLICKS\020\236\001\022\037\n" - + "\032ORDER_LIFETIME_IMPRESSIONS\020\237\001\022\016\n\n" - + "ORDER_NAME\020\010\022\024\n" - + "\017ORDER_PO_NUMBER\020\240\001\022\027\n" - + "\022ORDER_PROGRAMMATIC\020\235\001\022\026\n" - + "\021ORDER_SALESPERSON\020\241\001\022 \n" - + "\033ORDER_SECONDARY_SALESPEOPLE\020\244\001\022#\n" - + "\036ORDER_SECONDARY_SALESPEOPLE_ID\020\245\001\022 \n" - + "\033ORDER_SECONDARY_TRAFFICKERS\020\246\001\022#\n" - + "\036ORDER_SECONDARY_TRAFFICKERS_ID\020\247\001\022\025\n" - + "\020ORDER_START_DATE\020\250\001\022\032\n" - + "\025ORDER_START_DATE_TIME\020\251\001\022\025\n" - + "\020ORDER_TRAFFICKER\020\242\001\022\030\n" - + "\023ORDER_TRAFFICKER_ID\020\243\001\022\030\n" - + "\023ORDER_UNLIMITED_END\020\313\001\022\020\n" - + "\014PLACEMENT_ID\020q\022\025\n" - + "\020PLACEMENT_ID_ALL\020\220\001\022\022\n" - + "\016PLACEMENT_NAME\020r\022\027\n" - + "\022PLACEMENT_NAME_ALL\020\221\001\022\025\n" - + "\020PLACEMENT_STATUS\020\352\002\022\031\n" - + "\024PLACEMENT_STATUS_ALL\020\353\002\022\032\n" - + "\025PLACEMENT_STATUS_NAME\020\354\002\022\036\n" - + "\031PLACEMENT_STATUS_NAME_ALL\020\355\002\022\032\n" - + "\025PROGRAMMATIC_BUYER_ID\020\360\001\022\034\n" - + "\027PROGRAMMATIC_BUYER_NAME\020\361\001\022\030\n" - + "\024PROGRAMMATIC_CHANNEL\020\r" - + "\022\035\n" - + "\031PROGRAMMATIC_CHANNEL_NAME\020\016\022\033\n" - + "\026RENDERED_CREATIVE_SIZE\020\327\002\022\027\n" - + "\022REQUESTED_AD_SIZES\020\340\002\022\021\n" - + "\014REQUEST_TYPE\020\222\001\022\026\n" - + "\021REQUEST_TYPE_NAME\020\223\001\022\t\n" - + "\004SITE\020\203\003\022\021\n" - + "\014TARGETING_ID\020\350\001\022\023\n" - + "\016TARGETING_NAME\020\351\001\022\023\n" - + "\016TARGETING_TYPE\020\201\003\022\030\n" - + "\023TARGETING_TYPE_NAME\020\202\003\022\023\n" - + "\016TRAFFIC_SOURCE\020\204\003\022\030\n" - + "\023TRAFFIC_SOURCE_NAME\020\205\003\022\034\n" - + "\027UNIFIED_PRICING_RULE_ID\020\211\003\022\036\n" - + "\031UNIFIED_PRICING_RULE_NAME\020\212\003\022\020\n" - + "\013VIDEO_PLCMT\020\254\001\022\025\n" - + "\020VIDEO_PLCMT_NAME\020\255\001\022\010\n" - + "\004WEEK\020\005\022\033\n" - + "\026YIELD_GROUP_BUYER_NAME\020\270\001\022\023\n" - + "\016YIELD_GROUP_ID\020\266\001\022\025\n" - + "\020YIELD_GROUP_NAME\020\267\001\022\'\n" - + "\"LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID\020\220N\022\'\n" - + "\"LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID\020\221N\022\'\n" - + "\"LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID\020\222N\022\'\n" - + "\"LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID\020\223N\022\'\n" - + "\"LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID\020\224N\022\'\n" - + "\"LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID\020\225N\022\'\n" - + "\"LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID\020\226N\022\'\n" - + "\"LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID\020\227N\022\'\n" - + "\"LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID\020\230N\022\'\n" - + "\"LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID\020\231N\022(\n" - + "#LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID\020\232N\022(\n" - + "#LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID\020\233N\022(\n" - + "#LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID\020\234N\022(\n" - + "#LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID\020\235N\022(\n" - + "#LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID\020\236N\022#\n" - + "\036LINE_ITEM_CUSTOM_FIELD_0_VALUE\020\370U\022#\n" - + "\036LINE_ITEM_CUSTOM_FIELD_1_VALUE\020\371U\022#\n" - + "\036LINE_ITEM_CUSTOM_FIELD_2_VALUE\020\372U\022#\n" - + "\036LINE_ITEM_CUSTOM_FIELD_3_VALUE\020\373U\022#\n" - + "\036LINE_ITEM_CUSTOM_FIELD_4_VALUE\020\374U\022#\n" - + "\036LINE_ITEM_CUSTOM_FIELD_5_VALUE\020\375U\022#\n" - + "\036LINE_ITEM_CUSTOM_FIELD_6_VALUE\020\376U\022#\n" - + "\036LINE_ITEM_CUSTOM_FIELD_7_VALUE\020\377U\022#\n" - + "\036LINE_ITEM_CUSTOM_FIELD_8_VALUE\020\200V\022#\n" - + "\036LINE_ITEM_CUSTOM_FIELD_9_VALUE\020\201V\022$\n" - + "\037LINE_ITEM_CUSTOM_FIELD_1", - "0_VALUE\020\202V\022$\n" - + "\037LINE_ITEM_CUSTOM_FIELD_11_VALUE\020\203V\022$\n" - + "\037LINE_ITEM_CUSTOM_FIELD_12_VALUE\020\204V\022$\n" - + "\037LINE_ITEM_CUSTOM_FIELD_13_VALUE\020\205V\022$\n" - + "\037LINE_ITEM_CUSTOM_FIELD_14_VALUE\020\206V\022#\n" - + "\036ORDER_CUSTOM_FIELD_0_OPTION_ID\020\340]\022#\n" - + "\036ORDER_CUSTOM_FIELD_1_OPTION_ID\020\341]\022#\n" - + "\036ORDER_CUSTOM_FIELD_2_OPTION_ID\020\342]\022#\n" - + "\036ORDER_CUSTOM_FIELD_3_OPTION_ID\020\343]\022#\n" - + "\036ORDER_CUSTOM_FIELD_4_OPTION_ID\020\344]\022#\n" - + "\036ORDER_CUSTOM_FIELD_5_OPTION_ID\020\345]\022#\n" - + "\036ORDER_CUSTOM_FIELD_6_OPTION_ID\020\346]\022#\n" - + "\036ORDER_CUSTOM_FIELD_7_OPTION_ID\020\347]\022#\n" - + "\036ORDER_CUSTOM_FIELD_8_OPTION_ID\020\350]\022#\n" - + "\036ORDER_CUSTOM_FIELD_9_OPTION_ID\020\351]\022$\n" - + "\037ORDER_CUSTOM_FIELD_10_OPTION_ID\020\352]\022$\n" - + "\037ORDER_CUSTOM_FIELD_11_OPTION_ID\020\353]\022$\n" - + "\037ORDER_CUSTOM_FIELD_12_OPTION_ID\020\354]\022$\n" - + "\037ORDER_CUSTOM_FIELD_13_OPTION_ID\020\355]\022$\n" - + "\037ORDER_CUSTOM_FIELD_14_OPTION_ID\020\356]\022\037\n" - + "\032ORDER_CUSTOM_FIELD_0_VALUE\020\310e\022\037\n" - + "\032ORDER_CUSTOM_FIELD_1_VALUE\020\311e\022\037\n" - + "\032ORDER_CUSTOM_FIELD_2_VALUE\020\312e\022\037\n" - + "\032ORDER_CUSTOM_FIELD_3_VALUE\020\313e\022\037\n" - + "\032ORDER_CUSTOM_FIELD_4_VALUE\020\314e\022\037\n" - + "\032ORDER_CUSTOM_FIELD_5_VALUE\020\315e\022\037\n" - + "\032ORDER_CUSTOM_FIELD_6_VALUE\020\316e\022\037\n" - + "\032ORDER_CUSTOM_FIELD_7_VALUE\020\317e\022\037\n" - + "\032ORDER_CUSTOM_FIELD_8_VALUE\020\320e\022\037\n" - + "\032ORDER_CUSTOM_FIELD_9_VALUE\020\321e\022 \n" - + "\033ORDER_CUSTOM_FIELD_10_VALUE\020\322e\022 \n" - + "\033ORDER_CUSTOM_FIELD_11_VALUE\020\323e\022 \n" - + "\033ORDER_CUSTOM_FIELD_12_VALUE\020\324e\022 \n" - + "\033ORDER_CUSTOM_FIELD_13_VALUE\020\325e\022 \n" - + "\033ORDER_CUSTOM_FIELD_14_VALUE\020\326e\022&\n" - + "!CREATIVE_CUSTOM_FIELD_0_OPTION_ID\020\260m\022&\n" - + "!CREATIVE_CUSTOM_FIELD_1_OPTION_ID\020\261m\022&\n" - + "!CREATIVE_CUSTOM_FIELD_2_OPTION_ID\020\262m\022&\n" - + "!CREATIVE_CUSTOM_FIELD_3_OPTION_ID\020\263m\022&\n" - + "!CREATIVE_CUSTOM_FIELD_4_OPTION_ID\020\264m\022&\n" - + "!CREATIVE_CUSTOM_FIELD_5_OPTION_ID\020\265m\022&\n" - + "!CREATIVE_CUSTOM_FIELD_6_OPTION_ID\020\266m\022&\n" - + "!CREATIVE_CUSTOM_FIELD_7_OPTION_ID\020\267m\022&\n" - + "!CREATIVE_CUSTOM_FIELD_8_OPTION_ID\020\270m\022&\n" - + "!CREATIVE_CUSTOM_FIELD_9_OPTION_ID\020\271m\022\'\n" - + "\"CREATIVE_CUSTOM_FIELD_10_OPTION_ID\020\272m\022\'\n" - + "\"CREATIVE_CUSTOM_FIELD_11_OPTION_ID\020\273m\022\'\n" - + "\"CREATIVE_CUSTOM_FIELD_12_OPTION_ID\020\274m\022\'\n" - + "\"CREATIVE_CUSTOM_FIELD_13_OPTION_ID\020\275m\022\'\n" - + "\"CREATIVE_CUSTOM_FIELD_14_OPTION_ID\020\276m\022\"\n" - + "\035CREATIVE_CUSTOM_FIELD_0_VALUE\020\230u\022\"\n" - + "\035CREATIVE_CUSTOM_FIELD_1_VALUE\020\231u\022\"\n" - + "\035CREATIVE_CUSTOM_FIELD_2_VALUE\020\232u\022\"\n" - + "\035CREATIVE_CUSTOM_FIELD_3_VALUE\020\233u\022\"\n" - + "\035CREATIVE_CUSTOM_FIELD_4_VALUE\020\234u\022\"\n" - + "\035CREATIVE_CUSTOM_FIELD_5_VALUE\020\235u\022\"\n" - + "\035CREATIVE_CUSTOM_FIELD_6_VALUE\020\236u\022\"\n" - + "\035CREATIVE_CUSTOM_FIELD_7_VALUE\020\237u\022\"\n" - + "\035CREATIVE_CUSTOM_FIELD_8_VALUE\020\240u\022\"\n" - + "\035CREATIVE_CUSTOM_FIELD_9_VALUE\020\241u\022#\n" - + "\036CREATIVE_CUSTOM_FIELD_10_VALUE\020\242u\022#\n" - + "\036CREATIVE_CUSTOM_FIELD_11_VALUE\020\243u\022#\n" - + "\036CREATIVE_CUSTOM_FIELD_12_VALUE\020\244u\022#\n" - + "\036CREATIVE_CUSTOM_FIELD_13_VALUE\020\245u\022#\n" - + "\036CREATIVE_CUSTOM_FIELD_14_VALUE\020\246u\0220\n" - + "+BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID\020\200}\0220\n" - + "+BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID\020\201}\0220\n" - + "+BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID\020\202}\0220\n" - + "+BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID\020\203}\0220\n" - + "+BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID\020\204}\0220\n" - + "+BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID\020\205}\0220\n" - + "+BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID\020\206}\0220\n" - + "+BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID\020\207}\0220\n" - + "+BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID\020\210}\0220\n" - + "+BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID\020\211}\0221\n" - + ",BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID\020\212}\0221\n" - + ",BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID\020\213}\0221\n" - + ",BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID\020\214}\0221\n" - + ",BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID\020\215}\0221\n" - + ",BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID\020\216}\022-\n" - + "\'BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_VALUE\020\350\204\001\022-\n" - + "\'BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_VALUE\020\351\204\001\022-\n" - + "\'BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_VALUE\020\352\204\001\022-\n" - + "\'BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_VALUE\020\353\204\001\022-\n" - + "\'BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_VALUE\020\354\204\001\022-\n" - + "\'BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_VALUE\020\355\204\001\022-\n" - + "\'BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_VALUE\020\356\204\001\022-\n" - + "\'BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_VALUE\020\357\204\001\022-\n" - + "\'BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_VALUE\020\360\204\001\022-\n" - + "\'BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_VALUE\020\361\204\001\022.\n" - + "(BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_VALUE\020\362\204\001\022.\n" - + "(BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_VALUE\020\363\204\001\022.\n" - + "(BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_VALUE\020\364\204\001\022.\n" - + "(BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_VALUE\020\365\204\001\022.\n" - + "(BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_VALUE\020\366\204\001\022-\n" - + "\'BACKFILL_ORDER_CUSTOM_FIELD_0_OPTION_ID\020\320\214\001\022-\n" - + "\'BACKFILL_ORDER_CUSTOM_FIELD_1_OPTION_ID\020\321\214\001\022-\n" - + "\'BACKFILL_ORDER_CUSTOM_FIELD_2_OPTION_ID\020\322\214\001\022-\n" - + "\'BACKFILL_ORDER_CUSTOM_FIELD_3_OPTION_ID\020\323\214\001\022-\n" - + "\'BACKFILL_ORDER_CUSTOM_FIELD_4_OPTION_ID\020\324\214\001\022-\n" - + "\'BACKFILL_ORDER_CUSTOM_FIELD_5_OPTION_ID\020\325\214\001\022-\n" - + "\'BACKFILL_ORDER_CUSTOM_FIELD_6_OPTION_ID\020\326\214\001\022-\n" - + "\'BACKFILL_ORDER_CUSTOM_FIELD_7_OPTION_ID\020\327\214\001\022-\n" - + "\'BACKFILL_ORDER_CUSTOM_FIELD_8_OPTION_ID\020\330\214\001\022-\n" - + "\'BACKFILL_ORDER_CUSTOM_FIELD_9_OPTION_ID\020\331\214\001\022.\n" - + "(BACKFILL_ORDER_CUSTOM_FIELD_10_OPTION_ID\020\332\214\001\022.\n" - + "(BACKFILL_ORDER_CUSTOM_FIELD_11_OPTION_ID\020\333\214\001\022.\n" - + "(BACKFILL_ORDER_CUSTOM_FIELD_12_OPTION_ID\020\334\214\001\022.\n" - + "(BACKFILL_ORDER_CUSTOM_FIELD_13_OPTION_ID\020\335\214\001\022.\n" - + "(BACKFILL_ORDER_CUSTOM_FIELD_14_OPTION_ID\020\336\214\001\022)\n" - + "#BACKFILL_ORDER_CUSTOM_FIELD_0_VALUE\020\270\224\001\022)\n" - + "#BACKFILL_ORDER_CUSTOM_FIELD_1_VALUE\020\271\224\001\022)\n" - + "#BACKFILL_ORDER_CUSTOM_FIELD_2_VALUE\020\272\224\001\022)\n" - + "#BACKFILL_ORDER_CUSTOM_FIELD_3_VALUE\020\273\224\001\022)\n" - + "#BACKFILL_ORDER_CUSTOM_FIELD_4_VALUE\020\274\224\001\022)\n" - + "#BACKFILL_ORDER_CUSTOM_FIELD_5_VALUE\020\275\224\001\022)\n" - + "#BACKFILL_ORDER_CUSTOM_FIELD_6_VALUE\020\276\224\001\022)\n" - + "#BACKFILL_ORDER_CUSTOM_FIELD_7_VALUE\020\277\224\001\022)\n" - + "#BACKFILL_ORDER_CUSTOM_FIELD_8_VALUE\020\300\224\001\022)\n" - + "#BACKFILL_ORDER_CUSTOM_FIELD_9_VALUE\020\301\224\001\022*\n" - + "$BACKFILL_ORDER_CUSTOM_FIELD_10_VALUE\020\302\224\001\022*\n" - + "$BACKFILL_ORDER_CUSTOM_FIELD_11_VALUE\020\303\224\001\022*\n" - + "$BACKFILL_ORDER_CUSTOM_FIELD_12_VALUE\020\304\224\001\022*\n" - + "$BACKFILL_ORDER_CUSTOM_FIELD_13_VALUE\020\305\224\001\022*\n" - + "$BACKFILL_ORDER_CUSTOM_FIELD_14_VALUE\020\306\224\001\0220\n" - + "*BACKFILL_CREATIVE_CUSTOM_FIELD_0_OPTION_ID\020\240\234\001\0220\n" - + "*BACKFILL_CREATIVE_CUSTOM_FIELD_1_OPTION_ID\020\241\234\001\0220\n" - + "*BACKFILL_CREATIVE_CUSTOM_FIELD_2_OPTION_ID\020\242\234\001\0220\n" - + "*BACKFILL_CREATIVE_CUSTOM_FIELD_3_OPTION_ID\020\243\234\001\0220\n" - + "*BACKFILL_CREATIVE_CUSTOM_FIELD_4_OPTION_ID\020\244\234\001\0220\n" - + "*BACKFILL_CREATIVE_CUSTOM_FIELD_5_OPTION_ID\020\245\234\001\0220\n" - + "*BACKFILL_CREATIVE_CUSTOM_FIELD_6_OPTION_ID\020\246\234\001\0220\n" - + "*BACKFILL_CREATIVE_CUSTOM_FIELD_7_OPTION_ID\020\247\234\001\0220\n" - + "*BACKFILL_CREATIVE_CUSTOM_FIELD_8_OPTION_ID\020\250\234\001\0220\n" - + "*BACKFILL_CREATIVE_CUSTOM_FIELD_9_OPTION_ID\020\251\234\001\0221\n" - + "+BACKFILL_CREATIVE_CUSTOM_FIELD_10_OPTION_ID\020\252\234\001\0221\n" - + "+BACKFILL_CREATIVE_CUSTOM_FIELD_11_OPTION_ID\020\253\234\001\0221\n" - + "+BACKFILL_CREATIVE_CUSTOM_FIELD_12_OPTION_ID\020\254\234\001\0221\n" - + "+BACKFILL_CREATIVE_CUSTOM_FIELD_13_OPTION_ID\020\255\234\001\0221\n" - + "+BACKFILL_CREATIVE_CUSTOM_FIELD_14_OPTION_ID\020\256\234\001\022,\n" - + "&BACKFILL_CREATIVE_CUSTOM_FIELD_0_VALUE\020\210\244\001\022,\n" - + "&BACKFILL_CREATIVE_CUSTOM_FIELD_1_VALUE\020\211\244\001\022,\n" - + "&BACKFILL_CREATIVE_CUSTOM_FIELD_2_VALUE\020\212\244\001\022,\n" - + "&BACKFILL_CREATIVE_CUSTOM_FIELD_3_VALUE\020\213\244\001\022,\n" - + "&BACKFILL_CREATIVE_CUSTOM_FIELD_4_VALUE\020\214\244\001\022,\n" - + "&BACKFILL_CREATIVE_CUSTOM_FIELD_5_VALUE\020\215\244\001\022,\n" - + "&BACKFILL_CREATIVE_CUSTOM_FIELD_6_VALUE\020\216\244\001\022,\n" - + "&BACKFILL_CREATIVE_CUSTOM_FIELD_7_VALUE\020\217\244\001\022,\n" - + "&BACKFILL_CREATIVE_CUSTOM_FIELD_8_VALUE\020\220\244\001\022,\n" - + "&BACKFILL_CREATIVE_CUSTOM_FIELD_9_VALUE\020\221\244\001\022-\n" - + "\'BACKFILL_CREATIVE_CUSTOM_FIELD_10_VALUE\020\222\244\001\022-\n" - + "\'BACKFILL_CREATIVE_CUSTOM_FIELD_11_VALUE\020\223\244\001\022-\n" - + "\'BACKFILL_CREATIVE_CUSTOM_FIELD_12_VALUE\020\224\244\001\022-\n" - + "\'BACKFILL_CREATIVE_CUSTOM_FIELD_13_VALUE\020\225\244\001\022-\n" - + "\'BACKFILL_CREATIVE_CUSTOM_FIELD_14_VALUE\020\226\244\001\022!\n" - + "\033CUSTOM_DIMENSION_0_VALUE_ID\020\240\215\006\022!\n" - + "\033CUSTOM_DIMENSION_1_VALUE_ID\020\241\215\006\022!\n" - + "\033CUSTOM_DIMENSION_2_VALUE_ID\020\242\215\006\022!\n" - + "\033CUSTOM_DIMENSION_3_VALUE_ID\020\243\215\006\022!\n" - + "\033CUSTOM_DIMENSION_4_VALUE_ID\020\244\215\006\022!\n" - + "\033CUSTOM_DIMENSION_5_VALUE_ID\020\245\215\006\022!\n" - + "\033CUSTOM_DIMENSION_6_VALUE_ID\020\246\215\006\022!\n" - + "\033CUSTOM_DIMENSION_7_VALUE_ID\020\247\215\006\022!\n" - + "\033CUSTOM_DIMENSION_8_VALUE_ID\020\250\215\006\022!\n" - + "\033CUSTOM_DIMENSION_9_VALUE_ID\020\251\215\006\022\036\n" - + "\030CUSTOM_DIMENSION_0_VALUE\020\210\225\006\022\036\n" - + "\030CUSTOM_DIMENSION_1_VALUE\020\211\225\006\022\036\n" - + "\030CUSTOM_DIMENSION_2_VALUE\020\212\225\006\022\036\n" - + "\030CUSTOM_DIMENSION_3_VALUE\020\213\225\006\022\036\n" - + "\030CUSTOM_DIMENSION_4_VALUE\020\214\225\006\022\036\n" - + "\030CUSTOM_DIMENSION_5_VALUE\020\215\225\006\022\036\n" - + "\030CUSTOM_DIMENSION_6_VALUE\020\216\225\006\022\036\n" - + "\030CUSTOM_DIMENSION_7_VALUE\020\217\225\006\022\036\n" - + "\030CUSTOM_DIMENSION_8_VALUE\020\220\225\006\022\036\n" - + "\030CUSTOM_DIMENSION_9_VALUE\020\221\225\006\"\353-\n" - + "\006Metric\022\026\n" - + "\022METRIC_UNSPECIFIED\020\000\022%\n" - + "!ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME\020=\022$\n" - + " ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS\020:\022&\n" - + "\"ACTIVE_VIEW_MEASURABLE_IMPRESSIONS\0209\022+\n" - + "\'ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE\020<\022$\n" - + " ACTIVE_VIEW_VIEWABLE_IMPRESSIONS\0208\022)\n" - + "%ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE\020;\022-\n" - + ")ADSENSE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME\020I\022,\n" - + "(ADSENSE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS\020F\022.\n" - + "*ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS\020E\0223\n" - + "/ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE\020H\022,\n" - + "(ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS\020D\0221\n" - + "-ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE\020G\022\030\n" - + "\024ADSENSE_AVERAGE_ECPM\020\032\022\022\n" - + "\016ADSENSE_CLICKS\020\027\022\017\n" - + "\013ADSENSE_CTR\020\030\022\027\n" - + "\023ADSENSE_IMPRESSIONS\020\026\022\032\n" - + "\026ADSENSE_PERCENT_CLICKS\020\034\022\037\n" - + "\033ADSENSE_PERCENT_IMPRESSIONS\020\033\022\033\n" - + "\027ADSENSE_PERCENT_REVENUE\020\035\022\'\n" - + "#ADSENSE_PERCENT_REVENUE_WITHOUT_CPD\020\036\022\034\n" - + "\030ADSENSE_RESPONSES_SERVED\020)\022\023\n" - + "\017ADSENSE_REVENUE\020\031\0221\n" - + "-AD_EXCHANGE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME\020O\0220\n" - + ",AD_EXCHANGE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS\020L\0222\n" - + ".AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS\020K\0227\n" - + "3AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE\020N\0220\n" - + ",AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS\020J\0225\n" - + "1AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE\020M\022\034\n" - + "\030AD_EXCHANGE_AVERAGE_ECPM\020\022\022\026\n" - + "\022AD_EXCHANGE_CLICKS\020\017\022\023\n" - + "\017AD_EXCHANGE_CTR\020\020\022\033\n" - + "\027AD_EXCHANGE_IMPRESSIONS\020\016\022\036\n" - + "\032AD_EXCHANGE_PERCENT_CLICKS\020\024\022#\n" - + "\037AD_EXCHANGE_PERCENT_IMPRESSIONS\020\023\022\037\n" - + "\033AD_EXCHANGE_PERCENT_REVENUE\020\025\022+\n" - + "\'AD_EXCHANGE_PERCENT_REVENUE_WITHOUT_CPD\020\037\022 \n" - + "\034AD_EXCHANGE_RESPONSES_SERVED\020*\022\027\n" - + "\023AD_EXCHANGE_REVENUE\020\021\022\017\n" - + "\013AD_REQUESTS\020&\022/\n" - + "+AD_SERVER_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME\020C\022.\n" - + "*AD_SERVER_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS\020@\0220\n" - + ",AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS\020?\0225\n" - + "1AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE\020B\022.\n" - + "*AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS\020>\0223\n" - + "/AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE\020A\022\032\n" - + "\026AD_SERVER_AVERAGE_ECPM\020\"\022&\n" - + "\"AD_SERVER_AVERAGE_ECPM_WITHOUT_CPD\020\n" - + "\022\024\n" - + "\020AD_SERVER_CLICKS\020\007\022\031\n" - + "\025AD_SERVER_CPD_REVENUE\020 \022\021\n\r" - + "AD_SERVER_CTR\020\010\022\031\n" - + "\025AD_SERVER_IMPRESSIONS\020\006\022\034\n" - + "\030AD_SERVER_PERCENT_CLICKS\020\014\022!\n" - + "\035AD_SERVER_PERCENT_IMPRESSIONS\020\013\022\035\n" - + "\031AD_SERVER_PERCENT_REVENUE\020#\022)\n" - + "%AD_SERVER_PERCENT_REVENUE_WITHOUT_CPD\020\r" - + "\022\036\n" - + "\032AD_SERVER_RESPONSES_SERVED\020(\022\025\n" - + "\021AD_SERVER_REVENUE\020!\022!\n" - + "\035AD_SERVER_REVENUE_WITHOUT_CPD\020\t\022\020\n" - + "\014AUCTIONS_WON\020P\022\020\n" - + "\014AVERAGE_ECPM\020%\022\034\n" - + "\030AVERAGE_ECPM_WITHOUT_CPD\020\005\022\010\n" - + "\004BIDS\020Q\022\023\n" - + "\017BIDS_IN_AUCTION\020R\022\014\n" - + "\010CALLOUTS\020S\022\n\n" - + "\006CLICKS\020\002\022\025\n" - + "\021CODE_SERVED_COUNT\020,\022\007\n" - + "\003CTR\020\003\022-\n" - + "(GOOGLE_SOLD_AUCTION_COVIEWED_IMPRESSIONS\020\201\001\022$\n" - + "\037GOOGLE_SOLD_AUCTION_IMPRESSIONS\020\200\001\022%\n" - + " GOOGLE_SOLD_COVIEWED_IMPRESSIONS\020\203\001\022\034\n" - + "\027GOOGLE_SOLD_IMPRESSIONS\020\202\001\0220\n" - + ",GOOGLE_SOLD_RESERVATION_COVIEWED_IMPRESSIONS\020\177\022\'\n" - + "#GOOGLE_SOLD_RESERVATION_IMPRESSIONS\020~\022\017\n" - + "\013IMPRESSIONS\020\001\022&\n" - + "!PARTNER_SALES_FILLED_POD_REQUESTS\020\207\001\022\034\n" - + "\027PARTNER_SALES_FILL_RATE\020\210\001\022%\n" - + " PARTNER_SALES_PARTNER_MATCH_RATE\020\211\001\022\032\n" - + "\025PARTNER_SALES_QUERIES\020\204\001\022\'\n" - + "\"PARTNER_SALES_UNFILLED_IMPRESSIONS\020\205\001\022$\n" - + "\037PARTNER_SALES_UNMATCHED_QUERIES\020\206\001\022\034\n" - + "\030PARTNER_SOLD_CODE_SERVED\020}\022%\n" - + "!PARTNER_SOLD_COVIEWED_IMPRESSIONS\020|\022\034\n" - + "\030PARTNER_SOLD_IMPRESSIONS\020{\022&\n" - + "!PROGRAMMATIC_ELIGIBLE_AD_REQUESTS\020\261\001\022\034\n" - + "\027PROGRAMMATIC_MATCH_RATE\020\262\001\022\"\n" - + "\035PROGRAMMATIC_RESPONSES_SERVED\020\260\001\022\024\n" - + "\020RESPONSES_SERVED\020\'\022\013\n" - + "\007REVENUE\020$\022\027\n" - + "\023REVENUE_WITHOUT_CPD\020\004\022\030\n" - + "\024SUCCESSFUL_RESPONSES\020T\022\030\n" - + "\024UNFILLED_IMPRESSIONS\020-\022\031\n" - + "\025UNMATCHED_AD_REQUESTS\020+\022*\n" - + "&USER_MESSAGES_OFFERWALL_MESSAGES_SHOWN\020y\0222\n" - + ".USER_MESSAGES_OFFERWALL_SUCCESSFUL_ENGAGEMENTS\020z\022.\n" - + "*VIDEO_INTERACTION_AVERAGE_INTERACTION_RATE\020\\\022\037\n" - + "\033VIDEO_INTERACTION_COLLAPSES\020]\022\035\n" - + "\031VIDEO_INTERACTION_EXPANDS\020_\022\"\n" - + "\036VIDEO_INTERACTION_FULL_SCREENS\020`\022\033\n" - + "\027VIDEO_INTERACTION_MUTES\020a\022\034\n" - + "\030VIDEO_INTERACTION_PAUSES\020b\022\035\n" - + "\031VIDEO_INTERACTION_RESUMES\020c\022\035\n" - + "\031VIDEO_INTERACTION_REWINDS\020d\022\035\n" - + "\031VIDEO_INTERACTION_UNMUTES\020e\022!\n" - + "\035VIDEO_INTERACTION_VIDEO_SKIPS\020f\022$\n" - + "\037VIDEO_REAL_TIME_CREATIVE_SERVES\020\213\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_100_COUNT\020\217\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_101_COUNT\020\220\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_102_COUNT\020\221\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_200_COUNT\020\222\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_201_COUNT\020\223\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_202_COUNT\020\224\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_203_COUNT\020\225\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_300_COUNT\020\226\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_301_COUNT\020\227\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_302_COUNT\020\230\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_303_COUNT\020\231\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_400_COUNT\020\232\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_401_COUNT\020\233\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_402_COUNT\020\234\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_403_COUNT\020\235\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_405_COUNT\020\236\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_406_COUNT\020\237\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_407_COUNT\020\240\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_408_COUNT\020\241\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_409_COUNT\020\242\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_410_COUNT\020\243\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_500_COUNT\020\244\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_501_COUNT\020\245\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_502_COUNT\020\246\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_503_COUNT\020\247\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_600_COUNT\020\250\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_601_COUNT\020\251\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_602_COUNT\020\252\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_603_COUNT\020\253\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_604_COUNT\020\254\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_900_COUNT\020\255\001\022$\n" - + "\037VIDEO_REAL_TIME_ERROR_901_COUNT\020\256\001\022 \n" - + "\033VIDEO_REAL_TIME_IMPRESSIONS\020\212\001\022$\n" - + "\037VIDEO_REAL_TIME_MATCHED_QUERIES\020\214\001\022&\n" - + "!VIDEO_REAL_TIME_TOTAL_ERROR_COUNT\020\257\001\022\"\n" - + "\035VIDEO_REAL_TIME_TOTAL_QUERIES\020\216\001\022&\n" - + "!VIDEO_REAL_TIME_UNMATCHED_QUERIES\020\215\001\022\037\n" - + "\033VIDEO_VIEWERSHIP_AUTO_PLAYS\020g\022&\n" - + "\"VIDEO_VIEWERSHIP_AVERAGE_VIEW_RATE\020h\022&\n" - + "\"VIDEO_VIEWERSHIP_AVERAGE_VIEW_TIME\020i\022#\n" - + "\037VIDEO_VIEWERSHIP_CLICK_TO_PLAYS\020j\022\036\n" - + "\032VIDEO_VIEWERSHIP_COMPLETES\020k\022$\n" - + " VIDEO_VIEWERSHIP_COMPLETION_RATE\020l\022\"\n" - + "\036VIDEO_VIEWERSHIP_ENGAGED_VIEWS\020m\022$\n" - + " VIDEO_VIEWERSHIP_FIRST_QUARTILES\020n\022\036\n" - + "\032VIDEO_VIEWERSHIP_MIDPOINTS\020o\022\'\n" - + "#VIDEO_VIEWERSHIP_SKIP_BUTTONS_SHOWN\020p\022\033\n" - + "\027VIDEO_VIEWERSHIP_STARTS\020q\022$\n" - + " VIDEO_VIEWERSHIP_THIRD_QUARTILES\020r\022&\n" - + "\"VIDEO_VIEWERSHIP_TOTAL_ERROR_COUNT\020s\022%\n" - + "!VIDEO_VIEWERSHIP_TOTAL_ERROR_RATE\020^\022!\n" - + "\035VIDEO_VIEWERSHIP_VIDEO_LENGTH\020t\022&\n" - + "\"VIDEO_VIEWERSHIP_VIEW_THROUGH_RATE\020u\022\035\n" - + "\031YIELD_GROUP_ESTIMATED_CPM\020X\022!\n" - + "\035YIELD_GROUP_ESTIMATED_REVENUE\020W\022\033\n" - + "\027YIELD_GROUP_IMPRESSIONS\020U\022#\n" - + "\037YIELD_GROUP_MEDIATION_FILL_RATE\020Y\022)\n" - + "%YIELD_GROUP_MEDIATION_MATCHED_QUERIES\020V\022#\n" - + "\037YIELD_GROUP_MEDIATION_PASSBACKS\020v\022*\n" - + "&YIELD_GROUP_MEDIATION_THIRD_PARTY_ECPM\020Z\"\227\001\n" - + "\017MetricValueType\022\013\n" - + "\007PRIMARY\020\000\022\034\n" - + "\030PRIMARY_PERCENT_OF_TOTAL\020\001\022\016\n\n" - + "COMPARISON\020\002\022\037\n" - + "\033COMPARISON_PERCENT_OF_TOTAL\020\003\022\023\n" - + "\017ABSOLUTE_CHANGE\020\004\022\023\n" - + "\017RELATIVE_CHANGE\020\005\"9\n\n" - + "ReportType\022\033\n" - + "\027REPORT_TYPE_UNSPECIFIED\020\000\022\016\n\n" - + "HISTORICAL\020\001\".\n\n" - + "Visibility\022\n\n" - + "\006HIDDEN\020\000\022\t\n" - + "\005DRAFT\020\001\022\t\n" - + "\005SAVED\020\002:_\352A\\\n" - + "\037admanager.googleapis.com/" - + "Report\022(networks/{network_code}/reports/{report}*\007reports2\006report\"I\n" + + ".proto\022\027google.ads.admanager.v1\032-google/" + + "ads/admanager/v1/report_messages.proto\032\034" + + "google/api/annotations.proto\032\027google/api" + + "/client.proto\032\037google/api/field_behavior" + + ".proto\032\031google/api/resource.proto\032#google/longrunning/operations.proto\032" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"I\n" + "\020RunReportRequest\0225\n" + "\004name\030\001 \001(\tB\'\340A\002\372A!\n" + "\037admanager.googleapis.com/Report\"c\n" @@ -1086,12 +108,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023ListReportsResponse\0220\n" + "\007reports\030\001 \003(\0132\037.google.ads.admanager.v1.Report\022\027\n" + "\017next_page_token\030\002 \001(\t\022\022\n\n" - + "total_size\030\003 \001(\005\"\204\001\n" - + "\023CreateReportRequest\0227\n" - + "\006parent\030\001 \001(" - + "\tB\'\340A\002\372A!\022\037admanager.googleapis.com/Report\0224\n" - + "\006report\030\002" - + " \001(\0132\037.google.ads.admanager.v1.ReportB\003\340A\002\"\201\001\n" + + "total_size\030\003 \001(\005\"\205\001\n" + + "\023CreateReportRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\0224\n" + + "\006report\030\002 \001(" + + "\0132\037.google.ads.admanager.v1.ReportB\003\340A\002\"\201\001\n" + "\023UpdateReportRequest\0224\n" + "\006report\030\001 \001(\0132\037.google.ads.admanager.v1.ReportB\003\340A\002\0224\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"]\n" @@ -1102,100 +124,45 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035FetchReportResultRowsResponse\022;\n" + "\004rows\030\001 \003(\0132-.google.ads.admanager.v1.Report.DataTable.Row\022,\n" + "\010run_time\030\002 \001(\0132\032.google.protobuf.Timestamp\022M\n" - + "\013date_ranges\030\003 \003(\01328.go" - + "ogle.ads.admanager.v1.Report.DateRange.FixedDateRange\022X\n" - + "\026comparison_date_ranges\030\004" - + " \003(\01328.google.ads.admanager.v1.Report.DateRange.FixedDateRange\022\027\n" + + "\013date_ranges\030\003 \003(\01328.google.ad" + + "s.admanager.v1.Report.DateRange.FixedDateRange\022X\n" + + "\026comparison_date_ranges\030\004 \003(\01328" + + ".google.ads.admanager.v1.Report.DateRange.FixedDateRange\022\027\n" + "\017total_row_count\030\005 \001(\005\022\027\n" - + "\017next_page_token\030\006 \001(\t\"\342\006\n" - + "\020ReportDefinition\022B\n\n" - + "dimensions\030\001 \003(\0162).goo" - + "gle.ads.admanager.v1.Report.DimensionB\003\340A\002\022<\n" - + "\007metrics\030\002" - + " \003(\0162&.google.ads.admanager.v1.Report.MetricB\003\340A\002\022<\n" - + "\007filters\030\003 \003(" - + "\0132&.google.ads.admanager.v1.Report.FilterB\003\340A\001\022\026\n" - + "\ttime_zone\030\004 \001(\tB\003\340A\001\022\032\n\r" - + "currency_code\030\005 \001(\tB\003\340A\001\022B\n\n" - + "date_range\030\006 \001(\0132)" - + ".google.ads.admanager.v1.Report.DateRangeB\003\340A\002\022R\n" - + "\025comparison_date_range\030\t \001(\0132)." - + "google.ads.admanager.v1.Report.DateRangeB\003\340A\001H\000\210\001\001\022%\n" - + "\030custom_dimension_key_ids\030\007 \003(\003B\003\340A\001\022\'\n" - + "\032line_item_custom_field_ids\030\013 \003(\003B\003\340A\001\022#\n" - + "\026order_custom_field_ids\030\014 \003(\003B\003\340A\001\022&\n" - + "\031creative_custom_field_ids\030\r" - + " \003(\003B\003\340A\001\022D\n" - + "\013report_type\030\010" - + " \001(\0162*.google.ads.admanager.v1.Report.ReportTypeB\003\340A\002\022Q\n" - + "\022time_period_column\030\n" - + " \001(\01620.google.ads.admanager.v1.Report.TimePeriodColumnB\003\340A\001\0228\n" - + "\005flags\030\016 \003(\0132$.google.ads.admanager.v1.Report.FlagB\003\340A\001\0228\n" - + "\005sorts\030\017 \003(\0132$.google.ads.admanager.v1.Report.SortB\003\340A\001B\030\n" - + "\026_comparison_date_range\"\242\002\n" - + "\017ScheduleOptions\0223\n" - + "\010schedule\030\001 \001(\0132!.google.ads.admanager.v1.Schedule\022V\n" - + "\022delivery_condition\030\002 " - + "\001(\0162:.google.ads.admanager.v1.ScheduleOptions.DeliveryCondition\0228\n" - + "\005flags\030\003 \003(\0132$.google.ads.admanager.v1.Report.FlagB\003\340A\001\"H\n" - + "\021DeliveryCondition\022\t\n" - + "\005NEVER\020\000\022\n\n" - + "\006ALW", - "AYS\020\001\022\034\n\030WHEN_FLAG_CONDITIONS_MET\020\002\"\213\005\n\010" - + "Schedule\022K\n\017weekly_schedule\030\006 \001(\01320.goog" - + "le.ads.admanager.v1.Schedule.WeeklySched" - + "uleH\000\022M\n\020monthly_schedule\030\007 \001(\01321.google" - + ".ads.admanager.v1.Schedule.MonthlySchedu" - + "leH\000\022%\n\nstart_date\030\001 \001(\0132\021.google.type.D" - + "ate\022#\n\010end_date\030\002 \001(\0132\021.google.type.Date" - + "\022>\n\tfrequency\030\003 \001(\0162+.google.ads.admanag" - + "er.v1.Schedule.Frequency\022*\n\nstart_time\030\004" - + " \001(\0132\026.google.type.TimeOfDay\032G\n\016WeeklySc" - + "hedule\0225\n\025weekly_scheduled_days\030\001 \003(\0162\026." - + "google.type.DayOfWeek\0321\n\017MonthlySchedule" - + "\022\036\n\026monthly_scheduled_days\030\001 \003(\005\"\230\001\n\tFre" - + "quency\022\031\n\025FREQUENCY_UNSPECIFIED\020\000\022\n\n\006HOU" - + "RLY\020\001\022\023\n\017TWO_TIMES_DAILY\020\002\022\025\n\021THREE_TIME" - + "S_DAILY\020\003\022\024\n\020FOUR_TIMES_DAILY\020\004\022\t\n\005DAILY" - + "\020\005\022\n\n\006WEEKLY\020\006\022\013\n\007MONTHLY\020\007B\024\n\022frequency" - + "_schedule2\246\010\n\rReportService\022\207\001\n\tGetRepor" - + "t\022).google.ads.admanager.v1.GetReportReq" - + "uest\032\037.google.ads.admanager.v1.Report\".\332" - + "A\004name\202\323\344\223\002!\022\037/v1/{name=networks/*/repor" - + "ts/*}\022\232\001\n\013ListReports\022+.google.ads.adman" - + "ager.v1.ListReportsRequest\032,.google.ads." - + "admanager.v1.ListReportsResponse\"0\332A\006par" - + "ent\202\323\344\223\002!\022\037/v1/{parent=networks/*}/repor" - + "ts\022\236\001\n\014CreateReport\022,.google.ads.admanag" - + "er.v1.CreateReportRequest\032\037.google.ads.a" - + "dmanager.v1.Report\"?\332A\rparent,report\202\323\344\223" - + "\002)\"\037/v1/{parent=networks/*}/reports:\006rep" - + "ort\022\252\001\n\014UpdateReport\022,.google.ads.admana" - + "ger.v1.UpdateReportRequest\032\037.google.ads." - + "admanager.v1.Report\"K\332A\022report,update_ma" - + "sk\202\323\344\223\00202&/v1/{report.name=networks/*/re" - + "ports/*}:\006report\022\265\001\n\tRunReport\022).google." - + "ads.admanager.v1.RunReportRequest\032\035.goog" - + "le.longrunning.Operation\"^\312A&\n\021RunReport" - + "Response\022\021RunReportMetadata\332A\004name\202\323\344\223\002(" - + "\"#/v1/{name=networks/*/reports/*}:run:\001*" - + "\022\312\001\n\025FetchReportResultRows\0225.google.ads." - + "admanager.v1.FetchReportResultRowsReques" - + "t\0326.google.ads.admanager.v1.FetchReportR" - + "esultRowsResponse\"B\332A\004name\202\323\344\223\0025\0223/v1/{n" - + "ame=networks/*/reports/*/results/*}:fetc" - + "hRows\032\033\312A\030admanager.googleapis.comB\306\001\n\033c" - + "om.google.ads.admanager.v1B\022ReportServic" - + "eProtoP\001Z@google.golang.org/genproto/goo" - + "gleapis/ads/admanager/v1;admanager\252\002\027Goo" - + "gle.Ads.AdManager.V1\312\002\027Google\\Ads\\AdMana" - + "ger\\V1\352\002\032Google::Ads::AdManager::V1b\006pro" - + "to3" + + "\017next_page_token\030\006 \001(\t2\322\010\n\r" + + "ReportService\022\207\001\n" + + "\tGetReport\022).google.ads.admanager.v1.GetReportRequest\032\037.google.ads.adman" + + "ager.v1.Report\".\332A\004name\202\323\344\223\002!\022\037/v1/{name=networks/*/reports/*}\022\232\001\n" + + "\013ListReports\022+.google.ads.admanager.v1.ListReportsRequ" + + "est\032,.google.ads.admanager.v1.ListReport" + + "sResponse\"0\332A\006parent\202\323\344\223\002!\022\037/v1/{parent=networks/*}/reports\022\236\001\n" + + "\014CreateReport\022,.g" + + "oogle.ads.admanager.v1.CreateReportRequest\032\037.google.ads.admanager.v1.Report\"?\332A\r" + + "parent,report\202\323\344\223\002)\"\037/v1/{parent=networks/*}/reports:\006report\022\252\001\n" + + "\014UpdateReport\022,.google.ads.admanager.v1.UpdateReportRequ" + + "est\032\037.google.ads.admanager.v1.Report\"K\332A" + + "\022report,update_mask\202\323\344\223\00202&/v1/{report.name=networks/*/reports/*}:\006report\022\265\001\n" + + "\tRunReport\022).google.ads.admanager.v1.RunRep" + + "ortRequest\032\035.google.longrunning.Operation\"^\312A&\n" + + "\021RunReportResponse\022\021RunReportMeta" + + "data\332A\004name\202\323\344\223\002(\"#/v1/{name=networks/*/reports/*}:run:\001*\022\312\001\n" + + "\025FetchReportResultRows\0225.google.ads.admanager.v1.FetchRepor" + + "tResultRowsRequest\0326.google.ads.admanage" + + "r.v1.FetchReportResultRowsResponse\"B\332A\004n" + + "ame\202\323\344\223\0025\0223/v1/{name=networks/*/reports/" + + "*/results/*}:fetchRows\032G\312A\030admanager.goo" + + "gleapis.com\322A)https://www.googleapis.com/auth/admanagerB\306\001\n" + + "\033com.google.ads.admanager.v1B\022ReportServiceProtoP\001Z@google.go" + + "lang.org/genproto/googleapis/ads/admanag" + + "er/v1;admanager\252\002\027Google.Ads.AdManager.V" + + "1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032Google::Ad" + + "s::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.admanager.v1.ReportMessagesProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), com.google.api.ClientProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), @@ -1203,159 +170,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.longrunning.OperationsProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), - com.google.type.DateProto.getDescriptor(), - com.google.type.DayOfWeekProto.getDescriptor(), - com.google.type.TimeOfDayProto.getDescriptor(), - }); - internal_static_google_ads_admanager_v1_Report_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_ads_admanager_v1_Report_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_ads_admanager_v1_Report_descriptor, - new java.lang.String[] { - "Name", - "ReportId", - "Visibility", - "ReportDefinition", - "DisplayName", - "UpdateTime", - "CreateTime", - "Locale", - "ScheduleOptions", - }); - internal_static_google_ads_admanager_v1_Report_Value_descriptor = - internal_static_google_ads_admanager_v1_Report_descriptor.getNestedTypes().get(0); - internal_static_google_ads_admanager_v1_Report_Value_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_ads_admanager_v1_Report_Value_descriptor, - new java.lang.String[] { - "IntValue", - "DoubleValue", - "StringValue", - "BoolValue", - "IntListValue", - "StringListValue", - "BytesValue", - "Value", - }); - internal_static_google_ads_admanager_v1_Report_Value_IntList_descriptor = - internal_static_google_ads_admanager_v1_Report_Value_descriptor.getNestedTypes().get(0); - internal_static_google_ads_admanager_v1_Report_Value_IntList_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_ads_admanager_v1_Report_Value_IntList_descriptor, - new java.lang.String[] { - "Values", - }); - internal_static_google_ads_admanager_v1_Report_Value_StringList_descriptor = - internal_static_google_ads_admanager_v1_Report_Value_descriptor.getNestedTypes().get(1); - internal_static_google_ads_admanager_v1_Report_Value_StringList_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_ads_admanager_v1_Report_Value_StringList_descriptor, - new java.lang.String[] { - "Values", - }); - internal_static_google_ads_admanager_v1_Report_Sort_descriptor = - internal_static_google_ads_admanager_v1_Report_descriptor.getNestedTypes().get(1); - internal_static_google_ads_admanager_v1_Report_Sort_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_ads_admanager_v1_Report_Sort_descriptor, - new java.lang.String[] { - "Field", "Descending", "Slice", "TimePeriodIndex", "MetricValueType", - }); - internal_static_google_ads_admanager_v1_Report_DataTable_descriptor = - internal_static_google_ads_admanager_v1_Report_descriptor.getNestedTypes().get(2); - internal_static_google_ads_admanager_v1_Report_DataTable_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_ads_admanager_v1_Report_DataTable_descriptor, - new java.lang.String[] {}); - internal_static_google_ads_admanager_v1_Report_DataTable_Row_descriptor = - internal_static_google_ads_admanager_v1_Report_DataTable_descriptor.getNestedTypes().get(0); - internal_static_google_ads_admanager_v1_Report_DataTable_Row_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_ads_admanager_v1_Report_DataTable_Row_descriptor, - new java.lang.String[] { - "DimensionValues", "MetricValueGroups", - }); - internal_static_google_ads_admanager_v1_Report_DataTable_MetricValueGroup_descriptor = - internal_static_google_ads_admanager_v1_Report_DataTable_descriptor.getNestedTypes().get(1); - internal_static_google_ads_admanager_v1_Report_DataTable_MetricValueGroup_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_ads_admanager_v1_Report_DataTable_MetricValueGroup_descriptor, - new java.lang.String[] { - "PrimaryValues", - "PrimaryPercentOfTotalValues", - "ComparisonValues", - "ComparisonPercentOfTotalValues", - "AbsoluteChangeValues", - "RelativeChangeValues", - "FlagValues", - }); - internal_static_google_ads_admanager_v1_Report_Field_descriptor = - internal_static_google_ads_admanager_v1_Report_descriptor.getNestedTypes().get(3); - internal_static_google_ads_admanager_v1_Report_Field_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_ads_admanager_v1_Report_Field_descriptor, - new java.lang.String[] { - "Dimension", "Metric", "Field", - }); - internal_static_google_ads_admanager_v1_Report_Slice_descriptor = - internal_static_google_ads_admanager_v1_Report_descriptor.getNestedTypes().get(4); - internal_static_google_ads_admanager_v1_Report_Slice_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_ads_admanager_v1_Report_Slice_descriptor, - new java.lang.String[] { - "Dimension", "Value", - }); - internal_static_google_ads_admanager_v1_Report_Filter_descriptor = - internal_static_google_ads_admanager_v1_Report_descriptor.getNestedTypes().get(5); - internal_static_google_ads_admanager_v1_Report_Filter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_ads_admanager_v1_Report_Filter_descriptor, - new java.lang.String[] { - "FieldFilter", "NotFilter", "AndFilter", "OrFilter", "Type", - }); - internal_static_google_ads_admanager_v1_Report_Filter_FieldFilter_descriptor = - internal_static_google_ads_admanager_v1_Report_Filter_descriptor.getNestedTypes().get(0); - internal_static_google_ads_admanager_v1_Report_Filter_FieldFilter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_ads_admanager_v1_Report_Filter_FieldFilter_descriptor, - new java.lang.String[] { - "Field", "Operation", "Values", "Slice", "TimePeriodIndex", "MetricValueType", - }); - internal_static_google_ads_admanager_v1_Report_Filter_FilterList_descriptor = - internal_static_google_ads_admanager_v1_Report_Filter_descriptor.getNestedTypes().get(1); - internal_static_google_ads_admanager_v1_Report_Filter_FilterList_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_ads_admanager_v1_Report_Filter_FilterList_descriptor, - new java.lang.String[] { - "Filters", - }); - internal_static_google_ads_admanager_v1_Report_Flag_descriptor = - internal_static_google_ads_admanager_v1_Report_descriptor.getNestedTypes().get(6); - internal_static_google_ads_admanager_v1_Report_Flag_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_ads_admanager_v1_Report_Flag_descriptor, - new java.lang.String[] { - "Filters", "Name", - }); - internal_static_google_ads_admanager_v1_Report_DateRange_descriptor = - internal_static_google_ads_admanager_v1_Report_descriptor.getNestedTypes().get(7); - internal_static_google_ads_admanager_v1_Report_DateRange_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_ads_admanager_v1_Report_DateRange_descriptor, - new java.lang.String[] { - "Fixed", "Relative", "DateRangeType", - }); - internal_static_google_ads_admanager_v1_Report_DateRange_FixedDateRange_descriptor = - internal_static_google_ads_admanager_v1_Report_DateRange_descriptor.getNestedTypes().get(0); - internal_static_google_ads_admanager_v1_Report_DateRange_FixedDateRange_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_ads_admanager_v1_Report_DateRange_FixedDateRange_descriptor, - new java.lang.String[] { - "StartDate", "EndDate", }); internal_static_google_ads_admanager_v1_RunReportRequest_descriptor = - getDescriptor().getMessageTypes().get(1); + getDescriptor().getMessageTypes().get(0); internal_static_google_ads_admanager_v1_RunReportRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_admanager_v1_RunReportRequest_descriptor, @@ -1363,7 +180,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_ads_admanager_v1_RunReportMetadata_descriptor = - getDescriptor().getMessageTypes().get(2); + getDescriptor().getMessageTypes().get(1); internal_static_google_ads_admanager_v1_RunReportMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_admanager_v1_RunReportMetadata_descriptor, @@ -1371,7 +188,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PercentComplete", "Report", }); internal_static_google_ads_admanager_v1_RunReportResponse_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(2); internal_static_google_ads_admanager_v1_RunReportResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_admanager_v1_RunReportResponse_descriptor, @@ -1379,7 +196,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ReportResult", }); internal_static_google_ads_admanager_v1_GetReportRequest_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(3); internal_static_google_ads_admanager_v1_GetReportRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_admanager_v1_GetReportRequest_descriptor, @@ -1387,7 +204,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_ads_admanager_v1_ListReportsRequest_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(4); internal_static_google_ads_admanager_v1_ListReportsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_admanager_v1_ListReportsRequest_descriptor, @@ -1395,7 +212,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", "Skip", }); internal_static_google_ads_admanager_v1_ListReportsResponse_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(5); internal_static_google_ads_admanager_v1_ListReportsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_admanager_v1_ListReportsResponse_descriptor, @@ -1403,7 +220,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Reports", "NextPageToken", "TotalSize", }); internal_static_google_ads_admanager_v1_CreateReportRequest_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(6); internal_static_google_ads_admanager_v1_CreateReportRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_admanager_v1_CreateReportRequest_descriptor, @@ -1411,7 +228,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Report", }); internal_static_google_ads_admanager_v1_UpdateReportRequest_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(7); internal_static_google_ads_admanager_v1_UpdateReportRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_admanager_v1_UpdateReportRequest_descriptor, @@ -1419,7 +236,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Report", "UpdateMask", }); internal_static_google_ads_admanager_v1_FetchReportResultRowsRequest_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(8); internal_static_google_ads_admanager_v1_FetchReportResultRowsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_admanager_v1_FetchReportResultRowsRequest_descriptor, @@ -1427,7 +244,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "PageSize", "PageToken", }); internal_static_google_ads_admanager_v1_FetchReportResultRowsResponse_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(9); internal_static_google_ads_admanager_v1_FetchReportResultRowsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_admanager_v1_FetchReportResultRowsResponse_descriptor, @@ -1439,77 +256,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TotalRowCount", "NextPageToken", }); - internal_static_google_ads_admanager_v1_ReportDefinition_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_ads_admanager_v1_ReportDefinition_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_ads_admanager_v1_ReportDefinition_descriptor, - new java.lang.String[] { - "Dimensions", - "Metrics", - "Filters", - "TimeZone", - "CurrencyCode", - "DateRange", - "ComparisonDateRange", - "CustomDimensionKeyIds", - "LineItemCustomFieldIds", - "OrderCustomFieldIds", - "CreativeCustomFieldIds", - "ReportType", - "TimePeriodColumn", - "Flags", - "Sorts", - }); - internal_static_google_ads_admanager_v1_ScheduleOptions_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_ads_admanager_v1_ScheduleOptions_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_ads_admanager_v1_ScheduleOptions_descriptor, - new java.lang.String[] { - "Schedule", "DeliveryCondition", "Flags", - }); - internal_static_google_ads_admanager_v1_Schedule_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_ads_admanager_v1_Schedule_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_ads_admanager_v1_Schedule_descriptor, - new java.lang.String[] { - "WeeklySchedule", - "MonthlySchedule", - "StartDate", - "EndDate", - "Frequency", - "StartTime", - "FrequencySchedule", - }); - internal_static_google_ads_admanager_v1_Schedule_WeeklySchedule_descriptor = - internal_static_google_ads_admanager_v1_Schedule_descriptor.getNestedTypes().get(0); - internal_static_google_ads_admanager_v1_Schedule_WeeklySchedule_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_ads_admanager_v1_Schedule_WeeklySchedule_descriptor, - new java.lang.String[] { - "WeeklyScheduledDays", - }); - internal_static_google_ads_admanager_v1_Schedule_MonthlySchedule_descriptor = - internal_static_google_ads_admanager_v1_Schedule_descriptor.getNestedTypes().get(1); - internal_static_google_ads_admanager_v1_Schedule_MonthlySchedule_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_ads_admanager_v1_Schedule_MonthlySchedule_descriptor, - new java.lang.String[] { - "MonthlyScheduledDays", - }); 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.ResourceProto.resource); + 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); + com.google.ads.admanager.v1.ReportMessagesProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); @@ -1517,9 +275,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.longrunning.OperationsProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); - com.google.type.DateProto.getDescriptor(); - com.google.type.DayOfWeekProto.getDescriptor(); - com.google.type.TimeOfDayProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/RequestPlatformEnum.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/RequestPlatformEnum.java new file mode 100644 index 000000000000..f032fc679e9b --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/RequestPlatformEnum.java @@ -0,0 +1,630 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/request_platform_enum.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Wrapper message for [RequestPlatform].
+ *
+ * Describes the platform from which a request is made and on which the ad is
+ * rendered. In the event of multiple platforms, the platform that ultimately
+ * renders the ad is the targeted platform. For example, a video player on a
+ * website would have a request platform of `VIDEO_PLAYER`.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.RequestPlatformEnum} + */ +public final class RequestPlatformEnum extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.RequestPlatformEnum) + RequestPlatformEnumOrBuilder { + private static final long serialVersionUID = 0L; + + // Use RequestPlatformEnum.newBuilder() to construct. + private RequestPlatformEnum(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RequestPlatformEnum() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RequestPlatformEnum(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.RequestPlatformEnumProto + .internal_static_google_ads_admanager_v1_RequestPlatformEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.RequestPlatformEnumProto + .internal_static_google_ads_admanager_v1_RequestPlatformEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.RequestPlatformEnum.class, + com.google.ads.admanager.v1.RequestPlatformEnum.Builder.class); + } + + /** + * + * + *
+   * The different environments in which an ad can be shown.
+   * 
+ * + * Protobuf enum {@code google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform} + */ + public enum RequestPlatform implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * No value specified
+     * 
+ * + * REQUEST_PLATFORM_UNSPECIFIED = 0; + */ + REQUEST_PLATFORM_UNSPECIFIED(0), + /** + * + * + *
+     * Represents a request made from a web browser (incl. desktop browsers,
+     * mobile browsers, webviews, etc.).
+     * 
+ * + * BROWSER = 1; + */ + BROWSER(1), + /** + * + * + *
+     * Represents a request made from a Mobile Application.
+     * 
+ * + * MOBILE_APP = 2; + */ + MOBILE_APP(2), + /** + * + * + *
+     * Represents a request made from a video player.
+     * 
+ * + * VIDEO_PLAYER = 3; + */ + VIDEO_PLAYER(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * No value specified
+     * 
+ * + * REQUEST_PLATFORM_UNSPECIFIED = 0; + */ + public static final int REQUEST_PLATFORM_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Represents a request made from a web browser (incl. desktop browsers,
+     * mobile browsers, webviews, etc.).
+     * 
+ * + * BROWSER = 1; + */ + public static final int BROWSER_VALUE = 1; + + /** + * + * + *
+     * Represents a request made from a Mobile Application.
+     * 
+ * + * MOBILE_APP = 2; + */ + public static final int MOBILE_APP_VALUE = 2; + + /** + * + * + *
+     * Represents a request made from a video player.
+     * 
+ * + * VIDEO_PLAYER = 3; + */ + public static final int VIDEO_PLAYER_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static RequestPlatform 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 RequestPlatform forNumber(int value) { + switch (value) { + case 0: + return REQUEST_PLATFORM_UNSPECIFIED; + case 1: + return BROWSER; + case 2: + return MOBILE_APP; + case 3: + return VIDEO_PLAYER; + 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 RequestPlatform findValueByNumber(int number) { + return RequestPlatform.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.admanager.v1.RequestPlatformEnum.getDescriptor().getEnumTypes().get(0); + } + + private static final RequestPlatform[] VALUES = values(); + + public static RequestPlatform 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 RequestPlatform(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform) + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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.admanager.v1.RequestPlatformEnum)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.RequestPlatformEnum other = + (com.google.ads.admanager.v1.RequestPlatformEnum) 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.admanager.v1.RequestPlatformEnum parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.RequestPlatformEnum 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.admanager.v1.RequestPlatformEnum parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.RequestPlatformEnum parseFrom( + 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.admanager.v1.RequestPlatformEnum parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.RequestPlatformEnum parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.RequestPlatformEnum parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.RequestPlatformEnum parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.RequestPlatformEnum parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.RequestPlatformEnum parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.RequestPlatformEnum parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.RequestPlatformEnum parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.RequestPlatformEnum prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Wrapper message for [RequestPlatform].
+   *
+   * Describes the platform from which a request is made and on which the ad is
+   * rendered. In the event of multiple platforms, the platform that ultimately
+   * renders the ad is the targeted platform. For example, a video player on a
+   * website would have a request platform of `VIDEO_PLAYER`.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.RequestPlatformEnum} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.RequestPlatformEnum) + com.google.ads.admanager.v1.RequestPlatformEnumOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.RequestPlatformEnumProto + .internal_static_google_ads_admanager_v1_RequestPlatformEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.RequestPlatformEnumProto + .internal_static_google_ads_admanager_v1_RequestPlatformEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.RequestPlatformEnum.class, + com.google.ads.admanager.v1.RequestPlatformEnum.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.RequestPlatformEnum.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.RequestPlatformEnumProto + .internal_static_google_ads_admanager_v1_RequestPlatformEnum_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.RequestPlatformEnum getDefaultInstanceForType() { + return com.google.ads.admanager.v1.RequestPlatformEnum.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.RequestPlatformEnum build() { + com.google.ads.admanager.v1.RequestPlatformEnum result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.RequestPlatformEnum buildPartial() { + com.google.ads.admanager.v1.RequestPlatformEnum result = + new com.google.ads.admanager.v1.RequestPlatformEnum(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.RequestPlatformEnum) { + return mergeFrom((com.google.ads.admanager.v1.RequestPlatformEnum) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.RequestPlatformEnum other) { + if (other == com.google.ads.admanager.v1.RequestPlatformEnum.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.RequestPlatformEnum) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.RequestPlatformEnum) + private static final com.google.ads.admanager.v1.RequestPlatformEnum DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.RequestPlatformEnum(); + } + + public static com.google.ads.admanager.v1.RequestPlatformEnum getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RequestPlatformEnum parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.RequestPlatformEnum getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/RequestPlatformEnumOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/RequestPlatformEnumOrBuilder.java new file mode 100644 index 000000000000..c6060d6353dc --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/RequestPlatformEnumOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/request_platform_enum.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface RequestPlatformEnumOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.RequestPlatformEnum) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/RequestPlatformEnumProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/RequestPlatformEnumProto.java new file mode 100644 index 000000000000..73b38e3e1d7e --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/RequestPlatformEnumProto.java @@ -0,0 +1,68 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/request_platform_enum.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class RequestPlatformEnumProto { + private RequestPlatformEnumProto() {} + + 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_ads_admanager_v1_RequestPlatformEnum_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_RequestPlatformEnum_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n3google/ads/admanager/v1/request_platfo" + + "rm_enum.proto\022\027google.ads.admanager.v1\"y" + + "\n\023RequestPlatformEnum\"b\n\017RequestPlatform" + + "\022 \n\034REQUEST_PLATFORM_UNSPECIFIED\020\000\022\013\n\007BR" + + "OWSER\020\001\022\016\n\nMOBILE_APP\020\002\022\020\n\014VIDEO_PLAYER\020" + + "\003B\314\001\n\033com.google.ads.admanager.v1B\030Reque" + + "stPlatformEnumProtoP\001Z@google.golang.org" + + "/genproto/googleapis/ads/admanager/v1;ad" + + "manager\252\002\027Google.Ads.AdManager.V1\312\002\027Goog" + + "le\\Ads\\AdManager\\V1\352\002\032Google::Ads::AdMan" + + "ager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_ads_admanager_v1_RequestPlatformEnum_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_RequestPlatformEnum_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_RequestPlatformEnum_descriptor, + new java.lang.String[] {}); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/RequestPlatformTargeting.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/RequestPlatformTargeting.java new file mode 100644 index 000000000000..f53df0927565 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/RequestPlatformTargeting.java @@ -0,0 +1,895 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Represents a list of targeted request platforms.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.RequestPlatformTargeting} + */ +public final class RequestPlatformTargeting extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.RequestPlatformTargeting) + RequestPlatformTargetingOrBuilder { + private static final long serialVersionUID = 0L; + + // Use RequestPlatformTargeting.newBuilder() to construct. + private RequestPlatformTargeting(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RequestPlatformTargeting() { + requestPlatforms_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RequestPlatformTargeting(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_RequestPlatformTargeting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_RequestPlatformTargeting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.RequestPlatformTargeting.class, + com.google.ads.admanager.v1.RequestPlatformTargeting.Builder.class); + } + + public static final int REQUEST_PLATFORMS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List requestPlatforms_; + + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform> + requestPlatforms_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, + com.google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform>() { + public com.google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform convert( + java.lang.Integer from) { + com.google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform result = + com.google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform.forNumber(from); + return result == null + ? com.google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform.UNRECOGNIZED + : result; + } + }; + + /** + * + * + *
+   * Optional. The list of request platforms that should be targeted.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform request_platforms = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the requestPlatforms. + */ + @java.lang.Override + public java.util.List + getRequestPlatformsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform>( + requestPlatforms_, requestPlatforms_converter_); + } + + /** + * + * + *
+   * Optional. The list of request platforms that should be targeted.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform request_platforms = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of requestPlatforms. + */ + @java.lang.Override + public int getRequestPlatformsCount() { + return requestPlatforms_.size(); + } + + /** + * + * + *
+   * Optional. The list of request platforms that should be targeted.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform request_platforms = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The requestPlatforms at the given index. + */ + @java.lang.Override + public com.google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform getRequestPlatforms( + int index) { + return requestPlatforms_converter_.convert(requestPlatforms_.get(index)); + } + + /** + * + * + *
+   * Optional. The list of request platforms that should be targeted.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform request_platforms = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for requestPlatforms. + */ + @java.lang.Override + public java.util.List getRequestPlatformsValueList() { + return requestPlatforms_; + } + + /** + * + * + *
+   * Optional. The list of request platforms that should be targeted.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform request_platforms = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of requestPlatforms at the given index. + */ + @java.lang.Override + public int getRequestPlatformsValue(int index) { + return requestPlatforms_.get(index); + } + + private int requestPlatformsMemoizedSerializedSize; + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (getRequestPlatformsList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(requestPlatformsMemoizedSerializedSize); + } + for (int i = 0; i < requestPlatforms_.size(); i++) { + output.writeEnumNoTag(requestPlatforms_.get(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 < requestPlatforms_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(requestPlatforms_.get(i)); + } + size += dataSize; + if (!getRequestPlatformsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + requestPlatformsMemoizedSerializedSize = dataSize; + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.ads.admanager.v1.RequestPlatformTargeting)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.RequestPlatformTargeting other = + (com.google.ads.admanager.v1.RequestPlatformTargeting) obj; + + if (!requestPlatforms_.equals(other.requestPlatforms_)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getRequestPlatformsCount() > 0) { + hash = (37 * hash) + REQUEST_PLATFORMS_FIELD_NUMBER; + hash = (53 * hash) + requestPlatforms_.hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.RequestPlatformTargeting parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.RequestPlatformTargeting 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.admanager.v1.RequestPlatformTargeting parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.RequestPlatformTargeting parseFrom( + 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.admanager.v1.RequestPlatformTargeting parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.RequestPlatformTargeting parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.RequestPlatformTargeting parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.RequestPlatformTargeting parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.RequestPlatformTargeting parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.RequestPlatformTargeting parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.RequestPlatformTargeting parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.RequestPlatformTargeting parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.RequestPlatformTargeting prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Represents a list of targeted request platforms.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.RequestPlatformTargeting} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.RequestPlatformTargeting) + com.google.ads.admanager.v1.RequestPlatformTargetingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_RequestPlatformTargeting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_RequestPlatformTargeting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.RequestPlatformTargeting.class, + com.google.ads.admanager.v1.RequestPlatformTargeting.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.RequestPlatformTargeting.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + requestPlatforms_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_RequestPlatformTargeting_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.RequestPlatformTargeting getDefaultInstanceForType() { + return com.google.ads.admanager.v1.RequestPlatformTargeting.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.RequestPlatformTargeting build() { + com.google.ads.admanager.v1.RequestPlatformTargeting result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.RequestPlatformTargeting buildPartial() { + com.google.ads.admanager.v1.RequestPlatformTargeting result = + new com.google.ads.admanager.v1.RequestPlatformTargeting(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.RequestPlatformTargeting result) { + if (((bitField0_ & 0x00000001) != 0)) { + requestPlatforms_ = java.util.Collections.unmodifiableList(requestPlatforms_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.requestPlatforms_ = requestPlatforms_; + } + + private void buildPartial0(com.google.ads.admanager.v1.RequestPlatformTargeting result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.RequestPlatformTargeting) { + return mergeFrom((com.google.ads.admanager.v1.RequestPlatformTargeting) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.RequestPlatformTargeting other) { + if (other == com.google.ads.admanager.v1.RequestPlatformTargeting.getDefaultInstance()) + return this; + if (!other.requestPlatforms_.isEmpty()) { + if (requestPlatforms_.isEmpty()) { + requestPlatforms_ = other.requestPlatforms_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRequestPlatformsIsMutable(); + requestPlatforms_.addAll(other.requestPlatforms_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + int tmpRaw = input.readEnum(); + ensureRequestPlatformsIsMutable(); + requestPlatforms_.add(tmpRaw); + break; + } // case 8 + case 10: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureRequestPlatformsIsMutable(); + requestPlatforms_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // 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 requestPlatforms_ = java.util.Collections.emptyList(); + + private void ensureRequestPlatformsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + requestPlatforms_ = new java.util.ArrayList(requestPlatforms_); + bitField0_ |= 0x00000001; + } + } + + /** + * + * + *
+     * Optional. The list of request platforms that should be targeted.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform request_platforms = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the requestPlatforms. + */ + public java.util.List + getRequestPlatformsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform>( + requestPlatforms_, requestPlatforms_converter_); + } + + /** + * + * + *
+     * Optional. The list of request platforms that should be targeted.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform request_platforms = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of requestPlatforms. + */ + public int getRequestPlatformsCount() { + return requestPlatforms_.size(); + } + + /** + * + * + *
+     * Optional. The list of request platforms that should be targeted.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform request_platforms = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The requestPlatforms at the given index. + */ + public com.google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform getRequestPlatforms( + int index) { + return requestPlatforms_converter_.convert(requestPlatforms_.get(index)); + } + + /** + * + * + *
+     * Optional. The list of request platforms that should be targeted.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform request_platforms = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The requestPlatforms to set. + * @return This builder for chaining. + */ + public Builder setRequestPlatforms( + int index, com.google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestPlatformsIsMutable(); + requestPlatforms_.set(index, value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The list of request platforms that should be targeted.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform request_platforms = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The requestPlatforms to add. + * @return This builder for chaining. + */ + public Builder addRequestPlatforms( + com.google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestPlatformsIsMutable(); + requestPlatforms_.add(value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The list of request platforms that should be targeted.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform request_platforms = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The requestPlatforms to add. + * @return This builder for chaining. + */ + public Builder addAllRequestPlatforms( + java.lang.Iterable< + ? extends com.google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform> + values) { + ensureRequestPlatformsIsMutable(); + for (com.google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform value : values) { + requestPlatforms_.add(value.getNumber()); + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The list of request platforms that should be targeted.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform request_platforms = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearRequestPlatforms() { + requestPlatforms_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The list of request platforms that should be targeted.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform request_platforms = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for requestPlatforms. + */ + public java.util.List getRequestPlatformsValueList() { + return java.util.Collections.unmodifiableList(requestPlatforms_); + } + + /** + * + * + *
+     * Optional. The list of request platforms that should be targeted.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform request_platforms = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of requestPlatforms at the given index. + */ + public int getRequestPlatformsValue(int index) { + return requestPlatforms_.get(index); + } + + /** + * + * + *
+     * Optional. The list of request platforms that should be targeted.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform request_platforms = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for requestPlatforms to set. + * @return This builder for chaining. + */ + public Builder setRequestPlatformsValue(int index, int value) { + ensureRequestPlatformsIsMutable(); + requestPlatforms_.set(index, value); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The list of request platforms that should be targeted.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform request_platforms = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for requestPlatforms to add. + * @return This builder for chaining. + */ + public Builder addRequestPlatformsValue(int value) { + ensureRequestPlatformsIsMutable(); + requestPlatforms_.add(value); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The list of request platforms that should be targeted.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform request_platforms = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The enum numeric values on the wire for requestPlatforms to add. + * @return This builder for chaining. + */ + public Builder addAllRequestPlatformsValue(java.lang.Iterable values) { + ensureRequestPlatformsIsMutable(); + for (int value : values) { + requestPlatforms_.add(value); + } + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.RequestPlatformTargeting) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.RequestPlatformTargeting) + private static final com.google.ads.admanager.v1.RequestPlatformTargeting DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.RequestPlatformTargeting(); + } + + public static com.google.ads.admanager.v1.RequestPlatformTargeting getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RequestPlatformTargeting parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.RequestPlatformTargeting getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/RequestPlatformTargetingOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/RequestPlatformTargetingOrBuilder.java new file mode 100644 index 000000000000..918743ae2a61 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/RequestPlatformTargetingOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface RequestPlatformTargetingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.RequestPlatformTargeting) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The list of request platforms that should be targeted.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform request_platforms = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the requestPlatforms. + */ + java.util.List + getRequestPlatformsList(); + + /** + * + * + *
+   * Optional. The list of request platforms that should be targeted.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform request_platforms = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of requestPlatforms. + */ + int getRequestPlatformsCount(); + + /** + * + * + *
+   * Optional. The list of request platforms that should be targeted.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform request_platforms = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The requestPlatforms at the given index. + */ + com.google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform getRequestPlatforms(int index); + + /** + * + * + *
+   * Optional. The list of request platforms that should be targeted.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform request_platforms = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for requestPlatforms. + */ + java.util.List getRequestPlatformsValueList(); + + /** + * + * + *
+   * Optional. The list of request platforms that should be targeted.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.RequestPlatformEnum.RequestPlatform request_platforms = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of requestPlatforms at the given index. + */ + int getRequestPlatformsValue(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Role.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Role.java index 4fa81c553b56..973e11626866 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Role.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Role.java @@ -66,6 +66,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.ads.admanager.v1.Role.class, com.google.ads.admanager.v1.Role.Builder.class); } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -131,7 +132,23 @@ public com.google.protobuf.ByteString getNameBytes() { * Output only. `Role` ID. * * - * int64 role_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional int64 role_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the roleId field is set. + */ + @java.lang.Override + public boolean hasRoleId() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. `Role` ID.
+   * 
+ * + * optional int64 role_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The roleId. */ @@ -152,7 +169,23 @@ public long getRoleId() { * Required. The display name of the `Role`. * * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the displayName field is set. + */ + @java.lang.Override + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Required. The display name of the `Role`.
+   * 
+ * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The displayName. */ @@ -176,7 +209,7 @@ public java.lang.String getDisplayName() { * Required. The display name of the `Role`. * * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for displayName. */ @@ -205,7 +238,23 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * Optional. The description of the `Role`. * * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the description field is set. + */ + @java.lang.Override + public boolean hasDescription() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Optional. The description of the `Role`.
+   * 
+ * + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The description. */ @@ -229,7 +278,7 @@ public java.lang.String getDescription() { * Optional. The description of the `Role`. * * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for description. */ @@ -256,7 +305,23 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * Output only. Whether the `Role` is a built-in or custom user role. * * - * bool built_in = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool built_in = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the builtIn field is set. + */ + @java.lang.Override + public boolean hasBuiltIn() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Output only. Whether the `Role` is a built-in or custom user role.
+   * 
+ * + * optional bool built_in = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The builtIn. */ @@ -276,7 +341,25 @@ public boolean getBuiltIn() { * * * - * .google.ads.admanager.v1.RoleStatusEnum.RoleStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.RoleStatusEnum.RoleStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Output only. The status of the `Role`.
+   * 
+ * + * + * optional .google.ads.admanager.v1.RoleStatusEnum.RoleStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for status. @@ -294,7 +377,7 @@ public int getStatusValue() { * * * - * .google.ads.admanager.v1.RoleStatusEnum.RoleStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.RoleStatusEnum.RoleStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The status. @@ -325,21 +408,19 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (roleId_ != 0L) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(2, roleId_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); } - if (builtIn_ != false) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeBool(5, builtIn_); } - if (status_ - != com.google.ads.admanager.v1.RoleStatusEnum.RoleStatus.ROLE_STATUS_UNSPECIFIED - .getNumber()) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeEnum(6, status_); } getUnknownFields().writeTo(output); @@ -354,21 +435,19 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (roleId_ != 0L) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, roleId_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); } - if (builtIn_ != false) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, builtIn_); } - if (status_ - != com.google.ads.admanager.v1.RoleStatusEnum.RoleStatus.ROLE_STATUS_UNSPECIFIED - .getNumber()) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, status_); } size += getUnknownFields().getSerializedSize(); @@ -387,11 +466,26 @@ public boolean equals(final java.lang.Object obj) { com.google.ads.admanager.v1.Role other = (com.google.ads.admanager.v1.Role) obj; if (!getName().equals(other.getName())) return false; - if (getRoleId() != other.getRoleId()) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (getBuiltIn() != other.getBuiltIn()) return false; - if (status_ != other.status_) return false; + if (hasRoleId() != other.hasRoleId()) return false; + if (hasRoleId()) { + if (getRoleId() != other.getRoleId()) return false; + } + if (hasDisplayName() != other.hasDisplayName()) return false; + if (hasDisplayName()) { + if (!getDisplayName().equals(other.getDisplayName())) return false; + } + if (hasDescription() != other.hasDescription()) return false; + if (hasDescription()) { + if (!getDescription().equals(other.getDescription())) return false; + } + if (hasBuiltIn() != other.hasBuiltIn()) return false; + if (hasBuiltIn()) { + if (getBuiltIn() != other.getBuiltIn()) return false; + } + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (status_ != other.status_) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -405,16 +499,26 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + ROLE_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRoleId()); - hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (37 * hash) + BUILT_IN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBuiltIn()); - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + status_; + if (hasRoleId()) { + hash = (37 * hash) + ROLE_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRoleId()); + } + if (hasDisplayName()) { + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + } + if (hasDescription()) { + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + } + if (hasBuiltIn()) { + hash = (37 * hash) + BUILT_IN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBuiltIn()); + } + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -598,21 +702,28 @@ private void buildPartial0(com.google.ads.admanager.v1.Role result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.roleId_ = roleId_; + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.displayName_ = displayName_; + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.description_ = description_; + to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { result.builtIn_ = builtIn_; + to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000020) != 0)) { result.status_ = status_; + to_bitField0_ |= 0x00000010; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -665,24 +776,24 @@ public Builder mergeFrom(com.google.ads.admanager.v1.Role other) { bitField0_ |= 0x00000001; onChanged(); } - if (other.getRoleId() != 0L) { + if (other.hasRoleId()) { setRoleId(other.getRoleId()); } - if (!other.getDisplayName().isEmpty()) { + if (other.hasDisplayName()) { displayName_ = other.displayName_; bitField0_ |= 0x00000004; onChanged(); } - if (!other.getDescription().isEmpty()) { + if (other.hasDescription()) { description_ = other.description_; bitField0_ |= 0x00000008; onChanged(); } - if (other.getBuiltIn() != false) { + if (other.hasBuiltIn()) { setBuiltIn(other.getBuiltIn()); } - if (other.status_ != 0) { - setStatusValue(other.getStatusValue()); + if (other.hasStatus()) { + setStatus(other.getStatus()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -890,7 +1001,23 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * Output only. `Role` ID. * * - * int64 role_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional int64 role_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the roleId field is set. + */ + @java.lang.Override + public boolean hasRoleId() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. `Role` ID.
+     * 
+ * + * optional int64 role_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The roleId. */ @@ -906,7 +1033,7 @@ public long getRoleId() { * Output only. `Role` ID. * * - * int64 role_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional int64 role_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The roleId to set. * @return This builder for chaining. @@ -926,7 +1053,7 @@ public Builder setRoleId(long value) { * Output only. `Role` ID. * * - * int64 role_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional int64 role_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -946,7 +1073,22 @@ public Builder clearRoleId() { * Required. The display name of the `Role`. * * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the displayName field is set. + */ + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. The display name of the `Role`.
+     * 
+ * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The displayName. */ @@ -969,7 +1111,7 @@ public java.lang.String getDisplayName() { * Required. The display name of the `Role`. * * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for displayName. */ @@ -992,7 +1134,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * Required. The display name of the `Role`. * * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; * * @param value The displayName to set. * @return This builder for chaining. @@ -1014,7 +1156,7 @@ public Builder setDisplayName(java.lang.String value) { * Required. The display name of the `Role`. * * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ @@ -1032,7 +1174,7 @@ public Builder clearDisplayName() { * Required. The display name of the `Role`. * * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for displayName to set. * @return This builder for chaining. @@ -1057,7 +1199,22 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * Optional. The description of the `Role`. * * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the description field is set. + */ + public boolean hasDescription() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Optional. The description of the `Role`.
+     * 
+ * + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The description. */ @@ -1080,7 +1237,7 @@ public java.lang.String getDescription() { * Optional. The description of the `Role`. * * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for description. */ @@ -1103,7 +1260,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * Optional. The description of the `Role`. * * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The description to set. * @return This builder for chaining. @@ -1125,7 +1282,7 @@ public Builder setDescription(java.lang.String value) { * Optional. The description of the `Role`. * * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1143,7 +1300,7 @@ public Builder clearDescription() { * Optional. The description of the `Role`. * * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for description to set. * @return This builder for chaining. @@ -1168,7 +1325,23 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * Output only. Whether the `Role` is a built-in or custom user role. * * - * bool built_in = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool built_in = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the builtIn field is set. + */ + @java.lang.Override + public boolean hasBuiltIn() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Output only. Whether the `Role` is a built-in or custom user role.
+     * 
+ * + * optional bool built_in = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The builtIn. */ @@ -1184,7 +1357,7 @@ public boolean getBuiltIn() { * Output only. Whether the `Role` is a built-in or custom user role. * * - * bool built_in = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool built_in = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The builtIn to set. * @return This builder for chaining. @@ -1204,7 +1377,7 @@ public Builder setBuiltIn(boolean value) { * Output only. Whether the `Role` is a built-in or custom user role. * * - * bool built_in = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool built_in = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -1225,7 +1398,25 @@ public Builder clearBuiltIn() { * * * - * .google.ads.admanager.v1.RoleStatusEnum.RoleStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.RoleStatusEnum.RoleStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Output only. The status of the `Role`.
+     * 
+ * + * + * optional .google.ads.admanager.v1.RoleStatusEnum.RoleStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for status. @@ -1243,7 +1434,7 @@ public int getStatusValue() { * * * - * .google.ads.admanager.v1.RoleStatusEnum.RoleStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.RoleStatusEnum.RoleStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The enum numeric value on the wire for status to set. @@ -1264,7 +1455,7 @@ public Builder setStatusValue(int value) { * * * - * .google.ads.admanager.v1.RoleStatusEnum.RoleStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.RoleStatusEnum.RoleStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The status. @@ -1286,7 +1477,7 @@ public com.google.ads.admanager.v1.RoleStatusEnum.RoleStatus getStatus() { * * * - * .google.ads.admanager.v1.RoleStatusEnum.RoleStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.RoleStatusEnum.RoleStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The status to set. @@ -1310,7 +1501,7 @@ public Builder setStatus(com.google.ads.admanager.v1.RoleStatusEnum.RoleStatus v * * * - * .google.ads.admanager.v1.RoleStatusEnum.RoleStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.RoleStatusEnum.RoleStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/RoleMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/RoleMessagesProto.java index 3e5ecf4fc8ec..11f7a45fe171 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/RoleMessagesProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/RoleMessagesProto.java @@ -45,22 +45,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "+google/ads/admanager/v1/role_messages." + "proto\022\027google.ads.admanager.v1\032(google/a" + "ds/admanager/v1/role_enums.proto\032\037google" - + "/api/field_behavior.proto\032\031google/api/resource.proto\"\233\002\n" + + "/api/field_behavior.proto\032\031google/api/resource.proto\"\371\002\n" + "\004Role\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\010\022\024\n" - + "\007role_id\030\002 \001(\003B\003\340A\003\022\031\n" - + "\014display_name\030\003 \001(\tB\003\340A\002\022\030\n" - + "\013description\030\004 \001(\tB\003\340A\001\022\025\n" - + "\010built_in\030\005 \001(\010B\003\340A\003\022G\n" - + "\006status\030\006 \001(\01622.goo" - + "gle.ads.admanager.v1.RoleStatusEnum.RoleStatusB\003\340A\003:U\352AR\n" - + "\035admanager.googleapis.c" - + "om/Role\022$networks/{network_code}/roles/{role}*\005roles2\004roleB\305\001\n" - + "\033com.google.ads.admanager.v1B\021RoleMessagesProtoP\001Z@google." - + "golang.org/genproto/googleapis/ads/adman" - + "ager/v1;admanager\252\002\027Google.Ads.AdManager" - + ".V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032Google::" - + "Ads::AdManager::V1b\006proto3" + + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" + + "\007role_id\030\002 \001(\003B\003\340A\003H\000\210\001\001\022\036\n" + + "\014display_name\030\003 \001(\tB\003\340A\002H\001\210\001\001\022\035\n" + + "\013description\030\004 \001(\tB\003\340A\001H\002\210\001\001\022\032\n" + + "\010built_in\030\005 \001(\010B\003\340A\003H\003\210\001\001\022L\n" + + "\006status\030\006 \001(\01622.google.ads.admanager.v1" + + ".RoleStatusEnum.RoleStatusB\003\340A\003H\004\210\001\001:U\352AR\n" + + "\035admanager.googleapis.com/Role\022$networ" + + "ks/{network_code}/roles/{role}*\005roles2\004roleB\n\n" + + "\010_role_idB\017\n\r" + + "_display_nameB\016\n" + + "\014_descriptionB\013\n" + + "\t_built_inB\t\n" + + "\007_statusB\305\001\n" + + "\033com.google.ads.admanager.v1B\021RoleMessagesPr" + + "otoP\001Z@google.golang.org/genproto/google" + + "apis/ads/admanager/v1;admanager\252\002\027Google" + + ".Ads.AdManager.V1\312\002\027Google\\Ads\\AdManager" + + "\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/RoleOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/RoleOrBuilder.java index fdcd7cb4c7ab..398ff162a92f 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/RoleOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/RoleOrBuilder.java @@ -59,7 +59,20 @@ public interface RoleOrBuilder * Output only. `Role` ID. * * - * int64 role_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional int64 role_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the roleId field is set. + */ + boolean hasRoleId(); + + /** + * + * + *
+   * Output only. `Role` ID.
+   * 
+ * + * optional int64 role_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The roleId. */ @@ -72,7 +85,20 @@ public interface RoleOrBuilder * Required. The display name of the `Role`. * * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the displayName field is set. + */ + boolean hasDisplayName(); + + /** + * + * + *
+   * Required. The display name of the `Role`.
+   * 
+ * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The displayName. */ @@ -85,7 +111,7 @@ public interface RoleOrBuilder * Required. The display name of the `Role`. * * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for displayName. */ @@ -98,7 +124,20 @@ public interface RoleOrBuilder * Optional. The description of the `Role`. * * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the description field is set. + */ + boolean hasDescription(); + + /** + * + * + *
+   * Optional. The description of the `Role`.
+   * 
+ * + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The description. */ @@ -111,7 +150,7 @@ public interface RoleOrBuilder * Optional. The description of the `Role`. * * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * optional string description = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for description. */ @@ -124,7 +163,20 @@ public interface RoleOrBuilder * Output only. Whether the `Role` is a built-in or custom user role. * * - * bool built_in = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool built_in = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the builtIn field is set. + */ + boolean hasBuiltIn(); + + /** + * + * + *
+   * Output only. Whether the `Role` is a built-in or custom user role.
+   * 
+ * + * optional bool built_in = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The builtIn. */ @@ -138,7 +190,22 @@ public interface RoleOrBuilder * * * - * .google.ads.admanager.v1.RoleStatusEnum.RoleStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.RoleStatusEnum.RoleStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the status field is set. + */ + boolean hasStatus(); + + /** + * + * + *
+   * Output only. The status of the `Role`.
+   * 
+ * + * + * optional .google.ads.admanager.v1.RoleStatusEnum.RoleStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for status. @@ -153,7 +220,7 @@ public interface RoleOrBuilder * * * - * .google.ads.admanager.v1.RoleStatusEnum.RoleStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.RoleStatusEnum.RoleStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The status. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/RoleServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/RoleServiceProto.java index 9e24944a5bc1..66903dbdddf9 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/RoleServiceProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/RoleServiceProto.java @@ -69,18 +69,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021ListRolesResponse\022,\n" + "\005roles\030\001 \003(\0132\035.google.ads.admanager.v1.Role\022\027\n" + "\017next_page_token\030\002 \001(\t\022\022\n\n" - + "total_size\030\003 \001(\0052\300\002\n" + + "total_size\030\003 \001(\0052\354\002\n" + "\013RoleService\022\177\n" + "\007GetRole\022\'.google.ads.admanager.v1.GetRoleRequest\032\035.google" + ".ads.admanager.v1.Role\",\332A\004name\202\323\344\223\002\037\022\035/v1/{name=networks/*/roles/*}\022\222\001\n" + "\tListRoles\022).google.ads.admanager.v1.ListRolesRe" + "quest\032*.google.ads.admanager.v1.ListRole" + "sResponse\".\332A\006parent\202\323\344\223\002\037\022\035/v1/{parent=" - + "networks/*}/roles\032\033\312A\030admanager.googleapis.comB\304\001\n" - + "\033com.google.ads.admanager.v1B\020RoleServiceProtoP\001Z@google.golang.org/ge" - + "nproto/googleapis/ads/admanager/v1;adman" - + "ager\252\002\027Google.Ads.AdManager.V1\312\002\027Google\\" - + "Ads\\AdManager\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" + + "networks/*}/roles\032G\312A\030admanager.googleap" + + "is.com\322A)https://www.googleapis.com/auth/admanagerB\304\001\n" + + "\033com.google.ads.admanager.v1B\020RoleServiceProtoP\001Z@google.golang.or" + + "g/genproto/googleapis/ads/admanager/v1;a" + + "dmanager\252\002\027Google.Ads.AdManager.V1\312\002\027Goo" + + "gle\\Ads\\AdManager\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -122,6 +123,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.AnnotationsProto.http); registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Schedule.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Schedule.java index 5d709819b264..c1c615da7e18 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Schedule.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Schedule.java @@ -14,7 +14,7 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/admanager/v1/report_service.proto +// source: google/ads/admanager/v1/report_messages.proto // Protobuf Java Version: 3.25.8 package com.google.ads.admanager.v1; @@ -50,14 +50,14 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Schedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Schedule_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.admanager.v1.Schedule.class, @@ -442,14 +442,14 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Schedule_WeeklySchedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Schedule_WeeklySchedule_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.admanager.v1.Schedule.WeeklySchedule.class, @@ -753,14 +753,14 @@ public static final class Builder // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.Schedule.WeeklySchedule) com.google.ads.admanager.v1.Schedule.WeeklyScheduleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Schedule_WeeklySchedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Schedule_WeeklySchedule_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.admanager.v1.Schedule.WeeklySchedule.class, @@ -785,7 +785,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Schedule_WeeklySchedule_descriptor; } @@ -1328,14 +1328,14 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Schedule_MonthlySchedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Schedule_MonthlySchedule_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.admanager.v1.Schedule.MonthlySchedule.class, @@ -1594,14 +1594,14 @@ public static final class Builder // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.Schedule.MonthlySchedule) com.google.ads.admanager.v1.Schedule.MonthlyScheduleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Schedule_MonthlySchedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Schedule_MonthlySchedule_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.admanager.v1.Schedule.MonthlySchedule.class, @@ -1625,7 +1625,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Schedule_MonthlySchedule_descriptor; } @@ -2621,14 +2621,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.Schedule) com.google.ads.admanager.v1.ScheduleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Schedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Schedule_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.admanager.v1.Schedule.class, @@ -2686,7 +2686,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_Schedule_descriptor; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ScheduleOptions.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ScheduleOptions.java index babb9dd64da9..c2ea9cc8a7ad 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ScheduleOptions.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ScheduleOptions.java @@ -14,7 +14,7 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/admanager/v1/report_service.proto +// source: google/ads/admanager/v1/report_messages.proto // Protobuf Java Version: 3.25.8 package com.google.ads.admanager.v1; @@ -51,14 +51,14 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_ScheduleOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_ScheduleOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.admanager.v1.ScheduleOptions.class, @@ -612,14 +612,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ScheduleOptions) com.google.ads.admanager.v1.ScheduleOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_ScheduleOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_ScheduleOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.admanager.v1.ScheduleOptions.class, @@ -665,7 +665,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.admanager.v1.ReportServiceProto + return com.google.ads.admanager.v1.ReportMessagesProto .internal_static_google_ads_admanager_v1_ScheduleOptions_descriptor; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ScheduleOptionsOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ScheduleOptionsOrBuilder.java index 1ca8baa0f285..545c3c0c7479 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ScheduleOptionsOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ScheduleOptionsOrBuilder.java @@ -14,7 +14,7 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/admanager/v1/report_service.proto +// source: google/ads/admanager/v1/report_messages.proto // Protobuf Java Version: 3.25.8 package com.google.ads.admanager.v1; diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ScheduleOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ScheduleOrBuilder.java index 87bca89993b3..ca46afb27cf3 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ScheduleOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ScheduleOrBuilder.java @@ -14,7 +14,7 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/admanager/v1/report_service.proto +// source: google/ads/admanager/v1/report_messages.proto // Protobuf Java Version: 3.25.8 package com.google.ads.admanager.v1; diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Size.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Size.java index 195db836a5e3..67fda572e2ff 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Size.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Size.java @@ -70,9 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The width of the [Creative](google.ads.admanager.v1.Creative),
-   * [AdUnit](google.ads.admanager.v1.AdUnit), or
-   * [LineItem](google.ads.admanager.v1.LineItem).
+   * Required. The width of the Creative,
+   * [AdUnit][google.ads.admanager.v1.AdUnit], or LineItem.
    * 
* * int32 width = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -91,9 +90,8 @@ public int getWidth() { * * *
-   * Required. The height of the [Creative](google.ads.admanager.v1.Creative),
-   * [AdUnit](google.ads.admanager.v1.AdUnit), or
-   * [LineItem](google.ads.admanager.v1.LineItem).
+   * Required. The height of the Creative,
+   * [AdUnit][google.ads.admanager.v1.AdUnit], or LineItem.
    * 
* * int32 height = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -112,10 +110,8 @@ public int getHeight() { * * *
-   * Required. The SizeType of the
-   * [Creative](google.ads.admanager.v1.Creative),
-   * [AdUnit](google.ads.admanager.v1.AdUnit), or
-   * [LineItem](google.ads.admanager.v1.LineItem).
+   * Required. The SizeType of the Creative,
+   * [AdUnit][google.ads.admanager.v1.AdUnit], or LineItem.
    * 
* * @@ -133,10 +129,8 @@ public int getSizeTypeValue() { * * *
-   * Required. The SizeType of the
-   * [Creative](google.ads.admanager.v1.Creative),
-   * [AdUnit](google.ads.admanager.v1.AdUnit), or
-   * [LineItem](google.ads.admanager.v1.LineItem).
+   * Required. The SizeType of the Creative,
+   * [AdUnit][google.ads.admanager.v1.AdUnit], or LineItem.
    * 
* * @@ -541,9 +535,8 @@ public Builder mergeFrom( * * *
-     * Required. The width of the [Creative](google.ads.admanager.v1.Creative),
-     * [AdUnit](google.ads.admanager.v1.AdUnit), or
-     * [LineItem](google.ads.admanager.v1.LineItem).
+     * Required. The width of the Creative,
+     * [AdUnit][google.ads.admanager.v1.AdUnit], or LineItem.
      * 
* * int32 width = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -559,9 +552,8 @@ public int getWidth() { * * *
-     * Required. The width of the [Creative](google.ads.admanager.v1.Creative),
-     * [AdUnit](google.ads.admanager.v1.AdUnit), or
-     * [LineItem](google.ads.admanager.v1.LineItem).
+     * Required. The width of the Creative,
+     * [AdUnit][google.ads.admanager.v1.AdUnit], or LineItem.
      * 
* * int32 width = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -581,9 +573,8 @@ public Builder setWidth(int value) { * * *
-     * Required. The width of the [Creative](google.ads.admanager.v1.Creative),
-     * [AdUnit](google.ads.admanager.v1.AdUnit), or
-     * [LineItem](google.ads.admanager.v1.LineItem).
+     * Required. The width of the Creative,
+     * [AdUnit][google.ads.admanager.v1.AdUnit], or LineItem.
      * 
* * int32 width = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -603,9 +594,8 @@ public Builder clearWidth() { * * *
-     * Required. The height of the [Creative](google.ads.admanager.v1.Creative),
-     * [AdUnit](google.ads.admanager.v1.AdUnit), or
-     * [LineItem](google.ads.admanager.v1.LineItem).
+     * Required. The height of the Creative,
+     * [AdUnit][google.ads.admanager.v1.AdUnit], or LineItem.
      * 
* * int32 height = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -621,9 +611,8 @@ public int getHeight() { * * *
-     * Required. The height of the [Creative](google.ads.admanager.v1.Creative),
-     * [AdUnit](google.ads.admanager.v1.AdUnit), or
-     * [LineItem](google.ads.admanager.v1.LineItem).
+     * Required. The height of the Creative,
+     * [AdUnit][google.ads.admanager.v1.AdUnit], or LineItem.
      * 
* * int32 height = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -643,9 +632,8 @@ public Builder setHeight(int value) { * * *
-     * Required. The height of the [Creative](google.ads.admanager.v1.Creative),
-     * [AdUnit](google.ads.admanager.v1.AdUnit), or
-     * [LineItem](google.ads.admanager.v1.LineItem).
+     * Required. The height of the Creative,
+     * [AdUnit][google.ads.admanager.v1.AdUnit], or LineItem.
      * 
* * int32 height = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -665,10 +653,8 @@ public Builder clearHeight() { * * *
-     * Required. The SizeType of the
-     * [Creative](google.ads.admanager.v1.Creative),
-     * [AdUnit](google.ads.admanager.v1.AdUnit), or
-     * [LineItem](google.ads.admanager.v1.LineItem).
+     * Required. The SizeType of the Creative,
+     * [AdUnit][google.ads.admanager.v1.AdUnit], or LineItem.
      * 
* * @@ -686,10 +672,8 @@ public int getSizeTypeValue() { * * *
-     * Required. The SizeType of the
-     * [Creative](google.ads.admanager.v1.Creative),
-     * [AdUnit](google.ads.admanager.v1.AdUnit), or
-     * [LineItem](google.ads.admanager.v1.LineItem).
+     * Required. The SizeType of the Creative,
+     * [AdUnit][google.ads.admanager.v1.AdUnit], or LineItem.
      * 
* * @@ -710,10 +694,8 @@ public Builder setSizeTypeValue(int value) { * * *
-     * Required. The SizeType of the
-     * [Creative](google.ads.admanager.v1.Creative),
-     * [AdUnit](google.ads.admanager.v1.AdUnit), or
-     * [LineItem](google.ads.admanager.v1.LineItem).
+     * Required. The SizeType of the Creative,
+     * [AdUnit][google.ads.admanager.v1.AdUnit], or LineItem.
      * 
* * @@ -735,10 +717,8 @@ public com.google.ads.admanager.v1.SizeTypeEnum.SizeType getSizeType() { * * *
-     * Required. The SizeType of the
-     * [Creative](google.ads.admanager.v1.Creative),
-     * [AdUnit](google.ads.admanager.v1.AdUnit), or
-     * [LineItem](google.ads.admanager.v1.LineItem).
+     * Required. The SizeType of the Creative,
+     * [AdUnit][google.ads.admanager.v1.AdUnit], or LineItem.
      * 
* * @@ -762,10 +742,8 @@ public Builder setSizeType(com.google.ads.admanager.v1.SizeTypeEnum.SizeType val * * *
-     * Required. The SizeType of the
-     * [Creative](google.ads.admanager.v1.Creative),
-     * [AdUnit](google.ads.admanager.v1.AdUnit), or
-     * [LineItem](google.ads.admanager.v1.LineItem).
+     * Required. The SizeType of the Creative,
+     * [AdUnit][google.ads.admanager.v1.AdUnit], or LineItem.
      * 
* * diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SizeOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SizeOrBuilder.java index 479667cd23f1..bf7533095b68 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SizeOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SizeOrBuilder.java @@ -28,9 +28,8 @@ public interface SizeOrBuilder * * *
-   * Required. The width of the [Creative](google.ads.admanager.v1.Creative),
-   * [AdUnit](google.ads.admanager.v1.AdUnit), or
-   * [LineItem](google.ads.admanager.v1.LineItem).
+   * Required. The width of the Creative,
+   * [AdUnit][google.ads.admanager.v1.AdUnit], or LineItem.
    * 
* * int32 width = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -43,9 +42,8 @@ public interface SizeOrBuilder * * *
-   * Required. The height of the [Creative](google.ads.admanager.v1.Creative),
-   * [AdUnit](google.ads.admanager.v1.AdUnit), or
-   * [LineItem](google.ads.admanager.v1.LineItem).
+   * Required. The height of the Creative,
+   * [AdUnit][google.ads.admanager.v1.AdUnit], or LineItem.
    * 
* * int32 height = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -58,10 +56,8 @@ public interface SizeOrBuilder * * *
-   * Required. The SizeType of the
-   * [Creative](google.ads.admanager.v1.Creative),
-   * [AdUnit](google.ads.admanager.v1.AdUnit), or
-   * [LineItem](google.ads.admanager.v1.LineItem).
+   * Required. The SizeType of the Creative,
+   * [AdUnit][google.ads.admanager.v1.AdUnit], or LineItem.
    * 
* * @@ -76,10 +72,8 @@ public interface SizeOrBuilder * * *
-   * Required. The SizeType of the
-   * [Creative](google.ads.admanager.v1.Creative),
-   * [AdUnit](google.ads.admanager.v1.AdUnit), or
-   * [LineItem](google.ads.admanager.v1.LineItem).
+   * Required. The SizeType of the Creative,
+   * [AdUnit][google.ads.admanager.v1.AdUnit], or LineItem.
    * 
* * diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TargetedVideoBumperTypeEnum.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TargetedVideoBumperTypeEnum.java new file mode 100644 index 000000000000..255f9165f8c6 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TargetedVideoBumperTypeEnum.java @@ -0,0 +1,605 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/targeted_video_bumper_type_enum.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Wrapper message for
+ * [TargetedVideoBumperType][google.ads.admanager.v1.TargetedVideoBumperTypeEnum.TargetedVideoBumperType]
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.TargetedVideoBumperTypeEnum} + */ +public final class TargetedVideoBumperTypeEnum extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.TargetedVideoBumperTypeEnum) + TargetedVideoBumperTypeEnumOrBuilder { + private static final long serialVersionUID = 0L; + + // Use TargetedVideoBumperTypeEnum.newBuilder() to construct. + private TargetedVideoBumperTypeEnum(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TargetedVideoBumperTypeEnum() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TargetedVideoBumperTypeEnum(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetedVideoBumperTypeEnumProto + .internal_static_google_ads_admanager_v1_TargetedVideoBumperTypeEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetedVideoBumperTypeEnumProto + .internal_static_google_ads_admanager_v1_TargetedVideoBumperTypeEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.TargetedVideoBumperTypeEnum.class, + com.google.ads.admanager.v1.TargetedVideoBumperTypeEnum.Builder.class); + } + + /** + * + * + *
+   * Represents the options for targetable bumper positions, surrounding an ad
+   * pod, within a video stream. This includes before and after the supported ad
+   * pod positions, `VideoPositionType.PREROLL`, `VideoPositionType.MIDROLL`,
+   * and `VideoPositionType.POSTROLL`.
+   * 
+ * + * Protobuf enum {@code + * google.ads.admanager.v1.TargetedVideoBumperTypeEnum.TargetedVideoBumperType} + */ + public enum TargetedVideoBumperType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value. This value is unused.
+     * 
+ * + * TARGETED_VIDEO_BUMPER_TYPE_UNSPECIFIED = 0; + */ + TARGETED_VIDEO_BUMPER_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Represents the bumper position after the ad pod.
+     * 
+ * + * AFTER = 1; + */ + AFTER(1), + /** + * + * + *
+     * Represents the bumper position before the ad pod.
+     * 
+ * + * BEFORE = 2; + */ + BEFORE(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value. This value is unused.
+     * 
+ * + * TARGETED_VIDEO_BUMPER_TYPE_UNSPECIFIED = 0; + */ + public static final int TARGETED_VIDEO_BUMPER_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Represents the bumper position after the ad pod.
+     * 
+ * + * AFTER = 1; + */ + public static final int AFTER_VALUE = 1; + + /** + * + * + *
+     * Represents the bumper position before the ad pod.
+     * 
+ * + * BEFORE = 2; + */ + public static final int BEFORE_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 TargetedVideoBumperType 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 TargetedVideoBumperType forNumber(int value) { + switch (value) { + case 0: + return TARGETED_VIDEO_BUMPER_TYPE_UNSPECIFIED; + case 1: + return AFTER; + case 2: + return BEFORE; + 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 TargetedVideoBumperType findValueByNumber(int number) { + return TargetedVideoBumperType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetedVideoBumperTypeEnum.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final TargetedVideoBumperType[] VALUES = values(); + + public static TargetedVideoBumperType 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 TargetedVideoBumperType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.admanager.v1.TargetedVideoBumperTypeEnum.TargetedVideoBumperType) + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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.admanager.v1.TargetedVideoBumperTypeEnum)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.TargetedVideoBumperTypeEnum other = + (com.google.ads.admanager.v1.TargetedVideoBumperTypeEnum) 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.admanager.v1.TargetedVideoBumperTypeEnum parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.TargetedVideoBumperTypeEnum 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.admanager.v1.TargetedVideoBumperTypeEnum parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.TargetedVideoBumperTypeEnum parseFrom( + 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.admanager.v1.TargetedVideoBumperTypeEnum parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.TargetedVideoBumperTypeEnum parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.TargetedVideoBumperTypeEnum parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.TargetedVideoBumperTypeEnum parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.TargetedVideoBumperTypeEnum parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.TargetedVideoBumperTypeEnum parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.TargetedVideoBumperTypeEnum parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.TargetedVideoBumperTypeEnum parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.TargetedVideoBumperTypeEnum prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Wrapper message for
+   * [TargetedVideoBumperType][google.ads.admanager.v1.TargetedVideoBumperTypeEnum.TargetedVideoBumperType]
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.TargetedVideoBumperTypeEnum} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.TargetedVideoBumperTypeEnum) + com.google.ads.admanager.v1.TargetedVideoBumperTypeEnumOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetedVideoBumperTypeEnumProto + .internal_static_google_ads_admanager_v1_TargetedVideoBumperTypeEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetedVideoBumperTypeEnumProto + .internal_static_google_ads_admanager_v1_TargetedVideoBumperTypeEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.TargetedVideoBumperTypeEnum.class, + com.google.ads.admanager.v1.TargetedVideoBumperTypeEnum.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.TargetedVideoBumperTypeEnum.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.TargetedVideoBumperTypeEnumProto + .internal_static_google_ads_admanager_v1_TargetedVideoBumperTypeEnum_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.TargetedVideoBumperTypeEnum getDefaultInstanceForType() { + return com.google.ads.admanager.v1.TargetedVideoBumperTypeEnum.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.TargetedVideoBumperTypeEnum build() { + com.google.ads.admanager.v1.TargetedVideoBumperTypeEnum result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.TargetedVideoBumperTypeEnum buildPartial() { + com.google.ads.admanager.v1.TargetedVideoBumperTypeEnum result = + new com.google.ads.admanager.v1.TargetedVideoBumperTypeEnum(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.TargetedVideoBumperTypeEnum) { + return mergeFrom((com.google.ads.admanager.v1.TargetedVideoBumperTypeEnum) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.TargetedVideoBumperTypeEnum other) { + if (other == com.google.ads.admanager.v1.TargetedVideoBumperTypeEnum.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.TargetedVideoBumperTypeEnum) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.TargetedVideoBumperTypeEnum) + private static final com.google.ads.admanager.v1.TargetedVideoBumperTypeEnum DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.TargetedVideoBumperTypeEnum(); + } + + public static com.google.ads.admanager.v1.TargetedVideoBumperTypeEnum getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TargetedVideoBumperTypeEnum parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.TargetedVideoBumperTypeEnum getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TargetedVideoBumperTypeEnumOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TargetedVideoBumperTypeEnumOrBuilder.java new file mode 100644 index 000000000000..29182a7cfe8a --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TargetedVideoBumperTypeEnumOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/targeted_video_bumper_type_enum.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface TargetedVideoBumperTypeEnumOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.TargetedVideoBumperTypeEnum) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TargetedVideoBumperTypeEnumProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TargetedVideoBumperTypeEnumProto.java new file mode 100644 index 000000000000..ae0e22143328 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TargetedVideoBumperTypeEnumProto.java @@ -0,0 +1,68 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/targeted_video_bumper_type_enum.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class TargetedVideoBumperTypeEnumProto { + private TargetedVideoBumperTypeEnumProto() {} + + 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_ads_admanager_v1_TargetedVideoBumperTypeEnum_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_TargetedVideoBumperTypeEnum_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/ads/admanager/v1/targeted_video" + + "_bumper_type_enum.proto\022\027google.ads.adma" + + "nager.v1\"{\n\033TargetedVideoBumperTypeEnum\"" + + "\\\n\027TargetedVideoBumperType\022*\n&TARGETED_V" + + "IDEO_BUMPER_TYPE_UNSPECIFIED\020\000\022\t\n\005AFTER\020" + + "\001\022\n\n\006BEFORE\020\002B\324\001\n\033com.google.ads.admanag" + + "er.v1B TargetedVideoBumperTypeEnumProtoP" + + "\001Z@google.golang.org/genproto/googleapis" + + "/ads/admanager/v1;admanager\252\002\027Google.Ads" + + ".AdManager.V1\312\002\027Google\\Ads\\AdManager\\V1\352" + + "\002\032Google::Ads::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_ads_admanager_v1_TargetedVideoBumperTypeEnum_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_TargetedVideoBumperTypeEnum_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_TargetedVideoBumperTypeEnum_descriptor, + new java.lang.String[] {}); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Targeting.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Targeting.java new file mode 100644 index 000000000000..17520831676a --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Targeting.java @@ -0,0 +1,2961 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Targeting expression.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.Targeting} + */ +public final class Targeting extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.Targeting) + TargetingOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Targeting.newBuilder() to construct. + private Targeting(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Targeting() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Targeting(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_Targeting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_Targeting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.Targeting.class, + com.google.ads.admanager.v1.Targeting.Builder.class); + } + + private int bitField0_; + public static final int GEO_TARGETING_FIELD_NUMBER = 2; + private com.google.ads.admanager.v1.GeoTargeting geoTargeting_; + + /** + * + * + *
+   * Optional. Used to target/exclude various geo targets.
+   * 
+ * + * + * .google.ads.admanager.v1.GeoTargeting geo_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the geoTargeting field is set. + */ + @java.lang.Override + public boolean hasGeoTargeting() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Used to target/exclude various geo targets.
+   * 
+ * + * + * .google.ads.admanager.v1.GeoTargeting geo_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The geoTargeting. + */ + @java.lang.Override + public com.google.ads.admanager.v1.GeoTargeting getGeoTargeting() { + return geoTargeting_ == null + ? com.google.ads.admanager.v1.GeoTargeting.getDefaultInstance() + : geoTargeting_; + } + + /** + * + * + *
+   * Optional. Used to target/exclude various geo targets.
+   * 
+ * + * + * .google.ads.admanager.v1.GeoTargeting geo_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.GeoTargetingOrBuilder getGeoTargetingOrBuilder() { + return geoTargeting_ == null + ? com.google.ads.admanager.v1.GeoTargeting.getDefaultInstance() + : geoTargeting_; + } + + public static final int TECHNOLOGY_TARGETING_FIELD_NUMBER = 3; + private com.google.ads.admanager.v1.TechnologyTargeting technologyTargeting_; + + /** + * + * + *
+   * Optional. Used to target various technology targeting dimensions.
+   * 
+ * + * + * .google.ads.admanager.v1.TechnologyTargeting technology_targeting = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the technologyTargeting field is set. + */ + @java.lang.Override + public boolean hasTechnologyTargeting() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. Used to target various technology targeting dimensions.
+   * 
+ * + * + * .google.ads.admanager.v1.TechnologyTargeting technology_targeting = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The technologyTargeting. + */ + @java.lang.Override + public com.google.ads.admanager.v1.TechnologyTargeting getTechnologyTargeting() { + return technologyTargeting_ == null + ? com.google.ads.admanager.v1.TechnologyTargeting.getDefaultInstance() + : technologyTargeting_; + } + + /** + * + * + *
+   * Optional. Used to target various technology targeting dimensions.
+   * 
+ * + * + * .google.ads.admanager.v1.TechnologyTargeting technology_targeting = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.TechnologyTargetingOrBuilder + getTechnologyTargetingOrBuilder() { + return technologyTargeting_ == null + ? com.google.ads.admanager.v1.TechnologyTargeting.getDefaultInstance() + : technologyTargeting_; + } + + public static final int INVENTORY_TARGETING_FIELD_NUMBER = 5; + private com.google.ads.admanager.v1.InventoryTargeting inventoryTargeting_; + + /** + * + * + *
+   * Optional. Used to target/exclude various ad units and/or placements.
+   * 
+ * + * + * .google.ads.admanager.v1.InventoryTargeting inventory_targeting = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the inventoryTargeting field is set. + */ + @java.lang.Override + public boolean hasInventoryTargeting() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Optional. Used to target/exclude various ad units and/or placements.
+   * 
+ * + * + * .google.ads.admanager.v1.InventoryTargeting inventory_targeting = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The inventoryTargeting. + */ + @java.lang.Override + public com.google.ads.admanager.v1.InventoryTargeting getInventoryTargeting() { + return inventoryTargeting_ == null + ? com.google.ads.admanager.v1.InventoryTargeting.getDefaultInstance() + : inventoryTargeting_; + } + + /** + * + * + *
+   * Optional. Used to target/exclude various ad units and/or placements.
+   * 
+ * + * + * .google.ads.admanager.v1.InventoryTargeting inventory_targeting = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.InventoryTargetingOrBuilder getInventoryTargetingOrBuilder() { + return inventoryTargeting_ == null + ? com.google.ads.admanager.v1.InventoryTargeting.getDefaultInstance() + : inventoryTargeting_; + } + + public static final int REQUEST_PLATFORM_TARGETING_FIELD_NUMBER = 6; + private com.google.ads.admanager.v1.RequestPlatformTargeting requestPlatformTargeting_; + + /** + * + * + *
+   * Optional. Used to target specific request platforms.
+   * 
+ * + * + * .google.ads.admanager.v1.RequestPlatformTargeting request_platform_targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the requestPlatformTargeting field is set. + */ + @java.lang.Override + public boolean hasRequestPlatformTargeting() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Optional. Used to target specific request platforms.
+   * 
+ * + * + * .google.ads.admanager.v1.RequestPlatformTargeting request_platform_targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The requestPlatformTargeting. + */ + @java.lang.Override + public com.google.ads.admanager.v1.RequestPlatformTargeting getRequestPlatformTargeting() { + return requestPlatformTargeting_ == null + ? com.google.ads.admanager.v1.RequestPlatformTargeting.getDefaultInstance() + : requestPlatformTargeting_; + } + + /** + * + * + *
+   * Optional. Used to target specific request platforms.
+   * 
+ * + * + * .google.ads.admanager.v1.RequestPlatformTargeting request_platform_targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.RequestPlatformTargetingOrBuilder + getRequestPlatformTargetingOrBuilder() { + return requestPlatformTargeting_ == null + ? com.google.ads.admanager.v1.RequestPlatformTargeting.getDefaultInstance() + : requestPlatformTargeting_; + } + + public static final int CUSTOM_TARGETING_FIELD_NUMBER = 7; + private com.google.ads.admanager.v1.CustomTargeting customTargeting_; + + /** + * + * + *
+   * Optional. Used to target key/values, audience segments, and/or CMS
+   * metadata.
+   * 
+ * + * + * .google.ads.admanager.v1.CustomTargeting custom_targeting = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customTargeting field is set. + */ + @java.lang.Override + public boolean hasCustomTargeting() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Optional. Used to target key/values, audience segments, and/or CMS
+   * metadata.
+   * 
+ * + * + * .google.ads.admanager.v1.CustomTargeting custom_targeting = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customTargeting. + */ + @java.lang.Override + public com.google.ads.admanager.v1.CustomTargeting getCustomTargeting() { + return customTargeting_ == null + ? com.google.ads.admanager.v1.CustomTargeting.getDefaultInstance() + : customTargeting_; + } + + /** + * + * + *
+   * Optional. Used to target key/values, audience segments, and/or CMS
+   * metadata.
+   * 
+ * + * + * .google.ads.admanager.v1.CustomTargeting custom_targeting = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.CustomTargetingOrBuilder getCustomTargetingOrBuilder() { + return customTargeting_ == null + ? com.google.ads.admanager.v1.CustomTargeting.getDefaultInstance() + : customTargeting_; + } + + public static final int USER_DOMAIN_TARGETING_FIELD_NUMBER = 10; + private com.google.ads.admanager.v1.UserDomainTargeting userDomainTargeting_; + + /** + * + * + *
+   * Optional. Used to target user domains.
+   * 
+ * + * + * .google.ads.admanager.v1.UserDomainTargeting user_domain_targeting = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the userDomainTargeting field is set. + */ + @java.lang.Override + public boolean hasUserDomainTargeting() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+   * Optional. Used to target user domains.
+   * 
+ * + * + * .google.ads.admanager.v1.UserDomainTargeting user_domain_targeting = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The userDomainTargeting. + */ + @java.lang.Override + public com.google.ads.admanager.v1.UserDomainTargeting getUserDomainTargeting() { + return userDomainTargeting_ == null + ? com.google.ads.admanager.v1.UserDomainTargeting.getDefaultInstance() + : userDomainTargeting_; + } + + /** + * + * + *
+   * Optional. Used to target user domains.
+   * 
+ * + * + * .google.ads.admanager.v1.UserDomainTargeting user_domain_targeting = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.UserDomainTargetingOrBuilder + getUserDomainTargetingOrBuilder() { + return userDomainTargeting_ == null + ? com.google.ads.admanager.v1.UserDomainTargeting.getDefaultInstance() + : userDomainTargeting_; + } + + public static final int VIDEO_POSITION_TARGETING_FIELD_NUMBER = 12; + private com.google.ads.admanager.v1.VideoPositionTargeting videoPositionTargeting_; + + /** + * + * + *
+   * Optional. Used to target video positions.
+   * 
+ * + * + * .google.ads.admanager.v1.VideoPositionTargeting video_position_targeting = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the videoPositionTargeting field is set. + */ + @java.lang.Override + public boolean hasVideoPositionTargeting() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+   * Optional. Used to target video positions.
+   * 
+ * + * + * .google.ads.admanager.v1.VideoPositionTargeting video_position_targeting = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The videoPositionTargeting. + */ + @java.lang.Override + public com.google.ads.admanager.v1.VideoPositionTargeting getVideoPositionTargeting() { + return videoPositionTargeting_ == null + ? com.google.ads.admanager.v1.VideoPositionTargeting.getDefaultInstance() + : videoPositionTargeting_; + } + + /** + * + * + *
+   * Optional. Used to target video positions.
+   * 
+ * + * + * .google.ads.admanager.v1.VideoPositionTargeting video_position_targeting = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.VideoPositionTargetingOrBuilder + getVideoPositionTargetingOrBuilder() { + return videoPositionTargeting_ == null + ? com.google.ads.admanager.v1.VideoPositionTargeting.getDefaultInstance() + : videoPositionTargeting_; + } + + public static final int DATA_SEGMENT_TARGETING_FIELD_NUMBER = 13; + private com.google.ads.admanager.v1.DataSegmentTargeting dataSegmentTargeting_; + + /** + * + * + *
+   * Optional. Used to target data segments.
+   * 
+ * + * + * .google.ads.admanager.v1.DataSegmentTargeting data_segment_targeting = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dataSegmentTargeting field is set. + */ + @java.lang.Override + public boolean hasDataSegmentTargeting() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+   * Optional. Used to target data segments.
+   * 
+ * + * + * .google.ads.admanager.v1.DataSegmentTargeting data_segment_targeting = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataSegmentTargeting. + */ + @java.lang.Override + public com.google.ads.admanager.v1.DataSegmentTargeting getDataSegmentTargeting() { + return dataSegmentTargeting_ == null + ? com.google.ads.admanager.v1.DataSegmentTargeting.getDefaultInstance() + : dataSegmentTargeting_; + } + + /** + * + * + *
+   * Optional. Used to target data segments.
+   * 
+ * + * + * .google.ads.admanager.v1.DataSegmentTargeting data_segment_targeting = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.DataSegmentTargetingOrBuilder + getDataSegmentTargetingOrBuilder() { + return dataSegmentTargeting_ == null + ? com.google.ads.admanager.v1.DataSegmentTargeting.getDefaultInstance() + : dataSegmentTargeting_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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(2, getGeoTargeting()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getTechnologyTargeting()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(5, getInventoryTargeting()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(6, getRequestPlatformTargeting()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(7, getCustomTargeting()); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(10, getUserDomainTargeting()); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(12, getVideoPositionTargeting()); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(13, getDataSegmentTargeting()); + } + 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(2, getGeoTargeting()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTechnologyTargeting()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getInventoryTargeting()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, getRequestPlatformTargeting()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCustomTargeting()); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(10, getUserDomainTargeting()); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(12, getVideoPositionTargeting()); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(13, getDataSegmentTargeting()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.admanager.v1.Targeting)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.Targeting other = (com.google.ads.admanager.v1.Targeting) obj; + + if (hasGeoTargeting() != other.hasGeoTargeting()) return false; + if (hasGeoTargeting()) { + if (!getGeoTargeting().equals(other.getGeoTargeting())) return false; + } + if (hasTechnologyTargeting() != other.hasTechnologyTargeting()) return false; + if (hasTechnologyTargeting()) { + if (!getTechnologyTargeting().equals(other.getTechnologyTargeting())) return false; + } + if (hasInventoryTargeting() != other.hasInventoryTargeting()) return false; + if (hasInventoryTargeting()) { + if (!getInventoryTargeting().equals(other.getInventoryTargeting())) return false; + } + if (hasRequestPlatformTargeting() != other.hasRequestPlatformTargeting()) return false; + if (hasRequestPlatformTargeting()) { + if (!getRequestPlatformTargeting().equals(other.getRequestPlatformTargeting())) return false; + } + if (hasCustomTargeting() != other.hasCustomTargeting()) return false; + if (hasCustomTargeting()) { + if (!getCustomTargeting().equals(other.getCustomTargeting())) return false; + } + if (hasUserDomainTargeting() != other.hasUserDomainTargeting()) return false; + if (hasUserDomainTargeting()) { + if (!getUserDomainTargeting().equals(other.getUserDomainTargeting())) return false; + } + if (hasVideoPositionTargeting() != other.hasVideoPositionTargeting()) return false; + if (hasVideoPositionTargeting()) { + if (!getVideoPositionTargeting().equals(other.getVideoPositionTargeting())) return false; + } + if (hasDataSegmentTargeting() != other.hasDataSegmentTargeting()) return false; + if (hasDataSegmentTargeting()) { + if (!getDataSegmentTargeting().equals(other.getDataSegmentTargeting())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasGeoTargeting()) { + hash = (37 * hash) + GEO_TARGETING_FIELD_NUMBER; + hash = (53 * hash) + getGeoTargeting().hashCode(); + } + if (hasTechnologyTargeting()) { + hash = (37 * hash) + TECHNOLOGY_TARGETING_FIELD_NUMBER; + hash = (53 * hash) + getTechnologyTargeting().hashCode(); + } + if (hasInventoryTargeting()) { + hash = (37 * hash) + INVENTORY_TARGETING_FIELD_NUMBER; + hash = (53 * hash) + getInventoryTargeting().hashCode(); + } + if (hasRequestPlatformTargeting()) { + hash = (37 * hash) + REQUEST_PLATFORM_TARGETING_FIELD_NUMBER; + hash = (53 * hash) + getRequestPlatformTargeting().hashCode(); + } + if (hasCustomTargeting()) { + hash = (37 * hash) + CUSTOM_TARGETING_FIELD_NUMBER; + hash = (53 * hash) + getCustomTargeting().hashCode(); + } + if (hasUserDomainTargeting()) { + hash = (37 * hash) + USER_DOMAIN_TARGETING_FIELD_NUMBER; + hash = (53 * hash) + getUserDomainTargeting().hashCode(); + } + if (hasVideoPositionTargeting()) { + hash = (37 * hash) + VIDEO_POSITION_TARGETING_FIELD_NUMBER; + hash = (53 * hash) + getVideoPositionTargeting().hashCode(); + } + if (hasDataSegmentTargeting()) { + hash = (37 * hash) + DATA_SEGMENT_TARGETING_FIELD_NUMBER; + hash = (53 * hash) + getDataSegmentTargeting().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.Targeting parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.Targeting 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.admanager.v1.Targeting parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.Targeting parseFrom( + 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.admanager.v1.Targeting parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.Targeting parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.Targeting parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.Targeting parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.Targeting parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.Targeting parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.Targeting parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.Targeting parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.Targeting prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Targeting expression.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.Targeting} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.Targeting) + com.google.ads.admanager.v1.TargetingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_Targeting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_Targeting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.Targeting.class, + com.google.ads.admanager.v1.Targeting.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.Targeting.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getGeoTargetingFieldBuilder(); + getTechnologyTargetingFieldBuilder(); + getInventoryTargetingFieldBuilder(); + getRequestPlatformTargetingFieldBuilder(); + getCustomTargetingFieldBuilder(); + getUserDomainTargetingFieldBuilder(); + getVideoPositionTargetingFieldBuilder(); + getDataSegmentTargetingFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + geoTargeting_ = null; + if (geoTargetingBuilder_ != null) { + geoTargetingBuilder_.dispose(); + geoTargetingBuilder_ = null; + } + technologyTargeting_ = null; + if (technologyTargetingBuilder_ != null) { + technologyTargetingBuilder_.dispose(); + technologyTargetingBuilder_ = null; + } + inventoryTargeting_ = null; + if (inventoryTargetingBuilder_ != null) { + inventoryTargetingBuilder_.dispose(); + inventoryTargetingBuilder_ = null; + } + requestPlatformTargeting_ = null; + if (requestPlatformTargetingBuilder_ != null) { + requestPlatformTargetingBuilder_.dispose(); + requestPlatformTargetingBuilder_ = null; + } + customTargeting_ = null; + if (customTargetingBuilder_ != null) { + customTargetingBuilder_.dispose(); + customTargetingBuilder_ = null; + } + userDomainTargeting_ = null; + if (userDomainTargetingBuilder_ != null) { + userDomainTargetingBuilder_.dispose(); + userDomainTargetingBuilder_ = null; + } + videoPositionTargeting_ = null; + if (videoPositionTargetingBuilder_ != null) { + videoPositionTargetingBuilder_.dispose(); + videoPositionTargetingBuilder_ = null; + } + dataSegmentTargeting_ = null; + if (dataSegmentTargetingBuilder_ != null) { + dataSegmentTargetingBuilder_.dispose(); + dataSegmentTargetingBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_Targeting_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.Targeting getDefaultInstanceForType() { + return com.google.ads.admanager.v1.Targeting.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.Targeting build() { + com.google.ads.admanager.v1.Targeting result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.Targeting buildPartial() { + com.google.ads.admanager.v1.Targeting result = + new com.google.ads.admanager.v1.Targeting(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.Targeting result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.geoTargeting_ = + geoTargetingBuilder_ == null ? geoTargeting_ : geoTargetingBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.technologyTargeting_ = + technologyTargetingBuilder_ == null + ? technologyTargeting_ + : technologyTargetingBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.inventoryTargeting_ = + inventoryTargetingBuilder_ == null + ? inventoryTargeting_ + : inventoryTargetingBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestPlatformTargeting_ = + requestPlatformTargetingBuilder_ == null + ? requestPlatformTargeting_ + : requestPlatformTargetingBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.customTargeting_ = + customTargetingBuilder_ == null ? customTargeting_ : customTargetingBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.userDomainTargeting_ = + userDomainTargetingBuilder_ == null + ? userDomainTargeting_ + : userDomainTargetingBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.videoPositionTargeting_ = + videoPositionTargetingBuilder_ == null + ? videoPositionTargeting_ + : videoPositionTargetingBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.dataSegmentTargeting_ = + dataSegmentTargetingBuilder_ == null + ? dataSegmentTargeting_ + : dataSegmentTargetingBuilder_.build(); + to_bitField0_ |= 0x00000080; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.Targeting) { + return mergeFrom((com.google.ads.admanager.v1.Targeting) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.Targeting other) { + if (other == com.google.ads.admanager.v1.Targeting.getDefaultInstance()) return this; + if (other.hasGeoTargeting()) { + mergeGeoTargeting(other.getGeoTargeting()); + } + if (other.hasTechnologyTargeting()) { + mergeTechnologyTargeting(other.getTechnologyTargeting()); + } + if (other.hasInventoryTargeting()) { + mergeInventoryTargeting(other.getInventoryTargeting()); + } + if (other.hasRequestPlatformTargeting()) { + mergeRequestPlatformTargeting(other.getRequestPlatformTargeting()); + } + if (other.hasCustomTargeting()) { + mergeCustomTargeting(other.getCustomTargeting()); + } + if (other.hasUserDomainTargeting()) { + mergeUserDomainTargeting(other.getUserDomainTargeting()); + } + if (other.hasVideoPositionTargeting()) { + mergeVideoPositionTargeting(other.getVideoPositionTargeting()); + } + if (other.hasDataSegmentTargeting()) { + mergeDataSegmentTargeting(other.getDataSegmentTargeting()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + input.readMessage(getGeoTargetingFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 18 + case 26: + { + input.readMessage( + getTechnologyTargetingFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 42: + { + input.readMessage( + getInventoryTargetingFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 42 + case 50: + { + input.readMessage( + getRequestPlatformTargetingFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 50 + case 58: + { + input.readMessage(getCustomTargetingFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 58 + case 82: + { + input.readMessage( + getUserDomainTargetingFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 82 + case 98: + { + input.readMessage( + getVideoPositionTargetingFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 98 + case 106: + { + input.readMessage( + getDataSegmentTargetingFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 106 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + 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.ads.admanager.v1.GeoTargeting geoTargeting_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.GeoTargeting, + com.google.ads.admanager.v1.GeoTargeting.Builder, + com.google.ads.admanager.v1.GeoTargetingOrBuilder> + geoTargetingBuilder_; + + /** + * + * + *
+     * Optional. Used to target/exclude various geo targets.
+     * 
+ * + * + * .google.ads.admanager.v1.GeoTargeting geo_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the geoTargeting field is set. + */ + public boolean hasGeoTargeting() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. Used to target/exclude various geo targets.
+     * 
+ * + * + * .google.ads.admanager.v1.GeoTargeting geo_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The geoTargeting. + */ + public com.google.ads.admanager.v1.GeoTargeting getGeoTargeting() { + if (geoTargetingBuilder_ == null) { + return geoTargeting_ == null + ? com.google.ads.admanager.v1.GeoTargeting.getDefaultInstance() + : geoTargeting_; + } else { + return geoTargetingBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Used to target/exclude various geo targets.
+     * 
+ * + * + * .google.ads.admanager.v1.GeoTargeting geo_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGeoTargeting(com.google.ads.admanager.v1.GeoTargeting value) { + if (geoTargetingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + geoTargeting_ = value; + } else { + geoTargetingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Used to target/exclude various geo targets.
+     * 
+ * + * + * .google.ads.admanager.v1.GeoTargeting geo_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGeoTargeting( + com.google.ads.admanager.v1.GeoTargeting.Builder builderForValue) { + if (geoTargetingBuilder_ == null) { + geoTargeting_ = builderForValue.build(); + } else { + geoTargetingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Used to target/exclude various geo targets.
+     * 
+ * + * + * .google.ads.admanager.v1.GeoTargeting geo_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeGeoTargeting(com.google.ads.admanager.v1.GeoTargeting value) { + if (geoTargetingBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && geoTargeting_ != null + && geoTargeting_ != com.google.ads.admanager.v1.GeoTargeting.getDefaultInstance()) { + getGeoTargetingBuilder().mergeFrom(value); + } else { + geoTargeting_ = value; + } + } else { + geoTargetingBuilder_.mergeFrom(value); + } + if (geoTargeting_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Used to target/exclude various geo targets.
+     * 
+ * + * + * .google.ads.admanager.v1.GeoTargeting geo_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearGeoTargeting() { + bitField0_ = (bitField0_ & ~0x00000001); + geoTargeting_ = null; + if (geoTargetingBuilder_ != null) { + geoTargetingBuilder_.dispose(); + geoTargetingBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Used to target/exclude various geo targets.
+     * 
+ * + * + * .google.ads.admanager.v1.GeoTargeting geo_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.GeoTargeting.Builder getGeoTargetingBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getGeoTargetingFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Used to target/exclude various geo targets.
+     * 
+ * + * + * .google.ads.admanager.v1.GeoTargeting geo_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.GeoTargetingOrBuilder getGeoTargetingOrBuilder() { + if (geoTargetingBuilder_ != null) { + return geoTargetingBuilder_.getMessageOrBuilder(); + } else { + return geoTargeting_ == null + ? com.google.ads.admanager.v1.GeoTargeting.getDefaultInstance() + : geoTargeting_; + } + } + + /** + * + * + *
+     * Optional. Used to target/exclude various geo targets.
+     * 
+ * + * + * .google.ads.admanager.v1.GeoTargeting geo_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.GeoTargeting, + com.google.ads.admanager.v1.GeoTargeting.Builder, + com.google.ads.admanager.v1.GeoTargetingOrBuilder> + getGeoTargetingFieldBuilder() { + if (geoTargetingBuilder_ == null) { + geoTargetingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.GeoTargeting, + com.google.ads.admanager.v1.GeoTargeting.Builder, + com.google.ads.admanager.v1.GeoTargetingOrBuilder>( + getGeoTargeting(), getParentForChildren(), isClean()); + geoTargeting_ = null; + } + return geoTargetingBuilder_; + } + + private com.google.ads.admanager.v1.TechnologyTargeting technologyTargeting_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.TechnologyTargeting, + com.google.ads.admanager.v1.TechnologyTargeting.Builder, + com.google.ads.admanager.v1.TechnologyTargetingOrBuilder> + technologyTargetingBuilder_; + + /** + * + * + *
+     * Optional. Used to target various technology targeting dimensions.
+     * 
+ * + * + * .google.ads.admanager.v1.TechnologyTargeting technology_targeting = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the technologyTargeting field is set. + */ + public boolean hasTechnologyTargeting() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. Used to target various technology targeting dimensions.
+     * 
+ * + * + * .google.ads.admanager.v1.TechnologyTargeting technology_targeting = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The technologyTargeting. + */ + public com.google.ads.admanager.v1.TechnologyTargeting getTechnologyTargeting() { + if (technologyTargetingBuilder_ == null) { + return technologyTargeting_ == null + ? com.google.ads.admanager.v1.TechnologyTargeting.getDefaultInstance() + : technologyTargeting_; + } else { + return technologyTargetingBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Used to target various technology targeting dimensions.
+     * 
+ * + * + * .google.ads.admanager.v1.TechnologyTargeting technology_targeting = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTechnologyTargeting(com.google.ads.admanager.v1.TechnologyTargeting value) { + if (technologyTargetingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + technologyTargeting_ = value; + } else { + technologyTargetingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Used to target various technology targeting dimensions.
+     * 
+ * + * + * .google.ads.admanager.v1.TechnologyTargeting technology_targeting = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTechnologyTargeting( + com.google.ads.admanager.v1.TechnologyTargeting.Builder builderForValue) { + if (technologyTargetingBuilder_ == null) { + technologyTargeting_ = builderForValue.build(); + } else { + technologyTargetingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Used to target various technology targeting dimensions.
+     * 
+ * + * + * .google.ads.admanager.v1.TechnologyTargeting technology_targeting = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeTechnologyTargeting(com.google.ads.admanager.v1.TechnologyTargeting value) { + if (technologyTargetingBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && technologyTargeting_ != null + && technologyTargeting_ + != com.google.ads.admanager.v1.TechnologyTargeting.getDefaultInstance()) { + getTechnologyTargetingBuilder().mergeFrom(value); + } else { + technologyTargeting_ = value; + } + } else { + technologyTargetingBuilder_.mergeFrom(value); + } + if (technologyTargeting_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Used to target various technology targeting dimensions.
+     * 
+ * + * + * .google.ads.admanager.v1.TechnologyTargeting technology_targeting = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearTechnologyTargeting() { + bitField0_ = (bitField0_ & ~0x00000002); + technologyTargeting_ = null; + if (technologyTargetingBuilder_ != null) { + technologyTargetingBuilder_.dispose(); + technologyTargetingBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Used to target various technology targeting dimensions.
+     * 
+ * + * + * .google.ads.admanager.v1.TechnologyTargeting technology_targeting = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.TechnologyTargeting.Builder getTechnologyTargetingBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getTechnologyTargetingFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Used to target various technology targeting dimensions.
+     * 
+ * + * + * .google.ads.admanager.v1.TechnologyTargeting technology_targeting = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.TechnologyTargetingOrBuilder + getTechnologyTargetingOrBuilder() { + if (technologyTargetingBuilder_ != null) { + return technologyTargetingBuilder_.getMessageOrBuilder(); + } else { + return technologyTargeting_ == null + ? com.google.ads.admanager.v1.TechnologyTargeting.getDefaultInstance() + : technologyTargeting_; + } + } + + /** + * + * + *
+     * Optional. Used to target various technology targeting dimensions.
+     * 
+ * + * + * .google.ads.admanager.v1.TechnologyTargeting technology_targeting = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.TechnologyTargeting, + com.google.ads.admanager.v1.TechnologyTargeting.Builder, + com.google.ads.admanager.v1.TechnologyTargetingOrBuilder> + getTechnologyTargetingFieldBuilder() { + if (technologyTargetingBuilder_ == null) { + technologyTargetingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.TechnologyTargeting, + com.google.ads.admanager.v1.TechnologyTargeting.Builder, + com.google.ads.admanager.v1.TechnologyTargetingOrBuilder>( + getTechnologyTargeting(), getParentForChildren(), isClean()); + technologyTargeting_ = null; + } + return technologyTargetingBuilder_; + } + + private com.google.ads.admanager.v1.InventoryTargeting inventoryTargeting_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.InventoryTargeting, + com.google.ads.admanager.v1.InventoryTargeting.Builder, + com.google.ads.admanager.v1.InventoryTargetingOrBuilder> + inventoryTargetingBuilder_; + + /** + * + * + *
+     * Optional. Used to target/exclude various ad units and/or placements.
+     * 
+ * + * + * .google.ads.admanager.v1.InventoryTargeting inventory_targeting = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the inventoryTargeting field is set. + */ + public boolean hasInventoryTargeting() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Optional. Used to target/exclude various ad units and/or placements.
+     * 
+ * + * + * .google.ads.admanager.v1.InventoryTargeting inventory_targeting = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The inventoryTargeting. + */ + public com.google.ads.admanager.v1.InventoryTargeting getInventoryTargeting() { + if (inventoryTargetingBuilder_ == null) { + return inventoryTargeting_ == null + ? com.google.ads.admanager.v1.InventoryTargeting.getDefaultInstance() + : inventoryTargeting_; + } else { + return inventoryTargetingBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Used to target/exclude various ad units and/or placements.
+     * 
+ * + * + * .google.ads.admanager.v1.InventoryTargeting inventory_targeting = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInventoryTargeting(com.google.ads.admanager.v1.InventoryTargeting value) { + if (inventoryTargetingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inventoryTargeting_ = value; + } else { + inventoryTargetingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Used to target/exclude various ad units and/or placements.
+     * 
+ * + * + * .google.ads.admanager.v1.InventoryTargeting inventory_targeting = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInventoryTargeting( + com.google.ads.admanager.v1.InventoryTargeting.Builder builderForValue) { + if (inventoryTargetingBuilder_ == null) { + inventoryTargeting_ = builderForValue.build(); + } else { + inventoryTargetingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Used to target/exclude various ad units and/or placements.
+     * 
+ * + * + * .google.ads.admanager.v1.InventoryTargeting inventory_targeting = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeInventoryTargeting(com.google.ads.admanager.v1.InventoryTargeting value) { + if (inventoryTargetingBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && inventoryTargeting_ != null + && inventoryTargeting_ + != com.google.ads.admanager.v1.InventoryTargeting.getDefaultInstance()) { + getInventoryTargetingBuilder().mergeFrom(value); + } else { + inventoryTargeting_ = value; + } + } else { + inventoryTargetingBuilder_.mergeFrom(value); + } + if (inventoryTargeting_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Used to target/exclude various ad units and/or placements.
+     * 
+ * + * + * .google.ads.admanager.v1.InventoryTargeting inventory_targeting = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearInventoryTargeting() { + bitField0_ = (bitField0_ & ~0x00000004); + inventoryTargeting_ = null; + if (inventoryTargetingBuilder_ != null) { + inventoryTargetingBuilder_.dispose(); + inventoryTargetingBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Used to target/exclude various ad units and/or placements.
+     * 
+ * + * + * .google.ads.admanager.v1.InventoryTargeting inventory_targeting = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.InventoryTargeting.Builder getInventoryTargetingBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getInventoryTargetingFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Used to target/exclude various ad units and/or placements.
+     * 
+ * + * + * .google.ads.admanager.v1.InventoryTargeting inventory_targeting = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.InventoryTargetingOrBuilder + getInventoryTargetingOrBuilder() { + if (inventoryTargetingBuilder_ != null) { + return inventoryTargetingBuilder_.getMessageOrBuilder(); + } else { + return inventoryTargeting_ == null + ? com.google.ads.admanager.v1.InventoryTargeting.getDefaultInstance() + : inventoryTargeting_; + } + } + + /** + * + * + *
+     * Optional. Used to target/exclude various ad units and/or placements.
+     * 
+ * + * + * .google.ads.admanager.v1.InventoryTargeting inventory_targeting = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.InventoryTargeting, + com.google.ads.admanager.v1.InventoryTargeting.Builder, + com.google.ads.admanager.v1.InventoryTargetingOrBuilder> + getInventoryTargetingFieldBuilder() { + if (inventoryTargetingBuilder_ == null) { + inventoryTargetingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.InventoryTargeting, + com.google.ads.admanager.v1.InventoryTargeting.Builder, + com.google.ads.admanager.v1.InventoryTargetingOrBuilder>( + getInventoryTargeting(), getParentForChildren(), isClean()); + inventoryTargeting_ = null; + } + return inventoryTargetingBuilder_; + } + + private com.google.ads.admanager.v1.RequestPlatformTargeting requestPlatformTargeting_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.RequestPlatformTargeting, + com.google.ads.admanager.v1.RequestPlatformTargeting.Builder, + com.google.ads.admanager.v1.RequestPlatformTargetingOrBuilder> + requestPlatformTargetingBuilder_; + + /** + * + * + *
+     * Optional. Used to target specific request platforms.
+     * 
+ * + * + * .google.ads.admanager.v1.RequestPlatformTargeting request_platform_targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the requestPlatformTargeting field is set. + */ + public boolean hasRequestPlatformTargeting() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Optional. Used to target specific request platforms.
+     * 
+ * + * + * .google.ads.admanager.v1.RequestPlatformTargeting request_platform_targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The requestPlatformTargeting. + */ + public com.google.ads.admanager.v1.RequestPlatformTargeting getRequestPlatformTargeting() { + if (requestPlatformTargetingBuilder_ == null) { + return requestPlatformTargeting_ == null + ? com.google.ads.admanager.v1.RequestPlatformTargeting.getDefaultInstance() + : requestPlatformTargeting_; + } else { + return requestPlatformTargetingBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Used to target specific request platforms.
+     * 
+ * + * + * .google.ads.admanager.v1.RequestPlatformTargeting request_platform_targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRequestPlatformTargeting( + com.google.ads.admanager.v1.RequestPlatformTargeting value) { + if (requestPlatformTargetingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + requestPlatformTargeting_ = value; + } else { + requestPlatformTargetingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Used to target specific request platforms.
+     * 
+ * + * + * .google.ads.admanager.v1.RequestPlatformTargeting request_platform_targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRequestPlatformTargeting( + com.google.ads.admanager.v1.RequestPlatformTargeting.Builder builderForValue) { + if (requestPlatformTargetingBuilder_ == null) { + requestPlatformTargeting_ = builderForValue.build(); + } else { + requestPlatformTargetingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Used to target specific request platforms.
+     * 
+ * + * + * .google.ads.admanager.v1.RequestPlatformTargeting request_platform_targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRequestPlatformTargeting( + com.google.ads.admanager.v1.RequestPlatformTargeting value) { + if (requestPlatformTargetingBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && requestPlatformTargeting_ != null + && requestPlatformTargeting_ + != com.google.ads.admanager.v1.RequestPlatformTargeting.getDefaultInstance()) { + getRequestPlatformTargetingBuilder().mergeFrom(value); + } else { + requestPlatformTargeting_ = value; + } + } else { + requestPlatformTargetingBuilder_.mergeFrom(value); + } + if (requestPlatformTargeting_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Used to target specific request platforms.
+     * 
+ * + * + * .google.ads.admanager.v1.RequestPlatformTargeting request_platform_targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRequestPlatformTargeting() { + bitField0_ = (bitField0_ & ~0x00000008); + requestPlatformTargeting_ = null; + if (requestPlatformTargetingBuilder_ != null) { + requestPlatformTargetingBuilder_.dispose(); + requestPlatformTargetingBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Used to target specific request platforms.
+     * 
+ * + * + * .google.ads.admanager.v1.RequestPlatformTargeting request_platform_targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.RequestPlatformTargeting.Builder + getRequestPlatformTargetingBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getRequestPlatformTargetingFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Used to target specific request platforms.
+     * 
+ * + * + * .google.ads.admanager.v1.RequestPlatformTargeting request_platform_targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.RequestPlatformTargetingOrBuilder + getRequestPlatformTargetingOrBuilder() { + if (requestPlatformTargetingBuilder_ != null) { + return requestPlatformTargetingBuilder_.getMessageOrBuilder(); + } else { + return requestPlatformTargeting_ == null + ? com.google.ads.admanager.v1.RequestPlatformTargeting.getDefaultInstance() + : requestPlatformTargeting_; + } + } + + /** + * + * + *
+     * Optional. Used to target specific request platforms.
+     * 
+ * + * + * .google.ads.admanager.v1.RequestPlatformTargeting request_platform_targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.RequestPlatformTargeting, + com.google.ads.admanager.v1.RequestPlatformTargeting.Builder, + com.google.ads.admanager.v1.RequestPlatformTargetingOrBuilder> + getRequestPlatformTargetingFieldBuilder() { + if (requestPlatformTargetingBuilder_ == null) { + requestPlatformTargetingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.RequestPlatformTargeting, + com.google.ads.admanager.v1.RequestPlatformTargeting.Builder, + com.google.ads.admanager.v1.RequestPlatformTargetingOrBuilder>( + getRequestPlatformTargeting(), getParentForChildren(), isClean()); + requestPlatformTargeting_ = null; + } + return requestPlatformTargetingBuilder_; + } + + private com.google.ads.admanager.v1.CustomTargeting customTargeting_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.CustomTargeting, + com.google.ads.admanager.v1.CustomTargeting.Builder, + com.google.ads.admanager.v1.CustomTargetingOrBuilder> + customTargetingBuilder_; + + /** + * + * + *
+     * Optional. Used to target key/values, audience segments, and/or CMS
+     * metadata.
+     * 
+ * + * + * .google.ads.admanager.v1.CustomTargeting custom_targeting = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customTargeting field is set. + */ + public boolean hasCustomTargeting() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Optional. Used to target key/values, audience segments, and/or CMS
+     * metadata.
+     * 
+ * + * + * .google.ads.admanager.v1.CustomTargeting custom_targeting = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customTargeting. + */ + public com.google.ads.admanager.v1.CustomTargeting getCustomTargeting() { + if (customTargetingBuilder_ == null) { + return customTargeting_ == null + ? com.google.ads.admanager.v1.CustomTargeting.getDefaultInstance() + : customTargeting_; + } else { + return customTargetingBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Used to target key/values, audience segments, and/or CMS
+     * metadata.
+     * 
+ * + * + * .google.ads.admanager.v1.CustomTargeting custom_targeting = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomTargeting(com.google.ads.admanager.v1.CustomTargeting value) { + if (customTargetingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customTargeting_ = value; + } else { + customTargetingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Used to target key/values, audience segments, and/or CMS
+     * metadata.
+     * 
+ * + * + * .google.ads.admanager.v1.CustomTargeting custom_targeting = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomTargeting( + com.google.ads.admanager.v1.CustomTargeting.Builder builderForValue) { + if (customTargetingBuilder_ == null) { + customTargeting_ = builderForValue.build(); + } else { + customTargetingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Used to target key/values, audience segments, and/or CMS
+     * metadata.
+     * 
+ * + * + * .google.ads.admanager.v1.CustomTargeting custom_targeting = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCustomTargeting(com.google.ads.admanager.v1.CustomTargeting value) { + if (customTargetingBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && customTargeting_ != null + && customTargeting_ + != com.google.ads.admanager.v1.CustomTargeting.getDefaultInstance()) { + getCustomTargetingBuilder().mergeFrom(value); + } else { + customTargeting_ = value; + } + } else { + customTargetingBuilder_.mergeFrom(value); + } + if (customTargeting_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Used to target key/values, audience segments, and/or CMS
+     * metadata.
+     * 
+ * + * + * .google.ads.admanager.v1.CustomTargeting custom_targeting = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCustomTargeting() { + bitField0_ = (bitField0_ & ~0x00000010); + customTargeting_ = null; + if (customTargetingBuilder_ != null) { + customTargetingBuilder_.dispose(); + customTargetingBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Used to target key/values, audience segments, and/or CMS
+     * metadata.
+     * 
+ * + * + * .google.ads.admanager.v1.CustomTargeting custom_targeting = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.CustomTargeting.Builder getCustomTargetingBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getCustomTargetingFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Used to target key/values, audience segments, and/or CMS
+     * metadata.
+     * 
+ * + * + * .google.ads.admanager.v1.CustomTargeting custom_targeting = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.CustomTargetingOrBuilder getCustomTargetingOrBuilder() { + if (customTargetingBuilder_ != null) { + return customTargetingBuilder_.getMessageOrBuilder(); + } else { + return customTargeting_ == null + ? com.google.ads.admanager.v1.CustomTargeting.getDefaultInstance() + : customTargeting_; + } + } + + /** + * + * + *
+     * Optional. Used to target key/values, audience segments, and/or CMS
+     * metadata.
+     * 
+ * + * + * .google.ads.admanager.v1.CustomTargeting custom_targeting = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.CustomTargeting, + com.google.ads.admanager.v1.CustomTargeting.Builder, + com.google.ads.admanager.v1.CustomTargetingOrBuilder> + getCustomTargetingFieldBuilder() { + if (customTargetingBuilder_ == null) { + customTargetingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.CustomTargeting, + com.google.ads.admanager.v1.CustomTargeting.Builder, + com.google.ads.admanager.v1.CustomTargetingOrBuilder>( + getCustomTargeting(), getParentForChildren(), isClean()); + customTargeting_ = null; + } + return customTargetingBuilder_; + } + + private com.google.ads.admanager.v1.UserDomainTargeting userDomainTargeting_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.UserDomainTargeting, + com.google.ads.admanager.v1.UserDomainTargeting.Builder, + com.google.ads.admanager.v1.UserDomainTargetingOrBuilder> + userDomainTargetingBuilder_; + + /** + * + * + *
+     * Optional. Used to target user domains.
+     * 
+ * + * + * .google.ads.admanager.v1.UserDomainTargeting user_domain_targeting = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the userDomainTargeting field is set. + */ + public boolean hasUserDomainTargeting() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Optional. Used to target user domains.
+     * 
+ * + * + * .google.ads.admanager.v1.UserDomainTargeting user_domain_targeting = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The userDomainTargeting. + */ + public com.google.ads.admanager.v1.UserDomainTargeting getUserDomainTargeting() { + if (userDomainTargetingBuilder_ == null) { + return userDomainTargeting_ == null + ? com.google.ads.admanager.v1.UserDomainTargeting.getDefaultInstance() + : userDomainTargeting_; + } else { + return userDomainTargetingBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Used to target user domains.
+     * 
+ * + * + * .google.ads.admanager.v1.UserDomainTargeting user_domain_targeting = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUserDomainTargeting(com.google.ads.admanager.v1.UserDomainTargeting value) { + if (userDomainTargetingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + userDomainTargeting_ = value; + } else { + userDomainTargetingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Used to target user domains.
+     * 
+ * + * + * .google.ads.admanager.v1.UserDomainTargeting user_domain_targeting = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUserDomainTargeting( + com.google.ads.admanager.v1.UserDomainTargeting.Builder builderForValue) { + if (userDomainTargetingBuilder_ == null) { + userDomainTargeting_ = builderForValue.build(); + } else { + userDomainTargetingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Used to target user domains.
+     * 
+ * + * + * .google.ads.admanager.v1.UserDomainTargeting user_domain_targeting = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUserDomainTargeting(com.google.ads.admanager.v1.UserDomainTargeting value) { + if (userDomainTargetingBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && userDomainTargeting_ != null + && userDomainTargeting_ + != com.google.ads.admanager.v1.UserDomainTargeting.getDefaultInstance()) { + getUserDomainTargetingBuilder().mergeFrom(value); + } else { + userDomainTargeting_ = value; + } + } else { + userDomainTargetingBuilder_.mergeFrom(value); + } + if (userDomainTargeting_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Used to target user domains.
+     * 
+ * + * + * .google.ads.admanager.v1.UserDomainTargeting user_domain_targeting = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUserDomainTargeting() { + bitField0_ = (bitField0_ & ~0x00000020); + userDomainTargeting_ = null; + if (userDomainTargetingBuilder_ != null) { + userDomainTargetingBuilder_.dispose(); + userDomainTargetingBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Used to target user domains.
+     * 
+ * + * + * .google.ads.admanager.v1.UserDomainTargeting user_domain_targeting = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.UserDomainTargeting.Builder getUserDomainTargetingBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getUserDomainTargetingFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Used to target user domains.
+     * 
+ * + * + * .google.ads.admanager.v1.UserDomainTargeting user_domain_targeting = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.UserDomainTargetingOrBuilder + getUserDomainTargetingOrBuilder() { + if (userDomainTargetingBuilder_ != null) { + return userDomainTargetingBuilder_.getMessageOrBuilder(); + } else { + return userDomainTargeting_ == null + ? com.google.ads.admanager.v1.UserDomainTargeting.getDefaultInstance() + : userDomainTargeting_; + } + } + + /** + * + * + *
+     * Optional. Used to target user domains.
+     * 
+ * + * + * .google.ads.admanager.v1.UserDomainTargeting user_domain_targeting = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.UserDomainTargeting, + com.google.ads.admanager.v1.UserDomainTargeting.Builder, + com.google.ads.admanager.v1.UserDomainTargetingOrBuilder> + getUserDomainTargetingFieldBuilder() { + if (userDomainTargetingBuilder_ == null) { + userDomainTargetingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.UserDomainTargeting, + com.google.ads.admanager.v1.UserDomainTargeting.Builder, + com.google.ads.admanager.v1.UserDomainTargetingOrBuilder>( + getUserDomainTargeting(), getParentForChildren(), isClean()); + userDomainTargeting_ = null; + } + return userDomainTargetingBuilder_; + } + + private com.google.ads.admanager.v1.VideoPositionTargeting videoPositionTargeting_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.VideoPositionTargeting, + com.google.ads.admanager.v1.VideoPositionTargeting.Builder, + com.google.ads.admanager.v1.VideoPositionTargetingOrBuilder> + videoPositionTargetingBuilder_; + + /** + * + * + *
+     * Optional. Used to target video positions.
+     * 
+ * + * + * .google.ads.admanager.v1.VideoPositionTargeting video_position_targeting = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the videoPositionTargeting field is set. + */ + public boolean hasVideoPositionTargeting() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Optional. Used to target video positions.
+     * 
+ * + * + * .google.ads.admanager.v1.VideoPositionTargeting video_position_targeting = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The videoPositionTargeting. + */ + public com.google.ads.admanager.v1.VideoPositionTargeting getVideoPositionTargeting() { + if (videoPositionTargetingBuilder_ == null) { + return videoPositionTargeting_ == null + ? com.google.ads.admanager.v1.VideoPositionTargeting.getDefaultInstance() + : videoPositionTargeting_; + } else { + return videoPositionTargetingBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Used to target video positions.
+     * 
+ * + * + * .google.ads.admanager.v1.VideoPositionTargeting video_position_targeting = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setVideoPositionTargeting( + com.google.ads.admanager.v1.VideoPositionTargeting value) { + if (videoPositionTargetingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + videoPositionTargeting_ = value; + } else { + videoPositionTargetingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Used to target video positions.
+     * 
+ * + * + * .google.ads.admanager.v1.VideoPositionTargeting video_position_targeting = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setVideoPositionTargeting( + com.google.ads.admanager.v1.VideoPositionTargeting.Builder builderForValue) { + if (videoPositionTargetingBuilder_ == null) { + videoPositionTargeting_ = builderForValue.build(); + } else { + videoPositionTargetingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Used to target video positions.
+     * 
+ * + * + * .google.ads.admanager.v1.VideoPositionTargeting video_position_targeting = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeVideoPositionTargeting( + com.google.ads.admanager.v1.VideoPositionTargeting value) { + if (videoPositionTargetingBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && videoPositionTargeting_ != null + && videoPositionTargeting_ + != com.google.ads.admanager.v1.VideoPositionTargeting.getDefaultInstance()) { + getVideoPositionTargetingBuilder().mergeFrom(value); + } else { + videoPositionTargeting_ = value; + } + } else { + videoPositionTargetingBuilder_.mergeFrom(value); + } + if (videoPositionTargeting_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Used to target video positions.
+     * 
+ * + * + * .google.ads.admanager.v1.VideoPositionTargeting video_position_targeting = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearVideoPositionTargeting() { + bitField0_ = (bitField0_ & ~0x00000040); + videoPositionTargeting_ = null; + if (videoPositionTargetingBuilder_ != null) { + videoPositionTargetingBuilder_.dispose(); + videoPositionTargetingBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Used to target video positions.
+     * 
+ * + * + * .google.ads.admanager.v1.VideoPositionTargeting video_position_targeting = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.VideoPositionTargeting.Builder + getVideoPositionTargetingBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getVideoPositionTargetingFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Used to target video positions.
+     * 
+ * + * + * .google.ads.admanager.v1.VideoPositionTargeting video_position_targeting = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.VideoPositionTargetingOrBuilder + getVideoPositionTargetingOrBuilder() { + if (videoPositionTargetingBuilder_ != null) { + return videoPositionTargetingBuilder_.getMessageOrBuilder(); + } else { + return videoPositionTargeting_ == null + ? com.google.ads.admanager.v1.VideoPositionTargeting.getDefaultInstance() + : videoPositionTargeting_; + } + } + + /** + * + * + *
+     * Optional. Used to target video positions.
+     * 
+ * + * + * .google.ads.admanager.v1.VideoPositionTargeting video_position_targeting = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.VideoPositionTargeting, + com.google.ads.admanager.v1.VideoPositionTargeting.Builder, + com.google.ads.admanager.v1.VideoPositionTargetingOrBuilder> + getVideoPositionTargetingFieldBuilder() { + if (videoPositionTargetingBuilder_ == null) { + videoPositionTargetingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.VideoPositionTargeting, + com.google.ads.admanager.v1.VideoPositionTargeting.Builder, + com.google.ads.admanager.v1.VideoPositionTargetingOrBuilder>( + getVideoPositionTargeting(), getParentForChildren(), isClean()); + videoPositionTargeting_ = null; + } + return videoPositionTargetingBuilder_; + } + + private com.google.ads.admanager.v1.DataSegmentTargeting dataSegmentTargeting_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.DataSegmentTargeting, + com.google.ads.admanager.v1.DataSegmentTargeting.Builder, + com.google.ads.admanager.v1.DataSegmentTargetingOrBuilder> + dataSegmentTargetingBuilder_; + + /** + * + * + *
+     * Optional. Used to target data segments.
+     * 
+ * + * + * .google.ads.admanager.v1.DataSegmentTargeting data_segment_targeting = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dataSegmentTargeting field is set. + */ + public boolean hasDataSegmentTargeting() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Optional. Used to target data segments.
+     * 
+ * + * + * .google.ads.admanager.v1.DataSegmentTargeting data_segment_targeting = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataSegmentTargeting. + */ + public com.google.ads.admanager.v1.DataSegmentTargeting getDataSegmentTargeting() { + if (dataSegmentTargetingBuilder_ == null) { + return dataSegmentTargeting_ == null + ? com.google.ads.admanager.v1.DataSegmentTargeting.getDefaultInstance() + : dataSegmentTargeting_; + } else { + return dataSegmentTargetingBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Used to target data segments.
+     * 
+ * + * + * .google.ads.admanager.v1.DataSegmentTargeting data_segment_targeting = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDataSegmentTargeting(com.google.ads.admanager.v1.DataSegmentTargeting value) { + if (dataSegmentTargetingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataSegmentTargeting_ = value; + } else { + dataSegmentTargetingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Used to target data segments.
+     * 
+ * + * + * .google.ads.admanager.v1.DataSegmentTargeting data_segment_targeting = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDataSegmentTargeting( + com.google.ads.admanager.v1.DataSegmentTargeting.Builder builderForValue) { + if (dataSegmentTargetingBuilder_ == null) { + dataSegmentTargeting_ = builderForValue.build(); + } else { + dataSegmentTargetingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Used to target data segments.
+     * 
+ * + * + * .google.ads.admanager.v1.DataSegmentTargeting data_segment_targeting = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDataSegmentTargeting( + com.google.ads.admanager.v1.DataSegmentTargeting value) { + if (dataSegmentTargetingBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && dataSegmentTargeting_ != null + && dataSegmentTargeting_ + != com.google.ads.admanager.v1.DataSegmentTargeting.getDefaultInstance()) { + getDataSegmentTargetingBuilder().mergeFrom(value); + } else { + dataSegmentTargeting_ = value; + } + } else { + dataSegmentTargetingBuilder_.mergeFrom(value); + } + if (dataSegmentTargeting_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Used to target data segments.
+     * 
+ * + * + * .google.ads.admanager.v1.DataSegmentTargeting data_segment_targeting = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDataSegmentTargeting() { + bitField0_ = (bitField0_ & ~0x00000080); + dataSegmentTargeting_ = null; + if (dataSegmentTargetingBuilder_ != null) { + dataSegmentTargetingBuilder_.dispose(); + dataSegmentTargetingBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Used to target data segments.
+     * 
+ * + * + * .google.ads.admanager.v1.DataSegmentTargeting data_segment_targeting = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.DataSegmentTargeting.Builder + getDataSegmentTargetingBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getDataSegmentTargetingFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Used to target data segments.
+     * 
+ * + * + * .google.ads.admanager.v1.DataSegmentTargeting data_segment_targeting = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.DataSegmentTargetingOrBuilder + getDataSegmentTargetingOrBuilder() { + if (dataSegmentTargetingBuilder_ != null) { + return dataSegmentTargetingBuilder_.getMessageOrBuilder(); + } else { + return dataSegmentTargeting_ == null + ? com.google.ads.admanager.v1.DataSegmentTargeting.getDefaultInstance() + : dataSegmentTargeting_; + } + } + + /** + * + * + *
+     * Optional. Used to target data segments.
+     * 
+ * + * + * .google.ads.admanager.v1.DataSegmentTargeting data_segment_targeting = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.DataSegmentTargeting, + com.google.ads.admanager.v1.DataSegmentTargeting.Builder, + com.google.ads.admanager.v1.DataSegmentTargetingOrBuilder> + getDataSegmentTargetingFieldBuilder() { + if (dataSegmentTargetingBuilder_ == null) { + dataSegmentTargetingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.DataSegmentTargeting, + com.google.ads.admanager.v1.DataSegmentTargeting.Builder, + com.google.ads.admanager.v1.DataSegmentTargetingOrBuilder>( + getDataSegmentTargeting(), getParentForChildren(), isClean()); + dataSegmentTargeting_ = null; + } + return dataSegmentTargetingBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.Targeting) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.Targeting) + private static final com.google.ads.admanager.v1.Targeting DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.Targeting(); + } + + public static com.google.ads.admanager.v1.Targeting getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Targeting parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.Targeting getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TargetingOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TargetingOrBuilder.java new file mode 100644 index 000000000000..dfbae296d3ec --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TargetingOrBuilder.java @@ -0,0 +1,374 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface TargetingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.Targeting) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Used to target/exclude various geo targets.
+   * 
+ * + * + * .google.ads.admanager.v1.GeoTargeting geo_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the geoTargeting field is set. + */ + boolean hasGeoTargeting(); + + /** + * + * + *
+   * Optional. Used to target/exclude various geo targets.
+   * 
+ * + * + * .google.ads.admanager.v1.GeoTargeting geo_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The geoTargeting. + */ + com.google.ads.admanager.v1.GeoTargeting getGeoTargeting(); + + /** + * + * + *
+   * Optional. Used to target/exclude various geo targets.
+   * 
+ * + * + * .google.ads.admanager.v1.GeoTargeting geo_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.admanager.v1.GeoTargetingOrBuilder getGeoTargetingOrBuilder(); + + /** + * + * + *
+   * Optional. Used to target various technology targeting dimensions.
+   * 
+ * + * + * .google.ads.admanager.v1.TechnologyTargeting technology_targeting = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the technologyTargeting field is set. + */ + boolean hasTechnologyTargeting(); + + /** + * + * + *
+   * Optional. Used to target various technology targeting dimensions.
+   * 
+ * + * + * .google.ads.admanager.v1.TechnologyTargeting technology_targeting = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The technologyTargeting. + */ + com.google.ads.admanager.v1.TechnologyTargeting getTechnologyTargeting(); + + /** + * + * + *
+   * Optional. Used to target various technology targeting dimensions.
+   * 
+ * + * + * .google.ads.admanager.v1.TechnologyTargeting technology_targeting = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.admanager.v1.TechnologyTargetingOrBuilder getTechnologyTargetingOrBuilder(); + + /** + * + * + *
+   * Optional. Used to target/exclude various ad units and/or placements.
+   * 
+ * + * + * .google.ads.admanager.v1.InventoryTargeting inventory_targeting = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the inventoryTargeting field is set. + */ + boolean hasInventoryTargeting(); + + /** + * + * + *
+   * Optional. Used to target/exclude various ad units and/or placements.
+   * 
+ * + * + * .google.ads.admanager.v1.InventoryTargeting inventory_targeting = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The inventoryTargeting. + */ + com.google.ads.admanager.v1.InventoryTargeting getInventoryTargeting(); + + /** + * + * + *
+   * Optional. Used to target/exclude various ad units and/or placements.
+   * 
+ * + * + * .google.ads.admanager.v1.InventoryTargeting inventory_targeting = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.admanager.v1.InventoryTargetingOrBuilder getInventoryTargetingOrBuilder(); + + /** + * + * + *
+   * Optional. Used to target specific request platforms.
+   * 
+ * + * + * .google.ads.admanager.v1.RequestPlatformTargeting request_platform_targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the requestPlatformTargeting field is set. + */ + boolean hasRequestPlatformTargeting(); + + /** + * + * + *
+   * Optional. Used to target specific request platforms.
+   * 
+ * + * + * .google.ads.admanager.v1.RequestPlatformTargeting request_platform_targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The requestPlatformTargeting. + */ + com.google.ads.admanager.v1.RequestPlatformTargeting getRequestPlatformTargeting(); + + /** + * + * + *
+   * Optional. Used to target specific request platforms.
+   * 
+ * + * + * .google.ads.admanager.v1.RequestPlatformTargeting request_platform_targeting = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.admanager.v1.RequestPlatformTargetingOrBuilder + getRequestPlatformTargetingOrBuilder(); + + /** + * + * + *
+   * Optional. Used to target key/values, audience segments, and/or CMS
+   * metadata.
+   * 
+ * + * + * .google.ads.admanager.v1.CustomTargeting custom_targeting = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customTargeting field is set. + */ + boolean hasCustomTargeting(); + + /** + * + * + *
+   * Optional. Used to target key/values, audience segments, and/or CMS
+   * metadata.
+   * 
+ * + * + * .google.ads.admanager.v1.CustomTargeting custom_targeting = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customTargeting. + */ + com.google.ads.admanager.v1.CustomTargeting getCustomTargeting(); + + /** + * + * + *
+   * Optional. Used to target key/values, audience segments, and/or CMS
+   * metadata.
+   * 
+ * + * + * .google.ads.admanager.v1.CustomTargeting custom_targeting = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.admanager.v1.CustomTargetingOrBuilder getCustomTargetingOrBuilder(); + + /** + * + * + *
+   * Optional. Used to target user domains.
+   * 
+ * + * + * .google.ads.admanager.v1.UserDomainTargeting user_domain_targeting = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the userDomainTargeting field is set. + */ + boolean hasUserDomainTargeting(); + + /** + * + * + *
+   * Optional. Used to target user domains.
+   * 
+ * + * + * .google.ads.admanager.v1.UserDomainTargeting user_domain_targeting = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The userDomainTargeting. + */ + com.google.ads.admanager.v1.UserDomainTargeting getUserDomainTargeting(); + + /** + * + * + *
+   * Optional. Used to target user domains.
+   * 
+ * + * + * .google.ads.admanager.v1.UserDomainTargeting user_domain_targeting = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.admanager.v1.UserDomainTargetingOrBuilder getUserDomainTargetingOrBuilder(); + + /** + * + * + *
+   * Optional. Used to target video positions.
+   * 
+ * + * + * .google.ads.admanager.v1.VideoPositionTargeting video_position_targeting = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the videoPositionTargeting field is set. + */ + boolean hasVideoPositionTargeting(); + + /** + * + * + *
+   * Optional. Used to target video positions.
+   * 
+ * + * + * .google.ads.admanager.v1.VideoPositionTargeting video_position_targeting = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The videoPositionTargeting. + */ + com.google.ads.admanager.v1.VideoPositionTargeting getVideoPositionTargeting(); + + /** + * + * + *
+   * Optional. Used to target video positions.
+   * 
+ * + * + * .google.ads.admanager.v1.VideoPositionTargeting video_position_targeting = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.admanager.v1.VideoPositionTargetingOrBuilder getVideoPositionTargetingOrBuilder(); + + /** + * + * + *
+   * Optional. Used to target data segments.
+   * 
+ * + * + * .google.ads.admanager.v1.DataSegmentTargeting data_segment_targeting = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dataSegmentTargeting field is set. + */ + boolean hasDataSegmentTargeting(); + + /** + * + * + *
+   * Optional. Used to target data segments.
+   * 
+ * + * + * .google.ads.admanager.v1.DataSegmentTargeting data_segment_targeting = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataSegmentTargeting. + */ + com.google.ads.admanager.v1.DataSegmentTargeting getDataSegmentTargeting(); + + /** + * + * + *
+   * Optional. Used to target data segments.
+   * 
+ * + * + * .google.ads.admanager.v1.DataSegmentTargeting data_segment_targeting = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.admanager.v1.DataSegmentTargetingOrBuilder getDataSegmentTargetingOrBuilder(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TargetingProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TargetingProto.java new file mode 100644 index 000000000000..85c45cf4c7b3 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TargetingProto.java @@ -0,0 +1,378 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class TargetingProto { + private TargetingProto() {} + + 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_ads_admanager_v1_Targeting_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_Targeting_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_GeoTargeting_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_GeoTargeting_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_TechnologyTargeting_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_TechnologyTargeting_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BandwidthTargeting_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BandwidthTargeting_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_DeviceCategoryTargeting_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_DeviceCategoryTargeting_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_OperatingSystemTargeting_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_OperatingSystemTargeting_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_InventoryTargeting_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_InventoryTargeting_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_AdUnitTargeting_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_AdUnitTargeting_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_RequestPlatformTargeting_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_RequestPlatformTargeting_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_CustomTargeting_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_CustomTargeting_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_CustomTargetingClause_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_CustomTargetingClause_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_CustomTargetingLiteral_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_CustomTargetingLiteral_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_UserDomainTargeting_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_UserDomainTargeting_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_VideoPositionTargeting_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_VideoPositionTargeting_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_VideoPosition_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_VideoPosition_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_DataSegmentTargeting_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_DataSegmentTargeting_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/ads/admanager/v1/targeting.prot" + + "o\022\027google.ads.admanager.v1\0323google/ads/a" + + "dmanager/v1/request_platform_enum.proto\032=google/ads/admanager/v1/targeted_video_" + + "bumper_type_enum.proto\0321google/ads/adman" + + "ager/v1/video_position_enum.proto\032\037googl" + + "e/api/field_behavior.proto\032\031google/api/resource.proto\"\221\005\n" + + "\tTargeting\022A\n\r" + + "geo_targeting\030\002" + + " \001(\0132%.google.ads.admanager.v1.GeoTargetingB\003\340A\001\022O\n" + + "\024technology_targeting\030\003" + + " \001(\0132,.google.ads.admanager.v1.TechnologyTargetingB\003\340A\001\022M\n" + + "\023inventory_targeting\030\005" + + " \001(\0132+.google.ads.admanager.v1.InventoryTargetingB\003\340A\001\022Z\n" + + "\032request_platform_targeting\030\006" + + " \001(\01321.google.ads.admanager.v1.RequestPlatformTargetingB\003\340A\001\022G\n" + + "\020custom_targeting\030\007" + + " \001(\0132(.google.ads.admanager.v1.CustomTargetingB\003\340A\001\022P\n" + + "\025user_domain_targeting\030\n" + + " \001(\0132,.google.ads.admanager.v1.UserDomainTargetingB\003\340A\001\022V\n" + + "\030video_position_targeting\030\014" + + " \001(\0132/.google.ads.admanager.v1.VideoPositionTargetingB\003\340A\001\022R\n" + + "\026data_segment_targeting\030\r" + + " \001(\0132-.google.ads.admanager.v1.DataSegmentTargetingB\003\340A\001\"\224\001\n" + + "\014GeoTargeting\022A\n\r" + + "targeted_geos\030\003 \003(\tB*\340A\001\372A$\n" + + "\"admanager.googleapis.com/GeoTarget\022A\n" + + "\r" + + "excluded_geos\030\004 \003(\tB*\340A\001\372A$\n" + + "\"admanager.googleapis.com/GeoTarget\"\232\002\n" + + "\023TechnologyTargeting\022M\n" + + "\023bandwidth_targeting\030\003 \001(\0132+." + + "google.ads.admanager.v1.BandwidthTargetingB\003\340A\001\022X\n" + + "\031device_category_targeting\030\001 \001" + + "(\01320.google.ads.admanager.v1.DeviceCategoryTargetingB\003\340A\001\022Z\n" + + "\032operating_system_targeting\030\002" + + " \001(\01321.google.ads.admanager.v1.OperatingSystemTargetingB\003\340A\001\"\274\001\n" + + "\022BandwidthTargeting\022R\n" + + "\031targeted_bandwidth_groups\030\003 \003(\tB/\340A\001\372A)\n" + + "\'admanager.googleapis.com/BandwidthGroup\022R\n" + + "\031excluded_bandwidth_groups\030\004 \003(\tB/\340A\001\372A)\n" + + "\'admanager.googleapis.com/BandwidthGroup\"\265\001\n" + + "\027DeviceCategoryTargeting\022L\n" + + "\023targeted_categories\030\003 \003(\tB/\340A\001\372A)\n" + + "\'admanager.googleapis.com/DeviceCategory\022L\n" + + "\023excluded_categories\030\004 \003(\tB/\340A\001\372A)\n" + + "\'admanager.googleapis.com/DeviceCategory\"\220\003\n" + + "\030OperatingSystemTargeting\022T\n" + + "\032targeted_operating_systems\030\005 \003(\tB0\340A\001\372A*\n" + + "(admanager.googleapis.com/OperatingSystem\022T\n" + + "\032excluded_operating_systems\030\006 \003(\tB0\340A\001\372A*\n" + + "(admanager.googleapis.com/OperatingSystem\022c\n" + + "\"targeted_operating_system_versions\030\007 \003(\tB7\340A\001\372A1\n" + + "/admanager.googleapis.com/OperatingSystemVersion\022c\n" + + "\"excluded_operating_system_versions\030\010 \003(\tB7\340A\001\372A1\n" + + "/admanager.googleapis.com/OperatingSystemVersion\"\361\001\n" + + "\022InventoryTargeting\022H\n" + + "\021targeted_ad_units\030\001" + + " \003(\0132(.google.ads.admanager.v1.AdUnitTargetingB\003\340A\001\022H\n" + + "\021excluded_ad_units\030\002" + + " \003(\0132(.google.ads.admanager.v1.AdUnitTargetingB\003\340A\001\022G\n" + + "\023targeted_placements\030\005 \003(\tB*\340A\001\372A$\n" + + "\"admanager.googleapis.com/Placement\"\226\001\n" + + "\017AdUnitTargeting\022 \n" + + "\023include_descendants\030\001 \001(\010H\000\210\001\001\022=\n" + + "\007ad_unit\030\003 \001(\tB\'\340A\001\372A!\n" + + "\037admanager.googleapis.com/AdUnitH\001\210\001\001B\026\n" + + "\024_include_descendantsB\n\n" + + "\010_ad_unit\"x\n" + + "\030RequestPlatformTargeting\022\\\n" + + "\021request_platforms\030\001 \003(\0162<.google.ads.admanag" + + "er.v1.RequestPlatformEnum.RequestPlatformB\003\340A\001\"h\n" + + "\017CustomTargeting\022U\n" + + "\030custom_targeting_clauses\030\001" + + " \003(\0132..google.ads.admanager.v1.CustomTargetingClauseB\003\340A\001\"p\n" + + "\025CustomTargetingClause\022W\n" + + "\031custom_targeting_literals\030\001" + + " \003(\0132/.google.ads.admanager.v1.CustomTargetingLiteralB\003\340A\001\"\205\002\n" + + "\026CustomTargetingLiteral\022\025\n" + + "\010negative\030\001 \001(\010H\000\210\001\001\022V\n" + + "\024custom_targeting_key\030\004 \001(\tB3\340A\001\372A-\n" + + "+admanager.googleapis.com/CustomTargetingKeyH\001\210\001\001\022V\n" + + "\027custom_targeting_values\030\005 \003(\tB5\340A\001\372A/\n" + + "-admanager.googleapis.com/CustomTargetingValueB\013\n" + + "\t_negativeB\027\n" + + "\025_custom_targeting_key\"]\n" + + "\023UserDomainTargeting\022\"\n" + + "\025targeted_user_domains\030\001 \003(\tB\003\340A\001\022\"\n" + + "\025excluded_user_domains\030\002 \003(\tB\003\340A\001\"^\n" + + "\026VideoPositionTargeting\022D\n" + + "\017video_positions\030\001 \003(\0132&.g" + + "oogle.ads.admanager.v1.VideoPositionB\003\340A\001\"\240\003\n\r" + + "VideoPosition\022\037\n\r" + + "midroll_index\030\001 \001(\003B\003\340A\001H\000\210\001\001\022\'\n" + + "\025reverse_midroll_index\030\002 \001(\003B\003\340A\001H\001\210\001\001\022\036\n" + + "\014pod_position\030\003 \001(\003B\003\340A\001H\002\210\001\001\022Y\n\r" + + "position_type\030\005 \001(\01628.google.ad" + + "s.admanager.v1.VideoPositionEnum.VideoPositionB\003\340A\001H\003\210\001\001\022k\n" + + "\013bumper_type\030\006 \001(\0162L.google.ads.admanager.v1.TargetedVideoBum" + + "perTypeEnum.TargetedVideoBumperTypeB\003\340A\001H\004\210\001\001B\020\n" + + "\016_midroll_indexB\030\n" + + "\026_reverse_midroll_indexB\017\n\r" + + "_pod_positionB\020\n" + + "\016_position_typeB\016\n" + + "\014_bumper_type\"?\n" + + "\024DataSegmentTargeting\022\'\n" + + "\032has_data_segment_targeting\030\002 \001(\010B\003\340A\003B\302\001\n" + + "\033com.google.ads.admanager.v1B\016TargetingProtoP\001Z@google.golang.org/genpr" + + "oto/googleapis/ads/admanager/v1;admanage" + + "r\252\002\027Google.Ads.AdManager.V1\312\002\027Google\\Ads" + + "\\AdManager\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.admanager.v1.RequestPlatformEnumProto.getDescriptor(), + com.google.ads.admanager.v1.TargetedVideoBumperTypeEnumProto.getDescriptor(), + com.google.ads.admanager.v1.VideoPositionEnumProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_ads_admanager_v1_Targeting_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_Targeting_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_Targeting_descriptor, + new java.lang.String[] { + "GeoTargeting", + "TechnologyTargeting", + "InventoryTargeting", + "RequestPlatformTargeting", + "CustomTargeting", + "UserDomainTargeting", + "VideoPositionTargeting", + "DataSegmentTargeting", + }); + internal_static_google_ads_admanager_v1_GeoTargeting_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_ads_admanager_v1_GeoTargeting_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_GeoTargeting_descriptor, + new java.lang.String[] { + "TargetedGeos", "ExcludedGeos", + }); + internal_static_google_ads_admanager_v1_TechnologyTargeting_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_ads_admanager_v1_TechnologyTargeting_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_TechnologyTargeting_descriptor, + new java.lang.String[] { + "BandwidthTargeting", "DeviceCategoryTargeting", "OperatingSystemTargeting", + }); + internal_static_google_ads_admanager_v1_BandwidthTargeting_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_ads_admanager_v1_BandwidthTargeting_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BandwidthTargeting_descriptor, + new java.lang.String[] { + "TargetedBandwidthGroups", "ExcludedBandwidthGroups", + }); + internal_static_google_ads_admanager_v1_DeviceCategoryTargeting_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_ads_admanager_v1_DeviceCategoryTargeting_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_DeviceCategoryTargeting_descriptor, + new java.lang.String[] { + "TargetedCategories", "ExcludedCategories", + }); + internal_static_google_ads_admanager_v1_OperatingSystemTargeting_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_ads_admanager_v1_OperatingSystemTargeting_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_OperatingSystemTargeting_descriptor, + new java.lang.String[] { + "TargetedOperatingSystems", + "ExcludedOperatingSystems", + "TargetedOperatingSystemVersions", + "ExcludedOperatingSystemVersions", + }); + internal_static_google_ads_admanager_v1_InventoryTargeting_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_ads_admanager_v1_InventoryTargeting_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_InventoryTargeting_descriptor, + new java.lang.String[] { + "TargetedAdUnits", "ExcludedAdUnits", "TargetedPlacements", + }); + internal_static_google_ads_admanager_v1_AdUnitTargeting_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_ads_admanager_v1_AdUnitTargeting_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_AdUnitTargeting_descriptor, + new java.lang.String[] { + "IncludeDescendants", "AdUnit", + }); + internal_static_google_ads_admanager_v1_RequestPlatformTargeting_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_ads_admanager_v1_RequestPlatformTargeting_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_RequestPlatformTargeting_descriptor, + new java.lang.String[] { + "RequestPlatforms", + }); + internal_static_google_ads_admanager_v1_CustomTargeting_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_ads_admanager_v1_CustomTargeting_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_CustomTargeting_descriptor, + new java.lang.String[] { + "CustomTargetingClauses", + }); + internal_static_google_ads_admanager_v1_CustomTargetingClause_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_ads_admanager_v1_CustomTargetingClause_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_CustomTargetingClause_descriptor, + new java.lang.String[] { + "CustomTargetingLiterals", + }); + internal_static_google_ads_admanager_v1_CustomTargetingLiteral_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_ads_admanager_v1_CustomTargetingLiteral_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_CustomTargetingLiteral_descriptor, + new java.lang.String[] { + "Negative", "CustomTargetingKey", "CustomTargetingValues", + }); + internal_static_google_ads_admanager_v1_UserDomainTargeting_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_ads_admanager_v1_UserDomainTargeting_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_UserDomainTargeting_descriptor, + new java.lang.String[] { + "TargetedUserDomains", "ExcludedUserDomains", + }); + internal_static_google_ads_admanager_v1_VideoPositionTargeting_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_ads_admanager_v1_VideoPositionTargeting_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_VideoPositionTargeting_descriptor, + new java.lang.String[] { + "VideoPositions", + }); + internal_static_google_ads_admanager_v1_VideoPosition_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_ads_admanager_v1_VideoPosition_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_VideoPosition_descriptor, + new java.lang.String[] { + "MidrollIndex", "ReverseMidrollIndex", "PodPosition", "PositionType", "BumperType", + }); + internal_static_google_ads_admanager_v1_DataSegmentTargeting_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_ads_admanager_v1_DataSegmentTargeting_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_DataSegmentTargeting_descriptor, + new java.lang.String[] { + "HasDataSegmentTargeting", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.ads.admanager.v1.RequestPlatformEnumProto.getDescriptor(); + com.google.ads.admanager.v1.TargetedVideoBumperTypeEnumProto.getDescriptor(); + com.google.ads.admanager.v1.VideoPositionEnumProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TaxonomyCategory.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TaxonomyCategory.java index 900cac15f877..8f3f96b5cfca 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TaxonomyCategory.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TaxonomyCategory.java @@ -68,6 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.ads.admanager.v1.TaxonomyCategory.Builder.class); } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -133,7 +134,25 @@ public com.google.protobuf.ByteString getNameBytes() { * Output only. `TaxonomyCategory` ID. * * - * int64 taxonomy_category_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional int64 taxonomy_category_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the taxonomyCategoryId field is set. + */ + @java.lang.Override + public boolean hasTaxonomyCategoryId() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. `TaxonomyCategory` ID.
+   * 
+ * + * optional int64 taxonomy_category_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The taxonomyCategoryId. */ @@ -154,7 +173,23 @@ public long getTaxonomyCategoryId() { * Output only. Display name of the `TaxonomyCategory`. * * - * string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the displayName field is set. + */ + @java.lang.Override + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. Display name of the `TaxonomyCategory`.
+   * 
+ * + * optional string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The displayName. */ @@ -178,7 +213,7 @@ public java.lang.String getDisplayName() { * Output only. Display name of the `TaxonomyCategory`. * * - * string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for displayName. */ @@ -206,7 +241,24 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * children. * * - * bool grouping_only = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool grouping_only = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the groupingOnly field is set. + */ + @java.lang.Override + public boolean hasGroupingOnly() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Output only. Whether this `TaxonomyCategory` only serves to group its
+   * children.
+   * 
+ * + * optional bool grouping_only = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The groupingOnly. */ @@ -226,7 +278,27 @@ public boolean getGroupingOnly() { * from. * * - * int64 parent_taxonomy_category_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional int64 parent_taxonomy_category_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the parentTaxonomyCategoryId field is set. + */ + @java.lang.Override + public boolean hasParentTaxonomyCategoryId() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Output only. The ID of the parent category this `TaxonomyCategory` descends
+   * from.
+   * 
+ * + * + * optional int64 parent_taxonomy_category_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The parentTaxonomyCategoryId. @@ -247,7 +319,25 @@ public long getParentTaxonomyCategoryId() { * * * - * .google.ads.admanager.v1.TaxonomyTypeEnum.TaxonomyType taxonomy_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.TaxonomyTypeEnum.TaxonomyType taxonomy_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the taxonomyType field is set. + */ + @java.lang.Override + public boolean hasTaxonomyType() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Output only. The taxonomy that this `TaxonomyCategory` belongs to.
+   * 
+ * + * + * optional .google.ads.admanager.v1.TaxonomyTypeEnum.TaxonomyType taxonomy_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for taxonomyType. @@ -265,7 +355,7 @@ public int getTaxonomyTypeValue() { * * * - * .google.ads.admanager.v1.TaxonomyTypeEnum.TaxonomyType taxonomy_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.TaxonomyTypeEnum.TaxonomyType taxonomy_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The taxonomyType. @@ -425,16 +515,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (taxonomyCategoryId_ != 0L) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(2, taxonomyCategoryId_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); } - if (groupingOnly_ != false) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeBool(5, groupingOnly_); } - if (parentTaxonomyCategoryId_ != 0L) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeInt64(6, parentTaxonomyCategoryId_); } for (int i = 0; i < ancestorNames_.size(); i++) { @@ -447,9 +537,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < ancestorTaxonomyCategoryIds_.size(); i++) { output.writeInt64NoTag(ancestorTaxonomyCategoryIds_.getLong(i)); } - if (taxonomyType_ - != com.google.ads.admanager.v1.TaxonomyTypeEnum.TaxonomyType.TAXONOMY_TYPE_UNSPECIFIED - .getNumber()) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeEnum(9, taxonomyType_); } getUnknownFields().writeTo(output); @@ -464,16 +552,16 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (taxonomyCategoryId_ != 0L) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, taxonomyCategoryId_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); } - if (groupingOnly_ != false) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, groupingOnly_); } - if (parentTaxonomyCategoryId_ != 0L) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, parentTaxonomyCategoryId_); } { @@ -498,9 +586,7 @@ public int getSerializedSize() { } ancestorTaxonomyCategoryIdsMemoizedSerializedSize = dataSize; } - if (taxonomyType_ - != com.google.ads.admanager.v1.TaxonomyTypeEnum.TaxonomyType.TAXONOMY_TYPE_UNSPECIFIED - .getNumber()) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, taxonomyType_); } size += getUnknownFields().getSerializedSize(); @@ -520,11 +606,26 @@ public boolean equals(final java.lang.Object obj) { (com.google.ads.admanager.v1.TaxonomyCategory) obj; if (!getName().equals(other.getName())) return false; - if (getTaxonomyCategoryId() != other.getTaxonomyCategoryId()) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (getGroupingOnly() != other.getGroupingOnly()) return false; - if (getParentTaxonomyCategoryId() != other.getParentTaxonomyCategoryId()) return false; - if (taxonomyType_ != other.taxonomyType_) return false; + if (hasTaxonomyCategoryId() != other.hasTaxonomyCategoryId()) return false; + if (hasTaxonomyCategoryId()) { + if (getTaxonomyCategoryId() != other.getTaxonomyCategoryId()) return false; + } + if (hasDisplayName() != other.hasDisplayName()) return false; + if (hasDisplayName()) { + if (!getDisplayName().equals(other.getDisplayName())) return false; + } + if (hasGroupingOnly() != other.hasGroupingOnly()) return false; + if (hasGroupingOnly()) { + if (getGroupingOnly() != other.getGroupingOnly()) return false; + } + if (hasParentTaxonomyCategoryId() != other.hasParentTaxonomyCategoryId()) return false; + if (hasParentTaxonomyCategoryId()) { + if (getParentTaxonomyCategoryId() != other.getParentTaxonomyCategoryId()) return false; + } + if (hasTaxonomyType() != other.hasTaxonomyType()) return false; + if (hasTaxonomyType()) { + if (taxonomyType_ != other.taxonomyType_) return false; + } if (!getAncestorNamesList().equals(other.getAncestorNamesList())) return false; if (!getAncestorTaxonomyCategoryIdsList().equals(other.getAncestorTaxonomyCategoryIdsList())) return false; @@ -541,16 +642,26 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + TAXONOMY_CATEGORY_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTaxonomyCategoryId()); - hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - hash = (37 * hash) + GROUPING_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getGroupingOnly()); - hash = (37 * hash) + PARENT_TAXONOMY_CATEGORY_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getParentTaxonomyCategoryId()); - hash = (37 * hash) + TAXONOMY_TYPE_FIELD_NUMBER; - hash = (53 * hash) + taxonomyType_; + if (hasTaxonomyCategoryId()) { + hash = (37 * hash) + TAXONOMY_CATEGORY_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTaxonomyCategoryId()); + } + if (hasDisplayName()) { + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + } + if (hasGroupingOnly()) { + hash = (37 * hash) + GROUPING_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getGroupingOnly()); + } + if (hasParentTaxonomyCategoryId()) { + hash = (37 * hash) + PARENT_TAXONOMY_CATEGORY_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getParentTaxonomyCategoryId()); + } + if (hasTaxonomyType()) { + hash = (37 * hash) + TAXONOMY_TYPE_FIELD_NUMBER; + hash = (53 * hash) + taxonomyType_; + } if (getAncestorNamesCount() > 0) { hash = (37 * hash) + ANCESTOR_NAMES_FIELD_NUMBER; hash = (53 * hash) + getAncestorNamesList().hashCode(); @@ -746,20 +857,26 @@ private void buildPartial0(com.google.ads.admanager.v1.TaxonomyCategory result) if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.taxonomyCategoryId_ = taxonomyCategoryId_; + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.displayName_ = displayName_; + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.groupingOnly_ = groupingOnly_; + to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { result.parentTaxonomyCategoryId_ = parentTaxonomyCategoryId_; + to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000020) != 0)) { result.taxonomyType_ = taxonomyType_; + to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000040) != 0)) { ancestorNames_.makeImmutable(); @@ -769,6 +886,7 @@ private void buildPartial0(com.google.ads.admanager.v1.TaxonomyCategory result) ancestorTaxonomyCategoryIds_.makeImmutable(); result.ancestorTaxonomyCategoryIds_ = ancestorTaxonomyCategoryIds_; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -821,22 +939,22 @@ public Builder mergeFrom(com.google.ads.admanager.v1.TaxonomyCategory other) { bitField0_ |= 0x00000001; onChanged(); } - if (other.getTaxonomyCategoryId() != 0L) { + if (other.hasTaxonomyCategoryId()) { setTaxonomyCategoryId(other.getTaxonomyCategoryId()); } - if (!other.getDisplayName().isEmpty()) { + if (other.hasDisplayName()) { displayName_ = other.displayName_; bitField0_ |= 0x00000004; onChanged(); } - if (other.getGroupingOnly() != false) { + if (other.hasGroupingOnly()) { setGroupingOnly(other.getGroupingOnly()); } - if (other.getParentTaxonomyCategoryId() != 0L) { + if (other.hasParentTaxonomyCategoryId()) { setParentTaxonomyCategoryId(other.getParentTaxonomyCategoryId()); } - if (other.taxonomyType_ != 0) { - setTaxonomyTypeValue(other.getTaxonomyTypeValue()); + if (other.hasTaxonomyType()) { + setTaxonomyType(other.getTaxonomyType()); } if (!other.ancestorNames_.isEmpty()) { if (ancestorNames_.isEmpty()) { @@ -1090,7 +1208,25 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * Output only. `TaxonomyCategory` ID. * * - * int64 taxonomy_category_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional int64 taxonomy_category_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the taxonomyCategoryId field is set. + */ + @java.lang.Override + public boolean hasTaxonomyCategoryId() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. `TaxonomyCategory` ID.
+     * 
+ * + * optional int64 taxonomy_category_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The taxonomyCategoryId. */ @@ -1106,7 +1242,8 @@ public long getTaxonomyCategoryId() { * Output only. `TaxonomyCategory` ID. * * - * int64 taxonomy_category_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional int64 taxonomy_category_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The taxonomyCategoryId to set. * @return This builder for chaining. @@ -1126,7 +1263,8 @@ public Builder setTaxonomyCategoryId(long value) { * Output only. `TaxonomyCategory` ID. * * - * int64 taxonomy_category_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional int64 taxonomy_category_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ @@ -1146,7 +1284,22 @@ public Builder clearTaxonomyCategoryId() { * Output only. Display name of the `TaxonomyCategory`. * * - * string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the displayName field is set. + */ + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Output only. Display name of the `TaxonomyCategory`.
+     * 
+ * + * optional string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The displayName. */ @@ -1169,7 +1322,7 @@ public java.lang.String getDisplayName() { * Output only. Display name of the `TaxonomyCategory`. * * - * string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for displayName. */ @@ -1192,7 +1345,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * Output only. Display name of the `TaxonomyCategory`. * * - * string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The displayName to set. * @return This builder for chaining. @@ -1214,7 +1367,7 @@ public Builder setDisplayName(java.lang.String value) { * Output only. Display name of the `TaxonomyCategory`. * * - * string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -1232,7 +1385,7 @@ public Builder clearDisplayName() { * Output only. Display name of the `TaxonomyCategory`. * * - * string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for displayName to set. * @return This builder for chaining. @@ -1258,7 +1411,24 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * children. * * - * bool grouping_only = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool grouping_only = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the groupingOnly field is set. + */ + @java.lang.Override + public boolean hasGroupingOnly() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Output only. Whether this `TaxonomyCategory` only serves to group its
+     * children.
+     * 
+ * + * optional bool grouping_only = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The groupingOnly. */ @@ -1275,7 +1445,7 @@ public boolean getGroupingOnly() { * children. * * - * bool grouping_only = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool grouping_only = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The groupingOnly to set. * @return This builder for chaining. @@ -1296,7 +1466,7 @@ public Builder setGroupingOnly(boolean value) { * children. * * - * bool grouping_only = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool grouping_only = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -1317,7 +1487,27 @@ public Builder clearGroupingOnly() { * from. * * - * int64 parent_taxonomy_category_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional int64 parent_taxonomy_category_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the parentTaxonomyCategoryId field is set. + */ + @java.lang.Override + public boolean hasParentTaxonomyCategoryId() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Output only. The ID of the parent category this `TaxonomyCategory` descends
+     * from.
+     * 
+ * + * + * optional int64 parent_taxonomy_category_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The parentTaxonomyCategoryId. @@ -1335,7 +1525,8 @@ public long getParentTaxonomyCategoryId() { * from. * * - * int64 parent_taxonomy_category_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional int64 parent_taxonomy_category_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The parentTaxonomyCategoryId to set. @@ -1357,7 +1548,8 @@ public Builder setParentTaxonomyCategoryId(long value) { * from. * * - * int64 parent_taxonomy_category_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional int64 parent_taxonomy_category_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. @@ -1379,7 +1571,25 @@ public Builder clearParentTaxonomyCategoryId() { * * * - * .google.ads.admanager.v1.TaxonomyTypeEnum.TaxonomyType taxonomy_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.TaxonomyTypeEnum.TaxonomyType taxonomy_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the taxonomyType field is set. + */ + @java.lang.Override + public boolean hasTaxonomyType() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Output only. The taxonomy that this `TaxonomyCategory` belongs to.
+     * 
+ * + * + * optional .google.ads.admanager.v1.TaxonomyTypeEnum.TaxonomyType taxonomy_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for taxonomyType. @@ -1397,7 +1607,7 @@ public int getTaxonomyTypeValue() { * * * - * .google.ads.admanager.v1.TaxonomyTypeEnum.TaxonomyType taxonomy_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.TaxonomyTypeEnum.TaxonomyType taxonomy_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The enum numeric value on the wire for taxonomyType to set. @@ -1418,7 +1628,7 @@ public Builder setTaxonomyTypeValue(int value) { * * * - * .google.ads.admanager.v1.TaxonomyTypeEnum.TaxonomyType taxonomy_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.TaxonomyTypeEnum.TaxonomyType taxonomy_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The taxonomyType. @@ -1440,7 +1650,7 @@ public com.google.ads.admanager.v1.TaxonomyTypeEnum.TaxonomyType getTaxonomyType * * * - * .google.ads.admanager.v1.TaxonomyTypeEnum.TaxonomyType taxonomy_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.TaxonomyTypeEnum.TaxonomyType taxonomy_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The taxonomyType to set. @@ -1465,7 +1675,7 @@ public Builder setTaxonomyType( * * * - * .google.ads.admanager.v1.TaxonomyTypeEnum.TaxonomyType taxonomy_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.TaxonomyTypeEnum.TaxonomyType taxonomy_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TaxonomyCategoryMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TaxonomyCategoryMessagesProto.java index 59728b6f208b..4977ea89405b 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TaxonomyCategoryMessagesProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TaxonomyCategoryMessagesProto.java @@ -45,25 +45,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ory_messages.proto\022\027google.ads.admanager" + ".v1\0320google/ads/admanager/v1/taxonomy_ty" + "pe_enum.proto\032\037google/api/field_behavior" - + ".proto\032\031google/api/resource.proto\"\337\003\n\020Ta" - + "xonomyCategory\022\021\n\004name\030\001 \001(\tB\003\340A\010\022!\n\024tax" - + "onomy_category_id\030\002 \001(\003B\003\340A\003\022\031\n\014display_" - + "name\030\003 \001(\tB\003\340A\003\022\032\n\rgrouping_only\030\005 \001(\010B\003" - + "\340A\003\022(\n\033parent_taxonomy_category_id\030\006 \001(\003" - + "B\003\340A\003\022R\n\rtaxonomy_type\030\t \001(\01626.google.ad" - + "s.admanager.v1.TaxonomyTypeEnum.Taxonomy" - + "TypeB\003\340A\003\022\033\n\016ancestor_names\030\007 \003(\tB\003\340A\003\022+" - + "\n\036ancestor_taxonomy_category_ids\030\010 \003(\003B\003" - + "\340A\003:\225\001\352A\221\001\n)admanager.googleapis.com/Tax" - + "onomyCategory\022>networks/{network_code}/t" - + "axonomyCategories/{taxonomy_category}*\022t" - + "axonomyCategories2\020taxonomyCategoryB\321\001\n\033" - + "com.google.ads.admanager.v1B\035TaxonomyCat" - + "egoryMessagesProtoP\001Z@google.golang.org/" - + "genproto/googleapis/ads/admanager/v1;adm" - + "anager\252\002\027Google.Ads.AdManager.V1\312\002\027Googl" - + "e\\Ads\\AdManager\\V1\352\002\032Google::Ads::AdMana" - + "ger::V1b\006proto3" + + ".proto\032\031google/api/resource.proto\"\346\004\n\020Ta" + + "xonomyCategory\022\021\n\004name\030\001 \001(\tB\003\340A\010\022&\n\024tax" + + "onomy_category_id\030\002 \001(\003B\003\340A\003H\000\210\001\001\022\036\n\014dis" + + "play_name\030\003 \001(\tB\003\340A\003H\001\210\001\001\022\037\n\rgrouping_on" + + "ly\030\005 \001(\010B\003\340A\003H\002\210\001\001\022-\n\033parent_taxonomy_ca" + + "tegory_id\030\006 \001(\003B\003\340A\003H\003\210\001\001\022W\n\rtaxonomy_ty" + + "pe\030\t \001(\01626.google.ads.admanager.v1.Taxon" + + "omyTypeEnum.TaxonomyTypeB\003\340A\003H\004\210\001\001\022\033\n\016an" + + "cestor_names\030\007 \003(\tB\003\340A\003\022+\n\036ancestor_taxo" + + "nomy_category_ids\030\010 \003(\003B\003\340A\003:\225\001\352A\221\001\n)adm" + + "anager.googleapis.com/TaxonomyCategory\022>" + + "networks/{network_code}/taxonomyCategori" + + "es/{taxonomy_category}*\022taxonomyCategori" + + "es2\020taxonomyCategoryB\027\n\025_taxonomy_catego" + + "ry_idB\017\n\r_display_nameB\020\n\016_grouping_only" + + "B\036\n\034_parent_taxonomy_category_idB\020\n\016_tax" + + "onomy_typeB\321\001\n\033com.google.ads.admanager." + + "v1B\035TaxonomyCategoryMessagesProtoP\001Z@goo" + + "gle.golang.org/genproto/googleapis/ads/a" + + "dmanager/v1;admanager\252\002\027Google.Ads.AdMan" + + "ager.V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032Goog" + + "le::Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TaxonomyCategoryOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TaxonomyCategoryOrBuilder.java index f08970446cb4..9a7969104835 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TaxonomyCategoryOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TaxonomyCategoryOrBuilder.java @@ -59,7 +59,22 @@ public interface TaxonomyCategoryOrBuilder * Output only. `TaxonomyCategory` ID. * * - * int64 taxonomy_category_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional int64 taxonomy_category_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the taxonomyCategoryId field is set. + */ + boolean hasTaxonomyCategoryId(); + + /** + * + * + *
+   * Output only. `TaxonomyCategory` ID.
+   * 
+ * + * optional int64 taxonomy_category_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The taxonomyCategoryId. */ @@ -72,7 +87,20 @@ public interface TaxonomyCategoryOrBuilder * Output only. Display name of the `TaxonomyCategory`. * * - * string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the displayName field is set. + */ + boolean hasDisplayName(); + + /** + * + * + *
+   * Output only. Display name of the `TaxonomyCategory`.
+   * 
+ * + * optional string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The displayName. */ @@ -85,7 +113,7 @@ public interface TaxonomyCategoryOrBuilder * Output only. Display name of the `TaxonomyCategory`. * * - * string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for displayName. */ @@ -99,7 +127,21 @@ public interface TaxonomyCategoryOrBuilder * children. * * - * bool grouping_only = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool grouping_only = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the groupingOnly field is set. + */ + boolean hasGroupingOnly(); + + /** + * + * + *
+   * Output only. Whether this `TaxonomyCategory` only serves to group its
+   * children.
+   * 
+ * + * optional bool grouping_only = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The groupingOnly. */ @@ -113,7 +155,24 @@ public interface TaxonomyCategoryOrBuilder * from. * * - * int64 parent_taxonomy_category_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional int64 parent_taxonomy_category_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the parentTaxonomyCategoryId field is set. + */ + boolean hasParentTaxonomyCategoryId(); + + /** + * + * + *
+   * Output only. The ID of the parent category this `TaxonomyCategory` descends
+   * from.
+   * 
+ * + * + * optional int64 parent_taxonomy_category_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The parentTaxonomyCategoryId. @@ -128,7 +187,22 @@ public interface TaxonomyCategoryOrBuilder * * * - * .google.ads.admanager.v1.TaxonomyTypeEnum.TaxonomyType taxonomy_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.TaxonomyTypeEnum.TaxonomyType taxonomy_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the taxonomyType field is set. + */ + boolean hasTaxonomyType(); + + /** + * + * + *
+   * Output only. The taxonomy that this `TaxonomyCategory` belongs to.
+   * 
+ * + * + * optional .google.ads.admanager.v1.TaxonomyTypeEnum.TaxonomyType taxonomy_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for taxonomyType. @@ -143,7 +217,7 @@ public interface TaxonomyCategoryOrBuilder * * * - * .google.ads.admanager.v1.TaxonomyTypeEnum.TaxonomyType taxonomy_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.ads.admanager.v1.TaxonomyTypeEnum.TaxonomyType taxonomy_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The taxonomyType. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TaxonomyCategoryServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TaxonomyCategoryServiceProto.java index e3c8f35f793f..1505e6329dd6 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TaxonomyCategoryServiceProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TaxonomyCategoryServiceProto.java @@ -70,7 +70,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023taxonomy_categories\030\001" + " \003(\0132).google.ads.admanager.v1.TaxonomyCategory\022\027\n" + "\017next_page_token\030\002 \001(\t\022\022\n\n" - + "total_size\030\003 \001(\0052\262\003\n" + + "total_size\030\003 \001(\0052\336\003\n" + "\027TaxonomyCategoryService\022\260\001\n" + "\023GetTaxonomyCategory\0223.google.ads.admanager.v1.GetTaxonomyCate" + "goryRequest\032).google.ads.admanager.v1.Ta" @@ -78,12 +78,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026ListTaxonomyCategories\0226.google.ads.admana" + "ger.v1.ListTaxonomyCategoriesRequest\0327.google.ads.admanager.v1.ListTaxonomyCateg" + "oriesResponse\";\332A\006parent\202\323\344\223\002,\022*/v1/{par" - + "ent=networks/*}/taxonomyCategories\032\033\312A\030admanager.googleapis.comB\320\001\n" - + "\033com.google.ads.admanager.v1B\034TaxonomyCategoryService" - + "ProtoP\001Z@google.golang.org/genproto/goog" - + "leapis/ads/admanager/v1;admanager\252\002\027Goog" - + "le.Ads.AdManager.V1\312\002\027Google\\Ads\\AdManag" - + "er\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" + + "ent=networks/*}/taxonomyCategories\032G\312A\030a" + + "dmanager.googleapis.com\322A)https://www.googleapis.com/auth/admanagerB\320\001\n" + + "\033com.google.ads.admanager.v1B\034TaxonomyCategorySer" + + "viceProtoP\001Z@google.golang.org/genproto/" + + "googleapis/ads/admanager/v1;admanager\252\002\027" + + "Google.Ads.AdManager.V1\312\002\027Google\\Ads\\AdM" + + "anager\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -125,6 +126,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.AnnotationsProto.http); registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Team.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Team.java index 8cf86586665a..e482c820d112 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Team.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Team.java @@ -118,26 +118,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } - public static final int TEAM_ID_FIELD_NUMBER = 2; - private long teamId_ = 0L; - - /** - * - * - *
-   * Output only. The unique ID of the Team. This value is assigned by Google.
-   * Teams that are created by Google will have negative IDs.
-   * 
- * - * int64 team_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The teamId. - */ - @java.lang.Override - public long getTeamId() { - return teamId_; - } - private byte memoizedIsInitialized = -1; @java.lang.Override @@ -155,9 +135,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (teamId_ != 0L) { - output.writeInt64(2, teamId_); - } getUnknownFields().writeTo(output); } @@ -170,9 +147,6 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (teamId_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, teamId_); - } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -189,7 +163,6 @@ public boolean equals(final java.lang.Object obj) { com.google.ads.admanager.v1.Team other = (com.google.ads.admanager.v1.Team) obj; if (!getName().equals(other.getName())) return false; - if (getTeamId() != other.getTeamId()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -203,8 +176,6 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + TEAM_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTeamId()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -345,7 +316,6 @@ public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; - teamId_ = 0L; return this; } @@ -384,9 +354,6 @@ private void buildPartial0(com.google.ads.admanager.v1.Team result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.teamId_ = teamId_; - } } @java.lang.Override @@ -439,9 +406,6 @@ public Builder mergeFrom(com.google.ads.admanager.v1.Team other) { bitField0_ |= 0x00000001; onChanged(); } - if (other.getTeamId() != 0L) { - setTeamId(other.getTeamId()); - } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -474,12 +438,6 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 - case 16: - { - teamId_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -615,65 +573,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private long teamId_; - - /** - * - * - *
-     * Output only. The unique ID of the Team. This value is assigned by Google.
-     * Teams that are created by Google will have negative IDs.
-     * 
- * - * int64 team_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The teamId. - */ - @java.lang.Override - public long getTeamId() { - return teamId_; - } - - /** - * - * - *
-     * Output only. The unique ID of the Team. This value is assigned by Google.
-     * Teams that are created by Google will have negative IDs.
-     * 
- * - * int64 team_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The teamId to set. - * @return This builder for chaining. - */ - public Builder setTeamId(long value) { - - teamId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. The unique ID of the Team. This value is assigned by Google.
-     * Teams that are created by Google will have negative IDs.
-     * 
- * - * int64 team_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearTeamId() { - bitField0_ = (bitField0_ & ~0x00000002); - teamId_ = 0L; - onChanged(); - return this; - } - @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TeamMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TeamMessagesProto.java index 928aa4e814b6..d9f9f3f749ce 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TeamMessagesProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TeamMessagesProto.java @@ -44,15 +44,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n+google/ads/admanager/v1/team_messages." + "proto\022\027google.ads.admanager.v1\032\037google/a" + "pi/field_behavior.proto\032\031google/api/reso" - + "urce.proto\"\206\001\n\004Team\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\024" - + "\n\007team_id\030\002 \001(\003B\003\340A\003:U\352AR\n\035admanager.goo" - + "gleapis.com/Team\022$networks/{network_code" - + "}/teams/{team}*\005teams2\004teamB\305\001\n\033com.goog" - + "le.ads.admanager.v1B\021TeamMessagesProtoP\001" - + "Z@google.golang.org/genproto/googleapis/" - + "ads/admanager/v1;admanager\252\002\027Google.Ads." - + "AdManager.V1\312\002\027Google\\Ads\\AdManager\\V1\352\002" - + "\032Google::Ads::AdManager::V1b\006proto3" + + "urce.proto\"p\n\004Team\022\021\n\004name\030\001 \001(\tB\003\340A\010:U\352" + + "AR\n\035admanager.googleapis.com/Team\022$netwo" + + "rks/{network_code}/teams/{team}*\005teams2\004" + + "teamB\305\001\n\033com.google.ads.admanager.v1B\021Te" + + "amMessagesProtoP\001Z@google.golang.org/gen" + + "proto/googleapis/ads/admanager/v1;admana" + + "ger\252\002\027Google.Ads.AdManager.V1\312\002\027Google\\A" + + "ds\\AdManager\\V1\352\002\032Google::Ads::AdManager" + + "::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -67,7 +67,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_admanager_v1_Team_descriptor, new java.lang.String[] { - "Name", "TeamId", + "Name", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TeamOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TeamOrBuilder.java index c450b3004a0c..879fcb7af326 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TeamOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TeamOrBuilder.java @@ -51,18 +51,4 @@ public interface TeamOrBuilder * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Output only. The unique ID of the Team. This value is assigned by Google.
-   * Teams that are created by Google will have negative IDs.
-   * 
- * - * int64 team_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The teamId. - */ - long getTeamId(); } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TechnologyTargeting.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TechnologyTargeting.java new file mode 100644 index 000000000000..59f611a9153e --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TechnologyTargeting.java @@ -0,0 +1,1401 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Various types of technology targeting expressed by child messages are
+ * applied with logical AND.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.TechnologyTargeting} + */ +public final class TechnologyTargeting extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.TechnologyTargeting) + TechnologyTargetingOrBuilder { + private static final long serialVersionUID = 0L; + + // Use TechnologyTargeting.newBuilder() to construct. + private TechnologyTargeting(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TechnologyTargeting() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TechnologyTargeting(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_TechnologyTargeting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_TechnologyTargeting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.TechnologyTargeting.class, + com.google.ads.admanager.v1.TechnologyTargeting.Builder.class); + } + + private int bitField0_; + public static final int BANDWIDTH_TARGETING_FIELD_NUMBER = 3; + private com.google.ads.admanager.v1.BandwidthTargeting bandwidthTargeting_; + + /** + * + * + *
+   * Optional. Bandwidth targeting dimension.
+   * 
+ * + * + * .google.ads.admanager.v1.BandwidthTargeting bandwidth_targeting = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the bandwidthTargeting field is set. + */ + @java.lang.Override + public boolean hasBandwidthTargeting() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Bandwidth targeting dimension.
+   * 
+ * + * + * .google.ads.admanager.v1.BandwidthTargeting bandwidth_targeting = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bandwidthTargeting. + */ + @java.lang.Override + public com.google.ads.admanager.v1.BandwidthTargeting getBandwidthTargeting() { + return bandwidthTargeting_ == null + ? com.google.ads.admanager.v1.BandwidthTargeting.getDefaultInstance() + : bandwidthTargeting_; + } + + /** + * + * + *
+   * Optional. Bandwidth targeting dimension.
+   * 
+ * + * + * .google.ads.admanager.v1.BandwidthTargeting bandwidth_targeting = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.BandwidthTargetingOrBuilder getBandwidthTargetingOrBuilder() { + return bandwidthTargeting_ == null + ? com.google.ads.admanager.v1.BandwidthTargeting.getDefaultInstance() + : bandwidthTargeting_; + } + + public static final int DEVICE_CATEGORY_TARGETING_FIELD_NUMBER = 1; + private com.google.ads.admanager.v1.DeviceCategoryTargeting deviceCategoryTargeting_; + + /** + * + * + *
+   * Optional. Device category targeting dimension.
+   * 
+ * + * + * .google.ads.admanager.v1.DeviceCategoryTargeting device_category_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the deviceCategoryTargeting field is set. + */ + @java.lang.Override + public boolean hasDeviceCategoryTargeting() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. Device category targeting dimension.
+   * 
+ * + * + * .google.ads.admanager.v1.DeviceCategoryTargeting device_category_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deviceCategoryTargeting. + */ + @java.lang.Override + public com.google.ads.admanager.v1.DeviceCategoryTargeting getDeviceCategoryTargeting() { + return deviceCategoryTargeting_ == null + ? com.google.ads.admanager.v1.DeviceCategoryTargeting.getDefaultInstance() + : deviceCategoryTargeting_; + } + + /** + * + * + *
+   * Optional. Device category targeting dimension.
+   * 
+ * + * + * .google.ads.admanager.v1.DeviceCategoryTargeting device_category_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.DeviceCategoryTargetingOrBuilder + getDeviceCategoryTargetingOrBuilder() { + return deviceCategoryTargeting_ == null + ? com.google.ads.admanager.v1.DeviceCategoryTargeting.getDefaultInstance() + : deviceCategoryTargeting_; + } + + public static final int OPERATING_SYSTEM_TARGETING_FIELD_NUMBER = 2; + private com.google.ads.admanager.v1.OperatingSystemTargeting operatingSystemTargeting_; + + /** + * + * + *
+   * Optional. Operating system targeting dimension.
+   * 
+ * + * + * .google.ads.admanager.v1.OperatingSystemTargeting operating_system_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the operatingSystemTargeting field is set. + */ + @java.lang.Override + public boolean hasOperatingSystemTargeting() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Optional. Operating system targeting dimension.
+   * 
+ * + * + * .google.ads.admanager.v1.OperatingSystemTargeting operating_system_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The operatingSystemTargeting. + */ + @java.lang.Override + public com.google.ads.admanager.v1.OperatingSystemTargeting getOperatingSystemTargeting() { + return operatingSystemTargeting_ == null + ? com.google.ads.admanager.v1.OperatingSystemTargeting.getDefaultInstance() + : operatingSystemTargeting_; + } + + /** + * + * + *
+   * Optional. Operating system targeting dimension.
+   * 
+ * + * + * .google.ads.admanager.v1.OperatingSystemTargeting operating_system_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.OperatingSystemTargetingOrBuilder + getOperatingSystemTargetingOrBuilder() { + return operatingSystemTargeting_ == null + ? com.google.ads.admanager.v1.OperatingSystemTargeting.getDefaultInstance() + : operatingSystemTargeting_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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_ & 0x00000002) != 0)) { + output.writeMessage(1, getDeviceCategoryTargeting()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(2, getOperatingSystemTargeting()); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getBandwidthTargeting()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDeviceCategoryTargeting()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getOperatingSystemTargeting()); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBandwidthTargeting()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.admanager.v1.TechnologyTargeting)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.TechnologyTargeting other = + (com.google.ads.admanager.v1.TechnologyTargeting) obj; + + if (hasBandwidthTargeting() != other.hasBandwidthTargeting()) return false; + if (hasBandwidthTargeting()) { + if (!getBandwidthTargeting().equals(other.getBandwidthTargeting())) return false; + } + if (hasDeviceCategoryTargeting() != other.hasDeviceCategoryTargeting()) return false; + if (hasDeviceCategoryTargeting()) { + if (!getDeviceCategoryTargeting().equals(other.getDeviceCategoryTargeting())) return false; + } + if (hasOperatingSystemTargeting() != other.hasOperatingSystemTargeting()) return false; + if (hasOperatingSystemTargeting()) { + if (!getOperatingSystemTargeting().equals(other.getOperatingSystemTargeting())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasBandwidthTargeting()) { + hash = (37 * hash) + BANDWIDTH_TARGETING_FIELD_NUMBER; + hash = (53 * hash) + getBandwidthTargeting().hashCode(); + } + if (hasDeviceCategoryTargeting()) { + hash = (37 * hash) + DEVICE_CATEGORY_TARGETING_FIELD_NUMBER; + hash = (53 * hash) + getDeviceCategoryTargeting().hashCode(); + } + if (hasOperatingSystemTargeting()) { + hash = (37 * hash) + OPERATING_SYSTEM_TARGETING_FIELD_NUMBER; + hash = (53 * hash) + getOperatingSystemTargeting().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.TechnologyTargeting parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.TechnologyTargeting 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.admanager.v1.TechnologyTargeting parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.TechnologyTargeting parseFrom( + 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.admanager.v1.TechnologyTargeting parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.TechnologyTargeting parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.TechnologyTargeting parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.TechnologyTargeting parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.TechnologyTargeting parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.TechnologyTargeting parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.TechnologyTargeting parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.TechnologyTargeting parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.TechnologyTargeting prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Various types of technology targeting expressed by child messages are
+   * applied with logical AND.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.TechnologyTargeting} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.TechnologyTargeting) + com.google.ads.admanager.v1.TechnologyTargetingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_TechnologyTargeting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_TechnologyTargeting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.TechnologyTargeting.class, + com.google.ads.admanager.v1.TechnologyTargeting.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.TechnologyTargeting.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getBandwidthTargetingFieldBuilder(); + getDeviceCategoryTargetingFieldBuilder(); + getOperatingSystemTargetingFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + bandwidthTargeting_ = null; + if (bandwidthTargetingBuilder_ != null) { + bandwidthTargetingBuilder_.dispose(); + bandwidthTargetingBuilder_ = null; + } + deviceCategoryTargeting_ = null; + if (deviceCategoryTargetingBuilder_ != null) { + deviceCategoryTargetingBuilder_.dispose(); + deviceCategoryTargetingBuilder_ = null; + } + operatingSystemTargeting_ = null; + if (operatingSystemTargetingBuilder_ != null) { + operatingSystemTargetingBuilder_.dispose(); + operatingSystemTargetingBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_TechnologyTargeting_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.TechnologyTargeting getDefaultInstanceForType() { + return com.google.ads.admanager.v1.TechnologyTargeting.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.TechnologyTargeting build() { + com.google.ads.admanager.v1.TechnologyTargeting result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.TechnologyTargeting buildPartial() { + com.google.ads.admanager.v1.TechnologyTargeting result = + new com.google.ads.admanager.v1.TechnologyTargeting(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.TechnologyTargeting result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.bandwidthTargeting_ = + bandwidthTargetingBuilder_ == null + ? bandwidthTargeting_ + : bandwidthTargetingBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.deviceCategoryTargeting_ = + deviceCategoryTargetingBuilder_ == null + ? deviceCategoryTargeting_ + : deviceCategoryTargetingBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.operatingSystemTargeting_ = + operatingSystemTargetingBuilder_ == null + ? operatingSystemTargeting_ + : operatingSystemTargetingBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.TechnologyTargeting) { + return mergeFrom((com.google.ads.admanager.v1.TechnologyTargeting) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.TechnologyTargeting other) { + if (other == com.google.ads.admanager.v1.TechnologyTargeting.getDefaultInstance()) + return this; + if (other.hasBandwidthTargeting()) { + mergeBandwidthTargeting(other.getBandwidthTargeting()); + } + if (other.hasDeviceCategoryTargeting()) { + mergeDeviceCategoryTargeting(other.getDeviceCategoryTargeting()); + } + if (other.hasOperatingSystemTargeting()) { + mergeOperatingSystemTargeting(other.getOperatingSystemTargeting()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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( + getDeviceCategoryTargetingFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + input.readMessage( + getOperatingSystemTargetingFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: + { + input.readMessage( + getBandwidthTargetingFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + 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 com.google.ads.admanager.v1.BandwidthTargeting bandwidthTargeting_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.BandwidthTargeting, + com.google.ads.admanager.v1.BandwidthTargeting.Builder, + com.google.ads.admanager.v1.BandwidthTargetingOrBuilder> + bandwidthTargetingBuilder_; + + /** + * + * + *
+     * Optional. Bandwidth targeting dimension.
+     * 
+ * + * + * .google.ads.admanager.v1.BandwidthTargeting bandwidth_targeting = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the bandwidthTargeting field is set. + */ + public boolean hasBandwidthTargeting() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. Bandwidth targeting dimension.
+     * 
+ * + * + * .google.ads.admanager.v1.BandwidthTargeting bandwidth_targeting = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bandwidthTargeting. + */ + public com.google.ads.admanager.v1.BandwidthTargeting getBandwidthTargeting() { + if (bandwidthTargetingBuilder_ == null) { + return bandwidthTargeting_ == null + ? com.google.ads.admanager.v1.BandwidthTargeting.getDefaultInstance() + : bandwidthTargeting_; + } else { + return bandwidthTargetingBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Bandwidth targeting dimension.
+     * 
+ * + * + * .google.ads.admanager.v1.BandwidthTargeting bandwidth_targeting = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBandwidthTargeting(com.google.ads.admanager.v1.BandwidthTargeting value) { + if (bandwidthTargetingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + bandwidthTargeting_ = value; + } else { + bandwidthTargetingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Bandwidth targeting dimension.
+     * 
+ * + * + * .google.ads.admanager.v1.BandwidthTargeting bandwidth_targeting = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBandwidthTargeting( + com.google.ads.admanager.v1.BandwidthTargeting.Builder builderForValue) { + if (bandwidthTargetingBuilder_ == null) { + bandwidthTargeting_ = builderForValue.build(); + } else { + bandwidthTargetingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Bandwidth targeting dimension.
+     * 
+ * + * + * .google.ads.admanager.v1.BandwidthTargeting bandwidth_targeting = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeBandwidthTargeting(com.google.ads.admanager.v1.BandwidthTargeting value) { + if (bandwidthTargetingBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && bandwidthTargeting_ != null + && bandwidthTargeting_ + != com.google.ads.admanager.v1.BandwidthTargeting.getDefaultInstance()) { + getBandwidthTargetingBuilder().mergeFrom(value); + } else { + bandwidthTargeting_ = value; + } + } else { + bandwidthTargetingBuilder_.mergeFrom(value); + } + if (bandwidthTargeting_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Bandwidth targeting dimension.
+     * 
+ * + * + * .google.ads.admanager.v1.BandwidthTargeting bandwidth_targeting = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearBandwidthTargeting() { + bitField0_ = (bitField0_ & ~0x00000001); + bandwidthTargeting_ = null; + if (bandwidthTargetingBuilder_ != null) { + bandwidthTargetingBuilder_.dispose(); + bandwidthTargetingBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Bandwidth targeting dimension.
+     * 
+ * + * + * .google.ads.admanager.v1.BandwidthTargeting bandwidth_targeting = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.BandwidthTargeting.Builder getBandwidthTargetingBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getBandwidthTargetingFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Bandwidth targeting dimension.
+     * 
+ * + * + * .google.ads.admanager.v1.BandwidthTargeting bandwidth_targeting = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.BandwidthTargetingOrBuilder + getBandwidthTargetingOrBuilder() { + if (bandwidthTargetingBuilder_ != null) { + return bandwidthTargetingBuilder_.getMessageOrBuilder(); + } else { + return bandwidthTargeting_ == null + ? com.google.ads.admanager.v1.BandwidthTargeting.getDefaultInstance() + : bandwidthTargeting_; + } + } + + /** + * + * + *
+     * Optional. Bandwidth targeting dimension.
+     * 
+ * + * + * .google.ads.admanager.v1.BandwidthTargeting bandwidth_targeting = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.BandwidthTargeting, + com.google.ads.admanager.v1.BandwidthTargeting.Builder, + com.google.ads.admanager.v1.BandwidthTargetingOrBuilder> + getBandwidthTargetingFieldBuilder() { + if (bandwidthTargetingBuilder_ == null) { + bandwidthTargetingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.BandwidthTargeting, + com.google.ads.admanager.v1.BandwidthTargeting.Builder, + com.google.ads.admanager.v1.BandwidthTargetingOrBuilder>( + getBandwidthTargeting(), getParentForChildren(), isClean()); + bandwidthTargeting_ = null; + } + return bandwidthTargetingBuilder_; + } + + private com.google.ads.admanager.v1.DeviceCategoryTargeting deviceCategoryTargeting_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.DeviceCategoryTargeting, + com.google.ads.admanager.v1.DeviceCategoryTargeting.Builder, + com.google.ads.admanager.v1.DeviceCategoryTargetingOrBuilder> + deviceCategoryTargetingBuilder_; + + /** + * + * + *
+     * Optional. Device category targeting dimension.
+     * 
+ * + * + * .google.ads.admanager.v1.DeviceCategoryTargeting device_category_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the deviceCategoryTargeting field is set. + */ + public boolean hasDeviceCategoryTargeting() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. Device category targeting dimension.
+     * 
+ * + * + * .google.ads.admanager.v1.DeviceCategoryTargeting device_category_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deviceCategoryTargeting. + */ + public com.google.ads.admanager.v1.DeviceCategoryTargeting getDeviceCategoryTargeting() { + if (deviceCategoryTargetingBuilder_ == null) { + return deviceCategoryTargeting_ == null + ? com.google.ads.admanager.v1.DeviceCategoryTargeting.getDefaultInstance() + : deviceCategoryTargeting_; + } else { + return deviceCategoryTargetingBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Device category targeting dimension.
+     * 
+ * + * + * .google.ads.admanager.v1.DeviceCategoryTargeting device_category_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDeviceCategoryTargeting( + com.google.ads.admanager.v1.DeviceCategoryTargeting value) { + if (deviceCategoryTargetingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deviceCategoryTargeting_ = value; + } else { + deviceCategoryTargetingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Device category targeting dimension.
+     * 
+ * + * + * .google.ads.admanager.v1.DeviceCategoryTargeting device_category_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDeviceCategoryTargeting( + com.google.ads.admanager.v1.DeviceCategoryTargeting.Builder builderForValue) { + if (deviceCategoryTargetingBuilder_ == null) { + deviceCategoryTargeting_ = builderForValue.build(); + } else { + deviceCategoryTargetingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Device category targeting dimension.
+     * 
+ * + * + * .google.ads.admanager.v1.DeviceCategoryTargeting device_category_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDeviceCategoryTargeting( + com.google.ads.admanager.v1.DeviceCategoryTargeting value) { + if (deviceCategoryTargetingBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && deviceCategoryTargeting_ != null + && deviceCategoryTargeting_ + != com.google.ads.admanager.v1.DeviceCategoryTargeting.getDefaultInstance()) { + getDeviceCategoryTargetingBuilder().mergeFrom(value); + } else { + deviceCategoryTargeting_ = value; + } + } else { + deviceCategoryTargetingBuilder_.mergeFrom(value); + } + if (deviceCategoryTargeting_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Device category targeting dimension.
+     * 
+ * + * + * .google.ads.admanager.v1.DeviceCategoryTargeting device_category_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDeviceCategoryTargeting() { + bitField0_ = (bitField0_ & ~0x00000002); + deviceCategoryTargeting_ = null; + if (deviceCategoryTargetingBuilder_ != null) { + deviceCategoryTargetingBuilder_.dispose(); + deviceCategoryTargetingBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Device category targeting dimension.
+     * 
+ * + * + * .google.ads.admanager.v1.DeviceCategoryTargeting device_category_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.DeviceCategoryTargeting.Builder + getDeviceCategoryTargetingBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getDeviceCategoryTargetingFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Device category targeting dimension.
+     * 
+ * + * + * .google.ads.admanager.v1.DeviceCategoryTargeting device_category_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.DeviceCategoryTargetingOrBuilder + getDeviceCategoryTargetingOrBuilder() { + if (deviceCategoryTargetingBuilder_ != null) { + return deviceCategoryTargetingBuilder_.getMessageOrBuilder(); + } else { + return deviceCategoryTargeting_ == null + ? com.google.ads.admanager.v1.DeviceCategoryTargeting.getDefaultInstance() + : deviceCategoryTargeting_; + } + } + + /** + * + * + *
+     * Optional. Device category targeting dimension.
+     * 
+ * + * + * .google.ads.admanager.v1.DeviceCategoryTargeting device_category_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.DeviceCategoryTargeting, + com.google.ads.admanager.v1.DeviceCategoryTargeting.Builder, + com.google.ads.admanager.v1.DeviceCategoryTargetingOrBuilder> + getDeviceCategoryTargetingFieldBuilder() { + if (deviceCategoryTargetingBuilder_ == null) { + deviceCategoryTargetingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.DeviceCategoryTargeting, + com.google.ads.admanager.v1.DeviceCategoryTargeting.Builder, + com.google.ads.admanager.v1.DeviceCategoryTargetingOrBuilder>( + getDeviceCategoryTargeting(), getParentForChildren(), isClean()); + deviceCategoryTargeting_ = null; + } + return deviceCategoryTargetingBuilder_; + } + + private com.google.ads.admanager.v1.OperatingSystemTargeting operatingSystemTargeting_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.OperatingSystemTargeting, + com.google.ads.admanager.v1.OperatingSystemTargeting.Builder, + com.google.ads.admanager.v1.OperatingSystemTargetingOrBuilder> + operatingSystemTargetingBuilder_; + + /** + * + * + *
+     * Optional. Operating system targeting dimension.
+     * 
+ * + * + * .google.ads.admanager.v1.OperatingSystemTargeting operating_system_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the operatingSystemTargeting field is set. + */ + public boolean hasOperatingSystemTargeting() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Optional. Operating system targeting dimension.
+     * 
+ * + * + * .google.ads.admanager.v1.OperatingSystemTargeting operating_system_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The operatingSystemTargeting. + */ + public com.google.ads.admanager.v1.OperatingSystemTargeting getOperatingSystemTargeting() { + if (operatingSystemTargetingBuilder_ == null) { + return operatingSystemTargeting_ == null + ? com.google.ads.admanager.v1.OperatingSystemTargeting.getDefaultInstance() + : operatingSystemTargeting_; + } else { + return operatingSystemTargetingBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Operating system targeting dimension.
+     * 
+ * + * + * .google.ads.admanager.v1.OperatingSystemTargeting operating_system_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOperatingSystemTargeting( + com.google.ads.admanager.v1.OperatingSystemTargeting value) { + if (operatingSystemTargetingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + operatingSystemTargeting_ = value; + } else { + operatingSystemTargetingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Operating system targeting dimension.
+     * 
+ * + * + * .google.ads.admanager.v1.OperatingSystemTargeting operating_system_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOperatingSystemTargeting( + com.google.ads.admanager.v1.OperatingSystemTargeting.Builder builderForValue) { + if (operatingSystemTargetingBuilder_ == null) { + operatingSystemTargeting_ = builderForValue.build(); + } else { + operatingSystemTargetingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Operating system targeting dimension.
+     * 
+ * + * + * .google.ads.admanager.v1.OperatingSystemTargeting operating_system_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeOperatingSystemTargeting( + com.google.ads.admanager.v1.OperatingSystemTargeting value) { + if (operatingSystemTargetingBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && operatingSystemTargeting_ != null + && operatingSystemTargeting_ + != com.google.ads.admanager.v1.OperatingSystemTargeting.getDefaultInstance()) { + getOperatingSystemTargetingBuilder().mergeFrom(value); + } else { + operatingSystemTargeting_ = value; + } + } else { + operatingSystemTargetingBuilder_.mergeFrom(value); + } + if (operatingSystemTargeting_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Operating system targeting dimension.
+     * 
+ * + * + * .google.ads.admanager.v1.OperatingSystemTargeting operating_system_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearOperatingSystemTargeting() { + bitField0_ = (bitField0_ & ~0x00000004); + operatingSystemTargeting_ = null; + if (operatingSystemTargetingBuilder_ != null) { + operatingSystemTargetingBuilder_.dispose(); + operatingSystemTargetingBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Operating system targeting dimension.
+     * 
+ * + * + * .google.ads.admanager.v1.OperatingSystemTargeting operating_system_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.OperatingSystemTargeting.Builder + getOperatingSystemTargetingBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getOperatingSystemTargetingFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Operating system targeting dimension.
+     * 
+ * + * + * .google.ads.admanager.v1.OperatingSystemTargeting operating_system_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.OperatingSystemTargetingOrBuilder + getOperatingSystemTargetingOrBuilder() { + if (operatingSystemTargetingBuilder_ != null) { + return operatingSystemTargetingBuilder_.getMessageOrBuilder(); + } else { + return operatingSystemTargeting_ == null + ? com.google.ads.admanager.v1.OperatingSystemTargeting.getDefaultInstance() + : operatingSystemTargeting_; + } + } + + /** + * + * + *
+     * Optional. Operating system targeting dimension.
+     * 
+ * + * + * .google.ads.admanager.v1.OperatingSystemTargeting operating_system_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.OperatingSystemTargeting, + com.google.ads.admanager.v1.OperatingSystemTargeting.Builder, + com.google.ads.admanager.v1.OperatingSystemTargetingOrBuilder> + getOperatingSystemTargetingFieldBuilder() { + if (operatingSystemTargetingBuilder_ == null) { + operatingSystemTargetingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.OperatingSystemTargeting, + com.google.ads.admanager.v1.OperatingSystemTargeting.Builder, + com.google.ads.admanager.v1.OperatingSystemTargetingOrBuilder>( + getOperatingSystemTargeting(), getParentForChildren(), isClean()); + operatingSystemTargeting_ = null; + } + return operatingSystemTargetingBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.TechnologyTargeting) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.TechnologyTargeting) + private static final com.google.ads.admanager.v1.TechnologyTargeting DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.TechnologyTargeting(); + } + + public static com.google.ads.admanager.v1.TechnologyTargeting getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TechnologyTargeting parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.TechnologyTargeting getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TechnologyTargetingOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TechnologyTargetingOrBuilder.java new file mode 100644 index 000000000000..29651d1f9d23 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TechnologyTargetingOrBuilder.java @@ -0,0 +1,157 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface TechnologyTargetingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.TechnologyTargeting) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Bandwidth targeting dimension.
+   * 
+ * + * + * .google.ads.admanager.v1.BandwidthTargeting bandwidth_targeting = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the bandwidthTargeting field is set. + */ + boolean hasBandwidthTargeting(); + + /** + * + * + *
+   * Optional. Bandwidth targeting dimension.
+   * 
+ * + * + * .google.ads.admanager.v1.BandwidthTargeting bandwidth_targeting = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bandwidthTargeting. + */ + com.google.ads.admanager.v1.BandwidthTargeting getBandwidthTargeting(); + + /** + * + * + *
+   * Optional. Bandwidth targeting dimension.
+   * 
+ * + * + * .google.ads.admanager.v1.BandwidthTargeting bandwidth_targeting = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.admanager.v1.BandwidthTargetingOrBuilder getBandwidthTargetingOrBuilder(); + + /** + * + * + *
+   * Optional. Device category targeting dimension.
+   * 
+ * + * + * .google.ads.admanager.v1.DeviceCategoryTargeting device_category_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the deviceCategoryTargeting field is set. + */ + boolean hasDeviceCategoryTargeting(); + + /** + * + * + *
+   * Optional. Device category targeting dimension.
+   * 
+ * + * + * .google.ads.admanager.v1.DeviceCategoryTargeting device_category_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deviceCategoryTargeting. + */ + com.google.ads.admanager.v1.DeviceCategoryTargeting getDeviceCategoryTargeting(); + + /** + * + * + *
+   * Optional. Device category targeting dimension.
+   * 
+ * + * + * .google.ads.admanager.v1.DeviceCategoryTargeting device_category_targeting = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.admanager.v1.DeviceCategoryTargetingOrBuilder + getDeviceCategoryTargetingOrBuilder(); + + /** + * + * + *
+   * Optional. Operating system targeting dimension.
+   * 
+ * + * + * .google.ads.admanager.v1.OperatingSystemTargeting operating_system_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the operatingSystemTargeting field is set. + */ + boolean hasOperatingSystemTargeting(); + + /** + * + * + *
+   * Optional. Operating system targeting dimension.
+   * 
+ * + * + * .google.ads.admanager.v1.OperatingSystemTargeting operating_system_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The operatingSystemTargeting. + */ + com.google.ads.admanager.v1.OperatingSystemTargeting getOperatingSystemTargeting(); + + /** + * + * + *
+   * Optional. Operating system targeting dimension.
+   * 
+ * + * + * .google.ads.admanager.v1.OperatingSystemTargeting operating_system_targeting = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.admanager.v1.OperatingSystemTargetingOrBuilder + getOperatingSystemTargetingOrBuilder(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdateAdBreakRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdateAdBreakRequest.java new file mode 100644 index 000000000000..c47fb2b22723 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdateAdBreakRequest.java @@ -0,0 +1,1064 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/ad_break_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Request object for `UpdateAdBreak` method.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.UpdateAdBreakRequest} + */ +public final class UpdateAdBreakRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.UpdateAdBreakRequest) + UpdateAdBreakRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UpdateAdBreakRequest.newBuilder() to construct. + private UpdateAdBreakRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateAdBreakRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateAdBreakRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdBreakServiceProto + .internal_static_google_ads_admanager_v1_UpdateAdBreakRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdBreakServiceProto + .internal_static_google_ads_admanager_v1_UpdateAdBreakRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.UpdateAdBreakRequest.class, + com.google.ads.admanager.v1.UpdateAdBreakRequest.Builder.class); + } + + private int bitField0_; + public static final int AD_BREAK_FIELD_NUMBER = 1; + private com.google.ads.admanager.v1.AdBreak adBreak_; + + /** + * + * + *
+   * Required. The `AdBreak` to update.
+   *
+   * The `AdBreak`'s `name` is used to identify the `AdBreak` to update.
+   * 
+ * + * .google.ads.admanager.v1.AdBreak ad_break = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the adBreak field is set. + */ + @java.lang.Override + public boolean hasAdBreak() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The `AdBreak` to update.
+   *
+   * The `AdBreak`'s `name` is used to identify the `AdBreak` to update.
+   * 
+ * + * .google.ads.admanager.v1.AdBreak ad_break = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The adBreak. + */ + @java.lang.Override + public com.google.ads.admanager.v1.AdBreak getAdBreak() { + return adBreak_ == null ? com.google.ads.admanager.v1.AdBreak.getDefaultInstance() : adBreak_; + } + + /** + * + * + *
+   * Required. The `AdBreak` to update.
+   *
+   * The `AdBreak`'s `name` is used to identify the `AdBreak` to update.
+   * 
+ * + * .google.ads.admanager.v1.AdBreak ad_break = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.AdBreakOrBuilder getAdBreakOrBuilder() { + return adBreak_ == null ? com.google.ads.admanager.v1.AdBreak.getDefaultInstance() : adBreak_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
+   * Required. The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Required. The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
+   * Required. The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getAdBreak()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + 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, getAdBreak()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.ads.admanager.v1.UpdateAdBreakRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.UpdateAdBreakRequest other = + (com.google.ads.admanager.v1.UpdateAdBreakRequest) obj; + + if (hasAdBreak() != other.hasAdBreak()) return false; + if (hasAdBreak()) { + if (!getAdBreak().equals(other.getAdBreak())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAdBreak()) { + hash = (37 * hash) + AD_BREAK_FIELD_NUMBER; + hash = (53 * hash) + getAdBreak().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.UpdateAdBreakRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.UpdateAdBreakRequest 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.admanager.v1.UpdateAdBreakRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.UpdateAdBreakRequest parseFrom( + 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.admanager.v1.UpdateAdBreakRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.UpdateAdBreakRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.UpdateAdBreakRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.UpdateAdBreakRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.UpdateAdBreakRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.UpdateAdBreakRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.UpdateAdBreakRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.UpdateAdBreakRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.UpdateAdBreakRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request object for `UpdateAdBreak` method.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.UpdateAdBreakRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.UpdateAdBreakRequest) + com.google.ads.admanager.v1.UpdateAdBreakRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdBreakServiceProto + .internal_static_google_ads_admanager_v1_UpdateAdBreakRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdBreakServiceProto + .internal_static_google_ads_admanager_v1_UpdateAdBreakRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.UpdateAdBreakRequest.class, + com.google.ads.admanager.v1.UpdateAdBreakRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.UpdateAdBreakRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getAdBreakFieldBuilder(); + getUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + adBreak_ = null; + if (adBreakBuilder_ != null) { + adBreakBuilder_.dispose(); + adBreakBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.AdBreakServiceProto + .internal_static_google_ads_admanager_v1_UpdateAdBreakRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.UpdateAdBreakRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.UpdateAdBreakRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.UpdateAdBreakRequest build() { + com.google.ads.admanager.v1.UpdateAdBreakRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.UpdateAdBreakRequest buildPartial() { + com.google.ads.admanager.v1.UpdateAdBreakRequest result = + new com.google.ads.admanager.v1.UpdateAdBreakRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.UpdateAdBreakRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.adBreak_ = adBreakBuilder_ == null ? adBreak_ : adBreakBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.UpdateAdBreakRequest) { + return mergeFrom((com.google.ads.admanager.v1.UpdateAdBreakRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.UpdateAdBreakRequest other) { + if (other == com.google.ads.admanager.v1.UpdateAdBreakRequest.getDefaultInstance()) + return this; + if (other.hasAdBreak()) { + mergeAdBreak(other.getAdBreak()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getAdBreakFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.ads.admanager.v1.AdBreak adBreak_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.AdBreak, + com.google.ads.admanager.v1.AdBreak.Builder, + com.google.ads.admanager.v1.AdBreakOrBuilder> + adBreakBuilder_; + + /** + * + * + *
+     * Required. The `AdBreak` to update.
+     *
+     * The `AdBreak`'s `name` is used to identify the `AdBreak` to update.
+     * 
+ * + * + * .google.ads.admanager.v1.AdBreak ad_break = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the adBreak field is set. + */ + public boolean hasAdBreak() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. The `AdBreak` to update.
+     *
+     * The `AdBreak`'s `name` is used to identify the `AdBreak` to update.
+     * 
+ * + * + * .google.ads.admanager.v1.AdBreak ad_break = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The adBreak. + */ + public com.google.ads.admanager.v1.AdBreak getAdBreak() { + if (adBreakBuilder_ == null) { + return adBreak_ == null + ? com.google.ads.admanager.v1.AdBreak.getDefaultInstance() + : adBreak_; + } else { + return adBreakBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The `AdBreak` to update.
+     *
+     * The `AdBreak`'s `name` is used to identify the `AdBreak` to update.
+     * 
+ * + * + * .google.ads.admanager.v1.AdBreak ad_break = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAdBreak(com.google.ads.admanager.v1.AdBreak value) { + if (adBreakBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + adBreak_ = value; + } else { + adBreakBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The `AdBreak` to update.
+     *
+     * The `AdBreak`'s `name` is used to identify the `AdBreak` to update.
+     * 
+ * + * + * .google.ads.admanager.v1.AdBreak ad_break = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAdBreak(com.google.ads.admanager.v1.AdBreak.Builder builderForValue) { + if (adBreakBuilder_ == null) { + adBreak_ = builderForValue.build(); + } else { + adBreakBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The `AdBreak` to update.
+     *
+     * The `AdBreak`'s `name` is used to identify the `AdBreak` to update.
+     * 
+ * + * + * .google.ads.admanager.v1.AdBreak ad_break = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAdBreak(com.google.ads.admanager.v1.AdBreak value) { + if (adBreakBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && adBreak_ != null + && adBreak_ != com.google.ads.admanager.v1.AdBreak.getDefaultInstance()) { + getAdBreakBuilder().mergeFrom(value); + } else { + adBreak_ = value; + } + } else { + adBreakBuilder_.mergeFrom(value); + } + if (adBreak_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The `AdBreak` to update.
+     *
+     * The `AdBreak`'s `name` is used to identify the `AdBreak` to update.
+     * 
+ * + * + * .google.ads.admanager.v1.AdBreak ad_break = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAdBreak() { + bitField0_ = (bitField0_ & ~0x00000001); + adBreak_ = null; + if (adBreakBuilder_ != null) { + adBreakBuilder_.dispose(); + adBreakBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The `AdBreak` to update.
+     *
+     * The `AdBreak`'s `name` is used to identify the `AdBreak` to update.
+     * 
+ * + * + * .google.ads.admanager.v1.AdBreak ad_break = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.AdBreak.Builder getAdBreakBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getAdBreakFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The `AdBreak` to update.
+     *
+     * The `AdBreak`'s `name` is used to identify the `AdBreak` to update.
+     * 
+ * + * + * .google.ads.admanager.v1.AdBreak ad_break = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.AdBreakOrBuilder getAdBreakOrBuilder() { + if (adBreakBuilder_ != null) { + return adBreakBuilder_.getMessageOrBuilder(); + } else { + return adBreak_ == null + ? com.google.ads.admanager.v1.AdBreak.getDefaultInstance() + : adBreak_; + } + } + + /** + * + * + *
+     * Required. The `AdBreak` to update.
+     *
+     * The `AdBreak`'s `name` is used to identify the `AdBreak` to update.
+     * 
+ * + * + * .google.ads.admanager.v1.AdBreak ad_break = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.AdBreak, + com.google.ads.admanager.v1.AdBreak.Builder, + com.google.ads.admanager.v1.AdBreakOrBuilder> + getAdBreakFieldBuilder() { + if (adBreakBuilder_ == null) { + adBreakBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.AdBreak, + com.google.ads.admanager.v1.AdBreak.Builder, + com.google.ads.admanager.v1.AdBreakOrBuilder>( + getAdBreak(), getParentForChildren(), isClean()); + adBreak_ = null; + } + return adBreakBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.UpdateAdBreakRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.UpdateAdBreakRequest) + private static final com.google.ads.admanager.v1.UpdateAdBreakRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.UpdateAdBreakRequest(); + } + + public static com.google.ads.admanager.v1.UpdateAdBreakRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateAdBreakRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.UpdateAdBreakRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdateAdBreakRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdateAdBreakRequestOrBuilder.java new file mode 100644 index 000000000000..eb956ae550a6 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdateAdBreakRequestOrBuilder.java @@ -0,0 +1,112 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/ad_break_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface UpdateAdBreakRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.UpdateAdBreakRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The `AdBreak` to update.
+   *
+   * The `AdBreak`'s `name` is used to identify the `AdBreak` to update.
+   * 
+ * + * .google.ads.admanager.v1.AdBreak ad_break = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the adBreak field is set. + */ + boolean hasAdBreak(); + + /** + * + * + *
+   * Required. The `AdBreak` to update.
+   *
+   * The `AdBreak`'s `name` is used to identify the `AdBreak` to update.
+   * 
+ * + * .google.ads.admanager.v1.AdBreak ad_break = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The adBreak. + */ + com.google.ads.admanager.v1.AdBreak getAdBreak(); + + /** + * + * + *
+   * Required. The `AdBreak` to update.
+   *
+   * The `AdBreak`'s `name` is used to identify the `AdBreak` to update.
+   * 
+ * + * .google.ads.admanager.v1.AdBreak ad_break = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.AdBreakOrBuilder getAdBreakOrBuilder(); + + /** + * + * + *
+   * Required. The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
+   * Required. The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
+   * Required. The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdatePrivateAuctionDealRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdatePrivateAuctionDealRequest.java new file mode 100644 index 000000000000..8722e9a95e49 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdatePrivateAuctionDealRequest.java @@ -0,0 +1,1092 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/private_auction_deal_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Request object for `UpdatePrivateAuctionDeal` method.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.UpdatePrivateAuctionDealRequest} + */ +public final class UpdatePrivateAuctionDealRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.UpdatePrivateAuctionDealRequest) + UpdatePrivateAuctionDealRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UpdatePrivateAuctionDealRequest.newBuilder() to construct. + private UpdatePrivateAuctionDealRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdatePrivateAuctionDealRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdatePrivateAuctionDealRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PrivateAuctionDealServiceProto + .internal_static_google_ads_admanager_v1_UpdatePrivateAuctionDealRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PrivateAuctionDealServiceProto + .internal_static_google_ads_admanager_v1_UpdatePrivateAuctionDealRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.UpdatePrivateAuctionDealRequest.class, + com.google.ads.admanager.v1.UpdatePrivateAuctionDealRequest.Builder.class); + } + + private int bitField0_; + public static final int PRIVATE_AUCTION_DEAL_FIELD_NUMBER = 1; + private com.google.ads.admanager.v1.PrivateAuctionDeal privateAuctionDeal_; + + /** + * + * + *
+   * Required. The `PrivateAuctionDeal` to update.
+   *
+   * The `PrivateAuctionDeal`'s `name` is used to identify the
+   * `PrivateAuctionDeal` to update.
+   * 
+ * + * + * .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deal = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the privateAuctionDeal field is set. + */ + @java.lang.Override + public boolean hasPrivateAuctionDeal() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The `PrivateAuctionDeal` to update.
+   *
+   * The `PrivateAuctionDeal`'s `name` is used to identify the
+   * `PrivateAuctionDeal` to update.
+   * 
+ * + * + * .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deal = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The privateAuctionDeal. + */ + @java.lang.Override + public com.google.ads.admanager.v1.PrivateAuctionDeal getPrivateAuctionDeal() { + return privateAuctionDeal_ == null + ? com.google.ads.admanager.v1.PrivateAuctionDeal.getDefaultInstance() + : privateAuctionDeal_; + } + + /** + * + * + *
+   * Required. The `PrivateAuctionDeal` to update.
+   *
+   * The `PrivateAuctionDeal`'s `name` is used to identify the
+   * `PrivateAuctionDeal` to update.
+   * 
+ * + * + * .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deal = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.PrivateAuctionDealOrBuilder getPrivateAuctionDealOrBuilder() { + return privateAuctionDeal_ == null + ? com.google.ads.admanager.v1.PrivateAuctionDeal.getDefaultInstance() + : privateAuctionDeal_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
+   * Required. The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Required. The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
+   * Required. The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPrivateAuctionDeal()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + 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, getPrivateAuctionDeal()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.ads.admanager.v1.UpdatePrivateAuctionDealRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.UpdatePrivateAuctionDealRequest other = + (com.google.ads.admanager.v1.UpdatePrivateAuctionDealRequest) obj; + + if (hasPrivateAuctionDeal() != other.hasPrivateAuctionDeal()) return false; + if (hasPrivateAuctionDeal()) { + if (!getPrivateAuctionDeal().equals(other.getPrivateAuctionDeal())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPrivateAuctionDeal()) { + hash = (37 * hash) + PRIVATE_AUCTION_DEAL_FIELD_NUMBER; + hash = (53 * hash) + getPrivateAuctionDeal().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.UpdatePrivateAuctionDealRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.UpdatePrivateAuctionDealRequest 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.admanager.v1.UpdatePrivateAuctionDealRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.UpdatePrivateAuctionDealRequest parseFrom( + 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.admanager.v1.UpdatePrivateAuctionDealRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.UpdatePrivateAuctionDealRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.UpdatePrivateAuctionDealRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.UpdatePrivateAuctionDealRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.UpdatePrivateAuctionDealRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.UpdatePrivateAuctionDealRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.UpdatePrivateAuctionDealRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.UpdatePrivateAuctionDealRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.UpdatePrivateAuctionDealRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request object for `UpdatePrivateAuctionDeal` method.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.UpdatePrivateAuctionDealRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.UpdatePrivateAuctionDealRequest) + com.google.ads.admanager.v1.UpdatePrivateAuctionDealRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PrivateAuctionDealServiceProto + .internal_static_google_ads_admanager_v1_UpdatePrivateAuctionDealRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PrivateAuctionDealServiceProto + .internal_static_google_ads_admanager_v1_UpdatePrivateAuctionDealRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.UpdatePrivateAuctionDealRequest.class, + com.google.ads.admanager.v1.UpdatePrivateAuctionDealRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.UpdatePrivateAuctionDealRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPrivateAuctionDealFieldBuilder(); + getUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + privateAuctionDeal_ = null; + if (privateAuctionDealBuilder_ != null) { + privateAuctionDealBuilder_.dispose(); + privateAuctionDealBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.PrivateAuctionDealServiceProto + .internal_static_google_ads_admanager_v1_UpdatePrivateAuctionDealRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.UpdatePrivateAuctionDealRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.UpdatePrivateAuctionDealRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.UpdatePrivateAuctionDealRequest build() { + com.google.ads.admanager.v1.UpdatePrivateAuctionDealRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.UpdatePrivateAuctionDealRequest buildPartial() { + com.google.ads.admanager.v1.UpdatePrivateAuctionDealRequest result = + new com.google.ads.admanager.v1.UpdatePrivateAuctionDealRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.UpdatePrivateAuctionDealRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.privateAuctionDeal_ = + privateAuctionDealBuilder_ == null + ? privateAuctionDeal_ + : privateAuctionDealBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.UpdatePrivateAuctionDealRequest) { + return mergeFrom((com.google.ads.admanager.v1.UpdatePrivateAuctionDealRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.UpdatePrivateAuctionDealRequest other) { + if (other == com.google.ads.admanager.v1.UpdatePrivateAuctionDealRequest.getDefaultInstance()) + return this; + if (other.hasPrivateAuctionDeal()) { + mergePrivateAuctionDeal(other.getPrivateAuctionDeal()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getPrivateAuctionDealFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.ads.admanager.v1.PrivateAuctionDeal privateAuctionDeal_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.PrivateAuctionDeal, + com.google.ads.admanager.v1.PrivateAuctionDeal.Builder, + com.google.ads.admanager.v1.PrivateAuctionDealOrBuilder> + privateAuctionDealBuilder_; + + /** + * + * + *
+     * Required. The `PrivateAuctionDeal` to update.
+     *
+     * The `PrivateAuctionDeal`'s `name` is used to identify the
+     * `PrivateAuctionDeal` to update.
+     * 
+ * + * + * .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deal = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the privateAuctionDeal field is set. + */ + public boolean hasPrivateAuctionDeal() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. The `PrivateAuctionDeal` to update.
+     *
+     * The `PrivateAuctionDeal`'s `name` is used to identify the
+     * `PrivateAuctionDeal` to update.
+     * 
+ * + * + * .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deal = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The privateAuctionDeal. + */ + public com.google.ads.admanager.v1.PrivateAuctionDeal getPrivateAuctionDeal() { + if (privateAuctionDealBuilder_ == null) { + return privateAuctionDeal_ == null + ? com.google.ads.admanager.v1.PrivateAuctionDeal.getDefaultInstance() + : privateAuctionDeal_; + } else { + return privateAuctionDealBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The `PrivateAuctionDeal` to update.
+     *
+     * The `PrivateAuctionDeal`'s `name` is used to identify the
+     * `PrivateAuctionDeal` to update.
+     * 
+ * + * + * .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deal = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPrivateAuctionDeal(com.google.ads.admanager.v1.PrivateAuctionDeal value) { + if (privateAuctionDealBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + privateAuctionDeal_ = value; + } else { + privateAuctionDealBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The `PrivateAuctionDeal` to update.
+     *
+     * The `PrivateAuctionDeal`'s `name` is used to identify the
+     * `PrivateAuctionDeal` to update.
+     * 
+ * + * + * .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deal = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPrivateAuctionDeal( + com.google.ads.admanager.v1.PrivateAuctionDeal.Builder builderForValue) { + if (privateAuctionDealBuilder_ == null) { + privateAuctionDeal_ = builderForValue.build(); + } else { + privateAuctionDealBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The `PrivateAuctionDeal` to update.
+     *
+     * The `PrivateAuctionDeal`'s `name` is used to identify the
+     * `PrivateAuctionDeal` to update.
+     * 
+ * + * + * .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deal = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergePrivateAuctionDeal(com.google.ads.admanager.v1.PrivateAuctionDeal value) { + if (privateAuctionDealBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && privateAuctionDeal_ != null + && privateAuctionDeal_ + != com.google.ads.admanager.v1.PrivateAuctionDeal.getDefaultInstance()) { + getPrivateAuctionDealBuilder().mergeFrom(value); + } else { + privateAuctionDeal_ = value; + } + } else { + privateAuctionDealBuilder_.mergeFrom(value); + } + if (privateAuctionDeal_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The `PrivateAuctionDeal` to update.
+     *
+     * The `PrivateAuctionDeal`'s `name` is used to identify the
+     * `PrivateAuctionDeal` to update.
+     * 
+ * + * + * .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deal = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearPrivateAuctionDeal() { + bitField0_ = (bitField0_ & ~0x00000001); + privateAuctionDeal_ = null; + if (privateAuctionDealBuilder_ != null) { + privateAuctionDealBuilder_.dispose(); + privateAuctionDealBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The `PrivateAuctionDeal` to update.
+     *
+     * The `PrivateAuctionDeal`'s `name` is used to identify the
+     * `PrivateAuctionDeal` to update.
+     * 
+ * + * + * .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deal = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.PrivateAuctionDeal.Builder getPrivateAuctionDealBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPrivateAuctionDealFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The `PrivateAuctionDeal` to update.
+     *
+     * The `PrivateAuctionDeal`'s `name` is used to identify the
+     * `PrivateAuctionDeal` to update.
+     * 
+ * + * + * .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deal = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.PrivateAuctionDealOrBuilder + getPrivateAuctionDealOrBuilder() { + if (privateAuctionDealBuilder_ != null) { + return privateAuctionDealBuilder_.getMessageOrBuilder(); + } else { + return privateAuctionDeal_ == null + ? com.google.ads.admanager.v1.PrivateAuctionDeal.getDefaultInstance() + : privateAuctionDeal_; + } + } + + /** + * + * + *
+     * Required. The `PrivateAuctionDeal` to update.
+     *
+     * The `PrivateAuctionDeal`'s `name` is used to identify the
+     * `PrivateAuctionDeal` to update.
+     * 
+ * + * + * .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deal = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.PrivateAuctionDeal, + com.google.ads.admanager.v1.PrivateAuctionDeal.Builder, + com.google.ads.admanager.v1.PrivateAuctionDealOrBuilder> + getPrivateAuctionDealFieldBuilder() { + if (privateAuctionDealBuilder_ == null) { + privateAuctionDealBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.PrivateAuctionDeal, + com.google.ads.admanager.v1.PrivateAuctionDeal.Builder, + com.google.ads.admanager.v1.PrivateAuctionDealOrBuilder>( + getPrivateAuctionDeal(), getParentForChildren(), isClean()); + privateAuctionDeal_ = null; + } + return privateAuctionDealBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.UpdatePrivateAuctionDealRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.UpdatePrivateAuctionDealRequest) + private static final com.google.ads.admanager.v1.UpdatePrivateAuctionDealRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.UpdatePrivateAuctionDealRequest(); + } + + public static com.google.ads.admanager.v1.UpdatePrivateAuctionDealRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdatePrivateAuctionDealRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.UpdatePrivateAuctionDealRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdatePrivateAuctionDealRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdatePrivateAuctionDealRequestOrBuilder.java new file mode 100644 index 000000000000..b87a66dab063 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdatePrivateAuctionDealRequestOrBuilder.java @@ -0,0 +1,118 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/private_auction_deal_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface UpdatePrivateAuctionDealRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.UpdatePrivateAuctionDealRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The `PrivateAuctionDeal` to update.
+   *
+   * The `PrivateAuctionDeal`'s `name` is used to identify the
+   * `PrivateAuctionDeal` to update.
+   * 
+ * + * + * .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deal = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the privateAuctionDeal field is set. + */ + boolean hasPrivateAuctionDeal(); + + /** + * + * + *
+   * Required. The `PrivateAuctionDeal` to update.
+   *
+   * The `PrivateAuctionDeal`'s `name` is used to identify the
+   * `PrivateAuctionDeal` to update.
+   * 
+ * + * + * .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deal = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The privateAuctionDeal. + */ + com.google.ads.admanager.v1.PrivateAuctionDeal getPrivateAuctionDeal(); + + /** + * + * + *
+   * Required. The `PrivateAuctionDeal` to update.
+   *
+   * The `PrivateAuctionDeal`'s `name` is used to identify the
+   * `PrivateAuctionDeal` to update.
+   * 
+ * + * + * .google.ads.admanager.v1.PrivateAuctionDeal private_auction_deal = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.PrivateAuctionDealOrBuilder getPrivateAuctionDealOrBuilder(); + + /** + * + * + *
+   * Required. The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
+   * Required. The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
+   * Required. The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdatePrivateAuctionRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdatePrivateAuctionRequest.java new file mode 100644 index 000000000000..785fe23c06b0 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdatePrivateAuctionRequest.java @@ -0,0 +1,1086 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/private_auction_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Request object for `UpdatePrivateAuction` method.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.UpdatePrivateAuctionRequest} + */ +public final class UpdatePrivateAuctionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.UpdatePrivateAuctionRequest) + UpdatePrivateAuctionRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UpdatePrivateAuctionRequest.newBuilder() to construct. + private UpdatePrivateAuctionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdatePrivateAuctionRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdatePrivateAuctionRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PrivateAuctionServiceProto + .internal_static_google_ads_admanager_v1_UpdatePrivateAuctionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PrivateAuctionServiceProto + .internal_static_google_ads_admanager_v1_UpdatePrivateAuctionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.UpdatePrivateAuctionRequest.class, + com.google.ads.admanager.v1.UpdatePrivateAuctionRequest.Builder.class); + } + + private int bitField0_; + public static final int PRIVATE_AUCTION_FIELD_NUMBER = 1; + private com.google.ads.admanager.v1.PrivateAuction privateAuction_; + + /** + * + * + *
+   * Required. The `PrivateAuction` to update.
+   *
+   * The `PrivateAuction`'s `name` is used to identify the
+   * `PrivateAuction` to update.
+   * 
+ * + * + * .google.ads.admanager.v1.PrivateAuction private_auction = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the privateAuction field is set. + */ + @java.lang.Override + public boolean hasPrivateAuction() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The `PrivateAuction` to update.
+   *
+   * The `PrivateAuction`'s `name` is used to identify the
+   * `PrivateAuction` to update.
+   * 
+ * + * + * .google.ads.admanager.v1.PrivateAuction private_auction = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The privateAuction. + */ + @java.lang.Override + public com.google.ads.admanager.v1.PrivateAuction getPrivateAuction() { + return privateAuction_ == null + ? com.google.ads.admanager.v1.PrivateAuction.getDefaultInstance() + : privateAuction_; + } + + /** + * + * + *
+   * Required. The `PrivateAuction` to update.
+   *
+   * The `PrivateAuction`'s `name` is used to identify the
+   * `PrivateAuction` to update.
+   * 
+ * + * + * .google.ads.admanager.v1.PrivateAuction private_auction = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.PrivateAuctionOrBuilder getPrivateAuctionOrBuilder() { + return privateAuction_ == null + ? com.google.ads.admanager.v1.PrivateAuction.getDefaultInstance() + : privateAuction_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
+   * Required. The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Required. The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
+   * Required. The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPrivateAuction()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + 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, getPrivateAuction()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.ads.admanager.v1.UpdatePrivateAuctionRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.UpdatePrivateAuctionRequest other = + (com.google.ads.admanager.v1.UpdatePrivateAuctionRequest) obj; + + if (hasPrivateAuction() != other.hasPrivateAuction()) return false; + if (hasPrivateAuction()) { + if (!getPrivateAuction().equals(other.getPrivateAuction())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPrivateAuction()) { + hash = (37 * hash) + PRIVATE_AUCTION_FIELD_NUMBER; + hash = (53 * hash) + getPrivateAuction().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.UpdatePrivateAuctionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.UpdatePrivateAuctionRequest 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.admanager.v1.UpdatePrivateAuctionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.UpdatePrivateAuctionRequest parseFrom( + 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.admanager.v1.UpdatePrivateAuctionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.UpdatePrivateAuctionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.UpdatePrivateAuctionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.UpdatePrivateAuctionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.UpdatePrivateAuctionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.UpdatePrivateAuctionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.UpdatePrivateAuctionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.UpdatePrivateAuctionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.UpdatePrivateAuctionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request object for `UpdatePrivateAuction` method.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.UpdatePrivateAuctionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.UpdatePrivateAuctionRequest) + com.google.ads.admanager.v1.UpdatePrivateAuctionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.PrivateAuctionServiceProto + .internal_static_google_ads_admanager_v1_UpdatePrivateAuctionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.PrivateAuctionServiceProto + .internal_static_google_ads_admanager_v1_UpdatePrivateAuctionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.UpdatePrivateAuctionRequest.class, + com.google.ads.admanager.v1.UpdatePrivateAuctionRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.UpdatePrivateAuctionRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPrivateAuctionFieldBuilder(); + getUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + privateAuction_ = null; + if (privateAuctionBuilder_ != null) { + privateAuctionBuilder_.dispose(); + privateAuctionBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.PrivateAuctionServiceProto + .internal_static_google_ads_admanager_v1_UpdatePrivateAuctionRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.UpdatePrivateAuctionRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.UpdatePrivateAuctionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.UpdatePrivateAuctionRequest build() { + com.google.ads.admanager.v1.UpdatePrivateAuctionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.UpdatePrivateAuctionRequest buildPartial() { + com.google.ads.admanager.v1.UpdatePrivateAuctionRequest result = + new com.google.ads.admanager.v1.UpdatePrivateAuctionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.UpdatePrivateAuctionRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.privateAuction_ = + privateAuctionBuilder_ == null ? privateAuction_ : privateAuctionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.UpdatePrivateAuctionRequest) { + return mergeFrom((com.google.ads.admanager.v1.UpdatePrivateAuctionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.UpdatePrivateAuctionRequest other) { + if (other == com.google.ads.admanager.v1.UpdatePrivateAuctionRequest.getDefaultInstance()) + return this; + if (other.hasPrivateAuction()) { + mergePrivateAuction(other.getPrivateAuction()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getPrivateAuctionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.ads.admanager.v1.PrivateAuction privateAuction_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.PrivateAuction, + com.google.ads.admanager.v1.PrivateAuction.Builder, + com.google.ads.admanager.v1.PrivateAuctionOrBuilder> + privateAuctionBuilder_; + + /** + * + * + *
+     * Required. The `PrivateAuction` to update.
+     *
+     * The `PrivateAuction`'s `name` is used to identify the
+     * `PrivateAuction` to update.
+     * 
+ * + * + * .google.ads.admanager.v1.PrivateAuction private_auction = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the privateAuction field is set. + */ + public boolean hasPrivateAuction() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. The `PrivateAuction` to update.
+     *
+     * The `PrivateAuction`'s `name` is used to identify the
+     * `PrivateAuction` to update.
+     * 
+ * + * + * .google.ads.admanager.v1.PrivateAuction private_auction = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The privateAuction. + */ + public com.google.ads.admanager.v1.PrivateAuction getPrivateAuction() { + if (privateAuctionBuilder_ == null) { + return privateAuction_ == null + ? com.google.ads.admanager.v1.PrivateAuction.getDefaultInstance() + : privateAuction_; + } else { + return privateAuctionBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The `PrivateAuction` to update.
+     *
+     * The `PrivateAuction`'s `name` is used to identify the
+     * `PrivateAuction` to update.
+     * 
+ * + * + * .google.ads.admanager.v1.PrivateAuction private_auction = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPrivateAuction(com.google.ads.admanager.v1.PrivateAuction value) { + if (privateAuctionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + privateAuction_ = value; + } else { + privateAuctionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The `PrivateAuction` to update.
+     *
+     * The `PrivateAuction`'s `name` is used to identify the
+     * `PrivateAuction` to update.
+     * 
+ * + * + * .google.ads.admanager.v1.PrivateAuction private_auction = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPrivateAuction( + com.google.ads.admanager.v1.PrivateAuction.Builder builderForValue) { + if (privateAuctionBuilder_ == null) { + privateAuction_ = builderForValue.build(); + } else { + privateAuctionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The `PrivateAuction` to update.
+     *
+     * The `PrivateAuction`'s `name` is used to identify the
+     * `PrivateAuction` to update.
+     * 
+ * + * + * .google.ads.admanager.v1.PrivateAuction private_auction = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergePrivateAuction(com.google.ads.admanager.v1.PrivateAuction value) { + if (privateAuctionBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && privateAuction_ != null + && privateAuction_ != com.google.ads.admanager.v1.PrivateAuction.getDefaultInstance()) { + getPrivateAuctionBuilder().mergeFrom(value); + } else { + privateAuction_ = value; + } + } else { + privateAuctionBuilder_.mergeFrom(value); + } + if (privateAuction_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The `PrivateAuction` to update.
+     *
+     * The `PrivateAuction`'s `name` is used to identify the
+     * `PrivateAuction` to update.
+     * 
+ * + * + * .google.ads.admanager.v1.PrivateAuction private_auction = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearPrivateAuction() { + bitField0_ = (bitField0_ & ~0x00000001); + privateAuction_ = null; + if (privateAuctionBuilder_ != null) { + privateAuctionBuilder_.dispose(); + privateAuctionBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The `PrivateAuction` to update.
+     *
+     * The `PrivateAuction`'s `name` is used to identify the
+     * `PrivateAuction` to update.
+     * 
+ * + * + * .google.ads.admanager.v1.PrivateAuction private_auction = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.PrivateAuction.Builder getPrivateAuctionBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPrivateAuctionFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The `PrivateAuction` to update.
+     *
+     * The `PrivateAuction`'s `name` is used to identify the
+     * `PrivateAuction` to update.
+     * 
+ * + * + * .google.ads.admanager.v1.PrivateAuction private_auction = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.PrivateAuctionOrBuilder getPrivateAuctionOrBuilder() { + if (privateAuctionBuilder_ != null) { + return privateAuctionBuilder_.getMessageOrBuilder(); + } else { + return privateAuction_ == null + ? com.google.ads.admanager.v1.PrivateAuction.getDefaultInstance() + : privateAuction_; + } + } + + /** + * + * + *
+     * Required. The `PrivateAuction` to update.
+     *
+     * The `PrivateAuction`'s `name` is used to identify the
+     * `PrivateAuction` to update.
+     * 
+ * + * + * .google.ads.admanager.v1.PrivateAuction private_auction = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.PrivateAuction, + com.google.ads.admanager.v1.PrivateAuction.Builder, + com.google.ads.admanager.v1.PrivateAuctionOrBuilder> + getPrivateAuctionFieldBuilder() { + if (privateAuctionBuilder_ == null) { + privateAuctionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.PrivateAuction, + com.google.ads.admanager.v1.PrivateAuction.Builder, + com.google.ads.admanager.v1.PrivateAuctionOrBuilder>( + getPrivateAuction(), getParentForChildren(), isClean()); + privateAuction_ = null; + } + return privateAuctionBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.UpdatePrivateAuctionRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.UpdatePrivateAuctionRequest) + private static final com.google.ads.admanager.v1.UpdatePrivateAuctionRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.UpdatePrivateAuctionRequest(); + } + + public static com.google.ads.admanager.v1.UpdatePrivateAuctionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdatePrivateAuctionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.UpdatePrivateAuctionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdatePrivateAuctionRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdatePrivateAuctionRequestOrBuilder.java new file mode 100644 index 000000000000..482655f98af0 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdatePrivateAuctionRequestOrBuilder.java @@ -0,0 +1,118 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/private_auction_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface UpdatePrivateAuctionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.UpdatePrivateAuctionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The `PrivateAuction` to update.
+   *
+   * The `PrivateAuction`'s `name` is used to identify the
+   * `PrivateAuction` to update.
+   * 
+ * + * + * .google.ads.admanager.v1.PrivateAuction private_auction = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the privateAuction field is set. + */ + boolean hasPrivateAuction(); + + /** + * + * + *
+   * Required. The `PrivateAuction` to update.
+   *
+   * The `PrivateAuction`'s `name` is used to identify the
+   * `PrivateAuction` to update.
+   * 
+ * + * + * .google.ads.admanager.v1.PrivateAuction private_auction = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The privateAuction. + */ + com.google.ads.admanager.v1.PrivateAuction getPrivateAuction(); + + /** + * + * + *
+   * Required. The `PrivateAuction` to update.
+   *
+   * The `PrivateAuction`'s `name` is used to identify the
+   * `PrivateAuction` to update.
+   * 
+ * + * + * .google.ads.admanager.v1.PrivateAuction private_auction = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.PrivateAuctionOrBuilder getPrivateAuctionOrBuilder(); + + /** + * + * + *
+   * Required. The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
+   * Required. The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
+   * Required. The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/User.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/User.java index cf01f8d1a40b..3ba73d9d1648 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/User.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/User.java @@ -68,6 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.ads.admanager.v1.User.class, com.google.ads.admanager.v1.User.Builder.class); } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -133,7 +134,23 @@ public com.google.protobuf.ByteString getNameBytes() { * Output only. `User` ID. * * - * int64 user_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional int64 user_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the userId field is set. + */ + @java.lang.Override + public boolean hasUserId() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. `User` ID.
+   * 
+ * + * optional int64 user_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The userId. */ @@ -154,7 +171,23 @@ public long getUserId() { * Required. The name of the User. It has a maximum length of 128 characters. * * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the displayName field is set. + */ + @java.lang.Override + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Required. The name of the User. It has a maximum length of 128 characters.
+   * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The displayName. */ @@ -178,7 +211,7 @@ public java.lang.String getDisplayName() { * Required. The name of the User. It has a maximum length of 128 characters. * * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for displayName. */ @@ -208,7 +241,24 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * you must already have a Google Account. * * - * string email = 3 [(.google.api.field_behavior) = REQUIRED]; + * optional string email = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the email field is set. + */ + @java.lang.Override + public boolean hasEmail() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Required. The email or login of the User. In order to create a new user,
+   * you must already have a Google Account.
+   * 
+ * + * optional string email = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The email. */ @@ -233,7 +283,7 @@ public java.lang.String getEmail() { * you must already have a Google Account. * * - * string email = 3 [(.google.api.field_behavior) = REQUIRED]; + * optional string email = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for email. */ @@ -264,7 +314,26 @@ public com.google.protobuf.ByteString getEmailBytes() { * * * - * string role = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * optional string role = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the role field is set. + */ + @java.lang.Override + public boolean hasRole() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Required. The unique Role ID of the User. Roles that are created by Google
+   * will have negative IDs.
+   * 
+ * + * + * optional string role = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The role. @@ -291,7 +360,7 @@ public java.lang.String getRole() { * * * - * string role = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * optional string role = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for role. @@ -320,7 +389,24 @@ public com.google.protobuf.ByteString getRoleBytes() { * cannot log in to the system or perform any operations. * * - * bool active = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool active = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the active field is set. + */ + @java.lang.Override + public boolean hasActive() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Output only. Specifies whether or not the User is active. An inactive user
+   * cannot log in to the system or perform any operations.
+   * 
+ * + * optional bool active = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The active. */ @@ -342,7 +428,24 @@ public boolean getActive() { * This attribute has a maximum length of 255 characters. * * - * string external_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * optional string external_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the externalId field is set. + */ + @java.lang.Override + public boolean hasExternalId() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+   * Optional. An identifier for the User that is meaningful to the publisher.
+   * This attribute has a maximum length of 255 characters.
+   * 
+ * + * optional string external_id = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The externalId. */ @@ -367,7 +470,7 @@ public java.lang.String getExternalId() { * This attribute has a maximum length of 255 characters. * * - * string external_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * optional string external_id = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for externalId. */ @@ -395,7 +498,24 @@ public com.google.protobuf.ByteString getExternalIdBytes() { * Service account users can only be added through the UI. * * - * bool service_account = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool service_account = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the serviceAccount field is set. + */ + @java.lang.Override + public boolean hasServiceAccount() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+   * Output only. Whether the user is an OAuth2 service account user.
+   * Service account users can only be added through the UI.
+   * 
+ * + * optional bool service_account = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The serviceAccount. */ @@ -420,7 +540,29 @@ public boolean getServiceAccount() { * times returned in API responses. * * - * string orders_ui_local_time_zone = 9 [(.google.api.field_behavior) = OPTIONAL]; + * optional string orders_ui_local_time_zone = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ordersUiLocalTimeZone field is set. + */ + @java.lang.Override + public boolean hasOrdersUiLocalTimeZone() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+   * Optional. The IANA Time Zone Database time zone, e.g. "America/New_York",
+   * used in the orders and line items UI for this User. If not provided, the UI
+   * then defaults to using the Network's timezone. This setting only affects
+   * the UI for this user and does not affect the timezone of any dates and
+   * times returned in API responses.
+   * 
+ * + * optional string orders_ui_local_time_zone = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The ordersUiLocalTimeZone. */ @@ -448,7 +590,8 @@ public java.lang.String getOrdersUiLocalTimeZone() { * times returned in API responses. * * - * string orders_ui_local_time_zone = 9 [(.google.api.field_behavior) = OPTIONAL]; + * optional string orders_ui_local_time_zone = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The bytes for ordersUiLocalTimeZone. */ @@ -482,28 +625,28 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) { + if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, email_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(role_)) { + if (((bitField0_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, role_); } - if (active_ != false) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeBool(6, active_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalId_)) { + if (((bitField0_ & 0x00000020) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, externalId_); } - if (serviceAccount_ != false) { + if (((bitField0_ & 0x00000040) != 0)) { output.writeBool(8, serviceAccount_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ordersUiLocalTimeZone_)) { + if (((bitField0_ & 0x00000080) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, ordersUiLocalTimeZone_); } - if (userId_ != 0L) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(10, userId_); } getUnknownFields().writeTo(output); @@ -518,28 +661,28 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, email_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(role_)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, role_); } - if (active_ != false) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, active_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalId_)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, externalId_); } - if (serviceAccount_ != false) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, serviceAccount_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ordersUiLocalTimeZone_)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, ordersUiLocalTimeZone_); } - if (userId_ != 0L) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(10, userId_); } size += getUnknownFields().getSerializedSize(); @@ -558,14 +701,38 @@ public boolean equals(final java.lang.Object obj) { com.google.ads.admanager.v1.User other = (com.google.ads.admanager.v1.User) obj; if (!getName().equals(other.getName())) return false; - if (getUserId() != other.getUserId()) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getEmail().equals(other.getEmail())) return false; - if (!getRole().equals(other.getRole())) return false; - if (getActive() != other.getActive()) return false; - if (!getExternalId().equals(other.getExternalId())) return false; - if (getServiceAccount() != other.getServiceAccount()) return false; - if (!getOrdersUiLocalTimeZone().equals(other.getOrdersUiLocalTimeZone())) return false; + if (hasUserId() != other.hasUserId()) return false; + if (hasUserId()) { + if (getUserId() != other.getUserId()) return false; + } + if (hasDisplayName() != other.hasDisplayName()) return false; + if (hasDisplayName()) { + if (!getDisplayName().equals(other.getDisplayName())) return false; + } + if (hasEmail() != other.hasEmail()) return false; + if (hasEmail()) { + if (!getEmail().equals(other.getEmail())) return false; + } + if (hasRole() != other.hasRole()) return false; + if (hasRole()) { + if (!getRole().equals(other.getRole())) return false; + } + if (hasActive() != other.hasActive()) return false; + if (hasActive()) { + if (getActive() != other.getActive()) return false; + } + if (hasExternalId() != other.hasExternalId()) return false; + if (hasExternalId()) { + if (!getExternalId().equals(other.getExternalId())) return false; + } + if (hasServiceAccount() != other.hasServiceAccount()) return false; + if (hasServiceAccount()) { + if (getServiceAccount() != other.getServiceAccount()) return false; + } + if (hasOrdersUiLocalTimeZone() != other.hasOrdersUiLocalTimeZone()) return false; + if (hasOrdersUiLocalTimeZone()) { + if (!getOrdersUiLocalTimeZone().equals(other.getOrdersUiLocalTimeZone())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -579,22 +746,38 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + USER_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUserId()); - hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - hash = (37 * hash) + EMAIL_FIELD_NUMBER; - hash = (53 * hash) + getEmail().hashCode(); - hash = (37 * hash) + ROLE_FIELD_NUMBER; - hash = (53 * hash) + getRole().hashCode(); - hash = (37 * hash) + ACTIVE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getActive()); - hash = (37 * hash) + EXTERNAL_ID_FIELD_NUMBER; - hash = (53 * hash) + getExternalId().hashCode(); - hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getServiceAccount()); - hash = (37 * hash) + ORDERS_UI_LOCAL_TIME_ZONE_FIELD_NUMBER; - hash = (53 * hash) + getOrdersUiLocalTimeZone().hashCode(); + if (hasUserId()) { + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUserId()); + } + if (hasDisplayName()) { + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + } + if (hasEmail()) { + hash = (37 * hash) + EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getEmail().hashCode(); + } + if (hasRole()) { + hash = (37 * hash) + ROLE_FIELD_NUMBER; + hash = (53 * hash) + getRole().hashCode(); + } + if (hasActive()) { + hash = (37 * hash) + ACTIVE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getActive()); + } + if (hasExternalId()) { + hash = (37 * hash) + EXTERNAL_ID_FIELD_NUMBER; + hash = (53 * hash) + getExternalId().hashCode(); + } + if (hasServiceAccount()) { + hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getServiceAccount()); + } + if (hasOrdersUiLocalTimeZone()) { + hash = (37 * hash) + ORDERS_UI_LOCAL_TIME_ZONE_FIELD_NUMBER; + hash = (53 * hash) + getOrdersUiLocalTimeZone().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -781,30 +964,40 @@ private void buildPartial0(com.google.ads.admanager.v1.User result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.userId_ = userId_; + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.displayName_ = displayName_; + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.email_ = email_; + to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { result.role_ = role_; + to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000020) != 0)) { result.active_ = active_; + to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000040) != 0)) { result.externalId_ = externalId_; + to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000080) != 0)) { result.serviceAccount_ = serviceAccount_; + to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000100) != 0)) { result.ordersUiLocalTimeZone_ = ordersUiLocalTimeZone_; + to_bitField0_ |= 0x00000080; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -857,36 +1050,36 @@ public Builder mergeFrom(com.google.ads.admanager.v1.User other) { bitField0_ |= 0x00000001; onChanged(); } - if (other.getUserId() != 0L) { + if (other.hasUserId()) { setUserId(other.getUserId()); } - if (!other.getDisplayName().isEmpty()) { + if (other.hasDisplayName()) { displayName_ = other.displayName_; bitField0_ |= 0x00000004; onChanged(); } - if (!other.getEmail().isEmpty()) { + if (other.hasEmail()) { email_ = other.email_; bitField0_ |= 0x00000008; onChanged(); } - if (!other.getRole().isEmpty()) { + if (other.hasRole()) { role_ = other.role_; bitField0_ |= 0x00000010; onChanged(); } - if (other.getActive() != false) { + if (other.hasActive()) { setActive(other.getActive()); } - if (!other.getExternalId().isEmpty()) { + if (other.hasExternalId()) { externalId_ = other.externalId_; bitField0_ |= 0x00000040; onChanged(); } - if (other.getServiceAccount() != false) { + if (other.hasServiceAccount()) { setServiceAccount(other.getServiceAccount()); } - if (!other.getOrdersUiLocalTimeZone().isEmpty()) { + if (other.hasOrdersUiLocalTimeZone()) { ordersUiLocalTimeZone_ = other.ordersUiLocalTimeZone_; bitField0_ |= 0x00000100; onChanged(); @@ -1115,7 +1308,23 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * Output only. `User` ID. * * - * int64 user_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional int64 user_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the userId field is set. + */ + @java.lang.Override + public boolean hasUserId() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. `User` ID.
+     * 
+ * + * optional int64 user_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The userId. */ @@ -1131,7 +1340,7 @@ public long getUserId() { * Output only. `User` ID. * * - * int64 user_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional int64 user_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The userId to set. * @return This builder for chaining. @@ -1151,7 +1360,7 @@ public Builder setUserId(long value) { * Output only. `User` ID. * * - * int64 user_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional int64 user_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -1171,7 +1380,22 @@ public Builder clearUserId() { * Required. The name of the User. It has a maximum length of 128 characters. * * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the displayName field is set. + */ + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. The name of the User. It has a maximum length of 128 characters.
+     * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The displayName. */ @@ -1194,7 +1418,7 @@ public java.lang.String getDisplayName() { * Required. The name of the User. It has a maximum length of 128 characters. * * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for displayName. */ @@ -1217,7 +1441,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * Required. The name of the User. It has a maximum length of 128 characters. * * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @param value The displayName to set. * @return This builder for chaining. @@ -1239,7 +1463,7 @@ public Builder setDisplayName(java.lang.String value) { * Required. The name of the User. It has a maximum length of 128 characters. * * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ @@ -1257,7 +1481,7 @@ public Builder clearDisplayName() { * Required. The name of the User. It has a maximum length of 128 characters. * * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for displayName to set. * @return This builder for chaining. @@ -1283,7 +1507,23 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * you must already have a Google Account. * * - * string email = 3 [(.google.api.field_behavior) = REQUIRED]; + * optional string email = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the email field is set. + */ + public boolean hasEmail() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Required. The email or login of the User. In order to create a new user,
+     * you must already have a Google Account.
+     * 
+ * + * optional string email = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The email. */ @@ -1307,7 +1547,7 @@ public java.lang.String getEmail() { * you must already have a Google Account. * * - * string email = 3 [(.google.api.field_behavior) = REQUIRED]; + * optional string email = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for email. */ @@ -1331,7 +1571,7 @@ public com.google.protobuf.ByteString getEmailBytes() { * you must already have a Google Account. * * - * string email = 3 [(.google.api.field_behavior) = REQUIRED]; + * optional string email = 3 [(.google.api.field_behavior) = REQUIRED]; * * @param value The email to set. * @return This builder for chaining. @@ -1354,7 +1594,7 @@ public Builder setEmail(java.lang.String value) { * you must already have a Google Account. * * - * string email = 3 [(.google.api.field_behavior) = REQUIRED]; + * optional string email = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ @@ -1373,7 +1613,7 @@ public Builder clearEmail() { * you must already have a Google Account. * * - * string email = 3 [(.google.api.field_behavior) = REQUIRED]; + * optional string email = 3 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for email to set. * @return This builder for chaining. @@ -1400,7 +1640,25 @@ public Builder setEmailBytes(com.google.protobuf.ByteString value) { * * * - * string role = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * optional string role = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the role field is set. + */ + public boolean hasRole() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Required. The unique Role ID of the User. Roles that are created by Google
+     * will have negative IDs.
+     * 
+ * + * + * optional string role = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The role. @@ -1426,7 +1684,7 @@ public java.lang.String getRole() { * * * - * string role = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * optional string role = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for role. @@ -1452,7 +1710,7 @@ public com.google.protobuf.ByteString getRoleBytes() { * * * - * string role = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * optional string role = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The role to set. @@ -1477,7 +1735,7 @@ public Builder setRole(java.lang.String value) { * * * - * string role = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * optional string role = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -1498,7 +1756,7 @@ public Builder clearRole() { * * * - * string role = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * optional string role = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The bytes for role to set. @@ -1525,7 +1783,24 @@ public Builder setRoleBytes(com.google.protobuf.ByteString value) { * cannot log in to the system or perform any operations. * * - * bool active = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool active = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the active field is set. + */ + @java.lang.Override + public boolean hasActive() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Output only. Specifies whether or not the User is active. An inactive user
+     * cannot log in to the system or perform any operations.
+     * 
+ * + * optional bool active = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The active. */ @@ -1542,7 +1817,7 @@ public boolean getActive() { * cannot log in to the system or perform any operations. * * - * bool active = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool active = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The active to set. * @return This builder for chaining. @@ -1563,7 +1838,7 @@ public Builder setActive(boolean value) { * cannot log in to the system or perform any operations. * * - * bool active = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool active = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -1584,7 +1859,23 @@ public Builder clearActive() { * This attribute has a maximum length of 255 characters. * * - * string external_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * optional string external_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the externalId field is set. + */ + public boolean hasExternalId() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Optional. An identifier for the User that is meaningful to the publisher.
+     * This attribute has a maximum length of 255 characters.
+     * 
+ * + * optional string external_id = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The externalId. */ @@ -1608,7 +1899,7 @@ public java.lang.String getExternalId() { * This attribute has a maximum length of 255 characters. * * - * string external_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * optional string external_id = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for externalId. */ @@ -1632,7 +1923,7 @@ public com.google.protobuf.ByteString getExternalIdBytes() { * This attribute has a maximum length of 255 characters. * * - * string external_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * optional string external_id = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The externalId to set. * @return This builder for chaining. @@ -1655,7 +1946,7 @@ public Builder setExternalId(java.lang.String value) { * This attribute has a maximum length of 255 characters. * * - * string external_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * optional string external_id = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1674,7 +1965,7 @@ public Builder clearExternalId() { * This attribute has a maximum length of 255 characters. * * - * string external_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * optional string external_id = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for externalId to set. * @return This builder for chaining. @@ -1700,7 +1991,24 @@ public Builder setExternalIdBytes(com.google.protobuf.ByteString value) { * Service account users can only be added through the UI. * * - * bool service_account = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool service_account = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the serviceAccount field is set. + */ + @java.lang.Override + public boolean hasServiceAccount() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Output only. Whether the user is an OAuth2 service account user.
+     * Service account users can only be added through the UI.
+     * 
+ * + * optional bool service_account = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The serviceAccount. */ @@ -1717,7 +2025,7 @@ public boolean getServiceAccount() { * Service account users can only be added through the UI. * * - * bool service_account = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool service_account = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The serviceAccount to set. * @return This builder for chaining. @@ -1738,7 +2046,7 @@ public Builder setServiceAccount(boolean value) { * Service account users can only be added through the UI. * * - * bool service_account = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool service_account = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -1762,7 +2070,30 @@ public Builder clearServiceAccount() { * times returned in API responses. * * - * string orders_ui_local_time_zone = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional string orders_ui_local_time_zone = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ordersUiLocalTimeZone field is set. + */ + public boolean hasOrdersUiLocalTimeZone() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
+     * Optional. The IANA Time Zone Database time zone, e.g. "America/New_York",
+     * used in the orders and line items UI for this User. If not provided, the UI
+     * then defaults to using the Network's timezone. This setting only affects
+     * the UI for this user and does not affect the timezone of any dates and
+     * times returned in API responses.
+     * 
+ * + * + * optional string orders_ui_local_time_zone = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The ordersUiLocalTimeZone. */ @@ -1789,7 +2120,9 @@ public java.lang.String getOrdersUiLocalTimeZone() { * times returned in API responses. * * - * string orders_ui_local_time_zone = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional string orders_ui_local_time_zone = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The bytes for ordersUiLocalTimeZone. */ @@ -1816,7 +2149,9 @@ public com.google.protobuf.ByteString getOrdersUiLocalTimeZoneBytes() { * times returned in API responses. * * - * string orders_ui_local_time_zone = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional string orders_ui_local_time_zone = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The ordersUiLocalTimeZone to set. * @return This builder for chaining. @@ -1842,7 +2177,9 @@ public Builder setOrdersUiLocalTimeZone(java.lang.String value) { * times returned in API responses. * * - * string orders_ui_local_time_zone = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional string orders_ui_local_time_zone = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return This builder for chaining. */ @@ -1864,7 +2201,9 @@ public Builder clearOrdersUiLocalTimeZone() { * times returned in API responses. * * - * string orders_ui_local_time_zone = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional string orders_ui_local_time_zone = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The bytes for ordersUiLocalTimeZone to set. * @return This builder for chaining. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UserDomainTargeting.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UserDomainTargeting.java new file mode 100644 index 000000000000..ee98f0e6b992 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UserDomainTargeting.java @@ -0,0 +1,1051 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * User Domain Targeting
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.UserDomainTargeting} + */ +public final class UserDomainTargeting extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.UserDomainTargeting) + UserDomainTargetingOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UserDomainTargeting.newBuilder() to construct. + private UserDomainTargeting(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UserDomainTargeting() { + targetedUserDomains_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludedUserDomains_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UserDomainTargeting(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_UserDomainTargeting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_UserDomainTargeting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.UserDomainTargeting.class, + com.google.ads.admanager.v1.UserDomainTargeting.Builder.class); + } + + public static final int TARGETED_USER_DOMAINS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList targetedUserDomains_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. A list of user domains that should be targeted/included.
+   * 
+ * + * repeated string targeted_user_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the targetedUserDomains. + */ + public com.google.protobuf.ProtocolStringList getTargetedUserDomainsList() { + return targetedUserDomains_; + } + + /** + * + * + *
+   * Optional. A list of user domains that should be targeted/included.
+   * 
+ * + * repeated string targeted_user_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of targetedUserDomains. + */ + public int getTargetedUserDomainsCount() { + return targetedUserDomains_.size(); + } + + /** + * + * + *
+   * Optional. A list of user domains that should be targeted/included.
+   * 
+ * + * repeated string targeted_user_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The targetedUserDomains at the given index. + */ + public java.lang.String getTargetedUserDomains(int index) { + return targetedUserDomains_.get(index); + } + + /** + * + * + *
+   * Optional. A list of user domains that should be targeted/included.
+   * 
+ * + * repeated string targeted_user_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the targetedUserDomains at the given index. + */ + public com.google.protobuf.ByteString getTargetedUserDomainsBytes(int index) { + return targetedUserDomains_.getByteString(index); + } + + public static final int EXCLUDED_USER_DOMAINS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList excludedUserDomains_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. A list of user domains that should be excluded.
+   * 
+ * + * repeated string excluded_user_domains = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the excludedUserDomains. + */ + public com.google.protobuf.ProtocolStringList getExcludedUserDomainsList() { + return excludedUserDomains_; + } + + /** + * + * + *
+   * Optional. A list of user domains that should be excluded.
+   * 
+ * + * repeated string excluded_user_domains = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of excludedUserDomains. + */ + public int getExcludedUserDomainsCount() { + return excludedUserDomains_.size(); + } + + /** + * + * + *
+   * Optional. A list of user domains that should be excluded.
+   * 
+ * + * repeated string excluded_user_domains = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The excludedUserDomains at the given index. + */ + public java.lang.String getExcludedUserDomains(int index) { + return excludedUserDomains_.get(index); + } + + /** + * + * + *
+   * Optional. A list of user domains that should be excluded.
+   * 
+ * + * repeated string excluded_user_domains = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedUserDomains at the given index. + */ + public com.google.protobuf.ByteString getExcludedUserDomainsBytes(int index) { + return excludedUserDomains_.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 < targetedUserDomains_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, targetedUserDomains_.getRaw(i)); + } + for (int i = 0; i < excludedUserDomains_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, excludedUserDomains_.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 < targetedUserDomains_.size(); i++) { + dataSize += computeStringSizeNoTag(targetedUserDomains_.getRaw(i)); + } + size += dataSize; + size += 1 * getTargetedUserDomainsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < excludedUserDomains_.size(); i++) { + dataSize += computeStringSizeNoTag(excludedUserDomains_.getRaw(i)); + } + size += dataSize; + size += 1 * getExcludedUserDomainsList().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.admanager.v1.UserDomainTargeting)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.UserDomainTargeting other = + (com.google.ads.admanager.v1.UserDomainTargeting) obj; + + if (!getTargetedUserDomainsList().equals(other.getTargetedUserDomainsList())) return false; + if (!getExcludedUserDomainsList().equals(other.getExcludedUserDomainsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTargetedUserDomainsCount() > 0) { + hash = (37 * hash) + TARGETED_USER_DOMAINS_FIELD_NUMBER; + hash = (53 * hash) + getTargetedUserDomainsList().hashCode(); + } + if (getExcludedUserDomainsCount() > 0) { + hash = (37 * hash) + EXCLUDED_USER_DOMAINS_FIELD_NUMBER; + hash = (53 * hash) + getExcludedUserDomainsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.UserDomainTargeting parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.UserDomainTargeting 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.admanager.v1.UserDomainTargeting parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.UserDomainTargeting parseFrom( + 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.admanager.v1.UserDomainTargeting parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.UserDomainTargeting parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.UserDomainTargeting parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.UserDomainTargeting parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.UserDomainTargeting parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.UserDomainTargeting parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.UserDomainTargeting parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.UserDomainTargeting parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.UserDomainTargeting prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * User Domain Targeting
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.UserDomainTargeting} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.UserDomainTargeting) + com.google.ads.admanager.v1.UserDomainTargetingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_UserDomainTargeting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_UserDomainTargeting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.UserDomainTargeting.class, + com.google.ads.admanager.v1.UserDomainTargeting.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.UserDomainTargeting.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + targetedUserDomains_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludedUserDomains_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_UserDomainTargeting_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.UserDomainTargeting getDefaultInstanceForType() { + return com.google.ads.admanager.v1.UserDomainTargeting.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.UserDomainTargeting build() { + com.google.ads.admanager.v1.UserDomainTargeting result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.UserDomainTargeting buildPartial() { + com.google.ads.admanager.v1.UserDomainTargeting result = + new com.google.ads.admanager.v1.UserDomainTargeting(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.UserDomainTargeting result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + targetedUserDomains_.makeImmutable(); + result.targetedUserDomains_ = targetedUserDomains_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + excludedUserDomains_.makeImmutable(); + result.excludedUserDomains_ = excludedUserDomains_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.UserDomainTargeting) { + return mergeFrom((com.google.ads.admanager.v1.UserDomainTargeting) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.UserDomainTargeting other) { + if (other == com.google.ads.admanager.v1.UserDomainTargeting.getDefaultInstance()) + return this; + if (!other.targetedUserDomains_.isEmpty()) { + if (targetedUserDomains_.isEmpty()) { + targetedUserDomains_ = other.targetedUserDomains_; + bitField0_ |= 0x00000001; + } else { + ensureTargetedUserDomainsIsMutable(); + targetedUserDomains_.addAll(other.targetedUserDomains_); + } + onChanged(); + } + if (!other.excludedUserDomains_.isEmpty()) { + if (excludedUserDomains_.isEmpty()) { + excludedUserDomains_ = other.excludedUserDomains_; + bitField0_ |= 0x00000002; + } else { + ensureExcludedUserDomainsIsMutable(); + excludedUserDomains_.addAll(other.excludedUserDomains_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + ensureTargetedUserDomainsIsMutable(); + targetedUserDomains_.add(s); + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureExcludedUserDomainsIsMutable(); + excludedUserDomains_.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 targetedUserDomains_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureTargetedUserDomainsIsMutable() { + if (!targetedUserDomains_.isModifiable()) { + targetedUserDomains_ = new com.google.protobuf.LazyStringArrayList(targetedUserDomains_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
+     * Optional. A list of user domains that should be targeted/included.
+     * 
+ * + * repeated string targeted_user_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the targetedUserDomains. + */ + public com.google.protobuf.ProtocolStringList getTargetedUserDomainsList() { + targetedUserDomains_.makeImmutable(); + return targetedUserDomains_; + } + + /** + * + * + *
+     * Optional. A list of user domains that should be targeted/included.
+     * 
+ * + * repeated string targeted_user_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of targetedUserDomains. + */ + public int getTargetedUserDomainsCount() { + return targetedUserDomains_.size(); + } + + /** + * + * + *
+     * Optional. A list of user domains that should be targeted/included.
+     * 
+ * + * repeated string targeted_user_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The targetedUserDomains at the given index. + */ + public java.lang.String getTargetedUserDomains(int index) { + return targetedUserDomains_.get(index); + } + + /** + * + * + *
+     * Optional. A list of user domains that should be targeted/included.
+     * 
+ * + * repeated string targeted_user_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the targetedUserDomains at the given index. + */ + public com.google.protobuf.ByteString getTargetedUserDomainsBytes(int index) { + return targetedUserDomains_.getByteString(index); + } + + /** + * + * + *
+     * Optional. A list of user domains that should be targeted/included.
+     * 
+ * + * repeated string targeted_user_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The targetedUserDomains to set. + * @return This builder for chaining. + */ + public Builder setTargetedUserDomains(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetedUserDomainsIsMutable(); + targetedUserDomains_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of user domains that should be targeted/included.
+     * 
+ * + * repeated string targeted_user_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The targetedUserDomains to add. + * @return This builder for chaining. + */ + public Builder addTargetedUserDomains(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetedUserDomainsIsMutable(); + targetedUserDomains_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of user domains that should be targeted/included.
+     * 
+ * + * repeated string targeted_user_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The targetedUserDomains to add. + * @return This builder for chaining. + */ + public Builder addAllTargetedUserDomains(java.lang.Iterable values) { + ensureTargetedUserDomainsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetedUserDomains_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of user domains that should be targeted/included.
+     * 
+ * + * repeated string targeted_user_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearTargetedUserDomains() { + targetedUserDomains_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of user domains that should be targeted/included.
+     * 
+ * + * repeated string targeted_user_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the targetedUserDomains to add. + * @return This builder for chaining. + */ + public Builder addTargetedUserDomainsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTargetedUserDomainsIsMutable(); + targetedUserDomains_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList excludedUserDomains_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureExcludedUserDomainsIsMutable() { + if (!excludedUserDomains_.isModifiable()) { + excludedUserDomains_ = new com.google.protobuf.LazyStringArrayList(excludedUserDomains_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
+     * Optional. A list of user domains that should be excluded.
+     * 
+ * + * repeated string excluded_user_domains = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the excludedUserDomains. + */ + public com.google.protobuf.ProtocolStringList getExcludedUserDomainsList() { + excludedUserDomains_.makeImmutable(); + return excludedUserDomains_; + } + + /** + * + * + *
+     * Optional. A list of user domains that should be excluded.
+     * 
+ * + * repeated string excluded_user_domains = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of excludedUserDomains. + */ + public int getExcludedUserDomainsCount() { + return excludedUserDomains_.size(); + } + + /** + * + * + *
+     * Optional. A list of user domains that should be excluded.
+     * 
+ * + * repeated string excluded_user_domains = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The excludedUserDomains at the given index. + */ + public java.lang.String getExcludedUserDomains(int index) { + return excludedUserDomains_.get(index); + } + + /** + * + * + *
+     * Optional. A list of user domains that should be excluded.
+     * 
+ * + * repeated string excluded_user_domains = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedUserDomains at the given index. + */ + public com.google.protobuf.ByteString getExcludedUserDomainsBytes(int index) { + return excludedUserDomains_.getByteString(index); + } + + /** + * + * + *
+     * Optional. A list of user domains that should be excluded.
+     * 
+ * + * repeated string excluded_user_domains = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The excludedUserDomains to set. + * @return This builder for chaining. + */ + public Builder setExcludedUserDomains(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedUserDomainsIsMutable(); + excludedUserDomains_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of user domains that should be excluded.
+     * 
+ * + * repeated string excluded_user_domains = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The excludedUserDomains to add. + * @return This builder for chaining. + */ + public Builder addExcludedUserDomains(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedUserDomainsIsMutable(); + excludedUserDomains_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of user domains that should be excluded.
+     * 
+ * + * repeated string excluded_user_domains = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The excludedUserDomains to add. + * @return This builder for chaining. + */ + public Builder addAllExcludedUserDomains(java.lang.Iterable values) { + ensureExcludedUserDomainsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, excludedUserDomains_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of user domains that should be excluded.
+     * 
+ * + * repeated string excluded_user_domains = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearExcludedUserDomains() { + excludedUserDomains_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of user domains that should be excluded.
+     * 
+ * + * repeated string excluded_user_domains = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the excludedUserDomains to add. + * @return This builder for chaining. + */ + public Builder addExcludedUserDomainsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureExcludedUserDomainsIsMutable(); + excludedUserDomains_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.UserDomainTargeting) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.UserDomainTargeting) + private static final com.google.ads.admanager.v1.UserDomainTargeting DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.UserDomainTargeting(); + } + + public static com.google.ads.admanager.v1.UserDomainTargeting getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserDomainTargeting parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.UserDomainTargeting getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UserDomainTargetingOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UserDomainTargetingOrBuilder.java new file mode 100644 index 000000000000..1b674c1e0ce7 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UserDomainTargetingOrBuilder.java @@ -0,0 +1,142 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface UserDomainTargetingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.UserDomainTargeting) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. A list of user domains that should be targeted/included.
+   * 
+ * + * repeated string targeted_user_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the targetedUserDomains. + */ + java.util.List getTargetedUserDomainsList(); + + /** + * + * + *
+   * Optional. A list of user domains that should be targeted/included.
+   * 
+ * + * repeated string targeted_user_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of targetedUserDomains. + */ + int getTargetedUserDomainsCount(); + + /** + * + * + *
+   * Optional. A list of user domains that should be targeted/included.
+   * 
+ * + * repeated string targeted_user_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The targetedUserDomains at the given index. + */ + java.lang.String getTargetedUserDomains(int index); + + /** + * + * + *
+   * Optional. A list of user domains that should be targeted/included.
+   * 
+ * + * repeated string targeted_user_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the targetedUserDomains at the given index. + */ + com.google.protobuf.ByteString getTargetedUserDomainsBytes(int index); + + /** + * + * + *
+   * Optional. A list of user domains that should be excluded.
+   * 
+ * + * repeated string excluded_user_domains = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the excludedUserDomains. + */ + java.util.List getExcludedUserDomainsList(); + + /** + * + * + *
+   * Optional. A list of user domains that should be excluded.
+   * 
+ * + * repeated string excluded_user_domains = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of excludedUserDomains. + */ + int getExcludedUserDomainsCount(); + + /** + * + * + *
+   * Optional. A list of user domains that should be excluded.
+   * 
+ * + * repeated string excluded_user_domains = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The excludedUserDomains at the given index. + */ + java.lang.String getExcludedUserDomains(int index); + + /** + * + * + *
+   * Optional. A list of user domains that should be excluded.
+   * 
+ * + * repeated string excluded_user_domains = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedUserDomains at the given index. + */ + com.google.protobuf.ByteString getExcludedUserDomainsBytes(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UserMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UserMessagesProto.java index 8695384a24f9..521eb8648edc 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UserMessagesProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UserMessagesProto.java @@ -44,25 +44,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n" + "+google/ads/admanager/v1/user_messages." + "proto\022\027google.ads.admanager.v1\032\037google/a" - + "pi/field_behavior.proto\032\031google/api/resource.proto\"\337\002\n" + + "pi/field_behavior.proto\032\031google/api/resource.proto\"\204\004\n" + "\004User\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\010\022\024\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" + "\007user_id\030\n" - + " \001(\003B\003\340A\003\022\031\n" - + "\014display_name\030\002 \001(\tB\003\340A\002\022\022\n" - + "\005email\030\003 \001(\tB\003\340A\002\0223\n" + + " \001(\003B\003\340A\003H\000\210\001\001\022\036\n" + + "\014display_name\030\002 \001(\tB\003\340A\002H\001\210\001\001\022\027\n" + + "\005email\030\003 \001(\tB\003\340A\002H\002\210\001\001\0228\n" + "\004role\030\004 \001(\tB%\340A\002\372A\037\n" - + "\035admanager.googleapis.com/Role\022\023\n" - + "\006active\030\006 \001(\010B\003\340A\003\022\030\n" - + "\013external_id\030\007 \001(\tB\003\340A\001\022\034\n" - + "\017service_account\030\010 \001(\010B\003\340A\003\022&\n" - + "\031orders_ui_local_time_zone\030\t \001(\tB\003\340A\001:U\352AR\n" + + "\035admanager.googleapis.com/RoleH\003\210\001\001\022\030\n" + + "\006active\030\006 \001(\010B\003\340A\003H\004\210\001\001\022\035\n" + + "\013external_id\030\007 \001(\tB\003\340A\001H\005\210\001\001\022!\n" + + "\017service_account\030\010 \001(\010B\003\340A\003H\006\210\001\001\022+\n" + + "\031orders_ui_local_time_zone\030\t \001(\tB\003\340A\001H\007\210\001\001:U\352AR\n" + "\035admanager.googleapis.com/User\022$netwo" - + "rks/{network_code}/users/{user}*\005users2\004userB\305\001\n" - + "\033com.google.ads.admanager.v1B\021UserMessagesProtoP\001Z@google.golang.org/gen" - + "proto/googleapis/ads/admanager/v1;admana" - + "ger\252\002\027Google.Ads.AdManager.V1\312\002\027Google\\A" - + "ds\\AdManager\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" + + "rks/{network_code}/users/{user}*\005users2\004userB\n\n" + + "\010_user_idB\017\n\r" + + "_display_nameB\010\n" + + "\006_emailB\007\n" + + "\005_roleB\t\n" + + "\007_activeB\016\n" + + "\014_external_idB\022\n" + + "\020_service_accountB\034\n" + + "\032_orders_ui_local_time_zoneB\305\001\n" + + "\033com.google.ads.admanager.v1B\021UserMessagesProtoP\001Z@google.golang.or" + + "g/genproto/googleapis/ads/admanager/v1;a" + + "dmanager\252\002\027Google.Ads.AdManager.V1\312\002\027Goo" + + "gle\\Ads\\AdManager\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UserOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UserOrBuilder.java index 1a28c6e11022..d33367532f79 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UserOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UserOrBuilder.java @@ -59,7 +59,20 @@ public interface UserOrBuilder * Output only. `User` ID. * * - * int64 user_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional int64 user_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the userId field is set. + */ + boolean hasUserId(); + + /** + * + * + *
+   * Output only. `User` ID.
+   * 
+ * + * optional int64 user_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The userId. */ @@ -72,7 +85,20 @@ public interface UserOrBuilder * Required. The name of the User. It has a maximum length of 128 characters. * * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the displayName field is set. + */ + boolean hasDisplayName(); + + /** + * + * + *
+   * Required. The name of the User. It has a maximum length of 128 characters.
+   * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The displayName. */ @@ -85,7 +111,7 @@ public interface UserOrBuilder * Required. The name of the User. It has a maximum length of 128 characters. * * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for displayName. */ @@ -99,7 +125,21 @@ public interface UserOrBuilder * you must already have a Google Account. * * - * string email = 3 [(.google.api.field_behavior) = REQUIRED]; + * optional string email = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the email field is set. + */ + boolean hasEmail(); + + /** + * + * + *
+   * Required. The email or login of the User. In order to create a new user,
+   * you must already have a Google Account.
+   * 
+ * + * optional string email = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The email. */ @@ -113,7 +153,7 @@ public interface UserOrBuilder * you must already have a Google Account. * * - * string email = 3 [(.google.api.field_behavior) = REQUIRED]; + * optional string email = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for email. */ @@ -128,7 +168,23 @@ public interface UserOrBuilder * * * - * string role = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * optional string role = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the role field is set. + */ + boolean hasRole(); + + /** + * + * + *
+   * Required. The unique Role ID of the User. Roles that are created by Google
+   * will have negative IDs.
+   * 
+ * + * + * optional string role = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The role. @@ -144,7 +200,7 @@ public interface UserOrBuilder * * * - * string role = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * optional string role = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for role. @@ -159,7 +215,21 @@ public interface UserOrBuilder * cannot log in to the system or perform any operations. * * - * bool active = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool active = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the active field is set. + */ + boolean hasActive(); + + /** + * + * + *
+   * Output only. Specifies whether or not the User is active. An inactive user
+   * cannot log in to the system or perform any operations.
+   * 
+ * + * optional bool active = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The active. */ @@ -173,7 +243,21 @@ public interface UserOrBuilder * This attribute has a maximum length of 255 characters. * * - * string external_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * optional string external_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the externalId field is set. + */ + boolean hasExternalId(); + + /** + * + * + *
+   * Optional. An identifier for the User that is meaningful to the publisher.
+   * This attribute has a maximum length of 255 characters.
+   * 
+ * + * optional string external_id = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The externalId. */ @@ -187,7 +271,7 @@ public interface UserOrBuilder * This attribute has a maximum length of 255 characters. * * - * string external_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * optional string external_id = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for externalId. */ @@ -201,7 +285,21 @@ public interface UserOrBuilder * Service account users can only be added through the UI. * * - * bool service_account = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool service_account = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the serviceAccount field is set. + */ + boolean hasServiceAccount(); + + /** + * + * + *
+   * Output only. Whether the user is an OAuth2 service account user.
+   * Service account users can only be added through the UI.
+   * 
+ * + * optional bool service_account = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The serviceAccount. */ @@ -218,7 +316,26 @@ public interface UserOrBuilder * times returned in API responses. * * - * string orders_ui_local_time_zone = 9 [(.google.api.field_behavior) = OPTIONAL]; + * optional string orders_ui_local_time_zone = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ordersUiLocalTimeZone field is set. + */ + boolean hasOrdersUiLocalTimeZone(); + + /** + * + * + *
+   * Optional. The IANA Time Zone Database time zone, e.g. "America/New_York",
+   * used in the orders and line items UI for this User. If not provided, the UI
+   * then defaults to using the Network's timezone. This setting only affects
+   * the UI for this user and does not affect the timezone of any dates and
+   * times returned in API responses.
+   * 
+ * + * optional string orders_ui_local_time_zone = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The ordersUiLocalTimeZone. */ @@ -235,7 +352,8 @@ public interface UserOrBuilder * times returned in API responses. * * - * string orders_ui_local_time_zone = 9 [(.google.api.field_behavior) = OPTIONAL]; + * optional string orders_ui_local_time_zone = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The bytes for ordersUiLocalTimeZone. */ diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UserServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UserServiceProto.java index e9f7ce8c0f63..d8d3a09c0f11 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UserServiceProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UserServiceProto.java @@ -48,17 +48,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ent.proto\032\037google/api/field_behavior.pro" + "to\032\031google/api/resource.proto\"E\n\016GetUser" + "Request\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035admanager" - + ".googleapis.com/User2\253\001\n\013UserService\022\177\n\007" + + ".googleapis.com/User2\327\001\n\013UserService\022\177\n\007" + "GetUser\022\'.google.ads.admanager.v1.GetUse" + "rRequest\032\035.google.ads.admanager.v1.User\"" + ",\332A\004name\202\323\344\223\002\037\022\035/v1/{name=networks/*/use" - + "rs/*}\032\033\312A\030admanager.googleapis.comB\304\001\n\033c" - + "om.google.ads.admanager.v1B\020UserServiceP" - + "rotoP\001Z@google.golang.org/genproto/googl" - + "eapis/ads/admanager/v1;admanager\252\002\027Googl" - + "e.Ads.AdManager.V1\312\002\027Google\\Ads\\AdManage" - + "r\\V1\352\002\032Google::Ads::AdManager::V1b\006proto" - + "3" + + "rs/*}\032G\312A\030admanager.googleapis.com\322A)htt" + + "ps://www.googleapis.com/auth/admanagerB\304" + + "\001\n\033com.google.ads.admanager.v1B\020UserServ" + + "iceProtoP\001Z@google.golang.org/genproto/g" + + "oogleapis/ads/admanager/v1;admanager\252\002\027G" + + "oogle.Ads.AdManager.V1\312\002\027Google\\Ads\\AdMa" + + "nager\\V1\352\002\032Google::Ads::AdManager::V1b\006p" + + "roto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -84,6 +85,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.AnnotationsProto.http); registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/VideoPosition.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/VideoPosition.java new file mode 100644 index 000000000000..9d17eded5c4a --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/VideoPosition.java @@ -0,0 +1,1368 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Video Position Targeting Criterion
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.VideoPosition} + */ +public final class VideoPosition extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.VideoPosition) + VideoPositionOrBuilder { + private static final long serialVersionUID = 0L; + + // Use VideoPosition.newBuilder() to construct. + private VideoPosition(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private VideoPosition() { + positionType_ = 0; + bumperType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VideoPosition(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_VideoPosition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_VideoPosition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.VideoPosition.class, + com.google.ads.admanager.v1.VideoPosition.Builder.class); + } + + private int bitField0_; + public static final int MIDROLL_INDEX_FIELD_NUMBER = 1; + private long midrollIndex_ = 0L; + + /** + * + * + *
+   * Optional. The index of the mid-roll to target. This field is ignored when
+   * targeting any video position (e.g. position_type) other than MIDROLL.
+   * 
+ * + * optional int64 midroll_index = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the midrollIndex field is set. + */ + @java.lang.Override + public boolean hasMidrollIndex() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. The index of the mid-roll to target. This field is ignored when
+   * targeting any video position (e.g. position_type) other than MIDROLL.
+   * 
+ * + * optional int64 midroll_index = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The midrollIndex. + */ + @java.lang.Override + public long getMidrollIndex() { + return midrollIndex_; + } + + public static final int REVERSE_MIDROLL_INDEX_FIELD_NUMBER = 2; + private long reverseMidrollIndex_ = 0L; + + /** + * + * + *
+   * Optional. The index from the back of the pod of the mid-roll to target.
+   * This field is ignored when targeting any video position (e.g.
+   * position_type) other than MIDROLL or if targeting a specific midroll index
+   * (e.g. midroll_index != 0).
+   * 
+ * + * optional int64 reverse_midroll_index = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the reverseMidrollIndex field is set. + */ + @java.lang.Override + public boolean hasReverseMidrollIndex() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. The index from the back of the pod of the mid-roll to target.
+   * This field is ignored when targeting any video position (e.g.
+   * position_type) other than MIDROLL or if targeting a specific midroll index
+   * (e.g. midroll_index != 0).
+   * 
+ * + * optional int64 reverse_midroll_index = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The reverseMidrollIndex. + */ + @java.lang.Override + public long getReverseMidrollIndex() { + return reverseMidrollIndex_; + } + + public static final int POD_POSITION_FIELD_NUMBER = 3; + private long podPosition_ = 0L; + + /** + * + * + *
+   * Optional. The video position within a pod to target. This field must be
+   * unset in order to target a specific video position (e.g. position_type),
+   * bumper type (e.g. bumper_type), or custom ad spot (e.g. custom_spot_id).
+   * 
+ * + * optional int64 pod_position = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the podPosition field is set. + */ + @java.lang.Override + public boolean hasPodPosition() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Optional. The video position within a pod to target. This field must be
+   * unset in order to target a specific video position (e.g. position_type),
+   * bumper type (e.g. bumper_type), or custom ad spot (e.g. custom_spot_id).
+   * 
+ * + * optional int64 pod_position = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The podPosition. + */ + @java.lang.Override + public long getPodPosition() { + return podPosition_; + } + + public static final int POSITION_TYPE_FIELD_NUMBER = 5; + private int positionType_ = 0; + + /** + * + * + *
+   * Optional. The position within a video to target. A video ad can target a
+   * position (pre-roll, all mid-rolls, or post-roll) or a specific mid-roll
+   * index.
+   * 
+ * + * + * optional .google.ads.admanager.v1.VideoPositionEnum.VideoPosition position_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the positionType field is set. + */ + @java.lang.Override + public boolean hasPositionType() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Optional. The position within a video to target. A video ad can target a
+   * position (pre-roll, all mid-rolls, or post-roll) or a specific mid-roll
+   * index.
+   * 
+ * + * + * optional .google.ads.admanager.v1.VideoPositionEnum.VideoPosition position_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for positionType. + */ + @java.lang.Override + public int getPositionTypeValue() { + return positionType_; + } + + /** + * + * + *
+   * Optional. The position within a video to target. A video ad can target a
+   * position (pre-roll, all mid-rolls, or post-roll) or a specific mid-roll
+   * index.
+   * 
+ * + * + * optional .google.ads.admanager.v1.VideoPositionEnum.VideoPosition position_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The positionType. + */ + @java.lang.Override + public com.google.ads.admanager.v1.VideoPositionEnum.VideoPosition getPositionType() { + com.google.ads.admanager.v1.VideoPositionEnum.VideoPosition result = + com.google.ads.admanager.v1.VideoPositionEnum.VideoPosition.forNumber(positionType_); + return result == null + ? com.google.ads.admanager.v1.VideoPositionEnum.VideoPosition.UNRECOGNIZED + : result; + } + + public static final int BUMPER_TYPE_FIELD_NUMBER = 6; + private int bumperType_ = 0; + + /** + * + * + *
+   * Optional. The video bumper type to target. This field must be unset in
+   * order to target a specific video position (e.g. position_type), pod
+   * position (e.g. pod_position), or custom ad spot (e.g. custom_spot_id).
+   * 
+ * + * + * optional .google.ads.admanager.v1.TargetedVideoBumperTypeEnum.TargetedVideoBumperType bumper_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the bumperType field is set. + */ + @java.lang.Override + public boolean hasBumperType() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Optional. The video bumper type to target. This field must be unset in
+   * order to target a specific video position (e.g. position_type), pod
+   * position (e.g. pod_position), or custom ad spot (e.g. custom_spot_id).
+   * 
+ * + * + * optional .google.ads.admanager.v1.TargetedVideoBumperTypeEnum.TargetedVideoBumperType bumper_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for bumperType. + */ + @java.lang.Override + public int getBumperTypeValue() { + return bumperType_; + } + + /** + * + * + *
+   * Optional. The video bumper type to target. This field must be unset in
+   * order to target a specific video position (e.g. position_type), pod
+   * position (e.g. pod_position), or custom ad spot (e.g. custom_spot_id).
+   * 
+ * + * + * optional .google.ads.admanager.v1.TargetedVideoBumperTypeEnum.TargetedVideoBumperType bumper_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bumperType. + */ + @java.lang.Override + public com.google.ads.admanager.v1.TargetedVideoBumperTypeEnum.TargetedVideoBumperType + getBumperType() { + com.google.ads.admanager.v1.TargetedVideoBumperTypeEnum.TargetedVideoBumperType result = + com.google.ads.admanager.v1.TargetedVideoBumperTypeEnum.TargetedVideoBumperType.forNumber( + bumperType_); + return result == null + ? com.google.ads.admanager.v1.TargetedVideoBumperTypeEnum.TargetedVideoBumperType + .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.writeInt64(1, midrollIndex_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeInt64(2, reverseMidrollIndex_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeInt64(3, podPosition_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeEnum(5, positionType_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeEnum(6, bumperType_); + } + 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.computeInt64Size(1, midrollIndex_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, reverseMidrollIndex_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, podPosition_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, positionType_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, bumperType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.admanager.v1.VideoPosition)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.VideoPosition other = + (com.google.ads.admanager.v1.VideoPosition) obj; + + if (hasMidrollIndex() != other.hasMidrollIndex()) return false; + if (hasMidrollIndex()) { + if (getMidrollIndex() != other.getMidrollIndex()) return false; + } + if (hasReverseMidrollIndex() != other.hasReverseMidrollIndex()) return false; + if (hasReverseMidrollIndex()) { + if (getReverseMidrollIndex() != other.getReverseMidrollIndex()) return false; + } + if (hasPodPosition() != other.hasPodPosition()) return false; + if (hasPodPosition()) { + if (getPodPosition() != other.getPodPosition()) return false; + } + if (hasPositionType() != other.hasPositionType()) return false; + if (hasPositionType()) { + if (positionType_ != other.positionType_) return false; + } + if (hasBumperType() != other.hasBumperType()) return false; + if (hasBumperType()) { + if (bumperType_ != other.bumperType_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMidrollIndex()) { + hash = (37 * hash) + MIDROLL_INDEX_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMidrollIndex()); + } + if (hasReverseMidrollIndex()) { + hash = (37 * hash) + REVERSE_MIDROLL_INDEX_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getReverseMidrollIndex()); + } + if (hasPodPosition()) { + hash = (37 * hash) + POD_POSITION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPodPosition()); + } + if (hasPositionType()) { + hash = (37 * hash) + POSITION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + positionType_; + } + if (hasBumperType()) { + hash = (37 * hash) + BUMPER_TYPE_FIELD_NUMBER; + hash = (53 * hash) + bumperType_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.VideoPosition parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.VideoPosition 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.admanager.v1.VideoPosition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.VideoPosition parseFrom( + 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.admanager.v1.VideoPosition parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.VideoPosition parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.VideoPosition parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.VideoPosition parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.VideoPosition parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.VideoPosition parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.VideoPosition parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.VideoPosition parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.VideoPosition prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Video Position Targeting Criterion
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.VideoPosition} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.VideoPosition) + com.google.ads.admanager.v1.VideoPositionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_VideoPosition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_VideoPosition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.VideoPosition.class, + com.google.ads.admanager.v1.VideoPosition.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.VideoPosition.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + midrollIndex_ = 0L; + reverseMidrollIndex_ = 0L; + podPosition_ = 0L; + positionType_ = 0; + bumperType_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_VideoPosition_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.VideoPosition getDefaultInstanceForType() { + return com.google.ads.admanager.v1.VideoPosition.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.VideoPosition build() { + com.google.ads.admanager.v1.VideoPosition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.VideoPosition buildPartial() { + com.google.ads.admanager.v1.VideoPosition result = + new com.google.ads.admanager.v1.VideoPosition(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.VideoPosition result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.midrollIndex_ = midrollIndex_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.reverseMidrollIndex_ = reverseMidrollIndex_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.podPosition_ = podPosition_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.positionType_ = positionType_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.bumperType_ = bumperType_; + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.VideoPosition) { + return mergeFrom((com.google.ads.admanager.v1.VideoPosition) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.VideoPosition other) { + if (other == com.google.ads.admanager.v1.VideoPosition.getDefaultInstance()) return this; + if (other.hasMidrollIndex()) { + setMidrollIndex(other.getMidrollIndex()); + } + if (other.hasReverseMidrollIndex()) { + setReverseMidrollIndex(other.getReverseMidrollIndex()); + } + if (other.hasPodPosition()) { + setPodPosition(other.getPodPosition()); + } + if (other.hasPositionType()) { + setPositionType(other.getPositionType()); + } + if (other.hasBumperType()) { + setBumperType(other.getBumperType()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + midrollIndex_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + reverseMidrollIndex_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + podPosition_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 40: + { + positionType_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 40 + case 48: + { + bumperType_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private long midrollIndex_; + + /** + * + * + *
+     * Optional. The index of the mid-roll to target. This field is ignored when
+     * targeting any video position (e.g. position_type) other than MIDROLL.
+     * 
+ * + * optional int64 midroll_index = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the midrollIndex field is set. + */ + @java.lang.Override + public boolean hasMidrollIndex() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. The index of the mid-roll to target. This field is ignored when
+     * targeting any video position (e.g. position_type) other than MIDROLL.
+     * 
+ * + * optional int64 midroll_index = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The midrollIndex. + */ + @java.lang.Override + public long getMidrollIndex() { + return midrollIndex_; + } + + /** + * + * + *
+     * Optional. The index of the mid-roll to target. This field is ignored when
+     * targeting any video position (e.g. position_type) other than MIDROLL.
+     * 
+ * + * optional int64 midroll_index = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The midrollIndex to set. + * @return This builder for chaining. + */ + public Builder setMidrollIndex(long value) { + + midrollIndex_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The index of the mid-roll to target. This field is ignored when
+     * targeting any video position (e.g. position_type) other than MIDROLL.
+     * 
+ * + * optional int64 midroll_index = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMidrollIndex() { + bitField0_ = (bitField0_ & ~0x00000001); + midrollIndex_ = 0L; + onChanged(); + return this; + } + + private long reverseMidrollIndex_; + + /** + * + * + *
+     * Optional. The index from the back of the pod of the mid-roll to target.
+     * This field is ignored when targeting any video position (e.g.
+     * position_type) other than MIDROLL or if targeting a specific midroll index
+     * (e.g. midroll_index != 0).
+     * 
+ * + * optional int64 reverse_midroll_index = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the reverseMidrollIndex field is set. + */ + @java.lang.Override + public boolean hasReverseMidrollIndex() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. The index from the back of the pod of the mid-roll to target.
+     * This field is ignored when targeting any video position (e.g.
+     * position_type) other than MIDROLL or if targeting a specific midroll index
+     * (e.g. midroll_index != 0).
+     * 
+ * + * optional int64 reverse_midroll_index = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The reverseMidrollIndex. + */ + @java.lang.Override + public long getReverseMidrollIndex() { + return reverseMidrollIndex_; + } + + /** + * + * + *
+     * Optional. The index from the back of the pod of the mid-roll to target.
+     * This field is ignored when targeting any video position (e.g.
+     * position_type) other than MIDROLL or if targeting a specific midroll index
+     * (e.g. midroll_index != 0).
+     * 
+ * + * optional int64 reverse_midroll_index = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The reverseMidrollIndex to set. + * @return This builder for chaining. + */ + public Builder setReverseMidrollIndex(long value) { + + reverseMidrollIndex_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The index from the back of the pod of the mid-roll to target.
+     * This field is ignored when targeting any video position (e.g.
+     * position_type) other than MIDROLL or if targeting a specific midroll index
+     * (e.g. midroll_index != 0).
+     * 
+ * + * optional int64 reverse_midroll_index = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearReverseMidrollIndex() { + bitField0_ = (bitField0_ & ~0x00000002); + reverseMidrollIndex_ = 0L; + onChanged(); + return this; + } + + private long podPosition_; + + /** + * + * + *
+     * Optional. The video position within a pod to target. This field must be
+     * unset in order to target a specific video position (e.g. position_type),
+     * bumper type (e.g. bumper_type), or custom ad spot (e.g. custom_spot_id).
+     * 
+ * + * optional int64 pod_position = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the podPosition field is set. + */ + @java.lang.Override + public boolean hasPodPosition() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Optional. The video position within a pod to target. This field must be
+     * unset in order to target a specific video position (e.g. position_type),
+     * bumper type (e.g. bumper_type), or custom ad spot (e.g. custom_spot_id).
+     * 
+ * + * optional int64 pod_position = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The podPosition. + */ + @java.lang.Override + public long getPodPosition() { + return podPosition_; + } + + /** + * + * + *
+     * Optional. The video position within a pod to target. This field must be
+     * unset in order to target a specific video position (e.g. position_type),
+     * bumper type (e.g. bumper_type), or custom ad spot (e.g. custom_spot_id).
+     * 
+ * + * optional int64 pod_position = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The podPosition to set. + * @return This builder for chaining. + */ + public Builder setPodPosition(long value) { + + podPosition_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The video position within a pod to target. This field must be
+     * unset in order to target a specific video position (e.g. position_type),
+     * bumper type (e.g. bumper_type), or custom ad spot (e.g. custom_spot_id).
+     * 
+ * + * optional int64 pod_position = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPodPosition() { + bitField0_ = (bitField0_ & ~0x00000004); + podPosition_ = 0L; + onChanged(); + return this; + } + + private int positionType_ = 0; + + /** + * + * + *
+     * Optional. The position within a video to target. A video ad can target a
+     * position (pre-roll, all mid-rolls, or post-roll) or a specific mid-roll
+     * index.
+     * 
+ * + * + * optional .google.ads.admanager.v1.VideoPositionEnum.VideoPosition position_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the positionType field is set. + */ + @java.lang.Override + public boolean hasPositionType() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Optional. The position within a video to target. A video ad can target a
+     * position (pre-roll, all mid-rolls, or post-roll) or a specific mid-roll
+     * index.
+     * 
+ * + * + * optional .google.ads.admanager.v1.VideoPositionEnum.VideoPosition position_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for positionType. + */ + @java.lang.Override + public int getPositionTypeValue() { + return positionType_; + } + + /** + * + * + *
+     * Optional. The position within a video to target. A video ad can target a
+     * position (pre-roll, all mid-rolls, or post-roll) or a specific mid-roll
+     * index.
+     * 
+ * + * + * optional .google.ads.admanager.v1.VideoPositionEnum.VideoPosition position_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for positionType to set. + * @return This builder for chaining. + */ + public Builder setPositionTypeValue(int value) { + positionType_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The position within a video to target. A video ad can target a
+     * position (pre-roll, all mid-rolls, or post-roll) or a specific mid-roll
+     * index.
+     * 
+ * + * + * optional .google.ads.admanager.v1.VideoPositionEnum.VideoPosition position_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The positionType. + */ + @java.lang.Override + public com.google.ads.admanager.v1.VideoPositionEnum.VideoPosition getPositionType() { + com.google.ads.admanager.v1.VideoPositionEnum.VideoPosition result = + com.google.ads.admanager.v1.VideoPositionEnum.VideoPosition.forNumber(positionType_); + return result == null + ? com.google.ads.admanager.v1.VideoPositionEnum.VideoPosition.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. The position within a video to target. A video ad can target a
+     * position (pre-roll, all mid-rolls, or post-roll) or a specific mid-roll
+     * index.
+     * 
+ * + * + * optional .google.ads.admanager.v1.VideoPositionEnum.VideoPosition position_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The positionType to set. + * @return This builder for chaining. + */ + public Builder setPositionType( + com.google.ads.admanager.v1.VideoPositionEnum.VideoPosition value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + positionType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The position within a video to target. A video ad can target a
+     * position (pre-roll, all mid-rolls, or post-roll) or a specific mid-roll
+     * index.
+     * 
+ * + * + * optional .google.ads.admanager.v1.VideoPositionEnum.VideoPosition position_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearPositionType() { + bitField0_ = (bitField0_ & ~0x00000008); + positionType_ = 0; + onChanged(); + return this; + } + + private int bumperType_ = 0; + + /** + * + * + *
+     * Optional. The video bumper type to target. This field must be unset in
+     * order to target a specific video position (e.g. position_type), pod
+     * position (e.g. pod_position), or custom ad spot (e.g. custom_spot_id).
+     * 
+ * + * + * optional .google.ads.admanager.v1.TargetedVideoBumperTypeEnum.TargetedVideoBumperType bumper_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the bumperType field is set. + */ + @java.lang.Override + public boolean hasBumperType() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Optional. The video bumper type to target. This field must be unset in
+     * order to target a specific video position (e.g. position_type), pod
+     * position (e.g. pod_position), or custom ad spot (e.g. custom_spot_id).
+     * 
+ * + * + * optional .google.ads.admanager.v1.TargetedVideoBumperTypeEnum.TargetedVideoBumperType bumper_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for bumperType. + */ + @java.lang.Override + public int getBumperTypeValue() { + return bumperType_; + } + + /** + * + * + *
+     * Optional. The video bumper type to target. This field must be unset in
+     * order to target a specific video position (e.g. position_type), pod
+     * position (e.g. pod_position), or custom ad spot (e.g. custom_spot_id).
+     * 
+ * + * + * optional .google.ads.admanager.v1.TargetedVideoBumperTypeEnum.TargetedVideoBumperType bumper_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for bumperType to set. + * @return This builder for chaining. + */ + public Builder setBumperTypeValue(int value) { + bumperType_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The video bumper type to target. This field must be unset in
+     * order to target a specific video position (e.g. position_type), pod
+     * position (e.g. pod_position), or custom ad spot (e.g. custom_spot_id).
+     * 
+ * + * + * optional .google.ads.admanager.v1.TargetedVideoBumperTypeEnum.TargetedVideoBumperType bumper_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bumperType. + */ + @java.lang.Override + public com.google.ads.admanager.v1.TargetedVideoBumperTypeEnum.TargetedVideoBumperType + getBumperType() { + com.google.ads.admanager.v1.TargetedVideoBumperTypeEnum.TargetedVideoBumperType result = + com.google.ads.admanager.v1.TargetedVideoBumperTypeEnum.TargetedVideoBumperType.forNumber( + bumperType_); + return result == null + ? com.google.ads.admanager.v1.TargetedVideoBumperTypeEnum.TargetedVideoBumperType + .UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. The video bumper type to target. This field must be unset in
+     * order to target a specific video position (e.g. position_type), pod
+     * position (e.g. pod_position), or custom ad spot (e.g. custom_spot_id).
+     * 
+ * + * + * optional .google.ads.admanager.v1.TargetedVideoBumperTypeEnum.TargetedVideoBumperType bumper_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bumperType to set. + * @return This builder for chaining. + */ + public Builder setBumperType( + com.google.ads.admanager.v1.TargetedVideoBumperTypeEnum.TargetedVideoBumperType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + bumperType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The video bumper type to target. This field must be unset in
+     * order to target a specific video position (e.g. position_type), pod
+     * position (e.g. pod_position), or custom ad spot (e.g. custom_spot_id).
+     * 
+ * + * + * optional .google.ads.admanager.v1.TargetedVideoBumperTypeEnum.TargetedVideoBumperType bumper_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearBumperType() { + bitField0_ = (bitField0_ & ~0x00000010); + bumperType_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.VideoPosition) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.VideoPosition) + private static final com.google.ads.admanager.v1.VideoPosition DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.VideoPosition(); + } + + public static com.google.ads.admanager.v1.VideoPosition getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VideoPosition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.VideoPosition getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/VideoPositionEnum.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/VideoPositionEnum.java new file mode 100644 index 000000000000..1944afb20f3d --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/VideoPositionEnum.java @@ -0,0 +1,640 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/video_position_enum.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Wrapper message for
+ * [VideoPosition][google.ads.admanager.v1.VideoPositionEnum.VideoPosition]
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.VideoPositionEnum} + */ +public final class VideoPositionEnum extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.VideoPositionEnum) + VideoPositionEnumOrBuilder { + private static final long serialVersionUID = 0L; + + // Use VideoPositionEnum.newBuilder() to construct. + private VideoPositionEnum(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private VideoPositionEnum() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VideoPositionEnum(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.VideoPositionEnumProto + .internal_static_google_ads_admanager_v1_VideoPositionEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.VideoPositionEnumProto + .internal_static_google_ads_admanager_v1_VideoPositionEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.VideoPositionEnum.class, + com.google.ads.admanager.v1.VideoPositionEnum.Builder.class); + } + + /** + * + * + *
+   * Represents a targetable position within a video.
+   * 
+ * + * Protobuf enum {@code google.ads.admanager.v1.VideoPositionEnum.VideoPosition} + */ + public enum VideoPosition implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value. This value is unused.
+     * 
+ * + * VIDEO_POSITION_UNSPECIFIED = 0; + */ + VIDEO_POSITION_UNSPECIFIED(0), + /** + * + * + *
+     * Allow ad placement at any position within the video.
+     * 
+ * + * ALL = 1; + */ + ALL(1), + /** + * + * + *
+     * Target ad placement during the video.
+     * 
+ * + * MIDROLL = 2; + */ + MIDROLL(2), + /** + * + * + *
+     * Target ad placement after the video ends.
+     * 
+ * + * POSTROLL = 3; + */ + POSTROLL(3), + /** + * + * + *
+     * Target ad placement before the video starts.
+     * 
+ * + * PREROLL = 4; + */ + PREROLL(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value. This value is unused.
+     * 
+ * + * VIDEO_POSITION_UNSPECIFIED = 0; + */ + public static final int VIDEO_POSITION_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Allow ad placement at any position within the video.
+     * 
+ * + * ALL = 1; + */ + public static final int ALL_VALUE = 1; + + /** + * + * + *
+     * Target ad placement during the video.
+     * 
+ * + * MIDROLL = 2; + */ + public static final int MIDROLL_VALUE = 2; + + /** + * + * + *
+     * Target ad placement after the video ends.
+     * 
+ * + * POSTROLL = 3; + */ + public static final int POSTROLL_VALUE = 3; + + /** + * + * + *
+     * Target ad placement before the video starts.
+     * 
+ * + * PREROLL = 4; + */ + public static final int PREROLL_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static VideoPosition 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 VideoPosition forNumber(int value) { + switch (value) { + case 0: + return VIDEO_POSITION_UNSPECIFIED; + case 1: + return ALL; + case 2: + return MIDROLL; + case 3: + return POSTROLL; + case 4: + return PREROLL; + 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 VideoPosition findValueByNumber(int number) { + return VideoPosition.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.admanager.v1.VideoPositionEnum.getDescriptor().getEnumTypes().get(0); + } + + private static final VideoPosition[] VALUES = values(); + + public static VideoPosition 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 VideoPosition(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.admanager.v1.VideoPositionEnum.VideoPosition) + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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.admanager.v1.VideoPositionEnum)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.VideoPositionEnum other = + (com.google.ads.admanager.v1.VideoPositionEnum) 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.admanager.v1.VideoPositionEnum parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.VideoPositionEnum 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.admanager.v1.VideoPositionEnum parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.VideoPositionEnum parseFrom( + 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.admanager.v1.VideoPositionEnum parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.VideoPositionEnum parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.VideoPositionEnum parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.VideoPositionEnum parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.VideoPositionEnum parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.VideoPositionEnum parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.VideoPositionEnum parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.VideoPositionEnum parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.VideoPositionEnum prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Wrapper message for
+   * [VideoPosition][google.ads.admanager.v1.VideoPositionEnum.VideoPosition]
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.VideoPositionEnum} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.VideoPositionEnum) + com.google.ads.admanager.v1.VideoPositionEnumOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.VideoPositionEnumProto + .internal_static_google_ads_admanager_v1_VideoPositionEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.VideoPositionEnumProto + .internal_static_google_ads_admanager_v1_VideoPositionEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.VideoPositionEnum.class, + com.google.ads.admanager.v1.VideoPositionEnum.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.VideoPositionEnum.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.VideoPositionEnumProto + .internal_static_google_ads_admanager_v1_VideoPositionEnum_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.VideoPositionEnum getDefaultInstanceForType() { + return com.google.ads.admanager.v1.VideoPositionEnum.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.VideoPositionEnum build() { + com.google.ads.admanager.v1.VideoPositionEnum result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.VideoPositionEnum buildPartial() { + com.google.ads.admanager.v1.VideoPositionEnum result = + new com.google.ads.admanager.v1.VideoPositionEnum(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.VideoPositionEnum) { + return mergeFrom((com.google.ads.admanager.v1.VideoPositionEnum) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.VideoPositionEnum other) { + if (other == com.google.ads.admanager.v1.VideoPositionEnum.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.VideoPositionEnum) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.VideoPositionEnum) + private static final com.google.ads.admanager.v1.VideoPositionEnum DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.VideoPositionEnum(); + } + + public static com.google.ads.admanager.v1.VideoPositionEnum getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VideoPositionEnum parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.VideoPositionEnum getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/VideoPositionEnumOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/VideoPositionEnumOrBuilder.java new file mode 100644 index 000000000000..eab8ca30339c --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/VideoPositionEnumOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/video_position_enum.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface VideoPositionEnumOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.VideoPositionEnum) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/VideoPositionEnumProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/VideoPositionEnumProto.java new file mode 100644 index 000000000000..0e8eea7465d9 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/VideoPositionEnumProto.java @@ -0,0 +1,70 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/video_position_enum.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class VideoPositionEnumProto { + private VideoPositionEnumProto() {} + + 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_ads_admanager_v1_VideoPositionEnum_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_VideoPositionEnum_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" + + "1google/ads/admanager/v1/video_position_enum.proto\022\027google.ads.admanager.v1\"u\n" + + "\021VideoPositionEnum\"`\n\r" + + "VideoPosition\022\036\n" + + "\032VIDEO_POSITION_UNSPECIFIED\020\000\022\007\n" + + "\003ALL\020\001\022\013\n" + + "\007MIDROLL\020\002\022\014\n" + + "\010POSTROLL\020\003\022\013\n" + + "\007PREROLL\020\004B\312\001\n" + + "\033com.google.ads.admanager.v1B\026VideoPositi" + + "onEnumProtoP\001Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\252" + + "\002\027Google.Ads.AdManager.V1\312\002\027Google\\Ads\\A" + + "dManager\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_ads_admanager_v1_VideoPositionEnum_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_VideoPositionEnum_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_VideoPositionEnum_descriptor, + new java.lang.String[] {}); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/VideoPositionOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/VideoPositionOrBuilder.java new file mode 100644 index 000000000000..f79b968bf5e5 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/VideoPositionOrBuilder.java @@ -0,0 +1,220 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface VideoPositionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.VideoPosition) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The index of the mid-roll to target. This field is ignored when
+   * targeting any video position (e.g. position_type) other than MIDROLL.
+   * 
+ * + * optional int64 midroll_index = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the midrollIndex field is set. + */ + boolean hasMidrollIndex(); + + /** + * + * + *
+   * Optional. The index of the mid-roll to target. This field is ignored when
+   * targeting any video position (e.g. position_type) other than MIDROLL.
+   * 
+ * + * optional int64 midroll_index = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The midrollIndex. + */ + long getMidrollIndex(); + + /** + * + * + *
+   * Optional. The index from the back of the pod of the mid-roll to target.
+   * This field is ignored when targeting any video position (e.g.
+   * position_type) other than MIDROLL or if targeting a specific midroll index
+   * (e.g. midroll_index != 0).
+   * 
+ * + * optional int64 reverse_midroll_index = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the reverseMidrollIndex field is set. + */ + boolean hasReverseMidrollIndex(); + + /** + * + * + *
+   * Optional. The index from the back of the pod of the mid-roll to target.
+   * This field is ignored when targeting any video position (e.g.
+   * position_type) other than MIDROLL or if targeting a specific midroll index
+   * (e.g. midroll_index != 0).
+   * 
+ * + * optional int64 reverse_midroll_index = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The reverseMidrollIndex. + */ + long getReverseMidrollIndex(); + + /** + * + * + *
+   * Optional. The video position within a pod to target. This field must be
+   * unset in order to target a specific video position (e.g. position_type),
+   * bumper type (e.g. bumper_type), or custom ad spot (e.g. custom_spot_id).
+   * 
+ * + * optional int64 pod_position = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the podPosition field is set. + */ + boolean hasPodPosition(); + + /** + * + * + *
+   * Optional. The video position within a pod to target. This field must be
+   * unset in order to target a specific video position (e.g. position_type),
+   * bumper type (e.g. bumper_type), or custom ad spot (e.g. custom_spot_id).
+   * 
+ * + * optional int64 pod_position = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The podPosition. + */ + long getPodPosition(); + + /** + * + * + *
+   * Optional. The position within a video to target. A video ad can target a
+   * position (pre-roll, all mid-rolls, or post-roll) or a specific mid-roll
+   * index.
+   * 
+ * + * + * optional .google.ads.admanager.v1.VideoPositionEnum.VideoPosition position_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the positionType field is set. + */ + boolean hasPositionType(); + + /** + * + * + *
+   * Optional. The position within a video to target. A video ad can target a
+   * position (pre-roll, all mid-rolls, or post-roll) or a specific mid-roll
+   * index.
+   * 
+ * + * + * optional .google.ads.admanager.v1.VideoPositionEnum.VideoPosition position_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for positionType. + */ + int getPositionTypeValue(); + + /** + * + * + *
+   * Optional. The position within a video to target. A video ad can target a
+   * position (pre-roll, all mid-rolls, or post-roll) or a specific mid-roll
+   * index.
+   * 
+ * + * + * optional .google.ads.admanager.v1.VideoPositionEnum.VideoPosition position_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The positionType. + */ + com.google.ads.admanager.v1.VideoPositionEnum.VideoPosition getPositionType(); + + /** + * + * + *
+   * Optional. The video bumper type to target. This field must be unset in
+   * order to target a specific video position (e.g. position_type), pod
+   * position (e.g. pod_position), or custom ad spot (e.g. custom_spot_id).
+   * 
+ * + * + * optional .google.ads.admanager.v1.TargetedVideoBumperTypeEnum.TargetedVideoBumperType bumper_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the bumperType field is set. + */ + boolean hasBumperType(); + + /** + * + * + *
+   * Optional. The video bumper type to target. This field must be unset in
+   * order to target a specific video position (e.g. position_type), pod
+   * position (e.g. pod_position), or custom ad spot (e.g. custom_spot_id).
+   * 
+ * + * + * optional .google.ads.admanager.v1.TargetedVideoBumperTypeEnum.TargetedVideoBumperType bumper_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for bumperType. + */ + int getBumperTypeValue(); + + /** + * + * + *
+   * Optional. The video bumper type to target. This field must be unset in
+   * order to target a specific video position (e.g. position_type), pod
+   * position (e.g. pod_position), or custom ad spot (e.g. custom_spot_id).
+   * 
+ * + * + * optional .google.ads.admanager.v1.TargetedVideoBumperTypeEnum.TargetedVideoBumperType bumper_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bumperType. + */ + com.google.ads.admanager.v1.TargetedVideoBumperTypeEnum.TargetedVideoBumperType getBumperType(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/VideoPositionTargeting.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/VideoPositionTargeting.java new file mode 100644 index 000000000000..6782e0d4f4bb --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/VideoPositionTargeting.java @@ -0,0 +1,1035 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Video Position Targeting
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.VideoPositionTargeting} + */ +public final class VideoPositionTargeting extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.VideoPositionTargeting) + VideoPositionTargetingOrBuilder { + private static final long serialVersionUID = 0L; + + // Use VideoPositionTargeting.newBuilder() to construct. + private VideoPositionTargeting(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private VideoPositionTargeting() { + videoPositions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VideoPositionTargeting(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_VideoPositionTargeting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_VideoPositionTargeting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.VideoPositionTargeting.class, + com.google.ads.admanager.v1.VideoPositionTargeting.Builder.class); + } + + public static final int VIDEO_POSITIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List videoPositions_; + + /** + * + * + *
+   * Optional. A list of video position targeting criterion (applied with a
+   * logical AND).
+   * 
+ * + * + * repeated .google.ads.admanager.v1.VideoPosition video_positions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getVideoPositionsList() { + return videoPositions_; + } + + /** + * + * + *
+   * Optional. A list of video position targeting criterion (applied with a
+   * logical AND).
+   * 
+ * + * + * repeated .google.ads.admanager.v1.VideoPosition video_positions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getVideoPositionsOrBuilderList() { + return videoPositions_; + } + + /** + * + * + *
+   * Optional. A list of video position targeting criterion (applied with a
+   * logical AND).
+   * 
+ * + * + * repeated .google.ads.admanager.v1.VideoPosition video_positions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getVideoPositionsCount() { + return videoPositions_.size(); + } + + /** + * + * + *
+   * Optional. A list of video position targeting criterion (applied with a
+   * logical AND).
+   * 
+ * + * + * repeated .google.ads.admanager.v1.VideoPosition video_positions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.VideoPosition getVideoPositions(int index) { + return videoPositions_.get(index); + } + + /** + * + * + *
+   * Optional. A list of video position targeting criterion (applied with a
+   * logical AND).
+   * 
+ * + * + * repeated .google.ads.admanager.v1.VideoPosition video_positions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.VideoPositionOrBuilder getVideoPositionsOrBuilder(int index) { + return videoPositions_.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 < videoPositions_.size(); i++) { + output.writeMessage(1, videoPositions_.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 < videoPositions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, videoPositions_.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.ads.admanager.v1.VideoPositionTargeting)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.VideoPositionTargeting other = + (com.google.ads.admanager.v1.VideoPositionTargeting) obj; + + if (!getVideoPositionsList().equals(other.getVideoPositionsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getVideoPositionsCount() > 0) { + hash = (37 * hash) + VIDEO_POSITIONS_FIELD_NUMBER; + hash = (53 * hash) + getVideoPositionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.VideoPositionTargeting parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.VideoPositionTargeting 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.admanager.v1.VideoPositionTargeting parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.VideoPositionTargeting parseFrom( + 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.admanager.v1.VideoPositionTargeting parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.VideoPositionTargeting parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.VideoPositionTargeting parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.VideoPositionTargeting parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.VideoPositionTargeting parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.VideoPositionTargeting parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.admanager.v1.VideoPositionTargeting parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.VideoPositionTargeting parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.admanager.v1.VideoPositionTargeting prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Video Position Targeting
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.VideoPositionTargeting} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.VideoPositionTargeting) + com.google.ads.admanager.v1.VideoPositionTargetingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_VideoPositionTargeting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_VideoPositionTargeting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.VideoPositionTargeting.class, + com.google.ads.admanager.v1.VideoPositionTargeting.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.VideoPositionTargeting.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (videoPositionsBuilder_ == null) { + videoPositions_ = java.util.Collections.emptyList(); + } else { + videoPositions_ = null; + videoPositionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.TargetingProto + .internal_static_google_ads_admanager_v1_VideoPositionTargeting_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.VideoPositionTargeting getDefaultInstanceForType() { + return com.google.ads.admanager.v1.VideoPositionTargeting.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.VideoPositionTargeting build() { + com.google.ads.admanager.v1.VideoPositionTargeting result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.VideoPositionTargeting buildPartial() { + com.google.ads.admanager.v1.VideoPositionTargeting result = + new com.google.ads.admanager.v1.VideoPositionTargeting(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.VideoPositionTargeting result) { + if (videoPositionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + videoPositions_ = java.util.Collections.unmodifiableList(videoPositions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.videoPositions_ = videoPositions_; + } else { + result.videoPositions_ = videoPositionsBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.VideoPositionTargeting result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.VideoPositionTargeting) { + return mergeFrom((com.google.ads.admanager.v1.VideoPositionTargeting) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.VideoPositionTargeting other) { + if (other == com.google.ads.admanager.v1.VideoPositionTargeting.getDefaultInstance()) + return this; + if (videoPositionsBuilder_ == null) { + if (!other.videoPositions_.isEmpty()) { + if (videoPositions_.isEmpty()) { + videoPositions_ = other.videoPositions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureVideoPositionsIsMutable(); + videoPositions_.addAll(other.videoPositions_); + } + onChanged(); + } + } else { + if (!other.videoPositions_.isEmpty()) { + if (videoPositionsBuilder_.isEmpty()) { + videoPositionsBuilder_.dispose(); + videoPositionsBuilder_ = null; + videoPositions_ = other.videoPositions_; + bitField0_ = (bitField0_ & ~0x00000001); + videoPositionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getVideoPositionsFieldBuilder() + : null; + } else { + videoPositionsBuilder_.addAllMessages(other.videoPositions_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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.admanager.v1.VideoPosition m = + input.readMessage( + com.google.ads.admanager.v1.VideoPosition.parser(), extensionRegistry); + if (videoPositionsBuilder_ == null) { + ensureVideoPositionsIsMutable(); + videoPositions_.add(m); + } else { + videoPositionsBuilder_.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 videoPositions_ = + java.util.Collections.emptyList(); + + private void ensureVideoPositionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + videoPositions_ = + new java.util.ArrayList(videoPositions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.VideoPosition, + com.google.ads.admanager.v1.VideoPosition.Builder, + com.google.ads.admanager.v1.VideoPositionOrBuilder> + videoPositionsBuilder_; + + /** + * + * + *
+     * Optional. A list of video position targeting criterion (applied with a
+     * logical AND).
+     * 
+ * + * + * repeated .google.ads.admanager.v1.VideoPosition video_positions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getVideoPositionsList() { + if (videoPositionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(videoPositions_); + } else { + return videoPositionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. A list of video position targeting criterion (applied with a
+     * logical AND).
+     * 
+ * + * + * repeated .google.ads.admanager.v1.VideoPosition video_positions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getVideoPositionsCount() { + if (videoPositionsBuilder_ == null) { + return videoPositions_.size(); + } else { + return videoPositionsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. A list of video position targeting criterion (applied with a
+     * logical AND).
+     * 
+ * + * + * repeated .google.ads.admanager.v1.VideoPosition video_positions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.VideoPosition getVideoPositions(int index) { + if (videoPositionsBuilder_ == null) { + return videoPositions_.get(index); + } else { + return videoPositionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. A list of video position targeting criterion (applied with a
+     * logical AND).
+     * 
+ * + * + * repeated .google.ads.admanager.v1.VideoPosition video_positions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setVideoPositions(int index, com.google.ads.admanager.v1.VideoPosition value) { + if (videoPositionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVideoPositionsIsMutable(); + videoPositions_.set(index, value); + onChanged(); + } else { + videoPositionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of video position targeting criterion (applied with a
+     * logical AND).
+     * 
+ * + * + * repeated .google.ads.admanager.v1.VideoPosition video_positions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setVideoPositions( + int index, com.google.ads.admanager.v1.VideoPosition.Builder builderForValue) { + if (videoPositionsBuilder_ == null) { + ensureVideoPositionsIsMutable(); + videoPositions_.set(index, builderForValue.build()); + onChanged(); + } else { + videoPositionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of video position targeting criterion (applied with a
+     * logical AND).
+     * 
+ * + * + * repeated .google.ads.admanager.v1.VideoPosition video_positions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addVideoPositions(com.google.ads.admanager.v1.VideoPosition value) { + if (videoPositionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVideoPositionsIsMutable(); + videoPositions_.add(value); + onChanged(); + } else { + videoPositionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of video position targeting criterion (applied with a
+     * logical AND).
+     * 
+ * + * + * repeated .google.ads.admanager.v1.VideoPosition video_positions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addVideoPositions(int index, com.google.ads.admanager.v1.VideoPosition value) { + if (videoPositionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVideoPositionsIsMutable(); + videoPositions_.add(index, value); + onChanged(); + } else { + videoPositionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of video position targeting criterion (applied with a
+     * logical AND).
+     * 
+ * + * + * repeated .google.ads.admanager.v1.VideoPosition video_positions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addVideoPositions( + com.google.ads.admanager.v1.VideoPosition.Builder builderForValue) { + if (videoPositionsBuilder_ == null) { + ensureVideoPositionsIsMutable(); + videoPositions_.add(builderForValue.build()); + onChanged(); + } else { + videoPositionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of video position targeting criterion (applied with a
+     * logical AND).
+     * 
+ * + * + * repeated .google.ads.admanager.v1.VideoPosition video_positions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addVideoPositions( + int index, com.google.ads.admanager.v1.VideoPosition.Builder builderForValue) { + if (videoPositionsBuilder_ == null) { + ensureVideoPositionsIsMutable(); + videoPositions_.add(index, builderForValue.build()); + onChanged(); + } else { + videoPositionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of video position targeting criterion (applied with a
+     * logical AND).
+     * 
+ * + * + * repeated .google.ads.admanager.v1.VideoPosition video_positions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllVideoPositions( + java.lang.Iterable values) { + if (videoPositionsBuilder_ == null) { + ensureVideoPositionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, videoPositions_); + onChanged(); + } else { + videoPositionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of video position targeting criterion (applied with a
+     * logical AND).
+     * 
+ * + * + * repeated .google.ads.admanager.v1.VideoPosition video_positions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearVideoPositions() { + if (videoPositionsBuilder_ == null) { + videoPositions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + videoPositionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of video position targeting criterion (applied with a
+     * logical AND).
+     * 
+ * + * + * repeated .google.ads.admanager.v1.VideoPosition video_positions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeVideoPositions(int index) { + if (videoPositionsBuilder_ == null) { + ensureVideoPositionsIsMutable(); + videoPositions_.remove(index); + onChanged(); + } else { + videoPositionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of video position targeting criterion (applied with a
+     * logical AND).
+     * 
+ * + * + * repeated .google.ads.admanager.v1.VideoPosition video_positions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.VideoPosition.Builder getVideoPositionsBuilder(int index) { + return getVideoPositionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. A list of video position targeting criterion (applied with a
+     * logical AND).
+     * 
+ * + * + * repeated .google.ads.admanager.v1.VideoPosition video_positions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.VideoPositionOrBuilder getVideoPositionsOrBuilder( + int index) { + if (videoPositionsBuilder_ == null) { + return videoPositions_.get(index); + } else { + return videoPositionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. A list of video position targeting criterion (applied with a
+     * logical AND).
+     * 
+ * + * + * repeated .google.ads.admanager.v1.VideoPosition video_positions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getVideoPositionsOrBuilderList() { + if (videoPositionsBuilder_ != null) { + return videoPositionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(videoPositions_); + } + } + + /** + * + * + *
+     * Optional. A list of video position targeting criterion (applied with a
+     * logical AND).
+     * 
+ * + * + * repeated .google.ads.admanager.v1.VideoPosition video_positions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.VideoPosition.Builder addVideoPositionsBuilder() { + return getVideoPositionsFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.VideoPosition.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. A list of video position targeting criterion (applied with a
+     * logical AND).
+     * 
+ * + * + * repeated .google.ads.admanager.v1.VideoPosition video_positions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.VideoPosition.Builder addVideoPositionsBuilder(int index) { + return getVideoPositionsFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.VideoPosition.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. A list of video position targeting criterion (applied with a
+     * logical AND).
+     * 
+ * + * + * repeated .google.ads.admanager.v1.VideoPosition video_positions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getVideoPositionsBuilderList() { + return getVideoPositionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.VideoPosition, + com.google.ads.admanager.v1.VideoPosition.Builder, + com.google.ads.admanager.v1.VideoPositionOrBuilder> + getVideoPositionsFieldBuilder() { + if (videoPositionsBuilder_ == null) { + videoPositionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.VideoPosition, + com.google.ads.admanager.v1.VideoPosition.Builder, + com.google.ads.admanager.v1.VideoPositionOrBuilder>( + videoPositions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + videoPositions_ = null; + } + return videoPositionsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.VideoPositionTargeting) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.VideoPositionTargeting) + private static final com.google.ads.admanager.v1.VideoPositionTargeting DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.VideoPositionTargeting(); + } + + public static com.google.ads.admanager.v1.VideoPositionTargeting getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VideoPositionTargeting parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.admanager.v1.VideoPositionTargeting getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/VideoPositionTargetingOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/VideoPositionTargetingOrBuilder.java new file mode 100644 index 000000000000..de097a6a5047 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/VideoPositionTargetingOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/admanager/v1/targeting.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface VideoPositionTargetingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.VideoPositionTargeting) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. A list of video position targeting criterion (applied with a
+   * logical AND).
+   * 
+ * + * + * repeated .google.ads.admanager.v1.VideoPosition video_positions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getVideoPositionsList(); + + /** + * + * + *
+   * Optional. A list of video position targeting criterion (applied with a
+   * logical AND).
+   * 
+ * + * + * repeated .google.ads.admanager.v1.VideoPosition video_positions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.admanager.v1.VideoPosition getVideoPositions(int index); + + /** + * + * + *
+   * Optional. A list of video position targeting criterion (applied with a
+   * logical AND).
+   * 
+ * + * + * repeated .google.ads.admanager.v1.VideoPosition video_positions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getVideoPositionsCount(); + + /** + * + * + *
+   * Optional. A list of video position targeting criterion (applied with a
+   * logical AND).
+   * 
+ * + * + * repeated .google.ads.admanager.v1.VideoPosition video_positions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getVideoPositionsOrBuilderList(); + + /** + * + * + *
+   * Optional. A list of video position targeting criterion (applied with a
+   * logical AND).
+   * 
+ * + * + * repeated .google.ads.admanager.v1.VideoPosition video_positions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.admanager.v1.VideoPositionOrBuilder getVideoPositionsOrBuilder(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_break_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_break_messages.proto new file mode 100644 index 000000000000..f1d0f92dc280 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_break_messages.proto @@ -0,0 +1,134 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.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.ads.admanager.v1; + +import "google/ads/admanager/v1/early_ad_break_notification_enums.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "AdBreakMessagesProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// The `AdBreak` resource. +message AdBreak { + option (google.api.resource) = { + type: "admanager.googleapis.com/AdBreak" + pattern: "networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break}" + plural: "adBreaks" + singular: "adBreak" + }; + + // Identifier. The resource name of the `AdBreak`. + // This field uses the `LiveStreamEvent` resource's asset key in the + // URI, even if the ad break was created, updated, or queried using the custom + // asset key. + // + // Format: + // `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break_id}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Optional. Immutable. `AdBreak` ID. + // Must consist only of lowercase letters, digits, and hyphens. Ad break IDs + // have a maximum length of 63 characters. + // If not set, an ad break ID is generated as a UUID string. + optional string ad_break_id = 2 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Optional. Immutable. The asset key of the `LiveStreamEvent` that the ad + // break belongs to. Either an asset key or a custom asset key must be + // provided for creation. + optional string asset_key = 3 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Optional. Immutable. The custom asset key of the `LiveStreamEvent` that the + // ad break belongs to. Either an asset key or a custom asset key must be + // provided for creation. + optional string custom_asset_key = 4 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Optional. The expected start time of the ad break. + // When set, the scheduled ad break will be decisioned shortly before the + // expected start time. + // If this field is not set, ad decisioning begins immediately. + // An ad break can be created up to six hours before the expected start time. + optional google.protobuf.Timestamp expected_start_time = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The duration of the `AdBreak`. + // An expected duration in seconds with up to nine fractional digits, ending + // with `s`, for example, `3.5s`. This value will be updated to match the + // actual duration from the manifest or pod request after the ad break's state + // is + // [`COMPLETE`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.COMPLETE]. + optional google.protobuf.Duration duration = 6 + [(google.api.field_behavior) = REQUIRED]; + + // Output only. The state of the `AdBreak`. + optional AdBreakStateEnum.AdBreakState break_state = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The sequence id of the `AdBreak`. + // The unique sequence number of the created ad break. This value is only set + // after the `AdBreak` starts decisioning indicated by the ad break state's + // being + // [`DECISIONED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.DECISIONED] + // . + optional int64 break_sequence = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The pod template name of the `AdBreak`. + // This field is the required unique name across all pod templates in the + // network, not the display name. + optional string pod_template_name = 9 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The key-value pairs to be included on the ad requests for this + // `AdBreak`. Key-value pairs to include on ad requests for this break for + // custom criteria targeting in Google Ad Manager, separated by `=` and joined + // by + // `&`. + // + // Format:"key1=value&key2=value" + optional string custom_params = 10 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The Base64-encoded SCTE-35 command associated with the `AdBreak`. + // This field can include the `splice_insert()` or `time_signal()` command. + // + // **Examples** + // + // * `time_signal()` + // ``` + // /DA0AAAAAAAA///wBQb+cr0AUAAeAhxDVUVJSAAAjn/PAAGlmbAICAAAAAAsoKGKNAIAmsnRfg== + // ``` + // * `splice_insert()` + // ``` + // /DAvAAAAAAAA///wFAVIAACPf+/+c2nALv4AUsz1AAAAAAAKAAhDVUVJAAABNWLbowo= + // ``` + optional string scte_35_cue_out = 11 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_break_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_break_service.proto new file mode 100644 index 000000000000..1070a036876a --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_break_service.proto @@ -0,0 +1,269 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.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.ads.admanager.v1; + +import "google/ads/admanager/v1/ad_break_messages.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "AdBreakServiceProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Provides methods for handling `AdBreak` objects. +service AdBreakService { + option (google.api.default_host) = "admanager.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/admanager"; + + // API to retrieve an `AdBreak` object. + // + // Query an ad break by its resource name or custom asset key. Check the + // resource's `breakState` field to determine its state. + rpc GetAdBreak(GetAdBreakRequest) returns (AdBreak) { + option (google.api.http) = { + get: "/v1/{name=networks/*/liveStreamEventsByAssetKey/*/adBreaks/*}" + additional_bindings { + get: "/v1/{name=networks/*/liveStreamEventsByCustomAssetKey/*/adBreaks/*}" + } + additional_bindings { + get: "/v1/{name=networks/*/liveStreamEvents/*/adBreaks/*}" + } + }; + option (google.api.method_signature) = "name"; + } + + // API to retrieve a list of `AdBreak` objects. + // + // By default, when no `orderBy` query parameter is specified, ad breaks are + // ordered reverse chronologically. However, ad breaks with a 'breakState' of + // 'SCHEDULED' or 'DECISIONED' are prioritized and appear first. + rpc ListAdBreaks(ListAdBreaksRequest) returns (ListAdBreaksResponse) { + option (google.api.http) = { + get: "/v1/{parent=networks/*/liveStreamEventsByAssetKey/*}/adBreaks" + additional_bindings { + get: "/v1/{parent=networks/*/liveStreamEventsByCustomAssetKey/*}/adBreaks" + } + additional_bindings { + get: "/v1/{parent=networks/*/liveStreamEvents/*}/adBreaks" + } + }; + option (google.api.method_signature) = "parent"; + } + + // API to create an `AdBreak` object. + // + // Informs DAI of an upcoming ad break for a live stream event, with an + // optional expected start time. DAI will begin decisioning ads for the break + // shortly before the expected start time, if provided. Each live stream + // event can only have one incomplete ad break at any given time. The next ad + // break can be scheduled after the previous ad break has started serving, + // indicated by its state being + // [`COMPLETE`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.COMPLETE], + // or it has been deleted. + // + // This method cannot be used if the `LiveStreamEvent` has + // [prefetching ad breaks + // enabled](https://developers.google.com/ad-manager/api/reference/latest/LiveStreamEventService.LiveStreamEvent#prefetchenabled) + // or the event is not active. If a `LiveStreamEvent` is deactivated after + // creating an ad break and before the ad break is complete, the ad break + // is discarded. + // + // An ad break's state is complete when the following occurs: + // - Full service DAI: after a matching ad break shows in the + // `LiveStreamEvent` manifest only when the ad break has started decisioning. + // - Pod Serving: after the ad break is requested using the ad break ID or + // break sequence. + rpc CreateAdBreak(CreateAdBreakRequest) returns (AdBreak) { + option (google.api.http) = { + post: "/v1/{parent=networks/*/liveStreamEventsByAssetKey/*}/adBreaks" + body: "ad_break" + additional_bindings { + post: "/v1/{parent=networks/*/liveStreamEventsByCustomAssetKey/*}/adBreaks" + body: "ad_break" + } + additional_bindings { + post: "/v1/{parent=networks/*/liveStreamEvents/*}/adBreaks" + body: "ad_break" + } + }; + option (google.api.method_signature) = "parent,ad_break"; + } + + // API to update an `AdBreak` object. + // + // Modify an ad break when its state is + // [`SCHEDULED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.SCHEDULED]. + rpc UpdateAdBreak(UpdateAdBreakRequest) returns (AdBreak) { + option (google.api.http) = { + patch: "/v1/{ad_break.name=networks/*/liveStreamEventsByAssetKey/*/adBreaks/*}" + body: "ad_break" + }; + option (google.api.method_signature) = "ad_break,update_mask"; + } + + // API to delete an `AdBreak` object. + // + // Deletes and cancels an incomplete ad break, mitigating the need to wait + // for the current break to serve before recreating an ad break. You can + // delete an ad break that has not started serving or seen in manifests, + // indicated by its state being + // [`SCHEDULED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.SCHEDULED] + // or + // [`DECISIONED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.DECISIONED]. + rpc DeleteAdBreak(DeleteAdBreakRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=networks/*/liveStreamEventsByAssetKey/*/adBreaks/*}" + }; + option (google.api.method_signature) = "name"; + } +} + +// Request object for `GetAdBreak` method. +message GetAdBreakRequest { + // Required. The resource name of the AdBreak using the asset key or custom + // asset key. + // + // Format: + // `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break_id}` + // `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}/adBreaks/{ad_break_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/AdBreak" + } + ]; +} + +// Request object for `ListAdBreaks` method. +message ListAdBreaksRequest { + // Required. The parent, which owns this collection of AdBreaks. + // + // Formats: + // `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}` + // `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/LiveStreamEvent" + } + ]; + + // Optional. The maximum number of `AdBreaks` to return. The service might + // return fewer than this value. If unspecified, at most 10 ad breaks are + // returned. The maximum value is `100`. Values above `100` are coerced to + // `100`. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous `ListAdBreaks` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListAdBreaks` must match + // the call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to filter the response. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to specify sorting order. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters#order + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Number of individual resources to skip while paginating. + int32 skip = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response object for `ListAdBreaksRequest` containing matching `AdBreak` +// objects. +message ListAdBreaksResponse { + // The `AdBreak` objects from the specified network. + repeated AdBreak ad_breaks = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. This field expires + // after five minutes. + string next_page_token = 2; + + // Total number of `AdBreak` objects. + // If a filter was included in the request, this reflects the total number + // after the filtering is applied. + // + // `total_size` will not be calculated in the response unless it has been + // included in a response field mask. The response field mask can be provided + // to the method by using the URL parameter `$fields` or `fields`, or by using + // the HTTP/gRPC header `X-Goog-FieldMask`. + // + // For more information, see + // https://developers.google.com/ad-manager/api/beta/field-masks + int32 total_size = 3; +} + +// Request object for `CreateAdBreak` method. +message CreateAdBreakRequest { + // Required. The parent resource where this `AdBreak` will be created + // identified by an asset key or custom asset key. + // + // Formats: + // `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}` + // `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/LiveStreamEvent" + } + ]; + + // Required. The `AdBreak` to create. + AdBreak ad_break = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request object for `UpdateAdBreak` method. +message UpdateAdBreakRequest { + // Required. The `AdBreak` to update. + // + // The `AdBreak`'s `name` is used to identify the `AdBreak` to update. + AdBreak ad_break = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of fields to update. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request object for `DeleteAdBreak` method. +message DeleteAdBreakRequest { + // Required. The name of the ad break to delete. + // + // Format: + // `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/AdBreak" + } + ]; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_unit_enums.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_unit_enums.proto index e1ca03f32895..6d12580e826c 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_unit_enums.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_unit_enums.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_unit_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_unit_messages.proto index 2cc23bb6b8ee..6de8c3a2d81f 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_unit_messages.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_unit_messages.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -53,7 +53,7 @@ message AdUnit { // Required. Immutable. The AdUnit's parent. Every ad unit has a parent except // for the root ad unit, which is created by Google. Format: // "networks/{network_code}/adUnits/{ad_unit_id}" - string parent_ad_unit = 10 [ + optional string parent_ad_unit = 10 [ (google.api.field_behavior) = REQUIRED, (google.api.field_behavior) = IMMUTABLE, (google.api.resource_reference) = { @@ -69,28 +69,31 @@ message AdUnit { // Required. The display name of the ad unit. Its maximum length is 255 // characters. - string display_name = 9 [(google.api.field_behavior) = REQUIRED]; + optional string display_name = 9 [(google.api.field_behavior) = REQUIRED]; - // Immutable. A string used to uniquely identify the ad unit for the purposes - // of serving the ad. This attribute is optional and can be set during ad unit + // Optional. Immutable. A string used to uniquely identify the ad unit for the + // purposes of serving the ad. This attribute can be set during ad unit // creation. If it is not provided, it will be assigned by Google based on the // ad unit ID. - string ad_unit_code = 2 [(google.api.field_behavior) = IMMUTABLE]; + optional string ad_unit_code = 2 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = IMMUTABLE + ]; // Output only. The status of this ad unit. It defaults to ACTIVE. - AdUnitStatusEnum.AdUnitStatus status = 13 + optional AdUnitStatusEnum.AdUnitStatus status = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. The target window directly applied to this AdUnit. // If this field is not set, this AdUnit uses the target window specified in // effectiveTargetWindow. - TargetWindowEnum.TargetWindow applied_target_window = 44 + optional TargetWindowEnum.TargetWindow applied_target_window = 44 [(google.api.field_behavior) = OPTIONAL]; // Output only. Non-empty default. The target window of this AdUnit. This // value is inherited from ancestor AdUnits and defaults to TOP if no AdUnit // in the hierarchy specifies it. - TargetWindowEnum.TargetWindow effective_target_window = 45 [ + optional TargetWindowEnum.TargetWindow effective_target_window = 45 [ (google.api.field_behavior) = NON_EMPTY_DEFAULT, (google.api.field_behavior) = OUTPUT_ONLY ]; @@ -112,19 +115,20 @@ message AdUnit { // Optional. A description of the ad unit. The maximum length is 65,535 // characters. - string description = 5 [(google.api.field_behavior) = OPTIONAL]; + optional string description = 5 [(google.api.field_behavior) = OPTIONAL]; // Optional. If this field is set to true, then the AdUnit will not be // implicitly targeted when its parent is. Traffickers must explicitly // target such an AdUnit or else no line items will serve to it. This // feature is only available for Ad Manager 360 accounts. - bool explicitly_targeted = 6 [(google.api.field_behavior) = OPTIONAL]; + optional bool explicitly_targeted = 6 + [(google.api.field_behavior) = OPTIONAL]; // Output only. This field is set to true if the ad unit has any children. - bool has_children = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + optional bool has_children = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time this AdUnit was last modified. - google.protobuf.Timestamp update_time = 8 + optional google.protobuf.Timestamp update_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. The sizes that can be served inside this ad unit. @@ -133,13 +137,13 @@ message AdUnit { // Optional. Determines what set top box video on demand channel this ad unit // corresponds to in an external set top box ad campaign system. - string external_set_top_box_channel_id = 17 - [(google.api.field_behavior) = OPTIONAL]; + optional string external_set_top_box_channel_id = 17 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; // Optional. The duration after which an Ad Unit will automatically refresh. // This is only valid for ad units in mobile apps. If not set, the ad unit // will not refresh. - google.protobuf.Duration refresh_delay = 19 + optional google.protobuf.Duration refresh_delay = 19 [(google.api.field_behavior) = OPTIONAL]; // Optional. The set of labels applied directly to this ad unit. @@ -148,8 +152,8 @@ message AdUnit { // Output only. Contains the set of labels applied directly to the ad unit as // well as those inherited from the parent ad units. If a label has been - // negated, only the negated label is returned. This field is readonly and is - // assigned by Google. + // negated, only the negated label is returned. This attribute is assigned by + // Google. repeated AppliedLabel effective_applied_labels = 22 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -163,14 +167,16 @@ message AdUnit { repeated LabelFrequencyCap effective_label_frequency_caps = 24 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Optional. The smart size mode for this ad unit. This attribute is optional - // and defaults to SmartSizeMode.NONE for fixed sizes. - SmartSizeModeEnum.SmartSizeMode smart_size_mode = 25 - [(google.api.field_behavior) = OPTIONAL]; + // Optional. Non-empty default. The smart size mode for this ad unit. This + // attribute defaults to SmartSizeMode.NONE for fixed sizes. + optional SmartSizeModeEnum.SmartSizeMode smart_size_mode = 25 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = NON_EMPTY_DEFAULT + ]; - // Optional. The value of AdSense enabled directly applied to this ad unit. - // This attribute is optional and if not specified this ad unit will inherit - // the value of effectiveAdsenseEnabled from its ancestors. + // Optional. The value of AdSense enabled directly applied to this ad unit. If + // not specified this ad unit will inherit the value of + // effectiveAdsenseEnabled from its ancestors. optional bool applied_adsense_enabled = 26 [(google.api.field_behavior) = OPTIONAL]; @@ -178,7 +184,7 @@ message AdUnit { // from the AdSense content network. This attribute defaults to the ad unit's // parent or ancestor's setting if one has been set. If no ancestor of the ad // unit has set appliedAdsenseEnabled, the attribute is defaulted to true. - bool effective_adsense_enabled = 27 + optional bool effective_adsense_enabled = 27 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_unit_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_unit_service.proto index 3ca9867235a0..34151a3023d0 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_unit_service.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_unit_service.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -33,6 +33,8 @@ option ruby_package = "Google::Ads::AdManager::V1"; // Provides methods for handling AdUnit objects. service AdUnitService { option (google.api.default_host) = "admanager.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/admanager"; // API to retrieve an AdUnit object. rpc GetAdUnit(GetAdUnitRequest) returns (AdUnit) { diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/admanager_error.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/admanager_error.proto index ebaffa6c24a1..68b3d46565fd 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/admanager_error.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/admanager_error.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/applied_label.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/applied_label.proto index 62d6186aae47..b294e1fae522 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/applied_label.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/applied_label.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/bandwidth_group_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/bandwidth_group_messages.proto new file mode 100644 index 000000000000..8f435c4b7678 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/bandwidth_group_messages.proto @@ -0,0 +1,46 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.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.ads.admanager.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "BandwidthGroupMessagesProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Represents a group of bandwidths that are logically organized by some well +// known generic name such as 'Cable' or 'DSL'. +message BandwidthGroup { + option (google.api.resource) = { + type: "admanager.googleapis.com/BandwidthGroup" + pattern: "networks/{network_code}/bandwidthGroups/{bandwidth_group}" + plural: "bandwidthGroups" + singular: "bandwidthGroup" + }; + + // Identifier. The resource name of the `BandwidthGroup`. + // Format: `networks/{network_code}/bandwidthGroups/{bandwidth_group_id}` + optional string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. The localized name of the bandwidth group. + optional string display_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/bandwidth_group_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/bandwidth_group_service.proto new file mode 100644 index 000000000000..10b305b6616c --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/bandwidth_group_service.proto @@ -0,0 +1,129 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.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.ads.admanager.v1; + +import "google/ads/admanager/v1/bandwidth_group_messages.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "BandwidthGroupServiceProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Provides methods for handling `BandwidthGroup` objects. +service BandwidthGroupService { + option (google.api.default_host) = "admanager.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/admanager"; + + // API to retrieve a `BandwidthGroup` object. + rpc GetBandwidthGroup(GetBandwidthGroupRequest) returns (BandwidthGroup) { + option (google.api.http) = { + get: "/v1/{name=networks/*/bandwidthGroups/*}" + }; + option (google.api.method_signature) = "name"; + } + + // API to retrieve a list of `BandwidthGroup` objects. + rpc ListBandwidthGroups(ListBandwidthGroupsRequest) + returns (ListBandwidthGroupsResponse) { + option (google.api.http) = { + get: "/v1/{parent=networks/*}/bandwidthGroups" + }; + option (google.api.method_signature) = "parent"; + } +} + +// Request object for `GetBandwidthGroup` method. +message GetBandwidthGroupRequest { + // Required. The resource name of the BandwidthGroup. + // Format: `networks/{network_code}/bandwidthGroups/{bandwidth_group_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/BandwidthGroup" + } + ]; +} + +// Request object for `ListBandwidthGroups` method. +message ListBandwidthGroupsRequest { + // Required. The parent, which owns this collection of BandwidthGroups. + // Format: `networks/{network_code}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Optional. The maximum number of `BandwidthGroups` to return. The service + // may return fewer than this value. If unspecified, at most 50 + // `BandwidthGroups` 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 `ListBandwidthGroups` + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListBandwidthGroups` + // must match the call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to filter the response. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to specify sorting order. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters#order + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Number of individual resources to skip while paginating. + int32 skip = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response object for `ListBandwidthGroupsRequest` containing matching +// `BandwidthGroup` objects. +message ListBandwidthGroupsResponse { + // The `BandwidthGroup` objects from the specified network. + repeated BandwidthGroup bandwidth_groups = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Total number of `BandwidthGroup` objects. + // If a filter was included in the request, this reflects the total number + // after the filtering is applied. + // + // `total_size` will not be calculated in the response unless it has been + // included in a response field mask. The response field mask can be provided + // to the method by using the URL parameter `$fields` or `fields`, or by using + // the HTTP/gRPC header `X-Goog-FieldMask`. + // + // For more information, see + // https://developers.google.com/ad-manager/api/beta/field-masks + int32 total_size = 3; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/company_credit_status_enum.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/company_enums.proto similarity index 81% rename from java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/company_credit_status_enum.proto rename to java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/company_enums.proto index 968ec930fa39..a04bd5382183 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/company_credit_status_enum.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/company_enums.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -19,11 +19,37 @@ package google.ads.admanager.v1; option csharp_namespace = "Google.Ads.AdManager.V1"; option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; option java_multiple_files = true; -option java_outer_classname = "CompanyCreditStatusEnumProto"; +option java_outer_classname = "CompanyEnumsProto"; option java_package = "com.google.ads.admanager.v1"; option php_namespace = "Google\\Ads\\AdManager\\V1"; option ruby_package = "Google::Ads::AdManager::V1"; +// Wrapper message for +// [CompanyType][google.ads.admanager.v1.CompanyTypeEnum.CompanyType] +message CompanyTypeEnum { + // The type of a company. + enum CompanyType { + // No value specified + COMPANY_TYPE_UNSPECIFIED = 0; + + // A business entity that purchases ad inventory. + ADVERTISER = 1; + + // A company representing the publisher's own advertiser for house ads. + HOUSE_ADVERTISER = 2; + + // An organization that manages ad accounts and offers services, such as ad + // creation, placement, and management to advertisers. + AGENCY = 3; + + // A company representing the publisher's own agency. + HOUSE_AGENCY = 4; + + // A company representing multiple advertisers and agencies. + AD_NETWORK = 5; + } +} + // Wrapper message for // [CompanyCreditStatus][google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus] message CompanyCreditStatusEnum { diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/company_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/company_messages.proto index fb6a5a32fce7..ae2b839338f4 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/company_messages.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/company_messages.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -17,8 +17,7 @@ syntax = "proto3"; package google.ads.admanager.v1; import "google/ads/admanager/v1/applied_label.proto"; -import "google/ads/admanager/v1/company_credit_status_enum.proto"; -import "google/ads/admanager/v1/company_type_enum.proto"; +import "google/ads/admanager/v1/company_enums.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; @@ -112,11 +111,11 @@ message Company { (google.api.resource_reference) = { type: "admanager.googleapis.com/Team" } ]; - // Output only. The time the `Company` was last modified. - google.protobuf.Timestamp update_time = 15 - [(google.api.field_behavior) = OUTPUT_ONLY]; - // Optional. The ID of the Google-recognized canonicalized form of the // `Company`. int64 third_party_company_id = 16 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The time the `Company` was last modified. + google.protobuf.Timestamp update_time = 15 + [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/company_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/company_service.proto index fdb39a78cca1..e58a965cf6c5 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/company_service.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/company_service.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -33,6 +33,8 @@ option ruby_package = "Google::Ads::AdManager::V1"; // Provides methods for handling `Company` objects. service CompanyService { option (google.api.default_host) = "admanager.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/admanager"; // API to retrieve a `Company` object. rpc GetCompany(GetCompanyRequest) returns (Company) { diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/contact_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/contact_messages.proto index 1220cc448dad..cb298ad092ca 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/contact_messages.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/contact_messages.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -43,7 +43,7 @@ message Contact { // Format: `networks/{network_code}/contacts/{contact_id}` string name = 1 [(google.api.field_behavior) = IDENTIFIER]; - // Output only. The unique ID of the contact. This value is readonly and is - // assigned by Google. - int64 contact_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The display name of the Company. + optional string company_display_name = 19 + [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_field_enums.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_field_enums.proto index e47ca39eabb4..32de0eaa0bde 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_field_enums.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_field_enums.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_field_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_field_messages.proto index 20992473ce9a..5eb700ba3fd7 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_field_messages.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_field_messages.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,34 +38,35 @@ message CustomField { }; // Identifier. The resource name of the `CustomField`. - // Format: `networks/{network_code}/customFields/{custom_field_id}` + // Format: `networks/{network_code}/customFields/{custom_field}` string name = 1 [(google.api.field_behavior) = IDENTIFIER]; - // Output only. Unique ID of the CustomField. This value is readonly and is - // assigned by Google. - int64 custom_field_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Unique ID of the CustomField. This attribute is assigned by + // Google. + optional int64 custom_field_id = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. Name of the CustomField. The max length is 127 characters. - string display_name = 3 [(google.api.field_behavior) = REQUIRED]; + optional string display_name = 3 [(google.api.field_behavior) = REQUIRED]; // Optional. A description of the custom field. The maximum length is 511 // characters. - string description = 4 [(google.api.field_behavior) = OPTIONAL]; + optional string description = 4 [(google.api.field_behavior) = OPTIONAL]; // Output only. The status of the `CustomField`. - CustomFieldStatusEnum.CustomFieldStatus status = 5 + optional CustomFieldStatusEnum.CustomFieldStatus status = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. The type of entity the `CustomField` can be applied to. - CustomFieldEntityTypeEnum.CustomFieldEntityType entity_type = 7 + optional CustomFieldEntityTypeEnum.CustomFieldEntityType entity_type = 7 [(google.api.field_behavior) = REQUIRED]; // Required. The data type of the `CustomField`. - CustomFieldDataTypeEnum.CustomFieldDataType data_type = 8 + optional CustomFieldDataTypeEnum.CustomFieldDataType data_type = 8 [(google.api.field_behavior) = REQUIRED]; // Required. The visibility of the `CustomField`. - CustomFieldVisibilityEnum.CustomFieldVisibility visibility = 9 + optional CustomFieldVisibilityEnum.CustomFieldVisibility visibility = 9 [(google.api.field_behavior) = REQUIRED]; // Optional. The drop-down options for the `CustomField`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_field_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_field_service.proto index e120761aca2a..635299f00c38 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_field_service.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_field_service.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -33,6 +33,8 @@ option ruby_package = "Google::Ads::AdManager::V1"; // Provides methods for handling `CustomField` objects. service CustomFieldService { option (google.api.default_host) = "admanager.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/admanager"; // API to retrieve a `CustomField` object. rpc GetCustomField(GetCustomFieldRequest) returns (CustomField) { diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_field_value.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_field_value.proto index 5647dd4cb818..d206258a9254 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_field_value.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_field_value.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -30,7 +30,6 @@ option ruby_package = "Google::Ads::AdManager::V1"; // A value for a CustomField on a resource. message CustomFieldValue { // Represent custom field value type. - // Next Id: 5 message Value { // The value of this field. oneof value { diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_key_enums.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_key_enums.proto index b271b5fa6304..5dc63aa32005 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_key_enums.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_key_enums.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_key_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_key_messages.proto index ad739eac5ef0..274f074b169d 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_key_messages.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_key_messages.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_key_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_key_service.proto index f3cc2cee42bf..b89df8e135d1 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_key_service.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_key_service.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -33,6 +33,8 @@ option ruby_package = "Google::Ads::AdManager::V1"; // Provides methods for handling `CustomTargetingKey` objects. service CustomTargetingKeyService { option (google.api.default_host) = "admanager.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/admanager"; // API to retrieve a `CustomTargetingKey` object. rpc GetCustomTargetingKey(GetCustomTargetingKeyRequest) diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_value_enums.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_value_enums.proto index 9bf5ae56e08e..1d52215610fc 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_value_enums.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_value_enums.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_value_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_value_messages.proto index b26fb80dbbf2..a99484d6e7a5 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_value_messages.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_value_messages.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -32,16 +32,27 @@ option ruby_package = "Google::Ads::AdManager::V1"; message CustomTargetingValue { option (google.api.resource) = { type: "admanager.googleapis.com/CustomTargetingValue" - pattern: "networks/{network_code}/customTargetingKeys/{custom_targeting_key}/customTargetingValues/{custom_targeting_value}" + pattern: "networks/{network_code}/customTargetingValues/{custom_targeting_value}" plural: "customTargetingValues" singular: "customTargetingValue" }; // Identifier. The resource name of the `CustomTargetingValue`. // Format: - // `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}/customTargetingValues/{custom_targeting_value_id}` + // `networks/{network_code}/customTargetingValues/{custom_targeting_value_id}` string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + // Required. Immutable. The resource name of the `CustomTargetingKey`. + // Format: + // `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` + string custom_targeting_key = 8 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/CustomTargetingKey" + } + ]; + // Immutable. Name of the `CustomTargetingValue`. Values can contain up to 40 // characters each. You can use alphanumeric characters and symbols other than // the following: ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ]. Values are diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_value_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_value_service.proto index d7241b8a3dfe..177e0c8c60f5 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_value_service.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_value_service.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -33,12 +33,17 @@ option ruby_package = "Google::Ads::AdManager::V1"; // Provides methods for handling `CustomTargetingValue` objects. service CustomTargetingValueService { option (google.api.default_host) = "admanager.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/admanager"; // API to retrieve a `CustomTargetingValue` object. rpc GetCustomTargetingValue(GetCustomTargetingValueRequest) returns (CustomTargetingValue) { option (google.api.http) = { - get: "/v1/{name=networks/*/customTargetingKeys/*/customTargetingValues/*}" + get: "/v1/{name=networks/*/customTargetingValues/*}" + additional_bindings { + get: "/v1/{name=networks/*/customTargetingKeys/*/customTargetingValues/*}" + } }; option (google.api.method_signature) = "name"; } @@ -47,7 +52,10 @@ service CustomTargetingValueService { rpc ListCustomTargetingValues(ListCustomTargetingValuesRequest) returns (ListCustomTargetingValuesResponse) { option (google.api.http) = { - get: "/v1/{parent=networks/*/customTargetingKeys/*}/customTargetingValues" + get: "/v1/{parent=networks/*}/customTargetingValues" + additional_bindings { + get: "/v1/{parent=networks/*/customTargetingKeys/*}/customTargetingValues" + } }; option (google.api.method_signature) = "parent"; } @@ -57,7 +65,7 @@ service CustomTargetingValueService { message GetCustomTargetingValueRequest { // Required. The resource name of the CustomTargetingValue. // Format: - // `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}/customTargetingValues/{custom_targeting_value_id}` + // `networks/{network_code}/customTargetingValues/{custom_targeting_value_id}` string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -70,11 +78,11 @@ message GetCustomTargetingValueRequest { message ListCustomTargetingValuesRequest { // Required. The parent, which owns this collection of CustomTargetingValues. // Format: - // `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` + // `networks/{network_code}` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { - type: "admanager.googleapis.com/CustomTargetingKey" + type: "admanager.googleapis.com/Network" } ]; diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/deal_buyer_permission_type_enum.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/deal_buyer_permission_type_enum.proto new file mode 100644 index 000000000000..69e11a93b9f7 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/deal_buyer_permission_type_enum.proto @@ -0,0 +1,41 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.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.ads.admanager.v1; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "DealBuyerPermissionTypeEnumProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Wrapper message for +// [DealBuyerPermissionType][google.ads.admanager.v1.DealBuyerPermissionTypeEnum.DealBuyerPermissionType]. +message DealBuyerPermissionTypeEnum { + // Defines how a deal would transact among all buyers under the same bidder. + enum DealBuyerPermissionType { + // No value specified. + DEAL_BUYER_PERMISSION_TYPE_UNSPECIFIED = 0; + + // The deal only transacts with the buyer specified. + NEGOTIATOR_ONLY = 1; + + // The deal transacts with all buyers under the same bidder. + BIDDER = 2; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/device_category_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/device_category_messages.proto new file mode 100644 index 000000000000..100c186f091b --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/device_category_messages.proto @@ -0,0 +1,45 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.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.ads.admanager.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "DeviceCategoryMessagesProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Represents the category of a device. For example, "smartphone" or "desktop". +message DeviceCategory { + option (google.api.resource) = { + type: "admanager.googleapis.com/DeviceCategory" + pattern: "networks/{network_code}/deviceCategories/{device_category}" + plural: "deviceCategories" + singular: "deviceCategory" + }; + + // Identifier. The resource name of the `DeviceCategory`. + // Format: `networks/{network_code}/deviceCategories/{device_category}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. The display name of the device category. + optional string display_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/device_category_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/device_category_service.proto new file mode 100644 index 000000000000..18cfd6c365eb --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/device_category_service.proto @@ -0,0 +1,129 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.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.ads.admanager.v1; + +import "google/ads/admanager/v1/device_category_messages.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "DeviceCategoryServiceProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Provides methods for handling `DeviceCategory` objects. +service DeviceCategoryService { + option (google.api.default_host) = "admanager.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/admanager"; + + // API to retrieve a `DeviceCategory` object. + rpc GetDeviceCategory(GetDeviceCategoryRequest) returns (DeviceCategory) { + option (google.api.http) = { + get: "/v1/{name=networks/*/deviceCategories/*}" + }; + option (google.api.method_signature) = "name"; + } + + // API to retrieve a list of `DeviceCategory` objects. + rpc ListDeviceCategories(ListDeviceCategoriesRequest) + returns (ListDeviceCategoriesResponse) { + option (google.api.http) = { + get: "/v1/{parent=networks/*}/deviceCategories" + }; + option (google.api.method_signature) = "parent"; + } +} + +// Request object for `GetDeviceCategory` method. +message GetDeviceCategoryRequest { + // Required. The resource name of the DeviceCategory. + // Format: `networks/{network_code}/deviceCategories/{device_category_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/DeviceCategory" + } + ]; +} + +// Request object for `ListDeviceCategories` method. +message ListDeviceCategoriesRequest { + // Required. The parent, which owns this collection of DeviceCategories. + // Format: `networks/{network_code}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Optional. The maximum number of `DeviceCategories` to return. The service + // may return fewer than this value. If unspecified, at most 50 + // `DeviceCategories` 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 `ListDeviceCategories` + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListDeviceCategories` + // must match the call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to filter the response. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to specify sorting order. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters#order + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Number of individual resources to skip while paginating. + int32 skip = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response object for `ListDeviceCategoriesRequest` containing matching +// `DeviceCategory` objects. +message ListDeviceCategoriesResponse { + // The `DeviceCategory` objects from the specified network. + repeated DeviceCategory device_categories = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Total number of `DeviceCategory` objects. + // If a filter was included in the request, this reflects the total number + // after the filtering is applied. + // + // `total_size` will not be calculated in the response unless it has been + // included in a response field mask. The response field mask can be provided + // to the method by using the URL parameter `$fields` or `fields`, or by using + // the HTTP/gRPC header `X-Goog-FieldMask`. + // + // For more information, see + // https://developers.google.com/ad-manager/api/beta/field-masks + int32 total_size = 3; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/early_ad_break_notification_enums.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/early_ad_break_notification_enums.proto new file mode 100644 index 000000000000..ad606bc354de --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/early_ad_break_notification_enums.proto @@ -0,0 +1,47 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.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.ads.admanager.v1; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "EarlyAdBreakNotificationEnumsProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Wrapper message for +// [AdBreakState][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState] +message AdBreakStateEnum { + // Represents the state of an ad break + enum AdBreakState { + // Default value. This value is unused. + AD_BREAK_STATE_UNSPECIFIED = 0; + + // The ad break's decisioning has finished. You can delete, but not update + // the ad break. + DECISIONED = 1; + + // The ad break has started serving to users. You cannot delete or update + // the ad break. + COMPLETE = 2; + + // The ad break is scheduled and decisioning will start later. You can + // delete or update the ad break. + SCHEDULED = 3; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/entity_signals_mapping_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/entity_signals_mapping_messages.proto index df36b466b0f7..4fb341e79918 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/entity_signals_mapping_messages.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/entity_signals_mapping_messages.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -54,11 +54,11 @@ message EntitySignalsMapping { string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Output only. `EntitySignalsMapping` ID. - int64 entity_signals_mapping_id = 2 + optional int64 entity_signals_mapping_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Required. The IDs of the categories that are associated with the + // Optional. The IDs of the categories that are associated with the // referencing entity. repeated int64 taxonomy_category_ids = 6 - [(google.api.field_behavior) = REQUIRED]; + [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/entity_signals_mapping_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/entity_signals_mapping_service.proto index aedbb82e49d4..0eaa475b9e88 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/entity_signals_mapping_service.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/entity_signals_mapping_service.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -34,6 +34,8 @@ option ruby_package = "Google::Ads::AdManager::V1"; // Provides methods for handling `EntitySignalsMapping` objects. service EntitySignalsMappingService { option (google.api.default_host) = "admanager.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/admanager"; // API to retrieve a `EntitySignalsMapping` object. rpc GetEntitySignalsMapping(GetEntitySignalsMappingRequest) @@ -154,7 +156,7 @@ message CreateEntitySignalsMappingRequest { string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { - child_type: "admanager.googleapis.com/EntitySignalsMapping" + type: "admanager.googleapis.com/Network" } ]; @@ -211,7 +213,7 @@ message BatchCreateEntitySignalsMappingsRequest { string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { - child_type: "admanager.googleapis.com/EntitySignalsMapping" + type: "admanager.googleapis.com/Network" } ]; @@ -235,7 +237,7 @@ message BatchUpdateEntitySignalsMappingsRequest { string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { - child_type: "admanager.googleapis.com/EntitySignalsMapping" + type: "admanager.googleapis.com/Network" } ]; diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/environment_type_enum.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/environment_type_enum.proto index 7180c8ae7c27..b2e68dbf6908 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/environment_type_enum.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/environment_type_enum.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/frequency_cap.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/frequency_cap.proto index 0b999800a2e6..ad7374328160 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/frequency_cap.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/frequency_cap.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/geo_target_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/geo_target_messages.proto new file mode 100644 index 000000000000..41c8bae795f3 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/geo_target_messages.proto @@ -0,0 +1,70 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.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.ads.admanager.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "GeoTargetMessagesProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Represents a location in the world, for targeting. +message GeoTarget { + option (google.api.resource) = { + type: "admanager.googleapis.com/GeoTarget" + pattern: "networks/{network_code}/geoTargets/{geo_target}" + plural: "geoTargets" + singular: "geoTarget" + }; + + // Identifier. The resource name of the `GeoTarget`. + // Format: `networks/{network_code}/geoTargets/{geo_target_id}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. The display name of the GeoTarget. + optional string display_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The name of the direct parent that defines the canonical name + // of the geo target. For example, if the current geo target is "San + // Francisco", its canonical name would be "San Francisco, California, United + // States" thus the canonical_parent would be the name of California and the + // canonical_parent of California would be the name of United states Format: + // `networks/{network_code}/geoTargets/{geo_target}` + optional string canonical_parent = 3 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/GeoTarget" + } + ]; + + // Output only. All parents of the geo target ordered by ascending size. + repeated string parent_names = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The Unicode CLDR region code of the geo target. + optional string region_code = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The location type (unlocalized) for this geographical entity. + optional string type = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Whether the geo target is targetable. + optional bool targetable = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/geo_target_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/geo_target_service.proto new file mode 100644 index 000000000000..88f22a973369 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/geo_target_service.proto @@ -0,0 +1,128 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.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.ads.admanager.v1; + +import "google/ads/admanager/v1/geo_target_messages.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "GeoTargetServiceProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Provides methods for handling `GeoTarget` objects. +service GeoTargetService { + option (google.api.default_host) = "admanager.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/admanager"; + + // API to retrieve a `GeoTarget` object. + rpc GetGeoTarget(GetGeoTargetRequest) returns (GeoTarget) { + option (google.api.http) = { + get: "/v1/{name=networks/*/geoTargets/*}" + }; + option (google.api.method_signature) = "name"; + } + + // API to retrieve a list of `GeoTarget` objects. + rpc ListGeoTargets(ListGeoTargetsRequest) returns (ListGeoTargetsResponse) { + option (google.api.http) = { + get: "/v1/{parent=networks/*}/geoTargets" + }; + option (google.api.method_signature) = "parent"; + } +} + +// Request object for `GetGeoTarget` method. +message GetGeoTargetRequest { + // Required. The resource name of the GeoTarget. + // Format: `networks/{network_code}/geoTargets/{geo_target_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/GeoTarget" + } + ]; +} + +// Request object for `ListGeoTargets` method. +message ListGeoTargetsRequest { + // Required. The parent, which owns this collection of GeoTargets. + // Format: `networks/{network_code}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Optional. The maximum number of `GeoTargets` to return. The service may + // return fewer than this value. If unspecified, at most 50 `GeoTargets` 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 `ListGeoTargets` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListGeoTargets` must + // match the call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to filter the response. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to specify sorting order. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters#order + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Number of individual resources to skip while paginating. + int32 skip = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response object for `ListGeoTargetsRequest` containing matching `GeoTarget` +// objects. +message ListGeoTargetsResponse { + // The `GeoTarget` objects from the specified network. + repeated GeoTarget geo_targets = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Total number of `GeoTarget` objects. + // If a filter was included in the request, this reflects the total number + // after the filtering is applied. + // + // `total_size` will not be calculated in the response unless it has been + // included in a response field mask. The response field mask can be provided + // to the method by using the URL parameter `$fields` or `fields`, or by using + // the HTTP/gRPC header `X-Goog-FieldMask`. + // + // For more information, see + // https://developers.google.com/ad-manager/api/beta/field-masks + int32 total_size = 3; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/label_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/label_messages.proto index a8fdfbd1f675..227966b79eea 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/label_messages.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/label_messages.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/live_stream_event_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/live_stream_event_messages.proto new file mode 100644 index 000000000000..b243ddd1cc47 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/live_stream_event_messages.proto @@ -0,0 +1,47 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.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.ads.admanager.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "LiveStreamEventMessagesProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// A `LiveStreamEvent` encapsulates all the information necessary to enable DAI +// (Dynamic Ad Insertion) into a live video stream. +// This includes information such as the start and expected end time of the +// `LiveStreamEvent`, the URL of the actual content for Ad Manager to pull and +// insert ads into, as well as the metadata necessary to generate ad requests +// during the live stream. +message LiveStreamEvent { + option (google.api.resource) = { + type: "admanager.googleapis.com/LiveStreamEvent" + pattern: "networks/{network_code}/liveStreamEvents/{live_stream_event}" + plural: "liveStreamEvents" + singular: "liveStreamEvent" + }; + + // Identifier. The resource name of the `LiveStreamEvent`. + // Format: `networks/{network_code}/liveStreamEvents/{live_stream_event_id}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/network_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/network_messages.proto index 8468264ee7ef..ce2cb82a2523 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/network_messages.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/network_messages.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -63,7 +63,7 @@ message Network { // Output only. Top most [Ad Unit](google.ads.admanager.v1.AdUnit) to which // descendant Ad Units can be added. - // Format: networks/{network_code}/adUnit/{ad_unit_id} + // Format: networks/{network_code}/adUnits/{ad_unit} string effective_root_ad_unit = 8 [ (google.api.field_behavior) = OUTPUT_ONLY, (google.api.resource_reference) = { diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/network_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/network_service.proto index afc526a96bf2..fed396886a50 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/network_service.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/network_service.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -30,9 +30,11 @@ option java_package = "com.google.ads.admanager.v1"; option php_namespace = "Google\\Ads\\AdManager\\V1"; option ruby_package = "Google::Ads::AdManager::V1"; -// Provides methods for handling Network objects. +// Provides methods for handling `Network` objects. service NetworkService { option (google.api.default_host) = "admanager.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/admanager"; // API to retrieve a Network object. rpc GetNetwork(GetNetworkRequest) returns (Network) { diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/operating_system_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/operating_system_messages.proto new file mode 100644 index 000000000000..8fcdf6c8fe50 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/operating_system_messages.proto @@ -0,0 +1,45 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.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.ads.admanager.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "OperatingSystemMessagesProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Represents a device's operating system. +message OperatingSystem { + option (google.api.resource) = { + type: "admanager.googleapis.com/OperatingSystem" + pattern: "networks/{network_code}/operatingSystems/{operating_system}" + plural: "operatingSystems" + singular: "operatingSystem" + }; + + // Identifier. The resource name of the `OperatingSystem`. + // Format: `networks/{network_code}/operatingSystems/{operating_system_id}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. The name of the operating system. + optional string display_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/operating_system_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/operating_system_service.proto new file mode 100644 index 000000000000..dddc6015063b --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/operating_system_service.proto @@ -0,0 +1,129 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.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.ads.admanager.v1; + +import "google/ads/admanager/v1/operating_system_messages.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "OperatingSystemServiceProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Provides methods for handling `OperatingSystem` objects. +service OperatingSystemService { + option (google.api.default_host) = "admanager.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/admanager"; + + // API to retrieve a `OperatingSystem` object. + rpc GetOperatingSystem(GetOperatingSystemRequest) returns (OperatingSystem) { + option (google.api.http) = { + get: "/v1/{name=networks/*/operatingSystems/*}" + }; + option (google.api.method_signature) = "name"; + } + + // API to retrieve a list of `OperatingSystem` objects. + rpc ListOperatingSystems(ListOperatingSystemsRequest) + returns (ListOperatingSystemsResponse) { + option (google.api.http) = { + get: "/v1/{parent=networks/*}/operatingSystems" + }; + option (google.api.method_signature) = "parent"; + } +} + +// Request object for `GetOperatingSystem` method. +message GetOperatingSystemRequest { + // Required. The resource name of the OperatingSystem. + // Format: `networks/{network_code}/operatingSystems/{operating_system_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/OperatingSystem" + } + ]; +} + +// Request object for `ListOperatingSystems` method. +message ListOperatingSystemsRequest { + // Required. The parent, which owns this collection of OperatingSystems. + // Format: `networks/{network_code}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Optional. The maximum number of `OperatingSystems` to return. The service + // may return fewer than this value. If unspecified, at most 50 + // `OperatingSystems` 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 `ListOperatingSystems` + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListOperatingSystems` + // must match the call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to filter the response. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to specify sorting order. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters#order + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Number of individual resources to skip while paginating. + int32 skip = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response object for `ListOperatingSystemsRequest` containing matching +// `OperatingSystem` objects. +message ListOperatingSystemsResponse { + // The `OperatingSystem` objects from the specified network. + repeated OperatingSystem operating_systems = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Total number of `OperatingSystem` objects. + // If a filter was included in the request, this reflects the total number + // after the filtering is applied. + // + // `total_size` will not be calculated in the response unless it has been + // included in a response field mask. The response field mask can be provided + // to the method by using the URL parameter `$fields` or `fields`, or by using + // the HTTP/gRPC header `X-Goog-FieldMask`. + // + // For more information, see + // https://developers.google.com/ad-manager/api/beta/field-masks + int32 total_size = 3; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/operating_system_version_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/operating_system_version_messages.proto new file mode 100644 index 000000000000..2065cda521e6 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/operating_system_version_messages.proto @@ -0,0 +1,52 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.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.ads.admanager.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "OperatingSystemVersionMessagesProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Represents a specific version of an operating system. +message OperatingSystemVersion { + option (google.api.resource) = { + type: "admanager.googleapis.com/OperatingSystemVersion" + pattern: "networks/{network_code}/operatingSystemVersions/{operating_system_version}" + plural: "operatingSystemVersions" + singular: "operatingSystemVersion" + }; + + // Identifier. The resource name of the `OperatingSystemVersion`. + // Format: + // `networks/{network_code}/operatingSystemVersions/{operating_system_version_id}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. The major version of the operating system. + optional int32 major_version = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The minor version of the operating system. + optional int32 minor_version = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The micro version of the operating system. + optional int32 micro_version = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/operating_system_version_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/operating_system_version_service.proto new file mode 100644 index 000000000000..2b4576dec5c8 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/operating_system_version_service.proto @@ -0,0 +1,133 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.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.ads.admanager.v1; + +import "google/ads/admanager/v1/operating_system_version_messages.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "OperatingSystemVersionServiceProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Provides methods for handling `OperatingSystemVersion` objects. +service OperatingSystemVersionService { + option (google.api.default_host) = "admanager.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/admanager"; + + // API to retrieve a `OperatingSystemVersion` object. + rpc GetOperatingSystemVersion(GetOperatingSystemVersionRequest) + returns (OperatingSystemVersion) { + option (google.api.http) = { + get: "/v1/{name=networks/*/operatingSystemVersions/*}" + }; + option (google.api.method_signature) = "name"; + } + + // API to retrieve a list of `OperatingSystemVersion` objects. + rpc ListOperatingSystemVersions(ListOperatingSystemVersionsRequest) + returns (ListOperatingSystemVersionsResponse) { + option (google.api.http) = { + get: "/v1/{parent=networks/*}/operatingSystemVersions" + }; + option (google.api.method_signature) = "parent"; + } +} + +// Request object for `GetOperatingSystemVersion` method. +message GetOperatingSystemVersionRequest { + // Required. The resource name of the OperatingSystemVersion. + // Format: + // `networks/{network_code}/operatingSystemVersions/{operating_system_version_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/OperatingSystemVersion" + } + ]; +} + +// Request object for `ListOperatingSystemVersions` method. +message ListOperatingSystemVersionsRequest { + // Required. The parent, which owns this collection of + // OperatingSystemVersions. Format: `networks/{network_code}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Optional. The maximum number of `OperatingSystemVersions` to return. The + // service may return fewer than this value. If unspecified, at most 50 + // `OperatingSystemVersions` 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 + // `ListOperatingSystemVersions` call. Provide this to retrieve the subsequent + // page. + // + // When paginating, all other parameters provided to + // `ListOperatingSystemVersions` must match the call that provided the page + // token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to filter the response. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to specify sorting order. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters#order + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Number of individual resources to skip while paginating. + int32 skip = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response object for `ListOperatingSystemVersionsRequest` containing matching +// `OperatingSystemVersion` objects. +message ListOperatingSystemVersionsResponse { + // The `OperatingSystemVersion` objects from the specified network. + repeated OperatingSystemVersion operating_system_versions = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Total number of `OperatingSystemVersion` objects. + // If a filter was included in the request, this reflects the total number + // after the filtering is applied. + // + // `total_size` will not be calculated in the response unless it has been + // included in a response field mask. The response field mask can be provided + // to the method by using the URL parameter `$fields` or `fields`, or by using + // the HTTP/gRPC header `X-Goog-FieldMask`. + // + // For more information, see + // https://developers.google.com/ad-manager/api/beta/field-masks + int32 total_size = 3; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/order_enums.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/order_enums.proto index fe86328c911a..e9e7f8787baa 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/order_enums.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/order_enums.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/order_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/order_messages.proto index 7a4df9d3dd59..0e19658863b7 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/order_messages.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/order_messages.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -45,18 +45,18 @@ message Order { string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Output only. Order ID. - int64 order_id = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + optional int64 order_id = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. The display name of the Order. This value has a maximum length // of 255 characters. - string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + optional string display_name = 2 [(google.api.field_behavior) = REQUIRED]; // Optional. Specifies whether or not the Order is a programmatic order. - bool programmatic = 3 [(google.api.field_behavior) = OPTIONAL]; + optional bool programmatic = 3 [(google.api.field_behavior) = OPTIONAL]; // Required. The resource name of the User responsible for trafficking the // Order. Format: "networks/{network_code}/users/{user_id}" - string trafficker = 23 [ + optional string trafficker = 23 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { type: "admanager.googleapis.com/User" } ]; @@ -73,7 +73,7 @@ message Order { // Required. The resource name of the Company, which is of type // Company.Type.ADVERTISER, to which this order belongs. Format: // "networks/{network_code}/companies/{company_id}" - string advertiser = 6 [ + optional string advertiser = 6 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { type: "admanager.googleapis.com/Company" @@ -92,7 +92,7 @@ message Order { // Optional. The resource name of the Company, which is of type // Company.Type.AGENCY, with which this order is associated. Format: // "networks/{network_code}/companies/{company_id}" - string agency = 8 [ + optional string agency = 8 [ (google.api.field_behavior) = OPTIONAL, (google.api.resource_reference) = { type: "admanager.googleapis.com/Company" @@ -116,60 +116,64 @@ message Order { // Output only. The resource name of the User who created the Order on behalf // of the advertiser. This value is assigned by Google. Format: // "networks/{network_code}/users/{user_id}" - string creator = 10 [ + optional string creator = 10 [ (google.api.field_behavior) = OUTPUT_ONLY, (google.api.resource_reference) = { type: "admanager.googleapis.com/User" } ]; // Output only. The ISO 4217 3-letter currency code for the currency used by // the Order. This value is the network's currency code. - string currency_code = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + optional string currency_code = 11 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The instant at which the Order and its associated line items // are eligible to begin serving. This attribute is derived from the line item // of the order that has the earliest LineItem.start_time. - google.protobuf.Timestamp start_time = 19 + optional google.protobuf.Timestamp start_time = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The instant at which the Order and its associated line items // stop being served. This attribute is derived from the line item of the // order that has the latest LineItem.end_time. - google.protobuf.Timestamp end_time = 12 + optional google.protobuf.Timestamp end_time = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Indicates whether or not this Order has an end time. - bool unlimited_end_time = 45 [(google.api.field_behavior) = OUTPUT_ONLY]; + optional bool unlimited_end_time = 45 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. An arbitrary ID to associate to the Order, which can be used as a // key to an external system. - int64 external_order_id = 13 [(google.api.field_behavior) = OPTIONAL]; + optional int32 external_order_id = 13 + [(google.api.field_behavior) = OPTIONAL]; // Output only. The archival status of the Order. - bool archived = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + optional bool archived = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The application which modified this order. This attribute is // assigned by Google. - string last_modified_by_app = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; + optional string last_modified_by_app = 15 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The instant this Order was last modified. - google.protobuf.Timestamp update_time = 16 + optional google.protobuf.Timestamp update_time = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. Provides any additional notes that may annotate the Order. This // attribute has a maximum length of 65,535 characters. - string notes = 17 [(google.api.field_behavior) = OPTIONAL]; + optional string notes = 17 [(google.api.field_behavior) = OPTIONAL]; // Optional. The purchase order number for the Order. This value has a maximum // length of 63 characters. - string po_number = 18 [(google.api.field_behavior) = OPTIONAL]; + optional string po_number = 18 [(google.api.field_behavior) = OPTIONAL]; // Output only. The status of the Order. - OrderStatusEnum.OrderStatus status = 20 + optional OrderStatusEnum.OrderStatus status = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. The resource name of the User responsible for the sales of the // Order. Format: "networks/{network_code}/users/{user_id}" - string salesperson = 21 [ + optional string salesperson = 21 [ (google.api.field_behavior) = OPTIONAL, (google.api.resource_reference) = { type: "admanager.googleapis.com/User" } ]; diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/order_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/order_service.proto index 455017423144..d86a8524f96b 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/order_service.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/order_service.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -33,6 +33,8 @@ option ruby_package = "Google::Ads::AdManager::V1"; // Provides methods for handling `Order` objects. service OrderService { option (google.api.default_host) = "admanager.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/admanager"; // API to retrieve an Order object. rpc GetOrder(GetOrderRequest) returns (Order) { diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/placement_enums.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/placement_enums.proto index 5619d71aaf6c..3e83e1303500 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/placement_enums.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/placement_enums.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/placement_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/placement_messages.proto index e02b8cce5e61..23df0b15ce31 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/placement_messages.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/placement_messages.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -45,25 +45,25 @@ message Placement { // Output only. `Placement` ID. int64 placement_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Required. The display name of the placement. Its maximum length is 255 - // characters. - string display_name = 3 [(google.api.field_behavior) = REQUIRED]; + // Required. The display name of the placement. This attribute has a maximum + // length of 255 characters. + optional string display_name = 3 [(google.api.field_behavior) = REQUIRED]; - // Optional. A description of the Placement. This value is optional and its - // maximum length is 65,535 characters. - string description = 4 [(google.api.field_behavior) = OPTIONAL]; + // Optional. A description of the Placement. This attribute has a maximum + // length of 65,535 characters. + optional string description = 4 [(google.api.field_behavior) = OPTIONAL]; // Output only. A string used to uniquely identify the Placement for purposes - // of serving the ad. This attribute is read-only and is assigned by Google - // when a placement is created. - string placement_code = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + // of serving the ad. This attribute is assigned by Google. + optional string placement_code = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The status of the Placement. This attribute is read-only. - PlacementStatusEnum.PlacementStatus status = 6 + // Output only. The status of the Placement. + optional PlacementStatusEnum.PlacementStatus status = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. The resource names of AdUnits that constitute the Placement. - // Format: "networks/{network_code}/adUnits/{ad_unit_id}" + // Format: "networks/{network_code}/adUnits/{ad_unit}" repeated string targeted_ad_units = 7 [ (google.api.field_behavior) = OPTIONAL, (google.api.resource_reference) = { @@ -72,6 +72,6 @@ message Placement { ]; // Output only. The instant this Placement was last modified. - google.protobuf.Timestamp update_time = 9 + optional google.protobuf.Timestamp update_time = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/placement_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/placement_service.proto index 2bc2b5f98308..9fc6b91420af 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/placement_service.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/placement_service.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -33,6 +33,8 @@ option ruby_package = "Google::Ads::AdManager::V1"; // Provides methods for handling `Placement` objects. service PlacementService { option (google.api.default_host) = "admanager.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/admanager"; // API to retrieve a `Placement` object. rpc GetPlacement(GetPlacementRequest) returns (Placement) { diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/private_auction_deal_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/private_auction_deal_messages.proto new file mode 100644 index 000000000000..fed4cd55acf6 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/private_auction_deal_messages.proto @@ -0,0 +1,119 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.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.ads.admanager.v1; + +import "google/ads/admanager/v1/deal_buyer_permission_type_enum.proto"; +import "google/ads/admanager/v1/private_marketplace_enums.proto"; +import "google/ads/admanager/v1/size.proto"; +import "google/ads/admanager/v1/targeting.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; +import "google/type/money.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "PrivateAuctionDealMessagesProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// The `PrivateAuctionDeal` resource. +message PrivateAuctionDeal { + option (google.api.resource) = { + type: "admanager.googleapis.com/PrivateAuctionDeal" + pattern: "networks/{network_code}/privateAuctionDeals/{private_auction_deal}" + plural: "privateAuctionDeals" + singular: "privateAuctionDeal" + }; + + // Contains buyer data. This data is required by the Marketplace API. + message BuyerData { + // Optional. The email contacts of the buyer of the `PrivateAuctionDeal`. + repeated string buyer_emails = 1 [(google.api.field_behavior) = OPTIONAL]; + } + + // Identifier. The resource name of the `PrivateAuctionDeal`. + // Format: + // `networks/{network_code}/privateAuctionDeals/{private_auction_deal_id}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. `PrivateAuctionDeal` ID. + optional int64 private_auction_deal_id = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. The ID of the + // [PrivateAuction](google.ads.admanager.v1.PrivateAuction). + optional int64 private_auction_id = 3 + [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. The display name of the + // [PrivateAuction](google.ads.admanager.v1.PrivateAuction). + optional string private_auction_display_name = 20 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. The account ID of the buyer of the `PrivateAuctionDeal`. + optional int64 buyer_account_id = 4 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. The external ID of the `PrivateAuctionDeal`. + optional int64 external_deal_id = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The targeting of the `PrivateAuctionDeal`. + optional Targeting targeting = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The end time of the `PrivateAuctionDeal`. + optional google.protobuf.Timestamp end_time = 8 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The floor price of the `PrivateAuctionDeal`. + optional google.type.Money floor_price = 9 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. The expected creative sizes of the `PrivateAuctionDeal`. + repeated Size creative_sizes = 18 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The status of the `PrivateAuctionDeal`. + optional PrivateMarketplaceDealStatusEnum.PrivateMarketplaceDealStatus + status = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Whether the deal is enabled with priority over open auction. + optional bool auction_priority_enabled = 11 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether the deal has block override enabled. + optional bool block_override_enabled = 12 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The buyer permission model defining how the deal would transact + // among all buyers under the same bidder. + optional DealBuyerPermissionTypeEnum.DealBuyerPermissionType + buyer_permission_type = 13 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The buyer data required by the Marketplace API. + optional BuyerData buyer_data = 14 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The instant at which the `PrivateAuctionDeal` was created. + optional google.protobuf.Timestamp create_time = 15 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The instant at which the `PrivateAuctionDeal` was last + // updated. + optional google.protobuf.Timestamp update_time = 16 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/private_auction_deal_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/private_auction_deal_service.proto new file mode 100644 index 000000000000..94a8c8ee7731 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/private_auction_deal_service.proto @@ -0,0 +1,184 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.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.ads.admanager.v1; + +import "google/ads/admanager/v1/private_auction_deal_messages.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "PrivateAuctionDealServiceProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Provides methods for handling `PrivateAuctionDeal` objects. +service PrivateAuctionDealService { + option (google.api.default_host) = "admanager.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/admanager"; + + // API to retrieve a `PrivateAuctionDeal` object. + rpc GetPrivateAuctionDeal(GetPrivateAuctionDealRequest) + returns (PrivateAuctionDeal) { + option (google.api.http) = { + get: "/v1/{name=networks/*/privateAuctionDeals/*}" + }; + option (google.api.method_signature) = "name"; + } + + // API to retrieve a list of `PrivateAuctionDeal` objects. + rpc ListPrivateAuctionDeals(ListPrivateAuctionDealsRequest) + returns (ListPrivateAuctionDealsResponse) { + option (google.api.http) = { + get: "/v1/{parent=networks/*}/privateAuctionDeals" + }; + option (google.api.method_signature) = "parent"; + } + + // API to create a `PrivateAuctionDeal` object. + rpc CreatePrivateAuctionDeal(CreatePrivateAuctionDealRequest) + returns (PrivateAuctionDeal) { + option (google.api.http) = { + post: "/v1/{parent=networks/*}/privateAuctionDeals" + body: "private_auction_deal" + }; + option (google.api.method_signature) = "parent,private_auction_deal"; + } + + // API to update a `PrivateAuctionDeal` object. + rpc UpdatePrivateAuctionDeal(UpdatePrivateAuctionDealRequest) + returns (PrivateAuctionDeal) { + option (google.api.http) = { + patch: "/v1/{private_auction_deal.name=networks/*/privateAuctionDeals/*}" + body: "private_auction_deal" + }; + option (google.api.method_signature) = "private_auction_deal,update_mask"; + } +} + +// Request object for `GetPrivateAuctionDeal` method. +message GetPrivateAuctionDealRequest { + // Required. The resource name of the PrivateAuctionDeal. + // Format: + // `networks/{network_code}/privateAuctionDeals/{private_auction_deal_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/PrivateAuctionDeal" + } + ]; +} + +// Request object for `ListPrivateAuctionDeals` method. +message ListPrivateAuctionDealsRequest { + // Required. The parent, which owns this collection of PrivateAuctionDeals. + // Format: + // `networks/{network_code}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Optional. The maximum number of `PrivateAuctionDeals` to return. The + // service may return fewer than this value. If unspecified, at most 50 + // `PrivateAuctionDeals` 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 `ListPrivateAuctionDeals` + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // `ListPrivateAuctionDeals` must match the call that provided the page + // token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to filter the response. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to specify sorting order. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters#order + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Number of individual resources to skip while paginating. + int32 skip = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response object for `ListPrivateAuctionDealsRequest` containing matching +// `PrivateAuctionDeal` objects. +message ListPrivateAuctionDealsResponse { + // The `PrivateAuctionDeal` objects from the specified network. + repeated PrivateAuctionDeal private_auction_deals = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Total number of `PrivateAuctionDeal` objects. + // If a filter was included in the request, this reflects the total number + // after the filtering is applied. + // + // `total_size` will not be calculated in the response unless it has been + // included in a response field mask. The response field mask can be provided + // to the method by using the URL parameter `$fields` or `fields`, or by using + // the HTTP/gRPC header `X-Goog-FieldMask`. + // + // For more information, see + // https://developers.google.com/ad-manager/api/beta/field-masks + int32 total_size = 3; +} + +// Request object for `CreatePrivateAuctionDeal` method. +message CreatePrivateAuctionDealRequest { + // Required. The parent resource where this `PrivateAuctionDeal` will be + // created. Format: `networks/{network_code}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Required. The `PrivateAuctionDeal` to create. + PrivateAuctionDeal private_auction_deal = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request object for `UpdatePrivateAuctionDeal` method. +message UpdatePrivateAuctionDealRequest { + // Required. The `PrivateAuctionDeal` to update. + // + // The `PrivateAuctionDeal`'s `name` is used to identify the + // `PrivateAuctionDeal` to update. + PrivateAuctionDeal private_auction_deal = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of fields to update. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/private_auction_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/private_auction_messages.proto new file mode 100644 index 000000000000..d6b3759aa93d --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/private_auction_messages.proto @@ -0,0 +1,74 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.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.ads.admanager.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "PrivateAuctionMessagesProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// The `PrivateAuction` resource. +message PrivateAuction { + option (google.api.resource) = { + type: "admanager.googleapis.com/PrivateAuction" + pattern: "networks/{network_code}/privateAuctions/{private_auction}" + plural: "privateAuctions" + singular: "privateAuction" + }; + + // Identifier. The resource name of the `PrivateAuction`. + // Format: + // `networks/{network_code}/privateAuctions/{private_auction_id}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. `PrivateAuction` ID. + optional int64 private_auction_id = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Display name of the `PrivateAuction`. This attribute has a + // maximum length of 255 bytes. + optional string display_name = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Description of the `PrivateAuction`. This attribute has a + // maximum length of 4096 bytes. + optional string description = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The resource names of the seller contact users associated with + // this `PrivateAuction`. Format: `networks/{network_code}/users/{user_id}` + repeated string seller_contact_users = 9 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "admanager.googleapis.com/User" } + ]; + + // Output only. Whether the `PrivateAuction` is archived. + optional bool archived = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The instant at which the PrivateAuction was created. + optional google.protobuf.Timestamp create_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The instant at which the PrivateAuction was last updated. + optional google.protobuf.Timestamp update_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/private_auction_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/private_auction_service.proto new file mode 100644 index 000000000000..4518537fef9a --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/private_auction_service.proto @@ -0,0 +1,180 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.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.ads.admanager.v1; + +import "google/ads/admanager/v1/private_auction_messages.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "PrivateAuctionServiceProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Provides methods for handling `PrivateAuction` objects. +service PrivateAuctionService { + option (google.api.default_host) = "admanager.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/admanager"; + + // API to retrieve a `PrivateAuction` object. + rpc GetPrivateAuction(GetPrivateAuctionRequest) returns (PrivateAuction) { + option (google.api.http) = { + get: "/v1/{name=networks/*/privateAuctions/*}" + }; + option (google.api.method_signature) = "name"; + } + + // API to retrieve a list of `PrivateAuction` objects. + rpc ListPrivateAuctions(ListPrivateAuctionsRequest) + returns (ListPrivateAuctionsResponse) { + option (google.api.http) = { + get: "/v1/{parent=networks/*}/privateAuctions" + }; + option (google.api.method_signature) = "parent"; + } + + // API to create a `PrivateAuction` object. + rpc CreatePrivateAuction(CreatePrivateAuctionRequest) + returns (PrivateAuction) { + option (google.api.http) = { + post: "/v1/{parent=networks/*}/privateAuctions" + body: "private_auction" + }; + option (google.api.method_signature) = "parent,private_auction"; + } + + // API to update a `PrivateAuction` object. + rpc UpdatePrivateAuction(UpdatePrivateAuctionRequest) + returns (PrivateAuction) { + option (google.api.http) = { + patch: "/v1/{private_auction.name=networks/*/privateAuctions/*}" + body: "private_auction" + }; + option (google.api.method_signature) = "private_auction,update_mask"; + } +} + +// Request object for `GetPrivateAuction` method. +message GetPrivateAuctionRequest { + // Required. The resource name of the PrivateAuction. + // Format: + // `networks/{network_code}/privateAuctions/{private_auction_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/PrivateAuction" + } + ]; +} + +// Request object for `ListPrivateAuctions` method. +message ListPrivateAuctionsRequest { + // Required. The parent, which owns this collection of PrivateAuctions. + // Format: `networks/{network_code}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Optional. The maximum number of `PrivateAuctions` to return. The service + // may return fewer than this value. If unspecified, at most 50 + // `PrivateAuctions` 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 `ListPrivateAuctions` + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // `ListPrivateAuctions` must match the call that provided the + // page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to filter the response. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to specify sorting order. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters#order + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Number of individual resources to skip while paginating. + int32 skip = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response object for `ListPrivateAuctionsRequest` containing +// matching `PrivateAuction` objects. +message ListPrivateAuctionsResponse { + // The `PrivateAuction` objects from the specified network. + repeated PrivateAuction private_auctions = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Total number of `PrivateAuction` objects. + // If a filter was included in the request, this reflects the total number + // after the filtering is applied. + // + // `total_size` will not be calculated in the response unless it has been + // included in a response field mask. The response field mask can be provided + // to the method by using the URL parameter `$fields` or `fields`, or by using + // the HTTP/gRPC header `X-Goog-FieldMask`. + // + // For more information, see + // https://developers.google.com/ad-manager/api/beta/field-masks + int32 total_size = 3; +} + +// Request object for `CreatePrivateAuction` method. +message CreatePrivateAuctionRequest { + // Required. The parent resource where this `PrivateAuction` will be + // created. Format: `networks/{network_code}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Required. The `PrivateAuction` to create. + PrivateAuction private_auction = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request object for `UpdatePrivateAuction` method. +message UpdatePrivateAuctionRequest { + // Required. The `PrivateAuction` to update. + // + // The `PrivateAuction`'s `name` is used to identify the + // `PrivateAuction` to update. + PrivateAuction private_auction = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of fields to update. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/company_type_enum.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/private_marketplace_enums.proto similarity index 55% rename from java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/company_type_enum.proto rename to java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/private_marketplace_enums.proto index ea73831a3f92..78baf5e78592 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/company_type_enum.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/private_marketplace_enums.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -19,33 +19,32 @@ package google.ads.admanager.v1; option csharp_namespace = "Google.Ads.AdManager.V1"; option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; option java_multiple_files = true; -option java_outer_classname = "CompanyTypeEnumProto"; +option java_outer_classname = "PrivateMarketplaceEnumsProto"; option java_package = "com.google.ads.admanager.v1"; option php_namespace = "Google\\Ads\\AdManager\\V1"; option ruby_package = "Google::Ads::AdManager::V1"; // Wrapper message for -// [CompanyType][google.ads.admanager.v1.CompanyTypeEnum.CompanyType] -message CompanyTypeEnum { - // The type of a company. - enum CompanyType { - // No value specified - COMPANY_TYPE_UNSPECIFIED = 0; +// [PrivateMarketplaceDealStatus][google.ads.admanager.v1.PrivateMarketplaceDealStatusEnum.PrivateMarketplaceDealStatus]. +message PrivateMarketplaceDealStatusEnum { + // Describes the status of a private marketplace deal. + enum PrivateMarketplaceDealStatus { + // No value specified. + PRIVATE_MARKETPLACE_DEAL_STATUS_UNSPECIFIED = 0; - // A business entity that purchases ad inventory. - ADVERTISER = 1; + // The deal is pending. + PENDING = 1; - // A company representing the publisher's own advertiser for house ads. - HOUSE_ADVERTISER = 2; + // The deal is active. + ACTIVE = 2; - // An organization that manages ad accounts and offers services, such as ad - // creation, placement, and management to advertisers. - AGENCY = 3; + // The deal is canceled. + CANCELED = 3; - // A company representing the publisher's own agency. - HOUSE_AGENCY = 4; + // The deal is paused by the seller. + SELLER_PAUSED = 4; - // A company representing multiple advertisers and agencies. - AD_NETWORK = 5; + // The deal is paused by the buyer. + BUYER_PAUSED = 5; } } diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/programmatic_buyer_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/programmatic_buyer_messages.proto new file mode 100644 index 000000000000..db1b8f362c4d --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/programmatic_buyer_messages.proto @@ -0,0 +1,72 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.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.ads.admanager.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "ProgrammaticBuyerMessagesProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Represents a programmatic buyer. +message ProgrammaticBuyer { + option (google.api.resource) = { + type: "admanager.googleapis.com/ProgrammaticBuyer" + pattern: "networks/{network_code}/programmaticBuyers/{programmatic_buyer}" + plural: "programmaticBuyers" + singular: "programmaticBuyer" + }; + + // Identifier. The resource name of the `ProgrammaticBuyer`. + // Format: + // `networks/{network_code}/programmaticBuyers/{buyer_account_id}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. The buyer account ID of the buyer. + optional int64 buyer_account_id = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The display name of the buyer. + optional string display_name = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The ID of the programmatic buyer's sponsor. If the buyer has + // no sponsor, this field will be -1. + optional int64 parent_account_id = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. ID of the Display & Video 360 client buyer partner ID (if + // Display & Video 360) or Authorized Buyers client buyer account ID. + optional string partner_client_id = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Whether the buyer is an advertising agency. + optional bool agency = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Whether the buyer is enabled for preferred deals. + optional bool preferred_deals_enabled = 12 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Whether the buyer is enabled for programmatic guaranteed + // deals. + optional bool programmatic_guaranteed_enabled = 13 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/programmatic_buyer_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/programmatic_buyer_service.proto new file mode 100644 index 000000000000..8b33e36e6aea --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/programmatic_buyer_service.proto @@ -0,0 +1,131 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.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.ads.admanager.v1; + +import "google/ads/admanager/v1/programmatic_buyer_messages.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "ProgrammaticBuyerServiceProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Provides methods for handling `ProgrammaticBuyer` objects. +service ProgrammaticBuyerService { + option (google.api.default_host) = "admanager.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/admanager"; + + // API to retrieve a `ProgrammaticBuyer` object. + rpc GetProgrammaticBuyer(GetProgrammaticBuyerRequest) + returns (ProgrammaticBuyer) { + option (google.api.http) = { + get: "/v1/{name=networks/*/programmaticBuyers/*}" + }; + option (google.api.method_signature) = "name"; + } + + // API to retrieve a list of `ProgrammaticBuyer` objects. + rpc ListProgrammaticBuyers(ListProgrammaticBuyersRequest) + returns (ListProgrammaticBuyersResponse) { + option (google.api.http) = { + get: "/v1/{parent=networks/*}/programmaticBuyers" + }; + option (google.api.method_signature) = "parent"; + } +} + +// Request object for `GetProgrammaticBuyer` method. +message GetProgrammaticBuyerRequest { + // Required. The resource name of the ProgrammaticBuyer. + // Format: + // `networks/{network_code}/programmaticBuyers/{buyer_account_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/ProgrammaticBuyer" + } + ]; +} + +// Request object for `ListProgrammaticBuyers` method. +message ListProgrammaticBuyersRequest { + // Required. The parent, which owns this collection of ProgrammaticBuyers. + // Format: `networks/{network_code}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Optional. The maximum number of `ProgrammaticBuyers` to return. The service + // may return fewer than this value. If unspecified, at most 50 + // `ProgrammaticBuyers` 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 `ListProgrammaticBuyers` + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListProgrammaticBuyers` + // must match the call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to filter the response. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to specify sorting order. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters#order + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Number of individual resources to skip while paginating. + int32 skip = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response object for `ListProgrammaticBuyersRequest` containing matching +// `ProgrammaticBuyer` objects. +message ListProgrammaticBuyersResponse { + // The `ProgrammaticBuyer` objects from the specified network. + repeated ProgrammaticBuyer programmatic_buyers = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Total number of `ProgrammaticBuyer` objects. + // If a filter was included in the request, this reflects the total number + // after the filtering is applied. + // + // `total_size` will not be calculated in the response unless it has been + // included in a response field mask. The response field mask can be provided + // to the method by using the URL parameter `$fields` or `fields`, or by using + // the HTTP/gRPC header `X-Goog-FieldMask`. + // + // For more information, see + // https://developers.google.com/ad-manager/api/beta/field-masks + int32 total_size = 3; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/report_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/report_messages.proto new file mode 100644 index 000000000000..d75f1e517d89 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/report_messages.proto @@ -0,0 +1,3536 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.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.ads.admanager.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; +import "google/type/date.proto"; +import "google/type/dayofweek.proto"; +import "google/type/timeofday.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "ReportMessagesProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// The `Report` resource. +message Report { + option (google.api.resource) = { + type: "admanager.googleapis.com/Report" + pattern: "networks/{network_code}/reports/{report}" + plural: "reports" + singular: "report" + }; + + // Represents a single value in a report. + message Value { + // A list of integer values. + message IntList { + // The values + repeated int64 values = 1; + } + + // A list of string values. + message StringList { + // The values + repeated string values = 1; + } + + // The value of the field, depends on the field's data format. + oneof value { + // For integer values. + int64 int_value = 1; + + // For double values. + double double_value = 2; + + // For string values. + string string_value = 3; + + // For boolean values. + bool bool_value = 4; + + // For lists of integer values. + IntList int_list_value = 6; + + // For lists of string values. + StringList string_list_value = 7; + + // For bytes values. + bytes bytes_value = 8; + } + } + + // Represents a sorting in a report. + message Sort { + // Required. A field (dimension or metric) to sort by. + Field field = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The sort order. If true the sort will be descending. + bool descending = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Use to sort on a specific slice of data. + optional Slice slice = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. When using time period columns, use this to sort on a specific + // column. + optional int32 time_period_index = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Use to specify which metric value type to sort on. Defaults to + // PRIMARY. + optional MetricValueType metric_value_type = 5 + [(google.api.field_behavior) = OPTIONAL]; + } + + // A table containing report data including dimension and metric values. + message DataTable { + // A row of report data. + message Row { + // The order of the dimension values is the same as the order of the + // dimensions specified in the request. + repeated Value dimension_values = 1; + + // + // The length of the metric_value_groups + // field will be equal to the length of the date_ranges field in the + // fetch response. The metric_value_groups field is + // ordered such that each index corresponds to the date_range at the same + // index. For example, given date_ranges [x, y], metric_value_groups will + // have a length of two. The first entry in metric_value_groups represents + // the metrics for date x and the second entry in metric_value_groups + // represents the metrics for date y. + repeated MetricValueGroup metric_value_groups = 2; + } + + // Contains all metric values requested for a single date range and set of + // column dimension values (returned in the columns field of the response). + // The order of the metrics in each field corresponds to the order of the + // metrics specified in the request. + message MetricValueGroup { + // Data for the PRIMARY MetricValueType. + repeated Value primary_values = 1; + + // Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType. + repeated Value primary_percent_of_total_values = 2; + + // Data for the COMPARISON MetricValueType. + repeated Value comparison_values = 3; + + // Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType. + repeated Value comparison_percent_of_total_values = 4; + + // Data for the ABSOLUTE_CHANGE MetricValueType. + repeated Value absolute_change_values = 5; + + // Data for the RELATIVE_CHANGE MetricValueType. + repeated Value relative_change_values = 6; + + // If true, the flag's conditions are met. If false, the flag's + // conditions are not met. flag_values has the same length as + // flags and index i of flag_values represents the flag at index i + // of flags. + repeated bool flag_values = 7; + } + } + + // A dimension or a metric in a report. + message Field { + // Either a dimension or a metric. + oneof field { + // The dimension this field represents. + Dimension dimension = 1; + + // The metric this field represents. + Metric metric = 2; + } + } + + // Use to specify a slice of data. + // + // For example, in a report, to focus on just data from the US, specify + // `COUNTRY_NAME` for dimension and value: `"United States"`. + message Slice { + // Required. The dimension to slice on. + Dimension dimension = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The value of the dimension. + Value value = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // A filter over one or more fields. + message Filter { + // A filter on a specific field. + message FieldFilter { + // Required. The field to filter on. + Field field = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The operation of this filter. + Operation operation = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Values to filter to. + repeated Value values = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Use to filter on a specific slice of data. + optional Slice slice = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. When using time period columns, use this to filter on a + // specific column. + optional int32 time_period_index = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Use to specify which metric value type to filter on. Defaults + // to PRIMARY. + optional MetricValueType metric_value_type = 6 + [(google.api.field_behavior) = OPTIONAL]; + } + + // A list of filters. + message FilterList { + // Required. A list of filters. + repeated Filter filters = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // Supported filter operations. + enum Operation { + // For scalar operands, checks if the operand is in the set of provided + // filter values. + // + // For list operands, checks if any element in the operand is in the set + // of provided filter values. + // + // Default value. + IN = 0; + + // For scalar operands, checks that the operand is not in the set of + // provided filter values. + // + // For list operands, checks that none of the elements in the operand + // is in the set of provided filter values. + NOT_IN = 1; + + // For scalar string operands, checks if the operand contains any of the + // provided filter substrings. + // + // For string list operands, checks if any string in the operand contains + // any of the provided filter substrings. + CONTAINS = 2; + + // For scalar string operands, checks that the operand contains none of + // the provided filter substrings. + // + // For string list operands, checks that none of the strings in the + // operand contain none of the provided filter substrings. + NOT_CONTAINS = 3; + + // Operand is less than the provided filter value. + LESS_THAN = 4; + + // Operand is less than or equal to provided filter value. + LESS_THAN_EQUALS = 5; + + // Operand is greater than provided filter value. + GREATER_THAN = 6; + + // Operand is greater than or equal to provided filter value. + GREATER_THAN_EQUALS = 7; + + // Operand is between provided filter values. + BETWEEN = 8; + + // Operand matches against a regex or set of regexes (one must match) + MATCHES = 9; + + // Operand negative matches against a regex or set of regexes (none must + // match) + NOT_MATCHES = 10; + } + + // The type determines how the underlying filters are combined. + oneof type { + // A filter on a single field. + FieldFilter field_filter = 1; + + // A filter whose result is negated. + Filter not_filter = 2; + + // A list of filters whose results are AND-ed. + FilterList and_filter = 3; + + // A list of filters whose results are OR-ed. + FilterList or_filter = 4; + } + } + + // A flag for a report. Flags are used show if certain thresholds are met. + // Result rows that match the filter will have the corresponding + // [MetricValueGroup.flagValues][MetricValueGroup] index set to true. + // For more information about flags see: + // https://support.google.com/admanager/answer/15079975 + message Flag { + // Required. Filters to apply for the flag. + repeated Filter filters = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Name of the flag. + // The flag names RED, YELLOW, GREEN, BLUE, PURPLE, and GREY correspond to + // the colored flags that appear in the UI. The UI will not display flags + // with other names, but they are available for use by API clients. + string name = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // A date range for a report. + message DateRange { + // A date range between two fixed dates (inclusive of end date). + message FixedDateRange { + // Required. The start date of this date range. + google.type.Date start_date = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The end date (inclusive) of this date range. + google.type.Date end_date = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // Options for relative date ranges. + enum RelativeDateRange { + // Default value. This value is unused. + RELATIVE_DATE_RANGE_UNSPECIFIED = 0; + + // The date the report is run. + TODAY = 1; + + // The date a day before the date that the report is run. + YESTERDAY = 2; + + // The full week in which this report is run. Could include dates in + // the future. + THIS_WEEK = 3; + + // From the beginning of the calendar week (Monday to Sunday) in which the + // up to and including the day the report is run. + THIS_WEEK_TO_DATE = 29; + + // The full month in which this report is run. Could include dates in + // the future. + THIS_MONTH = 4; + + // From the beginning of the calendar month in which the report is run, to + // up to and including the day the report is run. + THIS_MONTH_TO_DATE = 26; + + // The full quarter in which this report is run. Could include dates + // in the future. + THIS_QUARTER = 5; + + // From the beginning of the calendar quarter in which the report is run, + // up to and including the day the report is run. + THIS_QUARTER_TO_DATE = 27; + + // The full year in which this report is run. Could include dates in + // the future. + THIS_YEAR = 6; + + // From the beginning of the calendar year in which the report is run, to + // up to and including the day the report is run. + THIS_YEAR_TO_DATE = 28; + + // The entire previous calendar week, Monday to Sunday (inclusive), + // preceding the calendar week the report is run. + LAST_WEEK = 7; + + // The entire previous calendar month preceding the calendar month the + // report is run. + LAST_MONTH = 8; + + // The entire previous calendar quarter preceding the calendar quarter the + // report is run. + LAST_QUARTER = 9; + + // The entire previous calendar year preceding the calendar year the + // report is run. + LAST_YEAR = 10; + + // The 7 days preceding the day the report is run. + LAST_7_DAYS = 11; + + // The 30 days preceding the day the report is run. + LAST_30_DAYS = 12; + + // The 60 days preceding the day the report is run. + LAST_60_DAYS = 13; + + // The 90 days preceding the day the report is run. + LAST_90_DAYS = 14; + + // The 180 days preceding the day the report is run. + LAST_180_DAYS = 15; + + // The 360 days preceding the day the report is run. + LAST_360_DAYS = 16; + + // The 365 days preceding the day the report is run. + LAST_365_DAYS = 17; + + // The entire previous 3 calendar months preceding the calendar month the + // report is run. + LAST_3_MONTHS = 18; + + // The entire previous 6 calendar months preceding the calendar month the + // report is run. + LAST_6_MONTHS = 19; + + // The entire previous 6 calendar months preceding the calendar month the + // report is run. + LAST_12_MONTHS = 20; + + // From 3 years before the report is run, to the day before the report is + // run, inclusive. + ALL_AVAILABLE = 21; + + // Only valid when used in the comparison_date_range field. The complete + // period preceding the date period provided in date_range. + // + // In the case where date_range is a FixedDateRange of N days, this will + // be a period of N days where the end date is the date preceding the + // start date of the date_range. + // + // In the case where date_range is a RelativeDateRange, this will be a + // period of the same time frame preceding the date_range. In the case + // where the date_range does not capture the full period because a report + // is run in the middle of that period, this will still be the full + // preceding period. For example, if date_range is THIS_WEEK, but the + // report is run on a Wednesday, THIS_WEEK will be Monday - Wednesday, but + // PREVIOUS_PERIOD will be Monday - Sunday. + PREVIOUS_PERIOD = 22; + + // Only valid when used in the comparison_date_range field. The period + // starting 1 year prior to the date period provided in date_range. + // + // In the case where date_range is a FixedDateRange, this will be a date + // range starting 1 year prior to the date_range start date and ending 1 + // year prior to the date_range end date. + // + // In the case where date_range is a RelativeDateRange, this will be a + // period of the same time frame exactly 1 year prior to the date_range. + // In the case where the date_range does not capture the full period + // because a report is run in the middle of that period, this will still + // be the full period 1 year prior. For example, if date range is + // THIS_WEEK, but the report is run on a Wednesday, THIS_WEEK will be + // Monday - Wednesday, but SAME_PERIOD_PREVIOUS_YEAR will be Monday - + // Sunday. + SAME_PERIOD_PREVIOUS_YEAR = 24; + } + + // Either a fixed or relative date range. + oneof date_range_type { + // A fixed date range. + FixedDateRange fixed = 1; + + // A relative date range. + RelativeDateRange relative = 2; + } + } + + // Valid time period columns. + enum TimePeriodColumn { + // Default value. Report will have no time period column. + TIME_PERIOD_COLUMN_UNSPECIFIED = 0; + + // A column for each date in the report. + TIME_PERIOD_COLUMN_DATE = 1; + + // A column for each week in the report. + TIME_PERIOD_COLUMN_WEEK = 2; + + // A column for each month in the report. + TIME_PERIOD_COLUMN_MONTH = 3; + + // A column for each quarter in the report. + TIME_PERIOD_COLUMN_QUARTER = 4; + } + + // Reporting dimensions. + enum Dimension { + // Default value. This value is unused. + DIMENSION_UNSPECIFIED = 0; + + // The domain name of the advertiser. + ADVERTISER_DOMAIN_NAME = 242; + + // The ID used in an external system for advertiser identification + ADVERTISER_EXTERNAL_ID = 228; + + // The ID of an advertiser company assigned to an order + ADVERTISER_ID = 131; + + // Labels applied to the advertiser + // can be used for either competitive exclusion or ad exclusion + ADVERTISER_LABELS = 230; + + // Label ids applied to the advertiser + // can be used for either competitive exclusion or ad exclusion + ADVERTISER_LABEL_IDS = 229; + + // The name of an advertiser company assigned to an order + ADVERTISER_NAME = 132; + + // The name of the contact associated with an advertiser company + ADVERTISER_PRIMARY_CONTACT = 227; + + // Shows an ENUM value describing whether a given piece of publisher + // inventory was above (ATF) or below the fold (BTF) of a page. + AD_LOCATION = 390; + + // Shows a localized string describing whether a given piece of publisher + // inventory was above (ATF) or below the fold (BTF) of a page. + AD_LOCATION_NAME = 391; + + // The code of the ad unit where the ad was requested. + AD_UNIT_CODE = 64; + + // The code of the first level ad unit of the ad unit where the ad was + // requested. + AD_UNIT_CODE_LEVEL_1 = 65; + + // The code of the tenth level ad unit of the ad unit where the ad was + // requested. + AD_UNIT_CODE_LEVEL_10 = 74; + + // The code of the eleventh level ad unit of the ad unit where the ad was + // requested. + AD_UNIT_CODE_LEVEL_11 = 75; + + // The code of the twelfth level ad unit of the ad unit where the ad was + // requested. + AD_UNIT_CODE_LEVEL_12 = 76; + + // The code of the thirteenth level ad unit of the ad unit where the ad was + // requested. + AD_UNIT_CODE_LEVEL_13 = 77; + + // The code of the fourteenth level ad unit of the ad unit where the ad was + // requested. + AD_UNIT_CODE_LEVEL_14 = 78; + + // The code of the fifteenth level ad unit of the ad unit where the ad was + // requested. + AD_UNIT_CODE_LEVEL_15 = 79; + + // The code of the sixteenth level ad unit of the ad unit where the ad was + // requested. + AD_UNIT_CODE_LEVEL_16 = 80; + + // The code of the second level ad unit of the ad unit where the ad was + // requested. + AD_UNIT_CODE_LEVEL_2 = 66; + + // The code of the third level ad unit of the ad unit where the ad was + // requested. + AD_UNIT_CODE_LEVEL_3 = 67; + + // The code of the fourth level ad unit of the ad unit where the ad was + // requested. + AD_UNIT_CODE_LEVEL_4 = 68; + + // The code of the fifth level ad unit of the ad unit where the ad was + // requested. + AD_UNIT_CODE_LEVEL_5 = 69; + + // The code of the sixth level ad unit of the ad unit where the ad was + // requested. + AD_UNIT_CODE_LEVEL_6 = 70; + + // The code of the seventh level ad unit of the ad unit where the ad was + // requested. + AD_UNIT_CODE_LEVEL_7 = 71; + + // The code of the eighth level ad unit of the ad unit where the ad was + // requested. + AD_UNIT_CODE_LEVEL_8 = 72; + + // The code of the ninth level ad unit of the ad unit where the ad was + // requested. + AD_UNIT_CODE_LEVEL_9 = 73; + + // The depth of the ad unit's hierarchy + AD_UNIT_DEPTH = 101; + + // The ID of the ad unit where the ad was requested. + AD_UNIT_ID = 25; + + // The full hierarchy of ad unit IDs where the ad was requested, from + // root to leaf, excluding the root ad unit ID. + AD_UNIT_ID_ALL_LEVEL = 27; + + // The first level ad unit ID of the ad unit where the ad was requested. + AD_UNIT_ID_LEVEL_1 = 30; + + // The tenth level ad unit ID of the ad unit where the ad was requested. + AD_UNIT_ID_LEVEL_10 = 48; + + // The eleventh level ad unit ID of the ad unit where the ad was requested. + AD_UNIT_ID_LEVEL_11 = 50; + + // The twelfth level ad unit ID of the ad unit where the ad was requested. + AD_UNIT_ID_LEVEL_12 = 52; + + // The thirteenth level ad unit ID of the ad unit where the ad was + // requested. + AD_UNIT_ID_LEVEL_13 = 54; + + // The fourteenth level ad unit ID of the ad unit where the ad was + // requested. + AD_UNIT_ID_LEVEL_14 = 56; + + // The fifteenth level ad unit ID of the ad unit where the ad was requested. + AD_UNIT_ID_LEVEL_15 = 58; + + // The sixteenth level ad unit ID of the ad unit where the ad was requested. + AD_UNIT_ID_LEVEL_16 = 60; + + // The second level ad unit ID of the ad unit where the ad was requested. + AD_UNIT_ID_LEVEL_2 = 32; + + // The third level ad unit ID of the ad unit where the ad was requested. + AD_UNIT_ID_LEVEL_3 = 34; + + // The fourth level ad unit ID of the ad unit where the ad was requested. + AD_UNIT_ID_LEVEL_4 = 36; + + // The fifth level ad unit ID of the ad unit where the ad was requested. + AD_UNIT_ID_LEVEL_5 = 38; + + // The sixth level ad unit ID of the ad unit where the ad was requested. + AD_UNIT_ID_LEVEL_6 = 40; + + // The seventh level ad unit ID of the ad unit where the ad was requested. + AD_UNIT_ID_LEVEL_7 = 42; + + // The eighth level ad unit ID of the ad unit where the ad was requested. + AD_UNIT_ID_LEVEL_8 = 44; + + // The ninth level ad unit ID of the ad unit where the ad was requested. + AD_UNIT_ID_LEVEL_9 = 46; + + // The top-level ad unit ID of the ad unit where the ad was requested. + AD_UNIT_ID_TOP_LEVEL = 142; + + // The name of the ad unit where the ad was requested. + AD_UNIT_NAME = 26; + + // The full hierarchy of ad unit names where the ad was requested, from + // root to leaf, excluding the root ad unit name. + AD_UNIT_NAME_ALL_LEVEL = 29; + + // The first level ad unit name of the ad unit where the ad was requested. + AD_UNIT_NAME_LEVEL_1 = 31; + + // The tenth level ad unit name of the ad unit where the ad was requested. + AD_UNIT_NAME_LEVEL_10 = 49; + + // The eleventh level ad unit name of the ad unit where the ad was + // requested. + AD_UNIT_NAME_LEVEL_11 = 51; + + // The twelfth level ad unit name of the ad unit where the ad was requested. + AD_UNIT_NAME_LEVEL_12 = 53; + + // The thirteenth level ad unit name of the ad unit where the ad was + // requested. + AD_UNIT_NAME_LEVEL_13 = 55; + + // The fourteenth level ad unit name of the ad unit where the ad was + // requested. + AD_UNIT_NAME_LEVEL_14 = 57; + + // The fifteenth level ad unit name of the ad unit where the ad was + // requested. + AD_UNIT_NAME_LEVEL_15 = 59; + + // The sixteenth level ad unit name of the ad unit where the ad was + // requested. + AD_UNIT_NAME_LEVEL_16 = 61; + + // The second level ad unit name of the ad unit where the ad was requested. + AD_UNIT_NAME_LEVEL_2 = 33; + + // The third level ad unit name of the ad unit where the ad was requested. + AD_UNIT_NAME_LEVEL_3 = 35; + + // The fourth level ad unit name of the ad unit where the ad was requested. + AD_UNIT_NAME_LEVEL_4 = 37; + + // The fifth level ad unit name of the ad unit where the ad was requested. + AD_UNIT_NAME_LEVEL_5 = 39; + + // The sixth level ad unit name of the ad unit where the ad was requested. + AD_UNIT_NAME_LEVEL_6 = 41; + + // The seventh level ad unit name of the ad unit where the ad was requested. + AD_UNIT_NAME_LEVEL_7 = 43; + + // The eighth level ad unit name of the ad unit where the ad was requested. + AD_UNIT_NAME_LEVEL_8 = 45; + + // The ninth level ad unit name of the ad unit where the ad was requested. + AD_UNIT_NAME_LEVEL_9 = 47; + + // The top-level ad unit name of the ad unit where the ad was requested. + AD_UNIT_NAME_TOP_LEVEL = 143; + + // The reward amount of the ad unit where the ad was requested. + AD_UNIT_REWARD_AMOUNT = 63; + + // The reward type of the ad unit where the ad was requested. + AD_UNIT_REWARD_TYPE = 62; + + // The status of the ad unit + AD_UNIT_STATUS = 206; + + // The name of the status of the ad unit + AD_UNIT_STATUS_NAME = 207; + + // The app version. + APP_VERSION = 392; + + // The ID used in an external system for advertiser identification + BACKFILL_ADVERTISER_EXTERNAL_ID = 349; + + // The ID of an advertiser company assigned to a backfill order + BACKFILL_ADVERTISER_ID = 346; + + // Labels applied to the advertiser + // can be used for either competitive exclusion or ad exclusion + BACKFILL_ADVERTISER_LABELS = 351; + + // Label ids applied to the advertiser + // can be used for either competitive exclusion or ad exclusion + BACKFILL_ADVERTISER_LABEL_IDS = 350; + + // The name of an advertiser company assigned to a backfill order + BACKFILL_ADVERTISER_NAME = 347; + + // The name of the contact associated with an advertiser company + BACKFILL_ADVERTISER_PRIMARY_CONTACT = 348; + + // Enum value of Backfill creative billing type + BACKFILL_CREATIVE_BILLING_TYPE = 378; + + // Localized string value of Backfill creative billing type + BACKFILL_CREATIVE_BILLING_TYPE_NAME = 379; + + // Represents the click-through URL of a Backfill creative + BACKFILL_CREATIVE_CLICK_THROUGH_URL = 376; + + // The ID of a Backfill creative + BACKFILL_CREATIVE_ID = 370; + + // Backfill creative name + BACKFILL_CREATIVE_NAME = 371; + + // Third party vendor name of a Backfill creative + BACKFILL_CREATIVE_THIRD_PARTY_VENDOR = 377; + + // Enum value of Backfill creative type + BACKFILL_CREATIVE_TYPE = 374; + + // Localized string name of Backfill creative type + BACKFILL_CREATIVE_TYPE_NAME = 375; + + // Whether a Backfill line item is archived. + BACKFILL_LINE_ITEM_ARCHIVED = 278; + + // Backfill line item comanion delivery option ENUM value. + BACKFILL_LINE_ITEM_COMPANION_DELIVERY_OPTION = 258; + + // Localized Backfill line item comanion delivery option name. + BACKFILL_LINE_ITEM_COMPANION_DELIVERY_OPTION_NAME = 259; + + // The computed status of the BackfillLineItem. + BACKFILL_LINE_ITEM_COMPUTED_STATUS = 296; + + // The localized name of the computed status of the BackfillLineItem. + BACKFILL_LINE_ITEM_COMPUTED_STATUS_NAME = 297; + + // The contracted units bought for the Backfill line item. + BACKFILL_LINE_ITEM_CONTRACTED_QUANTITY = 280; + + // The cost per unit of the Backfill line item. + BACKFILL_LINE_ITEM_COST_PER_UNIT = 272; + + // Backfill line item cost type ENUM value. + BACKFILL_LINE_ITEM_COST_TYPE = 264; + + // Localized Backfill line item cost type name. + BACKFILL_LINE_ITEM_COST_TYPE_NAME = 265; + + // Represent the end date of a Backfill creative associated with a Backfill + // line item + BACKFILL_LINE_ITEM_CREATIVE_END_DATE = 381; + + // The creative rotation type of the BackfillLineItem. + BACKFILL_LINE_ITEM_CREATIVE_ROTATION_TYPE = 290; + + // The localized name of the creative rotation type of the BackfillLineItem. + BACKFILL_LINE_ITEM_CREATIVE_ROTATION_TYPE_NAME = 291; + + // Represent the start date of a Backfill creative associated with a + // Backfill line item + BACKFILL_LINE_ITEM_CREATIVE_START_DATE = 380; + + // The 3 letter currency code of the Backfill line item + BACKFILL_LINE_ITEM_CURRENCY_CODE = 288; + + // The progress made for the delivery of the Backfill line item. + BACKFILL_LINE_ITEM_DELIVERY_INDICATOR = 274; + + // The delivery rate type of the BackfillLineItem. + BACKFILL_LINE_ITEM_DELIVERY_RATE_TYPE = 292; + + // The localized name of the delivery rate type of the BackfillLineItem. + BACKFILL_LINE_ITEM_DELIVERY_RATE_TYPE_NAME = 293; + + // The discount of the BackfillLineItem in whole units in the + // BackfillLineItem's currency code, or if unspecified the Network's + // currency code. + BACKFILL_LINE_ITEM_DISCOUNT_ABSOLUTE = 294; + + // The discount of the BackfillLineItem in percentage. + BACKFILL_LINE_ITEM_DISCOUNT_PERCENTAGE = 295; + + // The end date of the Backfill line item. + BACKFILL_LINE_ITEM_END_DATE = 267; + + // The end date and time of the Backfill line item. + BACKFILL_LINE_ITEM_END_DATE_TIME = 269; + + // The ENUM value of the environment a Backfill line item is targeting. + BACKFILL_LINE_ITEM_ENVIRONMENT_TYPE = 302; + + // The localized name of the environment a Backfill line item is targeting. + BACKFILL_LINE_ITEM_ENVIRONMENT_TYPE_NAME = 257; + + // The deal ID of the Backfill line item. Set for Programmatic Direct + // campaigns. + BACKFILL_LINE_ITEM_EXTERNAL_DEAL_ID = 285; + + // The external ID of the Backfill line item. + BACKFILL_LINE_ITEM_EXTERNAL_ID = 273; + + // The frequency cap of the Backfill line item (descriptive string). + BACKFILL_LINE_ITEM_FREQUENCY_CAP = 303; + + // Backfill line item ID. + BACKFILL_LINE_ITEM_ID = 298; + + // The application that last modified the Backfill line item. + BACKFILL_LINE_ITEM_LAST_MODIFIED_BY_APP = 289; + + // The total number of clicks delivered of the lifetime of the Backfill line + // item. + BACKFILL_LINE_ITEM_LIFETIME_CLICKS = 283; + + // The total number of impressions delivered over the lifetime of the + // Backfill line item. + BACKFILL_LINE_ITEM_LIFETIME_IMPRESSIONS = 282; + + // The total number of viewable impressions delivered over the lifetime of + // the Backfill line item. + BACKFILL_LINE_ITEM_LIFETIME_VIEWABLE_IMPRESSIONS = 284; + + // Whether or not the Backfill line item is Makegood. Makegood refers to + // free inventory offered to buyers to compensate for mistakes or + // under-delivery in the original campaigns. + BACKFILL_LINE_ITEM_MAKEGOOD = 276; + + // Backfill line item name. + BACKFILL_LINE_ITEM_NAME = 299; + + // The cost of booking for the Backfill line item (non-CPD). + BACKFILL_LINE_ITEM_NON_CPD_BOOKED_REVENUE = 286; + + // Whether a Backfill line item is eligible for opitimization. + BACKFILL_LINE_ITEM_OPTIMIZABLE = 277; + + // Goal type ENUM value of the primary goal of the Backfill line item. + BACKFILL_LINE_ITEM_PRIMARY_GOAL_TYPE = 262; + + // Localized goal type name of the primary goal of the Backfill line item. + BACKFILL_LINE_ITEM_PRIMARY_GOAL_TYPE_NAME = 263; + + // Unit type ENUM value of the primary goal of the Backfill line item. + BACKFILL_LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE = 260; + + // Localized unit type name of the primary goal of the Backfill line item. + BACKFILL_LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_NAME = 261; + + // The priority of this Backfill line item as a value between 1 and 16. + // In general, a lower priority means more serving priority for the + // Backfill line item. + BACKFILL_LINE_ITEM_PRIORITY = 266; + + // ENUM value describing the state of inventory reservation for the + // BackfillLineItem. + BACKFILL_LINE_ITEM_RESERVATION_STATUS = 306; + + // Localized string describing the state of inventory reservation for the + // BackfillLineItem. + BACKFILL_LINE_ITEM_RESERVATION_STATUS_NAME = 307; + + // The start date of the Backfill line item. + BACKFILL_LINE_ITEM_START_DATE = 268; + + // The start date and time of the Backfill line item. + BACKFILL_LINE_ITEM_START_DATE_TIME = 270; + + // Backfill line item type ENUM value. + BACKFILL_LINE_ITEM_TYPE = 300; + + // Localized Backfill line item type name. + BACKFILL_LINE_ITEM_TYPE_NAME = 301; + + // Whether the Backfill line item end time and end date is set to + // effectively never end. + BACKFILL_LINE_ITEM_UNLIMITED_END = 271; + + // The artificial cost per unit used by the Ad server to help rank + // inventory. + BACKFILL_LINE_ITEM_VALUE_COST_PER_UNIT = 275; + + // The web property code used for dynamic allocation Backfill line items. + BACKFILL_LINE_ITEM_WEB_PROPERTY_CODE = 287; + + // The ID of Backfill creative, includes regular creatives, and master and + // companions in case of creative sets + BACKFILL_MASTER_COMPANION_CREATIVE_ID = 372; + + // Name of Backfill creative, includes regular creatives, and master and + // companions in case of creative sets + BACKFILL_MASTER_COMPANION_CREATIVE_NAME = 373; + + // Backfill order agency. + BACKFILL_ORDER_AGENCY = 313; + + // Backfill order agency ID. + BACKFILL_ORDER_AGENCY_ID = 314; + + // Backfill order booked CPC. + BACKFILL_ORDER_BOOKED_CPC = 315; + + // Backfill order booked CPM. + BACKFILL_ORDER_BOOKED_CPM = 316; + + // Backfill order delivery status ENUM value. + BACKFILL_ORDER_DELIVERY_STATUS = 340; + + // Backfill order delivery status localized name. + BACKFILL_ORDER_DELIVERY_STATUS_NAME = 341; + + // Backfill order end date. + BACKFILL_ORDER_END_DATE = 317; + + // Backfill order end date and time. + BACKFILL_ORDER_END_DATE_TIME = 319; + + // Backfill order external ID. + BACKFILL_ORDER_EXTERNAL_ID = 320; + + // Backfill order id. + BACKFILL_ORDER_ID = 338; + + // Backfill order labels. + BACKFILL_ORDER_LABELS = 334; + + // Backfill order labels IDs. + BACKFILL_ORDER_LABEL_IDS = 335; + + // Backfill order lifetime clicks. + BACKFILL_ORDER_LIFETIME_CLICKS = 322; + + // Backfill order lifetime impressions. + BACKFILL_ORDER_LIFETIME_IMPRESSIONS = 323; + + // Backfill order name. + BACKFILL_ORDER_NAME = 339; + + // Backfill order PO number. + BACKFILL_ORDER_PO_NUMBER = 324; + + // Whether the Backfill order is programmatic. + BACKFILL_ORDER_PROGRAMMATIC = 321; + + // Backfill order sales person. + BACKFILL_ORDER_SALESPERSON = 325; + + // Backfill order secondary sales people. + BACKFILL_ORDER_SECONDARY_SALESPEOPLE = 329; + + // Backfill order secondary sales people ID. + BACKFILL_ORDER_SECONDARY_SALESPEOPLE_ID = 328; + + // Backfill order secondary traffickers. + BACKFILL_ORDER_SECONDARY_TRAFFICKERS = 331; + + // Backfill order secondary traffickers ID. + BACKFILL_ORDER_SECONDARY_TRAFFICKERS_ID = 330; + + // Backfill order start date. + BACKFILL_ORDER_START_DATE = 332; + + // Backfill order start date and time. + BACKFILL_ORDER_START_DATE_TIME = 333; + + // Backfill order trafficker. + BACKFILL_ORDER_TRAFFICKER = 326; + + // Backfill order trafficker ID. + BACKFILL_ORDER_TRAFFICKER_ID = 327; + + // Whether the Backfill order end time and end date is set to effectively + // never end. + BACKFILL_ORDER_UNLIMITED_END = 318; + + // The ID of the buyer on a backfill programmatic proposal. + BACKFILL_PROGRAMMATIC_BUYER_ID = 336; + + // The name of the buyer on a backfill programmatic proposal. + BACKFILL_PROGRAMMATIC_BUYER_NAME = 337; + + // The amount of information about the Publisher's page sent to the buyer + // who purchased the impressions. + BRANDING_TYPE = 383; + + // The localized version of branding type, the amount of information about + // the Publisher's page sent to the buyer who purchased the impressions. + BRANDING_TYPE_NAME = 384; + + // Browser category. + BROWSER_CATEGORY = 119; + + // Browser category name. + BROWSER_CATEGORY_NAME = 120; + + // The ID of the browser. + BROWSER_ID = 235; + + // The name of the browser. + BROWSER_NAME = 236; + + // Mobile carrier ID. + CARRIER_ID = 369; + + // Name of the mobile carrier. + CARRIER_NAME = 368; + + // The ID of an advertiser, classified by Google, associated with a creative + // transacted + CLASSIFIED_ADVERTISER_ID = 133; + + // The name of an advertiser, classified by Google, associated with a + // creative transacted + CLASSIFIED_ADVERTISER_NAME = 134; + + // ID of the brand, as classified by Google, + CLASSIFIED_BRAND_ID = 243; + + // Name of the brand, as classified by Google, + CLASSIFIED_BRAND_NAME = 244; + + // ID of the video content served. + CONTENT_ID = 246; + + // Name of the video content served. + CONTENT_NAME = 247; + + // The criteria ID of the country in which the ad served. + COUNTRY_ID = 11; + + // The name of the country in which the ad served. + COUNTRY_NAME = 12; + + // Enum value of creative billing type + CREATIVE_BILLING_TYPE = 366; + + // Localized string value of creative billing type + CREATIVE_BILLING_TYPE_NAME = 367; + + // Represents the click-through URL of a creative + CREATIVE_CLICK_THROUGH_URL = 174; + + // The ID of a creative + CREATIVE_ID = 138; + + // Creative name + CREATIVE_NAME = 139; + + // Creative technology ENUM + CREATIVE_TECHNOLOGY = 148; + + // Creative technology locallized name + CREATIVE_TECHNOLOGY_NAME = 149; + + // Third party vendor name of a creative + CREATIVE_THIRD_PARTY_VENDOR = 361; + + // Enum value of creative type + CREATIVE_TYPE = 344; + + // Localized string name of creative type + CREATIVE_TYPE_NAME = 345; + + // Breaks down reporting data by date. + DATE = 3; + + // Breaks down reporting data by day of the week. Monday is 1 and 7 is + // Sunday. + DAY_OF_WEEK = 4; + + // Demand channel. + DEMAND_CHANNEL = 9; + + // Demand channel name. + DEMAND_CHANNEL_NAME = 10; + + // Demand subchannel. + DEMAND_SUBCHANNEL = 22; + + // Demand subchannel name. + DEMAND_SUBCHANNEL_NAME = 23; + + // The device on which an ad was served. + DEVICE = 226; + + // The device category to which an ad is being targeted. + DEVICE_CATEGORY = 15; + + // The name of the category of device (smartphone, feature phone, tablet, or + // desktop) to which an ad is being targeted. + DEVICE_CATEGORY_NAME = 16; + + // The localized name of the device on which an ad was served. + DEVICE_NAME = 225; + + // ID of the yield partner as classified by Google + EXCHANGE_THIRD_PARTY_COMPANY_ID = 185; + + // Name of the yield partner as classified by Google + EXCHANGE_THIRD_PARTY_COMPANY_NAME = 186; + + // The ID of the first look pricing rule. + FIRST_LOOK_PRICING_RULE_ID = 248; + + // The name of the first look pricing rule. + FIRST_LOOK_PRICING_RULE_NAME = 249; + + // Breaks down reporting data by hour in one day. + HOUR = 100; + + // The interaction type of an ad. + INTERACTION_TYPE = 223; + + // The localized name of the interaction type of an ad. + INTERACTION_TYPE_NAME = 224; + + // Inventory format. + // The format of the ad unit (e.g, banner) where the ad was requested. + INVENTORY_FORMAT = 17; + + // Inventory format name. + // The format of the ad unit (e.g, banner) where the ad was requested. + INVENTORY_FORMAT_NAME = 18; + + // Inventory type. + // The kind of web page or device where the ad was requested. + INVENTORY_TYPE = 19; + + // Inventory type name. + // The kind of web page or device where the ad was requested. + INVENTORY_TYPE_NAME = 20; + + // Whether traffic is Adx Direct. + IS_ADX_DIRECT = 382; + + // Whether traffic is First Look. + IS_FIRST_LOOK_DEAL = 401; + + // The Custom Targeting Value ID + KEY_VALUES_ID = 214; + + // The Custom Targeting Value formatted like = + KEY_VALUES_NAME = 215; + + // Whether a Line item is archived. + LINE_ITEM_ARCHIVED = 188; + + // Line item comanion delivery option ENUM value. + LINE_ITEM_COMPANION_DELIVERY_OPTION = 204; + + // Localized line item comanion delivery option name. + LINE_ITEM_COMPANION_DELIVERY_OPTION_NAME = 205; + + // The computed status of the LineItem. + LINE_ITEM_COMPUTED_STATUS = 250; + + // The localized name of the computed status of the LineItem. + LINE_ITEM_COMPUTED_STATUS_NAME = 251; + + // The contracted units bought for the Line item. + LINE_ITEM_CONTRACTED_QUANTITY = 92; + + // The cost per unit of the Line item. + LINE_ITEM_COST_PER_UNIT = 85; + + // Line item cost type ENUM value. + LINE_ITEM_COST_TYPE = 212; + + // Localized line item cost type name. + LINE_ITEM_COST_TYPE_NAME = 213; + + // Represent the end date of a creative associated with line item + LINE_ITEM_CREATIVE_END_DATE = 176; + + // The creative rotation type of the LineItem. + LINE_ITEM_CREATIVE_ROTATION_TYPE = 189; + + // The localized name of the creative rotation type of the LineItem. + LINE_ITEM_CREATIVE_ROTATION_TYPE_NAME = 190; + + // Represent the start date of a creative associated with line item + LINE_ITEM_CREATIVE_START_DATE = 175; + + // The 3 letter currency code of the Line Item + LINE_ITEM_CURRENCY_CODE = 180; + + // The progress made for the delivery of the Line item. + LINE_ITEM_DELIVERY_INDICATOR = 87; + + // The delivery rate type of the LineItem. + LINE_ITEM_DELIVERY_RATE_TYPE = 191; + + // The localized name of the delivery rate type of the LineItem. + LINE_ITEM_DELIVERY_RATE_TYPE_NAME = 192; + + // The discount of the LineItem in whole units in the LineItem's currency + // code, or if unspecified the Network's currency code. + LINE_ITEM_DISCOUNT_ABSOLUTE = 195; + + // The discount of the LineItem in percentage. + LINE_ITEM_DISCOUNT_PERCENTAGE = 196; + + // The end date of the Line item. + LINE_ITEM_END_DATE = 81; + + // The end date and time of the Line item. + LINE_ITEM_END_DATE_TIME = 83; + + // The ENUM value of the environment a LineItem is targeting. + LINE_ITEM_ENVIRONMENT_TYPE = 201; + + // The localized name of the environment a LineItem is targeting. + LINE_ITEM_ENVIRONMENT_TYPE_NAME = 202; + + // The deal ID of the Line item. Set for Programmatic Direct campaigns. + LINE_ITEM_EXTERNAL_DEAL_ID = 97; + + // The external ID of the Line item. + LINE_ITEM_EXTERNAL_ID = 86; + + // The frequency cap of the Line item (descriptive string). + LINE_ITEM_FREQUENCY_CAP = 256; + + // Line item ID. + LINE_ITEM_ID = 1; + + // The application that last modified the Line Item. + LINE_ITEM_LAST_MODIFIED_BY_APP = 181; + + // The total number of clicks delivered of the lifetime of the Line item. + LINE_ITEM_LIFETIME_CLICKS = 95; + + // The total number of impressions delivered over the lifetime of the + // Line item. + LINE_ITEM_LIFETIME_IMPRESSIONS = 94; + + // The total number of viewable impressions delivered over the lifetime of + // the Line item. + LINE_ITEM_LIFETIME_VIEWABLE_IMPRESSIONS = 96; + + // Whether or not the Line item is Makegood. Makegood refers to free + // inventory offered to buyers to compensate for mistakes or under-delivery + // in the original campaigns. + LINE_ITEM_MAKEGOOD = 89; + + // Line item Name. + LINE_ITEM_NAME = 2; + + // The cost of booking for the Line item (non-CPD). + LINE_ITEM_NON_CPD_BOOKED_REVENUE = 98; + + // Whether a Line item is eligible for opitimization. + LINE_ITEM_OPTIMIZABLE = 90; + + // Goal type ENUM value of the primary goal of the line item. + LINE_ITEM_PRIMARY_GOAL_TYPE = 210; + + // Localized goal type name of the primary goal of the line item. + LINE_ITEM_PRIMARY_GOAL_TYPE_NAME = 211; + + // The total number of impressions or clicks that are reserved for a + // line item. For line items of type BULK or PRICE_PRIORITY, this represents + // the number of remaining impressions reserved. If the line item has an + // impression cap goal, this represents the number of impressions or + // conversions that the line item will stop serving at if reached. + LINE_ITEM_PRIMARY_GOAL_UNITS_ABSOLUTE = 93; + + // The percentage of impressions or clicks that are reserved for a + // line item. For line items of type SPONSORSHIP, this represents the + // percentage of available impressions reserved. For line items of type + // NETWORK or HOUSE, this represents the percentage of remaining impressions + // reserved. + LINE_ITEM_PRIMARY_GOAL_UNITS_PERCENTAGE = 396; + + // Unit type ENUM value of the primary goal of the line item. + LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE = 208; + + // Localized unit type name of the primary goal of the line item. + LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_NAME = 209; + + // The priority of this Line item as a value between 1 and 16. + // In general, a lower priority means more serving priority for the + // Line item. + LINE_ITEM_PRIORITY = 24; + + // ENUM value describing the state of inventory reservation for the + // LineItem. + LINE_ITEM_RESERVATION_STATUS = 304; + + // Localized string describing the state of inventory reservation for the + // LineItem. + LINE_ITEM_RESERVATION_STATUS_NAME = 305; + + // The start date of the Line item. + LINE_ITEM_START_DATE = 82; + + // The start date and time of the Line item. + LINE_ITEM_START_DATE_TIME = 84; + + // Line item type ENUM value. + LINE_ITEM_TYPE = 193; + + // Localized line item type name. + LINE_ITEM_TYPE_NAME = 194; + + // Whether the Line item end time and end date is set to effectively never + // end. + LINE_ITEM_UNLIMITED_END = 187; + + // The artificial cost per unit used by the Ad server to help rank + // inventory. + LINE_ITEM_VALUE_COST_PER_UNIT = 88; + + // The web property code used for dynamic allocation Line Items. + LINE_ITEM_WEB_PROPERTY_CODE = 179; + + // The ID of creative, includes regular creatives, and master and companions + // in case of creative sets + MASTER_COMPANION_CREATIVE_ID = 140; + + // Name of creative, includes regular creatives, and master and companions + // in case of creative sets + MASTER_COMPANION_CREATIVE_NAME = 141; + + // Whether the mobile app is free. + MOBILE_APP_FREE = 128; + + // URL of app icon for the mobile app. + MOBILE_APP_ICON_URL = 129; + + // The ID of the Mobile App. + MOBILE_APP_ID = 123; + + // The name of the mobile app. + MOBILE_APP_NAME = 127; + + // Ownership status of the mobile app. + MOBILE_APP_OWNERSHIP_STATUS = 311; + + // Ownership status of the mobile app. + MOBILE_APP_OWNERSHIP_STATUS_NAME = 312; + + // The App Store of the mobile app. + MOBILE_APP_STORE = 125; + + // The localized name of the mobile app store. + MOBILE_APP_STORE_NAME = 245; + + // Mobile inventory type. + // Identifies whether a mobile ad came from a regular web page, an AMP web + // page, or a mobile app. + // Values match the Inventory type dimension available in the Overview Home + // dashboard. Note: Video takes precedence over any other value, for + // example, if there is an in-stream video impression on a desktop device, + // it will be attributed to in-stream video and not desktop web. + MOBILE_INVENTORY_TYPE = 99; + + // Mobile inventory type name. + // Identifies whether a mobile ad came from a regular web page, an AMP web + // page, or a mobile app. + MOBILE_INVENTORY_TYPE_NAME = 21; + + // SDK version of the mobile device. + MOBILE_SDK_VERSION_NAME = 130; + + // Breaks down reporting data by month and year. + MONTH_YEAR = 6; + + // Native ad format ID. + NATIVE_AD_FORMAT_ID = 255; + + // Native ad format name. + NATIVE_AD_FORMAT_NAME = 254; + + // Native style ID. + NATIVE_STYLE_ID = 253; + + // Native style name. + NATIVE_STYLE_NAME = 252; + + // Operating system category. + OPERATING_SYSTEM_CATEGORY = 117; + + // Operating system category name. + OPERATING_SYSTEM_CATEGORY_NAME = 118; + + // ID of the operating system version. + OPERATING_SYSTEM_VERSION_ID = 238; + + // Details of the operating system, including version. + OPERATING_SYSTEM_VERSION_NAME = 237; + + // Order agency. + ORDER_AGENCY = 150; + + // Order agency ID. + ORDER_AGENCY_ID = 151; + + // Order booked CPC. + ORDER_BOOKED_CPC = 152; + + // Order booked CPM. + ORDER_BOOKED_CPM = 153; + + // Order delivery status ENUM value. + ORDER_DELIVERY_STATUS = 231; + + // Order delivery status localized name. + ORDER_DELIVERY_STATUS_NAME = 239; + + // Order end date. + ORDER_END_DATE = 154; + + // Order end date and time. + ORDER_END_DATE_TIME = 155; + + // Order external ID. + ORDER_EXTERNAL_ID = 156; + + // Order id. + ORDER_ID = 7; + + // Order labels. + ORDER_LABELS = 170; + + // Order labels IDs. + ORDER_LABEL_IDS = 171; + + // Order lifetime clicks. + ORDER_LIFETIME_CLICKS = 158; + + // Order lifetime impressions. + ORDER_LIFETIME_IMPRESSIONS = 159; + + // Order name. + ORDER_NAME = 8; + + // Order PO number. + ORDER_PO_NUMBER = 160; + + // Whether the Order is programmatic. + ORDER_PROGRAMMATIC = 157; + + // Order sales person. + ORDER_SALESPERSON = 161; + + // Order secondary sales people. + ORDER_SECONDARY_SALESPEOPLE = 164; + + // Order secondary sales people ID. + ORDER_SECONDARY_SALESPEOPLE_ID = 165; + + // Order secondary traffickers. + ORDER_SECONDARY_TRAFFICKERS = 166; + + // Order secondary traffickers ID. + ORDER_SECONDARY_TRAFFICKERS_ID = 167; + + // Order start date. + ORDER_START_DATE = 168; + + // Order start date and time. + ORDER_START_DATE_TIME = 169; + + // Order trafficker. + ORDER_TRAFFICKER = 162; + + // Order trafficker ID. + ORDER_TRAFFICKER_ID = 163; + + // Whether the Order end time and end date is set to effectively never + // end. + ORDER_UNLIMITED_END = 203; + + // Placement ID + PLACEMENT_ID = 113; + + // The full list of placement IDs associated with the ad unit. + PLACEMENT_ID_ALL = 144; + + // Placement name + PLACEMENT_NAME = 114; + + // The full list of placement names associated with the ad unit. + PLACEMENT_NAME_ALL = 145; + + // Placement status ENUM value + PLACEMENT_STATUS = 362; + + // The full list of placement status ENUM values associated with the ad + // unit. + PLACEMENT_STATUS_ALL = 363; + + // Localized placement status name. + PLACEMENT_STATUS_NAME = 364; + + // The full list of localized placement status names associated with the ad + // unit. + PLACEMENT_STATUS_NAME_ALL = 365; + + // The ID of the buyer on a programmatic proposal. + PROGRAMMATIC_BUYER_ID = 240; + + // The name of the buyer on a programmatic proposal. + PROGRAMMATIC_BUYER_NAME = 241; + + // Programmatic channel. + // The type of transaction that occurred in Ad Exchange. + PROGRAMMATIC_CHANNEL = 13; + + // Programmatic channel name. + // The type of transaction that occurred in Ad Exchange. + PROGRAMMATIC_CHANNEL_NAME = 14; + + // The size of a rendered creative, It can differ with the creative's size + // if a creative is shown in an ad slot of a different size. + RENDERED_CREATIVE_SIZE = 343; + + // Inventory Requested Ad Sizes dimension + REQUESTED_AD_SIZES = 352; + + // Request type ENUM + REQUEST_TYPE = 146; + + // Request type locallized name + REQUEST_TYPE_NAME = 147; + + // Indicates if a request was eligible for server-side unwrapping. + SERVER_SIDE_UNWRAPPING_ELIGIBLE = 597; + + // Information about domain or subdomains. + SITE = 387; + + // The ID of the browser, device or other environment into which a line item + // or creative was served. + TARGETING_ID = 232; + + // Information about the browser, device and other environments into which + // a line item or creative was served. + TARGETING_NAME = 233; + + // The way in which advertisers targeted their ads. + TARGETING_TYPE = 385; + + // The localized name of the way in which advertisers targeted their ads. + TARGETING_TYPE_NAME = 386; + + // Inventory Traffic source dimension + TRAFFIC_SOURCE = 388; + + // Inventory Traffic source dimension name + TRAFFIC_SOURCE_NAME = 389; + + // Unified pricing rule ID dimension + UNIFIED_PRICING_RULE_ID = 393; + + // Unified pricing rule name dimension + UNIFIED_PRICING_RULE_NAME = 394; + + // The video placement enum as defined by ADCOM 1.0-202303. + VIDEO_PLCMT = 172; + + // The localized name of the video placement as defined by ADCOM 1.0-202303. + VIDEO_PLCMT_NAME = 173; + + // Breaks down reporting data by week of the year. + WEEK = 5; + + // Name of the company within a yield group + YIELD_GROUP_BUYER_NAME = 184; + + // ID of the group of ad networks or exchanges used for Mediation and Open + // Bidding + YIELD_GROUP_ID = 182; + + // Name of the group of ad networks or exchanges used for Mediation and Open + // Bidding + YIELD_GROUP_NAME = 183; + + // Custom field option ID for Line Item with custom field ID equal to the ID + // in index 0 of `ReportDefinition.line_item_custom_field_ids`. + LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID = 10000; + + // Custom field option ID for Line Item with custom field ID equal to the ID + // in index 1 of `ReportDefinition.line_item_custom_field_ids`. + LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID = 10001; + + // Custom field option ID for Line Item with custom field ID equal to the ID + // in index 2 of `ReportDefinition.line_item_custom_field_ids`. + LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID = 10002; + + // Custom field option ID for Line Item with custom field ID equal to the ID + // in index 3 of `ReportDefinition.line_item_custom_field_ids`. + LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID = 10003; + + // Custom field option ID for Line Item with custom field ID equal to the ID + // in index 4 of `ReportDefinition.line_item_custom_field_ids`. + LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID = 10004; + + // Custom field option ID for Line Item with custom field ID equal to the ID + // in index 5 of `ReportDefinition.line_item_custom_field_ids`. + LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID = 10005; + + // Custom field option ID for Line Item with custom field ID equal to the ID + // in index 6 of `ReportDefinition.line_item_custom_field_ids`. + LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID = 10006; + + // Custom field option ID for Line Item with custom field ID equal to the ID + // in index 7 of `ReportDefinition.line_item_custom_field_ids`. + LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID = 10007; + + // Custom field option ID for Line Item with custom field ID equal to the ID + // in index 8 of `ReportDefinition.line_item_custom_field_ids`. + LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID = 10008; + + // Custom field option ID for Line Item with custom field ID equal to the ID + // in index 9 of `ReportDefinition.line_item_custom_field_ids`. + LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID = 10009; + + // Custom field option ID for Line Item with custom field ID equal to the ID + // in index 10 of `ReportDefinition.line_item_custom_field_ids`. + LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID = 10010; + + // Custom field option ID for Line Item with custom field ID equal to the ID + // in index 11 of `ReportDefinition.line_item_custom_field_ids`. + LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID = 10011; + + // Custom field option ID for Line Item with custom field ID equal to the ID + // in index 12 of `ReportDefinition.line_item_custom_field_ids`. + LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID = 10012; + + // Custom field option ID for Line Item with custom field ID equal to the ID + // in index 13 of `ReportDefinition.line_item_custom_field_ids`. + LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID = 10013; + + // Custom field option ID for Line Item with custom field ID equal to the ID + // in index 14 of `ReportDefinition.line_item_custom_field_ids`. + LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID = 10014; + + // Custom field value for Line Item with custom field ID equal to the ID + // in index 0 of `ReportDefinition.line_item_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 0 is of + // type STRING or DROPDOWN. + LINE_ITEM_CUSTOM_FIELD_0_VALUE = 11000; + + // Custom field value for Line Item with custom field ID equal to the ID + // in index 1 of `ReportDefinition.line_item_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 1 is of + // type STRING or DROPDOWN. + LINE_ITEM_CUSTOM_FIELD_1_VALUE = 11001; + + // Custom field value for Line Item with custom field ID equal to the ID + // in index 2 of `ReportDefinition.line_item_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 2 is of + // type STRING or DROPDOWN. + LINE_ITEM_CUSTOM_FIELD_2_VALUE = 11002; + + // Custom field value for Line Item with custom field ID equal to the ID + // in index 3 of `ReportDefinition.line_item_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 3 is of + // type STRING or DROPDOWN. + LINE_ITEM_CUSTOM_FIELD_3_VALUE = 11003; + + // Custom field value for Line Item with custom field ID equal to the ID + // in index 4 of `ReportDefinition.line_item_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 4 is of + // type STRING or DROPDOWN. + LINE_ITEM_CUSTOM_FIELD_4_VALUE = 11004; + + // Custom field value for Line Item with custom field ID equal to the ID + // in index 5 of `ReportDefinition.line_item_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 5 is of + // type STRING or DROPDOWN. + LINE_ITEM_CUSTOM_FIELD_5_VALUE = 11005; + + // Custom field value for Line Item with custom field ID equal to the ID + // in index 6 of `ReportDefinition.line_item_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 6 is of + // type STRING or DROPDOWN. + LINE_ITEM_CUSTOM_FIELD_6_VALUE = 11006; + + // Custom field value for Line Item with custom field ID equal to the ID + // in index 7 of `ReportDefinition.line_item_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 7 is of + // type STRING or DROPDOWN. + LINE_ITEM_CUSTOM_FIELD_7_VALUE = 11007; + + // Custom field value for Line Item with custom field ID equal to the ID + // in index 8 of `ReportDefinition.line_item_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 8 is of + // type STRING or DROPDOWN. + LINE_ITEM_CUSTOM_FIELD_8_VALUE = 11008; + + // Custom field value for Line Item with custom field ID equal to the ID + // in index 9 of `ReportDefinition.line_item_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 9 is of + // type STRING or DROPDOWN. + LINE_ITEM_CUSTOM_FIELD_9_VALUE = 11009; + + // Custom field value for Line Item with custom field ID equal to the ID + // in index 10 of `ReportDefinition.line_item_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 10 is of + // type STRING or DROPDOWN. + LINE_ITEM_CUSTOM_FIELD_10_VALUE = 11010; + + // Custom field value for Line Item with custom field ID equal to the ID + // in index 11 of `ReportDefinition.line_item_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 11 is of + // type STRING or DROPDOWN. + LINE_ITEM_CUSTOM_FIELD_11_VALUE = 11011; + + // Custom field value for Line Item with custom field ID equal to the ID + // in index 12 of `ReportDefinition.line_item_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 12 is of + // type STRING or DROPDOWN. + LINE_ITEM_CUSTOM_FIELD_12_VALUE = 11012; + + // Custom field value for Line Item with custom field ID equal to the ID + // in index 13 of `ReportDefinition.line_item_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 13 is of + // type STRING or DROPDOWN. + LINE_ITEM_CUSTOM_FIELD_13_VALUE = 11013; + + // Custom field value for Line Item with custom field ID equal to the ID + // in index 14 of `ReportDefinition.line_item_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 14 is of + // type STRING or DROPDOWN. + LINE_ITEM_CUSTOM_FIELD_14_VALUE = 11014; + + // Custom field option ID for Order with custom field ID equal to the ID + // in index 0 of `ReportDefinition.order_custom_field_ids`. + ORDER_CUSTOM_FIELD_0_OPTION_ID = 12000; + + // Custom field option ID for Order with custom field ID equal to the ID + // in index 1 of `ReportDefinition.order_custom_field_ids`. + ORDER_CUSTOM_FIELD_1_OPTION_ID = 12001; + + // Custom field option ID for Order with custom field ID equal to the ID + // in index 2 of `ReportDefinition.order_custom_field_ids`. + ORDER_CUSTOM_FIELD_2_OPTION_ID = 12002; + + // Custom field option ID for Order with custom field ID equal to the ID + // in index 3 of `ReportDefinition.order_custom_field_ids`. + ORDER_CUSTOM_FIELD_3_OPTION_ID = 12003; + + // Custom field option ID for Order with custom field ID equal to the ID + // in index 4 of `ReportDefinition.order_custom_field_ids`. + ORDER_CUSTOM_FIELD_4_OPTION_ID = 12004; + + // Custom field option ID for Order with custom field ID equal to the ID + // in index 5 of `ReportDefinition.order_custom_field_ids`. + ORDER_CUSTOM_FIELD_5_OPTION_ID = 12005; + + // Custom field option ID for Order with custom field ID equal to the ID + // in index 6 of `ReportDefinition.order_custom_field_ids`. + ORDER_CUSTOM_FIELD_6_OPTION_ID = 12006; + + // Custom field option ID for Order with custom field ID equal to the ID + // in index 7 of `ReportDefinition.order_custom_field_ids`. + ORDER_CUSTOM_FIELD_7_OPTION_ID = 12007; + + // Custom field option ID for Order with custom field ID equal to the ID + // in index 8 of `ReportDefinition.order_custom_field_ids`. + ORDER_CUSTOM_FIELD_8_OPTION_ID = 12008; + + // Custom field option ID for Order with custom field ID equal to the ID + // in index 9 of `ReportDefinition.order_custom_field_ids`. + ORDER_CUSTOM_FIELD_9_OPTION_ID = 12009; + + // Custom field option ID for Order with custom field ID equal to the ID + // in index 10 of `ReportDefinition.order_custom_field_ids`. + ORDER_CUSTOM_FIELD_10_OPTION_ID = 12010; + + // Custom field option ID for Order with custom field ID equal to the ID + // in index 11 of `ReportDefinition.order_custom_field_ids`. + ORDER_CUSTOM_FIELD_11_OPTION_ID = 12011; + + // Custom field option ID for Order with custom field ID equal to the ID + // in index 12 of `ReportDefinition.order_custom_field_ids`. + ORDER_CUSTOM_FIELD_12_OPTION_ID = 12012; + + // Custom field option ID for Order with custom field ID equal to the ID + // in index 13 of `ReportDefinition.order_custom_field_ids`. + ORDER_CUSTOM_FIELD_13_OPTION_ID = 12013; + + // Custom field option ID for Order with custom field ID equal to the ID + // in index 14 of `ReportDefinition.order_custom_field_ids`. + ORDER_CUSTOM_FIELD_14_OPTION_ID = 12014; + + // Custom field value for Order with custom field ID equal to the ID + // in index 0 of `ReportDefinition.order_custom_field_ids`. Treats the value + // as a string. Can only be used if the custom field at index 0 is of type + // STRING. + ORDER_CUSTOM_FIELD_0_VALUE = 13000; + + // Custom field value for Order with custom field ID equal to the ID + // in index 1 of `ReportDefinition.order_custom_field_ids`. Treats the value + // as a string. Can only be used if the custom field at index 1 is of type + // STRING. + ORDER_CUSTOM_FIELD_1_VALUE = 13001; + + // Custom field value for Order with custom field ID equal to the ID + // in index 2 of `ReportDefinition.order_custom_field_ids`. Treats the value + // as a string. Can only be used if the custom field at index 2 is of type + // STRING. + ORDER_CUSTOM_FIELD_2_VALUE = 13002; + + // Custom field value for Order with custom field ID equal to the ID + // in index 3 of `ReportDefinition.order_custom_field_ids`. Treats the value + // as a string. Can only be used if the custom field at index 3 is of type + // STRING. + ORDER_CUSTOM_FIELD_3_VALUE = 13003; + + // Custom field value for Order with custom field ID equal to the ID + // in index 4 of `ReportDefinition.order_custom_field_ids`. Treats the value + // as a string. Can only be used if the custom field at index 4 is of type + // STRING. + ORDER_CUSTOM_FIELD_4_VALUE = 13004; + + // Custom field value for Order with custom field ID equal to the ID + // in index 5 of `ReportDefinition.order_custom_field_ids`. Treats the value + // as a string. Can only be used if the custom field at index 5 is of type + // STRING. + ORDER_CUSTOM_FIELD_5_VALUE = 13005; + + // Custom field value for Order with custom field ID equal to the ID + // in index 6 of `ReportDefinition.order_custom_field_ids`. Treats the value + // as a string. Can only be used if the custom field at index 6 is of type + // STRING. + ORDER_CUSTOM_FIELD_6_VALUE = 13006; + + // Custom field value for Order with custom field ID equal to the ID + // in index 7 of `ReportDefinition.order_custom_field_ids`. Treats the value + // as a string. Can only be used if the custom field at index 7 is of type + // STRING. + ORDER_CUSTOM_FIELD_7_VALUE = 13007; + + // Custom field value for Order with custom field ID equal to the ID + // in index 8 of `ReportDefinition.order_custom_field_ids`. Treats the value + // as a string. Can only be used if the custom field at index 8 is of type + // STRING. + ORDER_CUSTOM_FIELD_8_VALUE = 13008; + + // Custom field value for Order with custom field ID equal to the ID + // in index 9 of `ReportDefinition.order_custom_field_ids`. Treats the value + // as a string. Can only be used if the custom field at index 9 is of type + // STRING. + ORDER_CUSTOM_FIELD_9_VALUE = 13009; + + // Custom field value for Order with custom field ID equal to the ID + // in index 10 of `ReportDefinition.order_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 10 is of + // type STRING. + ORDER_CUSTOM_FIELD_10_VALUE = 13010; + + // Custom field value for Order with custom field ID equal to the ID + // in index 11 of `ReportDefinition.order_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 11 is of + // type STRING. + ORDER_CUSTOM_FIELD_11_VALUE = 13011; + + // Custom field value for Order with custom field ID equal to the ID + // in index 12 of `ReportDefinition.order_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 12 is of + // type STRING. + ORDER_CUSTOM_FIELD_12_VALUE = 13012; + + // Custom field value for Order with custom field ID equal to the ID + // in index 13 of `ReportDefinition.order_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 13 is of + // type STRING. + ORDER_CUSTOM_FIELD_13_VALUE = 13013; + + // Custom field value for Order with custom field ID equal to the ID + // in index 14 of `ReportDefinition.order_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 14 is of + // type STRING. + ORDER_CUSTOM_FIELD_14_VALUE = 13014; + + // Custom field option ID for Creative with custom field ID equal to the ID + // in index 0 of `ReportDefinition.creative_custom_field_ids`. + CREATIVE_CUSTOM_FIELD_0_OPTION_ID = 14000; + + // Custom field option ID for Creative with custom field ID equal to the ID + // in index 1 of `ReportDefinition.creative_custom_field_ids`. + CREATIVE_CUSTOM_FIELD_1_OPTION_ID = 14001; + + // Custom field option ID for Creative with custom field ID equal to the ID + // in index 2 of `ReportDefinition.creative_custom_field_ids`. + CREATIVE_CUSTOM_FIELD_2_OPTION_ID = 14002; + + // Custom field option ID for Creative with custom field ID equal to the ID + // in index 3 of `ReportDefinition.creative_custom_field_ids`. + CREATIVE_CUSTOM_FIELD_3_OPTION_ID = 14003; + + // Custom field option ID for Creative with custom field ID equal to the ID + // in index 4 of `ReportDefinition.creative_custom_field_ids`. + CREATIVE_CUSTOM_FIELD_4_OPTION_ID = 14004; + + // Custom field option ID for Creative with custom field ID equal to the ID + // in index 5 of `ReportDefinition.creative_custom_field_ids`. + CREATIVE_CUSTOM_FIELD_5_OPTION_ID = 14005; + + // Custom field option ID for Creative with custom field ID equal to the ID + // in index 6 of `ReportDefinition.creative_custom_field_ids`. + CREATIVE_CUSTOM_FIELD_6_OPTION_ID = 14006; + + // Custom field option ID for Creative with custom field ID equal to the ID + // in index 7 of `ReportDefinition.creative_custom_field_ids`. + CREATIVE_CUSTOM_FIELD_7_OPTION_ID = 14007; + + // Custom field option ID for Creative with custom field ID equal to the ID + // in index 8 of `ReportDefinition.creative_custom_field_ids`. + CREATIVE_CUSTOM_FIELD_8_OPTION_ID = 14008; + + // Custom field option ID for Creative with custom field ID equal to the ID + // in index 9 of `ReportDefinition.creative_custom_field_ids`. + CREATIVE_CUSTOM_FIELD_9_OPTION_ID = 14009; + + // Custom field option ID for Creative with custom field ID equal to the ID + // in index 10 of `ReportDefinition.creative_custom_field_ids`. + CREATIVE_CUSTOM_FIELD_10_OPTION_ID = 14010; + + // Custom field option ID for Creative with custom field ID equal to the ID + // in index 11 of `ReportDefinition.creative_custom_field_ids`. + CREATIVE_CUSTOM_FIELD_11_OPTION_ID = 14011; + + // Custom field option ID for Creative with custom field ID equal to the ID + // in index 12 of `ReportDefinition.creative_custom_field_ids`. + CREATIVE_CUSTOM_FIELD_12_OPTION_ID = 14012; + + // Custom field option ID for Creative with custom field ID equal to the ID + // in index 13 of `ReportDefinition.creative_custom_field_ids`. + CREATIVE_CUSTOM_FIELD_13_OPTION_ID = 14013; + + // Custom field option ID for Creative with custom field ID equal to the ID + // in index 14 of `ReportDefinition.creative_custom_field_ids`. + CREATIVE_CUSTOM_FIELD_14_OPTION_ID = 14014; + + // Custom field value for Creative with custom field ID equal to the ID + // in index 0 of `ReportDefinition.creative_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 0 is of + // type STRING. + CREATIVE_CUSTOM_FIELD_0_VALUE = 15000; + + // Custom field value for Creative with custom field ID equal to the ID + // in index 1 of `ReportDefinition.creative_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 1 is of + // type STRING. + CREATIVE_CUSTOM_FIELD_1_VALUE = 15001; + + // Custom field value for Creative with custom field ID equal to the ID + // in index 2 of `ReportDefinition.creative_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 2 is of + // type STRING. + CREATIVE_CUSTOM_FIELD_2_VALUE = 15002; + + // Custom field value for Creative with custom field ID equal to the ID + // in index 3 of `ReportDefinition.creative_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 3 is of + // type STRING. + CREATIVE_CUSTOM_FIELD_3_VALUE = 15003; + + // Custom field value for Creative with custom field ID equal to the ID + // in index 4 of `ReportDefinition.creative_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 4 is of + // type STRING. + CREATIVE_CUSTOM_FIELD_4_VALUE = 15004; + + // Custom field value for Creative with custom field ID equal to the ID + // in index 5 of `ReportDefinition.creative_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 5 is of + // type STRING. + CREATIVE_CUSTOM_FIELD_5_VALUE = 15005; + + // Custom field value for Creative with custom field ID equal to the ID + // in index 6 of `ReportDefinition.creative_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 6 is of + // type STRING. + CREATIVE_CUSTOM_FIELD_6_VALUE = 15006; + + // Custom field value for Creative with custom field ID equal to the ID + // in index 7 of `ReportDefinition.creative_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 7 is of + // type STRING. + CREATIVE_CUSTOM_FIELD_7_VALUE = 15007; + + // Custom field value for Creative with custom field ID equal to the ID + // in index 8 of `ReportDefinition.creative_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 8 is of + // type STRING. + CREATIVE_CUSTOM_FIELD_8_VALUE = 15008; + + // Custom field value for Creative with custom field ID equal to the ID + // in index 9 of `ReportDefinition.creative_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 9 is of + // type STRING. + CREATIVE_CUSTOM_FIELD_9_VALUE = 15009; + + // Custom field value for Creative with custom field ID equal to the ID + // in index 10 of `ReportDefinition.creative_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 10 is of + // type STRING. + CREATIVE_CUSTOM_FIELD_10_VALUE = 15010; + + // Custom field value for Creative with custom field ID equal to the ID + // in index 11 of `ReportDefinition.creative_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 11 is of + // type STRING. + CREATIVE_CUSTOM_FIELD_11_VALUE = 15011; + + // Custom field value for Creative with custom field ID equal to the ID + // in index 12 of `ReportDefinition.creative_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 12 is of + // type STRING. + CREATIVE_CUSTOM_FIELD_12_VALUE = 15012; + + // Custom field value for Creative with custom field ID equal to the ID + // in index 13 of `ReportDefinition.creative_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 13 is of + // type STRING. + CREATIVE_CUSTOM_FIELD_13_VALUE = 15013; + + // Custom field value for Creative with custom field ID equal to the ID + // in index 14 of `ReportDefinition.creative_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 14 is of + // type STRING. + CREATIVE_CUSTOM_FIELD_14_VALUE = 15014; + + // Custom field option ID for Backfill line item with custom field ID equal + // to the ID in index 0 of `ReportDefinition.line_item_custom_field_ids`. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID = 16000; + + // Custom field option ID for Backfill line item with custom field ID equal + // to the ID in index 1 of `ReportDefinition.line_item_custom_field_ids`. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID = 16001; + + // Custom field option ID for Backfill line item with custom field ID equal + // to the ID in index 2 of `ReportDefinition.line_item_custom_field_ids`. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID = 16002; + + // Custom field option ID for Backfill line item with custom field ID equal + // to the ID in index 3 of `ReportDefinition.line_item_custom_field_ids`. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID = 16003; + + // Custom field option ID for Backfill line item with custom field ID equal + // to the ID in index 4 of `ReportDefinition.line_item_custom_field_ids`. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID = 16004; + + // Custom field option ID for Backfill line item with custom field ID equal + // to the ID in index 5 of `ReportDefinition.line_item_custom_field_ids`. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID = 16005; + + // Custom field option ID for Backfill line item with custom field ID equal + // to the ID in index 6 of `ReportDefinition.line_item_custom_field_ids`. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID = 16006; + + // Custom field option ID for Backfill line item with custom field ID equal + // to the ID in index 7 of `ReportDefinition.line_item_custom_field_ids`. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID = 16007; + + // Custom field option ID for Backfill line item with custom field ID equal + // to the ID in index 8 of `ReportDefinition.line_item_custom_field_ids`. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID = 16008; + + // Custom field option ID for Backfill line item with custom field ID equal + // to the ID in index 9 of `ReportDefinition.line_item_custom_field_ids`. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID = 16009; + + // Custom field option ID for Backfill line item with custom field ID equal + // to the ID in index 10 of `ReportDefinition.line_item_custom_field_ids`. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID = 16010; + + // Custom field option ID for Backfill line item with custom field ID equal + // to the ID in index 11 of `ReportDefinition.line_item_custom_field_ids`. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID = 16011; + + // Custom field option ID for Backfill line item with custom field ID equal + // to the ID in index 12 of `ReportDefinition.line_item_custom_field_ids`. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID = 16012; + + // Custom field option ID for Backfill line item with custom field ID equal + // to the ID in index 13 of `ReportDefinition.line_item_custom_field_ids`. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID = 16013; + + // Custom field option ID for Backfill line item with custom field ID equal + // to the ID in index 14 of `ReportDefinition.line_item_custom_field_ids`. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID = 16014; + + // Custom field value for Backfill line item with custom field ID equal to + // the ID in index 0 of `ReportDefinition.line_item_custom_field_ids`. + // Treats the value as a string. Can only be used if the custom field at + // index 0 is of type STRING or DROPDOWN. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_VALUE = 17000; + + // Custom field value for Backfill line item with custom field ID equal to + // the ID in index 1 of `ReportDefinition.line_item_custom_field_ids`. + // Treats the value as a string. Can only be used if the custom field at + // index 1 is of type STRING or DROPDOWN. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_VALUE = 17001; + + // Custom field value for Backfill line item with custom field ID equal to + // the ID in index 2 of `ReportDefinition.line_item_custom_field_ids`. + // Treats the value as a string. Can only be used if the custom field at + // index 2 is of type STRING or DROPDOWN. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_VALUE = 17002; + + // Custom field value for Backfill line item with custom field ID equal to + // the ID in index 3 of `ReportDefinition.line_item_custom_field_ids`. + // Treats the value as a string. Can only be used if the custom field at + // index 3 is of type STRING or DROPDOWN. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_VALUE = 17003; + + // Custom field value for Backfill line item with custom field ID equal to + // the ID in index 4 of `ReportDefinition.line_item_custom_field_ids`. + // Treats the value as a string. Can only be used if the custom field at + // index 4 is of type STRING or DROPDOWN. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_VALUE = 17004; + + // Custom field value for Backfill line item with custom field ID equal to + // the ID in index 5 of `ReportDefinition.line_item_custom_field_ids`. + // Treats the value as a string. Can only be used if the custom field at + // index 5 is of type STRING or DROPDOWN. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_VALUE = 17005; + + // Custom field value for Backfill line item with custom field ID equal to + // the ID in index 6 of `ReportDefinition.line_item_custom_field_ids`. + // Treats the value as a string. Can only be used if the custom field at + // index 6 is of type STRING or DROPDOWN. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_VALUE = 17006; + + // Custom field value for Backfill line item with custom field ID equal to + // the ID in index 7 of `ReportDefinition.line_item_custom_field_ids`. + // Treats the value as a string. Can only be used if the custom field at + // index 7 is of type STRING or DROPDOWN. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_VALUE = 17007; + + // Custom field value for Backfill line item with custom field ID equal to + // the ID in index 8 of `ReportDefinition.line_item_custom_field_ids`. + // Treats the value as a string. Can only be used if the custom field at + // index 8 is of type STRING or DROPDOWN. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_VALUE = 17008; + + // Custom field value for Backfill line item with custom field ID equal to + // the ID in index 9 of `ReportDefinition.line_item_custom_field_ids`. + // Treats the value as a string. Can only be used if the custom field at + // index 9 is of type STRING or DROPDOWN. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_VALUE = 17009; + + // Custom field value for Backfill line item with custom field ID equal to + // the ID in index 10 of `ReportDefinition.line_item_custom_field_ids`. + // Treats the value as a string. Can only be used if the custom field at + // index 10 is of type STRING or DROPDOWN. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_VALUE = 17010; + + // Custom field value for Backfill line item with custom field ID equal to + // the ID in index 11 of `ReportDefinition.line_item_custom_field_ids`. + // Treats the value as a string. Can only be used if the custom field at + // index 11 is of type STRING or DROPDOWN. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_VALUE = 17011; + + // Custom field value for Backfill line item with custom field ID equal to + // the ID in index 12 of `ReportDefinition.line_item_custom_field_ids`. + // Treats the value as a string. Can only be used if the custom field at + // index 12 is of type STRING or DROPDOWN. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_VALUE = 17012; + + // Custom field value for Backfill line item with custom field ID equal to + // the ID in index 13 of `ReportDefinition.line_item_custom_field_ids`. + // Treats the value as a string. Can only be used if the custom field at + // index 13 is of type STRING or DROPDOWN. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_VALUE = 17013; + + // Custom field value for Backfill line item with custom field ID equal to + // the ID in index 14 of `ReportDefinition.line_item_custom_field_ids`. + // Treats the value as a string. Can only be used if the custom field at + // index 14 is of type STRING or DROPDOWN. + BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_VALUE = 17014; + + // Custom field option ID for Backfill order with custom field ID equal to + // the ID in index 0 of `ReportDefinition.order_custom_field_ids`. + BACKFILL_ORDER_CUSTOM_FIELD_0_OPTION_ID = 18000; + + // Custom field option ID for Backfill order with custom field ID equal to + // the ID in index 1 of `ReportDefinition.order_custom_field_ids`. + BACKFILL_ORDER_CUSTOM_FIELD_1_OPTION_ID = 18001; + + // Custom field option ID for Backfill order with custom field ID equal to + // the ID in index 2 of `ReportDefinition.order_custom_field_ids`. + BACKFILL_ORDER_CUSTOM_FIELD_2_OPTION_ID = 18002; + + // Custom field option ID for Backfill order with custom field ID equal to + // the ID in index 3 of `ReportDefinition.order_custom_field_ids`. + BACKFILL_ORDER_CUSTOM_FIELD_3_OPTION_ID = 18003; + + // Custom field option ID for Backfill order with custom field ID equal to + // the ID in index 4 of `ReportDefinition.order_custom_field_ids`. + BACKFILL_ORDER_CUSTOM_FIELD_4_OPTION_ID = 18004; + + // Custom field option ID for Backfill order with custom field ID equal to + // the ID in index 5 of `ReportDefinition.order_custom_field_ids`. + BACKFILL_ORDER_CUSTOM_FIELD_5_OPTION_ID = 18005; + + // Custom field option ID for Backfill order with custom field ID equal to + // the ID in index 6 of `ReportDefinition.order_custom_field_ids`. + BACKFILL_ORDER_CUSTOM_FIELD_6_OPTION_ID = 18006; + + // Custom field option ID for Backfill order with custom field ID equal to + // the ID in index 7 of `ReportDefinition.order_custom_field_ids`. + BACKFILL_ORDER_CUSTOM_FIELD_7_OPTION_ID = 18007; + + // Custom field option ID for Backfill order with custom field ID equal to + // the ID in index 8 of `ReportDefinition.order_custom_field_ids`. + BACKFILL_ORDER_CUSTOM_FIELD_8_OPTION_ID = 18008; + + // Custom field option ID for Backfill order with custom field ID equal to + // the ID in index 9 of `ReportDefinition.order_custom_field_ids`. + BACKFILL_ORDER_CUSTOM_FIELD_9_OPTION_ID = 18009; + + // Custom field option ID for Backfill order with custom field ID equal to + // the ID in index 10 of `ReportDefinition.order_custom_field_ids`. + BACKFILL_ORDER_CUSTOM_FIELD_10_OPTION_ID = 18010; + + // Custom field option ID for Backfill order with custom field ID equal to + // the ID in index 11 of `ReportDefinition.order_custom_field_ids`. + BACKFILL_ORDER_CUSTOM_FIELD_11_OPTION_ID = 18011; + + // Custom field option ID for Backfill order with custom field ID equal to + // the ID in index 12 of `ReportDefinition.order_custom_field_ids`. + BACKFILL_ORDER_CUSTOM_FIELD_12_OPTION_ID = 18012; + + // Custom field option ID for Backfill order with custom field ID equal to + // the ID in index 13 of `ReportDefinition.order_custom_field_ids`. + BACKFILL_ORDER_CUSTOM_FIELD_13_OPTION_ID = 18013; + + // Custom field option ID for Backfill order with custom field ID equal to + // the ID in index 14 of `ReportDefinition.order_custom_field_ids`. + BACKFILL_ORDER_CUSTOM_FIELD_14_OPTION_ID = 18014; + + // Custom field value for Backfill order with custom field ID equal to the + // ID + // in index 0 of `ReportDefinition.order_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 0 is of + // type STRING or DROPDOWN. + BACKFILL_ORDER_CUSTOM_FIELD_0_VALUE = 19000; + + // Custom field value for Backfill order with custom field ID equal to the + // ID in index 1 of `ReportDefinition.order_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 1 is of + // type STRING or DROPDOWN. + BACKFILL_ORDER_CUSTOM_FIELD_1_VALUE = 19001; + + // Custom field value for Backfill order with custom field ID equal to the + // ID in index 2 of `ReportDefinition.order_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 2 is of + // type STRING or DROPDOWN. + BACKFILL_ORDER_CUSTOM_FIELD_2_VALUE = 19002; + + // Custom field value for Backfill order with custom field ID equal to the + // ID in index 3 of `ReportDefinition.order_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 3 is of + // type STRING or DROPDOWN. + BACKFILL_ORDER_CUSTOM_FIELD_3_VALUE = 19003; + + // Custom field value for Backfill order with custom field ID equal to the + // ID in index 4 of `ReportDefinition.order_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 4 is of + // type STRING or DROPDOWN. + BACKFILL_ORDER_CUSTOM_FIELD_4_VALUE = 19004; + + // Custom field value for Backfill order with custom field ID equal to the + // ID in index 5 of `ReportDefinition.order_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 5 is of + // type STRING or DROPDOWN. + BACKFILL_ORDER_CUSTOM_FIELD_5_VALUE = 19005; + + // Custom field value for Backfill order with custom field ID equal to the + // ID in index 6 of `ReportDefinition.order_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 6 is of + // type STRING or DROPDOWN. + BACKFILL_ORDER_CUSTOM_FIELD_6_VALUE = 19006; + + // Custom field value for Backfill order with custom field ID equal to the + // ID in index 7 of `ReportDefinition.order_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 7 is of + // type STRING or DROPDOWN. + BACKFILL_ORDER_CUSTOM_FIELD_7_VALUE = 19007; + + // Custom field value for Backfill order with custom field ID equal to the + // ID in index 8 of `ReportDefinition.order_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 8 is of + // type STRING or DROPDOWN. + BACKFILL_ORDER_CUSTOM_FIELD_8_VALUE = 19008; + + // Custom field value for Backfill order with custom field ID equal to the + // ID in index 9 of `ReportDefinition.order_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 9 is of + // type STRING or DROPDOWN. + BACKFILL_ORDER_CUSTOM_FIELD_9_VALUE = 19009; + + // Custom field value for Backfill order with custom field ID equal to the + // ID in index 10 of `ReportDefinition.order_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 10 is of + // type STRING or DROPDOWN. + BACKFILL_ORDER_CUSTOM_FIELD_10_VALUE = 19010; + + // Custom field value for Backfill order with custom field ID equal to the + // ID in index 11 of `ReportDefinition.order_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 11 is of + // type STRING or DROPDOWN. + BACKFILL_ORDER_CUSTOM_FIELD_11_VALUE = 19011; + + // Custom field value for Backfill order with custom field ID equal to the + // ID in index 12 of `ReportDefinition.order_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 12 is of + // type STRING or DROPDOWN. + BACKFILL_ORDER_CUSTOM_FIELD_12_VALUE = 19012; + + // Custom field value for Backfill order with custom field ID equal to the + // ID in index 13 of `ReportDefinition.order_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 13 is of + // type STRING or DROPDOWN. + BACKFILL_ORDER_CUSTOM_FIELD_13_VALUE = 19013; + + // Custom field value for Backfill order with custom field ID equal to the + // ID in index 14 of `ReportDefinition.order_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 14 is of + // type STRING or DROPDOWN. + BACKFILL_ORDER_CUSTOM_FIELD_14_VALUE = 19014; + + // Custom field option ID for Backfill creative with custom field ID equal + // to the ID in index 0 of `ReportDefinition.creative_custom_field_ids`. + BACKFILL_CREATIVE_CUSTOM_FIELD_0_OPTION_ID = 20000; + + // Custom field option ID for Backfill creative with custom field ID equal + // to the ID in index 1 of `ReportDefinition.creative_custom_field_ids`. + BACKFILL_CREATIVE_CUSTOM_FIELD_1_OPTION_ID = 20001; + + // Custom field option ID for Backfill creative with custom field ID equal + // to the ID in index 2 of `ReportDefinition.creative_custom_field_ids`. + BACKFILL_CREATIVE_CUSTOM_FIELD_2_OPTION_ID = 20002; + + // Custom field option ID for Backfill creative with custom field ID equal + // to the ID in index 3 of `ReportDefinition.creative_custom_field_ids`. + BACKFILL_CREATIVE_CUSTOM_FIELD_3_OPTION_ID = 20003; + + // Custom field option ID for Backfill creative with custom field ID equal + // to the ID in index 4 of `ReportDefinition.creative_custom_field_ids`. + BACKFILL_CREATIVE_CUSTOM_FIELD_4_OPTION_ID = 20004; + + // Custom field option ID for Backfill creative with custom field ID equal + // to the ID in index 5 of `ReportDefinition.creative_custom_field_ids`. + BACKFILL_CREATIVE_CUSTOM_FIELD_5_OPTION_ID = 20005; + + // Custom field option ID for Backfill creative with custom field ID equal + // to the ID in index 6 of `ReportDefinition.creative_custom_field_ids`. + BACKFILL_CREATIVE_CUSTOM_FIELD_6_OPTION_ID = 20006; + + // Custom field option ID for Backfill creative with custom field ID equal + // to the ID in index 7 of `ReportDefinition.creative_custom_field_ids`. + BACKFILL_CREATIVE_CUSTOM_FIELD_7_OPTION_ID = 20007; + + // Custom field option ID for Backfill creative with custom field ID equal + // to the ID in index 8 of `ReportDefinition.creative_custom_field_ids`. + BACKFILL_CREATIVE_CUSTOM_FIELD_8_OPTION_ID = 20008; + + // Custom field option ID for Backfill creative with custom field ID equal + // to the ID in index 9 of `ReportDefinition.creative_custom_field_ids`. + BACKFILL_CREATIVE_CUSTOM_FIELD_9_OPTION_ID = 20009; + + // Custom field option ID for Backfill creative with custom field ID equal + // to the ID in index 10 of `ReportDefinition.creative_custom_field_ids`. + BACKFILL_CREATIVE_CUSTOM_FIELD_10_OPTION_ID = 20010; + + // Custom field option ID for Backfill creative with custom field ID equal + // to the ID in index 11 of `ReportDefinition.creative_custom_field_ids`. + BACKFILL_CREATIVE_CUSTOM_FIELD_11_OPTION_ID = 20011; + + // Custom field option ID for Backfill creative with custom field ID equal + // to the ID in index 12 of `ReportDefinition.creative_custom_field_ids`. + BACKFILL_CREATIVE_CUSTOM_FIELD_12_OPTION_ID = 20012; + + // Custom field option ID for Backfill creative with custom field ID equal + // to the ID in index 13 of `ReportDefinition.creative_custom_field_ids`. + BACKFILL_CREATIVE_CUSTOM_FIELD_13_OPTION_ID = 20013; + + // Custom field option ID for Backfill creative with custom field ID equal + // to the ID in index 14 of `ReportDefinition.creative_custom_field_ids`. + BACKFILL_CREATIVE_CUSTOM_FIELD_14_OPTION_ID = 20014; + + // Custom field value for Backfill creative with custom field ID equal to + // the ID + // in index 0 of `ReportDefinition.creative_custom_field_ids`. Treats the + // value as a string. Can only be used if the custom field at index 0 is of + // type STRING or DROPDOWN. + BACKFILL_CREATIVE_CUSTOM_FIELD_0_VALUE = 21000; + + // Custom field value for Backfill creative with custom field ID equal to + // the ID in index 1 of `ReportDefinition.creative_custom_field_ids`. Treats + // the value as a string. Can only be used if the custom field at index 1 is + // of type STRING or DROPDOWN. + BACKFILL_CREATIVE_CUSTOM_FIELD_1_VALUE = 21001; + + // Custom field value for Backfill creative with custom field ID equal to + // the ID in index 2 of `ReportDefinition.creative_custom_field_ids`. Treats + // the value as a string. Can only be used if the custom field at index 2 is + // of type STRING or DROPDOWN. + BACKFILL_CREATIVE_CUSTOM_FIELD_2_VALUE = 21002; + + // Custom field value for Backfill creative with custom field ID equal to + // the ID in index 3 of `ReportDefinition.creative_custom_field_ids`. Treats + // the value as a string. Can only be used if the custom field at index 3 is + // of type STRING or DROPDOWN. + BACKFILL_CREATIVE_CUSTOM_FIELD_3_VALUE = 21003; + + // Custom field value for Backfill creative with custom field ID equal to + // the ID in index 4 of `ReportDefinition.creative_custom_field_ids`. Treats + // the value as a string. Can only be used if the custom field at index 4 is + // of type STRING or DROPDOWN. + BACKFILL_CREATIVE_CUSTOM_FIELD_4_VALUE = 21004; + + // Custom field value for Backfill creative with custom field ID equal to + // the ID in index 5 of `ReportDefinition.creative_custom_field_ids`. Treats + // the value as a string. Can only be used if the custom field at index 5 is + // of type STRING or DROPDOWN. + BACKFILL_CREATIVE_CUSTOM_FIELD_5_VALUE = 21005; + + // Custom field value for Backfill creative with custom field ID equal to + // the ID in index 6 of `ReportDefinition.creative_custom_field_ids`. Treats + // the value as a string. Can only be used if the custom field at index 6 is + // of type STRING or DROPDOWN. + BACKFILL_CREATIVE_CUSTOM_FIELD_6_VALUE = 21006; + + // Custom field value for Backfill creative with custom field ID equal to + // the ID in index 7 of `ReportDefinition.creative_custom_field_ids`. Treats + // the value as a string. Can only be used if the custom field at index 7 is + // of type STRING or DROPDOWN. + BACKFILL_CREATIVE_CUSTOM_FIELD_7_VALUE = 21007; + + // Custom field value for Backfill creative with custom field ID equal to + // the ID in index 8 of `ReportDefinition.creative_custom_field_ids`. Treats + // the value as a string. Can only be used if the custom field at index 8 is + // of type STRING or DROPDOWN. + BACKFILL_CREATIVE_CUSTOM_FIELD_8_VALUE = 21008; + + // Custom field value for Backfill creative with custom field ID equal to + // the ID in index 9 of `ReportDefinition.creative_custom_field_ids`. Treats + // the value as a string. Can only be used if the custom field at index 9 is + // of type STRING or DROPDOWN. + BACKFILL_CREATIVE_CUSTOM_FIELD_9_VALUE = 21009; + + // Custom field value for Backfill creative with custom field ID equal to + // the ID in index 10 of `ReportDefinition.creative_custom_field_ids`. + // Treats the value as a string. Can only be used if the custom field at + // index 10 is of type STRING or DROPDOWN. + BACKFILL_CREATIVE_CUSTOM_FIELD_10_VALUE = 21010; + + // Custom field value for Backfill creative with custom field ID equal to + // the ID in index 11 of `ReportDefinition.creative_custom_field_ids`. + // Treats the value as a string. Can only be used if the custom field at + // index 11 is of type STRING or DROPDOWN. + BACKFILL_CREATIVE_CUSTOM_FIELD_11_VALUE = 21011; + + // Custom field value for Backfill creative with custom field ID equal to + // the ID in index 12 of `ReportDefinition.creative_custom_field_ids`. + // Treats the value as a string. Can only be used if the custom field at + // index 12 is of type STRING or DROPDOWN. + BACKFILL_CREATIVE_CUSTOM_FIELD_12_VALUE = 21012; + + // Custom field value for Backfill creative with custom field ID equal to + // the ID in index 13 of `ReportDefinition.creative_custom_field_ids`. + // Treats the value as a string. Can only be used if the custom field at + // index 13 is of type STRING or DROPDOWN. + BACKFILL_CREATIVE_CUSTOM_FIELD_13_VALUE = 21013; + + // Custom field value for Backfill creative with custom field ID equal to + // the ID in index 14 of `ReportDefinition.creative_custom_field_ids`. + // Treats the value as a string. Can only be used if the custom field at + // index 14 is of type STRING or DROPDOWN. + BACKFILL_CREATIVE_CUSTOM_FIELD_14_VALUE = 21014; + + // Custom Dimension Value ID for Custom Dimension with key equal to the key + // in index 0 of `ReportDefinition.custom_dimension_key_ids`. + CUSTOM_DIMENSION_0_VALUE_ID = 100000; + + // Custom Dimension Value ID for Custom Dimension with key equal to the key + // in index 1 of `ReportDefinition.custom_dimension_key_ids`. + CUSTOM_DIMENSION_1_VALUE_ID = 100001; + + // Custom Dimension Value ID for Custom Dimension with key equal to the key + // in index 2 of `ReportDefinition.custom_dimension_key_ids`. + CUSTOM_DIMENSION_2_VALUE_ID = 100002; + + // Custom Dimension Value ID for Custom Dimension with key equal to the key + // in index 3 of `ReportDefinition.custom_dimension_key_ids`. + CUSTOM_DIMENSION_3_VALUE_ID = 100003; + + // Custom Dimension Value ID for Custom Dimension with key equal to the key + // in index 4 of `ReportDefinition.custom_dimension_key_ids`. + CUSTOM_DIMENSION_4_VALUE_ID = 100004; + + // Custom Dimension Value ID for Custom Dimension with key equal to the key + // in index 5 of `ReportDefinition.custom_dimension_key_ids`. + CUSTOM_DIMENSION_5_VALUE_ID = 100005; + + // Custom Dimension Value ID for Custom Dimension with key equal to the key + // in index 6 of `ReportDefinition.custom_dimension_key_ids`. + CUSTOM_DIMENSION_6_VALUE_ID = 100006; + + // Custom Dimension Value ID for Custom Dimension with key equal to the key + // in index 9 of `ReportDefinition.custom_dimension_key_ids`. + CUSTOM_DIMENSION_7_VALUE_ID = 100007; + + // Custom Dimension Value ID for Custom Dimension with key equal to the key + // in index 8 of `ReportDefinition.custom_dimension_key_ids`. + CUSTOM_DIMENSION_8_VALUE_ID = 100008; + + // Custom Dimension Value ID for Custom Dimension with key equal to the key + // in index 9 of `ReportDefinition.custom_dimension_key_ids`. + CUSTOM_DIMENSION_9_VALUE_ID = 100009; + + // Custom Dimension Value name for Custom Dimension with key equal to the + // id in index 0 of `ReportDefinition.custom_dimension_key_ids`. + CUSTOM_DIMENSION_0_VALUE = 101000; + + // Custom Dimension Value name for Custom Dimension with key equal to the + // id in index 1 of `ReportDefinition.custom_dimension_key_ids`. + CUSTOM_DIMENSION_1_VALUE = 101001; + + // Custom Dimension Value name for Custom Dimension with key equal to the + // id in index 2 of `ReportDefinition.custom_dimension_key_ids`. + CUSTOM_DIMENSION_2_VALUE = 101002; + + // Custom Dimension Value name for Custom Dimension with key equal to the + // id in index 3 of `ReportDefinition.custom_dimension_key_ids`. + CUSTOM_DIMENSION_3_VALUE = 101003; + + // Custom Dimension Value name for Custom Dimension with key equal to the + // id in index 4 of `ReportDefinition.custom_dimension_key_ids`. + CUSTOM_DIMENSION_4_VALUE = 101004; + + // Custom Dimension Value name for Custom Dimension with key equal to the + // id in index 5 of `ReportDefinition.custom_dimension_key_ids`. + CUSTOM_DIMENSION_5_VALUE = 101005; + + // Custom Dimension Value name for Custom Dimension with key equal to the + // id in index 6 of `ReportDefinition.custom_dimension_key_ids`. + CUSTOM_DIMENSION_6_VALUE = 101006; + + // Custom Dimension Value name for Custom Dimension with key equal to the + // id in index 7 of `ReportDefinition.custom_dimension_key_ids`. + CUSTOM_DIMENSION_7_VALUE = 101007; + + // Custom Dimension Value name for Custom Dimension with key equal to the + // id in index 8 of `ReportDefinition.custom_dimension_key_ids`. + CUSTOM_DIMENSION_8_VALUE = 101008; + + // Custom Dimension Value name for Custom Dimension with key equal to the + // id in index 9 of `ReportDefinition.custom_dimension_key_ids`. + CUSTOM_DIMENSION_9_VALUE = 101009; + } + + // Reporting metrics. + enum Metric { + // Default value. This value is unused. + METRIC_UNSPECIFIED = 0; + + // Active View total average time in seconds that specific impressions are + // reported as being viewable. + ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 61; + + // Total number of impressions that were eligible to measure viewability. + ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 58; + + // The total number of impressions that were sampled and measured by active + // view. + ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 57; + + // The percentage of total impressions that were measurable by active view + // (out of all the total impressions sampled for active view). + ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 60; + + // The total number of impressions viewed on the user's screen. + ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 56; + + // The percentage of total impressions viewed on the user's screen (out of + // the total impressions measurable by active view). + ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 59; + + // Active View AdSense average time in seconds that specific impressions are + // reported as being viewable. + ADSENSE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 73; + + // Total number of impressions delivered by AdSense that were eligible to + // measure viewability. + ADSENSE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 70; + + // The number of impressions delivered by AdSense that were sampled, and + // measurable by active view. + ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 69; + + // The percentage of impressions delivered by AdSense that were measurable + // by active view (out of all AdSense impressions sampled for active view). + ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 72; + + // The number of impressions delivered by AdSense viewed on the user's + // screen. + ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 68; + + // The percentage of impressions delivered by AdSense viewed on the user's + // screen (out of AdSense impressions measurable by active view). + ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 71; + + // The average effective cost-per-thousand-impressions earned from the ads + // delivered by AdSense through line item dynamic allocation. + ADSENSE_AVERAGE_ECPM = 26; + + // Number of clicks delivered by AdSense demand channel. + ADSENSE_CLICKS = 23; + + // The ratio of impressions served by AdSense that resulted in users + // clicking on an ad. The clickthrough rate (CTR) is updated nightly. The + // AdSense CTR is calculated as: (AdSense clicks / AdSense impressions). + ADSENSE_CTR = 24; + + // Total impressions delivered by AdSense. + ADSENSE_IMPRESSIONS = 22; + + // Ratio of clicks delivered by AdSense through line item dynamic allocation + // in relation to the total clicks delivered. + ADSENSE_PERCENT_CLICKS = 28; + + // Ratio of impressions delivered by AdSense through line item dynamic + // allocation in relation to the total impressions delivered. + ADSENSE_PERCENT_IMPRESSIONS = 27; + + // Ratio of revenue generated by AdSense through line item dynamic + // allocation in relation to the total revenue. + ADSENSE_PERCENT_REVENUE = 29; + + // Ratio of revenue generated by AdSense through line item dynamic + // allocation in relation to the total revenue (excluding CPD). + ADSENSE_PERCENT_REVENUE_WITHOUT_CPD = 30; + + // The total number of times that an AdSense ad is delivered. + ADSENSE_RESPONSES_SERVED = 41; + + // Revenue generated from AdSense through line item dynamic allocation, + // calculated in the network's currency and time zone. + ADSENSE_REVENUE = 25; + + // Active View AdExchange average time in seconds that specific impressions + // are reported as being viewable. + AD_EXCHANGE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 79; + + // Total number of impressions delivered by Ad Exchange that were eligible + // to measure viewability. + AD_EXCHANGE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 76; + + // The number of impressions delivered by Ad Exchange that were sampled, and + // measurable by active view. + AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 75; + + // The percentage of impressions delivered by Ad Exchange that were + // measurable by active view (out of all Ad Exchange impressions sampled for + // active view). + AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 78; + + // The number of impressions delivered by Ad Exchange viewed on the user's + // screen. + AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 74; + + // The percentage of impressions delivered by Ad Exchange viewed on the + // user's screen (out of Ad Exchange impressions measurable by active view). + AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 77; + + // The average effective cost-per-thousand-impressions earned from the ads + // delivered by Ad Exchange through line item dynamic allocation. + AD_EXCHANGE_AVERAGE_ECPM = 18; + + // Number of clicks delivered by the Ad Exchange. + AD_EXCHANGE_CLICKS = 15; + + // The ratio of impressions served by the Ad Exchange that resulted in users + // clicking on an ad. The clickthrough rate (CTR) is updated nightly. Ad + // Exchange CTR is calculated as: (Ad Exchange clicks / Ad Exchange + // impressions). + AD_EXCHANGE_CTR = 16; + + // Total impressions delivered by the Ad Exchange. + AD_EXCHANGE_IMPRESSIONS = 14; + + // Ratio of clicks delivered by Ad Exchange through line item dynamic + // allocation in relation to the total clicks delivered. + AD_EXCHANGE_PERCENT_CLICKS = 20; + + // Ratio of impressions delivered by Ad Exchange through line item dynamic + // allocation in relation to the total impressions delivered. + AD_EXCHANGE_PERCENT_IMPRESSIONS = 19; + + // Ratio of revenue generated by Ad Exchange through line item dynamic + // allocation in relation to the total revenue. + AD_EXCHANGE_PERCENT_REVENUE = 21; + + // Ratio of revenue generated by Ad Exchange through line item dynamic + // allocation in relation to the total revenue (excluding CPD). + AD_EXCHANGE_PERCENT_REVENUE_WITHOUT_CPD = 31; + + // The total number of times that an Ad Exchange ad is delivered. + AD_EXCHANGE_RESPONSES_SERVED = 42; + + // Revenue generated from the Ad Exchange through line item dynamic + // allocation, calculated in your network's currency and time zone. + AD_EXCHANGE_REVENUE = 17; + + // The total number of times that an ad request is sent to the ad server + // including dynamic allocation. + AD_REQUESTS = 38; + + // Active View ad server average time in seconds that specific impressions + // are reported as being viewable. + AD_SERVER_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 67; + + // Total number of impressions delivered by the ad server that were eligible + // to measure viewability. + AD_SERVER_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 64; + + // The number of impressions delivered by the ad server that were sampled, + // and measurable by active view. + AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 63; + + // The percentage of impressions delivered by the ad server that were + // measurable by active view (out of all the ad server impressions sampled + // for active view). + AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 66; + + // The number of impressions delivered by the ad server viewed on the user's + // screen. + AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 62; + + // The percentage of impressions delivered by the ad server viewed on the + // user's screen (out of the ad server impressions measurable by active + // view). + AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 65; + + // Average effective cost-per-thousand-impressions earned from the ads + // delivered by the Google Ad Manager server. + AD_SERVER_AVERAGE_ECPM = 34; + + // Average effective cost-per-thousand-impressions earned from the ads + // delivered by the Google Ad Manager server, excluding CPD value. + AD_SERVER_AVERAGE_ECPM_WITHOUT_CPD = 10; + + // Total raw impressions counted when creative begins to render or the + // first frame of a video is shown. + AD_SERVER_BEGIN_TO_RENDER_IMPRESSIONS = 262; + + // Total clicks served by the Google Ad Manager server. It usually takes + // about 30 minutes for new clicks to be recorded and added to the total + // displayed in reporting. + AD_SERVER_CLICKS = 7; + + // CPD revenue earned, calculated in your network's currency, for + // the ads delivered by the Google Ad Manager server. Sum of all booked + // revenue. + AD_SERVER_CPD_REVENUE = 32; + + // Ratio of impressions served by the Google Ad Manager server that resulted + // in users clicking on an ad. The clickthrough rate (CTR) is updated + // nightly. The ad server CTR is calculated as: (Ad server clicks / Ad + // server impressions). + AD_SERVER_CTR = 8; + + // Total impressions delivered by the Ad Server. + AD_SERVER_IMPRESSIONS = 6; + + // Ratio of clicks delivered by the Google Ad Manager server in relation to + // the total clicks delivered. + AD_SERVER_PERCENT_CLICKS = 12; + + // Ratio of impressions delivered by the Google Ad Manager server in + // relation to the total impressions delivered. + AD_SERVER_PERCENT_IMPRESSIONS = 11; + + // Ratio of revenue generated by the Google Ad Manager server in relation + // to the total revenue. + AD_SERVER_PERCENT_REVENUE = 35; + + // Ratio of revenue generated by the Google Ad Manager server (excluding + // CPD) in relation to the total revenue. + AD_SERVER_PERCENT_REVENUE_WITHOUT_CPD = 13; + + // The total number of times that an ad is served by the ad server. + AD_SERVER_RESPONSES_SERVED = 40; + + // All CPM, CPC, and CPD revenue earned, calculated in your network's + // currency, for the ads delivered by the Google Ad Manager server. + // Sum of all booked revenue. + AD_SERVER_REVENUE = 33; + + // Revenue (excluding CPD) earned, calculated in your network's currency, + // for the ads delivered by the Google Ad Manager server. Sum of all booked + // revenue. + AD_SERVER_REVENUE_WITHOUT_CPD = 9; + + // The number of tracked ads delivered by the ad server. + AD_SERVER_TRACKED_ADS = 264; + + // Total raw impressions counted when creative begins to render or the + // first frame of a video is shown, before invalid traffic filtrations by + // Ad Server. + AD_SERVER_UNFILTERED_BEGIN_TO_RENDER_IMPRESSIONS = 261; + + // Total clicks delivered by the Ad Server before spam filtering. + AD_SERVER_UNFILTERED_CLICKS = 259; + + // Total impressions delivered by the Ad Server before spam filtering. + AD_SERVER_UNFILTERED_IMPRESSIONS = 260; + + // The number of tracked ads delivered by the ad server before invalid + // traffic filtrations. + AD_SERVER_UNFILTERED_TRACKED_ADS = 263; + + // eCPM averaged across the Google Ad Manager server, AdSense, + // and Ad Exchange. + AVERAGE_ECPM = 37; + + // eCPM averaged across the Google Ad Manager server (excluding CPD), + // AdSense, and Ad Exchange. + AVERAGE_ECPM_WITHOUT_CPD = 5; + + // The number of times a user clicked on an ad. + CLICKS = 2; + + // The total number of times that the code for an ad is served by the ad + // server including dynamic allocation. + CODE_SERVED_COUNT = 44; + + // For standard ads, your ad clickthrough rate (CTR) is the number of ad + // clicks divided by the number of individual ad impressions expressed as a + // fraction. Ad CTR = Clicks / Ad impressions. + CTR = 3; + + // The number of coviewed impressions sold by Google in partner sales. + GOOGLE_SOLD_AUCTION_COVIEWED_IMPRESSIONS = 129; + + // The number of auction impressions sold by Google in partner sales. + GOOGLE_SOLD_AUCTION_IMPRESSIONS = 128; + + // The number of coviewed impressions sold by Google in partner sales. + GOOGLE_SOLD_COVIEWED_IMPRESSIONS = 131; + + // The number of impressions sold by Google in partner sales. + GOOGLE_SOLD_IMPRESSIONS = 130; + + // The number of coviewed impressions sold by Google in partner sales. + GOOGLE_SOLD_RESERVATION_COVIEWED_IMPRESSIONS = 127; + + // The number of reservation impressions sold by Google in partner sales. + GOOGLE_SOLD_RESERVATION_IMPRESSIONS = 126; + + // Total impressions from the Google Ad Manager server, AdSense, + // Ad Exchange, and yield group partners. + IMPRESSIONS = 1; + + // The number of filled pod requests (filled by partner or Google) in + // partner sales. + PARTNER_SALES_FILLED_POD_REQUESTS = 135; + + // The percent of filled requests to total ad requests in + // partner sales. + PARTNER_SALES_FILL_RATE = 136; + + // The percent of partner filled requests to total ad requests + // in partner sales. + PARTNER_SALES_PARTNER_MATCH_RATE = 137; + + // The number of queries eligible for partner sales. + PARTNER_SALES_QUERIES = 132; + + // The number of partner unfilled impressions in partner sales. + // If a pod request is not filled by partner but filled by Google, this + // metric will still count 1. + PARTNER_SALES_UNFILLED_IMPRESSIONS = 133; + + // The number of partner unmatched queries in partner sales. + // If an ad request is not filled by partner but filled by Google, this + // metric will still count 1. + PARTNER_SALES_UNMATCHED_QUERIES = 134; + + // The number of code served sold by partner in partner sales. + PARTNER_SOLD_CODE_SERVED = 125; + + // The number of coviewed impressions sold by partner in partner sales. + PARTNER_SOLD_COVIEWED_IMPRESSIONS = 124; + + // The number of impressions sold by partner in partner sales. + PARTNER_SOLD_IMPRESSIONS = 123; + + // The total number of ad requests eligible for programmatic inventory, + // including Programmatic Guaranteed, Preferred Deals, backfill, and open + // auction. + PROGRAMMATIC_ELIGIBLE_AD_REQUESTS = 177; + + // The number of programmatic responses served divided by the number of + // programmatic eligible ad requests. Includes Ad Exchange, Open Bidding, + // and Preferred Deals. + PROGRAMMATIC_MATCH_RATE = 178; + + // Total number of ad responses served from programmatic demand sources. + // Includes Ad Exchange, Open Bidding, and Preferred Deals. + // + // Differs from AD_EXCHANGE_RESPONSES_SERVED, which doesn't include Open + // Bidding ad requests. + PROGRAMMATIC_RESPONSES_SERVED = 176; + + // The total number of times that an ad is served by the ad server including + // dynamic allocation. + RESPONSES_SERVED = 39; + + // Total amount of CPM, CPC, and CPD revenue based on the number of units + // served by the Google Ad Manager server, AdSense, Ad Exchange, and + // third-party Mediation networks. + REVENUE = 36; + + // Total amount of revenue (excluding CPD) based on the number of units + // served by the Google Ad Manager server, AdSense, Ad Exchange, and + // third-party Mediation networks. + REVENUE_WITHOUT_CPD = 4; + + // The average latency in milliseconds across all server-side unwrapping + // callout requests. There is no special handling for error or timeout + // responses. This reflects the entire chain of a parent callout request, + // which may result in multiple child callouts. This metric is not sliced by + // child callout dimensions. + SERVER_SIDE_UNWRAPPING_AVERAGE_LATENCY_MS = 434; + + // The total number of server-side unwrapping callout requests. + SERVER_SIDE_UNWRAPPING_CALLOUTS = 435; + + // The total number of server-side unwrapping callouts that returned an + // empty response. Timeouts are not considered empty responses. + SERVER_SIDE_UNWRAPPING_EMPTY_RESPONSES = 436; + + // The total number of server-side unwrapping callouts that returned an + // error response. Timeouts and empty responses are not considered errors. + SERVER_SIDE_UNWRAPPING_ERROR_RESPONSES = 437; + + // The total number of successfully unwrapped, non-empty server-side + // wrapping callouts. Successful unwrapping does not indicate that the + // resulting creative was served. + SERVER_SIDE_UNWRAPPING_SUCCESSFUL_RESPONSES = 438; + + // The total number of server-side unwrapping callouts that timed out before + // returning a response. + SERVER_SIDE_UNWRAPPING_TIMEOUTS = 439; + + // The total number of missed impressions due to the ad servers' inability + // to find ads to serve including dynamic allocation. + UNFILLED_IMPRESSIONS = 45; + + // The total number of times that an ad is not returned by the ad server. + UNMATCHED_AD_REQUESTS = 43; + + // Number of times an Offerwall message was shown to users. + USER_MESSAGES_OFFERWALL_MESSAGES_SHOWN = 121; + + // The number of messages where the user gained an entitlement. + USER_MESSAGES_OFFERWALL_SUCCESSFUL_ENGAGEMENTS = 122; + + // The number of user interactions with a video, on average, such as pause, + // full screen, mute, etc. + VIDEO_INTERACTION_AVERAGE_INTERACTION_RATE = 92; + + // The number of times a user collapses a video, either to its original size + // or to a different size. + VIDEO_INTERACTION_COLLAPSES = 93; + + // The number of times a user expands a video. + VIDEO_INTERACTION_EXPANDS = 95; + + // The number of times ad clip played in full screen mode. + VIDEO_INTERACTION_FULL_SCREENS = 96; + + // The number of times video player was in mute state during play of ad + // clip. + VIDEO_INTERACTION_MUTES = 97; + + // The number of times user paused ad clip. + VIDEO_INTERACTION_PAUSES = 98; + + // The number of times the user unpaused the video. + VIDEO_INTERACTION_RESUMES = 99; + + // The number of times a user rewinds the video. + VIDEO_INTERACTION_REWINDS = 100; + + // The number of times a user unmutes the video. + VIDEO_INTERACTION_UNMUTES = 101; + + // The number of times a skippable video is skipped. + VIDEO_INTERACTION_VIDEO_SKIPS = 102; + + // The number of total creative serves in video realtime reporting. + VIDEO_REAL_TIME_CREATIVE_SERVES = 139; + + // The number of errors of type 100 in video realtime reporting. + VIDEO_REAL_TIME_ERROR_100_COUNT = 143; + + // The number of errors of type 101 in video realtime reporting. + VIDEO_REAL_TIME_ERROR_101_COUNT = 144; + + // The number of errors of type 102 in video realtime reporting. + VIDEO_REAL_TIME_ERROR_102_COUNT = 145; + + // The number of errors of type 200 in video realtime reporting. + VIDEO_REAL_TIME_ERROR_200_COUNT = 146; + + // The number of errors of type 201 in video realtime reporting. + VIDEO_REAL_TIME_ERROR_201_COUNT = 147; + + // The number of errors of type 202 in video realtime reporting. + VIDEO_REAL_TIME_ERROR_202_COUNT = 148; + + // The number of errors of type 203 in video realtime reporting. + VIDEO_REAL_TIME_ERROR_203_COUNT = 149; + + // The number of errors of type 300 in video realtime reporting. + VIDEO_REAL_TIME_ERROR_300_COUNT = 150; + + // The number of errors of type 301 in video realtime reporting. + VIDEO_REAL_TIME_ERROR_301_COUNT = 151; + + // The number of errors of type 302 in video realtime reporting. + VIDEO_REAL_TIME_ERROR_302_COUNT = 152; + + // The number of errors of type 303 in video realtime reporting. + VIDEO_REAL_TIME_ERROR_303_COUNT = 153; + + // The number of errors of type 400 in video realtime reporting. + VIDEO_REAL_TIME_ERROR_400_COUNT = 154; + + // The number of errors of type 401 in video realtime reporting. + VIDEO_REAL_TIME_ERROR_401_COUNT = 155; + + // The number of errors of type 402 in video realtime reporting. + VIDEO_REAL_TIME_ERROR_402_COUNT = 156; + + // The number of errors of type 403 in video realtime reporting. + VIDEO_REAL_TIME_ERROR_403_COUNT = 157; + + // The number of errors of type 405 in video realtime reporting. + VIDEO_REAL_TIME_ERROR_405_COUNT = 158; + + // The number of errors of type 406 in video realtime reporting. + VIDEO_REAL_TIME_ERROR_406_COUNT = 159; + + // The number of errors of type 407 in video realtime reporting. + VIDEO_REAL_TIME_ERROR_407_COUNT = 160; + + // The number of errors of type 408 in video realtime reporting. + VIDEO_REAL_TIME_ERROR_408_COUNT = 161; + + // The number of errors of type 409 in video realtime reporting. + VIDEO_REAL_TIME_ERROR_409_COUNT = 162; + + // The number of errors of type 410 in video realtime reporting. + VIDEO_REAL_TIME_ERROR_410_COUNT = 163; + + // The number of errors of type 500 in video realtime reporting. + VIDEO_REAL_TIME_ERROR_500_COUNT = 164; + + // The number of errors of type 501 in video realtime reporting. + VIDEO_REAL_TIME_ERROR_501_COUNT = 165; + + // The number of errors of type 502 in video realtime reporting. + VIDEO_REAL_TIME_ERROR_502_COUNT = 166; + + // The number of errors of type 503 in video realtime reporting. + VIDEO_REAL_TIME_ERROR_503_COUNT = 167; + + // The number of errors of type 600 in video realtime reporting. + VIDEO_REAL_TIME_ERROR_600_COUNT = 168; + + // The number of errors of type 601 in video realtime reporting. + VIDEO_REAL_TIME_ERROR_601_COUNT = 169; + + // The number of errors of type 602 in video realtime reporting. + VIDEO_REAL_TIME_ERROR_602_COUNT = 170; + + // The number of errors of type 603 in video realtime reporting. + VIDEO_REAL_TIME_ERROR_603_COUNT = 171; + + // The number of errors of type 604 in video realtime reporting. + VIDEO_REAL_TIME_ERROR_604_COUNT = 172; + + // The number of errors of type 900 in video realtime reporting. + VIDEO_REAL_TIME_ERROR_900_COUNT = 173; + + // The number of errors of type 901 in video realtime reporting. + VIDEO_REAL_TIME_ERROR_901_COUNT = 174; + + // The number of total impressions in video realtime reporting. + VIDEO_REAL_TIME_IMPRESSIONS = 138; + + // The number of matched queries in video realtime reporting. + VIDEO_REAL_TIME_MATCHED_QUERIES = 140; + + // The number of all errors in video realtime reporting. + VIDEO_REAL_TIME_TOTAL_ERROR_COUNT = 175; + + // The number of total queries in video realtime reporting. + VIDEO_REAL_TIME_TOTAL_QUERIES = 142; + + // The number of unmatched queries in video realtime reporting. + VIDEO_REAL_TIME_UNMATCHED_QUERIES = 141; + + // Number of times that the publisher specified a video ad played + // automatically. + VIDEO_VIEWERSHIP_AUTO_PLAYS = 103; + + // Average percentage of the video watched by users. + VIDEO_VIEWERSHIP_AVERAGE_VIEW_RATE = 104; + + // Average time(seconds) users watched the video. + VIDEO_VIEWERSHIP_AVERAGE_VIEW_TIME = 105; + + // Number of times that the publisher specified a video ad was clicked to + // play. + VIDEO_VIEWERSHIP_CLICK_TO_PLAYS = 106; + + // The number of times the video played to completion. + VIDEO_VIEWERSHIP_COMPLETES = 107; + + // Percentage of times the video played to the end. + VIDEO_VIEWERSHIP_COMPLETION_RATE = 108; + + // The number of engaged views: ad is viewed to completion or for 30s, + // whichever comes first. + VIDEO_VIEWERSHIP_ENGAGED_VIEWS = 109; + + // The number of times the video played to 25% of its length. + VIDEO_VIEWERSHIP_FIRST_QUARTILES = 110; + + // The number of times the video reached its midpoint during play. + VIDEO_VIEWERSHIP_MIDPOINTS = 111; + + // The number of times a skip button is shown in video. + VIDEO_VIEWERSHIP_SKIP_BUTTONS_SHOWN = 112; + + // The number of impressions where the video was played. + VIDEO_VIEWERSHIP_STARTS = 113; + + // The number of times the video played to 75% of its length. + VIDEO_VIEWERSHIP_THIRD_QUARTILES = 114; + + // The number of times an error occurred, such as a VAST redirect error, a + // video playback error, or an invalid response error. + VIDEO_VIEWERSHIP_TOTAL_ERROR_COUNT = 115; + + // The percentage of video error count. + VIDEO_VIEWERSHIP_TOTAL_ERROR_RATE = 94; + + // Duration of the video creative. + VIDEO_VIEWERSHIP_VIDEO_LENGTH = 116; + + // View-through rate represented as a percentage. + VIDEO_VIEWERSHIP_VIEW_THROUGH_RATE = 117; + + // Number of winning bids received from Open Bidding buyers, even when the + // winning bid is placed at the end of a mediation for mobile apps chain. + YIELD_GROUP_AUCTIONS_WON = 80; + + // Number of bids received from Open Bidding buyers, regardless of whether + // the returned bid competes in an auction. + YIELD_GROUP_BIDS = 81; + + // Number of bids received from Open Bidding buyers that competed in + // the auction. + YIELD_GROUP_BIDS_IN_AUCTION = 82; + + // Number of times a yield partner is asked to return bid to fill + // a yield group request. + YIELD_GROUP_CALLOUTS = 83; + + // The estimated net rate for yield groups or individual + // yield group partners. + YIELD_GROUP_ESTIMATED_CPM = 88; + + // Total net revenue earned by a yield group, based upon the yield group + // estimated CPM and yield group impressions recorded. + YIELD_GROUP_ESTIMATED_REVENUE = 87; + + // Number of matched yield group requests where a yield partner delivered + // their ad to publisher inventory. + YIELD_GROUP_IMPRESSIONS = 85; + + // Yield group Mediation fill rate indicating how often a network + // fills an ad request. + YIELD_GROUP_MEDIATION_FILL_RATE = 89; + + // Total requests where a Mediation chain was served. + YIELD_GROUP_MEDIATION_MATCHED_QUERIES = 86; + + // The number of mediation chain passback across all channels. + YIELD_GROUP_MEDIATION_PASSBACKS = 118; + + // Revenue per thousand impressions based on data collected by Ad Manager + // from third-party ad network reports. + YIELD_GROUP_MEDIATION_THIRD_PARTY_ECPM = 90; + + // Number of times a yield group buyer successfully returned a bid in + // response to a yield group callout. + YIELD_GROUP_SUCCESSFUL_RESPONSES = 84; + } + + // Possible metric value types to add. + enum MetricValueType { + // The values for the primary date_range. + PRIMARY = 0; + + // Each metrics' percent of the total for the primary date_range. + PRIMARY_PERCENT_OF_TOTAL = 1; + + // The values for the comparison_date_range. + COMPARISON = 2; + + // Each metrics' percent of the total for the comparison_date_range. + COMPARISON_PERCENT_OF_TOTAL = 3; + + // The absolute change between the primary and comparison date ranges. + ABSOLUTE_CHANGE = 4; + + // The relative change between the primary and comparison date ranges. + RELATIVE_CHANGE = 5; + } + + // Supported report types. + enum ReportType { + // Default value. This value is unused. + REPORT_TYPE_UNSPECIFIED = 0; + + // Historical. + HISTORICAL = 1; + } + + // The visibility of a report. + enum Visibility { + // Default value. Reports with hidden visibility will not appear in the Ad + // Manager UI. + HIDDEN = 0; + + // Reports with draft visibility will appear in the Ad Manager UI only if + // the user has configured the UI to show them. + DRAFT = 1; + + // Reports with saved visibility will appear in the Ad Manager UI by + // default. + SAVED = 2; + } + + // The source to determine the time zone for the report. + enum TimeZoneSource { + // Unspecified default value. + TIME_ZONE_SOURCE_UNSPECIFIED = 0; + + // Use the publisher's time zone in network settings. + PUBLISHER = 1; + + // Use the time zone of the ad exchange. + // Only compatible with Ad Exchange dimensions and metrics. + AD_EXCHANGE = 2; + + // Use UTC time zone. + // Only compatible with Revenue Verification reports. + UTC = 3; + + // Use the time zone provided in the ReportDefinition.time_zone field. + // Has limited dimension and metric compatibility compared with PUBLISHER, + // and reports may take longer to run since the dates are dynamically + // calculated at request time. + PROVIDED = 4; + } + + // Identifier. The resource name of the report. + // Report resource name have the form: + // `networks/{network_code}/reports/{report_id}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. Report ID. + int64 report_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The visibility of a report. + Visibility visibility = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The report definition of the report. + ReportDefinition report_definition = 4 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. Display name for the report. + string display_name = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The instant this report was last modified. + google.protobuf.Timestamp update_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The instant this report was created. + google.protobuf.Timestamp create_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The locale of this report. Locale is set from the user's + // locale at the time of the request. Locale can not be modified. + string locale = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The schedule options of this report. + ScheduleOptions schedule_options = 9 [(google.api.field_behavior) = OPTIONAL]; +} + +// The definition of how a report should be run. +message ReportDefinition { + // Required. The list of dimensions to report on. If empty, the report will + // have no dimensions, and any metrics will be totals. + repeated Report.Dimension dimensions = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of metrics to report on. If empty, the report will have + // no metrics. + repeated Report.Metric metrics = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The filters for this report. + repeated Report.Filter filters = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Where to get the time zone for this report. Defaults to using the + // network time zone setting (PUBLISHER). If source is PROVIDED, the time_zone + // field in the report definition must also be provided with the desired time + // zone. + Report.TimeZoneSource time_zone_source = 20 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If time_zone_source is PROVIDED, this is the time zone to use for + // this report. Leave empty for any other time zone source. Time zone in IANA + // format (e.g. "America/New_York"). + string time_zone = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The ISO 4217 currency code for this report. Defaults to publisher + // currency code if not specified. + string currency_code = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The primary date range of this report. + Report.DateRange date_range = 6 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The comparison date range of this report. If unspecified, the + // report will not have any comparison metrics. + optional Report.DateRange comparison_date_range = 9 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Custom Dimension keys that represent CUSTOM_DIMENSION_* + // dimensions. The index of this repeated field corresponds to the index on + // each dimension. For example, custom_dimension_key_ids[0] describes + // CUSTOM_DIMENSION_0_VALUE_ID and CUSTOM_DIMENSION_0_VALUE. + repeated int64 custom_dimension_key_ids = 7 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Custom field IDs that represent LINE_ITEM_CUSTOM_FIELD_* + // dimensions. The index of this repeated field corresponds to the index on + // each dimension. For example, line_item_custom_field_ids[0] describes + // LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID and LINE_ITEM_CUSTOM_FIELD_0_VALUE. + repeated int64 line_item_custom_field_ids = 11 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Custom field IDs that represent ORDER_CUSTOM_FIELD_* + // dimensions. The index of this repeated field corresponds to the index on + // each dimension. For example, order_custom_field_ids[0] describes + // ORDER_CUSTOM_FIELD_0_OPTION_ID and ORDER_CUSTOM_FIELD_0_VALUE. + repeated int64 order_custom_field_ids = 12 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Custom field IDs that represent CREATIVE_CUSTOM_FIELD_* + // dimensions. The index of this repeated field corresponds to the index on + // each dimension. For example, creative_custom_field_ids[0] describes + // CREATIVE_CUSTOM_FIELD_0_OPTION_ID and CREATIVE_CUSTOM_FIELD_0_VALUE. + repeated int64 creative_custom_field_ids = 13 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The type of this report. + Report.ReportType report_type = 8 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Include a time period column to introduce comparison columns in + // the report for each generated period. For example, set to "QUARTERS" here + // to have a column for each quarter present in the primary date range. If + // "PREVIOUS PERIOD" is specified in comparison_date_range, then each quarter + // column will also include comparison values for its relative previous + // quarter. + Report.TimePeriodColumn time_period_column = 10 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of flags for this report. Used to flag rows in a result set + // based on a set of defined filters. + repeated Report.Flag flags = 14 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Default sorts to apply to this report. + repeated Report.Sort sorts = 15 [(google.api.field_behavior) = OPTIONAL]; +} + +// The options for a scheduled report. +message ScheduleOptions { + // Condition for when to email the scheduled report. + enum DeliveryCondition { + // Never deliver report. + NEVER = 0; + + // Always deliver report. + ALWAYS = 1; + + // Deliver report when flag's conditions are met. + WHEN_FLAG_CONDITIONS_MET = 2; + } + + // Information pertaining to schedule itself. + Schedule schedule = 1; + + // Option for when to deliver the scheduled report. + DeliveryCondition delivery_condition = 2; + + // Optional. The flags evaluated when ReportDeliveryOption.WHEN_FLAG_PRESENT + // is specified. + repeated Report.Flag flags = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// The schedule for the report +message Schedule { + // Days of week to schedule report run. + message WeeklySchedule { + // Specifies days of the week on which to run report. + repeated google.type.DayOfWeek weekly_scheduled_days = 1; + } + + // Days of Month to schedule report run. + message MonthlySchedule { + // Specifies days of the month to run report. Range is from 1-31. + // Will ignore days that are not valid for the given month. + repeated int32 monthly_scheduled_days = 1; + } + + // Frequency to run report. + enum Frequency { + // No Frequency specified. + FREQUENCY_UNSPECIFIED = 0; + + // Schedule report to run every hour. + HOURLY = 1; + + // Schedule report to run twice a day (every 12 hours). + TWO_TIMES_DAILY = 2; + + // Schedule report to run three times a day (every 8 hours). + THREE_TIMES_DAILY = 3; + + // Schedule report to run four times a day (every 6 hours). + FOUR_TIMES_DAILY = 4; + + // Schedule report to run on a daily basis. + DAILY = 5; + + // Schedule report to run on a weekly basis. + WEEKLY = 6; + + // Schedule report to run on a monthly basis. + MONTHLY = 7; + } + + // The scheduled values based on the frequency selected. + // WEEKLY - uses WeeklySchedule + // MONTHLY - uses MonthlySchedule + oneof frequency_schedule { + // Days of week to schedule report run. + WeeklySchedule weekly_schedule = 6; + + // Days of month to schedule report run. + MonthlySchedule monthly_schedule = 7; + } + + // Date for the first run of the report. + google.type.Date start_date = 1; + + // Date for the final run of the report. + google.type.Date end_date = 2; + + // Frequency to run report. + Frequency frequency = 3; + + // Indicates start time for schedule to run + // Will use the time_zone from `ReportDefinition`. Defaults + // to the publisher's time zone if not specified. + // + // For HOURLY, TWO_TIMES_DAILY, THREE_TIMES_DAILY, or FOUR_TIMES_DAILY, this + // will be the time of day that the first report will run on the first day. + // For example, if the start time is 2:00 PM, and the frequency is + // THREE_TIMES_DAILY, the first day will have reports scheduled at 2:00 PM, + // 10:00 PM. Each subsequent day will have reports scheduled at 6:00 AM, + // 2:00 PM, 10:00 PM. + google.type.TimeOfDay start_time = 4; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/report_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/report_service.proto index 6a0cde0189ec..1c072e680887 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/report_service.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/report_service.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ syntax = "proto3"; package google.ads.admanager.v1; +import "google/ads/admanager/v1/report_messages.proto"; import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; @@ -23,9 +24,6 @@ import "google/api/resource.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; -import "google/type/date.proto"; -import "google/type/dayofweek.proto"; -import "google/type/timeofday.proto"; option csharp_namespace = "Google.Ads.AdManager.V1"; option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; @@ -38,6 +36,8 @@ option ruby_package = "Google::Ads::AdManager::V1"; // Provides methods for interacting with reports. service ReportService { option (google.api.default_host) = "admanager.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/admanager"; // API to retrieve a `Report` object. rpc GetReport(GetReportRequest) returns (Report) { @@ -106,3067 +106,6 @@ service ReportService { } } -// The `Report` resource. -message Report { - option (google.api.resource) = { - type: "admanager.googleapis.com/Report" - pattern: "networks/{network_code}/reports/{report}" - plural: "reports" - singular: "report" - }; - - // Represents a single value in a report. - message Value { - // A list of integer values. - message IntList { - // The values - repeated int64 values = 1; - } - - // A list of string values. - message StringList { - // The values - repeated string values = 1; - } - - // The value of the field, depends on the field's data format. - oneof value { - // For integer values. - int64 int_value = 1; - - // For double values. - double double_value = 2; - - // For string values. - string string_value = 3; - - // For boolean values. - bool bool_value = 4; - - // For lists of integer values. - IntList int_list_value = 6; - - // For lists of string values. - StringList string_list_value = 7; - - // For bytes values. - bytes bytes_value = 8; - } - } - - // Represents a sorting in a report. - message Sort { - // Required. A field (dimension or metric) to sort by. - Field field = 1 [(google.api.field_behavior) = REQUIRED]; - - // Optional. The sort order. If true the sort will be descending. - bool descending = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Use to sort on a specific slice of data. - optional Slice slice = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. When using time period columns, use this to sort on a specific - // column. - optional int32 time_period_index = 4 - [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Use to specify which metric value type to sort on. Defaults to - // PRIMARY. - optional MetricValueType metric_value_type = 5 - [(google.api.field_behavior) = OPTIONAL]; - } - - // A table containing report data including dimension and metric values. - message DataTable { - // A row of report data. - message Row { - // The order of the dimension values is the same as the order of the - // dimensions specified in the request. - repeated Value dimension_values = 1; - - // - // The length of the metric_value_groups - // field will be equal to the length of the date_ranges field in the - // fetch response. The metric_value_groups field is - // ordered such that each index corresponds to the date_range at the same - // index. For example, given date_ranges [x, y], metric_value_groups will - // have a length of two. The first entry in metric_value_groups represents - // the metrics for date x and the second entry in metric_value_groups - // represents the metrics for date y. - repeated MetricValueGroup metric_value_groups = 2; - } - - // Contains all metric values requested for a single date range and set of - // column dimension values (returned in the columns field of the response). - // The order of the metrics in each field corresponds to the order of the - // metrics specified in the request. - message MetricValueGroup { - // Data for the PRIMARY MetricValueType. - repeated Value primary_values = 1; - - // Data for the PRIMARY_PERCENT_OF_TOTAL MetricValueType. - repeated Value primary_percent_of_total_values = 2; - - // Data for the COMPARISON MetricValueType. - repeated Value comparison_values = 3; - - // Data for the COMPARISON_PERCENT_OF_TOTAL MetricValueType. - repeated Value comparison_percent_of_total_values = 4; - - // Data for the ABSOLUTE_CHANGE MetricValueType. - repeated Value absolute_change_values = 5; - - // Data for the RELATIVE_CHANGE MetricValueType. - repeated Value relative_change_values = 6; - - // If true, the flag's conditions are met. If false, the flag's - // conditions are not met. flag_values has the same length as - // flags and index i of flag_values represents the flag at index i - // of flags. - repeated bool flag_values = 7; - } - } - - // A dimension or a metric in a report. - message Field { - // Either a dimension or a metric. - oneof field { - // The dimension this field represents. - Dimension dimension = 1; - - // The metric this field represents. - Metric metric = 2; - } - } - - // Use to specify a slice of data. - // - // For example, in a report, to focus on just data from the US, specify - // `COUNTRY_NAME` for dimension and value: `"United States"`. - message Slice { - // Required. The dimension to slice on. - Dimension dimension = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The value of the dimension. - Value value = 2 [(google.api.field_behavior) = REQUIRED]; - } - - // A filter over one or more fields. - message Filter { - // A filter on a specific field. - message FieldFilter { - // Required. The field to filter on. - Field field = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The operation of this filter. - Operation operation = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. Values to filter to. - repeated Value values = 3 [(google.api.field_behavior) = REQUIRED]; - - // Optional. Use to filter on a specific slice of data. - optional Slice slice = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. When using time period columns, use this to filter on a - // specific column. - optional int32 time_period_index = 5 - [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Use to specify which metric value type to filter on. Defaults - // to PRIMARY. - optional MetricValueType metric_value_type = 6 - [(google.api.field_behavior) = OPTIONAL]; - } - - // A list of filters. - message FilterList { - // Required. A list of filters. - repeated Filter filters = 1 [(google.api.field_behavior) = REQUIRED]; - } - - // Supported filter operations. - enum Operation { - // For scalar operands, checks if the operand is in the set of provided - // filter values. - // - // For list operands, checks if any element in the operand is in the set - // of provided filter values. - // - // Default value. - IN = 0; - - // For scalar operands, checks that the operand is not in the set of - // provided filter values. - // - // For list operands, checks that none of the elements in the operand - // is in the set of provided filter values. - NOT_IN = 1; - - // For scalar string operands, checks if the operand contains any of the - // provided filter substrings. - // - // For string list operands, checks if any string in the operand contains - // any of the provided filter substrings. - CONTAINS = 2; - - // For scalar string operands, checks that the operand contains none of - // the provided filter substrings. - // - // For string list operands, checks that none of the strings in the - // operand contain none of the provided filter substrings. - NOT_CONTAINS = 3; - - // Operand is less than the provided filter value. - LESS_THAN = 4; - - // Operand is less than or equal to provided filter value. - LESS_THAN_EQUALS = 5; - - // Operand is greater than provided filter value. - GREATER_THAN = 6; - - // Operand is greater than or equal to provided filter value. - GREATER_THAN_EQUALS = 7; - - // Operand is between provided filter values. - BETWEEN = 8; - - // Operand matches against a regex or set of regexes (one must match) - MATCHES = 9; - - // Operand negative matches against a regex or set of regexes (none must - // match) - NOT_MATCHES = 10; - } - - // The type determines how the underlying filters are combined. - oneof type { - // A filter on a single field. - FieldFilter field_filter = 1; - - // A filter whose result is negated. - Filter not_filter = 2; - - // A list of filters whose results are AND-ed. - FilterList and_filter = 3; - - // A list of filters whose results are OR-ed. - FilterList or_filter = 4; - } - } - - // A flag for a report. Flags are used show if certain thresholds are met. - // Result rows that match the filter will have the corresponding - // [MetricValueGroup.flagValues][MetricValueGroup] index set to true. - // For more information about flags see: - // https://support.google.com/admanager/answer/15079975 - message Flag { - // Required. Filters to apply for the flag. - repeated Filter filters = 1 [(google.api.field_behavior) = REQUIRED]; - - // Optional. Name of the flag. - // The flag names RED, YELLOW, GREEN, BLUE, PURPLE, and GREY correspond to - // the colored flags that appear in the UI. The UI will not display flags - // with other names, but they are available for use by API clients. - string name = 2 [(google.api.field_behavior) = OPTIONAL]; - } - - // A date range for a report. - message DateRange { - // A date range between two fixed dates (inclusive of end date). - message FixedDateRange { - // Required. The start date of this date range. - google.type.Date start_date = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The end date (inclusive) of this date range. - google.type.Date end_date = 2 [(google.api.field_behavior) = REQUIRED]; - } - - // Options for relative date ranges. - enum RelativeDateRange { - // Default value. This value is unused. - RELATIVE_DATE_RANGE_UNSPECIFIED = 0; - - // The date the report is run. - TODAY = 1; - - // The date a day before the date that the report is run. - YESTERDAY = 2; - - // The full week in which this report is run. Could include dates in - // the future. - THIS_WEEK = 3; - - // From the beginning of the calendar week (Monday to Sunday) in which the - // up to and including the day the report is run. - THIS_WEEK_TO_DATE = 29; - - // The full month in which this report is run. Could include dates in - // the future. - THIS_MONTH = 4; - - // From the beginning of the calendar month in which the report is run, to - // up to and including the day the report is run. - THIS_MONTH_TO_DATE = 26; - - // The full quarter in which this report is run. Could include dates - // in the future. - THIS_QUARTER = 5; - - // From the beginning of the calendar quarter in which the report is run, - // up to and including the day the report is run. - THIS_QUARTER_TO_DATE = 27; - - // The full year in which this report is run. Could include dates in - // the future. - THIS_YEAR = 6; - - // From the beginning of the calendar year in which the report is run, to - // up to and including the day the report is run. - THIS_YEAR_TO_DATE = 28; - - // The entire previous calendar week, Monday to Sunday (inclusive), - // preceding the calendar week the report is run. - LAST_WEEK = 7; - - // The entire previous calendar month preceding the calendar month the - // report is run. - LAST_MONTH = 8; - - // The entire previous calendar quarter preceding the calendar quarter the - // report is run. - LAST_QUARTER = 9; - - // The entire previous calendar year preceding the calendar year the - // report is run. - LAST_YEAR = 10; - - // The 7 days preceding the day the report is run. - LAST_7_DAYS = 11; - - // The 30 days preceding the day the report is run. - LAST_30_DAYS = 12; - - // The 60 days preceding the day the report is run. - LAST_60_DAYS = 13; - - // The 90 days preceding the day the report is run. - LAST_90_DAYS = 14; - - // The 180 days preceding the day the report is run. - LAST_180_DAYS = 15; - - // The 360 days preceding the day the report is run. - LAST_360_DAYS = 16; - - // The 365 days preceding the day the report is run. - LAST_365_DAYS = 17; - - // The entire previous 3 calendar months preceding the calendar month the - // report is run. - LAST_3_MONTHS = 18; - - // The entire previous 6 calendar months preceding the calendar month the - // report is run. - LAST_6_MONTHS = 19; - - // The entire previous 6 calendar months preceding the calendar month the - // report is run. - LAST_12_MONTHS = 20; - - // From 3 years before the report is run, to the day before the report is - // run, inclusive. - ALL_AVAILABLE = 21; - - // Only valid when used in the comparison_date_range field. The complete - // period preceding the date period provided in date_range. - // - // In the case where date_range is a FixedDateRange of N days, this will - // be a period of N days where the end date is the date preceding the - // start date of the date_range. - // - // In the case where date_range is a RelativeDateRange, this will be a - // period of the same time frame preceding the date_range. In the case - // where the date_range does not capture the full period because a report - // is run in the middle of that period, this will still be the full - // preceding period. For example, if date_range is THIS_WEEK, but the - // report is run on a Wednesday, THIS_WEEK will be Monday - Wednesday, but - // PREVIOUS_PERIOD will be Monday - Sunday. - PREVIOUS_PERIOD = 22; - - // Only valid when used in the comparison_date_range field. The period - // starting 1 year prior to the date period provided in date_range. - // - // In the case where date_range is a FixedDateRange, this will be a date - // range starting 1 year prior to the date_range start date and ending 1 - // year prior to the date_range end date. - // - // In the case where date_range is a RelativeDateRange, this will be a - // period of the same time frame exactly 1 year prior to the date_range. - // In the case where the date_range does not capture the full period - // because a report is run in the middle of that period, this will still - // be the full period 1 year prior. For example, if date range is - // THIS_WEEK, but the report is run on a Wednesday, THIS_WEEK will be - // Monday - Wednesday, but SAME_PERIOD_PREVIOUS_YEAR will be Monday - - // Sunday. - SAME_PERIOD_PREVIOUS_YEAR = 24; - } - - // Either a fixed or relative date range. - oneof date_range_type { - // A fixed date range. - FixedDateRange fixed = 1; - - // A relative date range. - RelativeDateRange relative = 2; - } - } - - // Valid time period columns. - enum TimePeriodColumn { - // Default value. Report will have no time period column. - TIME_PERIOD_COLUMN_UNSPECIFIED = 0; - - // A column for each date in the report. - TIME_PERIOD_COLUMN_DATE = 1; - - // A column for each week in the report. - TIME_PERIOD_COLUMN_WEEK = 2; - - // A column for each month in the report. - TIME_PERIOD_COLUMN_MONTH = 3; - - // A column for each quarter in the report. - TIME_PERIOD_COLUMN_QUARTER = 4; - } - - // Reporting dimensions. - enum Dimension { - // Default value. This value is unused. - DIMENSION_UNSPECIFIED = 0; - - // The domain name of the advertiser. - ADVERTISER_DOMAIN_NAME = 242; - - // The ID used in an external system for advertiser identification - ADVERTISER_EXTERNAL_ID = 228; - - // The ID of an advertiser company assigned to an order - ADVERTISER_ID = 131; - - // Labels applied to the advertiser - // can be used for either competitive exclusion or ad exclusion - ADVERTISER_LABELS = 230; - - // Label ids applied to the advertiser - // can be used for either competitive exclusion or ad exclusion - ADVERTISER_LABEL_IDS = 229; - - // The name of an advertiser company assigned to an order - ADVERTISER_NAME = 132; - - // The name of the contact associated with an advertiser company - ADVERTISER_PRIMARY_CONTACT = 227; - - // Shows an ENUM value describing whether a given piece of publisher - // inventory was above (ATF) or below the fold (BTF) of a page. - AD_LOCATION = 390; - - // Shows a localized string describing whether a given piece of publisher - // inventory was above (ATF) or below the fold (BTF) of a page. - AD_LOCATION_NAME = 391; - - // The code of the ad unit where the ad was requested. - AD_UNIT_CODE = 64; - - // The code of the first level ad unit of the ad unit where the ad was - // requested. - AD_UNIT_CODE_LEVEL_1 = 65; - - // The code of the tenth level ad unit of the ad unit where the ad was - // requested. - AD_UNIT_CODE_LEVEL_10 = 74; - - // The code of the eleventh level ad unit of the ad unit where the ad was - // requested. - AD_UNIT_CODE_LEVEL_11 = 75; - - // The code of the twelfth level ad unit of the ad unit where the ad was - // requested. - AD_UNIT_CODE_LEVEL_12 = 76; - - // The code of the thirteenth level ad unit of the ad unit where the ad was - // requested. - AD_UNIT_CODE_LEVEL_13 = 77; - - // The code of the fourteenth level ad unit of the ad unit where the ad was - // requested. - AD_UNIT_CODE_LEVEL_14 = 78; - - // The code of the fifteenth level ad unit of the ad unit where the ad was - // requested. - AD_UNIT_CODE_LEVEL_15 = 79; - - // The code of the sixteenth level ad unit of the ad unit where the ad was - // requested. - AD_UNIT_CODE_LEVEL_16 = 80; - - // The code of the second level ad unit of the ad unit where the ad was - // requested. - AD_UNIT_CODE_LEVEL_2 = 66; - - // The code of the third level ad unit of the ad unit where the ad was - // requested. - AD_UNIT_CODE_LEVEL_3 = 67; - - // The code of the fourth level ad unit of the ad unit where the ad was - // requested. - AD_UNIT_CODE_LEVEL_4 = 68; - - // The code of the fifth level ad unit of the ad unit where the ad was - // requested. - AD_UNIT_CODE_LEVEL_5 = 69; - - // The code of the sixth level ad unit of the ad unit where the ad was - // requested. - AD_UNIT_CODE_LEVEL_6 = 70; - - // The code of the seventh level ad unit of the ad unit where the ad was - // requested. - AD_UNIT_CODE_LEVEL_7 = 71; - - // The code of the eighth level ad unit of the ad unit where the ad was - // requested. - AD_UNIT_CODE_LEVEL_8 = 72; - - // The code of the ninth level ad unit of the ad unit where the ad was - // requested. - AD_UNIT_CODE_LEVEL_9 = 73; - - // The depth of the ad unit's hierarchy - AD_UNIT_DEPTH = 101; - - // The ID of the ad unit where the ad was requested. - AD_UNIT_ID = 25; - - // The full hierarchy of ad unit IDs where the ad was requested, from - // root to leaf, excluding the root ad unit ID. - AD_UNIT_ID_ALL_LEVEL = 27; - - // The first level ad unit ID of the ad unit where the ad was requested. - AD_UNIT_ID_LEVEL_1 = 30; - - // The tenth level ad unit ID of the ad unit where the ad was requested. - AD_UNIT_ID_LEVEL_10 = 48; - - // The eleventh level ad unit ID of the ad unit where the ad was requested. - AD_UNIT_ID_LEVEL_11 = 50; - - // The twelfth level ad unit ID of the ad unit where the ad was requested. - AD_UNIT_ID_LEVEL_12 = 52; - - // The thirteenth level ad unit ID of the ad unit where the ad was - // requested. - AD_UNIT_ID_LEVEL_13 = 54; - - // The fourteenth level ad unit ID of the ad unit where the ad was - // requested. - AD_UNIT_ID_LEVEL_14 = 56; - - // The fifteenth level ad unit ID of the ad unit where the ad was requested. - AD_UNIT_ID_LEVEL_15 = 58; - - // The sixteenth level ad unit ID of the ad unit where the ad was requested. - AD_UNIT_ID_LEVEL_16 = 60; - - // The second level ad unit ID of the ad unit where the ad was requested. - AD_UNIT_ID_LEVEL_2 = 32; - - // The third level ad unit ID of the ad unit where the ad was requested. - AD_UNIT_ID_LEVEL_3 = 34; - - // The fourth level ad unit ID of the ad unit where the ad was requested. - AD_UNIT_ID_LEVEL_4 = 36; - - // The fifth level ad unit ID of the ad unit where the ad was requested. - AD_UNIT_ID_LEVEL_5 = 38; - - // The sixth level ad unit ID of the ad unit where the ad was requested. - AD_UNIT_ID_LEVEL_6 = 40; - - // The seventh level ad unit ID of the ad unit where the ad was requested. - AD_UNIT_ID_LEVEL_7 = 42; - - // The eighth level ad unit ID of the ad unit where the ad was requested. - AD_UNIT_ID_LEVEL_8 = 44; - - // The ninth level ad unit ID of the ad unit where the ad was requested. - AD_UNIT_ID_LEVEL_9 = 46; - - // The top-level ad unit ID of the ad unit where the ad was requested. - AD_UNIT_ID_TOP_LEVEL = 142; - - // The name of the ad unit where the ad was requested. - AD_UNIT_NAME = 26; - - // The full hierarchy of ad unit names where the ad was requested, from - // root to leaf, excluding the root ad unit name. - AD_UNIT_NAME_ALL_LEVEL = 29; - - // The first level ad unit name of the ad unit where the ad was requested. - AD_UNIT_NAME_LEVEL_1 = 31; - - // The tenth level ad unit name of the ad unit where the ad was requested. - AD_UNIT_NAME_LEVEL_10 = 49; - - // The eleventh level ad unit name of the ad unit where the ad was - // requested. - AD_UNIT_NAME_LEVEL_11 = 51; - - // The twelfth level ad unit name of the ad unit where the ad was requested. - AD_UNIT_NAME_LEVEL_12 = 53; - - // The thirteenth level ad unit name of the ad unit where the ad was - // requested. - AD_UNIT_NAME_LEVEL_13 = 55; - - // The fourteenth level ad unit name of the ad unit where the ad was - // requested. - AD_UNIT_NAME_LEVEL_14 = 57; - - // The fifteenth level ad unit name of the ad unit where the ad was - // requested. - AD_UNIT_NAME_LEVEL_15 = 59; - - // The sixteenth level ad unit name of the ad unit where the ad was - // requested. - AD_UNIT_NAME_LEVEL_16 = 61; - - // The second level ad unit name of the ad unit where the ad was requested. - AD_UNIT_NAME_LEVEL_2 = 33; - - // The third level ad unit name of the ad unit where the ad was requested. - AD_UNIT_NAME_LEVEL_3 = 35; - - // The fourth level ad unit name of the ad unit where the ad was requested. - AD_UNIT_NAME_LEVEL_4 = 37; - - // The fifth level ad unit name of the ad unit where the ad was requested. - AD_UNIT_NAME_LEVEL_5 = 39; - - // The sixth level ad unit name of the ad unit where the ad was requested. - AD_UNIT_NAME_LEVEL_6 = 41; - - // The seventh level ad unit name of the ad unit where the ad was requested. - AD_UNIT_NAME_LEVEL_7 = 43; - - // The eighth level ad unit name of the ad unit where the ad was requested. - AD_UNIT_NAME_LEVEL_8 = 45; - - // The ninth level ad unit name of the ad unit where the ad was requested. - AD_UNIT_NAME_LEVEL_9 = 47; - - // The top-level ad unit name of the ad unit where the ad was requested. - AD_UNIT_NAME_TOP_LEVEL = 143; - - // The reward amount of the ad unit where the ad was requested. - AD_UNIT_REWARD_AMOUNT = 63; - - // The reward type of the ad unit where the ad was requested. - AD_UNIT_REWARD_TYPE = 62; - - // The status of the ad unit - AD_UNIT_STATUS = 206; - - // The name of the status of the ad unit - AD_UNIT_STATUS_NAME = 207; - - // The app version. - APP_VERSION = 392; - - // The ID used in an external system for advertiser identification - BACKFILL_ADVERTISER_EXTERNAL_ID = 349; - - // The ID of an advertiser company assigned to a backfill order - BACKFILL_ADVERTISER_ID = 346; - - // Labels applied to the advertiser - // can be used for either competitive exclusion or ad exclusion - BACKFILL_ADVERTISER_LABELS = 351; - - // Label ids applied to the advertiser - // can be used for either competitive exclusion or ad exclusion - BACKFILL_ADVERTISER_LABEL_IDS = 350; - - // The name of an advertiser company assigned to a backfill order - BACKFILL_ADVERTISER_NAME = 347; - - // The name of the contact associated with an advertiser company - BACKFILL_ADVERTISER_PRIMARY_CONTACT = 348; - - // Enum value of Backfill creative billing type - BACKFILL_CREATIVE_BILLING_TYPE = 378; - - // Localized string value of Backfill creative billing type - BACKFILL_CREATIVE_BILLING_TYPE_NAME = 379; - - // Represents the click-through URL of a Backfill creative - BACKFILL_CREATIVE_CLICK_THROUGH_URL = 376; - - // The ID of a Backfill creative - BACKFILL_CREATIVE_ID = 370; - - // Backfill creative name - BACKFILL_CREATIVE_NAME = 371; - - // Third party vendor name of a Backfill creative - BACKFILL_CREATIVE_THIRD_PARTY_VENDOR = 377; - - // Enum value of Backfill creative type - BACKFILL_CREATIVE_TYPE = 374; - - // Localized string name of Backfill creative type - BACKFILL_CREATIVE_TYPE_NAME = 375; - - // Whether a Backfill line item is archived. - BACKFILL_LINE_ITEM_ARCHIVED = 278; - - // Backfill line item comanion delivery option ENUM value. - BACKFILL_LINE_ITEM_COMPANION_DELIVERY_OPTION = 258; - - // Localized Backfill line item comanion delivery option name. - BACKFILL_LINE_ITEM_COMPANION_DELIVERY_OPTION_NAME = 259; - - // The computed status of the BackfillLineItem. - BACKFILL_LINE_ITEM_COMPUTED_STATUS = 296; - - // The localized name of the computed status of the BackfillLineItem. - BACKFILL_LINE_ITEM_COMPUTED_STATUS_NAME = 297; - - // The contracted units bought for the Backfill line item. - BACKFILL_LINE_ITEM_CONTRACTED_QUANTITY = 280; - - // The cost per unit of the Backfill line item. - BACKFILL_LINE_ITEM_COST_PER_UNIT = 272; - - // Backfill line item cost type ENUM value. - BACKFILL_LINE_ITEM_COST_TYPE = 264; - - // Localized Backfill line item cost type name. - BACKFILL_LINE_ITEM_COST_TYPE_NAME = 265; - - // Represent the end date of a Backfill creative associated with a Backfill - // line item - BACKFILL_LINE_ITEM_CREATIVE_END_DATE = 381; - - // The creative rotation type of the BackfillLineItem. - BACKFILL_LINE_ITEM_CREATIVE_ROTATION_TYPE = 290; - - // The localized name of the creative rotation type of the BackfillLineItem. - BACKFILL_LINE_ITEM_CREATIVE_ROTATION_TYPE_NAME = 291; - - // Represent the start date of a Backfill creative associated with a - // Backfill line item - BACKFILL_LINE_ITEM_CREATIVE_START_DATE = 380; - - // The 3 letter currency code of the Backfill line item - BACKFILL_LINE_ITEM_CURRENCY_CODE = 288; - - // The progress made for the delivery of the Backfill line item. - BACKFILL_LINE_ITEM_DELIVERY_INDICATOR = 274; - - // The delivery rate type of the BackfillLineItem. - BACKFILL_LINE_ITEM_DELIVERY_RATE_TYPE = 292; - - // The localized name of the delivery rate type of the BackfillLineItem. - BACKFILL_LINE_ITEM_DELIVERY_RATE_TYPE_NAME = 293; - - // The discount of the BackfillLineItem in whole units in the - // BackfillLineItem's currency code, or if unspecified the Network's - // currency code. - BACKFILL_LINE_ITEM_DISCOUNT_ABSOLUTE = 294; - - // The discount of the BackfillLineItem in percentage. - BACKFILL_LINE_ITEM_DISCOUNT_PERCENTAGE = 295; - - // The end date of the Backfill line item. - BACKFILL_LINE_ITEM_END_DATE = 267; - - // The end date and time of the Backfill line item. - BACKFILL_LINE_ITEM_END_DATE_TIME = 269; - - // The ENUM value of the environment a Backfill line item is targeting. - BACKFILL_LINE_ITEM_ENVIRONMENT_TYPE = 302; - - // The localized name of the environment a Backfill line item is targeting. - BACKFILL_LINE_ITEM_ENVIRONMENT_TYPE_NAME = 257; - - // The deal ID of the Backfill line item. Set for Programmatic Direct - // campaigns. - BACKFILL_LINE_ITEM_EXTERNAL_DEAL_ID = 285; - - // The external ID of the Backfill line item. - BACKFILL_LINE_ITEM_EXTERNAL_ID = 273; - - // The frequency cap of the Backfill line item (descriptive string). - BACKFILL_LINE_ITEM_FREQUENCY_CAP = 303; - - // Backfill line item ID. - BACKFILL_LINE_ITEM_ID = 298; - - // The application that last modified the Backfill line item. - BACKFILL_LINE_ITEM_LAST_MODIFIED_BY_APP = 289; - - // The total number of clicks delivered of the lifetime of the Backfill line - // item. - BACKFILL_LINE_ITEM_LIFETIME_CLICKS = 283; - - // The total number of impressions delivered over the lifetime of the - // Backfill line item. - BACKFILL_LINE_ITEM_LIFETIME_IMPRESSIONS = 282; - - // The total number of viewable impressions delivered over the lifetime of - // the Backfill line item. - BACKFILL_LINE_ITEM_LIFETIME_VIEWABLE_IMPRESSIONS = 284; - - // Whether or not the Backfill line item is Makegood. Makegood refers to - // free inventory offered to buyers to compensate for mistakes or - // under-delivery in the original campaigns. - BACKFILL_LINE_ITEM_MAKEGOOD = 276; - - // Backfill line item name. - BACKFILL_LINE_ITEM_NAME = 299; - - // The cost of booking for the Backfill line item (non-CPD). - BACKFILL_LINE_ITEM_NON_CPD_BOOKED_REVENUE = 286; - - // Whether a Backfill line item is eligible for opitimization. - BACKFILL_LINE_ITEM_OPTIMIZABLE = 277; - - // Goal type ENUM value of the primary goal of the Backfill line item. - BACKFILL_LINE_ITEM_PRIMARY_GOAL_TYPE = 262; - - // Localized goal type name of the primary goal of the Backfill line item. - BACKFILL_LINE_ITEM_PRIMARY_GOAL_TYPE_NAME = 263; - - // Unit type ENUM value of the primary goal of the Backfill line item. - BACKFILL_LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE = 260; - - // Localized unit type name of the primary goal of the Backfill line item. - BACKFILL_LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_NAME = 261; - - // The priority of this Backfill line item as a value between 1 and 16. - // In general, a lower priority means more serving priority for the - // Backfill line item. - BACKFILL_LINE_ITEM_PRIORITY = 266; - - // ENUM value describing the state of inventory reservation for the - // BackfillLineItem. - BACKFILL_LINE_ITEM_RESERVATION_STATUS = 306; - - // Localized string describing the state of inventory reservation for the - // BackfillLineItem. - BACKFILL_LINE_ITEM_RESERVATION_STATUS_NAME = 307; - - // The start date of the Backfill line item. - BACKFILL_LINE_ITEM_START_DATE = 268; - - // The start date and time of the Backfill line item. - BACKFILL_LINE_ITEM_START_DATE_TIME = 270; - - // Backfill line item type ENUM value. - BACKFILL_LINE_ITEM_TYPE = 300; - - // Localized Backfill line item type name. - BACKFILL_LINE_ITEM_TYPE_NAME = 301; - - // Whether the Backfill line item end time and end date is set to - // effectively never end. - BACKFILL_LINE_ITEM_UNLIMITED_END = 271; - - // The artificial cost per unit used by the Ad server to help rank - // inventory. - BACKFILL_LINE_ITEM_VALUE_COST_PER_UNIT = 275; - - // The web property code used for dynamic allocation Backfill line items. - BACKFILL_LINE_ITEM_WEB_PROPERTY_CODE = 287; - - // The ID of Backfill creative, includes regular creatives, and master and - // companions in case of creative sets - BACKFILL_MASTER_COMPANION_CREATIVE_ID = 372; - - // Name of Backfill creative, includes regular creatives, and master and - // companions in case of creative sets - BACKFILL_MASTER_COMPANION_CREATIVE_NAME = 373; - - // Backfill order agency. - BACKFILL_ORDER_AGENCY = 313; - - // Backfill order agency ID. - BACKFILL_ORDER_AGENCY_ID = 314; - - // Backfill order booked CPC. - BACKFILL_ORDER_BOOKED_CPC = 315; - - // Backfill order booked CPM. - BACKFILL_ORDER_BOOKED_CPM = 316; - - // Backfill order delivery status ENUM value. - BACKFILL_ORDER_DELIVERY_STATUS = 340; - - // Backfill order delivery status localized name. - BACKFILL_ORDER_DELIVERY_STATUS_NAME = 341; - - // Backfill order end date. - BACKFILL_ORDER_END_DATE = 317; - - // Backfill order end date and time. - BACKFILL_ORDER_END_DATE_TIME = 319; - - // Backfill order external ID. - BACKFILL_ORDER_EXTERNAL_ID = 320; - - // Backfill order id. - BACKFILL_ORDER_ID = 338; - - // Backfill order labels. - BACKFILL_ORDER_LABELS = 334; - - // Backfill order labels IDs. - BACKFILL_ORDER_LABEL_IDS = 335; - - // Backfill order lifetime clicks. - BACKFILL_ORDER_LIFETIME_CLICKS = 322; - - // Backfill order lifetime impressions. - BACKFILL_ORDER_LIFETIME_IMPRESSIONS = 323; - - // Backfill order name. - BACKFILL_ORDER_NAME = 339; - - // Backfill order PO number. - BACKFILL_ORDER_PO_NUMBER = 324; - - // Whether the Backfill order is programmatic. - BACKFILL_ORDER_PROGRAMMATIC = 321; - - // Backfill order sales person. - BACKFILL_ORDER_SALESPERSON = 325; - - // Backfill order secondary sales people. - BACKFILL_ORDER_SECONDARY_SALESPEOPLE = 329; - - // Backfill order secondary sales people ID. - BACKFILL_ORDER_SECONDARY_SALESPEOPLE_ID = 328; - - // Backfill order secondary traffickers. - BACKFILL_ORDER_SECONDARY_TRAFFICKERS = 331; - - // Backfill order secondary traffickers ID. - BACKFILL_ORDER_SECONDARY_TRAFFICKERS_ID = 330; - - // Backfill order start date. - BACKFILL_ORDER_START_DATE = 332; - - // Backfill order start date and time. - BACKFILL_ORDER_START_DATE_TIME = 333; - - // Backfill order trafficker. - BACKFILL_ORDER_TRAFFICKER = 326; - - // Backfill order trafficker ID. - BACKFILL_ORDER_TRAFFICKER_ID = 327; - - // Whether the Backfill order end time and end date is set to effectively - // never end. - BACKFILL_ORDER_UNLIMITED_END = 318; - - // The ID of the buyer on a backfill programmatic proposal. - BACKFILL_PROGRAMMATIC_BUYER_ID = 336; - - // The name of the buyer on a backfill programmatic proposal. - BACKFILL_PROGRAMMATIC_BUYER_NAME = 337; - - // The amount of information about the Publisher's page sent to the buyer - // who purchased the impressions. - BRANDING_TYPE = 383; - - // The localized version of branding type, the amount of information about - // the Publisher's page sent to the buyer who purchased the impressions. - BRANDING_TYPE_NAME = 384; - - // Browser category. - BROWSER_CATEGORY = 119; - - // Browser category name. - BROWSER_CATEGORY_NAME = 120; - - // The ID of the browser. - BROWSER_ID = 235; - - // The name of the browser. - BROWSER_NAME = 236; - - // Mobile carrier ID. - CARRIER_ID = 369; - - // Name of the mobile carrier. - CARRIER_NAME = 368; - - // The ID of an advertiser, classified by Google, associated with a creative - // transacted - CLASSIFIED_ADVERTISER_ID = 133; - - // The name of an advertiser, classified by Google, associated with a - // creative transacted - CLASSIFIED_ADVERTISER_NAME = 134; - - // ID of the brand, as classified by Google, - CLASSIFIED_BRAND_ID = 243; - - // Name of the brand, as classified by Google, - CLASSIFIED_BRAND_NAME = 244; - - // ID of the video content served. - CONTENT_ID = 246; - - // Name of the video content served. - CONTENT_NAME = 247; - - // The criteria ID of the country in which the ad served. - COUNTRY_ID = 11; - - // The name of the country in which the ad served. - COUNTRY_NAME = 12; - - // Enum value of creative billing type - CREATIVE_BILLING_TYPE = 366; - - // Localized string value of creative billing type - CREATIVE_BILLING_TYPE_NAME = 367; - - // Represents the click-through URL of a creative - CREATIVE_CLICK_THROUGH_URL = 174; - - // The ID of a creative - CREATIVE_ID = 138; - - // Creative name - CREATIVE_NAME = 139; - - // Creative technology ENUM - CREATIVE_TECHNOLOGY = 148; - - // Creative technology locallized name - CREATIVE_TECHNOLOGY_NAME = 149; - - // Third party vendor name of a creative - CREATIVE_THIRD_PARTY_VENDOR = 361; - - // Enum value of creative type - CREATIVE_TYPE = 344; - - // Localized string name of creative type - CREATIVE_TYPE_NAME = 345; - - // Breaks down reporting data by date. - DATE = 3; - - // Breaks down reporting data by day of the week. Monday is 1 and 7 is - // Sunday. - DAY_OF_WEEK = 4; - - // Demand channel. - DEMAND_CHANNEL = 9; - - // Demand channel name. - DEMAND_CHANNEL_NAME = 10; - - // Demand subchannel. - DEMAND_SUBCHANNEL = 22; - - // Demand subchannel name. - DEMAND_SUBCHANNEL_NAME = 23; - - // The device on which an ad was served. - DEVICE = 226; - - // The device category to which an ad is being targeted. - DEVICE_CATEGORY = 15; - - // The name of the category of device (smartphone, feature phone, tablet, or - // desktop) to which an ad is being targeted. - DEVICE_CATEGORY_NAME = 16; - - // The localized name of the device on which an ad was served. - DEVICE_NAME = 225; - - // ID of the yield partner as classified by Google - EXCHANGE_THIRD_PARTY_COMPANY_ID = 185; - - // Name of the yield partner as classified by Google - EXCHANGE_THIRD_PARTY_COMPANY_NAME = 186; - - // The ID of the first look pricing rule. - FIRST_LOOK_PRICING_RULE_ID = 248; - - // The name of the first look pricing rule. - FIRST_LOOK_PRICING_RULE_NAME = 249; - - // Breaks down reporting data by hour in one day. - HOUR = 100; - - // The interaction type of an ad. - INTERACTION_TYPE = 223; - - // The localized name of the interaction type of an ad. - INTERACTION_TYPE_NAME = 224; - - // Inventory format. - // The format of the ad unit (e.g, banner) where the ad was requested. - INVENTORY_FORMAT = 17; - - // Inventory format name. - // The format of the ad unit (e.g, banner) where the ad was requested. - INVENTORY_FORMAT_NAME = 18; - - // Inventory type. - // The kind of web page or device where the ad was requested. - INVENTORY_TYPE = 19; - - // Inventory type name. - // The kind of web page or device where the ad was requested. - INVENTORY_TYPE_NAME = 20; - - // Whether traffic is Adx Direct. - IS_ADX_DIRECT = 382; - - // Whether traffic is First Look. - IS_FIRST_LOOK_DEAL = 401; - - // The Custom Targeting Value ID - KEY_VALUES_ID = 214; - - // The Custom Targeting Value formatted like = - KEY_VALUES_NAME = 215; - - // Whether a Line item is archived. - LINE_ITEM_ARCHIVED = 188; - - // Line item comanion delivery option ENUM value. - LINE_ITEM_COMPANION_DELIVERY_OPTION = 204; - - // Localized line item comanion delivery option name. - LINE_ITEM_COMPANION_DELIVERY_OPTION_NAME = 205; - - // The computed status of the LineItem. - LINE_ITEM_COMPUTED_STATUS = 250; - - // The localized name of the computed status of the LineItem. - LINE_ITEM_COMPUTED_STATUS_NAME = 251; - - // The contracted units bought for the Line item. - LINE_ITEM_CONTRACTED_QUANTITY = 92; - - // The cost per unit of the Line item. - LINE_ITEM_COST_PER_UNIT = 85; - - // Line item cost type ENUM value. - LINE_ITEM_COST_TYPE = 212; - - // Localized line item cost type name. - LINE_ITEM_COST_TYPE_NAME = 213; - - // Represent the end date of a creative associated with line item - LINE_ITEM_CREATIVE_END_DATE = 176; - - // The creative rotation type of the LineItem. - LINE_ITEM_CREATIVE_ROTATION_TYPE = 189; - - // The localized name of the creative rotation type of the LineItem. - LINE_ITEM_CREATIVE_ROTATION_TYPE_NAME = 190; - - // Represent the start date of a creative associated with line item - LINE_ITEM_CREATIVE_START_DATE = 175; - - // The 3 letter currency code of the Line Item - LINE_ITEM_CURRENCY_CODE = 180; - - // The progress made for the delivery of the Line item. - LINE_ITEM_DELIVERY_INDICATOR = 87; - - // The delivery rate type of the LineItem. - LINE_ITEM_DELIVERY_RATE_TYPE = 191; - - // The localized name of the delivery rate type of the LineItem. - LINE_ITEM_DELIVERY_RATE_TYPE_NAME = 192; - - // The discount of the LineItem in whole units in the LineItem's currency - // code, or if unspecified the Network's currency code. - LINE_ITEM_DISCOUNT_ABSOLUTE = 195; - - // The discount of the LineItem in percentage. - LINE_ITEM_DISCOUNT_PERCENTAGE = 196; - - // The end date of the Line item. - LINE_ITEM_END_DATE = 81; - - // The end date and time of the Line item. - LINE_ITEM_END_DATE_TIME = 83; - - // The ENUM value of the environment a LineItem is targeting. - LINE_ITEM_ENVIRONMENT_TYPE = 201; - - // The localized name of the environment a LineItem is targeting. - LINE_ITEM_ENVIRONMENT_TYPE_NAME = 202; - - // The deal ID of the Line item. Set for Programmatic Direct campaigns. - LINE_ITEM_EXTERNAL_DEAL_ID = 97; - - // The external ID of the Line item. - LINE_ITEM_EXTERNAL_ID = 86; - - // The frequency cap of the Line item (descriptive string). - LINE_ITEM_FREQUENCY_CAP = 256; - - // Line item ID. - LINE_ITEM_ID = 1; - - // The application that last modified the Line Item. - LINE_ITEM_LAST_MODIFIED_BY_APP = 181; - - // The total number of clicks delivered of the lifetime of the Line item. - LINE_ITEM_LIFETIME_CLICKS = 95; - - // The total number of impressions delivered over the lifetime of the - // Line item. - LINE_ITEM_LIFETIME_IMPRESSIONS = 94; - - // The total number of viewable impressions delivered over the lifetime of - // the Line item. - LINE_ITEM_LIFETIME_VIEWABLE_IMPRESSIONS = 96; - - // Whether or not the Line item is Makegood. Makegood refers to free - // inventory offered to buyers to compensate for mistakes or under-delivery - // in the original campaigns. - LINE_ITEM_MAKEGOOD = 89; - - // Line item Name. - LINE_ITEM_NAME = 2; - - // The cost of booking for the Line item (non-CPD). - LINE_ITEM_NON_CPD_BOOKED_REVENUE = 98; - - // Whether a Line item is eligible for opitimization. - LINE_ITEM_OPTIMIZABLE = 90; - - // Goal type ENUM value of the primary goal of the line item. - LINE_ITEM_PRIMARY_GOAL_TYPE = 210; - - // Localized goal type name of the primary goal of the line item. - LINE_ITEM_PRIMARY_GOAL_TYPE_NAME = 211; - - // The total number of impressions or clicks that are reserved for a - // line item. For line items of type BULK or PRICE_PRIORITY, this represents - // the number of remaining impressions reserved. If the line item has an - // impression cap goal, this represents the number of impressions or - // conversions that the line item will stop serving at if reached. - LINE_ITEM_PRIMARY_GOAL_UNITS_ABSOLUTE = 93; - - // The percentage of impressions or clicks that are reserved for a - // line item. For line items of type SPONSORSHIP, this represents the - // percentage of available impressions reserved. For line items of type - // NETWORK or HOUSE, this represents the percentage of remaining impressions - // reserved. - LINE_ITEM_PRIMARY_GOAL_UNITS_PERCENTAGE = 396; - - // Unit type ENUM value of the primary goal of the line item. - LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE = 208; - - // Localized unit type name of the primary goal of the line item. - LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_NAME = 209; - - // The priority of this Line item as a value between 1 and 16. - // In general, a lower priority means more serving priority for the - // Line item. - LINE_ITEM_PRIORITY = 24; - - // ENUM value describing the state of inventory reservation for the - // LineItem. - LINE_ITEM_RESERVATION_STATUS = 304; - - // Localized string describing the state of inventory reservation for the - // LineItem. - LINE_ITEM_RESERVATION_STATUS_NAME = 305; - - // The start date of the Line item. - LINE_ITEM_START_DATE = 82; - - // The start date and time of the Line item. - LINE_ITEM_START_DATE_TIME = 84; - - // Line item type ENUM value. - LINE_ITEM_TYPE = 193; - - // Localized line item type name. - LINE_ITEM_TYPE_NAME = 194; - - // Whether the Line item end time and end date is set to effectively never - // end. - LINE_ITEM_UNLIMITED_END = 187; - - // The artificial cost per unit used by the Ad server to help rank - // inventory. - LINE_ITEM_VALUE_COST_PER_UNIT = 88; - - // The web property code used for dynamic allocation Line Items. - LINE_ITEM_WEB_PROPERTY_CODE = 179; - - // The ID of creative, includes regular creatives, and master and companions - // in case of creative sets - MASTER_COMPANION_CREATIVE_ID = 140; - - // Name of creative, includes regular creatives, and master and companions - // in case of creative sets - MASTER_COMPANION_CREATIVE_NAME = 141; - - // Whether the mobile app is free. - MOBILE_APP_FREE = 128; - - // URL of app icon for the mobile app. - MOBILE_APP_ICON_URL = 129; - - // The ID of the Mobile App. - MOBILE_APP_ID = 123; - - // The name of the mobile app. - MOBILE_APP_NAME = 127; - - // Ownership status of the mobile app. - MOBILE_APP_OWNERSHIP_STATUS = 311; - - // Ownership status of the mobile app. - MOBILE_APP_OWNERSHIP_STATUS_NAME = 312; - - // The App Store of the mobile app. - MOBILE_APP_STORE = 125; - - // The localized name of the mobile app store. - MOBILE_APP_STORE_NAME = 245; - - // Mobile inventory type. - // Identifies whether a mobile ad came from a regular web page, an AMP web - // page, or a mobile app. - // Values match the Inventory type dimension available in the Overview Home - // dashboard. Note: Video takes precedence over any other value, for - // example, if there is an in-stream video impression on a desktop device, - // it will be attributed to in-stream video and not desktop web. - MOBILE_INVENTORY_TYPE = 99; - - // Mobile inventory type name. - // Identifies whether a mobile ad came from a regular web page, an AMP web - // page, or a mobile app. - MOBILE_INVENTORY_TYPE_NAME = 21; - - // SDK version of the mobile device. - MOBILE_SDK_VERSION_NAME = 130; - - // Breaks down reporting data by month and year. - MONTH_YEAR = 6; - - // Native ad format ID. - NATIVE_AD_FORMAT_ID = 255; - - // Native ad format name. - NATIVE_AD_FORMAT_NAME = 254; - - // Native style ID. - NATIVE_STYLE_ID = 253; - - // Native style name. - NATIVE_STYLE_NAME = 252; - - // Operating system category. - OPERATING_SYSTEM_CATEGORY = 117; - - // Operating system category name. - OPERATING_SYSTEM_CATEGORY_NAME = 118; - - // ID of the operating system version. - OPERATING_SYSTEM_VERSION_ID = 238; - - // Details of the operating system, including version. - OPERATING_SYSTEM_VERSION_NAME = 237; - - // Order agency. - ORDER_AGENCY = 150; - - // Order agency ID. - ORDER_AGENCY_ID = 151; - - // Order booked CPC. - ORDER_BOOKED_CPC = 152; - - // Order booked CPM. - ORDER_BOOKED_CPM = 153; - - // Order delivery status ENUM value. - ORDER_DELIVERY_STATUS = 231; - - // Order delivery status localized name. - ORDER_DELIVERY_STATUS_NAME = 239; - - // Order end date. - ORDER_END_DATE = 154; - - // Order end date and time. - ORDER_END_DATE_TIME = 155; - - // Order external ID. - ORDER_EXTERNAL_ID = 156; - - // Order id. - ORDER_ID = 7; - - // Order labels. - ORDER_LABELS = 170; - - // Order labels IDs. - ORDER_LABEL_IDS = 171; - - // Order lifetime clicks. - ORDER_LIFETIME_CLICKS = 158; - - // Order lifetime impressions. - ORDER_LIFETIME_IMPRESSIONS = 159; - - // Order name. - ORDER_NAME = 8; - - // Order PO number. - ORDER_PO_NUMBER = 160; - - // Whether the Order is programmatic. - ORDER_PROGRAMMATIC = 157; - - // Order sales person. - ORDER_SALESPERSON = 161; - - // Order secondary sales people. - ORDER_SECONDARY_SALESPEOPLE = 164; - - // Order secondary sales people ID. - ORDER_SECONDARY_SALESPEOPLE_ID = 165; - - // Order secondary traffickers. - ORDER_SECONDARY_TRAFFICKERS = 166; - - // Order secondary traffickers ID. - ORDER_SECONDARY_TRAFFICKERS_ID = 167; - - // Order start date. - ORDER_START_DATE = 168; - - // Order start date and time. - ORDER_START_DATE_TIME = 169; - - // Order trafficker. - ORDER_TRAFFICKER = 162; - - // Order trafficker ID. - ORDER_TRAFFICKER_ID = 163; - - // Whether the Order end time and end date is set to effectively never - // end. - ORDER_UNLIMITED_END = 203; - - // Placement ID - PLACEMENT_ID = 113; - - // The full list of placement IDs associated with the ad unit. - PLACEMENT_ID_ALL = 144; - - // Placement name - PLACEMENT_NAME = 114; - - // The full list of placement names associated with the ad unit. - PLACEMENT_NAME_ALL = 145; - - // Placement status ENUM value - PLACEMENT_STATUS = 362; - - // The full list of placement status ENUM values associated with the ad - // unit. - PLACEMENT_STATUS_ALL = 363; - - // Localized placement status name. - PLACEMENT_STATUS_NAME = 364; - - // The full list of localized placement status names associated with the ad - // unit. - PLACEMENT_STATUS_NAME_ALL = 365; - - // The ID of the buyer on a programmatic proposal. - PROGRAMMATIC_BUYER_ID = 240; - - // The name of the buyer on a programmatic proposal. - PROGRAMMATIC_BUYER_NAME = 241; - - // Programmatic channel. - // The type of transaction that occurred in Ad Exchange. - PROGRAMMATIC_CHANNEL = 13; - - // Programmatic channel name. - // The type of transaction that occurred in Ad Exchange. - PROGRAMMATIC_CHANNEL_NAME = 14; - - // The size of a rendered creative, It can differ with the creative's size - // if a creative is shown in an ad slot of a different size. - RENDERED_CREATIVE_SIZE = 343; - - // Inventory Requested Ad Sizes dimension - REQUESTED_AD_SIZES = 352; - - // Request type ENUM - REQUEST_TYPE = 146; - - // Request type locallized name - REQUEST_TYPE_NAME = 147; - - // Information about domain or subdomains. - SITE = 387; - - // The ID of the browser, device or other environment into which a line item - // or creative was served. - TARGETING_ID = 232; - - // Information about the browser, device and other environments into which - // a line item or creative was served. - TARGETING_NAME = 233; - - // The way in which advertisers targeted their ads. - TARGETING_TYPE = 385; - - // The localized name of the way in which advertisers targeted their ads. - TARGETING_TYPE_NAME = 386; - - // Inventory Traffic source dimension - TRAFFIC_SOURCE = 388; - - // Inventory Traffic source dimension name - TRAFFIC_SOURCE_NAME = 389; - - // Unified pricing rule ID dimension - UNIFIED_PRICING_RULE_ID = 393; - - // Unified pricing rule name dimension - UNIFIED_PRICING_RULE_NAME = 394; - - // The video placement enum as defined by ADCOM 1.0-202303. - VIDEO_PLCMT = 172; - - // The localized name of the video placement as defined by ADCOM 1.0-202303. - VIDEO_PLCMT_NAME = 173; - - // Breaks down reporting data by week of the year. - WEEK = 5; - - // Name of the company within a yield group - YIELD_GROUP_BUYER_NAME = 184; - - // ID of the group of ad networks or exchanges used for Mediation and Open - // Bidding - YIELD_GROUP_ID = 182; - - // Name of the group of ad networks or exchanges used for Mediation and Open - // Bidding - YIELD_GROUP_NAME = 183; - - // Custom field option ID for Line Item with custom field ID equal to the ID - // in index 0 of `ReportDefinition.line_item_custom_field_ids`. - LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID = 10000; - - // Custom field option ID for Line Item with custom field ID equal to the ID - // in index 1 of `ReportDefinition.line_item_custom_field_ids`. - LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID = 10001; - - // Custom field option ID for Line Item with custom field ID equal to the ID - // in index 2 of `ReportDefinition.line_item_custom_field_ids`. - LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID = 10002; - - // Custom field option ID for Line Item with custom field ID equal to the ID - // in index 3 of `ReportDefinition.line_item_custom_field_ids`. - LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID = 10003; - - // Custom field option ID for Line Item with custom field ID equal to the ID - // in index 4 of `ReportDefinition.line_item_custom_field_ids`. - LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID = 10004; - - // Custom field option ID for Line Item with custom field ID equal to the ID - // in index 5 of `ReportDefinition.line_item_custom_field_ids`. - LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID = 10005; - - // Custom field option ID for Line Item with custom field ID equal to the ID - // in index 6 of `ReportDefinition.line_item_custom_field_ids`. - LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID = 10006; - - // Custom field option ID for Line Item with custom field ID equal to the ID - // in index 7 of `ReportDefinition.line_item_custom_field_ids`. - LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID = 10007; - - // Custom field option ID for Line Item with custom field ID equal to the ID - // in index 8 of `ReportDefinition.line_item_custom_field_ids`. - LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID = 10008; - - // Custom field option ID for Line Item with custom field ID equal to the ID - // in index 9 of `ReportDefinition.line_item_custom_field_ids`. - LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID = 10009; - - // Custom field option ID for Line Item with custom field ID equal to the ID - // in index 10 of `ReportDefinition.line_item_custom_field_ids`. - LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID = 10010; - - // Custom field option ID for Line Item with custom field ID equal to the ID - // in index 11 of `ReportDefinition.line_item_custom_field_ids`. - LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID = 10011; - - // Custom field option ID for Line Item with custom field ID equal to the ID - // in index 12 of `ReportDefinition.line_item_custom_field_ids`. - LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID = 10012; - - // Custom field option ID for Line Item with custom field ID equal to the ID - // in index 13 of `ReportDefinition.line_item_custom_field_ids`. - LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID = 10013; - - // Custom field option ID for Line Item with custom field ID equal to the ID - // in index 14 of `ReportDefinition.line_item_custom_field_ids`. - LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID = 10014; - - // Custom field value for Line Item with custom field ID equal to the ID - // in index 0 of `ReportDefinition.line_item_custom_field_ids`. - LINE_ITEM_CUSTOM_FIELD_0_VALUE = 11000; - - // Custom field value for Line Item with custom field ID equal to the ID - // in index 1 of `ReportDefinition.line_item_custom_field_ids`. - LINE_ITEM_CUSTOM_FIELD_1_VALUE = 11001; - - // Custom field value for Line Item with custom field ID equal to the ID - // in index 2 of `ReportDefinition.line_item_custom_field_ids`. - LINE_ITEM_CUSTOM_FIELD_2_VALUE = 11002; - - // Custom field value for Line Item with custom field ID equal to the ID - // in index 3 of `ReportDefinition.line_item_custom_field_ids`. - LINE_ITEM_CUSTOM_FIELD_3_VALUE = 11003; - - // Custom field value for Line Item with custom field ID equal to the ID - // in index 4 of `ReportDefinition.line_item_custom_field_ids`. - LINE_ITEM_CUSTOM_FIELD_4_VALUE = 11004; - - // Custom field value for Line Item with custom field ID equal to the ID - // in index 5 of `ReportDefinition.line_item_custom_field_ids`. - LINE_ITEM_CUSTOM_FIELD_5_VALUE = 11005; - - // Custom field value for Line Item with custom field ID equal to the ID - // in index 6 of `ReportDefinition.line_item_custom_field_ids`. - LINE_ITEM_CUSTOM_FIELD_6_VALUE = 11006; - - // Custom field value for Line Item with custom field ID equal to the ID - // in index 7 of `ReportDefinition.line_item_custom_field_ids`. - LINE_ITEM_CUSTOM_FIELD_7_VALUE = 11007; - - // Custom field value for Line Item with custom field ID equal to the ID - // in index 8 of `ReportDefinition.line_item_custom_field_ids`. - LINE_ITEM_CUSTOM_FIELD_8_VALUE = 11008; - - // Custom field value for Line Item with custom field ID equal to the ID - // in index 9 of `ReportDefinition.line_item_custom_field_ids`. - LINE_ITEM_CUSTOM_FIELD_9_VALUE = 11009; - - // Custom field value for Line Item with custom field ID equal to the ID - // in index 10 of `ReportDefinition.line_item_custom_field_ids`. - LINE_ITEM_CUSTOM_FIELD_10_VALUE = 11010; - - // Custom field value for Line Item with custom field ID equal to the ID - // in index 11 of `ReportDefinition.line_item_custom_field_ids`. - LINE_ITEM_CUSTOM_FIELD_11_VALUE = 11011; - - // Custom field value for Line Item with custom field ID equal to the ID - // in index 12 of `ReportDefinition.line_item_custom_field_ids`. - LINE_ITEM_CUSTOM_FIELD_12_VALUE = 11012; - - // Custom field value for Line Item with custom field ID equal to the ID - // in index 13 of `ReportDefinition.line_item_custom_field_ids`. - LINE_ITEM_CUSTOM_FIELD_13_VALUE = 11013; - - // Custom field value for Line Item with custom field ID equal to the ID - // in index 14 of `ReportDefinition.line_item_custom_field_ids`. - LINE_ITEM_CUSTOM_FIELD_14_VALUE = 11014; - - // Custom field option ID for Order with custom field ID equal to the ID - // in index 0 of `ReportDefinition.order_custom_field_ids`. - ORDER_CUSTOM_FIELD_0_OPTION_ID = 12000; - - // Custom field option ID for Order with custom field ID equal to the ID - // in index 1 of `ReportDefinition.order_custom_field_ids`. - ORDER_CUSTOM_FIELD_1_OPTION_ID = 12001; - - // Custom field option ID for Order with custom field ID equal to the ID - // in index 2 of `ReportDefinition.order_custom_field_ids`. - ORDER_CUSTOM_FIELD_2_OPTION_ID = 12002; - - // Custom field option ID for Order with custom field ID equal to the ID - // in index 3 of `ReportDefinition.order_custom_field_ids`. - ORDER_CUSTOM_FIELD_3_OPTION_ID = 12003; - - // Custom field option ID for Order with custom field ID equal to the ID - // in index 4 of `ReportDefinition.order_custom_field_ids`. - ORDER_CUSTOM_FIELD_4_OPTION_ID = 12004; - - // Custom field option ID for Order with custom field ID equal to the ID - // in index 5 of `ReportDefinition.order_custom_field_ids`. - ORDER_CUSTOM_FIELD_5_OPTION_ID = 12005; - - // Custom field option ID for Order with custom field ID equal to the ID - // in index 6 of `ReportDefinition.order_custom_field_ids`. - ORDER_CUSTOM_FIELD_6_OPTION_ID = 12006; - - // Custom field option ID for Order with custom field ID equal to the ID - // in index 7 of `ReportDefinition.order_custom_field_ids`. - ORDER_CUSTOM_FIELD_7_OPTION_ID = 12007; - - // Custom field option ID for Order with custom field ID equal to the ID - // in index 8 of `ReportDefinition.order_custom_field_ids`. - ORDER_CUSTOM_FIELD_8_OPTION_ID = 12008; - - // Custom field option ID for Order with custom field ID equal to the ID - // in index 9 of `ReportDefinition.order_custom_field_ids`. - ORDER_CUSTOM_FIELD_9_OPTION_ID = 12009; - - // Custom field option ID for Order with custom field ID equal to the ID - // in index 10 of `ReportDefinition.order_custom_field_ids`. - ORDER_CUSTOM_FIELD_10_OPTION_ID = 12010; - - // Custom field option ID for Order with custom field ID equal to the ID - // in index 11 of `ReportDefinition.order_custom_field_ids`. - ORDER_CUSTOM_FIELD_11_OPTION_ID = 12011; - - // Custom field option ID for Order with custom field ID equal to the ID - // in index 12 of `ReportDefinition.order_custom_field_ids`. - ORDER_CUSTOM_FIELD_12_OPTION_ID = 12012; - - // Custom field option ID for Order with custom field ID equal to the ID - // in index 13 of `ReportDefinition.order_custom_field_ids`. - ORDER_CUSTOM_FIELD_13_OPTION_ID = 12013; - - // Custom field option ID for Order with custom field ID equal to the ID - // in index 14 of `ReportDefinition.order_custom_field_ids`. - ORDER_CUSTOM_FIELD_14_OPTION_ID = 12014; - - // Custom field value for Order with custom field ID equal to the ID - // in index 0 of `ReportDefinition.order_custom_field_ids`. - ORDER_CUSTOM_FIELD_0_VALUE = 13000; - - // Custom field value for Order with custom field ID equal to the ID - // in index 1 of `ReportDefinition.order_custom_field_ids`. - ORDER_CUSTOM_FIELD_1_VALUE = 13001; - - // Custom field value for Order with custom field ID equal to the ID - // in index 2 of `ReportDefinition.order_custom_field_ids`. - ORDER_CUSTOM_FIELD_2_VALUE = 13002; - - // Custom field value for Order with custom field ID equal to the ID - // in index 3 of `ReportDefinition.order_custom_field_ids`. - ORDER_CUSTOM_FIELD_3_VALUE = 13003; - - // Custom field value for Order with custom field ID equal to the ID - // in index 4 of `ReportDefinition.order_custom_field_ids`. - ORDER_CUSTOM_FIELD_4_VALUE = 13004; - - // Custom field value for Order with custom field ID equal to the ID - // in index 5 of `ReportDefinition.order_custom_field_ids`. - ORDER_CUSTOM_FIELD_5_VALUE = 13005; - - // Custom field value for Order with custom field ID equal to the ID - // in index 6 of `ReportDefinition.order_custom_field_ids`. - ORDER_CUSTOM_FIELD_6_VALUE = 13006; - - // Custom field value for Order with custom field ID equal to the ID - // in index 7 of `ReportDefinition.order_custom_field_ids`. - ORDER_CUSTOM_FIELD_7_VALUE = 13007; - - // Custom field value for Order with custom field ID equal to the ID - // in index 8 of `ReportDefinition.order_custom_field_ids`. - ORDER_CUSTOM_FIELD_8_VALUE = 13008; - - // Custom field value for Order with custom field ID equal to the ID - // in index 9 of `ReportDefinition.order_custom_field_ids`. - ORDER_CUSTOM_FIELD_9_VALUE = 13009; - - // Custom field value for Order with custom field ID equal to the ID - // in index 10 of `ReportDefinition.order_custom_field_ids`. - ORDER_CUSTOM_FIELD_10_VALUE = 13010; - - // Custom field value for Order with custom field ID equal to the ID - // in index 11 of `ReportDefinition.order_custom_field_ids`. - ORDER_CUSTOM_FIELD_11_VALUE = 13011; - - // Custom field value for Order with custom field ID equal to the ID - // in index 12 of `ReportDefinition.order_custom_field_ids`. - ORDER_CUSTOM_FIELD_12_VALUE = 13012; - - // Custom field value for Order with custom field ID equal to the ID - // in index 13 of `ReportDefinition.order_custom_field_ids`. - ORDER_CUSTOM_FIELD_13_VALUE = 13013; - - // Custom field value for Order with custom field ID equal to the ID - // in index 14 of `ReportDefinition.order_custom_field_ids`. - ORDER_CUSTOM_FIELD_14_VALUE = 13014; - - // Custom field option ID for Creative with custom field ID equal to the ID - // in index 0 of `ReportDefinition.creative_custom_field_ids`. - CREATIVE_CUSTOM_FIELD_0_OPTION_ID = 14000; - - // Custom field option ID for Creative with custom field ID equal to the ID - // in index 1 of `ReportDefinition.creative_custom_field_ids`. - CREATIVE_CUSTOM_FIELD_1_OPTION_ID = 14001; - - // Custom field option ID for Creative with custom field ID equal to the ID - // in index 2 of `ReportDefinition.creative_custom_field_ids`. - CREATIVE_CUSTOM_FIELD_2_OPTION_ID = 14002; - - // Custom field option ID for Creative with custom field ID equal to the ID - // in index 3 of `ReportDefinition.creative_custom_field_ids`. - CREATIVE_CUSTOM_FIELD_3_OPTION_ID = 14003; - - // Custom field option ID for Creative with custom field ID equal to the ID - // in index 4 of `ReportDefinition.creative_custom_field_ids`. - CREATIVE_CUSTOM_FIELD_4_OPTION_ID = 14004; - - // Custom field option ID for Creative with custom field ID equal to the ID - // in index 5 of `ReportDefinition.creative_custom_field_ids`. - CREATIVE_CUSTOM_FIELD_5_OPTION_ID = 14005; - - // Custom field option ID for Creative with custom field ID equal to the ID - // in index 6 of `ReportDefinition.creative_custom_field_ids`. - CREATIVE_CUSTOM_FIELD_6_OPTION_ID = 14006; - - // Custom field option ID for Creative with custom field ID equal to the ID - // in index 7 of `ReportDefinition.creative_custom_field_ids`. - CREATIVE_CUSTOM_FIELD_7_OPTION_ID = 14007; - - // Custom field option ID for Creative with custom field ID equal to the ID - // in index 8 of `ReportDefinition.creative_custom_field_ids`. - CREATIVE_CUSTOM_FIELD_8_OPTION_ID = 14008; - - // Custom field option ID for Creative with custom field ID equal to the ID - // in index 9 of `ReportDefinition.creative_custom_field_ids`. - CREATIVE_CUSTOM_FIELD_9_OPTION_ID = 14009; - - // Custom field option ID for Creative with custom field ID equal to the ID - // in index 10 of `ReportDefinition.creative_custom_field_ids`. - CREATIVE_CUSTOM_FIELD_10_OPTION_ID = 14010; - - // Custom field option ID for Creative with custom field ID equal to the ID - // in index 11 of `ReportDefinition.creative_custom_field_ids`. - CREATIVE_CUSTOM_FIELD_11_OPTION_ID = 14011; - - // Custom field option ID for Creative with custom field ID equal to the ID - // in index 12 of `ReportDefinition.creative_custom_field_ids`. - CREATIVE_CUSTOM_FIELD_12_OPTION_ID = 14012; - - // Custom field option ID for Creative with custom field ID equal to the ID - // in index 13 of `ReportDefinition.creative_custom_field_ids`. - CREATIVE_CUSTOM_FIELD_13_OPTION_ID = 14013; - - // Custom field option ID for Creative with custom field ID equal to the ID - // in index 14 of `ReportDefinition.creative_custom_field_ids`. - CREATIVE_CUSTOM_FIELD_14_OPTION_ID = 14014; - - // Custom field value for Creative with custom field ID equal to the ID - // in index 0 of `ReportDefinition.creative_custom_field_ids`. - CREATIVE_CUSTOM_FIELD_0_VALUE = 15000; - - // Custom field value for Creative with custom field ID equal to the ID - // in index 1 of `ReportDefinition.creative_custom_field_ids`. - CREATIVE_CUSTOM_FIELD_1_VALUE = 15001; - - // Custom field value for Creative with custom field ID equal to the ID - // in index 2 of `ReportDefinition.creative_custom_field_ids`. - CREATIVE_CUSTOM_FIELD_2_VALUE = 15002; - - // Custom field value for Creative with custom field ID equal to the ID - // in index 3 of `ReportDefinition.creative_custom_field_ids`. - CREATIVE_CUSTOM_FIELD_3_VALUE = 15003; - - // Custom field value for Creative with custom field ID equal to the ID - // in index 4 of `ReportDefinition.creative_custom_field_ids`. - CREATIVE_CUSTOM_FIELD_4_VALUE = 15004; - - // Custom field value for Creative with custom field ID equal to the ID - // in index 5 of `ReportDefinition.creative_custom_field_ids`. - CREATIVE_CUSTOM_FIELD_5_VALUE = 15005; - - // Custom field value for Creative with custom field ID equal to the ID - // in index 6 of `ReportDefinition.creative_custom_field_ids`. - CREATIVE_CUSTOM_FIELD_6_VALUE = 15006; - - // Custom field value for Creative with custom field ID equal to the ID - // in index 7 of `ReportDefinition.creative_custom_field_ids`. - CREATIVE_CUSTOM_FIELD_7_VALUE = 15007; - - // Custom field value for Creative with custom field ID equal to the ID - // in index 8 of `ReportDefinition.creative_custom_field_ids`. - CREATIVE_CUSTOM_FIELD_8_VALUE = 15008; - - // Custom field value for Creative with custom field ID equal to the ID - // in index 9 of `ReportDefinition.creative_custom_field_ids`. - CREATIVE_CUSTOM_FIELD_9_VALUE = 15009; - - // Custom field value for Creative with custom field ID equal to the ID - // in index 10 of `ReportDefinition.creative_custom_field_ids`. - CREATIVE_CUSTOM_FIELD_10_VALUE = 15010; - - // Custom field value for Creative with custom field ID equal to the ID - // in index 11 of `ReportDefinition.creative_custom_field_ids`. - CREATIVE_CUSTOM_FIELD_11_VALUE = 15011; - - // Custom field value for Creative with custom field ID equal to the ID - // in index 12 of `ReportDefinition.creative_custom_field_ids`. - CREATIVE_CUSTOM_FIELD_12_VALUE = 15012; - - // Custom field value for Creative with custom field ID equal to the ID - // in index 13 of `ReportDefinition.creative_custom_field_ids`. - CREATIVE_CUSTOM_FIELD_13_VALUE = 15013; - - // Custom field value for Creative with custom field ID equal to the ID - // in index 14 of `ReportDefinition.creative_custom_field_ids`. - CREATIVE_CUSTOM_FIELD_14_VALUE = 15014; - - // Custom field option ID for Backfill line item with custom field ID equal - // to the ID in index 0 of `ReportDefinition.line_item_custom_field_ids`. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID = 16000; - - // Custom field option ID for Backfill line item with custom field ID equal - // to the ID in index 1 of `ReportDefinition.line_item_custom_field_ids`. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID = 16001; - - // Custom field option ID for Backfill line item with custom field ID equal - // to the ID in index 2 of `ReportDefinition.line_item_custom_field_ids`. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID = 16002; - - // Custom field option ID for Backfill line item with custom field ID equal - // to the ID in index 3 of `ReportDefinition.line_item_custom_field_ids`. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID = 16003; - - // Custom field option ID for Backfill line item with custom field ID equal - // to the ID in index 4 of `ReportDefinition.line_item_custom_field_ids`. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID = 16004; - - // Custom field option ID for Backfill line item with custom field ID equal - // to the ID in index 5 of `ReportDefinition.line_item_custom_field_ids`. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID = 16005; - - // Custom field option ID for Backfill line item with custom field ID equal - // to the ID in index 6 of `ReportDefinition.line_item_custom_field_ids`. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID = 16006; - - // Custom field option ID for Backfill line item with custom field ID equal - // to the ID in index 7 of `ReportDefinition.line_item_custom_field_ids`. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID = 16007; - - // Custom field option ID for Backfill line item with custom field ID equal - // to the ID in index 8 of `ReportDefinition.line_item_custom_field_ids`. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID = 16008; - - // Custom field option ID for Backfill line item with custom field ID equal - // to the ID in index 9 of `ReportDefinition.line_item_custom_field_ids`. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID = 16009; - - // Custom field option ID for Backfill line item with custom field ID equal - // to the ID in index 10 of `ReportDefinition.line_item_custom_field_ids`. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID = 16010; - - // Custom field option ID for Backfill line item with custom field ID equal - // to the ID in index 11 of `ReportDefinition.line_item_custom_field_ids`. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID = 16011; - - // Custom field option ID for Backfill line item with custom field ID equal - // to the ID in index 12 of `ReportDefinition.line_item_custom_field_ids`. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID = 16012; - - // Custom field option ID for Backfill line item with custom field ID equal - // to the ID in index 13 of `ReportDefinition.line_item_custom_field_ids`. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID = 16013; - - // Custom field option ID for Backfill line item with custom field ID equal - // to the ID in index 14 of `ReportDefinition.line_item_custom_field_ids`. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID = 16014; - - // Custom field value for Backfill line item with custom field ID equal to - // the ID in index 0 of `ReportDefinition.line_item_custom_field_ids`. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_VALUE = 17000; - - // Custom field value for Backfill line item with custom field ID equal to - // the ID in index 1 of `ReportDefinition.line_item_custom_field_ids`. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_VALUE = 17001; - - // Custom field value for Backfill line item with custom field ID equal to - // the ID in index 2 of `ReportDefinition.line_item_custom_field_ids`. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_VALUE = 17002; - - // Custom field value for Backfill line item with custom field ID equal to - // the ID in index 3 of `ReportDefinition.line_item_custom_field_ids`. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_VALUE = 17003; - - // Custom field value for Backfill line item with custom field ID equal to - // the ID in index 4 of `ReportDefinition.line_item_custom_field_ids`. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_VALUE = 17004; - - // Custom field value for Backfill line item with custom field ID equal to - // the ID in index 5 of `ReportDefinition.line_item_custom_field_ids`. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_VALUE = 17005; - - // Custom field value for Backfill line item with custom field ID equal to - // the ID in index 6 of `ReportDefinition.line_item_custom_field_ids`. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_VALUE = 17006; - - // Custom field value for Backfill line item with custom field ID equal to - // the ID in index 7 of `ReportDefinition.line_item_custom_field_ids`. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_VALUE = 17007; - - // Custom field value for Backfill line item with custom field ID equal to - // the ID in index 8 of `ReportDefinition.line_item_custom_field_ids`. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_VALUE = 17008; - - // Custom field value for Backfill line item with custom field ID equal to - // the ID in index 9 of `ReportDefinition.line_item_custom_field_ids`. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_VALUE = 17009; - - // Custom field value for Backfill line item with custom field ID equal to - // the ID in index 10 of `ReportDefinition.line_item_custom_field_ids`. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_VALUE = 17010; - - // Custom field value for Backfill line item with custom field ID equal to - // the ID in index 11 of `ReportDefinition.line_item_custom_field_ids`. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_VALUE = 17011; - - // Custom field value for Backfill line item with custom field ID equal to - // the ID in index 12 of `ReportDefinition.line_item_custom_field_ids`. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_VALUE = 17012; - - // Custom field value for Backfill line item with custom field ID equal to - // the ID in index 13 of `ReportDefinition.line_item_custom_field_ids`. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_VALUE = 17013; - - // Custom field value for Backfill line item with custom field ID equal to - // the ID in index 14 of `ReportDefinition.line_item_custom_field_ids`. - BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_VALUE = 17014; - - // Custom field option ID for Backfill order with custom field ID equal to - // the ID in index 0 of `ReportDefinition.order_custom_field_ids`. - BACKFILL_ORDER_CUSTOM_FIELD_0_OPTION_ID = 18000; - - // Custom field option ID for Backfill order with custom field ID equal to - // the ID in index 1 of `ReportDefinition.order_custom_field_ids`. - BACKFILL_ORDER_CUSTOM_FIELD_1_OPTION_ID = 18001; - - // Custom field option ID for Backfill order with custom field ID equal to - // the ID in index 2 of `ReportDefinition.order_custom_field_ids`. - BACKFILL_ORDER_CUSTOM_FIELD_2_OPTION_ID = 18002; - - // Custom field option ID for Backfill order with custom field ID equal to - // the ID in index 3 of `ReportDefinition.order_custom_field_ids`. - BACKFILL_ORDER_CUSTOM_FIELD_3_OPTION_ID = 18003; - - // Custom field option ID for Backfill order with custom field ID equal to - // the ID in index 4 of `ReportDefinition.order_custom_field_ids`. - BACKFILL_ORDER_CUSTOM_FIELD_4_OPTION_ID = 18004; - - // Custom field option ID for Backfill order with custom field ID equal to - // the ID in index 5 of `ReportDefinition.order_custom_field_ids`. - BACKFILL_ORDER_CUSTOM_FIELD_5_OPTION_ID = 18005; - - // Custom field option ID for Backfill order with custom field ID equal to - // the ID in index 6 of `ReportDefinition.order_custom_field_ids`. - BACKFILL_ORDER_CUSTOM_FIELD_6_OPTION_ID = 18006; - - // Custom field option ID for Backfill order with custom field ID equal to - // the ID in index 7 of `ReportDefinition.order_custom_field_ids`. - BACKFILL_ORDER_CUSTOM_FIELD_7_OPTION_ID = 18007; - - // Custom field option ID for Backfill order with custom field ID equal to - // the ID in index 8 of `ReportDefinition.order_custom_field_ids`. - BACKFILL_ORDER_CUSTOM_FIELD_8_OPTION_ID = 18008; - - // Custom field option ID for Backfill order with custom field ID equal to - // the ID in index 9 of `ReportDefinition.order_custom_field_ids`. - BACKFILL_ORDER_CUSTOM_FIELD_9_OPTION_ID = 18009; - - // Custom field option ID for Backfill order with custom field ID equal to - // the ID in index 10 of `ReportDefinition.order_custom_field_ids`. - BACKFILL_ORDER_CUSTOM_FIELD_10_OPTION_ID = 18010; - - // Custom field option ID for Backfill order with custom field ID equal to - // the ID in index 11 of `ReportDefinition.order_custom_field_ids`. - BACKFILL_ORDER_CUSTOM_FIELD_11_OPTION_ID = 18011; - - // Custom field option ID for Backfill order with custom field ID equal to - // the ID in index 12 of `ReportDefinition.order_custom_field_ids`. - BACKFILL_ORDER_CUSTOM_FIELD_12_OPTION_ID = 18012; - - // Custom field option ID for Backfill order with custom field ID equal to - // the ID in index 13 of `ReportDefinition.order_custom_field_ids`. - BACKFILL_ORDER_CUSTOM_FIELD_13_OPTION_ID = 18013; - - // Custom field option ID for Backfill order with custom field ID equal to - // the ID in index 14 of `ReportDefinition.order_custom_field_ids`. - BACKFILL_ORDER_CUSTOM_FIELD_14_OPTION_ID = 18014; - - // Custom field value for Backfill order with custom field ID equal to the - // ID in index 0 of `ReportDefinition.order_custom_field_ids`. - BACKFILL_ORDER_CUSTOM_FIELD_0_VALUE = 19000; - - // Custom field value for Backfill order with custom field ID equal to the - // ID in index 1 of `ReportDefinition.order_custom_field_ids`. - BACKFILL_ORDER_CUSTOM_FIELD_1_VALUE = 19001; - - // Custom field value for Backfill order with custom field ID equal to the - // ID in index 2 of `ReportDefinition.order_custom_field_ids`. - BACKFILL_ORDER_CUSTOM_FIELD_2_VALUE = 19002; - - // Custom field value for Backfill order with custom field ID equal to the - // ID in index 3 of `ReportDefinition.order_custom_field_ids`. - BACKFILL_ORDER_CUSTOM_FIELD_3_VALUE = 19003; - - // Custom field value for Backfill order with custom field ID equal to the - // ID in index 4 of `ReportDefinition.order_custom_field_ids`. - BACKFILL_ORDER_CUSTOM_FIELD_4_VALUE = 19004; - - // Custom field value for Backfill order with custom field ID equal to the - // ID in index 5 of `ReportDefinition.order_custom_field_ids`. - BACKFILL_ORDER_CUSTOM_FIELD_5_VALUE = 19005; - - // Custom field value for Backfill order with custom field ID equal to the - // ID in index 6 of `ReportDefinition.order_custom_field_ids`. - BACKFILL_ORDER_CUSTOM_FIELD_6_VALUE = 19006; - - // Custom field value for Backfill order with custom field ID equal to the - // ID in index 7 of `ReportDefinition.order_custom_field_ids`. - BACKFILL_ORDER_CUSTOM_FIELD_7_VALUE = 19007; - - // Custom field value for Backfill order with custom field ID equal to the - // ID in index 8 of `ReportDefinition.order_custom_field_ids`. - BACKFILL_ORDER_CUSTOM_FIELD_8_VALUE = 19008; - - // Custom field value for Backfill order with custom field ID equal to the - // ID in index 9 of `ReportDefinition.order_custom_field_ids`. - BACKFILL_ORDER_CUSTOM_FIELD_9_VALUE = 19009; - - // Custom field value for Backfill order with custom field ID equal to the - // ID in index 10 of `ReportDefinition.order_custom_field_ids`. - BACKFILL_ORDER_CUSTOM_FIELD_10_VALUE = 19010; - - // Custom field value for Backfill order with custom field ID equal to the - // ID in index 11 of `ReportDefinition.order_custom_field_ids`. - BACKFILL_ORDER_CUSTOM_FIELD_11_VALUE = 19011; - - // Custom field value for Backfill order with custom field ID equal to the - // ID in index 12 of `ReportDefinition.order_custom_field_ids`. - BACKFILL_ORDER_CUSTOM_FIELD_12_VALUE = 19012; - - // Custom field value for Backfill order with custom field ID equal to the - // ID in index 13 of `ReportDefinition.order_custom_field_ids`. - BACKFILL_ORDER_CUSTOM_FIELD_13_VALUE = 19013; - - // Custom field value for Backfill order with custom field ID equal to the - // ID in index 14 of `ReportDefinition.order_custom_field_ids`. - BACKFILL_ORDER_CUSTOM_FIELD_14_VALUE = 19014; - - // Custom field option ID for Backfill creative with custom field ID equal - // to the ID in index 0 of `ReportDefinition.creative_custom_field_ids`. - BACKFILL_CREATIVE_CUSTOM_FIELD_0_OPTION_ID = 20000; - - // Custom field option ID for Backfill creative with custom field ID equal - // to the ID in index 1 of `ReportDefinition.creative_custom_field_ids`. - BACKFILL_CREATIVE_CUSTOM_FIELD_1_OPTION_ID = 20001; - - // Custom field option ID for Backfill creative with custom field ID equal - // to the ID in index 2 of `ReportDefinition.creative_custom_field_ids`. - BACKFILL_CREATIVE_CUSTOM_FIELD_2_OPTION_ID = 20002; - - // Custom field option ID for Backfill creative with custom field ID equal - // to the ID in index 3 of `ReportDefinition.creative_custom_field_ids`. - BACKFILL_CREATIVE_CUSTOM_FIELD_3_OPTION_ID = 20003; - - // Custom field option ID for Backfill creative with custom field ID equal - // to the ID in index 4 of `ReportDefinition.creative_custom_field_ids`. - BACKFILL_CREATIVE_CUSTOM_FIELD_4_OPTION_ID = 20004; - - // Custom field option ID for Backfill creative with custom field ID equal - // to the ID in index 5 of `ReportDefinition.creative_custom_field_ids`. - BACKFILL_CREATIVE_CUSTOM_FIELD_5_OPTION_ID = 20005; - - // Custom field option ID for Backfill creative with custom field ID equal - // to the ID in index 6 of `ReportDefinition.creative_custom_field_ids`. - BACKFILL_CREATIVE_CUSTOM_FIELD_6_OPTION_ID = 20006; - - // Custom field option ID for Backfill creative with custom field ID equal - // to the ID in index 7 of `ReportDefinition.creative_custom_field_ids`. - BACKFILL_CREATIVE_CUSTOM_FIELD_7_OPTION_ID = 20007; - - // Custom field option ID for Backfill creative with custom field ID equal - // to the ID in index 8 of `ReportDefinition.creative_custom_field_ids`. - BACKFILL_CREATIVE_CUSTOM_FIELD_8_OPTION_ID = 20008; - - // Custom field option ID for Backfill creative with custom field ID equal - // to the ID in index 9 of `ReportDefinition.creative_custom_field_ids`. - BACKFILL_CREATIVE_CUSTOM_FIELD_9_OPTION_ID = 20009; - - // Custom field option ID for Backfill creative with custom field ID equal - // to the ID in index 10 of `ReportDefinition.creative_custom_field_ids`. - BACKFILL_CREATIVE_CUSTOM_FIELD_10_OPTION_ID = 20010; - - // Custom field option ID for Backfill creative with custom field ID equal - // to the ID in index 11 of `ReportDefinition.creative_custom_field_ids`. - BACKFILL_CREATIVE_CUSTOM_FIELD_11_OPTION_ID = 20011; - - // Custom field option ID for Backfill creative with custom field ID equal - // to the ID in index 12 of `ReportDefinition.creative_custom_field_ids`. - BACKFILL_CREATIVE_CUSTOM_FIELD_12_OPTION_ID = 20012; - - // Custom field option ID for Backfill creative with custom field ID equal - // to the ID in index 13 of `ReportDefinition.creative_custom_field_ids`. - BACKFILL_CREATIVE_CUSTOM_FIELD_13_OPTION_ID = 20013; - - // Custom field option ID for Backfill creative with custom field ID equal - // to the ID in index 14 of `ReportDefinition.creative_custom_field_ids`. - BACKFILL_CREATIVE_CUSTOM_FIELD_14_OPTION_ID = 20014; - - // Custom field value for Backfill creative with custom field ID equal to - // the ID in index 0 of `ReportDefinition.creative_custom_field_ids`. - BACKFILL_CREATIVE_CUSTOM_FIELD_0_VALUE = 21000; - - // Custom field value for Backfill creative with custom field ID equal to - // the ID in index 1 of `ReportDefinition.creative_custom_field_ids`. - BACKFILL_CREATIVE_CUSTOM_FIELD_1_VALUE = 21001; - - // Custom field value for Backfill creative with custom field ID equal to - // the ID in index 2 of `ReportDefinition.creative_custom_field_ids`. - BACKFILL_CREATIVE_CUSTOM_FIELD_2_VALUE = 21002; - - // Custom field value for Backfill creative with custom field ID equal to - // the ID in index 3 of `ReportDefinition.creative_custom_field_ids`. - BACKFILL_CREATIVE_CUSTOM_FIELD_3_VALUE = 21003; - - // Custom field value for Backfill creative with custom field ID equal to - // the ID in index 4 of `ReportDefinition.creative_custom_field_ids`. - BACKFILL_CREATIVE_CUSTOM_FIELD_4_VALUE = 21004; - - // Custom field value for Backfill creative with custom field ID equal to - // the ID in index 5 of `ReportDefinition.creative_custom_field_ids`. - BACKFILL_CREATIVE_CUSTOM_FIELD_5_VALUE = 21005; - - // Custom field value for Backfill creative with custom field ID equal to - // the ID in index 6 of `ReportDefinition.creative_custom_field_ids`. - BACKFILL_CREATIVE_CUSTOM_FIELD_6_VALUE = 21006; - - // Custom field value for Backfill creative with custom field ID equal to - // the ID in index 7 of `ReportDefinition.creative_custom_field_ids`. - BACKFILL_CREATIVE_CUSTOM_FIELD_7_VALUE = 21007; - - // Custom field value for Backfill creative with custom field ID equal to - // the ID in index 8 of `ReportDefinition.creative_custom_field_ids`. - BACKFILL_CREATIVE_CUSTOM_FIELD_8_VALUE = 21008; - - // Custom field value for Backfill creative with custom field ID equal to - // the ID in index 9 of `ReportDefinition.creative_custom_field_ids`. - BACKFILL_CREATIVE_CUSTOM_FIELD_9_VALUE = 21009; - - // Custom field value for Backfill creative with custom field ID equal to - // the ID in index 10 of `ReportDefinition.creative_custom_field_ids`. - BACKFILL_CREATIVE_CUSTOM_FIELD_10_VALUE = 21010; - - // Custom field value for Backfill creative with custom field ID equal to - // the ID in index 11 of `ReportDefinition.creative_custom_field_ids`. - BACKFILL_CREATIVE_CUSTOM_FIELD_11_VALUE = 21011; - - // Custom field value for Backfill creative with custom field ID equal to - // the ID in index 12 of `ReportDefinition.creative_custom_field_ids`. - BACKFILL_CREATIVE_CUSTOM_FIELD_12_VALUE = 21012; - - // Custom field value for Backfill creative with custom field ID equal to - // the ID in index 13 of `ReportDefinition.creative_custom_field_ids`. - BACKFILL_CREATIVE_CUSTOM_FIELD_13_VALUE = 21013; - - // Custom field value for Backfill creative with custom field ID equal to - // the ID in index 14 of `ReportDefinition.creative_custom_field_ids`. - BACKFILL_CREATIVE_CUSTOM_FIELD_14_VALUE = 21014; - - // Custom Dimension Value ID for Custom Dimension with key equal to the key - // in index 0 of `ReportDefinition.custom_dimension_key_ids`. - CUSTOM_DIMENSION_0_VALUE_ID = 100000; - - // Custom Dimension Value ID for Custom Dimension with key equal to the key - // in index 1 of `ReportDefinition.custom_dimension_key_ids`. - CUSTOM_DIMENSION_1_VALUE_ID = 100001; - - // Custom Dimension Value ID for Custom Dimension with key equal to the key - // in index 2 of `ReportDefinition.custom_dimension_key_ids`. - CUSTOM_DIMENSION_2_VALUE_ID = 100002; - - // Custom Dimension Value ID for Custom Dimension with key equal to the key - // in index 3 of `ReportDefinition.custom_dimension_key_ids`. - CUSTOM_DIMENSION_3_VALUE_ID = 100003; - - // Custom Dimension Value ID for Custom Dimension with key equal to the key - // in index 4 of `ReportDefinition.custom_dimension_key_ids`. - CUSTOM_DIMENSION_4_VALUE_ID = 100004; - - // Custom Dimension Value ID for Custom Dimension with key equal to the key - // in index 5 of `ReportDefinition.custom_dimension_key_ids`. - CUSTOM_DIMENSION_5_VALUE_ID = 100005; - - // Custom Dimension Value ID for Custom Dimension with key equal to the key - // in index 6 of `ReportDefinition.custom_dimension_key_ids`. - CUSTOM_DIMENSION_6_VALUE_ID = 100006; - - // Custom Dimension Value ID for Custom Dimension with key equal to the key - // in index 9 of `ReportDefinition.custom_dimension_key_ids`. - CUSTOM_DIMENSION_7_VALUE_ID = 100007; - - // Custom Dimension Value ID for Custom Dimension with key equal to the key - // in index 8 of `ReportDefinition.custom_dimension_key_ids`. - CUSTOM_DIMENSION_8_VALUE_ID = 100008; - - // Custom Dimension Value ID for Custom Dimension with key equal to the key - // in index 9 of `ReportDefinition.custom_dimension_key_ids`. - CUSTOM_DIMENSION_9_VALUE_ID = 100009; - - // Custom Dimension Value name for Custom Dimension with key equal to the - // id in index 0 of `ReportDefinition.custom_dimension_key_ids`. - CUSTOM_DIMENSION_0_VALUE = 101000; - - // Custom Dimension Value name for Custom Dimension with key equal to the - // id in index 1 of `ReportDefinition.custom_dimension_key_ids`. - CUSTOM_DIMENSION_1_VALUE = 101001; - - // Custom Dimension Value name for Custom Dimension with key equal to the - // id in index 2 of `ReportDefinition.custom_dimension_key_ids`. - CUSTOM_DIMENSION_2_VALUE = 101002; - - // Custom Dimension Value name for Custom Dimension with key equal to the - // id in index 3 of `ReportDefinition.custom_dimension_key_ids`. - CUSTOM_DIMENSION_3_VALUE = 101003; - - // Custom Dimension Value name for Custom Dimension with key equal to the - // id in index 4 of `ReportDefinition.custom_dimension_key_ids`. - CUSTOM_DIMENSION_4_VALUE = 101004; - - // Custom Dimension Value name for Custom Dimension with key equal to the - // id in index 5 of `ReportDefinition.custom_dimension_key_ids`. - CUSTOM_DIMENSION_5_VALUE = 101005; - - // Custom Dimension Value name for Custom Dimension with key equal to the - // id in index 6 of `ReportDefinition.custom_dimension_key_ids`. - CUSTOM_DIMENSION_6_VALUE = 101006; - - // Custom Dimension Value name for Custom Dimension with key equal to the - // id in index 7 of `ReportDefinition.custom_dimension_key_ids`. - CUSTOM_DIMENSION_7_VALUE = 101007; - - // Custom Dimension Value name for Custom Dimension with key equal to the - // id in index 8 of `ReportDefinition.custom_dimension_key_ids`. - CUSTOM_DIMENSION_8_VALUE = 101008; - - // Custom Dimension Value name for Custom Dimension with key equal to the - // id in index 9 of `ReportDefinition.custom_dimension_key_ids`. - CUSTOM_DIMENSION_9_VALUE = 101009; - } - - // Reporting metrics. - enum Metric { - // Default value. This value is unused. - METRIC_UNSPECIFIED = 0; - - // Active View total average time in seconds that specific impressions are - // reported as being viewable. - ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 61; - - // Total number of impressions that were eligible to measure viewability. - ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 58; - - // The total number of impressions that were sampled and measured by active - // view. - ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 57; - - // The percentage of total impressions that were measurable by active view - // (out of all the total impressions sampled for active view). - ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 60; - - // The total number of impressions viewed on the user's screen. - ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 56; - - // The percentage of total impressions viewed on the user's screen (out of - // the total impressions measurable by active view). - ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 59; - - // Active View AdSense average time in seconds that specific impressions are - // reported as being viewable. - ADSENSE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 73; - - // Total number of impressions delivered by AdSense that were eligible to - // measure viewability. - ADSENSE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 70; - - // The number of impressions delivered by AdSense that were sampled, and - // measurable by active view. - ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 69; - - // The percentage of impressions delivered by AdSense that were measurable - // by active view (out of all AdSense impressions sampled for active view). - ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 72; - - // The number of impressions delivered by AdSense viewed on the user's - // screen. - ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 68; - - // The percentage of impressions delivered by AdSense viewed on the user's - // screen (out of AdSense impressions measurable by active view). - ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 71; - - // The average effective cost-per-thousand-impressions earned from the ads - // delivered by AdSense through line item dynamic allocation. - ADSENSE_AVERAGE_ECPM = 26; - - // Number of clicks delivered by AdSense demand channel. - ADSENSE_CLICKS = 23; - - // The ratio of impressions served by AdSense that resulted in users - // clicking on an ad. The clickthrough rate (CTR) is updated nightly. The - // AdSense CTR is calculated as: (AdSense clicks / AdSense impressions). - ADSENSE_CTR = 24; - - // Total impressions delivered by AdSense. - ADSENSE_IMPRESSIONS = 22; - - // Ratio of clicks delivered by AdSense through line item dynamic allocation - // in relation to the total clicks delivered. - ADSENSE_PERCENT_CLICKS = 28; - - // Ratio of impressions delivered by AdSense through line item dynamic - // allocation in relation to the total impressions delivered. - ADSENSE_PERCENT_IMPRESSIONS = 27; - - // Ratio of revenue generated by AdSense through line item dynamic - // allocation in relation to the total revenue. - ADSENSE_PERCENT_REVENUE = 29; - - // Ratio of revenue generated by AdSense through line item dynamic - // allocation in relation to the total revenue (excluding CPD). - ADSENSE_PERCENT_REVENUE_WITHOUT_CPD = 30; - - // The total number of times that an AdSense ad is delivered. - ADSENSE_RESPONSES_SERVED = 41; - - // Revenue generated from AdSense through line item dynamic allocation, - // calculated in the network's currency and time zone. - ADSENSE_REVENUE = 25; - - // Active View AdExchange average time in seconds that specific impressions - // are reported as being viewable. - AD_EXCHANGE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 79; - - // Total number of impressions delivered by Ad Exchange that were eligible - // to measure viewability. - AD_EXCHANGE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 76; - - // The number of impressions delivered by Ad Exchange that were sampled, and - // measurable by active view. - AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 75; - - // The percentage of impressions delivered by Ad Exchange that were - // measurable by active view (out of all Ad Exchange impressions sampled for - // active view). - AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 78; - - // The number of impressions delivered by Ad Exchange viewed on the user's - // screen. - AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 74; - - // The percentage of impressions delivered by Ad Exchange viewed on the - // user's screen (out of Ad Exchange impressions measurable by active view). - AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 77; - - // The average effective cost-per-thousand-impressions earned from the ads - // delivered by Ad Exchange through line item dynamic allocation. - AD_EXCHANGE_AVERAGE_ECPM = 18; - - // Number of clicks delivered by the Ad Exchange. - AD_EXCHANGE_CLICKS = 15; - - // The ratio of impressions served by the Ad Exchange that resulted in users - // clicking on an ad. The clickthrough rate (CTR) is updated nightly. Ad - // Exchange CTR is calculated as: (Ad Exchange clicks / Ad Exchange - // impressions). - AD_EXCHANGE_CTR = 16; - - // Total impressions delivered by the Ad Exchange. - AD_EXCHANGE_IMPRESSIONS = 14; - - // Ratio of clicks delivered by Ad Exchange through line item dynamic - // allocation in relation to the total clicks delivered. - AD_EXCHANGE_PERCENT_CLICKS = 20; - - // Ratio of impressions delivered by Ad Exchange through line item dynamic - // allocation in relation to the total impressions delivered. - AD_EXCHANGE_PERCENT_IMPRESSIONS = 19; - - // Ratio of revenue generated by Ad Exchange through line item dynamic - // allocation in relation to the total revenue. - AD_EXCHANGE_PERCENT_REVENUE = 21; - - // Ratio of revenue generated by Ad Exchange through line item dynamic - // allocation in relation to the total revenue (excluding CPD). - AD_EXCHANGE_PERCENT_REVENUE_WITHOUT_CPD = 31; - - // The total number of times that an Ad Exchange ad is delivered. - AD_EXCHANGE_RESPONSES_SERVED = 42; - - // Revenue generated from the Ad Exchange through line item dynamic - // allocation, calculated in your network's currency and time zone. - AD_EXCHANGE_REVENUE = 17; - - // The total number of times that an ad request is sent to the ad server - // including dynamic allocation. - AD_REQUESTS = 38; - - // Active View ad server average time in seconds that specific impressions - // are reported as being viewable. - AD_SERVER_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME = 67; - - // Total number of impressions delivered by the ad server that were eligible - // to measure viewability. - AD_SERVER_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS = 64; - - // The number of impressions delivered by the ad server that were sampled, - // and measurable by active view. - AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS = 63; - - // The percentage of impressions delivered by the ad server that were - // measurable by active view (out of all the ad server impressions sampled - // for active view). - AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE = 66; - - // The number of impressions delivered by the ad server viewed on the user's - // screen. - AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS = 62; - - // The percentage of impressions delivered by the ad server viewed on the - // user's screen (out of the ad server impressions measurable by active - // view). - AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE = 65; - - // Average effective cost-per-thousand-impressions earned from the ads - // delivered by the Google Ad Manager server. - AD_SERVER_AVERAGE_ECPM = 34; - - // Average effective cost-per-thousand-impressions earned from the ads - // delivered by the Google Ad Manager server, excluding CPD value. - AD_SERVER_AVERAGE_ECPM_WITHOUT_CPD = 10; - - // Total clicks served by the Google Ad Manager server. It usually takes - // about 30 minutes for new clicks to be recorded and added to the total - // displayed in reporting. - AD_SERVER_CLICKS = 7; - - // CPD revenue earned, calculated in your network's currency, for - // the ads delivered by the Google Ad Manager server. Sum of all booked - // revenue. - AD_SERVER_CPD_REVENUE = 32; - - // Ratio of impressions served by the Google Ad Manager server that resulted - // in users clicking on an ad. The clickthrough rate (CTR) is updated - // nightly. The ad server CTR is calculated as: (Ad server clicks / Ad - // server impressions). - AD_SERVER_CTR = 8; - - // Total impressions delivered by the Ad Server. - AD_SERVER_IMPRESSIONS = 6; - - // Ratio of clicks delivered by the Google Ad Manager server in relation to - // the total clicks delivered. - AD_SERVER_PERCENT_CLICKS = 12; - - // Ratio of impressions delivered by the Google Ad Manager server in - // relation to the total impressions delivered. - AD_SERVER_PERCENT_IMPRESSIONS = 11; - - // Ratio of revenue generated by the Google Ad Manager server in relation - // to the total revenue. - AD_SERVER_PERCENT_REVENUE = 35; - - // Ratio of revenue generated by the Google Ad Manager server (excluding - // CPD) in relation to the total revenue. - AD_SERVER_PERCENT_REVENUE_WITHOUT_CPD = 13; - - // The total number of times that an ad is served by the ad server. - AD_SERVER_RESPONSES_SERVED = 40; - - // All CPM, CPC, and CPD revenue earned, calculated in your network's - // currency, for the ads delivered by the Google Ad Manager server. - // Sum of all booked revenue. - AD_SERVER_REVENUE = 33; - - // Revenue (excluding CPD) earned, calculated in your network's currency, - // for the ads delivered by the Google Ad Manager server. Sum of all booked - // revenue. - AD_SERVER_REVENUE_WITHOUT_CPD = 9; - - // Number of winning bids received from Open Bidding buyers, even when the - // winning bid is placed at the end of a mediation for mobile apps chain. - AUCTIONS_WON = 80; - - // eCPM averaged across the Google Ad Manager server, AdSense, - // and Ad Exchange. - AVERAGE_ECPM = 37; - - // eCPM averaged across the Google Ad Manager server (excluding CPD), - // AdSense, and Ad Exchange. - AVERAGE_ECPM_WITHOUT_CPD = 5; - - // Number of bids received from Open Bidding buyers, regardless of whether - // the returned bid competes in an auction. - BIDS = 81; - - // Number of bids received from Open Bidding buyers that competed in - // the auction. - BIDS_IN_AUCTION = 82; - - // Number of times a yield partner is asked to return bid to fill - // a yield group request. - CALLOUTS = 83; - - // The number of times a user clicked on an ad. - CLICKS = 2; - - // The total number of times that the code for an ad is served by the ad - // server including dynamic allocation. - CODE_SERVED_COUNT = 44; - - // For standard ads, your ad clickthrough rate (CTR) is the number of ad - // clicks divided by the number of individual ad impressions expressed as a - // fraction. Ad CTR = Clicks / Ad impressions. - CTR = 3; - - // The number of coviewed impressions sold by Google in partner sales. - GOOGLE_SOLD_AUCTION_COVIEWED_IMPRESSIONS = 129; - - // The number of auction impressions sold by Google in partner sales. - GOOGLE_SOLD_AUCTION_IMPRESSIONS = 128; - - // The number of coviewed impressions sold by Google in partner sales. - GOOGLE_SOLD_COVIEWED_IMPRESSIONS = 131; - - // The number of impressions sold by Google in partner sales. - GOOGLE_SOLD_IMPRESSIONS = 130; - - // The number of coviewed impressions sold by Google in partner sales. - GOOGLE_SOLD_RESERVATION_COVIEWED_IMPRESSIONS = 127; - - // The number of reservation impressions sold by Google in partner sales. - GOOGLE_SOLD_RESERVATION_IMPRESSIONS = 126; - - // Total impressions from the Google Ad Manager server, AdSense, - // Ad Exchange, and yield group partners. - IMPRESSIONS = 1; - - // The number of filled pod requests (filled by partner or Google) in - // partner sales. - PARTNER_SALES_FILLED_POD_REQUESTS = 135; - - // The percent of filled requests to total ad requests in - // partner sales. - PARTNER_SALES_FILL_RATE = 136; - - // The percent of partner filled requests to total ad requests - // in partner sales. - PARTNER_SALES_PARTNER_MATCH_RATE = 137; - - // The number of queries eligible for partner sales. - PARTNER_SALES_QUERIES = 132; - - // The number of partner unfilled impressions in partner sales. - // If a pod request is not filled by partner but filled by Google, this - // metric will still count 1. - PARTNER_SALES_UNFILLED_IMPRESSIONS = 133; - - // The number of partner unmatched queries in partner sales. - // If an ad request is not filled by partner but filled by Google, this - // metric will still count 1. - PARTNER_SALES_UNMATCHED_QUERIES = 134; - - // The number of code served sold by partner in partner sales. - PARTNER_SOLD_CODE_SERVED = 125; - - // The number of coviewed impressions sold by partner in partner sales. - PARTNER_SOLD_COVIEWED_IMPRESSIONS = 124; - - // The number of impressions sold by partner in partner sales. - PARTNER_SOLD_IMPRESSIONS = 123; - - // The total number of ad requests eligible for programmatic inventory, - // including Programmatic Guaranteed, Preferred Deals, backfill, and open - // auction. - PROGRAMMATIC_ELIGIBLE_AD_REQUESTS = 177; - - // The number of programmatic responses served divided by the number of - // programmatic eligible ad requests. Includes Ad Exchange, Open Bidding, - // and Preferred Deals. - PROGRAMMATIC_MATCH_RATE = 178; - - // Total number of ad responses served from programmatic demand sources. - // Includes Ad Exchange, Open Bidding, and Preferred Deals. - // - // Differs from AD_EXCHANGE_RESPONSES_SERVED, which doesn't include Open - // Bidding ad requests. - PROGRAMMATIC_RESPONSES_SERVED = 176; - - // The total number of times that an ad is served by the ad server including - // dynamic allocation. - RESPONSES_SERVED = 39; - - // Total amount of CPM, CPC, and CPD revenue based on the number of units - // served by the Google Ad Manager server, AdSense, Ad Exchange, and - // third-party Mediation networks. - REVENUE = 36; - - // Total amount of revenue (excluding CPD) based on the number of units - // served by the Google Ad Manager server, AdSense, Ad Exchange, and - // third-party Mediation networks. - REVENUE_WITHOUT_CPD = 4; - - // Number of times a yield group buyer successfully returned a bid in - // response to a yield group callout. - SUCCESSFUL_RESPONSES = 84; - - // The total number of missed impressions due to the ad servers' inability - // to find ads to serve including dynamic allocation. - UNFILLED_IMPRESSIONS = 45; - - // The total number of times that an ad is not returned by the ad server. - UNMATCHED_AD_REQUESTS = 43; - - // Number of times an Offerwall message was shown to users. - USER_MESSAGES_OFFERWALL_MESSAGES_SHOWN = 121; - - // The number of messages where the user gained an entitlement. - USER_MESSAGES_OFFERWALL_SUCCESSFUL_ENGAGEMENTS = 122; - - // The number of user interactions with a video, on average, such as pause, - // full screen, mute, etc. - VIDEO_INTERACTION_AVERAGE_INTERACTION_RATE = 92; - - // The number of times a user collapses a video, either to its original size - // or to a different size. - VIDEO_INTERACTION_COLLAPSES = 93; - - // The number of times a user expands a video. - VIDEO_INTERACTION_EXPANDS = 95; - - // The number of times ad clip played in full screen mode. - VIDEO_INTERACTION_FULL_SCREENS = 96; - - // The number of times video player was in mute state during play of ad - // clip. - VIDEO_INTERACTION_MUTES = 97; - - // The number of times user paused ad clip. - VIDEO_INTERACTION_PAUSES = 98; - - // The number of times the user unpaused the video. - VIDEO_INTERACTION_RESUMES = 99; - - // The number of times a user rewinds the video. - VIDEO_INTERACTION_REWINDS = 100; - - // The number of times a user unmutes the video. - VIDEO_INTERACTION_UNMUTES = 101; - - // The number of times a skippable video is skipped. - VIDEO_INTERACTION_VIDEO_SKIPS = 102; - - // The number of total creative serves in video realtime reporting. - VIDEO_REAL_TIME_CREATIVE_SERVES = 139; - - // The number of errors of type 100 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_100_COUNT = 143; - - // The number of errors of type 101 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_101_COUNT = 144; - - // The number of errors of type 102 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_102_COUNT = 145; - - // The number of errors of type 200 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_200_COUNT = 146; - - // The number of errors of type 201 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_201_COUNT = 147; - - // The number of errors of type 202 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_202_COUNT = 148; - - // The number of errors of type 203 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_203_COUNT = 149; - - // The number of errors of type 300 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_300_COUNT = 150; - - // The number of errors of type 301 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_301_COUNT = 151; - - // The number of errors of type 302 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_302_COUNT = 152; - - // The number of errors of type 303 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_303_COUNT = 153; - - // The number of errors of type 400 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_400_COUNT = 154; - - // The number of errors of type 401 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_401_COUNT = 155; - - // The number of errors of type 402 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_402_COUNT = 156; - - // The number of errors of type 403 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_403_COUNT = 157; - - // The number of errors of type 405 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_405_COUNT = 158; - - // The number of errors of type 406 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_406_COUNT = 159; - - // The number of errors of type 407 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_407_COUNT = 160; - - // The number of errors of type 408 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_408_COUNT = 161; - - // The number of errors of type 409 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_409_COUNT = 162; - - // The number of errors of type 410 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_410_COUNT = 163; - - // The number of errors of type 500 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_500_COUNT = 164; - - // The number of errors of type 501 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_501_COUNT = 165; - - // The number of errors of type 502 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_502_COUNT = 166; - - // The number of errors of type 503 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_503_COUNT = 167; - - // The number of errors of type 600 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_600_COUNT = 168; - - // The number of errors of type 601 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_601_COUNT = 169; - - // The number of errors of type 602 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_602_COUNT = 170; - - // The number of errors of type 603 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_603_COUNT = 171; - - // The number of errors of type 604 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_604_COUNT = 172; - - // The number of errors of type 900 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_900_COUNT = 173; - - // The number of errors of type 901 in video realtime reporting. - VIDEO_REAL_TIME_ERROR_901_COUNT = 174; - - // The number of total impressions in video realtime reporting. - VIDEO_REAL_TIME_IMPRESSIONS = 138; - - // The number of matched queries in video realtime reporting. - VIDEO_REAL_TIME_MATCHED_QUERIES = 140; - - // The number of all errors in video realtime reporting. - VIDEO_REAL_TIME_TOTAL_ERROR_COUNT = 175; - - // The number of total queries in video realtime reporting. - VIDEO_REAL_TIME_TOTAL_QUERIES = 142; - - // The number of unmatched queries in video realtime reporting. - VIDEO_REAL_TIME_UNMATCHED_QUERIES = 141; - - // Number of times that the publisher specified a video ad played - // automatically. - VIDEO_VIEWERSHIP_AUTO_PLAYS = 103; - - // Average percentage of the video watched by users. - VIDEO_VIEWERSHIP_AVERAGE_VIEW_RATE = 104; - - // Average time(seconds) users watched the video. - VIDEO_VIEWERSHIP_AVERAGE_VIEW_TIME = 105; - - // Number of times that the publisher specified a video ad was clicked to - // play. - VIDEO_VIEWERSHIP_CLICK_TO_PLAYS = 106; - - // The number of times the video played to completion. - VIDEO_VIEWERSHIP_COMPLETES = 107; - - // Percentage of times the video played to the end. - VIDEO_VIEWERSHIP_COMPLETION_RATE = 108; - - // The number of engaged views: ad is viewed to completion or for 30s, - // whichever comes first. - VIDEO_VIEWERSHIP_ENGAGED_VIEWS = 109; - - // The number of times the video played to 25% of its length. - VIDEO_VIEWERSHIP_FIRST_QUARTILES = 110; - - // The number of times the video reached its midpoint during play. - VIDEO_VIEWERSHIP_MIDPOINTS = 111; - - // The number of times a skip button is shown in video. - VIDEO_VIEWERSHIP_SKIP_BUTTONS_SHOWN = 112; - - // The number of impressions where the video was played. - VIDEO_VIEWERSHIP_STARTS = 113; - - // The number of times the video played to 75% of its length. - VIDEO_VIEWERSHIP_THIRD_QUARTILES = 114; - - // The number of times an error occurred, such as a VAST redirect error, a - // video playback error, or an invalid response error. - VIDEO_VIEWERSHIP_TOTAL_ERROR_COUNT = 115; - - // The percentage of video error count. - VIDEO_VIEWERSHIP_TOTAL_ERROR_RATE = 94; - - // Duration of the video creative. - VIDEO_VIEWERSHIP_VIDEO_LENGTH = 116; - - // View-through rate represented as a percentage. - VIDEO_VIEWERSHIP_VIEW_THROUGH_RATE = 117; - - // The estimated net rate for yield groups or individual - // yield group partners. - YIELD_GROUP_ESTIMATED_CPM = 88; - - // Total net revenue earned by a yield group, based upon the yield group - // estimated CPM and yield group impressions recorded. - YIELD_GROUP_ESTIMATED_REVENUE = 87; - - // Number of matched yield group requests where a yield partner delivered - // their ad to publisher inventory. - YIELD_GROUP_IMPRESSIONS = 85; - - // Yield group Mediation fill rate indicating how often a network - // fills an ad request. - YIELD_GROUP_MEDIATION_FILL_RATE = 89; - - // Total requests where a Mediation chain was served. - YIELD_GROUP_MEDIATION_MATCHED_QUERIES = 86; - - // The number of mediation chain passback across all channels. - YIELD_GROUP_MEDIATION_PASSBACKS = 118; - - // Revenue per thousand impressions based on data collected by Ad Manager - // from third-party ad network reports. - YIELD_GROUP_MEDIATION_THIRD_PARTY_ECPM = 90; - } - - // Possible metric value types to add. - enum MetricValueType { - // The values for the primary date_range. - PRIMARY = 0; - - // Each metrics' percent of the total for the primary date_range. - PRIMARY_PERCENT_OF_TOTAL = 1; - - // The values for the comparison_date_range. - COMPARISON = 2; - - // Each metrics' percent of the total for the comparison_date_range. - COMPARISON_PERCENT_OF_TOTAL = 3; - - // The absolute change between the primary and comparison date ranges. - ABSOLUTE_CHANGE = 4; - - // The relative change between the primary and comparison date ranges. - RELATIVE_CHANGE = 5; - } - - // Supported report types. - enum ReportType { - // Default value. This value is unused. - REPORT_TYPE_UNSPECIFIED = 0; - - // Historical. - HISTORICAL = 1; - } - - // The visibility of a report. - enum Visibility { - // Default value. Reports with hidden visibility will not appear in the Ad - // Manager UI. - HIDDEN = 0; - - // Reports with draft visibility will appear in the Ad Manager UI only if - // the user has configured the UI to show them. - DRAFT = 1; - - // Reports with saved visibility will appear in the Ad Manager UI by - // default. - SAVED = 2; - } - - // Identifier. The resource name of the report. - // Report resource name have the form: - // `networks/{network_code}/reports/{report_id}` - string name = 1 [(google.api.field_behavior) = IDENTIFIER]; - - // Output only. Report ID. - int64 report_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Optional. The visibility of a report. - Visibility visibility = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Required. The report definition of the report. - ReportDefinition report_definition = 4 - [(google.api.field_behavior) = REQUIRED]; - - // Optional. Display name for the report. - string display_name = 5 [(google.api.field_behavior) = OPTIONAL]; - - // Output only. The instant this report was last modified. - google.protobuf.Timestamp update_time = 6 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The instant this report was created. - google.protobuf.Timestamp create_time = 7 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The locale of this report. Locale is set from the user's - // locale at the time of the request. Locale can not be modified. - string locale = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Optional. The schedule options of this report. - ScheduleOptions schedule_options = 9 [(google.api.field_behavior) = OPTIONAL]; -} - // Request message for a running a report. message RunReportRequest { // Required. The report to run. @@ -3279,7 +218,7 @@ message CreateReportRequest { string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { - child_type: "admanager.googleapis.com/Report" + type: "admanager.googleapis.com/Network" } ]; @@ -3343,184 +282,3 @@ message FetchReportResultRowsResponse { // If this field is omitted, there are no subsequent pages. string next_page_token = 6; } - -// The definition of how a report should be run. -message ReportDefinition { - // Required. The list of dimensions to report on. If empty, the report will - // have no dimensions, and any metrics will be totals. - repeated Report.Dimension dimensions = 1 - [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of metrics to report on. If empty, the report will have - // no metrics. - repeated Report.Metric metrics = 2 [(google.api.field_behavior) = REQUIRED]; - - // Optional. The filters for this report. - repeated Report.Filter filters = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The time zone the date range is defined in for this report. - // Defaults to publisher's time zone if not specified. Time zone in IANA - // format. Acceptable values depend on the report type. Publisher time zone is - // always accepted. Use "America/Los_Angeles" for pacific time, or "Etc/UTC" - // for UTC. - string time_zone = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The ISO 4217 currency code for this report. Defaults to publisher - // currency code if not specified. - string currency_code = 5 [(google.api.field_behavior) = OPTIONAL]; - - // Required. The primary date range of this report. - Report.DateRange date_range = 6 [(google.api.field_behavior) = REQUIRED]; - - // Optional. The comparison date range of this report. If unspecified, the - // report will not have any comparison metrics. - optional Report.DateRange comparison_date_range = 9 - [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Custom Dimension keys that represent CUSTOM_DIMENSION_* - // dimensions. The index of this repeated field corresponds to the index on - // each dimension. For example, custom_dimension_key_ids[0] describes - // CUSTOM_DIMENSION_0_VALUE_ID and CUSTOM_DIMENSION_0_VALUE. - repeated int64 custom_dimension_key_ids = 7 - [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Custom field IDs that represent LINE_ITEM_CUSTOM_FIELD_* - // dimensions. The index of this repeated field corresponds to the index on - // each dimension. For example, line_item_custom_field_ids[0] describes - // LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID and LINE_ITEM_CUSTOM_FIELD_0_VALUE. - repeated int64 line_item_custom_field_ids = 11 - [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Custom field IDs that represent ORDER_CUSTOM_FIELD_* - // dimensions. The index of this repeated field corresponds to the index on - // each dimension. For example, order_custom_field_ids[0] describes - // ORDER_CUSTOM_FIELD_0_OPTION_ID and ORDER_CUSTOM_FIELD_0_VALUE. - repeated int64 order_custom_field_ids = 12 - [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Custom field IDs that represent CREATIVE_CUSTOM_FIELD_* - // dimensions. The index of this repeated field corresponds to the index on - // each dimension. For example, creative_custom_field_ids[0] describes - // CREATIVE_CUSTOM_FIELD_0_OPTION_ID and CREATIVE_CUSTOM_FIELD_0_VALUE. - repeated int64 creative_custom_field_ids = 13 - [(google.api.field_behavior) = OPTIONAL]; - - // Required. The type of this report. - Report.ReportType report_type = 8 [(google.api.field_behavior) = REQUIRED]; - - // Optional. Include a time period column to introduce comparison columns in - // the report for each generated period. For example, set to "QUARTERS" here - // to have a column for each quarter present in the primary date range. If - // "PREVIOUS PERIOD" is specified in comparison_date_range, then each quarter - // column will also include comparison values for its relative previous - // quarter. - Report.TimePeriodColumn time_period_column = 10 - [(google.api.field_behavior) = OPTIONAL]; - - // Optional. List of flags for this report. Used to flag rows in a result set - // based on a set of defined filters. - repeated Report.Flag flags = 14 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Default sorts to apply to this report. - repeated Report.Sort sorts = 15 [(google.api.field_behavior) = OPTIONAL]; -} - -// The options for a scheduled report. -message ScheduleOptions { - // Condition for when to email the scheduled report. - enum DeliveryCondition { - // Never deliver report. - NEVER = 0; - - // Always deliver report. - ALWAYS = 1; - - // Deliver report when flag's conditions are met. - WHEN_FLAG_CONDITIONS_MET = 2; - } - - // Information pertaining to schedule itself. - Schedule schedule = 1; - - // Option for when to deliver the scheduled report. - DeliveryCondition delivery_condition = 2; - - // Optional. The flags evaluated when ReportDeliveryOption.WHEN_FLAG_PRESENT - // is specified. - repeated Report.Flag flags = 3 [(google.api.field_behavior) = OPTIONAL]; -} - -// The schedule for the report -message Schedule { - // Days of week to schedule report run. - message WeeklySchedule { - // Specifies days of the week on which to run report. - repeated google.type.DayOfWeek weekly_scheduled_days = 1; - } - - // Days of Month to schedule report run. - message MonthlySchedule { - // Specifies days of the month to run report. Range is from 1-31. - // Will ignore days that are not valid for the given month. - repeated int32 monthly_scheduled_days = 1; - } - - // Frequency to run report. - enum Frequency { - // No Frequency specified. - FREQUENCY_UNSPECIFIED = 0; - - // Schedule report to run every hour. - HOURLY = 1; - - // Schedule report to run twice a day (every 12 hours). - TWO_TIMES_DAILY = 2; - - // Schedule report to run three times a day (every 8 hours). - THREE_TIMES_DAILY = 3; - - // Schedule report to run four times a day (every 6 hours). - FOUR_TIMES_DAILY = 4; - - // Schedule report to run on a daily basis. - DAILY = 5; - - // Schedule report to run on a weekly basis. - WEEKLY = 6; - - // Schedule report to run on a monthly basis. - MONTHLY = 7; - } - - // The scheduled values based on the frequency selected. - // WEEKLY - uses WeeklySchedule - // MONTHLY - uses MonthlySchedule - oneof frequency_schedule { - // Days of week to schedule report run. - WeeklySchedule weekly_schedule = 6; - - // Days of month to schedule report run. - MonthlySchedule monthly_schedule = 7; - } - - // Date for the first run of the report. - google.type.Date start_date = 1; - - // Date for the final run of the report. - google.type.Date end_date = 2; - - // Frequency to run report. - Frequency frequency = 3; - - // Indicates start time for schedule to run - // Will use the time_zone from `ReportDefinition`. Defaults - // to the publisher's time zone if not specified. - // - // For HOURLY, TWO_TIMES_DAILY, THREE_TIMES_DAILY, or FOUR_TIMES_DAILY, this - // will be the time of day that the first report will run on the first day. - // For example, if the start time is 2:00 PM, and the frequency is - // THREE_TIMES_DAILY, the first day will have reports scheduled at 2:00 PM, - // 10:00 PM. Each subsequent day will have reports scheduled at 6:00 AM, - // 2:00 PM, 10:00 PM. - google.type.TimeOfDay start_time = 4; -} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/request_platform_enum.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/request_platform_enum.proto new file mode 100644 index 000000000000..a680a8e2e062 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/request_platform_enum.proto @@ -0,0 +1,49 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.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.ads.admanager.v1; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "RequestPlatformEnumProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Wrapper message for [RequestPlatform]. +// +// Describes the platform from which a request is made and on which the ad is +// rendered. In the event of multiple platforms, the platform that ultimately +// renders the ad is the targeted platform. For example, a video player on a +// website would have a request platform of `VIDEO_PLAYER`. +message RequestPlatformEnum { + // The different environments in which an ad can be shown. + enum RequestPlatform { + // No value specified + REQUEST_PLATFORM_UNSPECIFIED = 0; + + // Represents a request made from a web browser (incl. desktop browsers, + // mobile browsers, webviews, etc.). + BROWSER = 1; + + // Represents a request made from a Mobile Application. + MOBILE_APP = 2; + + // Represents a request made from a video player. + VIDEO_PLAYER = 3; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/role_enums.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/role_enums.proto index 710fb1720611..39ac15c6989b 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/role_enums.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/role_enums.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/role_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/role_messages.proto index ae016a13824c..d0017c4a6987 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/role_messages.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/role_messages.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -42,18 +42,18 @@ message Role { string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Output only. `Role` ID. - int64 role_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + optional int64 role_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. The display name of the `Role`. - string display_name = 3 [(google.api.field_behavior) = REQUIRED]; + optional string display_name = 3 [(google.api.field_behavior) = REQUIRED]; // Optional. The description of the `Role`. - string description = 4 [(google.api.field_behavior) = OPTIONAL]; + optional string description = 4 [(google.api.field_behavior) = OPTIONAL]; // Output only. Whether the `Role` is a built-in or custom user role. - bool built_in = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + optional bool built_in = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The status of the `Role`. - RoleStatusEnum.RoleStatus status = 6 + optional RoleStatusEnum.RoleStatus status = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/role_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/role_service.proto index b01b420ba270..5d454c96a2b9 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/role_service.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/role_service.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -33,6 +33,8 @@ option ruby_package = "Google::Ads::AdManager::V1"; // Provides methods for handling `Role` objects. service RoleService { option (google.api.default_host) = "admanager.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/admanager"; // API to retrieve a `Role` object. rpc GetRole(GetRoleRequest) returns (Role) { diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/size.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/size.proto index 47d1eda4a68a..00df3ec6b8ff 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/size.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/size.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -29,19 +29,15 @@ option ruby_package = "Google::Ads::AdManager::V1"; // Represents the dimensions of an AdUnit, LineItem, or Creative. message Size { - // Required. The width of the [Creative](google.ads.admanager.v1.Creative), - // [AdUnit](google.ads.admanager.v1.AdUnit), or - // [LineItem](google.ads.admanager.v1.LineItem). + // Required. The width of the Creative, + // [AdUnit][google.ads.admanager.v1.AdUnit], or LineItem. int32 width = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. The height of the [Creative](google.ads.admanager.v1.Creative), - // [AdUnit](google.ads.admanager.v1.AdUnit), or - // [LineItem](google.ads.admanager.v1.LineItem). + // Required. The height of the Creative, + // [AdUnit][google.ads.admanager.v1.AdUnit], or LineItem. int32 height = 2 [(google.api.field_behavior) = REQUIRED]; - // Required. The SizeType of the - // [Creative](google.ads.admanager.v1.Creative), - // [AdUnit](google.ads.admanager.v1.AdUnit), or - // [LineItem](google.ads.admanager.v1.LineItem). + // Required. The SizeType of the Creative, + // [AdUnit][google.ads.admanager.v1.AdUnit], or LineItem. SizeTypeEnum.SizeType size_type = 3 [(google.api.field_behavior) = REQUIRED]; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/size_type_enum.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/size_type_enum.proto index 87066762eab4..02f10de233a0 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/size_type_enum.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/size_type_enum.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/targeted_video_bumper_type_enum.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/targeted_video_bumper_type_enum.proto new file mode 100644 index 000000000000..2c6ee21ff22a --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/targeted_video_bumper_type_enum.proto @@ -0,0 +1,44 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.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.ads.admanager.v1; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "TargetedVideoBumperTypeEnumProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Wrapper message for +// [TargetedVideoBumperType][google.ads.admanager.v1.TargetedVideoBumperTypeEnum.TargetedVideoBumperType] +message TargetedVideoBumperTypeEnum { + // Represents the options for targetable bumper positions, surrounding an ad + // pod, within a video stream. This includes before and after the supported ad + // pod positions, `VideoPositionType.PREROLL`, `VideoPositionType.MIDROLL`, + // and `VideoPositionType.POSTROLL`. + enum TargetedVideoBumperType { + // Default value. This value is unused. + TARGETED_VIDEO_BUMPER_TYPE_UNSPECIFIED = 0; + + // Represents the bumper position after the ad pod. + AFTER = 1; + + // Represents the bumper position before the ad pod. + BEFORE = 2; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/targeting.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/targeting.proto new file mode 100644 index 000000000000..4fe9c9a67a52 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/targeting.proto @@ -0,0 +1,328 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.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.ads.admanager.v1; + +import "google/ads/admanager/v1/request_platform_enum.proto"; +import "google/ads/admanager/v1/targeted_video_bumper_type_enum.proto"; +import "google/ads/admanager/v1/video_position_enum.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "TargetingProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Targeting expression. +// +message Targeting { + // Optional. Used to target/exclude various geo targets. + GeoTargeting geo_targeting = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Used to target various technology targeting dimensions. + TechnologyTargeting technology_targeting = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Used to target/exclude various ad units and/or placements. + InventoryTargeting inventory_targeting = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Used to target specific request platforms. + RequestPlatformTargeting request_platform_targeting = 6 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Used to target key/values, audience segments, and/or CMS + // metadata. + CustomTargeting custom_targeting = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Used to target user domains. + UserDomainTargeting user_domain_targeting = 10 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Used to target video positions. + VideoPositionTargeting video_position_targeting = 12 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Used to target data segments. + DataSegmentTargeting data_segment_targeting = 13 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Represents a list of targeted and excluded geos. +message GeoTargeting { + // Optional. A list of geo resource names that should be targeted/included. + repeated string targeted_geos = 3 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/GeoTarget" + } + ]; + + // Optional. A list of geo resource names that should be excluded. + repeated string excluded_geos = 4 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/GeoTarget" + } + ]; +} + +// Various types of technology targeting expressed by child messages are +// applied with logical AND. +message TechnologyTargeting { + // Optional. Bandwidth targeting dimension. + BandwidthTargeting bandwidth_targeting = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Device category targeting dimension. + DeviceCategoryTargeting device_category_targeting = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Operating system targeting dimension. + OperatingSystemTargeting operating_system_targeting = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Bandwidth Targeting. +// +// Reach users accessing the internet via various means of connection, such as +// cable, DSL, or dial-up. Can be useful to target campaigns using +// low-resolution creatives or text ads for users with low bandwidth. +message BandwidthTargeting { + // Optional. A list of resource names of the bandwidth groups that should be + // targeted/included. + repeated string targeted_bandwidth_groups = 3 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/BandwidthGroup" + } + ]; + + // Optional. A list of resource names of the bandwidth groups that should be + // excluded. + repeated string excluded_bandwidth_groups = 4 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/BandwidthGroup" + } + ]; +} + +// Represents a list of targeted and excluded device categories. +message DeviceCategoryTargeting { + // Optional. A list of device category resource names that should be + // targeted/included. + repeated string targeted_categories = 3 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/DeviceCategory" + } + ]; + + // Optional. A list of device category resource names that should be excluded. + repeated string excluded_categories = 4 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/DeviceCategory" + } + ]; +} + +// Operating System Targeting +message OperatingSystemTargeting { + // Optional. A list of operating system resource names that should be + // targeted/included. + repeated string targeted_operating_systems = 5 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/OperatingSystem" + } + ]; + + // Optional. A list of operating system resource names that should be + // excluded. + repeated string excluded_operating_systems = 6 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/OperatingSystem" + } + ]; + + // Optional. A list of operating system version resource names that should be + // targeted/included. + repeated string targeted_operating_system_versions = 7 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/OperatingSystemVersion" + } + ]; + + // Optional. A list of operating system version resource names that should be + // excluded. + repeated string excluded_operating_system_versions = 8 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/OperatingSystemVersion" + } + ]; +} + +// Targeted ad units and AU placements are applied with +// logical OR. Example: +// +// (au:1 OR au:2 OR au_placement:5) AND (NOT (au:3)) +message InventoryTargeting { + // Optional. A list of ad units that should be targeted/included. + repeated AdUnitTargeting targeted_ad_units = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A list of ad units that should be excluded. + // + // Excluded AUs take precedence over targeted AUs. In fact an AU can be + // excluded only if one of its ancestors is targeted. Subsequently child + // AUs of an excluded AU can not be targeted (except via a placement). + repeated AdUnitTargeting excluded_ad_units = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The resource names of the placements that should be + // targeted/included. + repeated string targeted_placements = 5 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Placement" + } + ]; +} + +// Specifies an ad unit and (optionally) its descendants. +message AdUnitTargeting { + // Whether this ad unit's children should be targeted/excluded as well. + optional bool include_descendants = 1; + + // Optional. The resource name of this ad unit. + optional string ad_unit = 3 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/AdUnit" + } + ]; +} + +// Represents a list of targeted request platforms. +message RequestPlatformTargeting { + // Optional. The list of request platforms that should be targeted. + repeated RequestPlatformEnum.RequestPlatform request_platforms = 1 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Represents the top level targeting expression for custom key/values, +// audience segments, and/or CMS metadata. +message CustomTargeting { + // Optional. These clauses are all ORed together. + repeated CustomTargetingClause custom_targeting_clauses = 1 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Represents a logical AND of individual custom targeting expressions. +message CustomTargetingClause { + // Optional. Leaf targeting expressions for custom key/values. + repeated CustomTargetingLiteral custom_targeting_literals = 1 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Represents targeting for custom key/values. The values are ORed together. +message CustomTargetingLiteral { + // Whether this expression is negatively targeted, meaning it matches + // ad requests that exclude the below values. + optional bool negative = 1; + + // Optional. The resource name of the targeted CustomKey. + optional string custom_targeting_key = 4 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/CustomTargetingKey" + } + ]; + + // Optional. The resource names of the targeted CustomValues. + repeated string custom_targeting_values = 5 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/CustomTargetingValue" + } + ]; +} + +// User Domain Targeting +message UserDomainTargeting { + // Optional. A list of user domains that should be targeted/included. + repeated string targeted_user_domains = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A list of user domains that should be excluded. + repeated string excluded_user_domains = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Video Position Targeting +message VideoPositionTargeting { + // Optional. A list of video position targeting criterion (applied with a + // logical AND). + repeated VideoPosition video_positions = 1 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Video Position Targeting Criterion +message VideoPosition { + // Optional. The index of the mid-roll to target. This field is ignored when + // targeting any video position (e.g. position_type) other than MIDROLL. + optional int64 midroll_index = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The index from the back of the pod of the mid-roll to target. + // This field is ignored when targeting any video position (e.g. + // position_type) other than MIDROLL or if targeting a specific midroll index + // (e.g. midroll_index != 0). + optional int64 reverse_midroll_index = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The video position within a pod to target. This field must be + // unset in order to target a specific video position (e.g. position_type), + // bumper type (e.g. bumper_type), or custom ad spot (e.g. custom_spot_id). + optional int64 pod_position = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The position within a video to target. A video ad can target a + // position (pre-roll, all mid-rolls, or post-roll) or a specific mid-roll + // index. + optional VideoPositionEnum.VideoPosition position_type = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The video bumper type to target. This field must be unset in + // order to target a specific video position (e.g. position_type), pod + // position (e.g. pod_position), or custom ad spot (e.g. custom_spot_id). + optional TargetedVideoBumperTypeEnum.TargetedVideoBumperType bumper_type = 6 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Data Segment Targeting +message DataSegmentTargeting { + // Output only. Whether any data segments are currently targeted. + bool has_data_segment_targeting = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/taxonomy_category_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/taxonomy_category_messages.proto index 060594f1e90c..438d22c6ce23 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/taxonomy_category_messages.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/taxonomy_category_messages.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -42,22 +42,23 @@ message TaxonomyCategory { string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Output only. `TaxonomyCategory` ID. - int64 taxonomy_category_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + optional int64 taxonomy_category_id = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Display name of the `TaxonomyCategory`. - string display_name = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + optional string display_name = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Whether this `TaxonomyCategory` only serves to group its // children. - bool grouping_only = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + optional bool grouping_only = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The ID of the parent category this `TaxonomyCategory` descends // from. - int64 parent_taxonomy_category_id = 6 + optional int64 parent_taxonomy_category_id = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The taxonomy that this `TaxonomyCategory` belongs to. - TaxonomyTypeEnum.TaxonomyType taxonomy_type = 9 + optional TaxonomyTypeEnum.TaxonomyType taxonomy_type = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The list of names of the ancestors of this `TaxonomyCategory`. diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/taxonomy_category_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/taxonomy_category_service.proto index 203fa498f65c..df2e77d06888 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/taxonomy_category_service.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/taxonomy_category_service.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -33,6 +33,8 @@ option ruby_package = "Google::Ads::AdManager::V1"; // Provides methods for handling `TaxonomyCategory` objects. service TaxonomyCategoryService { option (google.api.default_host) = "admanager.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/admanager"; // API to retrieve a `TaxonomyCategory` object. rpc GetTaxonomyCategory(GetTaxonomyCategoryRequest) diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/taxonomy_type_enum.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/taxonomy_type_enum.proto index 1a8e642c3fb3..f27d2c42b7c8 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/taxonomy_type_enum.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/taxonomy_type_enum.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/team_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/team_messages.proto index 84d958fa7745..7eb220921bb5 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/team_messages.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/team_messages.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -39,8 +39,4 @@ message Team { // Identifier. The resource name of the `Team`. // Format: `networks/{network_code}/teams/{team_id}` string name = 1 [(google.api.field_behavior) = IDENTIFIER]; - - // Output only. The unique ID of the Team. This value is assigned by Google. - // Teams that are created by Google will have negative IDs. - int64 team_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/time_unit_enum.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/time_unit_enum.proto index a453934a2aec..7243b999bf49 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/time_unit_enum.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/time_unit_enum.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 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-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/user_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/user_messages.proto index 6922280c4539..030cbe68dcce 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/user_messages.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/user_messages.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -41,38 +41,39 @@ message User { string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Output only. `User` ID. - int64 user_id = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + optional int64 user_id = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. The name of the User. It has a maximum length of 128 characters. - string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + optional string display_name = 2 [(google.api.field_behavior) = REQUIRED]; // Required. The email or login of the User. In order to create a new user, // you must already have a Google Account. - string email = 3 [(google.api.field_behavior) = REQUIRED]; + optional string email = 3 [(google.api.field_behavior) = REQUIRED]; // Required. The unique Role ID of the User. Roles that are created by Google // will have negative IDs. - string role = 4 [ + optional string role = 4 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { type: "admanager.googleapis.com/Role" } ]; // Output only. Specifies whether or not the User is active. An inactive user // cannot log in to the system or perform any operations. - bool active = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + optional bool active = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. An identifier for the User that is meaningful to the publisher. // This attribute has a maximum length of 255 characters. - string external_id = 7 [(google.api.field_behavior) = OPTIONAL]; + optional string external_id = 7 [(google.api.field_behavior) = OPTIONAL]; // Output only. Whether the user is an OAuth2 service account user. // Service account users can only be added through the UI. - bool service_account = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + optional bool service_account = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. The IANA Time Zone Database time zone, e.g. "America/New_York", // used in the orders and line items UI for this User. If not provided, the UI // then defaults to using the Network's timezone. This setting only affects // the UI for this user and does not affect the timezone of any dates and // times returned in API responses. - string orders_ui_local_time_zone = 9 [(google.api.field_behavior) = OPTIONAL]; + optional string orders_ui_local_time_zone = 9 + [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/user_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/user_service.proto index 8ff6209679c5..62ba5b1ba867 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/user_service.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/user_service.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -33,6 +33,8 @@ option ruby_package = "Google::Ads::AdManager::V1"; // Provides methods for handling User objects. service UserService { option (google.api.default_host) = "admanager.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/admanager"; // API to retrieve a User object. // diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/video_position_enum.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/video_position_enum.proto new file mode 100644 index 000000000000..851067794e02 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/video_position_enum.proto @@ -0,0 +1,47 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.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.ads.admanager.v1; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "VideoPositionEnumProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Wrapper message for +// [VideoPosition][google.ads.admanager.v1.VideoPositionEnum.VideoPosition] +message VideoPositionEnum { + // Represents a targetable position within a video. + enum VideoPosition { + // Default value. This value is unused. + VIDEO_POSITION_UNSPECIFIED = 0; + + // Allow ad placement at any position within the video. + ALL = 1; + + // Target ad placement during the video. + MIDROLL = 2; + + // Target ad placement after the video ends. + POSTROLL = 3; + + // Target ad placement before the video starts. + PREROLL = 4; + } +} diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/create/SyncCreateSetCredentialsProvider.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..720f27be07bc --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_AdBreakService_Create_SetCredentialsProvider_sync] +import com.google.ads.admanager.v1.AdBreakServiceClient; +import com.google.ads.admanager.v1.AdBreakServiceSettings; +import com.google.ads.admanager.v1.myCredentials; +import com.google.api.gax.core.FixedCredentialsProvider; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() 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 + AdBreakServiceSettings adBreakServiceSettings = + AdBreakServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create(adBreakServiceSettings); + } +} +// [END admanager_v1_generated_AdBreakService_Create_SetCredentialsProvider_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/create/SyncCreateSetEndpoint.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..d248cf0c64fa --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,41 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_AdBreakService_Create_SetEndpoint_sync] +import com.google.ads.admanager.v1.AdBreakServiceClient; +import com.google.ads.admanager.v1.AdBreakServiceSettings; +import com.google.ads.admanager.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() 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 + AdBreakServiceSettings adBreakServiceSettings = + AdBreakServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create(adBreakServiceSettings); + } +} +// [END admanager_v1_generated_AdBreakService_Create_SetEndpoint_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/createadbreak/AsyncCreateAdBreak.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/createadbreak/AsyncCreateAdBreak.java new file mode 100644 index 000000000000..8c0cbb39b19b --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/createadbreak/AsyncCreateAdBreak.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_AdBreakService_CreateAdBreak_async] +import com.google.ads.admanager.v1.AdBreak; +import com.google.ads.admanager.v1.AdBreakServiceClient; +import com.google.ads.admanager.v1.CreateAdBreakRequest; +import com.google.ads.admanager.v1.LiveStreamEventName; +import com.google.api.core.ApiFuture; + +public class AsyncCreateAdBreak { + + public static void main(String[] args) throws Exception { + asyncCreateAdBreak(); + } + + public static void asyncCreateAdBreak() 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 (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) { + CreateAdBreakRequest request = + CreateAdBreakRequest.newBuilder() + .setParent(LiveStreamEventName.of("[NETWORK_CODE]", "[LIVE_STREAM_EVENT]").toString()) + .setAdBreak(AdBreak.newBuilder().build()) + .build(); + ApiFuture future = adBreakServiceClient.createAdBreakCallable().futureCall(request); + // Do something. + AdBreak response = future.get(); + } + } +} +// [END admanager_v1_generated_AdBreakService_CreateAdBreak_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/createadbreak/SyncCreateAdBreak.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/createadbreak/SyncCreateAdBreak.java new file mode 100644 index 000000000000..272edee761d5 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/createadbreak/SyncCreateAdBreak.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_AdBreakService_CreateAdBreak_sync] +import com.google.ads.admanager.v1.AdBreak; +import com.google.ads.admanager.v1.AdBreakServiceClient; +import com.google.ads.admanager.v1.CreateAdBreakRequest; +import com.google.ads.admanager.v1.LiveStreamEventName; + +public class SyncCreateAdBreak { + + public static void main(String[] args) throws Exception { + syncCreateAdBreak(); + } + + public static void syncCreateAdBreak() 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 (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) { + CreateAdBreakRequest request = + CreateAdBreakRequest.newBuilder() + .setParent(LiveStreamEventName.of("[NETWORK_CODE]", "[LIVE_STREAM_EVENT]").toString()) + .setAdBreak(AdBreak.newBuilder().build()) + .build(); + AdBreak response = adBreakServiceClient.createAdBreak(request); + } + } +} +// [END admanager_v1_generated_AdBreakService_CreateAdBreak_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/createadbreak/SyncCreateAdBreakLivestreameventnameAdbreak.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/createadbreak/SyncCreateAdBreakLivestreameventnameAdbreak.java new file mode 100644 index 000000000000..8e847aa0ec46 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/createadbreak/SyncCreateAdBreakLivestreameventnameAdbreak.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_AdBreakService_CreateAdBreak_LivestreameventnameAdbreak_sync] +import com.google.ads.admanager.v1.AdBreak; +import com.google.ads.admanager.v1.AdBreakServiceClient; +import com.google.ads.admanager.v1.LiveStreamEventName; + +public class SyncCreateAdBreakLivestreameventnameAdbreak { + + public static void main(String[] args) throws Exception { + syncCreateAdBreakLivestreameventnameAdbreak(); + } + + public static void syncCreateAdBreakLivestreameventnameAdbreak() 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 (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) { + LiveStreamEventName parent = LiveStreamEventName.of("[NETWORK_CODE]", "[LIVE_STREAM_EVENT]"); + AdBreak adBreak = AdBreak.newBuilder().build(); + AdBreak response = adBreakServiceClient.createAdBreak(parent, adBreak); + } + } +} +// [END admanager_v1_generated_AdBreakService_CreateAdBreak_LivestreameventnameAdbreak_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/createadbreak/SyncCreateAdBreakStringAdbreak.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/createadbreak/SyncCreateAdBreakStringAdbreak.java new file mode 100644 index 000000000000..69d62546b4bf --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/createadbreak/SyncCreateAdBreakStringAdbreak.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_AdBreakService_CreateAdBreak_StringAdbreak_sync] +import com.google.ads.admanager.v1.AdBreak; +import com.google.ads.admanager.v1.AdBreakServiceClient; +import com.google.ads.admanager.v1.LiveStreamEventName; + +public class SyncCreateAdBreakStringAdbreak { + + public static void main(String[] args) throws Exception { + syncCreateAdBreakStringAdbreak(); + } + + public static void syncCreateAdBreakStringAdbreak() 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 (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) { + String parent = LiveStreamEventName.of("[NETWORK_CODE]", "[LIVE_STREAM_EVENT]").toString(); + AdBreak adBreak = AdBreak.newBuilder().build(); + AdBreak response = adBreakServiceClient.createAdBreak(parent, adBreak); + } + } +} +// [END admanager_v1_generated_AdBreakService_CreateAdBreak_StringAdbreak_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/deleteadbreak/AsyncDeleteAdBreak.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/deleteadbreak/AsyncDeleteAdBreak.java new file mode 100644 index 000000000000..9edb0da252ed --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/deleteadbreak/AsyncDeleteAdBreak.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_AdBreakService_DeleteAdBreak_async] +import com.google.ads.admanager.v1.AdBreakName; +import com.google.ads.admanager.v1.AdBreakServiceClient; +import com.google.ads.admanager.v1.DeleteAdBreakRequest; +import com.google.api.core.ApiFuture; +import com.google.protobuf.Empty; + +public class AsyncDeleteAdBreak { + + public static void main(String[] args) throws Exception { + asyncDeleteAdBreak(); + } + + public static void asyncDeleteAdBreak() 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 (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) { + DeleteAdBreakRequest request = + DeleteAdBreakRequest.newBuilder() + .setName(AdBreakName.of("[NETWORK_CODE]", "[ASSET_KEY]", "[AD_BREAK]").toString()) + .build(); + ApiFuture future = adBreakServiceClient.deleteAdBreakCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END admanager_v1_generated_AdBreakService_DeleteAdBreak_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/deleteadbreak/SyncDeleteAdBreak.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/deleteadbreak/SyncDeleteAdBreak.java new file mode 100644 index 000000000000..41fd7df59b49 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/deleteadbreak/SyncDeleteAdBreak.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_AdBreakService_DeleteAdBreak_sync] +import com.google.ads.admanager.v1.AdBreakName; +import com.google.ads.admanager.v1.AdBreakServiceClient; +import com.google.ads.admanager.v1.DeleteAdBreakRequest; +import com.google.protobuf.Empty; + +public class SyncDeleteAdBreak { + + public static void main(String[] args) throws Exception { + syncDeleteAdBreak(); + } + + public static void syncDeleteAdBreak() 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 (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) { + DeleteAdBreakRequest request = + DeleteAdBreakRequest.newBuilder() + .setName(AdBreakName.of("[NETWORK_CODE]", "[ASSET_KEY]", "[AD_BREAK]").toString()) + .build(); + adBreakServiceClient.deleteAdBreak(request); + } + } +} +// [END admanager_v1_generated_AdBreakService_DeleteAdBreak_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/deleteadbreak/SyncDeleteAdBreakAdbreakname.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/deleteadbreak/SyncDeleteAdBreakAdbreakname.java new file mode 100644 index 000000000000..4a1f04bd10c6 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/deleteadbreak/SyncDeleteAdBreakAdbreakname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_AdBreakService_DeleteAdBreak_Adbreakname_sync] +import com.google.ads.admanager.v1.AdBreakName; +import com.google.ads.admanager.v1.AdBreakServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteAdBreakAdbreakname { + + public static void main(String[] args) throws Exception { + syncDeleteAdBreakAdbreakname(); + } + + public static void syncDeleteAdBreakAdbreakname() 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 (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) { + AdBreakName name = AdBreakName.of("[NETWORK_CODE]", "[ASSET_KEY]", "[AD_BREAK]"); + adBreakServiceClient.deleteAdBreak(name); + } + } +} +// [END admanager_v1_generated_AdBreakService_DeleteAdBreak_Adbreakname_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/deleteadbreak/SyncDeleteAdBreakString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/deleteadbreak/SyncDeleteAdBreakString.java new file mode 100644 index 000000000000..fbf023234635 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/deleteadbreak/SyncDeleteAdBreakString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_AdBreakService_DeleteAdBreak_String_sync] +import com.google.ads.admanager.v1.AdBreakName; +import com.google.ads.admanager.v1.AdBreakServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteAdBreakString { + + public static void main(String[] args) throws Exception { + syncDeleteAdBreakString(); + } + + public static void syncDeleteAdBreakString() 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 (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) { + String name = AdBreakName.of("[NETWORK_CODE]", "[ASSET_KEY]", "[AD_BREAK]").toString(); + adBreakServiceClient.deleteAdBreak(name); + } + } +} +// [END admanager_v1_generated_AdBreakService_DeleteAdBreak_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/getadbreak/AsyncGetAdBreak.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/getadbreak/AsyncGetAdBreak.java new file mode 100644 index 000000000000..662222052d34 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/getadbreak/AsyncGetAdBreak.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_AdBreakService_GetAdBreak_async] +import com.google.ads.admanager.v1.AdBreak; +import com.google.ads.admanager.v1.AdBreakName; +import com.google.ads.admanager.v1.AdBreakServiceClient; +import com.google.ads.admanager.v1.GetAdBreakRequest; +import com.google.api.core.ApiFuture; + +public class AsyncGetAdBreak { + + public static void main(String[] args) throws Exception { + asyncGetAdBreak(); + } + + public static void asyncGetAdBreak() 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 (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) { + GetAdBreakRequest request = + GetAdBreakRequest.newBuilder() + .setName(AdBreakName.of("[NETWORK_CODE]", "[ASSET_KEY]", "[AD_BREAK]").toString()) + .build(); + ApiFuture future = adBreakServiceClient.getAdBreakCallable().futureCall(request); + // Do something. + AdBreak response = future.get(); + } + } +} +// [END admanager_v1_generated_AdBreakService_GetAdBreak_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/getadbreak/SyncGetAdBreak.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/getadbreak/SyncGetAdBreak.java new file mode 100644 index 000000000000..d6f3628805ce --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/getadbreak/SyncGetAdBreak.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_AdBreakService_GetAdBreak_sync] +import com.google.ads.admanager.v1.AdBreak; +import com.google.ads.admanager.v1.AdBreakName; +import com.google.ads.admanager.v1.AdBreakServiceClient; +import com.google.ads.admanager.v1.GetAdBreakRequest; + +public class SyncGetAdBreak { + + public static void main(String[] args) throws Exception { + syncGetAdBreak(); + } + + public static void syncGetAdBreak() 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 (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) { + GetAdBreakRequest request = + GetAdBreakRequest.newBuilder() + .setName(AdBreakName.of("[NETWORK_CODE]", "[ASSET_KEY]", "[AD_BREAK]").toString()) + .build(); + AdBreak response = adBreakServiceClient.getAdBreak(request); + } + } +} +// [END admanager_v1_generated_AdBreakService_GetAdBreak_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/getadbreak/SyncGetAdBreakAdbreakname.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/getadbreak/SyncGetAdBreakAdbreakname.java new file mode 100644 index 000000000000..6fb90ebf5f13 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/getadbreak/SyncGetAdBreakAdbreakname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_AdBreakService_GetAdBreak_Adbreakname_sync] +import com.google.ads.admanager.v1.AdBreak; +import com.google.ads.admanager.v1.AdBreakName; +import com.google.ads.admanager.v1.AdBreakServiceClient; + +public class SyncGetAdBreakAdbreakname { + + public static void main(String[] args) throws Exception { + syncGetAdBreakAdbreakname(); + } + + public static void syncGetAdBreakAdbreakname() 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 (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) { + AdBreakName name = AdBreakName.of("[NETWORK_CODE]", "[ASSET_KEY]", "[AD_BREAK]"); + AdBreak response = adBreakServiceClient.getAdBreak(name); + } + } +} +// [END admanager_v1_generated_AdBreakService_GetAdBreak_Adbreakname_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/getadbreak/SyncGetAdBreakString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/getadbreak/SyncGetAdBreakString.java new file mode 100644 index 000000000000..de72b7834a19 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/getadbreak/SyncGetAdBreakString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_AdBreakService_GetAdBreak_String_sync] +import com.google.ads.admanager.v1.AdBreak; +import com.google.ads.admanager.v1.AdBreakName; +import com.google.ads.admanager.v1.AdBreakServiceClient; + +public class SyncGetAdBreakString { + + public static void main(String[] args) throws Exception { + syncGetAdBreakString(); + } + + public static void syncGetAdBreakString() 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 (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) { + String name = AdBreakName.of("[NETWORK_CODE]", "[ASSET_KEY]", "[AD_BREAK]").toString(); + AdBreak response = adBreakServiceClient.getAdBreak(name); + } + } +} +// [END admanager_v1_generated_AdBreakService_GetAdBreak_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/listadbreaks/AsyncListAdBreaks.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/listadbreaks/AsyncListAdBreaks.java new file mode 100644 index 000000000000..d604f687edb8 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/listadbreaks/AsyncListAdBreaks.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_AdBreakService_ListAdBreaks_async] +import com.google.ads.admanager.v1.AdBreak; +import com.google.ads.admanager.v1.AdBreakServiceClient; +import com.google.ads.admanager.v1.ListAdBreaksRequest; +import com.google.ads.admanager.v1.LiveStreamEventName; +import com.google.api.core.ApiFuture; + +public class AsyncListAdBreaks { + + public static void main(String[] args) throws Exception { + asyncListAdBreaks(); + } + + public static void asyncListAdBreaks() 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 (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) { + ListAdBreaksRequest request = + ListAdBreaksRequest.newBuilder() + .setParent(LiveStreamEventName.of("[NETWORK_CODE]", "[LIVE_STREAM_EVENT]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + ApiFuture future = + adBreakServiceClient.listAdBreaksPagedCallable().futureCall(request); + // Do something. + for (AdBreak element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_AdBreakService_ListAdBreaks_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/listadbreaks/AsyncListAdBreaksPaged.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/listadbreaks/AsyncListAdBreaksPaged.java new file mode 100644 index 000000000000..d7902d0d2f5a --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/listadbreaks/AsyncListAdBreaksPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_AdBreakService_ListAdBreaks_Paged_async] +import com.google.ads.admanager.v1.AdBreak; +import com.google.ads.admanager.v1.AdBreakServiceClient; +import com.google.ads.admanager.v1.ListAdBreaksRequest; +import com.google.ads.admanager.v1.ListAdBreaksResponse; +import com.google.ads.admanager.v1.LiveStreamEventName; +import com.google.common.base.Strings; + +public class AsyncListAdBreaksPaged { + + public static void main(String[] args) throws Exception { + asyncListAdBreaksPaged(); + } + + public static void asyncListAdBreaksPaged() 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 (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) { + ListAdBreaksRequest request = + ListAdBreaksRequest.newBuilder() + .setParent(LiveStreamEventName.of("[NETWORK_CODE]", "[LIVE_STREAM_EVENT]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + while (true) { + ListAdBreaksResponse response = adBreakServiceClient.listAdBreaksCallable().call(request); + for (AdBreak element : response.getAdBreaksList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END admanager_v1_generated_AdBreakService_ListAdBreaks_Paged_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/listadbreaks/SyncListAdBreaks.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/listadbreaks/SyncListAdBreaks.java new file mode 100644 index 000000000000..bd065eee75a5 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/listadbreaks/SyncListAdBreaks.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_AdBreakService_ListAdBreaks_sync] +import com.google.ads.admanager.v1.AdBreak; +import com.google.ads.admanager.v1.AdBreakServiceClient; +import com.google.ads.admanager.v1.ListAdBreaksRequest; +import com.google.ads.admanager.v1.LiveStreamEventName; + +public class SyncListAdBreaks { + + public static void main(String[] args) throws Exception { + syncListAdBreaks(); + } + + public static void syncListAdBreaks() 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 (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) { + ListAdBreaksRequest request = + ListAdBreaksRequest.newBuilder() + .setParent(LiveStreamEventName.of("[NETWORK_CODE]", "[LIVE_STREAM_EVENT]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + for (AdBreak element : adBreakServiceClient.listAdBreaks(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_AdBreakService_ListAdBreaks_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/listadbreaks/SyncListAdBreaksLivestreameventname.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/listadbreaks/SyncListAdBreaksLivestreameventname.java new file mode 100644 index 000000000000..0b63b380eb83 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/listadbreaks/SyncListAdBreaksLivestreameventname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_AdBreakService_ListAdBreaks_Livestreameventname_sync] +import com.google.ads.admanager.v1.AdBreak; +import com.google.ads.admanager.v1.AdBreakServiceClient; +import com.google.ads.admanager.v1.LiveStreamEventName; + +public class SyncListAdBreaksLivestreameventname { + + public static void main(String[] args) throws Exception { + syncListAdBreaksLivestreameventname(); + } + + public static void syncListAdBreaksLivestreameventname() 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 (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) { + LiveStreamEventName parent = LiveStreamEventName.of("[NETWORK_CODE]", "[LIVE_STREAM_EVENT]"); + for (AdBreak element : adBreakServiceClient.listAdBreaks(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_AdBreakService_ListAdBreaks_Livestreameventname_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/listadbreaks/SyncListAdBreaksString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/listadbreaks/SyncListAdBreaksString.java new file mode 100644 index 000000000000..df96f4fcc7f4 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/listadbreaks/SyncListAdBreaksString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_AdBreakService_ListAdBreaks_String_sync] +import com.google.ads.admanager.v1.AdBreak; +import com.google.ads.admanager.v1.AdBreakServiceClient; +import com.google.ads.admanager.v1.LiveStreamEventName; + +public class SyncListAdBreaksString { + + public static void main(String[] args) throws Exception { + syncListAdBreaksString(); + } + + public static void syncListAdBreaksString() 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 (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) { + String parent = LiveStreamEventName.of("[NETWORK_CODE]", "[LIVE_STREAM_EVENT]").toString(); + for (AdBreak element : adBreakServiceClient.listAdBreaks(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_AdBreakService_ListAdBreaks_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/updateadbreak/AsyncUpdateAdBreak.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/updateadbreak/AsyncUpdateAdBreak.java new file mode 100644 index 000000000000..aba96c323d15 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/updateadbreak/AsyncUpdateAdBreak.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_AdBreakService_UpdateAdBreak_async] +import com.google.ads.admanager.v1.AdBreak; +import com.google.ads.admanager.v1.AdBreakServiceClient; +import com.google.ads.admanager.v1.UpdateAdBreakRequest; +import com.google.api.core.ApiFuture; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateAdBreak { + + public static void main(String[] args) throws Exception { + asyncUpdateAdBreak(); + } + + public static void asyncUpdateAdBreak() 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 (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) { + UpdateAdBreakRequest request = + UpdateAdBreakRequest.newBuilder() + .setAdBreak(AdBreak.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = adBreakServiceClient.updateAdBreakCallable().futureCall(request); + // Do something. + AdBreak response = future.get(); + } + } +} +// [END admanager_v1_generated_AdBreakService_UpdateAdBreak_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/updateadbreak/SyncUpdateAdBreak.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/updateadbreak/SyncUpdateAdBreak.java new file mode 100644 index 000000000000..610e0d6387f6 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/updateadbreak/SyncUpdateAdBreak.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_AdBreakService_UpdateAdBreak_sync] +import com.google.ads.admanager.v1.AdBreak; +import com.google.ads.admanager.v1.AdBreakServiceClient; +import com.google.ads.admanager.v1.UpdateAdBreakRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateAdBreak { + + public static void main(String[] args) throws Exception { + syncUpdateAdBreak(); + } + + public static void syncUpdateAdBreak() 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 (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) { + UpdateAdBreakRequest request = + UpdateAdBreakRequest.newBuilder() + .setAdBreak(AdBreak.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + AdBreak response = adBreakServiceClient.updateAdBreak(request); + } + } +} +// [END admanager_v1_generated_AdBreakService_UpdateAdBreak_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/updateadbreak/SyncUpdateAdBreakAdbreakFieldmask.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/updateadbreak/SyncUpdateAdBreakAdbreakFieldmask.java new file mode 100644 index 000000000000..696aeeb89cb1 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservice/updateadbreak/SyncUpdateAdBreakAdbreakFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_AdBreakService_UpdateAdBreak_AdbreakFieldmask_sync] +import com.google.ads.admanager.v1.AdBreak; +import com.google.ads.admanager.v1.AdBreakServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateAdBreakAdbreakFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateAdBreakAdbreakFieldmask(); + } + + public static void syncUpdateAdBreakAdbreakFieldmask() 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 (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) { + AdBreak adBreak = AdBreak.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + AdBreak response = adBreakServiceClient.updateAdBreak(adBreak, updateMask); + } + } +} +// [END admanager_v1_generated_AdBreakService_UpdateAdBreak_AdbreakFieldmask_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservicesettings/getadbreak/SyncGetAdBreak.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservicesettings/getadbreak/SyncGetAdBreak.java new file mode 100644 index 000000000000..6fd4afd800bd --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adbreakservicesettings/getadbreak/SyncGetAdBreak.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_AdBreakServiceSettings_GetAdBreak_sync] +import com.google.ads.admanager.v1.AdBreakServiceSettings; +import java.time.Duration; + +public class SyncGetAdBreak { + + public static void main(String[] args) throws Exception { + syncGetAdBreak(); + } + + public static void syncGetAdBreak() 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 + AdBreakServiceSettings.Builder adBreakServiceSettingsBuilder = + AdBreakServiceSettings.newBuilder(); + adBreakServiceSettingsBuilder + .getAdBreakSettings() + .setRetrySettings( + adBreakServiceSettingsBuilder + .getAdBreakSettings() + .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()); + AdBreakServiceSettings adBreakServiceSettings = adBreakServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_AdBreakServiceSettings_GetAdBreak_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/bandwidthgroupservice/create/SyncCreateSetCredentialsProvider.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/bandwidthgroupservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..7098c7ba528c --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/bandwidthgroupservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_BandwidthGroupService_Create_SetCredentialsProvider_sync] +import com.google.ads.admanager.v1.BandwidthGroupServiceClient; +import com.google.ads.admanager.v1.BandwidthGroupServiceSettings; +import com.google.ads.admanager.v1.myCredentials; +import com.google.api.gax.core.FixedCredentialsProvider; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() 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 + BandwidthGroupServiceSettings bandwidthGroupServiceSettings = + BandwidthGroupServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + BandwidthGroupServiceClient bandwidthGroupServiceClient = + BandwidthGroupServiceClient.create(bandwidthGroupServiceSettings); + } +} +// [END admanager_v1_generated_BandwidthGroupService_Create_SetCredentialsProvider_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/bandwidthgroupservice/create/SyncCreateSetEndpoint.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/bandwidthgroupservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..77e07d861613 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/bandwidthgroupservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_BandwidthGroupService_Create_SetEndpoint_sync] +import com.google.ads.admanager.v1.BandwidthGroupServiceClient; +import com.google.ads.admanager.v1.BandwidthGroupServiceSettings; +import com.google.ads.admanager.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() 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 + BandwidthGroupServiceSettings bandwidthGroupServiceSettings = + BandwidthGroupServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + BandwidthGroupServiceClient bandwidthGroupServiceClient = + BandwidthGroupServiceClient.create(bandwidthGroupServiceSettings); + } +} +// [END admanager_v1_generated_BandwidthGroupService_Create_SetEndpoint_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/bandwidthgroupservice/getbandwidthgroup/AsyncGetBandwidthGroup.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/bandwidthgroupservice/getbandwidthgroup/AsyncGetBandwidthGroup.java new file mode 100644 index 000000000000..c13a22416c8f --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/bandwidthgroupservice/getbandwidthgroup/AsyncGetBandwidthGroup.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_BandwidthGroupService_GetBandwidthGroup_async] +import com.google.ads.admanager.v1.BandwidthGroup; +import com.google.ads.admanager.v1.BandwidthGroupName; +import com.google.ads.admanager.v1.BandwidthGroupServiceClient; +import com.google.ads.admanager.v1.GetBandwidthGroupRequest; +import com.google.api.core.ApiFuture; + +public class AsyncGetBandwidthGroup { + + public static void main(String[] args) throws Exception { + asyncGetBandwidthGroup(); + } + + public static void asyncGetBandwidthGroup() 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 (BandwidthGroupServiceClient bandwidthGroupServiceClient = + BandwidthGroupServiceClient.create()) { + GetBandwidthGroupRequest request = + GetBandwidthGroupRequest.newBuilder() + .setName(BandwidthGroupName.of("[NETWORK_CODE]", "[BANDWIDTH_GROUP]").toString()) + .build(); + ApiFuture future = + bandwidthGroupServiceClient.getBandwidthGroupCallable().futureCall(request); + // Do something. + BandwidthGroup response = future.get(); + } + } +} +// [END admanager_v1_generated_BandwidthGroupService_GetBandwidthGroup_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/bandwidthgroupservice/getbandwidthgroup/SyncGetBandwidthGroup.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/bandwidthgroupservice/getbandwidthgroup/SyncGetBandwidthGroup.java new file mode 100644 index 000000000000..a4ed550cd2ba --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/bandwidthgroupservice/getbandwidthgroup/SyncGetBandwidthGroup.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_BandwidthGroupService_GetBandwidthGroup_sync] +import com.google.ads.admanager.v1.BandwidthGroup; +import com.google.ads.admanager.v1.BandwidthGroupName; +import com.google.ads.admanager.v1.BandwidthGroupServiceClient; +import com.google.ads.admanager.v1.GetBandwidthGroupRequest; + +public class SyncGetBandwidthGroup { + + public static void main(String[] args) throws Exception { + syncGetBandwidthGroup(); + } + + public static void syncGetBandwidthGroup() 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 (BandwidthGroupServiceClient bandwidthGroupServiceClient = + BandwidthGroupServiceClient.create()) { + GetBandwidthGroupRequest request = + GetBandwidthGroupRequest.newBuilder() + .setName(BandwidthGroupName.of("[NETWORK_CODE]", "[BANDWIDTH_GROUP]").toString()) + .build(); + BandwidthGroup response = bandwidthGroupServiceClient.getBandwidthGroup(request); + } + } +} +// [END admanager_v1_generated_BandwidthGroupService_GetBandwidthGroup_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/bandwidthgroupservice/getbandwidthgroup/SyncGetBandwidthGroupBandwidthgroupname.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/bandwidthgroupservice/getbandwidthgroup/SyncGetBandwidthGroupBandwidthgroupname.java new file mode 100644 index 000000000000..601bf553c1ab --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/bandwidthgroupservice/getbandwidthgroup/SyncGetBandwidthGroupBandwidthgroupname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_BandwidthGroupService_GetBandwidthGroup_Bandwidthgroupname_sync] +import com.google.ads.admanager.v1.BandwidthGroup; +import com.google.ads.admanager.v1.BandwidthGroupName; +import com.google.ads.admanager.v1.BandwidthGroupServiceClient; + +public class SyncGetBandwidthGroupBandwidthgroupname { + + public static void main(String[] args) throws Exception { + syncGetBandwidthGroupBandwidthgroupname(); + } + + public static void syncGetBandwidthGroupBandwidthgroupname() 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 (BandwidthGroupServiceClient bandwidthGroupServiceClient = + BandwidthGroupServiceClient.create()) { + BandwidthGroupName name = BandwidthGroupName.of("[NETWORK_CODE]", "[BANDWIDTH_GROUP]"); + BandwidthGroup response = bandwidthGroupServiceClient.getBandwidthGroup(name); + } + } +} +// [END admanager_v1_generated_BandwidthGroupService_GetBandwidthGroup_Bandwidthgroupname_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/bandwidthgroupservice/getbandwidthgroup/SyncGetBandwidthGroupString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/bandwidthgroupservice/getbandwidthgroup/SyncGetBandwidthGroupString.java new file mode 100644 index 000000000000..c9970dbd9882 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/bandwidthgroupservice/getbandwidthgroup/SyncGetBandwidthGroupString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_BandwidthGroupService_GetBandwidthGroup_String_sync] +import com.google.ads.admanager.v1.BandwidthGroup; +import com.google.ads.admanager.v1.BandwidthGroupName; +import com.google.ads.admanager.v1.BandwidthGroupServiceClient; + +public class SyncGetBandwidthGroupString { + + public static void main(String[] args) throws Exception { + syncGetBandwidthGroupString(); + } + + public static void syncGetBandwidthGroupString() 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 (BandwidthGroupServiceClient bandwidthGroupServiceClient = + BandwidthGroupServiceClient.create()) { + String name = BandwidthGroupName.of("[NETWORK_CODE]", "[BANDWIDTH_GROUP]").toString(); + BandwidthGroup response = bandwidthGroupServiceClient.getBandwidthGroup(name); + } + } +} +// [END admanager_v1_generated_BandwidthGroupService_GetBandwidthGroup_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/bandwidthgroupservice/listbandwidthgroups/AsyncListBandwidthGroups.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/bandwidthgroupservice/listbandwidthgroups/AsyncListBandwidthGroups.java new file mode 100644 index 000000000000..3355d0187f90 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/bandwidthgroupservice/listbandwidthgroups/AsyncListBandwidthGroups.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_BandwidthGroupService_ListBandwidthGroups_async] +import com.google.ads.admanager.v1.BandwidthGroup; +import com.google.ads.admanager.v1.BandwidthGroupServiceClient; +import com.google.ads.admanager.v1.ListBandwidthGroupsRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.api.core.ApiFuture; + +public class AsyncListBandwidthGroups { + + public static void main(String[] args) throws Exception { + asyncListBandwidthGroups(); + } + + public static void asyncListBandwidthGroups() 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 (BandwidthGroupServiceClient bandwidthGroupServiceClient = + BandwidthGroupServiceClient.create()) { + ListBandwidthGroupsRequest request = + ListBandwidthGroupsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + ApiFuture future = + bandwidthGroupServiceClient.listBandwidthGroupsPagedCallable().futureCall(request); + // Do something. + for (BandwidthGroup element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_BandwidthGroupService_ListBandwidthGroups_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/bandwidthgroupservice/listbandwidthgroups/AsyncListBandwidthGroupsPaged.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/bandwidthgroupservice/listbandwidthgroups/AsyncListBandwidthGroupsPaged.java new file mode 100644 index 000000000000..a9b368f76071 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/bandwidthgroupservice/listbandwidthgroups/AsyncListBandwidthGroupsPaged.java @@ -0,0 +1,66 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_BandwidthGroupService_ListBandwidthGroups_Paged_async] +import com.google.ads.admanager.v1.BandwidthGroup; +import com.google.ads.admanager.v1.BandwidthGroupServiceClient; +import com.google.ads.admanager.v1.ListBandwidthGroupsRequest; +import com.google.ads.admanager.v1.ListBandwidthGroupsResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.common.base.Strings; + +public class AsyncListBandwidthGroupsPaged { + + public static void main(String[] args) throws Exception { + asyncListBandwidthGroupsPaged(); + } + + public static void asyncListBandwidthGroupsPaged() 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 (BandwidthGroupServiceClient bandwidthGroupServiceClient = + BandwidthGroupServiceClient.create()) { + ListBandwidthGroupsRequest request = + ListBandwidthGroupsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + while (true) { + ListBandwidthGroupsResponse response = + bandwidthGroupServiceClient.listBandwidthGroupsCallable().call(request); + for (BandwidthGroup element : response.getBandwidthGroupsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END admanager_v1_generated_BandwidthGroupService_ListBandwidthGroups_Paged_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/bandwidthgroupservice/listbandwidthgroups/SyncListBandwidthGroups.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/bandwidthgroupservice/listbandwidthgroups/SyncListBandwidthGroups.java new file mode 100644 index 000000000000..dc330dcac81d --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/bandwidthgroupservice/listbandwidthgroups/SyncListBandwidthGroups.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_BandwidthGroupService_ListBandwidthGroups_sync] +import com.google.ads.admanager.v1.BandwidthGroup; +import com.google.ads.admanager.v1.BandwidthGroupServiceClient; +import com.google.ads.admanager.v1.ListBandwidthGroupsRequest; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListBandwidthGroups { + + public static void main(String[] args) throws Exception { + syncListBandwidthGroups(); + } + + public static void syncListBandwidthGroups() 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 (BandwidthGroupServiceClient bandwidthGroupServiceClient = + BandwidthGroupServiceClient.create()) { + ListBandwidthGroupsRequest request = + ListBandwidthGroupsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + for (BandwidthGroup element : + bandwidthGroupServiceClient.listBandwidthGroups(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_BandwidthGroupService_ListBandwidthGroups_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/bandwidthgroupservice/listbandwidthgroups/SyncListBandwidthGroupsNetworkname.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/bandwidthgroupservice/listbandwidthgroups/SyncListBandwidthGroupsNetworkname.java new file mode 100644 index 000000000000..ba13ec0e6062 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/bandwidthgroupservice/listbandwidthgroups/SyncListBandwidthGroupsNetworkname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_BandwidthGroupService_ListBandwidthGroups_Networkname_sync] +import com.google.ads.admanager.v1.BandwidthGroup; +import com.google.ads.admanager.v1.BandwidthGroupServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListBandwidthGroupsNetworkname { + + public static void main(String[] args) throws Exception { + syncListBandwidthGroupsNetworkname(); + } + + public static void syncListBandwidthGroupsNetworkname() 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 (BandwidthGroupServiceClient bandwidthGroupServiceClient = + BandwidthGroupServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + for (BandwidthGroup element : + bandwidthGroupServiceClient.listBandwidthGroups(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_BandwidthGroupService_ListBandwidthGroups_Networkname_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/bandwidthgroupservice/listbandwidthgroups/SyncListBandwidthGroupsString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/bandwidthgroupservice/listbandwidthgroups/SyncListBandwidthGroupsString.java new file mode 100644 index 000000000000..66ee13f9b62f --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/bandwidthgroupservice/listbandwidthgroups/SyncListBandwidthGroupsString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_BandwidthGroupService_ListBandwidthGroups_String_sync] +import com.google.ads.admanager.v1.BandwidthGroup; +import com.google.ads.admanager.v1.BandwidthGroupServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListBandwidthGroupsString { + + public static void main(String[] args) throws Exception { + syncListBandwidthGroupsString(); + } + + public static void syncListBandwidthGroupsString() 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 (BandwidthGroupServiceClient bandwidthGroupServiceClient = + BandwidthGroupServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + for (BandwidthGroup element : + bandwidthGroupServiceClient.listBandwidthGroups(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_BandwidthGroupService_ListBandwidthGroups_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/bandwidthgroupservicesettings/getbandwidthgroup/SyncGetBandwidthGroup.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/bandwidthgroupservicesettings/getbandwidthgroup/SyncGetBandwidthGroup.java new file mode 100644 index 000000000000..f0788f653425 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/bandwidthgroupservicesettings/getbandwidthgroup/SyncGetBandwidthGroup.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_BandwidthGroupServiceSettings_GetBandwidthGroup_sync] +import com.google.ads.admanager.v1.BandwidthGroupServiceSettings; +import java.time.Duration; + +public class SyncGetBandwidthGroup { + + public static void main(String[] args) throws Exception { + syncGetBandwidthGroup(); + } + + public static void syncGetBandwidthGroup() 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 + BandwidthGroupServiceSettings.Builder bandwidthGroupServiceSettingsBuilder = + BandwidthGroupServiceSettings.newBuilder(); + bandwidthGroupServiceSettingsBuilder + .getBandwidthGroupSettings() + .setRetrySettings( + bandwidthGroupServiceSettingsBuilder + .getBandwidthGroupSettings() + .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()); + BandwidthGroupServiceSettings bandwidthGroupServiceSettings = + bandwidthGroupServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_BandwidthGroupServiceSettings_GetBandwidthGroup_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingvalueservice/getcustomtargetingvalue/AsyncGetCustomTargetingValue.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingvalueservice/getcustomtargetingvalue/AsyncGetCustomTargetingValue.java index 35ac45c94c8b..3a1549f887c6 100644 --- a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingvalueservice/getcustomtargetingvalue/AsyncGetCustomTargetingValue.java +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingvalueservice/getcustomtargetingvalue/AsyncGetCustomTargetingValue.java @@ -40,8 +40,7 @@ public static void asyncGetCustomTargetingValue() throws Exception { GetCustomTargetingValueRequest request = GetCustomTargetingValueRequest.newBuilder() .setName( - CustomTargetingValueName.of( - "[NETWORK_CODE]", "[CUSTOM_TARGETING_KEY]", "[CUSTOM_TARGETING_VALUE]") + CustomTargetingValueName.of("[NETWORK_CODE]", "[CUSTOM_TARGETING_VALUE]") .toString()) .build(); ApiFuture future = diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingvalueservice/getcustomtargetingvalue/SyncGetCustomTargetingValue.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingvalueservice/getcustomtargetingvalue/SyncGetCustomTargetingValue.java index ede79197475c..cab66298853c 100644 --- a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingvalueservice/getcustomtargetingvalue/SyncGetCustomTargetingValue.java +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingvalueservice/getcustomtargetingvalue/SyncGetCustomTargetingValue.java @@ -39,8 +39,7 @@ public static void syncGetCustomTargetingValue() throws Exception { GetCustomTargetingValueRequest request = GetCustomTargetingValueRequest.newBuilder() .setName( - CustomTargetingValueName.of( - "[NETWORK_CODE]", "[CUSTOM_TARGETING_KEY]", "[CUSTOM_TARGETING_VALUE]") + CustomTargetingValueName.of("[NETWORK_CODE]", "[CUSTOM_TARGETING_VALUE]") .toString()) .build(); CustomTargetingValue response = diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingvalueservice/getcustomtargetingvalue/SyncGetCustomTargetingValueCustomtargetingvaluename.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingvalueservice/getcustomtargetingvalue/SyncGetCustomTargetingValueCustomtargetingvaluename.java index d3e76d50587e..210e86069058 100644 --- a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingvalueservice/getcustomtargetingvalue/SyncGetCustomTargetingValueCustomtargetingvaluename.java +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingvalueservice/getcustomtargetingvalue/SyncGetCustomTargetingValueCustomtargetingvaluename.java @@ -36,8 +36,7 @@ public static void syncGetCustomTargetingValueCustomtargetingvaluename() throws try (CustomTargetingValueServiceClient customTargetingValueServiceClient = CustomTargetingValueServiceClient.create()) { CustomTargetingValueName name = - CustomTargetingValueName.of( - "[NETWORK_CODE]", "[CUSTOM_TARGETING_KEY]", "[CUSTOM_TARGETING_VALUE]"); + CustomTargetingValueName.of("[NETWORK_CODE]", "[CUSTOM_TARGETING_VALUE]"); CustomTargetingValue response = customTargetingValueServiceClient.getCustomTargetingValue(name); } diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingvalueservice/getcustomtargetingvalue/SyncGetCustomTargetingValueString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingvalueservice/getcustomtargetingvalue/SyncGetCustomTargetingValueString.java index f12096c4c540..94a84c733096 100644 --- a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingvalueservice/getcustomtargetingvalue/SyncGetCustomTargetingValueString.java +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingvalueservice/getcustomtargetingvalue/SyncGetCustomTargetingValueString.java @@ -36,9 +36,7 @@ public static void syncGetCustomTargetingValueString() throws Exception { try (CustomTargetingValueServiceClient customTargetingValueServiceClient = CustomTargetingValueServiceClient.create()) { String name = - CustomTargetingValueName.of( - "[NETWORK_CODE]", "[CUSTOM_TARGETING_KEY]", "[CUSTOM_TARGETING_VALUE]") - .toString(); + CustomTargetingValueName.of("[NETWORK_CODE]", "[CUSTOM_TARGETING_VALUE]").toString(); CustomTargetingValue response = customTargetingValueServiceClient.getCustomTargetingValue(name); } diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingvalueservice/listcustomtargetingvalues/AsyncListCustomTargetingValues.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingvalueservice/listcustomtargetingvalues/AsyncListCustomTargetingValues.java index 6d51e1e61dec..06a2b18aa4f2 100644 --- a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingvalueservice/listcustomtargetingvalues/AsyncListCustomTargetingValues.java +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingvalueservice/listcustomtargetingvalues/AsyncListCustomTargetingValues.java @@ -17,10 +17,10 @@ package com.google.ads.admanager.v1.samples; // [START admanager_v1_generated_CustomTargetingValueService_ListCustomTargetingValues_async] -import com.google.ads.admanager.v1.CustomTargetingKeyName; import com.google.ads.admanager.v1.CustomTargetingValue; import com.google.ads.admanager.v1.CustomTargetingValueServiceClient; import com.google.ads.admanager.v1.ListCustomTargetingValuesRequest; +import com.google.ads.admanager.v1.NetworkName; import com.google.api.core.ApiFuture; public class AsyncListCustomTargetingValues { @@ -39,8 +39,7 @@ public static void asyncListCustomTargetingValues() throws Exception { CustomTargetingValueServiceClient.create()) { ListCustomTargetingValuesRequest request = ListCustomTargetingValuesRequest.newBuilder() - .setParent( - CustomTargetingKeyName.of("[NETWORK_CODE]", "[CUSTOM_TARGETING_KEY]").toString()) + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingvalueservice/listcustomtargetingvalues/AsyncListCustomTargetingValuesPaged.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingvalueservice/listcustomtargetingvalues/AsyncListCustomTargetingValuesPaged.java index 9c42a4ea7156..8e5d62e4d5fa 100644 --- a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingvalueservice/listcustomtargetingvalues/AsyncListCustomTargetingValuesPaged.java +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingvalueservice/listcustomtargetingvalues/AsyncListCustomTargetingValuesPaged.java @@ -17,11 +17,11 @@ package com.google.ads.admanager.v1.samples; // [START admanager_v1_generated_CustomTargetingValueService_ListCustomTargetingValues_Paged_async] -import com.google.ads.admanager.v1.CustomTargetingKeyName; import com.google.ads.admanager.v1.CustomTargetingValue; import com.google.ads.admanager.v1.CustomTargetingValueServiceClient; import com.google.ads.admanager.v1.ListCustomTargetingValuesRequest; import com.google.ads.admanager.v1.ListCustomTargetingValuesResponse; +import com.google.ads.admanager.v1.NetworkName; import com.google.common.base.Strings; public class AsyncListCustomTargetingValuesPaged { @@ -40,8 +40,7 @@ public static void asyncListCustomTargetingValuesPaged() throws Exception { CustomTargetingValueServiceClient.create()) { ListCustomTargetingValuesRequest request = ListCustomTargetingValuesRequest.newBuilder() - .setParent( - CustomTargetingKeyName.of("[NETWORK_CODE]", "[CUSTOM_TARGETING_KEY]").toString()) + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingvalueservice/listcustomtargetingvalues/SyncListCustomTargetingValues.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingvalueservice/listcustomtargetingvalues/SyncListCustomTargetingValues.java index b89d5dd3b14f..d6890420a4fa 100644 --- a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingvalueservice/listcustomtargetingvalues/SyncListCustomTargetingValues.java +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingvalueservice/listcustomtargetingvalues/SyncListCustomTargetingValues.java @@ -17,10 +17,10 @@ package com.google.ads.admanager.v1.samples; // [START admanager_v1_generated_CustomTargetingValueService_ListCustomTargetingValues_sync] -import com.google.ads.admanager.v1.CustomTargetingKeyName; import com.google.ads.admanager.v1.CustomTargetingValue; import com.google.ads.admanager.v1.CustomTargetingValueServiceClient; import com.google.ads.admanager.v1.ListCustomTargetingValuesRequest; +import com.google.ads.admanager.v1.NetworkName; public class SyncListCustomTargetingValues { @@ -38,8 +38,7 @@ public static void syncListCustomTargetingValues() throws Exception { CustomTargetingValueServiceClient.create()) { ListCustomTargetingValuesRequest request = ListCustomTargetingValuesRequest.newBuilder() - .setParent( - CustomTargetingKeyName.of("[NETWORK_CODE]", "[CUSTOM_TARGETING_KEY]").toString()) + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingvalueservice/listcustomtargetingvalues/SyncListCustomTargetingValuesCustomtargetingkeyname.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingvalueservice/listcustomtargetingvalues/SyncListCustomTargetingValuesNetworkname.java similarity index 77% rename from java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingvalueservice/listcustomtargetingvalues/SyncListCustomTargetingValuesCustomtargetingkeyname.java rename to java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingvalueservice/listcustomtargetingvalues/SyncListCustomTargetingValuesNetworkname.java index 2e8d05fcb259..677a4950362a 100644 --- a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingvalueservice/listcustomtargetingvalues/SyncListCustomTargetingValuesCustomtargetingkeyname.java +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingvalueservice/listcustomtargetingvalues/SyncListCustomTargetingValuesNetworkname.java @@ -16,18 +16,18 @@ package com.google.ads.admanager.v1.samples; -// [START admanager_v1_generated_CustomTargetingValueService_ListCustomTargetingValues_Customtargetingkeyname_sync] -import com.google.ads.admanager.v1.CustomTargetingKeyName; +// [START admanager_v1_generated_CustomTargetingValueService_ListCustomTargetingValues_Networkname_sync] import com.google.ads.admanager.v1.CustomTargetingValue; import com.google.ads.admanager.v1.CustomTargetingValueServiceClient; +import com.google.ads.admanager.v1.NetworkName; -public class SyncListCustomTargetingValuesCustomtargetingkeyname { +public class SyncListCustomTargetingValuesNetworkname { public static void main(String[] args) throws Exception { - syncListCustomTargetingValuesCustomtargetingkeyname(); + syncListCustomTargetingValuesNetworkname(); } - public static void syncListCustomTargetingValuesCustomtargetingkeyname() throws Exception { + public static void syncListCustomTargetingValuesNetworkname() 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. @@ -35,8 +35,7 @@ public static void syncListCustomTargetingValuesCustomtargetingkeyname() throws // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CustomTargetingValueServiceClient customTargetingValueServiceClient = CustomTargetingValueServiceClient.create()) { - CustomTargetingKeyName parent = - CustomTargetingKeyName.of("[NETWORK_CODE]", "[CUSTOM_TARGETING_KEY]"); + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); for (CustomTargetingValue element : customTargetingValueServiceClient.listCustomTargetingValues(parent).iterateAll()) { // doThingsWith(element); @@ -44,4 +43,4 @@ public static void syncListCustomTargetingValuesCustomtargetingkeyname() throws } } } -// [END admanager_v1_generated_CustomTargetingValueService_ListCustomTargetingValues_Customtargetingkeyname_sync] +// [END admanager_v1_generated_CustomTargetingValueService_ListCustomTargetingValues_Networkname_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingvalueservice/listcustomtargetingvalues/SyncListCustomTargetingValuesString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingvalueservice/listcustomtargetingvalues/SyncListCustomTargetingValuesString.java index 29fe1867d082..2b8ffd2c551c 100644 --- a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingvalueservice/listcustomtargetingvalues/SyncListCustomTargetingValuesString.java +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingvalueservice/listcustomtargetingvalues/SyncListCustomTargetingValuesString.java @@ -17,9 +17,9 @@ package com.google.ads.admanager.v1.samples; // [START admanager_v1_generated_CustomTargetingValueService_ListCustomTargetingValues_String_sync] -import com.google.ads.admanager.v1.CustomTargetingKeyName; import com.google.ads.admanager.v1.CustomTargetingValue; import com.google.ads.admanager.v1.CustomTargetingValueServiceClient; +import com.google.ads.admanager.v1.NetworkName; public class SyncListCustomTargetingValuesString { @@ -35,8 +35,7 @@ public static void syncListCustomTargetingValuesString() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CustomTargetingValueServiceClient customTargetingValueServiceClient = CustomTargetingValueServiceClient.create()) { - String parent = - CustomTargetingKeyName.of("[NETWORK_CODE]", "[CUSTOM_TARGETING_KEY]").toString(); + String parent = NetworkName.of("[NETWORK_CODE]").toString(); for (CustomTargetingValue element : customTargetingValueServiceClient.listCustomTargetingValues(parent).iterateAll()) { // doThingsWith(element); diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecategoryservice/create/SyncCreateSetCredentialsProvider.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecategoryservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..0f3adad0ee4e --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecategoryservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_DeviceCategoryService_Create_SetCredentialsProvider_sync] +import com.google.ads.admanager.v1.DeviceCategoryServiceClient; +import com.google.ads.admanager.v1.DeviceCategoryServiceSettings; +import com.google.ads.admanager.v1.myCredentials; +import com.google.api.gax.core.FixedCredentialsProvider; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() 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 + DeviceCategoryServiceSettings deviceCategoryServiceSettings = + DeviceCategoryServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + DeviceCategoryServiceClient deviceCategoryServiceClient = + DeviceCategoryServiceClient.create(deviceCategoryServiceSettings); + } +} +// [END admanager_v1_generated_DeviceCategoryService_Create_SetCredentialsProvider_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecategoryservice/create/SyncCreateSetEndpoint.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecategoryservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..413f127005b3 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecategoryservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_DeviceCategoryService_Create_SetEndpoint_sync] +import com.google.ads.admanager.v1.DeviceCategoryServiceClient; +import com.google.ads.admanager.v1.DeviceCategoryServiceSettings; +import com.google.ads.admanager.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() 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 + DeviceCategoryServiceSettings deviceCategoryServiceSettings = + DeviceCategoryServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + DeviceCategoryServiceClient deviceCategoryServiceClient = + DeviceCategoryServiceClient.create(deviceCategoryServiceSettings); + } +} +// [END admanager_v1_generated_DeviceCategoryService_Create_SetEndpoint_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecategoryservice/getdevicecategory/AsyncGetDeviceCategory.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecategoryservice/getdevicecategory/AsyncGetDeviceCategory.java new file mode 100644 index 000000000000..5011e243b160 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecategoryservice/getdevicecategory/AsyncGetDeviceCategory.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_DeviceCategoryService_GetDeviceCategory_async] +import com.google.ads.admanager.v1.DeviceCategory; +import com.google.ads.admanager.v1.DeviceCategoryName; +import com.google.ads.admanager.v1.DeviceCategoryServiceClient; +import com.google.ads.admanager.v1.GetDeviceCategoryRequest; +import com.google.api.core.ApiFuture; + +public class AsyncGetDeviceCategory { + + public static void main(String[] args) throws Exception { + asyncGetDeviceCategory(); + } + + public static void asyncGetDeviceCategory() 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 (DeviceCategoryServiceClient deviceCategoryServiceClient = + DeviceCategoryServiceClient.create()) { + GetDeviceCategoryRequest request = + GetDeviceCategoryRequest.newBuilder() + .setName(DeviceCategoryName.of("[NETWORK_CODE]", "[DEVICE_CATEGORY]").toString()) + .build(); + ApiFuture future = + deviceCategoryServiceClient.getDeviceCategoryCallable().futureCall(request); + // Do something. + DeviceCategory response = future.get(); + } + } +} +// [END admanager_v1_generated_DeviceCategoryService_GetDeviceCategory_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecategoryservice/getdevicecategory/SyncGetDeviceCategory.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecategoryservice/getdevicecategory/SyncGetDeviceCategory.java new file mode 100644 index 000000000000..0989f72ad3a2 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecategoryservice/getdevicecategory/SyncGetDeviceCategory.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_DeviceCategoryService_GetDeviceCategory_sync] +import com.google.ads.admanager.v1.DeviceCategory; +import com.google.ads.admanager.v1.DeviceCategoryName; +import com.google.ads.admanager.v1.DeviceCategoryServiceClient; +import com.google.ads.admanager.v1.GetDeviceCategoryRequest; + +public class SyncGetDeviceCategory { + + public static void main(String[] args) throws Exception { + syncGetDeviceCategory(); + } + + public static void syncGetDeviceCategory() 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 (DeviceCategoryServiceClient deviceCategoryServiceClient = + DeviceCategoryServiceClient.create()) { + GetDeviceCategoryRequest request = + GetDeviceCategoryRequest.newBuilder() + .setName(DeviceCategoryName.of("[NETWORK_CODE]", "[DEVICE_CATEGORY]").toString()) + .build(); + DeviceCategory response = deviceCategoryServiceClient.getDeviceCategory(request); + } + } +} +// [END admanager_v1_generated_DeviceCategoryService_GetDeviceCategory_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecategoryservice/getdevicecategory/SyncGetDeviceCategoryDevicecategoryname.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecategoryservice/getdevicecategory/SyncGetDeviceCategoryDevicecategoryname.java new file mode 100644 index 000000000000..2c668a3f7367 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecategoryservice/getdevicecategory/SyncGetDeviceCategoryDevicecategoryname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_DeviceCategoryService_GetDeviceCategory_Devicecategoryname_sync] +import com.google.ads.admanager.v1.DeviceCategory; +import com.google.ads.admanager.v1.DeviceCategoryName; +import com.google.ads.admanager.v1.DeviceCategoryServiceClient; + +public class SyncGetDeviceCategoryDevicecategoryname { + + public static void main(String[] args) throws Exception { + syncGetDeviceCategoryDevicecategoryname(); + } + + public static void syncGetDeviceCategoryDevicecategoryname() 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 (DeviceCategoryServiceClient deviceCategoryServiceClient = + DeviceCategoryServiceClient.create()) { + DeviceCategoryName name = DeviceCategoryName.of("[NETWORK_CODE]", "[DEVICE_CATEGORY]"); + DeviceCategory response = deviceCategoryServiceClient.getDeviceCategory(name); + } + } +} +// [END admanager_v1_generated_DeviceCategoryService_GetDeviceCategory_Devicecategoryname_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecategoryservice/getdevicecategory/SyncGetDeviceCategoryString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecategoryservice/getdevicecategory/SyncGetDeviceCategoryString.java new file mode 100644 index 000000000000..98db7c443e44 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecategoryservice/getdevicecategory/SyncGetDeviceCategoryString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_DeviceCategoryService_GetDeviceCategory_String_sync] +import com.google.ads.admanager.v1.DeviceCategory; +import com.google.ads.admanager.v1.DeviceCategoryName; +import com.google.ads.admanager.v1.DeviceCategoryServiceClient; + +public class SyncGetDeviceCategoryString { + + public static void main(String[] args) throws Exception { + syncGetDeviceCategoryString(); + } + + public static void syncGetDeviceCategoryString() 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 (DeviceCategoryServiceClient deviceCategoryServiceClient = + DeviceCategoryServiceClient.create()) { + String name = DeviceCategoryName.of("[NETWORK_CODE]", "[DEVICE_CATEGORY]").toString(); + DeviceCategory response = deviceCategoryServiceClient.getDeviceCategory(name); + } + } +} +// [END admanager_v1_generated_DeviceCategoryService_GetDeviceCategory_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecategoryservice/listdevicecategories/AsyncListDeviceCategories.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecategoryservice/listdevicecategories/AsyncListDeviceCategories.java new file mode 100644 index 000000000000..b97108906378 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecategoryservice/listdevicecategories/AsyncListDeviceCategories.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_DeviceCategoryService_ListDeviceCategories_async] +import com.google.ads.admanager.v1.DeviceCategory; +import com.google.ads.admanager.v1.DeviceCategoryServiceClient; +import com.google.ads.admanager.v1.ListDeviceCategoriesRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.api.core.ApiFuture; + +public class AsyncListDeviceCategories { + + public static void main(String[] args) throws Exception { + asyncListDeviceCategories(); + } + + public static void asyncListDeviceCategories() 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 (DeviceCategoryServiceClient deviceCategoryServiceClient = + DeviceCategoryServiceClient.create()) { + ListDeviceCategoriesRequest request = + ListDeviceCategoriesRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + ApiFuture future = + deviceCategoryServiceClient.listDeviceCategoriesPagedCallable().futureCall(request); + // Do something. + for (DeviceCategory element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_DeviceCategoryService_ListDeviceCategories_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecategoryservice/listdevicecategories/AsyncListDeviceCategoriesPaged.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecategoryservice/listdevicecategories/AsyncListDeviceCategoriesPaged.java new file mode 100644 index 000000000000..679c9205a05c --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecategoryservice/listdevicecategories/AsyncListDeviceCategoriesPaged.java @@ -0,0 +1,66 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_DeviceCategoryService_ListDeviceCategories_Paged_async] +import com.google.ads.admanager.v1.DeviceCategory; +import com.google.ads.admanager.v1.DeviceCategoryServiceClient; +import com.google.ads.admanager.v1.ListDeviceCategoriesRequest; +import com.google.ads.admanager.v1.ListDeviceCategoriesResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.common.base.Strings; + +public class AsyncListDeviceCategoriesPaged { + + public static void main(String[] args) throws Exception { + asyncListDeviceCategoriesPaged(); + } + + public static void asyncListDeviceCategoriesPaged() 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 (DeviceCategoryServiceClient deviceCategoryServiceClient = + DeviceCategoryServiceClient.create()) { + ListDeviceCategoriesRequest request = + ListDeviceCategoriesRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + while (true) { + ListDeviceCategoriesResponse response = + deviceCategoryServiceClient.listDeviceCategoriesCallable().call(request); + for (DeviceCategory element : response.getDeviceCategoriesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END admanager_v1_generated_DeviceCategoryService_ListDeviceCategories_Paged_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecategoryservice/listdevicecategories/SyncListDeviceCategories.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecategoryservice/listdevicecategories/SyncListDeviceCategories.java new file mode 100644 index 000000000000..71fdf448eaa5 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecategoryservice/listdevicecategories/SyncListDeviceCategories.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_DeviceCategoryService_ListDeviceCategories_sync] +import com.google.ads.admanager.v1.DeviceCategory; +import com.google.ads.admanager.v1.DeviceCategoryServiceClient; +import com.google.ads.admanager.v1.ListDeviceCategoriesRequest; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListDeviceCategories { + + public static void main(String[] args) throws Exception { + syncListDeviceCategories(); + } + + public static void syncListDeviceCategories() 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 (DeviceCategoryServiceClient deviceCategoryServiceClient = + DeviceCategoryServiceClient.create()) { + ListDeviceCategoriesRequest request = + ListDeviceCategoriesRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + for (DeviceCategory element : + deviceCategoryServiceClient.listDeviceCategories(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_DeviceCategoryService_ListDeviceCategories_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecategoryservice/listdevicecategories/SyncListDeviceCategoriesNetworkname.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecategoryservice/listdevicecategories/SyncListDeviceCategoriesNetworkname.java new file mode 100644 index 000000000000..0dcb10edb61d --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecategoryservice/listdevicecategories/SyncListDeviceCategoriesNetworkname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_DeviceCategoryService_ListDeviceCategories_Networkname_sync] +import com.google.ads.admanager.v1.DeviceCategory; +import com.google.ads.admanager.v1.DeviceCategoryServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListDeviceCategoriesNetworkname { + + public static void main(String[] args) throws Exception { + syncListDeviceCategoriesNetworkname(); + } + + public static void syncListDeviceCategoriesNetworkname() 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 (DeviceCategoryServiceClient deviceCategoryServiceClient = + DeviceCategoryServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + for (DeviceCategory element : + deviceCategoryServiceClient.listDeviceCategories(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_DeviceCategoryService_ListDeviceCategories_Networkname_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecategoryservice/listdevicecategories/SyncListDeviceCategoriesString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecategoryservice/listdevicecategories/SyncListDeviceCategoriesString.java new file mode 100644 index 000000000000..5f8891ae1ac5 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecategoryservice/listdevicecategories/SyncListDeviceCategoriesString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_DeviceCategoryService_ListDeviceCategories_String_sync] +import com.google.ads.admanager.v1.DeviceCategory; +import com.google.ads.admanager.v1.DeviceCategoryServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListDeviceCategoriesString { + + public static void main(String[] args) throws Exception { + syncListDeviceCategoriesString(); + } + + public static void syncListDeviceCategoriesString() 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 (DeviceCategoryServiceClient deviceCategoryServiceClient = + DeviceCategoryServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + for (DeviceCategory element : + deviceCategoryServiceClient.listDeviceCategories(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_DeviceCategoryService_ListDeviceCategories_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecategoryservicesettings/getdevicecategory/SyncGetDeviceCategory.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecategoryservicesettings/getdevicecategory/SyncGetDeviceCategory.java new file mode 100644 index 000000000000..47496c96683f --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/devicecategoryservicesettings/getdevicecategory/SyncGetDeviceCategory.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_DeviceCategoryServiceSettings_GetDeviceCategory_sync] +import com.google.ads.admanager.v1.DeviceCategoryServiceSettings; +import java.time.Duration; + +public class SyncGetDeviceCategory { + + public static void main(String[] args) throws Exception { + syncGetDeviceCategory(); + } + + public static void syncGetDeviceCategory() 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 + DeviceCategoryServiceSettings.Builder deviceCategoryServiceSettingsBuilder = + DeviceCategoryServiceSettings.newBuilder(); + deviceCategoryServiceSettingsBuilder + .getDeviceCategorySettings() + .setRetrySettings( + deviceCategoryServiceSettingsBuilder + .getDeviceCategorySettings() + .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()); + DeviceCategoryServiceSettings deviceCategoryServiceSettings = + deviceCategoryServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_DeviceCategoryServiceSettings_GetDeviceCategory_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/geotargetservice/create/SyncCreateSetCredentialsProvider.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/geotargetservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..f5123df3f8d0 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/geotargetservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_GeoTargetService_Create_SetCredentialsProvider_sync] +import com.google.ads.admanager.v1.GeoTargetServiceClient; +import com.google.ads.admanager.v1.GeoTargetServiceSettings; +import com.google.ads.admanager.v1.myCredentials; +import com.google.api.gax.core.FixedCredentialsProvider; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() 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 + GeoTargetServiceSettings geoTargetServiceSettings = + GeoTargetServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + GeoTargetServiceClient geoTargetServiceClient = + GeoTargetServiceClient.create(geoTargetServiceSettings); + } +} +// [END admanager_v1_generated_GeoTargetService_Create_SetCredentialsProvider_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/geotargetservice/create/SyncCreateSetEndpoint.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/geotargetservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..e30f00b64801 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/geotargetservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_GeoTargetService_Create_SetEndpoint_sync] +import com.google.ads.admanager.v1.GeoTargetServiceClient; +import com.google.ads.admanager.v1.GeoTargetServiceSettings; +import com.google.ads.admanager.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() 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 + GeoTargetServiceSettings geoTargetServiceSettings = + GeoTargetServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + GeoTargetServiceClient geoTargetServiceClient = + GeoTargetServiceClient.create(geoTargetServiceSettings); + } +} +// [END admanager_v1_generated_GeoTargetService_Create_SetEndpoint_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/geotargetservice/getgeotarget/AsyncGetGeoTarget.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/geotargetservice/getgeotarget/AsyncGetGeoTarget.java new file mode 100644 index 000000000000..fd113d99fac1 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/geotargetservice/getgeotarget/AsyncGetGeoTarget.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_GeoTargetService_GetGeoTarget_async] +import com.google.ads.admanager.v1.GeoTarget; +import com.google.ads.admanager.v1.GeoTargetName; +import com.google.ads.admanager.v1.GeoTargetServiceClient; +import com.google.ads.admanager.v1.GetGeoTargetRequest; +import com.google.api.core.ApiFuture; + +public class AsyncGetGeoTarget { + + public static void main(String[] args) throws Exception { + asyncGetGeoTarget(); + } + + public static void asyncGetGeoTarget() 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 (GeoTargetServiceClient geoTargetServiceClient = GeoTargetServiceClient.create()) { + GetGeoTargetRequest request = + GetGeoTargetRequest.newBuilder() + .setName(GeoTargetName.of("[NETWORK_CODE]", "[GEO_TARGET]").toString()) + .build(); + ApiFuture future = + geoTargetServiceClient.getGeoTargetCallable().futureCall(request); + // Do something. + GeoTarget response = future.get(); + } + } +} +// [END admanager_v1_generated_GeoTargetService_GetGeoTarget_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/geotargetservice/getgeotarget/SyncGetGeoTarget.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/geotargetservice/getgeotarget/SyncGetGeoTarget.java new file mode 100644 index 000000000000..985fbb81c900 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/geotargetservice/getgeotarget/SyncGetGeoTarget.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_GeoTargetService_GetGeoTarget_sync] +import com.google.ads.admanager.v1.GeoTarget; +import com.google.ads.admanager.v1.GeoTargetName; +import com.google.ads.admanager.v1.GeoTargetServiceClient; +import com.google.ads.admanager.v1.GetGeoTargetRequest; + +public class SyncGetGeoTarget { + + public static void main(String[] args) throws Exception { + syncGetGeoTarget(); + } + + public static void syncGetGeoTarget() 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 (GeoTargetServiceClient geoTargetServiceClient = GeoTargetServiceClient.create()) { + GetGeoTargetRequest request = + GetGeoTargetRequest.newBuilder() + .setName(GeoTargetName.of("[NETWORK_CODE]", "[GEO_TARGET]").toString()) + .build(); + GeoTarget response = geoTargetServiceClient.getGeoTarget(request); + } + } +} +// [END admanager_v1_generated_GeoTargetService_GetGeoTarget_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/geotargetservice/getgeotarget/SyncGetGeoTargetGeotargetname.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/geotargetservice/getgeotarget/SyncGetGeoTargetGeotargetname.java new file mode 100644 index 000000000000..1f750e8e6190 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/geotargetservice/getgeotarget/SyncGetGeoTargetGeotargetname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_GeoTargetService_GetGeoTarget_Geotargetname_sync] +import com.google.ads.admanager.v1.GeoTarget; +import com.google.ads.admanager.v1.GeoTargetName; +import com.google.ads.admanager.v1.GeoTargetServiceClient; + +public class SyncGetGeoTargetGeotargetname { + + public static void main(String[] args) throws Exception { + syncGetGeoTargetGeotargetname(); + } + + public static void syncGetGeoTargetGeotargetname() 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 (GeoTargetServiceClient geoTargetServiceClient = GeoTargetServiceClient.create()) { + GeoTargetName name = GeoTargetName.of("[NETWORK_CODE]", "[GEO_TARGET]"); + GeoTarget response = geoTargetServiceClient.getGeoTarget(name); + } + } +} +// [END admanager_v1_generated_GeoTargetService_GetGeoTarget_Geotargetname_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/geotargetservice/getgeotarget/SyncGetGeoTargetString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/geotargetservice/getgeotarget/SyncGetGeoTargetString.java new file mode 100644 index 000000000000..c335992bff02 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/geotargetservice/getgeotarget/SyncGetGeoTargetString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_GeoTargetService_GetGeoTarget_String_sync] +import com.google.ads.admanager.v1.GeoTarget; +import com.google.ads.admanager.v1.GeoTargetName; +import com.google.ads.admanager.v1.GeoTargetServiceClient; + +public class SyncGetGeoTargetString { + + public static void main(String[] args) throws Exception { + syncGetGeoTargetString(); + } + + public static void syncGetGeoTargetString() 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 (GeoTargetServiceClient geoTargetServiceClient = GeoTargetServiceClient.create()) { + String name = GeoTargetName.of("[NETWORK_CODE]", "[GEO_TARGET]").toString(); + GeoTarget response = geoTargetServiceClient.getGeoTarget(name); + } + } +} +// [END admanager_v1_generated_GeoTargetService_GetGeoTarget_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/geotargetservice/listgeotargets/AsyncListGeoTargets.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/geotargetservice/listgeotargets/AsyncListGeoTargets.java new file mode 100644 index 000000000000..204c00035a18 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/geotargetservice/listgeotargets/AsyncListGeoTargets.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_GeoTargetService_ListGeoTargets_async] +import com.google.ads.admanager.v1.GeoTarget; +import com.google.ads.admanager.v1.GeoTargetServiceClient; +import com.google.ads.admanager.v1.ListGeoTargetsRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.api.core.ApiFuture; + +public class AsyncListGeoTargets { + + public static void main(String[] args) throws Exception { + asyncListGeoTargets(); + } + + public static void asyncListGeoTargets() 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 (GeoTargetServiceClient geoTargetServiceClient = GeoTargetServiceClient.create()) { + ListGeoTargetsRequest request = + ListGeoTargetsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + ApiFuture future = + geoTargetServiceClient.listGeoTargetsPagedCallable().futureCall(request); + // Do something. + for (GeoTarget element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_GeoTargetService_ListGeoTargets_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/geotargetservice/listgeotargets/AsyncListGeoTargetsPaged.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/geotargetservice/listgeotargets/AsyncListGeoTargetsPaged.java new file mode 100644 index 000000000000..ea4215677f49 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/geotargetservice/listgeotargets/AsyncListGeoTargetsPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_GeoTargetService_ListGeoTargets_Paged_async] +import com.google.ads.admanager.v1.GeoTarget; +import com.google.ads.admanager.v1.GeoTargetServiceClient; +import com.google.ads.admanager.v1.ListGeoTargetsRequest; +import com.google.ads.admanager.v1.ListGeoTargetsResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.common.base.Strings; + +public class AsyncListGeoTargetsPaged { + + public static void main(String[] args) throws Exception { + asyncListGeoTargetsPaged(); + } + + public static void asyncListGeoTargetsPaged() 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 (GeoTargetServiceClient geoTargetServiceClient = GeoTargetServiceClient.create()) { + ListGeoTargetsRequest request = + ListGeoTargetsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + while (true) { + ListGeoTargetsResponse response = + geoTargetServiceClient.listGeoTargetsCallable().call(request); + for (GeoTarget element : response.getGeoTargetsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END admanager_v1_generated_GeoTargetService_ListGeoTargets_Paged_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/geotargetservice/listgeotargets/SyncListGeoTargets.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/geotargetservice/listgeotargets/SyncListGeoTargets.java new file mode 100644 index 000000000000..2efc671ba9c0 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/geotargetservice/listgeotargets/SyncListGeoTargets.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_GeoTargetService_ListGeoTargets_sync] +import com.google.ads.admanager.v1.GeoTarget; +import com.google.ads.admanager.v1.GeoTargetServiceClient; +import com.google.ads.admanager.v1.ListGeoTargetsRequest; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListGeoTargets { + + public static void main(String[] args) throws Exception { + syncListGeoTargets(); + } + + public static void syncListGeoTargets() 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 (GeoTargetServiceClient geoTargetServiceClient = GeoTargetServiceClient.create()) { + ListGeoTargetsRequest request = + ListGeoTargetsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + for (GeoTarget element : geoTargetServiceClient.listGeoTargets(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_GeoTargetService_ListGeoTargets_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/geotargetservice/listgeotargets/SyncListGeoTargetsNetworkname.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/geotargetservice/listgeotargets/SyncListGeoTargetsNetworkname.java new file mode 100644 index 000000000000..110a713cad04 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/geotargetservice/listgeotargets/SyncListGeoTargetsNetworkname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_GeoTargetService_ListGeoTargets_Networkname_sync] +import com.google.ads.admanager.v1.GeoTarget; +import com.google.ads.admanager.v1.GeoTargetServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListGeoTargetsNetworkname { + + public static void main(String[] args) throws Exception { + syncListGeoTargetsNetworkname(); + } + + public static void syncListGeoTargetsNetworkname() 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 (GeoTargetServiceClient geoTargetServiceClient = GeoTargetServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + for (GeoTarget element : geoTargetServiceClient.listGeoTargets(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_GeoTargetService_ListGeoTargets_Networkname_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/geotargetservice/listgeotargets/SyncListGeoTargetsString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/geotargetservice/listgeotargets/SyncListGeoTargetsString.java new file mode 100644 index 000000000000..105c56248ab0 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/geotargetservice/listgeotargets/SyncListGeoTargetsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_GeoTargetService_ListGeoTargets_String_sync] +import com.google.ads.admanager.v1.GeoTarget; +import com.google.ads.admanager.v1.GeoTargetServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListGeoTargetsString { + + public static void main(String[] args) throws Exception { + syncListGeoTargetsString(); + } + + public static void syncListGeoTargetsString() 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 (GeoTargetServiceClient geoTargetServiceClient = GeoTargetServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + for (GeoTarget element : geoTargetServiceClient.listGeoTargets(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_GeoTargetService_ListGeoTargets_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/geotargetservicesettings/getgeotarget/SyncGetGeoTarget.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/geotargetservicesettings/getgeotarget/SyncGetGeoTarget.java new file mode 100644 index 000000000000..881d2120f5e0 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/geotargetservicesettings/getgeotarget/SyncGetGeoTarget.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_GeoTargetServiceSettings_GetGeoTarget_sync] +import com.google.ads.admanager.v1.GeoTargetServiceSettings; +import java.time.Duration; + +public class SyncGetGeoTarget { + + public static void main(String[] args) throws Exception { + syncGetGeoTarget(); + } + + public static void syncGetGeoTarget() 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 + GeoTargetServiceSettings.Builder geoTargetServiceSettingsBuilder = + GeoTargetServiceSettings.newBuilder(); + geoTargetServiceSettingsBuilder + .getGeoTargetSettings() + .setRetrySettings( + geoTargetServiceSettingsBuilder + .getGeoTargetSettings() + .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()); + GeoTargetServiceSettings geoTargetServiceSettings = geoTargetServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_GeoTargetServiceSettings_GetGeoTarget_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemservice/create/SyncCreateSetCredentialsProvider.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..12d2b6e9468a --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_OperatingSystemService_Create_SetCredentialsProvider_sync] +import com.google.ads.admanager.v1.OperatingSystemServiceClient; +import com.google.ads.admanager.v1.OperatingSystemServiceSettings; +import com.google.ads.admanager.v1.myCredentials; +import com.google.api.gax.core.FixedCredentialsProvider; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() 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 + OperatingSystemServiceSettings operatingSystemServiceSettings = + OperatingSystemServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + OperatingSystemServiceClient operatingSystemServiceClient = + OperatingSystemServiceClient.create(operatingSystemServiceSettings); + } +} +// [END admanager_v1_generated_OperatingSystemService_Create_SetCredentialsProvider_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemservice/create/SyncCreateSetEndpoint.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..64a06be29cdf --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_OperatingSystemService_Create_SetEndpoint_sync] +import com.google.ads.admanager.v1.OperatingSystemServiceClient; +import com.google.ads.admanager.v1.OperatingSystemServiceSettings; +import com.google.ads.admanager.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() 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 + OperatingSystemServiceSettings operatingSystemServiceSettings = + OperatingSystemServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + OperatingSystemServiceClient operatingSystemServiceClient = + OperatingSystemServiceClient.create(operatingSystemServiceSettings); + } +} +// [END admanager_v1_generated_OperatingSystemService_Create_SetEndpoint_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemservice/getoperatingsystem/AsyncGetOperatingSystem.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemservice/getoperatingsystem/AsyncGetOperatingSystem.java new file mode 100644 index 000000000000..cee1e52ea49c --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemservice/getoperatingsystem/AsyncGetOperatingSystem.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_OperatingSystemService_GetOperatingSystem_async] +import com.google.ads.admanager.v1.GetOperatingSystemRequest; +import com.google.ads.admanager.v1.OperatingSystem; +import com.google.ads.admanager.v1.OperatingSystemName; +import com.google.ads.admanager.v1.OperatingSystemServiceClient; +import com.google.api.core.ApiFuture; + +public class AsyncGetOperatingSystem { + + public static void main(String[] args) throws Exception { + asyncGetOperatingSystem(); + } + + public static void asyncGetOperatingSystem() 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 (OperatingSystemServiceClient operatingSystemServiceClient = + OperatingSystemServiceClient.create()) { + GetOperatingSystemRequest request = + GetOperatingSystemRequest.newBuilder() + .setName(OperatingSystemName.of("[NETWORK_CODE]", "[OPERATING_SYSTEM]").toString()) + .build(); + ApiFuture future = + operatingSystemServiceClient.getOperatingSystemCallable().futureCall(request); + // Do something. + OperatingSystem response = future.get(); + } + } +} +// [END admanager_v1_generated_OperatingSystemService_GetOperatingSystem_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemservice/getoperatingsystem/SyncGetOperatingSystem.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemservice/getoperatingsystem/SyncGetOperatingSystem.java new file mode 100644 index 000000000000..82281eac3c3c --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemservice/getoperatingsystem/SyncGetOperatingSystem.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_OperatingSystemService_GetOperatingSystem_sync] +import com.google.ads.admanager.v1.GetOperatingSystemRequest; +import com.google.ads.admanager.v1.OperatingSystem; +import com.google.ads.admanager.v1.OperatingSystemName; +import com.google.ads.admanager.v1.OperatingSystemServiceClient; + +public class SyncGetOperatingSystem { + + public static void main(String[] args) throws Exception { + syncGetOperatingSystem(); + } + + public static void syncGetOperatingSystem() 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 (OperatingSystemServiceClient operatingSystemServiceClient = + OperatingSystemServiceClient.create()) { + GetOperatingSystemRequest request = + GetOperatingSystemRequest.newBuilder() + .setName(OperatingSystemName.of("[NETWORK_CODE]", "[OPERATING_SYSTEM]").toString()) + .build(); + OperatingSystem response = operatingSystemServiceClient.getOperatingSystem(request); + } + } +} +// [END admanager_v1_generated_OperatingSystemService_GetOperatingSystem_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemservice/getoperatingsystem/SyncGetOperatingSystemOperatingsystemname.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemservice/getoperatingsystem/SyncGetOperatingSystemOperatingsystemname.java new file mode 100644 index 000000000000..8b80cc8de819 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemservice/getoperatingsystem/SyncGetOperatingSystemOperatingsystemname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_OperatingSystemService_GetOperatingSystem_Operatingsystemname_sync] +import com.google.ads.admanager.v1.OperatingSystem; +import com.google.ads.admanager.v1.OperatingSystemName; +import com.google.ads.admanager.v1.OperatingSystemServiceClient; + +public class SyncGetOperatingSystemOperatingsystemname { + + public static void main(String[] args) throws Exception { + syncGetOperatingSystemOperatingsystemname(); + } + + public static void syncGetOperatingSystemOperatingsystemname() 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 (OperatingSystemServiceClient operatingSystemServiceClient = + OperatingSystemServiceClient.create()) { + OperatingSystemName name = OperatingSystemName.of("[NETWORK_CODE]", "[OPERATING_SYSTEM]"); + OperatingSystem response = operatingSystemServiceClient.getOperatingSystem(name); + } + } +} +// [END admanager_v1_generated_OperatingSystemService_GetOperatingSystem_Operatingsystemname_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemservice/getoperatingsystem/SyncGetOperatingSystemString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemservice/getoperatingsystem/SyncGetOperatingSystemString.java new file mode 100644 index 000000000000..7ce00828833d --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemservice/getoperatingsystem/SyncGetOperatingSystemString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_OperatingSystemService_GetOperatingSystem_String_sync] +import com.google.ads.admanager.v1.OperatingSystem; +import com.google.ads.admanager.v1.OperatingSystemName; +import com.google.ads.admanager.v1.OperatingSystemServiceClient; + +public class SyncGetOperatingSystemString { + + public static void main(String[] args) throws Exception { + syncGetOperatingSystemString(); + } + + public static void syncGetOperatingSystemString() 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 (OperatingSystemServiceClient operatingSystemServiceClient = + OperatingSystemServiceClient.create()) { + String name = OperatingSystemName.of("[NETWORK_CODE]", "[OPERATING_SYSTEM]").toString(); + OperatingSystem response = operatingSystemServiceClient.getOperatingSystem(name); + } + } +} +// [END admanager_v1_generated_OperatingSystemService_GetOperatingSystem_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemservice/listoperatingsystems/AsyncListOperatingSystems.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemservice/listoperatingsystems/AsyncListOperatingSystems.java new file mode 100644 index 000000000000..e7e608e8514e --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemservice/listoperatingsystems/AsyncListOperatingSystems.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_OperatingSystemService_ListOperatingSystems_async] +import com.google.ads.admanager.v1.ListOperatingSystemsRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.OperatingSystem; +import com.google.ads.admanager.v1.OperatingSystemServiceClient; +import com.google.api.core.ApiFuture; + +public class AsyncListOperatingSystems { + + public static void main(String[] args) throws Exception { + asyncListOperatingSystems(); + } + + public static void asyncListOperatingSystems() 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 (OperatingSystemServiceClient operatingSystemServiceClient = + OperatingSystemServiceClient.create()) { + ListOperatingSystemsRequest request = + ListOperatingSystemsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + ApiFuture future = + operatingSystemServiceClient.listOperatingSystemsPagedCallable().futureCall(request); + // Do something. + for (OperatingSystem element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_OperatingSystemService_ListOperatingSystems_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemservice/listoperatingsystems/AsyncListOperatingSystemsPaged.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemservice/listoperatingsystems/AsyncListOperatingSystemsPaged.java new file mode 100644 index 000000000000..2f0e8193919f --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemservice/listoperatingsystems/AsyncListOperatingSystemsPaged.java @@ -0,0 +1,66 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_OperatingSystemService_ListOperatingSystems_Paged_async] +import com.google.ads.admanager.v1.ListOperatingSystemsRequest; +import com.google.ads.admanager.v1.ListOperatingSystemsResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.OperatingSystem; +import com.google.ads.admanager.v1.OperatingSystemServiceClient; +import com.google.common.base.Strings; + +public class AsyncListOperatingSystemsPaged { + + public static void main(String[] args) throws Exception { + asyncListOperatingSystemsPaged(); + } + + public static void asyncListOperatingSystemsPaged() 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 (OperatingSystemServiceClient operatingSystemServiceClient = + OperatingSystemServiceClient.create()) { + ListOperatingSystemsRequest request = + ListOperatingSystemsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + while (true) { + ListOperatingSystemsResponse response = + operatingSystemServiceClient.listOperatingSystemsCallable().call(request); + for (OperatingSystem element : response.getOperatingSystemsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END admanager_v1_generated_OperatingSystemService_ListOperatingSystems_Paged_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemservice/listoperatingsystems/SyncListOperatingSystems.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemservice/listoperatingsystems/SyncListOperatingSystems.java new file mode 100644 index 000000000000..57f7033e3e05 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemservice/listoperatingsystems/SyncListOperatingSystems.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_OperatingSystemService_ListOperatingSystems_sync] +import com.google.ads.admanager.v1.ListOperatingSystemsRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.OperatingSystem; +import com.google.ads.admanager.v1.OperatingSystemServiceClient; + +public class SyncListOperatingSystems { + + public static void main(String[] args) throws Exception { + syncListOperatingSystems(); + } + + public static void syncListOperatingSystems() 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 (OperatingSystemServiceClient operatingSystemServiceClient = + OperatingSystemServiceClient.create()) { + ListOperatingSystemsRequest request = + ListOperatingSystemsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + for (OperatingSystem element : + operatingSystemServiceClient.listOperatingSystems(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_OperatingSystemService_ListOperatingSystems_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemservice/listoperatingsystems/SyncListOperatingSystemsNetworkname.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemservice/listoperatingsystems/SyncListOperatingSystemsNetworkname.java new file mode 100644 index 000000000000..391693be6b43 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemservice/listoperatingsystems/SyncListOperatingSystemsNetworkname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_OperatingSystemService_ListOperatingSystems_Networkname_sync] +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.OperatingSystem; +import com.google.ads.admanager.v1.OperatingSystemServiceClient; + +public class SyncListOperatingSystemsNetworkname { + + public static void main(String[] args) throws Exception { + syncListOperatingSystemsNetworkname(); + } + + public static void syncListOperatingSystemsNetworkname() 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 (OperatingSystemServiceClient operatingSystemServiceClient = + OperatingSystemServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + for (OperatingSystem element : + operatingSystemServiceClient.listOperatingSystems(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_OperatingSystemService_ListOperatingSystems_Networkname_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemservice/listoperatingsystems/SyncListOperatingSystemsString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemservice/listoperatingsystems/SyncListOperatingSystemsString.java new file mode 100644 index 000000000000..7209e1095ba6 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemservice/listoperatingsystems/SyncListOperatingSystemsString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_OperatingSystemService_ListOperatingSystems_String_sync] +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.OperatingSystem; +import com.google.ads.admanager.v1.OperatingSystemServiceClient; + +public class SyncListOperatingSystemsString { + + public static void main(String[] args) throws Exception { + syncListOperatingSystemsString(); + } + + public static void syncListOperatingSystemsString() 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 (OperatingSystemServiceClient operatingSystemServiceClient = + OperatingSystemServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + for (OperatingSystem element : + operatingSystemServiceClient.listOperatingSystems(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_OperatingSystemService_ListOperatingSystems_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemservicesettings/getoperatingsystem/SyncGetOperatingSystem.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemservicesettings/getoperatingsystem/SyncGetOperatingSystem.java new file mode 100644 index 000000000000..97d88358f2f9 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemservicesettings/getoperatingsystem/SyncGetOperatingSystem.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_OperatingSystemServiceSettings_GetOperatingSystem_sync] +import com.google.ads.admanager.v1.OperatingSystemServiceSettings; +import java.time.Duration; + +public class SyncGetOperatingSystem { + + public static void main(String[] args) throws Exception { + syncGetOperatingSystem(); + } + + public static void syncGetOperatingSystem() 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 + OperatingSystemServiceSettings.Builder operatingSystemServiceSettingsBuilder = + OperatingSystemServiceSettings.newBuilder(); + operatingSystemServiceSettingsBuilder + .getOperatingSystemSettings() + .setRetrySettings( + operatingSystemServiceSettingsBuilder + .getOperatingSystemSettings() + .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()); + OperatingSystemServiceSettings operatingSystemServiceSettings = + operatingSystemServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_OperatingSystemServiceSettings_GetOperatingSystem_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemversionservice/create/SyncCreateSetCredentialsProvider.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemversionservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..76dcacba8077 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemversionservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_OperatingSystemVersionService_Create_SetCredentialsProvider_sync] +import com.google.ads.admanager.v1.OperatingSystemVersionServiceClient; +import com.google.ads.admanager.v1.OperatingSystemVersionServiceSettings; +import com.google.ads.admanager.v1.myCredentials; +import com.google.api.gax.core.FixedCredentialsProvider; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() 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 + OperatingSystemVersionServiceSettings operatingSystemVersionServiceSettings = + OperatingSystemVersionServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + OperatingSystemVersionServiceClient operatingSystemVersionServiceClient = + OperatingSystemVersionServiceClient.create(operatingSystemVersionServiceSettings); + } +} +// [END admanager_v1_generated_OperatingSystemVersionService_Create_SetCredentialsProvider_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemversionservice/create/SyncCreateSetEndpoint.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemversionservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..de6ceb317c57 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemversionservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_OperatingSystemVersionService_Create_SetEndpoint_sync] +import com.google.ads.admanager.v1.OperatingSystemVersionServiceClient; +import com.google.ads.admanager.v1.OperatingSystemVersionServiceSettings; +import com.google.ads.admanager.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() 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 + OperatingSystemVersionServiceSettings operatingSystemVersionServiceSettings = + OperatingSystemVersionServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + OperatingSystemVersionServiceClient operatingSystemVersionServiceClient = + OperatingSystemVersionServiceClient.create(operatingSystemVersionServiceSettings); + } +} +// [END admanager_v1_generated_OperatingSystemVersionService_Create_SetEndpoint_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemversionservice/getoperatingsystemversion/AsyncGetOperatingSystemVersion.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemversionservice/getoperatingsystemversion/AsyncGetOperatingSystemVersion.java new file mode 100644 index 000000000000..f1d8f6b8e29f --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemversionservice/getoperatingsystemversion/AsyncGetOperatingSystemVersion.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_OperatingSystemVersionService_GetOperatingSystemVersion_async] +import com.google.ads.admanager.v1.GetOperatingSystemVersionRequest; +import com.google.ads.admanager.v1.OperatingSystemVersion; +import com.google.ads.admanager.v1.OperatingSystemVersionName; +import com.google.ads.admanager.v1.OperatingSystemVersionServiceClient; +import com.google.api.core.ApiFuture; + +public class AsyncGetOperatingSystemVersion { + + public static void main(String[] args) throws Exception { + asyncGetOperatingSystemVersion(); + } + + public static void asyncGetOperatingSystemVersion() 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 (OperatingSystemVersionServiceClient operatingSystemVersionServiceClient = + OperatingSystemVersionServiceClient.create()) { + GetOperatingSystemVersionRequest request = + GetOperatingSystemVersionRequest.newBuilder() + .setName( + OperatingSystemVersionName.of("[NETWORK_CODE]", "[OPERATING_SYSTEM_VERSION]") + .toString()) + .build(); + ApiFuture future = + operatingSystemVersionServiceClient + .getOperatingSystemVersionCallable() + .futureCall(request); + // Do something. + OperatingSystemVersion response = future.get(); + } + } +} +// [END admanager_v1_generated_OperatingSystemVersionService_GetOperatingSystemVersion_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemversionservice/getoperatingsystemversion/SyncGetOperatingSystemVersion.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemversionservice/getoperatingsystemversion/SyncGetOperatingSystemVersion.java new file mode 100644 index 000000000000..9618becb83bf --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemversionservice/getoperatingsystemversion/SyncGetOperatingSystemVersion.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_OperatingSystemVersionService_GetOperatingSystemVersion_sync] +import com.google.ads.admanager.v1.GetOperatingSystemVersionRequest; +import com.google.ads.admanager.v1.OperatingSystemVersion; +import com.google.ads.admanager.v1.OperatingSystemVersionName; +import com.google.ads.admanager.v1.OperatingSystemVersionServiceClient; + +public class SyncGetOperatingSystemVersion { + + public static void main(String[] args) throws Exception { + syncGetOperatingSystemVersion(); + } + + public static void syncGetOperatingSystemVersion() 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 (OperatingSystemVersionServiceClient operatingSystemVersionServiceClient = + OperatingSystemVersionServiceClient.create()) { + GetOperatingSystemVersionRequest request = + GetOperatingSystemVersionRequest.newBuilder() + .setName( + OperatingSystemVersionName.of("[NETWORK_CODE]", "[OPERATING_SYSTEM_VERSION]") + .toString()) + .build(); + OperatingSystemVersion response = + operatingSystemVersionServiceClient.getOperatingSystemVersion(request); + } + } +} +// [END admanager_v1_generated_OperatingSystemVersionService_GetOperatingSystemVersion_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemversionservice/getoperatingsystemversion/SyncGetOperatingSystemVersionOperatingsystemversionname.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemversionservice/getoperatingsystemversion/SyncGetOperatingSystemVersionOperatingsystemversionname.java new file mode 100644 index 000000000000..02096620cd11 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemversionservice/getoperatingsystemversion/SyncGetOperatingSystemVersionOperatingsystemversionname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_OperatingSystemVersionService_GetOperatingSystemVersion_Operatingsystemversionname_sync] +import com.google.ads.admanager.v1.OperatingSystemVersion; +import com.google.ads.admanager.v1.OperatingSystemVersionName; +import com.google.ads.admanager.v1.OperatingSystemVersionServiceClient; + +public class SyncGetOperatingSystemVersionOperatingsystemversionname { + + public static void main(String[] args) throws Exception { + syncGetOperatingSystemVersionOperatingsystemversionname(); + } + + public static void syncGetOperatingSystemVersionOperatingsystemversionname() 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 (OperatingSystemVersionServiceClient operatingSystemVersionServiceClient = + OperatingSystemVersionServiceClient.create()) { + OperatingSystemVersionName name = + OperatingSystemVersionName.of("[NETWORK_CODE]", "[OPERATING_SYSTEM_VERSION]"); + OperatingSystemVersion response = + operatingSystemVersionServiceClient.getOperatingSystemVersion(name); + } + } +} +// [END admanager_v1_generated_OperatingSystemVersionService_GetOperatingSystemVersion_Operatingsystemversionname_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemversionservice/getoperatingsystemversion/SyncGetOperatingSystemVersionString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemversionservice/getoperatingsystemversion/SyncGetOperatingSystemVersionString.java new file mode 100644 index 000000000000..4a35d03f0856 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemversionservice/getoperatingsystemversion/SyncGetOperatingSystemVersionString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_OperatingSystemVersionService_GetOperatingSystemVersion_String_sync] +import com.google.ads.admanager.v1.OperatingSystemVersion; +import com.google.ads.admanager.v1.OperatingSystemVersionName; +import com.google.ads.admanager.v1.OperatingSystemVersionServiceClient; + +public class SyncGetOperatingSystemVersionString { + + public static void main(String[] args) throws Exception { + syncGetOperatingSystemVersionString(); + } + + public static void syncGetOperatingSystemVersionString() 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 (OperatingSystemVersionServiceClient operatingSystemVersionServiceClient = + OperatingSystemVersionServiceClient.create()) { + String name = + OperatingSystemVersionName.of("[NETWORK_CODE]", "[OPERATING_SYSTEM_VERSION]").toString(); + OperatingSystemVersion response = + operatingSystemVersionServiceClient.getOperatingSystemVersion(name); + } + } +} +// [END admanager_v1_generated_OperatingSystemVersionService_GetOperatingSystemVersion_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemversionservice/listoperatingsystemversions/AsyncListOperatingSystemVersions.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemversionservice/listoperatingsystemversions/AsyncListOperatingSystemVersions.java new file mode 100644 index 000000000000..faa3be9e94de --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemversionservice/listoperatingsystemversions/AsyncListOperatingSystemVersions.java @@ -0,0 +1,60 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_OperatingSystemVersionService_ListOperatingSystemVersions_async] +import com.google.ads.admanager.v1.ListOperatingSystemVersionsRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.OperatingSystemVersion; +import com.google.ads.admanager.v1.OperatingSystemVersionServiceClient; +import com.google.api.core.ApiFuture; + +public class AsyncListOperatingSystemVersions { + + public static void main(String[] args) throws Exception { + asyncListOperatingSystemVersions(); + } + + public static void asyncListOperatingSystemVersions() 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 (OperatingSystemVersionServiceClient operatingSystemVersionServiceClient = + OperatingSystemVersionServiceClient.create()) { + ListOperatingSystemVersionsRequest request = + ListOperatingSystemVersionsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + ApiFuture future = + operatingSystemVersionServiceClient + .listOperatingSystemVersionsPagedCallable() + .futureCall(request); + // Do something. + for (OperatingSystemVersion element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_OperatingSystemVersionService_ListOperatingSystemVersions_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemversionservice/listoperatingsystemversions/AsyncListOperatingSystemVersionsPaged.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemversionservice/listoperatingsystemversions/AsyncListOperatingSystemVersionsPaged.java new file mode 100644 index 000000000000..3404d96989e3 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemversionservice/listoperatingsystemversions/AsyncListOperatingSystemVersionsPaged.java @@ -0,0 +1,66 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_OperatingSystemVersionService_ListOperatingSystemVersions_Paged_async] +import com.google.ads.admanager.v1.ListOperatingSystemVersionsRequest; +import com.google.ads.admanager.v1.ListOperatingSystemVersionsResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.OperatingSystemVersion; +import com.google.ads.admanager.v1.OperatingSystemVersionServiceClient; +import com.google.common.base.Strings; + +public class AsyncListOperatingSystemVersionsPaged { + + public static void main(String[] args) throws Exception { + asyncListOperatingSystemVersionsPaged(); + } + + public static void asyncListOperatingSystemVersionsPaged() 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 (OperatingSystemVersionServiceClient operatingSystemVersionServiceClient = + OperatingSystemVersionServiceClient.create()) { + ListOperatingSystemVersionsRequest request = + ListOperatingSystemVersionsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + while (true) { + ListOperatingSystemVersionsResponse response = + operatingSystemVersionServiceClient.listOperatingSystemVersionsCallable().call(request); + for (OperatingSystemVersion element : response.getOperatingSystemVersionsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END admanager_v1_generated_OperatingSystemVersionService_ListOperatingSystemVersions_Paged_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemversionservice/listoperatingsystemversions/SyncListOperatingSystemVersions.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemversionservice/listoperatingsystemversions/SyncListOperatingSystemVersions.java new file mode 100644 index 000000000000..c46eefac1be6 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemversionservice/listoperatingsystemversions/SyncListOperatingSystemVersions.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_OperatingSystemVersionService_ListOperatingSystemVersions_sync] +import com.google.ads.admanager.v1.ListOperatingSystemVersionsRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.OperatingSystemVersion; +import com.google.ads.admanager.v1.OperatingSystemVersionServiceClient; + +public class SyncListOperatingSystemVersions { + + public static void main(String[] args) throws Exception { + syncListOperatingSystemVersions(); + } + + public static void syncListOperatingSystemVersions() 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 (OperatingSystemVersionServiceClient operatingSystemVersionServiceClient = + OperatingSystemVersionServiceClient.create()) { + ListOperatingSystemVersionsRequest request = + ListOperatingSystemVersionsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + for (OperatingSystemVersion element : + operatingSystemVersionServiceClient.listOperatingSystemVersions(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_OperatingSystemVersionService_ListOperatingSystemVersions_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemversionservice/listoperatingsystemversions/SyncListOperatingSystemVersionsNetworkname.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemversionservice/listoperatingsystemversions/SyncListOperatingSystemVersionsNetworkname.java new file mode 100644 index 000000000000..1f8a95e0813b --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemversionservice/listoperatingsystemversions/SyncListOperatingSystemVersionsNetworkname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_OperatingSystemVersionService_ListOperatingSystemVersions_Networkname_sync] +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.OperatingSystemVersion; +import com.google.ads.admanager.v1.OperatingSystemVersionServiceClient; + +public class SyncListOperatingSystemVersionsNetworkname { + + public static void main(String[] args) throws Exception { + syncListOperatingSystemVersionsNetworkname(); + } + + public static void syncListOperatingSystemVersionsNetworkname() 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 (OperatingSystemVersionServiceClient operatingSystemVersionServiceClient = + OperatingSystemVersionServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + for (OperatingSystemVersion element : + operatingSystemVersionServiceClient.listOperatingSystemVersions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_OperatingSystemVersionService_ListOperatingSystemVersions_Networkname_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemversionservice/listoperatingsystemversions/SyncListOperatingSystemVersionsString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemversionservice/listoperatingsystemversions/SyncListOperatingSystemVersionsString.java new file mode 100644 index 000000000000..7cccf96b42bc --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemversionservice/listoperatingsystemversions/SyncListOperatingSystemVersionsString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_OperatingSystemVersionService_ListOperatingSystemVersions_String_sync] +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.OperatingSystemVersion; +import com.google.ads.admanager.v1.OperatingSystemVersionServiceClient; + +public class SyncListOperatingSystemVersionsString { + + public static void main(String[] args) throws Exception { + syncListOperatingSystemVersionsString(); + } + + public static void syncListOperatingSystemVersionsString() 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 (OperatingSystemVersionServiceClient operatingSystemVersionServiceClient = + OperatingSystemVersionServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + for (OperatingSystemVersion element : + operatingSystemVersionServiceClient.listOperatingSystemVersions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_OperatingSystemVersionService_ListOperatingSystemVersions_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemversionservicesettings/getoperatingsystemversion/SyncGetOperatingSystemVersion.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemversionservicesettings/getoperatingsystemversion/SyncGetOperatingSystemVersion.java new file mode 100644 index 000000000000..32f2e8092e8b --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/operatingsystemversionservicesettings/getoperatingsystemversion/SyncGetOperatingSystemVersion.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_OperatingSystemVersionServiceSettings_GetOperatingSystemVersion_sync] +import com.google.ads.admanager.v1.OperatingSystemVersionServiceSettings; +import java.time.Duration; + +public class SyncGetOperatingSystemVersion { + + public static void main(String[] args) throws Exception { + syncGetOperatingSystemVersion(); + } + + public static void syncGetOperatingSystemVersion() 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 + OperatingSystemVersionServiceSettings.Builder operatingSystemVersionServiceSettingsBuilder = + OperatingSystemVersionServiceSettings.newBuilder(); + operatingSystemVersionServiceSettingsBuilder + .getOperatingSystemVersionSettings() + .setRetrySettings( + operatingSystemVersionServiceSettingsBuilder + .getOperatingSystemVersionSettings() + .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()); + OperatingSystemVersionServiceSettings operatingSystemVersionServiceSettings = + operatingSystemVersionServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_OperatingSystemVersionServiceSettings_GetOperatingSystemVersion_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/create/SyncCreateSetCredentialsProvider.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..9b5325e2c7ba --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_PrivateAuctionDealService_Create_SetCredentialsProvider_sync] +import com.google.ads.admanager.v1.PrivateAuctionDealServiceClient; +import com.google.ads.admanager.v1.PrivateAuctionDealServiceSettings; +import com.google.ads.admanager.v1.myCredentials; +import com.google.api.gax.core.FixedCredentialsProvider; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() 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 + PrivateAuctionDealServiceSettings privateAuctionDealServiceSettings = + PrivateAuctionDealServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + PrivateAuctionDealServiceClient privateAuctionDealServiceClient = + PrivateAuctionDealServiceClient.create(privateAuctionDealServiceSettings); + } +} +// [END admanager_v1_generated_PrivateAuctionDealService_Create_SetCredentialsProvider_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/create/SyncCreateSetEndpoint.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..75df03d84263 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_PrivateAuctionDealService_Create_SetEndpoint_sync] +import com.google.ads.admanager.v1.PrivateAuctionDealServiceClient; +import com.google.ads.admanager.v1.PrivateAuctionDealServiceSettings; +import com.google.ads.admanager.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() 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 + PrivateAuctionDealServiceSettings privateAuctionDealServiceSettings = + PrivateAuctionDealServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + PrivateAuctionDealServiceClient privateAuctionDealServiceClient = + PrivateAuctionDealServiceClient.create(privateAuctionDealServiceSettings); + } +} +// [END admanager_v1_generated_PrivateAuctionDealService_Create_SetEndpoint_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/createprivateauctiondeal/AsyncCreatePrivateAuctionDeal.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/createprivateauctiondeal/AsyncCreatePrivateAuctionDeal.java new file mode 100644 index 000000000000..2984f14865bd --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/createprivateauctiondeal/AsyncCreatePrivateAuctionDeal.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_PrivateAuctionDealService_CreatePrivateAuctionDeal_async] +import com.google.ads.admanager.v1.CreatePrivateAuctionDealRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.PrivateAuctionDeal; +import com.google.ads.admanager.v1.PrivateAuctionDealServiceClient; +import com.google.api.core.ApiFuture; + +public class AsyncCreatePrivateAuctionDeal { + + public static void main(String[] args) throws Exception { + asyncCreatePrivateAuctionDeal(); + } + + public static void asyncCreatePrivateAuctionDeal() 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 (PrivateAuctionDealServiceClient privateAuctionDealServiceClient = + PrivateAuctionDealServiceClient.create()) { + CreatePrivateAuctionDealRequest request = + CreatePrivateAuctionDealRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPrivateAuctionDeal(PrivateAuctionDeal.newBuilder().build()) + .build(); + ApiFuture future = + privateAuctionDealServiceClient.createPrivateAuctionDealCallable().futureCall(request); + // Do something. + PrivateAuctionDeal response = future.get(); + } + } +} +// [END admanager_v1_generated_PrivateAuctionDealService_CreatePrivateAuctionDeal_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/createprivateauctiondeal/SyncCreatePrivateAuctionDeal.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/createprivateauctiondeal/SyncCreatePrivateAuctionDeal.java new file mode 100644 index 000000000000..cee3b491a3ef --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/createprivateauctiondeal/SyncCreatePrivateAuctionDeal.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_PrivateAuctionDealService_CreatePrivateAuctionDeal_sync] +import com.google.ads.admanager.v1.CreatePrivateAuctionDealRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.PrivateAuctionDeal; +import com.google.ads.admanager.v1.PrivateAuctionDealServiceClient; + +public class SyncCreatePrivateAuctionDeal { + + public static void main(String[] args) throws Exception { + syncCreatePrivateAuctionDeal(); + } + + public static void syncCreatePrivateAuctionDeal() 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 (PrivateAuctionDealServiceClient privateAuctionDealServiceClient = + PrivateAuctionDealServiceClient.create()) { + CreatePrivateAuctionDealRequest request = + CreatePrivateAuctionDealRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPrivateAuctionDeal(PrivateAuctionDeal.newBuilder().build()) + .build(); + PrivateAuctionDeal response = + privateAuctionDealServiceClient.createPrivateAuctionDeal(request); + } + } +} +// [END admanager_v1_generated_PrivateAuctionDealService_CreatePrivateAuctionDeal_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/createprivateauctiondeal/SyncCreatePrivateAuctionDealNetworknamePrivateauctiondeal.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/createprivateauctiondeal/SyncCreatePrivateAuctionDealNetworknamePrivateauctiondeal.java new file mode 100644 index 000000000000..30681c10cb90 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/createprivateauctiondeal/SyncCreatePrivateAuctionDealNetworknamePrivateauctiondeal.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_PrivateAuctionDealService_CreatePrivateAuctionDeal_NetworknamePrivateauctiondeal_sync] +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.PrivateAuctionDeal; +import com.google.ads.admanager.v1.PrivateAuctionDealServiceClient; + +public class SyncCreatePrivateAuctionDealNetworknamePrivateauctiondeal { + + public static void main(String[] args) throws Exception { + syncCreatePrivateAuctionDealNetworknamePrivateauctiondeal(); + } + + public static void syncCreatePrivateAuctionDealNetworknamePrivateauctiondeal() 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 (PrivateAuctionDealServiceClient privateAuctionDealServiceClient = + PrivateAuctionDealServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + PrivateAuctionDeal privateAuctionDeal = PrivateAuctionDeal.newBuilder().build(); + PrivateAuctionDeal response = + privateAuctionDealServiceClient.createPrivateAuctionDeal(parent, privateAuctionDeal); + } + } +} +// [END admanager_v1_generated_PrivateAuctionDealService_CreatePrivateAuctionDeal_NetworknamePrivateauctiondeal_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/createprivateauctiondeal/SyncCreatePrivateAuctionDealStringPrivateauctiondeal.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/createprivateauctiondeal/SyncCreatePrivateAuctionDealStringPrivateauctiondeal.java new file mode 100644 index 000000000000..c87a97f3212a --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/createprivateauctiondeal/SyncCreatePrivateAuctionDealStringPrivateauctiondeal.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_PrivateAuctionDealService_CreatePrivateAuctionDeal_StringPrivateauctiondeal_sync] +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.PrivateAuctionDeal; +import com.google.ads.admanager.v1.PrivateAuctionDealServiceClient; + +public class SyncCreatePrivateAuctionDealStringPrivateauctiondeal { + + public static void main(String[] args) throws Exception { + syncCreatePrivateAuctionDealStringPrivateauctiondeal(); + } + + public static void syncCreatePrivateAuctionDealStringPrivateauctiondeal() 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 (PrivateAuctionDealServiceClient privateAuctionDealServiceClient = + PrivateAuctionDealServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + PrivateAuctionDeal privateAuctionDeal = PrivateAuctionDeal.newBuilder().build(); + PrivateAuctionDeal response = + privateAuctionDealServiceClient.createPrivateAuctionDeal(parent, privateAuctionDeal); + } + } +} +// [END admanager_v1_generated_PrivateAuctionDealService_CreatePrivateAuctionDeal_StringPrivateauctiondeal_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/getprivateauctiondeal/AsyncGetPrivateAuctionDeal.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/getprivateauctiondeal/AsyncGetPrivateAuctionDeal.java new file mode 100644 index 000000000000..8595d6b39092 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/getprivateauctiondeal/AsyncGetPrivateAuctionDeal.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_PrivateAuctionDealService_GetPrivateAuctionDeal_async] +import com.google.ads.admanager.v1.GetPrivateAuctionDealRequest; +import com.google.ads.admanager.v1.PrivateAuctionDeal; +import com.google.ads.admanager.v1.PrivateAuctionDealName; +import com.google.ads.admanager.v1.PrivateAuctionDealServiceClient; +import com.google.api.core.ApiFuture; + +public class AsyncGetPrivateAuctionDeal { + + public static void main(String[] args) throws Exception { + asyncGetPrivateAuctionDeal(); + } + + public static void asyncGetPrivateAuctionDeal() 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 (PrivateAuctionDealServiceClient privateAuctionDealServiceClient = + PrivateAuctionDealServiceClient.create()) { + GetPrivateAuctionDealRequest request = + GetPrivateAuctionDealRequest.newBuilder() + .setName( + PrivateAuctionDealName.of("[NETWORK_CODE]", "[PRIVATE_AUCTION_DEAL]").toString()) + .build(); + ApiFuture future = + privateAuctionDealServiceClient.getPrivateAuctionDealCallable().futureCall(request); + // Do something. + PrivateAuctionDeal response = future.get(); + } + } +} +// [END admanager_v1_generated_PrivateAuctionDealService_GetPrivateAuctionDeal_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/getprivateauctiondeal/SyncGetPrivateAuctionDeal.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/getprivateauctiondeal/SyncGetPrivateAuctionDeal.java new file mode 100644 index 000000000000..067dd7a14292 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/getprivateauctiondeal/SyncGetPrivateAuctionDeal.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_PrivateAuctionDealService_GetPrivateAuctionDeal_sync] +import com.google.ads.admanager.v1.GetPrivateAuctionDealRequest; +import com.google.ads.admanager.v1.PrivateAuctionDeal; +import com.google.ads.admanager.v1.PrivateAuctionDealName; +import com.google.ads.admanager.v1.PrivateAuctionDealServiceClient; + +public class SyncGetPrivateAuctionDeal { + + public static void main(String[] args) throws Exception { + syncGetPrivateAuctionDeal(); + } + + public static void syncGetPrivateAuctionDeal() 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 (PrivateAuctionDealServiceClient privateAuctionDealServiceClient = + PrivateAuctionDealServiceClient.create()) { + GetPrivateAuctionDealRequest request = + GetPrivateAuctionDealRequest.newBuilder() + .setName( + PrivateAuctionDealName.of("[NETWORK_CODE]", "[PRIVATE_AUCTION_DEAL]").toString()) + .build(); + PrivateAuctionDeal response = privateAuctionDealServiceClient.getPrivateAuctionDeal(request); + } + } +} +// [END admanager_v1_generated_PrivateAuctionDealService_GetPrivateAuctionDeal_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/getprivateauctiondeal/SyncGetPrivateAuctionDealPrivateauctiondealname.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/getprivateauctiondeal/SyncGetPrivateAuctionDealPrivateauctiondealname.java new file mode 100644 index 000000000000..12045b1c1395 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/getprivateauctiondeal/SyncGetPrivateAuctionDealPrivateauctiondealname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_PrivateAuctionDealService_GetPrivateAuctionDeal_Privateauctiondealname_sync] +import com.google.ads.admanager.v1.PrivateAuctionDeal; +import com.google.ads.admanager.v1.PrivateAuctionDealName; +import com.google.ads.admanager.v1.PrivateAuctionDealServiceClient; + +public class SyncGetPrivateAuctionDealPrivateauctiondealname { + + public static void main(String[] args) throws Exception { + syncGetPrivateAuctionDealPrivateauctiondealname(); + } + + public static void syncGetPrivateAuctionDealPrivateauctiondealname() 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 (PrivateAuctionDealServiceClient privateAuctionDealServiceClient = + PrivateAuctionDealServiceClient.create()) { + PrivateAuctionDealName name = + PrivateAuctionDealName.of("[NETWORK_CODE]", "[PRIVATE_AUCTION_DEAL]"); + PrivateAuctionDeal response = privateAuctionDealServiceClient.getPrivateAuctionDeal(name); + } + } +} +// [END admanager_v1_generated_PrivateAuctionDealService_GetPrivateAuctionDeal_Privateauctiondealname_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/getprivateauctiondeal/SyncGetPrivateAuctionDealString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/getprivateauctiondeal/SyncGetPrivateAuctionDealString.java new file mode 100644 index 000000000000..5082bf91fedf --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/getprivateauctiondeal/SyncGetPrivateAuctionDealString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_PrivateAuctionDealService_GetPrivateAuctionDeal_String_sync] +import com.google.ads.admanager.v1.PrivateAuctionDeal; +import com.google.ads.admanager.v1.PrivateAuctionDealName; +import com.google.ads.admanager.v1.PrivateAuctionDealServiceClient; + +public class SyncGetPrivateAuctionDealString { + + public static void main(String[] args) throws Exception { + syncGetPrivateAuctionDealString(); + } + + public static void syncGetPrivateAuctionDealString() 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 (PrivateAuctionDealServiceClient privateAuctionDealServiceClient = + PrivateAuctionDealServiceClient.create()) { + String name = + PrivateAuctionDealName.of("[NETWORK_CODE]", "[PRIVATE_AUCTION_DEAL]").toString(); + PrivateAuctionDeal response = privateAuctionDealServiceClient.getPrivateAuctionDeal(name); + } + } +} +// [END admanager_v1_generated_PrivateAuctionDealService_GetPrivateAuctionDeal_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/listprivateauctiondeals/AsyncListPrivateAuctionDeals.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/listprivateauctiondeals/AsyncListPrivateAuctionDeals.java new file mode 100644 index 000000000000..e1b6f4193740 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/listprivateauctiondeals/AsyncListPrivateAuctionDeals.java @@ -0,0 +1,60 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_PrivateAuctionDealService_ListPrivateAuctionDeals_async] +import com.google.ads.admanager.v1.ListPrivateAuctionDealsRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.PrivateAuctionDeal; +import com.google.ads.admanager.v1.PrivateAuctionDealServiceClient; +import com.google.api.core.ApiFuture; + +public class AsyncListPrivateAuctionDeals { + + public static void main(String[] args) throws Exception { + asyncListPrivateAuctionDeals(); + } + + public static void asyncListPrivateAuctionDeals() 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 (PrivateAuctionDealServiceClient privateAuctionDealServiceClient = + PrivateAuctionDealServiceClient.create()) { + ListPrivateAuctionDealsRequest request = + ListPrivateAuctionDealsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + ApiFuture future = + privateAuctionDealServiceClient + .listPrivateAuctionDealsPagedCallable() + .futureCall(request); + // Do something. + for (PrivateAuctionDeal element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_PrivateAuctionDealService_ListPrivateAuctionDeals_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/listprivateauctiondeals/AsyncListPrivateAuctionDealsPaged.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/listprivateauctiondeals/AsyncListPrivateAuctionDealsPaged.java new file mode 100644 index 000000000000..5d441189b2a9 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/listprivateauctiondeals/AsyncListPrivateAuctionDealsPaged.java @@ -0,0 +1,66 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_PrivateAuctionDealService_ListPrivateAuctionDeals_Paged_async] +import com.google.ads.admanager.v1.ListPrivateAuctionDealsRequest; +import com.google.ads.admanager.v1.ListPrivateAuctionDealsResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.PrivateAuctionDeal; +import com.google.ads.admanager.v1.PrivateAuctionDealServiceClient; +import com.google.common.base.Strings; + +public class AsyncListPrivateAuctionDealsPaged { + + public static void main(String[] args) throws Exception { + asyncListPrivateAuctionDealsPaged(); + } + + public static void asyncListPrivateAuctionDealsPaged() 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 (PrivateAuctionDealServiceClient privateAuctionDealServiceClient = + PrivateAuctionDealServiceClient.create()) { + ListPrivateAuctionDealsRequest request = + ListPrivateAuctionDealsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + while (true) { + ListPrivateAuctionDealsResponse response = + privateAuctionDealServiceClient.listPrivateAuctionDealsCallable().call(request); + for (PrivateAuctionDeal element : response.getPrivateAuctionDealsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END admanager_v1_generated_PrivateAuctionDealService_ListPrivateAuctionDeals_Paged_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/listprivateauctiondeals/SyncListPrivateAuctionDeals.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/listprivateauctiondeals/SyncListPrivateAuctionDeals.java new file mode 100644 index 000000000000..9df7725830d8 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/listprivateauctiondeals/SyncListPrivateAuctionDeals.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_PrivateAuctionDealService_ListPrivateAuctionDeals_sync] +import com.google.ads.admanager.v1.ListPrivateAuctionDealsRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.PrivateAuctionDeal; +import com.google.ads.admanager.v1.PrivateAuctionDealServiceClient; + +public class SyncListPrivateAuctionDeals { + + public static void main(String[] args) throws Exception { + syncListPrivateAuctionDeals(); + } + + public static void syncListPrivateAuctionDeals() 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 (PrivateAuctionDealServiceClient privateAuctionDealServiceClient = + PrivateAuctionDealServiceClient.create()) { + ListPrivateAuctionDealsRequest request = + ListPrivateAuctionDealsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + for (PrivateAuctionDeal element : + privateAuctionDealServiceClient.listPrivateAuctionDeals(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_PrivateAuctionDealService_ListPrivateAuctionDeals_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/listprivateauctiondeals/SyncListPrivateAuctionDealsNetworkname.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/listprivateauctiondeals/SyncListPrivateAuctionDealsNetworkname.java new file mode 100644 index 000000000000..703f09fc8721 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/listprivateauctiondeals/SyncListPrivateAuctionDealsNetworkname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_PrivateAuctionDealService_ListPrivateAuctionDeals_Networkname_sync] +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.PrivateAuctionDeal; +import com.google.ads.admanager.v1.PrivateAuctionDealServiceClient; + +public class SyncListPrivateAuctionDealsNetworkname { + + public static void main(String[] args) throws Exception { + syncListPrivateAuctionDealsNetworkname(); + } + + public static void syncListPrivateAuctionDealsNetworkname() 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 (PrivateAuctionDealServiceClient privateAuctionDealServiceClient = + PrivateAuctionDealServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + for (PrivateAuctionDeal element : + privateAuctionDealServiceClient.listPrivateAuctionDeals(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_PrivateAuctionDealService_ListPrivateAuctionDeals_Networkname_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/listprivateauctiondeals/SyncListPrivateAuctionDealsString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/listprivateauctiondeals/SyncListPrivateAuctionDealsString.java new file mode 100644 index 000000000000..2c0a8805ec6f --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/listprivateauctiondeals/SyncListPrivateAuctionDealsString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_PrivateAuctionDealService_ListPrivateAuctionDeals_String_sync] +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.PrivateAuctionDeal; +import com.google.ads.admanager.v1.PrivateAuctionDealServiceClient; + +public class SyncListPrivateAuctionDealsString { + + public static void main(String[] args) throws Exception { + syncListPrivateAuctionDealsString(); + } + + public static void syncListPrivateAuctionDealsString() 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 (PrivateAuctionDealServiceClient privateAuctionDealServiceClient = + PrivateAuctionDealServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + for (PrivateAuctionDeal element : + privateAuctionDealServiceClient.listPrivateAuctionDeals(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_PrivateAuctionDealService_ListPrivateAuctionDeals_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/updateprivateauctiondeal/AsyncUpdatePrivateAuctionDeal.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/updateprivateauctiondeal/AsyncUpdatePrivateAuctionDeal.java new file mode 100644 index 000000000000..4abe000a7614 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/updateprivateauctiondeal/AsyncUpdatePrivateAuctionDeal.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_PrivateAuctionDealService_UpdatePrivateAuctionDeal_async] +import com.google.ads.admanager.v1.PrivateAuctionDeal; +import com.google.ads.admanager.v1.PrivateAuctionDealServiceClient; +import com.google.ads.admanager.v1.UpdatePrivateAuctionDealRequest; +import com.google.api.core.ApiFuture; +import com.google.protobuf.FieldMask; + +public class AsyncUpdatePrivateAuctionDeal { + + public static void main(String[] args) throws Exception { + asyncUpdatePrivateAuctionDeal(); + } + + public static void asyncUpdatePrivateAuctionDeal() 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 (PrivateAuctionDealServiceClient privateAuctionDealServiceClient = + PrivateAuctionDealServiceClient.create()) { + UpdatePrivateAuctionDealRequest request = + UpdatePrivateAuctionDealRequest.newBuilder() + .setPrivateAuctionDeal(PrivateAuctionDeal.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + privateAuctionDealServiceClient.updatePrivateAuctionDealCallable().futureCall(request); + // Do something. + PrivateAuctionDeal response = future.get(); + } + } +} +// [END admanager_v1_generated_PrivateAuctionDealService_UpdatePrivateAuctionDeal_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/updateprivateauctiondeal/SyncUpdatePrivateAuctionDeal.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/updateprivateauctiondeal/SyncUpdatePrivateAuctionDeal.java new file mode 100644 index 000000000000..9967fb79ac45 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/updateprivateauctiondeal/SyncUpdatePrivateAuctionDeal.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_PrivateAuctionDealService_UpdatePrivateAuctionDeal_sync] +import com.google.ads.admanager.v1.PrivateAuctionDeal; +import com.google.ads.admanager.v1.PrivateAuctionDealServiceClient; +import com.google.ads.admanager.v1.UpdatePrivateAuctionDealRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdatePrivateAuctionDeal { + + public static void main(String[] args) throws Exception { + syncUpdatePrivateAuctionDeal(); + } + + public static void syncUpdatePrivateAuctionDeal() 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 (PrivateAuctionDealServiceClient privateAuctionDealServiceClient = + PrivateAuctionDealServiceClient.create()) { + UpdatePrivateAuctionDealRequest request = + UpdatePrivateAuctionDealRequest.newBuilder() + .setPrivateAuctionDeal(PrivateAuctionDeal.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + PrivateAuctionDeal response = + privateAuctionDealServiceClient.updatePrivateAuctionDeal(request); + } + } +} +// [END admanager_v1_generated_PrivateAuctionDealService_UpdatePrivateAuctionDeal_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/updateprivateauctiondeal/SyncUpdatePrivateAuctionDealPrivateauctiondealFieldmask.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/updateprivateauctiondeal/SyncUpdatePrivateAuctionDealPrivateauctiondealFieldmask.java new file mode 100644 index 000000000000..38cdde494457 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservice/updateprivateauctiondeal/SyncUpdatePrivateAuctionDealPrivateauctiondealFieldmask.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_PrivateAuctionDealService_UpdatePrivateAuctionDeal_PrivateauctiondealFieldmask_sync] +import com.google.ads.admanager.v1.PrivateAuctionDeal; +import com.google.ads.admanager.v1.PrivateAuctionDealServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdatePrivateAuctionDealPrivateauctiondealFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdatePrivateAuctionDealPrivateauctiondealFieldmask(); + } + + public static void syncUpdatePrivateAuctionDealPrivateauctiondealFieldmask() 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 (PrivateAuctionDealServiceClient privateAuctionDealServiceClient = + PrivateAuctionDealServiceClient.create()) { + PrivateAuctionDeal privateAuctionDeal = PrivateAuctionDeal.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + PrivateAuctionDeal response = + privateAuctionDealServiceClient.updatePrivateAuctionDeal(privateAuctionDeal, updateMask); + } + } +} +// [END admanager_v1_generated_PrivateAuctionDealService_UpdatePrivateAuctionDeal_PrivateauctiondealFieldmask_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservicesettings/getprivateauctiondeal/SyncGetPrivateAuctionDeal.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservicesettings/getprivateauctiondeal/SyncGetPrivateAuctionDeal.java new file mode 100644 index 000000000000..4e6508b6632f --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctiondealservicesettings/getprivateauctiondeal/SyncGetPrivateAuctionDeal.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_PrivateAuctionDealServiceSettings_GetPrivateAuctionDeal_sync] +import com.google.ads.admanager.v1.PrivateAuctionDealServiceSettings; +import java.time.Duration; + +public class SyncGetPrivateAuctionDeal { + + public static void main(String[] args) throws Exception { + syncGetPrivateAuctionDeal(); + } + + public static void syncGetPrivateAuctionDeal() 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 + PrivateAuctionDealServiceSettings.Builder privateAuctionDealServiceSettingsBuilder = + PrivateAuctionDealServiceSettings.newBuilder(); + privateAuctionDealServiceSettingsBuilder + .getPrivateAuctionDealSettings() + .setRetrySettings( + privateAuctionDealServiceSettingsBuilder + .getPrivateAuctionDealSettings() + .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()); + PrivateAuctionDealServiceSettings privateAuctionDealServiceSettings = + privateAuctionDealServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_PrivateAuctionDealServiceSettings_GetPrivateAuctionDeal_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/create/SyncCreateSetCredentialsProvider.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..98d6917fa2e4 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_PrivateAuctionService_Create_SetCredentialsProvider_sync] +import com.google.ads.admanager.v1.PrivateAuctionServiceClient; +import com.google.ads.admanager.v1.PrivateAuctionServiceSettings; +import com.google.ads.admanager.v1.myCredentials; +import com.google.api.gax.core.FixedCredentialsProvider; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() 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 + PrivateAuctionServiceSettings privateAuctionServiceSettings = + PrivateAuctionServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + PrivateAuctionServiceClient privateAuctionServiceClient = + PrivateAuctionServiceClient.create(privateAuctionServiceSettings); + } +} +// [END admanager_v1_generated_PrivateAuctionService_Create_SetCredentialsProvider_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/create/SyncCreateSetEndpoint.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..627139153916 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_PrivateAuctionService_Create_SetEndpoint_sync] +import com.google.ads.admanager.v1.PrivateAuctionServiceClient; +import com.google.ads.admanager.v1.PrivateAuctionServiceSettings; +import com.google.ads.admanager.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() 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 + PrivateAuctionServiceSettings privateAuctionServiceSettings = + PrivateAuctionServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + PrivateAuctionServiceClient privateAuctionServiceClient = + PrivateAuctionServiceClient.create(privateAuctionServiceSettings); + } +} +// [END admanager_v1_generated_PrivateAuctionService_Create_SetEndpoint_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/createprivateauction/AsyncCreatePrivateAuction.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/createprivateauction/AsyncCreatePrivateAuction.java new file mode 100644 index 000000000000..7841481fc7f8 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/createprivateauction/AsyncCreatePrivateAuction.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_PrivateAuctionService_CreatePrivateAuction_async] +import com.google.ads.admanager.v1.CreatePrivateAuctionRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.PrivateAuction; +import com.google.ads.admanager.v1.PrivateAuctionServiceClient; +import com.google.api.core.ApiFuture; + +public class AsyncCreatePrivateAuction { + + public static void main(String[] args) throws Exception { + asyncCreatePrivateAuction(); + } + + public static void asyncCreatePrivateAuction() 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 (PrivateAuctionServiceClient privateAuctionServiceClient = + PrivateAuctionServiceClient.create()) { + CreatePrivateAuctionRequest request = + CreatePrivateAuctionRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPrivateAuction(PrivateAuction.newBuilder().build()) + .build(); + ApiFuture future = + privateAuctionServiceClient.createPrivateAuctionCallable().futureCall(request); + // Do something. + PrivateAuction response = future.get(); + } + } +} +// [END admanager_v1_generated_PrivateAuctionService_CreatePrivateAuction_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/createprivateauction/SyncCreatePrivateAuction.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/createprivateauction/SyncCreatePrivateAuction.java new file mode 100644 index 000000000000..aa625b22539f --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/createprivateauction/SyncCreatePrivateAuction.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_PrivateAuctionService_CreatePrivateAuction_sync] +import com.google.ads.admanager.v1.CreatePrivateAuctionRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.PrivateAuction; +import com.google.ads.admanager.v1.PrivateAuctionServiceClient; + +public class SyncCreatePrivateAuction { + + public static void main(String[] args) throws Exception { + syncCreatePrivateAuction(); + } + + public static void syncCreatePrivateAuction() 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 (PrivateAuctionServiceClient privateAuctionServiceClient = + PrivateAuctionServiceClient.create()) { + CreatePrivateAuctionRequest request = + CreatePrivateAuctionRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPrivateAuction(PrivateAuction.newBuilder().build()) + .build(); + PrivateAuction response = privateAuctionServiceClient.createPrivateAuction(request); + } + } +} +// [END admanager_v1_generated_PrivateAuctionService_CreatePrivateAuction_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/createprivateauction/SyncCreatePrivateAuctionNetworknamePrivateauction.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/createprivateauction/SyncCreatePrivateAuctionNetworknamePrivateauction.java new file mode 100644 index 000000000000..83d3e22b960d --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/createprivateauction/SyncCreatePrivateAuctionNetworknamePrivateauction.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_PrivateAuctionService_CreatePrivateAuction_NetworknamePrivateauction_sync] +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.PrivateAuction; +import com.google.ads.admanager.v1.PrivateAuctionServiceClient; + +public class SyncCreatePrivateAuctionNetworknamePrivateauction { + + public static void main(String[] args) throws Exception { + syncCreatePrivateAuctionNetworknamePrivateauction(); + } + + public static void syncCreatePrivateAuctionNetworknamePrivateauction() 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 (PrivateAuctionServiceClient privateAuctionServiceClient = + PrivateAuctionServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + PrivateAuction privateAuction = PrivateAuction.newBuilder().build(); + PrivateAuction response = + privateAuctionServiceClient.createPrivateAuction(parent, privateAuction); + } + } +} +// [END admanager_v1_generated_PrivateAuctionService_CreatePrivateAuction_NetworknamePrivateauction_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/createprivateauction/SyncCreatePrivateAuctionStringPrivateauction.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/createprivateauction/SyncCreatePrivateAuctionStringPrivateauction.java new file mode 100644 index 000000000000..4e4c81f3ad12 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/createprivateauction/SyncCreatePrivateAuctionStringPrivateauction.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_PrivateAuctionService_CreatePrivateAuction_StringPrivateauction_sync] +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.PrivateAuction; +import com.google.ads.admanager.v1.PrivateAuctionServiceClient; + +public class SyncCreatePrivateAuctionStringPrivateauction { + + public static void main(String[] args) throws Exception { + syncCreatePrivateAuctionStringPrivateauction(); + } + + public static void syncCreatePrivateAuctionStringPrivateauction() 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 (PrivateAuctionServiceClient privateAuctionServiceClient = + PrivateAuctionServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + PrivateAuction privateAuction = PrivateAuction.newBuilder().build(); + PrivateAuction response = + privateAuctionServiceClient.createPrivateAuction(parent, privateAuction); + } + } +} +// [END admanager_v1_generated_PrivateAuctionService_CreatePrivateAuction_StringPrivateauction_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/getprivateauction/AsyncGetPrivateAuction.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/getprivateauction/AsyncGetPrivateAuction.java new file mode 100644 index 000000000000..4a8172adad7b --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/getprivateauction/AsyncGetPrivateAuction.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_PrivateAuctionService_GetPrivateAuction_async] +import com.google.ads.admanager.v1.GetPrivateAuctionRequest; +import com.google.ads.admanager.v1.PrivateAuction; +import com.google.ads.admanager.v1.PrivateAuctionName; +import com.google.ads.admanager.v1.PrivateAuctionServiceClient; +import com.google.api.core.ApiFuture; + +public class AsyncGetPrivateAuction { + + public static void main(String[] args) throws Exception { + asyncGetPrivateAuction(); + } + + public static void asyncGetPrivateAuction() 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 (PrivateAuctionServiceClient privateAuctionServiceClient = + PrivateAuctionServiceClient.create()) { + GetPrivateAuctionRequest request = + GetPrivateAuctionRequest.newBuilder() + .setName(PrivateAuctionName.of("[NETWORK_CODE]", "[PRIVATE_AUCTION]").toString()) + .build(); + ApiFuture future = + privateAuctionServiceClient.getPrivateAuctionCallable().futureCall(request); + // Do something. + PrivateAuction response = future.get(); + } + } +} +// [END admanager_v1_generated_PrivateAuctionService_GetPrivateAuction_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/getprivateauction/SyncGetPrivateAuction.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/getprivateauction/SyncGetPrivateAuction.java new file mode 100644 index 000000000000..acfe28dd5412 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/getprivateauction/SyncGetPrivateAuction.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_PrivateAuctionService_GetPrivateAuction_sync] +import com.google.ads.admanager.v1.GetPrivateAuctionRequest; +import com.google.ads.admanager.v1.PrivateAuction; +import com.google.ads.admanager.v1.PrivateAuctionName; +import com.google.ads.admanager.v1.PrivateAuctionServiceClient; + +public class SyncGetPrivateAuction { + + public static void main(String[] args) throws Exception { + syncGetPrivateAuction(); + } + + public static void syncGetPrivateAuction() 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 (PrivateAuctionServiceClient privateAuctionServiceClient = + PrivateAuctionServiceClient.create()) { + GetPrivateAuctionRequest request = + GetPrivateAuctionRequest.newBuilder() + .setName(PrivateAuctionName.of("[NETWORK_CODE]", "[PRIVATE_AUCTION]").toString()) + .build(); + PrivateAuction response = privateAuctionServiceClient.getPrivateAuction(request); + } + } +} +// [END admanager_v1_generated_PrivateAuctionService_GetPrivateAuction_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/getprivateauction/SyncGetPrivateAuctionPrivateauctionname.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/getprivateauction/SyncGetPrivateAuctionPrivateauctionname.java new file mode 100644 index 000000000000..92f1deb4d9bb --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/getprivateauction/SyncGetPrivateAuctionPrivateauctionname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_PrivateAuctionService_GetPrivateAuction_Privateauctionname_sync] +import com.google.ads.admanager.v1.PrivateAuction; +import com.google.ads.admanager.v1.PrivateAuctionName; +import com.google.ads.admanager.v1.PrivateAuctionServiceClient; + +public class SyncGetPrivateAuctionPrivateauctionname { + + public static void main(String[] args) throws Exception { + syncGetPrivateAuctionPrivateauctionname(); + } + + public static void syncGetPrivateAuctionPrivateauctionname() 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 (PrivateAuctionServiceClient privateAuctionServiceClient = + PrivateAuctionServiceClient.create()) { + PrivateAuctionName name = PrivateAuctionName.of("[NETWORK_CODE]", "[PRIVATE_AUCTION]"); + PrivateAuction response = privateAuctionServiceClient.getPrivateAuction(name); + } + } +} +// [END admanager_v1_generated_PrivateAuctionService_GetPrivateAuction_Privateauctionname_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/getprivateauction/SyncGetPrivateAuctionString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/getprivateauction/SyncGetPrivateAuctionString.java new file mode 100644 index 000000000000..23a08cd1c0fe --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/getprivateauction/SyncGetPrivateAuctionString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_PrivateAuctionService_GetPrivateAuction_String_sync] +import com.google.ads.admanager.v1.PrivateAuction; +import com.google.ads.admanager.v1.PrivateAuctionName; +import com.google.ads.admanager.v1.PrivateAuctionServiceClient; + +public class SyncGetPrivateAuctionString { + + public static void main(String[] args) throws Exception { + syncGetPrivateAuctionString(); + } + + public static void syncGetPrivateAuctionString() 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 (PrivateAuctionServiceClient privateAuctionServiceClient = + PrivateAuctionServiceClient.create()) { + String name = PrivateAuctionName.of("[NETWORK_CODE]", "[PRIVATE_AUCTION]").toString(); + PrivateAuction response = privateAuctionServiceClient.getPrivateAuction(name); + } + } +} +// [END admanager_v1_generated_PrivateAuctionService_GetPrivateAuction_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/listprivateauctions/AsyncListPrivateAuctions.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/listprivateauctions/AsyncListPrivateAuctions.java new file mode 100644 index 000000000000..648540cd491b --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/listprivateauctions/AsyncListPrivateAuctions.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_PrivateAuctionService_ListPrivateAuctions_async] +import com.google.ads.admanager.v1.ListPrivateAuctionsRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.PrivateAuction; +import com.google.ads.admanager.v1.PrivateAuctionServiceClient; +import com.google.api.core.ApiFuture; + +public class AsyncListPrivateAuctions { + + public static void main(String[] args) throws Exception { + asyncListPrivateAuctions(); + } + + public static void asyncListPrivateAuctions() 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 (PrivateAuctionServiceClient privateAuctionServiceClient = + PrivateAuctionServiceClient.create()) { + ListPrivateAuctionsRequest request = + ListPrivateAuctionsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + ApiFuture future = + privateAuctionServiceClient.listPrivateAuctionsPagedCallable().futureCall(request); + // Do something. + for (PrivateAuction element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_PrivateAuctionService_ListPrivateAuctions_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/listprivateauctions/AsyncListPrivateAuctionsPaged.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/listprivateauctions/AsyncListPrivateAuctionsPaged.java new file mode 100644 index 000000000000..fdd1d1b34c5f --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/listprivateauctions/AsyncListPrivateAuctionsPaged.java @@ -0,0 +1,66 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_PrivateAuctionService_ListPrivateAuctions_Paged_async] +import com.google.ads.admanager.v1.ListPrivateAuctionsRequest; +import com.google.ads.admanager.v1.ListPrivateAuctionsResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.PrivateAuction; +import com.google.ads.admanager.v1.PrivateAuctionServiceClient; +import com.google.common.base.Strings; + +public class AsyncListPrivateAuctionsPaged { + + public static void main(String[] args) throws Exception { + asyncListPrivateAuctionsPaged(); + } + + public static void asyncListPrivateAuctionsPaged() 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 (PrivateAuctionServiceClient privateAuctionServiceClient = + PrivateAuctionServiceClient.create()) { + ListPrivateAuctionsRequest request = + ListPrivateAuctionsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + while (true) { + ListPrivateAuctionsResponse response = + privateAuctionServiceClient.listPrivateAuctionsCallable().call(request); + for (PrivateAuction element : response.getPrivateAuctionsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END admanager_v1_generated_PrivateAuctionService_ListPrivateAuctions_Paged_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/listprivateauctions/SyncListPrivateAuctions.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/listprivateauctions/SyncListPrivateAuctions.java new file mode 100644 index 000000000000..7950d719a7a8 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/listprivateauctions/SyncListPrivateAuctions.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_PrivateAuctionService_ListPrivateAuctions_sync] +import com.google.ads.admanager.v1.ListPrivateAuctionsRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.PrivateAuction; +import com.google.ads.admanager.v1.PrivateAuctionServiceClient; + +public class SyncListPrivateAuctions { + + public static void main(String[] args) throws Exception { + syncListPrivateAuctions(); + } + + public static void syncListPrivateAuctions() 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 (PrivateAuctionServiceClient privateAuctionServiceClient = + PrivateAuctionServiceClient.create()) { + ListPrivateAuctionsRequest request = + ListPrivateAuctionsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + for (PrivateAuction element : + privateAuctionServiceClient.listPrivateAuctions(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_PrivateAuctionService_ListPrivateAuctions_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/listprivateauctions/SyncListPrivateAuctionsNetworkname.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/listprivateauctions/SyncListPrivateAuctionsNetworkname.java new file mode 100644 index 000000000000..2a01eb041023 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/listprivateauctions/SyncListPrivateAuctionsNetworkname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_PrivateAuctionService_ListPrivateAuctions_Networkname_sync] +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.PrivateAuction; +import com.google.ads.admanager.v1.PrivateAuctionServiceClient; + +public class SyncListPrivateAuctionsNetworkname { + + public static void main(String[] args) throws Exception { + syncListPrivateAuctionsNetworkname(); + } + + public static void syncListPrivateAuctionsNetworkname() 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 (PrivateAuctionServiceClient privateAuctionServiceClient = + PrivateAuctionServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + for (PrivateAuction element : + privateAuctionServiceClient.listPrivateAuctions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_PrivateAuctionService_ListPrivateAuctions_Networkname_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/listprivateauctions/SyncListPrivateAuctionsString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/listprivateauctions/SyncListPrivateAuctionsString.java new file mode 100644 index 000000000000..5754284f0f94 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/listprivateauctions/SyncListPrivateAuctionsString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_PrivateAuctionService_ListPrivateAuctions_String_sync] +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.PrivateAuction; +import com.google.ads.admanager.v1.PrivateAuctionServiceClient; + +public class SyncListPrivateAuctionsString { + + public static void main(String[] args) throws Exception { + syncListPrivateAuctionsString(); + } + + public static void syncListPrivateAuctionsString() 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 (PrivateAuctionServiceClient privateAuctionServiceClient = + PrivateAuctionServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + for (PrivateAuction element : + privateAuctionServiceClient.listPrivateAuctions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_PrivateAuctionService_ListPrivateAuctions_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/updateprivateauction/AsyncUpdatePrivateAuction.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/updateprivateauction/AsyncUpdatePrivateAuction.java new file mode 100644 index 000000000000..9087e7712842 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/updateprivateauction/AsyncUpdatePrivateAuction.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_PrivateAuctionService_UpdatePrivateAuction_async] +import com.google.ads.admanager.v1.PrivateAuction; +import com.google.ads.admanager.v1.PrivateAuctionServiceClient; +import com.google.ads.admanager.v1.UpdatePrivateAuctionRequest; +import com.google.api.core.ApiFuture; +import com.google.protobuf.FieldMask; + +public class AsyncUpdatePrivateAuction { + + public static void main(String[] args) throws Exception { + asyncUpdatePrivateAuction(); + } + + public static void asyncUpdatePrivateAuction() 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 (PrivateAuctionServiceClient privateAuctionServiceClient = + PrivateAuctionServiceClient.create()) { + UpdatePrivateAuctionRequest request = + UpdatePrivateAuctionRequest.newBuilder() + .setPrivateAuction(PrivateAuction.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + privateAuctionServiceClient.updatePrivateAuctionCallable().futureCall(request); + // Do something. + PrivateAuction response = future.get(); + } + } +} +// [END admanager_v1_generated_PrivateAuctionService_UpdatePrivateAuction_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/updateprivateauction/SyncUpdatePrivateAuction.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/updateprivateauction/SyncUpdatePrivateAuction.java new file mode 100644 index 000000000000..55f899a890af --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/updateprivateauction/SyncUpdatePrivateAuction.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_PrivateAuctionService_UpdatePrivateAuction_sync] +import com.google.ads.admanager.v1.PrivateAuction; +import com.google.ads.admanager.v1.PrivateAuctionServiceClient; +import com.google.ads.admanager.v1.UpdatePrivateAuctionRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdatePrivateAuction { + + public static void main(String[] args) throws Exception { + syncUpdatePrivateAuction(); + } + + public static void syncUpdatePrivateAuction() 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 (PrivateAuctionServiceClient privateAuctionServiceClient = + PrivateAuctionServiceClient.create()) { + UpdatePrivateAuctionRequest request = + UpdatePrivateAuctionRequest.newBuilder() + .setPrivateAuction(PrivateAuction.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + PrivateAuction response = privateAuctionServiceClient.updatePrivateAuction(request); + } + } +} +// [END admanager_v1_generated_PrivateAuctionService_UpdatePrivateAuction_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/updateprivateauction/SyncUpdatePrivateAuctionPrivateauctionFieldmask.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/updateprivateauction/SyncUpdatePrivateAuctionPrivateauctionFieldmask.java new file mode 100644 index 000000000000..0a1b401da584 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservice/updateprivateauction/SyncUpdatePrivateAuctionPrivateauctionFieldmask.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_PrivateAuctionService_UpdatePrivateAuction_PrivateauctionFieldmask_sync] +import com.google.ads.admanager.v1.PrivateAuction; +import com.google.ads.admanager.v1.PrivateAuctionServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdatePrivateAuctionPrivateauctionFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdatePrivateAuctionPrivateauctionFieldmask(); + } + + public static void syncUpdatePrivateAuctionPrivateauctionFieldmask() 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 (PrivateAuctionServiceClient privateAuctionServiceClient = + PrivateAuctionServiceClient.create()) { + PrivateAuction privateAuction = PrivateAuction.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + PrivateAuction response = + privateAuctionServiceClient.updatePrivateAuction(privateAuction, updateMask); + } + } +} +// [END admanager_v1_generated_PrivateAuctionService_UpdatePrivateAuction_PrivateauctionFieldmask_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservicesettings/getprivateauction/SyncGetPrivateAuction.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservicesettings/getprivateauction/SyncGetPrivateAuction.java new file mode 100644 index 000000000000..8686cc230032 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/privateauctionservicesettings/getprivateauction/SyncGetPrivateAuction.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_PrivateAuctionServiceSettings_GetPrivateAuction_sync] +import com.google.ads.admanager.v1.PrivateAuctionServiceSettings; +import java.time.Duration; + +public class SyncGetPrivateAuction { + + public static void main(String[] args) throws Exception { + syncGetPrivateAuction(); + } + + public static void syncGetPrivateAuction() 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 + PrivateAuctionServiceSettings.Builder privateAuctionServiceSettingsBuilder = + PrivateAuctionServiceSettings.newBuilder(); + privateAuctionServiceSettingsBuilder + .getPrivateAuctionSettings() + .setRetrySettings( + privateAuctionServiceSettingsBuilder + .getPrivateAuctionSettings() + .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()); + PrivateAuctionServiceSettings privateAuctionServiceSettings = + privateAuctionServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_PrivateAuctionServiceSettings_GetPrivateAuction_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/programmaticbuyerservice/create/SyncCreateSetCredentialsProvider.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/programmaticbuyerservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..33699f2a514a --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/programmaticbuyerservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_ProgrammaticBuyerService_Create_SetCredentialsProvider_sync] +import com.google.ads.admanager.v1.ProgrammaticBuyerServiceClient; +import com.google.ads.admanager.v1.ProgrammaticBuyerServiceSettings; +import com.google.ads.admanager.v1.myCredentials; +import com.google.api.gax.core.FixedCredentialsProvider; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() 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 + ProgrammaticBuyerServiceSettings programmaticBuyerServiceSettings = + ProgrammaticBuyerServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + ProgrammaticBuyerServiceClient programmaticBuyerServiceClient = + ProgrammaticBuyerServiceClient.create(programmaticBuyerServiceSettings); + } +} +// [END admanager_v1_generated_ProgrammaticBuyerService_Create_SetCredentialsProvider_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/programmaticbuyerservice/create/SyncCreateSetEndpoint.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/programmaticbuyerservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..a4f4067e780b --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/programmaticbuyerservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_ProgrammaticBuyerService_Create_SetEndpoint_sync] +import com.google.ads.admanager.v1.ProgrammaticBuyerServiceClient; +import com.google.ads.admanager.v1.ProgrammaticBuyerServiceSettings; +import com.google.ads.admanager.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() 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 + ProgrammaticBuyerServiceSettings programmaticBuyerServiceSettings = + ProgrammaticBuyerServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + ProgrammaticBuyerServiceClient programmaticBuyerServiceClient = + ProgrammaticBuyerServiceClient.create(programmaticBuyerServiceSettings); + } +} +// [END admanager_v1_generated_ProgrammaticBuyerService_Create_SetEndpoint_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/programmaticbuyerservice/getprogrammaticbuyer/AsyncGetProgrammaticBuyer.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/programmaticbuyerservice/getprogrammaticbuyer/AsyncGetProgrammaticBuyer.java new file mode 100644 index 000000000000..435a845b1efe --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/programmaticbuyerservice/getprogrammaticbuyer/AsyncGetProgrammaticBuyer.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_ProgrammaticBuyerService_GetProgrammaticBuyer_async] +import com.google.ads.admanager.v1.GetProgrammaticBuyerRequest; +import com.google.ads.admanager.v1.ProgrammaticBuyer; +import com.google.ads.admanager.v1.ProgrammaticBuyerName; +import com.google.ads.admanager.v1.ProgrammaticBuyerServiceClient; +import com.google.api.core.ApiFuture; + +public class AsyncGetProgrammaticBuyer { + + public static void main(String[] args) throws Exception { + asyncGetProgrammaticBuyer(); + } + + public static void asyncGetProgrammaticBuyer() 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 (ProgrammaticBuyerServiceClient programmaticBuyerServiceClient = + ProgrammaticBuyerServiceClient.create()) { + GetProgrammaticBuyerRequest request = + GetProgrammaticBuyerRequest.newBuilder() + .setName( + ProgrammaticBuyerName.of("[NETWORK_CODE]", "[PROGRAMMATIC_BUYER]").toString()) + .build(); + ApiFuture future = + programmaticBuyerServiceClient.getProgrammaticBuyerCallable().futureCall(request); + // Do something. + ProgrammaticBuyer response = future.get(); + } + } +} +// [END admanager_v1_generated_ProgrammaticBuyerService_GetProgrammaticBuyer_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/programmaticbuyerservice/getprogrammaticbuyer/SyncGetProgrammaticBuyer.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/programmaticbuyerservice/getprogrammaticbuyer/SyncGetProgrammaticBuyer.java new file mode 100644 index 000000000000..9cc86d6a8324 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/programmaticbuyerservice/getprogrammaticbuyer/SyncGetProgrammaticBuyer.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_ProgrammaticBuyerService_GetProgrammaticBuyer_sync] +import com.google.ads.admanager.v1.GetProgrammaticBuyerRequest; +import com.google.ads.admanager.v1.ProgrammaticBuyer; +import com.google.ads.admanager.v1.ProgrammaticBuyerName; +import com.google.ads.admanager.v1.ProgrammaticBuyerServiceClient; + +public class SyncGetProgrammaticBuyer { + + public static void main(String[] args) throws Exception { + syncGetProgrammaticBuyer(); + } + + public static void syncGetProgrammaticBuyer() 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 (ProgrammaticBuyerServiceClient programmaticBuyerServiceClient = + ProgrammaticBuyerServiceClient.create()) { + GetProgrammaticBuyerRequest request = + GetProgrammaticBuyerRequest.newBuilder() + .setName( + ProgrammaticBuyerName.of("[NETWORK_CODE]", "[PROGRAMMATIC_BUYER]").toString()) + .build(); + ProgrammaticBuyer response = programmaticBuyerServiceClient.getProgrammaticBuyer(request); + } + } +} +// [END admanager_v1_generated_ProgrammaticBuyerService_GetProgrammaticBuyer_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/programmaticbuyerservice/getprogrammaticbuyer/SyncGetProgrammaticBuyerProgrammaticbuyername.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/programmaticbuyerservice/getprogrammaticbuyer/SyncGetProgrammaticBuyerProgrammaticbuyername.java new file mode 100644 index 000000000000..00b512fd2a87 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/programmaticbuyerservice/getprogrammaticbuyer/SyncGetProgrammaticBuyerProgrammaticbuyername.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_ProgrammaticBuyerService_GetProgrammaticBuyer_Programmaticbuyername_sync] +import com.google.ads.admanager.v1.ProgrammaticBuyer; +import com.google.ads.admanager.v1.ProgrammaticBuyerName; +import com.google.ads.admanager.v1.ProgrammaticBuyerServiceClient; + +public class SyncGetProgrammaticBuyerProgrammaticbuyername { + + public static void main(String[] args) throws Exception { + syncGetProgrammaticBuyerProgrammaticbuyername(); + } + + public static void syncGetProgrammaticBuyerProgrammaticbuyername() 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 (ProgrammaticBuyerServiceClient programmaticBuyerServiceClient = + ProgrammaticBuyerServiceClient.create()) { + ProgrammaticBuyerName name = + ProgrammaticBuyerName.of("[NETWORK_CODE]", "[PROGRAMMATIC_BUYER]"); + ProgrammaticBuyer response = programmaticBuyerServiceClient.getProgrammaticBuyer(name); + } + } +} +// [END admanager_v1_generated_ProgrammaticBuyerService_GetProgrammaticBuyer_Programmaticbuyername_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/programmaticbuyerservice/getprogrammaticbuyer/SyncGetProgrammaticBuyerString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/programmaticbuyerservice/getprogrammaticbuyer/SyncGetProgrammaticBuyerString.java new file mode 100644 index 000000000000..97941e78b53f --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/programmaticbuyerservice/getprogrammaticbuyer/SyncGetProgrammaticBuyerString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_ProgrammaticBuyerService_GetProgrammaticBuyer_String_sync] +import com.google.ads.admanager.v1.ProgrammaticBuyer; +import com.google.ads.admanager.v1.ProgrammaticBuyerName; +import com.google.ads.admanager.v1.ProgrammaticBuyerServiceClient; + +public class SyncGetProgrammaticBuyerString { + + public static void main(String[] args) throws Exception { + syncGetProgrammaticBuyerString(); + } + + public static void syncGetProgrammaticBuyerString() 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 (ProgrammaticBuyerServiceClient programmaticBuyerServiceClient = + ProgrammaticBuyerServiceClient.create()) { + String name = ProgrammaticBuyerName.of("[NETWORK_CODE]", "[PROGRAMMATIC_BUYER]").toString(); + ProgrammaticBuyer response = programmaticBuyerServiceClient.getProgrammaticBuyer(name); + } + } +} +// [END admanager_v1_generated_ProgrammaticBuyerService_GetProgrammaticBuyer_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/programmaticbuyerservice/listprogrammaticbuyers/AsyncListProgrammaticBuyers.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/programmaticbuyerservice/listprogrammaticbuyers/AsyncListProgrammaticBuyers.java new file mode 100644 index 000000000000..b6213a146512 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/programmaticbuyerservice/listprogrammaticbuyers/AsyncListProgrammaticBuyers.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_ProgrammaticBuyerService_ListProgrammaticBuyers_async] +import com.google.ads.admanager.v1.ListProgrammaticBuyersRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.ProgrammaticBuyer; +import com.google.ads.admanager.v1.ProgrammaticBuyerServiceClient; +import com.google.api.core.ApiFuture; + +public class AsyncListProgrammaticBuyers { + + public static void main(String[] args) throws Exception { + asyncListProgrammaticBuyers(); + } + + public static void asyncListProgrammaticBuyers() 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 (ProgrammaticBuyerServiceClient programmaticBuyerServiceClient = + ProgrammaticBuyerServiceClient.create()) { + ListProgrammaticBuyersRequest request = + ListProgrammaticBuyersRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + ApiFuture future = + programmaticBuyerServiceClient.listProgrammaticBuyersPagedCallable().futureCall(request); + // Do something. + for (ProgrammaticBuyer element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_ProgrammaticBuyerService_ListProgrammaticBuyers_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/programmaticbuyerservice/listprogrammaticbuyers/AsyncListProgrammaticBuyersPaged.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/programmaticbuyerservice/listprogrammaticbuyers/AsyncListProgrammaticBuyersPaged.java new file mode 100644 index 000000000000..40a6afc2fe05 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/programmaticbuyerservice/listprogrammaticbuyers/AsyncListProgrammaticBuyersPaged.java @@ -0,0 +1,66 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_ProgrammaticBuyerService_ListProgrammaticBuyers_Paged_async] +import com.google.ads.admanager.v1.ListProgrammaticBuyersRequest; +import com.google.ads.admanager.v1.ListProgrammaticBuyersResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.ProgrammaticBuyer; +import com.google.ads.admanager.v1.ProgrammaticBuyerServiceClient; +import com.google.common.base.Strings; + +public class AsyncListProgrammaticBuyersPaged { + + public static void main(String[] args) throws Exception { + asyncListProgrammaticBuyersPaged(); + } + + public static void asyncListProgrammaticBuyersPaged() 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 (ProgrammaticBuyerServiceClient programmaticBuyerServiceClient = + ProgrammaticBuyerServiceClient.create()) { + ListProgrammaticBuyersRequest request = + ListProgrammaticBuyersRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + while (true) { + ListProgrammaticBuyersResponse response = + programmaticBuyerServiceClient.listProgrammaticBuyersCallable().call(request); + for (ProgrammaticBuyer element : response.getProgrammaticBuyersList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END admanager_v1_generated_ProgrammaticBuyerService_ListProgrammaticBuyers_Paged_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/programmaticbuyerservice/listprogrammaticbuyers/SyncListProgrammaticBuyers.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/programmaticbuyerservice/listprogrammaticbuyers/SyncListProgrammaticBuyers.java new file mode 100644 index 000000000000..70fbd70cc08e --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/programmaticbuyerservice/listprogrammaticbuyers/SyncListProgrammaticBuyers.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_ProgrammaticBuyerService_ListProgrammaticBuyers_sync] +import com.google.ads.admanager.v1.ListProgrammaticBuyersRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.ProgrammaticBuyer; +import com.google.ads.admanager.v1.ProgrammaticBuyerServiceClient; + +public class SyncListProgrammaticBuyers { + + public static void main(String[] args) throws Exception { + syncListProgrammaticBuyers(); + } + + public static void syncListProgrammaticBuyers() 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 (ProgrammaticBuyerServiceClient programmaticBuyerServiceClient = + ProgrammaticBuyerServiceClient.create()) { + ListProgrammaticBuyersRequest request = + ListProgrammaticBuyersRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + for (ProgrammaticBuyer element : + programmaticBuyerServiceClient.listProgrammaticBuyers(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_ProgrammaticBuyerService_ListProgrammaticBuyers_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/programmaticbuyerservice/listprogrammaticbuyers/SyncListProgrammaticBuyersNetworkname.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/programmaticbuyerservice/listprogrammaticbuyers/SyncListProgrammaticBuyersNetworkname.java new file mode 100644 index 000000000000..021fecf7d835 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/programmaticbuyerservice/listprogrammaticbuyers/SyncListProgrammaticBuyersNetworkname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_ProgrammaticBuyerService_ListProgrammaticBuyers_Networkname_sync] +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.ProgrammaticBuyer; +import com.google.ads.admanager.v1.ProgrammaticBuyerServiceClient; + +public class SyncListProgrammaticBuyersNetworkname { + + public static void main(String[] args) throws Exception { + syncListProgrammaticBuyersNetworkname(); + } + + public static void syncListProgrammaticBuyersNetworkname() 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 (ProgrammaticBuyerServiceClient programmaticBuyerServiceClient = + ProgrammaticBuyerServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + for (ProgrammaticBuyer element : + programmaticBuyerServiceClient.listProgrammaticBuyers(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_ProgrammaticBuyerService_ListProgrammaticBuyers_Networkname_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/programmaticbuyerservice/listprogrammaticbuyers/SyncListProgrammaticBuyersString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/programmaticbuyerservice/listprogrammaticbuyers/SyncListProgrammaticBuyersString.java new file mode 100644 index 000000000000..3832867e4522 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/programmaticbuyerservice/listprogrammaticbuyers/SyncListProgrammaticBuyersString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_ProgrammaticBuyerService_ListProgrammaticBuyers_String_sync] +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.ProgrammaticBuyer; +import com.google.ads.admanager.v1.ProgrammaticBuyerServiceClient; + +public class SyncListProgrammaticBuyersString { + + public static void main(String[] args) throws Exception { + syncListProgrammaticBuyersString(); + } + + public static void syncListProgrammaticBuyersString() 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 (ProgrammaticBuyerServiceClient programmaticBuyerServiceClient = + ProgrammaticBuyerServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + for (ProgrammaticBuyer element : + programmaticBuyerServiceClient.listProgrammaticBuyers(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_ProgrammaticBuyerService_ListProgrammaticBuyers_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/programmaticbuyerservicesettings/getprogrammaticbuyer/SyncGetProgrammaticBuyer.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/programmaticbuyerservicesettings/getprogrammaticbuyer/SyncGetProgrammaticBuyer.java new file mode 100644 index 000000000000..bfc11eb7e237 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/programmaticbuyerservicesettings/getprogrammaticbuyer/SyncGetProgrammaticBuyer.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.samples; + +// [START admanager_v1_generated_ProgrammaticBuyerServiceSettings_GetProgrammaticBuyer_sync] +import com.google.ads.admanager.v1.ProgrammaticBuyerServiceSettings; +import java.time.Duration; + +public class SyncGetProgrammaticBuyer { + + public static void main(String[] args) throws Exception { + syncGetProgrammaticBuyer(); + } + + public static void syncGetProgrammaticBuyer() 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 + ProgrammaticBuyerServiceSettings.Builder programmaticBuyerServiceSettingsBuilder = + ProgrammaticBuyerServiceSettings.newBuilder(); + programmaticBuyerServiceSettingsBuilder + .getProgrammaticBuyerSettings() + .setRetrySettings( + programmaticBuyerServiceSettingsBuilder + .getProgrammaticBuyerSettings() + .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()); + ProgrammaticBuyerServiceSettings programmaticBuyerServiceSettings = + programmaticBuyerServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_ProgrammaticBuyerServiceSettings_GetProgrammaticBuyer_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/adbreakservicestubsettings/getadbreak/SyncGetAdBreak.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/adbreakservicestubsettings/getadbreak/SyncGetAdBreak.java new file mode 100644 index 000000000000..eae6f24fb878 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/adbreakservicestubsettings/getadbreak/SyncGetAdBreak.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.stub.samples; + +// [START admanager_v1_generated_AdBreakServiceStubSettings_GetAdBreak_sync] +import com.google.ads.admanager.v1.stub.AdBreakServiceStubSettings; +import java.time.Duration; + +public class SyncGetAdBreak { + + public static void main(String[] args) throws Exception { + syncGetAdBreak(); + } + + public static void syncGetAdBreak() 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 + AdBreakServiceStubSettings.Builder adBreakServiceSettingsBuilder = + AdBreakServiceStubSettings.newBuilder(); + adBreakServiceSettingsBuilder + .getAdBreakSettings() + .setRetrySettings( + adBreakServiceSettingsBuilder + .getAdBreakSettings() + .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()); + AdBreakServiceStubSettings adBreakServiceSettings = adBreakServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_AdBreakServiceStubSettings_GetAdBreak_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/bandwidthgroupservicestubsettings/getbandwidthgroup/SyncGetBandwidthGroup.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/bandwidthgroupservicestubsettings/getbandwidthgroup/SyncGetBandwidthGroup.java new file mode 100644 index 000000000000..c00dc27bf5d3 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/bandwidthgroupservicestubsettings/getbandwidthgroup/SyncGetBandwidthGroup.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.stub.samples; + +// [START admanager_v1_generated_BandwidthGroupServiceStubSettings_GetBandwidthGroup_sync] +import com.google.ads.admanager.v1.stub.BandwidthGroupServiceStubSettings; +import java.time.Duration; + +public class SyncGetBandwidthGroup { + + public static void main(String[] args) throws Exception { + syncGetBandwidthGroup(); + } + + public static void syncGetBandwidthGroup() 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 + BandwidthGroupServiceStubSettings.Builder bandwidthGroupServiceSettingsBuilder = + BandwidthGroupServiceStubSettings.newBuilder(); + bandwidthGroupServiceSettingsBuilder + .getBandwidthGroupSettings() + .setRetrySettings( + bandwidthGroupServiceSettingsBuilder + .getBandwidthGroupSettings() + .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()); + BandwidthGroupServiceStubSettings bandwidthGroupServiceSettings = + bandwidthGroupServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_BandwidthGroupServiceStubSettings_GetBandwidthGroup_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/devicecategoryservicestubsettings/getdevicecategory/SyncGetDeviceCategory.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/devicecategoryservicestubsettings/getdevicecategory/SyncGetDeviceCategory.java new file mode 100644 index 000000000000..ea9562901b0b --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/devicecategoryservicestubsettings/getdevicecategory/SyncGetDeviceCategory.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.stub.samples; + +// [START admanager_v1_generated_DeviceCategoryServiceStubSettings_GetDeviceCategory_sync] +import com.google.ads.admanager.v1.stub.DeviceCategoryServiceStubSettings; +import java.time.Duration; + +public class SyncGetDeviceCategory { + + public static void main(String[] args) throws Exception { + syncGetDeviceCategory(); + } + + public static void syncGetDeviceCategory() 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 + DeviceCategoryServiceStubSettings.Builder deviceCategoryServiceSettingsBuilder = + DeviceCategoryServiceStubSettings.newBuilder(); + deviceCategoryServiceSettingsBuilder + .getDeviceCategorySettings() + .setRetrySettings( + deviceCategoryServiceSettingsBuilder + .getDeviceCategorySettings() + .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()); + DeviceCategoryServiceStubSettings deviceCategoryServiceSettings = + deviceCategoryServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_DeviceCategoryServiceStubSettings_GetDeviceCategory_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/geotargetservicestubsettings/getgeotarget/SyncGetGeoTarget.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/geotargetservicestubsettings/getgeotarget/SyncGetGeoTarget.java new file mode 100644 index 000000000000..0cbf59571fb6 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/geotargetservicestubsettings/getgeotarget/SyncGetGeoTarget.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.stub.samples; + +// [START admanager_v1_generated_GeoTargetServiceStubSettings_GetGeoTarget_sync] +import com.google.ads.admanager.v1.stub.GeoTargetServiceStubSettings; +import java.time.Duration; + +public class SyncGetGeoTarget { + + public static void main(String[] args) throws Exception { + syncGetGeoTarget(); + } + + public static void syncGetGeoTarget() 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 + GeoTargetServiceStubSettings.Builder geoTargetServiceSettingsBuilder = + GeoTargetServiceStubSettings.newBuilder(); + geoTargetServiceSettingsBuilder + .getGeoTargetSettings() + .setRetrySettings( + geoTargetServiceSettingsBuilder + .getGeoTargetSettings() + .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()); + GeoTargetServiceStubSettings geoTargetServiceSettings = geoTargetServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_GeoTargetServiceStubSettings_GetGeoTarget_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/operatingsystemservicestubsettings/getoperatingsystem/SyncGetOperatingSystem.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/operatingsystemservicestubsettings/getoperatingsystem/SyncGetOperatingSystem.java new file mode 100644 index 000000000000..bbe358516ed2 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/operatingsystemservicestubsettings/getoperatingsystem/SyncGetOperatingSystem.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.stub.samples; + +// [START admanager_v1_generated_OperatingSystemServiceStubSettings_GetOperatingSystem_sync] +import com.google.ads.admanager.v1.stub.OperatingSystemServiceStubSettings; +import java.time.Duration; + +public class SyncGetOperatingSystem { + + public static void main(String[] args) throws Exception { + syncGetOperatingSystem(); + } + + public static void syncGetOperatingSystem() 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 + OperatingSystemServiceStubSettings.Builder operatingSystemServiceSettingsBuilder = + OperatingSystemServiceStubSettings.newBuilder(); + operatingSystemServiceSettingsBuilder + .getOperatingSystemSettings() + .setRetrySettings( + operatingSystemServiceSettingsBuilder + .getOperatingSystemSettings() + .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()); + OperatingSystemServiceStubSettings operatingSystemServiceSettings = + operatingSystemServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_OperatingSystemServiceStubSettings_GetOperatingSystem_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/operatingsystemversionservicestubsettings/getoperatingsystemversion/SyncGetOperatingSystemVersion.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/operatingsystemversionservicestubsettings/getoperatingsystemversion/SyncGetOperatingSystemVersion.java new file mode 100644 index 000000000000..992fc238987b --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/operatingsystemversionservicestubsettings/getoperatingsystemversion/SyncGetOperatingSystemVersion.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.stub.samples; + +// [START admanager_v1_generated_OperatingSystemVersionServiceStubSettings_GetOperatingSystemVersion_sync] +import com.google.ads.admanager.v1.stub.OperatingSystemVersionServiceStubSettings; +import java.time.Duration; + +public class SyncGetOperatingSystemVersion { + + public static void main(String[] args) throws Exception { + syncGetOperatingSystemVersion(); + } + + public static void syncGetOperatingSystemVersion() 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 + OperatingSystemVersionServiceStubSettings.Builder operatingSystemVersionServiceSettingsBuilder = + OperatingSystemVersionServiceStubSettings.newBuilder(); + operatingSystemVersionServiceSettingsBuilder + .getOperatingSystemVersionSettings() + .setRetrySettings( + operatingSystemVersionServiceSettingsBuilder + .getOperatingSystemVersionSettings() + .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()); + OperatingSystemVersionServiceStubSettings operatingSystemVersionServiceSettings = + operatingSystemVersionServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_OperatingSystemVersionServiceStubSettings_GetOperatingSystemVersion_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/privateauctiondealservicestubsettings/getprivateauctiondeal/SyncGetPrivateAuctionDeal.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/privateauctiondealservicestubsettings/getprivateauctiondeal/SyncGetPrivateAuctionDeal.java new file mode 100644 index 000000000000..7b67cd7865d1 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/privateauctiondealservicestubsettings/getprivateauctiondeal/SyncGetPrivateAuctionDeal.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.stub.samples; + +// [START admanager_v1_generated_PrivateAuctionDealServiceStubSettings_GetPrivateAuctionDeal_sync] +import com.google.ads.admanager.v1.stub.PrivateAuctionDealServiceStubSettings; +import java.time.Duration; + +public class SyncGetPrivateAuctionDeal { + + public static void main(String[] args) throws Exception { + syncGetPrivateAuctionDeal(); + } + + public static void syncGetPrivateAuctionDeal() 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 + PrivateAuctionDealServiceStubSettings.Builder privateAuctionDealServiceSettingsBuilder = + PrivateAuctionDealServiceStubSettings.newBuilder(); + privateAuctionDealServiceSettingsBuilder + .getPrivateAuctionDealSettings() + .setRetrySettings( + privateAuctionDealServiceSettingsBuilder + .getPrivateAuctionDealSettings() + .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()); + PrivateAuctionDealServiceStubSettings privateAuctionDealServiceSettings = + privateAuctionDealServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_PrivateAuctionDealServiceStubSettings_GetPrivateAuctionDeal_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/privateauctionservicestubsettings/getprivateauction/SyncGetPrivateAuction.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/privateauctionservicestubsettings/getprivateauction/SyncGetPrivateAuction.java new file mode 100644 index 000000000000..da0de4a40dfa --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/privateauctionservicestubsettings/getprivateauction/SyncGetPrivateAuction.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.stub.samples; + +// [START admanager_v1_generated_PrivateAuctionServiceStubSettings_GetPrivateAuction_sync] +import com.google.ads.admanager.v1.stub.PrivateAuctionServiceStubSettings; +import java.time.Duration; + +public class SyncGetPrivateAuction { + + public static void main(String[] args) throws Exception { + syncGetPrivateAuction(); + } + + public static void syncGetPrivateAuction() 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 + PrivateAuctionServiceStubSettings.Builder privateAuctionServiceSettingsBuilder = + PrivateAuctionServiceStubSettings.newBuilder(); + privateAuctionServiceSettingsBuilder + .getPrivateAuctionSettings() + .setRetrySettings( + privateAuctionServiceSettingsBuilder + .getPrivateAuctionSettings() + .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()); + PrivateAuctionServiceStubSettings privateAuctionServiceSettings = + privateAuctionServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_PrivateAuctionServiceStubSettings_GetPrivateAuction_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/programmaticbuyerservicestubsettings/getprogrammaticbuyer/SyncGetProgrammaticBuyer.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/programmaticbuyerservicestubsettings/getprogrammaticbuyer/SyncGetProgrammaticBuyer.java new file mode 100644 index 000000000000..945eed7c1e11 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/programmaticbuyerservicestubsettings/getprogrammaticbuyer/SyncGetProgrammaticBuyer.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.admanager.v1.stub.samples; + +// [START admanager_v1_generated_ProgrammaticBuyerServiceStubSettings_GetProgrammaticBuyer_sync] +import com.google.ads.admanager.v1.stub.ProgrammaticBuyerServiceStubSettings; +import java.time.Duration; + +public class SyncGetProgrammaticBuyer { + + public static void main(String[] args) throws Exception { + syncGetProgrammaticBuyer(); + } + + public static void syncGetProgrammaticBuyer() 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 + ProgrammaticBuyerServiceStubSettings.Builder programmaticBuyerServiceSettingsBuilder = + ProgrammaticBuyerServiceStubSettings.newBuilder(); + programmaticBuyerServiceSettingsBuilder + .getProgrammaticBuyerSettings() + .setRetrySettings( + programmaticBuyerServiceSettingsBuilder + .getProgrammaticBuyerSettings() + .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()); + ProgrammaticBuyerServiceStubSettings programmaticBuyerServiceSettings = + programmaticBuyerServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_ProgrammaticBuyerServiceStubSettings_GetProgrammaticBuyer_sync] diff --git a/java-advisorynotifications/CHANGELOG.md b/java-advisorynotifications/CHANGELOG.md index 63debfbbdb6d..28d3575add9d 100644 --- a/java-advisorynotifications/CHANGELOG.md +++ b/java-advisorynotifications/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.57.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.56.0 (2025-06-25) ### Dependencies diff --git a/java-advisorynotifications/README.md b/java-advisorynotifications/README.md index 482a778a9b41..daa843bb2f54 100644 --- a/java-advisorynotifications/README.md +++ b/java-advisorynotifications/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-advisorynotifications - 0.55.0 + 0.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-advisorynotifications:0.55.0' +implementation 'com.google.cloud:google-cloud-advisorynotifications:0.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-advisorynotifications" % "0.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-advisorynotifications" % "0.56.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-advisorynotifications/0.56.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/google-cloud-advisorynotifications-bom/pom.xml b/java-advisorynotifications/google-cloud-advisorynotifications-bom/pom.xml index 73b57c646773..a69fea478f85 100644 --- a/java-advisorynotifications/google-cloud-advisorynotifications-bom/pom.xml +++ b/java-advisorynotifications/google-cloud-advisorynotifications-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-advisorynotifications-bom - 0.56.0 + 0.57.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-advisorynotifications - 0.56.0 + 0.57.0 com.google.api.grpc grpc-google-cloud-advisorynotifications-v1 - 0.56.0 + 0.57.0 com.google.api.grpc proto-google-cloud-advisorynotifications-v1 - 0.56.0 + 0.57.0
diff --git a/java-advisorynotifications/google-cloud-advisorynotifications/pom.xml b/java-advisorynotifications/google-cloud-advisorynotifications/pom.xml index b77a23ddcc2f..308cb4899954 100644 --- a/java-advisorynotifications/google-cloud-advisorynotifications/pom.xml +++ b/java-advisorynotifications/google-cloud-advisorynotifications/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-advisorynotifications - 0.56.0 + 0.57.0 jar Google Advisory Notifications API Advisory Notifications API An API for accessing Advisory Notifications in Google Cloud. com.google.cloud google-cloud-advisorynotifications-parent - 0.56.0 + 0.57.0 google-cloud-advisorynotifications diff --git a/java-advisorynotifications/grpc-google-cloud-advisorynotifications-v1/pom.xml b/java-advisorynotifications/grpc-google-cloud-advisorynotifications-v1/pom.xml index b8c74078ed94..d877f3d2c91d 100644 --- a/java-advisorynotifications/grpc-google-cloud-advisorynotifications-v1/pom.xml +++ b/java-advisorynotifications/grpc-google-cloud-advisorynotifications-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-advisorynotifications-v1 - 0.56.0 + 0.57.0 grpc-google-cloud-advisorynotifications-v1 GRPC library for google-cloud-advisorynotifications com.google.cloud google-cloud-advisorynotifications-parent - 0.56.0 + 0.57.0 diff --git a/java-advisorynotifications/pom.xml b/java-advisorynotifications/pom.xml index c3b3ef4e5883..52fdbb82f727 100644 --- a/java-advisorynotifications/pom.xml +++ b/java-advisorynotifications/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-advisorynotifications-parent pom - 0.56.0 + 0.57.0 Google Advisory Notifications API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-advisorynotifications - 0.56.0 + 0.57.0 com.google.api.grpc grpc-google-cloud-advisorynotifications-v1 - 0.56.0 + 0.57.0 com.google.api.grpc proto-google-cloud-advisorynotifications-v1 - 0.56.0 + 0.57.0 diff --git a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/pom.xml b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/pom.xml index fbad7919b83c..4e0ded156179 100644 --- a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/pom.xml +++ b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-advisorynotifications-v1 - 0.56.0 + 0.57.0 proto-google-cloud-advisorynotifications-v1 Proto library for google-cloud-advisorynotifications com.google.cloud google-cloud-advisorynotifications-parent - 0.56.0 + 0.57.0 diff --git a/java-aiplatform/CHANGELOG.md b/java-aiplatform/CHANGELOG.md index 980aae2284b6..6479e02d73cf 100644 --- a/java-aiplatform/CHANGELOG.md +++ b/java-aiplatform/CHANGELOG.md @@ -1,5 +1,24 @@ # Changelog +## 3.69.0 (2025-07-11) + +### Features + +* Add Aggregation Output in EvaluateDataset Get Operation Response ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) +* add computer use support to tools ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) +* add computer use support to tools ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) +* add flexstart option to v1beta1 ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) +* add invoke_route_prefix to ModelContainerSpec in aiplatform v1 models.proto ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) +* add message ColabImage, add field colab_image to NotebookSoftwareConfig ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) +* add message ColabImage, add field colab_image to NotebookSoftwareConfig ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) +* Expose task_unique_name in pipeline task details for pipeline rerun ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) +* Expose task_unique_name in pipeline task details for pipeline rerun ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 3.68.0 (2025-06-25) ### Features diff --git a/java-aiplatform/README.md b/java-aiplatform/README.md index cd1f3bf10506..e1ac526f89fd 100644 --- a/java-aiplatform/README.md +++ b/java-aiplatform/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-aiplatform - 3.67.0 + 3.68.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-aiplatform:3.67.0' +implementation 'com.google.cloud:google-cloud-aiplatform:3.68.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.67.0" +libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.68.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.67.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.68.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/google-cloud-aiplatform-bom/pom.xml b/java-aiplatform/google-cloud-aiplatform-bom/pom.xml index 4b20a2dfb76d..65642b5b6d00 100644 --- a/java-aiplatform/google-cloud-aiplatform-bom/pom.xml +++ b/java-aiplatform/google-cloud-aiplatform-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-aiplatform-bom - 3.68.0 + 3.69.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-aiplatform - 3.68.0 + 3.69.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1 - 3.68.0 + 3.69.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1beta1 - 0.84.0 + 0.85.0 com.google.api.grpc proto-google-cloud-aiplatform-v1 - 3.68.0 + 3.69.0 com.google.api.grpc proto-google-cloud-aiplatform-v1beta1 - 0.84.0 + 0.85.0 diff --git a/java-aiplatform/google-cloud-aiplatform/pom.xml b/java-aiplatform/google-cloud-aiplatform/pom.xml index d4797d3f25b5..632f76c78110 100644 --- a/java-aiplatform/google-cloud-aiplatform/pom.xml +++ b/java-aiplatform/google-cloud-aiplatform/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-aiplatform - 3.68.0 + 3.69.0 jar Google Cloud Vertex AI Java client for Google Cloud Vertex AI services. com.google.cloud google-cloud-aiplatform-parent - 3.68.0 + 3.69.0 google-cloud-aiplatform diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json index 806c10695377..ad0de8b624f8 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json +++ b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json @@ -2069,6 +2069,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.ColabImage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ColabImage$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.CometInput", "queryAllDeclaredConstructors": true, @@ -19385,6 +19403,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.Tool$ComputerUse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.Tool$ComputerUse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.Tool$ComputerUse$Environment", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.Tool$GoogleSearch", "queryAllDeclaredConstructors": true, diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json index 462adc5eb562..a4a2aa8767a6 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json +++ b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json @@ -602,6 +602,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.AggregationOutput", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.AggregationOutput$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.AggregationResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.AggregationResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.Annotation", "queryAllDeclaredConstructors": true, @@ -2573,6 +2609,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ColabImage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ColabImage$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.CometInput", "queryAllDeclaredConstructors": true, @@ -9305,6 +9359,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.FlexStart", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.FlexStart$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.FluencyInput", "queryAllDeclaredConstructors": true, @@ -24299,6 +24371,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.Tool$ComputerUse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.Tool$ComputerUse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.Tool$ComputerUse$Environment", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.Tool$GoogleSearch", "queryAllDeclaredConstructors": true, diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceClientTest.java index bae0f16b9028..33b0137c0033 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceClientTest.java @@ -208,7 +208,10 @@ public void evaluateInstancesExceptionTest() throws Exception { @Test public void evaluateDatasetTest() throws Exception { EvaluateDatasetResponse expectedResponse = - EvaluateDatasetResponse.newBuilder().setOutputInfo(OutputInfo.newBuilder().build()).build(); + EvaluateDatasetResponse.newBuilder() + .setAggregationOutput(AggregationOutput.newBuilder().build()) + .setOutputInfo(OutputInfo.newBuilder().build()) + .build(); Operation resultOperation = Operation.newBuilder() .setName("evaluateDatasetTest") diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/pom.xml b/java-aiplatform/grpc-google-cloud-aiplatform-v1/pom.xml index 79c9c17bd749..7e47218857a7 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/pom.xml +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1 - 3.68.0 + 3.69.0 grpc-google-cloud-aiplatform-v1 GRPC library for google-cloud-aiplatform com.google.cloud google-cloud-aiplatform-parent - 3.68.0 + 3.69.0 diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/pom.xml b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/pom.xml index 46d695f274d8..b414a5bef336 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/pom.xml +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1beta1 - 0.84.0 + 0.85.0 grpc-google-cloud-aiplatform-v1beta1 GRPC library for google-cloud-aiplatform com.google.cloud google-cloud-aiplatform-parent - 3.68.0 + 3.69.0 diff --git a/java-aiplatform/pom.xml b/java-aiplatform/pom.xml index 8115db3090e5..fbf16a1d59be 100644 --- a/java-aiplatform/pom.xml +++ b/java-aiplatform/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-aiplatform-parent pom - 3.68.0 + 3.69.0 Google Cloud Vertex AI Parent Java client for Google Cloud Vertex AI services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-aiplatform - 3.68.0 + 3.69.0 com.google.api.grpc proto-google-cloud-aiplatform-v1 - 3.68.0 + 3.69.0 com.google.api.grpc proto-google-cloud-aiplatform-v1beta1 - 0.84.0 + 0.85.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1 - 3.68.0 + 3.69.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1beta1 - 0.84.0 + 0.85.0 diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/pom.xml b/java-aiplatform/proto-google-cloud-aiplatform-v1/pom.xml index 1126fc0e04d2..1fd12da50d8c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/pom.xml +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-aiplatform-v1 - 3.68.0 + 3.69.0 proto-google-cloud-aiplatform-v1 Proto library for google-cloud-aiplatform com.google.cloud google-cloud-aiplatform-parent - 3.68.0 + 3.69.0 diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ColabImage.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ColabImage.java new file mode 100644 index 000000000000..bb00b02c49aa --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ColabImage.java @@ -0,0 +1,843 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/notebook_software_config.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Colab image of the runtime.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ColabImage} + */ +public final class ColabImage extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ColabImage) + ColabImageOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ColabImage.newBuilder() to construct. + private ColabImage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ColabImage() { + releaseName_ = ""; + description_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ColabImage(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.NotebookSoftwareConfigProto + .internal_static_google_cloud_aiplatform_v1_ColabImage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.NotebookSoftwareConfigProto + .internal_static_google_cloud_aiplatform_v1_ColabImage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ColabImage.class, + com.google.cloud.aiplatform.v1.ColabImage.Builder.class); + } + + public static final int RELEASE_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object releaseName_ = ""; + + /** + * + * + *
+   * Optional. The release name of the NotebookRuntime Colab image, e.g.
+   * "py310". If not specified, detault to the latest release.
+   * 
+ * + * string release_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The releaseName. + */ + @java.lang.Override + public java.lang.String getReleaseName() { + java.lang.Object ref = releaseName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + releaseName_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The release name of the NotebookRuntime Colab image, e.g.
+   * "py310". If not specified, detault to the latest release.
+   * 
+ * + * string release_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for releaseName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getReleaseNameBytes() { + java.lang.Object ref = releaseName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + releaseName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * Output only. A human-readable description of the specified colab image
+   * release, populated by the system. Example: "Python 3.10", "Latest - current
+   * Python 3.11"
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+   * Output only. A human-readable description of the specified colab image
+   * release, populated by the system. Example: "Python 3.10", "Latest - current
+   * Python 3.11"
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(releaseName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, releaseName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(releaseName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, releaseName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.ColabImage)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.ColabImage other = + (com.google.cloud.aiplatform.v1.ColabImage) obj; + + if (!getReleaseName().equals(other.getReleaseName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RELEASE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getReleaseName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.ColabImage parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ColabImage parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ColabImage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ColabImage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ColabImage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ColabImage parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ColabImage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ColabImage parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ColabImage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ColabImage parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ColabImage parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ColabImage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1.ColabImage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Colab image of the runtime.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ColabImage} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ColabImage) + com.google.cloud.aiplatform.v1.ColabImageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.NotebookSoftwareConfigProto + .internal_static_google_cloud_aiplatform_v1_ColabImage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.NotebookSoftwareConfigProto + .internal_static_google_cloud_aiplatform_v1_ColabImage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ColabImage.class, + com.google.cloud.aiplatform.v1.ColabImage.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.ColabImage.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + releaseName_ = ""; + description_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.NotebookSoftwareConfigProto + .internal_static_google_cloud_aiplatform_v1_ColabImage_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ColabImage getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.ColabImage.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ColabImage build() { + com.google.cloud.aiplatform.v1.ColabImage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ColabImage buildPartial() { + com.google.cloud.aiplatform.v1.ColabImage result = + new com.google.cloud.aiplatform.v1.ColabImage(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ColabImage result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.releaseName_ = releaseName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.ColabImage) { + return mergeFrom((com.google.cloud.aiplatform.v1.ColabImage) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.ColabImage other) { + if (other == com.google.cloud.aiplatform.v1.ColabImage.getDefaultInstance()) return this; + if (!other.getReleaseName().isEmpty()) { + releaseName_ = other.releaseName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + 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: + { + releaseName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object releaseName_ = ""; + + /** + * + * + *
+     * Optional. The release name of the NotebookRuntime Colab image, e.g.
+     * "py310". If not specified, detault to the latest release.
+     * 
+ * + * string release_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The releaseName. + */ + public java.lang.String getReleaseName() { + java.lang.Object ref = releaseName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + releaseName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The release name of the NotebookRuntime Colab image, e.g.
+     * "py310". If not specified, detault to the latest release.
+     * 
+ * + * string release_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for releaseName. + */ + public com.google.protobuf.ByteString getReleaseNameBytes() { + java.lang.Object ref = releaseName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + releaseName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The release name of the NotebookRuntime Colab image, e.g.
+     * "py310". If not specified, detault to the latest release.
+     * 
+ * + * string release_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The releaseName to set. + * @return This builder for chaining. + */ + public Builder setReleaseName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + releaseName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The release name of the NotebookRuntime Colab image, e.g.
+     * "py310". If not specified, detault to the latest release.
+     * 
+ * + * string release_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearReleaseName() { + releaseName_ = getDefaultInstance().getReleaseName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The release name of the NotebookRuntime Colab image, e.g.
+     * "py310". If not specified, detault to the latest release.
+     * 
+ * + * string release_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for releaseName to set. + * @return This builder for chaining. + */ + public Builder setReleaseNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + releaseName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+     * Output only. A human-readable description of the specified colab image
+     * release, populated by the system. Example: "Python 3.10", "Latest - current
+     * Python 3.11"
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. A human-readable description of the specified colab image
+     * release, populated by the system. Example: "Python 3.10", "Latest - current
+     * Python 3.11"
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. A human-readable description of the specified colab image
+     * release, populated by the system. Example: "Python 3.10", "Latest - current
+     * Python 3.11"
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + + /** + * + * + *
+     * Output only. A human-readable description of the specified colab image
+     * release, populated by the system. Example: "Python 3.10", "Latest - current
+     * Python 3.11"
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. A human-readable description of the specified colab image
+     * release, populated by the system. Example: "Python 3.10", "Latest - current
+     * Python 3.11"
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.ColabImage) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ColabImage) + private static final com.google.cloud.aiplatform.v1.ColabImage DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.ColabImage(); + } + + public static com.google.cloud.aiplatform.v1.ColabImage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ColabImage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ColabImage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ColabImageOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ColabImageOrBuilder.java new file mode 100644 index 000000000000..8cc2624a001b --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ColabImageOrBuilder.java @@ -0,0 +1,84 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/notebook_software_config.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.aiplatform.v1; + +public interface ColabImageOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ColabImage) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The release name of the NotebookRuntime Colab image, e.g.
+   * "py310". If not specified, detault to the latest release.
+   * 
+ * + * string release_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The releaseName. + */ + java.lang.String getReleaseName(); + + /** + * + * + *
+   * Optional. The release name of the NotebookRuntime Colab image, e.g.
+   * "py310". If not specified, detault to the latest release.
+   * 
+ * + * string release_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for releaseName. + */ + com.google.protobuf.ByteString getReleaseNameBytes(); + + /** + * + * + *
+   * Output only. A human-readable description of the specified colab image
+   * release, populated by the system. Example: "Python 3.10", "Latest - current
+   * Python 3.11"
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Output only. A human-readable description of the specified colab image
+   * release, populated by the system. Example: "Python 3.10", "Latest - current
+   * Python 3.11"
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelContainerSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelContainerSpec.java index c3f6a6d38f2b..efe46daa33d5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelContainerSpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelContainerSpec.java @@ -49,6 +49,7 @@ private ModelContainerSpec() { ports_ = java.util.Collections.emptyList(); predictRoute_ = ""; healthRoute_ = ""; + invokeRoutePrefix_ = ""; grpcPorts_ = java.util.Collections.emptyList(); } @@ -1206,6 +1207,73 @@ public com.google.protobuf.ByteString getHealthRouteBytes() { } } + public static final int INVOKE_ROUTE_PREFIX_FIELD_NUMBER = 15; + + @SuppressWarnings("serial") + private volatile java.lang.Object invokeRoutePrefix_ = ""; + + /** + * + * + *
+   * Immutable. Invoke route prefix for the custom container. "/*" is the only
+   * supported value right now. By setting this field, any non-root route on
+   * this model will be accessible with invoke http call eg: "/invoke/foo/bar",
+   * however the [PredictionService.Invoke] RPC is not supported yet.
+   *
+   * Only one of `predict_route` or `invoke_route_prefix` can be set, and we
+   * default to using `predict_route` if this field is not set. If this field
+   * is set, the Model can only be deployed to dedicated endpoint.
+   * 
+ * + * string invoke_route_prefix = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The invokeRoutePrefix. + */ + @java.lang.Override + public java.lang.String getInvokeRoutePrefix() { + java.lang.Object ref = invokeRoutePrefix_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + invokeRoutePrefix_ = s; + return s; + } + } + + /** + * + * + *
+   * Immutable. Invoke route prefix for the custom container. "/*" is the only
+   * supported value right now. By setting this field, any non-root route on
+   * this model will be accessible with invoke http call eg: "/invoke/foo/bar",
+   * however the [PredictionService.Invoke] RPC is not supported yet.
+   *
+   * Only one of `predict_route` or `invoke_route_prefix` can be set, and we
+   * default to using `predict_route` if this field is not set. If this field
+   * is set, the Model can only be deployed to dedicated endpoint.
+   * 
+ * + * string invoke_route_prefix = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for invokeRoutePrefix. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInvokeRoutePrefixBytes() { + java.lang.Object ref = invokeRoutePrefix_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + invokeRoutePrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int GRPC_PORTS_FIELD_NUMBER = 9; @SuppressWarnings("serial") @@ -1644,6 +1712,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(14, getLivenessProbe()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(invokeRoutePrefix_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 15, invokeRoutePrefix_); + } getUnknownFields().writeTo(output); } @@ -1702,6 +1773,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getLivenessProbe()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(invokeRoutePrefix_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, invokeRoutePrefix_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1725,6 +1799,7 @@ public boolean equals(final java.lang.Object obj) { if (!getPortsList().equals(other.getPortsList())) return false; if (!getPredictRoute().equals(other.getPredictRoute())) return false; if (!getHealthRoute().equals(other.getHealthRoute())) return false; + if (!getInvokeRoutePrefix().equals(other.getInvokeRoutePrefix())) return false; if (!getGrpcPortsList().equals(other.getGrpcPortsList())) return false; if (hasDeploymentTimeout() != other.hasDeploymentTimeout()) return false; if (hasDeploymentTimeout()) { @@ -1776,6 +1851,8 @@ public int hashCode() { hash = (53 * hash) + getPredictRoute().hashCode(); hash = (37 * hash) + HEALTH_ROUTE_FIELD_NUMBER; hash = (53 * hash) + getHealthRoute().hashCode(); + hash = (37 * hash) + INVOKE_ROUTE_PREFIX_FIELD_NUMBER; + hash = (53 * hash) + getInvokeRoutePrefix().hashCode(); if (getGrpcPortsCount() > 0) { hash = (37 * hash) + GRPC_PORTS_FIELD_NUMBER; hash = (53 * hash) + getGrpcPortsList().hashCode(); @@ -1974,13 +2051,14 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000010); predictRoute_ = ""; healthRoute_ = ""; + invokeRoutePrefix_ = ""; if (grpcPortsBuilder_ == null) { grpcPorts_ = java.util.Collections.emptyList(); } else { grpcPorts_ = null; grpcPortsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); deploymentTimeout_ = null; if (deploymentTimeoutBuilder_ != null) { deploymentTimeoutBuilder_.dispose(); @@ -2058,9 +2136,9 @@ private void buildPartialRepeatedFields( result.ports_ = portsBuilder_.build(); } if (grpcPortsBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { grpcPorts_ = java.util.Collections.unmodifiableList(grpcPorts_); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); } result.grpcPorts_ = grpcPorts_; } else { @@ -2087,28 +2165,31 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.ModelContainerSpec res if (((from_bitField0_ & 0x00000040) != 0)) { result.healthRoute_ = healthRoute_; } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.invokeRoutePrefix_ = invokeRoutePrefix_; + } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.deploymentTimeout_ = deploymentTimeoutBuilder_ == null ? deploymentTimeout_ : deploymentTimeoutBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.sharedMemorySizeMb_ = sharedMemorySizeMb_; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.startupProbe_ = startupProbeBuilder_ == null ? startupProbe_ : startupProbeBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00001000) != 0)) { result.healthProbe_ = healthProbeBuilder_ == null ? healthProbe_ : healthProbeBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.livenessProbe_ = livenessProbeBuilder_ == null ? livenessProbe_ : livenessProbeBuilder_.build(); to_bitField0_ |= 0x00000008; @@ -2251,11 +2332,16 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ModelContainerSpec other bitField0_ |= 0x00000040; onChanged(); } + if (!other.getInvokeRoutePrefix().isEmpty()) { + invokeRoutePrefix_ = other.invokeRoutePrefix_; + bitField0_ |= 0x00000080; + onChanged(); + } if (grpcPortsBuilder_ == null) { if (!other.grpcPorts_.isEmpty()) { if (grpcPorts_.isEmpty()) { grpcPorts_ = other.grpcPorts_; - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); } else { ensureGrpcPortsIsMutable(); grpcPorts_.addAll(other.grpcPorts_); @@ -2268,7 +2354,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ModelContainerSpec other grpcPortsBuilder_.dispose(); grpcPortsBuilder_ = null; grpcPorts_ = other.grpcPorts_; - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); grpcPortsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getGrpcPortsFieldBuilder() @@ -2394,33 +2480,39 @@ public Builder mergeFrom( { input.readMessage( getDeploymentTimeoutFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 82 case 88: { sharedMemorySizeMb_ = input.readInt64(); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 88 case 98: { input.readMessage(getStartupProbeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 98 case 106: { input.readMessage(getHealthProbeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; break; } // case 106 case 114: { input.readMessage(getLivenessProbeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 114 + case 122: + { + invokeRoutePrefix_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 122 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5806,13 +5898,159 @@ public Builder setHealthRouteBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object invokeRoutePrefix_ = ""; + + /** + * + * + *
+     * Immutable. Invoke route prefix for the custom container. "/*" is the only
+     * supported value right now. By setting this field, any non-root route on
+     * this model will be accessible with invoke http call eg: "/invoke/foo/bar",
+     * however the [PredictionService.Invoke] RPC is not supported yet.
+     *
+     * Only one of `predict_route` or `invoke_route_prefix` can be set, and we
+     * default to using `predict_route` if this field is not set. If this field
+     * is set, the Model can only be deployed to dedicated endpoint.
+     * 
+ * + * string invoke_route_prefix = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The invokeRoutePrefix. + */ + public java.lang.String getInvokeRoutePrefix() { + java.lang.Object ref = invokeRoutePrefix_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + invokeRoutePrefix_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Immutable. Invoke route prefix for the custom container. "/*" is the only
+     * supported value right now. By setting this field, any non-root route on
+     * this model will be accessible with invoke http call eg: "/invoke/foo/bar",
+     * however the [PredictionService.Invoke] RPC is not supported yet.
+     *
+     * Only one of `predict_route` or `invoke_route_prefix` can be set, and we
+     * default to using `predict_route` if this field is not set. If this field
+     * is set, the Model can only be deployed to dedicated endpoint.
+     * 
+ * + * string invoke_route_prefix = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for invokeRoutePrefix. + */ + public com.google.protobuf.ByteString getInvokeRoutePrefixBytes() { + java.lang.Object ref = invokeRoutePrefix_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + invokeRoutePrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Immutable. Invoke route prefix for the custom container. "/*" is the only
+     * supported value right now. By setting this field, any non-root route on
+     * this model will be accessible with invoke http call eg: "/invoke/foo/bar",
+     * however the [PredictionService.Invoke] RPC is not supported yet.
+     *
+     * Only one of `predict_route` or `invoke_route_prefix` can be set, and we
+     * default to using `predict_route` if this field is not set. If this field
+     * is set, the Model can only be deployed to dedicated endpoint.
+     * 
+ * + * string invoke_route_prefix = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The invokeRoutePrefix to set. + * @return This builder for chaining. + */ + public Builder setInvokeRoutePrefix(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + invokeRoutePrefix_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Immutable. Invoke route prefix for the custom container. "/*" is the only
+     * supported value right now. By setting this field, any non-root route on
+     * this model will be accessible with invoke http call eg: "/invoke/foo/bar",
+     * however the [PredictionService.Invoke] RPC is not supported yet.
+     *
+     * Only one of `predict_route` or `invoke_route_prefix` can be set, and we
+     * default to using `predict_route` if this field is not set. If this field
+     * is set, the Model can only be deployed to dedicated endpoint.
+     * 
+ * + * string invoke_route_prefix = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearInvokeRoutePrefix() { + invokeRoutePrefix_ = getDefaultInstance().getInvokeRoutePrefix(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
+     * Immutable. Invoke route prefix for the custom container. "/*" is the only
+     * supported value right now. By setting this field, any non-root route on
+     * this model will be accessible with invoke http call eg: "/invoke/foo/bar",
+     * however the [PredictionService.Invoke] RPC is not supported yet.
+     *
+     * Only one of `predict_route` or `invoke_route_prefix` can be set, and we
+     * default to using `predict_route` if this field is not set. If this field
+     * is set, the Model can only be deployed to dedicated endpoint.
+     * 
+ * + * string invoke_route_prefix = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for invokeRoutePrefix to set. + * @return This builder for chaining. + */ + public Builder setInvokeRoutePrefixBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + invokeRoutePrefix_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + private java.util.List grpcPorts_ = java.util.Collections.emptyList(); private void ensureGrpcPortsIsMutable() { - if (!((bitField0_ & 0x00000080) != 0)) { + if (!((bitField0_ & 0x00000100) != 0)) { grpcPorts_ = new java.util.ArrayList(grpcPorts_); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; } } @@ -6147,7 +6385,7 @@ public Builder addAllGrpcPorts( public Builder clearGrpcPorts() { if (grpcPortsBuilder_ == null) { grpcPorts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); } else { grpcPortsBuilder_.clear(); @@ -6345,7 +6583,7 @@ public java.util.List getGrpcPortsB com.google.cloud.aiplatform.v1.Port, com.google.cloud.aiplatform.v1.Port.Builder, com.google.cloud.aiplatform.v1.PortOrBuilder>( - grpcPorts_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); + grpcPorts_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); grpcPorts_ = null; } return grpcPortsBuilder_; @@ -6373,7 +6611,7 @@ public java.util.List getGrpcPortsB * @return Whether the deploymentTimeout field is set. */ public boolean hasDeploymentTimeout() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** @@ -6421,7 +6659,7 @@ public Builder setDeploymentTimeout(com.google.protobuf.Duration value) { } else { deploymentTimeoutBuilder_.setMessage(value); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -6444,7 +6682,7 @@ public Builder setDeploymentTimeout(com.google.protobuf.Duration.Builder builder } else { deploymentTimeoutBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -6463,7 +6701,7 @@ public Builder setDeploymentTimeout(com.google.protobuf.Duration.Builder builder */ public Builder mergeDeploymentTimeout(com.google.protobuf.Duration value) { if (deploymentTimeoutBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) + if (((bitField0_ & 0x00000200) != 0) && deploymentTimeout_ != null && deploymentTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) { getDeploymentTimeoutBuilder().mergeFrom(value); @@ -6474,7 +6712,7 @@ public Builder mergeDeploymentTimeout(com.google.protobuf.Duration value) { deploymentTimeoutBuilder_.mergeFrom(value); } if (deploymentTimeout_ != null) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); } return this; @@ -6493,7 +6731,7 @@ public Builder mergeDeploymentTimeout(com.google.protobuf.Duration value) { *
*/ public Builder clearDeploymentTimeout() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); deploymentTimeout_ = null; if (deploymentTimeoutBuilder_ != null) { deploymentTimeoutBuilder_.dispose(); @@ -6516,7 +6754,7 @@ public Builder clearDeploymentTimeout() { *
*/ public com.google.protobuf.Duration.Builder getDeploymentTimeoutBuilder() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return getDeploymentTimeoutFieldBuilder().getBuilder(); } @@ -6607,7 +6845,7 @@ public long getSharedMemorySizeMb() { public Builder setSharedMemorySizeMb(long value) { sharedMemorySizeMb_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -6625,7 +6863,7 @@ public Builder setSharedMemorySizeMb(long value) { * @return This builder for chaining. */ public Builder clearSharedMemorySizeMb() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); sharedMemorySizeMb_ = 0L; onChanged(); return this; @@ -6652,7 +6890,7 @@ public Builder clearSharedMemorySizeMb() { * @return Whether the startupProbe field is set. */ public boolean hasStartupProbe() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** @@ -6698,7 +6936,7 @@ public Builder setStartupProbe(com.google.cloud.aiplatform.v1.Probe value) { } else { startupProbeBuilder_.setMessage(value); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -6720,7 +6958,7 @@ public Builder setStartupProbe(com.google.cloud.aiplatform.v1.Probe.Builder buil } else { startupProbeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -6738,7 +6976,7 @@ public Builder setStartupProbe(com.google.cloud.aiplatform.v1.Probe.Builder buil */ public Builder mergeStartupProbe(com.google.cloud.aiplatform.v1.Probe value) { if (startupProbeBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) + if (((bitField0_ & 0x00000800) != 0) && startupProbe_ != null && startupProbe_ != com.google.cloud.aiplatform.v1.Probe.getDefaultInstance()) { getStartupProbeBuilder().mergeFrom(value); @@ -6749,7 +6987,7 @@ public Builder mergeStartupProbe(com.google.cloud.aiplatform.v1.Probe value) { startupProbeBuilder_.mergeFrom(value); } if (startupProbe_ != null) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); } return this; @@ -6767,7 +7005,7 @@ public Builder mergeStartupProbe(com.google.cloud.aiplatform.v1.Probe value) { * */ public Builder clearStartupProbe() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); startupProbe_ = null; if (startupProbeBuilder_ != null) { startupProbeBuilder_.dispose(); @@ -6789,7 +7027,7 @@ public Builder clearStartupProbe() { * */ public com.google.cloud.aiplatform.v1.Probe.Builder getStartupProbeBuilder() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return getStartupProbeFieldBuilder().getBuilder(); } @@ -6864,7 +7102,7 @@ public com.google.cloud.aiplatform.v1.ProbeOrBuilder getStartupProbeOrBuilder() * @return Whether the healthProbe field is set. */ public boolean hasHealthProbe() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00001000) != 0); } /** @@ -6910,7 +7148,7 @@ public Builder setHealthProbe(com.google.cloud.aiplatform.v1.Probe value) { } else { healthProbeBuilder_.setMessage(value); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -6932,7 +7170,7 @@ public Builder setHealthProbe(com.google.cloud.aiplatform.v1.Probe.Builder build } else { healthProbeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -6950,7 +7188,7 @@ public Builder setHealthProbe(com.google.cloud.aiplatform.v1.Probe.Builder build */ public Builder mergeHealthProbe(com.google.cloud.aiplatform.v1.Probe value) { if (healthProbeBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) + if (((bitField0_ & 0x00001000) != 0) && healthProbe_ != null && healthProbe_ != com.google.cloud.aiplatform.v1.Probe.getDefaultInstance()) { getHealthProbeBuilder().mergeFrom(value); @@ -6961,7 +7199,7 @@ public Builder mergeHealthProbe(com.google.cloud.aiplatform.v1.Probe value) { healthProbeBuilder_.mergeFrom(value); } if (healthProbe_ != null) { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); } return this; @@ -6979,7 +7217,7 @@ public Builder mergeHealthProbe(com.google.cloud.aiplatform.v1.Probe value) { * */ public Builder clearHealthProbe() { - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); healthProbe_ = null; if (healthProbeBuilder_ != null) { healthProbeBuilder_.dispose(); @@ -7001,7 +7239,7 @@ public Builder clearHealthProbe() { * */ public com.google.cloud.aiplatform.v1.Probe.Builder getHealthProbeBuilder() { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return getHealthProbeFieldBuilder().getBuilder(); } @@ -7076,7 +7314,7 @@ public com.google.cloud.aiplatform.v1.ProbeOrBuilder getHealthProbeOrBuilder() { * @return Whether the livenessProbe field is set. */ public boolean hasLivenessProbe() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** @@ -7122,7 +7360,7 @@ public Builder setLivenessProbe(com.google.cloud.aiplatform.v1.Probe value) { } else { livenessProbeBuilder_.setMessage(value); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -7144,7 +7382,7 @@ public Builder setLivenessProbe(com.google.cloud.aiplatform.v1.Probe.Builder bui } else { livenessProbeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -7162,7 +7400,7 @@ public Builder setLivenessProbe(com.google.cloud.aiplatform.v1.Probe.Builder bui */ public Builder mergeLivenessProbe(com.google.cloud.aiplatform.v1.Probe value) { if (livenessProbeBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) + if (((bitField0_ & 0x00002000) != 0) && livenessProbe_ != null && livenessProbe_ != com.google.cloud.aiplatform.v1.Probe.getDefaultInstance()) { getLivenessProbeBuilder().mergeFrom(value); @@ -7173,7 +7411,7 @@ public Builder mergeLivenessProbe(com.google.cloud.aiplatform.v1.Probe value) { livenessProbeBuilder_.mergeFrom(value); } if (livenessProbe_ != null) { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); } return this; @@ -7191,7 +7429,7 @@ public Builder mergeLivenessProbe(com.google.cloud.aiplatform.v1.Probe value) { * */ public Builder clearLivenessProbe() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); livenessProbe_ = null; if (livenessProbeBuilder_ != null) { livenessProbeBuilder_.dispose(); @@ -7213,7 +7451,7 @@ public Builder clearLivenessProbe() { * */ public com.google.cloud.aiplatform.v1.Probe.Builder getLivenessProbeBuilder() { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return getLivenessProbeFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelContainerSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelContainerSpecOrBuilder.java index 2a54a8855bab..c37147c66a80 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelContainerSpecOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelContainerSpecOrBuilder.java @@ -1005,6 +1005,46 @@ public interface ModelContainerSpecOrBuilder */ com.google.protobuf.ByteString getHealthRouteBytes(); + /** + * + * + *
+   * Immutable. Invoke route prefix for the custom container. "/*" is the only
+   * supported value right now. By setting this field, any non-root route on
+   * this model will be accessible with invoke http call eg: "/invoke/foo/bar",
+   * however the [PredictionService.Invoke] RPC is not supported yet.
+   *
+   * Only one of `predict_route` or `invoke_route_prefix` can be set, and we
+   * default to using `predict_route` if this field is not set. If this field
+   * is set, the Model can only be deployed to dedicated endpoint.
+   * 
+ * + * string invoke_route_prefix = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The invokeRoutePrefix. + */ + java.lang.String getInvokeRoutePrefix(); + + /** + * + * + *
+   * Immutable. Invoke route prefix for the custom container. "/*" is the only
+   * supported value right now. By setting this field, any non-root route on
+   * this model will be accessible with invoke http call eg: "/invoke/foo/bar",
+   * however the [PredictionService.Invoke] RPC is not supported yet.
+   *
+   * Only one of `predict_route` or `invoke_route_prefix` can be set, and we
+   * default to using `predict_route` if this field is not set. If this field
+   * is set, the Model can only be deployed to dedicated endpoint.
+   * 
+ * + * string invoke_route_prefix = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for invokeRoutePrefix. + */ + com.google.protobuf.ByteString getInvokeRoutePrefixBytes(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelProto.java index 37207d427018..45990c0ee1a8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelProto.java @@ -224,7 +224,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017PredictSchemata\022 \n" + "\023instance_schema_uri\030\001 \001(\tB\003\340A\005\022\"\n" + "\025parameters_schema_uri\030\002 \001(\tB\003\340A\005\022\"\n" - + "\025prediction_schema_uri\030\003 \001(\tB\003\340A\005\"\323\004\n" + + "\025prediction_schema_uri\030\003 \001(\tB\003\340A\005\"\365\004\n" + "\022ModelContainerSpec\022\031\n" + "\timage_uri\030\001 \001(\tB\006\340A\002\340A\005\022\024\n" + "\007command\030\002 \003(\tB\003\340A\005\022\021\n" @@ -233,8 +233,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005ports\030\005 \003(\0132" + " .google.cloud.aiplatform.v1.PortB\003\340A\005\022\032\n\r" + "predict_route\030\006 \001(\tB\003\340A\005\022\031\n" - + "\014health_route\030\007 \001(\tB\003\340A\005\0229\n" - + "\n" + + "\014health_route\030\007 \001(\tB\003\340A\005\022 \n" + + "\023invoke_route_prefix\030\017 \001(\tB\003\340A\005\0229\n\n" + "grpc_ports\030\t \003(\0132 .google.cloud.aiplatform.v1.PortB\003\340A\005\022:\n" + "\022deployment_timeout\030\n" + " \001(\0132\031.google.protobuf.DurationB\003\340A\005\022\"\n" @@ -265,8 +265,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010http_get\030\004" + " \001(\0132/.google.cloud.aiplatform.v1.Probe.HttpGetActionH\000\022<\n" + "\004grpc\030\005 \001(\0132,.google.cloud.aiplatform.v1.Probe.GrpcActionH\000\022G\n\n" - + "tcp_socket\030\006 \001(\01321.goo" - + "gle.cloud.aiplatform.v1.Probe.TcpSocketActionH\000\022\026\n" + + "tcp_socket\030\006 \001(\01321.google.cl" + + "oud.aiplatform.v1.Probe.TcpSocketActionH\000\022\026\n" + "\016period_seconds\030\002 \001(\005\022\027\n" + "\017timeout_seconds\030\003 \001(\005\022\031\n" + "\021failure_threshold\030\007 \001(\005\022\031\n" @@ -296,9 +296,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005epoch\030\002 \001(\003\022\014\n" + "\004step\030\003 \001(\003B\310\001\n" + "\036com.google.cloud.aiplatform.v1B\n" - + "ModelProtoP\001Z>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatfo" - + "rmpb\252\002\032Google.Cloud.AIPlatform.V1\312\002\032Goog" - + "le\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006proto3" + + "ModelProtoP\001Z>cloud.google.com/go/aipl" + + "atform/apiv1/aiplatformpb;aiplatformpb\252\002" + + "\032Google.Cloud.AIPlatform.V1\312\002\032Google\\Clo" + + "ud\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -446,6 +447,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Ports", "PredictRoute", "HealthRoute", + "InvokeRoutePrefix", "GrpcPorts", "DeploymentTimeout", "SharedMemorySizeMb", diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJob.java index ba439332a614..7b4be758d478 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJob.java @@ -5407,14 +5407,11 @@ public com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder() { * * *
-   * Output only. The Schedule resource name if this job is triggered by one.
-   * Format:
+   * The Schedule resource name if this job is triggered by one. Format:
    * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
    * 
* - * - * string schedule_resource_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * + * string schedule_resource_name = 6 [(.google.api.resource_reference) = { ... } * * @return The scheduleResourceName. */ @@ -5435,14 +5432,11 @@ public java.lang.String getScheduleResourceName() { * * *
-   * Output only. The Schedule resource name if this job is triggered by one.
-   * Format:
+   * The Schedule resource name if this job is triggered by one. Format:
    * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
    * 
* - * - * string schedule_resource_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * + * string schedule_resource_name = 6 [(.google.api.resource_reference) = { ... } * * @return The bytes for scheduleResourceName. */ @@ -9343,14 +9337,11 @@ public com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder() { * * *
-     * Output only. The Schedule resource name if this job is triggered by one.
-     * Format:
+     * The Schedule resource name if this job is triggered by one. Format:
      * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
      * 
* - * - * string schedule_resource_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * + * string schedule_resource_name = 6 [(.google.api.resource_reference) = { ... } * * @return The scheduleResourceName. */ @@ -9370,14 +9361,11 @@ public java.lang.String getScheduleResourceName() { * * *
-     * Output only. The Schedule resource name if this job is triggered by one.
-     * Format:
+     * The Schedule resource name if this job is triggered by one. Format:
      * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
      * 
* - * - * string schedule_resource_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * + * string schedule_resource_name = 6 [(.google.api.resource_reference) = { ... } * * @return The bytes for scheduleResourceName. */ @@ -9397,14 +9385,11 @@ public com.google.protobuf.ByteString getScheduleResourceNameBytes() { * * *
-     * Output only. The Schedule resource name if this job is triggered by one.
-     * Format:
+     * The Schedule resource name if this job is triggered by one. Format:
      * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
      * 
* - * - * string schedule_resource_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * + * string schedule_resource_name = 6 [(.google.api.resource_reference) = { ... } * * @param value The scheduleResourceName to set. * @return This builder for chaining. @@ -9423,14 +9408,11 @@ public Builder setScheduleResourceName(java.lang.String value) { * * *
-     * Output only. The Schedule resource name if this job is triggered by one.
-     * Format:
+     * The Schedule resource name if this job is triggered by one. Format:
      * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
      * 
* - * - * string schedule_resource_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * + * string schedule_resource_name = 6 [(.google.api.resource_reference) = { ... } * * @return This builder for chaining. */ @@ -9445,14 +9427,11 @@ public Builder clearScheduleResourceName() { * * *
-     * Output only. The Schedule resource name if this job is triggered by one.
-     * Format:
+     * The Schedule resource name if this job is triggered by one. Format:
      * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
      * 
* - * - * string schedule_resource_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * + * string schedule_resource_name = 6 [(.google.api.resource_reference) = { ... } * * @param value The bytes for scheduleResourceName to set. * @return This builder for chaining. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJobOrBuilder.java index 75ee7a0f63b5..0916c12e329a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJobOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJobOrBuilder.java @@ -509,14 +509,11 @@ public interface NotebookExecutionJobOrBuilder * * *
-   * Output only. The Schedule resource name if this job is triggered by one.
-   * Format:
+   * The Schedule resource name if this job is triggered by one. Format:
    * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
    * 
* - * - * string schedule_resource_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * + * string schedule_resource_name = 6 [(.google.api.resource_reference) = { ... } * * @return The scheduleResourceName. */ @@ -526,14 +523,11 @@ public interface NotebookExecutionJobOrBuilder * * *
-   * Output only. The Schedule resource name if this job is triggered by one.
-   * Format:
+   * The Schedule resource name if this job is triggered by one. Format:
    * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
    * 
* - * - * string schedule_resource_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * + * string schedule_resource_name = 6 [(.google.api.resource_reference) = { ... } * * @return The bytes for scheduleResourceName. */ diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJobProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJobProto.java index 3d42b6eff10f..660a8f12b8fc 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJobProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJobProto.java @@ -72,7 +72,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "gle/cloud/aiplatform/v1/job_state.proto\0322google/cloud/aiplatform/v1/machine_reso" + "urces.proto\032-google/cloud/aiplatform/v1/" + "network_spec.proto\032\036google/protobuf/dura" - + "tion.proto\032\037google/protobuf/timestamp.proto\032\027google/rpc/status.proto\"\203\020\n" + + "tion.proto\032\037google/protobuf/timestamp.proto\032\027google/rpc/status.proto\"\200\020\n" + "\024NotebookExecutionJob\022o\n" + "\032dataform_repository_source\030\003 \001(\0132I.google.cloud.aiplatform.v1.N" + "otebookExecutionJob.DataformRepositorySourceH\000\022a\n" @@ -91,8 +91,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "NotebookExecutionJob.WorkbenchRuntimeH\004\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\024\n" + "\014display_name\030\002 \001(\t\0224\n" - + "\021execution_timeout\030\005 \001(\0132\031.google.protobuf.Duration\022J\n" - + "\026schedule_resource_name\030\006 \001(\tB*\340A\003\372A$\n" + + "\021execution_timeout\030\005 \001(\0132\031.google.protobuf.Duration\022G\n" + + "\026schedule_resource_name\030\006 \001(\tB\'\372A$\n" + "\"aiplatform.googleapis.com/Schedule\022<\n" + "\tjob_state\030\n" + " \001(\0162$.google.cloud.aiplatform.v1.JobStateB\003\340A\003\022\'\n" @@ -100,8 +100,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013create_time\030\014 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\r" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022L\n" - + "\006labels\030\023 \003(\0132<." - + "google.cloud.aiplatform.v1.NotebookExecutionJob.LabelsEntry\022\023\n" + + "\006labels\030\023 \003(\0132<.goo" + + "gle.cloud.aiplatform.v1.NotebookExecutionJob.LabelsEntry\022\023\n" + "\013kernel_name\030\024 \001(\t\022C\n" + "\017encryption_spec\030\026" + " \001(\0132*.google.cloud.aiplatform.v1.EncryptionSpec\032Y\n" @@ -122,19 +122,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:\271\001\352A\265\001\n" - + ".aiplatform.googleapis.com/NotebookExecutionJob\022Vprojects/{project}/locations/{l" - + "ocation}/notebookExecutionJobs/{notebook" - + "_execution_job}*\025notebookExecutionJobs2\024notebookExecutionJobB\021\n" + + ".aiplatform.googleapis.com/NotebookExecutionJob\022Vprojects/{project}/locations/{loca" + + "tion}/notebookExecutionJobs/{notebook_ex" + + "ecution_job}*\025notebookExecutionJobs2\024notebookExecutionJobB\021\n" + "\017notebook_sourceB\022\n" + "\020environment_specB\020\n" + "\016execution_sinkB\024\n" + "\022execution_identityB\025\n" + "\023runtime_environmentB\327\001\n" - + "\036com.google.cloud.aiplatform.v1B\031NotebookExecutionJobProtoP\001Z>cloud.google" - + ".com/go/aiplatform/apiv1/aiplatformpb;ai" - + "platformpb\252\002\032Google.Cloud.AIPlatform.V1\312" - + "\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Google::C" - + "loud::AIPlatform::V1b\006proto3" + + "\036com.google.cloud.aiplatform.v1B\031NotebookExecutionJobProtoP\001Z>cloud.google.co" + + "m/go/aiplatform/apiv1/aiplatformpb;aipla" + + "tformpb\252\002\032Google.Cloud.AIPlatform.V1\312\002\032G" + + "oogle\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookRuntime.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookRuntime.java index 14f0e4e88c11..42a1fc69bda6 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookRuntime.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookRuntime.java @@ -24,8 +24,9 @@ * *
  * A runtime is a virtual machine allocated to a particular user for a
- * particular Notebook file on temporary basis with lifetime limited to 24
- * hours.
+ * particular Notebook file on temporary basis with lifetime. Default runtimes
+ * have a lifetime of 18 hours, while custom runtimes last for 6 months from
+ * their creation or last upgrade.
  * 
* * Protobuf type {@code google.cloud.aiplatform.v1.NotebookRuntime} @@ -282,7 +283,8 @@ public enum RuntimeState implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * NotebookRuntime is in starting state.
+     * NotebookRuntime is in starting state. This is when the runtime is being
+     * started from a stopped state.
      * 
* * BEING_STARTED = 2; @@ -368,7 +370,8 @@ public enum RuntimeState implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * NotebookRuntime is in starting state.
+     * NotebookRuntime is in starting state. This is when the runtime is being
+     * started from a stopped state.
      * 
* * BEING_STARTED = 2; @@ -2561,8 +2564,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * A runtime is a virtual machine allocated to a particular user for a
-   * particular Notebook file on temporary basis with lifetime limited to 24
-   * hours.
+   * particular Notebook file on temporary basis with lifetime. Default runtimes
+   * have a lifetime of 18 hours, while custom runtimes last for 6 months from
+   * their creation or last upgrade.
    * 
* * Protobuf type {@code google.cloud.aiplatform.v1.NotebookRuntime} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookSoftwareConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookSoftwareConfig.java index fbc63454aa8f..5dd814525509 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookSoftwareConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookSoftwareConfig.java @@ -23,7 +23,8 @@ * * *
- * Notebook Software Config.
+ * Notebook Software Config. This is passed to the backend when user
+ * makes software configurations in UI.
  * 
* * Protobuf type {@code google.cloud.aiplatform.v1.NotebookSoftwareConfig} @@ -65,6 +66,113 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } private int bitField0_; + private int runtimeImageCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object runtimeImage_; + + public enum RuntimeImageCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + COLAB_IMAGE(5), + RUNTIMEIMAGE_NOT_SET(0); + private final int value; + + private RuntimeImageCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static RuntimeImageCase valueOf(int value) { + return forNumber(value); + } + + public static RuntimeImageCase forNumber(int value) { + switch (value) { + case 5: + return COLAB_IMAGE; + case 0: + return RUNTIMEIMAGE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public RuntimeImageCase getRuntimeImageCase() { + return RuntimeImageCase.forNumber(runtimeImageCase_); + } + + public static final int COLAB_IMAGE_FIELD_NUMBER = 5; + + /** + * + * + *
+   * Optional. Google-managed NotebookRuntime colab image.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ColabImage colab_image = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the colabImage field is set. + */ + @java.lang.Override + public boolean hasColabImage() { + return runtimeImageCase_ == 5; + } + + /** + * + * + *
+   * Optional. Google-managed NotebookRuntime colab image.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ColabImage colab_image = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The colabImage. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ColabImage getColabImage() { + if (runtimeImageCase_ == 5) { + return (com.google.cloud.aiplatform.v1.ColabImage) runtimeImage_; + } + return com.google.cloud.aiplatform.v1.ColabImage.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. Google-managed NotebookRuntime colab image.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ColabImage colab_image = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ColabImageOrBuilder getColabImageOrBuilder() { + if (runtimeImageCase_ == 5) { + return (com.google.cloud.aiplatform.v1.ColabImage) runtimeImage_; + } + return com.google.cloud.aiplatform.v1.ColabImage.getDefaultInstance(); + } + public static final int ENV_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -236,6 +344,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getPostStartupScriptConfig()); } + if (runtimeImageCase_ == 5) { + output.writeMessage(5, (com.google.cloud.aiplatform.v1.ColabImage) runtimeImage_); + } getUnknownFields().writeTo(output); } @@ -252,6 +363,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPostStartupScriptConfig()); } + if (runtimeImageCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.aiplatform.v1.ColabImage) runtimeImage_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -273,6 +389,14 @@ public boolean equals(final java.lang.Object obj) { if (hasPostStartupScriptConfig()) { if (!getPostStartupScriptConfig().equals(other.getPostStartupScriptConfig())) return false; } + if (!getRuntimeImageCase().equals(other.getRuntimeImageCase())) return false; + switch (runtimeImageCase_) { + case 5: + if (!getColabImage().equals(other.getColabImage())) return false; + break; + case 0: + default: + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -292,6 +416,14 @@ public int hashCode() { hash = (37 * hash) + POST_STARTUP_SCRIPT_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getPostStartupScriptConfig().hashCode(); } + switch (runtimeImageCase_) { + case 5: + hash = (37 * hash) + COLAB_IMAGE_FIELD_NUMBER; + hash = (53 * hash) + getColabImage().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -398,7 +530,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Notebook Software Config.
+   * Notebook Software Config. This is passed to the backend when user
+   * makes software configurations in UI.
    * 
* * Protobuf type {@code google.cloud.aiplatform.v1.NotebookSoftwareConfig} @@ -443,18 +576,23 @@ private void maybeForceBuilderInitialization() { public Builder clear() { super.clear(); bitField0_ = 0; + if (colabImageBuilder_ != null) { + colabImageBuilder_.clear(); + } if (envBuilder_ == null) { env_ = java.util.Collections.emptyList(); } else { env_ = null; envBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); postStartupScriptConfig_ = null; if (postStartupScriptConfigBuilder_ != null) { postStartupScriptConfigBuilder_.dispose(); postStartupScriptConfigBuilder_ = null; } + runtimeImageCase_ = 0; + runtimeImage_ = null; return this; } @@ -486,6 +624,7 @@ public com.google.cloud.aiplatform.v1.NotebookSoftwareConfig buildPartial() { if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); onBuilt(); return result; } @@ -493,9 +632,9 @@ public com.google.cloud.aiplatform.v1.NotebookSoftwareConfig buildPartial() { private void buildPartialRepeatedFields( com.google.cloud.aiplatform.v1.NotebookSoftwareConfig result) { if (envBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { env_ = java.util.Collections.unmodifiableList(env_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.env_ = env_; } else { @@ -506,7 +645,7 @@ private void buildPartialRepeatedFields( private void buildPartial0(com.google.cloud.aiplatform.v1.NotebookSoftwareConfig result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { + if (((from_bitField0_ & 0x00000004) != 0)) { result.postStartupScriptConfig_ = postStartupScriptConfigBuilder_ == null ? postStartupScriptConfig_ @@ -516,6 +655,14 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.NotebookSoftwareConfig result.bitField0_ |= to_bitField0_; } + private void buildPartialOneofs(com.google.cloud.aiplatform.v1.NotebookSoftwareConfig result) { + result.runtimeImageCase_ = runtimeImageCase_; + result.runtimeImage_ = this.runtimeImage_; + if (runtimeImageCase_ == 5 && colabImageBuilder_ != null) { + result.runtimeImage_ = colabImageBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -566,7 +713,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.NotebookSoftwareConfig o if (!other.env_.isEmpty()) { if (env_.isEmpty()) { env_ = other.env_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureEnvIsMutable(); env_.addAll(other.env_); @@ -579,7 +726,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.NotebookSoftwareConfig o envBuilder_.dispose(); envBuilder_ = null; env_ = other.env_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); envBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEnvFieldBuilder() @@ -592,6 +739,17 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.NotebookSoftwareConfig o if (other.hasPostStartupScriptConfig()) { mergePostStartupScriptConfig(other.getPostStartupScriptConfig()); } + switch (other.getRuntimeImageCase()) { + case COLAB_IMAGE: + { + mergeColabImage(other.getColabImage()); + break; + } + case RUNTIMEIMAGE_NOT_SET: + { + break; + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -635,9 +793,15 @@ public Builder mergeFrom( { input.readMessage( getPostStartupScriptConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; break; } // case 18 + case 42: + { + input.readMessage(getColabImageFieldBuilder().getBuilder(), extensionRegistry); + runtimeImageCase_ = 5; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -655,15 +819,265 @@ public Builder mergeFrom( return this; } + private int runtimeImageCase_ = 0; + private java.lang.Object runtimeImage_; + + public RuntimeImageCase getRuntimeImageCase() { + return RuntimeImageCase.forNumber(runtimeImageCase_); + } + + public Builder clearRuntimeImage() { + runtimeImageCase_ = 0; + runtimeImage_ = null; + onChanged(); + return this; + } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ColabImage, + com.google.cloud.aiplatform.v1.ColabImage.Builder, + com.google.cloud.aiplatform.v1.ColabImageOrBuilder> + colabImageBuilder_; + + /** + * + * + *
+     * Optional. Google-managed NotebookRuntime colab image.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ColabImage colab_image = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the colabImage field is set. + */ + @java.lang.Override + public boolean hasColabImage() { + return runtimeImageCase_ == 5; + } + + /** + * + * + *
+     * Optional. Google-managed NotebookRuntime colab image.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ColabImage colab_image = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The colabImage. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ColabImage getColabImage() { + if (colabImageBuilder_ == null) { + if (runtimeImageCase_ == 5) { + return (com.google.cloud.aiplatform.v1.ColabImage) runtimeImage_; + } + return com.google.cloud.aiplatform.v1.ColabImage.getDefaultInstance(); + } else { + if (runtimeImageCase_ == 5) { + return colabImageBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.ColabImage.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Google-managed NotebookRuntime colab image.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ColabImage colab_image = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setColabImage(com.google.cloud.aiplatform.v1.ColabImage value) { + if (colabImageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + runtimeImage_ = value; + onChanged(); + } else { + colabImageBuilder_.setMessage(value); + } + runtimeImageCase_ = 5; + return this; + } + + /** + * + * + *
+     * Optional. Google-managed NotebookRuntime colab image.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ColabImage colab_image = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setColabImage( + com.google.cloud.aiplatform.v1.ColabImage.Builder builderForValue) { + if (colabImageBuilder_ == null) { + runtimeImage_ = builderForValue.build(); + onChanged(); + } else { + colabImageBuilder_.setMessage(builderForValue.build()); + } + runtimeImageCase_ = 5; + return this; + } + + /** + * + * + *
+     * Optional. Google-managed NotebookRuntime colab image.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ColabImage colab_image = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeColabImage(com.google.cloud.aiplatform.v1.ColabImage value) { + if (colabImageBuilder_ == null) { + if (runtimeImageCase_ == 5 + && runtimeImage_ != com.google.cloud.aiplatform.v1.ColabImage.getDefaultInstance()) { + runtimeImage_ = + com.google.cloud.aiplatform.v1.ColabImage.newBuilder( + (com.google.cloud.aiplatform.v1.ColabImage) runtimeImage_) + .mergeFrom(value) + .buildPartial(); + } else { + runtimeImage_ = value; + } + onChanged(); + } else { + if (runtimeImageCase_ == 5) { + colabImageBuilder_.mergeFrom(value); + } else { + colabImageBuilder_.setMessage(value); + } + } + runtimeImageCase_ = 5; + return this; + } + + /** + * + * + *
+     * Optional. Google-managed NotebookRuntime colab image.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ColabImage colab_image = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearColabImage() { + if (colabImageBuilder_ == null) { + if (runtimeImageCase_ == 5) { + runtimeImageCase_ = 0; + runtimeImage_ = null; + onChanged(); + } + } else { + if (runtimeImageCase_ == 5) { + runtimeImageCase_ = 0; + runtimeImage_ = null; + } + colabImageBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Google-managed NotebookRuntime colab image.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ColabImage colab_image = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.ColabImage.Builder getColabImageBuilder() { + return getColabImageFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Google-managed NotebookRuntime colab image.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ColabImage colab_image = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ColabImageOrBuilder getColabImageOrBuilder() { + if ((runtimeImageCase_ == 5) && (colabImageBuilder_ != null)) { + return colabImageBuilder_.getMessageOrBuilder(); + } else { + if (runtimeImageCase_ == 5) { + return (com.google.cloud.aiplatform.v1.ColabImage) runtimeImage_; + } + return com.google.cloud.aiplatform.v1.ColabImage.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Google-managed NotebookRuntime colab image.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ColabImage colab_image = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ColabImage, + com.google.cloud.aiplatform.v1.ColabImage.Builder, + com.google.cloud.aiplatform.v1.ColabImageOrBuilder> + getColabImageFieldBuilder() { + if (colabImageBuilder_ == null) { + if (!(runtimeImageCase_ == 5)) { + runtimeImage_ = com.google.cloud.aiplatform.v1.ColabImage.getDefaultInstance(); + } + colabImageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ColabImage, + com.google.cloud.aiplatform.v1.ColabImage.Builder, + com.google.cloud.aiplatform.v1.ColabImageOrBuilder>( + (com.google.cloud.aiplatform.v1.ColabImage) runtimeImage_, + getParentForChildren(), + isClean()); + runtimeImage_ = null; + } + runtimeImageCase_ = 5; + onChanged(); + return colabImageBuilder_; + } + private java.util.List env_ = java.util.Collections.emptyList(); private void ensureEnvIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { env_ = new java.util.ArrayList(env_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -921,7 +1335,7 @@ public Builder addAllEnv( public Builder clearEnv() { if (envBuilder_ == null) { env_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { envBuilder_.clear(); @@ -1070,7 +1484,7 @@ public java.util.List getEnvBuild com.google.cloud.aiplatform.v1.EnvVar, com.google.cloud.aiplatform.v1.EnvVar.Builder, com.google.cloud.aiplatform.v1.EnvVarOrBuilder>( - env_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + env_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); env_ = null; } return envBuilder_; @@ -1097,7 +1511,7 @@ public java.util.List getEnvBuild * @return Whether the postStartupScriptConfig field is set. */ public boolean hasPostStartupScriptConfig() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** @@ -1144,7 +1558,7 @@ public Builder setPostStartupScriptConfig( } else { postStartupScriptConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1167,7 +1581,7 @@ public Builder setPostStartupScriptConfig( } else { postStartupScriptConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1186,7 +1600,7 @@ public Builder setPostStartupScriptConfig( public Builder mergePostStartupScriptConfig( com.google.cloud.aiplatform.v1.PostStartupScriptConfig value) { if (postStartupScriptConfigBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) + if (((bitField0_ & 0x00000004) != 0) && postStartupScriptConfig_ != null && postStartupScriptConfig_ != com.google.cloud.aiplatform.v1.PostStartupScriptConfig.getDefaultInstance()) { @@ -1198,7 +1612,7 @@ public Builder mergePostStartupScriptConfig( postStartupScriptConfigBuilder_.mergeFrom(value); } if (postStartupScriptConfig_ != null) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); } return this; @@ -1216,7 +1630,7 @@ public Builder mergePostStartupScriptConfig( * */ public Builder clearPostStartupScriptConfig() { - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); postStartupScriptConfig_ = null; if (postStartupScriptConfigBuilder_ != null) { postStartupScriptConfigBuilder_.dispose(); @@ -1239,7 +1653,7 @@ public Builder clearPostStartupScriptConfig() { */ public com.google.cloud.aiplatform.v1.PostStartupScriptConfig.Builder getPostStartupScriptConfigBuilder() { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return getPostStartupScriptConfigFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookSoftwareConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookSoftwareConfigOrBuilder.java index 3987d649b756..6ad5e3d082e6 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookSoftwareConfigOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookSoftwareConfigOrBuilder.java @@ -24,6 +24,49 @@ public interface NotebookSoftwareConfigOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.NotebookSoftwareConfig) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+   * Optional. Google-managed NotebookRuntime colab image.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ColabImage colab_image = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the colabImage field is set. + */ + boolean hasColabImage(); + + /** + * + * + *
+   * Optional. Google-managed NotebookRuntime colab image.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ColabImage colab_image = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The colabImage. + */ + com.google.cloud.aiplatform.v1.ColabImage getColabImage(); + + /** + * + * + *
+   * Optional. Google-managed NotebookRuntime colab image.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ColabImage colab_image = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1.ColabImageOrBuilder getColabImageOrBuilder(); + /** * * @@ -137,4 +180,6 @@ public interface NotebookSoftwareConfigOrBuilder */ com.google.cloud.aiplatform.v1.PostStartupScriptConfigOrBuilder getPostStartupScriptConfigOrBuilder(); + + com.google.cloud.aiplatform.v1.NotebookSoftwareConfig.RuntimeImageCase getRuntimeImageCase(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookSoftwareConfigProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookSoftwareConfigProto.java index 61222797395c..7dbd2187aa20 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookSoftwareConfigProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookSoftwareConfigProto.java @@ -32,6 +32,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_PostStartupScriptConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_PostStartupScriptConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_ColabImage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_ColabImage_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1_NotebookSoftwareConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -45,30 +49,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n9google/cloud/aiplatform/v1/notebook_so" - + "ftware_config.proto\022\032google.cloud.aiplat" + "\n" + + "9google/cloud/aiplatform/v1/notebook_software_config.proto\022\032google.cloud.aiplat" + "form.v1\032\037google/api/field_behavior.proto" - + "\032(google/cloud/aiplatform/v1/env_var.pro" - + "to\"\354\002\n\027PostStartupScriptConfig\022 \n\023post_s" - + "tartup_script\030\001 \001(\tB\003\340A\001\022$\n\027post_startup" - + "_script_url\030\002 \001(\tB\003\340A\001\022x\n\034post_startup_s" - + "cript_behavior\030\003 \001(\0162M.google.cloud.aipl" - + "atform.v1.PostStartupScriptConfig.PostSt" - + "artupScriptBehaviorB\003\340A\001\"\216\001\n\031PostStartup" - + "ScriptBehavior\022,\n(POST_STARTUP_SCRIPT_BE" - + "HAVIOR_UNSPECIFIED\020\000\022\014\n\010RUN_ONCE\020\001\022\023\n\017RU" - + "N_EVERY_START\020\002\022 \n\034DOWNLOAD_AND_RUN_EVER" - + "Y_START\020\003\"\254\001\n\026NotebookSoftwareConfig\0224\n\003" - + "env\030\001 \003(\0132\".google.cloud.aiplatform.v1.E" - + "nvVarB\003\340A\001\022\\\n\032post_startup_script_config" - + "\030\002 \001(\01323.google.cloud.aiplatform.v1.Post" - + "StartupScriptConfigB\003\340A\001B\331\001\n\036com.google." - + "cloud.aiplatform.v1B\033NotebookSoftwareCon" - + "figProtoP\001Z>cloud.google.com/go/aiplatfo" - + "rm/apiv1/aiplatformpb;aiplatformpb\252\002\032Goo" - + "gle.Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\A" - + "IPlatform\\V1\352\002\035Google::Cloud::AIPlatform" - + "::V1b\006proto3" + + "\032(google/cloud/aiplatform/v1/env_var.proto\"\354\002\n" + + "\027PostStartupScriptConfig\022 \n" + + "\023post_startup_script\030\001 \001(\tB\003\340A\001\022$\n" + + "\027post_startup_script_url\030\002 \001(\tB\003\340A\001\022x\n" + + "\034post_startup_script_behavior\030\003 \001(\0162M.google.cloud.aipl" + + "atform.v1.PostStartupScriptConfig.PostStartupScriptBehaviorB\003\340A\001\"\216\001\n" + + "\031PostStartupScriptBehavior\022,\n" + + "(POST_STARTUP_SCRIPT_BEHAVIOR_UNSPECIFIED\020\000\022\014\n" + + "\010RUN_ONCE\020\001\022\023\n" + + "\017RUN_EVERY_START\020\002\022 \n" + + "\034DOWNLOAD_AND_RUN_EVERY_START\020\003\"A\n\n" + + "ColabImage\022\031\n" + + "\014release_name\030\001 \001(\tB\003\340A\001\022\030\n" + + "\013description\030\002 \001(\tB\003\340A\003\"\201\002\n" + + "\026NotebookSoftwareConfig\022B\n" + + "\013colab_image\030\005" + + " \001(\0132&.google.cloud.aiplatform.v1.ColabImageB\003\340A\001H\000\0224\n" + + "\003env\030\001 \003(\0132\".google.cloud.aiplatform.v1.EnvVarB\003\340A\001\022\\\n" + + "\032post_startup_script_config\030\002 \001(\01323.google.cloud.aip" + + "latform.v1.PostStartupScriptConfigB\003\340A\001B\017\n\r" + + "runtime_imageB\331\001\n" + + "\036com.google.cloud.aiplatform.v1B\033NotebookSoftwareConfigProto" + + "P\001Z>cloud.google.com/go/aiplatform/apiv1" + + "/aiplatformpb;aiplatformpb\252\002\032Google.Clou" + + "d.AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatfor" + + "m\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -85,13 +94,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "PostStartupScript", "PostStartupScriptUrl", "PostStartupScriptBehavior", }); - internal_static_google_cloud_aiplatform_v1_NotebookSoftwareConfig_descriptor = + internal_static_google_cloud_aiplatform_v1_ColabImage_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_aiplatform_v1_ColabImage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_ColabImage_descriptor, + new java.lang.String[] { + "ReleaseName", "Description", + }); + internal_static_google_cloud_aiplatform_v1_NotebookSoftwareConfig_descriptor = + getDescriptor().getMessageTypes().get(2); internal_static_google_cloud_aiplatform_v1_NotebookSoftwareConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_NotebookSoftwareConfig_descriptor, new java.lang.String[] { - "Env", "PostStartupScriptConfig", + "ColabImage", "Env", "PostStartupScriptConfig", "RuntimeImage", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Pipeline.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Pipeline.java index f225db8a9f95..ef4fc4db4747 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Pipeline.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Pipeline.java @@ -186,7 +186,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024pipeline_run_context\030\002 \001(" + "\0132#.google.cloud.aiplatform.v1.ContextB\003\340A\003\022I\n" + "\014task_details\030\003 \003(\0132..google.cloud" - + ".aiplatform.v1.PipelineTaskDetailB\003\340A\003\"\235\013\n" + + ".aiplatform.v1.PipelineTaskDetailB\003\340A\003\"\274\013\n" + "\022PipelineTaskDetail\022\024\n" + "\007task_id\030\001 \001(\003B\003\340A\003\022\033\n" + "\016parent_task_id\030\014 \001(\003B\003\340A\003\022\026\n" @@ -209,23 +209,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\0132:.go" + "ogle.cloud.aiplatform.v1.PipelineTaskDetail.InputsEntryB\003\340A\003\022Q\n" + "\007outputs\030\013 \003(\0132;." - + "google.cloud.aiplatform.v1.PipelineTaskDetail.OutputsEntryB\003\340A\003\032\274\001\n" + + "google.cloud.aiplatform.v1.PipelineTaskDetail.OutputsEntryB\003\340A\003\022\035\n" + + "\020task_unique_name\030\016 \001(\tB\003\340A\003\032\274\001\n" + "\022PipelineTaskStatus\0224\n" + "\013update_time\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022H\n" - + "\005state\030\002 \001(\01624.go" - + "ogle.cloud.aiplatform.v1.PipelineTaskDetail.StateB\003\340A\003\022&\n" + + "\005state\030\002 \001(\01624.google.clou" + + "d.aiplatform.v1.PipelineTaskDetail.StateB\003\340A\003\022&\n" + "\005error\030\003 \001(\0132\022.google.rpc.StatusB\003\340A\003\032L\n" + "\014ArtifactList\022<\n" - + "\tartifacts\030\001" - + " \003(\0132$.google.cloud.aiplatform.v1.ArtifactB\003\340A\003\032j\n" + + "\tartifacts\030\001 \003(\013" + + "2$.google.cloud.aiplatform.v1.ArtifactB\003\340A\003\032j\n" + "\013InputsEntry\022\013\n" + "\003key\030\001 \001(\t\022J\n" - + "\005value\030\002 \001(\0132;.google.cloud.aiplatfor" - + "m.v1.PipelineTaskDetail.ArtifactList:\0028\001\032k\n" + + "\005value\030\002" + + " \001(\0132;.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList:\0028\001\032k\n" + "\014OutputsEntry\022\013\n" + "\003key\030\001 \001(\t\022J\n" - + "\005value\030\002" - + " \001(\0132;.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList:\0028\001\"\246\001\n" + + "\005value\030\002 \001(\0132;.go" + + "ogle.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList:\0028\001\"\246\001\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\013\n" + "\007PENDING\020\001\022\013\n" @@ -238,10 +239,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007SKIPPED\020\010\022\021\n\r" + "NOT_TRIGGERED\020\t\"\313\004\n" + "\032PipelineTaskExecutorDetail\022g\n" - + "\020container_detail\030\001 \001(\0132F.google.cloud.aiplatfor" - + "m.v1.PipelineTaskExecutorDetail.ContainerDetailB\003\340A\003H\000\022h\n" - + "\021custom_job_detail\030\002 \001(\0132F.google.cloud.aiplatform.v1.PipelineT" - + "askExecutorDetail.CustomJobDetailB\003\340A\003H\000\032\347\001\n" + + "\020container_detail\030\001 \001(\0132F.google.cloud.aiplatform.v1.Pipe" + + "lineTaskExecutorDetail.ContainerDetailB\003\340A\003H\000\022h\n" + + "\021custom_job_detail\030\002 \001(\0132F.googl" + + "e.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetailB\003\340A\003H\000\032\347\001\n" + "\017ContainerDetail\022=\n" + "\010main_job\030\001 \001(\tB+\340A\003\372A%\n" + "#aiplatform.googleapis.com/CustomJob\022J\n" @@ -254,12 +255,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "#aiplatform.googleapis.com/CustomJob\022\030\n" + "\013failed_jobs\030\003 \003(\tB\003\340A\003B\t\n" + "\007detailsB\227\002\n" - + "\036com.google.cloud.aiplatform.v1B\010PipelineP\001Z>clo" - + "ud.google.com/go/aiplatform/apiv1/aiplat" - + "formpb;aiplatformpb\252\002\032Google.Cloud.AIPla" - + "tform.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlatform::V1\352AN\n" - + "\036compute.googleapis.com/Network\022,projects/{proj" - + "ect}/global/networks/{network}b\006proto3" + + "\036com.google.cloud.aiplatform.v1B\010PipelineP\001Z>cloud.google" + + ".com/go/aiplatform/apiv1/aiplatformpb;ai" + + "platformpb\252\002\032Google.Cloud.AIPlatform.V1\312" + + "\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlatform::V1\352AN\n" + + "\036compute.googleapis.com/Network\022,projects/{project}/glob" + + "al/networks/{network}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -402,6 +403,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PipelineTaskStatus", "Inputs", "Outputs", + "TaskUniqueName", }); internal_static_google_cloud_aiplatform_v1_PipelineTaskDetail_PipelineTaskStatus_descriptor = internal_static_google_cloud_aiplatform_v1_PipelineTaskDetail_descriptor diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskDetail.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskDetail.java index 6ce34713867b..0187c4a2dafe 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskDetail.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskDetail.java @@ -43,6 +43,7 @@ private PipelineTaskDetail() { taskName_ = ""; state_ = 0; pipelineTaskStatus_ = java.util.Collections.emptyList(); + taskUniqueName_ = ""; } @java.lang.Override @@ -3681,6 +3682,73 @@ public com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList getOutputs return map.get(key); } + public static final int TASK_UNIQUE_NAME_FIELD_NUMBER = 14; + + @SuppressWarnings("serial") + private volatile java.lang.Object taskUniqueName_ = ""; + + /** + * + * + *
+   * Output only. The unique name of a task.
+   * This field is used by rerun pipeline job.
+   * Console UI and Vertex AI SDK will support triggering pipeline job reruns.
+   * The name is constructed by concatenating all the parent tasks name with
+   * the task name. For example, if a task named "child_task" has a parent task
+   * named "parent_task_1" and parent task 1 has a parent task named
+   * "parent_task_2", the task unique name will be
+   * "parent_task_2.parent_task_1.child_task".
+   * 
+ * + * string task_unique_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The taskUniqueName. + */ + @java.lang.Override + public java.lang.String getTaskUniqueName() { + java.lang.Object ref = taskUniqueName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + taskUniqueName_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The unique name of a task.
+   * This field is used by rerun pipeline job.
+   * Console UI and Vertex AI SDK will support triggering pipeline job reruns.
+   * The name is constructed by concatenating all the parent tasks name with
+   * the task name. For example, if a task named "child_task" has a parent task
+   * named "parent_task_1" and parent task 1 has a parent task named
+   * "parent_task_2", the task unique name will be
+   * "parent_task_2.parent_task_1.child_task".
+   * 
+ * + * string task_unique_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for taskUniqueName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTaskUniqueNameBytes() { + java.lang.Object ref = taskUniqueName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + taskUniqueName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3733,6 +3801,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < pipelineTaskStatus_.size(); i++) { output.writeMessage(13, pipelineTaskStatus_.get(i)); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(taskUniqueName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, taskUniqueName_); + } getUnknownFields().writeTo(output); } @@ -3803,6 +3874,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, pipelineTaskStatus_.get(i)); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(taskUniqueName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, taskUniqueName_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3850,6 +3924,7 @@ public boolean equals(final java.lang.Object obj) { if (!getPipelineTaskStatusList().equals(other.getPipelineTaskStatusList())) return false; if (!internalGetInputs().equals(other.internalGetInputs())) return false; if (!internalGetOutputs().equals(other.internalGetOutputs())) return false; + if (!getTaskUniqueName().equals(other.getTaskUniqueName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3905,6 +3980,8 @@ public int hashCode() { hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; hash = (53 * hash) + internalGetOutputs().hashCode(); } + hash = (37 * hash) + TASK_UNIQUE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getTaskUniqueName().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -4129,6 +4206,7 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000400); internalGetMutableInputs().clear(); internalGetMutableOutputs().clear(); + taskUniqueName_ = ""; return this; } @@ -4223,6 +4301,9 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.PipelineTaskDetail res if (((from_bitField0_ & 0x00001000) != 0)) { result.outputs_ = internalGetOutputs().build(OutputsDefaultEntryHolder.defaultEntry); } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.taskUniqueName_ = taskUniqueName_; + } result.bitField0_ |= to_bitField0_; } @@ -4335,6 +4416,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.PipelineTaskDetail other bitField0_ |= 0x00000800; internalGetMutableOutputs().mergeFrom(other.internalGetOutputs()); bitField0_ |= 0x00001000; + if (!other.getTaskUniqueName().isEmpty()) { + taskUniqueName_ = other.taskUniqueName_; + bitField0_ |= 0x00002000; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -4466,6 +4552,12 @@ public Builder mergeFrom( } break; } // case 106 + case 114: + { + taskUniqueName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00002000; + break; + } // case 114 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -7067,6 +7159,152 @@ public Builder putAllOutputs( return (com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.Builder) entry; } + private java.lang.Object taskUniqueName_ = ""; + + /** + * + * + *
+     * Output only. The unique name of a task.
+     * This field is used by rerun pipeline job.
+     * Console UI and Vertex AI SDK will support triggering pipeline job reruns.
+     * The name is constructed by concatenating all the parent tasks name with
+     * the task name. For example, if a task named "child_task" has a parent task
+     * named "parent_task_1" and parent task 1 has a parent task named
+     * "parent_task_2", the task unique name will be
+     * "parent_task_2.parent_task_1.child_task".
+     * 
+ * + * string task_unique_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The taskUniqueName. + */ + public java.lang.String getTaskUniqueName() { + java.lang.Object ref = taskUniqueName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + taskUniqueName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The unique name of a task.
+     * This field is used by rerun pipeline job.
+     * Console UI and Vertex AI SDK will support triggering pipeline job reruns.
+     * The name is constructed by concatenating all the parent tasks name with
+     * the task name. For example, if a task named "child_task" has a parent task
+     * named "parent_task_1" and parent task 1 has a parent task named
+     * "parent_task_2", the task unique name will be
+     * "parent_task_2.parent_task_1.child_task".
+     * 
+ * + * string task_unique_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for taskUniqueName. + */ + public com.google.protobuf.ByteString getTaskUniqueNameBytes() { + java.lang.Object ref = taskUniqueName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + taskUniqueName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The unique name of a task.
+     * This field is used by rerun pipeline job.
+     * Console UI and Vertex AI SDK will support triggering pipeline job reruns.
+     * The name is constructed by concatenating all the parent tasks name with
+     * the task name. For example, if a task named "child_task" has a parent task
+     * named "parent_task_1" and parent task 1 has a parent task named
+     * "parent_task_2", the task unique name will be
+     * "parent_task_2.parent_task_1.child_task".
+     * 
+ * + * string task_unique_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The taskUniqueName to set. + * @return This builder for chaining. + */ + public Builder setTaskUniqueName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + taskUniqueName_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The unique name of a task.
+     * This field is used by rerun pipeline job.
+     * Console UI and Vertex AI SDK will support triggering pipeline job reruns.
+     * The name is constructed by concatenating all the parent tasks name with
+     * the task name. For example, if a task named "child_task" has a parent task
+     * named "parent_task_1" and parent task 1 has a parent task named
+     * "parent_task_2", the task unique name will be
+     * "parent_task_2.parent_task_1.child_task".
+     * 
+ * + * string task_unique_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTaskUniqueName() { + taskUniqueName_ = getDefaultInstance().getTaskUniqueName(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The unique name of a task.
+     * This field is used by rerun pipeline job.
+     * Console UI and Vertex AI SDK will support triggering pipeline job reruns.
+     * The name is constructed by concatenating all the parent tasks name with
+     * the task name. For example, if a task named "child_task" has a parent task
+     * named "parent_task_1" and parent task 1 has a parent task named
+     * "parent_task_2", the task unique name will be
+     * "parent_task_2.parent_task_1.child_task".
+     * 
+ * + * string task_unique_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for taskUniqueName to set. + * @return This builder for chaining. + */ + public Builder setTaskUniqueNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + taskUniqueName_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskDetailOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskDetailOrBuilder.java index d90cf2e8a0d2..e3002d5eefd4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskDetailOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskDetailOrBuilder.java @@ -581,4 +581,44 @@ com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList getOutputsOrDefau */ com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList getOutputsOrThrow( java.lang.String key); + + /** + * + * + *
+   * Output only. The unique name of a task.
+   * This field is used by rerun pipeline job.
+   * Console UI and Vertex AI SDK will support triggering pipeline job reruns.
+   * The name is constructed by concatenating all the parent tasks name with
+   * the task name. For example, if a task named "child_task" has a parent task
+   * named "parent_task_1" and parent task 1 has a parent task named
+   * "parent_task_2", the task unique name will be
+   * "parent_task_2.parent_task_1.child_task".
+   * 
+ * + * string task_unique_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The taskUniqueName. + */ + java.lang.String getTaskUniqueName(); + + /** + * + * + *
+   * Output only. The unique name of a task.
+   * This field is used by rerun pipeline job.
+   * Console UI and Vertex AI SDK will support triggering pipeline job reruns.
+   * The name is constructed by concatenating all the parent tasks name with
+   * the task name. For example, if a task named "child_task" has a parent task
+   * named "parent_task_1" and parent task 1 has a parent task named
+   * "parent_task_2", the task unique name will be
+   * "parent_task_2.parent_task_1.child_task".
+   * 
+ * + * string task_unique_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for taskUniqueName. + */ + com.google.protobuf.ByteString getTaskUniqueNameBytes(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PostStartupScriptConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PostStartupScriptConfig.java index a724e014d06a..36bc834ce53c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PostStartupScriptConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PostStartupScriptConfig.java @@ -317,7 +317,7 @@ public com.google.protobuf.ByteString getPostStartupScriptBytes() { * *
    * Optional. Post startup script url to download. Example:
-   * https://bucket/script.sh
+   * `gs://bucket/script.sh`
    * 
* * string post_startup_script_url = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -342,7 +342,7 @@ public java.lang.String getPostStartupScriptUrl() { * *
    * Optional. Post startup script url to download. Example:
-   * https://bucket/script.sh
+   * `gs://bucket/script.sh`
    * 
* * string post_startup_script_url = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -924,7 +924,7 @@ public Builder setPostStartupScriptBytes(com.google.protobuf.ByteString value) { * *
      * Optional. Post startup script url to download. Example:
-     * https://bucket/script.sh
+     * `gs://bucket/script.sh`
      * 
* * string post_startup_script_url = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -948,7 +948,7 @@ public java.lang.String getPostStartupScriptUrl() { * *
      * Optional. Post startup script url to download. Example:
-     * https://bucket/script.sh
+     * `gs://bucket/script.sh`
      * 
* * string post_startup_script_url = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -972,7 +972,7 @@ public com.google.protobuf.ByteString getPostStartupScriptUrlBytes() { * *
      * Optional. Post startup script url to download. Example:
-     * https://bucket/script.sh
+     * `gs://bucket/script.sh`
      * 
* * string post_startup_script_url = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -995,7 +995,7 @@ public Builder setPostStartupScriptUrl(java.lang.String value) { * *
      * Optional. Post startup script url to download. Example:
-     * https://bucket/script.sh
+     * `gs://bucket/script.sh`
      * 
* * string post_startup_script_url = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1014,7 +1014,7 @@ public Builder clearPostStartupScriptUrl() { * *
      * Optional. Post startup script url to download. Example:
-     * https://bucket/script.sh
+     * `gs://bucket/script.sh`
      * 
* * string post_startup_script_url = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PostStartupScriptConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PostStartupScriptConfigOrBuilder.java index 1c1d4f5d3c74..d51281e32f52 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PostStartupScriptConfigOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PostStartupScriptConfigOrBuilder.java @@ -55,7 +55,7 @@ public interface PostStartupScriptConfigOrBuilder * *
    * Optional. Post startup script url to download. Example:
-   * https://bucket/script.sh
+   * `gs://bucket/script.sh`
    * 
* * string post_startup_script_url = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -69,7 +69,7 @@ public interface PostStartupScriptConfigOrBuilder * *
    * Optional. Post startup script url to download. Example:
-   * https://bucket/script.sh
+   * `gs://bucket/script.sh`
    * 
* * string post_startup_script_url = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Retrieval.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Retrieval.java index 01e3317e1270..5e71db653b82 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Retrieval.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Retrieval.java @@ -238,7 +238,7 @@ public com.google.cloud.aiplatform.v1.VertexRagStoreOrBuilder getVertexRagStoreO * * * @deprecated google.cloud.aiplatform.v1.Retrieval.disable_attribution is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=253 + * google/cloud/aiplatform/v1/tool.proto;l=273 * @return The disableAttribution. */ @java.lang.Override @@ -1146,7 +1146,7 @@ public com.google.cloud.aiplatform.v1.VertexRagStoreOrBuilder getVertexRagStoreO * * * @deprecated google.cloud.aiplatform.v1.Retrieval.disable_attribution is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=253 + * google/cloud/aiplatform/v1/tool.proto;l=273 * @return The disableAttribution. */ @java.lang.Override @@ -1167,7 +1167,7 @@ public boolean getDisableAttribution() { * * * @deprecated google.cloud.aiplatform.v1.Retrieval.disable_attribution is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=253 + * google/cloud/aiplatform/v1/tool.proto;l=273 * @param value The disableAttribution to set. * @return This builder for chaining. */ @@ -1192,7 +1192,7 @@ public Builder setDisableAttribution(boolean value) { * * * @deprecated google.cloud.aiplatform.v1.Retrieval.disable_attribution is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=253 + * google/cloud/aiplatform/v1/tool.proto;l=273 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrievalOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrievalOrBuilder.java index 4875a738dd54..5bd8c090538d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrievalOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrievalOrBuilder.java @@ -113,7 +113,7 @@ public interface RetrievalOrBuilder * * * @deprecated google.cloud.aiplatform.v1.Retrieval.disable_attribution is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=253 + * google/cloud/aiplatform/v1/tool.proto;l=273 * @return The disableAttribution. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Tool.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Tool.java index b282b69cdbdc..e441fc62d807 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Tool.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Tool.java @@ -930,6 +930,789 @@ public com.google.cloud.aiplatform.v1.Tool.CodeExecution getDefaultInstanceForTy } } + public interface ComputerUseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.Tool.ComputerUse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. The environment being operated.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.ComputerUse.Environment environment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for environment. + */ + int getEnvironmentValue(); + + /** + * + * + *
+     * Required. The environment being operated.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.ComputerUse.Environment environment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The environment. + */ + com.google.cloud.aiplatform.v1.Tool.ComputerUse.Environment getEnvironment(); + } + + /** + * + * + *
+   * Tool to support computer use.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.Tool.ComputerUse} + */ + public static final class ComputerUse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.Tool.ComputerUse) + ComputerUseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ComputerUse.newBuilder() to construct. + private ComputerUse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ComputerUse() { + environment_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ComputerUse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ToolProto + .internal_static_google_cloud_aiplatform_v1_Tool_ComputerUse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ToolProto + .internal_static_google_cloud_aiplatform_v1_Tool_ComputerUse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.Tool.ComputerUse.class, + com.google.cloud.aiplatform.v1.Tool.ComputerUse.Builder.class); + } + + /** + * + * + *
+     * Represents the environment being operated, such as a web browser.
+     * 
+ * + * Protobuf enum {@code google.cloud.aiplatform.v1.Tool.ComputerUse.Environment} + */ + public enum Environment implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Defaults to browser.
+       * 
+ * + * ENVIRONMENT_UNSPECIFIED = 0; + */ + ENVIRONMENT_UNSPECIFIED(0), + /** + * + * + *
+       * Operates in a web browser.
+       * 
+ * + * ENVIRONMENT_BROWSER = 1; + */ + ENVIRONMENT_BROWSER(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * Defaults to browser.
+       * 
+ * + * ENVIRONMENT_UNSPECIFIED = 0; + */ + public static final int ENVIRONMENT_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+       * Operates in a web browser.
+       * 
+ * + * ENVIRONMENT_BROWSER = 1; + */ + public static final int ENVIRONMENT_BROWSER_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Environment 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 Environment forNumber(int value) { + switch (value) { + case 0: + return ENVIRONMENT_UNSPECIFIED; + case 1: + return ENVIRONMENT_BROWSER; + 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 Environment findValueByNumber(int number) { + return Environment.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.Tool.ComputerUse.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Environment[] VALUES = values(); + + public static Environment 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 Environment(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1.Tool.ComputerUse.Environment) + } + + public static final int ENVIRONMENT_FIELD_NUMBER = 1; + private int environment_ = 0; + + /** + * + * + *
+     * Required. The environment being operated.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.ComputerUse.Environment environment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for environment. + */ + @java.lang.Override + public int getEnvironmentValue() { + return environment_; + } + + /** + * + * + *
+     * Required. The environment being operated.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.ComputerUse.Environment environment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The environment. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.Tool.ComputerUse.Environment getEnvironment() { + com.google.cloud.aiplatform.v1.Tool.ComputerUse.Environment result = + com.google.cloud.aiplatform.v1.Tool.ComputerUse.Environment.forNumber(environment_); + return result == null + ? com.google.cloud.aiplatform.v1.Tool.ComputerUse.Environment.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 (environment_ + != com.google.cloud.aiplatform.v1.Tool.ComputerUse.Environment.ENVIRONMENT_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, environment_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (environment_ + != com.google.cloud.aiplatform.v1.Tool.ComputerUse.Environment.ENVIRONMENT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, environment_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.Tool.ComputerUse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.Tool.ComputerUse other = + (com.google.cloud.aiplatform.v1.Tool.ComputerUse) obj; + + if (environment_ != other.environment_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENVIRONMENT_FIELD_NUMBER; + hash = (53 * hash) + environment_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.Tool.ComputerUse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.Tool.ComputerUse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.Tool.ComputerUse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.Tool.ComputerUse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.Tool.ComputerUse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.Tool.ComputerUse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.Tool.ComputerUse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.Tool.ComputerUse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.Tool.ComputerUse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.Tool.ComputerUse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.Tool.ComputerUse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.Tool.ComputerUse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1.Tool.ComputerUse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Tool to support computer use.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.Tool.ComputerUse} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.Tool.ComputerUse) + com.google.cloud.aiplatform.v1.Tool.ComputerUseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ToolProto + .internal_static_google_cloud_aiplatform_v1_Tool_ComputerUse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ToolProto + .internal_static_google_cloud_aiplatform_v1_Tool_ComputerUse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.Tool.ComputerUse.class, + com.google.cloud.aiplatform.v1.Tool.ComputerUse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.Tool.ComputerUse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + environment_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.ToolProto + .internal_static_google_cloud_aiplatform_v1_Tool_ComputerUse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.Tool.ComputerUse getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.Tool.ComputerUse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.Tool.ComputerUse build() { + com.google.cloud.aiplatform.v1.Tool.ComputerUse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.Tool.ComputerUse buildPartial() { + com.google.cloud.aiplatform.v1.Tool.ComputerUse result = + new com.google.cloud.aiplatform.v1.Tool.ComputerUse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.Tool.ComputerUse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.environment_ = environment_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.Tool.ComputerUse) { + return mergeFrom((com.google.cloud.aiplatform.v1.Tool.ComputerUse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.Tool.ComputerUse other) { + if (other == com.google.cloud.aiplatform.v1.Tool.ComputerUse.getDefaultInstance()) + return this; + if (other.environment_ != 0) { + setEnvironmentValue(other.getEnvironmentValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + environment_ = input.readEnum(); + 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 int environment_ = 0; + + /** + * + * + *
+       * Required. The environment being operated.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.ComputerUse.Environment environment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for environment. + */ + @java.lang.Override + public int getEnvironmentValue() { + return environment_; + } + + /** + * + * + *
+       * Required. The environment being operated.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.ComputerUse.Environment environment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for environment to set. + * @return This builder for chaining. + */ + public Builder setEnvironmentValue(int value) { + environment_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. The environment being operated.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.ComputerUse.Environment environment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The environment. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.Tool.ComputerUse.Environment getEnvironment() { + com.google.cloud.aiplatform.v1.Tool.ComputerUse.Environment result = + com.google.cloud.aiplatform.v1.Tool.ComputerUse.Environment.forNumber(environment_); + return result == null + ? com.google.cloud.aiplatform.v1.Tool.ComputerUse.Environment.UNRECOGNIZED + : result; + } + + /** + * + * + *
+       * Required. The environment being operated.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.ComputerUse.Environment environment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The environment to set. + * @return This builder for chaining. + */ + public Builder setEnvironment( + com.google.cloud.aiplatform.v1.Tool.ComputerUse.Environment value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + environment_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. The environment being operated.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.ComputerUse.Environment environment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearEnvironment() { + bitField0_ = (bitField0_ & ~0x00000001); + environment_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.Tool.ComputerUse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.Tool.ComputerUse) + private static final com.google.cloud.aiplatform.v1.Tool.ComputerUse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.Tool.ComputerUse(); + } + + public static com.google.cloud.aiplatform.v1.Tool.ComputerUse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ComputerUse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.Tool.ComputerUse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; public static final int FUNCTION_DECLARATIONS_FIELD_NUMBER = 1; @@ -1436,6 +2219,71 @@ public com.google.cloud.aiplatform.v1.UrlContextOrBuilder getUrlContextOrBuilder : urlContext_; } + public static final int COMPUTER_USE_FIELD_NUMBER = 11; + private com.google.cloud.aiplatform.v1.Tool.ComputerUse computerUse_; + + /** + * + * + *
+   * Optional. Tool to support the model interacting directly with the computer.
+   * If enabled, it automatically populates computer-use specific Function
+   * Declarations.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.ComputerUse computer_use = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the computerUse field is set. + */ + @java.lang.Override + public boolean hasComputerUse() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+   * Optional. Tool to support the model interacting directly with the computer.
+   * If enabled, it automatically populates computer-use specific Function
+   * Declarations.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.ComputerUse computer_use = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The computerUse. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.Tool.ComputerUse getComputerUse() { + return computerUse_ == null + ? com.google.cloud.aiplatform.v1.Tool.ComputerUse.getDefaultInstance() + : computerUse_; + } + + /** + * + * + *
+   * Optional. Tool to support the model interacting directly with the computer.
+   * If enabled, it automatically populates computer-use specific Function
+   * Declarations.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.ComputerUse computer_use = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.Tool.ComputerUseOrBuilder getComputerUseOrBuilder() { + return computerUse_ == null + ? com.google.cloud.aiplatform.v1.Tool.ComputerUse.getDefaultInstance() + : computerUse_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1471,6 +2319,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(8, getUrlContext()); } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(11, getComputerUse()); + } getUnknownFields().writeTo(output); } @@ -1503,6 +2354,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUrlContext()); } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getComputerUse()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1543,6 +2397,10 @@ public boolean equals(final java.lang.Object obj) { if (hasUrlContext()) { if (!getUrlContext().equals(other.getUrlContext())) return false; } + if (hasComputerUse() != other.hasComputerUse()) return false; + if (hasComputerUse()) { + if (!getComputerUse().equals(other.getComputerUse())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1582,6 +2440,10 @@ public int hashCode() { hash = (37 * hash) + URL_CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getUrlContext().hashCode(); } + if (hasComputerUse()) { + hash = (37 * hash) + COMPUTER_USE_FIELD_NUMBER; + hash = (53 * hash) + getComputerUse().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1735,6 +2597,7 @@ private void maybeForceBuilderInitialization() { getEnterpriseWebSearchFieldBuilder(); getCodeExecutionFieldBuilder(); getUrlContextFieldBuilder(); + getComputerUseFieldBuilder(); } } @@ -1779,6 +2642,11 @@ public Builder clear() { urlContextBuilder_.dispose(); urlContextBuilder_ = null; } + computerUse_ = null; + if (computerUseBuilder_ != null) { + computerUseBuilder_.dispose(); + computerUseBuilder_ = null; + } return this; } @@ -1860,6 +2728,11 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.Tool result) { result.urlContext_ = urlContextBuilder_ == null ? urlContext_ : urlContextBuilder_.build(); to_bitField0_ |= 0x00000020; } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.computerUse_ = + computerUseBuilder_ == null ? computerUse_ : computerUseBuilder_.build(); + to_bitField0_ |= 0x00000040; + } result.bitField0_ |= to_bitField0_; } @@ -1953,6 +2826,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Tool other) { if (other.hasUrlContext()) { mergeUrlContext(other.getUrlContext()); } + if (other.hasComputerUse()) { + mergeComputerUse(other.getComputerUse()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2031,6 +2907,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case 66 + case 90: + { + input.readMessage(getComputerUseFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 90 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3963,6 +4845,238 @@ public com.google.cloud.aiplatform.v1.UrlContextOrBuilder getUrlContextOrBuilder return urlContextBuilder_; } + private com.google.cloud.aiplatform.v1.Tool.ComputerUse computerUse_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.Tool.ComputerUse, + com.google.cloud.aiplatform.v1.Tool.ComputerUse.Builder, + com.google.cloud.aiplatform.v1.Tool.ComputerUseOrBuilder> + computerUseBuilder_; + + /** + * + * + *
+     * Optional. Tool to support the model interacting directly with the computer.
+     * If enabled, it automatically populates computer-use specific Function
+     * Declarations.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.ComputerUse computer_use = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the computerUse field is set. + */ + public boolean hasComputerUse() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Optional. Tool to support the model interacting directly with the computer.
+     * If enabled, it automatically populates computer-use specific Function
+     * Declarations.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.ComputerUse computer_use = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The computerUse. + */ + public com.google.cloud.aiplatform.v1.Tool.ComputerUse getComputerUse() { + if (computerUseBuilder_ == null) { + return computerUse_ == null + ? com.google.cloud.aiplatform.v1.Tool.ComputerUse.getDefaultInstance() + : computerUse_; + } else { + return computerUseBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Tool to support the model interacting directly with the computer.
+     * If enabled, it automatically populates computer-use specific Function
+     * Declarations.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.ComputerUse computer_use = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setComputerUse(com.google.cloud.aiplatform.v1.Tool.ComputerUse value) { + if (computerUseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + computerUse_ = value; + } else { + computerUseBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Tool to support the model interacting directly with the computer.
+     * If enabled, it automatically populates computer-use specific Function
+     * Declarations.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.ComputerUse computer_use = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setComputerUse( + com.google.cloud.aiplatform.v1.Tool.ComputerUse.Builder builderForValue) { + if (computerUseBuilder_ == null) { + computerUse_ = builderForValue.build(); + } else { + computerUseBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Tool to support the model interacting directly with the computer.
+     * If enabled, it automatically populates computer-use specific Function
+     * Declarations.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.ComputerUse computer_use = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeComputerUse(com.google.cloud.aiplatform.v1.Tool.ComputerUse value) { + if (computerUseBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && computerUse_ != null + && computerUse_ + != com.google.cloud.aiplatform.v1.Tool.ComputerUse.getDefaultInstance()) { + getComputerUseBuilder().mergeFrom(value); + } else { + computerUse_ = value; + } + } else { + computerUseBuilder_.mergeFrom(value); + } + if (computerUse_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Tool to support the model interacting directly with the computer.
+     * If enabled, it automatically populates computer-use specific Function
+     * Declarations.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.ComputerUse computer_use = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearComputerUse() { + bitField0_ = (bitField0_ & ~0x00000080); + computerUse_ = null; + if (computerUseBuilder_ != null) { + computerUseBuilder_.dispose(); + computerUseBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Tool to support the model interacting directly with the computer.
+     * If enabled, it automatically populates computer-use specific Function
+     * Declarations.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.ComputerUse computer_use = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.Tool.ComputerUse.Builder getComputerUseBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getComputerUseFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Tool to support the model interacting directly with the computer.
+     * If enabled, it automatically populates computer-use specific Function
+     * Declarations.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.ComputerUse computer_use = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.Tool.ComputerUseOrBuilder getComputerUseOrBuilder() { + if (computerUseBuilder_ != null) { + return computerUseBuilder_.getMessageOrBuilder(); + } else { + return computerUse_ == null + ? com.google.cloud.aiplatform.v1.Tool.ComputerUse.getDefaultInstance() + : computerUse_; + } + } + + /** + * + * + *
+     * Optional. Tool to support the model interacting directly with the computer.
+     * If enabled, it automatically populates computer-use specific Function
+     * Declarations.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.ComputerUse computer_use = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.Tool.ComputerUse, + com.google.cloud.aiplatform.v1.Tool.ComputerUse.Builder, + com.google.cloud.aiplatform.v1.Tool.ComputerUseOrBuilder> + getComputerUseFieldBuilder() { + if (computerUseBuilder_ == null) { + computerUseBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.Tool.ComputerUse, + com.google.cloud.aiplatform.v1.Tool.ComputerUse.Builder, + com.google.cloud.aiplatform.v1.Tool.ComputerUseOrBuilder>( + getComputerUse(), getParentForChildren(), isClean()); + computerUse_ = null; + } + return computerUseBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ToolOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ToolOrBuilder.java index a12dc3cacb03..068a9986bcfd 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ToolOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ToolOrBuilder.java @@ -409,4 +409,53 @@ com.google.cloud.aiplatform.v1.FunctionDeclarationOrBuilder getFunctionDeclarati * */ com.google.cloud.aiplatform.v1.UrlContextOrBuilder getUrlContextOrBuilder(); + + /** + * + * + *
+   * Optional. Tool to support the model interacting directly with the computer.
+   * If enabled, it automatically populates computer-use specific Function
+   * Declarations.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.ComputerUse computer_use = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the computerUse field is set. + */ + boolean hasComputerUse(); + + /** + * + * + *
+   * Optional. Tool to support the model interacting directly with the computer.
+   * If enabled, it automatically populates computer-use specific Function
+   * Declarations.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.ComputerUse computer_use = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The computerUse. + */ + com.google.cloud.aiplatform.v1.Tool.ComputerUse getComputerUse(); + + /** + * + * + *
+   * Optional. Tool to support the model interacting directly with the computer.
+   * If enabled, it automatically populates computer-use specific Function
+   * Declarations.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.ComputerUse computer_use = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1.Tool.ComputerUseOrBuilder getComputerUseOrBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ToolProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ToolProto.java index a16f4995bb5b..db490e300af3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ToolProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ToolProto.java @@ -40,6 +40,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_Tool_CodeExecution_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_Tool_CodeExecution_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_Tool_ComputerUse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_Tool_ComputerUse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1_UrlContext_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -142,7 +146,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032google.cloud.aiplatform.v1\032\037google/api/" + "field_behavior.proto\032\031google/api/resourc" + "e.proto\032(google/cloud/aiplatform/v1/open" - + "api.proto\032\034google/protobuf/struct.proto\032\030google/type/latlng.proto\"\303\004\n" + + "api.proto\032\034google/protobuf/struct.proto\032\030google/type/latlng.proto\"\265\006\n" + "\004Tool\022S\n" + "\025function_declarations\030\001 \003(\0132/.google.cloud" + ".aiplatform.v1.FunctionDeclarationB\003\340A\001\022=\n" @@ -157,9 +161,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016code_execution\030\004" + " \001(\0132..google.cloud.aiplatform.v1.Tool.CodeExecutionB\003\340A\001\022@\n" + "\013url_context\030\010" - + " \001(\0132&.google.cloud.aiplatform.v1.UrlContextB\003\340A\001\032\016\n" + + " \001(\0132&.google.cloud.aiplatform.v1.UrlContextB\003\340A\001\022G\n" + + "\014computer_use\030\013 \001(\0132,.g" + + "oogle.cloud.aiplatform.v1.Tool.ComputerUseB\003\340A\001\032\016\n" + "\014GoogleSearch\032\017\n\r" - + "CodeExecution\"\014\n\n" + + "CodeExecution\032\246\001\n" + + "\013ComputerUse\022R\n" + + "\013environment\030\001 \001(\01628." + + "google.cloud.aiplatform.v1.Tool.ComputerUse.EnvironmentB\003\340A\002\"C\n" + + "\013Environment\022\033\n" + + "\027ENVIRONMENT_UNSPECIFIED\020\000\022\027\n" + + "\023ENVIRONMENT_BROWSER\020\001\"\014\n\n" + "UrlContext\"\262\002\n" + "\023FunctionDeclaration\022\021\n" + "\004name\030\001 \001(\tB\003\340A\002\022\030\n" @@ -185,8 +197,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024LANGUAGE_UNSPECIFIED\020\000\022\n\n" + "\006PYTHON\020\001\"\340\001\n" + "\023CodeExecutionResult\022M\n" - + "\007outcome\030\001 \001(\01627.google.cloud.aip" - + "latform.v1.CodeExecutionResult.OutcomeB\003\340A\002\022\023\n" + + "\007outcome\030\001 \001(\01627.google.cloud.a" + + "iplatform.v1.CodeExecutionResult.OutcomeB\003\340A\002\022\023\n" + "\006output\030\002 \001(\tB\003\340A\001\"e\n" + "\007Outcome\022\027\n" + "\023OUTCOME_UNSPECIFIED\020\000\022\016\n\n" @@ -196,8 +208,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tRetrieval\022F\n" + "\020vertex_ai_search\030\002" + " \001(\0132*.google.cloud.aiplatform.v1.VertexAISearchH\000\022F\n" - + "\020vertex_rag_store\030\004 \001(\0132" - + "*.google.cloud.aiplatform.v1.VertexRagStoreH\000\022\"\n" + + "\020vertex_rag_store\030\004 \001(" + + "\0132*.google.cloud.aiplatform.v1.VertexRagStoreH\000\022\"\n" + "\023disable_attribution\030\003 \001(\010B\005\030\001\340A\001B\010\n" + "\006source\"\252\003\n" + "\016VertexRagStore\022R\n\r" @@ -206,8 +218,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020similarity_top_k\030\002 \001(\005B\005\030\001\340A\001H\000\210\001\001\022-\n" + "\031vector_distance_threshold\030\003" + " \001(\001B\005\030\001\340A\001H\001\210\001\001\022Q\n" - + "\024rag_retrieval_config\030\006 \001(\0132..google.c" - + "loud.aiplatform.v1.RagRetrievalConfigB\003\340A\001\032i\n" + + "\024rag_retrieval_config\030\006 \001(\0132..google" + + ".cloud.aiplatform.v1.RagRetrievalConfigB\003\340A\001\032i\n" + "\013RagResource\022?\n\n" + "rag_corpus\030\001 \001(\tB+\340A\001\372A%\n" + "#aiplatform.googleapis.com/RagCorpus\022\031\n" @@ -220,27 +232,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013max_results\030\003 \001(\005B\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\022R\n" + "\020data_store_specs\030\005" - + " \003(\01328.google.cloud.aiplatform.v1.VertexAISearch.DataStoreSpec\0328\n\r" + + " \003(\01328.google.cloud.aiplatform.v1.VertexAISearch.DataStoreSpec\0328\n" + + "\r" + "DataStoreSpec\022\022\n\n" + "data_store\030\001 \001(\t\022\023\n" + "\006filter\030\002 \001(\tB\003\340A\001\"m\n" + "\025GoogleSearchRetrieval\022T\n" - + "\030dynamic_retrieval_config\030\002 \001(\01322.googl" - + "e.cloud.aiplatform.v1.DynamicRetrievalConfig\"\025\n" + + "\030dynamic_retrieval_config\030\002 \001(\01322.goo" + + "gle.cloud.aiplatform.v1.DynamicRetrievalConfig\"\025\n" + "\023EnterpriseWebSearch\"\312\001\n" + "\026DynamicRetrievalConfig\022E\n" - + "\004mode\030\001 \001(\01627.google.cl" - + "oud.aiplatform.v1.DynamicRetrievalConfig.Mode\022#\n" + + "\004mode\030\001 \001(\01627.google." + + "cloud.aiplatform.v1.DynamicRetrievalConfig.Mode\022#\n" + "\021dynamic_threshold\030\002 \001(\002B\003\340A\001H\000\210\001\001\".\n" + "\004Mode\022\024\n" + "\020MODE_UNSPECIFIED\020\000\022\020\n" + "\014MODE_DYNAMIC\020\001B\024\n" + "\022_dynamic_threshold\"\261\001\n\n" + "ToolConfig\022W\n" - + "\027function_calling_config\030\001 \001(\013" - + "21.google.cloud.aiplatform.v1.FunctionCallingConfigB\003\340A\001\022J\n" - + "\020retrieval_config\030\002 \001" - + "(\0132+.google.cloud.aiplatform.v1.RetrievalConfigB\003\340A\001\"\302\001\n" + + "\027function_calling_config\030\001 \001" + + "(\01321.google.cloud.aiplatform.v1.FunctionCallingConfigB\003\340A\001\022J\n" + + "\020retrieval_config\030\002" + + " \001(\0132+.google.cloud.aiplatform.v1.RetrievalConfigB\003\340A\001\"\302\001\n" + "\025FunctionCallingConfig\022I\n" + "\004mode\030\001" + " \001(\01626.google.cloud.aiplatform.v1.FunctionCallingConfig.ModeB\003\340A\001\022#\n" @@ -257,20 +270,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016_language_code\"\252\005\n" + "\022RagRetrievalConfig\022\022\n" + "\005top_k\030\001 \001(\005B\003\340A\001\022J\n" - + "\006filter\030\003 \001(\01325.google.cl" - + "oud.aiplatform.v1.RagRetrievalConfig.FilterB\003\340A\001\022L\n" - + "\007ranking\030\004 \001(\01326.google.cloud" - + ".aiplatform.v1.RagRetrievalConfig.RankingB\003\340A\001\032\223\001\n" + + "\006filter\030\003 \001(\01325.google." + + "cloud.aiplatform.v1.RagRetrievalConfig.FilterB\003\340A\001\022L\n" + + "\007ranking\030\004 \001(\01326.google.clo" + + "ud.aiplatform.v1.RagRetrievalConfig.RankingB\003\340A\001\032\223\001\n" + "\006Filter\022(\n" + "\031vector_distance_threshold\030\003 \001(\001B\003\340A\001H\000\022*\n" + "\033vector_similarity_threshold\030\004 \001(\001B\003\340A\001H\000\022\034\n" + "\017metadata_filter\030\002 \001(\tB\003\340A\001B\025\n" + "\023vector_db_threshold\032\317\002\n" + "\007Ranking\022_\n" - + "\014rank_service\030\001 \001(\0132B.google." - + "cloud.aiplatform.v1.RagRetrievalConfig.Ranking.RankServiceB\003\340A\001H\000\022[\n\n" - + "llm_ranker\030\003 \001(\0132@.google.cloud.aiplatform.v1.RagRe" - + "trievalConfig.Ranking.LlmRankerB\003\340A\001H\000\032:\n" + + "\014rank_service\030\001 \001(\0132B.googl" + + "e.cloud.aiplatform.v1.RagRetrievalConfig.Ranking.RankServiceB\003\340A\001H\000\022[\n\n" + + "llm_ranker\030\003 \001(\0132@.google.cloud.aiplatform.v1.Rag" + + "RetrievalConfig.Ranking.LlmRankerB\003\340A\001H\000\032:\n" + "\013RankService\022\034\n\n" + "model_name\030\001 \001(\tB\003\340A\001H\000\210\001\001B\r\n" + "\013_model_name\0328\n" @@ -278,10 +291,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "model_name\030\001 \001(\tB\003\340A\001H\000\210\001\001B\r\n" + "\013_model_nameB\020\n" + "\016ranking_configB\307\001\n" - + "\036com.google.cloud.aiplatform.v1B\tToolProtoP\001Z>cloud.google.com" - + "/go/aiplatform/apiv1/aiplatformpb;aiplat" - + "formpb\252\002\032Google.Cloud.AIPlatform.V1\312\002\032Go" - + "ogle\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006proto3" + + "\036com.google.cloud.aiplatform.v1B\tToolProtoP\001Z>cloud.google.c" + + "om/go/aiplatform/apiv1/aiplatformpb;aipl" + + "atformpb\252\002\032Google.Cloud.AIPlatform.V1\312\002\032" + + "Google\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -306,6 +319,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EnterpriseWebSearch", "CodeExecution", "UrlContext", + "ComputerUse", }); internal_static_google_cloud_aiplatform_v1_Tool_GoogleSearch_descriptor = internal_static_google_cloud_aiplatform_v1_Tool_descriptor.getNestedTypes().get(0); @@ -319,6 +333,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_Tool_CodeExecution_descriptor, new java.lang.String[] {}); + internal_static_google_cloud_aiplatform_v1_Tool_ComputerUse_descriptor = + internal_static_google_cloud_aiplatform_v1_Tool_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_aiplatform_v1_Tool_ComputerUse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_Tool_ComputerUse_descriptor, + new java.lang.String[] { + "Environment", + }); internal_static_google_cloud_aiplatform_v1_UrlContext_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_google_cloud_aiplatform_v1_UrlContext_fieldAccessorTable = diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagStore.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagStore.java index 1babe062361f..70a0d5148d40 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagStore.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagStore.java @@ -1234,7 +1234,7 @@ public com.google.cloud.aiplatform.v1.VertexRagStore.RagResource getRagResources * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=284 + * google/cloud/aiplatform/v1/tool.proto;l=304 * @return Whether the similarityTopK field is set. */ @java.lang.Override @@ -1255,7 +1255,7 @@ public boolean hasSimilarityTopK() { * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=284 + * google/cloud/aiplatform/v1/tool.proto;l=304 * @return The similarityTopK. */ @java.lang.Override @@ -1280,7 +1280,7 @@ public int getSimilarityTopK() { * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is deprecated. - * See google/cloud/aiplatform/v1/tool.proto;l=289 + * See google/cloud/aiplatform/v1/tool.proto;l=309 * @return Whether the vectorDistanceThreshold field is set. */ @java.lang.Override @@ -1302,7 +1302,7 @@ public boolean hasVectorDistanceThreshold() { * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is deprecated. - * See google/cloud/aiplatform/v1/tool.proto;l=289 + * See google/cloud/aiplatform/v1/tool.proto;l=309 * @return The vectorDistanceThreshold. */ @java.lang.Override @@ -2357,7 +2357,7 @@ public com.google.cloud.aiplatform.v1.VertexRagStore.RagResource.Builder addRagR * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=284 + * google/cloud/aiplatform/v1/tool.proto;l=304 * @return Whether the similarityTopK field is set. */ @java.lang.Override @@ -2378,7 +2378,7 @@ public boolean hasSimilarityTopK() { * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=284 + * google/cloud/aiplatform/v1/tool.proto;l=304 * @return The similarityTopK. */ @java.lang.Override @@ -2399,7 +2399,7 @@ public int getSimilarityTopK() { * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=284 + * google/cloud/aiplatform/v1/tool.proto;l=304 * @param value The similarityTopK to set. * @return This builder for chaining. */ @@ -2424,7 +2424,7 @@ public Builder setSimilarityTopK(int value) { * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=284 + * google/cloud/aiplatform/v1/tool.proto;l=304 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2450,7 +2450,7 @@ public Builder clearSimilarityTopK() { * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is - * deprecated. See google/cloud/aiplatform/v1/tool.proto;l=289 + * deprecated. See google/cloud/aiplatform/v1/tool.proto;l=309 * @return Whether the vectorDistanceThreshold field is set. */ @java.lang.Override @@ -2472,7 +2472,7 @@ public boolean hasVectorDistanceThreshold() { * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is - * deprecated. See google/cloud/aiplatform/v1/tool.proto;l=289 + * deprecated. See google/cloud/aiplatform/v1/tool.proto;l=309 * @return The vectorDistanceThreshold. */ @java.lang.Override @@ -2494,7 +2494,7 @@ public double getVectorDistanceThreshold() { * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is - * deprecated. See google/cloud/aiplatform/v1/tool.proto;l=289 + * deprecated. See google/cloud/aiplatform/v1/tool.proto;l=309 * @param value The vectorDistanceThreshold to set. * @return This builder for chaining. */ @@ -2520,7 +2520,7 @@ public Builder setVectorDistanceThreshold(double value) { * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is - * deprecated. See google/cloud/aiplatform/v1/tool.proto;l=289 + * deprecated. See google/cloud/aiplatform/v1/tool.proto;l=309 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagStoreOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagStoreOrBuilder.java index 22626f0d194e..a9c8cd31e755 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagStoreOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagStoreOrBuilder.java @@ -118,7 +118,7 @@ com.google.cloud.aiplatform.v1.VertexRagStore.RagResourceOrBuilder getRagResourc * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=284 + * google/cloud/aiplatform/v1/tool.proto;l=304 * @return Whether the similarityTopK field is set. */ @java.lang.Deprecated @@ -136,7 +136,7 @@ com.google.cloud.aiplatform.v1.VertexRagStore.RagResourceOrBuilder getRagResourc * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=284 + * google/cloud/aiplatform/v1/tool.proto;l=304 * @return The similarityTopK. */ @java.lang.Deprecated @@ -155,7 +155,7 @@ com.google.cloud.aiplatform.v1.VertexRagStore.RagResourceOrBuilder getRagResourc * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is deprecated. - * See google/cloud/aiplatform/v1/tool.proto;l=289 + * See google/cloud/aiplatform/v1/tool.proto;l=309 * @return Whether the vectorDistanceThreshold field is set. */ @java.lang.Deprecated @@ -174,7 +174,7 @@ com.google.cloud.aiplatform.v1.VertexRagStore.RagResourceOrBuilder getRagResourc * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is deprecated. - * See google/cloud/aiplatform/v1/tool.proto;l=289 + * See google/cloud/aiplatform/v1/tool.proto;l=309 * @return The vectorDistanceThreshold. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model.proto index e61d82855bf9..da8ac1d17d62 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model.proto @@ -782,6 +782,16 @@ message ModelContainerSpec { // variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).) string health_route = 7 [(google.api.field_behavior) = IMMUTABLE]; + // Immutable. Invoke route prefix for the custom container. "/*" is the only + // supported value right now. By setting this field, any non-root route on + // this model will be accessible with invoke http call eg: "/invoke/foo/bar", + // however the [PredictionService.Invoke] RPC is not supported yet. + // + // Only one of `predict_route` or `invoke_route_prefix` can be set, and we + // default to using `predict_route` if this field is not set. If this field + // is set, the Model can only be deployed to dedicated endpoint. + string invoke_route_prefix = 15 [(google.api.field_behavior) = IMMUTABLE]; + // Immutable. List of ports to expose from the container. Vertex AI sends gRPC // prediction requests that it receives to the first port on this list. Vertex // AI also sends liveness and health checks to this port. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/notebook_execution_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/notebook_execution_job.proto index 6f78f22eb87d..6b7cf2252775 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/notebook_execution_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/notebook_execution_job.proto @@ -146,15 +146,11 @@ message NotebookExecutionJob { // Max running time of the execution job in seconds (default 86400s / 24 hrs). google.protobuf.Duration execution_timeout = 5; - // Output only. The Schedule resource name if this job is triggered by one. - // Format: + // The Schedule resource name if this job is triggered by one. Format: // `projects/{project_id}/locations/{location}/schedules/{schedule_id}` - string schedule_resource_name = 6 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "aiplatform.googleapis.com/Schedule" - } - ]; + string schedule_resource_name = 6 [(google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Schedule" + }]; // Output only. The state of the NotebookExecutionJob. JobState job_state = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/notebook_runtime.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/notebook_runtime.proto index 2cc567a9b3e3..be0e26fba0a6 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/notebook_runtime.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/notebook_runtime.proto @@ -164,8 +164,9 @@ message NotebookRuntimeTemplate { } // A runtime is a virtual machine allocated to a particular user for a -// particular Notebook file on temporary basis with lifetime limited to 24 -// hours. +// particular Notebook file on temporary basis with lifetime. Default runtimes +// have a lifetime of 18 hours, while custom runtimes last for 6 months from +// their creation or last upgrade. message NotebookRuntime { option (google.api.resource) = { type: "aiplatform.googleapis.com/NotebookRuntime" @@ -193,7 +194,8 @@ message NotebookRuntime { // NotebookRuntime is in running state. RUNNING = 1; - // NotebookRuntime is in starting state. + // NotebookRuntime is in starting state. This is when the runtime is being + // started from a stopped state. BEING_STARTED = 2; // NotebookRuntime is in stopping state. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/notebook_software_config.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/notebook_software_config.proto index 7c8861f96876..7471768e52fc 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/notebook_software_config.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/notebook_software_config.proto @@ -48,7 +48,7 @@ message PostStartupScriptConfig { string post_startup_script = 1 [(google.api.field_behavior) = OPTIONAL]; // Optional. Post startup script url to download. Example: - // https://bucket/script.sh + // `gs://bucket/script.sh` string post_startup_script_url = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. Post startup script behavior that defines download and execution @@ -57,8 +57,27 @@ message PostStartupScriptConfig { [(google.api.field_behavior) = OPTIONAL]; } -// Notebook Software Config. +// Colab image of the runtime. +message ColabImage { + // Optional. The release name of the NotebookRuntime Colab image, e.g. + // "py310". If not specified, detault to the latest release. + string release_name = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. A human-readable description of the specified colab image + // release, populated by the system. Example: "Python 3.10", "Latest - current + // Python 3.11" + string description = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Notebook Software Config. This is passed to the backend when user +// makes software configurations in UI. message NotebookSoftwareConfig { + // The image to be used by the notebook runtime. + oneof runtime_image { + // Optional. Google-managed NotebookRuntime colab image. + ColabImage colab_image = 5 [(google.api.field_behavior) = OPTIONAL]; + } + // Optional. Environment variables to be passed to the container. // Maximum limit is 100. repeated EnvVar env = 1 [(google.api.field_behavior) = OPTIONAL]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_job.proto index 6da218472a25..3716216d9fae 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_job.proto @@ -361,6 +361,16 @@ message PipelineTaskDetail { // Output only. The runtime output artifacts of the task. map outputs = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The unique name of a task. + // This field is used by rerun pipeline job. + // Console UI and Vertex AI SDK will support triggering pipeline job reruns. + // The name is constructed by concatenating all the parent tasks name with + // the task name. For example, if a task named "child_task" has a parent task + // named "parent_task_1" and parent task 1 has a parent task named + // "parent_task_2", the task unique name will be + // "parent_task_2.parent_task_1.child_task". + string task_unique_name = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; } // The runtime detail of a pipeline executor. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tool.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tool.proto index a17be12c9f01..f4a8844da004 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tool.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tool.proto @@ -49,6 +49,21 @@ message Tool { // output to this tool. message CodeExecution {} + // Tool to support computer use. + message ComputerUse { + // Represents the environment being operated, such as a web browser. + enum Environment { + // Defaults to browser. + ENVIRONMENT_UNSPECIFIED = 0; + + // Operates in a web browser. + ENVIRONMENT_BROWSER = 1; + } + + // Required. The environment being operated. + Environment environment = 1 [(google.api.field_behavior) = REQUIRED]; + } + // Optional. Function tool type. // One or more function declarations to be passed to the model along with the // current user query. Model may decide to call a subset of these functions @@ -87,6 +102,11 @@ message Tool { // Optional. Tool to support URL context retrieval. UrlContext url_context = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Tool to support the model interacting directly with the computer. + // If enabled, it automatically populates computer-use specific Function + // Declarations. + ComputerUse computer_use = 11 [(google.api.field_behavior) = OPTIONAL]; } // Tool to support URL context. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/pom.xml b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/pom.xml index e827b88782f2..2270b462c4b8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/pom.xml +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-aiplatform-v1beta1 - 0.84.0 + 0.85.0 proto-google-cloud-aiplatform-v1beta1 Proto library for google-cloud-aiplatform com.google.cloud google-cloud-aiplatform-parent - 3.68.0 + 3.69.0 diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AggregationOutput.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AggregationOutput.java new file mode 100644 index 000000000000..2ac5286939ae --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AggregationOutput.java @@ -0,0 +1,1298 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * The aggregation result for the entire dataset and all metrics.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.AggregationOutput} + */ +public final class AggregationOutput extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.AggregationOutput) + AggregationOutputOrBuilder { + private static final long serialVersionUID = 0L; + + // Use AggregationOutput.newBuilder() to construct. + private AggregationOutput(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AggregationOutput() { + aggregationResults_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AggregationOutput(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AggregationOutput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AggregationOutput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.AggregationOutput.class, + com.google.cloud.aiplatform.v1beta1.AggregationOutput.Builder.class); + } + + private int bitField0_; + public static final int DATASET_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.EvaluationDataset dataset_; + + /** + * + * + *
+   * The dataset used for evaluation & aggregation.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.EvaluationDataset dataset = 1; + * + * @return Whether the dataset field is set. + */ + @java.lang.Override + public boolean hasDataset() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The dataset used for evaluation & aggregation.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.EvaluationDataset dataset = 1; + * + * @return The dataset. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationDataset getDataset() { + return dataset_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationDataset.getDefaultInstance() + : dataset_; + } + + /** + * + * + *
+   * The dataset used for evaluation & aggregation.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.EvaluationDataset dataset = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationDatasetOrBuilder getDatasetOrBuilder() { + return dataset_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationDataset.getDefaultInstance() + : dataset_; + } + + public static final int AGGREGATION_RESULTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List aggregationResults_; + + /** + * + * + *
+   * One AggregationResult per metric.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.AggregationResult aggregation_results = 2; + * + */ + @java.lang.Override + public java.util.List + getAggregationResultsList() { + return aggregationResults_; + } + + /** + * + * + *
+   * One AggregationResult per metric.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.AggregationResult aggregation_results = 2; + * + */ + @java.lang.Override + public java.util.List + getAggregationResultsOrBuilderList() { + return aggregationResults_; + } + + /** + * + * + *
+   * One AggregationResult per metric.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.AggregationResult aggregation_results = 2; + * + */ + @java.lang.Override + public int getAggregationResultsCount() { + return aggregationResults_.size(); + } + + /** + * + * + *
+   * One AggregationResult per metric.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.AggregationResult aggregation_results = 2; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AggregationResult getAggregationResults(int index) { + return aggregationResults_.get(index); + } + + /** + * + * + *
+   * One AggregationResult per metric.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.AggregationResult aggregation_results = 2; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AggregationResultOrBuilder + getAggregationResultsOrBuilder(int index) { + return aggregationResults_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getDataset()); + } + for (int i = 0; i < aggregationResults_.size(); i++) { + output.writeMessage(2, aggregationResults_.get(i)); + } + 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, getDataset()); + } + for (int i = 0; i < aggregationResults_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, aggregationResults_.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.cloud.aiplatform.v1beta1.AggregationOutput)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.AggregationOutput other = + (com.google.cloud.aiplatform.v1beta1.AggregationOutput) obj; + + if (hasDataset() != other.hasDataset()) return false; + if (hasDataset()) { + if (!getDataset().equals(other.getDataset())) return false; + } + if (!getAggregationResultsList().equals(other.getAggregationResultsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDataset()) { + hash = (37 * hash) + DATASET_FIELD_NUMBER; + hash = (53 * hash) + getDataset().hashCode(); + } + if (getAggregationResultsCount() > 0) { + hash = (37 * hash) + AGGREGATION_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getAggregationResultsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.AggregationOutput parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AggregationOutput parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AggregationOutput parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AggregationOutput parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AggregationOutput parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AggregationOutput parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AggregationOutput parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AggregationOutput parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AggregationOutput parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AggregationOutput parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AggregationOutput parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AggregationOutput parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.AggregationOutput prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The aggregation result for the entire dataset and all metrics.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.AggregationOutput} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.AggregationOutput) + com.google.cloud.aiplatform.v1beta1.AggregationOutputOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AggregationOutput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AggregationOutput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.AggregationOutput.class, + com.google.cloud.aiplatform.v1beta1.AggregationOutput.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.AggregationOutput.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDatasetFieldBuilder(); + getAggregationResultsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dataset_ = null; + if (datasetBuilder_ != null) { + datasetBuilder_.dispose(); + datasetBuilder_ = null; + } + if (aggregationResultsBuilder_ == null) { + aggregationResults_ = java.util.Collections.emptyList(); + } else { + aggregationResults_ = null; + aggregationResultsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AggregationOutput_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AggregationOutput getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.AggregationOutput.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AggregationOutput build() { + com.google.cloud.aiplatform.v1beta1.AggregationOutput result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AggregationOutput buildPartial() { + com.google.cloud.aiplatform.v1beta1.AggregationOutput result = + new com.google.cloud.aiplatform.v1beta1.AggregationOutput(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.AggregationOutput result) { + if (aggregationResultsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + aggregationResults_ = java.util.Collections.unmodifiableList(aggregationResults_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.aggregationResults_ = aggregationResults_; + } else { + result.aggregationResults_ = aggregationResultsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.AggregationOutput result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dataset_ = datasetBuilder_ == null ? dataset_ : datasetBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.AggregationOutput) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.AggregationOutput) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.AggregationOutput other) { + if (other == com.google.cloud.aiplatform.v1beta1.AggregationOutput.getDefaultInstance()) + return this; + if (other.hasDataset()) { + mergeDataset(other.getDataset()); + } + if (aggregationResultsBuilder_ == null) { + if (!other.aggregationResults_.isEmpty()) { + if (aggregationResults_.isEmpty()) { + aggregationResults_ = other.aggregationResults_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureAggregationResultsIsMutable(); + aggregationResults_.addAll(other.aggregationResults_); + } + onChanged(); + } + } else { + if (!other.aggregationResults_.isEmpty()) { + if (aggregationResultsBuilder_.isEmpty()) { + aggregationResultsBuilder_.dispose(); + aggregationResultsBuilder_ = null; + aggregationResults_ = other.aggregationResults_; + bitField0_ = (bitField0_ & ~0x00000002); + aggregationResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAggregationResultsFieldBuilder() + : null; + } else { + aggregationResultsBuilder_.addAllMessages(other.aggregationResults_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(getDatasetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.aiplatform.v1beta1.AggregationResult m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.AggregationResult.parser(), + extensionRegistry); + if (aggregationResultsBuilder_ == null) { + ensureAggregationResultsIsMutable(); + aggregationResults_.add(m); + } else { + aggregationResultsBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.aiplatform.v1beta1.EvaluationDataset dataset_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.EvaluationDataset, + com.google.cloud.aiplatform.v1beta1.EvaluationDataset.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationDatasetOrBuilder> + datasetBuilder_; + + /** + * + * + *
+     * The dataset used for evaluation & aggregation.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.EvaluationDataset dataset = 1; + * + * @return Whether the dataset field is set. + */ + public boolean hasDataset() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * The dataset used for evaluation & aggregation.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.EvaluationDataset dataset = 1; + * + * @return The dataset. + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationDataset getDataset() { + if (datasetBuilder_ == null) { + return dataset_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationDataset.getDefaultInstance() + : dataset_; + } else { + return datasetBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The dataset used for evaluation & aggregation.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.EvaluationDataset dataset = 1; + */ + public Builder setDataset(com.google.cloud.aiplatform.v1beta1.EvaluationDataset value) { + if (datasetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataset_ = value; + } else { + datasetBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The dataset used for evaluation & aggregation.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.EvaluationDataset dataset = 1; + */ + public Builder setDataset( + com.google.cloud.aiplatform.v1beta1.EvaluationDataset.Builder builderForValue) { + if (datasetBuilder_ == null) { + dataset_ = builderForValue.build(); + } else { + datasetBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The dataset used for evaluation & aggregation.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.EvaluationDataset dataset = 1; + */ + public Builder mergeDataset(com.google.cloud.aiplatform.v1beta1.EvaluationDataset value) { + if (datasetBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && dataset_ != null + && dataset_ + != com.google.cloud.aiplatform.v1beta1.EvaluationDataset.getDefaultInstance()) { + getDatasetBuilder().mergeFrom(value); + } else { + dataset_ = value; + } + } else { + datasetBuilder_.mergeFrom(value); + } + if (dataset_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The dataset used for evaluation & aggregation.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.EvaluationDataset dataset = 1; + */ + public Builder clearDataset() { + bitField0_ = (bitField0_ & ~0x00000001); + dataset_ = null; + if (datasetBuilder_ != null) { + datasetBuilder_.dispose(); + datasetBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The dataset used for evaluation & aggregation.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.EvaluationDataset dataset = 1; + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationDataset.Builder getDatasetBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getDatasetFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The dataset used for evaluation & aggregation.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.EvaluationDataset dataset = 1; + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationDatasetOrBuilder getDatasetOrBuilder() { + if (datasetBuilder_ != null) { + return datasetBuilder_.getMessageOrBuilder(); + } else { + return dataset_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationDataset.getDefaultInstance() + : dataset_; + } + } + + /** + * + * + *
+     * The dataset used for evaluation & aggregation.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.EvaluationDataset dataset = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.EvaluationDataset, + com.google.cloud.aiplatform.v1beta1.EvaluationDataset.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationDatasetOrBuilder> + getDatasetFieldBuilder() { + if (datasetBuilder_ == null) { + datasetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.EvaluationDataset, + com.google.cloud.aiplatform.v1beta1.EvaluationDataset.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationDatasetOrBuilder>( + getDataset(), getParentForChildren(), isClean()); + dataset_ = null; + } + return datasetBuilder_; + } + + private java.util.List + aggregationResults_ = java.util.Collections.emptyList(); + + private void ensureAggregationResultsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + aggregationResults_ = + new java.util.ArrayList( + aggregationResults_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.AggregationResult, + com.google.cloud.aiplatform.v1beta1.AggregationResult.Builder, + com.google.cloud.aiplatform.v1beta1.AggregationResultOrBuilder> + aggregationResultsBuilder_; + + /** + * + * + *
+     * One AggregationResult per metric.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.AggregationResult aggregation_results = 2; + * + */ + public java.util.List + getAggregationResultsList() { + if (aggregationResultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(aggregationResults_); + } else { + return aggregationResultsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * One AggregationResult per metric.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.AggregationResult aggregation_results = 2; + * + */ + public int getAggregationResultsCount() { + if (aggregationResultsBuilder_ == null) { + return aggregationResults_.size(); + } else { + return aggregationResultsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * One AggregationResult per metric.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.AggregationResult aggregation_results = 2; + * + */ + public com.google.cloud.aiplatform.v1beta1.AggregationResult getAggregationResults(int index) { + if (aggregationResultsBuilder_ == null) { + return aggregationResults_.get(index); + } else { + return aggregationResultsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * One AggregationResult per metric.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.AggregationResult aggregation_results = 2; + * + */ + public Builder setAggregationResults( + int index, com.google.cloud.aiplatform.v1beta1.AggregationResult value) { + if (aggregationResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAggregationResultsIsMutable(); + aggregationResults_.set(index, value); + onChanged(); + } else { + aggregationResultsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * One AggregationResult per metric.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.AggregationResult aggregation_results = 2; + * + */ + public Builder setAggregationResults( + int index, com.google.cloud.aiplatform.v1beta1.AggregationResult.Builder builderForValue) { + if (aggregationResultsBuilder_ == null) { + ensureAggregationResultsIsMutable(); + aggregationResults_.set(index, builderForValue.build()); + onChanged(); + } else { + aggregationResultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * One AggregationResult per metric.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.AggregationResult aggregation_results = 2; + * + */ + public Builder addAggregationResults( + com.google.cloud.aiplatform.v1beta1.AggregationResult value) { + if (aggregationResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAggregationResultsIsMutable(); + aggregationResults_.add(value); + onChanged(); + } else { + aggregationResultsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * One AggregationResult per metric.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.AggregationResult aggregation_results = 2; + * + */ + public Builder addAggregationResults( + int index, com.google.cloud.aiplatform.v1beta1.AggregationResult value) { + if (aggregationResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAggregationResultsIsMutable(); + aggregationResults_.add(index, value); + onChanged(); + } else { + aggregationResultsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * One AggregationResult per metric.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.AggregationResult aggregation_results = 2; + * + */ + public Builder addAggregationResults( + com.google.cloud.aiplatform.v1beta1.AggregationResult.Builder builderForValue) { + if (aggregationResultsBuilder_ == null) { + ensureAggregationResultsIsMutable(); + aggregationResults_.add(builderForValue.build()); + onChanged(); + } else { + aggregationResultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * One AggregationResult per metric.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.AggregationResult aggregation_results = 2; + * + */ + public Builder addAggregationResults( + int index, com.google.cloud.aiplatform.v1beta1.AggregationResult.Builder builderForValue) { + if (aggregationResultsBuilder_ == null) { + ensureAggregationResultsIsMutable(); + aggregationResults_.add(index, builderForValue.build()); + onChanged(); + } else { + aggregationResultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * One AggregationResult per metric.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.AggregationResult aggregation_results = 2; + * + */ + public Builder addAllAggregationResults( + java.lang.Iterable + values) { + if (aggregationResultsBuilder_ == null) { + ensureAggregationResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, aggregationResults_); + onChanged(); + } else { + aggregationResultsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * One AggregationResult per metric.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.AggregationResult aggregation_results = 2; + * + */ + public Builder clearAggregationResults() { + if (aggregationResultsBuilder_ == null) { + aggregationResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + aggregationResultsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * One AggregationResult per metric.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.AggregationResult aggregation_results = 2; + * + */ + public Builder removeAggregationResults(int index) { + if (aggregationResultsBuilder_ == null) { + ensureAggregationResultsIsMutable(); + aggregationResults_.remove(index); + onChanged(); + } else { + aggregationResultsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * One AggregationResult per metric.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.AggregationResult aggregation_results = 2; + * + */ + public com.google.cloud.aiplatform.v1beta1.AggregationResult.Builder + getAggregationResultsBuilder(int index) { + return getAggregationResultsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * One AggregationResult per metric.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.AggregationResult aggregation_results = 2; + * + */ + public com.google.cloud.aiplatform.v1beta1.AggregationResultOrBuilder + getAggregationResultsOrBuilder(int index) { + if (aggregationResultsBuilder_ == null) { + return aggregationResults_.get(index); + } else { + return aggregationResultsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * One AggregationResult per metric.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.AggregationResult aggregation_results = 2; + * + */ + public java.util.List + getAggregationResultsOrBuilderList() { + if (aggregationResultsBuilder_ != null) { + return aggregationResultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(aggregationResults_); + } + } + + /** + * + * + *
+     * One AggregationResult per metric.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.AggregationResult aggregation_results = 2; + * + */ + public com.google.cloud.aiplatform.v1beta1.AggregationResult.Builder + addAggregationResultsBuilder() { + return getAggregationResultsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.AggregationResult.getDefaultInstance()); + } + + /** + * + * + *
+     * One AggregationResult per metric.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.AggregationResult aggregation_results = 2; + * + */ + public com.google.cloud.aiplatform.v1beta1.AggregationResult.Builder + addAggregationResultsBuilder(int index) { + return getAggregationResultsFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1beta1.AggregationResult.getDefaultInstance()); + } + + /** + * + * + *
+     * One AggregationResult per metric.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.AggregationResult aggregation_results = 2; + * + */ + public java.util.List + getAggregationResultsBuilderList() { + return getAggregationResultsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.AggregationResult, + com.google.cloud.aiplatform.v1beta1.AggregationResult.Builder, + com.google.cloud.aiplatform.v1beta1.AggregationResultOrBuilder> + getAggregationResultsFieldBuilder() { + if (aggregationResultsBuilder_ == null) { + aggregationResultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.AggregationResult, + com.google.cloud.aiplatform.v1beta1.AggregationResult.Builder, + com.google.cloud.aiplatform.v1beta1.AggregationResultOrBuilder>( + aggregationResults_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + aggregationResults_ = null; + } + return aggregationResultsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.AggregationOutput) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.AggregationOutput) + private static final com.google.cloud.aiplatform.v1beta1.AggregationOutput DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.AggregationOutput(); + } + + public static com.google.cloud.aiplatform.v1beta1.AggregationOutput getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AggregationOutput parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AggregationOutput getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AggregationOutputOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AggregationOutputOrBuilder.java new file mode 100644 index 000000000000..6a1f918eca95 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AggregationOutputOrBuilder.java @@ -0,0 +1,125 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.aiplatform.v1beta1; + +public interface AggregationOutputOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.AggregationOutput) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The dataset used for evaluation & aggregation.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.EvaluationDataset dataset = 1; + * + * @return Whether the dataset field is set. + */ + boolean hasDataset(); + + /** + * + * + *
+   * The dataset used for evaluation & aggregation.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.EvaluationDataset dataset = 1; + * + * @return The dataset. + */ + com.google.cloud.aiplatform.v1beta1.EvaluationDataset getDataset(); + + /** + * + * + *
+   * The dataset used for evaluation & aggregation.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.EvaluationDataset dataset = 1; + */ + com.google.cloud.aiplatform.v1beta1.EvaluationDatasetOrBuilder getDatasetOrBuilder(); + + /** + * + * + *
+   * One AggregationResult per metric.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.AggregationResult aggregation_results = 2; + * + */ + java.util.List getAggregationResultsList(); + + /** + * + * + *
+   * One AggregationResult per metric.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.AggregationResult aggregation_results = 2; + * + */ + com.google.cloud.aiplatform.v1beta1.AggregationResult getAggregationResults(int index); + + /** + * + * + *
+   * One AggregationResult per metric.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.AggregationResult aggregation_results = 2; + * + */ + int getAggregationResultsCount(); + + /** + * + * + *
+   * One AggregationResult per metric.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.AggregationResult aggregation_results = 2; + * + */ + java.util.List + getAggregationResultsOrBuilderList(); + + /** + * + * + *
+   * One AggregationResult per metric.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.AggregationResult aggregation_results = 2; + * + */ + com.google.cloud.aiplatform.v1beta1.AggregationResultOrBuilder getAggregationResultsOrBuilder( + int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AggregationResult.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AggregationResult.java new file mode 100644 index 000000000000..95fd3742904b --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AggregationResult.java @@ -0,0 +1,2309 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * The aggregation result for a single metric.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.AggregationResult} + */ +public final class AggregationResult extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.AggregationResult) + AggregationResultOrBuilder { + private static final long serialVersionUID = 0L; + + // Use AggregationResult.newBuilder() to construct. + private AggregationResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AggregationResult() { + aggregationMetric_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AggregationResult(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AggregationResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AggregationResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.AggregationResult.class, + com.google.cloud.aiplatform.v1beta1.AggregationResult.Builder.class); + } + + private int aggregationResultCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object aggregationResult_; + + public enum AggregationResultCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + POINTWISE_METRIC_RESULT(5), + PAIRWISE_METRIC_RESULT(6), + EXACT_MATCH_METRIC_VALUE(7), + BLEU_METRIC_VALUE(8), + ROUGE_METRIC_VALUE(9), + AGGREGATIONRESULT_NOT_SET(0); + private final int value; + + private AggregationResultCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static AggregationResultCase valueOf(int value) { + return forNumber(value); + } + + public static AggregationResultCase forNumber(int value) { + switch (value) { + case 5: + return POINTWISE_METRIC_RESULT; + case 6: + return PAIRWISE_METRIC_RESULT; + case 7: + return EXACT_MATCH_METRIC_VALUE; + case 8: + return BLEU_METRIC_VALUE; + case 9: + return ROUGE_METRIC_VALUE; + case 0: + return AGGREGATIONRESULT_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public AggregationResultCase getAggregationResultCase() { + return AggregationResultCase.forNumber(aggregationResultCase_); + } + + public static final int POINTWISE_METRIC_RESULT_FIELD_NUMBER = 5; + + /** + * + * + *
+   * Result for pointwise metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.PointwiseMetricResult pointwise_metric_result = 5; + * + * + * @return Whether the pointwiseMetricResult field is set. + */ + @java.lang.Override + public boolean hasPointwiseMetricResult() { + return aggregationResultCase_ == 5; + } + + /** + * + * + *
+   * Result for pointwise metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.PointwiseMetricResult pointwise_metric_result = 5; + * + * + * @return The pointwiseMetricResult. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult getPointwiseMetricResult() { + if (aggregationResultCase_ == 5) { + return (com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult) aggregationResult_; + } + return com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.getDefaultInstance(); + } + + /** + * + * + *
+   * Result for pointwise metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.PointwiseMetricResult pointwise_metric_result = 5; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PointwiseMetricResultOrBuilder + getPointwiseMetricResultOrBuilder() { + if (aggregationResultCase_ == 5) { + return (com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult) aggregationResult_; + } + return com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.getDefaultInstance(); + } + + public static final int PAIRWISE_METRIC_RESULT_FIELD_NUMBER = 6; + + /** + * + * + *
+   * Result for pairwise metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.PairwiseMetricResult pairwise_metric_result = 6; + * + * @return Whether the pairwiseMetricResult field is set. + */ + @java.lang.Override + public boolean hasPairwiseMetricResult() { + return aggregationResultCase_ == 6; + } + + /** + * + * + *
+   * Result for pairwise metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.PairwiseMetricResult pairwise_metric_result = 6; + * + * @return The pairwiseMetricResult. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult getPairwiseMetricResult() { + if (aggregationResultCase_ == 6) { + return (com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult) aggregationResult_; + } + return com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.getDefaultInstance(); + } + + /** + * + * + *
+   * Result for pairwise metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.PairwiseMetricResult pairwise_metric_result = 6; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PairwiseMetricResultOrBuilder + getPairwiseMetricResultOrBuilder() { + if (aggregationResultCase_ == 6) { + return (com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult) aggregationResult_; + } + return com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.getDefaultInstance(); + } + + public static final int EXACT_MATCH_METRIC_VALUE_FIELD_NUMBER = 7; + + /** + * + * + *
+   * Results for exact match metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.ExactMatchMetricValue exact_match_metric_value = 7; + * + * + * @return Whether the exactMatchMetricValue field is set. + */ + @java.lang.Override + public boolean hasExactMatchMetricValue() { + return aggregationResultCase_ == 7; + } + + /** + * + * + *
+   * Results for exact match metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.ExactMatchMetricValue exact_match_metric_value = 7; + * + * + * @return The exactMatchMetricValue. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ExactMatchMetricValue getExactMatchMetricValue() { + if (aggregationResultCase_ == 7) { + return (com.google.cloud.aiplatform.v1beta1.ExactMatchMetricValue) aggregationResult_; + } + return com.google.cloud.aiplatform.v1beta1.ExactMatchMetricValue.getDefaultInstance(); + } + + /** + * + * + *
+   * Results for exact match metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.ExactMatchMetricValue exact_match_metric_value = 7; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ExactMatchMetricValueOrBuilder + getExactMatchMetricValueOrBuilder() { + if (aggregationResultCase_ == 7) { + return (com.google.cloud.aiplatform.v1beta1.ExactMatchMetricValue) aggregationResult_; + } + return com.google.cloud.aiplatform.v1beta1.ExactMatchMetricValue.getDefaultInstance(); + } + + public static final int BLEU_METRIC_VALUE_FIELD_NUMBER = 8; + + /** + * + * + *
+   * Results for bleu metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.BleuMetricValue bleu_metric_value = 8; + * + * @return Whether the bleuMetricValue field is set. + */ + @java.lang.Override + public boolean hasBleuMetricValue() { + return aggregationResultCase_ == 8; + } + + /** + * + * + *
+   * Results for bleu metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.BleuMetricValue bleu_metric_value = 8; + * + * @return The bleuMetricValue. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BleuMetricValue getBleuMetricValue() { + if (aggregationResultCase_ == 8) { + return (com.google.cloud.aiplatform.v1beta1.BleuMetricValue) aggregationResult_; + } + return com.google.cloud.aiplatform.v1beta1.BleuMetricValue.getDefaultInstance(); + } + + /** + * + * + *
+   * Results for bleu metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.BleuMetricValue bleu_metric_value = 8; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BleuMetricValueOrBuilder + getBleuMetricValueOrBuilder() { + if (aggregationResultCase_ == 8) { + return (com.google.cloud.aiplatform.v1beta1.BleuMetricValue) aggregationResult_; + } + return com.google.cloud.aiplatform.v1beta1.BleuMetricValue.getDefaultInstance(); + } + + public static final int ROUGE_METRIC_VALUE_FIELD_NUMBER = 9; + + /** + * + * + *
+   * Results for rouge metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.RougeMetricValue rouge_metric_value = 9; + * + * @return Whether the rougeMetricValue field is set. + */ + @java.lang.Override + public boolean hasRougeMetricValue() { + return aggregationResultCase_ == 9; + } + + /** + * + * + *
+   * Results for rouge metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.RougeMetricValue rouge_metric_value = 9; + * + * @return The rougeMetricValue. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RougeMetricValue getRougeMetricValue() { + if (aggregationResultCase_ == 9) { + return (com.google.cloud.aiplatform.v1beta1.RougeMetricValue) aggregationResult_; + } + return com.google.cloud.aiplatform.v1beta1.RougeMetricValue.getDefaultInstance(); + } + + /** + * + * + *
+   * Results for rouge metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.RougeMetricValue rouge_metric_value = 9; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RougeMetricValueOrBuilder + getRougeMetricValueOrBuilder() { + if (aggregationResultCase_ == 9) { + return (com.google.cloud.aiplatform.v1beta1.RougeMetricValue) aggregationResult_; + } + return com.google.cloud.aiplatform.v1beta1.RougeMetricValue.getDefaultInstance(); + } + + public static final int AGGREGATION_METRIC_FIELD_NUMBER = 4; + private int aggregationMetric_ = 0; + + /** + * + * + *
+   * Aggregation metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Metric.AggregationMetric aggregation_metric = 4; + * + * @return The enum numeric value on the wire for aggregationMetric. + */ + @java.lang.Override + public int getAggregationMetricValue() { + return aggregationMetric_; + } + + /** + * + * + *
+   * Aggregation metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Metric.AggregationMetric aggregation_metric = 4; + * + * @return The aggregationMetric. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Metric.AggregationMetric getAggregationMetric() { + com.google.cloud.aiplatform.v1beta1.Metric.AggregationMetric result = + com.google.cloud.aiplatform.v1beta1.Metric.AggregationMetric.forNumber(aggregationMetric_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.Metric.AggregationMetric.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 (aggregationMetric_ + != com.google.cloud.aiplatform.v1beta1.Metric.AggregationMetric + .AGGREGATION_METRIC_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, aggregationMetric_); + } + if (aggregationResultCase_ == 5) { + output.writeMessage( + 5, (com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult) aggregationResult_); + } + if (aggregationResultCase_ == 6) { + output.writeMessage( + 6, (com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult) aggregationResult_); + } + if (aggregationResultCase_ == 7) { + output.writeMessage( + 7, (com.google.cloud.aiplatform.v1beta1.ExactMatchMetricValue) aggregationResult_); + } + if (aggregationResultCase_ == 8) { + output.writeMessage( + 8, (com.google.cloud.aiplatform.v1beta1.BleuMetricValue) aggregationResult_); + } + if (aggregationResultCase_ == 9) { + output.writeMessage( + 9, (com.google.cloud.aiplatform.v1beta1.RougeMetricValue) aggregationResult_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (aggregationMetric_ + != com.google.cloud.aiplatform.v1beta1.Metric.AggregationMetric + .AGGREGATION_METRIC_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, aggregationMetric_); + } + if (aggregationResultCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult) aggregationResult_); + } + if (aggregationResultCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult) aggregationResult_); + } + if (aggregationResultCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.cloud.aiplatform.v1beta1.ExactMatchMetricValue) aggregationResult_); + } + if (aggregationResultCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.cloud.aiplatform.v1beta1.BleuMetricValue) aggregationResult_); + } + if (aggregationResultCase_ == 9) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, (com.google.cloud.aiplatform.v1beta1.RougeMetricValue) aggregationResult_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.AggregationResult)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.AggregationResult other = + (com.google.cloud.aiplatform.v1beta1.AggregationResult) obj; + + if (aggregationMetric_ != other.aggregationMetric_) return false; + if (!getAggregationResultCase().equals(other.getAggregationResultCase())) return false; + switch (aggregationResultCase_) { + case 5: + if (!getPointwiseMetricResult().equals(other.getPointwiseMetricResult())) return false; + break; + case 6: + if (!getPairwiseMetricResult().equals(other.getPairwiseMetricResult())) return false; + break; + case 7: + if (!getExactMatchMetricValue().equals(other.getExactMatchMetricValue())) return false; + break; + case 8: + if (!getBleuMetricValue().equals(other.getBleuMetricValue())) return false; + break; + case 9: + if (!getRougeMetricValue().equals(other.getRougeMetricValue())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + AGGREGATION_METRIC_FIELD_NUMBER; + hash = (53 * hash) + aggregationMetric_; + switch (aggregationResultCase_) { + case 5: + hash = (37 * hash) + POINTWISE_METRIC_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getPointwiseMetricResult().hashCode(); + break; + case 6: + hash = (37 * hash) + PAIRWISE_METRIC_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getPairwiseMetricResult().hashCode(); + break; + case 7: + hash = (37 * hash) + EXACT_MATCH_METRIC_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getExactMatchMetricValue().hashCode(); + break; + case 8: + hash = (37 * hash) + BLEU_METRIC_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getBleuMetricValue().hashCode(); + break; + case 9: + hash = (37 * hash) + ROUGE_METRIC_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getRougeMetricValue().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.AggregationResult parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AggregationResult parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AggregationResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AggregationResult parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AggregationResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AggregationResult parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AggregationResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AggregationResult parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AggregationResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AggregationResult parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AggregationResult parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AggregationResult parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.AggregationResult prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The aggregation result for a single metric.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.AggregationResult} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.AggregationResult) + com.google.cloud.aiplatform.v1beta1.AggregationResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AggregationResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AggregationResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.AggregationResult.class, + com.google.cloud.aiplatform.v1beta1.AggregationResult.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.AggregationResult.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (pointwiseMetricResultBuilder_ != null) { + pointwiseMetricResultBuilder_.clear(); + } + if (pairwiseMetricResultBuilder_ != null) { + pairwiseMetricResultBuilder_.clear(); + } + if (exactMatchMetricValueBuilder_ != null) { + exactMatchMetricValueBuilder_.clear(); + } + if (bleuMetricValueBuilder_ != null) { + bleuMetricValueBuilder_.clear(); + } + if (rougeMetricValueBuilder_ != null) { + rougeMetricValueBuilder_.clear(); + } + aggregationMetric_ = 0; + aggregationResultCase_ = 0; + aggregationResult_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AggregationResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AggregationResult getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.AggregationResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AggregationResult build() { + com.google.cloud.aiplatform.v1beta1.AggregationResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AggregationResult buildPartial() { + com.google.cloud.aiplatform.v1beta1.AggregationResult result = + new com.google.cloud.aiplatform.v1beta1.AggregationResult(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.AggregationResult result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.aggregationMetric_ = aggregationMetric_; + } + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1beta1.AggregationResult result) { + result.aggregationResultCase_ = aggregationResultCase_; + result.aggregationResult_ = this.aggregationResult_; + if (aggregationResultCase_ == 5 && pointwiseMetricResultBuilder_ != null) { + result.aggregationResult_ = pointwiseMetricResultBuilder_.build(); + } + if (aggregationResultCase_ == 6 && pairwiseMetricResultBuilder_ != null) { + result.aggregationResult_ = pairwiseMetricResultBuilder_.build(); + } + if (aggregationResultCase_ == 7 && exactMatchMetricValueBuilder_ != null) { + result.aggregationResult_ = exactMatchMetricValueBuilder_.build(); + } + if (aggregationResultCase_ == 8 && bleuMetricValueBuilder_ != null) { + result.aggregationResult_ = bleuMetricValueBuilder_.build(); + } + if (aggregationResultCase_ == 9 && rougeMetricValueBuilder_ != null) { + result.aggregationResult_ = rougeMetricValueBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.AggregationResult) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.AggregationResult) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.AggregationResult other) { + if (other == com.google.cloud.aiplatform.v1beta1.AggregationResult.getDefaultInstance()) + return this; + if (other.aggregationMetric_ != 0) { + setAggregationMetricValue(other.getAggregationMetricValue()); + } + switch (other.getAggregationResultCase()) { + case POINTWISE_METRIC_RESULT: + { + mergePointwiseMetricResult(other.getPointwiseMetricResult()); + break; + } + case PAIRWISE_METRIC_RESULT: + { + mergePairwiseMetricResult(other.getPairwiseMetricResult()); + break; + } + case EXACT_MATCH_METRIC_VALUE: + { + mergeExactMatchMetricValue(other.getExactMatchMetricValue()); + break; + } + case BLEU_METRIC_VALUE: + { + mergeBleuMetricValue(other.getBleuMetricValue()); + break; + } + case ROUGE_METRIC_VALUE: + { + mergeRougeMetricValue(other.getRougeMetricValue()); + break; + } + case AGGREGATIONRESULT_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 32: + { + aggregationMetric_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 32 + case 42: + { + input.readMessage( + getPointwiseMetricResultFieldBuilder().getBuilder(), extensionRegistry); + aggregationResultCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage( + getPairwiseMetricResultFieldBuilder().getBuilder(), extensionRegistry); + aggregationResultCase_ = 6; + break; + } // case 50 + case 58: + { + input.readMessage( + getExactMatchMetricValueFieldBuilder().getBuilder(), extensionRegistry); + aggregationResultCase_ = 7; + break; + } // case 58 + case 66: + { + input.readMessage(getBleuMetricValueFieldBuilder().getBuilder(), extensionRegistry); + aggregationResultCase_ = 8; + break; + } // case 66 + case 74: + { + input.readMessage( + getRougeMetricValueFieldBuilder().getBuilder(), extensionRegistry); + aggregationResultCase_ = 9; + break; + } // case 74 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int aggregationResultCase_ = 0; + private java.lang.Object aggregationResult_; + + public AggregationResultCase getAggregationResultCase() { + return AggregationResultCase.forNumber(aggregationResultCase_); + } + + public Builder clearAggregationResult() { + aggregationResultCase_ = 0; + aggregationResult_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult, + com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.Builder, + com.google.cloud.aiplatform.v1beta1.PointwiseMetricResultOrBuilder> + pointwiseMetricResultBuilder_; + + /** + * + * + *
+     * Result for pointwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PointwiseMetricResult pointwise_metric_result = 5; + * + * + * @return Whether the pointwiseMetricResult field is set. + */ + @java.lang.Override + public boolean hasPointwiseMetricResult() { + return aggregationResultCase_ == 5; + } + + /** + * + * + *
+     * Result for pointwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PointwiseMetricResult pointwise_metric_result = 5; + * + * + * @return The pointwiseMetricResult. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult getPointwiseMetricResult() { + if (pointwiseMetricResultBuilder_ == null) { + if (aggregationResultCase_ == 5) { + return (com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult) aggregationResult_; + } + return com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.getDefaultInstance(); + } else { + if (aggregationResultCase_ == 5) { + return pointwiseMetricResultBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Result for pointwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PointwiseMetricResult pointwise_metric_result = 5; + * + */ + public Builder setPointwiseMetricResult( + com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult value) { + if (pointwiseMetricResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + aggregationResult_ = value; + onChanged(); + } else { + pointwiseMetricResultBuilder_.setMessage(value); + } + aggregationResultCase_ = 5; + return this; + } + + /** + * + * + *
+     * Result for pointwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PointwiseMetricResult pointwise_metric_result = 5; + * + */ + public Builder setPointwiseMetricResult( + com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.Builder builderForValue) { + if (pointwiseMetricResultBuilder_ == null) { + aggregationResult_ = builderForValue.build(); + onChanged(); + } else { + pointwiseMetricResultBuilder_.setMessage(builderForValue.build()); + } + aggregationResultCase_ = 5; + return this; + } + + /** + * + * + *
+     * Result for pointwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PointwiseMetricResult pointwise_metric_result = 5; + * + */ + public Builder mergePointwiseMetricResult( + com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult value) { + if (pointwiseMetricResultBuilder_ == null) { + if (aggregationResultCase_ == 5 + && aggregationResult_ + != com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.getDefaultInstance()) { + aggregationResult_ = + com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.newBuilder( + (com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult) + aggregationResult_) + .mergeFrom(value) + .buildPartial(); + } else { + aggregationResult_ = value; + } + onChanged(); + } else { + if (aggregationResultCase_ == 5) { + pointwiseMetricResultBuilder_.mergeFrom(value); + } else { + pointwiseMetricResultBuilder_.setMessage(value); + } + } + aggregationResultCase_ = 5; + return this; + } + + /** + * + * + *
+     * Result for pointwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PointwiseMetricResult pointwise_metric_result = 5; + * + */ + public Builder clearPointwiseMetricResult() { + if (pointwiseMetricResultBuilder_ == null) { + if (aggregationResultCase_ == 5) { + aggregationResultCase_ = 0; + aggregationResult_ = null; + onChanged(); + } + } else { + if (aggregationResultCase_ == 5) { + aggregationResultCase_ = 0; + aggregationResult_ = null; + } + pointwiseMetricResultBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Result for pointwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PointwiseMetricResult pointwise_metric_result = 5; + * + */ + public com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.Builder + getPointwiseMetricResultBuilder() { + return getPointwiseMetricResultFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Result for pointwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PointwiseMetricResult pointwise_metric_result = 5; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PointwiseMetricResultOrBuilder + getPointwiseMetricResultOrBuilder() { + if ((aggregationResultCase_ == 5) && (pointwiseMetricResultBuilder_ != null)) { + return pointwiseMetricResultBuilder_.getMessageOrBuilder(); + } else { + if (aggregationResultCase_ == 5) { + return (com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult) aggregationResult_; + } + return com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Result for pointwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PointwiseMetricResult pointwise_metric_result = 5; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult, + com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.Builder, + com.google.cloud.aiplatform.v1beta1.PointwiseMetricResultOrBuilder> + getPointwiseMetricResultFieldBuilder() { + if (pointwiseMetricResultBuilder_ == null) { + if (!(aggregationResultCase_ == 5)) { + aggregationResult_ = + com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.getDefaultInstance(); + } + pointwiseMetricResultBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult, + com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.Builder, + com.google.cloud.aiplatform.v1beta1.PointwiseMetricResultOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult) aggregationResult_, + getParentForChildren(), + isClean()); + aggregationResult_ = null; + } + aggregationResultCase_ = 5; + onChanged(); + return pointwiseMetricResultBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult, + com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.Builder, + com.google.cloud.aiplatform.v1beta1.PairwiseMetricResultOrBuilder> + pairwiseMetricResultBuilder_; + + /** + * + * + *
+     * Result for pairwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PairwiseMetricResult pairwise_metric_result = 6; + * + * + * @return Whether the pairwiseMetricResult field is set. + */ + @java.lang.Override + public boolean hasPairwiseMetricResult() { + return aggregationResultCase_ == 6; + } + + /** + * + * + *
+     * Result for pairwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PairwiseMetricResult pairwise_metric_result = 6; + * + * + * @return The pairwiseMetricResult. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult getPairwiseMetricResult() { + if (pairwiseMetricResultBuilder_ == null) { + if (aggregationResultCase_ == 6) { + return (com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult) aggregationResult_; + } + return com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.getDefaultInstance(); + } else { + if (aggregationResultCase_ == 6) { + return pairwiseMetricResultBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Result for pairwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PairwiseMetricResult pairwise_metric_result = 6; + * + */ + public Builder setPairwiseMetricResult( + com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult value) { + if (pairwiseMetricResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + aggregationResult_ = value; + onChanged(); + } else { + pairwiseMetricResultBuilder_.setMessage(value); + } + aggregationResultCase_ = 6; + return this; + } + + /** + * + * + *
+     * Result for pairwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PairwiseMetricResult pairwise_metric_result = 6; + * + */ + public Builder setPairwiseMetricResult( + com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.Builder builderForValue) { + if (pairwiseMetricResultBuilder_ == null) { + aggregationResult_ = builderForValue.build(); + onChanged(); + } else { + pairwiseMetricResultBuilder_.setMessage(builderForValue.build()); + } + aggregationResultCase_ = 6; + return this; + } + + /** + * + * + *
+     * Result for pairwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PairwiseMetricResult pairwise_metric_result = 6; + * + */ + public Builder mergePairwiseMetricResult( + com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult value) { + if (pairwiseMetricResultBuilder_ == null) { + if (aggregationResultCase_ == 6 + && aggregationResult_ + != com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.getDefaultInstance()) { + aggregationResult_ = + com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.newBuilder( + (com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult) aggregationResult_) + .mergeFrom(value) + .buildPartial(); + } else { + aggregationResult_ = value; + } + onChanged(); + } else { + if (aggregationResultCase_ == 6) { + pairwiseMetricResultBuilder_.mergeFrom(value); + } else { + pairwiseMetricResultBuilder_.setMessage(value); + } + } + aggregationResultCase_ = 6; + return this; + } + + /** + * + * + *
+     * Result for pairwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PairwiseMetricResult pairwise_metric_result = 6; + * + */ + public Builder clearPairwiseMetricResult() { + if (pairwiseMetricResultBuilder_ == null) { + if (aggregationResultCase_ == 6) { + aggregationResultCase_ = 0; + aggregationResult_ = null; + onChanged(); + } + } else { + if (aggregationResultCase_ == 6) { + aggregationResultCase_ = 0; + aggregationResult_ = null; + } + pairwiseMetricResultBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Result for pairwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PairwiseMetricResult pairwise_metric_result = 6; + * + */ + public com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.Builder + getPairwiseMetricResultBuilder() { + return getPairwiseMetricResultFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Result for pairwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PairwiseMetricResult pairwise_metric_result = 6; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PairwiseMetricResultOrBuilder + getPairwiseMetricResultOrBuilder() { + if ((aggregationResultCase_ == 6) && (pairwiseMetricResultBuilder_ != null)) { + return pairwiseMetricResultBuilder_.getMessageOrBuilder(); + } else { + if (aggregationResultCase_ == 6) { + return (com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult) aggregationResult_; + } + return com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Result for pairwise metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PairwiseMetricResult pairwise_metric_result = 6; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult, + com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.Builder, + com.google.cloud.aiplatform.v1beta1.PairwiseMetricResultOrBuilder> + getPairwiseMetricResultFieldBuilder() { + if (pairwiseMetricResultBuilder_ == null) { + if (!(aggregationResultCase_ == 6)) { + aggregationResult_ = + com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.getDefaultInstance(); + } + pairwiseMetricResultBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult, + com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.Builder, + com.google.cloud.aiplatform.v1beta1.PairwiseMetricResultOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult) aggregationResult_, + getParentForChildren(), + isClean()); + aggregationResult_ = null; + } + aggregationResultCase_ = 6; + onChanged(); + return pairwiseMetricResultBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ExactMatchMetricValue, + com.google.cloud.aiplatform.v1beta1.ExactMatchMetricValue.Builder, + com.google.cloud.aiplatform.v1beta1.ExactMatchMetricValueOrBuilder> + exactMatchMetricValueBuilder_; + + /** + * + * + *
+     * Results for exact match metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ExactMatchMetricValue exact_match_metric_value = 7; + * + * + * @return Whether the exactMatchMetricValue field is set. + */ + @java.lang.Override + public boolean hasExactMatchMetricValue() { + return aggregationResultCase_ == 7; + } + + /** + * + * + *
+     * Results for exact match metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ExactMatchMetricValue exact_match_metric_value = 7; + * + * + * @return The exactMatchMetricValue. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ExactMatchMetricValue getExactMatchMetricValue() { + if (exactMatchMetricValueBuilder_ == null) { + if (aggregationResultCase_ == 7) { + return (com.google.cloud.aiplatform.v1beta1.ExactMatchMetricValue) aggregationResult_; + } + return com.google.cloud.aiplatform.v1beta1.ExactMatchMetricValue.getDefaultInstance(); + } else { + if (aggregationResultCase_ == 7) { + return exactMatchMetricValueBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.ExactMatchMetricValue.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Results for exact match metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ExactMatchMetricValue exact_match_metric_value = 7; + * + */ + public Builder setExactMatchMetricValue( + com.google.cloud.aiplatform.v1beta1.ExactMatchMetricValue value) { + if (exactMatchMetricValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + aggregationResult_ = value; + onChanged(); + } else { + exactMatchMetricValueBuilder_.setMessage(value); + } + aggregationResultCase_ = 7; + return this; + } + + /** + * + * + *
+     * Results for exact match metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ExactMatchMetricValue exact_match_metric_value = 7; + * + */ + public Builder setExactMatchMetricValue( + com.google.cloud.aiplatform.v1beta1.ExactMatchMetricValue.Builder builderForValue) { + if (exactMatchMetricValueBuilder_ == null) { + aggregationResult_ = builderForValue.build(); + onChanged(); + } else { + exactMatchMetricValueBuilder_.setMessage(builderForValue.build()); + } + aggregationResultCase_ = 7; + return this; + } + + /** + * + * + *
+     * Results for exact match metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ExactMatchMetricValue exact_match_metric_value = 7; + * + */ + public Builder mergeExactMatchMetricValue( + com.google.cloud.aiplatform.v1beta1.ExactMatchMetricValue value) { + if (exactMatchMetricValueBuilder_ == null) { + if (aggregationResultCase_ == 7 + && aggregationResult_ + != com.google.cloud.aiplatform.v1beta1.ExactMatchMetricValue.getDefaultInstance()) { + aggregationResult_ = + com.google.cloud.aiplatform.v1beta1.ExactMatchMetricValue.newBuilder( + (com.google.cloud.aiplatform.v1beta1.ExactMatchMetricValue) + aggregationResult_) + .mergeFrom(value) + .buildPartial(); + } else { + aggregationResult_ = value; + } + onChanged(); + } else { + if (aggregationResultCase_ == 7) { + exactMatchMetricValueBuilder_.mergeFrom(value); + } else { + exactMatchMetricValueBuilder_.setMessage(value); + } + } + aggregationResultCase_ = 7; + return this; + } + + /** + * + * + *
+     * Results for exact match metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ExactMatchMetricValue exact_match_metric_value = 7; + * + */ + public Builder clearExactMatchMetricValue() { + if (exactMatchMetricValueBuilder_ == null) { + if (aggregationResultCase_ == 7) { + aggregationResultCase_ = 0; + aggregationResult_ = null; + onChanged(); + } + } else { + if (aggregationResultCase_ == 7) { + aggregationResultCase_ = 0; + aggregationResult_ = null; + } + exactMatchMetricValueBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Results for exact match metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ExactMatchMetricValue exact_match_metric_value = 7; + * + */ + public com.google.cloud.aiplatform.v1beta1.ExactMatchMetricValue.Builder + getExactMatchMetricValueBuilder() { + return getExactMatchMetricValueFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Results for exact match metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ExactMatchMetricValue exact_match_metric_value = 7; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ExactMatchMetricValueOrBuilder + getExactMatchMetricValueOrBuilder() { + if ((aggregationResultCase_ == 7) && (exactMatchMetricValueBuilder_ != null)) { + return exactMatchMetricValueBuilder_.getMessageOrBuilder(); + } else { + if (aggregationResultCase_ == 7) { + return (com.google.cloud.aiplatform.v1beta1.ExactMatchMetricValue) aggregationResult_; + } + return com.google.cloud.aiplatform.v1beta1.ExactMatchMetricValue.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Results for exact match metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ExactMatchMetricValue exact_match_metric_value = 7; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ExactMatchMetricValue, + com.google.cloud.aiplatform.v1beta1.ExactMatchMetricValue.Builder, + com.google.cloud.aiplatform.v1beta1.ExactMatchMetricValueOrBuilder> + getExactMatchMetricValueFieldBuilder() { + if (exactMatchMetricValueBuilder_ == null) { + if (!(aggregationResultCase_ == 7)) { + aggregationResult_ = + com.google.cloud.aiplatform.v1beta1.ExactMatchMetricValue.getDefaultInstance(); + } + exactMatchMetricValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ExactMatchMetricValue, + com.google.cloud.aiplatform.v1beta1.ExactMatchMetricValue.Builder, + com.google.cloud.aiplatform.v1beta1.ExactMatchMetricValueOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.ExactMatchMetricValue) aggregationResult_, + getParentForChildren(), + isClean()); + aggregationResult_ = null; + } + aggregationResultCase_ = 7; + onChanged(); + return exactMatchMetricValueBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.BleuMetricValue, + com.google.cloud.aiplatform.v1beta1.BleuMetricValue.Builder, + com.google.cloud.aiplatform.v1beta1.BleuMetricValueOrBuilder> + bleuMetricValueBuilder_; + + /** + * + * + *
+     * Results for bleu metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.BleuMetricValue bleu_metric_value = 8; + * + * @return Whether the bleuMetricValue field is set. + */ + @java.lang.Override + public boolean hasBleuMetricValue() { + return aggregationResultCase_ == 8; + } + + /** + * + * + *
+     * Results for bleu metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.BleuMetricValue bleu_metric_value = 8; + * + * @return The bleuMetricValue. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BleuMetricValue getBleuMetricValue() { + if (bleuMetricValueBuilder_ == null) { + if (aggregationResultCase_ == 8) { + return (com.google.cloud.aiplatform.v1beta1.BleuMetricValue) aggregationResult_; + } + return com.google.cloud.aiplatform.v1beta1.BleuMetricValue.getDefaultInstance(); + } else { + if (aggregationResultCase_ == 8) { + return bleuMetricValueBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.BleuMetricValue.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Results for bleu metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.BleuMetricValue bleu_metric_value = 8; + */ + public Builder setBleuMetricValue(com.google.cloud.aiplatform.v1beta1.BleuMetricValue value) { + if (bleuMetricValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + aggregationResult_ = value; + onChanged(); + } else { + bleuMetricValueBuilder_.setMessage(value); + } + aggregationResultCase_ = 8; + return this; + } + + /** + * + * + *
+     * Results for bleu metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.BleuMetricValue bleu_metric_value = 8; + */ + public Builder setBleuMetricValue( + com.google.cloud.aiplatform.v1beta1.BleuMetricValue.Builder builderForValue) { + if (bleuMetricValueBuilder_ == null) { + aggregationResult_ = builderForValue.build(); + onChanged(); + } else { + bleuMetricValueBuilder_.setMessage(builderForValue.build()); + } + aggregationResultCase_ = 8; + return this; + } + + /** + * + * + *
+     * Results for bleu metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.BleuMetricValue bleu_metric_value = 8; + */ + public Builder mergeBleuMetricValue(com.google.cloud.aiplatform.v1beta1.BleuMetricValue value) { + if (bleuMetricValueBuilder_ == null) { + if (aggregationResultCase_ == 8 + && aggregationResult_ + != com.google.cloud.aiplatform.v1beta1.BleuMetricValue.getDefaultInstance()) { + aggregationResult_ = + com.google.cloud.aiplatform.v1beta1.BleuMetricValue.newBuilder( + (com.google.cloud.aiplatform.v1beta1.BleuMetricValue) aggregationResult_) + .mergeFrom(value) + .buildPartial(); + } else { + aggregationResult_ = value; + } + onChanged(); + } else { + if (aggregationResultCase_ == 8) { + bleuMetricValueBuilder_.mergeFrom(value); + } else { + bleuMetricValueBuilder_.setMessage(value); + } + } + aggregationResultCase_ = 8; + return this; + } + + /** + * + * + *
+     * Results for bleu metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.BleuMetricValue bleu_metric_value = 8; + */ + public Builder clearBleuMetricValue() { + if (bleuMetricValueBuilder_ == null) { + if (aggregationResultCase_ == 8) { + aggregationResultCase_ = 0; + aggregationResult_ = null; + onChanged(); + } + } else { + if (aggregationResultCase_ == 8) { + aggregationResultCase_ = 0; + aggregationResult_ = null; + } + bleuMetricValueBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Results for bleu metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.BleuMetricValue bleu_metric_value = 8; + */ + public com.google.cloud.aiplatform.v1beta1.BleuMetricValue.Builder getBleuMetricValueBuilder() { + return getBleuMetricValueFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Results for bleu metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.BleuMetricValue bleu_metric_value = 8; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BleuMetricValueOrBuilder + getBleuMetricValueOrBuilder() { + if ((aggregationResultCase_ == 8) && (bleuMetricValueBuilder_ != null)) { + return bleuMetricValueBuilder_.getMessageOrBuilder(); + } else { + if (aggregationResultCase_ == 8) { + return (com.google.cloud.aiplatform.v1beta1.BleuMetricValue) aggregationResult_; + } + return com.google.cloud.aiplatform.v1beta1.BleuMetricValue.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Results for bleu metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.BleuMetricValue bleu_metric_value = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.BleuMetricValue, + com.google.cloud.aiplatform.v1beta1.BleuMetricValue.Builder, + com.google.cloud.aiplatform.v1beta1.BleuMetricValueOrBuilder> + getBleuMetricValueFieldBuilder() { + if (bleuMetricValueBuilder_ == null) { + if (!(aggregationResultCase_ == 8)) { + aggregationResult_ = + com.google.cloud.aiplatform.v1beta1.BleuMetricValue.getDefaultInstance(); + } + bleuMetricValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.BleuMetricValue, + com.google.cloud.aiplatform.v1beta1.BleuMetricValue.Builder, + com.google.cloud.aiplatform.v1beta1.BleuMetricValueOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.BleuMetricValue) aggregationResult_, + getParentForChildren(), + isClean()); + aggregationResult_ = null; + } + aggregationResultCase_ = 8; + onChanged(); + return bleuMetricValueBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RougeMetricValue, + com.google.cloud.aiplatform.v1beta1.RougeMetricValue.Builder, + com.google.cloud.aiplatform.v1beta1.RougeMetricValueOrBuilder> + rougeMetricValueBuilder_; + + /** + * + * + *
+     * Results for rouge metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RougeMetricValue rouge_metric_value = 9; + * + * @return Whether the rougeMetricValue field is set. + */ + @java.lang.Override + public boolean hasRougeMetricValue() { + return aggregationResultCase_ == 9; + } + + /** + * + * + *
+     * Results for rouge metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RougeMetricValue rouge_metric_value = 9; + * + * @return The rougeMetricValue. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RougeMetricValue getRougeMetricValue() { + if (rougeMetricValueBuilder_ == null) { + if (aggregationResultCase_ == 9) { + return (com.google.cloud.aiplatform.v1beta1.RougeMetricValue) aggregationResult_; + } + return com.google.cloud.aiplatform.v1beta1.RougeMetricValue.getDefaultInstance(); + } else { + if (aggregationResultCase_ == 9) { + return rougeMetricValueBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.RougeMetricValue.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Results for rouge metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RougeMetricValue rouge_metric_value = 9; + */ + public Builder setRougeMetricValue(com.google.cloud.aiplatform.v1beta1.RougeMetricValue value) { + if (rougeMetricValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + aggregationResult_ = value; + onChanged(); + } else { + rougeMetricValueBuilder_.setMessage(value); + } + aggregationResultCase_ = 9; + return this; + } + + /** + * + * + *
+     * Results for rouge metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RougeMetricValue rouge_metric_value = 9; + */ + public Builder setRougeMetricValue( + com.google.cloud.aiplatform.v1beta1.RougeMetricValue.Builder builderForValue) { + if (rougeMetricValueBuilder_ == null) { + aggregationResult_ = builderForValue.build(); + onChanged(); + } else { + rougeMetricValueBuilder_.setMessage(builderForValue.build()); + } + aggregationResultCase_ = 9; + return this; + } + + /** + * + * + *
+     * Results for rouge metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RougeMetricValue rouge_metric_value = 9; + */ + public Builder mergeRougeMetricValue( + com.google.cloud.aiplatform.v1beta1.RougeMetricValue value) { + if (rougeMetricValueBuilder_ == null) { + if (aggregationResultCase_ == 9 + && aggregationResult_ + != com.google.cloud.aiplatform.v1beta1.RougeMetricValue.getDefaultInstance()) { + aggregationResult_ = + com.google.cloud.aiplatform.v1beta1.RougeMetricValue.newBuilder( + (com.google.cloud.aiplatform.v1beta1.RougeMetricValue) aggregationResult_) + .mergeFrom(value) + .buildPartial(); + } else { + aggregationResult_ = value; + } + onChanged(); + } else { + if (aggregationResultCase_ == 9) { + rougeMetricValueBuilder_.mergeFrom(value); + } else { + rougeMetricValueBuilder_.setMessage(value); + } + } + aggregationResultCase_ = 9; + return this; + } + + /** + * + * + *
+     * Results for rouge metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RougeMetricValue rouge_metric_value = 9; + */ + public Builder clearRougeMetricValue() { + if (rougeMetricValueBuilder_ == null) { + if (aggregationResultCase_ == 9) { + aggregationResultCase_ = 0; + aggregationResult_ = null; + onChanged(); + } + } else { + if (aggregationResultCase_ == 9) { + aggregationResultCase_ = 0; + aggregationResult_ = null; + } + rougeMetricValueBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Results for rouge metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RougeMetricValue rouge_metric_value = 9; + */ + public com.google.cloud.aiplatform.v1beta1.RougeMetricValue.Builder + getRougeMetricValueBuilder() { + return getRougeMetricValueFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Results for rouge metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RougeMetricValue rouge_metric_value = 9; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RougeMetricValueOrBuilder + getRougeMetricValueOrBuilder() { + if ((aggregationResultCase_ == 9) && (rougeMetricValueBuilder_ != null)) { + return rougeMetricValueBuilder_.getMessageOrBuilder(); + } else { + if (aggregationResultCase_ == 9) { + return (com.google.cloud.aiplatform.v1beta1.RougeMetricValue) aggregationResult_; + } + return com.google.cloud.aiplatform.v1beta1.RougeMetricValue.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Results for rouge metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RougeMetricValue rouge_metric_value = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RougeMetricValue, + com.google.cloud.aiplatform.v1beta1.RougeMetricValue.Builder, + com.google.cloud.aiplatform.v1beta1.RougeMetricValueOrBuilder> + getRougeMetricValueFieldBuilder() { + if (rougeMetricValueBuilder_ == null) { + if (!(aggregationResultCase_ == 9)) { + aggregationResult_ = + com.google.cloud.aiplatform.v1beta1.RougeMetricValue.getDefaultInstance(); + } + rougeMetricValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RougeMetricValue, + com.google.cloud.aiplatform.v1beta1.RougeMetricValue.Builder, + com.google.cloud.aiplatform.v1beta1.RougeMetricValueOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.RougeMetricValue) aggregationResult_, + getParentForChildren(), + isClean()); + aggregationResult_ = null; + } + aggregationResultCase_ = 9; + onChanged(); + return rougeMetricValueBuilder_; + } + + private int aggregationMetric_ = 0; + + /** + * + * + *
+     * Aggregation metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Metric.AggregationMetric aggregation_metric = 4; + * + * + * @return The enum numeric value on the wire for aggregationMetric. + */ + @java.lang.Override + public int getAggregationMetricValue() { + return aggregationMetric_; + } + + /** + * + * + *
+     * Aggregation metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Metric.AggregationMetric aggregation_metric = 4; + * + * + * @param value The enum numeric value on the wire for aggregationMetric to set. + * @return This builder for chaining. + */ + public Builder setAggregationMetricValue(int value) { + aggregationMetric_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Aggregation metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Metric.AggregationMetric aggregation_metric = 4; + * + * + * @return The aggregationMetric. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Metric.AggregationMetric getAggregationMetric() { + com.google.cloud.aiplatform.v1beta1.Metric.AggregationMetric result = + com.google.cloud.aiplatform.v1beta1.Metric.AggregationMetric.forNumber( + aggregationMetric_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.Metric.AggregationMetric.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Aggregation metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Metric.AggregationMetric aggregation_metric = 4; + * + * + * @param value The aggregationMetric to set. + * @return This builder for chaining. + */ + public Builder setAggregationMetric( + com.google.cloud.aiplatform.v1beta1.Metric.AggregationMetric value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + aggregationMetric_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Aggregation metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Metric.AggregationMetric aggregation_metric = 4; + * + * + * @return This builder for chaining. + */ + public Builder clearAggregationMetric() { + bitField0_ = (bitField0_ & ~0x00000020); + aggregationMetric_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.AggregationResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.AggregationResult) + private static final com.google.cloud.aiplatform.v1beta1.AggregationResult DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.AggregationResult(); + } + + public static com.google.cloud.aiplatform.v1beta1.AggregationResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AggregationResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AggregationResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AggregationResultOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AggregationResultOrBuilder.java new file mode 100644 index 000000000000..e3a854c99e6e --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AggregationResultOrBuilder.java @@ -0,0 +1,249 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.aiplatform.v1beta1; + +public interface AggregationResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.AggregationResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Result for pointwise metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.PointwiseMetricResult pointwise_metric_result = 5; + * + * + * @return Whether the pointwiseMetricResult field is set. + */ + boolean hasPointwiseMetricResult(); + + /** + * + * + *
+   * Result for pointwise metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.PointwiseMetricResult pointwise_metric_result = 5; + * + * + * @return The pointwiseMetricResult. + */ + com.google.cloud.aiplatform.v1beta1.PointwiseMetricResult getPointwiseMetricResult(); + + /** + * + * + *
+   * Result for pointwise metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.PointwiseMetricResult pointwise_metric_result = 5; + * + */ + com.google.cloud.aiplatform.v1beta1.PointwiseMetricResultOrBuilder + getPointwiseMetricResultOrBuilder(); + + /** + * + * + *
+   * Result for pairwise metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.PairwiseMetricResult pairwise_metric_result = 6; + * + * @return Whether the pairwiseMetricResult field is set. + */ + boolean hasPairwiseMetricResult(); + + /** + * + * + *
+   * Result for pairwise metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.PairwiseMetricResult pairwise_metric_result = 6; + * + * @return The pairwiseMetricResult. + */ + com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult getPairwiseMetricResult(); + + /** + * + * + *
+   * Result for pairwise metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.PairwiseMetricResult pairwise_metric_result = 6; + */ + com.google.cloud.aiplatform.v1beta1.PairwiseMetricResultOrBuilder + getPairwiseMetricResultOrBuilder(); + + /** + * + * + *
+   * Results for exact match metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.ExactMatchMetricValue exact_match_metric_value = 7; + * + * + * @return Whether the exactMatchMetricValue field is set. + */ + boolean hasExactMatchMetricValue(); + + /** + * + * + *
+   * Results for exact match metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.ExactMatchMetricValue exact_match_metric_value = 7; + * + * + * @return The exactMatchMetricValue. + */ + com.google.cloud.aiplatform.v1beta1.ExactMatchMetricValue getExactMatchMetricValue(); + + /** + * + * + *
+   * Results for exact match metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.ExactMatchMetricValue exact_match_metric_value = 7; + * + */ + com.google.cloud.aiplatform.v1beta1.ExactMatchMetricValueOrBuilder + getExactMatchMetricValueOrBuilder(); + + /** + * + * + *
+   * Results for bleu metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.BleuMetricValue bleu_metric_value = 8; + * + * @return Whether the bleuMetricValue field is set. + */ + boolean hasBleuMetricValue(); + + /** + * + * + *
+   * Results for bleu metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.BleuMetricValue bleu_metric_value = 8; + * + * @return The bleuMetricValue. + */ + com.google.cloud.aiplatform.v1beta1.BleuMetricValue getBleuMetricValue(); + + /** + * + * + *
+   * Results for bleu metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.BleuMetricValue bleu_metric_value = 8; + */ + com.google.cloud.aiplatform.v1beta1.BleuMetricValueOrBuilder getBleuMetricValueOrBuilder(); + + /** + * + * + *
+   * Results for rouge metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.RougeMetricValue rouge_metric_value = 9; + * + * @return Whether the rougeMetricValue field is set. + */ + boolean hasRougeMetricValue(); + + /** + * + * + *
+   * Results for rouge metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.RougeMetricValue rouge_metric_value = 9; + * + * @return The rougeMetricValue. + */ + com.google.cloud.aiplatform.v1beta1.RougeMetricValue getRougeMetricValue(); + + /** + * + * + *
+   * Results for rouge metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.RougeMetricValue rouge_metric_value = 9; + */ + com.google.cloud.aiplatform.v1beta1.RougeMetricValueOrBuilder getRougeMetricValueOrBuilder(); + + /** + * + * + *
+   * Aggregation metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Metric.AggregationMetric aggregation_metric = 4; + * + * @return The enum numeric value on the wire for aggregationMetric. + */ + int getAggregationMetricValue(); + + /** + * + * + *
+   * Aggregation metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Metric.AggregationMetric aggregation_metric = 4; + * + * @return The aggregationMetric. + */ + com.google.cloud.aiplatform.v1beta1.Metric.AggregationMetric getAggregationMetric(); + + com.google.cloud.aiplatform.v1beta1.AggregationResult.AggregationResultCase + getAggregationResultCase(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutomaticResources.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutomaticResources.java index 091ebca24614..81db08549445 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutomaticResources.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutomaticResources.java @@ -71,9 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Immutable. The minimum number of replicas this DeployedModel will be always
-   * deployed on. If traffic against it increases, it may dynamically be
-   * deployed onto more replicas up to
+   * Immutable. The minimum number of replicas that will be always deployed on.
+   * If traffic against it increases, it may dynamically be deployed onto more
+   * replicas up to
    * [max_replica_count][google.cloud.aiplatform.v1beta1.AutomaticResources.max_replica_count],
    * and as traffic decreases, some of these extra replicas may be freed. If the
    * requested value is too large, the deployment will error.
@@ -95,15 +95,14 @@ public int getMinReplicaCount() {
    *
    *
    * 
-   * Immutable. The maximum number of replicas this DeployedModel may be
-   * deployed on when the traffic against it increases. If the requested value
-   * is too large, the deployment will error, but if deployment succeeds then
-   * the ability to scale the model to that many replicas is guaranteed (barring
-   * service outages). If traffic against the DeployedModel increases beyond
-   * what its replicas at maximum may handle, a portion of the traffic will be
-   * dropped. If this value is not provided, a no upper bound for scaling under
-   * heavy traffic will be assume, though Vertex AI may be unable to scale
-   * beyond certain replica number.
+   * Immutable. The maximum number of replicas that may be deployed on when the
+   * traffic against it increases. If the requested value is too large, the
+   * deployment will error, but if deployment succeeds then the ability to scale
+   * to that many replicas is guaranteed (barring service outages). If traffic
+   * increases beyond what its replicas at maximum may handle, a portion of the
+   * traffic will be dropped. If this value is not provided, a no upper bound
+   * for scaling under heavy traffic will be assume, though Vertex AI may be
+   * unable to scale beyond certain replica number.
    * 
* * int32 max_replica_count = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -487,9 +486,9 @@ public Builder mergeFrom( * * *
-     * Immutable. The minimum number of replicas this DeployedModel will be always
-     * deployed on. If traffic against it increases, it may dynamically be
-     * deployed onto more replicas up to
+     * Immutable. The minimum number of replicas that will be always deployed on.
+     * If traffic against it increases, it may dynamically be deployed onto more
+     * replicas up to
      * [max_replica_count][google.cloud.aiplatform.v1beta1.AutomaticResources.max_replica_count],
      * and as traffic decreases, some of these extra replicas may be freed. If the
      * requested value is too large, the deployment will error.
@@ -508,9 +507,9 @@ public int getMinReplicaCount() {
      *
      *
      * 
-     * Immutable. The minimum number of replicas this DeployedModel will be always
-     * deployed on. If traffic against it increases, it may dynamically be
-     * deployed onto more replicas up to
+     * Immutable. The minimum number of replicas that will be always deployed on.
+     * If traffic against it increases, it may dynamically be deployed onto more
+     * replicas up to
      * [max_replica_count][google.cloud.aiplatform.v1beta1.AutomaticResources.max_replica_count],
      * and as traffic decreases, some of these extra replicas may be freed. If the
      * requested value is too large, the deployment will error.
@@ -533,9 +532,9 @@ public Builder setMinReplicaCount(int value) {
      *
      *
      * 
-     * Immutable. The minimum number of replicas this DeployedModel will be always
-     * deployed on. If traffic against it increases, it may dynamically be
-     * deployed onto more replicas up to
+     * Immutable. The minimum number of replicas that will be always deployed on.
+     * If traffic against it increases, it may dynamically be deployed onto more
+     * replicas up to
      * [max_replica_count][google.cloud.aiplatform.v1beta1.AutomaticResources.max_replica_count],
      * and as traffic decreases, some of these extra replicas may be freed. If the
      * requested value is too large, the deployment will error.
@@ -558,15 +557,14 @@ public Builder clearMinReplicaCount() {
      *
      *
      * 
-     * Immutable. The maximum number of replicas this DeployedModel may be
-     * deployed on when the traffic against it increases. If the requested value
-     * is too large, the deployment will error, but if deployment succeeds then
-     * the ability to scale the model to that many replicas is guaranteed (barring
-     * service outages). If traffic against the DeployedModel increases beyond
-     * what its replicas at maximum may handle, a portion of the traffic will be
-     * dropped. If this value is not provided, a no upper bound for scaling under
-     * heavy traffic will be assume, though Vertex AI may be unable to scale
-     * beyond certain replica number.
+     * Immutable. The maximum number of replicas that may be deployed on when the
+     * traffic against it increases. If the requested value is too large, the
+     * deployment will error, but if deployment succeeds then the ability to scale
+     * to that many replicas is guaranteed (barring service outages). If traffic
+     * increases beyond what its replicas at maximum may handle, a portion of the
+     * traffic will be dropped. If this value is not provided, a no upper bound
+     * for scaling under heavy traffic will be assume, though Vertex AI may be
+     * unable to scale beyond certain replica number.
      * 
* * int32 max_replica_count = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -582,15 +580,14 @@ public int getMaxReplicaCount() { * * *
-     * Immutable. The maximum number of replicas this DeployedModel may be
-     * deployed on when the traffic against it increases. If the requested value
-     * is too large, the deployment will error, but if deployment succeeds then
-     * the ability to scale the model to that many replicas is guaranteed (barring
-     * service outages). If traffic against the DeployedModel increases beyond
-     * what its replicas at maximum may handle, a portion of the traffic will be
-     * dropped. If this value is not provided, a no upper bound for scaling under
-     * heavy traffic will be assume, though Vertex AI may be unable to scale
-     * beyond certain replica number.
+     * Immutable. The maximum number of replicas that may be deployed on when the
+     * traffic against it increases. If the requested value is too large, the
+     * deployment will error, but if deployment succeeds then the ability to scale
+     * to that many replicas is guaranteed (barring service outages). If traffic
+     * increases beyond what its replicas at maximum may handle, a portion of the
+     * traffic will be dropped. If this value is not provided, a no upper bound
+     * for scaling under heavy traffic will be assume, though Vertex AI may be
+     * unable to scale beyond certain replica number.
      * 
* * int32 max_replica_count = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -610,15 +607,14 @@ public Builder setMaxReplicaCount(int value) { * * *
-     * Immutable. The maximum number of replicas this DeployedModel may be
-     * deployed on when the traffic against it increases. If the requested value
-     * is too large, the deployment will error, but if deployment succeeds then
-     * the ability to scale the model to that many replicas is guaranteed (barring
-     * service outages). If traffic against the DeployedModel increases beyond
-     * what its replicas at maximum may handle, a portion of the traffic will be
-     * dropped. If this value is not provided, a no upper bound for scaling under
-     * heavy traffic will be assume, though Vertex AI may be unable to scale
-     * beyond certain replica number.
+     * Immutable. The maximum number of replicas that may be deployed on when the
+     * traffic against it increases. If the requested value is too large, the
+     * deployment will error, but if deployment succeeds then the ability to scale
+     * to that many replicas is guaranteed (barring service outages). If traffic
+     * increases beyond what its replicas at maximum may handle, a portion of the
+     * traffic will be dropped. If this value is not provided, a no upper bound
+     * for scaling under heavy traffic will be assume, though Vertex AI may be
+     * unable to scale beyond certain replica number.
      * 
* * int32 max_replica_count = 2 [(.google.api.field_behavior) = IMMUTABLE]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutomaticResourcesOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutomaticResourcesOrBuilder.java index 697da190ef12..5efe52d2628c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutomaticResourcesOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutomaticResourcesOrBuilder.java @@ -28,9 +28,9 @@ public interface AutomaticResourcesOrBuilder * * *
-   * Immutable. The minimum number of replicas this DeployedModel will be always
-   * deployed on. If traffic against it increases, it may dynamically be
-   * deployed onto more replicas up to
+   * Immutable. The minimum number of replicas that will be always deployed on.
+   * If traffic against it increases, it may dynamically be deployed onto more
+   * replicas up to
    * [max_replica_count][google.cloud.aiplatform.v1beta1.AutomaticResources.max_replica_count],
    * and as traffic decreases, some of these extra replicas may be freed. If the
    * requested value is too large, the deployment will error.
@@ -46,15 +46,14 @@ public interface AutomaticResourcesOrBuilder
    *
    *
    * 
-   * Immutable. The maximum number of replicas this DeployedModel may be
-   * deployed on when the traffic against it increases. If the requested value
-   * is too large, the deployment will error, but if deployment succeeds then
-   * the ability to scale the model to that many replicas is guaranteed (barring
-   * service outages). If traffic against the DeployedModel increases beyond
-   * what its replicas at maximum may handle, a portion of the traffic will be
-   * dropped. If this value is not provided, a no upper bound for scaling under
-   * heavy traffic will be assume, though Vertex AI may be unable to scale
-   * beyond certain replica number.
+   * Immutable. The maximum number of replicas that may be deployed on when the
+   * traffic against it increases. If the requested value is too large, the
+   * deployment will error, but if deployment succeeds then the ability to scale
+   * to that many replicas is guaranteed (barring service outages). If traffic
+   * increases beyond what its replicas at maximum may handle, a portion of the
+   * traffic will be dropped. If this value is not provided, a no upper bound
+   * for scaling under heavy traffic will be assume, though Vertex AI may be
+   * unable to scale beyond certain replica number.
    * 
* * int32 max_replica_count = 2 [(.google.api.field_behavior) = IMMUTABLE]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutoraterConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutoraterConfig.java index 5cb8e4aec4ce..8f886665c801 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutoraterConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutoraterConfig.java @@ -112,9 +112,9 @@ public int getSamplingCount() { * * *
-   * Optional. Whether to flip the candidate and baseline responses.
-   * This is only applicable to the pairwise metric. If enabled, also provide
-   * PairwiseMetricSpec.candidate_response_field_name and
+   * Optional. Default is true. Whether to flip the candidate and baseline
+   * responses. This is only applicable to the pairwise metric. If enabled, also
+   * provide PairwiseMetricSpec.candidate_response_field_name and
    * PairwiseMetricSpec.baseline_response_field_name. When rendering
    * PairwiseMetricSpec.metric_prompt_template, the candidate and baseline
    * fields will be flipped for half of the samples to reduce bias.
@@ -133,9 +133,9 @@ public boolean hasFlipEnabled() {
    *
    *
    * 
-   * Optional. Whether to flip the candidate and baseline responses.
-   * This is only applicable to the pairwise metric. If enabled, also provide
-   * PairwiseMetricSpec.candidate_response_field_name and
+   * Optional. Default is true. Whether to flip the candidate and baseline
+   * responses. This is only applicable to the pairwise metric. If enabled, also
+   * provide PairwiseMetricSpec.candidate_response_field_name and
    * PairwiseMetricSpec.baseline_response_field_name. When rendering
    * PairwiseMetricSpec.metric_prompt_template, the candidate and baseline
    * fields will be flipped for half of the samples to reduce bias.
@@ -705,9 +705,9 @@ public Builder clearSamplingCount() {
      *
      *
      * 
-     * Optional. Whether to flip the candidate and baseline responses.
-     * This is only applicable to the pairwise metric. If enabled, also provide
-     * PairwiseMetricSpec.candidate_response_field_name and
+     * Optional. Default is true. Whether to flip the candidate and baseline
+     * responses. This is only applicable to the pairwise metric. If enabled, also
+     * provide PairwiseMetricSpec.candidate_response_field_name and
      * PairwiseMetricSpec.baseline_response_field_name. When rendering
      * PairwiseMetricSpec.metric_prompt_template, the candidate and baseline
      * fields will be flipped for half of the samples to reduce bias.
@@ -726,9 +726,9 @@ public boolean hasFlipEnabled() {
      *
      *
      * 
-     * Optional. Whether to flip the candidate and baseline responses.
-     * This is only applicable to the pairwise metric. If enabled, also provide
-     * PairwiseMetricSpec.candidate_response_field_name and
+     * Optional. Default is true. Whether to flip the candidate and baseline
+     * responses. This is only applicable to the pairwise metric. If enabled, also
+     * provide PairwiseMetricSpec.candidate_response_field_name and
      * PairwiseMetricSpec.baseline_response_field_name. When rendering
      * PairwiseMetricSpec.metric_prompt_template, the candidate and baseline
      * fields will be flipped for half of the samples to reduce bias.
@@ -747,9 +747,9 @@ public boolean getFlipEnabled() {
      *
      *
      * 
-     * Optional. Whether to flip the candidate and baseline responses.
-     * This is only applicable to the pairwise metric. If enabled, also provide
-     * PairwiseMetricSpec.candidate_response_field_name and
+     * Optional. Default is true. Whether to flip the candidate and baseline
+     * responses. This is only applicable to the pairwise metric. If enabled, also
+     * provide PairwiseMetricSpec.candidate_response_field_name and
      * PairwiseMetricSpec.baseline_response_field_name. When rendering
      * PairwiseMetricSpec.metric_prompt_template, the candidate and baseline
      * fields will be flipped for half of the samples to reduce bias.
@@ -772,9 +772,9 @@ public Builder setFlipEnabled(boolean value) {
      *
      *
      * 
-     * Optional. Whether to flip the candidate and baseline responses.
-     * This is only applicable to the pairwise metric. If enabled, also provide
-     * PairwiseMetricSpec.candidate_response_field_name and
+     * Optional. Default is true. Whether to flip the candidate and baseline
+     * responses. This is only applicable to the pairwise metric. If enabled, also
+     * provide PairwiseMetricSpec.candidate_response_field_name and
      * PairwiseMetricSpec.baseline_response_field_name. When rendering
      * PairwiseMetricSpec.metric_prompt_template, the candidate and baseline
      * fields will be flipped for half of the samples to reduce bias.
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutoraterConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutoraterConfigOrBuilder.java
index fdcc7c881022..a9914e0b25b9 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutoraterConfigOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutoraterConfigOrBuilder.java
@@ -58,9 +58,9 @@ public interface AutoraterConfigOrBuilder
    *
    *
    * 
-   * Optional. Whether to flip the candidate and baseline responses.
-   * This is only applicable to the pairwise metric. If enabled, also provide
-   * PairwiseMetricSpec.candidate_response_field_name and
+   * Optional. Default is true. Whether to flip the candidate and baseline
+   * responses. This is only applicable to the pairwise metric. If enabled, also
+   * provide PairwiseMetricSpec.candidate_response_field_name and
    * PairwiseMetricSpec.baseline_response_field_name. When rendering
    * PairwiseMetricSpec.metric_prompt_template, the candidate and baseline
    * fields will be flipped for half of the samples to reduce bias.
@@ -76,9 +76,9 @@ public interface AutoraterConfigOrBuilder
    *
    *
    * 
-   * Optional. Whether to flip the candidate and baseline responses.
-   * This is only applicable to the pairwise metric. If enabled, also provide
-   * PairwiseMetricSpec.candidate_response_field_name and
+   * Optional. Default is true. Whether to flip the candidate and baseline
+   * responses. This is only applicable to the pairwise metric. If enabled, also
+   * provide PairwiseMetricSpec.candidate_response_field_name and
    * PairwiseMetricSpec.baseline_response_field_name. When rendering
    * PairwiseMetricSpec.metric_prompt_template, the candidate and baseline
    * fields will be flipped for half of the samples to reduce bias.
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ColabImage.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ColabImage.java
new file mode 100644
index 000000000000..5c3f24ae9200
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ColabImage.java
@@ -0,0 +1,843 @@
+/*
+ * Copyright 2025 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/aiplatform/v1beta1/notebook_software_config.proto
+
+// Protobuf Java Version: 3.25.8
+package com.google.cloud.aiplatform.v1beta1;
+
+/**
+ *
+ *
+ * 
+ * Colab image of the runtime.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ColabImage} + */ +public final class ColabImage extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ColabImage) + ColabImageOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ColabImage.newBuilder() to construct. + private ColabImage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ColabImage() { + releaseName_ = ""; + description_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ColabImage(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.NotebookSoftwareConfigProto + .internal_static_google_cloud_aiplatform_v1beta1_ColabImage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.NotebookSoftwareConfigProto + .internal_static_google_cloud_aiplatform_v1beta1_ColabImage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ColabImage.class, + com.google.cloud.aiplatform.v1beta1.ColabImage.Builder.class); + } + + public static final int RELEASE_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object releaseName_ = ""; + + /** + * + * + *
+   * Optional. The release name of the NotebookRuntime Colab image, e.g.
+   * "py310". If not specified, detault to the latest release.
+   * 
+ * + * string release_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The releaseName. + */ + @java.lang.Override + public java.lang.String getReleaseName() { + java.lang.Object ref = releaseName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + releaseName_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The release name of the NotebookRuntime Colab image, e.g.
+   * "py310". If not specified, detault to the latest release.
+   * 
+ * + * string release_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for releaseName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getReleaseNameBytes() { + java.lang.Object ref = releaseName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + releaseName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * Output only. A human-readable description of the specified colab image
+   * release, populated by the system. Example: "Python 3.10", "Latest - current
+   * Python 3.11"
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+   * Output only. A human-readable description of the specified colab image
+   * release, populated by the system. Example: "Python 3.10", "Latest - current
+   * Python 3.11"
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(releaseName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, releaseName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(releaseName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, releaseName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.ColabImage)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ColabImage other = + (com.google.cloud.aiplatform.v1beta1.ColabImage) obj; + + if (!getReleaseName().equals(other.getReleaseName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RELEASE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getReleaseName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ColabImage parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ColabImage parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ColabImage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ColabImage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ColabImage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ColabImage parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ColabImage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ColabImage parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ColabImage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ColabImage parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ColabImage parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ColabImage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1beta1.ColabImage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Colab image of the runtime.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ColabImage} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ColabImage) + com.google.cloud.aiplatform.v1beta1.ColabImageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.NotebookSoftwareConfigProto + .internal_static_google_cloud_aiplatform_v1beta1_ColabImage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.NotebookSoftwareConfigProto + .internal_static_google_cloud_aiplatform_v1beta1_ColabImage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ColabImage.class, + com.google.cloud.aiplatform.v1beta1.ColabImage.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ColabImage.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + releaseName_ = ""; + description_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.NotebookSoftwareConfigProto + .internal_static_google_cloud_aiplatform_v1beta1_ColabImage_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ColabImage getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ColabImage.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ColabImage build() { + com.google.cloud.aiplatform.v1beta1.ColabImage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ColabImage buildPartial() { + com.google.cloud.aiplatform.v1beta1.ColabImage result = + new com.google.cloud.aiplatform.v1beta1.ColabImage(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ColabImage result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.releaseName_ = releaseName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.ColabImage) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ColabImage) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ColabImage other) { + if (other == com.google.cloud.aiplatform.v1beta1.ColabImage.getDefaultInstance()) return this; + if (!other.getReleaseName().isEmpty()) { + releaseName_ = other.releaseName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + 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: + { + releaseName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object releaseName_ = ""; + + /** + * + * + *
+     * Optional. The release name of the NotebookRuntime Colab image, e.g.
+     * "py310". If not specified, detault to the latest release.
+     * 
+ * + * string release_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The releaseName. + */ + public java.lang.String getReleaseName() { + java.lang.Object ref = releaseName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + releaseName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The release name of the NotebookRuntime Colab image, e.g.
+     * "py310". If not specified, detault to the latest release.
+     * 
+ * + * string release_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for releaseName. + */ + public com.google.protobuf.ByteString getReleaseNameBytes() { + java.lang.Object ref = releaseName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + releaseName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The release name of the NotebookRuntime Colab image, e.g.
+     * "py310". If not specified, detault to the latest release.
+     * 
+ * + * string release_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The releaseName to set. + * @return This builder for chaining. + */ + public Builder setReleaseName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + releaseName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The release name of the NotebookRuntime Colab image, e.g.
+     * "py310". If not specified, detault to the latest release.
+     * 
+ * + * string release_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearReleaseName() { + releaseName_ = getDefaultInstance().getReleaseName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The release name of the NotebookRuntime Colab image, e.g.
+     * "py310". If not specified, detault to the latest release.
+     * 
+ * + * string release_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for releaseName to set. + * @return This builder for chaining. + */ + public Builder setReleaseNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + releaseName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+     * Output only. A human-readable description of the specified colab image
+     * release, populated by the system. Example: "Python 3.10", "Latest - current
+     * Python 3.11"
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. A human-readable description of the specified colab image
+     * release, populated by the system. Example: "Python 3.10", "Latest - current
+     * Python 3.11"
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. A human-readable description of the specified colab image
+     * release, populated by the system. Example: "Python 3.10", "Latest - current
+     * Python 3.11"
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + + /** + * + * + *
+     * Output only. A human-readable description of the specified colab image
+     * release, populated by the system. Example: "Python 3.10", "Latest - current
+     * Python 3.11"
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. A human-readable description of the specified colab image
+     * release, populated by the system. Example: "Python 3.10", "Latest - current
+     * Python 3.11"
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.ColabImage) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ColabImage) + private static final com.google.cloud.aiplatform.v1beta1.ColabImage DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ColabImage(); + } + + public static com.google.cloud.aiplatform.v1beta1.ColabImage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ColabImage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ColabImage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ColabImageOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ColabImageOrBuilder.java new file mode 100644 index 000000000000..98ccea483976 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ColabImageOrBuilder.java @@ -0,0 +1,84 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/notebook_software_config.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.aiplatform.v1beta1; + +public interface ColabImageOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ColabImage) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The release name of the NotebookRuntime Colab image, e.g.
+   * "py310". If not specified, detault to the latest release.
+   * 
+ * + * string release_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The releaseName. + */ + java.lang.String getReleaseName(); + + /** + * + * + *
+   * Optional. The release name of the NotebookRuntime Colab image, e.g.
+   * "py310". If not specified, detault to the latest release.
+   * 
+ * + * string release_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for releaseName. + */ + com.google.protobuf.ByteString getReleaseNameBytes(); + + /** + * + * + *
+   * Output only. A human-readable description of the specified colab image
+   * release, populated by the system. Example: "Python 3.10", "Latest - current
+   * Python 3.11"
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Output only. A human-readable description of the specified colab image
+   * release, populated by the system. Example: "Python 3.10", "Latest - current
+   * Python 3.11"
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DedicatedResources.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DedicatedResources.java index 18b063830028..4eceb070f61a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DedicatedResources.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DedicatedResources.java @@ -23,8 +23,8 @@ * * *
- * A description of resources that are dedicated to a DeployedModel, and
- * that need a higher degree of manual configuration.
+ * A description of resources that are dedicated to a DeployedModel or
+ * DeployedIndex, and that need a higher degree of manual configuration.
  * 
* * Protobuf type {@code google.cloud.aiplatform.v1beta1.DedicatedResources} @@ -73,8 +73,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. Immutable. The specification of a single machine used by the
-   * prediction.
+   * Required. Immutable. The specification of a single machine being used.
    * 
* * @@ -92,8 +91,7 @@ public boolean hasMachineSpec() { * * *
-   * Required. Immutable. The specification of a single machine used by the
-   * prediction.
+   * Required. Immutable. The specification of a single machine being used.
    * 
* * @@ -113,8 +111,7 @@ public com.google.cloud.aiplatform.v1beta1.MachineSpec getMachineSpec() { * * *
-   * Required. Immutable. The specification of a single machine used by the
-   * prediction.
+   * Required. Immutable. The specification of a single machine being used.
    * 
* * @@ -135,13 +132,11 @@ public com.google.cloud.aiplatform.v1beta1.MachineSpecOrBuilder getMachineSpecOr * * *
-   * Required. Immutable. The minimum number of machine replicas this
-   * DeployedModel will be always deployed on. This value must be greater than
-   * or equal to 1.
+   * Required. Immutable. The minimum number of machine replicas that will be
+   * always deployed on. This value must be greater than or equal to 1.
    *
-   * If traffic against the DeployedModel increases, it may dynamically be
-   * deployed onto more replicas, and as traffic decreases, some of these extra
-   * replicas may be freed.
+   * If traffic increases, it may dynamically be deployed onto more replicas,
+   * and as traffic decreases, some of these extra replicas may be freed.
    * 
* * @@ -162,13 +157,12 @@ public int getMinReplicaCount() { * * *
-   * Immutable. The maximum number of replicas this DeployedModel may be
-   * deployed on when the traffic against it increases. If the requested value
-   * is too large, the deployment will error, but if deployment succeeds then
-   * the ability to scale the model to that many replicas is guaranteed (barring
-   * service outages). If traffic against the DeployedModel increases beyond
-   * what its replicas at maximum may handle, a portion of the traffic will be
-   * dropped. If this value is not provided, will use
+   * Immutable. The maximum number of replicas that may be deployed on when the
+   * traffic against it increases. If the requested value is too large, the
+   * deployment will error, but if deployment succeeds then the ability to scale
+   * to that many replicas is guaranteed (barring service outages). If traffic
+   * increases beyond what its replicas at maximum may handle, a portion of the
+   * traffic will be dropped. If this value is not provided, will use
    * [min_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.min_replica_count]
    * as the default value.
    *
@@ -195,8 +189,8 @@ public int getMaxReplicaCount() {
    *
    * 
    * Optional. Number of required available replicas for the deployment to
-   * succeed. This field is only needed when partial model deployment/mutation
-   * is desired. If set, the model deploy/mutate operation will succeed once
+   * succeed. This field is only needed when partial deployment/mutation is
+   * desired. If set, the deploy/mutate operation will succeed once
    * available_replica_count reaches required_replica_count, and the rest of
    * the replicas will be retried. If not set, the default
    * required_replica_count will be min_replica_count.
@@ -432,6 +426,71 @@ public boolean getSpot() {
     return spot_;
   }
 
+  public static final int FLEX_START_FIELD_NUMBER = 10;
+  private com.google.cloud.aiplatform.v1beta1.FlexStart flexStart_;
+
+  /**
+   *
+   *
+   * 
+   * Optional. Immutable. If set, use DWS resource to schedule the deployment
+   * workload. reference:
+   * (https://cloud.google.com/blog/products/compute/introducing-dynamic-workload-scheduler)
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FlexStart flex_start = 10 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the flexStart field is set. + */ + @java.lang.Override + public boolean hasFlexStart() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. Immutable. If set, use DWS resource to schedule the deployment
+   * workload. reference:
+   * (https://cloud.google.com/blog/products/compute/introducing-dynamic-workload-scheduler)
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FlexStart flex_start = 10 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The flexStart. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FlexStart getFlexStart() { + return flexStart_ == null + ? com.google.cloud.aiplatform.v1beta1.FlexStart.getDefaultInstance() + : flexStart_; + } + + /** + * + * + *
+   * Optional. Immutable. If set, use DWS resource to schedule the deployment
+   * workload. reference:
+   * (https://cloud.google.com/blog/products/compute/introducing-dynamic-workload-scheduler)
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FlexStart flex_start = 10 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FlexStartOrBuilder getFlexStartOrBuilder() { + return flexStart_ == null + ? com.google.cloud.aiplatform.v1beta1.FlexStart.getDefaultInstance() + : flexStart_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -464,6 +523,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (requiredReplicaCount_ != 0) { output.writeInt32(9, requiredReplicaCount_); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(10, getFlexStart()); + } getUnknownFields().writeTo(output); } @@ -493,6 +555,9 @@ public int getSerializedSize() { if (requiredReplicaCount_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, requiredReplicaCount_); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getFlexStart()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -519,6 +584,10 @@ public boolean equals(final java.lang.Object obj) { if (!getAutoscalingMetricSpecsList().equals(other.getAutoscalingMetricSpecsList())) return false; if (getSpot() != other.getSpot()) return false; + if (hasFlexStart() != other.hasFlexStart()) return false; + if (hasFlexStart()) { + if (!getFlexStart().equals(other.getFlexStart())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -546,6 +615,10 @@ public int hashCode() { } hash = (37 * hash) + SPOT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSpot()); + if (hasFlexStart()) { + hash = (37 * hash) + FLEX_START_FIELD_NUMBER; + hash = (53 * hash) + getFlexStart().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -652,8 +725,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * A description of resources that are dedicated to a DeployedModel, and
-   * that need a higher degree of manual configuration.
+   * A description of resources that are dedicated to a DeployedModel or
+   * DeployedIndex, and that need a higher degree of manual configuration.
    * 
* * Protobuf type {@code google.cloud.aiplatform.v1beta1.DedicatedResources} @@ -691,6 +764,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getMachineSpecFieldBuilder(); getAutoscalingMetricSpecsFieldBuilder(); + getFlexStartFieldBuilder(); } } @@ -714,6 +788,11 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000010); spot_ = false; + flexStart_ = null; + if (flexStartBuilder_ != null) { + flexStartBuilder_.dispose(); + flexStartBuilder_ = null; + } return this; } @@ -782,6 +861,10 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.DedicatedResource if (((from_bitField0_ & 0x00000020) != 0)) { result.spot_ = spot_; } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.flexStart_ = flexStartBuilder_ == null ? flexStart_ : flexStartBuilder_.build(); + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -873,6 +956,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DedicatedResources if (other.getSpot() != false) { setSpot(other.getSpot()); } + if (other.hasFlexStart()) { + mergeFlexStart(other.getFlexStart()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -943,6 +1029,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 72 + case 82: + { + input.readMessage(getFlexStartFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 82 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -973,8 +1065,7 @@ public Builder mergeFrom( * * *
-     * Required. Immutable. The specification of a single machine used by the
-     * prediction.
+     * Required. Immutable. The specification of a single machine being used.
      * 
* * @@ -991,8 +1082,7 @@ public boolean hasMachineSpec() { * * *
-     * Required. Immutable. The specification of a single machine used by the
-     * prediction.
+     * Required. Immutable. The specification of a single machine being used.
      * 
* * @@ -1015,8 +1105,7 @@ public com.google.cloud.aiplatform.v1beta1.MachineSpec getMachineSpec() { * * *
-     * Required. Immutable. The specification of a single machine used by the
-     * prediction.
+     * Required. Immutable. The specification of a single machine being used.
      * 
* * @@ -1041,8 +1130,7 @@ public Builder setMachineSpec(com.google.cloud.aiplatform.v1beta1.MachineSpec va * * *
-     * Required. Immutable. The specification of a single machine used by the
-     * prediction.
+     * Required. Immutable. The specification of a single machine being used.
      * 
* * @@ -1065,8 +1153,7 @@ public Builder setMachineSpec( * * *
-     * Required. Immutable. The specification of a single machine used by the
-     * prediction.
+     * Required. Immutable. The specification of a single machine being used.
      * 
* * @@ -1097,8 +1184,7 @@ public Builder mergeMachineSpec(com.google.cloud.aiplatform.v1beta1.MachineSpec * * *
-     * Required. Immutable. The specification of a single machine used by the
-     * prediction.
+     * Required. Immutable. The specification of a single machine being used.
      * 
* * @@ -1120,8 +1206,7 @@ public Builder clearMachineSpec() { * * *
-     * Required. Immutable. The specification of a single machine used by the
-     * prediction.
+     * Required. Immutable. The specification of a single machine being used.
      * 
* * @@ -1138,8 +1223,7 @@ public com.google.cloud.aiplatform.v1beta1.MachineSpec.Builder getMachineSpecBui * * *
-     * Required. Immutable. The specification of a single machine used by the
-     * prediction.
+     * Required. Immutable. The specification of a single machine being used.
      * 
* * @@ -1160,8 +1244,7 @@ public com.google.cloud.aiplatform.v1beta1.MachineSpecOrBuilder getMachineSpecOr * * *
-     * Required. Immutable. The specification of a single machine used by the
-     * prediction.
+     * Required. Immutable. The specification of a single machine being used.
      * 
* * @@ -1191,13 +1274,11 @@ public com.google.cloud.aiplatform.v1beta1.MachineSpecOrBuilder getMachineSpecOr * * *
-     * Required. Immutable. The minimum number of machine replicas this
-     * DeployedModel will be always deployed on. This value must be greater than
-     * or equal to 1.
+     * Required. Immutable. The minimum number of machine replicas that will be
+     * always deployed on. This value must be greater than or equal to 1.
      *
-     * If traffic against the DeployedModel increases, it may dynamically be
-     * deployed onto more replicas, and as traffic decreases, some of these extra
-     * replicas may be freed.
+     * If traffic increases, it may dynamically be deployed onto more replicas,
+     * and as traffic decreases, some of these extra replicas may be freed.
      * 
* * @@ -1215,13 +1296,11 @@ public int getMinReplicaCount() { * * *
-     * Required. Immutable. The minimum number of machine replicas this
-     * DeployedModel will be always deployed on. This value must be greater than
-     * or equal to 1.
+     * Required. Immutable. The minimum number of machine replicas that will be
+     * always deployed on. This value must be greater than or equal to 1.
      *
-     * If traffic against the DeployedModel increases, it may dynamically be
-     * deployed onto more replicas, and as traffic decreases, some of these extra
-     * replicas may be freed.
+     * If traffic increases, it may dynamically be deployed onto more replicas,
+     * and as traffic decreases, some of these extra replicas may be freed.
      * 
* * @@ -1243,13 +1322,11 @@ public Builder setMinReplicaCount(int value) { * * *
-     * Required. Immutable. The minimum number of machine replicas this
-     * DeployedModel will be always deployed on. This value must be greater than
-     * or equal to 1.
+     * Required. Immutable. The minimum number of machine replicas that will be
+     * always deployed on. This value must be greater than or equal to 1.
      *
-     * If traffic against the DeployedModel increases, it may dynamically be
-     * deployed onto more replicas, and as traffic decreases, some of these extra
-     * replicas may be freed.
+     * If traffic increases, it may dynamically be deployed onto more replicas,
+     * and as traffic decreases, some of these extra replicas may be freed.
      * 
* * @@ -1271,13 +1348,12 @@ public Builder clearMinReplicaCount() { * * *
-     * Immutable. The maximum number of replicas this DeployedModel may be
-     * deployed on when the traffic against it increases. If the requested value
-     * is too large, the deployment will error, but if deployment succeeds then
-     * the ability to scale the model to that many replicas is guaranteed (barring
-     * service outages). If traffic against the DeployedModel increases beyond
-     * what its replicas at maximum may handle, a portion of the traffic will be
-     * dropped. If this value is not provided, will use
+     * Immutable. The maximum number of replicas that may be deployed on when the
+     * traffic against it increases. If the requested value is too large, the
+     * deployment will error, but if deployment succeeds then the ability to scale
+     * to that many replicas is guaranteed (barring service outages). If traffic
+     * increases beyond what its replicas at maximum may handle, a portion of the
+     * traffic will be dropped. If this value is not provided, will use
      * [min_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.min_replica_count]
      * as the default value.
      *
@@ -1300,13 +1376,12 @@ public int getMaxReplicaCount() {
      *
      *
      * 
-     * Immutable. The maximum number of replicas this DeployedModel may be
-     * deployed on when the traffic against it increases. If the requested value
-     * is too large, the deployment will error, but if deployment succeeds then
-     * the ability to scale the model to that many replicas is guaranteed (barring
-     * service outages). If traffic against the DeployedModel increases beyond
-     * what its replicas at maximum may handle, a portion of the traffic will be
-     * dropped. If this value is not provided, will use
+     * Immutable. The maximum number of replicas that may be deployed on when the
+     * traffic against it increases. If the requested value is too large, the
+     * deployment will error, but if deployment succeeds then the ability to scale
+     * to that many replicas is guaranteed (barring service outages). If traffic
+     * increases beyond what its replicas at maximum may handle, a portion of the
+     * traffic will be dropped. If this value is not provided, will use
      * [min_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.min_replica_count]
      * as the default value.
      *
@@ -1333,13 +1408,12 @@ public Builder setMaxReplicaCount(int value) {
      *
      *
      * 
-     * Immutable. The maximum number of replicas this DeployedModel may be
-     * deployed on when the traffic against it increases. If the requested value
-     * is too large, the deployment will error, but if deployment succeeds then
-     * the ability to scale the model to that many replicas is guaranteed (barring
-     * service outages). If traffic against the DeployedModel increases beyond
-     * what its replicas at maximum may handle, a portion of the traffic will be
-     * dropped. If this value is not provided, will use
+     * Immutable. The maximum number of replicas that may be deployed on when the
+     * traffic against it increases. If the requested value is too large, the
+     * deployment will error, but if deployment succeeds then the ability to scale
+     * to that many replicas is guaranteed (barring service outages). If traffic
+     * increases beyond what its replicas at maximum may handle, a portion of the
+     * traffic will be dropped. If this value is not provided, will use
      * [min_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.min_replica_count]
      * as the default value.
      *
@@ -1367,8 +1441,8 @@ public Builder clearMaxReplicaCount() {
      *
      * 
      * Optional. Number of required available replicas for the deployment to
-     * succeed. This field is only needed when partial model deployment/mutation
-     * is desired. If set, the model deploy/mutate operation will succeed once
+     * succeed. This field is only needed when partial deployment/mutation is
+     * desired. If set, the deploy/mutate operation will succeed once
      * available_replica_count reaches required_replica_count, and the rest of
      * the replicas will be retried. If not set, the default
      * required_replica_count will be min_replica_count.
@@ -1388,8 +1462,8 @@ public int getRequiredReplicaCount() {
      *
      * 
      * Optional. Number of required available replicas for the deployment to
-     * succeed. This field is only needed when partial model deployment/mutation
-     * is desired. If set, the model deploy/mutate operation will succeed once
+     * succeed. This field is only needed when partial deployment/mutation is
+     * desired. If set, the deploy/mutate operation will succeed once
      * available_replica_count reaches required_replica_count, and the rest of
      * the replicas will be retried. If not set, the default
      * required_replica_count will be min_replica_count.
@@ -1413,8 +1487,8 @@ public Builder setRequiredReplicaCount(int value) {
      *
      * 
      * Optional. Number of required available replicas for the deployment to
-     * succeed. This field is only needed when partial model deployment/mutation
-     * is desired. If set, the model deploy/mutate operation will succeed once
+     * succeed. This field is only needed when partial deployment/mutation is
+     * desired. If set, the deploy/mutate operation will succeed once
      * available_replica_count reaches required_replica_count, and the rest of
      * the replicas will be retried. If not set, the default
      * required_replica_count will be min_replica_count.
@@ -2310,6 +2384,237 @@ public Builder clearSpot() {
       return this;
     }
 
+    private com.google.cloud.aiplatform.v1beta1.FlexStart flexStart_;
+    private com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.aiplatform.v1beta1.FlexStart,
+            com.google.cloud.aiplatform.v1beta1.FlexStart.Builder,
+            com.google.cloud.aiplatform.v1beta1.FlexStartOrBuilder>
+        flexStartBuilder_;
+
+    /**
+     *
+     *
+     * 
+     * Optional. Immutable. If set, use DWS resource to schedule the deployment
+     * workload. reference:
+     * (https://cloud.google.com/blog/products/compute/introducing-dynamic-workload-scheduler)
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FlexStart flex_start = 10 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the flexStart field is set. + */ + public boolean hasFlexStart() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Optional. Immutable. If set, use DWS resource to schedule the deployment
+     * workload. reference:
+     * (https://cloud.google.com/blog/products/compute/introducing-dynamic-workload-scheduler)
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FlexStart flex_start = 10 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The flexStart. + */ + public com.google.cloud.aiplatform.v1beta1.FlexStart getFlexStart() { + if (flexStartBuilder_ == null) { + return flexStart_ == null + ? com.google.cloud.aiplatform.v1beta1.FlexStart.getDefaultInstance() + : flexStart_; + } else { + return flexStartBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Immutable. If set, use DWS resource to schedule the deployment
+     * workload. reference:
+     * (https://cloud.google.com/blog/products/compute/introducing-dynamic-workload-scheduler)
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FlexStart flex_start = 10 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFlexStart(com.google.cloud.aiplatform.v1beta1.FlexStart value) { + if (flexStartBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + flexStart_ = value; + } else { + flexStartBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Immutable. If set, use DWS resource to schedule the deployment
+     * workload. reference:
+     * (https://cloud.google.com/blog/products/compute/introducing-dynamic-workload-scheduler)
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FlexStart flex_start = 10 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFlexStart( + com.google.cloud.aiplatform.v1beta1.FlexStart.Builder builderForValue) { + if (flexStartBuilder_ == null) { + flexStart_ = builderForValue.build(); + } else { + flexStartBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Immutable. If set, use DWS resource to schedule the deployment
+     * workload. reference:
+     * (https://cloud.google.com/blog/products/compute/introducing-dynamic-workload-scheduler)
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FlexStart flex_start = 10 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeFlexStart(com.google.cloud.aiplatform.v1beta1.FlexStart value) { + if (flexStartBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && flexStart_ != null + && flexStart_ != com.google.cloud.aiplatform.v1beta1.FlexStart.getDefaultInstance()) { + getFlexStartBuilder().mergeFrom(value); + } else { + flexStart_ = value; + } + } else { + flexStartBuilder_.mergeFrom(value); + } + if (flexStart_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Immutable. If set, use DWS resource to schedule the deployment
+     * workload. reference:
+     * (https://cloud.google.com/blog/products/compute/introducing-dynamic-workload-scheduler)
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FlexStart flex_start = 10 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearFlexStart() { + bitField0_ = (bitField0_ & ~0x00000040); + flexStart_ = null; + if (flexStartBuilder_ != null) { + flexStartBuilder_.dispose(); + flexStartBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Immutable. If set, use DWS resource to schedule the deployment
+     * workload. reference:
+     * (https://cloud.google.com/blog/products/compute/introducing-dynamic-workload-scheduler)
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FlexStart flex_start = 10 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.FlexStart.Builder getFlexStartBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getFlexStartFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Immutable. If set, use DWS resource to schedule the deployment
+     * workload. reference:
+     * (https://cloud.google.com/blog/products/compute/introducing-dynamic-workload-scheduler)
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FlexStart flex_start = 10 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.FlexStartOrBuilder getFlexStartOrBuilder() { + if (flexStartBuilder_ != null) { + return flexStartBuilder_.getMessageOrBuilder(); + } else { + return flexStart_ == null + ? com.google.cloud.aiplatform.v1beta1.FlexStart.getDefaultInstance() + : flexStart_; + } + } + + /** + * + * + *
+     * Optional. Immutable. If set, use DWS resource to schedule the deployment
+     * workload. reference:
+     * (https://cloud.google.com/blog/products/compute/introducing-dynamic-workload-scheduler)
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FlexStart flex_start = 10 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.FlexStart, + com.google.cloud.aiplatform.v1beta1.FlexStart.Builder, + com.google.cloud.aiplatform.v1beta1.FlexStartOrBuilder> + getFlexStartFieldBuilder() { + if (flexStartBuilder_ == null) { + flexStartBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.FlexStart, + com.google.cloud.aiplatform.v1beta1.FlexStart.Builder, + com.google.cloud.aiplatform.v1beta1.FlexStartOrBuilder>( + getFlexStart(), getParentForChildren(), isClean()); + flexStart_ = null; + } + return flexStartBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DedicatedResourcesOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DedicatedResourcesOrBuilder.java index d806bd45f421..bc16ac3782fd 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DedicatedResourcesOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DedicatedResourcesOrBuilder.java @@ -28,8 +28,7 @@ public interface DedicatedResourcesOrBuilder * * *
-   * Required. Immutable. The specification of a single machine used by the
-   * prediction.
+   * Required. Immutable. The specification of a single machine being used.
    * 
* * @@ -44,8 +43,7 @@ public interface DedicatedResourcesOrBuilder * * *
-   * Required. Immutable. The specification of a single machine used by the
-   * prediction.
+   * Required. Immutable. The specification of a single machine being used.
    * 
* * @@ -60,8 +58,7 @@ public interface DedicatedResourcesOrBuilder * * *
-   * Required. Immutable. The specification of a single machine used by the
-   * prediction.
+   * Required. Immutable. The specification of a single machine being used.
    * 
* * @@ -74,13 +71,11 @@ public interface DedicatedResourcesOrBuilder * * *
-   * Required. Immutable. The minimum number of machine replicas this
-   * DeployedModel will be always deployed on. This value must be greater than
-   * or equal to 1.
+   * Required. Immutable. The minimum number of machine replicas that will be
+   * always deployed on. This value must be greater than or equal to 1.
    *
-   * If traffic against the DeployedModel increases, it may dynamically be
-   * deployed onto more replicas, and as traffic decreases, some of these extra
-   * replicas may be freed.
+   * If traffic increases, it may dynamically be deployed onto more replicas,
+   * and as traffic decreases, some of these extra replicas may be freed.
    * 
* * @@ -95,13 +90,12 @@ public interface DedicatedResourcesOrBuilder * * *
-   * Immutable. The maximum number of replicas this DeployedModel may be
-   * deployed on when the traffic against it increases. If the requested value
-   * is too large, the deployment will error, but if deployment succeeds then
-   * the ability to scale the model to that many replicas is guaranteed (barring
-   * service outages). If traffic against the DeployedModel increases beyond
-   * what its replicas at maximum may handle, a portion of the traffic will be
-   * dropped. If this value is not provided, will use
+   * Immutable. The maximum number of replicas that may be deployed on when the
+   * traffic against it increases. If the requested value is too large, the
+   * deployment will error, but if deployment succeeds then the ability to scale
+   * to that many replicas is guaranteed (barring service outages). If traffic
+   * increases beyond what its replicas at maximum may handle, a portion of the
+   * traffic will be dropped. If this value is not provided, will use
    * [min_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.min_replica_count]
    * as the default value.
    *
@@ -122,8 +116,8 @@ public interface DedicatedResourcesOrBuilder
    *
    * 
    * Optional. Number of required available replicas for the deployment to
-   * succeed. This field is only needed when partial model deployment/mutation
-   * is desired. If set, the model deploy/mutate operation will succeed once
+   * succeed. This field is only needed when partial deployment/mutation is
+   * desired. If set, the deploy/mutate operation will succeed once
    * available_replica_count reaches required_replica_count, and the rest of
    * the replicas will be retried. If not set, the default
    * required_replica_count will be min_replica_count.
@@ -326,4 +320,53 @@ public interface DedicatedResourcesOrBuilder
    * @return The spot.
    */
   boolean getSpot();
+
+  /**
+   *
+   *
+   * 
+   * Optional. Immutable. If set, use DWS resource to schedule the deployment
+   * workload. reference:
+   * (https://cloud.google.com/blog/products/compute/introducing-dynamic-workload-scheduler)
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FlexStart flex_start = 10 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the flexStart field is set. + */ + boolean hasFlexStart(); + + /** + * + * + *
+   * Optional. Immutable. If set, use DWS resource to schedule the deployment
+   * workload. reference:
+   * (https://cloud.google.com/blog/products/compute/introducing-dynamic-workload-scheduler)
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FlexStart flex_start = 10 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The flexStart. + */ + com.google.cloud.aiplatform.v1beta1.FlexStart getFlexStart(); + + /** + * + * + *
+   * Optional. Immutable. If set, use DWS resource to schedule the deployment
+   * workload. reference:
+   * (https://cloud.google.com/blog/products/compute/introducing-dynamic-workload-scheduler)
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FlexStart flex_start = 10 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.FlexStartOrBuilder getFlexStartOrBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DiskSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DiskSpec.java index 049ca67969e2..73c5fe9ef845 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DiskSpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DiskSpec.java @@ -73,9 +73,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Type of the boot disk (default is "pd-ssd").
-   * Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or
-   * "pd-standard" (Persistent Disk Hard Disk Drive).
+   * Type of the boot disk. For non-A3U machines, the default value is
+   * "pd-ssd", for A3U machines, the default value is "hyperdisk-balanced".
+   * Valid values: "pd-ssd" (Persistent Disk Solid State Drive),
+   * "pd-standard" (Persistent Disk Hard Disk Drive) or "hyperdisk-balanced".
    * 
* * string boot_disk_type = 1; @@ -99,9 +100,10 @@ public java.lang.String getBootDiskType() { * * *
-   * Type of the boot disk (default is "pd-ssd").
-   * Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or
-   * "pd-standard" (Persistent Disk Hard Disk Drive).
+   * Type of the boot disk. For non-A3U machines, the default value is
+   * "pd-ssd", for A3U machines, the default value is "hyperdisk-balanced".
+   * Valid values: "pd-ssd" (Persistent Disk Solid State Drive),
+   * "pd-standard" (Persistent Disk Hard Disk Drive) or "hyperdisk-balanced".
    * 
* * string boot_disk_type = 1; @@ -510,9 +512,10 @@ public Builder mergeFrom( * * *
-     * Type of the boot disk (default is "pd-ssd").
-     * Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or
-     * "pd-standard" (Persistent Disk Hard Disk Drive).
+     * Type of the boot disk. For non-A3U machines, the default value is
+     * "pd-ssd", for A3U machines, the default value is "hyperdisk-balanced".
+     * Valid values: "pd-ssd" (Persistent Disk Solid State Drive),
+     * "pd-standard" (Persistent Disk Hard Disk Drive) or "hyperdisk-balanced".
      * 
* * string boot_disk_type = 1; @@ -535,9 +538,10 @@ public java.lang.String getBootDiskType() { * * *
-     * Type of the boot disk (default is "pd-ssd").
-     * Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or
-     * "pd-standard" (Persistent Disk Hard Disk Drive).
+     * Type of the boot disk. For non-A3U machines, the default value is
+     * "pd-ssd", for A3U machines, the default value is "hyperdisk-balanced".
+     * Valid values: "pd-ssd" (Persistent Disk Solid State Drive),
+     * "pd-standard" (Persistent Disk Hard Disk Drive) or "hyperdisk-balanced".
      * 
* * string boot_disk_type = 1; @@ -560,9 +564,10 @@ public com.google.protobuf.ByteString getBootDiskTypeBytes() { * * *
-     * Type of the boot disk (default is "pd-ssd").
-     * Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or
-     * "pd-standard" (Persistent Disk Hard Disk Drive).
+     * Type of the boot disk. For non-A3U machines, the default value is
+     * "pd-ssd", for A3U machines, the default value is "hyperdisk-balanced".
+     * Valid values: "pd-ssd" (Persistent Disk Solid State Drive),
+     * "pd-standard" (Persistent Disk Hard Disk Drive) or "hyperdisk-balanced".
      * 
* * string boot_disk_type = 1; @@ -584,9 +589,10 @@ public Builder setBootDiskType(java.lang.String value) { * * *
-     * Type of the boot disk (default is "pd-ssd").
-     * Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or
-     * "pd-standard" (Persistent Disk Hard Disk Drive).
+     * Type of the boot disk. For non-A3U machines, the default value is
+     * "pd-ssd", for A3U machines, the default value is "hyperdisk-balanced".
+     * Valid values: "pd-ssd" (Persistent Disk Solid State Drive),
+     * "pd-standard" (Persistent Disk Hard Disk Drive) or "hyperdisk-balanced".
      * 
* * string boot_disk_type = 1; @@ -604,9 +610,10 @@ public Builder clearBootDiskType() { * * *
-     * Type of the boot disk (default is "pd-ssd").
-     * Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or
-     * "pd-standard" (Persistent Disk Hard Disk Drive).
+     * Type of the boot disk. For non-A3U machines, the default value is
+     * "pd-ssd", for A3U machines, the default value is "hyperdisk-balanced".
+     * Valid values: "pd-ssd" (Persistent Disk Solid State Drive),
+     * "pd-standard" (Persistent Disk Hard Disk Drive) or "hyperdisk-balanced".
      * 
* * string boot_disk_type = 1; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DiskSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DiskSpecOrBuilder.java index 55fdf89ab235..27e8e8085d71 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DiskSpecOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DiskSpecOrBuilder.java @@ -28,9 +28,10 @@ public interface DiskSpecOrBuilder * * *
-   * Type of the boot disk (default is "pd-ssd").
-   * Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or
-   * "pd-standard" (Persistent Disk Hard Disk Drive).
+   * Type of the boot disk. For non-A3U machines, the default value is
+   * "pd-ssd", for A3U machines, the default value is "hyperdisk-balanced".
+   * Valid values: "pd-ssd" (Persistent Disk Solid State Drive),
+   * "pd-standard" (Persistent Disk Hard Disk Drive) or "hyperdisk-balanced".
    * 
* * string boot_disk_type = 1; @@ -43,9 +44,10 @@ public interface DiskSpecOrBuilder * * *
-   * Type of the boot disk (default is "pd-ssd").
-   * Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or
-   * "pd-standard" (Persistent Disk Hard Disk Drive).
+   * Type of the boot disk. For non-A3U machines, the default value is
+   * "pd-ssd", for A3U machines, the default value is "hyperdisk-balanced".
+   * Valid values: "pd-ssd" (Persistent Disk Solid State Drive),
+   * "pd-standard" (Persistent Disk Hard Disk Drive) or "hyperdisk-balanced".
    * 
* * string boot_disk_type = 1; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateDatasetResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateDatasetResponse.java index 4b0f7e96fc4a..31587acbd6bb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateDatasetResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateDatasetResponse.java @@ -63,6 +63,69 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } private int bitField0_; + public static final int AGGREGATION_OUTPUT_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.AggregationOutput aggregationOutput_; + + /** + * + * + *
+   * Output only. Aggregation statistics derived from results of
+   * EvaluationService.EvaluateDataset.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AggregationOutput aggregation_output = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the aggregationOutput field is set. + */ + @java.lang.Override + public boolean hasAggregationOutput() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. Aggregation statistics derived from results of
+   * EvaluationService.EvaluateDataset.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AggregationOutput aggregation_output = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The aggregationOutput. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AggregationOutput getAggregationOutput() { + return aggregationOutput_ == null + ? com.google.cloud.aiplatform.v1beta1.AggregationOutput.getDefaultInstance() + : aggregationOutput_; + } + + /** + * + * + *
+   * Output only. Aggregation statistics derived from results of
+   * EvaluationService.EvaluateDataset.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AggregationOutput aggregation_output = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AggregationOutputOrBuilder + getAggregationOutputOrBuilder() { + return aggregationOutput_ == null + ? com.google.cloud.aiplatform.v1beta1.AggregationOutput.getDefaultInstance() + : aggregationOutput_; + } + public static final int OUTPUT_INFO_FIELD_NUMBER = 3; private com.google.cloud.aiplatform.v1beta1.OutputInfo outputInfo_; @@ -81,7 +144,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasOutputInfo() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** @@ -137,6 +200,9 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getAggregationOutput()); + } + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getOutputInfo()); } getUnknownFields().writeTo(output); @@ -149,6 +215,9 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAggregationOutput()); + } + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOutputInfo()); } size += getUnknownFields().getSerializedSize(); @@ -167,6 +236,10 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse other = (com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse) obj; + if (hasAggregationOutput() != other.hasAggregationOutput()) return false; + if (hasAggregationOutput()) { + if (!getAggregationOutput().equals(other.getAggregationOutput())) return false; + } if (hasOutputInfo() != other.hasOutputInfo()) return false; if (hasOutputInfo()) { if (!getOutputInfo().equals(other.getOutputInfo())) return false; @@ -182,6 +255,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAggregationOutput()) { + hash = (37 * hash) + AGGREGATION_OUTPUT_FIELD_NUMBER; + hash = (53 * hash) + getAggregationOutput().hashCode(); + } if (hasOutputInfo()) { hash = (37 * hash) + OUTPUT_INFO_FIELD_NUMBER; hash = (53 * hash) + getOutputInfo().hashCode(); @@ -328,6 +405,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getAggregationOutputFieldBuilder(); getOutputInfoFieldBuilder(); } } @@ -336,6 +414,11 @@ private void maybeForceBuilderInitialization() { public Builder clear() { super.clear(); bitField0_ = 0; + aggregationOutput_ = null; + if (aggregationOutputBuilder_ != null) { + aggregationOutputBuilder_.dispose(); + aggregationOutputBuilder_ = null; + } outputInfo_ = null; if (outputInfoBuilder_ != null) { outputInfoBuilder_.dispose(); @@ -379,9 +462,16 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.EvaluateDatasetRe int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.outputInfo_ = outputInfoBuilder_ == null ? outputInfo_ : outputInfoBuilder_.build(); + result.aggregationOutput_ = + aggregationOutputBuilder_ == null + ? aggregationOutput_ + : aggregationOutputBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.outputInfo_ = outputInfoBuilder_ == null ? outputInfo_ : outputInfoBuilder_.build(); + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -431,6 +521,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse other) { if (other == com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse.getDefaultInstance()) return this; + if (other.hasAggregationOutput()) { + mergeAggregationOutput(other.getAggregationOutput()); + } if (other.hasOutputInfo()) { mergeOutputInfo(other.getOutputInfo()); } @@ -460,10 +553,17 @@ public Builder mergeFrom( case 0: done = true; break; + case 10: + { + input.readMessage( + getAggregationOutputFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 case 26: { input.readMessage(getOutputInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; break; } // case 26 default: @@ -485,6 +585,233 @@ public Builder mergeFrom( private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.AggregationOutput aggregationOutput_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.AggregationOutput, + com.google.cloud.aiplatform.v1beta1.AggregationOutput.Builder, + com.google.cloud.aiplatform.v1beta1.AggregationOutputOrBuilder> + aggregationOutputBuilder_; + + /** + * + * + *
+     * Output only. Aggregation statistics derived from results of
+     * EvaluationService.EvaluateDataset.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AggregationOutput aggregation_output = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the aggregationOutput field is set. + */ + public boolean hasAggregationOutput() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Output only. Aggregation statistics derived from results of
+     * EvaluationService.EvaluateDataset.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AggregationOutput aggregation_output = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The aggregationOutput. + */ + public com.google.cloud.aiplatform.v1beta1.AggregationOutput getAggregationOutput() { + if (aggregationOutputBuilder_ == null) { + return aggregationOutput_ == null + ? com.google.cloud.aiplatform.v1beta1.AggregationOutput.getDefaultInstance() + : aggregationOutput_; + } else { + return aggregationOutputBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Aggregation statistics derived from results of
+     * EvaluationService.EvaluateDataset.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AggregationOutput aggregation_output = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAggregationOutput( + com.google.cloud.aiplatform.v1beta1.AggregationOutput value) { + if (aggregationOutputBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + aggregationOutput_ = value; + } else { + aggregationOutputBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Aggregation statistics derived from results of
+     * EvaluationService.EvaluateDataset.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AggregationOutput aggregation_output = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAggregationOutput( + com.google.cloud.aiplatform.v1beta1.AggregationOutput.Builder builderForValue) { + if (aggregationOutputBuilder_ == null) { + aggregationOutput_ = builderForValue.build(); + } else { + aggregationOutputBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Aggregation statistics derived from results of
+     * EvaluationService.EvaluateDataset.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AggregationOutput aggregation_output = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeAggregationOutput( + com.google.cloud.aiplatform.v1beta1.AggregationOutput value) { + if (aggregationOutputBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && aggregationOutput_ != null + && aggregationOutput_ + != com.google.cloud.aiplatform.v1beta1.AggregationOutput.getDefaultInstance()) { + getAggregationOutputBuilder().mergeFrom(value); + } else { + aggregationOutput_ = value; + } + } else { + aggregationOutputBuilder_.mergeFrom(value); + } + if (aggregationOutput_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Aggregation statistics derived from results of
+     * EvaluationService.EvaluateDataset.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AggregationOutput aggregation_output = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearAggregationOutput() { + bitField0_ = (bitField0_ & ~0x00000001); + aggregationOutput_ = null; + if (aggregationOutputBuilder_ != null) { + aggregationOutputBuilder_.dispose(); + aggregationOutputBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Aggregation statistics derived from results of
+     * EvaluationService.EvaluateDataset.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AggregationOutput aggregation_output = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.AggregationOutput.Builder + getAggregationOutputBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getAggregationOutputFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Aggregation statistics derived from results of
+     * EvaluationService.EvaluateDataset.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AggregationOutput aggregation_output = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.AggregationOutputOrBuilder + getAggregationOutputOrBuilder() { + if (aggregationOutputBuilder_ != null) { + return aggregationOutputBuilder_.getMessageOrBuilder(); + } else { + return aggregationOutput_ == null + ? com.google.cloud.aiplatform.v1beta1.AggregationOutput.getDefaultInstance() + : aggregationOutput_; + } + } + + /** + * + * + *
+     * Output only. Aggregation statistics derived from results of
+     * EvaluationService.EvaluateDataset.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AggregationOutput aggregation_output = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.AggregationOutput, + com.google.cloud.aiplatform.v1beta1.AggregationOutput.Builder, + com.google.cloud.aiplatform.v1beta1.AggregationOutputOrBuilder> + getAggregationOutputFieldBuilder() { + if (aggregationOutputBuilder_ == null) { + aggregationOutputBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.AggregationOutput, + com.google.cloud.aiplatform.v1beta1.AggregationOutput.Builder, + com.google.cloud.aiplatform.v1beta1.AggregationOutputOrBuilder>( + getAggregationOutput(), getParentForChildren(), isClean()); + aggregationOutput_ = null; + } + return aggregationOutputBuilder_; + } + private com.google.cloud.aiplatform.v1beta1.OutputInfo outputInfo_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.OutputInfo, @@ -506,7 +833,7 @@ public Builder mergeFrom( * @return Whether the outputInfo field is set. */ public boolean hasOutputInfo() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** @@ -552,7 +879,7 @@ public Builder setOutputInfo(com.google.cloud.aiplatform.v1beta1.OutputInfo valu } else { outputInfoBuilder_.setMessage(value); } - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -575,7 +902,7 @@ public Builder setOutputInfo( } else { outputInfoBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -593,7 +920,7 @@ public Builder setOutputInfo( */ public Builder mergeOutputInfo(com.google.cloud.aiplatform.v1beta1.OutputInfo value) { if (outputInfoBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) + if (((bitField0_ & 0x00000002) != 0) && outputInfo_ != null && outputInfo_ != com.google.cloud.aiplatform.v1beta1.OutputInfo.getDefaultInstance()) { getOutputInfoBuilder().mergeFrom(value); @@ -604,7 +931,7 @@ public Builder mergeOutputInfo(com.google.cloud.aiplatform.v1beta1.OutputInfo va outputInfoBuilder_.mergeFrom(value); } if (outputInfo_ != null) { - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); } return this; @@ -622,7 +949,7 @@ public Builder mergeOutputInfo(com.google.cloud.aiplatform.v1beta1.OutputInfo va *
*/ public Builder clearOutputInfo() { - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); outputInfo_ = null; if (outputInfoBuilder_ != null) { outputInfoBuilder_.dispose(); @@ -644,7 +971,7 @@ public Builder clearOutputInfo() { *
*/ public com.google.cloud.aiplatform.v1beta1.OutputInfo.Builder getOutputInfoBuilder() { - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); return getOutputInfoFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateDatasetResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateDatasetResponseOrBuilder.java index 85e1c04d9a4c..4941abc24112 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateDatasetResponseOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateDatasetResponseOrBuilder.java @@ -24,6 +24,52 @@ public interface EvaluateDatasetResponseOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+   * Output only. Aggregation statistics derived from results of
+   * EvaluationService.EvaluateDataset.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AggregationOutput aggregation_output = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the aggregationOutput field is set. + */ + boolean hasAggregationOutput(); + + /** + * + * + *
+   * Output only. Aggregation statistics derived from results of
+   * EvaluationService.EvaluateDataset.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AggregationOutput aggregation_output = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The aggregationOutput. + */ + com.google.cloud.aiplatform.v1beta1.AggregationOutput getAggregationOutput(); + + /** + * + * + *
+   * Output only. Aggregation statistics derived from results of
+   * EvaluationService.EvaluateDataset.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AggregationOutput aggregation_output = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.AggregationOutputOrBuilder getAggregationOutputOrBuilder(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceProto.java index 8530a0436b58..d2f1ff8647d1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceProto.java @@ -40,6 +40,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_OutputInfo_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_OutputInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_AggregationOutput_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_AggregationOutput_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_AggregationResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_AggregationResult_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_EvaluateDatasetRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -687,39 +695,60 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/v1beta1/operation.proto\032#google/longrunning/operations.proto\"w\n" + " EvaluateDatasetOperationMetadata\022S\n" + "\020generic_metadata\030\001 " - + "\001(\01329.google.cloud.aiplatform.v1beta1.GenericOperationMetadata\"`\n" - + "\027EvaluateDatasetResponse\022E\n" - + "\013output_info\030\003 \001(\0132+.google." - + "cloud.aiplatform.v1beta1.OutputInfoB\003\340A\003\"D\n\n" + + "\001(\01329.google.cloud.aiplatform.v1beta1.GenericOperationMetadata\"\265\001\n" + + "\027EvaluateDatasetResponse\022S\n" + + "\022aggregation_output\030\001 \001(\01322" + + ".google.cloud.aiplatform.v1beta1.AggregationOutputB\003\340A\003\022E\n" + + "\013output_info\030\003 \001(\0132+.g" + + "oogle.cloud.aiplatform.v1beta1.OutputInfoB\003\340A\003\"D\n\n" + "OutputInfo\022#\n" + "\024gcs_output_directory\030\001 \001(\tB\003\340A\003H\000B\021\n" - + "\017output_location\"\372\002\n" + + "\017output_location\"\251\001\n" + + "\021AggregationOutput\022C\n" + + "\007dataset\030\001 \001(\01322.go" + + "ogle.cloud.aiplatform.v1beta1.EvaluationDataset\022O\n" + + "\023aggregation_results\030\002 \003(\01322.g" + + "oogle.cloud.aiplatform.v1beta1.AggregationResult\"\260\004\n" + + "\021AggregationResult\022Y\n" + + "\027pointwise_metric_result\030\005 \001(\01326.google.cloud.a" + + "iplatform.v1beta1.PointwiseMetricResultH\000\022W\n" + + "\026pairwise_metric_result\030\006 \001(\01325.goog" + + "le.cloud.aiplatform.v1beta1.PairwiseMetricResultH\000\022Z\n" + + "\030exact_match_metric_value\030\007" + + " \001(\01326.google.cloud.aiplatform.v1beta1.ExactMatchMetricValueH\000\022M\n" + + "\021bleu_metric_value\030\010" + + " \001(\01320.google.cloud.aiplatform.v1beta1.BleuMetricValueH\000\022O\n" + + "\022rouge_metric_value\030\t" + + " \001(\01321.google.cloud.aiplatform.v1beta1.RougeMetricValueH\000\022U\n" + + "\022aggregation_metric\030\004" + + " \001(\01629.google.cloud.aiplatform.v1beta1.Metric.AggregationMetricB\024\n" + + "\022aggregation_result\"\372\002\n" + "\026EvaluateDatasetRequest\022;\n" + "\010location\030\001 \001(\tB)\340A\002\372A#\n" + "!locations.googleapis.com/Location\022H\n" - + "\007dataset\030\002" - + " \001(\01322.google.cloud.aiplatform.v1beta1.EvaluationDatasetB\003\340A\002\022=\n" + + "\007dataset\030\002 \001(\01322.g" + + "oogle.cloud.aiplatform.v1beta1.EvaluationDatasetB\003\340A\002\022=\n" + "\007metrics\030\003" + " \003(\0132\'.google.cloud.aiplatform.v1beta1.MetricB\003\340A\002\022I\n\r" - + "output_config\030\004 \001(\0132-" - + ".google.cloud.aiplatform.v1beta1.OutputConfigB\003\340A\002\022O\n" - + "\020autorater_config\030\005 \001(\01320.g" - + "oogle.cloud.aiplatform.v1beta1.AutoraterConfigB\003\340A\001\"i\n" + + "output_config\030\004" + + " \001(\0132-.google.cloud.aiplatform.v1beta1.OutputConfigB\003\340A\002\022O\n" + + "\020autorater_config\030\005" + + " \001(\01320.google.cloud.aiplatform.v1beta1.AutoraterConfigB\003\340A\001\"i\n" + "\014OutputConfig\022J\n" - + "\017gcs_destination\030\001" - + " \001(\0132/.google.cloud.aiplatform.v1beta1.GcsDestinationH\000B\r\n" + + "\017gcs_destination\030\001 \001(\0132/.goog" + + "le.cloud.aiplatform.v1beta1.GcsDestinationH\000B\r\n" + "\013destination\"\310\005\n" + "\006Metric\022U\n" - + "\025pointwise_metric_spec\030\002 \001(\013" - + "24.google.cloud.aiplatform.v1beta1.PointwiseMetricSpecH\000\022S\n" - + "\024pairwise_metric_spec\030\003" - + " \001(\01323.google.cloud.aiplatform.v1beta1.PairwiseMetricSpecH\000\022K\n" - + "\020exact_match_spec\030\004" - + " \001(\0132/.google.cloud.aiplatform.v1beta1.ExactMatchSpecH\000\022>\n" + + "\025pointwise_metric_spec\030\002" + + " \001(\01324.google.cloud.aiplatform.v1beta1.PointwiseMetricSpecH\000\022S\n" + + "\024pairwise_metric_spec\030\003 \001(\01323.google.clo" + + "ud.aiplatform.v1beta1.PairwiseMetricSpecH\000\022K\n" + + "\020exact_match_spec\030\004 \001(\0132/.google.cl" + + "oud.aiplatform.v1beta1.ExactMatchSpecH\000\022>\n" + "\tbleu_spec\030\005 \001(\0132).google.cloud.aiplatform.v1beta1.BleuSpecH\000\022@\n\n" + "rouge_spec\030\006 \001(\0132*.google.cloud.aiplatform.v1beta1.RougeSpecH\000\022[\n" - + "\023aggregation_metrics\030\001 \003(\01629.google.cloud.aiplatf" - + "orm.v1beta1.Metric.AggregationMetricB\003\340A\001\"\326\001\n" + + "\023aggregation_metrics\030\001 \003(\01629" + + ".google.cloud.aiplatform.v1beta1.Metric.AggregationMetricB\003\340A\001\"\326\001\n" + "\021AggregationMetric\022\"\n" + "\036AGGREGATION_METRIC_UNSPECIFIED\020\000\022\013\n" + "\007AVERAGE\020\001\022\010\n" @@ -746,166 +775,164 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017_sampling_countB\017\n\r" + "_flip_enabled\"\202\031\n" + "\030EvaluateInstancesRequest\022M\n" - + "\021exact_match_input\030\002" - + " \001(\01320.google.cloud.aiplatform.v1beta1.ExactMatchInputH\000\022@\n\n" + + "\021exact_match_input\030\002 \001(\01320.g" + + "oogle.cloud.aiplatform.v1beta1.ExactMatchInputH\000\022@\n\n" + "bleu_input\030\003 \001(\0132*.google.cloud.aiplatform.v1beta1.BleuInputH\000\022B\n" - + "\013rouge_input\030\004 \001(\0132+.goo" - + "gle.cloud.aiplatform.v1beta1.RougeInputH\000\022F\n\r" + + "\013rouge_input\030\004" + + " \001(\0132+.google.cloud.aiplatform.v1beta1.RougeInputH\000\022F\n\r" + "fluency_input\030\005" + " \001(\0132-.google.cloud.aiplatform.v1beta1.FluencyInputH\000\022J\n" - + "\017coherence_input\030\006" - + " \001(\0132/.google.cloud.aiplatform.v1beta1.CoherenceInputH\000\022D\n" - + "\014safety_input\030\010" - + " \001(\0132,.google.cloud.aiplatform.v1beta1.SafetyInputH\000\022P\n" - + "\022groundedness_input\030\t" - + " \001(\01322.google.cloud.aiplatform.v1beta1.GroundednessInputH\000\022N\n" - + "\021fulfillment_input\030\014" - + " \001(\01321.google.cloud.aiplatform.v1beta1.FulfillmentInputH\000\022a\n" - + "\033summarization_quality_input\030\007 \001(\0132:.google.cloud.aiplat" - + "form.v1beta1.SummarizationQualityInputH\000\022r\n" - + "$pairwise_summarization_quality_input\030\027" - + " \001(\0132B.google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInputH\000\022i\n" - + "\037summarization_helpfulness_input\030\016 \001(\0132>." - + "google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInputH\000\022e\n" - + "\035summarization_verbosity_input\030\017 \001(\0132<.google.cloud.ai" - + "platform.v1beta1.SummarizationVerbosityInputH\000\022j\n" + + "\017coherence_input\030\006 \001(\0132" + + "/.google.cloud.aiplatform.v1beta1.CoherenceInputH\000\022D\n" + + "\014safety_input\030\010 \001(\0132,.googl" + + "e.cloud.aiplatform.v1beta1.SafetyInputH\000\022P\n" + + "\022groundedness_input\030\t \001(\01322.google.cl" + + "oud.aiplatform.v1beta1.GroundednessInputH\000\022N\n" + + "\021fulfillment_input\030\014 \001(\01321.google.c" + + "loud.aiplatform.v1beta1.FulfillmentInputH\000\022a\n" + + "\033summarization_quality_input\030\007 \001(\0132" + + ":.google.cloud.aiplatform.v1beta1.SummarizationQualityInputH\000\022r\n" + + "$pairwise_summarization_quality_input\030\027 \001(\0132B.google.clo" + + "ud.aiplatform.v1beta1.PairwiseSummarizationQualityInputH\000\022i\n" + + "\037summarization_helpfulness_input\030\016 \001(\0132>.google.cloud.aiplat" + + "form.v1beta1.SummarizationHelpfulnessInputH\000\022e\n" + + "\035summarization_verbosity_input\030\017 " + + "\001(\0132<.google.cloud.aiplatform.v1beta1.SummarizationVerbosityInputH\000\022j\n" + " question_answering_quality_input\030\n" + " \001(\0132>.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInputH\000\022{\n" - + ")pairwise_question_answering_quality_input\030\030" - + " \001(\0132F.google.cloud.aiplatform.v1beta1." - + "PairwiseQuestionAnsweringQualityInputH\000\022n\n" - + "\"question_answering_relevance_input\030\020 " - + "\001(\0132@.google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInputH\000\022r\n" - + "$question_answering_helpfulness_input\030\021 \001(\0132B." - + "google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInputH\000\022r\n" - + "$question_answering_correctness_input\030\022 \001(\0132B.goog" - + "le.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInputH\000\022W\n" - + "\026pointwise_metric_input\030\034" - + " \001(\01325.google.cloud.aiplatform.v1beta1.PointwiseMetricInputH\000\022U\n" - + "\025pairwise_metric_input\030\035 \001(\01324.google.cloud.a" - + "iplatform.v1beta1.PairwiseMetricInputH\000\022T\n" - + "\025tool_call_valid_input\030\023 \001(\01323.google." - + "cloud.aiplatform.v1beta1.ToolCallValidInputH\000\022T\n" - + "\025tool_name_match_input\030\024 \001(\01323.g" - + "oogle.cloud.aiplatform.v1beta1.ToolNameMatchInputH\000\022e\n" - + "\036tool_parameter_key_match_input\030\025" - + " \001(\0132;.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchInputH\000\022c\n" - + "\035tool_parameter_kv_match_input\030\026 \001(\0132:.goog" - + "le.cloud.aiplatform.v1beta1.ToolParameterKVMatchInputH\000\022B\n" - + "\013comet_input\030\037 \001(\0132+.g" - + "oogle.cloud.aiplatform.v1beta1.CometInputH\000\022F\n\r" + + ")pairwise_question_answering_quality_input\030\030 \001(\0132F.google.clou" + + "d.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInputH\000\022n\n" + + "\"question_answering_relevance_input\030\020 \001(\0132@.google.cloud." + + "aiplatform.v1beta1.QuestionAnsweringRelevanceInputH\000\022r\n" + + "$question_answering_helpfulness_input\030\021 \001(\0132B.google.cloud.aiplat" + + "form.v1beta1.QuestionAnsweringHelpfulnessInputH\000\022r\n" + + "$question_answering_correctness_input\030\022 \001(\0132B.google.cloud.aiplatform" + + ".v1beta1.QuestionAnsweringCorrectnessInputH\000\022W\n" + + "\026pointwise_metric_input\030\034 \001(\01325.g" + + "oogle.cloud.aiplatform.v1beta1.PointwiseMetricInputH\000\022U\n" + + "\025pairwise_metric_input\030\035" + + " \001(\01324.google.cloud.aiplatform.v1beta1.PairwiseMetricInputH\000\022T\n" + + "\025tool_call_valid_input\030\023" + + " \001(\01323.google.cloud.aiplatform.v1beta1.ToolCallValidInputH\000\022T\n" + + "\025tool_name_match_input\030\024" + + " \001(\01323.google.cloud.aiplatform.v1beta1.ToolNameMatchInputH\000\022e\n" + + "\036tool_parameter_key_match_input\030\025 \001(\0132;.googl" + + "e.cloud.aiplatform.v1beta1.ToolParameterKeyMatchInputH\000\022c\n" + + "\035tool_parameter_kv_match_input\030\026" + + " \001(\0132:.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchInputH\000\022B\n" + + "\013comet_input\030\037" + + " \001(\0132+.google.cloud.aiplatform.v1beta1.CometInputH\000\022F\n\r" + "metricx_input\030 " + " \001(\0132-.google.cloud.aiplatform.v1beta1.MetricxInputH\000\022b\n" - + "\034trajectory_exact_match_input\030! \001(\0132:.goog" - + "le.cloud.aiplatform.v1beta1.TrajectoryExactMatchInputH\000\022g\n" - + "\037trajectory_in_order_match_input\030\" \001(\0132<.google.cloud.aiplatfo" - + "rm.v1beta1.TrajectoryInOrderMatchInputH\000\022i\n" - + " trajectory_any_order_match_input\030# \001" - + "(\0132=.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInputH\000\022_\n" - + "\032trajectory_precision_input\030% \001(\01329.google.cloud.a" - + "iplatform.v1beta1.TrajectoryPrecisionInputH\000\022Y\n" - + "\027trajectory_recall_input\030& \001(\01326." - + "google.cloud.aiplatform.v1beta1.TrajectoryRecallInputH\000\022i\n" - + " trajectory_single_tool_use_input\030\' \001(\0132=.google.cloud.aiplatf" - + "orm.v1beta1.TrajectorySingleToolUseInputH\000\022y\n" - + "(rubric_based_instruction_following_input\030( \001(\0132E.google.cloud.aiplatform.v" - + "1beta1.RubricBasedInstructionFollowingInputH\000\022;\n" + + "\034trajectory_exact_match_input\030!" + + " \001(\0132:.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInputH\000\022g\n" + + "\037trajectory_in_order_match_input\030\" \001(\0132<." + + "google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInputH\000\022i\n" + + " trajectory_any_order_match_input\030# \001(\0132=.google.cloud.a" + + "iplatform.v1beta1.TrajectoryAnyOrderMatchInputH\000\022_\n" + + "\032trajectory_precision_input\030%" + + " \001(\01329.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInputH\000\022Y\n" + + "\027trajectory_recall_input\030&" + + " \001(\01326.google.cloud.aiplatform.v1beta1.TrajectoryRecallInputH\000\022i\n" + + " trajectory_single_tool_use_input\030\' \001(\0132=" + + ".google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInputH\000\022y\n" + + "(rubric_based_instruction_following_input\030( \001(\0132E.goog" + + "le.cloud.aiplatform.v1beta1.RubricBasedInstructionFollowingInputH\000\022;\n" + "\010location\030\001 \001(\tB)\340A\002\372A#\n" + "!locations.googleapis.com/Location\022O\n" - + "\020autorater_config\030\036" - + " \001(\01320.google.cloud.aiplatform.v1beta1.AutoraterConfigB\003\340A\001B\017\n\r" + + "\020autorater_config\030\036 \001(\01320.goog" + + "le.cloud.aiplatform.v1beta1.AutoraterConfigB\003\340A\001B\017\n\r" + "metric_inputs\"\324\030\n" + "\031EvaluateInstancesResponse\022Q\n" + "\023exact_match_results\030\001" + " \001(\01322.google.cloud.aiplatform.v1beta1.ExactMatchResultsH\000\022D\n" - + "\014bleu_results\030\002" - + " \001(\0132,.google.cloud.aiplatform.v1beta1.BleuResultsH\000\022F\n\r" - + "rouge_results\030\003" - + " \001(\0132-.google.cloud.aiplatform.v1beta1.RougeResultsH\000\022H\n" - + "\016fluency_result\030\004 " - + "\001(\0132..google.cloud.aiplatform.v1beta1.FluencyResultH\000\022L\n" - + "\020coherence_result\030\005 \001(\0132" - + "0.google.cloud.aiplatform.v1beta1.CoherenceResultH\000\022F\n\r" - + "safety_result\030\007 \001(\0132-.goo" - + "gle.cloud.aiplatform.v1beta1.SafetyResultH\000\022R\n" - + "\023groundedness_result\030\010 \001(\01323.googl" - + "e.cloud.aiplatform.v1beta1.GroundednessResultH\000\022P\n" - + "\022fulfillment_result\030\013 \001(\01322.go" - + "ogle.cloud.aiplatform.v1beta1.FulfillmentResultH\000\022c\n" - + "\034summarization_quality_result\030\006" - + " \001(\0132;.google.cloud.aiplatform.v1beta1.SummarizationQualityResultH\000\022t\n" - + "%pairwise_summarization_quality_result\030\026 \001(\0132C." - + "google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResultH\000\022k\n" + + "\014bleu_results\030\002 \001(\013" + + "2,.google.cloud.aiplatform.v1beta1.BleuResultsH\000\022F\n\r" + + "rouge_results\030\003 \001(\0132-.google" + + ".cloud.aiplatform.v1beta1.RougeResultsH\000\022H\n" + + "\016fluency_result\030\004" + + " \001(\0132..google.cloud.aiplatform.v1beta1.FluencyResultH\000\022L\n" + + "\020coherence_result\030\005" + + " \001(\01320.google.cloud.aiplatform.v1beta1.CoherenceResultH\000\022F\n\r" + + "safety_result\030\007" + + " \001(\0132-.google.cloud.aiplatform.v1beta1.SafetyResultH\000\022R\n" + + "\023groundedness_result\030\010" + + " \001(\01323.google.cloud.aiplatform.v1beta1.GroundednessResultH\000\022P\n" + + "\022fulfillment_result\030\013" + + " \001(\01322.google.cloud.aiplatform.v1beta1.FulfillmentResultH\000\022c\n" + + "\034summarization_quality_result\030\006 \001(\0132;.google.cl" + + "oud.aiplatform.v1beta1.SummarizationQualityResultH\000\022t\n" + + "%pairwise_summarization_quality_result\030\026 \001(\0132C.google.cloud.aiplat" + + "form.v1beta1.PairwiseSummarizationQualityResultH\000\022k\n" + " summarization_helpfulness_result\030\r" - + " \001(\0132?.google." - + "cloud.aiplatform.v1beta1.SummarizationHelpfulnessResultH\000\022g\n" - + "\036summarization_verbosity_result\030\016 \001(\0132=.google.cloud.aiplatf" - + "orm.v1beta1.SummarizationVerbosityResultH\000\022l\n" - + "!question_answering_quality_result\030\t" - + " \001(\0132?.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResultH\000\022}\n" - + "*pairwise_question_answering_quality_result\030\027" - + " \001(\0132G.google.cloud.aiplatform.v1beta1.P" - + "airwiseQuestionAnsweringQualityResultH\000\022p\n" - + "#question_answering_relevance_result\030\017" - + " \001(\0132A.google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResultH\000\022t\n" - + "%question_answering_helpfulness_result\030\020 \001(\013" - + "2C.google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResultH\000\022t\n" - + "%question_answering_correctness_result\030\021 \001(\0132C" - + ".google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResultH\000\022Y\n" - + "\027pointwise_metric_result\030\033 \001(\01326.google.cloud.ai" - + "platform.v1beta1.PointwiseMetricResultH\000\022W\n" - + "\026pairwise_metric_result\030\034 \001(\01325.googl" - + "e.cloud.aiplatform.v1beta1.PairwiseMetricResultH\000\022X\n" - + "\027tool_call_valid_results\030\022 \001" - + "(\01325.google.cloud.aiplatform.v1beta1.ToolCallValidResultsH\000\022X\n" - + "\027tool_name_match_results\030\023" - + " \001(\01325.google.cloud.aiplatform.v1beta1.ToolNameMatchResultsH\000\022i\n" - + " tool_parameter_key_match_results\030\024 \001(\0132=.google" - + ".cloud.aiplatform.v1beta1.ToolParameterKeyMatchResultsH\000\022g\n" - + "\037tool_parameter_kv_match_results\030\025 \001(\0132<.google.cloud.aiplatf" - + "orm.v1beta1.ToolParameterKVMatchResultsH\000\022D\n" + + " \001(\0132?.google.cloud.aiplatform.v1" + + "beta1.SummarizationHelpfulnessResultH\000\022g\n" + + "\036summarization_verbosity_result\030\016 \001(\0132=" + + ".google.cloud.aiplatform.v1beta1.SummarizationVerbosityResultH\000\022l\n" + + "!question_answering_quality_result\030\t \001(\0132?.google.clou" + + "d.aiplatform.v1beta1.QuestionAnsweringQualityResultH\000\022}\n" + + "*pairwise_question_answering_quality_result\030\027 \001(\0132G.google.cloud" + + ".aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResultH\000\022p\n" + + "#question_answering_relevance_result\030\017 \001(\0132A.google.cloud" + + ".aiplatform.v1beta1.QuestionAnsweringRelevanceResultH\000\022t\n" + + "%question_answering_helpfulness_result\030\020 \001(\0132C.google.cloud.aip" + + "latform.v1beta1.QuestionAnsweringHelpfulnessResultH\000\022t\n" + + "%question_answering_correctness_result\030\021 \001(\0132C.google.cloud.aipla" + + "tform.v1beta1.QuestionAnsweringCorrectnessResultH\000\022Y\n" + + "\027pointwise_metric_result\030\033 " + + "\001(\01326.google.cloud.aiplatform.v1beta1.PointwiseMetricResultH\000\022W\n" + + "\026pairwise_metric_result\030\034" + + " \001(\01325.google.cloud.aiplatform.v1beta1.PairwiseMetricResultH\000\022X\n" + + "\027tool_call_valid_results\030\022 \001(\01325.google.cloud.a" + + "iplatform.v1beta1.ToolCallValidResultsH\000\022X\n" + + "\027tool_name_match_results\030\023 \001(\01325.goog" + + "le.cloud.aiplatform.v1beta1.ToolNameMatchResultsH\000\022i\n" + + " tool_parameter_key_match_results\030\024" + + " \001(\0132=.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResultsH\000\022g\n" + + "\037tool_parameter_kv_match_results\030\025 \001(\0132<" + + ".google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResultsH\000\022D\n" + "\014comet_result\030\035" + " \001(\0132,.google.cloud.aiplatform.v1beta1.CometResultH\000\022H\n" - + "\016metricx_result\030\036" - + " \001(\0132..google.cloud.aiplatform.v1beta1.MetricxResultH\000\022f\n" - + "\036trajectory_exact_match_results\030\037 \001(\0132<.google.cloud" - + ".aiplatform.v1beta1.TrajectoryExactMatchResultsH\000\022k\n" - + "!trajectory_in_order_match_results\030 \001(\0132>.google.cloud.aiplatform.v" - + "1beta1.TrajectoryInOrderMatchResultsH\000\022m\n" - + "\"trajectory_any_order_match_results\030! \001" - + "(\0132?.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResultsH\000\022c\n" - + "\034trajectory_precision_results\030# \001(\0132;.google.clo" - + "ud.aiplatform.v1beta1.TrajectoryPrecisionResultsH\000\022]\n" - + "\031trajectory_recall_results\030$" - + " \001(\01328.google.cloud.aiplatform.v1beta1.TrajectoryRecallResultsH\000\022m\n" - + "\"trajectory_single_tool_use_results\030% \001(\0132?.google.c" - + "loud.aiplatform.v1beta1.TrajectorySingleToolUseResultsH\000\022{\n" - + ")rubric_based_instruction_following_result\030& \001(\0132F.google.clo" - + "ud.aiplatform.v1beta1.RubricBasedInstructionFollowingResultH\000B\024\n" + + "\016metricx_result\030\036 \001(\0132..g" + + "oogle.cloud.aiplatform.v1beta1.MetricxResultH\000\022f\n" + + "\036trajectory_exact_match_results\030\037" + + " \001(\0132<.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResultsH\000\022k\n" + + "!trajectory_in_order_match_results\030 \001(\0132>.goog" + + "le.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResultsH\000\022m\n" + + "\"trajectory_any_order_match_results\030! \001(\0132?.google.cloud.a" + + "iplatform.v1beta1.TrajectoryAnyOrderMatchResultsH\000\022c\n" + + "\034trajectory_precision_results\030#" + + " \001(\0132;.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResultsH\000\022]\n" + + "\031trajectory_recall_results\030$ \001(\01328.google.clou" + + "d.aiplatform.v1beta1.TrajectoryRecallResultsH\000\022m\n" + + "\"trajectory_single_tool_use_results\030%" + + " \001(\0132?.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResultsH\000\022{\n" + + ")rubric_based_instruction_following_result\030&" + + " \001(\0132F.google.cloud.aiplatform.v1bet" + + "a1.RubricBasedInstructionFollowingResultH\000B\024\n" + "\022evaluation_results\"\251\001\n" + "\017ExactMatchInput\022I\n" - + "\013metric_spec\030\001" - + " \001(\0132/.google.cloud.aiplatform.v1beta1.ExactMatchSpecB\003\340A\002\022K\n" - + "\tinstances\030\002 \003(\01323." - + "google.cloud.aiplatform.v1beta1.ExactMatchInstanceB\003\340A\002\"l\n" - + "\022ExactMatchInstance\022\034\n" - + "\n" + + "\013metric_spec\030\001 \001(\0132/.google.cloud" + + ".aiplatform.v1beta1.ExactMatchSpecB\003\340A\002\022K\n" + + "\tinstances\030\002" + + " \003(\01323.google.cloud.aiplatform.v1beta1.ExactMatchInstanceB\003\340A\002\"l\n" + + "\022ExactMatchInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n" + "\treference\030\002 \001(\tB\003\340A\002H\001\210\001\001B\r\n" + "\013_predictionB\014\n\n" + "_reference\"\020\n" + "\016ExactMatchSpec\"s\n" + "\021ExactMatchResults\022^\n" - + "\031exact_match_metric_values\030\001 \003(\0132" - + "6.google.cloud.aiplatform.v1beta1.ExactMatchMetricValueB\003\340A\003\":\n" + + "\031exact_match_metric_values\030\001 \003(\01326.google.cloud.aipl" + + "atform.v1beta1.ExactMatchMetricValueB\003\340A\003\":\n" + "\025ExactMatchMetricValue\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"\227\001\n" + "\tBleuInput\022C\n" - + "\013metric_spec\030\001 \001(\0132).go" - + "ogle.cloud.aiplatform.v1beta1.BleuSpecB\003\340A\002\022E\n" - + "\tinstances\030\002" - + " \003(\0132-.google.cloud.aiplatform.v1beta1.BleuInstanceB\003\340A\002\"f\n" + + "\013metric_spec\030\001" + + " \001(\0132).google.cloud.aiplatform.v1beta1.BleuSpecB\003\340A\002\022E\n" + + "\tinstances\030\002 " + + "\003(\0132-.google.cloud.aiplatform.v1beta1.BleuInstanceB\003\340A\002\"f\n" + "\014BleuInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n" + "\treference\030\002 \001(\tB\003\340A\002H\001\210\001\001B\r\n" @@ -914,16 +941,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010BleuSpec\022 \n" + "\023use_effective_order\030\001 \001(\010B\003\340A\001\"`\n" + "\013BleuResults\022Q\n" - + "\022bleu_metric_values\030\001 \003(\01320.google.clo" - + "ud.aiplatform.v1beta1.BleuMetricValueB\003\340A\003\"4\n" + + "\022bleu_metric_values\030\001" + + " \003(\01320.google.cloud.aiplatform.v1beta1.BleuMetricValueB\003\340A\003\"4\n" + "\017BleuMetricValue\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"\232\001\n\n" + "RougeInput\022D\n" - + "\013metric_spec\030\001" - + " \001(\0132*.google.cloud.aiplatform.v1beta1.RougeSpecB\003\340A\002\022F\n" - + "\tinstances\030\002 \003(\013" - + "2..google.cloud.aiplatform.v1beta1.RougeInstanceB\003\340A\002\"g\n\r" + + "\013metric_spec\030\001 \001(\0132*.goog" + + "le.cloud.aiplatform.v1beta1.RougeSpecB\003\340A\002\022F\n" + + "\tinstances\030\002" + + " \003(\0132..google.cloud.aiplatform.v1beta1.RougeInstanceB\003\340A\002\"g\n\r" + "RougeInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n" + "\treference\030\002 \001(\tB\003\340A\002H\001\210\001\001B\r\n" @@ -934,18 +961,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013use_stemmer\030\002 \001(\010B\003\340A\001\022\034\n" + "\017split_summaries\030\003 \001(\010B\003\340A\001\"c\n" + "\014RougeResults\022S\n" - + "\023rouge_metric_values\030\001" - + " \003(\01321.google.cloud.aiplatform.v1beta1.RougeMetricValueB\003\340A\003\"5\n" + + "\023rouge_metric_values\030\001 \003(\01321" + + ".google.cloud.aiplatform.v1beta1.RougeMetricValueB\003\340A\003\"5\n" + "\020RougeMetricValue\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"\245\001\n" + "\016CoherenceInput\022H\n" - + "\013metric_spec\030\001" - + " \001(\0132..google.cloud.aiplatform.v1beta1.CoherenceSpecB\003\340A\002\022I\n" - + "\010instance\030\002 \001(\0132" - + "2.google.cloud.aiplatform.v1beta1.CoherenceInstanceB\003\340A\002\"@\n" - + "\021CoherenceInstance\022\034\n" - + "\n" + + "\013metric_spec\030\001 \001(\0132..google.c" + + "loud.aiplatform.v1beta1.CoherenceSpecB\003\340A\002\022I\n" + + "\010instance\030\002" + + " \001(\01322.google.cloud.aiplatform.v1beta1.CoherenceInstanceB\003\340A\002\"@\n" + + "\021CoherenceInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001B\r\n" + "\013_prediction\"%\n\r" + "CoherenceSpec\022\024\n" @@ -959,10 +985,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014FluencyInput\022F\n" + "\013metric_spec\030\001" + " \001(\0132,.google.cloud.aiplatform.v1beta1.FluencySpecB\003\340A\002\022G\n" - + "\010instance\030\002 \001(\01320.goog" - + "le.cloud.aiplatform.v1beta1.FluencyInstanceB\003\340A\002\">\n" + + "\010instance\030\002" + + " \001(\01320.google.cloud.aiplatform.v1beta1.FluencyInstanceB\003\340A\002\">\n" + "\017FluencyInstance\022\034\n\n" - + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001B\r\n" + + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001B\r" + + "\n" + "\013_prediction\"#\n" + "\013FluencySpec\022\024\n" + "\007version\030\001 \001(\005B\003\340A\001\"y\n\r" @@ -970,13 +997,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001\022\030\n" + "\013explanation\030\002 \001(\tB\003\340A\003\022\034\n\n" + "confidence\030\003 \001(\002B\003\340A\003H\001\210\001\001B\010\n" - + "\006_scoreB\r\n" + + "\006_scoreB\r" + + "\n" + "\013_confidence\"\234\001\n" + "\013SafetyInput\022E\n" - + "\013metric_spec\030\001 \001(\0132+.google.c" - + "loud.aiplatform.v1beta1.SafetySpecB\003\340A\002\022F\n" - + "\010instance\030\002" - + " \001(\0132/.google.cloud.aiplatform.v1beta1.SafetyInstanceB\003\340A\002\"=\n" + + "\013metric_spec\030\001" + + " \001(\0132+.google.cloud.aiplatform.v1beta1.SafetySpecB\003\340A\002\022F\n" + + "\010instance\030\002 \001(\0132/" + + ".google.cloud.aiplatform.v1beta1.SafetyInstanceB\003\340A\002\"=\n" + "\016SafetyInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001B\r\n" + "\013_prediction\"\"\n\n" @@ -984,16 +1012,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007version\030\001 \001(\005B\003\340A\001\"x\n" + "\014SafetyResult\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001\022\030\n" - + "\013explanation\030\002 \001(\tB\003\340A\003\022\034\n" - + "\n" + + "\013explanation\030\002 \001(\tB\003\340A\003\022\034\n\n" + "confidence\030\003 \001(\002B\003\340A\003H\001\210\001\001B\010\n" + "\006_scoreB\r\n" + "\013_confidence\"\256\001\n" + "\021GroundednessInput\022K\n" - + "\013metric_spec\030\001" - + " \001(\01321.google.cloud.aiplatform.v1beta1.GroundednessSpecB\003\340A\002\022L\n" - + "\010instance\030\002" - + " \001(\01325.google.cloud.aiplatform.v1beta1.GroundednessInstanceB\003\340A\002\"j\n" + + "\013metric_spec\030\001 \001(\01321.g" + + "oogle.cloud.aiplatform.v1beta1.GroundednessSpecB\003\340A\002\022L\n" + + "\010instance\030\002 \001(\01325.google." + + "cloud.aiplatform.v1beta1.GroundednessInstanceB\003\340A\002\"j\n" + "\024GroundednessInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\031\n" + "\007context\030\002 \001(\tB\003\340A\002H\001\210\001\001B\r\n" @@ -1008,10 +1035,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_scoreB\r\n" + "\013_confidence\"\253\001\n" + "\020FulfillmentInput\022J\n" - + "\013metric_spec\030\001 \001(\01320.google.c" - + "loud.aiplatform.v1beta1.FulfillmentSpecB\003\340A\002\022K\n" - + "\010instance\030\002 \001(\01324.google.cloud.ai" - + "platform.v1beta1.FulfillmentInstanceB\003\340A\002\"q\n" + + "\013metric_spec\030\001" + + " \001(\01320.google.cloud.aiplatform.v1beta1.FulfillmentSpecB\003\340A\002\022K\n" + + "\010instance\030\002 " + + "\001(\01324.google.cloud.aiplatform.v1beta1.FulfillmentInstanceB\003\340A\002\"q\n" + "\023FulfillmentInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\035\n" + "\013instruction\030\002 \001(\tB\003\340A\002H\001\210\001\001B\r\n" @@ -1026,10 +1053,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_scoreB\r\n" + "\013_confidence\"\306\001\n" + "\031SummarizationQualityInput\022S\n" - + "\013metric_spec\030\001 \001(\01329.google.cloud.aiplatfor" - + "m.v1beta1.SummarizationQualitySpecB\003\340A\002\022T\n" - + "\010instance\030\002 \001(\0132=.google.cloud.aiplatf" - + "orm.v1beta1.SummarizationQualityInstanceB\003\340A\002\"\314\001\n" + + "\013metric_spec\030\001 \001(\01329.g" + + "oogle.cloud.aiplatform.v1beta1.SummarizationQualitySpecB\003\340A\002\022T\n" + + "\010instance\030\002 \001(\0132=" + + ".google.cloud.aiplatform.v1beta1.SummarizationQualityInstanceB\003\340A\002\"\314\001\n" + "\034SummarizationQualityInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n" + "\treference\030\002 \001(\tB\003\340A\001H\001\210\001\001\022\031\n" @@ -1049,10 +1076,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_scoreB\r\n" + "\013_confidence\"\336\001\n" + "!PairwiseSummarizationQualityInput\022[\n" - + "\013metric_spec\030\001 \001(\0132A.google.cloud.aiplatform.v1beta1" - + ".PairwiseSummarizationQualitySpecB\003\340A\002\022\\\n" - + "\010instance\030\002 \001(\0132E.google.cloud.aiplatfo" - + "rm.v1beta1.PairwiseSummarizationQualityInstanceB\003\340A\002\"\223\002\n" + + "\013metric_spec\030\001 \001(\0132A.google.clo" + + "ud.aiplatform.v1beta1.PairwiseSummarizationQualitySpecB\003\340A\002\022\\\n" + + "\010instance\030\002 \001(\0132E." + + "google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstanceB\003\340A\002\"\223\002\n" + "$PairwiseSummarizationQualityInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022%\n" + "\023baseline_prediction\030\002 \001(\tB\003\340A\002H\001\210\001\001\022\033\n" @@ -1068,16 +1095,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "use_reference\030\001 \001(\010B\003\340A\001\022\024\n" + "\007version\030\002 \001(\005B\003\340A\001\"\272\001\n" + "\"PairwiseSummarizationQualityResult\022M\n" - + "\017pairwise_choice\030\001 \001(\016" - + "2/.google.cloud.aiplatform.v1beta1.PairwiseChoiceB\003\340A\003\022\030\n" + + "\017pairwise_choice\030\001" + + " \001(\0162/.google.cloud.aiplatform.v1beta1.PairwiseChoiceB\003\340A\003\022\030\n" + "\013explanation\030\002 \001(\tB\003\340A\003\022\034\n\n" + "confidence\030\003 \001(\002B\003\340A\003H\000\210\001\001B\r\n" + "\013_confidence\"\322\001\n" + "\035SummarizationHelpfulnessInput\022W\n" - + "\013metric_spec\030\001 \001(\0132=.google.cloud.aipl" - + "atform.v1beta1.SummarizationHelpfulnessSpecB\003\340A\002\022X\n" - + "\010instance\030\002 \001(\0132A.google.clou" - + "d.aiplatform.v1beta1.SummarizationHelpfulnessInstanceB\003\340A\002\"\320\001\n" + + "\013metric_spec\030\001 \001(" + + "\0132=.google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpecB\003\340A\002\022X\n" + + "\010instance\030\002 \001(\0132A.google.cloud.aiplatform.v1beta" + + "1.SummarizationHelpfulnessInstanceB\003\340A\002\"\320\001\n" + " SummarizationHelpfulnessInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n" + "\treference\030\002 \001(\tB\003\340A\001H\001\210\001\001\022\031\n" @@ -1092,16 +1119,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007version\030\002 \001(\005B\003\340A\001\"\212\001\n" + "\036SummarizationHelpfulnessResult\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001\022\030\n" - + "\013explanation\030\002 \001(\tB\003\340A\003\022\034\n" - + "\n" + + "\013explanation\030\002 \001(\tB\003\340A\003\022\034\n\n" + "confidence\030\003 \001(\002B\003\340A\003H\001\210\001\001B\010\n" + "\006_scoreB\r\n" + "\013_confidence\"\314\001\n" + "\033SummarizationVerbosityInput\022U\n" - + "\013metric_spec\030\001 \001(\0132;.google.cloud" - + ".aiplatform.v1beta1.SummarizationVerbositySpecB\003\340A\002\022V\n" - + "\010instance\030\002 \001(\0132?.google.c" - + "loud.aiplatform.v1beta1.SummarizationVerbosityInstanceB\003\340A\002\"\316\001\n" + + "\013metric_spec\030\001" + + " \001(\0132;.google.cloud.aiplatform.v1beta1.SummarizationVerbositySpecB\003\340A\002\022V\n" + + "\010instance\030\002 \001(\0132?.google.cloud.aiplatform.v1b" + + "eta1.SummarizationVerbosityInstanceB\003\340A\002\"\316\001\n" + "\036SummarizationVerbosityInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n" + "\treference\030\002 \001(\tB\003\340A\001H\001\210\001\001\022\031\n" @@ -1121,10 +1147,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_scoreB\r\n" + "\013_confidence\"\322\001\n" + "\035QuestionAnsweringQualityInput\022W\n" - + "\013metric_spec\030\001 \001(\0132=.google.cloud.ai" - + "platform.v1beta1.QuestionAnsweringQualitySpecB\003\340A\002\022X\n" - + "\010instance\030\002 \001(\0132A.google.cl" - + "oud.aiplatform.v1beta1.QuestionAnsweringQualityInstanceB\003\340A\002\"\320\001\n" + + "\013metric_spec\030\001 " + + "\001(\0132=.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpecB\003\340A\002\022X\n" + + "\010instance\030\002 \001(\0132A.google.cloud.aiplatform.v1be" + + "ta1.QuestionAnsweringQualityInstanceB\003\340A\002\"\320\001\n" + " QuestionAnsweringQualityInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n" + "\treference\030\002 \001(\tB\003\340A\001H\001\210\001\001\022\031\n" @@ -1133,7 +1159,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_predictionB\014\n\n" + "_referenceB\n\n" + "\010_contextB\016\n" - + "\014_instruction\"P\n" + + "\014", + "_instruction\"P\n" + "\034QuestionAnsweringQualitySpec\022\032\n\r" + "use_reference\030\001 \001(\010B\003\340A\001\022\024\n" + "\007version\030\002 \001(\005B\003\340A\001\"\212\001\n" @@ -1144,11 +1171,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_scoreB\r\n" + "\013_confidence\"\352\001\n" + "%PairwiseQuestionAnsweringQualityInput\022_\n" - + "\013metric_spec\030\001 \001(\0132E." - + "google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpecB\003\340A\002\022`\n" - + "\010instance\030\002 \001(\0132I.google.cloud.aiplatform.v1" - + "beta1.PairwiseQuestionAnsweringQualityInstanceB\003\340A\002\"\227\002\n" - + "(PairwiseQuestionAnsweringQualityInstance\022\034\n\n" + + "\013metric_spec\030\001 \001(\0132E.google.cloud.aiplat" + + "form.v1beta1.PairwiseQuestionAnsweringQualitySpecB\003\340A\002\022`\n" + + "\010instance\030\002 \001(\0132I.googl" + + "e.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstanceB\003\340A\002\"\227\002\n" + + "(PairwiseQuestionAnsweringQualityInstance\022\034\n" + + "\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022%\n" + "\023baseline_prediction\030\002 \001(\tB\003\340A\002H\001\210\001\001\022\033\n" + "\treference\030\003 \001(\tB\003\340A\001H\002\210\001\001\022\031\n" @@ -1160,20 +1188,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_contextB\016\n" + "\014_instruction\"X\n" + "$PairwiseQuestionAnsweringQualitySpec\022\032\n\r" - + "use_reference\030\001 \001(\010B\003\340A", - "\001\022\024\n" + + "use_reference\030\001 \001(\010B\003\340A\001\022\024\n" + "\007version\030\002 \001(\005B\003\340A\001\"\276\001\n" + "&PairwiseQuestionAnsweringQualityResult\022M\n" - + "\017pairwise_choice\030\001" - + " \001(\0162/.google.cloud.aiplatform.v1beta1.PairwiseChoiceB\003\340A\003\022\030\n" + + "\017pairwise_choice\030\001 \001(\0162/.googl" + + "e.cloud.aiplatform.v1beta1.PairwiseChoiceB\003\340A\003\022\030\n" + "\013explanation\030\002 \001(\tB\003\340A\003\022\034\n\n" + "confidence\030\003 \001(\002B\003\340A\003H\000\210\001\001B\r\n" + "\013_confidence\"\330\001\n" + "\037QuestionAnsweringRelevanceInput\022Y\n" - + "\013metric_spec\030\001 \001(\0132?.goog" - + "le.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpecB\003\340A\002\022Z\n" - + "\010instance\030\002 \001(" - + "\0132C.google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstanceB\003\340A\002\"\322\001\n" + + "\013metric_spec\030\001 \001(\0132?.google.cloud.aiplatform" + + ".v1beta1.QuestionAnsweringRelevanceSpecB\003\340A\002\022Z\n" + + "\010instance\030\002 \001(\0132C.google.cloud.ai" + + "platform.v1beta1.QuestionAnsweringRelevanceInstanceB\003\340A\002\"\322\001\n" + "\"QuestionAnsweringRelevanceInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n" + "\treference\030\002 \001(\tB\003\340A\001H\001\210\001\001\022\031\n" @@ -1193,10 +1220,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_scoreB\r\n" + "\013_confidence\"\336\001\n" + "!QuestionAnsweringHelpfulnessInput\022[\n" - + "\013metric_spec\030\001 \001(\0132A.google.cloud.aiplatform" - + ".v1beta1.QuestionAnsweringHelpfulnessSpecB\003\340A\002\022\\\n" - + "\010instance\030\002 \001(\0132E.google.cloud." - + "aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstanceB\003\340A\002\"\324\001\n" + + "\013metric_spec\030\001 \001(\0132A.go" + + "ogle.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpecB\003\340A\002\022\\\n" + + "\010instance\030\002 \001(\0132E.google.cloud.aiplatform.v1beta1." + + "QuestionAnsweringHelpfulnessInstanceB\003\340A\002\"\324\001\n" + "$QuestionAnsweringHelpfulnessInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n" + "\treference\030\002 \001(\tB\003\340A\001H\001\210\001\001\022\031\n" @@ -1216,18 +1243,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_scoreB\r\n" + "\013_confidence\"\336\001\n" + "!QuestionAnsweringCorrectnessInput\022[\n" - + "\013metric_spec\030\001" - + " \001(\0132A.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpecB\003\340A\002\022\\\n" - + "\010instance\030\002 \001(\0132E.google.cloud.aiplatfor" - + "m.v1beta1.QuestionAnsweringCorrectnessInstanceB\003\340A\002\"\324\001\n" + + "\013metric_spec\030\001 \001(\0132A.google.clou" + + "d.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpecB\003\340A\002\022\\\n" + + "\010instance\030\002 \001(\0132E.g" + + "oogle.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstanceB\003\340A\002\"\324\001\n" + "$QuestionAnsweringCorrectnessInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n" + "\treference\030\002 \001(\tB\003\340A\001H\001\210\001\001\022\031\n" + "\007context\030\003 \001(\tB\003\340A\001H\002\210\001\001\022\035\n" + "\013instruction\030\004 \001(\tB\003\340A\002H\003\210\001\001B\r\n" + "\013_predictionB\014\n\n" - + "_referenceB\n" - + "\n" + + "_referenceB\n\n" + "\010_contextB\016\n" + "\014_instruction\"T\n" + " QuestionAnsweringCorrectnessSpec\022\032\n\r" @@ -1240,10 +1266,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_scoreB\r\n" + "\013_confidence\"\267\001\n" + "\024PointwiseMetricInput\022N\n" - + "\013metric_spec\030\001 \001(\01324.google.cloud.a" - + "iplatform.v1beta1.PointwiseMetricSpecB\003\340A\002\022O\n" - + "\010instance\030\002 \001(\01328.google.cloud.aipl" - + "atform.v1beta1.PointwiseMetricInstanceB\003\340A\002\"\213\001\n" + + "\013metric_spec\030\001" + + " \001(\01324.google.cloud.aiplatform.v1beta1.PointwiseMetricSpecB\003\340A\002\022O\n" + + "\010instance\030\002 \001(" + + "\01328.google.cloud.aiplatform.v1beta1.PointwiseMetricInstanceB\003\340A\002\"\213\001\n" + "\027PointwiseMetricInstance\022\027\n\r" + "json_instance\030\001 \001(\tH\000\022K\n" + "\024content_map_instance\030\002" @@ -1252,8 +1278,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023PointwiseMetricSpec\022(\n" + "\026metric_prompt_template\030\001 \001(\tB\003\340A\002H\000\210\001\001\022$\n" + "\022system_instruction\030\002 \001(\tB\003\340A\001H\001\210\001\001\022c\n" - + "\033custom_output_format_config\030\003" - + " \001(\01329.google.cloud.aiplatform.v1beta1.CustomOutputFormatConfigB\003\340A\001B\031\n" + + "\033custom_output_format_config\030\003 \001(\01329.google.clo" + + "ud.aiplatform.v1beta1.CustomOutputFormatConfigB\003\340A\001B\031\n" + "\027_metric_prompt_templateB\025\n" + "\023_system_instruction\"[\n" + "\030CustomOutputFormatConfig\022 \n" @@ -1262,20 +1288,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025PointwiseMetricResult\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001\022\030\n" + "\013explanation\030\002 \001(\tB\003\340A\003\022I\n\r" - + "custom_output\030\003 \001(\0132-.goog" - + "le.cloud.aiplatform.v1beta1.CustomOutputB\003\340A\003B\010\n" + + "custom_output\030\003" + + " \001(\0132-.google.cloud.aiplatform.v1beta1.CustomOutputB\003\340A\003B\010\n" + "\006_score\"g\n" + "\014CustomOutput\022F\n" - + "\013raw_outputs\030\001" - + " \001(\0132*.google.cloud.aiplatform.v1beta1.RawOutputB\003\340A\003H\000B\017\n\r" + + "\013raw_outputs\030\001 \001(\0132*.goog" + + "le.cloud.aiplatform.v1beta1.RawOutputB\003\340A\003H\000B\017\n\r" + "custom_output\"$\n" + "\tRawOutput\022\027\n\n" + "raw_output\030\001 \003(\tB\003\340A\003\"\264\001\n" + "\023PairwiseMetricInput\022M\n" - + "\013metric_spec\030\001 " - + "\001(\01323.google.cloud.aiplatform.v1beta1.PairwiseMetricSpecB\003\340A\002\022N\n" - + "\010instance\030\002 \001(\0132" - + "7.google.cloud.aiplatform.v1beta1.PairwiseMetricInstanceB\003\340A\002\"\212\001\n" + + "\013metric_spec\030\001 \001(\01323.google.cloud." + + "aiplatform.v1beta1.PairwiseMetricSpecB\003\340A\002\022N\n" + + "\010instance\030\002 \001(\01327.google.cloud.aipl" + + "atform.v1beta1.PairwiseMetricInstanceB\003\340A\002\"\212\001\n" + "\026PairwiseMetricInstance\022\027\n\r" + "json_instance\030\001 \001(\tH\000\022K\n" + "\024content_map_instance\030\002" @@ -1286,21 +1312,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035candidate_response_field_name\030\002 \001(\tB\003\340A\001\022)\n" + "\034baseline_response_field_name\030\003 \001(\tB\003\340A\001\022$\n" + "\022system_instruction\030\004 \001(\tB\003\340A\001H\001\210\001\001\022c\n" - + "\033custom_output_format_config\030\005 \001(\01329.google.c" - + "loud.aiplatform.v1beta1.CustomOutputFormatConfigB\003\340A\001B\031\n" + + "\033custom_output_format_config\030\005" + + " \001(\01329.google.cloud.aiplatform.v1beta1.CustomOutputFormatConfigB\003\340A\001B\031\n" + "\027_metric_prompt_templateB\025\n" + "\023_system_instruction\"\312\001\n" + "\024PairwiseMetricResult\022M\n" - + "\017pairwise_choice\030\001 \001(\0162/.goog" - + "le.cloud.aiplatform.v1beta1.PairwiseChoiceB\003\340A\003\022\030\n" + + "\017pairwise_choice\030\001" + + " \001(\0162/.google.cloud.aiplatform.v1beta1.PairwiseChoiceB\003\340A\003\022\030\n" + "\013explanation\030\002 \001(\tB\003\340A\003\022I\n\r" - + "custom_output\030\003" - + " \001(\0132-.google.cloud.aiplatform.v1beta1.CustomOutputB\003\340A\003\"\262\001\n" + + "custom_output\030\003 \001(\0132-." + + "google.cloud.aiplatform.v1beta1.CustomOutputB\003\340A\003\"\262\001\n" + "\022ToolCallValidInput\022L\n" - + "\013metric_spec\030\001 \001(\01322.googl" - + "e.cloud.aiplatform.v1beta1.ToolCallValidSpecB\003\340A\002\022N\n" - + "\tinstances\030\002 \003(\01326.google.cl" - + "oud.aiplatform.v1beta1.ToolCallValidInstanceB\003\340A\002\"\023\n" + + "\013metric_spec\030\001" + + " \001(\01322.google.cloud.aiplatform.v1beta1.ToolCallValidSpecB\003\340A\002\022N\n" + + "\tinstances\030\002" + + " \003(\01326.google.cloud.aiplatform.v1beta1.ToolCallValidInstanceB\003\340A\002\"\023\n" + "\021ToolCallValidSpec\"o\n" + "\025ToolCallValidInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n" @@ -1308,16 +1334,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_predictionB\014\n\n" + "_reference\"}\n" + "\024ToolCallValidResults\022e\n" - + "\035tool_call_valid_metric_values\030\001" - + " \003(\01329.google.cloud.aiplatform.v1beta1.ToolCallValidMetricValueB\003\340A\003\"=\n" + + "\035tool_call_valid_metric_values\030\001 \003(\01329.google.clo" + + "ud.aiplatform.v1beta1.ToolCallValidMetricValueB\003\340A\003\"=\n" + "\030ToolCallValidMetricValue\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"\262\001\n" + "\022ToolNameMatchInput\022L\n" - + "\013metric_spec\030\001" - + " \001(\01322.google.cloud.aiplatform.v1beta1.ToolNameMatchSpecB\003\340A\002\022N\n" - + "\tinstances\030\002" - + " \003(\01326.google.cloud.aiplatform.v1beta1.ToolNameMatchInstanceB\003\340A\002\"\023\n" + + "\013metric_spec\030\001 \001(\01322" + + ".google.cloud.aiplatform.v1beta1.ToolNameMatchSpecB\003\340A\002\022N\n" + + "\tinstances\030\002 \003(\01326.goo" + + "gle.cloud.aiplatform.v1beta1.ToolNameMatchInstanceB\003\340A\002\"\023\n" + "\021ToolNameMatchSpec\"o\n" + "\025ToolNameMatchInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n" @@ -1325,16 +1351,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_predictionB\014\n\n" + "_reference\"}\n" + "\024ToolNameMatchResults\022e\n" - + "\035tool_name_match_metric_values\030\001 \003(\01329.google" - + ".cloud.aiplatform.v1beta1.ToolNameMatchMetricValueB\003\340A\003\"=\n" + + "\035tool_name_match_metric_values\030\001" + + " \003(\01329.google.cloud.aiplatform.v1beta1.ToolNameMatchMetricValueB\003\340A\003\"=\n" + "\030ToolNameMatchMetricValue\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"\312\001\n" + "\032ToolParameterKeyMatchInput\022T\n" - + "\013metric_spec\030\001" - + " \001(\0132:.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchSpecB\003\340A\002\022V\n" - + "\tinstances\030\002 \003(\0132>.google.cloud.aiplatform" - + ".v1beta1.ToolParameterKeyMatchInstanceB\003\340A\002\"\033\n" + + "\013metric_spec\030\001 \001(\0132:.google" + + ".cloud.aiplatform.v1beta1.ToolParameterKeyMatchSpecB\003\340A\002\022V\n" + + "\tinstances\030\002 \003(\0132>.go" + + "ogle.cloud.aiplatform.v1beta1.ToolParameterKeyMatchInstanceB\003\340A\002\"\033\n" + "\031ToolParameterKeyMatchSpec\"w\n" + "\035ToolParameterKeyMatchInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n" @@ -1342,38 +1368,37 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_predictionB\014\n\n" + "_reference\"\226\001\n" + "\034ToolParameterKeyMatchResults\022v\n" - + "&tool_parameter_key_match_metric_values\030\001 \003(\0132A.goo" - + "gle.cloud.aiplatform.v1beta1.ToolParameterKeyMatchMetricValueB\003\340A\003\"E\n" + + "&tool_parameter_key_match_metric_values\030\001 \003(\0132A.google.cloud.aiplatfor" + + "m.v1beta1.ToolParameterKeyMatchMetricValueB\003\340A\003\"E\n" + " ToolParameterKeyMatchMetricValue\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"\307\001\n" + "\031ToolParameterKVMatchInput\022S\n" - + "\013metric_spec\030\001 \001(\01329.google.cl" - + "oud.aiplatform.v1beta1.ToolParameterKVMatchSpecB\003\340A\002\022U\n" - + "\tinstances\030\002 \003(\0132=.google" - + ".cloud.aiplatform.v1beta1.ToolParameterKVMatchInstanceB\003\340A\002\"@\n" + + "\013metric_spec\030\001" + + " \001(\01329.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchSpecB\003\340A\002\022U\n" + + "\tinstances\030\002 \003(\0132=.google.cloud.aiplatform.v" + + "1beta1.ToolParameterKVMatchInstanceB\003\340A\002\"@\n" + "\030ToolParameterKVMatchSpec\022$\n" + "\027use_strict_string_match\030\001 \001(\010B\003\340A\001\"v\n" - + "\034ToolParameterKVMatchInstance\022\034\n" - + "\n" + + "\034ToolParameterKVMatchInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n" + "\treference\030\002 \001(\tB\003\340A\002H\001\210\001\001B\r\n" + "\013_predictionB\014\n\n" + "_reference\"\223\001\n" + "\033ToolParameterKVMatchResults\022t\n" - + "%tool_parameter_kv_match_metric_values\030\001" - + " \003(\0132@.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchMetricValueB\003\340A\003\"D\n" + + "%tool_parameter_kv_match_metric_values\030\001 \003(\0132@.google.cloud" + + ".aiplatform.v1beta1.ToolParameterKVMatchMetricValueB\003\340A\003\"D\n" + "\037ToolParameterKVMatchMetricValue\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"\231\001\n\n" + "CometInput\022D\n" - + "\013metric_spec\030\001" - + " \001(\0132*.google.cloud.aiplatform.v1beta1.CometSpecB\003\340A\002\022E\n" - + "\010instance\030\002" - + " \001(\0132..google.cloud.aiplatform.v1beta1.CometInstanceB\003\340A\002\"\354\001\n" + + "\013metric_spec\030\001 \001" + + "(\0132*.google.cloud.aiplatform.v1beta1.CometSpecB\003\340A\002\022E\n" + + "\010instance\030\002 \001(\0132..google.c" + + "loud.aiplatform.v1beta1.CometInstanceB\003\340A\002\"\354\001\n" + "\tCometSpec\022R\n" - + "\007version\030\001 \001(\01627.google.cloud.aiplatform.v" - + "1beta1.CometSpec.CometVersionB\003\340A\002H\000\210\001\001\022\034\n" + + "\007version\030\001 \001(\01627.goog" + + "le.cloud.aiplatform.v1beta1.CometSpec.CometVersionB\003\340A\002H\000\210\001\001\022\034\n" + "\017source_language\030\002 \001(\tB\003\340A\001\022\034\n" + "\017target_language\030\003 \001(\tB\003\340A\001\"C\n" + "\014CometVersion\022\035\n" @@ -1391,13 +1416,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"\237\001\n" + "\014MetricxInput\022F\n" - + "\013metric_spec\030\001" - + " \001(\0132,.google.cloud.aiplatform.v1beta1.MetricxSpecB\003\340A\002\022G\n" - + "\010instance\030\002 \001(\013" - + "20.google.cloud.aiplatform.v1beta1.MetricxInstanceB\003\340A\002\"\240\002\n" + + "\013metric_spec\030\001 \001(\0132,.googl" + + "e.cloud.aiplatform.v1beta1.MetricxSpecB\003\340A\002\022G\n" + + "\010instance\030\002" + + " \001(\01320.google.cloud.aiplatform.v1beta1.MetricxInstanceB\003\340A\002\"\240\002\n" + "\013MetricxSpec\022V\n" - + "\007version\030\001 \001(\0162;.google.cloud.aiplatform.v1bet" - + "a1.MetricxSpec.MetricxVersionB\003\340A\002H\000\210\001\001\022\034\n" + + "\007version\030\001 \001(\0162;.google.c" + + "loud.aiplatform.v1beta1.MetricxSpec.MetricxVersionB\003\340A\002H\000\210\001\001\022\034\n" + "\017source_language\030\002 \001(\tB\003\340A\001\022\034\n" + "\017target_language\030\003 \001(\tB\003\340A\001\"q\n" + "\016MetricxVersion\022\037\n" @@ -1417,133 +1442,133 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"\347\001\n" + "$RubricBasedInstructionFollowingInput\022^\n" - + "\013metric_spec\030\001 \001(\0132D.google.cloud.aiplatform.v1beta1." - + "RubricBasedInstructionFollowingSpecB\003\340A\002\022_\n" - + "\010instance\030\002 \001(\0132H.google.cloud.aiplat" - + "form.v1beta1.RubricBasedInstructionFollowingInstanceB\003\340A\002\"S\n" + + "\013metric_spec\030\001 \001(\0132D.google.clou" + + "d.aiplatform.v1beta1.RubricBasedInstructionFollowingSpecB\003\340A\002\022_\n" + + "\010instance\030\002 \001(\0132H.google.cloud.aiplatform.v1beta1.Rubric" + + "BasedInstructionFollowingInstanceB\003\340A\002\"S\n" + "\'RubricBasedInstructionFollowingInstance\022\034\n\r" + "json_instance\030\001 \001(\tB\003\340A\002H\000B\n\n" + "\010instance\"%\n" + "#RubricBasedInstructionFollowingSpec\"\247\001\n" + "%RubricBasedInstructionFollowingResult\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001\022[\n" - + "\027rubric_critique_results\030\002 \003(" - + "\01325.google.cloud.aiplatform.v1beta1.RubricCritiqueResultB\003\340A\003B\010\n" + + "\027rubric_critique_results\030\002 \003(\01325.google.cloud.ai" + + "platform.v1beta1.RubricCritiqueResultB\003\340A\003B\010\n" + "\006_score\"A\n" + "\024RubricCritiqueResult\022\023\n" + "\006rubric\030\001 \001(\tB\003\340A\003\022\024\n" + "\007verdict\030\002 \001(\010B\003\340A\003\"\307\001\n" + "\031TrajectoryExactMatchInput\022S\n" - + "\013metric_spec\030\001 \001(\01329.google.c" - + "loud.aiplatform.v1beta1.TrajectoryExactMatchSpecB\003\340A\002\022U\n" - + "\tinstances\030\002 \003(\0132=.googl" - + "e.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstanceB\003\340A\002\"\032\n" + + "\013metric_spec\030\001" + + " \001(\01329.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpecB\003\340A\002\022U\n" + + "\tinstances\030\002 \003(\0132=.google.cloud.aiplatform." + + "v1beta1.TrajectoryExactMatchInstanceB\003\340A\002\"\032\n" + "\030TrajectoryExactMatchSpec\"\372\001\n" + "\034TrajectoryExactMatchInstance\022S\n" - + "\024predicted_trajectory\030\001 \001(\0132+.google" - + ".cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\000\210\001\001\022S\n" - + "\024reference_trajectory\030\002 \001(\0132+.g" - + "oogle.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\001\210\001\001B\027\n" + + "\024predicted_trajectory\030\001" + + " \001(\0132+.google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\000\210\001\001\022S\n" + + "\024reference_trajectory\030\002" + + " \001(\0132+.google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\001\210\001\001B\027\n" + "\025_predicted_trajectoryB\027\n" + "\025_reference_trajectory\"\222\001\n" + "\033TrajectoryExactMatchResults\022s\n" - + "$trajectory_exact_match_metric_values\030\001 \003(\0132@.google.cloud.aipla" - + "tform.v1beta1.TrajectoryExactMatchMetricValueB\003\340A\003\"D\n" + + "$trajectory_exact_match_metric_values\030\001 \003(\013" + + "2@.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValueB\003\340A\003\"D\n" + "\037TrajectoryExactMatchMetricValue\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"\315\001\n" + "\033TrajectoryInOrderMatchInput\022U\n" - + "\013metric_spec\030\001 \001(\0132;.google.cloud.aiplatform." - + "v1beta1.TrajectoryInOrderMatchSpecB\003\340A\002\022W\n" - + "\tinstances\030\002 \003(\0132?.google.cloud.aiplat" - + "form.v1beta1.TrajectoryInOrderMatchInstanceB\003\340A\002\"\034\n" + + "\013metric_spec\030\001 \001(\0132;.goo" + + "gle.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpecB\003\340A\002\022W\n" + + "\tinstances\030\002 \003(\0132" + + "?.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstanceB\003\340A\002\"\034\n" + "\032TrajectoryInOrderMatchSpec\"\374\001\n" + "\036TrajectoryInOrderMatchInstance\022S\n" - + "\024predicted_trajectory\030\001 \001(\0132+.google.cloud.a" - + "iplatform.v1beta1.TrajectoryB\003\340A\002H\000\210\001\001\022S\n" - + "\024reference_trajectory\030\002 \001(\0132+.google.cl" - + "oud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\001\210\001\001B\027\n" + + "\024predicted_trajectory\030\001" + + " \001(\0132+.google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\000\210\001\001\022S\n" + + "\024reference_trajectory\030\002" + + " \001(\0132+.google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\001\210\001\001B\027\n" + "\025_predicted_trajectoryB\027\n" + "\025_reference_trajectory\"\231\001\n" + "\035TrajectoryInOrderMatchResults\022x\n" - + "\'trajectory_in_order_match_metric_values\030\001 \003(\0132B.google.cloud.aiplatfo" - + "rm.v1beta1.TrajectoryInOrderMatchMetricValueB\003\340A\003\"F\n" + + "\'trajectory_in_order_match_metric_values\030\001 \003(\0132B." + + "google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValueB\003\340A\003\"F\n" + "!TrajectoryInOrderMatchMetricValue\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"\320\001\n" + "\034TrajectoryAnyOrderMatchInput\022V\n" - + "\013metric_spec\030\001 \001(\0132<.google.cloud.aiplatfor" - + "m.v1beta1.TrajectoryAnyOrderMatchSpecB\003\340A\002\022X\n" - + "\tinstances\030\002 \003(\0132@.google.cloud.aip" - + "latform.v1beta1.TrajectoryAnyOrderMatchInstanceB\003\340A\002\"\035\n" + + "\013metric_spec\030\001 \001(\0132<.g" + + "oogle.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpecB\003\340A\002\022X\n" + + "\tinstances\030\002 \003" + + "(\0132@.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstanceB\003\340A\002\"\035\n" + "\033TrajectoryAnyOrderMatchSpec\"\375\001\n" + "\037TrajectoryAnyOrderMatchInstance\022S\n" - + "\024predicted_trajectory\030\001 \001(\0132+.google.c" - + "loud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\000\210\001\001\022S\n" - + "\024reference_trajectory\030\002 \001(\0132+.goo" - + "gle.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\001\210\001\001B\027\n" + + "\024predicted_trajectory\030\001" + + " \001(\0132+.google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\000\210\001\001\022S\n" + + "\024reference_trajectory\030\002" + + " \001(\0132+.google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\001\210\001\001B\027\n" + "\025_predicted_trajectoryB\027\n" + "\025_reference_trajectory\"\234\001\n" + "\036TrajectoryAnyOrderMatchResults\022z\n" - + "(trajectory_any_order_match_metric_values\030\001 \003(\0132C.google.cloud." - + "aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValueB\003\340A\003\"G\n" + + "(trajectory_any_order_match_metric_values\030\001" + + " \003(\0132C.google.cloud.aiplatform.v1beta1." + + "TrajectoryAnyOrderMatchMetricValueB\003\340A\003\"G\n" + "\"TrajectoryAnyOrderMatchMetricValue\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"\304\001\n" + "\030TrajectoryPrecisionInput\022R\n" - + "\013metric_spec\030\001 \001(\01328.google.cloud.aip" - + "latform.v1beta1.TrajectoryPrecisionSpecB\003\340A\002\022T\n" - + "\tinstances\030\002 \003(\0132<.google.cloud.a" - + "iplatform.v1beta1.TrajectoryPrecisionInstanceB\003\340A\002\"\031\n" + + "\013metric_spec\030\001 \001" + + "(\01328.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpecB\003\340A\002\022T\n" + + "\tinstances\030\002" + + " \003(\0132<.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstanceB\003\340A\002\"\031\n" + "\027TrajectoryPrecisionSpec\"\371\001\n" + "\033TrajectoryPrecisionInstance\022S\n" - + "\024predicted_trajectory\030\001" - + " \001(\0132+.google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\000\210\001\001\022S\n" - + "\024reference_trajectory\030\002 \001(\0132+.google.cloud." - + "aiplatform.v1beta1.TrajectoryB\003\340A\002H\001\210\001\001B\027\n" + + "\024predicted_trajectory\030\001 \001(\013" + + "2+.google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\000\210\001\001\022S\n" + + "\024reference_trajectory\030\002" + + " \001(\0132+.google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\001\210\001\001B\027\n" + "\025_predicted_trajectoryB\027\n" + "\025_reference_trajectory\"\216\001\n" + "\032TrajectoryPrecisionResults\022p\n" - + "\"trajectory_precision_metric_values\030\001" - + " \003(\0132?.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValueB\003\340A\003\"C\n" + + "\"trajectory_precision_metric_values\030\001 \003(\0132?.google.cloud" + + ".aiplatform.v1beta1.TrajectoryPrecisionMetricValueB\003\340A\003\"C\n" + "\036TrajectoryPrecisionMetricValue\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"\273\001\n" + "\025TrajectoryRecallInput\022O\n" - + "\013metric_spec\030\001 \001(\01325.google." - + "cloud.aiplatform.v1beta1.TrajectoryRecallSpecB\003\340A\002\022Q\n" - + "\tinstances\030\002 \003(\01329.google.c" - + "loud.aiplatform.v1beta1.TrajectoryRecallInstanceB\003\340A\002\"\026\n" + + "\013metric_spec\030\001" + + " \001(\01325.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpecB\003\340A\002\022Q\n" + + "\tinstances\030\002" + + " \003(\01329.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstanceB\003\340A\002\"\026\n" + "\024TrajectoryRecallSpec\"\366\001\n" + "\030TrajectoryRecallInstance\022S\n" - + "\024predicted_trajectory\030\001" - + " \001(\0132+.google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\000\210\001\001\022S\n" - + "\024reference_trajectory\030\002" - + " \001(\0132+.google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\001\210\001\001B\027\n" + + "\024predicted_trajectory\030\001 \001(\0132+." + + "google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\000\210\001\001\022S\n" + + "\024reference_trajectory\030\002 \001" + + "(\0132+.google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\001\210\001\001B\027\n" + "\025_predicted_trajectoryB\027\n" + "\025_reference_trajectory\"\205\001\n" + "\027TrajectoryRecallResults\022j\n" - + "\037trajectory_recall_metric_values\030\001 \003(\0132<.go" - + "ogle.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValueB\003\340A\003\"@\n" + + "\037trajectory_recall_metric_values\030\001 \003(\0132<.google.cloud.aiplatfo" + + "rm.v1beta1.TrajectoryRecallMetricValueB\003\340A\003\"@\n" + "\033TrajectoryRecallMetricValue\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"\320\001\n" + "\034TrajectorySingleToolUseInput\022V\n" - + "\013metric_spec\030\001 \001(\0132<.google.cloud.ai" - + "platform.v1beta1.TrajectorySingleToolUseSpecB\003\340A\002\022X\n" - + "\tinstances\030\002 \003(\0132@.google.cl" - + "oud.aiplatform.v1beta1.TrajectorySingleToolUseInstanceB\003\340A\002\"H\n" + + "\013metric_spec\030\001 " + + "\001(\0132<.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpecB\003\340A\002\022X\n" + + "\tinstances\030\002 \003(\0132@.google.cloud.aiplatform.v1be" + + "ta1.TrajectorySingleToolUseInstanceB\003\340A\002\"H\n" + "\033TrajectorySingleToolUseSpec\022\033\n" + "\ttool_name\030\001 \001(\tB\003\340A\002H\000\210\001\001B\014\n\n" + "_tool_name\"\217\001\n" + "\037TrajectorySingleToolUseInstance\022S\n" - + "\024predicted_trajectory\030\001 \001(\0132" - + "+.google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\000\210\001\001B\027\n" + + "\024predicted_trajectory\030\001" + + " \001(\0132+.google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\000\210\001\001B\027\n" + "\025_predicted_trajectory\"\234\001\n" + "\036TrajectorySingleToolUseResults\022z\n" - + "(trajectory_single_tool_use_metric_values\030\001" - + " \003(\0132C.google.cloud.aiplatform.v1beta1.T" - + "rajectorySingleToolUseMetricValueB\003\340A\003\"G\n" + + "(trajectory_single_tool_use_metric_values\030\001 \003(\0132C.google.cloud" + + ".aiplatform.v1beta1.TrajectorySingleToolUseMetricValueB\003\340A\003\"G\n" + "\"TrajectorySingleToolUseMetricValue\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"P\n\n" @@ -1553,41 +1578,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010ToolCall\022\033\n" + "\ttool_name\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\034\n\n" + "tool_input\030\002 \001(\tB\003\340A\001H\001\210\001\001B\014\n\n" - + "_tool_nameB\r" - + "\n" + + "_tool_nameB\r\n" + "\013_tool_input\"\214\002\n\n" + "ContentMap\022L\n" - + "\006values\030\001" - + " \003(\01327.google.cloud.aiplatform.v1beta1.ContentMap.ValuesEntryB\003\340A\001\032K\n" + + "\006values\030\001 \003(\01327.google.cloud" + + ".aiplatform.v1beta1.ContentMap.ValuesEntryB\003\340A\001\032K\n" + "\010Contents\022?\n" - + "\010contents\030\001" - + " \003(\0132(.google.cloud.aiplatform.v1beta1.ContentB\003\340A\001\032c\n" + + "\010contents\030\001 \003(\0132(." + + "google.cloud.aiplatform.v1beta1.ContentB\003\340A\001\032c\n" + "\013ValuesEntry\022\013\n" + "\003key\030\001 \001(\t\022C\n" - + "\005value\030\002 \001(\01324.google.clou" - + "d.aiplatform.v1beta1.ContentMap.Contents:\0028\001*W\n" + + "\005value\030\002" + + " \001(\01324.google.cloud.aiplatform.v1beta1.ContentMap.Contents:\0028\001*W\n" + "\016PairwiseChoice\022\037\n" + "\033PAIRWISE_CHOICE_UNSPECIFIED\020\000\022\014\n" + "\010BASELINE\020\001\022\r\n" + "\tCANDIDATE\020\002\022\007\n" + "\003TIE\020\0032\252\004\n" + "\021EvaluationService\022\323\001\n" - + "\021EvaluateInstances\0229.google.cloud.aiplatf" - + "orm.v1beta1.EvaluateInstancesRequest\032:.google.cloud.aiplatform.v1beta1.EvaluateI" - + "nstancesResponse\"G\202\323\344\223\002A\" + * FlexStart is used to schedule the deployment workload on DWS resource. It + * contains the max duration of the deployment. + *
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.FlexStart} + */ +public final class FlexStart extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.FlexStart) + FlexStartOrBuilder { + private static final long serialVersionUID = 0L; + + // Use FlexStart.newBuilder() to construct. + private FlexStart(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FlexStart() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FlexStart(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MachineResourcesProto + .internal_static_google_cloud_aiplatform_v1beta1_FlexStart_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MachineResourcesProto + .internal_static_google_cloud_aiplatform_v1beta1_FlexStart_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.FlexStart.class, + com.google.cloud.aiplatform.v1beta1.FlexStart.Builder.class); + } + + private int bitField0_; + public static final int MAX_RUNTIME_DURATION_FIELD_NUMBER = 1; + private com.google.protobuf.Duration maxRuntimeDuration_; + + /** + * + * + *
+   * The max duration of the deployment is max_runtime_duration. The
+   * deployment will be terminated after the duration. The
+   * max_runtime_duration can be set up to 7 days.
+   * 
+ * + * .google.protobuf.Duration max_runtime_duration = 1; + * + * @return Whether the maxRuntimeDuration field is set. + */ + @java.lang.Override + public boolean hasMaxRuntimeDuration() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The max duration of the deployment is max_runtime_duration. The
+   * deployment will be terminated after the duration. The
+   * max_runtime_duration can be set up to 7 days.
+   * 
+ * + * .google.protobuf.Duration max_runtime_duration = 1; + * + * @return The maxRuntimeDuration. + */ + @java.lang.Override + public com.google.protobuf.Duration getMaxRuntimeDuration() { + return maxRuntimeDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maxRuntimeDuration_; + } + + /** + * + * + *
+   * The max duration of the deployment is max_runtime_duration. The
+   * deployment will be terminated after the duration. The
+   * max_runtime_duration can be set up to 7 days.
+   * 
+ * + * .google.protobuf.Duration max_runtime_duration = 1; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getMaxRuntimeDurationOrBuilder() { + return maxRuntimeDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maxRuntimeDuration_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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, getMaxRuntimeDuration()); + } + 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, getMaxRuntimeDuration()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.FlexStart)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.FlexStart other = + (com.google.cloud.aiplatform.v1beta1.FlexStart) obj; + + if (hasMaxRuntimeDuration() != other.hasMaxRuntimeDuration()) return false; + if (hasMaxRuntimeDuration()) { + if (!getMaxRuntimeDuration().equals(other.getMaxRuntimeDuration())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMaxRuntimeDuration()) { + hash = (37 * hash) + MAX_RUNTIME_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getMaxRuntimeDuration().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.FlexStart parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.FlexStart parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.FlexStart parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.FlexStart parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.FlexStart parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.FlexStart parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.FlexStart parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.FlexStart parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.FlexStart parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.FlexStart parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.FlexStart parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.FlexStart parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1beta1.FlexStart prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * FlexStart is used to schedule the deployment workload on DWS resource. It
+   * contains the max duration of the deployment.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.FlexStart} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.FlexStart) + com.google.cloud.aiplatform.v1beta1.FlexStartOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MachineResourcesProto + .internal_static_google_cloud_aiplatform_v1beta1_FlexStart_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MachineResourcesProto + .internal_static_google_cloud_aiplatform_v1beta1_FlexStart_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.FlexStart.class, + com.google.cloud.aiplatform.v1beta1.FlexStart.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.FlexStart.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMaxRuntimeDurationFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + maxRuntimeDuration_ = null; + if (maxRuntimeDurationBuilder_ != null) { + maxRuntimeDurationBuilder_.dispose(); + maxRuntimeDurationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.MachineResourcesProto + .internal_static_google_cloud_aiplatform_v1beta1_FlexStart_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FlexStart getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.FlexStart.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FlexStart build() { + com.google.cloud.aiplatform.v1beta1.FlexStart result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FlexStart buildPartial() { + com.google.cloud.aiplatform.v1beta1.FlexStart result = + new com.google.cloud.aiplatform.v1beta1.FlexStart(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.FlexStart result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.maxRuntimeDuration_ = + maxRuntimeDurationBuilder_ == null + ? maxRuntimeDuration_ + : maxRuntimeDurationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.FlexStart) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.FlexStart) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.FlexStart other) { + if (other == com.google.cloud.aiplatform.v1beta1.FlexStart.getDefaultInstance()) return this; + if (other.hasMaxRuntimeDuration()) { + mergeMaxRuntimeDuration(other.getMaxRuntimeDuration()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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( + getMaxRuntimeDurationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.Duration maxRuntimeDuration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + maxRuntimeDurationBuilder_; + + /** + * + * + *
+     * The max duration of the deployment is max_runtime_duration. The
+     * deployment will be terminated after the duration. The
+     * max_runtime_duration can be set up to 7 days.
+     * 
+ * + * .google.protobuf.Duration max_runtime_duration = 1; + * + * @return Whether the maxRuntimeDuration field is set. + */ + public boolean hasMaxRuntimeDuration() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * The max duration of the deployment is max_runtime_duration. The
+     * deployment will be terminated after the duration. The
+     * max_runtime_duration can be set up to 7 days.
+     * 
+ * + * .google.protobuf.Duration max_runtime_duration = 1; + * + * @return The maxRuntimeDuration. + */ + public com.google.protobuf.Duration getMaxRuntimeDuration() { + if (maxRuntimeDurationBuilder_ == null) { + return maxRuntimeDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maxRuntimeDuration_; + } else { + return maxRuntimeDurationBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The max duration of the deployment is max_runtime_duration. The
+     * deployment will be terminated after the duration. The
+     * max_runtime_duration can be set up to 7 days.
+     * 
+ * + * .google.protobuf.Duration max_runtime_duration = 1; + */ + public Builder setMaxRuntimeDuration(com.google.protobuf.Duration value) { + if (maxRuntimeDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + maxRuntimeDuration_ = value; + } else { + maxRuntimeDurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The max duration of the deployment is max_runtime_duration. The
+     * deployment will be terminated after the duration. The
+     * max_runtime_duration can be set up to 7 days.
+     * 
+ * + * .google.protobuf.Duration max_runtime_duration = 1; + */ + public Builder setMaxRuntimeDuration(com.google.protobuf.Duration.Builder builderForValue) { + if (maxRuntimeDurationBuilder_ == null) { + maxRuntimeDuration_ = builderForValue.build(); + } else { + maxRuntimeDurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The max duration of the deployment is max_runtime_duration. The
+     * deployment will be terminated after the duration. The
+     * max_runtime_duration can be set up to 7 days.
+     * 
+ * + * .google.protobuf.Duration max_runtime_duration = 1; + */ + public Builder mergeMaxRuntimeDuration(com.google.protobuf.Duration value) { + if (maxRuntimeDurationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && maxRuntimeDuration_ != null + && maxRuntimeDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + getMaxRuntimeDurationBuilder().mergeFrom(value); + } else { + maxRuntimeDuration_ = value; + } + } else { + maxRuntimeDurationBuilder_.mergeFrom(value); + } + if (maxRuntimeDuration_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The max duration of the deployment is max_runtime_duration. The
+     * deployment will be terminated after the duration. The
+     * max_runtime_duration can be set up to 7 days.
+     * 
+ * + * .google.protobuf.Duration max_runtime_duration = 1; + */ + public Builder clearMaxRuntimeDuration() { + bitField0_ = (bitField0_ & ~0x00000001); + maxRuntimeDuration_ = null; + if (maxRuntimeDurationBuilder_ != null) { + maxRuntimeDurationBuilder_.dispose(); + maxRuntimeDurationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The max duration of the deployment is max_runtime_duration. The
+     * deployment will be terminated after the duration. The
+     * max_runtime_duration can be set up to 7 days.
+     * 
+ * + * .google.protobuf.Duration max_runtime_duration = 1; + */ + public com.google.protobuf.Duration.Builder getMaxRuntimeDurationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMaxRuntimeDurationFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The max duration of the deployment is max_runtime_duration. The
+     * deployment will be terminated after the duration. The
+     * max_runtime_duration can be set up to 7 days.
+     * 
+ * + * .google.protobuf.Duration max_runtime_duration = 1; + */ + public com.google.protobuf.DurationOrBuilder getMaxRuntimeDurationOrBuilder() { + if (maxRuntimeDurationBuilder_ != null) { + return maxRuntimeDurationBuilder_.getMessageOrBuilder(); + } else { + return maxRuntimeDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maxRuntimeDuration_; + } + } + + /** + * + * + *
+     * The max duration of the deployment is max_runtime_duration. The
+     * deployment will be terminated after the duration. The
+     * max_runtime_duration can be set up to 7 days.
+     * 
+ * + * .google.protobuf.Duration max_runtime_duration = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getMaxRuntimeDurationFieldBuilder() { + if (maxRuntimeDurationBuilder_ == null) { + maxRuntimeDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getMaxRuntimeDuration(), getParentForChildren(), isClean()); + maxRuntimeDuration_ = null; + } + return maxRuntimeDurationBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.FlexStart) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.FlexStart) + private static final com.google.cloud.aiplatform.v1beta1.FlexStart DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.FlexStart(); + } + + public static com.google.cloud.aiplatform.v1beta1.FlexStart getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FlexStart parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FlexStart getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FlexStartOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FlexStartOrBuilder.java new file mode 100644 index 000000000000..11febff654f4 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FlexStartOrBuilder.java @@ -0,0 +1,69 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/machine_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.aiplatform.v1beta1; + +public interface FlexStartOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.FlexStart) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The max duration of the deployment is max_runtime_duration. The
+   * deployment will be terminated after the duration. The
+   * max_runtime_duration can be set up to 7 days.
+   * 
+ * + * .google.protobuf.Duration max_runtime_duration = 1; + * + * @return Whether the maxRuntimeDuration field is set. + */ + boolean hasMaxRuntimeDuration(); + + /** + * + * + *
+   * The max duration of the deployment is max_runtime_duration. The
+   * deployment will be terminated after the duration. The
+   * max_runtime_duration can be set up to 7 days.
+   * 
+ * + * .google.protobuf.Duration max_runtime_duration = 1; + * + * @return The maxRuntimeDuration. + */ + com.google.protobuf.Duration getMaxRuntimeDuration(); + + /** + * + * + *
+   * The max duration of the deployment is max_runtime_duration. The
+   * deployment will be terminated after the duration. The
+   * max_runtime_duration can be set up to 7 days.
+   * 
+ * + * .google.protobuf.Duration max_runtime_duration = 1; + */ + com.google.protobuf.DurationOrBuilder getMaxRuntimeDurationOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineResourcesProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineResourcesProto.java index 112b4eb32f81..05288de32c87 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineResourcesProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineResourcesProto.java @@ -68,6 +68,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_ShieldedVmConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_ShieldedVmConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_FlexStart_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_FlexStart_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -81,31 +85,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "7google/cloud/aiplatform/v1beta1/machine_resources.proto\022\037google.cloud.aiplatfo" + "rm.v1beta1\032\037google/api/field_behavior.pr" + "oto\0326google/cloud/aiplatform/v1beta1/accelerator_type.proto\032:google/cloud/aiplat" - + "form/v1beta1/reservation_affinity.proto\"\265\002\n" + + "form/v1beta1/reservation_affinity.proto\032\036google/protobuf/duration.proto\"\265\002\n" + "\013MachineSpec\022\031\n" + "\014machine_type\030\001 \001(\tB\003\340A\005\022O\n" - + "\020accelerator_type\030\002 \001(\01620.google.cl" - + "oud.aiplatform.v1beta1.AcceleratorTypeB\003\340A\005\022\031\n" + + "\020accelerator_type\030\002" + + " \001(\01620.google.cloud.aiplatform.v1beta1.AcceleratorTypeB\003\340A\005\022\031\n" + "\021accelerator_count\030\003 \001(\005\022\031\n" + "\014tpu_topology\030\004 \001(\tB\003\340A\005\022(\n" + "\030multihost_gpu_node_count\030\006 \001(\005B\006\340A\005\340A\001\022Z\n" - + "\024reservation_affinity\030\005" - + " \001(\01324.google.cloud.aiplatform.v1beta1.ReservationAffinityB\006\340A\005\340A\001\"\272\002\n" + + "\024reservation_affinity\030\005 \001(" + + "\01324.google.cloud.aiplatform.v1beta1.ReservationAffinityB\006\340A\005\340A\001\"\202\003\n" + "\022DedicatedResources\022J\n" - + "\014machine_spec\030\001 \001(\0132,.g" - + "oogle.cloud.aiplatform.v1beta1.MachineSpecB\006\340A\002\340A\005\022!\n" + + "\014machine_spec\030\001 \001(\0132,.google.cl" + + "oud.aiplatform.v1beta1.MachineSpecB\006\340A\002\340A\005\022!\n" + "\021min_replica_count\030\002 \001(\005B\006\340A\002\340A\005\022\036\n" + "\021max_replica_count\030\003 \001(\005B\003\340A\005\022#\n" + "\026required_replica_count\030\t \001(\005B\003\340A\001\022]\n" - + "\030autoscaling_metric_specs\030\004 \003(\01326.google.cl" - + "oud.aiplatform.v1beta1.AutoscalingMetricSpecB\003\340A\005\022\021\n" - + "\004spot\030\005 \001(\010B\003\340A\001\"T\n" + + "\030autoscaling_metric_specs\030\004 \003(\01326.google.cloud.aipl" + + "atform.v1beta1.AutoscalingMetricSpecB\003\340A\005\022\021\n" + + "\004spot\030\005 \001(\010B\003\340A\001\022F\n\n" + + "flex_start\030\n" + + " \001(\0132*.google.cloud.aiplatform.v1beta1.FlexStartB\006\340A\005\340A\001\"T\n" + "\022AutomaticResources\022\036\n" + "\021min_replica_count\030\001 \001(\005B\003\340A\005\022\036\n" + "\021max_replica_count\030\002 \001(\005B\003\340A\005\"\252\001\n" + "\027BatchDedicatedResources\022J\n" - + "\014machine_spec\030\001" - + " \001(\0132,.google.cloud.aiplatform.v1beta1.MachineSpecB\006\340A\002\340A\005\022#\n" + + "\014machine_spec\030\001 \001(\0132,.google.cl" + + "oud.aiplatform.v1beta1.MachineSpecB\006\340A\002\340A\005\022#\n" + "\026starting_replica_count\030\002 \001(\005B\003\340A\005\022\036\n" + "\021max_replica_count\030\003 \001(\005B\003\340A\005\"/\n" + "\021ResourcesConsumed\022\032\n\r" @@ -124,12 +130,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013metric_name\030\001 \001(\tB\003\340A\002\022\016\n" + "\006target\030\002 \001(\005\".\n" + "\020ShieldedVmConfig\022\032\n" - + "\022enable_secure_boot\030\001 \001(\010B\354\001\n" - + "#com.google.cloud.aiplatform.v1beta1B\025MachineResourcesProtoP\001" - + "ZCcloud.google.com/go/aiplatform/apiv1be" - + "ta1/aiplatformpb;aiplatformpb\252\002\037Google.C" - + "loud.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\A" - + "IPlatform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3" + + "\022enable_secure_boot\030\001 \001(\010\"D\n" + + "\tFlexStart\0227\n" + + "\024max_runtime_duration\030\001 \001(\0132\031.google.protobuf.DurationB\354\001\n" + + "#com.google.cloud.aiplatform.v1beta1B\025MachineRe" + + "sourcesProtoP\001ZCcloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatfor" + + "mpb\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002\037" + + "Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Google" + + "::Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -138,6 +146,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.AcceleratorTypeProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.ReservationAffinityProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), }); internal_static_google_cloud_aiplatform_v1beta1_MachineSpec_descriptor = getDescriptor().getMessageTypes().get(0); @@ -164,6 +173,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RequiredReplicaCount", "AutoscalingMetricSpecs", "Spot", + "FlexStart", }); internal_static_google_cloud_aiplatform_v1beta1_AutomaticResources_descriptor = getDescriptor().getMessageTypes().get(2); @@ -229,6 +239,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "EnableSecureBoot", }); + internal_static_google_cloud_aiplatform_v1beta1_FlexStart_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_aiplatform_v1beta1_FlexStart_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_FlexStart_descriptor, + new java.lang.String[] { + "MaxRuntimeDuration", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); @@ -237,6 +255,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.AcceleratorTypeProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.ReservationAffinityProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Metric.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Metric.java index d5bc7f07bcdb..4ea4aed5aa9a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Metric.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Metric.java @@ -88,7 +88,7 @@ public enum AggregationMetric implements com.google.protobuf.ProtocolMessageEnum * * *
-     * Average aggregation metric.
+     * Average aggregation metric. Not supported for Pairwise metric.
      * 
* * AVERAGE = 1; @@ -108,7 +108,7 @@ public enum AggregationMetric implements com.google.protobuf.ProtocolMessageEnum * * *
-     * Standard deviation aggregation metric.
+     * Standard deviation aggregation metric. Not supported for pairwise metric.
      * 
* * STANDARD_DEVIATION = 3; @@ -118,7 +118,7 @@ public enum AggregationMetric implements com.google.protobuf.ProtocolMessageEnum * * *
-     * Variance aggregation metric.
+     * Variance aggregation metric. Not supported for pairwise metric.
      * 
* * VARIANCE = 4; @@ -128,7 +128,7 @@ public enum AggregationMetric implements com.google.protobuf.ProtocolMessageEnum * * *
-     * Minimum aggregation metric.
+     * Minimum aggregation metric. Not supported for pairwise metric.
      * 
* * MINIMUM = 5; @@ -138,7 +138,7 @@ public enum AggregationMetric implements com.google.protobuf.ProtocolMessageEnum * * *
-     * Maximum aggregation metric.
+     * Maximum aggregation metric. Not supported for pairwise metric.
      * 
* * MAXIMUM = 6; @@ -148,7 +148,7 @@ public enum AggregationMetric implements com.google.protobuf.ProtocolMessageEnum * * *
-     * Median aggregation metric.
+     * Median aggregation metric. Not supported for pairwise metric.
      * 
* * MEDIAN = 7; @@ -158,7 +158,7 @@ public enum AggregationMetric implements com.google.protobuf.ProtocolMessageEnum * * *
-     * 90th percentile aggregation metric.
+     * 90th percentile aggregation metric. Not supported for pairwise metric.
      * 
* * PERCENTILE_P90 = 8; @@ -168,7 +168,7 @@ public enum AggregationMetric implements com.google.protobuf.ProtocolMessageEnum * * *
-     * 95th percentile aggregation metric.
+     * 95th percentile aggregation metric. Not supported for pairwise metric.
      * 
* * PERCENTILE_P95 = 9; @@ -178,7 +178,7 @@ public enum AggregationMetric implements com.google.protobuf.ProtocolMessageEnum * * *
-     * 99th percentile aggregation metric.
+     * 99th percentile aggregation metric. Not supported for pairwise metric.
      * 
* * PERCENTILE_P99 = 10; @@ -202,7 +202,7 @@ public enum AggregationMetric implements com.google.protobuf.ProtocolMessageEnum * * *
-     * Average aggregation metric.
+     * Average aggregation metric. Not supported for Pairwise metric.
      * 
* * AVERAGE = 1; @@ -224,7 +224,7 @@ public enum AggregationMetric implements com.google.protobuf.ProtocolMessageEnum * * *
-     * Standard deviation aggregation metric.
+     * Standard deviation aggregation metric. Not supported for pairwise metric.
      * 
* * STANDARD_DEVIATION = 3; @@ -235,7 +235,7 @@ public enum AggregationMetric implements com.google.protobuf.ProtocolMessageEnum * * *
-     * Variance aggregation metric.
+     * Variance aggregation metric. Not supported for pairwise metric.
      * 
* * VARIANCE = 4; @@ -246,7 +246,7 @@ public enum AggregationMetric implements com.google.protobuf.ProtocolMessageEnum * * *
-     * Minimum aggregation metric.
+     * Minimum aggregation metric. Not supported for pairwise metric.
      * 
* * MINIMUM = 5; @@ -257,7 +257,7 @@ public enum AggregationMetric implements com.google.protobuf.ProtocolMessageEnum * * *
-     * Maximum aggregation metric.
+     * Maximum aggregation metric. Not supported for pairwise metric.
      * 
* * MAXIMUM = 6; @@ -268,7 +268,7 @@ public enum AggregationMetric implements com.google.protobuf.ProtocolMessageEnum * * *
-     * Median aggregation metric.
+     * Median aggregation metric. Not supported for pairwise metric.
      * 
* * MEDIAN = 7; @@ -279,7 +279,7 @@ public enum AggregationMetric implements com.google.protobuf.ProtocolMessageEnum * * *
-     * 90th percentile aggregation metric.
+     * 90th percentile aggregation metric. Not supported for pairwise metric.
      * 
* * PERCENTILE_P90 = 8; @@ -290,7 +290,7 @@ public enum AggregationMetric implements com.google.protobuf.ProtocolMessageEnum * * *
-     * 95th percentile aggregation metric.
+     * 95th percentile aggregation metric. Not supported for pairwise metric.
      * 
* * PERCENTILE_P95 = 9; @@ -301,7 +301,7 @@ public enum AggregationMetric implements com.google.protobuf.ProtocolMessageEnum * * *
-     * 99th percentile aggregation metric.
+     * 99th percentile aggregation metric. Not supported for pairwise metric.
      * 
* * PERCENTILE_P99 = 10; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookExecutionJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookExecutionJob.java index 2158df405f30..a3aee1fd7fd6 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookExecutionJob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookExecutionJob.java @@ -5454,14 +5454,11 @@ public com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder() { * * *
-   * Output only. The Schedule resource name if this job is triggered by one.
-   * Format:
+   * The Schedule resource name if this job is triggered by one. Format:
    * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
    * 
* - * - * string schedule_resource_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * + * string schedule_resource_name = 6 [(.google.api.resource_reference) = { ... } * * @return The scheduleResourceName. */ @@ -5482,14 +5479,11 @@ public java.lang.String getScheduleResourceName() { * * *
-   * Output only. The Schedule resource name if this job is triggered by one.
-   * Format:
+   * The Schedule resource name if this job is triggered by one. Format:
    * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
    * 
* - * - * string schedule_resource_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * + * string schedule_resource_name = 6 [(.google.api.resource_reference) = { ... } * * @return The bytes for scheduleResourceName. */ @@ -9410,14 +9404,11 @@ public com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder() { * * *
-     * Output only. The Schedule resource name if this job is triggered by one.
-     * Format:
+     * The Schedule resource name if this job is triggered by one. Format:
      * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
      * 
* - * - * string schedule_resource_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * + * string schedule_resource_name = 6 [(.google.api.resource_reference) = { ... } * * @return The scheduleResourceName. */ @@ -9437,14 +9428,11 @@ public java.lang.String getScheduleResourceName() { * * *
-     * Output only. The Schedule resource name if this job is triggered by one.
-     * Format:
+     * The Schedule resource name if this job is triggered by one. Format:
      * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
      * 
* - * - * string schedule_resource_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * + * string schedule_resource_name = 6 [(.google.api.resource_reference) = { ... } * * @return The bytes for scheduleResourceName. */ @@ -9464,14 +9452,11 @@ public com.google.protobuf.ByteString getScheduleResourceNameBytes() { * * *
-     * Output only. The Schedule resource name if this job is triggered by one.
-     * Format:
+     * The Schedule resource name if this job is triggered by one. Format:
      * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
      * 
* - * - * string schedule_resource_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * + * string schedule_resource_name = 6 [(.google.api.resource_reference) = { ... } * * @param value The scheduleResourceName to set. * @return This builder for chaining. @@ -9490,14 +9475,11 @@ public Builder setScheduleResourceName(java.lang.String value) { * * *
-     * Output only. The Schedule resource name if this job is triggered by one.
-     * Format:
+     * The Schedule resource name if this job is triggered by one. Format:
      * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
      * 
* - * - * string schedule_resource_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * + * string schedule_resource_name = 6 [(.google.api.resource_reference) = { ... } * * @return This builder for chaining. */ @@ -9512,14 +9494,11 @@ public Builder clearScheduleResourceName() { * * *
-     * Output only. The Schedule resource name if this job is triggered by one.
-     * Format:
+     * The Schedule resource name if this job is triggered by one. Format:
      * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
      * 
* - * - * string schedule_resource_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * + * string schedule_resource_name = 6 [(.google.api.resource_reference) = { ... } * * @param value The bytes for scheduleResourceName to set. * @return This builder for chaining. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookExecutionJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookExecutionJobOrBuilder.java index 03d7171fad6c..388930f4a2d3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookExecutionJobOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookExecutionJobOrBuilder.java @@ -512,14 +512,11 @@ public interface NotebookExecutionJobOrBuilder * * *
-   * Output only. The Schedule resource name if this job is triggered by one.
-   * Format:
+   * The Schedule resource name if this job is triggered by one. Format:
    * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
    * 
* - * - * string schedule_resource_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * + * string schedule_resource_name = 6 [(.google.api.resource_reference) = { ... } * * @return The scheduleResourceName. */ @@ -529,14 +526,11 @@ public interface NotebookExecutionJobOrBuilder * * *
-   * Output only. The Schedule resource name if this job is triggered by one.
-   * Format:
+   * The Schedule resource name if this job is triggered by one. Format:
    * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
    * 
* - * - * string schedule_resource_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * + * string schedule_resource_name = 6 [(.google.api.resource_reference) = { ... } * * @return The bytes for scheduleResourceName. */ diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookExecutionJobProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookExecutionJobProto.java index 6391cc4d61a2..09020c3e21c0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookExecutionJobProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookExecutionJobProto.java @@ -72,7 +72,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "gle/cloud/aiplatform/v1beta1/encryption_spec.proto\032/google/cloud/aiplatform/v1be" + "ta1/job_state.proto\0327google/cloud/aiplatform/v1beta1/machine_resources.proto\0322go" + "ogle/cloud/aiplatform/v1beta1/network_spec.proto\032\036google/protobuf/duration.proto" - + "\032\037google/protobuf/timestamp.proto\032\027google/rpc/status.proto\"\272\020\n" + + "\032\037google/protobuf/timestamp.proto\032\027google/rpc/status.proto\"\267\020\n" + "\024NotebookExecutionJob\022t\n" + "\032dataform_repository_source\030\003 \001(\0132" + "N.google.cloud.aiplatform.v1beta1.Notebo" @@ -92,8 +92,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "atform.v1beta1.NotebookExecutionJob.WorkbenchRuntimeH\004\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\024\n" + "\014display_name\030\002 \001(\t\0224\n" - + "\021execution_timeout\030\005 \001(\0132\031.google.protobuf.Duration\022J\n" - + "\026schedule_resource_name\030\006 \001(\tB*\340A\003\372A$\n" + + "\021execution_timeout\030\005 \001(\0132\031.google.protobuf.Duration\022G\n" + + "\026schedule_resource_name\030\006 \001(\tB\'\372A$\n" + "\"aiplatform.googleapis.com/Schedule\022A\n" + "\tjob_state\030\n" + " \001(\0162).google.cloud.aiplatform.v1beta1.JobStateB\003\340A\003\022\'\n" @@ -101,8 +101,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013create_time\030\014 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\r" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022Q\n" - + "\006labels\030\023 \003(\0132A.google.cloud.aiplatf" - + "orm.v1beta1.NotebookExecutionJob.LabelsEntry\022\023\n" + + "\006labels\030\023 \003(\0132A.google.cloud.aiplatform" + + ".v1beta1.NotebookExecutionJob.LabelsEntry\022\023\n" + "\013kernel_name\030\024 \001(\t\022H\n" + "\017encryption_spec\030\026" + " \001(\0132/.google.cloud.aiplatform.v1beta1.EncryptionSpec\032Y\n" @@ -119,25 +119,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132,.google.cloud.aiplatform.v1beta1.MachineSpec\022Q\n" + "\024persistent_disk_spec\030\002" + " \001(\01323.google.cloud.aiplatform.v1beta1.PersistentDiskSpec\022B\n" - + "\014network_spec\030\003" - + " \001(\0132,.google.cloud.aiplatform.v1beta1.NetworkSpec\032\022\n" + + "\014network_spec\030\003 \001(" + + "\0132,.google.cloud.aiplatform.v1beta1.NetworkSpec\032\022\n" + "\020WorkbenchRuntime\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:\271\001\352A\265\001\n" - + ".aiplatform.googleapis.com/NotebookExecutionJob\022Vprojects/{project}/locatio" - + "ns/{location}/notebookExecutionJobs/{not" - + "ebook_execution_job}*\025notebookExecutionJobs2\024notebookExecutionJobB\021\n" + + ".aiplatform.googleapis.com/NotebookExecutionJob\022Vprojects/{project}/locations/" + + "{location}/notebookExecutionJobs/{notebo" + + "ok_execution_job}*\025notebookExecutionJobs2\024notebookExecutionJobB\021\n" + "\017notebook_sourceB\022\n" + "\020environment_specB\020\n" + "\016execution_sinkB\024\n" + "\022execution_identityB\025\n" + "\023runtime_environmentB\360\001\n" - + "#com.google.cloud.aiplatform.v1beta1B\031NotebookExecutionJobProtoP\001ZCcl" - + "oud.google.com/go/aiplatform/apiv1beta1/" - + "aiplatformpb;aiplatformpb\252\002\037Google.Cloud" - + ".AIPlatform.V1Beta1\312\002\037Google\\Cloud\\AIPla" - + "tform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3" + + "#com.google.cloud.aiplatform.v1beta1B\031NotebookExecutionJobProtoP\001ZCcloud" + + ".google.com/go/aiplatform/apiv1beta1/aip" + + "latformpb;aiplatformpb\252\002\037Google.Cloud.AI" + + "Platform.V1Beta1\312\002\037Google\\Cloud\\AIPlatfo" + + "rm\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookRuntime.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookRuntime.java index e73f1d071f18..2e13656c4698 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookRuntime.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookRuntime.java @@ -24,8 +24,9 @@ * *
  * A runtime is a virtual machine allocated to a particular user for a
- * particular Notebook file on temporary basis with lifetime limited to 24
- * hours.
+ * particular Notebook file on temporary basis with lifetime. Default runtimes
+ * have a lifetime of 18 hours, while custom runtimes last for 6 months from
+ * their creation or last upgrade.
  * 
* * Protobuf type {@code google.cloud.aiplatform.v1beta1.NotebookRuntime} @@ -284,7 +285,8 @@ public enum RuntimeState implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * NotebookRuntime is in starting state.
+     * NotebookRuntime is in starting state. This is when the runtime is being
+     * started from a stopped state.
      * 
* * BEING_STARTED = 2; @@ -370,7 +372,8 @@ public enum RuntimeState implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * NotebookRuntime is in starting state.
+     * NotebookRuntime is in starting state. This is when the runtime is being
+     * started from a stopped state.
      * 
* * BEING_STARTED = 2; @@ -2570,8 +2573,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * A runtime is a virtual machine allocated to a particular user for a
-   * particular Notebook file on temporary basis with lifetime limited to 24
-   * hours.
+   * particular Notebook file on temporary basis with lifetime. Default runtimes
+   * have a lifetime of 18 hours, while custom runtimes last for 6 months from
+   * their creation or last upgrade.
    * 
* * Protobuf type {@code google.cloud.aiplatform.v1beta1.NotebookRuntime} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookSoftwareConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookSoftwareConfig.java index 0c4367b6cffe..525013a1364d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookSoftwareConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookSoftwareConfig.java @@ -19,7 +19,16 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.aiplatform.v1beta1; -/** Protobuf type {@code google.cloud.aiplatform.v1beta1.NotebookSoftwareConfig} */ +/** + * + * + *
+ * Notebook Software Config. This is passed to the backend when user
+ * makes software configurations in UI.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.NotebookSoftwareConfig} + */ public final class NotebookSoftwareConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.NotebookSoftwareConfig) @@ -57,6 +66,113 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } private int bitField0_; + private int runtimeImageCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object runtimeImage_; + + public enum RuntimeImageCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + COLAB_IMAGE(5), + RUNTIMEIMAGE_NOT_SET(0); + private final int value; + + private RuntimeImageCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static RuntimeImageCase valueOf(int value) { + return forNumber(value); + } + + public static RuntimeImageCase forNumber(int value) { + switch (value) { + case 5: + return COLAB_IMAGE; + case 0: + return RUNTIMEIMAGE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public RuntimeImageCase getRuntimeImageCase() { + return RuntimeImageCase.forNumber(runtimeImageCase_); + } + + public static final int COLAB_IMAGE_FIELD_NUMBER = 5; + + /** + * + * + *
+   * Optional. Google-managed NotebookRuntime colab image.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ColabImage colab_image = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the colabImage field is set. + */ + @java.lang.Override + public boolean hasColabImage() { + return runtimeImageCase_ == 5; + } + + /** + * + * + *
+   * Optional. Google-managed NotebookRuntime colab image.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ColabImage colab_image = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The colabImage. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ColabImage getColabImage() { + if (runtimeImageCase_ == 5) { + return (com.google.cloud.aiplatform.v1beta1.ColabImage) runtimeImage_; + } + return com.google.cloud.aiplatform.v1beta1.ColabImage.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. Google-managed NotebookRuntime colab image.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ColabImage colab_image = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ColabImageOrBuilder getColabImageOrBuilder() { + if (runtimeImageCase_ == 5) { + return (com.google.cloud.aiplatform.v1beta1.ColabImage) runtimeImage_; + } + return com.google.cloud.aiplatform.v1beta1.ColabImage.getDefaultInstance(); + } + public static final int ENV_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -210,6 +326,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getPostStartupScriptConfig()); } + if (runtimeImageCase_ == 5) { + output.writeMessage(5, (com.google.cloud.aiplatform.v1beta1.ColabImage) runtimeImage_); + } getUnknownFields().writeTo(output); } @@ -226,6 +345,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPostStartupScriptConfig()); } + if (runtimeImageCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.aiplatform.v1beta1.ColabImage) runtimeImage_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -247,6 +371,14 @@ public boolean equals(final java.lang.Object obj) { if (hasPostStartupScriptConfig()) { if (!getPostStartupScriptConfig().equals(other.getPostStartupScriptConfig())) return false; } + if (!getRuntimeImageCase().equals(other.getRuntimeImageCase())) return false; + switch (runtimeImageCase_) { + case 5: + if (!getColabImage().equals(other.getColabImage())) return false; + break; + case 0: + default: + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -266,6 +398,14 @@ public int hashCode() { hash = (37 * hash) + POST_STARTUP_SCRIPT_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getPostStartupScriptConfig().hashCode(); } + switch (runtimeImageCase_) { + case 5: + hash = (37 * hash) + COLAB_IMAGE_FIELD_NUMBER; + hash = (53 * hash) + getColabImage().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -368,7 +508,16 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build return builder; } - /** Protobuf type {@code google.cloud.aiplatform.v1beta1.NotebookSoftwareConfig} */ + /** + * + * + *
+   * Notebook Software Config. This is passed to the backend when user
+   * makes software configurations in UI.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.NotebookSoftwareConfig} + */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.NotebookSoftwareConfig) @@ -409,18 +558,23 @@ private void maybeForceBuilderInitialization() { public Builder clear() { super.clear(); bitField0_ = 0; + if (colabImageBuilder_ != null) { + colabImageBuilder_.clear(); + } if (envBuilder_ == null) { env_ = java.util.Collections.emptyList(); } else { env_ = null; envBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); postStartupScriptConfig_ = null; if (postStartupScriptConfigBuilder_ != null) { postStartupScriptConfigBuilder_.dispose(); postStartupScriptConfigBuilder_ = null; } + runtimeImageCase_ = 0; + runtimeImage_ = null; return this; } @@ -452,6 +606,7 @@ public com.google.cloud.aiplatform.v1beta1.NotebookSoftwareConfig buildPartial() if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); onBuilt(); return result; } @@ -459,9 +614,9 @@ public com.google.cloud.aiplatform.v1beta1.NotebookSoftwareConfig buildPartial() private void buildPartialRepeatedFields( com.google.cloud.aiplatform.v1beta1.NotebookSoftwareConfig result) { if (envBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { env_ = java.util.Collections.unmodifiableList(env_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.env_ = env_; } else { @@ -472,7 +627,7 @@ private void buildPartialRepeatedFields( private void buildPartial0(com.google.cloud.aiplatform.v1beta1.NotebookSoftwareConfig result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { + if (((from_bitField0_ & 0x00000004) != 0)) { result.postStartupScriptConfig_ = postStartupScriptConfigBuilder_ == null ? postStartupScriptConfig_ @@ -482,6 +637,15 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.NotebookSoftwareC result.bitField0_ |= to_bitField0_; } + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.NotebookSoftwareConfig result) { + result.runtimeImageCase_ = runtimeImageCase_; + result.runtimeImage_ = this.runtimeImage_; + if (runtimeImageCase_ == 5 && colabImageBuilder_ != null) { + result.runtimeImage_ = colabImageBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -532,7 +696,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.NotebookSoftwareCon if (!other.env_.isEmpty()) { if (env_.isEmpty()) { env_ = other.env_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureEnvIsMutable(); env_.addAll(other.env_); @@ -545,7 +709,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.NotebookSoftwareCon envBuilder_.dispose(); envBuilder_ = null; env_ = other.env_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); envBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEnvFieldBuilder() @@ -558,6 +722,17 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.NotebookSoftwareCon if (other.hasPostStartupScriptConfig()) { mergePostStartupScriptConfig(other.getPostStartupScriptConfig()); } + switch (other.getRuntimeImageCase()) { + case COLAB_IMAGE: + { + mergeColabImage(other.getColabImage()); + break; + } + case RUNTIMEIMAGE_NOT_SET: + { + break; + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -601,9 +776,15 @@ public Builder mergeFrom( { input.readMessage( getPostStartupScriptConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; break; } // case 18 + case 42: + { + input.readMessage(getColabImageFieldBuilder().getBuilder(), extensionRegistry); + runtimeImageCase_ = 5; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -621,15 +802,266 @@ public Builder mergeFrom( return this; } + private int runtimeImageCase_ = 0; + private java.lang.Object runtimeImage_; + + public RuntimeImageCase getRuntimeImageCase() { + return RuntimeImageCase.forNumber(runtimeImageCase_); + } + + public Builder clearRuntimeImage() { + runtimeImageCase_ = 0; + runtimeImage_ = null; + onChanged(); + return this; + } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ColabImage, + com.google.cloud.aiplatform.v1beta1.ColabImage.Builder, + com.google.cloud.aiplatform.v1beta1.ColabImageOrBuilder> + colabImageBuilder_; + + /** + * + * + *
+     * Optional. Google-managed NotebookRuntime colab image.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ColabImage colab_image = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the colabImage field is set. + */ + @java.lang.Override + public boolean hasColabImage() { + return runtimeImageCase_ == 5; + } + + /** + * + * + *
+     * Optional. Google-managed NotebookRuntime colab image.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ColabImage colab_image = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The colabImage. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ColabImage getColabImage() { + if (colabImageBuilder_ == null) { + if (runtimeImageCase_ == 5) { + return (com.google.cloud.aiplatform.v1beta1.ColabImage) runtimeImage_; + } + return com.google.cloud.aiplatform.v1beta1.ColabImage.getDefaultInstance(); + } else { + if (runtimeImageCase_ == 5) { + return colabImageBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.ColabImage.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Google-managed NotebookRuntime colab image.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ColabImage colab_image = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setColabImage(com.google.cloud.aiplatform.v1beta1.ColabImage value) { + if (colabImageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + runtimeImage_ = value; + onChanged(); + } else { + colabImageBuilder_.setMessage(value); + } + runtimeImageCase_ = 5; + return this; + } + + /** + * + * + *
+     * Optional. Google-managed NotebookRuntime colab image.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ColabImage colab_image = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setColabImage( + com.google.cloud.aiplatform.v1beta1.ColabImage.Builder builderForValue) { + if (colabImageBuilder_ == null) { + runtimeImage_ = builderForValue.build(); + onChanged(); + } else { + colabImageBuilder_.setMessage(builderForValue.build()); + } + runtimeImageCase_ = 5; + return this; + } + + /** + * + * + *
+     * Optional. Google-managed NotebookRuntime colab image.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ColabImage colab_image = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeColabImage(com.google.cloud.aiplatform.v1beta1.ColabImage value) { + if (colabImageBuilder_ == null) { + if (runtimeImageCase_ == 5 + && runtimeImage_ + != com.google.cloud.aiplatform.v1beta1.ColabImage.getDefaultInstance()) { + runtimeImage_ = + com.google.cloud.aiplatform.v1beta1.ColabImage.newBuilder( + (com.google.cloud.aiplatform.v1beta1.ColabImage) runtimeImage_) + .mergeFrom(value) + .buildPartial(); + } else { + runtimeImage_ = value; + } + onChanged(); + } else { + if (runtimeImageCase_ == 5) { + colabImageBuilder_.mergeFrom(value); + } else { + colabImageBuilder_.setMessage(value); + } + } + runtimeImageCase_ = 5; + return this; + } + + /** + * + * + *
+     * Optional. Google-managed NotebookRuntime colab image.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ColabImage colab_image = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearColabImage() { + if (colabImageBuilder_ == null) { + if (runtimeImageCase_ == 5) { + runtimeImageCase_ = 0; + runtimeImage_ = null; + onChanged(); + } + } else { + if (runtimeImageCase_ == 5) { + runtimeImageCase_ = 0; + runtimeImage_ = null; + } + colabImageBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Google-managed NotebookRuntime colab image.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ColabImage colab_image = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ColabImage.Builder getColabImageBuilder() { + return getColabImageFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Google-managed NotebookRuntime colab image.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ColabImage colab_image = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ColabImageOrBuilder getColabImageOrBuilder() { + if ((runtimeImageCase_ == 5) && (colabImageBuilder_ != null)) { + return colabImageBuilder_.getMessageOrBuilder(); + } else { + if (runtimeImageCase_ == 5) { + return (com.google.cloud.aiplatform.v1beta1.ColabImage) runtimeImage_; + } + return com.google.cloud.aiplatform.v1beta1.ColabImage.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Google-managed NotebookRuntime colab image.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ColabImage colab_image = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ColabImage, + com.google.cloud.aiplatform.v1beta1.ColabImage.Builder, + com.google.cloud.aiplatform.v1beta1.ColabImageOrBuilder> + getColabImageFieldBuilder() { + if (colabImageBuilder_ == null) { + if (!(runtimeImageCase_ == 5)) { + runtimeImage_ = com.google.cloud.aiplatform.v1beta1.ColabImage.getDefaultInstance(); + } + colabImageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ColabImage, + com.google.cloud.aiplatform.v1beta1.ColabImage.Builder, + com.google.cloud.aiplatform.v1beta1.ColabImageOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.ColabImage) runtimeImage_, + getParentForChildren(), + isClean()); + runtimeImage_ = null; + } + runtimeImageCase_ = 5; + onChanged(); + return colabImageBuilder_; + } + private java.util.List env_ = java.util.Collections.emptyList(); private void ensureEnvIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { env_ = new java.util.ArrayList(env_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -887,7 +1319,7 @@ public Builder addAllEnv( public Builder clearEnv() { if (envBuilder_ == null) { env_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { envBuilder_.clear(); @@ -1036,7 +1468,7 @@ public java.util.List getEnv com.google.cloud.aiplatform.v1beta1.EnvVar, com.google.cloud.aiplatform.v1beta1.EnvVar.Builder, com.google.cloud.aiplatform.v1beta1.EnvVarOrBuilder>( - env_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + env_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); env_ = null; } return envBuilder_; @@ -1057,7 +1489,7 @@ public java.util.List getEnv * @return Whether the postStartupScriptConfig field is set. */ public boolean hasPostStartupScriptConfig() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** @@ -1093,7 +1525,7 @@ public Builder setPostStartupScriptConfig( } else { postStartupScriptConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1110,7 +1542,7 @@ public Builder setPostStartupScriptConfig( } else { postStartupScriptConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1123,7 +1555,7 @@ public Builder setPostStartupScriptConfig( public Builder mergePostStartupScriptConfig( com.google.cloud.aiplatform.v1beta1.PostStartupScriptConfig value) { if (postStartupScriptConfigBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) + if (((bitField0_ & 0x00000004) != 0) && postStartupScriptConfig_ != null && postStartupScriptConfig_ != com.google.cloud.aiplatform.v1beta1.PostStartupScriptConfig @@ -1136,7 +1568,7 @@ public Builder mergePostStartupScriptConfig( postStartupScriptConfigBuilder_.mergeFrom(value); } if (postStartupScriptConfig_ != null) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); } return this; @@ -1148,7 +1580,7 @@ public Builder mergePostStartupScriptConfig( * */ public Builder clearPostStartupScriptConfig() { - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); postStartupScriptConfig_ = null; if (postStartupScriptConfigBuilder_ != null) { postStartupScriptConfigBuilder_.dispose(); @@ -1165,7 +1597,7 @@ public Builder clearPostStartupScriptConfig() { */ public com.google.cloud.aiplatform.v1beta1.PostStartupScriptConfig.Builder getPostStartupScriptConfigBuilder() { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return getPostStartupScriptConfigFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookSoftwareConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookSoftwareConfigOrBuilder.java index 27de4e593b4d..20b1230fee47 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookSoftwareConfigOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookSoftwareConfigOrBuilder.java @@ -24,6 +24,49 @@ public interface NotebookSoftwareConfigOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.NotebookSoftwareConfig) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+   * Optional. Google-managed NotebookRuntime colab image.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ColabImage colab_image = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the colabImage field is set. + */ + boolean hasColabImage(); + + /** + * + * + *
+   * Optional. Google-managed NotebookRuntime colab image.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ColabImage colab_image = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The colabImage. + */ + com.google.cloud.aiplatform.v1beta1.ColabImage getColabImage(); + + /** + * + * + *
+   * Optional. Google-managed NotebookRuntime colab image.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ColabImage colab_image = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.ColabImageOrBuilder getColabImageOrBuilder(); + /** * * @@ -120,4 +163,6 @@ public interface NotebookSoftwareConfigOrBuilder */ com.google.cloud.aiplatform.v1beta1.PostStartupScriptConfigOrBuilder getPostStartupScriptConfigOrBuilder(); + + com.google.cloud.aiplatform.v1beta1.NotebookSoftwareConfig.RuntimeImageCase getRuntimeImageCase(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookSoftwareConfigProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookSoftwareConfigProto.java index b0ce84ae33ff..3f27ebf74de0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookSoftwareConfigProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookSoftwareConfigProto.java @@ -32,6 +32,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_PostStartupScriptConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_PostStartupScriptConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ColabImage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ColabImage_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_NotebookSoftwareConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -58,18 +62,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003\340A\001\"\216\001\n\031PostStartupScriptBehavior\022,\n(PO" + "ST_STARTUP_SCRIPT_BEHAVIOR_UNSPECIFIED\020\000" + "\022\014\n\010RUN_ONCE\020\001\022\023\n\017RUN_EVERY_START\020\002\022 \n\034D" - + "OWNLOAD_AND_RUN_EVERY_START\020\003\"\266\001\n\026Notebo" - + "okSoftwareConfig\0229\n\003env\030\001 \003(\0132\'.google.c" - + "loud.aiplatform.v1beta1.EnvVarB\003\340A\001\022a\n\032p" - + "ost_startup_script_config\030\002 \001(\01328.google" - + ".cloud.aiplatform.v1beta1.PostStartupScr" - + "iptConfigB\003\340A\001B\362\001\n#com.google.cloud.aipl" - + "atform.v1beta1B\033NotebookSoftwareConfigPr" - + "otoP\001ZCcloud.google.com/go/aiplatform/ap" - + "iv1beta1/aiplatformpb;aiplatformpb\252\002\037Goo" - + "gle.Cloud.AIPlatform.V1Beta1\312\002\037Google\\Cl" - + "oud\\AIPlatform\\V1beta1\352\002\"Google::Cloud::" - + "AIPlatform::V1beta1b\006proto3" + + "OWNLOAD_AND_RUN_EVERY_START\020\003\"A\n\nColabIm" + + "age\022\031\n\014release_name\030\001 \001(\tB\003\340A\001\022\030\n\013descri" + + "ption\030\002 \001(\tB\003\340A\003\"\220\002\n\026NotebookSoftwareCon" + + "fig\022G\n\013colab_image\030\005 \001(\0132+.google.cloud." + + "aiplatform.v1beta1.ColabImageB\003\340A\001H\000\0229\n\003" + + "env\030\001 \003(\0132\'.google.cloud.aiplatform.v1be" + + "ta1.EnvVarB\003\340A\001\022a\n\032post_startup_script_c" + + "onfig\030\002 \001(\01328.google.cloud.aiplatform.v1" + + "beta1.PostStartupScriptConfigB\003\340A\001B\017\n\rru" + + "ntime_imageB\362\001\n#com.google.cloud.aiplatf" + + "orm.v1beta1B\033NotebookSoftwareConfigProto" + + "P\001ZCcloud.google.com/go/aiplatform/apiv1" + + "beta1/aiplatformpb;aiplatformpb\252\002\037Google" + + ".Cloud.AIPlatform.V1Beta1\312\002\037Google\\Cloud" + + "\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AIP" + + "latform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -86,13 +94,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "PostStartupScript", "PostStartupScriptUrl", "PostStartupScriptBehavior", }); - internal_static_google_cloud_aiplatform_v1beta1_NotebookSoftwareConfig_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_ColabImage_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_aiplatform_v1beta1_ColabImage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ColabImage_descriptor, + new java.lang.String[] { + "ReleaseName", "Description", + }); + internal_static_google_cloud_aiplatform_v1beta1_NotebookSoftwareConfig_descriptor = + getDescriptor().getMessageTypes().get(2); internal_static_google_cloud_aiplatform_v1beta1_NotebookSoftwareConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_NotebookSoftwareConfig_descriptor, new java.lang.String[] { - "Env", "PostStartupScriptConfig", + "ColabImage", "Env", "PostStartupScriptConfig", "RuntimeImage", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Pipeline.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Pipeline.java index 2aaa926fc2cb..83b585ada360 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Pipeline.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Pipeline.java @@ -235,7 +235,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024pipeline_run_context\030\002" + " \001(\0132(.google.cloud.aiplatform.v1beta1.ContextB\003\340A\003\022N\n" + "\014task_details\030\003" - + " \003(\01323.google.cloud.aiplatform.v1beta1.PipelineTaskDetailB\003\340A\003\"\317\013\n" + + " \003(\01323.google.cloud.aiplatform.v1beta1.PipelineTaskDetailB\003\340A\003\"\356\013\n" + "\022PipelineTaskDetail\022\024\n" + "\007task_id\030\001 \001(\003B\003\340A\003\022\033\n" + "\016parent_task_id\030\014 \001(\003B\003\340A\003\022\026\n" @@ -258,23 +258,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(" + "\0132?.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.InputsEntryB\003\340A\003\022V\n" + "\007outputs\030\013 \003(\0132@.google.cloud.aiplatform.v1bet" - + "a1.PipelineTaskDetail.OutputsEntryB\003\340A\003\032\301\001\n" + + "a1.PipelineTaskDetail.OutputsEntryB\003\340A\003\022\035\n" + + "\020task_unique_name\030\016 \001(\tB\003\340A\003\032\301\001\n" + "\022PipelineTaskStatus\0224\n" + "\013update_time\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022M\n" - + "\005state\030\002" - + " \001(\01629.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.StateB\003\340A\003\022&\n" + + "\005state\030\002 \001" + + "(\01629.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.StateB\003\340A\003\022&\n" + "\005error\030\003 \001(\0132\022.google.rpc.StatusB\003\340A\003\032Q\n" + "\014ArtifactList\022A\n" - + "\tartifacts\030\001 \003(\0132).google." - + "cloud.aiplatform.v1beta1.ArtifactB\003\340A\003\032o\n" + + "\tartifacts\030\001" + + " \003(\0132).google.cloud.aiplatform.v1beta1.ArtifactB\003\340A\003\032o\n" + "\013InputsEntry\022\013\n" + "\003key\030\001 \001(\t\022O\n" - + "\005value\030\002 \001(" - + "\0132@.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList:\0028\001\032p\n" + + "\005value\030\002 \001(\0132@.googl" + + "e.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList:\0028\001\032p\n" + "\014OutputsEntry\022\013\n" + "\003key\030\001 \001(\t\022O\n" - + "\005value\030\002 \001(\0132@.go" - + "ogle.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList:\0028\001\"\246\001\n" + + "\005value\030\002 \001(\0132@.google.clou" + + "d.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList:\0028\001\"\246\001\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\013\n" + "\007PENDING\020\001\022\013\n" @@ -287,10 +288,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007SKIPPED\020\010\022\021\n\r" + "NOT_TRIGGERED\020\t\"\325\004\n" + "\032PipelineTaskExecutorDetail\022l\n" - + "\020container_detail\030\001 \001(\0132K.google.cloud.aiplatform.v1" - + "beta1.PipelineTaskExecutorDetail.ContainerDetailB\003\340A\003H\000\022m\n" - + "\021custom_job_detail\030\002 \001(\0132K.google.cloud.aiplatform.v1beta1.Pip" - + "elineTaskExecutorDetail.CustomJobDetailB\003\340A\003H\000\032\347\001\n" + + "\020container_detail\030\001 \001(\0132K.google.cloud.aiplatform.v1beta1.Pip" + + "elineTaskExecutorDetail.ContainerDetailB\003\340A\003H\000\022m\n" + + "\021custom_job_detail\030\002 \001(\0132K.google.cloud.aiplatform.v1beta1.PipelineTask" + + "ExecutorDetail.CustomJobDetailB\003\340A\003H\000\032\347\001\n" + "\017ContainerDetail\022=\n" + "\010main_job\030\001 \001(\tB+\340A\003\372A%\n" + "#aiplatform.googleapis.com/CustomJob\022J\n" @@ -306,32 +307,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027PipelineTaskRerunConfig\022\024\n" + "\007task_id\030\001 \001(\003B\003\340A\001\022\026\n" + "\ttask_name\030\002 \001(\tB\003\340A\001\022T\n" - + "\006inputs\030\003" - + " \001(\0132?.google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.InputsB\003\340A\001\022\026\n" + + "\006inputs\030\003 \001(\0132?.go" + + "ogle.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.InputsB\003\340A\001\022\026\n" + "\tskip_task\030\004 \001(\010B\003\340A\001\022\"\n" + "\025skip_downstream_tasks\030\005 \001(\010B\003\340A\001\032X\n" + "\014ArtifactList\022H\n" - + "\tartifacts\030\001" - + " \003(\01320.google.cloud.aiplatform.v1beta1.RuntimeArtifactB\003\340A\001\032\256\003\n" + + "\tartifacts\030\001 \003(\013" + + "20.google.cloud.aiplatform.v1beta1.RuntimeArtifactB\003\340A\001\032\256\003\n" + "\006Inputs\022f\n" - + "\tartifacts\030\001 \003(\0132N.google.cloud.aiplatform" - + ".v1beta1.PipelineTaskRerunConfig.Inputs.ArtifactsEntryB\003\340A\001\022s\n" - + "\020parameter_values\030\002 \003(\0132T.google.cloud.aiplatform.v1beta1." - + "PipelineTaskRerunConfig.Inputs.ParameterValuesEntryB\003\340A\001\032w\n" + + "\tartifacts\030\001 \003(\0132N.google.cloud.aiplatform.v1beta1." + + "PipelineTaskRerunConfig.Inputs.ArtifactsEntryB\003\340A\001\022s\n" + + "\020parameter_values\030\002 \003(\0132T.google.cloud.aiplatform.v1beta1.PipelineT" + + "askRerunConfig.Inputs.ParameterValuesEntryB\003\340A\001\032w\n" + "\016ArtifactsEntry\022\013\n" + "\003key\030\001 \001(\t\022T\n" - + "\005value\030\002 \001(\0132E.google.cloud.ai" - + "platform.v1beta1.PipelineTaskRerunConfig.ArtifactList:\0028\001\032N\n" + + "\005value\030\002 \001(\0132E.google.cloud.aiplatform." + + "v1beta1.PipelineTaskRerunConfig.ArtifactList:\0028\001\032N\n" + "\024ParameterValuesEntry\022\013\n" + "\003key\030\001 \001(\t\022%\n" + "\005value\030\002 \001(\0132\026.google.protobuf.Value:\0028\001B\260\002\n" - + "#com.google.cloud.aiplatform.v1beta1B\010PipelineP\001ZCcloud.goo" - + "gle.com/go/aiplatform/apiv1beta1/aiplatf" - + "ormpb;aiplatformpb\252\002\037Google.Cloud.AIPlat" - + "form.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V" - + "1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1\352AN\n" - + "\036compute.googleapis.com/Network\022,projects/{project}/global/networks/{netw" - + "ork}b\006proto3" + + "#com.google.cloud.aiplatform.v1beta1B\010PipelineP\001ZCcloud.google.com/g" + + "o/aiplatform/apiv1beta1/aiplatformpb;aip" + + "latformpb\252\002\037Google.Cloud.AIPlatform.V1Be" + + "ta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1\352AN\n" + + "\036compute.googleapis.com/Network\022,projects/" + + "{project}/global/networks/{network}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -506,6 +506,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PipelineTaskStatus", "Inputs", "Outputs", + "TaskUniqueName", }); internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskDetail_PipelineTaskStatus_descriptor = internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskDetail_descriptor diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskDetail.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskDetail.java index 83aa5d95add2..4d1d24c281fd 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskDetail.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskDetail.java @@ -43,6 +43,7 @@ private PipelineTaskDetail() { taskName_ = ""; state_ = 0; pipelineTaskStatus_ = java.util.Collections.emptyList(); + taskUniqueName_ = ""; } @java.lang.Override @@ -3706,6 +3707,73 @@ public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList getOu return map.get(key); } + public static final int TASK_UNIQUE_NAME_FIELD_NUMBER = 14; + + @SuppressWarnings("serial") + private volatile java.lang.Object taskUniqueName_ = ""; + + /** + * + * + *
+   * Output only. The unique name of a task.
+   * This field is used by pipeline job reruns.
+   * Console UI and Vertex AI SDK will support triggering pipeline job reruns.
+   * The name is constructed by concatenating all the parent tasks' names with
+   * the task name. For example, if a task named "child_task" has a parent task
+   * named "parent_task_1" and parent task 1 has a parent task named
+   * "parent_task_2", the task unique name will be
+   * "parent_task_2.parent_task_1.child_task".
+   * 
+ * + * string task_unique_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The taskUniqueName. + */ + @java.lang.Override + public java.lang.String getTaskUniqueName() { + java.lang.Object ref = taskUniqueName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + taskUniqueName_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The unique name of a task.
+   * This field is used by pipeline job reruns.
+   * Console UI and Vertex AI SDK will support triggering pipeline job reruns.
+   * The name is constructed by concatenating all the parent tasks' names with
+   * the task name. For example, if a task named "child_task" has a parent task
+   * named "parent_task_1" and parent task 1 has a parent task named
+   * "parent_task_2", the task unique name will be
+   * "parent_task_2.parent_task_1.child_task".
+   * 
+ * + * string task_unique_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for taskUniqueName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTaskUniqueNameBytes() { + java.lang.Object ref = taskUniqueName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + taskUniqueName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3759,6 +3827,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < pipelineTaskStatus_.size(); i++) { output.writeMessage(13, pipelineTaskStatus_.get(i)); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(taskUniqueName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, taskUniqueName_); + } getUnknownFields().writeTo(output); } @@ -3830,6 +3901,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, pipelineTaskStatus_.get(i)); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(taskUniqueName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, taskUniqueName_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3877,6 +3951,7 @@ public boolean equals(final java.lang.Object obj) { if (!getPipelineTaskStatusList().equals(other.getPipelineTaskStatusList())) return false; if (!internalGetInputs().equals(other.internalGetInputs())) return false; if (!internalGetOutputs().equals(other.internalGetOutputs())) return false; + if (!getTaskUniqueName().equals(other.getTaskUniqueName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3932,6 +4007,8 @@ public int hashCode() { hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; hash = (53 * hash) + internalGetOutputs().hashCode(); } + hash = (37 * hash) + TASK_UNIQUE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getTaskUniqueName().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -4157,6 +4234,7 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000400); internalGetMutableInputs().clear(); internalGetMutableOutputs().clear(); + taskUniqueName_ = ""; return this; } @@ -4251,6 +4329,9 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.PipelineTaskDetai if (((from_bitField0_ & 0x00001000) != 0)) { result.outputs_ = internalGetOutputs().build(OutputsDefaultEntryHolder.defaultEntry); } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.taskUniqueName_ = taskUniqueName_; + } result.bitField0_ |= to_bitField0_; } @@ -4363,6 +4444,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail bitField0_ |= 0x00000800; internalGetMutableOutputs().mergeFrom(other.internalGetOutputs()); bitField0_ |= 0x00001000; + if (!other.getTaskUniqueName().isEmpty()) { + taskUniqueName_ = other.taskUniqueName_; + bitField0_ |= 0x00002000; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -4494,6 +4580,12 @@ public Builder mergeFrom( } break; } // case 106 + case 114: + { + taskUniqueName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00002000; + break; + } // case 114 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -7105,6 +7197,152 @@ public Builder putAllOutputs( return (com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList.Builder) entry; } + private java.lang.Object taskUniqueName_ = ""; + + /** + * + * + *
+     * Output only. The unique name of a task.
+     * This field is used by pipeline job reruns.
+     * Console UI and Vertex AI SDK will support triggering pipeline job reruns.
+     * The name is constructed by concatenating all the parent tasks' names with
+     * the task name. For example, if a task named "child_task" has a parent task
+     * named "parent_task_1" and parent task 1 has a parent task named
+     * "parent_task_2", the task unique name will be
+     * "parent_task_2.parent_task_1.child_task".
+     * 
+ * + * string task_unique_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The taskUniqueName. + */ + public java.lang.String getTaskUniqueName() { + java.lang.Object ref = taskUniqueName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + taskUniqueName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The unique name of a task.
+     * This field is used by pipeline job reruns.
+     * Console UI and Vertex AI SDK will support triggering pipeline job reruns.
+     * The name is constructed by concatenating all the parent tasks' names with
+     * the task name. For example, if a task named "child_task" has a parent task
+     * named "parent_task_1" and parent task 1 has a parent task named
+     * "parent_task_2", the task unique name will be
+     * "parent_task_2.parent_task_1.child_task".
+     * 
+ * + * string task_unique_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for taskUniqueName. + */ + public com.google.protobuf.ByteString getTaskUniqueNameBytes() { + java.lang.Object ref = taskUniqueName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + taskUniqueName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The unique name of a task.
+     * This field is used by pipeline job reruns.
+     * Console UI and Vertex AI SDK will support triggering pipeline job reruns.
+     * The name is constructed by concatenating all the parent tasks' names with
+     * the task name. For example, if a task named "child_task" has a parent task
+     * named "parent_task_1" and parent task 1 has a parent task named
+     * "parent_task_2", the task unique name will be
+     * "parent_task_2.parent_task_1.child_task".
+     * 
+ * + * string task_unique_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The taskUniqueName to set. + * @return This builder for chaining. + */ + public Builder setTaskUniqueName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + taskUniqueName_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The unique name of a task.
+     * This field is used by pipeline job reruns.
+     * Console UI and Vertex AI SDK will support triggering pipeline job reruns.
+     * The name is constructed by concatenating all the parent tasks' names with
+     * the task name. For example, if a task named "child_task" has a parent task
+     * named "parent_task_1" and parent task 1 has a parent task named
+     * "parent_task_2", the task unique name will be
+     * "parent_task_2.parent_task_1.child_task".
+     * 
+ * + * string task_unique_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTaskUniqueName() { + taskUniqueName_ = getDefaultInstance().getTaskUniqueName(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The unique name of a task.
+     * This field is used by pipeline job reruns.
+     * Console UI and Vertex AI SDK will support triggering pipeline job reruns.
+     * The name is constructed by concatenating all the parent tasks' names with
+     * the task name. For example, if a task named "child_task" has a parent task
+     * named "parent_task_1" and parent task 1 has a parent task named
+     * "parent_task_2", the task unique name will be
+     * "parent_task_2.parent_task_1.child_task".
+     * 
+ * + * string task_unique_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for taskUniqueName to set. + * @return This builder for chaining. + */ + public Builder setTaskUniqueNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + taskUniqueName_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskDetailOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskDetailOrBuilder.java index 4fdfd3940d39..9b9f490a777a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskDetailOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskDetailOrBuilder.java @@ -587,4 +587,44 @@ com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList getOutputsOr */ com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList getOutputsOrThrow( java.lang.String key); + + /** + * + * + *
+   * Output only. The unique name of a task.
+   * This field is used by pipeline job reruns.
+   * Console UI and Vertex AI SDK will support triggering pipeline job reruns.
+   * The name is constructed by concatenating all the parent tasks' names with
+   * the task name. For example, if a task named "child_task" has a parent task
+   * named "parent_task_1" and parent task 1 has a parent task named
+   * "parent_task_2", the task unique name will be
+   * "parent_task_2.parent_task_1.child_task".
+   * 
+ * + * string task_unique_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The taskUniqueName. + */ + java.lang.String getTaskUniqueName(); + + /** + * + * + *
+   * Output only. The unique name of a task.
+   * This field is used by pipeline job reruns.
+   * Console UI and Vertex AI SDK will support triggering pipeline job reruns.
+   * The name is constructed by concatenating all the parent tasks' names with
+   * the task name. For example, if a task named "child_task" has a parent task
+   * named "parent_task_1" and parent task 1 has a parent task named
+   * "parent_task_2", the task unique name will be
+   * "parent_task_2.parent_task_1.child_task".
+   * 
+ * + * string task_unique_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for taskUniqueName. + */ + com.google.protobuf.ByteString getTaskUniqueNameBytes(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Retrieval.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Retrieval.java index 3d647bc7b5a9..060fef55edb6 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Retrieval.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Retrieval.java @@ -238,7 +238,7 @@ public com.google.cloud.aiplatform.v1beta1.VertexRagStoreOrBuilder getVertexRagS * * * @deprecated google.cloud.aiplatform.v1beta1.Retrieval.disable_attribution is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=300 + * google/cloud/aiplatform/v1beta1/tool.proto;l=320 * @return The disableAttribution. */ @java.lang.Override @@ -1149,7 +1149,7 @@ public com.google.cloud.aiplatform.v1beta1.VertexRagStore.Builder getVertexRagSt * * * @deprecated google.cloud.aiplatform.v1beta1.Retrieval.disable_attribution is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=300 + * google/cloud/aiplatform/v1beta1/tool.proto;l=320 * @return The disableAttribution. */ @java.lang.Override @@ -1170,7 +1170,7 @@ public boolean getDisableAttribution() { * * * @deprecated google.cloud.aiplatform.v1beta1.Retrieval.disable_attribution is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=300 + * google/cloud/aiplatform/v1beta1/tool.proto;l=320 * @param value The disableAttribution to set. * @return This builder for chaining. */ @@ -1195,7 +1195,7 @@ public Builder setDisableAttribution(boolean value) { * * * @deprecated google.cloud.aiplatform.v1beta1.Retrieval.disable_attribution is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=300 + * google/cloud/aiplatform/v1beta1/tool.proto;l=320 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RetrievalOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RetrievalOrBuilder.java index 8f4eaa8ab9fd..5f8106fa3330 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RetrievalOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RetrievalOrBuilder.java @@ -113,7 +113,7 @@ public interface RetrievalOrBuilder * * * @deprecated google.cloud.aiplatform.v1beta1.Retrieval.disable_attribution is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=300 + * google/cloud/aiplatform/v1beta1/tool.proto;l=320 * @return The disableAttribution. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Tool.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Tool.java index 2e40284c32fa..b2246b442820 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Tool.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Tool.java @@ -932,6 +932,793 @@ public com.google.cloud.aiplatform.v1beta1.Tool.CodeExecution getDefaultInstance } } + public interface ComputerUseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.Tool.ComputerUse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. The environment being operated.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.ComputerUse.Environment environment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for environment. + */ + int getEnvironmentValue(); + + /** + * + * + *
+     * Required. The environment being operated.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.ComputerUse.Environment environment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The environment. + */ + com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse.Environment getEnvironment(); + } + + /** + * + * + *
+   * Tool to support computer use.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Tool.ComputerUse} + */ + public static final class ComputerUse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.Tool.ComputerUse) + ComputerUseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ComputerUse.newBuilder() to construct. + private ComputerUse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ComputerUse() { + environment_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ComputerUse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ToolProto + .internal_static_google_cloud_aiplatform_v1beta1_Tool_ComputerUse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ToolProto + .internal_static_google_cloud_aiplatform_v1beta1_Tool_ComputerUse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse.class, + com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse.Builder.class); + } + + /** + * + * + *
+     * Represents the environment being operated, such as a web browser.
+     * 
+ * + * Protobuf enum {@code google.cloud.aiplatform.v1beta1.Tool.ComputerUse.Environment} + */ + public enum Environment implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Defaults to browser.
+       * 
+ * + * ENVIRONMENT_UNSPECIFIED = 0; + */ + ENVIRONMENT_UNSPECIFIED(0), + /** + * + * + *
+       * Operates in a web browser.
+       * 
+ * + * ENVIRONMENT_BROWSER = 1; + */ + ENVIRONMENT_BROWSER(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * Defaults to browser.
+       * 
+ * + * ENVIRONMENT_UNSPECIFIED = 0; + */ + public static final int ENVIRONMENT_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+       * Operates in a web browser.
+       * 
+ * + * ENVIRONMENT_BROWSER = 1; + */ + public static final int ENVIRONMENT_BROWSER_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Environment 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 Environment forNumber(int value) { + switch (value) { + case 0: + return ENVIRONMENT_UNSPECIFIED; + case 1: + return ENVIRONMENT_BROWSER; + 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 Environment findValueByNumber(int number) { + return Environment.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Environment[] VALUES = values(); + + public static Environment 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 Environment(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.Tool.ComputerUse.Environment) + } + + public static final int ENVIRONMENT_FIELD_NUMBER = 1; + private int environment_ = 0; + + /** + * + * + *
+     * Required. The environment being operated.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.ComputerUse.Environment environment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for environment. + */ + @java.lang.Override + public int getEnvironmentValue() { + return environment_; + } + + /** + * + * + *
+     * Required. The environment being operated.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.ComputerUse.Environment environment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The environment. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse.Environment getEnvironment() { + com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse.Environment result = + com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse.Environment.forNumber(environment_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse.Environment.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 (environment_ + != com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse.Environment + .ENVIRONMENT_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, environment_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (environment_ + != com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse.Environment + .ENVIRONMENT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, environment_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse other = + (com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse) obj; + + if (environment_ != other.environment_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENVIRONMENT_FIELD_NUMBER; + hash = (53 * hash) + environment_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Tool to support computer use.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Tool.ComputerUse} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.Tool.ComputerUse) + com.google.cloud.aiplatform.v1beta1.Tool.ComputerUseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ToolProto + .internal_static_google_cloud_aiplatform_v1beta1_Tool_ComputerUse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ToolProto + .internal_static_google_cloud_aiplatform_v1beta1_Tool_ComputerUse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse.class, + com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + environment_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ToolProto + .internal_static_google_cloud_aiplatform_v1beta1_Tool_ComputerUse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse build() { + com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse buildPartial() { + com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse result = + new com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.environment_ = environment_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse other) { + if (other == com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse.getDefaultInstance()) + return this; + if (other.environment_ != 0) { + setEnvironmentValue(other.getEnvironmentValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + environment_ = input.readEnum(); + 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 int environment_ = 0; + + /** + * + * + *
+       * Required. The environment being operated.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.ComputerUse.Environment environment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for environment. + */ + @java.lang.Override + public int getEnvironmentValue() { + return environment_; + } + + /** + * + * + *
+       * Required. The environment being operated.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.ComputerUse.Environment environment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for environment to set. + * @return This builder for chaining. + */ + public Builder setEnvironmentValue(int value) { + environment_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. The environment being operated.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.ComputerUse.Environment environment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The environment. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse.Environment getEnvironment() { + com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse.Environment result = + com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse.Environment.forNumber( + environment_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse.Environment.UNRECOGNIZED + : result; + } + + /** + * + * + *
+       * Required. The environment being operated.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.ComputerUse.Environment environment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The environment to set. + * @return This builder for chaining. + */ + public Builder setEnvironment( + com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse.Environment value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + environment_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. The environment being operated.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.ComputerUse.Environment environment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearEnvironment() { + bitField0_ = (bitField0_ & ~0x00000001); + environment_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.Tool.ComputerUse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.Tool.ComputerUse) + private static final com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse(); + } + + public static com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ComputerUse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; public static final int FUNCTION_DECLARATIONS_FIELD_NUMBER = 1; @@ -1446,6 +2233,71 @@ public com.google.cloud.aiplatform.v1beta1.UrlContextOrBuilder getUrlContextOrBu : urlContext_; } + public static final int COMPUTER_USE_FIELD_NUMBER = 11; + private com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse computerUse_; + + /** + * + * + *
+   * Optional. Tool to support the model interacting directly with the computer.
+   * If enabled, it automatically populates computer-use specific Function
+   * Declarations.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.ComputerUse computer_use = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the computerUse field is set. + */ + @java.lang.Override + public boolean hasComputerUse() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+   * Optional. Tool to support the model interacting directly with the computer.
+   * If enabled, it automatically populates computer-use specific Function
+   * Declarations.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.ComputerUse computer_use = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The computerUse. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse getComputerUse() { + return computerUse_ == null + ? com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse.getDefaultInstance() + : computerUse_; + } + + /** + * + * + *
+   * Optional. Tool to support the model interacting directly with the computer.
+   * If enabled, it automatically populates computer-use specific Function
+   * Declarations.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.ComputerUse computer_use = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Tool.ComputerUseOrBuilder getComputerUseOrBuilder() { + return computerUse_ == null + ? com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse.getDefaultInstance() + : computerUse_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1481,6 +2333,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(8, getUrlContext()); } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(11, getComputerUse()); + } getUnknownFields().writeTo(output); } @@ -1513,6 +2368,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUrlContext()); } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getComputerUse()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1553,6 +2411,10 @@ public boolean equals(final java.lang.Object obj) { if (hasUrlContext()) { if (!getUrlContext().equals(other.getUrlContext())) return false; } + if (hasComputerUse() != other.hasComputerUse()) return false; + if (hasComputerUse()) { + if (!getComputerUse().equals(other.getComputerUse())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1592,6 +2454,10 @@ public int hashCode() { hash = (37 * hash) + URL_CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getUrlContext().hashCode(); } + if (hasComputerUse()) { + hash = (37 * hash) + COMPUTER_USE_FIELD_NUMBER; + hash = (53 * hash) + getComputerUse().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1746,6 +2612,7 @@ private void maybeForceBuilderInitialization() { getEnterpriseWebSearchFieldBuilder(); getCodeExecutionFieldBuilder(); getUrlContextFieldBuilder(); + getComputerUseFieldBuilder(); } } @@ -1790,6 +2657,11 @@ public Builder clear() { urlContextBuilder_.dispose(); urlContextBuilder_ = null; } + computerUse_ = null; + if (computerUseBuilder_ != null) { + computerUseBuilder_.dispose(); + computerUseBuilder_ = null; + } return this; } @@ -1872,6 +2744,11 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Tool result) { result.urlContext_ = urlContextBuilder_ == null ? urlContext_ : urlContextBuilder_.build(); to_bitField0_ |= 0x00000020; } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.computerUse_ = + computerUseBuilder_ == null ? computerUse_ : computerUseBuilder_.build(); + to_bitField0_ |= 0x00000040; + } result.bitField0_ |= to_bitField0_; } @@ -1965,6 +2842,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Tool other) { if (other.hasUrlContext()) { mergeUrlContext(other.getUrlContext()); } + if (other.hasComputerUse()) { + mergeComputerUse(other.getComputerUse()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2043,6 +2923,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case 66 + case 90: + { + input.readMessage(getComputerUseFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 90 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4003,6 +4889,238 @@ public com.google.cloud.aiplatform.v1beta1.UrlContextOrBuilder getUrlContextOrBu return urlContextBuilder_; } + private com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse computerUse_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse, + com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse.Builder, + com.google.cloud.aiplatform.v1beta1.Tool.ComputerUseOrBuilder> + computerUseBuilder_; + + /** + * + * + *
+     * Optional. Tool to support the model interacting directly with the computer.
+     * If enabled, it automatically populates computer-use specific Function
+     * Declarations.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.ComputerUse computer_use = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the computerUse field is set. + */ + public boolean hasComputerUse() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Optional. Tool to support the model interacting directly with the computer.
+     * If enabled, it automatically populates computer-use specific Function
+     * Declarations.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.ComputerUse computer_use = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The computerUse. + */ + public com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse getComputerUse() { + if (computerUseBuilder_ == null) { + return computerUse_ == null + ? com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse.getDefaultInstance() + : computerUse_; + } else { + return computerUseBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Tool to support the model interacting directly with the computer.
+     * If enabled, it automatically populates computer-use specific Function
+     * Declarations.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.ComputerUse computer_use = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setComputerUse(com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse value) { + if (computerUseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + computerUse_ = value; + } else { + computerUseBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Tool to support the model interacting directly with the computer.
+     * If enabled, it automatically populates computer-use specific Function
+     * Declarations.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.ComputerUse computer_use = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setComputerUse( + com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse.Builder builderForValue) { + if (computerUseBuilder_ == null) { + computerUse_ = builderForValue.build(); + } else { + computerUseBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Tool to support the model interacting directly with the computer.
+     * If enabled, it automatically populates computer-use specific Function
+     * Declarations.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.ComputerUse computer_use = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeComputerUse(com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse value) { + if (computerUseBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && computerUse_ != null + && computerUse_ + != com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse.getDefaultInstance()) { + getComputerUseBuilder().mergeFrom(value); + } else { + computerUse_ = value; + } + } else { + computerUseBuilder_.mergeFrom(value); + } + if (computerUse_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Tool to support the model interacting directly with the computer.
+     * If enabled, it automatically populates computer-use specific Function
+     * Declarations.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.ComputerUse computer_use = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearComputerUse() { + bitField0_ = (bitField0_ & ~0x00000080); + computerUse_ = null; + if (computerUseBuilder_ != null) { + computerUseBuilder_.dispose(); + computerUseBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Tool to support the model interacting directly with the computer.
+     * If enabled, it automatically populates computer-use specific Function
+     * Declarations.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.ComputerUse computer_use = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse.Builder getComputerUseBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getComputerUseFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Tool to support the model interacting directly with the computer.
+     * If enabled, it automatically populates computer-use specific Function
+     * Declarations.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.ComputerUse computer_use = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Tool.ComputerUseOrBuilder getComputerUseOrBuilder() { + if (computerUseBuilder_ != null) { + return computerUseBuilder_.getMessageOrBuilder(); + } else { + return computerUse_ == null + ? com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse.getDefaultInstance() + : computerUse_; + } + } + + /** + * + * + *
+     * Optional. Tool to support the model interacting directly with the computer.
+     * If enabled, it automatically populates computer-use specific Function
+     * Declarations.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.ComputerUse computer_use = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse, + com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse.Builder, + com.google.cloud.aiplatform.v1beta1.Tool.ComputerUseOrBuilder> + getComputerUseFieldBuilder() { + if (computerUseBuilder_ == null) { + computerUseBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse, + com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse.Builder, + com.google.cloud.aiplatform.v1beta1.Tool.ComputerUseOrBuilder>( + getComputerUse(), getParentForChildren(), isClean()); + computerUse_ = null; + } + return computerUseBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolOrBuilder.java index 4c76d55ee647..7dedfa959777 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolOrBuilder.java @@ -417,4 +417,53 @@ com.google.cloud.aiplatform.v1beta1.FunctionDeclarationOrBuilder getFunctionDecl * */ com.google.cloud.aiplatform.v1beta1.UrlContextOrBuilder getUrlContextOrBuilder(); + + /** + * + * + *
+   * Optional. Tool to support the model interacting directly with the computer.
+   * If enabled, it automatically populates computer-use specific Function
+   * Declarations.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.ComputerUse computer_use = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the computerUse field is set. + */ + boolean hasComputerUse(); + + /** + * + * + *
+   * Optional. Tool to support the model interacting directly with the computer.
+   * If enabled, it automatically populates computer-use specific Function
+   * Declarations.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.ComputerUse computer_use = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The computerUse. + */ + com.google.cloud.aiplatform.v1beta1.Tool.ComputerUse getComputerUse(); + + /** + * + * + *
+   * Optional. Tool to support the model interacting directly with the computer.
+   * If enabled, it automatically populates computer-use specific Function
+   * Declarations.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.Tool.ComputerUse computer_use = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.Tool.ComputerUseOrBuilder getComputerUseOrBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolProto.java index 982632df5df9..9ed6a13f9422 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolProto.java @@ -40,6 +40,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_Tool_CodeExecution_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_Tool_CodeExecution_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_Tool_ComputerUse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_Tool_ComputerUse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_UrlContext_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -155,7 +159,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oogle/api/field_behavior.proto\032\031google/a" + "pi/resource.proto\032-google/cloud/aiplatfo" + "rm/v1beta1/openapi.proto\032\034google/protobu" - + "f/struct.proto\032\030google/type/latlng.proto\"\346\004\n" + + "f/struct.proto\032\030google/type/latlng.proto\"\342\006\n" + "\004Tool\022X\n" + "\025function_declarations\030\001 \003(\013" + "24.google.cloud.aiplatform.v1beta1.FunctionDeclarationB\003\340A\001\022B\n" @@ -170,14 +174,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016code_execution\030\004" + " \001(\01323.google.cloud.aiplatform.v1beta1.Tool.CodeExecutionB\003\340A\001\022E\n" + "\013url_context\030\010" - + " \001(\0132+.google.cloud.aiplatform.v1beta1.UrlContextB\003\340A\001\032\016\n" + + " \001(\0132+.google.cloud.aiplatform.v1beta1.UrlContextB\003\340A\001\022L\n" + + "\014computer_use\030\013" + + " \001(\01321.google.cloud.aiplatform.v1beta1.Tool.ComputerUseB\003\340A\001\032\016\n" + "\014GoogleSearch\032\017\n\r" - + "CodeExecution\"\014\n\n" + + "CodeExecution\032\253\001\n" + + "\013ComputerUse\022W\n" + + "\013environment\030\001 \001(\0162=.google.cloud.aiplatform.v" + + "1beta1.Tool.ComputerUse.EnvironmentB\003\340A\002\"C\n" + + "\013Environment\022\033\n" + + "\027ENVIRONMENT_UNSPECIFIED\020\000\022\027\n" + + "\023ENVIRONMENT_BROWSER\020\001\"\014\n\n" + "UrlContext\"\260\003\n" + "\016ToolUseExample\022a\n" + "\023extension_operation\030\n" - + " \001(\0132" - + "B.google.cloud.aiplatform.v1beta1.ToolUseExample.ExtensionOperationH\000\022\027\n\r" + + " \001(\0132B.google.cloud.aiplatform.v1" + + "beta1.ToolUseExample.ExtensionOperationH\000\022\027\n\r" + "function_name\030\013 \001(\tH\000\022\031\n" + "\014display_name\030\001 \001(\tB\003\340A\002\022\022\n" + "\005query\030\002 \001(\tB\003\340A\002\022/\n" @@ -192,12 +204,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023FunctionDeclaration\022\021\n" + "\004name\030\001 \001(\tB\003\340A\002\022\030\n" + "\013description\030\002 \001(\tB\003\340A\001\022@\n\n" - + "parameters\030\003 \001(\0132\'.go" - + "ogle.cloud.aiplatform.v1beta1.SchemaB\003\340A\001\022;\n" + + "parameters\030\003" + + " \001(\0132\'.google.cloud.aiplatform.v1beta1.SchemaB\003\340A\001\022;\n" + "\026parameters_json_schema\030\005" + " \001(\0132\026.google.protobuf.ValueB\003\340A\001\022>\n" - + "\010response\030\004 \001(\013" - + "2\'.google.cloud.aiplatform.v1beta1.SchemaB\003\340A\001\0229\n" + + "\010response\030\004" + + " \001(\0132\'.google.cloud.aiplatform.v1beta1.SchemaB\003\340A\001\0229\n" + "\024response_json_schema\030\006" + " \001(\0132\026.google.protobuf.ValueB\003\340A\001\"^\n" + "\014FunctionCall\022\017\n" @@ -209,15 +221,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB\003\340A\002\022.\n" + "\010response\030\002 \001(\0132\027.google.protobuf.StructB\003\340A\002\"\246\001\n" + "\016ExecutableCode\022O\n" - + "\010language\030\001 \001(\01628.google.cloud.ai" - + "platform.v1beta1.ExecutableCode.LanguageB\003\340A\002\022\021\n" + + "\010language\030\001 \001(\01628.goo" + + "gle.cloud.aiplatform.v1beta1.ExecutableCode.LanguageB\003\340A\002\022\021\n" + "\004code\030\002 \001(\tB\003\340A\002\"0\n" + "\010Language\022\030\n" + "\024LANGUAGE_UNSPECIFIED\020\000\022\n\n" + "\006PYTHON\020\001\"\345\001\n" + "\023CodeExecutionResult\022R\n" - + "\007outcome\030\001 \001(\0162<.go" - + "ogle.cloud.aiplatform.v1beta1.CodeExecutionResult.OutcomeB\003\340A\002\022\023\n" + + "\007outcome\030\001" + + " \001(\0162<.google.cloud.aiplatform.v1beta1.CodeExecutionResult.OutcomeB\003\340A\002\022\023\n" + "\006output\030\002 \001(\tB\003\340A\001\"e\n" + "\007Outcome\022\027\n" + "\023OUTCOME_UNSPECIFIED\020\000\022\016\n\n" @@ -225,22 +237,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016OUTCOME_FAILED\020\002\022\035\n" + "\031OUTCOME_DEADLINE_EXCEEDED\020\003\"\323\001\n" + "\tRetrieval\022K\n" - + "\020vertex_ai_search\030\002" - + " \001(\0132/.google.cloud.aiplatform.v1beta1.VertexAISearchH\000\022K\n" - + "\020vertex_rag_store\030\004" - + " \001(\0132/.google.cloud.aiplatform.v1beta1.VertexRagStoreH\000\022\"\n" + + "\020vertex_ai_search\030\002 \001(\0132/" + + ".google.cloud.aiplatform.v1beta1.VertexAISearchH\000\022K\n" + + "\020vertex_rag_store\030\004 \001(\0132/.go" + + "ogle.cloud.aiplatform.v1beta1.VertexRagStoreH\000\022\"\n" + "\023disable_attribution\030\003 \001(\010B\005\030\001\340A\001B\010\n" + "\006source\"\224\004\n" + "\016VertexRagStore\022B\n" + "\013rag_corpora\030\001 \003(\tB-\030\001\340A\001\372A%\n" + "#aiplatform.googleapis.com/RagCorpus\022W\n\r" - + "rag_resources\030\004 \003(\0132;.google." - + "cloud.aiplatform.v1beta1.VertexRagStore.RagResourceB\003\340A\001\022$\n" + + "rag_resources\030\004 \003" + + "(\0132;.google.cloud.aiplatform.v1beta1.VertexRagStore.RagResourceB\003\340A\001\022$\n" + "\020similarity_top_k\030\002 \001(\005B\005\030\001\340A\001H\000\210\001\001\022-\n" + "\031vector_distance_threshold\030\003" + " \001(\001B\005\030\001\340A\001H\001\210\001\001\022V\n" - + "\024rag_retrieval_config\030\006" - + " \001(\01323.google.cloud.aiplatform.v1beta1.RagRetrievalConfigB\003\340A\001\022\032\n\r" + + "\024rag_retrieval_config\030\006 \001(\01323.google.cloud.a" + + "iplatform.v1beta1.RagRetrievalConfigB\003\340A\001\022\032\n\r" + "store_context\030\007 \001(\010B\003\340A\001\032i\n" + "\013RagResource\022?\n\n" + "rag_corpus\030\001 \001(\tB+\340A\001\372A%\n" @@ -253,31 +265,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006engine\030\002 \001(\tB\003\340A\001\022\030\n" + "\013max_results\030\003 \001(\005B\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\022W\n" - + "\020data_store_specs\030\005 \003(\0132=.googl" - + "e.cloud.aiplatform.v1beta1.VertexAISearch.DataStoreSpec\0328\n\r" + + "\020data_store_specs\030\005" + + " \003(\0132=.google.cloud.aiplatform.v1beta1.VertexAISearch.DataStoreSpec\0328\n\r" + "DataStoreSpec\022\022\n\n" + "data_store\030\001 \001(\t\022\023\n" + "\006filter\030\002 \001(\tB\003\340A\001\"r\n" + "\025GoogleSearchRetrieval\022Y\n" - + "\030dynamic_retrieval_config\030\002" - + " \001(\01327.google.cloud.aiplatform.v1beta1.DynamicRetrievalConfig\"\025\n" + + "\030dynamic_retrieval_config\030\002 \001(\01327.google.cloud." + + "aiplatform.v1beta1.DynamicRetrievalConfig\"\025\n" + "\023EnterpriseWebSearch\"\317\001\n" + "\026DynamicRetrievalConfig\022J\n" - + "\004mode\030\001" - + " \001(\0162<.google.cloud.aiplatform.v1beta1.DynamicRetrievalConfig.Mode\022#\n" + + "\004mode\030\001 \001(\0162<.google.cloud" + + ".aiplatform.v1beta1.DynamicRetrievalConfig.Mode\022#\n" + "\021dynamic_threshold\030\002 \001(\002B\003\340A\001H\000\210\001\001\".\n" + "\004Mode\022\024\n" + "\020MODE_UNSPECIFIED\020\000\022\020\n" + "\014MODE_DYNAMIC\020\001B\024\n" + "\022_dynamic_threshold\"\273\001\n\n" + "ToolConfig\022\\\n" - + "\027function_calling_config\030\001 \001(\01326.google." - + "cloud.aiplatform.v1beta1.FunctionCallingConfigB\003\340A\001\022O\n" - + "\020retrieval_config\030\002 \001(\01320." - + "google.cloud.aiplatform.v1beta1.RetrievalConfigB\003\340A\001\"\307\001\n" + + "\027function_calling_config\030\001 \001" + + "(\01326.google.cloud.aiplatform.v1beta1.FunctionCallingConfigB\003\340A\001\022O\n" + + "\020retrieval_config\030\002" + + " \001(\01320.google.cloud.aiplatform.v1beta1.RetrievalConfigB\003\340A\001\"\307\001\n" + "\025FunctionCallingConfig\022N\n" - + "\004mode\030\001 \001(\0162;.google.cloud.aiplatform.v" - + "1beta1.FunctionCallingConfig.ModeB\003\340A\001\022#\n" + + "\004mode\030\001 \001(\0162;.google.cloud." + + "aiplatform.v1beta1.FunctionCallingConfig.ModeB\003\340A\001\022#\n" + "\026allowed_function_names\030\002 \003(\tB\003\340A\001\"9\n" + "\004Mode\022\024\n" + "\020MODE_UNSPECIFIED\020\000\022\010\n" @@ -291,12 +303,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016_language_code\"\317\006\n" + "\022RagRetrievalConfig\022\022\n" + "\005top_k\030\001 \001(\005B\003\340A\001\022\\\n\r" - + "hybrid_search\030\002 \001(\013" - + "2@.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearchB\003\340A\001\022O\n" - + "\006filter\030\003" - + " \001(\0132:.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.FilterB\003\340A\001\022Q\n" - + "\007ranking\030\004" - + " \001(\0132;.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.RankingB\003\340A\001\0321\n" + + "hybrid_search\030\002 \001(\0132@.google.cloud.aiplatform.v" + + "1beta1.RagRetrievalConfig.HybridSearchB\003\340A\001\022O\n" + + "\006filter\030\003 \001(\0132:.google.cloud.aipla" + + "tform.v1beta1.RagRetrievalConfig.FilterB\003\340A\001\022Q\n" + + "\007ranking\030\004 \001(\0132;.google.cloud.aip" + + "latform.v1beta1.RagRetrievalConfig.RankingB\003\340A\001\0321\n" + "\014HybridSearch\022\027\n" + "\005alpha\030\001 \001(\002B\003\340A\001H\000\210\001\001B\010\n" + "\006_alpha\032\223\001\n" @@ -306,10 +318,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017metadata_filter\030\002 \001(\tB\003\340A\001B\025\n" + "\023vector_db_threshold\032\331\002\n" + "\007Ranking\022d\n" - + "\014rank_service\030\001 \001(\0132G.google." - + "cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankServiceB\003\340A\001H\000\022`\n\n" - + "llm_ranker\030\003 \001(\0132E.google.cloud.aiplatform.v1b" - + "eta1.RagRetrievalConfig.Ranking.LlmRankerB\003\340A\001H\000\032:\n" + + "\014rank_service\030\001 \001(\0132G.google.cloud.aiplatform.v1beta1.Rag" + + "RetrievalConfig.Ranking.RankServiceB\003\340A\001H\000\022`\n\n" + + "llm_ranker\030\003 \001(\0132E.google.cloud.ai" + + "platform.v1beta1.RagRetrievalConfig.Ranking.LlmRankerB\003\340A\001H\000\032:\n" + "\013RankService\022\034\n\n" + "model_name\030\001 \001(\tB\003\340A\001H\000\210\001\001B\r\n" + "\013_model_name\0328\n" @@ -317,11 +329,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "model_name\030\001 \001(\tB\003\340A\001H\000\210\001\001B\r\n" + "\013_model_nameB\020\n" + "\016ranking_configB\340\001\n" - + "#com.google.cloud.aiplatform.v1beta1B\tToolProtoP\001ZCc" - + "loud.google.com/go/aiplatform/apiv1beta1" - + "/aiplatformpb;aiplatformpb\252\002\037Google.Clou" - + "d.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\AIPl" - + "atform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3" + + "#com.google.cloud.aiplatform.v1beta1B\tToolProtoP\001ZCcloud.google.com/go/aiplatfor" + + "m/apiv1beta1/aiplatformpb;aiplatformpb\252\002" + + "\037Google.Cloud.AIPlatform.V1Beta1\312\002\037Googl" + + "e\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -346,6 +357,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EnterpriseWebSearch", "CodeExecution", "UrlContext", + "ComputerUse", }); internal_static_google_cloud_aiplatform_v1beta1_Tool_GoogleSearch_descriptor = internal_static_google_cloud_aiplatform_v1beta1_Tool_descriptor.getNestedTypes().get(0); @@ -359,6 +371,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_Tool_CodeExecution_descriptor, new java.lang.String[] {}); + internal_static_google_cloud_aiplatform_v1beta1_Tool_ComputerUse_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_Tool_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_aiplatform_v1beta1_Tool_ComputerUse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_Tool_ComputerUse_descriptor, + new java.lang.String[] { + "Environment", + }); internal_static_google_cloud_aiplatform_v1beta1_UrlContext_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_google_cloud_aiplatform_v1beta1_UrlContext_fieldAccessorTable = diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagStore.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagStore.java index 2e6d9eb4097e..0257968e5c7b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagStore.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagStore.java @@ -1141,7 +1141,7 @@ public com.google.protobuf.Parser getParserForType() { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=324 + * google/cloud/aiplatform/v1beta1/tool.proto;l=344 * @return A list containing the ragCorpora. */ @java.lang.Deprecated @@ -1161,7 +1161,7 @@ public com.google.protobuf.ProtocolStringList getRagCorporaList() { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=324 + * google/cloud/aiplatform/v1beta1/tool.proto;l=344 * @return The count of ragCorpora. */ @java.lang.Deprecated @@ -1181,7 +1181,7 @@ public int getRagCorporaCount() { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=324 + * google/cloud/aiplatform/v1beta1/tool.proto;l=344 * @param index The index of the element to return. * @return The ragCorpora at the given index. */ @@ -1202,7 +1202,7 @@ public java.lang.String getRagCorpora(int index) { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=324 + * google/cloud/aiplatform/v1beta1/tool.proto;l=344 * @param index The index of the value to return. * @return The bytes of the ragCorpora at the given index. */ @@ -1331,7 +1331,7 @@ public com.google.cloud.aiplatform.v1beta1.VertexRagStore.RagResource getRagReso * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.similarity_top_k is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=340 + * google/cloud/aiplatform/v1beta1/tool.proto;l=360 * @return Whether the similarityTopK field is set. */ @java.lang.Override @@ -1352,7 +1352,7 @@ public boolean hasSimilarityTopK() { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.similarity_top_k is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=340 + * google/cloud/aiplatform/v1beta1/tool.proto;l=360 * @return The similarityTopK. */ @java.lang.Override @@ -1377,7 +1377,7 @@ public int getSimilarityTopK() { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.vector_distance_threshold is - * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=345 + * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=365 * @return Whether the vectorDistanceThreshold field is set. */ @java.lang.Override @@ -1399,7 +1399,7 @@ public boolean hasVectorDistanceThreshold() { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.vector_distance_threshold is - * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=345 + * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=365 * @return The vectorDistanceThreshold. */ @java.lang.Override @@ -2075,7 +2075,7 @@ private void ensureRagCorporaIsMutable() { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=324 + * google/cloud/aiplatform/v1beta1/tool.proto;l=344 * @return A list containing the ragCorpora. */ @java.lang.Deprecated @@ -2096,7 +2096,7 @@ public com.google.protobuf.ProtocolStringList getRagCorporaList() { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=324 + * google/cloud/aiplatform/v1beta1/tool.proto;l=344 * @return The count of ragCorpora. */ @java.lang.Deprecated @@ -2116,7 +2116,7 @@ public int getRagCorporaCount() { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=324 + * google/cloud/aiplatform/v1beta1/tool.proto;l=344 * @param index The index of the element to return. * @return The ragCorpora at the given index. */ @@ -2137,7 +2137,7 @@ public java.lang.String getRagCorpora(int index) { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=324 + * google/cloud/aiplatform/v1beta1/tool.proto;l=344 * @param index The index of the value to return. * @return The bytes of the ragCorpora at the given index. */ @@ -2158,7 +2158,7 @@ public com.google.protobuf.ByteString getRagCorporaBytes(int index) { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=324 + * google/cloud/aiplatform/v1beta1/tool.proto;l=344 * @param index The index to set the value at. * @param value The ragCorpora to set. * @return This builder for chaining. @@ -2187,7 +2187,7 @@ public Builder setRagCorpora(int index, java.lang.String value) { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=324 + * google/cloud/aiplatform/v1beta1/tool.proto;l=344 * @param value The ragCorpora to add. * @return This builder for chaining. */ @@ -2215,7 +2215,7 @@ public Builder addRagCorpora(java.lang.String value) { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=324 + * google/cloud/aiplatform/v1beta1/tool.proto;l=344 * @param values The ragCorpora to add. * @return This builder for chaining. */ @@ -2240,7 +2240,7 @@ public Builder addAllRagCorpora(java.lang.Iterable values) { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=324 + * google/cloud/aiplatform/v1beta1/tool.proto;l=344 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2264,7 +2264,7 @@ public Builder clearRagCorpora() { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=324 + * google/cloud/aiplatform/v1beta1/tool.proto;l=344 * @param value The bytes of the ragCorpora to add. * @return This builder for chaining. */ @@ -2770,7 +2770,7 @@ public Builder removeRagResources(int index) { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.similarity_top_k is deprecated. - * See google/cloud/aiplatform/v1beta1/tool.proto;l=340 + * See google/cloud/aiplatform/v1beta1/tool.proto;l=360 * @return Whether the similarityTopK field is set. */ @java.lang.Override @@ -2791,7 +2791,7 @@ public boolean hasSimilarityTopK() { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.similarity_top_k is deprecated. - * See google/cloud/aiplatform/v1beta1/tool.proto;l=340 + * See google/cloud/aiplatform/v1beta1/tool.proto;l=360 * @return The similarityTopK. */ @java.lang.Override @@ -2812,7 +2812,7 @@ public int getSimilarityTopK() { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.similarity_top_k is deprecated. - * See google/cloud/aiplatform/v1beta1/tool.proto;l=340 + * See google/cloud/aiplatform/v1beta1/tool.proto;l=360 * @param value The similarityTopK to set. * @return This builder for chaining. */ @@ -2837,7 +2837,7 @@ public Builder setSimilarityTopK(int value) { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.similarity_top_k is deprecated. - * See google/cloud/aiplatform/v1beta1/tool.proto;l=340 + * See google/cloud/aiplatform/v1beta1/tool.proto;l=360 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2863,7 +2863,7 @@ public Builder clearSimilarityTopK() { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.vector_distance_threshold is - * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=345 + * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=365 * @return Whether the vectorDistanceThreshold field is set. */ @java.lang.Override @@ -2885,7 +2885,7 @@ public boolean hasVectorDistanceThreshold() { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.vector_distance_threshold is - * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=345 + * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=365 * @return The vectorDistanceThreshold. */ @java.lang.Override @@ -2907,7 +2907,7 @@ public double getVectorDistanceThreshold() { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.vector_distance_threshold is - * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=345 + * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=365 * @param value The vectorDistanceThreshold to set. * @return This builder for chaining. */ @@ -2933,7 +2933,7 @@ public Builder setVectorDistanceThreshold(double value) { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.vector_distance_threshold is - * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=345 + * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=365 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagStoreOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagStoreOrBuilder.java index 03a3f7d313ff..e191fe8afb55 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagStoreOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagStoreOrBuilder.java @@ -36,7 +36,7 @@ public interface VertexRagStoreOrBuilder * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=324 + * google/cloud/aiplatform/v1beta1/tool.proto;l=344 * @return A list containing the ragCorpora. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface VertexRagStoreOrBuilder * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=324 + * google/cloud/aiplatform/v1beta1/tool.proto;l=344 * @return The count of ragCorpora. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface VertexRagStoreOrBuilder * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=324 + * google/cloud/aiplatform/v1beta1/tool.proto;l=344 * @param index The index of the element to return. * @return The ragCorpora at the given index. */ @@ -91,7 +91,7 @@ public interface VertexRagStoreOrBuilder * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=324 + * google/cloud/aiplatform/v1beta1/tool.proto;l=344 * @param index The index of the value to return. * @return The bytes of the ragCorpora at the given index. */ @@ -193,7 +193,7 @@ com.google.cloud.aiplatform.v1beta1.VertexRagStore.RagResourceOrBuilder getRagRe * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.similarity_top_k is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=340 + * google/cloud/aiplatform/v1beta1/tool.proto;l=360 * @return Whether the similarityTopK field is set. */ @java.lang.Deprecated @@ -211,7 +211,7 @@ com.google.cloud.aiplatform.v1beta1.VertexRagStore.RagResourceOrBuilder getRagRe * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.similarity_top_k is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=340 + * google/cloud/aiplatform/v1beta1/tool.proto;l=360 * @return The similarityTopK. */ @java.lang.Deprecated @@ -230,7 +230,7 @@ com.google.cloud.aiplatform.v1beta1.VertexRagStore.RagResourceOrBuilder getRagRe * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.vector_distance_threshold is - * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=345 + * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=365 * @return Whether the vectorDistanceThreshold field is set. */ @java.lang.Deprecated @@ -249,7 +249,7 @@ com.google.cloud.aiplatform.v1beta1.VertexRagStore.RagResourceOrBuilder getRagRe * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.vector_distance_threshold is - * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=345 + * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=365 * @return The vectorDistanceThreshold. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/evaluation_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/evaluation_service.proto index f048d98e4891..f4a30cec634a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/evaluation_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/evaluation_service.proto @@ -85,6 +85,11 @@ message EvaluateDatasetOperationMetadata { // Response in LRO for EvaluationService.EvaluateDataset. message EvaluateDatasetResponse { + // Output only. Aggregation statistics derived from results of + // EvaluationService.EvaluateDataset. + AggregationOutput aggregation_output = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Output info for EvaluationService.EvaluateDataset. OutputInfo output_info = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; } @@ -99,6 +104,39 @@ message OutputInfo { } } +// The aggregation result for the entire dataset and all metrics. +message AggregationOutput { + // The dataset used for evaluation & aggregation. + EvaluationDataset dataset = 1; + + // One AggregationResult per metric. + repeated AggregationResult aggregation_results = 2; +} + +// The aggregation result for a single metric. +message AggregationResult { + // The aggregation result. + oneof aggregation_result { + // Result for pointwise metric. + PointwiseMetricResult pointwise_metric_result = 5; + + // Result for pairwise metric. + PairwiseMetricResult pairwise_metric_result = 6; + + // Results for exact match metric. + ExactMatchMetricValue exact_match_metric_value = 7; + + // Results for bleu metric. + BleuMetricValue bleu_metric_value = 8; + + // Results for rouge metric. + RougeMetricValue rouge_metric_value = 9; + } + + // Aggregation metric. + Metric.AggregationMetric aggregation_metric = 4; +} + // Request message for EvaluationService.EvaluateDataset. message EvaluateDatasetRequest { // Required. The resource name of the Location to evaluate the dataset. @@ -141,34 +179,34 @@ message Metric { // Unspecified aggregation metric. AGGREGATION_METRIC_UNSPECIFIED = 0; - // Average aggregation metric. + // Average aggregation metric. Not supported for Pairwise metric. AVERAGE = 1; // Mode aggregation metric. MODE = 2; - // Standard deviation aggregation metric. + // Standard deviation aggregation metric. Not supported for pairwise metric. STANDARD_DEVIATION = 3; - // Variance aggregation metric. + // Variance aggregation metric. Not supported for pairwise metric. VARIANCE = 4; - // Minimum aggregation metric. + // Minimum aggregation metric. Not supported for pairwise metric. MINIMUM = 5; - // Maximum aggregation metric. + // Maximum aggregation metric. Not supported for pairwise metric. MAXIMUM = 6; - // Median aggregation metric. + // Median aggregation metric. Not supported for pairwise metric. MEDIAN = 7; - // 90th percentile aggregation metric. + // 90th percentile aggregation metric. Not supported for pairwise metric. PERCENTILE_P90 = 8; - // 95th percentile aggregation metric. + // 95th percentile aggregation metric. Not supported for pairwise metric. PERCENTILE_P95 = 9; - // 99th percentile aggregation metric. + // 99th percentile aggregation metric. Not supported for pairwise metric. PERCENTILE_P99 = 10; } @@ -216,9 +254,9 @@ message AutoraterConfig { // is 32. optional int32 sampling_count = 1 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Whether to flip the candidate and baseline responses. - // This is only applicable to the pairwise metric. If enabled, also provide - // PairwiseMetricSpec.candidate_response_field_name and + // Optional. Default is true. Whether to flip the candidate and baseline + // responses. This is only applicable to the pairwise metric. If enabled, also + // provide PairwiseMetricSpec.candidate_response_field_name and // PairwiseMetricSpec.baseline_response_field_name. When rendering // PairwiseMetricSpec.metric_prompt_template, the candidate and baseline // fields will be flipped for half of the samples to reduce bias. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/machine_resources.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/machine_resources.proto index b25e56a80ca4..23eafcfd6b9d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/machine_resources.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/machine_resources.proto @@ -19,6 +19,7 @@ package google.cloud.aiplatform.v1beta1; import "google/api/field_behavior.proto"; import "google/cloud/aiplatform/v1beta1/accelerator_type.proto"; import "google/cloud/aiplatform/v1beta1/reservation_affinity.proto"; +import "google/protobuf/duration.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; @@ -73,35 +74,31 @@ message MachineSpec { ]; } -// A description of resources that are dedicated to a DeployedModel, and -// that need a higher degree of manual configuration. +// A description of resources that are dedicated to a DeployedModel or +// DeployedIndex, and that need a higher degree of manual configuration. message DedicatedResources { - // Required. Immutable. The specification of a single machine used by the - // prediction. + // Required. Immutable. The specification of a single machine being used. MachineSpec machine_spec = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.field_behavior) = IMMUTABLE ]; - // Required. Immutable. The minimum number of machine replicas this - // DeployedModel will be always deployed on. This value must be greater than - // or equal to 1. + // Required. Immutable. The minimum number of machine replicas that will be + // always deployed on. This value must be greater than or equal to 1. // - // If traffic against the DeployedModel increases, it may dynamically be - // deployed onto more replicas, and as traffic decreases, some of these extra - // replicas may be freed. + // If traffic increases, it may dynamically be deployed onto more replicas, + // and as traffic decreases, some of these extra replicas may be freed. int32 min_replica_count = 2 [ (google.api.field_behavior) = REQUIRED, (google.api.field_behavior) = IMMUTABLE ]; - // Immutable. The maximum number of replicas this DeployedModel may be - // deployed on when the traffic against it increases. If the requested value - // is too large, the deployment will error, but if deployment succeeds then - // the ability to scale the model to that many replicas is guaranteed (barring - // service outages). If traffic against the DeployedModel increases beyond - // what its replicas at maximum may handle, a portion of the traffic will be - // dropped. If this value is not provided, will use + // Immutable. The maximum number of replicas that may be deployed on when the + // traffic against it increases. If the requested value is too large, the + // deployment will error, but if deployment succeeds then the ability to scale + // to that many replicas is guaranteed (barring service outages). If traffic + // increases beyond what its replicas at maximum may handle, a portion of the + // traffic will be dropped. If this value is not provided, will use // [min_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.min_replica_count] // as the default value. // @@ -112,8 +109,8 @@ message DedicatedResources { int32 max_replica_count = 3 [(google.api.field_behavior) = IMMUTABLE]; // Optional. Number of required available replicas for the deployment to - // succeed. This field is only needed when partial model deployment/mutation - // is desired. If set, the model deploy/mutate operation will succeed once + // succeed. This field is only needed when partial deployment/mutation is + // desired. If set, the deploy/mutate operation will succeed once // available_replica_count reaches required_replica_count, and the rest of // the replicas will be retried. If not set, the default // required_replica_count will be min_replica_count. @@ -148,29 +145,36 @@ message DedicatedResources { // Optional. If true, schedule the deployment workload on [spot // VMs](https://cloud.google.com/kubernetes-engine/docs/concepts/spot-vms). bool spot = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Immutable. If set, use DWS resource to schedule the deployment + // workload. reference: + // (https://cloud.google.com/blog/products/compute/introducing-dynamic-workload-scheduler) + FlexStart flex_start = 10 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = OPTIONAL + ]; } // A description of resources that to large degree are decided by Vertex AI, // and require only a modest additional configuration. // Each Model supporting these resources documents its specific guidelines. message AutomaticResources { - // Immutable. The minimum number of replicas this DeployedModel will be always - // deployed on. If traffic against it increases, it may dynamically be - // deployed onto more replicas up to + // Immutable. The minimum number of replicas that will be always deployed on. + // If traffic against it increases, it may dynamically be deployed onto more + // replicas up to // [max_replica_count][google.cloud.aiplatform.v1beta1.AutomaticResources.max_replica_count], // and as traffic decreases, some of these extra replicas may be freed. If the // requested value is too large, the deployment will error. int32 min_replica_count = 1 [(google.api.field_behavior) = IMMUTABLE]; - // Immutable. The maximum number of replicas this DeployedModel may be - // deployed on when the traffic against it increases. If the requested value - // is too large, the deployment will error, but if deployment succeeds then - // the ability to scale the model to that many replicas is guaranteed (barring - // service outages). If traffic against the DeployedModel increases beyond - // what its replicas at maximum may handle, a portion of the traffic will be - // dropped. If this value is not provided, a no upper bound for scaling under - // heavy traffic will be assume, though Vertex AI may be unable to scale - // beyond certain replica number. + // Immutable. The maximum number of replicas that may be deployed on when the + // traffic against it increases. If the requested value is too large, the + // deployment will error, but if deployment succeeds then the ability to scale + // to that many replicas is guaranteed (barring service outages). If traffic + // increases beyond what its replicas at maximum may handle, a portion of the + // traffic will be dropped. If this value is not provided, a no upper bound + // for scaling under heavy traffic will be assume, though Vertex AI may be + // unable to scale beyond certain replica number. int32 max_replica_count = 2 [(google.api.field_behavior) = IMMUTABLE]; } @@ -203,9 +207,10 @@ message ResourcesConsumed { // Represents the spec of disk options. message DiskSpec { - // Type of the boot disk (default is "pd-ssd"). - // Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or - // "pd-standard" (Persistent Disk Hard Disk Drive). + // Type of the boot disk. For non-A3U machines, the default value is + // "pd-ssd", for A3U machines, the default value is "hyperdisk-balanced". + // Valid values: "pd-ssd" (Persistent Disk Solid State Drive), + // "pd-standard" (Persistent Disk Hard Disk Drive) or "hyperdisk-balanced". string boot_disk_type = 1; // Size in GB of the boot disk (default is 100GB). @@ -273,3 +278,12 @@ message ShieldedVmConfig { // boot process if signature verification fails. bool enable_secure_boot = 1; } + +// FlexStart is used to schedule the deployment workload on DWS resource. It +// contains the max duration of the deployment. +message FlexStart { + // The max duration of the deployment is max_runtime_duration. The + // deployment will be terminated after the duration. The + // max_runtime_duration can be set up to 7 days. + google.protobuf.Duration max_runtime_duration = 1; +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/notebook_execution_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/notebook_execution_job.proto index d9a8024afbd4..b2affba848e8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/notebook_execution_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/notebook_execution_job.proto @@ -146,15 +146,11 @@ message NotebookExecutionJob { // Max running time of the execution job in seconds (default 86400s / 24 hrs). google.protobuf.Duration execution_timeout = 5; - // Output only. The Schedule resource name if this job is triggered by one. - // Format: + // The Schedule resource name if this job is triggered by one. Format: // `projects/{project_id}/locations/{location}/schedules/{schedule_id}` - string schedule_resource_name = 6 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "aiplatform.googleapis.com/Schedule" - } - ]; + string schedule_resource_name = 6 [(google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Schedule" + }]; // Output only. The state of the NotebookExecutionJob. JobState job_state = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/notebook_runtime.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/notebook_runtime.proto index f327b747ef7e..9a0b93ec89df 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/notebook_runtime.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/notebook_runtime.proto @@ -164,8 +164,9 @@ message NotebookRuntimeTemplate { } // A runtime is a virtual machine allocated to a particular user for a -// particular Notebook file on temporary basis with lifetime limited to 24 -// hours. +// particular Notebook file on temporary basis with lifetime. Default runtimes +// have a lifetime of 18 hours, while custom runtimes last for 6 months from +// their creation or last upgrade. message NotebookRuntime { option (google.api.resource) = { type: "aiplatform.googleapis.com/NotebookRuntime" @@ -193,7 +194,8 @@ message NotebookRuntime { // NotebookRuntime is in running state. RUNNING = 1; - // NotebookRuntime is in starting state. + // NotebookRuntime is in starting state. This is when the runtime is being + // started from a stopped state. BEING_STARTED = 2; // NotebookRuntime is in stopping state. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/notebook_software_config.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/notebook_software_config.proto index 38967027e7fe..e983e0a82759 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/notebook_software_config.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/notebook_software_config.proto @@ -46,7 +46,27 @@ message PostStartupScriptConfig { [(google.api.field_behavior) = OPTIONAL]; } +// Colab image of the runtime. +message ColabImage { + // Optional. The release name of the NotebookRuntime Colab image, e.g. + // "py310". If not specified, detault to the latest release. + string release_name = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. A human-readable description of the specified colab image + // release, populated by the system. Example: "Python 3.10", "Latest - current + // Python 3.11" + string description = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Notebook Software Config. This is passed to the backend when user +// makes software configurations in UI. message NotebookSoftwareConfig { + // The image to be used by the notebook runtime. + oneof runtime_image { + // Optional. Google-managed NotebookRuntime colab image. + ColabImage colab_image = 5 [(google.api.field_behavior) = OPTIONAL]; + } + // Optional. Environment variables to be passed to the container. // Maximum limit is 100. repeated EnvVar env = 1 [(google.api.field_behavior) = OPTIONAL]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_job.proto index 981bd40db1be..57cd4d1b376c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_job.proto @@ -427,6 +427,16 @@ message PipelineTaskDetail { // Output only. The runtime output artifacts of the task. map outputs = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The unique name of a task. + // This field is used by pipeline job reruns. + // Console UI and Vertex AI SDK will support triggering pipeline job reruns. + // The name is constructed by concatenating all the parent tasks' names with + // the task name. For example, if a task named "child_task" has a parent task + // named "parent_task_1" and parent task 1 has a parent task named + // "parent_task_2", the task unique name will be + // "parent_task_2.parent_task_1.child_task". + string task_unique_name = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; } // The runtime detail of a pipeline executor. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tool.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tool.proto index 30aaf6f590f7..245bc13c55f3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tool.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tool.proto @@ -49,6 +49,21 @@ message Tool { // output to this tool. message CodeExecution {} + // Tool to support computer use. + message ComputerUse { + // Represents the environment being operated, such as a web browser. + enum Environment { + // Defaults to browser. + ENVIRONMENT_UNSPECIFIED = 0; + + // Operates in a web browser. + ENVIRONMENT_BROWSER = 1; + } + + // Required. The environment being operated. + Environment environment = 1 [(google.api.field_behavior) = REQUIRED]; + } + // Optional. Function tool type. // One or more function declarations to be passed to the model along with the // current user query. Model may decide to call a subset of these functions @@ -88,6 +103,11 @@ message Tool { // Optional. Tool to support URL context retrieval. UrlContext url_context = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Tool to support the model interacting directly with the computer. + // If enabled, it automatically populates computer-use specific Function + // Declarations. + ComputerUse computer_use = 11 [(google.api.field_behavior) = OPTIONAL]; } // Tool to support URL context. diff --git a/java-alloydb-connectors/CHANGELOG.md b/java-alloydb-connectors/CHANGELOG.md index 190793ccfb7c..f3912f7fb72a 100644 --- a/java-alloydb-connectors/CHANGELOG.md +++ b/java-alloydb-connectors/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.46.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.45.0 (2025-06-25) ### Dependencies diff --git a/java-alloydb-connectors/README.md b/java-alloydb-connectors/README.md index c60cd4f1361a..30a8f249c02a 100644 --- a/java-alloydb-connectors/README.md +++ b/java-alloydb-connectors/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-alloydb-connectors - 0.44.0 + 0.45.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-alloydb-connectors:0.44.0' +implementation 'com.google.cloud:google-cloud-alloydb-connectors:0.45.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-alloydb-connectors" % "0.44.0" +libraryDependencies += "com.google.cloud" % "google-cloud-alloydb-connectors" % "0.45.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb-connectors/0.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-alloydb-connectors/google-cloud-alloydb-connectors-bom/pom.xml b/java-alloydb-connectors/google-cloud-alloydb-connectors-bom/pom.xml index 7dacffe35da5..921e48a327d4 100644 --- a/java-alloydb-connectors/google-cloud-alloydb-connectors-bom/pom.xml +++ b/java-alloydb-connectors/google-cloud-alloydb-connectors-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-alloydb-connectors-bom - 0.45.0 + 0.46.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,22 +27,22 @@ com.google.cloud google-cloud-alloydb-connectors - 0.45.0 + 0.46.0 com.google.api.grpc proto-google-cloud-alloydb-connectors-v1alpha - 0.45.0 + 0.46.0 com.google.api.grpc proto-google-cloud-alloydb-connectors-v1beta - 0.45.0 + 0.46.0 com.google.api.grpc proto-google-cloud-alloydb-connectors-v1 - 0.45.0 + 0.46.0 diff --git a/java-alloydb-connectors/google-cloud-alloydb-connectors/pom.xml b/java-alloydb-connectors/google-cloud-alloydb-connectors/pom.xml index af244dc5cae2..40fbe911e105 100644 --- a/java-alloydb-connectors/google-cloud-alloydb-connectors/pom.xml +++ b/java-alloydb-connectors/google-cloud-alloydb-connectors/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-alloydb-connectors - 0.45.0 + 0.46.0 jar Google AlloyDB connectors AlloyDB connectors 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. com.google.cloud google-cloud-alloydb-connectors-parent - 0.45.0 + 0.46.0 google-cloud-alloydb-connectors diff --git a/java-alloydb-connectors/pom.xml b/java-alloydb-connectors/pom.xml index 58d8304ebcfd..0677117d6f96 100644 --- a/java-alloydb-connectors/pom.xml +++ b/java-alloydb-connectors/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-alloydb-connectors-parent pom - 0.45.0 + 0.46.0 Google AlloyDB connectors Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,22 +29,22 @@ com.google.cloud google-cloud-alloydb-connectors - 0.45.0 + 0.46.0 com.google.api.grpc proto-google-cloud-alloydb-connectors-v1 - 0.45.0 + 0.46.0 com.google.api.grpc proto-google-cloud-alloydb-connectors-v1beta - 0.45.0 + 0.46.0 com.google.api.grpc proto-google-cloud-alloydb-connectors-v1alpha - 0.45.0 + 0.46.0 diff --git a/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1/pom.xml b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1/pom.xml index 8f0e4daa1718..860b5db046f4 100644 --- a/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1/pom.xml +++ b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-alloydb-connectors-v1 - 0.45.0 + 0.46.0 proto-google-cloud-alloydb-connectors-v1 Proto library for google-cloud-alloydb-connectors com.google.cloud google-cloud-alloydb-connectors-parent - 0.45.0 + 0.46.0 diff --git a/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/pom.xml b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/pom.xml index d863b525c21a..f551fc484255 100644 --- a/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/pom.xml +++ b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-alloydb-connectors-v1alpha - 0.45.0 + 0.46.0 proto-google-cloud-alloydb-connectors-v1alpha Proto library for google-cloud-alloydb-connectors com.google.cloud google-cloud-alloydb-connectors-parent - 0.45.0 + 0.46.0 diff --git a/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1beta/pom.xml b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1beta/pom.xml index 51a58fb37e99..5398d76ec10b 100644 --- a/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1beta/pom.xml +++ b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-alloydb-connectors-v1beta - 0.45.0 + 0.46.0 proto-google-cloud-alloydb-connectors-v1beta Proto library for google-cloud-alloydb-connectors com.google.cloud google-cloud-alloydb-connectors-parent - 0.45.0 + 0.46.0 diff --git a/java-alloydb/CHANGELOG.md b/java-alloydb/CHANGELOG.md index 478e36ce646b..47f34d47bdc1 100644 --- a/java-alloydb/CHANGELOG.md +++ b/java-alloydb/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.57.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.56.0 (2025-06-25) ### Dependencies diff --git a/java-alloydb/README.md b/java-alloydb/README.md index 0203412fdf43..1175f14c9951 100644 --- a/java-alloydb/README.md +++ b/java-alloydb/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-alloydb - 0.55.0 + 0.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-alloydb:0.55.0' +implementation 'com.google.cloud:google-cloud-alloydb:0.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-alloydb" % "0.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-alloydb" % "0.56.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb/0.56.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/google-cloud-alloydb-bom/pom.xml b/java-alloydb/google-cloud-alloydb-bom/pom.xml index 8be9575881db..d18e29e9a8f7 100644 --- a/java-alloydb/google-cloud-alloydb-bom/pom.xml +++ b/java-alloydb/google-cloud-alloydb-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-alloydb-bom - 0.56.0 + 0.57.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,37 +27,37 @@ com.google.cloud google-cloud-alloydb - 0.56.0 + 0.57.0 com.google.api.grpc grpc-google-cloud-alloydb-v1beta - 0.56.0 + 0.57.0 com.google.api.grpc grpc-google-cloud-alloydb-v1 - 0.56.0 + 0.57.0 com.google.api.grpc grpc-google-cloud-alloydb-v1alpha - 0.56.0 + 0.57.0 com.google.api.grpc proto-google-cloud-alloydb-v1 - 0.56.0 + 0.57.0 com.google.api.grpc proto-google-cloud-alloydb-v1beta - 0.56.0 + 0.57.0 com.google.api.grpc proto-google-cloud-alloydb-v1alpha - 0.56.0 + 0.57.0 diff --git a/java-alloydb/google-cloud-alloydb/pom.xml b/java-alloydb/google-cloud-alloydb/pom.xml index 8beebda4a8b3..dc7538784cab 100644 --- a/java-alloydb/google-cloud-alloydb/pom.xml +++ b/java-alloydb/google-cloud-alloydb/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-alloydb - 0.56.0 + 0.57.0 jar Google AlloyDB AlloyDB AlloyDB is a fully managed, PostgreSQL-compatible database service with industry-leading performance, availability, and scale. com.google.cloud google-cloud-alloydb-parent - 0.56.0 + 0.57.0 google-cloud-alloydb diff --git a/java-alloydb/grpc-google-cloud-alloydb-v1/pom.xml b/java-alloydb/grpc-google-cloud-alloydb-v1/pom.xml index 413aaee0d69b..8e2b66b9ec7f 100644 --- a/java-alloydb/grpc-google-cloud-alloydb-v1/pom.xml +++ b/java-alloydb/grpc-google-cloud-alloydb-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-alloydb-v1 - 0.56.0 + 0.57.0 grpc-google-cloud-alloydb-v1 GRPC library for google-cloud-alloydb com.google.cloud google-cloud-alloydb-parent - 0.56.0 + 0.57.0 diff --git a/java-alloydb/grpc-google-cloud-alloydb-v1alpha/pom.xml b/java-alloydb/grpc-google-cloud-alloydb-v1alpha/pom.xml index 11e9e0931680..41a5ed90fd6e 100644 --- a/java-alloydb/grpc-google-cloud-alloydb-v1alpha/pom.xml +++ b/java-alloydb/grpc-google-cloud-alloydb-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-alloydb-v1alpha - 0.56.0 + 0.57.0 grpc-google-cloud-alloydb-v1alpha GRPC library for google-cloud-alloydb com.google.cloud google-cloud-alloydb-parent - 0.56.0 + 0.57.0 diff --git a/java-alloydb/grpc-google-cloud-alloydb-v1beta/pom.xml b/java-alloydb/grpc-google-cloud-alloydb-v1beta/pom.xml index f486bd37dcaa..d710e723ed54 100644 --- a/java-alloydb/grpc-google-cloud-alloydb-v1beta/pom.xml +++ b/java-alloydb/grpc-google-cloud-alloydb-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-alloydb-v1beta - 0.56.0 + 0.57.0 grpc-google-cloud-alloydb-v1beta GRPC library for google-cloud-alloydb com.google.cloud google-cloud-alloydb-parent - 0.56.0 + 0.57.0 diff --git a/java-alloydb/pom.xml b/java-alloydb/pom.xml index 9f2a0a3e1f1b..90a230d36500 100644 --- a/java-alloydb/pom.xml +++ b/java-alloydb/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-alloydb-parent pom - 0.56.0 + 0.57.0 Google AlloyDB Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.cloud google-cloud-alloydb - 0.56.0 + 0.57.0 com.google.api.grpc grpc-google-cloud-alloydb-v1beta - 0.56.0 + 0.57.0 com.google.api.grpc grpc-google-cloud-alloydb-v1 - 0.56.0 + 0.57.0 com.google.api.grpc grpc-google-cloud-alloydb-v1alpha - 0.56.0 + 0.57.0 com.google.api.grpc proto-google-cloud-alloydb-v1 - 0.56.0 + 0.57.0 com.google.api.grpc proto-google-cloud-alloydb-v1beta - 0.56.0 + 0.57.0 com.google.api.grpc proto-google-cloud-alloydb-v1alpha - 0.56.0 + 0.57.0 diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/pom.xml b/java-alloydb/proto-google-cloud-alloydb-v1/pom.xml index b176523acdc5..7188f2174957 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/pom.xml +++ b/java-alloydb/proto-google-cloud-alloydb-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-alloydb-v1 - 0.56.0 + 0.57.0 proto-google-cloud-alloydb-v1 Proto library for google-cloud-alloydb com.google.cloud google-cloud-alloydb-parent - 0.56.0 + 0.57.0 diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/pom.xml b/java-alloydb/proto-google-cloud-alloydb-v1alpha/pom.xml index 593ccddc5bbd..b46dd9c81558 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/pom.xml +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-alloydb-v1alpha - 0.56.0 + 0.57.0 proto-google-cloud-alloydb-v1alpha Proto library for google-cloud-alloydb com.google.cloud google-cloud-alloydb-parent - 0.56.0 + 0.57.0 diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/pom.xml b/java-alloydb/proto-google-cloud-alloydb-v1beta/pom.xml index 8851afad6851..5cb523a2559a 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/pom.xml +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-alloydb-v1beta - 0.56.0 + 0.57.0 proto-google-cloud-alloydb-v1beta Proto library for google-cloud-alloydb com.google.cloud google-cloud-alloydb-parent - 0.56.0 + 0.57.0 diff --git a/java-analytics-admin/CHANGELOG.md b/java-analytics-admin/CHANGELOG.md index 4b98a84b4727..a19b5d49aa12 100644 --- a/java-analytics-admin/CHANGELOG.md +++ b/java-analytics-admin/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.78.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.77.0 (2025-06-25) ### Dependencies diff --git a/java-analytics-admin/README.md b/java-analytics-admin/README.md index 2a1b17b6a935..d1ca6e8c1a66 100644 --- a/java-analytics-admin/README.md +++ b/java-analytics-admin/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.analytics google-analytics-admin - 0.76.0 + 0.77.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.analytics:google-analytics-admin:0.76.0' +implementation 'com.google.analytics:google-analytics-admin:0.77.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.76.0" +libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.77.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.analytics/google-analytics-admin.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-admin/0.76.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-admin/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-analytics-admin/google-analytics-admin-bom/pom.xml b/java-analytics-admin/google-analytics-admin-bom/pom.xml index 70c8e2f803d3..a9286d646f6d 100644 --- a/java-analytics-admin/google-analytics-admin-bom/pom.xml +++ b/java-analytics-admin/google-analytics-admin-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.analytics google-analytics-admin-bom - 0.77.0 + 0.78.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.analytics google-analytics-admin - 0.77.0 + 0.78.0 com.google.api.grpc grpc-google-analytics-admin-v1alpha - 0.77.0 + 0.78.0 com.google.api.grpc grpc-google-analytics-admin-v1beta - 0.77.0 + 0.78.0 com.google.api.grpc proto-google-analytics-admin-v1alpha - 0.77.0 + 0.78.0 com.google.api.grpc proto-google-analytics-admin-v1beta - 0.77.0 + 0.78.0 diff --git a/java-analytics-admin/google-analytics-admin/pom.xml b/java-analytics-admin/google-analytics-admin/pom.xml index 1331349219ae..5589bafc9060 100644 --- a/java-analytics-admin/google-analytics-admin/pom.xml +++ b/java-analytics-admin/google-analytics-admin/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.analytics google-analytics-admin - 0.77.0 + 0.78.0 jar Google Analytics Admin allows you to manage Google Analytics accounts and properties. com.google.analytics google-analytics-admin-parent - 0.77.0 + 0.78.0 google-analytics-admin diff --git a/java-analytics-admin/grpc-google-analytics-admin-v1alpha/pom.xml b/java-analytics-admin/grpc-google-analytics-admin-v1alpha/pom.xml index bd72b8f14187..f6642352a246 100644 --- a/java-analytics-admin/grpc-google-analytics-admin-v1alpha/pom.xml +++ b/java-analytics-admin/grpc-google-analytics-admin-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-admin-v1alpha - 0.77.0 + 0.78.0 grpc-google-analytics-admin-v1alpha GRPC library for grpc-google-analytics-admin-v1alpha com.google.analytics google-analytics-admin-parent - 0.77.0 + 0.78.0 diff --git a/java-analytics-admin/grpc-google-analytics-admin-v1beta/pom.xml b/java-analytics-admin/grpc-google-analytics-admin-v1beta/pom.xml index c4daa8e86daf..bbe31e0daadd 100644 --- a/java-analytics-admin/grpc-google-analytics-admin-v1beta/pom.xml +++ b/java-analytics-admin/grpc-google-analytics-admin-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-admin-v1beta - 0.77.0 + 0.78.0 grpc-google-analytics-admin-v1beta GRPC library for google-analytics-admin com.google.analytics google-analytics-admin-parent - 0.77.0 + 0.78.0 diff --git a/java-analytics-admin/pom.xml b/java-analytics-admin/pom.xml index 789bc73985ac..6fb2eb8beafd 100644 --- a/java-analytics-admin/pom.xml +++ b/java-analytics-admin/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-admin-parent pom - 0.77.0 + 0.78.0 Google Analytics Admin Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.analytics google-analytics-admin - 0.77.0 + 0.78.0 com.google.api.grpc proto-google-analytics-admin-v1beta - 0.77.0 + 0.78.0 com.google.api.grpc grpc-google-analytics-admin-v1beta - 0.77.0 + 0.78.0 com.google.api.grpc proto-google-analytics-admin-v1alpha - 0.77.0 + 0.78.0 com.google.api.grpc grpc-google-analytics-admin-v1alpha - 0.77.0 + 0.78.0 diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/pom.xml b/java-analytics-admin/proto-google-analytics-admin-v1alpha/pom.xml index fe6355be8561..5f68add1402f 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/pom.xml +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-admin-v1alpha - 0.77.0 + 0.78.0 proto-google-analytics-admin-v1alpha PROTO library for proto-google-analytics-admin-v1alpha com.google.analytics google-analytics-admin-parent - 0.77.0 + 0.78.0 diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/pom.xml b/java-analytics-admin/proto-google-analytics-admin-v1beta/pom.xml index ff8512834ee0..44cb92cbb51f 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/pom.xml +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-admin-v1beta - 0.77.0 + 0.78.0 proto-google-analytics-admin-v1beta Proto library for google-analytics-admin com.google.analytics google-analytics-admin-parent - 0.77.0 + 0.78.0 diff --git a/java-analytics-data/CHANGELOG.md b/java-analytics-data/CHANGELOG.md index 7c9b6aa889d1..ac788c1a6701 100644 --- a/java-analytics-data/CHANGELOG.md +++ b/java-analytics-data/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.79.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.78.0 (2025-06-25) ### Dependencies diff --git a/java-analytics-data/README.md b/java-analytics-data/README.md index 3d0228ca833a..68b0fb884fb4 100644 --- a/java-analytics-data/README.md +++ b/java-analytics-data/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.analytics google-analytics-data - 0.77.0 + 0.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.analytics:google-analytics-data:0.77.0' +implementation 'com.google.analytics:google-analytics-data:0.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.77.0" +libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.78.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.analytics/google-analytics-data.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-data/0.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-data/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-analytics-data/google-analytics-data-bom/pom.xml b/java-analytics-data/google-analytics-data-bom/pom.xml index efd89c42d9e4..bdba2f79d1b0 100644 --- a/java-analytics-data/google-analytics-data-bom/pom.xml +++ b/java-analytics-data/google-analytics-data-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.78.0 + 0.79.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.analytics google-analytics-data - 0.78.0 + 0.79.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.78.0 + 0.79.0 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.78.0 + 0.79.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.78.0 + 0.79.0 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.78.0 + 0.79.0 diff --git a/java-analytics-data/google-analytics-data/pom.xml b/java-analytics-data/google-analytics-data/pom.xml index cdd555cd3b90..b1b59a45deb1 100644 --- a/java-analytics-data/google-analytics-data/pom.xml +++ b/java-analytics-data/google-analytics-data/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.analytics google-analytics-data - 0.78.0 + 0.79.0 jar Google Analytics Data provides programmatic methods to access report data in Google Analytics App+Web properties. com.google.analytics google-analytics-data-parent - 0.78.0 + 0.79.0 google-analytics-data diff --git a/java-analytics-data/grpc-google-analytics-data-v1alpha/pom.xml b/java-analytics-data/grpc-google-analytics-data-v1alpha/pom.xml index 8f339d0ff4fa..9e543bde4bd5 100644 --- a/java-analytics-data/grpc-google-analytics-data-v1alpha/pom.xml +++ b/java-analytics-data/grpc-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.78.0 + 0.79.0 grpc-google-analytics-data-v1alpha GRPC library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.78.0 + 0.79.0 diff --git a/java-analytics-data/grpc-google-analytics-data-v1beta/pom.xml b/java-analytics-data/grpc-google-analytics-data-v1beta/pom.xml index 74d26c52f576..70ce04ac793f 100644 --- a/java-analytics-data/grpc-google-analytics-data-v1beta/pom.xml +++ b/java-analytics-data/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.78.0 + 0.79.0 grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.78.0 + 0.79.0 diff --git a/java-analytics-data/pom.xml b/java-analytics-data/pom.xml index f7e663a00958..6ffbb1aa5747 100644 --- a/java-analytics-data/pom.xml +++ b/java-analytics-data/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.78.0 + 0.79.0 Google Analytics Data Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.analytics google-analytics-data - 0.78.0 + 0.79.0 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.78.0 + 0.79.0 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.78.0 + 0.79.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.78.0 + 0.79.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.78.0 + 0.79.0 diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/pom.xml b/java-analytics-data/proto-google-analytics-data-v1alpha/pom.xml index 3562c943d5ad..fc0ca5ee7d3d 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/pom.xml +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.78.0 + 0.79.0 proto-google-analytics-data-v1alpha Proto library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.78.0 + 0.79.0 diff --git a/java-analytics-data/proto-google-analytics-data-v1beta/pom.xml b/java-analytics-data/proto-google-analytics-data-v1beta/pom.xml index e401544e7f7f..67375efe9e1b 100644 --- a/java-analytics-data/proto-google-analytics-data-v1beta/pom.xml +++ b/java-analytics-data/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.78.0 + 0.79.0 proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.78.0 + 0.79.0 diff --git a/java-analyticshub/CHANGELOG.md b/java-analyticshub/CHANGELOG.md index c85e0ca94b42..94e3f8889af7 100644 --- a/java-analyticshub/CHANGELOG.md +++ b/java-analyticshub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.65.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.64.0 (2025-06-25) ### Dependencies diff --git a/java-analyticshub/README.md b/java-analyticshub/README.md index bef1a1e94d5d..3d0a89bc1e9f 100644 --- a/java-analyticshub/README.md +++ b/java-analyticshub/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-analyticshub - 0.63.0 + 0.64.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-analyticshub:0.63.0' +implementation 'com.google.cloud:google-cloud-analyticshub:0.64.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-analyticshub" % "0.63.0" +libraryDependencies += "com.google.cloud" % "google-cloud-analyticshub" % "0.64.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.63.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-analyticshub/0.64.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/google-cloud-analyticshub-bom/pom.xml b/java-analyticshub/google-cloud-analyticshub-bom/pom.xml index 1e9e3dbd6818..77979d6e727a 100644 --- a/java-analyticshub/google-cloud-analyticshub-bom/pom.xml +++ b/java-analyticshub/google-cloud-analyticshub-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-analyticshub-bom - 0.64.0 + 0.65.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-analyticshub - 0.64.0 + 0.65.0 com.google.api.grpc grpc-google-cloud-analyticshub-v1 - 0.64.0 + 0.65.0 com.google.api.grpc proto-google-cloud-analyticshub-v1 - 0.64.0 + 0.65.0 diff --git a/java-analyticshub/google-cloud-analyticshub/pom.xml b/java-analyticshub/google-cloud-analyticshub/pom.xml index fe3937d953e6..74d5590de6a5 100644 --- a/java-analyticshub/google-cloud-analyticshub/pom.xml +++ b/java-analyticshub/google-cloud-analyticshub/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-analyticshub - 0.64.0 + 0.65.0 jar Google Analytics Hub API Analytics Hub API TBD com.google.cloud google-cloud-analyticshub-parent - 0.64.0 + 0.65.0 google-cloud-analyticshub diff --git a/java-analyticshub/grpc-google-cloud-analyticshub-v1/pom.xml b/java-analyticshub/grpc-google-cloud-analyticshub-v1/pom.xml index 98fa5e7df6e2..9b7cea14be88 100644 --- a/java-analyticshub/grpc-google-cloud-analyticshub-v1/pom.xml +++ b/java-analyticshub/grpc-google-cloud-analyticshub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-analyticshub-v1 - 0.64.0 + 0.65.0 grpc-google-cloud-analyticshub-v1 GRPC library for google-cloud-analyticshub com.google.cloud google-cloud-analyticshub-parent - 0.64.0 + 0.65.0 diff --git a/java-analyticshub/pom.xml b/java-analyticshub/pom.xml index 9dd9621454b1..1fea5f8b39f6 100644 --- a/java-analyticshub/pom.xml +++ b/java-analyticshub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-analyticshub-parent pom - 0.64.0 + 0.65.0 Google Analytics Hub API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-analyticshub - 0.64.0 + 0.65.0 com.google.api.grpc grpc-google-cloud-analyticshub-v1 - 0.64.0 + 0.65.0 com.google.api.grpc proto-google-cloud-analyticshub-v1 - 0.64.0 + 0.65.0 diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/pom.xml b/java-analyticshub/proto-google-cloud-analyticshub-v1/pom.xml index b23686200212..583cbbd607d0 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/pom.xml +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-analyticshub-v1 - 0.64.0 + 0.65.0 proto-google-cloud-analyticshub-v1 Proto library for google-cloud-analyticshub com.google.cloud google-cloud-analyticshub-parent - 0.64.0 + 0.65.0 diff --git a/java-api-gateway/CHANGELOG.md b/java-api-gateway/CHANGELOG.md index efbae13d3ab8..b6cfef840bb2 100644 --- a/java-api-gateway/CHANGELOG.md +++ b/java-api-gateway/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.68.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.67.0 (2025-06-25) ### Dependencies diff --git a/java-api-gateway/README.md b/java-api-gateway/README.md index 0ca2ec2c7d53..029289c94007 100644 --- a/java-api-gateway/README.md +++ b/java-api-gateway/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-api-gateway - 2.66.0 + 2.67.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-api-gateway:2.66.0' +implementation 'com.google.cloud:google-cloud-api-gateway:2.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-api-gateway" % "2.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-api-gateway" % "2.67.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-api-gateway/2.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-api-gateway/google-cloud-api-gateway-bom/pom.xml b/java-api-gateway/google-cloud-api-gateway-bom/pom.xml index 824b43557dc5..5dbb1cfd2f9e 100644 --- a/java-api-gateway/google-cloud-api-gateway-bom/pom.xml +++ b/java-api-gateway/google-cloud-api-gateway-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-api-gateway-bom - 2.67.0 + 2.68.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-api-gateway - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-api-gateway-v1 - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-cloud-api-gateway-v1 - 2.67.0 + 2.68.0 diff --git a/java-api-gateway/google-cloud-api-gateway/pom.xml b/java-api-gateway/google-cloud-api-gateway/pom.xml index dad072d6d54f..15f2571ead40 100644 --- a/java-api-gateway/google-cloud-api-gateway/pom.xml +++ b/java-api-gateway/google-cloud-api-gateway/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-api-gateway - 2.67.0 + 2.68.0 jar Google API Gateway API Gateway 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. com.google.cloud google-cloud-api-gateway-parent - 2.67.0 + 2.68.0 google-cloud-api-gateway diff --git a/java-api-gateway/grpc-google-cloud-api-gateway-v1/pom.xml b/java-api-gateway/grpc-google-cloud-api-gateway-v1/pom.xml index 6678147160fc..b500139e5629 100644 --- a/java-api-gateway/grpc-google-cloud-api-gateway-v1/pom.xml +++ b/java-api-gateway/grpc-google-cloud-api-gateway-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-api-gateway-v1 - 2.67.0 + 2.68.0 grpc-google-cloud-api-gateway-v1 GRPC library for google-cloud-api-gateway com.google.cloud google-cloud-api-gateway-parent - 2.67.0 + 2.68.0 diff --git a/java-api-gateway/pom.xml b/java-api-gateway/pom.xml index 1364e9be838e..e2e20f3d9d58 100644 --- a/java-api-gateway/pom.xml +++ b/java-api-gateway/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-api-gateway-parent pom - 2.67.0 + 2.68.0 Google API Gateway Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-api-gateway - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-api-gateway-v1 - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-cloud-api-gateway-v1 - 2.67.0 + 2.68.0 diff --git a/java-api-gateway/proto-google-cloud-api-gateway-v1/pom.xml b/java-api-gateway/proto-google-cloud-api-gateway-v1/pom.xml index 69004727771b..d2affdbd6162 100644 --- a/java-api-gateway/proto-google-cloud-api-gateway-v1/pom.xml +++ b/java-api-gateway/proto-google-cloud-api-gateway-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-api-gateway-v1 - 2.67.0 + 2.68.0 proto-google-cloud-api-gateway-v1 Proto library for google-cloud-api-gateway com.google.cloud google-cloud-api-gateway-parent - 2.67.0 + 2.68.0 diff --git a/java-apigee-connect/CHANGELOG.md b/java-apigee-connect/CHANGELOG.md index c355b7cf7e79..5a0a032bc016 100644 --- a/java-apigee-connect/CHANGELOG.md +++ b/java-apigee-connect/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.68.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.67.0 (2025-06-25) ### Dependencies diff --git a/java-apigee-connect/README.md b/java-apigee-connect/README.md index a8406869c72c..90d461cd450a 100644 --- a/java-apigee-connect/README.md +++ b/java-apigee-connect/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apigee-connect - 2.66.0 + 2.67.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apigee-connect:2.66.0' +implementation 'com.google.cloud:google-cloud-apigee-connect:2.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apigee-connect" % "2.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apigee-connect" % "2.67.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-connect/2.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-apigee-connect/google-cloud-apigee-connect-bom/pom.xml b/java-apigee-connect/google-cloud-apigee-connect-bom/pom.xml index 8af8420087f0..c71ae12d3d0c 100644 --- a/java-apigee-connect/google-cloud-apigee-connect-bom/pom.xml +++ b/java-apigee-connect/google-cloud-apigee-connect-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-apigee-connect-bom - 2.67.0 + 2.68.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-apigee-connect - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-apigee-connect-v1 - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-cloud-apigee-connect-v1 - 2.67.0 + 2.68.0 diff --git a/java-apigee-connect/google-cloud-apigee-connect/pom.xml b/java-apigee-connect/google-cloud-apigee-connect/pom.xml index bea44f31debe..a257e9a6a96c 100644 --- a/java-apigee-connect/google-cloud-apigee-connect/pom.xml +++ b/java-apigee-connect/google-cloud-apigee-connect/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-apigee-connect - 2.67.0 + 2.68.0 jar Google Apigee Connect Apigee Connect 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. com.google.cloud google-cloud-apigee-connect-parent - 2.67.0 + 2.68.0 google-cloud-apigee-connect diff --git a/java-apigee-connect/grpc-google-cloud-apigee-connect-v1/pom.xml b/java-apigee-connect/grpc-google-cloud-apigee-connect-v1/pom.xml index d02e88c7bdd3..08d318f41112 100644 --- a/java-apigee-connect/grpc-google-cloud-apigee-connect-v1/pom.xml +++ b/java-apigee-connect/grpc-google-cloud-apigee-connect-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-apigee-connect-v1 - 2.67.0 + 2.68.0 grpc-google-cloud-apigee-connect-v1 GRPC library for google-cloud-apigee-connect com.google.cloud google-cloud-apigee-connect-parent - 2.67.0 + 2.68.0 diff --git a/java-apigee-connect/pom.xml b/java-apigee-connect/pom.xml index 9c8626fbc889..69a9fdb554bc 100644 --- a/java-apigee-connect/pom.xml +++ b/java-apigee-connect/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-apigee-connect-parent pom - 2.67.0 + 2.68.0 Google Apigee Connect Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-apigee-connect - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-apigee-connect-v1 - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-cloud-apigee-connect-v1 - 2.67.0 + 2.68.0 diff --git a/java-apigee-connect/proto-google-cloud-apigee-connect-v1/pom.xml b/java-apigee-connect/proto-google-cloud-apigee-connect-v1/pom.xml index 21f8f023b042..448ffee2f892 100644 --- a/java-apigee-connect/proto-google-cloud-apigee-connect-v1/pom.xml +++ b/java-apigee-connect/proto-google-cloud-apigee-connect-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-apigee-connect-v1 - 2.67.0 + 2.68.0 proto-google-cloud-apigee-connect-v1 Proto library for google-cloud-apigee-connect com.google.cloud google-cloud-apigee-connect-parent - 2.67.0 + 2.68.0 diff --git a/java-apigee-registry/CHANGELOG.md b/java-apigee-registry/CHANGELOG.md index 21e42fa464f0..6e7310693994 100644 --- a/java-apigee-registry/CHANGELOG.md +++ b/java-apigee-registry/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.68.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.67.0 (2025-06-25) ### Dependencies diff --git a/java-apigee-registry/README.md b/java-apigee-registry/README.md index 2384c49adfac..510473c27d90 100644 --- a/java-apigee-registry/README.md +++ b/java-apigee-registry/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apigee-registry - 0.66.0 + 0.67.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apigee-registry:0.66.0' +implementation 'com.google.cloud:google-cloud-apigee-registry:0.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apigee-registry" % "0.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apigee-registry" % "0.67.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apigee-registry.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-registry/0.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-registry/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-apigee-registry/google-cloud-apigee-registry-bom/pom.xml b/java-apigee-registry/google-cloud-apigee-registry-bom/pom.xml index a7b47cd6dea6..fd403937aee1 100644 --- a/java-apigee-registry/google-cloud-apigee-registry-bom/pom.xml +++ b/java-apigee-registry/google-cloud-apigee-registry-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-apigee-registry-bom - 0.67.0 + 0.68.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-apigee-registry - 0.67.0 + 0.68.0 com.google.api.grpc grpc-google-cloud-apigee-registry-v1 - 0.67.0 + 0.68.0 com.google.api.grpc proto-google-cloud-apigee-registry-v1 - 0.67.0 + 0.68.0 diff --git a/java-apigee-registry/google-cloud-apigee-registry/pom.xml b/java-apigee-registry/google-cloud-apigee-registry/pom.xml index a06f5c24c91d..c8f9b29ab626 100644 --- a/java-apigee-registry/google-cloud-apigee-registry/pom.xml +++ b/java-apigee-registry/google-cloud-apigee-registry/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-apigee-registry - 0.67.0 + 0.68.0 jar Google Registry API Registry API allows teams to upload and share machine-readable descriptions of APIs that are in use and in development. com.google.cloud google-cloud-apigee-registry-parent - 0.67.0 + 0.68.0 google-cloud-apigee-registry diff --git a/java-apigee-registry/grpc-google-cloud-apigee-registry-v1/pom.xml b/java-apigee-registry/grpc-google-cloud-apigee-registry-v1/pom.xml index a4a839de5277..cb33bd9d2b31 100644 --- a/java-apigee-registry/grpc-google-cloud-apigee-registry-v1/pom.xml +++ b/java-apigee-registry/grpc-google-cloud-apigee-registry-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-apigee-registry-v1 - 0.67.0 + 0.68.0 grpc-google-cloud-apigee-registry-v1 GRPC library for google-cloud-apigee-registry com.google.cloud google-cloud-apigee-registry-parent - 0.67.0 + 0.68.0 diff --git a/java-apigee-registry/pom.xml b/java-apigee-registry/pom.xml index cddee5126fdb..520b07c72bc6 100644 --- a/java-apigee-registry/pom.xml +++ b/java-apigee-registry/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-apigee-registry-parent pom - 0.67.0 + 0.68.0 Google Registry API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-apigee-registry - 0.67.0 + 0.68.0 com.google.api.grpc grpc-google-cloud-apigee-registry-v1 - 0.67.0 + 0.68.0 com.google.api.grpc proto-google-cloud-apigee-registry-v1 - 0.67.0 + 0.68.0 diff --git a/java-apigee-registry/proto-google-cloud-apigee-registry-v1/pom.xml b/java-apigee-registry/proto-google-cloud-apigee-registry-v1/pom.xml index da11fe042737..45d7302617fd 100644 --- a/java-apigee-registry/proto-google-cloud-apigee-registry-v1/pom.xml +++ b/java-apigee-registry/proto-google-cloud-apigee-registry-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-apigee-registry-v1 - 0.67.0 + 0.68.0 proto-google-cloud-apigee-registry-v1 Proto library for google-cloud-apigee-registry com.google.cloud google-cloud-apigee-registry-parent - 0.67.0 + 0.68.0 diff --git a/java-apihub/CHANGELOG.md b/java-apihub/CHANGELOG.md index d1d455a356cc..c6e0b8e0eacf 100644 --- a/java-apihub/CHANGELOG.md +++ b/java-apihub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.21.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.20.0 (2025-06-25) ### Dependencies diff --git a/java-apihub/README.md b/java-apihub/README.md index 2e438729dcbe..fcb8f10a2aab 100644 --- a/java-apihub/README.md +++ b/java-apihub/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apihub - 0.19.0 + 0.20.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apihub:0.19.0' +implementation 'com.google.cloud:google-cloud-apihub:0.20.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apihub" % "0.19.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apihub" % "0.20.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apihub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apihub/0.19.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apihub/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-apihub/google-cloud-apihub-bom/pom.xml b/java-apihub/google-cloud-apihub-bom/pom.xml index 5c40ec498df7..d6f52d735e32 100644 --- a/java-apihub/google-cloud-apihub-bom/pom.xml +++ b/java-apihub/google-cloud-apihub-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-apihub-bom - 0.20.0 + 0.21.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -26,12 +26,12 @@ com.google.cloud google-cloud-apihub - 0.20.0 + 0.21.0 com.google.api.grpc proto-google-cloud-apihub-v1 - 0.20.0 + 0.21.0 diff --git a/java-apihub/google-cloud-apihub/pom.xml b/java-apihub/google-cloud-apihub/pom.xml index cf23a36d7837..8d3a514ce9d8 100644 --- a/java-apihub/google-cloud-apihub/pom.xml +++ b/java-apihub/google-cloud-apihub/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-apihub - 0.20.0 + 0.21.0 jar Google API hub API API hub API 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. com.google.cloud google-cloud-apihub-parent - 0.20.0 + 0.21.0 google-cloud-apihub diff --git a/java-apihub/pom.xml b/java-apihub/pom.xml index e0e34af96e81..326603ce5a11 100644 --- a/java-apihub/pom.xml +++ b/java-apihub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-apihub-parent pom - 0.20.0 + 0.21.0 Google API hub API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,12 +29,12 @@ com.google.cloud google-cloud-apihub - 0.20.0 + 0.21.0 com.google.api.grpc proto-google-cloud-apihub-v1 - 0.20.0 + 0.21.0 diff --git a/java-apihub/proto-google-cloud-apihub-v1/pom.xml b/java-apihub/proto-google-cloud-apihub-v1/pom.xml index a07fce59ae62..7ba1a76da4ee 100644 --- a/java-apihub/proto-google-cloud-apihub-v1/pom.xml +++ b/java-apihub/proto-google-cloud-apihub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-apihub-v1 - 0.20.0 + 0.21.0 proto-google-cloud-apihub-v1 Proto library for google-cloud-apihub com.google.cloud google-cloud-apihub-parent - 0.20.0 + 0.21.0 diff --git a/java-apikeys/CHANGELOG.md b/java-apikeys/CHANGELOG.md index 538f6d00dbc0..1ead18272774 100644 --- a/java-apikeys/CHANGELOG.md +++ b/java-apikeys/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.66.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.65.0 (2025-06-25) ### Dependencies diff --git a/java-apikeys/README.md b/java-apikeys/README.md index 748001036bb9..e3abc261ad0a 100644 --- a/java-apikeys/README.md +++ b/java-apikeys/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apikeys - 0.64.0 + 0.65.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apikeys:0.64.0' +implementation 'com.google.cloud:google-cloud-apikeys:0.65.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apikeys" % "0.64.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apikeys" % "0.65.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.64.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apikeys/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-apikeys/google-cloud-apikeys-bom/pom.xml b/java-apikeys/google-cloud-apikeys-bom/pom.xml index 7c437c28499c..6aa646a79dd5 100644 --- a/java-apikeys/google-cloud-apikeys-bom/pom.xml +++ b/java-apikeys/google-cloud-apikeys-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-apikeys-bom - 0.65.0 + 0.66.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-apikeys - 0.65.0 + 0.66.0 com.google.api.grpc grpc-google-cloud-apikeys-v2 - 0.65.0 + 0.66.0 com.google.api.grpc proto-google-cloud-apikeys-v2 - 0.65.0 + 0.66.0 diff --git a/java-apikeys/google-cloud-apikeys/pom.xml b/java-apikeys/google-cloud-apikeys/pom.xml index 25534796b649..c77af971712e 100644 --- a/java-apikeys/google-cloud-apikeys/pom.xml +++ b/java-apikeys/google-cloud-apikeys/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-apikeys - 0.65.0 + 0.66.0 jar Google API Keys API API Keys API API Keys lets you create and manage your API keys for your projects. com.google.cloud google-cloud-apikeys-parent - 0.65.0 + 0.66.0 google-cloud-apikeys diff --git a/java-apikeys/grpc-google-cloud-apikeys-v2/pom.xml b/java-apikeys/grpc-google-cloud-apikeys-v2/pom.xml index f9b0c5d138a1..01389202230e 100644 --- a/java-apikeys/grpc-google-cloud-apikeys-v2/pom.xml +++ b/java-apikeys/grpc-google-cloud-apikeys-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-apikeys-v2 - 0.65.0 + 0.66.0 grpc-google-cloud-apikeys-v2 GRPC library for google-cloud-apikeys com.google.cloud google-cloud-apikeys-parent - 0.65.0 + 0.66.0 diff --git a/java-apikeys/pom.xml b/java-apikeys/pom.xml index 685f2ae5b489..2f756e37b545 100644 --- a/java-apikeys/pom.xml +++ b/java-apikeys/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-apikeys-parent pom - 0.65.0 + 0.66.0 Google API Keys API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-apikeys - 0.65.0 + 0.66.0 com.google.api.grpc grpc-google-cloud-apikeys-v2 - 0.65.0 + 0.66.0 com.google.api.grpc proto-google-cloud-apikeys-v2 - 0.65.0 + 0.66.0 diff --git a/java-apikeys/proto-google-cloud-apikeys-v2/pom.xml b/java-apikeys/proto-google-cloud-apikeys-v2/pom.xml index d76c3cefb710..aa8ad09885ea 100644 --- a/java-apikeys/proto-google-cloud-apikeys-v2/pom.xml +++ b/java-apikeys/proto-google-cloud-apikeys-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-apikeys-v2 - 0.65.0 + 0.66.0 proto-google-cloud-apikeys-v2 Proto library for google-cloud-apikeys com.google.cloud google-cloud-apikeys-parent - 0.65.0 + 0.66.0 diff --git a/java-appengine-admin/CHANGELOG.md b/java-appengine-admin/CHANGELOG.md index 977534726d7a..e8be5ea807e6 100644 --- a/java-appengine-admin/CHANGELOG.md +++ b/java-appengine-admin/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.68.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.67.0 (2025-06-25) ### Dependencies diff --git a/java-appengine-admin/README.md b/java-appengine-admin/README.md index 08162cbbb65e..0597052a29b9 100644 --- a/java-appengine-admin/README.md +++ b/java-appengine-admin/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-appengine-admin - 2.66.0 + 2.67.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-appengine-admin:2.66.0' +implementation 'com.google.cloud:google-cloud-appengine-admin:2.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-appengine-admin" % "2.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-appengine-admin" % "2.67.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-appengine-admin/2.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-appengine-admin/google-cloud-appengine-admin-bom/pom.xml b/java-appengine-admin/google-cloud-appengine-admin-bom/pom.xml index e34044c50101..c907bddcc95e 100644 --- a/java-appengine-admin/google-cloud-appengine-admin-bom/pom.xml +++ b/java-appengine-admin/google-cloud-appengine-admin-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-appengine-admin-bom - 2.67.0 + 2.68.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-appengine-admin - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-appengine-admin-v1 - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-cloud-appengine-admin-v1 - 2.67.0 + 2.68.0 diff --git a/java-appengine-admin/google-cloud-appengine-admin/pom.xml b/java-appengine-admin/google-cloud-appengine-admin/pom.xml index ac873a029408..80b495b72735 100644 --- a/java-appengine-admin/google-cloud-appengine-admin/pom.xml +++ b/java-appengine-admin/google-cloud-appengine-admin/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-appengine-admin - 2.67.0 + 2.68.0 jar Google App Engine Admin API App Engine Admin API you to manage your App Engine applications. com.google.cloud google-cloud-appengine-admin-parent - 2.67.0 + 2.68.0 google-cloud-appengine-admin diff --git a/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/pom.xml b/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/pom.xml index fc0022d495dc..cb9cdd6652eb 100644 --- a/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/pom.xml +++ b/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-appengine-admin-v1 - 2.67.0 + 2.68.0 grpc-google-cloud-appengine-admin-v1 GRPC library for google-cloud-appengine-admin com.google.cloud google-cloud-appengine-admin-parent - 2.67.0 + 2.68.0 diff --git a/java-appengine-admin/pom.xml b/java-appengine-admin/pom.xml index 882c74ed391d..2a20a1101c30 100644 --- a/java-appengine-admin/pom.xml +++ b/java-appengine-admin/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-appengine-admin-parent pom - 2.67.0 + 2.68.0 Google App Engine Admin API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-appengine-admin - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-appengine-admin-v1 - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-cloud-appengine-admin-v1 - 2.67.0 + 2.68.0 diff --git a/java-appengine-admin/proto-google-cloud-appengine-admin-v1/pom.xml b/java-appengine-admin/proto-google-cloud-appengine-admin-v1/pom.xml index 1c1815965169..7e3e3c0eac30 100644 --- a/java-appengine-admin/proto-google-cloud-appengine-admin-v1/pom.xml +++ b/java-appengine-admin/proto-google-cloud-appengine-admin-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-appengine-admin-v1 - 2.67.0 + 2.68.0 proto-google-cloud-appengine-admin-v1 Proto library for google-cloud-appengine-admin com.google.cloud google-cloud-appengine-admin-parent - 2.67.0 + 2.68.0 diff --git a/java-apphub/CHANGELOG.md b/java-apphub/CHANGELOG.md index 7c3ec370f363..f3da4f3b83ea 100644 --- a/java-apphub/CHANGELOG.md +++ b/java-apphub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.32.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.31.0 (2025-06-25) ### Dependencies diff --git a/java-apphub/README.md b/java-apphub/README.md index ed70cae5cfb3..c3f249c5a4ed 100644 --- a/java-apphub/README.md +++ b/java-apphub/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apphub - 0.30.0 + 0.31.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apphub:0.30.0' +implementation 'com.google.cloud:google-cloud-apphub:0.31.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apphub" % "0.30.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apphub" % "0.31.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apphub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apphub/0.30.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apphub/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-apphub/google-cloud-apphub-bom/pom.xml b/java-apphub/google-cloud-apphub-bom/pom.xml index abf7b82ab9d0..b2785172fa70 100644 --- a/java-apphub/google-cloud-apphub-bom/pom.xml +++ b/java-apphub/google-cloud-apphub-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-apphub-bom - 0.31.0 + 0.32.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-apphub - 0.31.0 + 0.32.0 com.google.api.grpc grpc-google-cloud-apphub-v1 - 0.31.0 + 0.32.0 com.google.api.grpc proto-google-cloud-apphub-v1 - 0.31.0 + 0.32.0 diff --git a/java-apphub/google-cloud-apphub/pom.xml b/java-apphub/google-cloud-apphub/pom.xml index cff51f5d0dd0..8fe133ada7cb 100644 --- a/java-apphub/google-cloud-apphub/pom.xml +++ b/java-apphub/google-cloud-apphub/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-apphub - 0.31.0 + 0.32.0 jar Google App Hub API App Hub API App Hub simplifies the process of building, running, and managing applications on Google Cloud. com.google.cloud google-cloud-apphub-parent - 0.31.0 + 0.32.0 google-cloud-apphub diff --git a/java-apphub/grpc-google-cloud-apphub-v1/pom.xml b/java-apphub/grpc-google-cloud-apphub-v1/pom.xml index dd54c042668a..c70b8a7b74a7 100644 --- a/java-apphub/grpc-google-cloud-apphub-v1/pom.xml +++ b/java-apphub/grpc-google-cloud-apphub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-apphub-v1 - 0.31.0 + 0.32.0 grpc-google-cloud-apphub-v1 GRPC library for google-cloud-apphub com.google.cloud google-cloud-apphub-parent - 0.31.0 + 0.32.0 diff --git a/java-apphub/pom.xml b/java-apphub/pom.xml index 865167de1069..fbbf65c821fd 100644 --- a/java-apphub/pom.xml +++ b/java-apphub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-apphub-parent pom - 0.31.0 + 0.32.0 Google App Hub API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-apphub - 0.31.0 + 0.32.0 com.google.api.grpc grpc-google-cloud-apphub-v1 - 0.31.0 + 0.32.0 com.google.api.grpc proto-google-cloud-apphub-v1 - 0.31.0 + 0.32.0 diff --git a/java-apphub/proto-google-cloud-apphub-v1/pom.xml b/java-apphub/proto-google-cloud-apphub-v1/pom.xml index ac74850665d5..cf7a95f5975e 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/pom.xml +++ b/java-apphub/proto-google-cloud-apphub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-apphub-v1 - 0.31.0 + 0.32.0 proto-google-cloud-apphub-v1 Proto library for google-cloud-apphub com.google.cloud google-cloud-apphub-parent - 0.31.0 + 0.32.0 diff --git a/java-area120-tables/CHANGELOG.md b/java-area120-tables/CHANGELOG.md index 929cf8a8f8b1..b9e64781b2e4 100644 --- a/java-area120-tables/CHANGELOG.md +++ b/java-area120-tables/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.72.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.71.0 (2025-06-25) ### Dependencies diff --git a/java-area120-tables/README.md b/java-area120-tables/README.md index 935588d3f1bb..9de5755f6ccc 100644 --- a/java-area120-tables/README.md +++ b/java-area120-tables/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.area120 google-area120-tables - 0.70.0 + 0.71.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.area120:google-area120-tables:0.70.0' +implementation 'com.google.area120:google-area120-tables:0.71.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.area120" % "google-area120-tables" % "0.70.0" +libraryDependencies += "com.google.area120" % "google-area120-tables" % "0.71.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.area120/google-area120-tables.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.area120/google-area120-tables/0.70.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.area120/google-area120-tables/0.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-area120-tables/google-area120-tables-bom/pom.xml b/java-area120-tables/google-area120-tables-bom/pom.xml index 2d1fc2e35217..0c15c2122d0c 100644 --- a/java-area120-tables/google-area120-tables-bom/pom.xml +++ b/java-area120-tables/google-area120-tables-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.area120 google-area120-tables-bom - 0.71.0 + 0.72.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.area120 google-area120-tables - 0.71.0 + 0.72.0 com.google.api.grpc grpc-google-area120-tables-v1alpha1 - 0.71.0 + 0.72.0 com.google.api.grpc proto-google-area120-tables-v1alpha1 - 0.71.0 + 0.72.0 diff --git a/java-area120-tables/google-area120-tables/pom.xml b/java-area120-tables/google-area120-tables/pom.xml index d9a26d8a6ca8..b997af63dd52 100644 --- a/java-area120-tables/google-area120-tables/pom.xml +++ b/java-area120-tables/google-area120-tables/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.area120 google-area120-tables - 0.71.0 + 0.72.0 jar Google Area 120 Tables provides programmatic methods to the Area 120 Tables API. com.google.area120 google-area120-tables-parent - 0.71.0 + 0.72.0 google-area120-tables diff --git a/java-area120-tables/grpc-google-area120-tables-v1alpha1/pom.xml b/java-area120-tables/grpc-google-area120-tables-v1alpha1/pom.xml index 6bc781e01971..7e649662db75 100644 --- a/java-area120-tables/grpc-google-area120-tables-v1alpha1/pom.xml +++ b/java-area120-tables/grpc-google-area120-tables-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-area120-tables-v1alpha1 - 0.71.0 + 0.72.0 grpc-google-area120-tables-v1alpha1 GRPC library for google-area120-tables com.google.area120 google-area120-tables-parent - 0.71.0 + 0.72.0 diff --git a/java-area120-tables/pom.xml b/java-area120-tables/pom.xml index cbc477f68b7f..8143b3b19924 100644 --- a/java-area120-tables/pom.xml +++ b/java-area120-tables/pom.xml @@ -4,7 +4,7 @@ com.google.area120 google-area120-tables-parent pom - 0.71.0 + 0.72.0 Google Area 120 Tables Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.area120 google-area120-tables - 0.71.0 + 0.72.0 com.google.api.grpc proto-google-area120-tables-v1alpha1 - 0.71.0 + 0.72.0 com.google.api.grpc grpc-google-area120-tables-v1alpha1 - 0.71.0 + 0.72.0 diff --git a/java-area120-tables/proto-google-area120-tables-v1alpha1/pom.xml b/java-area120-tables/proto-google-area120-tables-v1alpha1/pom.xml index 4083390c58a8..4c66ec6cc050 100644 --- a/java-area120-tables/proto-google-area120-tables-v1alpha1/pom.xml +++ b/java-area120-tables/proto-google-area120-tables-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-area120-tables-v1alpha1 - 0.71.0 + 0.72.0 proto-google-area120-tables-v1alpha1 Proto library for google-area120-tables com.google.area120 google-area120-tables-parent - 0.71.0 + 0.72.0 diff --git a/java-artifact-registry/CHANGELOG.md b/java-artifact-registry/CHANGELOG.md index 4fd720e7b898..5955df47ed16 100644 --- a/java-artifact-registry/CHANGELOG.md +++ b/java-artifact-registry/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 1.67.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 1.66.0 (2025-06-25) ### Dependencies diff --git a/java-artifact-registry/README.md b/java-artifact-registry/README.md index 74194ca31a4d..ec6d6eb92c0c 100644 --- a/java-artifact-registry/README.md +++ b/java-artifact-registry/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-artifact-registry - 1.65.0 + 1.66.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-artifact-registry:1.65.0' +implementation 'com.google.cloud:google-cloud-artifact-registry:1.66.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-artifact-registry" % "1.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-artifact-registry" % "1.66.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.65.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-artifact-registry/1.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-artifact-registry/google-cloud-artifact-registry-bom/pom.xml b/java-artifact-registry/google-cloud-artifact-registry-bom/pom.xml index b07adb9ec028..98110b3636d9 100644 --- a/java-artifact-registry/google-cloud-artifact-registry-bom/pom.xml +++ b/java-artifact-registry/google-cloud-artifact-registry-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-artifact-registry-bom - 1.66.0 + 1.67.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-artifact-registry - 1.66.0 + 1.67.0 com.google.api.grpc grpc-google-cloud-artifact-registry-v1beta2 - 0.72.0 + 0.73.0 com.google.api.grpc grpc-google-cloud-artifact-registry-v1 - 1.66.0 + 1.67.0 com.google.api.grpc proto-google-cloud-artifact-registry-v1beta2 - 0.72.0 + 0.73.0 com.google.api.grpc proto-google-cloud-artifact-registry-v1 - 1.66.0 + 1.67.0 diff --git a/java-artifact-registry/google-cloud-artifact-registry/pom.xml b/java-artifact-registry/google-cloud-artifact-registry/pom.xml index b042f2f7449a..955ba55f049a 100644 --- a/java-artifact-registry/google-cloud-artifact-registry/pom.xml +++ b/java-artifact-registry/google-cloud-artifact-registry/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-artifact-registry - 1.66.0 + 1.67.0 jar Google Artifact Registry 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. com.google.cloud google-cloud-artifact-registry-parent - 1.66.0 + 1.67.0 google-cloud-artifact-registry diff --git a/java-artifact-registry/grpc-google-cloud-artifact-registry-v1/pom.xml b/java-artifact-registry/grpc-google-cloud-artifact-registry-v1/pom.xml index bc9e286dd282..a80a43a13acf 100644 --- a/java-artifact-registry/grpc-google-cloud-artifact-registry-v1/pom.xml +++ b/java-artifact-registry/grpc-google-cloud-artifact-registry-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-artifact-registry-v1 - 1.66.0 + 1.67.0 grpc-google-cloud-artifact-registry-v1 GRPC library for google-cloud-artifact-registry com.google.cloud google-cloud-artifact-registry-parent - 1.66.0 + 1.67.0 diff --git a/java-artifact-registry/grpc-google-cloud-artifact-registry-v1beta2/pom.xml b/java-artifact-registry/grpc-google-cloud-artifact-registry-v1beta2/pom.xml index 76eeff890ed3..615bc86c51cb 100644 --- a/java-artifact-registry/grpc-google-cloud-artifact-registry-v1beta2/pom.xml +++ b/java-artifact-registry/grpc-google-cloud-artifact-registry-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-artifact-registry-v1beta2 - 0.72.0 + 0.73.0 grpc-google-cloud-artifact-registry-v1beta2 GRPC library for google-cloud-artifact-registry com.google.cloud google-cloud-artifact-registry-parent - 1.66.0 + 1.67.0 diff --git a/java-artifact-registry/pom.xml b/java-artifact-registry/pom.xml index 9609898be8b0..4ec059ab8976 100644 --- a/java-artifact-registry/pom.xml +++ b/java-artifact-registry/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-artifact-registry-parent pom - 1.66.0 + 1.67.0 Google Artifact Registry Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-artifact-registry - 1.66.0 + 1.67.0 com.google.api.grpc proto-google-cloud-artifact-registry-v1 - 1.66.0 + 1.67.0 com.google.api.grpc grpc-google-cloud-artifact-registry-v1 - 1.66.0 + 1.67.0 com.google.api.grpc proto-google-cloud-artifact-registry-v1beta2 - 0.72.0 + 0.73.0 com.google.api.grpc grpc-google-cloud-artifact-registry-v1beta2 - 0.72.0 + 0.73.0 diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/pom.xml b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/pom.xml index d9d9457e9ff0..dc14a94b63b7 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/pom.xml +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-artifact-registry-v1 - 1.66.0 + 1.67.0 proto-google-cloud-artifact-registry-v1 Proto library for google-cloud-artifact-registry com.google.cloud google-cloud-artifact-registry-parent - 1.66.0 + 1.67.0 diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1beta2/pom.xml b/java-artifact-registry/proto-google-cloud-artifact-registry-v1beta2/pom.xml index 3401346b93c0..2c4f530437c6 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1beta2/pom.xml +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-artifact-registry-v1beta2 - 0.72.0 + 0.73.0 grpc-google-cloud-artifact-registry-v1beta2 Proto library for google-cloud-artifact-registry com.google.cloud google-cloud-artifact-registry-parent - 1.66.0 + 1.67.0 diff --git a/java-asset/CHANGELOG.md b/java-asset/CHANGELOG.md index af7ea6a8672b..ff7fe1ccd959 100644 --- a/java-asset/CHANGELOG.md +++ b/java-asset/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 3.72.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 3.71.0 (2025-06-25) ### Dependencies diff --git a/java-asset/README.md b/java-asset/README.md index 147abef316d6..42a97893eb7a 100644 --- a/java-asset/README.md +++ b/java-asset/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-asset - 3.70.0 + 3.71.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-asset:3.70.0' +implementation 'com.google.cloud:google-cloud-asset:3.71.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-asset" % "3.70.0" +libraryDependencies += "com.google.cloud" % "google-cloud-asset" % "3.71.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.70.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-asset/3.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-asset/google-cloud-asset-bom/pom.xml b/java-asset/google-cloud-asset-bom/pom.xml index c6318c7d7dbb..03d4ee3a5e14 100644 --- a/java-asset/google-cloud-asset-bom/pom.xml +++ b/java-asset/google-cloud-asset-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-asset-bom - 3.71.0 + 3.72.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -23,57 +23,57 @@ com.google.cloud google-cloud-asset - 3.71.0 + 3.72.0 com.google.api.grpc grpc-google-cloud-asset-v1 - 3.71.0 + 3.72.0 com.google.api.grpc grpc-google-cloud-asset-v1p1beta1 - 0.171.0 + 0.172.0 com.google.api.grpc grpc-google-cloud-asset-v1p2beta1 - 0.171.0 + 0.172.0 com.google.api.grpc grpc-google-cloud-asset-v1p5beta1 - 0.171.0 + 0.172.0 com.google.api.grpc grpc-google-cloud-asset-v1p7beta1 - 3.71.0 + 3.72.0 com.google.api.grpc proto-google-cloud-asset-v1 - 3.71.0 + 3.72.0 com.google.api.grpc proto-google-cloud-asset-v1p1beta1 - 0.171.0 + 0.172.0 com.google.api.grpc proto-google-cloud-asset-v1p2beta1 - 0.171.0 + 0.172.0 com.google.api.grpc proto-google-cloud-asset-v1p5beta1 - 0.171.0 + 0.172.0 com.google.api.grpc proto-google-cloud-asset-v1p7beta1 - 3.71.0 + 3.72.0 diff --git a/java-asset/google-cloud-asset/pom.xml b/java-asset/google-cloud-asset/pom.xml index 9ad44ef17614..75b07b14c8f4 100644 --- a/java-asset/google-cloud-asset/pom.xml +++ b/java-asset/google-cloud-asset/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-asset - 3.71.0 + 3.72.0 jar Google Cloud Asset Java idiomatic client for Google Cloud Asset com.google.cloud google-cloud-asset-parent - 3.71.0 + 3.72.0 google-cloud-asset diff --git a/java-asset/grpc-google-cloud-asset-v1/pom.xml b/java-asset/grpc-google-cloud-asset-v1/pom.xml index 2d699acda7c6..676bfa87af06 100644 --- a/java-asset/grpc-google-cloud-asset-v1/pom.xml +++ b/java-asset/grpc-google-cloud-asset-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-asset-v1 - 3.71.0 + 3.72.0 grpc-google-cloud-asset-v1 GRPC library for grpc-google-cloud-asset-v1 com.google.cloud google-cloud-asset-parent - 3.71.0 + 3.72.0 diff --git a/java-asset/grpc-google-cloud-asset-v1p1beta1/pom.xml b/java-asset/grpc-google-cloud-asset-v1p1beta1/pom.xml index 047ac8fa7464..70c399e0d4c4 100644 --- a/java-asset/grpc-google-cloud-asset-v1p1beta1/pom.xml +++ b/java-asset/grpc-google-cloud-asset-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-asset-v1p1beta1 - 0.171.0 + 0.172.0 grpc-google-cloud-asset-v1p1beta1 GRPC library for grpc-google-cloud-asset-v1p1beta1 com.google.cloud google-cloud-asset-parent - 3.71.0 + 3.72.0 diff --git a/java-asset/grpc-google-cloud-asset-v1p2beta1/pom.xml b/java-asset/grpc-google-cloud-asset-v1p2beta1/pom.xml index 519815e01226..d4e67c340416 100644 --- a/java-asset/grpc-google-cloud-asset-v1p2beta1/pom.xml +++ b/java-asset/grpc-google-cloud-asset-v1p2beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-asset-v1p2beta1 - 0.171.0 + 0.172.0 grpc-google-cloud-asset-v1p2beta1 GRPC library for grpc-google-cloud-asset-v1p2beta1 com.google.cloud google-cloud-asset-parent - 3.71.0 + 3.72.0 diff --git a/java-asset/grpc-google-cloud-asset-v1p5beta1/pom.xml b/java-asset/grpc-google-cloud-asset-v1p5beta1/pom.xml index b3d468be255c..0592d87ccd10 100644 --- a/java-asset/grpc-google-cloud-asset-v1p5beta1/pom.xml +++ b/java-asset/grpc-google-cloud-asset-v1p5beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-asset-v1p5beta1 - 0.171.0 + 0.172.0 grpc-google-cloud-asset-v1p5beta1 GRPC library for grpc-google-cloud-asset-v1p5beta1 com.google.cloud google-cloud-asset-parent - 3.71.0 + 3.72.0 diff --git a/java-asset/grpc-google-cloud-asset-v1p7beta1/pom.xml b/java-asset/grpc-google-cloud-asset-v1p7beta1/pom.xml index 44e7033207f6..90ba8ae9df7b 100644 --- a/java-asset/grpc-google-cloud-asset-v1p7beta1/pom.xml +++ b/java-asset/grpc-google-cloud-asset-v1p7beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-asset-v1p7beta1 - 3.71.0 + 3.72.0 grpc-google-cloud-asset-v1p7beta1 GRPC library for google-cloud-asset com.google.cloud google-cloud-asset-parent - 3.71.0 + 3.72.0 diff --git a/java-asset/pom.xml b/java-asset/pom.xml index 638031f7bda0..16177970da2e 100644 --- a/java-asset/pom.xml +++ b/java-asset/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-asset-parent pom - 3.71.0 + 3.72.0 Google Cloud Asset Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,77 +29,77 @@ com.google.api.grpc proto-google-cloud-asset-v1 - 3.71.0 + 3.72.0 com.google.api.grpc proto-google-cloud-asset-v1p7beta1 - 3.71.0 + 3.72.0 com.google.api.grpc grpc-google-cloud-asset-v1p7beta1 - 3.71.0 + 3.72.0 com.google.api.grpc proto-google-cloud-asset-v1p1beta1 - 0.171.0 + 0.172.0 com.google.api.grpc proto-google-cloud-asset-v1p2beta1 - 0.171.0 + 0.172.0 com.google.api.grpc proto-google-cloud-asset-v1p5beta1 - 0.171.0 + 0.172.0 com.google.api.grpc grpc-google-cloud-asset-v1 - 3.71.0 + 3.72.0 com.google.api.grpc grpc-google-cloud-asset-v1p1beta1 - 0.171.0 + 0.172.0 com.google.api.grpc grpc-google-cloud-asset-v1p2beta1 - 0.171.0 + 0.172.0 com.google.api.grpc grpc-google-cloud-asset-v1p5beta1 - 0.171.0 + 0.172.0 com.google.cloud google-cloud-asset - 3.71.0 + 3.72.0 com.google.api.grpc proto-google-cloud-orgpolicy-v1 - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-identity-accesscontextmanager-v1 - 1.68.0 + 1.69.0 com.google.api.grpc proto-google-cloud-os-config-v1 - 2.69.0 + 2.70.0 com.google.cloud google-cloud-resourcemanager - 1.69.0 + 1.70.0 test diff --git a/java-asset/proto-google-cloud-asset-v1/pom.xml b/java-asset/proto-google-cloud-asset-v1/pom.xml index 57e5c788d0d1..223fdc2a82e8 100644 --- a/java-asset/proto-google-cloud-asset-v1/pom.xml +++ b/java-asset/proto-google-cloud-asset-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-asset-v1 - 3.71.0 + 3.72.0 proto-google-cloud-asset-v1 PROTO library for proto-google-cloud-asset-v1 com.google.cloud google-cloud-asset-parent - 3.71.0 + 3.72.0 diff --git a/java-asset/proto-google-cloud-asset-v1p1beta1/pom.xml b/java-asset/proto-google-cloud-asset-v1p1beta1/pom.xml index ced6e0923ba0..de0ff1363bdf 100644 --- a/java-asset/proto-google-cloud-asset-v1p1beta1/pom.xml +++ b/java-asset/proto-google-cloud-asset-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-asset-v1p1beta1 - 0.171.0 + 0.172.0 proto-google-cloud-asset-v1p1beta1 PROTO library for proto-google-cloud-asset-v1p1beta1 com.google.cloud google-cloud-asset-parent - 3.71.0 + 3.72.0 diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/pom.xml b/java-asset/proto-google-cloud-asset-v1p2beta1/pom.xml index 274d9c1552a7..34fea2414b80 100644 --- a/java-asset/proto-google-cloud-asset-v1p2beta1/pom.xml +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-asset-v1p2beta1 - 0.171.0 + 0.172.0 proto-google-cloud-asset-v1p2beta1 PROTO library for proto-google-cloud-asset-v1p2beta1 com.google.cloud google-cloud-asset-parent - 3.71.0 + 3.72.0 diff --git a/java-asset/proto-google-cloud-asset-v1p5beta1/pom.xml b/java-asset/proto-google-cloud-asset-v1p5beta1/pom.xml index 8b52a0ff88ac..25b6e4969545 100644 --- a/java-asset/proto-google-cloud-asset-v1p5beta1/pom.xml +++ b/java-asset/proto-google-cloud-asset-v1p5beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-asset-v1p5beta1 - 0.171.0 + 0.172.0 proto-google-cloud-asset-v1p5beta1 PROTO library for proto-google-cloud-asset-v1p4beta1 com.google.cloud google-cloud-asset-parent - 3.71.0 + 3.72.0 diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/pom.xml b/java-asset/proto-google-cloud-asset-v1p7beta1/pom.xml index 39d9cca553af..41da4dd5f7de 100644 --- a/java-asset/proto-google-cloud-asset-v1p7beta1/pom.xml +++ b/java-asset/proto-google-cloud-asset-v1p7beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-asset-v1p7beta1 - 3.71.0 + 3.72.0 proto-google-cloud-asset-v1p7beta1 Proto library for google-cloud-asset com.google.cloud google-cloud-asset-parent - 3.71.0 + 3.72.0 diff --git a/java-assured-workloads/CHANGELOG.md b/java-assured-workloads/CHANGELOG.md index eb25f2f88070..9de997806f49 100644 --- a/java-assured-workloads/CHANGELOG.md +++ b/java-assured-workloads/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.68.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.67.0 (2025-06-25) ### Dependencies diff --git a/java-assured-workloads/README.md b/java-assured-workloads/README.md index 0d30f5d12d72..253bfb5c1d10 100644 --- a/java-assured-workloads/README.md +++ b/java-assured-workloads/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-assured-workloads - 2.66.0 + 2.67.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-assured-workloads:2.66.0' +implementation 'com.google.cloud:google-cloud-assured-workloads:2.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-assured-workloads" % "2.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-assured-workloads" % "2.67.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-assured-workloads/2.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-assured-workloads/google-cloud-assured-workloads-bom/pom.xml b/java-assured-workloads/google-cloud-assured-workloads-bom/pom.xml index 5fd72ed3c231..ac02223fe8e4 100644 --- a/java-assured-workloads/google-cloud-assured-workloads-bom/pom.xml +++ b/java-assured-workloads/google-cloud-assured-workloads-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-assured-workloads-bom - 2.67.0 + 2.68.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-assured-workloads - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-assured-workloads-v1beta1 - 0.79.0 + 0.80.0 com.google.api.grpc grpc-google-cloud-assured-workloads-v1 - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-cloud-assured-workloads-v1beta1 - 0.79.0 + 0.80.0 com.google.api.grpc proto-google-cloud-assured-workloads-v1 - 2.67.0 + 2.68.0 diff --git a/java-assured-workloads/google-cloud-assured-workloads/pom.xml b/java-assured-workloads/google-cloud-assured-workloads/pom.xml index 8f531b61ec42..ad9b1156cc2d 100644 --- a/java-assured-workloads/google-cloud-assured-workloads/pom.xml +++ b/java-assured-workloads/google-cloud-assured-workloads/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-assured-workloads - 2.67.0 + 2.68.0 jar Google Assured Workloads for Government allows you to secure your government workloads and accelerate your path to running compliant workloads on Google Cloud with Assured Workloads for Government. com.google.cloud google-cloud-assured-workloads-parent - 2.67.0 + 2.68.0 google-cloud-assured-workloads diff --git a/java-assured-workloads/grpc-google-cloud-assured-workloads-v1/pom.xml b/java-assured-workloads/grpc-google-cloud-assured-workloads-v1/pom.xml index 1994ed5ac2c6..d51c85ce6b49 100644 --- a/java-assured-workloads/grpc-google-cloud-assured-workloads-v1/pom.xml +++ b/java-assured-workloads/grpc-google-cloud-assured-workloads-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-assured-workloads-v1 - 2.67.0 + 2.68.0 grpc-google-cloud-assured-workloads-v1 GRPC library for google-cloud-assured-workloads com.google.cloud google-cloud-assured-workloads-parent - 2.67.0 + 2.68.0 diff --git a/java-assured-workloads/grpc-google-cloud-assured-workloads-v1beta1/pom.xml b/java-assured-workloads/grpc-google-cloud-assured-workloads-v1beta1/pom.xml index 6e22c1c9c7ed..a29b7972fe22 100644 --- a/java-assured-workloads/grpc-google-cloud-assured-workloads-v1beta1/pom.xml +++ b/java-assured-workloads/grpc-google-cloud-assured-workloads-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-assured-workloads-v1beta1 - 0.79.0 + 0.80.0 grpc-google-cloud-assured-workloads-v1beta1 GRPC library for google-cloud-assured-workloads com.google.cloud google-cloud-assured-workloads-parent - 2.67.0 + 2.68.0 diff --git a/java-assured-workloads/pom.xml b/java-assured-workloads/pom.xml index 521a98e2513a..24904c3af092 100644 --- a/java-assured-workloads/pom.xml +++ b/java-assured-workloads/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-assured-workloads-parent pom - 2.67.0 + 2.68.0 Google Assured Workloads for Government Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-assured-workloads - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-cloud-assured-workloads-v1 - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-assured-workloads-v1 - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-cloud-assured-workloads-v1beta1 - 0.79.0 + 0.80.0 com.google.api.grpc grpc-google-cloud-assured-workloads-v1beta1 - 0.79.0 + 0.80.0 diff --git a/java-assured-workloads/proto-google-cloud-assured-workloads-v1/pom.xml b/java-assured-workloads/proto-google-cloud-assured-workloads-v1/pom.xml index 1b67d859f6dc..b519836434c8 100644 --- a/java-assured-workloads/proto-google-cloud-assured-workloads-v1/pom.xml +++ b/java-assured-workloads/proto-google-cloud-assured-workloads-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-assured-workloads-v1 - 2.67.0 + 2.68.0 proto-google-cloud-assured-workloads-v1 Proto library for google-cloud-assured-workloads com.google.cloud google-cloud-assured-workloads-parent - 2.67.0 + 2.68.0 diff --git a/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/pom.xml b/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/pom.xml index 9483aeeaf80e..826fce9da8ce 100644 --- a/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/pom.xml +++ b/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-assured-workloads-v1beta1 - 0.79.0 + 0.80.0 proto-google-cloud-assured-workloads-v1beta1 Proto library for google-cloud-assured-workloads com.google.cloud google-cloud-assured-workloads-parent - 2.67.0 + 2.68.0 diff --git a/java-automl/CHANGELOG.md b/java-automl/CHANGELOG.md index df2952126766..d5d66fedde13 100644 --- a/java-automl/CHANGELOG.md +++ b/java-automl/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.68.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.67.0 (2025-06-25) ### Dependencies diff --git a/java-automl/README.md b/java-automl/README.md index 8ebe5bc31a1d..c04fb22b61e2 100644 --- a/java-automl/README.md +++ b/java-automl/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-automl - 2.66.0 + 2.67.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-automl:2.66.0' +implementation 'com.google.cloud:google-cloud-automl:2.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-automl" % "2.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-automl" % "2.67.0" ``` ## Authentication @@ -205,7 +205,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-automl/2.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-automl/google-cloud-automl-bom/pom.xml b/java-automl/google-cloud-automl-bom/pom.xml index 5ea8eb4ec809..4b84231a2999 100644 --- a/java-automl/google-cloud-automl-bom/pom.xml +++ b/java-automl/google-cloud-automl-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-automl-bom - 2.67.0 + 2.68.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-automl - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-automl-v1beta1 - 0.154.0 + 0.155.0 com.google.api.grpc grpc-google-cloud-automl-v1 - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-cloud-automl-v1beta1 - 0.154.0 + 0.155.0 com.google.api.grpc proto-google-cloud-automl-v1 - 2.67.0 + 2.68.0 diff --git a/java-automl/google-cloud-automl/pom.xml b/java-automl/google-cloud-automl/pom.xml index 310a4286f9b2..55bc5de40b62 100644 --- a/java-automl/google-cloud-automl/pom.xml +++ b/java-automl/google-cloud-automl/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-automl - 2.67.0 + 2.68.0 jar Google Cloud AutoML Java idiomatic client for Google Cloud Auto ML com.google.cloud google-cloud-automl-parent - 2.67.0 + 2.68.0 google-cloud-automl diff --git a/java-automl/grpc-google-cloud-automl-v1/pom.xml b/java-automl/grpc-google-cloud-automl-v1/pom.xml index 778e8f847749..e448c4e255e3 100644 --- a/java-automl/grpc-google-cloud-automl-v1/pom.xml +++ b/java-automl/grpc-google-cloud-automl-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-automl-v1 - 2.67.0 + 2.68.0 grpc-google-cloud-automl-v1 GRPC library for grpc-google-cloud-automl-v1 com.google.cloud google-cloud-automl-parent - 2.67.0 + 2.68.0 diff --git a/java-automl/grpc-google-cloud-automl-v1beta1/pom.xml b/java-automl/grpc-google-cloud-automl-v1beta1/pom.xml index bd7b62d992c3..8b89e6a78c8e 100644 --- a/java-automl/grpc-google-cloud-automl-v1beta1/pom.xml +++ b/java-automl/grpc-google-cloud-automl-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-automl-v1beta1 - 0.154.0 + 0.155.0 grpc-google-cloud-automl-v1beta1 GRPC library for grpc-google-cloud-automl-v1beta1 com.google.cloud google-cloud-automl-parent - 2.67.0 + 2.68.0 diff --git a/java-automl/pom.xml b/java-automl/pom.xml index a211c6675799..71cb7b85ecc1 100644 --- a/java-automl/pom.xml +++ b/java-automl/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-automl-parent pom - 2.67.0 + 2.68.0 Google Cloud AutoML Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-automl-v1beta1 - 0.154.0 + 0.155.0 com.google.api.grpc proto-google-cloud-automl-v1 - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-automl-v1beta1 - 0.154.0 + 0.155.0 com.google.api.grpc grpc-google-cloud-automl-v1 - 2.67.0 + 2.68.0 com.google.cloud google-cloud-automl - 2.67.0 + 2.68.0 diff --git a/java-automl/proto-google-cloud-automl-v1/pom.xml b/java-automl/proto-google-cloud-automl-v1/pom.xml index e05bd15ff99f..98c2b74a4614 100644 --- a/java-automl/proto-google-cloud-automl-v1/pom.xml +++ b/java-automl/proto-google-cloud-automl-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-automl-v1 - 2.67.0 + 2.68.0 proto-google-cloud-automl-v1 PROTO library for proto-google-cloud-automl-v1 com.google.cloud google-cloud-automl-parent - 2.67.0 + 2.68.0 diff --git a/java-automl/proto-google-cloud-automl-v1beta1/pom.xml b/java-automl/proto-google-cloud-automl-v1beta1/pom.xml index 02bccc26a022..ca2372aa54d1 100644 --- a/java-automl/proto-google-cloud-automl-v1beta1/pom.xml +++ b/java-automl/proto-google-cloud-automl-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-automl-v1beta1 - 0.154.0 + 0.155.0 proto-google-cloud-automl-v1beta1 PROTO library for proto-google-cloud-automl-v1beta1 com.google.cloud google-cloud-automl-parent - 2.67.0 + 2.68.0 diff --git a/java-backupdr/CHANGELOG.md b/java-backupdr/CHANGELOG.md index e23edaf5d36f..5c727ca00ec5 100644 --- a/java-backupdr/CHANGELOG.md +++ b/java-backupdr/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.27.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.26.0 (2025-06-25) ### Dependencies diff --git a/java-backupdr/README.md b/java-backupdr/README.md index 11c8fbdce446..3bc3f2e3bcbf 100644 --- a/java-backupdr/README.md +++ b/java-backupdr/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-backupdr - 0.25.0 + 0.26.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-backupdr:0.25.0' +implementation 'com.google.cloud:google-cloud-backupdr:0.26.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-backupdr" % "0.25.0" +libraryDependencies += "com.google.cloud" % "google-cloud-backupdr" % "0.26.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.25.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-backupdr/0.26.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/google-cloud-backupdr-bom/pom.xml b/java-backupdr/google-cloud-backupdr-bom/pom.xml index 0a2ddf91c462..ceb0b1325328 100644 --- a/java-backupdr/google-cloud-backupdr-bom/pom.xml +++ b/java-backupdr/google-cloud-backupdr-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-backupdr-bom - 0.26.0 + 0.27.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-backupdr - 0.26.0 + 0.27.0 com.google.api.grpc grpc-google-cloud-backupdr-v1 - 0.26.0 + 0.27.0 com.google.api.grpc proto-google-cloud-backupdr-v1 - 0.26.0 + 0.27.0 diff --git a/java-backupdr/google-cloud-backupdr/pom.xml b/java-backupdr/google-cloud-backupdr/pom.xml index 470adbf4b945..e8fe71ce4bd3 100644 --- a/java-backupdr/google-cloud-backupdr/pom.xml +++ b/java-backupdr/google-cloud-backupdr/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-backupdr - 0.26.0 + 0.27.0 jar Google Backup and DR Service API Backup and DR Service API Backup and DR Service is a powerful, centralized, cloud-first backup and disaster recovery solution for cloud-based and hybrid workloads. com.google.cloud google-cloud-backupdr-parent - 0.26.0 + 0.27.0 google-cloud-backupdr diff --git a/java-backupdr/grpc-google-cloud-backupdr-v1/pom.xml b/java-backupdr/grpc-google-cloud-backupdr-v1/pom.xml index 7c6a13e6f38f..258212d1efbf 100644 --- a/java-backupdr/grpc-google-cloud-backupdr-v1/pom.xml +++ b/java-backupdr/grpc-google-cloud-backupdr-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-backupdr-v1 - 0.26.0 + 0.27.0 grpc-google-cloud-backupdr-v1 GRPC library for google-cloud-backupdr com.google.cloud google-cloud-backupdr-parent - 0.26.0 + 0.27.0 diff --git a/java-backupdr/pom.xml b/java-backupdr/pom.xml index aae4df389730..018ec432c9f3 100644 --- a/java-backupdr/pom.xml +++ b/java-backupdr/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-backupdr-parent pom - 0.26.0 + 0.27.0 Google Backup and DR Service API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-backupdr - 0.26.0 + 0.27.0 com.google.api.grpc grpc-google-cloud-backupdr-v1 - 0.26.0 + 0.27.0 com.google.api.grpc proto-google-cloud-backupdr-v1 - 0.26.0 + 0.27.0 diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/pom.xml b/java-backupdr/proto-google-cloud-backupdr-v1/pom.xml index 5d8ca116da23..1ae529187935 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/pom.xml +++ b/java-backupdr/proto-google-cloud-backupdr-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-backupdr-v1 - 0.26.0 + 0.27.0 proto-google-cloud-backupdr-v1 Proto library for google-cloud-backupdr com.google.cloud google-cloud-backupdr-parent - 0.26.0 + 0.27.0 diff --git a/java-bare-metal-solution/CHANGELOG.md b/java-bare-metal-solution/CHANGELOG.md index e9b2ef4ddeaa..3991dfbe4522 100644 --- a/java-bare-metal-solution/CHANGELOG.md +++ b/java-bare-metal-solution/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.68.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.67.0 (2025-06-25) ### Dependencies diff --git a/java-bare-metal-solution/README.md b/java-bare-metal-solution/README.md index 7e88ff8075a0..d0116f8e64a8 100644 --- a/java-bare-metal-solution/README.md +++ b/java-bare-metal-solution/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bare-metal-solution - 0.66.0 + 0.67.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bare-metal-solution:0.66.0' +implementation 'com.google.cloud:google-cloud-bare-metal-solution:0.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bare-metal-solution" % "0.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bare-metal-solution" % "0.67.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bare-metal-solution.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bare-metal-solution/0.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bare-metal-solution/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-bare-metal-solution/google-cloud-bare-metal-solution-bom/pom.xml b/java-bare-metal-solution/google-cloud-bare-metal-solution-bom/pom.xml index 05910217f6b9..6b08c964e535 100644 --- a/java-bare-metal-solution/google-cloud-bare-metal-solution-bom/pom.xml +++ b/java-bare-metal-solution/google-cloud-bare-metal-solution-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-bare-metal-solution-bom - 0.67.0 + 0.68.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-bare-metal-solution - 0.67.0 + 0.68.0 com.google.api.grpc grpc-google-cloud-bare-metal-solution-v2 - 0.67.0 + 0.68.0 com.google.api.grpc proto-google-cloud-bare-metal-solution-v2 - 0.67.0 + 0.68.0 diff --git a/java-bare-metal-solution/google-cloud-bare-metal-solution/pom.xml b/java-bare-metal-solution/google-cloud-bare-metal-solution/pom.xml index d7660d4626c7..77586a8abeb4 100644 --- a/java-bare-metal-solution/google-cloud-bare-metal-solution/pom.xml +++ b/java-bare-metal-solution/google-cloud-bare-metal-solution/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-bare-metal-solution - 0.67.0 + 0.68.0 jar Google Bare Metal SOlution Bare Metal SOlution Bring your Oracle workloads to Google Cloud with Bare Metal Solution and jumpstart your cloud journey with minimal risk. com.google.cloud google-cloud-bare-metal-solution-parent - 0.67.0 + 0.68.0 google-cloud-bare-metal-solution diff --git a/java-bare-metal-solution/grpc-google-cloud-bare-metal-solution-v2/pom.xml b/java-bare-metal-solution/grpc-google-cloud-bare-metal-solution-v2/pom.xml index 09e6352652fc..d155112239f8 100644 --- a/java-bare-metal-solution/grpc-google-cloud-bare-metal-solution-v2/pom.xml +++ b/java-bare-metal-solution/grpc-google-cloud-bare-metal-solution-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bare-metal-solution-v2 - 0.67.0 + 0.68.0 grpc-google-cloud-bare-metal-solution-v2 GRPC library for google-cloud-bare-metal-solution com.google.cloud google-cloud-bare-metal-solution-parent - 0.67.0 + 0.68.0 diff --git a/java-bare-metal-solution/pom.xml b/java-bare-metal-solution/pom.xml index aa72f231cfaa..f61dcbacb59c 100644 --- a/java-bare-metal-solution/pom.xml +++ b/java-bare-metal-solution/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bare-metal-solution-parent pom - 0.67.0 + 0.68.0 Google Bare Metal SOlution Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-bare-metal-solution - 0.67.0 + 0.68.0 com.google.api.grpc grpc-google-cloud-bare-metal-solution-v2 - 0.67.0 + 0.68.0 com.google.api.grpc proto-google-cloud-bare-metal-solution-v2 - 0.67.0 + 0.68.0 diff --git a/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/pom.xml b/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/pom.xml index e2b77d48fbc1..136f2a1fc1a4 100644 --- a/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/pom.xml +++ b/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bare-metal-solution-v2 - 0.67.0 + 0.68.0 proto-google-cloud-bare-metal-solution-v2 Proto library for google-cloud-bare-metal-solution com.google.cloud google-cloud-bare-metal-solution-parent - 0.67.0 + 0.68.0 diff --git a/java-batch/CHANGELOG.md b/java-batch/CHANGELOG.md index c0eaf01cb377..62b450137b96 100644 --- a/java-batch/CHANGELOG.md +++ b/java-batch/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.68.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.67.0 (2025-06-25) ### Dependencies diff --git a/java-batch/README.md b/java-batch/README.md index 4fb62c805c64..591aaf7ee5d2 100644 --- a/java-batch/README.md +++ b/java-batch/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-batch - 0.66.0 + 0.67.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-batch:0.66.0' +implementation 'com.google.cloud:google-cloud-batch:0.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-batch" % "0.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-batch" % "0.67.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-batch.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-batch/0.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-batch/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-batch/google-cloud-batch-bom/pom.xml b/java-batch/google-cloud-batch-bom/pom.xml index b4beb9c36cce..e812a45bf452 100644 --- a/java-batch/google-cloud-batch-bom/pom.xml +++ b/java-batch/google-cloud-batch-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-batch-bom - 0.67.0 + 0.68.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-batch - 0.67.0 + 0.68.0 com.google.api.grpc grpc-google-cloud-batch-v1 - 0.67.0 + 0.68.0 com.google.api.grpc grpc-google-cloud-batch-v1alpha - 0.67.0 + 0.68.0 com.google.api.grpc proto-google-cloud-batch-v1 - 0.67.0 + 0.68.0 com.google.api.grpc proto-google-cloud-batch-v1alpha - 0.67.0 + 0.68.0 diff --git a/java-batch/google-cloud-batch/pom.xml b/java-batch/google-cloud-batch/pom.xml index 1c3c4c7af97f..86c79eab770e 100644 --- a/java-batch/google-cloud-batch/pom.xml +++ b/java-batch/google-cloud-batch/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-batch - 0.67.0 + 0.68.0 jar Google Google Cloud Batch Google Cloud Batch n/a com.google.cloud google-cloud-batch-parent - 0.67.0 + 0.68.0 google-cloud-batch diff --git a/java-batch/grpc-google-cloud-batch-v1/pom.xml b/java-batch/grpc-google-cloud-batch-v1/pom.xml index f84a3a1c9b19..7c15815b6d0f 100644 --- a/java-batch/grpc-google-cloud-batch-v1/pom.xml +++ b/java-batch/grpc-google-cloud-batch-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-batch-v1 - 0.67.0 + 0.68.0 grpc-google-cloud-batch-v1 GRPC library for google-cloud-batch com.google.cloud google-cloud-batch-parent - 0.67.0 + 0.68.0 diff --git a/java-batch/grpc-google-cloud-batch-v1alpha/pom.xml b/java-batch/grpc-google-cloud-batch-v1alpha/pom.xml index f2a7a3081109..31da4ff3abfe 100644 --- a/java-batch/grpc-google-cloud-batch-v1alpha/pom.xml +++ b/java-batch/grpc-google-cloud-batch-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-batch-v1alpha - 0.67.0 + 0.68.0 grpc-google-cloud-batch-v1alpha GRPC library for google-cloud-batch com.google.cloud google-cloud-batch-parent - 0.67.0 + 0.68.0 diff --git a/java-batch/pom.xml b/java-batch/pom.xml index 6497fb587ca8..e4f79dd50472 100644 --- a/java-batch/pom.xml +++ b/java-batch/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-batch-parent pom - 0.67.0 + 0.68.0 Google Google Cloud Batch Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-batch - 0.67.0 + 0.68.0 com.google.api.grpc proto-google-cloud-batch-v1alpha - 0.67.0 + 0.68.0 com.google.api.grpc grpc-google-cloud-batch-v1alpha - 0.67.0 + 0.68.0 com.google.api.grpc grpc-google-cloud-batch-v1 - 0.67.0 + 0.68.0 com.google.api.grpc proto-google-cloud-batch-v1 - 0.67.0 + 0.68.0 diff --git a/java-batch/proto-google-cloud-batch-v1/pom.xml b/java-batch/proto-google-cloud-batch-v1/pom.xml index 3f665a1ef057..b56e006a1c4b 100644 --- a/java-batch/proto-google-cloud-batch-v1/pom.xml +++ b/java-batch/proto-google-cloud-batch-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-batch-v1 - 0.67.0 + 0.68.0 proto-google-cloud-batch-v1 Proto library for google-cloud-batch com.google.cloud google-cloud-batch-parent - 0.67.0 + 0.68.0 diff --git a/java-batch/proto-google-cloud-batch-v1alpha/pom.xml b/java-batch/proto-google-cloud-batch-v1alpha/pom.xml index 3c55e322ae27..eef1547f39a8 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/pom.xml +++ b/java-batch/proto-google-cloud-batch-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-batch-v1alpha - 0.67.0 + 0.68.0 proto-google-cloud-batch-v1alpha Proto library for google-cloud-batch com.google.cloud google-cloud-batch-parent - 0.67.0 + 0.68.0 diff --git a/java-beyondcorp-appconnections/CHANGELOG.md b/java-beyondcorp-appconnections/CHANGELOG.md index be683be9f86c..304df5ba76a2 100644 --- a/java-beyondcorp-appconnections/CHANGELOG.md +++ b/java-beyondcorp-appconnections/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.66.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.65.0 (2025-06-25) ### Dependencies diff --git a/java-beyondcorp-appconnections/README.md b/java-beyondcorp-appconnections/README.md index 4b5b3da88877..4e4b0823e5de 100644 --- a/java-beyondcorp-appconnections/README.md +++ b/java-beyondcorp-appconnections/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-appconnections - 0.64.0 + 0.65.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-appconnections:0.64.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-appconnections:0.65.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnections" % "0.64.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnections" % "0.65.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-beyondcorp-appconnections.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnections/0.64.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnections/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-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections-bom/pom.xml b/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections-bom/pom.xml index 438269d751c7..71bca9042003 100644 --- a/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections-bom/pom.xml +++ b/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-appconnections-bom - 0.65.0 + 0.66.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-beyondcorp-appconnections - 0.65.0 + 0.66.0 com.google.api.grpc grpc-google-cloud-beyondcorp-appconnections-v1 - 0.65.0 + 0.66.0 com.google.api.grpc proto-google-cloud-beyondcorp-appconnections-v1 - 0.65.0 + 0.66.0 diff --git a/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/pom.xml b/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/pom.xml index 14c054616625..cfd7923649e1 100644 --- a/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/pom.xml +++ b/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-appconnections - 0.65.0 + 0.66.0 jar Google BeyondCorp AppConnections BeyondCorp AppConnections 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. com.google.cloud google-cloud-beyondcorp-appconnections-parent - 0.65.0 + 0.66.0 google-cloud-beyondcorp-appconnections diff --git a/java-beyondcorp-appconnections/grpc-google-cloud-beyondcorp-appconnections-v1/pom.xml b/java-beyondcorp-appconnections/grpc-google-cloud-beyondcorp-appconnections-v1/pom.xml index 5d3692e0f9f5..09e502080eee 100644 --- a/java-beyondcorp-appconnections/grpc-google-cloud-beyondcorp-appconnections-v1/pom.xml +++ b/java-beyondcorp-appconnections/grpc-google-cloud-beyondcorp-appconnections-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-beyondcorp-appconnections-v1 - 0.65.0 + 0.66.0 grpc-google-cloud-beyondcorp-appconnections-v1 GRPC library for google-cloud-beyondcorp-appconnections com.google.cloud google-cloud-beyondcorp-appconnections-parent - 0.65.0 + 0.66.0 diff --git a/java-beyondcorp-appconnections/pom.xml b/java-beyondcorp-appconnections/pom.xml index a99595b292d4..55f4f8079556 100644 --- a/java-beyondcorp-appconnections/pom.xml +++ b/java-beyondcorp-appconnections/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-beyondcorp-appconnections-parent pom - 0.65.0 + 0.66.0 Google BeyondCorp AppConnections Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-beyondcorp-appconnections - 0.65.0 + 0.66.0 com.google.api.grpc grpc-google-cloud-beyondcorp-appconnections-v1 - 0.65.0 + 0.66.0 com.google.api.grpc proto-google-cloud-beyondcorp-appconnections-v1 - 0.65.0 + 0.66.0 diff --git a/java-beyondcorp-appconnections/proto-google-cloud-beyondcorp-appconnections-v1/pom.xml b/java-beyondcorp-appconnections/proto-google-cloud-beyondcorp-appconnections-v1/pom.xml index baf55dcecf7b..c4ac4a89238e 100644 --- a/java-beyondcorp-appconnections/proto-google-cloud-beyondcorp-appconnections-v1/pom.xml +++ b/java-beyondcorp-appconnections/proto-google-cloud-beyondcorp-appconnections-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-beyondcorp-appconnections-v1 - 0.65.0 + 0.66.0 proto-google-cloud-beyondcorp-appconnections-v1 Proto library for google-cloud-beyondcorp-appconnections com.google.cloud google-cloud-beyondcorp-appconnections-parent - 0.65.0 + 0.66.0 diff --git a/java-beyondcorp-appconnectors/CHANGELOG.md b/java-beyondcorp-appconnectors/CHANGELOG.md index 6197c5f8e5ef..1dc385a0cbf2 100644 --- a/java-beyondcorp-appconnectors/CHANGELOG.md +++ b/java-beyondcorp-appconnectors/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.66.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.65.0 (2025-06-25) ### Dependencies diff --git a/java-beyondcorp-appconnectors/README.md b/java-beyondcorp-appconnectors/README.md index 274c49cfcb0a..531203a06c7f 100644 --- a/java-beyondcorp-appconnectors/README.md +++ b/java-beyondcorp-appconnectors/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-appconnectors - 0.64.0 + 0.65.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-appconnectors:0.64.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-appconnectors:0.65.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnectors" % "0.64.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnectors" % "0.65.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-beyondcorp-appconnectors.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnectors/0.64.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnectors/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-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors-bom/pom.xml b/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors-bom/pom.xml index 3a04f105f0f0..b733f313e7af 100644 --- a/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors-bom/pom.xml +++ b/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-appconnectors-bom - 0.65.0 + 0.66.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-beyondcorp-appconnectors - 0.65.0 + 0.66.0 com.google.api.grpc grpc-google-cloud-beyondcorp-appconnectors-v1 - 0.65.0 + 0.66.0 com.google.api.grpc proto-google-cloud-beyondcorp-appconnectors-v1 - 0.65.0 + 0.66.0 diff --git a/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/pom.xml b/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/pom.xml index e247f9e81b65..0fb0f4cc3947 100644 --- a/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/pom.xml +++ b/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-appconnectors - 0.65.0 + 0.66.0 jar Google BeyondCorp AppConnectors BeyondCorp AppConnectors provides methods to manage (create/read/update/delete) BeyondCorp AppConnectors. com.google.cloud google-cloud-beyondcorp-appconnectors-parent - 0.65.0 + 0.66.0 google-cloud-beyondcorp-appconnectors diff --git a/java-beyondcorp-appconnectors/grpc-google-cloud-beyondcorp-appconnectors-v1/pom.xml b/java-beyondcorp-appconnectors/grpc-google-cloud-beyondcorp-appconnectors-v1/pom.xml index fa99705a2a9d..488cfa5443a3 100644 --- a/java-beyondcorp-appconnectors/grpc-google-cloud-beyondcorp-appconnectors-v1/pom.xml +++ b/java-beyondcorp-appconnectors/grpc-google-cloud-beyondcorp-appconnectors-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-beyondcorp-appconnectors-v1 - 0.65.0 + 0.66.0 grpc-google-cloud-beyondcorp-appconnectors-v1 GRPC library for google-cloud-beyondcorp-appconnectors com.google.cloud google-cloud-beyondcorp-appconnectors-parent - 0.65.0 + 0.66.0 diff --git a/java-beyondcorp-appconnectors/pom.xml b/java-beyondcorp-appconnectors/pom.xml index 4326e66eae7c..2e7efa704d3e 100644 --- a/java-beyondcorp-appconnectors/pom.xml +++ b/java-beyondcorp-appconnectors/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-beyondcorp-appconnectors-parent pom - 0.65.0 + 0.66.0 Google BeyondCorp AppConnectors Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-beyondcorp-appconnectors - 0.65.0 + 0.66.0 com.google.api.grpc grpc-google-cloud-beyondcorp-appconnectors-v1 - 0.65.0 + 0.66.0 com.google.api.grpc proto-google-cloud-beyondcorp-appconnectors-v1 - 0.65.0 + 0.66.0 diff --git a/java-beyondcorp-appconnectors/proto-google-cloud-beyondcorp-appconnectors-v1/pom.xml b/java-beyondcorp-appconnectors/proto-google-cloud-beyondcorp-appconnectors-v1/pom.xml index 2bf8cee417a3..abf7399b957f 100644 --- a/java-beyondcorp-appconnectors/proto-google-cloud-beyondcorp-appconnectors-v1/pom.xml +++ b/java-beyondcorp-appconnectors/proto-google-cloud-beyondcorp-appconnectors-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-beyondcorp-appconnectors-v1 - 0.65.0 + 0.66.0 proto-google-cloud-beyondcorp-appconnectors-v1 Proto library for google-cloud-beyondcorp-appconnectors com.google.cloud google-cloud-beyondcorp-appconnectors-parent - 0.65.0 + 0.66.0 diff --git a/java-beyondcorp-appgateways/CHANGELOG.md b/java-beyondcorp-appgateways/CHANGELOG.md index fd734877818d..a4acaa9bcadc 100644 --- a/java-beyondcorp-appgateways/CHANGELOG.md +++ b/java-beyondcorp-appgateways/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.66.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.65.0 (2025-06-25) ### Dependencies diff --git a/java-beyondcorp-appgateways/README.md b/java-beyondcorp-appgateways/README.md index 959ffb2afe5b..ce963ddb059d 100644 --- a/java-beyondcorp-appgateways/README.md +++ b/java-beyondcorp-appgateways/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-appgateways - 0.64.0 + 0.65.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-appgateways:0.64.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-appgateways:0.65.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appgateways" % "0.64.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appgateways" % "0.65.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-beyondcorp-appgateways.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appgateways/0.64.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appgateways/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-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways-bom/pom.xml b/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways-bom/pom.xml index 583879eaf6b2..ed171f17d13b 100644 --- a/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways-bom/pom.xml +++ b/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-appgateways-bom - 0.65.0 + 0.66.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-beyondcorp-appgateways - 0.65.0 + 0.66.0 com.google.api.grpc grpc-google-cloud-beyondcorp-appgateways-v1 - 0.65.0 + 0.66.0 com.google.api.grpc proto-google-cloud-beyondcorp-appgateways-v1 - 0.65.0 + 0.66.0 diff --git a/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/pom.xml b/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/pom.xml index ae1248aba91c..67f954621639 100644 --- a/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/pom.xml +++ b/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-appgateways - 0.65.0 + 0.66.0 jar Google BeyondCorp AppGateways BeyondCorp AppGateways A zero trust solution that enables secure access to applications and resources, and offers integrated threat and data protection. com.google.cloud google-cloud-beyondcorp-appgateways-parent - 0.65.0 + 0.66.0 google-cloud-beyondcorp-appgateways diff --git a/java-beyondcorp-appgateways/grpc-google-cloud-beyondcorp-appgateways-v1/pom.xml b/java-beyondcorp-appgateways/grpc-google-cloud-beyondcorp-appgateways-v1/pom.xml index 65c85e233e9b..ea71c0d36d2c 100644 --- a/java-beyondcorp-appgateways/grpc-google-cloud-beyondcorp-appgateways-v1/pom.xml +++ b/java-beyondcorp-appgateways/grpc-google-cloud-beyondcorp-appgateways-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-beyondcorp-appgateways-v1 - 0.65.0 + 0.66.0 grpc-google-cloud-beyondcorp-appgateways-v1 GRPC library for google-cloud-beyondcorp-appgateways com.google.cloud google-cloud-beyondcorp-appgateways-parent - 0.65.0 + 0.66.0 diff --git a/java-beyondcorp-appgateways/pom.xml b/java-beyondcorp-appgateways/pom.xml index b1b5c59b9352..91d6e9a6785e 100644 --- a/java-beyondcorp-appgateways/pom.xml +++ b/java-beyondcorp-appgateways/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-beyondcorp-appgateways-parent pom - 0.65.0 + 0.66.0 Google BeyondCorp AppGateways Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-beyondcorp-appgateways - 0.65.0 + 0.66.0 com.google.api.grpc grpc-google-cloud-beyondcorp-appgateways-v1 - 0.65.0 + 0.66.0 com.google.api.grpc proto-google-cloud-beyondcorp-appgateways-v1 - 0.65.0 + 0.66.0 diff --git a/java-beyondcorp-appgateways/proto-google-cloud-beyondcorp-appgateways-v1/pom.xml b/java-beyondcorp-appgateways/proto-google-cloud-beyondcorp-appgateways-v1/pom.xml index abd2c9bc2f82..c90e9abb7b65 100644 --- a/java-beyondcorp-appgateways/proto-google-cloud-beyondcorp-appgateways-v1/pom.xml +++ b/java-beyondcorp-appgateways/proto-google-cloud-beyondcorp-appgateways-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-beyondcorp-appgateways-v1 - 0.65.0 + 0.66.0 proto-google-cloud-beyondcorp-appgateways-v1 Proto library for google-cloud-beyondcorp-appgateways com.google.cloud google-cloud-beyondcorp-appgateways-parent - 0.65.0 + 0.66.0 diff --git a/java-beyondcorp-clientconnectorservices/CHANGELOG.md b/java-beyondcorp-clientconnectorservices/CHANGELOG.md index ffc019cfc3d4..1f428e07a7b1 100644 --- a/java-beyondcorp-clientconnectorservices/CHANGELOG.md +++ b/java-beyondcorp-clientconnectorservices/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.66.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.65.0 (2025-06-25) ### Dependencies diff --git a/java-beyondcorp-clientconnectorservices/README.md b/java-beyondcorp-clientconnectorservices/README.md index bf55243c3861..dc6127bb2623 100644 --- a/java-beyondcorp-clientconnectorservices/README.md +++ b/java-beyondcorp-clientconnectorservices/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-clientconnectorservices - 0.64.0 + 0.65.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-clientconnectorservices:0.64.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-clientconnectorservices:0.65.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientconnectorservices" % "0.64.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientconnectorservices" % "0.65.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-beyondcorp-clientconnectorservices.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientconnectorservices/0.64.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientconnectorservices/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-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices-bom/pom.xml b/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices-bom/pom.xml index 06c112447324..34b16373c3fc 100644 --- a/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices-bom/pom.xml +++ b/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-clientconnectorservices-bom - 0.65.0 + 0.66.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-beyondcorp-clientconnectorservices - 0.65.0 + 0.66.0 com.google.api.grpc grpc-google-cloud-beyondcorp-clientconnectorservices-v1 - 0.65.0 + 0.66.0 com.google.api.grpc proto-google-cloud-beyondcorp-clientconnectorservices-v1 - 0.65.0 + 0.66.0 diff --git a/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/pom.xml b/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/pom.xml index 293eb270456a..79048ca9f938 100644 --- a/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/pom.xml +++ b/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-clientconnectorservices - 0.65.0 + 0.66.0 jar Google BeyondCorp ClientConnectorServices BeyondCorp ClientConnectorServices A zero trust solution that enables secure access to applications and resources, and offers integrated threat and data protection. com.google.cloud google-cloud-beyondcorp-clientconnectorservices-parent - 0.65.0 + 0.66.0 google-cloud-beyondcorp-clientconnectorservices diff --git a/java-beyondcorp-clientconnectorservices/grpc-google-cloud-beyondcorp-clientconnectorservices-v1/pom.xml b/java-beyondcorp-clientconnectorservices/grpc-google-cloud-beyondcorp-clientconnectorservices-v1/pom.xml index 885e8e7846ba..17a218ab3347 100644 --- a/java-beyondcorp-clientconnectorservices/grpc-google-cloud-beyondcorp-clientconnectorservices-v1/pom.xml +++ b/java-beyondcorp-clientconnectorservices/grpc-google-cloud-beyondcorp-clientconnectorservices-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-beyondcorp-clientconnectorservices-v1 - 0.65.0 + 0.66.0 grpc-google-cloud-beyondcorp-clientconnectorservices-v1 GRPC library for google-cloud-beyondcorp-clientconnectorservices com.google.cloud google-cloud-beyondcorp-clientconnectorservices-parent - 0.65.0 + 0.66.0 diff --git a/java-beyondcorp-clientconnectorservices/pom.xml b/java-beyondcorp-clientconnectorservices/pom.xml index 9b09c5022968..d01160146b91 100644 --- a/java-beyondcorp-clientconnectorservices/pom.xml +++ b/java-beyondcorp-clientconnectorservices/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-beyondcorp-clientconnectorservices-parent pom - 0.65.0 + 0.66.0 Google BeyondCorp ClientConnectorServices Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-beyondcorp-clientconnectorservices - 0.65.0 + 0.66.0 com.google.api.grpc grpc-google-cloud-beyondcorp-clientconnectorservices-v1 - 0.65.0 + 0.66.0 com.google.api.grpc proto-google-cloud-beyondcorp-clientconnectorservices-v1 - 0.65.0 + 0.66.0 diff --git a/java-beyondcorp-clientconnectorservices/proto-google-cloud-beyondcorp-clientconnectorservices-v1/pom.xml b/java-beyondcorp-clientconnectorservices/proto-google-cloud-beyondcorp-clientconnectorservices-v1/pom.xml index c0ce05034536..f5e75b341e55 100644 --- a/java-beyondcorp-clientconnectorservices/proto-google-cloud-beyondcorp-clientconnectorservices-v1/pom.xml +++ b/java-beyondcorp-clientconnectorservices/proto-google-cloud-beyondcorp-clientconnectorservices-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-beyondcorp-clientconnectorservices-v1 - 0.65.0 + 0.66.0 proto-google-cloud-beyondcorp-clientconnectorservices-v1 Proto library for google-cloud-beyondcorp-clientconnectorservices com.google.cloud google-cloud-beyondcorp-clientconnectorservices-parent - 0.65.0 + 0.66.0 diff --git a/java-beyondcorp-clientgateways/CHANGELOG.md b/java-beyondcorp-clientgateways/CHANGELOG.md index 26c442fbf427..35ea8f87e557 100644 --- a/java-beyondcorp-clientgateways/CHANGELOG.md +++ b/java-beyondcorp-clientgateways/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.66.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.65.0 (2025-06-25) ### Dependencies diff --git a/java-beyondcorp-clientgateways/README.md b/java-beyondcorp-clientgateways/README.md index 5f9bbcab9878..d4740f8d41b5 100644 --- a/java-beyondcorp-clientgateways/README.md +++ b/java-beyondcorp-clientgateways/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-clientgateways - 0.64.0 + 0.65.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-clientgateways:0.64.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-clientgateways:0.65.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientgateways" % "0.64.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientgateways" % "0.65.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-beyondcorp-clientgateways.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientgateways/0.64.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientgateways/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-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways-bom/pom.xml b/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways-bom/pom.xml index 9d9f6304f481..b99f3c4db3b2 100644 --- a/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways-bom/pom.xml +++ b/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-clientgateways-bom - 0.65.0 + 0.66.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-beyondcorp-clientgateways - 0.65.0 + 0.66.0 com.google.api.grpc grpc-google-cloud-beyondcorp-clientgateways-v1 - 0.65.0 + 0.66.0 com.google.api.grpc proto-google-cloud-beyondcorp-clientgateways-v1 - 0.65.0 + 0.66.0 diff --git a/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/pom.xml b/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/pom.xml index 497883815593..097542a3a1aa 100644 --- a/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/pom.xml +++ b/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-clientgateways - 0.65.0 + 0.66.0 jar Google BeyondCorp ClientGateways BeyondCorp ClientGateways A zero trust solution that enables secure access to applications and resources, and offers integrated threat and data protection. com.google.cloud google-cloud-beyondcorp-clientgateways-parent - 0.65.0 + 0.66.0 google-cloud-beyondcorp-clientgateways diff --git a/java-beyondcorp-clientgateways/grpc-google-cloud-beyondcorp-clientgateways-v1/pom.xml b/java-beyondcorp-clientgateways/grpc-google-cloud-beyondcorp-clientgateways-v1/pom.xml index e7a271c9521d..51b52e863768 100644 --- a/java-beyondcorp-clientgateways/grpc-google-cloud-beyondcorp-clientgateways-v1/pom.xml +++ b/java-beyondcorp-clientgateways/grpc-google-cloud-beyondcorp-clientgateways-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-beyondcorp-clientgateways-v1 - 0.65.0 + 0.66.0 grpc-google-cloud-beyondcorp-clientgateways-v1 GRPC library for google-cloud-beyondcorp-clientgateways com.google.cloud google-cloud-beyondcorp-clientgateways-parent - 0.65.0 + 0.66.0 diff --git a/java-beyondcorp-clientgateways/pom.xml b/java-beyondcorp-clientgateways/pom.xml index b68bbf2f48e2..39a28a400be2 100644 --- a/java-beyondcorp-clientgateways/pom.xml +++ b/java-beyondcorp-clientgateways/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-beyondcorp-clientgateways-parent pom - 0.65.0 + 0.66.0 Google BeyondCorp ClientGateways Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-beyondcorp-clientgateways - 0.65.0 + 0.66.0 com.google.api.grpc grpc-google-cloud-beyondcorp-clientgateways-v1 - 0.65.0 + 0.66.0 com.google.api.grpc proto-google-cloud-beyondcorp-clientgateways-v1 - 0.65.0 + 0.66.0 diff --git a/java-beyondcorp-clientgateways/proto-google-cloud-beyondcorp-clientgateways-v1/pom.xml b/java-beyondcorp-clientgateways/proto-google-cloud-beyondcorp-clientgateways-v1/pom.xml index 3cf825f8c090..88aa212cdb3f 100644 --- a/java-beyondcorp-clientgateways/proto-google-cloud-beyondcorp-clientgateways-v1/pom.xml +++ b/java-beyondcorp-clientgateways/proto-google-cloud-beyondcorp-clientgateways-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-beyondcorp-clientgateways-v1 - 0.65.0 + 0.66.0 proto-google-cloud-beyondcorp-clientgateways-v1 Proto library for google-cloud-beyondcorp-clientgateways com.google.cloud google-cloud-beyondcorp-clientgateways-parent - 0.65.0 + 0.66.0 diff --git a/java-biglake/CHANGELOG.md b/java-biglake/CHANGELOG.md index 641614ef1b76..5affa0d4978a 100644 --- a/java-biglake/CHANGELOG.md +++ b/java-biglake/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.56.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.55.0 (2025-06-25) ### Dependencies diff --git a/java-biglake/README.md b/java-biglake/README.md index ce67beeea9f3..757336477c18 100644 --- a/java-biglake/README.md +++ b/java-biglake/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-biglake - 0.54.0 + 0.55.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-biglake:0.54.0' +implementation 'com.google.cloud:google-cloud-biglake:0.55.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-biglake" % "0.54.0" +libraryDependencies += "com.google.cloud" % "google-cloud-biglake" % "0.55.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-biglake.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-biglake/0.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-biglake/0.55.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/google-cloud-biglake-bom/pom.xml b/java-biglake/google-cloud-biglake-bom/pom.xml index 05d8eaf15c4d..023e94e3e96b 100644 --- a/java-biglake/google-cloud-biglake-bom/pom.xml +++ b/java-biglake/google-cloud-biglake-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-biglake-bom - 0.55.0 + 0.56.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-biglake - 0.55.0 + 0.56.0 com.google.api.grpc grpc-google-cloud-biglake-v1alpha1 - 0.55.0 + 0.56.0 com.google.api.grpc grpc-google-cloud-biglake-v1 - 0.55.0 + 0.56.0 com.google.api.grpc proto-google-cloud-biglake-v1alpha1 - 0.55.0 + 0.56.0 com.google.api.grpc proto-google-cloud-biglake-v1 - 0.55.0 + 0.56.0 diff --git a/java-biglake/google-cloud-biglake/pom.xml b/java-biglake/google-cloud-biglake/pom.xml index c67cb559b6af..3d4ff162d5b4 100644 --- a/java-biglake/google-cloud-biglake/pom.xml +++ b/java-biglake/google-cloud-biglake/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-biglake - 0.55.0 + 0.56.0 jar Google BigLake BigLake 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. com.google.cloud google-cloud-biglake-parent - 0.55.0 + 0.56.0 google-cloud-biglake diff --git a/java-biglake/grpc-google-cloud-biglake-v1/pom.xml b/java-biglake/grpc-google-cloud-biglake-v1/pom.xml index fee5f691a3eb..6b15a8a78c78 100644 --- a/java-biglake/grpc-google-cloud-biglake-v1/pom.xml +++ b/java-biglake/grpc-google-cloud-biglake-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-biglake-v1 - 0.55.0 + 0.56.0 grpc-google-cloud-biglake-v1 GRPC library for google-cloud-biglake com.google.cloud google-cloud-biglake-parent - 0.55.0 + 0.56.0 diff --git a/java-biglake/grpc-google-cloud-biglake-v1alpha1/pom.xml b/java-biglake/grpc-google-cloud-biglake-v1alpha1/pom.xml index 9a96a4699500..8ed47e2caa24 100644 --- a/java-biglake/grpc-google-cloud-biglake-v1alpha1/pom.xml +++ b/java-biglake/grpc-google-cloud-biglake-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-biglake-v1alpha1 - 0.55.0 + 0.56.0 grpc-google-cloud-biglake-v1alpha1 GRPC library for google-cloud-biglake com.google.cloud google-cloud-biglake-parent - 0.55.0 + 0.56.0 diff --git a/java-biglake/pom.xml b/java-biglake/pom.xml index 2bd069ff64c4..30189cbb4a76 100644 --- a/java-biglake/pom.xml +++ b/java-biglake/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-biglake-parent pom - 0.55.0 + 0.56.0 Google BigLake Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-biglake - 0.55.0 + 0.56.0 com.google.api.grpc proto-google-cloud-biglake-v1 - 0.55.0 + 0.56.0 com.google.api.grpc grpc-google-cloud-biglake-v1 - 0.55.0 + 0.56.0 com.google.api.grpc grpc-google-cloud-biglake-v1alpha1 - 0.55.0 + 0.56.0 com.google.api.grpc proto-google-cloud-biglake-v1alpha1 - 0.55.0 + 0.56.0 diff --git a/java-biglake/proto-google-cloud-biglake-v1/pom.xml b/java-biglake/proto-google-cloud-biglake-v1/pom.xml index 64a115dcc49b..7eb532b01d76 100644 --- a/java-biglake/proto-google-cloud-biglake-v1/pom.xml +++ b/java-biglake/proto-google-cloud-biglake-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-biglake-v1 - 0.55.0 + 0.56.0 proto-google-cloud-biglake-v1 Proto library for google-cloud-biglake com.google.cloud google-cloud-biglake-parent - 0.55.0 + 0.56.0 diff --git a/java-biglake/proto-google-cloud-biglake-v1alpha1/pom.xml b/java-biglake/proto-google-cloud-biglake-v1alpha1/pom.xml index c58d18427006..50e3ca63f945 100644 --- a/java-biglake/proto-google-cloud-biglake-v1alpha1/pom.xml +++ b/java-biglake/proto-google-cloud-biglake-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-biglake-v1alpha1 - 0.55.0 + 0.56.0 proto-google-cloud-biglake-v1alpha1 Proto library for google-cloud-biglake com.google.cloud google-cloud-biglake-parent - 0.55.0 + 0.56.0 diff --git a/java-bigquery-data-exchange/CHANGELOG.md b/java-bigquery-data-exchange/CHANGELOG.md index 823aa07312b8..13417d3a0ab8 100644 --- a/java-bigquery-data-exchange/CHANGELOG.md +++ b/java-bigquery-data-exchange/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.63.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.62.0 (2025-06-25) ### Dependencies diff --git a/java-bigquery-data-exchange/README.md b/java-bigquery-data-exchange/README.md index 2a9f6705a937..4ae0be181fb2 100644 --- a/java-bigquery-data-exchange/README.md +++ b/java-bigquery-data-exchange/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquery-data-exchange - 2.61.0 + 2.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquery-data-exchange:2.61.0' +implementation 'com.google.cloud:google-cloud-bigquery-data-exchange:2.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquery-data-exchange" % "2.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquery-data-exchange" % "2.62.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquery-data-exchange.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery-data-exchange/2.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery-data-exchange/2.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-bigquery-data-exchange/google-cloud-bigquery-data-exchange-bom/pom.xml b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange-bom/pom.xml index b639a0ba5638..585b70fde334 100644 --- a/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange-bom/pom.xml +++ b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-bigquery-data-exchange-bom - 2.62.0 + 2.63.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-bigquery-data-exchange - 2.62.0 + 2.63.0 com.google.api.grpc grpc-google-cloud-bigquery-data-exchange-v1beta1 - 2.62.0 + 2.63.0 com.google.api.grpc proto-google-cloud-bigquery-data-exchange-v1beta1 - 2.62.0 + 2.63.0 diff --git a/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/pom.xml b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/pom.xml index 5b8c46a8620b..364d89912b91 100644 --- a/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/pom.xml +++ b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-bigquery-data-exchange - 2.62.0 + 2.63.0 jar Google Analytics Hub Analytics Hub is a data exchange that allows you to efficiently and securely exchange data assets across organizations to address challenges of data reliability and cost. com.google.cloud google-cloud-bigquery-data-exchange-parent - 2.62.0 + 2.63.0 google-cloud-bigquery-data-exchange diff --git a/java-bigquery-data-exchange/grpc-google-cloud-bigquery-data-exchange-v1beta1/pom.xml b/java-bigquery-data-exchange/grpc-google-cloud-bigquery-data-exchange-v1beta1/pom.xml index 48ca59781007..2e1a55f89bd3 100644 --- a/java-bigquery-data-exchange/grpc-google-cloud-bigquery-data-exchange-v1beta1/pom.xml +++ b/java-bigquery-data-exchange/grpc-google-cloud-bigquery-data-exchange-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquery-data-exchange-v1beta1 - 2.62.0 + 2.63.0 grpc-google-cloud-bigquery-data-exchange-v1beta1 GRPC library for google-cloud-bigquery-data-exchange com.google.cloud google-cloud-bigquery-data-exchange-parent - 2.62.0 + 2.63.0 diff --git a/java-bigquery-data-exchange/pom.xml b/java-bigquery-data-exchange/pom.xml index e3fc240e386b..98ede9caaab2 100644 --- a/java-bigquery-data-exchange/pom.xml +++ b/java-bigquery-data-exchange/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bigquery-data-exchange-parent pom - 2.62.0 + 2.63.0 Google Analytics Hub Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-bigquery-data-exchange - 2.62.0 + 2.63.0 com.google.api.grpc grpc-google-cloud-bigquery-data-exchange-v1beta1 - 2.62.0 + 2.63.0 com.google.api.grpc proto-google-cloud-bigquery-data-exchange-v1beta1 - 2.62.0 + 2.63.0 diff --git a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/pom.xml b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/pom.xml index ff8fee66f810..862e61f186d1 100644 --- a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/pom.xml +++ b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquery-data-exchange-v1beta1 - 2.62.0 + 2.63.0 proto-google-cloud-bigquery-data-exchange-v1beta1 Proto library for google-cloud-bigquery-data-exchange com.google.cloud google-cloud-bigquery-data-exchange-parent - 2.62.0 + 2.63.0 diff --git a/java-bigqueryconnection/CHANGELOG.md b/java-bigqueryconnection/CHANGELOG.md index 2de5b9f0d311..66e881ca2621 100644 --- a/java-bigqueryconnection/CHANGELOG.md +++ b/java-bigqueryconnection/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.70.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.69.0 (2025-06-25) ### Dependencies diff --git a/java-bigqueryconnection/README.md b/java-bigqueryconnection/README.md index 96b37fc55d11..fce1596fca1e 100644 --- a/java-bigqueryconnection/README.md +++ b/java-bigqueryconnection/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigqueryconnection - 2.68.0 + 2.69.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigqueryconnection:2.68.0' +implementation 'com.google.cloud:google-cloud-bigqueryconnection:2.69.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryconnection" % "2.68.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryconnection" % "2.69.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.68.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryconnection/2.69.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/google-cloud-bigqueryconnection-bom/pom.xml b/java-bigqueryconnection/google-cloud-bigqueryconnection-bom/pom.xml index 8b9949f5d5fc..e442823abc56 100644 --- a/java-bigqueryconnection/google-cloud-bigqueryconnection-bom/pom.xml +++ b/java-bigqueryconnection/google-cloud-bigqueryconnection-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-bigqueryconnection-bom - 2.69.0 + 2.70.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-bigqueryconnection - 2.69.0 + 2.70.0 com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1 - 2.69.0 + 2.70.0 com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1beta1 - 0.77.0 + 0.78.0 com.google.api.grpc proto-google-cloud-bigqueryconnection-v1 - 2.69.0 + 2.70.0 com.google.api.grpc proto-google-cloud-bigqueryconnection-v1beta1 - 0.77.0 + 0.78.0 diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/pom.xml b/java-bigqueryconnection/google-cloud-bigqueryconnection/pom.xml index d05dd5f5c63a..98ebfc314a1e 100644 --- a/java-bigqueryconnection/google-cloud-bigqueryconnection/pom.xml +++ b/java-bigqueryconnection/google-cloud-bigqueryconnection/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-bigqueryconnection - 2.69.0 + 2.70.0 jar Google Cloud BigQuery Connections is about com.google.cloud google-cloud-bigqueryconnection-parent - 2.69.0 + 2.70.0 google-cloud-bigqueryconnection diff --git a/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1/pom.xml b/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1/pom.xml index 36dbe526e831..6b6166f73e09 100644 --- a/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1/pom.xml +++ b/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1 - 2.69.0 + 2.70.0 grpc-google-cloud-bigqueryconnection-v1 GRPC library for grpc-google-cloud-bigqueryconnection-v1 com.google.cloud google-cloud-bigqueryconnection-parent - 2.69.0 + 2.70.0 diff --git a/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1beta1/pom.xml b/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1beta1/pom.xml index 7695f4e2ac90..ce95e613542b 100644 --- a/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1beta1/pom.xml +++ b/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1beta1 - 0.77.0 + 0.78.0 grpc-google-cloud-bigqueryconnection-v1beta1 GRPC library for grpc-google-cloud-bigqueryconnection-v1beta1 com.google.cloud google-cloud-bigqueryconnection-parent - 2.69.0 + 2.70.0 diff --git a/java-bigqueryconnection/pom.xml b/java-bigqueryconnection/pom.xml index ac580fe5d5f0..25ee137d7488 100644 --- a/java-bigqueryconnection/pom.xml +++ b/java-bigqueryconnection/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bigqueryconnection-parent pom - 2.69.0 + 2.70.0 Google Cloud BigQuery Connections Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-bigqueryconnection - 2.69.0 + 2.70.0 com.google.api.grpc proto-google-cloud-bigqueryconnection-v1 - 2.69.0 + 2.70.0 com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1 - 2.69.0 + 2.70.0 com.google.api.grpc proto-google-cloud-bigqueryconnection-v1beta1 - 0.77.0 + 0.78.0 com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1beta1 - 0.77.0 + 0.78.0 diff --git a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/pom.xml b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/pom.xml index ac5004a2e9f8..f3cb19f8c910 100644 --- a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/pom.xml +++ b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigqueryconnection-v1 - 2.69.0 + 2.70.0 proto-google-cloud-bigqueryconnection-v1 PROTO library for proto-google-cloud-bigqueryconnection-v1 com.google.cloud google-cloud-bigqueryconnection-parent - 2.69.0 + 2.70.0 diff --git a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1beta1/pom.xml b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1beta1/pom.xml index 09277d6f0b33..bc87a0658bdd 100644 --- a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1beta1/pom.xml +++ b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigqueryconnection-v1beta1 - 0.77.0 + 0.78.0 proto-google-cloud-bigqueryconnection-v1beta1 PROTO library for proto-google-cloud-bigqueryconnection-v1beta1 com.google.cloud google-cloud-bigqueryconnection-parent - 2.69.0 + 2.70.0 diff --git a/java-bigquerydatapolicy/CHANGELOG.md b/java-bigquerydatapolicy/CHANGELOG.md index d3c061d0f716..9f42a28c580a 100644 --- a/java-bigquerydatapolicy/CHANGELOG.md +++ b/java-bigquerydatapolicy/CHANGELOG.md @@ -1,5 +1,16 @@ # Changelog +## 0.65.0 (2025-07-11) + +### Features + +* new module for bigquerydatapolicy v2beta1 ([#11674](https://github.com/googleapis/google-cloud-java/issues/11674)) ([5bf0054](https://github.com/googleapis/google-cloud-java/commit/5bf0054e7bba3187bcd09b08b06d639023817bcb)) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.64.0 (2025-06-25) ### Dependencies diff --git a/java-bigquerydatapolicy/README.md b/java-bigquerydatapolicy/README.md index fa58badf0e8b..06b916255499 100644 --- a/java-bigquerydatapolicy/README.md +++ b/java-bigquerydatapolicy/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquerydatapolicy - 0.63.0 + 0.64.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerydatapolicy:0.63.0' +implementation 'com.google.cloud:google-cloud-bigquerydatapolicy:0.64.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatapolicy" % "0.63.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatapolicy" % "0.64.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquerydatapolicy.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatapolicy/0.63.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatapolicy/0.64.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/google-cloud-bigquerydatapolicy-bom/pom.xml b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy-bom/pom.xml index b7834a075864..479bea708a84 100644 --- a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy-bom/pom.xml +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-bigquerydatapolicy-bom - 0.64.0 + 0.65.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,37 @@ com.google.cloud google-cloud-bigquerydatapolicy - 0.64.0 + 0.65.0 com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v1beta1 - 0.64.0 + 0.65.0 com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v1 - 0.64.0 + 0.65.0 + + + com.google.api.grpc + grpc-google-cloud-bigquerydatapolicy-v2beta1 + 0.65.0 com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v1beta1 - 0.64.0 + 0.65.0 com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v1 - 0.64.0 + 0.65.0 + + + com.google.api.grpc + proto-google-cloud-bigquerydatapolicy-v2beta1 + 0.65.0 diff --git a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/pom.xml b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/pom.xml index 126e899cfa46..2dd8f1e3638a 100644 --- a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/pom.xml +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-bigquerydatapolicy - 0.64.0 + 0.65.0 jar Google BigQuery DataPolicy API BigQuery DataPolicy API com.google.cloud google-cloud-bigquerydatapolicy-parent - 0.64.0 + 0.65.0 google-cloud-bigquerydatapolicy @@ -41,6 +41,10 @@ proto-google-common-protos + + com.google.api.grpc + proto-google-cloud-bigquerydatapolicy-v2beta1 + com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v1 @@ -70,6 +74,11 @@ grpc-google-common-protos test + + com.google.api.grpc + grpc-google-cloud-bigquerydatapolicy-v2beta1 + test + com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v1 diff --git a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/DataPolicyServiceClient.java b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/DataPolicyServiceClient.java new file mode 100644 index 000000000000..dcfed8b9b4ba --- /dev/null +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/DataPolicyServiceClient.java @@ -0,0 +1,1578 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.bigquery.datapolicies.v2beta1.stub.DataPolicyServiceStub; +import com.google.cloud.bigquery.datapolicies.v2beta1.stub.DataPolicyServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Data Policy Service provides APIs for managing the BigQuery Data Policy. + * + *

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 (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) {
+ *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ *   DataPolicy dataPolicy = DataPolicy.newBuilder().build();
+ *   String dataPolicyId = "dataPolicyId1874146231";
+ *   DataPolicy response =
+ *       dataPolicyServiceClient.createDataPolicy(parent, dataPolicy, dataPolicyId);
+ * }
+ * }
+ * + *

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

CreateDataPolicy

Creates a new data policy under a project with the given `data_policy_id` (used as the display name), and data policy type.

+ *

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

+ *
    + *
  • createDataPolicy(CreateDataPolicyRequest request) + *

+ *

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

+ *
    + *
  • createDataPolicy(LocationName parent, DataPolicy dataPolicy, String dataPolicyId) + *

  • createDataPolicy(String parent, DataPolicy dataPolicy, String dataPolicyId) + *

+ *

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

+ *
    + *
  • createDataPolicyCallable() + *

+ *

AddGrantees

Adds new grantees to a data policy. The new grantees will be added to the existing grantees. If the request contains a duplicate grantee, the grantee will be ignored. If the request contains a grantee that already exists, the grantee will be ignored.

+ *

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

+ *
    + *
  • addGrantees(AddGranteesRequest request) + *

+ *

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

+ *
    + *
  • addGrantees(DataPolicyName dataPolicy, List<String> grantees) + *

  • addGrantees(String dataPolicy, List<String> grantees) + *

+ *

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

+ *
    + *
  • addGranteesCallable() + *

+ *

RemoveGrantees

Removes grantees from a data policy. The grantees will be removed from the existing grantees. If the request contains a grantee that does not exist, the grantee will be ignored.

+ *

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

+ *
    + *
  • removeGrantees(RemoveGranteesRequest request) + *

+ *

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

+ *
    + *
  • removeGrantees(DataPolicyName dataPolicy, List<String> grantees) + *

  • removeGrantees(String dataPolicy, List<String> grantees) + *

+ *

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

+ *
    + *
  • removeGranteesCallable() + *

+ *

UpdateDataPolicy

Updates the metadata for an existing data policy. The target data policy can be specified by the resource name.

+ *

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

+ *
    + *
  • updateDataPolicy(UpdateDataPolicyRequest request) + *

+ *

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

+ *
    + *
  • updateDataPolicy(DataPolicy dataPolicy, FieldMask updateMask) + *

+ *

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

+ *
    + *
  • updateDataPolicyCallable() + *

+ *

DeleteDataPolicy

Deletes the data policy specified by its resource name.

+ *

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

+ *
    + *
  • deleteDataPolicy(DeleteDataPolicyRequest request) + *

+ *

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

+ *
    + *
  • deleteDataPolicy(DataPolicyName name) + *

  • deleteDataPolicy(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.

+ *
    + *
  • deleteDataPolicyCallable() + *

+ *

GetDataPolicy

Gets the data policy specified by its resource name.

+ *

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

+ *
    + *
  • getDataPolicy(GetDataPolicyRequest request) + *

+ *

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

+ *
    + *
  • getDataPolicy(DataPolicyName name) + *

  • getDataPolicy(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.

+ *
    + *
  • getDataPolicyCallable() + *

+ *

ListDataPolicies

List all of the data policies in the specified parent project.

+ *

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

+ *
    + *
  • listDataPolicies(ListDataPoliciesRequest request) + *

+ *

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

+ *
    + *
  • listDataPolicies(LocationName parent) + *

  • listDataPolicies(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.

+ *
    + *
  • listDataPoliciesPagedCallable() + *

  • listDataPoliciesCallable() + *

+ *

GetIamPolicy

Gets the IAM policy for the specified data policy.

+ *

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

+ *
    + *
  • getIamPolicy(GetIamPolicyRequest request) + *

+ *

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

+ *
    + *
  • getIamPolicyCallable() + *

+ *

SetIamPolicy

Sets the IAM policy for the specified data policy.

+ *

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

+ *
    + *
  • setIamPolicy(SetIamPolicyRequest request) + *

+ *

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

+ *
    + *
  • setIamPolicyCallable() + *

+ *

TestIamPermissions

Returns the caller's permission on the specified data policy resource.

+ *

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

+ *
    + *
  • testIamPermissions(TestIamPermissionsRequest request) + *

+ *

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

+ *
    + *
  • testIamPermissionsCallable() + *

+ *
+ * + *

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 DataPolicyServiceSettings 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
+ * DataPolicyServiceSettings dataPolicyServiceSettings =
+ *     DataPolicyServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * DataPolicyServiceClient dataPolicyServiceClient =
+ *     DataPolicyServiceClient.create(dataPolicyServiceSettings);
+ * }
+ * + *

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
+ * DataPolicyServiceSettings dataPolicyServiceSettings =
+ *     DataPolicyServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * DataPolicyServiceClient dataPolicyServiceClient =
+ *     DataPolicyServiceClient.create(dataPolicyServiceSettings);
+ * }
+ * + *

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
+ * DataPolicyServiceSettings dataPolicyServiceSettings =
+ *     DataPolicyServiceSettings.newHttpJsonBuilder().build();
+ * DataPolicyServiceClient dataPolicyServiceClient =
+ *     DataPolicyServiceClient.create(dataPolicyServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class DataPolicyServiceClient implements BackgroundResource { + private final DataPolicyServiceSettings settings; + private final DataPolicyServiceStub stub; + + /** Constructs an instance of DataPolicyServiceClient with default settings. */ + public static final DataPolicyServiceClient create() throws IOException { + return create(DataPolicyServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of DataPolicyServiceClient, 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 DataPolicyServiceClient create(DataPolicyServiceSettings settings) + throws IOException { + return new DataPolicyServiceClient(settings); + } + + /** + * Constructs an instance of DataPolicyServiceClient, using the given stub for making calls. This + * is for advanced usage - prefer using create(DataPolicyServiceSettings). + */ + public static final DataPolicyServiceClient create(DataPolicyServiceStub stub) { + return new DataPolicyServiceClient(stub); + } + + /** + * Constructs an instance of DataPolicyServiceClient, 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 DataPolicyServiceClient(DataPolicyServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((DataPolicyServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected DataPolicyServiceClient(DataPolicyServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final DataPolicyServiceSettings getSettings() { + return settings; + } + + public DataPolicyServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new data policy under a project with the given `data_policy_id` (used as the display + * name), and data policy type. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   DataPolicy dataPolicy = DataPolicy.newBuilder().build();
+   *   String dataPolicyId = "dataPolicyId1874146231";
+   *   DataPolicy response =
+   *       dataPolicyServiceClient.createDataPolicy(parent, dataPolicy, dataPolicyId);
+   * }
+   * }
+ * + * @param parent Required. Resource name of the project that the data policy will belong to. The + * format is `projects/{project_number}/locations/{location_id}`. + * @param dataPolicy Required. The data policy to create. The `name` field does not need to be + * provided for the data policy creation. + * @param dataPolicyId Required. User-assigned (human readable) ID of the data policy that needs + * to be unique within a project. Used as {data_policy_id} in part of the resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DataPolicy createDataPolicy( + LocationName parent, DataPolicy dataPolicy, String dataPolicyId) { + CreateDataPolicyRequest request = + CreateDataPolicyRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setDataPolicy(dataPolicy) + .setDataPolicyId(dataPolicyId) + .build(); + return createDataPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new data policy under a project with the given `data_policy_id` (used as the display + * name), and data policy type. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   DataPolicy dataPolicy = DataPolicy.newBuilder().build();
+   *   String dataPolicyId = "dataPolicyId1874146231";
+   *   DataPolicy response =
+   *       dataPolicyServiceClient.createDataPolicy(parent, dataPolicy, dataPolicyId);
+   * }
+   * }
+ * + * @param parent Required. Resource name of the project that the data policy will belong to. The + * format is `projects/{project_number}/locations/{location_id}`. + * @param dataPolicy Required. The data policy to create. The `name` field does not need to be + * provided for the data policy creation. + * @param dataPolicyId Required. User-assigned (human readable) ID of the data policy that needs + * to be unique within a project. Used as {data_policy_id} in part of the resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DataPolicy createDataPolicy( + String parent, DataPolicy dataPolicy, String dataPolicyId) { + CreateDataPolicyRequest request = + CreateDataPolicyRequest.newBuilder() + .setParent(parent) + .setDataPolicy(dataPolicy) + .setDataPolicyId(dataPolicyId) + .build(); + return createDataPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new data policy under a project with the given `data_policy_id` (used as the display + * name), and data policy type. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) {
+   *   CreateDataPolicyRequest request =
+   *       CreateDataPolicyRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setDataPolicyId("dataPolicyId1874146231")
+   *           .setDataPolicy(DataPolicy.newBuilder().build())
+   *           .build();
+   *   DataPolicy response = dataPolicyServiceClient.createDataPolicy(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 DataPolicy createDataPolicy(CreateDataPolicyRequest request) { + return createDataPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new data policy under a project with the given `data_policy_id` (used as the display + * name), and data policy type. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) {
+   *   CreateDataPolicyRequest request =
+   *       CreateDataPolicyRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setDataPolicyId("dataPolicyId1874146231")
+   *           .setDataPolicy(DataPolicy.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       dataPolicyServiceClient.createDataPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   DataPolicy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createDataPolicyCallable() { + return stub.createDataPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Adds new grantees to a data policy. The new grantees will be added to the existing grantees. If + * the request contains a duplicate grantee, the grantee will be ignored. If the request contains + * a grantee that already exists, the grantee will be ignored. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) {
+   *   DataPolicyName dataPolicy = DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]");
+   *   List grantees = new ArrayList<>();
+   *   DataPolicy response = dataPolicyServiceClient.addGrantees(dataPolicy, grantees);
+   * }
+   * }
+ * + * @param dataPolicy Required. Resource name of this data policy, in the format of + * `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`. + * @param grantees Required. IAM principal that should be granted Fine Grained Access to the + * underlying data goverened by the data policy. The target data policy is determined by the + * `data_policy` field. + *

Uses the [IAM V2 principal + * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2). Supported principal + * types: + *

    + *
  • User + *
  • Group + *
  • Service account + *
+ * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DataPolicy addGrantees(DataPolicyName dataPolicy, List grantees) { + AddGranteesRequest request = + AddGranteesRequest.newBuilder() + .setDataPolicy(dataPolicy == null ? null : dataPolicy.toString()) + .addAllGrantees(grantees) + .build(); + return addGrantees(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Adds new grantees to a data policy. The new grantees will be added to the existing grantees. If + * the request contains a duplicate grantee, the grantee will be ignored. If the request contains + * a grantee that already exists, the grantee will be ignored. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) {
+   *   String dataPolicy = DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString();
+   *   List grantees = new ArrayList<>();
+   *   DataPolicy response = dataPolicyServiceClient.addGrantees(dataPolicy, grantees);
+   * }
+   * }
+ * + * @param dataPolicy Required. Resource name of this data policy, in the format of + * `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`. + * @param grantees Required. IAM principal that should be granted Fine Grained Access to the + * underlying data goverened by the data policy. The target data policy is determined by the + * `data_policy` field. + *

Uses the [IAM V2 principal + * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2). Supported principal + * types: + *

    + *
  • User + *
  • Group + *
  • Service account + *
+ * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DataPolicy addGrantees(String dataPolicy, List grantees) { + AddGranteesRequest request = + AddGranteesRequest.newBuilder().setDataPolicy(dataPolicy).addAllGrantees(grantees).build(); + return addGrantees(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Adds new grantees to a data policy. The new grantees will be added to the existing grantees. If + * the request contains a duplicate grantee, the grantee will be ignored. If the request contains + * a grantee that already exists, the grantee will be ignored. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) {
+   *   AddGranteesRequest request =
+   *       AddGranteesRequest.newBuilder()
+   *           .setDataPolicy(
+   *               DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString())
+   *           .addAllGrantees(new ArrayList())
+   *           .build();
+   *   DataPolicy response = dataPolicyServiceClient.addGrantees(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 DataPolicy addGrantees(AddGranteesRequest request) { + return addGranteesCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Adds new grantees to a data policy. The new grantees will be added to the existing grantees. If + * the request contains a duplicate grantee, the grantee will be ignored. If the request contains + * a grantee that already exists, the grantee will be ignored. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) {
+   *   AddGranteesRequest request =
+   *       AddGranteesRequest.newBuilder()
+   *           .setDataPolicy(
+   *               DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString())
+   *           .addAllGrantees(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       dataPolicyServiceClient.addGranteesCallable().futureCall(request);
+   *   // Do something.
+   *   DataPolicy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable addGranteesCallable() { + return stub.addGranteesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes grantees from a data policy. The grantees will be removed from the existing grantees. + * If the request contains a grantee that does not exist, the grantee will be ignored. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) {
+   *   DataPolicyName dataPolicy = DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]");
+   *   List grantees = new ArrayList<>();
+   *   DataPolicy response = dataPolicyServiceClient.removeGrantees(dataPolicy, grantees);
+   * }
+   * }
+ * + * @param dataPolicy Required. Resource name of this data policy, in the format of + * `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`. + * @param grantees Required. IAM principal that should be revoked from Fine Grained Access to the + * underlying data goverened by the data policy. The target data policy is determined by the + * `data_policy` field. + *

Uses the [IAM V2 principal + * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2). Supported principal + * types: + *

    + *
  • User + *
  • Group + *
  • Service account + *
+ * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DataPolicy removeGrantees(DataPolicyName dataPolicy, List grantees) { + RemoveGranteesRequest request = + RemoveGranteesRequest.newBuilder() + .setDataPolicy(dataPolicy == null ? null : dataPolicy.toString()) + .addAllGrantees(grantees) + .build(); + return removeGrantees(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes grantees from a data policy. The grantees will be removed from the existing grantees. + * If the request contains a grantee that does not exist, the grantee will be ignored. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) {
+   *   String dataPolicy = DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString();
+   *   List grantees = new ArrayList<>();
+   *   DataPolicy response = dataPolicyServiceClient.removeGrantees(dataPolicy, grantees);
+   * }
+   * }
+ * + * @param dataPolicy Required. Resource name of this data policy, in the format of + * `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`. + * @param grantees Required. IAM principal that should be revoked from Fine Grained Access to the + * underlying data goverened by the data policy. The target data policy is determined by the + * `data_policy` field. + *

Uses the [IAM V2 principal + * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2). Supported principal + * types: + *

    + *
  • User + *
  • Group + *
  • Service account + *
+ * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DataPolicy removeGrantees(String dataPolicy, List grantees) { + RemoveGranteesRequest request = + RemoveGranteesRequest.newBuilder() + .setDataPolicy(dataPolicy) + .addAllGrantees(grantees) + .build(); + return removeGrantees(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes grantees from a data policy. The grantees will be removed from the existing grantees. + * If the request contains a grantee that does not exist, the grantee will be ignored. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) {
+   *   RemoveGranteesRequest request =
+   *       RemoveGranteesRequest.newBuilder()
+   *           .setDataPolicy(
+   *               DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString())
+   *           .addAllGrantees(new ArrayList())
+   *           .build();
+   *   DataPolicy response = dataPolicyServiceClient.removeGrantees(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 DataPolicy removeGrantees(RemoveGranteesRequest request) { + return removeGranteesCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes grantees from a data policy. The grantees will be removed from the existing grantees. + * If the request contains a grantee that does not exist, the grantee will be ignored. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) {
+   *   RemoveGranteesRequest request =
+   *       RemoveGranteesRequest.newBuilder()
+   *           .setDataPolicy(
+   *               DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString())
+   *           .addAllGrantees(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       dataPolicyServiceClient.removeGranteesCallable().futureCall(request);
+   *   // Do something.
+   *   DataPolicy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable removeGranteesCallable() { + return stub.removeGranteesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the metadata for an existing data policy. The target data policy can be specified by + * the resource name. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) {
+   *   DataPolicy dataPolicy = DataPolicy.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   DataPolicy response = dataPolicyServiceClient.updateDataPolicy(dataPolicy, updateMask);
+   * }
+   * }
+ * + * @param dataPolicy Required. Update the data policy's metadata. + *

The target data policy is determined by the `name` field. Other fields are updated to + * the specified values based on the field masks. + * @param updateMask Optional. The update mask applies to the resource. For the `FieldMask` + * definition, see + * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If + * not set, defaults to all of the fields that are allowed to update. + *

Updates to the `name` and `dataPolicyId` fields are not allowed. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DataPolicy updateDataPolicy(DataPolicy dataPolicy, FieldMask updateMask) { + UpdateDataPolicyRequest request = + UpdateDataPolicyRequest.newBuilder() + .setDataPolicy(dataPolicy) + .setUpdateMask(updateMask) + .build(); + return updateDataPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the metadata for an existing data policy. The target data policy can be specified by + * the resource name. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) {
+   *   UpdateDataPolicyRequest request =
+   *       UpdateDataPolicyRequest.newBuilder()
+   *           .setDataPolicy(DataPolicy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   DataPolicy response = dataPolicyServiceClient.updateDataPolicy(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 DataPolicy updateDataPolicy(UpdateDataPolicyRequest request) { + return updateDataPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the metadata for an existing data policy. The target data policy can be specified by + * the resource name. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) {
+   *   UpdateDataPolicyRequest request =
+   *       UpdateDataPolicyRequest.newBuilder()
+   *           .setDataPolicy(DataPolicy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       dataPolicyServiceClient.updateDataPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   DataPolicy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateDataPolicyCallable() { + return stub.updateDataPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the data policy specified by its resource name. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) {
+   *   DataPolicyName name = DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]");
+   *   dataPolicyServiceClient.deleteDataPolicy(name);
+   * }
+   * }
+ * + * @param name Required. Resource name of the data policy to delete. Format is + * `projects/{project_number}/locations/{location_id}/dataPolicies/{id}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteDataPolicy(DataPolicyName name) { + DeleteDataPolicyRequest request = + DeleteDataPolicyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteDataPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the data policy specified by its resource name. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) {
+   *   String name = DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString();
+   *   dataPolicyServiceClient.deleteDataPolicy(name);
+   * }
+   * }
+ * + * @param name Required. Resource name of the data policy to delete. Format is + * `projects/{project_number}/locations/{location_id}/dataPolicies/{id}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteDataPolicy(String name) { + DeleteDataPolicyRequest request = DeleteDataPolicyRequest.newBuilder().setName(name).build(); + deleteDataPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the data policy specified by its resource name. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) {
+   *   DeleteDataPolicyRequest request =
+   *       DeleteDataPolicyRequest.newBuilder()
+   *           .setName(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString())
+   *           .build();
+   *   dataPolicyServiceClient.deleteDataPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteDataPolicy(DeleteDataPolicyRequest request) { + deleteDataPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the data policy specified by its resource name. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) {
+   *   DeleteDataPolicyRequest request =
+   *       DeleteDataPolicyRequest.newBuilder()
+   *           .setName(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       dataPolicyServiceClient.deleteDataPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteDataPolicyCallable() { + return stub.deleteDataPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the data policy specified by its resource name. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) {
+   *   DataPolicyName name = DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]");
+   *   DataPolicy response = dataPolicyServiceClient.getDataPolicy(name);
+   * }
+   * }
+ * + * @param name Required. Resource name of the requested data policy. Format is + * `projects/{project_number}/locations/{location_id}/dataPolicies/{id}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DataPolicy getDataPolicy(DataPolicyName name) { + GetDataPolicyRequest request = + GetDataPolicyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getDataPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the data policy specified by its resource name. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) {
+   *   String name = DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString();
+   *   DataPolicy response = dataPolicyServiceClient.getDataPolicy(name);
+   * }
+   * }
+ * + * @param name Required. Resource name of the requested data policy. Format is + * `projects/{project_number}/locations/{location_id}/dataPolicies/{id}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DataPolicy getDataPolicy(String name) { + GetDataPolicyRequest request = GetDataPolicyRequest.newBuilder().setName(name).build(); + return getDataPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the data policy specified by its resource name. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) {
+   *   GetDataPolicyRequest request =
+   *       GetDataPolicyRequest.newBuilder()
+   *           .setName(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString())
+   *           .build();
+   *   DataPolicy response = dataPolicyServiceClient.getDataPolicy(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 DataPolicy getDataPolicy(GetDataPolicyRequest request) { + return getDataPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the data policy specified by its resource name. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) {
+   *   GetDataPolicyRequest request =
+   *       GetDataPolicyRequest.newBuilder()
+   *           .setName(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       dataPolicyServiceClient.getDataPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   DataPolicy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getDataPolicyCallable() { + return stub.getDataPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all of the data policies in the specified parent project. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (DataPolicy element : dataPolicyServiceClient.listDataPolicies(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Resource name of the project for which to list data policies. Format is + * `projects/{project_number}/locations/{location_id}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDataPoliciesPagedResponse listDataPolicies(LocationName parent) { + ListDataPoliciesRequest request = + ListDataPoliciesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listDataPolicies(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all of the data policies in the specified parent project. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (DataPolicy element : dataPolicyServiceClient.listDataPolicies(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Resource name of the project for which to list data policies. Format is + * `projects/{project_number}/locations/{location_id}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDataPoliciesPagedResponse listDataPolicies(String parent) { + ListDataPoliciesRequest request = + ListDataPoliciesRequest.newBuilder().setParent(parent).build(); + return listDataPolicies(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all of the data policies in the specified parent project. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) {
+   *   ListDataPoliciesRequest request =
+   *       ListDataPoliciesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (DataPolicy element : dataPolicyServiceClient.listDataPolicies(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 ListDataPoliciesPagedResponse listDataPolicies(ListDataPoliciesRequest request) { + return listDataPoliciesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all of the data policies in the specified parent project. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) {
+   *   ListDataPoliciesRequest request =
+   *       ListDataPoliciesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListDataPoliciesResponse response =
+   *         dataPolicyServiceClient.listDataPoliciesCallable().call(request);
+   *     for (DataPolicy element : response.getDataPoliciesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listDataPoliciesCallable() { + return stub.listDataPoliciesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the IAM policy for the specified data 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 (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = dataPolicyServiceClient.getIamPolicy(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 Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the IAM policy for the specified data 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 (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = dataPolicyServiceClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the IAM policy for the specified data 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 (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = dataPolicyServiceClient.setIamPolicy(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 Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the IAM policy for the specified data 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 (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = dataPolicyServiceClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the caller's permission on the specified data policy resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response = dataPolicyServiceClient.testIamPermissions(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 TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the caller's permission on the specified data policy resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       dataPolicyServiceClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something.
+   *   TestIamPermissionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + + @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 ListDataPoliciesPagedResponse + extends AbstractPagedListResponse< + ListDataPoliciesRequest, + ListDataPoliciesResponse, + DataPolicy, + ListDataPoliciesPage, + ListDataPoliciesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListDataPoliciesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListDataPoliciesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListDataPoliciesPagedResponse(ListDataPoliciesPage page) { + super(page, ListDataPoliciesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListDataPoliciesPage + extends AbstractPage< + ListDataPoliciesRequest, ListDataPoliciesResponse, DataPolicy, ListDataPoliciesPage> { + + private ListDataPoliciesPage( + PageContext context, + ListDataPoliciesResponse response) { + super(context, response); + } + + private static ListDataPoliciesPage createEmptyPage() { + return new ListDataPoliciesPage(null, null); + } + + @Override + protected ListDataPoliciesPage createPage( + PageContext context, + ListDataPoliciesResponse response) { + return new ListDataPoliciesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListDataPoliciesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListDataPoliciesRequest, + ListDataPoliciesResponse, + DataPolicy, + ListDataPoliciesPage, + ListDataPoliciesFixedSizeCollection> { + + private ListDataPoliciesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListDataPoliciesFixedSizeCollection createEmptyCollection() { + return new ListDataPoliciesFixedSizeCollection(null, 0); + } + + @Override + protected ListDataPoliciesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListDataPoliciesFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/DataPolicyServiceSettings.java b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/DataPolicyServiceSettings.java new file mode 100644 index 000000000000..964cd5aadd69 --- /dev/null +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/DataPolicyServiceSettings.java @@ -0,0 +1,324 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1; + +import static com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient.ListDataPoliciesPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.bigquery.datapolicies.v2beta1.stub.DataPolicyServiceStubSettings; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link DataPolicyServiceClient}. + * + *

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

    + *
  • The default service address (bigquerydatapolicy.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 createDataPolicy: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * DataPolicyServiceSettings.Builder dataPolicyServiceSettingsBuilder =
+ *     DataPolicyServiceSettings.newBuilder();
+ * dataPolicyServiceSettingsBuilder
+ *     .createDataPolicySettings()
+ *     .setRetrySettings(
+ *         dataPolicyServiceSettingsBuilder
+ *             .createDataPolicySettings()
+ *             .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());
+ * DataPolicyServiceSettings dataPolicyServiceSettings = dataPolicyServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class DataPolicyServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to createDataPolicy. */ + public UnaryCallSettings createDataPolicySettings() { + return ((DataPolicyServiceStubSettings) getStubSettings()).createDataPolicySettings(); + } + + /** Returns the object with the settings used for calls to addGrantees. */ + public UnaryCallSettings addGranteesSettings() { + return ((DataPolicyServiceStubSettings) getStubSettings()).addGranteesSettings(); + } + + /** Returns the object with the settings used for calls to removeGrantees. */ + public UnaryCallSettings removeGranteesSettings() { + return ((DataPolicyServiceStubSettings) getStubSettings()).removeGranteesSettings(); + } + + /** Returns the object with the settings used for calls to updateDataPolicy. */ + public UnaryCallSettings updateDataPolicySettings() { + return ((DataPolicyServiceStubSettings) getStubSettings()).updateDataPolicySettings(); + } + + /** Returns the object with the settings used for calls to deleteDataPolicy. */ + public UnaryCallSettings deleteDataPolicySettings() { + return ((DataPolicyServiceStubSettings) getStubSettings()).deleteDataPolicySettings(); + } + + /** Returns the object with the settings used for calls to getDataPolicy. */ + public UnaryCallSettings getDataPolicySettings() { + return ((DataPolicyServiceStubSettings) getStubSettings()).getDataPolicySettings(); + } + + /** Returns the object with the settings used for calls to listDataPolicies. */ + public PagedCallSettings< + ListDataPoliciesRequest, ListDataPoliciesResponse, ListDataPoliciesPagedResponse> + listDataPoliciesSettings() { + return ((DataPolicyServiceStubSettings) getStubSettings()).listDataPoliciesSettings(); + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return ((DataPolicyServiceStubSettings) getStubSettings()).getIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return ((DataPolicyServiceStubSettings) getStubSettings()).setIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return ((DataPolicyServiceStubSettings) getStubSettings()).testIamPermissionsSettings(); + } + + public static final DataPolicyServiceSettings create(DataPolicyServiceStubSettings stub) + throws IOException { + return new DataPolicyServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return DataPolicyServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return DataPolicyServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DataPolicyServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return DataPolicyServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return DataPolicyServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return DataPolicyServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return DataPolicyServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return DataPolicyServiceStubSettings.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(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 DataPolicyServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for DataPolicyServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(DataPolicyServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(DataPolicyServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(DataPolicyServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(DataPolicyServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(DataPolicyServiceStubSettings.newHttpJsonBuilder()); + } + + public DataPolicyServiceStubSettings.Builder getStubSettingsBuilder() { + return ((DataPolicyServiceStubSettings.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 createDataPolicy. */ + public UnaryCallSettings.Builder + createDataPolicySettings() { + return getStubSettingsBuilder().createDataPolicySettings(); + } + + /** Returns the builder for the settings used for calls to addGrantees. */ + public UnaryCallSettings.Builder addGranteesSettings() { + return getStubSettingsBuilder().addGranteesSettings(); + } + + /** Returns the builder for the settings used for calls to removeGrantees. */ + public UnaryCallSettings.Builder removeGranteesSettings() { + return getStubSettingsBuilder().removeGranteesSettings(); + } + + /** Returns the builder for the settings used for calls to updateDataPolicy. */ + public UnaryCallSettings.Builder + updateDataPolicySettings() { + return getStubSettingsBuilder().updateDataPolicySettings(); + } + + /** Returns the builder for the settings used for calls to deleteDataPolicy. */ + public UnaryCallSettings.Builder deleteDataPolicySettings() { + return getStubSettingsBuilder().deleteDataPolicySettings(); + } + + /** Returns the builder for the settings used for calls to getDataPolicy. */ + public UnaryCallSettings.Builder getDataPolicySettings() { + return getStubSettingsBuilder().getDataPolicySettings(); + } + + /** Returns the builder for the settings used for calls to listDataPolicies. */ + public PagedCallSettings.Builder< + ListDataPoliciesRequest, ListDataPoliciesResponse, ListDataPoliciesPagedResponse> + listDataPoliciesSettings() { + return getStubSettingsBuilder().listDataPoliciesSettings(); + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getStubSettingsBuilder().getIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return getStubSettingsBuilder().setIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return getStubSettingsBuilder().testIamPermissionsSettings(); + } + + @Override + public DataPolicyServiceSettings build() throws IOException { + return new DataPolicyServiceSettings(this); + } + } +} diff --git a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/gapic_metadata.json b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/gapic_metadata.json new file mode 100644 index 000000000000..e3bcec0dec39 --- /dev/null +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/gapic_metadata.json @@ -0,0 +1,48 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "java", + "protoPackage": "google.cloud.bigquery.datapolicies.v2beta1", + "libraryPackage": "com.google.cloud.bigquery.datapolicies.v2beta1", + "services": { + "DataPolicyService": { + "clients": { + "grpc": { + "libraryClient": "DataPolicyServiceClient", + "rpcs": { + "AddGrantees": { + "methods": ["addGrantees", "addGrantees", "addGrantees", "addGranteesCallable"] + }, + "CreateDataPolicy": { + "methods": ["createDataPolicy", "createDataPolicy", "createDataPolicy", "createDataPolicyCallable"] + }, + "DeleteDataPolicy": { + "methods": ["deleteDataPolicy", "deleteDataPolicy", "deleteDataPolicy", "deleteDataPolicyCallable"] + }, + "GetDataPolicy": { + "methods": ["getDataPolicy", "getDataPolicy", "getDataPolicy", "getDataPolicyCallable"] + }, + "GetIamPolicy": { + "methods": ["getIamPolicy", "getIamPolicyCallable"] + }, + "ListDataPolicies": { + "methods": ["listDataPolicies", "listDataPolicies", "listDataPolicies", "listDataPoliciesPagedCallable", "listDataPoliciesCallable"] + }, + "RemoveGrantees": { + "methods": ["removeGrantees", "removeGrantees", "removeGrantees", "removeGranteesCallable"] + }, + "SetIamPolicy": { + "methods": ["setIamPolicy", "setIamPolicyCallable"] + }, + "TestIamPermissions": { + "methods": ["testIamPermissions", "testIamPermissionsCallable"] + }, + "UpdateDataPolicy": { + "methods": ["updateDataPolicy", "updateDataPolicy", "updateDataPolicyCallable"] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/package-info.java b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/package-info.java new file mode 100644 index 000000000000..1834c0b9bf86 --- /dev/null +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/package-info.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * A client to BigQuery Data Policy API + * + *

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

======================= DataPolicyServiceClient ======================= + * + *

Service Description: Data Policy Service provides APIs for managing the BigQuery Data Policy. + * + *

Sample for DataPolicyServiceClient: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) {
+ *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ *   DataPolicy dataPolicy = DataPolicy.newBuilder().build();
+ *   String dataPolicyId = "dataPolicyId1874146231";
+ *   DataPolicy response =
+ *       dataPolicyServiceClient.createDataPolicy(parent, dataPolicy, dataPolicyId);
+ * }
+ * }
+ */ +@Generated("by gapic-generator-java") +package com.google.cloud.bigquery.datapolicies.v2beta1; + +import javax.annotation.Generated; diff --git a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/stub/DataPolicyServiceStub.java b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/stub/DataPolicyServiceStub.java new file mode 100644 index 000000000000..df1ca26a9a7f --- /dev/null +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/stub/DataPolicyServiceStub.java @@ -0,0 +1,100 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1.stub; + +import static com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient.ListDataPoliciesPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest; +import com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy; +import com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest; +import com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest; +import com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest; +import com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse; +import com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest; +import com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the DataPolicyService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class DataPolicyServiceStub implements BackgroundResource { + + public UnaryCallable createDataPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: createDataPolicyCallable()"); + } + + public UnaryCallable addGranteesCallable() { + throw new UnsupportedOperationException("Not implemented: addGranteesCallable()"); + } + + public UnaryCallable removeGranteesCallable() { + throw new UnsupportedOperationException("Not implemented: removeGranteesCallable()"); + } + + public UnaryCallable updateDataPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: updateDataPolicyCallable()"); + } + + public UnaryCallable deleteDataPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: deleteDataPolicyCallable()"); + } + + public UnaryCallable getDataPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getDataPolicyCallable()"); + } + + public UnaryCallable + listDataPoliciesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listDataPoliciesPagedCallable()"); + } + + public UnaryCallable + listDataPoliciesCallable() { + throw new UnsupportedOperationException("Not implemented: listDataPoliciesCallable()"); + } + + public UnaryCallable getIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); + } + + public UnaryCallable setIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); + } + + public UnaryCallable + testIamPermissionsCallable() { + throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/stub/DataPolicyServiceStubSettings.java b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/stub/DataPolicyServiceStubSettings.java new file mode 100644 index 000000000000..5d6816878626 --- /dev/null +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/stub/DataPolicyServiceStubSettings.java @@ -0,0 +1,648 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1.stub; + +import static com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient.ListDataPoliciesPagedResponse; + +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.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest; +import com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy; +import com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest; +import com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest; +import com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest; +import com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse; +import com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest; +import com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest; +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.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link DataPolicyServiceStub}. + * + *

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

    + *
  • The default service address (bigquerydatapolicy.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 createDataPolicy: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * DataPolicyServiceStubSettings.Builder dataPolicyServiceSettingsBuilder =
+ *     DataPolicyServiceStubSettings.newBuilder();
+ * dataPolicyServiceSettingsBuilder
+ *     .createDataPolicySettings()
+ *     .setRetrySettings(
+ *         dataPolicyServiceSettingsBuilder
+ *             .createDataPolicySettings()
+ *             .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());
+ * DataPolicyServiceStubSettings dataPolicyServiceSettings =
+ *     dataPolicyServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class DataPolicyServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/bigquery") + .add("https://www.googleapis.com/auth/cloud-platform") + .build(); + + private final UnaryCallSettings createDataPolicySettings; + private final UnaryCallSettings addGranteesSettings; + private final UnaryCallSettings removeGranteesSettings; + private final UnaryCallSettings updateDataPolicySettings; + private final UnaryCallSettings deleteDataPolicySettings; + private final UnaryCallSettings getDataPolicySettings; + private final PagedCallSettings< + ListDataPoliciesRequest, ListDataPoliciesResponse, ListDataPoliciesPagedResponse> + listDataPoliciesSettings; + private final UnaryCallSettings getIamPolicySettings; + private final UnaryCallSettings setIamPolicySettings; + private final UnaryCallSettings + testIamPermissionsSettings; + + private static final PagedListDescriptor< + ListDataPoliciesRequest, ListDataPoliciesResponse, DataPolicy> + LIST_DATA_POLICIES_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListDataPoliciesRequest injectToken( + ListDataPoliciesRequest payload, String token) { + return ListDataPoliciesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListDataPoliciesRequest injectPageSize( + ListDataPoliciesRequest payload, int pageSize) { + return ListDataPoliciesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListDataPoliciesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListDataPoliciesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListDataPoliciesResponse payload) { + return payload.getDataPoliciesList(); + } + }; + + private static final PagedListResponseFactory< + ListDataPoliciesRequest, ListDataPoliciesResponse, ListDataPoliciesPagedResponse> + LIST_DATA_POLICIES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListDataPoliciesRequest, ListDataPoliciesResponse, ListDataPoliciesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListDataPoliciesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_DATA_POLICIES_PAGE_STR_DESC, request, context); + return ListDataPoliciesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to createDataPolicy. */ + public UnaryCallSettings createDataPolicySettings() { + return createDataPolicySettings; + } + + /** Returns the object with the settings used for calls to addGrantees. */ + public UnaryCallSettings addGranteesSettings() { + return addGranteesSettings; + } + + /** Returns the object with the settings used for calls to removeGrantees. */ + public UnaryCallSettings removeGranteesSettings() { + return removeGranteesSettings; + } + + /** Returns the object with the settings used for calls to updateDataPolicy. */ + public UnaryCallSettings updateDataPolicySettings() { + return updateDataPolicySettings; + } + + /** Returns the object with the settings used for calls to deleteDataPolicy. */ + public UnaryCallSettings deleteDataPolicySettings() { + return deleteDataPolicySettings; + } + + /** Returns the object with the settings used for calls to getDataPolicy. */ + public UnaryCallSettings getDataPolicySettings() { + return getDataPolicySettings; + } + + /** Returns the object with the settings used for calls to listDataPolicies. */ + public PagedCallSettings< + ListDataPoliciesRequest, ListDataPoliciesResponse, ListDataPoliciesPagedResponse> + listDataPoliciesSettings() { + return listDataPoliciesSettings; + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + public DataPolicyServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcDataPolicyServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonDataPolicyServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "bigquerydatapolicy"; + } + + /** 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 "bigquerydatapolicy.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "bigquerydatapolicy.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(DataPolicyServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(DataPolicyServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return DataPolicyServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected DataPolicyServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + createDataPolicySettings = settingsBuilder.createDataPolicySettings().build(); + addGranteesSettings = settingsBuilder.addGranteesSettings().build(); + removeGranteesSettings = settingsBuilder.removeGranteesSettings().build(); + updateDataPolicySettings = settingsBuilder.updateDataPolicySettings().build(); + deleteDataPolicySettings = settingsBuilder.deleteDataPolicySettings().build(); + getDataPolicySettings = settingsBuilder.getDataPolicySettings().build(); + listDataPoliciesSettings = settingsBuilder.listDataPoliciesSettings().build(); + getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); + setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); + testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); + } + + /** Builder for DataPolicyServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + createDataPolicySettings; + private final UnaryCallSettings.Builder addGranteesSettings; + private final UnaryCallSettings.Builder + removeGranteesSettings; + private final UnaryCallSettings.Builder + updateDataPolicySettings; + private final UnaryCallSettings.Builder + deleteDataPolicySettings; + private final UnaryCallSettings.Builder getDataPolicySettings; + private final PagedCallSettings.Builder< + ListDataPoliciesRequest, ListDataPoliciesResponse, ListDataPoliciesPagedResponse> + listDataPoliciesSettings; + private final UnaryCallSettings.Builder getIamPolicySettings; + private final UnaryCallSettings.Builder setIamPolicySettings; + private final UnaryCallSettings.Builder + testIamPermissionsSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, + StatusCode.Code.UNAVAILABLE, + StatusCode.Code.RESOURCE_EXHAUSTED))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelayDuration(Duration.ofMillis(60000L)) + .setInitialRpcTimeoutDuration(Duration.ofMillis(64000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(64000L)) + .setTotalTimeoutDuration(Duration.ofMillis(64000L)) + .build(); + definitions.put("retry_policy_0_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + createDataPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + addGranteesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + removeGranteesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateDataPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteDataPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getDataPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listDataPoliciesSettings = PagedCallSettings.newBuilder(LIST_DATA_POLICIES_PAGE_STR_FACT); + getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createDataPolicySettings, + addGranteesSettings, + removeGranteesSettings, + updateDataPolicySettings, + deleteDataPolicySettings, + getDataPolicySettings, + listDataPoliciesSettings, + getIamPolicySettings, + setIamPolicySettings, + testIamPermissionsSettings); + initDefaults(this); + } + + protected Builder(DataPolicyServiceStubSettings settings) { + super(settings); + + createDataPolicySettings = settings.createDataPolicySettings.toBuilder(); + addGranteesSettings = settings.addGranteesSettings.toBuilder(); + removeGranteesSettings = settings.removeGranteesSettings.toBuilder(); + updateDataPolicySettings = settings.updateDataPolicySettings.toBuilder(); + deleteDataPolicySettings = settings.deleteDataPolicySettings.toBuilder(); + getDataPolicySettings = settings.getDataPolicySettings.toBuilder(); + listDataPoliciesSettings = settings.listDataPoliciesSettings.toBuilder(); + getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); + setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); + testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createDataPolicySettings, + addGranteesSettings, + removeGranteesSettings, + updateDataPolicySettings, + deleteDataPolicySettings, + getDataPolicySettings, + listDataPoliciesSettings, + getIamPolicySettings, + setIamPolicySettings, + testIamPermissionsSettings); + } + + 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 + .createDataPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .addGranteesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .removeGranteesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateDataPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteDataPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getDataPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listDataPoliciesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .setIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .testIamPermissionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to createDataPolicy. */ + public UnaryCallSettings.Builder + createDataPolicySettings() { + return createDataPolicySettings; + } + + /** Returns the builder for the settings used for calls to addGrantees. */ + public UnaryCallSettings.Builder addGranteesSettings() { + return addGranteesSettings; + } + + /** Returns the builder for the settings used for calls to removeGrantees. */ + public UnaryCallSettings.Builder removeGranteesSettings() { + return removeGranteesSettings; + } + + /** Returns the builder for the settings used for calls to updateDataPolicy. */ + public UnaryCallSettings.Builder + updateDataPolicySettings() { + return updateDataPolicySettings; + } + + /** Returns the builder for the settings used for calls to deleteDataPolicy. */ + public UnaryCallSettings.Builder deleteDataPolicySettings() { + return deleteDataPolicySettings; + } + + /** Returns the builder for the settings used for calls to getDataPolicy. */ + public UnaryCallSettings.Builder getDataPolicySettings() { + return getDataPolicySettings; + } + + /** Returns the builder for the settings used for calls to listDataPolicies. */ + public PagedCallSettings.Builder< + ListDataPoliciesRequest, ListDataPoliciesResponse, ListDataPoliciesPagedResponse> + listDataPoliciesSettings() { + return listDataPoliciesSettings; + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + @Override + public DataPolicyServiceStubSettings build() throws IOException { + return new DataPolicyServiceStubSettings(this); + } + } +} diff --git a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/stub/GrpcDataPolicyServiceCallableFactory.java b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/stub/GrpcDataPolicyServiceCallableFactory.java new file mode 100644 index 000000000000..e85cf04efae6 --- /dev/null +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/stub/GrpcDataPolicyServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the DataPolicyService service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcDataPolicyServiceCallableFactory 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-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/stub/GrpcDataPolicyServiceStub.java b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/stub/GrpcDataPolicyServiceStub.java new file mode 100644 index 000000000000..4a348001bd0d --- /dev/null +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/stub/GrpcDataPolicyServiceStub.java @@ -0,0 +1,467 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1.stub; + +import static com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient.ListDataPoliciesPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest; +import com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy; +import com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest; +import com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest; +import com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest; +import com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse; +import com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest; +import com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the DataPolicyService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcDataPolicyServiceStub extends DataPolicyServiceStub { + private static final MethodDescriptor + createDataPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyService/CreateDataPolicy") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateDataPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(DataPolicy.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + addGranteesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyService/AddGrantees") + .setRequestMarshaller(ProtoUtils.marshaller(AddGranteesRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(DataPolicy.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + removeGranteesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyService/RemoveGrantees") + .setRequestMarshaller( + ProtoUtils.marshaller(RemoveGranteesRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(DataPolicy.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateDataPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyService/UpdateDataPolicy") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateDataPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(DataPolicy.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteDataPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyService/DeleteDataPolicy") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteDataPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getDataPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyService/GetDataPolicy") + .setRequestMarshaller( + ProtoUtils.marshaller(GetDataPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(DataPolicy.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listDataPoliciesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyService/ListDataPolicies") + .setRequestMarshaller( + ProtoUtils.marshaller(ListDataPoliciesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListDataPoliciesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyService/GetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .build(); + + private static final MethodDescriptor setIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyService/SetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + testIamPermissionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyService/TestIamPermissions") + .setRequestMarshaller( + ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) + .build(); + + private final UnaryCallable createDataPolicyCallable; + private final UnaryCallable addGranteesCallable; + private final UnaryCallable removeGranteesCallable; + private final UnaryCallable updateDataPolicyCallable; + private final UnaryCallable deleteDataPolicyCallable; + private final UnaryCallable getDataPolicyCallable; + private final UnaryCallable + listDataPoliciesCallable; + private final UnaryCallable + listDataPoliciesPagedCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcDataPolicyServiceStub create(DataPolicyServiceStubSettings settings) + throws IOException { + return new GrpcDataPolicyServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcDataPolicyServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcDataPolicyServiceStub( + DataPolicyServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcDataPolicyServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcDataPolicyServiceStub( + DataPolicyServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcDataPolicyServiceStub, 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 GrpcDataPolicyServiceStub( + DataPolicyServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcDataPolicyServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcDataPolicyServiceStub, 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 GrpcDataPolicyServiceStub( + DataPolicyServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings createDataPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createDataPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings addGranteesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(addGranteesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("data_policy", String.valueOf(request.getDataPolicy())); + return builder.build(); + }) + .build(); + GrpcCallSettings removeGranteesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(removeGranteesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("data_policy", String.valueOf(request.getDataPolicy())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateDataPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateDataPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "data_policy.name", String.valueOf(request.getDataPolicy().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteDataPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteDataPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getDataPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getDataPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listDataPoliciesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listDataPoliciesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); + GrpcCallSettings setIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); + GrpcCallSettings + testIamPermissionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); + + this.createDataPolicyCallable = + callableFactory.createUnaryCallable( + createDataPolicyTransportSettings, settings.createDataPolicySettings(), clientContext); + this.addGranteesCallable = + callableFactory.createUnaryCallable( + addGranteesTransportSettings, settings.addGranteesSettings(), clientContext); + this.removeGranteesCallable = + callableFactory.createUnaryCallable( + removeGranteesTransportSettings, settings.removeGranteesSettings(), clientContext); + this.updateDataPolicyCallable = + callableFactory.createUnaryCallable( + updateDataPolicyTransportSettings, settings.updateDataPolicySettings(), clientContext); + this.deleteDataPolicyCallable = + callableFactory.createUnaryCallable( + deleteDataPolicyTransportSettings, settings.deleteDataPolicySettings(), clientContext); + this.getDataPolicyCallable = + callableFactory.createUnaryCallable( + getDataPolicyTransportSettings, settings.getDataPolicySettings(), clientContext); + this.listDataPoliciesCallable = + callableFactory.createUnaryCallable( + listDataPoliciesTransportSettings, settings.listDataPoliciesSettings(), clientContext); + this.listDataPoliciesPagedCallable = + callableFactory.createPagedCallable( + listDataPoliciesTransportSettings, settings.listDataPoliciesSettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable createDataPolicyCallable() { + return createDataPolicyCallable; + } + + @Override + public UnaryCallable addGranteesCallable() { + return addGranteesCallable; + } + + @Override + public UnaryCallable removeGranteesCallable() { + return removeGranteesCallable; + } + + @Override + public UnaryCallable updateDataPolicyCallable() { + return updateDataPolicyCallable; + } + + @Override + public UnaryCallable deleteDataPolicyCallable() { + return deleteDataPolicyCallable; + } + + @Override + public UnaryCallable getDataPolicyCallable() { + return getDataPolicyCallable; + } + + @Override + public UnaryCallable + listDataPoliciesCallable() { + return listDataPoliciesCallable; + } + + @Override + public UnaryCallable + listDataPoliciesPagedCallable() { + return listDataPoliciesPagedCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @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-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/stub/HttpJsonDataPolicyServiceCallableFactory.java b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/stub/HttpJsonDataPolicyServiceCallableFactory.java new file mode 100644 index 000000000000..c3ec8cae78fe --- /dev/null +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/stub/HttpJsonDataPolicyServiceCallableFactory.java @@ -0,0 +1,103 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the DataPolicyService service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonDataPolicyServiceCallableFactory + 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-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/stub/HttpJsonDataPolicyServiceStub.java b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/stub/HttpJsonDataPolicyServiceStub.java new file mode 100644 index 000000000000..ac6a51d39091 --- /dev/null +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/stub/HttpJsonDataPolicyServiceStub.java @@ -0,0 +1,764 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1.stub; + +import static com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient.ListDataPoliciesPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest; +import com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy; +import com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest; +import com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest; +import com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest; +import com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse; +import com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest; +import com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the DataPolicyService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonDataPolicyServiceStub extends DataPolicyServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + createDataPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyService/CreateDataPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta1/{parent=projects/*/locations/*}/dataPolicies", + 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(DataPolicy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + addGranteesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyService/AddGrantees") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta1/{dataPolicy=projects/*/locations/*/dataPolicies/*}:addGrantees", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "dataPolicy", request.getDataPolicy()); + 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().clearDataPolicy().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(DataPolicy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + removeGranteesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyService/RemoveGrantees") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta1/{dataPolicy=projects/*/locations/*/dataPolicies/*}:removeGrantees", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "dataPolicy", request.getDataPolicy()); + 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().clearDataPolicy().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(DataPolicy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateDataPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyService/UpdateDataPolicy") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta1/{dataPolicy.name=projects/*/locations/*/dataPolicies/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "dataPolicy.name", request.getDataPolicy().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("dataPolicy", request.getDataPolicy(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(DataPolicy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteDataPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyService/DeleteDataPolicy") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta1/{name=projects/*/locations/*/dataPolicies/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getDataPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyService/GetDataPolicy") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta1/{name=projects/*/locations/*/dataPolicies/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(DataPolicy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listDataPoliciesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyService/ListDataPolicies") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta1/{parent=projects/*/locations/*}/dataPolicies", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListDataPoliciesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyService/GetIamPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta1/{resource=projects/*/locations/*/dataPolicies/*}:getIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + 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().clearResource().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + setIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyService/SetIamPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta1/{resource=projects/*/locations/*/dataPolicies/*}:setIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + 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().clearResource().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + testIamPermissionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyService/TestIamPermissions") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta1/{resource=projects/*/locations/*/dataPolicies/*}:testIamPermissions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + 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().clearResource().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TestIamPermissionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable createDataPolicyCallable; + private final UnaryCallable addGranteesCallable; + private final UnaryCallable removeGranteesCallable; + private final UnaryCallable updateDataPolicyCallable; + private final UnaryCallable deleteDataPolicyCallable; + private final UnaryCallable getDataPolicyCallable; + private final UnaryCallable + listDataPoliciesCallable; + private final UnaryCallable + listDataPoliciesPagedCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonDataPolicyServiceStub create(DataPolicyServiceStubSettings settings) + throws IOException { + return new HttpJsonDataPolicyServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonDataPolicyServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonDataPolicyServiceStub( + DataPolicyServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonDataPolicyServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonDataPolicyServiceStub( + DataPolicyServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonDataPolicyServiceStub, 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 HttpJsonDataPolicyServiceStub( + DataPolicyServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonDataPolicyServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonDataPolicyServiceStub, 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 HttpJsonDataPolicyServiceStub( + DataPolicyServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings createDataPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createDataPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings addGranteesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(addGranteesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("data_policy", String.valueOf(request.getDataPolicy())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings removeGranteesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(removeGranteesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("data_policy", String.valueOf(request.getDataPolicy())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateDataPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateDataPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "data_policy.name", String.valueOf(request.getDataPolicy().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteDataPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteDataPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getDataPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getDataPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listDataPoliciesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listDataPoliciesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings setIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + testIamPermissionsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); + + this.createDataPolicyCallable = + callableFactory.createUnaryCallable( + createDataPolicyTransportSettings, settings.createDataPolicySettings(), clientContext); + this.addGranteesCallable = + callableFactory.createUnaryCallable( + addGranteesTransportSettings, settings.addGranteesSettings(), clientContext); + this.removeGranteesCallable = + callableFactory.createUnaryCallable( + removeGranteesTransportSettings, settings.removeGranteesSettings(), clientContext); + this.updateDataPolicyCallable = + callableFactory.createUnaryCallable( + updateDataPolicyTransportSettings, settings.updateDataPolicySettings(), clientContext); + this.deleteDataPolicyCallable = + callableFactory.createUnaryCallable( + deleteDataPolicyTransportSettings, settings.deleteDataPolicySettings(), clientContext); + this.getDataPolicyCallable = + callableFactory.createUnaryCallable( + getDataPolicyTransportSettings, settings.getDataPolicySettings(), clientContext); + this.listDataPoliciesCallable = + callableFactory.createUnaryCallable( + listDataPoliciesTransportSettings, settings.listDataPoliciesSettings(), clientContext); + this.listDataPoliciesPagedCallable = + callableFactory.createPagedCallable( + listDataPoliciesTransportSettings, settings.listDataPoliciesSettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(createDataPolicyMethodDescriptor); + methodDescriptors.add(addGranteesMethodDescriptor); + methodDescriptors.add(removeGranteesMethodDescriptor); + methodDescriptors.add(updateDataPolicyMethodDescriptor); + methodDescriptors.add(deleteDataPolicyMethodDescriptor); + methodDescriptors.add(getDataPolicyMethodDescriptor); + methodDescriptors.add(listDataPoliciesMethodDescriptor); + methodDescriptors.add(getIamPolicyMethodDescriptor); + methodDescriptors.add(setIamPolicyMethodDescriptor); + methodDescriptors.add(testIamPermissionsMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable createDataPolicyCallable() { + return createDataPolicyCallable; + } + + @Override + public UnaryCallable addGranteesCallable() { + return addGranteesCallable; + } + + @Override + public UnaryCallable removeGranteesCallable() { + return removeGranteesCallable; + } + + @Override + public UnaryCallable updateDataPolicyCallable() { + return updateDataPolicyCallable; + } + + @Override + public UnaryCallable deleteDataPolicyCallable() { + return deleteDataPolicyCallable; + } + + @Override + public UnaryCallable getDataPolicyCallable() { + return getDataPolicyCallable; + } + + @Override + public UnaryCallable + listDataPoliciesCallable() { + return listDataPoliciesCallable; + } + + @Override + public UnaryCallable + listDataPoliciesPagedCallable() { + return listDataPoliciesPagedCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @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-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.datapolicies.v2beta1/reflect-config.json b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.datapolicies.v2beta1/reflect-config.json new file mode 100644 index 000000000000..0debb76cb2cc --- /dev/null +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.datapolicies.v2beta1/reflect-config.json @@ -0,0 +1,1667 @@ +[ + { + "name": "com.google.api.ClientLibraryDestination", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibraryOrganization", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldBehavior", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.LaunchStage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$ExperimentalFeatures", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$ExperimentalFeatures$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$History", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Style", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy$PredefinedExpression", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy$DataPolicyType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy$Version", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditConfigDelta", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditConfigDelta$Action", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditConfigDelta$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditLogConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditLogConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditLogConfig$LogType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.Binding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.Binding$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.BindingDelta", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.BindingDelta$Action", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.BindingDelta$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.GetIamPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.GetIamPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.GetPolicyOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.GetPolicyOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.Policy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.Policy$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.PolicyDelta", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.PolicyDelta$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.SetIamPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.SetIamPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.TestIamPermissionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.TestIamPermissionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.TestIamPermissionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.TestIamPermissionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$Edition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$VerificationState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$EnumType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$FieldPresence", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$JsonFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$MessageEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$RepeatedFieldEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Utf8Validation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Label", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$CType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$JSType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionRetention", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionTargetType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$OptimizeMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Semantic", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$IdempotencyLevel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FieldMask", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FieldMask$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.Expr", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.Expr$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + } +] \ No newline at end of file diff --git a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/test/java/com/google/cloud/bigquery/datapolicies/v2beta1/DataPolicyServiceClientHttpJsonTest.java b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/test/java/com/google/cloud/bigquery/datapolicies/v2beta1/DataPolicyServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..0a5aef16c8e1 --- /dev/null +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/test/java/com/google/cloud/bigquery/datapolicies/v2beta1/DataPolicyServiceClientHttpJsonTest.java @@ -0,0 +1,899 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1; + +import static com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient.ListDataPoliciesPagedResponse; + +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.cloud.bigquery.datapolicies.v2beta1.stub.HttpJsonDataPolicyServiceStub; +import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.ByteString; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class DataPolicyServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static DataPolicyServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonDataPolicyServiceStub.getMethodDescriptors(), + DataPolicyServiceSettings.getDefaultEndpoint()); + DataPolicyServiceSettings settings = + DataPolicyServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + DataPolicyServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = DataPolicyServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void createDataPolicyTest() throws Exception { + DataPolicy expectedResponse = + DataPolicy.newBuilder() + .setName(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString()) + .setDataPolicyId("dataPolicyId1874146231") + .setEtag("etag3123477") + .setPolicyTag("policyTag-225690360") + .addAllGrantees(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + DataPolicy dataPolicy = DataPolicy.newBuilder().build(); + String dataPolicyId = "dataPolicyId1874146231"; + + DataPolicy actualResponse = client.createDataPolicy(parent, dataPolicy, dataPolicyId); + 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 createDataPolicyExceptionTest() 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]"); + DataPolicy dataPolicy = DataPolicy.newBuilder().build(); + String dataPolicyId = "dataPolicyId1874146231"; + client.createDataPolicy(parent, dataPolicy, dataPolicyId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createDataPolicyTest2() throws Exception { + DataPolicy expectedResponse = + DataPolicy.newBuilder() + .setName(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString()) + .setDataPolicyId("dataPolicyId1874146231") + .setEtag("etag3123477") + .setPolicyTag("policyTag-225690360") + .addAllGrantees(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + DataPolicy dataPolicy = DataPolicy.newBuilder().build(); + String dataPolicyId = "dataPolicyId1874146231"; + + DataPolicy actualResponse = client.createDataPolicy(parent, dataPolicy, dataPolicyId); + 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 createDataPolicyExceptionTest2() 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"; + DataPolicy dataPolicy = DataPolicy.newBuilder().build(); + String dataPolicyId = "dataPolicyId1874146231"; + client.createDataPolicy(parent, dataPolicy, dataPolicyId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void addGranteesTest() throws Exception { + DataPolicy expectedResponse = + DataPolicy.newBuilder() + .setName(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString()) + .setDataPolicyId("dataPolicyId1874146231") + .setEtag("etag3123477") + .setPolicyTag("policyTag-225690360") + .addAllGrantees(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + DataPolicyName dataPolicy = DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]"); + List grantees = new ArrayList<>(); + + DataPolicy actualResponse = client.addGrantees(dataPolicy, grantees); + 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 addGranteesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DataPolicyName dataPolicy = DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]"); + List grantees = new ArrayList<>(); + client.addGrantees(dataPolicy, grantees); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void addGranteesTest2() throws Exception { + DataPolicy expectedResponse = + DataPolicy.newBuilder() + .setName(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString()) + .setDataPolicyId("dataPolicyId1874146231") + .setEtag("etag3123477") + .setPolicyTag("policyTag-225690360") + .addAllGrantees(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String dataPolicy = + "projects/project-1209/locations/location-1209/dataPolicies/dataPolicie-1209"; + List grantees = new ArrayList<>(); + + DataPolicy actualResponse = client.addGrantees(dataPolicy, grantees); + 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 addGranteesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String dataPolicy = + "projects/project-1209/locations/location-1209/dataPolicies/dataPolicie-1209"; + List grantees = new ArrayList<>(); + client.addGrantees(dataPolicy, grantees); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void removeGranteesTest() throws Exception { + DataPolicy expectedResponse = + DataPolicy.newBuilder() + .setName(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString()) + .setDataPolicyId("dataPolicyId1874146231") + .setEtag("etag3123477") + .setPolicyTag("policyTag-225690360") + .addAllGrantees(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + DataPolicyName dataPolicy = DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]"); + List grantees = new ArrayList<>(); + + DataPolicy actualResponse = client.removeGrantees(dataPolicy, grantees); + 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 removeGranteesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DataPolicyName dataPolicy = DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]"); + List grantees = new ArrayList<>(); + client.removeGrantees(dataPolicy, grantees); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void removeGranteesTest2() throws Exception { + DataPolicy expectedResponse = + DataPolicy.newBuilder() + .setName(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString()) + .setDataPolicyId("dataPolicyId1874146231") + .setEtag("etag3123477") + .setPolicyTag("policyTag-225690360") + .addAllGrantees(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String dataPolicy = + "projects/project-1209/locations/location-1209/dataPolicies/dataPolicie-1209"; + List grantees = new ArrayList<>(); + + DataPolicy actualResponse = client.removeGrantees(dataPolicy, grantees); + 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 removeGranteesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String dataPolicy = + "projects/project-1209/locations/location-1209/dataPolicies/dataPolicie-1209"; + List grantees = new ArrayList<>(); + client.removeGrantees(dataPolicy, grantees); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateDataPolicyTest() throws Exception { + DataPolicy expectedResponse = + DataPolicy.newBuilder() + .setName(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString()) + .setDataPolicyId("dataPolicyId1874146231") + .setEtag("etag3123477") + .setPolicyTag("policyTag-225690360") + .addAllGrantees(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + DataPolicy dataPolicy = + DataPolicy.newBuilder() + .setName(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString()) + .setDataPolicyId("dataPolicyId1874146231") + .setEtag("etag3123477") + .setPolicyTag("policyTag-225690360") + .addAllGrantees(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + DataPolicy actualResponse = client.updateDataPolicy(dataPolicy, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateDataPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DataPolicy dataPolicy = + DataPolicy.newBuilder() + .setName(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString()) + .setDataPolicyId("dataPolicyId1874146231") + .setEtag("etag3123477") + .setPolicyTag("policyTag-225690360") + .addAllGrantees(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateDataPolicy(dataPolicy, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteDataPolicyTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + DataPolicyName name = DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]"); + + client.deleteDataPolicy(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteDataPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DataPolicyName name = DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]"); + client.deleteDataPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteDataPolicyTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-2886/locations/location-2886/dataPolicies/dataPolicie-2886"; + + client.deleteDataPolicy(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteDataPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-2886/locations/location-2886/dataPolicies/dataPolicie-2886"; + client.deleteDataPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDataPolicyTest() throws Exception { + DataPolicy expectedResponse = + DataPolicy.newBuilder() + .setName(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString()) + .setDataPolicyId("dataPolicyId1874146231") + .setEtag("etag3123477") + .setPolicyTag("policyTag-225690360") + .addAllGrantees(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + DataPolicyName name = DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]"); + + DataPolicy actualResponse = client.getDataPolicy(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 getDataPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DataPolicyName name = DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]"); + client.getDataPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDataPolicyTest2() throws Exception { + DataPolicy expectedResponse = + DataPolicy.newBuilder() + .setName(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString()) + .setDataPolicyId("dataPolicyId1874146231") + .setEtag("etag3123477") + .setPolicyTag("policyTag-225690360") + .addAllGrantees(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-2886/locations/location-2886/dataPolicies/dataPolicie-2886"; + + DataPolicy actualResponse = client.getDataPolicy(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 getDataPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-2886/locations/location-2886/dataPolicies/dataPolicie-2886"; + client.getDataPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDataPoliciesTest() throws Exception { + DataPolicy responsesElement = DataPolicy.newBuilder().build(); + ListDataPoliciesResponse expectedResponse = + ListDataPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllDataPolicies(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListDataPoliciesPagedResponse pagedListResponse = client.listDataPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDataPoliciesList().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 listDataPoliciesExceptionTest() 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.listDataPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDataPoliciesTest2() throws Exception { + DataPolicy responsesElement = DataPolicy.newBuilder().build(); + ListDataPoliciesResponse expectedResponse = + ListDataPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllDataPolicies(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListDataPoliciesPagedResponse pagedListResponse = client.listDataPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDataPoliciesList().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 listDataPoliciesExceptionTest2() 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.listDataPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + + Policy actualResponse = client.getIamPolicy(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 getIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + client.getIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + Policy actualResponse = client.setIamPolicy(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 setIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.setIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(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 testIamPermissionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + client.testIamPermissions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/test/java/com/google/cloud/bigquery/datapolicies/v2beta1/DataPolicyServiceClientTest.java b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/test/java/com/google/cloud/bigquery/datapolicies/v2beta1/DataPolicyServiceClientTest.java new file mode 100644 index 000000000000..eda574ef00ab --- /dev/null +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/test/java/com/google/cloud/bigquery/datapolicies/v2beta1/DataPolicyServiceClientTest.java @@ -0,0 +1,801 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1; + +import static com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient.ListDataPoliciesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.ByteString; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class DataPolicyServiceClientTest { + private static MockDataPolicyService mockDataPolicyService; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private DataPolicyServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockDataPolicyService = new MockDataPolicyService(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockDataPolicyService)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + DataPolicyServiceSettings settings = + DataPolicyServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = DataPolicyServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void createDataPolicyTest() throws Exception { + DataPolicy expectedResponse = + DataPolicy.newBuilder() + .setName(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString()) + .setDataPolicyId("dataPolicyId1874146231") + .setEtag("etag3123477") + .setPolicyTag("policyTag-225690360") + .addAllGrantees(new ArrayList()) + .build(); + mockDataPolicyService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + DataPolicy dataPolicy = DataPolicy.newBuilder().build(); + String dataPolicyId = "dataPolicyId1874146231"; + + DataPolicy actualResponse = client.createDataPolicy(parent, dataPolicy, dataPolicyId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataPolicyService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateDataPolicyRequest actualRequest = ((CreateDataPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(dataPolicy, actualRequest.getDataPolicy()); + Assert.assertEquals(dataPolicyId, actualRequest.getDataPolicyId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createDataPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataPolicyService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + DataPolicy dataPolicy = DataPolicy.newBuilder().build(); + String dataPolicyId = "dataPolicyId1874146231"; + client.createDataPolicy(parent, dataPolicy, dataPolicyId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createDataPolicyTest2() throws Exception { + DataPolicy expectedResponse = + DataPolicy.newBuilder() + .setName(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString()) + .setDataPolicyId("dataPolicyId1874146231") + .setEtag("etag3123477") + .setPolicyTag("policyTag-225690360") + .addAllGrantees(new ArrayList()) + .build(); + mockDataPolicyService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + DataPolicy dataPolicy = DataPolicy.newBuilder().build(); + String dataPolicyId = "dataPolicyId1874146231"; + + DataPolicy actualResponse = client.createDataPolicy(parent, dataPolicy, dataPolicyId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataPolicyService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateDataPolicyRequest actualRequest = ((CreateDataPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(dataPolicy, actualRequest.getDataPolicy()); + Assert.assertEquals(dataPolicyId, actualRequest.getDataPolicyId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createDataPolicyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataPolicyService.addException(exception); + + try { + String parent = "parent-995424086"; + DataPolicy dataPolicy = DataPolicy.newBuilder().build(); + String dataPolicyId = "dataPolicyId1874146231"; + client.createDataPolicy(parent, dataPolicy, dataPolicyId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void addGranteesTest() throws Exception { + DataPolicy expectedResponse = + DataPolicy.newBuilder() + .setName(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString()) + .setDataPolicyId("dataPolicyId1874146231") + .setEtag("etag3123477") + .setPolicyTag("policyTag-225690360") + .addAllGrantees(new ArrayList()) + .build(); + mockDataPolicyService.addResponse(expectedResponse); + + DataPolicyName dataPolicy = DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]"); + List grantees = new ArrayList<>(); + + DataPolicy actualResponse = client.addGrantees(dataPolicy, grantees); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataPolicyService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + AddGranteesRequest actualRequest = ((AddGranteesRequest) actualRequests.get(0)); + + Assert.assertEquals(dataPolicy.toString(), actualRequest.getDataPolicy()); + Assert.assertEquals(grantees, actualRequest.getGranteesList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void addGranteesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataPolicyService.addException(exception); + + try { + DataPolicyName dataPolicy = DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]"); + List grantees = new ArrayList<>(); + client.addGrantees(dataPolicy, grantees); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void addGranteesTest2() throws Exception { + DataPolicy expectedResponse = + DataPolicy.newBuilder() + .setName(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString()) + .setDataPolicyId("dataPolicyId1874146231") + .setEtag("etag3123477") + .setPolicyTag("policyTag-225690360") + .addAllGrantees(new ArrayList()) + .build(); + mockDataPolicyService.addResponse(expectedResponse); + + String dataPolicy = "dataPolicy1186306428"; + List grantees = new ArrayList<>(); + + DataPolicy actualResponse = client.addGrantees(dataPolicy, grantees); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataPolicyService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + AddGranteesRequest actualRequest = ((AddGranteesRequest) actualRequests.get(0)); + + Assert.assertEquals(dataPolicy, actualRequest.getDataPolicy()); + Assert.assertEquals(grantees, actualRequest.getGranteesList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void addGranteesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataPolicyService.addException(exception); + + try { + String dataPolicy = "dataPolicy1186306428"; + List grantees = new ArrayList<>(); + client.addGrantees(dataPolicy, grantees); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void removeGranteesTest() throws Exception { + DataPolicy expectedResponse = + DataPolicy.newBuilder() + .setName(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString()) + .setDataPolicyId("dataPolicyId1874146231") + .setEtag("etag3123477") + .setPolicyTag("policyTag-225690360") + .addAllGrantees(new ArrayList()) + .build(); + mockDataPolicyService.addResponse(expectedResponse); + + DataPolicyName dataPolicy = DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]"); + List grantees = new ArrayList<>(); + + DataPolicy actualResponse = client.removeGrantees(dataPolicy, grantees); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataPolicyService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RemoveGranteesRequest actualRequest = ((RemoveGranteesRequest) actualRequests.get(0)); + + Assert.assertEquals(dataPolicy.toString(), actualRequest.getDataPolicy()); + Assert.assertEquals(grantees, actualRequest.getGranteesList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void removeGranteesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataPolicyService.addException(exception); + + try { + DataPolicyName dataPolicy = DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]"); + List grantees = new ArrayList<>(); + client.removeGrantees(dataPolicy, grantees); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void removeGranteesTest2() throws Exception { + DataPolicy expectedResponse = + DataPolicy.newBuilder() + .setName(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString()) + .setDataPolicyId("dataPolicyId1874146231") + .setEtag("etag3123477") + .setPolicyTag("policyTag-225690360") + .addAllGrantees(new ArrayList()) + .build(); + mockDataPolicyService.addResponse(expectedResponse); + + String dataPolicy = "dataPolicy1186306428"; + List grantees = new ArrayList<>(); + + DataPolicy actualResponse = client.removeGrantees(dataPolicy, grantees); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataPolicyService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RemoveGranteesRequest actualRequest = ((RemoveGranteesRequest) actualRequests.get(0)); + + Assert.assertEquals(dataPolicy, actualRequest.getDataPolicy()); + Assert.assertEquals(grantees, actualRequest.getGranteesList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void removeGranteesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataPolicyService.addException(exception); + + try { + String dataPolicy = "dataPolicy1186306428"; + List grantees = new ArrayList<>(); + client.removeGrantees(dataPolicy, grantees); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateDataPolicyTest() throws Exception { + DataPolicy expectedResponse = + DataPolicy.newBuilder() + .setName(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString()) + .setDataPolicyId("dataPolicyId1874146231") + .setEtag("etag3123477") + .setPolicyTag("policyTag-225690360") + .addAllGrantees(new ArrayList()) + .build(); + mockDataPolicyService.addResponse(expectedResponse); + + DataPolicy dataPolicy = DataPolicy.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + DataPolicy actualResponse = client.updateDataPolicy(dataPolicy, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataPolicyService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateDataPolicyRequest actualRequest = ((UpdateDataPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(dataPolicy, actualRequest.getDataPolicy()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateDataPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataPolicyService.addException(exception); + + try { + DataPolicy dataPolicy = DataPolicy.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateDataPolicy(dataPolicy, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteDataPolicyTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDataPolicyService.addResponse(expectedResponse); + + DataPolicyName name = DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]"); + + client.deleteDataPolicy(name); + + List actualRequests = mockDataPolicyService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteDataPolicyRequest actualRequest = ((DeleteDataPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteDataPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataPolicyService.addException(exception); + + try { + DataPolicyName name = DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]"); + client.deleteDataPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteDataPolicyTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDataPolicyService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteDataPolicy(name); + + List actualRequests = mockDataPolicyService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteDataPolicyRequest actualRequest = ((DeleteDataPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteDataPolicyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataPolicyService.addException(exception); + + try { + String name = "name3373707"; + client.deleteDataPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDataPolicyTest() throws Exception { + DataPolicy expectedResponse = + DataPolicy.newBuilder() + .setName(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString()) + .setDataPolicyId("dataPolicyId1874146231") + .setEtag("etag3123477") + .setPolicyTag("policyTag-225690360") + .addAllGrantees(new ArrayList()) + .build(); + mockDataPolicyService.addResponse(expectedResponse); + + DataPolicyName name = DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]"); + + DataPolicy actualResponse = client.getDataPolicy(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataPolicyService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDataPolicyRequest actualRequest = ((GetDataPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDataPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataPolicyService.addException(exception); + + try { + DataPolicyName name = DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]"); + client.getDataPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDataPolicyTest2() throws Exception { + DataPolicy expectedResponse = + DataPolicy.newBuilder() + .setName(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString()) + .setDataPolicyId("dataPolicyId1874146231") + .setEtag("etag3123477") + .setPolicyTag("policyTag-225690360") + .addAllGrantees(new ArrayList()) + .build(); + mockDataPolicyService.addResponse(expectedResponse); + + String name = "name3373707"; + + DataPolicy actualResponse = client.getDataPolicy(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataPolicyService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDataPolicyRequest actualRequest = ((GetDataPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDataPolicyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataPolicyService.addException(exception); + + try { + String name = "name3373707"; + client.getDataPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDataPoliciesTest() throws Exception { + DataPolicy responsesElement = DataPolicy.newBuilder().build(); + ListDataPoliciesResponse expectedResponse = + ListDataPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllDataPolicies(Arrays.asList(responsesElement)) + .build(); + mockDataPolicyService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListDataPoliciesPagedResponse pagedListResponse = client.listDataPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDataPoliciesList().get(0), resources.get(0)); + + List actualRequests = mockDataPolicyService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDataPoliciesRequest actualRequest = ((ListDataPoliciesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDataPoliciesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataPolicyService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listDataPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDataPoliciesTest2() throws Exception { + DataPolicy responsesElement = DataPolicy.newBuilder().build(); + ListDataPoliciesResponse expectedResponse = + ListDataPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllDataPolicies(Arrays.asList(responsesElement)) + .build(); + mockDataPolicyService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListDataPoliciesPagedResponse pagedListResponse = client.listDataPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDataPoliciesList().get(0), resources.get(0)); + + List actualRequests = mockDataPolicyService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDataPoliciesRequest actualRequest = ((ListDataPoliciesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDataPoliciesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataPolicyService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listDataPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockDataPolicyService.addResponse(expectedResponse); + + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + + Policy actualResponse = client.getIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataPolicyService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getOptions(), actualRequest.getOptions()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataPolicyService.addException(exception); + + try { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + client.getIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockDataPolicyService.addResponse(expectedResponse); + + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + Policy actualResponse = client.setIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataPolicyService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy()); + Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataPolicyService.addException(exception); + + try { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.setIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockDataPolicyService.addResponse(expectedResponse); + + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataPolicyService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataPolicyService.addException(exception); + + try { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + client.testIamPermissions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/test/java/com/google/cloud/bigquery/datapolicies/v2beta1/MockDataPolicyService.java b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/test/java/com/google/cloud/bigquery/datapolicies/v2beta1/MockDataPolicyService.java new file mode 100644 index 000000000000..2b1bd848ebbb --- /dev/null +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/test/java/com/google/cloud/bigquery/datapolicies/v2beta1/MockDataPolicyService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1; + +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 MockDataPolicyService implements MockGrpcService { + private final MockDataPolicyServiceImpl serviceImpl; + + public MockDataPolicyService() { + serviceImpl = new MockDataPolicyServiceImpl(); + } + + @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-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/test/java/com/google/cloud/bigquery/datapolicies/v2beta1/MockDataPolicyServiceImpl.java b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/test/java/com/google/cloud/bigquery/datapolicies/v2beta1/MockDataPolicyServiceImpl.java new file mode 100644 index 000000000000..d3baf877bd76 --- /dev/null +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/test/java/com/google/cloud/bigquery/datapolicies/v2beta1/MockDataPolicyServiceImpl.java @@ -0,0 +1,274 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1; + +import com.google.api.core.BetaApi; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceGrpc.DataPolicyServiceImplBase; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockDataPolicyServiceImpl extends DataPolicyServiceImplBase { + private List requests; + private Queue responses; + + public MockDataPolicyServiceImpl() { + 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 createDataPolicy( + CreateDataPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DataPolicy) { + requests.add(request); + responseObserver.onNext(((DataPolicy) 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 CreateDataPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DataPolicy.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void addGrantees(AddGranteesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DataPolicy) { + requests.add(request); + responseObserver.onNext(((DataPolicy) 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 AddGrantees, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DataPolicy.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void removeGrantees( + RemoveGranteesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DataPolicy) { + requests.add(request); + responseObserver.onNext(((DataPolicy) 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 RemoveGrantees, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DataPolicy.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateDataPolicy( + UpdateDataPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DataPolicy) { + requests.add(request); + responseObserver.onNext(((DataPolicy) 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 UpdateDataPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DataPolicy.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteDataPolicy( + DeleteDataPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteDataPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getDataPolicy( + GetDataPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DataPolicy) { + requests.add(request); + responseObserver.onNext(((DataPolicy) 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 GetDataPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DataPolicy.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listDataPolicies( + ListDataPoliciesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListDataPoliciesResponse) { + requests.add(request); + responseObserver.onNext(((ListDataPoliciesResponse) 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 ListDataPolicies, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListDataPoliciesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getIamPolicy(GetIamPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Policy) { + requests.add(request); + responseObserver.onNext(((Policy) 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 GetIamPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Policy.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void setIamPolicy(SetIamPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Policy) { + requests.add(request); + responseObserver.onNext(((Policy) 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 SetIamPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Policy.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void testIamPermissions( + TestIamPermissionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof TestIamPermissionsResponse) { + requests.add(request); + responseObserver.onNext(((TestIamPermissionsResponse) 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 TestIamPermissions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TestIamPermissionsResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1/pom.xml b/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1/pom.xml index e4dbd374d349..687385bd0db7 100644 --- a/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1/pom.xml +++ b/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v1 - 0.64.0 + 0.65.0 grpc-google-cloud-bigquerydatapolicy-v1 GRPC library for google-cloud-bigquerydatapolicy com.google.cloud google-cloud-bigquerydatapolicy-parent - 0.64.0 + 0.65.0 diff --git a/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1beta1/pom.xml b/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1beta1/pom.xml index faf192e0ddf8..f98fd34e83a4 100644 --- a/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1beta1/pom.xml +++ b/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v1beta1 - 0.64.0 + 0.65.0 grpc-google-cloud-bigquerydatapolicy-v1beta1 GRPC library for google-cloud-bigquerydatapolicy com.google.cloud google-cloud-bigquerydatapolicy-parent - 0.64.0 + 0.65.0 diff --git a/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v2beta1/pom.xml b/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v2beta1/pom.xml new file mode 100644 index 000000000000..fb4ed7cbea4f --- /dev/null +++ b/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v2beta1/pom.xml @@ -0,0 +1,45 @@ + + 4.0.0 + com.google.api.grpc + grpc-google-cloud-bigquerydatapolicy-v2beta1 + 0.65.0 + grpc-google-cloud-bigquerydatapolicy-v2beta1 + GRPC library for google-cloud-bigquerydatapolicy + + com.google.cloud + google-cloud-bigquerydatapolicy-parent + 0.65.0 + + + + io.grpc + grpc-api + + + io.grpc + grpc-stub + + + io.grpc + grpc-protobuf + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-common-protos + + + com.google.api.grpc + proto-google-cloud-bigquerydatapolicy-v2beta1 + + + com.google.guava + guava + + + diff --git a/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/DataPolicyServiceGrpc.java b/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/DataPolicyServiceGrpc.java new file mode 100644 index 000000000000..b4d0e4eab2b0 --- /dev/null +++ b/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/DataPolicyServiceGrpc.java @@ -0,0 +1,1651 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Data Policy Service provides APIs for managing the BigQuery Data Policy.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/bigquery/datapolicies/v2beta1/datapolicy.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class DataPolicyServiceGrpc { + + private DataPolicyServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest, + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy> + getCreateDataPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateDataPolicy", + requestType = com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest.class, + responseType = com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest, + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy> + getCreateDataPolicyMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest, + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy> + getCreateDataPolicyMethod; + if ((getCreateDataPolicyMethod = DataPolicyServiceGrpc.getCreateDataPolicyMethod) == null) { + synchronized (DataPolicyServiceGrpc.class) { + if ((getCreateDataPolicyMethod = DataPolicyServiceGrpc.getCreateDataPolicyMethod) == null) { + DataPolicyServiceGrpc.getCreateDataPolicyMethod = + getCreateDataPolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDataPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy + .getDefaultInstance())) + .setSchemaDescriptor( + new DataPolicyServiceMethodDescriptorSupplier("CreateDataPolicy")) + .build(); + } + } + } + return getCreateDataPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest, + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy> + getAddGranteesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "AddGrantees", + requestType = com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest.class, + responseType = com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest, + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy> + getAddGranteesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest, + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy> + getAddGranteesMethod; + if ((getAddGranteesMethod = DataPolicyServiceGrpc.getAddGranteesMethod) == null) { + synchronized (DataPolicyServiceGrpc.class) { + if ((getAddGranteesMethod = DataPolicyServiceGrpc.getAddGranteesMethod) == null) { + DataPolicyServiceGrpc.getAddGranteesMethod = + getAddGranteesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AddGrantees")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy + .getDefaultInstance())) + .setSchemaDescriptor( + new DataPolicyServiceMethodDescriptorSupplier("AddGrantees")) + .build(); + } + } + } + return getAddGranteesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest, + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy> + getRemoveGranteesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RemoveGrantees", + requestType = com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest.class, + responseType = com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest, + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy> + getRemoveGranteesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest, + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy> + getRemoveGranteesMethod; + if ((getRemoveGranteesMethod = DataPolicyServiceGrpc.getRemoveGranteesMethod) == null) { + synchronized (DataPolicyServiceGrpc.class) { + if ((getRemoveGranteesMethod = DataPolicyServiceGrpc.getRemoveGranteesMethod) == null) { + DataPolicyServiceGrpc.getRemoveGranteesMethod = + getRemoveGranteesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RemoveGrantees")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy + .getDefaultInstance())) + .setSchemaDescriptor( + new DataPolicyServiceMethodDescriptorSupplier("RemoveGrantees")) + .build(); + } + } + } + return getRemoveGranteesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest, + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy> + getUpdateDataPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateDataPolicy", + requestType = com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest.class, + responseType = com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest, + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy> + getUpdateDataPolicyMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest, + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy> + getUpdateDataPolicyMethod; + if ((getUpdateDataPolicyMethod = DataPolicyServiceGrpc.getUpdateDataPolicyMethod) == null) { + synchronized (DataPolicyServiceGrpc.class) { + if ((getUpdateDataPolicyMethod = DataPolicyServiceGrpc.getUpdateDataPolicyMethod) == null) { + DataPolicyServiceGrpc.getUpdateDataPolicyMethod = + getUpdateDataPolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDataPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy + .getDefaultInstance())) + .setSchemaDescriptor( + new DataPolicyServiceMethodDescriptorSupplier("UpdateDataPolicy")) + .build(); + } + } + } + return getUpdateDataPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest, + com.google.protobuf.Empty> + getDeleteDataPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteDataPolicy", + requestType = com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest, + com.google.protobuf.Empty> + getDeleteDataPolicyMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest, + com.google.protobuf.Empty> + getDeleteDataPolicyMethod; + if ((getDeleteDataPolicyMethod = DataPolicyServiceGrpc.getDeleteDataPolicyMethod) == null) { + synchronized (DataPolicyServiceGrpc.class) { + if ((getDeleteDataPolicyMethod = DataPolicyServiceGrpc.getDeleteDataPolicyMethod) == null) { + DataPolicyServiceGrpc.getDeleteDataPolicyMethod = + getDeleteDataPolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDataPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new DataPolicyServiceMethodDescriptorSupplier("DeleteDataPolicy")) + .build(); + } + } + } + return getDeleteDataPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest, + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy> + getGetDataPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDataPolicy", + requestType = com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest.class, + responseType = com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest, + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy> + getGetDataPolicyMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest, + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy> + getGetDataPolicyMethod; + if ((getGetDataPolicyMethod = DataPolicyServiceGrpc.getGetDataPolicyMethod) == null) { + synchronized (DataPolicyServiceGrpc.class) { + if ((getGetDataPolicyMethod = DataPolicyServiceGrpc.getGetDataPolicyMethod) == null) { + DataPolicyServiceGrpc.getGetDataPolicyMethod = + getGetDataPolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDataPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy + .getDefaultInstance())) + .setSchemaDescriptor( + new DataPolicyServiceMethodDescriptorSupplier("GetDataPolicy")) + .build(); + } + } + } + return getGetDataPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest, + com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse> + getListDataPoliciesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDataPolicies", + requestType = com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest.class, + responseType = com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest, + com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse> + getListDataPoliciesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest, + com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse> + getListDataPoliciesMethod; + if ((getListDataPoliciesMethod = DataPolicyServiceGrpc.getListDataPoliciesMethod) == null) { + synchronized (DataPolicyServiceGrpc.class) { + if ((getListDataPoliciesMethod = DataPolicyServiceGrpc.getListDataPoliciesMethod) == null) { + DataPolicyServiceGrpc.getListDataPoliciesMethod = + getListDataPoliciesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDataPolicies")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datapolicies.v2beta1 + .ListDataPoliciesResponse.getDefaultInstance())) + .setSchemaDescriptor( + new DataPolicyServiceMethodDescriptorSupplier("ListDataPolicies")) + .build(); + } + } + } + return getListDataPoliciesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> + getGetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", + requestType = com.google.iam.v1.GetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> + getGetIamPolicyMethod() { + io.grpc.MethodDescriptor + getGetIamPolicyMethod; + if ((getGetIamPolicyMethod = DataPolicyServiceGrpc.getGetIamPolicyMethod) == null) { + synchronized (DataPolicyServiceGrpc.class) { + if ((getGetIamPolicyMethod = DataPolicyServiceGrpc.getGetIamPolicyMethod) == null) { + DataPolicyServiceGrpc.getGetIamPolicyMethod = + getGetIamPolicyMethod = + io.grpc.MethodDescriptor + .newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor( + new DataPolicyServiceMethodDescriptorSupplier("GetIamPolicy")) + .build(); + } + } + } + return getGetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> + getSetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", + requestType = com.google.iam.v1.SetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> + getSetIamPolicyMethod() { + io.grpc.MethodDescriptor + getSetIamPolicyMethod; + if ((getSetIamPolicyMethod = DataPolicyServiceGrpc.getSetIamPolicyMethod) == null) { + synchronized (DataPolicyServiceGrpc.class) { + if ((getSetIamPolicyMethod = DataPolicyServiceGrpc.getSetIamPolicyMethod) == null) { + DataPolicyServiceGrpc.getSetIamPolicyMethod = + getSetIamPolicyMethod = + io.grpc.MethodDescriptor + .newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor( + new DataPolicyServiceMethodDescriptorSupplier("SetIamPolicy")) + .build(); + } + } + } + return getSetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", + requestType = com.google.iam.v1.TestIamPermissionsRequest.class, + responseType = com.google.iam.v1.TestIamPermissionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethod() { + io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethod; + if ((getTestIamPermissionsMethod = DataPolicyServiceGrpc.getTestIamPermissionsMethod) == null) { + synchronized (DataPolicyServiceGrpc.class) { + if ((getTestIamPermissionsMethod = DataPolicyServiceGrpc.getTestIamPermissionsMethod) + == null) { + DataPolicyServiceGrpc.getTestIamPermissionsMethod = + getTestIamPermissionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new DataPolicyServiceMethodDescriptorSupplier("TestIamPermissions")) + .build(); + } + } + } + return getTestIamPermissionsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static DataPolicyServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DataPolicyServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataPolicyServiceStub(channel, callOptions); + } + }; + return DataPolicyServiceStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static DataPolicyServiceBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DataPolicyServiceBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataPolicyServiceBlockingV2Stub(channel, callOptions); + } + }; + return DataPolicyServiceBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static DataPolicyServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DataPolicyServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataPolicyServiceBlockingStub(channel, callOptions); + } + }; + return DataPolicyServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static DataPolicyServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DataPolicyServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataPolicyServiceFutureStub(channel, callOptions); + } + }; + return DataPolicyServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Data Policy Service provides APIs for managing the BigQuery Data Policy.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Creates a new data policy under a project with the given `data_policy_id`
+     * (used as the display name), and data policy type.
+     * 
+ */ + default void createDataPolicy( + com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateDataPolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Adds new grantees to a data policy.
+     * The new grantees will be added to the existing grantees.
+     * If the request contains a duplicate grantee, the grantee will be ignored.
+     * If the request contains a grantee that already exists, the grantee will be
+     * ignored.
+     * 
+ */ + default void addGrantees( + com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getAddGranteesMethod(), responseObserver); + } + + /** + * + * + *
+     * Removes grantees from a data policy.
+     * The grantees will be removed from the existing grantees.
+     * If the request contains a grantee that does not exist, the grantee will be
+     * ignored.
+     * 
+ */ + default void removeGrantees( + com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRemoveGranteesMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the metadata for an existing data policy. The target data policy
+     * can be specified by the resource name.
+     * 
+ */ + default void updateDataPolicy( + com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateDataPolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes the data policy specified by its resource name.
+     * 
+ */ + default void deleteDataPolicy( + com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteDataPolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets the data policy specified by its resource name.
+     * 
+ */ + default void getDataPolicy( + com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDataPolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * List all of the data policies in the specified parent project.
+     * 
+ */ + default void listDataPolicies( + com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDataPoliciesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets the IAM policy for the specified data policy.
+     * 
+ */ + default void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetIamPolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Sets the IAM policy for the specified data policy.
+     * 
+ */ + default void setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetIamPolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the caller's permission on the specified data policy resource.
+     * 
+ */ + default void testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getTestIamPermissionsMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service DataPolicyService. + * + *
+   * Data Policy Service provides APIs for managing the BigQuery Data Policy.
+   * 
+ */ + public abstract static class DataPolicyServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return DataPolicyServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service DataPolicyService. + * + *
+   * Data Policy Service provides APIs for managing the BigQuery Data Policy.
+   * 
+ */ + public static final class DataPolicyServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private DataPolicyServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DataPolicyServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataPolicyServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new data policy under a project with the given `data_policy_id`
+     * (used as the display name), and data policy type.
+     * 
+ */ + public void createDataPolicy( + com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateDataPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Adds new grantees to a data policy.
+     * The new grantees will be added to the existing grantees.
+     * If the request contains a duplicate grantee, the grantee will be ignored.
+     * If the request contains a grantee that already exists, the grantee will be
+     * ignored.
+     * 
+ */ + public void addGrantees( + com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getAddGranteesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Removes grantees from a data policy.
+     * The grantees will be removed from the existing grantees.
+     * If the request contains a grantee that does not exist, the grantee will be
+     * ignored.
+     * 
+ */ + public void removeGrantees( + com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRemoveGranteesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the metadata for an existing data policy. The target data policy
+     * can be specified by the resource name.
+     * 
+ */ + public void updateDataPolicy( + com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateDataPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes the data policy specified by its resource name.
+     * 
+ */ + public void deleteDataPolicy( + com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteDataPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets the data policy specified by its resource name.
+     * 
+ */ + public void getDataPolicy( + com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDataPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * List all of the data policies in the specified parent project.
+     * 
+ */ + public void listDataPolicies( + com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDataPoliciesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets the IAM policy for the specified data policy.
+     * 
+ */ + public void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Sets the IAM policy for the specified data policy.
+     * 
+ */ + public void setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the caller's permission on the specified data policy resource.
+     * 
+ */ + public void testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service DataPolicyService. + * + *
+   * Data Policy Service provides APIs for managing the BigQuery Data Policy.
+   * 
+ */ + public static final class DataPolicyServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private DataPolicyServiceBlockingV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DataPolicyServiceBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataPolicyServiceBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new data policy under a project with the given `data_policy_id`
+     * (used as the display name), and data policy type.
+     * 
+ */ + public com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy createDataPolicy( + com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateDataPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Adds new grantees to a data policy.
+     * The new grantees will be added to the existing grantees.
+     * If the request contains a duplicate grantee, the grantee will be ignored.
+     * If the request contains a grantee that already exists, the grantee will be
+     * ignored.
+     * 
+ */ + public com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy addGrantees( + com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAddGranteesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Removes grantees from a data policy.
+     * The grantees will be removed from the existing grantees.
+     * If the request contains a grantee that does not exist, the grantee will be
+     * ignored.
+     * 
+ */ + public com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy removeGrantees( + com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRemoveGranteesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the metadata for an existing data policy. The target data policy
+     * can be specified by the resource name.
+     * 
+ */ + public com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy updateDataPolicy( + com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDataPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes the data policy specified by its resource name.
+     * 
+ */ + public com.google.protobuf.Empty deleteDataPolicy( + com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteDataPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the data policy specified by its resource name.
+     * 
+ */ + public com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy getDataPolicy( + com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDataPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List all of the data policies in the specified parent project.
+     * 
+ */ + public com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse listDataPolicies( + com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDataPoliciesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the IAM policy for the specified data policy.
+     * 
+ */ + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Sets the IAM policy for the specified data policy.
+     * 
+ */ + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the caller's permission on the specified data policy resource.
+     * 
+ */ + public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service DataPolicyService. + * + *
+   * Data Policy Service provides APIs for managing the BigQuery Data Policy.
+   * 
+ */ + public static final class DataPolicyServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private DataPolicyServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DataPolicyServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataPolicyServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new data policy under a project with the given `data_policy_id`
+     * (used as the display name), and data policy type.
+     * 
+ */ + public com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy createDataPolicy( + com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateDataPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Adds new grantees to a data policy.
+     * The new grantees will be added to the existing grantees.
+     * If the request contains a duplicate grantee, the grantee will be ignored.
+     * If the request contains a grantee that already exists, the grantee will be
+     * ignored.
+     * 
+ */ + public com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy addGrantees( + com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAddGranteesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Removes grantees from a data policy.
+     * The grantees will be removed from the existing grantees.
+     * If the request contains a grantee that does not exist, the grantee will be
+     * ignored.
+     * 
+ */ + public com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy removeGrantees( + com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRemoveGranteesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the metadata for an existing data policy. The target data policy
+     * can be specified by the resource name.
+     * 
+ */ + public com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy updateDataPolicy( + com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDataPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes the data policy specified by its resource name.
+     * 
+ */ + public com.google.protobuf.Empty deleteDataPolicy( + com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteDataPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the data policy specified by its resource name.
+     * 
+ */ + public com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy getDataPolicy( + com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDataPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List all of the data policies in the specified parent project.
+     * 
+ */ + public com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse listDataPolicies( + com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDataPoliciesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the IAM policy for the specified data policy.
+     * 
+ */ + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Sets the IAM policy for the specified data policy.
+     * 
+ */ + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the caller's permission on the specified data policy resource.
+     * 
+ */ + public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service DataPolicyService. + * + *
+   * Data Policy Service provides APIs for managing the BigQuery Data Policy.
+   * 
+ */ + public static final class DataPolicyServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private DataPolicyServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DataPolicyServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataPolicyServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new data policy under a project with the given `data_policy_id`
+     * (used as the display name), and data policy type.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy> + createDataPolicy( + com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateDataPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Adds new grantees to a data policy.
+     * The new grantees will be added to the existing grantees.
+     * If the request contains a duplicate grantee, the grantee will be ignored.
+     * If the request contains a grantee that already exists, the grantee will be
+     * ignored.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy> + addGrantees(com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getAddGranteesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Removes grantees from a data policy.
+     * The grantees will be removed from the existing grantees.
+     * If the request contains a grantee that does not exist, the grantee will be
+     * ignored.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy> + removeGrantees( + com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRemoveGranteesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the metadata for an existing data policy. The target data policy
+     * can be specified by the resource name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy> + updateDataPolicy( + com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateDataPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes the data policy specified by its resource name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteDataPolicy( + com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteDataPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets the data policy specified by its resource name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy> + getDataPolicy(com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDataPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List all of the data policies in the specified parent project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse> + listDataPolicies( + com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDataPoliciesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets the IAM policy for the specified data policy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Sets the IAM policy for the specified data policy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the caller's permission on the specified data policy resource.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.iam.v1.TestIamPermissionsResponse> + testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_DATA_POLICY = 0; + private static final int METHODID_ADD_GRANTEES = 1; + private static final int METHODID_REMOVE_GRANTEES = 2; + private static final int METHODID_UPDATE_DATA_POLICY = 3; + private static final int METHODID_DELETE_DATA_POLICY = 4; + private static final int METHODID_GET_DATA_POLICY = 5; + private static final int METHODID_LIST_DATA_POLICIES = 6; + private static final int METHODID_GET_IAM_POLICY = 7; + private static final int METHODID_SET_IAM_POLICY = 8; + private static final int METHODID_TEST_IAM_PERMISSIONS = 9; + + 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_DATA_POLICY: + serviceImpl.createDataPolicy( + (com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy>) + responseObserver); + break; + case METHODID_ADD_GRANTEES: + serviceImpl.addGrantees( + (com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy>) + responseObserver); + break; + case METHODID_REMOVE_GRANTEES: + serviceImpl.removeGrantees( + (com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy>) + responseObserver); + break; + case METHODID_UPDATE_DATA_POLICY: + serviceImpl.updateDataPolicy( + (com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy>) + responseObserver); + break; + case METHODID_DELETE_DATA_POLICY: + serviceImpl.deleteDataPolicy( + (com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_DATA_POLICY: + serviceImpl.getDataPolicy( + (com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy>) + responseObserver); + break; + case METHODID_LIST_DATA_POLICIES: + serviceImpl.listDataPolicies( + (com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse>) + responseObserver); + break; + case METHODID_GET_IAM_POLICY: + serviceImpl.getIamPolicy( + (com.google.iam.v1.GetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_IAM_POLICY: + serviceImpl.setIamPolicy( + (com.google.iam.v1.SetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_TEST_IAM_PERMISSIONS: + serviceImpl.testIamPermissions( + (com.google.iam.v1.TestIamPermissionsRequest) 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( + getCreateDataPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest, + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy>( + service, METHODID_CREATE_DATA_POLICY))) + .addMethod( + getAddGranteesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest, + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy>( + service, METHODID_ADD_GRANTEES))) + .addMethod( + getRemoveGranteesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest, + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy>( + service, METHODID_REMOVE_GRANTEES))) + .addMethod( + getUpdateDataPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest, + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy>( + service, METHODID_UPDATE_DATA_POLICY))) + .addMethod( + getDeleteDataPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_DATA_POLICY))) + .addMethod( + getGetDataPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest, + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy>( + service, METHODID_GET_DATA_POLICY))) + .addMethod( + getListDataPoliciesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest, + com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse>( + service, METHODID_LIST_DATA_POLICIES))) + .addMethod( + getGetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + service, METHODID_GET_IAM_POLICY))) + .addMethod( + getSetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + service, METHODID_SET_IAM_POLICY))) + .addMethod( + getTestIamPermissionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse>( + service, METHODID_TEST_IAM_PERMISSIONS))) + .build(); + } + + private abstract static class DataPolicyServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + DataPolicyServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("DataPolicyService"); + } + } + + private static final class DataPolicyServiceFileDescriptorSupplier + extends DataPolicyServiceBaseDescriptorSupplier { + DataPolicyServiceFileDescriptorSupplier() {} + } + + private static final class DataPolicyServiceMethodDescriptorSupplier + extends DataPolicyServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + DataPolicyServiceMethodDescriptorSupplier(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 (DataPolicyServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new DataPolicyServiceFileDescriptorSupplier()) + .addMethod(getCreateDataPolicyMethod()) + .addMethod(getAddGranteesMethod()) + .addMethod(getRemoveGranteesMethod()) + .addMethod(getUpdateDataPolicyMethod()) + .addMethod(getDeleteDataPolicyMethod()) + .addMethod(getGetDataPolicyMethod()) + .addMethod(getListDataPoliciesMethod()) + .addMethod(getGetIamPolicyMethod()) + .addMethod(getSetIamPolicyMethod()) + .addMethod(getTestIamPermissionsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-bigquerydatapolicy/pom.xml b/java-bigquerydatapolicy/pom.xml index c0602b699b00..083589c97c10 100644 --- a/java-bigquerydatapolicy/pom.xml +++ b/java-bigquerydatapolicy/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bigquerydatapolicy-parent pom - 0.64.0 + 0.65.0 Google BigQuery DataPolicy API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,37 @@ com.google.cloud google-cloud-bigquerydatapolicy - 0.64.0 + 0.65.0 + + + com.google.api.grpc + proto-google-cloud-bigquerydatapolicy-v2beta1 + 0.65.0 + + + com.google.api.grpc + grpc-google-cloud-bigquerydatapolicy-v2beta1 + 0.65.0 com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v1 - 0.64.0 + 0.65.0 com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v1 - 0.64.0 + 0.65.0 com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v1beta1 - 0.64.0 + 0.65.0 com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v1beta1 - 0.64.0 + 0.65.0
@@ -58,8 +68,10 @@ google-cloud-bigquerydatapolicy grpc-google-cloud-bigquerydatapolicy-v1beta1 grpc-google-cloud-bigquerydatapolicy-v1 + grpc-google-cloud-bigquerydatapolicy-v2beta1 proto-google-cloud-bigquerydatapolicy-v1beta1 proto-google-cloud-bigquerydatapolicy-v1 + proto-google-cloud-bigquerydatapolicy-v2beta1 google-cloud-bigquerydatapolicy-bom diff --git a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1/pom.xml b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1/pom.xml index 3d9eee346032..d96b1ad2926a 100644 --- a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1/pom.xml +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v1 - 0.64.0 + 0.65.0 proto-google-cloud-bigquerydatapolicy-v1 Proto library for google-cloud-bigquerydatapolicy com.google.cloud google-cloud-bigquerydatapolicy-parent - 0.64.0 + 0.65.0 diff --git a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1beta1/pom.xml b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1beta1/pom.xml index 9f40065a2585..acafc96506de 100644 --- a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1beta1/pom.xml +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v1beta1 - 0.64.0 + 0.65.0 proto-google-cloud-bigquerydatapolicy-v1beta1 Proto library for google-cloud-bigquerydatapolicy com.google.cloud google-cloud-bigquerydatapolicy-parent - 0.64.0 + 0.65.0 diff --git a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/clirr-ignored-differences.xml b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/clirr-ignored-differences.xml new file mode 100644 index 000000000000..525f26b5dc41 --- /dev/null +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/clirr-ignored-differences.xml @@ -0,0 +1,80 @@ + + + + + 7012 + com/google/cloud/bigquery/datapolicies/v2beta1/*OrBuilder + * get*(*) + + + 7012 + com/google/cloud/bigquery/datapolicies/v2beta1/*OrBuilder + boolean contains*(*) + + + 7012 + com/google/cloud/bigquery/datapolicies/v2beta1/*OrBuilder + boolean has*(*) + + + + 7006 + com/google/cloud/bigquery/datapolicies/v2beta1/** + * getDefaultInstanceForType() + ** + + + 7006 + com/google/cloud/bigquery/datapolicies/v2beta1/** + * addRepeatedField(*) + ** + + + 7006 + com/google/cloud/bigquery/datapolicies/v2beta1/** + * clear() + ** + + + 7006 + com/google/cloud/bigquery/datapolicies/v2beta1/** + * clearField(*) + ** + + + 7006 + com/google/cloud/bigquery/datapolicies/v2beta1/** + * clearOneof(*) + ** + + + 7006 + com/google/cloud/bigquery/datapolicies/v2beta1/** + * clone() + ** + + + 7006 + com/google/cloud/bigquery/datapolicies/v2beta1/** + * mergeUnknownFields(*) + ** + + + 7006 + com/google/cloud/bigquery/datapolicies/v2beta1/** + * setField(*) + ** + + + 7006 + com/google/cloud/bigquery/datapolicies/v2beta1/** + * setRepeatedField(*) + ** + + + 7006 + com/google/cloud/bigquery/datapolicies/v2beta1/** + * setUnknownFields(*) + ** + + diff --git a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/pom.xml b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/pom.xml new file mode 100644 index 000000000000..ec3fbdd19774 --- /dev/null +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/pom.xml @@ -0,0 +1,37 @@ + + 4.0.0 + com.google.api.grpc + proto-google-cloud-bigquerydatapolicy-v2beta1 + 0.65.0 + proto-google-cloud-bigquerydatapolicy-v2beta1 + Proto library for google-cloud-bigquerydatapolicy + + com.google.cloud + google-cloud-bigquerydatapolicy-parent + 0.65.0 + + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-common-protos + + + com.google.api.grpc + proto-google-iam-v1 + + + com.google.api + api-common + + + com.google.guava + guava + + + diff --git a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/AddGranteesRequest.java b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/AddGranteesRequest.java new file mode 100644 index 000000000000..2b96d741ee70 --- /dev/null +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/AddGranteesRequest.java @@ -0,0 +1,1085 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/datapolicies/v2beta1/datapolicy.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.bigquery.datapolicies.v2beta1; + +/** + * + * + *
+ * Request message for the AddGrantees method.
+ * 
+ * + * Protobuf type {@code google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest} + */ +public final class AddGranteesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest) + AddGranteesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use AddGranteesRequest.newBuilder() to construct. + private AddGranteesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AddGranteesRequest() { + dataPolicy_ = ""; + grantees_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AddGranteesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyProto + .internal_static_google_cloud_bigquery_datapolicies_v2beta1_AddGranteesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyProto + .internal_static_google_cloud_bigquery_datapolicies_v2beta1_AddGranteesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest.class, + com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest.Builder.class); + } + + public static final int DATA_POLICY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object dataPolicy_ = ""; + + /** + * + * + *
+   * Required. Resource name of this data policy, in the format of
+   * `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`.
+   * 
+ * + * + * string data_policy = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The dataPolicy. + */ + @java.lang.Override + public java.lang.String getDataPolicy() { + java.lang.Object ref = dataPolicy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataPolicy_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Resource name of this data policy, in the format of
+   * `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`.
+   * 
+ * + * + * string data_policy = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for dataPolicy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDataPolicyBytes() { + java.lang.Object ref = dataPolicy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataPolicy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GRANTEES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList grantees_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Required. IAM principal that should be granted Fine Grained Access to the
+   * underlying data goverened by the data policy. The target data policy is
+   * determined by the `data_policy` field.
+   *
+   * Uses the [IAM V2 principal
+   * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2).
+   * Supported principal types:
+   *
+   * * User
+   * * Group
+   * * Service account
+   * 
+ * + * repeated string grantees = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the grantees. + */ + public com.google.protobuf.ProtocolStringList getGranteesList() { + return grantees_; + } + + /** + * + * + *
+   * Required. IAM principal that should be granted Fine Grained Access to the
+   * underlying data goverened by the data policy. The target data policy is
+   * determined by the `data_policy` field.
+   *
+   * Uses the [IAM V2 principal
+   * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2).
+   * Supported principal types:
+   *
+   * * User
+   * * Group
+   * * Service account
+   * 
+ * + * repeated string grantees = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of grantees. + */ + public int getGranteesCount() { + return grantees_.size(); + } + + /** + * + * + *
+   * Required. IAM principal that should be granted Fine Grained Access to the
+   * underlying data goverened by the data policy. The target data policy is
+   * determined by the `data_policy` field.
+   *
+   * Uses the [IAM V2 principal
+   * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2).
+   * Supported principal types:
+   *
+   * * User
+   * * Group
+   * * Service account
+   * 
+ * + * repeated string grantees = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The grantees at the given index. + */ + public java.lang.String getGrantees(int index) { + return grantees_.get(index); + } + + /** + * + * + *
+   * Required. IAM principal that should be granted Fine Grained Access to the
+   * underlying data goverened by the data policy. The target data policy is
+   * determined by the `data_policy` field.
+   *
+   * Uses the [IAM V2 principal
+   * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2).
+   * Supported principal types:
+   *
+   * * User
+   * * Group
+   * * Service account
+   * 
+ * + * repeated string grantees = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the grantees at the given index. + */ + public com.google.protobuf.ByteString getGranteesBytes(int index) { + return grantees_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataPolicy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataPolicy_); + } + for (int i = 0; i < grantees_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, grantees_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataPolicy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dataPolicy_); + } + { + int dataSize = 0; + for (int i = 0; i < grantees_.size(); i++) { + dataSize += computeStringSizeNoTag(grantees_.getRaw(i)); + } + size += dataSize; + size += 1 * getGranteesList().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.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest)) { + return super.equals(obj); + } + com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest other = + (com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest) obj; + + if (!getDataPolicy().equals(other.getDataPolicy())) return false; + if (!getGranteesList().equals(other.getGranteesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DATA_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getDataPolicy().hashCode(); + if (getGranteesCount() > 0) { + hash = (37 * hash) + GRANTEES_FIELD_NUMBER; + hash = (53 * hash) + getGranteesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for the AddGrantees method.
+   * 
+ * + * Protobuf type {@code google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest) + com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyProto + .internal_static_google_cloud_bigquery_datapolicies_v2beta1_AddGranteesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyProto + .internal_static_google_cloud_bigquery_datapolicies_v2beta1_AddGranteesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest.class, + com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest.Builder.class); + } + + // Construct using + // com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dataPolicy_ = ""; + grantees_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyProto + .internal_static_google_cloud_bigquery_datapolicies_v2beta1_AddGranteesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest build() { + com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest buildPartial() { + com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest result = + new com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dataPolicy_ = dataPolicy_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + grantees_.makeImmutable(); + result.grantees_ = grantees_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest) { + return mergeFrom((com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest other) { + if (other + == com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest.getDefaultInstance()) + return this; + if (!other.getDataPolicy().isEmpty()) { + dataPolicy_ = other.dataPolicy_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.grantees_.isEmpty()) { + if (grantees_.isEmpty()) { + grantees_ = other.grantees_; + bitField0_ |= 0x00000002; + } else { + ensureGranteesIsMutable(); + grantees_.addAll(other.grantees_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + dataPolicy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureGranteesIsMutable(); + grantees_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object dataPolicy_ = ""; + + /** + * + * + *
+     * Required. Resource name of this data policy, in the format of
+     * `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`.
+     * 
+ * + * + * string data_policy = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The dataPolicy. + */ + public java.lang.String getDataPolicy() { + java.lang.Object ref = dataPolicy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataPolicy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Resource name of this data policy, in the format of
+     * `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`.
+     * 
+ * + * + * string data_policy = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for dataPolicy. + */ + public com.google.protobuf.ByteString getDataPolicyBytes() { + java.lang.Object ref = dataPolicy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataPolicy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Resource name of this data policy, in the format of
+     * `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`.
+     * 
+ * + * + * string data_policy = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The dataPolicy to set. + * @return This builder for chaining. + */ + public Builder setDataPolicy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dataPolicy_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Resource name of this data policy, in the format of
+     * `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`.
+     * 
+ * + * + * string data_policy = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearDataPolicy() { + dataPolicy_ = getDefaultInstance().getDataPolicy(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Resource name of this data policy, in the format of
+     * `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`.
+     * 
+ * + * + * string data_policy = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for dataPolicy to set. + * @return This builder for chaining. + */ + public Builder setDataPolicyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataPolicy_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList grantees_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureGranteesIsMutable() { + if (!grantees_.isModifiable()) { + grantees_ = new com.google.protobuf.LazyStringArrayList(grantees_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
+     * Required. IAM principal that should be granted Fine Grained Access to the
+     * underlying data goverened by the data policy. The target data policy is
+     * determined by the `data_policy` field.
+     *
+     * Uses the [IAM V2 principal
+     * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2).
+     * Supported principal types:
+     *
+     * * User
+     * * Group
+     * * Service account
+     * 
+ * + * repeated string grantees = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the grantees. + */ + public com.google.protobuf.ProtocolStringList getGranteesList() { + grantees_.makeImmutable(); + return grantees_; + } + + /** + * + * + *
+     * Required. IAM principal that should be granted Fine Grained Access to the
+     * underlying data goverened by the data policy. The target data policy is
+     * determined by the `data_policy` field.
+     *
+     * Uses the [IAM V2 principal
+     * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2).
+     * Supported principal types:
+     *
+     * * User
+     * * Group
+     * * Service account
+     * 
+ * + * repeated string grantees = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of grantees. + */ + public int getGranteesCount() { + return grantees_.size(); + } + + /** + * + * + *
+     * Required. IAM principal that should be granted Fine Grained Access to the
+     * underlying data goverened by the data policy. The target data policy is
+     * determined by the `data_policy` field.
+     *
+     * Uses the [IAM V2 principal
+     * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2).
+     * Supported principal types:
+     *
+     * * User
+     * * Group
+     * * Service account
+     * 
+ * + * repeated string grantees = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The grantees at the given index. + */ + public java.lang.String getGrantees(int index) { + return grantees_.get(index); + } + + /** + * + * + *
+     * Required. IAM principal that should be granted Fine Grained Access to the
+     * underlying data goverened by the data policy. The target data policy is
+     * determined by the `data_policy` field.
+     *
+     * Uses the [IAM V2 principal
+     * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2).
+     * Supported principal types:
+     *
+     * * User
+     * * Group
+     * * Service account
+     * 
+ * + * repeated string grantees = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the grantees at the given index. + */ + public com.google.protobuf.ByteString getGranteesBytes(int index) { + return grantees_.getByteString(index); + } + + /** + * + * + *
+     * Required. IAM principal that should be granted Fine Grained Access to the
+     * underlying data goverened by the data policy. The target data policy is
+     * determined by the `data_policy` field.
+     *
+     * Uses the [IAM V2 principal
+     * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2).
+     * Supported principal types:
+     *
+     * * User
+     * * Group
+     * * Service account
+     * 
+ * + * repeated string grantees = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index to set the value at. + * @param value The grantees to set. + * @return This builder for chaining. + */ + public Builder setGrantees(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureGranteesIsMutable(); + grantees_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. IAM principal that should be granted Fine Grained Access to the
+     * underlying data goverened by the data policy. The target data policy is
+     * determined by the `data_policy` field.
+     *
+     * Uses the [IAM V2 principal
+     * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2).
+     * Supported principal types:
+     *
+     * * User
+     * * Group
+     * * Service account
+     * 
+ * + * repeated string grantees = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The grantees to add. + * @return This builder for chaining. + */ + public Builder addGrantees(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureGranteesIsMutable(); + grantees_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. IAM principal that should be granted Fine Grained Access to the
+     * underlying data goverened by the data policy. The target data policy is
+     * determined by the `data_policy` field.
+     *
+     * Uses the [IAM V2 principal
+     * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2).
+     * Supported principal types:
+     *
+     * * User
+     * * Group
+     * * Service account
+     * 
+ * + * repeated string grantees = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param values The grantees to add. + * @return This builder for chaining. + */ + public Builder addAllGrantees(java.lang.Iterable values) { + ensureGranteesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, grantees_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. IAM principal that should be granted Fine Grained Access to the
+     * underlying data goverened by the data policy. The target data policy is
+     * determined by the `data_policy` field.
+     *
+     * Uses the [IAM V2 principal
+     * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2).
+     * Supported principal types:
+     *
+     * * User
+     * * Group
+     * * Service account
+     * 
+ * + * repeated string grantees = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearGrantees() { + grantees_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. IAM principal that should be granted Fine Grained Access to the
+     * underlying data goverened by the data policy. The target data policy is
+     * determined by the `data_policy` field.
+     *
+     * Uses the [IAM V2 principal
+     * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2).
+     * Supported principal types:
+     *
+     * * User
+     * * Group
+     * * Service account
+     * 
+ * + * repeated string grantees = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes of the grantees to add. + * @return This builder for chaining. + */ + public Builder addGranteesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureGranteesIsMutable(); + grantees_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest) + private static final com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest(); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AddGranteesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/AddGranteesRequestOrBuilder.java b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/AddGranteesRequestOrBuilder.java new file mode 100644 index 000000000000..371e7146ae72 --- /dev/null +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/AddGranteesRequestOrBuilder.java @@ -0,0 +1,152 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/datapolicies/v2beta1/datapolicy.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.bigquery.datapolicies.v2beta1; + +public interface AddGranteesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of this data policy, in the format of
+   * `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`.
+   * 
+ * + * + * string data_policy = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The dataPolicy. + */ + java.lang.String getDataPolicy(); + + /** + * + * + *
+   * Required. Resource name of this data policy, in the format of
+   * `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`.
+   * 
+ * + * + * string data_policy = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for dataPolicy. + */ + com.google.protobuf.ByteString getDataPolicyBytes(); + + /** + * + * + *
+   * Required. IAM principal that should be granted Fine Grained Access to the
+   * underlying data goverened by the data policy. The target data policy is
+   * determined by the `data_policy` field.
+   *
+   * Uses the [IAM V2 principal
+   * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2).
+   * Supported principal types:
+   *
+   * * User
+   * * Group
+   * * Service account
+   * 
+ * + * repeated string grantees = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the grantees. + */ + java.util.List getGranteesList(); + + /** + * + * + *
+   * Required. IAM principal that should be granted Fine Grained Access to the
+   * underlying data goverened by the data policy. The target data policy is
+   * determined by the `data_policy` field.
+   *
+   * Uses the [IAM V2 principal
+   * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2).
+   * Supported principal types:
+   *
+   * * User
+   * * Group
+   * * Service account
+   * 
+ * + * repeated string grantees = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of grantees. + */ + int getGranteesCount(); + + /** + * + * + *
+   * Required. IAM principal that should be granted Fine Grained Access to the
+   * underlying data goverened by the data policy. The target data policy is
+   * determined by the `data_policy` field.
+   *
+   * Uses the [IAM V2 principal
+   * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2).
+   * Supported principal types:
+   *
+   * * User
+   * * Group
+   * * Service account
+   * 
+ * + * repeated string grantees = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The grantees at the given index. + */ + java.lang.String getGrantees(int index); + + /** + * + * + *
+   * Required. IAM principal that should be granted Fine Grained Access to the
+   * underlying data goverened by the data policy. The target data policy is
+   * determined by the `data_policy` field.
+   *
+   * Uses the [IAM V2 principal
+   * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2).
+   * Supported principal types:
+   *
+   * * User
+   * * Group
+   * * Service account
+   * 
+ * + * repeated string grantees = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the grantees at the given index. + */ + com.google.protobuf.ByteString getGranteesBytes(int index); +} diff --git a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/CreateDataPolicyRequest.java b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/CreateDataPolicyRequest.java new file mode 100644 index 000000000000..32aa39690c61 --- /dev/null +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/CreateDataPolicyRequest.java @@ -0,0 +1,1204 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/datapolicies/v2beta1/datapolicy.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.bigquery.datapolicies.v2beta1; + +/** + * + * + *
+ * Request message for the CreateDataPolicy method.
+ * 
+ * + * Protobuf type {@code google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest} + */ +public final class CreateDataPolicyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest) + CreateDataPolicyRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CreateDataPolicyRequest.newBuilder() to construct. + private CreateDataPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateDataPolicyRequest() { + parent_ = ""; + dataPolicyId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateDataPolicyRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyProto + .internal_static_google_cloud_bigquery_datapolicies_v2beta1_CreateDataPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyProto + .internal_static_google_cloud_bigquery_datapolicies_v2beta1_CreateDataPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest.class, + com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. Resource name of the project that the data policy will belong to.
+   * The format is `projects/{project_number}/locations/{location_id}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Resource name of the project that the data policy will belong to.
+   * The format is `projects/{project_number}/locations/{location_id}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATA_POLICY_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object dataPolicyId_ = ""; + + /** + * + * + *
+   * Required. User-assigned (human readable) ID of the data policy that needs
+   * to be unique within a project. Used as {data_policy_id} in part of the
+   * resource name.
+   * 
+ * + * string data_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The dataPolicyId. + */ + @java.lang.Override + public java.lang.String getDataPolicyId() { + java.lang.Object ref = dataPolicyId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataPolicyId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. User-assigned (human readable) ID of the data policy that needs
+   * to be unique within a project. Used as {data_policy_id} in part of the
+   * resource name.
+   * 
+ * + * string data_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for dataPolicyId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDataPolicyIdBytes() { + java.lang.Object ref = dataPolicyId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataPolicyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATA_POLICY_FIELD_NUMBER = 3; + private com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy dataPolicy_; + + /** + * + * + *
+   * Required. The data policy to create. The `name` field does not need to be
+   * provided for the data policy creation.
+   * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataPolicy field is set. + */ + @java.lang.Override + public boolean hasDataPolicy() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The data policy to create. The `name` field does not need to be
+   * provided for the data policy creation.
+   * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataPolicy. + */ + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy getDataPolicy() { + return dataPolicy_ == null + ? com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.getDefaultInstance() + : dataPolicy_; + } + + /** + * + * + *
+   * Required. The data policy to create. The `name` field does not need to be
+   * provided for the data policy creation.
+   * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyOrBuilder + getDataPolicyOrBuilder() { + return dataPolicy_ == null + ? com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.getDefaultInstance() + : dataPolicy_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataPolicyId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dataPolicyId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getDataPolicy()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataPolicyId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dataPolicyId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDataPolicy()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest)) { + return super.equals(obj); + } + com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest other = + (com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getDataPolicyId().equals(other.getDataPolicyId())) return false; + if (hasDataPolicy() != other.hasDataPolicy()) return false; + if (hasDataPolicy()) { + if (!getDataPolicy().equals(other.getDataPolicy())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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) + DATA_POLICY_ID_FIELD_NUMBER; + hash = (53 * hash) + getDataPolicyId().hashCode(); + if (hasDataPolicy()) { + hash = (37 * hash) + DATA_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getDataPolicy().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for the CreateDataPolicy method.
+   * 
+ * + * Protobuf type {@code google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest) + com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyProto + .internal_static_google_cloud_bigquery_datapolicies_v2beta1_CreateDataPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyProto + .internal_static_google_cloud_bigquery_datapolicies_v2beta1_CreateDataPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest.class, + com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest.Builder.class); + } + + // Construct using + // com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDataPolicyFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + dataPolicyId_ = ""; + dataPolicy_ = null; + if (dataPolicyBuilder_ != null) { + dataPolicyBuilder_.dispose(); + dataPolicyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyProto + .internal_static_google_cloud_bigquery_datapolicies_v2beta1_CreateDataPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest build() { + com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest buildPartial() { + com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest result = + new com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dataPolicyId_ = dataPolicyId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.dataPolicy_ = dataPolicyBuilder_ == null ? dataPolicy_ : dataPolicyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest) { + return mergeFrom( + (com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest other) { + if (other + == com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDataPolicyId().isEmpty()) { + dataPolicyId_ = other.dataPolicyId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasDataPolicy()) { + mergeDataPolicy(other.getDataPolicy()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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: + { + dataPolicyId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getDataPolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. Resource name of the project that the data policy will belong to.
+     * The format is `projects/{project_number}/locations/{location_id}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Resource name of the project that the data policy will belong to.
+     * The format is `projects/{project_number}/locations/{location_id}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Resource name of the project that the data policy will belong to.
+     * The format is `projects/{project_number}/locations/{location_id}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Resource name of the project that the data policy will belong to.
+     * The format is `projects/{project_number}/locations/{location_id}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Resource name of the project that the data policy will belong to.
+     * The format is `projects/{project_number}/locations/{location_id}`.
+     * 
+ * + * + * 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 dataPolicyId_ = ""; + + /** + * + * + *
+     * Required. User-assigned (human readable) ID of the data policy that needs
+     * to be unique within a project. Used as {data_policy_id} in part of the
+     * resource name.
+     * 
+ * + * string data_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The dataPolicyId. + */ + public java.lang.String getDataPolicyId() { + java.lang.Object ref = dataPolicyId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataPolicyId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. User-assigned (human readable) ID of the data policy that needs
+     * to be unique within a project. Used as {data_policy_id} in part of the
+     * resource name.
+     * 
+ * + * string data_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for dataPolicyId. + */ + public com.google.protobuf.ByteString getDataPolicyIdBytes() { + java.lang.Object ref = dataPolicyId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataPolicyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. User-assigned (human readable) ID of the data policy that needs
+     * to be unique within a project. Used as {data_policy_id} in part of the
+     * resource name.
+     * 
+ * + * string data_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The dataPolicyId to set. + * @return This builder for chaining. + */ + public Builder setDataPolicyId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dataPolicyId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. User-assigned (human readable) ID of the data policy that needs
+     * to be unique within a project. Used as {data_policy_id} in part of the
+     * resource name.
+     * 
+ * + * string data_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDataPolicyId() { + dataPolicyId_ = getDefaultInstance().getDataPolicyId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. User-assigned (human readable) ID of the data policy that needs
+     * to be unique within a project. Used as {data_policy_id} in part of the
+     * resource name.
+     * 
+ * + * string data_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for dataPolicyId to set. + * @return This builder for chaining. + */ + public Builder setDataPolicyIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataPolicyId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy dataPolicy_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy, + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.Builder, + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyOrBuilder> + dataPolicyBuilder_; + + /** + * + * + *
+     * Required. The data policy to create. The `name` field does not need to be
+     * provided for the data policy creation.
+     * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataPolicy field is set. + */ + public boolean hasDataPolicy() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. The data policy to create. The `name` field does not need to be
+     * provided for the data policy creation.
+     * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataPolicy. + */ + public com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy getDataPolicy() { + if (dataPolicyBuilder_ == null) { + return dataPolicy_ == null + ? com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.getDefaultInstance() + : dataPolicy_; + } else { + return dataPolicyBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The data policy to create. The `name` field does not need to be
+     * provided for the data policy creation.
+     * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDataPolicy(com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy value) { + if (dataPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataPolicy_ = value; + } else { + dataPolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The data policy to create. The `name` field does not need to be
+     * provided for the data policy creation.
+     * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDataPolicy( + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.Builder builderForValue) { + if (dataPolicyBuilder_ == null) { + dataPolicy_ = builderForValue.build(); + } else { + dataPolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The data policy to create. The `name` field does not need to be
+     * provided for the data policy creation.
+     * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDataPolicy( + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy value) { + if (dataPolicyBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && dataPolicy_ != null + && dataPolicy_ + != com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.getDefaultInstance()) { + getDataPolicyBuilder().mergeFrom(value); + } else { + dataPolicy_ = value; + } + } else { + dataPolicyBuilder_.mergeFrom(value); + } + if (dataPolicy_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The data policy to create. The `name` field does not need to be
+     * provided for the data policy creation.
+     * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDataPolicy() { + bitField0_ = (bitField0_ & ~0x00000004); + dataPolicy_ = null; + if (dataPolicyBuilder_ != null) { + dataPolicyBuilder_.dispose(); + dataPolicyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The data policy to create. The `name` field does not need to be
+     * provided for the data policy creation.
+     * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.Builder + getDataPolicyBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getDataPolicyFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The data policy to create. The `name` field does not need to be
+     * provided for the data policy creation.
+     * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyOrBuilder + getDataPolicyOrBuilder() { + if (dataPolicyBuilder_ != null) { + return dataPolicyBuilder_.getMessageOrBuilder(); + } else { + return dataPolicy_ == null + ? com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.getDefaultInstance() + : dataPolicy_; + } + } + + /** + * + * + *
+     * Required. The data policy to create. The `name` field does not need to be
+     * provided for the data policy creation.
+     * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy, + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.Builder, + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyOrBuilder> + getDataPolicyFieldBuilder() { + if (dataPolicyBuilder_ == null) { + dataPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy, + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.Builder, + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyOrBuilder>( + getDataPolicy(), getParentForChildren(), isClean()); + dataPolicy_ = null; + } + return dataPolicyBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest) + private static final com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest(); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDataPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/CreateDataPolicyRequestOrBuilder.java b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/CreateDataPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..1c8574736ac5 --- /dev/null +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/CreateDataPolicyRequestOrBuilder.java @@ -0,0 +1,134 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/datapolicies/v2beta1/datapolicy.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.bigquery.datapolicies.v2beta1; + +public interface CreateDataPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the project that the data policy will belong to.
+   * The format is `projects/{project_number}/locations/{location_id}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. Resource name of the project that the data policy will belong to.
+   * The format is `projects/{project_number}/locations/{location_id}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. User-assigned (human readable) ID of the data policy that needs
+   * to be unique within a project. Used as {data_policy_id} in part of the
+   * resource name.
+   * 
+ * + * string data_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The dataPolicyId. + */ + java.lang.String getDataPolicyId(); + + /** + * + * + *
+   * Required. User-assigned (human readable) ID of the data policy that needs
+   * to be unique within a project. Used as {data_policy_id} in part of the
+   * resource name.
+   * 
+ * + * string data_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for dataPolicyId. + */ + com.google.protobuf.ByteString getDataPolicyIdBytes(); + + /** + * + * + *
+   * Required. The data policy to create. The `name` field does not need to be
+   * provided for the data policy creation.
+   * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataPolicy field is set. + */ + boolean hasDataPolicy(); + + /** + * + * + *
+   * Required. The data policy to create. The `name` field does not need to be
+   * provided for the data policy creation.
+   * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataPolicy. + */ + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy getDataPolicy(); + + /** + * + * + *
+   * Required. The data policy to create. The `name` field does not need to be
+   * provided for the data policy creation.
+   * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyOrBuilder getDataPolicyOrBuilder(); +} diff --git a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/DataMaskingPolicy.java b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/DataMaskingPolicy.java new file mode 100644 index 000000000000..2080bfb8d084 --- /dev/null +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/DataMaskingPolicy.java @@ -0,0 +1,994 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/datapolicies/v2beta1/datapolicy.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.bigquery.datapolicies.v2beta1; + +/** + * + * + *
+ * The policy used to specify data masking rule.
+ * 
+ * + * Protobuf type {@code google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy} + */ +public final class DataMaskingPolicy extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy) + DataMaskingPolicyOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DataMaskingPolicy.newBuilder() to construct. + private DataMaskingPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DataMaskingPolicy() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DataMaskingPolicy(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyProto + .internal_static_google_cloud_bigquery_datapolicies_v2beta1_DataMaskingPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyProto + .internal_static_google_cloud_bigquery_datapolicies_v2beta1_DataMaskingPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy.class, + com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy.Builder.class); + } + + /** + * + * + *
+   * The available masking rules. Learn more here:
+   * https://cloud.google.com/bigquery/docs/column-data-masking-intro#masking_options.
+   * 
+ * + * Protobuf enum {@code + * google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy.PredefinedExpression} + */ + public enum PredefinedExpression implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default, unspecified predefined expression. No masking will take place
+     * since no expression is specified.
+     * 
+ * + * PREDEFINED_EXPRESSION_UNSPECIFIED = 0; + */ + PREDEFINED_EXPRESSION_UNSPECIFIED(0), + /** + * + * + *
+     * Masking expression to replace data with SHA-256 hash.
+     * 
+ * + * SHA256 = 1; + */ + SHA256(1), + /** + * + * + *
+     * Masking expression to replace data with NULLs.
+     * 
+ * + * ALWAYS_NULL = 2; + */ + ALWAYS_NULL(2), + /** + * + * + *
+     * Masking expression to replace data with their default masking values.
+     * The default masking values for each type listed as below:
+     *
+     * * STRING: ""
+     * * BYTES: b''
+     * * INTEGER: 0
+     * * FLOAT: 0.0
+     * * NUMERIC: 0
+     * * BOOLEAN: FALSE
+     * * TIMESTAMP: 1970-01-01 00:00:00 UTC
+     * * DATE: 1970-01-01
+     * * TIME: 00:00:00
+     * * DATETIME: 1970-01-01T00:00:00
+     * * GEOGRAPHY: POINT(0 0)
+     * * BIGNUMERIC: 0
+     * * ARRAY: []
+     * * STRUCT: NOT_APPLICABLE
+     * * JSON: NULL
+     * 
+ * + * DEFAULT_MASKING_VALUE = 3; + */ + DEFAULT_MASKING_VALUE(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default, unspecified predefined expression. No masking will take place
+     * since no expression is specified.
+     * 
+ * + * PREDEFINED_EXPRESSION_UNSPECIFIED = 0; + */ + public static final int PREDEFINED_EXPRESSION_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Masking expression to replace data with SHA-256 hash.
+     * 
+ * + * SHA256 = 1; + */ + public static final int SHA256_VALUE = 1; + + /** + * + * + *
+     * Masking expression to replace data with NULLs.
+     * 
+ * + * ALWAYS_NULL = 2; + */ + public static final int ALWAYS_NULL_VALUE = 2; + + /** + * + * + *
+     * Masking expression to replace data with their default masking values.
+     * The default masking values for each type listed as below:
+     *
+     * * STRING: ""
+     * * BYTES: b''
+     * * INTEGER: 0
+     * * FLOAT: 0.0
+     * * NUMERIC: 0
+     * * BOOLEAN: FALSE
+     * * TIMESTAMP: 1970-01-01 00:00:00 UTC
+     * * DATE: 1970-01-01
+     * * TIME: 00:00:00
+     * * DATETIME: 1970-01-01T00:00:00
+     * * GEOGRAPHY: POINT(0 0)
+     * * BIGNUMERIC: 0
+     * * ARRAY: []
+     * * STRUCT: NOT_APPLICABLE
+     * * JSON: NULL
+     * 
+ * + * DEFAULT_MASKING_VALUE = 3; + */ + public static final int DEFAULT_MASKING_VALUE_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PredefinedExpression 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 PredefinedExpression forNumber(int value) { + switch (value) { + case 0: + return PREDEFINED_EXPRESSION_UNSPECIFIED; + case 1: + return SHA256; + case 2: + return ALWAYS_NULL; + case 3: + return DEFAULT_MASKING_VALUE; + 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 PredefinedExpression findValueByNumber(int number) { + return PredefinedExpression.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final PredefinedExpression[] VALUES = values(); + + public static PredefinedExpression 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 PredefinedExpression(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy.PredefinedExpression) + } + + private int maskingExpressionCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object maskingExpression_; + + public enum MaskingExpressionCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + PREDEFINED_EXPRESSION(1), + MASKINGEXPRESSION_NOT_SET(0); + private final int value; + + private MaskingExpressionCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MaskingExpressionCase valueOf(int value) { + return forNumber(value); + } + + public static MaskingExpressionCase forNumber(int value) { + switch (value) { + case 1: + return PREDEFINED_EXPRESSION; + case 0: + return MASKINGEXPRESSION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public MaskingExpressionCase getMaskingExpressionCase() { + return MaskingExpressionCase.forNumber(maskingExpressionCase_); + } + + public static final int PREDEFINED_EXPRESSION_FIELD_NUMBER = 1; + + /** + * + * + *
+   * Optional. A predefined masking expression.
+   * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy.PredefinedExpression predefined_expression = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the predefinedExpression field is set. + */ + public boolean hasPredefinedExpression() { + return maskingExpressionCase_ == 1; + } + + /** + * + * + *
+   * Optional. A predefined masking expression.
+   * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy.PredefinedExpression predefined_expression = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for predefinedExpression. + */ + public int getPredefinedExpressionValue() { + if (maskingExpressionCase_ == 1) { + return (java.lang.Integer) maskingExpression_; + } + return 0; + } + + /** + * + * + *
+   * Optional. A predefined masking expression.
+   * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy.PredefinedExpression predefined_expression = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The predefinedExpression. + */ + public com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy.PredefinedExpression + getPredefinedExpression() { + if (maskingExpressionCase_ == 1) { + com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy.PredefinedExpression result = + com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy.PredefinedExpression + .forNumber((java.lang.Integer) maskingExpression_); + return result == null + ? com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy.PredefinedExpression + .UNRECOGNIZED + : result; + } + return com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy.PredefinedExpression + .PREDEFINED_EXPRESSION_UNSPECIFIED; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (maskingExpressionCase_ == 1) { + output.writeEnum(1, ((java.lang.Integer) maskingExpression_)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (maskingExpressionCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 1, ((java.lang.Integer) maskingExpression_)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy)) { + return super.equals(obj); + } + com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy other = + (com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy) obj; + + if (!getMaskingExpressionCase().equals(other.getMaskingExpressionCase())) return false; + switch (maskingExpressionCase_) { + case 1: + if (getPredefinedExpressionValue() != other.getPredefinedExpressionValue()) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (maskingExpressionCase_) { + case 1: + hash = (37 * hash) + PREDEFINED_EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getPredefinedExpressionValue(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The policy used to specify data masking rule.
+   * 
+ * + * Protobuf type {@code google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy) + com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyProto + .internal_static_google_cloud_bigquery_datapolicies_v2beta1_DataMaskingPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyProto + .internal_static_google_cloud_bigquery_datapolicies_v2beta1_DataMaskingPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy.class, + com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy.Builder.class); + } + + // Construct using com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + maskingExpressionCase_ = 0; + maskingExpression_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyProto + .internal_static_google_cloud_bigquery_datapolicies_v2beta1_DataMaskingPolicy_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy + getDefaultInstanceForType() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy build() { + com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy buildPartial() { + com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy result = + new com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy result) { + result.maskingExpressionCase_ = maskingExpressionCase_; + result.maskingExpression_ = this.maskingExpression_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy) { + return mergeFrom((com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy other) { + if (other + == com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy.getDefaultInstance()) + return this; + switch (other.getMaskingExpressionCase()) { + case PREDEFINED_EXPRESSION: + { + setPredefinedExpressionValue(other.getPredefinedExpressionValue()); + break; + } + case MASKINGEXPRESSION_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + maskingExpressionCase_ = 1; + maskingExpression_ = rawValue; + 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 maskingExpressionCase_ = 0; + private java.lang.Object maskingExpression_; + + public MaskingExpressionCase getMaskingExpressionCase() { + return MaskingExpressionCase.forNumber(maskingExpressionCase_); + } + + public Builder clearMaskingExpression() { + maskingExpressionCase_ = 0; + maskingExpression_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+     * Optional. A predefined masking expression.
+     * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy.PredefinedExpression predefined_expression = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the predefinedExpression field is set. + */ + @java.lang.Override + public boolean hasPredefinedExpression() { + return maskingExpressionCase_ == 1; + } + + /** + * + * + *
+     * Optional. A predefined masking expression.
+     * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy.PredefinedExpression predefined_expression = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for predefinedExpression. + */ + @java.lang.Override + public int getPredefinedExpressionValue() { + if (maskingExpressionCase_ == 1) { + return ((java.lang.Integer) maskingExpression_).intValue(); + } + return 0; + } + + /** + * + * + *
+     * Optional. A predefined masking expression.
+     * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy.PredefinedExpression predefined_expression = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for predefinedExpression to set. + * @return This builder for chaining. + */ + public Builder setPredefinedExpressionValue(int value) { + maskingExpressionCase_ = 1; + maskingExpression_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A predefined masking expression.
+     * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy.PredefinedExpression predefined_expression = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The predefinedExpression. + */ + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy.PredefinedExpression + getPredefinedExpression() { + if (maskingExpressionCase_ == 1) { + com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy.PredefinedExpression + result = + com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy + .PredefinedExpression.forNumber((java.lang.Integer) maskingExpression_); + return result == null + ? com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy.PredefinedExpression + .UNRECOGNIZED + : result; + } + return com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy.PredefinedExpression + .PREDEFINED_EXPRESSION_UNSPECIFIED; + } + + /** + * + * + *
+     * Optional. A predefined masking expression.
+     * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy.PredefinedExpression predefined_expression = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The predefinedExpression to set. + * @return This builder for chaining. + */ + public Builder setPredefinedExpression( + com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy.PredefinedExpression + value) { + if (value == null) { + throw new NullPointerException(); + } + maskingExpressionCase_ = 1; + maskingExpression_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A predefined masking expression.
+     * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy.PredefinedExpression predefined_expression = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearPredefinedExpression() { + if (maskingExpressionCase_ == 1) { + maskingExpressionCase_ = 0; + maskingExpression_ = null; + onChanged(); + } + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy) + private static final com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy(); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataMaskingPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/DataMaskingPolicyOrBuilder.java b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/DataMaskingPolicyOrBuilder.java new file mode 100644 index 000000000000..2786640ba493 --- /dev/null +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/DataMaskingPolicyOrBuilder.java @@ -0,0 +1,75 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/datapolicies/v2beta1/datapolicy.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.bigquery.datapolicies.v2beta1; + +public interface DataMaskingPolicyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. A predefined masking expression.
+   * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy.PredefinedExpression predefined_expression = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the predefinedExpression field is set. + */ + boolean hasPredefinedExpression(); + + /** + * + * + *
+   * Optional. A predefined masking expression.
+   * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy.PredefinedExpression predefined_expression = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for predefinedExpression. + */ + int getPredefinedExpressionValue(); + + /** + * + * + *
+   * Optional. A predefined masking expression.
+   * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy.PredefinedExpression predefined_expression = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The predefinedExpression. + */ + com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy.PredefinedExpression + getPredefinedExpression(); + + com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy.MaskingExpressionCase + getMaskingExpressionCase(); +} diff --git a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/DataPolicy.java b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/DataPolicy.java new file mode 100644 index 000000000000..bd8bbd9c46a5 --- /dev/null +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/DataPolicy.java @@ -0,0 +1,2832 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/datapolicies/v2beta1/datapolicy.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.bigquery.datapolicies.v2beta1; + +/** + * + * + *
+ * Represents the label-policy binding.
+ * 
+ * + * Protobuf type {@code google.cloud.bigquery.datapolicies.v2beta1.DataPolicy} + */ +public final class DataPolicy extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datapolicies.v2beta1.DataPolicy) + DataPolicyOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DataPolicy.newBuilder() to construct. + private DataPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DataPolicy() { + name_ = ""; + dataPolicyId_ = ""; + etag_ = ""; + dataPolicyType_ = 0; + policyTag_ = ""; + grantees_ = com.google.protobuf.LazyStringArrayList.emptyList(); + version_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DataPolicy(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyProto + .internal_static_google_cloud_bigquery_datapolicies_v2beta1_DataPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyProto + .internal_static_google_cloud_bigquery_datapolicies_v2beta1_DataPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.class, + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.Builder.class); + } + + /** + * + * + *
+   * A list of supported data policy types.
+   * 
+ * + * Protobuf enum {@code google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.DataPolicyType} + */ + public enum DataPolicyType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value for the data policy type. This should not be used.
+     * 
+ * + * DATA_POLICY_TYPE_UNSPECIFIED = 0; + */ + DATA_POLICY_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Used to create a data policy for data masking.
+     * 
+ * + * DATA_MASKING_POLICY = 1; + */ + DATA_MASKING_POLICY(1), + /** + * + * + *
+     * Used to create a data policy for raw data access.
+     * 
+ * + * RAW_DATA_ACCESS_POLICY = 2; + */ + RAW_DATA_ACCESS_POLICY(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value for the data policy type. This should not be used.
+     * 
+ * + * DATA_POLICY_TYPE_UNSPECIFIED = 0; + */ + public static final int DATA_POLICY_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Used to create a data policy for data masking.
+     * 
+ * + * DATA_MASKING_POLICY = 1; + */ + public static final int DATA_MASKING_POLICY_VALUE = 1; + + /** + * + * + *
+     * Used to create a data policy for raw data access.
+     * 
+ * + * RAW_DATA_ACCESS_POLICY = 2; + */ + public static final int RAW_DATA_ACCESS_POLICY_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 DataPolicyType 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 DataPolicyType forNumber(int value) { + switch (value) { + case 0: + return DATA_POLICY_TYPE_UNSPECIFIED; + case 1: + return DATA_MASKING_POLICY; + case 2: + return RAW_DATA_ACCESS_POLICY; + 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 DataPolicyType findValueByNumber(int number) { + return DataPolicyType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final DataPolicyType[] VALUES = values(); + + public static DataPolicyType 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 DataPolicyType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.DataPolicyType) + } + + /** + * + * + *
+   * The supported versions for the Data Policy resource.
+   * 
+ * + * Protobuf enum {@code google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.Version} + */ + public enum Version implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value for the data policy version. This should not be used.
+     * 
+ * + * VERSION_UNSPECIFIED = 0; + */ + VERSION_UNSPECIFIED(0), + /** + * + * + *
+     * V1 data policy version. V1 Data Policies will be present in V2 List api
+     * response, but can not be created/updated/deleted from V2 api.
+     * 
+ * + * V1 = 1; + */ + V1(1), + /** + * + * + *
+     * V2 data policy version.
+     * 
+ * + * V2 = 2; + */ + V2(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value for the data policy version. This should not be used.
+     * 
+ * + * VERSION_UNSPECIFIED = 0; + */ + public static final int VERSION_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * V1 data policy version. V1 Data Policies will be present in V2 List api
+     * response, but can not be created/updated/deleted from V2 api.
+     * 
+ * + * V1 = 1; + */ + public static final int V1_VALUE = 1; + + /** + * + * + *
+     * V2 data policy version.
+     * 
+ * + * V2 = 2; + */ + public static final int V2_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 Version 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 Version forNumber(int value) { + switch (value) { + case 0: + return VERSION_UNSPECIFIED; + case 1: + return V1; + case 2: + return V2; + 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 Version findValueByNumber(int number) { + return Version.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final Version[] VALUES = values(); + + public static Version 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 Version(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.Version) + } + + private int bitField0_; + private int policyCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object policy_; + + public enum PolicyCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + DATA_MASKING_POLICY(7), + POLICY_NOT_SET(0); + private final int value; + + private PolicyCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PolicyCase valueOf(int value) { + return forNumber(value); + } + + public static PolicyCase forNumber(int value) { + switch (value) { + case 7: + return DATA_MASKING_POLICY; + case 0: + return POLICY_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public PolicyCase getPolicyCase() { + return PolicyCase.forNumber(policyCase_); + } + + public static final int DATA_MASKING_POLICY_FIELD_NUMBER = 7; + + /** + * + * + *
+   * Optional. The data masking policy that specifies the data masking rule to
+   * use. It must be set if the data policy type is DATA_MASKING_POLICY.
+   * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy data_masking_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dataMaskingPolicy field is set. + */ + @java.lang.Override + public boolean hasDataMaskingPolicy() { + return policyCase_ == 7; + } + + /** + * + * + *
+   * Optional. The data masking policy that specifies the data masking rule to
+   * use. It must be set if the data policy type is DATA_MASKING_POLICY.
+   * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy data_masking_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataMaskingPolicy. + */ + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy getDataMaskingPolicy() { + if (policyCase_ == 7) { + return (com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy) policy_; + } + return com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. The data masking policy that specifies the data masking rule to
+   * use. It must be set if the data policy type is DATA_MASKING_POLICY.
+   * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy data_masking_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicyOrBuilder + getDataMaskingPolicyOrBuilder() { + if (policyCase_ == 7) { + return (com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy) policy_; + } + return com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy.getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. Resource name of this data policy, in the format of
+   * `projects/{project_number}/locations/{location_id}/dataPolicies/{data_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. Resource name of this data policy, in the format of
+   * `projects/{project_number}/locations/{location_id}/dataPolicies/{data_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 DATA_POLICY_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object dataPolicyId_ = ""; + + /** + * + * + *
+   * Output only. User-assigned (human readable) ID of the data policy that
+   * needs to be unique within a project. Used as {data_policy_id} in part of
+   * the resource name.
+   * 
+ * + * string data_policy_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The dataPolicyId. + */ + @java.lang.Override + public java.lang.String getDataPolicyId() { + java.lang.Object ref = dataPolicyId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataPolicyId_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. User-assigned (human readable) ID of the data policy that
+   * needs to be unique within a project. Used as {data_policy_id} in part of
+   * the resource name.
+   * 
+ * + * string data_policy_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for dataPolicyId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDataPolicyIdBytes() { + java.lang.Object ref = dataPolicyId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataPolicyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ETAG_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
+   * The etag for this Data Policy.
+   * This field is used for UpdateDataPolicy calls. If Data Policy exists, this
+   * field is required and must match the server's etag. It will also be
+   * populated in the response of GetDataPolicy, CreateDataPolicy, and
+   * UpdateDataPolicy calls.
+   * 
+ * + * optional string etag = 11; + * + * @return Whether the etag field is set. + */ + @java.lang.Override + public boolean hasEtag() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The etag for this Data Policy.
+   * This field is used for UpdateDataPolicy calls. If Data Policy exists, this
+   * field is required and must match the server's etag. It will also be
+   * populated in the response of GetDataPolicy, CreateDataPolicy, and
+   * UpdateDataPolicy calls.
+   * 
+ * + * optional string etag = 11; + * + * @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; + } + } + + /** + * + * + *
+   * The etag for this Data Policy.
+   * This field is used for UpdateDataPolicy calls. If Data Policy exists, this
+   * field is required and must match the server's etag. It will also be
+   * populated in the response of GetDataPolicy, CreateDataPolicy, and
+   * UpdateDataPolicy calls.
+   * 
+ * + * optional string etag = 11; + * + * @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 DATA_POLICY_TYPE_FIELD_NUMBER = 3; + private int dataPolicyType_ = 0; + + /** + * + * + *
+   * Required. Type of data policy.
+   * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.DataPolicyType data_policy_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for dataPolicyType. + */ + @java.lang.Override + public int getDataPolicyTypeValue() { + return dataPolicyType_; + } + + /** + * + * + *
+   * Required. Type of data policy.
+   * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.DataPolicyType data_policy_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataPolicyType. + */ + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.DataPolicyType + getDataPolicyType() { + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.DataPolicyType result = + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.DataPolicyType.forNumber( + dataPolicyType_); + return result == null + ? com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.DataPolicyType.UNRECOGNIZED + : result; + } + + public static final int POLICY_TAG_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object policyTag_ = ""; + + /** + * + * + *
+   * Output only. Policy tag resource name, in the format of
+   * `projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}`.
+   * policy_tag is supported only for V1 data policies.
+   * 
+ * + * + * string policy_tag = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The policyTag. + */ + @java.lang.Override + public java.lang.String getPolicyTag() { + java.lang.Object ref = policyTag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + policyTag_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Policy tag resource name, in the format of
+   * `projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}`.
+   * policy_tag is supported only for V1 data policies.
+   * 
+ * + * + * string policy_tag = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for policyTag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPolicyTagBytes() { + java.lang.Object ref = policyTag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + policyTag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GRANTEES_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList grantees_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. The list of IAM principals that have Fine Grained Access to the
+   * underlying data goverened by this data policy.
+   *
+   * Uses the [IAM V2 principal
+   * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2) Only
+   * supports principal types users, groups, serviceaccounts, cloudidentity.
+   * This field is supported in V2 Data Policy only. In case of V1 data policies
+   * (i.e. verion = 1 and policy_tag is set), this field is not populated.
+   * 
+ * + * repeated string grantees = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the grantees. + */ + public com.google.protobuf.ProtocolStringList getGranteesList() { + return grantees_; + } + + /** + * + * + *
+   * Optional. The list of IAM principals that have Fine Grained Access to the
+   * underlying data goverened by this data policy.
+   *
+   * Uses the [IAM V2 principal
+   * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2) Only
+   * supports principal types users, groups, serviceaccounts, cloudidentity.
+   * This field is supported in V2 Data Policy only. In case of V1 data policies
+   * (i.e. verion = 1 and policy_tag is set), this field is not populated.
+   * 
+ * + * repeated string grantees = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of grantees. + */ + public int getGranteesCount() { + return grantees_.size(); + } + + /** + * + * + *
+   * Optional. The list of IAM principals that have Fine Grained Access to the
+   * underlying data goverened by this data policy.
+   *
+   * Uses the [IAM V2 principal
+   * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2) Only
+   * supports principal types users, groups, serviceaccounts, cloudidentity.
+   * This field is supported in V2 Data Policy only. In case of V1 data policies
+   * (i.e. verion = 1 and policy_tag is set), this field is not populated.
+   * 
+ * + * repeated string grantees = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The grantees at the given index. + */ + public java.lang.String getGrantees(int index) { + return grantees_.get(index); + } + + /** + * + * + *
+   * Optional. The list of IAM principals that have Fine Grained Access to the
+   * underlying data goverened by this data policy.
+   *
+   * Uses the [IAM V2 principal
+   * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2) Only
+   * supports principal types users, groups, serviceaccounts, cloudidentity.
+   * This field is supported in V2 Data Policy only. In case of V1 data policies
+   * (i.e. verion = 1 and policy_tag is set), this field is not populated.
+   * 
+ * + * repeated string grantees = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the grantees at the given index. + */ + public com.google.protobuf.ByteString getGranteesBytes(int index) { + return grantees_.getByteString(index); + } + + public static final int VERSION_FIELD_NUMBER = 9; + private int version_ = 0; + + /** + * + * + *
+   * Output only. The version of the Data Policy resource.
+   * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.Version version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for version. + */ + @java.lang.Override + public int getVersionValue() { + return version_; + } + + /** + * + * + *
+   * Output only. The version of the Data Policy resource.
+   * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.Version version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The version. + */ + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.Version getVersion() { + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.Version result = + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.Version.forNumber(version_); + return result == null + ? com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.Version.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataPolicyId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dataPolicyId_); + } + if (dataPolicyType_ + != com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.DataPolicyType + .DATA_POLICY_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, dataPolicyType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyTag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, policyTag_); + } + if (policyCase_ == 7) { + output.writeMessage( + 7, (com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy) policy_); + } + for (int i = 0; i < grantees_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, grantees_.getRaw(i)); + } + if (version_ + != com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.Version.VERSION_UNSPECIFIED + .getNumber()) { + output.writeEnum(9, version_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, etag_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataPolicyId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dataPolicyId_); + } + if (dataPolicyType_ + != com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.DataPolicyType + .DATA_POLICY_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, dataPolicyType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyTag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, policyTag_); + } + if (policyCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy) policy_); + } + { + int dataSize = 0; + for (int i = 0; i < grantees_.size(); i++) { + dataSize += computeStringSizeNoTag(grantees_.getRaw(i)); + } + size += dataSize; + size += 1 * getGranteesList().size(); + } + if (version_ + != com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.Version.VERSION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, version_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, etag_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy)) { + return super.equals(obj); + } + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy other = + (com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDataPolicyId().equals(other.getDataPolicyId())) return false; + if (hasEtag() != other.hasEtag()) return false; + if (hasEtag()) { + if (!getEtag().equals(other.getEtag())) return false; + } + if (dataPolicyType_ != other.dataPolicyType_) return false; + if (!getPolicyTag().equals(other.getPolicyTag())) return false; + if (!getGranteesList().equals(other.getGranteesList())) return false; + if (version_ != other.version_) return false; + if (!getPolicyCase().equals(other.getPolicyCase())) return false; + switch (policyCase_) { + case 7: + if (!getDataMaskingPolicy().equals(other.getDataMaskingPolicy())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DATA_POLICY_ID_FIELD_NUMBER; + hash = (53 * hash) + getDataPolicyId().hashCode(); + if (hasEtag()) { + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + } + hash = (37 * hash) + DATA_POLICY_TYPE_FIELD_NUMBER; + hash = (53 * hash) + dataPolicyType_; + hash = (37 * hash) + POLICY_TAG_FIELD_NUMBER; + hash = (53 * hash) + getPolicyTag().hashCode(); + if (getGranteesCount() > 0) { + hash = (37 * hash) + GRANTEES_FIELD_NUMBER; + hash = (53 * hash) + getGranteesList().hashCode(); + } + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + version_; + switch (policyCase_) { + case 7: + hash = (37 * hash) + DATA_MASKING_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getDataMaskingPolicy().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Represents the label-policy binding.
+   * 
+ * + * Protobuf type {@code google.cloud.bigquery.datapolicies.v2beta1.DataPolicy} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.datapolicies.v2beta1.DataPolicy) + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyProto + .internal_static_google_cloud_bigquery_datapolicies_v2beta1_DataPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyProto + .internal_static_google_cloud_bigquery_datapolicies_v2beta1_DataPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.class, + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.Builder.class); + } + + // Construct using com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (dataMaskingPolicyBuilder_ != null) { + dataMaskingPolicyBuilder_.clear(); + } + name_ = ""; + dataPolicyId_ = ""; + etag_ = ""; + dataPolicyType_ = 0; + policyTag_ = ""; + grantees_ = com.google.protobuf.LazyStringArrayList.emptyList(); + version_ = 0; + policyCase_ = 0; + policy_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyProto + .internal_static_google_cloud_bigquery_datapolicies_v2beta1_DataPolicy_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy getDefaultInstanceForType() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy build() { + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy buildPartial() { + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy result = + new com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.dataPolicyId_ = dataPolicyId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.etag_ = etag_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.dataPolicyType_ = dataPolicyType_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.policyTag_ = policyTag_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + grantees_.makeImmutable(); + result.grantees_ = grantees_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.version_ = version_; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy result) { + result.policyCase_ = policyCase_; + result.policy_ = this.policy_; + if (policyCase_ == 7 && dataMaskingPolicyBuilder_ != null) { + result.policy_ = dataMaskingPolicyBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy) { + return mergeFrom((com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy other) { + if (other == com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDataPolicyId().isEmpty()) { + dataPolicyId_ = other.dataPolicyId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasEtag()) { + etag_ = other.etag_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.dataPolicyType_ != 0) { + setDataPolicyTypeValue(other.getDataPolicyTypeValue()); + } + if (!other.getPolicyTag().isEmpty()) { + policyTag_ = other.policyTag_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.grantees_.isEmpty()) { + if (grantees_.isEmpty()) { + grantees_ = other.grantees_; + bitField0_ |= 0x00000040; + } else { + ensureGranteesIsMutable(); + grantees_.addAll(other.grantees_); + } + onChanged(); + } + if (other.version_ != 0) { + setVersionValue(other.getVersionValue()); + } + switch (other.getPolicyCase()) { + case DATA_MASKING_POLICY: + { + mergeDataMaskingPolicy(other.getDataMaskingPolicy()); + break; + } + case POLICY_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + dataPolicyId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 24: + { + dataPolicyType_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 24 + case 34: + { + policyTag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 34 + case 58: + { + input.readMessage( + getDataMaskingPolicyFieldBuilder().getBuilder(), extensionRegistry); + policyCase_ = 7; + break; + } // case 58 + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureGranteesIsMutable(); + grantees_.add(s); + break; + } // case 66 + case 72: + { + version_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 72 + case 90: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 90 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int policyCase_ = 0; + private java.lang.Object policy_; + + public PolicyCase getPolicyCase() { + return PolicyCase.forNumber(policyCase_); + } + + public Builder clearPolicy() { + policyCase_ = 0; + policy_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy, + com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy.Builder, + com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicyOrBuilder> + dataMaskingPolicyBuilder_; + + /** + * + * + *
+     * Optional. The data masking policy that specifies the data masking rule to
+     * use. It must be set if the data policy type is DATA_MASKING_POLICY.
+     * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy data_masking_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dataMaskingPolicy field is set. + */ + @java.lang.Override + public boolean hasDataMaskingPolicy() { + return policyCase_ == 7; + } + + /** + * + * + *
+     * Optional. The data masking policy that specifies the data masking rule to
+     * use. It must be set if the data policy type is DATA_MASKING_POLICY.
+     * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy data_masking_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataMaskingPolicy. + */ + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy getDataMaskingPolicy() { + if (dataMaskingPolicyBuilder_ == null) { + if (policyCase_ == 7) { + return (com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy) policy_; + } + return com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy + .getDefaultInstance(); + } else { + if (policyCase_ == 7) { + return dataMaskingPolicyBuilder_.getMessage(); + } + return com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy + .getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. The data masking policy that specifies the data masking rule to
+     * use. It must be set if the data policy type is DATA_MASKING_POLICY.
+     * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy data_masking_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDataMaskingPolicy( + com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy value) { + if (dataMaskingPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + policy_ = value; + onChanged(); + } else { + dataMaskingPolicyBuilder_.setMessage(value); + } + policyCase_ = 7; + return this; + } + + /** + * + * + *
+     * Optional. The data masking policy that specifies the data masking rule to
+     * use. It must be set if the data policy type is DATA_MASKING_POLICY.
+     * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy data_masking_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDataMaskingPolicy( + com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy.Builder builderForValue) { + if (dataMaskingPolicyBuilder_ == null) { + policy_ = builderForValue.build(); + onChanged(); + } else { + dataMaskingPolicyBuilder_.setMessage(builderForValue.build()); + } + policyCase_ = 7; + return this; + } + + /** + * + * + *
+     * Optional. The data masking policy that specifies the data masking rule to
+     * use. It must be set if the data policy type is DATA_MASKING_POLICY.
+     * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy data_masking_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDataMaskingPolicy( + com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy value) { + if (dataMaskingPolicyBuilder_ == null) { + if (policyCase_ == 7 + && policy_ + != com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy + .getDefaultInstance()) { + policy_ = + com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy.newBuilder( + (com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy) policy_) + .mergeFrom(value) + .buildPartial(); + } else { + policy_ = value; + } + onChanged(); + } else { + if (policyCase_ == 7) { + dataMaskingPolicyBuilder_.mergeFrom(value); + } else { + dataMaskingPolicyBuilder_.setMessage(value); + } + } + policyCase_ = 7; + return this; + } + + /** + * + * + *
+     * Optional. The data masking policy that specifies the data masking rule to
+     * use. It must be set if the data policy type is DATA_MASKING_POLICY.
+     * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy data_masking_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDataMaskingPolicy() { + if (dataMaskingPolicyBuilder_ == null) { + if (policyCase_ == 7) { + policyCase_ = 0; + policy_ = null; + onChanged(); + } + } else { + if (policyCase_ == 7) { + policyCase_ = 0; + policy_ = null; + } + dataMaskingPolicyBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The data masking policy that specifies the data masking rule to
+     * use. It must be set if the data policy type is DATA_MASKING_POLICY.
+     * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy data_masking_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy.Builder + getDataMaskingPolicyBuilder() { + return getDataMaskingPolicyFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The data masking policy that specifies the data masking rule to
+     * use. It must be set if the data policy type is DATA_MASKING_POLICY.
+     * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy data_masking_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicyOrBuilder + getDataMaskingPolicyOrBuilder() { + if ((policyCase_ == 7) && (dataMaskingPolicyBuilder_ != null)) { + return dataMaskingPolicyBuilder_.getMessageOrBuilder(); + } else { + if (policyCase_ == 7) { + return (com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy) policy_; + } + return com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy + .getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. The data masking policy that specifies the data masking rule to
+     * use. It must be set if the data policy type is DATA_MASKING_POLICY.
+     * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy data_masking_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy, + com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy.Builder, + com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicyOrBuilder> + getDataMaskingPolicyFieldBuilder() { + if (dataMaskingPolicyBuilder_ == null) { + if (!(policyCase_ == 7)) { + policy_ = + com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy.getDefaultInstance(); + } + dataMaskingPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy, + com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy.Builder, + com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicyOrBuilder>( + (com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy) policy_, + getParentForChildren(), + isClean()); + policy_ = null; + } + policyCase_ = 7; + onChanged(); + return dataMaskingPolicyBuilder_; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Identifier. Resource name of this data policy, in the format of
+     * `projects/{project_number}/locations/{location_id}/dataPolicies/{data_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. Resource name of this data policy, in the format of
+     * `projects/{project_number}/locations/{location_id}/dataPolicies/{data_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. Resource name of this data policy, in the format of
+     * `projects/{project_number}/locations/{location_id}/dataPolicies/{data_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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. Resource name of this data policy, in the format of
+     * `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. Resource name of this data policy, in the format of
+     * `projects/{project_number}/locations/{location_id}/dataPolicies/{data_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_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object dataPolicyId_ = ""; + + /** + * + * + *
+     * Output only. User-assigned (human readable) ID of the data policy that
+     * needs to be unique within a project. Used as {data_policy_id} in part of
+     * the resource name.
+     * 
+ * + * string data_policy_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The dataPolicyId. + */ + public java.lang.String getDataPolicyId() { + java.lang.Object ref = dataPolicyId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataPolicyId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. User-assigned (human readable) ID of the data policy that
+     * needs to be unique within a project. Used as {data_policy_id} in part of
+     * the resource name.
+     * 
+ * + * string data_policy_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for dataPolicyId. + */ + public com.google.protobuf.ByteString getDataPolicyIdBytes() { + java.lang.Object ref = dataPolicyId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataPolicyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. User-assigned (human readable) ID of the data policy that
+     * needs to be unique within a project. Used as {data_policy_id} in part of
+     * the resource name.
+     * 
+ * + * string data_policy_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The dataPolicyId to set. + * @return This builder for chaining. + */ + public Builder setDataPolicyId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dataPolicyId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. User-assigned (human readable) ID of the data policy that
+     * needs to be unique within a project. Used as {data_policy_id} in part of
+     * the resource name.
+     * 
+ * + * string data_policy_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDataPolicyId() { + dataPolicyId_ = getDefaultInstance().getDataPolicyId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. User-assigned (human readable) ID of the data policy that
+     * needs to be unique within a project. Used as {data_policy_id} in part of
+     * the resource name.
+     * 
+ * + * string data_policy_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for dataPolicyId to set. + * @return This builder for chaining. + */ + public Builder setDataPolicyIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataPolicyId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
+     * The etag for this Data Policy.
+     * This field is used for UpdateDataPolicy calls. If Data Policy exists, this
+     * field is required and must match the server's etag. It will also be
+     * populated in the response of GetDataPolicy, CreateDataPolicy, and
+     * UpdateDataPolicy calls.
+     * 
+ * + * optional string etag = 11; + * + * @return Whether the etag field is set. + */ + public boolean hasEtag() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * The etag for this Data Policy.
+     * This field is used for UpdateDataPolicy calls. If Data Policy exists, this
+     * field is required and must match the server's etag. It will also be
+     * populated in the response of GetDataPolicy, CreateDataPolicy, and
+     * UpdateDataPolicy calls.
+     * 
+ * + * optional string etag = 11; + * + * @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; + } + } + + /** + * + * + *
+     * The etag for this Data Policy.
+     * This field is used for UpdateDataPolicy calls. If Data Policy exists, this
+     * field is required and must match the server's etag. It will also be
+     * populated in the response of GetDataPolicy, CreateDataPolicy, and
+     * UpdateDataPolicy calls.
+     * 
+ * + * optional string etag = 11; + * + * @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; + } + } + + /** + * + * + *
+     * The etag for this Data Policy.
+     * This field is used for UpdateDataPolicy calls. If Data Policy exists, this
+     * field is required and must match the server's etag. It will also be
+     * populated in the response of GetDataPolicy, CreateDataPolicy, and
+     * UpdateDataPolicy calls.
+     * 
+ * + * optional string etag = 11; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * The etag for this Data Policy.
+     * This field is used for UpdateDataPolicy calls. If Data Policy exists, this
+     * field is required and must match the server's etag. It will also be
+     * populated in the response of GetDataPolicy, CreateDataPolicy, and
+     * UpdateDataPolicy calls.
+     * 
+ * + * optional string etag = 11; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * The etag for this Data Policy.
+     * This field is used for UpdateDataPolicy calls. If Data Policy exists, this
+     * field is required and must match the server's etag. It will also be
+     * populated in the response of GetDataPolicy, CreateDataPolicy, and
+     * UpdateDataPolicy calls.
+     * 
+ * + * optional string etag = 11; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + + private int dataPolicyType_ = 0; + + /** + * + * + *
+     * Required. Type of data policy.
+     * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.DataPolicyType data_policy_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for dataPolicyType. + */ + @java.lang.Override + public int getDataPolicyTypeValue() { + return dataPolicyType_; + } + + /** + * + * + *
+     * Required. Type of data policy.
+     * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.DataPolicyType data_policy_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for dataPolicyType to set. + * @return This builder for chaining. + */ + public Builder setDataPolicyTypeValue(int value) { + dataPolicyType_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Type of data policy.
+     * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.DataPolicyType data_policy_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataPolicyType. + */ + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.DataPolicyType + getDataPolicyType() { + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.DataPolicyType result = + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.DataPolicyType.forNumber( + dataPolicyType_); + return result == null + ? com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.DataPolicyType.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Required. Type of data policy.
+     * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.DataPolicyType data_policy_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The dataPolicyType to set. + * @return This builder for chaining. + */ + public Builder setDataPolicyType( + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.DataPolicyType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + dataPolicyType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Type of data policy.
+     * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.DataPolicyType data_policy_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearDataPolicyType() { + bitField0_ = (bitField0_ & ~0x00000010); + dataPolicyType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object policyTag_ = ""; + + /** + * + * + *
+     * Output only. Policy tag resource name, in the format of
+     * `projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}`.
+     * policy_tag is supported only for V1 data policies.
+     * 
+ * + * + * string policy_tag = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The policyTag. + */ + public java.lang.String getPolicyTag() { + java.lang.Object ref = policyTag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + policyTag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Policy tag resource name, in the format of
+     * `projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}`.
+     * policy_tag is supported only for V1 data policies.
+     * 
+ * + * + * string policy_tag = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for policyTag. + */ + public com.google.protobuf.ByteString getPolicyTagBytes() { + java.lang.Object ref = policyTag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + policyTag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Policy tag resource name, in the format of
+     * `projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}`.
+     * policy_tag is supported only for V1 data policies.
+     * 
+ * + * + * string policy_tag = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The policyTag to set. + * @return This builder for chaining. + */ + public Builder setPolicyTag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + policyTag_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Policy tag resource name, in the format of
+     * `projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}`.
+     * policy_tag is supported only for V1 data policies.
+     * 
+ * + * + * string policy_tag = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearPolicyTag() { + policyTag_ = getDefaultInstance().getPolicyTag(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Policy tag resource name, in the format of
+     * `projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}`.
+     * policy_tag is supported only for V1 data policies.
+     * 
+ * + * + * string policy_tag = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for policyTag to set. + * @return This builder for chaining. + */ + public Builder setPolicyTagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + policyTag_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList grantees_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureGranteesIsMutable() { + if (!grantees_.isModifiable()) { + grantees_ = new com.google.protobuf.LazyStringArrayList(grantees_); + } + bitField0_ |= 0x00000040; + } + + /** + * + * + *
+     * Optional. The list of IAM principals that have Fine Grained Access to the
+     * underlying data goverened by this data policy.
+     *
+     * Uses the [IAM V2 principal
+     * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2) Only
+     * supports principal types users, groups, serviceaccounts, cloudidentity.
+     * This field is supported in V2 Data Policy only. In case of V1 data policies
+     * (i.e. verion = 1 and policy_tag is set), this field is not populated.
+     * 
+ * + * repeated string grantees = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the grantees. + */ + public com.google.protobuf.ProtocolStringList getGranteesList() { + grantees_.makeImmutable(); + return grantees_; + } + + /** + * + * + *
+     * Optional. The list of IAM principals that have Fine Grained Access to the
+     * underlying data goverened by this data policy.
+     *
+     * Uses the [IAM V2 principal
+     * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2) Only
+     * supports principal types users, groups, serviceaccounts, cloudidentity.
+     * This field is supported in V2 Data Policy only. In case of V1 data policies
+     * (i.e. verion = 1 and policy_tag is set), this field is not populated.
+     * 
+ * + * repeated string grantees = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of grantees. + */ + public int getGranteesCount() { + return grantees_.size(); + } + + /** + * + * + *
+     * Optional. The list of IAM principals that have Fine Grained Access to the
+     * underlying data goverened by this data policy.
+     *
+     * Uses the [IAM V2 principal
+     * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2) Only
+     * supports principal types users, groups, serviceaccounts, cloudidentity.
+     * This field is supported in V2 Data Policy only. In case of V1 data policies
+     * (i.e. verion = 1 and policy_tag is set), this field is not populated.
+     * 
+ * + * repeated string grantees = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The grantees at the given index. + */ + public java.lang.String getGrantees(int index) { + return grantees_.get(index); + } + + /** + * + * + *
+     * Optional. The list of IAM principals that have Fine Grained Access to the
+     * underlying data goverened by this data policy.
+     *
+     * Uses the [IAM V2 principal
+     * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2) Only
+     * supports principal types users, groups, serviceaccounts, cloudidentity.
+     * This field is supported in V2 Data Policy only. In case of V1 data policies
+     * (i.e. verion = 1 and policy_tag is set), this field is not populated.
+     * 
+ * + * repeated string grantees = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the grantees at the given index. + */ + public com.google.protobuf.ByteString getGranteesBytes(int index) { + return grantees_.getByteString(index); + } + + /** + * + * + *
+     * Optional. The list of IAM principals that have Fine Grained Access to the
+     * underlying data goverened by this data policy.
+     *
+     * Uses the [IAM V2 principal
+     * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2) Only
+     * supports principal types users, groups, serviceaccounts, cloudidentity.
+     * This field is supported in V2 Data Policy only. In case of V1 data policies
+     * (i.e. verion = 1 and policy_tag is set), this field is not populated.
+     * 
+ * + * repeated string grantees = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The grantees to set. + * @return This builder for chaining. + */ + public Builder setGrantees(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureGranteesIsMutable(); + grantees_.set(index, value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The list of IAM principals that have Fine Grained Access to the
+     * underlying data goverened by this data policy.
+     *
+     * Uses the [IAM V2 principal
+     * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2) Only
+     * supports principal types users, groups, serviceaccounts, cloudidentity.
+     * This field is supported in V2 Data Policy only. In case of V1 data policies
+     * (i.e. verion = 1 and policy_tag is set), this field is not populated.
+     * 
+ * + * repeated string grantees = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The grantees to add. + * @return This builder for chaining. + */ + public Builder addGrantees(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureGranteesIsMutable(); + grantees_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The list of IAM principals that have Fine Grained Access to the
+     * underlying data goverened by this data policy.
+     *
+     * Uses the [IAM V2 principal
+     * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2) Only
+     * supports principal types users, groups, serviceaccounts, cloudidentity.
+     * This field is supported in V2 Data Policy only. In case of V1 data policies
+     * (i.e. verion = 1 and policy_tag is set), this field is not populated.
+     * 
+ * + * repeated string grantees = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The grantees to add. + * @return This builder for chaining. + */ + public Builder addAllGrantees(java.lang.Iterable values) { + ensureGranteesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, grantees_); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The list of IAM principals that have Fine Grained Access to the
+     * underlying data goverened by this data policy.
+     *
+     * Uses the [IAM V2 principal
+     * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2) Only
+     * supports principal types users, groups, serviceaccounts, cloudidentity.
+     * This field is supported in V2 Data Policy only. In case of V1 data policies
+     * (i.e. verion = 1 and policy_tag is set), this field is not populated.
+     * 
+ * + * repeated string grantees = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearGrantees() { + grantees_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The list of IAM principals that have Fine Grained Access to the
+     * underlying data goverened by this data policy.
+     *
+     * Uses the [IAM V2 principal
+     * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2) Only
+     * supports principal types users, groups, serviceaccounts, cloudidentity.
+     * This field is supported in V2 Data Policy only. In case of V1 data policies
+     * (i.e. verion = 1 and policy_tag is set), this field is not populated.
+     * 
+ * + * repeated string grantees = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the grantees to add. + * @return This builder for chaining. + */ + public Builder addGranteesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureGranteesIsMutable(); + grantees_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private int version_ = 0; + + /** + * + * + *
+     * Output only. The version of the Data Policy resource.
+     * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.Version version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for version. + */ + @java.lang.Override + public int getVersionValue() { + return version_; + } + + /** + * + * + *
+     * Output only. The version of the Data Policy resource.
+     * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.Version version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for version to set. + * @return This builder for chaining. + */ + public Builder setVersionValue(int value) { + version_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The version of the Data Policy resource.
+     * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.Version version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The version. + */ + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.Version getVersion() { + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.Version result = + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.Version.forNumber(version_); + return result == null + ? com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.Version.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. The version of the Data Policy resource.
+     * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.Version version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion( + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.Version value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + version_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The version of the Data Policy resource.
+     * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.Version version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + bitField0_ = (bitField0_ & ~0x00000080); + version_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datapolicies.v2beta1.DataPolicy) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datapolicies.v2beta1.DataPolicy) + private static final com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy(); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/DataPolicyName.java b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/DataPolicyName.java new file mode 100644 index 000000000000..591247f1768d --- /dev/null +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/DataPolicyName.java @@ -0,0 +1,223 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class DataPolicyName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_DATA_POLICY = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/dataPolicies/{data_policy}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String dataPolicy; + + @Deprecated + protected DataPolicyName() { + project = null; + location = null; + dataPolicy = null; + } + + private DataPolicyName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + dataPolicy = Preconditions.checkNotNull(builder.getDataPolicy()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDataPolicy() { + return dataPolicy; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static DataPolicyName of(String project, String location, String dataPolicy) { + return newBuilder().setProject(project).setLocation(location).setDataPolicy(dataPolicy).build(); + } + + public static String format(String project, String location, String dataPolicy) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDataPolicy(dataPolicy) + .build() + .toString(); + } + + public static DataPolicyName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_DATA_POLICY.validatedMatch( + formattedString, "DataPolicyName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("data_policy")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (DataPolicyName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_DATA_POLICY.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (dataPolicy != null) { + fieldMapBuilder.put("data_policy", dataPolicy); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_DATA_POLICY.instantiate( + "project", project, "location", location, "data_policy", dataPolicy); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + DataPolicyName that = ((DataPolicyName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.dataPolicy, that.dataPolicy); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(dataPolicy); + return h; + } + + /** Builder for projects/{project}/locations/{location}/dataPolicies/{data_policy}. */ + public static class Builder { + private String project; + private String location; + private String dataPolicy; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDataPolicy() { + return dataPolicy; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setDataPolicy(String dataPolicy) { + this.dataPolicy = dataPolicy; + return this; + } + + private Builder(DataPolicyName dataPolicyName) { + this.project = dataPolicyName.project; + this.location = dataPolicyName.location; + this.dataPolicy = dataPolicyName.dataPolicy; + } + + public DataPolicyName build() { + return new DataPolicyName(this); + } + } +} diff --git a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/DataPolicyOrBuilder.java b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/DataPolicyOrBuilder.java new file mode 100644 index 000000000000..da6bfbc77251 --- /dev/null +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/DataPolicyOrBuilder.java @@ -0,0 +1,360 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/datapolicies/v2beta1/datapolicy.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.bigquery.datapolicies.v2beta1; + +public interface DataPolicyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datapolicies.v2beta1.DataPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The data masking policy that specifies the data masking rule to
+   * use. It must be set if the data policy type is DATA_MASKING_POLICY.
+   * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy data_masking_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dataMaskingPolicy field is set. + */ + boolean hasDataMaskingPolicy(); + + /** + * + * + *
+   * Optional. The data masking policy that specifies the data masking rule to
+   * use. It must be set if the data policy type is DATA_MASKING_POLICY.
+   * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy data_masking_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataMaskingPolicy. + */ + com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy getDataMaskingPolicy(); + + /** + * + * + *
+   * Optional. The data masking policy that specifies the data masking rule to
+   * use. It must be set if the data policy type is DATA_MASKING_POLICY.
+   * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicy data_masking_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.bigquery.datapolicies.v2beta1.DataMaskingPolicyOrBuilder + getDataMaskingPolicyOrBuilder(); + + /** + * + * + *
+   * Identifier. Resource name of this data policy, in the format of
+   * `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. Resource name of this data policy, in the format of
+   * `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. User-assigned (human readable) ID of the data policy that
+   * needs to be unique within a project. Used as {data_policy_id} in part of
+   * the resource name.
+   * 
+ * + * string data_policy_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The dataPolicyId. + */ + java.lang.String getDataPolicyId(); + + /** + * + * + *
+   * Output only. User-assigned (human readable) ID of the data policy that
+   * needs to be unique within a project. Used as {data_policy_id} in part of
+   * the resource name.
+   * 
+ * + * string data_policy_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for dataPolicyId. + */ + com.google.protobuf.ByteString getDataPolicyIdBytes(); + + /** + * + * + *
+   * The etag for this Data Policy.
+   * This field is used for UpdateDataPolicy calls. If Data Policy exists, this
+   * field is required and must match the server's etag. It will also be
+   * populated in the response of GetDataPolicy, CreateDataPolicy, and
+   * UpdateDataPolicy calls.
+   * 
+ * + * optional string etag = 11; + * + * @return Whether the etag field is set. + */ + boolean hasEtag(); + + /** + * + * + *
+   * The etag for this Data Policy.
+   * This field is used for UpdateDataPolicy calls. If Data Policy exists, this
+   * field is required and must match the server's etag. It will also be
+   * populated in the response of GetDataPolicy, CreateDataPolicy, and
+   * UpdateDataPolicy calls.
+   * 
+ * + * optional string etag = 11; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
+   * The etag for this Data Policy.
+   * This field is used for UpdateDataPolicy calls. If Data Policy exists, this
+   * field is required and must match the server's etag. It will also be
+   * populated in the response of GetDataPolicy, CreateDataPolicy, and
+   * UpdateDataPolicy calls.
+   * 
+ * + * optional string etag = 11; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
+   * Required. Type of data policy.
+   * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.DataPolicyType data_policy_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for dataPolicyType. + */ + int getDataPolicyTypeValue(); + + /** + * + * + *
+   * Required. Type of data policy.
+   * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.DataPolicyType data_policy_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataPolicyType. + */ + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.DataPolicyType getDataPolicyType(); + + /** + * + * + *
+   * Output only. Policy tag resource name, in the format of
+   * `projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}`.
+   * policy_tag is supported only for V1 data policies.
+   * 
+ * + * + * string policy_tag = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The policyTag. + */ + java.lang.String getPolicyTag(); + + /** + * + * + *
+   * Output only. Policy tag resource name, in the format of
+   * `projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}`.
+   * policy_tag is supported only for V1 data policies.
+   * 
+ * + * + * string policy_tag = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for policyTag. + */ + com.google.protobuf.ByteString getPolicyTagBytes(); + + /** + * + * + *
+   * Optional. The list of IAM principals that have Fine Grained Access to the
+   * underlying data goverened by this data policy.
+   *
+   * Uses the [IAM V2 principal
+   * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2) Only
+   * supports principal types users, groups, serviceaccounts, cloudidentity.
+   * This field is supported in V2 Data Policy only. In case of V1 data policies
+   * (i.e. verion = 1 and policy_tag is set), this field is not populated.
+   * 
+ * + * repeated string grantees = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the grantees. + */ + java.util.List getGranteesList(); + + /** + * + * + *
+   * Optional. The list of IAM principals that have Fine Grained Access to the
+   * underlying data goverened by this data policy.
+   *
+   * Uses the [IAM V2 principal
+   * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2) Only
+   * supports principal types users, groups, serviceaccounts, cloudidentity.
+   * This field is supported in V2 Data Policy only. In case of V1 data policies
+   * (i.e. verion = 1 and policy_tag is set), this field is not populated.
+   * 
+ * + * repeated string grantees = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of grantees. + */ + int getGranteesCount(); + + /** + * + * + *
+   * Optional. The list of IAM principals that have Fine Grained Access to the
+   * underlying data goverened by this data policy.
+   *
+   * Uses the [IAM V2 principal
+   * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2) Only
+   * supports principal types users, groups, serviceaccounts, cloudidentity.
+   * This field is supported in V2 Data Policy only. In case of V1 data policies
+   * (i.e. verion = 1 and policy_tag is set), this field is not populated.
+   * 
+ * + * repeated string grantees = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The grantees at the given index. + */ + java.lang.String getGrantees(int index); + + /** + * + * + *
+   * Optional. The list of IAM principals that have Fine Grained Access to the
+   * underlying data goverened by this data policy.
+   *
+   * Uses the [IAM V2 principal
+   * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2) Only
+   * supports principal types users, groups, serviceaccounts, cloudidentity.
+   * This field is supported in V2 Data Policy only. In case of V1 data policies
+   * (i.e. verion = 1 and policy_tag is set), this field is not populated.
+   * 
+ * + * repeated string grantees = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the grantees at the given index. + */ + com.google.protobuf.ByteString getGranteesBytes(int index); + + /** + * + * + *
+   * Output only. The version of the Data Policy resource.
+   * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.Version version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for version. + */ + int getVersionValue(); + + /** + * + * + *
+   * Output only. The version of the Data Policy resource.
+   * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.Version version = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The version. + */ + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.Version getVersion(); + + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.PolicyCase getPolicyCase(); +} diff --git a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/DataPolicyProto.java b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/DataPolicyProto.java new file mode 100644 index 000000000000..6107c36e1cf9 --- /dev/null +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/DataPolicyProto.java @@ -0,0 +1,336 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/datapolicies/v2beta1/datapolicy.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.bigquery.datapolicies.v2beta1; + +public final class DataPolicyProto { + private DataPolicyProto() {} + + 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_cloud_bigquery_datapolicies_v2beta1_CreateDataPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datapolicies_v2beta1_CreateDataPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datapolicies_v2beta1_UpdateDataPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datapolicies_v2beta1_UpdateDataPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datapolicies_v2beta1_AddGranteesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datapolicies_v2beta1_AddGranteesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datapolicies_v2beta1_RemoveGranteesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datapolicies_v2beta1_RemoveGranteesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datapolicies_v2beta1_DeleteDataPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datapolicies_v2beta1_DeleteDataPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datapolicies_v2beta1_GetDataPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datapolicies_v2beta1_GetDataPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datapolicies_v2beta1_ListDataPoliciesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datapolicies_v2beta1_ListDataPoliciesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datapolicies_v2beta1_ListDataPoliciesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datapolicies_v2beta1_ListDataPoliciesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datapolicies_v2beta1_DataPolicy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datapolicies_v2beta1_DataPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datapolicies_v2beta1_DataMaskingPolicy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datapolicies_v2beta1_DataMaskingPolicy_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/cloud/bigquery/datapolicies/v2b" + + "eta1/datapolicy.proto\022*google.cloud.bigq" + + "uery.datapolicies.v2beta1\032\034google/api/an" + + "notations.proto\032\027google/api/client.proto" + + "\032\037google/api/field_behavior.proto\032\031googl" + + "e/api/resource.proto\032\036google/iam/v1/iam_" + + "policy.proto\032\032google/iam/v1/policy.proto" + + "\032\033google/protobuf/empty.proto\032 google/pr" + + "otobuf/field_mask.proto\"\316\001\n\027CreateDataPo" + + "licyRequest\022D\n\006parent\030\001 \001(\tB4\340A\002\372A.\022,big" + + "querydatapolicy.googleapis.com/DataPolic" + + "y\022\033\n\016data_policy_id\030\002 \001(\tB\003\340A\002\022P\n\013data_p" + + "olicy\030\003 \001(\01326.google.cloud.bigquery.data" + + "policies.v2beta1.DataPolicyB\003\340A\002\"\241\001\n\027Upd" + + "ateDataPolicyRequest\022P\n\013data_policy\030\001 \001(" + + "\01326.google.cloud.bigquery.datapolicies.v" + + "2beta1.DataPolicyB\003\340A\002\0224\n\013update_mask\030\002 " + + "\001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"v\n\022" + + "AddGranteesRequest\022I\n\013data_policy\030\001 \001(\tB" + + "4\340A\002\372A.\n,bigquerydatapolicy.googleapis.c" + + "om/DataPolicy\022\025\n\010grantees\030\002 \003(\tB\003\340A\002\"y\n\025" + + "RemoveGranteesRequest\022I\n\013data_policy\030\001 \001" + + "(\tB4\340A\002\372A.\n,bigquerydatapolicy.googleapi" + + "s.com/DataPolicy\022\025\n\010grantees\030\002 \003(\tB\003\340A\002\"" + + "]\n\027DeleteDataPolicyRequest\022B\n\004name\030\001 \001(\t" + + "B4\340A\002\372A.\n,bigquerydatapolicy.googleapis." + + "com/DataPolicy\"Z\n\024GetDataPolicyRequest\022B" + + "\n\004name\030\001 \001(\tB4\340A\002\372A.\n,bigquerydatapolicy" + + ".googleapis.com/DataPolicy\"\220\001\n\027ListDataP" + + "oliciesRequest\022D\n\006parent\030\001 \001(\tB4\340A\002\372A.\022," + + "bigquerydatapolicy.googleapis.com/DataPo" + + "licy\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_tok" + + "en\030\003 \001(\tB\003\340A\001\"\202\001\n\030ListDataPoliciesRespon" + + "se\022M\n\rdata_policies\030\001 \003(\01326.google.cloud" + + ".bigquery.datapolicies.v2beta1.DataPolic" + + "y\022\027\n\017next_page_token\030\002 \001(\t\"\212\006\n\nDataPolic" + + "y\022a\n\023data_masking_policy\030\007 \001(\0132=.google." + + "cloud.bigquery.datapolicies.v2beta1.Data" + + "MaskingPolicyB\003\340A\001H\000\022\021\n\004name\030\001 \001(\tB\003\340A\010\022" + + "\033\n\016data_policy_id\030\002 \001(\tB\003\340A\003\022\021\n\004etag\030\013 \001" + + "(\tH\001\210\001\001\022d\n\020data_policy_type\030\003 \001(\0162E.goog" + + "le.cloud.bigquery.datapolicies.v2beta1.D" + + "ataPolicy.DataPolicyTypeB\003\340A\002\022@\n\npolicy_" + + "tag\030\004 \001(\tB,\340A\003\372A&\n$datacatalog.googleapi" + + "s.com/PolicyTag\022\025\n\010grantees\030\010 \003(\tB\003\340A\001\022T" + + "\n\007version\030\t \001(\0162>.google.cloud.bigquery." + + "datapolicies.v2beta1.DataPolicy.VersionB" + + "\003\340A\003\"g\n\016DataPolicyType\022 \n\034DATA_POLICY_TY" + + "PE_UNSPECIFIED\020\000\022\027\n\023DATA_MASKING_POLICY\020" + + "\001\022\032\n\026RAW_DATA_ACCESS_POLICY\020\002\"2\n\007Version" + + "\022\027\n\023VERSION_UNSPECIFIED\020\000\022\006\n\002V1\020\001\022\006\n\002V2\020" + + "\002:\220\001\352A\214\001\n,bigquerydatapolicy.googleapis." + + "com/DataPolicy\022Bprojects/{project}/locat" + + "ions/{location}/dataPolicies/{data_polic" + + "y}*\014dataPolicies2\ndataPolicyB\010\n\006policyB\007" + + "\n\005_etag\"\232\002\n\021DataMaskingPolicy\022x\n\025predefi" + + "ned_expression\030\001 \001(\0162R.google.cloud.bigq" + + "uery.datapolicies.v2beta1.DataMaskingPol" + + "icy.PredefinedExpressionB\003\340A\001H\000\"u\n\024Prede" + + "finedExpression\022%\n!PREDEFINED_EXPRESSION" + + "_UNSPECIFIED\020\000\022\n\n\006SHA256\020\001\022\017\n\013ALWAYS_NUL" + + "L\020\002\022\031\n\025DEFAULT_MASKING_VALUE\020\003B\024\n\022maskin" + + "g_expression2\365\021\n\021DataPolicyService\022\365\001\n\020C" + + "reateDataPolicy\022C.google.cloud.bigquery." + + "datapolicies.v2beta1.CreateDataPolicyReq" + + "uest\0326.google.cloud.bigquery.datapolicie" + + "s.v2beta1.DataPolicy\"d\332A!parent,data_pol" + + "icy,data_policy_id\202\323\344\223\002:\"5/v2beta1/{pare" + + "nt=projects/*/locations/*}/dataPolicies:" + + "\001*\022\361\001\n\013AddGrantees\022>.google.cloud.bigque" + + "ry.datapolicies.v2beta1.AddGranteesReque" + + "st\0326.google.cloud.bigquery.datapolicies." + + "v2beta1.DataPolicy\"j\332A\024data_policy,grant" + + "ees\202\323\344\223\002M\"H/v2beta1/{data_policy=project" + + "s/*/locations/*/dataPolicies/*}:addGrant" + + "ees:\001*\022\372\001\n\016RemoveGrantees\022A.google.cloud" + + ".bigquery.datapolicies.v2beta1.RemoveGra" + + "nteesRequest\0326.google.cloud.bigquery.dat" + + "apolicies.v2beta1.DataPolicy\"m\332A\024data_po" + + "licy,grantees\202\323\344\223\002P\"K/v2beta1/{data_poli" + + "cy=projects/*/locations/*/dataPolicies/*" + + "}:removeGrantees:\001*\022\201\002\n\020UpdateDataPolicy" + + "\022C.google.cloud.bigquery.datapolicies.v2" + + "beta1.UpdateDataPolicyRequest\0326.google.c" + + "loud.bigquery.datapolicies.v2beta1.DataP" + + "olicy\"p\332A\027data_policy,update_mask\202\323\344\223\002P2" + + "A/v2beta1/{data_policy.name=projects/*/l" + + "ocations/*/dataPolicies/*}:\013data_policy\022" + + "\265\001\n\020DeleteDataPolicy\022C.google.cloud.bigq" + + "uery.datapolicies.v2beta1.DeleteDataPoli" + + "cyRequest\032\026.google.protobuf.Empty\"D\332A\004na" + + "me\202\323\344\223\0027*5/v2beta1/{name=projects/*/loca" + + "tions/*/dataPolicies/*}\022\317\001\n\rGetDataPolic" + + "y\022@.google.cloud.bigquery.datapolicies.v" + + "2beta1.GetDataPolicyRequest\0326.google.clo" + + "ud.bigquery.datapolicies.v2beta1.DataPol" + + "icy\"D\332A\004name\202\323\344\223\0027\0225/v2beta1/{name=proje" + + "cts/*/locations/*/dataPolicies/*}\022\345\001\n\020Li" + + "stDataPolicies\022C.google.cloud.bigquery.d" + + "atapolicies.v2beta1.ListDataPoliciesRequ" + + "est\032D.google.cloud.bigquery.datapolicies" + + ".v2beta1.ListDataPoliciesResponse\"F\332A\006pa" + + "rent\202\323\344\223\0027\0225/v2beta1/{parent=projects/*/" + + "locations/*}/dataPolicies\022\234\001\n\014GetIamPoli" + + "cy\022\".google.iam.v1.GetIamPolicyRequest\032\025" + + ".google.iam.v1.Policy\"Q\202\323\344\223\002K\"F/v2beta1/" + + "{resource=projects/*/locations/*/dataPol" + + "icies/*}:getIamPolicy:\001*\022\234\001\n\014SetIamPolic" + + "y\022\".google.iam.v1.SetIamPolicyRequest\032\025." + + "google.iam.v1.Policy\"Q\202\323\344\223\002K\"F/v2beta1/{" + + "resource=projects/*/locations/*/dataPoli" + + "cies/*}:setIamPolicy:\001*\022\302\001\n\022TestIamPermi" + + "ssions\022(.google.iam.v1.TestIamPermission" + + "sRequest\032).google.iam.v1.TestIamPermissi" + + "onsResponse\"W\202\323\344\223\002Q\"L/v2beta1/{resource=" + + "projects/*/locations/*/dataPolicies/*}:t" + + "estIamPermissions:\001*\032~\312A!bigquerydatapol" + + "icy.googleapis.com\322AWhttps://www.googlea" + + "pis.com/auth/bigquery,https://www.google" + + "apis.com/auth/cloud-platformB\242\003\n.com.goo" + + "gle.cloud.bigquery.datapolicies.v2beta1B" + + "\017DataPolicyProtoP\001ZRcloud.google.com/go/" + + "bigquery/datapolicies/apiv2beta1/datapol" + + "iciespb;datapoliciespb\252\002*Google.Cloud.Bi" + + "gQuery.DataPolicies.V2Beta1\312\002*Google\\Clo" + + "ud\\BigQuery\\DataPolicies\\V2beta1\352\002.Googl" + + "e::Cloud::Bigquery::DataPolicies::V2beta" + + "1\352A}\n$datacatalog.googleapis.com/PolicyT" + + "ag\022Uprojects/{project}/locations/{locati" + + "on}/taxonomies/{taxonomy}/policyTags/{po" + + "licy_tag}b\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.v1.IamPolicyProto.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_bigquery_datapolicies_v2beta1_CreateDataPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_datapolicies_v2beta1_CreateDataPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datapolicies_v2beta1_CreateDataPolicyRequest_descriptor, + new java.lang.String[] { + "Parent", "DataPolicyId", "DataPolicy", + }); + internal_static_google_cloud_bigquery_datapolicies_v2beta1_UpdateDataPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_datapolicies_v2beta1_UpdateDataPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datapolicies_v2beta1_UpdateDataPolicyRequest_descriptor, + new java.lang.String[] { + "DataPolicy", "UpdateMask", + }); + internal_static_google_cloud_bigquery_datapolicies_v2beta1_AddGranteesRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_bigquery_datapolicies_v2beta1_AddGranteesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datapolicies_v2beta1_AddGranteesRequest_descriptor, + new java.lang.String[] { + "DataPolicy", "Grantees", + }); + internal_static_google_cloud_bigquery_datapolicies_v2beta1_RemoveGranteesRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_bigquery_datapolicies_v2beta1_RemoveGranteesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datapolicies_v2beta1_RemoveGranteesRequest_descriptor, + new java.lang.String[] { + "DataPolicy", "Grantees", + }); + internal_static_google_cloud_bigquery_datapolicies_v2beta1_DeleteDataPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_bigquery_datapolicies_v2beta1_DeleteDataPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datapolicies_v2beta1_DeleteDataPolicyRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_bigquery_datapolicies_v2beta1_GetDataPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_bigquery_datapolicies_v2beta1_GetDataPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datapolicies_v2beta1_GetDataPolicyRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_bigquery_datapolicies_v2beta1_ListDataPoliciesRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_bigquery_datapolicies_v2beta1_ListDataPoliciesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datapolicies_v2beta1_ListDataPoliciesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_bigquery_datapolicies_v2beta1_ListDataPoliciesResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_bigquery_datapolicies_v2beta1_ListDataPoliciesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datapolicies_v2beta1_ListDataPoliciesResponse_descriptor, + new java.lang.String[] { + "DataPolicies", "NextPageToken", + }); + internal_static_google_cloud_bigquery_datapolicies_v2beta1_DataPolicy_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_bigquery_datapolicies_v2beta1_DataPolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datapolicies_v2beta1_DataPolicy_descriptor, + new java.lang.String[] { + "DataMaskingPolicy", + "Name", + "DataPolicyId", + "Etag", + "DataPolicyType", + "PolicyTag", + "Grantees", + "Version", + "Policy", + }); + internal_static_google_cloud_bigquery_datapolicies_v2beta1_DataMaskingPolicy_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_bigquery_datapolicies_v2beta1_DataMaskingPolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datapolicies_v2beta1_DataMaskingPolicy_descriptor, + new java.lang.String[] { + "PredefinedExpression", "MaskingExpression", + }); + 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.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.iam.v1.IamPolicyProto.getDescriptor(); + com.google.iam.v1.PolicyProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/DeleteDataPolicyRequest.java b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/DeleteDataPolicyRequest.java new file mode 100644 index 000000000000..2cf1b3c0fb40 --- /dev/null +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/DeleteDataPolicyRequest.java @@ -0,0 +1,668 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/datapolicies/v2beta1/datapolicy.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.bigquery.datapolicies.v2beta1; + +/** + * + * + *
+ * Request message for the DeleteDataPolicy method.
+ * 
+ * + * Protobuf type {@code google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest} + */ +public final class DeleteDataPolicyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest) + DeleteDataPolicyRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DeleteDataPolicyRequest.newBuilder() to construct. + private DeleteDataPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteDataPolicyRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteDataPolicyRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyProto + .internal_static_google_cloud_bigquery_datapolicies_v2beta1_DeleteDataPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyProto + .internal_static_google_cloud_bigquery_datapolicies_v2beta1_DeleteDataPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest.class, + com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Resource name of the data policy to delete. Format is
+   * `projects/{project_number}/locations/{location_id}/dataPolicies/{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. Resource name of the data policy to delete. Format is
+   * `projects/{project_number}/locations/{location_id}/dataPolicies/{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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest)) { + return super.equals(obj); + } + com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest other = + (com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest) 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.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for the DeleteDataPolicy method.
+   * 
+ * + * Protobuf type {@code google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest) + com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyProto + .internal_static_google_cloud_bigquery_datapolicies_v2beta1_DeleteDataPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyProto + .internal_static_google_cloud_bigquery_datapolicies_v2beta1_DeleteDataPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest.class, + com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest.Builder.class); + } + + // Construct using + // com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyProto + .internal_static_google_cloud_bigquery_datapolicies_v2beta1_DeleteDataPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest build() { + com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest buildPartial() { + com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest result = + new com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest) { + return mergeFrom( + (com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest other) { + if (other + == com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. Resource name of the data policy to delete. Format is
+     * `projects/{project_number}/locations/{location_id}/dataPolicies/{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. Resource name of the data policy to delete. Format is
+     * `projects/{project_number}/locations/{location_id}/dataPolicies/{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. Resource name of the data policy to delete. Format is
+     * `projects/{project_number}/locations/{location_id}/dataPolicies/{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. Resource name of the data policy to delete. Format is
+     * `projects/{project_number}/locations/{location_id}/dataPolicies/{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. Resource name of the data policy to delete. Format is
+     * `projects/{project_number}/locations/{location_id}/dataPolicies/{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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest) + private static final com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest(); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteDataPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/DeleteDataPolicyRequestOrBuilder.java b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/DeleteDataPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..a196920f30c1 --- /dev/null +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/DeleteDataPolicyRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/datapolicies/v2beta1/datapolicy.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.bigquery.datapolicies.v2beta1; + +public interface DeleteDataPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the data policy to delete. Format is
+   * `projects/{project_number}/locations/{location_id}/dataPolicies/{id}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Resource name of the data policy to delete. Format is
+   * `projects/{project_number}/locations/{location_id}/dataPolicies/{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-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/GetDataPolicyRequest.java b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/GetDataPolicyRequest.java new file mode 100644 index 000000000000..78384c99c2df --- /dev/null +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/GetDataPolicyRequest.java @@ -0,0 +1,667 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/datapolicies/v2beta1/datapolicy.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.bigquery.datapolicies.v2beta1; + +/** + * + * + *
+ * Request message for the GetDataPolicy method.
+ * 
+ * + * Protobuf type {@code google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest} + */ +public final class GetDataPolicyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest) + GetDataPolicyRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetDataPolicyRequest.newBuilder() to construct. + private GetDataPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetDataPolicyRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetDataPolicyRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyProto + .internal_static_google_cloud_bigquery_datapolicies_v2beta1_GetDataPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyProto + .internal_static_google_cloud_bigquery_datapolicies_v2beta1_GetDataPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest.class, + com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Resource name of the requested data policy. Format is
+   * `projects/{project_number}/locations/{location_id}/dataPolicies/{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. Resource name of the requested data policy. Format is
+   * `projects/{project_number}/locations/{location_id}/dataPolicies/{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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest)) { + return super.equals(obj); + } + com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest other = + (com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest) 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.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for the GetDataPolicy method.
+   * 
+ * + * Protobuf type {@code google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest) + com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyProto + .internal_static_google_cloud_bigquery_datapolicies_v2beta1_GetDataPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyProto + .internal_static_google_cloud_bigquery_datapolicies_v2beta1_GetDataPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest.class, + com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest.Builder.class); + } + + // Construct using + // com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyProto + .internal_static_google_cloud_bigquery_datapolicies_v2beta1_GetDataPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest build() { + com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest buildPartial() { + com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest result = + new com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest) { + return mergeFrom( + (com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest other) { + if (other + == com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. Resource name of the requested data policy. Format is
+     * `projects/{project_number}/locations/{location_id}/dataPolicies/{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. Resource name of the requested data policy. Format is
+     * `projects/{project_number}/locations/{location_id}/dataPolicies/{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. Resource name of the requested data policy. Format is
+     * `projects/{project_number}/locations/{location_id}/dataPolicies/{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. Resource name of the requested data policy. Format is
+     * `projects/{project_number}/locations/{location_id}/dataPolicies/{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. Resource name of the requested data policy. Format is
+     * `projects/{project_number}/locations/{location_id}/dataPolicies/{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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest) + private static final com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest(); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDataPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/GetDataPolicyRequestOrBuilder.java b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/GetDataPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..1e7eaf6a714d --- /dev/null +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/GetDataPolicyRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/datapolicies/v2beta1/datapolicy.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.bigquery.datapolicies.v2beta1; + +public interface GetDataPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the requested data policy. Format is
+   * `projects/{project_number}/locations/{location_id}/dataPolicies/{id}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Resource name of the requested data policy. Format is
+   * `projects/{project_number}/locations/{location_id}/dataPolicies/{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-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/ListDataPoliciesRequest.java b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/ListDataPoliciesRequest.java new file mode 100644 index 000000000000..4a2ef3130e55 --- /dev/null +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/ListDataPoliciesRequest.java @@ -0,0 +1,965 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/datapolicies/v2beta1/datapolicy.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.bigquery.datapolicies.v2beta1; + +/** + * + * + *
+ * Request message for the ListDataPolicies method.
+ * 
+ * + * Protobuf type {@code google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest} + */ +public final class ListDataPoliciesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest) + ListDataPoliciesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListDataPoliciesRequest.newBuilder() to construct. + private ListDataPoliciesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDataPoliciesRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDataPoliciesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyProto + .internal_static_google_cloud_bigquery_datapolicies_v2beta1_ListDataPoliciesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyProto + .internal_static_google_cloud_bigquery_datapolicies_v2beta1_ListDataPoliciesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest.class, + com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. Resource name of the project for which to list data policies.
+   * Format is `projects/{project_number}/locations/{location_id}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Resource name of the project for which to list data policies.
+   * Format is `projects/{project_number}/locations/{location_id}`.
+   * 
+ * + * + * 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 data policies to return. Must be a value
+   * between 1 and 1000. If not set, defaults to 50.
+   * 
+ * + * 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. The `nextPageToken` value returned from a previous list request,
+   * if any. If not set, defaults to an empty string.
+   * 
+ * + * 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. The `nextPageToken` value returned from a previous list request,
+   * if any. If not set, defaults to an empty string.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest)) { + return super.equals(obj); + } + com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest other = + (com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest) 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.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for the ListDataPolicies method.
+   * 
+ * + * Protobuf type {@code google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest) + com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyProto + .internal_static_google_cloud_bigquery_datapolicies_v2beta1_ListDataPoliciesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyProto + .internal_static_google_cloud_bigquery_datapolicies_v2beta1_ListDataPoliciesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest.class, + com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest.Builder.class); + } + + // Construct using + // com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyProto + .internal_static_google_cloud_bigquery_datapolicies_v2beta1_ListDataPoliciesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest build() { + com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest buildPartial() { + com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest result = + new com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest) { + return mergeFrom( + (com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest other) { + if (other + == com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. Resource name of the project for which to list data policies.
+     * Format is `projects/{project_number}/locations/{location_id}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Resource name of the project for which to list data policies.
+     * Format is `projects/{project_number}/locations/{location_id}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Resource name of the project for which to list data policies.
+     * Format is `projects/{project_number}/locations/{location_id}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Resource name of the project for which to list data policies.
+     * Format is `projects/{project_number}/locations/{location_id}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Resource name of the project for which to list data policies.
+     * Format is `projects/{project_number}/locations/{location_id}`.
+     * 
+ * + * + * 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 data policies to return. Must be a value
+     * between 1 and 1000. If not set, defaults to 50.
+     * 
+ * + * 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 data policies to return. Must be a value
+     * between 1 and 1000. If not set, defaults to 50.
+     * 
+ * + * 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 data policies to return. Must be a value
+     * between 1 and 1000. If not set, defaults to 50.
+     * 
+ * + * 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. The `nextPageToken` value returned from a previous list request,
+     * if any. If not set, defaults to an empty string.
+     * 
+ * + * 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. The `nextPageToken` value returned from a previous list request,
+     * if any. If not set, defaults to an empty string.
+     * 
+ * + * 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. The `nextPageToken` value returned from a previous list request,
+     * if any. If not set, defaults to an empty string.
+     * 
+ * + * 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. The `nextPageToken` value returned from a previous list request,
+     * if any. If not set, defaults to an empty string.
+     * 
+ * + * 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. The `nextPageToken` value returned from a previous list request,
+     * if any. If not set, defaults to an empty string.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest) + private static final com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest(); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDataPoliciesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/ListDataPoliciesRequestOrBuilder.java b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/ListDataPoliciesRequestOrBuilder.java new file mode 100644 index 000000000000..92a63e4adb14 --- /dev/null +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/ListDataPoliciesRequestOrBuilder.java @@ -0,0 +1,100 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/datapolicies/v2beta1/datapolicy.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.bigquery.datapolicies.v2beta1; + +public interface ListDataPoliciesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the project for which to list data policies.
+   * Format is `projects/{project_number}/locations/{location_id}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. Resource name of the project for which to list data policies.
+   * Format is `projects/{project_number}/locations/{location_id}`.
+   * 
+ * + * + * 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 data policies to return. Must be a value
+   * between 1 and 1000. If not set, defaults to 50.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. The `nextPageToken` value returned from a previous list request,
+   * if any. If not set, defaults to an empty string.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. The `nextPageToken` value returned from a previous list request,
+   * if any. If not set, defaults to an empty string.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/ListDataPoliciesResponse.java b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/ListDataPoliciesResponse.java new file mode 100644 index 000000000000..49ebea201c25 --- /dev/null +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/ListDataPoliciesResponse.java @@ -0,0 +1,1212 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/datapolicies/v2beta1/datapolicy.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.bigquery.datapolicies.v2beta1; + +/** + * + * + *
+ * Response message for the ListDataPolicies method.
+ * 
+ * + * Protobuf type {@code google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse} + */ +public final class ListDataPoliciesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse) + ListDataPoliciesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListDataPoliciesResponse.newBuilder() to construct. + private ListDataPoliciesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDataPoliciesResponse() { + dataPolicies_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDataPoliciesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyProto + .internal_static_google_cloud_bigquery_datapolicies_v2beta1_ListDataPoliciesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyProto + .internal_static_google_cloud_bigquery_datapolicies_v2beta1_ListDataPoliciesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse.class, + com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse.Builder.class); + } + + public static final int DATA_POLICIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List dataPolicies_; + + /** + * + * + *
+   * Data policies that belong to the requested project.
+   * 
+ * + * repeated .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policies = 1; + */ + @java.lang.Override + public java.util.List + getDataPoliciesList() { + return dataPolicies_; + } + + /** + * + * + *
+   * Data policies that belong to the requested project.
+   * 
+ * + * repeated .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policies = 1; + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyOrBuilder> + getDataPoliciesOrBuilderList() { + return dataPolicies_; + } + + /** + * + * + *
+   * Data policies that belong to the requested project.
+   * 
+ * + * repeated .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policies = 1; + */ + @java.lang.Override + public int getDataPoliciesCount() { + return dataPolicies_.size(); + } + + /** + * + * + *
+   * Data policies that belong to the requested project.
+   * 
+ * + * repeated .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policies = 1; + */ + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy getDataPolicies(int index) { + return dataPolicies_.get(index); + } + + /** + * + * + *
+   * Data policies that belong to the requested project.
+   * 
+ * + * repeated .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policies = 1; + */ + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyOrBuilder + getDataPoliciesOrBuilder(int index) { + return dataPolicies_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * Token used to retrieve the next page of results, or empty if there are no
+   * more results.
+   * 
+ * + * 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; + } + } + + /** + * + * + *
+   * Token used to retrieve the next page of results, or empty if there are no
+   * more results.
+   * 
+ * + * 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 < dataPolicies_.size(); i++) { + output.writeMessage(1, dataPolicies_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < dataPolicies_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dataPolicies_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse)) { + return super.equals(obj); + } + com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse other = + (com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse) obj; + + if (!getDataPoliciesList().equals(other.getDataPoliciesList())) 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 (getDataPoliciesCount() > 0) { + hash = (37 * hash) + DATA_POLICIES_FIELD_NUMBER; + hash = (53 * hash) + getDataPoliciesList().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.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for the ListDataPolicies method.
+   * 
+ * + * Protobuf type {@code google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse) + com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyProto + .internal_static_google_cloud_bigquery_datapolicies_v2beta1_ListDataPoliciesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyProto + .internal_static_google_cloud_bigquery_datapolicies_v2beta1_ListDataPoliciesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse.class, + com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (dataPoliciesBuilder_ == null) { + dataPolicies_ = java.util.Collections.emptyList(); + } else { + dataPolicies_ = null; + dataPoliciesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyProto + .internal_static_google_cloud_bigquery_datapolicies_v2beta1_ListDataPoliciesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse + getDefaultInstanceForType() { + return com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse build() { + com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse buildPartial() { + com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse result = + new com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse result) { + if (dataPoliciesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + dataPolicies_ = java.util.Collections.unmodifiableList(dataPolicies_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.dataPolicies_ = dataPolicies_; + } else { + result.dataPolicies_ = dataPoliciesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse) { + return mergeFrom( + (com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse other) { + if (other + == com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse + .getDefaultInstance()) return this; + if (dataPoliciesBuilder_ == null) { + if (!other.dataPolicies_.isEmpty()) { + if (dataPolicies_.isEmpty()) { + dataPolicies_ = other.dataPolicies_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDataPoliciesIsMutable(); + dataPolicies_.addAll(other.dataPolicies_); + } + onChanged(); + } + } else { + if (!other.dataPolicies_.isEmpty()) { + if (dataPoliciesBuilder_.isEmpty()) { + dataPoliciesBuilder_.dispose(); + dataPoliciesBuilder_ = null; + dataPolicies_ = other.dataPolicies_; + bitField0_ = (bitField0_ & ~0x00000001); + dataPoliciesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDataPoliciesFieldBuilder() + : null; + } else { + dataPoliciesBuilder_.addAllMessages(other.dataPolicies_); + } + } + } + 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.cloud.bigquery.datapolicies.v2beta1.DataPolicy m = + input.readMessage( + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.parser(), + extensionRegistry); + if (dataPoliciesBuilder_ == null) { + ensureDataPoliciesIsMutable(); + dataPolicies_.add(m); + } else { + dataPoliciesBuilder_.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 + dataPolicies_ = java.util.Collections.emptyList(); + + private void ensureDataPoliciesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + dataPolicies_ = + new java.util.ArrayList( + dataPolicies_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy, + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.Builder, + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyOrBuilder> + dataPoliciesBuilder_; + + /** + * + * + *
+     * Data policies that belong to the requested project.
+     * 
+ * + * repeated .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policies = 1; + * + */ + public java.util.List + getDataPoliciesList() { + if (dataPoliciesBuilder_ == null) { + return java.util.Collections.unmodifiableList(dataPolicies_); + } else { + return dataPoliciesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Data policies that belong to the requested project.
+     * 
+ * + * repeated .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policies = 1; + * + */ + public int getDataPoliciesCount() { + if (dataPoliciesBuilder_ == null) { + return dataPolicies_.size(); + } else { + return dataPoliciesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Data policies that belong to the requested project.
+     * 
+ * + * repeated .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policies = 1; + * + */ + public com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy getDataPolicies(int index) { + if (dataPoliciesBuilder_ == null) { + return dataPolicies_.get(index); + } else { + return dataPoliciesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Data policies that belong to the requested project.
+     * 
+ * + * repeated .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policies = 1; + * + */ + public Builder setDataPolicies( + int index, com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy value) { + if (dataPoliciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataPoliciesIsMutable(); + dataPolicies_.set(index, value); + onChanged(); + } else { + dataPoliciesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Data policies that belong to the requested project.
+     * 
+ * + * repeated .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policies = 1; + * + */ + public Builder setDataPolicies( + int index, + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.Builder builderForValue) { + if (dataPoliciesBuilder_ == null) { + ensureDataPoliciesIsMutable(); + dataPolicies_.set(index, builderForValue.build()); + onChanged(); + } else { + dataPoliciesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Data policies that belong to the requested project.
+     * 
+ * + * repeated .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policies = 1; + * + */ + public Builder addDataPolicies( + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy value) { + if (dataPoliciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataPoliciesIsMutable(); + dataPolicies_.add(value); + onChanged(); + } else { + dataPoliciesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Data policies that belong to the requested project.
+     * 
+ * + * repeated .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policies = 1; + * + */ + public Builder addDataPolicies( + int index, com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy value) { + if (dataPoliciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataPoliciesIsMutable(); + dataPolicies_.add(index, value); + onChanged(); + } else { + dataPoliciesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Data policies that belong to the requested project.
+     * 
+ * + * repeated .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policies = 1; + * + */ + public Builder addDataPolicies( + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.Builder builderForValue) { + if (dataPoliciesBuilder_ == null) { + ensureDataPoliciesIsMutable(); + dataPolicies_.add(builderForValue.build()); + onChanged(); + } else { + dataPoliciesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Data policies that belong to the requested project.
+     * 
+ * + * repeated .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policies = 1; + * + */ + public Builder addDataPolicies( + int index, + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.Builder builderForValue) { + if (dataPoliciesBuilder_ == null) { + ensureDataPoliciesIsMutable(); + dataPolicies_.add(index, builderForValue.build()); + onChanged(); + } else { + dataPoliciesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Data policies that belong to the requested project.
+     * 
+ * + * repeated .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policies = 1; + * + */ + public Builder addAllDataPolicies( + java.lang.Iterable + values) { + if (dataPoliciesBuilder_ == null) { + ensureDataPoliciesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataPolicies_); + onChanged(); + } else { + dataPoliciesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Data policies that belong to the requested project.
+     * 
+ * + * repeated .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policies = 1; + * + */ + public Builder clearDataPolicies() { + if (dataPoliciesBuilder_ == null) { + dataPolicies_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + dataPoliciesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Data policies that belong to the requested project.
+     * 
+ * + * repeated .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policies = 1; + * + */ + public Builder removeDataPolicies(int index) { + if (dataPoliciesBuilder_ == null) { + ensureDataPoliciesIsMutable(); + dataPolicies_.remove(index); + onChanged(); + } else { + dataPoliciesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Data policies that belong to the requested project.
+     * 
+ * + * repeated .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policies = 1; + * + */ + public com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.Builder getDataPoliciesBuilder( + int index) { + return getDataPoliciesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Data policies that belong to the requested project.
+     * 
+ * + * repeated .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policies = 1; + * + */ + public com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyOrBuilder + getDataPoliciesOrBuilder(int index) { + if (dataPoliciesBuilder_ == null) { + return dataPolicies_.get(index); + } else { + return dataPoliciesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Data policies that belong to the requested project.
+     * 
+ * + * repeated .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policies = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyOrBuilder> + getDataPoliciesOrBuilderList() { + if (dataPoliciesBuilder_ != null) { + return dataPoliciesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dataPolicies_); + } + } + + /** + * + * + *
+     * Data policies that belong to the requested project.
+     * 
+ * + * repeated .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policies = 1; + * + */ + public com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.Builder + addDataPoliciesBuilder() { + return getDataPoliciesFieldBuilder() + .addBuilder( + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.getDefaultInstance()); + } + + /** + * + * + *
+     * Data policies that belong to the requested project.
+     * 
+ * + * repeated .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policies = 1; + * + */ + public com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.Builder addDataPoliciesBuilder( + int index) { + return getDataPoliciesFieldBuilder() + .addBuilder( + index, + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.getDefaultInstance()); + } + + /** + * + * + *
+     * Data policies that belong to the requested project.
+     * 
+ * + * repeated .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policies = 1; + * + */ + public java.util.List + getDataPoliciesBuilderList() { + return getDataPoliciesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy, + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.Builder, + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyOrBuilder> + getDataPoliciesFieldBuilder() { + if (dataPoliciesBuilder_ == null) { + dataPoliciesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy, + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.Builder, + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyOrBuilder>( + dataPolicies_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + dataPolicies_ = null; + } + return dataPoliciesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * Token used to retrieve the next page of results, or empty if there are no
+     * more results.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * Token used to retrieve the next page of results, or empty if there are no
+     * more results.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * Token used to retrieve the next page of results, or empty if there are no
+     * more results.
+     * 
+ * + * 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; + } + + /** + * + * + *
+     * Token used to retrieve the next page of results, or empty if there are no
+     * more results.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Token used to retrieve the next page of results, or empty if there are no
+     * more results.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse) + private static final com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse(); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDataPoliciesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/ListDataPoliciesResponseOrBuilder.java b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/ListDataPoliciesResponseOrBuilder.java new file mode 100644 index 000000000000..e503a29887a5 --- /dev/null +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/ListDataPoliciesResponseOrBuilder.java @@ -0,0 +1,111 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/datapolicies/v2beta1/datapolicy.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.bigquery.datapolicies.v2beta1; + +public interface ListDataPoliciesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Data policies that belong to the requested project.
+   * 
+ * + * repeated .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policies = 1; + */ + java.util.List getDataPoliciesList(); + + /** + * + * + *
+   * Data policies that belong to the requested project.
+   * 
+ * + * repeated .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policies = 1; + */ + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy getDataPolicies(int index); + + /** + * + * + *
+   * Data policies that belong to the requested project.
+   * 
+ * + * repeated .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policies = 1; + */ + int getDataPoliciesCount(); + + /** + * + * + *
+   * Data policies that belong to the requested project.
+   * 
+ * + * repeated .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policies = 1; + */ + java.util.List + getDataPoliciesOrBuilderList(); + + /** + * + * + *
+   * Data policies that belong to the requested project.
+   * 
+ * + * repeated .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policies = 1; + */ + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyOrBuilder getDataPoliciesOrBuilder( + int index); + + /** + * + * + *
+   * Token used to retrieve the next page of results, or empty if there are no
+   * more results.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * Token used to retrieve the next page of results, or empty if there are no
+   * more results.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/LocationName.java b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/LocationName.java new file mode 100644 index 000000000000..a68917c6ab36 --- /dev/null +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/LocationName.java @@ -0,0 +1,192 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class LocationName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION = + PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + + @Deprecated + protected LocationName() { + project = null; + location = null; + } + + private LocationName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static LocationName of(String project, String location) { + return newBuilder().setProject(project).setLocation(location).build(); + } + + public static String format(String project, String location) { + return newBuilder().setProject(project).setLocation(location).build().toString(); + } + + public static LocationName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION.validatedMatch( + formattedString, "LocationName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (LocationName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION.instantiate("project", project, "location", location); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + LocationName that = ((LocationName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + return h; + } + + /** Builder for projects/{project}/locations/{location}. */ + public static class Builder { + private String project; + private String location; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + private Builder(LocationName locationName) { + this.project = locationName.project; + this.location = locationName.location; + } + + public LocationName build() { + return new LocationName(this); + } + } +} diff --git a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/RemoveGranteesRequest.java b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/RemoveGranteesRequest.java new file mode 100644 index 000000000000..b42047bfef46 --- /dev/null +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/RemoveGranteesRequest.java @@ -0,0 +1,1087 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/datapolicies/v2beta1/datapolicy.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.bigquery.datapolicies.v2beta1; + +/** + * + * + *
+ * Request message for the RemoveGrantees method.
+ * 
+ * + * Protobuf type {@code google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest} + */ +public final class RemoveGranteesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest) + RemoveGranteesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use RemoveGranteesRequest.newBuilder() to construct. + private RemoveGranteesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RemoveGranteesRequest() { + dataPolicy_ = ""; + grantees_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RemoveGranteesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyProto + .internal_static_google_cloud_bigquery_datapolicies_v2beta1_RemoveGranteesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyProto + .internal_static_google_cloud_bigquery_datapolicies_v2beta1_RemoveGranteesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest.class, + com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest.Builder.class); + } + + public static final int DATA_POLICY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object dataPolicy_ = ""; + + /** + * + * + *
+   * Required. Resource name of this data policy, in the format of
+   * `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`.
+   * 
+ * + * + * string data_policy = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The dataPolicy. + */ + @java.lang.Override + public java.lang.String getDataPolicy() { + java.lang.Object ref = dataPolicy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataPolicy_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Resource name of this data policy, in the format of
+   * `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`.
+   * 
+ * + * + * string data_policy = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for dataPolicy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDataPolicyBytes() { + java.lang.Object ref = dataPolicy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataPolicy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GRANTEES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList grantees_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Required. IAM principal that should be revoked from Fine Grained Access to
+   * the underlying data goverened by the data policy. The target data policy is
+   * determined by the `data_policy` field.
+   *
+   * Uses the [IAM V2 principal
+   * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2).
+   * Supported principal types:
+   *
+   * * User
+   * * Group
+   * * Service account
+   * 
+ * + * repeated string grantees = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the grantees. + */ + public com.google.protobuf.ProtocolStringList getGranteesList() { + return grantees_; + } + + /** + * + * + *
+   * Required. IAM principal that should be revoked from Fine Grained Access to
+   * the underlying data goverened by the data policy. The target data policy is
+   * determined by the `data_policy` field.
+   *
+   * Uses the [IAM V2 principal
+   * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2).
+   * Supported principal types:
+   *
+   * * User
+   * * Group
+   * * Service account
+   * 
+ * + * repeated string grantees = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of grantees. + */ + public int getGranteesCount() { + return grantees_.size(); + } + + /** + * + * + *
+   * Required. IAM principal that should be revoked from Fine Grained Access to
+   * the underlying data goverened by the data policy. The target data policy is
+   * determined by the `data_policy` field.
+   *
+   * Uses the [IAM V2 principal
+   * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2).
+   * Supported principal types:
+   *
+   * * User
+   * * Group
+   * * Service account
+   * 
+ * + * repeated string grantees = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The grantees at the given index. + */ + public java.lang.String getGrantees(int index) { + return grantees_.get(index); + } + + /** + * + * + *
+   * Required. IAM principal that should be revoked from Fine Grained Access to
+   * the underlying data goverened by the data policy. The target data policy is
+   * determined by the `data_policy` field.
+   *
+   * Uses the [IAM V2 principal
+   * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2).
+   * Supported principal types:
+   *
+   * * User
+   * * Group
+   * * Service account
+   * 
+ * + * repeated string grantees = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the grantees at the given index. + */ + public com.google.protobuf.ByteString getGranteesBytes(int index) { + return grantees_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataPolicy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataPolicy_); + } + for (int i = 0; i < grantees_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, grantees_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataPolicy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dataPolicy_); + } + { + int dataSize = 0; + for (int i = 0; i < grantees_.size(); i++) { + dataSize += computeStringSizeNoTag(grantees_.getRaw(i)); + } + size += dataSize; + size += 1 * getGranteesList().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.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest)) { + return super.equals(obj); + } + com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest other = + (com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest) obj; + + if (!getDataPolicy().equals(other.getDataPolicy())) return false; + if (!getGranteesList().equals(other.getGranteesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DATA_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getDataPolicy().hashCode(); + if (getGranteesCount() > 0) { + hash = (37 * hash) + GRANTEES_FIELD_NUMBER; + hash = (53 * hash) + getGranteesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for the RemoveGrantees method.
+   * 
+ * + * Protobuf type {@code google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest) + com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyProto + .internal_static_google_cloud_bigquery_datapolicies_v2beta1_RemoveGranteesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyProto + .internal_static_google_cloud_bigquery_datapolicies_v2beta1_RemoveGranteesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest.class, + com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest.Builder.class); + } + + // Construct using + // com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dataPolicy_ = ""; + grantees_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyProto + .internal_static_google_cloud_bigquery_datapolicies_v2beta1_RemoveGranteesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest build() { + com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest buildPartial() { + com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest result = + new com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dataPolicy_ = dataPolicy_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + grantees_.makeImmutable(); + result.grantees_ = grantees_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest) { + return mergeFrom( + (com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest other) { + if (other + == com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest + .getDefaultInstance()) return this; + if (!other.getDataPolicy().isEmpty()) { + dataPolicy_ = other.dataPolicy_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.grantees_.isEmpty()) { + if (grantees_.isEmpty()) { + grantees_ = other.grantees_; + bitField0_ |= 0x00000002; + } else { + ensureGranteesIsMutable(); + grantees_.addAll(other.grantees_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + dataPolicy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureGranteesIsMutable(); + grantees_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object dataPolicy_ = ""; + + /** + * + * + *
+     * Required. Resource name of this data policy, in the format of
+     * `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`.
+     * 
+ * + * + * string data_policy = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The dataPolicy. + */ + public java.lang.String getDataPolicy() { + java.lang.Object ref = dataPolicy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataPolicy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Resource name of this data policy, in the format of
+     * `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`.
+     * 
+ * + * + * string data_policy = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for dataPolicy. + */ + public com.google.protobuf.ByteString getDataPolicyBytes() { + java.lang.Object ref = dataPolicy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataPolicy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Resource name of this data policy, in the format of
+     * `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`.
+     * 
+ * + * + * string data_policy = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The dataPolicy to set. + * @return This builder for chaining. + */ + public Builder setDataPolicy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dataPolicy_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Resource name of this data policy, in the format of
+     * `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`.
+     * 
+ * + * + * string data_policy = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearDataPolicy() { + dataPolicy_ = getDefaultInstance().getDataPolicy(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Resource name of this data policy, in the format of
+     * `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`.
+     * 
+ * + * + * string data_policy = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for dataPolicy to set. + * @return This builder for chaining. + */ + public Builder setDataPolicyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataPolicy_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList grantees_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureGranteesIsMutable() { + if (!grantees_.isModifiable()) { + grantees_ = new com.google.protobuf.LazyStringArrayList(grantees_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
+     * Required. IAM principal that should be revoked from Fine Grained Access to
+     * the underlying data goverened by the data policy. The target data policy is
+     * determined by the `data_policy` field.
+     *
+     * Uses the [IAM V2 principal
+     * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2).
+     * Supported principal types:
+     *
+     * * User
+     * * Group
+     * * Service account
+     * 
+ * + * repeated string grantees = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the grantees. + */ + public com.google.protobuf.ProtocolStringList getGranteesList() { + grantees_.makeImmutable(); + return grantees_; + } + + /** + * + * + *
+     * Required. IAM principal that should be revoked from Fine Grained Access to
+     * the underlying data goverened by the data policy. The target data policy is
+     * determined by the `data_policy` field.
+     *
+     * Uses the [IAM V2 principal
+     * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2).
+     * Supported principal types:
+     *
+     * * User
+     * * Group
+     * * Service account
+     * 
+ * + * repeated string grantees = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of grantees. + */ + public int getGranteesCount() { + return grantees_.size(); + } + + /** + * + * + *
+     * Required. IAM principal that should be revoked from Fine Grained Access to
+     * the underlying data goverened by the data policy. The target data policy is
+     * determined by the `data_policy` field.
+     *
+     * Uses the [IAM V2 principal
+     * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2).
+     * Supported principal types:
+     *
+     * * User
+     * * Group
+     * * Service account
+     * 
+ * + * repeated string grantees = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The grantees at the given index. + */ + public java.lang.String getGrantees(int index) { + return grantees_.get(index); + } + + /** + * + * + *
+     * Required. IAM principal that should be revoked from Fine Grained Access to
+     * the underlying data goverened by the data policy. The target data policy is
+     * determined by the `data_policy` field.
+     *
+     * Uses the [IAM V2 principal
+     * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2).
+     * Supported principal types:
+     *
+     * * User
+     * * Group
+     * * Service account
+     * 
+ * + * repeated string grantees = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the grantees at the given index. + */ + public com.google.protobuf.ByteString getGranteesBytes(int index) { + return grantees_.getByteString(index); + } + + /** + * + * + *
+     * Required. IAM principal that should be revoked from Fine Grained Access to
+     * the underlying data goverened by the data policy. The target data policy is
+     * determined by the `data_policy` field.
+     *
+     * Uses the [IAM V2 principal
+     * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2).
+     * Supported principal types:
+     *
+     * * User
+     * * Group
+     * * Service account
+     * 
+ * + * repeated string grantees = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index to set the value at. + * @param value The grantees to set. + * @return This builder for chaining. + */ + public Builder setGrantees(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureGranteesIsMutable(); + grantees_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. IAM principal that should be revoked from Fine Grained Access to
+     * the underlying data goverened by the data policy. The target data policy is
+     * determined by the `data_policy` field.
+     *
+     * Uses the [IAM V2 principal
+     * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2).
+     * Supported principal types:
+     *
+     * * User
+     * * Group
+     * * Service account
+     * 
+ * + * repeated string grantees = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The grantees to add. + * @return This builder for chaining. + */ + public Builder addGrantees(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureGranteesIsMutable(); + grantees_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. IAM principal that should be revoked from Fine Grained Access to
+     * the underlying data goverened by the data policy. The target data policy is
+     * determined by the `data_policy` field.
+     *
+     * Uses the [IAM V2 principal
+     * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2).
+     * Supported principal types:
+     *
+     * * User
+     * * Group
+     * * Service account
+     * 
+ * + * repeated string grantees = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param values The grantees to add. + * @return This builder for chaining. + */ + public Builder addAllGrantees(java.lang.Iterable values) { + ensureGranteesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, grantees_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. IAM principal that should be revoked from Fine Grained Access to
+     * the underlying data goverened by the data policy. The target data policy is
+     * determined by the `data_policy` field.
+     *
+     * Uses the [IAM V2 principal
+     * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2).
+     * Supported principal types:
+     *
+     * * User
+     * * Group
+     * * Service account
+     * 
+ * + * repeated string grantees = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearGrantees() { + grantees_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. IAM principal that should be revoked from Fine Grained Access to
+     * the underlying data goverened by the data policy. The target data policy is
+     * determined by the `data_policy` field.
+     *
+     * Uses the [IAM V2 principal
+     * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2).
+     * Supported principal types:
+     *
+     * * User
+     * * Group
+     * * Service account
+     * 
+ * + * repeated string grantees = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes of the grantees to add. + * @return This builder for chaining. + */ + public Builder addGranteesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureGranteesIsMutable(); + grantees_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest) + private static final com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest(); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RemoveGranteesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/RemoveGranteesRequestOrBuilder.java b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/RemoveGranteesRequestOrBuilder.java new file mode 100644 index 000000000000..55c820911fd2 --- /dev/null +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/RemoveGranteesRequestOrBuilder.java @@ -0,0 +1,152 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/datapolicies/v2beta1/datapolicy.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.bigquery.datapolicies.v2beta1; + +public interface RemoveGranteesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of this data policy, in the format of
+   * `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`.
+   * 
+ * + * + * string data_policy = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The dataPolicy. + */ + java.lang.String getDataPolicy(); + + /** + * + * + *
+   * Required. Resource name of this data policy, in the format of
+   * `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`.
+   * 
+ * + * + * string data_policy = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for dataPolicy. + */ + com.google.protobuf.ByteString getDataPolicyBytes(); + + /** + * + * + *
+   * Required. IAM principal that should be revoked from Fine Grained Access to
+   * the underlying data goverened by the data policy. The target data policy is
+   * determined by the `data_policy` field.
+   *
+   * Uses the [IAM V2 principal
+   * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2).
+   * Supported principal types:
+   *
+   * * User
+   * * Group
+   * * Service account
+   * 
+ * + * repeated string grantees = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the grantees. + */ + java.util.List getGranteesList(); + + /** + * + * + *
+   * Required. IAM principal that should be revoked from Fine Grained Access to
+   * the underlying data goverened by the data policy. The target data policy is
+   * determined by the `data_policy` field.
+   *
+   * Uses the [IAM V2 principal
+   * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2).
+   * Supported principal types:
+   *
+   * * User
+   * * Group
+   * * Service account
+   * 
+ * + * repeated string grantees = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of grantees. + */ + int getGranteesCount(); + + /** + * + * + *
+   * Required. IAM principal that should be revoked from Fine Grained Access to
+   * the underlying data goverened by the data policy. The target data policy is
+   * determined by the `data_policy` field.
+   *
+   * Uses the [IAM V2 principal
+   * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2).
+   * Supported principal types:
+   *
+   * * User
+   * * Group
+   * * Service account
+   * 
+ * + * repeated string grantees = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The grantees at the given index. + */ + java.lang.String getGrantees(int index); + + /** + * + * + *
+   * Required. IAM principal that should be revoked from Fine Grained Access to
+   * the underlying data goverened by the data policy. The target data policy is
+   * determined by the `data_policy` field.
+   *
+   * Uses the [IAM V2 principal
+   * syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2).
+   * Supported principal types:
+   *
+   * * User
+   * * Group
+   * * Service account
+   * 
+ * + * repeated string grantees = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the grantees at the given index. + */ + com.google.protobuf.ByteString getGranteesBytes(int index); +} diff --git a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/UpdateDataPolicyRequest.java b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/UpdateDataPolicyRequest.java new file mode 100644 index 000000000000..3c8bf4c3d27f --- /dev/null +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/UpdateDataPolicyRequest.java @@ -0,0 +1,1162 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/datapolicies/v2beta1/datapolicy.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.bigquery.datapolicies.v2beta1; + +/** + * + * + *
+ * Request message for the UpdateDataPolicy method.
+ * 
+ * + * Protobuf type {@code google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest} + */ +public final class UpdateDataPolicyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest) + UpdateDataPolicyRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UpdateDataPolicyRequest.newBuilder() to construct. + private UpdateDataPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateDataPolicyRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateDataPolicyRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyProto + .internal_static_google_cloud_bigquery_datapolicies_v2beta1_UpdateDataPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyProto + .internal_static_google_cloud_bigquery_datapolicies_v2beta1_UpdateDataPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest.class, + com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest.Builder.class); + } + + private int bitField0_; + public static final int DATA_POLICY_FIELD_NUMBER = 1; + private com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy dataPolicy_; + + /** + * + * + *
+   * Required. Update the data policy's metadata.
+   *
+   * The target data policy is determined by the `name` field.
+   * Other fields are updated to the specified values based on the field masks.
+   * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataPolicy field is set. + */ + @java.lang.Override + public boolean hasDataPolicy() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. Update the data policy's metadata.
+   *
+   * The target data policy is determined by the `name` field.
+   * Other fields are updated to the specified values based on the field masks.
+   * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataPolicy. + */ + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy getDataPolicy() { + return dataPolicy_ == null + ? com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.getDefaultInstance() + : dataPolicy_; + } + + /** + * + * + *
+   * Required. Update the data policy's metadata.
+   *
+   * The target data policy is determined by the `name` field.
+   * Other fields are updated to the specified values based on the field masks.
+   * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyOrBuilder + getDataPolicyOrBuilder() { + return dataPolicy_ == null + ? com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.getDefaultInstance() + : dataPolicy_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
+   * Optional. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
+   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+   * If not set, defaults to all of the fields that are allowed to update.
+   *
+   * Updates to the `name` and `dataPolicyId` fields are not allowed.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
+   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+   * If not set, defaults to all of the fields that are allowed to update.
+   *
+   * Updates to the `name` and `dataPolicyId` fields are not allowed.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
+   * Optional. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
+   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+   * If not set, defaults to all of the fields that are allowed to update.
+   *
+   * Updates to the `name` and `dataPolicyId` fields are not allowed.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getDataPolicy()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + 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, getDataPolicy()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest)) { + return super.equals(obj); + } + com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest other = + (com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest) obj; + + if (hasDataPolicy() != other.hasDataPolicy()) return false; + if (hasDataPolicy()) { + if (!getDataPolicy().equals(other.getDataPolicy())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDataPolicy()) { + hash = (37 * hash) + DATA_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getDataPolicy().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for the UpdateDataPolicy method.
+   * 
+ * + * Protobuf type {@code google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest) + com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyProto + .internal_static_google_cloud_bigquery_datapolicies_v2beta1_UpdateDataPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyProto + .internal_static_google_cloud_bigquery_datapolicies_v2beta1_UpdateDataPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest.class, + com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest.Builder.class); + } + + // Construct using + // com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDataPolicyFieldBuilder(); + getUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dataPolicy_ = null; + if (dataPolicyBuilder_ != null) { + dataPolicyBuilder_.dispose(); + dataPolicyBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyProto + .internal_static_google_cloud_bigquery_datapolicies_v2beta1_UpdateDataPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest build() { + com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest buildPartial() { + com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest result = + new com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dataPolicy_ = dataPolicyBuilder_ == null ? dataPolicy_ : dataPolicyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest) { + return mergeFrom( + (com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest other) { + if (other + == com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest + .getDefaultInstance()) return this; + if (other.hasDataPolicy()) { + mergeDataPolicy(other.getDataPolicy()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getDataPolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy dataPolicy_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy, + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.Builder, + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyOrBuilder> + dataPolicyBuilder_; + + /** + * + * + *
+     * Required. Update the data policy's metadata.
+     *
+     * The target data policy is determined by the `name` field.
+     * Other fields are updated to the specified values based on the field masks.
+     * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataPolicy field is set. + */ + public boolean hasDataPolicy() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. Update the data policy's metadata.
+     *
+     * The target data policy is determined by the `name` field.
+     * Other fields are updated to the specified values based on the field masks.
+     * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataPolicy. + */ + public com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy getDataPolicy() { + if (dataPolicyBuilder_ == null) { + return dataPolicy_ == null + ? com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.getDefaultInstance() + : dataPolicy_; + } else { + return dataPolicyBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. Update the data policy's metadata.
+     *
+     * The target data policy is determined by the `name` field.
+     * Other fields are updated to the specified values based on the field masks.
+     * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDataPolicy(com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy value) { + if (dataPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataPolicy_ = value; + } else { + dataPolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Update the data policy's metadata.
+     *
+     * The target data policy is determined by the `name` field.
+     * Other fields are updated to the specified values based on the field masks.
+     * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDataPolicy( + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.Builder builderForValue) { + if (dataPolicyBuilder_ == null) { + dataPolicy_ = builderForValue.build(); + } else { + dataPolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Update the data policy's metadata.
+     *
+     * The target data policy is determined by the `name` field.
+     * Other fields are updated to the specified values based on the field masks.
+     * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDataPolicy( + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy value) { + if (dataPolicyBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && dataPolicy_ != null + && dataPolicy_ + != com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.getDefaultInstance()) { + getDataPolicyBuilder().mergeFrom(value); + } else { + dataPolicy_ = value; + } + } else { + dataPolicyBuilder_.mergeFrom(value); + } + if (dataPolicy_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. Update the data policy's metadata.
+     *
+     * The target data policy is determined by the `name` field.
+     * Other fields are updated to the specified values based on the field masks.
+     * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDataPolicy() { + bitField0_ = (bitField0_ & ~0x00000001); + dataPolicy_ = null; + if (dataPolicyBuilder_ != null) { + dataPolicyBuilder_.dispose(); + dataPolicyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Update the data policy's metadata.
+     *
+     * The target data policy is determined by the `name` field.
+     * Other fields are updated to the specified values based on the field masks.
+     * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.Builder + getDataPolicyBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getDataPolicyFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. Update the data policy's metadata.
+     *
+     * The target data policy is determined by the `name` field.
+     * Other fields are updated to the specified values based on the field masks.
+     * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyOrBuilder + getDataPolicyOrBuilder() { + if (dataPolicyBuilder_ != null) { + return dataPolicyBuilder_.getMessageOrBuilder(); + } else { + return dataPolicy_ == null + ? com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.getDefaultInstance() + : dataPolicy_; + } + } + + /** + * + * + *
+     * Required. Update the data policy's metadata.
+     *
+     * The target data policy is determined by the `name` field.
+     * Other fields are updated to the specified values based on the field masks.
+     * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy, + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.Builder, + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyOrBuilder> + getDataPolicyFieldBuilder() { + if (dataPolicyBuilder_ == null) { + dataPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy, + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy.Builder, + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyOrBuilder>( + getDataPolicy(), getParentForChildren(), isClean()); + dataPolicy_ = null; + } + return dataPolicyBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
+     * Optional. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * If not set, defaults to all of the fields that are allowed to update.
+     *
+     * Updates to the `name` and `dataPolicyId` fields are not allowed.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * If not set, defaults to all of the fields that are allowed to update.
+     *
+     * Updates to the `name` and `dataPolicyId` fields are not allowed.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * If not set, defaults to all of the fields that are allowed to update.
+     *
+     * Updates to the `name` and `dataPolicyId` fields are not allowed.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * If not set, defaults to all of the fields that are allowed to update.
+     *
+     * Updates to the `name` and `dataPolicyId` fields are not allowed.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * If not set, defaults to all of the fields that are allowed to update.
+     *
+     * Updates to the `name` and `dataPolicyId` fields are not allowed.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * If not set, defaults to all of the fields that are allowed to update.
+     *
+     * Updates to the `name` and `dataPolicyId` fields are not allowed.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * If not set, defaults to all of the fields that are allowed to update.
+     *
+     * Updates to the `name` and `dataPolicyId` fields are not allowed.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * If not set, defaults to all of the fields that are allowed to update.
+     *
+     * Updates to the `name` and `dataPolicyId` fields are not allowed.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
+     * Optional. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * If not set, defaults to all of the fields that are allowed to update.
+     *
+     * Updates to the `name` and `dataPolicyId` fields are not allowed.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest) + private static final com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest(); + } + + public static com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateDataPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/UpdateDataPolicyRequestOrBuilder.java b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/UpdateDataPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..9a342064a568 --- /dev/null +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/UpdateDataPolicyRequestOrBuilder.java @@ -0,0 +1,133 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/datapolicies/v2beta1/datapolicy.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.bigquery.datapolicies.v2beta1; + +public interface UpdateDataPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Update the data policy's metadata.
+   *
+   * The target data policy is determined by the `name` field.
+   * Other fields are updated to the specified values based on the field masks.
+   * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataPolicy field is set. + */ + boolean hasDataPolicy(); + + /** + * + * + *
+   * Required. Update the data policy's metadata.
+   *
+   * The target data policy is determined by the `name` field.
+   * Other fields are updated to the specified values based on the field masks.
+   * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataPolicy. + */ + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy getDataPolicy(); + + /** + * + * + *
+   * Required. Update the data policy's metadata.
+   *
+   * The target data policy is determined by the `name` field.
+   * Other fields are updated to the specified values based on the field masks.
+   * 
+ * + * + * .google.cloud.bigquery.datapolicies.v2beta1.DataPolicy data_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyOrBuilder getDataPolicyOrBuilder(); + + /** + * + * + *
+   * Optional. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
+   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+   * If not set, defaults to all of the fields that are allowed to update.
+   *
+   * Updates to the `name` and `dataPolicyId` fields are not allowed.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
+   * Optional. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
+   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+   * If not set, defaults to all of the fields that are allowed to update.
+   *
+   * Updates to the `name` and `dataPolicyId` fields are not allowed.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
+   * Optional. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
+   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+   * If not set, defaults to all of the fields that are allowed to update.
+   *
+   * Updates to the `name` and `dataPolicyId` fields are not allowed.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/proto/google/cloud/bigquery/datapolicies/v2beta1/datapolicy.proto b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/proto/google/cloud/bigquery/datapolicies/v2beta1/datapolicy.proto new file mode 100644 index 000000000000..b6109734a065 --- /dev/null +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/proto/google/cloud/bigquery/datapolicies/v2beta1/datapolicy.proto @@ -0,0 +1,416 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.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.cloud.bigquery.datapolicies.v2beta1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/iam/v1/iam_policy.proto"; +import "google/iam/v1/policy.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Cloud.BigQuery.DataPolicies.V2Beta1"; +option go_package = "cloud.google.com/go/bigquery/datapolicies/apiv2beta1/datapoliciespb;datapoliciespb"; +option java_multiple_files = true; +option java_outer_classname = "DataPolicyProto"; +option java_package = "com.google.cloud.bigquery.datapolicies.v2beta1"; +option php_namespace = "Google\\Cloud\\BigQuery\\DataPolicies\\V2beta1"; +option ruby_package = "Google::Cloud::Bigquery::DataPolicies::V2beta1"; +option (google.api.resource_definition) = { + type: "datacatalog.googleapis.com/PolicyTag" + pattern: "projects/{project}/locations/{location}/taxonomies/{taxonomy}/policyTags/{policy_tag}" +}; + +// Data Policy Service provides APIs for managing the BigQuery Data Policy. +service DataPolicyService { + option (google.api.default_host) = "bigquerydatapolicy.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/bigquery," + "https://www.googleapis.com/auth/cloud-platform"; + + // Creates a new data policy under a project with the given `data_policy_id` + // (used as the display name), and data policy type. + rpc CreateDataPolicy(CreateDataPolicyRequest) returns (DataPolicy) { + option (google.api.http) = { + post: "/v2beta1/{parent=projects/*/locations/*}/dataPolicies" + body: "*" + }; + option (google.api.method_signature) = "parent,data_policy,data_policy_id"; + } + + // Adds new grantees to a data policy. + // The new grantees will be added to the existing grantees. + // If the request contains a duplicate grantee, the grantee will be ignored. + // If the request contains a grantee that already exists, the grantee will be + // ignored. + rpc AddGrantees(AddGranteesRequest) returns (DataPolicy) { + option (google.api.http) = { + post: "/v2beta1/{data_policy=projects/*/locations/*/dataPolicies/*}:addGrantees" + body: "*" + }; + option (google.api.method_signature) = "data_policy,grantees"; + } + + // Removes grantees from a data policy. + // The grantees will be removed from the existing grantees. + // If the request contains a grantee that does not exist, the grantee will be + // ignored. + rpc RemoveGrantees(RemoveGranteesRequest) returns (DataPolicy) { + option (google.api.http) = { + post: "/v2beta1/{data_policy=projects/*/locations/*/dataPolicies/*}:removeGrantees" + body: "*" + }; + option (google.api.method_signature) = "data_policy,grantees"; + } + + // Updates the metadata for an existing data policy. The target data policy + // can be specified by the resource name. + rpc UpdateDataPolicy(UpdateDataPolicyRequest) returns (DataPolicy) { + option (google.api.http) = { + patch: "/v2beta1/{data_policy.name=projects/*/locations/*/dataPolicies/*}" + body: "data_policy" + }; + option (google.api.method_signature) = "data_policy,update_mask"; + } + + // Deletes the data policy specified by its resource name. + rpc DeleteDataPolicy(DeleteDataPolicyRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v2beta1/{name=projects/*/locations/*/dataPolicies/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Gets the data policy specified by its resource name. + rpc GetDataPolicy(GetDataPolicyRequest) returns (DataPolicy) { + option (google.api.http) = { + get: "/v2beta1/{name=projects/*/locations/*/dataPolicies/*}" + }; + option (google.api.method_signature) = "name"; + } + + // List all of the data policies in the specified parent project. + rpc ListDataPolicies(ListDataPoliciesRequest) + returns (ListDataPoliciesResponse) { + option (google.api.http) = { + get: "/v2beta1/{parent=projects/*/locations/*}/dataPolicies" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets the IAM policy for the specified data policy. + rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) + returns (google.iam.v1.Policy) { + option (google.api.http) = { + post: "/v2beta1/{resource=projects/*/locations/*/dataPolicies/*}:getIamPolicy" + body: "*" + }; + } + + // Sets the IAM policy for the specified data policy. + rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) + returns (google.iam.v1.Policy) { + option (google.api.http) = { + post: "/v2beta1/{resource=projects/*/locations/*/dataPolicies/*}:setIamPolicy" + body: "*" + }; + } + + // Returns the caller's permission on the specified data policy resource. + rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) + returns (google.iam.v1.TestIamPermissionsResponse) { + option (google.api.http) = { + post: "/v2beta1/{resource=projects/*/locations/*/dataPolicies/*}:testIamPermissions" + body: "*" + }; + } +} + +// Request message for the CreateDataPolicy method. +message CreateDataPolicyRequest { + // Required. Resource name of the project that the data policy will belong to. + // The format is `projects/{project_number}/locations/{location_id}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "bigquerydatapolicy.googleapis.com/DataPolicy" + } + ]; + + // Required. User-assigned (human readable) ID of the data policy that needs + // to be unique within a project. Used as {data_policy_id} in part of the + // resource name. + string data_policy_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The data policy to create. The `name` field does not need to be + // provided for the data policy creation. + DataPolicy data_policy = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for the UpdateDataPolicy method. +message UpdateDataPolicyRequest { + // Required. Update the data policy's metadata. + // + // The target data policy is determined by the `name` field. + // Other fields are updated to the specified values based on the field masks. + DataPolicy data_policy = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The update mask applies to the resource. For the `FieldMask` + // definition, see + // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask + // If not set, defaults to all of the fields that are allowed to update. + // + // Updates to the `name` and `dataPolicyId` fields are not allowed. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for the AddGrantees method. +message AddGranteesRequest { + // Required. Resource name of this data policy, in the format of + // `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`. + string data_policy = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "bigquerydatapolicy.googleapis.com/DataPolicy" + } + ]; + + // Required. IAM principal that should be granted Fine Grained Access to the + // underlying data goverened by the data policy. The target data policy is + // determined by the `data_policy` field. + // + // Uses the [IAM V2 principal + // syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2). + // Supported principal types: + // + // * User + // * Group + // * Service account + repeated string grantees = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for the RemoveGrantees method. +message RemoveGranteesRequest { + // Required. Resource name of this data policy, in the format of + // `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`. + string data_policy = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "bigquerydatapolicy.googleapis.com/DataPolicy" + } + ]; + + // Required. IAM principal that should be revoked from Fine Grained Access to + // the underlying data goverened by the data policy. The target data policy is + // determined by the `data_policy` field. + // + // Uses the [IAM V2 principal + // syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2). + // Supported principal types: + // + // * User + // * Group + // * Service account + repeated string grantees = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for the DeleteDataPolicy method. +message DeleteDataPolicyRequest { + // Required. Resource name of the data policy to delete. Format is + // `projects/{project_number}/locations/{location_id}/dataPolicies/{id}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "bigquerydatapolicy.googleapis.com/DataPolicy" + } + ]; +} + +// Request message for the GetDataPolicy method. +message GetDataPolicyRequest { + // Required. Resource name of the requested data policy. Format is + // `projects/{project_number}/locations/{location_id}/dataPolicies/{id}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "bigquerydatapolicy.googleapis.com/DataPolicy" + } + ]; +} + +// Request message for the ListDataPolicies method. +message ListDataPoliciesRequest { + // Required. Resource name of the project for which to list data policies. + // Format is `projects/{project_number}/locations/{location_id}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "bigquerydatapolicy.googleapis.com/DataPolicy" + } + ]; + + // Optional. The maximum number of data policies to return. Must be a value + // between 1 and 1000. If not set, defaults to 50. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The `nextPageToken` value returned from a previous list request, + // if any. If not set, defaults to an empty string. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for the ListDataPolicies method. +message ListDataPoliciesResponse { + // Data policies that belong to the requested project. + repeated DataPolicy data_policies = 1; + + // Token used to retrieve the next page of results, or empty if there are no + // more results. + string next_page_token = 2; +} + +// Represents the label-policy binding. +message DataPolicy { + option (google.api.resource) = { + type: "bigquerydatapolicy.googleapis.com/DataPolicy" + pattern: "projects/{project}/locations/{location}/dataPolicies/{data_policy}" + plural: "dataPolicies" + singular: "dataPolicy" + }; + + // A list of supported data policy types. + enum DataPolicyType { + // Default value for the data policy type. This should not be used. + DATA_POLICY_TYPE_UNSPECIFIED = 0; + + // Used to create a data policy for data masking. + DATA_MASKING_POLICY = 1; + + // Used to create a data policy for raw data access. + RAW_DATA_ACCESS_POLICY = 2; + } + + // The supported versions for the Data Policy resource. + enum Version { + // Default value for the data policy version. This should not be used. + VERSION_UNSPECIFIED = 0; + + // V1 data policy version. V1 Data Policies will be present in V2 List api + // response, but can not be created/updated/deleted from V2 api. + V1 = 1; + + // V2 data policy version. + V2 = 2; + } + + // The policy that is bound to this data policy. + oneof policy { + // Optional. The data masking policy that specifies the data masking rule to + // use. It must be set if the data policy type is DATA_MASKING_POLICY. + DataMaskingPolicy data_masking_policy = 7 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Identifier. Resource name of this data policy, in the format of + // `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. User-assigned (human readable) ID of the data policy that + // needs to be unique within a project. Used as {data_policy_id} in part of + // the resource name. + string data_policy_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The etag for this Data Policy. + // This field is used for UpdateDataPolicy calls. If Data Policy exists, this + // field is required and must match the server's etag. It will also be + // populated in the response of GetDataPolicy, CreateDataPolicy, and + // UpdateDataPolicy calls. + optional string etag = 11; + + // Required. Type of data policy. + DataPolicyType data_policy_type = 3 [(google.api.field_behavior) = REQUIRED]; + + // Output only. Policy tag resource name, in the format of + // `projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}`. + // policy_tag is supported only for V1 data policies. + string policy_tag = 4 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "datacatalog.googleapis.com/PolicyTag" + } + ]; + + // Optional. The list of IAM principals that have Fine Grained Access to the + // underlying data goverened by this data policy. + // + // Uses the [IAM V2 principal + // syntax](https://cloud.google.com/iam/docs/principal-identifiers#v2) Only + // supports principal types users, groups, serviceaccounts, cloudidentity. + // This field is supported in V2 Data Policy only. In case of V1 data policies + // (i.e. verion = 1 and policy_tag is set), this field is not populated. + repeated string grantees = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The version of the Data Policy resource. + Version version = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The policy used to specify data masking rule. +message DataMaskingPolicy { + // The available masking rules. Learn more here: + // https://cloud.google.com/bigquery/docs/column-data-masking-intro#masking_options. + enum PredefinedExpression { + // Default, unspecified predefined expression. No masking will take place + // since no expression is specified. + PREDEFINED_EXPRESSION_UNSPECIFIED = 0; + + // Masking expression to replace data with SHA-256 hash. + SHA256 = 1; + + // Masking expression to replace data with NULLs. + ALWAYS_NULL = 2; + + // Masking expression to replace data with their default masking values. + // The default masking values for each type listed as below: + // + // * STRING: "" + // * BYTES: b'' + // * INTEGER: 0 + // * FLOAT: 0.0 + // * NUMERIC: 0 + // * BOOLEAN: FALSE + // * TIMESTAMP: 1970-01-01 00:00:00 UTC + // * DATE: 1970-01-01 + // * TIME: 00:00:00 + // * DATETIME: 1970-01-01T00:00:00 + // * GEOGRAPHY: POINT(0 0) + // * BIGNUMERIC: 0 + // * ARRAY: [] + // * STRUCT: NOT_APPLICABLE + // * JSON: NULL + DEFAULT_MASKING_VALUE = 3; + } + + // A masking expression to bind to the data masking rule. + oneof masking_expression { + // Optional. A predefined masking expression. + PredefinedExpression predefined_expression = 1 + [(google.api.field_behavior) = OPTIONAL]; + } +} diff --git a/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/addgrantees/AsyncAddGrantees.java b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/addgrantees/AsyncAddGrantees.java new file mode 100644 index 000000000000..3e641fc4fd00 --- /dev/null +++ b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/addgrantees/AsyncAddGrantees.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1.samples; + +// [START bigquerydatapolicy_v2beta1_generated_DataPolicyService_AddGrantees_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyName; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient; +import java.util.ArrayList; + +public class AsyncAddGrantees { + + public static void main(String[] args) throws Exception { + asyncAddGrantees(); + } + + public static void asyncAddGrantees() 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 (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) { + AddGranteesRequest request = + AddGranteesRequest.newBuilder() + .setDataPolicy( + DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString()) + .addAllGrantees(new ArrayList()) + .build(); + ApiFuture future = + dataPolicyServiceClient.addGranteesCallable().futureCall(request); + // Do something. + DataPolicy response = future.get(); + } + } +} +// [END bigquerydatapolicy_v2beta1_generated_DataPolicyService_AddGrantees_async] diff --git a/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/addgrantees/SyncAddGrantees.java b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/addgrantees/SyncAddGrantees.java new file mode 100644 index 000000000000..40bc0b9cf73b --- /dev/null +++ b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/addgrantees/SyncAddGrantees.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1.samples; + +// [START bigquerydatapolicy_v2beta1_generated_DataPolicyService_AddGrantees_sync] +import com.google.cloud.bigquery.datapolicies.v2beta1.AddGranteesRequest; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyName; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient; +import java.util.ArrayList; + +public class SyncAddGrantees { + + public static void main(String[] args) throws Exception { + syncAddGrantees(); + } + + public static void syncAddGrantees() 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 (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) { + AddGranteesRequest request = + AddGranteesRequest.newBuilder() + .setDataPolicy( + DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString()) + .addAllGrantees(new ArrayList()) + .build(); + DataPolicy response = dataPolicyServiceClient.addGrantees(request); + } + } +} +// [END bigquerydatapolicy_v2beta1_generated_DataPolicyService_AddGrantees_sync] diff --git a/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/addgrantees/SyncAddGranteesDatapolicynameListstring.java b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/addgrantees/SyncAddGranteesDatapolicynameListstring.java new file mode 100644 index 000000000000..752c811b5b6c --- /dev/null +++ b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/addgrantees/SyncAddGranteesDatapolicynameListstring.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1.samples; + +// [START bigquerydatapolicy_v2beta1_generated_DataPolicyService_AddGrantees_DatapolicynameListstring_sync] +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyName; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient; +import java.util.ArrayList; +import java.util.List; + +public class SyncAddGranteesDatapolicynameListstring { + + public static void main(String[] args) throws Exception { + syncAddGranteesDatapolicynameListstring(); + } + + public static void syncAddGranteesDatapolicynameListstring() 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 (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) { + DataPolicyName dataPolicy = DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]"); + List grantees = new ArrayList<>(); + DataPolicy response = dataPolicyServiceClient.addGrantees(dataPolicy, grantees); + } + } +} +// [END bigquerydatapolicy_v2beta1_generated_DataPolicyService_AddGrantees_DatapolicynameListstring_sync] diff --git a/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/addgrantees/SyncAddGranteesStringListstring.java b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/addgrantees/SyncAddGranteesStringListstring.java new file mode 100644 index 000000000000..12be448fec86 --- /dev/null +++ b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/addgrantees/SyncAddGranteesStringListstring.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1.samples; + +// [START bigquerydatapolicy_v2beta1_generated_DataPolicyService_AddGrantees_StringListstring_sync] +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyName; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient; +import java.util.ArrayList; +import java.util.List; + +public class SyncAddGranteesStringListstring { + + public static void main(String[] args) throws Exception { + syncAddGranteesStringListstring(); + } + + public static void syncAddGranteesStringListstring() 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 (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) { + String dataPolicy = DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString(); + List grantees = new ArrayList<>(); + DataPolicy response = dataPolicyServiceClient.addGrantees(dataPolicy, grantees); + } + } +} +// [END bigquerydatapolicy_v2beta1_generated_DataPolicyService_AddGrantees_StringListstring_sync] diff --git a/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/create/SyncCreateSetCredentialsProvider.java b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..676387cca614 --- /dev/null +++ b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1.samples; + +// [START bigquerydatapolicy_v2beta1_generated_DataPolicyService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceSettings; +import com.google.cloud.bigquery.datapolicies.v2beta1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() 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 + DataPolicyServiceSettings dataPolicyServiceSettings = + DataPolicyServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + DataPolicyServiceClient dataPolicyServiceClient = + DataPolicyServiceClient.create(dataPolicyServiceSettings); + } +} +// [END bigquerydatapolicy_v2beta1_generated_DataPolicyService_Create_SetCredentialsProvider_sync] diff --git a/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/create/SyncCreateSetEndpoint.java b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..b80b2bb24ad5 --- /dev/null +++ b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1.samples; + +// [START bigquerydatapolicy_v2beta1_generated_DataPolicyService_Create_SetEndpoint_sync] +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceSettings; +import com.google.cloud.bigquery.datapolicies.v2beta1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() 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 + DataPolicyServiceSettings dataPolicyServiceSettings = + DataPolicyServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + DataPolicyServiceClient dataPolicyServiceClient = + DataPolicyServiceClient.create(dataPolicyServiceSettings); + } +} +// [END bigquerydatapolicy_v2beta1_generated_DataPolicyService_Create_SetEndpoint_sync] diff --git a/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/create/SyncCreateUseHttpJsonTransport.java b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..a860ce6d1a19 --- /dev/null +++ b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1.samples; + +// [START bigquerydatapolicy_v2beta1_generated_DataPolicyService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() 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 + DataPolicyServiceSettings dataPolicyServiceSettings = + DataPolicyServiceSettings.newHttpJsonBuilder().build(); + DataPolicyServiceClient dataPolicyServiceClient = + DataPolicyServiceClient.create(dataPolicyServiceSettings); + } +} +// [END bigquerydatapolicy_v2beta1_generated_DataPolicyService_Create_UseHttpJsonTransport_sync] diff --git a/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/createdatapolicy/AsyncCreateDataPolicy.java b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/createdatapolicy/AsyncCreateDataPolicy.java new file mode 100644 index 000000000000..2bc7349eaf60 --- /dev/null +++ b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/createdatapolicy/AsyncCreateDataPolicy.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1.samples; + +// [START bigquerydatapolicy_v2beta1_generated_DataPolicyService_CreateDataPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient; +import com.google.cloud.bigquery.datapolicies.v2beta1.LocationName; + +public class AsyncCreateDataPolicy { + + public static void main(String[] args) throws Exception { + asyncCreateDataPolicy(); + } + + public static void asyncCreateDataPolicy() 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 (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) { + CreateDataPolicyRequest request = + CreateDataPolicyRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setDataPolicyId("dataPolicyId1874146231") + .setDataPolicy(DataPolicy.newBuilder().build()) + .build(); + ApiFuture future = + dataPolicyServiceClient.createDataPolicyCallable().futureCall(request); + // Do something. + DataPolicy response = future.get(); + } + } +} +// [END bigquerydatapolicy_v2beta1_generated_DataPolicyService_CreateDataPolicy_async] diff --git a/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/createdatapolicy/SyncCreateDataPolicy.java b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/createdatapolicy/SyncCreateDataPolicy.java new file mode 100644 index 000000000000..caabcfaa1f03 --- /dev/null +++ b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/createdatapolicy/SyncCreateDataPolicy.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1.samples; + +// [START bigquerydatapolicy_v2beta1_generated_DataPolicyService_CreateDataPolicy_sync] +import com.google.cloud.bigquery.datapolicies.v2beta1.CreateDataPolicyRequest; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient; +import com.google.cloud.bigquery.datapolicies.v2beta1.LocationName; + +public class SyncCreateDataPolicy { + + public static void main(String[] args) throws Exception { + syncCreateDataPolicy(); + } + + public static void syncCreateDataPolicy() 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 (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) { + CreateDataPolicyRequest request = + CreateDataPolicyRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setDataPolicyId("dataPolicyId1874146231") + .setDataPolicy(DataPolicy.newBuilder().build()) + .build(); + DataPolicy response = dataPolicyServiceClient.createDataPolicy(request); + } + } +} +// [END bigquerydatapolicy_v2beta1_generated_DataPolicyService_CreateDataPolicy_sync] diff --git a/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/createdatapolicy/SyncCreateDataPolicyLocationnameDatapolicyString.java b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/createdatapolicy/SyncCreateDataPolicyLocationnameDatapolicyString.java new file mode 100644 index 000000000000..7ff7329fb62e --- /dev/null +++ b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/createdatapolicy/SyncCreateDataPolicyLocationnameDatapolicyString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1.samples; + +// [START bigquerydatapolicy_v2beta1_generated_DataPolicyService_CreateDataPolicy_LocationnameDatapolicyString_sync] +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient; +import com.google.cloud.bigquery.datapolicies.v2beta1.LocationName; + +public class SyncCreateDataPolicyLocationnameDatapolicyString { + + public static void main(String[] args) throws Exception { + syncCreateDataPolicyLocationnameDatapolicyString(); + } + + public static void syncCreateDataPolicyLocationnameDatapolicyString() 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 (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + DataPolicy dataPolicy = DataPolicy.newBuilder().build(); + String dataPolicyId = "dataPolicyId1874146231"; + DataPolicy response = + dataPolicyServiceClient.createDataPolicy(parent, dataPolicy, dataPolicyId); + } + } +} +// [END bigquerydatapolicy_v2beta1_generated_DataPolicyService_CreateDataPolicy_LocationnameDatapolicyString_sync] diff --git a/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/createdatapolicy/SyncCreateDataPolicyStringDatapolicyString.java b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/createdatapolicy/SyncCreateDataPolicyStringDatapolicyString.java new file mode 100644 index 000000000000..b5b993fea205 --- /dev/null +++ b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/createdatapolicy/SyncCreateDataPolicyStringDatapolicyString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1.samples; + +// [START bigquerydatapolicy_v2beta1_generated_DataPolicyService_CreateDataPolicy_StringDatapolicyString_sync] +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient; +import com.google.cloud.bigquery.datapolicies.v2beta1.LocationName; + +public class SyncCreateDataPolicyStringDatapolicyString { + + public static void main(String[] args) throws Exception { + syncCreateDataPolicyStringDatapolicyString(); + } + + public static void syncCreateDataPolicyStringDatapolicyString() 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 (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + DataPolicy dataPolicy = DataPolicy.newBuilder().build(); + String dataPolicyId = "dataPolicyId1874146231"; + DataPolicy response = + dataPolicyServiceClient.createDataPolicy(parent, dataPolicy, dataPolicyId); + } + } +} +// [END bigquerydatapolicy_v2beta1_generated_DataPolicyService_CreateDataPolicy_StringDatapolicyString_sync] diff --git a/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/deletedatapolicy/AsyncDeleteDataPolicy.java b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/deletedatapolicy/AsyncDeleteDataPolicy.java new file mode 100644 index 000000000000..2ef320aa16b5 --- /dev/null +++ b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/deletedatapolicy/AsyncDeleteDataPolicy.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1.samples; + +// [START bigquerydatapolicy_v2beta1_generated_DataPolicyService_DeleteDataPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyName; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient; +import com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest; +import com.google.protobuf.Empty; + +public class AsyncDeleteDataPolicy { + + public static void main(String[] args) throws Exception { + asyncDeleteDataPolicy(); + } + + public static void asyncDeleteDataPolicy() 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 (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) { + DeleteDataPolicyRequest request = + DeleteDataPolicyRequest.newBuilder() + .setName(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString()) + .build(); + ApiFuture future = + dataPolicyServiceClient.deleteDataPolicyCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END bigquerydatapolicy_v2beta1_generated_DataPolicyService_DeleteDataPolicy_async] diff --git a/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/deletedatapolicy/SyncDeleteDataPolicy.java b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/deletedatapolicy/SyncDeleteDataPolicy.java new file mode 100644 index 000000000000..b424bd091436 --- /dev/null +++ b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/deletedatapolicy/SyncDeleteDataPolicy.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1.samples; + +// [START bigquerydatapolicy_v2beta1_generated_DataPolicyService_DeleteDataPolicy_sync] +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyName; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient; +import com.google.cloud.bigquery.datapolicies.v2beta1.DeleteDataPolicyRequest; +import com.google.protobuf.Empty; + +public class SyncDeleteDataPolicy { + + public static void main(String[] args) throws Exception { + syncDeleteDataPolicy(); + } + + public static void syncDeleteDataPolicy() 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 (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) { + DeleteDataPolicyRequest request = + DeleteDataPolicyRequest.newBuilder() + .setName(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString()) + .build(); + dataPolicyServiceClient.deleteDataPolicy(request); + } + } +} +// [END bigquerydatapolicy_v2beta1_generated_DataPolicyService_DeleteDataPolicy_sync] diff --git a/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/deletedatapolicy/SyncDeleteDataPolicyDatapolicyname.java b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/deletedatapolicy/SyncDeleteDataPolicyDatapolicyname.java new file mode 100644 index 000000000000..7f8ca634bb9e --- /dev/null +++ b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/deletedatapolicy/SyncDeleteDataPolicyDatapolicyname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1.samples; + +// [START bigquerydatapolicy_v2beta1_generated_DataPolicyService_DeleteDataPolicy_Datapolicyname_sync] +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyName; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteDataPolicyDatapolicyname { + + public static void main(String[] args) throws Exception { + syncDeleteDataPolicyDatapolicyname(); + } + + public static void syncDeleteDataPolicyDatapolicyname() 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 (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) { + DataPolicyName name = DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]"); + dataPolicyServiceClient.deleteDataPolicy(name); + } + } +} +// [END bigquerydatapolicy_v2beta1_generated_DataPolicyService_DeleteDataPolicy_Datapolicyname_sync] diff --git a/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/deletedatapolicy/SyncDeleteDataPolicyString.java b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/deletedatapolicy/SyncDeleteDataPolicyString.java new file mode 100644 index 000000000000..5340936063c7 --- /dev/null +++ b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/deletedatapolicy/SyncDeleteDataPolicyString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1.samples; + +// [START bigquerydatapolicy_v2beta1_generated_DataPolicyService_DeleteDataPolicy_String_sync] +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyName; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteDataPolicyString { + + public static void main(String[] args) throws Exception { + syncDeleteDataPolicyString(); + } + + public static void syncDeleteDataPolicyString() 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 (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) { + String name = DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString(); + dataPolicyServiceClient.deleteDataPolicy(name); + } + } +} +// [END bigquerydatapolicy_v2beta1_generated_DataPolicyService_DeleteDataPolicy_String_sync] diff --git a/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/getdatapolicy/AsyncGetDataPolicy.java b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/getdatapolicy/AsyncGetDataPolicy.java new file mode 100644 index 000000000000..10ae93a3c202 --- /dev/null +++ b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/getdatapolicy/AsyncGetDataPolicy.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1.samples; + +// [START bigquerydatapolicy_v2beta1_generated_DataPolicyService_GetDataPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyName; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient; +import com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest; + +public class AsyncGetDataPolicy { + + public static void main(String[] args) throws Exception { + asyncGetDataPolicy(); + } + + public static void asyncGetDataPolicy() 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 (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) { + GetDataPolicyRequest request = + GetDataPolicyRequest.newBuilder() + .setName(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString()) + .build(); + ApiFuture future = + dataPolicyServiceClient.getDataPolicyCallable().futureCall(request); + // Do something. + DataPolicy response = future.get(); + } + } +} +// [END bigquerydatapolicy_v2beta1_generated_DataPolicyService_GetDataPolicy_async] diff --git a/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/getdatapolicy/SyncGetDataPolicy.java b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/getdatapolicy/SyncGetDataPolicy.java new file mode 100644 index 000000000000..807138bcc7b7 --- /dev/null +++ b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/getdatapolicy/SyncGetDataPolicy.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1.samples; + +// [START bigquerydatapolicy_v2beta1_generated_DataPolicyService_GetDataPolicy_sync] +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyName; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient; +import com.google.cloud.bigquery.datapolicies.v2beta1.GetDataPolicyRequest; + +public class SyncGetDataPolicy { + + public static void main(String[] args) throws Exception { + syncGetDataPolicy(); + } + + public static void syncGetDataPolicy() 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 (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) { + GetDataPolicyRequest request = + GetDataPolicyRequest.newBuilder() + .setName(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString()) + .build(); + DataPolicy response = dataPolicyServiceClient.getDataPolicy(request); + } + } +} +// [END bigquerydatapolicy_v2beta1_generated_DataPolicyService_GetDataPolicy_sync] diff --git a/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/getdatapolicy/SyncGetDataPolicyDatapolicyname.java b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/getdatapolicy/SyncGetDataPolicyDatapolicyname.java new file mode 100644 index 000000000000..98cc99bccbcc --- /dev/null +++ b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/getdatapolicy/SyncGetDataPolicyDatapolicyname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1.samples; + +// [START bigquerydatapolicy_v2beta1_generated_DataPolicyService_GetDataPolicy_Datapolicyname_sync] +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyName; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient; + +public class SyncGetDataPolicyDatapolicyname { + + public static void main(String[] args) throws Exception { + syncGetDataPolicyDatapolicyname(); + } + + public static void syncGetDataPolicyDatapolicyname() 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 (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) { + DataPolicyName name = DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]"); + DataPolicy response = dataPolicyServiceClient.getDataPolicy(name); + } + } +} +// [END bigquerydatapolicy_v2beta1_generated_DataPolicyService_GetDataPolicy_Datapolicyname_sync] diff --git a/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/getdatapolicy/SyncGetDataPolicyString.java b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/getdatapolicy/SyncGetDataPolicyString.java new file mode 100644 index 000000000000..f12e59589797 --- /dev/null +++ b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/getdatapolicy/SyncGetDataPolicyString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1.samples; + +// [START bigquerydatapolicy_v2beta1_generated_DataPolicyService_GetDataPolicy_String_sync] +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyName; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient; + +public class SyncGetDataPolicyString { + + public static void main(String[] args) throws Exception { + syncGetDataPolicyString(); + } + + public static void syncGetDataPolicyString() 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 (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) { + String name = DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString(); + DataPolicy response = dataPolicyServiceClient.getDataPolicy(name); + } + } +} +// [END bigquerydatapolicy_v2beta1_generated_DataPolicyService_GetDataPolicy_String_sync] diff --git a/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/getiampolicy/AsyncGetIamPolicy.java b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/getiampolicy/AsyncGetIamPolicy.java new file mode 100644 index 000000000000..9a35884ed8a2 --- /dev/null +++ b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/getiampolicy/AsyncGetIamPolicy.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1.samples; + +// [START bigquerydatapolicy_v2beta1_generated_DataPolicyService_GetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyName; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class AsyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncGetIamPolicy(); + } + + public static void asyncGetIamPolicy() 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 (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + ApiFuture future = dataPolicyServiceClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END bigquerydatapolicy_v2beta1_generated_DataPolicyService_GetIamPolicy_async] diff --git a/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/getiampolicy/SyncGetIamPolicy.java b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/getiampolicy/SyncGetIamPolicy.java new file mode 100644 index 000000000000..eaca568fe510 --- /dev/null +++ b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/getiampolicy/SyncGetIamPolicy.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1.samples; + +// [START bigquerydatapolicy_v2beta1_generated_DataPolicyService_GetIamPolicy_sync] +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyName; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + syncGetIamPolicy(); + } + + public static void syncGetIamPolicy() 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 (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + Policy response = dataPolicyServiceClient.getIamPolicy(request); + } + } +} +// [END bigquerydatapolicy_v2beta1_generated_DataPolicyService_GetIamPolicy_sync] diff --git a/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/listdatapolicies/AsyncListDataPolicies.java b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/listdatapolicies/AsyncListDataPolicies.java new file mode 100644 index 000000000000..cc383e6d2c60 --- /dev/null +++ b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/listdatapolicies/AsyncListDataPolicies.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1.samples; + +// [START bigquerydatapolicy_v2beta1_generated_DataPolicyService_ListDataPolicies_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient; +import com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest; +import com.google.cloud.bigquery.datapolicies.v2beta1.LocationName; + +public class AsyncListDataPolicies { + + public static void main(String[] args) throws Exception { + asyncListDataPolicies(); + } + + public static void asyncListDataPolicies() 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 (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) { + ListDataPoliciesRequest request = + ListDataPoliciesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + dataPolicyServiceClient.listDataPoliciesPagedCallable().futureCall(request); + // Do something. + for (DataPolicy element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END bigquerydatapolicy_v2beta1_generated_DataPolicyService_ListDataPolicies_async] diff --git a/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/listdatapolicies/AsyncListDataPoliciesPaged.java b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/listdatapolicies/AsyncListDataPoliciesPaged.java new file mode 100644 index 000000000000..3aceda6238e0 --- /dev/null +++ b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/listdatapolicies/AsyncListDataPoliciesPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1.samples; + +// [START bigquerydatapolicy_v2beta1_generated_DataPolicyService_ListDataPolicies_Paged_async] +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient; +import com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest; +import com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse; +import com.google.cloud.bigquery.datapolicies.v2beta1.LocationName; +import com.google.common.base.Strings; + +public class AsyncListDataPoliciesPaged { + + public static void main(String[] args) throws Exception { + asyncListDataPoliciesPaged(); + } + + public static void asyncListDataPoliciesPaged() 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 (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) { + ListDataPoliciesRequest request = + ListDataPoliciesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListDataPoliciesResponse response = + dataPolicyServiceClient.listDataPoliciesCallable().call(request); + for (DataPolicy element : response.getDataPoliciesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END bigquerydatapolicy_v2beta1_generated_DataPolicyService_ListDataPolicies_Paged_async] diff --git a/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/listdatapolicies/SyncListDataPolicies.java b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/listdatapolicies/SyncListDataPolicies.java new file mode 100644 index 000000000000..58ec73fedbbd --- /dev/null +++ b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/listdatapolicies/SyncListDataPolicies.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1.samples; + +// [START bigquerydatapolicy_v2beta1_generated_DataPolicyService_ListDataPolicies_sync] +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient; +import com.google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesRequest; +import com.google.cloud.bigquery.datapolicies.v2beta1.LocationName; + +public class SyncListDataPolicies { + + public static void main(String[] args) throws Exception { + syncListDataPolicies(); + } + + public static void syncListDataPolicies() 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 (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) { + ListDataPoliciesRequest request = + ListDataPoliciesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (DataPolicy element : dataPolicyServiceClient.listDataPolicies(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END bigquerydatapolicy_v2beta1_generated_DataPolicyService_ListDataPolicies_sync] diff --git a/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/listdatapolicies/SyncListDataPoliciesLocationname.java b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/listdatapolicies/SyncListDataPoliciesLocationname.java new file mode 100644 index 000000000000..f9056301e349 --- /dev/null +++ b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/listdatapolicies/SyncListDataPoliciesLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1.samples; + +// [START bigquerydatapolicy_v2beta1_generated_DataPolicyService_ListDataPolicies_Locationname_sync] +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient; +import com.google.cloud.bigquery.datapolicies.v2beta1.LocationName; + +public class SyncListDataPoliciesLocationname { + + public static void main(String[] args) throws Exception { + syncListDataPoliciesLocationname(); + } + + public static void syncListDataPoliciesLocationname() 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 (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (DataPolicy element : dataPolicyServiceClient.listDataPolicies(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END bigquerydatapolicy_v2beta1_generated_DataPolicyService_ListDataPolicies_Locationname_sync] diff --git a/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/listdatapolicies/SyncListDataPoliciesString.java b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/listdatapolicies/SyncListDataPoliciesString.java new file mode 100644 index 000000000000..baa92edff8f4 --- /dev/null +++ b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/listdatapolicies/SyncListDataPoliciesString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1.samples; + +// [START bigquerydatapolicy_v2beta1_generated_DataPolicyService_ListDataPolicies_String_sync] +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient; +import com.google.cloud.bigquery.datapolicies.v2beta1.LocationName; + +public class SyncListDataPoliciesString { + + public static void main(String[] args) throws Exception { + syncListDataPoliciesString(); + } + + public static void syncListDataPoliciesString() 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 (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (DataPolicy element : dataPolicyServiceClient.listDataPolicies(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END bigquerydatapolicy_v2beta1_generated_DataPolicyService_ListDataPolicies_String_sync] diff --git a/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/removegrantees/AsyncRemoveGrantees.java b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/removegrantees/AsyncRemoveGrantees.java new file mode 100644 index 000000000000..3ca423ee5f8c --- /dev/null +++ b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/removegrantees/AsyncRemoveGrantees.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1.samples; + +// [START bigquerydatapolicy_v2beta1_generated_DataPolicyService_RemoveGrantees_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyName; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient; +import com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest; +import java.util.ArrayList; + +public class AsyncRemoveGrantees { + + public static void main(String[] args) throws Exception { + asyncRemoveGrantees(); + } + + public static void asyncRemoveGrantees() 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 (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) { + RemoveGranteesRequest request = + RemoveGranteesRequest.newBuilder() + .setDataPolicy( + DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString()) + .addAllGrantees(new ArrayList()) + .build(); + ApiFuture future = + dataPolicyServiceClient.removeGranteesCallable().futureCall(request); + // Do something. + DataPolicy response = future.get(); + } + } +} +// [END bigquerydatapolicy_v2beta1_generated_DataPolicyService_RemoveGrantees_async] diff --git a/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/removegrantees/SyncRemoveGrantees.java b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/removegrantees/SyncRemoveGrantees.java new file mode 100644 index 000000000000..2350a5730729 --- /dev/null +++ b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/removegrantees/SyncRemoveGrantees.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1.samples; + +// [START bigquerydatapolicy_v2beta1_generated_DataPolicyService_RemoveGrantees_sync] +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyName; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient; +import com.google.cloud.bigquery.datapolicies.v2beta1.RemoveGranteesRequest; +import java.util.ArrayList; + +public class SyncRemoveGrantees { + + public static void main(String[] args) throws Exception { + syncRemoveGrantees(); + } + + public static void syncRemoveGrantees() 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 (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) { + RemoveGranteesRequest request = + RemoveGranteesRequest.newBuilder() + .setDataPolicy( + DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString()) + .addAllGrantees(new ArrayList()) + .build(); + DataPolicy response = dataPolicyServiceClient.removeGrantees(request); + } + } +} +// [END bigquerydatapolicy_v2beta1_generated_DataPolicyService_RemoveGrantees_sync] diff --git a/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/removegrantees/SyncRemoveGranteesDatapolicynameListstring.java b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/removegrantees/SyncRemoveGranteesDatapolicynameListstring.java new file mode 100644 index 000000000000..0b6dc6acc9ea --- /dev/null +++ b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/removegrantees/SyncRemoveGranteesDatapolicynameListstring.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1.samples; + +// [START bigquerydatapolicy_v2beta1_generated_DataPolicyService_RemoveGrantees_DatapolicynameListstring_sync] +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyName; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient; +import java.util.ArrayList; +import java.util.List; + +public class SyncRemoveGranteesDatapolicynameListstring { + + public static void main(String[] args) throws Exception { + syncRemoveGranteesDatapolicynameListstring(); + } + + public static void syncRemoveGranteesDatapolicynameListstring() 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 (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) { + DataPolicyName dataPolicy = DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]"); + List grantees = new ArrayList<>(); + DataPolicy response = dataPolicyServiceClient.removeGrantees(dataPolicy, grantees); + } + } +} +// [END bigquerydatapolicy_v2beta1_generated_DataPolicyService_RemoveGrantees_DatapolicynameListstring_sync] diff --git a/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/removegrantees/SyncRemoveGranteesStringListstring.java b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/removegrantees/SyncRemoveGranteesStringListstring.java new file mode 100644 index 000000000000..0bbae91e4b21 --- /dev/null +++ b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/removegrantees/SyncRemoveGranteesStringListstring.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1.samples; + +// [START bigquerydatapolicy_v2beta1_generated_DataPolicyService_RemoveGrantees_StringListstring_sync] +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyName; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient; +import java.util.ArrayList; +import java.util.List; + +public class SyncRemoveGranteesStringListstring { + + public static void main(String[] args) throws Exception { + syncRemoveGranteesStringListstring(); + } + + public static void syncRemoveGranteesStringListstring() 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 (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) { + String dataPolicy = DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString(); + List grantees = new ArrayList<>(); + DataPolicy response = dataPolicyServiceClient.removeGrantees(dataPolicy, grantees); + } + } +} +// [END bigquerydatapolicy_v2beta1_generated_DataPolicyService_RemoveGrantees_StringListstring_sync] diff --git a/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/setiampolicy/AsyncSetIamPolicy.java b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/setiampolicy/AsyncSetIamPolicy.java new file mode 100644 index 000000000000..497bd2d9833b --- /dev/null +++ b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/setiampolicy/AsyncSetIamPolicy.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1.samples; + +// [START bigquerydatapolicy_v2beta1_generated_DataPolicyService_SetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyName; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class AsyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncSetIamPolicy(); + } + + public static void asyncSetIamPolicy() 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 (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = dataPolicyServiceClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END bigquerydatapolicy_v2beta1_generated_DataPolicyService_SetIamPolicy_async] diff --git a/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/setiampolicy/SyncSetIamPolicy.java b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/setiampolicy/SyncSetIamPolicy.java new file mode 100644 index 000000000000..4274ae468fc0 --- /dev/null +++ b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/setiampolicy/SyncSetIamPolicy.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1.samples; + +// [START bigquerydatapolicy_v2beta1_generated_DataPolicyService_SetIamPolicy_sync] +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyName; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class SyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicy(); + } + + public static void syncSetIamPolicy() 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 (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Policy response = dataPolicyServiceClient.setIamPolicy(request); + } + } +} +// [END bigquerydatapolicy_v2beta1_generated_DataPolicyService_SetIamPolicy_sync] diff --git a/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/testiampermissions/AsyncTestIamPermissions.java b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/testiampermissions/AsyncTestIamPermissions.java new file mode 100644 index 000000000000..662a71c3f589 --- /dev/null +++ b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/testiampermissions/AsyncTestIamPermissions.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1.samples; + +// [START bigquerydatapolicy_v2beta1_generated_DataPolicyService_TestIamPermissions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyName; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class AsyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + asyncTestIamPermissions(); + } + + public static void asyncTestIamPermissions() 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 (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + ApiFuture future = + dataPolicyServiceClient.testIamPermissionsCallable().futureCall(request); + // Do something. + TestIamPermissionsResponse response = future.get(); + } + } +} +// [END bigquerydatapolicy_v2beta1_generated_DataPolicyService_TestIamPermissions_async] diff --git a/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/testiampermissions/SyncTestIamPermissions.java b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/testiampermissions/SyncTestIamPermissions.java new file mode 100644 index 000000000000..e941769f9dff --- /dev/null +++ b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/testiampermissions/SyncTestIamPermissions.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1.samples; + +// [START bigquerydatapolicy_v2beta1_generated_DataPolicyService_TestIamPermissions_sync] +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyName; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class SyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + syncTestIamPermissions(); + } + + public static void syncTestIamPermissions() 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 (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(DataPolicyName.of("[PROJECT]", "[LOCATION]", "[DATA_POLICY]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + TestIamPermissionsResponse response = dataPolicyServiceClient.testIamPermissions(request); + } + } +} +// [END bigquerydatapolicy_v2beta1_generated_DataPolicyService_TestIamPermissions_sync] diff --git a/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/updatedatapolicy/AsyncUpdateDataPolicy.java b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/updatedatapolicy/AsyncUpdateDataPolicy.java new file mode 100644 index 000000000000..ea4c62dc5691 --- /dev/null +++ b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/updatedatapolicy/AsyncUpdateDataPolicy.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1.samples; + +// [START bigquerydatapolicy_v2beta1_generated_DataPolicyService_UpdateDataPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient; +import com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateDataPolicy { + + public static void main(String[] args) throws Exception { + asyncUpdateDataPolicy(); + } + + public static void asyncUpdateDataPolicy() 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 (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) { + UpdateDataPolicyRequest request = + UpdateDataPolicyRequest.newBuilder() + .setDataPolicy(DataPolicy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + dataPolicyServiceClient.updateDataPolicyCallable().futureCall(request); + // Do something. + DataPolicy response = future.get(); + } + } +} +// [END bigquerydatapolicy_v2beta1_generated_DataPolicyService_UpdateDataPolicy_async] diff --git a/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/updatedatapolicy/SyncUpdateDataPolicy.java b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/updatedatapolicy/SyncUpdateDataPolicy.java new file mode 100644 index 000000000000..5d6811e1ed44 --- /dev/null +++ b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/updatedatapolicy/SyncUpdateDataPolicy.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1.samples; + +// [START bigquerydatapolicy_v2beta1_generated_DataPolicyService_UpdateDataPolicy_sync] +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient; +import com.google.cloud.bigquery.datapolicies.v2beta1.UpdateDataPolicyRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateDataPolicy { + + public static void main(String[] args) throws Exception { + syncUpdateDataPolicy(); + } + + public static void syncUpdateDataPolicy() 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 (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) { + UpdateDataPolicyRequest request = + UpdateDataPolicyRequest.newBuilder() + .setDataPolicy(DataPolicy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + DataPolicy response = dataPolicyServiceClient.updateDataPolicy(request); + } + } +} +// [END bigquerydatapolicy_v2beta1_generated_DataPolicyService_UpdateDataPolicy_sync] diff --git a/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/updatedatapolicy/SyncUpdateDataPolicyDatapolicyFieldmask.java b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/updatedatapolicy/SyncUpdateDataPolicyDatapolicyFieldmask.java new file mode 100644 index 000000000000..8f2ccf956a0d --- /dev/null +++ b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservice/updatedatapolicy/SyncUpdateDataPolicyDatapolicyFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1.samples; + +// [START bigquerydatapolicy_v2beta1_generated_DataPolicyService_UpdateDataPolicy_DatapolicyFieldmask_sync] +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicy; +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateDataPolicyDatapolicyFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateDataPolicyDatapolicyFieldmask(); + } + + public static void syncUpdateDataPolicyDatapolicyFieldmask() 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 (DataPolicyServiceClient dataPolicyServiceClient = DataPolicyServiceClient.create()) { + DataPolicy dataPolicy = DataPolicy.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + DataPolicy response = dataPolicyServiceClient.updateDataPolicy(dataPolicy, updateMask); + } + } +} +// [END bigquerydatapolicy_v2beta1_generated_DataPolicyService_UpdateDataPolicy_DatapolicyFieldmask_sync] diff --git a/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservicesettings/createdatapolicy/SyncCreateDataPolicy.java b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservicesettings/createdatapolicy/SyncCreateDataPolicy.java new file mode 100644 index 000000000000..54c728a066a6 --- /dev/null +++ b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/datapolicyservicesettings/createdatapolicy/SyncCreateDataPolicy.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1.samples; + +// [START bigquerydatapolicy_v2beta1_generated_DataPolicyServiceSettings_CreateDataPolicy_sync] +import com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceSettings; +import java.time.Duration; + +public class SyncCreateDataPolicy { + + public static void main(String[] args) throws Exception { + syncCreateDataPolicy(); + } + + public static void syncCreateDataPolicy() 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 + DataPolicyServiceSettings.Builder dataPolicyServiceSettingsBuilder = + DataPolicyServiceSettings.newBuilder(); + dataPolicyServiceSettingsBuilder + .createDataPolicySettings() + .setRetrySettings( + dataPolicyServiceSettingsBuilder + .createDataPolicySettings() + .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()); + DataPolicyServiceSettings dataPolicyServiceSettings = dataPolicyServiceSettingsBuilder.build(); + } +} +// [END bigquerydatapolicy_v2beta1_generated_DataPolicyServiceSettings_CreateDataPolicy_sync] diff --git a/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/stub/datapolicyservicestubsettings/createdatapolicy/SyncCreateDataPolicy.java b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/stub/datapolicyservicestubsettings/createdatapolicy/SyncCreateDataPolicy.java new file mode 100644 index 000000000000..523cf1e55ab1 --- /dev/null +++ b/java-bigquerydatapolicy/samples/snippets/generated/com/google/cloud/bigquery/datapolicies/v2beta1/stub/datapolicyservicestubsettings/createdatapolicy/SyncCreateDataPolicy.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.bigquery.datapolicies.v2beta1.stub.samples; + +// [START bigquerydatapolicy_v2beta1_generated_DataPolicyServiceStubSettings_CreateDataPolicy_sync] +import com.google.cloud.bigquery.datapolicies.v2beta1.stub.DataPolicyServiceStubSettings; +import java.time.Duration; + +public class SyncCreateDataPolicy { + + public static void main(String[] args) throws Exception { + syncCreateDataPolicy(); + } + + public static void syncCreateDataPolicy() 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 + DataPolicyServiceStubSettings.Builder dataPolicyServiceSettingsBuilder = + DataPolicyServiceStubSettings.newBuilder(); + dataPolicyServiceSettingsBuilder + .createDataPolicySettings() + .setRetrySettings( + dataPolicyServiceSettingsBuilder + .createDataPolicySettings() + .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()); + DataPolicyServiceStubSettings dataPolicyServiceSettings = + dataPolicyServiceSettingsBuilder.build(); + } +} +// [END bigquerydatapolicy_v2beta1_generated_DataPolicyServiceStubSettings_CreateDataPolicy_sync] diff --git a/java-bigquerydatatransfer/CHANGELOG.md b/java-bigquerydatatransfer/CHANGELOG.md index 7d1e1feeb0a2..06da8d6b2b33 100644 --- a/java-bigquerydatatransfer/CHANGELOG.md +++ b/java-bigquerydatatransfer/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.68.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.67.0 (2025-06-25) ### Dependencies diff --git a/java-bigquerydatatransfer/README.md b/java-bigquerydatatransfer/README.md index 1575492d3317..674044bd17ef 100644 --- a/java-bigquerydatatransfer/README.md +++ b/java-bigquerydatatransfer/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquerydatatransfer - 2.66.0 + 2.67.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerydatatransfer:2.66.0' +implementation 'com.google.cloud:google-cloud-bigquerydatatransfer:2.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatatransfer" % "2.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatatransfer" % "2.67.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatatransfer/2.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-bigquerydatatransfer/google-cloud-bigquerydatatransfer-bom/pom.xml b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer-bom/pom.xml index c3c485710011..1b1ec92cd630 100644 --- a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer-bom/pom.xml +++ b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-bigquerydatatransfer-bom - 2.67.0 + 2.68.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-bigquerydatatransfer - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-bigquerydatatransfer-v1 - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-cloud-bigquerydatatransfer-v1 - 2.67.0 + 2.68.0
diff --git a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/pom.xml b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/pom.xml index 62786a49a8f5..7afaa92a6eb0 100644 --- a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/pom.xml +++ b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-bigquerydatatransfer - 2.67.0 + 2.68.0 jar BigQuery DataTransfer BigQuery DataTransfer com.google.cloud google-cloud-bigquerydatatransfer-parent - 2.67.0 + 2.68.0 google-cloud-bigquerydatatransfer diff --git a/java-bigquerydatatransfer/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml b/java-bigquerydatatransfer/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml index 0deb2190e1bc..c247e64d9ebf 100644 --- a/java-bigquerydatatransfer/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml +++ b/java-bigquerydatatransfer/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquerydatatransfer-v1 - 2.67.0 + 2.68.0 grpc-google-cloud-bigquerydatatransfer-v1 GRPC library for grpc-google-cloud-bigquerydatatransfer-v1 com.google.cloud google-cloud-bigquerydatatransfer-parent - 2.67.0 + 2.68.0 diff --git a/java-bigquerydatatransfer/pom.xml b/java-bigquerydatatransfer/pom.xml index da0f31ea6e01..0ba2051198fd 100644 --- a/java-bigquerydatatransfer/pom.xml +++ b/java-bigquerydatatransfer/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bigquerydatatransfer-parent pom - 2.67.0 + 2.68.0 BigQuery DataTransfer Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api.grpc proto-google-cloud-bigquerydatatransfer-v1 - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-bigquerydatatransfer-v1 - 2.67.0 + 2.68.0 com.google.cloud google-cloud-bigquerydatatransfer - 2.67.0 + 2.68.0 diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/pom.xml b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/pom.xml index e5dc9328d421..9ce17e28d4ba 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/pom.xml +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquerydatatransfer-v1 - 2.67.0 + 2.68.0 proto-google-cloud-bigquerydatatransfer-v1 PROTO library for proto-google-cloud-bigquerydatatransfer-v1 com.google.cloud google-cloud-bigquerydatatransfer-parent - 2.67.0 + 2.68.0 diff --git a/java-bigquerymigration/CHANGELOG.md b/java-bigquerymigration/CHANGELOG.md index 9999a23db471..c05b110b031a 100644 --- a/java-bigquerymigration/CHANGELOG.md +++ b/java-bigquerymigration/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.71.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.70.0 (2025-06-25) ### Dependencies diff --git a/java-bigquerymigration/README.md b/java-bigquerymigration/README.md index ea40f7cd740c..d10ce2b06851 100644 --- a/java-bigquerymigration/README.md +++ b/java-bigquerymigration/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquerymigration - 0.69.0 + 0.70.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerymigration:0.69.0' +implementation 'com.google.cloud:google-cloud-bigquerymigration:0.70.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerymigration" % "0.69.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerymigration" % "0.70.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquerymigration.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerymigration/0.69.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerymigration/0.70.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/google-cloud-bigquerymigration-bom/pom.xml b/java-bigquerymigration/google-cloud-bigquerymigration-bom/pom.xml index 084253c6c9ab..6b5423c0bbd3 100644 --- a/java-bigquerymigration/google-cloud-bigquerymigration-bom/pom.xml +++ b/java-bigquerymigration/google-cloud-bigquerymigration-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-bigquerymigration-bom - 0.70.0 + 0.71.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-bigquerymigration - 0.70.0 + 0.71.0 com.google.api.grpc grpc-google-cloud-bigquerymigration-v2alpha - 0.70.0 + 0.71.0 com.google.api.grpc grpc-google-cloud-bigquerymigration-v2 - 0.70.0 + 0.71.0 com.google.api.grpc proto-google-cloud-bigquerymigration-v2alpha - 0.70.0 + 0.71.0 com.google.api.grpc proto-google-cloud-bigquerymigration-v2 - 0.70.0 + 0.71.0 diff --git a/java-bigquerymigration/google-cloud-bigquerymigration/pom.xml b/java-bigquerymigration/google-cloud-bigquerymigration/pom.xml index b3fc3cd5dad7..01a16dff8478 100644 --- a/java-bigquerymigration/google-cloud-bigquerymigration/pom.xml +++ b/java-bigquerymigration/google-cloud-bigquerymigration/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-bigquerymigration - 0.70.0 + 0.71.0 jar Google BigQuery Migration BigQuery Migration BigQuery Migration API com.google.cloud google-cloud-bigquerymigration-parent - 0.70.0 + 0.71.0 google-cloud-bigquerymigration diff --git a/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2/pom.xml b/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2/pom.xml index 01cda71a9346..b42083df3732 100644 --- a/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2/pom.xml +++ b/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquerymigration-v2 - 0.70.0 + 0.71.0 grpc-google-cloud-bigquerymigration-v2 GRPC library for google-cloud-bigquerymigration com.google.cloud google-cloud-bigquerymigration-parent - 0.70.0 + 0.71.0 diff --git a/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2alpha/pom.xml b/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2alpha/pom.xml index 23df3dea0343..73402d65178d 100644 --- a/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2alpha/pom.xml +++ b/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquerymigration-v2alpha - 0.70.0 + 0.71.0 grpc-google-cloud-bigquerymigration-v2alpha GRPC library for google-cloud-bigquerymigration com.google.cloud google-cloud-bigquerymigration-parent - 0.70.0 + 0.71.0 diff --git a/java-bigquerymigration/pom.xml b/java-bigquerymigration/pom.xml index baec7de7c8cf..cb5d00244daa 100644 --- a/java-bigquerymigration/pom.xml +++ b/java-bigquerymigration/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bigquerymigration-parent pom - 0.70.0 + 0.71.0 Google BigQuery Migration Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-bigquerymigration - 0.70.0 + 0.71.0 com.google.api.grpc proto-google-cloud-bigquerymigration-v2 - 0.70.0 + 0.71.0 com.google.api.grpc grpc-google-cloud-bigquerymigration-v2 - 0.70.0 + 0.71.0 com.google.api.grpc grpc-google-cloud-bigquerymigration-v2alpha - 0.70.0 + 0.71.0 com.google.api.grpc proto-google-cloud-bigquerymigration-v2alpha - 0.70.0 + 0.71.0 diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/pom.xml b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/pom.xml index c14c24378091..abe8c8677078 100644 --- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/pom.xml +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquerymigration-v2 - 0.70.0 + 0.71.0 proto-google-cloud-bigquerymigration-v2 Proto library for google-cloud-bigquerymigration com.google.cloud google-cloud-bigquerymigration-parent - 0.70.0 + 0.71.0 diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2alpha/pom.xml b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2alpha/pom.xml index 62f3871ff317..5b37a706e86c 100644 --- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2alpha/pom.xml +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquerymigration-v2alpha - 0.70.0 + 0.71.0 proto-google-cloud-bigquerymigration-v2alpha Proto library for google-cloud-bigquerymigration com.google.cloud google-cloud-bigquerymigration-parent - 0.70.0 + 0.71.0 diff --git a/java-bigqueryreservation/CHANGELOG.md b/java-bigqueryreservation/CHANGELOG.md index 20b1b8b3d7c1..948abf70cdf2 100644 --- a/java-bigqueryreservation/CHANGELOG.md +++ b/java-bigqueryreservation/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.69.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.68.0 (2025-06-25) ### Dependencies diff --git a/java-bigqueryreservation/README.md b/java-bigqueryreservation/README.md index 4e64b6824ac8..35e804d9093d 100644 --- a/java-bigqueryreservation/README.md +++ b/java-bigqueryreservation/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigqueryreservation - 2.67.0 + 2.68.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigqueryreservation:2.67.0' +implementation 'com.google.cloud:google-cloud-bigqueryreservation:2.68.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryreservation" % "2.67.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryreservation" % "2.68.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.67.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryreservation/2.68.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/google-cloud-bigqueryreservation-bom/pom.xml b/java-bigqueryreservation/google-cloud-bigqueryreservation-bom/pom.xml index 9388292e7f1c..cd29075fbe68 100644 --- a/java-bigqueryreservation/google-cloud-bigqueryreservation-bom/pom.xml +++ b/java-bigqueryreservation/google-cloud-bigqueryreservation-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-bigqueryreservation-bom - 2.68.0 + 2.69.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-bigqueryreservation - 2.68.0 + 2.69.0 com.google.api.grpc grpc-google-cloud-bigqueryreservation-v1 - 2.68.0 + 2.69.0 com.google.api.grpc proto-google-cloud-bigqueryreservation-v1 - 2.68.0 + 2.69.0 diff --git a/java-bigqueryreservation/google-cloud-bigqueryreservation/pom.xml b/java-bigqueryreservation/google-cloud-bigqueryreservation/pom.xml index 6577295d18b5..24783064d830 100644 --- a/java-bigqueryreservation/google-cloud-bigqueryreservation/pom.xml +++ b/java-bigqueryreservation/google-cloud-bigqueryreservation/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-bigqueryreservation - 2.68.0 + 2.69.0 jar Google Cloud BigQuery Reservations allows users to manage their flat-rate BigQuery reservations. com.google.cloud google-cloud-bigqueryreservation-parent - 2.68.0 + 2.69.0 google-cloud-bigqueryreservation diff --git a/java-bigqueryreservation/grpc-google-cloud-bigqueryreservation-v1/pom.xml b/java-bigqueryreservation/grpc-google-cloud-bigqueryreservation-v1/pom.xml index 63cfd5d360b3..64e4f242f661 100644 --- a/java-bigqueryreservation/grpc-google-cloud-bigqueryreservation-v1/pom.xml +++ b/java-bigqueryreservation/grpc-google-cloud-bigqueryreservation-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigqueryreservation-v1 - 2.68.0 + 2.69.0 grpc-google-cloud-bigqueryreservation-v1 GRPC library for grpc-google-cloud-bigqueryreservation-v1 com.google.cloud google-cloud-bigqueryreservation-parent - 2.68.0 + 2.69.0 diff --git a/java-bigqueryreservation/pom.xml b/java-bigqueryreservation/pom.xml index d2b1eb208e18..d8075dfe7f16 100644 --- a/java-bigqueryreservation/pom.xml +++ b/java-bigqueryreservation/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bigqueryreservation-parent pom - 2.68.0 + 2.69.0 Google Cloud BigQuery Reservations Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-bigqueryreservation - 2.68.0 + 2.69.0 com.google.api.grpc proto-google-cloud-bigqueryreservation-v1 - 2.68.0 + 2.69.0 com.google.api.grpc grpc-google-cloud-bigqueryreservation-v1 - 2.68.0 + 2.69.0 diff --git a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/pom.xml b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/pom.xml index de3c2327e601..67f413e2b208 100644 --- a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/pom.xml +++ b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigqueryreservation-v1 - 2.68.0 + 2.69.0 proto-google-cloud-bigqueryreservation-v1 PROTO library for proto-google-cloud-bigqueryreservation-v1 com.google.cloud google-cloud-bigqueryreservation-parent - 2.68.0 + 2.69.0 diff --git a/java-billing/CHANGELOG.md b/java-billing/CHANGELOG.md index 2ddb5d16dda1..647fa2bd1a28 100644 --- a/java-billing/CHANGELOG.md +++ b/java-billing/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.68.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.67.0 (2025-06-25) ### Dependencies diff --git a/java-billing/README.md b/java-billing/README.md index ca5b3e022393..5ce239379965 100644 --- a/java-billing/README.md +++ b/java-billing/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-billing - 2.66.0 + 2.67.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-billing:2.66.0' +implementation 'com.google.cloud:google-cloud-billing:2.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-billing" % "2.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-billing" % "2.67.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billing/2.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-billing/google-cloud-billing-bom/pom.xml b/java-billing/google-cloud-billing-bom/pom.xml index 4b8fe58e945c..11c45de63493 100644 --- a/java-billing/google-cloud-billing-bom/pom.xml +++ b/java-billing/google-cloud-billing-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-billing-bom - 2.67.0 + 2.68.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-billing - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-billing-v1 - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-cloud-billing-v1 - 2.67.0 + 2.68.0 diff --git a/java-billing/google-cloud-billing/pom.xml b/java-billing/google-cloud-billing/pom.xml index ca719c346e6e..d45dfedcb5d9 100644 --- a/java-billing/google-cloud-billing/pom.xml +++ b/java-billing/google-cloud-billing/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-billing - 2.67.0 + 2.68.0 jar Google Cloud Billing Java idiomatic client for Google Cloud Billing com.google.cloud google-cloud-billing-parent - 2.67.0 + 2.68.0 google-cloud-billing diff --git a/java-billing/grpc-google-cloud-billing-v1/pom.xml b/java-billing/grpc-google-cloud-billing-v1/pom.xml index 259ea4befd5e..27c57c95a396 100644 --- a/java-billing/grpc-google-cloud-billing-v1/pom.xml +++ b/java-billing/grpc-google-cloud-billing-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-billing-v1 - 2.67.0 + 2.68.0 grpc-google-cloud-billing-v1 GRPC library for grpc-google-cloud-billing-v1 com.google.cloud google-cloud-billing-parent - 2.67.0 + 2.68.0 diff --git a/java-billing/pom.xml b/java-billing/pom.xml index bab7a49c1665..d28ab5542939 100644 --- a/java-billing/pom.xml +++ b/java-billing/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-billing-parent pom - 2.67.0 + 2.68.0 Google Cloud Billing Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api.grpc proto-google-cloud-billing-v1 - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-billing-v1 - 2.67.0 + 2.68.0 com.google.cloud google-cloud-billing - 2.67.0 + 2.68.0 diff --git a/java-billing/proto-google-cloud-billing-v1/pom.xml b/java-billing/proto-google-cloud-billing-v1/pom.xml index d2ec612ed9eb..62f7bd9e13e6 100644 --- a/java-billing/proto-google-cloud-billing-v1/pom.xml +++ b/java-billing/proto-google-cloud-billing-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-billing-v1 - 2.67.0 + 2.68.0 proto-google-cloud-billing-v1beta1 PROTO library for proto-google-cloud-billing-v1 com.google.cloud google-cloud-billing-parent - 2.67.0 + 2.68.0 diff --git a/java-billingbudgets/CHANGELOG.md b/java-billingbudgets/CHANGELOG.md index 1baaf0a67074..870a485a0d05 100644 --- a/java-billingbudgets/CHANGELOG.md +++ b/java-billingbudgets/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.68.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.67.0 (2025-06-25) ### Dependencies diff --git a/java-billingbudgets/README.md b/java-billingbudgets/README.md index eefaae6b5825..e63906cbffa1 100644 --- a/java-billingbudgets/README.md +++ b/java-billingbudgets/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-billingbudgets - 2.66.0 + 2.67.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-billingbudgets:2.66.0' +implementation 'com.google.cloud:google-cloud-billingbudgets:2.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-billingbudgets" % "2.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-billingbudgets" % "2.67.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billingbudgets/2.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-billingbudgets/google-cloud-billingbudgets-bom/pom.xml b/java-billingbudgets/google-cloud-billingbudgets-bom/pom.xml index 112d64bb4e22..f48262f8adfd 100644 --- a/java-billingbudgets/google-cloud-billingbudgets-bom/pom.xml +++ b/java-billingbudgets/google-cloud-billingbudgets-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-billingbudgets-bom - 2.67.0 + 2.68.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-billingbudgets - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-billingbudgets-v1beta1 - 0.76.0 + 0.77.0 com.google.api.grpc grpc-google-cloud-billingbudgets-v1 - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-cloud-billingbudgets-v1beta1 - 0.76.0 + 0.77.0 com.google.api.grpc proto-google-cloud-billingbudgets-v1 - 2.67.0 + 2.68.0 diff --git a/java-billingbudgets/google-cloud-billingbudgets/pom.xml b/java-billingbudgets/google-cloud-billingbudgets/pom.xml index 11f5f566a568..71f2b99e24be 100644 --- a/java-billingbudgets/google-cloud-billingbudgets/pom.xml +++ b/java-billingbudgets/google-cloud-billingbudgets/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-billingbudgets - 2.67.0 + 2.68.0 jar Google Cloud billingbudgets Java idiomatic client for Google Cloud billingbudgets com.google.cloud google-cloud-billingbudgets-parent - 2.67.0 + 2.68.0 google-cloud-billingbudgets diff --git a/java-billingbudgets/grpc-google-cloud-billingbudgets-v1/pom.xml b/java-billingbudgets/grpc-google-cloud-billingbudgets-v1/pom.xml index 881866a81a6f..8757c409366c 100644 --- a/java-billingbudgets/grpc-google-cloud-billingbudgets-v1/pom.xml +++ b/java-billingbudgets/grpc-google-cloud-billingbudgets-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-billingbudgets-v1 - 2.67.0 + 2.68.0 grpc-google-cloud-billingbudgets-v1 GRPC library for grpc-google-cloud-billingbudgets-v1 com.google.cloud google-cloud-billingbudgets-parent - 2.67.0 + 2.68.0 diff --git a/java-billingbudgets/grpc-google-cloud-billingbudgets-v1beta1/pom.xml b/java-billingbudgets/grpc-google-cloud-billingbudgets-v1beta1/pom.xml index 5b75525a1b8f..7e325039e6a0 100644 --- a/java-billingbudgets/grpc-google-cloud-billingbudgets-v1beta1/pom.xml +++ b/java-billingbudgets/grpc-google-cloud-billingbudgets-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-billingbudgets-v1beta1 - 0.76.0 + 0.77.0 grpc-google-cloud-billingbudgets-v1beta1 GRPC library for grpc-google-cloud-billingbudgets-v1beta1 com.google.cloud google-cloud-billingbudgets-parent - 2.67.0 + 2.68.0 diff --git a/java-billingbudgets/pom.xml b/java-billingbudgets/pom.xml index 595d60de9f44..f88dc40248a8 100644 --- a/java-billingbudgets/pom.xml +++ b/java-billingbudgets/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-billingbudgets-parent pom - 2.67.0 + 2.68.0 Google Cloud Billing Budgets Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-billingbudgets-v1beta1 - 0.76.0 + 0.77.0 com.google.api.grpc proto-google-cloud-billingbudgets-v1 - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-billingbudgets-v1beta1 - 0.76.0 + 0.77.0 com.google.api.grpc grpc-google-cloud-billingbudgets-v1 - 2.67.0 + 2.68.0 com.google.cloud google-cloud-billingbudgets - 2.67.0 + 2.68.0 diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/pom.xml b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/pom.xml index 84bea439f489..bcaaccde6dee 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/pom.xml +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-billingbudgets-v1 - 2.67.0 + 2.68.0 proto-google-cloud-billingbudgets-v1 PROTO library for proto-google-cloud-billingbudgets-v1 com.google.cloud google-cloud-billingbudgets-parent - 2.67.0 + 2.68.0 diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/pom.xml b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/pom.xml index c2f6266f43e4..2113322fe27e 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/pom.xml +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-billingbudgets-v1beta1 - 0.76.0 + 0.77.0 proto-google-cloud-billingbudgets-v1beta1 PROTO library for proto-google-cloud-billingbudgets-v1beta1 com.google.cloud google-cloud-billingbudgets-parent - 2.67.0 + 2.68.0 diff --git a/java-binary-authorization/CHANGELOG.md b/java-binary-authorization/CHANGELOG.md index 6ad8157f6a1a..ffb36346231c 100644 --- a/java-binary-authorization/CHANGELOG.md +++ b/java-binary-authorization/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 1.67.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 1.66.0 (2025-06-25) ### Dependencies diff --git a/java-binary-authorization/README.md b/java-binary-authorization/README.md index 5642c7ef927d..96729ae63f28 100644 --- a/java-binary-authorization/README.md +++ b/java-binary-authorization/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-binary-authorization - 1.65.0 + 1.66.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-binary-authorization:1.65.0' +implementation 'com.google.cloud:google-cloud-binary-authorization:1.66.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-binary-authorization" % "1.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-binary-authorization" % "1.66.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.65.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-binary-authorization/1.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-binary-authorization/google-cloud-binary-authorization-bom/pom.xml b/java-binary-authorization/google-cloud-binary-authorization-bom/pom.xml index 7c3a24de7adf..6d79e9769897 100644 --- a/java-binary-authorization/google-cloud-binary-authorization-bom/pom.xml +++ b/java-binary-authorization/google-cloud-binary-authorization-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-binary-authorization-bom - 1.66.0 + 1.67.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-binary-authorization - 1.66.0 + 1.67.0 com.google.api.grpc grpc-google-cloud-binary-authorization-v1beta1 - 0.71.0 + 0.72.0 com.google.api.grpc grpc-google-cloud-binary-authorization-v1 - 1.66.0 + 1.67.0 com.google.api.grpc proto-google-cloud-binary-authorization-v1beta1 - 0.71.0 + 0.72.0 com.google.api.grpc proto-google-cloud-binary-authorization-v1 - 1.66.0 + 1.67.0 diff --git a/java-binary-authorization/google-cloud-binary-authorization/pom.xml b/java-binary-authorization/google-cloud-binary-authorization/pom.xml index d6664a969d39..5300951085a3 100644 --- a/java-binary-authorization/google-cloud-binary-authorization/pom.xml +++ b/java-binary-authorization/google-cloud-binary-authorization/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-binary-authorization - 1.66.0 + 1.67.0 jar Google Binary Authorization Binary Authorization 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 com.google.cloud google-cloud-binary-authorization-parent - 1.66.0 + 1.67.0 google-cloud-binary-authorization diff --git a/java-binary-authorization/grpc-google-cloud-binary-authorization-v1/pom.xml b/java-binary-authorization/grpc-google-cloud-binary-authorization-v1/pom.xml index 950a883caa04..73162b61be7e 100644 --- a/java-binary-authorization/grpc-google-cloud-binary-authorization-v1/pom.xml +++ b/java-binary-authorization/grpc-google-cloud-binary-authorization-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-binary-authorization-v1 - 1.66.0 + 1.67.0 grpc-google-cloud-binary-authorization-v1 GRPC library for google-cloud-binary-authorization com.google.cloud google-cloud-binary-authorization-parent - 1.66.0 + 1.67.0 diff --git a/java-binary-authorization/grpc-google-cloud-binary-authorization-v1beta1/pom.xml b/java-binary-authorization/grpc-google-cloud-binary-authorization-v1beta1/pom.xml index 0a99ebe9f999..6a5f6b2a74e1 100644 --- a/java-binary-authorization/grpc-google-cloud-binary-authorization-v1beta1/pom.xml +++ b/java-binary-authorization/grpc-google-cloud-binary-authorization-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-binary-authorization-v1beta1 - 0.71.0 + 0.72.0 grpc-google-cloud-binary-authorization-v1beta1 GRPC library for google-cloud-binary-authorization com.google.cloud google-cloud-binary-authorization-parent - 1.66.0 + 1.67.0 diff --git a/java-binary-authorization/pom.xml b/java-binary-authorization/pom.xml index ec5586e20ae3..118b18294d65 100644 --- a/java-binary-authorization/pom.xml +++ b/java-binary-authorization/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-binary-authorization-parent pom - 1.66.0 + 1.67.0 Google Binary Authorization Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,33 +29,33 @@ com.google.cloud google-cloud-binary-authorization - 1.66.0 + 1.67.0 com.google.api.grpc proto-google-cloud-binary-authorization-v1 - 1.66.0 + 1.67.0 com.google.api.grpc grpc-google-cloud-binary-authorization-v1 - 1.66.0 + 1.67.0 com.google.api.grpc grpc-google-cloud-binary-authorization-v1beta1 - 0.71.0 + 0.72.0 com.google.api.grpc proto-google-cloud-binary-authorization-v1beta1 - 0.71.0 + 0.72.0 io.grafeas grafeas - 2.68.0 + 2.69.0 diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1/pom.xml b/java-binary-authorization/proto-google-cloud-binary-authorization-v1/pom.xml index 0e0f9f36164b..e74ade6b9260 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1/pom.xml +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-binary-authorization-v1 - 1.66.0 + 1.67.0 proto-google-cloud-binary-authorization-v1 Proto library for google-cloud-binary-authorization com.google.cloud google-cloud-binary-authorization-parent - 1.66.0 + 1.67.0 diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/pom.xml b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/pom.xml index e441bc22b2c2..25c68aec182f 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/pom.xml +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-binary-authorization-v1beta1 - 0.71.0 + 0.72.0 proto-google-cloud-binary-authorization-v1beta1 Proto library for google-cloud-binary-authorization com.google.cloud google-cloud-binary-authorization-parent - 1.66.0 + 1.67.0 diff --git a/java-certificate-manager/CHANGELOG.md b/java-certificate-manager/CHANGELOG.md index a9bfd35edd79..a75a795a4770 100644 --- a/java-certificate-manager/CHANGELOG.md +++ b/java-certificate-manager/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.71.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.70.0 (2025-06-25) ### Dependencies diff --git a/java-certificate-manager/README.md b/java-certificate-manager/README.md index 09f32216b48e..225b1277ce45 100644 --- a/java-certificate-manager/README.md +++ b/java-certificate-manager/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-certificate-manager - 0.69.0 + 0.70.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-certificate-manager:0.69.0' +implementation 'com.google.cloud:google-cloud-certificate-manager:0.70.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-certificate-manager" % "0.69.0" +libraryDependencies += "com.google.cloud" % "google-cloud-certificate-manager" % "0.70.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-certificate-manager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-certificate-manager/0.69.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-certificate-manager/0.70.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/google-cloud-certificate-manager-bom/pom.xml b/java-certificate-manager/google-cloud-certificate-manager-bom/pom.xml index fb0ca4706fc5..591f5bc65198 100644 --- a/java-certificate-manager/google-cloud-certificate-manager-bom/pom.xml +++ b/java-certificate-manager/google-cloud-certificate-manager-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-certificate-manager-bom - 0.70.0 + 0.71.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-certificate-manager - 0.70.0 + 0.71.0 com.google.api.grpc grpc-google-cloud-certificate-manager-v1 - 0.70.0 + 0.71.0 com.google.api.grpc proto-google-cloud-certificate-manager-v1 - 0.70.0 + 0.71.0 diff --git a/java-certificate-manager/google-cloud-certificate-manager/pom.xml b/java-certificate-manager/google-cloud-certificate-manager/pom.xml index 6d3a5d48e29e..335a7825eb2c 100644 --- a/java-certificate-manager/google-cloud-certificate-manager/pom.xml +++ b/java-certificate-manager/google-cloud-certificate-manager/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-certificate-manager - 0.70.0 + 0.71.0 jar Google Certificate Manager Certificate Manager lets you acquire and manage TLS (SSL) certificates for use with Cloud Load Balancing. com.google.cloud google-cloud-certificate-manager-parent - 0.70.0 + 0.71.0 google-cloud-certificate-manager diff --git a/java-certificate-manager/grpc-google-cloud-certificate-manager-v1/pom.xml b/java-certificate-manager/grpc-google-cloud-certificate-manager-v1/pom.xml index a6629133ea6c..170988229123 100644 --- a/java-certificate-manager/grpc-google-cloud-certificate-manager-v1/pom.xml +++ b/java-certificate-manager/grpc-google-cloud-certificate-manager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-certificate-manager-v1 - 0.70.0 + 0.71.0 grpc-google-cloud-certificate-manager-v1 GRPC library for google-cloud-certificate-manager com.google.cloud google-cloud-certificate-manager-parent - 0.70.0 + 0.71.0 diff --git a/java-certificate-manager/pom.xml b/java-certificate-manager/pom.xml index 9473ff0fdb95..8275dd3312d6 100644 --- a/java-certificate-manager/pom.xml +++ b/java-certificate-manager/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-certificate-manager-parent pom - 0.70.0 + 0.71.0 Google Certificate Manager Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-certificate-manager - 0.70.0 + 0.71.0 com.google.api.grpc grpc-google-cloud-certificate-manager-v1 - 0.70.0 + 0.71.0 com.google.api.grpc proto-google-cloud-certificate-manager-v1 - 0.70.0 + 0.71.0 diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/pom.xml b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/pom.xml index 8fc47a8f967f..959656f4d4e2 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/pom.xml +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-certificate-manager-v1 - 0.70.0 + 0.71.0 proto-google-cloud-certificate-manager-v1 Proto library for google-cloud-certificate-manager com.google.cloud google-cloud-certificate-manager-parent - 0.70.0 + 0.71.0 diff --git a/java-channel/CHANGELOG.md b/java-channel/CHANGELOG.md index 970a4a04374a..7f8082fe336c 100644 --- a/java-channel/CHANGELOG.md +++ b/java-channel/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 3.72.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 3.71.0 (2025-06-25) ### Dependencies diff --git a/java-channel/README.md b/java-channel/README.md index 9c6f916a49f2..99f5dd65f852 100644 --- a/java-channel/README.md +++ b/java-channel/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-channel - 3.70.0 + 3.71.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-channel:3.70.0' +implementation 'com.google.cloud:google-cloud-channel:3.71.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-channel" % "3.70.0" +libraryDependencies += "com.google.cloud" % "google-cloud-channel" % "3.71.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.70.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-channel/3.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-channel/google-cloud-channel-bom/pom.xml b/java-channel/google-cloud-channel-bom/pom.xml index d73c9f63228a..925f1b032d40 100644 --- a/java-channel/google-cloud-channel-bom/pom.xml +++ b/java-channel/google-cloud-channel-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-channel-bom - 3.71.0 + 3.72.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-channel - 3.71.0 + 3.72.0 com.google.api.grpc grpc-google-cloud-channel-v1 - 3.71.0 + 3.72.0 com.google.api.grpc proto-google-cloud-channel-v1 - 3.71.0 + 3.72.0 diff --git a/java-channel/google-cloud-channel/pom.xml b/java-channel/google-cloud-channel/pom.xml index 9868cdf92648..61abd42698cf 100644 --- a/java-channel/google-cloud-channel/pom.xml +++ b/java-channel/google-cloud-channel/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-channel - 3.71.0 + 3.72.0 jar Google Channel Services 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. com.google.cloud google-cloud-channel-parent - 3.71.0 + 3.72.0 google-cloud-channel diff --git a/java-channel/grpc-google-cloud-channel-v1/pom.xml b/java-channel/grpc-google-cloud-channel-v1/pom.xml index 45f427879350..352a96543f06 100644 --- a/java-channel/grpc-google-cloud-channel-v1/pom.xml +++ b/java-channel/grpc-google-cloud-channel-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-channel-v1 - 3.71.0 + 3.72.0 grpc-google-cloud-channel-v1 GRPC library for google-cloud-channel com.google.cloud google-cloud-channel-parent - 3.71.0 + 3.72.0 diff --git a/java-channel/pom.xml b/java-channel/pom.xml index db64a42c55cd..72aec88ddf77 100644 --- a/java-channel/pom.xml +++ b/java-channel/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-channel-parent pom - 3.71.0 + 3.72.0 Google Channel Services Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-channel - 3.71.0 + 3.72.0 com.google.api.grpc proto-google-cloud-channel-v1 - 3.71.0 + 3.72.0 com.google.api.grpc grpc-google-cloud-channel-v1 - 3.71.0 + 3.72.0 diff --git a/java-channel/proto-google-cloud-channel-v1/pom.xml b/java-channel/proto-google-cloud-channel-v1/pom.xml index 681fa94603cc..c41402e0e5f6 100644 --- a/java-channel/proto-google-cloud-channel-v1/pom.xml +++ b/java-channel/proto-google-cloud-channel-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-channel-v1 - 3.71.0 + 3.72.0 proto-google-cloud-channel-v1 Proto library for google-cloud-channel com.google.cloud google-cloud-channel-parent - 3.71.0 + 3.72.0 diff --git a/java-chat/CHANGELOG.md b/java-chat/CHANGELOG.md index dd1b3898df82..4ecacec8d4f6 100644 --- a/java-chat/CHANGELOG.md +++ b/java-chat/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.32.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.31.0 (2025-06-25) ### Dependencies diff --git a/java-chat/README.md b/java-chat/README.md index 2b61846c9009..00b453de5335 100644 --- a/java-chat/README.md +++ b/java-chat/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-chat - 0.30.0 + 0.31.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-chat:0.30.0' +implementation 'com.google.cloud:google-cloud-chat:0.31.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-chat" % "0.30.0" +libraryDependencies += "com.google.cloud" % "google-cloud-chat" % "0.31.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-chat.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chat/0.30.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chat/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-chat/google-cloud-chat-bom/pom.xml b/java-chat/google-cloud-chat-bom/pom.xml index 69b201ea6a93..b95daca8d215 100644 --- a/java-chat/google-cloud-chat-bom/pom.xml +++ b/java-chat/google-cloud-chat-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-chat-bom - 0.31.0 + 0.32.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-chat - 0.31.0 + 0.32.0 com.google.api.grpc grpc-google-cloud-chat-v1 - 0.31.0 + 0.32.0 com.google.api.grpc proto-google-cloud-chat-v1 - 0.31.0 + 0.32.0 diff --git a/java-chat/google-cloud-chat/pom.xml b/java-chat/google-cloud-chat/pom.xml index 47b75a6f0ec4..7ab1878e3674 100644 --- a/java-chat/google-cloud-chat/pom.xml +++ b/java-chat/google-cloud-chat/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-chat - 0.31.0 + 0.32.0 jar Google Google Chat API Google Chat API 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. com.google.cloud google-cloud-chat-parent - 0.31.0 + 0.32.0 google-cloud-chat diff --git a/java-chat/grpc-google-cloud-chat-v1/pom.xml b/java-chat/grpc-google-cloud-chat-v1/pom.xml index 1c1e3c13b5a4..8b6f93d647fc 100644 --- a/java-chat/grpc-google-cloud-chat-v1/pom.xml +++ b/java-chat/grpc-google-cloud-chat-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-chat-v1 - 0.31.0 + 0.32.0 grpc-google-cloud-chat-v1 GRPC library for google-cloud-chat com.google.cloud google-cloud-chat-parent - 0.31.0 + 0.32.0 diff --git a/java-chat/pom.xml b/java-chat/pom.xml index bd0e04866db8..c4ac543c8bc1 100644 --- a/java-chat/pom.xml +++ b/java-chat/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-chat-parent pom - 0.31.0 + 0.32.0 Google Google Chat API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-chat - 0.31.0 + 0.32.0 com.google.api.grpc grpc-google-cloud-chat-v1 - 0.31.0 + 0.32.0 com.google.api.grpc proto-google-cloud-chat-v1 - 0.31.0 + 0.32.0 diff --git a/java-chat/proto-google-cloud-chat-v1/pom.xml b/java-chat/proto-google-cloud-chat-v1/pom.xml index b5f694976be6..61d541c2dc74 100644 --- a/java-chat/proto-google-cloud-chat-v1/pom.xml +++ b/java-chat/proto-google-cloud-chat-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-chat-v1 - 0.31.0 + 0.32.0 proto-google-cloud-chat-v1 Proto library for google-cloud-chat com.google.cloud google-cloud-chat-parent - 0.31.0 + 0.32.0 diff --git a/java-chronicle/CHANGELOG.md b/java-chronicle/CHANGELOG.md index 2a8360b31595..fcdd7c8c7598 100644 --- a/java-chronicle/CHANGELOG.md +++ b/java-chronicle/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.6.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.5.0 (2025-06-25) ### Dependencies diff --git a/java-chronicle/README.md b/java-chronicle/README.md index 57da37ff213b..56733bf1a498 100644 --- a/java-chronicle/README.md +++ b/java-chronicle/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-chronicle - 0.4.0 + 0.5.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-chronicle:0.4.0' +implementation 'com.google.cloud:google-cloud-chronicle:0.5.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-chronicle" % "0.4.0" +libraryDependencies += "com.google.cloud" % "google-cloud-chronicle" % "0.5.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-chronicle.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chronicle/0.4.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chronicle/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-chronicle/google-cloud-chronicle-bom/pom.xml b/java-chronicle/google-cloud-chronicle-bom/pom.xml index 115b5317987a..9131e271512c 100644 --- a/java-chronicle/google-cloud-chronicle-bom/pom.xml +++ b/java-chronicle/google-cloud-chronicle-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-chronicle-bom - 0.5.0 + 0.6.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-chronicle - 0.5.0 + 0.6.0 com.google.api.grpc grpc-google-cloud-chronicle-v1 - 0.5.0 + 0.6.0 com.google.api.grpc proto-google-cloud-chronicle-v1 - 0.5.0 + 0.6.0 diff --git a/java-chronicle/google-cloud-chronicle/pom.xml b/java-chronicle/google-cloud-chronicle/pom.xml index 7becf714a2ef..2a63f28182ab 100644 --- a/java-chronicle/google-cloud-chronicle/pom.xml +++ b/java-chronicle/google-cloud-chronicle/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-chronicle - 0.5.0 + 0.6.0 jar Google Chronicle API Chronicle API 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 com.google.cloud google-cloud-chronicle-parent - 0.5.0 + 0.6.0 google-cloud-chronicle diff --git a/java-chronicle/grpc-google-cloud-chronicle-v1/pom.xml b/java-chronicle/grpc-google-cloud-chronicle-v1/pom.xml index abe0f6b2fd36..8f122f2b3e6c 100644 --- a/java-chronicle/grpc-google-cloud-chronicle-v1/pom.xml +++ b/java-chronicle/grpc-google-cloud-chronicle-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-chronicle-v1 - 0.5.0 + 0.6.0 grpc-google-cloud-chronicle-v1 GRPC library for google-cloud-chronicle com.google.cloud google-cloud-chronicle-parent - 0.5.0 + 0.6.0 diff --git a/java-chronicle/pom.xml b/java-chronicle/pom.xml index ef660a8718e5..4bc58ab61120 100644 --- a/java-chronicle/pom.xml +++ b/java-chronicle/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-chronicle-parent pom - 0.5.0 + 0.6.0 Google Chronicle API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-chronicle - 0.5.0 + 0.6.0 com.google.api.grpc grpc-google-cloud-chronicle-v1 - 0.5.0 + 0.6.0 com.google.api.grpc proto-google-cloud-chronicle-v1 - 0.5.0 + 0.6.0 diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/pom.xml b/java-chronicle/proto-google-cloud-chronicle-v1/pom.xml index 02c3b218e765..08a230ca3cba 100644 --- a/java-chronicle/proto-google-cloud-chronicle-v1/pom.xml +++ b/java-chronicle/proto-google-cloud-chronicle-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-chronicle-v1 - 0.5.0 + 0.6.0 proto-google-cloud-chronicle-v1 Proto library for google-cloud-chronicle com.google.cloud google-cloud-chronicle-parent - 0.5.0 + 0.6.0 diff --git a/java-cloudbuild/CHANGELOG.md b/java-cloudbuild/CHANGELOG.md index efd6f0fbbab2..d9ef92590853 100644 --- a/java-cloudbuild/CHANGELOG.md +++ b/java-cloudbuild/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 3.70.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 3.69.0 (2025-06-25) ### Dependencies diff --git a/java-cloudbuild/README.md b/java-cloudbuild/README.md index b3394de5fb94..fb263ca922bd 100644 --- a/java-cloudbuild/README.md +++ b/java-cloudbuild/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-build - 3.68.0 + 3.69.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-build:3.68.0' +implementation 'com.google.cloud:google-cloud-build:3.69.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-build" % "3.68.0" +libraryDependencies += "com.google.cloud" % "google-cloud-build" % "3.69.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.68.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-build/3.69.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/google-cloud-build-bom/pom.xml b/java-cloudbuild/google-cloud-build-bom/pom.xml index 17e19c56aa99..2e26c9497580 100644 --- a/java-cloudbuild/google-cloud-build-bom/pom.xml +++ b/java-cloudbuild/google-cloud-build-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-build-bom - 3.69.0 + 3.70.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-build - 3.69.0 + 3.70.0 com.google.api.grpc grpc-google-cloud-build-v1 - 3.69.0 + 3.70.0 com.google.api.grpc grpc-google-cloud-build-v2 - 3.69.0 + 3.70.0 com.google.api.grpc proto-google-cloud-build-v1 - 3.69.0 + 3.70.0 com.google.api.grpc proto-google-cloud-build-v2 - 3.69.0 + 3.70.0 diff --git a/java-cloudbuild/google-cloud-build/pom.xml b/java-cloudbuild/google-cloud-build/pom.xml index 1d97b8c57660..45d56caf309c 100644 --- a/java-cloudbuild/google-cloud-build/pom.xml +++ b/java-cloudbuild/google-cloud-build/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-build - 3.69.0 + 3.70.0 jar Google Cloud Build @@ -12,7 +12,7 @@ com.google.cloud google-cloud-build-parent - 3.69.0 + 3.70.0 google-cloud-build diff --git a/java-cloudbuild/grpc-google-cloud-build-v1/pom.xml b/java-cloudbuild/grpc-google-cloud-build-v1/pom.xml index 81790d60eaee..06327d48b03f 100644 --- a/java-cloudbuild/grpc-google-cloud-build-v1/pom.xml +++ b/java-cloudbuild/grpc-google-cloud-build-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-build-v1 - 3.69.0 + 3.70.0 grpc-google-cloud-build-v1 GRPC library for grpc-google-cloud-build-v1 com.google.cloud google-cloud-build-parent - 3.69.0 + 3.70.0 diff --git a/java-cloudbuild/grpc-google-cloud-build-v2/pom.xml b/java-cloudbuild/grpc-google-cloud-build-v2/pom.xml index 9f08e7269ac5..4c395abca46f 100644 --- a/java-cloudbuild/grpc-google-cloud-build-v2/pom.xml +++ b/java-cloudbuild/grpc-google-cloud-build-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-build-v2 - 3.69.0 + 3.70.0 grpc-google-cloud-build-v2 GRPC library for google-cloud-build com.google.cloud google-cloud-build-parent - 3.69.0 + 3.70.0 diff --git a/java-cloudbuild/pom.xml b/java-cloudbuild/pom.xml index 415aa157659d..d695c586486d 100644 --- a/java-cloudbuild/pom.xml +++ b/java-cloudbuild/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-build-parent pom - 3.69.0 + 3.70.0 Google Cloud Build Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-build-v1 - 3.69.0 + 3.70.0 com.google.api.grpc proto-google-cloud-build-v2 - 3.69.0 + 3.70.0 com.google.api.grpc grpc-google-cloud-build-v2 - 3.69.0 + 3.70.0 com.google.cloud google-cloud-build - 3.69.0 + 3.70.0 com.google.api.grpc grpc-google-cloud-build-v1 - 3.69.0 + 3.70.0 diff --git a/java-cloudbuild/proto-google-cloud-build-v1/pom.xml b/java-cloudbuild/proto-google-cloud-build-v1/pom.xml index c4e94a8d9f8e..7b79792c5cf2 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/pom.xml +++ b/java-cloudbuild/proto-google-cloud-build-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-build-v1 - 3.69.0 + 3.70.0 proto-google-cloud-build-v1 PROTO library for proto-google-cloud-build-v1 com.google.cloud google-cloud-build-parent - 3.69.0 + 3.70.0 diff --git a/java-cloudbuild/proto-google-cloud-build-v2/pom.xml b/java-cloudbuild/proto-google-cloud-build-v2/pom.xml index 0795af0d334d..970912a8bc07 100644 --- a/java-cloudbuild/proto-google-cloud-build-v2/pom.xml +++ b/java-cloudbuild/proto-google-cloud-build-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-build-v2 - 3.69.0 + 3.70.0 proto-google-cloud-build-v2 Proto library for google-cloud-build com.google.cloud google-cloud-build-parent - 3.69.0 + 3.70.0 diff --git a/java-cloudcommerceconsumerprocurement/CHANGELOG.md b/java-cloudcommerceconsumerprocurement/CHANGELOG.md index abcf59357d9c..b7c886064f02 100644 --- a/java-cloudcommerceconsumerprocurement/CHANGELOG.md +++ b/java-cloudcommerceconsumerprocurement/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.66.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.65.0 (2025-06-25) ### Dependencies diff --git a/java-cloudcommerceconsumerprocurement/README.md b/java-cloudcommerceconsumerprocurement/README.md index 63d0cdb3580c..2c92e38b095d 100644 --- a/java-cloudcommerceconsumerprocurement/README.md +++ b/java-cloudcommerceconsumerprocurement/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudcommerceconsumerprocurement - 0.64.0 + 0.65.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudcommerceconsumerprocurement:0.64.0' +implementation 'com.google.cloud:google-cloud-cloudcommerceconsumerprocurement:0.65.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudcommerceconsumerprocurement" % "0.64.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudcommerceconsumerprocurement" % "0.65.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-cloudcommerceconsumerprocurement.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcommerceconsumerprocurement/0.64.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcommerceconsumerprocurement/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-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement-bom/pom.xml b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement-bom/pom.xml index bea92126350f..890ded7bec48 100644 --- a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement-bom/pom.xml +++ b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-cloudcommerceconsumerprocurement-bom - 0.65.0 + 0.66.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-cloudcommerceconsumerprocurement - 0.65.0 + 0.66.0 com.google.api.grpc grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1 - 0.65.0 + 0.66.0 com.google.api.grpc grpc-google-cloud-cloudcommerceconsumerprocurement-v1 - 0.65.0 + 0.66.0 com.google.api.grpc proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1 - 0.65.0 + 0.66.0 com.google.api.grpc proto-google-cloud-cloudcommerceconsumerprocurement-v1 - 0.65.0 + 0.66.0 diff --git a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/pom.xml b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/pom.xml index 0b21f3355460..64dbad57c5df 100644 --- a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/pom.xml +++ b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-cloudcommerceconsumerprocurement - 0.65.0 + 0.66.0 jar Google Cloud Commerce Consumer Procurement Cloud Commerce Consumer Procurement 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. com.google.cloud google-cloud-cloudcommerceconsumerprocurement-parent - 0.65.0 + 0.66.0 google-cloud-cloudcommerceconsumerprocurement diff --git a/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1/pom.xml b/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1/pom.xml index 64fe5c8ed1d8..e7b76ea92ea1 100644 --- a/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1/pom.xml +++ b/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-cloudcommerceconsumerprocurement-v1 - 0.65.0 + 0.66.0 grpc-google-cloud-cloudcommerceconsumerprocurement-v1 GRPC library for google-cloud-cloudcommerceconsumerprocurement com.google.cloud google-cloud-cloudcommerceconsumerprocurement-parent - 0.65.0 + 0.66.0 diff --git a/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/pom.xml b/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/pom.xml index 0771307fd520..26f65aeee977 100644 --- a/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/pom.xml +++ b/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1 - 0.65.0 + 0.66.0 grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1 GRPC library for google-cloud-cloudcommerceconsumerprocurement com.google.cloud google-cloud-cloudcommerceconsumerprocurement-parent - 0.65.0 + 0.66.0 diff --git a/java-cloudcommerceconsumerprocurement/pom.xml b/java-cloudcommerceconsumerprocurement/pom.xml index d00bee49a669..1693facf8f7f 100644 --- a/java-cloudcommerceconsumerprocurement/pom.xml +++ b/java-cloudcommerceconsumerprocurement/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-cloudcommerceconsumerprocurement-parent pom - 0.65.0 + 0.66.0 Google Cloud Commerce Consumer Procurement Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-cloudcommerceconsumerprocurement - 0.65.0 + 0.66.0 com.google.api.grpc proto-google-cloud-cloudcommerceconsumerprocurement-v1 - 0.65.0 + 0.66.0 com.google.api.grpc grpc-google-cloud-cloudcommerceconsumerprocurement-v1 - 0.65.0 + 0.66.0 com.google.api.grpc grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1 - 0.65.0 + 0.66.0 com.google.api.grpc proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1 - 0.65.0 + 0.66.0 diff --git a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/pom.xml b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/pom.xml index 2f43d659845c..1709102108b5 100644 --- a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/pom.xml +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-cloudcommerceconsumerprocurement-v1 - 0.65.0 + 0.66.0 proto-google-cloud-cloudcommerceconsumerprocurement-v1 Proto library for google-cloud-cloudcommerceconsumerprocurement com.google.cloud google-cloud-cloudcommerceconsumerprocurement-parent - 0.65.0 + 0.66.0 diff --git a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/pom.xml b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/pom.xml index ecdb23e5643b..a651d1177749 100644 --- a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/pom.xml +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1 - 0.65.0 + 0.66.0 proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1 Proto library for google-cloud-cloudcommerceconsumerprocurement com.google.cloud google-cloud-cloudcommerceconsumerprocurement-parent - 0.65.0 + 0.66.0 diff --git a/java-cloudcontrolspartner/CHANGELOG.md b/java-cloudcontrolspartner/CHANGELOG.md index 3f47c3c4cb81..d1e8ed026a6c 100644 --- a/java-cloudcontrolspartner/CHANGELOG.md +++ b/java-cloudcontrolspartner/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.32.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.31.0 (2025-06-25) ### Dependencies diff --git a/java-cloudcontrolspartner/README.md b/java-cloudcontrolspartner/README.md index b1a08a51d969..f72c6d948599 100644 --- a/java-cloudcontrolspartner/README.md +++ b/java-cloudcontrolspartner/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudcontrolspartner - 0.30.0 + 0.31.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudcontrolspartner:0.30.0' +implementation 'com.google.cloud:google-cloud-cloudcontrolspartner:0.31.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudcontrolspartner" % "0.30.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudcontrolspartner" % "0.31.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.30.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcontrolspartner/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-cloudcontrolspartner/google-cloud-cloudcontrolspartner-bom/pom.xml b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner-bom/pom.xml index 86134b52e0fd..2b55f54288bf 100644 --- a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner-bom/pom.xml +++ b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-cloudcontrolspartner-bom - 0.31.0 + 0.32.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-cloudcontrolspartner - 0.31.0 + 0.32.0 com.google.api.grpc grpc-google-cloud-cloudcontrolspartner-v1 - 0.31.0 + 0.32.0 com.google.api.grpc grpc-google-cloud-cloudcontrolspartner-v1beta - 0.31.0 + 0.32.0 com.google.api.grpc proto-google-cloud-cloudcontrolspartner-v1beta - 0.31.0 + 0.32.0 com.google.api.grpc proto-google-cloud-cloudcontrolspartner-v1 - 0.31.0 + 0.32.0 diff --git a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/pom.xml b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/pom.xml index 1266e8351633..9c2e6f29d44a 100644 --- a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/pom.xml +++ b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-cloudcontrolspartner - 0.31.0 + 0.32.0 jar Google Cloud Controls Partner API Cloud Controls Partner API Provides insights about your customers and their Assured Workloads based on your Sovereign Controls by Partners offering. com.google.cloud google-cloud-cloudcontrolspartner-parent - 0.31.0 + 0.32.0 google-cloud-cloudcontrolspartner diff --git a/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1/pom.xml b/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1/pom.xml index 04d00d3cc3ad..0e3f60c23ddf 100644 --- a/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1/pom.xml +++ b/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-cloudcontrolspartner-v1 - 0.31.0 + 0.32.0 grpc-google-cloud-cloudcontrolspartner-v1 GRPC library for google-cloud-cloudcontrolspartner com.google.cloud google-cloud-cloudcontrolspartner-parent - 0.31.0 + 0.32.0 diff --git a/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1beta/pom.xml b/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1beta/pom.xml index 1158b25999ba..ddd88ecd4654 100644 --- a/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1beta/pom.xml +++ b/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-cloudcontrolspartner-v1beta - 0.31.0 + 0.32.0 grpc-google-cloud-cloudcontrolspartner-v1beta GRPC library for google-cloud-cloudcontrolspartner com.google.cloud google-cloud-cloudcontrolspartner-parent - 0.31.0 + 0.32.0 diff --git a/java-cloudcontrolspartner/pom.xml b/java-cloudcontrolspartner/pom.xml index 31e37b7dc142..bc12bbd42d25 100644 --- a/java-cloudcontrolspartner/pom.xml +++ b/java-cloudcontrolspartner/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-cloudcontrolspartner-parent pom - 0.31.0 + 0.32.0 Google Cloud Controls Partner API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-cloudcontrolspartner - 0.31.0 + 0.32.0 com.google.api.grpc grpc-google-cloud-cloudcontrolspartner-v1 - 0.31.0 + 0.32.0 com.google.api.grpc grpc-google-cloud-cloudcontrolspartner-v1beta - 0.31.0 + 0.32.0 com.google.api.grpc proto-google-cloud-cloudcontrolspartner-v1beta - 0.31.0 + 0.32.0 com.google.api.grpc proto-google-cloud-cloudcontrolspartner-v1 - 0.31.0 + 0.32.0 diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/pom.xml b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/pom.xml index ea6cb509ec13..1ec7dd272036 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/pom.xml +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-cloudcontrolspartner-v1 - 0.31.0 + 0.32.0 proto-google-cloud-cloudcontrolspartner-v1 Proto library for google-cloud-cloudcontrolspartner com.google.cloud google-cloud-cloudcontrolspartner-parent - 0.31.0 + 0.32.0 diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/pom.xml b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/pom.xml index 0d05737e57a6..183c90ac7dda 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/pom.xml +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-cloudcontrolspartner-v1beta - 0.31.0 + 0.32.0 proto-google-cloud-cloudcontrolspartner-v1beta Proto library for google-cloud-cloudcontrolspartner com.google.cloud google-cloud-cloudcontrolspartner-parent - 0.31.0 + 0.32.0 diff --git a/java-cloudquotas/CHANGELOG.md b/java-cloudquotas/CHANGELOG.md index 8d5fbe575120..55505cd534d2 100644 --- a/java-cloudquotas/CHANGELOG.md +++ b/java-cloudquotas/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.36.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.35.0 (2025-06-25) ### Dependencies diff --git a/java-cloudquotas/README.md b/java-cloudquotas/README.md index bfe1474777a1..6bf12ea38b4c 100644 --- a/java-cloudquotas/README.md +++ b/java-cloudquotas/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudquotas - 0.34.0 + 0.35.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudquotas:0.34.0' +implementation 'com.google.cloud:google-cloud-cloudquotas:0.35.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudquotas" % "0.34.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudquotas" % "0.35.0" ``` ## Authentication @@ -196,7 +196,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.34.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudquotas/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-cloudquotas/google-cloud-cloudquotas-bom/pom.xml b/java-cloudquotas/google-cloud-cloudquotas-bom/pom.xml index 7271421dac13..0f7bd35901c3 100644 --- a/java-cloudquotas/google-cloud-cloudquotas-bom/pom.xml +++ b/java-cloudquotas/google-cloud-cloudquotas-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-cloudquotas-bom - 0.35.0 + 0.36.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-cloudquotas - 0.35.0 + 0.36.0 com.google.api.grpc grpc-google-cloud-cloudquotas-v1 - 0.35.0 + 0.36.0 com.google.api.grpc grpc-google-cloud-cloudquotas-v1beta - 0.35.0 + 0.36.0 com.google.api.grpc proto-google-cloud-cloudquotas-v1 - 0.35.0 + 0.36.0 com.google.api.grpc proto-google-cloud-cloudquotas-v1beta - 0.35.0 + 0.36.0 diff --git a/java-cloudquotas/google-cloud-cloudquotas/pom.xml b/java-cloudquotas/google-cloud-cloudquotas/pom.xml index 7115f5256651..b56485530162 100644 --- a/java-cloudquotas/google-cloud-cloudquotas/pom.xml +++ b/java-cloudquotas/google-cloud-cloudquotas/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-cloudquotas - 0.35.0 + 0.36.0 jar Google Cloud Quotas API Cloud Quotas API Cloud Quotas API provides GCP service consumers with management and @@ -12,7 +12,7 @@ com.google.cloud google-cloud-cloudquotas-parent - 0.35.0 + 0.36.0 google-cloud-cloudquotas diff --git a/java-cloudquotas/grpc-google-cloud-cloudquotas-v1/pom.xml b/java-cloudquotas/grpc-google-cloud-cloudquotas-v1/pom.xml index 7c3c623984fc..9526638558e6 100644 --- a/java-cloudquotas/grpc-google-cloud-cloudquotas-v1/pom.xml +++ b/java-cloudquotas/grpc-google-cloud-cloudquotas-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-cloudquotas-v1 - 0.35.0 + 0.36.0 grpc-google-cloud-cloudquotas-v1 GRPC library for google-cloud-cloudquotas com.google.cloud google-cloud-cloudquotas-parent - 0.35.0 + 0.36.0 diff --git a/java-cloudquotas/grpc-google-cloud-cloudquotas-v1beta/pom.xml b/java-cloudquotas/grpc-google-cloud-cloudquotas-v1beta/pom.xml index a61ed6dcb60f..b34644428ae1 100644 --- a/java-cloudquotas/grpc-google-cloud-cloudquotas-v1beta/pom.xml +++ b/java-cloudquotas/grpc-google-cloud-cloudquotas-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-cloudquotas-v1beta - 0.35.0 + 0.36.0 grpc-google-cloud-cloudquotas-v1beta GRPC library for google-cloud-cloudquotas com.google.cloud google-cloud-cloudquotas-parent - 0.35.0 + 0.36.0 diff --git a/java-cloudquotas/pom.xml b/java-cloudquotas/pom.xml index d064ba1c063c..f64da317b0fa 100644 --- a/java-cloudquotas/pom.xml +++ b/java-cloudquotas/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-cloudquotas-parent pom - 0.35.0 + 0.36.0 Google Cloud Quotas API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-cloudquotas - 0.35.0 + 0.36.0 com.google.api.grpc proto-google-cloud-cloudquotas-v1beta - 0.35.0 + 0.36.0 com.google.api.grpc grpc-google-cloud-cloudquotas-v1beta - 0.35.0 + 0.36.0 com.google.api.grpc grpc-google-cloud-cloudquotas-v1 - 0.35.0 + 0.36.0 com.google.api.grpc proto-google-cloud-cloudquotas-v1 - 0.35.0 + 0.36.0 diff --git a/java-cloudquotas/proto-google-cloud-cloudquotas-v1/pom.xml b/java-cloudquotas/proto-google-cloud-cloudquotas-v1/pom.xml index 405d91ff11d3..1fc05ab3c7ed 100644 --- a/java-cloudquotas/proto-google-cloud-cloudquotas-v1/pom.xml +++ b/java-cloudquotas/proto-google-cloud-cloudquotas-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-cloudquotas-v1 - 0.35.0 + 0.36.0 proto-google-cloud-cloudquotas-v1 Proto library for google-cloud-cloudquotas com.google.cloud google-cloud-cloudquotas-parent - 0.35.0 + 0.36.0 diff --git a/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/pom.xml b/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/pom.xml index d52dafabce19..c24d527b07f0 100644 --- a/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/pom.xml +++ b/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-cloudquotas-v1beta - 0.35.0 + 0.36.0 proto-google-cloud-cloudquotas-v1beta Proto library for google-cloud-cloudquotas com.google.cloud google-cloud-cloudquotas-parent - 0.35.0 + 0.36.0 diff --git a/java-cloudsupport/CHANGELOG.md b/java-cloudsupport/CHANGELOG.md index adf9825b2180..5f91133b3a38 100644 --- a/java-cloudsupport/CHANGELOG.md +++ b/java-cloudsupport/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.52.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.51.0 (2025-06-25) ### Dependencies diff --git a/java-cloudsupport/README.md b/java-cloudsupport/README.md index 04225b815713..b23be308bf0b 100644 --- a/java-cloudsupport/README.md +++ b/java-cloudsupport/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudsupport - 0.50.0 + 0.51.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudsupport:0.50.0' +implementation 'com.google.cloud:google-cloud-cloudsupport:0.51.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudsupport" % "0.50.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudsupport" % "0.51.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-cloudsupport.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudsupport/0.50.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudsupport/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-cloudsupport/google-cloud-cloudsupport-bom/pom.xml b/java-cloudsupport/google-cloud-cloudsupport-bom/pom.xml index 5a2f84df88cf..8aef25e04469 100644 --- a/java-cloudsupport/google-cloud-cloudsupport-bom/pom.xml +++ b/java-cloudsupport/google-cloud-cloudsupport-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-cloudsupport-bom - 0.51.0 + 0.52.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-cloudsupport - 0.51.0 + 0.52.0 com.google.api.grpc grpc-google-cloud-cloudsupport-v2 - 0.51.0 + 0.52.0 com.google.api.grpc grpc-google-cloud-cloudsupport-v2beta - 0.51.0 + 0.52.0 com.google.api.grpc proto-google-cloud-cloudsupport-v2 - 0.51.0 + 0.52.0 com.google.api.grpc proto-google-cloud-cloudsupport-v2beta - 0.51.0 + 0.52.0 diff --git a/java-cloudsupport/google-cloud-cloudsupport/pom.xml b/java-cloudsupport/google-cloud-cloudsupport/pom.xml index c0c2ecbf3918..552e4a064b9a 100644 --- a/java-cloudsupport/google-cloud-cloudsupport/pom.xml +++ b/java-cloudsupport/google-cloud-cloudsupport/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-cloudsupport - 0.51.0 + 0.52.0 jar Google Google Cloud Support API Google Cloud Support API Manages Google Cloud technical support cases for Customer Care support offerings. com.google.cloud google-cloud-cloudsupport-parent - 0.51.0 + 0.52.0 google-cloud-cloudsupport diff --git a/java-cloudsupport/grpc-google-cloud-cloudsupport-v2/pom.xml b/java-cloudsupport/grpc-google-cloud-cloudsupport-v2/pom.xml index a50e27638866..39c02defbc75 100644 --- a/java-cloudsupport/grpc-google-cloud-cloudsupport-v2/pom.xml +++ b/java-cloudsupport/grpc-google-cloud-cloudsupport-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-cloudsupport-v2 - 0.51.0 + 0.52.0 grpc-google-cloud-cloudsupport-v2 GRPC library for google-cloud-cloudsupport com.google.cloud google-cloud-cloudsupport-parent - 0.51.0 + 0.52.0 diff --git a/java-cloudsupport/grpc-google-cloud-cloudsupport-v2beta/pom.xml b/java-cloudsupport/grpc-google-cloud-cloudsupport-v2beta/pom.xml index f2af14741cdc..35be825b9da0 100644 --- a/java-cloudsupport/grpc-google-cloud-cloudsupport-v2beta/pom.xml +++ b/java-cloudsupport/grpc-google-cloud-cloudsupport-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-cloudsupport-v2beta - 0.51.0 + 0.52.0 grpc-google-cloud-cloudsupport-v2beta GRPC library for google-cloud-cloudsupport com.google.cloud google-cloud-cloudsupport-parent - 0.51.0 + 0.52.0 diff --git a/java-cloudsupport/pom.xml b/java-cloudsupport/pom.xml index 4cd8e7bcabdd..c6dfde7a02ee 100644 --- a/java-cloudsupport/pom.xml +++ b/java-cloudsupport/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-cloudsupport-parent pom - 0.51.0 + 0.52.0 Google Google Cloud Support API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-cloudsupport - 0.51.0 + 0.52.0 com.google.api.grpc proto-google-cloud-cloudsupport-v2beta - 0.51.0 + 0.52.0 com.google.api.grpc grpc-google-cloud-cloudsupport-v2beta - 0.51.0 + 0.52.0 com.google.api.grpc grpc-google-cloud-cloudsupport-v2 - 0.51.0 + 0.52.0 com.google.api.grpc proto-google-cloud-cloudsupport-v2 - 0.51.0 + 0.52.0 diff --git a/java-cloudsupport/proto-google-cloud-cloudsupport-v2/pom.xml b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/pom.xml index fe82d899ab0f..66b5f39b7c5e 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2/pom.xml +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-cloudsupport-v2 - 0.51.0 + 0.52.0 proto-google-cloud-cloudsupport-v2 Proto library for google-cloud-cloudsupport com.google.cloud google-cloud-cloudsupport-parent - 0.51.0 + 0.52.0 diff --git a/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/pom.xml b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/pom.xml index 44d4068095f2..2c26c12e4edf 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/pom.xml +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-cloudsupport-v2beta - 0.51.0 + 0.52.0 proto-google-cloud-cloudsupport-v2beta Proto library for google-cloud-cloudsupport com.google.cloud google-cloud-cloudsupport-parent - 0.51.0 + 0.52.0 diff --git a/java-compute/CHANGELOG.md b/java-compute/CHANGELOG.md index 0919a196f963..e66ebc9c6a88 100644 --- a/java-compute/CHANGELOG.md +++ b/java-compute/CHANGELOG.md @@ -1,5 +1,16 @@ # Changelog +## 1.78.0 (2025-07-11) + +### Features + +* Update Compute Engine v1 API to revision 20250626 ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 1.77.0 (2025-06-25) ### Dependencies diff --git a/java-compute/README.md b/java-compute/README.md index 7f5898ea974a..b51e53ccd243 100644 --- a/java-compute/README.md +++ b/java-compute/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-compute - 1.76.0 + 1.77.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-compute:1.76.0' +implementation 'com.google.cloud:google-cloud-compute:1.77.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-compute" % "1.76.0" +libraryDependencies += "com.google.cloud" % "google-cloud-compute" % "1.77.0" ``` ## Authentication @@ -257,7 +257,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.76.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-compute/1.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-compute/google-cloud-compute-bom/pom.xml b/java-compute/google-cloud-compute-bom/pom.xml index f6005066a8df..32530a0769a3 100644 --- a/java-compute/google-cloud-compute-bom/pom.xml +++ b/java-compute/google-cloud-compute-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-compute-bom - 1.77.0 + 1.78.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -23,12 +23,12 @@ com.google.cloud google-cloud-compute - 1.77.0 + 1.78.0 com.google.api.grpc proto-google-cloud-compute-v1 - 1.77.0 + 1.78.0 diff --git a/java-compute/google-cloud-compute/pom.xml b/java-compute/google-cloud-compute/pom.xml index d15767288343..99155bbd6bba 100644 --- a/java-compute/google-cloud-compute/pom.xml +++ b/java-compute/google-cloud-compute/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-compute - 1.77.0 + 1.78.0 jar Google Compute Engine Compute Engine delivers configurable virtual machines running in @@ -12,7 +12,7 @@ com.google.cloud google-cloud-compute-parent - 1.77.0 + 1.78.0 google-cloud-compute diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ReservationSubBlocksClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ReservationSubBlocksClient.java index 73b406634dd7..4ce849b91665 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ReservationSubBlocksClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ReservationSubBlocksClient.java @@ -19,9 +19,11 @@ import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.gax.core.BackgroundResource; +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.cloud.compute.v1.stub.ReservationSubBlocksStub; @@ -104,6 +106,25 @@ * * * + * + *

PerformMaintenance + *

Allows customers to perform maintenance on a reservation subBlock + * + *

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

+ *
    + *
  • performMaintenanceAsync(PerformMaintenanceReservationSubBlockRequest request) + *

+ *

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

+ *
    + *
  • performMaintenanceAsync(String project, String zone, String parentName, String reservationSubBlock) + *

+ *

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

+ *
    + *
  • performMaintenanceOperationCallable() + *

  • performMaintenanceCallable() + *

+ * + * * * *

See the individual methods for example code. @@ -468,6 +489,153 @@ public final ListPagedResponse list(ListReservationSubBlocksRequest request) { return stub.listCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Allows customers to perform maintenance on a reservation subBlock + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ReservationSubBlocksClient reservationSubBlocksClient =
+   *     ReservationSubBlocksClient.create()) {
+   *   String project = "project-309310695";
+   *   String zone = "zone3744684";
+   *   String parentName = "parentName-244870571";
+   *   String reservationSubBlock = "reservationSubBlock-1816847847";
+   *   Operation response =
+   *       reservationSubBlocksClient
+   *           .performMaintenanceAsync(project, zone, parentName, reservationSubBlock)
+   *           .get();
+   * }
+   * }
+ * + * @param project Project ID for this request. + * @param zone Name of the zone for this request. Zone name should conform to RFC1035. + * @param parentName The name of the parent reservation and parent block. In the format of + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + * @param reservationSubBlock The name of the reservation subBlock. Name should conform to RFC1035 + * or be a resource ID. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture performMaintenanceAsync( + String project, String zone, String parentName, String reservationSubBlock) { + PerformMaintenanceReservationSubBlockRequest request = + PerformMaintenanceReservationSubBlockRequest.newBuilder() + .setProject(project) + .setZone(zone) + .setParentName(parentName) + .setReservationSubBlock(reservationSubBlock) + .build(); + return performMaintenanceAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Allows customers to perform maintenance on a reservation subBlock + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ReservationSubBlocksClient reservationSubBlocksClient =
+   *     ReservationSubBlocksClient.create()) {
+   *   PerformMaintenanceReservationSubBlockRequest request =
+   *       PerformMaintenanceReservationSubBlockRequest.newBuilder()
+   *           .setParentName("parentName-244870571")
+   *           .setProject("project-309310695")
+   *           .setRequestId("requestId693933066")
+   *           .setReservationSubBlock("reservationSubBlock-1816847847")
+   *           .setZone("zone3744684")
+   *           .build();
+   *   Operation response = reservationSubBlocksClient.performMaintenanceAsync(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 performMaintenanceAsync( + PerformMaintenanceReservationSubBlockRequest request) { + return performMaintenanceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Allows customers to perform maintenance on a reservation subBlock + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ReservationSubBlocksClient reservationSubBlocksClient =
+   *     ReservationSubBlocksClient.create()) {
+   *   PerformMaintenanceReservationSubBlockRequest request =
+   *       PerformMaintenanceReservationSubBlockRequest.newBuilder()
+   *           .setParentName("parentName-244870571")
+   *           .setProject("project-309310695")
+   *           .setRequestId("requestId693933066")
+   *           .setReservationSubBlock("reservationSubBlock-1816847847")
+   *           .setZone("zone3744684")
+   *           .build();
+   *   OperationFuture future =
+   *       reservationSubBlocksClient.performMaintenanceOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + performMaintenanceOperationCallable() { + return stub.performMaintenanceOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Allows customers to perform maintenance on a reservation subBlock + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ReservationSubBlocksClient reservationSubBlocksClient =
+   *     ReservationSubBlocksClient.create()) {
+   *   PerformMaintenanceReservationSubBlockRequest request =
+   *       PerformMaintenanceReservationSubBlockRequest.newBuilder()
+   *           .setParentName("parentName-244870571")
+   *           .setProject("project-309310695")
+   *           .setRequestId("requestId693933066")
+   *           .setReservationSubBlock("reservationSubBlock-1816847847")
+   *           .setZone("zone3744684")
+   *           .build();
+   *   ApiFuture future =
+   *       reservationSubBlocksClient.performMaintenanceCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + performMaintenanceCallable() { + return stub.performMaintenanceCallable(); + } + @Override public final void close() { stub.close(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ReservationSubBlocksSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ReservationSubBlocksSettings.java index 9730bfe2f7da..95856f632a10 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ReservationSubBlocksSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ReservationSubBlocksSettings.java @@ -25,6 +25,7 @@ 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; @@ -83,6 +84,32 @@ * Please refer to the [Client Side Retry * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) 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 performMaintenance: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ReservationSubBlocksSettings.Builder reservationSubBlocksSettingsBuilder =
+ *     ReservationSubBlocksSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * reservationSubBlocksSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
*/ @Generated("by gapic-generator-java") public class ReservationSubBlocksSettings extends ClientSettings { @@ -100,6 +127,19 @@ public class ReservationSubBlocksSettings extends ClientSettings + performMaintenanceSettings() { + return ((ReservationSubBlocksStubSettings) getStubSettings()).performMaintenanceSettings(); + } + + /** Returns the object with the settings used for calls to performMaintenance. */ + public OperationCallSettings + performMaintenanceOperationSettings() { + return ((ReservationSubBlocksStubSettings) getStubSettings()) + .performMaintenanceOperationSettings(); + } + public static final ReservationSubBlocksSettings create(ReservationSubBlocksStubSettings stub) throws IOException { return new ReservationSubBlocksSettings.Builder(stub.toBuilder()).build(); @@ -211,6 +251,19 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().listSettings(); } + /** Returns the builder for the settings used for calls to performMaintenance. */ + public UnaryCallSettings.Builder + performMaintenanceSettings() { + return getStubSettingsBuilder().performMaintenanceSettings(); + } + + /** Returns the builder for the settings used for calls to performMaintenance. */ + public OperationCallSettings.Builder< + PerformMaintenanceReservationSubBlockRequest, Operation, Operation> + performMaintenanceOperationSettings() { + return getStubSettingsBuilder().performMaintenanceOperationSettings(); + } + @Override public ReservationSubBlocksSettings build() throws IOException { return new ReservationSubBlocksSettings(this); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/gapic_metadata.json b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/gapic_metadata.json index a055e05db88f..d6694f530896 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/gapic_metadata.json +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/gapic_metadata.json @@ -2544,6 +2544,9 @@ }, "List": { "methods": ["list", "list", "listPagedCallable", "listCallable"] + }, + "PerformMaintenance": { + "methods": ["performMaintenanceAsync", "performMaintenanceAsync", "performMaintenanceOperationCallable", "performMaintenanceCallable"] } } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonReservationSubBlocksCallableFactory.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonReservationSubBlocksCallableFactory.java index 7def8c7c0b76..507b47e2818e 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonReservationSubBlocksCallableFactory.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonReservationSubBlocksCallableFactory.java @@ -20,7 +20,6 @@ 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; @@ -30,7 +29,7 @@ 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 com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; // AUTO-GENERATED DOCUMENTATION AND CLASS. @@ -41,7 +40,7 @@ */ @Generated("by gapic-generator-java") public class HttpJsonReservationSubBlocksCallableFactory - implements HttpJsonStubCallableFactory { + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( @@ -77,7 +76,7 @@ OperationCallable createOperationCallable( HttpJsonCallSettings httpJsonCallSettings, OperationCallSettings callSettings, ClientContext clientContext, - OperationsStub operationsStub) { + ZoneOperationsStub operationsStub) { UnaryCallable innerCallable = HttpJsonCallableFactory.createBaseUnaryCallable( httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonReservationSubBlocksStub.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonReservationSubBlocksStub.java index a3a854d823a4..b21b7b95ee17 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonReservationSubBlocksStub.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonReservationSubBlocksStub.java @@ -23,15 +23,20 @@ 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.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.cloud.compute.v1.GetReservationSubBlockRequest; import com.google.cloud.compute.v1.ListReservationSubBlocksRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.Operation.Status; +import com.google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest; import com.google.cloud.compute.v1.ReservationSubBlocksGetResponse; import com.google.cloud.compute.v1.ReservationSubBlocksListResponse; import com.google.protobuf.TypeRegistry; @@ -51,7 +56,8 @@ */ @Generated("by gapic-generator-java") public class HttpJsonReservationSubBlocksStub extends ReservationSubBlocksStub { - private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder().add(Operation.getDescriptor()).build(); private static final ApiMethodDescriptor< GetReservationSubBlockRequest, ReservationSubBlocksGetResponse> @@ -148,13 +154,73 @@ public class HttpJsonReservationSubBlocksStub extends ReservationSubBlocksStub { .build()) .build(); + private static final ApiMethodDescriptor + performMaintenanceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.compute.v1.ReservationSubBlocks/PerformMaintenance") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/compute/v1/projects/{project}/zones/{zone}/{parentName}/reservationSubBlocks/{reservationSubBlock}/performMaintenance", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parentName", request.getParentName()); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam( + fields, "reservationSubBlock", request.getReservationSubBlock()); + serializer.putPathParam(fields, "zone", request.getZone()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + if (request.hasRequestId()) { + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + } + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (PerformMaintenanceReservationSubBlockRequest request, Operation response) -> { + StringBuilder opName = new StringBuilder(response.getName()); + opName.append(":").append(request.getProject()); + opName.append(":").append(request.getZone()); + return HttpJsonOperationSnapshot.newBuilder() + .setName(opName.toString()) + .setMetadata(response) + .setDone(Status.DONE.equals(response.getStatus())) + .setResponse(response) + .setError(response.getHttpErrorStatusCode(), response.getHttpErrorMessage()) + .build(); + }) + .build(); + private final UnaryCallable getCallable; private final UnaryCallable listCallable; private final UnaryCallable listPagedCallable; + private final UnaryCallable + performMaintenanceCallable; + private final OperationCallable< + PerformMaintenanceReservationSubBlockRequest, Operation, Operation> + performMaintenanceOperationCallable; private final BackgroundResource backgroundResources; + private final HttpJsonZoneOperationsStub httpJsonOperationsStub; private final HttpJsonStubCallableFactory callableFactory; public static final HttpJsonReservationSubBlocksStub create( @@ -195,6 +261,7 @@ protected HttpJsonReservationSubBlocksStub( HttpJsonStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; + this.httpJsonOperationsStub = HttpJsonZoneOperationsStub.create(clientContext, callableFactory); HttpJsonCallSettings getTransportSettings = @@ -229,6 +296,24 @@ protected HttpJsonReservationSubBlocksStub( return builder.build(); }) .build(); + HttpJsonCallSettings + performMaintenanceTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(performMaintenanceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent_name", String.valueOf(request.getParentName())); + builder.add("project", String.valueOf(request.getProject())); + builder.add( + "reservation_sub_block", + String.valueOf(request.getReservationSubBlock())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); this.getCallable = callableFactory.createUnaryCallable( @@ -239,6 +324,17 @@ protected HttpJsonReservationSubBlocksStub( this.listPagedCallable = callableFactory.createPagedCallable( listTransportSettings, settings.listSettings(), clientContext); + this.performMaintenanceCallable = + callableFactory.createUnaryCallable( + performMaintenanceTransportSettings, + settings.performMaintenanceSettings(), + clientContext); + this.performMaintenanceOperationCallable = + callableFactory.createOperationCallable( + performMaintenanceTransportSettings, + settings.performMaintenanceOperationSettings(), + clientContext, + httpJsonOperationsStub); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -249,6 +345,7 @@ public static List getMethodDescriptors() { List methodDescriptors = new ArrayList<>(); methodDescriptors.add(getMethodDescriptor); methodDescriptors.add(listMethodDescriptor); + methodDescriptors.add(performMaintenanceMethodDescriptor); return methodDescriptors; } @@ -269,6 +366,18 @@ public UnaryCallable listPag return listPagedCallable; } + @Override + public UnaryCallable + performMaintenanceCallable() { + return performMaintenanceCallable; + } + + @Override + public OperationCallable + performMaintenanceOperationCallable() { + return performMaintenanceOperationCallable; + } + @Override public final void close() { try { diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ReservationSubBlocksStub.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ReservationSubBlocksStub.java index 3928f6512de6..098824f9fd85 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ReservationSubBlocksStub.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ReservationSubBlocksStub.java @@ -19,9 +19,12 @@ import static com.google.cloud.compute.v1.ReservationSubBlocksClient.ListPagedResponse; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.GetReservationSubBlockRequest; import com.google.cloud.compute.v1.ListReservationSubBlocksRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest; import com.google.cloud.compute.v1.ReservationSubBlocksGetResponse; import com.google.cloud.compute.v1.ReservationSubBlocksListResponse; import javax.annotation.Generated; @@ -49,6 +52,17 @@ public UnaryCallable listPag throw new UnsupportedOperationException("Not implemented: listCallable()"); } + public OperationCallable + performMaintenanceOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: performMaintenanceOperationCallable()"); + } + + public UnaryCallable + performMaintenanceCallable() { + throw new UnsupportedOperationException("Not implemented: performMaintenanceCallable()"); + } + @Override public abstract void close(); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ReservationSubBlocksStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ReservationSubBlocksStubSettings.java index f01dee959dae..caf86fee842a 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ReservationSubBlocksStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ReservationSubBlocksStubSettings.java @@ -27,10 +27,14 @@ 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.httpjson.ProtoOperationTransformers; +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.OperationCallSettings; import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.PagedListDescriptor; @@ -42,6 +46,8 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.GetReservationSubBlockRequest; import com.google.cloud.compute.v1.ListReservationSubBlocksRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest; import com.google.cloud.compute.v1.ReservationSubBlock; import com.google.cloud.compute.v1.ReservationSubBlocksGetResponse; import com.google.cloud.compute.v1.ReservationSubBlocksListResponse; @@ -104,6 +110,32 @@ * Please refer to the [Client Side Retry * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) 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 performMaintenance: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ReservationSubBlocksStubSettings.Builder reservationSubBlocksSettingsBuilder =
+ *     ReservationSubBlocksStubSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * reservationSubBlocksSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
*/ @Generated("by gapic-generator-java") public class ReservationSubBlocksStubSettings @@ -111,7 +143,6 @@ public class ReservationSubBlocksStubSettings /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = ImmutableList.builder() - .add("https://www.googleapis.com/auth/compute.readonly") .add("https://www.googleapis.com/auth/compute") .add("https://www.googleapis.com/auth/cloud-platform") .build(); @@ -121,6 +152,11 @@ public class ReservationSubBlocksStubSettings private final PagedCallSettings< ListReservationSubBlocksRequest, ReservationSubBlocksListResponse, ListPagedResponse> listSettings; + private final UnaryCallSettings + performMaintenanceSettings; + private final OperationCallSettings< + PerformMaintenanceReservationSubBlockRequest, Operation, Operation> + performMaintenanceOperationSettings; private static final PagedListDescriptor< ListReservationSubBlocksRequest, ReservationSubBlocksListResponse, ReservationSubBlock> @@ -203,6 +239,18 @@ public ApiFuture getFuturePagedResponse( return listSettings; } + /** Returns the object with the settings used for calls to performMaintenance. */ + public UnaryCallSettings + performMaintenanceSettings() { + return performMaintenanceSettings; + } + + /** Returns the object with the settings used for calls to performMaintenance. */ + public OperationCallSettings + performMaintenanceOperationSettings() { + return performMaintenanceOperationSettings; + } + public ReservationSubBlocksStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() @@ -287,6 +335,9 @@ protected ReservationSubBlocksStubSettings(Builder settingsBuilder) throws IOExc getSettings = settingsBuilder.getSettings().build(); listSettings = settingsBuilder.listSettings().build(); + performMaintenanceSettings = settingsBuilder.performMaintenanceSettings().build(); + performMaintenanceOperationSettings = + settingsBuilder.performMaintenanceOperationSettings().build(); } /** Builder for ReservationSubBlocksStubSettings. */ @@ -299,6 +350,11 @@ public static class Builder private final PagedCallSettings.Builder< ListReservationSubBlocksRequest, ReservationSubBlocksListResponse, ListPagedResponse> listSettings; + private final UnaryCallSettings.Builder + performMaintenanceSettings; + private final OperationCallSettings.Builder< + PerformMaintenanceReservationSubBlockRequest, Operation, Operation> + performMaintenanceOperationSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -310,6 +366,8 @@ public static class Builder ImmutableSet.copyOf( Lists.newArrayList( StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + definitions.put( + "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -329,6 +387,14 @@ public static class Builder .setTotalTimeoutDuration(Duration.ofMillis(600000L)) .build(); definitions.put("retry_policy_0_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeoutDuration(Duration.ofMillis(600000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(600000L)) + .setTotalTimeoutDuration(Duration.ofMillis(600000L)) + .build(); + definitions.put("no_retry_1_params", settings); RETRY_PARAM_DEFINITIONS = definitions.build(); } @@ -341,9 +407,12 @@ protected Builder(ClientContext clientContext) { getSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listSettings = PagedCallSettings.newBuilder(LIST_PAGE_STR_FACT); + performMaintenanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + performMaintenanceOperationSettings = OperationCallSettings.newBuilder(); unaryMethodSettingsBuilders = - ImmutableList.>of(getSettings, listSettings); + ImmutableList.>of( + getSettings, listSettings, performMaintenanceSettings); initDefaults(this); } @@ -352,9 +421,13 @@ protected Builder(ReservationSubBlocksStubSettings settings) { getSettings = settings.getSettings.toBuilder(); listSettings = settings.listSettings.toBuilder(); + performMaintenanceSettings = settings.performMaintenanceSettings.toBuilder(); + performMaintenanceOperationSettings = + settings.performMaintenanceOperationSettings.toBuilder(); unaryMethodSettingsBuilders = - ImmutableList.>of(getSettings, listSettings); + ImmutableList.>of( + getSettings, listSettings, performMaintenanceSettings); } private static Builder createDefault() { @@ -380,6 +453,36 @@ 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 + .performMaintenanceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .performMaintenanceOperationSettings() + .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(Operation.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(Operation.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(20000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(600000L)) + .build())); + return builder; } @@ -411,6 +514,19 @@ public Builder applyToAllUnaryMethods( return listSettings; } + /** Returns the builder for the settings used for calls to performMaintenance. */ + public UnaryCallSettings.Builder + performMaintenanceSettings() { + return performMaintenanceSettings; + } + + /** Returns the builder for the settings used for calls to performMaintenance. */ + public OperationCallSettings.Builder< + PerformMaintenanceReservationSubBlockRequest, Operation, Operation> + performMaintenanceOperationSettings() { + return performMaintenanceOperationSettings; + } + @Override public ReservationSubBlocksStubSettings build() throws IOException { return new ReservationSubBlocksStubSettings(this); diff --git a/java-compute/google-cloud-compute/src/main/resources/META-INF/native-image/com.google.cloud.compute.v1/reflect-config.json b/java-compute/google-cloud-compute/src/main/resources/META-INF/native-image/com.google.cloud.compute.v1/reflect-config.json index 92d0066cb1c2..8bd65775d02c 100644 --- a/java-compute/google-cloud-compute/src/main/resources/META-INF/native-image/com.google.cloud.compute.v1/reflect-config.json +++ b/java-compute/google-cloud-compute/src/main/resources/META-INF/native-image/com.google.cloud.compute.v1/reflect-config.json @@ -3410,6 +3410,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.BackendServiceTlsSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.BackendServiceTlsSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.BackendServiceUsedBy", "queryAllDeclaredConstructors": true, @@ -22211,6 +22247,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.Policy", "queryAllDeclaredConstructors": true, diff --git a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/BackendServicesClientTest.java b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/BackendServicesClientTest.java index df2525521418..e2a658a7fda9 100644 --- a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/BackendServicesClientTest.java +++ b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/BackendServicesClientTest.java @@ -410,6 +410,7 @@ public void getTest() throws Exception { .setStrongSessionAffinityCookie(BackendServiceHttpCookie.newBuilder().build()) .setSubsetting(Subsetting.newBuilder().build()) .setTimeoutSec(-2067488653) + .setTlsSettings(BackendServiceTlsSettings.newBuilder().build()) .addAllUsedBy(new ArrayList()) .build(); mockService.addResponse(expectedResponse); diff --git a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionBackendServicesClientTest.java b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionBackendServicesClientTest.java index 7aa020952232..01956639c1b1 100644 --- a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionBackendServicesClientTest.java +++ b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionBackendServicesClientTest.java @@ -207,6 +207,7 @@ public void getTest() throws Exception { .setStrongSessionAffinityCookie(BackendServiceHttpCookie.newBuilder().build()) .setSubsetting(Subsetting.newBuilder().build()) .setTimeoutSec(-2067488653) + .setTlsSettings(BackendServiceTlsSettings.newBuilder().build()) .addAllUsedBy(new ArrayList()) .build(); mockService.addResponse(expectedResponse); diff --git a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ReservationSubBlocksClientTest.java b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ReservationSubBlocksClientTest.java index 529ee8d23c0e..455ce1ca8d35 100644 --- a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ReservationSubBlocksClientTest.java +++ b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ReservationSubBlocksClientTest.java @@ -27,11 +27,14 @@ 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.cloud.compute.v1.Operation.Status; import com.google.cloud.compute.v1.stub.HttpJsonReservationSubBlocksStub; import com.google.common.collect.Lists; import java.io.IOException; +import java.util.ArrayList; import java.util.Arrays; import java.util.List; +import java.util.concurrent.ExecutionException; import javax.annotation.Generated; import org.junit.After; import org.junit.AfterClass; @@ -179,4 +182,81 @@ public void listExceptionTest() throws Exception { // Expected exception. } } + + @Test + public void performMaintenanceTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setClientOperationId("clientOperationId-1230366697") + .setCreationTimestamp("creationTimestamp-370203401") + .setDescription("description-1724546052") + .setEndTime("endTime-1607243192") + .setError(Error.newBuilder().build()) + .setHttpErrorMessage("httpErrorMessage1577303431") + .setHttpErrorStatusCode(0) + .setId(3355) + .setInsertTime("insertTime966165798") + .setInstancesBulkInsertOperationMetadata( + InstancesBulkInsertOperationMetadata.newBuilder().build()) + .setKind("kind3292052") + .setName("name3373707") + .setOperationGroupId("operationGroupId1716161683") + .setOperationType("operationType91999553") + .setProgress(-1001078227) + .setRegion("region-934795532") + .setSelfLink("selfLink1191800166") + .setSetCommonInstanceMetadataOperationMetadata( + SetCommonInstanceMetadataOperationMetadata.newBuilder().build()) + .setStartTime("startTime-2129294769") + .setStatus(Status.DONE) + .setStatusMessage("statusMessage-958704715") + .setTargetId(-815576439) + .setTargetLink("targetLink486368555") + .setUser("user3599307") + .addAllWarnings(new ArrayList()) + .setZone("zone3744684") + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String zone = "zone-5246"; + String parentName = "parentName-6933"; + String reservationSubBlock = "reservationSubBlock-8367"; + + Operation actualResponse = + client.performMaintenanceAsync(project, zone, parentName, reservationSubBlock).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 performMaintenanceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String zone = "zone-5246"; + String parentName = "parentName-6933"; + String reservationSubBlock = "reservationSubBlock-8367"; + client.performMaintenanceAsync(project, zone, parentName, reservationSubBlock).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } } diff --git a/java-compute/pom.xml b/java-compute/pom.xml index 6641cf3e1aeb..553e805476b4 100644 --- a/java-compute/pom.xml +++ b/java-compute/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-compute-parent pom - 1.77.0 + 1.78.0 Google Compute Engine Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,12 +29,12 @@ com.google.cloud google-cloud-compute - 1.77.0 + 1.78.0 com.google.api.grpc proto-google-cloud-compute-v1 - 1.77.0 + 1.78.0
diff --git a/java-compute/proto-google-cloud-compute-v1/pom.xml b/java-compute/proto-google-cloud-compute-v1/pom.xml index c57d8f232dc5..19ad3dd9081b 100644 --- a/java-compute/proto-google-cloud-compute-v1/pom.xml +++ b/java-compute/proto-google-cloud-compute-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-compute-v1 - 1.77.0 + 1.78.0 proto-google-cloud-compute-v1 Proto library for google-cloud-compute com.google.cloud google-cloud-compute-parent - 1.77.0 + 1.78.0 diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendService.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendService.java index 7a1871cce3a2..1730773057fd 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendService.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendService.java @@ -4690,6 +4690,62 @@ public int getTimeoutSec() { return timeoutSec_; } + public static final int TLS_SETTINGS_FIELD_NUMBER = 81794791; + private com.google.cloud.compute.v1.BackendServiceTlsSettings tlsSettings_; + + /** + * + * + *
+   * Configuration for Backend Authenticated TLS and mTLS. May only be specified when the backend protocol is SSL, HTTPS or HTTP2.
+   * 
+ * + * optional .google.cloud.compute.v1.BackendServiceTlsSettings tls_settings = 81794791; + * + * + * @return Whether the tlsSettings field is set. + */ + @java.lang.Override + public boolean hasTlsSettings() { + return ((bitField1_ & 0x00000080) != 0); + } + + /** + * + * + *
+   * Configuration for Backend Authenticated TLS and mTLS. May only be specified when the backend protocol is SSL, HTTPS or HTTP2.
+   * 
+ * + * optional .google.cloud.compute.v1.BackendServiceTlsSettings tls_settings = 81794791; + * + * + * @return The tlsSettings. + */ + @java.lang.Override + public com.google.cloud.compute.v1.BackendServiceTlsSettings getTlsSettings() { + return tlsSettings_ == null + ? com.google.cloud.compute.v1.BackendServiceTlsSettings.getDefaultInstance() + : tlsSettings_; + } + + /** + * + * + *
+   * Configuration for Backend Authenticated TLS and mTLS. May only be specified when the backend protocol is SSL, HTTPS or HTTP2.
+   * 
+ * + * optional .google.cloud.compute.v1.BackendServiceTlsSettings tls_settings = 81794791; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.BackendServiceTlsSettingsOrBuilder getTlsSettingsOrBuilder() { + return tlsSettings_ == null + ? com.google.cloud.compute.v1.BackendServiceTlsSettings.getDefaultInstance() + : tlsSettings_; + } + public static final int USED_BY_FIELD_NUMBER = 389320729; @SuppressWarnings("serial") @@ -4827,6 +4883,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField1_ & 0x00000040) != 0)) { output.writeInt32(79994995, timeoutSec_); } + if (((bitField1_ & 0x00000080) != 0)) { + output.writeMessage(81794791, getTlsSettings()); + } if (((bitField0_ & 0x20000000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 84577944, protocol_); } @@ -5003,6 +5062,9 @@ public int getSerializedSize() { if (((bitField1_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(79994995, timeoutSec_); } + if (((bitField1_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(81794791, getTlsSettings()); + } if (((bitField0_ & 0x20000000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(84577944, protocol_); } @@ -5324,6 +5386,10 @@ public boolean equals(final java.lang.Object obj) { if (hasTimeoutSec()) { if (getTimeoutSec() != other.getTimeoutSec()) return false; } + if (hasTlsSettings() != other.hasTlsSettings()) return false; + if (hasTlsSettings()) { + if (!getTlsSettings().equals(other.getTlsSettings())) return false; + } if (!getUsedByList().equals(other.getUsedByList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -5526,6 +5592,10 @@ public int hashCode() { hash = (37 * hash) + TIMEOUT_SEC_FIELD_NUMBER; hash = (53 * hash) + getTimeoutSec(); } + if (hasTlsSettings()) { + hash = (37 * hash) + TLS_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getTlsSettings().hashCode(); + } if (getUsedByCount() > 0) { hash = (37 * hash) + USED_BY_FIELD_NUMBER; hash = (53 * hash) + getUsedByList().hashCode(); @@ -5710,6 +5780,7 @@ private void maybeForceBuilderInitialization() { getSecuritySettingsFieldBuilder(); getStrongSessionAffinityCookieFieldBuilder(); getSubsettingFieldBuilder(); + getTlsSettingsFieldBuilder(); getUsedByFieldBuilder(); } } @@ -5840,13 +5911,18 @@ public Builder clear() { subsettingBuilder_ = null; } timeoutSec_ = 0; + tlsSettings_ = null; + if (tlsSettingsBuilder_ != null) { + tlsSettingsBuilder_.dispose(); + tlsSettingsBuilder_ = null; + } if (usedByBuilder_ == null) { usedBy_ = java.util.Collections.emptyList(); } else { usedBy_ = null; usedByBuilder_.clear(); } - bitField1_ = (bitField1_ & ~0x00008000); + bitField1_ = (bitField1_ & ~0x00010000); return this; } @@ -5914,9 +5990,9 @@ private void buildPartialRepeatedFields(com.google.cloud.compute.v1.BackendServi result.localityLbPolicies_ = localityLbPoliciesBuilder_.build(); } if (usedByBuilder_ == null) { - if (((bitField1_ & 0x00008000) != 0)) { + if (((bitField1_ & 0x00010000) != 0)) { usedBy_ = java.util.Collections.unmodifiableList(usedBy_); - bitField1_ = (bitField1_ & ~0x00008000); + bitField1_ = (bitField1_ & ~0x00010000); } result.usedBy_ = usedBy_; } else { @@ -6128,6 +6204,11 @@ private void buildPartial1(com.google.cloud.compute.v1.BackendService result) { result.timeoutSec_ = timeoutSec_; to_bitField1_ |= 0x00000040; } + if (((from_bitField1_ & 0x00008000) != 0)) { + result.tlsSettings_ = + tlsSettingsBuilder_ == null ? tlsSettings_ : tlsSettingsBuilder_.build(); + to_bitField1_ |= 0x00000080; + } result.bitField0_ |= to_bitField0_; result.bitField1_ |= to_bitField1_; } @@ -6456,11 +6537,14 @@ public Builder mergeFrom(com.google.cloud.compute.v1.BackendService other) { if (other.hasTimeoutSec()) { setTimeoutSec(other.getTimeoutSec()); } + if (other.hasTlsSettings()) { + mergeTlsSettings(other.getTlsSettings()); + } if (usedByBuilder_ == null) { if (!other.usedBy_.isEmpty()) { if (usedBy_.isEmpty()) { usedBy_ = other.usedBy_; - bitField1_ = (bitField1_ & ~0x00008000); + bitField1_ = (bitField1_ & ~0x00010000); } else { ensureUsedByIsMutable(); usedBy_.addAll(other.usedBy_); @@ -6473,7 +6557,7 @@ public Builder mergeFrom(com.google.cloud.compute.v1.BackendService other) { usedByBuilder_.dispose(); usedByBuilder_ = null; usedBy_ = other.usedBy_; - bitField1_ = (bitField1_ & ~0x00008000); + bitField1_ = (bitField1_ & ~0x00010000); usedByBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getUsedByFieldBuilder() @@ -6607,6 +6691,12 @@ public Builder mergeFrom( bitField1_ |= 0x00004000; break; } // case 639959960 + case 654358330: + { + input.readMessage(getTlsSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField1_ |= 0x00008000; + break; + } // case 654358330 case 676623554: { protocol_ = input.readStringRequireUtf8(); @@ -14688,14 +14778,220 @@ public Builder clearTimeoutSec() { return this; } + private com.google.cloud.compute.v1.BackendServiceTlsSettings tlsSettings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.compute.v1.BackendServiceTlsSettings, + com.google.cloud.compute.v1.BackendServiceTlsSettings.Builder, + com.google.cloud.compute.v1.BackendServiceTlsSettingsOrBuilder> + tlsSettingsBuilder_; + + /** + * + * + *
+     * Configuration for Backend Authenticated TLS and mTLS. May only be specified when the backend protocol is SSL, HTTPS or HTTP2.
+     * 
+ * + * optional .google.cloud.compute.v1.BackendServiceTlsSettings tls_settings = 81794791; + * + * + * @return Whether the tlsSettings field is set. + */ + public boolean hasTlsSettings() { + return ((bitField1_ & 0x00008000) != 0); + } + + /** + * + * + *
+     * Configuration for Backend Authenticated TLS and mTLS. May only be specified when the backend protocol is SSL, HTTPS or HTTP2.
+     * 
+ * + * optional .google.cloud.compute.v1.BackendServiceTlsSettings tls_settings = 81794791; + * + * + * @return The tlsSettings. + */ + public com.google.cloud.compute.v1.BackendServiceTlsSettings getTlsSettings() { + if (tlsSettingsBuilder_ == null) { + return tlsSettings_ == null + ? com.google.cloud.compute.v1.BackendServiceTlsSettings.getDefaultInstance() + : tlsSettings_; + } else { + return tlsSettingsBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Configuration for Backend Authenticated TLS and mTLS. May only be specified when the backend protocol is SSL, HTTPS or HTTP2.
+     * 
+ * + * optional .google.cloud.compute.v1.BackendServiceTlsSettings tls_settings = 81794791; + * + */ + public Builder setTlsSettings(com.google.cloud.compute.v1.BackendServiceTlsSettings value) { + if (tlsSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tlsSettings_ = value; + } else { + tlsSettingsBuilder_.setMessage(value); + } + bitField1_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Configuration for Backend Authenticated TLS and mTLS. May only be specified when the backend protocol is SSL, HTTPS or HTTP2.
+     * 
+ * + * optional .google.cloud.compute.v1.BackendServiceTlsSettings tls_settings = 81794791; + * + */ + public Builder setTlsSettings( + com.google.cloud.compute.v1.BackendServiceTlsSettings.Builder builderForValue) { + if (tlsSettingsBuilder_ == null) { + tlsSettings_ = builderForValue.build(); + } else { + tlsSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Configuration for Backend Authenticated TLS and mTLS. May only be specified when the backend protocol is SSL, HTTPS or HTTP2.
+     * 
+ * + * optional .google.cloud.compute.v1.BackendServiceTlsSettings tls_settings = 81794791; + * + */ + public Builder mergeTlsSettings(com.google.cloud.compute.v1.BackendServiceTlsSettings value) { + if (tlsSettingsBuilder_ == null) { + if (((bitField1_ & 0x00008000) != 0) + && tlsSettings_ != null + && tlsSettings_ + != com.google.cloud.compute.v1.BackendServiceTlsSettings.getDefaultInstance()) { + getTlsSettingsBuilder().mergeFrom(value); + } else { + tlsSettings_ = value; + } + } else { + tlsSettingsBuilder_.mergeFrom(value); + } + if (tlsSettings_ != null) { + bitField1_ |= 0x00008000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Configuration for Backend Authenticated TLS and mTLS. May only be specified when the backend protocol is SSL, HTTPS or HTTP2.
+     * 
+ * + * optional .google.cloud.compute.v1.BackendServiceTlsSettings tls_settings = 81794791; + * + */ + public Builder clearTlsSettings() { + bitField1_ = (bitField1_ & ~0x00008000); + tlsSettings_ = null; + if (tlsSettingsBuilder_ != null) { + tlsSettingsBuilder_.dispose(); + tlsSettingsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Configuration for Backend Authenticated TLS and mTLS. May only be specified when the backend protocol is SSL, HTTPS or HTTP2.
+     * 
+ * + * optional .google.cloud.compute.v1.BackendServiceTlsSettings tls_settings = 81794791; + * + */ + public com.google.cloud.compute.v1.BackendServiceTlsSettings.Builder getTlsSettingsBuilder() { + bitField1_ |= 0x00008000; + onChanged(); + return getTlsSettingsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Configuration for Backend Authenticated TLS and mTLS. May only be specified when the backend protocol is SSL, HTTPS or HTTP2.
+     * 
+ * + * optional .google.cloud.compute.v1.BackendServiceTlsSettings tls_settings = 81794791; + * + */ + public com.google.cloud.compute.v1.BackendServiceTlsSettingsOrBuilder + getTlsSettingsOrBuilder() { + if (tlsSettingsBuilder_ != null) { + return tlsSettingsBuilder_.getMessageOrBuilder(); + } else { + return tlsSettings_ == null + ? com.google.cloud.compute.v1.BackendServiceTlsSettings.getDefaultInstance() + : tlsSettings_; + } + } + + /** + * + * + *
+     * Configuration for Backend Authenticated TLS and mTLS. May only be specified when the backend protocol is SSL, HTTPS or HTTP2.
+     * 
+ * + * optional .google.cloud.compute.v1.BackendServiceTlsSettings tls_settings = 81794791; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.compute.v1.BackendServiceTlsSettings, + com.google.cloud.compute.v1.BackendServiceTlsSettings.Builder, + com.google.cloud.compute.v1.BackendServiceTlsSettingsOrBuilder> + getTlsSettingsFieldBuilder() { + if (tlsSettingsBuilder_ == null) { + tlsSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.compute.v1.BackendServiceTlsSettings, + com.google.cloud.compute.v1.BackendServiceTlsSettings.Builder, + com.google.cloud.compute.v1.BackendServiceTlsSettingsOrBuilder>( + getTlsSettings(), getParentForChildren(), isClean()); + tlsSettings_ = null; + } + return tlsSettingsBuilder_; + } + private java.util.List usedBy_ = java.util.Collections.emptyList(); private void ensureUsedByIsMutable() { - if (!((bitField1_ & 0x00008000) != 0)) { + if (!((bitField1_ & 0x00010000) != 0)) { usedBy_ = new java.util.ArrayList(usedBy_); - bitField1_ |= 0x00008000; + bitField1_ |= 0x00010000; } } @@ -14921,7 +15217,7 @@ public Builder addAllUsedBy( public Builder clearUsedBy() { if (usedByBuilder_ == null) { usedBy_ = java.util.Collections.emptyList(); - bitField1_ = (bitField1_ & ~0x00008000); + bitField1_ = (bitField1_ & ~0x00010000); onChanged(); } else { usedByBuilder_.clear(); @@ -15050,7 +15346,7 @@ public com.google.cloud.compute.v1.BackendServiceUsedBy.Builder addUsedByBuilder com.google.cloud.compute.v1.BackendServiceUsedBy, com.google.cloud.compute.v1.BackendServiceUsedBy.Builder, com.google.cloud.compute.v1.BackendServiceUsedByOrBuilder>( - usedBy_, ((bitField1_ & 0x00008000) != 0), getParentForChildren(), isClean()); + usedBy_, ((bitField1_ & 0x00010000) != 0), getParentForChildren(), isClean()); usedBy_ = null; } return usedByBuilder_; diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendServiceOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendServiceOrBuilder.java index 89313fc91a58..5beb51dfee2b 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendServiceOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendServiceOrBuilder.java @@ -1939,6 +1939,46 @@ java.lang.String getMetadatasOrDefault( */ int getTimeoutSec(); + /** + * + * + *
+   * Configuration for Backend Authenticated TLS and mTLS. May only be specified when the backend protocol is SSL, HTTPS or HTTP2.
+   * 
+ * + * optional .google.cloud.compute.v1.BackendServiceTlsSettings tls_settings = 81794791; + * + * + * @return Whether the tlsSettings field is set. + */ + boolean hasTlsSettings(); + + /** + * + * + *
+   * Configuration for Backend Authenticated TLS and mTLS. May only be specified when the backend protocol is SSL, HTTPS or HTTP2.
+   * 
+ * + * optional .google.cloud.compute.v1.BackendServiceTlsSettings tls_settings = 81794791; + * + * + * @return The tlsSettings. + */ + com.google.cloud.compute.v1.BackendServiceTlsSettings getTlsSettings(); + + /** + * + * + *
+   * Configuration for Backend Authenticated TLS and mTLS. May only be specified when the backend protocol is SSL, HTTPS or HTTP2.
+   * 
+ * + * optional .google.cloud.compute.v1.BackendServiceTlsSettings tls_settings = 81794791; + * + */ + com.google.cloud.compute.v1.BackendServiceTlsSettingsOrBuilder getTlsSettingsOrBuilder(); + /** * * diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendServiceTlsSettings.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendServiceTlsSettings.java new file mode 100644 index 000000000000..611b9b59eb4f --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendServiceTlsSettings.java @@ -0,0 +1,1501 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.BackendServiceTlsSettings} + */ +public final class BackendServiceTlsSettings extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.BackendServiceTlsSettings) + BackendServiceTlsSettingsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BackendServiceTlsSettings.newBuilder() to construct. + private BackendServiceTlsSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BackendServiceTlsSettings() { + authenticationConfig_ = ""; + sni_ = ""; + subjectAltNames_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BackendServiceTlsSettings(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_BackendServiceTlsSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_BackendServiceTlsSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.BackendServiceTlsSettings.class, + com.google.cloud.compute.v1.BackendServiceTlsSettings.Builder.class); + } + + private int bitField0_; + public static final int AUTHENTICATION_CONFIG_FIELD_NUMBER = 408053481; + + @SuppressWarnings("serial") + private volatile java.lang.Object authenticationConfig_ = ""; + + /** + * + * + *
+   * Reference to the BackendAuthenticationConfig resource from the networksecurity.googleapis.com namespace. Can be used in authenticating TLS connections to the backend, as specified by the authenticationMode field. Can only be specified if authenticationMode is not NONE.
+   * 
+ * + * optional string authentication_config = 408053481; + * + * @return Whether the authenticationConfig field is set. + */ + @java.lang.Override + public boolean hasAuthenticationConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Reference to the BackendAuthenticationConfig resource from the networksecurity.googleapis.com namespace. Can be used in authenticating TLS connections to the backend, as specified by the authenticationMode field. Can only be specified if authenticationMode is not NONE.
+   * 
+ * + * optional string authentication_config = 408053481; + * + * @return The authenticationConfig. + */ + @java.lang.Override + public java.lang.String getAuthenticationConfig() { + java.lang.Object ref = authenticationConfig_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authenticationConfig_ = s; + return s; + } + } + + /** + * + * + *
+   * Reference to the BackendAuthenticationConfig resource from the networksecurity.googleapis.com namespace. Can be used in authenticating TLS connections to the backend, as specified by the authenticationMode field. Can only be specified if authenticationMode is not NONE.
+   * 
+ * + * optional string authentication_config = 408053481; + * + * @return The bytes for authenticationConfig. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAuthenticationConfigBytes() { + java.lang.Object ref = authenticationConfig_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + authenticationConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SNI_FIELD_NUMBER = 114030; + + @SuppressWarnings("serial") + private volatile java.lang.Object sni_ = ""; + + /** + * + * + *
+   * Server Name Indication - see RFC3546 section 3.1. If set, the load balancer sends this string as the SNI hostname in the TLS connection to the backend, and requires that this string match a Subject Alternative Name (SAN) in the backend's server certificate. With a Regional Internet NEG backend, if the SNI is specified here, the load balancer uses it regardless of whether the Regional Internet NEG is specified with FQDN or IP address and port. When both sni and subjectAltNames[] are specified, the load balancer matches the backend certificate's SAN only to subjectAltNames[].
+   * 
+ * + * optional string sni = 114030; + * + * @return Whether the sni field is set. + */ + @java.lang.Override + public boolean hasSni() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Server Name Indication - see RFC3546 section 3.1. If set, the load balancer sends this string as the SNI hostname in the TLS connection to the backend, and requires that this string match a Subject Alternative Name (SAN) in the backend's server certificate. With a Regional Internet NEG backend, if the SNI is specified here, the load balancer uses it regardless of whether the Regional Internet NEG is specified with FQDN or IP address and port. When both sni and subjectAltNames[] are specified, the load balancer matches the backend certificate's SAN only to subjectAltNames[].
+   * 
+ * + * optional string sni = 114030; + * + * @return The sni. + */ + @java.lang.Override + public java.lang.String getSni() { + java.lang.Object ref = sni_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sni_ = s; + return s; + } + } + + /** + * + * + *
+   * Server Name Indication - see RFC3546 section 3.1. If set, the load balancer sends this string as the SNI hostname in the TLS connection to the backend, and requires that this string match a Subject Alternative Name (SAN) in the backend's server certificate. With a Regional Internet NEG backend, if the SNI is specified here, the load balancer uses it regardless of whether the Regional Internet NEG is specified with FQDN or IP address and port. When both sni and subjectAltNames[] are specified, the load balancer matches the backend certificate's SAN only to subjectAltNames[].
+   * 
+ * + * optional string sni = 114030; + * + * @return The bytes for sni. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSniBytes() { + java.lang.Object ref = sni_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sni_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUBJECT_ALT_NAMES_FIELD_NUMBER = 330029535; + + @SuppressWarnings("serial") + private java.util.List + subjectAltNames_; + + /** + * + * + *
+   * A list of Subject Alternative Names (SANs) that the Load Balancer verifies during a TLS handshake with the backend. When the server presents its X.509 certificate to the Load Balancer, the Load Balancer inspects the certificate's SAN field, and requires that at least one SAN match one of the subjectAltNames in the list. This field is limited to 5 entries. When both sni and subjectAltNames[] are specified, the load balancer matches the backend certificate's SAN only to subjectAltNames[].
+   * 
+ * + * + * repeated .google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName subject_alt_names = 330029535; + * + */ + @java.lang.Override + public java.util.List + getSubjectAltNamesList() { + return subjectAltNames_; + } + + /** + * + * + *
+   * A list of Subject Alternative Names (SANs) that the Load Balancer verifies during a TLS handshake with the backend. When the server presents its X.509 certificate to the Load Balancer, the Load Balancer inspects the certificate's SAN field, and requires that at least one SAN match one of the subjectAltNames in the list. This field is limited to 5 entries. When both sni and subjectAltNames[] are specified, the load balancer matches the backend certificate's SAN only to subjectAltNames[].
+   * 
+ * + * + * repeated .google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName subject_alt_names = 330029535; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltNameOrBuilder> + getSubjectAltNamesOrBuilderList() { + return subjectAltNames_; + } + + /** + * + * + *
+   * A list of Subject Alternative Names (SANs) that the Load Balancer verifies during a TLS handshake with the backend. When the server presents its X.509 certificate to the Load Balancer, the Load Balancer inspects the certificate's SAN field, and requires that at least one SAN match one of the subjectAltNames in the list. This field is limited to 5 entries. When both sni and subjectAltNames[] are specified, the load balancer matches the backend certificate's SAN only to subjectAltNames[].
+   * 
+ * + * + * repeated .google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName subject_alt_names = 330029535; + * + */ + @java.lang.Override + public int getSubjectAltNamesCount() { + return subjectAltNames_.size(); + } + + /** + * + * + *
+   * A list of Subject Alternative Names (SANs) that the Load Balancer verifies during a TLS handshake with the backend. When the server presents its X.509 certificate to the Load Balancer, the Load Balancer inspects the certificate's SAN field, and requires that at least one SAN match one of the subjectAltNames in the list. This field is limited to 5 entries. When both sni and subjectAltNames[] are specified, the load balancer matches the backend certificate's SAN only to subjectAltNames[].
+   * 
+ * + * + * repeated .google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName subject_alt_names = 330029535; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName getSubjectAltNames( + int index) { + return subjectAltNames_.get(index); + } + + /** + * + * + *
+   * A list of Subject Alternative Names (SANs) that the Load Balancer verifies during a TLS handshake with the backend. When the server presents its X.509 certificate to the Load Balancer, the Load Balancer inspects the certificate's SAN field, and requires that at least one SAN match one of the subjectAltNames in the list. This field is limited to 5 entries. When both sni and subjectAltNames[] are specified, the load balancer matches the backend certificate's SAN only to subjectAltNames[].
+   * 
+ * + * + * repeated .google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName subject_alt_names = 330029535; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltNameOrBuilder + getSubjectAltNamesOrBuilder(int index) { + return subjectAltNames_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 114030, sni_); + } + for (int i = 0; i < subjectAltNames_.size(); i++) { + output.writeMessage(330029535, subjectAltNames_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 408053481, authenticationConfig_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(114030, sni_); + } + for (int i = 0; i < subjectAltNames_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 330029535, subjectAltNames_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 408053481, authenticationConfig_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.compute.v1.BackendServiceTlsSettings)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.BackendServiceTlsSettings other = + (com.google.cloud.compute.v1.BackendServiceTlsSettings) obj; + + if (hasAuthenticationConfig() != other.hasAuthenticationConfig()) return false; + if (hasAuthenticationConfig()) { + if (!getAuthenticationConfig().equals(other.getAuthenticationConfig())) return false; + } + if (hasSni() != other.hasSni()) return false; + if (hasSni()) { + if (!getSni().equals(other.getSni())) return false; + } + if (!getSubjectAltNamesList().equals(other.getSubjectAltNamesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAuthenticationConfig()) { + hash = (37 * hash) + AUTHENTICATION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAuthenticationConfig().hashCode(); + } + if (hasSni()) { + hash = (37 * hash) + SNI_FIELD_NUMBER; + hash = (53 * hash) + getSni().hashCode(); + } + if (getSubjectAltNamesCount() > 0) { + hash = (37 * hash) + SUBJECT_ALT_NAMES_FIELD_NUMBER; + hash = (53 * hash) + getSubjectAltNamesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.BackendServiceTlsSettings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.BackendServiceTlsSettings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.BackendServiceTlsSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.BackendServiceTlsSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.BackendServiceTlsSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.BackendServiceTlsSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.BackendServiceTlsSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.BackendServiceTlsSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.BackendServiceTlsSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.BackendServiceTlsSettings parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.BackendServiceTlsSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.BackendServiceTlsSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.compute.v1.BackendServiceTlsSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.BackendServiceTlsSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.BackendServiceTlsSettings) + com.google.cloud.compute.v1.BackendServiceTlsSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_BackendServiceTlsSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_BackendServiceTlsSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.BackendServiceTlsSettings.class, + com.google.cloud.compute.v1.BackendServiceTlsSettings.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.BackendServiceTlsSettings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + authenticationConfig_ = ""; + sni_ = ""; + if (subjectAltNamesBuilder_ == null) { + subjectAltNames_ = java.util.Collections.emptyList(); + } else { + subjectAltNames_ = null; + subjectAltNamesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_BackendServiceTlsSettings_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.BackendServiceTlsSettings getDefaultInstanceForType() { + return com.google.cloud.compute.v1.BackendServiceTlsSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.BackendServiceTlsSettings build() { + com.google.cloud.compute.v1.BackendServiceTlsSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.BackendServiceTlsSettings buildPartial() { + com.google.cloud.compute.v1.BackendServiceTlsSettings result = + new com.google.cloud.compute.v1.BackendServiceTlsSettings(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.compute.v1.BackendServiceTlsSettings result) { + if (subjectAltNamesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + subjectAltNames_ = java.util.Collections.unmodifiableList(subjectAltNames_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.subjectAltNames_ = subjectAltNames_; + } else { + result.subjectAltNames_ = subjectAltNamesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.compute.v1.BackendServiceTlsSettings result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.authenticationConfig_ = authenticationConfig_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sni_ = sni_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.BackendServiceTlsSettings) { + return mergeFrom((com.google.cloud.compute.v1.BackendServiceTlsSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.BackendServiceTlsSettings other) { + if (other == com.google.cloud.compute.v1.BackendServiceTlsSettings.getDefaultInstance()) + return this; + if (other.hasAuthenticationConfig()) { + authenticationConfig_ = other.authenticationConfig_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasSni()) { + sni_ = other.sni_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (subjectAltNamesBuilder_ == null) { + if (!other.subjectAltNames_.isEmpty()) { + if (subjectAltNames_.isEmpty()) { + subjectAltNames_ = other.subjectAltNames_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureSubjectAltNamesIsMutable(); + subjectAltNames_.addAll(other.subjectAltNames_); + } + onChanged(); + } + } else { + if (!other.subjectAltNames_.isEmpty()) { + if (subjectAltNamesBuilder_.isEmpty()) { + subjectAltNamesBuilder_.dispose(); + subjectAltNamesBuilder_ = null; + subjectAltNames_ = other.subjectAltNames_; + bitField0_ = (bitField0_ & ~0x00000004); + subjectAltNamesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSubjectAltNamesFieldBuilder() + : null; + } else { + subjectAltNamesBuilder_.addAllMessages(other.subjectAltNames_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 912242: + { + sni_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 912242 + case -1654731014: + { + com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName m = + input.readMessage( + com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName + .parser(), + extensionRegistry); + if (subjectAltNamesBuilder_ == null) { + ensureSubjectAltNamesIsMutable(); + subjectAltNames_.add(m); + } else { + subjectAltNamesBuilder_.addMessage(m); + } + break; + } // case -1654731014 + case -1030539446: + { + authenticationConfig_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case -1030539446 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object authenticationConfig_ = ""; + + /** + * + * + *
+     * Reference to the BackendAuthenticationConfig resource from the networksecurity.googleapis.com namespace. Can be used in authenticating TLS connections to the backend, as specified by the authenticationMode field. Can only be specified if authenticationMode is not NONE.
+     * 
+ * + * optional string authentication_config = 408053481; + * + * @return Whether the authenticationConfig field is set. + */ + public boolean hasAuthenticationConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Reference to the BackendAuthenticationConfig resource from the networksecurity.googleapis.com namespace. Can be used in authenticating TLS connections to the backend, as specified by the authenticationMode field. Can only be specified if authenticationMode is not NONE.
+     * 
+ * + * optional string authentication_config = 408053481; + * + * @return The authenticationConfig. + */ + public java.lang.String getAuthenticationConfig() { + java.lang.Object ref = authenticationConfig_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authenticationConfig_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Reference to the BackendAuthenticationConfig resource from the networksecurity.googleapis.com namespace. Can be used in authenticating TLS connections to the backend, as specified by the authenticationMode field. Can only be specified if authenticationMode is not NONE.
+     * 
+ * + * optional string authentication_config = 408053481; + * + * @return The bytes for authenticationConfig. + */ + public com.google.protobuf.ByteString getAuthenticationConfigBytes() { + java.lang.Object ref = authenticationConfig_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + authenticationConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Reference to the BackendAuthenticationConfig resource from the networksecurity.googleapis.com namespace. Can be used in authenticating TLS connections to the backend, as specified by the authenticationMode field. Can only be specified if authenticationMode is not NONE.
+     * 
+ * + * optional string authentication_config = 408053481; + * + * @param value The authenticationConfig to set. + * @return This builder for chaining. + */ + public Builder setAuthenticationConfig(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + authenticationConfig_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Reference to the BackendAuthenticationConfig resource from the networksecurity.googleapis.com namespace. Can be used in authenticating TLS connections to the backend, as specified by the authenticationMode field. Can only be specified if authenticationMode is not NONE.
+     * 
+ * + * optional string authentication_config = 408053481; + * + * @return This builder for chaining. + */ + public Builder clearAuthenticationConfig() { + authenticationConfig_ = getDefaultInstance().getAuthenticationConfig(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Reference to the BackendAuthenticationConfig resource from the networksecurity.googleapis.com namespace. Can be used in authenticating TLS connections to the backend, as specified by the authenticationMode field. Can only be specified if authenticationMode is not NONE.
+     * 
+ * + * optional string authentication_config = 408053481; + * + * @param value The bytes for authenticationConfig to set. + * @return This builder for chaining. + */ + public Builder setAuthenticationConfigBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + authenticationConfig_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object sni_ = ""; + + /** + * + * + *
+     * Server Name Indication - see RFC3546 section 3.1. If set, the load balancer sends this string as the SNI hostname in the TLS connection to the backend, and requires that this string match a Subject Alternative Name (SAN) in the backend's server certificate. With a Regional Internet NEG backend, if the SNI is specified here, the load balancer uses it regardless of whether the Regional Internet NEG is specified with FQDN or IP address and port. When both sni and subjectAltNames[] are specified, the load balancer matches the backend certificate's SAN only to subjectAltNames[].
+     * 
+ * + * optional string sni = 114030; + * + * @return Whether the sni field is set. + */ + public boolean hasSni() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Server Name Indication - see RFC3546 section 3.1. If set, the load balancer sends this string as the SNI hostname in the TLS connection to the backend, and requires that this string match a Subject Alternative Name (SAN) in the backend's server certificate. With a Regional Internet NEG backend, if the SNI is specified here, the load balancer uses it regardless of whether the Regional Internet NEG is specified with FQDN or IP address and port. When both sni and subjectAltNames[] are specified, the load balancer matches the backend certificate's SAN only to subjectAltNames[].
+     * 
+ * + * optional string sni = 114030; + * + * @return The sni. + */ + public java.lang.String getSni() { + java.lang.Object ref = sni_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sni_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Server Name Indication - see RFC3546 section 3.1. If set, the load balancer sends this string as the SNI hostname in the TLS connection to the backend, and requires that this string match a Subject Alternative Name (SAN) in the backend's server certificate. With a Regional Internet NEG backend, if the SNI is specified here, the load balancer uses it regardless of whether the Regional Internet NEG is specified with FQDN or IP address and port. When both sni and subjectAltNames[] are specified, the load balancer matches the backend certificate's SAN only to subjectAltNames[].
+     * 
+ * + * optional string sni = 114030; + * + * @return The bytes for sni. + */ + public com.google.protobuf.ByteString getSniBytes() { + java.lang.Object ref = sni_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sni_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Server Name Indication - see RFC3546 section 3.1. If set, the load balancer sends this string as the SNI hostname in the TLS connection to the backend, and requires that this string match a Subject Alternative Name (SAN) in the backend's server certificate. With a Regional Internet NEG backend, if the SNI is specified here, the load balancer uses it regardless of whether the Regional Internet NEG is specified with FQDN or IP address and port. When both sni and subjectAltNames[] are specified, the load balancer matches the backend certificate's SAN only to subjectAltNames[].
+     * 
+ * + * optional string sni = 114030; + * + * @param value The sni to set. + * @return This builder for chaining. + */ + public Builder setSni(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sni_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Server Name Indication - see RFC3546 section 3.1. If set, the load balancer sends this string as the SNI hostname in the TLS connection to the backend, and requires that this string match a Subject Alternative Name (SAN) in the backend's server certificate. With a Regional Internet NEG backend, if the SNI is specified here, the load balancer uses it regardless of whether the Regional Internet NEG is specified with FQDN or IP address and port. When both sni and subjectAltNames[] are specified, the load balancer matches the backend certificate's SAN only to subjectAltNames[].
+     * 
+ * + * optional string sni = 114030; + * + * @return This builder for chaining. + */ + public Builder clearSni() { + sni_ = getDefaultInstance().getSni(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Server Name Indication - see RFC3546 section 3.1. If set, the load balancer sends this string as the SNI hostname in the TLS connection to the backend, and requires that this string match a Subject Alternative Name (SAN) in the backend's server certificate. With a Regional Internet NEG backend, if the SNI is specified here, the load balancer uses it regardless of whether the Regional Internet NEG is specified with FQDN or IP address and port. When both sni and subjectAltNames[] are specified, the load balancer matches the backend certificate's SAN only to subjectAltNames[].
+     * 
+ * + * optional string sni = 114030; + * + * @param value The bytes for sni to set. + * @return This builder for chaining. + */ + public Builder setSniBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sni_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List + subjectAltNames_ = java.util.Collections.emptyList(); + + private void ensureSubjectAltNamesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + subjectAltNames_ = + new java.util.ArrayList< + com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName>( + subjectAltNames_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName, + com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName.Builder, + com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltNameOrBuilder> + subjectAltNamesBuilder_; + + /** + * + * + *
+     * A list of Subject Alternative Names (SANs) that the Load Balancer verifies during a TLS handshake with the backend. When the server presents its X.509 certificate to the Load Balancer, the Load Balancer inspects the certificate's SAN field, and requires that at least one SAN match one of the subjectAltNames in the list. This field is limited to 5 entries. When both sni and subjectAltNames[] are specified, the load balancer matches the backend certificate's SAN only to subjectAltNames[].
+     * 
+ * + * + * repeated .google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName subject_alt_names = 330029535; + * + */ + public java.util.List + getSubjectAltNamesList() { + if (subjectAltNamesBuilder_ == null) { + return java.util.Collections.unmodifiableList(subjectAltNames_); + } else { + return subjectAltNamesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * A list of Subject Alternative Names (SANs) that the Load Balancer verifies during a TLS handshake with the backend. When the server presents its X.509 certificate to the Load Balancer, the Load Balancer inspects the certificate's SAN field, and requires that at least one SAN match one of the subjectAltNames in the list. This field is limited to 5 entries. When both sni and subjectAltNames[] are specified, the load balancer matches the backend certificate's SAN only to subjectAltNames[].
+     * 
+ * + * + * repeated .google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName subject_alt_names = 330029535; + * + */ + public int getSubjectAltNamesCount() { + if (subjectAltNamesBuilder_ == null) { + return subjectAltNames_.size(); + } else { + return subjectAltNamesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * A list of Subject Alternative Names (SANs) that the Load Balancer verifies during a TLS handshake with the backend. When the server presents its X.509 certificate to the Load Balancer, the Load Balancer inspects the certificate's SAN field, and requires that at least one SAN match one of the subjectAltNames in the list. This field is limited to 5 entries. When both sni and subjectAltNames[] are specified, the load balancer matches the backend certificate's SAN only to subjectAltNames[].
+     * 
+ * + * + * repeated .google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName subject_alt_names = 330029535; + * + */ + public com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName getSubjectAltNames( + int index) { + if (subjectAltNamesBuilder_ == null) { + return subjectAltNames_.get(index); + } else { + return subjectAltNamesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * A list of Subject Alternative Names (SANs) that the Load Balancer verifies during a TLS handshake with the backend. When the server presents its X.509 certificate to the Load Balancer, the Load Balancer inspects the certificate's SAN field, and requires that at least one SAN match one of the subjectAltNames in the list. This field is limited to 5 entries. When both sni and subjectAltNames[] are specified, the load balancer matches the backend certificate's SAN only to subjectAltNames[].
+     * 
+ * + * + * repeated .google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName subject_alt_names = 330029535; + * + */ + public Builder setSubjectAltNames( + int index, com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName value) { + if (subjectAltNamesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubjectAltNamesIsMutable(); + subjectAltNames_.set(index, value); + onChanged(); + } else { + subjectAltNamesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * A list of Subject Alternative Names (SANs) that the Load Balancer verifies during a TLS handshake with the backend. When the server presents its X.509 certificate to the Load Balancer, the Load Balancer inspects the certificate's SAN field, and requires that at least one SAN match one of the subjectAltNames in the list. This field is limited to 5 entries. When both sni and subjectAltNames[] are specified, the load balancer matches the backend certificate's SAN only to subjectAltNames[].
+     * 
+ * + * + * repeated .google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName subject_alt_names = 330029535; + * + */ + public Builder setSubjectAltNames( + int index, + com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName.Builder + builderForValue) { + if (subjectAltNamesBuilder_ == null) { + ensureSubjectAltNamesIsMutable(); + subjectAltNames_.set(index, builderForValue.build()); + onChanged(); + } else { + subjectAltNamesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A list of Subject Alternative Names (SANs) that the Load Balancer verifies during a TLS handshake with the backend. When the server presents its X.509 certificate to the Load Balancer, the Load Balancer inspects the certificate's SAN field, and requires that at least one SAN match one of the subjectAltNames in the list. This field is limited to 5 entries. When both sni and subjectAltNames[] are specified, the load balancer matches the backend certificate's SAN only to subjectAltNames[].
+     * 
+ * + * + * repeated .google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName subject_alt_names = 330029535; + * + */ + public Builder addSubjectAltNames( + com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName value) { + if (subjectAltNamesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubjectAltNamesIsMutable(); + subjectAltNames_.add(value); + onChanged(); + } else { + subjectAltNamesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * A list of Subject Alternative Names (SANs) that the Load Balancer verifies during a TLS handshake with the backend. When the server presents its X.509 certificate to the Load Balancer, the Load Balancer inspects the certificate's SAN field, and requires that at least one SAN match one of the subjectAltNames in the list. This field is limited to 5 entries. When both sni and subjectAltNames[] are specified, the load balancer matches the backend certificate's SAN only to subjectAltNames[].
+     * 
+ * + * + * repeated .google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName subject_alt_names = 330029535; + * + */ + public Builder addSubjectAltNames( + int index, com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName value) { + if (subjectAltNamesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubjectAltNamesIsMutable(); + subjectAltNames_.add(index, value); + onChanged(); + } else { + subjectAltNamesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * A list of Subject Alternative Names (SANs) that the Load Balancer verifies during a TLS handshake with the backend. When the server presents its X.509 certificate to the Load Balancer, the Load Balancer inspects the certificate's SAN field, and requires that at least one SAN match one of the subjectAltNames in the list. This field is limited to 5 entries. When both sni and subjectAltNames[] are specified, the load balancer matches the backend certificate's SAN only to subjectAltNames[].
+     * 
+ * + * + * repeated .google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName subject_alt_names = 330029535; + * + */ + public Builder addSubjectAltNames( + com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName.Builder + builderForValue) { + if (subjectAltNamesBuilder_ == null) { + ensureSubjectAltNamesIsMutable(); + subjectAltNames_.add(builderForValue.build()); + onChanged(); + } else { + subjectAltNamesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A list of Subject Alternative Names (SANs) that the Load Balancer verifies during a TLS handshake with the backend. When the server presents its X.509 certificate to the Load Balancer, the Load Balancer inspects the certificate's SAN field, and requires that at least one SAN match one of the subjectAltNames in the list. This field is limited to 5 entries. When both sni and subjectAltNames[] are specified, the load balancer matches the backend certificate's SAN only to subjectAltNames[].
+     * 
+ * + * + * repeated .google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName subject_alt_names = 330029535; + * + */ + public Builder addSubjectAltNames( + int index, + com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName.Builder + builderForValue) { + if (subjectAltNamesBuilder_ == null) { + ensureSubjectAltNamesIsMutable(); + subjectAltNames_.add(index, builderForValue.build()); + onChanged(); + } else { + subjectAltNamesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A list of Subject Alternative Names (SANs) that the Load Balancer verifies during a TLS handshake with the backend. When the server presents its X.509 certificate to the Load Balancer, the Load Balancer inspects the certificate's SAN field, and requires that at least one SAN match one of the subjectAltNames in the list. This field is limited to 5 entries. When both sni and subjectAltNames[] are specified, the load balancer matches the backend certificate's SAN only to subjectAltNames[].
+     * 
+ * + * + * repeated .google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName subject_alt_names = 330029535; + * + */ + public Builder addAllSubjectAltNames( + java.lang.Iterable< + ? extends com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName> + values) { + if (subjectAltNamesBuilder_ == null) { + ensureSubjectAltNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, subjectAltNames_); + onChanged(); + } else { + subjectAltNamesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * A list of Subject Alternative Names (SANs) that the Load Balancer verifies during a TLS handshake with the backend. When the server presents its X.509 certificate to the Load Balancer, the Load Balancer inspects the certificate's SAN field, and requires that at least one SAN match one of the subjectAltNames in the list. This field is limited to 5 entries. When both sni and subjectAltNames[] are specified, the load balancer matches the backend certificate's SAN only to subjectAltNames[].
+     * 
+ * + * + * repeated .google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName subject_alt_names = 330029535; + * + */ + public Builder clearSubjectAltNames() { + if (subjectAltNamesBuilder_ == null) { + subjectAltNames_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + subjectAltNamesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * A list of Subject Alternative Names (SANs) that the Load Balancer verifies during a TLS handshake with the backend. When the server presents its X.509 certificate to the Load Balancer, the Load Balancer inspects the certificate's SAN field, and requires that at least one SAN match one of the subjectAltNames in the list. This field is limited to 5 entries. When both sni and subjectAltNames[] are specified, the load balancer matches the backend certificate's SAN only to subjectAltNames[].
+     * 
+ * + * + * repeated .google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName subject_alt_names = 330029535; + * + */ + public Builder removeSubjectAltNames(int index) { + if (subjectAltNamesBuilder_ == null) { + ensureSubjectAltNamesIsMutable(); + subjectAltNames_.remove(index); + onChanged(); + } else { + subjectAltNamesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * A list of Subject Alternative Names (SANs) that the Load Balancer verifies during a TLS handshake with the backend. When the server presents its X.509 certificate to the Load Balancer, the Load Balancer inspects the certificate's SAN field, and requires that at least one SAN match one of the subjectAltNames in the list. This field is limited to 5 entries. When both sni and subjectAltNames[] are specified, the load balancer matches the backend certificate's SAN only to subjectAltNames[].
+     * 
+ * + * + * repeated .google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName subject_alt_names = 330029535; + * + */ + public com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName.Builder + getSubjectAltNamesBuilder(int index) { + return getSubjectAltNamesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * A list of Subject Alternative Names (SANs) that the Load Balancer verifies during a TLS handshake with the backend. When the server presents its X.509 certificate to the Load Balancer, the Load Balancer inspects the certificate's SAN field, and requires that at least one SAN match one of the subjectAltNames in the list. This field is limited to 5 entries. When both sni and subjectAltNames[] are specified, the load balancer matches the backend certificate's SAN only to subjectAltNames[].
+     * 
+ * + * + * repeated .google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName subject_alt_names = 330029535; + * + */ + public com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltNameOrBuilder + getSubjectAltNamesOrBuilder(int index) { + if (subjectAltNamesBuilder_ == null) { + return subjectAltNames_.get(index); + } else { + return subjectAltNamesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * A list of Subject Alternative Names (SANs) that the Load Balancer verifies during a TLS handshake with the backend. When the server presents its X.509 certificate to the Load Balancer, the Load Balancer inspects the certificate's SAN field, and requires that at least one SAN match one of the subjectAltNames in the list. This field is limited to 5 entries. When both sni and subjectAltNames[] are specified, the load balancer matches the backend certificate's SAN only to subjectAltNames[].
+     * 
+ * + * + * repeated .google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName subject_alt_names = 330029535; + * + */ + public java.util.List< + ? extends com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltNameOrBuilder> + getSubjectAltNamesOrBuilderList() { + if (subjectAltNamesBuilder_ != null) { + return subjectAltNamesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(subjectAltNames_); + } + } + + /** + * + * + *
+     * A list of Subject Alternative Names (SANs) that the Load Balancer verifies during a TLS handshake with the backend. When the server presents its X.509 certificate to the Load Balancer, the Load Balancer inspects the certificate's SAN field, and requires that at least one SAN match one of the subjectAltNames in the list. This field is limited to 5 entries. When both sni and subjectAltNames[] are specified, the load balancer matches the backend certificate's SAN only to subjectAltNames[].
+     * 
+ * + * + * repeated .google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName subject_alt_names = 330029535; + * + */ + public com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName.Builder + addSubjectAltNamesBuilder() { + return getSubjectAltNamesFieldBuilder() + .addBuilder( + com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName + .getDefaultInstance()); + } + + /** + * + * + *
+     * A list of Subject Alternative Names (SANs) that the Load Balancer verifies during a TLS handshake with the backend. When the server presents its X.509 certificate to the Load Balancer, the Load Balancer inspects the certificate's SAN field, and requires that at least one SAN match one of the subjectAltNames in the list. This field is limited to 5 entries. When both sni and subjectAltNames[] are specified, the load balancer matches the backend certificate's SAN only to subjectAltNames[].
+     * 
+ * + * + * repeated .google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName subject_alt_names = 330029535; + * + */ + public com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName.Builder + addSubjectAltNamesBuilder(int index) { + return getSubjectAltNamesFieldBuilder() + .addBuilder( + index, + com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName + .getDefaultInstance()); + } + + /** + * + * + *
+     * A list of Subject Alternative Names (SANs) that the Load Balancer verifies during a TLS handshake with the backend. When the server presents its X.509 certificate to the Load Balancer, the Load Balancer inspects the certificate's SAN field, and requires that at least one SAN match one of the subjectAltNames in the list. This field is limited to 5 entries. When both sni and subjectAltNames[] are specified, the load balancer matches the backend certificate's SAN only to subjectAltNames[].
+     * 
+ * + * + * repeated .google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName subject_alt_names = 330029535; + * + */ + public java.util.List< + com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName.Builder> + getSubjectAltNamesBuilderList() { + return getSubjectAltNamesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName, + com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName.Builder, + com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltNameOrBuilder> + getSubjectAltNamesFieldBuilder() { + if (subjectAltNamesBuilder_ == null) { + subjectAltNamesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName, + com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName.Builder, + com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltNameOrBuilder>( + subjectAltNames_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + subjectAltNames_ = null; + } + return subjectAltNamesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.BackendServiceTlsSettings) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.BackendServiceTlsSettings) + private static final com.google.cloud.compute.v1.BackendServiceTlsSettings DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.BackendServiceTlsSettings(); + } + + public static com.google.cloud.compute.v1.BackendServiceTlsSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BackendServiceTlsSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.compute.v1.BackendServiceTlsSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendServiceTlsSettingsOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendServiceTlsSettingsOrBuilder.java new file mode 100644 index 000000000000..c294c23c6a52 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendServiceTlsSettingsOrBuilder.java @@ -0,0 +1,173 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.compute.v1; + +public interface BackendServiceTlsSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.BackendServiceTlsSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Reference to the BackendAuthenticationConfig resource from the networksecurity.googleapis.com namespace. Can be used in authenticating TLS connections to the backend, as specified by the authenticationMode field. Can only be specified if authenticationMode is not NONE.
+   * 
+ * + * optional string authentication_config = 408053481; + * + * @return Whether the authenticationConfig field is set. + */ + boolean hasAuthenticationConfig(); + + /** + * + * + *
+   * Reference to the BackendAuthenticationConfig resource from the networksecurity.googleapis.com namespace. Can be used in authenticating TLS connections to the backend, as specified by the authenticationMode field. Can only be specified if authenticationMode is not NONE.
+   * 
+ * + * optional string authentication_config = 408053481; + * + * @return The authenticationConfig. + */ + java.lang.String getAuthenticationConfig(); + + /** + * + * + *
+   * Reference to the BackendAuthenticationConfig resource from the networksecurity.googleapis.com namespace. Can be used in authenticating TLS connections to the backend, as specified by the authenticationMode field. Can only be specified if authenticationMode is not NONE.
+   * 
+ * + * optional string authentication_config = 408053481; + * + * @return The bytes for authenticationConfig. + */ + com.google.protobuf.ByteString getAuthenticationConfigBytes(); + + /** + * + * + *
+   * Server Name Indication - see RFC3546 section 3.1. If set, the load balancer sends this string as the SNI hostname in the TLS connection to the backend, and requires that this string match a Subject Alternative Name (SAN) in the backend's server certificate. With a Regional Internet NEG backend, if the SNI is specified here, the load balancer uses it regardless of whether the Regional Internet NEG is specified with FQDN or IP address and port. When both sni and subjectAltNames[] are specified, the load balancer matches the backend certificate's SAN only to subjectAltNames[].
+   * 
+ * + * optional string sni = 114030; + * + * @return Whether the sni field is set. + */ + boolean hasSni(); + + /** + * + * + *
+   * Server Name Indication - see RFC3546 section 3.1. If set, the load balancer sends this string as the SNI hostname in the TLS connection to the backend, and requires that this string match a Subject Alternative Name (SAN) in the backend's server certificate. With a Regional Internet NEG backend, if the SNI is specified here, the load balancer uses it regardless of whether the Regional Internet NEG is specified with FQDN or IP address and port. When both sni and subjectAltNames[] are specified, the load balancer matches the backend certificate's SAN only to subjectAltNames[].
+   * 
+ * + * optional string sni = 114030; + * + * @return The sni. + */ + java.lang.String getSni(); + + /** + * + * + *
+   * Server Name Indication - see RFC3546 section 3.1. If set, the load balancer sends this string as the SNI hostname in the TLS connection to the backend, and requires that this string match a Subject Alternative Name (SAN) in the backend's server certificate. With a Regional Internet NEG backend, if the SNI is specified here, the load balancer uses it regardless of whether the Regional Internet NEG is specified with FQDN or IP address and port. When both sni and subjectAltNames[] are specified, the load balancer matches the backend certificate's SAN only to subjectAltNames[].
+   * 
+ * + * optional string sni = 114030; + * + * @return The bytes for sni. + */ + com.google.protobuf.ByteString getSniBytes(); + + /** + * + * + *
+   * A list of Subject Alternative Names (SANs) that the Load Balancer verifies during a TLS handshake with the backend. When the server presents its X.509 certificate to the Load Balancer, the Load Balancer inspects the certificate's SAN field, and requires that at least one SAN match one of the subjectAltNames in the list. This field is limited to 5 entries. When both sni and subjectAltNames[] are specified, the load balancer matches the backend certificate's SAN only to subjectAltNames[].
+   * 
+ * + * + * repeated .google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName subject_alt_names = 330029535; + * + */ + java.util.List + getSubjectAltNamesList(); + + /** + * + * + *
+   * A list of Subject Alternative Names (SANs) that the Load Balancer verifies during a TLS handshake with the backend. When the server presents its X.509 certificate to the Load Balancer, the Load Balancer inspects the certificate's SAN field, and requires that at least one SAN match one of the subjectAltNames in the list. This field is limited to 5 entries. When both sni and subjectAltNames[] are specified, the load balancer matches the backend certificate's SAN only to subjectAltNames[].
+   * 
+ * + * + * repeated .google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName subject_alt_names = 330029535; + * + */ + com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName getSubjectAltNames(int index); + + /** + * + * + *
+   * A list of Subject Alternative Names (SANs) that the Load Balancer verifies during a TLS handshake with the backend. When the server presents its X.509 certificate to the Load Balancer, the Load Balancer inspects the certificate's SAN field, and requires that at least one SAN match one of the subjectAltNames in the list. This field is limited to 5 entries. When both sni and subjectAltNames[] are specified, the load balancer matches the backend certificate's SAN only to subjectAltNames[].
+   * 
+ * + * + * repeated .google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName subject_alt_names = 330029535; + * + */ + int getSubjectAltNamesCount(); + + /** + * + * + *
+   * A list of Subject Alternative Names (SANs) that the Load Balancer verifies during a TLS handshake with the backend. When the server presents its X.509 certificate to the Load Balancer, the Load Balancer inspects the certificate's SAN field, and requires that at least one SAN match one of the subjectAltNames in the list. This field is limited to 5 entries. When both sni and subjectAltNames[] are specified, the load balancer matches the backend certificate's SAN only to subjectAltNames[].
+   * 
+ * + * + * repeated .google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName subject_alt_names = 330029535; + * + */ + java.util.List< + ? extends com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltNameOrBuilder> + getSubjectAltNamesOrBuilderList(); + + /** + * + * + *
+   * A list of Subject Alternative Names (SANs) that the Load Balancer verifies during a TLS handshake with the backend. When the server presents its X.509 certificate to the Load Balancer, the Load Balancer inspects the certificate's SAN field, and requires that at least one SAN match one of the subjectAltNames in the list. This field is limited to 5 entries. When both sni and subjectAltNames[] are specified, the load balancer matches the backend certificate's SAN only to subjectAltNames[].
+   * 
+ * + * + * repeated .google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName subject_alt_names = 330029535; + * + */ + com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltNameOrBuilder + getSubjectAltNamesOrBuilder(int index); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendServiceTlsSettingsSubjectAltName.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendServiceTlsSettingsSubjectAltName.java new file mode 100644 index 000000000000..749906ab0681 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendServiceTlsSettingsSubjectAltName.java @@ -0,0 +1,918 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A Subject Alternative Name that the load balancer matches against the SAN field in the TLS certificate provided by the backend, specified as either a DNS name or a URI, in accordance with RFC 5280 4.2.1.6
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName} + */ +public final class BackendServiceTlsSettingsSubjectAltName + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName) + BackendServiceTlsSettingsSubjectAltNameOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BackendServiceTlsSettingsSubjectAltName.newBuilder() to construct. + private BackendServiceTlsSettingsSubjectAltName( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BackendServiceTlsSettingsSubjectAltName() { + dnsName_ = ""; + uniformResourceIdentifier_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BackendServiceTlsSettingsSubjectAltName(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_BackendServiceTlsSettingsSubjectAltName_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_BackendServiceTlsSettingsSubjectAltName_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName.class, + com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName.Builder.class); + } + + private int bitField0_; + public static final int DNS_NAME_FIELD_NUMBER = 411992033; + + @SuppressWarnings("serial") + private volatile java.lang.Object dnsName_ = ""; + + /** + * + * + *
+   * The SAN specified as a DNS Name.
+   * 
+ * + * optional string dns_name = 411992033; + * + * @return Whether the dnsName field is set. + */ + @java.lang.Override + public boolean hasDnsName() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The SAN specified as a DNS Name.
+   * 
+ * + * optional string dns_name = 411992033; + * + * @return The dnsName. + */ + @java.lang.Override + public java.lang.String getDnsName() { + java.lang.Object ref = dnsName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dnsName_ = s; + return s; + } + } + + /** + * + * + *
+   * The SAN specified as a DNS Name.
+   * 
+ * + * optional string dns_name = 411992033; + * + * @return The bytes for dnsName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDnsNameBytes() { + java.lang.Object ref = dnsName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dnsName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNIFORM_RESOURCE_IDENTIFIER_FIELD_NUMBER = 491409007; + + @SuppressWarnings("serial") + private volatile java.lang.Object uniformResourceIdentifier_ = ""; + + /** + * + * + *
+   * The SAN specified as a URI.
+   * 
+ * + * optional string uniform_resource_identifier = 491409007; + * + * @return Whether the uniformResourceIdentifier field is set. + */ + @java.lang.Override + public boolean hasUniformResourceIdentifier() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * The SAN specified as a URI.
+   * 
+ * + * optional string uniform_resource_identifier = 491409007; + * + * @return The uniformResourceIdentifier. + */ + @java.lang.Override + public java.lang.String getUniformResourceIdentifier() { + java.lang.Object ref = uniformResourceIdentifier_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uniformResourceIdentifier_ = s; + return s; + } + } + + /** + * + * + *
+   * The SAN specified as a URI.
+   * 
+ * + * optional string uniform_resource_identifier = 491409007; + * + * @return The bytes for uniformResourceIdentifier. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUniformResourceIdentifierBytes() { + java.lang.Object ref = uniformResourceIdentifier_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uniformResourceIdentifier_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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.GeneratedMessageV3.writeString(output, 411992033, dnsName_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 491409007, uniformResourceIdentifier_); + } + 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.GeneratedMessageV3.computeStringSize(411992033, dnsName_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 491409007, uniformResourceIdentifier_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName other = + (com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName) obj; + + if (hasDnsName() != other.hasDnsName()) return false; + if (hasDnsName()) { + if (!getDnsName().equals(other.getDnsName())) return false; + } + if (hasUniformResourceIdentifier() != other.hasUniformResourceIdentifier()) return false; + if (hasUniformResourceIdentifier()) { + if (!getUniformResourceIdentifier().equals(other.getUniformResourceIdentifier())) + return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDnsName()) { + hash = (37 * hash) + DNS_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDnsName().hashCode(); + } + if (hasUniformResourceIdentifier()) { + hash = (37 * hash) + UNIFORM_RESOURCE_IDENTIFIER_FIELD_NUMBER; + hash = (53 * hash) + getUniformResourceIdentifier().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A Subject Alternative Name that the load balancer matches against the SAN field in the TLS certificate provided by the backend, specified as either a DNS name or a URI, in accordance with RFC 5280 4.2.1.6
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName) + com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltNameOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_BackendServiceTlsSettingsSubjectAltName_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_BackendServiceTlsSettingsSubjectAltName_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName.class, + com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName.Builder.class); + } + + // Construct using + // com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dnsName_ = ""; + uniformResourceIdentifier_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_BackendServiceTlsSettingsSubjectAltName_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName build() { + com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName buildPartial() { + com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName result = + new com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dnsName_ = dnsName_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.uniformResourceIdentifier_ = uniformResourceIdentifier_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName) { + return mergeFrom( + (com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName other) { + if (other + == com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName + .getDefaultInstance()) return this; + if (other.hasDnsName()) { + dnsName_ = other.dnsName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasUniformResourceIdentifier()) { + uniformResourceIdentifier_ = other.uniformResourceIdentifier_; + 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 -999031030: + { + dnsName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case -999031030 + case -363695238: + { + uniformResourceIdentifier_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case -363695238 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object dnsName_ = ""; + + /** + * + * + *
+     * The SAN specified as a DNS Name.
+     * 
+ * + * optional string dns_name = 411992033; + * + * @return Whether the dnsName field is set. + */ + public boolean hasDnsName() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * The SAN specified as a DNS Name.
+     * 
+ * + * optional string dns_name = 411992033; + * + * @return The dnsName. + */ + public java.lang.String getDnsName() { + java.lang.Object ref = dnsName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dnsName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The SAN specified as a DNS Name.
+     * 
+ * + * optional string dns_name = 411992033; + * + * @return The bytes for dnsName. + */ + public com.google.protobuf.ByteString getDnsNameBytes() { + java.lang.Object ref = dnsName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dnsName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The SAN specified as a DNS Name.
+     * 
+ * + * optional string dns_name = 411992033; + * + * @param value The dnsName to set. + * @return This builder for chaining. + */ + public Builder setDnsName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dnsName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The SAN specified as a DNS Name.
+     * 
+ * + * optional string dns_name = 411992033; + * + * @return This builder for chaining. + */ + public Builder clearDnsName() { + dnsName_ = getDefaultInstance().getDnsName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * The SAN specified as a DNS Name.
+     * 
+ * + * optional string dns_name = 411992033; + * + * @param value The bytes for dnsName to set. + * @return This builder for chaining. + */ + public Builder setDnsNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dnsName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object uniformResourceIdentifier_ = ""; + + /** + * + * + *
+     * The SAN specified as a URI.
+     * 
+ * + * optional string uniform_resource_identifier = 491409007; + * + * @return Whether the uniformResourceIdentifier field is set. + */ + public boolean hasUniformResourceIdentifier() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * The SAN specified as a URI.
+     * 
+ * + * optional string uniform_resource_identifier = 491409007; + * + * @return The uniformResourceIdentifier. + */ + public java.lang.String getUniformResourceIdentifier() { + java.lang.Object ref = uniformResourceIdentifier_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uniformResourceIdentifier_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The SAN specified as a URI.
+     * 
+ * + * optional string uniform_resource_identifier = 491409007; + * + * @return The bytes for uniformResourceIdentifier. + */ + public com.google.protobuf.ByteString getUniformResourceIdentifierBytes() { + java.lang.Object ref = uniformResourceIdentifier_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uniformResourceIdentifier_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The SAN specified as a URI.
+     * 
+ * + * optional string uniform_resource_identifier = 491409007; + * + * @param value The uniformResourceIdentifier to set. + * @return This builder for chaining. + */ + public Builder setUniformResourceIdentifier(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uniformResourceIdentifier_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The SAN specified as a URI.
+     * 
+ * + * optional string uniform_resource_identifier = 491409007; + * + * @return This builder for chaining. + */ + public Builder clearUniformResourceIdentifier() { + uniformResourceIdentifier_ = getDefaultInstance().getUniformResourceIdentifier(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * The SAN specified as a URI.
+     * 
+ * + * optional string uniform_resource_identifier = 491409007; + * + * @param value The bytes for uniformResourceIdentifier to set. + * @return This builder for chaining. + */ + public Builder setUniformResourceIdentifierBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uniformResourceIdentifier_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName) + private static final com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName(); + } + + public static com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BackendServiceTlsSettingsSubjectAltName parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendServiceTlsSettingsSubjectAltNameOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendServiceTlsSettingsSubjectAltNameOrBuilder.java new file mode 100644 index 000000000000..ca1d087cf5a4 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendServiceTlsSettingsSubjectAltNameOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.compute.v1; + +public interface BackendServiceTlsSettingsSubjectAltNameOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The SAN specified as a DNS Name.
+   * 
+ * + * optional string dns_name = 411992033; + * + * @return Whether the dnsName field is set. + */ + boolean hasDnsName(); + + /** + * + * + *
+   * The SAN specified as a DNS Name.
+   * 
+ * + * optional string dns_name = 411992033; + * + * @return The dnsName. + */ + java.lang.String getDnsName(); + + /** + * + * + *
+   * The SAN specified as a DNS Name.
+   * 
+ * + * optional string dns_name = 411992033; + * + * @return The bytes for dnsName. + */ + com.google.protobuf.ByteString getDnsNameBytes(); + + /** + * + * + *
+   * The SAN specified as a URI.
+   * 
+ * + * optional string uniform_resource_identifier = 491409007; + * + * @return Whether the uniformResourceIdentifier field is set. + */ + boolean hasUniformResourceIdentifier(); + + /** + * + * + *
+   * The SAN specified as a URI.
+   * 
+ * + * optional string uniform_resource_identifier = 491409007; + * + * @return The uniformResourceIdentifier. + */ + java.lang.String getUniformResourceIdentifier(); + + /** + * + * + *
+   * The SAN specified as a URI.
+   * 
+ * + * optional string uniform_resource_identifier = 491409007; + * + * @return The bytes for uniformResourceIdentifier. + */ + com.google.protobuf.ByteString getUniformResourceIdentifierBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Compute.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Compute.java index b769fbcf9655..2f212711cbc1 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Compute.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Compute.java @@ -652,6 +652,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_BackendServiceReference_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_compute_v1_BackendServiceReference_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_BackendServiceTlsSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_compute_v1_BackendServiceTlsSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_BackendServiceTlsSettingsSubjectAltName_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_compute_v1_BackendServiceTlsSettingsSubjectAltName_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_BackendServiceUsedBy_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -1512,13 +1520,13 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_ForwardingRule_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_compute_v1_ForwardingRule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor + static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_ForwardingRule_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_compute_v1_ForwardingRule_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor + static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_ForwardingRuleAggregatedList_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_compute_v1_ForwardingRuleAggregatedList_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_ForwardingRuleAggregatedList_ItemsEntry_descriptor; @@ -4648,6 +4656,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_PerformMaintenanceReservationRequest_descriptor; static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_compute_v1_PerformMaintenanceReservationRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_PerformMaintenanceReservationSubBlockRequest_descriptor; + static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_compute_v1_PerformMaintenanceReservationSubBlockRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_Policy_descriptor; static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -8918,7 +8930,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\213\365\315\001 \001(\tH\002\210\001\001B\n\n" + "\010_dry_runB\022\n" + "\020_max_utilizationB\007\n" - + "\005_name\"\235$\n" + + "\005_name\"\200%\n" + "\016BackendService\022(\n" + "\027affinity_cookie_ttl_sec\030\232\351\266\260\001 \001(\005H\000\210\001\001\0226\n" + "\010backends\030\337\230\313\363\001 \003(\0132" @@ -8989,9 +9001,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "mpute.v1.BackendServiceHttpCookieH$\210\001\001\022@\n\n" + "subsetting\030\220\220\333\326\001" + " \001(\0132#.google.cloud.compute.v1.SubsettingH%\210\001\001\022\033\n" - + "\013timeout_sec\030\363\300\222& \001(\005H&\210\001\001\022B\n" - + "\007used_by\030\231\240\322\271\001 \003(\0132-.goo" - + "gle.cloud.compute.v1.BackendServiceUsedBy\0320\n" + + "\013timeout_sec\030\363\300\222& \001(\005H&\210\001\001\022P\n" + + "\014tls_settings\030\347\255\200\' \001(\01322" + + ".google.cloud.compute.v1.BackendServiceTlsSettingsH\'\210\001\001\022B\n" + + "\007used_by\030\231\240\322\271\001 \003(\0132-.g" + + "oogle.cloud.compute.v1.BackendServiceUsedBy\0320\n" + "\016MetadatasEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"U\n" @@ -9090,11 +9104,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021_session_affinityB!\n" + "\037_strong_session_affinity_cookieB\r\n" + "\013_subsettingB\016\n" - + "\014_timeout_sec\"\313\003\n" + + "\014_timeout_secB\017\n\r" + + "_tls_settings\"\313\003\n" + "\034BackendServiceAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022R\n" - + "\005items\030\300\317\367/" - + " \003(\0132@.google.cloud.compute.v1.BackendServiceAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132@.google.c" + + "loud.compute.v1.BackendServiceAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -9103,18 +9118,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032`\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022A\n" - + "\005value\030\002" - + " \001(\01322.google.cloud.compute.v1.BackendServicesScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01322.google.cloud." + + "compute.v1.BackendServicesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" + "_self_linkB\n\n" + "\010_warning\"\267\007\n" + "\027BackendServiceCdnPolicy\022w\n" - + "\037bypass_cache_on_request_headers\030\312\275\353\347\001 \003(\0132J.g" - + "oogle.cloud.compute.v1.BackendServiceCdnPolicyBypassCacheOnRequestHeader\022I\n" - + "\020cache_key_policy\030\357\327\370K" - + " \001(\0132\'.google.cloud.compute.v1.CacheKeyPolicyH\000\210\001\001\022\032\n\n" + + "\037bypass_cache_on_request_headers\030\312\275\353\347\001" + + " \003(\0132J.google.cloud.compute.v" + + "1.BackendServiceCdnPolicyBypassCacheOnRequestHeader\022I\n" + + "\020cache_key_policy\030\357\327\370K \001(\013" + + "2\'.google.cloud.compute.v1.CacheKeyPolicyH\000\210\001\001\022\032\n\n" + "cache_mode\030\300\310\342\r" + " \001(\tH\001\210\001\001\022\032\n\n" + "client_ttl\030\370\216\354\r" @@ -9122,8 +9138,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013default_ttl\030\356\375\346/ \001(\005H\003\210\001\001\022\030\n" + "\007max_ttl\030\221\211\325\222\001 \001(\005H\004\210\001\001\022!\n" + "\020negative_caching\030\265\303\242\240\001 \001(\010H\005\210\001\001\022i\n" - + "\027negative_caching_policy\030\374\265\212J \003(\0132E.google.cloud.compute.v1.Back" - + "endServiceCdnPolicyNegativeCachingPolicy\022#\n" + + "\027negative_caching_policy\030\374\265\212J \003(\0132E.google.cl" + + "oud.compute.v1.BackendServiceCdnPolicyNegativeCachingPolicy\022#\n" + "\022request_coalescing\030\324\204\210\376\001 \001(\010H\006\210\001\001\022!\n" + "\021serve_while_stale\030\333\367\355p \001(\005H\007\210\001\001\022-\n" + "\034signed_url_cache_max_age_sec\030\306\250\271\200\001" @@ -9186,19 +9202,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032_drop_traffic_if_unhealthyB\021\n" + "\017_failover_ratio\"\215\002\n" + "\031BackendServiceGroupHealth\022[\n" - + "\013annotations\030\244\366\2655 \003(\0132C.google.c" - + "loud.compute.v1.BackendServiceGroupHealth.AnnotationsEntry\022@\n\r" + + "\013annotations\030\244\366\2655" + + " \003(\0132C.google.cloud.compute.v1.BackendServiceGroupHealth.AnnotationsEntry\022@\n" + + "\r" + "health_status\030\265\326\272\265\001" + " \003(\0132%.google.cloud.compute.v1.HealthStatus\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\000\210\001\001\0322\n" + "\020AnnotationsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n" + + "\003key\030\001 \001(\t\022\r" + + "\n" + "\005value\030\002 \001(\t:\0028\001B\007\n" + "\005_kind\"\362\001\n" + "\026BackendServiceHAPolicy\022\035\n\r" + "fast_i_p_move\030\331\276\224j \001(\tH\000\210\001\001\022N\n" - + "\006leader\030\211\212\241\360\001" - + " \001(\01325.google.cloud.compute.v1.BackendServiceHAPolicyLeaderH\001\210\001\001\"L\n\n" + + "\006leader\030\211\212\241\360\001 \001(\01325.google.cloud." + + "compute.v1.BackendServiceHAPolicyLeaderH\001\210\001\001\"L\n\n" + "FastIPMove\022\033\n" + "\027UNDEFINED_FAST_I_P_MOVE\020\000\022\020\n" + "\010DISABLED\020\374\324\260\366\001\022\017\n" @@ -9207,8 +9225,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_leader\"\315\001\n" + "\034BackendServiceHAPolicyLeader\022\036\n\r" + "backend_group\030\224\302\244\332\001 \001(\tH\000\210\001\001\022f\n" - + "\020network_endpoint\030\206\221\212\033 \001(\0132D.google.clou" - + "d.compute.v1.BackendServiceHAPolicyLeaderNetworkEndpointH\001\210\001\001B\020\n" + + "\020network_endpoint\030\206\221\212\033 \001(\0132D.google.cloud.compute.v1.BackendS" + + "erviceHAPolicyLeaderNetworkEndpointH\001\210\001\001B\020\n" + "\016_backend_groupB\023\n" + "\021_network_endpoint\"T\n" + "+BackendServiceHAPolicyLeaderNetworkEndpoint\022\030\n" @@ -9247,8 +9265,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_warning\"\263\002\n" + "\030BackendServiceListUsable\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\0229\n" - + "\005items\030\300\317\367/ " - + "\003(\0132\'.google.cloud.compute.v1.BackendService\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132\'.google.cloud.compute.v1.BackendService\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -9260,10 +9278,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\253\002\n" + "/BackendServiceLocalityLoadBalancingPolicyConfig\022s\n\r" - + "custom_policy\030\300\213\246\002 \001(\0132T.google.cloud.compute.v1.Backend" - + "ServiceLocalityLoadBalancingPolicyConfigCustomPolicyH\000\210\001\001\022f\n" - + "\006policy\030\262\312\266+ \001(\0132N.google.cloud.compute.v1.BackendServiceLoc" - + "alityLoadBalancingPolicyConfigPolicyH\001\210\001\001B\020\n" + + "custom_policy\030\300\213\246\002 \001(\0132T.google.cloud" + + ".compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicyH\000\210\001\001\022f\n" + + "\006policy\030\262\312\266+ \001(\0132N.google.cloud.compute.v" + + "1.BackendServiceLocalityLoadBalancingPolicyConfigPolicyH\001\210\001\001B\020\n" + "\016_custom_policyB\t\n" + "\007_policy\"{\n" + ";BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy\022\024\n" @@ -9300,7 +9318,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_sample_rate\"O\n" + "\027BackendServiceReference\022 \n" + "\017backend_service\030\212\300\256\222\001 \001(\tH\000\210\001\001B\022\n" - + "\020_backend_service\"?\n" + + "\020_backend_service\"\332\001\n" + + "\031BackendServiceTlsSettings\022&\n" + + "\025authentication_config\030\351\315\311\302\001 \001(\tH\000\210\001\001\022\022\n" + + "\003sni\030\356\372\006 \001(\tH\001\210\001\001\022_\n" + + "\021subject_alt_names\030\337\263\257\235\001 \003(" + + "\0132@.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltNameB\030\n" + + "\026_authentication_configB\006\n" + + "\004_sni\"\237\001\n" + + "\'BackendServiceTlsSettingsSubjectAltName\022\031\n" + + "\010dns_name\030\341\377\271\304\001 \001(\tH\000\210\001\001\022,\n" + + "\033uniform_resource_identifier\030\357\234\251\352\001 \001(" + + "\tH\001\210\001\001B\013\n" + + "\t_dns_nameB\036\n" + + "\034_uniform_resource_identifier\"?\n" + "\024BackendServiceUsedBy\022\031\n" + "\treference\030\313\376\354F \001(\tH\000\210\001\001B\014\n\n" + "_reference\"\251\001\n" @@ -9387,8 +9418,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "H\005\210\001\001\022>\n" + "\trx_packet\030\241\201\353\360\001" + " \001(\0132\".google.cloud.compute.v1.BfdPacketH\006\210\001\001\022=\n" - + "\ttx_packet\030\243\275\2165 \001" - + "(\0132\".google.cloud.compute.v1.BfdPacketH\007\210\001\001\022\031\n" + + "\ttx_packet\030\243\275\2165" + + " \001(\0132\".google.cloud.compute.v1.BfdPacketH\007\210\001\001\022\031\n" + "\tuptime_ms\030\335\332\345; \001(\003H\010\210\001\001\"\200\001\n" + "\034BfdSessionInitializationMode\022-\n" + ")UNDEFINED_BFD_SESSION_INITIALIZATION_MODE\020\000\022\016\n" @@ -9440,8 +9471,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010as_paths\030\241\305\314A" + " \003(\0132\'.google.cloud.compute.v1.BgpRouteAsPath\022\026\n" + "\013communities\030\307\324\342Y \003(\t\022a\n" - + "\013destination\030\216\210\231V \001(\0132D" - + ".google.cloud.compute.v1.BgpRouteNetworkLayerReachabilityInformationH\000\210\001\001\022\022\n" + + "\013destination\030\216\210\231V \001(\013" + + "2D.google.cloud.compute.v1.BgpRouteNetworkLayerReachabilityInformationH\000\210\001\001\022\022\n" + "\003med\030\314\313\006 \001(\r" + "H\001\210\001\001\022\026\n" + "\006origin\030\246\336\206\037 \001(\tH\002\210\001\001\"m\n" @@ -9477,8 +9508,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_conditionB\007\n" + "\005_role\"\350\001\n" + "\025BulkInsertDiskRequest\022d\n" - + "\"bulk_insert_disk_resource_resource\030\326\371\227\212\001 \001(\0132/.google.c" - + "loud.compute.v1.BulkInsertDiskResourceB\003\340A\002\022!\n" + + "\"bulk_insert_d", + "isk_resource_resource\030\326\371\227\212\001 \001(\0132/.google" + + ".cloud.compute.v1.BulkInsertDiskResourceB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -9489,31 +9521,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037source_consistency_group_policy\030\335\242\255\t \001(\tH\000\210\001\001B\"\n" + " _source_consistency_group_policy\"\363\001\n" + "\031BulkInsertInstanceRequest\022k\n" - + "&bulk_insert_instance_resource_resource\030\316\302\340\023" - + " \001(\01323.google.cloud.compute.v1.BulkInsertInstanceResourceB\003\340A\002\022!\n" + + "&bulk_insert_instance_resource_resource\030\316\302\340\023 \001(\01323.google.cloud." + + "compute.v1.BulkInsertInstanceResourceB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\032\n\n" - + "r", - "equest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + + "\340A\002\362G\007project\022\032\n" + + "\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\245\005\n" + "\032BulkInsertInstanceResource\022\025\n" + "\005count\030\217\242\235- \001(\003H\000\210\001\001\022P\n" - + "\023instance_properties\030\235\236\330f \001(\0132+.goog" - + "le.cloud.compute.v1.InstancePropertiesH\001\210\001\001\022I\n" - + "\017location_policy\030\374\271\207\336\001 \001(\0132\'.googl" - + "e.cloud.compute.v1.LocationPolicyH\002\210\001\001\022\032\n" + + "\023instance_properties\030\235\236\330f \001(\0132+.go" + + "ogle.cloud.compute.v1.InstancePropertiesH\001\210\001\001\022I\n" + + "\017location_policy\030\374\271\207\336\001 \001(\0132\'.goo" + + "gle.cloud.compute.v1.LocationPolicyH\002\210\001\001\022\032\n" + "\tmin_count\030\342\251\277\371\001 \001(\003H\003\210\001\001\022\035\n" + "\014name_pattern\030\334\243\251\305\001 \001(\tH\004\210\001\001\022r\n" - + "\027per_instance_properties\030\373\271\3363 \003(\0132N.google.cloud.compute.v1." - + "BulkInsertInstanceResource.PerInstancePropertiesEntry\022)\n" + + "\027per_instance_properties\030\373\271\3363 \003(\0132N.google.cloud.compute.v" + + "1.BulkInsertInstanceResource.PerInstancePropertiesEntry\022)\n" + "\030source_instance_template\030\300\303\301\236\001 \001(" + "\tH\005\210\001\001\032\206\001\n" + "\032PerInstancePropertiesEntry\022\013\n" + "\003key\030\001 \001(\t\022W\n" - + "\005value\030\002 \001(\0132H.go" - + "ogle.cloud.compute.v1.BulkInsertInstanceResourcePerInstanceProperties:\0028\001B\010\n" + + "\005value\030\002 \001(\0132H." + + "google.cloud.compute.v1.BulkInsertInstanceResourcePerInstanceProperties:\0028\001B\010\n" + "\006_countB\026\n" + "\024_instance_propertiesB\022\n" + "\020_location_policyB\014\n\n" @@ -9543,8 +9575,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_statusB\022\n" + "\020_target_vm_count\"\362\001\n" + "\033BulkInsertRegionDiskRequest\022d\n" - + "\"bulk_insert_disk_resource_resource\030\326\371\227\212\001 " - + "\001(\0132/.google.cloud.compute.v1.BulkInsertDiskResourceB\003\340A\002\022!\n" + + "\"bulk_insert_disk_resource_resource\030\326\371\227\212\001" + + " \001(\0132/.google.cloud.compute.v1.BulkInsertDiskResourceB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -9559,29 +9591,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\227\002\n" + "\030BulkSetLabelsDiskRequest\022i\n" - + "%bulk_zone_set_labels_request_resource\030\233\245\254\375\001" - + " \001(\01321.google.cloud.compute.v1.BulkZoneSetLabelsRequestB\003\340A\002\022!\n" + + "%bulk_zone_set_labels_request_resource\030\233\245\254\375\001 \001(\01321.google.clou" + + "d.compute.v1.BulkZoneSetLabelsRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\032\n\n" + + "\340A\002\362G\007project\022\032\n" + + "\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\030\n" + "\010resource\030\216\210\257] \001(\tH\001\210\001\001\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" - + "\340A\002\362G\004zoneB\r" - + "\n" + + "\340A\002\362G\004zoneB\r\n" + "\013_request_idB\013\n" + "\t_resource\"\315\001\n" + "\024BulkSetLabelsRequest\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\000\210\001\001\022M\n" - + "\006labels\030\377\277\301\356\001 \003(\01329.google.clou" - + "d.compute.v1.BulkSetLabelsRequest.LabelsEntry\032-\n" + + "\006labels\030\377\277\301\356\001 \003(\01329.google.cl" + + "oud.compute.v1.BulkSetLabelsRequest.LabelsEntry\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001B\024\n" + "\022_label_fingerprint\"^\n" + "\030BulkZoneSetLabelsRequest\022B\n" - + "\010requests\030\304\277\275D " - + "\003(\0132-.google.cloud.compute.v1.BulkSetLabelsRequest\"l\n" - + "\025CacheInvalidationRule\022\025\n\n" + + "\010requests\030\304\277\275D" + + " \003(\0132-.google.cloud.compute.v1.BulkSetLabelsRequest\"l\n" + + "\025CacheInvalidationRule\022\025\n" + + "\n" + "cache_tags\030\266\275\356\r" + " \003(\t\022\024\n" + "\004host\030\250\353\303\001 \001(\tH\000\210\001\001\022\024\n" @@ -9617,8 +9650,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\005H\003\210\001\001\022\033\n" + "\013max_retries\030\353\242\276\032 \001(\005H\004\210\001\001B\022\n" + "\020_max_connectionsB\027\n" - + "\025_max_pending_requestsB\017\n" - + "\r" + + "\025_max_pending_requestsB\017\n\r" + "_max_requestsB\036\n" + "\034_max_requests_per_connectionB\016\n" + "\014_max_retries\"\261\001\n" @@ -9655,8 +9687,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025existing_reservations\030\333\210\214\353\001 \003(\t\022\020\n" + "\002id\030\233\032 \001(\004H\006\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\007\210\001\001\022U\n" - + "\020license_resource\030\314\324\352\320\001 \001(\01322.g" - + "oogle.cloud.compute.v1.LicenseResourceCommitmentH\010\210\001\001\022#\n" + + "\020license_resource\030\314\324\352\320\001 \001(\01322" + + ".google.cloud.compute.v1.LicenseResourceCommitmentH\010\210\001\001\022#\n" + "\030merge_source_commitments\030\301\252\330Y \003(\t\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\t\210\001\001\022\024\n" + "\004plan\030\251\226\322\001 \001(\tH\n" @@ -9737,7 +9769,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_nameB\007\n" + "\005_planB\t\n" + "\007_regionB\022\n" - + "\020_resource_statusB\014\n\n" + + "\020_resource_statusB\014\n" + + "\n" + "_self_linkB\032\n" + "\030_split_source_commitmentB\022\n" + "\020_start_timestampB\t\n" @@ -9746,8 +9779,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_type\"\277\003\n" + "\030CommitmentAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022N\n" - + "\005items\030\300\317\367/ \003(" - + "\0132<.google.cloud.compute.v1.CommitmentAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ " + + "\003(\0132<.google.cloud.compute.v1.CommitmentAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -9756,8 +9789,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032\\\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022=\n" - + "\005value\030\002 \001(\0132..googl" - + "e.cloud.compute.v1.CommitmentsScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\0132..goo" + + "gle.cloud.compute.v1.CommitmentsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -9803,8 +9836,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024draining_timeout_sec\030\236\325\254k \001(\005H\000\210\001\001B\027\n" + "\025_draining_timeout_sec\"\210\002\n" + "\"ConsistentHashLoadBalancerSettings\022b\n" - + "\013http_cookie\030\373\253\227\003 \001(\0132E.google.cloud.compute.v1" - + ".ConsistentHashLoadBalancerSettingsHttpCookieH\000\210\001\001\022 \n" + + "\013http_cookie\030\373\253\227\003 \001(\0132E.google.cloud.compute." + + "v1.ConsistentHashLoadBalancerSettingsHttpCookieH\000\210\001\001\022 \n" + "\020http_header_name\030\306\367\372o \001(\tH\001\210\001\001\022!\n" + "\021minimum_ring_size\030\277\273\341o \001(\003H\002\210\001\001B\016\n" + "\014_http_cookieB\023\n" @@ -9832,9 +9865,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_max_age\"\321\002\n" + "*CreateInstancesInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\217\001\n" - + "9instance_group_managers_create_instances_request_resource\030\223\372\332\013" - + " \001(\0132" - + "D.google.cloud.compute.v1.InstanceGroupManagersCreateInstancesRequestB\003\340A\002\022!\n" + + "9instance_group_managers_create_instances_request_resource\030\223\372\332\013 \001(" + + "\0132D.google.cloud.compute.v1.InstanceGroupManagersCreateInstancesRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -9846,17 +9878,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\235\001\n" - + "@region_instan" - + "ce_group_managers_create_instances_request_resource\030\210\277\230\253\001" - + " \001(\0132J.google.cloud.com" - + "pute.v1.RegionInstanceGroupManagersCreateInstancesRequestB\003\340A\002\022\032\n\n" + + "@region_inst" + + "ance_group_managers_create_instances_request_resource\030\210\277\230\253\001" + + " \001(\0132J.google.cloud.c" + + "ompute.v1.RegionInstanceGroupManagersCreateInstancesRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\367\001\n" + "%CreateMembersInterconnectGroupRequest\022#\n" + "\022interconnect_group\030\216\267\251\271\001 \001(\tB\003\340A\002\022\205\001\n" + "3interconnect_groups_create_members_request_resource\030\355\374\213\246\001" - + " \001(\0132?.google.cloud.compute.v1.Int" - + "erconnectGroupsCreateMembersRequestB\003\340A\002\022!\n" + + " \001(\0132?.google.cloud.compute.v1.I" + + "nterconnectGroupsCreateMembersRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\"\221\002\n" + "\031CreateSnapshotDiskRequest\022\024\n" @@ -9875,15 +9907,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004disk\030\235\233\274\001 \001(\tB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" - + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n" - + "\n" + + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022E\n" + "\021snapshot_resource\030\251\270\301\345\001" + " \001(\0132!.google.cloud.compute.v1.SnapshotB\003\340A\002B\r\n" + "\013_request_id\"\270\001\n" + "\031CustomErrorResponsePolicy\022j\n" - + "\024error_response_rules\030\220\255\374\006 \003(\0132I.google.cloud.compute.v1" - + ".CustomErrorResponsePolicyCustomErrorResponseRule\022\035\n\r" + + "\024error_response_rules\030\220\255\374\006 \003(\0132I.google.cloud.compute." + + "v1.CustomErrorResponsePolicyCustomErrorResponseRule\022\035\n\r" + "error_service\030\376\356\246N \001(\tH\000\210\001\001B\020\n" + "\016_error_service\"\266\001\n" + "0CustomErrorResponsePolicyCustomErrorResponseRule\022\037\n" @@ -9905,8 +9936,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022_rsa_encrypted_keyB\t\n" + "\007_sha256\"\265\001\n" + "\"CustomerEncryptionKeyProtectedDisk\022T\n" - + "\023disk_encryption_key\030\205\355\304\201\001 \001(\0132..google.c" - + "loud.compute.v1.CustomerEncryptionKeyH\000\210\001\001\022\026\n" + + "\023disk_encryption_key\030\205\355\304\201\001 \001(\0132..google" + + ".cloud.compute.v1.CustomerEncryptionKeyH\000\210\001\001\022\026\n" + "\006source\030\233\320\301T \001(\tH\001\210\001\001B\026\n" + "\024_disk_encryption_keyB\t\n" + "\007_source\"C\n" @@ -10070,8 +10101,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "*DeleteInstancesInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\217\001\n" + "9instance_group_managers_delete_instances_request_resource\030\204\306\255O" - + " \001(\0132D.google.cloud.compute" - + ".v1.InstanceGroupManagersDeleteInstancesRequestB\003\340A\002\022!\n" + + " \001(\0132D.google.cloud.compu" + + "te.v1.InstanceGroupManagersDeleteInstancesRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -10084,8 +10115,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\235\001\n" + "@region_instance_group_managers_delete_instances_request_resource\030\371\212\353\356\001" - + " \001(\0132J.google.cloud.compute.v1.RegionInstance" - + "GroupManagersDeleteInstancesRequestB\003\340A\002\022\032\n\n" + + " \001(\0132J.google.cloud.compute.v1.RegionInstan" + + "ceGroupManagersDeleteInstancesRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\254\001\n" + "\034DeleteInstantSnapshotRequest\022!\n" @@ -10097,7 +10128,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\247\001\n" + "(DeleteInterconnectAttachmentGroupRequest\022-\n" - + "\035interconnect_attachment_group\030\364\357\230$ \001(\tB\003\340A\002\022!\n" + + "\035interconnec", + "t_attachment_group\030\364\357\230$ \001(\tB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" @@ -10113,10 +10145,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022interconnect_group\030\216\267\251\271\001 \001(\tB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r" + + "\n" + "\013_request_id\"\207\001\n" - + "\031DeleteInterconnectReques", - "t\022\034\n" + + "\031DeleteInterconnectRequest\022\034\n" + "\014interconnect\030\216\311\214k \001(\tB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" @@ -10185,8 +10217,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\227\002\n" + "\033DeleteNodesNodeGroupRequest\022\033\n\n" + "node_group\030\202\374\213\340\001 \001(\tB\003\340A\002\022p\n" - + ")node_groups_delete_nodes_request_resource\030\222\327\263W \001(\01325.goo" - + "gle.cloud.compute.v1.NodeGroupsDeleteNodesRequestB\003\340A\002\022!\n" + + ")node_groups_delete_nodes_request_resource\030\222\327\263W \001(\01325.g" + + "oogle.cloud.compute.v1.NodeGroupsDeleteNodesRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -10204,8 +10236,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "3DeletePerInstanceConfigsInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\234\001\n" + "@instance_group_managers_delete_per_instance_configs_req_resource\030\240\352\350\254\001" - + " \001(\0132I.goo" - + "gle.cloud.compute.v1.InstanceGroupManagersDeletePerInstanceConfigsReqB\003\340A\002\022!\n" + + " \001(\0132I.g" + + "oogle.cloud.compute.v1.InstanceGroupManagersDeletePerInstanceConfigsReqB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" @@ -10216,8 +10248,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\234\001\n" + "Aregion_instance_group_manager_delete_instance_config_req_resource\030\205\233-" - + " \001(\0132J.google.clou" - + "d.compute.v1.RegionInstanceGroupManagerDeleteInstanceConfigReqB\003\340A\002\"\236\001\n" + + " \001(\0132J.google.cl" + + "oud.compute.v1.RegionInstanceGroupManagerDeleteInstanceConfigReqB\003\340A\002\"\236\001\n" + "$DeletePublicAdvertisedPrefixeRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022(\n" @@ -10332,8 +10364,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\n" - + "ssl_policy\030\305\375\340\214\001 \001(\tB\003\340A\002B\r" - + "\n" + + "ssl_policy\030\305\375\340\214\001 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\266\001\n" + "\"DeleteRegionTargetHttpProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" @@ -10425,8 +10456,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010key_name\030\353\360\356\356\001 \001(\tB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r" - + "\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\200\001\n" + "\025DeleteSnapshotRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" @@ -10475,8 +10505,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\221\001\n" + "\035DeleteTargetHttpsProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\032\n" - + "\n" + + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\"\n" + "\022target_https_proxy\030\354\260\372\030 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\252\001\n" @@ -10544,8 +10573,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005ports\030\222\360\3712 \003(\tB\017\n\r" + "_I_p_protocol\"\326\001\n" + "\025DeprecateImageRequest\022X\n" - + "\033deprecation_status_resource\030\360\211\345\236\001 \001(\0132*.google.c" - + "loud.compute.v1.DeprecationStatusB\003\340A\002\022\025\n" + + "\033deprecation_status_resource\030\360\211\345\236\001 \001(\0132*.google" + + ".cloud.compute.v1.DeprecationStatusB\003\340A\002\022\025\n" + "\005image\030\333\322\352/ \001(\tB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" @@ -10575,13 +10604,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" - + "\340A\002\362G\004zoneB\r" - + "\n" + + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\317\002\n" + "7DetachNetworkEndpointsGlobalNetworkEndpointGroupRequest\022\234\001\n" + "@global_network_endpoint_groups_detach_endpoints_request_resource\030\335\215\237\004" - + " \001(\0132J.google" - + ".cloud.compute.v1.GlobalNetworkEndpointGroupsDetachEndpointsRequestB\003\340A\002\022\'\n" + + " \001(\0132J.goog" + + "le.cloud.compute.v1.GlobalNetworkEndpointGroupsDetachEndpointsRequestB\003\340A\002\022\'\n" + "\026network_endpoint_group\030\206\313\363\316\001 \001(\tB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" @@ -10590,8 +10618,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "1DetachNetworkEndpointsNetworkEndpointGroupRequest\022\'\n" + "\026network_endpoint_group\030\206\313\363\316\001 \001(\tB\003\340A\002\022\220\001\n" + "9network_endpoint_groups_detach_endpoints_request_resource\030\371\240\356\365\001" - + " \001(\0132D" - + ".google.cloud.compute.v1.NetworkEndpointGroupsDetachEndpointsRequestB\003\340A\002\022!\n" + + " \001(\013" + + "2D.google.cloud.compute.v1.NetworkEndpointGroupsDetachEndpointsRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -10603,10 +10631,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\235\001\n" - + "@region" - + "_network_endpoint_groups_detach_endpoints_request_resource\030\356\345\253\225\001" - + " \001(\0132J.google.cl" - + "oud.compute.v1.RegionNetworkEndpointGroupsDetachEndpointsRequestB\003\340A\002\022\032\n\n" + + "@regi" + + "on_network_endpoint_groups_detach_endpoints_request_resource\030\356\345\253\225\001" + + " \001(\0132J.google." + + "cloud.compute.v1.RegionNetworkEndpointGroupsDetachEndpointsRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"l\n" + "\034DisableXpnHostProjectRequest\022!\n" @@ -10617,21 +10645,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " DisableXpnResourceProjectRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022z\n" - + ".projects_disable_xpn_resource_request_resource\030\252\324\334c \001(\0132:.goog" - + "le.cloud.compute.v1.ProjectsDisableXpnResourceRequestB\003\340A\002\022\032\n\n" + + ".projects_disable_xpn_resource_request_resource\030\252\324\334c \001(\0132:.go" + + "ogle.cloud.compute.v1.ProjectsDisableXpnResourceRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\317\032\n" + "\004Disk\022\033\n" + "\013access_mode\030\236\367\317\023 \001(\tH\000\210\001\001\022\035\n" + "\014architecture\030\323\322\261\220\001 \001(\tH\001\210\001\001\022Q\n" - + "\022async_primary_disk\030\235\365\211V \001(" - + "\0132-.google.cloud.compute.v1.DiskAsyncReplicationH\002\210\001\001\022Y\n" + + "\022async_primary_disk\030\235\365\211V " + + "\001(\0132-.google.cloud.compute.v1.DiskAsyncReplicationH\002\210\001\001\022Y\n" + "\025async_secondary_disks\030\250\350\375\231\001" + " \003(\01326.google.cloud.compute.v1.Disk.AsyncSecondaryDisksEntry\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\003\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\004\210\001\001\022T\n" - + "\023disk_encryption_key\030\205\355\304\201\001 " - + "\001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\005\210\001\001\022+\n" + + "\023disk_encryption_key\030\205\355\304\201\001" + + " \001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\005\210\001\001\022+\n" + "\033enable_confidential_compute\030\274\353\3310 \001(\010H\006\210\001\001\022E\n" + "\021guest_os_features\030\321\340\347%" + " \003(\0132\'.google.cloud.compute.v1.GuestOsFeature\022\020\n" @@ -10689,8 +10717,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004zone\030\254\307\344\001 \001(\tH)\210\001\001\032m\n" + "\030AsyncSecondaryDisksEntry\022\013\n" + "\003key\030\001 \001(\t\022@\n" - + "\005value\030\002 \001(\01321." - + "google.cloud.compute.v1.DiskAsyncReplicationList:\0028\001\032-\n" + + "\005value\030\002 \001(\0132" + + "1.google.cloud.compute.v1.DiskAsyncReplicationList:\0028\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"q\n\n" @@ -10712,8 +10740,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005READY\020\203\303\217%\022\021\n" + "\tRESTORING\020\253\247\342\300\001\022\023\n" + "\013UNAVAILABLE\020\260\330\245\305\001B\016\n" - + "\014_access_modeB\017\n" - + "\r" + + "\014_access_modeB\017\n\r" + "_architectureB\025\n" + "\023_async_primary_diskB\025\n" + "\023_creation_timestampB\016\n" @@ -10722,7 +10749,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034_enable_confidential_computeB\005\n" + "\003_idB\007\n" + "\005_kindB\024\n" - + "\022_label_fingerprintB\030\n" + + "\022_label", + "_fingerprintB\030\n" + "\026_last_attach_timestampB\030\n" + "\026_last_detach_timestampB\020\n" + "\016_location_hintB\007\n" @@ -10745,8 +10773,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_source_imageB\036\n" + "\034_source_image_encryption_keyB\022\n" + "\020_source_image_idB\032\n" - + "\030_source_instan", - "t_snapshotB\035\n" + + "\030_source_instant_snapshotB\035\n" + "\033_source_instant_snapshot_idB\022\n" + "\020_source_snapshotB!\n" + "\037_source_snapshot_encryption_keyB\025\n" @@ -10771,8 +10798,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005value\030\002 \001(\0132(.google.cloud.compute.v1.DisksScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" - + "\020_next_page_tokenB\014\n" - + "\n" + + "\020_next_page_tokenB\014\n\n" + "_self_linkB\n\n" + "\010_warning\"\355\001\n" + "\024DiskAsyncReplication\022\'\n" @@ -10825,20 +10851,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021_destination_zoneB\016\n" + "\014_target_disk\"\251\001\n\n" + "DiskParams\022_\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003" - + "(\0132<.google.cloud.compute.v1.DiskParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001" + + " \003(\0132<.google.cloud.compute.v1.DiskParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\372\002\n" + "\022DiskResourceStatus\022e\n" - + "\022async_primary_disk\030\235\365\211V \001(\0132A.google.cloud.comput" - + "e.v1.DiskResourceStatusAsyncReplicationStatusH\000\210\001\001\022g\n" + + "\022async_primary_disk\030\235\365\211V \001(\0132A.google.cloud.comp" + + "ute.v1.DiskResourceStatusAsyncReplicationStatusH\000\210\001\001\022g\n" + "\025async_secondary_disks\030\250\350\375\231\001" + " \003(\0132D.google.cloud.compute.v1.DiskResourceStatus.AsyncSecondaryDisksEntry\032}\n" + "\030AsyncSecondaryDisksEntry\022\013\n" + "\003key\030\001 \001(\t\022P\n" - + "\005value\030\002 \001(\0132A.google.cloud.compute.v1.Di" - + "skResourceStatusAsyncReplicationStatus:\0028\001B\025\n" + + "\005value\030\002 \001(\0132A.google.cloud.compute.v1." + + "DiskResourceStatusAsyncReplicationStatus:\0028\001B\025\n" + "\023_async_primary_disk\"\332\001\n" + "(DiskResourceStatusAsyncReplicationStatus\022\025\n" + "\005state\030\221\211\2534 \001(\tH\000\210\001\001\"\214\001\n" @@ -10854,8 +10880,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010DiskType\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022%\n" + "\024default_disk_size_gb\030\365\244\205\201\001 \001(\003H\001\210\001\001\022G\n\n" - + "deprecated\030\263\313\321\365\001 \001(\0132*" - + ".google.cloud.compute.v1.DeprecationStatusH\002\210\001\001\022\034\n" + + "deprecated\030\263\313\321\365\001 \001(\013" + + "2*.google.cloud.compute.v1.DeprecationStatusH\002\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\003\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\004\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022\024\n" @@ -10878,8 +10904,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\271\003\n" + "\026DiskTypeAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022L\n" - + "\005items\030\300\317\367/ \003(\0132:.google.cl" - + "oud.compute.v1.DiskTypeAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132:.google." + + "cloud.compute.v1.DiskTypeAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -10905,7 +10931,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" - + "\020_next_page_tokenB\014\n\n" + + "\020_next_page_tokenB\014\n" + + "\n" + "_self_linkB\n\n" + "\010_warning\"\226\001\n" + "\023DiskTypesScopedList\0228\n\n" @@ -10938,8 +10965,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017_enable_display\"\201\002\n" + "\022DistributionPolicy\022\035\n" + "\014target_shape\030\363\346\273\241\001 \001(\tH\000\210\001\001\022N\n" - + "\005zones\030\307\244\2557 \003" - + "(\0132<.google.cloud.compute.v1.DistributionPolicyZoneConfiguration\"k\n" + + "\005zones\030\307\244\2557" + + " \003(\0132<.google.cloud.compute.v1.DistributionPolicyZoneConfiguration\"k\n" + "\013TargetShape\022\032\n" + "\026UNDEFINED_TARGET_SHAPE\020\000\022\t\n" + "\003ANY\020\314\373\003\022\026\n" @@ -10964,8 +10991,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022y\n" + "-projects_enable_xpn_resource_request_resource\030\257\320\233\311\001" - + " \001(\01329.google.cloud.co" - + "mpute.v1.ProjectsEnableXpnResourceRequestB\003\340A\002\022\032\n\n" + + " \001(\01329.google.cloud." + + "compute.v1.ProjectsEnableXpnResourceRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"<\n" + "\005Error\0223\n" @@ -10976,18 +11003,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\".google.cloud.compute.v1.ErrorInfoH\000\210\001\001\0223\n" + "\004help\030\301\236\303\001" + " \001(\0132\035.google.cloud.compute.v1.HelpH\001\210\001\001\022M\n" - + "\021localized_message\030\303\376\362\300\001 \001(\0132).g" - + "oogle.cloud.compute.v1.LocalizedMessageH\002\210\001\001\022F\n\n" + + "\021localized_message\030\303\376\362\300\001 \001(\0132)" + + ".google.cloud.compute.v1.LocalizedMessageH\002\210\001\001\022F\n\n" + "quota_info\030\225\324\344," - + " \001(\0132*.google.cloud.compute.v1.QuotaExceededInfoH\003\210\001\001B\r\n" + + " \001(\0132*.google.cloud.compute.v1.QuotaExceededInfoH\003\210\001\001B\r" + + "\n" + "\013_error_infoB\007\n" + "\005_helpB\024\n" + "\022_localized_messageB\r\n" + "\013_quota_info\"\315\001\n" + "\tErrorInfo\022\027\n" + "\006domain\030\304\251\317\207\001 \001(\tH\000\210\001\001\022G\n" - + "\tmetadatas\030\244\326\207\004 \003(\01321" - + ".google.cloud.compute.v1.ErrorInfo.MetadatasEntry\022\026\n" + + "\tmetadatas\030\244\326\207\004 \003(\013" + + "21.google.cloud.compute.v1.ErrorInfo.MetadatasEntry\022\026\n" + "\006reason\030\304\244\226B \001(\tH\001\210\001\001\0320\n" + "\016MetadatasEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -11003,8 +11031,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_codeB\013\n" + "\t_locationB\n\n" + "\010_message\"\335\002\n" - + "\025ExchangedPeeringRoute\022\033\n" - + "\n" + + "\025ExchangedPeeringRoute\022\033\n\n" + "dest_range\030\340\262\352\265\001 \001(\tH\000\210\001\001\022\030\n" + "\010imported\030\204\326\3146 \001(\010H\001\210\001\001\022\037\n" + "\017next_hop_region\030\366\300\271: \001(\tH\002\210\001\001\022\031\n" @@ -11023,8 +11050,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_type\"\274\002\n" + "\032ExchangedPeeringRoutesList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022@\n" - + "\005items\030\300\317\367/ \003(\0132..google." - + "cloud.compute.v1.ExchangedPeeringRoute\022\024\n" + + "\005items\030\300\317\367/ \003(\0132..googl" + + "e.cloud.compute.v1.ExchangedPeeringRoute\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -11042,8 +11069,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\n" + "subnetwork\030\356\247\344\222\001 \001(\tB\003\340A\002\022\200\001\n" + "1subnetworks_expand_ip_cidr_range_request_resource\030\336\320\272\343\001" - + " \001(\0132<.google." - + "cloud.compute.v1.SubnetworksExpandIpCidrRangeRequestB\003\340A\002B\r\n" + + " \001(\0132<.googl" + + "e.cloud.compute.v1.SubnetworksExpandIpCidrRangeRequestB\003\340A\002B\r\n" + "\013_request_id\"\251\001\n" + "\004Expr\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\000\210\001\001\022\033\n\n" @@ -11062,8 +11089,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\01324.google.cloud.compute.v1.ExternalVpnGatewayInterface\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\003\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\004\210\001\001\022K\n" - + "\006labels\030\377\277\301\356\001 \003(\01327.google.cloud" - + ".compute.v1.ExternalVpnGateway.LabelsEntry\022\024\n" + + "\006labels\030\377\277\301\356\001 \003(\01327.google.clo" + + "ud.compute.v1.ExternalVpnGateway.LabelsEntry\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\005\210\001\001\022 \n" + "\017redundancy_type\030\234\316\267\201\001 \001(\tH\006\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\007\210\001\001\032-\n" @@ -11088,14 +11115,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "H\000\210\001\001\022\033\n\n" + "ip_address\030\334\361\334\301\001 \001(\tH\001\210\001\001\022\035\n" + "\014ipv6_address\030\234\263\357\242\001 \001(\tH\002\210\001\001B\005\n" - + "\003_idB\r\n" + + "\003_idB\r" + + "\n" + "\013_ip_addressB\017\n\r" + "_ipv6_address\"\324\002\n" + "\026ExternalVpnGatewayList\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022=\n" - + "\005items\030\300\317\367/ \003(\0132+.goog" - + "le.cloud.compute.v1.ExternalVpnGateway\022\024\n" + + "\005items\030\300\317\367/ \003(\0132+.go" + + "ogle.cloud.compute.v1.ExternalVpnGateway\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\0229\n" @@ -11181,8 +11209,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_enableB\013\n" + "\t_metadata\"\261\001\n" + "\016FirewallParams\022c\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132@.google.cloud.compute" - + ".v1.FirewallParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132@.google.cloud.compu" + + "te.v1.FirewallParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\227\001\n" @@ -11192,14 +11220,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004kind\030\224\367\310\001 \001(\tH\000\210\001\001B\007\n" + "\005_kind\"\253\001\n" + "\032FirewallPoliciesScopedList\022F\n" - + "\021firewall_policies\030\257\213\225\273\001 \003(\0132" - + "\'.google.cloud.compute.v1.FirewallPolicy\0229\n" + + "\021firewall_policies\030\257\213\225\273\001 \003(" + + "\0132\'.google.cloud.compute.v1.FirewallPolicy\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\227\006\n" + "\016FirewallPolicy\022L\n" - + "\014associations\030\222\350\312\362\001 \003(\01322.g" - + "oogle.cloud.compute.v1.FirewallPolicyAssociation\022\"\n" + + "\014associations\030\222\350\312\362\001 \003(\01322" + + ".google.cloud.compute.v1.FirewallPolicyAssociation\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022\034\n" + "\014display_name\030\350\207\221\002 \001(\tH\002\210\001\001\022\033\n" @@ -11207,8 +11235,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\002id\030\233\032 \001(\004H\004\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\006\210\001\001\022O\n" - + "\026packet_mirroring_rules\030\304\377\300\375\001" - + " \003(\0132+.google.cloud.compute.v1.FirewallPolicyRule\022\026\n" + + "\026packet_mirroring_rules\030\304\377\300\375\001 \003(\0132+.goog" + + "le.cloud.compute.v1.FirewallPolicyRule\022\026\n" + "\006parent\030\252\221\254% \001(\tH\007\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\010\210\001\001\022!\n" + "\020rule_tuple_count\030\225\302\226\271\001 \001(\005H\t\210\001\001\022=\n" @@ -11261,8 +11289,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010disabled\030\374\364\230\201\001 \001(\010H\003\210\001\001\022\037\n" + "\016enable_logging\030\243\311\355\214\001 \001(\010H\004\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022I\n" - + "\005match\030\305\263\2671 \001(\013" - + "22.google.cloud.compute.v1.FirewallPolicyRuleMatcherH\006\210\001\001\022\031\n" + + "\005match\030\305\263\2671 \001" + + "(\01322.google.cloud.compute.v1.FirewallPolicyRuleMatcherH\006\210\001\001\022\031\n" + "\010priority\030\244\363\241\324\001 \001(\005H\007\210\001\001\022\031\n" + "\trule_name\030\356\263\256\032 \001(\tH\010\210\001\001\022!\n" + "\020rule_tuple_count\030\225\302\226\271\001 \001(\005H\t\210\001\001\022&\n" @@ -11296,8 +11324,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021dest_network_type\030\250\272\267\303\001 \001(\tH\000\210\001\001\022\034\n" + "\021dest_region_codes\030\230\253\371^ \003(\t\022$\n" + "\031dest_threat_intelligences\030\254\363\2259 \003(\t\022Z\n" - + "\016layer4_configs\030\265\334\216\262\001 \003(\0132>.google.c" - + "loud.compute.v1.FirewallPolicyRuleMatcherLayer4Config\022\036\n" + + "\016layer4_configs\030\265\334\216\262\001 \003(\0132>.google" + + ".cloud.compute.v1.FirewallPolicyRuleMatcherLayer4Config\022\036\n" + "\022src_address_groups\030\272\230\215\320\001 \003(\t\022\025\n" + "\tsrc_fqdns\030\343\314\355\317\001 \003(\t\022\031\n\r" + "src_ip_ranges\030\323\200\207\316\001 \003(\t\022!\n" @@ -11356,8 +11384,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026is_mirroring_collector\030\374\340\3568 \001(\010H\017\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\020\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\021\210\001\001\022G\n" - + "\006labels\030\377\277\301\356\001 \003(\01323.google.clou" - + "d.compute.v1.ForwardingRule.LabelsEntry\022&\n" + + "\006labels\030\377\277\301\356\001 \003(\01323.google.cl" + + "oud.compute.v1.ForwardingRule.LabelsEntry\022&\n" + "\025load_balancing_scheme\030\304\214\302\255\001 \001(\tH\022\210\001\001\022E\n" + "\020metadata_filters\030\353\315\314\335\001" + " \003(\0132\'.google.cloud.compute.v1.MetadataFilter\022\024\n" @@ -11372,8 +11400,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tH\032\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\033\210\001\001\022!\n" + "\021self_link_with_id\030\202\254\235\025 \001(\tH\034\210\001\001\022o\n" - + "\037service_directory_registrations\030\376\261\314j \003(\0132C" - + ".google.cloud.compute.v1.ForwardingRuleServiceDirectoryRegistration\022\036\n\r" + + "\037service_directory_registrations\030\376\261\314j \003(\013" + + "2C.google.cloud.compute.v1.ForwardingRuleServiceDirectoryRegistration\022\036\n\r" + "service_label\030\352\231\354\306\001 \001(\tH\035\210\001\001\022\035\n" + "\014service_name\030\325\253\315\253\001 \001(\tH\036\210\001\001\022\033\n" + "\020source_ip_ranges\030\312\243\2315 \003(\t\022\033\n\n" @@ -11383,7 +11411,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\261\001\n" + "*ExternalManagedBackendBucketMigrationState\022=\n" - + "9UNDEFINED_EXTERNAL_MANAGED_BACKEND_BUCKET_MIGRATION_STATE\020\000\022\017\n" + + "9UNDEFINED_EXTERNAL_MANAGED_BACKEND_BUCKET_MIGRAT", + "ION_STATE\020\000\022\017\n" + "\007PREPARE\020\347\261\306\276\001\022\027\n" + "\020TEST_ALL_TRAFFIC\020\362\241\202&\022\032\n" + "\022TEST_BY_PERCENTAGE\020\225\215\374\364\001\"\210\001\n" @@ -11408,8 +11437,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020EXTERNAL_MANAGED\020\213\266\222\364\001\022\020\n" + "\010INTERNAL\020\275\355\226\205\001\022\027\n" + "\020INTERNAL_MANAGED\020\375\327\347\021\022\034\n" - + "\025INTERNAL_SELF_MANA", - "GED\020\316\227\321p\022\017\n" + + "\025INTERNAL_SELF_MANAGED\020\316\227\321p\022\017\n" + "\007INVALID\020\327\373\355\374\001\"\217\001\n" + "\013NetworkTier\022\032\n" + "\026UNDEFINED_NETWORK_TIER\020\000\022\026\n" @@ -11455,14 +11483,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\024\n" + "\022_self_link_with_idB\020\n" + "\016_service_labelB\017\n\r" - + "_service_nameB\r" - + "\n" + + "_service_nameB\r\n" + "\013_subnetworkB\t\n" + "\007_target\"\313\003\n" + "\034ForwardingRuleAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022R\n" - + "\005items\030\300\317\367/ \003(\0132@.google.cloud.compute.v1." - + "ForwardingRuleAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132@.google.cloud.compute.v" + + "1.ForwardingRuleAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -11625,8 +11652,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036GetHealthBackendServiceRequest\022 \n" + "\017backend_service\030\212\300\256\222\001 \001(\tB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022b\n" - + "!resource_group_reference_resource\030\323\376\3555" - + " \001(\0132/.google.cloud.compute.v1.ResourceGroupReferenceB\003\340A\002\"O\n" + + "!resource_group_reference_resource\030\323\376\3555 \001(\0132/.google.cloud." + + "compute.v1.ResourceGroupReferenceB\003\340A\002\"O\n" + "\025GetHealthCheckRequest\022\035\n" + "\014health_check\030\345\252\244\223\001 \001(\tB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\"\335\001\n" @@ -11872,8 +11899,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021GetLicenseRequest\022\027\n" + "\007license\030\301\210\302O \001(\tB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\"P\n" - + "\026GetMachineImageRequest\022\035\n" - + "\r" + + "\026GetMachineImageRequest\022\035\n\r" + "machine_image\030\343\376\376 \001(\tB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\"d\n" + "\025GetMachineTypeRequest\022\034\n" @@ -11977,7 +12003,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "commitment\030\225\226\363\345\001 \001(\tB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\"]\n" - + "\024GetRegionDiskRequest\022\024\n" + + "\024GetRegionDiskReque", + "st\022\024\n" + "\004disk\030\235\233\274\001 \001(\tB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\"f\n" @@ -11994,8 +12021,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\"\177\n" + "$GetRegionInstanceGroupManagerRequest\022&\n" - + "\026instance_group_manager\030\303", - "\367\363v \001(\tB\003\340A\002\022\027\n" + + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\"p\n" + "\035GetRegionInstanceGroupRequest\022\036\n" @@ -12246,14 +12272,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010bindings\030\216\305\244\300\001 \003(\0132" + " .google.cloud.compute.v1.Binding\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\0227\n" - + "\006policy\030\262\312\266+ \001(" - + "\0132\037.google.cloud.compute.v1.PolicyH\001\210\001\001B\007\n" + + "\006policy\030\262\312\266+ " + + "\001(\0132\037.google.cloud.compute.v1.PolicyH\001\210\001\001B\007\n" + "\005_etagB\t\n" + "\007_policy\"\321\001\n" + "\026GlobalSetLabelsRequest\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\000\210\001\001\022O\n" - + "\006labels\030\377\277\301\356\001 \003(\0132;.google.cloud.com" - + "pute.v1.GlobalSetLabelsRequest.LabelsEntry\032-\n" + + "\006labels\030\377\277\301\356\001 \003(\0132;.google.cloud.c" + + "ompute.v1.GlobalSetLabelsRequest.LabelsEntry\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001B\024\n" @@ -12265,21 +12291,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006policy\030\262\312\266+" + " \001(\0132\037.google.cloud.compute.v1.PolicyH\001\210\001\001B\007\n" + "\005_etagB\t\n" - + "\007_policy\"\332\003\n" - + "\024GroupMaintenanceInfo\022)\n" - + "\031maintenance_ongoing_count\030\237\266\346h \001(\005H\000\210\001\001\022)\n" - + "\031maintenance_pending_count\030\273\260\333K \001(\005H\001\210\001\001\022\037\n" - + "\017scheduling_type\030\205\376\244_ \001(\tH\002\210\001\001\022Y\n" - + "\032upcoming_group_maintenance\030\360\311\315\273\001 \001(\0132,." - + "google.cloud.compute.v1.UpcomingMaintenanceH\003\210\001\001\"\200\001\n" + + "\007_policy\"\340\006\n" + + "\024GroupMaintenanceInfo\0222\n" + + "\"instance_maintenance_ongoing_count\030\365\217\317A" + + " \001(\005H\000\210\001\001\0222\n" + + "\"instance_maintenance_pending_count\030\221\212\304$" + + " \001(\005H\001\210\001\001\022)\n" + + "\031maintenance_ongoing_count\030\237\266\346h \001(\005H\002\210\001\001\022)\n" + + "\031maintenance_pending_count\030\273\260\333K \001(\005H\003\210\001\001\022\037\n" + + "\017scheduling_type\030\205\376\244_ \001(\tH\004\210\001\001\0229\n" + + "(subblock_infra_maintenance_ongoing_count\030\376\336\314\256\001" + + " \001(\005H\005\210\001\001\0229\n" + + "(subblock_infra_maintenance_pending_count\030\232\331\301\221\001" + + " \001(\005H\006\210\001\001\022Y\n" + + "\032upcoming_group_maintenance\030\360\311\315\273\001" + + " \001(\0132,.google.cloud.compute.v1.UpcomingMaintenanceH\007\210\001\001\"\200\001\n" + "\016SchedulingType\022\035\n" + "\031UNDEFINED_SCHEDULING_TYPE\020\000\022\017\n" + "\007GROUPED\020\276\326\243\342\001\022*\n" + "\"GROUP_MAINTENANCE_TYPE_UNSPECIFIED\020\276\366\235\325\001\022\022\n" - + "\013INDEPENDENT\020\332\226\310.google.c" - + "loud.compute.v1.HealthChecksAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132>.google.cloud.com" + + "pute.v1.HealthChecksAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -12584,19 +12620,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_weightB\017\n\r" + "_weight_error\"\324\005\n" + "\036HealthStatusForNetworkEndpoint\022R\n" - + "\017backend_service\030\212\300\256\222\001" - + " \001(\01320.google.cloud.compute.v1.BackendServiceReferenceH\000\210\001\001\022R\n" + + "\017backend_service\030\212\300\256\222\001 \001(" + + "\01320.google.cloud.compute.v1.BackendServiceReferenceH\000\210\001\001\022R\n" + "\017forwarding_rule\030\376\245\335\200\001" + " \001(\01320.google.cloud.compute.v1.ForwardingRuleReferenceH\001\210\001\001\022L\n" + "\014health_check\030\345\252\244\223\001" + " \001(\0132-.google.cloud.compute.v1.HealthCheckReferenceH\002\210\001\001\022[\n" - + "\024health_check_service\030\333\233\335\302\001 \001(\01324.google.cloud.comp" - + "ute.v1.HealthCheckServiceReferenceH\003\210\001\001\022\035\n" + + "\024health_check_service\030\333\233\335\302\001" + + " \001(\01324.google.cloud.compute.v1.HealthCheckServiceReferenceH\003\210\001\001\022\035\n" + "\014health_state\030\356\351\277\232\001 \001(\tH\004\210\001\001\022!\n" + "\021ipv6_health_state\030\306\200\340Z \001(\tH\005\210\001\001\"p\n" + "\013HealthState\022\032\n" + "\026UNDEFINED_HEALTH_STATE\020\000\022\020\n" - + "\010DRAINING\020\352\325\214\345\001\022\017\n" + + "\010DRAINING\020\352\325\214\345\001\022\017", + "\n" + "\007HEALTHY\020\375\252\333\321\001\022\021\n" + "\tUNHEALTHY\020\304\271\255\334\001\022\017\n" + "\007UNKNOWN\020\252\360\304\316\001\"2\n" @@ -12634,10 +12671,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_fixed_delayB\r\n" + "\013_percentage\"\250\001\n" + "\022HttpFaultInjection\022>\n" - + "\005abort\030\260\306\224, \001(\0132\'.goo" - + "gle.cloud.compute.v1.HttpFaultAbortH\000\210\001\001\022>\n" - + "\005delay\030\203\363\302- \001(\0132\'.google.cloud.comput", - "e.v1.HttpFaultDelayH\001\210\001\001B\010\n" + + "\005abort\030\260\306\224," + + " \001(\0132\'.google.cloud.compute.v1.HttpFaultAbortH\000\210\001\001\022>\n" + + "\005delay\030\203\363\302-" + + " \001(\0132\'.google.cloud.compute.v1.HttpFaultDelayH\001\210\001\001B\010\n" + "\006_abortB\010\n" + "\006_delay\"\374\001\n" + "\020HttpHeaderAction\022L\n" @@ -12663,8 +12700,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_prefix_matchB\020\n" + "\016_present_matchB\016\n" + "\014_range_matchB\016\n" - + "\014_regex_matchB\017\n" - + "\r" + + "\014_regex_matchB\017\n\r" + "_suffix_match\"\223\001\n" + "\020HttpHeaderOption\022\033\n" + "\013header_name\030\375\301\3074 \001(\tH\000\210\001\001\022\034\n" @@ -12705,29 +12741,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017HttpRetryPolicy\022\033\n" + "\013num_retries\030\215\253\201x \001(\r" + "H\000\210\001\001\022C\n" - + "\017per_try_timeout\030\273\255\304\205\001" - + " \001(\0132!.google.cloud.compute.v1.DurationH\001\210\001\001\022\033\n" + + "\017per_try_timeout\030\273\255\304\205\001 \001(\013" + + "2!.google.cloud.compute.v1.DurationH\001\210\001\001\022\033\n" + "\020retry_conditions\030\257\341\336\r" + " \003(\tB\016\n" + "\014_num_retriesB\022\n" + "\020_per_try_timeout\"\361\005\n" + "\017HttpRouteAction\022A\n" - + "\013cors_policy\030\204\314\235\276\001 \001(\0132#" - + ".google.cloud.compute.v1.CorsPolicyH\000\210\001\001\022T\n" - + "\026fault_injection_policy\030\227\224\352\304\001 \001(\0132+.g" - + "oogle.cloud.compute.v1.HttpFaultInjectionH\001\210\001\001\022F\n" - + "\023max_stream_duration\030\230\245\245\035 \001(\0132!" - + ".google.cloud.compute.v1.DurationH\002\210\001\001\022S\n" - + "\025request_mirror_policy\030\202\340\377h \001(\0132,.googl" - + "e.cloud.compute.v1.RequestMirrorPolicyH\003\210\001\001\022F\n" + + "\013cors_policy\030\204\314\235\276\001" + + " \001(\0132#.google.cloud.compute.v1.CorsPolicyH\000\210\001\001\022T\n" + + "\026fault_injection_policy\030\227\224\352\304\001 \001(\0132+.google.cl" + + "oud.compute.v1.HttpFaultInjectionH\001\210\001\001\022F\n" + + "\023max_stream_duration\030\230\245\245\035" + + " \001(\0132!.google.cloud.compute.v1.DurationH\002\210\001\001\022S\n" + + "\025request_mirror_policy\030\202\340\377h" + + " \001(\0132,.google.cloud.compute.v1.RequestMirrorPolicyH\003\210\001\001\022F\n" + "\014retry_policy\030\251\345\212\033" + " \001(\0132(.google.cloud.compute.v1.HttpRetryPolicyH\004\210\001\001\022;\n" + "\007timeout\030\341\232\275\215\001" + " \001(\0132!.google.cloud.compute.v1.DurationH\005\210\001\001\022A\n" - + "\013url_rewrite\030\274\375\252\202\001 \001(" - + "\0132#.google.cloud.compute.v1.UrlRewriteH\006\210\001\001\022V\n" - + "\031weighted_backend_services\030\321\307\332\240\001 \003" - + "(\0132/.google.cloud.compute.v1.WeightedBackendServiceB\016\n" + + "\013url_rewrite\030\274\375\252\202\001" + + " \001(\0132#.google.cloud.compute.v1.UrlRewriteH\006\210\001\001\022V\n" + + "\031weighted_backend_services\030\321\307\332\240\001 \003(\0132/.goo" + + "gle.cloud.compute.v1.WeightedBackendServiceB\016\n" + "\014_cors_policyB\031\n" + "\027_fault_injection_policyB\026\n" + "\024_max_stream_durationB\030\n" @@ -12736,19 +12772,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_timeoutB\016\n" + "\014_url_rewrite\"\350\004\n\r" + "HttpRouteRule\022`\n" - + "\034custom_error_response_policy\030\353\370\332`" - + " \001(\01322.google.cloud.compute.v1.CustomErrorResponsePolicyH\000\210\001\001\022\034\n" + + "\034custom_error_response_policy\030\353\370\332` \001(\013" + + "22.google.cloud.compute.v1.CustomErrorResponsePolicyH\000\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022I\n\r" - + "header_action\030\250\240\270\234\001 \001" - + "(\0132).google.cloud.compute.v1.HttpHeaderActionH\002\210\001\001\022D\n" - + "\013match_rules\030\375\273\261\263\001 \003(\0132+.go" - + "ogle.cloud.compute.v1.HttpRouteRuleMatch\022\031\n" + + "header_action\030\250\240\270\234\001 \001(\0132).goo" + + "gle.cloud.compute.v1.HttpHeaderActionH\002\210\001\001\022D\n" + + "\013match_rules\030\375\273\261\263\001" + + " \003(\0132+.google.cloud.compute.v1.HttpRouteRuleMatch\022\031\n" + "\010priority\030\244\363\241\324\001 \001(\005H\003\210\001\001\022G\n" + "\014route_action\030\354\251\271\312\001" + " \001(\0132(.google.cloud.compute.v1.HttpRouteActionH\004\210\001\001\022\030\n" + "\007service\030\265\215\217\262\001 \001(\tH\005\210\001\001\022J\n" - + "\014url_redirect\030\254\241\230\301\001 \001(\0132+.googl" - + "e.cloud.compute.v1.HttpRedirectActionH\006\210\001\001B\037\n" + + "\014url_redirect\030\254\241\230\301\001" + + " \001(\0132+.google.cloud.compute.v1.HttpRedirectActionH\006\210\001\001B\037\n" + "\035_custom_error_response_policyB\016\n" + "\014_descriptionB\020\n" + "\016_header_actionB\013\n" @@ -12777,8 +12813,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014architecture\030\323\322\261\220\001 \001(\tH\000\210\001\001\022#\n" + "\022archive_size_bytes\030\312\214\334\265\001 \001(\003H\001\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\002\210\001\001\022G\n\n" - + "deprecated\030\263\313\321\365\001" - + " \001(\0132*.google.cloud.compute.v1.DeprecationStatusH\003\210\001\001\022\034\n" + + "deprecated\030\263\313\321\365\001 \001" + + "(\0132*.google.cloud.compute.v1.DeprecationStatusH\003\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\004\210\001\001\022\035\n" + "\014disk_size_gb\030\267\232\347\226\001 \001(\003H\005\210\001\001\022+\n" + "\033enable_confidential_compute\030\274\353\3310 \001(\010H\006\210\001\001\022\027\n" @@ -12786,13 +12822,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021guest_os_features\030\321\340\347%" + " \003(\0132\'.google.cloud.compute.v1.GuestOsFeature\022\020\n" + "\002id\030\233\032 \001(\004H\010\210\001\001\022U\n" - + "\024image_encryption_key\030\207\316\373\264\001 \001(\0132..goog" - + "le.cloud.compute.v1.CustomerEncryptionKeyH\t\210\001\001\022\024\n" + + "\024image_encryption_key\030\207\316\373\264\001" + + " \001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\t\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\n" + "\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\013\210\001\001\022>\n" - + "\006labels\030\377\277\301\356\001 " - + "\003(\0132*.google.cloud.compute.v1.Image.LabelsEntry\022\030\n\r" + + "\006labels\030\377\277\301\356\001 \003(\0132*.go" + + "ogle.cloud.compute.v1.Image.LabelsEntry\022\030\n\r" + "license_codes\030\250\205\330\025 \003(\003\022\024\n" + "\010licenses\030\322\210\200\241\001 \003(\t\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\014\210\001\001\022;\n" @@ -12801,19 +12837,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "satisfies_pzi\030\241\335\253\345\001 \001(\010H\016\210\001\001\022\036\n\r" + "satisfies_pzs\030\253\335\253\345\001 \001(\010H\017\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\020\210\001\001\022\\\n" - + "\037shielded_instance_initial_state\030\203\304\334[ \001(\0132+.goo" - + "gle.cloud.compute.v1.InitialStateConfigH\021\210\001\001\022\034\n" + + "\037shielded_instance_initial_state\030\203\304\334[" + + " \001(\0132+.google.cloud.compute.v1.InitialStateConfigH\021\210\001\001\022\034\n" + "\013source_disk\030\301\356\264\327\001 \001(\tH\022\210\001\001\022[\n" - + "\032source_disk_encryption_key\030\341\240\270\375\001 \001(\0132..goo" - + "gle.cloud.compute.v1.CustomerEncryptionKeyH\023\210\001\001\022\037\n" + + "\032source_disk_encryption_key\030\341\240\270\375\001 \001(\0132..google.clou" + + "d.compute.v1.CustomerEncryptionKeyH\023\210\001\001\022\037\n" + "\016source_disk_id\030\331\315\311\330\001 \001(\tH\024\210\001\001\022\034\n" + "\014source_image\030\267\350\206\030 \001(\tH\025\210\001\001\022\\\n" - + "\033source_image_encryption_key\030\253\221\365\265\001 \001(\0132..google" - + ".cloud.compute.v1.CustomerEncryptionKeyH\026\210\001\001\022\037\n" + + "\033source_image_encryption_key\030\253\221\365\265\001" + + " \001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\026\210\001\001\022\037\n" + "\017source_image_id\030\243\374\260\032 \001(\tH\027\210\001\001\022\037\n" + "\017source_snapshot\030\350\232\216< \001(\tH\030\210\001\001\022_\n" - + "\036source_snapshot_encryption_key\030\332\216\347\220\001 \001(\0132..goo" - + "gle.cloud.compute.v1.CustomerEncryptionKeyH\031\210\001\001\022\"\n" + + "\036source_snapshot_encryption_key\030\332\216\347\220\001 \001(\0132..google.clou" + + "d.compute.v1.CustomerEncryptionKeyH\031\210\001\001\022\"\n" + "\022source_snapshot_id\030\322\226\230/ \001(\tH\032\210\001\001\022\034\n" + "\013source_type\030\336\361\322\327\001 \001(\tH\033\210\001\001\022\026\n" + "\006status\030\362\237\267V \001(\tH\034\210\001\001\022\035\n" @@ -12839,7 +12875,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023_archive_size_bytesB\025\n" + "\023_creation_timestampB\r\n" + "\013_deprecatedB\016\n" - + "\014_descriptionB\017\n\r" + + "\014_descriptionB\017\n" + + "\r" + "_disk_size_gbB\036\n" + "\034_enable_confidential_computeB\t\n" + "\007_familyB\005\n" @@ -12885,8 +12922,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003dbs\030\265\207\006 \003(\0132*.google.cloud.compute.v1.FileContentBuffer\022;\n" + "\004dbxs\030\371\347\273\001" + " \003(\0132*.google.cloud.compute.v1.FileContentBuffer\022;\n" - + "\004keks\030\302\330\310\001" - + " \003(\0132*.google.cloud.compute.v1.FileContentBuffer\022<\n" + + "\004keks\030\302\330\310\001 \003(\0132*" + + ".google.cloud.compute.v1.FileContentBuffer\022<\n" + "\002pk\030\373\033" + " \001(\0132*.google.cloud.compute.v1.FileContentBufferH\000\210\001\001B\005\n" + "\003_pk\"\312\001\n" @@ -12905,19 +12942,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" - + "\340A\002\362G\004zoneB\r" - + "\n" + + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\274\001\n" + "\032InsertBackendBucketRequest\022P\n" - + "\027backend_bucket_resource\030\230\316\307\265\001 \001(" - + "\0132&.google.cloud.compute.v1.BackendBucketB\003\340A\002\022!\n" + + "\027backend_bucket_resource\030\230\316\307\265\001 \001(\0132&.goog" + + "le.cloud.compute.v1.BackendBucketB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\277\001\n" + "\033InsertBackendServiceRequest\022R\n" - + "\030backend_service_resource\030\243\201\337\245\001 \001(\0132\'.goo" - + "gle.cloud.compute.v1.BackendServiceB\003\340A\002\022!\n" + + "\030backend_service_resource\030\243\201\337\245\001" + + " \001(\0132\'.google.cloud.compute.v1.BackendServiceB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" @@ -12926,8 +12962,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "disk_resource\030\360\320\253\014" + " \001(\0132\035.google.cloud.compute.v1.DiskB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\032\n" - + "\n" + + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" + "\014source_image\030\267\350\206\030 \001(\tH\001\210\001\001\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" @@ -12935,15 +12970,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_idB\017\n\r" + "_source_image\"\314\001\n" + "\037InsertExternalVpnGatewayRequest\022[\n" - + "\035external_vpn_gateway_resource\030\210\337\220\350\001 \001(\0132+.go" - + "ogle.cloud.compute.v1.ExternalVpnGatewayB\003\340A\002\022!\n" + + "\035external_vpn_gateway_resource\030\210\337\220\350\001" + + " \001(\0132+.google.cloud.compute.v1.ExternalVpnGatewayB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\304\001\n" + "\033InsertFirewallPolicyRequest\022R\n" - + "\030firewall_policy_resource\030\274\266\207\354\001 \001(\0132\'.goog" - + "le.cloud.compute.v1.FirewallPolicyB\003\340A\002\022&\n" + + "\030firewall_policy_resource\030\274\266\207\354\001" + + " \001(\0132\'.google.cloud.compute.v1.FirewallPolicyB\003\340A\002\022&\n" + "\tparent_id\030\320\341\232\333\001 \001(\tB\017\340A\002\362G\tparent_id\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\253\001\n" @@ -12955,8 +12990,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\340\001\n" + "\033InsertForwardingRuleRequest\022R\n" - + "\030forwarding_rule_resource\030\257\300\320\217\001" - + " \001(\0132\'.google.cloud.compute.v1.ForwardingRuleB\003\340A\002\022!\n" + + "\030forwarding_rule_resource\030\257\300\320\217\001 \001(\0132\'" + + ".google.cloud.compute.v1.ForwardingRuleB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -12967,33 +13002,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.AddressB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r" + + "\n" + "\013_request_id\"\305\001\n" + "!InsertGlobalForwardingRuleRequest\022R\n" + "\030forwarding_rule_resource\030\257\300\320\217\001" + " \001(\0132\'.google.cloud.compute.v1.ForwardingRuleB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r" + + "\n" + "\013_request_id\"\330\001\n" + "\'InsertGlobalNetworkEndpointGroupRequest\022_\n" - + "\037network_endpoint_group_resource\030\247\315\333\372\001 \001(\0132-.google." - + "cloud.compute.v1.NetworkEndpointGroupB\003\340A\002\022!\n" + + "\037network_endpoint_group_resource\030\247\315\333\372\001" + + " \001(\0132-.google.cloud.compute.v1.NetworkEndpointGroupB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\032\n" - + "\n" + + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\333\001\n" + ")InsertGlobalPublicDelegatedPrefixeRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022`\n" - + " public_delegated_prefix_resource\030\205\370\330\026" - + " \001(\0132..google.cloud.compute.v1.PublicDelegatedPrefixB\003\340A\002\022\032\n\n" + + " public_delegated_prefix_resource\030\205\370\330\026 \001(\0132." + + ".google.cloud.compute.v1.PublicDelegatedPrefixB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\265\001\n" + "\030InsertHealthCheckRequest\022K\n" - + "\025health_check_resource\030\250\303\244`" - + " \001(\0132$.google.cloud.compute.v1.HealthCheckB\003\340A\002\022!\n" + + "\025health_check_resource\030\250\303\244` \001(\0132$." + + "google.cloud.compute.v1.HealthCheckB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" @@ -13018,8 +13054,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\300\002\n" + ".InsertInstanceGroupManagerResizeRequestRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022{\n" - + ".instance_group_manager_resize_request_resource\030\355\276\265\337\001" - + " \001(\0132:.google.cloud.compute.v1.InstanceGroupManagerResizeRequestB\003\340A\002\022!\n" + + ".instance_group_manager_resize_request_resource\030\355\276\265\337\001 " + + "\001(\0132:.google.cloud.compute.v1.InstanceGroupManagerResizeRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -13027,8 +13063,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\331\001\n" + "\032InsertInstanceGroupRequest\022P\n" - + "\027instance_group_resource\030\270\265\325\210\001" - + " \001(\0132&.google.cloud.compute.v1.InstanceGroupB\003\340A\002\022!\n" + + "\027instance_group_resource\030\270\265\325\210\001 " + + "\001(\0132&.google.cloud.compute.v1.InstanceGroupB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -13073,8 +13109,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\250\002\n" + "#InsertInterconnectAttachmentRequest\022a\n" - + " interconnect_attachment_resource\030\371\244\240e" - + " \001(\0132/.google.cloud.compute.v1.InterconnectAttachmentB\003\340A\002\022!\n" + + " interconnect_attachment_resource\030\371\244\240e \001(\0132/.g" + + "oogle.cloud.compute.v1.InterconnectAttachmentB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -13090,8 +13126,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\270\001\n" + "\031InsertInterconnectRequest\022M\n" - + "\025interconnect_resource\030\237\241\314\275\001" - + " \001(\0132%.google.cloud.compute.v1.InterconnectB\003\340A\002\022!\n" + + "\025interconnect_resource\030\237\241\314\275\001 \001(\0132%." + + "google.cloud.compute.v1.InterconnectB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" @@ -13104,8 +13140,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\356\001\n" + "\031InsertMachineImageRequest\022M\n" - + "\026machine_image_resource\030\352\252\373\034" - + " \001(\0132%.google.cloud.compute.v1.MachineImageB\003\340A\002\022!\n" + + "\026machine_image_resource\030\352\252\373\034 \001(\0132%.g" + + "oogle.cloud.compute.v1.MachineImageB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022 \n" @@ -13121,12 +13157,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\267\002\n" + "\'InsertNetworkEdgeSecurityServiceRequest\022l\n" - + "&network_edge_security_service_resource\030\246\243\333\343\001 \001(\01323.google" - + ".cloud.compute.v1.NetworkEdgeSecurityServiceB\003\340A\002\022!\n" + + "&network_edge_security_service_resource\030\246\243\333\343\001" + + " \001(\01323.google.cloud.compute.v1.NetworkEdgeSecurityServiceB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" - + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n" - + "\n" + + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\035\n\r" + "validate_only\030\265\372\337s \001(\010H\001\210\001\001B\r\n" + "\013_request_idB\020\n" @@ -13141,8 +13176,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\306\001\n" + "\"InsertNetworkFirewallPolicyRequest\022R\n" - + "\030firewall_policy_resource\030\274\266\207\354\001" - + " \001(\0132\'.google.cloud.compute.v1.FirewallPolicyB\003\340A\002\022!\n" + + "\030firewall_policy_resource\030\274\266\207\354\001 \001(\013" + + "2\'.google.cloud.compute.v1.FirewallPolicyB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" @@ -13156,8 +13191,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\361\001\n" + "\026InsertNodeGroupRequest\022\"\n" + "\022initial_node_count\030\355\310\247\" \001(\005B\003\340A\002\022H\n" - + "\023node_group_resource\030\253\263\372\360\001 \001(\0132" - + "\".google.cloud.compute.v1.NodeGroupB\003\340A\002\022!\n" + + "\023node_group_resource\030\253\263\372\360\001" + + " \001(\0132\".google.cloud.compute.v1.NodeGroupB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -13173,8 +13208,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\343\001\n" + "\034InsertPacketMirroringRequest\022T\n" - + "\031packet_mirroring_resource\030\241\374\250\353\001 \001(\0132" - + "(.google.cloud.compute.v1.PacketMirroringB\003\340A\002\022!\n" + + "\031packet_mirroring_resource\030\241\374\250\353\001 \001(\0132(.google" + + ".cloud.compute.v1.PacketMirroringB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -13183,8 +13218,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "$InsertPublicAdvertisedPrefixeRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022b\n" - + "!public_advertised_prefix_resource\030\217\327\262o \001(\0132" - + "/.google.cloud.compute.v1.PublicAdvertisedPrefixB\003\340A\002\022\032\n\n" + + "!public_advertised_prefix_resource\030\217\327\262o \001(\0132/.google" + + ".cloud.compute.v1.PublicAdvertisedPrefixB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\366\001\n" + "#InsertPublicDelegatedPrefixeRequest\022!\n" @@ -13196,16 +13231,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\330\001\n" + "\035InsertRegionAutoscalerRequest\022H\n" - + "\023autoscaler_resource\030\366\360\377b" - + " \001(\0132#.google.cloud.compute.v1.AutoscalerB\003\340A\002\022!\n" + + "\023autoscaler_resource\030\366\360\377b " + + "\001(\0132#.google.cloud.compute.v1.AutoscalerB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + + "req", + "uest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\346\001\n" + "!InsertRegionBackendServiceRequest\022R\n" - + "\030backend_service_resource\030\243\201\337\245\001 \001(\013" - + "2\'.google.cloud.compute.v1.BackendServiceB\003\340A\002\022!\n" + + "\030backend_service_resource\030\243\201\337\245\001 \001(\0132\'.googl" + + "e.cloud.compute.v1.BackendServiceB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -13233,8 +13269,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025health_check_resource\030\250\303\244`" + " \001(\0132$.google.cloud.compute.v1.HealthCheckB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" - + "\340A", - "\002\362G\007project\022\037\n" + + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\363\001\n" @@ -13244,8 +13279,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r" - + "\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\370\001\n" + "\'InsertRegionInstanceGroupManagerRequest\022^\n" + "\037instance_group_manager_resource\030\212\212\276|" @@ -13272,24 +13306,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\371\001\n" + "\'InsertRegionNetworkEndpointGroupRequest\022_\n" - + "\037network_endpoint_group_resource\030\247\315\333\372\001 \001(\0132-.google.clo" - + "ud.compute.v1.NetworkEndpointGroupB\003\340A\002\022!\n" + + "\037network_endpoint_group_resource\030\247\315\333\372\001" + + " \001(\0132-.google.cloud.compute.v1.NetworkEndpointGroupB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\355\001\n" + "(InsertRegionNetworkFirewallPolicyRequest\022R\n" - + "\030firewall_policy_resource\030\274\266\207\354\001 \001(\0132\'.goog" - + "le.cloud.compute.v1.FirewallPolicyB\003\340A\002\022!\n" + + "\030firewall_policy_resource\030\274\266\207\354\001" + + " \001(\0132\'.google.cloud.compute.v1.FirewallPolicyB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\370\001\n" + "\'InsertRegionNotificationEndpointRequest\022^\n" - + "\036notification_endpoint_resource\030\244\372\261\241\001 \001(\0132-" - + ".google.cloud.compute.v1.NotificationEndpointB\003\340A\002\022!\n" + + "\036notification_endpoint_resource\030\244\372\261\241\001 \001(\0132-.google." + + "cloud.compute.v1.NotificationEndpointB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -13375,16 +13409,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022>\n" + "\016route_resource\030\304\212\277k" - + " \001(\0132\036.google.cloud.compute.v1.RouteB\003\340A\002B\r" - + "\n" + + " \001(\0132\036.google.cloud.compute.v1.RouteB\003\340A\002B\r\n" + "\013_request_id\"\306\001\n" + "\023InsertRouterRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022@\n" - + "\017router_resource\030\304\200\202J \001(" - + "\0132\037.google.cloud.compute.v1.RouterB\003\340A\002B\r\n" + + "\017router_resource\030\304\200\202J" + + " \001(\0132\037.google.cloud.compute.v1.RouterB\003\340A\002B\r\n" + "\013_request_id\"\357\001\n" + "\033InsertSecurityPolicyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" @@ -13414,8 +13447,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022Q\n" - + "\030ssl_certificate_resource\030\211\324\225V \001(\0132" - + "\'.google.cloud.compute.v1.SslCertificateB\003\340A\002B\r\n" + + "\030ssl_certificate_resource\030\211\324\225V" + + " \001(\0132\'.google.cloud.compute.v1.SslCertificateB\003\340A\002B\r\n" + "\013_request_id\"\260\001\n" + "\026InsertSslPolicyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" @@ -13428,8 +13461,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022K\n" - + "\025storage_pool_resource\030\215\274\371J" - + " \001(\0132$.google.cloud.compute.v1.StoragePoolB\003\340A\002\022\033\n" + + "\025storage_pool_resource\030\215\274\371J \001(\0132$." + + "google.cloud.compute.v1.StoragePoolB\003\340A\002\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\322\001\n" @@ -13438,36 +13471,37 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022H\n" - + "\023subnetwork_resource\030\277\332\221\024" - + " \001(\0132#.google.cloud.compute.v1.SubnetworkB\003\340A\002B\r\n" + + "\023subnetwork_resource\030\277\332\221\024 \001(\013" + + "2#.google.cloud.compute.v1.SubnetworkB\003\340A\002B\r\n" + "\013_request_id\"\303\001\n" + "\034InsertTargetGrpcProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022U\n" - + "\032target_grpc_proxy_resource\030\322\352\353\234\001 \001(" - + "\0132(.google.cloud.compute.v1.TargetGrpcProxyB\003\340A\002B\r\n" + + "\032target_grpc_proxy_resource\030\322\352\353\234\001 \001(\0132(.goog" + + "le.cloud.compute.v1.TargetGrpcProxyB\003\340A\002B\r\n" + "\013_request_id\"\302\001\n" + "\034InsertTargetHttpProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022T\n" - + "\032target_http_proxy_resource\030\250\257\343\013 \001(\0132(" - + ".google.cloud.compute.v1.TargetHttpProxyB\003\340A\002B\r\n" + + "\032target_http_proxy_resource\030\250\257\343\013" + + " \001(\0132(.google.cloud.compute.v1.TargetHttpProxyB\003\340A\002B\r\n" + "\013_request_id\"\306\001\n" + "\035InsertTargetHttpsProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022W\n" - + "\033target_https_proxy_resource\030\201\255\344\316\001 \001(\0132)" - + ".google.cloud.compute.v1.TargetHttpsProxyB\003\340A\002B\r\n" + + "\033target_https_proxy_resource\030\201\255\344\316\001" + + " \001(\0132).google.cloud.compute.v1.TargetHttpsProxyB\003\340A\002B\r" + + "\n" + "\013_request_id\"\334\001\n" + "\033InsertTargetInstanceRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022R\n" - + "\030target_instance_resource\030\312\342\240\315\001 \001(\0132\'.goo" - + "gle.cloud.compute.v1.TargetInstanceB\003\340A\002\022\033\n" + + "\030target_instance_resource\030\312\342\240\315\001" + + " \001(\0132\'.google.cloud.compute.v1.TargetInstanceB\003\340A\002\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\323\001\n" @@ -13476,12 +13510,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022I\n" - + "\024target_pool_resource\030\243\335\2450 \001(" - + "\0132#.google.cloud.compute.v1.TargetPoolB\003\340A\002B\r\n" + + "\024target_pool_resource\030\243\335\2450" + + " \001(\0132#.google.cloud.compute.v1.TargetPoolB\003\340A\002B\r\n" + "\013_request_id\"\277\001\n" + "\033InsertTargetSslProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\032\n\n" + + "\340A\002\362G\007project\022\032\n" + + "\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022R\n" + "\031target_ssl_proxy_resource\030\300\375\333C" + " \001(\0132\'.google.cloud.compute.v1.TargetSslProxyB\003\340A\002B\r\n" @@ -13514,7 +13549,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022I\n" + "\024vpn_gateway_resource\030\224\267\216W" - + " \001(\0132#.google.cloud.compute.v1.VpnGatewayB\003\340A\002B\r\n" + + " \001(\0132#.google.cloud.compute.v1.VpnGatewayB\003\340A\002B\r" + + "\n" + "\013_request_id\"\320\001\n" + "\026InsertVpnTunnelRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" @@ -13525,8 +13561,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\".google.cloud.compute.v1.VpnTunnelB\003\340A\002B\r\n" + "\013_request_id\"\347\035\n" + "\010Instance\022\\\n" - + "\031advanced_machine_features\030\262\347\252\303\001" - + " \001(\01320.google.cloud.compute.v1.AdvancedMachineFeaturesH\000\210\001\001\022\037\n" + + "\031advanced_machine_features\030\262\347\252\303\001 \001(\01320.g" + + "oogle.cloud.compute.v1.AdvancedMachineFeaturesH\000\210\001\001\022\037\n" + "\016can_ip_forward\030\374\206\204\337\001 \001(\010H\001\210\001\001\022b\n" + "\034confidential_instance_config\030\365\222\372\351\001" + " \001(\01323.google.cloud.compute.v1.ConfidentialInstanceConfigH\002\210\001\001\022\035\n" @@ -13535,16 +13571,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023deletion_protection\030\352\377\262\332\001 \001(\010H\005\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\006\210\001\001\0227\n" + "\005disks\030\366\314\312- \003(\0132%.google.cloud.compute.v1.AttachedDisk\022F\n" - + "\016display_device\030\363\210\274{" - + " \001(\0132&.google.cloud.compute.v1.DisplayDeviceH\007\210\001\001\022\033\n" + + "\016display_device\030\363\210\274{ " + + "\001(\0132&.google.cloud.compute.v1.DisplayDeviceH\007\210\001\001\022\033\n" + "\013fingerprint\030\344\321\363o \001(\tH\010\210\001\001\022J\n" - + "\022guest_accelerators\030\357\314\207\335\001 \003(\0132*." - + "google.cloud.compute.v1.AcceleratorConfig\022\030\n" + + "\022guest_accelerators\030\357\314\207\335\001" + + " \003(\0132*.google.cloud.compute.v1.AcceleratorConfig\022\030\n" + "\010hostname\030\263\270\205q \001(\tH\t\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\n" + "\210\001\001\022W\n" - + "\027instance_encryption_key\030\215\301\357\036 \001(" - + "\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\013\210\001\001\022*\n" + + "\027instance_encryption_key\030\215\301\357\036 \001(\0132..goog" + + "le.cloud.compute.v1.CustomerEncryptionKeyH\013\210\001\001\022*\n" + "\032key_revocation_action_type\030\342\334\300p \001(\tH\014\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\r" + "\210\001\001\022!\n" @@ -13560,35 +13596,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132!.google.cloud.compute.v1.MetadataH\023\210\001\001\022 \n" + "\020min_cpu_platform\030\367\233\352s \001(\tH\024\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\025\210\001\001\022H\n" - + "\022network_interfaces\030\213\332\222\031 \003(\013" - + "2).google.cloud.compute.v1.NetworkInterface\022^\n" - + "\032network_performance_config\030\342\227\370\275\001 " - + "\001(\01321.google.cloud.compute.v1.NetworkPerformanceConfigH\026\210\001\001\022?\n" - + "\006params\030\206\363\253% \001(\0132\'" - + ".google.cloud.compute.v1.InstanceParamsH\027\210\001\001\022*\n" + + "\022network_interfaces\030\213\332\222\031" + + " \003(\0132).google.cloud.compute.v1.NetworkInterface\022^\n" + + "\032network_performance_config\030\342\227\370\275\001 \001(\01321.go" + + "ogle.cloud.compute.v1.NetworkPerformanceConfigH\026\210\001\001\022?\n" + + "\006params\030\206\363\253%" + + " \001(\0132\'.google.cloud.compute.v1.InstanceParamsH\027\210\001\001\022*\n" + "\032private_ipv6_google_access\030\216\314\202\027 \001(\tH\030\210\001\001\022R\n" - + "\024reservation_affinity\030\273\270\242K \001(" - + "\0132,.google.cloud.compute.v1.ReservationAffinityH\031\210\001\001\022\034\n" + + "\024reservation_affinity\030\273\270\242K \001(\0132,.goog" + + "le.cloud.compute.v1.ReservationAffinityH\031\210\001\001\022\034\n" + "\021resource_policies\030\341\234\314\n" + " \003(\t\022H\n" + "\017resource_status\030\303\372\367v" + " \001(\0132\'.google.cloud.compute.v1.ResourceStatusH\032\210\001\001\022\036\n\r" + "satisfies_pzi\030\241\335\253\345\001 \001(\010H\033\210\001\001\022\036\n\r" + "satisfies_pzs\030\253\335\253\345\001 \001(\010H\034\210\001\001\022@\n\n" - + "scheduling\030\224\313\261\270\001" - + " \001(\0132#.google.cloud.compute.v1.SchedulingH\035\210\001\001\022\032\n" + + "scheduling\030\224\313\261\270\001 \001(\0132#.g" + + "oogle.cloud.compute.v1.SchedulingH\035\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\036\210\001\001\022E\n" + "\020service_accounts\030\260\304\253\204\001" + " \003(\0132\'.google.cloud.compute.v1.ServiceAccount\022Y\n" + "\030shielded_instance_config\030\265\213\221\006" + " \001(\0132/.google.cloud.compute.v1.ShieldedInstanceConfigH\037\210\001\001\022l\n" - + "\"shielded_instance_integrity_policy\030\227\242\207N " - + "\001(\01328.google.cloud.compute.v1.ShieldedInstanceIntegrityPolicyH" - + " \210\001\001\022$\n" + + "\"shielded_instance_integrity_policy\030\227\242\207N \001(\01328.go" + + "ogle.cloud.compute.v1.ShieldedInstanceIntegrityPolicyH \210\001\001\022$\n" + "\024source_machine_image\030\277\334\260\n" + " \001(\tH!\210\001\001\022c\n" - + "#source_machine_image_encryption_key\030\243\373\371[ \001(\0132..googl" - + "e.cloud.compute.v1.CustomerEncryptionKeyH\"\210\001\001\022 \n" + + "#source_machine_image_encryption_key\030\243\373\371[" + + " \001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\"\210\001\001\022 \n" + "\020start_restricted\030\330\320\375: \001(\010H#\210\001\001\022\026\n" + "\006status\030\362\237\267V \001(\tH$\210\001\001\022\037\n" + "\016status_message\030\272\311\351\215\001 \001(\tH%\210\001\001\0223\n" @@ -13637,7 +13672,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022_label_fingerprintB\027\n" + "\025_last_start_timestampB\026\n" + "\024_last_stop_timestampB\033\n" - + "\031_last_suspended_timestampB\017\n\r" + + "\031_last_suspended_timestampB\017\n" + + "\r" + "_machine_typeB\013\n" + "\t_metadataB\023\n" + "\021_min_cpu_platformB\007\n" @@ -13662,8 +13698,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\271\003\n" + "\026InstanceAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022L\n" - + "\005items\030\300\317\367/ \003(\0132:.goog" - + "le.cloud.compute.v1.InstanceAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132:.google.cloud" + + ".compute.v1.InstanceAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -13680,8 +13716,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\251\001\n" + "\027InstanceConsumptionData\022R\n" - + "\020consumption_info\030\322\345\344E \001(\01320.google" - + ".cloud.compute.v1.InstanceConsumptionInfoH\000\210\001\001\022\030\n" + + "\020consumption_info\030\322\345\344E \001(\01320.google.cloud.c" + + "ompute.v1.InstanceConsumptionInfoH\000\210\001\001\022\030\n" + "\010instance\030\225\251\332\010 \001(\tH\001\210\001\001B\023\n" + "\021_consumption_infoB\013\n" + "\t_instance\"\320\001\n" @@ -13691,7 +13727,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tmemory_mb\030\223\223\2507 \001(\005H\002\210\001\001\022\036\n\r" + "min_node_cpus\030\273\244\242\227\001 \001(\005H\003\210\001\001B\r\n" + "\013_guest_cpusB\017\n\r" - + "_local_ssd_gbB\014\n\n" + + "_local_ssd_gbB\014\n" + + "\n" + "_memory_mbB\020\n" + "\016_min_node_cpus\"\225\004\n\r" + "InstanceGroup\022\"\n" @@ -13724,8 +13761,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\310\003\n" + "\033InstanceGroupAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022Q\n" - + "\005items\030\300\317\367/ \003(" - + "\0132?.google.cloud.compute.v1.InstanceGroupAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132?.goog" + + "le.cloud.compute.v1.InstanceGroupAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -13734,8 +13771,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032_\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022@\n" - + "\005value\030\002 \001(\01321.go" - + "ogle.cloud.compute.v1.InstanceGroupsScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01321.google.clo" + + "ud.compute.v1.InstanceGroupsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -13755,25 +13792,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\375\022\n" + "\024InstanceGroupManager\022e\n" - + "\024all_instances_config\030\201\256\3305 \001(\0132?.googl" - + "e.cloud.compute.v1.InstanceGroupManagerAllInstancesConfigH\000\210\001\001\022a\n" - + "\025auto_healing_policies\030\205\347\350\331\001 \003(\0132>.google.cloud.compute" - + ".v1.InstanceGroupManagerAutoHealingPolicy\022#\n" + + "\024all_instances_config\030\201\256\3305 \001(\0132?.google.cloud." + + "compute.v1.InstanceGroupManagerAllInstancesConfigH\000\210\001\001\022a\n" + + "\025auto_healing_policies\030\205\347\350\331\001" + + " \003(\0132>.google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy\022#\n" + "\022base_instance_name\030\207\226\305\271\001 \001(\tH\001\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\002\210\001\001\022\\\n" - + "\017current_actions\030\267\310\234N \001(\0132;.google.cloud.co" - + "mpute.v1.InstanceGroupManagerActionsSummaryH\003\210\001\001\022\034\n" + + "\017current_actions\030\267\310\234N \001(\0132;.google.cloud.compute.v1" + + ".InstanceGroupManagerActionsSummaryH\003\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\004\210\001\001\022Q\n" - + "\023distribution_policy\030\315\356\362\376\001 \001(\0132+.google" - + ".cloud.compute.v1.DistributionPolicyH\005\210\001\001\022\033\n" + + "\023distribution_policy\030\315\356\362\376\001" + + " \001(\0132+.google.cloud.compute.v1.DistributionPolicyH\005\210\001\001\022\033\n" + "\013fingerprint\030\344\321\363o \001(\tH\006\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\007\210\001\001\022s\n" - + "\033instance_flexibility_policy\030\202\216\354\014" - + " \001(\0132F.google.cloud.compute.v1.Insta" - + "nceGroupManagerInstanceFlexibilityPolicyH\010\210\001\001\022\036\n" + + "\033instance_flexibility_policy\030\202\216\354\014 \001(\013" + + "2F.google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyH\010\210\001\001\022\036\n" + "\016instance_group\030\325\324\325& \001(\tH\t\210\001\001\022p\n" - + "\031instance_lifecycle_policy\030\221\264\315\325\001 \001(\0132D.g" - + "oogle.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicyH\n" + + "\031instance_lifecycle_policy\030\221\264\315\325\001 \001(\0132D.google.cl" + + "oud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicyH\n" + "\210\001\001\022\"\n" + "\021instance_template\030\344\201\273\223\001 \001(\tH\013\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\014\210\001\001\022/\n" @@ -13784,25 +13820,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\0132\".google.cloud.compute.v1.NamedPort\022\026\n" + "\006region\030\364\315\240B \001(\tH\017\210\001\001\022`\n" + "\021resource_policies\030\341\234\314\n" - + " \001(\0132=.go" - + "ogle.cloud.compute.v1.InstanceGroupManagerResourcePoliciesH\020\210\001\001\022\036\n\r" + + " \001(\0132=.google.clo" + + "ud.compute.v1.InstanceGroupManagerResourcePoliciesH\020\210\001\001\022\036\n\r" + "satisfies_pzi\030\241\335\253\345\001 \001(\010H\021\210\001\001\022\036\n\r" + "satisfies_pzs\030\253\335\253\345\001 \001(\010H\022\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\023\210\001\001\022[\n" - + "\016standby_policy\030\204\206\216\356\001 \001(\0132:.google.cloud.c" - + "ompute.v1.InstanceGroupManagerStandbyPolicyH\024\210\001\001\022H\n" - + "\017stateful_policy\030\205\303\325\026 \001(\0132\'.g" - + "oogle.cloud.compute.v1.StatefulPolicyH\025\210\001\001\022K\n" - + "\006status\030\362\237\267V \001(\01323.google.cloud.com" - + "pute.v1.InstanceGroupManagerStatusH\026\210\001\001\022\030\n" + + "\016standby_p", + "olicy\030\204\206\216\356\001 \001(\0132:.google.cloud.compute.v" + + "1.InstanceGroupManagerStandbyPolicyH\024\210\001\001\022H\n" + + "\017stateful_policy\030\205\303\325\026" + + " \001(\0132\'.google.cloud.compute.v1.StatefulPolicyH\025\210\001\001\022K\n" + + "\006status\030\362\237\267V" + + " \001(\01323.google.cloud.compute.v1.InstanceGroupManagerStatusH\026\210\001\001\022\030\n" + "\014target_pools\030\251\237\240\240\001 \003(\t\022\033\n" + "\013target_size\030\357\363\375\035 \001(\005H\027\210\001\001\022#\n" + "\023target_stopped_size\030\241\326\223\001 \001(\005H\030\210\001\001\022&\n" + "\025target_suspended_size\030\323\210\364\222\001 \001(\005H\031\210\001\001\022X\n\r" - + "update_policy\030\350\312\352S \001(\01329." - + "google.cloud.compute.v1.InstanceGroupManagerUpdatePolicyH\032\210\001\001\022I\n" - + "\010versions\030\233\375\271M \003" - + "(\01324.google.cloud.compute.v1.InstanceGroupManagerVersion\022\024\n" + + "update_policy\030\350\312\352S \001(\01329.google.c" + + "loud.compute.v1.InstanceGroupManagerUpdatePolicyH\032\210\001\001\022I\n" + + "\010versions\030\233\375\271M \003(\01324.goo" + + "gle.cloud.compute.v1.InstanceGroupManagerVersion\022\024\n" + "\004zone\030\254\307\344\001 \001(\tH\033\210\001\001\"n\n" + "\033ListManagedInstancesResults\022,\n" + "(UNDEFINED_LIST_MANAGED_INSTANCES_RESULTS\020\000\022\017\n" @@ -13818,8 +13855,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003_idB\036\n" + "\034_instance_flexibility_policyB\021\n" + "\017_instance_groupB\034\n" - + "\032_", - "instance_lifecycle_policyB\024\n" + + "\032_instance_lifecycle_policyB\024\n" + "\022_instance_templateB\007\n" + "\005_kindB!\n" + "\037_list_managed_instances_resultsB\007\n" @@ -13837,7 +13873,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026_target_suspended_sizeB\020\n" + "\016_update_policyB\007\n" + "\005_zone\"\323\004\n" - + "\"InstanceGroupManagerActionsSummary\022\033\n\n" + + "\"InstanceGroupManagerActionsSummary\022\033\n" + + "\n" + "abandoning\030\315\362\350\321\001 \001(\005H\000\210\001\001\022\030\n" + "\010creating\030\271\335\205d \001(\005H\001\210\001\001\022)\n" + "\030creating_without_retries\030\311\366\261\260\001" @@ -13869,8 +13906,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_verifying\"\335\003\n" + "\"InstanceGroupManagerAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022X\n" - + "\005items\030\300\317\367/ \003(\0132" - + "F.google.cloud.compute.v1.InstanceGroupManagerAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132F.google" + + ".cloud.compute.v1.InstanceGroupManagerAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -13879,16 +13916,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032f\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022G\n" - + "\005value\030\002 \001(\013" - + "28.google.cloud.compute.v1.InstanceGroupManagersScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01328.googl" + + "e.cloud.compute.v1.InstanceGroupManagersScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" + "_self_linkB\n\n" + "\010_warning\"\205\001\n" + "&InstanceGroupManagerAllInstancesConfig\022L\n\n" - + "properties\030\263\232\266F \001(\01320.google." - + "cloud.compute.v1.InstancePropertiesPatchH\000\210\001\001B\r\n" + + "properties\030\263\232\266F" + + " \001(\01320.google.cloud.compute.v1.InstancePropertiesPatchH\000\210\001\001B\r\n" + "\013_properties\"\220\001\n" + "%InstanceGroupManagerAutoHealingPolicy\022\035\n" + "\014health_check\030\345\252\244\223\001 \001(\tH\000\210\001\001\022!\n" @@ -13897,12 +13934,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022_initial_delay_sec\"\304\002\n" + "-InstanceGroupManagerInstanceFlexibilityPolicy\022~\n" + "\023instance_selections\030\321\204\371\n" - + " \003(\0132^.google.cloud.compute.v1.Inst" - + "anceGroupManagerInstanceFlexibilityPolicy.InstanceSelectionsEntry\032\222\001\n" + + " \003(\0132^.google.cloud.compute.v1.InstanceGrou" + + "pManagerInstanceFlexibilityPolicy.InstanceSelectionsEntry\032\222\001\n" + "\027InstanceSelectionsEntry\022\013\n" + "\003key\030\001 \001(\t\022f\n" - + "\005value\030\002 \001(\0132W.google.cloud.compute.v1.InstanceGrou" - + "pManagerInstanceFlexibilityPolicyInstanceSelection:\0028\001\"y\n" + + "\005value\030\002 \001(\0132W.google.cloud.compute.v1.InstanceGroupManager" + + "InstanceFlexibilityPolicyInstanceSelection:\0028\001\"y\n" + ">InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection\022\030\n\r" + "machine_types\030\201\335\201& \003(\t\022\024\n" + "\004rank\030\254\230\325\001 \001(\005H\000\210\001\001B\007\n" @@ -13946,8 +13983,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tself_link\030\215\222\305\331\001 \001(\tH\007\210\001\001\022!\n" + "\021self_link_with_id\030\202\254\235\025 \001(\tH\010\210\001\001\022\025\n" + "\005state\030\221\211\2534 \001(\tH\t\210\001\001\022X\n" - + "\006status\030\362\237\267V \001(\0132" - + "@.google.cloud.compute.v1.InstanceGroupManagerResizeRequestStatusH\n" + + "\006status\030\362\237\267V \001(\0132@.google" + + ".cloud.compute.v1.InstanceGroupManagerResizeRequestStatusH\n" + "\210\001\001\022\024\n" + "\004zone\030\254\307\344\001 \001(\tH\013\210\001\001\"\217\001\n" + "\005State\022\023\n" @@ -13973,8 +14010,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\'InstanceGroupManagerResizeRequestStatus\0225\n" + "\005error\030\210\244\223." + " \001(\0132\036.google.cloud.compute.v1.ErrorH\000\210\001\001\022j\n" - + "\014last_attempt\030\244\254\250\317\001 \001(\0132K.google.cloud.compute.v1" - + ".InstanceGroupManagerResizeRequestStatusLastAttemptH\001\210\001\001B\010\n" + + "\014last_attempt\030\244\254\250\317\001 \001(\0132K.google.cloud.compute.v1.Instanc" + + "eGroupManagerResizeRequestStatusLastAttemptH\001\210\001\001B\010\n" + "\006_errorB\017\n\r" + "_last_attempt\"u\n" + "2InstanceGroupManagerResizeRequestStatusLastAttempt\0225\n" @@ -13983,8 +14020,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_error\"\334\002\n" + ".InstanceGroupManagerResizeRequestsListResponse\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022L\n" - + "\005items\030\300\317\367/" - + " \003(\0132:.google.cloud.compute.v1.InstanceGroupManagerResizeRequest\022\024\n" + + "\005items\030\300\317\367/ \003(" + + "\0132:.google.cloud.compute.v1.InstanceGroupManagerResizeRequest\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -14008,14 +14045,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022_initial_delay_secB\007\n" + "\005_mode\"\321\003\n" + "\032InstanceGroupManagerStatus\022k\n" - + "\024all_instances_config\030\201\256\3305 \001(\0132E.google.cloud.com" - + "pute.v1.InstanceGroupManagerStatusAllInstancesConfigH\000\210\001\001\022\033\n\n" + + "\024all_instances_config\030\201\256\3305 \001(\0132E.google.cloud.compute.v1." + + "InstanceGroupManagerStatusAllInstancesConfigH\000\210\001\001\022\033\n\n" + "autoscaler\030\327\375\322\366\001 \001(\tH\001\210\001\001\022\031\n" + "\tis_stable\030\360\357\3303 \001(\010H\002\210\001\001\022U\n" - + "\010stateful\030\314\346\310t \001(\0132;.google.cloud.compute.v1" - + ".InstanceGroupManagerStatusStatefulH\003\210\001\001\022a\n" - + "\016version_target\030\330\335\376\211\001 \001(\0132@.google.cl" - + "oud.compute.v1.InstanceGroupManagerStatusVersionTargetH\004\210\001\001B\027\n" + + "\010stateful\030\314\346\310t" + + " \001(\0132;.google.cloud.compute.v1.InstanceGroupManagerStatusStatefulH\003\210\001\001\022a\n" + + "\016version_target\030\330\335\376\211\001 \001(\0132@.google.cloud.comp" + + "ute.v1.InstanceGroupManagerStatusVersionTargetH\004\210\001\001B\027\n" + "\025_all_instances_configB\r\n" + "\013_autoscalerB\014\n\n" + "_is_stableB\013\n" @@ -14028,9 +14065,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_effective\"\360\001\n" + "\"InstanceGroupManagerStatusStateful\022#\n" + "\023has_stateful_config\030\360\347\3264 \001(\010H\000\210\001\001\022t\n" - + "\024per_instance_configs\030\251\325\370\372\001 \001(\013" - + "2M.google.cloud.compute.v1.InstanceGroup" - + "ManagerStatusStatefulPerInstanceConfigsH\001\210\001\001B\026\n" + + "\024per_instance_configs\030\251\325\370\372\001 \001(\0132M.googl" + + "e.cloud.compute.v1.InstanceGroupManagerStatusStatefulPerInstanceConfigsH\001\210\001\001B\026\n" + "\024_has_stateful_configB\027\n" + "\025_per_instance_configs\"h\n" + "4InstanceGroupManagerStatusStatefulPerInstanceConfigs\022\036\n\r" @@ -14042,8 +14078,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " InstanceGroupManagerUpdatePolicy\022-\n" + "\034instance_redistribution_type\030\230\337\304\213\001 \001(" + "\tH\000\210\001\001\022C\n" - + "\tmax_surge\030\223\311\243\220\001 \001(\0132\'.goog" - + "le.cloud.compute.v1.FixedOrPercentH\001\210\001\001\022I\n" + + "\tmax_surge\030\223\311\243\220\001" + + " \001(\0132\'.google.cloud.compute.v1.FixedOrPercentH\001\210\001\001\022I\n" + "\017max_unavailable\030\365\313\213\301\001" + " \001(\0132\'.google.cloud.compute.v1.FixedOrPercentH\002\210\001\001\022\037\n" + "\016minimal_action\030\224\215\202\201\001 \001(\tH\003\210\001\001\022.\n" @@ -14058,7 +14094,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(UNDEFINED_MOST_DISRUPTIVE_ALLOWED_ACTION\020\000\"[\n" + "\021ReplacementMethod\022 \n" + "\034UNDEFINED_REPLACEMENT_METHOD\020\000\022\020\n" - + "\010RECREATE\020\357\331\233\371\001\022\022\n\n" + + "\010RECREATE\020\357\331\233\371\001\022\022\n" + + "\n" + "SUBSTITUTE\020\232\241\372\205\001\"1\n" + "\004Type\022\022\n" + "\016UNDEFINED_TYPE\020\000\022\025\n\r" @@ -14106,18 +14143,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "0InstanceGroupManagersDeletePerInstanceConfigsReq\022\020\n" + "\005names\030\310\256\3571 \003(\t\"\244\001\n" + "\'InstanceGroupManagersListErrorsResponse\022D\n" - + "\005items\030\300\317\367/" - + " \003(\01322.google.cloud.compute.v1.InstanceManagedByIgmError\022\037\n" + + "\005items\030\300\317\367/ \003(\013" + + "22.google.cloud.compute.v1.InstanceManagedByIgmError\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\000\210\001\001B\022\n" + "\020_next_page_token\"\261\001\n" + "1InstanceGroupManagersListManagedInstancesResponse\022G\n" - + "\021managed_instances\030\336\233\251\240\001 \003(\0132(" - + ".google.cloud.compute.v1.ManagedInstance\022\037\n" + + "\021managed_instances\030\336\233\251\240\001" + + " \003(\0132(.google.cloud.compute.v1.ManagedInstance\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\000\210\001\001B\022\n" + "\020_next_page_token\"\353\001\n" + "/InstanceGroupManagersListPerInstanceConfigsResp\022<\n" - + "\005items\030\300\317\367/ " - + "\003(\0132*.google.cloud.compute.v1.PerInstanceConfig\022\037\n" + + "\005items\030\300\317\367/ \003(\0132*.go" + + "ogle.cloud.compute.v1.PerInstanceConfig\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\000\210\001\001\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\001\210\001\001B\022\n" @@ -14133,8 +14170,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tinstances\030\376\374\357\r" + " \003(\t\"\273\001\n" + "\037InstanceGroupManagersScopedList\022Q\n" - + "\027instance_group_managers\030\220\372\211f \003(\0132-.googl" - + "e.cloud.compute.v1.InstanceGroupManager\0229\n" + + "\027instance_group_managers\030\220\372\211f" + + " \003(\0132-.google.cloud.compute.v1.InstanceGroupManager\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"k\n" @@ -14160,8 +14197,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\tB\020\n" + "\016_force_suspend\"\200\001\n" + "0InstanceGroupManagersUpdatePerInstanceConfigsReq\022L\n" - + "\024per_instance_configs\030\251\325\370\372\001 \003(\013" - + "2*.google.cloud.compute.v1.PerInstanceConfig\"e\n" + + "\024per_instance_configs\030\251\325\370\372\001" + + " \003(\0132*.google.cloud.compute.v1.PerInstanceConfig\"e\n" + "!InstanceGroupsAddInstancesRequest\022@\n" + "\tinstances\030\376\374\357\r" + " \003(\0132*.google.cloud.compute.v1.InstanceReference\"\276\002\n" @@ -14227,11 +14264,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\274\002\n" + "\031InstanceManagedByIgmError\022]\n" - + "\005error\030\210\244\223. \001(\0132F.google.cloud.compute.v1" - + ".InstanceManagedByIgmErrorManagedInstanceErrorH\000\210\001\001\022q\n" - + "\027instance_action_details\030\243\374\253\213\001" - + " \001(\0132G.google.cloud.compute.v1.Insta" - + "nceManagedByIgmErrorInstanceActionDetailsH\001\210\001\001\022\031\n" + + "\005error\030\210\244\223. \001(\0132F.google.cloud.compute.v1.Instanc" + + "eManagedByIgmErrorManagedInstanceErrorH\000\210\001\001\022q\n" + + "\027instance_action_details\030\243\374\253\213\001 \001(\013" + + "2G.google.cloud.compute.v1.InstanceManag" + + "edByIgmErrorInstanceActionDetailsH\001\210\001\001\022\031\n" + "\ttimestamp\030\226\322\244\032 \001(\tH\002\210\001\001B\010\n" + "\006_errorB\032\n" + "\030_instance_action_detailsB\014\n\n" @@ -14239,16 +14276,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".InstanceManagedByIgmErrorInstanceActionDetails\022\026\n" + "\006action\030\266\374\275Y \001(\tH\000\210\001\001\022\030\n" + "\010instance\030\225\251\332\010 \001(\tH\001\210\001\001\022I\n" - + "\007version\030\330\271\324\247\001" - + " \001(\0132/.google.cloud.compute.v1.ManagedInstanceVersionH\002\210\001\001\"\234\002\n" + + "\007version\030\330\271\324\247\001 \001(\0132" + + "/.google.cloud.compute.v1.ManagedInstanceVersionH\002\210\001\001\"\234\002\n" + "\006Action\022\024\n" + "\020UNDEFINED_ACTION\020\000\022\022\n\n" + "ABANDONING\020\315\312\220\271\001\022\020\n" + "\010CREATING\020\271\275\235\331\001\022 \n" + "\030CREATING_WITHOUT_RETRIES\020\211\306\276\314\001\022\020\n" + "\010DELETING\020\250\247\207\374\001\022\013\n" - + "\004NONE\020\270\316\222\001\022\022\n" - + "\n" + + "\004NONE\020\270\316\222\001\022\022\n\n" + "RECREATING\020\354\213\376\210\001\022\021\n\n" + "REFRESHING\020\247\376\354M\022\022\n\n" + "RESTARTING\020\363\356\353\230\001\022\020\n" @@ -14271,17 +14307,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021_destination_zoneB\022\n" + "\020_target_instance\"\261\001\n" + "\016InstanceParams\022c\n" - + "\025resource_manager_tags\030\374\233\213\264\001" - + " \003(\0132@.google.cloud.compute.v1.InstanceParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(" + + "\0132@.google.cloud.compute.v1.InstanceParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\330\020\n" + "\022InstanceProperties\022\\\n" - + "\031advanced_machine_features\030\262\347\252\303\001 \001(\01320." - + "google.cloud.compute.v1.AdvancedMachineFeaturesH\000\210\001\001\022\037\n" + + "\031advanced_machine_features\030\262\347\252\303\001 \001(\01320.google.c" + + "loud.compute.v1.AdvancedMachineFeaturesH\000\210\001\001\022\037\n" + "\016can_ip_forward\030\374\206\204\337\001 \001(\010H\001\210\001\001\022b\n" - + "\034confidential_instance_config\030\365\222\372\351\001" - + " \001(\01323.google.cloud.compute.v1.ConfidentialInstanceConfigH\002\210\001\001\022\034\n" + + "\034confidential_instance_config\030\365\222\372\351\001 \001(\0132" + + "3.google.cloud.compute.v1.ConfidentialInstanceConfigH\002\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\003\210\001\001\0227\n" + "\005disks\030\366\314\312- \003(\0132%.google.cloud.compute.v1.AttachedDisk\022J\n" + "\022guest_accelerators\030\357\314\207\335\001" @@ -14290,27 +14326,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006labels\030\377\277\301\356\001" + " \003(\01327.google.cloud.compute.v1.InstanceProperties.LabelsEntry\022\034\n" + "\014machine_type\030\262\260\312l \001(\tH\005\210\001\001\022;\n" - + "\010metadata\030\257\366\265) \001(\013" - + "2!.google.cloud.compute.v1.MetadataH\006\210\001\001\022 \n" + + "\010metadata\030\257\366\265)" + + " \001(\0132!.google.cloud.compute.v1.MetadataH\006\210\001\001\022 \n" + "\020min_cpu_platform\030\367\233\352s \001(\tH\007\210\001\001\022H\n" + "\022network_interfaces\030\213\332\222\031" + " \003(\0132).google.cloud.compute.v1.NetworkInterface\022^\n" - + "\032network_performance_config\030\342\227\370\275\001 \001(\01321.google.cl" - + "oud.compute.v1.NetworkPerformanceConfigH\010\210\001\001\022*\n" + + "\032network_performance_config\030\342\227\370\275\001" + + " \001(\01321.google.cloud.compute.v1.NetworkPerformanceConfigH\010\210\001\001\022*\n" + "\032private_ipv6_google_access\030\216\314\202\027 \001(\tH\t\210\001\001\022R\n" - + "\024reservation_affinity\030\273\270\242K \001(" - + "\0132,.google.cloud.compute.v1.ReservationAffinityH\n" + + "\024reservation_affinity\030\273\270\242K \001(\0132,.goog" + + "le.cloud.compute.v1.ReservationAffinityH\n" + "\210\001\001\022g\n" - + "\025resource_manager_tags\030\374\233\213\264\001" - + " \003(\0132D.google.cloud.compute.v1.InstanceProperties.ResourceManagerTagsEntry\022\034\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132" + + "D.google.cloud.compute.v1.InstanceProperties.ResourceManagerTagsEntry\022\034\n" + "\021resource_policies\030\341\234\314\n" + " \003(\t\022@\n\n" - + "scheduling\030\224\313\261\270\001" - + " \001(\0132#.google.cloud.compute.v1.SchedulingH\013\210\001\001\022E\n" - + "\020service_accounts\030\260\304\253\204\001 " - + "\003(\0132\'.google.cloud.compute.v1.ServiceAccount\022Y\n" - + "\030shielded_instance_config\030\265\213\221\006 \001(" - + "\0132/.google.cloud.compute.v1.ShieldedInstanceConfigH\014\210\001\001\0223\n" + + "scheduling\030\224\313\261\270\001 " + + "\001(\0132#.google.cloud.compute.v1.SchedulingH\013\210\001\001\022E\n" + + "\020service_accounts\030\260\304\253\204\001" + + " \003(\0132\'.google.cloud.compute.v1.ServiceAccount\022Y\n" + + "\030shielded_instance_config\030\265\213\221\006 \001(\0132/.goog" + + "le.cloud.compute.v1.ShieldedInstanceConfigH\014\210\001\001\0223\n" + "\004tags\030\231\350\330\001 \001(\0132\035.google.cloud.compute.v1.TagsH\r" + "\210\001\001\032-\n" + "\013LabelsEntry\022\013\n" @@ -14344,10 +14380,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031_shielded_instance_configB\007\n" + "\005_tags\"\240\002\n" + "\027InstancePropertiesPatch\022P\n" - + "\006labels\030\377\277\301\356\001 \003" - + "(\0132<.google.cloud.compute.v1.InstancePropertiesPatch.LabelsEntry\022S\n" - + "\010metadata\030\257\366\265)" - + " \003(\0132>.google.cloud.compute.v1.InstancePropertiesPatch.MetadataEntry\032-\n" + + "\006labels\030\377\277\301\356\001 \003(\0132<.goo" + + "gle.cloud.compute.v1.InstancePropertiesPatch.LabelsEntry\022S\n" + + "\010metadata\030\257\366\265) \003(\0132>." + + "google.cloud.compute.v1.InstancePropertiesPatch.MetadataEntry\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\032/\n\r" @@ -14360,16 +14396,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020InstanceSettings\022\033\n" + "\013fingerprint\030\344\321\363o \001(\tH\000\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022K\n" - + "\010metadata\030\257\366\265) \001(\01321" - + ".google.cloud.compute.v1.InstanceSettingsMetadataH\002\210\001\001\022\024\n" + + "\010metadata\030\257\366\265) \001(\01321.google." + + "cloud.compute.v1.InstanceSettingsMetadataH\002\210\001\001\022\024\n" + "\004zone\030\254\307\344\001 \001(\tH\003\210\001\001B\016\n" + "\014_fingerprintB\007\n" + "\005_kindB\013\n" + "\t_metadataB\007\n" + "\005_zone\"\267\001\n" + "\030InstanceSettingsMetadata\022N\n" - + "\005items\030\300\317\367/" - + " \003(\0132<.google.cloud.compute.v1.InstanceSettingsMetadata.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003" + + "(\0132<.google.cloud.compute.v1.InstanceSettingsMetadata.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\000\210\001\001\032,\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -14381,8 +14417,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\002id\030\233\032 \001(\004H\002\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\003\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\004\210\001\001\022G\n\n" - + "properties\030\263\232\266F \001(" - + "\0132+.google.cloud.compute.v1.InstancePropertiesH\005\210\001\001\022\026\n" + + "properties\030\263\232\266F \001(\0132+.goog", + "le.cloud.compute.v1.InstancePropertiesH\005\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\006\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\007\210\001\001\022 \n" + "\017source_instance\030\271\230\375\274\001 \001(\tH\010\210\001\001\022U\n" @@ -14400,8 +14436,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027_source_instance_params\"\270\003\n" + "\036InstanceTemplateAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022T\n" - + "\005items\030\300\317\367/" - + " \003(\0132B.google.cloud.compute.v1.InstanceTemplateAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132B" + + ".google.cloud.compute.v1.InstanceTemplateAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -14414,12 +14450,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" - + "_self_linkB\n\n" + + "_self_linkB\n" + + "\n" + "\010_warning\"\261\002\n" + "\024InstanceTemplateList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022;\n" - + "\005items\030\300\317\367/ \003(\0132", - ").google.cloud.compute.v1.InstanceTemplate\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132).google.cloud.compute.v1.InstanceTemplate\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -14459,25 +14496,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021resource_policies\030\341\234\314\n" + " \003(\t\"\212\002\n" + "$InstancesBulkInsertOperationMetadata\022t\n" - + "\023per_location_status\030\232\351\204P \003(\0132T.google" - + ".cloud.compute.v1.InstancesBulkInsertOperationMetadata.PerLocationStatusEntry\032l\n" + + "\023per_location_status\030\232\351\204P \003(\0132T.google.cloud.c" + + "ompute.v1.InstancesBulkInsertOperationMetadata.PerLocationStatusEntry\032l\n" + "\026PerLocationStatusEntry\022\013\n" + "\003key\030\001 \001(\t\022A\n" - + "\005value\030\002" - + " \001(\01322.google.cloud.compute.v1.BulkInsertOperationStatus:\0028\001\"\330\001\n" + + "\005value\030\002 " + + "\001(\01322.google.cloud.compute.v1.BulkInsertOperationStatus:\0028\001\"\330\001\n" + "&InstancesGetEffectiveFirewallsResponse\022t\n" - + "\020firewall_policys\030\302\312\374\303\001 \003(\0132V.google.cloud.comp" - + "ute.v1.InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy\0228\n" - + "\tfirewalls\030\363\306\350\201\001" - + " \003(\0132!.google.cloud.compute.v1.Firewall\"\254\004\n" + + "\020firewall_policys\030\302\312\374\303\001 \003(\0132V.google.cloud.compute.v1.I" + + "nstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy\0228\n" + + "\tfirewalls\030\363\306\350\201\001 " + + "\003(\0132!.google.cloud.compute.v1.Firewall\"\254\004\n" + "=InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy\022\034\n" + "\014display_name\030\350\207\221\002 \001(\tH\000\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\001\210\001\001\022O\n" - + "\026packet_mirroring_rules\030\304\377\300\375\001 \003(\013" - + "2+.google.cloud.compute.v1.FirewallPolicyRule\022\031\n" + + "\026packet_mirroring_rules\030\304\377\300\375\001" + + " \003(\0132+.google.cloud.compute.v1.FirewallPolicyRule\022\031\n" + "\010priority\030\244\363\241\324\001 \001(\005H\002\210\001\001\022=\n" - + "\005rules\030\367\221\3653" - + " \003(\0132+.google.cloud.compute.v1.FirewallPolicyRule\022\033\n\n" + + "\005rules\030\367\221\3653 \003" + + "(\0132+.google.cloud.compute.v1.FirewallPolicyRule\022\033\n\n" + "short_name\030\356\270\320\352\001 \001(\tH\003\210\001\001\022\024\n" + "\004type\030\272\236\332\001 \001(\tH\004\210\001\001\"\231\001\n" + "\004Type\022\022\n" @@ -14498,8 +14535,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\t\"\310\002\n" + "\"InstancesReportHostAsFaultyRequest\022#\n" + "\023disruption_schedule\030\203\305\333- \001(\tH\000\210\001\001\022`\n\r" - + "fault_reasons\030\222\253\221P \003(\0132F.google.cloud.compu" - + "te.v1.InstancesReportHostAsFaultyRequestFaultReason\"\202\001\n" + + "fault_reasons\030\222\253\221P \003(\0132F.google.cloud.compute.v1.In" + + "stancesReportHostAsFaultyRequestFaultReason\"\202\001\n" + "\022DisruptionSchedule\022!\n" + "\035UNDEFINED_DISRUPTION_SCHEDULE\020\000\022\'\n" + "\037DISRUPTION_SCHEDULE_UNSPECIFIED\020\333\356\310\236\001\022\016\n" @@ -14525,8 +14562,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_warning\"\327\001\n" + "\031InstancesSetLabelsRequest\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\000\210\001\001\022R\n" - + "\006labels\030\377\277\301\356\001" - + " \003(\0132>.google.cloud.compute.v1.InstancesSetLabelsRequest.LabelsEntry\032-\n" + + "\006labels\030\377\277\301\356\001 " + + "\003(\0132>.google.cloud.compute.v1.InstancesSetLabelsRequest.LabelsEntry\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001B\024\n" @@ -14554,8 +14591,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006scopes\030\237\231\222O \003(\tB\010\n" + "\006_email\"w\n" + "&InstancesStartWithEncryptionKeyRequest\022M\n" - + "\005disks\030\366\314\312-" - + " \003(\0132;.google.cloud.compute.v1.CustomerEncryptionKeyProtectedDisk\"\301\t\n" + + "\005disks\030\366\314\312- \003(\013" + + "2;.google.cloud.compute.v1.CustomerEncryptionKeyProtectedDisk\"\301\t\n" + "\017InstantSnapshot\022\035\n" + "\014architecture\030\323\322\261\220\001 \001(\tH\000\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n" @@ -14564,12 +14601,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\002id\030\233\032 \001(\004H\004\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\006\210\001\001\022H\n" - + "\006labels\030\377\277\301\356\001 \003(\01324.googl" - + "e.cloud.compute.v1.InstantSnapshot.LabelsEntry\022\024\n" + + "\006labels\030\377\277\301\356\001 \003(\01324.google.cloud." + + "compute.v1.InstantSnapshot.LabelsEntry\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\010\210\001\001\022W\n" - + "\017resource_status\030\303\372\367v \001(\013" - + "26.google.cloud.compute.v1.InstantSnapshotResourceStatusH\t\210\001\001\022\036\n\r" + + "\017resource_status\030\303\372\367v \001(\01326.googl" + + "e.cloud.compute.v1.InstantSnapshotResourceStatusH\t\210\001\001\022\036\n\r" + "satisfies_pzi\030\241\335\253\345\001 \001(\010H\n" + "\210\001\001\022\036\n\r" + "satisfies_pzs\030\253\335\253\345\001 \001(\010H\013\210\001\001\022\032\n" @@ -14615,8 +14652,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\316\003\n" + "\035InstantSnapshotAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022S\n" - + "\005items\030\300\317\367/ \003(\0132" - + "A.google.cloud.compute.v1.InstantSnapshotAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132A.google" + + ".cloud.compute.v1.InstantSnapshotAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -14625,8 +14662,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032a\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022B\n" - + "\005value\030\002 \001(\01323.go" - + "ogle.cloud.compute.v1.InstantSnapshotsScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01323.google.clo" + + "ud.compute.v1.InstantSnapshotsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -14668,8 +14705,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\035\n\r" + "customer_name\030\314\334\337\001 \001(\tH\002\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\003\210\001\001\022T\n" - + "\020expected_outages\030\233\352\216~ \003(\01327." - + "google.cloud.compute.v1.InterconnectOutageNotification\022\"\n" + + "\020expected_outages\030\233\352\216~ \003(\01327.google.c" + + "loud.compute.v1.InterconnectOutageNotification\022\"\n" + "\021google_ip_address\030\242\205\245\323\001 \001(\tH\004\210\001\001\022$\n" + "\023google_reference_id\030\325\265\212\377\001 \001(\tH\005\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\006\210\001\001\022$\n" @@ -14678,8 +14715,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021interconnect_type\030\313\230\323\365\001 \001(\tH\007\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\010\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\t\210\001\001\022E\n" - + "\006labels\030\377\277\301\356\001" - + " \003(\01321.google.cloud.compute.v1.Interconnect.LabelsEntry\022\032\n" + + "\006labels\030\377\277\301\356\001 \003(" + + "\01321.google.cloud.compute.v1.Interconnect.LabelsEntry\022\032\n" + "\tlink_type\030\337\210\276\371\001 \001(\tH\n" + "\210\001\001\022\031\n" + "\010location\030\265\277\276\212\001 \001(\tH\013\210\001\001\022D\n" @@ -14757,8 +14794,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031cloud_router_ipv6_address\030\310\223\277\327\001 \001(\tH\004\210\001\001\022/\n" + "\036cloud_router_ipv6_interface_id\030\215\311\310\370\001 \001(" + "\tH\005\210\001\001\022r\n" - + "\031configuration_constraints\030\355\360\326U \001(\0132G.google.cloud.compute.v1.In" - + "terconnectAttachmentConfigurationConstraintsH\006\210\001\001\022\"\n" + + "\031configuration_constraints\030\355\360\326U " + + "\001(\0132G.google.cloud.compute.v1.Interconne" + + "ctAttachmentConfigurationConstraintsH\006\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\007\210\001\001\022+\n" + "\032customer_router_ip_address\030\361\332\304\236\001 \001(\tH\010\210\001\001\022-\n" + "\034customer_router_ipv6_address\030\361\371\253\212\001 \001(\tH\t\210\001\001\0222\n" @@ -14775,17 +14813,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030ipsec_internal_addresses\030\265\362\260\302\001 \003(\t\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\022\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\023\210\001\001\022O\n" - + "\006labels\030\377\277\301\356\001" - + " \003(\0132;.google.cloud.compute.v1.InterconnectAttachment.LabelsEntry\022\022\n" + + "\006labels\030\377\277\301\356\001 \003(\0132;." + + "google.cloud.compute.v1.InterconnectAttachment.LabelsEntry\022\022\n" + "\003mtu\030\256\317\006 \001(\005H\024\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\025\210\001\001\022\"\n" + "\022operational_status\030\377\261\360_ \001(\tH\026\210\001\001\022\034\n" + "\013pairing_key\030\350\360\324\321\001 \001(\tH\027\210\001\001\022\034\n" + "\013partner_asn\030\205\305\367\320\001 \001(\003H\030\210\001\001\022`\n" - + "\020partner_metadata\030\306\341\266\037 \001(\0132>.goog" - + "le.cloud.compute.v1.InterconnectAttachmentPartnerMetadataH\031\210\001\001\022e\n" - + "\031private_interconnect_info\030\203\354\221q \001(\0132:.google.cloud.comp" - + "ute.v1.InterconnectAttachmentPrivateInfoH\032\210\001\001\022\026\n" + + "\020partner_metadata\030\306\341\266\037 \001(\0132>.google.cloud" + + ".compute.v1.InterconnectAttachmentPartnerMetadataH\031\210\001\001\022e\n" + + "\031private_interconnect_info\030\203\354\221q" + + " \001(\0132:.google.cloud.compute.v1.InterconnectAttachmentPrivateInfoH\032\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\033\210\001\001\022\037\n" + "\016remote_service\030\274\377\362\272\001 \001(\tH\034\210\001\001\022\026\n" + "\006router\030\311\256\356F \001(\tH\035\210\001\001\022\036\n\r" @@ -14886,8 +14924,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016_vlan_tag8021q\"\343\003\n" + "$InterconnectAttachmentAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022Z\n" - + "\005items\030\300\317\367/ \003(\013" - + "2H.google.cloud.compute.v1.InterconnectAttachmentAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132H.googl" + + "e.cloud.compute.v1.InterconnectAttachmentAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -14896,8 +14934,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032h\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022I\n" - + "\005value\030\002 " - + "\001(\0132:.google.cloud.compute.v1.InterconnectAttachmentsScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\0132:.go" + + "ogle.cloud.compute.v1.InterconnectAttachmentsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -14905,9 +14943,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_warning\"\263\002\n" + ".InterconnectAttachmentConfigurationConstraints\022\030\n" + "\007bgp_md5\030\212\350\363\261\001 \001(\tH\000\210\001\001\022w\n" - + "\023bgp_peer_asn_ranges\030\202\273\371\342\001 \003(\0132" - + "V.google.cloud.compute.v1.InterconnectAt" - + "tachmentConfigurationConstraintsBgpPeerASNRange\"b\n" + + "\023bgp_peer_asn_ranges\030\202\273\371\342\001 \003(\0132V.google" + + ".cloud.compute.v1.InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange\"b\n" + "\006BgpMd5\022\025\n" + "\021UNDEFINED_BGP_MD5\020\000\022\024\n" + "\014MD5_OPTIONAL\020\201\242\340\375\001\022\023\n" @@ -14922,27 +14959,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004_maxB\006\n" + "\004_min\"\201\007\n" + "\033InterconnectAttachmentGroup\022^\n" - + "\013attachments\030\260\227\317\237\001 \003(\0132E.google.cloud.compute" - + ".v1.InterconnectAttachmentGroup.AttachmentsEntry\022[\n\n" - + "configured\030\276\364\373\214\001 \001(\0132>.googl" - + "e.cloud.compute.v1.InterconnectAttachmentGroupConfiguredH\000\210\001\001\022\"\n" + + "\013attachments\030\260\227\317\237\001 \003(\0132E.google.cloud.compute.v1.Inte" + + "rconnectAttachmentGroup.AttachmentsEntry\022[\n\n" + + "configured\030\276\364\373\214\001 \001(\0132>.google.cloud." + + "compute.v1.InterconnectAttachmentGroupConfiguredH\000\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\003\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\004\210\001\001\022S\n" - + "\006intent\030\234\355\304\313\001 \001(\0132:.google.clo" - + "ud.compute.v1.InterconnectAttachmentGroupIntentH\005\210\001\001\022#\n" + + "\006intent\030\234\355\304\313\001 \001(\0132:.google.cloud.compu" + + "te.v1.InterconnectAttachmentGroupIntentH\005\210\001\001\022#\n" + "\022interconnect_group\030\216\267\251\271\001 \001(\tH\006\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\007\210\001\001\022g\n" - + "\021logical_structure\030\275\231\364C \001(\0132D.google.cloud.com" - + "pute.v1.InterconnectAttachmentGroupLogicalStructureH\010\210\001\001\022\024\n" + + "\021logical_structure\030\275\231\364C \001(\0132D.google.cloud.compute.v1." + + "InterconnectAttachmentGroupLogicalStructureH\010\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\t\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\n" + "\210\001\001\032r\n" + "\020AttachmentsEntry\022\013\n" + "\003key\030\001 \001(\t\022M\n" - + "\005value\030\002 \001(\0132>.goo" - + "gle.cloud.compute.v1.InterconnectAttachmentGroupAttachment:\0028\001B\r\n" + + "\005value\030\002 \001(\0132>.google.clou" + + "d.compute.v1.InterconnectAttachmentGroupAttachment:\0028\001B\r\n" + "\013_configuredB\025\n" + "\023_creation_timestampB\016\n" + "\014_descriptionB\007\n" @@ -14958,14 +14995,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "attachment\030\243\262\335W \001(\tH\000\210\001\001B\r\n" + "\013_attachment\"\256\001\n" + "%InterconnectAttachmentGroupConfigured\022p\n" - + "\020availability_sla\030\304\270\263\341\001 \001(\0132M.google.cloud.compute." - + "v1.InterconnectAttachmentGroupConfiguredAvailabilitySLAH\000\210\001\001B\023\n" + + "\020availability_sla\030\304\270\263\341\001 \001(\0132M.google.cloud.compute.v1.Inter" + + "connectAttachmentGroupConfiguredAvailabilitySLAH\000\210\001\001B\023\n" + "\021_availability_sla\"\212\003\n" + "4InterconnectAttachmentGroupConfiguredAvailabilitySLA\022\035\n\r" + "effective_sla\030\220\325\337D \001(\tH\000\210\001\001\022\203\001\n" - + "\025intended_sla_blockers\030\204\255\346\325\001" - + " \003(\0132`.google.cloud.compute.v1.Intercon" - + "nectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers\"\232\001\n" + + "\025intended_sla_blockers\030\204\255\346\325\001 \003(\0132`." + + "google.cloud.compute.v1.InterconnectAtta" + + "chmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers\"\232\001\n" + "\014EffectiveSla\022\033\n" + "\027UNDEFINED_EFFECTIVE_SLA\020\000\022!\n" + "\031EFFECTIVE_SLA_UNSPECIFIED\020\250\247\220\352\001\022\r\n" @@ -14997,30 +15034,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020availability_sla\030\304\270\263\341\001 \001(\tH\000\210\001\001\"\242\001\n" + "\017AvailabilitySla\022\036\n" + "\032UNDEFINED_AVAILABILITY_SLA\020\000\022#\n" - + "\034AVAILABILITY_SLA_UNSPECIFIED\020\374\336\252\005\022\r" - + "\n" + + "\034AVAILABILITY_SLA_UNSPECIFIED\020\374\336\252\005\022\r\n" + "\006NO_SLA\020\212\343\376L\022\033\n" + "\023PRODUCTION_CRITICAL\020\345\370\247\340\001\022\036\n" + "\027PRODUCTION_NON_CRITICAL\020\267\275\3757B\023\n" + "\021_availability_sla\"\215\001\n" + "+InterconnectAttachmentGroupLogicalStructure\022^\n" - + "\007regions\030\377\357\362\005 \003(\0132J.google.cloud.compute.v1.Interconne" - + "ctAttachmentGroupLogicalStructureRegion\"\273\001\n" + + "\007regions\030\377\357\362\005 \003(\0132J.go" + + "ogle.cloud.compute.v1.InterconnectAttachmentGroupLogicalStructureRegion\"\273\001\n" + "1InterconnectAttachmentGroupLogicalStructureRegion\022c\n" - + "\006metros\030\372\354\227\376\001 \003(\0132O.goog" - + "le.cloud.compute.v1.InterconnectAttachmentGroupLogicalStructureRegionMetro\022\026\n" + + "\006metros\030\372\354\227\376\001 \003(\0132O.google.cloud", + ".compute.v1.InterconnectAttachmentGroupLogicalStructureRegionMetro\022\026\n" + "\006region\030\364\315\240B \001(\tH\000\210\001\001B\t\n" + "\007_region\"\312\001\n" + "6InterconnectAttachmentGroupLogicalStructureRegionMetro\022o\n\n" - + "facilities\030\201\305\364\377\001 \003(\0132W.googl" - + "e.cloud.compute.v1.InterconnectAttachmen" - + "tGroupLogicalStructureRegionMetroFacility\022\025\n" + + "facilities\030\201\305\364\377\001 \003(\0132W.google.cloud." + + "compute.v1.InterconnectAttachmentGroupLogicalStructureRegionMetroFacility\022\025\n" + "\005metro\030\231\332\2761 \001(\tH\000\210\001\001B\010\n" + "\006_metro\"\327\001\n" + ">InterconnectAttachmentGroupLogicalStructureRegionMetroFacility\022\031\n" + "\010facility\030\243\335\371\356\001 \001(\tH\000\210\001\001\022m\n" - + "\005zones\030\307\244\2557 \003(\0132[.google.clou" - + "d.compute.v1.InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZoneB\013\n" + + "\005zones\030\307\244\2557 \003(\0132[.google.cloud.comput" + + "e.v1.InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZoneB\013\n" + "\t_facility\"|\n" + "BInterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone\022\027\n" + "\013attachments\030\260\227\317\237\001 \003(\t\022\024\n" @@ -15028,16 +15063,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\304\001\n" + "8InterconnectAttachmentGroupsGetOperationalStatusResponse\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022^\n" - + "\006result\030\235\220\267B \001(\013" - + "2F.google.cloud.compute.v1.InterconnectAttachmentGroupsOperationalStatusH\001\210\001\001B\007\n" + + "\006result\030\235\220\267B \001(\0132F.googl" + + "e.cloud.compute.v1.InterconnectAttachmentGroupsOperationalStatusH\001\210\001\001B\007\n" + "\005_etagB\t\n" + "\007_result\"\210\003\n" - + "(InterconnectAttach", - "mentGroupsListResponse\022\024\n" + + "(InterconnectAttachmentGroupsListResponse\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022F\n" - + "\005items\030\300\317\367/ \003(\013" - + "24.google.cloud.compute.v1.InterconnectAttachmentGroup\022\024\n" + + "\005items\030\300\317\367/ \003(\01324.googl" + + "e.cloud.compute.v1.InterconnectAttachmentGroup\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" @@ -15051,15 +15085,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\210\005\n" + "-InterconnectAttachmentGroupsOperationalStatus\022w\n" - + "\023attachment_statuses\030\274\257\230\352\001 \003(\0132V.google.cloud.compute.v" - + "1.InterconnectAttachmentGroupsOperationalStatusAttachmentStatus\022[\n\n" - + "configured\030\276\364\373\214\001" - + " \001(\0132>.google.cloud.compute.v1.InterconnectAttachmentGroupConfiguredH\000\210\001\001\022\035\n" + + "\023attachment_statuses\030\274\257\230\352\001" + + " \003(\0132V.google.cloud.compute.v1.Interc" + + "onnectAttachmentGroupsOperationalStatusAttachmentStatus\022[\n\n" + + "configured\030\276\364\373\214\001 \001(\0132" + + ">.google.cloud.compute.v1.InterconnectAttachmentGroupConfiguredH\000\210\001\001\022\035\n" + "\014group_status\030\262\263\305\241\001 \001(\tH\001\210\001\001\022S\n" - + "\006intent\030\234\355\304\313\001" - + " \001(\0132:.google.cloud.compute.v1.InterconnectAttachmentGroupIntentH\002\210\001\001\022[\n" - + "\013operational\030\322\307\354= \001(\0132>.google.cloud.compute." - + "v1.InterconnectAttachmentGroupConfiguredH\003\210\001\001\"u\n" + + "\006intent\030\234\355\304\313\001 \001(\0132" + + ":.google.cloud.compute.v1.InterconnectAttachmentGroupIntentH\002\210\001\001\022[\n" + + "\013operational\030\322\307\354=" + + " \001(\0132>.google.cloud.compute.v1.InterconnectAttachmentGroupConfiguredH\003\210\001\001\"u\n" + "\013GroupStatus\022\032\n" + "\026UNDEFINED_GROUP_STATUS\020\000\022\020\n" + "\010DEGRADED\020\256\246\240\275\001\022\021\n\n" @@ -15103,8 +15138,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_status\"\275\002\n" + "\032InterconnectAttachmentList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022A\n" - + "\005items\030\300\317\367/ \003(" - + "\0132/.google.cloud.compute.v1.InterconnectAttachment\022\024\n" + + "\005items\030\300\317\367/ \003(\0132/.goog" + + "le.cloud.compute.v1.InterconnectAttachment\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -15127,8 +15162,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "H\000\210\001\001B\013\n" + "\t_tag8021q\"\301\001\n" + "!InterconnectAttachmentsScopedList\022U\n" - + "\030interconnect_attachments\030\377\322\353\312\001 \003(\0132/" - + ".google.cloud.compute.v1.InterconnectAttachment\0229\n" + + "\030interconnect_attachments\030\377\322\353\312\001 \003(\0132/.google." + + "cloud.compute.v1.InterconnectAttachment\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\305\001\n" @@ -15141,12 +15176,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022_google_circuit_idB\023\n" + "\021_google_demarc_id\"\225\005\n" + "\027InterconnectDiagnostics\022P\n\n" - + "arp_caches\030\221\326\330\305\001" - + " \003(\01328.google.cloud.compute.v1.InterconnectDiagnosticsARPEntry\022(\n" + + "arp_caches\030\221\326\330\305\001 \003" + + "(\01328.google.cloud.compute.v1.InterconnectDiagnosticsARPEntry\022(\n" + "\027bundle_aggregation_type\030\224\311\262\317\001 \001(\tH\000\210\001\001\022)\n" + "\031bundle_operational_status\030\334\227\3402 \001(\tH\001\210\001\001\022L\n" - + "\005links\030\271\237\2151" - + " \003(\0132:.google.cloud.compute.v1.InterconnectDiagnosticsLinkStatus\022\034\n" + + "\005links\030\271\237\2151 " + + "\003(\0132:.google.cloud.compute.v1.InterconnectDiagnosticsLinkStatus\022\034\n" + "\013mac_address\030\204\322\310\236\001 \001(\tH\002\210\001\001\"\212\001\n" + "\025BundleAggregationType\022%\n" + "!UNDEFINED_BUNDLE_AGGREGATION_TYPE\020\000\022#\n" @@ -15193,16 +15228,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\01328.google.cloud.compute.v1.InterconnectDiagnosticsARPEntry\022\032\n\n" + "circuit_id\030\261\372\257k \001(\tH\000\210\001\001\022\034\n\r" + "google_demarc\030\214\217\003 \001(\tH\001\210\001\001\022\\\n" - + "\013lacp_status\030\257\304\236\254\001 \001(\0132>.goog" - + "le.cloud.compute.v1.InterconnectDiagnosticsLinkLACPStatusH\002\210\001\001\022U\n" - + "\006macsec\030\242\301\227\374\001 \001" - + "(\0132<.google.cloud.compute.v1.InterconnectDiagnosticsMacsecStatusH\003\210\001\001\022\"\n" + + "\013lacp_status\030\257\304\236\254\001 \001(\0132>.google.cloud" + + ".compute.v1.InterconnectDiagnosticsLinkLACPStatusH\002\210\001\001\022U\n" + + "\006macsec\030\242\301\227\374\001 \001(\0132<.goo" + + "gle.cloud.compute.v1.InterconnectDiagnosticsMacsecStatusH\003\210\001\001\022\"\n" + "\022operational_status\030\377\261\360_ \001(\tH\004\210\001\001\022i\n" - + "\027receiving_optical_power\030\337\255\330t \001(\0132@.google.cloud.com" - + "pute.v1.InterconnectDiagnosticsLinkOpticalPowerH\005\210\001\001\022m\n" + + "\027receiving_optical_power\030\337\255\330t \001(\0132@.google.cloud.compute.v1." + + "InterconnectDiagnosticsLinkOpticalPowerH\005\210\001\001\022m\n" + "\032transmitting_optical_power\030\235\272\211\333\001" - + " \001(\0132@.google.cloud.compute.v1.I" - + "nterconnectDiagnosticsLinkOpticalPowerH\006\210\001\001\"\177\n" + + " \001(\0132@.google.cloud.compute.v1.InterconnectDiagnosticsLinkOpticalPowerH\006\210\001\001\"\177\n" + "\021OperationalStatus\022 \n" + "\034UNDEFINED_OPERATIONAL_STATUS\020\000\022$\n" + "\034LINK_OPERATIONAL_STATUS_DOWN\020\375\344\246\206\001\022\"\n" @@ -15220,25 +15254,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004_cknB\016\n" + "\014_operational\"\224\006\n" + "\021InterconnectGroup\022Q\n\n" - + "configured\030\276\364\373\214\001 \001(\01324.googl" - + "e.cloud.compute.v1.InterconnectGroupConfiguredH\000\210\001\001\022\"\n" + + "configured\030\276\364\373\214\001 \001(\01324.google.cloud." + + "compute.v1.InterconnectGroupConfiguredH\000\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\003\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\004\210\001\001\022I\n" + "\006intent\030\234\355\304\313\001" + " \001(\01320.google.cloud.compute.v1.InterconnectGroupIntentH\005\210\001\001\022X\n\r" - + "interconnects\030\245\333\205\370\001 \003(\0132=.google.cloud.compu" - + "te.v1.InterconnectGroup.InterconnectsEntry\022\024\n" + + "interconnects\030\245\333\205\370\001" + + " \003(\0132=.google.cloud.compute.v1.InterconnectGroup.InterconnectsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\006\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022_\n" - + "\022physical_structure\030\213\320\220] \001(\0132;." - + "google.cloud.compute.v1.InterconnectGroupPhysicalStructureH\010\210\001\001\022\032\n" + + "\022physical_structure\030\213\320\220] \001(\0132;.google.c" + + "loud.compute.v1.InterconnectGroupPhysicalStructureH\010\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\t\210\001\001\032l\n" + "\022InterconnectsEntry\022\013\n" + "\003key\030\001 \001(\t\022E\n" - + "\005value\030\002 \001(\01326.google.cloud.com" - + "pute.v1.InterconnectGroupInterconnect:\0028\001B\r\n" + + "\005value\030\002" + + " \001(\01326.google.cloud.compute.v1.InterconnectGroupInterconnect:\0028\001B\r\n" + "\013_configuredB\025\n" + "\023_creation_timestampB\016\n" + "\014_descriptionB\007\n" @@ -15250,14 +15284,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023_physical_structureB\014\n\n" + "_self_link\"\242\001\n" + "\033InterconnectGroupConfigured\022k\n" - + "\023topology_capability\030\350\331\340D \001(" - + "\0132F.google.cloud.compute.v1.Interconnect" - + "GroupConfiguredTopologyCapabilityH\000\210\001\001B\026\n" + + "\023topology_capability\030\350\331\340D \001(\0132F.goog" + + "le.cloud.compute.v1.InterconnectGroupConfiguredTopologyCapabilityH\000\210\001\001B\026\n" + "\024_topology_capability\"\374\002\n" + "-InterconnectGroupConfiguredTopologyCapability\022\212\001\n" - + "\034intended_capability_blockers\030\354\375\300\375\001 \003(\0132`.go" - + "ogle.cloud.compute.v1.InterconnectGroupC" - + "onfiguredTopologyCapabilityIntendedCapabilityBlockers\022\035\n\r" + + "\034intended_capability_blockers\030\354\375\300\375\001 \003(\0132`.google.clo" + + "ud.compute.v1.InterconnectGroupConfigure" + + "dTopologyCapabilityIntendedCapabilityBlockers\022\035\n\r" + "supported_sla\030\227\364\242\034 \001(\tH\000\210\001\001\"\214\001\n" + "\014SupportedSla\022\033\n" + "\027UNDEFINED_SUPPORTED_SLA\020\000\022\r\n" @@ -15288,7 +15321,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027InterconnectGroupIntent\022#\n" + "\023topology_capability\030\350\331\340D \001(\tH\000\210\001\001\"\230\001\n" + "\022TopologyCapability\022!\n" - + "\035UNDEFINED_TOPOLOGY_CAPABILITY\020\000\022\r\n" + + "\035UNDEFINED_TOPOLOGY_CAPABILITY\020\000\022\r" + + "\n" + "\006NO_SLA\020\212\343\376L\022\033\n" + "\023PRODUCTION_CRITICAL\020\345\370\247\340\001\022\036\n" + "\027PRODUCTION_NON_CRITICAL\020\267\275\3757\022\023\n" @@ -15298,28 +15332,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014interconnect\030\216\311\214k \001(\tH\000\210\001\001B\017\n\r" + "_interconnect\"{\n" + "\"InterconnectGroupPhysicalStructure\022U\n" - + "\006metros\030\372\354\227\376\001 \003(\0132A.google.cloud" - + ".compute.v1.InterconnectGroupPhysicalStructureMetros\"\260\001\n" + + "\006metros\030\372\354\227\376\001 \003(\0132A.google.cloud.compute" + + ".v1.InterconnectGroupPhysicalStructureMetros\"\260\001\n" + "(InterconnectGroupPhysicalStructureMetros\022c\n\n" - + "facilities\030\201\305\364\377\001 \003(\0132K.google.cloud.compute.v1.Interconnect" - + "GroupPhysicalStructureMetrosFacilities\022\025\n" + + "facilities\030\201\305\364\377\001 \003(\0132K.goog" + + "le.cloud.compute.v1.InterconnectGroupPhysicalStructureMetrosFacilities\022\025\n" + "\005metro\030\231\332\2761 \001(\tH\000\210\001\001B\010\n" + "\006_metro\"\300\001\n" + "2InterconnectGroupPhysicalStructureMetrosFacilities\022\031\n" + "\010facility\030\243\335\371\356\001 \001(\tH\000\210\001\001\022b\n" - + "\005zones\030\307\244\2557 \003(\0132P.google.cloud.compute.v1.In" - + "terconnectGroupPhysicalStructureMetrosFacilitiesZonesB\013\n" + + "\005zones\030\307\244\2557 \003(\0132P.google.cloud.compute.v1.Interconne" + + "ctGroupPhysicalStructureMetrosFacilitiesZonesB\013\n" + "\t_facility\"s\n" - + "7InterconnectGroupPhysicalStructureMetrosFacilitiesZones\022\031\n\r" + + "7InterconnectGroupPhysicalStructureMetrosFacilitiesZones\022\031\n" + + "\r" + "interconnects\030\245\333\205\370\001 \003(\t\022\024\n" + "\004zone\030\254\307\344\001 \001(\tH\000\210\001\001B\007\n" + "\005_zone\"\320\003\n" + "\037InterconnectGroupsCreateMembers\022(\n" + "\030intent_mismatch_behavior\030\300\325\262N \001(\tH\000\210\001\001\022d\n\r" - + "interconnects\030\245\333\205\370\001 \003(\0132I.google.cloud.compute.v1.Inter" - + "connectGroupsCreateMembersInterconnectInput\022p\n" - + "\025template_interconnect\030\263\260\225k \001(\0132I." - + "google.cloud.compute.v1.InterconnectGroupsCreateMembersInterconnectInputH\001\210\001\001\"t\n" + + "interconnects\030\245\333\205\370\001 \003(\013" + + "2I.google.cloud.compute.v1.InterconnectGroupsCreateMembersInterconnectInput\022p\n" + + "\025template_interconnect\030\263\260\225k \001(\0132I.google.c" + + "loud.compute.v1.InterconnectGroupsCreateMembersInterconnectInputH\001\210\001\001\"t\n" + "\026IntentMismatchBehavior\022&\n" + "\"UNDEFINED_INTENT_MISMATCH_BEHAVIOR\020\000\022\016\n" + "\006CREATE\020\374\251\342\267\001\022\r\n" @@ -15368,15 +15403,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_request\"\260\001\n" + ".InterconnectGroupsGetOperationalStatusResponse\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022T\n" - + "\006result\030\235\220\267B \001(\0132<.google.cloud.com" - + "pute.v1.InterconnectGroupsOperationalStatusH\001\210\001\001B\007\n" + + "\006result\030\235\220\267B \001(\0132<.google.cloud.compute.v1." + + "InterconnectGroupsOperationalStatusH\001\210\001\001B\007\n" + "\005_etagB\t\n" + "\007_result\"\364\002\n" + "\036InterconnectGroupsListResponse\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022<\n" - + "\005items\030\300\317\367/ \003(" - + "\0132*.google.cloud.compute.v1.InterconnectGroup\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132*.google.cloud.compute.v1.InterconnectGroup\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" @@ -15390,15 +15425,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\350\004\n" + "#InterconnectGroupsOperationalStatus\022Q\n\n" - + "configured\030\276\364\373\214\001 \001(\01324.google.clo" - + "ud.compute.v1.InterconnectGroupConfiguredH\000\210\001\001\022\035\n" + + "configured\030\276\364\373\214\001 \001(\01324.google.cloud.compu" + + "te.v1.InterconnectGroupConfiguredH\000\210\001\001\022\035\n" + "\014group_status\030\262\263\305\241\001 \001(\tH\001\210\001\001\022I\n" + "\006intent\030\234\355\304\313\001" + " \001(\01320.google.cloud.compute.v1.InterconnectGroupIntentH\002\210\001\001\022q\n" - + "\025interconnect_statuses\030\261\351\203\325\001 \003(\0132N.google.clo" - + "ud.compute.v1.InterconnectGroupsOperationalStatusInterconnectStatus\022Q\n" - + "\013operational\030\322\307\354=" - + " \001(\01324.google.cloud.compute.v1.InterconnectGroupConfiguredH\003\210\001\001\"\202\001\n" + + "\025interconnect_statuses\030\261\351\203\325\001 \003(\0132N.google.cloud.compu" + + "te.v1.InterconnectGroupsOperationalStatusInterconnectStatus\022Q\n" + + "\013operational\030\322\307\354= " + + "\001(\01324.google.cloud.compute.v1.InterconnectGroupConfiguredH\003\210\001\001\"\202\001\n" + "\013GroupStatus\022\032\n" + "\026UNDEFINED_GROUP_STATUS\020\000\022\020\n" + "\010DEGRADED\020\256\246\240\275\001\022\021\n\n" @@ -15453,8 +15488,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\213\365\315\001 \001(\tH\n" + "\210\001\001\022&\n" + "\025peeringdb_facility_id\030\266\272\355\377\001 \001(\tH\013\210\001\001\022Q\n" - + "\014region_infos\030\372\350\356\224\001 \003(\01327.goo" - + "gle.cloud.compute.v1.InterconnectLocationRegionInfo\022\032\n" + + "\014region_infos\030\372\350\356\224\001 \003(\01327.google.clou" + + "d.compute.v1.InterconnectLocationRegionInfo\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\014\210\001\001\022\026\n" + "\006status\030\362\237\267V \001(\tH\r" + "\210\001\001\022\034\n" @@ -15527,12 +15562,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_region\"\224\001\n" + "\022InterconnectMacsec\022\032\n" + "\tfail_open\030\313\225\373\375\001 \001(\010H\000\210\001\001\022T\n" - + "\017pre_shared_keys\030\362\313\265\310\001 \003(\01327.goo" - + "gle.cloud.compute.v1.InterconnectMacsecPreSharedKeyB\014\n\n" + + "\017pre_shared_keys\030\362\313\265\310\001 \003(\01327.google.clou" + + "d.compute.v1.InterconnectMacsecPreSharedKeyB\014\n\n" + "_fail_open\"v\n" + "\030InterconnectMacsecConfig\022Z\n" - + "\017pre_shared_keys\030\362\313\265\310\001 \003" - + "(\0132=.google.cloud.compute.v1.InterconnectMacsecConfigPreSharedKey\"\250\001\n" + + "\017pre_shared_keys\030\362\313\265\310\001 \003(\0132=.goo" + + "gle.cloud.compute.v1.InterconnectMacsecConfigPreSharedKey\"\250\001\n" + "$InterconnectMacsecConfigPreSharedKey\022\022\n" + "\003cak\030\315\377\005 \001(\tH\000\210\001\001\022\022\n" + "\003ckn\030\206\202\006 \001(\tH\001\210\001\001\022\024\n" @@ -15583,11 +15618,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032InterconnectRemoteLocation\022\030\n" + "\007address\030\364\267\336\334\001 \001(\tH\000\210\001\001\022~\n" + "$attachment_configuration_constraints\030\321\350\353\233\001" - + " \001(\0132G.google.cloud.compu" - + "te.v1.InterconnectAttachmentConfigurationConstraintsH\001\210\001\001\022\024\n" + + " \001(\0132G.google.cloud.compute.v1.In" + + "terconnectAttachmentConfigurationConstraintsH\001\210\001\001\022\024\n" + "\004city\030\353\262\272\001 \001(\tH\002\210\001\001\022[\n" - + "\013constraints\030\266\314\356\001 \001(\0132>.google.cloud.c" - + "ompute.v1.InterconnectRemoteLocationConstraintsH\003\210\001\001\022\031\n" + + "\013constraints\030\266\314\356\001 \001(\0132>.google.cloud.compute.v" + + "1.InterconnectRemoteLocationConstraintsH\003\210\001\001\022\031\n" + "\tcontinent\030\264\333\320? \001(\tH\004\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\005\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\006\210\001\001\022\"\n" @@ -15601,9 +15636,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023max_lag_size10_gbps\030\225\346\230\214\001 \001(\005H\r" + "\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\016\210\001\001\022&\n" - + "\025peeringdb_facility_id\030\266\272\355\377\001 \001(\tH\017\210\001\001\022j\n" - + "\025permitted_connections\030\256\263\345\322\001 \003(\0132G.google.cloud.c" - + "ompute.v1.InterconnectRemoteLocationPermittedConnections\022\037\n" + + "\025peeringdb_facili", + "ty_id\030\266\272\355\377\001 \001(\tH\017\210\001\001\022j\n" + + "\025permitted_connections\030\256\263\345\322\001 \003(\0132G.google.cloud.compute.v" + + "1.InterconnectRemoteLocationPermittedConnections\022\037\n" + "\016remote_service\030\274\377\362\272\001 \001(\tH\020\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\021\210\001\001\022\026\n" + "\006status\030\362\237\267V \001(\tH\022\210\001\001\"\202\001\n" @@ -15641,13 +15677,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017_remote_serviceB\014\n\n" + "_self_linkB\t\n" + "\007_status\"\305\004\n" - + "%InterconnectRemoteLocationConstraints", - "\022*\n" + + "%InterconnectRemoteLocationConstraints\022*\n" + "\031port_pair_remote_location\030\247\262\274\354\001 \001(" + "\tH\000\210\001\001\022\037\n" + "\016port_pair_vlan\030\352\362\203\344\001 \001(\tH\001\210\001\001\022t\n" - + "\023subnet_length_range\030\306\260\373W \001(\0132O.google.c" - + "loud.compute.v1.InterconnectRemoteLocationConstraintsSubnetLengthRangeH\002\210\001\001\"\234\001\n" + + "\023subnet_length_range\030\306\260\373W \001(\0132O.google.cloud.com" + + "pute.v1.InterconnectRemoteLocationConstraintsSubnetLengthRangeH\002\210\001\001\"\234\001\n" + "\026PortPairRemoteLocation\022\'\n" + "#UNDEFINED_PORT_PAIR_REMOTE_LOCATION\020\000\022)\n" + "\"PORT_PAIR_MATCHING_REMOTE_LOCATION\020\323\213\354b\022.\n" @@ -15666,8 +15701,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004_min\"\305\002\n" + "\036InterconnectRemoteLocationList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022E\n" - + "\005items\030\300\317\367/" - + " \003(\01323.google.cloud.compute.v1.InterconnectRemoteLocation\022\024\n" + + "\005items\030\300\317\367/ \003(\0132" + + "3.google.cloud.compute.v1.InterconnectRemoteLocation\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -15682,13 +15717,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025interconnect_location\030\306\330\333\352\001 \001(\tH\000\210\001\001B\030\n" + "\026_interconnect_location\"z\n" + "#InterconnectsGetDiagnosticsResponse\022H\n" - + "\006result\030\235\220\267B \001(\01320" - + ".google.cloud.compute.v1.InterconnectDiagnosticsH\000\210\001\001B\t\n" + + "\006result\030\235\220\267B \001(\01320.google." + + "cloud.compute.v1.InterconnectDiagnosticsH\000\210\001\001B\t\n" + "\007_result\"\233\001\n" + "$InterconnectsGetMacsecConfigResponse\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022I\n" - + "\006result\030\235\220\267B \001(\01321.google.clou" - + "d.compute.v1.InterconnectMacsecConfigH\001\210\001\001B\007\n" + + "\006result\030\235\220\267B" + + " \001(\01321.google.cloud.compute.v1.InterconnectMacsecConfigH\001\210\001\001B\007\n" + "\005_etagB\t\n" + "\007_result\"\351\001\n" + "\034InvalidateCacheUrlMapRequest\022a\n" @@ -15714,16 +15749,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025incompatible_licenses\030\230\260\260\237\001 \003(\t\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022\033\n" + "\014license_code\030\253\306Y \001(\004H\006\210\001\001\022D\n" - + "\021minimum_retention\030\255\340\214J" - + " \001(\0132!.google.cloud.compute.v1.DurationH\007\210\001\001\022\"\n" + + "\021minimum_retention\030\255\340\214J " + + "\001(\0132!.google.cloud.compute.v1.DurationH\007\210\001\001\022\"\n" + "\021multi_tenant_only\030\233\340\353\202\001 \001(\010H\010\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\t\210\001\001\022\033\n\n" + "os_license\030\346\251\330\350\001 \001(\010H\n" + "\210\001\001\022#\n" + "\023removable_from_disk\030\256\205\252\014 \001(\010H\013\210\001\001\022\'\n" + "\034required_coattached_licenses\030\201\272\315= \003(\t\022[\n" - + "\025resource_requirements\030\241\262\227f" - + " \001(\01324.google.cloud.compute.v1.LicenseResourceRequirementsH\014\210\001\001\022\032\n" + + "\025resource_requirements\030\241\262\227f \001" + + "(\01324.google.cloud.compute.v1.LicenseResourceRequirementsH\014\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\r" + "\210\001\001\022!\n" + "\021self_link_with_id\030\202\254\235\025 \001(\tH\016\210\001\001\022!\n" @@ -15772,8 +15807,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_kindB\007\n" + "\005_nameB\014\n\n" + "_self_linkB\010\n" - + "\006_stateB\017\n" - + "\r" + + "\006_stateB\017\n\r" + "_transferable\"q\n" + "\027LicenseCodeLicenseAlias\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\000\210\001\001\022\032\n" @@ -15839,8 +15873,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" + "\013max_results\030\233\310\213\032 \001(\r" + "H\001\210\001\001\022\030\n" - + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n" - + "\n" + + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n" + "\026return_partial_success\030\266\244\317\366\001" @@ -15855,7 +15888,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" + "\013max_results\030\233\310\213\032 \001(\r" + "H\001\210\001\001\022\030\n" - + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n" + + "\n" + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\'\n" @@ -15944,7 +15978,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" + "\013max_results\030\233\310\213\032 \001(\r" + "H\001\210\001\001\022\030\n" - + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n" + + "\n" + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n" + "\026return_partial_success\030\266\244\317\366\001" @@ -16134,7 +16169,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_filterB\016\n" + "\014_max_resultsB\013\n" + "\t_order_byB\r\n" - + "\013_page_tokenB\014\n\n" + + "\013_page_tokenB\014\n" + + "\n" + "_parent_idB\031\n" + "\027_return_partial_success\"\252\002\n" + "(ListGlobalPublicDelegatedPrefixesRequest\022\027\n" @@ -16239,8 +16275,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\036\n" + "\016instance_group\030\325\324\325& \001(\tB\003\340A\002\022}\n" + "/instance_groups_list_instances_request_resource\030\237\250\214\343\001" - + " \001(\0132;.google.clou" - + "d.compute.v1.InstanceGroupsListInstancesRequestB\003\340A\002\022\033\n" + + " \001(\0132;.google.cloud.comput" + + "e.v1.InstanceGroupsListInstancesRequestB\003\340A\002\022\033\n" + "\013max_results\030\233\310\213\032 \001(\r" + "H\001\210\001\001\022\030\n" + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" @@ -16263,9 +16299,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\211\001\n" - + "6region_instance_groups_list_instances_request_resource\030\324\251\200\027" - + " \001(\0132A.google.cloud.compute.v1.Region" - + "InstanceGroupsListInstancesRequestB\003\340A\002\022\'\n" + + "6region_instance_groups_list_instances_request_resource\030\324\251\200\027 \001(\0132" + + "A.google.cloud.compute.v1.RegionInstanceGroupsListInstancesRequestB\003\340A\002\022\'\n" + "\026return_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n" + "\007_filterB\016\n" + "\014_max_resultsB\013\n" @@ -16302,7 +16337,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\t_order_byB\r\n" + "\013_page_tokenB\031\n" + "\027_return_partial_success\"\251\002\n" - + "\'ListInterconnectAttachmentGroupsRequest\022\027\n" + + "\'ListInterconnectAttachmentGr", + "oupsRequest\022\027\n" + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" + "\013max_results\030\233\310\213\032 \001(\r" + "H\001\210\001\001\022\030\n" @@ -16341,8 +16377,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_max_resultsB\013\n" + "\t_order_byB\r\n" + "\013_page_tokenB\031\n" - + "\027_return_partial_suc", - "cess\"\242\002\n" + + "\027_return_partial_success\"\242\002\n" + " ListInterconnectLocationsRequest\022\027\n" + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" + "\013max_results\030\233\310\213\032 \001(\r" @@ -16428,7 +16463,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\033\n" + "\013max_results\030\233\310\213\032 \001(\r" + "H\001\210\001\001\022\030\n" - + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n" + + "\n" + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n" + "\026return_partial_success\030\266\244\317\366\001" @@ -16503,8 +16539,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "H\001\210\001\001\022\'\n" + "\026network_endpoint_group\030\206\313\363\316\001 \001(\tB\003\340A\002\022\213\001\n" + "7network_endpoint_groups_list_endpoints_request_resource\030\216\230\257\034" - + " \001(\0132B.google.cloud." - + "compute.v1.NetworkEndpointGroupsListEndpointsRequestB\003\340A\002\022\030\n" + + " \001(\0132B.google.cloud.compute." + + "v1.NetworkEndpointGroupsListEndpointsRequestB\003\340A\002\022\030\n" + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n" @@ -16736,7 +16772,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026return_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n" + "\007_filterB\016\n" + "\014_max_resultsB\013\n" - + "\t_order_byB\r\n" + + "\t_order_byB\r" + + "\n" + "\013_page_tokenB\031\n" + "\027_return_partial_success\"\317\002\n" + "\035ListReferrersInstancesRequest\022\027\n" @@ -16808,8 +16845,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026return_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n" + "\007_filterB\016\n" + "\014_max_resultsB\013\n" - + "\t_order_byB\r" - + "\n" + + "\t_order_byB\r\n" + "\013_page_tokenB\031\n" + "\027_return_partial_success\"\260\002\n" + "\026ListRegionDisksRequest\022\027\n" @@ -17010,7 +17046,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027_return_partial_success\"\274\002\n" + "\"ListRegionTargetHttpProxiesRequest\022\027\n" + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" - + "\013max_results\030\233\310\213\032 \001(\r" + + "\013max_results", + "\030\233\310\213\032 \001(\r" + "H\001\210\001\001\022\030\n" + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" @@ -17019,7 +17056,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026return_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n" + "\007_filterB\016\n" + "\014_max_resultsB\013\n" - + "\t_order_byB\r\n" + + "\t_order_byB\r" + + "\n" + "\013_page_tokenB\031\n" + "\027_return_partial_success\"\275\002\n" + "#ListRegionTargetHttpsProxiesRequest\022\027\n" @@ -17033,7 +17071,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026return_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n" + "\007_filterB\016\n" + "\014_max_resultsB\013\n" - + "\t_order_byB\r\n" + + "\t_order_byB\r" + + "\n" + "\013_page_tokenB\031\n" + "\027_return_partial_success\"\273\002\n" + "!ListRegionTargetTcpProxiesRequest\022\027\n" @@ -17049,8 +17088,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_max_resultsB\013\n" + "\t_order_byB\r\n" + "\013_page_tokenB\031\n" - + "\027_return_partial_s", - "uccess\"\262\002\n" + + "\027_return_partial_success\"\262\002\n" + "\030ListRegionUrlMapsRequest\022\027\n" + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" + "\013max_results\030\233\310\213\032 \001(\r" @@ -17083,7 +17121,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" + "\013max_results\030\233\310\213\032 \001(\r" + "H\001\210\001\001\022\030\n" - + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n" + + "\n" + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n" + "\026return_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n" @@ -17112,8 +17151,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" + "\013max_results\030\233\310\213\032 \001(\r" + "H\001\210\001\001\022\030\n" - + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n" - + "\n" + + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\034\n" + "\013parent_name\030\200\212\200\344\001 \001(\tB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n" @@ -17343,7 +17381,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026return_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n" + "\007_filterB\016\n" + "\014_max_resultsB\013\n" - + "\t_order_byB\r\n" + + "\t_order_byB\r" + + "\n" + "\013_page_tokenB\031\n" + "\027_return_partial_success\"\262\002\n" + "\032ListTargetInstancesRequest\022\027\n" @@ -17398,8 +17437,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026return_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n" + "\007_filterB\016\n" + "\014_max_resultsB\013\n" - + "\t_order_byB\r" - + "\n" + + "\t_order_byB\r\n" + "\013_page_tokenB\031\n" + "\027_return_partial_success\"\266\002\n" + "\034ListTargetVpnGatewaysRequest\022\027\n" @@ -17453,7 +17491,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026return_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n" + "\007_filterB\016\n" + "\014_max_resultsB\013\n" - + "\t_order_byB\r\n" + + "\t_order_byB\r" + + "\n" + "\013_page_tokenB\031\n" + "\027_return_partial_success\"\236\002\n" + "\034ListUsableSubnetworksRequest\022\027\n" @@ -17504,8 +17543,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022n\n" - + "(projects_list_xpn_hosts_request_resource\030\227\320\316q" - + " \001(\01324.google.cloud.compute.v1.ProjectsListXpnHostsRequestB\003\340A\002\022\'\n" + + "(projects_list_xpn_hosts_request_resource\030\227\320\316q \001(\013" + + "24.google.cloud.compute.v1.ProjectsListXpnHostsRequestB\003\340A\002\022\'\n" + "\026return_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n" + "\007_filterB\016\n" + "\014_max_resultsB\013\n" @@ -17558,8 +17597,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014target_shape\030\363\346\273\241\001 \001(\tH\000\210\001\001\032a\n" + "\016LocationsEntry\022\013\n" + "\003key\030\001 \001(\t\022>\n" - + "\005value\030\002 \001(\0132/.google." - + "cloud.compute.v1.LocationPolicyLocation:\0028\001\"^\n" + + "\005value\030\002" + + " \001(\0132/.google.cloud.compute.v1.LocationPolicyLocation:\0028\001\"^\n" + "\013TargetShape\022\032\n" + "\026UNDEFINED_TARGET_SHAPE\020\000\022\t\n" + "\003ANY\020\314\373\003\022\026\n" @@ -17567,8 +17606,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010BALANCED\020\210\272\255\337\001B\017\n\r" + "_target_shape\"\216\002\n" + "\026LocationPolicyLocation\022W\n" - + "\013constraints\030\266\314\356\001" - + " \001(\0132:.google.cloud.compute.v1.LocationPolicyLocationConstraintsH\000\210\001\001\022\032\n\n" + + "\013constraints\030\266\314\356\001 \001(\0132" + + ":.google.cloud.compute.v1.LocationPolicyLocationConstraintsH\000\210\001\001\022\032\n\n" + "preference\030\333\371\362G \001(\tH\001\210\001\001\"`\n\n" + "Preference\022\030\n" + "\024UNDEFINED_PREFERENCE\020\000\022\014\n" @@ -17585,14 +17624,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022\034\n" + "\013guest_flush\030\335\223\354\267\001 \001(\010H\002\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\003\210\001\001\022P\n" - + "\023instance_properties\030\235\236\330f \001(\0132+.google" - + ".cloud.compute.v1.InstancePropertiesH\004\210\001\001\022\024\n" + + "\023instance_properties\030\235\236\330f" + + " \001(\0132+.google.cloud.compute.v1.InstancePropertiesH\004\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\006\210\001\001\022E\n" - + "\006labels\030\377\277\301\356\001 \003(\01321" - + ".google.cloud.compute.v1.MachineImage.LabelsEntry\022]\n" - + "\034machine_image_encryption_key\030\377\377\347\373\001" - + " \001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\007\210\001\001\022\024\n" + + "\006labels\030\377\277\301\356\001 \003(\01321.google." + + "cloud.compute.v1.MachineImage.LabelsEntry\022]\n" + + "\034machine_image_encryption_key\030\377\377\347\373\001 " + + "\001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\007\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\010\210\001\001\022\036\n\r" + "satisfies_pzi\030\241\335\253\345\001 \001(\010H\t\210\001\001\022\036\n\r" + "satisfies_pzs\030\253\335\253\345\001 \001(\010H\n" @@ -17600,11 +17639,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013saved_disks\030\276\355\300\275\001" + " \003(\0132\".google.cloud.compute.v1.SavedDisk\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\013\210\001\001\022Y\n" - + "\033source_disk_encryption_keys\030\262\370\317\260\001 \003(\013" - + "20.google.cloud.compute.v1.SourceDiskEncryptionKey\022 \n" + + "\033source_disk_encryption_keys\030\262\370\317\260\001 \003(\01320.googl" + + "e.cloud.compute.v1.SourceDiskEncryptionKey\022 \n" + "\017source_instance\030\271\230\375\274\001 \001(\tH\014\210\001\001\022^\n" - + "\032source_instance_properties\030\371\321\313\342\001" - + " \001(\01321.google.cloud.compute.v1.SourceInstancePropertiesH\r" + + "\032source_instance_properties\030\371\321\313\342\001 \001(\01321.g" + + "oogle.cloud.compute.v1.SourceInstancePropertiesH\r" + "\210\001\001\022\026\n" + "\006status\030\362\237\267V \001(\tH\016\210\001\001\022\035\n" + "\021storage_locations\030\232\355\263\234\001 \003(\t\022#\n" @@ -17645,7 +17684,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" - + "\020_next_page_tokenB\014\n\n" + + "\020_next_page_tokenB\014\n" + + "\n" + "_self_linkB\n\n" + "\010_warning\"\244\007\n" + "\013MachineType\022?\n" @@ -17653,8 +17693,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\0132%.google.cloud.compute.v1.Accelerators\022\035\n" + "\014architecture\030\323\322\261\220\001 \001(\tH\000\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022G\n\n" - + "deprecated\030\263\313\321\365\001 " - + "\001(\0132*.google.cloud.compute.v1.DeprecationStatusH\002\210\001\001\022\034\n" + + "deprecated\030\263\313\321\365\001 \001(\0132*.go" + + "ogle.cloud.compute.v1.DeprecationStatusH\002\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\003\210\001\001\022\033\n\n" + "guest_cpus\030\322\313\310\273\001 \001(\005H\004\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\005\210\001\001\022\036\n" @@ -17691,8 +17731,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\302\003\n" + "\031MachineTypeAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022O\n" - + "\005items\030\300\317\367/ \003(\0132=.googl" - + "e.cloud.compute.v1.MachineTypeAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132=.google.cloud." + + "compute.v1.MachineTypeAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -17726,24 +17766,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\362\n\n" - + "\017ManagedInstance\022\036\n" + + "\017Mana", + "gedInstance\022\036\n" + "\016current_action\030\274\247\215U \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\001\210\001\001\022\030\n" + "\010instance\030\225\251\332\010 \001(\tH\002\210\001\001\022S\n" - + "\017instance_health\030\306\222\274\266\001" - + " \003(\01326.google.cloud.compute.v1.ManagedInstanceInstanceHealth\022\037\n" + + "\017instance_health\030\306\222\274\266\001 \003(\01326.g" + + "oogle.cloud.compute.v1.ManagedInstanceInstanceHealth\022\037\n" + "\017instance_status\030\334\255\237S \001(\tH\003\210\001\001\022R\n" - + "\014last_attempt\030\244\254\250\317\001 \001(\0132" - + "3.google.cloud.compute.v1.ManagedInstanceLastAttemptH\004\210\001\001\022\024\n" + + "\014last_attempt\030\244\254\250\317\001 \001(\01323.google" + + ".cloud.compute.v1.ManagedInstanceLastAttemptH\004\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\005\210\001\001\022T\n" - + "\033preserved_state_from_config\030\342\353\205/ \001(\0132" - + "\'.google.cloud.compute.v1.PreservedStateH\006\210\001\001\022U\n" - + "\033preserved_state_from_policy\030\322\257\276\340\001" - + " \001(\0132\'.google.cloud.compute.v1.PreservedStateH\007\210\001\001\022{\n" - + "\"properties_from_flexibility_policy\030\301\305\224J \001(\0132G.google.cloud.compu" - + "te.v1.ManagedInstancePropertiesFromFlexibilityPolicyH\010\210\001\001\022I\n" - + "\007version\030\330\271\324\247\001 \001(\0132/" - + ".google.cloud.compute.v1.ManagedInstanceVersionH\t\210\001\001\"\205\002\n\r" + + "\033preserved_state_from_config\030\342\353\205/" + + " \001(\0132\'.google.cloud.compute.v1.PreservedStateH\006\210\001\001\022U\n" + + "\033preserved_state_from_policy\030\322\257\276\340\001 \001(\0132\'" + + ".google.cloud.compute.v1.PreservedStateH\007\210\001\001\022{\n" + + "\"properties_from_flexibility_policy\030\301\305\224J" + + " \001(\0132G.google.cloud.compute.v1.Ma" + + "nagedInstancePropertiesFromFlexibilityPolicyH\010\210\001\001\022I\n" + + "\007version\030\330\271\324\247\001 \001(\0132/.google." + + "cloud.compute.v1.ManagedInstanceVersionH\t\210\001\001\"\205\002\n\r" + "CurrentAction\022\034\n" + "\030UNDEFINED_CURRENT_ACTION\020\000\022\022\n\n" + "ABANDONING\020\315\312\220\271\001\022\020\n" @@ -17752,8 +17794,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010DELETING\020\250\247\207\374\001\022\013\n" + "\004NONE\020\270\316\222\001\022\022\n\n" + "RECREATING\020\354\213\376\210\001\022\021\n\n" - + "REFRESHING\020\247\376", - "\354M\022\022\n\n" + + "REFRESHING\020\247\376\354M\022\022\n\n" + "RESTARTING\020\363\356\353\230\001\022\020\n" + "\010RESUMING\020\252\373\211\325\001\022\020\n" + "\010STARTING\020\300\240\213\351\001\022\020\n" @@ -17767,8 +17808,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007STAGING\020\233\310\306\315\001\022\017\n" + "\007STOPPED\020\255\273\354\323\001\022\020\n" + "\010STOPPING\020\364\320\242\247\001\022\020\n" - + "\tSUSPENDED\020\273\273\266\030\022\022\n" - + "\n" + + "\tSUSPENDED\020\273\273\266\030\022\022\n\n" + "SUSPENDING\020\246\324\230\365\001\022\021\n\n" + "TERMINATED\020\243\364\233wB\021\n" + "\017_current_actionB\005\n" @@ -17794,8 +17834,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026_detailed_health_stateB\017\n\r" + "_health_check\"{\n" + "\032ManagedInstanceLastAttempt\022R\n" - + "\006errors\030\353\336\325\226\001 \001(\01329.google.cloud.c" - + "ompute.v1.ManagedInstanceLastAttemptErrorsH\000\210\001\001B\t\n" + + "\006errors\030\353\336\325\226\001 \001(\01329.google.cloud.compute.v" + + "1.ManagedInstanceLastAttemptErrorsH\000\210\001\001B\t\n" + "\007_errors\"W\n" + " ManagedInstanceLastAttemptErrors\0223\n" + "\006errors\030\353\336\325\226\001 \003(\0132\037.google.cloud.compute.v1.Errors\"_\n" @@ -17813,8 +17853,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001B\016\n" + "\014_fingerprintB\007\n" + "\005_kind\"\217\002\n" - + "\016MetadataFilter\022L\n" - + "\r" + + "\016MetadataFilter\022L\n\r" + "filter_labels\030\246\365\350\222\001" + " \003(\01321.google.cloud.compute.v1.MetadataFilterLabelMatch\022%\n" + "\025filter_match_criteria\030\300\320\266r \001(\tH\000\210\001\001\"n\n" @@ -17834,13 +17873,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022l\n" - + "®ion_addresses_move_request_resource\030\304\260\210\303\001 \001(\01323.goog" - + "le.cloud.compute.v1.RegionAddressesMoveRequestB\003\340A\002\022\032\n\n" + + "®ion_addresses_move_request_resource\030\304\260\210\303\001" + + " \001(\01323.google.cloud" + + ".compute.v1.RegionAddressesMoveRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\275\001\n" + "\026MoveDiskProjectRequest\022U\n" - + "\032disk_move_request_resource\030\312\302\240\225\001 \001(" - + "\0132(.google.cloud.compute.v1.DiskMoveRequestB\003\340A\002\022!\n" + + "\032disk_move_request_resource\030\312\302\240\225\001 \001(\0132(.goog" + + "le.cloud.compute.v1.DiskMoveRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" @@ -17859,11 +17899,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\311\001\n" + "\032MoveInstanceProjectRequest\022]\n" - + "\036instance_move_request_resource\030\302\274\316\224\001 \001(\0132,.google" - + ".cloud.compute.v1.InstanceMoveRequestB\003\340A\002\022!\n" + + "\036instance_move_request_resource\030\302\274\316\224\001" + + " \001(\0132,.google.cloud.compute.v1.InstanceMoveRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\032\n" - + "\n" + + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"I\n" + "\tNamedPort\022\024\n" @@ -17872,8 +17911,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_nameB\007\n" + "\005_port\"\210\001\n" + "\tNatIpInfo\022S\n" - + "\024nat_ip_info_mappings\030\234\200\216s \003" - + "(\01322.google.cloud.compute.v1.NatIpInfoNatIpInfoMapping\022\031\n" + + "\024nat_ip_info_mappings\030\234\200\216s \003(\01322.goo" + + "gle.cloud.compute.v1.NatIpInfoNatIpInfoMapping\022\031\n" + "\010nat_name\030\351\255\370\312\001 \001(\tH\000\210\001\001B\013\n" + "\t_nat_name\"\362\001\n" + "\031NatIpInfoNatIpInfoMapping\022\024\n" @@ -17886,8 +17925,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004AUTO\020\257\253{\022\r\n" + "\006MANUAL\020\306\267\3678\";\n" + "\005Usage\022\023\n" - + "\017UNDEFINED_USAGE\020\000\022\r" - + "\n" + + "\017UNDEFINED_USAGE\020\000\022\r\n" + "\006IN_USE\020\315\316\245\010\022\016\n" + "\006UNUSED\020\326\363\373\253\001B\007\n" + "\005_modeB\t\n" @@ -17915,10 +17953,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\210\001\001\022>\n" + "\006params\030\206\363\253%" + " \001(\0132&.google.cloud.compute.v1.NetworkParamsH\016\210\001\001\022<\n" - + "\010peerings\030\263\252\251!" - + " \003(\0132\'.google.cloud.compute.v1.NetworkPeering\022N\n" - + "\016routing_config\030\333\251\323\371\001 \001(\0132-." - + "google.cloud.compute.v1.NetworkRoutingConfigH\017\210\001\001\022\032\n" + + "\010peerings\030\263\252\251! \003(\013" + + "2\'.google.cloud.compute.v1.NetworkPeering\022N\n" + + "\016routing_config\030\333\251\323\371\001 \001(\0132-.google.c" + + "loud.compute.v1.NetworkRoutingConfigH\017\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\020\210\001\001\022!\n" + "\021self_link_with_id\030\202\254\235\025 \001(\tH\021\210\001\001\022\027\n" + "\013subnetworks\030\305\324\245\306\001 \003(\t\"\240\001\n" @@ -17980,8 +18018,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022_self_link_with_id\"\273\003\n" + "\037NetworkAttachmentAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022U\n" - + "\005items\030\300\317\367/ \003(" - + "\0132C.google.cloud.compute.v1.NetworkAttachmentAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132C.goog" + + "le.cloud.compute.v1.NetworkAttachmentAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -18020,8 +18058,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026_subnetwork_cidr_range\"\263\002\n" + "\025NetworkAttachmentList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022<\n" - + "\005items\030\300\317\367/ \003(\0132" - + "*.google.cloud.compute.v1.NetworkAttachment\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132*.google.cloud.compute.v1.NetworkAttachment\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -18062,8 +18100,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(NetworkEdgeSecurityServiceAggregatedList\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022^\n" - + "\005items\030\300\317\367/ \003(\0132L.google.clou" - + "d.compute.v1.NetworkEdgeSecurityServiceAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132L.google.cloud.comput" + + "e.v1.NetworkEdgeSecurityServiceAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" @@ -18072,8 +18110,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\005\210\001\001\032l\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022M\n" - + "\005value\030\002 \001(\0132>.goog" - + "le.cloud.compute.v1.NetworkEdgeSecurityServicesScopedList:\0028\001B\007\n" + + "\005value\030\002 \001(\0132>.google.cloud" + + ".compute.v1.NetworkEdgeSecurityServicesScopedList:\0028\001B\007\n" + "\005_etagB\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" @@ -18087,8 +18125,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\236\003\n" + "\017NetworkEndpoint\022Q\n" - + "\013annotations\030\244\366\2655 \003(\01329.google.cloud" - + ".compute.v1.NetworkEndpoint.AnnotationsEntry\022\'\n" + + "\013annotations\030\244\366\2655" + + " \003(\01329.google.cloud.compute.v1.NetworkEndpoint.AnnotationsEntry\022\'\n" + "\027client_destination_port\030\206\210\202; \001(\005H\000\210\001\001\022\024\n" + "\004fqdn\030\225\245\300\001 \001(\tH\001\210\001\001\022\030\n" + "\010instance\030\225\251\332\010 \001(\tH\002\210\001\001\022\033\n\n" @@ -18105,14 +18143,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_ipv6_addressB\007\n" + "\005_port\"\211\013\n" + "\024NetworkEndpointGroup\022V\n" - + "\013annotations\030\244\366\2655" - + " \003(\0132>.google.cloud.compute.v1.NetworkEndpointGroup.AnnotationsEntry\022S\n\n" + + "\013annotations\030\244\366\2655 \003(\0132" + + ">.google.cloud.compute.v1.NetworkEndpointGroup.AnnotationsEntry\022S\n\n" + "app_engine\030\240\214\300\242\001" + " \001(\01326.google.cloud.compute.v1.NetworkEndpointGroupAppEngineH\000\210\001\001\022[\n" - + "\016cloud_function\030\242\345\363\367\001 \001(\0132:.google.cloud." - + "compute.v1.NetworkEndpointGroupCloudFunctionH\001\210\001\001\022P\n" - + "\tcloud_run\030\201\313\3724 \001(\01325.google" - + ".cloud.compute.v1.NetworkEndpointGroupCloudRunH\002\210\001\001\022\"\n" + + "\016cloud_function\030\242\345\363\367\001 \001(\0132:.google.cloud.compute." + + "v1.NetworkEndpointGroupCloudFunctionH\001\210\001\001\022P\n" + + "\tcloud_run\030\201\313\3724 \001(\01325.google.cloud.c" + + "ompute.v1.NetworkEndpointGroupCloudRunH\002\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\003\210\001\001\022\035\n" + "\014default_port\030\277\367\360\311\001 \001(\005H\004\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\005\210\001\001\022\020\n" @@ -18153,7 +18191,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_descriptionB\005\n" + "\003_idB\007\n" + "\005_kindB\007\n" - + "\005_nameB\n\n" + + "\005_nameB\n" + + "\n" + "\010_networkB\030\n" + "\026_network_endpoint_typeB\013\n" + "\t_psc_dataB\025\n" @@ -18165,8 +18204,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\335\003\n" + "\"NetworkEndpointGroupAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022X\n" - + "\005items\030\300\317\367/ \003(\0132F.google.cloud.compute.v1." - + "NetworkEndpointGroupAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132F.google.cloud.compute.v1.NetworkEndpointGroupAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -18180,7 +18219,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" - + "_self_linkB\n\n" + + "_self_linkB\n" + + "\n" + "\010_warning\"\222\001\n" + "\035NetworkEndpointGroupAppEngine\022\030\n" + "\007service\030\265\215\217\262\001 \001(\tH\000\210\001\001\022\030\n" @@ -18203,8 +18243,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\t_url_mask\"\271\002\n" + "\030NetworkEndpointGroupList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022?\n" - + "\005items\030\300\317\367/" - + " \003(\0132-.google.cloud.compute.v1.NetworkEndpointGroup\022\024\n" + + "\005items\030\300\317\367/ \003(\0132-" + + ".google.cloud.compute.v1.NetworkEndpointGroup\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -18247,8 +18287,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016_health_status\"\253\002\n" + ")NetworkEndpointGroupsListNetworkEndpoints\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022J\n" - + "\005items\030\300\317\367/ \003(\01328.googl" - + "e.cloud.compute.v1.NetworkEndpointWithHealthStatus\022\024\n" + + "\005items\030\300\317\367/ \003(\01328.google.cloud." + + "compute.v1.NetworkEndpointWithHealthStatus\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" @@ -18271,8 +18311,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021_network_endpoint\"\332\003\n" + "#NetworkFirewallPolicyAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022Y\n" - + "\005items\030\300\317\367/ \003(\0132G.google.cloud.compute.v1.Netwo" - + "rkFirewallPolicyAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\013" + + "2G.google.cloud.compute.v1.NetworkFirewallPolicyAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -18281,8 +18321,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032a\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022B\n" - + "\005value\030\002" - + " \001(\01323.google.cloud.compute.v1.FirewallPoliciesScopedList:\0028\001B\005\n" + + "\005value\030\002 \001" + + "(\01323.google.cloud.compute.v1.FirewallPoliciesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -18306,7 +18346,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013network_i_p\030\211\261\345b \001(\tH\010\210\001\001\022\030\n" + "\010nic_type\030\221\306\302\034 \001(\tH\t\210\001\001\022\034\n" + "\013queue_count\030\341\370\227\360\001 \001(\005H\n" - + "\210\001\001\022\033\n\n" + + "\210\001\001\022\033\n" + + "\n" + "stack_type\030\221\265\213\313\001 \001(\tH\013\210\001\001\022\033\n\n" + "subnetwork\030\356\247\344\222\001 \001(\tH\014\210\001\001\"y\n" + "\016Ipv6AccessType\022\036\n" @@ -18357,8 +18398,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\257\001\n\r" + "NetworkParams\022b\n" - + "\025resource_manager_tags\030\374\233\213\264\001" - + " \003(\0132?.google.cloud.compute.v1.NetworkParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\013" + + "2?.google.cloud.compute.v1.NetworkParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\272\006\n" @@ -18372,7 +18413,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "#import_subnet_routes_with_public_ip\030\221\216\360\006" + " \001(\010H\005\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\006\210\001\001\022\027\n" - + "\007network\030\256\264\205o \001(\tH\007\210\001\001\022\030\n" + + "\007network\030\256\264\205o", + " \001(\tH\007\210\001\001\022\030\n" + "\010peer_mtu\030\321\216\227! \001(\005H\010\210\001\001\022\033\n\n" + "stack_type\030\221\265\213\313\001 \001(\tH\t\210\001\001\022\025\n" + "\005state\030\221\211\2534 \001(\tH\n" @@ -18410,12 +18452,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016NetworkProfile\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022P\n" - + "\010features\030\275\310\263u \001(\01326.google.cloud.compute.v1.NetworkProfileNe", - "tworkFeaturesH\002\210\001\001\022\020\n" + + "\010features\030\275\310\263u \001(\01326.google.c" + + "loud.compute.v1.NetworkProfileNetworkFeaturesH\002\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022J\n" - + "\010location\030\265\277\276\212\001 \001(\013" - + "2/.google.cloud.compute.v1.NetworkProfileLocationH\005\210\001\001\022\024\n" + + "\010location\030\265\277\276\212\001 \001(\0132/.googl" + + "e.cloud.compute.v1.NetworkProfileLocationH\005\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\006\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\007\210\001\001\022!\n" + "\021self_link_with_id\030\202\254\235\025 \001(\tH\010\210\001\001\022\024\n" @@ -18434,8 +18476,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\213\365\315\001 \001(\tH\000\210\001\001\022\025\n" + "\005scope\030\324\374\2144 \001(\tH\001\210\001\001\"8\n" + "\005Scope\022\023\n" - + "\017UNDEFINED_SCOPE\020\000\022\r" - + "\n" + + "\017UNDEFINED_SCOPE\020\000\022\r\n" + "\006REGION\020\364\265\354~\022\013\n" + "\004ZONE\020\254\267\250\001B\007\n" + "\005_nameB\010\n" @@ -18640,8 +18681,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_etagB\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" - + "\020_next_page_tokenB\014\n" - + "\n" + + "\020_next_page_tokenB\014\n\n" + "_self_linkB\n\n" + "\010_warning\"\256\006\n" + "\024NetworkRoutingConfig\022&\n" @@ -18676,26 +18716,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031NetworksAddPeeringRequest\022\"\n" + "\022auto_create_routes\030\335\342\262\033 \001(\010H\000\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\001\210\001\001\022I\n" - + "\017network_peering\030\257\214\354\234\001 \001(\0132\'." - + "google.cloud.compute.v1.NetworkPeeringH\002\210\001\001\022\035\n" + + "\017network_peering\030\257\214\354\234\001" + + " \001(\0132\'.google.cloud.compute.v1.NetworkPeeringH\002\210\001\001\022\035\n" + "\014peer_network\030\321\340\333\356\001 \001(\tH\003\210\001\001B\025\n" + "\023_auto_create_routesB\007\n" + "\005_nameB\022\n" + "\020_network_peeringB\017\n\r" + "_peer_network\"\326\001\n" + "%NetworksGetEffectiveFirewallsResponse\022s\n" - + "\020firewall_policys\030\302\312\374\303\001 \003(\0132U.google.cloud.compute.v" - + "1.NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy\0228\n" + + "\020firewall_policys\030\302\312\374\303\001" + + " \003(\0132U.google.cloud.compute.v1.Networ" + + "ksGetEffectiveFirewallsResponseEffectiveFirewallPolicy\0228\n" + "\tfirewalls\030\363\306\350\201\001" + " \003(\0132!.google.cloud.compute.v1.Firewall\"\363\003\n" + ".google.c" - + "loud.compute.v1.NodeTemplateAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132>.google.cloud.com" + + "pute.v1.NodeTemplateAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -18969,7 +19009,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" - + "_self_linkB\n\n" + + "_self_linkB\n" + + "\n" + "\010_warning\"\251\002\n" + "\020NodeTemplateList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\0227\n" @@ -18992,8 +19033,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_local_ssdB\t\n" + "\007_memory\"\243\001\n" + "\027NodeTemplatesScopedList\022A\n" - + "\016node_templates\030\274\242\355\250\001 \003(\0132" - + "%.google.cloud.compute.v1.NodeTemplate\0229\n" + + "\016node_templates\030\274\242\355\250\001" + + " \003(\0132%.google.cloud.compute.v1.NodeTemplate\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\306\004\n" @@ -19006,14 +19047,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "guest_cpus\030\322\313\310\273\001 \001(\005H\004\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\005\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\006\210\001\001\022\035\n" - + "\014local_ssd_gb\030\312\210\377\234\001 \001(\005H\007\210\001\001\022\030\n" + + "\014loc", + "al_ssd_gb\030\312\210\377\234\001 \001(\005H\007\210\001\001\022\030\n" + "\007max_vms\030\301\226\325\222\001 \001(\005H\010\210\001\001\022\031\n" + "\tmemory_mb\030\223\223\2507 \001(\005H\t\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\n" + "\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\013\210\001\001\022\024\n" - + "\004zone\030\254\307\344\001 \001(\tH\014\210\001\001B\017\n" - + "\r" + + "\004zone\030\254\307\344\001 \001(\tH\014\210\001\001B\017\n\r" + "_cpu_platformB\025\n" + "\023_creation_timestampB\r\n" + "\013_deprecatedB\016\n" @@ -19029,8 +19070,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\271\003\n" + "\026NodeTypeAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022L\n" - + "\005items\030\300\317\367/ \003(\0132:." - + "google.cloud.compute.v1.NodeTypeAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132:.google.c" + + "loud.compute.v1.NodeTypeAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -19044,13 +19085,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" - + "_self_linkB\n\n" + + "_self_linkB\n" + + "\n" + "\010_warning\"\241\002\n" + "\014NodeTypeList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\0223\n" + "\005items\030\300\317\367/ \003(\0132!.google.cloud.compute.v1.NodeType\022\024\n" - + "\004kind\030\224\367\310\001 ", - "\001(\tH\001\210\001\001\022\037\n" + + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" @@ -19068,8 +19109,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024NotificationEndpoint\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022Y\n\r" - + "grpc_settings\030\244\306\300\331\001 \001(\01329.google.cloud.co" - + "mpute.v1.NotificationEndpointGrpcSettingsH\002\210\001\001\022\020\n" + + "grpc_settings\030\244\306\300\331\001 \001(\01329.google.cloud.compute.v1" + + ".NotificationEndpointGrpcSettingsH\002\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\005\210\001\001\022\026\n" @@ -19098,8 +19139,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023_retry_duration_sec\"\271\002\n" + "\030NotificationEndpointList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022?\n" - + "\005items\030\300\317\367/" - + " \003(\0132-.google.cloud.compute.v1.NotificationEndpoint\022\024\n" + + "\005items\030\300\317\367/ \003(\0132-" + + ".google.cloud.compute.v1.NotificationEndpoint\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -19122,9 +19163,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\005B\003\350G\003H\006\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\007\210\001\001\022\034\n" + "\013insert_time\030\223\251\350\316\001 \001(\tH\010\210\001\001\022w\n" - + "(instances_bulk_insert_operation_metadata\030\301\206\301*" - + " \001(\0132=.google.cloud.compute.v1.InstancesBulkInsertOperationMetadataH" - + "\t\210\001\001\022\024\n" + + "(instances_bulk_insert_operation_metadata\030\301\206\301* \001(\0132=.g" + + "oogle.cloud.compute.v1.InstancesBulkInsertOperationMetadataH\t\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\n" + "\210\001\001\022\031\n" + "\004name\030\213\365\315\001 \001(\tB\003\350G\001H\013\210\001\001\022\"\n" @@ -19134,12 +19174,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010progress\030\255\204\323\" \001(\005H\016\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\017\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\020\210\001\001\022\205\001\n" - + "/set_common_instance_metadata_operation_metadata\030\344\255\352\351\001" - + " \001(\0132C.google.cloud.compute.v1.SetC" - + "ommonInstanceMetadataOperationMetadataH\021\210\001\001\022\032\n\n" + + "/set_common_instance_metadata_operation_metadata\030\344\255\352\351\001 \001(" + + "\0132C.google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadataH\021\210\001\001\022\032\n\n" + "start_time\030\212\351\356\021 \001(\tH\022\210\001\001\022F\n" - + "\006status\030\362\237\267V" - + " \001(\0162).google.cloud.compute.v1.Operation.StatusB\003\350G\002H\023\210\001\001\022\037\n" + + "\006status\030\362\237\267V \001" + + "(\0162).google.cloud.compute.v1.Operation.StatusB\003\350G\002H\023\210\001\001\022\037\n" + "\016status_message\030\272\311\351\215\001 \001(\tH\024\210\001\001\022\031\n" + "\ttarget_id\030\211\225\215{ \001(\004H\025\210\001\001\022\033\n" + "\013target_link\030\350\223\361\035 \001(\tH\026\210\001\001\022\024\n" @@ -19179,8 +19218,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\274\003\n" + "\027OperationAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022M\n" - + "\005items\030\300\317\367/ \003(" - + "\0132;.google.cloud.compute.v1.OperationAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132;.goog" + + "le.cloud.compute.v1.OperationAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -19189,8 +19228,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032[\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022<\n" - + "\005value\030\002 \001(\0132-.google" - + ".cloud.compute.v1.OperationsScopedList:\0028\001B\005\n" + + "\005value\030\002" + + " \001(\0132-.google.cloud.compute.v1.OperationsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -19224,8 +19263,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "%enforcing_consecutive_gateway_failure\030\332\337\212\274\001" + " \001(\005H\004\210\001\001\022&\n" + "\026enforcing_success_rate\030\274\357\337\\ \001(\005H\005\210\001\001\022;\n" - + "\010interval\030\305\311\377\017" - + " \001(\0132!.google.cloud.compute.v1.DurationH\006\210\001\001\022$\n" + + "\010interval\030\305\311\377\017 " + + "\001(\0132!.google.cloud.compute.v1.DurationH\006\210\001\001\022$\n" + "\024max_ejection_percent\030\230\246\345\010 \001(\005H\007\210\001\001\022+\n" + "\032success_rate_minimum_hosts\030\367\241\332\372\001" + " \001(\005H\010\210\001\001\022,\n" @@ -19270,8 +19309,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016_num_intervalsB\007\n" + "\005_type\"\272\006\n" + "\017PacketMirroring\022Z\n\r" - + "collector_ilb\030\355\211\266\313\001 \001(\0132:" - + ".google.cloud.compute.v1.PacketMirroringForwardingRuleInfoH\000\210\001\001\022\"\n" + + "collector_ilb\030\355\211\266\313\001 \001(\0132:.google." + + "cloud.compute.v1.PacketMirroringForwardingRuleInfoH\000\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\027\n" + "\006enable\030\203\313\324\224\001 \001(\tH\003\210\001\001\022G\n" @@ -19279,12 +19318,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132..google.cloud.compute.v1.PacketMirroringFilterH\004\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\005\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\006\210\001\001\022`\n" - + "\022mirrored_resources\030\304\237\302; \001(\0132<.google.cloud.comput" - + "e.v1.PacketMirroringMirroredResourceInfoH\007\210\001\001\022\024\n" + + "\022mirrored_resources\030\304\237\302;" + + " \001(\0132<.google.cloud.compute.v1.PacketMirroringMirroredResourceInfoH\007\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\010\210\001\001\022L\n" - + "\007network\030\256\264\205o" - + " \001(\01323.google.cloud.compute.v1.PacketMirroringNetworkInfoH" - + "\t\210\001\001\022\031\n" + + "\007network\030\256\264\205o \001(\0132" + + "3.google.cloud.compute.v1.PacketMirroringNetworkInfoH\t\210\001\001\022\031\n" + "\010priority\030\244\363\241\324\001 \001(\r" + "H\n" + "\210\001\001\022\026\n" @@ -19309,8 +19347,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_link\"\316\003\n" + "\035PacketMirroringAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022S\n" - + "\005items\030\300\317\367/" - + " \003(\0132A.google.cloud.compute.v1.PacketMirroringAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003" + + "(\0132A.google.cloud.compute.v1.PacketMirroringAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -19319,8 +19357,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032a\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022B\n" - + "\005value\030\002" - + " \001(\01323.google.cloud.compute.v1.PacketMirroringsScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01323" + + ".google.cloud.compute.v1.PacketMirroringsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -19357,10 +19395,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_warning\"\367\001\n" + "#PacketMirroringMirroredResourceInfo\022^\n" + "\tinstances\030\376\374\357\r" - + " \003(\0132H.google.cloud.compute.v1.Pack" - + "etMirroringMirroredResourceInfoInstanceInfo\022_\n" - + "\013subnetworks\030\305\324\245\306\001 \003(\0132F.google.cl" - + "oud.compute.v1.PacketMirroringMirroredResourceInfoSubnetInfo\022\017\n" + + " \003(" + + "\0132H.google.cloud.compute.v1.PacketMirroringMirroredResourceInfoInstanceInfo\022_\n" + + "\013subnetworks\030\305\324\245\306\001 \003(\0132F.google.cloud.comp" + + "ute.v1.PacketMirroringMirroredResourceInfoSubnetInfo\022\017\n" + "\004tags\030\231\350\330\001 \003(\t\"\177\n" + "/PacketMirroringMirroredResourceInfoInstanceInfo\022\036\n\r" + "canonical_url\030\244\377\243\364\001 \001(\tH\000\210\001\001\022\022\n" @@ -19396,16 +19434,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\333\001\n" + "\031PatchBackendBucketRequest\022\036\n" + "\016backend_bucket\030\365\343\335+ \001(\tB\003\340A\002\022P\n" - + "\027backend_bucket_resource\030\230\316\307\265\001" - + " \001(\0132&.google.cloud.compute.v1.BackendBucketB\003\340A\002\022!\n" + + "\027backend_bucket_resource\030\230\316\307\265\001 \001(\0132&" + + ".google.cloud.compute.v1.BackendBucketB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\340\001\n" + "\032PatchBackendServiceRequest\022 \n" + "\017backend_service\030\212\300\256\222\001 \001(\tB\003\340A\002\022R\n" - + "\030backend_service_resource\030\243\201\337\245\001 \001(\0132\'.googl" - + "e.cloud.compute.v1.BackendServiceB\003\340A\002\022!\n" + + "\030backend_service_resource\030\243\201\337\245\001" + + " \001(\0132\'.google.cloud.compute.v1.BackendServiceB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" @@ -19426,17 +19464,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\201\002\n" + "\032PatchForwardingRuleRequest\022 \n" + "\017forwarding_rule\030\376\245\335\200\001 \001(\tB\003\340A\002\022R\n" - + "\030forwarding_rule_resource\030\257\300\320\217\001" - + " \001(\0132\'.google.cloud.compute.v1.ForwardingRuleB\003\340A\002\022!\n" + + "\030forwarding_rule_resource\030\257\300\320\217\001 " + + "\001(\0132\'.google.cloud.compute.v1.ForwardingRuleB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" - + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n" + + "\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\346\001\n" + " PatchGlobalForwardingRuleRequest\022 \n" + "\017forwarding_rule\030\376\245\335\200\001 \001(\tB\003\340A\002\022R\n" - + "\030forwarding_rule_resource\030\257\300\320\217\001 \001(\0132\'." - + "google.cloud.compute.v1.ForwardingRuleB\003\340A\002\022!\n" + + "\030forwarding_rule_resource\030\257\300\320\217\001" + + " \001(\0132\'.google.cloud.compute.v1.ForwardingRuleB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" @@ -19445,14 +19484,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\'\n" + "\027public_delegated_prefix\030\350\334\261a \001(\tB\003\340A\002\022`\n" - + " public_delegated_prefix_resource\030\205\370\330\026" - + " \001(\0132..google.cloud.compute.v1.PublicDelegatedPrefixB\003\340A\002\022\032\n\n" + + " public_delegated_prefix_resource\030\205\370\330\026 \001(\0132" + + "..google.cloud.compute.v1.PublicDelegatedPrefixB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\323\001\n" + "\027PatchHealthCheckRequest\022\035\n" + "\014health_check\030\345\252\244\223\001 \001(\tB\003\340A\002\022K\n" - + "\025health_check_resource\030\250\303\244` \001(\0132$.g" - + "oogle.cloud.compute.v1.HealthCheckB\003\340A\002\022!\n" + + "\025health_check_resource\030\250\303\244`" + + " \001(\0132$.google.cloud.compute.v1.HealthCheckB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" @@ -19467,8 +19506,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\225\002\n" + " PatchInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022^\n" - + "\037instance_group_manager_resource\030\212\212\276| \001(\0132-.google.clou" - + "d.compute.v1.InstanceGroupManagerB\003\340A\002\022!\n" + + "\037instance_group_manager_resource\030\212\212\276|" + + " \001(\0132-.google.cloud.compute.v1.InstanceGroupManagerB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -19488,8 +19527,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_update_mask\"\302\002\n" + "\'PatchInterconnectAttachmentGroupRequest\022-\n" + "\035interconnect_attachment_group\030\364\357\230$ \001(\tB\003\340A\002\022l\n" - + "&interconnect_attachment_group_resource\030\371\337\341\004 \001(\013" - + "24.google.cloud.compute.v1.InterconnectAttachmentGroupB\003\340A\002\022!\n" + + "&interconnect_attachment_group_resource\030\371\337\341\004 \001(\01324.googl" + + "e.cloud.compute.v1.InterconnectAttachmentGroupB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" @@ -19498,8 +19537,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_update_mask\"\240\002\n" + "\"PatchInterconnectAttachmentRequest\022(\n" + "\027interconnect_attachment\030\364\212\367\222\001 \001(\tB\003\340A\002\022a\n" - + " interconnect_attachment_resource\030\371\244\240e \001(\0132/.google.c" - + "loud.compute.v1.InterconnectAttachmentB\003\340A\002\022!\n" + + " interconnect_attachment_resource\030\371\244\240e" + + " \001(\0132/.google.cloud.compute.v1.InterconnectAttachmentB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -19525,8 +19564,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\213\002\n" + "\035PatchNetworkAttachmentRequest\022\"\n" + "\022network_attachment\030\324\227\217k \001(\tB\003\340A\002\022W\n" - + "\033network_attachment_resource\030\231\360\314d" - + " \001(\0132*.google.cloud.compute.v1.NetworkAttachmentB\003\340A\002\022!\n" + + "\033network_attachment_resource\030\231\360\314d \001(\0132*.g" + + "oogle.cloud.compute.v1.NetworkAttachmentB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -19535,8 +19574,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "&PatchNetworkEdgeSecurityServiceRequest\022-\n" + "\035network_edge_security_service\030\247\237\357J \001(\tB\003\340A\002\022l\n" + "&network_edge_security_service_resource\030\246\243\333\343\001" - + " \001(\01323.google.clou" - + "d.compute.v1.NetworkEdgeSecurityServiceB\003\340A\002\022\025\n" + + " \001(\01323.google.cloud.compute.v1.NetworkEdgeSecurityServiceB\003\340A\002\022\025\n" + "\005paths\030\356\301\3402 \001(\tH\000\210\001\001\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" @@ -19575,8 +19613,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033PatchPacketMirroringRequest\022 \n" + "\020packet_mirroring\030\314\271\321\n" + " \001(\tB\003\340A\002\022T\n" - + "\031packet_mirroring_resource\030\241\374\250\353\001" - + " \001(\0132(.google.cloud.compute.v1.PacketMirroringB\003\340A\002\022!\n" + + "\031packet_mirroring_resource\030\241\374\250\353\001 \001(\0132(.g" + + "oogle.cloud.compute.v1.PacketMirroringB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -19594,9 +19632,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\344\002\n" + "2PatchPerInstanceConfigsInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\232\001\n" - + "?instance_group_managers_patch_per_instance_configs_req_resource\030\377\233\210\252\001" - + " \001(\0132H.g" - + "oogle.cloud.compute.v1.InstanceGroupManagersPatchPerInstanceConfigsReqB\003\340A\002\022!\n" + + "?insta" + + "nce_group_managers_patch_per_instance_configs_req_resource\030\377\233\210\252\001" + + " \001(\0132H.google.cl" + + "oud.compute.v1.InstanceGroupManagersPatchPerInstanceConfigsReqB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -19609,16 +19648,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\233\001\n" + "@region_instance_group_manager_patch_instance_config_req_resource\030\312\315\241^" - + " \001(\0132I.google.c" - + "loud.compute.v1.RegionInstanceGroupManagerPatchInstanceConfigReqB\003\340A\002\022\032\n\n" + + " \001(\0132I.google.cloud.com" + + "pute.v1.RegionInstanceGroupManagerPatchInstanceConfigReqB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\201\002\n" + "#PatchPublicAdvertisedPrefixeRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022(\n" + "\030public_advertised_prefix\030\236\367\3110 \001(\tB\003\340A\002\022b\n" - + "!public_advertised_prefix_resource\030\217\327\262o \001(\0132/.go" - + "ogle.cloud.compute.v1.PublicAdvertisedPrefixB\003\340A\002\022\032\n\n" + + "!public_advertised_prefix_resource\030\217\327\262o \001(\0132/.google.clo" + + "ud.compute.v1.PublicAdvertisedPrefixB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\236\002\n" + "\"PatchPublicDelegatedPrefixeRequest\022!\n" @@ -19628,13 +19667,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " public_delegated_prefix_resource\030\205\370\330\026" + " \001(\0132..google.cloud.compute.v1.PublicDelegatedPrefixB\003\340A\002\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r" + + "\n" + "\013_request_id\"\203\002\n" + "\034PatchRegionAutoscalerRequest\022\033\n\n" + "autoscaler\030\327\375\322\366\001 \001(\tH\000\210\001\001\022H\n" + "\023autoscaler_resource\030\366\360\377b" + " \001(\0132#.google.cloud.compute.v1.AutoscalerB\003\340A\002\022!\n" - + "\007project\030\231\226\301l \001(\tB\r" + + "\007project", + "\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001B\r\n" @@ -19642,8 +19683,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\207\002\n" + " PatchRegionBackendServiceRequest\022 \n" + "\017backend_service\030\212\300\256\222\001 \001(\tB\003\340A\002\022R\n" - + "\030backend_service_resource\030\243\201\337\245\001 \001(\0132\'.googl" - + "e.cloud.compute.v1.BackendServiceB\003\340A\002\022!\n" + + "\030backend_service_resource\030\243\201\337\245\001" + + " \001(\0132\'.google.cloud.compute.v1.BackendServiceB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -19651,8 +19692,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\372\001\n" + "\035PatchRegionHealthCheckRequest\022\035\n" + "\014health_check\030\345\252\244\223\001 \001(\tB\003\340A\002\022K\n" - + "\025health_check_resource\030\250\303\244`" - + " \001(\0132$.google.cloud.compute.v1.HealthCheckB\003\340A\002\022!\n" + + "\025health_check_resource\030\250\303\244` \001(\013" + + "2$.google.cloud.compute.v1.HealthCheckB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -19660,12 +19701,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\231\002\n" + "$PatchRegionHealthCheckServiceRequest\022%\n" + "\024health_check_service\030\333\233\335\302\001 \001(\tB\003\340A\002\022[\n" - + "\035health_check_service_resource\030\362\233\320\343\001" - + " \001(\0132+.google.cloud.compute.v1.HealthCheckServiceB\003\340A\002\022!\n" + + "\035health_check_service_resource\030\362\233\320\343\001 \001(\0132+." + + "google.cloud.compute.v1.HealthCheckServiceB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" - + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006reg", - "ion\022\032\n\n" + + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\237\002\n" + "&PatchRegionInstanceGroupManagerRequest\022&\n" @@ -19755,16 +19795,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\361\001\n" + "\036PatchRuleFirewallPolicyRequest\022 \n" + "\017firewall_policy\030\321\212\306\355\001 \001(\tB\003\340A\002\022Z\n" - + "\035firewall_policy_rule_resource\030\203\337\272w \001(\0132+" - + ".google.cloud.compute.v1.FirewallPolicyRuleB\003\340A\002\022\031\n" + + "\035firewall_policy_rule_resource\030\203\337\272w \001(\0132+.google." + + "cloud.compute.v1.FirewallPolicyRuleB\003\340A\002\022\031\n" + "\010priority\030\244\363\241\324\001 \001(\005H\000\210\001\001\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001B\013\n" + "\t_priorityB\r\n" + "\013_request_id\"\233\002\n" + "%PatchRuleNetworkFirewallPolicyRequest\022 \n" + "\017firewall_policy\030\321\212\306\355\001 \001(\tB\003\340A\002\022Z\n" - + "\035firewall_policy_rule_resource\030\203\337\272w" - + " \001(\0132+.google.cloud.compute.v1.FirewallPolicyRuleB\003\340A\002\022\031\n" + + "\035firewall_policy_rule_resource\030\203\337\272w \001(" + + "\0132+.google.cloud.compute.v1.FirewallPolicyRuleB\003\340A\002\022\031\n" + "\010priority\030\244\363\241\324\001 \001(\005H\000\210\001\001\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" @@ -19788,8 +19828,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\037\n" + "\017security_policy\030\221\206\312Q \001(\tB\003\340A\002\022[\n" - + "\035security_policy_rule_resource\030\303\272\202\300\001 \001(\0132+.goo" - + "gle.cloud.compute.v1.SecurityPolicyRuleB\003\340A\002\022\034\n" + + "\035security_policy_rule_resource\030\303\272\202\300\001" + + " \001(\0132+.google.cloud.compute.v1.SecurityPolicyRuleB\003\340A\002\022\034\n" + "\013update_mask\030\242\271\272\356\001 \001(\tH\001\210\001\001\022\035\n\r" + "validate_only\030\265\372\337s \001(\010H\002\210\001\001B\013\n" + "\t_priorityB\016\n" @@ -19800,9 +19840,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\017security_policy\030\221\206\312Q \001(\tB\003\340A\002\022[\n" - + "\035security_policy_rule_resource\030\303\272\202\300\001" - + " \001(\0132+.google.cloud.compute.v1.SecurityPolicyRuleB\003\340A\002\022\034\n" - + "\013update_mask\030\242\271\272\356\001 \001(\tH\001\210\001\001\022\035\n\r" + + "\035security_policy_rule_resource\030\303\272\202\300\001 \001(\0132+." + + "google.cloud.compute.v1.SecurityPolicyRuleB\003\340A\002\022\034\n" + + "\013update_mask\030\242\271\272\356\001 \001(\tH\001\210\001\001\022\035\n" + + "\r" + "validate_only\030\265\372\337s \001(\010H\002\210\001\001B\013\n" + "\t_priorityB\016\n" + "\014_update_maskB\020\n" @@ -19812,8 +19853,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\037\n" + "\017security_policy\030\221\206\312Q \001(\tB\003\340A\002\022Q\n" - + "\030security_policy_resource\030\374\252\211g" - + " \001(\0132\'.google.cloud.compute.v1.SecurityPolicyB\003\340A\002\022\034\n" + + "\030security_policy_resource\030\374\252\211g \001(\0132" + + "\'.google.cloud.compute.v1.SecurityPolicyB\003\340A\002\022\034\n" + "\013update_mask\030\242\271\272\356\001 \001(\tH\001\210\001\001B\r\n" + "\013_request_idB\016\n" + "\014_update_mask\"\215\002\n" @@ -19823,15 +19864,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022#\n" + "\022service_attachment\030\355\251\320\241\001 \001(\tB\003\340A\002\022X\n" - + "\033service_attachment_resource\030\240\266\304\341\001 \001" - + "(\0132*.google.cloud.compute.v1.ServiceAttachmentB\003\340A\002B\r\n" + + "\033service_attachment_resource\030\240\266\304\341\001 \001(\0132*.goo" + + "gle.cloud.compute.v1.ServiceAttachmentB\003\340A\002B\r\n" + "\013_request_id\"\361\001\n" + "\033PatchSnapshotSettingRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022V\n" - + "\032snapshot_settings_resource\030\357\215\306\252\001 \001(" - + "\0132).google.cloud.compute.v1.SnapshotSettingsB\003\340A\002\022\034\n" + + "\032snapshot_settings_resource\030\357\215\306\252\001 \001(\0132).goog" + + "le.cloud.compute.v1.SnapshotSettingsB\003\340A\002\022\034\n" + "\013update_mask\030\242\271\272\356\001 \001(\tH\001\210\001\001B\r\n" + "\013_request_idB\016\n" + "\014_update_mask\"\314\001\n" @@ -19859,8 +19900,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022!\n" + "\021target_grpc_proxy\030\373\264\262\002 \001(\tB\003\340A\002\022U\n" - + "\032target_grpc_proxy_resource\030\322\352\353\234\001 \001(\0132(.goo" - + "gle.cloud.compute.v1.TargetGrpcProxyB\003\340A\002B\r\n" + + "\032target_grpc_proxy_resource\030\322\352\353\234\001" + + " \001(\0132(.google.cloud.compute.v1.TargetGrpcProxyB\003\340A\002B\r\n" + "\013_request_id\"\344\001\n" + "\033PatchTargetHttpProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" @@ -19887,20 +19928,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\037.google.cloud.compute.v1.UrlMapB\003\340A\002B\r\n" + "\013_request_id\"\322\005\n" + "\013PathMatcher\022h\n" - + "$default_custom_error_response_policy\030\251\213\340& \001(\01322.google.cloud.co" - + "mpute.v1.CustomErrorResponsePolicyH\000\210\001\001\022O\n" - + "\024default_route_action\030\252\264\327\264\001 \001(\0132(.goog" - + "le.cloud.compute.v1.HttpRouteActionH\001\210\001\001\022 \n" + + "$default_custom_error_response_policy\030\251\213\340&" + + " \001(\01322.google.cloud.compute.v1.CustomErrorResponsePolicyH\000\210\001\001\022O\n" + + "\024default_route_action\030\252\264\327\264\001" + + " \001(\0132(.google.cloud.compute.v1.HttpRouteActionH\001\210\001\001\022 \n" + "\017default_service\030\267\345\305\260\001 \001(\tH\002\210\001\001\022R\n" - + "\024default_url_redirect\030\352\253\266\253\001 \001(\0132+.google.cl" - + "oud.compute.v1.HttpRedirectActionH\003\210\001\001\022\034\n" + + "\024default_url_redirect\030\352\253\266\253\001" + + " \001(\0132+.google.cloud.compute.v1.HttpRedirectActionH\003\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\004\210\001\001\022I\n\r" + "header_action\030\250\240\270\234\001" + " \001(\0132).google.cloud.compute.v1.HttpHeaderActionH\005\210\001\001\022\024\n" - + "\004name\030\213\365\315\001 \001(\tH\006\210\001\001\0228\n\n" + + "\004name\030\213\365\315\001 \001(\tH\006\210\001\001\0228\n" + + "\n" + "path_rules\030\335\300\3461 \003(\0132!.google.cloud.compute.v1.PathRule\022?\n" - + "\013route_rules\030\201\207\267\263\001" - + " \003(\0132&.google.cloud.compute.v1.HttpRouteRuleB\'\n" + + "\013route_rules\030\201\207\267\263\001 \003(\013" + + "2&.google.cloud.compute.v1.HttpRouteRuleB\'\n" + "%_default_custom_error_response_policyB\027\n" + "\025_default_route_actionB\022\n" + "\020_default_serviceB\027\n" @@ -19912,8 +19954,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034custom_error_response_policy\030\353\370\332`" + " \001(\01322.google.cloud.compute.v1.CustomErrorResponsePolicyH\000\210\001\001\022\020\n" + "\005paths\030\356\301\3402 \003(\t\022G\n" - + "\014route_action\030\354\251\271\312\001 \001(\0132(." - + "google.cloud.compute.v1.HttpRouteActionH\001\210\001\001\022\030\n" + + "\014route_action\030\354\251\271\312\001" + + " \001(\0132(.google.cloud.compute.v1.HttpRouteActionH\001\210\001\001\022\030\n" + "\007service\030\265\215\217\262\001 \001(\tH\002\210\001\001\022J\n" + "\014url_redirect\030\254\241\230\301\001" + " \001(\0132+.google.cloud.compute.v1.HttpRedirectActionH\003\210\001\001B\037\n" @@ -19924,8 +19966,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021PerInstanceConfig\022\033\n" + "\013fingerprint\030\344\321\363o \001(\tH\000\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\001\210\001\001\022H\n" - + "\017preserved_state\030\252\342\240\001" - + " \001(\0132\'.google.cloud.compute.v1.PreservedStateH\002\210\001\001\022\026\n" + + "\017preserved_state\030\252\342\240\001 \001(\0132\'" + + ".google.cloud.compute.v1.PreservedStateH\002\210\001\001\022\026\n" + "\006status\030\362\237\267V \001(\tH\003\210\001\001\"\220\001\n" + "\006Status\022\024\n" + "\020UNDEFINED_STATUS\020\000\022\020\n" @@ -19950,8 +19992,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"PerformMaintenanceNodeGroupRequest\022\033\n\n" + "node_group\030\202\374\213\340\001 \001(\tB\003\340A\002\022~\n" + "0node_groups_perform_maintenance_request_resource\030\326\270\256X" - + " \001(\0132<.google.cloud.compu" - + "te.v1.NodeGroupsPerformMaintenanceRequestB\003\340A\002\022!\n" + + " \001(\0132<.google.cloud.compute.v1.No" + + "deGroupsPerformMaintenanceRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -19965,8 +20007,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013reservation\030\314\207\325\026 \001(\tB\003\340A\002\022\"\n" + "\021reservation_block\030\332\304\211\376\001 \001(\tB\003\340A\002\022\217\001\n" + "8reservations_blocks_perform_maintenance_request_resource\030\211\251\324\347\001" - + " \001(\0132D" - + ".google.cloud.compute.v1.ReservationsBlocksPerformMaintenanceRequestB\003\340A\002\022\033\n" + + " \001(\0132D.google." + + "cloud.compute.v1.ReservationsBlocksPerformMaintenanceRequestB\003\340A\002\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\262\002\n" @@ -19976,15 +20018,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + "\013reservation\030\314\207\325\026 \001(\tB\003\340A\002\022\201\001\n" + "1reservations_perform_maintenance_request_resource\030\240\365\224\016" - + " \001(\0132>.goog" - + "le.cloud.compute.v1.ReservationsPerformMaintenanceRequestB\003\340A\002\022\033\n" + + " \001(\0132>.google.cloud" + + ".compute.v1.ReservationsPerformMaintenanceRequestB\003\340A\002\022\033\n" + + "\004zone\030\254\307\344\001 \001(\tB\n" + + "\340A\002\362G\004zoneB\r\n" + + "\013_request_id\"\336\001\n" + + ",PerformMaintenanceReservationSubBlockRequest\022\034\n" + + "\013parent_name\030\200\212\200\344\001 \001(\tB\003\340A\002\022!\n" + + "\007project\030\231\226\301l \001(\tB\r" + + "\340A\002\362G\007project\022\032\n\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022%\n" + + "\025reservation_sub_block\030\233\312\354\n" + + " \001(\tB\003\340A\002\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\360\001\n" - + "\006Policy\022?\n" - + "\r" - + "audit_configs\030\215\272\270\234\001" - + " \003(\0132$.google.cloud.compute.v1.AuditConfig\0226\n" + + "\006Policy\022?\n\r" + + "audit_configs\030\215\272\270\234\001 \003(" + + "\0132$.google.cloud.compute.v1.AuditConfig\0226\n" + "\010bindings\030\216\305\244\300\001 \003(\0132" + " .google.cloud.compute.v1.Binding\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\032\n" @@ -19994,29 +20045,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_iam_ownedB\n\n" + "\010_version\"]\n" + "\023PreconfiguredWafSet\022F\n" - + "\017expression_sets\030\230\253\203\342\001 \003(" - + "\0132).google.cloud.compute.v1.WafExpressionSet\"\276\005\n" + + "\017expression_sets\030\230\253\203\342\001" + + " \003(\0132).google.cloud.compute.v1.WafExpressionSet\"\276\005\n" + "\016PreservedState\022D\n" - + "\005disks\030\366\314\312- \003(" - + "\01322.google.cloud.compute.v1.PreservedState.DisksEntry\022S\n\r" - + "external_i_ps\030\215\323\200\376\001 \003(\013" - + "28.google.cloud.compute.v1.PreservedState.ExternalIPsEntry\022R\n\r" - + "internal_i_ps\030\333\233\357f" - + " \003(\01328.google.cloud.compute.v1.PreservedState.InternalIPsEntry\022J\n" - + "\010metadata\030\257\366\265) " - + "\003(\01325.google.cloud.compute.v1.PreservedState.MetadataEntry\032b\n\n" + + "\005disks\030\366\314\312-" + + " \003(\01322.google.cloud.compute.v1.PreservedState.DisksEntry\022S\n\r" + + "external_i_ps\030\215\323\200\376\001" + + " \003(\01328.google.cloud.compute.v1.PreservedState.ExternalIPsEntry\022R\n\r" + + "internal_i_ps\030\333\233\357f \003(\01328.google.cloud.com" + + "pute.v1.PreservedState.InternalIPsEntry\022J\n" + + "\010metadata\030\257\366\265)" + + " \003(\01325.google.cloud.compute.v1.PreservedState.MetadataEntry\032b\n\n" + "DisksEntry\022\013\n" + "\003key\030\001 \001(\t\022C\n" - + "\005value\030\002 \001(\01324.google.cloud.comp" - + "ute.v1.PreservedStatePreservedDisk:\0028\001\032m\n" + + "\005value\030\002 \001(\01324." + + "google.cloud.compute.v1.PreservedStatePreservedDisk:\0028\001\032m\n" + "\020ExternalIPsEntry\022\013\n" + "\003key\030\001 \001(\t\022H\n" - + "\005value\030\002" - + " \001(\01329.google.cloud.compute.v1.PreservedStatePreservedNetworkIp:\0028\001\032m\n" + + "\005value\030\002 \001(\01329.google.cloud.c" + + "ompute.v1.PreservedStatePreservedNetworkIp:\0028\001\032m\n" + "\020InternalIPsEntry\022\013\n" + "\003key\030\001 \001(\t\022H\n" - + "\005value\030\002 \001(\01329." - + "google.cloud.compute.v1.PreservedStatePreservedNetworkIp:\0028\001\032/\n\r" + + "\005value\030\002" + + " \001(\01329.google.cloud.compute.v1.PreservedStatePreservedNetworkIp:\0028\001\032/\n" + + "\r" + "MetadataEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\254\002\n" @@ -20030,16 +20082,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036ON_PERMANENT_INSTANCE_DELETION\020\347\340\322-\"?\n" + "\004Mode\022\022\n" + "\016UNDEFINED_MODE\020\000\022\020\n" - + "\tREAD_ONLY\020\265\231\354+\022\021\n" - + "\n" + + "\tREAD_ONLY\020\265\231\354+\022\021\n\n" + "READ_WRITE\020\326\227\344RB\016\n" + "\014_auto_deleteB\007\n" + "\005_modeB\t\n" + "\007_source\"\236\002\n" + " PreservedStatePreservedNetworkIp\022\034\n" + "\013auto_delete\030\273\344\316\335\001 \001(\tH\000\210\001\001\022_\n\n" - + "ip_address\030\334\361\334\301\001 \001(\0132B.google.cloud.c" - + "ompute.v1.PreservedStatePreservedNetworkIpIpAddressH\001\210\001\001\"\\\n\n" + + "ip_address\030\334\361\334\301\001 \001(\013" + + "2B.google.cloud.compute.v1.PreservedStatePreservedNetworkIpIpAddressH\001\210\001\001\"\\\n\n" + "AutoDelete\022\031\n" + "\025UNDEFINED_AUTO_DELETE\020\000\022\014\n" + "\005NEVER\020\354\244\257#\022%\n" @@ -20071,8 +20122,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\213\365\315\001 \001(\tH\010\210\001\001\0221\n" + "\006quotas\030\373\241\342; \003(\0132\036.google.cloud.compute.v1.Quota\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\t\210\001\001\022T\n" - + "\025usage_export_location\030\302\262\334\245\001" - + " \001(\0132,.google.cloud.compute.v1.UsageExportLocationH\n" + + "\025usage_export_location\030\302\262\334\245\001 \001(\0132," + + ".google.cloud.compute.v1.UsageExportLocationH\n" + "\210\001\001\022\036\n" + "\016vm_dns_setting\030\262\247\210\034 \001(\tH\013\210\001\001\022\"\n" + "\022xpn_project_status\030\301\315\365l \001(\tH\014\210\001\001\"~\n" @@ -20111,12 +20162,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017_vm_dns_settingB\025\n" + "\023_xpn_project_status\"z\n" + "!ProjectsDisableXpnResourceRequest\022D\n" - + "\014xpn_resource\030\267\223\315? \001(\0132&.g" - + "oogle.cloud.compute.v1.XpnResourceIdH\000\210\001\001B\017\n\r" + + "\014xpn_resource\030\267\223\315?" + + " \001(\0132&.google.cloud.compute.v1.XpnResourceIdH\000\210\001\001B\017\n\r" + "_xpn_resource\"y\n" + " ProjectsEnableXpnResourceRequest\022D\n" - + "\014xpn_resource\030\267\223\315? \001(\0132" - + "&.google.cloud.compute.v1.XpnResourceIdH\000\210\001\001B\017\n\r" + + "\014xpn_resource\030\267\223\315?" + + " \001(\0132&.google.cloud.compute.v1.XpnResourceIdH\000\210\001\001B\017\n\r" + "_xpn_resource\"\253\001\n" + "\027ProjectsGetXpnResources\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\000\210\001\001\022\037\n" @@ -20150,13 +20201,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022#\n" + "\023dns_verification_ip\030\265\225\366r \001(\tH\003\210\001\001\022\033\n" + "\013fingerprint\030\344\321\363o \001(\tH\004\210\001\001\022\020\n" - + "\002id\030\233\032 \001(\004H\005\210\001\001\022\035\n\r" + + "\002id\030\233\032 \001(\004H\005\210\001\001\022\035\n" + + "\r" + "ip_cidr_range\030\312\315\344. \001(\tH\006\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\007\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\010\210\001\001\022\032\n" + "\tpdp_scope\030\321\312\376\371\001 \001(\tH\t\210\001\001\022j\n" - + "\030public_delegated_prefixs\030\213\276\205\313\001 \003(" - + "\0132D.google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix\022\032\n" + + "\030public_delegated_prefixs\030\213\276\205\313\001 \003(\0132D.google.cloud.comput" + + "e.v1.PublicAdvertisedPrefixPublicDelegatedPrefix\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\n" + "\210\001\001\022\036\n\r" + "shared_secret\030\312\247\217\266\001 \001(\tH\013\210\001\001\022\026\n" @@ -20196,8 +20248,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_status\"\275\002\n" + "\032PublicAdvertisedPrefixList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022A\n" - + "\005items\030\300\317\367/" - + " \003(\0132/.google.cloud.compute.v1.PublicAdvertisedPrefix\022\024\n" + + "\005items\030\300\317\367/ \003(\0132/.google.c" + + "loud.compute.v1.PublicAdvertisedPrefix\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -20221,7 +20273,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_status\"\243\t\n" + "\025PublicDelegatedPrefix\022)\n" + "\031allocatable_prefix_length\030\266\266\251\022 \001(\005H\000\210\001\001\022!\n" - + "\021byoip_api_version\030\223\263\311M \001(\tH\001\210\001\001\022\"\n" + + "\021byoip_api_version\030\223\263", + "\311M \001(\tH\001\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\002\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\003\210\001\001\022\033\n" + "\013fingerprint\030\344\321\363o \001(\tH\004\210\001\001\022\020\n" @@ -20233,8 +20286,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\213\365\315\001 \001(\tH\n" + "\210\001\001\022\035\n\r" + "parent_prefix\030\307\347\241\007 \001(\tH\013\210\001\001\022o\n" - + "\034public_delegated_sub_prefixs\030\214\376\213Z \003(\0132F.googl" - + "e.cloud.compute.v1.PublicDelegatedPrefixPublicDelegatedSubPrefix\022\026\n" + + "\034public_delegated_sub_prefixs\030\214\376\213Z" + + " \003(\0132F.google.cloud.compute.v1.Publ" + + "icDelegatedPrefixPublicDelegatedSubPrefix\022\026\n" + "\006region\030\364\315\240B \001(\tH\014\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\r" + "\210\001\001\022\026\n" @@ -20270,12 +20324,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016_parent_prefixB\t\n" + "\007_regionB\014\n\n" + "_self_linkB\t\n" - + "\007_status", - "\"\341\003\n" + + "\007_status\"\341\003\n" + "#PublicDelegatedPrefixAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022Y\n" - + "\005items\030\300\317\367/ \003(\0132G.g" - + "oogle.cloud.compute.v1.PublicDelegatedPrefixAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132G.google.cloud.compute.v1." + + "PublicDelegatedPrefixAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -20284,8 +20337,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032h\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022I\n" - + "\005value\030\002 \001(\0132:" - + ".google.cloud.compute.v1.PublicDelegatedPrefixesScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\0132:.google.cloud.compute.v" + + "1.PublicDelegatedPrefixesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -20293,8 +20346,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_warning\"\273\002\n" + "\031PublicDelegatedPrefixList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022@\n" - + "\005items\030\300\317\367/ \003(\0132..google." - + "cloud.compute.v1.PublicDelegatedPrefix\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132..google.cloud.compute.v1.PublicDelegatedPrefix\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -20334,8 +20387,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_regionB\t\n" + "\007_status\"\301\001\n" + "!PublicDelegatedPrefixesScopedList\022U\n" - + "\031public_delegated_prefixes\030\226\202\252\226\001" - + " \003(\0132..google.cloud.compute.v1.PublicDelegatedPrefix\0229\n" + + "\031public_delegated_prefixes\030\226\202\252\226\001 \003(\0132..googl" + + "e.cloud.compute.v1.PublicDelegatedPrefix\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\346(\n" @@ -20401,7 +20454,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014HDB_TOTAL_GB\020\257\302\241\230\001\022\026\n" + "\016HDB_TOTAL_IOPS\020\375\351\327\223\001\022\033\n" + "\024HDB_TOTAL_THROUGHPUT\020\376\314\200\n" - + "\022\025\n\r" + + "\022\025\n" + + "\r" + "HEALTH_CHECKS\020\256\257\374\211\001\022\r\n" + "\006IMAGES\020\370\354\265\007\022\020\n" + "\tINSTANCES\020\336\234\320>\022\027\n" @@ -20517,8 +20571,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_ownerB\010\n" + "\006_usage\"\340\003\n" + "\021QuotaExceededInfo\022R\n\n" - + "dimensions\030\315\377\310\305\001" - + " \003(\0132:.google.cloud.compute.v1.QuotaExceededInfo.DimensionsEntry\022\035\n" + + "dimensions\030\315\377\310\305\001 \003(\0132:.google.cloud.co" + + "mpute.v1.QuotaExceededInfo.DimensionsEntry\022\035\n" + "\014future_limit\030\277\274\332\331\001 \001(\001H\000\210\001\001\022\025\n" + "\005limit\030\273\227\2151 \001(\001H\001\210\001\001\022\033\n\n" + "limit_name\030\217\211\360\275\001 \001(\tH\002\210\001\001\022\034\n" @@ -20586,8 +20640,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ",RecreateInstancesInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\223\001\n" + ";instance_group_managers_recreate_instances_request_resource\030\200\302\232\n" - + " \001(\0132F.google.cloud.compute.v1" - + ".InstanceGroupManagersRecreateInstancesRequestB\003\340A\002\022!\n" + + " \001(\0132F.google" + + ".cloud.compute.v1.InstanceGroupManagersRecreateInstancesRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -20600,8 +20654,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\215\001\n" + "8region_instance_group_managers_recreate_request_resource\030\224\374\304Q" - + " \001(\0132C.google" - + ".cloud.compute.v1.RegionInstanceGroupManagersRecreateRequestB\003\340A\002\022\032\n\n" + + " \001(\0132C.google.cloud.compute.v1.Regio" + + "nInstanceGroupManagersRecreateRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\250\001\n" + "\tReference\022\024\n" @@ -20615,8 +20669,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_target\"\204\005\n" + "\006Region\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022G\n\n" - + "deprecated\030\263\313\321\365\001 \001(\0132*.google." - + "cloud.compute.v1.DeprecationStatusH\001\210\001\001\022\034\n" + + "deprecated\030\263\313\321\365\001" + + " \001(\0132*.google.cloud.compute.v1.DeprecationStatusH\001\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022\024\n" @@ -20696,15 +20750,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" - + "_self_linkB\n" - + "\n" + + "_self_linkB\n\n" + "\010_warning\"E\n" + "1RegionInstanceGroupManagerDeleteInstanceConfigReq\022\020\n" + "\005names\030\310\256\3571 \003(\t\"\277\002\n" + "\036RegionInstanceGroupManagerList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022?\n" - + "\005items\030\300\317\367/ \003(\0132-.googl" - + "e.cloud.compute.v1.InstanceGroupManager\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132-.google.cloud.compute.v1.InstanceGroupManager\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -20719,8 +20772,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024per_instance_configs\030\251\325\370\372\001" + " \003(\0132*.google.cloud.compute.v1.PerInstanceConfig\"\201\001\n" + "1RegionInstanceGroupManagerUpdateInstanceConfigReq\022L\n" - + "\024per_instance_configs\030\251\325\370\372\001" - + " \003(\0132*.google.cloud.compute.v1.PerInstanceConfig\"J\n" + + "\024per_instance_configs\030\251\325\370\372\001 \003(\0132" + + "*.google.cloud.compute.v1.PerInstanceConfig\"J\n" + "2RegionInstanceGroupManagersAbandonInstancesRequest\022\024\n" + "\tinstances\030\376\374\357\r" + " \003(\t\"\373\002\n" @@ -20747,8 +20800,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\010H\000\210\001\001B%\n" + "#_skip_instances_on_validation_error\"\252\001\n" + "-RegionInstanceGroupManagersListErrorsResponse\022D\n" - + "\005items\030\300\317\367/ \003(\01322" - + ".google.cloud.compute.v1.InstanceManagedByIgmError\022\037\n" + + "\005items\030\300\317\367/" + + " \003(\01322.google.cloud.compute.v1.InstanceManagedByIgmError\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\000\210\001\001B\022\n" + "\020_next_page_token\"\356\001\n" + "2RegionInstanceGroupManagersListInstanceConfigsResp\022<\n" @@ -20785,7 +20838,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tinstances\030\376\374\357\r" + " \003(\tB\r\n" + "\013_force_stop\"{\n" - + "2RegionInstanceGroupManagersSuspendInstancesRequest\022\035\n\r" + + "2RegionInstanceGroupManagersSuspendInstancesRequest\022\035\n" + + "\r" + "force_suspend\030\350\355\226\r" + " \001(\010H\000\210\001\001\022\024\n" + "\tinstances\030\376\374\357\r" @@ -20815,7 +20869,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017_instance_stateB\014\n\n" + "_port_name\"\224\001\n" + "(RegionInstanceGroupsSetNamedPortsRequest\022\033\n" - + "\013fingerprint\030\344\321\363o \001(\tH\000\210\001\001\022;\n" + + "\013fingerprint\030\344\321\363o \001(\tH\000\210\001\001", + "\022;\n" + "\013named_ports\030\214\307\362\313\001" + " \003(\0132\".google.cloud.compute.v1.NamedPortB\016\n" + "\014_fingerprint\"\235\002\n\n" @@ -20836,23 +20891,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021network_endpoints\030\255\221\272G" + " \003(\0132(.google.cloud.compute.v1.NetworkEndpoint\"{\n" + "1RegionNetworkEndpointGroupsDetachEndpointsRequest\022F\n" - + "\021network_endpoints\030\255\221\272G \003(\0132(.g" - + "oogle.cloud.compute.v1.NetworkEndpoint\"\201\002\n" + + "\021network_endpoints\030\255\221\272G" + + " \003(\0132(.google.cloud.compute.v1.NetworkEndpoint\"\201\002\n" + ":RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse\022\210\001\n" - + "\020firewall_policys\030\302\312\374\303\001 \003(\0132j.google.cloud.compute.v1.R" - + "egionNetworkFirewallPoliciesGetEffective" - + "FirewallsResponseEffectiveFirewallPolicy\0228\n" + + "\020firewall_policys\030\302\312\374\303\001 \003(\0132j.google.c" + + "loud.compute.v1.RegionNetworkFirewallPol" + + "iciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy\0228\n" + "\tfirewalls\030\363\306\350\201\001" + " \003(\0132!.google.cloud.compute.v1.Firewall\"\224\004\n" - + "QRegionNetworkFire" - + "wallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy\022\034\n" + + "QRegionNetworkFirewallPoliciesGetEffectiv" + + "eFirewallsResponseEffectiveFirewallPolicy\022\034\n" + "\014display_name\030\350\207\221\002 \001(\tH\000\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\001\210\001\001\022O\n" + "\026packet_mirroring_rules\030\304\377\300\375\001" - + " \003(\0132+.google.cloud.compute.v1.FirewallPolicyRule\022\031\n", - "\010priority\030\244\363\241\324\001 \001(\005H\002\210\001\001\022=\n" - + "\005rules\030\367\221\3653 \003" - + "(\0132+.google.cloud.compute.v1.FirewallPolicyRule\022\024\n" + + " \003(\0132+.google.cloud.compute.v1.FirewallPolicyRule\022\031\n" + + "\010priority\030\244\363\241\324\001 \001(\005H\002\210\001\001\022=\n" + + "\005rules\030\367\221\3653" + + " \003(\0132+.google.cloud.compute.v1.FirewallPolicyRule\022\024\n" + "\004type\030\272\236\332\001 \001(\tH\003\210\001\001\"\231\001\n" + "\004Type\022\022\n" + "\016UNDEFINED_TYPE\020\000\022\020\n" @@ -20868,8 +20923,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_type\"\321\001\n" + "\026RegionSetLabelsRequest\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\000\210\001\001\022O\n" - + "\006labels\030\377\277\301\356\001 \003(\0132;.go" - + "ogle.cloud.compute.v1.RegionSetLabelsRequest.LabelsEntry\032-\n" + + "\006labels\030\377\277\301\356\001" + + " \003(\0132;.google.cloud.compute.v1.RegionSetLabelsRequest.LabelsEntry\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001B\024\n" @@ -20885,8 +20940,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "1RegionTargetHttpsProxiesSetSslCertificatesRequest\022\034\n" + "\020ssl_certificates\030\217\242\303\256\001 \003(\t\"f\n" + "\034RegionUrlMapsValidateRequest\0229\n" - + "\010resource\030\216\210\257] " - + "\001(\0132\037.google.cloud.compute.v1.UrlMapH\000\210\001\001B\013\n" + + "\010resource\030\216\210\257]" + + " \001(\0132\037.google.cloud.compute.v1.UrlMapH\000\210\001\001B\013\n" + "\t_resource\"\224\001\n" + "&RemoveAssociationFirewallPolicyRequest\022 \n" + "\017firewall_policy\030\321\212\306\355\001 \001(\tB\003\340A\002\022\024\n" @@ -20918,8 +20973,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + "\013target_pool\030\212\344\370\035 \001(\tB\003\340A\002\022\200\001\n" + "1target_pools_remove_health_check_request_resource\030\263\347\266\221\001" - + " \001(\0132<.google.cloud.comput" - + "e.v1.TargetPoolsRemoveHealthCheckRequestB\003\340A\002B\r\n" + + " \001(\0132<.go" + + "ogle.cloud.compute.v1.TargetPoolsRemoveHealthCheckRequestB\003\340A\002B\r\n" + "\013_request_id\"\247\002\n" + "\037RemoveInstanceTargetPoolRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" @@ -20927,17 +20982,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + "\013target_pool\030\212\344\370\035 \001(\tB\003\340A\002\022x\n" - + "-target_pools_remove_instance_request_resource\030\203\300\213\016 \001(\0132" - + "9.google.cloud.compute.v1.TargetPoolsRemoveInstanceRequestB\003\340A\002B\r\n" + + "-target_pools_remove_instance_request_resource\030\203\300\213\016" + + " \001(\01329.google.cloud.compute." + + "v1.TargetPoolsRemoveInstanceRequestB\003\340A\002B\r\n" + "\013_request_id\"\264\002\n" + "#RemoveInstancesInstanceGroupRequest\022\036\n" + "\016instance_group\030\325\324\325& \001(\tB\003\340A\002\022\201\001\n" + "1instance_groups_remove_instances_request_resource\030\271\321\267\272\001" - + " \001(\0132=.google.cloud.compute.v1" - + ".InstanceGroupsRemoveInstancesRequestB\003\340A\002\022!\n" + + " \001(\0132=.google" + + ".cloud.compute.v1.InstanceGroupsRemoveInstancesRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\032\n" - + "\n" + + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" @@ -20952,8 +21007,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\366\001\n" + "\033RemovePeeringNetworkRequest\022\027\n" + "\007network\030\256\264\205o \001(\tB\003\340A\002\022p\n" - + "(networks_remove_peering_request_resource\030\376\333\351\310\001 \001(\01325.google." - + "cloud.compute.v1.NetworksRemovePeeringRequestB\003\340A\002\022!\n" + + "(networks_remove_peering_request_resource\030\376\333\351\310\001" + + " \001(\01325.google.cloud.compute.v1.NetworksRemovePeeringRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" @@ -20961,7 +21016,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "!RemoveResourcePoliciesDiskRequest\022\024\n" + "\004disk\030\235\233\274\001 \001(\tB\003\340A\002\022}\n" + "/disks_remove_resource_policies_request_resource\030\356\301\241\320\001" - + " \001(\0132;.google.cloud.compute.v1.DisksRemoveResourcePoliciesRequestB\003\340A\002\022!\n" + + " \001(\0132;.google.clou" + + "d.compute.v1.DisksRemoveResourcePoliciesRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -20971,10 +21027,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "%RemoveResourcePoliciesInstanceRequest\022\030\n" + "\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022\204\001\n" + "3instances_remove_resource_policies_request_resource\030\366\335\274\027" - + " \001(\0132?.go" - + "ogle.cloud.compute.v1.InstancesRemoveResourcePoliciesRequestB\003\340A\002\022!\n" + + " \001(\0132?.google.cloud.compute.v1.I" + + "nstancesRemoveResourcePoliciesRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\032\n\n" + + "\340A\002\362G\007project\022\032\n" + + "\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" @@ -20985,8 +21042,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\211\001\n" + "6region_disks_remove_resource_policies_request_resource\030\243\303\225\004" - + " \001(\0132A.google.cloud.compute.v1" - + ".RegionDisksRemoveResourcePoliciesRequestB\003\340A\002\022\032\n\n" + + " \001(\0132A.google" + + ".cloud.compute.v1.RegionDisksRemoveResourcePoliciesRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\226\001\n" + "\037RemoveRuleFirewallPolicyRequest\022 \n" @@ -21028,7 +21085,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "!ReportHostAsFaultyInstanceRequest\022\030\n" + "\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022~\n" + "0instances_report_host_as_faulty_request_resource\030\246\224\315\353\001" - + " \001(\0132;.google.cloud.compute.v1.InstancesReportHostAsFaultyRequestB\003\340A\002\022!\n" + + " \001(\0132;.google.cloud.com" + + "pute.v1.InstancesReportHostAsFaultyRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -21039,8 +21097,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017backend_service\030\212\300\256\222\001 \001(\tH\000\210\001\001B\022\n" + "\020_backend_service\"\320\r\n" + "\013Reservation\022_\n" - + "\025aggregate_reservation\030\314\362\203\213\001 \001(\01327.google.cloud" - + ".compute.v1.AllocationAggregateReservationH\000\210\001\001\022\033\n\n" + + "\025aggregate_reservation\030\314\362\203\213\001 \001" + + "(\01327.google.cloud.compute.v1.AllocationAggregateReservationH\000\210\001\001\022\033\n\n" + "commitment\030\225\226\363\345\001 \001(\tH\001\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\002\210\001\001\022I\n" + "\025delete_after_duration\030\253\233\277\232\001" @@ -21055,19 +21113,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022linked_commitments\030\330\375\310\340\001 \003(\t\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\n" + "\210\001\001\022g\n" - + "\032reservation_sharing_policy\030\310\265\233b \001(\0132;.google.cloud.co" - + "mpute.v1.AllocationReservationSharingPolicyH\013\210\001\001\022X\n" + + "\032reservation_sharing_policy\030\310\265\233b \001(\0132" + + ";.google.cloud.compute.v1.AllocationReservationSharingPolicyH\013\210\001\001\022X\n" + "\021resource_policies\030\341\234\314\n" + " \003(\0132:.google.cloud.compute.v1.Reservation.ResourcePoliciesEntry\022R\n" - + "\017resource_status\030\303\372\367v" - + " \001(\01321.google.cloud.compute.v1.AllocationResourceStatusH\014\210\001\001\022\036\n\r" + + "\017resource_status\030\303\372\367v \001(\01321.google.cloud.c" + + "ompute.v1.AllocationResourceStatusH\014\210\001\001\022\036\n\r" + "satisfies_pzs\030\253\335\253\345\001 \001(\010H\r" + "\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\016\210\001\001\022F\n" + "\016share_settings\030\203\221\224\177" + " \001(\0132&.google.cloud.compute.v1.ShareSettingsH\017\210\001\001\022`\n" - + "\024specific_reservation\030\277\240\211\301\001 \001(\01329.google.cl" - + "oud.compute.v1.AllocationSpecificSKUReservationH\020\210\001\001\022-\n" + + "\024specific_reservation\030\277\240\211\301\001" + + " \001(\01329.google.cloud.compute.v1.AllocationSpecificSKUReservationH\020\210\001\001\022-\n" + "\035specific_reservation_required\030\237\307\203l" + " \001(\010H\021\210\001\001\022\026\n" + "\006status\030\362\237\267V \001(\tH\022\210\001\001\022\024\n" @@ -21121,8 +21179,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004_key\"\302\003\n" + "\031ReservationAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022O\n" - + "\005items\030\300\317\367/" - + " \003(\0132=.google.cloud.compute.v1.ReservationAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132=.google" + + ".cloud.compute.v1.ReservationAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -21145,10 +21203,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014in_use_count\030\275\253\246\353\001 \001(\005H\003\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\005\210\001\001\022]\n" - + "\021physical_topology\030\327\251\264\205\001" - + " \001(\01329.google.cloud.compute.v1.ReservationBlockPhysicalTopologyH\006\210\001\001\022W\n" - + "\027reservation_maintenance\030\240\206\265\242\001 \001(\0132-.google.clou" - + "d.compute.v1.GroupMaintenanceInfoH\007\210\001\001\022,\n" + + "\021physical_topology\030\327\251\264\205\001 \001(\01329.google.cloud.co" + + "mpute.v1.ReservationBlockPhysicalTopologyH\006\210\001\001\022W\n" + + "\027reservation_maintenance\030\240\206\265\242\001 " + + "\001(\0132-.google.cloud.compute.v1.GroupMaintenanceInfoH\007\210\001\001\022,\n" + "\033reservation_sub_block_count\030\353\261\335\235\001" + " \001(\005H\010\210\001\001\0222\n" + "\"reservation_sub_block_in_use_count\030\341\374\330X \001(\005H" @@ -21174,7 +21232,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022_physical_topologyB\032\n" + "\030_reservation_maintenanceB\036\n" + "\034_reservation_sub_block_countB%\n" - + "#_reservation_sub_block_in_use_countB\014\n\n" + + "#_reservation_sub_block_in_use_countB\014\n" + + "\n" + "_self_linkB\024\n" + "\022_self_link_with_idB\t\n" + "\007_statusB\007\n" @@ -21185,8 +21244,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_blockB\n\n" + "\010_cluster\"p\n" + "\034ReservationBlocksGetResponse\022C\n" - + "\010resource\030\216\210\257] \001(\0132).g" - + "oogle.cloud.compute.v1.ReservationBlockH\000\210\001\001B\013\n" + + "\010resource\030\216\210\257]" + + " \001(\0132).google.cloud.compute.v1.ReservationBlockH\000\210\001\001B\013\n" + "\t_resource\"\272\002\n" + "\035ReservationBlocksListResponse\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022;\n" @@ -21214,7 +21273,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" + "_self_linkB\n\n" - + "\010_warning\"\370\004\n" + + "\010_warning\"\201\006\n" + "\023ReservationSubBlock\022\025\n" + "\005count\030\217\242\235- \001(\005H\000\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\020\n" @@ -21222,13 +21281,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014in_use_count\030\275\253\246\353\001 \001(\005H\003\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\005\210\001\001\022`\n" - + "\021physical_topology\030\327\251\264\205\001 \001(\0132" - + "<.google.cloud.compute.v1.ReservationSubBlockPhysicalTopologyH\006\210\001\001\022\032\n" - + "\tself_link\030\215\222\305\331\001 \001(\tH\007\210\001\001\022!\n" - + "\021self_link_with_id\030\202\254\235\025 \001(\tH\010\210\001\001\022\026\n" - + "\006status\030\362\237\267V \001(\tH\t\210\001\001\022\024\n" - + "\004zone\030\254\307\344\001 \001(\tH\n" - + "\210\001\001\"a\n" + + "\021physical_topology\030\327\251\264\205\001 \001(\0132<.google.cloud.compute." + + "v1.ReservationSubBlockPhysicalTopologyH\006\210\001\001\022a\n" + + "!reservation_sub_block_maintenance\030\357\313\342\263\001" + + " \001(\0132-.google.cloud.compute.v1.GroupMaintenanceInfoH\007\210\001\001\022\032\n" + + "\tself_link\030\215\222\305\331\001 \001(\tH\010\210\001\001\022!\n" + + "\021self_link_with_id\030\202\254\235\025 \001(\tH\t\210\001\001\022\026\n" + + "\006status\030\362\237\267V \001(\tH\n" + + "\210\001\001\022\024\n" + + "\004zone\030\254\307\344\001 \001(\tH\013\210\001\001\"a\n" + "\006Status\022\024\n" + "\020UNDEFINED_STATUS\020\000\022\020\n" + "\010CREATING\020\271\275\235\331\001\022\020\n" @@ -21241,7 +21302,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_in_use_countB\007\n" + "\005_kindB\007\n" + "\005_nameB\024\n" - + "\022_physical_topologyB\014\n\n" + + "\022_physical_topologyB$\n" + + "\"_reservation_sub_block_maintenanceB\014\n\n" + "_self_linkB\024\n" + "\022_self_link_with_idB\t\n" + "\007_statusB\007\n" @@ -21254,8 +21316,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_clusterB\014\n\n" + "_sub_block\"v\n" + "\037ReservationSubBlocksGetResponse\022F\n" - + "\010resource\030\216\210\257] \001(\0132,.g" - + "oogle.cloud.compute.v1.ReservationSubBlockH\000\210\001\001B\013\n" + + "\010resource\030\216\210\257] \001(\0132,.google." + + "cloud.compute.v1.ReservationSubBlockH\000\210\001\001B\013\n" + "\t_resource\"\300\002\n" + " ReservationSubBlocksListResponse\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022>\n" @@ -21268,8 +21330,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" - + "\020_next_page_tokenB\014\n" - + "\n" + + "\020_next_page_tokenB\014\n\n" + "_self_linkB\n\n" + "\010_warning\"\372\001\n" + "+ReservationsBlocksPerformMaintenanceRequest\022!\n" @@ -21331,8 +21392,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022h\n" - + "$region_disks_resize_request_resource\030\225\252\374\324\001 \001(\01321.google.c" - + "loud.compute.v1.RegionDisksResizeRequestB\003\340A\002\022\032\n\n" + + "$region_disks_resize_request_resource\030\225\252\374\324\001" + + " \001(\01321.google.cloud.c" + + "ompute.v1.RegionDisksResizeRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\326\001\n" + "\'ResizeRegionInstanceGroupManagerRequest\022&\n" @@ -21348,8 +21410,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + "\013reservation\030\314\207\325\026 \001(\tB\003\340A\002\022i\n" - + "$reservations_resize_request_resource\030\321\333\316\271\001 \001(\01322.g" - + "oogle.cloud.compute.v1.ReservationsResizeRequestB\003\340A\002\022\033\n" + + "$reservations_resize_request_resource\030\321\333\316\271\001 \001(\01322.google." + + "cloud.compute.v1.ReservationsResizeRequestB\003\340A\002\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\202\002\n" @@ -21379,25 +21441,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016ResourcePolicy\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022q\n" - + "\035disk_consistency_group_policy\030\233\204\362\341\001 \001(\0132A" - + ".google.cloud.compute.v1.ResourcePolicyDiskConsistencyGroupPolicyH\002\210\001\001\022c\n" - + "\026group_placement_policy\030\214\233\233\005 \001(\0132;.google.cloud" - + ".compute.v1.ResourcePolicyGroupPlacementPolicyH\003\210\001\001\022\020\n" + + "\035disk_consistency_group_policy\030\233\204\362\341\001 \001(\0132A.googl" + + "e.cloud.compute.v1.ResourcePolicyDiskConsistencyGroupPolicyH\002\210\001\001\022c\n" + + "\026group_placement_policy\030\214\233\233\005 \001(\0132;.google.cloud.compu" + + "te.v1.ResourcePolicyGroupPlacementPolicyH\003\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\004\210\001\001\022h\n" - + "\030instance_schedule_policy\030\260\320\271\244\001 \001(\0132=.google.clo" - + "ud.compute.v1.ResourcePolicyInstanceSchedulePolicyH\005\210\001\001\022\024\n" + + "\030instance_schedule_policy\030\260\320\271\244\001 \001(\0132=.google.cloud.com" + + "pute.v1.ResourcePolicyInstanceSchedulePolicyH\005\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\006\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\010\210\001\001\022V\n" - + "\017resource_status\030\303\372\367v \001(\01325.google" - + ".cloud.compute.v1.ResourcePolicyResourceStatusH\t\210\001\001\022\032\n" + + "\017resource_status\030\303\372\367v \001(\01325.google.cloud" + + ".compute.v1.ResourcePolicyResourceStatusH\t\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\n" + "\210\001\001\022g\n" - + "\030snapshot_schedule_policy\030\337\326\201h \001(\0132=.g" - + "oogle.cloud.compute.v1.ResourcePolicySnapshotSchedulePolicyH\013\210\001\001\022\026\n" + + "\030snapshot_schedule_policy\030\337\326\201h \001(\0132=.google." + + "cloud.compute.v1.ResourcePolicySnapshotSchedulePolicyH\013\210\001\001\022\026\n" + "\006status\030\362\237\267V \001(\tH\014\210\001\001\022V\n" - + "\017workload_policy\030\372\205\3326 \001(\01325.g" - + "oogle.cloud.compute.v1.ResourcePolicyWorkloadPolicyH\r" + + "\017workload_policy\030\372\205\3326 \001(\01325.google." + + "cloud.compute.v1.ResourcePolicyWorkloadPolicyH\r" + "\210\001\001\"r\n" + "\006Status\022\024\n" + "\020UNDEFINED_STATUS\020\000\022\020\n" @@ -21415,8 +21477,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_kindB\007\n" + "\005_nameB\t\n" + "\007_regionB\022\n" - + "\020_resource_statusB\014\n" - + "\n" + + "\020_resource_statusB\014\n\n" + "_self_linkB\033\n" + "\031_snapshot_schedule_policyB\t\n" + "\007_statusB\022\n" @@ -21424,8 +21485,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034ResourcePolicyAggregatedList\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022R\n" - + "\005items\030\300\317\367/ \003" - + "(\0132@.google.cloud.compute.v1.ResourcePolicyAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132@.g" + + "oogle.cloud.compute.v1.ResourcePolicyAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" @@ -21434,8 +21495,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\005\210\001\001\032a\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022B\n" - + "\005value\030\002 \001(\01323." - + "google.cloud.compute.v1.ResourcePoliciesScopedList:\0028\001B\007\n" + + "\005value\030\002 \001(\01323.google.cloud.compute.v1.ResourcePoliciesScoped", + "List:\0028\001B\007\n" + "\005_etagB\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" @@ -21465,8 +21526,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\t_vm_count\"\241\001\n" + "\031ResourcePolicyHourlyCycle\022\030\n" + "\010duration\030\224\233\221J \001(\tH\000\210\001\001\022\037\n" - + "\016hours_in_cycle\030\374\210\227\373\001 \001(\005H\001\210\001\001\022\032\n" - + "\n" + + "\016hours_in_cycle\030\374\210\227\373\001 \001(\005H\001\210\001\001\022\032\n\n" + "start_time\030\212\351\356\021 \001(\tH\002\210\001\001B\013\n" + "\t_durationB\021\n" + "\017_hours_in_cycleB\r\n" @@ -21475,17 +21535,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017expiration_time\030\335\254\350m \001(\tH\000\210\001\001\022\032\n\n" + "start_time\030\212\351\356\021 \001(\tH\001\210\001\001\022\031\n" + "\ttime_zone\030\336\203\311\021 \001(\tH\002\210\001\001\022h\n" - + "\021vm_start_schedule\030\334\220\274\010 \001(\0132E.google" - + ".cloud.compute.v1.ResourcePolicyInstanceSchedulePolicyScheduleH\003\210\001\001\022h\n" - + "\020vm_stop_schedule\030\254\345\237\313\001 \001(\0132E.google.cloud.compute" - + ".v1.ResourcePolicyInstanceSchedulePolicyScheduleH\004\210\001\001B\022\n" + + "\021vm_start_schedule\030\334\220\274\010 \001(\0132E.google.cloud" + + ".compute.v1.ResourcePolicyInstanceSchedulePolicyScheduleH\003\210\001\001\022h\n" + + "\020vm_stop_schedule\030\254\345\237\313\001 \001(\0132E.google.cloud.compute.v1.Re" + + "sourcePolicyInstanceSchedulePolicyScheduleH\004\210\001\001B\022\n" + "\020_expiration_timeB\r\n" + "\013_start_timeB\014\n\n" + "_time_zoneB\024\n" + "\022_vm_start_scheduleB\023\n" + "\021_vm_stop_schedule\"V\n" - + ",ResourcePol", - "icyInstanceSchedulePolicySchedule\022\031\n" + + ",ResourcePolicyInstanceSchedulePolicySchedule\022\031\n" + "\010schedule\030\227\245\232\263\001 \001(\tH\000\210\001\001B\013\n" + "\t_schedule\"\314\002\n" + "\022ResourcePolicyList\022\024\n" @@ -21505,9 +21564,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\271\001\n" + "\034ResourcePolicyResourceStatus\022|\n" - + "\030instance_schedule_policy\030\260\320\271\244\001 \001(\0132" - + "Q.google.cloud.compute.v1.ResourcePolicy" - + "ResourceStatusInstanceSchedulePolicyStatusH\000\210\001\001B\033\n" + + "\030instance_schedule_policy\030\260\320\271\244\001 \001(\0132Q.goog" + + "le.cloud.compute.v1.ResourcePolicyResour" + + "ceStatusInstanceSchedulePolicyStatusH\000\210\001\001B\033\n" + "\031_instance_schedule_policy\"\266\001\n" + "8ResourcePolicyResourceStatusInstanceSchedulePolicyStatus\022$\n" + "\023last_run_start_time\030\207\357\301\220\001 \001(\tH\000\210\001\001\022$\n" @@ -21515,12 +21574,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024_last_run_start_timeB\026\n" + "\024_next_run_start_time\"\250\003\n" + "$ResourcePolicySnapshotSchedulePolicy\022n\n" - + "\020retention_policy\030\363\312\334 \001(\0132L.google.cloud.compute.v1.Re" - + "sourcePolicySnapshotSchedulePolicyRetentionPolicyH\000\210\001\001\022`\n" - + "\010schedule\030\227\245\232\263\001 \001(\0132E.g" - + "oogle.cloud.compute.v1.ResourcePolicySnapshotSchedulePolicyScheduleH\001\210\001\001\022t\n" - + "\023snapshot_properties\030\216\225\262X \001(\0132O.google.cloud." - + "compute.v1.ResourcePolicySnapshotSchedulePolicySnapshotPropertiesH\002\210\001\001B\023\n" + + "\020retention_policy\030\363\312\334 \001(\0132L.google.cloud.compute.v1.Resource" + + "PolicySnapshotSchedulePolicyRetentionPolicyH\000\210\001\001\022`\n" + + "\010schedule\030\227\245\232\263\001 \001(\0132E.google." + + "cloud.compute.v1.ResourcePolicySnapshotSchedulePolicyScheduleH\001\210\001\001\022t\n" + + "\023snapshot_properties\030\216\225\262X \001(\0132O.google.cloud.comput" + + "e.v1.ResourcePolicySnapshotSchedulePolicySnapshotPropertiesH\002\210\001\001B\023\n" + "\021_retention_policyB\013\n" + "\t_scheduleB\026\n" + "\024_snapshot_properties\"\325\002\n" @@ -21535,20 +21594,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023_max_retention_daysB\030\n" + "\026_on_source_disk_delete\"\347\002\n" + ",ResourcePolicySnapshotSchedulePolicySchedule\022Q\n" - + "\016daily_schedule\030\375\343\212) \001(\01321.google.cl" - + "oud.compute.v1.ResourcePolicyDailyCycleH\000\210\001\001\022S\n" - + "\017hourly_schedule\030\245\261\243\022 \001(\01322.googl" - + "e.cloud.compute.v1.ResourcePolicyHourlyCycleH\001\210\001\001\022T\n" - + "\017weekly_schedule\030\225\211\271\253\001 \001(\01322" - + ".google.cloud.compute.v1.ResourcePolicyWeeklyCycleH\002\210\001\001B\021\n" + + "\016daily_schedule\030\375\343\212) \001(\01321.google.cloud.co" + + "mpute.v1.ResourcePolicyDailyCycleH\000\210\001\001\022S\n" + + "\017hourly_schedule\030\245\261\243\022 \001(\01322.google.clou" + + "d.compute.v1.ResourcePolicyHourlyCycleH\001\210\001\001\022T\n" + + "\017weekly_schedule\030\225\211\271\253\001 \001(\01322.googl" + + "e.cloud.compute.v1.ResourcePolicyWeeklyCycleH\002\210\001\001B\021\n" + "\017_daily_scheduleB\022\n" + "\020_hourly_scheduleB\022\n" + "\020_weekly_schedule\"\320\002\n" + "6ResourcePolicySnapshotSchedulePolicySnapshotProperties\022\032\n\n" + "chain_name\030\311\332\335 \001(\tH\000\210\001\001\022\034\n" + "\013guest_flush\030\335\223\354\267\001 \001(\010H\001\210\001\001\022o\n" - + "\006labels\030\377\277\301\356\001 \003(\0132[.google.cloud.compute.v1.Re" - + "sourcePolicySnapshotSchedulePolicySnapshotProperties.LabelsEntry\022\035\n" + + "\006labels\030\377\277\301\356\001 \003(\0132[.google.cloud.compute.v1.Resource" + + "PolicySnapshotSchedulePolicySnapshotProperties.LabelsEntry\022\035\n" + "\021storage_locations\030\232\355\263\234\001 \003(\t\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -21556,8 +21615,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_chain_nameB\016\n" + "\014_guest_flush\"q\n" + "\031ResourcePolicyWeeklyCycle\022T\n" - + "\014day_of_weeks\030\332\237\373z \003(\0132;.google.clo" - + "ud.compute.v1.ResourcePolicyWeeklyCycleDayOfWeek\"\264\002\n" + + "\014day_of_weeks\030\332\237\373z \003(\0132;.google.cloud.com" + + "pute.v1.ResourcePolicyWeeklyCycleDayOfWeek\"\264\002\n" + "\"ResourcePolicyWeeklyCycleDayOfWeek\022\022\n" + "\003day\030\234\207\006 \001(\tH\000\210\001\001\022\030\n" + "\010duration\030\224\233\221J \001(\tH\001\210\001\001\022\032\n\n" @@ -21593,12 +21652,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_type\"\217\003\n" + "\016ResourceStatus\022\036\n\r" + "physical_host\030\220\370\266\335\001 \001(\tH\000\210\001\001\022d\n" - + "\026physical_host_topology\030\276\223\257\272\001 \001(\0132;.google.clo" - + "ud.compute.v1.ResourceStatusPhysicalHostTopologyH\001\210\001\001\022N\n\n" - + "scheduling\030\224\313\261\270\001 \001(\01321." - + "google.cloud.compute.v1.ResourceStatusSchedulingH\002\210\001\001\022R\n" - + "\024upcoming_maintenance\030\360\240\264l" - + " \001(\0132,.google.cloud.compute.v1.UpcomingMaintenanceH\003\210\001\001B\020\n" + + "\026physical_host_topology\030\276\223\257\272\001 \001(\0132;.google.cloud.com" + + "pute.v1.ResourceStatusPhysicalHostTopologyH\001\210\001\001\022N\n\n" + + "scheduling\030\224\313\261\270\001 \001(\01321.google" + + ".cloud.compute.v1.ResourceStatusSchedulingH\002\210\001\001\022R\n" + + "\024upcoming_maintenance\030\360\240\264l \001(\013" + + "2,.google.cloud.compute.v1.UpcomingMaintenanceH\003\210\001\001B\020\n" + "\016_physical_hostB\031\n" + "\027_physical_host_topologyB\r\n" + "\013_schedulingB\027\n" @@ -21625,9 +21684,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\321\002\n" + "*ResumeInstancesInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\217\001\n" - + "9instance_group_managers_resume_instances_request_resource\030\302\276\302=" - + " \001(\0132D.google.cloud.compute.v1.Insta" - + "nceGroupManagersResumeInstancesRequestB\003\340A\002\022!\n" + + "9instance_group_managers_resume_instances_request_resource\030\302\276\302= \001" + + "(\0132D.google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -21639,10 +21697,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\235\001\n" - + "@regi" - + "on_instance_group_managers_resume_instances_request_resource\030\267\203\200\335\001" - + " \001(\0132J.google." - + "cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequestB\003\340A\002\022\032\n\n" + + "@region_ins" + + "tance_group_managers_resume_instances_request_resource\030\267\203\200\335\001" + + " \001(\0132J.google.cloud." + + "compute.v1.RegionInstanceGroupManagersResumeInstancesRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\226\014\n" + "\005Route\0229\n" @@ -21669,8 +21727,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017next_hop_origin\030\250\321\237\027 \001(\tH\017\210\001\001\022!\n" + "\020next_hop_peering\030\376\223\344\304\001 \001(\tH\020\210\001\001\022$\n" + "\023next_hop_vpn_tunnel\030\225\345\360\367\001 \001(\tH\021\210\001\001\022<\n" - + "\006params\030\206\363\253% \001(\0132$" - + ".google.cloud.compute.v1.RouteParamsH\022\210\001\001\022\031\n" + + "\006params\030\206\363\253%" + + " \001(\0132$.google.cloud.compute.v1.RouteParamsH\022\210\001\001\022\031\n" + "\010priority\030\244\363\241\324\001 \001(\r" + "H\023\210\001\001\022\035\n" + "\014route_status\030\250\315\262\307\001 \001(\tH\024\210\001\001\022\033\n\n" @@ -21744,8 +21802,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\253\001\n" + "\013RouteParams\022`\n" - + "\025resource_manager_tags\030\374\233\213\264\001" - + " \003(\0132=.google.cloud.compute.v1.RouteParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\013" + + "2=.google.cloud.compute.v1.RouteParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\310\002\n" @@ -21753,8 +21811,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013description\030\374\207\326\311\001 \001(\tH\000\210\001\001\022\033\n" + "\013fingerprint\030\344\321\363o \001(\tH\001\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\002\210\001\001\022@\n" - + "\005terms\030\207\223\3114" - + " \003(\0132..google.cloud.compute.v1.RoutePolicyPolicyTerm\022\024\n" + + "\005terms\030\207\223\3114 \003(\0132." + + ".google.cloud.compute.v1.RoutePolicyPolicyTerm\022\024\n" + "\004type\030\272\236\332\001 \001(\tH\003\210\001\001\"^\n" + "\004Type\022\022\n" + "\016UNDEFINED_TYPE\020\000\022 \n" @@ -21781,11 +21839,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035encrypted_interconnect_router\030\237\242\214\216\001" + " \001(\010H\003\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\004\210\001\001\022?\n\n" - + "interfaces\030\332\364\340\005" - + " \003(\0132(.google.cloud.compute.v1.RouterInterface\022\024\n" + + "interfaces\030\332\364\340\005 \003(" + + "\0132(.google.cloud.compute.v1.RouterInterface\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022W\n" - + "\027md5_authentication_keys\030\232\256\361! \003(\01323.google.clo" - + "ud.compute.v1.RouterMd5AuthenticationKey\022\024\n" + + "\027md5_authentication_keys\030\232\256\361!" + + " \003(\01323.google.cloud.compute.v1.RouterMd5AuthenticationKey\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\006\210\001\001\0223\n" + "\004nats\030\362\366\315\001 \003(\0132\".google.cloud.compute.v1.RouterNat\022\027\n" + "\007network\030\256\264\205o \001(\tH\007\210\001\001\022\026\n" @@ -21808,8 +21866,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_range\"\263\003\n" + "\024RouterAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022J\n" - + "\005items\030\300\317\367/ \003(\01328.google.cloud.co" - + "mpute.v1.RouterAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\01328.google.cloud.compute.v1.RouterAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -21818,8 +21876,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032X\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\0229\n" - + "\005value\030\002" - + " \001(\0132*.google.cloud.compute.v1.RoutersScopedList:\0028\001B\005\n" + + "\005value\030\002 " + + "\001(\0132*.google.cloud.compute.v1.RoutersScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -21829,8 +21887,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016advertise_mode\030\273\225\353\224\001 \001(\tH\000\210\001\001\022\034\n" + "\021advertised_groups\030\266\336\205\n" + " \003(\t\022Q\n" - + "\024advertised_ip_ranges\030\314\330\363\020 \003(\01320.google.c" - + "loud.compute.v1.RouterAdvertisedIpRange\022\022\n" + + "\024advertised_ip_ranges\030\314\330\363\020" + + " \003(\01320.google.cloud.compute.v1.RouterAdvertisedIpRange\022\022\n" + "\003asn\030\374\364\005 \001(\r" + "H\001\210\001\001\022!\n" + "\020identifier_range\030\247\314\225\357\001 \001(\tH\002\210\001\001\022#\n" @@ -21851,14 +21909,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016advertise_mode\030\273\225\353\224\001 \001(\tH\000\210\001\001\022\034\n" + "\021advertised_groups\030\266\336\205\n" + " \003(\t\022Q\n" - + "\024advertised_ip_ranges\030\314\330\363\020 \003(\01320.google.cl" - + "oud.compute.v1.RouterAdvertisedIpRange\022)\n" + + "\024advertised_ip_ranges\030\314\330\363\020" + + " \003(\01320.google.cloud.compute.v1.RouterAdvertisedIpRange\022)\n" + "\031advertised_route_priority\030\274\234\366X \001(\r" + "H\001\210\001\001\022=\n" + "\003bfd\030\240\371\005" + " \001(\0132).google.cloud.compute.v1.RouterBgpPeerBfdH\002\210\001\001\022`\n" - + "\030custom_learned_ip_ranges\030\304\210\304\345\001 \003(\0132:.google.cloud.co" - + "mpute.v1.RouterBgpPeerCustomLearnedIpRange\022.\n" + + "\030custom_learned_ip_ranges\030\304\210\304\345\001" + + " \003(\0132:.google.cloud.compute.v1.RouterBgpPeerCustomLearnedIpRange\022.\n" + "\035custom_learned_route_priority\030\304\342\306\235\001" + " \001(\005H\003\210\001\001\022\027\n" + "\006enable\030\203\313\324\224\001 \001(\tH\004\210\001\001\022\033\n" @@ -21921,8 +21979,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024min_receive_interval\030\356\271\224Y \001(\r" + "H\000\210\001\001\022&\n" + "\025min_transmit_interval\030\307\321\302\371\001 \001(\r" - + "H\001\210\001\001\022\032\n" - + "\n" + + "H\001\210\001\001\022\032\n\n" + "multiplier\030\301\373\235[ \001(\r" + "H\002\210\001\001\022+\n" + "\033session_initialization_mode\030\271\215\3032 \001(\tH\003\210\001\001\"y\n" @@ -21932,7 +21989,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010DISABLED\020\374\324\260\366\001\022\017\n" + "\007PASSIVE\020\207\366\327\334\001B\027\n" + "\025_min_receive_intervalB\030\n" - + "\026_min_transmit_intervalB\r\n" + + "\026_min_transmit_intervalB\r" + + "\n" + "\013_multiplierB\036\n" + "\034_session_initialization_mode\"D\n" + "!RouterBgpPeerCustomLearnedIpRange\022\025\n" @@ -21993,13 +22051,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\010H\002\210\001\001\022\032\n" + "\016endpoint_types\030\317\252\326\357\001 \003(\t\022%\n" + "\025icmp_idle_timeout_sec\030\312\320\336\001 \001(\005H\003\210\001\001\022H\n\n" - + "log_config\030\235\321\301\247\001 \001(\0132+.googl" - + "e.cloud.compute.v1.RouterNatLogConfigH\004\210\001\001\022 \n" + + "log_config\030\235\321\301\247\001" + + " \001(\0132+.google.cloud.compute.v1.RouterNatLogConfigH\004\210\001\001\022 \n" + "\020max_ports_per_vm\030\341\311\236w \001(\005H\005\210\001\001\022 \n" + "\020min_ports_per_vm\030\263\255\344X \001(\005H\006\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022Q\n" - + "\021nat64_subnetworks\030\245\373\250\036 \003" - + "(\01323.google.cloud.compute.v1.RouterNatSubnetworkToNat64\022\'\n" + + "\021nat64_subnetworks\030\245\373\250\036 \003(\01323.g" + + "oogle.cloud.compute.v1.RouterNatSubnetworkToNat64\022\'\n" + "\026nat_ip_allocate_option\030\375\270\364\314\001 \001(\tH\010\210\001\001\022\022\n" + "\007nat_ips\030\216\360\2138 \003(\t\0228\n" + "\005rules\030\367\221\3653 \003(\0132&.google.cloud.compute.v1.RouterNatRule\0222\n" @@ -22046,7 +22104,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022_auto_network_tierB!\n" + "\037_enable_dynamic_port_allocationB&\n" + "$_enable_endpoint_independent_mappingB\030\n" - + "\026_icmp_idle_timeout_secB\r\n" + + "\026_icmp_idle_timeout_secB\r" + + "\n" + "\013_log_configB\023\n" + "\021_max_ports_per_vmB\023\n" + "\021_min_ports_per_vmB\007\n" @@ -22070,7 +22129,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_enableB\t\n" + "\007_filter\"\335\001\n\r" + "RouterNatRule\022D\n" - + "\006action\030\266\374\275Y" + + "\006acti", + "on\030\266\374\275Y" + " \001(\0132,.google.cloud.compute.v1.RouterNatRuleActionH\000\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022\025\n" + "\005match\030\305\263\2671 \001(\tH\002\210\001\001\022\034\n" @@ -22090,8 +22150,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030secondary_ip_range_names\030\331\301\204~ \003(\t\022#\n" + "\027source_ip_ranges_to_nat\030\362\312\224\271\001 \003(\t\"\220\001\n" + "\023SourceIpRangesToNat\022%\n" - + "!UNDEFINED_SOURCE_IP_RANGES_TO_NAT\020\000\022\024\n" - + "\r" + + "!UNDEFINED_SOURCE_IP_RANGES_TO_NAT\020\000\022\024\n\r" + "ALL_IP_RANGES\020\260\257\375\020\022\"\n" + "\033LIST_OF_SECONDARY_IP_RANGES\020\234\264\330[\022\030\n" + "\020PRIMARY_IP_RANGE\020\302\223\326\215\001B\007\n" @@ -22104,20 +22163,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\0132\036.google.cloud.compute.v1.Route\022A\n" + "\026best_routes_for_router\030\371\373\3668" + " \003(\0132\036.google.cloud.compute.v1.Route\022N\n" - + "\017bgp_peer_status\030\373\327\225h \003(\013" - + "22.google.cloud.compute.v1.RouterStatusBgpPeerStatus\022E\n\n" - + "nat_status\030\320\231\213\036 \003(\0132..go" - + "ogle.cloud.compute.v1.RouterStatusNatStatus\022\027\n" + + "\017bgp_peer_status\030\373\327\225h \003(\01322.goo" + + "gle.cloud.compute.v1.RouterStatusBgpPeerStatus\022E\n\n" + + "nat_status\030\320\231\213\036" + + " \003(\0132..google.cloud.compute.v1.RouterStatusNatStatus\022\027\n" + "\007network\030\256\264\205o \001(\tH\000\210\001\001B\n\n" + "\010_network\"\351\n\n" + "\031RouterStatusBgpPeerStatus\022=\n" + "\021advertised_routes\030\254\331\374\236\001" + " \003(\0132\036.google.cloud.compute.v1.Route\022?\n\n" - + "bfd_status\030\361\270\323\274\001 \001(\0132\"." - + "google.cloud.compute.v1.BfdStatusH\000\210\001\001\022\033\n" + + "bfd_status\030\361\270\323\274\001" + + " \001(\0132\".google.cloud.compute.v1.BfdStatusH\000\210\001\001\022\033\n" + "\013enable_ipv4\030\241\366\303V \001(\010H\001\210\001\001\022\033\n" - + "\013enable_ip", - "v6\030\243\366\303V \001(\010H\002\210\001\001\022\033\n\n" + + "\013enable_ipv6\030\243\366\303V \001(\010H\002\210\001\001\022\033\n\n" + "ip_address\030\334\361\334\301\001 \001(\tH\003\210\001\001\022$\n" + "\024ipv4_nexthop_address\030\321\215\334\002 \001(\tH\004\210\001\001\022$\n" + "\024ipv6_nexthop_address\030\323\205\253\r" @@ -22177,8 +22235,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\213\365\315\001 \001(\tH\001\210\001\001\0223\n" + "\"num_vm_endpoints_with_nat_mappings\030\354\266\250\364\001" + " \001(\005H\002\210\001\001\022S\n" - + "\013rule_status\030\225\305\356B \003(\0132;.g" - + "oogle.cloud.compute.v1.RouterStatusNatStatusNatRuleStatus\022*\n" + + "\013rule_status\030\225\305\356B \003(\0132;.google." + + "cloud.compute.v1.RouterStatusNatStatusNatRuleStatus\022*\n" + "\037user_allocated_nat_ip_resources\030\327\351\272e \003(\t\022\"\n" + "\026user_allocated_nat_ips\030\242\262\331\361\001 \003(\tB\033\n" + "\031_min_extra_nat_ips_neededB\007\n" @@ -22233,7 +22291,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_etagB\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" - + "\020_next_page_tokenB\014\n\n" + + "\020_next_page_tokenB\014\n" + + "\n" + "_self_linkB\n\n" + "\010_warning\"`\n" + "\026RoutersPreviewResponse\0229\n" @@ -22266,15 +22325,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_portB\014\n\n" + "_port_nameB\025\n" + "\023_port_specificationB\017\n\r" - + "_proxy_headerB\n\n" + + "_proxy_headerB\n" + + "\n" + "\010_requestB\013\n" + "\t_response\"\217\010\n" + "\021SavedAttachedDisk\022\034\n" + "\013auto_delete\030\273\344\316\335\001 \001(\010H\000\210\001\001\022\024\n" + "\004boot\030\362\365\270\001 \001(\010H\001\210\001\001\022\033\n" + "\013device_name\030\324\265\232 \001(\tH\002\210\001\001\022T\n" - + "\023disk_encryption_key\030\205\355\304\201\001" - + " \001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\003\210\001\001\022\035\n" + + "\023disk_encryption_key\030\205\355\304\201\001 \001(\0132" + + "..google.cloud.compute.v1.CustomerEncryptionKeyH\003\210\001\001\022\035\n" + "\014disk_size_gb\030\267\232\347\226\001 \001(\003H\004\210\001\001\022\031\n" + "\tdisk_type\030\234\351\254, \001(\tH\005\210\001\001\022E\n" + "\021guest_os_features\030\321\340\347%" @@ -22359,14 +22419,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032host_error_timeout_seconds\030\223\334\331\302\001" + " \001(\005H\002\210\001\001\022+\n" + "\033instance_termination_action\030\273\377\2313 \001(\tH\003\210\001\001\022M\n" - + "\032local_ssd_recovery_timeout\030\346\257\346\177" - + " \001(\0132!.google.cloud.compute.v1.DurationH\004\210\001\001\022\036\n\r" + + "\032local_ssd_recovery_timeout\030\346\257\346\177 \001(\0132!" + + ".google.cloud.compute.v1.DurationH\004\210\001\001\022\036\n\r" + "location_hint\030\321\201\222\247\001 \001(\tH\005\210\001\001\022D\n" + "\020max_run_duration\030\303\257\270\315\001" + " \001(\0132!.google.cloud.compute.v1.DurationH\006\210\001\001\022\036\n\r" + "min_node_cpus\030\273\244\242\227\001 \001(\005H\007\210\001\001\022L\n" - + "\017node_affinities\030\243\204\232\334\001" - + " \003(\0132/.google.cloud.compute.v1.SchedulingNodeAffinity\022#\n" + + "\017node_affinities\030\243\204\232\334\001 \003(" + + "\0132/.google.cloud.compute.v1.SchedulingNodeAffinity\022#\n" + "\023on_host_maintenance\030\334\362\347\036 \001(\tH\010\210\001\001\022a\n" + "\027on_instance_stop_action\030\311\215\325\374\001" + " \001(\01327.google.cloud.compute.v1.SchedulingOnInstanceStopActionH" @@ -22424,8 +22484,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036SecurityPoliciesAggregatedList\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022T\n" - + "\005items\030\300\317\367/ \003(\0132B.google.clo" - + "ud.compute.v1.SecurityPoliciesAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132B.google.cloud.com" + + "pute.v1.SecurityPoliciesAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" @@ -22434,8 +22494,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\005\210\001\001\032a\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022B\n" - + "\005value\030\002 \001(\01323.google.cloud." - + "compute.v1.SecurityPoliciesScopedList:\0028\001B\007\n" + + "\005value\030\002" + + " \001(\01323.google.cloud.compute.v1.SecurityPoliciesScopedList:\0028\001B\007\n" + "\005_etagB\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" @@ -22447,8 +22507,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\01322.google.cloud.compute.v1.SecurityPoliciesWafConfigH\000\210\001\001B \n" + "\036_preconfigured_expression_sets\"\252\001\n" + "\032SecurityPoliciesScopedList\022E\n" - + "\021security_policies\030\357\246\367<" - + " \003(\0132\'.google.cloud.compute.v1.SecurityPolicy\0229\n" + + "\021security_policies\030\357\246\367< \003(" + + "\0132\'.google.cloud.compute.v1.SecurityPolicy\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"r\n" @@ -22457,23 +22517,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132,.google.cloud.compute.v1.PreconfiguredWafSetH\000\210\001\001B\014\n\n" + "_waf_rules\"\257\n\n" + "\016SecurityPolicy\022k\n" - + "\032adaptive_protection_config\030\337\373\321G \001(\0132?.google.cloud.compute.v1." - + "SecurityPolicyAdaptiveProtectionConfigH\000\210\001\001\022f\n" - + "\027advanced_options_config\030\300\323\235\326\001 \001(\013" - + "2<.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigH\001\210\001\001\022\"\n" + + "\032adaptive_protection_config\030\337\373\321G" + + " \001(\0132?.google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigH\000\210\001\001\022f\n" + + "\027advanced_options_config\030\300\323\235\326\001 \001(\0132<.goo" + + "gle.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigH\001\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\002\210\001\001\022c\n" - + "\026ddos_protection_config\030\315\204\377\027 \001(\0132;.google.cloud.comput" - + "e.v1.SecurityPolicyDdosProtectionConfigH\003\210\001\001\022\034\n" + + "\026ddos_protection_config\030\315\204\377\027 \001(\0132;.google.cloud.compute.v1.S" + + "ecurityPolicyDdosProtectionConfigH\003\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\004\210\001\001\022\033\n" + "\013fingerprint\030\344\321\363o \001(\tH\005\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\006\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\007\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\010\210\001\001\022G\n" - + "\006labels\030\377\277\301\356\001 \003(\01323" - + ".google.cloud.compute.v1.SecurityPolicy.LabelsEntry\022\024\n" + + "\006labels\030\377\277\301\356\001 \003(\01323.googl" + + "e.cloud.compute.v1.SecurityPolicy.LabelsEntry\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\t\210\001\001\022h\n" - + "\030recaptcha_options_config\030\333\324\275\367\001 \001(\0132=.google" - + ".cloud.compute.v1.SecurityPolicyRecaptchaOptionsConfigH\n" + + "\030recaptcha_options_config\030\333\324\275\367\001 \001(\0132=.google.cloud" + + ".compute.v1.SecurityPolicyRecaptchaOptionsConfigH\n" + "\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\013\210\001\001\022=\n" + "\005rules\030\367\221\3653" @@ -22506,15 +22566,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\007\n" + "\005_type\"\315\001\n" + "&SecurityPolicyAdaptiveProtectionConfig\022\203\001\n" - + "\032layer7_ddos_defense_config\030\243\331\303\320\001" - + " \001(\0132V.google.cloud.compute.v1.Secu" - + "rityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigH\000\210\001\001B\035\n" + + "\032layer7_ddos_defense_config\030\243\331\303\320\001 " + + "\001(\0132V.google.cloud.compute.v1.SecurityPo" + + "licyAdaptiveProtectionConfigLayer7DdosDefenseConfigH\000\210\001\001B\035\n" + "\033_layer7_ddos_defense_config\"\363\002\n" + "=SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig\022\027\n" + "\006enable\030\203\313\324\224\001 \001(\010H\000\210\001\001\022 \n" + "\017rule_visibility\030\265\330\220\330\001 \001(\tH\001\210\001\001\022\203\001\n" - + "\021threshold_configs\030\235\253\343\034 \003(\0132e.google.cloud.compute.v1.Secu" - + "rityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig\"R\n" + + "\021threshold_configs\030\235\253\343\034 " + + "\003(\0132e.google.cloud.compute.v1.SecurityPo" + + "licyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig\"R\n" + "\016RuleVisibility\022\035\n" + "\031UNDEFINED_RULE_VISIBILITY\020\000\022\017\n" + "\007PREMIUM\020\267\264\301\276\001\022\020\n" @@ -22533,9 +22594,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"detection_relative_to_baseline_qps\030\205\233\366\212\001" + " \001(\002H\006\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022\245\001\n" - + "\033traffic_granularity_configs\030\276\264\332( \003(\0132}.google.cloud" - + ".compute.v1.SecurityPolicyAdaptiveProtec" - + "tionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfigB#\n" + + "\033traffic_granularity_configs\030\276\264\332( \003(\0132}.google.cloud.compu" + + "te.v1.SecurityPolicyAdaptiveProtectionCo" + + "nfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfigB#\n" + "!_auto_deploy_confidence_thresholdB\035\n" + "\033_auto_deploy_expiration_secB*\n" + "(_auto_deploy_impacted_baseline_thresholdB\035\n" @@ -22544,8 +22605,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031_detection_load_thresholdB%\n" + "#_detection_relative_to_baseline_qpsB\007\n" + "\005_name\"\320\002\n" - + "dSecurityPolicyAdaptiveProtectionConf" - + "igLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig\022)\n" + + "dSecurityPolicyAdaptiveProtectionConfigLaye" + + "r7DdosDefenseConfigThresholdConfigTrafficGranularityConfig\022)\n" + "\030enable_each_unique_value\030\305\212\336\337\001" + " \001(\010H\000\210\001\001\022\024\n" + "\004type\030\272\236\332\001 \001(\tH\001\210\001\001\022\025\n" @@ -22559,8 +22620,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_typeB\010\n" + "\006_value\"\336\003\n" + "#SecurityPolicyAdvancedOptionsConfig\022p\n" - + "\022json_custom_config\030\271\331\2315 \001(\0132L.google.cloud.compute.v1.Secu" - + "rityPolicyAdvancedOptionsConfigJsonCustomConfigH\000\210\001\001\022\035\n" + + "\022json_custom_config\030\271\331\2315 \001(\0132L.google.cloud.compute.v1.SecurityPo" + + "licyAdvancedOptionsConfigJsonCustomConfigH\000\210\001\001\022\035\n" + "\014json_parsing\030\331\204\332\206\001 \001(\tH\001\210\001\001\022\031\n" + "\tlog_level\030\311\275\204C \001(\tH\002\210\001\001\022#\n" + "\027user_ip_request_headers\030\262\357\342\310\001 \003(\t\"k\n" @@ -22588,8 +22649,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020_ddos_protection\"\203\002\n" + "\022SecurityPolicyList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\0229\n" - + "\005items\030\300\317\367/ \003(" - + "\0132\'.google.cloud.compute.v1.SecurityPolicy\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132\'.google.cloud.compute.v1.SecurityPolicy\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" @@ -22607,22 +22668,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022SecurityPolicyRule\022\026\n" + "\006action\030\266\374\275Y \001(\tH\000\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022[\n\r" - + "header_action\030\250\240\270\234\001" - + " \001(\0132;.google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderActionH\002\210\001\001\022\024\n" + + "header_action\030\250\240\270\234\001 \001(\013" + + "2;.google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderActionH\002\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\003\210\001\001\022I\n" - + "\005match\030\305\263\2671 \001(\01322.googl" - + "e.cloud.compute.v1.SecurityPolicyRuleMatcherH\004\210\001\001\022Y\n\r" - + "network_match\030\364\370\372\334\001 \001(\01329.g" - + "oogle.cloud.compute.v1.SecurityPolicyRuleNetworkMatcherH\005\210\001\001\022k\n" - + "\030preconfigured_waf_config\030\343\237\2268 \001(\0132A.google.cloud.compute" - + ".v1.SecurityPolicyRulePreconfiguredWafConfigH\006\210\001\001\022\027\n" + + "\005match\030\305\263\2671 \001(\01322.google.clou" + + "d.compute.v1.SecurityPolicyRuleMatcherH\004\210\001\001\022Y\n\r" + + "network_match\030\364\370\372\334\001 \001(\01329.google." + + "cloud.compute.v1.SecurityPolicyRuleNetworkMatcherH\005\210\001\001\022k\n" + + "\030preconfigured_waf_config\030\343\237\2268 \001(\0132A.google.cloud.compute.v1.Se" + + "curityPolicyRulePreconfiguredWafConfigH\006\210\001\001\022\027\n" + "\007preview\030\310\307\243h \001(\010H\007\210\001\001\022\031\n" + "\010priority\030\244\363\241\324\001 \001(\005H\010\210\001\001\022_\n" + "\022rate_limit_options\030\373\311\232 " + " \001(\0132;.google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsH" + "\t\210\001\001\022\\\n" - + "\020redirect_options\030\273\222\356M \001(\0132:.google.clo" - + "ud.compute.v1.SecurityPolicyRuleRedirectOptionsH\n" + + "\020redirect_options\030\273\222\356M \001(\0132:.google.cloud.com" + + "pute.v1.SecurityPolicyRuleRedirectOptionsH\n" + "\210\001\001B\t\n" + "\007_actionB\016\n" + "\014_descriptionB\020\n" @@ -22636,20 +22697,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023_rate_limit_optionsB\023\n" + "\021_redirect_options\"\225\001\n" + "\"SecurityPolicyRuleHttpHeaderAction\022o\n" - + "\027request_headers_to_adds\030\315\253\372) \003(\0132K.google.clo" - + "ud.compute.v1.SecurityPolicyRuleHttpHeaderActionHttpHeaderOption\"\220\001\n" + + "\027request_headers_to_adds\030\315\253\372) \003(\0132K.google.cloud.com" + + "pute.v1.SecurityPolicyRuleHttpHeaderActionHttpHeaderOption\"\220\001\n" + "2SecurityPolicyRuleHttpHeaderActionHttpHeaderOption\022\033\n" + "\013header_name\030\375\301\3074 \001(\tH\000\210\001\001\022\034\n" + "\014header_value\030\277\362\353` \001(\tH\001\210\001\001B\016\n" + "\014_header_nameB\017\n\r" + "_header_value\"\233\003\n" + "\031SecurityPolicyRuleMatcher\022P\n" - + "\006config\030\302\206\376y \001(\01328.google.cloud.comp" - + "ute.v1.SecurityPolicyRuleMatcherConfigH\000\210\001\001\0223\n" + + "\006config\030\302\206\376y" + + " \001(\01328.google.cloud.compute.v1.SecurityPolicyRuleMatcherConfigH\000\210\001\001\0223\n" + "\004expr\030\365\363\276\001" + " \001(\0132\035.google.cloud.compute.v1.ExprH\001\210\001\001\022\\\n" - + "\014expr_options\030\324\304\354\347\001 \001" - + "(\0132=.google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptionsH\002\210\001\001\022\037\n" + + "\014expr_options\030\324\304\354\347\001 \001(\0132=.g" + + "oogle.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptionsH\002\210\001\001\022\037\n" + "\016versioned_expr\030\275\343\326\231\001 \001(\tH\003\210\001\001\"@\n\r" + "VersionedExpr\022\034\n" + "\030UNDEFINED_VERSIONED_EXPR\020\000\022\021\n\n" @@ -22661,9 +22722,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037SecurityPolicyRuleMatcherConfig\022\031\n\r" + "src_ip_ranges\030\323\200\207\316\001 \003(\t\"\257\001\n" + "$SecurityPolicyRuleMatcherExprOptions\022q\n" - + "\021recaptcha_options\030\306\366\307\271\001 \001(\0132" - + "M.google.cloud.compute.v1.SecurityPolicy" - + "RuleMatcherExprOptionsRecaptchaOptionsH\000\210\001\001B\024\n" + + "\021recaptcha_options\030\306\366\307\271\001 \001(\0132M.goog" + + "le.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptionsRecaptchaOptionsH\000\210\001\001B\024\n" + "\022_recaptcha_options\"~\n" + "4SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions\022!\n" + "\026action_token_site_keys\030\235\352\311\034 \003(\t\022#\n" @@ -22678,26 +22738,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tsrc_ports\030\367\273\236\324\001 \003(\t\022\033\n" + "\020src_region_codes\030\226\343\237/ \003(\t\022n\n" + "\023user_defined_fields\030\243\211\300\r" - + " \003(\0132N.google.cloud.compute.v1.SecurityPolicy" - + "RuleNetworkMatcherUserDefinedFieldMatch\"i\n" - + "5SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch\022\024\n" + + " \003(\0132N.goog" + + "le.cloud.compute.v1.SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch\"i\n" + + "5Sec", + "urityPolicyRuleNetworkMatcherUserDefinedFieldMatch\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\000\210\001\001\022\021\n" + "\006values\030\242\272\226w \003(\tB\007\n" + "\005_name\"\215\001\n" + "(SecurityPolicyRulePreconfiguredWafConfig\022a\n\n" - + "exclusions\030\345\370\277c \003(\0132J.google.cloud.compute.v1" - + ".SecurityPolicyRulePreconfiguredWafConfigExclusion\"\202\005\n" + + "exclusions\030\345\370\277c \003(\0132J.google.cloud.compute.v1.Secur" + + "ityPolicyRulePreconfiguredWafConfigExclusion\"\202\005\n" + "1SecurityPolicyRulePreconfiguredWafConfigExclusion\022|\n" - + "\032request_cookies_to_exclude\030\366\336\337J \003(\0132U.google.cloud.c" - + "ompute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams\022|\n" - + "\032request_headers_to_exclude\030\237\244\223\036 \003(\0132U.google.c" - + "loud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams\022\202\001\n" - + "\037request_query_params_to_exclude\030\210\236\272\242\001 \003" - + "(\0132U.google.cloud.compute.v1.SecurityPol" - + "icyRulePreconfiguredWafConfigExclusionFieldParams\022y\n" - + "\027request_uris_to_exclude\030\236\252\237+" - + " \003(\0132U.google.cloud.compute.v1.Security" - + "PolicyRulePreconfiguredWafConfigExclusionFieldParams\022\033\n" + + "\032request_cookies_to_exclude\030\366\336\337J \003(\0132U.google.cloud.compute" + + ".v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams\022|\n" + + "\032request_headers_to_exclude\030\237\244\223\036 \003(\0132U.google.cloud.c" + + "ompute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams\022\202\001\n" + + "\037request_query_params_to_exclude\030\210\236\272\242\001 \003(\0132U.g" + + "oogle.cloud.compute.v1.SecurityPolicyRul" + + "ePreconfiguredWafConfigExclusionFieldParams\022y\n" + + "\027request_uris_to_exclude\030\236\252\237+ \003(\0132" + + "U.google.cloud.compute.v1.SecurityPolicy" + + "RulePreconfiguredWafConfigExclusionFieldParams\022\033\n" + "\017target_rule_ids\030\343\343\325\355\001 \003(\t\022 \n" + "\017target_rule_set\030\215\257\326\355\001 \001(\tH\000\210\001\001B\022\n" + "\020_target_rule_set\"\347\001\n" @@ -22715,20 +22776,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004_val\"\232\010\n" + "\"SecurityPolicyRuleRateLimitOptions\022 \n" + "\020ban_duration_sec\030\326\232\272\024 \001(\005H\000\210\001\001\022d\n\r" - + "ban_threshold\030\273\250\377\356\001 \001(\0132D.google.c", - "loud.compute.v1.SecurityPolicyRuleRateLimitOptionsThresholdH\001\210\001\001\022\037\n" + + "ban_threshold\030\273\250\377\356\001 \001(\0132D.google.cloud.c" + + "ompute.v1.SecurityPolicyRuleRateLimitOptionsThresholdH\001\210\001\001\022\037\n" + "\016conform_action\030\317\306\350\366\001 \001(\tH\002\210\001\001\022\037\n" + "\016enforce_on_key\030\374\235\326\306\001 \001(\tH\003\210\001\001\022p\n" - + "\026enforce_on_key_configs\030\256\276\225\020" - + " \003(\0132M.google.cloud.compute.v1.Security" - + "PolicyRuleRateLimitOptionsEnforceOnKeyConfig\022#\n" + + "\026enforce_on_key_configs\030\256\276\225\020 \003(\0132" + + "M.google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig\022#\n" + "\023enforce_on_key_name\030\356\303\232? \001(\tH\004\210\001\001\022\035\n\r" + "exceed_action\030\241\312\332O \001(\tH\005\210\001\001\022d\n" - + "\027exceed_redirect_options\030\346\214\355\341\001 \001(\0132:.google.c" - + "loud.compute.v1.SecurityPolicyRuleRedirectOptionsH\006\210\001\001\022k\n" - + "\024rate_limit_threshold\030\210\277\317\226\001" - + " \001(\0132D.google.cloud.compute.v1.Secur" - + "ityPolicyRuleRateLimitOptionsThresholdH\007\210\001\001\"\364\001\n" + + "\027exceed_redirect_options\030\346\214\355\341\001 \001(\0132:.google.cloud.c" + + "ompute.v1.SecurityPolicyRuleRedirectOptionsH\006\210\001\001\022k\n" + + "\024rate_limit_threshold\030\210\277\317\226\001 \001" + + "(\0132D.google.cloud.compute.v1.SecurityPol" + + "icyRuleRateLimitOptionsThresholdH\007\210\001\001\"\364\001\n" + "\014EnforceOnKey\022\034\n" + "\030UNDEFINED_ENFORCE_ON_KEY\020\000\022\t\n" + "\003ALL\020\201\373\003\022\023\n" @@ -22835,11 +22895,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006scopes\030\237\231\222O \003(\tB\010\n" + "\006_email\"\361\t\n" + "\021ServiceAttachment\022[\n" - + "\023connected_endpoints\030\310\227\270\"" - + " \003(\0132;.google.cloud.compute.v1.ServiceAttachmentConnectedEndpoint\022&\n" + + "\023connected_endpoints\030\310\227\270\" \003(\0132" + + ";.google.cloud.compute.v1.ServiceAttachmentConnectedEndpoint\022&\n" + "\025connection_preference\030\334\371\244\210\001 \001(\tH\000\210\001\001\022a\n" - + "\025consumer_accept_lists\030\307\266\204\300\001 \003(\0132>.google.cloud.com" - + "pute.v1.ServiceAttachmentConsumerProjectLimit\022 \n" + + "\025consumer_accept_lists\030\307\266\204\300\001 \003(\0132>.google.cloud.compute.v" + + "1.ServiceAttachmentConsumerProjectLimit\022 \n" + "\025consumer_reject_lists\030\236\231\245a \003(\t\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\027\n" @@ -22883,8 +22943,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017_target_service\"\324\003\n" + "\037ServiceAttachmentAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022U\n" - + "\005items\030\300\317\367/ \003(\0132C.google.cloud.compute.v1.Se" - + "rviceAttachmentAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132C.google.cloud.compute.v1.ServiceAttachmentAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -22893,13 +22953,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032c\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022D\n" - + "\005value\030\002" - + " \001(\01325.google.cloud.compute.v1.ServiceAttachmentsScopedList:\0028\001B\005\n" + + "\005value\030\002 " + + "\001(\01325.google.cloud.compute.v1.ServiceAttachmentsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" - + "_self_linkB\n" - + "\n" + + "_self_linkB\n\n" + "\010_warning\"\304\003\n" + "\"ServiceAttachmentConnectedEndpoint\022 \n" + "\020consumer_network\030\345\335\244y \001(\tH\000\210\001\001\022\030\n" @@ -22931,8 +22990,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022_project_id_or_num\"\263\002\n" + "\025ServiceAttachmentList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022<\n" - + "\005items\030\300\317\367/" - + " \003(\0132*.google.cloud.compute.v1.ServiceAttachment\022\024\n" + + "\005items\030\300\317\367/ \003(" + + "\0132*.google.cloud.compute.v1.ServiceAttachment\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -22944,8 +23003,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\262\001\n" + "\034ServiceAttachmentsScopedList\022K\n" - + "\023service_attachments\030\246\222\272\222\001 \003(" - + "\0132*.google.cloud.compute.v1.ServiceAttachment\0229\n" + + "\023service_attachments\030\246\222\272\222\001 \003(\0132*.go" + + "ogle.cloud.compute.v1.ServiceAttachment\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\246\002\n" @@ -22954,18 +23013,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\212\001\n" + "7target_ssl_proxies_set_backend_service_request_resource\030\244\351\250B" - + " \001(\0132A.google.cloud.compute.v1.Ta" - + "rgetSslProxiesSetBackendServiceRequestB\003\340A\002\022!\n" - + "\020target_ssl_proxy\030\315\272\306\241\001 \001(\tB\003\340A\002B\r" - + "\n" + + " \001(\0132A.google.cloud.compute.v1.TargetSslProxiesSetBackendServiceRequestB\003\340A\002\022!\n" + + "\020target_ssl_proxy\030\315\272\306\241\001 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\247\002\n" + "&SetBackendServiceTargetTcpProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\213\001\n" + "7target_tcp_proxies_set_backend_service_request_resource\030\357\321\302\202\001" - + " \001(\0132A.google.c" - + "loud.compute.v1.TargetTcpProxiesSetBackendServiceRequestB\003\340A\002\022!\n" + + " \001(\0132A.google.cloud.c" + + "ompute.v1.TargetTcpProxiesSetBackendServiceRequestB\003\340A\002\022!\n" + "\020target_tcp_proxy\030\342\326\360\357\001 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\261\002\n" + "\032SetBackupTargetPoolRequest\022\036\n" @@ -22977,15 +23034,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013target_pool\030\212\344\370\035 \001(\tB\003\340A\002\022T\n" + "\031target_reference_resource\030\360\267\335\371\001" + " \001(\0132(.google.cloud.compute.v1.TargetReferenceB\003\340A\002B\021\n" - + "\017_failover_ratioB\r\n" + + "\017_failover_ratioB\r" + + "\n" + "\013_request_id\"\256\002\n" + "(SetCertificateMapTargetHttpsProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\217\001\n" + "9target_https_proxies_set_certificate_map_request_resource\030\273\266\376\336\001" - + " \001(\0132" - + "C.google.cloud.compute.v1.TargetHttpsProxiesSetCertificateMapRequestB\003\340A\002\022\"\n" + + " \001(\0132C.goog" + + "le.cloud.compute.v1.TargetHttpsProxiesSetCertificateMapRequestB\003\340A\002\022\"\n" + "\022target_https_proxy\030\354\260\372\030 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\247\002\n" + "&SetCertificateMapTargetSslProxyRequest\022!\n" @@ -22993,26 +23051,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\213\001\n" + "7target_ssl_proxies_set_certificate_map_request_resource\030\272\226\203\244\001" - + " \001(\0132A.google.cloud.comp" - + "ute.v1.TargetSslProxiesSetCertificateMapRequestB\003\340A\002\022!\n" + + " \001(\0132A.google.cloud.compute.v1" + + ".TargetSslProxiesSetCertificateMapRequestB\003\340A\002\022!\n" + "\020target_ssl_proxy\030\315\272\306\241\001 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\352\001\n" + "\037SetCloudArmorTierProjectRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022y\n" - + ".projects_set_cloud_armor_tier_request_resource\030\317\373\336$ \001(\01329.googl" - + "e.cloud.compute.v1.ProjectsSetCloudArmorTierRequestB\003\340A\002\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + + ".projects_set_cloud_armor_tier_request_resource\030\317\373\336$" + + " \001(\01329.google.clou" + + "d.compute.v1.ProjectsSetCloudArmorTierRequestB\003\340A\002\022\032\n\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r" + + "\n" + "\013_request_id\"\214\003\n" + "*SetCommonInstanceMetadataOperationMetadata\022$\n" + "\023client_operation_id\030\347\215\336\215\001 \001(\tH\000\210\001\001\022\203\001\n" - + "\027per_location_operations\030\224\321\202\303\001 \003(\0132^.google.cloud.co" - + "mpute.v1.SetCommonInstanceMetadataOperat" - + "ionMetadata.PerLocationOperationsEntry\032\231\001\n" + + "\027per_location_operations\030\224\321\202\303\001 \003(\0132^.google.cloud.compute." + + "v1.SetCommonInstanceMetadataOperationMetadata.PerLocationOperationsEntry\032\231\001\n" + "\032PerLocationOperationsEntry\022\013\n" + "\003key\030\001 \001(\t\022j\n" - + "\005value\030\002 \001(\0132[.google.cloud.compute" - + ".v1.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo:\0028\001B\026\n" + + "\005value\030\002 \001(\0132[.google.cloud.compute.v1.Se" + + "tCommonInstanceMetadataOperationMetadataPerLocationOperationInfo:\0028\001B\026\n" + "\024_client_operation_id\"\262\002\n" + "BSetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo\0226\n" + "\005error\030\210\244\223." @@ -23029,19 +23088,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_errorB\010\n" + "\006_state\"\276\001\n" + "\'SetCommonInstanceMetadataProjectRequest\022E\n" - + "\021metadata_resource\030\236\276\346\212\001 \001" - + "(\0132!.google.cloud.compute.v1.MetadataB\003\340A\002\022!\n" + + "\021metadata_resource\030\236\276\346\212\001" + + " \001(\0132!.google.cloud.compute.v1.MetadataB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\032\n" - + "\n" + + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\367\001\n" + "#SetDefaultNetworkTierProjectRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\201\001\n" + "2projects_set_default_network_tier_request_resource\030\212\300\243<" - + " \001(\0132=.google.cloud.compu" - + "te.v1.ProjectsSetDefaultNetworkTierRequestB\003\340A\002\022\032\n\n" + + " \001(\0132=.google.cloud.compute.v1." + + "ProjectsSetDefaultNetworkTierRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\351\001\n" + "$SetDeletionProtectionInstanceRequest\022$\n" @@ -23059,7 +23117,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013device_name\030\324\265\232 \001(\tB\003\340A\002\022\030\n" + "\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\032\n\n" + + "\340A\002\362G\007project\022\032\n" + + "\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" @@ -23070,40 +23129,40 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022d\n" + "\"security_policy_reference_resource\030\360\264\253a" - + " \001(\01320.google.cloud.compute.v1.SecurityPolicyReferenceB\003\340A\002B\r" - + "\n" + + " \001(\01320.google.cloud.compute.v1.SecurityPolicyReferenceB\003\340A\002B\r\n" + "\013_request_id\"\202\002\n" + "*SetEdgeSecurityPolicyBackendServiceRequest\022 \n" + "\017backend_service\030\212\300\256\222\001 \001(\tB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022d\n" - + "\"security_policy_reference_resource\030\360\264\253a" - + " \001(\01320.google.cloud.compute.v1.SecurityPolicyReferenceB\003\340A\002B\r\n" + + "\"security_policy_reference_resource\030\360\264\253a \001(\01320" + + ".google.cloud.compute.v1.SecurityPolicyReferenceB\003\340A\002B\r\n" + "\013_request_id\"\273\001\n" + " SetIamPolicyBackendBucketRequest\022d\n" - + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\0132" - + "/.google.cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\0132/.goog" + + "le.cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\274\001\n" + "!SetIamPolicyBackendServiceRequest\022d\n" - + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\0132/.google." - + "cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\0132/.google.cloud." + + "compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\304\001\n" + "\027SetIamPolicyDiskRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\022`\n" - + " zone_set_policy_request_resource\030\273\270\230\266\001 \001" - + "(\0132-.google.cloud.compute.v1.ZoneSetPolicyRequestB\003\340A\002\"\273\001\n" + + " zone_set_policy_request_resource\030\273\270\230\266\001 \001(\0132-.g" + + "oogle.cloud.compute.v1.ZoneSetPolicyRequestB\003\340A\002\"\273\001\n" + "!SetIamPolicyFirewallPolicyRequest\022|\n" - + "/global_organization_set_policy_request_resource\030\336\224\314T \001(\0132;.googl" - + "e.cloud.compute.v1.GlobalOrganizationSetPolicyRequestB\003\340A\002\022\030\n" + + "/global_organization_set_policy_request_resource\030\336\224\314T" + + " \001(\0132;.google.clou" + + "d.compute.v1.GlobalOrganizationSetPolicyRequestB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\263\001\n" + "\030SetIamPolicyImageRequest\022d\n" - + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(" - + "\0132/.google.cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\0132/.go" + + "ogle.cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\310\001\n" + "\033SetIamPolicyInstanceRequest\022\027\n" @@ -23113,8 +23172,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " zone_set_policy_request_resource\030\273\270\230\266\001" + " \001(\0132-.google.cloud.compute.v1.ZoneSetPolicyRequestB\003\340A\002\"\276\001\n" + "#SetIamPolicyInstanceTemplateRequest\022d\n" - + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\0132/." - + "google.cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\0132/.google" + + ".cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\317\001\n" + "\"SetIamPolicyInstantSnapshotRequest\022\027\n" @@ -23129,13 +23188,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\277\001\n" + "$SetIamPolicyInterconnectGroupRequest\022d\n" - + "\"global_set_policy_request_resource\030\262\347\333\240\001" - + " \001(\0132/.google.cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\0132" + + "/.google.cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\265\001\n" + "\032SetIamPolicyLicenseRequest\022d\n" - + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\0132/.google.c" - + "loud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + + "\"global_set_policy_request_resource\030\262\347\333\240\001" + + " \001(\0132/.google.cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\272\001\n" + "\037SetIamPolicyMachineImageRequest\022d\n" @@ -23150,8 +23209,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132/.google.cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\303\001\n" + "(SetIamPolicyNetworkFirewallPolicyRequest\022d\n" - + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\0132/.goo" - + "gle.cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\0132/.google.cl" + + "oud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\311\001\n" + "\034SetIamPolicyNodeGroupRequest\022\027\n" @@ -23163,8 +23222,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037SetIamPolicyNodeTemplateRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022d\n" - + "\"region_set_policy_request_resource\030\203\307\353\203\001 \001(\0132/.g" - + "oogle.cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + + "\"region_set_policy_request_resource\030\203\307\353\203\001 \001(\0132/.google." + + "cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\332\001\n" + "\'SetIamPolicyRegionBackendServiceRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" @@ -23175,8 +23234,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035SetIamPolicyRegionDiskRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022d\n" - + "\"region_set_policy_request_resource\030\203\307\353\203\001 \001(\0132/.google.cl" - + "oud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + + "\"region_set_policy_request_resource\030\203\307\353\203\001" + + " \001(\0132/.google.cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\333\001\n" + "(SetIamPolicyRegionInstantSnapshotRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" @@ -23187,15 +23246,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".SetIamPolicyRegionNetworkFirewallPolicyRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022d\n" - + "\"region_set_policy_request_resource\030\203\307\353\203\001 \001(\0132/" - + ".google.cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + + "\"region_set_policy_request_resource\030\203\307\353\203\001 \001(\0132/.googl" + + "e.cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\313\001\n" + "\036SetIamPolicyReservationRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\022`\n" - + " zone_set_policy_request_resource\030\273\270\230\266\001 \001(\0132-.googl" - + "e.cloud.compute.v1.ZoneSetPolicyRequestB\003\340A\002\"\324\001\n" + + " zone_set_policy_request_resource\030\273\270\230\266\001 \001(\0132-.google.clou" + + "d.compute.v1.ZoneSetPolicyRequestB\003\340A\002\"\324\001\n" + "!SetIamPolicyResourcePolicyRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022d\n" @@ -23205,12 +23264,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "$SetIamPolicyServiceAttachmentRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022d\n" - + "\"region_set_policy_request_resource\030\203\307\353\203\001 \001(\0132/." - + "google.cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + + "\"region_set_policy_request_resource\030\203\307\353\203\001 \001(\0132/.google" + + ".cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\266\001\n" + "\033SetIamPolicySnapshotRequest\022d\n" - + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\0132/." - + "google.cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\0132/.google" + + ".cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\313\001\n" + "\036SetIamPolicyStoragePoolRequest\022\027\n" @@ -23222,14 +23281,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035SetIamPolicySubnetworkRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022d\n" - + "\"region_set_policy_request_resource\030\203\307\353\203\001 \001(\0132" - + "/.google.cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + + "\"region_set_policy_request_resource\030\203\307\353\203\001 \001(\0132/.goog", + "le.cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\336\002\n" + ".SetInstanceTemplateInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\230\001\n" + ">instance_group_managers_set_instance_template_request_resource\030\305\331\326\004" - + " \001(\0132H.google.cloud.compute.v1.Instanc" - + "eGroupManagersSetInstanceTemplateRequestB\003\340A\002\022!\n" + + " \001(\0132H.google.cloud.compute.v1.InstanceGroup" + + "ManagersSetInstanceTemplateRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -23242,8 +23301,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\224\001\n" + ".google.cloud." - + "compute.v1.TargetSslProxiesSetProxyHeaderRequestB\003\340A\002\022!\n" + + " \001(\0132>.google.cloud.comput" + + "e.v1.TargetSslProxiesSetProxyHeaderRequestB\003\340A\002\022!\n" + "\020target_ssl_proxy\030\315\272\306\241\001 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\235\002\n" + "#SetProxyHeaderTargetTcpProxyRequest\022!\n" @@ -23511,17 +23570,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\204\001\n" + "4target_tcp_proxies_set_proxy_header_request_resource\030\303\230\361h" - + " \001(\0132>.googl" - + "e.cloud.compute.v1.TargetTcpProxiesSetProxyHeaderRequestB\003\340A\002\022!\n" + + " \001(\0132>.google.clou" + + "d.compute.v1.TargetTcpProxiesSetProxyHeaderRequestB\003\340A\002\022!\n" + "\020target_tcp_proxy\030\342\326\360\357\001 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\247\002\n" + "&SetQuicOverrideTargetHttpsProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\212\001\n" - + "7target_https_proxies_set_quic_override_request_resource\030\342\365\343\"" - + " \001(\0132A.google.cloud.compute.v1.TargetH" - + "ttpsProxiesSetQuicOverrideRequestB\003\340A\002\022\"\n" + + "7target_https_proxies_set_quic_override_request_resource\030\342\365\343\" \001(\013" + + "2A.google.cloud.compute.v1.TargetHttpsProxiesSetQuicOverrideRequestB\003\340A\002\022\"\n" + "\022target_https_proxy\030\354\260\372\030 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\356\001\n" + "\034SetSchedulingInstanceRequest\022\030\n" @@ -23529,8 +23587,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022I\n" - + "\023scheduling_resource\030\331\254\356\334\001" - + " \001(\0132#.google.cloud.compute.v1.SchedulingB\003\340A\002\022\033\n" + + "\023scheduling_resource\030\331\254\356\334\001 \001(\0132#" + + ".google.cloud.compute.v1.SchedulingB\003\340A\002\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\376\001\n" @@ -23539,13 +23597,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022d\n" - + "\"security_policy_reference_resource\030\360\264\253a \001(\01320." - + "google.cloud.compute.v1.SecurityPolicyReferenceB\003\340A\002B\r\n" + + "\"security_policy_reference_resource\030\360\264\253a \001(\01320.google" + + ".cloud.compute.v1.SecurityPolicyReferenceB\003\340A\002B\r\n" + "\013_request_id\"\243\002\n" + " SetSecurityPolicyInstanceRequest\022\030\n" + "\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022z\n" - + ".instances_set_security_policy_request_resource\030\212\321\272v \001(\0132:.google.c" - + "loud.compute.v1.InstancesSetSecurityPolicyRequestB\003\340A\002\022!\n" + + ".instances_set_security_policy_request_resource\030\212\321\272v" + + " \001(\0132:.google.cloud.c" + + "ompute.v1.InstancesSetSecurityPolicyRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -23558,8 +23617,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022d\n" - + "\"security_policy_reference_resource\030\360\264\253a \001(\01320.google.clo" - + "ud.compute.v1.SecurityPolicyReferenceB\003\340A\002B\r\n" + + "\"security_policy_reference_resource\030\360\264\253a" + + " \001(\01320.google.cloud.compute.v1.SecurityPolicyReferenceB\003\340A\002B\r\n" + "\013_request_id\"\233\002\n" + "&SetSecurityPolicyTargetInstanceRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" @@ -23576,15 +23635,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022d\n" - + "\"security_policy_reference_resource\030\360\264\253a" - + " \001(\01320.google.cloud.compute.v1.SecurityPolicyReferenceB\003\340A\002\022\033\n" + + "\"security_policy_reference_resource\030\360\264\253a \001(\0132" + + "0.google.cloud.compute.v1.SecurityPolicyReferenceB\003\340A\002\022\033\n" + "\013target_pool\030\212\344\370\035 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\244\002\n" + " SetServiceAccountInstanceRequest\022\030\n" + "\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022{\n" + ".instances_set_service_account_request_resource\030\270\236\262\203\001" - + " \001(\0132:.google.clo" - + "ud.compute.v1.InstancesSetServiceAccountRequestB\003\340A\002\022!\n" + + " \001(\0132:.google.cloud.com" + + "pute.v1.InstancesSetServiceAccountRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -23596,8 +23655,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022v\n" - + "+shielded_instance_integrity_policy_resource\030\266\334\215\303\001 \001(\0132" - + "8.google.cloud.compute.v1.ShieldedInstanceIntegrityPolicyB\003\340A\002\022\033\n" + + "+shielded_instance_integrity_policy_resource\030\266\334\215\303\001 \001(\01328.goog" + + "le.cloud.compute.v1.ShieldedInstanceIntegrityPolicyB\003\340A\002\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\345\002\n" @@ -23605,10 +23664,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\236\001\n" - + "Aregion_ta" - + "rget_https_proxies_set_ssl_certificates_request_resource\030\207\204\246\272\001" - + " \001(\0132J.google.clou" - + "d.compute.v1.RegionTargetHttpsProxiesSetSslCertificatesRequestB\003\340A\002\022\032\n\n" + + "Aregion_target_h" + + "ttps_proxies_set_ssl_certificates_request_resource\030\207\204\246\272\001" + + " \001(\0132J.google.cloud.comp" + + "ute.v1.RegionTargetHttpsProxiesSetSslCertificatesRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\"\n" + "\022target_https_proxy\030\354\260\372\030 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\260\002\n" @@ -23616,19 +23675,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\220\001\n" - + ":target_https_proxies_set_ssl_certificates_request_resource\030\334\253\262j" - + " \001(\0132D.google.cloud.compute.v1.Target" - + "HttpsProxiesSetSslCertificatesRequestB\003\340A\002\022\"\n" - + "\022target_https_proxy\030\354\260\372\030 \001(\tB\003\340A\002B\r" - + "\n" + + ":target_https_proxies_set_ssl_certificates_request_resource\030\334\253\262j \001(" + + "\0132D.google.cloud.compute.v1.TargetHttpsProxiesSetSslCertificatesRequestB\003\340A\002\022\"\n" + + "\022target_https_proxy\030\354\260\372\030 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\251\002\n" + "\'SetSslCertificatesTargetSslProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\214\001\n" + "8target_ssl_proxies_set_ssl_certificates_request_resource\030\275\313\305F" - + " \001(\0132B.google." - + "cloud.compute.v1.TargetSslProxiesSetSslCertificatesRequestB\003\340A\002\022!\n" + + " \001(\0132B.google.cloud." + + "compute.v1.TargetSslProxiesSetSslCertificatesRequestB\003\340A\002\022!\n" + "\020target_ssl_proxy\030\315\272\306\241\001 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\363\001\n" + "#SetSslPolicyTargetHttpsProxyRequest\022!\n" @@ -23677,11 +23734,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ")SetTargetPoolsInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\217\001\n" + "9instance_group_managers_set_target_pools_request_resource\030\210\206\210\206\001" - + " \001(\0132C.google.cloud.compute.v1.Insta" - + "nceGroupManagersSetTargetPoolsRequestB\003\340A\002\022!\n" + + " \001" + + "(\0132C.google.cloud.compute.v1.InstanceGroupManagersSetTargetPoolsRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\032\n" - + "\n" + + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" @@ -23692,8 +23748,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\233\001\n" + "@region_instance_group_managers_set_target_pools_request_resource\030\375\312\305%" - + " \001(\0132I.google.clo" - + "ud.compute.v1.RegionInstanceGroupManagersSetTargetPoolsRequestB\003\340A\002\022\032\n\n" + + " \001(\0132I.google.cloud.com" + + "pute.v1.RegionInstanceGroupManagersSetTargetPoolsRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\220\002\n" + "%SetUrlMapRegionTargetHttpProxyRequest\022!\n" @@ -23702,8 +23758,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022!\n" + "\021target_http_proxy\030\345\276\322b \001(\tB\003\340A\002\022U\n" - + "\032url_map_reference_resource\030\225\346\216\276\001 " - + "\001(\0132(.google.cloud.compute.v1.UrlMapReferenceB\003\340A\002B\r\n" + + "\032url_map_reference_resource\030\225\346\216\276\001 \001(\0132(." + + "google.cloud.compute.v1.UrlMapReferenceB\003\340A\002B\r\n" + "\013_request_id\"\222\002\n" + "&SetUrlMapRegionTargetHttpsProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" @@ -23711,40 +23767,40 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\"\n" + "\022target_https_proxy\030\354\260\372\030 \001(\tB\003\340A\002\022U\n" - + "\032url_map_reference_resource\030\225\346\216\276\001 \001(\013" - + "2(.google.cloud.compute.v1.UrlMapReferenceB\003\340A\002B\r\n" + + "\032url_map_reference_resource\030\225\346\216\276\001 \001(\0132(.goo" + + "gle.cloud.compute.v1.UrlMapReferenceB\003\340A\002B\r\n" + "\013_request_id\"\351\001\n" + "\037SetUrlMapTargetHttpProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022!\n" + "\021target_http_proxy\030\345\276\322b \001(\tB\003\340A\002\022U\n" - + "\032url_map_reference_resource\030\225\346\216\276\001 \001(\0132(.g" - + "oogle.cloud.compute.v1.UrlMapReferenceB\003\340A\002B\r\n" + + "\032url_map_reference_resource\030\225\346\216\276\001" + + " \001(\0132(.google.cloud.compute.v1.UrlMapReferenceB\003\340A\002B\r\n" + "\013_request_id\"\353\001\n" + " SetUrlMapTargetHttpsProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\"\n" + "\022target_https_proxy\030\354\260\372\030 \001(\tB\003\340A\002\022U\n" - + "\032url_map_reference_resource\030\225\346\216\276\001 \001(\0132(.goo" - + "gle.cloud.compute.v1.UrlMapReferenceB\003\340A\002B\r\n" + + "\032url_map_reference_resource\030\225\346\216\276\001" + + " \001(\0132(.google.cloud.compute.v1.UrlMapReferenceB\003\340A\002B\r\n" + "\013_request_id\"\320\001\n" + "\"SetUsageExportBucketProjectRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\\\n" - + "\036usage_export_location_resource\030\353\314\324\t \001(" - + "\0132,.google.cloud.compute.v1.UsageExportLocationB\003\340A\002B\r\n" + + "\036usage_export_location_resource\030\353\314\324\t \001(\0132,.go" + + "ogle.cloud.compute.v1.UsageExportLocationB\003\340A\002B\r\n" + "\013_request_id\"\372\002\n\r" + "ShareSettings\022N\n" - + "\013project_map\030\266\326\377? \003(\01326.google.c" - + "loud.compute.v1.ShareSettings.ProjectMapEntry\022\033\n\n" + + "\013project_map\030\266\326\377? \003(\01326.google.cloud.c" + + "ompute.v1.ShareSettings.ProjectMapEntry\022\033\n\n" + "share_type\030\232\227\270\253\001 \001(\tH\000\210\001\001\032f\n" + "\017ProjectMapEntry\022\013\n" + "\003key\030\001 \001(\t\022B\n" - + "\005value\030\002 \001(" - + "\01323.google.cloud.compute.v1.ShareSettingsProjectConfig:\0028\001\"\204\001\n" + + "\005value\030\002 \001(\01323.go" + + "ogle.cloud.compute.v1.ShareSettingsProjectConfig:\0028\001\"\204\001\n" + "\tShareType\022\030\n" + "\024UNDEFINED_SHARE_TYPE\020\000\022\014\n" + "\005LOCAL\020\313\316\317\"\022\024\n" @@ -23756,16 +23812,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "project_id\030\201\310\322T \001(\tH\000\210\001\001B\r\n" + "\013_project_id\"\316\001\n" + "\026ShieldedInstanceConfig\022,\n" - + "\033enable_integrity_monitoring\030\266\333\207\303\001" - + " \001(\010H\000\210\001\001\022\"\n" + + "\033enable_integri", + "ty_monitoring\030\266\333\207\303\001 \001(\010H\000\210\001\001\022\"\n" + "\022enable_secure_boot\030\376\203\366: \001(\010H\001\210\001\001\022\033\n" + "\013enable_vtpm\030\367\344\333V \001(\010H\002\210\001\001B\036\n" + "\034_enable_integrity_monitoringB\025\n" + "\023_enable_secure_bootB\016\n" + "\014_enable_vtpm\"\213\002\n" + "\030ShieldedInstanceIdentity\022W\n" - + "\016encryption_key\030\243\307\351\350\001 \001(\01326.google.clo" - + "ud.compute.v1.ShieldedInstanceIdentityEntryH\000\210\001\001\022\024\n" + + "\016encryption_key\030\243\307\351\350\001 \001(\01326.google.cloud.com" + + "pute.v1.ShieldedInstanceIdentityEntryH\000\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022T\n" + "\013signing_key\030\245\220\205\231\001" + " \001(\01326.google.cloud.compute.v1.ShieldedInstanceIdentityEntryH\002\210\001\001B\021\n" @@ -23774,7 +23830,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_signing_key\"i\n" + "\035ShieldedInstanceIdentityEntry\022\030\n" + "\007ek_cert\030\235\334\324\326\001 \001(\tH\000\210\001\001\022\027\n" - + "\006ek_pub\030\344\327\250\223\001 \001(\tH\001\210\001\001B\n\n" + + "\006ek_pub\030\344\327\250\223\001 \001(\tH\001\210\001\001B\n" + + "\n" + "\010_ek_certB\t\n" + "\007_ek_pub\"h\n" + "\037ShieldedInstanceIntegrityPolicy\022(\n" @@ -23799,10 +23856,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(SimulateMaintenanceEventNodeGroupRequest\022\033\n\n" + "node_group\030\202\374\213\340\001 \001(\tB\003\340A\002\022\214\001\n" + "7node_groups_simulate_maintenance_event_request_resource\030\334\371\313\247\001" - + " \001(\0132B.google." - + "cloud.compute.v1.NodeGroupsSimulateMaintenanceEventRequestB\003\340A\002\022!\n" - + "\007project\030\231\226\301l ", - "\001(\tB\r" + + " \001(\0132B.google.cloud." + + "compute.v1.NodeGroupsSimulateMaintenanceEventRequestB\003\340A\002\022!\n" + + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" @@ -23825,8 +23881,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\013\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\014\210\001\001\022A\n" - + "\006labels\030\377\277\301\356\001 \003(" - + "\0132-.google.cloud.compute.v1.Snapshot.LabelsEntry\022\030\n\r" + + "\006labels\030\377\277\301\356\001 \003(\0132-.go" + + "ogle.cloud.compute.v1.Snapshot.LabelsEntry\022\030\n\r" + "license_codes\030\250\205\330\025 \003(\003\022\024\n" + "\010licenses\030\322\210\200\241\001 \003(\t\022\036\n\r" + "location_hint\030\321\201\222\247\001 \001(\tH\r" @@ -23835,12 +23891,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "satisfies_pzi\030\241\335\253\345\001 \001(\010H\017\210\001\001\022\036\n\r" + "satisfies_pzs\030\253\335\253\345\001 \001(\010H\020\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\021\210\001\001\022W\n" - + "\027snapshot_encryption_key\030\376\366\324\024 \001(\0132." - + ".google.cloud.compute.v1.CustomerEncryptionKeyH\022\210\001\001\022\035\n\r" + + "\027snapshot_encryption_key\030\376\366\324\024 \001(\0132..googl" + + "e.cloud.compute.v1.CustomerEncryptionKeyH\022\210\001\001\022\035\n\r" + "snapshot_type\030\325\331\245; \001(\tH\023\210\001\001\022\034\n" + "\013source_disk\030\301\356\264\327\001 \001(\tH\024\210\001\001\022[\n" - + "\032source_disk_encryption_key\030\341\240\270\375\001 \001(\0132..googl" - + "e.cloud.compute.v1.CustomerEncryptionKeyH\025\210\001\001\0224\n" + + "\032source_disk_encryption_key\030\341\240\270\375\001 \001(\0132..google.clou" + + "d.compute.v1.CustomerEncryptionKeyH\025\210\001\001\0224\n" + "#source_disk_for_recovery_checkpoint\030\376\341\312\253\001 \001(" + "\tH\026\210\001\001\022\037\n" + "\016source_disk_id\030\331\315\311\330\001 \001(\tH\027\210\001\001\022\'\n" @@ -23924,17 +23980,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\214\001\n" + "\020SnapshotSettings\022c\n" - + "\020storage_location\030\371\321\340\333\001 \001(\0132@.goog" - + "le.cloud.compute.v1.SnapshotSettingsStorageLocationSettingsH\000\210\001\001B\023\n" + + "\020storage_location\030\371\321\340\333\001 \001(\0132@.google.clo" + + "ud.compute.v1.SnapshotSettingsStorageLocationSettingsH\000\210\001\001B\023\n" + "\021_storage_location\"\336\003\n" + "\'SnapshotSettingsStorageLocationSettings\022f\n" - + "\tlocations\030\336\256\221\305\001 \003(\0132O.googl" - + "e.cloud.compute.v1.SnapshotSettingsStorageLocationSettings.LocationsEntry\022\026\n" + + "\tlocations\030\336\256\221\305\001 \003(\0132O.google.clou" + + "d.compute.v1.SnapshotSettingsStorageLocationSettings.LocationsEntry\022\026\n" + "\006policy\030\262\312\266+ \001(\tH\000\210\001\001\032\213\001\n" + "\016LocationsEntry\022\013\n" + "\003key\030\001 \001(\t\022h\n" - + "\005value\030\002 \001(\0132Y.google.cloud.compute.v1.SnapshotSettingsStorageLocati" - + "onSettingsStorageLocationPreference:\0028\001\"\231\001\n" + + "\005value\030\002 \001(\0132Y.google.cloud.comput" + + "e.v1.SnapshotSettingsStorageLocationSettingsStorageLocationPreference:\0028\001\"\231\001\n" + "\006Policy\022\024\n" + "\020UNDEFINED_POLICY\020\000\022\024\n" + "\014LOCAL_REGION\020\350\354\265\300\001\022\033\n" @@ -23946,8 +24002,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\213\365\315\001 \001(\tH\000\210\001\001B\007\n" + "\005_name\"\265\001\n" + "\027SourceDiskEncryptionKey\022T\n" - + "\023disk_encryption_key\030\205\355\304\201\001" - + " \001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\000\210\001\001\022\034\n" + + "\023disk_encryption_key\030\205\355\304\201\001 \001(\013" + + "2..google.cloud.compute.v1.CustomerEncryptionKeyH\000\210\001\001\022\034\n" + "\013source_disk\030\301\356\264\327\001 \001(\tH\001\210\001\001B\026\n" + "\024_disk_encryption_keyB\016\n" + "\014_source_disk\"a\n" @@ -23963,18 +24019,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022guest_accelerators\030\357\314\207\335\001" + " \003(\0132*.google.cloud.compute.v1.AcceleratorConfig\022*\n" + "\032key_revocation_action_type\030\342\334\300p \001(\tH\003\210\001\001\022Q\n" - + "\006labels\030\377\277\301\356\001 \003(\013" - + "2=.google.cloud.compute.v1.SourceInstanceProperties.LabelsEntry\022\034\n" + + "\006labels\030\377\277\301\356\001 \003(\0132=.goo" + + "gle.cloud.compute.v1.SourceInstanceProperties.LabelsEntry\022\034\n" + "\014machine_type\030\262\260\312l \001(\tH\004\210\001\001\022;\n" + "\010metadata\030\257\366\265)" + " \001(\0132!.google.cloud.compute.v1.MetadataH\005\210\001\001\022 \n" + "\020min_cpu_platform\030\367\233\352s \001(\tH\006\210\001\001\022H\n" + "\022network_interfaces\030\213\332\222\031" + " \003(\0132).google.cloud.compute.v1.NetworkInterface\022@\n\n" - + "scheduling\030\224\313\261\270\001" - + " \001(\0132#.google.cloud.compute.v1.SchedulingH\007\210\001\001\022E\n" - + "\020service_accounts\030\260\304\253\204\001 \003(\0132\'" - + ".google.cloud.compute.v1.ServiceAccount\0223\n" + + "scheduling\030\224\313\261\270\001 \001(\013" + + "2#.google.cloud.compute.v1.SchedulingH\007\210\001\001\022E\n" + + "\020service_accounts\030\260\304\253\204\001" + + " \003(\0132\'.google.cloud.compute.v1.ServiceAccount\0223\n" + "\004tags\030\231\350\330\001" + " \001(\0132\035.google.cloud.compute.v1.TagsH\010\210\001\001\032-\n" + "\013LabelsEntry\022\013\n" @@ -24001,15 +24057,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013expire_time\030\355\323\221\322\001 \001(\tH\003\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\004\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022V\n" - + "\007managed\030\237\237\244\216\001 \001(\0132<.google.cloud.compute.v1" - + ".SslCertificateManagedSslCertificateH\006\210\001\001\022\024\n" + + "\007managed\030\237\237\244\216\001" + + " \001(\0132<.google.cloud.compute.v1.SslCertificateManagedSslCertificateH\006\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022\034\n" + "\013private_key\030\243\363\245\254\001 \001(\tH\010\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\t\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\n" + "\210\001\001\022_\n" - + "\014self_managed\030\254\363\201\235\001 \001(\0132@.google.cloud.compute.v1.Ss" - + "lCertificateSelfManagedSslCertificateH\013\210\001\001\022%\n" + + "\014self_managed\030\254\363\201\235\001" + + " \001(\0132@.google.cloud.compute.v1.SslCertificateSelfManagedSslCertificateH\013\210\001\001\022%\n" + "\031subject_alternative_names\030\343\357\223\374\001 \003(\t\022\024\n" + "\004type\030\272\236\332\001 \001(\tH\014\210\001\001\"[\n" + "\004Type\022\022\n" @@ -24032,8 +24088,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_type\"\313\003\n" + "\034SslCertificateAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022R\n" - + "\005items\030\300\317\367/ \003(\013" - + "2@.google.cloud.compute.v1.SslCertificateAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132@.goo" + + "gle.cloud.compute.v1.SslCertificateAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -24042,8 +24098,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032`\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022A\n" - + "\005value\030\002 \001(\01322.go" - + "ogle.cloud.compute.v1.SslCertificatesScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01322.google.c" + + "loud.compute.v1.SslCertificatesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -24064,8 +24120,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\320\003\n" + "#SslCertificateManagedSslCertificate\022i\n\r" - + "domain_status\030\315\247\347\253\001 \003(\0132N.google.cloud.compute.v1.SslCertif" - + "icateManagedSslCertificate.DomainStatusEntry\022\022\n" + + "domain_status\030\315\247\347\253\001 \003(\0132N" + + ".google.cloud.compute.v1.SslCertificateM" + + "anagedSslCertificate.DomainStatusEntry\022\022\n" + "\007domains\030\257\210\233l \003(\t\022\026\n" + "\006status\030\362\237\267V \001(\tH\000\210\001\001\0323\n" + "\021DomainStatusEntry\022\013\n" @@ -24086,16 +24143,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_certificateB\016\n" + "\014_private_key\"\251\001\n" + "\031SslCertificatesScopedList\022E\n" - + "\020ssl_certificates\030\217\242\303\256\001 \003(\013" - + "2\'.google.cloud.compute.v1.SslCertificate\0229\n" + + "\020ssl_certificates\030\217\242\303\256\001" + + " \003(\0132\'.google.cloud.compute.v1.SslCertificate\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\340\003\n" + "\031SslPoliciesAggregatedList\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022O\n" - + "\005items\030\300\317\367/ \003(\013" - + "2=.google.cloud.compute.v1.SslPoliciesAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132=.goo" + + "gle.cloud.compute.v1.SslPoliciesAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" @@ -24104,8 +24161,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\005\210\001\001\032\\\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022=\n" - + "\005value\030\002 \001(\0132..googl" - + "e.cloud.compute.v1.SslPoliciesScopedList:\0028\001B\007\n" + + "\005value\030\002 \001(\0132..google.clou" + + "d.compute.v1.SslPoliciesScopedList:\0028\001B\007\n" + "\005_etagB\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" @@ -24175,8 +24232,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " StartAsyncReplicationDiskRequest\022\024\n" + "\004disk\030\235\233\274\001 \001(\tB\003\340A\002\022{\n" + ".disks_start_async_replication_request_resource\030\332\236\300\340\001" - + " \001(\0132:.google" - + ".cloud.compute.v1.DisksStartAsyncReplicationRequestB\003\340A\002\022!\n" + + " \001(\0132:.google.cloud" + + ".compute.v1.DisksStartAsyncReplicationRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -24189,7 +24246,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\210\001\n" + "5region_disks_start_async_replication_request_resource\030\205\310\226\342\001" - + " \001(\0132@.google.cloud.compute.v1.RegionDisksStartAsyncReplicationRequestB\003\340A\002\022\032\n\n" + + " \001(\0132@" + + ".google.cloud.compute.v1.RegionDisksStartAsyncReplicationRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\233\001\n" + "\024StartInstanceRequest\022\030\n" @@ -24203,31 +24261,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ")StartInstancesInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\215\001\n" + "8instance_group_managers_start_instances_request_resource\030\253\245\277|" - + " \001(\0132C.googl" - + "e.cloud.compute.v1.InstanceGroupManagersStartInstancesRequestB\003\340A\002\022!\n" + + " \001(\0132C.google.clou" + + "d.compute.v1.InstanceGroupManagersStartInstancesRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" - + "\340A\002\362G\004zoneB\r" - + "\n" + + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\346\002\n" + "/StartInstancesRegionInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\233\001\n" - + "?region_instance_group_" - + "managers_start_instances_request_resource\030\226\233\377\354\001" - + " \001(\0132I.google.cloud.compute.v1.Re" - + "gionInstanceGroupManagersStartInstancesRequestB\003\340A\002\022\032\n\n" + + "?region_instance_group_manage" + + "rs_start_instances_request_resource\030\226\233\377\354\001" + + " \001(\0132I.google.cloud.compute.v1.RegionIn" + + "stanceGroupManagersStartInstancesRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\265\002\n" + "%StartWithEncryptionKeyInstanceRequest\022\030\n" + "\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022\206\001\n" + "4instances_start_with_encryption_key_request_resource\030\377\376\317\322\001" - + " \001(\0132?.google.c" - + "loud.compute.v1.InstancesStartWithEncryptionKeyRequestB\003\340A\002\022!\n" + + " \001(\0132?.google.cloud.c" + + "ompute.v1.InstancesStartWithEncryptionKeyRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -24239,24 +24296,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\01325.google.cloud.compute.v1.StatefulPolicyPreservedStateH\000\210\001\001B\022\n" + "\020_preserved_state\"\216\005\n" + "\034StatefulPolicyPreservedState\022R\n" - + "\005disks\030\366\314\312- \003(\0132@.google.cloud.c" - + "ompute.v1.StatefulPolicyPreservedState.DisksEntry\022a\n\r" - + "external_i_ps\030\215\323\200\376\001 \003(\0132F.g" - + "oogle.cloud.compute.v1.StatefulPolicyPreservedState.ExternalIPsEntry\022`\n\r" - + "internal_i_ps\030\333\233\357f \003(\0132F.google.cloud.compute.v1" - + ".StatefulPolicyPreservedState.InternalIPsEntry\032m\n\n" + + "\005disks\030\366\314\312- \003(\0132@.google.cloud.compute" + + ".v1.StatefulPolicyPreservedState.DisksEntry\022a\n\r" + + "external_i_ps\030\215\323\200\376\001 \003(\0132F.google." + + "cloud.compute.v1.StatefulPolicyPreservedState.ExternalIPsEntry\022`\n\r" + + "internal_i_ps\030\333\233\357f \003(\0132F.google.cloud.compute.v1.State" + + "fulPolicyPreservedState.InternalIPsEntry\032m\n\n" + "DisksEntry\022\013\n" + "\003key\030\001 \001(\t\022N\n" - + "\005value\030\002" - + " \001(\0132?.google.cloud.compute.v1.StatefulPolicyPreservedStateDiskDevice:\0028\001\032r\n" + + "\005value\030\002 \001" + + "(\0132?.google.cloud.compute.v1.StatefulPolicyPreservedStateDiskDevice:\0028\001\032r\n" + "\020ExternalIPsEntry\022\013\n" + "\003key\030\001 \001(\t\022M\n" - + "\005value\030\002" - + " \001(\0132>.google.cloud.compute.v1.StatefulPolicyPreservedStateNetworkIp:\0028\001\032r\n" + + "\005value\030\002 \001(\0132" + + ">.google.cloud.compute.v1.StatefulPolicyPreservedStateNetworkIp:\0028\001\032r\n" + "\020InternalIPsEntry\022\013\n" + "\003key\030\001 \001(\t\022M\n" - + "\005value\030\002 \001(" - + "\0132>.google.cloud.compute.v1.StatefulPolicyPreservedStateNetworkIp:\0028\001\"\264\001\n" + + "\005value\030\002 \001(\0132>.go" + + "ogle.cloud.compute.v1.StatefulPolicyPreservedStateNetworkIp:\0028\001\"\264\001\n" + "&StatefulPolicyPreservedStateDiskDevice\022\034\n" + "\013auto_delete\030\273\344\316\335\001 \001(\tH\000\210\001\001\"\\\n\n" + "AutoDelete\022\031\n" @@ -24294,7 +24351,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\232\002\n" + "$StopGroupAsyncReplicationDiskRequest\022\206\001\n" + "4disks_stop_group_async_replication_resource_resource\030\225\370\257\245\001" - + " \001(\0132?.google.cloud.compute.v1.DisksStopGroupAsyncReplicationResourceB\003\340A\002\022!\n" + + " \001(\0132?" + + ".google.cloud.compute.v1.DisksStopGroupAsyncReplicationResourceB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -24303,8 +24361,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\244\002\n" + "*StopGroupAsyncReplicationRegionDiskRequest\022\206\001\n" + "4disks_stop_group_async_replication_resource_resource\030\225\370\257\245\001" - + " \001(\0132?.google.cloud.compute.v" - + "1.DisksStopGroupAsyncReplicationResourceB\003\340A\002\022!\n" + + " \001(\0132?.google.cloud.compute.v1.Disk" + + "sStopGroupAsyncReplicationResourceB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -24314,8 +24372,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021discard_local_ssd\030\317\351\255\230\001 \001(\010H\000\210\001\001\022\030\n" + "\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\032\n" - + "\n" + + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\024\n" @@ -24324,8 +24381,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(StopInstancesInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\213\001\n" + "7instance_group_managers_stop_instances_request_resource\030\215\245\364\021" - + " \001(\0132B.google.cloud.compute.v1.Instance" - + "GroupManagersStopInstancesRequestB\003\340A\002\022!\n" + + " \001(\0132" + + "B.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -24337,10 +24394,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\231\001\n" - + ">region_inst" - + "ance_group_managers_stop_instances_request_resource\030\302\234\362\200\001" - + " \001(\0132H.google.cloud.com" - + "pute.v1.RegionInstanceGroupManagersStopInstancesRequestB\003\340A\002\022\032\n\n" + + ">region_instance_g" + + "roup_managers_stop_instances_request_resource\030\302\234\362\200\001" + + " \001(\0132H.google.cloud.compute.v" + + "1.RegionInstanceGroupManagersStopInstancesRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\205\013\n" + "\013StoragePool\022*\n" @@ -24350,8 +24407,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\005\210\001\001\022D\n" - + "\006labels\030\377\277\301\356\001" - + " \003(\01320.google.cloud.compute.v1.StoragePool.LabelsEntry\022\024\n" + + "\006labels\030\377\277\301\356\001 \003(\01320" + + ".google.cloud.compute.v1.StoragePool.LabelsEntry\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\006\210\001\001\022.\n" + "\035performance_provisioning_type\030\375\235\266\337\001 \001(" + "\tH\007\210\001\001\022-\n" @@ -24360,14 +24417,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025pool_provisioned_iops\030\227\311\2715 \001(\003H\t\210\001\001\022+\n" + "\033pool_provisioned_throughput\030\230\215\330P \001(\003H\n" + "\210\001\001\022S\n" - + "\017resource_status\030\303\372\367v " - + "\001(\01322.google.cloud.compute.v1.StoragePoolResourceStatusH\013\210\001\001\022\032\n" - + "\tself_link\030\215\222\305\331\001 \001(\tH\014\210\001\001\022!\n" + + "\017resource_status\030\303\372\367v \001(\01322." + + "google.cloud.compute.v1.StoragePoolResourceStatusH\013\210\001\001\022\032\n" + + "\tself_link\030\215\222\305\331\001 \001(\tH\014\210", + "\001\001\022!\n" + "\021self_link_with_id\030\202\254\235\025 \001(\tH\r" + "\210\001\001\022\025\n" + "\005state\030\221\211\2534 \001(\tH\016\210\001\001\022J\n" - + "\006status\030\362\237\267V" - + " \001(\01322.google.cloud.compute.v1.StoragePoolResourceStatusH\017\210\001\001\022\"\n" + + "\006status\030\362\237\267V \001(\0132" + + "2.google.cloud.compute.v1.StoragePoolResourceStatusH\017\210\001\001\022\"\n" + "\021storage_pool_type\030\271\201\260\210\001 \001(\tH\020\210\001\001\022\024\n" + "\004zone\030\254\307\344\001 \001(\tH\021\210\001\001\032-\n" + "\013LabelsEntry\022\013\n" @@ -24404,19 +24462,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031StoragePoolAggregatedList\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022O\n" - + "\005items\030\300\317\367/" - + " \003(\0132=.google.cloud.compute.v1.StoragePoolAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(" + + "\0132=.google.cloud.compute.v1.StoragePoolAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" + "\014unreachables\030\237\240\206t \003(\t\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" - + " .google.cloud.compute.v1.WarningH\005\210\001\001\032]\n" - + "\n" + + " .google.cloud.compute.v1.WarningH\005\210\001\001\032]\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022>\n" - + "\005value\030\002 \001(\0132/.google.cloud.compute.v1.StoragePoolsSc", - "opedList:\0028\001B\007\n" + + "\005value\030\002 \001(\0132/.goog" + + "le.cloud.compute.v1.StoragePoolsScopedList:\0028\001B\007\n" + "\005_etagB\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" @@ -24514,8 +24571,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"_total_provisioned_disk_throughput\"\347\007\n" + "\017StoragePoolType\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022G\n\n" - + "deprecated\030\263\313\321\365\001 " - + "\001(\0132*.google.cloud.compute.v1.DeprecationStatusH\001\210\001\001\022\034\n" + + "deprecated\030\263\313\321\365\001 \001(\0132*." + + "google.cloud.compute.v1.DeprecationStatusH\001\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\0220\n" @@ -24552,8 +24609,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\265\003\n" + "\035StoragePoolTypeAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022S\n" - + "\005items\030\300\317\367/ \003(\0132A.go" - + "ogle.cloud.compute.v1.StoragePoolTypeAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132A.google.c" + + "loud.compute.v1.StoragePoolTypeAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -24561,8 +24618,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032a\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022B\n" - + "\005value\030\002" - + " \001(\01323.google.cloud.compute.v1.StoragePoolTypesScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\013" + + "23.google.cloud.compute.v1.StoragePoolTypesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -24592,8 +24649,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "storage_pools\030\223\222\300\320\001" + " \003(\0132$.google.cloud.compute.v1.StoragePool\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" - + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n" - + "\n" + + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\256\023\n\n" + "Subnetwork\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n" @@ -24603,7 +24659,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013fingerprint\030\344\321\363o \001(\tH\004\210\001\001\022 \n" + "\017gateway_address\030\371\211\244\333\001 \001(\tH\005\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\006\210\001\001\022%\n" - + "\024internal_ipv6_prefix\030\350\242\264\361\001 \001(\tH\007\210\001\001\022\035\n\r" + + "\024internal_ipv6_prefix\030\350\242\264\361\001 \001(\tH\007\210\001\001\022\035\n" + + "\r" + "ip_cidr_range\030\312\315\344. \001(\tH\010\210\001\001\022\035\n\r" + "ip_collection\030\266\221\250T \001(\tH\t\210\001\001\022!\n" + "\020ipv6_access_type\030\335\365\321\360\001 \001(\tH\n" @@ -24700,8 +24757,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_state\"\277\003\n" + "\030SubnetworkAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022N\n" - + "\005items\030\300\317\367/ \003(\0132<.g" - + "oogle.cloud.compute.v1.SubnetworkAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132<.google." + + "cloud.compute.v1.SubnetworkAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -24710,8 +24767,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032\\\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022=\n" - + "\005value\030\002 \001(\0132..google.clo" - + "ud.compute.v1.SubnetworksScopedList:\0028\001B\005\n" + + "\005value\030\002" + + " \001(\0132..google.cloud.compute.v1.SubnetworksScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -24756,8 +24813,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016_flow_samplingB\013\n" + "\t_metadata\"\265\001\n" + "\020SubnetworkParams\022e\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132B.google.cloud.com" - + "pute.v1.SubnetworkParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132B.google.cloud.compute.v" + + "1.SubnetworkParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\275\001\n" @@ -24806,8 +24863,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "+SuspendInstancesInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\221\001\n" + ":instance_group_managers_suspend_instances_request_resource\030\321\215\241\026" - + " \001(\0132E." - + "google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequestB\003\340A\002\022!\n" + + " \001(\0132E.google" + + ".cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -24820,14 +24877,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\236\001\n" + "Aregion_instance_group_managers_suspend_instances_request_resource\030\374\345\224f" - + " \001(\0132K.google.cloud.com" - + "pute.v1.RegionInstanceGroupManagersSuspendInstancesRequestB\003\340A\002\022\032\n\n" + + " \001(\0132K.google.cloud.compute.v" + + "1.RegionInstanceGroupManagersSuspendInstancesRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\211\001\n" + " SwitchToCustomModeNetworkRequest\022\027\n" + "\007network\030\256\264\205o \001(\tB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\032\n\n" + + "\340A\002\362G\007project\022\032\n" + + "\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\330\003\n" + "\016TCPHealthCheck\022\024\n" @@ -24896,7 +24954,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023target_http_proxies\030\303\325\250M" + " \003(\0132(.google.cloud.compute.v1.TargetHttpProxy\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" - + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n" + + "\n" + "\010_warning\"\353\003\n" + "\017TargetHttpProxy\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n" @@ -24925,24 +24984,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_url_map\"\210\003\n" + "\035TargetHttpProxyAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022S\n" - + "\005items\030\300\317\367/ \003(\0132A.google.cloud.comp" - + "ute.v1.TargetHttpProxyAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132A.google.cloud.compute.v1" + + ".TargetHttpProxyAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" + "\014unreachables\030\237\240\206t \003(\t\032b\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022C\n" - + "\005value\030\002 \001(\01324." - + "google.cloud.compute.v1.TargetHttpProxiesScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01324.google" + + ".cloud.compute.v1.TargetHttpProxiesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" + "_self_link\"\257\002\n" + "\023TargetHttpProxyList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022:\n" - + "\005items\030\300\317\367/" - + " \003(\0132(.google.cloud.compute.v1.TargetHttpProxy\022\024\n" + + "\005items\030\300\317\367/ \003(\0132" + + "(.google.cloud.compute.v1.TargetHttpProxy\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -24954,8 +25013,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\262\001\n" + "\034TargetHttpsProxiesScopedList\022K\n" - + "\024target_https_proxies\030\212\374\347\256\001 \003(\0132)" - + ".google.cloud.compute.v1.TargetHttpsProxy\0229\n" + + "\024target_https_proxies\030\212\374\347\256\001" + + " \003(\0132).google.cloud.compute.v1.TargetHttpsProxy\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"a\n" @@ -24983,8 +25042,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\002id\030\233\032 \001(\004H\006\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\007\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\010\210\001\001\022\033\n\n" - + "proxy_bind\030\356\316\261\210\001 \001(\010H\t\210\001\001\022\036\n" - + "\r" + + "proxy_bind\030\356\316\261\210\001 \001(\010H\t\210\001\001\022\036\n\r" + "quic_override\030\255\241\333\331\001 \001(\tH\n" + "\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\013\210\001\001\022\032\n" @@ -25025,18 +25083,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_url_map\"\322\003\n" + "\036TargetHttpsProxyAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022T\n" - + "\005items\030\300\317\367/ \003(\013" - + "2B.google.cloud.compute.v1.TargetHttpsProxyAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132B.goo" + + "gle.cloud.compute.v1.TargetHttpsProxyAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" + "\014unreachables\030\237\240\206t \003(\t\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\004\210\001\001\032c\n\n" - + "ItemsEntry\022\013\n" + + "ItemsEn", + "try\022\013\n" + "\003key\030\001 \001(\t\022D\n" - + "\005value\030\002 \001(\01325." - + "google.cloud.compute.v1.TargetHttpsProxiesScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01325.google" + + ".cloud.compute.v1.TargetHttpsProxiesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -25085,18 +25144,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\313\003\n" + "\034TargetInstanceAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022R\n" - + "\005items\030\300\317\367/" - + " \003(\0132@.google.cloud.compute.v1.TargetInstanceAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\013" + + "2@.google.cloud.compute.v1.TargetInstanceAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" + "\014unreachables\030\237\240\206t \003(\t\0229\n" - + "\007warning\030\234\337\226\030 \001(\013", - "2 .google.cloud.compute.v1.WarningH\004\210\001\001\032`\n\n" + + "\007warning\030\234\337\226\030 \001(\0132" + + " .google.cloud.compute.v1.WarningH\004\210\001\001\032`\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022A\n" - + "\005value\030\002 \001(" - + "\01322.google.cloud.compute.v1.TargetInstancesScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01322.go" + + "ogle.cloud.compute.v1.TargetInstancesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -25113,13 +25172,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" - + "\020_next_page_tokenB\014\n" - + "\n" + + "\020_next_page_tokenB\014\n\n" + "_self_linkB\n\n" + "\010_warning\"\251\001\n" + "\031TargetInstancesScopedList\022E\n" - + "\020target_instances\030\320\322\255\273\001 " - + "\003(\0132\'.google.cloud.compute.v1.TargetInstance\0229\n" + + "\020target_instances\030\320\322\255\273\001 \003(\0132\'." + + "google.cloud.compute.v1.TargetInstance\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\245\006\n\n" @@ -25163,8 +25221,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021_session_affinity\"\277\003\n" + "\030TargetPoolAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022N\n" - + "\005items\030\300\317\367/ \003(\0132<.google.cl" - + "oud.compute.v1.TargetPoolAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132<.google.cloud.co" + + "mpute.v1.TargetPoolAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -25230,8 +25288,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013ProxyHeader\022\032\n" + "\026UNDEFINED_PROXY_HEADER\020\000\022\013\n" + "\004NONE\020\270\316\222\001\022\020\n" - + "\010PROXY_V1\020\254\244\267\237\001B\017\n" - + "\r" + + "\010PROXY_V1\020\254\244\267\237\001B\017\n\r" + "_proxy_header\"I\n" + ")TargetSslProxiesSetSslCertificatesRequest\022\034\n" + "\020ssl_certificates\030\217\242\303\256\001 \003(\t\"\230\004\n" @@ -25263,8 +25320,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_ssl_policy\"\255\002\n" + "\022TargetSslProxyList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\0229\n" - + "\005items\030\300\317\367/" - + " \003(\0132\'.google.cloud.compute.v1.TargetSslProxy\022\024\n" + + "\005items\030\300\317\367/ \003(" + + "\0132\'.google.cloud.compute.v1.TargetSslProxy\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -25318,8 +25375,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_service\"\314\003\n" + "\034TargetTcpProxyAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022R\n" - + "\005items\030\300\317\367/ \003(\0132@.google" - + ".cloud.compute.v1.TargetTcpProxyAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132@.google.cloud" + + ".compute.v1.TargetTcpProxyAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -25328,8 +25385,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032a\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022B\n" - + "\005value\030\002 \001(\01323.google.clou" - + "d.compute.v1.TargetTcpProxiesScopedList:\0028\001B\005\n" + + "\005value\030\002" + + " \001(\01323.google.cloud.compute.v1.TargetTcpProxiesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -25337,8 +25394,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_warning\"\255\002\n" + "\022TargetTcpProxyList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\0229\n" - + "\005items\030\300\317\367/" - + " \003(\0132\'.google.cloud.compute.v1.TargetTcpProxy\022\024\n" + + "\005items\030\300\317\367/ \003(\0132\'" + + ".google.cloud.compute.v1.TargetTcpProxy\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -25385,8 +25442,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_status\"\321\003\n" + "\036TargetVpnGatewayAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022T\n" - + "\005items\030\300\317\367/" - + " \003(\0132B.google.cloud.compute.v1.TargetVpnGatewayAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ " + + "\003(\0132B.google.cloud.compute.v1.TargetVpnGatewayAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -25395,8 +25452,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032b\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022C\n" - + "\005value\030\002" - + " \001(\01324.google.cloud.compute.v1.TargetVpnGatewaysScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\013" + + "24.google.cloud.compute.v1.TargetVpnGatewaysScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -25431,8 +25488,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037expected_redirect_response_code\030\357\352\200\t \001(\005H\004\210\001\001\022" + " \n" + "\020expected_service\030\256\370\361? \001(\tH\005\210\001\001\022=\n" - + "\007headers\030\206\337\235{" - + " \003(\0132).google.cloud.compute.v1.UrlMapTestHeader\022\024\n" + + "\007headers\030\206\337\235{ \003(\013" + + "2).google.cloud.compute.v1.UrlMapTestHeader\022\024\n" + "\004host\030\250\353\303\001 \001(\tH\006\210\001\001\022\024\n" + "\004path\030\245\310\321\001 \001(\tH\007\210\001\001B\024\n" + "\022_actual_output_urlB \n" @@ -25446,18 +25503,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "&TestIamPermissionsBackendBucketRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\301\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001" + + "(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\301\001\n" + "\'TestIamPermissionsBackendServiceRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\315\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/" + + ".google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\315\001\n" + "\035TestIamPermissionsDiskRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google." - + "cloud.compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cloud." + + "compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"\305\001\n" + "+TestIamPermissionsExternalVpnGatewayRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" @@ -25466,8 +25523,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\250\001\n" + "\'TestIamPermissionsFirewallPolicyRequest\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cloud.c" - + "ompute.v1.TestPermissionsRequestB\003\340A\002\"\270\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\270\001\n" + "\036TestIamPermissionsImageRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" @@ -25476,8 +25533,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "!TestIamPermissionsInstanceRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\013" - + "2/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.goo" + + "gle.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"\303\001\n" + ")TestIamPermissionsInstanceTemplateRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" @@ -25493,87 +25550,87 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "4TestIamPermissionsInterconnectAttachmentGroupRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\304\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001" + + "(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\304\001\n" + "*TestIamPermissionsInterconnectGroupRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\276\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(" + + "\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\276\001\n" + "$TestIamPermissionsLicenseCodeRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\013" - + "2/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\272\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.goo" + + "gle.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\272\001\n" + " TestIamPermissionsLicenseRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.c" - + "loud.compute.v1.TestPermissionsRequestB\003\340A\002\"\277\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cloud.c" + + "ompute.v1.TestPermissionsRequestB\003\340A\002\"\277\001\n" + "%TestIamPermissionsMachineImageRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cloud.c" - + "ompute.v1.TestPermissionsRequestB\003\340A\002\"\334\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\334\001\n" + "*TestIamPermissionsNetworkAttachmentRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\335\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\013" + + "2/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\335\001\n" + "-TestIamPermissionsNetworkEndpointGroupRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001" + + "(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"\310\001\n" + ".TestIamPermissionsNetworkFirewallPolicyRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.goog" - + "le.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\322\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.clo" + + "ud.compute.v1.TestPermissionsRequestB\003\340A\002\"\322\001\n" + "\"TestIamPermissionsNodeGroupRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cloud." - + "compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"\327\001\n" + "%TestIamPermissionsNodeTemplateRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cloud." - + "compute.v1.TestPermissionsRequestB\003\340A\002\"\332\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\332\001\n" + "(TestIamPermissionsPacketMirroringRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\337\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132" + + "/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\337\001\n" + "-TestIamPermissionsRegionBackendServiceRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google" - + ".cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\325\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cloud" + + ".compute.v1.TestPermissionsRequestB\003\340A\002\"\325\001\n" + "#TestIamPermissionsRegionDiskRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\340\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(" + + "\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\340\001\n" + ".TestIamPermissionsRegionInstantSnapshotRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.goo" - + "gle.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\346\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cl" + + "oud.compute.v1.TestPermissionsRequestB\003\340A\002\"\346\001\n" + "4TestIamPermissionsRegionNetworkFirewallPolicyRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.clo" - + "ud.compute.v1.TestPermissionsRequestB\003\340A\002\"\324\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\324\001\n" + "$TestIamPermissionsReservationRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" @@ -25590,31 +25647,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\273\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132" + + "/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\273\001\n" + "!TestIamPermissionsSnapshotRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.go" - + "ogle.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\324\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.c" + + "loud.compute.v1.TestPermissionsRequestB\003\340A\002\"\324\001\n" + "$TestIamPermissionsStoragePoolRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cl" - + "oud.compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"\325\001\n" + "#TestIamPermissionsSubnetworkRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.clou" - + "d.compute.v1.TestPermissionsRequestB\003\340A\002\"\325\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\325\001\n" + "#TestIamPermissionsVpnGatewayRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001" - + "(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"0\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.g" + + "oogle.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"0\n" + "\026TestPermissionsRequest\022\026\n" + "\013permissions\030\204\351\313\034 \003(\t\"1\n" + "\027TestPermissionsResponse\022\026\n" @@ -25624,7 +25681,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003low\030\324\306\006 \001(\004H\001\210\001\001B\007\n" + "\005_highB\006\n" + "\004_low\"\234\004\n" - + "\023UpcomingMaintenance\022\036\n" + + "\023UpcomingMainte", + "nance\022\036\n" + "\016can_reschedule\030\231\243\342- \001(\010H\000\210\001\001\022(\n" + "\030latest_window_start_time\030\201\273\206= \001(\tH\001\210\001\001\022\"\n" + "\022maintenance_status\030\236\235\367& \001(\tH\002\210\001\001\022\024\n" @@ -25648,8 +25706,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020_window_end_timeB\024\n" + "\022_window_start_time\"\234\002\n" + "!UpdateAccessConfigInstanceRequest\022N\n" - + "\026access_config_resource\030\220\377\366\270\001" - + " \001(\0132%.google.cloud.compute.v1.AccessConfigB\003\340A\002\022\030\n" + + "\026access_config_resource\030\220\377\366\270\001 \001(\0132%" + + ".google.cloud.compute.v1.AccessConfigB\003\340A\002\022\030\n" + "\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022\"\n" + "\021network_interface\030\350\300\235\256\001 \001(\tB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" @@ -25674,15 +25732,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027backend_bucket_resource\030\230\316\307\265\001" + " \001(\0132&.google.cloud.compute.v1.BackendBucketB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" - + "\340A\002", - "\362G\007project\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r" - + "\n" + + "\340A\002\362G\007project\022\032\n\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\341\001\n" + "\033UpdateBackendServiceRequest\022 \n" + "\017backend_service\030\212\300\256\222\001 \001(\tB\003\340A\002\022R\n" - + "\030backend_service_resource\030\243\201\337\245\001 \001(\0132\'." - + "google.cloud.compute.v1.BackendServiceB\003\340A\002\022!\n" + + "\030backend_service_resource\030\243\201\337\245\001" + + " \001(\0132\'.google.cloud.compute.v1.BackendServiceB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" @@ -25702,8 +25758,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_idB\016\n" + "\014_update_mask\"\373\001\n" + "\"UpdateDisplayDeviceInstanceRequest\022P\n" - + "\027display_device_resource\030\332\204\221\212\001" - + " \001(\0132&.google.cloud.compute.v1.DisplayDeviceB\003\340A\002\022\030\n" + + "\027display_device_resource\030\332\204\221\212\001 " + + "\001(\0132&.google.cloud.compute.v1.DisplayDeviceB\003\340A\002\022\030\n" + "\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" @@ -25721,16 +25777,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\324\001\n" + "\030UpdateHealthCheckRequest\022\035\n" + "\014health_check\030\345\252\244\223\001 \001(\tB\003\340A\002\022K\n" - + "\025health_check_resource\030\250\303\244` \001" - + "(\0132$.google.cloud.compute.v1.HealthCheckB\003\340A\002\022!\n" + + "\025health_check_resource\030\250\303\244` \001(\0132$.g" + + "oogle.cloud.compute.v1.HealthCheckB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\345\003\n" + "\025UpdateInstanceRequest\022\030\n" + "\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022D\n" - + "\021instance_resource\030\370\360\376f" - + " \001(\0132!.google.cloud.compute.v1.InstanceB\003\340A\002\022\037\n" + + "\021instance_resource\030\370\360\376f \001(\0132" + + "!.google.cloud.compute.v1.InstanceB\003\340A\002\022\037\n" + "\016minimal_action\030\224\215\202\201\001 \001(\tH\000\210\001\001\022.\n" + "\036most_disruptive_allowed_action\030\215\316\302\037 \001(\tH\001\210\001\001\022!\n" + "\007project\030\231\226\301l \001(\tB\r" @@ -25758,8 +25814,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "%UpdateNetworkInterfaceInstanceRequest\022\030\n" + "\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022\"\n" + "\021network_interface\030\350\300\235\256\001 \001(\tB\003\340A\002\022V\n" - + "\032network_interface_resource\030\205\224\256\233\001 \001(\0132)" - + ".google.cloud.compute.v1.NetworkInterfaceB\003\340A\002\022!\n" + + "\032network_interface_resource\030\205\224\256\233\001 \001(\0132).googl" + + "e.cloud.compute.v1.NetworkInterfaceB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -25768,8 +25824,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\365\001\n" + "\033UpdatePeeringNetworkRequest\022\027\n" + "\007network\030\256\264\205o \001(\tB\003\340A\002\022o\n" - + "(networks_update_peering_request_resource\030\331\252\202k \001(\01325.google.cloud.c" - + "ompute.v1.NetworksUpdatePeeringRequestB\003\340A\002\022!\n" + + "(networks_update_peering_request_resource\030\331\252\202k" + + " \001(\01325.google.cloud.compute.v1.NetworksUpdatePeeringRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" @@ -25777,8 +25833,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "3UpdatePerInstanceConfigsInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\233\001\n" + "@instance_group_managers_update_per_instance_configs_req_resource\030\276\301\266C" - + " \001(\0132I.google.cloud.compute.v" - + "1.InstanceGroupManagersUpdatePerInstanceConfigsReqB\003\340A\002\022!\n" + + " \001(\0132I.google.cloud.compute.v1.Inst" + + "anceGroupManagersUpdatePerInstanceConfigsReqB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -25791,8 +25847,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\235\001\n" + "Aregion_instance_group_manager_update_instance_config_req_resource\030\247\256\272*" - + " \001(\0132J.google.cloud.compute.v1.Re" - + "gionInstanceGroupManagerUpdateInstanceConfigReqB\003\340A\002\022\032\n\n" + + " \001(\0132J.google.cloud.compute.v1.RegionIn" + + "stanceGroupManagerUpdateInstanceConfigReqB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\204\002\n" + "\035UpdateRegionAutoscalerRequest\022\033\n\n" @@ -25816,8 +25872,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\304\002\n" + "\035UpdateRegionCommitmentRequest\022\033\n\n" + "commitment\030\225\226\363\345\001 \001(\tB\003\340A\002\022H\n" - + "\023commitment_resource\030\370\243\273t \001(\013" - + "2#.google.cloud.compute.v1.CommitmentB\003\340A\002\022\025\n" + + "\023commitment_resource\030\370\243\273t" + + " \001(\0132#.google.cloud.compute.v1.CommitmentB\003\340A\002\022\025\n" + "\005paths\030\356\301\3402 \001(\tH\000\210\001\001\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" @@ -25855,8 +25911,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\030\n" + "\007url_map\030\214\225\201\257\001 \001(\tB\003\340A\002\022A\n" - + "\020url_map_resource\030\341\220\267P" - + " \001(\0132\037.google.cloud.compute.v1.UrlMapB\003\340A\002B\r\n" + + "\020url_map_resource\030\341\220\267P " + + "\001(\0132\037.google.cloud.compute.v1.UrlMapB\003\340A\002B\r\n" + "\013_request_id\"\276\002\n" + "\030UpdateReservationRequest\022\025\n" + "\005paths\030\356\301\3402 \001(\tH\000\210\001\001\022!\n" @@ -25864,8 +25920,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001\022\033\n" + "\013reservation\030\314\207\325\026 \001(\tB\003\340A\002\022K\n" - + "\024reservation_resource\030\241\356\364\207\001 \001(\013" - + "2$.google.cloud.compute.v1.ReservationB\003\340A\002\022\034\n" + + "\024reservation_resource\030\241\356\364\207\001" + + " \001(\0132$.google.cloud.compute.v1.ReservationB\003\340A\002\022\034\n" + "\013update_mask\030\242\271\272\356\001 \001(\tH\002\210\001\001\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\010\n" @@ -25887,16 +25943,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\026\n" + "\006router\030\311\256\356F \001(\tB\003\340A\002\022@\n" - + "\017router_resource\030\304\200\202J \001" - + "(\0132\037.google.cloud.compute.v1.RouterB\003\340A\002B\r\n" + + "\017router_resource\030\304\200\202J" + + " \001(\0132\037.google.cloud.compute.v1.RouterB\003\340A\002B\r\n" + "\013_request_id\"\227\002\n" + "+UpdateShieldedInstanceConfigInstanceRequest\022\030\n" + "\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022c\n" - + "!shielded_instance_config_resource\030\330\226\335\201\001 \001(\0132" - + "/.google.cloud.compute.v1.ShieldedInstanceConfigB\003\340A\002\022\033\n" + + "!shielded_instance_config_resource\030\330\226\335\201\001 \001(\0132/.goog" + + "le.cloud.compute.v1.ShieldedInstanceConfigB\003\340A\002\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\237\002\n" @@ -25917,18 +25973,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\030\n" + "\007url_map\030\214\225\201\257\001 \001(\tB\003\340A\002\022A\n" - + "\020url_map_resource\030\341\220\267P" - + " \001(\0132\037.google.cloud.compute.v1.UrlMapB\003\340A\002B\r\n" + + "\020url_map_resource\030\341\220\267P " + + "\001(\0132\037.google.cloud.compute.v1.UrlMapB\003\340A\002B\r\n" + "\013_request_id\"\362\007\n" + "\006UrlMap\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022h\n" - + "$default_custom_error_response_policy\030\251\213\340& \001(\01322" - + ".google.cloud.compute.v1.CustomErrorResponsePolicyH\001\210\001\001\022O\n" - + "\024default_route_action\030\252\264\327\264\001" - + " \001(\0132(.google.cloud.compute.v1.HttpRouteActionH\002\210\001\001\022 \n" + + "$default_custom_error_response_policy\030\251\213\340& \001(\01322.googl" + + "e.cloud.compute.v1.CustomErrorResponsePolicyH\001\210\001\001\022O\n" + + "\024default_route_action\030\252\264\327\264\001 " + + "\001(\0132(.google.cloud.compute.v1.HttpRouteActionH\002\210\001\001\022 \n" + "\017default_service\030\267\345\305\260\001 \001(\tH\003\210\001\001\022R\n" - + "\024default_url_redirect\030\352\253\266\253\001" - + " \001(\0132+.google.cloud.compute.v1.HttpRedirectActionH\004\210\001\001\022\034\n" + + "\024default_url_redirect\030\352\253\266\253\001 \001(\0132+" + + ".google.cloud.compute.v1.HttpRedirectActionH\004\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\005\210\001\001\022\033\n" + "\013fingerprint\030\344\321\363o \001(\tH\006\210\001\001\022I\n\r" + "header_action\030\250\240\270\234\001" @@ -26004,8 +26060,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_test_passed\"\265\003\n" + "\025UrlMapsAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022K\n" - + "\005items\030\300\317\367/ \003(\01329.google." - + "cloud.compute.v1.UrlMapsAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\01329.google.cloud." + + "compute.v1.UrlMapsAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -26037,8 +26093,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "!LOAD_BALANCING_SCHEME_UNSPECIFIED\020\274\273\207\373\001B\013\n" + "\t_resource\"m\n" + "\027UrlMapsValidateResponse\022G\n" - + "\006result\030\235\220\267B" - + " \001(\0132/.google.cloud.compute.v1.UrlMapValidationResultH\000\210\001\001B\t\n" + + "\006result\030\235\220\267B \001(\0132/" + + ".google.cloud.compute.v1.UrlMapValidationResultH\000\210\001\001B\t\n" + "\007_result\"\272\001\n\n" + "UrlRewrite\022\034\n" + "\014host_rewrite\030\365\313\232L \001(\tH\000\210\001\001\022#\n" @@ -26055,8 +26111,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007network\030\256\264\205o \001(\tH\004\210\001\001\022\030\n" + "\007purpose\030\236\372\357\226\001 \001(\tH\005\210\001\001\022\024\n" + "\004role\030\366\200\326\001 \001(\tH\006\210\001\001\022W\n" - + "\023secondary_ip_ranges\030\343\377\224A" - + " \003(\01327.google.cloud.compute.v1.UsableSubnetworkSecondaryRange\022\033\n\n" + + "\023secondary_ip_ranges\030\343\377\224A \003(" + + "\01327.google.cloud.compute.v1.UsableSubnetworkSecondaryRange\022\033\n\n" + "stack_type\030\221\265\213\313\001 \001(\tH\007\210\001\001\022\033\n\n" + "subnetwork\030\356\247\344\222\001 \001(\tH\010\210\001\001\"S\n" + "\016Ipv6AccessType\022\036\n" @@ -26093,20 +26149,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_roleB\r\n" + "\013_stack_typeB\r\n" + "\013_subnetwork\"}\n" - + "\036UsableSubnetworkSecondaryRange\022\035\n" - + "\r" + + "\036UsableSubnetworkSecondaryRange\022\035\n\r" + "ip_cidr_range\030\312\315\344. \001(\tH\000\210\001\001\022\033\n\n" + "range_name\030\315\360\264\236\001 \001(\tH\001\210\001\001B\020\n" + "\016_ip_cidr_rangeB\r\n" + "\013_range_name\"\244\003\n" + "\037UsableSubnetworksAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022;\n" - + "\005items\030\300\317\367/ \003" - + "(\0132).google.cloud.compute.v1.UsableSubnetwork\022\024\n" + + "\005items\030\300\317\367/ \003(\0132).g" + + "oogle.cloud.compute.v1.UsableSubnetwork\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022M\n" - + "\017scoped_warnings\030\246\226\370f" - + " \003(\01321.google.cloud.compute.v1.SubnetworksScopedWarning\022\032\n" + + "\017scoped_warnings\030\246\226\370f \003" + + "(\01321.google.cloud.compute.v1.SubnetworksScopedWarning\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" + "\014unreachables\030\237\240\206t \003(\t\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" @@ -26130,12 +26185,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025ValidateUrlMapRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\007url_map\030\214\225\201\257\001 \001(\tB\003\340A\002\022d\n" - + "\"url_maps_validate_request_resource\030\357\321\344\274\001 \001(\0132/.google.cl" - + "oud.compute.v1.UrlMapsValidateRequestB\003\340A\002\"\257\001\n" + + "\"url_maps_validate_request_resource\030\357\321\344\274\001" + + " \001(\0132/.google.cloud.compute.v1.UrlMapsValidateRequestB\003\340A\002\"\257\001\n" + "\025VmEndpointNatMappings\022\035\n\r" + "instance_name\030\365\347\330l \001(\tH\000\210\001\001\022e\n" - + "\026interface_nat_mappings\030\211\200\225z \003(\0132B.google.cloud.compute.v1" - + ".VmEndpointNatMappingsInterfaceNatMappingsB\020\n" + + "\026interface_nat_mappings\030\211\200\225z" + + " \003(\0132B.google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsB\020\n" + "\016_instance_name\"\342\003\n" + ")VmEndpointNatMappingsInterfaceNatMappings\022$\n" + "\030drain_nat_ip_port_ranges\030\301\343\307\274\001 \003(\t\022\036\n" @@ -26143,8 +26198,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031num_total_drain_nat_ports\030\371\245\377\237\001" + " \001(\005H\000\210\001\001\022$\n" + "\023num_total_nat_ports\030\200\333\200\217\001 \001(\005H\001\210\001\001\022l\n\r" - + "rule_mappings\030\310\356\352\347\001 \003(\0132Q.google.cloud.compute.v1.VmEndpoi" - + "ntNatMappingsInterfaceNatMappingsNatRuleMappings\022&\n" + + "rule_mappings\030\310\356\352\347\001 \003(\0132" + + "Q.google.cloud.compute.v1.VmEndpointNatM" + + "appingsInterfaceNatMappingsNatRuleMappings\022&\n" + "\025source_alias_ip_range\030\330\243\374\321\001 \001(\tH\002\210\001\001\022!\n" + "\021source_virtual_ip\030\377\242\271G \001(\tH\003\210\001\001B\034\n" + "\032_num_total_drain_nat_portsB\026\n" @@ -26182,16 +26238,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\005\210\001\001\022C\n" - + "\006labels\030\377\277\301\356\001 \003(\0132/.google.c" - + "loud.compute.v1.VpnGateway.LabelsEntry\022\024\n" + + "\006labels\030\377\277\301\356\001" + + " \003(\0132/.google.cloud.compute.v1.VpnGateway.LabelsEntry\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\006\210\001\001\022\027\n" + "\007network\030\256\264\205o \001(\tH\007\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\010\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\t\210\001\001\022\033\n\n" + "stack_type\030\221\265\213\313\001 \001(\tH\n" + "\210\001\001\022Q\n" - + "\016vpn_interfaces\030\205\315\345+ \003(\01326.goog" - + "le.cloud.compute.v1.VpnGatewayVpnGatewayInterface\032-\n" + + "\016vpn_interfaces\030\205\315\345+ \003(\01326.google.clo" + + "ud.compute.v1.VpnGatewayVpnGatewayInterface\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"N\n" @@ -26229,8 +26285,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032\\\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022=\n" - + "\005value\030\002" - + " \001(\0132..google.cloud.compute.v1.VpnGatewaysScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\013" + + "2..google.cloud.compute.v1.VpnGatewaysScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -26247,12 +26303,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" - + "_self_linkB\n\n" + + "_self_linkB\n" + + "\n" + "\010_warning\"g\n" + "\020VpnGatewayStatus\022S\n" - + "\017vpn_connections\030\212\355\276\321\001 \003(\01326.google.cloud" - + ".compute.v1.VpnGatewayStatusVpnConnection\"\321\002\n" - + "0VpnGatewayStatusHighAvailabilityRequirementState\022\025\n" + + "\017vpn_connections\030\212\355\276\321\001" + + " \003(\01326.google.cloud.compute.v1.VpnGatewayStatusVpnConnection\"\321\002\n" + + "0", + "VpnGatewayStatusHighAvailabilityRequirementState\022\025\n" + "\005state\030\221\211\2534 \001(\tH\000\210\001\001\022\"\n" + "\022unsatisfied_reason\030\212\367\235\032 \001(\tH\001\210\001\001\"f\n" + "\005State\022\023\n" @@ -26276,8 +26334,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035VpnGatewayStatusVpnConnection\022&\n" + "\025peer_external_gateway\030\215\356\307\267\001 \001(\tH\000\210\001\001\022!\n" + "\020peer_gcp_gateway\030\274\351\263\206\001 \001(\tH\001\210\001\001\022`\n" - + "\005state\030\221\211\2534 \001(\0132I.goo" - + "gle.cloud.compute.v1.VpnGatewayStatusHighAvailabilityRequirementStateH\002\210\001\001\022C\n" + + "\005state\030\221\211\2534 \001(\0132I.google.cl" + + "oud.compute.v1.VpnGatewayStatusHighAvailabilityRequirementStateH\002\210\001\001\022C\n" + "\007tunnels\030\213\372\3551" + " \003(\0132/.google.cloud.compute.v1.VpnGatewayStatusTunnelB\030\n" + "\026_peer_external_gatewayB\023\n" @@ -26295,14 +26353,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_ip_addressB\017\n\r" + "_ipv6_address\"l\n" + "\034VpnGatewaysGetStatusResponse\022A\n" - + "\006result\030\235\220\267B \001(\0132).googl" - + "e.cloud.compute.v1.VpnGatewayStatusH\000\210\001\001B\t\n" + + "\006result\030\235\220\267B" + + " \001(\0132).google.cloud.compute.v1.VpnGatewayStatusH\000\210\001\001B\t\n" + "\007_result\"\234\001\n" - + "\025VpnGatewaysScopedList\022<\n", - "\014vpn_gateways\030\232\373\312{ \003(\0132#.google.cloud.compute.v1.VpnGateway\0229\n" + + "\025VpnGatewaysScopedList\022<\n" + + "\014vpn_gateways\030\232\373\312{" + + " \003(\0132#.google.cloud.compute.v1.VpnGateway\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" - + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n" - + "\n" + + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\233\014\n" + "\tVpnTunnel\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n" @@ -26312,8 +26370,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013ike_version\030\234\320\220h \001(\005H\004\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\006\210\001\001\022B\n" - + "\006labels\030\377\277\301\356\001" - + " \003(\0132..google.cloud.compute.v1.VpnTunnel.LabelsEntry\022\"\n" + + "\006labels\030\377\277\301\356\001 \003" + + "(\0132..google.cloud.compute.v1.VpnTunnel.LabelsEntry\022\"\n" + "\026local_traffic_selector\030\265\254\247\227\001 \003(\t\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022&\n" + "\025peer_external_gateway\030\215\356\307\267\001 \001(\tH\010\210\001\001\0220\n" @@ -26374,8 +26432,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026_vpn_gateway_interface\"\274\003\n" + "\027VpnTunnelAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022M\n" - + "\005items\030\300\317\367/ \003(\013" - + "2;.google.cloud.compute.v1.VpnTunnelAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132;.goo" + + "gle.cloud.compute.v1.VpnTunnelAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -26384,12 +26442,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032[\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022<\n" - + "\005value\030\002 \001(\0132-.google." - + "cloud.compute.v1.VpnTunnelsScopedList:\0028\001B\005\n" + + "\005value\030\002" + + " \001(\0132-.google.cloud.compute.v1.VpnTunnelsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" - + "\020_next_page_tokenB\014\n" - + "\n" + + "\020_next_page_tokenB\014\n\n" + "_self_linkB\n\n" + "\010_warning\"\243\002\n\r" + "VpnTunnelList\022\020\n" @@ -26509,8 +26566,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_message\"\317\001\n" + "\026WeightedBackendService\022 \n" + "\017backend_service\030\212\300\256\222\001 \001(\tH\000\210\001\001\022I\n\r" - + "header_action\030\250\240\270\234\001 \001(\0132" - + ").google.cloud.compute.v1.HttpHeaderActionH\001\210\001\001\022\027\n" + + "header_action\030\250\240\270\234\001 \001(\0132).goog" + + "le.cloud.compute.v1.HttpHeaderActionH\001\210\001\001\022\027\n" + "\006weight\030\370\204\305\206\001 \001(\r" + "H\002\210\001\001B\022\n" + "\020_backend_serviceB\020\n" @@ -26554,8 +26611,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004Zone\022\"\n" + "\027available_cpu_platforms\030\223\363\331S \003(\t\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022G\n\n" - + "deprecated\030\263\313\321\365\001 \001(\0132*.google." - + "cloud.compute.v1.DeprecationStatusH\001\210\001\001\022\034\n" + + "deprecated\030\263\313\321\365\001" + + " \001(\0132*.google.cloud.compute.v1.DeprecationStatusH\001\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022\024\n" @@ -26593,8 +26650,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_warning\"\315\001\n" + "\024ZoneSetLabelsRequest\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\000\210\001\001\022M\n" - + "\006labels\030\377\277\301\356\001 \003(\01329.google.clo" - + "ud.compute.v1.ZoneSetLabelsRequest.LabelsEntry\032-\n" + + "\006labels\030\377\277\301\356\001 \003(\01329.google.cloud.com" + + "pute.v1.ZoneSetLabelsRequest.LabelsEntry\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001B\024\n" @@ -26608,5747 +26665,5758 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_etagB\t\n" + "\007_policy2\263\006\n" + "\020AcceleratorTypes\022\326\001\n" - + "\016AggregatedList\022>.google.cloud.compute.v" - + "1.AggregatedListAcceleratorTypesRequest\0326.google.cloud.compute.v1.AcceleratorTyp" - + "eAggregatedList\"L\332A\007project\202\323\344\223\002<\022:/comp" - + "ute/v1/projects/{project}/aggregated/acceleratorTypes\022\334\001\n" - + "\003Get\0222.google.cloud.compute.v1.GetAcceleratorTypeRequest\032(.goog" - + "le.cloud.compute.v1.AcceleratorType\"w\332A\035" - + "project,zone,accelerator_type\202\323\344\223\002Q\022O/co" - + "mpute/v1/projects/{project}/zones/{zone}/acceleratorTypes/{accelerator_type}\022\277\001\n" - + "\004List\0224.google.cloud.compute.v1.ListAcce" - + "leratorTypesRequest\032,.google.cloud.compu" - + "te.v1.AcceleratorTypeList\"S\332A\014project,zo" - + "ne\202\323\344\223\002>\022.google.cloud.compute.v1.Aggr" + + "egatedListAcceleratorTypesRequest\0326.google.cloud.compute.v1.AcceleratorTypeAggre" + + "gatedList\"L\332A\007project\202\323\344\223\002<\022:/compute/v1" + + "/projects/{project}/aggregated/acceleratorTypes\022\334\001\n" + + "\003Get\0222.google.cloud.compute.v1.GetAcceleratorTypeRequest\032(.google.clo" + + "ud.compute.v1.AcceleratorType\"w\332A\035projec" + + "t,zone,accelerator_type\202\323\344\223\002Q\022O/compute/" + + "v1/projects/{project}/zones/{zone}/acceleratorTypes/{accelerator_type}\022\277\001\n" + + "\004List\0224.google.cloud.compute.v1.ListAccelerato" + + "rTypesRequest\032,.google.cloud.compute.v1." + + "AcceleratorTypeList\"S\332A\014project,zone\202\323\344\223" + + "\002>\022project,zone,dis" - + "k,disks_add_resource_policies_request_re" - + "source\212N\016ZoneOperations\202\323\344\223\002|\"L/compute/" - + "v1/projects/{project}/zones/{zone}/disks" - + "/{disk}/addResourcePolicies:,disks_add_r" - + "esource_policies_request_resource\022\265\001\n\016Ag" - + "gregatedList\0223.google.cloud.compute.v1.A" - + "ggregatedListDisksRequest\032+.google.cloud" - + ".compute.v1.DiskAggregatedList\"A\332A\007proje" - + "ct\202\323\344\223\0021\022//compute/v1/projects/{project}" - + "/aggregated/disks\022\216\002\n\nBulkInsert\022..googl" - + "e.cloud.compute.v1.BulkInsertDiskRequest" - + "\032\".google.cloud.compute.v1.Operation\"\253\001\332" - + "A/project,zone,bulk_insert_disk_resource" - + "_resource\212N\016ZoneOperations\202\323\344\223\002b\"project,zone,disk,disk" + + "s_add_resource_policies_request_resource" + + "\212N\016ZoneOperations\202\323\344\223\002|\"L/compute/v1/pro" + + "jects/{project}/zones/{zone}/disks/{disk" + + "}/addResourcePolicies:,disks_add_resourc" + + "e_policies_request_resource\022\265\001\n\016Aggregat" + + "edList\0223.google.cloud.compute.v1.Aggrega" + + "tedListDisksRequest\032+.google.cloud.compu" + + "te.v1.DiskAggregatedList\"A\332A\007project\202\323\344\223" + + "\0021\022//compute/v1/projects/{project}/aggre" + + "gated/disks\022\216\002\n\nBulkInsert\022..google.clou" + + "d.compute.v1.BulkInsertDiskRequest\032\".goo" + + "gle.cloud.compute.v1.Operation\"\253\001\332A/proj" + + "ect,zone,bulk_insert_disk_resource_resou" + + "rce\212N\016ZoneOperations\202\323\344\223\002b\".google.cloud.compute.v1.ListAssoc" - + "iationsFirewallPolicyRequest\032A.google.cl" - + "oud.compute.v1.FirewallPoliciesListAssoc" - + "iationsResponse\"I\332A\000\202\323\344\223\002@\022>/compute/v1/" - + "locations/global/firewallPolicies/listAs" - + "sociations\022\350\001\n\004Move\0222.google.cloud.compu" - + "te.v1.MoveFirewallPolicyRequest\032\".google" - + ".cloud.compute.v1.Operation\"\207\001\332A\031firewal" - + "l_policy,parent_id\212N\034GlobalOrganizationO" - + "perations\202\323\344\223\002F\"D/compute/v1/locations/g" - + "lobal/firewallPolicies/{firewall_policy}" - + "/move\022\216\002\n\005Patch\0223.google.cloud.compute.v" - + "1.PatchFirewallPolicyRequest\032\".google.cl" - + "oud.compute.v1.Operation\"\253\001\332A(firewall_p" - + "olicy,firewall_policy_resource\212N\034GlobalO" - + "rganizationOperations\202\323\344\223\002[2?/compute/v1" + + "licy}/cloneRules\022\334\001\n\006Delete\0224.google.clo" + + "ud.compute.v1.DeleteFirewallPolicyReques" + + "t\032\".google.cloud.compute.v1.Operation\"x\332" + + "A\017firewall_policy\212N\034GlobalOrganizationOp" + + "erations\202\323\344\223\002A*?/compute/v1/locations/gl" + + "obal/firewallPolicies/{firewall_policy}\022" + + "\274\001\n\003Get\0221.google.cloud.compute.v1.GetFir" + + "ewallPolicyRequest\032\'.google.cloud.comput" + + "e.v1.FirewallPolicy\"Y\332A\017firewall_policy\202" + + "\323\344\223\002A\022?/compute/v1/locations/global/fire" + + "wallPolicies/{firewall_policy}\022\354\001\n\016GetAs" + + "sociation\022<.google.cloud.compute.v1.GetA" + + "ssociationFirewallPolicyRequest\0322.google" + + ".cloud.compute.v1.FirewallPolicyAssociat" + + "ion\"h\332A\017firewall_policy\202\323\344\223\002P\022N/compute/" + + "v1/locations/global/firewallPolicies/{fi" + + "rewall_policy}/getAssociation\022\305\001\n\014GetIam" + + "Policy\022:.google.cloud.compute.v1.GetIamP" + + "olicyFirewallPolicyRequest\032\037.google.clou" + + "d.compute.v1.Policy\"X\332A\010resource\202\323\344\223\002G\022E" + + "/compute/v1/locations/global/firewallPol" + + "icies/{resource}/getIamPolicy\022\320\001\n\007GetRul" + + "e\0225.google.cloud.compute.v1.GetRuleFirew" + + "allPolicyRequest\032+.google.cloud.compute." + + "v1.FirewallPolicyRule\"a\332A\017firewall_polic" + + "y\202\323\344\223\002I\022G/compute/v1/locations/global/fi" + + "rewallPolicies/{firewall_policy}/getRule" + + "\022\370\001\n\006Insert\0224.google.cloud.compute.v1.In" + + "sertFirewallPolicyRequest\032\".google.cloud" + + ".compute.v1.Operation\"\223\001\332A\"parent_id,fir" + + "ewall_policy_resource\212N\034GlobalOrganizati" + + "onOperations\202\323\344\223\002I\"-/compute/v1/location" + + "s/global/firewallPolicies:\030firewall_poli" + + "cy_resource\022\243\001\n\004List\0224.google.cloud.comp" + + "ute.v1.ListFirewallPoliciesRequest\032+.goo" + + "gle.cloud.compute.v1.FirewallPolicyList\"" + + "8\332A\000\202\323\344\223\002/\022-/compute/v1/locations/global" + + "/firewallPolicies\022\340\001\n\020ListAssociations\022>" + + ".google.cloud.compute.v1.ListAssociation" + + "sFirewallPolicyRequest\032A.google.cloud.co" + + "mpute.v1.FirewallPoliciesListAssociation" + + "sResponse\"I\332A\000\202\323\344\223\002@\022>/compute/v1/locati" + + "ons/global/firewallPolicies/listAssociat" + + "ions\022\350\001\n\004Move\0222.google.cloud.compute.v1." + + "MoveFirewallPolicyRequest\032\".google.cloud" + + ".compute.v1.Operation\"\207\001\332A\031firewall_poli" + + "cy,parent_id\212N\034GlobalOrganizationOperati" + + "ons\202\323\344\223\002F\"D/compute/v1/locations/global/" + + "firewallPolicies/{firewall_policy}/move\022" + + "\216\002\n\005Patch\0223.google.cloud.compute.v1.Patc" + + "hFirewallPolicyRequest\032\".google.cloud.co" + + "mpute.v1.Operation\"\253\001\332A(firewall_policy," + + "firewall_policy_resource\212N\034GlobalOrganiz" + + "ationOperations\202\323\344\223\002[2?/compute/v1/locat" + + "ions/global/firewallPolicies/{firewall_p" + + "olicy}:\030firewall_policy_resource\022\252\002\n\tPat" + + "chRule\0227.google.cloud.compute.v1.PatchRu" + + "leFirewallPolicyRequest\032\".google.cloud.c" + + "ompute.v1.Operation\"\277\001\332A-firewall_policy" + + ",firewall_policy_rule_resource\212N\034GlobalO" + + "rganizationOperations\202\323\344\223\002j\"I/compute/v1" + "/locations/global/firewallPolicies/{fire" - + "wall_policy}:\030firewall_policy_resource\022\252" - + "\002\n\tPatchRule\0227.google.cloud.compute.v1.P" - + "atchRuleFirewallPolicyRequest\032\".google.c" - + "loud.compute.v1.Operation\"\277\001\332A-firewall_" - + "policy,firewall_policy_rule_resource\212N\034G" - + "lobalOrganizationOperations\202\323\344\223\002j\"I/comp" - + "ute/v1/locations/global/firewallPolicies" - + "/{firewall_policy}/patchRule:\035firewall_p" - + "olicy_rule_resource\022\205\002\n\021RemoveAssociatio" - + "n\022?.google.cloud.compute.v1.RemoveAssoci" - + "ationFirewallPolicyRequest\032\".google.clou" - + "d.compute.v1.Operation\"\212\001\332A\017firewall_pol" - + "icy\212N\034GlobalOrganizationOperations\202\323\344\223\002S" - + "\"Q/compute/v1/locations/global/firewallP" - + "olicies/{firewall_policy}/removeAssociat" - + "ion\022\360\001\n\nRemoveRule\0228.google.cloud.comput" - + "e.v1.RemoveRuleFirewallPolicyRequest\032\".g" - + "oogle.cloud.compute.v1.Operation\"\203\001\332A\017fi" - + "rewall_policy\212N\034GlobalOrganizationOperat" - + "ions\202\323\344\223\002L\"J/compute/v1/locations/global" - + "/firewallPolicies/{firewall_policy}/remo" - + "veRule\022\247\002\n\014SetIamPolicy\022:.google.cloud.c" - + "ompute.v1.SetIamPolicyFirewallPolicyRequ" - + "est\032\037.google.cloud.compute.v1.Policy\"\271\001\332" - + "A8resource,global_organization_set_polic" - + "y_request_resource\202\323\344\223\002x\"E/compute/v1/lo" - + "cations/global/firewallPolicies/{resourc" - + "e}/setIamPolicy:/global_organization_set" - + "_policy_request_resource\022\256\002\n\022TestIamPerm" - + "issions\022@.google.cloud.compute.v1.TestIa" - + "mPermissionsFirewallPolicyRequest\0320.goog" - + "le.cloud.compute.v1.TestPermissionsRespo" - + "nse\"\243\001\332A*resource,test_permissions_reque" - + "st_resource\202\323\344\223\002p\"K/compute/v1/locations" - + "/global/firewallPolicies/{resource}/test" - + "IamPermissions:!test_permissions_request" + + "wall_policy}/patchRule:\035firewall_policy_" + + "rule_resource\022\205\002\n\021RemoveAssociation\022?.go" + + "ogle.cloud.compute.v1.RemoveAssociationF" + + "irewallPolicyRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\212\001\332A\017firewall_policy\212N\034" + + "GlobalOrganizationOperations\202\323\344\223\002S\"Q/com" + + "pute/v1/locations/global/firewallPolicie" + + "s/{firewall_policy}/removeAssociation\022\360\001" + + "\n\nRemoveRule\0228.google.cloud.compute.v1.R" + + "emoveRuleFirewallPolicyRequest\032\".google.", + "cloud.compute.v1.Operation\"\203\001\332A\017firewall" + + "_policy\212N\034GlobalOrganizationOperations\202\323" + + "\344\223\002L\"J/compute/v1/locations/global/firew" + + "allPolicies/{firewall_policy}/removeRule" + + "\022\247\002\n\014SetIamPolicy\022:.google.cloud.compute" + + ".v1.SetIamPolicyFirewallPolicyRequest\032\037." + + "google.cloud.compute.v1.Policy\"\271\001\332A8reso" + + "urce,global_organization_set_policy_requ" + + "est_resource\202\323\344\223\002x\"E/compute/v1/location" + + "s/global/firewallPolicies/{resource}/set" + + "IamPolicy:/global_organization_set_polic" + + "y_request_resource\022\256\002\n\022TestIamPermission" + + "s\022@.google.cloud.compute.v1.TestIamPermi" + + "ssionsFirewallPolicyRequest\0320.google.clo" + + "ud.compute.v1.TestPermissionsResponse\"\243\001" + + "\332A*resource,test_permissions_request_res" + + "ource\202\323\344\223\002p\"K/compute/v1/locations/globa" + + "l/firewallPolicies/{resource}/testIamPer" + + "missions:!test_permissions_request_resou" + + "rce\032r\312A\026compute.googleapis.com\322AVhttps:/" + + "/www.googleapis.com/auth/compute,https:/" + + "/www.googleapis.com/auth/cloud-platform2" + + "\317\n\n\tFirewalls\022\306\001\n\006Delete\022..google.cloud." + + "compute.v1.DeleteFirewallRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"h\332A\020project" + + ",firewall\212N\020GlobalOperations\202\323\344\223\002<*:/com" + + "pute/v1/projects/{project}/global/firewa" + + "lls/{firewall}\022\254\001\n\003Get\022+.google.cloud.co" + + "mpute.v1.GetFirewallRequest\032!.google.clo" + + "ud.compute.v1.Firewall\"U\332A\020project,firew" + + "all\202\323\344\223\002<\022:/compute/v1/projects/{project" + + "}/global/firewalls/{firewall}\022\327\001\n\006Insert" + + "\022..google.cloud.compute.v1.InsertFirewal" + + "lRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"y\332A\031project,firewall_resource\212N\020Glo" + + "balOperations\202\323\344\223\002D\"//compute/v1/project" + + "s/{project}/global/firewalls:\021firewall_r" + + "esource\022\237\001\n\004List\022-.google.cloud.compute." + + "v1.ListFirewallsRequest\032%.google.cloud.c" + + "ompute.v1.FirewallList\"A\332A\007project\202\323\344\223\0021" + + "\022//compute/v1/projects/{project}/global/" + + "firewalls\022\352\001\n\005Patch\022-.google.cloud.compu" + + "te.v1.PatchFirewallRequest\032\".google.clou" + + "d.compute.v1.Operation\"\215\001\332A\"project,fire" + + "wall,firewall_resource\212N\020GlobalOperation" + + "s\202\323\344\223\002O2:/compute/v1/projects/{project}/" + + "global/firewalls/{firewall}:\021firewall_re" + + "source\022\354\001\n\006Update\022..google.cloud.compute" + + ".v1.UpdateFirewallRequest\032\".google.cloud" + + ".compute.v1.Operation\"\215\001\332A\"project,firew" + + "all,firewall_resource\212N\020GlobalOperations" + + "\202\323\344\223\002O\032:/compute/v1/projects/{project}/g" + + "lobal/firewalls/{firewall}:\021firewall_res" + + "ource\032r\312A\026compute.googleapis.com\322AVhttps" + + "://www.googleapis.com/auth/compute,https" + + "://www.googleapis.com/auth/cloud-platfor" + + "m2\231\021\n\017ForwardingRules\022\323\001\n\016AggregatedList" + + "\022=.google.cloud.compute.v1.AggregatedLis" + + "tForwardingRulesRequest\0325.google.cloud.c" + + "ompute.v1.ForwardingRuleAggregatedList\"K" + + "\332A\007project\202\323\344\223\002;\0229/compute/v1/projects/{" + + "project}/aggregated/forwardingRules\022\362\001\n\006" + + "Delete\0224.google.cloud.compute.v1.DeleteF" + + "orwardingRuleRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\215\001\332A\036project,region,for" + + "warding_rule\212N\020RegionOperations\202\323\344\223\002S*Q/" + + "compute/v1/projects/{project}/regions/{r" + + "egion}/forwardingRules/{forwarding_rule}" + + "\022\335\001\n\003Get\0221.google.cloud.compute.v1.GetFo" + + "rwardingRuleRequest\032\'.google.cloud.compu" + + "te.v1.ForwardingRule\"z\332A\036project,region," + + "forwarding_rule\202\323\344\223\002S\022Q/compute/v1/proje" + + "cts/{project}/regions/{region}/forwardin" + + "gRules/{forwarding_rule}\022\203\002\n\006Insert\0224.go" + + "ogle.cloud.compute.v1.InsertForwardingRu" + + "leRequest\032\".google.cloud.compute.v1.Oper" + + "ation\"\236\001\332A\'project,region,forwarding_rul" + + "e_resource\212N\020RegionOperations\202\323\344\223\002[\"?/co" + + "mpute/v1/projects/{project}/regions/{reg" + + "ion}/forwardingRules:\030forwarding_rule_re" + + "source\022\302\001\n\004List\0223.google.cloud.compute.v" + + "1.ListForwardingRulesRequest\032+.google.cl" + + "oud.compute.v1.ForwardingRuleList\"X\332A\016pr" + + "oject,region\202\323\344\223\002A\022?/compute/v1/projects" + + "/{project}/regions/{region}/forwardingRu" + + "les\022\243\002\n\005Patch\0223.google.cloud.compute.v1." + + "PatchForwardingRuleRequest\032\".google.clou" + + "d.compute.v1.Operation\"\300\001\332A7project,regi" + + "on,forwarding_rule,forwarding_rule_resou" + + "rce\212N\020RegionOperations\202\323\344\223\002m2Q/compute/v" + + "1/projects/{project}/regions/{region}/fo" + + "rwardingRules/{forwarding_rule}:\030forward" + + "ing_rule_resource\022\273\002\n\tSetLabels\0227.google" + + ".cloud.compute.v1.SetLabelsForwardingRul" + + "eRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"\320\001\332A:project,region,resource,region" + + "_set_labels_request_resource\212N\020RegionOpe" + + "rations\202\323\344\223\002z\"T/compute/v1/projects/{pro" + + "ject}/regions/{region}/forwardingRules/{" + + "resource}/setLabels:\"region_set_labels_r" + + "equest_resource\022\267\002\n\tSetTarget\0227.google.c" + + "loud.compute.v1.SetTargetForwardingRuleR" + + "equest\032\".google.cloud.compute.v1.Operati" + + "on\"\314\001\332A8project,region,forwarding_rule,t" + + "arget_reference_resource\212N\020RegionOperati" + + "ons\202\323\344\223\002x\"[/compute/v1/projects/{project" + + "}/regions/{region}/forwardingRules/{forw" + + "arding_rule}/setTarget:\031target_reference" + "_resource\032r\312A\026compute.googleapis.com\322AVh" + "ttps://www.googleapis.com/auth/compute,h" + "ttps://www.googleapis.com/auth/cloud-pla" - + "tform2\317\n\n\tFirewalls\022\306\001\n\006Delete\022..google." - + "cloud.compute.v1.DeleteFirewallRequest\032\"" - + ".google.cloud.compute.v1.Operation\"h\332A\020p" - + "roject,firewall\212N\020GlobalOperations\202\323\344\223\002<" - + "*:/compute/v1/projects/{project}/global/" - + "firewalls/{firewall}\022\254\001\n\003Get\022+.google.cl" - + "oud.compute.v1.GetFirewallRequest\032!.goog" - + "le.cloud.compute.v1.Firewall\"U\332A\020project" - + ",firewall\202\323\344\223\002<\022:/compute/v1/projects/{p", - "roject}/global/firewalls/{firewall}\022\327\001\n\006" - + "Insert\022..google.cloud.compute.v1.InsertF" - + "irewallRequest\032\".google.cloud.compute.v1" - + ".Operation\"y\332A\031project,firewall_resource" - + "\212N\020GlobalOperations\202\323\344\223\002D\"//compute/v1/p" - + "rojects/{project}/global/firewalls:\021fire" - + "wall_resource\022\237\001\n\004List\022-.google.cloud.co" - + "mpute.v1.ListFirewallsRequest\032%.google.c" - + "loud.compute.v1.FirewallList\"A\332A\007project" - + "\202\323\344\223\0021\022//compute/v1/projects/{project}/g" - + "lobal/firewalls\022\352\001\n\005Patch\022-.google.cloud" - + ".compute.v1.PatchFirewallRequest\032\".googl" - + "e.cloud.compute.v1.Operation\"\215\001\332A\"projec" - + "t,firewall,firewall_resource\212N\020GlobalOpe" - + "rations\202\323\344\223\002O2:/compute/v1/projects/{pro" - + "ject}/global/firewalls/{firewall}:\021firew" - + "all_resource\022\354\001\n\006Update\022..google.cloud.c" - + "ompute.v1.UpdateFirewallRequest\032\".google" - + ".cloud.compute.v1.Operation\"\215\001\332A\"project" - + ",firewall,firewall_resource\212N\020GlobalOper" - + "ations\202\323\344\223\002O\032:/compute/v1/projects/{proj" - + "ect}/global/firewalls/{firewall}:\021firewa" - + "ll_resource\032r\312A\026compute.googleapis.com\322A" + + "tform2\311\013\n\017GlobalAddresses\022\311\001\n\006Delete\0223.g" + + "oogle.cloud.compute.v1.DeleteGlobalAddre" + + "ssRequest\032\".google.cloud.compute.v1.Oper" + + "ation\"f\332A\017project,address\212N\020GlobalOperat" + + "ions\202\323\344\223\002;*9/compute/v1/projects/{projec" + + "t}/global/addresses/{address}\022\256\001\n\003Get\0220." + + "google.cloud.compute.v1.GetGlobalAddress" + + "Request\032 .google.cloud.compute.v1.Addres" + + "s\"S\332A\017project,address\202\323\344\223\002;\0229/compute/v1" + + "/projects/{project}/global/addresses/{ad" + + "dress}\022\332\001\n\006Insert\0223.google.cloud.compute" + + ".v1.InsertGlobalAddressRequest\032\".google." + + "cloud.compute.v1.Operation\"w\332A\030project,a" + + "ddress_resource\212N\020GlobalOperations\202\323\344\223\002C" + + "\"//compute/v1/projects/{project}/global/" + + "addresses:\020address_resource\022\244\001\n\004List\0223.g" + + "oogle.cloud.compute.v1.ListGlobalAddress" + + "esRequest\032$.google.cloud.compute.v1.Addr" + + "essList\"A\332A\007project\202\323\344\223\0021\022//compute/v1/p" + + "rojects/{project}/global/addresses\022\232\002\n\004M" + + "ove\0221.google.cloud.compute.v1.MoveGlobal" + + "AddressRequest\032\".google.cloud.compute.v1" + + ".Operation\"\272\001\332A6project,address,global_a" + + "ddresses_move_request_resource\212N\020GlobalO" + + "perations\202\323\344\223\002h\">/compute/v1/projects/{p" + + "roject}/global/addresses/{address}/move:" + + "&global_addresses_move_request_resource\022" + + "\243\002\n\tSetLabels\0226.google.cloud.compute.v1." + + "SetLabelsGlobalAddressRequest\032\".google.c" + + "loud.compute.v1.Operation\"\271\001\332A3project,r" + + "esource,global_set_labels_request_resour" + + "ce\212N\020GlobalOperations\202\323\344\223\002j\"D/compute/v1" + + "/projects/{project}/global/addresses/{re" + + "source}/setLabels:\"global_set_labels_req" + + "uest_resource\032r\312A\026compute.googleapis.com" + + "\322AVhttps://www.googleapis.com/auth/compu" + + "te,https://www.googleapis.com/auth/cloud" + + "-platform2\373\016\n\025GlobalForwardingRules\022\346\001\n\006" + + "Delete\022:.google.cloud.compute.v1.DeleteG" + + "lobalForwardingRuleRequest\032\".google.clou" + + "d.compute.v1.Operation\"|\332A\027project,forwa" + + "rding_rule\212N\020GlobalOperations\202\323\344\223\002I*G/co" + + "mpute/v1/projects/{project}/global/forwa" + + "rdingRules/{forwarding_rule}\022\322\001\n\003Get\0227.g" + + "oogle.cloud.compute.v1.GetGlobalForwardi" + + "ngRuleRequest\032\'.google.cloud.compute.v1." + + "ForwardingRule\"i\332A\027project,forwarding_ru" + + "le\202\323\344\223\002I\022G/compute/v1/projects/{project}" + + "/global/forwardingRules/{forwarding_rule" + + "}\022\370\001\n\006Insert\022:.google.cloud.compute.v1.I" + + "nsertGlobalForwardingRuleRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"\215\001\332A projec" + + "t,forwarding_rule_resource\212N\020GlobalOpera" + + "tions\202\323\344\223\002Q\"5/compute/v1/projects/{proje" + + "ct}/global/forwardingRules:\030forwarding_r" + + "ule_resource\022\267\001\n\004List\0229.google.cloud.com" + + "pute.v1.ListGlobalForwardingRulesRequest" + + "\032+.google.cloud.compute.v1.ForwardingRul" + + "eList\"G\332A\007project\202\323\344\223\0027\0225/compute/v1/pro" + + "jects/{project}/global/forwardingRules\022\230" + + "\002\n\005Patch\0229.google.cloud.compute.v1.Patch" + + "GlobalForwardingRuleRequest\032\".google.clo" + + "ud.compute.v1.Operation\"\257\001\332A0project,for" + + "warding_rule,forwarding_rule_resource\212N\020" + + "GlobalOperations\202\323\344\223\002c2G/compute/v1/proj" + + "ects/{project}/global/forwardingRules/{f" + + "orwarding_rule}:\030forwarding_rule_resourc" + + "e\022\260\002\n\tSetLabels\022=.google.cloud.compute.v" + + "1.SetLabelsGlobalForwardingRuleRequest\032\"" + + ".google.cloud.compute.v1.Operation\"\277\001\332A3" + + "project,resource,global_set_labels_reque" + + "st_resource\212N\020GlobalOperations\202\323\344\223\002p\"J/c" + + "ompute/v1/projects/{project}/global/forw" + + "ardingRules/{resource}/setLabels:\"global" + + "_set_labels_request_resource\022\254\002\n\tSetTarg" + + "et\022=.google.cloud.compute.v1.SetTargetGl" + + "obalForwardingRuleRequest\032\".google.cloud" + + ".compute.v1.Operation\"\273\001\332A1project,forwa" + + "rding_rule,target_reference_resource\212N\020G" + + "lobalOperations\202\323\344\223\002n\"Q/compute/v1/proje" + + "cts/{project}/global/forwardingRules/{fo" + + "rwarding_rule}/setTarget:\031target_referen" + + "ce_resource\032r\312A\026compute.googleapis.com\322A" + "Vhttps://www.googleapis.com/auth/compute" + ",https://www.googleapis.com/auth/cloud-p" - + "latform2\231\021\n\017ForwardingRules\022\323\001\n\016Aggregat" - + "edList\022=.google.cloud.compute.v1.Aggrega" - + "tedListForwardingRulesRequest\0325.google.c" - + "loud.compute.v1.ForwardingRuleAggregated" - + "List\"K\332A\007project\202\323\344\223\002;\0229/compute/v1/proj" - + "ects/{project}/aggregated/forwardingRule" - + "s\022\362\001\n\006Delete\0224.google.cloud.compute.v1.D" - + "eleteForwardingRuleRequest\032\".google.clou" - + "d.compute.v1.Operation\"\215\001\332A\036project,regi" - + "on,forwarding_rule\212N\020RegionOperations\202\323\344" - + "\223\002S*Q/compute/v1/projects/{project}/regi" - + "ons/{region}/forwardingRules/{forwarding" - + "_rule}\022\335\001\n\003Get\0221.google.cloud.compute.v1" - + ".GetForwardingRuleRequest\032\'.google.cloud" - + ".compute.v1.ForwardingRule\"z\332A\036project,r" - + "egion,forwarding_rule\202\323\344\223\002S\022Q/compute/v1" - + "/projects/{project}/regions/{region}/for" - + "wardingRules/{forwarding_rule}\022\203\002\n\006Inser" - + "t\0224.google.cloud.compute.v1.InsertForwar" - + "dingRuleRequest\032\".google.cloud.compute.v" - + "1.Operation\"\236\001\332A\'project,region,forwardi" - + "ng_rule_resource\212N\020RegionOperations\202\323\344\223\002" - + "[\"?/compute/v1/projects/{project}/region" - + "s/{region}/forwardingRules:\030forwarding_r" - + "ule_resource\022\302\001\n\004List\0223.google.cloud.com" - + "pute.v1.ListForwardingRulesRequest\032+.goo" - + "gle.cloud.compute.v1.ForwardingRuleList\"" - + "X\332A\016project,region\202\323\344\223\002A\022?/compute/v1/pr" - + "ojects/{project}/regions/{region}/forwar" - + "dingRules\022\243\002\n\005Patch\0223.google.cloud.compu" - + "te.v1.PatchForwardingRuleRequest\032\".googl" - + "e.cloud.compute.v1.Operation\"\300\001\332A7projec" - + "t,region,forwarding_rule,forwarding_rule" - + "_resource\212N\020RegionOperations\202\323\344\223\002m2Q/com" - + "pute/v1/projects/{project}/regions/{regi" - + "on}/forwardingRules/{forwarding_rule}:\030f" - + "orwarding_rule_resource\022\273\002\n\tSetLabels\0227." - + "google.cloud.compute.v1.SetLabelsForward" - + "ingRuleRequest\032\".google.cloud.compute.v1" - + ".Operation\"\320\001\332A:project,region,resource," - + "region_set_labels_request_resource\212N\020Reg" - + "ionOperations\202\323\344\223\002z\"T/compute/v1/project" - + "s/{project}/regions/{region}/forwardingR" - + "ules/{resource}/setLabels:\"region_set_la" - + "bels_request_resource\022\267\002\n\tSetTarget\0227.go" - + "ogle.cloud.compute.v1.SetTargetForwardin" - + "gRuleRequest\032\".google.cloud.compute.v1.O" - + "peration\"\314\001\332A8project,region,forwarding_" - + "rule,target_reference_resource\212N\020RegionO" - + "perations\202\323\344\223\002x\"[/compute/v1/projects/{p" - + "roject}/regions/{region}/forwardingRules" - + "/{forwarding_rule}/setTarget:\031target_ref" - + "erence_resource\032r\312A\026compute.googleapis.c" - + "om\322AVhttps://www.googleapis.com/auth/com" - + "pute,https://www.googleapis.com/auth/clo" - + "ud-platform2\311\013\n\017GlobalAddresses\022\311\001\n\006Dele" - + "te\0223.google.cloud.compute.v1.DeleteGloba" - + "lAddressRequest\032\".google.cloud.compute.v" - + "1.Operation\"f\332A\017project,address\212N\020Global" - + "Operations\202\323\344\223\002;*9/compute/v1/projects/{" - + "project}/global/addresses/{address}\022\256\001\n\003" - + "Get\0220.google.cloud.compute.v1.GetGlobalA" - + "ddressRequest\032 .google.cloud.compute.v1." - + "Address\"S\332A\017project,address\202\323\344\223\002;\0229/comp" - + "ute/v1/projects/{project}/global/address" - + "es/{address}\022\332\001\n\006Insert\0223.google.cloud.c" - + "ompute.v1.InsertGlobalAddressRequest\032\".g" - + "oogle.cloud.compute.v1.Operation\"w\332A\030pro" - + "ject,address_resource\212N\020GlobalOperations" - + "\202\323\344\223\002C\"//compute/v1/projects/{project}/g" - + "lobal/addresses:\020address_resource\022\244\001\n\004Li" - + "st\0223.google.cloud.compute.v1.ListGlobalA" - + "ddressesRequest\032$.google.cloud.compute.v" - + "1.AddressList\"A\332A\007project\202\323\344\223\0021\022//comput" - + "e/v1/projects/{project}/global/addresses" - + "\022\232\002\n\004Move\0221.google.cloud.compute.v1.Move" - + "GlobalAddressRequest\032\".google.cloud.comp" - + "ute.v1.Operation\"\272\001\332A6project,address,gl" - + "obal_addresses_move_request_resource\212N\020G" - + "lobalOperations\202\323\344\223\002h\">/compute/v1/proje" - + "cts/{project}/global/addresses/{address}" - + "/move:&global_addresses_move_request_res" - + "ource\022\243\002\n\tSetLabels\0226.google.cloud.compu" - + "te.v1.SetLabelsGlobalAddressRequest\032\".go" - + "ogle.cloud.compute.v1.Operation\"\271\001\332A3pro" - + "ject,resource,global_set_labels_request_" - + "resource\212N\020GlobalOperations\202\323\344\223\002j\"D/comp" - + "ute/v1/projects/{project}/global/address" - + "es/{resource}/setLabels:\"global_set_labe" - + "ls_request_resource\032r\312A\026compute.googleap" - + "is.com\322AVhttps://www.googleapis.com/auth" - + "/compute,https://www.googleapis.com/auth" - + "/cloud-platform2\373\016\n\025GlobalForwardingRule" - + "s\022\346\001\n\006Delete\022:.google.cloud.compute.v1.D" - + "eleteGlobalForwardingRuleRequest\032\".googl" - + "e.cloud.compute.v1.Operation\"|\332A\027project" - + ",forwarding_rule\212N\020GlobalOperations\202\323\344\223\002" - + "I*G/compute/v1/projects/{project}/global" - + "/forwardingRules/{forwarding_rule}\022\322\001\n\003G" - + "et\0227.google.cloud.compute.v1.GetGlobalFo" - + "rwardingRuleRequest\032\'.google.cloud.compu" - + "te.v1.ForwardingRule\"i\332A\027project,forward" - + "ing_rule\202\323\344\223\002I\022G/compute/v1/projects/{pr" - + "oject}/global/forwardingRules/{forwardin" - + "g_rule}\022\370\001\n\006Insert\022:.google.cloud.comput" - + "e.v1.InsertGlobalForwardingRuleRequest\032\"" - + ".google.cloud.compute.v1.Operation\"\215\001\332A " - + "project,forwarding_rule_resource\212N\020Globa" - + "lOperations\202\323\344\223\002Q\"5/compute/v1/projects/" - + "{project}/global/forwardingRules:\030forwar" - + "ding_rule_resource\022\267\001\n\004List\0229.google.clo" - + "ud.compute.v1.ListGlobalForwardingRulesR" - + "equest\032+.google.cloud.compute.v1.Forward" - + "ingRuleList\"G\332A\007project\202\323\344\223\0027\0225/compute/" - + "v1/projects/{project}/global/forwardingR" - + "ules\022\230\002\n\005Patch\0229.google.cloud.compute.v1" - + ".PatchGlobalForwardingRuleRequest\032\".goog" - + "le.cloud.compute.v1.Operation\"\257\001\332A0proje" - + "ct,forwarding_rule,forwarding_rule_resou" - + "rce\212N\020GlobalOperations\202\323\344\223\002c2G/compute/v" - + "1/projects/{project}/global/forwardingRu" - + "les/{forwarding_rule}:\030forwarding_rule_r" - + "esource\022\260\002\n\tSetLabels\022=.google.cloud.com" - + "pute.v1.SetLabelsGlobalForwardingRuleReq" - + "uest\032\".google.cloud.compute.v1.Operation" - + "\"\277\001\332A3project,resource,global_set_labels" - + "_request_resource\212N\020GlobalOperations\202\323\344\223" - + "\002p\"J/compute/v1/projects/{project}/globa" - + "l/forwardingRules/{resource}/setLabels:\"" - + "global_set_labels_request_resource\022\254\002\n\tS" - + "etTarget\022=.google.cloud.compute.v1.SetTa" - + "rgetGlobalForwardingRuleRequest\032\".google" - + ".cloud.compute.v1.Operation\"\273\001\332A1project" - + ",forwarding_rule,target_reference_resour" - + "ce\212N\020GlobalOperations\202\323\344\223\002n\"Q/compute/v1" - + "/projects/{project}/global/forwardingRul" - + "es/{forwarding_rule}/setTarget:\031target_r" - + "eference_resource\032r\312A\026compute.googleapis" - + ".com\322AVhttps://www.googleapis.com/auth/c" - + "ompute,https://www.googleapis.com/auth/c" - + "loud-platform2\254\022\n\033GlobalNetworkEndpointG" - + "roups\022\274\003\n\026AttachNetworkEndpoints\022P.googl" - + "e.cloud.compute.v1.AttachNetworkEndpoint" - + "sGlobalNetworkEndpointGroupRequest\032\".goo" - + "gle.cloud.compute.v1.Operation\"\253\002\332A_proj" - + "ect,network_endpoint_group,global_networ" - + "k_endpoint_groups_attach_endpoints_reque" - + "st_resource\212N\020GlobalOperations\202\323\344\223\002\257\001\"k/" - + "compute/v1/projects/{project}/global/net" - + "workEndpointGroups/{network_endpoint_gro" - + "up}/attachNetworkEndpoints:@global_netwo" - + "rk_endpoint_groups_attach_endpoints_requ" - + "est_resource\022\201\002\n\006Delete\022@.google.cloud.c" - + "ompute.v1.DeleteGlobalNetworkEndpointGro" - + "upRequest\032\".google.cloud.compute.v1.Oper" - + "ation\"\220\001\332A\036project,network_endpoint_grou" - + "p\212N\020GlobalOperations\202\323\344\223\002V*T/compute/v1/" - + "projects/{project}/global/networkEndpoin" - + "tGroups/{network_endpoint_group}\022\274\003\n\026Det" - + "achNetworkEndpoints\022P.google.cloud.compu" - + "te.v1.DetachNetworkEndpointsGlobalNetwor" - + "kEndpointGroupRequest\032\".google.cloud.com" - + "pute.v1.Operation\"\253\002\332A_project,network_e" - + "ndpoint_group,global_network_endpoint_gr" - + "oups_detach_endpoints_request_resource\212N" - + "\020GlobalOperations\202\323\344\223\002\257\001\"k/compute/v1/pr" - + "ojects/{project}/global/networkEndpointG" - + "roups/{network_endpoint_group}/detachNet" - + "workEndpoints:@global_network_endpoint_g" - + "roups_detach_endpoints_request_resource\022" - + "\362\001\n\003Get\022=.google.cloud.compute.v1.GetGlo" - + "balNetworkEndpointGroupRequest\032-.google." - + "cloud.compute.v1.NetworkEndpointGroup\"}\332" - + "A\036project,network_endpoint_group\202\323\344\223\002V\022T" - + "/compute/v1/projects/{project}/global/ne" - + "tworkEndpointGroups/{network_endpoint_gr" - + "oup}\022\222\002\n\006Insert\022@.google.cloud.compute.v" - + "1.InsertGlobalNetworkEndpointGroupReques" - + "t\032\".google.cloud.compute.v1.Operation\"\241\001" - + "\332A\'project,network_endpoint_group_resour" - + "ce\212N\020GlobalOperations\202\323\344\223\002^\";/compute/v1" - + "/projects/{project}/global/networkEndpoi" - + "ntGroups:\037network_endpoint_group_resourc" - + "e\022\311\001\n\004List\022?.google.cloud.compute.v1.Lis" - + "tGlobalNetworkEndpointGroupsRequest\0321.go" - + "ogle.cloud.compute.v1.NetworkEndpointGro" - + "upList\"M\332A\007project\202\323\344\223\002=\022;/compute/v1/pr" - + "ojects/{project}/global/networkEndpointG" - + "roups\022\300\002\n\024ListNetworkEndpoints\022O.google." - + "cloud.compute.v1.ListNetworkEndpointsGlo" - + "balNetworkEndpointGroupsRequest\032B.google" - + ".cloud.compute.v1.NetworkEndpointGroupsL" - + "istNetworkEndpoints\"\222\001\332A\036project,network" - + "_endpoint_group\202\323\344\223\002k\"i/compute/v1/proje" + + "latform2\254\022\n\033GlobalNetworkEndpointGroups\022" + + "\274\003\n\026AttachNetworkEndpoints\022P.google.clou" + + "d.compute.v1.AttachNetworkEndpointsGloba" + + "lNetworkEndpointGroupRequest\032\".google.cl" + + "oud.compute.v1.Operation\"\253\002\332A_project,ne" + + "twork_endpoint_group,global_network_endp" + + "oint_groups_attach_endpoints_request_res" + + "ource\212N\020GlobalOperations\202\323\344\223\002\257\001\"k/comput" + + "e/v1/projects/{project}/global/networkEn" + + "dpointGroups/{network_endpoint_group}/at" + + "tachNetworkEndpoints:@global_network_end" + + "point_groups_attach_endpoints_request_re" + + "source\022\201\002\n\006Delete\022@.google.cloud.compute" + + ".v1.DeleteGlobalNetworkEndpointGroupRequ" + + "est\032\".google.cloud.compute.v1.Operation\"" + + "\220\001\332A\036project,network_endpoint_group\212N\020Gl" + + "obalOperations\202\323\344\223\002V*T/compute/v1/projec" + + "ts/{project}/global/networkEndpointGroup" + + "s/{network_endpoint_group}\022\274\003\n\026DetachNet" + + "workEndpoints\022P.google.cloud.compute.v1." + + "DetachNetworkEndpointsGlobalNetworkEndpo" + + "intGroupRequest\032\".google.cloud.compute.v" + + "1.Operation\"\253\002\332A_project,network_endpoin" + + "t_group,global_network_endpoint_groups_d" + + "etach_endpoints_request_resource\212N\020Globa" + + "lOperations\202\323\344\223\002\257\001\"k/compute/v1/projects" + + "/{project}/global/networkEndpointGroups/" + + "{network_endpoint_group}/detachNetworkEn" + + "dpoints:@global_network_endpoint_groups_" + + "detach_endpoints_request_resource\022\362\001\n\003Ge" + + "t\022=.google.cloud.compute.v1.GetGlobalNet" + + "workEndpointGroupRequest\032-.google.cloud." + + "compute.v1.NetworkEndpointGroup\"}\332A\036proj" + + "ect,network_endpoint_group\202\323\344\223\002V\022T/compu" + + "te/v1/projects/{project}/global/networkE" + + "ndpointGroups/{network_endpoint_group}\022\222" + + "\002\n\006Insert\022@.google.cloud.compute.v1.Inse" + + "rtGlobalNetworkEndpointGroupRequest\032\".go" + + "ogle.cloud.compute.v1.Operation\"\241\001\332A\'pro" + + "ject,network_endpoint_group_resource\212N\020G" + + "lobalOperations\202\323\344\223\002^\";/compute/v1/proje" + "cts/{project}/global/networkEndpointGrou" - + "ps/{network_endpoint_group}/listNetworkE" - + "ndpoints\032r\312A\026compute.googleapis.com\322AVht" - + "tps://www.googleapis.com/auth/compute,ht" - + "tps://www.googleapis.com/auth/cloud-plat" - + "form2\320\010\n\020GlobalOperations\022\312\001\n\016Aggregated" - + "List\022>.google.cloud.compute.v1.Aggregate" - + "dListGlobalOperationsRequest\0320.google.cl" - + "oud.compute.v1.OperationAggregatedList\"F" - + "\332A\007project\202\323\344\223\0026\0224/compute/v1/projects/{" - + "project}/aggregated/operations\022\321\001\n\006Delet" - + "e\0225.google.cloud.compute.v1.DeleteGlobal" - + "OperationRequest\0326.google.cloud.compute." - + "v1.DeleteGlobalOperationResponse\"X\332A\021pro" - + "ject,operation\202\323\344\223\002>*\022.google.cloud.compute.v1.Ge" - + "tGlobalOrganizationOperationRequest\032\".go" - + "ogle.cloud.compute.v1.Operation\"J\332A\toper" - + "ation\220N\001\202\323\344\223\0025\0223/compute/v1/locations/gl" - + "obal/operations/{operation}\022\244\001\n\004List\022@.g" - + "oogle.cloud.compute.v1.ListGlobalOrganiz" - + "ationOperationsRequest\032&.google.cloud.co" - + "mpute.v1.OperationList\"2\332A\000\202\323\344\223\002)\022\'/comp" - + "ute/v1/locations/global/operations\032r\312A\026c" - + "ompute.googleapis.com\322AVhttps://www.goog" - + "leapis.com/auth/compute,https://www.goog" - + "leapis.com/auth/cloud-platform2\321\013\n\035Globa" - + "lPublicDelegatedPrefixes\022\207\002\n\006Delete\022B.go" - + "ogle.cloud.compute.v1.DeleteGlobalPublic" - + "DelegatedPrefixeRequest\032\".google.cloud.c" - + "ompute.v1.Operation\"\224\001\332A\037project,public_" - + "delegated_prefix\212N\020GlobalOperations\202\323\344\223\002" - + "Y*W/compute/v1/projects/{project}/global" - + "/publicDelegatedPrefixes/{public_delegat" - + "ed_prefix}\022\372\001\n\003Get\022?.google.cloud.comput" - + "e.v1.GetGlobalPublicDelegatedPrefixeRequ" - + "est\032..google.cloud.compute.v1.PublicDele" - + "gatedPrefix\"\201\001\332A\037project,public_delegate" - + "d_prefix\202\323\344\223\002Y\022W/compute/v1/projects/{pr" - + "oject}/global/publicDelegatedPrefixes/{p" - + "ublic_delegated_prefix}\022\230\002\n\006Insert\022B.goo" - + "gle.cloud.compute.v1.InsertGlobalPublicD" - + "elegatedPrefixeRequest\032\".google.cloud.co" - + "mpute.v1.Operation\"\245\001\332A(project,public_d" - + "elegated_prefix_resource\212N\020GlobalOperati" - + "ons\202\323\344\223\002a\"=/compute/v1/projects/{project" - + "}/global/publicDelegatedPrefixes: public" - + "_delegated_prefix_resource\022\316\001\n\004List\022A.go" - + "ogle.cloud.compute.v1.ListGlobalPublicDe" - + "legatedPrefixesRequest\0322.google.cloud.co" - + "mpute.v1.PublicDelegatedPrefixList\"O\332A\007p" - + "roject\202\323\344\223\002?\022=/compute/v1/projects/{proj" - + "ect}/global/publicDelegatedPrefixes\022\310\002\n\005" - + "Patch\022A.google.cloud.compute.v1.PatchGlo" - + "balPublicDelegatedPrefixeRequest\032\".googl" - + "e.cloud.compute.v1.Operation\"\327\001\332A@projec" - + "t,public_delegated_prefix,public_delegat" + + "ps:\037network_endpoint_group_resource\022\311\001\n\004" + + "List\022?.google.cloud.compute.v1.ListGloba" + + "lNetworkEndpointGroupsRequest\0321.google.c" + + "loud.compute.v1.NetworkEndpointGroupList" + + "\"M\332A\007project\202\323\344\223\002=\022;/compute/v1/projects" + + "/{project}/global/networkEndpointGroups\022" + + "\300\002\n\024ListNetworkEndpoints\022O.google.cloud." + + "compute.v1.ListNetworkEndpointsGlobalNet" + + "workEndpointGroupsRequest\032B.google.cloud" + + ".compute.v1.NetworkEndpointGroupsListNet" + + "workEndpoints\"\222\001\332A\036project,network_endpo" + + "int_group\202\323\344\223\002k\"i/compute/v1/projects/{p" + + "roject}/global/networkEndpointGroups/{ne" + + "twork_endpoint_group}/listNetworkEndpoin" + + "ts\032r\312A\026compute.googleapis.com\322AVhttps://" + + "www.googleapis.com/auth/compute,https://" + + "www.googleapis.com/auth/cloud-platform2\320" + + "\010\n\020GlobalOperations\022\312\001\n\016AggregatedList\022>" + + ".google.cloud.compute.v1.AggregatedListG" + + "lobalOperationsRequest\0320.google.cloud.co" + + "mpute.v1.OperationAggregatedList\"F\332A\007pro" + + "ject\202\323\344\223\0026\0224/compute/v1/projects/{projec" + + "t}/aggregated/operations\022\321\001\n\006Delete\0225.go" + + "ogle.cloud.compute.v1.DeleteGlobalOperat" + + "ionRequest\0326.google.cloud.compute.v1.Del" + + "eteGlobalOperationResponse\"X\332A\021project,o" + + "peration\202\323\344\223\002>*\022.google.cloud.compute.v1.GetGloba" + + "lOrganizationOperationRequest\032\".google.c" + + "loud.compute.v1.Operation\"J\332A\toperation\220" + + "N\001\202\323\344\223\0025\0223/compute/v1/locations/global/o" + + "perations/{operation}\022\244\001\n\004List\022@.google." + + "cloud.compute.v1.ListGlobalOrganizationO" + + "perationsRequest\032&.google.cloud.compute." + + "v1.OperationList\"2\332A\000\202\323\344\223\002)\022\'/compute/v1" + + "/locations/global/operations\032r\312A\026compute" + + ".googleapis.com\322AVhttps://www.googleapis" + + ".com/auth/compute,https://www.googleapis" + + ".com/auth/cloud-platform2\321\013\n\035GlobalPubli" + + "cDelegatedPrefixes\022\207\002\n\006Delete\022B.google.c" + + "loud.compute.v1.DeleteGlobalPublicDelega" + + "tedPrefixeRequest\032\".google.cloud.compute" + + ".v1.Operation\"\224\001\332A\037project,public_delega" + + "ted_prefix\212N\020GlobalOperations\202\323\344\223\002Y*W/co" + + "mpute/v1/projects/{project}/global/publi" + + "cDelegatedPrefixes/{public_delegated_pre" + + "fix}\022\372\001\n\003Get\022?.google.cloud.compute.v1.G" + + "etGlobalPublicDelegatedPrefixeRequest\032.." + + "google.cloud.compute.v1.PublicDelegatedP" + + "refix\"\201\001\332A\037project,public_delegated_pref" + + "ix\202\323\344\223\002Y\022W/compute/v1/projects/{project}" + + "/global/publicDelegatedPrefixes/{public_" + + "delegated_prefix}\022\230\002\n\006Insert\022B.google.cl" + + "oud.compute.v1.InsertGlobalPublicDelegat" + + "edPrefixeRequest\032\".google.cloud.compute." + + "v1.Operation\"\245\001\332A(project,public_delegat" + "ed_prefix_resource\212N\020GlobalOperations\202\323\344" - + "\223\002{2W/compute/v1/projects/{project}/glob" - + "al/publicDelegatedPrefixes/{public_deleg" - + "ated_prefix}: public_delegated_prefix_re" - + "source\032r\312A\026compute.googleapis.com\322AVhttp" - + "s://www.googleapis.com/auth/compute,http" - + "s://www.googleapis.com/auth/cloud-platfo" - + "rm2\203\r\n\014HealthChecks\022\313\001\n\016AggregatedList\022:" - + ".google.cloud.compute.v1.AggregatedListH" - + "ealthChecksRequest\0323.google.cloud.comput" - + "e.v1.HealthChecksAggregatedList\"H\332A\007proj" - + "ect\202\323\344\223\0028\0226/compute/v1/projects/{project" - + "}/aggregated/healthChecks\022\324\001\n\006Delete\0221.g" - + "oogle.cloud.compute.v1.DeleteHealthCheck" - + "Request\032\".google.cloud.compute.v1.Operat" - + "ion\"s\332A\024project,health_check\212N\020GlobalOpe" - + "rations\202\323\344\223\002C*A/compute/v1/projects/{pro" - + "ject}/global/healthChecks/{health_check}" - + "\022\275\001\n\003Get\022..google.cloud.compute.v1.GetHe" - + "althCheckRequest\032$.google.cloud.compute." - + "v1.HealthCheck\"`\332A\024project,health_check\202" - + "\323\344\223\002C\022A/compute/v1/projects/{project}/gl" - + "obal/healthChecks/{health_check}\022\346\001\n\006Ins" - + "ert\0221.google.cloud.compute.v1.InsertHeal" - + "thCheckRequest\032\".google.cloud.compute.v1" - + ".Operation\"\204\001\332A\035project,health_check_res" - + "ource\212N\020GlobalOperations\202\323\344\223\002K\"2/compute" - + "/v1/projects/{project}/global/healthChec" - + "ks:\025health_check_resource\022\250\001\n\004List\0220.goo" - + "gle.cloud.compute.v1.ListHealthChecksReq" - + "uest\032(.google.cloud.compute.v1.HealthChe" - + "ckList\"D\332A\007project\202\323\344\223\0024\0222/compute/v1/pr" - + "ojects/{project}/global/healthChecks\022\200\002\n" - + "\005Patch\0220.google.cloud.compute.v1.PatchHe" - + "althCheckRequest\032\".google.cloud.compute." - + "v1.Operation\"\240\001\332A*project,health_check,h" - + "ealth_check_resource\212N\020GlobalOperations\202" - + "\323\344\223\002Z2A/compute/v1/projects/{project}/gl" - + "obal/healthChecks/{health_check}:\025health" - + "_check_resource\022\202\002\n\006Update\0221.google.clou" - + "d.compute.v1.UpdateHealthCheckRequest\032\"." - + "google.cloud.compute.v1.Operation\"\240\001\332A*p" - + "roject,health_check,health_check_resourc" - + "e\212N\020GlobalOperations\202\323\344\223\002Z\032A/compute/v1/" - + "projects/{project}/global/healthChecks/{" - + "health_check}:\025health_check_resource\032r\312A" - + "\026compute.googleapis.com\322AVhttps://www.go" - + "ogleapis.com/auth/compute,https://www.go" - + "ogleapis.com/auth/cloud-platform2\204\003\n\020Ima" - + "geFamilyViews\022\310\001\n\003Get\0222.google.cloud.com" - + "pute.v1.GetImageFamilyViewRequest\032(.goog" - + "le.cloud.compute.v1.ImageFamilyView\"c\332A\023" - + "project,zone,family\202\323\344\223\002G\022E/compute/v1/p" - + "rojects/{project}/zones/{zone}/imageFami" - + "lyViews/{family}\032\244\001\312A\026compute.googleapis" - + ".com\322A\207\001https://www.googleapis.com/auth/" - + "compute.readonly,https://www.googleapis." - + "com/auth/compute,https://www.googleapis." - + "com/auth/cloud-platform2\374\023\n\006Images\022\272\001\n\006D" - + "elete\022+.google.cloud.compute.v1.DeleteIm" - + "ageRequest\032\".google.cloud.compute.v1.Ope" - + "ration\"_\332A\rproject,image\212N\020GlobalOperati" - + "ons\202\323\344\223\0026*4/compute/v1/projects/{project" - + "}/global/images/{image}\022\204\002\n\tDeprecate\022.." - + "google.cloud.compute.v1.DeprecateImageRe" - + "quest\032\".google.cloud.compute.v1.Operatio" - + "n\"\242\001\332A)project,image,deprecation_status_" - + "resource\212N\020GlobalOperations\202\323\344\223\002]\">/comp" - + "ute/v1/projects/{project}/global/images/" - + "{image}/deprecate:\033deprecation_status_re" - + "source\022\235\001\n\003Get\022(.google.cloud.compute.v1" - + ".GetImageRequest\032\036.google.cloud.compute." - + "v1.Image\"L\332A\rproject,image\202\323\344\223\0026\0224/compu" - + "te/v1/projects/{project}/global/images/{" - + "image}\022\272\001\n\rGetFromFamily\0222.google.cloud." - + "compute.v1.GetFromFamilyImageRequest\032\036.g" - + "oogle.cloud.compute.v1.Image\"U\332A\016project" - + ",family\202\323\344\223\002>\022\",/compute/v1/projects/" - + "{project}/global/images:\016image_resource\022" - + "\226\001\n\004List\022*.google.cloud.compute.v1.ListI" - + "magesRequest\032\".google.cloud.compute.v1.I" - + "mageList\">\332A\007project\202\323\344\223\002.\022,/compute/v1/" - + "projects/{project}/global/images\022\327\001\n\005Pat" - + "ch\022*.google.cloud.compute.v1.PatchImageR" - + "equest\032\".google.cloud.compute.v1.Operati" - + "on\"~\332A\034project,image,image_resource\212N\020Gl" - + "obalOperations\202\323\344\223\002F24/compute/v1/projec" - + "ts/{project}/global/images/{image}:\016imag" - + "e_resource\022\213\002\n\014SetIamPolicy\0221.google.clo" - + "ud.compute.v1.SetIamPolicyImageRequest\032\037", - ".google.cloud.compute.v1.Policy\"\246\001\332A3pro" - + "ject,resource,global_set_policy_request_" - + "resource\202\323\344\223\002j\"D/compute/v1/projects/{pr" - + "oject}/global/images/{resource}/setIamPo" - + "licy:\"global_set_policy_request_resource" - + "\022\230\002\n\tSetLabels\022..google.cloud.compute.v1" - + ".SetLabelsImageRequest\032\".google.cloud.co" - + "mpute.v1.Operation\"\266\001\332A3project,resource" - + ",global_set_labels_request_resource\212N\020Gl" - + "obalOperations\202\323\344\223\002g\"A/compute/v1/projec" - + "ts/{project}/global/images/{resource}/se" - + "tLabels:\"global_set_labels_request_resou" - + "rce\022\254\002\n\022TestIamPermissions\0227.google.clou" - + "d.compute.v1.TestIamPermissionsImageRequ" - + "est\0320.google.cloud.compute.v1.TestPermis" - + "sionsResponse\"\252\001\332A2project,resource,test" - + "_permissions_request_resource\202\323\344\223\002o\"J/co" - + "mpute/v1/projects/{project}/global/image" - + "s/{resource}/testIamPermissions:!test_pe" - + "rmissions_request_resource\032r\312A\026compute.g" - + "oogleapis.com\322AVhttps://www.googleapis.c" - + "om/auth/compute,https://www.googleapis.c" - + "om/auth/cloud-platform2\242\016\n\"InstanceGroup" - + "ManagerResizeRequests\022\311\002\n\006Cancel\022G.googl" - + "e.cloud.compute.v1.CancelInstanceGroupMa" - + "nagerResizeRequestRequest\032\".google.cloud" - + ".compute.v1.Operation\"\321\001\332A2project,zone," - + "instance_group_manager,resize_request\212N\016" - + "ZoneOperations\202\323\344\223\002\204\001\"\201\001/compute/v1/proj" - + "ects/{project}/zones/{zone}/instanceGrou" - + "pManagers/{instance_group_manager}/resiz" - + "eRequests/{resize_request}/cancel\022\300\002\n\006De" - + "lete\022G.google.cloud.compute.v1.DeleteIns" - + "tanceGroupManagerResizeRequestRequest\032\"." - + "google.cloud.compute.v1.Operation\"\310\001\332A2p" - + "roject,zone,instance_group_manager,resiz" - + "e_request\212N\016ZoneOperations\202\323\344\223\002|*z/compu" - + "te/v1/projects/{project}/zones/{zone}/in" - + "stanceGroupManagers/{instance_group_mana" - + "ger}/resizeRequests/{resize_request}\022\301\002\n" - + "\003Get\022D.google.cloud.compute.v1.GetInstan" - + "ceGroupManagerResizeRequestRequest\032:.goo" - + "gle.cloud.compute.v1.InstanceGroupManage" - + "rResizeRequest\"\267\001\332A2project,zone,instanc" - + "e_group_manager,resize_request\202\323\344\223\002|\022z/c" - + "ompute/v1/projects/{project}/zones/{zone" - + "}/instanceGroupManagers/{instance_group_" - + "manager}/resizeRequests/{resize_request}" - + "\022\200\003\n\006Insert\022G.google.cloud.compute.v1.In" - + "sertInstanceGroupManagerResizeRequestReq" + + "\223\002a\"=/compute/v1/projects/{project}/glob" + + "al/publicDelegatedPrefixes: public_deleg" + + "ated_prefix_resource\022\316\001\n\004List\022A.google.c" + + "loud.compute.v1.ListGlobalPublicDelegate" + + "dPrefixesRequest\0322.google.cloud.compute." + + "v1.PublicDelegatedPrefixList\"O\332A\007project" + + "\202\323\344\223\002?\022=/compute/v1/projects/{project}/g" + + "lobal/publicDelegatedPrefixes\022\310\002\n\005Patch\022" + + "A.google.cloud.compute.v1.PatchGlobalPub" + + "licDelegatedPrefixeRequest\032\".google.clou" + + "d.compute.v1.Operation\"\327\001\332A@project,publ" + + "ic_delegated_prefix,public_delegated_pre" + + "fix_resource\212N\020GlobalOperations\202\323\344\223\002{2W/" + + "compute/v1/projects/{project}/global/pub" + + "licDelegatedPrefixes/{public_delegated_p" + + "refix}: public_delegated_prefix_resource" + + "\032r\312A\026compute.googleapis.com\322AVhttps://ww" + + "w.googleapis.com/auth/compute,https://ww" + + "w.googleapis.com/auth/cloud-platform2\203\r\n" + + "\014HealthChecks\022\313\001\n\016AggregatedList\022:.googl" + + "e.cloud.compute.v1.AggregatedListHealthC" + + "hecksRequest\0323.google.cloud.compute.v1.H" + + "ealthChecksAggregatedList\"H\332A\007project\202\323\344" + + "\223\0028\0226/compute/v1/projects/{project}/aggr" + + "egated/healthChecks\022\324\001\n\006Delete\0221.google." + + "cloud.compute.v1.DeleteHealthCheckReques" + + "t\032\".google.cloud.compute.v1.Operation\"s\332" + + "A\024project,health_check\212N\020GlobalOperation" + + "s\202\323\344\223\002C*A/compute/v1/projects/{project}/" + + "global/healthChecks/{health_check}\022\275\001\n\003G" + + "et\022..google.cloud.compute.v1.GetHealthCh" + + "eckRequest\032$.google.cloud.compute.v1.Hea" + + "lthCheck\"`\332A\024project,health_check\202\323\344\223\002C\022" + + "A/compute/v1/projects/{project}/global/h" + + "ealthChecks/{health_check}\022\346\001\n\006Insert\0221." + + "google.cloud.compute.v1.InsertHealthChec" + + "kRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"\204\001\332A\035project,health_check_resource\212" + + "N\020GlobalOperations\202\323\344\223\002K\"2/compute/v1/pr" + + "ojects/{project}/global/healthChecks:\025he" + + "alth_check_resource\022\250\001\n\004List\0220.google.cl" + + "oud.compute.v1.ListHealthChecksRequest\032(" + + ".google.cloud.compute.v1.HealthCheckList" + + "\"D\332A\007project\202\323\344\223\0024\0222/compute/v1/projects" + + "/{project}/global/healthChecks\022\200\002\n\005Patch" + + "\0220.google.cloud.compute.v1.PatchHealthCh" + + "eckRequest\032\".google.cloud.compute.v1.Ope" + + "ration\"\240\001\332A*project,health_check,health_" + + "check_resource\212N\020GlobalOperations\202\323\344\223\002Z2" + + "A/compute/v1/projects/{project}/global/h" + + "ealthChecks/{health_check}:\025health_check" + + "_resource\022\202\002\n\006Update\0221.google.cloud.comp" + + "ute.v1.UpdateHealthCheckRequest\032\".google" + + ".cloud.compute.v1.Operation\"\240\001\332A*project" + + ",health_check,health_check_resource\212N\020Gl" + + "obalOperations\202\323\344\223\002Z\032A/compute/v1/projec" + + "ts/{project}/global/healthChecks/{health" + + "_check}:\025health_check_resource\032r\312A\026compu" + + "te.googleapis.com\322AVhttps://www.googleap" + + "is.com/auth/compute,https://www.googleap" + + "is.com/auth/cloud-platform2\204\003\n\020ImageFami" + + "lyViews\022\310\001\n\003Get\0222.google.cloud.compute.v" + + "1.GetImageFamilyViewRequest\032(.google.clo" + + "ud.compute.v1.ImageFamilyView\"c\332A\023projec" + + "t,zone,family\202\323\344\223\002G\022E/compute/v1/project" + + "s/{project}/zones/{zone}/imageFamilyView" + + "s/{family}\032\244\001\312A\026compute.googleapis.com\322A" + + "\207\001https://www.googleapis.com/auth/comput" + + "e.readonly,https://www.googleapis.com/au" + + "th/compute,https://www.googleapis.com/au" + + "th/cloud-platform2\374\023\n\006Images\022\272\001\n\006Delete\022" + + "+.google.cloud.compute.v1.DeleteImageReq" + "uest\032\".google.cloud.compute.v1.Operation" - + "\"\210\002\332ARproject,zone,instance_group_manage" - + "r,instance_group_manager_resize_request_" - + "resource\212N\016ZoneOperations\202\323\344\223\002\233\001\"i/compu" - + "te/v1/projects/{project}/zones/{zone}/in" - + "stanceGroupManagers/{instance_group_mana" - + "ger}/resizeRequests:.instance_group_mana" - + "ger_resize_request_resource\022\261\002\n\004List\022F.g" - + "oogle.cloud.compute.v1.ListInstanceGroup" - + "ManagerResizeRequestsRequest\032G.google.cl" + + "\"_\332A\rproject,image\212N\020GlobalOperations\202\323\344" + + "\223\0026*4/compute/v1/projects/{project}/glob" + + "al/images/{image}\022\204\002\n\tDeprecate\022..google" + + ".cloud.compute.v1.DeprecateImageRequest\032" + + "\".google.cloud.compute.v1.Operation\"\242\001\332A" + + ")project,image,deprecation_status_resour" + + "ce\212N\020GlobalOperations\202\323\344\223\002]\">/compute/v1" + + "/projects/{project}/global/images/{image", + "}/deprecate:\033deprecation_status_resource" + + "\022\235\001\n\003Get\022(.google.cloud.compute.v1.GetIm" + + "ageRequest\032\036.google.cloud.compute.v1.Ima" + + "ge\"L\332A\rproject,image\202\323\344\223\0026\0224/compute/v1/" + + "projects/{project}/global/images/{image}" + + "\022\272\001\n\rGetFromFamily\0222.google.cloud.comput" + + "e.v1.GetFromFamilyImageRequest\032\036.google." + + "cloud.compute.v1.Image\"U\332A\016project,famil" + + "y\202\323\344\223\002>\022\",/compute/v1/projects/{proje" + + "ct}/global/images:\016image_resource\022\226\001\n\004Li" + + "st\022*.google.cloud.compute.v1.ListImagesR" + + "equest\032\".google.cloud.compute.v1.ImageLi" + + "st\">\332A\007project\202\323\344\223\002.\022,/compute/v1/projec" + + "ts/{project}/global/images\022\327\001\n\005Patch\022*.g" + + "oogle.cloud.compute.v1.PatchImageRequest" + + "\032\".google.cloud.compute.v1.Operation\"~\332A" + + "\034project,image,image_resource\212N\020GlobalOp" + + "erations\202\323\344\223\002F24/compute/v1/projects/{pr" + + "oject}/global/images/{image}:\016image_reso" + + "urce\022\213\002\n\014SetIamPolicy\0221.google.cloud.com" + + "pute.v1.SetIamPolicyImageRequest\032\037.googl" + + "e.cloud.compute.v1.Policy\"\246\001\332A3project,r" + + "esource,global_set_policy_request_resour" + + "ce\202\323\344\223\002j\"D/compute/v1/projects/{project}" + + "/global/images/{resource}/setIamPolicy:\"" + + "global_set_policy_request_resource\022\230\002\n\tS" + + "etLabels\022..google.cloud.compute.v1.SetLa" + + "belsImageRequest\032\".google.cloud.compute." + + "v1.Operation\"\266\001\332A3project,resource,globa" + + "l_set_labels_request_resource\212N\020GlobalOp" + + "erations\202\323\344\223\002g\"A/compute/v1/projects/{pr" + + "oject}/global/images/{resource}/setLabel" + + "s:\"global_set_labels_request_resource\022\254\002" + + "\n\022TestIamPermissions\0227.google.cloud.comp" + + "ute.v1.TestIamPermissionsImageRequest\0320." + + "google.cloud.compute.v1.TestPermissionsR" + + "esponse\"\252\001\332A2project,resource,test_permi" + + "ssions_request_resource\202\323\344\223\002o\"J/compute/" + + "v1/projects/{project}/global/images/{res" + + "ource}/testIamPermissions:!test_permissi" + + "ons_request_resource\032r\312A\026compute.googlea" + + "pis.com\322AVhttps://www.googleapis.com/aut" + + "h/compute,https://www.googleapis.com/aut" + + "h/cloud-platform2\242\016\n\"InstanceGroupManage" + + "rResizeRequests\022\311\002\n\006Cancel\022G.google.clou" + + "d.compute.v1.CancelInstanceGroupManagerR" + + "esizeRequestRequest\032\".google.cloud.compu" + + "te.v1.Operation\"\321\001\332A2project,zone,instan" + + "ce_group_manager,resize_request\212N\016ZoneOp" + + "erations\202\323\344\223\002\204\001\"\201\001/compute/v1/projects/{" + + "project}/zones/{zone}/instanceGroupManag" + + "ers/{instance_group_manager}/resizeReque" + + "sts/{resize_request}/cancel\022\300\002\n\006Delete\022G" + + ".google.cloud.compute.v1.DeleteInstanceG" + + "roupManagerResizeRequestRequest\032\".google" + + ".cloud.compute.v1.Operation\"\310\001\332A2project" + + ",zone,instance_group_manager,resize_requ" + + "est\212N\016ZoneOperations\202\323\344\223\002|*z/compute/v1/" + + "projects/{project}/zones/{zone}/instance" + + "GroupManagers/{instance_group_manager}/r" + + "esizeRequests/{resize_request}\022\301\002\n\003Get\022D" + + ".google.cloud.compute.v1.GetInstanceGrou" + + "pManagerResizeRequestRequest\032:.google.cl" + "oud.compute.v1.InstanceGroupManagerResiz" - + "eRequestsListResponse\"\227\001\332A#project,zone," - + "instance_group_manager\202\323\344\223\002k\022i/compute/v" - + "1/projects/{project}/zones/{zone}/instan" - + "ceGroupManagers/{instance_group_manager}" - + "/resizeRequests\032r\312A\026compute.googleapis.c" - + "om\322AVhttps://www.googleapis.com/auth/com" - + "pute,https://www.googleapis.com/auth/clo" - + "ud-platform2\325E\n\025InstanceGroupManagers\022\241\003" - + "\n\020AbandonInstances\022D.google.cloud.comput" - + "e.v1.AbandonInstancesInstanceGroupManage" - + "rRequest\032\".google.cloud.compute.v1.Opera" - + "tion\"\242\002\332A^project,zone,instance_group_ma" - + "nager,instance_group_managers_abandon_in" - + "stances_request_resource\212N\016ZoneOperation" - + "s\202\323\344\223\002\251\001\"k/compute/v1/projects/{project}" - + "/zones/{zone}/instanceGroupManagers/{ins" - + "tance_group_manager}/abandonInstances::i" - + "nstance_group_managers_abandon_instances" - + "_request_resource\022\345\001\n\016AggregatedList\022C.g" - + "oogle.cloud.compute.v1.AggregatedListIns" - + "tanceGroupManagersRequest\032;.google.cloud" - + ".compute.v1.InstanceGroupManagerAggregat" - + "edList\"Q\332A\007project\202\323\344\223\002A\022?/compute/v1/pr" - + "ojects/{project}/aggregated/instanceGrou" - + "pManagers\022\256\003\n\027ApplyUpdatesToInstances\022K." - + "google.cloud.compute.v1.ApplyUpdatesToIn" - + "stancesInstanceGroupManagerRequest\032\".goo" - + "gle.cloud.compute.v1.Operation\"\241\002\332AZproj" - + "ect,zone,instance_group_manager,instance" - + "_group_managers_apply_updates_request_re" - + "source\212N\016ZoneOperations\202\323\344\223\002\254\001\"r/compute" - + "/v1/projects/{project}/zones/{zone}/inst" - + "anceGroupManagers/{instance_group_manage" - + "r}/applyUpdatesToInstances:6instance_gro" - + "up_managers_apply_updates_request_resour" - + "ce\022\234\003\n\017CreateInstances\022C.google.cloud.co" - + "mpute.v1.CreateInstancesInstanceGroupMan" - + "agerRequest\032\".google.cloud.compute.v1.Op" - + "eration\"\237\002\332A]project,zone,instance_group" - + "_manager,instance_group_managers_create_" - + "instances_request_resource\212N\016ZoneOperati" - + "ons\202\323\344\223\002\247\001\"j/compute/v1/projects/{projec" - + "t}/zones/{zone}/instanceGroupManagers/{i" - + "nstance_group_manager}/createInstances:9" - + "instance_group_managers_create_instances" - + "_request_resource\022\204\002\n\006Delete\022:.google.cl" - + "oud.compute.v1.DeleteInstanceGroupManage" - + "rRequest\032\".google.cloud.compute.v1.Opera" - + "tion\"\231\001\332A#project,zone,instance_group_ma" - + "nager\212N\016ZoneOperations\202\323\344\223\002\\*Z/compute/v" - + "1/projects/{project}/zones/{zone}/instan" - + "ceGroupManagers/{instance_group_manager}" - + "\022\234\003\n\017DeleteInstances\022C.google.cloud.comp" - + "ute.v1.DeleteInstancesInstanceGroupManag" - + "erRequest\032\".google.cloud.compute.v1.Oper" - + "ation\"\237\002\332A]project,zone,instance_group_m" - + "anager,instance_group_managers_delete_in" - + "stances_request_resource\212N\016ZoneOperation" - + "s\202\323\344\223\002\247\001\"j/compute/v1/projects/{project}" - + "/zones/{zone}/instanceGroupManagers/{ins" - + "tance_group_manager}/deleteInstances:9in" - + "stance_group_managers_delete_instances_r" - + "equest_resource\022\305\003\n\030DeletePerInstanceCon" - + "figs\022L.google.cloud.compute.v1.DeletePer" - + "InstanceConfigsInstanceGroupManagerReque" - + "st\032\".google.cloud.compute.v1.Operation\"\266" - + "\002\332Adproject,zone,instance_group_manager," - + "instance_group_managers_delete_per_insta" - + "nce_configs_req_resource\212N\016ZoneOperation" - + "s\202\323\344\223\002\267\001\"s/compute/v1/projects/{project}" - + "/zones/{zone}/instanceGroupManagers/{ins" - + "tance_group_manager}/deletePerInstanceCo" - + "nfigs:@instance_group_managers_delete_pe" - + "r_instance_configs_req_resource\022\370\001\n\003Get\022" - + "7.google.cloud.compute.v1.GetInstanceGro" - + "upManagerRequest\032-.google.cloud.compute." - + "v1.InstanceGroupManager\"\210\001\332A#project,zon" - + "e,instance_group_manager\202\323\344\223\002\\\022Z/compute" + + "eRequest\"\267\001\332A2project,zone,instance_grou" + + "p_manager,resize_request\202\323\344\223\002|\022z/compute" + "/v1/projects/{project}/zones/{zone}/inst" + "anceGroupManagers/{instance_group_manage" - + "r}\022\225\002\n\006Insert\022:.google.cloud.compute.v1." - + "InsertInstanceGroupManagerRequest\032\".goog" - + "le.cloud.compute.v1.Operation\"\252\001\332A,proje" - + "ct,zone,instance_group_manager_resource\212" - + "N\016ZoneOperations\202\323\344\223\002d\"A/compute/v1/proj" + + "r}/resizeRequests/{resize_request}\022\200\003\n\006I" + + "nsert\022G.google.cloud.compute.v1.InsertIn" + + "stanceGroupManagerResizeRequestRequest\032\"" + + ".google.cloud.compute.v1.Operation\"\210\002\332AR" + + "project,zone,instance_group_manager,inst" + + "ance_group_manager_resize_request_resour" + + "ce\212N\016ZoneOperations\202\323\344\223\002\233\001\"i/compute/v1/" + + "projects/{project}/zones/{zone}/instance" + + "GroupManagers/{instance_group_manager}/r" + + "esizeRequests:.instance_group_manager_re" + + "size_request_resource\022\261\002\n\004List\022F.google." + + "cloud.compute.v1.ListInstanceGroupManage" + + "rResizeRequestsRequest\032G.google.cloud.co" + + "mpute.v1.InstanceGroupManagerResizeReque" + + "stsListResponse\"\227\001\332A#project,zone,instan" + + "ce_group_manager\202\323\344\223\002k\022i/compute/v1/proj" + "ects/{project}/zones/{zone}/instanceGrou" - + "pManagers:\037instance_group_manager_resour" - + "ce\022\316\001\n\004List\0229.google.cloud.compute.v1.Li" - + "stInstanceGroupManagersRequest\0321.google." - + "cloud.compute.v1.InstanceGroupManagerLis" - + "t\"X\332A\014project,zone\202\323\344\223\002C\022A/compute/v1/pr" + + "pManagers/{instance_group_manager}/resiz" + + "eRequests\032r\312A\026compute.googleapis.com\322AVh" + + "ttps://www.googleapis.com/auth/compute,h" + + "ttps://www.googleapis.com/auth/cloud-pla" + + "tform2\325E\n\025InstanceGroupManagers\022\241\003\n\020Aban" + + "donInstances\022D.google.cloud.compute.v1.A" + + "bandonInstancesInstanceGroupManagerReque" + + "st\032\".google.cloud.compute.v1.Operation\"\242" + + "\002\332A^project,zone,instance_group_manager," + + "instance_group_managers_abandon_instance" + + "s_request_resource\212N\016ZoneOperations\202\323\344\223\002" + + "\251\001\"k/compute/v1/projects/{project}/zones" + + "/{zone}/instanceGroupManagers/{instance_" + + "group_manager}/abandonInstances::instanc" + + "e_group_managers_abandon_instances_reque" + + "st_resource\022\345\001\n\016AggregatedList\022C.google." + + "cloud.compute.v1.AggregatedListInstanceG" + + "roupManagersRequest\032;.google.cloud.compu" + + "te.v1.InstanceGroupManagerAggregatedList" + + "\"Q\332A\007project\202\323\344\223\002A\022?/compute/v1/projects" + + "/{project}/aggregated/instanceGroupManag" + + "ers\022\256\003\n\027ApplyUpdatesToInstances\022K.google" + + ".cloud.compute.v1.ApplyUpdatesToInstance" + + "sInstanceGroupManagerRequest\032\".google.cl" + + "oud.compute.v1.Operation\"\241\002\332AZproject,zo" + + "ne,instance_group_manager,instance_group" + + "_managers_apply_updates_request_resource" + + "\212N\016ZoneOperations\202\323\344\223\002\254\001\"r/compute/v1/pr" + "ojects/{project}/zones/{zone}/instanceGr" - + "oupManagers\022\245\002\n\nListErrors\022?.google.clou" - + "d.compute.v1.ListErrorsInstanceGroupMana" - + "gersRequest\032@.google.cloud.compute.v1.In" - + "stanceGroupManagersListErrorsResponse\"\223\001" - + "\332A#project,zone,instance_group_manager\202\323" - + "\344\223\002g\022e/compute/v1/projects/{project}/zon" + + "oupManagers/{instance_group_manager}/app" + + "lyUpdatesToInstances:6instance_group_man" + + "agers_apply_updates_request_resource\022\234\003\n" + + "\017CreateInstances\022C.google.cloud.compute." + + "v1.CreateInstancesInstanceGroupManagerRe" + + "quest\032\".google.cloud.compute.v1.Operatio" + + "n\"\237\002\332A]project,zone,instance_group_manag" + + "er,instance_group_managers_create_instan" + + "ces_request_resource\212N\016ZoneOperations\202\323\344" + + "\223\002\247\001\"j/compute/v1/projects/{project}/zon" + "es/{zone}/instanceGroupManagers/{instanc" - + "e_group_manager}/listErrors\022\315\002\n\024ListMana" - + "gedInstances\022I.google.cloud.compute.v1.L" - + "istManagedInstancesInstanceGroupManagers" - + "Request\032J.google.cloud.compute.v1.Instan" - + "ceGroupManagersListManagedInstancesRespo" - + "nse\"\235\001\332A#project,zone,instance_group_man" - + "ager\202\323\344\223\002q\"o/compute/v1/projects/{projec" - + "t}/zones/{zone}/instanceGroupManagers/{i" - + "nstance_group_manager}/listManagedInstan" - + "ces\022\321\002\n\026ListPerInstanceConfigs\022K.google." - + "cloud.compute.v1.ListPerInstanceConfigsI" - + "nstanceGroupManagersRequest\032H.google.clo" - + "ud.compute.v1.InstanceGroupManagersListP" - + "erInstanceConfigsResp\"\237\001\332A#project,zone," - + "instance_group_manager\202\323\344\223\002s\"q/compute/v" - + "1/projects/{project}/zones/{zone}/instan" - + "ceGroupManagers/{instance_group_manager}" - + "/listPerInstanceConfigs\022\303\002\n\005Patch\0229.goog" - + "le.cloud.compute.v1.PatchInstanceGroupMa" - + "nagerRequest\032\".google.cloud.compute.v1.O" - + "peration\"\332\001\332ACproject,zone,instance_grou" - + "p_manager,instance_group_manager_resourc" - + "e\212N\016ZoneOperations\202\323\344\223\002}2Z/compute/v1/pr" + + "e_group_manager}/createInstances:9instan" + + "ce_group_managers_create_instances_reque" + + "st_resource\022\204\002\n\006Delete\022:.google.cloud.co" + + "mpute.v1.DeleteInstanceGroupManagerReque" + + "st\032\".google.cloud.compute.v1.Operation\"\231" + + "\001\332A#project,zone,instance_group_manager\212" + + "N\016ZoneOperations\202\323\344\223\002\\*Z/compute/v1/proj" + + "ects/{project}/zones/{zone}/instanceGrou" + + "pManagers/{instance_group_manager}\022\234\003\n\017D" + + "eleteInstances\022C.google.cloud.compute.v1" + + ".DeleteInstancesInstanceGroupManagerRequ" + + "est\032\".google.cloud.compute.v1.Operation\"" + + "\237\002\332A]project,zone,instance_group_manager" + + ",instance_group_managers_delete_instance" + + "s_request_resource\212N\016ZoneOperations\202\323\344\223\002" + + "\247\001\"j/compute/v1/projects/{project}/zones" + + "/{zone}/instanceGroupManagers/{instance_" + + "group_manager}/deleteInstances:9instance" + + "_group_managers_delete_instances_request" + + "_resource\022\305\003\n\030DeletePerInstanceConfigs\022L" + + ".google.cloud.compute.v1.DeletePerInstan" + + "ceConfigsInstanceGroupManagerRequest\032\".g" + + "oogle.cloud.compute.v1.Operation\"\266\002\332Adpr" + + "oject,zone,instance_group_manager,instan" + + "ce_group_managers_delete_per_instance_co" + + "nfigs_req_resource\212N\016ZoneOperations\202\323\344\223\002" + + "\267\001\"s/compute/v1/projects/{project}/zones" + + "/{zone}/instanceGroupManagers/{instance_" + + "group_manager}/deletePerInstanceConfigs:" + + "@instance_group_managers_delete_per_inst" + + "ance_configs_req_resource\022\370\001\n\003Get\0227.goog" + + "le.cloud.compute.v1.GetInstanceGroupMana" + + "gerRequest\032-.google.cloud.compute.v1.Ins" + + "tanceGroupManager\"\210\001\332A#project,zone,inst" + + "ance_group_manager\202\323\344\223\002\\\022Z/compute/v1/pr" + "ojects/{project}/zones/{zone}/instanceGr" - + "oupManagers/{instance_group_manager}:\037in" - + "stance_group_manager_resource\022\300\003\n\027PatchP" - + "erInstanceConfigs\022K.google.cloud.compute" - + ".v1.PatchPerInstanceConfigsInstanceGroup" - + "ManagerRequest\032\".google.cloud.compute.v1" - + ".Operation\"\263\002\332Acproject,zone,instance_gr" - + "oup_manager,instance_group_managers_patc" - + "h_per_instance_configs_req_resource\212N\016Zo" - + "neOperations\202\323\344\223\002\265\001\"r/compute/v1/project" - + "s/{project}/zones/{zone}/instanceGroupMa" - + "nagers/{instance_group_manager}/patchPer" - + "InstanceConfigs:?instance_group_managers" - + "_patch_per_instance_configs_req_resource" - + "\022\246\003\n\021RecreateInstances\022E.google.cloud.co" - + "mpute.v1.RecreateInstancesInstanceGroupM" - + "anagerRequest\032\".google.cloud.compute.v1." - + "Operation\"\245\002\332A_project,zone,instance_gro" - + "up_manager,instance_group_managers_recre" - + "ate_instances_request_resource\212N\016ZoneOpe" - + "rations\202\323\344\223\002\253\001\"l/compute/v1/projects/{pr" - + "oject}/zones/{zone}/instanceGroupManager" - + "s/{instance_group_manager}/recreateInsta" - + "nces:;instance_group_managers_recreate_i" - + "nstances_request_resource\022\220\002\n\006Resize\022:.g" - + "oogle.cloud.compute.v1.ResizeInstanceGro" - + "upManagerRequest\032\".google.cloud.compute." - + "v1.Operation\"\245\001\332A(project,zone,instance_" - + "group_manager,size\212N\016ZoneOperations\202\323\344\223\002" - + "c\"a/compute/v1/projects/{project}/zones/" - + "{zone}/instanceGroupManagers/{instance_g" - + "roup_manager}/resize\022\234\003\n\017ResumeInstances" - + "\022C.google.cloud.compute.v1.ResumeInstanc" - + "esInstanceGroupManagerRequest\032\".google.c" - + "loud.compute.v1.Operation\"\237\002\332A]project,z" - + "one,instance_group_manager,instance_grou" - + "p_managers_resume_instances_request_reso" - + "urce\212N\016ZoneOperations\202\323\344\223\002\247\001\"j/compute/v" - + "1/projects/{project}/zones/{zone}/instan" - + "ceGroupManagers/{instance_group_manager}" - + "/resumeInstances:9instance_group_manager" - + "s_resume_instances_request_resource\022\262\003\n\023" - + "SetInstanceTemplate\022G.google.cloud.compu" - + "te.v1.SetInstanceTemplateInstanceGroupMa" - + "nagerRequest\032\".google.cloud.compute.v1.O" - + "peration\"\255\002\332Abproject,zone,instance_grou" - + "p_manager,instance_group_managers_set_in" - + "stance_template_request_resource\212N\016ZoneO" - + "perations\202\323\344\223\002\260\001\"n/compute/v1/projects/{" + + "oupManagers/{instance_group_manager}\022\225\002\n" + + "\006Insert\022:.google.cloud.compute.v1.Insert" + + "InstanceGroupManagerRequest\032\".google.clo" + + "ud.compute.v1.Operation\"\252\001\332A,project,zon" + + "e,instance_group_manager_resource\212N\016Zone" + + "Operations\202\323\344\223\002d\"A/compute/v1/projects/{" + "project}/zones/{zone}/instanceGroupManag" - + "ers/{instance_group_manager}/setInstance" - + "Template:>instance_group_managers_set_in" - + "stance_template_request_resource\022\231\003\n\016Set" - + "TargetPools\022B.google.cloud.compute.v1.Se" - + "tTargetPoolsInstanceGroupManagerRequest\032" - + "\".google.cloud.compute.v1.Operation\"\236\002\332A" - + "]project,zone,instance_group_manager,ins" - + "tance_group_managers_set_target_pools_re" - + "quest_resource\212N\016ZoneOperations\202\323\344\223\002\246\001\"i" + + "ers:\037instance_group_manager_resource\022\316\001\n" + + "\004List\0229.google.cloud.compute.v1.ListInst" + + "anceGroupManagersRequest\0321.google.cloud." + + "compute.v1.InstanceGroupManagerList\"X\332A\014" + + "project,zone\202\323\344\223\002C\022A/compute/v1/projects" + + "/{project}/zones/{zone}/instanceGroupMan" + + "agers\022\245\002\n\nListErrors\022?.google.cloud.comp" + + "ute.v1.ListErrorsInstanceGroupManagersRe" + + "quest\032@.google.cloud.compute.v1.Instance" + + "GroupManagersListErrorsResponse\"\223\001\332A#pro" + + "ject,zone,instance_group_manager\202\323\344\223\002g\022e" + "/compute/v1/projects/{project}/zones/{zo" + "ne}/instanceGroupManagers/{instance_grou" - + "p_manager}/setTargetPools:9instance_grou" - + "p_managers_set_target_pools_request_reso" - + "urce\022\227\003\n\016StartInstances\022B.google.cloud.c" - + "ompute.v1.StartInstancesInstanceGroupMan" - + "agerRequest\032\".google.cloud.compute.v1.Op" - + "eration\"\234\002\332A\\project,zone,instance_group" - + "_manager,instance_group_managers_start_i" - + "nstances_request_resource\212N\016ZoneOperatio" - + "ns\202\323\344\223\002\245\001\"i/compute/v1/projects/{project" - + "}/zones/{zone}/instanceGroupManagers/{in" - + "stance_group_manager}/startInstances:8in" - + "stance_group_managers_start_instances_re" - + "quest_resource\022\222\003\n\rStopInstances\022A.googl" - + "e.cloud.compute.v1.StopInstancesInstance" - + "GroupManagerRequest\032\".google.cloud.compu" - + "te.v1.Operation\"\231\002\332A[project,zone,instan" - + "ce_group_manager,instance_group_managers" - + "_stop_instances_request_resource\212N\016ZoneO" - + "perations\202\323\344\223\002\243\001\"h/compute/v1/projects/{" - + "project}/zones/{zone}/instanceGroupManag" - + "ers/{instance_group_manager}/stopInstanc" - + "es:7instance_group_managers_stop_instanc" - + "es_request_resource\022\241\003\n\020SuspendInstances" - + "\022D.google.cloud.compute.v1.SuspendInstan" - + "cesInstanceGroupManagerRequest\032\".google." - + "cloud.compute.v1.Operation\"\242\002\332A^project," - + "zone,instance_group_manager,instance_gro" - + "up_managers_suspend_instances_request_re" - + "source\212N\016ZoneOperations\202\323\344\223\002\251\001\"k/compute" - + "/v1/projects/{project}/zones/{zone}/inst" - + "anceGroupManagers/{instance_group_manage" - + "r}/suspendInstances::instance_group_mana" - + "gers_suspend_instances_request_resource\022" - + "\305\003\n\030UpdatePerInstanceConfigs\022L.google.cl" - + "oud.compute.v1.UpdatePerInstanceConfigsI" - + "nstanceGroupManagerRequest\032\".google.clou" - + "d.compute.v1.Operation\"\266\002\332Adproject,zone" - + ",instance_group_manager,instance_group_m" - + "anagers_update_per_instance_configs_req_" - + "resource\212N\016ZoneOperations\202\323\344\223\002\267\001\"s/compu" + + "p_manager}/listErrors\022\315\002\n\024ListManagedIns" + + "tances\022I.google.cloud.compute.v1.ListMan" + + "agedInstancesInstanceGroupManagersReques" + + "t\032J.google.cloud.compute.v1.InstanceGrou" + + "pManagersListManagedInstancesResponse\"\235\001" + + "\332A#project,zone,instance_group_manager\202\323" + + "\344\223\002q\"o/compute/v1/projects/{project}/zon" + + "es/{zone}/instanceGroupManagers/{instanc" + + "e_group_manager}/listManagedInstances\022\321\002" + + "\n\026ListPerInstanceConfigs\022K.google.cloud." + + "compute.v1.ListPerInstanceConfigsInstanc" + + "eGroupManagersRequest\032H.google.cloud.com" + + "pute.v1.InstanceGroupManagersListPerInst" + + "anceConfigsResp\"\237\001\332A#project,zone,instan" + + "ce_group_manager\202\323\344\223\002s\"q/compute/v1/proj" + + "ects/{project}/zones/{zone}/instanceGrou" + + "pManagers/{instance_group_manager}/listP" + + "erInstanceConfigs\022\303\002\n\005Patch\0229.google.clo" + + "ud.compute.v1.PatchInstanceGroupManagerR" + + "equest\032\".google.cloud.compute.v1.Operati" + + "on\"\332\001\332ACproject,zone,instance_group_mana" + + "ger,instance_group_manager_resource\212N\016Zo" + + "neOperations\202\323\344\223\002}2Z/compute/v1/projects" + + "/{project}/zones/{zone}/instanceGroupMan" + + "agers/{instance_group_manager}:\037instance" + + "_group_manager_resource\022\300\003\n\027PatchPerInst" + + "anceConfigs\022K.google.cloud.compute.v1.Pa" + + "tchPerInstanceConfigsInstanceGroupManage" + + "rRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"\263\002\332Acproject,zone,instance_group_ma" + + "nager,instance_group_managers_patch_per_" + + "instance_configs_req_resource\212N\016ZoneOper" + + "ations\202\323\344\223\002\265\001\"r/compute/v1/projects/{pro" + + "ject}/zones/{zone}/instanceGroupManagers" + + "/{instance_group_manager}/patchPerInstan" + + "ceConfigs:?instance_group_managers_patch" + + "_per_instance_configs_req_resource\022\246\003\n\021R" + + "ecreateInstances\022E.google.cloud.compute." + + "v1.RecreateInstancesInstanceGroupManager" + + "Request\032\".google.cloud.compute.v1.Operat" + + "ion\"\245\002\332A_project,zone,instance_group_man" + + "ager,instance_group_managers_recreate_in" + + "stances_request_resource\212N\016ZoneOperation" + + "s\202\323\344\223\002\253\001\"l/compute/v1/projects/{project}" + + "/zones/{zone}/instanceGroupManagers/{ins" + + "tance_group_manager}/recreateInstances:;" + + "instance_group_managers_recreate_instanc" + + "es_request_resource\022\220\002\n\006Resize\022:.google." + + "cloud.compute.v1.ResizeInstanceGroupMana" + + "gerRequest\032\".google.cloud.compute.v1.Ope" + + "ration\"\245\001\332A(project,zone,instance_group_" + + "manager,size\212N\016ZoneOperations\202\323\344\223\002c\"a/co" + + "mpute/v1/projects/{project}/zones/{zone}" + + "/instanceGroupManagers/{instance_group_m" + + "anager}/resize\022\234\003\n\017ResumeInstances\022C.goo" + + "gle.cloud.compute.v1.ResumeInstancesInst" + + "anceGroupManagerRequest\032\".google.cloud.c" + + "ompute.v1.Operation\"\237\002\332A]project,zone,in" + + "stance_group_manager,instance_group_mana" + + "gers_resume_instances_request_resource\212N" + + "\016ZoneOperations\202\323\344\223\002\247\001\"j/compute/v1/proj" + + "ects/{project}/zones/{zone}/instanceGrou" + + "pManagers/{instance_group_manager}/resum" + + "eInstances:9instance_group_managers_resu" + + "me_instances_request_resource\022\262\003\n\023SetIns" + + "tanceTemplate\022G.google.cloud.compute.v1." + + "SetInstanceTemplateInstanceGroupManagerR" + + "equest\032\".google.cloud.compute.v1.Operati" + + "on\"\255\002\332Abproject,zone,instance_group_mana" + + "ger,instance_group_managers_set_instance" + + "_template_request_resource\212N\016ZoneOperati" + + "ons\202\323\344\223\002\260\001\"n/compute/v1/projects/{projec" + + "t}/zones/{zone}/instanceGroupManagers/{i" + + "nstance_group_manager}/setInstanceTempla" + + "te:>instance_group_managers_set_instance" + + "_template_request_resource\022\231\003\n\016SetTarget" + + "Pools\022B.google.cloud.compute.v1.SetTarge" + + "tPoolsInstanceGroupManagerRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"\236\002\332A]proje" + + "ct,zone,instance_group_manager,instance_" + + "group_managers_set_target_pools_request_" + + "resource\212N\016ZoneOperations\202\323\344\223\002\246\001\"i/compu" + "te/v1/projects/{project}/zones/{zone}/in" + "stanceGroupManagers/{instance_group_mana" - + "ger}/updatePerInstanceConfigs:@instance_" - + "group_managers_update_per_instance_confi" - + "gs_req_resource\032r\312A\026compute.googleapis.c" - + "om\322AVhttps://www.googleapis.com/auth/com" - + "pute,https://www.googleapis.com/auth/clo" - + "ud-platform2\360\024\n\016InstanceGroups\022\337\002\n\014AddIn" - + "stances\0229.google.cloud.compute.v1.AddIns" - + "tancesInstanceGroupRequest\032\".google.clou" - + "d.compute.v1.Operation\"\357\001\332AJproject,zone" - + ",instance_group,instance_groups_add_inst" - + "ances_request_resource\212N\016ZoneOperations\202" - + "\323\344\223\002\212\001\"X/compute/v1/projects/{project}/z" - + "ones/{zone}/instanceGroups/{instance_gro" - + "up}/addInstances:.instance_groups_add_in" - + "stances_request_resource\022\320\001\n\016AggregatedL" - + "ist\022<.google.cloud.compute.v1.Aggregated" - + "ListInstanceGroupsRequest\0324.google.cloud" - + ".compute.v1.InstanceGroupAggregatedList\"" - + "J\332A\007project\202\323\344\223\002:\0228/compute/v1/projects/" - + "{project}/aggregated/instanceGroups\022\346\001\n\006" - + "Delete\0223.google.cloud.compute.v1.DeleteI" - + "nstanceGroupRequest\032\".google.cloud.compu" - + "te.v1.Operation\"\202\001\332A\033project,zone,instan" - + "ce_group\212N\016ZoneOperations\202\323\344\223\002M*K/comput" - + "e/v1/projects/{project}/zones/{zone}/ins" - + "tanceGroups/{instance_group}\022\322\001\n\003Get\0220.g" - + "oogle.cloud.compute.v1.GetInstanceGroupR" - + "equest\032&.google.cloud.compute.v1.Instanc" - + "eGroup\"q\332A\033project,zone,instance_group\202\323" - + "\344\223\002M\022K/compute/v1/projects/{project}/zon" - + "es/{zone}/instanceGroups/{instance_group" - + "}\022\367\001\n\006Insert\0223.google.cloud.compute.v1.I" - + "nsertInstanceGroupRequest\032\".google.cloud" - + ".compute.v1.Operation\"\223\001\332A$project,zone," - + "instance_group_resource\212N\016ZoneOperations" - + "\202\323\344\223\002U\":/compute/v1/projects/{project}/z" - + "ones/{zone}/instanceGroups:\027instance_gro" - + "up_resource\022\271\001\n\004List\0222.google.cloud.comp" - + "ute.v1.ListInstanceGroupsRequest\032*.googl" - + "e.cloud.compute.v1.InstanceGroupList\"Q\332A" - + "\014project,zone\202\323\344\223\002<\022:/compute/v1/project" - + "s/{project}/zones/{zone}/instanceGroups\022" - + "\346\002\n\rListInstances\022;.google.cloud.compute" - + ".v1.ListInstancesInstanceGroupsRequest\0324" - + ".google.cloud.compute.v1.InstanceGroupsL" - + "istInstances\"\341\001\332AKproject,zone,instance_" - + "group,instance_groups_list_instances_req" - + "uest_resource\202\323\344\223\002\214\001\"Y/compute/v1/projec" - + "ts/{project}/zones/{zone}/instanceGroups" - + "/{instance_group}/listInstances:/instanc" - + "e_groups_list_instances_request_resource" - + "\022\356\002\n\017RemoveInstances\022<.google.cloud.comp" - + "ute.v1.RemoveInstancesInstanceGroupReque" - + "st\032\".google.cloud.compute.v1.Operation\"\370" - + "\001\332AMproject,zone,instance_group,instance" - + "_groups_remove_instances_request_resourc" - + "e\212N\016ZoneOperations\202\323\344\223\002\220\001\"[/compute/v1/p" + + "ger}/setTargetPools:9instance_group_mana" + + "gers_set_target_pools_request_resource\022\227" + + "\003\n\016StartInstances\022B.google.cloud.compute" + + ".v1.StartInstancesInstanceGroupManagerRe" + + "quest\032\".google.cloud.compute.v1.Operatio" + + "n\"\234\002\332A\\project,zone,instance_group_manag" + + "er,instance_group_managers_start_instanc" + + "es_request_resource\212N\016ZoneOperations\202\323\344\223" + + "\002\245\001\"i/compute/v1/projects/{project}/zone" + + "s/{zone}/instanceGroupManagers/{instance" + + "_group_manager}/startInstances:8instance" + + "_group_managers_start_instances_request_" + + "resource\022\222\003\n\rStopInstances\022A.google.clou" + + "d.compute.v1.StopInstancesInstanceGroupM" + + "anagerRequest\032\".google.cloud.compute.v1." + + "Operation\"\231\002\332A[project,zone,instance_gro" + + "up_manager,instance_group_managers_stop_" + + "instances_request_resource\212N\016ZoneOperati" + + "ons\202\323\344\223\002\243\001\"h/compute/v1/projects/{projec" + + "t}/zones/{zone}/instanceGroupManagers/{i" + + "nstance_group_manager}/stopInstances:7in" + + "stance_group_managers_stop_instances_req" + + "uest_resource\022\241\003\n\020SuspendInstances\022D.goo" + + "gle.cloud.compute.v1.SuspendInstancesIns" + + "tanceGroupManagerRequest\032\".google.cloud." + + "compute.v1.Operation\"\242\002\332A^project,zone,i" + + "nstance_group_manager,instance_group_man" + + "agers_suspend_instances_request_resource" + + "\212N\016ZoneOperations\202\323\344\223\002\251\001\"k/compute/v1/pr" + + "ojects/{project}/zones/{zone}/instanceGr" + + "oupManagers/{instance_group_manager}/sus" + + "pendInstances::instance_group_managers_s" + + "uspend_instances_request_resource\022\305\003\n\030Up" + + "datePerInstanceConfigs\022L.google.cloud.co" + + "mpute.v1.UpdatePerInstanceConfigsInstanc" + + "eGroupManagerRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\266\002\332Adproject,zone,insta" + + "nce_group_manager,instance_group_manager" + + "s_update_per_instance_configs_req_resour" + + "ce\212N\016ZoneOperations\202\323\344\223\002\267\001\"s/compute/v1/" + + "projects/{project}/zones/{zone}/instance" + + "GroupManagers/{instance_group_manager}/u" + + "pdatePerInstanceConfigs:@instance_group_" + + "managers_update_per_instance_configs_req" + + "_resource\032r\312A\026compute.googleapis.com\322AVh" + + "ttps://www.googleapis.com/auth/compute,h" + + "ttps://www.googleapis.com/auth/cloud-pla" + + "tform2\360\024\n\016InstanceGroups\022\337\002\n\014AddInstance" + + "s\0229.google.cloud.compute.v1.AddInstances" + + "InstanceGroupRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\357\001\332AJproject,zone,insta" + + "nce_group,instance_groups_add_instances_" + + "request_resource\212N\016ZoneOperations\202\323\344\223\002\212\001" + + "\"X/compute/v1/projects/{project}/zones/{" + + "zone}/instanceGroups/{instance_group}/ad" + + "dInstances:.instance_groups_add_instance" + + "s_request_resource\022\320\001\n\016AggregatedList\022<." + + "google.cloud.compute.v1.AggregatedListIn" + + "stanceGroupsRequest\0324.google.cloud.compu" + + "te.v1.InstanceGroupAggregatedList\"J\332A\007pr" + + "oject\202\323\344\223\002:\0228/compute/v1/projects/{proje" + + "ct}/aggregated/instanceGroups\022\346\001\n\006Delete" + + "\0223.google.cloud.compute.v1.DeleteInstanc" + + "eGroupRequest\032\".google.cloud.compute.v1." + + "Operation\"\202\001\332A\033project,zone,instance_gro" + + "up\212N\016ZoneOperations\202\323\344\223\002M*K/compute/v1/p" + "rojects/{project}/zones/{zone}/instanceG" - + "roups/{instance_group}/removeInstances:1" - + "instance_groups_remove_instances_request" - + "_resource\022\346\002\n\rSetNamedPorts\022:.google.clo" - + "ud.compute.v1.SetNamedPortsInstanceGroup" - + "Request\032\".google.cloud.compute.v1.Operat" - + "ion\"\364\001\332ALproject,zone,instance_group,ins" - + "tance_groups_set_named_ports_request_res" - + "ource\212N\016ZoneOperations\202\323\344\223\002\215\001\"Y/compute/" - + "v1/projects/{project}/zones/{zone}/insta" - + "nceGroups/{instance_group}/setNamedPorts" - + ":0instance_groups_set_named_ports_reques" - + "t_resource\032r\312A\026compute.googleapis.com\322AV" - + "https://www.googleapis.com/auth/compute," - + "https://www.googleapis.com/auth/cloud-pl" - + "atform2\313\004\n\027InstanceSettingsService\022\271\001\n\003G" - + "et\0222.google.cloud.compute.v1.GetInstance" - + "SettingRequest\032).google.cloud.compute.v1" - + ".InstanceSettings\"S\332A\014project,zone\202\323\344\223\002>" - + "\022\022project,zone,instance,network_" + + "interface,access_config_resource\212N\016ZoneO" + + "perations\202\323\344\223\002j\"P/compute/v1/projects/{p" + + "roject}/zones/{zone}/instances/{instance" + + "}/addAccessConfig:\026access_config_resourc" + + "e\022\342\002\n\023AddResourcePolicies\022;.google.cloud" + + ".compute.v1.AddResourcePoliciesInstanceR" + "equest\032\".google.cloud.compute.v1.Operati" - + "on\"\233\001\332A\'project,zone,instance_settings_r" - + "esource\212N\016ZoneOperations\202\323\344\223\002Z2project,zone,instance,ne" - + "twork_interface,access_config_resource\212N" - + "\016ZoneOperations\202\323\344\223\002j\"P/compute/v1/proje" + + "on\"\351\001\332AFproject,zone,instance,instances_" + + "add_resource_policies_request_resource\212N" + + "\016ZoneOperations\202\323\344\223\002\210\001\"T/compute/v1/proj" + + "ects/{project}/zones/{zone}/instances/{i" + + "nstance}/addResourcePolicies:0instances_" + + "add_resource_policies_request_resource\022\301" + + "\001\n\016AggregatedList\0227.google.cloud.compute" + + ".v1.AggregatedListInstancesRequest\032/.goo" + + "gle.cloud.compute.v1.InstanceAggregatedL" + + "ist\"E\332A\007project\202\323\344\223\0025\0223/compute/v1/proje" + + "cts/{project}/aggregated/instances\022\222\002\n\nA" + + "ttachDisk\0222.google.cloud.compute.v1.Atta" + + "chDiskInstanceRequest\032\".google.cloud.com" + + "pute.v1.Operation\"\253\001\332A,project,zone,inst" + + "ance,attached_disk_resource\212N\016ZoneOperat" + + "ions\202\323\344\223\002e\"K/compute/v1/projects/{projec" + + "t}/zones/{zone}/instances/{instance}/att" + + "achDisk:\026attached_disk_resource\022\236\002\n\nBulk" + + "Insert\0222.google.cloud.compute.v1.BulkIns" + + "ertInstanceRequest\032\".google.cloud.comput" + + "e.v1.Operation\"\267\001\332A3project,zone,bulk_in" + + "sert_instance_resource_resource\212N\016ZoneOp" + + "erations\202\323\344\223\002j\"@/compute/v1/projects/{pr" + + "oject}/zones/{zone}/instances/bulkInsert" + + ":&bulk_insert_instance_resource_resource" + + "\022\317\001\n\006Delete\022..google.cloud.compute.v1.De" + + "leteInstanceRequest\032\".google.cloud.compu" + + "te.v1.Operation\"q\332A\025project,zone,instanc" + + "e\212N\016ZoneOperations\202\323\344\223\002B*@/compute/v1/pr" + + "ojects/{project}/zones/{zone}/instances/" + + "{instance}\022\233\002\n\022DeleteAccessConfig\022:.goog" + + "le.cloud.compute.v1.DeleteAccessConfigIn" + + "stanceRequest\032\".google.cloud.compute.v1." + + "Operation\"\244\001\332A5project,zone,instance,acc" + + "ess_config,network_interface\212N\016ZoneOpera" + + "tions\202\323\344\223\002U\"S/compute/v1/projects/{proje" + + "ct}/zones/{zone}/instances/{instance}/de" + + "leteAccessConfig\022\357\001\n\nDetachDisk\0222.google" + + ".cloud.compute.v1.DetachDiskInstanceRequ" + + "est\032\".google.cloud.compute.v1.Operation\"" + + "\210\001\332A!project,zone,instance,device_name\212N" + + "\016ZoneOperations\202\323\344\223\002M\"K/compute/v1/proje" + "cts/{project}/zones/{zone}/instances/{in" - + "stance}/addAccessConfig:\026access_config_r" - + "esource\022\342\002\n\023AddResourcePolicies\022;.google" - + ".cloud.compute.v1.AddResourcePoliciesIns" - + "tanceRequest\032\".google.cloud.compute.v1.O" - + "peration\"\351\001\332AFproject,zone,instance,inst" - + "ances_add_resource_policies_request_reso" - + "urce\212N\016ZoneOperations\202\323\344\223\002\210\001\"T/compute/v" - + "1/projects/{project}/zones/{zone}/instan" - + "ces/{instance}/addResourcePolicies:0inst" - + "ances_add_resource_policies_request_reso" - + "urce\022\301\001\n\016AggregatedList\0227.google.cloud.c" - + "ompute.v1.AggregatedListInstancesRequest" - + "\032/.google.cloud.compute.v1.InstanceAggre" - + "gatedList\"E\332A\007project\202\323\344\223\0025\0223/compute/v1" - + "/projects/{project}/aggregated/instances" - + "\022\222\002\n\nAttachDisk\0222.google.cloud.compute.v" - + "1.AttachDiskInstanceRequest\032\".google.clo" - + "ud.compute.v1.Operation\"\253\001\332A,project,zon" - + "e,instance,attached_disk_resource\212N\016Zone" - + "Operations\202\323\344\223\002e\"K/compute/v1/projects/{" + + "stance}/detachDisk\022\267\001\n\003Get\022+.google.clou" + + "d.compute.v1.GetInstanceRequest\032!.google" + + ".cloud.compute.v1.Instance\"`\332A\025project,z" + + "one,instance\202\323\344\223\002B\022@/compute/v1/projects" + + "/{project}/zones/{zone}/instances/{insta" + + "nce}\022\242\002\n\025GetEffectiveFirewalls\022=.google." + + "cloud.compute.v1.GetEffectiveFirewallsIn" + + "stanceRequest\032?.google.cloud.compute.v1." + + "InstancesGetEffectiveFirewallsResponse\"\210" + + "\001\332A\'project,zone,instance,network_interf" + + "ace\202\323\344\223\002X\022V/compute/v1/projects/{project" + + "}/zones/{zone}/instances/{instance}/getE" + + "ffectiveFirewalls\022\357\001\n\022GetGuestAttributes" + + "\022:.google.cloud.compute.v1.GetGuestAttri" + + "butesInstanceRequest\032(.google.cloud.comp" + + "ute.v1.GuestAttributes\"s\332A\025project,zone," + + "instance\202\323\344\223\002U\022S/compute/v1/projects/{pr" + + "oject}/zones/{zone}/instances/{instance}" + + "/getGuestAttributes\022\324\001\n\014GetIamPolicy\0224.g" + + "oogle.cloud.compute.v1.GetIamPolicyInsta" + + "nceRequest\032\037.google.cloud.compute.v1.Pol" + + "icy\"m\332A\025project,zone,resource\202\323\344\223\002O\022M/co" + + "mpute/v1/projects/{project}/zones/{zone}" + + "/instances/{resource}/getIamPolicy\022\330\001\n\rG" + + "etScreenshot\0225.google.cloud.compute.v1.G" + + "etScreenshotInstanceRequest\032#.google.clo" + + "ud.compute.v1.Screenshot\"k\332A\025project,zon" + + "e,instance\202\323\344\223\002M\022K/compute/v1/projects/{" + "project}/zones/{zone}/instances/{instanc" - + "e}/attachDisk:\026attached_disk_resource\022\236\002" - + "\n\nBulkInsert\0222.google.cloud.compute.v1.B" - + "ulkInsertInstanceRequest\032\".google.cloud." - + "compute.v1.Operation\"\267\001\332A3project,zone,b" - + "ulk_insert_instance_resource_resource\212N\016" - + "ZoneOperations\202\323\344\223\002j\"@/compute/v1/projec" - + "ts/{project}/zones/{zone}/instances/bulk" - + "Insert:&bulk_insert_instance_resource_re" - + "source\022\317\001\n\006Delete\022..google.cloud.compute" - + ".v1.DeleteInstanceRequest\032\".google.cloud" - + ".compute.v1.Operation\"q\332A\025project,zone,i" - + "nstance\212N\016ZoneOperations\202\323\344\223\002B*@/compute" - + "/v1/projects/{project}/zones/{zone}/inst" - + "ances/{instance}\022\233\002\n\022DeleteAccessConfig\022" - + ":.google.cloud.compute.v1.DeleteAccessCo" - + "nfigInstanceRequest\032\".google.cloud.compu" - + "te.v1.Operation\"\244\001\332A5project,zone,instan" - + "ce,access_config,network_interface\212N\016Zon" - + "eOperations\202\323\344\223\002U\"S/compute/v1/projects/" + + "e}/screenshot\022\352\001\n\023GetSerialPortOutput\022;." + + "google.cloud.compute.v1.GetSerialPortOut" + + "putInstanceRequest\032).google.cloud.comput" + + "e.v1.SerialPortOutput\"k\332A\025project,zone,i" + + "nstance\202\323\344\223\002M\022K/compute/v1/projects/{pro" + + "ject}/zones/{zone}/instances/{instance}/" + + "serialPort\022\223\002\n\033GetShieldedInstanceIdenti" + + "ty\022C.google.cloud.compute.v1.GetShielded" + + "InstanceIdentityInstanceRequest\0321.google" + + ".cloud.compute.v1.ShieldedInstanceIdenti" + + "ty\"|\332A\025project,zone,instance\202\323\344\223\002^\022\\/com" + + "pute/v1/projects/{project}/zones/{zone}/" + + "instances/{instance}/getShieldedInstance" + + "Identity\022\341\001\n\006Insert\022..google.cloud.compu" + + "te.v1.InsertInstanceRequest\032\".google.clo" + + "ud.compute.v1.Operation\"\202\001\332A\036project,zon" + + "e,instance_resource\212N\016ZoneOperations\202\323\344\223" + + "\002J\"5/compute/v1/projects/{project}/zones" + + "/{zone}/instances:\021instance_resource\022\252\001\n" + + "\004List\022-.google.cloud.compute.v1.ListInst" + + "ancesRequest\032%.google.cloud.compute.v1.I" + + "nstanceList\"L\332A\014project,zone\202\323\344\223\0027\0225/com" + + "pute/v1/projects/{project}/zones/{zone}/" + + "instances\022\343\001\n\rListReferrers\0226.google.clo" + + "ud.compute.v1.ListReferrersInstancesRequ" + + "est\032..google.cloud.compute.v1.InstanceLi" + + "stReferrers\"j\332A\025project,zone,instance\202\323\344" + + "\223\002L\022J/compute/v1/projects/{project}/zone" + + "s/{zone}/instances/{instance}/referrers\022" + + "\373\001\n\022PerformMaintenance\022:.google.cloud.co" + + "mpute.v1.PerformMaintenanceInstanceReque" + + "st\032\".google.cloud.compute.v1.Operation\"\204" + + "\001\332A\025project,zone,instance\212N\016ZoneOperatio" + + "ns\202\323\344\223\002U\"S/compute/v1/projects/{project}" + + "/zones/{zone}/instances/{instance}/perfo" + + "rmMaintenance\022\361\002\n\026RemoveResourcePolicies" + + "\022>.google.cloud.compute.v1.RemoveResourc" + + "ePoliciesInstanceRequest\032\".google.cloud." + + "compute.v1.Operation\"\362\001\332AIproject,zone,i" + + "nstance,instances_remove_resource_polici" + + "es_request_resource\212N\016ZoneOperations\202\323\344\223" + + "\002\216\001\"W/compute/v1/projects/{project}/zone" + + "s/{zone}/instances/{instance}/removeReso" + + "urcePolicies:3instances_remove_resource_" + + "policies_request_resource\022\337\002\n\022ReportHost" + + "AsFaulty\022:.google.cloud.compute.v1.Repor" + + "tHostAsFaultyInstanceRequest\032\".google.cl" + + "oud.compute.v1.Operation\"\350\001\332AFproject,zo" + + "ne,instance,instances_report_host_as_fau" + + "lty_request_resource\212N\016ZoneOperations\202\323\344" + + "\223\002\207\001\"S/compute/v1/projects/{project}/zon" + + "es/{zone}/instances/{instance}/reportHos" + + "tAsFaulty:0instances_report_host_as_faul" + + "ty_request_resource\022\323\001\n\005Reset\022-.google.c" + + "loud.compute.v1.ResetInstanceRequest\032\".g" + + "oogle.cloud.compute.v1.Operation\"w\332A\025pro" + + "ject,zone,instance\212N\016ZoneOperations\202\323\344\223\002" + + "H\"F/compute/v1/projects/{project}/zones/" + + "{zone}/instances/{instance}/reset\022\326\001\n\006Re" + + "sume\022..google.cloud.compute.v1.ResumeIns" + + "tanceRequest\032\".google.cloud.compute.v1.O" + + "peration\"x\332A\025project,zone,instance\212N\016Zon" + + "eOperations\202\323\344\223\002I\"G/compute/v1/projects/" + "{project}/zones/{zone}/instances/{instan" - + "ce}/deleteAccessConfig\022\357\001\n\nDetachDisk\0222." - + "google.cloud.compute.v1.DetachDiskInstan" - + "ceRequest\032\".google.cloud.compute.v1.Oper" - + "ation\"\210\001\332A!project,zone,instance,device_" - + "name\212N\016ZoneOperations\202\323\344\223\002M\"K/compute/v1" - + "/projects/{project}/zones/{zone}/instanc" - + "es/{instance}/detachDisk\022\267\001\n\003Get\022+.googl" - + "e.cloud.compute.v1.GetInstanceRequest\032!." - + "google.cloud.compute.v1.Instance\"`\332A\025pro" - + "ject,zone,instance\202\323\344\223\002B\022@/compute/v1/pr" - + "ojects/{project}/zones/{zone}/instances/" - + "{instance}\022\242\002\n\025GetEffectiveFirewalls\022=.g" - + "oogle.cloud.compute.v1.GetEffectiveFirew" - + "allsInstanceRequest\032?.google.cloud.compu" - + "te.v1.InstancesGetEffectiveFirewallsResp" - + "onse\"\210\001\332A\'project,zone,instance,network_" - + "interface\202\323\344\223\002X\022V/compute/v1/projects/{p" - + "roject}/zones/{zone}/instances/{instance" - + "}/getEffectiveFirewalls\022\357\001\n\022GetGuestAttr" - + "ibutes\022:.google.cloud.compute.v1.GetGues" - + "tAttributesInstanceRequest\032(.google.clou" - + "d.compute.v1.GuestAttributes\"s\332A\025project" - + ",zone,instance\202\323\344\223\002U\022S/compute/v1/projec" - + "ts/{project}/zones/{zone}/instances/{ins" - + "tance}/getGuestAttributes\022\324\001\n\014GetIamPoli" - + "cy\0224.google.cloud.compute.v1.GetIamPolic" - + "yInstanceRequest\032\037.google.cloud.compute." - + "v1.Policy\"m\332A\025project,zone,resource\202\323\344\223\002" - + "O\022M/compute/v1/projects/{project}/zones/" - + "{zone}/instances/{resource}/getIamPolicy" - + "\022\330\001\n\rGetScreenshot\0225.google.cloud.comput" - + "e.v1.GetScreenshotInstanceRequest\032#.goog" - + "le.cloud.compute.v1.Screenshot\"k\332A\025proje" - + "ct,zone,instance\202\323\344\223\002M\022K/compute/v1/proj" - + "ects/{project}/zones/{zone}/instances/{i" - + "nstance}/screenshot\022\352\001\n\023GetSerialPortOut" - + "put\022;.google.cloud.compute.v1.GetSerialP" - + "ortOutputInstanceRequest\032).google.cloud." - + "compute.v1.SerialPortOutput\"k\332A\025project," - + "zone,instance\202\323\344\223\002M\022K/compute/v1/project" + + "ce}/resume\022\226\002\n\027SendDiagnosticInterrupt\022?" + + ".google.cloud.compute.v1.SendDiagnosticI" + + "nterruptInstanceRequest\032@.google.cloud.c" + + "ompute.v1.SendDiagnosticInterruptInstanc" + + "eResponse\"x\332A\025project,zone,instance\202\323\344\223\002" + + "Z\"X/compute/v1/projects/{project}/zones/" + + "{zone}/instances/{instance}/sendDiagnost" + + "icInterrupt\022\204\002\n\025SetDeletionProtection\022=." + + "google.cloud.compute.v1.SetDeletionProte" + + "ctionInstanceRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\207\001\332A\025project,zone,resou" + + "rce\212N\016ZoneOperations\202\323\344\223\002X\"V/compute/v1/" + + "projects/{project}/zones/{zone}/instance" + + "s/{resource}/setDeletionProtection\022\220\002\n\021S" + + "etDiskAutoDelete\0229.google.cloud.compute." + + "v1.SetDiskAutoDeleteInstanceRequest\032\".go" + + "ogle.cloud.compute.v1.Operation\"\233\001\332A-pro" + + "ject,zone,instance,auto_delete,device_na" + + "me\212N\016ZoneOperations\202\323\344\223\002T\"R/compute/v1/p" + + "rojects/{project}/zones/{zone}/instances" + + "/{instance}/setDiskAutoDelete\022\230\002\n\014SetIam" + + "Policy\0224.google.cloud.compute.v1.SetIamP" + + "olicyInstanceRequest\032\037.google.cloud.comp" + + "ute.v1.Policy\"\260\001\332A6project,zone,resource" + + ",zone_set_policy_request_resource\202\323\344\223\002q\"" + + "M/compute/v1/projects/{project}/zones/{z" + + "one}/instances/{resource}/setIamPolicy: " + + "zone_set_policy_request_resource\022\255\002\n\tSet" + + "Labels\0221.google.cloud.compute.v1.SetLabe" + + "lsInstanceRequest\032\".google.cloud.compute" + + ".v1.Operation\"\310\001\332A;project,zone,instance" + + ",instances_set_labels_request_resource\212N" + + "\016ZoneOperations\202\323\344\223\002s\"J/compute/v1/proje" + + "cts/{project}/zones/{zone}/instances/{in" + + "stance}/setLabels:%instances_set_labels_" + + "request_resource\022\342\002\n\023SetMachineResources" + + "\022;.google.cloud.compute.v1.SetMachineRes" + + "ourcesInstanceRequest\032\".google.cloud.com" + + "pute.v1.Operation\"\351\001\332AFproject,zone,inst" + + "ance,instances_set_machine_resources_req" + + "uest_resource\212N\016ZoneOperations\202\323\344\223\002\210\001\"T/" + + "compute/v1/projects/{project}/zones/{zon" + + "e}/instances/{instance}/setMachineResour" + + "ces:0instances_set_machine_resources_req" + + "uest_resource\022\310\002\n\016SetMachineType\0226.googl" + + "e.cloud.compute.v1.SetMachineTypeInstanc" + + "eRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"\331\001\332AAproject,zone,instance,instance" + + "s_set_machine_type_request_resource\212N\016Zo" + + "neOperations\202\323\344\223\002~\"O/compute/v1/projects" + + "/{project}/zones/{zone}/instances/{insta" + + "nce}/setMachineType:+instances_set_machi" + + "ne_type_request_resource\022\213\002\n\013SetMetadata" + + "\0223.google.cloud.compute.v1.SetMetadataIn" + + "stanceRequest\032\".google.cloud.compute.v1." + + "Operation\"\242\001\332A\'project,zone,instance,met" + + "adata_resource\212N\016ZoneOperations\202\323\344\223\002a\"L/" + + "compute/v1/projects/{project}/zones/{zon" + + "e}/instances/{instance}/setMetadata:\021met" + + "adata_resource\022\332\002\n\021SetMinCpuPlatform\0229.g" + + "oogle.cloud.compute.v1.SetMinCpuPlatform" + + "InstanceRequest\032\".google.cloud.compute.v" + + "1.Operation\"\345\001\332AEproject,zone,instance,i" + + "nstances_set_min_cpu_platform_request_re" + + "source\212N\016ZoneOperations\202\323\344\223\002\205\001\"R/compute" + + "/v1/projects/{project}/zones/{zone}/inst" + + "ances/{instance}/setMinCpuPlatform:/inst" + + "ances_set_min_cpu_platform_request_resou" + + "rce\022\243\002\n\007SetName\022/.google.cloud.compute.v" + + "1.SetNameInstanceRequest\032\".google.cloud." + + "compute.v1.Operation\"\302\001\332A9project,zone,i" + + "nstance,instances_set_name_request_resou" + + "rce\212N\016ZoneOperations\202\323\344\223\002o\"H/compute/v1/" + + "projects/{project}/zones/{zone}/instance" + + "s/{instance}/setName:#instances_set_name" + + "_request_resource\022\225\002\n\rSetScheduling\0225.go" + + "ogle.cloud.compute.v1.SetSchedulingInsta" + + "nceRequest\032\".google.cloud.compute.v1.Ope" + + "ration\"\250\001\332A)project,zone,instance,schedu" + + "ling_resource\212N\016ZoneOperations\202\323\344\223\002e\"N/c" + + "ompute/v1/projects/{project}/zones/{zone" + + "}/instances/{instance}/setScheduling:\023sc" + + "heduling_resource\022\330\002\n\021SetSecurityPolicy\022" + + "9.google.cloud.compute.v1.SetSecurityPol" + + "icyInstanceRequest\032\".google.cloud.comput" + + "e.v1.Operation\"\343\001\332ADproject,zone,instanc" + + "e,instances_set_security_policy_request_" + + "resource\212N\016ZoneOperations\202\323\344\223\002\204\001\"R/compu" + + "te/v1/projects/{project}/zones/{zone}/in" + + "stances/{instance}/setSecurityPolicy:.in" + + "stances_set_security_policy_request_reso" + + "urce\022\330\002\n\021SetServiceAccount\0229.google.clou" + + "d.compute.v1.SetServiceAccountInstanceRe" + + "quest\032\".google.cloud.compute.v1.Operatio" + + "n\"\343\001\332ADproject,zone,instance,instances_s" + + "et_service_account_request_resource\212N\016Zo" + + "neOperations\202\323\344\223\002\204\001\"R/compute/v1/project" + "s/{project}/zones/{zone}/instances/{inst" - + "ance}/serialPort\022\223\002\n\033GetShieldedInstance" - + "Identity\022C.google.cloud.compute.v1.GetSh" - + "ieldedInstanceIdentityInstanceRequest\0321." - + "google.cloud.compute.v1.ShieldedInstance" - + "Identity\"|\332A\025project,zone,instance\202\323\344\223\002^" - + "\022\\/compute/v1/projects/{project}/zones/{" - + "zone}/instances/{instance}/getShieldedIn" - + "stanceIdentity\022\341\001\n\006Insert\022..google.cloud" - + ".compute.v1.InsertInstanceRequest\032\".goog" - + "le.cloud.compute.v1.Operation\"\202\001\332A\036proje" - + "ct,zone,instance_resource\212N\016ZoneOperatio" - + "ns\202\323\344\223\002J\"5/compute/v1/projects/{project}" - + "/zones/{zone}/instances:\021instance_resour" - + "ce\022\252\001\n\004List\022-.google.cloud.compute.v1.Li" - + "stInstancesRequest\032%.google.cloud.comput" - + "e.v1.InstanceList\"L\332A\014project,zone\202\323\344\223\0027" - + "\0225/compute/v1/projects/{project}/zones/{" - + "zone}/instances\022\343\001\n\rListReferrers\0226.goog" - + "le.cloud.compute.v1.ListReferrersInstanc" - + "esRequest\032..google.cloud.compute.v1.Inst" - + "anceListReferrers\"j\332A\025project,zone,insta" - + "nce\202\323\344\223\002L\022J/compute/v1/projects/{project" - + "}/zones/{zone}/instances/{instance}/refe" - + "rrers\022\373\001\n\022PerformMaintenance\022:.google.cl" - + "oud.compute.v1.PerformMaintenanceInstanc" + + "ance}/setServiceAccount:.instances_set_s" + + "ervice_account_request_resource\022\205\003\n\"SetS" + + "hieldedInstanceIntegrityPolicy\022J.google." + + "cloud.compute.v1.SetShieldedInstanceInte" + + "grityPolicyInstanceRequest\032\".google.clou" + + "d.compute.v1.Operation\"\356\001\332AAproject,zone" + + ",instance,shielded_instance_integrity_po" + + "licy_resource\212N\016ZoneOperations\202\323\344\223\002\222\0012c/" + + "compute/v1/projects/{project}/zones/{zon" + + "e}/instances/{instance}/setShieldedInsta" + + "nceIntegrityPolicy:+shielded_instance_in" + + "tegrity_policy_resource\022\367\001\n\007SetTags\022/.go" + + "ogle.cloud.compute.v1.SetTagsInstanceReq" + + "uest\032\".google.cloud.compute.v1.Operation" + + "\"\226\001\332A#project,zone,instance,tags_resourc" + + "e\212N\016ZoneOperations\202\323\344\223\002Y\"H/compute/v1/pr" + + "ojects/{project}/zones/{zone}/instances/" + + "{instance}/setTags:\rtags_resource\022\215\002\n\030Si" + + "mulateMaintenanceEvent\022@.google.cloud.co" + + "mpute.v1.SimulateMaintenanceEventInstanc" + "eRequest\032\".google.cloud.compute.v1.Opera" - + "tion\"\204\001\332A\025project,zone,instance\212N\016ZoneOp" - + "erations\202\323\344\223\002U\"S/compute/v1/projects/{pr" + + "tion\"\212\001\332A\025project,zone,instance\212N\016ZoneOp" + + "erations\202\323\344\223\002[\"Y/compute/v1/projects/{pr" + "oject}/zones/{zone}/instances/{instance}" - + "/performMaintenance\022\361\002\n\026RemoveResourcePo" - + "licies\022>.google.cloud.compute.v1.RemoveR" - + "esourcePoliciesInstanceRequest\032\".google." - + "cloud.compute.v1.Operation\"\362\001\332AIproject," - + "zone,instance,instances_remove_resource_" - + "policies_request_resource\212N\016ZoneOperatio" - + "ns\202\323\344\223\002\216\001\"W/compute/v1/projects/{project" - + "}/zones/{zone}/instances/{instance}/remo" - + "veResourcePolicies:3instances_remove_res" - + "ource_policies_request_resource\022\337\002\n\022Repo" - + "rtHostAsFaulty\022:.google.cloud.compute.v1" - + ".ReportHostAsFaultyInstanceRequest\032\".goo" - + "gle.cloud.compute.v1.Operation\"\350\001\332AFproj" - + "ect,zone,instance,instances_report_host_" - + "as_faulty_request_resource\212N\016ZoneOperati" - + "ons\202\323\344\223\002\207\001\"S/compute/v1/projects/{projec" - + "t}/zones/{zone}/instances/{instance}/rep" - + "ortHostAsFaulty:0instances_report_host_a" - + "s_faulty_request_resource\022\323\001\n\005Reset\022-.go" - + "ogle.cloud.compute.v1.ResetInstanceReque" + + "/simulateMaintenanceEvent\022\323\001\n\005Start\022-.go" + + "ogle.cloud.compute.v1.StartInstanceReque" + "st\032\".google.cloud.compute.v1.Operation\"w" + "\332A\025project,zone,instance\212N\016ZoneOperation" + "s\202\323\344\223\002H\"F/compute/v1/projects/{project}/" - + "zones/{zone}/instances/{instance}/reset\022" - + "\326\001\n\006Resume\022..google.cloud.compute.v1.Res" - + "umeInstanceRequest\032\".google.cloud.comput" - + "e.v1.Operation\"x\332A\025project,zone,instance" - + "\212N\016ZoneOperations\202\323\344\223\002I\"G/compute/v1/pro" - + "jects/{project}/zones/{zone}/instances/{" - + "instance}/resume\022\226\002\n\027SendDiagnosticInter" - + "rupt\022?.google.cloud.compute.v1.SendDiagn" - + "osticInterruptInstanceRequest\032@.google.c" - + "loud.compute.v1.SendDiagnosticInterruptI" - + "nstanceResponse\"x\332A\025project,zone,instanc" - + "e\202\323\344\223\002Z\"X/compute/v1/projects/{project}/" - + "zones/{zone}/instances/{instance}/sendDi" - + "agnosticInterrupt\022\204\002\n\025SetDeletionProtect" - + "ion\022=.google.cloud.compute.v1.SetDeletio" - + "nProtectionInstanceRequest\032\".google.clou" - + "d.compute.v1.Operation\"\207\001\332A\025project,zone" - + ",resource\212N\016ZoneOperations\202\323\344\223\002X\"V/compu" - + "te/v1/projects/{project}/zones/{zone}/in" - + "stances/{resource}/setDeletionProtection" - + "\022\220\002\n\021SetDiskAutoDelete\0229.google.cloud.co" - + "mpute.v1.SetDiskAutoDeleteInstanceReques" - + "t\032\".google.cloud.compute.v1.Operation\"\233\001" - + "\332A-project,zone,instance,auto_delete,dev" - + "ice_name\212N\016ZoneOperations\202\323\344\223\002T\"R/comput" - + "e/v1/projects/{project}/zones/{zone}/ins" - + "tances/{instance}/setDiskAutoDelete\022\230\002\n\014" - + "SetIamPolicy\0224.google.cloud.compute.v1.S" - + "etIamPolicyInstanceRequest\032\037.google.clou" - + "d.compute.v1.Policy\"\260\001\332A6project,zone,re" - + "source,zone_set_policy_request_resource\202" - + "\323\344\223\002q\"M/compute/v1/projects/{project}/zo" - + "nes/{zone}/instances/{resource}/setIamPo" - + "licy: zone_set_policy_request_resource\022\255" - + "\002\n\tSetLabels\0221.google.cloud.compute.v1.S" - + "etLabelsInstanceRequest\032\".google.cloud.c" - + "ompute.v1.Operation\"\310\001\332A;project,zone,in" - + "stance,instances_set_labels_request_reso" - + "urce\212N\016ZoneOperations\202\323\344\223\002s\"J/compute/v1" - + "/projects/{project}/zones/{zone}/instanc" - + "es/{instance}/setLabels:%instances_set_l" - + "abels_request_resource\022\342\002\n\023SetMachineRes" - + "ources\022;.google.cloud.compute.v1.SetMach" - + "ineResourcesInstanceRequest\032\".google.clo" - + "ud.compute.v1.Operation\"\351\001\332AFproject,zon" - + "e,instance,instances_set_machine_resourc" - + "es_request_resource\212N\016ZoneOperations\202\323\344\223" - + "\002\210\001\"T/compute/v1/projects/{project}/zone" - + "s/{zone}/instances/{instance}/setMachine" - + "Resources:0instances_set_machine_resourc" - + "es_request_resource\022\310\002\n\016SetMachineType\0226" - + ".google.cloud.compute.v1.SetMachineTypeI" - + "nstanceRequest\032\".google.cloud.compute.v1" - + ".Operation\"\331\001\332AAproject,zone,instance,in" - + "stances_set_machine_type_request_resourc" - + "e\212N\016ZoneOperations\202\323\344\223\002~\"O/compute/v1/pr" - + "ojects/{project}/zones/{zone}/instances/" - + "{instance}/setMachineType:+instances_set" - + "_machine_type_request_resource\022\213\002\n\013SetMe" - + "tadata\0223.google.cloud.compute.v1.SetMeta" - + "dataInstanceRequest\032\".google.cloud.compu" - + "te.v1.Operation\"\242\001\332A\'project,zone,instan" - + "ce,metadata_resource\212N\016ZoneOperations\202\323\344" - + "\223\002a\"L/compute/v1/projects/{project}/zone" - + "s/{zone}/instances/{instance}/setMetadat" - + "a:\021metadata_resource\022\332\002\n\021SetMinCpuPlatfo" - + "rm\0229.google.cloud.compute.v1.SetMinCpuPl" - + "atformInstanceRequest\032\".google.cloud.com" - + "pute.v1.Operation\"\345\001\332AEproject,zone,inst" - + "ance,instances_set_min_cpu_platform_requ" - + "est_resource\212N\016ZoneOperations\202\323\344\223\002\205\001\"R/c" - + "ompute/v1/projects/{project}/zones/{zone" - + "}/instances/{instance}/setMinCpuPlatform" - + ":/instances_set_min_cpu_platform_request" - + "_resource\022\243\002\n\007SetName\022/.google.cloud.com" - + "pute.v1.SetNameInstanceRequest\032\".google." - + "cloud.compute.v1.Operation\"\302\001\332A9project," - + "zone,instance,instances_set_name_request" - + "_resource\212N\016ZoneOperations\202\323\344\223\002o\"H/compu" - + "te/v1/projects/{project}/zones/{zone}/in" - + "stances/{instance}/setName:#instances_se" - + "t_name_request_resource\022\225\002\n\rSetSchedulin" - + "g\0225.google.cloud.compute.v1.SetSchedulin" - + "gInstanceRequest\032\".google.cloud.compute." - + "v1.Operation\"\250\001\332A)project,zone,instance," - + "scheduling_resource\212N\016ZoneOperations\202\323\344\223" - + "\002e\"N/compute/v1/projects/{project}/zones" - + "/{zone}/instances/{instance}/setScheduli" - + "ng:\023scheduling_resource\022\330\002\n\021SetSecurityP" - + "olicy\0229.google.cloud.compute.v1.SetSecur" - + "ityPolicyInstanceRequest\032\".google.cloud." - + "compute.v1.Operation\"\343\001\332ADproject,zone,i" - + "nstance,instances_set_security_policy_re" - + "quest_resource\212N\016ZoneOperations\202\323\344\223\002\204\001\"R" - + "/compute/v1/projects/{project}/zones/{zo" - + "ne}/instances/{instance}/setSecurityPoli" - + "cy:.instances_set_security_policy_reques" - + "t_resource\022\330\002\n\021SetServiceAccount\0229.googl" - + "e.cloud.compute.v1.SetServiceAccountInst" - + "anceRequest\032\".google.cloud.compute.v1.Op" - + "eration\"\343\001\332ADproject,zone,instance,insta" - + "nces_set_service_account_request_resourc" - + "e\212N\016ZoneOperations\202\323\344\223\002\204\001\"R/compute/v1/p" - + "rojects/{project}/zones/{zone}/instances" - + "/{instance}/setServiceAccount:.instances" - + "_set_service_account_request_resource\022\205\003" - + "\n\"SetShieldedInstanceIntegrityPolicy\022J.g" - + "oogle.cloud.compute.v1.SetShieldedInstan" - + "ceIntegrityPolicyInstanceRequest\032\".googl" - + "e.cloud.compute.v1.Operation\"\356\001\332AAprojec" - + "t,zone,instance,shielded_instance_integr" - + "ity_policy_resource\212N\016ZoneOperations\202\323\344\223" - + "\002\222\0012c/compute/v1/projects/{project}/zone" - + "s/{zone}/instances/{instance}/setShielde" - + "dInstanceIntegrityPolicy:+shielded_insta" - + "nce_integrity_policy_resource\022\367\001\n\007SetTag" - + "s\022/.google.cloud.compute.v1.SetTagsInsta" + + "zones/{zone}/instances/{instance}/start\022" + + "\363\002\n\026StartWithEncryptionKey\022>.google.clou" + + "d.compute.v1.StartWithEncryptionKeyInsta" + "nceRequest\032\".google.cloud.compute.v1.Ope" - + "ration\"\226\001\332A#project,zone,instance,tags_r" - + "esource\212N\016ZoneOperations\202\323\344\223\002Y\"H/compute" + + "ration\"\364\001\332AJproject,zone,instance,instan" + + "ces_start_with_encryption_key_request_re" + + "source\212N\016ZoneOperations\202\323\344\223\002\217\001\"W/compute" + "/v1/projects/{project}/zones/{zone}/inst" - + "ances/{instance}/setTags:\rtags_resource\022" - + "\215\002\n\030SimulateMaintenanceEvent\022@.google.cl" - + "oud.compute.v1.SimulateMaintenanceEventI" - + "nstanceRequest\032\".google.cloud.compute.v1" - + ".Operation\"\212\001\332A\025project,zone,instance\212N\016" - + "ZoneOperations\202\323\344\223\002[\"Y/compute/v1/projec" - + "ts/{project}/zones/{zone}/instances/{ins" - + "tance}/simulateMaintenanceEvent\022\323\001\n\005Star" - + "t\022-.google.cloud.compute.v1.StartInstanc" + + "ances/{instance}/startWithEncryptionKey:" + + "4instances_start_with_encryption_key_req" + + "uest_resource\022\320\001\n\004Stop\022,.google.cloud.co" + + "mpute.v1.StopInstanceRequest\032\".google.cl" + + "oud.compute.v1.Operation\"v\332A\025project,zon" + + "e,instance\212N\016ZoneOperations\202\323\344\223\002G\"E/comp" + + "ute/v1/projects/{project}/zones/{zone}/i" + + "nstances/{instance}/stop\022\331\001\n\007Suspend\022/.g" + + "oogle.cloud.compute.v1.SuspendInstanceRe" + + "quest\032\".google.cloud.compute.v1.Operatio" + + "n\"y\332A\025project,zone,instance\212N\016ZoneOperat" + + "ions\202\323\344\223\002J\"H/compute/v1/projects/{projec" + + "t}/zones/{zone}/instances/{instance}/sus" + + "pend\022\275\002\n\022TestIamPermissions\022:.google.clo" + + "ud.compute.v1.TestIamPermissionsInstance" + + "Request\0320.google.cloud.compute.v1.TestPe" + + "rmissionsResponse\"\270\001\332A7project,zone,reso" + + "urce,test_permissions_request_resource\202\323" + + "\344\223\002x\"S/compute/v1/projects/{project}/zon" + + "es/{zone}/instances/{resource}/testIamPe" + + "rmissions:!test_permissions_request_reso" + + "urce\022\365\001\n\006Update\022..google.cloud.compute.v" + + "1.UpdateInstanceRequest\032\".google.cloud.c" + + "ompute.v1.Operation\"\226\001\332A\'project,zone,in" + + "stance,instance_resource\212N\016ZoneOperation" + + "s\202\323\344\223\002U\032@/compute/v1/projects/{project}/" + + "zones/{zone}/instances/{instance}:\021insta" + + "nce_resource\022\274\002\n\022UpdateAccessConfig\022:.go" + + "ogle.cloud.compute.v1.UpdateAccessConfig" + + "InstanceRequest\032\".google.cloud.compute.v" + + "1.Operation\"\305\001\332A>project,zone,instance,n" + + "etwork_interface,access_config_resource\212" + + "N\016ZoneOperations\202\323\344\223\002m\"S/compute/v1/proj" + + "ects/{project}/zones/{zone}/instances/{i" + + "nstance}/updateAccessConfig:\026access_conf" + + "ig_resource\022\257\002\n\023UpdateDisplayDevice\022;.go" + + "ogle.cloud.compute.v1.UpdateDisplayDevic" + + "eInstanceRequest\032\".google.cloud.compute." + + "v1.Operation\"\266\001\332A-project,zone,instance," + + "display_device_resource\212N\016ZoneOperations" + + "\202\323\344\223\002o2T/compute/v1/projects/{project}/z" + + "ones/{zone}/instances/{instance}/updateD" + + "isplayDevice:\027display_device_resource\022\320\002" + + "\n\026UpdateNetworkInterface\022>.google.cloud." + + "compute.v1.UpdateNetworkInterfaceInstanc" + "eRequest\032\".google.cloud.compute.v1.Opera" - + "tion\"w\332A\025project,zone,instance\212N\016ZoneOpe" - + "rations\202\323\344\223\002H\"F/compute/v1/projects/{pro" - + "ject}/zones/{zone}/instances/{instance}/" - + "start\022\363\002\n\026StartWithEncryptionKey\022>.googl" - + "e.cloud.compute.v1.StartWithEncryptionKe" - + "yInstanceRequest\032\".google.cloud.compute." - + "v1.Operation\"\364\001\332AJproject,zone,instance," - + "instances_start_with_encryption_key_requ" - + "est_resource\212N\016ZoneOperations\202\323\344\223\002\217\001\"W/c" - + "ompute/v1/projects/{project}/zones/{zone" - + "}/instances/{instance}/startWithEncrypti" - + "onKey:4instances_start_with_encryption_k" - + "ey_request_resource\022\320\001\n\004Stop\022,.google.cl" - + "oud.compute.v1.StopInstanceRequest\032\".goo" - + "gle.cloud.compute.v1.Operation\"v\332A\025proje" - + "ct,zone,instance\212N\016ZoneOperations\202\323\344\223\002G\"" - + "E/compute/v1/projects/{project}/zones/{z" - + "one}/instances/{instance}/stop\022\331\001\n\007Suspe" - + "nd\022/.google.cloud.compute.v1.SuspendInst" - + "anceRequest\032\".google.cloud.compute.v1.Op" - + "eration\"y\332A\025project,zone,instance\212N\016Zone" - + "Operations\202\323\344\223\002J\"H/compute/v1/projects/{" - + "project}/zones/{zone}/instances/{instanc" - + "e}/suspend\022\275\002\n\022TestIamPermissions\022:.goog" + + "tion\"\321\001\332ABproject,zone,instance,network_" + + "interface,network_interface_resource\212N\016Z" + + "oneOperations\202\323\344\223\002u2W/compute/v1/project" + + "s/{project}/zones/{zone}/instances/{inst" + + "ance}/updateNetworkInterface:\032network_in" + + "terface_resource\022\337\002\n\034UpdateShieldedInsta" + + "nceConfig\022D.google.cloud.compute.v1.Upda" + + "teShieldedInstanceConfigInstanceRequest\032" + + "\".google.cloud.compute.v1.Operation\"\324\001\332A" + + "7project,zone,instance,shielded_instance" + + "_config_resource\212N\016ZoneOperations\202\323\344\223\002\202\001" + + "2]/compute/v1/projects/{project}/zones/{" + + "zone}/instances/{instance}/updateShielde" + + "dInstanceConfig:!shielded_instance_confi" + + "g_resource\032r\312A\026compute.googleapis.com\322AV" + + "https://www.googleapis.com/auth/compute,", + "https://www.googleapis.com/auth/cloud-pl" + + "atform2\203\023\n\020InstantSnapshots\022\326\001\n\016Aggregat" + + "edList\022>.google.cloud.compute.v1.Aggrega" + + "tedListInstantSnapshotsRequest\0326.google." + + "cloud.compute.v1.InstantSnapshotAggregat" + + "edList\"L\332A\007project\202\323\344\223\002<\022:/compute/v1/pr" + + "ojects/{project}/aggregated/instantSnaps" + + "hots\022\356\001\n\006Delete\0225.google.cloud.compute.v" + + "1.DeleteInstantSnapshotRequest\032\".google." + + "cloud.compute.v1.Operation\"\210\001\332A\035project," + + "zone,instant_snapshot\212N\016ZoneOperations\202\323" + + "\344\223\002Q*O/compute/v1/projects/{project}/zon" + + "es/{zone}/instantSnapshots/{instant_snap" + + "shot}\022\334\001\n\003Get\0222.google.cloud.compute.v1." + + "GetInstantSnapshotRequest\032(.google.cloud" + + ".compute.v1.InstantSnapshot\"w\332A\035project," + + "zone,instant_snapshot\202\323\344\223\002Q\022O/compute/v1" + + "/projects/{project}/zones/{zone}/instant" + + "Snapshots/{instant_snapshot}\022\342\001\n\014GetIamP" + + "olicy\022;.google.cloud.compute.v1.GetIamPo" + + "licyInstantSnapshotRequest\032\037.google.clou" + + "d.compute.v1.Policy\"t\332A\025project,zone,res" + + "ource\202\323\344\223\002V\022T/compute/v1/projects/{proje" + + "ct}/zones/{zone}/instantSnapshots/{resou" + + "rce}/getIamPolicy\022\377\001\n\006Insert\0225.google.cl" + + "oud.compute.v1.InsertInstantSnapshotRequ" + + "est\032\".google.cloud.compute.v1.Operation\"" + + "\231\001\332A&project,zone,instant_snapshot_resou" + + "rce\212N\016ZoneOperations\202\323\344\223\002Y\"\022.google.cloud.compute.v1.GetInt" + + "erconnectAttachmentGroupRequest\0324.google" + + ".cloud.compute.v1.InterconnectAttachment" + + "Group\"\222\001\332A%project,interconnect_attachme" + + "nt_group\202\323\344\223\002d\022b/compute/v1/projects/{pr" + + "oject}/global/interconnectAttachmentGrou" + + "ps/{interconnect_attachment_group}\022\357\001\n\014G" + + "etIamPolicy\022G.google.cloud.compute.v1.Ge" + + "tIamPolicyInterconnectAttachmentGroupReq" + + "uest\032\037.google.cloud.compute.v1.Policy\"u\332" + + "A\020project,resource\202\323\344\223\002\\\022Z/compute/v1/pr" + + "ojects/{project}/global/interconnectAtta" + + "chmentGroups/{resource}/getIamPolicy\022\344\002\n" + + "\024GetOperationalStatus\022O.google.cloud.com" + + "pute.v1.GetOperationalStatusInterconnect" + + "AttachmentGroupRequest\032Q.google.cloud.co" + + "mpute.v1.InterconnectAttachmentGroupsGet" + + "OperationalStatusResponse\"\247\001\332A%project,i" + + "nterconnect_attachment_group\202\323\344\223\002y\022w/com" + + "pute/v1/projects/{project}/global/interc" + + "onnectAttachmentGroups/{interconnect_att" + + "achment_group}/getOperationalStatus\022\250\002\n\006" + + "Insert\022A.google.cloud.compute.v1.InsertI" + + "nterconnectAttachmentGroupRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"\266\001\332A.proje" + + "ct,interconnect_attachment_group_resourc" + + "e\212N\020GlobalOperations\202\323\344\223\002l\"B/compute/v1/" + + "projects/{project}/global/interconnectAt" + + "tachmentGroups:&interconnect_attachment_" + + "group_resource\022\341\001\n\004List\022@.google.cloud.c" + + "ompute.v1.ListInterconnectAttachmentGrou" + + "psRequest\032A.google.cloud.compute.v1.Inte" + + "rconnectAttachmentGroupsListResponse\"T\332A" + + "\007project\202\323\344\223\002D\022B/compute/v1/projects/{pr" + + "oject}/global/interconnectAttachmentGrou" + + "ps\022\345\002\n\005Patch\022@.google.cloud.compute.v1.P" + + "atchInterconnectAttachmentGroupRequest\032\"" + + ".google.cloud.compute.v1.Operation\"\365\001\332AL" + + "project,interconnect_attachment_group,in" + + "terconnect_attachment_group_resource\212N\020G" + + "lobalOperations\202\323\344\223\002\214\0012b/compute/v1/proj" + + "ects/{project}/global/interconnectAttach" + + "mentGroups/{interconnect_attachment_grou" + + "p}:&interconnect_attachment_group_resour" + + "ce\022\270\002\n\014SetIamPolicy\022G.google.cloud.compu" + + "te.v1.SetIamPolicyInterconnectAttachment" + + "GroupRequest\032\037.google.cloud.compute.v1.P" + + "olicy\"\275\001\332A3project,resource,global_set_p" + + "olicy_request_resource\202\323\344\223\002\200\001\"Z/compute/" + + "v1/projects/{project}/global/interconnec" + + "tAttachmentGroups/{resource}/setIamPolic" + + "y:\"global_set_policy_request_resource\022\331\002" + + "\n\022TestIamPermissions\022M.google.cloud.comp" + + "ute.v1.TestIamPermissionsInterconnectAtt" + + "achmentGroupRequest\0320.google.cloud.compu" + + "te.v1.TestPermissionsResponse\"\301\001\332A2proje" + + "ct,resource,test_permissions_request_res" + + "ource\202\323\344\223\002\205\001\"`/compute/v1/projects/{proj" + + "ect}/global/interconnectAttachmentGroups" + + "/{resource}/testIamPermissions:!test_per" + + "missions_request_resource\032r\312A\026compute.go" + + "ogleapis.com\322AVhttps://www.googleapis.co" + + "m/auth/compute,https://www.googleapis.co" + + "m/auth/cloud-platform2\302\020\n\027InterconnectAt" + + "tachments\022\353\001\n\016AggregatedList\022E.google.cl" + + "oud.compute.v1.AggregatedListInterconnec" + + "tAttachmentsRequest\032=.google.cloud.compu" + + "te.v1.InterconnectAttachmentAggregatedLi" + + "st\"S\332A\007project\202\323\344\223\002C\022A/compute/v1/projec" + + "ts/{project}/aggregated/interconnectAtta" + + "chments\022\222\002\n\006Delete\022<.google.cloud.comput" + + "e.v1.DeleteInterconnectAttachmentRequest" + + "\032\".google.cloud.compute.v1.Operation\"\245\001\332" + + "A&project,region,interconnect_attachment" + + "\212N\020RegionOperations\202\323\344\223\002c*a/compute/v1/p" + + "rojects/{project}/regions/{region}/inter" + + "connectAttachments/{interconnect_attachm" + + "ent}\022\206\002\n\003Get\0229.google.cloud.compute.v1.G" + + "etInterconnectAttachmentRequest\032/.google" + + ".cloud.compute.v1.InterconnectAttachment" + + "\"\222\001\332A&project,region,interconnect_attach" + + "ment\202\323\344\223\002c\022a/compute/v1/projects/{projec" + + "t}/regions/{region}/interconnectAttachme" + + "nts/{interconnect_attachment}\022\243\002\n\006Insert" + + "\022<.google.cloud.compute.v1.InsertInterco" + + "nnectAttachmentRequest\032\".google.cloud.co" + + "mpute.v1.Operation\"\266\001\332A/project,region,i" + + "nterconnect_attachment_resource\212N\020Region" + + "Operations\202\323\344\223\002k\"G/compute/v1/projects/{" + + "project}/regions/{region}/interconnectAt" + + "tachments: interconnect_attachment_resou" + + "rce\022\332\001\n\004List\022;.google.cloud.compute.v1.L" + + "istInterconnectAttachmentsRequest\0323.goog" + + "le.cloud.compute.v1.InterconnectAttachme" + + "ntList\"`\332A\016project,region\202\323\344\223\002I\022G/comput" + + "e/v1/projects/{project}/regions/{region}" + + "/interconnectAttachments\022\324\002\n\005Patch\022;.goo" + + "gle.cloud.compute.v1.PatchInterconnectAt" + + "tachmentRequest\032\".google.cloud.compute.v" + + "1.Operation\"\351\001\332AGproject,region,intercon" + + "nect_attachment,interconnect_attachment_" + + "resource\212N\020RegionOperations\202\323\344\223\002\205\0012a/com" + + "pute/v1/projects/{project}/regions/{regi" + + "on}/interconnectAttachments/{interconnec" + + "t_attachment}: interconnect_attachment_r" + + "esource\022\314\002\n\tSetLabels\022?.google.cloud.com" + + "pute.v1.SetLabelsInterconnectAttachmentR" + + "equest\032\".google.cloud.compute.v1.Operati" + + "on\"\331\001\332A:project,region,resource,region_s" + + "et_labels_request_resource\212N\020RegionOpera" + + "tions\202\323\344\223\002\202\001\"\\/compute/v1/projects/{proj" + + "ect}/regions/{region}/interconnectAttach" + + "ments/{resource}/setLabels:\"region_set_l" + + "abels_request_resource\032r\312A\026compute.googl" + + "eapis.com\322AVhttps://www.googleapis.com/a" + + "uth/compute,https://www.googleapis.com/a" + + "uth/cloud-platform2\270\026\n\022InterconnectGroup" + + "s\022\363\002\n\rCreateMembers\022>.google.cloud.compu" + + "te.v1.CreateMembersInterconnectGroupRequ" + + "est\032\".google.cloud.compute.v1.Operation\"" + + "\375\001\332ANproject,interconnect_group,intercon" + + "nect_groups_create_members_request_resou" + + "rce\212N\020GlobalOperations\202\323\344\223\002\222\001\"[/compute/" + + "v1/projects/{project}/global/interconnec" + + "tGroups/{interconnect_group}/createMembe" + + "rs:3interconnect_groups_create_members_r" + + "equest_resource\022\355\001\n\006Delete\0227.google.clou" + + "d.compute.v1.DeleteInterconnectGroupRequ" + + "est\032\".google.cloud.compute.v1.Operation\"" + + "\205\001\332A\032project,interconnect_group\212N\020Global" + + "Operations\202\323\344\223\002O*M/compute/v1/projects/{" + + "project}/global/interconnectGroups/{inte" + + "rconnect_group}\022\333\001\n\003Get\0224.google.cloud.c" + + "ompute.v1.GetInterconnectGroupRequest\032*." + + "google.cloud.compute.v1.InterconnectGrou" + + "p\"r\332A\032project,interconnect_group\202\323\344\223\002O\022M" + + "/compute/v1/projects/{project}/global/in" + + "terconnectGroups/{interconnect_group}\022\333\001" + + "\n\014GetIamPolicy\022=.google.cloud.compute.v1" + + ".GetIamPolicyInterconnectGroupRequest\032\037." + + "google.cloud.compute.v1.Policy\"k\332A\020proje" + + "ct,resource\202\323\344\223\002R\022P/compute/v1/projects/" + + "{project}/global/interconnectGroups/{res" + + "ource}/getIamPolicy\022\260\002\n\024GetOperationalSt" + + "atus\022E.google.cloud.compute.v1.GetOperat" + + "ionalStatusInterconnectGroupRequest\032G.go" + + "ogle.cloud.compute.v1.InterconnectGroups" + + "GetOperationalStatusResponse\"\207\001\332A\032projec" + + "t,interconnect_group\202\323\344\223\002d\022b/compute/v1/" + + "projects/{project}/global/interconnectGr" + + "oups/{interconnect_group}/getOperational" + + "Status\022\376\001\n\006Insert\0227.google.cloud.compute" + + ".v1.InsertInterconnectGroupRequest\032\".goo" + + "gle.cloud.compute.v1.Operation\"\226\001\332A#proj" + + "ect,interconnect_group_resource\212N\020Global" + + "Operations\202\323\344\223\002W\"8/compute/v1/projects/{" + + "project}/global/interconnectGroups:\033inte" + + "rconnect_group_resource\022\303\001\n\004List\0226.googl" + + "e.cloud.compute.v1.ListInterconnectGroup" + + "sRequest\0327.google.cloud.compute.v1.Inter" + + "connectGroupsListResponse\"J\332A\007project\202\323\344" + + "\223\002:\0228/compute/v1/projects/{project}/glob" + + "al/interconnectGroups\022\244\002\n\005Patch\0226.google" + + ".cloud.compute.v1.PatchInterconnectGroup" + + "Request\032\".google.cloud.compute.v1.Operat" + + "ion\"\276\001\332A6project,interconnect_group,inte" + + "rconnect_group_resource\212N\020GlobalOperatio" + + "ns\202\323\344\223\002l2M/compute/v1/projects/{project}" + + "/global/interconnectGroups/{interconnect" + + "_group}:\033interconnect_group_resource\022\243\002\n" + + "\014SetIamPolicy\022=.google.cloud.compute.v1." + + "SetIamPolicyInterconnectGroupRequest\032\037.g" + + "oogle.cloud.compute.v1.Policy\"\262\001\332A3proje" + + "ct,resource,global_set_policy_request_re" + + "source\202\323\344\223\002v\"P/compute/v1/projects/{proj" + + "ect}/global/interconnectGroups/{resource" + + "}/setIamPolicy:\"global_set_policy_reques" + + "t_resource\022\304\002\n\022TestIamPermissions\022C.goog" + "le.cloud.compute.v1.TestIamPermissionsIn" - + "stanceRequest\0320.google.cloud.compute.v1." - + "TestPermissionsResponse\"\270\001\332A7project,zon" - + "e,resource,test_permissions_request_reso" - + "urce\202\323\344\223\002x\"S/compute/v1/projects/{projec" - + "t}/zones/{zone}/instances/{resource}/tes" - + "tIamPermissions:!test_permissions_reques" - + "t_resource\022\365\001\n\006Update\022..google.cloud.com" - + "pute.v1.UpdateInstanceRequest\032\".google.c" - + "loud.compute.v1.Operation\"\226\001\332A\'project,z" - + "one,instance,instance_resource\212N\016ZoneOpe" - + "rations\202\323\344\223\002U\032@/compute/v1/projects/{pro" - + "ject}/zones/{zone}/instances/{instance}:" - + "\021instance_resource\022\274\002\n\022UpdateAccessConfi" - + "g\022:.google.cloud.compute.v1.UpdateAccess" - + "ConfigInstanceRequest\032\".google.cloud.com" - + "pute.v1.Operation\"\305\001\332A>project,zone,inst" - + "ance,network_interface,access_config_res" - + "ource\212N\016ZoneOperations\202\323\344\223\002m\"S/compute/v" - + "1/projects/{project}/zones/{zone}/instan" - + "ces/{instance}/updateAccessConfig:\026acces" - + "s_config_resource\022\257\002\n\023UpdateDisplayDevic" - + "e\022;.google.cloud.compute.v1.UpdateDispla" - + "yDeviceInstanceRequest\032\".google.cloud.co" - + "mpute.v1.Operation\"\266\001\332A-project,zone,ins" - + "tance,display_device_resource\212N\016ZoneOper" - + "ations\202\323\344\223\002o2T/compute/v1/projects/{proj" - + "ect}/zones/{zone}/instances/{instance}/u" - + "pdateDisplayDevice:\027display_device_resou" - + "rce\022\320\002\n\026UpdateNetworkInterface\022>.google." - + "cloud.compute.v1.UpdateNetworkInterfaceI" - + "nstanceRequest\032\".google.cloud.compute.v1" - + ".Operation\"\321\001\332ABproject,zone,instance,ne" - + "twork_interface,network_interface_resour" - + "ce\212N\016ZoneOperations\202\323\344\223\002u2W/compute/v1/p" - + "rojects/{project}/zones/{zone}/instances" - + "/{instance}/updateNetworkInterface:\032netw" - + "ork_interface_resource\022\337\002\n\034UpdateShielde" - + "dInstanceConfig\022D.google.cloud.compute.v" - + "1.UpdateShieldedInstanceConfigInstanceRe" - + "quest\032\".google.cloud.compute.v1.Operatio" - + "n\"\324\001\332A7project,zone,instance,shielded_in" - + "stance_config_resource\212N\016ZoneOperations\202" - + "\323\344\223\002\202\0012]/compute/v1/projects/{project}/z" - + "ones/{zone}/instances/{instance}/updateS" - + "hieldedInstanceConfig:!shielded_instance" - + "_config_resource\032r\312A\026compute.googleapis." - + "com\322AVhttps://www.googleapis.com/auth/co" - + "mpute,https://www.googleapis.com/auth/cl" - + "oud-platform2\203\023\n\020InstantSnapshots\022\326\001\n\016Ag" - + "gregatedList\022>.google.cloud.compute.v1.A" - + "ggregatedListInstantSnapshotsRequest\0326.g" - + "oogle.cloud.compute.v1.InstantSnapshotAg" - + "gregatedList\"L\332A\007project\202\323\344\223\002<\022:/compute" - + "/v1/projects/{project}/aggregated/instan" - + "tSnapshots\022\356\001\n\006Delete\0225.google.cloud.com" - + "pute.v1.DeleteInstantSnapshotRequest\032\".g" - + "oogle.cloud.compute.v1.Operation\"\210\001\332A\035pr" - + "oject,zone,instant_snapshot\212N\016ZoneOperat" - + "ions\202\323\344\223\002Q*O/compute/v1/projects/{projec" - + "t}/zones/{zone}/instantSnapshots/{instan" - + "t_snapshot}\022\334\001\n\003Get\0222.google.cloud.compu" - + "te.v1.GetInstantSnapshotRequest\032(.google" - + ".cloud.compute.v1.InstantSnapshot\"w\332A\035pr" - + "oject,zone,instant_snapshot\202\323\344\223\002Q\022O/comp" - + "ute/v1/projects/{project}/zones/{zone}/i" - + "nstantSnapshots/{instant_snapshot}\022\342\001\n\014G" - + "etIamPolicy\022;.google.cloud.compute.v1.Ge" - + "tIamPolicyInstantSnapshotRequest\032\037.googl" - + "e.cloud.compute.v1.Policy\"t\332A\025project,zo" - + "ne,resource\202\323\344\223\002V\022T/compute/v1/projects/" - + "{project}/zones/{zone}/instantSnapshots/" - + "{resource}/getIamPolicy\022\377\001\n\006Insert\0225.goo" - + "gle.cloud.compute.v1.InsertInstantSnapsh" - + "otRequest\032\".google.cloud.compute.v1.Oper" - + "ation\"\231\001\332A&project,zone,instant_snapshot" - + "_resource\212N\016ZoneOperations\202\323\344\223\002Y\"\022.google.cloud.compute.v1.TestIamPermiss" + + "ionsMachineImageRequest\0320.google.cloud.c" + + "ompute.v1.TestPermissionsResponse\"\261\001\332A2p" + + "roject,resource,test_permissions_request" + + "_resource\202\323\344\223\002v\"Q/compute/v1/projects/{p" + + "roject}/global/machineImages/{resource}/" + + "testIamPermissions:!test_permissions_req" + + "uest_resource\032r\312A\026compute.googleapis.com" + + "\322AVhttps://www.googleapis.com/auth/compu" + + "te,https://www.googleapis.com/auth/cloud" + + "-platform2\203\006\n\014MachineTypes\022\312\001\n\016Aggregate" + + "dList\022:.google.cloud.compute.v1.Aggregat" + + "edListMachineTypesRequest\0322.google.cloud" + + ".compute.v1.MachineTypeAggregatedList\"H\332" + + "A\007project\202\323\344\223\0028\0226/compute/v1/projects/{p" + + "roject}/aggregated/machineTypes\022\310\001\n\003Get\022" + + "..google.cloud.compute.v1.GetMachineType" + + "Request\032$.google.cloud.compute.v1.Machin" + + "eType\"k\332A\031project,zone,machine_type\202\323\344\223\002" + + "I\022G/compute/v1/projects/{project}/zones/" + + "{zone}/machineTypes/{machine_type}\022\263\001\n\004L" + + "ist\0220.google.cloud.compute.v1.ListMachin" + + "eTypesRequest\032(.google.cloud.compute.v1." + + "MachineTypeList\"O\332A\014project,zone\202\323\344\223\002:\0228" + + "/compute/v1/projects/{project}/zones/{zo" + + "ne}/machineTypes\032\244\001\312A\026compute.googleapis" + + ".com\322A\207\001https://www.googleapis.com/auth/" + + "compute.readonly,https://www.googleapis." + + "com/auth/compute,https://www.googleapis." + + "com/auth/cloud-platform2\360\023\n\022NetworkAttac" + + "hments\022\334\001\n\016AggregatedList\022@.google.cloud" + + ".compute.v1.AggregatedListNetworkAttachm" + + "entsRequest\0328.google.cloud.compute.v1.Ne" + + "tworkAttachmentAggregatedList\"N\332A\007projec" + + "t\202\323\344\223\002>\022.google.cloud.compute.v1." - + "GetInterconnectAttachmentGroupRequest\0324." - + "google.cloud.compute.v1.InterconnectAtta" - + "chmentGroup\"\222\001\332A%project,interconnect_at" - + "tachment_group\202\323\344\223\002d\022b/compute/v1/projec" - + "ts/{project}/global/interconnectAttachme" - + "ntGroups/{interconnect_attachment_group}" - + "\022\357\001\n\014GetIamPolicy\022G.google.cloud.compute" - + ".v1.GetIamPolicyInterconnectAttachmentGr" - + "oupRequest\032\037.google.cloud.compute.v1.Pol" - + "icy\"u\332A\020project,resource\202\323\344\223\002\\\022Z/compute" - + "/v1/projects/{project}/global/interconne" - + "ctAttachmentGroups/{resource}/getIamPoli" - + "cy\022\344\002\n\024GetOperationalStatus\022O.google.clo" - + "ud.compute.v1.GetOperationalStatusInterc" - + "onnectAttachmentGroupRequest\032Q.google.cl" - + "oud.compute.v1.InterconnectAttachmentGro" - + "upsGetOperationalStatusResponse\"\247\001\332A%pro" - + "ject,interconnect_attachment_group\202\323\344\223\002y" - + "\022w/compute/v1/projects/{project}/global/" - + "interconnectAttachmentGroups/{interconne" - + "ct_attachment_group}/getOperationalStatu" - + "s\022\250\002\n\006Insert\022A.google.cloud.compute.v1.I" - + "nsertInterconnectAttachmentGroupRequest\032" - + "\".google.cloud.compute.v1.Operation\"\266\001\332A" - + ".project,interconnect_attachment_group_r" - + "esource\212N\020GlobalOperations\202\323\344\223\002l\"B/compu" - + "te/v1/projects/{project}/global/intercon" - + "nectAttachmentGroups:&interconnect_attac" - + "hment_group_resource\022\341\001\n\004List\022@.google.c" - + "loud.compute.v1.ListInterconnectAttachme" - + "ntGroupsRequest\032A.google.cloud.compute.v" - + "1.InterconnectAttachmentGroupsListRespon" - + "se\"T\332A\007project\202\323\344\223\002D\022B/compute/v1/projec" - + "ts/{project}/global/interconnectAttachme" - + "ntGroups\022\345\002\n\005Patch\022@.google.cloud.comput" - + "e.v1.PatchInterconnectAttachmentGroupReq" + + "d-platform2\206\r\n\033NetworkEdgeSecurityServic" + + "es\022\367\001\n\016AggregatedList\022I.google.cloud.com" + + "pute.v1.AggregatedListNetworkEdgeSecurit" + + "yServicesRequest\032A.google.cloud.compute." + + "v1.NetworkEdgeSecurityServiceAggregatedL" + + "ist\"W\332A\007project\202\323\344\223\002G\022E/compute/v1/proje" + + "cts/{project}/aggregated/networkEdgeSecu" + + "rityServices\022\246\002\n\006Delete\022@.google.cloud.c" + + "ompute.v1.DeleteNetworkEdgeSecurityServi" + + "ceRequest\032\".google.cloud.compute.v1.Oper" + + "ation\"\265\001\332A,project,region,network_edge_s" + + "ecurity_service\212N\020RegionOperations\202\323\344\223\002m" + + "*k/compute/v1/projects/{project}/regions" + + "/{region}/networkEdgeSecurityServices/{n" + + "etwork_edge_security_service}\022\236\002\n\003Get\022=." + + "google.cloud.compute.v1.GetNetworkEdgeSe" + + "curityServiceRequest\0323.google.cloud.comp" + + "ute.v1.NetworkEdgeSecurityService\"\242\001\332A,p" + + "roject,region,network_edge_security_serv" + + "ice\202\323\344\223\002m\022k/compute/v1/projects/{project" + + "}/regions/{region}/networkEdgeSecuritySe" + + "rvices/{network_edge_security_service}\022\267" + + "\002\n\006Insert\022@.google.cloud.compute.v1.Inse" + + "rtNetworkEdgeSecurityServiceRequest\032\".go" + + "ogle.cloud.compute.v1.Operation\"\306\001\332A5pro" + + "ject,region,network_edge_security_servic" + + "e_resource\212N\020RegionOperations\202\323\344\223\002u\"K/co" + + "mpute/v1/projects/{project}/regions/{reg" + + "ion}/networkEdgeSecurityServices:&networ" + + "k_edge_security_service_resource\022\364\002\n\005Pat" + + "ch\022?.google.cloud.compute.v1.PatchNetwor" + + "kEdgeSecurityServiceRequest\032\".google.clo" + + "ud.compute.v1.Operation\"\205\002\332ASproject,reg" + + "ion,network_edge_security_service,networ" + + "k_edge_security_service_resource\212N\020Regio" + + "nOperations\202\323\344\223\002\225\0012k/compute/v1/projects" + + "/{project}/regions/{region}/networkEdgeS" + + "ecurityServices/{network_edge_security_s" + + "ervice}:&network_edge_security_service_r" + + "esource\032r\312A\026compute.googleapis.com\322AVhtt" + + "ps://www.googleapis.com/auth/compute,htt" + + "ps://www.googleapis.com/auth/cloud-platf" + + "orm2\331\027\n\025NetworkEndpointGroups\022\345\001\n\016Aggreg" + + "atedList\022C.google.cloud.compute.v1.Aggre" + + "gatedListNetworkEndpointGroupsRequest\032;." + + "google.cloud.compute.v1.NetworkEndpointG" + + "roupAggregatedList\"Q\332A\007project\202\323\344\223\002A\022?/c" + + "ompute/v1/projects/{project}/aggregated/" + + "networkEndpointGroups\022\261\003\n\026AttachNetworkE" + + "ndpoints\022J.google.cloud.compute.v1.Attac" + + "hNetworkEndpointsNetworkEndpointGroupReq" + "uest\032\".google.cloud.compute.v1.Operation" - + "\"\365\001\332ALproject,interconnect_attachment_gr" - + "oup,interconnect_attachment_group_resour" - + "ce\212N\020GlobalOperations\202\323\344\223\002\214\0012b/compute/v" - + "1/projects/{project}/global/interconnect" - + "AttachmentGroups/{interconnect_attachmen" - + "t_group}:&interconnect_attachment_group_" - + "resource\022\270\002\n\014SetIamPolicy\022G.google.cloud" - + ".compute.v1.SetIamPolicyInterconnectAtta" - + "chmentGroupRequest\032\037.google.cloud.comput" - + "e.v1.Policy\"\275\001\332A3project,resource,global" - + "_set_policy_request_resource\202\323\344\223\002\200\001\"Z/co" - + "mpute/v1/projects/{project}/global/inter" - + "connectAttachmentGroups/{resource}/setIa" - + "mPolicy:\"global_set_policy_request_resou" - + "rce\022\331\002\n\022TestIamPermissions\022M.google.clou" - + "d.compute.v1.TestIamPermissionsInterconn" - + "ectAttachmentGroupRequest\0320.google.cloud" - + ".compute.v1.TestPermissionsResponse\"\301\001\332A" - + "2project,resource,test_permissions_reque" - + "st_resource\202\323\344\223\002\205\001\"`/compute/v1/projects" - + "/{project}/global/interconnectAttachment" - + "Groups/{resource}/testIamPermissions:!te" - + "st_permissions_request_resource\032r\312A\026comp" - + "ute.googleapis.com\322AVhttps://www.googlea" - + "pis.com/auth/compute,https://www.googlea" - + "pis.com/auth/cloud-platform2\302\020\n\027Intercon" - + "nectAttachments\022\353\001\n\016AggregatedList\022E.goo" - + "gle.cloud.compute.v1.AggregatedListInter" - + "connectAttachmentsRequest\032=.google.cloud" - + ".compute.v1.InterconnectAttachmentAggreg" - + "atedList\"S\332A\007project\202\323\344\223\002C\022A/compute/v1/" - + "projects/{project}/aggregated/interconne" - + "ctAttachments\022\222\002\n\006Delete\022<.google.cloud." - + "compute.v1.DeleteInterconnectAttachmentR" - + "equest\032\".google.cloud.compute.v1.Operati" - + "on\"\245\001\332A&project,region,interconnect_atta" - + "chment\212N\020RegionOperations\202\323\344\223\002c*a/comput" - + "e/v1/projects/{project}/regions/{region}" - + "/interconnectAttachments/{interconnect_a" - + "ttachment}\022\206\002\n\003Get\0229.google.cloud.comput" - + "e.v1.GetInterconnectAttachmentRequest\032/." - + "google.cloud.compute.v1.InterconnectAtta" - + "chment\"\222\001\332A&project,region,interconnect_" - + "attachment\202\323\344\223\002c\022a/compute/v1/projects/{" - + "project}/regions/{region}/interconnectAt" - + "tachments/{interconnect_attachment}\022\243\002\n\006" - + "Insert\022<.google.cloud.compute.v1.InsertI" - + "nterconnectAttachmentRequest\032\".google.cl" - + "oud.compute.v1.Operation\"\266\001\332A/project,re" - + "gion,interconnect_attachment_resource\212N\020" - + "RegionOperations\202\323\344\223\002k\"G/compute/v1/proj" - + "ects/{project}/regions/{region}/intercon" - + "nectAttachments: interconnect_attachment" - + "_resource\022\332\001\n\004List\022;.google.cloud.comput" - + "e.v1.ListInterconnectAttachmentsRequest\032" - + "3.google.cloud.compute.v1.InterconnectAt" - + "tachmentList\"`\332A\016project,region\202\323\344\223\002I\022G/" - + "compute/v1/projects/{project}/regions/{r" - + "egion}/interconnectAttachments\022\324\002\n\005Patch" - + "\022;.google.cloud.compute.v1.PatchIntercon" - + "nectAttachmentRequest\032\".google.cloud.com" - + "pute.v1.Operation\"\351\001\332AGproject,region,in" - + "terconnect_attachment,interconnect_attac" - + "hment_resource\212N\020RegionOperations\202\323\344\223\002\205\001" - + "2a/compute/v1/projects/{project}/regions" - + "/{region}/interconnectAttachments/{inter" - + "connect_attachment}: interconnect_attach" - + "ment_resource\022\314\002\n\tSetLabels\022?.google.clo" - + "ud.compute.v1.SetLabelsInterconnectAttac" - + "hmentRequest\032\".google.cloud.compute.v1.O" - + "peration\"\331\001\332A:project,region,resource,re" - + "gion_set_labels_request_resource\212N\020Regio" - + "nOperations\202\323\344\223\002\202\001\"\\/compute/v1/projects" - + "/{project}/regions/{region}/interconnect" - + "Attachments/{resource}/setLabels:\"region" - + "_set_labels_request_resource\032r\312A\026compute" - + ".googleapis.com\322AVhttps://www.googleapis" - + ".com/auth/compute,https://www.googleapis" - + ".com/auth/cloud-platform2\270\026\n\022Interconnec" - + "tGroups\022\363\002\n\rCreateMembers\022>.google.cloud" - + ".compute.v1.CreateMembersInterconnectGro" - + "upRequest\032\".google.cloud.compute.v1.Oper" - + "ation\"\375\001\332ANproject,interconnect_group,in" - + "terconnect_groups_create_members_request" - + "_resource\212N\020GlobalOperations\202\323\344\223\002\222\001\"[/co" - + "mpute/v1/projects/{project}/global/inter" - + "connectGroups/{interconnect_group}/creat" - + "eMembers:3interconnect_groups_create_mem" - + "bers_request_resource\022\355\001\n\006Delete\0227.googl" - + "e.cloud.compute.v1.DeleteInterconnectGro" - + "upRequest\032\".google.cloud.compute.v1.Oper" - + "ation\"\205\001\332A\032project,interconnect_group\212N\020" - + "GlobalOperations\202\323\344\223\002O*M/compute/v1/proj" - + "ects/{project}/global/interconnectGroups" - + "/{interconnect_group}\022\333\001\n\003Get\0224.google.c" - + "loud.compute.v1.GetInterconnectGroupRequ" - + "est\032*.google.cloud.compute.v1.Interconne" - + "ctGroup\"r\332A\032project,interconnect_group\202\323" - + "\344\223\002O\022M/compute/v1/projects/{project}/glo" - + "bal/interconnectGroups/{interconnect_gro" - + "up}\022\333\001\n\014GetIamPolicy\022=.google.cloud.comp" - + "ute.v1.GetIamPolicyInterconnectGroupRequ" - + "est\032\037.google.cloud.compute.v1.Policy\"k\332A" - + "\020project,resource\202\323\344\223\002R\022P/compute/v1/pro" - + "jects/{project}/global/interconnectGroup" - + "s/{resource}/getIamPolicy\022\260\002\n\024GetOperati" - + "onalStatus\022E.google.cloud.compute.v1.Get" - + "OperationalStatusInterconnectGroupReques" - + "t\032G.google.cloud.compute.v1.Interconnect" - + "GroupsGetOperationalStatusResponse\"\207\001\332A\032" - + "project,interconnect_group\202\323\344\223\002d\022b/compu" - + "te/v1/projects/{project}/global/intercon" - + "nectGroups/{interconnect_group}/getOpera" - + "tionalStatus\022\376\001\n\006Insert\0227.google.cloud.c" - + "ompute.v1.InsertInterconnectGroupRequest" - + "\032\".google.cloud.compute.v1.Operation\"\226\001\332" - + "A#project,interconnect_group_resource\212N\020" - + "GlobalOperations\202\323\344\223\002W\"8/compute/v1/proj" - + "ects/{project}/global/interconnectGroups" - + ":\033interconnect_group_resource\022\303\001\n\004List\0226" - + ".google.cloud.compute.v1.ListInterconnec" - + "tGroupsRequest\0327.google.cloud.compute.v1" - + ".InterconnectGroupsListResponse\"J\332A\007proj" - + "ect\202\323\344\223\002:\0228/compute/v1/projects/{project" - + "}/global/interconnectGroups\022\244\002\n\005Patch\0226." - + "google.cloud.compute.v1.PatchInterconnec" - + "tGroupRequest\032\".google.cloud.compute.v1." - + "Operation\"\276\001\332A6project,interconnect_grou" - + "p,interconnect_group_resource\212N\020GlobalOp" - + "erations\202\323\344\223\002l2M/compute/v1/projects/{pr" - + "oject}/global/interconnectGroups/{interc" - + "onnect_group}:\033interconnect_group_resour" - + "ce\022\243\002\n\014SetIamPolicy\022=.google.cloud.compu" - + "te.v1.SetIamPolicyInterconnectGroupReque" - + "st\032\037.google.cloud.compute.v1.Policy\"\262\001\332A" - + "3project,resource,global_set_policy_requ" - + "est_resource\202\323\344\223\002v\"P/compute/v1/projects" - + "/{project}/global/interconnectGroups/{re" - + "source}/setIamPolicy:\"global_set_policy_" - + "request_resource\022\304\002\n\022TestIamPermissions\022" - + "C.google.cloud.compute.v1.TestIamPermiss" - + "ionsInterconnectGroupRequest\0320.google.cl" - + "oud.compute.v1.TestPermissionsResponse\"\266" - + "\001\332A2project,resource,test_permissions_re" - + "quest_resource\202\323\344\223\002{\"V/compute/v1/projec" - + "ts/{project}/global/interconnectGroups/{" - + "resource}/testIamPermissions:!test_permi" - + "ssions_request_resource\032r\312A\026compute.goog" - + "leapis.com\322AVhttps://www.googleapis.com/" - + "auth/compute,https://www.googleapis.com/" - + "auth/cloud-platform2\361\004\n\025InterconnectLoca" - + "tions\022\352\001\n\003Get\0227.google.cloud.compute.v1." - + "GetInterconnectLocationRequest\032-.google." - + "cloud.compute.v1.InterconnectLocation\"{\332" - + "A\035project,interconnect_location\202\323\344\223\002U\022S/" - + "compute/v1/projects/{project}/global/int" - + "erconnectLocations/{interconnect_locatio" - + "n}\022\303\001\n\004List\0229.google.cloud.compute.v1.Li" - + "stInterconnectLocationsRequest\0321.google." - + "cloud.compute.v1.InterconnectLocationLis" - + "t\"M\332A\007project\202\323\344\223\002=\022;/compute/v1/project" - + "s/{project}/global/interconnectLocations" - + "\032\244\001\312A\026compute.googleapis.com\322A\207\001https://" - + "www.googleapis.com/auth/compute.readonly" - + ",https://www.googleapis.com/auth/compute" - + ",https://www.googleapis.com/auth/cloud-p" - + "latform2\252\005\n\033InterconnectRemoteLocations\022" - + "\213\002\n\003Get\022=.google.cloud.compute.v1.GetInt" - + "erconnectRemoteLocationRequest\0323.google." - + "cloud.compute.v1.InterconnectRemoteLocat" - + "ion\"\217\001\332A$project,interconnect_remote_loc" - + "ation\202\323\344\223\002b\022`/compute/v1/projects/{proje" - + "ct}/global/interconnectRemoteLocations/{" - + "interconnect_remote_location}\022\325\001\n\004List\022?" - + ".google.cloud.compute.v1.ListInterconnec" - + "tRemoteLocationsRequest\0327.google.cloud.c" - + "ompute.v1.InterconnectRemoteLocationList" - + "\"S\332A\007project\202\323\344\223\002C\022A/compute/v1/projects" - + "/{project}/global/interconnectRemoteLoca" - + "tions\032\244\001\312A\026compute.googleapis.com\322A\207\001htt" - + "ps://www.googleapis.com/auth/compute.rea" - + "donly,https://www.googleapis.com/auth/co" - + "mpute,https://www.googleapis.com/auth/cl" - + "oud-platform2\350\017\n\rInterconnects\022\326\001\n\006Delet" - + "e\0222.google.cloud.compute.v1.DeleteInterc" - + "onnectRequest\032\".google.cloud.compute.v1." - + "Operation\"t\332A\024project,interconnect\212N\020Glo" - + "balOperations\202\323\344\223\002D*B/compute/v1/project" - + "s/{project}/global/interconnects/{interc" - + "onnect}\022\300\001\n\003Get\022/.google.cloud.compute.v" - + "1.GetInterconnectRequest\032%.google.cloud." - + "compute.v1.Interconnect\"a\332A\024project,inte" - + "rconnect\202\323\344\223\002D\022B/compute/v1/projects/{pr" - + "oject}/global/interconnects/{interconnec" - + "t}\022\374\001\n\016GetDiagnostics\022:.google.cloud.com" - + "pute.v1.GetDiagnosticsInterconnectReques" - + "t\032<.google.cloud.compute.v1.Interconnect" - + "sGetDiagnosticsResponse\"p\332A\024project,inte" - + "rconnect\202\323\344\223\002S\022Q/compute/v1/projects/{pr" - + "oject}/global/interconnects/{interconnec" - + "t}/getDiagnostics\022\200\002\n\017GetMacsecConfig\022;." - + "google.cloud.compute.v1.GetMacsecConfigI" - + "nterconnectRequest\032=.google.cloud.comput" - + "e.v1.InterconnectsGetMacsecConfigRespons" - + "e\"q\332A\024project,interconnect\202\323\344\223\002T\022R/compu" - + "te/v1/projects/{project}/global/intercon" - + "nects/{interconnect}/getMacsecConfig\022\350\001\n" - + "\006Insert\0222.google.cloud.compute.v1.Insert" - + "InterconnectRequest\032\".google.cloud.compu" - + "te.v1.Operation\"\205\001\332A\035project,interconnec" - + "t_resource\212N\020GlobalOperations\202\323\344\223\002L\"3/co" - + "mpute/v1/projects/{project}/global/inter" - + "connects:\025interconnect_resource\022\253\001\n\004List" - + "\0221.google.cloud.compute.v1.ListInterconn" - + "ectsRequest\032).google.cloud.compute.v1.In" - + "terconnectList\"E\332A\007project\202\323\344\223\0025\0223/compu" - + "te/v1/projects/{project}/global/intercon" - + "nects\022\202\002\n\005Patch\0221.google.cloud.compute.v" - + "1.PatchInterconnectRequest\032\".google.clou" - + "d.compute.v1.Operation\"\241\001\332A*project,inte" - + "rconnect,interconnect_resource\212N\020GlobalO" - + "perations\202\323\344\223\002[2B/compute/v1/projects/{p" - + "roject}/global/interconnects/{interconne" - + "ct}:\025interconnect_resource\022\246\002\n\tSetLabels" - + "\0225.google.cloud.compute.v1.SetLabelsInte" - + "rconnectRequest\032\".google.cloud.compute.v" - + "1.Operation\"\275\001\332A3project,resource,global" - + "_set_labels_request_resource\212N\020GlobalOpe" - + "rations\202\323\344\223\002n\"H/compute/v1/projects/{pro" - + "ject}/global/interconnects/{resource}/se" - + "tLabels:\"global_set_labels_request_resou" - + "rce\032r\312A\026compute.googleapis.com\322AVhttps:/" - + "/www.googleapis.com/auth/compute,https:/" - + "/www.googleapis.com/auth/cloud-platform2" - + "\260\005\n\014LicenseCodes\022\275\001\n\003Get\022..google.cloud." - + "compute.v1.GetLicenseCodeRequest\032$.googl" - + "e.cloud.compute.v1.LicenseCode\"`\332A\024proje" - + "ct,license_code\202\323\344\223\002C\022A/compute/v1/proje" - + "cts/{project}/global/licenseCodes/{licen" - + "se_code}\022\270\002\n\022TestIamPermissions\022=.google" - + ".cloud.compute.v1.TestIamPermissionsLice" - + "nseCodeRequest\0320.google.cloud.compute.v1" - + ".TestPermissionsResponse\"\260\001\332A2project,re" - + "source,test_permissions_request_resource" - + "\202\323\344\223\002u\"P/compute/v1/projects/{project}/g" - + "lobal/licenseCodes/{resource}/testIamPer" - + "missions:!test_permissions_request_resou" - + "rce\032\244\001\312A\026compute.googleapis.com\322A\207\001https" - + "://www.googleapis.com/auth/compute.reado" - + "nly,https://www.googleapis.com/auth/comp" - + "ute,https://www.googleapis.com/auth/clou" - + "d-platform2\343\016\n\010Licenses\022\302\001\n\006Delete\022-.goo" - + "gle.cloud.compute.v1.DeleteLicenseReques" - + "t\032\".google.cloud.compute.v1.Operation\"e\332" - + "A\017project,license\212N\020GlobalOperations\202\323\344\223" - + "\002:*8/compute/v1/projects/{project}/globa" - + "l/licenses/{license}\022\247\001\n\003Get\022*.google.cl" - + "oud.compute.v1.GetLicenseRequest\032 .googl" - + "e.cloud.compute.v1.License\"R\332A\017project,l" - + "icense\202\323\344\223\002:\0228/compute/v1/projects/{proj" - + "ect}/global/licenses/{license}\022\307\001\n\014GetIa" - + "mPolicy\0223.google.cloud.compute.v1.GetIam" - + "PolicyLicenseRequest\032\037.google.cloud.comp" - + "ute.v1.Policy\"a\332A\020project,resource\202\323\344\223\002H" - + "\022F/compute/v1/projects/{project}/global/" - + "licenses/{resource}/getIamPolicy\022\323\001\n\006Ins" - + "ert\022-.google.cloud.compute.v1.InsertLice" - + "nseRequest\032\".google.cloud.compute.v1.Ope" - + "ration\"v\332A\030project,license_resource\212N\020Gl" - + "obalOperations\202\323\344\223\002B\"./compute/v1/projec" - + "ts/{project}/global/licenses:\020license_re" - + "source\022\245\001\n\004List\022,.google.cloud.compute.v" - + "1.ListLicensesRequest\032-.google.cloud.com" - + "pute.v1.LicensesListResponse\"@\332A\007project" - + "\202\323\344\223\0020\022./compute/v1/projects/{project}/g" - + "lobal/licenses\022\217\002\n\014SetIamPolicy\0223.google" - + ".cloud.compute.v1.SetIamPolicyLicenseReq" - + "uest\032\037.google.cloud.compute.v1.Policy\"\250\001" - + "\332A3project,resource,global_set_policy_re" - + "quest_resource\202\323\344\223\002l\"F/compute/v1/projec" - + "ts/{project}/global/licenses/{resource}/" - + "setIamPolicy:\"global_set_policy_request_" - + "resource\022\260\002\n\022TestIamPermissions\0229.google" - + ".cloud.compute.v1.TestIamPermissionsLice" - + "nseRequest\0320.google.cloud.compute.v1.Tes" - + "tPermissionsResponse\"\254\001\332A2project,resour" - + "ce,test_permissions_request_resource\202\323\344\223" - + "\002q\"L/compute/v1/projects/{project}/globa" - + "l/licenses/{resource}/testIamPermissions" - + ":!test_permissions_request_resource\022\346\001\n\006" - + "Update\022-.google.cloud.compute.v1.UpdateL" - + "icenseRequest\032\".google.cloud.compute.v1." - + "Operation\"\210\001\332A project,license,license_r" - + "esource\212N\020GlobalOperations\202\323\344\223\002L28/compu" - + "te/v1/projects/{project}/global/licenses" - + "/{license}:\020license_resource\032r\312A\026compute" - + ".googleapis.com\322AVhttps://www.googleapis" - + ".com/auth/compute,https://www.googleapis" - + ".com/auth/cloud-platform2\224\020\n\rMachineImag" - + "es\022\330\001\n\006Delete\0222.google.cloud.compute.v1." - + "DeleteMachineImageRequest\032\".google.cloud" - + ".compute.v1.Operation\"v\332A\025project,machin" - + "e_image\212N\020GlobalOperations\202\323\344\223\002E*C/compu" - + "te/v1/projects/{project}/global/machineI" - + "mages/{machine_image}\022\302\001\n\003Get\022/.google.c" - + "loud.compute.v1.GetMachineImageRequest\032%" - + ".google.cloud.compute.v1.MachineImage\"c\332" - + "A\025project,machine_image\202\323\344\223\002E\022C/compute/" - + "v1/projects/{project}/global/machineImag" - + "es/{machine_image}\022\321\001\n\014GetIamPolicy\0228.go" - + "ogle.cloud.compute.v1.GetIamPolicyMachin" - + "eImageRequest\032\037.google.cloud.compute.v1." - + "Policy\"f\332A\020project,resource\202\323\344\223\002M\022K/comp" - + "ute/v1/projects/{project}/global/machine" - + "Images/{resource}/getIamPolicy\022\352\001\n\006Inser" - + "t\0222.google.cloud.compute.v1.InsertMachin" - + "eImageRequest\032\".google.cloud.compute.v1." - + "Operation\"\207\001\332A\036project,machine_image_res" - + "ource\212N\020GlobalOperations\202\323\344\223\002M\"3/compute" - + "/v1/projects/{project}/global/machineIma" - + "ges:\026machine_image_resource\022\253\001\n\004List\0221.g" - + "oogle.cloud.compute.v1.ListMachineImages" - + "Request\032).google.cloud.compute.v1.Machin", - "eImageList\"E\332A\007project\202\323\344\223\0025\0223/compute/v" - + "1/projects/{project}/global/machineImage" - + "s\022\231\002\n\014SetIamPolicy\0228.google.cloud.comput" - + "e.v1.SetIamPolicyMachineImageRequest\032\037.g" - + "oogle.cloud.compute.v1.Policy\"\255\001\332A3proje" - + "ct,resource,global_set_policy_request_re" - + "source\202\323\344\223\002q\"K/compute/v1/projects/{proj" - + "ect}/global/machineImages/{resource}/set" - + "IamPolicy:\"global_set_policy_request_res" - + "ource\022\246\002\n\tSetLabels\0225.google.cloud.compu" - + "te.v1.SetLabelsMachineImageRequest\032\".goo" - + "gle.cloud.compute.v1.Operation\"\275\001\332A3proj" - + "ect,resource,global_set_labels_request_r" - + "esource\212N\020GlobalOperations\202\323\344\223\002n\"H/compu" - + "te/v1/projects/{project}/global/machineI" - + "mages/{resource}/setLabels:\"global_set_l" - + "abels_request_resource\022\272\002\n\022TestIamPermis" - + "sions\022>.google.cloud.compute.v1.TestIamP" - + "ermissionsMachineImageRequest\0320.google.c" - + "loud.compute.v1.TestPermissionsResponse\"" - + "\261\001\332A2project,resource,test_permissions_r" - + "equest_resource\202\323\344\223\002v\"Q/compute/v1/proje" - + "cts/{project}/global/machineImages/{reso" - + "urce}/testIamPermissions:!test_permissio" - + "ns_request_resource\032r\312A\026compute.googleap" - + "is.com\322AVhttps://www.googleapis.com/auth" - + "/compute,https://www.googleapis.com/auth" - + "/cloud-platform2\203\006\n\014MachineTypes\022\312\001\n\016Agg" - + "regatedList\022:.google.cloud.compute.v1.Ag" - + "gregatedListMachineTypesRequest\0322.google" - + ".cloud.compute.v1.MachineTypeAggregatedL" - + "ist\"H\332A\007project\202\323\344\223\0028\0226/compute/v1/proje" - + "cts/{project}/aggregated/machineTypes\022\310\001" - + "\n\003Get\022..google.cloud.compute.v1.GetMachi" - + "neTypeRequest\032$.google.cloud.compute.v1." - + "MachineType\"k\332A\031project,zone,machine_typ" - + "e\202\323\344\223\002I\022G/compute/v1/projects/{project}/" - + "zones/{zone}/machineTypes/{machine_type}" - + "\022\263\001\n\004List\0220.google.cloud.compute.v1.List" - + "MachineTypesRequest\032(.google.cloud.compu" - + "te.v1.MachineTypeList\"O\332A\014project,zone\202\323" - + "\344\223\002:\0228/compute/v1/projects/{project}/zon" - + "es/{zone}/machineTypes\032\244\001\312A\026compute.goog" - + "leapis.com\322A\207\001https://www.googleapis.com" - + "/auth/compute.readonly,https://www.googl" - + "eapis.com/auth/compute,https://www.googl" - + "eapis.com/auth/cloud-platform2\360\023\n\022Networ" - + "kAttachments\022\334\001\n\016AggregatedList\022@.google" - + ".cloud.compute.v1.AggregatedListNetworkA" - + "ttachmentsRequest\0328.google.cloud.compute" - + ".v1.NetworkAttachmentAggregatedList\"N\332A\007" - + "project\202\323\344\223\002>\022.google.clo" + + "ud.compute.v1.PatchRuleNetworkFirewallPo" + + "licyRequest\032\".google.cloud.compute.v1.Op" + + "eration\"\304\001\332A5project,firewall_policy,fir" + + "ewall_policy_rule_resource\212N\020GlobalOpera" + + "tions\202\323\344\223\002s\"R/compute/v1/projects/{proje" + "ct}/global/firewallPolicies/{firewall_po" - + "licy}/getRule\022\372\001\n\006Insert\022;.google.cloud." - + "compute.v1.InsertNetworkFirewallPolicyRe" - + "quest\032\".google.cloud.compute.v1.Operatio" - + "n\"\216\001\332A project,firewall_policy_resource\212" - + "N\020GlobalOperations\202\323\344\223\002R\"6/compute/v1/pr" - + "ojects/{project}/global/firewallPolicies" - + ":\030firewall_policy_resource\022\272\001\n\004List\022;.go" - + "ogle.cloud.compute.v1.ListNetworkFirewal" - + "lPoliciesRequest\032+.google.cloud.compute." - + "v1.FirewallPolicyList\"H\332A\007project\202\323\344\223\0028\022" - + "6/compute/v1/projects/{project}/global/f" - + "irewallPolicies\022\232\002\n\005Patch\022:.google.cloud" - + ".compute.v1.PatchNetworkFirewallPolicyRe" - + "quest\032\".google.cloud.compute.v1.Operatio" - + "n\"\260\001\332A0project,firewall_policy,firewall_" - + "policy_resource\212N\020GlobalOperations\202\323\344\223\002d" - + "2H/compute/v1/projects/{project}/global/" - + "firewallPolicies/{firewall_policy}:\030fire" - + "wall_policy_resource\022\344\002\n\030PatchPacketMirr" - + "oringRule\022M.google.cloud.compute.v1.Patc" - + "hPacketMirroringRuleNetworkFirewallPolic" - + "yRequest\032\".google.cloud.compute.v1.Opera" - + "tion\"\324\001\332A5project,firewall_policy,firewa" - + "ll_policy_rule_resource\212N\020GlobalOperatio" - + "ns\202\323\344\223\002\202\001\"a/compute/v1/projects/{project" - + "}/global/firewallPolicies/{firewall_poli" - + "cy}/patchPacketMirroringRule:\035firewall_p" - + "olicy_rule_resource\022\266\002\n\tPatchRule\022>.goog" - + "le.cloud.compute.v1.PatchRuleNetworkFire" - + "wallPolicyRequest\032\".google.cloud.compute" - + ".v1.Operation\"\304\001\332A5project,firewall_poli" - + "cy,firewall_policy_rule_resource\212N\020Globa" - + "lOperations\202\323\344\223\002s\"R/compute/v1/projects/" - + "{project}/global/firewallPolicies/{firew" - + "all_policy}/patchRule:\035firewall_policy_r" - + "ule_resource\022\221\002\n\021RemoveAssociation\022F.goo" - + "gle.cloud.compute.v1.RemoveAssociationNe" - + "tworkFirewallPolicyRequest\032\".google.clou" - + "d.compute.v1.Operation\"\217\001\332A\027project,fire" - + "wall_policy\212N\020GlobalOperations\202\323\344\223\002\\\"Z/c" - + "ompute/v1/projects/{project}/global/fire" - + "wallPolicies/{firewall_policy}/removeAss" - + "ociation\022\251\002\n\031RemovePacketMirroringRule\022N" - + ".google.cloud.compute.v1.RemovePacketMir" - + "roringRuleNetworkFirewallPolicyRequest\032\"" - + ".google.cloud.compute.v1.Operation\"\227\001\332A\027" - + "project,firewall_policy\212N\020GlobalOperatio" - + "ns\202\323\344\223\002d\"b/compute/v1/projects/{project}" - + "/global/firewallPolicies/{firewall_polic" - + "y}/removePacketMirroringRule\022\374\001\n\nRemoveR" - + "ule\022?.google.cloud.compute.v1.RemoveRule" - + "NetworkFirewallPolicyRequest\032\".google.cl" - + "oud.compute.v1.Operation\"\210\001\332A\027project,fi" - + "rewall_policy\212N\020GlobalOperations\202\323\344\223\002U\"S" - + "/compute/v1/projects/{project}/global/fi" - + "rewallPolicies/{firewall_policy}/removeR" - + "ule\022\245\002\n\014SetIamPolicy\022A.google.cloud.comp" - + "ute.v1.SetIamPolicyNetworkFirewallPolicy" - + "Request\032\037.google.cloud.compute.v1.Policy" - + "\"\260\001\332A3project,resource,global_set_policy" - + "_request_resource\202\323\344\223\002t\"N/compute/v1/pro" - + "jects/{project}/global/firewallPolicies/" - + "{resource}/setIamPolicy:\"global_set_poli" - + "cy_request_resource\022\306\002\n\022TestIamPermissio" - + "ns\022G.google.cloud.compute.v1.TestIamPerm" - + "issionsNetworkFirewallPolicyRequest\0320.go" - + "ogle.cloud.compute.v1.TestPermissionsRes" - + "ponse\"\264\001\332A2project,resource,test_permiss" - + "ions_request_resource\202\323\344\223\002y\"T/compute/v1" - + "/projects/{project}/global/firewallPolic" - + "ies/{resource}/testIamPermissions:!test_" - + "permissions_request_resource\032r\312A\026compute" - + ".googleapis.com\322AVhttps://www.googleapis" - + ".com/auth/compute,https://www.googleapis" - + ".com/auth/cloud-platform2\304\004\n\017NetworkProf" - + "iles\022\314\001\n\003Get\0221.google.cloud.compute.v1.G" - + "etNetworkProfileRequest\032\'.google.cloud.c" - + "ompute.v1.NetworkProfile\"i\332A\027project,net" - + "work_profile\202\323\344\223\002I\022G/compute/v1/projects" - + "/{project}/global/networkProfiles/{netwo" - + "rk_profile}\022\272\001\n\004List\0223.google.cloud.comp" - + "ute.v1.ListNetworkProfilesRequest\0324.goog" - + "le.cloud.compute.v1.NetworkProfilesListR" - + "esponse\"G\332A\007project\202\323\344\223\0027\0225/compute/v1/p" - + "rojects/{project}/global/networkProfiles" - + "\032\244\001\312A\026compute.googleapis.com\322A\207\001https://" - + "www.googleapis.com/auth/compute.readonly" - + ",https://www.googleapis.com/auth/compute" - + ",https://www.googleapis.com/auth/cloud-p" - + "latform2\267\025\n\010Networks\022\243\002\n\nAddPeering\0221.go" - + "ogle.cloud.compute.v1.AddPeeringNetworkR" + + "licy}/patchRule:\035firewall_policy_rule_re" + + "source\022\221\002\n\021RemoveAssociation\022F.google.cl" + + "oud.compute.v1.RemoveAssociationNetworkF" + + "irewallPolicyRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\217\001\332A\027project,firewall_p" + + "olicy\212N\020GlobalOperations\202\323\344\223\002\\\"Z/compute" + + "/v1/projects/{project}/global/firewallPo" + + "licies/{firewall_policy}/removeAssociati" + + "on\022\251\002\n\031RemovePacketMirroringRule\022N.googl" + + "e.cloud.compute.v1.RemovePacketMirroring" + + "RuleNetworkFirewallPolicyRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"\227\001\332A\027projec" + + "t,firewall_policy\212N\020GlobalOperations\202\323\344\223" + + "\002d\"b/compute/v1/projects/{project}/globa" + + "l/firewallPolicies/{firewall_policy}/rem" + + "ovePacketMirroringRule\022\374\001\n\nRemoveRule\022?." + + "google.cloud.compute.v1.RemoveRuleNetwor" + + "kFirewallPolicyRequest\032\".google.cloud.co" + + "mpute.v1.Operation\"\210\001\332A\027project,firewall" + + "_policy\212N\020GlobalOperations\202\323\344\223\002U\"S/compu" + + "te/v1/projects/{project}/global/firewall" + + "Policies/{firewall_policy}/removeRule\022\245\002" + + "\n\014SetIamPolicy\022A.google.cloud.compute.v1" + + ".SetIamPolicyNetworkFirewallPolicyReques" + + "t\032\037.google.cloud.compute.v1.Policy\"\260\001\332A3" + + "project,resource,global_set_policy_reque" + + "st_resource\202\323\344\223\002t\"N/compute/v1/projects/" + + "{project}/global/firewallPolicies/{resou" + + "rce}/setIamPolicy:\"global_set_policy_req" + + "uest_resource\022\306\002\n\022TestIamPermissions\022G.g" + + "oogle.cloud.compute.v1.TestIamPermission" + + "sNetworkFirewallPolicyRequest\0320.google.c" + + "loud.compute.v1.TestPermissionsResponse\"", + "\264\001\332A2project,resource,test_permissions_r" + + "equest_resource\202\323\344\223\002y\"T/compute/v1/proje" + + "cts/{project}/global/firewallPolicies/{r" + + "esource}/testIamPermissions:!test_permis" + + "sions_request_resource\032r\312A\026compute.googl" + + "eapis.com\322AVhttps://www.googleapis.com/a" + + "uth/compute,https://www.googleapis.com/a" + + "uth/cloud-platform2\304\004\n\017NetworkProfiles\022\314" + + "\001\n\003Get\0221.google.cloud.compute.v1.GetNetw" + + "orkProfileRequest\032\'.google.cloud.compute" + + ".v1.NetworkProfile\"i\332A\027project,network_p" + + "rofile\202\323\344\223\002I\022G/compute/v1/projects/{proj" + + "ect}/global/networkProfiles/{network_pro" + + "file}\022\272\001\n\004List\0223.google.cloud.compute.v1" + + ".ListNetworkProfilesRequest\0324.google.clo" + + "ud.compute.v1.NetworkProfilesListRespons" + + "e\"G\332A\007project\202\323\344\223\0027\0225/compute/v1/project" + + "s/{project}/global/networkProfiles\032\244\001\312A\026" + + "compute.googleapis.com\322A\207\001https://www.go" + + "ogleapis.com/auth/compute.readonly,https" + + "://www.googleapis.com/auth/compute,https" + + "://www.googleapis.com/auth/cloud-platfor" + + "m2\267\025\n\010Networks\022\243\002\n\nAddPeering\0221.google.c" + + "loud.compute.v1.AddPeeringNetworkRequest" + + "\032\".google.cloud.compute.v1.Operation\"\275\001\332" + + "A5project,network,networks_add_peering_r" + + "equest_resource\212N\020GlobalOperations\202\323\344\223\002l" + + "\"C/compute/v1/projects/{project}/global/" + + "networks/{network}/addPeering:%networks_" + + "add_peering_request_resource\022\302\001\n\006Delete\022" + + "-.google.cloud.compute.v1.DeleteNetworkR" + "equest\032\".google.cloud.compute.v1.Operati" - + "on\"\275\001\332A5project,network,networks_add_pee" - + "ring_request_resource\212N\020GlobalOperations" - + "\202\323\344\223\002l\"C/compute/v1/projects/{project}/g" - + "lobal/networks/{network}/addPeering:%net" - + "works_add_peering_request_resource\022\302\001\n\006D" - + "elete\022-.google.cloud.compute.v1.DeleteNe", - "tworkRequest\032\".google.cloud.compute.v1.O" - + "peration\"e\332A\017project,network\212N\020GlobalOpe" - + "rations\202\323\344\223\002:*8/compute/v1/projects/{pro" - + "ject}/global/networks/{network}\022\247\001\n\003Get\022" - + "*.google.cloud.compute.v1.GetNetworkRequ" - + "est\032 .google.cloud.compute.v1.Network\"R\332" - + "A\017project,network\202\323\344\223\002:\0228/compute/v1/pro" - + "jects/{project}/global/networks/{network" - + "}\022\377\001\n\025GetEffectiveFirewalls\022<.google.clo" - + "ud.compute.v1.GetEffectiveFirewallsNetwo" - + "rkRequest\032>.google.cloud.compute.v1.Netw" - + "orksGetEffectiveFirewallsResponse\"h\332A\017pr" - + "oject,network\202\323\344\223\002P\022N/compute/v1/project" - + "s/{project}/global/networks/{network}/ge" - + "tEffectiveFirewalls\022\323\001\n\006Insert\022-.google." - + "cloud.compute.v1.InsertNetworkRequest\032\"." - + "google.cloud.compute.v1.Operation\"v\332A\030pr" - + "oject,network_resource\212N\020GlobalOperation" - + "s\202\323\344\223\002B\"./compute/v1/projects/{project}/" - + "global/networks:\020network_resource\022\234\001\n\004Li" - + "st\022,.google.cloud.compute.v1.ListNetwork" - + "sRequest\032$.google.cloud.compute.v1.Netwo" - + "rkList\"@\332A\007project\202\323\344\223\0020\022./compute/v1/pr" - + "ojects/{project}/global/networks\022\351\001\n\021Lis" - + "tPeeringRoutes\0229.google.cloud.compute.v1" - + ".ListPeeringRoutesNetworksRequest\0323.goog" - + "le.cloud.compute.v1.ExchangedPeeringRout" - + "esList\"d\332A\017project,network\202\323\344\223\002L\022J/compu" - + "te/v1/projects/{project}/global/networks" - + "/{network}/listPeeringRoutes\022\344\001\n\005Patch\022," - + ".google.cloud.compute.v1.PatchNetworkReq" + + "on\"e\332A\017project,network\212N\020GlobalOperation" + + "s\202\323\344\223\002:*8/compute/v1/projects/{project}/" + + "global/networks/{network}\022\247\001\n\003Get\022*.goog" + + "le.cloud.compute.v1.GetNetworkRequest\032 ." + + "google.cloud.compute.v1.Network\"R\332A\017proj" + + "ect,network\202\323\344\223\002:\0228/compute/v1/projects/" + + "{project}/global/networks/{network}\022\377\001\n\025" + + "GetEffectiveFirewalls\022<.google.cloud.com" + + "pute.v1.GetEffectiveFirewallsNetworkRequ" + + "est\032>.google.cloud.compute.v1.NetworksGe" + + "tEffectiveFirewallsResponse\"h\332A\017project," + + "network\202\323\344\223\002P\022N/compute/v1/projects/{pro" + + "ject}/global/networks/{network}/getEffec" + + "tiveFirewalls\022\323\001\n\006Insert\022-.google.cloud." + + "compute.v1.InsertNetworkRequest\032\".google" + + ".cloud.compute.v1.Operation\"v\332A\030project," + + "network_resource\212N\020GlobalOperations\202\323\344\223\002" + + "B\"./compute/v1/projects/{project}/global" + + "/networks:\020network_resource\022\234\001\n\004List\022,.g" + + "oogle.cloud.compute.v1.ListNetworksReque" + + "st\032$.google.cloud.compute.v1.NetworkList" + + "\"@\332A\007project\202\323\344\223\0020\022./compute/v1/projects" + + "/{project}/global/networks\022\351\001\n\021ListPeeri" + + "ngRoutes\0229.google.cloud.compute.v1.ListP" + + "eeringRoutesNetworksRequest\0323.google.clo" + + "ud.compute.v1.ExchangedPeeringRoutesList" + + "\"d\332A\017project,network\202\323\344\223\002L\022J/compute/v1/" + + "projects/{project}/global/networks/{netw" + + "ork}/listPeeringRoutes\022\344\001\n\005Patch\022,.googl" + + "e.cloud.compute.v1.PatchNetworkRequest\032\"" + + ".google.cloud.compute.v1.Operation\"\210\001\332A " + + "project,network,network_resource\212N\020Globa" + + "lOperations\202\323\344\223\002L28/compute/v1/projects/" + + "{project}/global/networks/{network}:\020net" + + "work_resource\022\262\002\n\rRemovePeering\0224.google" + + ".cloud.compute.v1.RemovePeeringNetworkRe" + + "quest\032\".google.cloud.compute.v1.Operatio" + + "n\"\306\001\332A8project,network,networks_remove_p" + + "eering_request_resource\212N\020GlobalOperatio" + + "ns\202\323\344\223\002r\"F/compute/v1/projects/{project}" + + "/global/networks/{network}/removePeering" + + ":(networks_remove_peering_request_resour" + + "ce\022\355\001\n\022SwitchToCustomMode\0229.google.cloud" + + ".compute.v1.SwitchToCustomModeNetworkReq" + "uest\032\".google.cloud.compute.v1.Operation" - + "\"\210\001\332A project,network,network_resource\212N" - + "\020GlobalOperations\202\323\344\223\002L28/compute/v1/pro" - + "jects/{project}/global/networks/{network" - + "}:\020network_resource\022\262\002\n\rRemovePeering\0224." - + "google.cloud.compute.v1.RemovePeeringNet" - + "workRequest\032\".google.cloud.compute.v1.Op" - + "eration\"\306\001\332A8project,network,networks_re" - + "move_peering_request_resource\212N\020GlobalOp" - + "erations\202\323\344\223\002r\"F/compute/v1/projects/{pr" - + "oject}/global/networks/{network}/removeP" - + "eering:(networks_remove_peering_request_" - + "resource\022\355\001\n\022SwitchToCustomMode\0229.google" - + ".cloud.compute.v1.SwitchToCustomModeNetw" - + "orkRequest\032\".google.cloud.compute.v1.Ope" - + "ration\"x\332A\017project,network\212N\020GlobalOpera" - + "tions\202\323\344\223\002M\"K/compute/v1/projects/{proje" - + "ct}/global/networks/{network}/switchToCu" - + "stomMode\022\262\002\n\rUpdatePeering\0224.google.clou" - + "d.compute.v1.UpdatePeeringNetworkRequest" - + "\032\".google.cloud.compute.v1.Operation\"\306\001\332" - + "A8project,network,networks_update_peerin" - + "g_request_resource\212N\020GlobalOperations\202\323\344" - + "\223\002r2F/compute/v1/projects/{project}/glob" - + "al/networks/{network}/updatePeering:(net" - + "works_update_peering_request_resource\032r\312" - + "A\026compute.googleapis.com\322AVhttps://www.g" - + "oogleapis.com/auth/compute,https://www.g" - + "oogleapis.com/auth/cloud-platform2\353 \n\nNo" - + "deGroups\022\262\002\n\010AddNodes\0221.google.cloud.com" - + "pute.v1.AddNodesNodeGroupRequest\032\".googl" - + "e.cloud.compute.v1.Operation\"\316\001\332A>projec" - + "t,zone,node_group,node_groups_add_nodes_" - + "request_resource\212N\016ZoneOperations\202\323\344\223\002v\"" - + "L/compute/v1/projects/{project}/zones/{z" - + "one}/nodeGroups/{node_group}/addNodes:&n" - + "ode_groups_add_nodes_request_resource\022\304\001" - + "\n\016AggregatedList\0228.google.cloud.compute." - + "v1.AggregatedListNodeGroupsRequest\0320.goo" - + "gle.cloud.compute.v1.NodeGroupAggregated" - + "List\"F\332A\007project\202\323\344\223\0026\0224/compute/v1/proj" - + "ects/{project}/aggregated/nodeGroups\022\325\001\n" - + "\006Delete\022/.google.cloud.compute.v1.Delete" - + "NodeGroupRequest\032\".google.cloud.compute." - + "v1.Operation\"v\332A\027project,zone,node_group" - + "\212N\016ZoneOperations\202\323\344\223\002E*C/compute/v1/pro" - + "jects/{project}/zones/{zone}/nodeGroups/" - + "{node_group}\022\301\002\n\013DeleteNodes\0224.google.cl" - + "oud.compute.v1.DeleteNodesNodeGroupReque" - + "st\032\".google.cloud.compute.v1.Operation\"\327" - + "\001\332AAproject,zone,node_group,node_groups_" - + "delete_nodes_request_resource\212N\016ZoneOper" - + "ations\202\323\344\223\002|\"O/compute/v1/projects/{proj" - + "ect}/zones/{zone}/nodeGroups/{node_group" - + "}/deleteNodes:)node_groups_delete_nodes_" - + "request_resource\022\276\001\n\003Get\022,.google.cloud." - + "compute.v1.GetNodeGroupRequest\032\".google." - + "cloud.compute.v1.NodeGroup\"e\332A\027project,z" - + "one,node_group\202\323\344\223\002E\022C/compute/v1/projec" - + "ts/{project}/zones/{zone}/nodeGroups/{no" - + "de_group}\022\326\001\n\014GetIamPolicy\0225.google.clou" - + "d.compute.v1.GetIamPolicyNodeGroupReques" - + "t\032\037.google.cloud.compute.v1.Policy\"n\332A\025p" - + "roject,zone,resource\202\323\344\223\002P\022N/compute/v1/" - + "projects/{project}/zones/{zone}/nodeGrou" - + "ps/{resource}/getIamPolicy\022\372\001\n\006Insert\022/." - + "google.cloud.compute.v1.InsertNodeGroupR" - + "equest\032\".google.cloud.compute.v1.Operati" - + "on\"\232\001\332A3project,zone,initial_node_count," - + "node_group_resource\212N\016ZoneOperations\202\323\344\223" - + "\002M\"6/compute/v1/projects/{project}/zones" - + "/{zone}/nodeGroups:\023node_group_resource\022" - + "\255\001\n\004List\022..google.cloud.compute.v1.ListN" - + "odeGroupsRequest\032&.google.cloud.compute." - + "v1.NodeGroupList\"M\332A\014project,zone\202\323\344\223\0028\022" - + "6/compute/v1/projects/{project}/zones/{z" - + "one}/nodeGroups\022\337\001\n\tListNodes\0223.google.c" - + "loud.compute.v1.ListNodesNodeGroupsReque" - + "st\032,.google.cloud.compute.v1.NodeGroupsL" - + "istNodes\"o\332A\027project,zone,node_group\202\323\344\223" - + "\002O\"M/compute/v1/projects/{project}/zones" - + "/{zone}/nodeGroups/{node_group}/listNode" - + "s\022\375\001\n\005Patch\022..google.cloud.compute.v1.Pa" - + "tchNodeGroupRequest\032\".google.cloud.compu" - + "te.v1.Operation\"\237\001\332A+project,zone,node_g" - + "roup,node_group_resource\212N\016ZoneOperation" - + "s\202\323\344\223\002Z2C/compute/v1/projects/{project}/" - + "zones/{zone}/nodeGroups/{node_group}:\023no" - + "de_group_resource\022\345\002\n\022PerformMaintenance" - + "\022;.google.cloud.compute.v1.PerformMainte" - + "nanceNodeGroupRequest\032\".google.cloud.com" - + "pute.v1.Operation\"\355\001\332AHproject,zone,node" - + "_group,node_groups_perform_maintenance_r" - + "equest_resource\212N\016ZoneOperations\202\323\344\223\002\212\001\"" - + "V/compute/v1/projects/{project}/zones/{z" - + "one}/nodeGroups/{node_group}/performMain" - + "tenance:0node_groups_perform_maintenance" - + "_request_resource\022\232\002\n\014SetIamPolicy\0225.goo" - + "gle.cloud.compute.v1.SetIamPolicyNodeGro" - + "upRequest\032\037.google.cloud.compute.v1.Poli" - + "cy\"\261\001\332A6project,zone,resource,zone_set_p" - + "olicy_request_resource\202\323\344\223\002r\"N/compute/v" - + "1/projects/{project}/zones/{zone}/nodeGr" - + "oups/{resource}/setIamPolicy: zone_set_p" - + "olicy_request_resource\022\330\002\n\017SetNodeTempla" - + "te\0228.google.cloud.compute.v1.SetNodeTemp" - + "lateNodeGroupRequest\032\".google.cloud.comp" - + "ute.v1.Operation\"\346\001\332AFproject,zone,node_" - + "group,node_groups_set_node_template_requ" - + "est_resource\212N\016ZoneOperations\202\323\344\223\002\205\001\"S/c" + + "\"x\332A\017project,network\212N\020GlobalOperations\202" + + "\323\344\223\002M\"K/compute/v1/projects/{project}/gl" + + "obal/networks/{network}/switchToCustomMo" + + "de\022\262\002\n\rUpdatePeering\0224.google.cloud.comp" + + "ute.v1.UpdatePeeringNetworkRequest\032\".goo" + + "gle.cloud.compute.v1.Operation\"\306\001\332A8proj" + + "ect,network,networks_update_peering_requ" + + "est_resource\212N\020GlobalOperations\202\323\344\223\002r2F/" + + "compute/v1/projects/{project}/global/net" + + "works/{network}/updatePeering:(networks_" + + "update_peering_request_resource\032r\312A\026comp" + + "ute.googleapis.com\322AVhttps://www.googlea" + + "pis.com/auth/compute,https://www.googlea" + + "pis.com/auth/cloud-platform2\353 \n\nNodeGrou" + + "ps\022\262\002\n\010AddNodes\0221.google.cloud.compute.v" + + "1.AddNodesNodeGroupRequest\032\".google.clou" + + "d.compute.v1.Operation\"\316\001\332A>project,zone" + + ",node_group,node_groups_add_nodes_reques" + + "t_resource\212N\016ZoneOperations\202\323\344\223\002v\"L/comp" + + "ute/v1/projects/{project}/zones/{zone}/n" + + "odeGroups/{node_group}/addNodes:&node_gr" + + "oups_add_nodes_request_resource\022\304\001\n\016Aggr" + + "egatedList\0228.google.cloud.compute.v1.Agg" + + "regatedListNodeGroupsRequest\0320.google.cl" + + "oud.compute.v1.NodeGroupAggregatedList\"F" + + "\332A\007project\202\323\344\223\0026\0224/compute/v1/projects/{" + + "project}/aggregated/nodeGroups\022\325\001\n\006Delet" + + "e\022/.google.cloud.compute.v1.DeleteNodeGr" + + "oupRequest\032\".google.cloud.compute.v1.Ope" + + "ration\"v\332A\027project,zone,node_group\212N\016Zon" + + "eOperations\202\323\344\223\002E*C/compute/v1/projects/" + + "{project}/zones/{zone}/nodeGroups/{node_" + + "group}\022\301\002\n\013DeleteNodes\0224.google.cloud.co" + + "mpute.v1.DeleteNodesNodeGroupRequest\032\".g" + + "oogle.cloud.compute.v1.Operation\"\327\001\332AApr" + + "oject,zone,node_group,node_groups_delete" + + "_nodes_request_resource\212N\016ZoneOperations" + + "\202\323\344\223\002|\"O/compute/v1/projects/{project}/z" + + "ones/{zone}/nodeGroups/{node_group}/dele" + + "teNodes:)node_groups_delete_nodes_reques" + + "t_resource\022\276\001\n\003Get\022,.google.cloud.comput" + + "e.v1.GetNodeGroupRequest\032\".google.cloud." + + "compute.v1.NodeGroup\"e\332A\027project,zone,no" + + "de_group\202\323\344\223\002E\022C/compute/v1/projects/{pr" + + "oject}/zones/{zone}/nodeGroups/{node_gro" + + "up}\022\326\001\n\014GetIamPolicy\0225.google.cloud.comp" + + "ute.v1.GetIamPolicyNodeGroupRequest\032\037.go" + + "ogle.cloud.compute.v1.Policy\"n\332A\025project" + + ",zone,resource\202\323\344\223\002P\022N/compute/v1/projec" + + "ts/{project}/zones/{zone}/nodeGroups/{re" + + "source}/getIamPolicy\022\372\001\n\006Insert\022/.google" + + ".cloud.compute.v1.InsertNodeGroupRequest" + + "\032\".google.cloud.compute.v1.Operation\"\232\001\332" + + "A3project,zone,initial_node_count,node_g" + + "roup_resource\212N\016ZoneOperations\202\323\344\223\002M\"6/c" + "ompute/v1/projects/{project}/zones/{zone" - + "}/nodeGroups/{node_group}/setNodeTemplat" - + "e:.node_groups_set_node_template_request" - + "_resource\022\205\003\n\030SimulateMaintenanceEvent\022A" - + ".google.cloud.compute.v1.SimulateMainten" - + "anceEventNodeGroupRequest\032\".google.cloud" - + ".compute.v1.Operation\"\201\002\332AOproject,zone," - + "node_group,node_groups_simulate_maintena" - + "nce_event_request_resource\212N\016ZoneOperati" - + "ons\202\323\344\223\002\227\001\"\\/compute/v1/projects/{projec" - + "t}/zones/{zone}/nodeGroups/{node_group}/" - + "simulateMaintenanceEvent:7node_groups_si" - + "mulate_maintenance_event_request_resourc" - + "e\022\277\002\n\022TestIamPermissions\022;.google.cloud." - + "compute.v1.TestIamPermissionsNodeGroupRe" - + "quest\0320.google.cloud.compute.v1.TestPerm" - + "issionsResponse\"\271\001\332A7project,zone,resour" - + "ce,test_permissions_request_resource\202\323\344\223" - + "\002y\"T/compute/v1/projects/{project}/zones" - + "/{zone}/nodeGroups/{resource}/testIamPer" - + "missions:!test_permissions_request_resou" - + "rce\032r\312A\026compute.googleapis.com\322AVhttps:/" - + "/www.googleapis.com/auth/compute,https:/" - + "/www.googleapis.com/auth/cloud-platform2" - + "\264\020\n\rNodeTemplates\022\315\001\n\016AggregatedList\022;.g" - + "oogle.cloud.compute.v1.AggregatedListNod" - + "eTemplatesRequest\0323.google.cloud.compute" - + ".v1.NodeTemplateAggregatedList\"I\332A\007proje" - + "ct\202\323\344\223\0029\0227/compute/v1/projects/{project}" - + "/aggregated/nodeTemplates\022\352\001\n\006Delete\0222.g" - + "oogle.cloud.compute.v1.DeleteNodeTemplat" - + "eRequest\032\".google.cloud.compute.v1.Opera" - + "tion\"\207\001\332A\034project,region,node_template\212N" - + "\020RegionOperations\202\323\344\223\002O*M/compute/v1/pro" - + "jects/{project}/regions/{region}/nodeTem" - + "plates/{node_template}\022\323\001\n\003Get\022/.google." - + "cloud.compute.v1.GetNodeTemplateRequest\032" - + "%.google.cloud.compute.v1.NodeTemplate\"t" - + "\332A\034project,region,node_template\202\323\344\223\002O\022M/" - + "compute/v1/projects/{project}/regions/{r" - + "egion}/nodeTemplates/{node_template}\022\342\001\n" - + "\014GetIamPolicy\0228.google.cloud.compute.v1." - + "GetIamPolicyNodeTemplateRequest\032\037.google" - + ".cloud.compute.v1.Policy\"w\332A\027project,reg" - + "ion,resource\202\323\344\223\002W\022U/compute/v1/projects" - + "/{project}/regions/{region}/nodeTemplate" - + "s/{resource}/getIamPolicy\022\373\001\n\006Insert\0222.g" - + "oogle.cloud.compute.v1.InsertNodeTemplat" - + "eRequest\032\".google.cloud.compute.v1.Opera" - + "tion\"\230\001\332A%project,region,node_template_r" - + "esource\212N\020RegionOperations\202\323\344\223\002W\"=/compu" - + "te/v1/projects/{project}/regions/{region" - + "}/nodeTemplates:\026node_template_resource\022" - + "\274\001\n\004List\0221.google.cloud.compute.v1.ListN" - + "odeTemplatesRequest\032).google.cloud.compu" - + "te.v1.NodeTemplateList\"V\332A\016project,regio" - + "n\202\323\344\223\002?\022=/compute/v1/projects/{project}/" - + "regions/{region}/nodeTemplates\022\252\002\n\014SetIa" - + "mPolicy\0228.google.cloud.compute.v1.SetIam" - + "PolicyNodeTemplateRequest\032\037.google.cloud" - + ".compute.v1.Policy\"\276\001\332A:project,region,r" - + "esource,region_set_policy_request_resour" - + "ce\202\323\344\223\002{\"U/compute/v1/projects/{project}" - + "/regions/{region}/nodeTemplates/{resourc" - + "e}/setIamPolicy:\"region_set_policy_reque" - + "st_resource\022\314\002\n\022TestIamPermissions\022>.goo" - + "gle.cloud.compute.v1.TestIamPermissionsN" - + "odeTemplateRequest\0320.google.cloud.comput" - + "e.v1.TestPermissionsResponse\"\303\001\332A9projec" - + "t,region,resource,test_permissions_reque" - + "st_resource\202\323\344\223\002\200\001\"[/compute/v1/projects" - + "/{project}/regions/{region}/nodeTemplate" - + "s/{resource}/testIamPermissions:!test_pe" - + "rmissions_request_resource\032r\312A\026compute.g" - + "oogleapis.com\322AVhttps://www.googleapis.c" - + "om/auth/compute,https://www.googleapis.c" - + "om/auth/cloud-platform2\337\005\n\tNodeTypes\022\301\001\n" - + "\016AggregatedList\0227.google.cloud.compute.v" - + "1.AggregatedListNodeTypesRequest\032/.googl" - + "e.cloud.compute.v1.NodeTypeAggregatedLis" - + "t\"E\332A\007project\202\323\344\223\0025\0223/compute/v1/project" - + "s/{project}/aggregated/nodeTypes\022\271\001\n\003Get" - + "\022+.google.cloud.compute.v1.GetNodeTypeRe" - + "quest\032!.google.cloud.compute.v1.NodeType" - + "\"b\332A\026project,zone,node_type\202\323\344\223\002C\022A/comp" + + "}/nodeGroups:\023node_group_resource\022\255\001\n\004Li" + + "st\022..google.cloud.compute.v1.ListNodeGro" + + "upsRequest\032&.google.cloud.compute.v1.Nod" + + "eGroupList\"M\332A\014project,zone\202\323\344\223\0028\0226/comp" + "ute/v1/projects/{project}/zones/{zone}/n" - + "odeTypes/{node_type}\022\252\001\n\004List\022-.google.c" - + "loud.compute.v1.ListNodeTypesRequest\032%.g" - + "oogle.cloud.compute.v1.NodeTypeList\"L\332A\014" - + "project,zone\202\323\344\223\0027\0225/compute/v1/projects" - + "/{project}/zones/{zone}/nodeTypes\032\244\001\312A\026c" - + "ompute.googleapis.com\322A\207\001https://www.goo" - + "gleapis.com/auth/compute.readonly,https:" - + "//www.googleapis.com/auth/compute,https:" - + "//www.googleapis.com/auth/cloud-platform" - + "2\220\017\n\020PacketMirrorings\022\326\001\n\016AggregatedList" - + "\022>.google.cloud.compute.v1.AggregatedLis" - + "tPacketMirroringsRequest\0326.google.cloud." - + "compute.v1.PacketMirroringAggregatedList" - + "\"L\332A\007project\202\323\344\223\002<\022:/compute/v1/projects" - + "/{project}/aggregated/packetMirrorings\022\366" - + "\001\n\006Delete\0225.google.cloud.compute.v1.Dele" - + "tePacketMirroringRequest\032\".google.cloud." - + "compute.v1.Operation\"\220\001\332A\037project,region" - + ",packet_mirroring\212N\020RegionOperations\202\323\344\223" - + "\002U*S/compute/v1/projects/{project}/regio" - + "ns/{region}/packetMirrorings/{packet_mir" - + "roring}\022\342\001\n\003Get\0222.google.cloud.compute.v" - + "1.GetPacketMirroringRequest\032(.google.clo" - + "ud.compute.v1.PacketMirroring\"}\332A\037projec" - + "t,region,packet_mirroring\202\323\344\223\002U\022S/comput" + + "odeGroups\022\337\001\n\tListNodes\0223.google.cloud.c" + + "ompute.v1.ListNodesNodeGroupsRequest\032,.g" + + "oogle.cloud.compute.v1.NodeGroupsListNod" + + "es\"o\332A\027project,zone,node_group\202\323\344\223\002O\"M/c" + + "ompute/v1/projects/{project}/zones/{zone" + + "}/nodeGroups/{node_group}/listNodes\022\375\001\n\005" + + "Patch\022..google.cloud.compute.v1.PatchNod" + + "eGroupRequest\032\".google.cloud.compute.v1." + + "Operation\"\237\001\332A+project,zone,node_group,n" + + "ode_group_resource\212N\016ZoneOperations\202\323\344\223\002" + + "Z2C/compute/v1/projects/{project}/zones/" + + "{zone}/nodeGroups/{node_group}:\023node_gro" + + "up_resource\022\345\002\n\022PerformMaintenance\022;.goo" + + "gle.cloud.compute.v1.PerformMaintenanceN" + + "odeGroupRequest\032\".google.cloud.compute.v" + + "1.Operation\"\355\001\332AHproject,zone,node_group" + + ",node_groups_perform_maintenance_request" + + "_resource\212N\016ZoneOperations\202\323\344\223\002\212\001\"V/comp" + + "ute/v1/projects/{project}/zones/{zone}/n" + + "odeGroups/{node_group}/performMaintenanc" + + "e:0node_groups_perform_maintenance_reque" + + "st_resource\022\232\002\n\014SetIamPolicy\0225.google.cl" + + "oud.compute.v1.SetIamPolicyNodeGroupRequ" + + "est\032\037.google.cloud.compute.v1.Policy\"\261\001\332" + + "A6project,zone,resource,zone_set_policy_" + + "request_resource\202\323\344\223\002r\"N/compute/v1/proj" + + "ects/{project}/zones/{zone}/nodeGroups/{" + + "resource}/setIamPolicy: zone_set_policy_" + + "request_resource\022\330\002\n\017SetNodeTemplate\0228.g" + + "oogle.cloud.compute.v1.SetNodeTemplateNo" + + "deGroupRequest\032\".google.cloud.compute.v1" + + ".Operation\"\346\001\332AFproject,zone,node_group," + + "node_groups_set_node_template_request_re" + + "source\212N\016ZoneOperations\202\323\344\223\002\205\001\"S/compute" + + "/v1/projects/{project}/zones/{zone}/node" + + "Groups/{node_group}/setNodeTemplate:.nod" + + "e_groups_set_node_template_request_resou" + + "rce\022\205\003\n\030SimulateMaintenanceEvent\022A.googl" + + "e.cloud.compute.v1.SimulateMaintenanceEv" + + "entNodeGroupRequest\032\".google.cloud.compu" + + "te.v1.Operation\"\201\002\332AOproject,zone,node_g" + + "roup,node_groups_simulate_maintenance_ev" + + "ent_request_resource\212N\016ZoneOperations\202\323\344" + + "\223\002\227\001\"\\/compute/v1/projects/{project}/zon" + + "es/{zone}/nodeGroups/{node_group}/simula" + + "teMaintenanceEvent:7node_groups_simulate" + + "_maintenance_event_request_resource\022\277\002\n\022" + + "TestIamPermissions\022;.google.cloud.comput" + + "e.v1.TestIamPermissionsNodeGroupRequest\032" + + "0.google.cloud.compute.v1.TestPermission" + + "sResponse\"\271\001\332A7project,zone,resource,tes" + + "t_permissions_request_resource\202\323\344\223\002y\"T/c" + + "ompute/v1/projects/{project}/zones/{zone" + + "}/nodeGroups/{resource}/testIamPermissio" + + "ns:!test_permissions_request_resource\032r\312" + + "A\026compute.googleapis.com\322AVhttps://www.g" + + "oogleapis.com/auth/compute,https://www.g" + + "oogleapis.com/auth/cloud-platform2\264\020\n\rNo" + + "deTemplates\022\315\001\n\016AggregatedList\022;.google." + + "cloud.compute.v1.AggregatedListNodeTempl" + + "atesRequest\0323.google.cloud.compute.v1.No" + + "deTemplateAggregatedList\"I\332A\007project\202\323\344\223" + + "\0029\0227/compute/v1/projects/{project}/aggre" + + "gated/nodeTemplates\022\352\001\n\006Delete\0222.google." + + "cloud.compute.v1.DeleteNodeTemplateReque" + + "st\032\".google.cloud.compute.v1.Operation\"\207" + + "\001\332A\034project,region,node_template\212N\020Regio" + + "nOperations\202\323\344\223\002O*M/compute/v1/projects/" + + "{project}/regions/{region}/nodeTemplates" + + "/{node_template}\022\323\001\n\003Get\022/.google.cloud." + + "compute.v1.GetNodeTemplateRequest\032%.goog" + + "le.cloud.compute.v1.NodeTemplate\"t\332A\034pro" + + "ject,region,node_template\202\323\344\223\002O\022M/comput" + "e/v1/projects/{project}/regions/{region}" - + "/packetMirrorings/{packet_mirroring}\022\207\002\n" - + "\006Insert\0225.google.cloud.compute.v1.Insert" - + "PacketMirroringRequest\032\".google.cloud.co" - + "mpute.v1.Operation\"\241\001\332A(project,region,p" - + "acket_mirroring_resource\212N\020RegionOperati" - + "ons\202\323\344\223\002]\"@/compute/v1/projects/{project" - + "}/regions/{region}/packetMirrorings:\031pac" - + "ket_mirroring_resource\022\305\001\n\004List\0224.google" - + ".cloud.compute.v1.ListPacketMirroringsRe" - + "quest\032,.google.cloud.compute.v1.PacketMi" - + "rroringList\"Y\332A\016project,region\202\323\344\223\002B\022@/c" - + "ompute/v1/projects/{project}/regions/{re" - + "gion}/packetMirrorings\022\251\002\n\005Patch\0224.googl" - + "e.cloud.compute.v1.PatchPacketMirroringR" - + "equest\032\".google.cloud.compute.v1.Operati" - + "on\"\305\001\332A9project,region,packet_mirroring," - + "packet_mirroring_resource\212N\020RegionOperat" - + "ions\202\323\344\223\002p2S/compute/v1/projects/{projec" - + "t}/regions/{region}/packetMirrorings/{pa" - + "cket_mirroring}:\031packet_mirroring_resour" - + "ce\022\322\002\n\022TestIamPermissions\022A.google.cloud" - + ".compute.v1.TestIamPermissionsPacketMirr" - + "oringRequest\0320.google.cloud.compute.v1.T" - + "estPermissionsResponse\"\306\001\332A9project,regi" + + "/nodeTemplates/{node_template}\022\342\001\n\014GetIa" + + "mPolicy\0228.google.cloud.compute.v1.GetIam" + + "PolicyNodeTemplateRequest\032\037.google.cloud" + + ".compute.v1.Policy\"w\332A\027project,region,re" + + "source\202\323\344\223\002W\022U/compute/v1/projects/{proj" + + "ect}/regions/{region}/nodeTemplates/{res" + + "ource}/getIamPolicy\022\373\001\n\006Insert\0222.google." + + "cloud.compute.v1.InsertNodeTemplateReque" + + "st\032\".google.cloud.compute.v1.Operation\"\230" + + "\001\332A%project,region,node_template_resourc" + + "e\212N\020RegionOperations\202\323\344\223\002W\"=/compute/v1/" + + "projects/{project}/regions/{region}/node" + + "Templates:\026node_template_resource\022\274\001\n\004Li" + + "st\0221.google.cloud.compute.v1.ListNodeTem" + + "platesRequest\032).google.cloud.compute.v1." + + "NodeTemplateList\"V\332A\016project,region\202\323\344\223\002" + + "?\022=/compute/v1/projects/{project}/region" + + "s/{region}/nodeTemplates\022\252\002\n\014SetIamPolic" + + "y\0228.google.cloud.compute.v1.SetIamPolicy" + + "NodeTemplateRequest\032\037.google.cloud.compu" + + "te.v1.Policy\"\276\001\332A:project,region,resourc" + + "e,region_set_policy_request_resource\202\323\344\223" + + "\002{\"U/compute/v1/projects/{project}/regio" + + "ns/{region}/nodeTemplates/{resource}/set" + + "IamPolicy:\"region_set_policy_request_res" + + "ource\022\314\002\n\022TestIamPermissions\022>.google.cl" + + "oud.compute.v1.TestIamPermissionsNodeTem" + + "plateRequest\0320.google.cloud.compute.v1.T" + + "estPermissionsResponse\"\303\001\332A9project,regi" + "on,resource,test_permissions_request_res" - + "ource\202\323\344\223\002\203\001\"^/compute/v1/projects/{proj" - + "ect}/regions/{region}/packetMirrorings/{" - + "resource}/testIamPermissions:!test_permi" - + "ssions_request_resource\032r\312A\026compute.goog" - + "leapis.com\322AVhttps://www.googleapis.com/" - + "auth/compute,https://www.googleapis.com/" - + "auth/cloud-platform2\253\033\n\010Projects\022\277\001\n\016Dis" - + "ableXpnHost\0225.google.cloud.compute.v1.Di" - + "sableXpnHostProjectRequest\032\".google.clou" - + "d.compute.v1.Operation\"R\332A\007project\212N\020Glo" - + "balOperations\202\323\344\223\002/\"-/compute/v1/project" - + "s/{project}/disableXpnHost\022\253\002\n\022DisableXp" - + "nResource\0229.google.cloud.compute.v1.Disa" - + "bleXpnResourceProjectRequest\032\".google.cl" - + "oud.compute.v1.Operation\"\265\001\332A6project,pr" - + "ojects_disable_xpn_resource_request_reso" - + "urce\212N\020GlobalOperations\202\323\344\223\002c\"1/compute/" - + "v1/projects/{project}/disableXpnResource" - + ":.projects_disable_xpn_resource_request_" - + "resource\022\274\001\n\rEnableXpnHost\0224.google.clou" - + "d.compute.v1.EnableXpnHostProjectRequest" - + "\032\".google.cloud.compute.v1.Operation\"Q\332A" - + "\007project\212N\020GlobalOperations\202\323\344\223\002.\",/comp" - + "ute/v1/projects/{project}/enableXpnHost\022" - + "\246\002\n\021EnableXpnResource\0228.google.cloud.com" - + "pute.v1.EnableXpnResourceProjectRequest\032" - + "\".google.cloud.compute.v1.Operation\"\262\001\332A" - + "5project,projects_enable_xpn_resource_re" - + "quest_resource\212N\020GlobalOperations\202\323\344\223\002a\"" - + "0/compute/v1/projects/{project}/enableXp" - + "nResource:-projects_enable_xpn_resource_" - + "request_resource\022\205\001\n\003Get\022*.google.cloud." - + "compute.v1.GetProjectRequest\032 .google.cl" - + "oud.compute.v1.Project\"0\332A\007project\202\323\344\223\002 " - + "\022\036/compute/v1/projects/{project}\022\236\001\n\nGet" - + "XpnHost\0221.google.cloud.compute.v1.GetXpn" - + "HostProjectRequest\032 .google.cloud.comput" - + "e.v1.Project\";\332A\007project\202\323\344\223\002+\022)/compute" - + "/v1/projects/{project}/getXpnHost\022\276\001\n\017Ge" - + "tXpnResources\0227.google.cloud.compute.v1." - + "GetXpnResourcesProjectsRequest\0320.google." - + "cloud.compute.v1.ProjectsGetXpnResources" - + "\"@\332A\007project\202\323\344\223\0020\022./compute/v1/projects" - + "/{project}/getXpnResources\022\375\001\n\014ListXpnHo" - + "sts\0224.google.cloud.compute.v1.ListXpnHos" - + "tsProjectsRequest\032$.google.cloud.compute" - + ".v1.XpnHostList\"\220\001\332A0project,projects_li" - + "st_xpn_hosts_request_resource\202\323\344\223\002W\"+/co" - + "mpute/v1/projects/{project}/listXpnHosts" - + ":(projects_list_xpn_hosts_request_resour" - + "ce\022\345\001\n\010MoveDisk\022/.google.cloud.compute.v" - + "1.MoveDiskProjectRequest\032\".google.cloud." - + "compute.v1.Operation\"\203\001\332A\"project,disk_m" - + "ove_request_resource\212N\020GlobalOperations\202" - + "\323\344\223\002E\"\'/compute/v1/projects/{project}/mo" - + "veDisk:\032disk_move_request_resource\022\371\001\n\014M" - + "oveInstance\0223.google.cloud.compute.v1.Mo" - + "veInstanceProjectRequest\032\".google.cloud." - + "compute.v1.Operation\"\217\001\332A&project,instan" - + "ce_move_request_resource\212N\020GlobalOperati" - + "ons\202\323\344\223\002M\"+/compute/v1/projects/{project" - + "}/moveInstance:\036instance_move_request_re" - + "source\022\250\002\n\021SetCloudArmorTier\0228.google.cl" - + "oud.compute.v1.SetCloudArmorTierProjectR" - + "equest\032\".google.cloud.compute.v1.Operati" - + "on\"\264\001\332A6project,projects_set_cloud_armor" - + "_tier_request_resource\212N\020GlobalOperation" - + "s\202\323\344\223\002b\"0/compute/v1/projects/{project}/" - + "setCloudArmorTier:.projects_set_cloud_ar" - + "mor_tier_request_resource\022\206\002\n\031SetCommonI" - + "nstanceMetadata\022@.google.cloud.compute.v" - + "1.SetCommonInstanceMetadataProjectReques" - + "t\032\".google.cloud.compute.v1.Operation\"\202\001" - + "\332A\031project,metadata_resource\212N\020GlobalOpe" - + "rations\202\323\344\223\002M\"8/compute/v1/projects/{pro" - + "ject}/setCommonInstanceMetadata:\021metadat" - + "a_resource\022\274\002\n\025SetDefaultNetworkTier\022<.g" - + "oogle.cloud.compute.v1.SetDefaultNetwork" - + "TierProjectRequest\032\".google.cloud.comput" - + "e.v1.Operation\"\300\001\332A:project,projects_set" - + "_default_network_tier_request_resource\212N" - + "\020GlobalOperations\202\323\344\223\002j\"4/compute/v1/pro" - + "jects/{project}/setDefaultNetworkTier:2p" - + "rojects_set_default_network_tier_request" - + "_resource\022\221\002\n\024SetUsageExportBucket\022;.goo" - + "gle.cloud.compute.v1.SetUsageExportBucke" - + "tProjectRequest\032\".google.cloud.compute.v" - + "1.Operation\"\227\001\332A&project,usage_export_lo" - + "cation_resource\212N\020GlobalOperations\202\323\344\223\002U" - + "\"3/compute/v1/projects/{project}/setUsag" - + "eExportBucket:\036usage_export_location_res" - + "ource\032r\312A\026compute.googleapis.com\322AVhttps" - + "://www.googleapis.com/auth/compute,https" - + "://www.googleapis.com/auth/cloud-platfor" - + "m2\356\017\n\030PublicAdvertisedPrefixes\022\222\002\n\010Annou" - + "nce\022?.google.cloud.compute.v1.AnnouncePu" - + "blicAdvertisedPrefixeRequest\032\".google.cl" - + "oud.compute.v1.Operation\"\240\001\332A project,pu" - + "blic_advertised_prefix\212N\020GlobalOperation" - + "s\202\323\344\223\002d\"b/compute/v1/projects/{project}/" - + "global/publicAdvertisedPrefixes/{public_" - + "advertised_prefix}/announce\022\205\002\n\006Delete\022=" - + ".google.cloud.compute.v1.DeletePublicAdv" - + "ertisedPrefixeRequest\032\".google.cloud.com" - + "pute.v1.Operation\"\227\001\332A project,public_ad" - + "vertised_prefix\212N\020GlobalOperations\202\323\344\223\002[" - + "*Y/compute/v1/projects/{project}/global/" - + "publicAdvertisedPrefixes/{public_adverti" - + "sed_prefix}\022\371\001\n\003Get\022:.google.cloud.compu" - + "te.v1.GetPublicAdvertisedPrefixeRequest\032" - + "/.google.cloud.compute.v1.PublicAdvertis" - + "edPrefix\"\204\001\332A project,public_advertised_" - + "prefix\202\323\344\223\002[\022Y/compute/v1/projects/{proj" - + "ect}/global/publicAdvertisedPrefixes/{pu" - + "blic_advertised_prefix}\022\226\002\n\006Insert\022=.goo" - + "gle.cloud.compute.v1.InsertPublicAdverti" - + "sedPrefixeRequest\032\".google.cloud.compute" - + ".v1.Operation\"\250\001\332A)project,public_advert" - + "ised_prefix_resource\212N\020GlobalOperations\202" - + "\323\344\223\002c\">/compute/v1/projects/{project}/gl" - + "obal/publicAdvertisedPrefixes:!public_ad" - + "vertised_prefix_resource\022\313\001\n\004List\022<.goog", - "le.cloud.compute.v1.ListPublicAdvertised" - + "PrefixesRequest\0323.google.cloud.compute.v" - + "1.PublicAdvertisedPrefixList\"P\332A\007project" - + "\202\323\344\223\002@\022>/compute/v1/projects/{project}/g" - + "lobal/publicAdvertisedPrefixes\022\310\002\n\005Patch" - + "\022<.google.cloud.compute.v1.PatchPublicAd" - + "vertisedPrefixeRequest\032\".google.cloud.co" - + "mpute.v1.Operation\"\334\001\332ABproject,public_a" - + "dvertised_prefix,public_advertised_prefi" - + "x_resource\212N\020GlobalOperations\202\323\344\223\002~2Y/co" - + "mpute/v1/projects/{project}/global/publi" - + "cAdvertisedPrefixes/{public_advertised_p" - + "refix}:!public_advertised_prefix_resourc" - + "e\022\222\002\n\010Withdraw\022?.google.cloud.compute.v1" - + ".WithdrawPublicAdvertisedPrefixeRequest\032" - + "\".google.cloud.compute.v1.Operation\"\240\001\332A" - + " project,public_advertised_prefix\212N\020Glob" - + "alOperations\202\323\344\223\002d\"b/compute/v1/projects" - + "/{project}/global/publicAdvertisedPrefix" - + "es/{public_advertised_prefix}/withdraw\032r" - + "\312A\026compute.googleapis.com\322AVhttps://www." + + "ource\202\323\344\223\002\200\001\"[/compute/v1/projects/{proj" + + "ect}/regions/{region}/nodeTemplates/{res" + + "ource}/testIamPermissions:!test_permissi" + + "ons_request_resource\032r\312A\026compute.googlea" + + "pis.com\322AVhttps://www.googleapis.com/aut" + + "h/compute,https://www.googleapis.com/aut" + + "h/cloud-platform2\337\005\n\tNodeTypes\022\301\001\n\016Aggre" + + "gatedList\0227.google.cloud.compute.v1.Aggr" + + "egatedListNodeTypesRequest\032/.google.clou" + + "d.compute.v1.NodeTypeAggregatedList\"E\332A\007" + + "project\202\323\344\223\0025\0223/compute/v1/projects/{pro" + + "ject}/aggregated/nodeTypes\022\271\001\n\003Get\022+.goo" + + "gle.cloud.compute.v1.GetNodeTypeRequest\032" + + "!.google.cloud.compute.v1.NodeType\"b\332A\026p" + + "roject,zone,node_type\202\323\344\223\002C\022A/compute/v1" + + "/projects/{project}/zones/{zone}/nodeTyp" + + "es/{node_type}\022\252\001\n\004List\022-.google.cloud.c" + + "ompute.v1.ListNodeTypesRequest\032%.google." + + "cloud.compute.v1.NodeTypeList\"L\332A\014projec" + + "t,zone\202\323\344\223\0027\0225/compute/v1/projects/{proj" + + "ect}/zones/{zone}/nodeTypes\032\244\001\312A\026compute" + + ".googleapis.com\322A\207\001https://www.googleapi" + + "s.com/auth/compute.readonly,https://www." + "googleapis.com/auth/compute,https://www." - + "googleapis.com/auth/cloud-platform2\264\022\n\027P" - + "ublicDelegatedPrefixes\022\352\001\n\016AggregatedLis" - + "t\022E.google.cloud.compute.v1.AggregatedLi" - + "stPublicDelegatedPrefixesRequest\032<.googl" - + "e.cloud.compute.v1.PublicDelegatedPrefix" - + "AggregatedList\"S\332A\007project\202\323\344\223\002C\022A/compu" - + "te/v1/projects/{project}/aggregated/publ" - + "icDelegatedPrefixes\022\237\002\n\010Announce\022>.googl" - + "e.cloud.compute.v1.AnnouncePublicDelegat" + + "googleapis.com/auth/cloud-platform2\220\017\n\020P" + + "acketMirrorings\022\326\001\n\016AggregatedList\022>.goo" + + "gle.cloud.compute.v1.AggregatedListPacke" + + "tMirroringsRequest\0326.google.cloud.comput" + + "e.v1.PacketMirroringAggregatedList\"L\332A\007p" + + "roject\202\323\344\223\002<\022:/compute/v1/projects/{proj" + + "ect}/aggregated/packetMirrorings\022\366\001\n\006Del" + + "ete\0225.google.cloud.compute.v1.DeletePack" + + "etMirroringRequest\032\".google.cloud.comput" + + "e.v1.Operation\"\220\001\332A\037project,region,packe" + + "t_mirroring\212N\020RegionOperations\202\323\344\223\002U*S/c" + + "ompute/v1/projects/{project}/regions/{re" + + "gion}/packetMirrorings/{packet_mirroring" + + "}\022\342\001\n\003Get\0222.google.cloud.compute.v1.GetP" + + "acketMirroringRequest\032(.google.cloud.com" + + "pute.v1.PacketMirroring\"}\332A\037project,regi" + + "on,packet_mirroring\202\323\344\223\002U\022S/compute/v1/p" + + "rojects/{project}/regions/{region}/packe" + + "tMirrorings/{packet_mirroring}\022\207\002\n\006Inser" + + "t\0225.google.cloud.compute.v1.InsertPacket" + + "MirroringRequest\032\".google.cloud.compute." + + "v1.Operation\"\241\001\332A(project,region,packet_" + + "mirroring_resource\212N\020RegionOperations\202\323\344" + + "\223\002]\"@/compute/v1/projects/{project}/regi" + + "ons/{region}/packetMirrorings:\031packet_mi" + + "rroring_resource\022\305\001\n\004List\0224.google.cloud" + + ".compute.v1.ListPacketMirroringsRequest\032" + + ",.google.cloud.compute.v1.PacketMirrorin" + + "gList\"Y\332A\016project,region\202\323\344\223\002B\022@/compute" + + "/v1/projects/{project}/regions/{region}/" + + "packetMirrorings\022\251\002\n\005Patch\0224.google.clou" + + "d.compute.v1.PatchPacketMirroringRequest" + + "\032\".google.cloud.compute.v1.Operation\"\305\001\332" + + "A9project,region,packet_mirroring,packet" + + "_mirroring_resource\212N\020RegionOperations\202\323" + + "\344\223\002p2S/compute/v1/projects/{project}/reg" + + "ions/{region}/packetMirrorings/{packet_m" + + "irroring}:\031packet_mirroring_resource\022\322\002\n" + + "\022TestIamPermissions\022A.google.cloud.compu" + + "te.v1.TestIamPermissionsPacketMirroringR" + + "equest\0320.google.cloud.compute.v1.TestPer" + + "missionsResponse\"\306\001\332A9project,region,res" + + "ource,test_permissions_request_resource\202" + + "\323\344\223\002\203\001\"^/compute/v1/projects/{project}/r" + + "egions/{region}/packetMirrorings/{resour" + + "ce}/testIamPermissions:!test_permissions" + + "_request_resource\032r\312A\026compute.googleapis" + + ".com\322AVhttps://www.googleapis.com/auth/c" + + "ompute,https://www.googleapis.com/auth/c" + + "loud-platform2\253\033\n\010Projects\022\277\001\n\016DisableXp" + + "nHost\0225.google.cloud.compute.v1.DisableX" + + "pnHostProjectRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"R\332A\007project\212N\020GlobalOpe" + + "rations\202\323\344\223\002/\"-/compute/v1/projects/{pro" + + "ject}/disableXpnHost\022\253\002\n\022DisableXpnResou" + + "rce\0229.google.cloud.compute.v1.DisableXpn" + + "ResourceProjectRequest\032\".google.cloud.co" + + "mpute.v1.Operation\"\265\001\332A6project,projects" + + "_disable_xpn_resource_request_resource\212N" + + "\020GlobalOperations\202\323\344\223\002c\"1/compute/v1/pro" + + "jects/{project}/disableXpnResource:.proj" + + "ects_disable_xpn_resource_request_resour" + + "ce\022\274\001\n\rEnableXpnHost\0224.google.cloud.comp" + + "ute.v1.EnableXpnHostProjectRequest\032\".goo" + + "gle.cloud.compute.v1.Operation\"Q\332A\007proje" + + "ct\212N\020GlobalOperations\202\323\344\223\002.\",/compute/v1" + + "/projects/{project}/enableXpnHost\022\246\002\n\021En" + + "ableXpnResource\0228.google.cloud.compute.v" + + "1.EnableXpnResourceProjectRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"\262\001\332A5proje" + + "ct,projects_enable_xpn_resource_request_" + + "resource\212N\020GlobalOperations\202\323\344\223\002a\"0/comp" + + "ute/v1/projects/{project}/enableXpnResou" + + "rce:-projects_enable_xpn_resource_reques" + + "t_resource\022\205\001\n\003Get\022*.google.cloud.comput" + + "e.v1.GetProjectRequest\032 .google.cloud.co" + + "mpute.v1.Project\"0\332A\007project\202\323\344\223\002 \022\036/com" + + "pute/v1/projects/{project}\022\236\001\n\nGetXpnHos" + + "t\0221.google.cloud.compute.v1.GetXpnHostPr" + + "ojectRequest\032 .google.cloud.compute.v1.P" + + "roject\";\332A\007project\202\323\344\223\002+\022)/compute/v1/pr" + + "ojects/{project}/getXpnHost\022\276\001\n\017GetXpnRe" + + "sources\0227.google.cloud.compute.v1.GetXpn" + + "ResourcesProjectsRequest\0320.google.cloud." + + "compute.v1.ProjectsGetXpnResources\"@\332A\007p" + + "roject\202\323\344\223\0020\022./compute/v1/projects/{proj" + + "ect}/getXpnResources\022\375\001\n\014ListXpnHosts\0224." + + "google.cloud.compute.v1.ListXpnHostsProj" + + "ectsRequest\032$.google.cloud.compute.v1.Xp" + + "nHostList\"\220\001\332A0project,projects_list_xpn" + + "_hosts_request_resource\202\323\344\223\002W\"+/compute/" + + "v1/projects/{project}/listXpnHosts:(proj" + + "ects_list_xpn_hosts_request_resource\022\345\001\n" + + "\010MoveDisk\022/.google.cloud.compute.v1.Move" + + "DiskProjectRequest\032\".google.cloud.comput" + + "e.v1.Operation\"\203\001\332A\"project,disk_move_re" + + "quest_resource\212N\020GlobalOperations\202\323\344\223\002E\"" + + "\'/compute/v1/projects/{project}/moveDisk" + + ":\032disk_move_request_resource\022\371\001\n\014MoveIns" + + "tance\0223.google.cloud.compute.v1.MoveInst" + + "anceProjectRequest\032\".google.cloud.comput" + + "e.v1.Operation\"\217\001\332A&project,instance_mov" + + "e_request_resource\212N\020GlobalOperations\202\323\344" + + "\223\002M\"+/compute/v1/projects/{project}/move" + + "Instance:\036instance_move_request_resource" + + "\022\250\002\n\021SetCloudArmorTier\0228.google.cloud.co" + + "mpute.v1.SetCloudArmorTierProjectRequest" + + "\032\".google.cloud.compute.v1.Operation\"\264\001\332" + + "A6project,projects_set_cloud_armor_tier_" + + "request_resource\212N\020GlobalOperations\202\323\344\223\002" + + "b\"0/compute/v1/projects/{project}/setClo" + + "udArmorTier:.projects_set_cloud_armor_ti" + + "er_request_resource\022\206\002\n\031SetCommonInstanc" + + "eMetadata\022@.google.cloud.compute.v1.SetC" + + "ommonInstanceMetadataProjectRequest\032\".go" + + "ogle.cloud.compute.v1.Operation\"\202\001\332A\031pro" + + "ject,metadata_resource\212N\020GlobalOperation" + + "s\202\323\344\223\002M\"8/compute/v1/projects/{project}/" + + "setCommonInstanceMetadata:\021metadata_reso" + + "urce\022\274\002\n\025SetDefaultNetworkTier\022<.google." + + "cloud.compute.v1.SetDefaultNetworkTierPr" + + "ojectRequest\032\".google.cloud.compute.v1.O" + + "peration\"\300\001\332A:project,projects_set_defau" + + "lt_network_tier_request_resource\212N\020Globa" + + "lOperations\202\323\344\223\002j\"4/compute/v1/projects/" + + "{project}/setDefaultNetworkTier:2project" + + "s_set_default_network_tier_request_resou" + + "rce\022\221\002\n\024SetUsageExportBucket\022;.google.cl" + + "oud.compute.v1.SetUsageExportBucketProje" + + "ctRequest\032\".google.cloud.compute.v1.Oper" + + "ation\"\227\001\332A&project,usage_export_location" + + "_resource\212N\020GlobalOperations\202\323\344\223\002U\"3/com" + + "pute/v1/projects/{project}/setUsageExpor" + + "tBucket:\036usage_export_location_resource\032", + "r\312A\026compute.googleapis.com\322AVhttps://www" + + ".googleapis.com/auth/compute,https://www" + + ".googleapis.com/auth/cloud-platform2\356\017\n\030" + + "PublicAdvertisedPrefixes\022\222\002\n\010Announce\022?." + + "google.cloud.compute.v1.AnnouncePublicAd" + + "vertisedPrefixeRequest\032\".google.cloud.co" + + "mpute.v1.Operation\"\240\001\332A project,public_a" + + "dvertised_prefix\212N\020GlobalOperations\202\323\344\223\002" + + "d\"b/compute/v1/projects/{project}/global" + + "/publicAdvertisedPrefixes/{public_advert" + + "ised_prefix}/announce\022\205\002\n\006Delete\022=.googl" + + "e.cloud.compute.v1.DeletePublicAdvertise" + + "dPrefixeRequest\032\".google.cloud.compute.v" + + "1.Operation\"\227\001\332A project,public_advertis" + + "ed_prefix\212N\020GlobalOperations\202\323\344\223\002[*Y/com" + + "pute/v1/projects/{project}/global/public" + + "AdvertisedPrefixes/{public_advertised_pr" + + "efix}\022\371\001\n\003Get\022:.google.cloud.compute.v1." + + "GetPublicAdvertisedPrefixeRequest\032/.goog" + + "le.cloud.compute.v1.PublicAdvertisedPref" + + "ix\"\204\001\332A project,public_advertised_prefix" + + "\202\323\344\223\002[\022Y/compute/v1/projects/{project}/g" + + "lobal/publicAdvertisedPrefixes/{public_a" + + "dvertised_prefix}\022\226\002\n\006Insert\022=.google.cl" + + "oud.compute.v1.InsertPublicAdvertisedPre" + + "fixeRequest\032\".google.cloud.compute.v1.Op" + + "eration\"\250\001\332A)project,public_advertised_p" + + "refix_resource\212N\020GlobalOperations\202\323\344\223\002c\"" + + ">/compute/v1/projects/{project}/global/p" + + "ublicAdvertisedPrefixes:!public_advertis" + + "ed_prefix_resource\022\313\001\n\004List\022<.google.clo" + + "ud.compute.v1.ListPublicAdvertisedPrefix" + + "esRequest\0323.google.cloud.compute.v1.Publ" + + "icAdvertisedPrefixList\"P\332A\007project\202\323\344\223\002@" + + "\022>/compute/v1/projects/{project}/global/" + + "publicAdvertisedPrefixes\022\310\002\n\005Patch\022<.goo" + + "gle.cloud.compute.v1.PatchPublicAdvertis" + "edPrefixeRequest\032\".google.cloud.compute." - + "v1.Operation\"\256\001\332A&project,region,public_" + + "v1.Operation\"\334\001\332ABproject,public_adverti" + + "sed_prefix,public_advertised_prefix_reso" + + "urce\212N\020GlobalOperations\202\323\344\223\002~2Y/compute/" + + "v1/projects/{project}/global/publicAdver" + + "tisedPrefixes/{public_advertised_prefix}" + + ":!public_advertised_prefix_resource\022\222\002\n\010" + + "Withdraw\022?.google.cloud.compute.v1.Withd" + + "rawPublicAdvertisedPrefixeRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"\240\001\332A proje" + + "ct,public_advertised_prefix\212N\020GlobalOper" + + "ations\202\323\344\223\002d\"b/compute/v1/projects/{proj" + + "ect}/global/publicAdvertisedPrefixes/{pu" + + "blic_advertised_prefix}/withdraw\032r\312A\026com" + + "pute.googleapis.com\322AVhttps://www.google" + + "apis.com/auth/compute,https://www.google" + + "apis.com/auth/cloud-platform2\264\022\n\027PublicD" + + "elegatedPrefixes\022\352\001\n\016AggregatedList\022E.go" + + "ogle.cloud.compute.v1.AggregatedListPubl" + + "icDelegatedPrefixesRequest\032<.google.clou" + + "d.compute.v1.PublicDelegatedPrefixAggreg" + + "atedList\"S\332A\007project\202\323\344\223\002C\022A/compute/v1/" + + "projects/{project}/aggregated/publicDele" + + "gatedPrefixes\022\237\002\n\010Announce\022>.google.clou" + + "d.compute.v1.AnnouncePublicDelegatedPref" + + "ixeRequest\032\".google.cloud.compute.v1.Ope" + + "ration\"\256\001\332A&project,region,public_delega" + + "ted_prefix\212N\020RegionOperations\202\323\344\223\002l\"j/co" + + "mpute/v1/projects/{project}/regions/{reg" + + "ion}/publicDelegatedPrefixes/{public_del" + + "egated_prefix}/announce\022\222\002\n\006Delete\022<.goo" + + "gle.cloud.compute.v1.DeletePublicDelegat" + + "edPrefixeRequest\032\".google.cloud.compute." + + "v1.Operation\"\245\001\332A&project,region,public_" + "delegated_prefix\212N\020RegionOperations\202\323\344\223\002" - + "l\"j/compute/v1/projects/{project}/region" + + "c*a/compute/v1/projects/{project}/region" + "s/{region}/publicDelegatedPrefixes/{publ" - + "ic_delegated_prefix}/announce\022\222\002\n\006Delete" - + "\022<.google.cloud.compute.v1.DeletePublicD" - + "elegatedPrefixeRequest\032\".google.cloud.co" - + "mpute.v1.Operation\"\245\001\332A&project,region,p" - + "ublic_delegated_prefix\212N\020RegionOperation" - + "s\202\323\344\223\002c*a/compute/v1/projects/{project}/" - + "regions/{region}/publicDelegatedPrefixes" - + "/{public_delegated_prefix}\022\205\002\n\003Get\0229.goo" - + "gle.cloud.compute.v1.GetPublicDelegatedP" - + "refixeRequest\032..google.cloud.compute.v1." - + "PublicDelegatedPrefix\"\222\001\332A&project,regio" - + "n,public_delegated_prefix\202\323\344\223\002c\022a/comput" + + "ic_delegated_prefix}\022\205\002\n\003Get\0229.google.cl" + + "oud.compute.v1.GetPublicDelegatedPrefixe" + + "Request\032..google.cloud.compute.v1.Public" + + "DelegatedPrefix\"\222\001\332A&project,region,publ" + + "ic_delegated_prefix\202\323\344\223\002c\022a/compute/v1/p" + + "rojects/{project}/regions/{region}/publi" + + "cDelegatedPrefixes/{public_delegated_pre" + + "fix}\022\243\002\n\006Insert\022<.google.cloud.compute.v" + + "1.InsertPublicDelegatedPrefixeRequest\032\"." + + "google.cloud.compute.v1.Operation\"\266\001\332A/p" + + "roject,region,public_delegated_prefix_re" + + "source\212N\020RegionOperations\202\323\344\223\002k\"G/comput" + "e/v1/projects/{project}/regions/{region}" - + "/publicDelegatedPrefixes/{public_delegat" - + "ed_prefix}\022\243\002\n\006Insert\022<.google.cloud.com" - + "pute.v1.InsertPublicDelegatedPrefixeRequ" - + "est\032\".google.cloud.compute.v1.Operation\"" - + "\266\001\332A/project,region,public_delegated_pre" - + "fix_resource\212N\020RegionOperations\202\323\344\223\002k\"G/" - + "compute/v1/projects/{project}/regions/{r" - + "egion}/publicDelegatedPrefixes: public_d" - + "elegated_prefix_resource\022\331\001\n\004List\022;.goog" - + "le.cloud.compute.v1.ListPublicDelegatedP" - + "refixesRequest\0322.google.cloud.compute.v1" - + ".PublicDelegatedPrefixList\"`\332A\016project,r" - + "egion\202\323\344\223\002I\022G/compute/v1/projects/{proje" - + "ct}/regions/{region}/publicDelegatedPref" - + "ixes\022\324\002\n\005Patch\022;.google.cloud.compute.v1" - + ".PatchPublicDelegatedPrefixeRequest\032\".go" - + "ogle.cloud.compute.v1.Operation\"\351\001\332AGpro" - + "ject,region,public_delegated_prefix,publ" - + "ic_delegated_prefix_resource\212N\020RegionOpe" - + "rations\202\323\344\223\002\205\0012a/compute/v1/projects/{pr" - + "oject}/regions/{region}/publicDelegatedP" - + "refixes/{public_delegated_prefix}: publi" - + "c_delegated_prefix_resource\022\237\002\n\010Withdraw" - + "\022>.google.cloud.compute.v1.WithdrawPubli" - + "cDelegatedPrefixeRequest\032\".google.cloud." - + "compute.v1.Operation\"\256\001\332A&project,region" - + ",public_delegated_prefix\212N\020RegionOperati" - + "ons\202\323\344\223\002l\"j/compute/v1/projects/{project" - + "}/regions/{region}/publicDelegatedPrefix" - + "es/{public_delegated_prefix}/withdraw\032r\312" - + "A\026compute.googleapis.com\322AVhttps://www.g" - + "oogleapis.com/auth/compute,https://www.g" - + "oogleapis.com/auth/cloud-platform2\360\013\n\021Re" - + "gionAutoscalers\022\345\001\n\006Delete\0226.google.clou" - + "d.compute.v1.DeleteRegionAutoscalerReque" - + "st\032\".google.cloud.compute.v1.Operation\"\177" - + "\332A\031project,region,autoscaler\212N\020RegionOpe" - + "rations\202\323\344\223\002J*H/compute/v1/projects/{pro" - + "ject}/regions/{region}/autoscalers/{auto" - + "scaler}\022\315\001\n\003Get\0223.google.cloud.compute.v" - + "1.GetRegionAutoscalerRequest\032#.google.cl" - + "oud.compute.v1.Autoscaler\"l\332A\031project,re" - + "gion,autoscaler\202\323\344\223\002J\022H/compute/v1/proje" - + "cts/{project}/regions/{region}/autoscale" - + "rs/{autoscaler}\022\367\001\n\006Insert\0226.google.clou" - + "d.compute.v1.InsertRegionAutoscalerReque" - + "st\032\".google.cloud.compute.v1.Operation\"\220" - + "\001\332A\"project,region,autoscaler_resource\212N" - + "\020RegionOperations\202\323\344\223\002R\";/compute/v1/pro" - + "jects/{project}/regions/{region}/autosca" - + "lers:\023autoscaler_resource\022\302\001\n\004List\0225.goo" - + "gle.cloud.compute.v1.ListRegionAutoscale" - + "rsRequest\032-.google.cloud.compute.v1.Regi" - + "onAutoscalerList\"T\332A\016project,region\202\323\344\223\002" - + "=\022;/compute/v1/projects/{project}/region" - + "s/{region}/autoscalers\022\365\001\n\005Patch\0225.googl" - + "e.cloud.compute.v1.PatchRegionAutoscaler" + + "/publicDelegatedPrefixes: public_delegat" + + "ed_prefix_resource\022\331\001\n\004List\022;.google.clo" + + "ud.compute.v1.ListPublicDelegatedPrefixe" + + "sRequest\0322.google.cloud.compute.v1.Publi" + + "cDelegatedPrefixList\"`\332A\016project,region\202" + + "\323\344\223\002I\022G/compute/v1/projects/{project}/re" + + "gions/{region}/publicDelegatedPrefixes\022\324" + + "\002\n\005Patch\022;.google.cloud.compute.v1.Patch" + + "PublicDelegatedPrefixeRequest\032\".google.c" + + "loud.compute.v1.Operation\"\351\001\332AGproject,r" + + "egion,public_delegated_prefix,public_del" + + "egated_prefix_resource\212N\020RegionOperation" + + "s\202\323\344\223\002\205\0012a/compute/v1/projects/{project}" + + "/regions/{region}/publicDelegatedPrefixe" + + "s/{public_delegated_prefix}: public_dele" + + "gated_prefix_resource\022\237\002\n\010Withdraw\022>.goo" + + "gle.cloud.compute.v1.WithdrawPublicDeleg" + + "atedPrefixeRequest\032\".google.cloud.comput" + + "e.v1.Operation\"\256\001\332A&project,region,publi" + + "c_delegated_prefix\212N\020RegionOperations\202\323\344" + + "\223\002l\"j/compute/v1/projects/{project}/regi" + + "ons/{region}/publicDelegatedPrefixes/{pu" + + "blic_delegated_prefix}/withdraw\032r\312A\026comp" + + "ute.googleapis.com\322AVhttps://www.googlea" + + "pis.com/auth/compute,https://www.googlea" + + "pis.com/auth/cloud-platform2\360\013\n\021RegionAu" + + "toscalers\022\345\001\n\006Delete\0226.google.cloud.comp" + + "ute.v1.DeleteRegionAutoscalerRequest\032\".g" + + "oogle.cloud.compute.v1.Operation\"\177\332A\031pro" + + "ject,region,autoscaler\212N\020RegionOperation" + + "s\202\323\344\223\002J*H/compute/v1/projects/{project}/" + + "regions/{region}/autoscalers/{autoscaler" + + "}\022\315\001\n\003Get\0223.google.cloud.compute.v1.GetR" + + "egionAutoscalerRequest\032#.google.cloud.co" + + "mpute.v1.Autoscaler\"l\332A\031project,region,a" + + "utoscaler\202\323\344\223\002J\022H/compute/v1/projects/{p" + + "roject}/regions/{region}/autoscalers/{au" + + "toscaler}\022\367\001\n\006Insert\0226.google.cloud.comp" + + "ute.v1.InsertRegionAutoscalerRequest\032\".g" + + "oogle.cloud.compute.v1.Operation\"\220\001\332A\"pr" + + "oject,region,autoscaler_resource\212N\020Regio" + + "nOperations\202\323\344\223\002R\";/compute/v1/projects/" + + "{project}/regions/{region}/autoscalers:\023" + + "autoscaler_resource\022\302\001\n\004List\0225.google.cl" + + "oud.compute.v1.ListRegionAutoscalersRequ" + + "est\032-.google.cloud.compute.v1.RegionAuto" + + "scalerList\"T\332A\016project,region\202\323\344\223\002=\022;/co" + + "mpute/v1/projects/{project}/regions/{reg" + + "ion}/autoscalers\022\365\001\n\005Patch\0225.google.clou" + + "d.compute.v1.PatchRegionAutoscalerReques" + + "t\032\".google.cloud.compute.v1.Operation\"\220\001" + + "\332A\"project,region,autoscaler_resource\212N\020" + + "RegionOperations\202\323\344\223\002R2;/compute/v1/proj" + + "ects/{project}/regions/{region}/autoscal" + + "ers:\023autoscaler_resource\022\367\001\n\006Update\0226.go" + + "ogle.cloud.compute.v1.UpdateRegionAutosc" + + "alerRequest\032\".google.cloud.compute.v1.Op" + + "eration\"\220\001\332A\"project,region,autoscaler_r" + + "esource\212N\020RegionOperations\202\323\344\223\002R\032;/compu" + + "te/v1/projects/{project}/regions/{region" + + "}/autoscalers:\023autoscaler_resource\032r\312A\026c" + + "ompute.googleapis.com\322AVhttps://www.goog" + + "leapis.com/auth/compute,https://www.goog" + + "leapis.com/auth/cloud-platform2\275\033\n\025Regio" + + "nBackendServices\022\370\001\n\006Delete\022:.google.clo" + + "ud.compute.v1.DeleteRegionBackendService" + "Request\032\".google.cloud.compute.v1.Operat" - + "ion\"\220\001\332A\"project,region,autoscaler_resou" - + "rce\212N\020RegionOperations\202\323\344\223\002R2;/compute/v" - + "1/projects/{project}/regions/{region}/au" - + "toscalers:\023autoscaler_resource\022\367\001\n\006Updat" - + "e\0226.google.cloud.compute.v1.UpdateRegion" - + "AutoscalerRequest\032\".google.cloud.compute" - + ".v1.Operation\"\220\001\332A\"project,region,autosc" - + "aler_resource\212N\020RegionOperations\202\323\344\223\002R\032;" - + "/compute/v1/projects/{project}/regions/{" - + "region}/autoscalers:\023autoscaler_resource" - + "\032r\312A\026compute.googleapis.com\322AVhttps://ww" - + "w.googleapis.com/auth/compute,https://ww" - + "w.googleapis.com/auth/cloud-platform2\275\033\n" - + "\025RegionBackendServices\022\370\001\n\006Delete\022:.goog" - + "le.cloud.compute.v1.DeleteRegionBackendS" - + "erviceRequest\032\".google.cloud.compute.v1." - + "Operation\"\215\001\332A\036project,region,backend_se" - + "rvice\212N\020RegionOperations\202\323\344\223\002S*Q/compute" - + "/v1/projects/{project}/regions/{region}/" - + "backendServices/{backend_service}\022\343\001\n\003Ge" - + "t\0227.google.cloud.compute.v1.GetRegionBac" - + "kendServiceRequest\032\'.google.cloud.comput" - + "e.v1.BackendService\"z\332A\036project,region,b" - + "ackend_service\202\323\344\223\002S\022Q/compute/v1/projec" - + "ts/{project}/regions/{region}/backendSer" - + "vices/{backend_service}\022\313\002\n\tGetHealth\022=." - + "google.cloud.compute.v1.GetHealthRegionB" - + "ackendServiceRequest\0322.google.cloud.comp" - + "ute.v1.BackendServiceGroupHealth\"\312\001\332A@pr" - + "oject,region,backend_service,resource_gr" - + "oup_reference_resource\202\323\344\223\002\200\001\"[/compute/" - + "v1/projects/{project}/regions/{region}/b" - + "ackendServices/{backend_service}/getHeal" - + "th:!resource_group_reference_resource\022\354\001" - + "\n\014GetIamPolicy\022@.google.cloud.compute.v1" - + ".GetIamPolicyRegionBackendServiceRequest" - + "\032\037.google.cloud.compute.v1.Policy\"y\332A\027pr" - + "oject,region,resource\202\323\344\223\002Y\022W/compute/v1" - + "/projects/{project}/regions/{region}/bac" - + "kendServices/{resource}/getIamPolicy\022\211\002\n" - + "\006Insert\022:.google.cloud.compute.v1.Insert" - + "RegionBackendServiceRequest\032\".google.clo" - + "ud.compute.v1.Operation\"\236\001\332A\'project,reg" - + "ion,backend_service_resource\212N\020RegionOpe" - + "rations\202\323\344\223\002[\"?/compute/v1/projects/{pro" - + "ject}/regions/{region}/backendServices:\030" - + "backend_service_resource\022\310\001\n\004List\0229.goog" - + "le.cloud.compute.v1.ListRegionBackendSer" - + "vicesRequest\032+.google.cloud.compute.v1.B" - + "ackendServiceList\"X\332A\016project,region\202\323\344\223" - + "\002A\022?/compute/v1/projects/{project}/regio" - + "ns/{region}/backendServices\022\345\001\n\nListUsab" - + "le\022?.google.cloud.compute.v1.ListUsableR" - + "egionBackendServicesRequest\0321.google.clo" - + "ud.compute.v1.BackendServiceListUsable\"c" - + "\332A\016project,region\202\323\344\223\002L\022J/compute/v1/pro" + + "ion\"\215\001\332A\036project,region,backend_service\212" + + "N\020RegionOperations\202\323\344\223\002S*Q/compute/v1/pr" + + "ojects/{project}/regions/{region}/backen" + + "dServices/{backend_service}\022\343\001\n\003Get\0227.go" + + "ogle.cloud.compute.v1.GetRegionBackendSe" + + "rviceRequest\032\'.google.cloud.compute.v1.B" + + "ackendService\"z\332A\036project,region,backend" + + "_service\202\323\344\223\002S\022Q/compute/v1/projects/{pr" + + "oject}/regions/{region}/backendServices/" + + "{backend_service}\022\313\002\n\tGetHealth\022=.google" + + ".cloud.compute.v1.GetHealthRegionBackend" + + "ServiceRequest\0322.google.cloud.compute.v1" + + ".BackendServiceGroupHealth\"\312\001\332A@project," + + "region,backend_service,resource_group_re" + + "ference_resource\202\323\344\223\002\200\001\"[/compute/v1/pro" + "jects/{project}/regions/{region}/backend" - + "Services/listUsable\022\251\002\n\005Patch\0229.google.c" - + "loud.compute.v1.PatchRegionBackendServic" - + "eRequest\032\".google.cloud.compute.v1.Opera" - + "tion\"\300\001\332A7project,region,backend_service" - + ",backend_service_resource\212N\020RegionOperat" - + "ions\202\323\344\223\002m2Q/compute/v1/projects/{projec" + + "Services/{backend_service}/getHealth:!re" + + "source_group_reference_resource\022\354\001\n\014GetI" + + "amPolicy\022@.google.cloud.compute.v1.GetIa" + + "mPolicyRegionBackendServiceRequest\032\037.goo" + + "gle.cloud.compute.v1.Policy\"y\332A\027project," + + "region,resource\202\323\344\223\002Y\022W/compute/v1/proje" + + "cts/{project}/regions/{region}/backendSe" + + "rvices/{resource}/getIamPolicy\022\211\002\n\006Inser" + + "t\022:.google.cloud.compute.v1.InsertRegion" + + "BackendServiceRequest\032\".google.cloud.com" + + "pute.v1.Operation\"\236\001\332A\'project,region,ba" + + "ckend_service_resource\212N\020RegionOperation" + + "s\202\323\344\223\002[\"?/compute/v1/projects/{project}/" + + "regions/{region}/backendServices:\030backen" + + "d_service_resource\022\310\001\n\004List\0229.google.clo" + + "ud.compute.v1.ListRegionBackendServicesR" + + "equest\032+.google.cloud.compute.v1.Backend" + + "ServiceList\"X\332A\016project,region\202\323\344\223\002A\022?/c" + + "ompute/v1/projects/{project}/regions/{re" + + "gion}/backendServices\022\345\001\n\nListUsable\022?.g" + + "oogle.cloud.compute.v1.ListUsableRegionB" + + "ackendServicesRequest\0321.google.cloud.com" + + "pute.v1.BackendServiceListUsable\"c\332A\016pro" + + "ject,region\202\323\344\223\002L\022J/compute/v1/projects/" + + "{project}/regions/{region}/backendServic" + + "es/listUsable\022\251\002\n\005Patch\0229.google.cloud.c" + + "ompute.v1.PatchRegionBackendServiceReque" + + "st\032\".google.cloud.compute.v1.Operation\"\300" + + "\001\332A7project,region,backend_service,backe" + + "nd_service_resource\212N\020RegionOperations\202\323" + + "\344\223\002m2Q/compute/v1/projects/{project}/reg" + + "ions/{region}/backendServices/{backend_s" + + "ervice}:\030backend_service_resource\022\264\002\n\014Se" + + "tIamPolicy\022@.google.cloud.compute.v1.Set" + + "IamPolicyRegionBackendServiceRequest\032\037.g" + + "oogle.cloud.compute.v1.Policy\"\300\001\332A:proje" + + "ct,region,resource,region_set_policy_req" + + "uest_resource\202\323\344\223\002}\"W/compute/v1/project" + + "s/{project}/regions/{region}/backendServ" + + "ices/{resource}/setIamPolicy:\"region_set" + + "_policy_request_resource\022\350\002\n\021SetSecurity" + + "Policy\022E.google.cloud.compute.v1.SetSecu" + + "rityPolicyRegionBackendServiceRequest\032\"." + + "google.cloud.compute.v1.Operation\"\347\001\332AAp" + + "roject,region,backend_service,security_p" + + "olicy_reference_resource\212N\020RegionOperati" + + "ons\202\323\344\223\002\211\001\"c/compute/v1/projects/{projec" + "t}/regions/{region}/backendServices/{bac" - + "kend_service}:\030backend_service_resource\022" - + "\264\002\n\014SetIamPolicy\022@.google.cloud.compute." - + "v1.SetIamPolicyRegionBackendServiceReque" - + "st\032\037.google.cloud.compute.v1.Policy\"\300\001\332A" - + ":project,region,resource,region_set_poli" - + "cy_request_resource\202\323\344\223\002}\"W/compute/v1/p" - + "rojects/{project}/regions/{region}/backe" - + "ndServices/{resource}/setIamPolicy:\"regi" - + "on_set_policy_request_resource\022\350\002\n\021SetSe" - + "curityPolicy\022E.google.cloud.compute.v1.S" - + "etSecurityPolicyRegionBackendServiceRequ" + + "kend_service}/setSecurityPolicy:\"securit" + + "y_policy_reference_resource\022\326\002\n\022TestIamP" + + "ermissions\022F.google.cloud.compute.v1.Tes" + + "tIamPermissionsRegionBackendServiceReque" + + "st\0320.google.cloud.compute.v1.TestPermiss" + + "ionsResponse\"\305\001\332A9project,region,resourc" + + "e,test_permissions_request_resource\202\323\344\223\002" + + "\202\001\"]/compute/v1/projects/{project}/regio" + + "ns/{region}/backendServices/{resource}/t" + + "estIamPermissions:!test_permissions_requ" + + "est_resource\022\253\002\n\006Update\022:.google.cloud.c" + + "ompute.v1.UpdateRegionBackendServiceRequ" + "est\032\".google.cloud.compute.v1.Operation\"" - + "\347\001\332AAproject,region,backend_service,secu" - + "rity_policy_reference_resource\212N\020RegionO" - + "perations\202\323\344\223\002\211\001\"c/compute/v1/projects/{" - + "project}/regions/{region}/backendService" - + "s/{backend_service}/setSecurityPolicy:\"s" - + "ecurity_policy_reference_resource\022\326\002\n\022Te" - + "stIamPermissions\022F.google.cloud.compute." - + "v1.TestIamPermissionsRegionBackendServic" - + "eRequest\0320.google.cloud.compute.v1.TestP" - + "ermissionsResponse\"\305\001\332A9project,region,r" - + "esource,test_permissions_request_resourc" - + "e\202\323\344\223\002\202\001\"]/compute/v1/projects/{project}" - + "/regions/{region}/backendServices/{resou" - + "rce}/testIamPermissions:!test_permission" - + "s_request_resource\022\253\002\n\006Update\022:.google.c" - + "loud.compute.v1.UpdateRegionBackendServi" - + "ceRequest\032\".google.cloud.compute.v1.Oper" - + "ation\"\300\001\332A7project,region,backend_servic" - + "e,backend_service_resource\212N\020RegionOpera" - + "tions\202\323\344\223\002m\032Q/compute/v1/projects/{proje" - + "ct}/regions/{region}/backendServices/{ba" - + "ckend_service}:\030backend_service_resource" - + "\032r\312A\026compute.googleapis.com\322AVhttps://ww" - + "w.googleapis.com/auth/compute,https://ww" - + "w.googleapis.com/auth/cloud-platform2\362\t\n" - + "\021RegionCommitments\022\315\001\n\016AggregatedList\022?." - + "google.cloud.compute.v1.AggregatedListRe" - + "gionCommitmentsRequest\0321.google.cloud.co" - + "mpute.v1.CommitmentAggregatedList\"G\332A\007pr" - + "oject\202\323\344\223\0027\0225/compute/v1/projects/{proje" - + "ct}/aggregated/commitments\022\315\001\n\003Get\0223.goo" - + "gle.cloud.compute.v1.GetRegionCommitment" - + "Request\032#.google.cloud.compute.v1.Commit" - + "ment\"l\332A\031project,region,commitment\202\323\344\223\002J" - + "\022H/compute/v1/projects/{project}/regions" - + "/{region}/commitments/{commitment}\022\367\001\n\006I" - + "nsert\0226.google.cloud.compute.v1.InsertRe" - + "gionCommitmentRequest\032\".google.cloud.com" - + "pute.v1.Operation\"\220\001\332A\"project,region,co" - + "mmitment_resource\212N\020RegionOperations\202\323\344\223" - + "\002R\";/compute/v1/projects/{project}/regio" - + "ns/{region}/commitments:\023commitment_reso" - + "urce\022\274\001\n\004List\0225.google.cloud.compute.v1." - + "ListRegionCommitmentsRequest\032\'.google.cl" - + "oud.compute.v1.CommitmentList\"T\332A\016projec" - + "t,region\202\323\344\223\002=\022;/compute/v1/projects/{pr" - + "oject}/regions/{region}/commitments\022\217\002\n\006" - + "Update\0226.google.cloud.compute.v1.UpdateR" - + "egionCommitmentRequest\032\".google.cloud.co" - + "mpute.v1.Operation\"\250\001\332A-project,region,c" - + "ommitment,commitment_resource\212N\020RegionOp" - + "erations\202\323\344\223\002_2H/compute/v1/projects/{pr" - + "oject}/regions/{region}/commitments/{com" - + "mitment}:\023commitment_resource\032r\312A\026comput" - + "e.googleapis.com\322AVhttps://www.googleapi" - + "s.com/auth/compute,https://www.googleapi" - + "s.com/auth/cloud-platform2\277\004\n\017RegionDisk" - + "Types\022\305\001\n\003Get\0221.google.cloud.compute.v1." - + "GetRegionDiskTypeRequest\032!.google.cloud." - + "compute.v1.DiskType\"h\332A\030project,region,d" - + "isk_type\202\323\344\223\002G\022E/compute/v1/projects/{pr" - + "oject}/regions/{region}/diskTypes/{disk_" - + "type}\022\274\001\n\004List\0223.google.cloud.compute.v1" - + ".ListRegionDiskTypesRequest\032+.google.clo" - + "ud.compute.v1.RegionDiskTypeList\"R\332A\016pro" - + "ject,region\202\323\344\223\002;\0229/compute/v1/projects/" - + "{project}/regions/{region}/diskTypes\032\244\001\312" - + "A\026compute.googleapis.com\322A\207\001https://www." - + "googleapis.com/auth/compute.readonly,htt" - + "ps://www.googleapis.com/auth/compute,htt" - + "ps://www.googleapis.com/auth/cloud-platf" - + "orm2\217&\n\013RegionDisks\022\346\002\n\023AddResourcePolic" - + "ies\022=.google.cloud.compute.v1.AddResourc" - + "ePoliciesRegionDiskRequest\032\".google.clou" - + "d.compute.v1.Operation\"\353\001\332AGproject,regi" - + "on,disk,region_disks_add_resource_polici" - + "es_request_resource\212N\020RegionOperations\202\323" - + "\344\223\002\207\001\"P/compute/v1/projects/{project}/re" - + "gions/{region}/disks/{disk}/addResourceP" - + "olicies:3region_disks_add_resource_polic" - + "ies_request_resource\022\234\002\n\nBulkInsert\0224.go" - + "ogle.cloud.compute.v1.BulkInsertRegionDi" - + "skRequest\032\".google.cloud.compute.v1.Oper" - + "ation\"\263\001\332A1project,region,bulk_insert_di" - + "sk_resource_resource\212N\020RegionOperations\202" - + "\323\344\223\002f\"@/compute/v1/projects/{project}/re" - + "gions/{region}/disks/bulkInsert:\"bulk_in" - + "sert_disk_resource_resource\022\222\002\n\016CreateSn" - + "apshot\0228.google.cloud.compute.v1.CreateS" - + "napshotRegionDiskRequest\032\".google.cloud." - + "compute.v1.Operation\"\241\001\332A%project,region" - + ",disk,snapshot_resource\212N\020RegionOperatio" - + "ns\202\323\344\223\002`\"K/compute/v1/projects/{project}" - + "/regions/{region}/disks/{disk}/createSna" - + "pshot:\021snapshot_resource\022\315\001\n\006Delete\0220.go" - + "ogle.cloud.compute.v1.DeleteRegionDiskRe" - + "quest\032\".google.cloud.compute.v1.Operatio" - + "n\"m\332A\023project,region,disk\212N\020RegionOperat" - + "ions\202\323\344\223\002>*\022*\022.google.cloud.compute.v1.StopAsyn" - + "cReplicationRegionDiskRequest\032\".google.c" - + "loud.compute.v1.Operation\"\202\001\332A\023project,r" - + "egion,disk\212N\020RegionOperations\202\323\344\223\002S\"Q/co" + + "isk}\022\330\001\n\014GetIamPolicy\0226.google.cloud.com" + + "pute.v1.GetIamPolicyRegionDiskRequest\032\037." + + "google.cloud.compute.v1.Policy\"o\332A\027proje" + + "ct,region,resource\202\323\344\223\002O\022M/compute/v1/pr" + + "ojects/{project}/regions/{region}/disks/" + + "{resource}/getIamPolicy\022\336\001\n\006Insert\0220.goo" + + "gle.cloud.compute.v1.InsertRegionDiskReq" + + "uest\032\".google.cloud.compute.v1.Operation" + + "\"~\332A\034project,region,disk_resource\212N\020Regi" + + "onOperations\202\323\344\223\002F\"5/compute/v1/projects" + + "/{project}/regions/{region}/disks:\rdisk_" + + "resource\022\252\001\n\004List\022/.google.cloud.compute" + + ".v1.ListRegionDisksRequest\032!.google.clou" + + "d.compute.v1.DiskList\"N\332A\016project,region" + + "\202\323\344\223\0027\0225/compute/v1/projects/{project}/r" + + "egions/{region}/disks\022\365\002\n\026RemoveResource" + + "Policies\022@.google.cloud.compute.v1.Remov" + + "eResourcePoliciesRegionDiskRequest\032\".goo" + + "gle.cloud.compute.v1.Operation\"\364\001\332AJproj" + + "ect,region,disk,region_disks_remove_reso" + + "urce_policies_request_resource\212N\020RegionO" + + "perations\202\323\344\223\002\215\001\"S/compute/v1/projects/{" + + "project}/regions/{region}/disks/{disk}/r" + + "emoveResourcePolicies:6region_disks_remo" + + "ve_resource_policies_request_resource\022\240\002" + + "\n\006Resize\0220.google.cloud.compute.v1.Resiz" + + "eRegionDiskRequest\032\".google.cloud.comput" + + "e.v1.Operation\"\277\001\332A8project,region,disk," + + "region_disks_resize_request_resource\212N\020R" + + "egionOperations\202\323\344\223\002k\"C/compute/v1/proje" + + "cts/{project}/regions/{region}/disks/{di" + + "sk}/resize:$region_disks_resize_request_" + + "resource\022\240\002\n\014SetIamPolicy\0226.google.cloud" + + ".compute.v1.SetIamPolicyRegionDiskReques" + + "t\032\037.google.cloud.compute.v1.Policy\"\266\001\332A:" + + "project,region,resource,region_set_polic" + + "y_request_resource\202\323\344\223\002s\"M/compute/v1/pr" + + "ojects/{project}/regions/{region}/disks/" + + "{resource}/setIamPolicy:\"region_set_poli" + + "cy_request_resource\022\255\002\n\tSetLabels\0223.goog" + + "le.cloud.compute.v1.SetLabelsRegionDiskR" + + "equest\032\".google.cloud.compute.v1.Operati" + + "on\"\306\001\332A:project,region,resource,region_s" + + "et_labels_request_resource\212N\020RegionOpera" + + "tions\202\323\344\223\002p\"J/compute/v1/projects/{proje" + + "ct}/regions/{region}/disks/{resource}/se" + + "tLabels:\"region_set_labels_request_resou" + + "rce\022\360\002\n\025StartAsyncReplication\022?.google.c" + + "loud.compute.v1.StartAsyncReplicationReg" + + "ionDiskRequest\032\".google.cloud.compute.v1" + + ".Operation\"\361\001\332AIproject,region,disk,regi" + + "on_disks_start_async_replication_request" + + "_resource\212N\020RegionOperations\202\323\344\223\002\213\001\"R/co" + "mpute/v1/projects/{project}/regions/{reg" - + "ion}/disks/{disk}/stopAsyncReplication\022\356" - + "\002\n\031StopGroupAsyncReplication\022C.google.cl" - + "oud.compute.v1.StopGroupAsyncReplication" - + "RegionDiskRequest\032\".google.cloud.compute" - + ".v1.Operation\"\347\001\332ACproject,region,disks_" - + "stop_group_async_replication_resource_re" - + "source\212N\020RegionOperations\202\323\344\223\002\207\001\"O/compu" - + "te/v1/projects/{project}/regions/{region" - + "}/disks/stopGroupAsyncReplication:4disks" - + "_stop_group_async_replication_resource_r" - + "esource\022\301\002\n\022TestIamPermissions\022<.google." - + "cloud.compute.v1.TestIamPermissionsRegio" - + "nDiskRequest\0320.google.cloud.compute.v1.T" - + "estPermissionsResponse\"\272\001\332A9project,regi" - + "on,resource,test_permissions_request_res" - + "ource\202\323\344\223\002x\"S/compute/v1/projects/{proje" - + "ct}/regions/{region}/disks/{resource}/te" - + "stIamPermissions:!test_permissions_reque" - + "st_resource\022\353\001\n\006Update\0220.google.cloud.co" - + "mpute.v1.UpdateRegionDiskRequest\032\".googl" - + "e.cloud.compute.v1.Operation\"\212\001\332A!projec" - + "t,region,disk,disk_resource\212N\020RegionOper" - + "ations\202\323\344\223\002M2.google.cloud.compute.v1.DeleteR" - + "egionHealthCheckServiceRequest\032\".google." - + "cloud.compute.v1.Operation\"\233\001\332A#project," - + "region,health_check_service\212N\020RegionOper" - + "ations\202\323\344\223\002\\*Z/compute/v1/projects/{proj" - + "ect}/regions/{region}/healthCheckService" - + "s/{health_check_service}\022\372\001\n\003Get\022;.googl" - + "e.cloud.compute.v1.GetRegionHealthCheckS" - + "erviceRequest\032+.google.cloud.compute.v1." - + "HealthCheckService\"\210\001\332A#project,region,h" - + "ealth_check_service\202\323\344\223\002\\\022Z/compute/v1/p" - + "rojects/{project}/regions/{region}/healt" - + "hCheckServices/{health_check_service}\022\233\002" - + "\n\006Insert\022>.google.cloud.compute.v1.Inser" - + "tRegionHealthCheckServiceRequest\032\".googl" - + "e.cloud.compute.v1.Operation\"\254\001\332A,projec" - + "t,region,health_check_service_resource\212N" - + "\020RegionOperations\202\323\344\223\002d\"C/compute/v1/pro" - + "jects/{project}/regions/{region}/healthC" - + "heckServices:\035health_check_service_resou" - + "rce\022\325\001\n\004List\022=.google.cloud.compute.v1.L" - + "istRegionHealthCheckServicesRequest\0320.go" - + "ogle.cloud.compute.v1.HealthCheckService", - "sList\"\\\332A\016project,region\202\323\344\223\002E\022C/compute" - + "/v1/projects/{project}/regions/{region}/" - + "healthCheckServices\022\305\002\n\005Patch\022=.google.c" - + "loud.compute.v1.PatchRegionHealthCheckSe" - + "rviceRequest\032\".google.cloud.compute.v1.O" - + "peration\"\330\001\332AAproject,region,health_chec" - + "k_service,health_check_service_resource\212" - + "N\020RegionOperations\202\323\344\223\002{2Z/compute/v1/pr" + + "ion}/disks/{disk}/startAsyncReplication:" + + "5region_disks_start_async_replication_re" + + "quest_resource\022\377\001\n\024StopAsyncReplication\022" + + ">.google.cloud.compute.v1.StopAsyncRepli" + + "cationRegionDiskRequest\032\".google.cloud.c" + + "ompute.v1.Operation\"\202\001\332A\023project,region," + + "disk\212N\020RegionOperations\202\323\344\223\002S\"Q/compute/" + + "v1/projects/{project}/regions/{region}/d" + + "isks/{disk}/stopAsyncReplication\022\356\002\n\031Sto" + + "pGroupAsyncReplication\022C.google.cloud.co" + + "mpute.v1.StopGroupAsyncReplicationRegion" + + "DiskRequest\032\".google.cloud.compute.v1.Op" + + "eration\"\347\001\332ACproject,region,disks_stop_g" + + "roup_async_replication_resource_resource" + + "\212N\020RegionOperations\202\323\344\223\002\207\001\"O/compute/v1/" + + "projects/{project}/regions/{region}/disk" + + "s/stopGroupAsyncReplication:4disks_stop_" + + "group_async_replication_resource_resourc" + + "e\022\301\002\n\022TestIamPermissions\022<.google.cloud." + + "compute.v1.TestIamPermissionsRegionDiskR" + + "equest\0320.google.cloud.compute.v1.TestPer" + + "missionsResponse\"\272\001\332A9project,region,res" + + "ource,test_permissions_request_resource\202" + + "\323\344\223\002x\"S/compute/v1/projects/{project}/re" + + "gions/{region}/disks/{resource}/testIamP" + + "ermissions:!test_permissions_request_res" + + "ource\022\353\001\n\006Update\0220.google.cloud.compute." + + "v1.UpdateRegionDiskRequest\032\".google.clou", + "d.compute.v1.Operation\"\212\001\332A!project,regi" + + "on,disk,disk_resource\212N\020RegionOperations" + + "\202\323\344\223\002M2.google.cloud.compute.v1.DeleteRegionH" + + "ealthCheckServiceRequest\032\".google.cloud." + + "compute.v1.Operation\"\233\001\332A#project,region" + + ",health_check_service\212N\020RegionOperations" + + "\202\323\344\223\002\\*Z/compute/v1/projects/{project}/r" + + "egions/{region}/healthCheckServices/{hea" + + "lth_check_service}\022\372\001\n\003Get\022;.google.clou" + + "d.compute.v1.GetRegionHealthCheckService" + + "Request\032+.google.cloud.compute.v1.Health" + + "CheckService\"\210\001\332A#project,region,health_" + + "check_service\202\323\344\223\002\\\022Z/compute/v1/project" + + "s/{project}/regions/{region}/healthCheck" + + "Services/{health_check_service}\022\233\002\n\006Inse" + + "rt\022>.google.cloud.compute.v1.InsertRegio" + + "nHealthCheckServiceRequest\032\".google.clou" + + "d.compute.v1.Operation\"\254\001\332A,project,regi" + + "on,health_check_service_resource\212N\020Regio" + + "nOperations\202\323\344\223\002d\"C/compute/v1/projects/" + + "{project}/regions/{region}/healthCheckSe" + + "rvices:\035health_check_service_resource\022\325\001" + + "\n\004List\022=.google.cloud.compute.v1.ListReg" + + "ionHealthCheckServicesRequest\0320.google.c" + + "loud.compute.v1.HealthCheckServicesList\"" + + "\\\332A\016project,region\202\323\344\223\002E\022C/compute/v1/pr" + "ojects/{project}/regions/{region}/health" - + "CheckServices/{health_check_service}:\035he" - + "alth_check_service_resource\032r\312A\026compute." - + "googleapis.com\322AVhttps://www.googleapis." - + "com/auth/compute,https://www.googleapis." - + "com/auth/cloud-platform2\306\014\n\022RegionHealth" - + "Checks\022\354\001\n\006Delete\0227.google.cloud.compute" - + ".v1.DeleteRegionHealthCheckRequest\032\".goo" - + "gle.cloud.compute.v1.Operation\"\204\001\332A\033proj" - + "ect,region,health_check\212N\020RegionOperatio" - + "ns\202\323\344\223\002M*K/compute/v1/projects/{project}" - + "/regions/{region}/healthChecks/{health_c" - + "heck}\022\324\001\n\003Get\0224.google.cloud.compute.v1." - + "GetRegionHealthCheckRequest\032$.google.clo" - + "ud.compute.v1.HealthCheck\"q\332A\033project,re" - + "gion,health_check\202\323\344\223\002M\022K/compute/v1/pro" - + "jects/{project}/regions/{region}/healthC" - + "hecks/{health_check}\022\375\001\n\006Insert\0227.google" - + ".cloud.compute.v1.InsertRegionHealthChec" - + "kRequest\032\".google.cloud.compute.v1.Opera" - + "tion\"\225\001\332A$project,region,health_check_re" - + "source\212N\020RegionOperations\202\323\344\223\002U\"\022\022reg" - + "ion_instance_group_managers_stop_instanc" - + "es_request_resource\022\275\003\n\020SuspendInstances" - + "\022J.google.cloud.compute.v1.SuspendInstan" - + "cesRegionInstanceGroupManagerRequest\032\".g" - + "oogle.cloud.compute.v1.Operation\"\270\002\332Agpr" - + "oject,region,instance_group_manager,regi" - + "on_instance_group_managers_suspend_insta" - + "nces_request_resource\212N\020RegionOperations" - + "\202\323\344\223\002\264\001\"o/compute/v1/projects/{project}/" - + "regions/{region}/instanceGroupManagers/{" - + "instance_group_manager}/suspendInstances" - + ":Aregion_instance_group_managers_suspend" - + "_instances_request_resource\022\325\003\n\030UpdatePe" - + "rInstanceConfigs\022R.google.cloud.compute." - + "v1.UpdatePerInstanceConfigsRegionInstanc" - + "eGroupManagerRequest\032\".google.cloud.comp" - + "ute.v1.Operation\"\300\002\332Agproject,region,ins" - + "tance_group_manager,region_instance_grou" - + "p_manager_update_instance_config_req_res" - + "ource\212N\020RegionOperations\202\323\344\223\002\274\001\"w/comput" + + "s/{instance_group_manager}/listManagedIn" + + "stances\022\340\002\n\026ListPerInstanceConfigs\022Q.goo" + + "gle.cloud.compute.v1.ListPerInstanceConf" + + "igsRegionInstanceGroupManagersRequest\032K." + + "google.cloud.compute.v1.RegionInstanceGr" + + "oupManagersListInstanceConfigsResp\"\245\001\332A%" + + "project,region,instance_group_manager\202\323\344" + + "\223\002w\"u/compute/v1/projects/{project}/regi" + + "ons/{region}/instanceGroupManagers/{inst" + + "ance_group_manager}/listPerInstanceConfi" + + "gs\022\322\002\n\005Patch\022?.google.cloud.compute.v1.P" + + "atchRegionInstanceGroupManagerRequest\032\"." + + "google.cloud.compute.v1.Operation\"\343\001\332AEp" + + "roject,region,instance_group_manager,ins" + + "tance_group_manager_resource\212N\020RegionOpe" + + "rations\202\323\344\223\002\201\0012^/compute/v1/projects/{pr" + + "oject}/regions/{region}/instanceGroupMan" + + "agers/{instance_group_manager}:\037instance" + + "_group_manager_resource\022\320\003\n\027PatchPerInst" + + "anceConfigs\022Q.google.cloud.compute.v1.Pa" + + "tchPerInstanceConfigsRegionInstanceGroup" + + "ManagerRequest\032\".google.cloud.compute.v1" + + ".Operation\"\275\002\332Afproject,region,instance_" + + "group_manager,region_instance_group_mana" + + "ger_patch_instance_config_req_resource\212N" + + "\020RegionOperations\202\323\344\223\002\272\001\"v/compute/v1/pr" + + "ojects/{project}/regions/{region}/instan" + + "ceGroupManagers/{instance_group_manager}" + + "/patchPerInstanceConfigs:@region_instanc" + + "e_group_manager_patch_instance_config_re" + + "q_resource\022\256\003\n\021RecreateInstances\022K.googl" + + "e.cloud.compute.v1.RecreateInstancesRegi" + + "onInstanceGroupManagerRequest\032\".google.c" + + "loud.compute.v1.Operation\"\247\002\332A^project,r" + + "egion,instance_group_manager,region_inst" + + "ance_group_managers_recreate_request_res" + + "ource\212N\020RegionOperations\202\323\344\223\002\254\001\"p/comput" + "e/v1/projects/{project}/regions/{region}" + "/instanceGroupManagers/{instance_group_m" - + "anager}/updatePerInstanceConfigs:Aregion" - + "_instance_group_manager_update_instance_" - + "config_req_resource\032r\312A\026compute.googleap" - + "is.com\322AVhttps://www.googleapis.com/auth" - + "/compute,https://www.googleapis.com/auth" - + "/cloud-platform2\307\n\n\024RegionInstanceGroups" - + "\022\336\001\n\003Get\0226.google.cloud.compute.v1.GetRe" - + "gionInstanceGroupRequest\032&.google.cloud." - + "compute.v1.InstanceGroup\"w\332A\035project,reg" - + "ion,instance_group\202\323\344\223\002Q\022O/compute/v1/pr" - + "ojects/{project}/regions/{region}/instan" - + "ceGroups/{instance_group}\022\313\001\n\004List\0228.goo" - + "gle.cloud.compute.v1.ListRegionInstanceG" - + "roupsRequest\0320.google.cloud.compute.v1.R" - + "egionInstanceGroupList\"W\332A\016project,regio" - + "n\202\323\344\223\002@\022>/compute/v1/projects/{project}/" - + "regions/{region}/instanceGroups\022\206\003\n\rList" - + "Instances\022A.google.cloud.compute.v1.List" - + "InstancesRegionInstanceGroupsRequest\032:.g" - + "oogle.cloud.compute.v1.RegionInstanceGro" - + "upsListInstances\"\365\001\332ATproject,region,ins" - + "tance_group,region_instance_groups_list_" - + "instances_request_resource\202\323\344\223\002\227\001\"]/comp" - + "ute/v1/projects/{project}/regions/{regio" - + "n}/instanceGroups/{instance_group}/listI" - + "nstances:6region_instance_groups_list_in" - + "stances_request_resource\022\202\003\n\rSetNamedPor" - + "ts\022@.google.cloud.compute.v1.SetNamedPor" - + "tsRegionInstanceGroupRequest\032\".google.cl" - + "oud.compute.v1.Operation\"\212\002\332AUproject,re" - + "gion,instance_group,region_instance_grou" - + "ps_set_named_ports_request_resource\212N\020Re" - + "gionOperations\202\323\344\223\002\230\001\"]/compute/v1/proje" - + "cts/{project}/regions/{region}/instanceG" - + "roups/{instance_group}/setNamedPorts:7re" - + "gion_instance_groups_set_named_ports_req" - + "uest_resource\032r\312A\026compute.googleapis.com" + + "anager}/recreateInstances:8region_instan" + + "ce_group_managers_recreate_request_resou" + + "rce\022\236\002\n\006Resize\022@.google.cloud.compute.v1" + + ".ResizeRegionInstanceGroupManagerRequest" + + "\032\".google.cloud.compute.v1.Operation\"\255\001\332" + + "A*project,region,instance_group_manager," + + "size\212N\020RegionOperations\202\323\344\223\002g\"e/compute/" + + "v1/projects/{project}/regions/{region}/i" + + "nstanceGroupManagers/{instance_group_man" + + "ager}/resize\022\270\003\n\017ResumeInstances\022I.googl" + + "e.cloud.compute.v1.ResumeInstancesRegion" + + "InstanceGroupManagerRequest\032\".google.clo" + + "ud.compute.v1.Operation\"\265\002\332Afproject,reg" + + "ion,instance_group_manager,region_instan" + + "ce_group_managers_resume_instances_reque" + + "st_resource\212N\020RegionOperations\202\323\344\223\002\262\001\"n/" + + "compute/v1/projects/{project}/regions/{r" + + "egion}/instanceGroupManagers/{instance_g" + + "roup_manager}/resumeInstances:@region_in" + + "stance_group_managers_resume_instances_r" + + "equest_resource\022\274\003\n\023SetInstanceTemplate\022" + + "M.google.cloud.compute.v1.SetInstanceTem" + + "plateRegionInstanceGroupManagerRequest\032\"" + + ".google.cloud.compute.v1.Operation\"\261\002\332Ab" + + "project,region,instance_group_manager,re" + + "gion_instance_group_managers_set_templat" + + "e_request_resource\212N\020RegionOperations\202\323\344" + + "\223\002\262\001\"r/compute/v1/projects/{project}/reg" + + "ions/{region}/instanceGroupManagers/{ins" + + "tance_group_manager}/setInstanceTemplate" + + ":region_in" + + "stance_group_managers_stop_instances_req" + + "uest_resource\022\275\003\n\020SuspendInstances\022J.goo" + + "gle.cloud.compute.v1.SuspendInstancesReg" + + "ionInstanceGroupManagerRequest\032\".google." + + "cloud.compute.v1.Operation\"\270\002\332Agproject," + + "region,instance_group_manager,region_ins" + + "tance_group_managers_suspend_instances_r" + + "equest_resource\212N\020RegionOperations\202\323\344\223\002\264" + + "\001\"o/compute/v1/projects/{project}/region" + + "s/{region}/instanceGroupManagers/{instan" + + "ce_group_manager}/suspendInstances:Aregi" + + "on_instance_group_managers_suspend_insta" + + "nces_request_resource\022\325\003\n\030UpdatePerInsta" + + "nceConfigs\022R.google.cloud.compute.v1.Upd" + + "atePerInstanceConfigsRegionInstanceGroup" + + "ManagerRequest\032\".google.cloud.compute.v1" + + ".Operation\"\300\002\332Agproject,region,instance_" + + "group_manager,region_instance_group_mana" + + "ger_update_instance_config_req_resource\212" + + "N\020RegionOperations\202\323\344\223\002\274\001\"w/compute/v1/p" + + "rojects/{project}/regions/{region}/insta" + + "nceGroupManagers/{instance_group_manager" + + "}/updatePerInstanceConfigs:Aregion_insta" + + "nce_group_manager_update_instance_config" + + "_req_resource\032r\312A\026compute.googleapis.com" + "\322AVhttps://www.googleapis.com/auth/compu" + "te,https://www.googleapis.com/auth/cloud" - + "-platform2\346\010\n\027RegionInstanceTemplates\022\200\002" - + "\n\006Delete\022<.google.cloud.compute.v1.Delet" - + "eRegionInstanceTemplateRequest\032\".google." - + "cloud.compute.v1.Operation\"\223\001\332A project," - + "region,instance_template\212N\020RegionOperati" - + "ons\202\323\344\223\002W*U/compute/v1/projects/{project" - + "}/regions/{region}/instanceTemplates/{in" - + "stance_template}\022\356\001\n\003Get\0229.google.cloud." - + "compute.v1.GetRegionInstanceTemplateRequ" - + "est\032).google.cloud.compute.v1.InstanceTe" - + "mplate\"\200\001\332A project,region,instance_temp" - + "late\202\323\344\223\002W\022U/compute/v1/projects/{projec" - + "t}/regions/{region}/instanceTemplates/{i" - + "nstance_template}\022\221\002\n\006Insert\022<.google.cl" - + "oud.compute.v1.InsertRegionInstanceTempl" - + "ateRequest\032\".google.cloud.compute.v1.Ope" - + "ration\"\244\001\332A)project,region,instance_temp" - + "late_resource\212N\020RegionOperations\202\323\344\223\002_\"A" - + "/compute/v1/projects/{project}/regions/{" - + "region}/instanceTemplates:\032instance_temp" - + "late_resource\022\316\001\n\004List\022;.google.cloud.co" - + "mpute.v1.ListRegionInstanceTemplatesRequ" - + "est\032-.google.cloud.compute.v1.InstanceTe" - + "mplateList\"Z\332A\016project,region\202\323\344\223\002C\022A/co" - + "mpute/v1/projects/{project}/regions/{reg" - + "ion}/instanceTemplates\032r\312A\026compute.googl" - + "eapis.com\322AVhttps://www.googleapis.com/a" - + "uth/compute,https://www.googleapis.com/a" - + "uth/cloud-platform2\264\003\n\017RegionInstances\022\254" - + "\002\n\nBulkInsert\0228.google.cloud.compute.v1." - + "BulkInsertRegionInstanceRequest\032\".google" - + ".cloud.compute.v1.Operation\"\277\001\332A5project" - + ",region,bulk_insert_instance_resource_re" - + "source\212N\020RegionOperations\202\323\344\223\002n\"D/comput" - + "e/v1/projects/{project}/regions/{region}" - + "/instances/bulkInsert:&bulk_insert_insta" - + "nce_resource_resource\032r\312A\026compute.google" - + "apis.com\322AVhttps://www.googleapis.com/au" - + "th/compute,https://www.googleapis.com/au" - + "th/cloud-platform2\237\022\n\026RegionInstantSnaps" - + "hots\022\374\001\n\006Delete\022;.google.cloud.compute.v" - + "1.DeleteRegionInstantSnapshotRequest\032\".g" - + "oogle.cloud.compute.v1.Operation\"\220\001\332A\037pr" - + "oject,region,instant_snapshot\212N\020RegionOp" - + "erations\202\323\344\223\002U*S/compute/v1/projects/{pr" - + "oject}/regions/{region}/instantSnapshots" - + "/{instant_snapshot}\022\350\001\n\003Get\0228.google.clo" - + "ud.compute.v1.GetRegionInstantSnapshotRe" - + "quest\032(.google.cloud.compute.v1.InstantS" - + "napshot\"}\332A\037project,region,instant_snaps" - + "hot\202\323\344\223\002U\022S/compute/v1/projects/{project" - + "}/regions/{region}/instantSnapshots/{ins" - + "tant_snapshot}\022\356\001\n\014GetIamPolicy\022A.google" - + ".cloud.compute.v1.GetIamPolicyRegionInst" - + "antSnapshotRequest\032\037.google.cloud.comput" - + "e.v1.Policy\"z\332A\027project,region,resource\202" - + "\323\344\223\002Z\022X/compute/v1/projects/{project}/re" - + "gions/{region}/instantSnapshots/{resourc" - + "e}/getIamPolicy\022\215\002\n\006Insert\022;.google.clou" - + "d.compute.v1.InsertRegionInstantSnapshot" - + "Request\032\".google.cloud.compute.v1.Operat" - + "ion\"\241\001\332A(project,region,instant_snapshot" - + "_resource\212N\020RegionOperations\202\323\344\223\002]\"@/com" - + "pute/v1/projects/{project}/regions/{regi" - + "on}/instantSnapshots:\031instant_snapshot_r" - + "esource\022\313\001\n\004List\022:.google.cloud.compute." - + "v1.ListRegionInstantSnapshotsRequest\032,.g" - + "oogle.cloud.compute.v1.InstantSnapshotLi" - + "st\"Y\332A\016project,region\202\323\344\223\002B\022@/compute/v1" + + "-platform2\307\n\n\024RegionInstanceGroups\022\336\001\n\003G" + + "et\0226.google.cloud.compute.v1.GetRegionIn" + + "stanceGroupRequest\032&.google.cloud.comput" + + "e.v1.InstanceGroup\"w\332A\035project,region,in" + + "stance_group\202\323\344\223\002Q\022O/compute/v1/projects" + + "/{project}/regions/{region}/instanceGrou" + + "ps/{instance_group}\022\313\001\n\004List\0228.google.cl" + + "oud.compute.v1.ListRegionInstanceGroupsR" + + "equest\0320.google.cloud.compute.v1.RegionI" + + "nstanceGroupList\"W\332A\016project,region\202\323\344\223\002" + + "@\022>/compute/v1/projects/{project}/region" + + "s/{region}/instanceGroups\022\206\003\n\rListInstan" + + "ces\022A.google.cloud.compute.v1.ListInstan" + + "cesRegionInstanceGroupsRequest\032:.google." + + "cloud.compute.v1.RegionInstanceGroupsLis" + + "tInstances\"\365\001\332ATproject,region,instance_" + + "group,region_instance_groups_list_instan" + + "ces_request_resource\202\323\344\223\002\227\001\"]/compute/v1" + "/projects/{project}/regions/{region}/ins" - + "tantSnapshots\022\266\002\n\014SetIamPolicy\022A.google." - + "cloud.compute.v1.SetIamPolicyRegionInsta" - + "ntSnapshotRequest\032\037.google.cloud.compute" - + ".v1.Policy\"\301\001\332A:project,region,resource," - + "region_set_policy_request_resource\202\323\344\223\002~" - + "\"X/compute/v1/projects/{project}/regions" - + "/{region}/instantSnapshots/{resource}/se" - + "tIamPolicy:\"region_set_policy_request_re" - + "source\022\303\002\n\tSetLabels\022>.google.cloud.comp" - + "ute.v1.SetLabelsRegionInstantSnapshotReq" + + "tanceGroups/{instance_group}/listInstanc" + + "es:6region_instance_groups_list_instance" + + "s_request_resource\022\202\003\n\rSetNamedPorts\022@.g" + + "oogle.cloud.compute.v1.SetNamedPortsRegi" + + "onInstanceGroupRequest\032\".google.cloud.co" + + "mpute.v1.Operation\"\212\002\332AUproject,region,i" + + "nstance_group,region_instance_groups_set" + + "_named_ports_request_resource\212N\020RegionOp" + + "erations\202\323\344\223\002\230\001\"]/compute/v1/projects/{p" + + "roject}/regions/{region}/instanceGroups/" + + "{instance_group}/setNamedPorts:7region_i" + + "nstance_groups_set_named_ports_request_r" + + "esource\032r\312A\026compute.googleapis.com\322AVhtt" + + "ps://www.googleapis.com/auth/compute,htt" + + "ps://www.googleapis.com/auth/cloud-platf" + + "orm2\346\010\n\027RegionInstanceTemplates\022\200\002\n\006Dele" + + "te\022<.google.cloud.compute.v1.DeleteRegio" + + "nInstanceTemplateRequest\032\".google.cloud." + + "compute.v1.Operation\"\223\001\332A project,region" + + ",instance_template\212N\020RegionOperations\202\323\344" + + "\223\002W*U/compute/v1/projects/{project}/regi" + + "ons/{region}/instanceTemplates/{instance" + + "_template}\022\356\001\n\003Get\0229.google.cloud.comput" + + "e.v1.GetRegionInstanceTemplateRequest\032)." + + "google.cloud.compute.v1.InstanceTemplate" + + "\"\200\001\332A project,region,instance_template\202\323" + + "\344\223\002W\022U/compute/v1/projects/{project}/reg" + + "ions/{region}/instanceTemplates/{instanc" + + "e_template}\022\221\002\n\006Insert\022<.google.cloud.co" + + "mpute.v1.InsertRegionInstanceTemplateReq" + "uest\032\".google.cloud.compute.v1.Operation" - + "\"\321\001\332A:project,region,resource,region_set" - + "_labels_request_resource\212N\020RegionOperati" - + "ons\202\323\344\223\002{\"U/compute/v1/projects/{project", - "}/regions/{region}/instantSnapshots/{res" - + "ource}/setLabels:\"region_set_labels_requ" - + "est_resource\022\330\002\n\022TestIamPermissions\022G.go" - + "ogle.cloud.compute.v1.TestIamPermissions" - + "RegionInstantSnapshotRequest\0320.google.cl" - + "oud.compute.v1.TestPermissionsResponse\"\306" - + "\001\332A9project,region,resource,test_permiss" - + "ions_request_resource\202\323\344\223\002\203\001\"^/compute/v" + + "\"\244\001\332A)project,region,instance_template_r" + + "esource\212N\020RegionOperations\202\323\344\223\002_\"A/compu" + + "te/v1/projects/{project}/regions/{region" + + "}/instanceTemplates:\032instance_template_r" + + "esource\022\316\001\n\004List\022;.google.cloud.compute." + + "v1.ListRegionInstanceTemplatesRequest\032-." + + "google.cloud.compute.v1.InstanceTemplate" + + "List\"Z\332A\016project,region\202\323\344\223\002C\022A/compute/" + + "v1/projects/{project}/regions/{region}/i" + + "nstanceTemplates\032r\312A\026compute.googleapis." + + "com\322AVhttps://www.googleapis.com/auth/co" + + "mpute,https://www.googleapis.com/auth/cl" + + "oud-platform2\264\003\n\017RegionInstances\022\254\002\n\nBul" + + "kInsert\0228.google.cloud.compute.v1.BulkIn" + + "sertRegionInstanceRequest\032\".google.cloud" + + ".compute.v1.Operation\"\277\001\332A5project,regio" + + "n,bulk_insert_instance_resource_resource" + + "\212N\020RegionOperations\202\323\344\223\002n\"D/compute/v1/p" + + "rojects/{project}/regions/{region}/insta" + + "nces/bulkInsert:&bulk_insert_instance_re" + + "source_resource\032r\312A\026compute.googleapis.c" + + "om\322AVhttps://www.googleapis.com/auth/com" + + "pute,https://www.googleapis.com/auth/clo" + + "ud-platform2\237\022\n\026RegionInstantSnapshots\022\374" + + "\001\n\006Delete\022;.google.cloud.compute.v1.Dele" + + "teRegionInstantSnapshotRequest\032\".google." + + "cloud.compute.v1.Operation\"\220\001\332A\037project," + + "region,instant_snapshot\212N\020RegionOperatio" + + "ns\202\323\344\223\002U*S/compute/v1/projects/{project}" + + "/regions/{region}/instantSnapshots/{inst" + + "ant_snapshot}\022\350\001\n\003Get\0228.google.cloud.com" + + "pute.v1.GetRegionInstantSnapshotRequest\032" + + "(.google.cloud.compute.v1.InstantSnapsho" + + "t\"}\332A\037project,region,instant_snapshot\202\323\344" + + "\223\002U\022S/compute/v1/projects/{project}/regi" + + "ons/{region}/instantSnapshots/{instant_s" + + "napshot}\022\356\001\n\014GetIamPolicy\022A.google.cloud", + ".compute.v1.GetIamPolicyRegionInstantSna" + + "pshotRequest\032\037.google.cloud.compute.v1.P" + + "olicy\"z\332A\027project,region,resource\202\323\344\223\002Z\022" + + "X/compute/v1/projects/{project}/regions/" + + "{region}/instantSnapshots/{resource}/get" + + "IamPolicy\022\215\002\n\006Insert\022;.google.cloud.comp" + + "ute.v1.InsertRegionInstantSnapshotReques" + + "t\032\".google.cloud.compute.v1.Operation\"\241\001" + + "\332A(project,region,instant_snapshot_resou" + + "rce\212N\020RegionOperations\202\323\344\223\002]\"@/compute/v" + "1/projects/{project}/regions/{region}/in" - + "stantSnapshots/{resource}/testIamPermiss" - + "ions:!test_permissions_request_resource\032" - + "r\312A\026compute.googleapis.com\322AVhttps://www" - + ".googleapis.com/auth/compute,https://www" - + ".googleapis.com/auth/cloud-platform2\244\023\n\033" - + "RegionNetworkEndpointGroups\022\315\003\n\026AttachNe" - + "tworkEndpoints\022P.google.cloud.compute.v1" - + ".AttachNetworkEndpointsRegionNetworkEndp" - + "ointGroupRequest\032\".google.cloud.compute." - + "v1.Operation\"\274\002\332Afproject,region,network" - + "_endpoint_group,region_network_endpoint_" - + "groups_attach_endpoints_request_resource" - + "\212N\020RegionOperations\202\323\344\223\002\271\001\"u/compute/v1/" + + "stantSnapshots:\031instant_snapshot_resourc" + + "e\022\313\001\n\004List\022:.google.cloud.compute.v1.Lis" + + "tRegionInstantSnapshotsRequest\032,.google." + + "cloud.compute.v1.InstantSnapshotList\"Y\332A" + + "\016project,region\202\323\344\223\002B\022@/compute/v1/proje" + + "cts/{project}/regions/{region}/instantSn" + + "apshots\022\266\002\n\014SetIamPolicy\022A.google.cloud." + + "compute.v1.SetIamPolicyRegionInstantSnap" + + "shotRequest\032\037.google.cloud.compute.v1.Po" + + "licy\"\301\001\332A:project,region,resource,region" + + "_set_policy_request_resource\202\323\344\223\002~\"X/com" + + "pute/v1/projects/{project}/regions/{regi" + + "on}/instantSnapshots/{resource}/setIamPo" + + "licy:\"region_set_policy_request_resource" + + "\022\303\002\n\tSetLabels\022>.google.cloud.compute.v1" + + ".SetLabelsRegionInstantSnapshotRequest\032\"" + + ".google.cloud.compute.v1.Operation\"\321\001\332A:" + + "project,region,resource,region_set_label" + + "s_request_resource\212N\020RegionOperations\202\323\344" + + "\223\002{\"U/compute/v1/projects/{project}/regi" + + "ons/{region}/instantSnapshots/{resource}" + + "/setLabels:\"region_set_labels_request_re" + + "source\022\330\002\n\022TestIamPermissions\022G.google.c" + + "loud.compute.v1.TestIamPermissionsRegion" + + "InstantSnapshotRequest\0320.google.cloud.co" + + "mpute.v1.TestPermissionsResponse\"\306\001\332A9pr" + + "oject,region,resource,test_permissions_r" + + "equest_resource\202\323\344\223\002\203\001\"^/compute/v1/proj" + + "ects/{project}/regions/{region}/instantS" + + "napshots/{resource}/testIamPermissions:!" + + "test_permissions_request_resource\032r\312A\026co" + + "mpute.googleapis.com\322AVhttps://www.googl" + + "eapis.com/auth/compute,https://www.googl" + + "eapis.com/auth/cloud-platform2\244\023\n\033Region" + + "NetworkEndpointGroups\022\315\003\n\026AttachNetworkE" + + "ndpoints\022P.google.cloud.compute.v1.Attac" + + "hNetworkEndpointsRegionNetworkEndpointGr" + + "oupRequest\032\".google.cloud.compute.v1.Ope" + + "ration\"\274\002\332Afproject,region,network_endpo" + + "int_group,region_network_endpoint_groups" + + "_attach_endpoints_request_resource\212N\020Reg" + + "ionOperations\202\323\344\223\002\271\001\"u/compute/v1/projec" + + "ts/{project}/regions/{region}/networkEnd" + + "pointGroups/{network_endpoint_group}/att" + + "achNetworkEndpoints:@region_network_endp" + + "oint_groups_attach_endpoints_request_res" + + "ource\022\222\002\n\006Delete\022@.google.cloud.compute." + + "v1.DeleteRegionNetworkEndpointGroupReque" + + "st\032\".google.cloud.compute.v1.Operation\"\241" + + "\001\332A%project,region,network_endpoint_grou" + + "p\212N\020RegionOperations\202\323\344\223\002`*^/compute/v1/" + "projects/{project}/regions/{region}/netw" + "orkEndpointGroups/{network_endpoint_grou" - + "p}/attachNetworkEndpoints:@region_networ" - + "k_endpoint_groups_attach_endpoints_reque" - + "st_resource\022\222\002\n\006Delete\022@.google.cloud.co" - + "mpute.v1.DeleteRegionNetworkEndpointGrou" - + "pRequest\032\".google.cloud.compute.v1.Opera" - + "tion\"\241\001\332A%project,region,network_endpoin" - + "t_group\212N\020RegionOperations\202\323\344\223\002`*^/compu" - + "te/v1/projects/{project}/regions/{region" - + "}/networkEndpointGroups/{network_endpoin" - + "t_group}\022\315\003\n\026DetachNetworkEndpoints\022P.go" - + "ogle.cloud.compute.v1.DetachNetworkEndpo" - + "intsRegionNetworkEndpointGroupRequest\032\"." - + "google.cloud.compute.v1.Operation\"\274\002\332Afp" - + "roject,region,network_endpoint_group,reg" - + "ion_network_endpoint_groups_detach_endpo" - + "ints_request_resource\212N\020RegionOperations" - + "\202\323\344\223\002\271\001\"u/compute/v1/projects/{project}/" - + "regions/{region}/networkEndpointGroups/{" - + "network_endpoint_group}/detachNetworkEnd" - + "points:@region_network_endpoint_groups_d" - + "etach_endpoints_request_resource\022\204\002\n\003Get" - + "\022=.google.cloud.compute.v1.GetRegionNetw" - + "orkEndpointGroupRequest\032-.google.cloud.c" - + "ompute.v1.NetworkEndpointGroup\"\216\001\332A%proj" - + "ect,region,network_endpoint_group\202\323\344\223\002`\022" - + "^/compute/v1/projects/{project}/regions/" - + "{region}/networkEndpointGroups/{network_" - + "endpoint_group}\022\243\002\n\006Insert\022@.google.clou" - + "d.compute.v1.InsertRegionNetworkEndpoint" - + "GroupRequest\032\".google.cloud.compute.v1.O" - + "peration\"\262\001\332A.project,region,network_end" - + "point_group_resource\212N\020RegionOperations\202" - + "\323\344\223\002h\"E/compute/v1/projects/{project}/re" - + "gions/{region}/networkEndpointGroups:\037ne" - + "twork_endpoint_group_resource\022\332\001\n\004List\022?" - + ".google.cloud.compute.v1.ListRegionNetwo" - + "rkEndpointGroupsRequest\0321.google.cloud.c" - + "ompute.v1.NetworkEndpointGroupList\"^\332A\016p" - + "roject,region\202\323\344\223\002G\022E/compute/v1/project" - + "s/{project}/regions/{region}/networkEndp" - + "ointGroups\022\321\002\n\024ListNetworkEndpoints\022O.go" - + "ogle.cloud.compute.v1.ListNetworkEndpoin" - + "tsRegionNetworkEndpointGroupsRequest\032B.g" - + "oogle.cloud.compute.v1.NetworkEndpointGr" - + "oupsListNetworkEndpoints\"\243\001\332A%project,re" - + "gion,network_endpoint_group\202\323\344\223\002u\"s/comp" + + "p}\022\315\003\n\026DetachNetworkEndpoints\022P.google.c" + + "loud.compute.v1.DetachNetworkEndpointsRe" + + "gionNetworkEndpointGroupRequest\032\".google" + + ".cloud.compute.v1.Operation\"\274\002\332Afproject" + + ",region,network_endpoint_group,region_ne" + + "twork_endpoint_groups_detach_endpoints_r" + + "equest_resource\212N\020RegionOperations\202\323\344\223\002\271" + + "\001\"u/compute/v1/projects/{project}/region" + + "s/{region}/networkEndpointGroups/{networ" + + "k_endpoint_group}/detachNetworkEndpoints" + + ":@region_network_endpoint_groups_detach_" + + "endpoints_request_resource\022\204\002\n\003Get\022=.goo" + + "gle.cloud.compute.v1.GetRegionNetworkEnd" + + "pointGroupRequest\032-.google.cloud.compute" + + ".v1.NetworkEndpointGroup\"\216\001\332A%project,re" + + "gion,network_endpoint_group\202\323\344\223\002`\022^/comp" + "ute/v1/projects/{project}/regions/{regio" + "n}/networkEndpointGroups/{network_endpoi" - + "nt_group}/listNetworkEndpoints\032r\312A\026compu" - + "te.googleapis.com\322AVhttps://www.googleap" - + "is.com/auth/compute,https://www.googleap" - + "is.com/auth/cloud-platform2\362\'\n\035RegionNet" - + "workFirewallPolicies\022\353\002\n\016AddAssociation\022" - + "I.google.cloud.compute.v1.AddAssociation" - + "RegionNetworkFirewallPolicyRequest\032\".goo" - + "gle.cloud.compute.v1.Operation\"\351\001\332ACproj" - + "ect,region,firewall_policy,firewall_poli" - + "cy_association_resource\212N\020RegionOperatio" - + "ns\202\323\344\223\002\211\001\"a/compute/v1/projects/{project" - + "}/regions/{region}/firewallPolicies/{fir" - + "ewall_policy}/addAssociation:$firewall_p" - + "olicy_association_resource\022\307\002\n\007AddRule\022B" - + ".google.cloud.compute.v1.AddRuleRegionNe" + + "nt_group}\022\243\002\n\006Insert\022@.google.cloud.comp" + + "ute.v1.InsertRegionNetworkEndpointGroupR" + + "equest\032\".google.cloud.compute.v1.Operati" + + "on\"\262\001\332A.project,region,network_endpoint_" + + "group_resource\212N\020RegionOperations\202\323\344\223\002h\"" + + "E/compute/v1/projects/{project}/regions/" + + "{region}/networkEndpointGroups:\037network_" + + "endpoint_group_resource\022\332\001\n\004List\022?.googl" + + "e.cloud.compute.v1.ListRegionNetworkEndp" + + "ointGroupsRequest\0321.google.cloud.compute" + + ".v1.NetworkEndpointGroupList\"^\332A\016project" + + ",region\202\323\344\223\002G\022E/compute/v1/projects/{pro" + + "ject}/regions/{region}/networkEndpointGr" + + "oups\022\321\002\n\024ListNetworkEndpoints\022O.google.c" + + "loud.compute.v1.ListNetworkEndpointsRegi" + + "onNetworkEndpointGroupsRequest\032B.google." + + "cloud.compute.v1.NetworkEndpointGroupsLi" + + "stNetworkEndpoints\"\243\001\332A%project,region,n" + + "etwork_endpoint_group\202\323\344\223\002u\"s/compute/v1" + + "/projects/{project}/regions/{region}/net" + + "workEndpointGroups/{network_endpoint_gro" + + "up}/listNetworkEndpoints\032r\312A\026compute.goo" + + "gleapis.com\322AVhttps://www.googleapis.com" + + "/auth/compute,https://www.googleapis.com" + + "/auth/cloud-platform2\362\'\n\035RegionNetworkFi" + + "rewallPolicies\022\353\002\n\016AddAssociation\022I.goog" + + "le.cloud.compute.v1.AddAssociationRegion" + + "NetworkFirewallPolicyRequest\032\".google.cl" + + "oud.compute.v1.Operation\"\351\001\332ACproject,re" + + "gion,firewall_policy,firewall_policy_ass" + + "ociation_resource\212N\020RegionOperations\202\323\344\223" + + "\002\211\001\"a/compute/v1/projects/{project}/regi" + + "ons/{region}/firewallPolicies/{firewall_" + + "policy}/addAssociation:$firewall_policy_" + + "association_resource\022\307\002\n\007AddRule\022B.googl" + + "e.cloud.compute.v1.AddRuleRegionNetworkF" + + "irewallPolicyRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\323\001\332A.google.cloud.compute.v" + + "1.GetRegionNetworkFirewallPolicyRequest\032" + + "\'.google.cloud.compute.v1.FirewallPolicy" + + "\"{\332A\036project,region,firewall_policy\202\323\344\223\002" + + "T\022R/compute/v1/projects/{project}/region" + + "s/{region}/firewallPolicies/{firewall_po" + + "licy}\022\234\002\n\016GetAssociation\022I.google.cloud." + + "compute.v1.GetAssociationRegionNetworkFi" + + "rewallPolicyRequest\0322.google.cloud.compu" + + "te.v1.FirewallPolicyAssociation\"\212\001\332A\036pro" + + "ject,region,firewall_policy\202\323\344\223\002c\022a/comp" + "ute/v1/projects/{project}/regions/{regio" - + "n}/firewallPolicies/{firewall_policy}/ad" - + "dRule:\035firewall_policy_rule_resource\022\223\002\n" - + "\nCloneRules\022E.google.cloud.compute.v1.Cl" - + "oneRulesRegionNetworkFirewallPolicyReque" - + "st\032\".google.cloud.compute.v1.Operation\"\231" - + "\001\332A\036project,region,firewall_policy\212N\020Reg" - + "ionOperations\202\323\344\223\002_\"]/compute/v1/project" - + "s/{project}/regions/{region}/firewallPol" - + "icies/{firewall_policy}/cloneRules\022\200\002\n\006D" - + "elete\022A.google.cloud.compute.v1.DeleteRe" - + "gionNetworkFirewallPolicyRequest\032\".googl" - + "e.cloud.compute.v1.Operation\"\216\001\332A\036projec" - + "t,region,firewall_policy\212N\020RegionOperati" - + "ons\202\323\344\223\002T*R/compute/v1/projects/{project" - + "}/regions/{region}/firewallPolicies/{fir" - + "ewall_policy}\022\353\001\n\003Get\022>.google.cloud.com" - + "pute.v1.GetRegionNetworkFirewallPolicyRe" - + "quest\032\'.google.cloud.compute.v1.Firewall" - + "Policy\"{\332A\036project,region,firewall_polic" - + "y\202\323\344\223\002T\022R/compute/v1/projects/{project}/" - + "regions/{region}/firewallPolicies/{firew" - + "all_policy}\022\234\002\n\016GetAssociation\022I.google." - + "cloud.compute.v1.GetAssociationRegionNet" - + "workFirewallPolicyRequest\0322.google.cloud" - + ".compute.v1.FirewallPolicyAssociation\"\212\001" - + "\332A\036project,region,firewall_policy\202\323\344\223\002c\022" - + "a/compute/v1/projects/{project}/regions/" - + "{region}/firewallPolicies/{firewall_poli" - + "cy}/getAssociation\022\267\002\n\025GetEffectiveFirew" - + "alls\022P.google.cloud.compute.v1.GetEffect" - + "iveFirewallsRegionNetworkFirewallPolicyR" - + "equest\032S.google.cloud.compute.v1.RegionN" - + "etworkFirewallPoliciesGetEffectiveFirewa" - + "llsResponse\"w\332A\026project,region,network\202\323" - + "\344\223\002X\022V/compute/v1/projects/{project}/reg" - + "ions/{region}/firewallPolicies/getEffect" - + "iveFirewalls\022\364\001\n\014GetIamPolicy\022G.google.c" - + "loud.compute.v1.GetIamPolicyRegionNetwor" - + "kFirewallPolicyRequest\032\037.google.cloud.co" - + "mpute.v1.Policy\"z\332A\027project,region,resou" - + "rce\202\323\344\223\002Z\022X/compute/v1/projects/{project" - + "}/regions/{region}/firewallPolicies/{res" - + "ource}/getIamPolicy\022\200\002\n\007GetRule\022B.google" - + ".cloud.compute.v1.GetRuleRegionNetworkFi" - + "rewallPolicyRequest\032+.google.cloud.compu" - + "te.v1.FirewallPolicyRule\"\203\001\332A\036project,re" - + "gion,firewall_policy\202\323\344\223\002\\\022Z/compute/v1/" - + "projects/{project}/regions/{region}/fire" - + "wallPolicies/{firewall_policy}/getRule\022\221" - + "\002\n\006Insert\022A.google.cloud.compute.v1.Inse" - + "rtRegionNetworkFirewallPolicyRequest\032\".g" - + "oogle.cloud.compute.v1.Operation\"\237\001\332A\'pr" - + "oject,region,firewall_policy_resource\212N\020" - + "RegionOperations\202\323\344\223\002\\\"@/compute/v1/proj" - + "ects/{project}/regions/{region}/firewall" - + "Policies:\030firewall_policy_resource\022\321\001\n\004L" - + "ist\022A.google.cloud.compute.v1.ListRegion" - + "NetworkFirewallPoliciesRequest\032+.google." - + "cloud.compute.v1.FirewallPolicyList\"Y\332A\016" - + "project,region\202\323\344\223\002B\022@/compute/v1/projec" + + "n}/firewallPolicies/{firewall_policy}/ge" + + "tAssociation\022\267\002\n\025GetEffectiveFirewalls\022P" + + ".google.cloud.compute.v1.GetEffectiveFir" + + "ewallsRegionNetworkFirewallPolicyRequest" + + "\032S.google.cloud.compute.v1.RegionNetwork" + + "FirewallPoliciesGetEffectiveFirewallsRes" + + "ponse\"w\332A\026project,region,network\202\323\344\223\002X\022V" + + "/compute/v1/projects/{project}/regions/{" + + "region}/firewallPolicies/getEffectiveFir" + + "ewalls\022\364\001\n\014GetIamPolicy\022G.google.cloud.c" + + "ompute.v1.GetIamPolicyRegionNetworkFirew" + + "allPolicyRequest\032\037.google.cloud.compute." + + "v1.Policy\"z\332A\027project,region,resource\202\323\344" + + "\223\002Z\022X/compute/v1/projects/{project}/regi" + + "ons/{region}/firewallPolicies/{resource}" + + "/getIamPolicy\022\200\002\n\007GetRule\022B.google.cloud" + + ".compute.v1.GetRuleRegionNetworkFirewall" + + "PolicyRequest\032+.google.cloud.compute.v1." + + "FirewallPolicyRule\"\203\001\332A\036project,region,f" + + "irewall_policy\202\323\344\223\002\\\022Z/compute/v1/projec" + "ts/{project}/regions/{region}/firewallPo" - + "licies\022\261\002\n\005Patch\022@.google.cloud.compute." - + "v1.PatchRegionNetworkFirewallPolicyReque" - + "st\032\".google.cloud.compute.v1.Operation\"\301" - + "\001\332A7project,region,firewall_policy,firew" - + "all_policy_resource\212N\020RegionOperations\202\323" - + "\344\223\002n2R/compute/v1/projects/{project}/reg" - + "ions/{region}/firewallPolicies/{firewall" - + "_policy}:\030firewall_policy_resource\022\315\002\n\tP" - + "atchRule\022D.google.cloud.compute.v1.Patch" - + "RuleRegionNetworkFirewallPolicyRequest\032\"" - + ".google.cloud.compute.v1.Operation\"\325\001\332A<" - + "project,region,firewall_policy,firewall_" - + "policy_rule_resource\212N\020RegionOperations\202" - + "\323\344\223\002}\"\\/compute/v1/projects/{project}/re" - + "gions/{region}/firewallPolicies/{firewal" - + "l_policy}/patchRule:\035firewall_policy_rul" - + "e_resource\022\250\002\n\021RemoveAssociation\022L.googl" - + "e.cloud.compute.v1.RemoveAssociationRegi" + + "licies/{firewall_policy}/getRule\022\221\002\n\006Ins" + + "ert\022A.google.cloud.compute.v1.InsertRegi" + "onNetworkFirewallPolicyRequest\032\".google." - + "cloud.compute.v1.Operation\"\240\001\332A\036project," - + "region,firewall_policy\212N\020RegionOperation" - + "s\202\323\344\223\002f\"d/compute/v1/projects/{project}/" - + "regions/{region}/firewallPolicies/{firew" - + "all_policy}/removeAssociation\022\223\002\n\nRemove" - + "Rule\022E.google.cloud.compute.v1.RemoveRul" - + "eRegionNetworkFirewallPolicyRequest\032\".go" - + "ogle.cloud.compute.v1.Operation\"\231\001\332A\036pro" - + "ject,region,firewall_policy\212N\020RegionOper" - + "ations\202\323\344\223\002_\"]/compute/v1/projects/{proj" - + "ect}/regions/{region}/firewallPolicies/{" - + "firewall_policy}/removeRule\022\274\002\n\014SetIamPo" - + "licy\022G.google.cloud.compute.v1.SetIamPol" - + "icyRegionNetworkFirewallPolicyRequest\032\037." - + "google.cloud.compute.v1.Policy\"\301\001\332A:proj" - + "ect,region,resource,region_set_policy_re" - + "quest_resource\202\323\344\223\002~\"X/compute/v1/projec" - + "ts/{project}/regions/{region}/firewallPo" - + "licies/{resource}/setIamPolicy:\"region_s" - + "et_policy_request_resource\022\336\002\n\022TestIamPe" - + "rmissions\022M.google.cloud.compute.v1.Test" - + "IamPermissionsRegionNetworkFirewallPolic" - + "yRequest\0320.google.cloud.compute.v1.TestP" - + "ermissionsResponse\"\306\001\332A9project,region,r" - + "esource,test_permissions_request_resourc" - + "e\202\323\344\223\002\203\001\"^/compute/v1/projects/{project}" - + "/regions/{region}/firewallPolicies/{reso" - + "urce}/testIamPermissions:!test_permissio" - + "ns_request_resource\032r\312A\026compute.googleap" - + "is.com\322AVhttps://www.googleapis.com/auth" - + "/compute,https://www.googleapis.com/auth" - + "/cloud-platform2\252\t\n\033RegionNotificationEn" - + "dpoints\022\220\002\n\006Delete\022@.google.cloud.comput" - + "e.v1.DeleteRegionNotificationEndpointReq" + + "cloud.compute.v1.Operation\"\237\001\332A\'project," + + "region,firewall_policy_resource\212N\020Region" + + "Operations\202\323\344\223\002\\\"@/compute/v1/projects/{" + + "project}/regions/{region}/firewallPolici" + + "es:\030firewall_policy_resource\022\321\001\n\004List\022A." + + "google.cloud.compute.v1.ListRegionNetwor" + + "kFirewallPoliciesRequest\032+.google.cloud." + + "compute.v1.FirewallPolicyList\"Y\332A\016projec" + + "t,region\202\323\344\223\002B\022@/compute/v1/projects/{pr" + + "oject}/regions/{region}/firewallPolicies" + + "\022\261\002\n\005Patch\022@.google.cloud.compute.v1.Pat" + + "chRegionNetworkFirewallPolicyRequest\032\".g" + + "oogle.cloud.compute.v1.Operation\"\301\001\332A7pr" + + "oject,region,firewall_policy,firewall_po" + + "licy_resource\212N\020RegionOperations\202\323\344\223\002n2R" + + "/compute/v1/projects/{project}/regions/{" + + "region}/firewallPolicies/{firewall_polic" + + "y}:\030firewall_policy_resource\022\315\002\n\tPatchRu" + + "le\022D.google.cloud.compute.v1.PatchRuleRe" + + "gionNetworkFirewallPolicyRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"\325\001\332A.google.cloud.comp" + + "ute.v1.RemoveRuleRegionSecurityPolicyReq" + + "uest\032\".google.cloud.compute.v1.Operation" + + "\"\231\001\332A\036project,region,security_policy\212N\020R" + + "egionOperations\202\323\344\223\002_\"]/compute/v1/proje" + + "cts/{project}/regions/{region}/securityP" + + "olicies/{security_policy}/removeRule\022\302\002\n" + + "\tSetLabels\022=.google.cloud.compute.v1.Set" + + "LabelsRegionSecurityPolicyRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"\321\001\332A:proje" + + "ct,region,resource,region_set_labels_req" + + "uest_resource\212N\020RegionOperations\202\323\344\223\002{\"U" + + "/compute/v1/projects/{project}/regions/{" + + "region}/securityPolicies/{resource}/setL" + + "abels:\"region_set_labels_request_resourc" + + "e\032r\312A\026compute.googleapis.com\322AVhttps://w" + + "ww.googleapis.com/auth/compute,https://w" + + "ww.googleapis.com/auth/cloud-platform2\303\010" + + "\n\025RegionSslCertificates\022\370\001\n\006Delete\022:.goo" + + "gle.cloud.compute.v1.DeleteRegionSslCert" + + "ificateRequest\032\".google.cloud.compute.v1" + + ".Operation\"\215\001\332A\036project,region,ssl_certi" + + "ficate\212N\020RegionOperations\202\323\344\223\002S*Q/comput" + + "e/v1/projects/{project}/regions/{region}" + + "/sslCertificates/{ssl_certificate}\022\343\001\n\003G" + + "et\0227.google.cloud.compute.v1.GetRegionSs" + + "lCertificateRequest\032\'.google.cloud.compu" + + "te.v1.SslCertificate\"z\332A\036project,region," + + "ssl_certificate\202\323\344\223\002S\022Q/compute/v1/proje" + + "cts/{project}/regions/{region}/sslCertif" + + "icates/{ssl_certificate}\022\211\002\n\006Insert\022:.go" + + "ogle.cloud.compute.v1.InsertRegionSslCer" + + "tificateRequest\032\".google.cloud.compute.v" + + "1.Operation\"\236\001\332A\'project,region,ssl_cert" + + "ificate_resource\212N\020RegionOperations\202\323\344\223\002" + + "[\"?/compute/v1/projects/{project}/region" + + "s/{region}/sslCertificates:\030ssl_certific" + + "ate_resource\022\310\001\n\004List\0229.google.cloud.com" + + "pute.v1.ListRegionSslCertificatesRequest" + + "\032+.google.cloud.compute.v1.SslCertificat" + + "eList\"X\332A\016project,region\202\323\344\223\002A\022?/compute" + + "/v1/projects/{project}/regions/{region}/" + + "sslCertificates\032r\312A\026compute.googleapis.c" + + "om\322AVhttps://www.googleapis.com/auth/com" + + "pute,https://www.googleapis.com/auth/clo" + + "ud-platform2\225\014\n\021RegionSslPolicies\022\344\001\n\006De" + "lete\0225.google.cloud.compute.v1.DeleteReg" - + "ionOperationRequest\0326.google.cloud.compu" - + "te.v1.DeleteRegionOperationResponse\"i\332A\030" - + "project,region,operation\202\323\344\223\002H*F/compute" + + "ionSslPolicyRequest\032\".google.cloud.compu" + + "te.v1.Operation\"\177\332A\031project,region,ssl_p" + + "olicy\212N\020RegionOperations\202\323\344\223\002J*H/compute" + "/v1/projects/{project}/regions/{region}/" - + "operations/{operation}\022\313\001\n\003Get\0222.google." - + "cloud.compute.v1.GetRegionOperationReque" - + "st\032\".google.cloud.compute.v1.Operation\"l" - + "\332A\030project,region,operation\220N\001\202\323\344\223\002H\022F/c" - + "ompute/v1/projects/{project}/regions/{re" - + "gion}/operations/{operation}\022\271\001\n\004List\0224." - + "google.cloud.compute.v1.ListRegionOperat" - + "ionsRequest\032&.google.cloud.compute.v1.Op" - + "erationList\"S\332A\016project,region\202\323\344\223\002<\022:/c" + + "sslPolicies/{ssl_policy}\022\313\001\n\003Get\0222.googl" + + "e.cloud.compute.v1.GetRegionSslPolicyReq" + + "uest\032\".google.cloud.compute.v1.SslPolicy" + + "\"l\332A\031project,region,ssl_policy\202\323\344\223\002J\022H/c" + "ompute/v1/projects/{project}/regions/{re" - + "gion}/operations\022\317\001\n\004Wait\0223.google.cloud" - + ".compute.v1.WaitRegionOperationRequest\032\"" - + ".google.cloud.compute.v1.Operation\"n\332A\030p" - + "roject,region,operation\202\323\344\223\002M\"K/compute/" - + "v1/projects/{project}/regions/{region}/o" - + "perations/{operation}/wait\032r\312A\026compute.g" - + "oogleapis.com\322AVhttps://www.googleapis.c" - + "om/auth/compute,https://www.googleapis.c" - + "om/auth/cloud-platform2\322\026\n\026RegionSecurit" - + "yPolicies\022\300\002\n\007AddRule\022;.google.cloud.com" - + "pute.v1.AddRuleRegionSecurityPolicyReque" - + "st\032\".google.cloud.compute.v1.Operation\"\323" - + "\001\332A.google.clou" - + "d.compute.v1.RemoveRuleRegionSecurityPol" - + "icyRequest\032\".google.cloud.compute.v1.Ope" - + "ration\"\231\001\332A\036project,region,security_poli" - + "cy\212N\020RegionOperations\202\323\344\223\002_\"]/compute/v1" - + "/projects/{project}/regions/{region}/sec" - + "urityPolicies/{security_policy}/removeRu" - + "le\022\302\002\n\tSetLabels\022=.google.cloud.compute." - + "v1.SetLabelsRegionSecurityPolicyRequest\032" - + "\".google.cloud.compute.v1.Operation\"\321\001\332A" - + ":project,region,resource,region_set_labe" - + "ls_request_resource\212N\020RegionOperations\202\323" - + "\344\223\002{\"U/compute/v1/projects/{project}/reg" - + "ions/{region}/securityPolicies/{resource" - + "}/setLabels:\"region_set_labels_request_r" - + "esource\032r\312A\026compute.googleapis.com\322AVhtt" - + "ps://www.googleapis.com/auth/compute,htt" - + "ps://www.googleapis.com/auth/cloud-platf" - + "orm2\303\010\n\025RegionSslCertificates\022\370\001\n\006Delete" - + "\022:.google.cloud.compute.v1.DeleteRegionS" - + "slCertificateRequest\032\".google.cloud.comp" - + "ute.v1.Operation\"\215\001\332A\036project,region,ssl" - + "_certificate\212N\020RegionOperations\202\323\344\223\002S*Q/" + + "gion}/sslPolicies/{ssl_policy}\022\366\001\n\006Inser", + "t\0225.google.cloud.compute.v1.InsertRegion" + + "SslPolicyRequest\032\".google.cloud.compute." + + "v1.Operation\"\220\001\332A\"project,region,ssl_pol" + + "icy_resource\212N\020RegionOperations\202\323\344\223\002R\";/" + "compute/v1/projects/{project}/regions/{r" - + "egion}/sslCertificates/{ssl_certificate}" - + "\022\343\001\n\003Get\0227.google.cloud.compute.v1.GetRe" - + "gionSslCertificateRequest\032\'.google.cloud" - + ".compute.v1.SslCertificate\"z\332A\036project,r" - + "egion,ssl_certificate\202\323\344\223\002S\022Q/compute/v1" - + "/projects/{project}/regions/{region}/ssl" - + "Certificates/{ssl_certificate}\022\211\002\n\006Inser" - + "t\022:.google.cloud.compute.v1.InsertRegion" - + "SslCertificateRequest\032\".google.cloud.com" - + "pute.v1.Operation\"\236\001\332A\'project,region,ss" - + "l_certificate_resource\212N\020RegionOperation" - + "s\202\323\344\223\002[\"?/compute/v1/projects/{project}/" - + "regions/{region}/sslCertificates:\030ssl_ce" - + "rtificate_resource\022\310\001\n\004List\0229.google.clo" - + "ud.compute.v1.ListRegionSslCertificatesR" - + "equest\032+.google.cloud.compute.v1.SslCert" - + "ificateList\"X\332A\016project,region\202\323\344\223\002A\022?/c" - + "ompute/v1/projects/{project}/regions/{re" - + "gion}/sslCertificates\032r\312A\026compute.google" - + "apis.com\322AVhttps://www.googleapis.com/au" - + "th/compute,https://www.googleapis.com/au" - + "th/cloud-platform2\225\014\n\021RegionSslPolicies\022" - + "\344\001\n\006Delete\0225.google.cloud.compute.v1.Del" - + "eteRegionSslPolicyRequest\032\".google.cloud" - + ".compute.v1.Operation\"\177\332A\031project,region" - + ",ssl_policy\212N\020RegionOperations\202\323\344\223\002J*H/c" + + "egion}/sslPolicies:\023ssl_policy_resource\022" + + "\275\001\n\004List\0225.google.cloud.compute.v1.ListR" + + "egionSslPoliciesRequest\032(.google.cloud.c" + + "ompute.v1.SslPoliciesList\"T\332A\016project,re" + + "gion\202\323\344\223\002=\022;/compute/v1/projects/{projec" + + "t}/regions/{region}/sslPolicies\022\216\002\n\025List" + + "AvailableFeatures\022F.google.cloud.compute" + + ".v1.ListAvailableFeaturesRegionSslPolici" + + "esRequest\032A.google.cloud.compute.v1.SslP" + + "oliciesListAvailableFeaturesResponse\"j\332A" + + "\016project,region\202\323\344\223\002S\022Q/compute/v1/proje" + + "cts/{project}/regions/{region}/sslPolici" + + "es/listAvailableFeatures\022\214\002\n\005Patch\0224.goo" + + "gle.cloud.compute.v1.PatchRegionSslPolic" + + "yRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"\250\001\332A-project,region,ssl_policy,ssl_" + + "policy_resource\212N\020RegionOperations\202\323\344\223\002_" + + "2H/compute/v1/projects/{project}/regions" + + "/{region}/sslPolicies/{ssl_policy}:\023ssl_" + + "policy_resource\032r\312A\026compute.googleapis.c" + + "om\322AVhttps://www.googleapis.com/auth/com" + + "pute,https://www.googleapis.com/auth/clo" + + "ud-platform2\252\013\n\027RegionTargetHttpProxies\022" + + "\377\001\n\006Delete\022;.google.cloud.compute.v1.Del" + + "eteRegionTargetHttpProxyRequest\032\".google" + + ".cloud.compute.v1.Operation\"\223\001\332A project" + + ",region,target_http_proxy\212N\020RegionOperat" + + "ions\202\323\344\223\002W*U/compute/v1/projects/{projec" + + "t}/regions/{region}/targetHttpProxies/{t" + + "arget_http_proxy}\022\354\001\n\003Get\0228.google.cloud" + + ".compute.v1.GetRegionTargetHttpProxyRequ" + + "est\032(.google.cloud.compute.v1.TargetHttp" + + "Proxy\"\200\001\332A project,region,target_http_pr" + + "oxy\202\323\344\223\002W\022U/compute/v1/projects/{project" + + "}/regions/{region}/targetHttpProxies/{ta" + + "rget_http_proxy}\022\220\002\n\006Insert\022;.google.clo" + + "ud.compute.v1.InsertRegionTargetHttpProx" + + "yRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"\244\001\332A)project,region,target_http_pro" + + "xy_resource\212N\020RegionOperations\202\323\344\223\002_\"A/c" + "ompute/v1/projects/{project}/regions/{re" - + "gion}/sslPolicies/{ssl_policy}\022\313\001\n\003Get\0222" - + ".google.cloud.compute.v1.GetRegionSslPol" - + "icyRequest\032\".google.cloud.compute.v1.Ssl" - + "Policy\"l\332A\031project,region,ssl_policy\202\323\344\223" - + "\002J\022H/compute/v1/projects/{project}/regio" - + "ns/{region}/sslPolicies/{ssl_policy}\022\366\001\n" - + "\006Insert\0225.google.cloud.compute.v1.Insert" - + "RegionSslPolicyRequest\032\".google.cloud.co" - + "mpute.v1.Operation\"\220\001\332A\"project,region,s" - + "sl_policy_resource\212N\020RegionOperations\202\323\344" - + "\223\002R\";/compute/v1/projects/{project}/regi" - + "ons/{region}/sslPolicies:\023ssl_policy_res" - + "ource\022\275\001\n\004List\0225.google.cloud.compute.v1" - + ".ListRegionSslPoliciesRequest\032(.google.c" - + "loud.compute.v1.SslPoliciesList\"T\332A\016proj" - + "ect,region\202\323\344\223\002=\022;/compute/v1/projects/{" - + "project}/regions/{region}/sslPolicies\022\216\002" - + "\n\025ListAvailableFeatures\022F.google.cloud.c" - + "ompute.v1.ListAvailableFeaturesRegionSsl" - + "PoliciesRequest\032A.google.cloud.compute.v" - + "1.SslPoliciesListAvailableFeaturesRespon" - + "se\"j\332A\016project,region\202\323\344\223\002S\022Q/compute/v1" - + "/projects/{project}/regions/{region}/ssl" - + "Policies/listAvailableFeatures\022\214\002\n\005Patch" - + "\0224.google.cloud.compute.v1.PatchRegionSs" - + "lPolicyRequest\032\".google.cloud.compute.v1" - + ".Operation\"\250\001\332A-project,region,ssl_polic" - + "y,ssl_policy_resource\212N\020RegionOperations" - + "\202\323\344\223\002_2H/compute/v1/projects/{project}/r" - + "egions/{region}/sslPolicies/{ssl_policy}" - + ":\023ssl_policy_resource\032r\312A\026compute.google" - + "apis.com\322AVhttps://www.googleapis.com/au" - + "th/compute,https://www.googleapis.com/au" - + "th/cloud-platform2\252\013\n\027RegionTargetHttpPr" - + "oxies\022\377\001\n\006Delete\022;.google.cloud.compute." - + "v1.DeleteRegionTargetHttpProxyRequest\032\"." - + "google.cloud.compute.v1.Operation\"\223\001\332A p", - "roject,region,target_http_proxy\212N\020Region" - + "Operations\202\323\344\223\002W*U/compute/v1/projects/{" - + "project}/regions/{region}/targetHttpProx" - + "ies/{target_http_proxy}\022\354\001\n\003Get\0228.google" - + ".cloud.compute.v1.GetRegionTargetHttpPro" - + "xyRequest\032(.google.cloud.compute.v1.Targ" - + "etHttpProxy\"\200\001\332A project,region,target_h" - + "ttp_proxy\202\323\344\223\002W\022U/compute/v1/projects/{p" - + "roject}/regions/{region}/targetHttpProxi" - + "es/{target_http_proxy}\022\220\002\n\006Insert\022;.goog" - + "le.cloud.compute.v1.InsertRegionTargetHt" - + "tpProxyRequest\032\".google.cloud.compute.v1" - + ".Operation\"\244\001\332A)project,region,target_ht" - + "tp_proxy_resource\212N\020RegionOperations\202\323\344\223" - + "\002_\"A/compute/v1/projects/{project}/regio" - + "ns/{region}/targetHttpProxies:\032target_ht" - + "tp_proxy_resource\022\315\001\n\004List\022;.google.clou" - + "d.compute.v1.ListRegionTargetHttpProxies" - + "Request\032,.google.cloud.compute.v1.Target" - + "HttpProxyList\"Z\332A\016project,region\202\323\344\223\002C\022A" - + "/compute/v1/projects/{project}/regions/{" - + "region}/targetHttpProxies\022\306\002\n\tSetUrlMap\022" - + ">.google.cloud.compute.v1.SetUrlMapRegio" - + "nTargetHttpProxyRequest\032\".google.cloud.c" - + "ompute.v1.Operation\"\324\001\332A;project,region," - + "target_http_proxy,url_map_reference_reso" - + "urce\212N\020RegionOperations\202\323\344\223\002}\"_/compute/" - + "v1/projects/{project}/regions/{region}/t" - + "argetHttpProxies/{target_http_proxy}/set" - + "UrlMap:\032url_map_reference_resource\032r\312A\026c" - + "ompute.googleapis.com\322AVhttps://www.goog" - + "leapis.com/auth/compute,https://www.goog" - + "leapis.com/auth/cloud-platform2\263\021\n\030Regio" - + "nTargetHttpsProxies\022\203\002\n\006Delete\022<.google." - + "cloud.compute.v1.DeleteRegionTargetHttps" - + "ProxyRequest\032\".google.cloud.compute.v1.O" - + "peration\"\226\001\332A!project,region,target_http" - + "s_proxy\212N\020RegionOperations\202\323\344\223\002Y*W/compu" + + "gion}/targetHttpProxies:\032target_http_pro" + + "xy_resource\022\315\001\n\004List\022;.google.cloud.comp" + + "ute.v1.ListRegionTargetHttpProxiesReques" + + "t\032,.google.cloud.compute.v1.TargetHttpPr" + + "oxyList\"Z\332A\016project,region\202\323\344\223\002C\022A/compu" + "te/v1/projects/{project}/regions/{region" - + "}/targetHttpsProxies/{target_https_proxy" - + "}\022\361\001\n\003Get\0229.google.cloud.compute.v1.GetR" - + "egionTargetHttpsProxyRequest\032).google.cl" - + "oud.compute.v1.TargetHttpsProxy\"\203\001\332A!pro" - + "ject,region,target_https_proxy\202\323\344\223\002Y\022W/c" - + "ompute/v1/projects/{project}/regions/{re" - + "gion}/targetHttpsProxies/{target_https_p" - + "roxy}\022\224\002\n\006Insert\022<.google.cloud.compute." - + "v1.InsertRegionTargetHttpsProxyRequest\032\"" - + ".google.cloud.compute.v1.Operation\"\247\001\332A*" - + "project,region,target_https_proxy_resour" - + "ce\212N\020RegionOperations\202\323\344\223\002a\"B/compute/v1" - + "/projects/{project}/regions/{region}/tar" - + "getHttpsProxies:\033target_https_proxy_reso" - + "urce\022\320\001\n\004List\022<.google.cloud.compute.v1." - + "ListRegionTargetHttpsProxiesRequest\032-.go" - + "ogle.cloud.compute.v1.TargetHttpsProxyLi" - + "st\"[\332A\016project,region\202\323\344\223\002D\022B/compute/v1" - + "/projects/{project}/regions/{region}/tar" - + "getHttpsProxies\022\272\002\n\005Patch\022;.google.cloud" - + ".compute.v1.PatchRegionTargetHttpsProxyR" + + "}/targetHttpProxies\022\306\002\n\tSetUrlMap\022>.goog" + + "le.cloud.compute.v1.SetUrlMapRegionTarge" + + "tHttpProxyRequest\032\".google.cloud.compute" + + ".v1.Operation\"\324\001\332A;project,region,target" + + "_http_proxy,url_map_reference_resource\212N" + + "\020RegionOperations\202\323\344\223\002}\"_/compute/v1/pro" + + "jects/{project}/regions/{region}/targetH" + + "ttpProxies/{target_http_proxy}/setUrlMap" + + ":\032url_map_reference_resource\032r\312A\026compute" + + ".googleapis.com\322AVhttps://www.googleapis" + + ".com/auth/compute,https://www.googleapis" + + ".com/auth/cloud-platform2\263\021\n\030RegionTarge" + + "tHttpsProxies\022\203\002\n\006Delete\022<.google.cloud." + + "compute.v1.DeleteRegionTargetHttpsProxyR" + "equest\032\".google.cloud.compute.v1.Operati" - + "on\"\317\001\332A=project,region,target_https_prox" - + "y,target_https_proxy_resource\212N\020RegionOp" - + "erations\202\323\344\223\002v2W/compute/v1/projects/{pr" - + "oject}/regions/{region}/targetHttpsProxi" - + "es/{target_https_proxy}:\033target_https_pr" - + "oxy_resource\022\264\003\n\022SetSslCertificates\022H.go" - + "ogle.cloud.compute.v1.SetSslCertificates" - + "RegionTargetHttpsProxyRequest\032\".google.c" - + "loud.compute.v1.Operation\"\257\002\332Acproject,r" - + "egion,target_https_proxy,region_target_h" - + "ttps_proxies_set_ssl_certificates_reques" - + "t_resource\212N\020RegionOperations\202\323\344\223\002\257\001\"j/c" - + "ompute/v1/projects/{project}/regions/{re" - + "gion}/targetHttpsProxies/{target_https_p" - + "roxy}/setSslCertificates:Aregion_target_" - + "https_proxies_set_ssl_certificates_reque" - + "st_resource\022\312\002\n\tSetUrlMap\022?.google.cloud" - + ".compute.v1.SetUrlMapRegionTargetHttpsPr" - + "oxyRequest\032\".google.cloud.compute.v1.Ope" - + "ration\"\327\001\332A.go" + + "ogle.cloud.compute.v1.AggregatedListReso" + + "urcePoliciesRequest\0325.google.cloud.compu" + + "te.v1.ResourcePolicyAggregatedList\"L\332A\007p" + + "roject\202\323\344\223\002<\022:/compute/v1/projects/{proj" + + "ect}/aggregated/resourcePolicies\022\363\001\n\006Del" + + "ete\0224.google.cloud.compute.v1.DeleteReso" + + "urcePolicyRequest\032\".google.cloud.compute" + + ".v1.Operation\"\216\001\332A\036project,region,resour" + + "ce_policy\212N\020RegionOperations\202\323\344\223\002T*R/com" + + "pute/v1/projects/{project}/regions/{regi" + + "on}/resourcePolicies/{resource_policy}\022\336" + + "\001\n\003Get\0221.google.cloud.compute.v1.GetReso" + + "urcePolicyRequest\032\'.google.cloud.compute" + + ".v1.ResourcePolicy\"{\332A\036project,region,re" + + "source_policy\202\323\344\223\002T\022R/compute/v1/project" + + "s/{project}/regions/{region}/resourcePol" + + "icies/{resource_policy}\022\347\001\n\014GetIamPolicy" + + "\022:.google.cloud.compute.v1.GetIamPolicyR" + + "esourcePolicyRequest\032\037.google.cloud.comp" + + "ute.v1.Policy\"z\332A\027project,region,resourc" + + "e\202\323\344\223\002Z\022X/compute/v1/projects/{project}/" + + "regions/{region}/resourcePolicies/{resou" + + "rce}/getIamPolicy\022\204\002\n\006Insert\0224.google.cl" + + "oud.compute.v1.InsertResourcePolicyReque" + + "st\032\".google.cloud.compute.v1.Operation\"\237" + + "\001\332A\'project,region,resource_policy_resou" + + "rce\212N\020RegionOperations\202\323\344\223\002\\\"@/compute/v" + + "1/projects/{project}/regions/{region}/re" + + "sourcePolicies:\030resource_policy_resource" + + "\022\304\001\n\004List\0224.google.cloud.compute.v1.List" + + "ResourcePoliciesRequest\032+.google.cloud.c" + + "ompute.v1.ResourcePolicyList\"Y\332A\016project" + + ",region\202\323\344\223\002B\022@/compute/v1/projects/{pro" + + "ject}/regions/{region}/resourcePolicies\022" + + "\244\002\n\005Patch\0223.google.cloud.compute.v1.Patc" + + "hResourcePolicyRequest\032\".google.cloud.co" + + "mpute.v1.Operation\"\301\001\332A7project,region,r" + + "esource_policy,resource_policy_resource\212" + + "N\020RegionOperations\202\323\344\223\002n2R/compute/v1/pr" + + "ojects/{project}/regions/{region}/resour" + + "cePolicies/{resource_policy}:\030resource_p" + + "olicy_resource\022\257\002\n\014SetIamPolicy\022:.google" + + ".cloud.compute.v1.SetIamPolicyResourcePo" + + "licyRequest\032\037.google.cloud.compute.v1.Po" + + "licy\"\301\001\332A:project,region,resource,region" + + "_set_policy_request_resource\202\323\344\223\002~\"X/com" + + "pute/v1/projects/{project}/regions/{regi" + + "on}/resourcePolicies/{resource}/setIamPo" + + "licy:\"region_set_policy_request_resource" + + "\022\321\002\n\022TestIamPermissions\022@.google.cloud.c" + + "ompute.v1.TestIamPermissionsResourcePoli" + + "cyRequest\0320.google.cloud.compute.v1.Test" + + "PermissionsResponse\"\306\001\332A9project,region," + + "resource,test_permissions_request_resour" + + "ce\202\323\344\223\002\203\001\"^/compute/v1/projects/{project" + + "}/regions/{region}/resourcePolicies/{res" + + "ource}/testIamPermissions:!test_permissi" + + "ons_request_resource\032r\312A\026compute.googlea" + + "pis.com\322AVhttps://www.googleapis.com/aut" + + "h/compute,https://www.googleapis.com/aut", + "h/cloud-platform2\216 \n\007Routers\022\273\001\n\016Aggrega" + + "tedList\0225.google.cloud.compute.v1.Aggreg" + + "atedListRoutersRequest\032-.google.cloud.co" + + "mpute.v1.RouterAggregatedList\"C\332A\007projec" + + "t\202\323\344\223\0023\0221/compute/v1/projects/{project}/" + + "aggregated/routers\022\317\001\n\006Delete\022,.google.c" + + "loud.compute.v1.DeleteRouterRequest\032\".go" + + "ogle.cloud.compute.v1.Operation\"s\332A\025proj" + + "ect,region,router\212N\020RegionOperations\202\323\344\223" + + "\002B*@/compute/v1/projects/{project}/regio" + + "ns/{region}/routers/{router}\022\370\001\n\021DeleteR" + + "outePolicy\0227.google.cloud.compute.v1.Del" + + "eteRoutePolicyRouterRequest\032\".google.clo" + + "ud.compute.v1.Operation\"\205\001\332A\025project,reg" + + "ion,router\212N\020RegionOperations\202\323\344\223\002T\"R/co" + + "mpute/v1/projects/{project}/regions/{reg" + + "ion}/routers/{router}/deleteRoutePolicy\022" + + "\263\001\n\003Get\022).google.cloud.compute.v1.GetRou" + + "terRequest\032\037.google.cloud.compute.v1.Rou" + + "ter\"`\332A\025project,region,router\202\323\344\223\002B\022@/co" + + "mpute/v1/projects/{project}/regions/{reg" + + "ion}/routers/{router}\022\335\001\n\014GetNatIpInfo\0222" + + ".google.cloud.compute.v1.GetNatIpInfoRou" + + "terRequest\032*.google.cloud.compute.v1.Nat" + + "IpInfoResponse\"m\332A\025project,region,router" + + "\202\323\344\223\002O\022M/compute/v1/projects/{project}/r" + + "egions/{region}/routers/{router}/getNatI" + + "pInfo\022\365\001\n\021GetNatMappingInfo\0228.google.clo" + + "ud.compute.v1.GetNatMappingInfoRoutersRe" + + "quest\0322.google.cloud.compute.v1.VmEndpoi" + + "ntNatMappingsList\"r\332A\025project,region,rou" + + "ter\202\323\344\223\002T\022R/compute/v1/projects/{project" + + "}/regions/{region}/routers/{router}/getN" + + "atMappingInfo\022\357\001\n\016GetRoutePolicy\0224.googl" + + "e.cloud.compute.v1.GetRoutePolicyRouterR" + + "equest\0326.google.cloud.compute.v1.Routers" + + "GetRoutePolicyResponse\"o\332A\025project,regio" + + "n,router\202\323\344\223\002Q\022O/compute/v1/projects/{pr" + + "oject}/regions/{region}/routers/{router}" + + "/getRoutePolicy\022\351\001\n\017GetRouterStatus\0225.go" + + "ogle.cloud.compute.v1.GetRouterStatusRou" + + "terRequest\032-.google.cloud.compute.v1.Rou" + + "terStatusResponse\"p\332A\025project,region,rou" + + "ter\202\323\344\223\002R\022P/compute/v1/projects/{project" + + "}/regions/{region}/routers/{router}/getR" + + "outerStatus\022\341\001\n\006Insert\022,.google.cloud.co" + + "mpute.v1.InsertRouterRequest\032\".google.cl" + + "oud.compute.v1.Operation\"\204\001\332A\036project,re" + + "gion,router_resource\212N\020RegionOperations\202" + + "\323\344\223\002J\"7/compute/v1/projects/{project}/re" + + "gions/{region}/routers:\017router_resource\022" + + "\252\001\n\004List\022+.google.cloud.compute.v1.ListR" + + "outersRequest\032#.google.cloud.compute.v1." + + "RouterList\"P\332A\016project,region\202\323\344\223\0029\0227/co" + + "mpute/v1/projects/{project}/regions/{reg" + + "ion}/routers\022\344\001\n\rListBgpRoutes\0224.google." + + "cloud.compute.v1.ListBgpRoutesRoutersReq" + + "uest\032-.google.cloud.compute.v1.RoutersLi" + + "stBgpRoutes\"n\332A\025project,region,router\202\323\344" + + "\223\002P\022N/compute/v1/projects/{project}/regi" + + "ons/{region}/routers/{router}/listBgpRou" + + "tes\022\364\001\n\021ListRoutePolicies\0228.google.cloud" + + ".compute.v1.ListRoutePoliciesRoutersRequ" + + "est\0321.google.cloud.compute.v1.RoutersLis" + + "tRoutePolicies\"r\332A\025project,region,router" + + "\202\323\344\223\002T\022R/compute/v1/projects/{project}/r" + + "egions/{region}/routers/{router}/listRou" + + "tePolicies\022\357\001\n\005Patch\022+.google.cloud.comp" + + "ute.v1.PatchRouterRequest\032\".google.cloud" + + ".compute.v1.Operation\"\224\001\332A%project,regio" + + "n,router,router_resource\212N\020RegionOperati" + + "ons\202\323\344\223\002S2@/compute/v1/projects/{project" + + "}/regions/{region}/routers/{router}:\017rou" + + "ter_resource\022\242\002\n\020PatchRoutePolicy\0226.goog" + + "le.cloud.compute.v1.PatchRoutePolicyRout" + + "erRequest\032\".google.cloud.compute.v1.Oper" + + "ation\"\261\001\332A+project,region,router,route_p" + + "olicy_resource\212N\020RegionOperations\202\323\344\223\002j\"" + + "Q/compute/v1/projects/{project}/regions/" + + "{region}/routers/{router}/patchRoutePoli" + + "cy:\025route_policy_resource\022\365\001\n\007Preview\022-." + + "google.cloud.compute.v1.PreviewRouterReq" + + "uest\032/.google.cloud.compute.v1.RoutersPr" + + "eviewResponse\"\211\001\332A%project,region,router" + + ",router_resource\202\323\344\223\002[\"H/compute/v1/proj" + + "ects/{project}/regions/{region}/routers/" + + "{router}/preview:\017router_resource\022\361\001\n\006Up" + + "date\022,.google.cloud.compute.v1.UpdateRou" + + "terRequest\032\".google.cloud.compute.v1.Ope" + + "ration\"\224\001\332A%project,region,router,router" + + "_resource\212N\020RegionOperations\202\323\344\223\002S\032@/com" + + "pute/v1/projects/{project}/regions/{regi" + + "on}/routers/{router}:\017router_resource\022\245\002" + + "\n\021UpdateRoutePolicy\0227.google.cloud.compu" + + "te.v1.UpdateRoutePolicyRouterRequest\032\".g" + + "oogle.cloud.compute.v1.Operation\"\262\001\332A+pr" + + "oject,region,router,route_policy_resourc" + + "e\212N\020RegionOperations\202\323\344\223\002k\"R/compute/v1/" + + "projects/{project}/regions/{region}/rout" + + "ers/{router}/updateRoutePolicy:\025route_po" + + "licy_resource\032r\312A\026compute.googleapis.com" + "\322AVhttps://www.googleapis.com/auth/compu" + "te,https://www.googleapis.com/auth/cloud" - + "-platform2\312\005\n\024ReservationSubBlocks\022\231\002\n\003G" - + "et\0226.google.cloud.compute.v1.GetReservat" - + "ionSubBlockRequest\0328.google.cloud.comput" - + "e.v1.ReservationSubBlocksGetResponse\"\237\001\332" - + "A.project,zone,parent_name,reservation_s" - + "ub_block\202\323\344\223\002h\022f/compute/v1/projects/{pr" - + "oject}/zones/{zone}/{parent_name}/reserv" - + "ationSubBlocks/{reservation_sub_block}\022\356" - + "\001\n\004List\0228.google.cloud.compute.v1.ListRe" - + "servationSubBlocksRequest\0329.google.cloud" - + ".compute.v1.ReservationSubBlocksListResp" - + "onse\"q\332A\030project,zone,parent_name\202\323\344\223\002P\022" - + "N/compute/v1/projects/{project}/zones/{z" - + "one}/{parent_name}/reservationSubBlocks\032" - + "\244\001\312A\026compute.googleapis.com\322A\207\001https://w" - + "ww.googleapis.com/auth/compute.readonly," - + "https://www.googleapis.com/auth/compute," - + "https://www.googleapis.com/auth/cloud-pl" - + "atform2\213\027\n\014Reservations\022\312\001\n\016AggregatedLi" - + "st\022:.google.cloud.compute.v1.AggregatedL" - + "istReservationsRequest\0322.google.cloud.co" - + "mpute.v1.ReservationAggregatedList\"H\332A\007p" - + "roject\202\323\344\223\0028\0226/compute/v1/projects/{proj" - + "ect}/aggregated/reservations\022\333\001\n\006Delete\022" - + "1.google.cloud.compute.v1.DeleteReservat" - + "ionRequest\032\".google.cloud.compute.v1.Ope" - + "ration\"z\332A\030project,zone,reservation\212N\016Zo" - + "neOperations\202\323\344\223\002H*F/compute/v1/projects" - + "/{project}/zones/{zone}/reservations/{re" - + "servation}\022\306\001\n\003Get\022..google.cloud.comput" - + "e.v1.GetReservationRequest\032$.google.clou" - + "d.compute.v1.Reservation\"i\332A\030project,zon" - + "e,reservation\202\323\344\223\002H\022F/compute/v1/project" - + "s/{project}/zones/{zone}/reservations/{r" - + "eservation}\022\332\001\n\014GetIamPolicy\0227.google.cl" - + "oud.compute.v1.GetIamPolicyReservationRe" - + "quest\032\037.google.cloud.compute.v1.Policy\"p" - + "\332A\025project,zone,resource\202\323\344\223\002R\022P/compute" - + "/v1/projects/{project}/zones/{zone}/rese" - + "rvations/{resource}/getIamPolicy\022\355\001\n\006Ins" - + "ert\0221.google.cloud.compute.v1.InsertRese" - + "rvationRequest\032\".google.cloud.compute.v1" - + ".Operation\"\213\001\332A!project,zone,reservation" - + "_resource\212N\016ZoneOperations\202\323\344\223\002P\"8/compu" - + "te/v1/projects/{project}/zones/{zone}/re" - + "servations:\024reservation_resource\022\263\001\n\004Lis" - + "t\0220.google.cloud.compute.v1.ListReservat" - + "ionsRequest\032(.google.cloud.compute.v1.Re" - + "servationList\"O\332A\014project,zone\202\323\344\223\002:\0228/c" - + "ompute/v1/projects/{project}/zones/{zone" - + "}/reservations\022\355\002\n\022PerformMaintenance\022=." - + "google.cloud.compute.v1.PerformMaintenan" - + "ceReservationRequest\032\".google.cloud.comp" - + "ute.v1.Operation\"\363\001\332AJproject,zone,reser" - + "vation,reservations_perform_maintenance_" - + "request_resource\212N\016ZoneOperations\202\323\344\223\002\216\001" - + "\"Y/compute/v1/projects/{project}/zones/{" - + "zone}/reservations/{reservation}/perform" - + "Maintenance:1reservations_perform_mainte" - + "nance_request_resource\022\256\002\n\006Resize\0221.goog" - + "le.cloud.compute.v1.ResizeReservationReq" - + "uest\032\".google.cloud.compute.v1.Operation" - + "\"\314\001\332A=project,zone,reservation,reservati" - + "ons_resize_request_resource\212N\016ZoneOperat" - + "ions\202\323\344\223\002u\"M/compute/v1/projects/{projec" - + "t}/zones/{zone}/reservations/{reservatio" - + "n}/resize:$reservations_resize_request_r" - + "esource\022\236\002\n\014SetIamPolicy\0227.google.cloud." - + "compute.v1.SetIamPolicyReservationReques" - + "t\032\037.google.cloud.compute.v1.Policy\"\263\001\332A6" - + "project,zone,resource,zone_set_policy_re" - + "quest_resource\202\323\344\223\002t\"P/compute/v1/projec" - + "ts/{project}/zones/{zone}/reservations/{" - + "resource}/setIamPolicy: zone_set_policy_" - + "request_resource\022\303\002\n\022TestIamPermissions\022" - + "=.google.cloud.compute.v1.TestIamPermiss" - + "ionsReservationRequest\0320.google.cloud.co" - + "mpute.v1.TestPermissionsResponse\"\273\001\332A7pr" - + "oject,zone,resource,test_permissions_req" - + "uest_resource\202\323\344\223\002{\"V/compute/v1/project" - + "s/{project}/zones/{zone}/reservations/{r" - + "esource}/testIamPermissions:!test_permis" - + "sions_request_resource\022\207\002\n\006Update\0221.goog" - + "le.cloud.compute.v1.UpdateReservationReq" - + "uest\032\".google.cloud.compute.v1.Operation" - + "\"\245\001\332A-project,zone,reservation,reservati" - + "on_resource\212N\016ZoneOperations\202\323\344\223\002^2F/com" - + "pute/v1/projects/{project}/zones/{zone}/" - + "reservations/{reservation}:\024reservation_" - + "resource\032r\312A\026compute.googleapis.com\322AVht" + + "-platform2\300\006\n\006Routes\022\272\001\n\006Delete\022+.google" + + ".cloud.compute.v1.DeleteRouteRequest\032\".g" + + "oogle.cloud.compute.v1.Operation\"_\332A\rpro" + + "ject,route\212N\020GlobalOperations\202\323\344\223\0026*4/co" + + "mpute/v1/projects/{project}/global/route" + + "s/{route}\022\235\001\n\003Get\022(.google.cloud.compute" + + ".v1.GetRouteRequest\032\036.google.cloud.compu" + + "te.v1.Route\"L\332A\rproject,route\202\323\344\223\0026\0224/co" + + "mpute/v1/projects/{project}/global/route" + + "s/{route}\022\313\001\n\006Insert\022+.google.cloud.comp" + + "ute.v1.InsertRouteRequest\032\".google.cloud" + + ".compute.v1.Operation\"p\332A\026project,route_" + + "resource\212N\020GlobalOperations\202\323\344\223\002>\",/comp" + + "ute/v1/projects/{project}/global/routes:" + + "\016route_resource\022\226\001\n\004List\022*.google.cloud." + + "compute.v1.ListRoutesRequest\032\".google.cl" + + "oud.compute.v1.RouteList\">\332A\007project\202\323\344\223" + + "\002.\022,/compute/v1/projects/{project}/globa" + + "l/routes\032r\312A\026compute.googleapis.com\322AVht" + "tps://www.googleapis.com/auth/compute,ht" + "tps://www.googleapis.com/auth/cloud-plat" - + "form2\232\023\n\020ResourcePolicies\022\325\001\n\016Aggregated" - + "List\022>.google.cloud.compute.v1.Aggregate" - + "dListResourcePoliciesRequest\0325.google.cl" - + "oud.compute.v1.ResourcePolicyAggregatedL" - + "ist\"L\332A\007project\202\323\344\223\002<\022:/compute/v1/proje" - + "cts/{project}/aggregated/resourcePolicie" - + "s\022\363\001\n\006Delete\0224.google.cloud.compute.v1.D" - + "eleteResourcePolicyRequest\032\".google.clou" - + "d.compute.v1.Operation\"\216\001\332A\036project,regi" - + "on,resource_policy\212N\020RegionOperations\202\323\344" - + "\223\002T*R/compute/v1/projects/{project}/regi" - + "ons/{region}/resourcePolicies/{resource_" - + "policy}\022\336\001\n\003Get\0221.google.cloud.compute.v" - + "1.GetResourcePolicyRequest\032\'.google.clou" - + "d.compute.v1.ResourcePolicy\"{\332A\036project," - + "region,resource_policy\202\323\344\223\002T\022R/compute/v" - + "1/projects/{project}/regions/{region}/re" - + "sourcePolicies/{resource_policy}\022\347\001\n\014Get" - + "IamPolicy\022:.google.cloud.compute.v1.GetI" - + "amPolicyResourcePolicyRequest\032\037.google.c" - + "loud.compute.v1.Policy\"z\332A\027project,regio" - + "n,resource\202\323\344\223\002Z\022X/compute/v1/projects/{" - + "project}/regions/{region}/resourcePolici" - + "es/{resource}/getIamPolicy\022\204\002\n\006Insert\0224." - + "google.cloud.compute.v1.InsertResourcePo" - + "licyRequest\032\".google.cloud.compute.v1.Op" - + "eration\"\237\001\332A\'project,region,resource_pol" - + "icy_resource\212N\020RegionOperations\202\323\344\223\002\\\"@/" - + "compute/v1/projects/{project}/regions/{r" - + "egion}/resourcePolicies:\030resource_policy" - + "_resource\022\304\001\n\004List\0224.google.cloud.comput" - + "e.v1.ListResourcePoliciesRequest\032+.googl" - + "e.cloud.compute.v1.ResourcePolicyList\"Y\332" - + "A\016project,region\202\323\344\223\002B\022@/compute/v1/proj" - + "ects/{project}/regions/{region}/resource" - + "Policies\022\244\002\n\005Patch\0223.google.cloud.comput" - + "e.v1.PatchResourcePolicyRequest\032\".google" - + ".cloud.compute.v1.Operation\"\301\001\332A7project" - + ",region,resource_policy,resource_policy_" - + "resource\212N\020RegionOperations\202\323\344\223\002n2R/comp" - + "ute/v1/projects/{project}/regions/{regio" - + "n}/resourcePolicies/{resource_policy}:\030r" - + "esource_policy_resource\022\257\002\n\014SetIamPolicy" - + "\022:.google.cloud.compute.v1.SetIamPolicyR" - + "esourcePolicyRequest\032\037.google.cloud.comp" - + "ute.v1.Policy\"\301\001\332A:project,region,resour" - + "ce,region_set_policy_request_resource\202\323\344" - + "\223\002~\"X/compute/v1/projects/{project}/regi" - + "ons/{region}/resourcePolicies/{resource}" - + "/setIamPolicy:\"region_set_policy_request" - + "_resource\022\321\002\n\022TestIamPermissions\022@.googl" - + "e.cloud.compute.v1.TestIamPermissionsRes" - + "ourcePolicyRequest\0320.google.cloud.comput" - + "e.v1.TestPermissionsResponse\"\306\001\332A9projec" - + "t,region,resource,test_permissions_reque" - + "st_resource\202\323\344\223\002\203\001\"^/compute/v1/projects" - + "/{project}/regions/{region}/resourcePoli" - + "cies/{resource}/testIamPermissions:!test" - + "_permissions_request_resource\032r\312A\026comput" - + "e.googleapis.com\322AVhttps://www.googleapi" - + "s.com/auth/compute,https://www.googleapi" - + "s.com/auth/cloud-platform2\216 \n\007Routers\022\273\001" - + "\n\016AggregatedList\0225.google.cloud.compute." - + "v1.AggregatedListRoutersRequest\032-.google" - + ".cloud.compute.v1.RouterAggregatedList\"C" - + "\332A\007project\202\323\344\223\0023\0221/compute/v1/projects/{" - + "project}/aggregated/routers\022\317\001\n\006Delete\022," - + ".google.cloud.compute.v1.DeleteRouterReq" - + "uest\032\".google.cloud.compute.v1.Operation" - + "\"s\332A\025project,region,router\212N\020RegionOpera" - + "tions\202\323\344\223\002B*@/compute/v1/projects/{proje" - + "ct}/regions/{region}/routers/{router}\022\370\001" - + "\n\021DeleteRoutePolicy\0227.google.cloud.compu" - + "te.v1.DeleteRoutePolicyRouterRequest\032\".g" - + "oogle.cloud.compute.v1.Operation\"\205\001\332A\025pr" - + "oject,region,router\212N\020RegionOperations\202\323" - + "\344\223\002T\"R/compute/v1/projects/{project}/reg" - + "ions/{region}/routers/{router}/deleteRou" - + "tePolicy\022\263\001\n\003Get\022).google.cloud.compute." - + "v1.GetRouterRequest\032\037.google.cloud.compu" - + "te.v1.Router\"`\332A\025project,region,router\202\323" - + "\344\223\002B\022@/compute/v1/projects/{project}/reg" - + "ions/{region}/routers/{router}\022\335\001\n\014GetNa" - + "tIpInfo\0222.google.cloud.compute.v1.GetNat" - + "IpInfoRouterRequest\032*.google.cloud.compu" - + "te.v1.NatIpInfoResponse\"m\332A\025project,regi" - + "on,router\202\323\344\223\002O\022M/compute/v1/projects/{p" - + "roject}/regions/{region}/routers/{router" - + "}/getNatIpInfo\022\365\001\n\021GetNatMappingInfo\0228.g" - + "oogle.cloud.compute.v1.GetNatMappingInfo" - + "RoutersRequest\0322.google.cloud.compute.v1" - + ".VmEndpointNatMappingsList\"r\332A\025project,r" - + "egion,router\202\323\344\223\002T\022R/compute/v1/projects" - + "/{project}/regions/{region}/routers/{rou" - + "ter}/getNatMappingInfo\022\357\001\n\016GetRoutePolic" - + "y\0224.google.cloud.compute.v1.GetRoutePoli" - + "cyRouterRequest\0326.google.cloud.compute.v" - + "1.RoutersGetRoutePolicyResponse\"o\332A\025proj" - + "ect,region,router\202\323\344\223\002Q\022O/compute/v1/pro", - "jects/{project}/regions/{region}/routers" - + "/{router}/getRoutePolicy\022\351\001\n\017GetRouterSt" - + "atus\0225.google.cloud.compute.v1.GetRouter" - + "StatusRouterRequest\032-.google.cloud.compu" - + "te.v1.RouterStatusResponse\"p\332A\025project,r" - + "egion,router\202\323\344\223\002R\022P/compute/v1/projects" - + "/{project}/regions/{region}/routers/{rou" - + "ter}/getRouterStatus\022\341\001\n\006Insert\022,.google" - + ".cloud.compute.v1.InsertRouterRequest\032\"." - + "google.cloud.compute.v1.Operation\"\204\001\332A\036p" - + "roject,region,router_resource\212N\020RegionOp" - + "erations\202\323\344\223\002J\"7/compute/v1/projects/{pr" - + "oject}/regions/{region}/routers:\017router_" - + "resource\022\252\001\n\004List\022+.google.cloud.compute" - + ".v1.ListRoutersRequest\032#.google.cloud.co" - + "mpute.v1.RouterList\"P\332A\016project,region\202\323" - + "\344\223\0029\0227/compute/v1/projects/{project}/reg" - + "ions/{region}/routers\022\344\001\n\rListBgpRoutes\022" - + "4.google.cloud.compute.v1.ListBgpRoutesR" - + "outersRequest\032-.google.cloud.compute.v1." - + "RoutersListBgpRoutes\"n\332A\025project,region," - + "router\202\323\344\223\002P\022N/compute/v1/projects/{proj" - + "ect}/regions/{region}/routers/{router}/l" - + "istBgpRoutes\022\364\001\n\021ListRoutePolicies\0228.goo" - + "gle.cloud.compute.v1.ListRoutePoliciesRo" - + "utersRequest\0321.google.cloud.compute.v1.R" - + "outersListRoutePolicies\"r\332A\025project,regi" - + "on,router\202\323\344\223\002T\022R/compute/v1/projects/{p" - + "roject}/regions/{region}/routers/{router" - + "}/listRoutePolicies\022\357\001\n\005Patch\022+.google.c" - + "loud.compute.v1.PatchRouterRequest\032\".goo" - + "gle.cloud.compute.v1.Operation\"\224\001\332A%proj" - + "ect,region,router,router_resource\212N\020Regi" - + "onOperations\202\323\344\223\002S2@/compute/v1/projects" - + "/{project}/regions/{region}/routers/{rou" - + "ter}:\017router_resource\022\242\002\n\020PatchRoutePoli" - + "cy\0226.google.cloud.compute.v1.PatchRouteP" - + "olicyRouterRequest\032\".google.cloud.comput" - + "e.v1.Operation\"\261\001\332A+project,region,route" - + "r,route_policy_resource\212N\020RegionOperatio" - + "ns\202\323\344\223\002j\"Q/compute/v1/projects/{project}" - + "/regions/{region}/routers/{router}/patch" - + "RoutePolicy:\025route_policy_resource\022\365\001\n\007P" - + "review\022-.google.cloud.compute.v1.Preview" - + "RouterRequest\032/.google.cloud.compute.v1." - + "RoutersPreviewResponse\"\211\001\332A%project,regi" - + "on,router,router_resource\202\323\344\223\002[\"H/comput" - + "e/v1/projects/{project}/regions/{region}" - + "/routers/{router}/preview:\017router_resour" - + "ce\022\361\001\n\006Update\022,.google.cloud.compute.v1." - + "UpdateRouterRequest\032\".google.cloud.compu" - + "te.v1.Operation\"\224\001\332A%project,region,rout" - + "er,router_resource\212N\020RegionOperations\202\323\344" - + "\223\002S\032@/compute/v1/projects/{project}/regi" - + "ons/{region}/routers/{router}:\017router_re" - + "source\022\245\002\n\021UpdateRoutePolicy\0227.google.cl" - + "oud.compute.v1.UpdateRoutePolicyRouterRe" - + "quest\032\".google.cloud.compute.v1.Operatio" - + "n\"\262\001\332A+project,region,router,route_polic" - + "y_resource\212N\020RegionOperations\202\323\344\223\002k\"R/co" - + "mpute/v1/projects/{project}/regions/{reg" - + "ion}/routers/{router}/updateRoutePolicy:" - + "\025route_policy_resource\032r\312A\026compute.googl" - + "eapis.com\322AVhttps://www.googleapis.com/a" - + "uth/compute,https://www.googleapis.com/a" - + "uth/cloud-platform2\300\006\n\006Routes\022\272\001\n\006Delete" - + "\022+.google.cloud.compute.v1.DeleteRouteRe" - + "quest\032\".google.cloud.compute.v1.Operatio" - + "n\"_\332A\rproject,route\212N\020GlobalOperations\202\323" - + "\344\223\0026*4/compute/v1/projects/{project}/glo" - + "bal/routes/{route}\022\235\001\n\003Get\022(.google.clou" - + "d.compute.v1.GetRouteRequest\032\036.google.cl" - + "oud.compute.v1.Route\"L\332A\rproject,route\202\323" - + "\344\223\0026\0224/compute/v1/projects/{project}/glo" - + "bal/routes/{route}\022\313\001\n\006Insert\022+.google.c" - + "loud.compute.v1.InsertRouteRequest\032\".goo" - + "gle.cloud.compute.v1.Operation\"p\332A\026proje" - + "ct,route_resource\212N\020GlobalOperations\202\323\344\223" - + "\002>\",/compute/v1/projects/{project}/globa" - + "l/routes:\016route_resource\022\226\001\n\004List\022*.goog" - + "le.cloud.compute.v1.ListRoutesRequest\032\"." - + "google.cloud.compute.v1.RouteList\">\332A\007pr" - + "oject\202\323\344\223\002.\022,/compute/v1/projects/{proje" - + "ct}/global/routes\032r\312A\026compute.googleapis" - + ".com\322AVhttps://www.googleapis.com/auth/c" - + "ompute,https://www.googleapis.com/auth/c" - + "loud-platform2\357\030\n\020SecurityPolicies\022\251\002\n\007A" - + "ddRule\0225.google.cloud.compute.v1.AddRule" - + "SecurityPolicyRequest\032\".google.cloud.com" - + "pute.v1.Operation\"\302\001\332A5project,security_" - + "policy,security_policy_rule_resource\212N\020G" - + "lobalOperations\202\323\344\223\002q\"P/compute/v1/proje" - + "cts/{project}/global/securityPolicies/{s" - + "ecurity_policy}/addRule:\035security_policy" - + "_rule_resource\022\327\001\n\016AggregatedList\022>.goog" - + "le.cloud.compute.v1.AggregatedListSecuri" - + "tyPoliciesRequest\0327.google.cloud.compute" - + ".v1.SecurityPoliciesAggregatedList\"L\332A\007p" - + "roject\202\323\344\223\002<\022:/compute/v1/projects/{proj" - + "ect}/aggregated/securityPolicies\022\341\001\n\006Del" - + "ete\0224.google.cloud.compute.v1.DeleteSecu" - + "rityPolicyRequest\032\".google.cloud.compute" - + ".v1.Operation\"}\332A\027project,security_polic" - + "y\212N\020GlobalOperations\202\323\344\223\002J*H/compute/v1/" - + "projects/{project}/global/securityPolici" - + "es/{security_policy}\022\315\001\n\003Get\0221.google.cl" - + "oud.compute.v1.GetSecurityPolicyRequest\032" - + "\'.google.cloud.compute.v1.SecurityPolicy" - + "\"j\332A\027project,security_policy\202\323\344\223\002J\022H/com" - + "pute/v1/projects/{project}/global/securi" - + "tyPolicies/{security_policy}\022\341\001\n\007GetRule" - + "\0225.google.cloud.compute.v1.GetRuleSecuri" - + "tyPolicyRequest\032+.google.cloud.compute.v" - + "1.SecurityPolicyRule\"r\332A\027project,securit" - + "y_policy\202\323\344\223\002R\022P/compute/v1/projects/{pr" - + "oject}/global/securityPolicies/{security" - + "_policy}/getRule\022\363\001\n\006Insert\0224.google.clo" - + "ud.compute.v1.InsertSecurityPolicyReques" - + "t\032\".google.cloud.compute.v1.Operation\"\216\001" - + "\332A project,security_policy_resource\212N\020Gl" - + "obalOperations\202\323\344\223\002R\"6/compute/v1/projec" - + "ts/{project}/global/securityPolicies:\030se" - + "curity_policy_resource\022\263\001\n\004List\0224.google" - + ".cloud.compute.v1.ListSecurityPoliciesRe" - + "quest\032+.google.cloud.compute.v1.Security" - + "PolicyList\"H\332A\007project\202\323\344\223\0028\0226/compute/v" - + "1/projects/{project}/global/securityPoli" - + "cies\022\256\002\n\037ListPreconfiguredExpressionSets" - + "\022O.google.cloud.compute.v1.ListPreconfig" - + "uredExpressionSetsSecurityPoliciesReques" - + "t\032P.google.cloud.compute.v1.SecurityPoli" - + "ciesListPreconfiguredExpressionSetsRespo" - + "nse\"h\332A\007project\202\323\344\223\002X\022V/compute/v1/proje" - + "cts/{project}/global/securityPolicies/li" - + "stPreconfiguredExpressionSets\022\223\002\n\005Patch\022" - + "3.google.cloud.compute.v1.PatchSecurityP" + + "form2\357\030\n\020SecurityPolicies\022\251\002\n\007AddRule\0225." + + "google.cloud.compute.v1.AddRuleSecurityP" + "olicyRequest\032\".google.cloud.compute.v1.O" - + "peration\"\260\001\332A0project,security_policy,se" - + "curity_policy_resource\212N\020GlobalOperation" - + "s\202\323\344\223\002d2H/compute/v1/projects/{project}/" + + "peration\"\302\001\332A5project,security_policy,se" + + "curity_policy_rule_resource\212N\020GlobalOper" + + "ations\202\323\344\223\002q\"P/compute/v1/projects/{proj" + + "ect}/global/securityPolicies/{security_p" + + "olicy}/addRule:\035security_policy_rule_res" + + "ource\022\327\001\n\016AggregatedList\022>.google.cloud." + + "compute.v1.AggregatedListSecurityPolicie" + + "sRequest\0327.google.cloud.compute.v1.Secur" + + "ityPoliciesAggregatedList\"L\332A\007project\202\323\344" + + "\223\002<\022:/compute/v1/projects/{project}/aggr" + + "egated/securityPolicies\022\341\001\n\006Delete\0224.goo" + + "gle.cloud.compute.v1.DeleteSecurityPolic" + + "yRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"}\332A\027project,security_policy\212N\020Globa" + + "lOperations\202\323\344\223\002J*H/compute/v1/projects/" + + "{project}/global/securityPolicies/{secur" + + "ity_policy}\022\315\001\n\003Get\0221.google.cloud.compu" + + "te.v1.GetSecurityPolicyRequest\032\'.google." + + "cloud.compute.v1.SecurityPolicy\"j\332A\027proj" + + "ect,security_policy\202\323\344\223\002J\022H/compute/v1/p" + + "rojects/{project}/global/securityPolicie" + + "s/{security_policy}\022\341\001\n\007GetRule\0225.google" + + ".cloud.compute.v1.GetRuleSecurityPolicyR" + + "equest\032+.google.cloud.compute.v1.Securit" + + "yPolicyRule\"r\332A\027project,security_policy\202" + + "\323\344\223\002R\022P/compute/v1/projects/{project}/gl" + + "obal/securityPolicies/{security_policy}/" + + "getRule\022\363\001\n\006Insert\0224.google.cloud.comput" + + "e.v1.InsertSecurityPolicyRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"\216\001\332A projec" + + "t,security_policy_resource\212N\020GlobalOpera" + + "tions\202\323\344\223\002R\"6/compute/v1/projects/{proje" + + "ct}/global/securityPolicies:\030security_po" + + "licy_resource\022\263\001\n\004List\0224.google.cloud.co" + + "mpute.v1.ListSecurityPoliciesRequest\032+.g" + + "oogle.cloud.compute.v1.SecurityPolicyLis" + + "t\"H\332A\007project\202\323\344\223\0028\0226/compute/v1/project" + + "s/{project}/global/securityPolicies\022\256\002\n\037" + + "ListPreconfiguredExpressionSets\022O.google" + + ".cloud.compute.v1.ListPreconfiguredExpre" + + "ssionSetsSecurityPoliciesRequest\032P.googl" + + "e.cloud.compute.v1.SecurityPoliciesListP" + + "reconfiguredExpressionSetsResponse\"h\332A\007p" + + "roject\202\323\344\223\002X\022V/compute/v1/projects/{proj" + + "ect}/global/securityPolicies/listPreconf" + + "iguredExpressionSets\022\223\002\n\005Patch\0223.google." + + "cloud.compute.v1.PatchSecurityPolicyRequ" + + "est\032\".google.cloud.compute.v1.Operation\"" + + "\260\001\332A0project,security_policy,security_po" + + "licy_resource\212N\020GlobalOperations\202\323\344\223\002d2H" + + "/compute/v1/projects/{project}/global/se" + + "curityPolicies/{security_policy}:\030securi" + + "ty_policy_resource\022\257\002\n\tPatchRule\0227.googl" + + "e.cloud.compute.v1.PatchRuleSecurityPoli" + + "cyRequest\032\".google.cloud.compute.v1.Oper" + + "ation\"\304\001\332A5project,security_policy,secur" + + "ity_policy_rule_resource\212N\020GlobalOperati" + + "ons\202\323\344\223\002s\"R/compute/v1/projects/{project" + + "}/global/securityPolicies/{security_poli" + + "cy}/patchRule:\035security_policy_rule_reso" + + "urce\022\365\001\n\nRemoveRule\0228.google.cloud.compu" + + "te.v1.RemoveRuleSecurityPolicyRequest\032\"." + + "google.cloud.compute.v1.Operation\"\210\001\332A\027p" + + "roject,security_policy\212N\020GlobalOperation" + + "s\202\323\344\223\002U\"S/compute/v1/projects/{project}/" + "global/securityPolicies/{security_policy" - + "}:\030security_policy_resource\022\257\002\n\tPatchRul" - + "e\0227.google.cloud.compute.v1.PatchRuleSec" - + "urityPolicyRequest\032\".google.cloud.comput" - + "e.v1.Operation\"\304\001\332A5project,security_pol" - + "icy,security_policy_rule_resource\212N\020Glob" - + "alOperations\202\323\344\223\002s\"R/compute/v1/projects" - + "/{project}/global/securityPolicies/{secu" - + "rity_policy}/patchRule:\035security_policy_" - + "rule_resource\022\365\001\n\nRemoveRule\0228.google.cl" - + "oud.compute.v1.RemoveRuleSecurityPolicyR" - + "equest\032\".google.cloud.compute.v1.Operati" - + "on\"\210\001\332A\027project,security_policy\212N\020Global" - + "Operations\202\323\344\223\002U\"S/compute/v1/projects/{" - + "project}/global/securityPolicies/{securi" - + "ty_policy}/removeRule\022\253\002\n\tSetLabels\0227.go" - + "ogle.cloud.compute.v1.SetLabelsSecurityP" - + "olicyRequest\032\".google.cloud.compute.v1.O" - + "peration\"\300\001\332A3project,resource,global_se" - + "t_labels_request_resource\212N\020GlobalOperat" - + "ions\202\323\344\223\002q\"K/compute/v1/projects/{projec" - + "t}/global/securityPolicies/{resource}/se" - + "tLabels:\"global_set_labels_request_resou" - + "rce\032r\312A\026compute.googleapis.com\322AVhttps:/" - + "/www.googleapis.com/auth/compute,https:/" - + "/www.googleapis.com/auth/cloud-platform2" - + "\360\023\n\022ServiceAttachments\022\334\001\n\016AggregatedLis" - + "t\022@.google.cloud.compute.v1.AggregatedLi" - + "stServiceAttachmentsRequest\0328.google.clo" - + "ud.compute.v1.ServiceAttachmentAggregate" - + "dList\"N\332A\007project\202\323\344\223\002>\022\022/compute/v1/projects/{proj" - + "ect}/global/sslPolicies/{ssl_policy}\022\264\001\n" - + "\003Get\022,.google.cloud.compute.v1.GetSslPol" - + "icyRequest\032\".google.cloud.compute.v1.Ssl" - + "Policy\"[\332A\022project,ssl_policy\202\323\344\223\002@\022>/co" - + "mpute/v1/projects/{project}/global/sslPo" - + "licies/{ssl_policy}\022\336\001\n\006Insert\022/.google." - + "cloud.compute.v1.InsertSslPolicyRequest\032" - + "\".google.cloud.compute.v1.Operation\"\177\332A\033" - + "project,ssl_policy_resource\212N\020GlobalOper" - + "ations\202\323\344\223\002H\"1/compute/v1/projects/{proj" - + "ect}/global/sslPolicies:\023ssl_policy_reso" - + "urce\022\246\001\n\004List\022/.google.cloud.compute.v1." - + "ListSslPoliciesRequest\032(.google.cloud.co" - + "mpute.v1.SslPoliciesList\"C\332A\007project\202\323\344\223" - + "\0023\0221/compute/v1/projects/{project}/globa" - + "l/sslPolicies\022\367\001\n\025ListAvailableFeatures\022" - + "@.google.cloud.compute.v1.ListAvailableF" - + "eaturesSslPoliciesRequest\032A.google.cloud" - + ".compute.v1.SslPoliciesListAvailableFeat" - + "uresResponse\"Y\332A\007project\202\323\344\223\002I\022G/compute" - + "/v1/projects/{project}/global/sslPolicie" - + "s/listAvailableFeatures\022\365\001\n\005Patch\022..goog" - + "le.cloud.compute.v1.PatchSslPolicyReques" - + "t\032\".google.cloud.compute.v1.Operation\"\227\001" - + "\332A&project,ssl_policy,ssl_policy_resourc" - + "e\212N\020GlobalOperations\202\323\344\223\002U2>/compute/v1/" + + "2\317\014\n\013SslPolicies\022\310\001\n\016AggregatedList\0229.go" + + "ogle.cloud.compute.v1.AggregatedListSslP" + + "oliciesRequest\0322.google.cloud.compute.v1" + + ".SslPoliciesAggregatedList\"G\332A\007project\202\323" + + "\344\223\0027\0225/compute/v1/projects/{project}/agg" + + "regated/sslPolicies\022\315\001\n\006Delete\022/.google." + + "cloud.compute.v1.DeleteSslPolicyRequest\032" + + "\".google.cloud.compute.v1.Operation\"n\332A\022" + + "project,ssl_policy\212N\020GlobalOperations\202\323\344" + + "\223\002@*>/compute/v1/projects/{project}/glob" + + "al/sslPolicies/{ssl_policy}\022\264\001\n\003Get\022,.go" + + "ogle.cloud.compute.v1.GetSslPolicyReques" + + "t\032\".google.cloud.compute.v1.SslPolicy\"[\332" + + "A\022project,ssl_policy\202\323\344\223\002@\022>/compute/v1/" + "projects/{project}/global/sslPolicies/{s" - + "sl_policy}:\023ssl_policy_resource\032r\312A\026comp" - + "ute.googleapis.com\322AVhttps://www.googlea" - + "pis.com/auth/compute,https://www.googlea" - + "pis.com/auth/cloud-platform2\265\006\n\020StorageP" - + "oolTypes\022\326\001\n\016AggregatedList\022>.google.clo" - + "ud.compute.v1.AggregatedListStoragePoolT" - + "ypesRequest\0326.google.cloud.compute.v1.St" - + "oragePoolTypeAggregatedList\"L\332A\007project\202" - + "\323\344\223\002<\022:/compute/v1/projects/{project}/ag" - + "gregated/storagePoolTypes\022\336\001\n\003Get\0222.goog" - + "le.cloud.compute.v1.GetStoragePoolTypeRe" - + "quest\032(.google.cloud.compute.v1.StorageP" - + "oolType\"y\332A\036project,zone,storage_pool_ty" - + "pe\202\323\344\223\002R\022P/compute/v1/projects/{project}" - + "/zones/{zone}/storagePoolTypes/{storage_" - + "pool_type}\022\277\001\n\004List\0224.google.cloud.compu" - + "te.v1.ListStoragePoolTypesRequest\032,.goog" - + "le.cloud.compute.v1.StoragePoolTypeList\"" - + "S\332A\014project,zone\202\323\344\223\002>\022/compute/v1/projects/" + + "{project}/global/sslPolicies/{ssl_policy" + + "}:\023ssl_policy_resource\032r\312A\026compute.googl" + + "eapis.com\322AVhttps://www.googleapis.com/a", + "uth/compute,https://www.googleapis.com/a" + + "uth/cloud-platform2\265\006\n\020StoragePoolTypes\022" + + "\326\001\n\016AggregatedList\022>.google.cloud.comput" + + "e.v1.AggregatedListStoragePoolTypesReque" + + "st\0326.google.cloud.compute.v1.StoragePool" + + "TypeAggregatedList\"L\332A\007project\202\323\344\223\002<\022:/c" + + "ompute/v1/projects/{project}/aggregated/" + + "storagePoolTypes\022\336\001\n\003Get\0222.google.cloud." + + "compute.v1.GetStoragePoolTypeRequest\032(.g" + + "oogle.cloud.compute.v1.StoragePoolType\"y" + + "\332A\036project,zone,storage_pool_type\202\323\344\223\002R\022" + "P/compute/v1/projects/{project}/zones/{z" - + "one}/storagePools/{resource}/getIamPolic" - + "y\022\357\001\n\006Insert\0221.google.cloud.compute.v1.I" - + "nsertStoragePoolRequest\032\".google.cloud.c" - + "ompute.v1.Operation\"\215\001\332A\"project,zone,st" - + "orage_pool_resource\212N\016ZoneOperations\202\323\344\223" - + "\002Q\"8/compute/v1/projects/{project}/zones" - + "/{zone}/storagePools:\025storage_pool_resou" - + "rce\022\263\001\n\004List\0220.google.cloud.compute.v1.L" - + "istStoragePoolsRequest\032(.google.cloud.co" - + "mpute.v1.StoragePoolList\"O\332A\014project,zon" - + "e\202\323\344\223\002:\0228/compute/v1/projects/{project}/" - + "zones/{zone}/storagePools\022\350\001\n\tListDisks\022" - + "5.google.cloud.compute.v1.ListDisksStora" - + "gePoolsRequest\032-.google.cloud.compute.v1" - + ".StoragePoolListDisks\"u\332A\031project,zone,s" - + "torage_pool\202\323\344\223\002S\022Q/compute/v1/projects/" - + "{project}/zones/{zone}/storagePools/{sto" - + "rage_pool}/listDisks\022\236\002\n\014SetIamPolicy\0227." - + "google.cloud.compute.v1.SetIamPolicyStor" - + "agePoolRequest\032\037.google.cloud.compute.v1" - + ".Policy\"\263\001\332A6project,zone,resource,zone_" - + "set_policy_request_resource\202\323\344\223\002t\"P/comp" + + "one}/storagePoolTypes/{storage_pool_type" + + "}\022\277\001\n\004List\0224.google.cloud.compute.v1.Lis" + + "tStoragePoolTypesRequest\032,.google.cloud." + + "compute.v1.StoragePoolTypeList\"S\332A\014proje" + + "ct,zone\202\323\344\223\002>\022\022\022.goo" - + "gle.cloud.compute.v1.AggregatedListTarge" - + "tTcpProxiesRequest\0325.google.cloud.comput" - + "e.v1.TargetTcpProxyAggregatedList\"L\332A\007pr" - + "oject\202\323\344\223\002<\022:/compute/v1/projects/{proje" - + "ct}/aggregated/targetTcpProxies\022\343\001\n\006Dele" - + "te\0224.google.cloud.compute.v1.DeleteTarge" - + "tTcpProxyRequest\032\".google.cloud.compute." - + "v1.Operation\"\177\332A\030project,target_tcp_prox" - + "y\212N\020GlobalOperations\202\323\344\223\002K*I/compute/v1/" - + "projects/{project}/global/targetTcpProxi" - + "es/{target_tcp_proxy}\022\317\001\n\003Get\0221.google.c" - + "loud.compute.v1.GetTargetTcpProxyRequest" - + "\032\'.google.cloud.compute.v1.TargetTcpProx" - + "y\"l\332A\030project,target_tcp_proxy\202\323\344\223\002K\022I/c" - + "ompute/v1/projects/{project}/global/targ" - + "etTcpProxies/{target_tcp_proxy}\022\365\001\n\006Inse" - + "rt\0224.google.cloud.compute.v1.InsertTarge" - + "tTcpProxyRequest\032\".google.cloud.compute." - + "v1.Operation\"\220\001\332A!project,target_tcp_pro" - + "xy_resource\212N\020GlobalOperations\202\323\344\223\002S\"6/c" - + "ompute/v1/projects/{project}/global/targ" - + "etTcpProxies:\031target_tcp_proxy_resource\022" - + "\263\001\n\004List\0224.google.cloud.compute.v1.ListT" - + "argetTcpProxiesRequest\032+.google.cloud.co" - + "mpute.v1.TargetTcpProxyList\"H\332A\007project\202" - + "\323\344\223\0028\0226/compute/v1/projects/{project}/gl" - + "obal/targetTcpProxies\022\376\002\n\021SetBackendServ" - + "ice\022?.google.cloud.compute.v1.SetBackend" - + "ServiceTargetTcpProxyRequest\032\".google.cl" - + "oud.compute.v1.Operation\"\203\002\332APproject,ta" - + "rget_tcp_proxy,target_tcp_proxies_set_ba" - + "ckend_service_request_resource\212N\020GlobalO" - + "perations\202\323\344\223\002\226\001\"[/compute/v1/projects/{" - + "project}/global/targetTcpProxies/{target" - + "_tcp_proxy}/setBackendService:7target_tc" - + "p_proxies_set_backend_service_request_re" - + "source\022\357\002\n\016SetProxyHeader\022<.google.cloud" - + ".compute.v1.SetProxyHeaderTargetTcpProxy" + + "ies/{target_ssl_proxy}\022\317\001\n\003Get\0221.google." + + "cloud.compute.v1.GetTargetSslProxyReques" + + "t\032\'.google.cloud.compute.v1.TargetSslPro" + + "xy\"l\332A\030project,target_ssl_proxy\202\323\344\223\002K\022I/" + + "compute/v1/projects/{project}/global/tar" + + "getSslProxies/{target_ssl_proxy}\022\365\001\n\006Ins" + + "ert\0224.google.cloud.compute.v1.InsertTarg" + + "etSslProxyRequest\032\".google.cloud.compute" + + ".v1.Operation\"\220\001\332A!project,target_ssl_pr" + + "oxy_resource\212N\020GlobalOperations\202\323\344\223\002S\"6/" + + "compute/v1/projects/{project}/global/tar" + + "getSslProxies:\031target_ssl_proxy_resource" + + "\022\263\001\n\004List\0224.google.cloud.compute.v1.List" + + "TargetSslProxiesRequest\032+.google.cloud.c" + + "ompute.v1.TargetSslProxyList\"H\332A\007project" + + "\202\323\344\223\0028\0226/compute/v1/projects/{project}/g" + + "lobal/targetSslProxies\022\376\002\n\021SetBackendSer" + + "vice\022?.google.cloud.compute.v1.SetBacken" + + "dServiceTargetSslProxyRequest\032\".google.c" + + "loud.compute.v1.Operation\"\203\002\332APproject,t" + + "arget_ssl_proxy,target_ssl_proxies_set_b" + + "ackend_service_request_resource\212N\020Global" + + "Operations\202\323\344\223\002\226\001\"[/compute/v1/projects/" + + "{project}/global/targetSslProxies/{targe" + + "t_ssl_proxy}/setBackendService:7target_s" + + "sl_proxies_set_backend_service_request_r" + + "esource\022\376\002\n\021SetCertificateMap\022?.google.c" + + "loud.compute.v1.SetCertificateMapTargetS" + + "slProxyRequest\032\".google.cloud.compute.v1" + + ".Operation\"\203\002\332APproject,target_ssl_proxy" + + ",target_ssl_proxies_set_certificate_map_" + + "request_resource\212N\020GlobalOperations\202\323\344\223\002" + + "\226\001\"[/compute/v1/projects/{project}/globa" + + "l/targetSslProxies/{target_ssl_proxy}/se" + + "tCertificateMap:7target_ssl_proxies_set_" + + "certificate_map_request_resource\022\357\002\n\016Set" + + "ProxyHeader\022<.google.cloud.compute.v1.Se" + + "tProxyHeaderTargetSslProxyRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"\372\001\332AMproje" + + "ct,target_ssl_proxy,target_ssl_proxies_s" + + "et_proxy_header_request_resource\212N\020Globa" + + "lOperations\202\323\344\223\002\220\001\"X/compute/v1/projects" + + "/{project}/global/targetSslProxies/{targ" + + "et_ssl_proxy}/setProxyHeader:4target_ssl" + + "_proxies_set_proxy_header_request_resour" + + "ce\022\203\003\n\022SetSslCertificates\022@.google.cloud" + + ".compute.v1.SetSslCertificatesTargetSslP" + + "roxyRequest\032\".google.cloud.compute.v1.Op" + + "eration\"\206\002\332AQproject,target_ssl_proxy,ta" + + "rget_ssl_proxies_set_ssl_certificates_re" + + "quest_resource\212N\020GlobalOperations\202\323\344\223\002\230\001" + + "\"\\/compute/v1/projects/{project}/global/" + + "targetSslProxies/{target_ssl_proxy}/setS" + + "slCertificates:8target_ssl_proxies_set_s" + + "sl_certificates_request_resource\022\272\002\n\014Set" + + "SslPolicy\022:.google.cloud.compute.v1.SetS" + + "slPolicyTargetSslProxyRequest\032\".google.c" + + "loud.compute.v1.Operation\"\311\001\332A6project,t" + + "arget_ssl_proxy,ssl_policy_reference_res" + + "ource\212N\020GlobalOperations\202\323\344\223\002w\"V/compute" + + "/v1/projects/{project}/global/targetSslP" + + "roxies/{target_ssl_proxy}/setSslPolicy:\035" + + "ssl_policy_reference_resource\032r\312A\026comput" + + "e.googleapis.com\322AVhttps://www.googleapi" + + "s.com/auth/compute,https://www.googleapi" + + "s.com/auth/cloud-platform2\267\017\n\020TargetTcpP" + + "roxies\022\325\001\n\016AggregatedList\022>.google.cloud" + + ".compute.v1.AggregatedListTargetTcpProxi" + + "esRequest\0325.google.cloud.compute.v1.Targ" + + "etTcpProxyAggregatedList\"L\332A\007project\202\323\344\223" + + "\002<\022:/compute/v1/projects/{project}/aggre" + + "gated/targetTcpProxies\022\343\001\n\006Delete\0224.goog" + + "le.cloud.compute.v1.DeleteTargetTcpProxy" + "Request\032\".google.cloud.compute.v1.Operat" - + "ion\"\372\001\332AMproject,target_tcp_proxy,target" - + "_tcp_proxies_set_proxy_header_request_re" - + "source\212N\020GlobalOperations\202\323\344\223\002\220\001\"X/compu" - + "te/v1/projects/{project}/global/targetTc" - + "pProxies/{target_tcp_proxy}/setProxyHead" - + "er:4target_tcp_proxies_set_proxy_header_" - + "request_resource\032r\312A\026compute.googleapis." - + "com\322AVhttps://www.googleapis.com/auth/co" - + "mpute,https://www.googleapis.com/auth/cl" - + "oud-platform2\354\014\n\021TargetVpnGateways\022\331\001\n\016A" - + "ggregatedList\022?.google.cloud.compute.v1." - + "AggregatedListTargetVpnGatewaysRequest\0327" - + ".google.cloud.compute.v1.TargetVpnGatewa" - + "yAggregatedList\"M\332A\007project\202\323\344\223\002=\022;/comp" - + "ute/v1/projects/{project}/aggregated/tar" - + "getVpnGateways\022\374\001\n\006Delete\0226.google.cloud" - + ".compute.v1.DeleteTargetVpnGatewayReques" - + "t\032\".google.cloud.compute.v1.Operation\"\225\001" - + "\332A!project,region,target_vpn_gateway\212N\020R" - + "egionOperations\202\323\344\223\002X*V/compute/v1/proje" - + "cts/{project}/regions/{region}/targetVpn" - + "Gateways/{target_vpn_gateway}\022\352\001\n\003Get\0223." - + "google.cloud.compute.v1.GetTargetVpnGate" - + "wayRequest\032).google.cloud.compute.v1.Tar" - + "getVpnGateway\"\202\001\332A!project,region,target" - + "_vpn_gateway\202\323\344\223\002X\022V/compute/v1/projects" - + "/{project}/regions/{region}/targetVpnGat" - + "eways/{target_vpn_gateway}\022\215\002\n\006Insert\0226." - + "google.cloud.compute.v1.InsertTargetVpnG" - + "atewayRequest\032\".google.cloud.compute.v1." - + "Operation\"\246\001\332A*project,region,target_vpn" - + "_gateway_resource\212N\020RegionOperations\202\323\344\223" - + "\002`\"A/compute/v1/projects/{project}/regio" - + "ns/{region}/targetVpnGateways:\033target_vp" - + "n_gateway_resource\022\310\001\n\004List\0225.google.clo" - + "ud.compute.v1.ListTargetVpnGatewaysReque" - + "st\032-.google.cloud.compute.v1.TargetVpnGa" - + "tewayList\"Z\332A\016project,region\202\323\344\223\002C\022A/com" - + "pute/v1/projects/{project}/regions/{regi" - + "on}/targetVpnGateways\022\277\002\n\tSetLabels\0229.go" - + "ogle.cloud.compute.v1.SetLabelsTargetVpn" - + "GatewayRequest\032\".google.cloud.compute.v1" - + ".Operation\"\322\001\332A:project,region,resource," - + "region_set_labels_request_resource\212N\020Reg" - + "ionOperations\202\323\344\223\002|\"V/compute/v1/project" - + "s/{project}/regions/{region}/targetVpnGa" - + "teways/{resource}/setLabels:\"region_set_" - + "labels_request_resource\032r\312A\026compute.goog" - + "leapis.com\322AVhttps://www.googleapis.com/" - + "auth/compute,https://www.googleapis.com/" - + "auth/cloud-platform2\236\020\n\007UrlMaps\022\274\001\n\016Aggr" - + "egatedList\0225.google.cloud.compute.v1.Agg" - + "regatedListUrlMapsRequest\032..google.cloud" - + ".compute.v1.UrlMapsAggregatedList\"C\332A\007pr" - + "oject\202\323\344\223\0023\0221/compute/v1/projects/{proje" - + "ct}/aggregated/urlMaps\022\300\001\n\006Delete\022,.goog" - + "le.cloud.compute.v1.DeleteUrlMapRequest\032" - + "\".google.cloud.compute.v1.Operation\"d\332A\017" - + "project,url_map\212N\020GlobalOperations\202\323\344\223\0029" - + "*7/compute/v1/projects/{project}/global/" - + "urlMaps/{url_map}\022\244\001\n\003Get\022).google.cloud" - + ".compute.v1.GetUrlMapRequest\032\037.google.cl" - + "oud.compute.v1.UrlMap\"Q\332A\017project,url_ma" - + "p\202\323\344\223\0029\0227/compute/v1/projects/{project}/" - + "global/urlMaps/{url_map}\022\321\001\n\006Insert\022,.go" - + "ogle.cloud.compute.v1.InsertUrlMapReques" - + "t\032\".google.cloud.compute.v1.Operation\"u\332" - + "A\030project,url_map_resource\212N\020GlobalOpera" - + "tions\202\323\344\223\002A\"-/compute/v1/projects/{proje" - + "ct}/global/urlMaps:\020url_map_resource\022\246\002\n" - + "\017InvalidateCache\0225.google.cloud.compute." - + "v1.InvalidateCacheUrlMapRequest\032\".google" - + ".cloud.compute.v1.Operation\"\267\001\332A0project" - + ",url_map,cache_invalidation_rule_resourc" - + "e\212N\020GlobalOperations\202\323\344\223\002k\"G/compute/v1/" - + "projects/{project}/global/urlMaps/{url_m" - + "ap}/invalidateCache: cache_invalidation_" - + "rule_resource\022\231\001\n\004List\022+.google.cloud.co" - + "mpute.v1.ListUrlMapsRequest\032#.google.clo" - + "ud.compute.v1.UrlMapList\"?\332A\007project\202\323\344\223" - + "\002/\022-/compute/v1/projects/{project}/globa" - + "l/urlMaps\022\342\001\n\005Patch\022+.google.cloud.compu" - + "te.v1.PatchUrlMapRequest\032\".google.cloud." - + "compute.v1.Operation\"\207\001\332A project,url_ma" - + "p,url_map_resource\212N\020GlobalOperations\202\323\344" - + "\223\002K27/compute/v1/projects/{project}/glob" - + "al/urlMaps/{url_map}:\020url_map_resource\022\344" - + "\001\n\006Update\022,.google.cloud.compute.v1.Upda" - + "teUrlMapRequest\032\".google.cloud.compute.v" + + "ion\"\177\332A\030project,target_tcp_proxy\212N\020Globa" + + "lOperations\202\323\344\223\002K*I/compute/v1/projects/" + + "{project}/global/targetTcpProxies/{targe" + + "t_tcp_proxy}\022\317\001\n\003Get\0221.google.cloud.comp" + + "ute.v1.GetTargetTcpProxyRequest\032\'.google" + + ".cloud.compute.v1.TargetTcpProxy\"l\332A\030pro" + + "ject,target_tcp_proxy\202\323\344\223\002K\022I/compute/v1" + + "/projects/{project}/global/targetTcpProx" + + "ies/{target_tcp_proxy}\022\365\001\n\006Insert\0224.goog" + + "le.cloud.compute.v1.InsertTargetTcpProxy" + + "Request\032\".google.cloud.compute.v1.Operat" + + "ion\"\220\001\332A!project,target_tcp_proxy_resour" + + "ce\212N\020GlobalOperations\202\323\344\223\002S\"6/compute/v1" + + "/projects/{project}/global/targetTcpProx" + + "ies:\031target_tcp_proxy_resource\022\263\001\n\004List\022" + + "4.google.cloud.compute.v1.ListTargetTcpP" + + "roxiesRequest\032+.google.cloud.compute.v1." + + "TargetTcpProxyList\"H\332A\007project\202\323\344\223\0028\0226/c" + + "ompute/v1/projects/{project}/global/targ" + + "etTcpProxies\022\376\002\n\021SetBackendService\022?.goo" + + "gle.cloud.compute.v1.SetBackendServiceTa" + + "rgetTcpProxyRequest\032\".google.cloud.compu" + + "te.v1.Operation\"\203\002\332APproject,target_tcp_" + + "proxy,target_tcp_proxies_set_backend_ser" + + "vice_request_resource\212N\020GlobalOperations" + + "\202\323\344\223\002\226\001\"[/compute/v1/projects/{project}/" + + "global/targetTcpProxies/{target_tcp_prox" + + "y}/setBackendService:7target_tcp_proxies" + + "_set_backend_service_request_resource\022\357\002" + + "\n\016SetProxyHeader\022<.google.cloud.compute." + + "v1.SetProxyHeaderTargetTcpProxyRequest\032\"" + + ".google.cloud.compute.v1.Operation\"\372\001\332AM" + + "project,target_tcp_proxy,target_tcp_prox" + + "ies_set_proxy_header_request_resource\212N\020" + + "GlobalOperations\202\323\344\223\002\220\001\"X/compute/v1/pro" + + "jects/{project}/global/targetTcpProxies/" + + "{target_tcp_proxy}/setProxyHeader:4targe" + + "t_tcp_proxies_set_proxy_header_request_r" + + "esource\032r\312A\026compute.googleapis.com\322AVhtt" + + "ps://www.googleapis.com/auth/compute,htt" + + "ps://www.googleapis.com/auth/cloud-platf" + + "orm2\354\014\n\021TargetVpnGateways\022\331\001\n\016Aggregated" + + "List\022?.google.cloud.compute.v1.Aggregate" + + "dListTargetVpnGatewaysRequest\0327.google.c" + + "loud.compute.v1.TargetVpnGatewayAggregat" + + "edList\"M\332A\007project\202\323\344\223\002=\022;/compute/v1/pr" + + "ojects/{project}/aggregated/targetVpnGat" + + "eways\022\374\001\n\006Delete\0226.google.cloud.compute." + + "v1.DeleteTargetVpnGatewayRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"\225\001\332A!projec" + + "t,region,target_vpn_gateway\212N\020RegionOper" + + "ations\202\323\344\223\002X*V/compute/v1/projects/{proj" + + "ect}/regions/{region}/targetVpnGateways/" + + "{target_vpn_gateway}\022\352\001\n\003Get\0223.google.cl" + + "oud.compute.v1.GetTargetVpnGatewayReques" + + "t\032).google.cloud.compute.v1.TargetVpnGat" + + "eway\"\202\001\332A!project,region,target_vpn_gate" + + "way\202\323\344\223\002X\022V/compute/v1/projects/{project" + + "}/regions/{region}/targetVpnGateways/{ta" + + "rget_vpn_gateway}\022\215\002\n\006Insert\0226.google.cl" + + "oud.compute.v1.InsertTargetVpnGatewayReq" + + "uest\032\".google.cloud.compute.v1.Operation" + + "\"\246\001\332A*project,region,target_vpn_gateway_" + + "resource\212N\020RegionOperations\202\323\344\223\002`\"A/comp" + + "ute/v1/projects/{project}/regions/{regio" + + "n}/targetVpnGateways:\033target_vpn_gateway" + + "_resource\022\310\001\n\004List\0225.google.cloud.comput" + + "e.v1.ListTargetVpnGatewaysRequest\032-.goog" + + "le.cloud.compute.v1.TargetVpnGatewayList" + + "\"Z\332A\016project,region\202\323\344\223\002C\022A/compute/v1/p" + + "rojects/{project}/regions/{region}/targe" + + "tVpnGateways\022\277\002\n\tSetLabels\0229.google.clou" + + "d.compute.v1.SetLabelsTargetVpnGatewayRe" + + "quest\032\".google.cloud.compute.v1.Operatio" + + "n\"\322\001\332A:project,region,resource,region_se" + + "t_labels_request_resource\212N\020RegionOperat" + + "ions\202\323\344\223\002|\"V/compute/v1/projects/{projec" + + "t}/regions/{region}/targetVpnGateways/{r" + + "esource}/setLabels:\"region_set_labels_re" + + "quest_resource\032r\312A\026compute.googleapis.co" + + "m\322AVhttps://www.googleapis.com/auth/comp" + + "ute,https://www.googleapis.com/auth/clou" + + "d-platform2\236\020\n\007UrlMaps\022\274\001\n\016AggregatedLis" + + "t\0225.google.cloud.compute.v1.AggregatedLi" + + "stUrlMapsRequest\032..google.cloud.compute." + + "v1.UrlMapsAggregatedList\"C\332A\007project\202\323\344\223" + + "\0023\0221/compute/v1/projects/{project}/aggre" + + "gated/urlMaps\022\300\001\n\006Delete\022,.google.cloud." + + "compute.v1.DeleteUrlMapRequest\032\".google." + + "cloud.compute.v1.Operation\"d\332A\017project,u" + + "rl_map\212N\020GlobalOperations\202\323\344\223\0029*7/comput" + + "e/v1/projects/{project}/global/urlMaps/{" + + "url_map}\022\244\001\n\003Get\022).google.cloud.compute." + + "v1.GetUrlMapRequest\032\037.google.cloud.compu" + + "te.v1.UrlMap\"Q\332A\017project,url_map\202\323\344\223\0029\0227" + + "/compute/v1/projects/{project}/global/ur" + + "lMaps/{url_map}\022\321\001\n\006Insert\022,.google.clou" + + "d.compute.v1.InsertUrlMapRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"u\332A\030project" + + ",url_map_resource\212N\020GlobalOperations\202\323\344\223" + + "\002A\"-/compute/v1/projects/{project}/globa" + + "l/urlMaps:\020url_map_resource\022\246\002\n\017Invalida" + + "teCache\0225.google.cloud.compute.v1.Invali" + + "dateCacheUrlMapRequest\032\".google.cloud.co" + + "mpute.v1.Operation\"\267\001\332A0project,url_map," + + "cache_invalidation_rule_resource\212N\020Globa" + + "lOperations\202\323\344\223\002k\"G/compute/v1/projects/" + + "{project}/global/urlMaps/{url_map}/inval" + + "idateCache: cache_invalidation_rule_reso" + + "urce\022\231\001\n\004List\022+.google.cloud.compute.v1." + + "ListUrlMapsRequest\032#.google.cloud.comput" + + "e.v1.UrlMapList\"?\332A\007project\202\323\344\223\002/\022-/comp" + + "ute/v1/projects/{project}/global/urlMaps" + + "\022\342\001\n\005Patch\022+.google.cloud.compute.v1.Pat" + + "chUrlMapRequest\032\".google.cloud.compute.v" + "1.Operation\"\207\001\332A project,url_map,url_map" - + "_resource\212N\020GlobalOperations\202\323\344\223\002K\0327/com" + + "_resource\212N\020GlobalOperations\202\323\344\223\002K27/com" + "pute/v1/projects/{project}/global/urlMap" - + "s/{url_map}:\020url_map_resource\022\220\002\n\010Valida" - + "te\022..google.cloud.compute.v1.ValidateUrl" - + "MapRequest\0320.google.cloud.compute.v1.Url" - + "MapsValidateResponse\"\241\001\332A2project,url_ma" - + "p,url_maps_validate_request_resource\202\323\344\223" - + "\002f\"@/compute/v1/projects/{project}/globa" - + "l/urlMaps/{url_map}/validate:\"url_maps_v" - + "alidate_request_resource\032r\312A\026compute.goo" - + "gleapis.com\322AVhttps://www.googleapis.com" - + "/auth/compute,https://www.googleapis.com" - + "/auth/cloud-platform2\237\020\n\013VpnGateways\022\307\001\n" - + "\016AggregatedList\0229.google.cloud.compute.v" - + "1.AggregatedListVpnGatewaysRequest\0321.goo" - + "gle.cloud.compute.v1.VpnGatewayAggregate" - + "dList\"G\332A\007project\202\323\344\223\0027\0225/compute/v1/pro" - + "jects/{project}/aggregated/vpnGateways\022\342" - + "\001\n\006Delete\0220.google.cloud.compute.v1.Dele" - + "teVpnGatewayRequest\032\".google.cloud.compu" - + "te.v1.Operation\"\201\001\332A\032project,region,vpn_" - + "gateway\212N\020RegionOperations\202\323\344\223\002K*I/compu" - + "te/v1/projects/{project}/regions/{region" - + "}/vpnGateways/{vpn_gateway}\022\311\001\n\003Get\022-.go" - + "ogle.cloud.compute.v1.GetVpnGatewayReque" - + "st\032#.google.cloud.compute.v1.VpnGateway\"" - + "n\332A\032project,region,vpn_gateway\202\323\344\223\002K\022I/c" - + "ompute/v1/projects/{project}/regions/{re" - + "gion}/vpnGateways/{vpn_gateway}\022\361\001\n\tGetS" - + "tatus\0223.google.cloud.compute.v1.GetStatu" - + "sVpnGatewayRequest\0325.google.cloud.comput" - + "e.v1.VpnGatewaysGetStatusResponse\"x\332A\032pr" - + "oject,region,vpn_gateway\202\323\344\223\002U\022S/compute" - + "/v1/projects/{project}/regions/{region}/" - + "vpnGateways/{vpn_gateway}/getStatus\022\363\001\n\006" - + "Insert\0220.google.cloud.compute.v1.InsertV" - + "pnGatewayRequest\032\".google.cloud.compute." - + "v1.Operation\"\222\001\332A#project,region,vpn_gat" - + "eway_resource\212N\020RegionOperations\202\323\344\223\002S\";" - + "/compute/v1/projects/{project}/regions/{" - + "region}/vpnGateways:\024vpn_gateway_resourc" - + "e\022\266\001\n\004List\022/.google.cloud.compute.v1.Lis" - + "tVpnGatewaysRequest\032\'.google.cloud.compu" - + "te.v1.VpnGatewayList\"T\332A\016project,region\202" - + "\323\344\223\002=\022;/compute/v1/projects/{project}/re" - + "gions/{region}/vpnGateways\022\263\002\n\tSetLabels" - + "\0223.google.cloud.compute.v1.SetLabelsVpnG" - + "atewayRequest\032\".google.cloud.compute.v1." - + "Operation\"\314\001\332A:project,region,resource,r" - + "egion_set_labels_request_resource\212N\020Regi" - + "onOperations\202\323\344\223\002v\"P/compute/v1/projects" - + "/{project}/regions/{region}/vpnGateways/" - + "{resource}/setLabels:\"region_set_labels_" - + "request_resource\022\307\002\n\022TestIamPermissions\022" - + "<.google.cloud.compute.v1.TestIamPermiss" - + "ionsVpnGatewayRequest\0320.google.cloud.com" - + "pute.v1.TestPermissionsResponse\"\300\001\332A9pro" - + "ject,region,resource,test_permissions_re" - + "quest_resource\202\323\344\223\002~\"Y/compute/v1/projec" - + "ts/{project}/regions/{region}/vpnGateway" - + "s/{resource}/testIamPermissions:!test_pe" - + "rmissions_request_resource\032r\312A\026compute.g" - + "oogleapis.com\322AVhttps://www.googleapis.c" - + "om/auth/compute,https://www.googleapis.c" - + "om/auth/cloud-platform2\312\013\n\nVpnTunnels\022\304\001" - + "\n\016AggregatedList\0228.google.cloud.compute." - + "v1.AggregatedListVpnTunnelsRequest\0320.goo" - + "gle.cloud.compute.v1.VpnTunnelAggregated" - + "List\"F\332A\007project\202\323\344\223\0026\0224/compute/v1/proj" - + "ects/{project}/aggregated/vpnTunnels\022\335\001\n" - + "\006Delete\022/.google.cloud.compute.v1.Delete" - + "VpnTunnelRequest\032\".google.cloud.compute." - + "v1.Operation\"~\332A\031project,region,vpn_tunn" - + "el\212N\020RegionOperations\202\323\344\223\002I*G/compute/v1" + + "s/{url_map}:\020url_map_resource\022\344\001\n\006Update" + + "\022,.google.cloud.compute.v1.UpdateUrlMapR" + + "equest\032\".google.cloud.compute.v1.Operati" + + "on\"\207\001\332A project,url_map,url_map_resource" + + "\212N\020GlobalOperations\202\323\344\223\002K\0327/compute/v1/p" + + "rojects/{project}/global/urlMaps/{url_ma" + + "p}:\020url_map_resource\022\220\002\n\010Validate\022..goog" + + "le.cloud.compute.v1.ValidateUrlMapReques" + + "t\0320.google.cloud.compute.v1.UrlMapsValid" + + "ateResponse\"\241\001\332A2project,url_map,url_map" + + "s_validate_request_resource\202\323\344\223\002f\"@/comp" + + "ute/v1/projects/{project}/global/urlMaps" + + "/{url_map}/validate:\"url_maps_validate_r" + + "equest_resource\032r\312A\026compute.googleapis.c" + + "om\322AVhttps://www.googleapis.com/auth/com" + + "pute,https://www.googleapis.com/auth/clo" + + "ud-platform2\237\020\n\013VpnGateways\022\307\001\n\016Aggregat" + + "edList\0229.google.cloud.compute.v1.Aggrega" + + "tedListVpnGatewaysRequest\0321.google.cloud" + + ".compute.v1.VpnGatewayAggregatedList\"G\332A" + + "\007project\202\323\344\223\0027\0225/compute/v1/projects/{pr" + + "oject}/aggregated/vpnGateways\022\342\001\n\006Delete" + + "\0220.google.cloud.compute.v1.DeleteVpnGate" + + "wayRequest\032\".google.cloud.compute.v1.Ope" + + "ration\"\201\001\332A\032project,region,vpn_gateway\212N" + + "\020RegionOperations\202\323\344\223\002K*I/compute/v1/pro" + + "jects/{project}/regions/{region}/vpnGate" + + "ways/{vpn_gateway}\022\311\001\n\003Get\022-.google.clou" + + "d.compute.v1.GetVpnGatewayRequest\032#.goog" + + "le.cloud.compute.v1.VpnGateway\"n\332A\032proje" + + "ct,region,vpn_gateway\202\323\344\223\002K\022I/compute/v1" + "/projects/{project}/regions/{region}/vpn" - + "Tunnels/{vpn_tunnel}\022\304\001\n\003Get\022,.google.cl" - + "oud.compute.v1.GetVpnTunnelRequest\032\".goo" - + "gle.cloud.compute.v1.VpnTunnel\"k\332A\031proje" - + "ct,region,vpn_tunnel\202\323\344\223\002I\022G/compute/v1/" - + "projects/{project}/regions/{region}/vpnT" - + "unnels/{vpn_tunnel}\022\357\001\n\006Insert\022/.google." - + "cloud.compute.v1.InsertVpnTunnelRequest\032" - + "\".google.cloud.compute.v1.Operation\"\217\001\332A" - + "\"project,region,vpn_tunnel_resource\212N\020Re" - + "gionOperations\202\323\344\223\002Q\":/compute/v1/projec" - + "ts/{project}/regions/{region}/vpnTunnels" - + ":\023vpn_tunnel_resource\022\263\001\n\004List\022..google." - + "cloud.compute.v1.ListVpnTunnelsRequest\032&" - + ".google.cloud.compute.v1.VpnTunnelList\"S" - + "\332A\016project,region\202\323\344\223\002<\022:/compute/v1/pro" - + "jects/{project}/regions/{region}/vpnTunn" - + "els\022\261\002\n\tSetLabels\0222.google.cloud.compute" - + ".v1.SetLabelsVpnTunnelRequest\032\".google.c" - + "loud.compute.v1.Operation\"\313\001\332A:project,r" - + "egion,resource,region_set_labels_request" - + "_resource\212N\020RegionOperations\202\323\344\223\002u\"O/com" - + "pute/v1/projects/{project}/regions/{regi" - + "on}/vpnTunnels/{resource}/setLabels:\"reg" - + "ion_set_labels_request_resource\032r\312A\026comp" - + "ute.googleapis.com\322AVhttps://www.googlea" - + "pis.com/auth/compute,https://www.googlea" - + "pis.com/auth/cloud-platform2\243\007\n\016ZoneOper" - + "ations\022\330\001\n\006Delete\0223.google.cloud.compute" - + ".v1.DeleteZoneOperationRequest\0324.google." - + "cloud.compute.v1.DeleteZoneOperationResp" - + "onse\"c\332A\026project,zone,operation\202\323\344\223\002D*B/" - + "compute/v1/projects/{project}/zones/{zon" - + "e}/operations/{operation}\022\303\001\n\003Get\0220.goog" - + "le.cloud.compute.v1.GetZoneOperationRequ" - + "est\032\".google.cloud.compute.v1.Operation\"" - + "f\332A\026project,zone,operation\220N\001\202\323\344\223\002D\022B/co" - + "mpute/v1/projects/{project}/zones/{zone}" - + "/operations/{operation}\022\261\001\n\004List\0222.googl" - + "e.cloud.compute.v1.ListZoneOperationsReq" - + "uest\032&.google.cloud.compute.v1.Operation" - + "List\"M\332A\014project,zone\202\323\344\223\0028\0226/compute/v1" - + "/projects/{project}/zones/{zone}/operati" - + "ons\022\307\001\n\004Wait\0221.google.cloud.compute.v1.W" - + "aitZoneOperationRequest\032\".google.cloud.c" - + "ompute.v1.Operation\"h\332A\026project,zone,ope" - + "ration\202\323\344\223\002I\"G/compute/v1/projects/{proj" - + "ect}/zones/{zone}/operations/{operation}" - + "/wait\032r\312A\026compute.googleapis.com\322AVhttps" - + "://www.googleapis.com/auth/compute,https" - + "://www.googleapis.com/auth/cloud-platfor" - + "m2\321\003\n\005Zones\022\221\001\n\003Get\022\'.google.cloud.compu" - + "te.v1.GetZoneRequest\032\035.google.cloud.comp" - + "ute.v1.Zone\"B\332A\014project,zone\202\323\344\223\002-\022+/com" - + "pute/v1/projects/{project}/zones/{zone}\022" - + "\214\001\n\004List\022).google.cloud.compute.v1.ListZ" - + "onesRequest\032!.google.cloud.compute.v1.Zo" - + "neList\"6\332A\007project\202\323\344\223\002&\022$/compute/v1/pr" - + "ojects/{project}/zones\032\244\001\312A\026compute.goog" - + "leapis.com\322A\207\001https://www.googleapis.com" - + "/auth/compute.readonly,https://www.googl" - + "eapis.com/auth/compute,https://www.googl" - + "eapis.com/auth/cloud-platformB\247\001\n\033com.go" - + "ogle.cloud.compute.v1P\001Z5cloud.google.co" - + "m/go/compute/apiv1/computepb;computepb\252\002" - + "\027Google.Cloud.Compute.V1\312\002\027Google\\Cloud\\" - + "Compute\\V1\352\002\032Google::Cloud::Compute::V1b" - + "\006proto3" + + "Gateways/{vpn_gateway}\022\361\001\n\tGetStatus\0223.g" + + "oogle.cloud.compute.v1.GetStatusVpnGatew" + + "ayRequest\0325.google.cloud.compute.v1.VpnG" + + "atewaysGetStatusResponse\"x\332A\032project,reg" + + "ion,vpn_gateway\202\323\344\223\002U\022S/compute/v1/proje" + + "cts/{project}/regions/{region}/vpnGatewa" + + "ys/{vpn_gateway}/getStatus\022\363\001\n\006Insert\0220." + + "google.cloud.compute.v1.InsertVpnGateway" + + "Request\032\".google.cloud.compute.v1.Operat" + + "ion\"\222\001\332A#project,region,vpn_gateway_reso" + + "urce\212N\020RegionOperations\202\323\344\223\002S\";/compute/" + + "v1/projects/{project}/regions/{region}/v" + + "pnGateways:\024vpn_gateway_resource\022\266\001\n\004Lis" + + "t\022/.google.cloud.compute.v1.ListVpnGatew" + + "aysRequest\032\'.google.cloud.compute.v1.Vpn" + + "GatewayList\"T\332A\016project,region\202\323\344\223\002=\022;/c" + + "ompute/v1/projects/{project}/regions/{re" + + "gion}/vpnGateways\022\263\002\n\tSetLabels\0223.google" + + ".cloud.compute.v1.SetLabelsVpnGatewayReq" + + "uest\032\".google.cloud.compute.v1.Operation" + + "\"\314\001\332A:project,region,resource,region_set" + + "_labels_request_resource\212N\020RegionOperati" + + "ons\202\323\344\223\002v\"P/compute/v1/projects/{project" + + "}/regions/{region}/vpnGateways/{resource" + + "}/setLabels:\"region_set_labels_request_r" + + "esource\022\307\002\n\022TestIamPermissions\022<.google." + + "cloud.compute.v1.TestIamPermissionsVpnGa" + + "tewayRequest\0320.google.cloud.compute.v1.T" + + "estPermissionsResponse\"\300\001\332A9project,regi" + + "on,resource,test_permissions_request_res" + + "ource\202\323\344\223\002~\"Y/compute/v1/projects/{proje" + + "ct}/regions/{region}/vpnGateways/{resour" + + "ce}/testIamPermissions:!test_permissions" + + "_request_resource\032r\312A\026compute.googleapis" + + ".com\322AVhttps://www.googleapis.com/auth/c" + + "ompute,https://www.googleapis.com/auth/c" + + "loud-platform2\312\013\n\nVpnTunnels\022\304\001\n\016Aggrega" + + "tedList\0228.google.cloud.compute.v1.Aggreg" + + "atedListVpnTunnelsRequest\0320.google.cloud" + + ".compute.v1.VpnTunnelAggregatedList\"F\332A\007" + + "project\202\323\344\223\0026\0224/compute/v1/projects/{pro" + + "ject}/aggregated/vpnTunnels\022\335\001\n\006Delete\022/" + + ".google.cloud.compute.v1.DeleteVpnTunnel" + + "Request\032\".google.cloud.compute.v1.Operat" + + "ion\"~\332A\031project,region,vpn_tunnel\212N\020Regi" + + "onOperations\202\323\344\223\002I*G/compute/v1/projects" + + "/{project}/regions/{region}/vpnTunnels/{" + + "vpn_tunnel}\022\304\001\n\003Get\022,.google.cloud.compu" + + "te.v1.GetVpnTunnelRequest\032\".google.cloud" + + ".compute.v1.VpnTunnel\"k\332A\031project,region" + + ",vpn_tunnel\202\323\344\223\002I\022G/compute/v1/projects/" + + "{project}/regions/{region}/vpnTunnels/{v" + + "pn_tunnel}\022\357\001\n\006Insert\022/.google.cloud.com" + + "pute.v1.InsertVpnTunnelRequest\032\".google." + + "cloud.compute.v1.Operation\"\217\001\332A\"project," + + "region,vpn_tunnel_resource\212N\020RegionOpera" + + "tions\202\323\344\223\002Q\":/compute/v1/projects/{proje" + + "ct}/regions/{region}/vpnTunnels:\023vpn_tun" + + "nel_resource\022\263\001\n\004List\022..google.cloud.com" + + "pute.v1.ListVpnTunnelsRequest\032&.google.c" + + "loud.compute.v1.VpnTunnelList\"S\332A\016projec" + + "t,region\202\323\344\223\002<\022:/compute/v1/projects/{pr" + + "oject}/regions/{region}/vpnTunnels\022\261\002\n\tS" + + "etLabels\0222.google.cloud.compute.v1.SetLa" + + "belsVpnTunnelRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\313\001\332A:project,region,res" + + "ource,region_set_labels_request_resource" + + "\212N\020RegionOperations\202\323\344\223\002u\"O/compute/v1/p" + + "rojects/{project}/regions/{region}/vpnTu" + + "nnels/{resource}/setLabels:\"region_set_l" + + "abels_request_resource\032r\312A\026compute.googl" + + "eapis.com\322AVhttps://www.googleapis.com/a" + + "uth/compute,https://www.googleapis.com/a" + + "uth/cloud-platform2\243\007\n\016ZoneOperations\022\330\001" + + "\n\006Delete\0223.google.cloud.compute.v1.Delet" + + "eZoneOperationRequest\0324.google.cloud.com" + + "pute.v1.DeleteZoneOperationResponse\"c\332A\026" + + "project,zone,operation\202\323\344\223\002D*B/compute/v" + + "1/projects/{project}/zones/{zone}/operat" + + "ions/{operation}\022\303\001\n\003Get\0220.google.cloud." + + "compute.v1.GetZoneOperationRequest\032\".goo" + + "gle.cloud.compute.v1.Operation\"f\332A\026proje" + + "ct,zone,operation\220N\001\202\323\344\223\002D\022B/compute/v1/" + + "projects/{project}/zones/{zone}/operatio" + + "ns/{operation}\022\261\001\n\004List\0222.google.cloud.c" + + "ompute.v1.ListZoneOperationsRequest\032&.go" + + "ogle.cloud.compute.v1.OperationList\"M\332A\014" + + "project,zone\202\323\344\223\0028\0226/compute/v1/projects" + + "/{project}/zones/{zone}/operations\022\307\001\n\004W" + + "ait\0221.google.cloud.compute.v1.WaitZoneOp" + + "erationRequest\032\".google.cloud.compute.v1" + + ".Operation\"h\332A\026project,zone,operation\202\323\344" + + "\223\002I\"G/compute/v1/projects/{project}/zone" + + "s/{zone}/operations/{operation}/wait\032r\312A" + + "\026compute.googleapis.com\322AVhttps://www.go" + + "ogleapis.com/auth/compute,https://www.go" + + "ogleapis.com/auth/cloud-platform2\321\003\n\005Zon" + + "es\022\221\001\n\003Get\022\'.google.cloud.compute.v1.Get" + + "ZoneRequest\032\035.google.cloud.compute.v1.Zo" + + "ne\"B\332A\014project,zone\202\323\344\223\002-\022+/compute/v1/p" + + "rojects/{project}/zones/{zone}\022\214\001\n\004List\022" + + ").google.cloud.compute.v1.ListZonesReque" + + "st\032!.google.cloud.compute.v1.ZoneList\"6\332" + + "A\007project\202\323\344\223\002&\022$/compute/v1/projects/{p" + + "roject}/zones\032\244\001\312A\026compute.googleapis.co" + + "m\322A\207\001https://www.googleapis.com/auth/com" + + "pute.readonly,https://www.googleapis.com" + + "/auth/compute,https://www.googleapis.com" + + "/auth/cloud-platformB\247\001\n\033com.google.clou" + + "d.compute.v1P\001Z5cloud.google.com/go/comp" + + "ute/apiv1/computepb;computepb\252\002\027Google.C", + "loud.Compute.V1\312\002\027Google\\Cloud\\Compute\\V" + + "1\352\002\032Google::Cloud::Compute::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -34020,6 +34088,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StrongSessionAffinityCookie", "Subsetting", "TimeoutSec", + "TlsSettings", "UsedBy", }); internal_static_google_cloud_compute_v1_BackendService_MetadatasEntry_descriptor = @@ -34224,8 +34293,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "BackendService", }); - internal_static_google_cloud_compute_v1_BackendServiceUsedBy_descriptor = + internal_static_google_cloud_compute_v1_BackendServiceTlsSettings_descriptor = getDescriptor().getMessageTypes().get(144); + internal_static_google_cloud_compute_v1_BackendServiceTlsSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_compute_v1_BackendServiceTlsSettings_descriptor, + new java.lang.String[] { + "AuthenticationConfig", "Sni", "SubjectAltNames", + }); + internal_static_google_cloud_compute_v1_BackendServiceTlsSettingsSubjectAltName_descriptor = + getDescriptor().getMessageTypes().get(145); + internal_static_google_cloud_compute_v1_BackendServiceTlsSettingsSubjectAltName_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_compute_v1_BackendServiceTlsSettingsSubjectAltName_descriptor, + new java.lang.String[] { + "DnsName", "UniformResourceIdentifier", + }); + internal_static_google_cloud_compute_v1_BackendServiceUsedBy_descriptor = + getDescriptor().getMessageTypes().get(146); internal_static_google_cloud_compute_v1_BackendServiceUsedBy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendServiceUsedBy_descriptor, @@ -34233,7 +34318,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Reference", }); internal_static_google_cloud_compute_v1_BackendServicesScopedList_descriptor = - getDescriptor().getMessageTypes().get(145); + getDescriptor().getMessageTypes().get(147); internal_static_google_cloud_compute_v1_BackendServicesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendServicesScopedList_descriptor, @@ -34241,7 +34326,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BackendServices", "Warning", }); internal_static_google_cloud_compute_v1_BfdPacket_descriptor = - getDescriptor().getMessageTypes().get(146); + getDescriptor().getMessageTypes().get(148); internal_static_google_cloud_compute_v1_BfdPacket_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BfdPacket_descriptor, @@ -34264,7 +34349,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "YourDiscriminator", }); internal_static_google_cloud_compute_v1_BfdStatus_descriptor = - getDescriptor().getMessageTypes().get(147); + getDescriptor().getMessageTypes().get(149); internal_static_google_cloud_compute_v1_BfdStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BfdStatus_descriptor, @@ -34281,7 +34366,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UptimeMs", }); internal_static_google_cloud_compute_v1_BfdStatusPacketCounts_descriptor = - getDescriptor().getMessageTypes().get(148); + getDescriptor().getMessageTypes().get(150); internal_static_google_cloud_compute_v1_BfdStatusPacketCounts_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BfdStatusPacketCounts_descriptor, @@ -34289,7 +34374,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NumRx", "NumRxRejected", "NumRxSuccessful", "NumTx", }); internal_static_google_cloud_compute_v1_BgpRoute_descriptor = - getDescriptor().getMessageTypes().get(149); + getDescriptor().getMessageTypes().get(151); internal_static_google_cloud_compute_v1_BgpRoute_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BgpRoute_descriptor, @@ -34297,7 +34382,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AsPaths", "Communities", "Destination", "Med", "Origin", }); internal_static_google_cloud_compute_v1_BgpRouteAsPath_descriptor = - getDescriptor().getMessageTypes().get(150); + getDescriptor().getMessageTypes().get(152); internal_static_google_cloud_compute_v1_BgpRouteAsPath_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BgpRouteAsPath_descriptor, @@ -34305,7 +34390,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Asns", "Type", }); internal_static_google_cloud_compute_v1_BgpRouteNetworkLayerReachabilityInformation_descriptor = - getDescriptor().getMessageTypes().get(151); + getDescriptor().getMessageTypes().get(153); internal_static_google_cloud_compute_v1_BgpRouteNetworkLayerReachabilityInformation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BgpRouteNetworkLayerReachabilityInformation_descriptor, @@ -34313,7 +34398,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PathId", "Prefix", }); internal_static_google_cloud_compute_v1_Binding_descriptor = - getDescriptor().getMessageTypes().get(152); + getDescriptor().getMessageTypes().get(154); internal_static_google_cloud_compute_v1_Binding_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Binding_descriptor, @@ -34321,7 +34406,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BindingId", "Condition", "Members", "Role", }); internal_static_google_cloud_compute_v1_BulkInsertDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(153); + getDescriptor().getMessageTypes().get(155); internal_static_google_cloud_compute_v1_BulkInsertDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BulkInsertDiskRequest_descriptor, @@ -34329,7 +34414,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BulkInsertDiskResourceResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_BulkInsertDiskResource_descriptor = - getDescriptor().getMessageTypes().get(154); + getDescriptor().getMessageTypes().get(156); internal_static_google_cloud_compute_v1_BulkInsertDiskResource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BulkInsertDiskResource_descriptor, @@ -34337,7 +34422,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SourceConsistencyGroupPolicy", }); internal_static_google_cloud_compute_v1_BulkInsertInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(155); + getDescriptor().getMessageTypes().get(157); internal_static_google_cloud_compute_v1_BulkInsertInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BulkInsertInstanceRequest_descriptor, @@ -34345,7 +34430,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BulkInsertInstanceResourceResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_BulkInsertInstanceResource_descriptor = - getDescriptor().getMessageTypes().get(156); + getDescriptor().getMessageTypes().get(158); internal_static_google_cloud_compute_v1_BulkInsertInstanceResource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BulkInsertInstanceResource_descriptor, @@ -34369,7 +34454,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_BulkInsertInstanceResourcePerInstanceProperties_descriptor = - getDescriptor().getMessageTypes().get(157); + getDescriptor().getMessageTypes().get(159); internal_static_google_cloud_compute_v1_BulkInsertInstanceResourcePerInstanceProperties_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BulkInsertInstanceResourcePerInstanceProperties_descriptor, @@ -34377,7 +34462,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Hostname", "Name", }); internal_static_google_cloud_compute_v1_BulkInsertOperationStatus_descriptor = - getDescriptor().getMessageTypes().get(158); + getDescriptor().getMessageTypes().get(160); internal_static_google_cloud_compute_v1_BulkInsertOperationStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BulkInsertOperationStatus_descriptor, @@ -34389,7 +34474,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TargetVmCount", }); internal_static_google_cloud_compute_v1_BulkInsertRegionDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(159); + getDescriptor().getMessageTypes().get(161); internal_static_google_cloud_compute_v1_BulkInsertRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BulkInsertRegionDiskRequest_descriptor, @@ -34397,7 +34482,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BulkInsertDiskResourceResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_BulkInsertRegionInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(160); + getDescriptor().getMessageTypes().get(162); internal_static_google_cloud_compute_v1_BulkInsertRegionInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BulkInsertRegionInstanceRequest_descriptor, @@ -34405,7 +34490,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BulkInsertInstanceResourceResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_BulkSetLabelsDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(161); + getDescriptor().getMessageTypes().get(163); internal_static_google_cloud_compute_v1_BulkSetLabelsDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BulkSetLabelsDiskRequest_descriptor, @@ -34413,7 +34498,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BulkZoneSetLabelsRequestResource", "Project", "RequestId", "Resource", "Zone", }); internal_static_google_cloud_compute_v1_BulkSetLabelsRequest_descriptor = - getDescriptor().getMessageTypes().get(162); + getDescriptor().getMessageTypes().get(164); internal_static_google_cloud_compute_v1_BulkSetLabelsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BulkSetLabelsRequest_descriptor, @@ -34431,7 +34516,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_BulkZoneSetLabelsRequest_descriptor = - getDescriptor().getMessageTypes().get(163); + getDescriptor().getMessageTypes().get(165); internal_static_google_cloud_compute_v1_BulkZoneSetLabelsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BulkZoneSetLabelsRequest_descriptor, @@ -34439,7 +34524,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Requests", }); internal_static_google_cloud_compute_v1_CacheInvalidationRule_descriptor = - getDescriptor().getMessageTypes().get(164); + getDescriptor().getMessageTypes().get(166); internal_static_google_cloud_compute_v1_CacheInvalidationRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_CacheInvalidationRule_descriptor, @@ -34447,7 +34532,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CacheTags", "Host", "Path", }); internal_static_google_cloud_compute_v1_CacheKeyPolicy_descriptor = - getDescriptor().getMessageTypes().get(165); + getDescriptor().getMessageTypes().get(167); internal_static_google_cloud_compute_v1_CacheKeyPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_CacheKeyPolicy_descriptor, @@ -34461,7 +34546,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "QueryStringWhitelist", }); internal_static_google_cloud_compute_v1_CancelInstanceGroupManagerResizeRequestRequest_descriptor = - getDescriptor().getMessageTypes().get(166); + getDescriptor().getMessageTypes().get(168); internal_static_google_cloud_compute_v1_CancelInstanceGroupManagerResizeRequestRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_CancelInstanceGroupManagerResizeRequestRequest_descriptor, @@ -34469,7 +34554,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceGroupManager", "Project", "RequestId", "ResizeRequest", "Zone", }); internal_static_google_cloud_compute_v1_CircuitBreakers_descriptor = - getDescriptor().getMessageTypes().get(167); + getDescriptor().getMessageTypes().get(169); internal_static_google_cloud_compute_v1_CircuitBreakers_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_CircuitBreakers_descriptor, @@ -34481,7 +34566,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MaxRetries", }); internal_static_google_cloud_compute_v1_CloneRulesFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(168); + getDescriptor().getMessageTypes().get(170); internal_static_google_cloud_compute_v1_CloneRulesFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_CloneRulesFirewallPolicyRequest_descriptor, @@ -34489,7 +34574,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirewallPolicy", "RequestId", "SourceFirewallPolicy", }); internal_static_google_cloud_compute_v1_CloneRulesNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(169); + getDescriptor().getMessageTypes().get(171); internal_static_google_cloud_compute_v1_CloneRulesNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_CloneRulesNetworkFirewallPolicyRequest_descriptor, @@ -34497,7 +34582,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirewallPolicy", "Project", "RequestId", "SourceFirewallPolicy", }); internal_static_google_cloud_compute_v1_CloneRulesRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(170); + getDescriptor().getMessageTypes().get(172); internal_static_google_cloud_compute_v1_CloneRulesRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_CloneRulesRegionNetworkFirewallPolicyRequest_descriptor, @@ -34505,7 +34590,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirewallPolicy", "Project", "Region", "RequestId", "SourceFirewallPolicy", }); internal_static_google_cloud_compute_v1_Commitment_descriptor = - getDescriptor().getMessageTypes().get(171); + getDescriptor().getMessageTypes().get(173); internal_static_google_cloud_compute_v1_Commitment_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Commitment_descriptor, @@ -34535,7 +34620,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Type", }); internal_static_google_cloud_compute_v1_CommitmentAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(172); + getDescriptor().getMessageTypes().get(174); internal_static_google_cloud_compute_v1_CommitmentAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_CommitmentAggregatedList_descriptor, @@ -34553,7 +34638,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_CommitmentList_descriptor = - getDescriptor().getMessageTypes().get(173); + getDescriptor().getMessageTypes().get(175); internal_static_google_cloud_compute_v1_CommitmentList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_CommitmentList_descriptor, @@ -34561,7 +34646,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_CommitmentResourceStatus_descriptor = - getDescriptor().getMessageTypes().get(174); + getDescriptor().getMessageTypes().get(176); internal_static_google_cloud_compute_v1_CommitmentResourceStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_CommitmentResourceStatus_descriptor, @@ -34569,7 +34654,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CustomTermEligibilityEndTimestamp", }); internal_static_google_cloud_compute_v1_CommitmentsScopedList_descriptor = - getDescriptor().getMessageTypes().get(175); + getDescriptor().getMessageTypes().get(177); internal_static_google_cloud_compute_v1_CommitmentsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_CommitmentsScopedList_descriptor, @@ -34577,7 +34662,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Commitments", "Warning", }); internal_static_google_cloud_compute_v1_ConfidentialInstanceConfig_descriptor = - getDescriptor().getMessageTypes().get(176); + getDescriptor().getMessageTypes().get(178); internal_static_google_cloud_compute_v1_ConfidentialInstanceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ConfidentialInstanceConfig_descriptor, @@ -34585,7 +34670,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConfidentialInstanceType", "EnableConfidentialCompute", }); internal_static_google_cloud_compute_v1_ConnectionDraining_descriptor = - getDescriptor().getMessageTypes().get(177); + getDescriptor().getMessageTypes().get(179); internal_static_google_cloud_compute_v1_ConnectionDraining_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ConnectionDraining_descriptor, @@ -34593,7 +34678,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DrainingTimeoutSec", }); internal_static_google_cloud_compute_v1_ConsistentHashLoadBalancerSettings_descriptor = - getDescriptor().getMessageTypes().get(178); + getDescriptor().getMessageTypes().get(180); internal_static_google_cloud_compute_v1_ConsistentHashLoadBalancerSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ConsistentHashLoadBalancerSettings_descriptor, @@ -34601,7 +34686,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "HttpCookie", "HttpHeaderName", "MinimumRingSize", }); internal_static_google_cloud_compute_v1_ConsistentHashLoadBalancerSettingsHttpCookie_descriptor = - getDescriptor().getMessageTypes().get(179); + getDescriptor().getMessageTypes().get(181); internal_static_google_cloud_compute_v1_ConsistentHashLoadBalancerSettingsHttpCookie_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ConsistentHashLoadBalancerSettingsHttpCookie_descriptor, @@ -34609,7 +34694,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Path", "Ttl", }); internal_static_google_cloud_compute_v1_CorsPolicy_descriptor = - getDescriptor().getMessageTypes().get(180); + getDescriptor().getMessageTypes().get(182); internal_static_google_cloud_compute_v1_CorsPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_CorsPolicy_descriptor, @@ -34624,7 +34709,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MaxAge", }); internal_static_google_cloud_compute_v1_CreateInstancesInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(181); + getDescriptor().getMessageTypes().get(183); internal_static_google_cloud_compute_v1_CreateInstancesInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_CreateInstancesInstanceGroupManagerRequest_descriptor, @@ -34636,7 +34721,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Zone", }); internal_static_google_cloud_compute_v1_CreateInstancesRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(182); + getDescriptor().getMessageTypes().get(184); internal_static_google_cloud_compute_v1_CreateInstancesRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_CreateInstancesRegionInstanceGroupManagerRequest_descriptor, @@ -34648,7 +34733,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RequestId", }); internal_static_google_cloud_compute_v1_CreateMembersInterconnectGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(183); + getDescriptor().getMessageTypes().get(185); internal_static_google_cloud_compute_v1_CreateMembersInterconnectGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_CreateMembersInterconnectGroupRequest_descriptor, @@ -34656,7 +34741,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InterconnectGroup", "InterconnectGroupsCreateMembersRequestResource", "Project", }); internal_static_google_cloud_compute_v1_CreateSnapshotDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(184); + getDescriptor().getMessageTypes().get(186); internal_static_google_cloud_compute_v1_CreateSnapshotDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_CreateSnapshotDiskRequest_descriptor, @@ -34664,7 +34749,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Disk", "GuestFlush", "Project", "RequestId", "SnapshotResource", "Zone", }); internal_static_google_cloud_compute_v1_CreateSnapshotRegionDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(185); + getDescriptor().getMessageTypes().get(187); internal_static_google_cloud_compute_v1_CreateSnapshotRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_CreateSnapshotRegionDiskRequest_descriptor, @@ -34672,7 +34757,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Disk", "Project", "Region", "RequestId", "SnapshotResource", }); internal_static_google_cloud_compute_v1_CustomErrorResponsePolicy_descriptor = - getDescriptor().getMessageTypes().get(186); + getDescriptor().getMessageTypes().get(188); internal_static_google_cloud_compute_v1_CustomErrorResponsePolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_CustomErrorResponsePolicy_descriptor, @@ -34680,7 +34765,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ErrorResponseRules", "ErrorService", }); internal_static_google_cloud_compute_v1_CustomErrorResponsePolicyCustomErrorResponseRule_descriptor = - getDescriptor().getMessageTypes().get(187); + getDescriptor().getMessageTypes().get(189); internal_static_google_cloud_compute_v1_CustomErrorResponsePolicyCustomErrorResponseRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_CustomErrorResponsePolicyCustomErrorResponseRule_descriptor, @@ -34688,7 +34773,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MatchResponseCodes", "OverrideResponseCode", "Path", }); internal_static_google_cloud_compute_v1_CustomerEncryptionKey_descriptor = - getDescriptor().getMessageTypes().get(188); + getDescriptor().getMessageTypes().get(190); internal_static_google_cloud_compute_v1_CustomerEncryptionKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_CustomerEncryptionKey_descriptor, @@ -34696,7 +34781,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "KmsKeyName", "KmsKeyServiceAccount", "RawKey", "RsaEncryptedKey", "Sha256", }); internal_static_google_cloud_compute_v1_CustomerEncryptionKeyProtectedDisk_descriptor = - getDescriptor().getMessageTypes().get(189); + getDescriptor().getMessageTypes().get(191); internal_static_google_cloud_compute_v1_CustomerEncryptionKeyProtectedDisk_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_CustomerEncryptionKeyProtectedDisk_descriptor, @@ -34704,7 +34789,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DiskEncryptionKey", "Source", }); internal_static_google_cloud_compute_v1_Data_descriptor = - getDescriptor().getMessageTypes().get(190); + getDescriptor().getMessageTypes().get(192); internal_static_google_cloud_compute_v1_Data_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Data_descriptor, @@ -34712,7 +34797,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_DeleteAccessConfigInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(191); + getDescriptor().getMessageTypes().get(193); internal_static_google_cloud_compute_v1_DeleteAccessConfigInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteAccessConfigInstanceRequest_descriptor, @@ -34720,7 +34805,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AccessConfig", "Instance", "NetworkInterface", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_DeleteAddressRequest_descriptor = - getDescriptor().getMessageTypes().get(192); + getDescriptor().getMessageTypes().get(194); internal_static_google_cloud_compute_v1_DeleteAddressRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteAddressRequest_descriptor, @@ -34728,7 +34813,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Address", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteAutoscalerRequest_descriptor = - getDescriptor().getMessageTypes().get(193); + getDescriptor().getMessageTypes().get(195); internal_static_google_cloud_compute_v1_DeleteAutoscalerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteAutoscalerRequest_descriptor, @@ -34736,7 +34821,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Autoscaler", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_DeleteBackendBucketRequest_descriptor = - getDescriptor().getMessageTypes().get(194); + getDescriptor().getMessageTypes().get(196); internal_static_google_cloud_compute_v1_DeleteBackendBucketRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteBackendBucketRequest_descriptor, @@ -34744,7 +34829,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BackendBucket", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(195); + getDescriptor().getMessageTypes().get(197); internal_static_google_cloud_compute_v1_DeleteBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteBackendServiceRequest_descriptor, @@ -34752,7 +34837,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BackendService", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(196); + getDescriptor().getMessageTypes().get(198); internal_static_google_cloud_compute_v1_DeleteDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteDiskRequest_descriptor, @@ -34760,7 +34845,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Disk", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_DeleteExternalVpnGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(197); + getDescriptor().getMessageTypes().get(199); internal_static_google_cloud_compute_v1_DeleteExternalVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteExternalVpnGatewayRequest_descriptor, @@ -34768,7 +34853,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExternalVpnGateway", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(198); + getDescriptor().getMessageTypes().get(200); internal_static_google_cloud_compute_v1_DeleteFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteFirewallPolicyRequest_descriptor, @@ -34776,7 +34861,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirewallPolicy", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteFirewallRequest_descriptor = - getDescriptor().getMessageTypes().get(199); + getDescriptor().getMessageTypes().get(201); internal_static_google_cloud_compute_v1_DeleteFirewallRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteFirewallRequest_descriptor, @@ -34784,7 +34869,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Firewall", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteForwardingRuleRequest_descriptor = - getDescriptor().getMessageTypes().get(200); + getDescriptor().getMessageTypes().get(202); internal_static_google_cloud_compute_v1_DeleteForwardingRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteForwardingRuleRequest_descriptor, @@ -34792,7 +34877,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ForwardingRule", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteGlobalAddressRequest_descriptor = - getDescriptor().getMessageTypes().get(201); + getDescriptor().getMessageTypes().get(203); internal_static_google_cloud_compute_v1_DeleteGlobalAddressRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteGlobalAddressRequest_descriptor, @@ -34800,7 +34885,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Address", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteGlobalForwardingRuleRequest_descriptor = - getDescriptor().getMessageTypes().get(202); + getDescriptor().getMessageTypes().get(204); internal_static_google_cloud_compute_v1_DeleteGlobalForwardingRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteGlobalForwardingRuleRequest_descriptor, @@ -34808,7 +34893,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ForwardingRule", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteGlobalNetworkEndpointGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(203); + getDescriptor().getMessageTypes().get(205); internal_static_google_cloud_compute_v1_DeleteGlobalNetworkEndpointGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteGlobalNetworkEndpointGroupRequest_descriptor, @@ -34816,7 +34901,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkEndpointGroup", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteGlobalOperationRequest_descriptor = - getDescriptor().getMessageTypes().get(204); + getDescriptor().getMessageTypes().get(206); internal_static_google_cloud_compute_v1_DeleteGlobalOperationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteGlobalOperationRequest_descriptor, @@ -34824,13 +34909,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Operation", "Project", }); internal_static_google_cloud_compute_v1_DeleteGlobalOperationResponse_descriptor = - getDescriptor().getMessageTypes().get(205); + getDescriptor().getMessageTypes().get(207); internal_static_google_cloud_compute_v1_DeleteGlobalOperationResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteGlobalOperationResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_compute_v1_DeleteGlobalOrganizationOperationRequest_descriptor = - getDescriptor().getMessageTypes().get(206); + getDescriptor().getMessageTypes().get(208); internal_static_google_cloud_compute_v1_DeleteGlobalOrganizationOperationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteGlobalOrganizationOperationRequest_descriptor, @@ -34838,13 +34923,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Operation", "ParentId", }); internal_static_google_cloud_compute_v1_DeleteGlobalOrganizationOperationResponse_descriptor = - getDescriptor().getMessageTypes().get(207); + getDescriptor().getMessageTypes().get(209); internal_static_google_cloud_compute_v1_DeleteGlobalOrganizationOperationResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteGlobalOrganizationOperationResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_compute_v1_DeleteGlobalPublicDelegatedPrefixeRequest_descriptor = - getDescriptor().getMessageTypes().get(208); + getDescriptor().getMessageTypes().get(210); internal_static_google_cloud_compute_v1_DeleteGlobalPublicDelegatedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteGlobalPublicDelegatedPrefixeRequest_descriptor, @@ -34852,7 +34937,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PublicDelegatedPrefix", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteHealthCheckRequest_descriptor = - getDescriptor().getMessageTypes().get(209); + getDescriptor().getMessageTypes().get(211); internal_static_google_cloud_compute_v1_DeleteHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteHealthCheckRequest_descriptor, @@ -34860,7 +34945,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "HealthCheck", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteImageRequest_descriptor = - getDescriptor().getMessageTypes().get(210); + getDescriptor().getMessageTypes().get(212); internal_static_google_cloud_compute_v1_DeleteImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteImageRequest_descriptor, @@ -34868,7 +34953,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Image", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(211); + getDescriptor().getMessageTypes().get(213); internal_static_google_cloud_compute_v1_DeleteInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteInstanceGroupManagerRequest_descriptor, @@ -34876,7 +34961,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceGroupManager", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_DeleteInstanceGroupManagerResizeRequestRequest_descriptor = - getDescriptor().getMessageTypes().get(212); + getDescriptor().getMessageTypes().get(214); internal_static_google_cloud_compute_v1_DeleteInstanceGroupManagerResizeRequestRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteInstanceGroupManagerResizeRequestRequest_descriptor, @@ -34884,7 +34969,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceGroupManager", "Project", "RequestId", "ResizeRequest", "Zone", }); internal_static_google_cloud_compute_v1_DeleteInstanceGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(213); + getDescriptor().getMessageTypes().get(215); internal_static_google_cloud_compute_v1_DeleteInstanceGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteInstanceGroupRequest_descriptor, @@ -34892,7 +34977,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceGroup", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_DeleteInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(214); + getDescriptor().getMessageTypes().get(216); internal_static_google_cloud_compute_v1_DeleteInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteInstanceRequest_descriptor, @@ -34900,7 +34985,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Instance", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_DeleteInstanceTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(215); + getDescriptor().getMessageTypes().get(217); internal_static_google_cloud_compute_v1_DeleteInstanceTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteInstanceTemplateRequest_descriptor, @@ -34908,7 +34993,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceTemplate", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteInstancesInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(216); + getDescriptor().getMessageTypes().get(218); internal_static_google_cloud_compute_v1_DeleteInstancesInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteInstancesInstanceGroupManagerRequest_descriptor, @@ -34920,7 +35005,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Zone", }); internal_static_google_cloud_compute_v1_DeleteInstancesRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(217); + getDescriptor().getMessageTypes().get(219); internal_static_google_cloud_compute_v1_DeleteInstancesRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteInstancesRegionInstanceGroupManagerRequest_descriptor, @@ -34932,7 +35017,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RequestId", }); internal_static_google_cloud_compute_v1_DeleteInstantSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(218); + getDescriptor().getMessageTypes().get(220); internal_static_google_cloud_compute_v1_DeleteInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteInstantSnapshotRequest_descriptor, @@ -34940,7 +35025,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstantSnapshot", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_DeleteInterconnectAttachmentGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(219); + getDescriptor().getMessageTypes().get(221); internal_static_google_cloud_compute_v1_DeleteInterconnectAttachmentGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteInterconnectAttachmentGroupRequest_descriptor, @@ -34948,7 +35033,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InterconnectAttachmentGroup", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteInterconnectAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(220); + getDescriptor().getMessageTypes().get(222); internal_static_google_cloud_compute_v1_DeleteInterconnectAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteInterconnectAttachmentRequest_descriptor, @@ -34956,7 +35041,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InterconnectAttachment", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteInterconnectGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(221); + getDescriptor().getMessageTypes().get(223); internal_static_google_cloud_compute_v1_DeleteInterconnectGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteInterconnectGroupRequest_descriptor, @@ -34964,7 +35049,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InterconnectGroup", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteInterconnectRequest_descriptor = - getDescriptor().getMessageTypes().get(222); + getDescriptor().getMessageTypes().get(224); internal_static_google_cloud_compute_v1_DeleteInterconnectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteInterconnectRequest_descriptor, @@ -34972,7 +35057,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Interconnect", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteLicenseRequest_descriptor = - getDescriptor().getMessageTypes().get(223); + getDescriptor().getMessageTypes().get(225); internal_static_google_cloud_compute_v1_DeleteLicenseRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteLicenseRequest_descriptor, @@ -34980,7 +35065,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "License", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteMachineImageRequest_descriptor = - getDescriptor().getMessageTypes().get(224); + getDescriptor().getMessageTypes().get(226); internal_static_google_cloud_compute_v1_DeleteMachineImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteMachineImageRequest_descriptor, @@ -34988,7 +35073,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MachineImage", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteNetworkAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(225); + getDescriptor().getMessageTypes().get(227); internal_static_google_cloud_compute_v1_DeleteNetworkAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteNetworkAttachmentRequest_descriptor, @@ -34996,7 +35081,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkAttachment", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteNetworkEdgeSecurityServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(226); + getDescriptor().getMessageTypes().get(228); internal_static_google_cloud_compute_v1_DeleteNetworkEdgeSecurityServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteNetworkEdgeSecurityServiceRequest_descriptor, @@ -35004,7 +35089,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkEdgeSecurityService", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteNetworkEndpointGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(227); + getDescriptor().getMessageTypes().get(229); internal_static_google_cloud_compute_v1_DeleteNetworkEndpointGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteNetworkEndpointGroupRequest_descriptor, @@ -35012,7 +35097,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkEndpointGroup", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_DeleteNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(228); + getDescriptor().getMessageTypes().get(230); internal_static_google_cloud_compute_v1_DeleteNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteNetworkFirewallPolicyRequest_descriptor, @@ -35020,7 +35105,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirewallPolicy", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteNetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(229); + getDescriptor().getMessageTypes().get(231); internal_static_google_cloud_compute_v1_DeleteNetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteNetworkRequest_descriptor, @@ -35028,7 +35113,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Network", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteNodeGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(230); + getDescriptor().getMessageTypes().get(232); internal_static_google_cloud_compute_v1_DeleteNodeGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteNodeGroupRequest_descriptor, @@ -35036,7 +35121,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NodeGroup", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_DeleteNodeTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(231); + getDescriptor().getMessageTypes().get(233); internal_static_google_cloud_compute_v1_DeleteNodeTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteNodeTemplateRequest_descriptor, @@ -35044,7 +35129,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NodeTemplate", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteNodesNodeGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(232); + getDescriptor().getMessageTypes().get(234); internal_static_google_cloud_compute_v1_DeleteNodesNodeGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteNodesNodeGroupRequest_descriptor, @@ -35052,7 +35137,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NodeGroup", "NodeGroupsDeleteNodesRequestResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_DeletePacketMirroringRequest_descriptor = - getDescriptor().getMessageTypes().get(233); + getDescriptor().getMessageTypes().get(235); internal_static_google_cloud_compute_v1_DeletePacketMirroringRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeletePacketMirroringRequest_descriptor, @@ -35060,7 +35145,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PacketMirroring", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeletePerInstanceConfigsInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(234); + getDescriptor().getMessageTypes().get(236); internal_static_google_cloud_compute_v1_DeletePerInstanceConfigsInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeletePerInstanceConfigsInstanceGroupManagerRequest_descriptor, @@ -35071,7 +35156,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Zone", }); internal_static_google_cloud_compute_v1_DeletePerInstanceConfigsRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(235); + getDescriptor().getMessageTypes().get(237); internal_static_google_cloud_compute_v1_DeletePerInstanceConfigsRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeletePerInstanceConfigsRegionInstanceGroupManagerRequest_descriptor, @@ -35082,7 +35167,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RegionInstanceGroupManagerDeleteInstanceConfigReqResource", }); internal_static_google_cloud_compute_v1_DeletePublicAdvertisedPrefixeRequest_descriptor = - getDescriptor().getMessageTypes().get(236); + getDescriptor().getMessageTypes().get(238); internal_static_google_cloud_compute_v1_DeletePublicAdvertisedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeletePublicAdvertisedPrefixeRequest_descriptor, @@ -35090,7 +35175,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PublicAdvertisedPrefix", "RequestId", }); internal_static_google_cloud_compute_v1_DeletePublicDelegatedPrefixeRequest_descriptor = - getDescriptor().getMessageTypes().get(237); + getDescriptor().getMessageTypes().get(239); internal_static_google_cloud_compute_v1_DeletePublicDelegatedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeletePublicDelegatedPrefixeRequest_descriptor, @@ -35098,7 +35183,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PublicDelegatedPrefix", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteRegionAutoscalerRequest_descriptor = - getDescriptor().getMessageTypes().get(238); + getDescriptor().getMessageTypes().get(240); internal_static_google_cloud_compute_v1_DeleteRegionAutoscalerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionAutoscalerRequest_descriptor, @@ -35106,7 +35191,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Autoscaler", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteRegionBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(239); + getDescriptor().getMessageTypes().get(241); internal_static_google_cloud_compute_v1_DeleteRegionBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionBackendServiceRequest_descriptor, @@ -35114,7 +35199,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BackendService", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteRegionDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(240); + getDescriptor().getMessageTypes().get(242); internal_static_google_cloud_compute_v1_DeleteRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionDiskRequest_descriptor, @@ -35122,7 +35207,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Disk", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteRegionHealthCheckRequest_descriptor = - getDescriptor().getMessageTypes().get(241); + getDescriptor().getMessageTypes().get(243); internal_static_google_cloud_compute_v1_DeleteRegionHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionHealthCheckRequest_descriptor, @@ -35130,7 +35215,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "HealthCheck", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteRegionHealthCheckServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(242); + getDescriptor().getMessageTypes().get(244); internal_static_google_cloud_compute_v1_DeleteRegionHealthCheckServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionHealthCheckServiceRequest_descriptor, @@ -35138,7 +35223,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "HealthCheckService", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(243); + getDescriptor().getMessageTypes().get(245); internal_static_google_cloud_compute_v1_DeleteRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionInstanceGroupManagerRequest_descriptor, @@ -35146,7 +35231,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceGroupManager", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteRegionInstanceTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(244); + getDescriptor().getMessageTypes().get(246); internal_static_google_cloud_compute_v1_DeleteRegionInstanceTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionInstanceTemplateRequest_descriptor, @@ -35154,7 +35239,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceTemplate", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteRegionInstantSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(245); + getDescriptor().getMessageTypes().get(247); internal_static_google_cloud_compute_v1_DeleteRegionInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionInstantSnapshotRequest_descriptor, @@ -35162,7 +35247,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstantSnapshot", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteRegionNetworkEndpointGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(246); + getDescriptor().getMessageTypes().get(248); internal_static_google_cloud_compute_v1_DeleteRegionNetworkEndpointGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionNetworkEndpointGroupRequest_descriptor, @@ -35170,7 +35255,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkEndpointGroup", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(247); + getDescriptor().getMessageTypes().get(249); internal_static_google_cloud_compute_v1_DeleteRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionNetworkFirewallPolicyRequest_descriptor, @@ -35178,7 +35263,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirewallPolicy", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteRegionNotificationEndpointRequest_descriptor = - getDescriptor().getMessageTypes().get(248); + getDescriptor().getMessageTypes().get(250); internal_static_google_cloud_compute_v1_DeleteRegionNotificationEndpointRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionNotificationEndpointRequest_descriptor, @@ -35186,7 +35271,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NotificationEndpoint", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteRegionOperationRequest_descriptor = - getDescriptor().getMessageTypes().get(249); + getDescriptor().getMessageTypes().get(251); internal_static_google_cloud_compute_v1_DeleteRegionOperationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionOperationRequest_descriptor, @@ -35194,13 +35279,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Operation", "Project", "Region", }); internal_static_google_cloud_compute_v1_DeleteRegionOperationResponse_descriptor = - getDescriptor().getMessageTypes().get(250); + getDescriptor().getMessageTypes().get(252); internal_static_google_cloud_compute_v1_DeleteRegionOperationResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionOperationResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_compute_v1_DeleteRegionSecurityPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(251); + getDescriptor().getMessageTypes().get(253); internal_static_google_cloud_compute_v1_DeleteRegionSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionSecurityPolicyRequest_descriptor, @@ -35208,7 +35293,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "RequestId", "SecurityPolicy", }); internal_static_google_cloud_compute_v1_DeleteRegionSslCertificateRequest_descriptor = - getDescriptor().getMessageTypes().get(252); + getDescriptor().getMessageTypes().get(254); internal_static_google_cloud_compute_v1_DeleteRegionSslCertificateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionSslCertificateRequest_descriptor, @@ -35216,7 +35301,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "RequestId", "SslCertificate", }); internal_static_google_cloud_compute_v1_DeleteRegionSslPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(253); + getDescriptor().getMessageTypes().get(255); internal_static_google_cloud_compute_v1_DeleteRegionSslPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionSslPolicyRequest_descriptor, @@ -35224,7 +35309,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "RequestId", "SslPolicy", }); internal_static_google_cloud_compute_v1_DeleteRegionTargetHttpProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(254); + getDescriptor().getMessageTypes().get(256); internal_static_google_cloud_compute_v1_DeleteRegionTargetHttpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionTargetHttpProxyRequest_descriptor, @@ -35232,7 +35317,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "RequestId", "TargetHttpProxy", }); internal_static_google_cloud_compute_v1_DeleteRegionTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(255); + getDescriptor().getMessageTypes().get(257); internal_static_google_cloud_compute_v1_DeleteRegionTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionTargetHttpsProxyRequest_descriptor, @@ -35240,7 +35325,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "RequestId", "TargetHttpsProxy", }); internal_static_google_cloud_compute_v1_DeleteRegionTargetTcpProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(256); + getDescriptor().getMessageTypes().get(258); internal_static_google_cloud_compute_v1_DeleteRegionTargetTcpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionTargetTcpProxyRequest_descriptor, @@ -35248,7 +35333,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "RequestId", "TargetTcpProxy", }); internal_static_google_cloud_compute_v1_DeleteRegionUrlMapRequest_descriptor = - getDescriptor().getMessageTypes().get(257); + getDescriptor().getMessageTypes().get(259); internal_static_google_cloud_compute_v1_DeleteRegionUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionUrlMapRequest_descriptor, @@ -35256,7 +35341,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "RequestId", "UrlMap", }); internal_static_google_cloud_compute_v1_DeleteReservationRequest_descriptor = - getDescriptor().getMessageTypes().get(258); + getDescriptor().getMessageTypes().get(260); internal_static_google_cloud_compute_v1_DeleteReservationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteReservationRequest_descriptor, @@ -35264,7 +35349,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "RequestId", "Reservation", "Zone", }); internal_static_google_cloud_compute_v1_DeleteResourcePolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(259); + getDescriptor().getMessageTypes().get(261); internal_static_google_cloud_compute_v1_DeleteResourcePolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteResourcePolicyRequest_descriptor, @@ -35272,7 +35357,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "RequestId", "ResourcePolicy", }); internal_static_google_cloud_compute_v1_DeleteRoutePolicyRouterRequest_descriptor = - getDescriptor().getMessageTypes().get(260); + getDescriptor().getMessageTypes().get(262); internal_static_google_cloud_compute_v1_DeleteRoutePolicyRouterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRoutePolicyRouterRequest_descriptor, @@ -35280,7 +35365,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Policy", "Project", "Region", "RequestId", "Router", }); internal_static_google_cloud_compute_v1_DeleteRouteRequest_descriptor = - getDescriptor().getMessageTypes().get(261); + getDescriptor().getMessageTypes().get(263); internal_static_google_cloud_compute_v1_DeleteRouteRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRouteRequest_descriptor, @@ -35288,7 +35373,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "RequestId", "Route", }); internal_static_google_cloud_compute_v1_DeleteRouterRequest_descriptor = - getDescriptor().getMessageTypes().get(262); + getDescriptor().getMessageTypes().get(264); internal_static_google_cloud_compute_v1_DeleteRouterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRouterRequest_descriptor, @@ -35296,7 +35381,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "RequestId", "Router", }); internal_static_google_cloud_compute_v1_DeleteSecurityPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(263); + getDescriptor().getMessageTypes().get(265); internal_static_google_cloud_compute_v1_DeleteSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteSecurityPolicyRequest_descriptor, @@ -35304,7 +35389,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "RequestId", "SecurityPolicy", }); internal_static_google_cloud_compute_v1_DeleteServiceAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(264); + getDescriptor().getMessageTypes().get(266); internal_static_google_cloud_compute_v1_DeleteServiceAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteServiceAttachmentRequest_descriptor, @@ -35312,7 +35397,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "RequestId", "ServiceAttachment", }); internal_static_google_cloud_compute_v1_DeleteSignedUrlKeyBackendBucketRequest_descriptor = - getDescriptor().getMessageTypes().get(265); + getDescriptor().getMessageTypes().get(267); internal_static_google_cloud_compute_v1_DeleteSignedUrlKeyBackendBucketRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteSignedUrlKeyBackendBucketRequest_descriptor, @@ -35320,7 +35405,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BackendBucket", "KeyName", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteSignedUrlKeyBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(266); + getDescriptor().getMessageTypes().get(268); internal_static_google_cloud_compute_v1_DeleteSignedUrlKeyBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteSignedUrlKeyBackendServiceRequest_descriptor, @@ -35328,7 +35413,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BackendService", "KeyName", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(267); + getDescriptor().getMessageTypes().get(269); internal_static_google_cloud_compute_v1_DeleteSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteSnapshotRequest_descriptor, @@ -35336,7 +35421,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "RequestId", "Snapshot", }); internal_static_google_cloud_compute_v1_DeleteSslCertificateRequest_descriptor = - getDescriptor().getMessageTypes().get(268); + getDescriptor().getMessageTypes().get(270); internal_static_google_cloud_compute_v1_DeleteSslCertificateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteSslCertificateRequest_descriptor, @@ -35344,7 +35429,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "RequestId", "SslCertificate", }); internal_static_google_cloud_compute_v1_DeleteSslPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(269); + getDescriptor().getMessageTypes().get(271); internal_static_google_cloud_compute_v1_DeleteSslPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteSslPolicyRequest_descriptor, @@ -35352,7 +35437,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "RequestId", "SslPolicy", }); internal_static_google_cloud_compute_v1_DeleteStoragePoolRequest_descriptor = - getDescriptor().getMessageTypes().get(270); + getDescriptor().getMessageTypes().get(272); internal_static_google_cloud_compute_v1_DeleteStoragePoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteStoragePoolRequest_descriptor, @@ -35360,7 +35445,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "RequestId", "StoragePool", "Zone", }); internal_static_google_cloud_compute_v1_DeleteSubnetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(271); + getDescriptor().getMessageTypes().get(273); internal_static_google_cloud_compute_v1_DeleteSubnetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteSubnetworkRequest_descriptor, @@ -35368,7 +35453,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "RequestId", "Subnetwork", }); internal_static_google_cloud_compute_v1_DeleteTargetGrpcProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(272); + getDescriptor().getMessageTypes().get(274); internal_static_google_cloud_compute_v1_DeleteTargetGrpcProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteTargetGrpcProxyRequest_descriptor, @@ -35376,7 +35461,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "RequestId", "TargetGrpcProxy", }); internal_static_google_cloud_compute_v1_DeleteTargetHttpProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(273); + getDescriptor().getMessageTypes().get(275); internal_static_google_cloud_compute_v1_DeleteTargetHttpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteTargetHttpProxyRequest_descriptor, @@ -35384,7 +35469,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "RequestId", "TargetHttpProxy", }); internal_static_google_cloud_compute_v1_DeleteTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(274); + getDescriptor().getMessageTypes().get(276); internal_static_google_cloud_compute_v1_DeleteTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteTargetHttpsProxyRequest_descriptor, @@ -35392,7 +35477,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "RequestId", "TargetHttpsProxy", }); internal_static_google_cloud_compute_v1_DeleteTargetInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(275); + getDescriptor().getMessageTypes().get(277); internal_static_google_cloud_compute_v1_DeleteTargetInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteTargetInstanceRequest_descriptor, @@ -35400,7 +35485,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "RequestId", "TargetInstance", "Zone", }); internal_static_google_cloud_compute_v1_DeleteTargetPoolRequest_descriptor = - getDescriptor().getMessageTypes().get(276); + getDescriptor().getMessageTypes().get(278); internal_static_google_cloud_compute_v1_DeleteTargetPoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteTargetPoolRequest_descriptor, @@ -35408,7 +35493,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "RequestId", "TargetPool", }); internal_static_google_cloud_compute_v1_DeleteTargetSslProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(277); + getDescriptor().getMessageTypes().get(279); internal_static_google_cloud_compute_v1_DeleteTargetSslProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteTargetSslProxyRequest_descriptor, @@ -35416,7 +35501,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "RequestId", "TargetSslProxy", }); internal_static_google_cloud_compute_v1_DeleteTargetTcpProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(278); + getDescriptor().getMessageTypes().get(280); internal_static_google_cloud_compute_v1_DeleteTargetTcpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteTargetTcpProxyRequest_descriptor, @@ -35424,7 +35509,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "RequestId", "TargetTcpProxy", }); internal_static_google_cloud_compute_v1_DeleteTargetVpnGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(279); + getDescriptor().getMessageTypes().get(281); internal_static_google_cloud_compute_v1_DeleteTargetVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteTargetVpnGatewayRequest_descriptor, @@ -35432,7 +35517,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "RequestId", "TargetVpnGateway", }); internal_static_google_cloud_compute_v1_DeleteUrlMapRequest_descriptor = - getDescriptor().getMessageTypes().get(280); + getDescriptor().getMessageTypes().get(282); internal_static_google_cloud_compute_v1_DeleteUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteUrlMapRequest_descriptor, @@ -35440,7 +35525,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "RequestId", "UrlMap", }); internal_static_google_cloud_compute_v1_DeleteVpnGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(281); + getDescriptor().getMessageTypes().get(283); internal_static_google_cloud_compute_v1_DeleteVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteVpnGatewayRequest_descriptor, @@ -35448,7 +35533,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "RequestId", "VpnGateway", }); internal_static_google_cloud_compute_v1_DeleteVpnTunnelRequest_descriptor = - getDescriptor().getMessageTypes().get(282); + getDescriptor().getMessageTypes().get(284); internal_static_google_cloud_compute_v1_DeleteVpnTunnelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteVpnTunnelRequest_descriptor, @@ -35456,7 +35541,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "RequestId", "VpnTunnel", }); internal_static_google_cloud_compute_v1_DeleteZoneOperationRequest_descriptor = - getDescriptor().getMessageTypes().get(283); + getDescriptor().getMessageTypes().get(285); internal_static_google_cloud_compute_v1_DeleteZoneOperationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteZoneOperationRequest_descriptor, @@ -35464,13 +35549,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Operation", "Project", "Zone", }); internal_static_google_cloud_compute_v1_DeleteZoneOperationResponse_descriptor = - getDescriptor().getMessageTypes().get(284); + getDescriptor().getMessageTypes().get(286); internal_static_google_cloud_compute_v1_DeleteZoneOperationResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteZoneOperationResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_compute_v1_Denied_descriptor = - getDescriptor().getMessageTypes().get(285); + getDescriptor().getMessageTypes().get(287); internal_static_google_cloud_compute_v1_Denied_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Denied_descriptor, @@ -35478,7 +35563,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IPProtocol", "Ports", }); internal_static_google_cloud_compute_v1_DeprecateImageRequest_descriptor = - getDescriptor().getMessageTypes().get(286); + getDescriptor().getMessageTypes().get(288); internal_static_google_cloud_compute_v1_DeprecateImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeprecateImageRequest_descriptor, @@ -35486,7 +35571,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DeprecationStatusResource", "Image", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeprecationStatus_descriptor = - getDescriptor().getMessageTypes().get(287); + getDescriptor().getMessageTypes().get(289); internal_static_google_cloud_compute_v1_DeprecationStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeprecationStatus_descriptor, @@ -35494,7 +35579,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Deleted", "Deprecated", "Obsolete", "Replacement", "State", }); internal_static_google_cloud_compute_v1_DetachDiskInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(288); + getDescriptor().getMessageTypes().get(290); internal_static_google_cloud_compute_v1_DetachDiskInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DetachDiskInstanceRequest_descriptor, @@ -35502,7 +35587,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DeviceName", "Instance", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_DetachNetworkEndpointsGlobalNetworkEndpointGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(289); + getDescriptor().getMessageTypes().get(291); internal_static_google_cloud_compute_v1_DetachNetworkEndpointsGlobalNetworkEndpointGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DetachNetworkEndpointsGlobalNetworkEndpointGroupRequest_descriptor, @@ -35513,7 +35598,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RequestId", }); internal_static_google_cloud_compute_v1_DetachNetworkEndpointsNetworkEndpointGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(290); + getDescriptor().getMessageTypes().get(292); internal_static_google_cloud_compute_v1_DetachNetworkEndpointsNetworkEndpointGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DetachNetworkEndpointsNetworkEndpointGroupRequest_descriptor, @@ -35525,7 +35610,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Zone", }); internal_static_google_cloud_compute_v1_DetachNetworkEndpointsRegionNetworkEndpointGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(291); + getDescriptor().getMessageTypes().get(293); internal_static_google_cloud_compute_v1_DetachNetworkEndpointsRegionNetworkEndpointGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DetachNetworkEndpointsRegionNetworkEndpointGroupRequest_descriptor, @@ -35537,7 +35622,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RequestId", }); internal_static_google_cloud_compute_v1_DisableXpnHostProjectRequest_descriptor = - getDescriptor().getMessageTypes().get(292); + getDescriptor().getMessageTypes().get(294); internal_static_google_cloud_compute_v1_DisableXpnHostProjectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DisableXpnHostProjectRequest_descriptor, @@ -35545,7 +35630,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DisableXpnResourceProjectRequest_descriptor = - getDescriptor().getMessageTypes().get(293); + getDescriptor().getMessageTypes().get(295); internal_static_google_cloud_compute_v1_DisableXpnResourceProjectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DisableXpnResourceProjectRequest_descriptor, @@ -35553,7 +35638,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "ProjectsDisableXpnResourceRequestResource", "RequestId", }); internal_static_google_cloud_compute_v1_Disk_descriptor = - getDescriptor().getMessageTypes().get(294); + getDescriptor().getMessageTypes().get(296); internal_static_google_cloud_compute_v1_Disk_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Disk_descriptor, @@ -35626,7 +35711,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_DiskAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(295); + getDescriptor().getMessageTypes().get(297); internal_static_google_cloud_compute_v1_DiskAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DiskAggregatedList_descriptor, @@ -35644,7 +35729,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_DiskAsyncReplication_descriptor = - getDescriptor().getMessageTypes().get(296); + getDescriptor().getMessageTypes().get(298); internal_static_google_cloud_compute_v1_DiskAsyncReplication_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DiskAsyncReplication_descriptor, @@ -35652,7 +35737,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConsistencyGroupPolicy", "ConsistencyGroupPolicyId", "Disk", "DiskId", }); internal_static_google_cloud_compute_v1_DiskAsyncReplicationList_descriptor = - getDescriptor().getMessageTypes().get(297); + getDescriptor().getMessageTypes().get(299); internal_static_google_cloud_compute_v1_DiskAsyncReplicationList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DiskAsyncReplicationList_descriptor, @@ -35660,7 +35745,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AsyncReplicationDisk", }); internal_static_google_cloud_compute_v1_DiskInstantiationConfig_descriptor = - getDescriptor().getMessageTypes().get(298); + getDescriptor().getMessageTypes().get(300); internal_static_google_cloud_compute_v1_DiskInstantiationConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DiskInstantiationConfig_descriptor, @@ -35668,7 +35753,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AutoDelete", "CustomImage", "DeviceName", "InstantiateFrom", }); internal_static_google_cloud_compute_v1_DiskList_descriptor = - getDescriptor().getMessageTypes().get(299); + getDescriptor().getMessageTypes().get(301); internal_static_google_cloud_compute_v1_DiskList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DiskList_descriptor, @@ -35676,7 +35761,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_DiskMoveRequest_descriptor = - getDescriptor().getMessageTypes().get(300); + getDescriptor().getMessageTypes().get(302); internal_static_google_cloud_compute_v1_DiskMoveRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DiskMoveRequest_descriptor, @@ -35684,7 +35769,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DestinationZone", "TargetDisk", }); internal_static_google_cloud_compute_v1_DiskParams_descriptor = - getDescriptor().getMessageTypes().get(301); + getDescriptor().getMessageTypes().get(303); internal_static_google_cloud_compute_v1_DiskParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DiskParams_descriptor, @@ -35700,7 +35785,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_DiskResourceStatus_descriptor = - getDescriptor().getMessageTypes().get(302); + getDescriptor().getMessageTypes().get(304); internal_static_google_cloud_compute_v1_DiskResourceStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DiskResourceStatus_descriptor, @@ -35718,7 +35803,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_DiskResourceStatusAsyncReplicationStatus_descriptor = - getDescriptor().getMessageTypes().get(303); + getDescriptor().getMessageTypes().get(305); internal_static_google_cloud_compute_v1_DiskResourceStatusAsyncReplicationStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DiskResourceStatusAsyncReplicationStatus_descriptor, @@ -35726,7 +35811,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "State", }); internal_static_google_cloud_compute_v1_DiskType_descriptor = - getDescriptor().getMessageTypes().get(304); + getDescriptor().getMessageTypes().get(306); internal_static_google_cloud_compute_v1_DiskType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DiskType_descriptor, @@ -35744,7 +35829,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Zone", }); internal_static_google_cloud_compute_v1_DiskTypeAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(305); + getDescriptor().getMessageTypes().get(307); internal_static_google_cloud_compute_v1_DiskTypeAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DiskTypeAggregatedList_descriptor, @@ -35762,7 +35847,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_DiskTypeList_descriptor = - getDescriptor().getMessageTypes().get(306); + getDescriptor().getMessageTypes().get(308); internal_static_google_cloud_compute_v1_DiskTypeList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DiskTypeList_descriptor, @@ -35770,7 +35855,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_DiskTypesScopedList_descriptor = - getDescriptor().getMessageTypes().get(307); + getDescriptor().getMessageTypes().get(309); internal_static_google_cloud_compute_v1_DiskTypesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DiskTypesScopedList_descriptor, @@ -35778,7 +35863,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DiskTypes", "Warning", }); internal_static_google_cloud_compute_v1_DisksAddResourcePoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(308); + getDescriptor().getMessageTypes().get(310); internal_static_google_cloud_compute_v1_DisksAddResourcePoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DisksAddResourcePoliciesRequest_descriptor, @@ -35786,7 +35871,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ResourcePolicies", }); internal_static_google_cloud_compute_v1_DisksRemoveResourcePoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(309); + getDescriptor().getMessageTypes().get(311); internal_static_google_cloud_compute_v1_DisksRemoveResourcePoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DisksRemoveResourcePoliciesRequest_descriptor, @@ -35794,7 +35879,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ResourcePolicies", }); internal_static_google_cloud_compute_v1_DisksResizeRequest_descriptor = - getDescriptor().getMessageTypes().get(310); + getDescriptor().getMessageTypes().get(312); internal_static_google_cloud_compute_v1_DisksResizeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DisksResizeRequest_descriptor, @@ -35802,7 +35887,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SizeGb", }); internal_static_google_cloud_compute_v1_DisksScopedList_descriptor = - getDescriptor().getMessageTypes().get(311); + getDescriptor().getMessageTypes().get(313); internal_static_google_cloud_compute_v1_DisksScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DisksScopedList_descriptor, @@ -35810,7 +35895,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Disks", "Warning", }); internal_static_google_cloud_compute_v1_DisksStartAsyncReplicationRequest_descriptor = - getDescriptor().getMessageTypes().get(312); + getDescriptor().getMessageTypes().get(314); internal_static_google_cloud_compute_v1_DisksStartAsyncReplicationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DisksStartAsyncReplicationRequest_descriptor, @@ -35818,7 +35903,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AsyncSecondaryDisk", }); internal_static_google_cloud_compute_v1_DisksStopGroupAsyncReplicationResource_descriptor = - getDescriptor().getMessageTypes().get(313); + getDescriptor().getMessageTypes().get(315); internal_static_google_cloud_compute_v1_DisksStopGroupAsyncReplicationResource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DisksStopGroupAsyncReplicationResource_descriptor, @@ -35826,7 +35911,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ResourcePolicy", }); internal_static_google_cloud_compute_v1_DisplayDevice_descriptor = - getDescriptor().getMessageTypes().get(314); + getDescriptor().getMessageTypes().get(316); internal_static_google_cloud_compute_v1_DisplayDevice_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DisplayDevice_descriptor, @@ -35834,7 +35919,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EnableDisplay", }); internal_static_google_cloud_compute_v1_DistributionPolicy_descriptor = - getDescriptor().getMessageTypes().get(315); + getDescriptor().getMessageTypes().get(317); internal_static_google_cloud_compute_v1_DistributionPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DistributionPolicy_descriptor, @@ -35842,7 +35927,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TargetShape", "Zones", }); internal_static_google_cloud_compute_v1_DistributionPolicyZoneConfiguration_descriptor = - getDescriptor().getMessageTypes().get(316); + getDescriptor().getMessageTypes().get(318); internal_static_google_cloud_compute_v1_DistributionPolicyZoneConfiguration_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DistributionPolicyZoneConfiguration_descriptor, @@ -35850,7 +35935,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Zone", }); internal_static_google_cloud_compute_v1_Duration_descriptor = - getDescriptor().getMessageTypes().get(317); + getDescriptor().getMessageTypes().get(319); internal_static_google_cloud_compute_v1_Duration_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Duration_descriptor, @@ -35858,7 +35943,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Nanos", "Seconds", }); internal_static_google_cloud_compute_v1_EnableXpnHostProjectRequest_descriptor = - getDescriptor().getMessageTypes().get(318); + getDescriptor().getMessageTypes().get(320); internal_static_google_cloud_compute_v1_EnableXpnHostProjectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_EnableXpnHostProjectRequest_descriptor, @@ -35866,7 +35951,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "RequestId", }); internal_static_google_cloud_compute_v1_EnableXpnResourceProjectRequest_descriptor = - getDescriptor().getMessageTypes().get(319); + getDescriptor().getMessageTypes().get(321); internal_static_google_cloud_compute_v1_EnableXpnResourceProjectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_EnableXpnResourceProjectRequest_descriptor, @@ -35874,7 +35959,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "ProjectsEnableXpnResourceRequestResource", "RequestId", }); internal_static_google_cloud_compute_v1_Error_descriptor = - getDescriptor().getMessageTypes().get(320); + getDescriptor().getMessageTypes().get(322); internal_static_google_cloud_compute_v1_Error_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Error_descriptor, @@ -35882,7 +35967,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Errors", }); internal_static_google_cloud_compute_v1_ErrorDetails_descriptor = - getDescriptor().getMessageTypes().get(321); + getDescriptor().getMessageTypes().get(323); internal_static_google_cloud_compute_v1_ErrorDetails_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ErrorDetails_descriptor, @@ -35890,7 +35975,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ErrorInfo", "Help", "LocalizedMessage", "QuotaInfo", }); internal_static_google_cloud_compute_v1_ErrorInfo_descriptor = - getDescriptor().getMessageTypes().get(322); + getDescriptor().getMessageTypes().get(324); internal_static_google_cloud_compute_v1_ErrorInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ErrorInfo_descriptor, @@ -35906,7 +35991,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_Errors_descriptor = - getDescriptor().getMessageTypes().get(323); + getDescriptor().getMessageTypes().get(325); internal_static_google_cloud_compute_v1_Errors_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Errors_descriptor, @@ -35914,7 +35999,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Code", "ErrorDetails", "Location", "Message", }); internal_static_google_cloud_compute_v1_ExchangedPeeringRoute_descriptor = - getDescriptor().getMessageTypes().get(324); + getDescriptor().getMessageTypes().get(326); internal_static_google_cloud_compute_v1_ExchangedPeeringRoute_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ExchangedPeeringRoute_descriptor, @@ -35922,7 +36007,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DestRange", "Imported", "NextHopRegion", "Priority", "Type", }); internal_static_google_cloud_compute_v1_ExchangedPeeringRoutesList_descriptor = - getDescriptor().getMessageTypes().get(325); + getDescriptor().getMessageTypes().get(327); internal_static_google_cloud_compute_v1_ExchangedPeeringRoutesList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ExchangedPeeringRoutesList_descriptor, @@ -35930,7 +36015,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_ExpandIpCidrRangeSubnetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(326); + getDescriptor().getMessageTypes().get(328); internal_static_google_cloud_compute_v1_ExpandIpCidrRangeSubnetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ExpandIpCidrRangeSubnetworkRequest_descriptor, @@ -35942,7 +36027,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SubnetworksExpandIpCidrRangeRequestResource", }); internal_static_google_cloud_compute_v1_Expr_descriptor = - getDescriptor().getMessageTypes().get(327); + getDescriptor().getMessageTypes().get(329); internal_static_google_cloud_compute_v1_Expr_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Expr_descriptor, @@ -35950,7 +36035,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Description", "Expression", "Location", "Title", }); internal_static_google_cloud_compute_v1_ExternalVpnGateway_descriptor = - getDescriptor().getMessageTypes().get(328); + getDescriptor().getMessageTypes().get(330); internal_static_google_cloud_compute_v1_ExternalVpnGateway_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ExternalVpnGateway_descriptor, @@ -35977,7 +36062,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_ExternalVpnGatewayInterface_descriptor = - getDescriptor().getMessageTypes().get(329); + getDescriptor().getMessageTypes().get(331); internal_static_google_cloud_compute_v1_ExternalVpnGatewayInterface_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ExternalVpnGatewayInterface_descriptor, @@ -35985,7 +36070,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Id", "IpAddress", "Ipv6Address", }); internal_static_google_cloud_compute_v1_ExternalVpnGatewayList_descriptor = - getDescriptor().getMessageTypes().get(330); + getDescriptor().getMessageTypes().get(332); internal_static_google_cloud_compute_v1_ExternalVpnGatewayList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ExternalVpnGatewayList_descriptor, @@ -35993,7 +36078,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Etag", "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_FileContentBuffer_descriptor = - getDescriptor().getMessageTypes().get(331); + getDescriptor().getMessageTypes().get(333); internal_static_google_cloud_compute_v1_FileContentBuffer_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_FileContentBuffer_descriptor, @@ -36001,7 +36086,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Content", "FileType", }); internal_static_google_cloud_compute_v1_Firewall_descriptor = - getDescriptor().getMessageTypes().get(332); + getDescriptor().getMessageTypes().get(334); internal_static_google_cloud_compute_v1_Firewall_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Firewall_descriptor, @@ -36028,7 +36113,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TargetTags", }); internal_static_google_cloud_compute_v1_FirewallList_descriptor = - getDescriptor().getMessageTypes().get(333); + getDescriptor().getMessageTypes().get(335); internal_static_google_cloud_compute_v1_FirewallList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_FirewallList_descriptor, @@ -36036,7 +36121,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_FirewallLogConfig_descriptor = - getDescriptor().getMessageTypes().get(334); + getDescriptor().getMessageTypes().get(336); internal_static_google_cloud_compute_v1_FirewallLogConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_FirewallLogConfig_descriptor, @@ -36044,7 +36129,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Enable", "Metadata", }); internal_static_google_cloud_compute_v1_FirewallParams_descriptor = - getDescriptor().getMessageTypes().get(335); + getDescriptor().getMessageTypes().get(337); internal_static_google_cloud_compute_v1_FirewallParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_FirewallParams_descriptor, @@ -36060,7 +36145,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_FirewallPoliciesListAssociationsResponse_descriptor = - getDescriptor().getMessageTypes().get(336); + getDescriptor().getMessageTypes().get(338); internal_static_google_cloud_compute_v1_FirewallPoliciesListAssociationsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_FirewallPoliciesListAssociationsResponse_descriptor, @@ -36068,7 +36153,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Associations", "Kind", }); internal_static_google_cloud_compute_v1_FirewallPoliciesScopedList_descriptor = - getDescriptor().getMessageTypes().get(337); + getDescriptor().getMessageTypes().get(339); internal_static_google_cloud_compute_v1_FirewallPoliciesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_FirewallPoliciesScopedList_descriptor, @@ -36076,7 +36161,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirewallPolicies", "Warning", }); internal_static_google_cloud_compute_v1_FirewallPolicy_descriptor = - getDescriptor().getMessageTypes().get(338); + getDescriptor().getMessageTypes().get(340); internal_static_google_cloud_compute_v1_FirewallPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_FirewallPolicy_descriptor, @@ -36099,7 +36184,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ShortName", }); internal_static_google_cloud_compute_v1_FirewallPolicyAssociation_descriptor = - getDescriptor().getMessageTypes().get(339); + getDescriptor().getMessageTypes().get(341); internal_static_google_cloud_compute_v1_FirewallPolicyAssociation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_FirewallPolicyAssociation_descriptor, @@ -36107,7 +36192,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AttachmentTarget", "DisplayName", "FirewallPolicyId", "Name", "ShortName", }); internal_static_google_cloud_compute_v1_FirewallPolicyList_descriptor = - getDescriptor().getMessageTypes().get(340); + getDescriptor().getMessageTypes().get(342); internal_static_google_cloud_compute_v1_FirewallPolicyList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_FirewallPolicyList_descriptor, @@ -36115,7 +36200,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Id", "Items", "Kind", "NextPageToken", "Warning", }); internal_static_google_cloud_compute_v1_FirewallPolicyRule_descriptor = - getDescriptor().getMessageTypes().get(341); + getDescriptor().getMessageTypes().get(343); internal_static_google_cloud_compute_v1_FirewallPolicyRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_FirewallPolicyRule_descriptor, @@ -36137,7 +36222,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TlsInspect", }); internal_static_google_cloud_compute_v1_FirewallPolicyRuleMatcher_descriptor = - getDescriptor().getMessageTypes().get(342); + getDescriptor().getMessageTypes().get(344); internal_static_google_cloud_compute_v1_FirewallPolicyRuleMatcher_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_FirewallPolicyRuleMatcher_descriptor, @@ -36159,7 +36244,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SrcThreatIntelligences", }); internal_static_google_cloud_compute_v1_FirewallPolicyRuleMatcherLayer4Config_descriptor = - getDescriptor().getMessageTypes().get(343); + getDescriptor().getMessageTypes().get(345); internal_static_google_cloud_compute_v1_FirewallPolicyRuleMatcherLayer4Config_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_FirewallPolicyRuleMatcherLayer4Config_descriptor, @@ -36167,7 +36252,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IpProtocol", "Ports", }); internal_static_google_cloud_compute_v1_FirewallPolicyRuleSecureTag_descriptor = - getDescriptor().getMessageTypes().get(344); + getDescriptor().getMessageTypes().get(346); internal_static_google_cloud_compute_v1_FirewallPolicyRuleSecureTag_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_FirewallPolicyRuleSecureTag_descriptor, @@ -36175,7 +36260,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "State", }); internal_static_google_cloud_compute_v1_FixedOrPercent_descriptor = - getDescriptor().getMessageTypes().get(345); + getDescriptor().getMessageTypes().get(347); internal_static_google_cloud_compute_v1_FixedOrPercent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_FixedOrPercent_descriptor, @@ -36183,7 +36268,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Calculated", "Fixed", "Percent", }); internal_static_google_cloud_compute_v1_ForwardingRule_descriptor = - getDescriptor().getMessageTypes().get(346); + getDescriptor().getMessageTypes().get(348); internal_static_google_cloud_compute_v1_ForwardingRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ForwardingRule_descriptor, @@ -36236,7 +36321,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_ForwardingRuleAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(347); + getDescriptor().getMessageTypes().get(349); internal_static_google_cloud_compute_v1_ForwardingRuleAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ForwardingRuleAggregatedList_descriptor, @@ -36254,7 +36339,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_ForwardingRuleList_descriptor = - getDescriptor().getMessageTypes().get(348); + getDescriptor().getMessageTypes().get(350); internal_static_google_cloud_compute_v1_ForwardingRuleList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ForwardingRuleList_descriptor, @@ -36262,7 +36347,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_ForwardingRuleReference_descriptor = - getDescriptor().getMessageTypes().get(349); + getDescriptor().getMessageTypes().get(351); internal_static_google_cloud_compute_v1_ForwardingRuleReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ForwardingRuleReference_descriptor, @@ -36270,7 +36355,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ForwardingRule", }); internal_static_google_cloud_compute_v1_ForwardingRuleServiceDirectoryRegistration_descriptor = - getDescriptor().getMessageTypes().get(350); + getDescriptor().getMessageTypes().get(352); internal_static_google_cloud_compute_v1_ForwardingRuleServiceDirectoryRegistration_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ForwardingRuleServiceDirectoryRegistration_descriptor, @@ -36278,7 +36363,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Namespace", "Service", "ServiceDirectoryRegion", }); internal_static_google_cloud_compute_v1_ForwardingRulesScopedList_descriptor = - getDescriptor().getMessageTypes().get(351); + getDescriptor().getMessageTypes().get(353); internal_static_google_cloud_compute_v1_ForwardingRulesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ForwardingRulesScopedList_descriptor, @@ -36286,7 +36371,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ForwardingRules", "Warning", }); internal_static_google_cloud_compute_v1_GRPCHealthCheck_descriptor = - getDescriptor().getMessageTypes().get(352); + getDescriptor().getMessageTypes().get(354); internal_static_google_cloud_compute_v1_GRPCHealthCheck_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GRPCHealthCheck_descriptor, @@ -36294,7 +36379,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GrpcServiceName", "Port", "PortName", "PortSpecification", }); internal_static_google_cloud_compute_v1_GetAcceleratorTypeRequest_descriptor = - getDescriptor().getMessageTypes().get(353); + getDescriptor().getMessageTypes().get(355); internal_static_google_cloud_compute_v1_GetAcceleratorTypeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetAcceleratorTypeRequest_descriptor, @@ -36302,7 +36387,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AcceleratorType", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetAddressRequest_descriptor = - getDescriptor().getMessageTypes().get(354); + getDescriptor().getMessageTypes().get(356); internal_static_google_cloud_compute_v1_GetAddressRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetAddressRequest_descriptor, @@ -36310,7 +36395,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Address", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetAssociationFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(355); + getDescriptor().getMessageTypes().get(357); internal_static_google_cloud_compute_v1_GetAssociationFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetAssociationFirewallPolicyRequest_descriptor, @@ -36318,7 +36403,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirewallPolicy", "Name", }); internal_static_google_cloud_compute_v1_GetAssociationNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(356); + getDescriptor().getMessageTypes().get(358); internal_static_google_cloud_compute_v1_GetAssociationNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetAssociationNetworkFirewallPolicyRequest_descriptor, @@ -36326,7 +36411,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirewallPolicy", "Name", "Project", }); internal_static_google_cloud_compute_v1_GetAssociationRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(357); + getDescriptor().getMessageTypes().get(359); internal_static_google_cloud_compute_v1_GetAssociationRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetAssociationRegionNetworkFirewallPolicyRequest_descriptor, @@ -36334,7 +36419,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirewallPolicy", "Name", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetAutoscalerRequest_descriptor = - getDescriptor().getMessageTypes().get(358); + getDescriptor().getMessageTypes().get(360); internal_static_google_cloud_compute_v1_GetAutoscalerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetAutoscalerRequest_descriptor, @@ -36342,7 +36427,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Autoscaler", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetBackendBucketRequest_descriptor = - getDescriptor().getMessageTypes().get(359); + getDescriptor().getMessageTypes().get(361); internal_static_google_cloud_compute_v1_GetBackendBucketRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetBackendBucketRequest_descriptor, @@ -36350,7 +36435,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BackendBucket", "Project", }); internal_static_google_cloud_compute_v1_GetBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(360); + getDescriptor().getMessageTypes().get(362); internal_static_google_cloud_compute_v1_GetBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetBackendServiceRequest_descriptor, @@ -36358,7 +36443,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BackendService", "Project", }); internal_static_google_cloud_compute_v1_GetDiagnosticsInterconnectRequest_descriptor = - getDescriptor().getMessageTypes().get(361); + getDescriptor().getMessageTypes().get(363); internal_static_google_cloud_compute_v1_GetDiagnosticsInterconnectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetDiagnosticsInterconnectRequest_descriptor, @@ -36366,7 +36451,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Interconnect", "Project", }); internal_static_google_cloud_compute_v1_GetDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(362); + getDescriptor().getMessageTypes().get(364); internal_static_google_cloud_compute_v1_GetDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetDiskRequest_descriptor, @@ -36374,7 +36459,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Disk", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetDiskTypeRequest_descriptor = - getDescriptor().getMessageTypes().get(363); + getDescriptor().getMessageTypes().get(365); internal_static_google_cloud_compute_v1_GetDiskTypeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetDiskTypeRequest_descriptor, @@ -36382,7 +36467,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DiskType", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetEffectiveFirewallsInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(364); + getDescriptor().getMessageTypes().get(366); internal_static_google_cloud_compute_v1_GetEffectiveFirewallsInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetEffectiveFirewallsInstanceRequest_descriptor, @@ -36390,7 +36475,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Instance", "NetworkInterface", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetEffectiveFirewallsNetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(365); + getDescriptor().getMessageTypes().get(367); internal_static_google_cloud_compute_v1_GetEffectiveFirewallsNetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetEffectiveFirewallsNetworkRequest_descriptor, @@ -36398,7 +36483,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Network", "Project", }); internal_static_google_cloud_compute_v1_GetEffectiveFirewallsRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(366); + getDescriptor().getMessageTypes().get(368); internal_static_google_cloud_compute_v1_GetEffectiveFirewallsRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetEffectiveFirewallsRegionNetworkFirewallPolicyRequest_descriptor, @@ -36406,7 +36491,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Network", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetExternalVpnGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(367); + getDescriptor().getMessageTypes().get(369); internal_static_google_cloud_compute_v1_GetExternalVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetExternalVpnGatewayRequest_descriptor, @@ -36414,7 +36499,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExternalVpnGateway", "Project", }); internal_static_google_cloud_compute_v1_GetFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(368); + getDescriptor().getMessageTypes().get(370); internal_static_google_cloud_compute_v1_GetFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetFirewallPolicyRequest_descriptor, @@ -36422,7 +36507,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirewallPolicy", }); internal_static_google_cloud_compute_v1_GetFirewallRequest_descriptor = - getDescriptor().getMessageTypes().get(369); + getDescriptor().getMessageTypes().get(371); internal_static_google_cloud_compute_v1_GetFirewallRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetFirewallRequest_descriptor, @@ -36430,7 +36515,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Firewall", "Project", }); internal_static_google_cloud_compute_v1_GetForwardingRuleRequest_descriptor = - getDescriptor().getMessageTypes().get(370); + getDescriptor().getMessageTypes().get(372); internal_static_google_cloud_compute_v1_GetForwardingRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetForwardingRuleRequest_descriptor, @@ -36438,7 +36523,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ForwardingRule", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetFromFamilyImageRequest_descriptor = - getDescriptor().getMessageTypes().get(371); + getDescriptor().getMessageTypes().get(373); internal_static_google_cloud_compute_v1_GetFromFamilyImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetFromFamilyImageRequest_descriptor, @@ -36446,7 +36531,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Family", "Project", }); internal_static_google_cloud_compute_v1_GetGlobalAddressRequest_descriptor = - getDescriptor().getMessageTypes().get(372); + getDescriptor().getMessageTypes().get(374); internal_static_google_cloud_compute_v1_GetGlobalAddressRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetGlobalAddressRequest_descriptor, @@ -36454,7 +36539,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Address", "Project", }); internal_static_google_cloud_compute_v1_GetGlobalForwardingRuleRequest_descriptor = - getDescriptor().getMessageTypes().get(373); + getDescriptor().getMessageTypes().get(375); internal_static_google_cloud_compute_v1_GetGlobalForwardingRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetGlobalForwardingRuleRequest_descriptor, @@ -36462,7 +36547,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ForwardingRule", "Project", }); internal_static_google_cloud_compute_v1_GetGlobalNetworkEndpointGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(374); + getDescriptor().getMessageTypes().get(376); internal_static_google_cloud_compute_v1_GetGlobalNetworkEndpointGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetGlobalNetworkEndpointGroupRequest_descriptor, @@ -36470,7 +36555,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkEndpointGroup", "Project", }); internal_static_google_cloud_compute_v1_GetGlobalOperationRequest_descriptor = - getDescriptor().getMessageTypes().get(375); + getDescriptor().getMessageTypes().get(377); internal_static_google_cloud_compute_v1_GetGlobalOperationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetGlobalOperationRequest_descriptor, @@ -36478,7 +36563,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Operation", "Project", }); internal_static_google_cloud_compute_v1_GetGlobalOrganizationOperationRequest_descriptor = - getDescriptor().getMessageTypes().get(376); + getDescriptor().getMessageTypes().get(378); internal_static_google_cloud_compute_v1_GetGlobalOrganizationOperationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetGlobalOrganizationOperationRequest_descriptor, @@ -36486,7 +36571,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Operation", "ParentId", }); internal_static_google_cloud_compute_v1_GetGlobalPublicDelegatedPrefixeRequest_descriptor = - getDescriptor().getMessageTypes().get(377); + getDescriptor().getMessageTypes().get(379); internal_static_google_cloud_compute_v1_GetGlobalPublicDelegatedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetGlobalPublicDelegatedPrefixeRequest_descriptor, @@ -36494,7 +36579,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PublicDelegatedPrefix", }); internal_static_google_cloud_compute_v1_GetGuestAttributesInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(378); + getDescriptor().getMessageTypes().get(380); internal_static_google_cloud_compute_v1_GetGuestAttributesInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetGuestAttributesInstanceRequest_descriptor, @@ -36502,7 +36587,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Instance", "Project", "QueryPath", "VariableKey", "Zone", }); internal_static_google_cloud_compute_v1_GetHealthBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(379); + getDescriptor().getMessageTypes().get(381); internal_static_google_cloud_compute_v1_GetHealthBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetHealthBackendServiceRequest_descriptor, @@ -36510,7 +36595,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BackendService", "Project", "ResourceGroupReferenceResource", }); internal_static_google_cloud_compute_v1_GetHealthCheckRequest_descriptor = - getDescriptor().getMessageTypes().get(380); + getDescriptor().getMessageTypes().get(382); internal_static_google_cloud_compute_v1_GetHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetHealthCheckRequest_descriptor, @@ -36518,7 +36603,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "HealthCheck", "Project", }); internal_static_google_cloud_compute_v1_GetHealthRegionBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(381); + getDescriptor().getMessageTypes().get(383); internal_static_google_cloud_compute_v1_GetHealthRegionBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetHealthRegionBackendServiceRequest_descriptor, @@ -36526,7 +36611,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BackendService", "Project", "Region", "ResourceGroupReferenceResource", }); internal_static_google_cloud_compute_v1_GetHealthTargetPoolRequest_descriptor = - getDescriptor().getMessageTypes().get(382); + getDescriptor().getMessageTypes().get(384); internal_static_google_cloud_compute_v1_GetHealthTargetPoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetHealthTargetPoolRequest_descriptor, @@ -36534,7 +36619,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceReferenceResource", "Project", "Region", "TargetPool", }); internal_static_google_cloud_compute_v1_GetIamPolicyBackendBucketRequest_descriptor = - getDescriptor().getMessageTypes().get(383); + getDescriptor().getMessageTypes().get(385); internal_static_google_cloud_compute_v1_GetIamPolicyBackendBucketRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyBackendBucketRequest_descriptor, @@ -36542,7 +36627,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptionsRequestedPolicyVersion", "Project", "Resource", }); internal_static_google_cloud_compute_v1_GetIamPolicyBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(384); + getDescriptor().getMessageTypes().get(386); internal_static_google_cloud_compute_v1_GetIamPolicyBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyBackendServiceRequest_descriptor, @@ -36550,7 +36635,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptionsRequestedPolicyVersion", "Project", "Resource", }); internal_static_google_cloud_compute_v1_GetIamPolicyDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(385); + getDescriptor().getMessageTypes().get(387); internal_static_google_cloud_compute_v1_GetIamPolicyDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyDiskRequest_descriptor, @@ -36558,7 +36643,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptionsRequestedPolicyVersion", "Project", "Resource", "Zone", }); internal_static_google_cloud_compute_v1_GetIamPolicyFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(386); + getDescriptor().getMessageTypes().get(388); internal_static_google_cloud_compute_v1_GetIamPolicyFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyFirewallPolicyRequest_descriptor, @@ -36566,7 +36651,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptionsRequestedPolicyVersion", "Resource", }); internal_static_google_cloud_compute_v1_GetIamPolicyImageRequest_descriptor = - getDescriptor().getMessageTypes().get(387); + getDescriptor().getMessageTypes().get(389); internal_static_google_cloud_compute_v1_GetIamPolicyImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyImageRequest_descriptor, @@ -36574,7 +36659,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptionsRequestedPolicyVersion", "Project", "Resource", }); internal_static_google_cloud_compute_v1_GetIamPolicyInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(388); + getDescriptor().getMessageTypes().get(390); internal_static_google_cloud_compute_v1_GetIamPolicyInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyInstanceRequest_descriptor, @@ -36582,7 +36667,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptionsRequestedPolicyVersion", "Project", "Resource", "Zone", }); internal_static_google_cloud_compute_v1_GetIamPolicyInstanceTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(389); + getDescriptor().getMessageTypes().get(391); internal_static_google_cloud_compute_v1_GetIamPolicyInstanceTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyInstanceTemplateRequest_descriptor, @@ -36590,7 +36675,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptionsRequestedPolicyVersion", "Project", "Resource", }); internal_static_google_cloud_compute_v1_GetIamPolicyInstantSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(390); + getDescriptor().getMessageTypes().get(392); internal_static_google_cloud_compute_v1_GetIamPolicyInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyInstantSnapshotRequest_descriptor, @@ -36598,7 +36683,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptionsRequestedPolicyVersion", "Project", "Resource", "Zone", }); internal_static_google_cloud_compute_v1_GetIamPolicyInterconnectAttachmentGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(391); + getDescriptor().getMessageTypes().get(393); internal_static_google_cloud_compute_v1_GetIamPolicyInterconnectAttachmentGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyInterconnectAttachmentGroupRequest_descriptor, @@ -36606,7 +36691,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptionsRequestedPolicyVersion", "Project", "Resource", }); internal_static_google_cloud_compute_v1_GetIamPolicyInterconnectGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(392); + getDescriptor().getMessageTypes().get(394); internal_static_google_cloud_compute_v1_GetIamPolicyInterconnectGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyInterconnectGroupRequest_descriptor, @@ -36614,7 +36699,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptionsRequestedPolicyVersion", "Project", "Resource", }); internal_static_google_cloud_compute_v1_GetIamPolicyLicenseRequest_descriptor = - getDescriptor().getMessageTypes().get(393); + getDescriptor().getMessageTypes().get(395); internal_static_google_cloud_compute_v1_GetIamPolicyLicenseRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyLicenseRequest_descriptor, @@ -36622,7 +36707,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptionsRequestedPolicyVersion", "Project", "Resource", }); internal_static_google_cloud_compute_v1_GetIamPolicyMachineImageRequest_descriptor = - getDescriptor().getMessageTypes().get(394); + getDescriptor().getMessageTypes().get(396); internal_static_google_cloud_compute_v1_GetIamPolicyMachineImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyMachineImageRequest_descriptor, @@ -36630,7 +36715,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptionsRequestedPolicyVersion", "Project", "Resource", }); internal_static_google_cloud_compute_v1_GetIamPolicyNetworkAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(395); + getDescriptor().getMessageTypes().get(397); internal_static_google_cloud_compute_v1_GetIamPolicyNetworkAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyNetworkAttachmentRequest_descriptor, @@ -36638,7 +36723,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptionsRequestedPolicyVersion", "Project", "Region", "Resource", }); internal_static_google_cloud_compute_v1_GetIamPolicyNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(396); + getDescriptor().getMessageTypes().get(398); internal_static_google_cloud_compute_v1_GetIamPolicyNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyNetworkFirewallPolicyRequest_descriptor, @@ -36646,7 +36731,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptionsRequestedPolicyVersion", "Project", "Resource", }); internal_static_google_cloud_compute_v1_GetIamPolicyNodeGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(397); + getDescriptor().getMessageTypes().get(399); internal_static_google_cloud_compute_v1_GetIamPolicyNodeGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyNodeGroupRequest_descriptor, @@ -36654,7 +36739,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptionsRequestedPolicyVersion", "Project", "Resource", "Zone", }); internal_static_google_cloud_compute_v1_GetIamPolicyNodeTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(398); + getDescriptor().getMessageTypes().get(400); internal_static_google_cloud_compute_v1_GetIamPolicyNodeTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyNodeTemplateRequest_descriptor, @@ -36662,7 +36747,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptionsRequestedPolicyVersion", "Project", "Region", "Resource", }); internal_static_google_cloud_compute_v1_GetIamPolicyRegionBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(399); + getDescriptor().getMessageTypes().get(401); internal_static_google_cloud_compute_v1_GetIamPolicyRegionBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyRegionBackendServiceRequest_descriptor, @@ -36670,7 +36755,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptionsRequestedPolicyVersion", "Project", "Region", "Resource", }); internal_static_google_cloud_compute_v1_GetIamPolicyRegionDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(400); + getDescriptor().getMessageTypes().get(402); internal_static_google_cloud_compute_v1_GetIamPolicyRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyRegionDiskRequest_descriptor, @@ -36678,7 +36763,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptionsRequestedPolicyVersion", "Project", "Region", "Resource", }); internal_static_google_cloud_compute_v1_GetIamPolicyRegionInstantSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(401); + getDescriptor().getMessageTypes().get(403); internal_static_google_cloud_compute_v1_GetIamPolicyRegionInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyRegionInstantSnapshotRequest_descriptor, @@ -36686,7 +36771,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptionsRequestedPolicyVersion", "Project", "Region", "Resource", }); internal_static_google_cloud_compute_v1_GetIamPolicyRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(402); + getDescriptor().getMessageTypes().get(404); internal_static_google_cloud_compute_v1_GetIamPolicyRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyRegionNetworkFirewallPolicyRequest_descriptor, @@ -36694,7 +36779,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptionsRequestedPolicyVersion", "Project", "Region", "Resource", }); internal_static_google_cloud_compute_v1_GetIamPolicyReservationRequest_descriptor = - getDescriptor().getMessageTypes().get(403); + getDescriptor().getMessageTypes().get(405); internal_static_google_cloud_compute_v1_GetIamPolicyReservationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyReservationRequest_descriptor, @@ -36702,7 +36787,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptionsRequestedPolicyVersion", "Project", "Resource", "Zone", }); internal_static_google_cloud_compute_v1_GetIamPolicyResourcePolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(404); + getDescriptor().getMessageTypes().get(406); internal_static_google_cloud_compute_v1_GetIamPolicyResourcePolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyResourcePolicyRequest_descriptor, @@ -36710,7 +36795,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptionsRequestedPolicyVersion", "Project", "Region", "Resource", }); internal_static_google_cloud_compute_v1_GetIamPolicyServiceAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(405); + getDescriptor().getMessageTypes().get(407); internal_static_google_cloud_compute_v1_GetIamPolicyServiceAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyServiceAttachmentRequest_descriptor, @@ -36718,7 +36803,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptionsRequestedPolicyVersion", "Project", "Region", "Resource", }); internal_static_google_cloud_compute_v1_GetIamPolicySnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(406); + getDescriptor().getMessageTypes().get(408); internal_static_google_cloud_compute_v1_GetIamPolicySnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicySnapshotRequest_descriptor, @@ -36726,7 +36811,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptionsRequestedPolicyVersion", "Project", "Resource", }); internal_static_google_cloud_compute_v1_GetIamPolicyStoragePoolRequest_descriptor = - getDescriptor().getMessageTypes().get(407); + getDescriptor().getMessageTypes().get(409); internal_static_google_cloud_compute_v1_GetIamPolicyStoragePoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyStoragePoolRequest_descriptor, @@ -36734,7 +36819,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptionsRequestedPolicyVersion", "Project", "Resource", "Zone", }); internal_static_google_cloud_compute_v1_GetIamPolicySubnetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(408); + getDescriptor().getMessageTypes().get(410); internal_static_google_cloud_compute_v1_GetIamPolicySubnetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicySubnetworkRequest_descriptor, @@ -36742,7 +36827,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptionsRequestedPolicyVersion", "Project", "Region", "Resource", }); internal_static_google_cloud_compute_v1_GetImageFamilyViewRequest_descriptor = - getDescriptor().getMessageTypes().get(409); + getDescriptor().getMessageTypes().get(411); internal_static_google_cloud_compute_v1_GetImageFamilyViewRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetImageFamilyViewRequest_descriptor, @@ -36750,7 +36835,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Family", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetImageRequest_descriptor = - getDescriptor().getMessageTypes().get(410); + getDescriptor().getMessageTypes().get(412); internal_static_google_cloud_compute_v1_GetImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetImageRequest_descriptor, @@ -36758,7 +36843,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Image", "Project", }); internal_static_google_cloud_compute_v1_GetInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(411); + getDescriptor().getMessageTypes().get(413); internal_static_google_cloud_compute_v1_GetInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetInstanceGroupManagerRequest_descriptor, @@ -36766,7 +36851,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceGroupManager", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetInstanceGroupManagerResizeRequestRequest_descriptor = - getDescriptor().getMessageTypes().get(412); + getDescriptor().getMessageTypes().get(414); internal_static_google_cloud_compute_v1_GetInstanceGroupManagerResizeRequestRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetInstanceGroupManagerResizeRequestRequest_descriptor, @@ -36774,7 +36859,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceGroupManager", "Project", "ResizeRequest", "Zone", }); internal_static_google_cloud_compute_v1_GetInstanceGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(413); + getDescriptor().getMessageTypes().get(415); internal_static_google_cloud_compute_v1_GetInstanceGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetInstanceGroupRequest_descriptor, @@ -36782,7 +36867,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceGroup", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(414); + getDescriptor().getMessageTypes().get(416); internal_static_google_cloud_compute_v1_GetInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetInstanceRequest_descriptor, @@ -36790,7 +36875,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Instance", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetInstanceSettingRequest_descriptor = - getDescriptor().getMessageTypes().get(415); + getDescriptor().getMessageTypes().get(417); internal_static_google_cloud_compute_v1_GetInstanceSettingRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetInstanceSettingRequest_descriptor, @@ -36798,7 +36883,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetInstanceTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(416); + getDescriptor().getMessageTypes().get(418); internal_static_google_cloud_compute_v1_GetInstanceTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetInstanceTemplateRequest_descriptor, @@ -36806,7 +36891,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceTemplate", "Project", }); internal_static_google_cloud_compute_v1_GetInstantSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(417); + getDescriptor().getMessageTypes().get(419); internal_static_google_cloud_compute_v1_GetInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetInstantSnapshotRequest_descriptor, @@ -36814,7 +36899,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstantSnapshot", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetInterconnectAttachmentGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(418); + getDescriptor().getMessageTypes().get(420); internal_static_google_cloud_compute_v1_GetInterconnectAttachmentGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetInterconnectAttachmentGroupRequest_descriptor, @@ -36822,7 +36907,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InterconnectAttachmentGroup", "Project", }); internal_static_google_cloud_compute_v1_GetInterconnectAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(419); + getDescriptor().getMessageTypes().get(421); internal_static_google_cloud_compute_v1_GetInterconnectAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetInterconnectAttachmentRequest_descriptor, @@ -36830,7 +36915,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InterconnectAttachment", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetInterconnectGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(420); + getDescriptor().getMessageTypes().get(422); internal_static_google_cloud_compute_v1_GetInterconnectGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetInterconnectGroupRequest_descriptor, @@ -36838,7 +36923,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InterconnectGroup", "Project", }); internal_static_google_cloud_compute_v1_GetInterconnectLocationRequest_descriptor = - getDescriptor().getMessageTypes().get(421); + getDescriptor().getMessageTypes().get(423); internal_static_google_cloud_compute_v1_GetInterconnectLocationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetInterconnectLocationRequest_descriptor, @@ -36846,7 +36931,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InterconnectLocation", "Project", }); internal_static_google_cloud_compute_v1_GetInterconnectRemoteLocationRequest_descriptor = - getDescriptor().getMessageTypes().get(422); + getDescriptor().getMessageTypes().get(424); internal_static_google_cloud_compute_v1_GetInterconnectRemoteLocationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetInterconnectRemoteLocationRequest_descriptor, @@ -36854,7 +36939,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InterconnectRemoteLocation", "Project", }); internal_static_google_cloud_compute_v1_GetInterconnectRequest_descriptor = - getDescriptor().getMessageTypes().get(423); + getDescriptor().getMessageTypes().get(425); internal_static_google_cloud_compute_v1_GetInterconnectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetInterconnectRequest_descriptor, @@ -36862,7 +36947,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Interconnect", "Project", }); internal_static_google_cloud_compute_v1_GetLicenseCodeRequest_descriptor = - getDescriptor().getMessageTypes().get(424); + getDescriptor().getMessageTypes().get(426); internal_static_google_cloud_compute_v1_GetLicenseCodeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetLicenseCodeRequest_descriptor, @@ -36870,7 +36955,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LicenseCode", "Project", }); internal_static_google_cloud_compute_v1_GetLicenseRequest_descriptor = - getDescriptor().getMessageTypes().get(425); + getDescriptor().getMessageTypes().get(427); internal_static_google_cloud_compute_v1_GetLicenseRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetLicenseRequest_descriptor, @@ -36878,7 +36963,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "License", "Project", }); internal_static_google_cloud_compute_v1_GetMachineImageRequest_descriptor = - getDescriptor().getMessageTypes().get(426); + getDescriptor().getMessageTypes().get(428); internal_static_google_cloud_compute_v1_GetMachineImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetMachineImageRequest_descriptor, @@ -36886,7 +36971,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MachineImage", "Project", }); internal_static_google_cloud_compute_v1_GetMachineTypeRequest_descriptor = - getDescriptor().getMessageTypes().get(427); + getDescriptor().getMessageTypes().get(429); internal_static_google_cloud_compute_v1_GetMachineTypeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetMachineTypeRequest_descriptor, @@ -36894,7 +36979,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MachineType", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetMacsecConfigInterconnectRequest_descriptor = - getDescriptor().getMessageTypes().get(428); + getDescriptor().getMessageTypes().get(430); internal_static_google_cloud_compute_v1_GetMacsecConfigInterconnectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetMacsecConfigInterconnectRequest_descriptor, @@ -36902,7 +36987,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Interconnect", "Project", }); internal_static_google_cloud_compute_v1_GetNatIpInfoRouterRequest_descriptor = - getDescriptor().getMessageTypes().get(429); + getDescriptor().getMessageTypes().get(431); internal_static_google_cloud_compute_v1_GetNatIpInfoRouterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetNatIpInfoRouterRequest_descriptor, @@ -36910,7 +36995,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NatName", "Project", "Region", "Router", }); internal_static_google_cloud_compute_v1_GetNatMappingInfoRoutersRequest_descriptor = - getDescriptor().getMessageTypes().get(430); + getDescriptor().getMessageTypes().get(432); internal_static_google_cloud_compute_v1_GetNatMappingInfoRoutersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetNatMappingInfoRoutersRequest_descriptor, @@ -36926,7 +37011,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Router", }); internal_static_google_cloud_compute_v1_GetNetworkAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(431); + getDescriptor().getMessageTypes().get(433); internal_static_google_cloud_compute_v1_GetNetworkAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetNetworkAttachmentRequest_descriptor, @@ -36934,7 +37019,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkAttachment", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetNetworkEdgeSecurityServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(432); + getDescriptor().getMessageTypes().get(434); internal_static_google_cloud_compute_v1_GetNetworkEdgeSecurityServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetNetworkEdgeSecurityServiceRequest_descriptor, @@ -36942,7 +37027,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkEdgeSecurityService", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetNetworkEndpointGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(433); + getDescriptor().getMessageTypes().get(435); internal_static_google_cloud_compute_v1_GetNetworkEndpointGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetNetworkEndpointGroupRequest_descriptor, @@ -36950,7 +37035,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkEndpointGroup", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(434); + getDescriptor().getMessageTypes().get(436); internal_static_google_cloud_compute_v1_GetNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetNetworkFirewallPolicyRequest_descriptor, @@ -36958,7 +37043,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirewallPolicy", "Project", }); internal_static_google_cloud_compute_v1_GetNetworkProfileRequest_descriptor = - getDescriptor().getMessageTypes().get(435); + getDescriptor().getMessageTypes().get(437); internal_static_google_cloud_compute_v1_GetNetworkProfileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetNetworkProfileRequest_descriptor, @@ -36966,7 +37051,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkProfile", "Project", }); internal_static_google_cloud_compute_v1_GetNetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(436); + getDescriptor().getMessageTypes().get(438); internal_static_google_cloud_compute_v1_GetNetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetNetworkRequest_descriptor, @@ -36974,7 +37059,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Network", "Project", }); internal_static_google_cloud_compute_v1_GetNodeGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(437); + getDescriptor().getMessageTypes().get(439); internal_static_google_cloud_compute_v1_GetNodeGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetNodeGroupRequest_descriptor, @@ -36982,7 +37067,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NodeGroup", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetNodeTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(438); + getDescriptor().getMessageTypes().get(440); internal_static_google_cloud_compute_v1_GetNodeTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetNodeTemplateRequest_descriptor, @@ -36990,7 +37075,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NodeTemplate", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetNodeTypeRequest_descriptor = - getDescriptor().getMessageTypes().get(439); + getDescriptor().getMessageTypes().get(441); internal_static_google_cloud_compute_v1_GetNodeTypeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetNodeTypeRequest_descriptor, @@ -36998,7 +37083,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NodeType", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetOperationalStatusInterconnectAttachmentGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(440); + getDescriptor().getMessageTypes().get(442); internal_static_google_cloud_compute_v1_GetOperationalStatusInterconnectAttachmentGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetOperationalStatusInterconnectAttachmentGroupRequest_descriptor, @@ -37006,7 +37091,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InterconnectAttachmentGroup", "Project", }); internal_static_google_cloud_compute_v1_GetOperationalStatusInterconnectGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(441); + getDescriptor().getMessageTypes().get(443); internal_static_google_cloud_compute_v1_GetOperationalStatusInterconnectGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetOperationalStatusInterconnectGroupRequest_descriptor, @@ -37014,7 +37099,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InterconnectGroup", "Project", }); internal_static_google_cloud_compute_v1_GetPacketMirroringRequest_descriptor = - getDescriptor().getMessageTypes().get(442); + getDescriptor().getMessageTypes().get(444); internal_static_google_cloud_compute_v1_GetPacketMirroringRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetPacketMirroringRequest_descriptor, @@ -37022,7 +37107,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PacketMirroring", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetPacketMirroringRuleNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(443); + getDescriptor().getMessageTypes().get(445); internal_static_google_cloud_compute_v1_GetPacketMirroringRuleNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetPacketMirroringRuleNetworkFirewallPolicyRequest_descriptor, @@ -37030,7 +37115,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirewallPolicy", "Priority", "Project", }); internal_static_google_cloud_compute_v1_GetProjectRequest_descriptor = - getDescriptor().getMessageTypes().get(444); + getDescriptor().getMessageTypes().get(446); internal_static_google_cloud_compute_v1_GetProjectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetProjectRequest_descriptor, @@ -37038,7 +37123,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", }); internal_static_google_cloud_compute_v1_GetPublicAdvertisedPrefixeRequest_descriptor = - getDescriptor().getMessageTypes().get(445); + getDescriptor().getMessageTypes().get(447); internal_static_google_cloud_compute_v1_GetPublicAdvertisedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetPublicAdvertisedPrefixeRequest_descriptor, @@ -37046,7 +37131,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PublicAdvertisedPrefix", }); internal_static_google_cloud_compute_v1_GetPublicDelegatedPrefixeRequest_descriptor = - getDescriptor().getMessageTypes().get(446); + getDescriptor().getMessageTypes().get(448); internal_static_google_cloud_compute_v1_GetPublicDelegatedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetPublicDelegatedPrefixeRequest_descriptor, @@ -37054,7 +37139,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PublicDelegatedPrefix", "Region", }); internal_static_google_cloud_compute_v1_GetRegionAutoscalerRequest_descriptor = - getDescriptor().getMessageTypes().get(447); + getDescriptor().getMessageTypes().get(449); internal_static_google_cloud_compute_v1_GetRegionAutoscalerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionAutoscalerRequest_descriptor, @@ -37062,7 +37147,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Autoscaler", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(448); + getDescriptor().getMessageTypes().get(450); internal_static_google_cloud_compute_v1_GetRegionBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionBackendServiceRequest_descriptor, @@ -37070,7 +37155,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BackendService", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionCommitmentRequest_descriptor = - getDescriptor().getMessageTypes().get(449); + getDescriptor().getMessageTypes().get(451); internal_static_google_cloud_compute_v1_GetRegionCommitmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionCommitmentRequest_descriptor, @@ -37078,7 +37163,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Commitment", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(450); + getDescriptor().getMessageTypes().get(452); internal_static_google_cloud_compute_v1_GetRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionDiskRequest_descriptor, @@ -37086,7 +37171,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Disk", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionDiskTypeRequest_descriptor = - getDescriptor().getMessageTypes().get(451); + getDescriptor().getMessageTypes().get(453); internal_static_google_cloud_compute_v1_GetRegionDiskTypeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionDiskTypeRequest_descriptor, @@ -37094,7 +37179,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DiskType", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionHealthCheckRequest_descriptor = - getDescriptor().getMessageTypes().get(452); + getDescriptor().getMessageTypes().get(454); internal_static_google_cloud_compute_v1_GetRegionHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionHealthCheckRequest_descriptor, @@ -37102,7 +37187,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "HealthCheck", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionHealthCheckServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(453); + getDescriptor().getMessageTypes().get(455); internal_static_google_cloud_compute_v1_GetRegionHealthCheckServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionHealthCheckServiceRequest_descriptor, @@ -37110,7 +37195,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "HealthCheckService", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(454); + getDescriptor().getMessageTypes().get(456); internal_static_google_cloud_compute_v1_GetRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionInstanceGroupManagerRequest_descriptor, @@ -37118,7 +37203,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceGroupManager", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionInstanceGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(455); + getDescriptor().getMessageTypes().get(457); internal_static_google_cloud_compute_v1_GetRegionInstanceGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionInstanceGroupRequest_descriptor, @@ -37126,7 +37211,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceGroup", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionInstanceTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(456); + getDescriptor().getMessageTypes().get(458); internal_static_google_cloud_compute_v1_GetRegionInstanceTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionInstanceTemplateRequest_descriptor, @@ -37134,7 +37219,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceTemplate", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionInstantSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(457); + getDescriptor().getMessageTypes().get(459); internal_static_google_cloud_compute_v1_GetRegionInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionInstantSnapshotRequest_descriptor, @@ -37142,7 +37227,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstantSnapshot", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionNetworkEndpointGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(458); + getDescriptor().getMessageTypes().get(460); internal_static_google_cloud_compute_v1_GetRegionNetworkEndpointGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionNetworkEndpointGroupRequest_descriptor, @@ -37150,7 +37235,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkEndpointGroup", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(459); + getDescriptor().getMessageTypes().get(461); internal_static_google_cloud_compute_v1_GetRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionNetworkFirewallPolicyRequest_descriptor, @@ -37158,7 +37243,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirewallPolicy", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionNotificationEndpointRequest_descriptor = - getDescriptor().getMessageTypes().get(460); + getDescriptor().getMessageTypes().get(462); internal_static_google_cloud_compute_v1_GetRegionNotificationEndpointRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionNotificationEndpointRequest_descriptor, @@ -37166,7 +37251,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NotificationEndpoint", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionOperationRequest_descriptor = - getDescriptor().getMessageTypes().get(461); + getDescriptor().getMessageTypes().get(463); internal_static_google_cloud_compute_v1_GetRegionOperationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionOperationRequest_descriptor, @@ -37174,7 +37259,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Operation", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionRequest_descriptor = - getDescriptor().getMessageTypes().get(462); + getDescriptor().getMessageTypes().get(464); internal_static_google_cloud_compute_v1_GetRegionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionRequest_descriptor, @@ -37182,7 +37267,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionSecurityPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(463); + getDescriptor().getMessageTypes().get(465); internal_static_google_cloud_compute_v1_GetRegionSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionSecurityPolicyRequest_descriptor, @@ -37190,15 +37275,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "SecurityPolicy", }); internal_static_google_cloud_compute_v1_GetRegionSslCertificateRequest_descriptor = - getDescriptor().getMessageTypes().get(464); + getDescriptor().getMessageTypes().get(466); internal_static_google_cloud_compute_v1_GetRegionSslCertificateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionSslCertificateRequest_descriptor, new java.lang.String[] { "Project", "Region", "SslCertificate", }); + _clinit_autosplit_dinit_1(); + } + + private static void _clinit_autosplit_dinit_1() { internal_static_google_cloud_compute_v1_GetRegionSslPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(465); + getDescriptor().getMessageTypes().get(467); internal_static_google_cloud_compute_v1_GetRegionSslPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionSslPolicyRequest_descriptor, @@ -37206,19 +37295,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "SslPolicy", }); internal_static_google_cloud_compute_v1_GetRegionTargetHttpProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(466); + getDescriptor().getMessageTypes().get(468); internal_static_google_cloud_compute_v1_GetRegionTargetHttpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionTargetHttpProxyRequest_descriptor, new java.lang.String[] { "Project", "Region", "TargetHttpProxy", }); - _clinit_autosplit_dinit_1(); - } - - private static void _clinit_autosplit_dinit_1() { internal_static_google_cloud_compute_v1_GetRegionTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(467); + getDescriptor().getMessageTypes().get(469); internal_static_google_cloud_compute_v1_GetRegionTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionTargetHttpsProxyRequest_descriptor, @@ -37226,7 +37311,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "TargetHttpsProxy", }); internal_static_google_cloud_compute_v1_GetRegionTargetTcpProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(468); + getDescriptor().getMessageTypes().get(470); internal_static_google_cloud_compute_v1_GetRegionTargetTcpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionTargetTcpProxyRequest_descriptor, @@ -37234,7 +37319,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "TargetTcpProxy", }); internal_static_google_cloud_compute_v1_GetRegionUrlMapRequest_descriptor = - getDescriptor().getMessageTypes().get(469); + getDescriptor().getMessageTypes().get(471); internal_static_google_cloud_compute_v1_GetRegionUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionUrlMapRequest_descriptor, @@ -37242,7 +37327,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "UrlMap", }); internal_static_google_cloud_compute_v1_GetReservationBlockRequest_descriptor = - getDescriptor().getMessageTypes().get(470); + getDescriptor().getMessageTypes().get(472); internal_static_google_cloud_compute_v1_GetReservationBlockRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetReservationBlockRequest_descriptor, @@ -37250,7 +37335,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Reservation", "ReservationBlock", "Zone", }); internal_static_google_cloud_compute_v1_GetReservationRequest_descriptor = - getDescriptor().getMessageTypes().get(471); + getDescriptor().getMessageTypes().get(473); internal_static_google_cloud_compute_v1_GetReservationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetReservationRequest_descriptor, @@ -37258,7 +37343,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Reservation", "Zone", }); internal_static_google_cloud_compute_v1_GetReservationSubBlockRequest_descriptor = - getDescriptor().getMessageTypes().get(472); + getDescriptor().getMessageTypes().get(474); internal_static_google_cloud_compute_v1_GetReservationSubBlockRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetReservationSubBlockRequest_descriptor, @@ -37266,7 +37351,7 @@ private static void _clinit_autosplit_dinit_1() { "ParentName", "Project", "ReservationSubBlock", "Zone", }); internal_static_google_cloud_compute_v1_GetResourcePolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(473); + getDescriptor().getMessageTypes().get(475); internal_static_google_cloud_compute_v1_GetResourcePolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetResourcePolicyRequest_descriptor, @@ -37274,7 +37359,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "ResourcePolicy", }); internal_static_google_cloud_compute_v1_GetRoutePolicyRouterRequest_descriptor = - getDescriptor().getMessageTypes().get(474); + getDescriptor().getMessageTypes().get(476); internal_static_google_cloud_compute_v1_GetRoutePolicyRouterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRoutePolicyRouterRequest_descriptor, @@ -37282,7 +37367,7 @@ private static void _clinit_autosplit_dinit_1() { "Policy", "Project", "Region", "Router", }); internal_static_google_cloud_compute_v1_GetRouteRequest_descriptor = - getDescriptor().getMessageTypes().get(475); + getDescriptor().getMessageTypes().get(477); internal_static_google_cloud_compute_v1_GetRouteRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRouteRequest_descriptor, @@ -37290,7 +37375,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Route", }); internal_static_google_cloud_compute_v1_GetRouterRequest_descriptor = - getDescriptor().getMessageTypes().get(476); + getDescriptor().getMessageTypes().get(478); internal_static_google_cloud_compute_v1_GetRouterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRouterRequest_descriptor, @@ -37298,7 +37383,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "Router", }); internal_static_google_cloud_compute_v1_GetRouterStatusRouterRequest_descriptor = - getDescriptor().getMessageTypes().get(477); + getDescriptor().getMessageTypes().get(479); internal_static_google_cloud_compute_v1_GetRouterStatusRouterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRouterStatusRouterRequest_descriptor, @@ -37306,7 +37391,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "Router", }); internal_static_google_cloud_compute_v1_GetRuleFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(478); + getDescriptor().getMessageTypes().get(480); internal_static_google_cloud_compute_v1_GetRuleFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRuleFirewallPolicyRequest_descriptor, @@ -37314,7 +37399,7 @@ private static void _clinit_autosplit_dinit_1() { "FirewallPolicy", "Priority", }); internal_static_google_cloud_compute_v1_GetRuleNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(479); + getDescriptor().getMessageTypes().get(481); internal_static_google_cloud_compute_v1_GetRuleNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRuleNetworkFirewallPolicyRequest_descriptor, @@ -37322,7 +37407,7 @@ private static void _clinit_autosplit_dinit_1() { "FirewallPolicy", "Priority", "Project", }); internal_static_google_cloud_compute_v1_GetRuleRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(480); + getDescriptor().getMessageTypes().get(482); internal_static_google_cloud_compute_v1_GetRuleRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRuleRegionNetworkFirewallPolicyRequest_descriptor, @@ -37330,7 +37415,7 @@ private static void _clinit_autosplit_dinit_1() { "FirewallPolicy", "Priority", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRuleRegionSecurityPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(481); + getDescriptor().getMessageTypes().get(483); internal_static_google_cloud_compute_v1_GetRuleRegionSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRuleRegionSecurityPolicyRequest_descriptor, @@ -37338,7 +37423,7 @@ private static void _clinit_autosplit_dinit_1() { "Priority", "Project", "Region", "SecurityPolicy", }); internal_static_google_cloud_compute_v1_GetRuleSecurityPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(482); + getDescriptor().getMessageTypes().get(484); internal_static_google_cloud_compute_v1_GetRuleSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRuleSecurityPolicyRequest_descriptor, @@ -37346,7 +37431,7 @@ private static void _clinit_autosplit_dinit_1() { "Priority", "Project", "SecurityPolicy", }); internal_static_google_cloud_compute_v1_GetScreenshotInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(483); + getDescriptor().getMessageTypes().get(485); internal_static_google_cloud_compute_v1_GetScreenshotInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetScreenshotInstanceRequest_descriptor, @@ -37354,7 +37439,7 @@ private static void _clinit_autosplit_dinit_1() { "Instance", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetSecurityPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(484); + getDescriptor().getMessageTypes().get(486); internal_static_google_cloud_compute_v1_GetSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetSecurityPolicyRequest_descriptor, @@ -37362,7 +37447,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "SecurityPolicy", }); internal_static_google_cloud_compute_v1_GetSerialPortOutputInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(485); + getDescriptor().getMessageTypes().get(487); internal_static_google_cloud_compute_v1_GetSerialPortOutputInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetSerialPortOutputInstanceRequest_descriptor, @@ -37370,7 +37455,7 @@ private static void _clinit_autosplit_dinit_1() { "Instance", "Port", "Project", "Start", "Zone", }); internal_static_google_cloud_compute_v1_GetServiceAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(486); + getDescriptor().getMessageTypes().get(488); internal_static_google_cloud_compute_v1_GetServiceAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetServiceAttachmentRequest_descriptor, @@ -37378,7 +37463,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "ServiceAttachment", }); internal_static_google_cloud_compute_v1_GetShieldedInstanceIdentityInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(487); + getDescriptor().getMessageTypes().get(489); internal_static_google_cloud_compute_v1_GetShieldedInstanceIdentityInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetShieldedInstanceIdentityInstanceRequest_descriptor, @@ -37386,7 +37471,7 @@ private static void _clinit_autosplit_dinit_1() { "Instance", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(488); + getDescriptor().getMessageTypes().get(490); internal_static_google_cloud_compute_v1_GetSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetSnapshotRequest_descriptor, @@ -37394,7 +37479,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Snapshot", }); internal_static_google_cloud_compute_v1_GetSnapshotSettingRequest_descriptor = - getDescriptor().getMessageTypes().get(489); + getDescriptor().getMessageTypes().get(491); internal_static_google_cloud_compute_v1_GetSnapshotSettingRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetSnapshotSettingRequest_descriptor, @@ -37402,7 +37487,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", }); internal_static_google_cloud_compute_v1_GetSslCertificateRequest_descriptor = - getDescriptor().getMessageTypes().get(490); + getDescriptor().getMessageTypes().get(492); internal_static_google_cloud_compute_v1_GetSslCertificateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetSslCertificateRequest_descriptor, @@ -37410,7 +37495,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "SslCertificate", }); internal_static_google_cloud_compute_v1_GetSslPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(491); + getDescriptor().getMessageTypes().get(493); internal_static_google_cloud_compute_v1_GetSslPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetSslPolicyRequest_descriptor, @@ -37418,7 +37503,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "SslPolicy", }); internal_static_google_cloud_compute_v1_GetStatusVpnGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(492); + getDescriptor().getMessageTypes().get(494); internal_static_google_cloud_compute_v1_GetStatusVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetStatusVpnGatewayRequest_descriptor, @@ -37426,7 +37511,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "VpnGateway", }); internal_static_google_cloud_compute_v1_GetStoragePoolRequest_descriptor = - getDescriptor().getMessageTypes().get(493); + getDescriptor().getMessageTypes().get(495); internal_static_google_cloud_compute_v1_GetStoragePoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetStoragePoolRequest_descriptor, @@ -37434,7 +37519,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "StoragePool", "Zone", }); internal_static_google_cloud_compute_v1_GetStoragePoolTypeRequest_descriptor = - getDescriptor().getMessageTypes().get(494); + getDescriptor().getMessageTypes().get(496); internal_static_google_cloud_compute_v1_GetStoragePoolTypeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetStoragePoolTypeRequest_descriptor, @@ -37442,7 +37527,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "StoragePoolType", "Zone", }); internal_static_google_cloud_compute_v1_GetSubnetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(495); + getDescriptor().getMessageTypes().get(497); internal_static_google_cloud_compute_v1_GetSubnetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetSubnetworkRequest_descriptor, @@ -37450,7 +37535,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "Subnetwork", }); internal_static_google_cloud_compute_v1_GetTargetGrpcProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(496); + getDescriptor().getMessageTypes().get(498); internal_static_google_cloud_compute_v1_GetTargetGrpcProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetTargetGrpcProxyRequest_descriptor, @@ -37458,7 +37543,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "TargetGrpcProxy", }); internal_static_google_cloud_compute_v1_GetTargetHttpProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(497); + getDescriptor().getMessageTypes().get(499); internal_static_google_cloud_compute_v1_GetTargetHttpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetTargetHttpProxyRequest_descriptor, @@ -37466,7 +37551,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "TargetHttpProxy", }); internal_static_google_cloud_compute_v1_GetTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(498); + getDescriptor().getMessageTypes().get(500); internal_static_google_cloud_compute_v1_GetTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetTargetHttpsProxyRequest_descriptor, @@ -37474,7 +37559,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "TargetHttpsProxy", }); internal_static_google_cloud_compute_v1_GetTargetInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(499); + getDescriptor().getMessageTypes().get(501); internal_static_google_cloud_compute_v1_GetTargetInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetTargetInstanceRequest_descriptor, @@ -37482,7 +37567,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "TargetInstance", "Zone", }); internal_static_google_cloud_compute_v1_GetTargetPoolRequest_descriptor = - getDescriptor().getMessageTypes().get(500); + getDescriptor().getMessageTypes().get(502); internal_static_google_cloud_compute_v1_GetTargetPoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetTargetPoolRequest_descriptor, @@ -37490,7 +37575,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "TargetPool", }); internal_static_google_cloud_compute_v1_GetTargetSslProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(501); + getDescriptor().getMessageTypes().get(503); internal_static_google_cloud_compute_v1_GetTargetSslProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetTargetSslProxyRequest_descriptor, @@ -37498,7 +37583,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "TargetSslProxy", }); internal_static_google_cloud_compute_v1_GetTargetTcpProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(502); + getDescriptor().getMessageTypes().get(504); internal_static_google_cloud_compute_v1_GetTargetTcpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetTargetTcpProxyRequest_descriptor, @@ -37506,7 +37591,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "TargetTcpProxy", }); internal_static_google_cloud_compute_v1_GetTargetVpnGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(503); + getDescriptor().getMessageTypes().get(505); internal_static_google_cloud_compute_v1_GetTargetVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetTargetVpnGatewayRequest_descriptor, @@ -37514,7 +37599,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "TargetVpnGateway", }); internal_static_google_cloud_compute_v1_GetUrlMapRequest_descriptor = - getDescriptor().getMessageTypes().get(504); + getDescriptor().getMessageTypes().get(506); internal_static_google_cloud_compute_v1_GetUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetUrlMapRequest_descriptor, @@ -37522,7 +37607,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "UrlMap", }); internal_static_google_cloud_compute_v1_GetVpnGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(505); + getDescriptor().getMessageTypes().get(507); internal_static_google_cloud_compute_v1_GetVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetVpnGatewayRequest_descriptor, @@ -37530,7 +37615,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "VpnGateway", }); internal_static_google_cloud_compute_v1_GetVpnTunnelRequest_descriptor = - getDescriptor().getMessageTypes().get(506); + getDescriptor().getMessageTypes().get(508); internal_static_google_cloud_compute_v1_GetVpnTunnelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetVpnTunnelRequest_descriptor, @@ -37538,7 +37623,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "VpnTunnel", }); internal_static_google_cloud_compute_v1_GetXpnHostProjectRequest_descriptor = - getDescriptor().getMessageTypes().get(507); + getDescriptor().getMessageTypes().get(509); internal_static_google_cloud_compute_v1_GetXpnHostProjectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetXpnHostProjectRequest_descriptor, @@ -37546,7 +37631,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", }); internal_static_google_cloud_compute_v1_GetXpnResourcesProjectsRequest_descriptor = - getDescriptor().getMessageTypes().get(508); + getDescriptor().getMessageTypes().get(510); internal_static_google_cloud_compute_v1_GetXpnResourcesProjectsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetXpnResourcesProjectsRequest_descriptor, @@ -37554,7 +37639,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_GetZoneOperationRequest_descriptor = - getDescriptor().getMessageTypes().get(509); + getDescriptor().getMessageTypes().get(511); internal_static_google_cloud_compute_v1_GetZoneOperationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetZoneOperationRequest_descriptor, @@ -37562,7 +37647,7 @@ private static void _clinit_autosplit_dinit_1() { "Operation", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetZoneRequest_descriptor = - getDescriptor().getMessageTypes().get(510); + getDescriptor().getMessageTypes().get(512); internal_static_google_cloud_compute_v1_GetZoneRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetZoneRequest_descriptor, @@ -37570,7 +37655,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Zone", }); internal_static_google_cloud_compute_v1_GlobalAddressesMoveRequest_descriptor = - getDescriptor().getMessageTypes().get(511); + getDescriptor().getMessageTypes().get(513); internal_static_google_cloud_compute_v1_GlobalAddressesMoveRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GlobalAddressesMoveRequest_descriptor, @@ -37578,7 +37663,7 @@ private static void _clinit_autosplit_dinit_1() { "Description", "DestinationAddress", }); internal_static_google_cloud_compute_v1_GlobalNetworkEndpointGroupsAttachEndpointsRequest_descriptor = - getDescriptor().getMessageTypes().get(512); + getDescriptor().getMessageTypes().get(514); internal_static_google_cloud_compute_v1_GlobalNetworkEndpointGroupsAttachEndpointsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GlobalNetworkEndpointGroupsAttachEndpointsRequest_descriptor, @@ -37586,7 +37671,7 @@ private static void _clinit_autosplit_dinit_1() { "NetworkEndpoints", }); internal_static_google_cloud_compute_v1_GlobalNetworkEndpointGroupsDetachEndpointsRequest_descriptor = - getDescriptor().getMessageTypes().get(513); + getDescriptor().getMessageTypes().get(515); internal_static_google_cloud_compute_v1_GlobalNetworkEndpointGroupsDetachEndpointsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GlobalNetworkEndpointGroupsDetachEndpointsRequest_descriptor, @@ -37594,7 +37679,7 @@ private static void _clinit_autosplit_dinit_1() { "NetworkEndpoints", }); internal_static_google_cloud_compute_v1_GlobalOrganizationSetPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(514); + getDescriptor().getMessageTypes().get(516); internal_static_google_cloud_compute_v1_GlobalOrganizationSetPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GlobalOrganizationSetPolicyRequest_descriptor, @@ -37602,7 +37687,7 @@ private static void _clinit_autosplit_dinit_1() { "Bindings", "Etag", "Policy", }); internal_static_google_cloud_compute_v1_GlobalSetLabelsRequest_descriptor = - getDescriptor().getMessageTypes().get(515); + getDescriptor().getMessageTypes().get(517); internal_static_google_cloud_compute_v1_GlobalSetLabelsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GlobalSetLabelsRequest_descriptor, @@ -37620,7 +37705,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_GlobalSetPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(516); + getDescriptor().getMessageTypes().get(518); internal_static_google_cloud_compute_v1_GlobalSetPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GlobalSetPolicyRequest_descriptor, @@ -37628,18 +37713,22 @@ private static void _clinit_autosplit_dinit_1() { "Bindings", "Etag", "Policy", }); internal_static_google_cloud_compute_v1_GroupMaintenanceInfo_descriptor = - getDescriptor().getMessageTypes().get(517); + getDescriptor().getMessageTypes().get(519); internal_static_google_cloud_compute_v1_GroupMaintenanceInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GroupMaintenanceInfo_descriptor, new java.lang.String[] { + "InstanceMaintenanceOngoingCount", + "InstanceMaintenancePendingCount", "MaintenanceOngoingCount", "MaintenancePendingCount", "SchedulingType", + "SubblockInfraMaintenanceOngoingCount", + "SubblockInfraMaintenancePendingCount", "UpcomingGroupMaintenance", }); internal_static_google_cloud_compute_v1_GuestAttributes_descriptor = - getDescriptor().getMessageTypes().get(518); + getDescriptor().getMessageTypes().get(520); internal_static_google_cloud_compute_v1_GuestAttributes_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GuestAttributes_descriptor, @@ -37647,7 +37736,7 @@ private static void _clinit_autosplit_dinit_1() { "Kind", "QueryPath", "QueryValue", "SelfLink", "VariableKey", "VariableValue", }); internal_static_google_cloud_compute_v1_GuestAttributesEntry_descriptor = - getDescriptor().getMessageTypes().get(519); + getDescriptor().getMessageTypes().get(521); internal_static_google_cloud_compute_v1_GuestAttributesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GuestAttributesEntry_descriptor, @@ -37655,7 +37744,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Namespace", "Value", }); internal_static_google_cloud_compute_v1_GuestAttributesValue_descriptor = - getDescriptor().getMessageTypes().get(520); + getDescriptor().getMessageTypes().get(522); internal_static_google_cloud_compute_v1_GuestAttributesValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GuestAttributesValue_descriptor, @@ -37663,7 +37752,7 @@ private static void _clinit_autosplit_dinit_1() { "Items", }); internal_static_google_cloud_compute_v1_GuestOsFeature_descriptor = - getDescriptor().getMessageTypes().get(521); + getDescriptor().getMessageTypes().get(523); internal_static_google_cloud_compute_v1_GuestOsFeature_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GuestOsFeature_descriptor, @@ -37671,7 +37760,7 @@ private static void _clinit_autosplit_dinit_1() { "Type", }); internal_static_google_cloud_compute_v1_HTTP2HealthCheck_descriptor = - getDescriptor().getMessageTypes().get(522); + getDescriptor().getMessageTypes().get(524); internal_static_google_cloud_compute_v1_HTTP2HealthCheck_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HTTP2HealthCheck_descriptor, @@ -37685,7 +37774,7 @@ private static void _clinit_autosplit_dinit_1() { "Response", }); internal_static_google_cloud_compute_v1_HTTPHealthCheck_descriptor = - getDescriptor().getMessageTypes().get(523); + getDescriptor().getMessageTypes().get(525); internal_static_google_cloud_compute_v1_HTTPHealthCheck_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HTTPHealthCheck_descriptor, @@ -37699,7 +37788,7 @@ private static void _clinit_autosplit_dinit_1() { "Response", }); internal_static_google_cloud_compute_v1_HTTPSHealthCheck_descriptor = - getDescriptor().getMessageTypes().get(524); + getDescriptor().getMessageTypes().get(526); internal_static_google_cloud_compute_v1_HTTPSHealthCheck_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HTTPSHealthCheck_descriptor, @@ -37713,7 +37802,7 @@ private static void _clinit_autosplit_dinit_1() { "Response", }); internal_static_google_cloud_compute_v1_HealthCheck_descriptor = - getDescriptor().getMessageTypes().get(525); + getDescriptor().getMessageTypes().get(527); internal_static_google_cloud_compute_v1_HealthCheck_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthCheck_descriptor, @@ -37740,7 +37829,7 @@ private static void _clinit_autosplit_dinit_1() { "UnhealthyThreshold", }); internal_static_google_cloud_compute_v1_HealthCheckList_descriptor = - getDescriptor().getMessageTypes().get(526); + getDescriptor().getMessageTypes().get(528); internal_static_google_cloud_compute_v1_HealthCheckList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthCheckList_descriptor, @@ -37748,7 +37837,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_HealthCheckLogConfig_descriptor = - getDescriptor().getMessageTypes().get(527); + getDescriptor().getMessageTypes().get(529); internal_static_google_cloud_compute_v1_HealthCheckLogConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthCheckLogConfig_descriptor, @@ -37756,7 +37845,7 @@ private static void _clinit_autosplit_dinit_1() { "Enable", }); internal_static_google_cloud_compute_v1_HealthCheckReference_descriptor = - getDescriptor().getMessageTypes().get(528); + getDescriptor().getMessageTypes().get(530); internal_static_google_cloud_compute_v1_HealthCheckReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthCheckReference_descriptor, @@ -37764,7 +37853,7 @@ private static void _clinit_autosplit_dinit_1() { "HealthCheck", }); internal_static_google_cloud_compute_v1_HealthCheckService_descriptor = - getDescriptor().getMessageTypes().get(529); + getDescriptor().getMessageTypes().get(531); internal_static_google_cloud_compute_v1_HealthCheckService_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthCheckService_descriptor, @@ -37783,7 +37872,7 @@ private static void _clinit_autosplit_dinit_1() { "SelfLink", }); internal_static_google_cloud_compute_v1_HealthCheckServiceReference_descriptor = - getDescriptor().getMessageTypes().get(530); + getDescriptor().getMessageTypes().get(532); internal_static_google_cloud_compute_v1_HealthCheckServiceReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthCheckServiceReference_descriptor, @@ -37791,7 +37880,7 @@ private static void _clinit_autosplit_dinit_1() { "HealthCheckService", }); internal_static_google_cloud_compute_v1_HealthCheckServicesList_descriptor = - getDescriptor().getMessageTypes().get(531); + getDescriptor().getMessageTypes().get(533); internal_static_google_cloud_compute_v1_HealthCheckServicesList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthCheckServicesList_descriptor, @@ -37799,7 +37888,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_HealthChecksAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(532); + getDescriptor().getMessageTypes().get(534); internal_static_google_cloud_compute_v1_HealthChecksAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthChecksAggregatedList_descriptor, @@ -37817,7 +37906,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_HealthChecksScopedList_descriptor = - getDescriptor().getMessageTypes().get(533); + getDescriptor().getMessageTypes().get(535); internal_static_google_cloud_compute_v1_HealthChecksScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthChecksScopedList_descriptor, @@ -37825,7 +37914,7 @@ private static void _clinit_autosplit_dinit_1() { "HealthChecks", "Warning", }); internal_static_google_cloud_compute_v1_HealthStatus_descriptor = - getDescriptor().getMessageTypes().get(534); + getDescriptor().getMessageTypes().get(536); internal_static_google_cloud_compute_v1_HealthStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthStatus_descriptor, @@ -37851,7 +37940,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_HealthStatusForNetworkEndpoint_descriptor = - getDescriptor().getMessageTypes().get(535); + getDescriptor().getMessageTypes().get(537); internal_static_google_cloud_compute_v1_HealthStatusForNetworkEndpoint_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthStatusForNetworkEndpoint_descriptor, @@ -37864,7 +37953,7 @@ private static void _clinit_autosplit_dinit_1() { "Ipv6HealthState", }); internal_static_google_cloud_compute_v1_Help_descriptor = - getDescriptor().getMessageTypes().get(536); + getDescriptor().getMessageTypes().get(538); internal_static_google_cloud_compute_v1_Help_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Help_descriptor, @@ -37872,7 +37961,7 @@ private static void _clinit_autosplit_dinit_1() { "Links", }); internal_static_google_cloud_compute_v1_HelpLink_descriptor = - getDescriptor().getMessageTypes().get(537); + getDescriptor().getMessageTypes().get(539); internal_static_google_cloud_compute_v1_HelpLink_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HelpLink_descriptor, @@ -37880,7 +37969,7 @@ private static void _clinit_autosplit_dinit_1() { "Description", "Url", }); internal_static_google_cloud_compute_v1_HostRule_descriptor = - getDescriptor().getMessageTypes().get(538); + getDescriptor().getMessageTypes().get(540); internal_static_google_cloud_compute_v1_HostRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HostRule_descriptor, @@ -37888,7 +37977,7 @@ private static void _clinit_autosplit_dinit_1() { "Description", "Hosts", "PathMatcher", }); internal_static_google_cloud_compute_v1_HttpFaultAbort_descriptor = - getDescriptor().getMessageTypes().get(539); + getDescriptor().getMessageTypes().get(541); internal_static_google_cloud_compute_v1_HttpFaultAbort_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HttpFaultAbort_descriptor, @@ -37896,7 +37985,7 @@ private static void _clinit_autosplit_dinit_1() { "HttpStatus", "Percentage", }); internal_static_google_cloud_compute_v1_HttpFaultDelay_descriptor = - getDescriptor().getMessageTypes().get(540); + getDescriptor().getMessageTypes().get(542); internal_static_google_cloud_compute_v1_HttpFaultDelay_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HttpFaultDelay_descriptor, @@ -37904,7 +37993,7 @@ private static void _clinit_autosplit_dinit_1() { "FixedDelay", "Percentage", }); internal_static_google_cloud_compute_v1_HttpFaultInjection_descriptor = - getDescriptor().getMessageTypes().get(541); + getDescriptor().getMessageTypes().get(543); internal_static_google_cloud_compute_v1_HttpFaultInjection_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HttpFaultInjection_descriptor, @@ -37912,7 +38001,7 @@ private static void _clinit_autosplit_dinit_1() { "Abort", "Delay", }); internal_static_google_cloud_compute_v1_HttpHeaderAction_descriptor = - getDescriptor().getMessageTypes().get(542); + getDescriptor().getMessageTypes().get(544); internal_static_google_cloud_compute_v1_HttpHeaderAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HttpHeaderAction_descriptor, @@ -37923,7 +38012,7 @@ private static void _clinit_autosplit_dinit_1() { "ResponseHeadersToRemove", }); internal_static_google_cloud_compute_v1_HttpHeaderMatch_descriptor = - getDescriptor().getMessageTypes().get(543); + getDescriptor().getMessageTypes().get(545); internal_static_google_cloud_compute_v1_HttpHeaderMatch_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HttpHeaderMatch_descriptor, @@ -37938,7 +38027,7 @@ private static void _clinit_autosplit_dinit_1() { "SuffixMatch", }); internal_static_google_cloud_compute_v1_HttpHeaderOption_descriptor = - getDescriptor().getMessageTypes().get(544); + getDescriptor().getMessageTypes().get(546); internal_static_google_cloud_compute_v1_HttpHeaderOption_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HttpHeaderOption_descriptor, @@ -37946,7 +38035,7 @@ private static void _clinit_autosplit_dinit_1() { "HeaderName", "HeaderValue", "Replace", }); internal_static_google_cloud_compute_v1_HttpQueryParameterMatch_descriptor = - getDescriptor().getMessageTypes().get(545); + getDescriptor().getMessageTypes().get(547); internal_static_google_cloud_compute_v1_HttpQueryParameterMatch_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HttpQueryParameterMatch_descriptor, @@ -37954,7 +38043,7 @@ private static void _clinit_autosplit_dinit_1() { "ExactMatch", "Name", "PresentMatch", "RegexMatch", }); internal_static_google_cloud_compute_v1_HttpRedirectAction_descriptor = - getDescriptor().getMessageTypes().get(546); + getDescriptor().getMessageTypes().get(548); internal_static_google_cloud_compute_v1_HttpRedirectAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HttpRedirectAction_descriptor, @@ -37967,7 +38056,7 @@ private static void _clinit_autosplit_dinit_1() { "StripQuery", }); internal_static_google_cloud_compute_v1_HttpRetryPolicy_descriptor = - getDescriptor().getMessageTypes().get(547); + getDescriptor().getMessageTypes().get(549); internal_static_google_cloud_compute_v1_HttpRetryPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HttpRetryPolicy_descriptor, @@ -37975,7 +38064,7 @@ private static void _clinit_autosplit_dinit_1() { "NumRetries", "PerTryTimeout", "RetryConditions", }); internal_static_google_cloud_compute_v1_HttpRouteAction_descriptor = - getDescriptor().getMessageTypes().get(548); + getDescriptor().getMessageTypes().get(550); internal_static_google_cloud_compute_v1_HttpRouteAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HttpRouteAction_descriptor, @@ -37990,7 +38079,7 @@ private static void _clinit_autosplit_dinit_1() { "WeightedBackendServices", }); internal_static_google_cloud_compute_v1_HttpRouteRule_descriptor = - getDescriptor().getMessageTypes().get(549); + getDescriptor().getMessageTypes().get(551); internal_static_google_cloud_compute_v1_HttpRouteRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HttpRouteRule_descriptor, @@ -38005,7 +38094,7 @@ private static void _clinit_autosplit_dinit_1() { "UrlRedirect", }); internal_static_google_cloud_compute_v1_HttpRouteRuleMatch_descriptor = - getDescriptor().getMessageTypes().get(550); + getDescriptor().getMessageTypes().get(552); internal_static_google_cloud_compute_v1_HttpRouteRuleMatch_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HttpRouteRuleMatch_descriptor, @@ -38020,7 +38109,7 @@ private static void _clinit_autosplit_dinit_1() { "RegexMatch", }); internal_static_google_cloud_compute_v1_Image_descriptor = - getDescriptor().getMessageTypes().get(551); + getDescriptor().getMessageTypes().get(553); internal_static_google_cloud_compute_v1_Image_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Image_descriptor, @@ -38069,7 +38158,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_ImageFamilyView_descriptor = - getDescriptor().getMessageTypes().get(552); + getDescriptor().getMessageTypes().get(554); internal_static_google_cloud_compute_v1_ImageFamilyView_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ImageFamilyView_descriptor, @@ -38077,7 +38166,7 @@ private static void _clinit_autosplit_dinit_1() { "Image", }); internal_static_google_cloud_compute_v1_ImageList_descriptor = - getDescriptor().getMessageTypes().get(553); + getDescriptor().getMessageTypes().get(555); internal_static_google_cloud_compute_v1_ImageList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ImageList_descriptor, @@ -38085,7 +38174,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_InitialStateConfig_descriptor = - getDescriptor().getMessageTypes().get(554); + getDescriptor().getMessageTypes().get(556); internal_static_google_cloud_compute_v1_InitialStateConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InitialStateConfig_descriptor, @@ -38093,7 +38182,7 @@ private static void _clinit_autosplit_dinit_1() { "Dbs", "Dbxs", "Keks", "Pk", }); internal_static_google_cloud_compute_v1_InsertAddressRequest_descriptor = - getDescriptor().getMessageTypes().get(555); + getDescriptor().getMessageTypes().get(557); internal_static_google_cloud_compute_v1_InsertAddressRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertAddressRequest_descriptor, @@ -38101,7 +38190,7 @@ private static void _clinit_autosplit_dinit_1() { "AddressResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertAutoscalerRequest_descriptor = - getDescriptor().getMessageTypes().get(556); + getDescriptor().getMessageTypes().get(558); internal_static_google_cloud_compute_v1_InsertAutoscalerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertAutoscalerRequest_descriptor, @@ -38109,7 +38198,7 @@ private static void _clinit_autosplit_dinit_1() { "AutoscalerResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_InsertBackendBucketRequest_descriptor = - getDescriptor().getMessageTypes().get(557); + getDescriptor().getMessageTypes().get(559); internal_static_google_cloud_compute_v1_InsertBackendBucketRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertBackendBucketRequest_descriptor, @@ -38117,7 +38206,7 @@ private static void _clinit_autosplit_dinit_1() { "BackendBucketResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(558); + getDescriptor().getMessageTypes().get(560); internal_static_google_cloud_compute_v1_InsertBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertBackendServiceRequest_descriptor, @@ -38125,7 +38214,7 @@ private static void _clinit_autosplit_dinit_1() { "BackendServiceResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(559); + getDescriptor().getMessageTypes().get(561); internal_static_google_cloud_compute_v1_InsertDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertDiskRequest_descriptor, @@ -38133,7 +38222,7 @@ private static void _clinit_autosplit_dinit_1() { "DiskResource", "Project", "RequestId", "SourceImage", "Zone", }); internal_static_google_cloud_compute_v1_InsertExternalVpnGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(560); + getDescriptor().getMessageTypes().get(562); internal_static_google_cloud_compute_v1_InsertExternalVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertExternalVpnGatewayRequest_descriptor, @@ -38141,7 +38230,7 @@ private static void _clinit_autosplit_dinit_1() { "ExternalVpnGatewayResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(561); + getDescriptor().getMessageTypes().get(563); internal_static_google_cloud_compute_v1_InsertFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertFirewallPolicyRequest_descriptor, @@ -38149,7 +38238,7 @@ private static void _clinit_autosplit_dinit_1() { "FirewallPolicyResource", "ParentId", "RequestId", }); internal_static_google_cloud_compute_v1_InsertFirewallRequest_descriptor = - getDescriptor().getMessageTypes().get(562); + getDescriptor().getMessageTypes().get(564); internal_static_google_cloud_compute_v1_InsertFirewallRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertFirewallRequest_descriptor, @@ -38157,7 +38246,7 @@ private static void _clinit_autosplit_dinit_1() { "FirewallResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertForwardingRuleRequest_descriptor = - getDescriptor().getMessageTypes().get(563); + getDescriptor().getMessageTypes().get(565); internal_static_google_cloud_compute_v1_InsertForwardingRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertForwardingRuleRequest_descriptor, @@ -38165,7 +38254,7 @@ private static void _clinit_autosplit_dinit_1() { "ForwardingRuleResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertGlobalAddressRequest_descriptor = - getDescriptor().getMessageTypes().get(564); + getDescriptor().getMessageTypes().get(566); internal_static_google_cloud_compute_v1_InsertGlobalAddressRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertGlobalAddressRequest_descriptor, @@ -38173,7 +38262,7 @@ private static void _clinit_autosplit_dinit_1() { "AddressResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertGlobalForwardingRuleRequest_descriptor = - getDescriptor().getMessageTypes().get(565); + getDescriptor().getMessageTypes().get(567); internal_static_google_cloud_compute_v1_InsertGlobalForwardingRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertGlobalForwardingRuleRequest_descriptor, @@ -38181,7 +38270,7 @@ private static void _clinit_autosplit_dinit_1() { "ForwardingRuleResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertGlobalNetworkEndpointGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(566); + getDescriptor().getMessageTypes().get(568); internal_static_google_cloud_compute_v1_InsertGlobalNetworkEndpointGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertGlobalNetworkEndpointGroupRequest_descriptor, @@ -38189,7 +38278,7 @@ private static void _clinit_autosplit_dinit_1() { "NetworkEndpointGroupResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertGlobalPublicDelegatedPrefixeRequest_descriptor = - getDescriptor().getMessageTypes().get(567); + getDescriptor().getMessageTypes().get(569); internal_static_google_cloud_compute_v1_InsertGlobalPublicDelegatedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertGlobalPublicDelegatedPrefixeRequest_descriptor, @@ -38197,7 +38286,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "PublicDelegatedPrefixResource", "RequestId", }); internal_static_google_cloud_compute_v1_InsertHealthCheckRequest_descriptor = - getDescriptor().getMessageTypes().get(568); + getDescriptor().getMessageTypes().get(570); internal_static_google_cloud_compute_v1_InsertHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertHealthCheckRequest_descriptor, @@ -38205,7 +38294,7 @@ private static void _clinit_autosplit_dinit_1() { "HealthCheckResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertImageRequest_descriptor = - getDescriptor().getMessageTypes().get(569); + getDescriptor().getMessageTypes().get(571); internal_static_google_cloud_compute_v1_InsertImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertImageRequest_descriptor, @@ -38213,7 +38302,7 @@ private static void _clinit_autosplit_dinit_1() { "ForceCreate", "ImageResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(570); + getDescriptor().getMessageTypes().get(572); internal_static_google_cloud_compute_v1_InsertInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertInstanceGroupManagerRequest_descriptor, @@ -38221,7 +38310,7 @@ private static void _clinit_autosplit_dinit_1() { "InstanceGroupManagerResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_InsertInstanceGroupManagerResizeRequestRequest_descriptor = - getDescriptor().getMessageTypes().get(571); + getDescriptor().getMessageTypes().get(573); internal_static_google_cloud_compute_v1_InsertInstanceGroupManagerResizeRequestRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertInstanceGroupManagerResizeRequestRequest_descriptor, @@ -38233,7 +38322,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_InsertInstanceGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(572); + getDescriptor().getMessageTypes().get(574); internal_static_google_cloud_compute_v1_InsertInstanceGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertInstanceGroupRequest_descriptor, @@ -38241,7 +38330,7 @@ private static void _clinit_autosplit_dinit_1() { "InstanceGroupResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_InsertInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(573); + getDescriptor().getMessageTypes().get(575); internal_static_google_cloud_compute_v1_InsertInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertInstanceRequest_descriptor, @@ -38254,7 +38343,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_InsertInstanceTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(574); + getDescriptor().getMessageTypes().get(576); internal_static_google_cloud_compute_v1_InsertInstanceTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertInstanceTemplateRequest_descriptor, @@ -38262,7 +38351,7 @@ private static void _clinit_autosplit_dinit_1() { "InstanceTemplateResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertInstantSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(575); + getDescriptor().getMessageTypes().get(577); internal_static_google_cloud_compute_v1_InsertInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertInstantSnapshotRequest_descriptor, @@ -38270,7 +38359,7 @@ private static void _clinit_autosplit_dinit_1() { "InstantSnapshotResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_InsertInterconnectAttachmentGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(576); + getDescriptor().getMessageTypes().get(578); internal_static_google_cloud_compute_v1_InsertInterconnectAttachmentGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertInterconnectAttachmentGroupRequest_descriptor, @@ -38278,7 +38367,7 @@ private static void _clinit_autosplit_dinit_1() { "InterconnectAttachmentGroupResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertInterconnectAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(577); + getDescriptor().getMessageTypes().get(579); internal_static_google_cloud_compute_v1_InsertInterconnectAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertInterconnectAttachmentRequest_descriptor, @@ -38286,7 +38375,7 @@ private static void _clinit_autosplit_dinit_1() { "InterconnectAttachmentResource", "Project", "Region", "RequestId", "ValidateOnly", }); internal_static_google_cloud_compute_v1_InsertInterconnectGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(578); + getDescriptor().getMessageTypes().get(580); internal_static_google_cloud_compute_v1_InsertInterconnectGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertInterconnectGroupRequest_descriptor, @@ -38294,7 +38383,7 @@ private static void _clinit_autosplit_dinit_1() { "InterconnectGroupResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertInterconnectRequest_descriptor = - getDescriptor().getMessageTypes().get(579); + getDescriptor().getMessageTypes().get(581); internal_static_google_cloud_compute_v1_InsertInterconnectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertInterconnectRequest_descriptor, @@ -38302,7 +38391,7 @@ private static void _clinit_autosplit_dinit_1() { "InterconnectResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertLicenseRequest_descriptor = - getDescriptor().getMessageTypes().get(580); + getDescriptor().getMessageTypes().get(582); internal_static_google_cloud_compute_v1_InsertLicenseRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertLicenseRequest_descriptor, @@ -38310,7 +38399,7 @@ private static void _clinit_autosplit_dinit_1() { "LicenseResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertMachineImageRequest_descriptor = - getDescriptor().getMessageTypes().get(581); + getDescriptor().getMessageTypes().get(583); internal_static_google_cloud_compute_v1_InsertMachineImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertMachineImageRequest_descriptor, @@ -38318,7 +38407,7 @@ private static void _clinit_autosplit_dinit_1() { "MachineImageResource", "Project", "RequestId", "SourceInstance", }); internal_static_google_cloud_compute_v1_InsertNetworkAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(582); + getDescriptor().getMessageTypes().get(584); internal_static_google_cloud_compute_v1_InsertNetworkAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertNetworkAttachmentRequest_descriptor, @@ -38326,7 +38415,7 @@ private static void _clinit_autosplit_dinit_1() { "NetworkAttachmentResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertNetworkEdgeSecurityServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(583); + getDescriptor().getMessageTypes().get(585); internal_static_google_cloud_compute_v1_InsertNetworkEdgeSecurityServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertNetworkEdgeSecurityServiceRequest_descriptor, @@ -38338,7 +38427,7 @@ private static void _clinit_autosplit_dinit_1() { "ValidateOnly", }); internal_static_google_cloud_compute_v1_InsertNetworkEndpointGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(584); + getDescriptor().getMessageTypes().get(586); internal_static_google_cloud_compute_v1_InsertNetworkEndpointGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertNetworkEndpointGroupRequest_descriptor, @@ -38346,7 +38435,7 @@ private static void _clinit_autosplit_dinit_1() { "NetworkEndpointGroupResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_InsertNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(585); + getDescriptor().getMessageTypes().get(587); internal_static_google_cloud_compute_v1_InsertNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertNetworkFirewallPolicyRequest_descriptor, @@ -38354,7 +38443,7 @@ private static void _clinit_autosplit_dinit_1() { "FirewallPolicyResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertNetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(586); + getDescriptor().getMessageTypes().get(588); internal_static_google_cloud_compute_v1_InsertNetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertNetworkRequest_descriptor, @@ -38362,7 +38451,7 @@ private static void _clinit_autosplit_dinit_1() { "NetworkResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertNodeGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(587); + getDescriptor().getMessageTypes().get(589); internal_static_google_cloud_compute_v1_InsertNodeGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertNodeGroupRequest_descriptor, @@ -38370,7 +38459,7 @@ private static void _clinit_autosplit_dinit_1() { "InitialNodeCount", "NodeGroupResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_InsertNodeTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(588); + getDescriptor().getMessageTypes().get(590); internal_static_google_cloud_compute_v1_InsertNodeTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertNodeTemplateRequest_descriptor, @@ -38378,7 +38467,7 @@ private static void _clinit_autosplit_dinit_1() { "NodeTemplateResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertPacketMirroringRequest_descriptor = - getDescriptor().getMessageTypes().get(589); + getDescriptor().getMessageTypes().get(591); internal_static_google_cloud_compute_v1_InsertPacketMirroringRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertPacketMirroringRequest_descriptor, @@ -38386,7 +38475,7 @@ private static void _clinit_autosplit_dinit_1() { "PacketMirroringResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertPublicAdvertisedPrefixeRequest_descriptor = - getDescriptor().getMessageTypes().get(590); + getDescriptor().getMessageTypes().get(592); internal_static_google_cloud_compute_v1_InsertPublicAdvertisedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertPublicAdvertisedPrefixeRequest_descriptor, @@ -38394,7 +38483,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "PublicAdvertisedPrefixResource", "RequestId", }); internal_static_google_cloud_compute_v1_InsertPublicDelegatedPrefixeRequest_descriptor = - getDescriptor().getMessageTypes().get(591); + getDescriptor().getMessageTypes().get(593); internal_static_google_cloud_compute_v1_InsertPublicDelegatedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertPublicDelegatedPrefixeRequest_descriptor, @@ -38402,7 +38491,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "PublicDelegatedPrefixResource", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertRegionAutoscalerRequest_descriptor = - getDescriptor().getMessageTypes().get(592); + getDescriptor().getMessageTypes().get(594); internal_static_google_cloud_compute_v1_InsertRegionAutoscalerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionAutoscalerRequest_descriptor, @@ -38410,7 +38499,7 @@ private static void _clinit_autosplit_dinit_1() { "AutoscalerResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertRegionBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(593); + getDescriptor().getMessageTypes().get(595); internal_static_google_cloud_compute_v1_InsertRegionBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionBackendServiceRequest_descriptor, @@ -38418,7 +38507,7 @@ private static void _clinit_autosplit_dinit_1() { "BackendServiceResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertRegionCommitmentRequest_descriptor = - getDescriptor().getMessageTypes().get(594); + getDescriptor().getMessageTypes().get(596); internal_static_google_cloud_compute_v1_InsertRegionCommitmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionCommitmentRequest_descriptor, @@ -38426,7 +38515,7 @@ private static void _clinit_autosplit_dinit_1() { "CommitmentResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertRegionDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(595); + getDescriptor().getMessageTypes().get(597); internal_static_google_cloud_compute_v1_InsertRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionDiskRequest_descriptor, @@ -38434,7 +38523,7 @@ private static void _clinit_autosplit_dinit_1() { "DiskResource", "Project", "Region", "RequestId", "SourceImage", }); internal_static_google_cloud_compute_v1_InsertRegionHealthCheckRequest_descriptor = - getDescriptor().getMessageTypes().get(596); + getDescriptor().getMessageTypes().get(598); internal_static_google_cloud_compute_v1_InsertRegionHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionHealthCheckRequest_descriptor, @@ -38442,7 +38531,7 @@ private static void _clinit_autosplit_dinit_1() { "HealthCheckResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertRegionHealthCheckServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(597); + getDescriptor().getMessageTypes().get(599); internal_static_google_cloud_compute_v1_InsertRegionHealthCheckServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionHealthCheckServiceRequest_descriptor, @@ -38450,7 +38539,7 @@ private static void _clinit_autosplit_dinit_1() { "HealthCheckServiceResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(598); + getDescriptor().getMessageTypes().get(600); internal_static_google_cloud_compute_v1_InsertRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionInstanceGroupManagerRequest_descriptor, @@ -38458,7 +38547,7 @@ private static void _clinit_autosplit_dinit_1() { "InstanceGroupManagerResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertRegionInstanceTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(599); + getDescriptor().getMessageTypes().get(601); internal_static_google_cloud_compute_v1_InsertRegionInstanceTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionInstanceTemplateRequest_descriptor, @@ -38466,7 +38555,7 @@ private static void _clinit_autosplit_dinit_1() { "InstanceTemplateResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertRegionInstantSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(600); + getDescriptor().getMessageTypes().get(602); internal_static_google_cloud_compute_v1_InsertRegionInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionInstantSnapshotRequest_descriptor, @@ -38474,7 +38563,7 @@ private static void _clinit_autosplit_dinit_1() { "InstantSnapshotResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertRegionNetworkEndpointGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(601); + getDescriptor().getMessageTypes().get(603); internal_static_google_cloud_compute_v1_InsertRegionNetworkEndpointGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionNetworkEndpointGroupRequest_descriptor, @@ -38482,7 +38571,7 @@ private static void _clinit_autosplit_dinit_1() { "NetworkEndpointGroupResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(602); + getDescriptor().getMessageTypes().get(604); internal_static_google_cloud_compute_v1_InsertRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionNetworkFirewallPolicyRequest_descriptor, @@ -38490,7 +38579,7 @@ private static void _clinit_autosplit_dinit_1() { "FirewallPolicyResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertRegionNotificationEndpointRequest_descriptor = - getDescriptor().getMessageTypes().get(603); + getDescriptor().getMessageTypes().get(605); internal_static_google_cloud_compute_v1_InsertRegionNotificationEndpointRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionNotificationEndpointRequest_descriptor, @@ -38498,7 +38587,7 @@ private static void _clinit_autosplit_dinit_1() { "NotificationEndpointResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertRegionSecurityPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(604); + getDescriptor().getMessageTypes().get(606); internal_static_google_cloud_compute_v1_InsertRegionSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionSecurityPolicyRequest_descriptor, @@ -38506,7 +38595,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "SecurityPolicyResource", "ValidateOnly", }); internal_static_google_cloud_compute_v1_InsertRegionSslCertificateRequest_descriptor = - getDescriptor().getMessageTypes().get(605); + getDescriptor().getMessageTypes().get(607); internal_static_google_cloud_compute_v1_InsertRegionSslCertificateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionSslCertificateRequest_descriptor, @@ -38514,7 +38603,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "SslCertificateResource", }); internal_static_google_cloud_compute_v1_InsertRegionSslPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(606); + getDescriptor().getMessageTypes().get(608); internal_static_google_cloud_compute_v1_InsertRegionSslPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionSslPolicyRequest_descriptor, @@ -38522,7 +38611,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "SslPolicyResource", }); internal_static_google_cloud_compute_v1_InsertRegionTargetHttpProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(607); + getDescriptor().getMessageTypes().get(609); internal_static_google_cloud_compute_v1_InsertRegionTargetHttpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionTargetHttpProxyRequest_descriptor, @@ -38530,7 +38619,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "TargetHttpProxyResource", }); internal_static_google_cloud_compute_v1_InsertRegionTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(608); + getDescriptor().getMessageTypes().get(610); internal_static_google_cloud_compute_v1_InsertRegionTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionTargetHttpsProxyRequest_descriptor, @@ -38538,7 +38627,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "TargetHttpsProxyResource", }); internal_static_google_cloud_compute_v1_InsertRegionTargetTcpProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(609); + getDescriptor().getMessageTypes().get(611); internal_static_google_cloud_compute_v1_InsertRegionTargetTcpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionTargetTcpProxyRequest_descriptor, @@ -38546,7 +38635,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "TargetTcpProxyResource", }); internal_static_google_cloud_compute_v1_InsertRegionUrlMapRequest_descriptor = - getDescriptor().getMessageTypes().get(610); + getDescriptor().getMessageTypes().get(612); internal_static_google_cloud_compute_v1_InsertRegionUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionUrlMapRequest_descriptor, @@ -38554,7 +38643,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "UrlMapResource", }); internal_static_google_cloud_compute_v1_InsertReservationRequest_descriptor = - getDescriptor().getMessageTypes().get(611); + getDescriptor().getMessageTypes().get(613); internal_static_google_cloud_compute_v1_InsertReservationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertReservationRequest_descriptor, @@ -38562,7 +38651,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "ReservationResource", "Zone", }); internal_static_google_cloud_compute_v1_InsertResourcePolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(612); + getDescriptor().getMessageTypes().get(614); internal_static_google_cloud_compute_v1_InsertResourcePolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertResourcePolicyRequest_descriptor, @@ -38570,7 +38659,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "ResourcePolicyResource", }); internal_static_google_cloud_compute_v1_InsertRouteRequest_descriptor = - getDescriptor().getMessageTypes().get(613); + getDescriptor().getMessageTypes().get(615); internal_static_google_cloud_compute_v1_InsertRouteRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRouteRequest_descriptor, @@ -38578,7 +38667,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "RouteResource", }); internal_static_google_cloud_compute_v1_InsertRouterRequest_descriptor = - getDescriptor().getMessageTypes().get(614); + getDescriptor().getMessageTypes().get(616); internal_static_google_cloud_compute_v1_InsertRouterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRouterRequest_descriptor, @@ -38586,7 +38675,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "RouterResource", }); internal_static_google_cloud_compute_v1_InsertSecurityPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(615); + getDescriptor().getMessageTypes().get(617); internal_static_google_cloud_compute_v1_InsertSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertSecurityPolicyRequest_descriptor, @@ -38594,7 +38683,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "SecurityPolicyResource", "ValidateOnly", }); internal_static_google_cloud_compute_v1_InsertServiceAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(616); + getDescriptor().getMessageTypes().get(618); internal_static_google_cloud_compute_v1_InsertServiceAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertServiceAttachmentRequest_descriptor, @@ -38602,7 +38691,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "ServiceAttachmentResource", }); internal_static_google_cloud_compute_v1_InsertSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(617); + getDescriptor().getMessageTypes().get(619); internal_static_google_cloud_compute_v1_InsertSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertSnapshotRequest_descriptor, @@ -38610,7 +38699,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "SnapshotResource", }); internal_static_google_cloud_compute_v1_InsertSslCertificateRequest_descriptor = - getDescriptor().getMessageTypes().get(618); + getDescriptor().getMessageTypes().get(620); internal_static_google_cloud_compute_v1_InsertSslCertificateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertSslCertificateRequest_descriptor, @@ -38618,7 +38707,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "SslCertificateResource", }); internal_static_google_cloud_compute_v1_InsertSslPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(619); + getDescriptor().getMessageTypes().get(621); internal_static_google_cloud_compute_v1_InsertSslPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertSslPolicyRequest_descriptor, @@ -38626,7 +38715,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "SslPolicyResource", }); internal_static_google_cloud_compute_v1_InsertStoragePoolRequest_descriptor = - getDescriptor().getMessageTypes().get(620); + getDescriptor().getMessageTypes().get(622); internal_static_google_cloud_compute_v1_InsertStoragePoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertStoragePoolRequest_descriptor, @@ -38634,7 +38723,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "StoragePoolResource", "Zone", }); internal_static_google_cloud_compute_v1_InsertSubnetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(621); + getDescriptor().getMessageTypes().get(623); internal_static_google_cloud_compute_v1_InsertSubnetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertSubnetworkRequest_descriptor, @@ -38642,7 +38731,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "SubnetworkResource", }); internal_static_google_cloud_compute_v1_InsertTargetGrpcProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(622); + getDescriptor().getMessageTypes().get(624); internal_static_google_cloud_compute_v1_InsertTargetGrpcProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertTargetGrpcProxyRequest_descriptor, @@ -38650,7 +38739,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "TargetGrpcProxyResource", }); internal_static_google_cloud_compute_v1_InsertTargetHttpProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(623); + getDescriptor().getMessageTypes().get(625); internal_static_google_cloud_compute_v1_InsertTargetHttpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertTargetHttpProxyRequest_descriptor, @@ -38658,7 +38747,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "TargetHttpProxyResource", }); internal_static_google_cloud_compute_v1_InsertTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(624); + getDescriptor().getMessageTypes().get(626); internal_static_google_cloud_compute_v1_InsertTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertTargetHttpsProxyRequest_descriptor, @@ -38666,7 +38755,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "TargetHttpsProxyResource", }); internal_static_google_cloud_compute_v1_InsertTargetInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(625); + getDescriptor().getMessageTypes().get(627); internal_static_google_cloud_compute_v1_InsertTargetInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertTargetInstanceRequest_descriptor, @@ -38674,7 +38763,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "TargetInstanceResource", "Zone", }); internal_static_google_cloud_compute_v1_InsertTargetPoolRequest_descriptor = - getDescriptor().getMessageTypes().get(626); + getDescriptor().getMessageTypes().get(628); internal_static_google_cloud_compute_v1_InsertTargetPoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertTargetPoolRequest_descriptor, @@ -38682,7 +38771,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "TargetPoolResource", }); internal_static_google_cloud_compute_v1_InsertTargetSslProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(627); + getDescriptor().getMessageTypes().get(629); internal_static_google_cloud_compute_v1_InsertTargetSslProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertTargetSslProxyRequest_descriptor, @@ -38690,7 +38779,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "TargetSslProxyResource", }); internal_static_google_cloud_compute_v1_InsertTargetTcpProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(628); + getDescriptor().getMessageTypes().get(630); internal_static_google_cloud_compute_v1_InsertTargetTcpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertTargetTcpProxyRequest_descriptor, @@ -38698,7 +38787,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "TargetTcpProxyResource", }); internal_static_google_cloud_compute_v1_InsertTargetVpnGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(629); + getDescriptor().getMessageTypes().get(631); internal_static_google_cloud_compute_v1_InsertTargetVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertTargetVpnGatewayRequest_descriptor, @@ -38706,7 +38795,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "TargetVpnGatewayResource", }); internal_static_google_cloud_compute_v1_InsertUrlMapRequest_descriptor = - getDescriptor().getMessageTypes().get(630); + getDescriptor().getMessageTypes().get(632); internal_static_google_cloud_compute_v1_InsertUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertUrlMapRequest_descriptor, @@ -38714,7 +38803,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "UrlMapResource", }); internal_static_google_cloud_compute_v1_InsertVpnGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(631); + getDescriptor().getMessageTypes().get(633); internal_static_google_cloud_compute_v1_InsertVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertVpnGatewayRequest_descriptor, @@ -38722,7 +38811,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "VpnGatewayResource", }); internal_static_google_cloud_compute_v1_InsertVpnTunnelRequest_descriptor = - getDescriptor().getMessageTypes().get(632); + getDescriptor().getMessageTypes().get(634); internal_static_google_cloud_compute_v1_InsertVpnTunnelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertVpnTunnelRequest_descriptor, @@ -38730,7 +38819,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "VpnTunnelResource", }); internal_static_google_cloud_compute_v1_Instance_descriptor = - getDescriptor().getMessageTypes().get(633); + getDescriptor().getMessageTypes().get(635); internal_static_google_cloud_compute_v1_Instance_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Instance_descriptor, @@ -38791,7 +38880,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstanceAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(634); + getDescriptor().getMessageTypes().get(636); internal_static_google_cloud_compute_v1_InstanceAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceAggregatedList_descriptor, @@ -38809,7 +38898,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstanceConsumptionData_descriptor = - getDescriptor().getMessageTypes().get(635); + getDescriptor().getMessageTypes().get(637); internal_static_google_cloud_compute_v1_InstanceConsumptionData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceConsumptionData_descriptor, @@ -38817,7 +38906,7 @@ private static void _clinit_autosplit_dinit_1() { "ConsumptionInfo", "Instance", }); internal_static_google_cloud_compute_v1_InstanceConsumptionInfo_descriptor = - getDescriptor().getMessageTypes().get(636); + getDescriptor().getMessageTypes().get(638); internal_static_google_cloud_compute_v1_InstanceConsumptionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceConsumptionInfo_descriptor, @@ -38825,7 +38914,7 @@ private static void _clinit_autosplit_dinit_1() { "GuestCpus", "LocalSsdGb", "MemoryMb", "MinNodeCpus", }); internal_static_google_cloud_compute_v1_InstanceGroup_descriptor = - getDescriptor().getMessageTypes().get(637); + getDescriptor().getMessageTypes().get(639); internal_static_google_cloud_compute_v1_InstanceGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroup_descriptor, @@ -38845,7 +38934,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_InstanceGroupAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(638); + getDescriptor().getMessageTypes().get(640); internal_static_google_cloud_compute_v1_InstanceGroupAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupAggregatedList_descriptor, @@ -38863,7 +38952,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstanceGroupList_descriptor = - getDescriptor().getMessageTypes().get(639); + getDescriptor().getMessageTypes().get(641); internal_static_google_cloud_compute_v1_InstanceGroupList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupList_descriptor, @@ -38871,7 +38960,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_InstanceGroupManager_descriptor = - getDescriptor().getMessageTypes().get(640); + getDescriptor().getMessageTypes().get(642); internal_static_google_cloud_compute_v1_InstanceGroupManager_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManager_descriptor, @@ -38910,7 +38999,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerActionsSummary_descriptor = - getDescriptor().getMessageTypes().get(641); + getDescriptor().getMessageTypes().get(643); internal_static_google_cloud_compute_v1_InstanceGroupManagerActionsSummary_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerActionsSummary_descriptor, @@ -38930,7 +39019,7 @@ private static void _clinit_autosplit_dinit_1() { "Verifying", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(642); + getDescriptor().getMessageTypes().get(644); internal_static_google_cloud_compute_v1_InstanceGroupManagerAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerAggregatedList_descriptor, @@ -38948,7 +39037,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerAllInstancesConfig_descriptor = - getDescriptor().getMessageTypes().get(643); + getDescriptor().getMessageTypes().get(645); internal_static_google_cloud_compute_v1_InstanceGroupManagerAllInstancesConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerAllInstancesConfig_descriptor, @@ -38956,7 +39045,7 @@ private static void _clinit_autosplit_dinit_1() { "Properties", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerAutoHealingPolicy_descriptor = - getDescriptor().getMessageTypes().get(644); + getDescriptor().getMessageTypes().get(646); internal_static_google_cloud_compute_v1_InstanceGroupManagerAutoHealingPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerAutoHealingPolicy_descriptor, @@ -38964,7 +39053,7 @@ private static void _clinit_autosplit_dinit_1() { "HealthCheck", "InitialDelaySec", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerInstanceFlexibilityPolicy_descriptor = - getDescriptor().getMessageTypes().get(645); + getDescriptor().getMessageTypes().get(647); internal_static_google_cloud_compute_v1_InstanceGroupManagerInstanceFlexibilityPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerInstanceFlexibilityPolicy_descriptor, @@ -38982,7 +39071,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection_descriptor = - getDescriptor().getMessageTypes().get(646); + getDescriptor().getMessageTypes().get(648); internal_static_google_cloud_compute_v1_InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection_descriptor, @@ -38990,7 +39079,7 @@ private static void _clinit_autosplit_dinit_1() { "MachineTypes", "Rank", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerInstanceLifecyclePolicy_descriptor = - getDescriptor().getMessageTypes().get(647); + getDescriptor().getMessageTypes().get(649); internal_static_google_cloud_compute_v1_InstanceGroupManagerInstanceLifecyclePolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerInstanceLifecyclePolicy_descriptor, @@ -38998,7 +39087,7 @@ private static void _clinit_autosplit_dinit_1() { "DefaultActionOnFailure", "ForceUpdateOnRepair", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerList_descriptor = - getDescriptor().getMessageTypes().get(648); + getDescriptor().getMessageTypes().get(650); internal_static_google_cloud_compute_v1_InstanceGroupManagerList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerList_descriptor, @@ -39006,7 +39095,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerResizeRequest_descriptor = - getDescriptor().getMessageTypes().get(649); + getDescriptor().getMessageTypes().get(651); internal_static_google_cloud_compute_v1_InstanceGroupManagerResizeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerResizeRequest_descriptor, @@ -39025,7 +39114,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerResizeRequestStatus_descriptor = - getDescriptor().getMessageTypes().get(650); + getDescriptor().getMessageTypes().get(652); internal_static_google_cloud_compute_v1_InstanceGroupManagerResizeRequestStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerResizeRequestStatus_descriptor, @@ -39033,7 +39122,7 @@ private static void _clinit_autosplit_dinit_1() { "Error", "LastAttempt", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerResizeRequestStatusLastAttempt_descriptor = - getDescriptor().getMessageTypes().get(651); + getDescriptor().getMessageTypes().get(653); internal_static_google_cloud_compute_v1_InstanceGroupManagerResizeRequestStatusLastAttempt_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerResizeRequestStatusLastAttempt_descriptor, @@ -39041,7 +39130,7 @@ private static void _clinit_autosplit_dinit_1() { "Error", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerResizeRequestsListResponse_descriptor = - getDescriptor().getMessageTypes().get(652); + getDescriptor().getMessageTypes().get(654); internal_static_google_cloud_compute_v1_InstanceGroupManagerResizeRequestsListResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerResizeRequestsListResponse_descriptor, @@ -39049,7 +39138,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerResourcePolicies_descriptor = - getDescriptor().getMessageTypes().get(653); + getDescriptor().getMessageTypes().get(655); internal_static_google_cloud_compute_v1_InstanceGroupManagerResourcePolicies_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerResourcePolicies_descriptor, @@ -39057,7 +39146,7 @@ private static void _clinit_autosplit_dinit_1() { "WorkloadPolicy", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerStandbyPolicy_descriptor = - getDescriptor().getMessageTypes().get(654); + getDescriptor().getMessageTypes().get(656); internal_static_google_cloud_compute_v1_InstanceGroupManagerStandbyPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerStandbyPolicy_descriptor, @@ -39065,7 +39154,7 @@ private static void _clinit_autosplit_dinit_1() { "InitialDelaySec", "Mode", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerStatus_descriptor = - getDescriptor().getMessageTypes().get(655); + getDescriptor().getMessageTypes().get(657); internal_static_google_cloud_compute_v1_InstanceGroupManagerStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerStatus_descriptor, @@ -39073,7 +39162,7 @@ private static void _clinit_autosplit_dinit_1() { "AllInstancesConfig", "Autoscaler", "IsStable", "Stateful", "VersionTarget", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusAllInstancesConfig_descriptor = - getDescriptor().getMessageTypes().get(656); + getDescriptor().getMessageTypes().get(658); internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusAllInstancesConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusAllInstancesConfig_descriptor, @@ -39081,7 +39170,7 @@ private static void _clinit_autosplit_dinit_1() { "CurrentRevision", "Effective", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusStateful_descriptor = - getDescriptor().getMessageTypes().get(657); + getDescriptor().getMessageTypes().get(659); internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusStateful_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusStateful_descriptor, @@ -39089,7 +39178,7 @@ private static void _clinit_autosplit_dinit_1() { "HasStatefulConfig", "PerInstanceConfigs", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusStatefulPerInstanceConfigs_descriptor = - getDescriptor().getMessageTypes().get(658); + getDescriptor().getMessageTypes().get(660); internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusStatefulPerInstanceConfigs_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusStatefulPerInstanceConfigs_descriptor, @@ -39097,7 +39186,7 @@ private static void _clinit_autosplit_dinit_1() { "AllEffective", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusVersionTarget_descriptor = - getDescriptor().getMessageTypes().get(659); + getDescriptor().getMessageTypes().get(661); internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusVersionTarget_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusVersionTarget_descriptor, @@ -39105,7 +39194,7 @@ private static void _clinit_autosplit_dinit_1() { "IsReached", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerUpdatePolicy_descriptor = - getDescriptor().getMessageTypes().get(660); + getDescriptor().getMessageTypes().get(662); internal_static_google_cloud_compute_v1_InstanceGroupManagerUpdatePolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerUpdatePolicy_descriptor, @@ -39119,7 +39208,7 @@ private static void _clinit_autosplit_dinit_1() { "Type", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerVersion_descriptor = - getDescriptor().getMessageTypes().get(661); + getDescriptor().getMessageTypes().get(663); internal_static_google_cloud_compute_v1_InstanceGroupManagerVersion_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerVersion_descriptor, @@ -39127,7 +39216,7 @@ private static void _clinit_autosplit_dinit_1() { "InstanceTemplate", "Name", "TargetSize", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersAbandonInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(662); + getDescriptor().getMessageTypes().get(664); internal_static_google_cloud_compute_v1_InstanceGroupManagersAbandonInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersAbandonInstancesRequest_descriptor, @@ -39135,7 +39224,7 @@ private static void _clinit_autosplit_dinit_1() { "Instances", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersApplyUpdatesRequest_descriptor = - getDescriptor().getMessageTypes().get(663); + getDescriptor().getMessageTypes().get(665); internal_static_google_cloud_compute_v1_InstanceGroupManagersApplyUpdatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersApplyUpdatesRequest_descriptor, @@ -39143,7 +39232,7 @@ private static void _clinit_autosplit_dinit_1() { "AllInstances", "Instances", "MinimalAction", "MostDisruptiveAllowedAction", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersCreateInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(664); + getDescriptor().getMessageTypes().get(666); internal_static_google_cloud_compute_v1_InstanceGroupManagersCreateInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersCreateInstancesRequest_descriptor, @@ -39151,7 +39240,7 @@ private static void _clinit_autosplit_dinit_1() { "Instances", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersDeleteInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(665); + getDescriptor().getMessageTypes().get(667); internal_static_google_cloud_compute_v1_InstanceGroupManagersDeleteInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersDeleteInstancesRequest_descriptor, @@ -39159,7 +39248,7 @@ private static void _clinit_autosplit_dinit_1() { "Instances", "SkipInstancesOnValidationError", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersDeletePerInstanceConfigsReq_descriptor = - getDescriptor().getMessageTypes().get(666); + getDescriptor().getMessageTypes().get(668); internal_static_google_cloud_compute_v1_InstanceGroupManagersDeletePerInstanceConfigsReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersDeletePerInstanceConfigsReq_descriptor, @@ -39167,7 +39256,7 @@ private static void _clinit_autosplit_dinit_1() { "Names", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersListErrorsResponse_descriptor = - getDescriptor().getMessageTypes().get(667); + getDescriptor().getMessageTypes().get(669); internal_static_google_cloud_compute_v1_InstanceGroupManagersListErrorsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersListErrorsResponse_descriptor, @@ -39175,7 +39264,7 @@ private static void _clinit_autosplit_dinit_1() { "Items", "NextPageToken", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersListManagedInstancesResponse_descriptor = - getDescriptor().getMessageTypes().get(668); + getDescriptor().getMessageTypes().get(670); internal_static_google_cloud_compute_v1_InstanceGroupManagersListManagedInstancesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersListManagedInstancesResponse_descriptor, @@ -39183,7 +39272,7 @@ private static void _clinit_autosplit_dinit_1() { "ManagedInstances", "NextPageToken", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersListPerInstanceConfigsResp_descriptor = - getDescriptor().getMessageTypes().get(669); + getDescriptor().getMessageTypes().get(671); internal_static_google_cloud_compute_v1_InstanceGroupManagersListPerInstanceConfigsResp_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersListPerInstanceConfigsResp_descriptor, @@ -39191,7 +39280,7 @@ private static void _clinit_autosplit_dinit_1() { "Items", "NextPageToken", "Warning", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersPatchPerInstanceConfigsReq_descriptor = - getDescriptor().getMessageTypes().get(670); + getDescriptor().getMessageTypes().get(672); internal_static_google_cloud_compute_v1_InstanceGroupManagersPatchPerInstanceConfigsReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersPatchPerInstanceConfigsReq_descriptor, @@ -39199,7 +39288,7 @@ private static void _clinit_autosplit_dinit_1() { "PerInstanceConfigs", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersRecreateInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(671); + getDescriptor().getMessageTypes().get(673); internal_static_google_cloud_compute_v1_InstanceGroupManagersRecreateInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersRecreateInstancesRequest_descriptor, @@ -39207,7 +39296,7 @@ private static void _clinit_autosplit_dinit_1() { "Instances", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersResumeInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(672); + getDescriptor().getMessageTypes().get(674); internal_static_google_cloud_compute_v1_InstanceGroupManagersResumeInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersResumeInstancesRequest_descriptor, @@ -39215,7 +39304,7 @@ private static void _clinit_autosplit_dinit_1() { "Instances", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersScopedList_descriptor = - getDescriptor().getMessageTypes().get(673); + getDescriptor().getMessageTypes().get(675); internal_static_google_cloud_compute_v1_InstanceGroupManagersScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersScopedList_descriptor, @@ -39223,7 +39312,7 @@ private static void _clinit_autosplit_dinit_1() { "InstanceGroupManagers", "Warning", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersSetInstanceTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(674); + getDescriptor().getMessageTypes().get(676); internal_static_google_cloud_compute_v1_InstanceGroupManagersSetInstanceTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersSetInstanceTemplateRequest_descriptor, @@ -39231,7 +39320,7 @@ private static void _clinit_autosplit_dinit_1() { "InstanceTemplate", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersSetTargetPoolsRequest_descriptor = - getDescriptor().getMessageTypes().get(675); + getDescriptor().getMessageTypes().get(677); internal_static_google_cloud_compute_v1_InstanceGroupManagersSetTargetPoolsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersSetTargetPoolsRequest_descriptor, @@ -39239,7 +39328,7 @@ private static void _clinit_autosplit_dinit_1() { "Fingerprint", "TargetPools", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersStartInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(676); + getDescriptor().getMessageTypes().get(678); internal_static_google_cloud_compute_v1_InstanceGroupManagersStartInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersStartInstancesRequest_descriptor, @@ -39247,7 +39336,7 @@ private static void _clinit_autosplit_dinit_1() { "Instances", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersStopInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(677); + getDescriptor().getMessageTypes().get(679); internal_static_google_cloud_compute_v1_InstanceGroupManagersStopInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersStopInstancesRequest_descriptor, @@ -39255,7 +39344,7 @@ private static void _clinit_autosplit_dinit_1() { "ForceStop", "Instances", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersSuspendInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(678); + getDescriptor().getMessageTypes().get(680); internal_static_google_cloud_compute_v1_InstanceGroupManagersSuspendInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersSuspendInstancesRequest_descriptor, @@ -39263,7 +39352,7 @@ private static void _clinit_autosplit_dinit_1() { "ForceSuspend", "Instances", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersUpdatePerInstanceConfigsReq_descriptor = - getDescriptor().getMessageTypes().get(679); + getDescriptor().getMessageTypes().get(681); internal_static_google_cloud_compute_v1_InstanceGroupManagersUpdatePerInstanceConfigsReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersUpdatePerInstanceConfigsReq_descriptor, @@ -39271,7 +39360,7 @@ private static void _clinit_autosplit_dinit_1() { "PerInstanceConfigs", }); internal_static_google_cloud_compute_v1_InstanceGroupsAddInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(680); + getDescriptor().getMessageTypes().get(682); internal_static_google_cloud_compute_v1_InstanceGroupsAddInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupsAddInstancesRequest_descriptor, @@ -39279,7 +39368,7 @@ private static void _clinit_autosplit_dinit_1() { "Instances", }); internal_static_google_cloud_compute_v1_InstanceGroupsListInstances_descriptor = - getDescriptor().getMessageTypes().get(681); + getDescriptor().getMessageTypes().get(683); internal_static_google_cloud_compute_v1_InstanceGroupsListInstances_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupsListInstances_descriptor, @@ -39287,7 +39376,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_InstanceGroupsListInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(682); + getDescriptor().getMessageTypes().get(684); internal_static_google_cloud_compute_v1_InstanceGroupsListInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupsListInstancesRequest_descriptor, @@ -39295,7 +39384,7 @@ private static void _clinit_autosplit_dinit_1() { "InstanceState", }); internal_static_google_cloud_compute_v1_InstanceGroupsRemoveInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(683); + getDescriptor().getMessageTypes().get(685); internal_static_google_cloud_compute_v1_InstanceGroupsRemoveInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupsRemoveInstancesRequest_descriptor, @@ -39303,7 +39392,7 @@ private static void _clinit_autosplit_dinit_1() { "Instances", }); internal_static_google_cloud_compute_v1_InstanceGroupsScopedList_descriptor = - getDescriptor().getMessageTypes().get(684); + getDescriptor().getMessageTypes().get(686); internal_static_google_cloud_compute_v1_InstanceGroupsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupsScopedList_descriptor, @@ -39311,7 +39400,7 @@ private static void _clinit_autosplit_dinit_1() { "InstanceGroups", "Warning", }); internal_static_google_cloud_compute_v1_InstanceGroupsSetNamedPortsRequest_descriptor = - getDescriptor().getMessageTypes().get(685); + getDescriptor().getMessageTypes().get(687); internal_static_google_cloud_compute_v1_InstanceGroupsSetNamedPortsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupsSetNamedPortsRequest_descriptor, @@ -39319,7 +39408,7 @@ private static void _clinit_autosplit_dinit_1() { "Fingerprint", "NamedPorts", }); internal_static_google_cloud_compute_v1_InstanceList_descriptor = - getDescriptor().getMessageTypes().get(686); + getDescriptor().getMessageTypes().get(688); internal_static_google_cloud_compute_v1_InstanceList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceList_descriptor, @@ -39327,7 +39416,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_InstanceListReferrers_descriptor = - getDescriptor().getMessageTypes().get(687); + getDescriptor().getMessageTypes().get(689); internal_static_google_cloud_compute_v1_InstanceListReferrers_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceListReferrers_descriptor, @@ -39335,7 +39424,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_InstanceManagedByIgmError_descriptor = - getDescriptor().getMessageTypes().get(688); + getDescriptor().getMessageTypes().get(690); internal_static_google_cloud_compute_v1_InstanceManagedByIgmError_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceManagedByIgmError_descriptor, @@ -39343,7 +39432,7 @@ private static void _clinit_autosplit_dinit_1() { "Error", "InstanceActionDetails", "Timestamp", }); internal_static_google_cloud_compute_v1_InstanceManagedByIgmErrorInstanceActionDetails_descriptor = - getDescriptor().getMessageTypes().get(689); + getDescriptor().getMessageTypes().get(691); internal_static_google_cloud_compute_v1_InstanceManagedByIgmErrorInstanceActionDetails_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceManagedByIgmErrorInstanceActionDetails_descriptor, @@ -39351,7 +39440,7 @@ private static void _clinit_autosplit_dinit_1() { "Action", "Instance", "Version", }); internal_static_google_cloud_compute_v1_InstanceManagedByIgmErrorManagedInstanceError_descriptor = - getDescriptor().getMessageTypes().get(690); + getDescriptor().getMessageTypes().get(692); internal_static_google_cloud_compute_v1_InstanceManagedByIgmErrorManagedInstanceError_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceManagedByIgmErrorManagedInstanceError_descriptor, @@ -39359,7 +39448,7 @@ private static void _clinit_autosplit_dinit_1() { "Code", "Message", }); internal_static_google_cloud_compute_v1_InstanceMoveRequest_descriptor = - getDescriptor().getMessageTypes().get(691); + getDescriptor().getMessageTypes().get(693); internal_static_google_cloud_compute_v1_InstanceMoveRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceMoveRequest_descriptor, @@ -39367,7 +39456,7 @@ private static void _clinit_autosplit_dinit_1() { "DestinationZone", "TargetInstance", }); internal_static_google_cloud_compute_v1_InstanceParams_descriptor = - getDescriptor().getMessageTypes().get(692); + getDescriptor().getMessageTypes().get(694); internal_static_google_cloud_compute_v1_InstanceParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceParams_descriptor, @@ -39383,7 +39472,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstanceProperties_descriptor = - getDescriptor().getMessageTypes().get(693); + getDescriptor().getMessageTypes().get(695); internal_static_google_cloud_compute_v1_InstanceProperties_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceProperties_descriptor, @@ -39431,7 +39520,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstancePropertiesPatch_descriptor = - getDescriptor().getMessageTypes().get(694); + getDescriptor().getMessageTypes().get(696); internal_static_google_cloud_compute_v1_InstancePropertiesPatch_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancePropertiesPatch_descriptor, @@ -39459,7 +39548,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstanceReference_descriptor = - getDescriptor().getMessageTypes().get(695); + getDescriptor().getMessageTypes().get(697); internal_static_google_cloud_compute_v1_InstanceReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceReference_descriptor, @@ -39467,7 +39556,7 @@ private static void _clinit_autosplit_dinit_1() { "Instance", }); internal_static_google_cloud_compute_v1_InstanceSettings_descriptor = - getDescriptor().getMessageTypes().get(696); + getDescriptor().getMessageTypes().get(698); internal_static_google_cloud_compute_v1_InstanceSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceSettings_descriptor, @@ -39475,7 +39564,7 @@ private static void _clinit_autosplit_dinit_1() { "Fingerprint", "Kind", "Metadata", "Zone", }); internal_static_google_cloud_compute_v1_InstanceSettingsMetadata_descriptor = - getDescriptor().getMessageTypes().get(697); + getDescriptor().getMessageTypes().get(699); internal_static_google_cloud_compute_v1_InstanceSettingsMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceSettingsMetadata_descriptor, @@ -39493,7 +39582,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstanceTemplate_descriptor = - getDescriptor().getMessageTypes().get(698); + getDescriptor().getMessageTypes().get(700); internal_static_google_cloud_compute_v1_InstanceTemplate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceTemplate_descriptor, @@ -39510,7 +39599,7 @@ private static void _clinit_autosplit_dinit_1() { "SourceInstanceParams", }); internal_static_google_cloud_compute_v1_InstanceTemplateAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(699); + getDescriptor().getMessageTypes().get(701); internal_static_google_cloud_compute_v1_InstanceTemplateAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceTemplateAggregatedList_descriptor, @@ -39528,7 +39617,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstanceTemplateList_descriptor = - getDescriptor().getMessageTypes().get(700); + getDescriptor().getMessageTypes().get(702); internal_static_google_cloud_compute_v1_InstanceTemplateList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceTemplateList_descriptor, @@ -39536,7 +39625,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_InstanceTemplatesScopedList_descriptor = - getDescriptor().getMessageTypes().get(701); + getDescriptor().getMessageTypes().get(703); internal_static_google_cloud_compute_v1_InstanceTemplatesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceTemplatesScopedList_descriptor, @@ -39544,7 +39633,7 @@ private static void _clinit_autosplit_dinit_1() { "InstanceTemplates", "Warning", }); internal_static_google_cloud_compute_v1_InstanceWithNamedPorts_descriptor = - getDescriptor().getMessageTypes().get(702); + getDescriptor().getMessageTypes().get(704); internal_static_google_cloud_compute_v1_InstanceWithNamedPorts_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceWithNamedPorts_descriptor, @@ -39552,7 +39641,7 @@ private static void _clinit_autosplit_dinit_1() { "Instance", "NamedPorts", "Status", }); internal_static_google_cloud_compute_v1_InstancesAddResourcePoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(703); + getDescriptor().getMessageTypes().get(705); internal_static_google_cloud_compute_v1_InstancesAddResourcePoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesAddResourcePoliciesRequest_descriptor, @@ -39560,7 +39649,7 @@ private static void _clinit_autosplit_dinit_1() { "ResourcePolicies", }); internal_static_google_cloud_compute_v1_InstancesBulkInsertOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(704); + getDescriptor().getMessageTypes().get(706); internal_static_google_cloud_compute_v1_InstancesBulkInsertOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesBulkInsertOperationMetadata_descriptor, @@ -39578,7 +39667,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstancesGetEffectiveFirewallsResponse_descriptor = - getDescriptor().getMessageTypes().get(705); + getDescriptor().getMessageTypes().get(707); internal_static_google_cloud_compute_v1_InstancesGetEffectiveFirewallsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesGetEffectiveFirewallsResponse_descriptor, @@ -39586,7 +39675,7 @@ private static void _clinit_autosplit_dinit_1() { "FirewallPolicys", "Firewalls", }); internal_static_google_cloud_compute_v1_InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy_descriptor = - getDescriptor().getMessageTypes().get(706); + getDescriptor().getMessageTypes().get(708); internal_static_google_cloud_compute_v1_InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy_descriptor, @@ -39600,7 +39689,7 @@ private static void _clinit_autosplit_dinit_1() { "Type", }); internal_static_google_cloud_compute_v1_InstancesRemoveResourcePoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(707); + getDescriptor().getMessageTypes().get(709); internal_static_google_cloud_compute_v1_InstancesRemoveResourcePoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesRemoveResourcePoliciesRequest_descriptor, @@ -39608,7 +39697,7 @@ private static void _clinit_autosplit_dinit_1() { "ResourcePolicies", }); internal_static_google_cloud_compute_v1_InstancesReportHostAsFaultyRequest_descriptor = - getDescriptor().getMessageTypes().get(708); + getDescriptor().getMessageTypes().get(710); internal_static_google_cloud_compute_v1_InstancesReportHostAsFaultyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesReportHostAsFaultyRequest_descriptor, @@ -39616,7 +39705,7 @@ private static void _clinit_autosplit_dinit_1() { "DisruptionSchedule", "FaultReasons", }); internal_static_google_cloud_compute_v1_InstancesReportHostAsFaultyRequestFaultReason_descriptor = - getDescriptor().getMessageTypes().get(709); + getDescriptor().getMessageTypes().get(711); internal_static_google_cloud_compute_v1_InstancesReportHostAsFaultyRequestFaultReason_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesReportHostAsFaultyRequestFaultReason_descriptor, @@ -39624,7 +39713,7 @@ private static void _clinit_autosplit_dinit_1() { "Behavior", "Description", }); internal_static_google_cloud_compute_v1_InstancesScopedList_descriptor = - getDescriptor().getMessageTypes().get(710); + getDescriptor().getMessageTypes().get(712); internal_static_google_cloud_compute_v1_InstancesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesScopedList_descriptor, @@ -39632,7 +39721,7 @@ private static void _clinit_autosplit_dinit_1() { "Instances", "Warning", }); internal_static_google_cloud_compute_v1_InstancesSetLabelsRequest_descriptor = - getDescriptor().getMessageTypes().get(711); + getDescriptor().getMessageTypes().get(713); internal_static_google_cloud_compute_v1_InstancesSetLabelsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesSetLabelsRequest_descriptor, @@ -39650,7 +39739,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstancesSetMachineResourcesRequest_descriptor = - getDescriptor().getMessageTypes().get(712); + getDescriptor().getMessageTypes().get(714); internal_static_google_cloud_compute_v1_InstancesSetMachineResourcesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesSetMachineResourcesRequest_descriptor, @@ -39658,7 +39747,7 @@ private static void _clinit_autosplit_dinit_1() { "GuestAccelerators", }); internal_static_google_cloud_compute_v1_InstancesSetMachineTypeRequest_descriptor = - getDescriptor().getMessageTypes().get(713); + getDescriptor().getMessageTypes().get(715); internal_static_google_cloud_compute_v1_InstancesSetMachineTypeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesSetMachineTypeRequest_descriptor, @@ -39666,7 +39755,7 @@ private static void _clinit_autosplit_dinit_1() { "MachineType", }); internal_static_google_cloud_compute_v1_InstancesSetMinCpuPlatformRequest_descriptor = - getDescriptor().getMessageTypes().get(714); + getDescriptor().getMessageTypes().get(716); internal_static_google_cloud_compute_v1_InstancesSetMinCpuPlatformRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesSetMinCpuPlatformRequest_descriptor, @@ -39674,7 +39763,7 @@ private static void _clinit_autosplit_dinit_1() { "MinCpuPlatform", }); internal_static_google_cloud_compute_v1_InstancesSetNameRequest_descriptor = - getDescriptor().getMessageTypes().get(715); + getDescriptor().getMessageTypes().get(717); internal_static_google_cloud_compute_v1_InstancesSetNameRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesSetNameRequest_descriptor, @@ -39682,7 +39771,7 @@ private static void _clinit_autosplit_dinit_1() { "CurrentName", "Name", }); internal_static_google_cloud_compute_v1_InstancesSetSecurityPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(716); + getDescriptor().getMessageTypes().get(718); internal_static_google_cloud_compute_v1_InstancesSetSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesSetSecurityPolicyRequest_descriptor, @@ -39690,7 +39779,7 @@ private static void _clinit_autosplit_dinit_1() { "NetworkInterfaces", "SecurityPolicy", }); internal_static_google_cloud_compute_v1_InstancesSetServiceAccountRequest_descriptor = - getDescriptor().getMessageTypes().get(717); + getDescriptor().getMessageTypes().get(719); internal_static_google_cloud_compute_v1_InstancesSetServiceAccountRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesSetServiceAccountRequest_descriptor, @@ -39698,7 +39787,7 @@ private static void _clinit_autosplit_dinit_1() { "Email", "Scopes", }); internal_static_google_cloud_compute_v1_InstancesStartWithEncryptionKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(718); + getDescriptor().getMessageTypes().get(720); internal_static_google_cloud_compute_v1_InstancesStartWithEncryptionKeyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesStartWithEncryptionKeyRequest_descriptor, @@ -39706,7 +39795,7 @@ private static void _clinit_autosplit_dinit_1() { "Disks", }); internal_static_google_cloud_compute_v1_InstantSnapshot_descriptor = - getDescriptor().getMessageTypes().get(719); + getDescriptor().getMessageTypes().get(721); internal_static_google_cloud_compute_v1_InstantSnapshot_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstantSnapshot_descriptor, @@ -39740,7 +39829,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstantSnapshotAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(720); + getDescriptor().getMessageTypes().get(722); internal_static_google_cloud_compute_v1_InstantSnapshotAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstantSnapshotAggregatedList_descriptor, @@ -39758,7 +39847,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstantSnapshotList_descriptor = - getDescriptor().getMessageTypes().get(721); + getDescriptor().getMessageTypes().get(723); internal_static_google_cloud_compute_v1_InstantSnapshotList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstantSnapshotList_descriptor, @@ -39766,7 +39855,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_InstantSnapshotResourceStatus_descriptor = - getDescriptor().getMessageTypes().get(722); + getDescriptor().getMessageTypes().get(724); internal_static_google_cloud_compute_v1_InstantSnapshotResourceStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstantSnapshotResourceStatus_descriptor, @@ -39774,7 +39863,7 @@ private static void _clinit_autosplit_dinit_1() { "StorageSizeBytes", }); internal_static_google_cloud_compute_v1_InstantSnapshotsScopedList_descriptor = - getDescriptor().getMessageTypes().get(723); + getDescriptor().getMessageTypes().get(725); internal_static_google_cloud_compute_v1_InstantSnapshotsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstantSnapshotsScopedList_descriptor, @@ -39782,7 +39871,7 @@ private static void _clinit_autosplit_dinit_1() { "InstantSnapshots", "Warning", }); internal_static_google_cloud_compute_v1_Int64RangeMatch_descriptor = - getDescriptor().getMessageTypes().get(724); + getDescriptor().getMessageTypes().get(726); internal_static_google_cloud_compute_v1_Int64RangeMatch_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Int64RangeMatch_descriptor, @@ -39790,7 +39879,7 @@ private static void _clinit_autosplit_dinit_1() { "RangeEnd", "RangeStart", }); internal_static_google_cloud_compute_v1_Interconnect_descriptor = - getDescriptor().getMessageTypes().get(725); + getDescriptor().getMessageTypes().get(727); internal_static_google_cloud_compute_v1_Interconnect_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Interconnect_descriptor, @@ -39836,7 +39925,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InterconnectAttachment_descriptor = - getDescriptor().getMessageTypes().get(726); + getDescriptor().getMessageTypes().get(728); internal_static_google_cloud_compute_v1_InterconnectAttachment_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachment_descriptor, @@ -39894,7 +39983,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(727); + getDescriptor().getMessageTypes().get(729); internal_static_google_cloud_compute_v1_InterconnectAttachmentAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentAggregatedList_descriptor, @@ -39912,7 +40001,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentConfigurationConstraints_descriptor = - getDescriptor().getMessageTypes().get(728); + getDescriptor().getMessageTypes().get(730); internal_static_google_cloud_compute_v1_InterconnectAttachmentConfigurationConstraints_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentConfigurationConstraints_descriptor, @@ -39920,7 +40009,7 @@ private static void _clinit_autosplit_dinit_1() { "BgpMd5", "BgpPeerAsnRanges", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange_descriptor = - getDescriptor().getMessageTypes().get(729); + getDescriptor().getMessageTypes().get(731); internal_static_google_cloud_compute_v1_InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange_descriptor, @@ -39928,7 +40017,7 @@ private static void _clinit_autosplit_dinit_1() { "Max", "Min", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroup_descriptor = - getDescriptor().getMessageTypes().get(730); + getDescriptor().getMessageTypes().get(732); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentGroup_descriptor, @@ -39957,7 +40046,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupAttachment_descriptor = - getDescriptor().getMessageTypes().get(731); + getDescriptor().getMessageTypes().get(733); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupAttachment_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupAttachment_descriptor, @@ -39965,7 +40054,7 @@ private static void _clinit_autosplit_dinit_1() { "Attachment", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupConfigured_descriptor = - getDescriptor().getMessageTypes().get(732); + getDescriptor().getMessageTypes().get(734); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupConfigured_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupConfigured_descriptor, @@ -39973,7 +40062,7 @@ private static void _clinit_autosplit_dinit_1() { "AvailabilitySla", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupConfiguredAvailabilitySLA_descriptor = - getDescriptor().getMessageTypes().get(733); + getDescriptor().getMessageTypes().get(735); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupConfiguredAvailabilitySLA_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupConfiguredAvailabilitySLA_descriptor, @@ -39981,7 +40070,7 @@ private static void _clinit_autosplit_dinit_1() { "EffectiveSla", "IntendedSlaBlockers", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers_descriptor = - getDescriptor().getMessageTypes().get(734); + getDescriptor().getMessageTypes().get(736); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers_descriptor, @@ -39995,7 +40084,7 @@ private static void _clinit_autosplit_dinit_1() { "Zones", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupIntent_descriptor = - getDescriptor().getMessageTypes().get(735); + getDescriptor().getMessageTypes().get(737); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupIntent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupIntent_descriptor, @@ -40003,7 +40092,7 @@ private static void _clinit_autosplit_dinit_1() { "AvailabilitySla", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupLogicalStructure_descriptor = - getDescriptor().getMessageTypes().get(736); + getDescriptor().getMessageTypes().get(738); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupLogicalStructure_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupLogicalStructure_descriptor, @@ -40011,7 +40100,7 @@ private static void _clinit_autosplit_dinit_1() { "Regions", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupLogicalStructureRegion_descriptor = - getDescriptor().getMessageTypes().get(737); + getDescriptor().getMessageTypes().get(739); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupLogicalStructureRegion_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupLogicalStructureRegion_descriptor, @@ -40019,7 +40108,7 @@ private static void _clinit_autosplit_dinit_1() { "Metros", "Region", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupLogicalStructureRegionMetro_descriptor = - getDescriptor().getMessageTypes().get(738); + getDescriptor().getMessageTypes().get(740); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupLogicalStructureRegionMetro_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupLogicalStructureRegionMetro_descriptor, @@ -40027,7 +40116,7 @@ private static void _clinit_autosplit_dinit_1() { "Facilities", "Metro", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupLogicalStructureRegionMetroFacility_descriptor = - getDescriptor().getMessageTypes().get(739); + getDescriptor().getMessageTypes().get(741); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupLogicalStructureRegionMetroFacility_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupLogicalStructureRegionMetroFacility_descriptor, @@ -40035,7 +40124,7 @@ private static void _clinit_autosplit_dinit_1() { "Facility", "Zones", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone_descriptor = - getDescriptor().getMessageTypes().get(740); + getDescriptor().getMessageTypes().get(742); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone_descriptor, @@ -40043,7 +40132,7 @@ private static void _clinit_autosplit_dinit_1() { "Attachments", "Zone", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupsGetOperationalStatusResponse_descriptor = - getDescriptor().getMessageTypes().get(741); + getDescriptor().getMessageTypes().get(743); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupsGetOperationalStatusResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupsGetOperationalStatusResponse_descriptor, @@ -40051,7 +40140,7 @@ private static void _clinit_autosplit_dinit_1() { "Etag", "Result", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupsListResponse_descriptor = - getDescriptor().getMessageTypes().get(742); + getDescriptor().getMessageTypes().get(744); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupsListResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupsListResponse_descriptor, @@ -40059,7 +40148,7 @@ private static void _clinit_autosplit_dinit_1() { "Etag", "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Unreachables", "Warning", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupsOperationalStatus_descriptor = - getDescriptor().getMessageTypes().get(743); + getDescriptor().getMessageTypes().get(745); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupsOperationalStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupsOperationalStatus_descriptor, @@ -40067,7 +40156,7 @@ private static void _clinit_autosplit_dinit_1() { "AttachmentStatuses", "Configured", "GroupStatus", "Intent", "Operational", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupsOperationalStatusAttachmentStatus_descriptor = - getDescriptor().getMessageTypes().get(744); + getDescriptor().getMessageTypes().get(746); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupsOperationalStatusAttachmentStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupsOperationalStatusAttachmentStatus_descriptor, @@ -40075,7 +40164,7 @@ private static void _clinit_autosplit_dinit_1() { "AdminEnabled", "Attachment", "IsActive", "Status", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentList_descriptor = - getDescriptor().getMessageTypes().get(745); + getDescriptor().getMessageTypes().get(747); internal_static_google_cloud_compute_v1_InterconnectAttachmentList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentList_descriptor, @@ -40083,7 +40172,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentPartnerMetadata_descriptor = - getDescriptor().getMessageTypes().get(746); + getDescriptor().getMessageTypes().get(748); internal_static_google_cloud_compute_v1_InterconnectAttachmentPartnerMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentPartnerMetadata_descriptor, @@ -40091,7 +40180,7 @@ private static void _clinit_autosplit_dinit_1() { "InterconnectName", "PartnerName", "PortalUrl", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentPrivateInfo_descriptor = - getDescriptor().getMessageTypes().get(747); + getDescriptor().getMessageTypes().get(749); internal_static_google_cloud_compute_v1_InterconnectAttachmentPrivateInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentPrivateInfo_descriptor, @@ -40099,7 +40188,7 @@ private static void _clinit_autosplit_dinit_1() { "Tag8021Q", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentsScopedList_descriptor = - getDescriptor().getMessageTypes().get(748); + getDescriptor().getMessageTypes().get(750); internal_static_google_cloud_compute_v1_InterconnectAttachmentsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentsScopedList_descriptor, @@ -40107,7 +40196,7 @@ private static void _clinit_autosplit_dinit_1() { "InterconnectAttachments", "Warning", }); internal_static_google_cloud_compute_v1_InterconnectCircuitInfo_descriptor = - getDescriptor().getMessageTypes().get(749); + getDescriptor().getMessageTypes().get(751); internal_static_google_cloud_compute_v1_InterconnectCircuitInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectCircuitInfo_descriptor, @@ -40115,7 +40204,7 @@ private static void _clinit_autosplit_dinit_1() { "CustomerDemarcId", "GoogleCircuitId", "GoogleDemarcId", }); internal_static_google_cloud_compute_v1_InterconnectDiagnostics_descriptor = - getDescriptor().getMessageTypes().get(750); + getDescriptor().getMessageTypes().get(752); internal_static_google_cloud_compute_v1_InterconnectDiagnostics_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectDiagnostics_descriptor, @@ -40127,7 +40216,7 @@ private static void _clinit_autosplit_dinit_1() { "MacAddress", }); internal_static_google_cloud_compute_v1_InterconnectDiagnosticsARPEntry_descriptor = - getDescriptor().getMessageTypes().get(751); + getDescriptor().getMessageTypes().get(753); internal_static_google_cloud_compute_v1_InterconnectDiagnosticsARPEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectDiagnosticsARPEntry_descriptor, @@ -40135,7 +40224,7 @@ private static void _clinit_autosplit_dinit_1() { "IpAddress", "MacAddress", }); internal_static_google_cloud_compute_v1_InterconnectDiagnosticsLinkLACPStatus_descriptor = - getDescriptor().getMessageTypes().get(752); + getDescriptor().getMessageTypes().get(754); internal_static_google_cloud_compute_v1_InterconnectDiagnosticsLinkLACPStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectDiagnosticsLinkLACPStatus_descriptor, @@ -40143,7 +40232,7 @@ private static void _clinit_autosplit_dinit_1() { "GoogleSystemId", "NeighborSystemId", "State", }); internal_static_google_cloud_compute_v1_InterconnectDiagnosticsLinkOpticalPower_descriptor = - getDescriptor().getMessageTypes().get(753); + getDescriptor().getMessageTypes().get(755); internal_static_google_cloud_compute_v1_InterconnectDiagnosticsLinkOpticalPower_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectDiagnosticsLinkOpticalPower_descriptor, @@ -40151,7 +40240,7 @@ private static void _clinit_autosplit_dinit_1() { "State", "Value", }); internal_static_google_cloud_compute_v1_InterconnectDiagnosticsLinkStatus_descriptor = - getDescriptor().getMessageTypes().get(754); + getDescriptor().getMessageTypes().get(756); internal_static_google_cloud_compute_v1_InterconnectDiagnosticsLinkStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectDiagnosticsLinkStatus_descriptor, @@ -40166,7 +40255,7 @@ private static void _clinit_autosplit_dinit_1() { "TransmittingOpticalPower", }); internal_static_google_cloud_compute_v1_InterconnectDiagnosticsMacsecStatus_descriptor = - getDescriptor().getMessageTypes().get(755); + getDescriptor().getMessageTypes().get(757); internal_static_google_cloud_compute_v1_InterconnectDiagnosticsMacsecStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectDiagnosticsMacsecStatus_descriptor, @@ -40174,7 +40263,7 @@ private static void _clinit_autosplit_dinit_1() { "Ckn", "Operational", }); internal_static_google_cloud_compute_v1_InterconnectGroup_descriptor = - getDescriptor().getMessageTypes().get(756); + getDescriptor().getMessageTypes().get(758); internal_static_google_cloud_compute_v1_InterconnectGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectGroup_descriptor, @@ -40202,7 +40291,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InterconnectGroupConfigured_descriptor = - getDescriptor().getMessageTypes().get(757); + getDescriptor().getMessageTypes().get(759); internal_static_google_cloud_compute_v1_InterconnectGroupConfigured_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectGroupConfigured_descriptor, @@ -40210,7 +40299,7 @@ private static void _clinit_autosplit_dinit_1() { "TopologyCapability", }); internal_static_google_cloud_compute_v1_InterconnectGroupConfiguredTopologyCapability_descriptor = - getDescriptor().getMessageTypes().get(758); + getDescriptor().getMessageTypes().get(760); internal_static_google_cloud_compute_v1_InterconnectGroupConfiguredTopologyCapability_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectGroupConfiguredTopologyCapability_descriptor, @@ -40218,7 +40307,7 @@ private static void _clinit_autosplit_dinit_1() { "IntendedCapabilityBlockers", "SupportedSla", }); internal_static_google_cloud_compute_v1_InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers_descriptor = - getDescriptor().getMessageTypes().get(759); + getDescriptor().getMessageTypes().get(761); internal_static_google_cloud_compute_v1_InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers_descriptor, @@ -40232,7 +40321,7 @@ private static void _clinit_autosplit_dinit_1() { "Zones", }); internal_static_google_cloud_compute_v1_InterconnectGroupIntent_descriptor = - getDescriptor().getMessageTypes().get(760); + getDescriptor().getMessageTypes().get(762); internal_static_google_cloud_compute_v1_InterconnectGroupIntent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectGroupIntent_descriptor, @@ -40240,7 +40329,7 @@ private static void _clinit_autosplit_dinit_1() { "TopologyCapability", }); internal_static_google_cloud_compute_v1_InterconnectGroupInterconnect_descriptor = - getDescriptor().getMessageTypes().get(761); + getDescriptor().getMessageTypes().get(763); internal_static_google_cloud_compute_v1_InterconnectGroupInterconnect_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectGroupInterconnect_descriptor, @@ -40248,7 +40337,7 @@ private static void _clinit_autosplit_dinit_1() { "Interconnect", }); internal_static_google_cloud_compute_v1_InterconnectGroupPhysicalStructure_descriptor = - getDescriptor().getMessageTypes().get(762); + getDescriptor().getMessageTypes().get(764); internal_static_google_cloud_compute_v1_InterconnectGroupPhysicalStructure_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectGroupPhysicalStructure_descriptor, @@ -40256,7 +40345,7 @@ private static void _clinit_autosplit_dinit_1() { "Metros", }); internal_static_google_cloud_compute_v1_InterconnectGroupPhysicalStructureMetros_descriptor = - getDescriptor().getMessageTypes().get(763); + getDescriptor().getMessageTypes().get(765); internal_static_google_cloud_compute_v1_InterconnectGroupPhysicalStructureMetros_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectGroupPhysicalStructureMetros_descriptor, @@ -40264,7 +40353,7 @@ private static void _clinit_autosplit_dinit_1() { "Facilities", "Metro", }); internal_static_google_cloud_compute_v1_InterconnectGroupPhysicalStructureMetrosFacilities_descriptor = - getDescriptor().getMessageTypes().get(764); + getDescriptor().getMessageTypes().get(766); internal_static_google_cloud_compute_v1_InterconnectGroupPhysicalStructureMetrosFacilities_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectGroupPhysicalStructureMetrosFacilities_descriptor, @@ -40272,7 +40361,7 @@ private static void _clinit_autosplit_dinit_1() { "Facility", "Zones", }); internal_static_google_cloud_compute_v1_InterconnectGroupPhysicalStructureMetrosFacilitiesZones_descriptor = - getDescriptor().getMessageTypes().get(765); + getDescriptor().getMessageTypes().get(767); internal_static_google_cloud_compute_v1_InterconnectGroupPhysicalStructureMetrosFacilitiesZones_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectGroupPhysicalStructureMetrosFacilitiesZones_descriptor, @@ -40280,7 +40369,7 @@ private static void _clinit_autosplit_dinit_1() { "Interconnects", "Zone", }); internal_static_google_cloud_compute_v1_InterconnectGroupsCreateMembers_descriptor = - getDescriptor().getMessageTypes().get(766); + getDescriptor().getMessageTypes().get(768); internal_static_google_cloud_compute_v1_InterconnectGroupsCreateMembers_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectGroupsCreateMembers_descriptor, @@ -40288,7 +40377,7 @@ private static void _clinit_autosplit_dinit_1() { "IntentMismatchBehavior", "Interconnects", "TemplateInterconnect", }); internal_static_google_cloud_compute_v1_InterconnectGroupsCreateMembersInterconnectInput_descriptor = - getDescriptor().getMessageTypes().get(767); + getDescriptor().getMessageTypes().get(769); internal_static_google_cloud_compute_v1_InterconnectGroupsCreateMembersInterconnectInput_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectGroupsCreateMembersInterconnectInput_descriptor, @@ -40306,7 +40395,7 @@ private static void _clinit_autosplit_dinit_1() { "RequestedLinkCount", }); internal_static_google_cloud_compute_v1_InterconnectGroupsCreateMembersRequest_descriptor = - getDescriptor().getMessageTypes().get(768); + getDescriptor().getMessageTypes().get(770); internal_static_google_cloud_compute_v1_InterconnectGroupsCreateMembersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectGroupsCreateMembersRequest_descriptor, @@ -40314,7 +40403,7 @@ private static void _clinit_autosplit_dinit_1() { "Request", }); internal_static_google_cloud_compute_v1_InterconnectGroupsGetOperationalStatusResponse_descriptor = - getDescriptor().getMessageTypes().get(769); + getDescriptor().getMessageTypes().get(771); internal_static_google_cloud_compute_v1_InterconnectGroupsGetOperationalStatusResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectGroupsGetOperationalStatusResponse_descriptor, @@ -40322,7 +40411,7 @@ private static void _clinit_autosplit_dinit_1() { "Etag", "Result", }); internal_static_google_cloud_compute_v1_InterconnectGroupsListResponse_descriptor = - getDescriptor().getMessageTypes().get(770); + getDescriptor().getMessageTypes().get(772); internal_static_google_cloud_compute_v1_InterconnectGroupsListResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectGroupsListResponse_descriptor, @@ -40330,7 +40419,7 @@ private static void _clinit_autosplit_dinit_1() { "Etag", "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Unreachables", "Warning", }); internal_static_google_cloud_compute_v1_InterconnectGroupsOperationalStatus_descriptor = - getDescriptor().getMessageTypes().get(771); + getDescriptor().getMessageTypes().get(773); internal_static_google_cloud_compute_v1_InterconnectGroupsOperationalStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectGroupsOperationalStatus_descriptor, @@ -40338,7 +40427,7 @@ private static void _clinit_autosplit_dinit_1() { "Configured", "GroupStatus", "Intent", "InterconnectStatuses", "Operational", }); internal_static_google_cloud_compute_v1_InterconnectGroupsOperationalStatusInterconnectStatus_descriptor = - getDescriptor().getMessageTypes().get(772); + getDescriptor().getMessageTypes().get(774); internal_static_google_cloud_compute_v1_InterconnectGroupsOperationalStatusInterconnectStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectGroupsOperationalStatusInterconnectStatus_descriptor, @@ -40346,7 +40435,7 @@ private static void _clinit_autosplit_dinit_1() { "AdminEnabled", "Diagnostics", "Interconnect", "IsActive", }); internal_static_google_cloud_compute_v1_InterconnectList_descriptor = - getDescriptor().getMessageTypes().get(773); + getDescriptor().getMessageTypes().get(775); internal_static_google_cloud_compute_v1_InterconnectList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectList_descriptor, @@ -40354,7 +40443,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_InterconnectLocation_descriptor = - getDescriptor().getMessageTypes().get(774); + getDescriptor().getMessageTypes().get(776); internal_static_google_cloud_compute_v1_InterconnectLocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectLocation_descriptor, @@ -40379,7 +40468,7 @@ private static void _clinit_autosplit_dinit_1() { "SupportsPzs", }); internal_static_google_cloud_compute_v1_InterconnectLocationList_descriptor = - getDescriptor().getMessageTypes().get(775); + getDescriptor().getMessageTypes().get(777); internal_static_google_cloud_compute_v1_InterconnectLocationList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectLocationList_descriptor, @@ -40387,7 +40476,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_InterconnectLocationRegionInfo_descriptor = - getDescriptor().getMessageTypes().get(776); + getDescriptor().getMessageTypes().get(778); internal_static_google_cloud_compute_v1_InterconnectLocationRegionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectLocationRegionInfo_descriptor, @@ -40395,7 +40484,7 @@ private static void _clinit_autosplit_dinit_1() { "ExpectedRttMs", "LocationPresence", "Region", }); internal_static_google_cloud_compute_v1_InterconnectMacsec_descriptor = - getDescriptor().getMessageTypes().get(777); + getDescriptor().getMessageTypes().get(779); internal_static_google_cloud_compute_v1_InterconnectMacsec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectMacsec_descriptor, @@ -40403,7 +40492,7 @@ private static void _clinit_autosplit_dinit_1() { "FailOpen", "PreSharedKeys", }); internal_static_google_cloud_compute_v1_InterconnectMacsecConfig_descriptor = - getDescriptor().getMessageTypes().get(778); + getDescriptor().getMessageTypes().get(780); internal_static_google_cloud_compute_v1_InterconnectMacsecConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectMacsecConfig_descriptor, @@ -40411,7 +40500,7 @@ private static void _clinit_autosplit_dinit_1() { "PreSharedKeys", }); internal_static_google_cloud_compute_v1_InterconnectMacsecConfigPreSharedKey_descriptor = - getDescriptor().getMessageTypes().get(779); + getDescriptor().getMessageTypes().get(781); internal_static_google_cloud_compute_v1_InterconnectMacsecConfigPreSharedKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectMacsecConfigPreSharedKey_descriptor, @@ -40419,7 +40508,7 @@ private static void _clinit_autosplit_dinit_1() { "Cak", "Ckn", "Name", "StartTime", }); internal_static_google_cloud_compute_v1_InterconnectMacsecPreSharedKey_descriptor = - getDescriptor().getMessageTypes().get(780); + getDescriptor().getMessageTypes().get(782); internal_static_google_cloud_compute_v1_InterconnectMacsecPreSharedKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectMacsecPreSharedKey_descriptor, @@ -40427,7 +40516,7 @@ private static void _clinit_autosplit_dinit_1() { "Name", "StartTime", }); internal_static_google_cloud_compute_v1_InterconnectOutageNotification_descriptor = - getDescriptor().getMessageTypes().get(781); + getDescriptor().getMessageTypes().get(783); internal_static_google_cloud_compute_v1_InterconnectOutageNotification_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectOutageNotification_descriptor, @@ -40442,7 +40531,7 @@ private static void _clinit_autosplit_dinit_1() { "State", }); internal_static_google_cloud_compute_v1_InterconnectRemoteLocation_descriptor = - getDescriptor().getMessageTypes().get(782); + getDescriptor().getMessageTypes().get(784); internal_static_google_cloud_compute_v1_InterconnectRemoteLocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectRemoteLocation_descriptor, @@ -40469,7 +40558,7 @@ private static void _clinit_autosplit_dinit_1() { "Status", }); internal_static_google_cloud_compute_v1_InterconnectRemoteLocationConstraints_descriptor = - getDescriptor().getMessageTypes().get(783); + getDescriptor().getMessageTypes().get(785); internal_static_google_cloud_compute_v1_InterconnectRemoteLocationConstraints_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectRemoteLocationConstraints_descriptor, @@ -40477,7 +40566,7 @@ private static void _clinit_autosplit_dinit_1() { "PortPairRemoteLocation", "PortPairVlan", "SubnetLengthRange", }); internal_static_google_cloud_compute_v1_InterconnectRemoteLocationConstraintsSubnetLengthRange_descriptor = - getDescriptor().getMessageTypes().get(784); + getDescriptor().getMessageTypes().get(786); internal_static_google_cloud_compute_v1_InterconnectRemoteLocationConstraintsSubnetLengthRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectRemoteLocationConstraintsSubnetLengthRange_descriptor, @@ -40485,7 +40574,7 @@ private static void _clinit_autosplit_dinit_1() { "Max", "Min", }); internal_static_google_cloud_compute_v1_InterconnectRemoteLocationList_descriptor = - getDescriptor().getMessageTypes().get(785); + getDescriptor().getMessageTypes().get(787); internal_static_google_cloud_compute_v1_InterconnectRemoteLocationList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectRemoteLocationList_descriptor, @@ -40493,7 +40582,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_InterconnectRemoteLocationPermittedConnections_descriptor = - getDescriptor().getMessageTypes().get(786); + getDescriptor().getMessageTypes().get(788); internal_static_google_cloud_compute_v1_InterconnectRemoteLocationPermittedConnections_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectRemoteLocationPermittedConnections_descriptor, @@ -40501,7 +40590,7 @@ private static void _clinit_autosplit_dinit_1() { "InterconnectLocation", }); internal_static_google_cloud_compute_v1_InterconnectsGetDiagnosticsResponse_descriptor = - getDescriptor().getMessageTypes().get(787); + getDescriptor().getMessageTypes().get(789); internal_static_google_cloud_compute_v1_InterconnectsGetDiagnosticsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectsGetDiagnosticsResponse_descriptor, @@ -40509,7 +40598,7 @@ private static void _clinit_autosplit_dinit_1() { "Result", }); internal_static_google_cloud_compute_v1_InterconnectsGetMacsecConfigResponse_descriptor = - getDescriptor().getMessageTypes().get(788); + getDescriptor().getMessageTypes().get(790); internal_static_google_cloud_compute_v1_InterconnectsGetMacsecConfigResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectsGetMacsecConfigResponse_descriptor, @@ -40517,7 +40606,7 @@ private static void _clinit_autosplit_dinit_1() { "Etag", "Result", }); internal_static_google_cloud_compute_v1_InvalidateCacheUrlMapRequest_descriptor = - getDescriptor().getMessageTypes().get(789); + getDescriptor().getMessageTypes().get(791); internal_static_google_cloud_compute_v1_InvalidateCacheUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InvalidateCacheUrlMapRequest_descriptor, @@ -40525,7 +40614,7 @@ private static void _clinit_autosplit_dinit_1() { "CacheInvalidationRuleResource", "Project", "RequestId", "UrlMap", }); internal_static_google_cloud_compute_v1_Items_descriptor = - getDescriptor().getMessageTypes().get(790); + getDescriptor().getMessageTypes().get(792); internal_static_google_cloud_compute_v1_Items_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Items_descriptor, @@ -40533,7 +40622,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_License_descriptor = - getDescriptor().getMessageTypes().get(791); + getDescriptor().getMessageTypes().get(793); internal_static_google_cloud_compute_v1_License_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_License_descriptor, @@ -40561,7 +40650,7 @@ private static void _clinit_autosplit_dinit_1() { "UpdateTimestamp", }); internal_static_google_cloud_compute_v1_LicenseCode_descriptor = - getDescriptor().getMessageTypes().get(792); + getDescriptor().getMessageTypes().get(794); internal_static_google_cloud_compute_v1_LicenseCode_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_LicenseCode_descriptor, @@ -40577,7 +40666,7 @@ private static void _clinit_autosplit_dinit_1() { "Transferable", }); internal_static_google_cloud_compute_v1_LicenseCodeLicenseAlias_descriptor = - getDescriptor().getMessageTypes().get(793); + getDescriptor().getMessageTypes().get(795); internal_static_google_cloud_compute_v1_LicenseCodeLicenseAlias_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_LicenseCodeLicenseAlias_descriptor, @@ -40585,7 +40674,7 @@ private static void _clinit_autosplit_dinit_1() { "Description", "SelfLink", }); internal_static_google_cloud_compute_v1_LicenseResourceCommitment_descriptor = - getDescriptor().getMessageTypes().get(794); + getDescriptor().getMessageTypes().get(796); internal_static_google_cloud_compute_v1_LicenseResourceCommitment_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_LicenseResourceCommitment_descriptor, @@ -40593,7 +40682,7 @@ private static void _clinit_autosplit_dinit_1() { "Amount", "CoresPerLicense", "License", }); internal_static_google_cloud_compute_v1_LicenseResourceRequirements_descriptor = - getDescriptor().getMessageTypes().get(795); + getDescriptor().getMessageTypes().get(797); internal_static_google_cloud_compute_v1_LicenseResourceRequirements_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_LicenseResourceRequirements_descriptor, @@ -40601,7 +40690,7 @@ private static void _clinit_autosplit_dinit_1() { "MinGuestCpuCount", "MinMemoryMb", }); internal_static_google_cloud_compute_v1_LicensesListResponse_descriptor = - getDescriptor().getMessageTypes().get(796); + getDescriptor().getMessageTypes().get(798); internal_static_google_cloud_compute_v1_LicensesListResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_LicensesListResponse_descriptor, @@ -40609,7 +40698,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_ListAcceleratorTypesRequest_descriptor = - getDescriptor().getMessageTypes().get(797); + getDescriptor().getMessageTypes().get(799); internal_static_google_cloud_compute_v1_ListAcceleratorTypesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListAcceleratorTypesRequest_descriptor, @@ -40623,7 +40712,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListAddressesRequest_descriptor = - getDescriptor().getMessageTypes().get(798); + getDescriptor().getMessageTypes().get(800); internal_static_google_cloud_compute_v1_ListAddressesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListAddressesRequest_descriptor, @@ -40637,7 +40726,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListAssociationsFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(799); + getDescriptor().getMessageTypes().get(801); internal_static_google_cloud_compute_v1_ListAssociationsFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListAssociationsFirewallPolicyRequest_descriptor, @@ -40645,7 +40734,7 @@ private static void _clinit_autosplit_dinit_1() { "TargetResource", }); internal_static_google_cloud_compute_v1_ListAutoscalersRequest_descriptor = - getDescriptor().getMessageTypes().get(800); + getDescriptor().getMessageTypes().get(802); internal_static_google_cloud_compute_v1_ListAutoscalersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListAutoscalersRequest_descriptor, @@ -40659,7 +40748,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListAvailableFeaturesRegionSslPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(801); + getDescriptor().getMessageTypes().get(803); internal_static_google_cloud_compute_v1_ListAvailableFeaturesRegionSslPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListAvailableFeaturesRegionSslPoliciesRequest_descriptor, @@ -40673,7 +40762,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListAvailableFeaturesSslPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(802); + getDescriptor().getMessageTypes().get(804); internal_static_google_cloud_compute_v1_ListAvailableFeaturesSslPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListAvailableFeaturesSslPoliciesRequest_descriptor, @@ -40681,7 +40770,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListBackendBucketsRequest_descriptor = - getDescriptor().getMessageTypes().get(803); + getDescriptor().getMessageTypes().get(805); internal_static_google_cloud_compute_v1_ListBackendBucketsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListBackendBucketsRequest_descriptor, @@ -40689,7 +40778,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListBackendServicesRequest_descriptor = - getDescriptor().getMessageTypes().get(804); + getDescriptor().getMessageTypes().get(806); internal_static_google_cloud_compute_v1_ListBackendServicesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListBackendServicesRequest_descriptor, @@ -40697,7 +40786,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListBgpRoutesRoutersRequest_descriptor = - getDescriptor().getMessageTypes().get(805); + getDescriptor().getMessageTypes().get(807); internal_static_google_cloud_compute_v1_ListBgpRoutesRoutersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListBgpRoutesRoutersRequest_descriptor, @@ -40717,7 +40806,7 @@ private static void _clinit_autosplit_dinit_1() { "Router", }); internal_static_google_cloud_compute_v1_ListDiskTypesRequest_descriptor = - getDescriptor().getMessageTypes().get(806); + getDescriptor().getMessageTypes().get(808); internal_static_google_cloud_compute_v1_ListDiskTypesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListDiskTypesRequest_descriptor, @@ -40731,7 +40820,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListDisksRequest_descriptor = - getDescriptor().getMessageTypes().get(807); + getDescriptor().getMessageTypes().get(809); internal_static_google_cloud_compute_v1_ListDisksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListDisksRequest_descriptor, @@ -40745,7 +40834,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListDisksStoragePoolsRequest_descriptor = - getDescriptor().getMessageTypes().get(808); + getDescriptor().getMessageTypes().get(810); internal_static_google_cloud_compute_v1_ListDisksStoragePoolsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListDisksStoragePoolsRequest_descriptor, @@ -40760,7 +40849,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListErrorsInstanceGroupManagersRequest_descriptor = - getDescriptor().getMessageTypes().get(809); + getDescriptor().getMessageTypes().get(811); internal_static_google_cloud_compute_v1_ListErrorsInstanceGroupManagersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListErrorsInstanceGroupManagersRequest_descriptor, @@ -40775,7 +40864,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListErrorsRegionInstanceGroupManagersRequest_descriptor = - getDescriptor().getMessageTypes().get(810); + getDescriptor().getMessageTypes().get(812); internal_static_google_cloud_compute_v1_ListErrorsRegionInstanceGroupManagersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListErrorsRegionInstanceGroupManagersRequest_descriptor, @@ -40790,7 +40879,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListExternalVpnGatewaysRequest_descriptor = - getDescriptor().getMessageTypes().get(811); + getDescriptor().getMessageTypes().get(813); internal_static_google_cloud_compute_v1_ListExternalVpnGatewaysRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListExternalVpnGatewaysRequest_descriptor, @@ -40798,7 +40887,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListFirewallPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(812); + getDescriptor().getMessageTypes().get(814); internal_static_google_cloud_compute_v1_ListFirewallPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListFirewallPoliciesRequest_descriptor, @@ -40806,7 +40895,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "ParentId", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListFirewallsRequest_descriptor = - getDescriptor().getMessageTypes().get(813); + getDescriptor().getMessageTypes().get(815); internal_static_google_cloud_compute_v1_ListFirewallsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListFirewallsRequest_descriptor, @@ -40814,7 +40903,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListForwardingRulesRequest_descriptor = - getDescriptor().getMessageTypes().get(814); + getDescriptor().getMessageTypes().get(816); internal_static_google_cloud_compute_v1_ListForwardingRulesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListForwardingRulesRequest_descriptor, @@ -40828,7 +40917,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListGlobalAddressesRequest_descriptor = - getDescriptor().getMessageTypes().get(815); + getDescriptor().getMessageTypes().get(817); internal_static_google_cloud_compute_v1_ListGlobalAddressesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListGlobalAddressesRequest_descriptor, @@ -40836,7 +40925,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListGlobalForwardingRulesRequest_descriptor = - getDescriptor().getMessageTypes().get(816); + getDescriptor().getMessageTypes().get(818); internal_static_google_cloud_compute_v1_ListGlobalForwardingRulesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListGlobalForwardingRulesRequest_descriptor, @@ -40844,7 +40933,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListGlobalNetworkEndpointGroupsRequest_descriptor = - getDescriptor().getMessageTypes().get(817); + getDescriptor().getMessageTypes().get(819); internal_static_google_cloud_compute_v1_ListGlobalNetworkEndpointGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListGlobalNetworkEndpointGroupsRequest_descriptor, @@ -40852,7 +40941,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListGlobalOperationsRequest_descriptor = - getDescriptor().getMessageTypes().get(818); + getDescriptor().getMessageTypes().get(820); internal_static_google_cloud_compute_v1_ListGlobalOperationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListGlobalOperationsRequest_descriptor, @@ -40860,7 +40949,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListGlobalOrganizationOperationsRequest_descriptor = - getDescriptor().getMessageTypes().get(819); + getDescriptor().getMessageTypes().get(821); internal_static_google_cloud_compute_v1_ListGlobalOrganizationOperationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListGlobalOrganizationOperationsRequest_descriptor, @@ -40868,7 +40957,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "ParentId", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListGlobalPublicDelegatedPrefixesRequest_descriptor = - getDescriptor().getMessageTypes().get(820); + getDescriptor().getMessageTypes().get(822); internal_static_google_cloud_compute_v1_ListGlobalPublicDelegatedPrefixesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListGlobalPublicDelegatedPrefixesRequest_descriptor, @@ -40876,7 +40965,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListHealthChecksRequest_descriptor = - getDescriptor().getMessageTypes().get(821); + getDescriptor().getMessageTypes().get(823); internal_static_google_cloud_compute_v1_ListHealthChecksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListHealthChecksRequest_descriptor, @@ -40884,7 +40973,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListImagesRequest_descriptor = - getDescriptor().getMessageTypes().get(822); + getDescriptor().getMessageTypes().get(824); internal_static_google_cloud_compute_v1_ListImagesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListImagesRequest_descriptor, @@ -40892,7 +40981,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListInstanceGroupManagerResizeRequestsRequest_descriptor = - getDescriptor().getMessageTypes().get(823); + getDescriptor().getMessageTypes().get(825); internal_static_google_cloud_compute_v1_ListInstanceGroupManagerResizeRequestsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInstanceGroupManagerResizeRequestsRequest_descriptor, @@ -40907,7 +40996,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListInstanceGroupManagersRequest_descriptor = - getDescriptor().getMessageTypes().get(824); + getDescriptor().getMessageTypes().get(826); internal_static_google_cloud_compute_v1_ListInstanceGroupManagersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInstanceGroupManagersRequest_descriptor, @@ -40921,7 +41010,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListInstanceGroupsRequest_descriptor = - getDescriptor().getMessageTypes().get(825); + getDescriptor().getMessageTypes().get(827); internal_static_google_cloud_compute_v1_ListInstanceGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInstanceGroupsRequest_descriptor, @@ -40935,7 +41024,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListInstanceTemplatesRequest_descriptor = - getDescriptor().getMessageTypes().get(826); + getDescriptor().getMessageTypes().get(828); internal_static_google_cloud_compute_v1_ListInstanceTemplatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInstanceTemplatesRequest_descriptor, @@ -40943,7 +41032,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListInstancesInstanceGroupsRequest_descriptor = - getDescriptor().getMessageTypes().get(827); + getDescriptor().getMessageTypes().get(829); internal_static_google_cloud_compute_v1_ListInstancesInstanceGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInstancesInstanceGroupsRequest_descriptor, @@ -40959,7 +41048,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListInstancesRegionInstanceGroupsRequest_descriptor = - getDescriptor().getMessageTypes().get(828); + getDescriptor().getMessageTypes().get(830); internal_static_google_cloud_compute_v1_ListInstancesRegionInstanceGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInstancesRegionInstanceGroupsRequest_descriptor, @@ -40975,7 +41064,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(829); + getDescriptor().getMessageTypes().get(831); internal_static_google_cloud_compute_v1_ListInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInstancesRequest_descriptor, @@ -40989,7 +41078,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListInstantSnapshotsRequest_descriptor = - getDescriptor().getMessageTypes().get(830); + getDescriptor().getMessageTypes().get(832); internal_static_google_cloud_compute_v1_ListInstantSnapshotsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInstantSnapshotsRequest_descriptor, @@ -41003,7 +41092,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListInterconnectAttachmentGroupsRequest_descriptor = - getDescriptor().getMessageTypes().get(831); + getDescriptor().getMessageTypes().get(833); internal_static_google_cloud_compute_v1_ListInterconnectAttachmentGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInterconnectAttachmentGroupsRequest_descriptor, @@ -41011,7 +41100,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListInterconnectAttachmentsRequest_descriptor = - getDescriptor().getMessageTypes().get(832); + getDescriptor().getMessageTypes().get(834); internal_static_google_cloud_compute_v1_ListInterconnectAttachmentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInterconnectAttachmentsRequest_descriptor, @@ -41025,7 +41114,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListInterconnectGroupsRequest_descriptor = - getDescriptor().getMessageTypes().get(833); + getDescriptor().getMessageTypes().get(835); internal_static_google_cloud_compute_v1_ListInterconnectGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInterconnectGroupsRequest_descriptor, @@ -41033,7 +41122,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListInterconnectLocationsRequest_descriptor = - getDescriptor().getMessageTypes().get(834); + getDescriptor().getMessageTypes().get(836); internal_static_google_cloud_compute_v1_ListInterconnectLocationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInterconnectLocationsRequest_descriptor, @@ -41041,7 +41130,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListInterconnectRemoteLocationsRequest_descriptor = - getDescriptor().getMessageTypes().get(835); + getDescriptor().getMessageTypes().get(837); internal_static_google_cloud_compute_v1_ListInterconnectRemoteLocationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInterconnectRemoteLocationsRequest_descriptor, @@ -41049,7 +41138,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListInterconnectsRequest_descriptor = - getDescriptor().getMessageTypes().get(836); + getDescriptor().getMessageTypes().get(838); internal_static_google_cloud_compute_v1_ListInterconnectsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInterconnectsRequest_descriptor, @@ -41057,7 +41146,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListLicensesRequest_descriptor = - getDescriptor().getMessageTypes().get(837); + getDescriptor().getMessageTypes().get(839); internal_static_google_cloud_compute_v1_ListLicensesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListLicensesRequest_descriptor, @@ -41065,7 +41154,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListMachineImagesRequest_descriptor = - getDescriptor().getMessageTypes().get(838); + getDescriptor().getMessageTypes().get(840); internal_static_google_cloud_compute_v1_ListMachineImagesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListMachineImagesRequest_descriptor, @@ -41073,7 +41162,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListMachineTypesRequest_descriptor = - getDescriptor().getMessageTypes().get(839); + getDescriptor().getMessageTypes().get(841); internal_static_google_cloud_compute_v1_ListMachineTypesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListMachineTypesRequest_descriptor, @@ -41087,7 +41176,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListManagedInstancesInstanceGroupManagersRequest_descriptor = - getDescriptor().getMessageTypes().get(840); + getDescriptor().getMessageTypes().get(842); internal_static_google_cloud_compute_v1_ListManagedInstancesInstanceGroupManagersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListManagedInstancesInstanceGroupManagersRequest_descriptor, @@ -41102,7 +41191,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListManagedInstancesRegionInstanceGroupManagersRequest_descriptor = - getDescriptor().getMessageTypes().get(841); + getDescriptor().getMessageTypes().get(843); internal_static_google_cloud_compute_v1_ListManagedInstancesRegionInstanceGroupManagersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListManagedInstancesRegionInstanceGroupManagersRequest_descriptor, @@ -41117,7 +41206,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListNetworkAttachmentsRequest_descriptor = - getDescriptor().getMessageTypes().get(842); + getDescriptor().getMessageTypes().get(844); internal_static_google_cloud_compute_v1_ListNetworkAttachmentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListNetworkAttachmentsRequest_descriptor, @@ -41131,7 +41220,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListNetworkEndpointGroupsRequest_descriptor = - getDescriptor().getMessageTypes().get(843); + getDescriptor().getMessageTypes().get(845); internal_static_google_cloud_compute_v1_ListNetworkEndpointGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListNetworkEndpointGroupsRequest_descriptor, @@ -41145,7 +41234,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest_descriptor = - getDescriptor().getMessageTypes().get(844); + getDescriptor().getMessageTypes().get(846); internal_static_google_cloud_compute_v1_ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest_descriptor, @@ -41159,7 +41248,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListNetworkEndpointsNetworkEndpointGroupsRequest_descriptor = - getDescriptor().getMessageTypes().get(845); + getDescriptor().getMessageTypes().get(847); internal_static_google_cloud_compute_v1_ListNetworkEndpointsNetworkEndpointGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListNetworkEndpointsNetworkEndpointGroupsRequest_descriptor, @@ -41175,7 +41264,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListNetworkEndpointsRegionNetworkEndpointGroupsRequest_descriptor = - getDescriptor().getMessageTypes().get(846); + getDescriptor().getMessageTypes().get(848); internal_static_google_cloud_compute_v1_ListNetworkEndpointsRegionNetworkEndpointGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListNetworkEndpointsRegionNetworkEndpointGroupsRequest_descriptor, @@ -41190,7 +41279,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListNetworkFirewallPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(847); + getDescriptor().getMessageTypes().get(849); internal_static_google_cloud_compute_v1_ListNetworkFirewallPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListNetworkFirewallPoliciesRequest_descriptor, @@ -41198,7 +41287,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListNetworkProfilesRequest_descriptor = - getDescriptor().getMessageTypes().get(848); + getDescriptor().getMessageTypes().get(850); internal_static_google_cloud_compute_v1_ListNetworkProfilesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListNetworkProfilesRequest_descriptor, @@ -41206,7 +41295,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListNetworksRequest_descriptor = - getDescriptor().getMessageTypes().get(849); + getDescriptor().getMessageTypes().get(851); internal_static_google_cloud_compute_v1_ListNetworksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListNetworksRequest_descriptor, @@ -41214,7 +41303,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListNodeGroupsRequest_descriptor = - getDescriptor().getMessageTypes().get(850); + getDescriptor().getMessageTypes().get(852); internal_static_google_cloud_compute_v1_ListNodeGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListNodeGroupsRequest_descriptor, @@ -41228,7 +41317,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListNodeTemplatesRequest_descriptor = - getDescriptor().getMessageTypes().get(851); + getDescriptor().getMessageTypes().get(853); internal_static_google_cloud_compute_v1_ListNodeTemplatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListNodeTemplatesRequest_descriptor, @@ -41242,7 +41331,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListNodeTypesRequest_descriptor = - getDescriptor().getMessageTypes().get(852); + getDescriptor().getMessageTypes().get(854); internal_static_google_cloud_compute_v1_ListNodeTypesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListNodeTypesRequest_descriptor, @@ -41256,7 +41345,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListNodesNodeGroupsRequest_descriptor = - getDescriptor().getMessageTypes().get(853); + getDescriptor().getMessageTypes().get(855); internal_static_google_cloud_compute_v1_ListNodesNodeGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListNodesNodeGroupsRequest_descriptor, @@ -41271,7 +41360,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListPacketMirroringsRequest_descriptor = - getDescriptor().getMessageTypes().get(854); + getDescriptor().getMessageTypes().get(856); internal_static_google_cloud_compute_v1_ListPacketMirroringsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListPacketMirroringsRequest_descriptor, @@ -41285,7 +41374,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListPeeringRoutesNetworksRequest_descriptor = - getDescriptor().getMessageTypes().get(855); + getDescriptor().getMessageTypes().get(857); internal_static_google_cloud_compute_v1_ListPeeringRoutesNetworksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListPeeringRoutesNetworksRequest_descriptor, @@ -41302,7 +41391,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListPerInstanceConfigsInstanceGroupManagersRequest_descriptor = - getDescriptor().getMessageTypes().get(856); + getDescriptor().getMessageTypes().get(858); internal_static_google_cloud_compute_v1_ListPerInstanceConfigsInstanceGroupManagersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListPerInstanceConfigsInstanceGroupManagersRequest_descriptor, @@ -41317,7 +41406,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListPerInstanceConfigsRegionInstanceGroupManagersRequest_descriptor = - getDescriptor().getMessageTypes().get(857); + getDescriptor().getMessageTypes().get(859); internal_static_google_cloud_compute_v1_ListPerInstanceConfigsRegionInstanceGroupManagersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListPerInstanceConfigsRegionInstanceGroupManagersRequest_descriptor, @@ -41332,7 +41421,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListPreconfiguredExpressionSetsSecurityPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(858); + getDescriptor().getMessageTypes().get(860); internal_static_google_cloud_compute_v1_ListPreconfiguredExpressionSetsSecurityPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListPreconfiguredExpressionSetsSecurityPoliciesRequest_descriptor, @@ -41340,7 +41429,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListPublicAdvertisedPrefixesRequest_descriptor = - getDescriptor().getMessageTypes().get(859); + getDescriptor().getMessageTypes().get(861); internal_static_google_cloud_compute_v1_ListPublicAdvertisedPrefixesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListPublicAdvertisedPrefixesRequest_descriptor, @@ -41348,7 +41437,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListPublicDelegatedPrefixesRequest_descriptor = - getDescriptor().getMessageTypes().get(860); + getDescriptor().getMessageTypes().get(862); internal_static_google_cloud_compute_v1_ListPublicDelegatedPrefixesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListPublicDelegatedPrefixesRequest_descriptor, @@ -41362,7 +41451,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListReferrersInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(861); + getDescriptor().getMessageTypes().get(863); internal_static_google_cloud_compute_v1_ListReferrersInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListReferrersInstancesRequest_descriptor, @@ -41377,7 +41466,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListRegionAutoscalersRequest_descriptor = - getDescriptor().getMessageTypes().get(862); + getDescriptor().getMessageTypes().get(864); internal_static_google_cloud_compute_v1_ListRegionAutoscalersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionAutoscalersRequest_descriptor, @@ -41391,7 +41480,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionBackendServicesRequest_descriptor = - getDescriptor().getMessageTypes().get(863); + getDescriptor().getMessageTypes().get(865); internal_static_google_cloud_compute_v1_ListRegionBackendServicesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionBackendServicesRequest_descriptor, @@ -41405,7 +41494,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionCommitmentsRequest_descriptor = - getDescriptor().getMessageTypes().get(864); + getDescriptor().getMessageTypes().get(866); internal_static_google_cloud_compute_v1_ListRegionCommitmentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionCommitmentsRequest_descriptor, @@ -41419,7 +41508,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionDiskTypesRequest_descriptor = - getDescriptor().getMessageTypes().get(865); + getDescriptor().getMessageTypes().get(867); internal_static_google_cloud_compute_v1_ListRegionDiskTypesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionDiskTypesRequest_descriptor, @@ -41433,7 +41522,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionDisksRequest_descriptor = - getDescriptor().getMessageTypes().get(866); + getDescriptor().getMessageTypes().get(868); internal_static_google_cloud_compute_v1_ListRegionDisksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionDisksRequest_descriptor, @@ -41447,7 +41536,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionHealthCheckServicesRequest_descriptor = - getDescriptor().getMessageTypes().get(867); + getDescriptor().getMessageTypes().get(869); internal_static_google_cloud_compute_v1_ListRegionHealthCheckServicesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionHealthCheckServicesRequest_descriptor, @@ -41461,7 +41550,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionHealthChecksRequest_descriptor = - getDescriptor().getMessageTypes().get(868); + getDescriptor().getMessageTypes().get(870); internal_static_google_cloud_compute_v1_ListRegionHealthChecksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionHealthChecksRequest_descriptor, @@ -41475,7 +41564,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionInstanceGroupManagersRequest_descriptor = - getDescriptor().getMessageTypes().get(869); + getDescriptor().getMessageTypes().get(871); internal_static_google_cloud_compute_v1_ListRegionInstanceGroupManagersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionInstanceGroupManagersRequest_descriptor, @@ -41489,7 +41578,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionInstanceGroupsRequest_descriptor = - getDescriptor().getMessageTypes().get(870); + getDescriptor().getMessageTypes().get(872); internal_static_google_cloud_compute_v1_ListRegionInstanceGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionInstanceGroupsRequest_descriptor, @@ -41503,7 +41592,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionInstanceTemplatesRequest_descriptor = - getDescriptor().getMessageTypes().get(871); + getDescriptor().getMessageTypes().get(873); internal_static_google_cloud_compute_v1_ListRegionInstanceTemplatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionInstanceTemplatesRequest_descriptor, @@ -41517,7 +41606,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionInstantSnapshotsRequest_descriptor = - getDescriptor().getMessageTypes().get(872); + getDescriptor().getMessageTypes().get(874); internal_static_google_cloud_compute_v1_ListRegionInstantSnapshotsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionInstantSnapshotsRequest_descriptor, @@ -41531,7 +41620,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionNetworkEndpointGroupsRequest_descriptor = - getDescriptor().getMessageTypes().get(873); + getDescriptor().getMessageTypes().get(875); internal_static_google_cloud_compute_v1_ListRegionNetworkEndpointGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionNetworkEndpointGroupsRequest_descriptor, @@ -41545,7 +41634,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionNetworkFirewallPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(874); + getDescriptor().getMessageTypes().get(876); internal_static_google_cloud_compute_v1_ListRegionNetworkFirewallPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionNetworkFirewallPoliciesRequest_descriptor, @@ -41559,7 +41648,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionNotificationEndpointsRequest_descriptor = - getDescriptor().getMessageTypes().get(875); + getDescriptor().getMessageTypes().get(877); internal_static_google_cloud_compute_v1_ListRegionNotificationEndpointsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionNotificationEndpointsRequest_descriptor, @@ -41573,7 +41662,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionOperationsRequest_descriptor = - getDescriptor().getMessageTypes().get(876); + getDescriptor().getMessageTypes().get(878); internal_static_google_cloud_compute_v1_ListRegionOperationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionOperationsRequest_descriptor, @@ -41587,7 +41676,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionSecurityPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(877); + getDescriptor().getMessageTypes().get(879); internal_static_google_cloud_compute_v1_ListRegionSecurityPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionSecurityPoliciesRequest_descriptor, @@ -41601,7 +41690,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionSslCertificatesRequest_descriptor = - getDescriptor().getMessageTypes().get(878); + getDescriptor().getMessageTypes().get(880); internal_static_google_cloud_compute_v1_ListRegionSslCertificatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionSslCertificatesRequest_descriptor, @@ -41615,7 +41704,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionSslPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(879); + getDescriptor().getMessageTypes().get(881); internal_static_google_cloud_compute_v1_ListRegionSslPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionSslPoliciesRequest_descriptor, @@ -41629,7 +41718,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionTargetHttpProxiesRequest_descriptor = - getDescriptor().getMessageTypes().get(880); + getDescriptor().getMessageTypes().get(882); internal_static_google_cloud_compute_v1_ListRegionTargetHttpProxiesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionTargetHttpProxiesRequest_descriptor, @@ -41643,7 +41732,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionTargetHttpsProxiesRequest_descriptor = - getDescriptor().getMessageTypes().get(881); + getDescriptor().getMessageTypes().get(883); internal_static_google_cloud_compute_v1_ListRegionTargetHttpsProxiesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionTargetHttpsProxiesRequest_descriptor, @@ -41657,7 +41746,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionTargetTcpProxiesRequest_descriptor = - getDescriptor().getMessageTypes().get(882); + getDescriptor().getMessageTypes().get(884); internal_static_google_cloud_compute_v1_ListRegionTargetTcpProxiesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionTargetTcpProxiesRequest_descriptor, @@ -41671,7 +41760,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionUrlMapsRequest_descriptor = - getDescriptor().getMessageTypes().get(883); + getDescriptor().getMessageTypes().get(885); internal_static_google_cloud_compute_v1_ListRegionUrlMapsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionUrlMapsRequest_descriptor, @@ -41685,7 +41774,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionZonesRequest_descriptor = - getDescriptor().getMessageTypes().get(884); + getDescriptor().getMessageTypes().get(886); internal_static_google_cloud_compute_v1_ListRegionZonesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionZonesRequest_descriptor, @@ -41699,7 +41788,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionsRequest_descriptor = - getDescriptor().getMessageTypes().get(885); + getDescriptor().getMessageTypes().get(887); internal_static_google_cloud_compute_v1_ListRegionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionsRequest_descriptor, @@ -41707,7 +41796,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListReservationBlocksRequest_descriptor = - getDescriptor().getMessageTypes().get(886); + getDescriptor().getMessageTypes().get(888); internal_static_google_cloud_compute_v1_ListReservationBlocksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListReservationBlocksRequest_descriptor, @@ -41722,7 +41811,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListReservationSubBlocksRequest_descriptor = - getDescriptor().getMessageTypes().get(887); + getDescriptor().getMessageTypes().get(889); internal_static_google_cloud_compute_v1_ListReservationSubBlocksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListReservationSubBlocksRequest_descriptor, @@ -41737,7 +41826,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListReservationsRequest_descriptor = - getDescriptor().getMessageTypes().get(888); + getDescriptor().getMessageTypes().get(890); internal_static_google_cloud_compute_v1_ListReservationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListReservationsRequest_descriptor, @@ -41751,7 +41840,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListResourcePoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(889); + getDescriptor().getMessageTypes().get(891); internal_static_google_cloud_compute_v1_ListResourcePoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListResourcePoliciesRequest_descriptor, @@ -41765,7 +41854,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRoutePoliciesRoutersRequest_descriptor = - getDescriptor().getMessageTypes().get(890); + getDescriptor().getMessageTypes().get(892); internal_static_google_cloud_compute_v1_ListRoutePoliciesRoutersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRoutePoliciesRoutersRequest_descriptor, @@ -41780,7 +41869,7 @@ private static void _clinit_autosplit_dinit_1() { "Router", }); internal_static_google_cloud_compute_v1_ListRoutersRequest_descriptor = - getDescriptor().getMessageTypes().get(891); + getDescriptor().getMessageTypes().get(893); internal_static_google_cloud_compute_v1_ListRoutersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRoutersRequest_descriptor, @@ -41794,7 +41883,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRoutesRequest_descriptor = - getDescriptor().getMessageTypes().get(892); + getDescriptor().getMessageTypes().get(894); internal_static_google_cloud_compute_v1_ListRoutesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRoutesRequest_descriptor, @@ -41802,7 +41891,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListSecurityPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(893); + getDescriptor().getMessageTypes().get(895); internal_static_google_cloud_compute_v1_ListSecurityPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListSecurityPoliciesRequest_descriptor, @@ -41810,7 +41899,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListServiceAttachmentsRequest_descriptor = - getDescriptor().getMessageTypes().get(894); + getDescriptor().getMessageTypes().get(896); internal_static_google_cloud_compute_v1_ListServiceAttachmentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListServiceAttachmentsRequest_descriptor, @@ -41824,7 +41913,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListSnapshotsRequest_descriptor = - getDescriptor().getMessageTypes().get(895); + getDescriptor().getMessageTypes().get(897); internal_static_google_cloud_compute_v1_ListSnapshotsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListSnapshotsRequest_descriptor, @@ -41832,7 +41921,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListSslCertificatesRequest_descriptor = - getDescriptor().getMessageTypes().get(896); + getDescriptor().getMessageTypes().get(898); internal_static_google_cloud_compute_v1_ListSslCertificatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListSslCertificatesRequest_descriptor, @@ -41840,7 +41929,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListSslPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(897); + getDescriptor().getMessageTypes().get(899); internal_static_google_cloud_compute_v1_ListSslPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListSslPoliciesRequest_descriptor, @@ -41848,7 +41937,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListStoragePoolTypesRequest_descriptor = - getDescriptor().getMessageTypes().get(898); + getDescriptor().getMessageTypes().get(900); internal_static_google_cloud_compute_v1_ListStoragePoolTypesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListStoragePoolTypesRequest_descriptor, @@ -41862,7 +41951,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListStoragePoolsRequest_descriptor = - getDescriptor().getMessageTypes().get(899); + getDescriptor().getMessageTypes().get(901); internal_static_google_cloud_compute_v1_ListStoragePoolsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListStoragePoolsRequest_descriptor, @@ -41876,7 +41965,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListSubnetworksRequest_descriptor = - getDescriptor().getMessageTypes().get(900); + getDescriptor().getMessageTypes().get(902); internal_static_google_cloud_compute_v1_ListSubnetworksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListSubnetworksRequest_descriptor, @@ -41890,7 +41979,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListTargetGrpcProxiesRequest_descriptor = - getDescriptor().getMessageTypes().get(901); + getDescriptor().getMessageTypes().get(903); internal_static_google_cloud_compute_v1_ListTargetGrpcProxiesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListTargetGrpcProxiesRequest_descriptor, @@ -41898,7 +41987,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListTargetHttpProxiesRequest_descriptor = - getDescriptor().getMessageTypes().get(902); + getDescriptor().getMessageTypes().get(904); internal_static_google_cloud_compute_v1_ListTargetHttpProxiesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListTargetHttpProxiesRequest_descriptor, @@ -41906,7 +41995,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListTargetHttpsProxiesRequest_descriptor = - getDescriptor().getMessageTypes().get(903); + getDescriptor().getMessageTypes().get(905); internal_static_google_cloud_compute_v1_ListTargetHttpsProxiesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListTargetHttpsProxiesRequest_descriptor, @@ -41914,7 +42003,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListTargetInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(904); + getDescriptor().getMessageTypes().get(906); internal_static_google_cloud_compute_v1_ListTargetInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListTargetInstancesRequest_descriptor, @@ -41928,7 +42017,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListTargetPoolsRequest_descriptor = - getDescriptor().getMessageTypes().get(905); + getDescriptor().getMessageTypes().get(907); internal_static_google_cloud_compute_v1_ListTargetPoolsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListTargetPoolsRequest_descriptor, @@ -41942,7 +42031,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListTargetSslProxiesRequest_descriptor = - getDescriptor().getMessageTypes().get(906); + getDescriptor().getMessageTypes().get(908); internal_static_google_cloud_compute_v1_ListTargetSslProxiesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListTargetSslProxiesRequest_descriptor, @@ -41950,7 +42039,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListTargetTcpProxiesRequest_descriptor = - getDescriptor().getMessageTypes().get(907); + getDescriptor().getMessageTypes().get(909); internal_static_google_cloud_compute_v1_ListTargetTcpProxiesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListTargetTcpProxiesRequest_descriptor, @@ -41958,7 +42047,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListTargetVpnGatewaysRequest_descriptor = - getDescriptor().getMessageTypes().get(908); + getDescriptor().getMessageTypes().get(910); internal_static_google_cloud_compute_v1_ListTargetVpnGatewaysRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListTargetVpnGatewaysRequest_descriptor, @@ -41972,7 +42061,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListUrlMapsRequest_descriptor = - getDescriptor().getMessageTypes().get(909); + getDescriptor().getMessageTypes().get(911); internal_static_google_cloud_compute_v1_ListUrlMapsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListUrlMapsRequest_descriptor, @@ -41980,7 +42069,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListUsableBackendServicesRequest_descriptor = - getDescriptor().getMessageTypes().get(910); + getDescriptor().getMessageTypes().get(912); internal_static_google_cloud_compute_v1_ListUsableBackendServicesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListUsableBackendServicesRequest_descriptor, @@ -41988,7 +42077,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListUsableRegionBackendServicesRequest_descriptor = - getDescriptor().getMessageTypes().get(911); + getDescriptor().getMessageTypes().get(913); internal_static_google_cloud_compute_v1_ListUsableRegionBackendServicesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListUsableRegionBackendServicesRequest_descriptor, @@ -42002,7 +42091,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListUsableSubnetworksRequest_descriptor = - getDescriptor().getMessageTypes().get(912); + getDescriptor().getMessageTypes().get(914); internal_static_google_cloud_compute_v1_ListUsableSubnetworksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListUsableSubnetworksRequest_descriptor, @@ -42010,7 +42099,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListVpnGatewaysRequest_descriptor = - getDescriptor().getMessageTypes().get(913); + getDescriptor().getMessageTypes().get(915); internal_static_google_cloud_compute_v1_ListVpnGatewaysRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListVpnGatewaysRequest_descriptor, @@ -42024,7 +42113,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListVpnTunnelsRequest_descriptor = - getDescriptor().getMessageTypes().get(914); + getDescriptor().getMessageTypes().get(916); internal_static_google_cloud_compute_v1_ListVpnTunnelsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListVpnTunnelsRequest_descriptor, @@ -42038,7 +42127,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListXpnHostsProjectsRequest_descriptor = - getDescriptor().getMessageTypes().get(915); + getDescriptor().getMessageTypes().get(917); internal_static_google_cloud_compute_v1_ListXpnHostsProjectsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListXpnHostsProjectsRequest_descriptor, @@ -42052,7 +42141,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListZoneOperationsRequest_descriptor = - getDescriptor().getMessageTypes().get(916); + getDescriptor().getMessageTypes().get(918); internal_static_google_cloud_compute_v1_ListZoneOperationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListZoneOperationsRequest_descriptor, @@ -42065,8 +42154,12 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", "Zone", }); + _clinit_autosplit_dinit_2(); + } + + private static void _clinit_autosplit_dinit_2() { internal_static_google_cloud_compute_v1_ListZonesRequest_descriptor = - getDescriptor().getMessageTypes().get(917); + getDescriptor().getMessageTypes().get(919); internal_static_google_cloud_compute_v1_ListZonesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListZonesRequest_descriptor, @@ -42074,19 +42167,15 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_LocalDisk_descriptor = - getDescriptor().getMessageTypes().get(918); + getDescriptor().getMessageTypes().get(920); internal_static_google_cloud_compute_v1_LocalDisk_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_LocalDisk_descriptor, new java.lang.String[] { "DiskCount", "DiskSizeGb", "DiskType", }); - _clinit_autosplit_dinit_2(); - } - - private static void _clinit_autosplit_dinit_2() { internal_static_google_cloud_compute_v1_LocalizedMessage_descriptor = - getDescriptor().getMessageTypes().get(919); + getDescriptor().getMessageTypes().get(921); internal_static_google_cloud_compute_v1_LocalizedMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_LocalizedMessage_descriptor, @@ -42094,7 +42183,7 @@ private static void _clinit_autosplit_dinit_2() { "Locale", "Message", }); internal_static_google_cloud_compute_v1_LocationPolicy_descriptor = - getDescriptor().getMessageTypes().get(920); + getDescriptor().getMessageTypes().get(922); internal_static_google_cloud_compute_v1_LocationPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_LocationPolicy_descriptor, @@ -42110,7 +42199,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_LocationPolicyLocation_descriptor = - getDescriptor().getMessageTypes().get(921); + getDescriptor().getMessageTypes().get(923); internal_static_google_cloud_compute_v1_LocationPolicyLocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_LocationPolicyLocation_descriptor, @@ -42118,7 +42207,7 @@ private static void _clinit_autosplit_dinit_2() { "Constraints", "Preference", }); internal_static_google_cloud_compute_v1_LocationPolicyLocationConstraints_descriptor = - getDescriptor().getMessageTypes().get(922); + getDescriptor().getMessageTypes().get(924); internal_static_google_cloud_compute_v1_LocationPolicyLocationConstraints_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_LocationPolicyLocationConstraints_descriptor, @@ -42126,7 +42215,7 @@ private static void _clinit_autosplit_dinit_2() { "MaxCount", }); internal_static_google_cloud_compute_v1_MachineImage_descriptor = - getDescriptor().getMessageTypes().get(923); + getDescriptor().getMessageTypes().get(925); internal_static_google_cloud_compute_v1_MachineImage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_MachineImage_descriptor, @@ -42161,7 +42250,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_MachineImageList_descriptor = - getDescriptor().getMessageTypes().get(924); + getDescriptor().getMessageTypes().get(926); internal_static_google_cloud_compute_v1_MachineImageList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_MachineImageList_descriptor, @@ -42169,7 +42258,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_MachineType_descriptor = - getDescriptor().getMessageTypes().get(925); + getDescriptor().getMessageTypes().get(927); internal_static_google_cloud_compute_v1_MachineType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_MachineType_descriptor, @@ -42192,7 +42281,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_MachineTypeAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(926); + getDescriptor().getMessageTypes().get(928); internal_static_google_cloud_compute_v1_MachineTypeAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_MachineTypeAggregatedList_descriptor, @@ -42210,7 +42299,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_MachineTypeList_descriptor = - getDescriptor().getMessageTypes().get(927); + getDescriptor().getMessageTypes().get(929); internal_static_google_cloud_compute_v1_MachineTypeList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_MachineTypeList_descriptor, @@ -42218,7 +42307,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_MachineTypesScopedList_descriptor = - getDescriptor().getMessageTypes().get(928); + getDescriptor().getMessageTypes().get(930); internal_static_google_cloud_compute_v1_MachineTypesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_MachineTypesScopedList_descriptor, @@ -42226,7 +42315,7 @@ private static void _clinit_autosplit_dinit_2() { "MachineTypes", "Warning", }); internal_static_google_cloud_compute_v1_ManagedInstance_descriptor = - getDescriptor().getMessageTypes().get(929); + getDescriptor().getMessageTypes().get(931); internal_static_google_cloud_compute_v1_ManagedInstance_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ManagedInstance_descriptor, @@ -42244,7 +42333,7 @@ private static void _clinit_autosplit_dinit_2() { "Version", }); internal_static_google_cloud_compute_v1_ManagedInstanceInstanceHealth_descriptor = - getDescriptor().getMessageTypes().get(930); + getDescriptor().getMessageTypes().get(932); internal_static_google_cloud_compute_v1_ManagedInstanceInstanceHealth_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ManagedInstanceInstanceHealth_descriptor, @@ -42252,7 +42341,7 @@ private static void _clinit_autosplit_dinit_2() { "DetailedHealthState", "HealthCheck", }); internal_static_google_cloud_compute_v1_ManagedInstanceLastAttempt_descriptor = - getDescriptor().getMessageTypes().get(931); + getDescriptor().getMessageTypes().get(933); internal_static_google_cloud_compute_v1_ManagedInstanceLastAttempt_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ManagedInstanceLastAttempt_descriptor, @@ -42260,7 +42349,7 @@ private static void _clinit_autosplit_dinit_2() { "Errors", }); internal_static_google_cloud_compute_v1_ManagedInstanceLastAttemptErrors_descriptor = - getDescriptor().getMessageTypes().get(932); + getDescriptor().getMessageTypes().get(934); internal_static_google_cloud_compute_v1_ManagedInstanceLastAttemptErrors_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ManagedInstanceLastAttemptErrors_descriptor, @@ -42268,7 +42357,7 @@ private static void _clinit_autosplit_dinit_2() { "Errors", }); internal_static_google_cloud_compute_v1_ManagedInstancePropertiesFromFlexibilityPolicy_descriptor = - getDescriptor().getMessageTypes().get(933); + getDescriptor().getMessageTypes().get(935); internal_static_google_cloud_compute_v1_ManagedInstancePropertiesFromFlexibilityPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ManagedInstancePropertiesFromFlexibilityPolicy_descriptor, @@ -42276,7 +42365,7 @@ private static void _clinit_autosplit_dinit_2() { "MachineType", }); internal_static_google_cloud_compute_v1_ManagedInstanceVersion_descriptor = - getDescriptor().getMessageTypes().get(934); + getDescriptor().getMessageTypes().get(936); internal_static_google_cloud_compute_v1_ManagedInstanceVersion_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ManagedInstanceVersion_descriptor, @@ -42284,7 +42373,7 @@ private static void _clinit_autosplit_dinit_2() { "InstanceTemplate", "Name", }); internal_static_google_cloud_compute_v1_Metadata_descriptor = - getDescriptor().getMessageTypes().get(935); + getDescriptor().getMessageTypes().get(937); internal_static_google_cloud_compute_v1_Metadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Metadata_descriptor, @@ -42292,7 +42381,7 @@ private static void _clinit_autosplit_dinit_2() { "Fingerprint", "Items", "Kind", }); internal_static_google_cloud_compute_v1_MetadataFilter_descriptor = - getDescriptor().getMessageTypes().get(936); + getDescriptor().getMessageTypes().get(938); internal_static_google_cloud_compute_v1_MetadataFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_MetadataFilter_descriptor, @@ -42300,7 +42389,7 @@ private static void _clinit_autosplit_dinit_2() { "FilterLabels", "FilterMatchCriteria", }); internal_static_google_cloud_compute_v1_MetadataFilterLabelMatch_descriptor = - getDescriptor().getMessageTypes().get(937); + getDescriptor().getMessageTypes().get(939); internal_static_google_cloud_compute_v1_MetadataFilterLabelMatch_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_MetadataFilterLabelMatch_descriptor, @@ -42308,7 +42397,7 @@ private static void _clinit_autosplit_dinit_2() { "Name", "Value", }); internal_static_google_cloud_compute_v1_MoveAddressRequest_descriptor = - getDescriptor().getMessageTypes().get(938); + getDescriptor().getMessageTypes().get(940); internal_static_google_cloud_compute_v1_MoveAddressRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_MoveAddressRequest_descriptor, @@ -42316,7 +42405,7 @@ private static void _clinit_autosplit_dinit_2() { "Address", "Project", "Region", "RegionAddressesMoveRequestResource", "RequestId", }); internal_static_google_cloud_compute_v1_MoveDiskProjectRequest_descriptor = - getDescriptor().getMessageTypes().get(939); + getDescriptor().getMessageTypes().get(941); internal_static_google_cloud_compute_v1_MoveDiskProjectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_MoveDiskProjectRequest_descriptor, @@ -42324,7 +42413,7 @@ private static void _clinit_autosplit_dinit_2() { "DiskMoveRequestResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_MoveFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(940); + getDescriptor().getMessageTypes().get(942); internal_static_google_cloud_compute_v1_MoveFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_MoveFirewallPolicyRequest_descriptor, @@ -42332,7 +42421,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicy", "ParentId", "RequestId", }); internal_static_google_cloud_compute_v1_MoveGlobalAddressRequest_descriptor = - getDescriptor().getMessageTypes().get(941); + getDescriptor().getMessageTypes().get(943); internal_static_google_cloud_compute_v1_MoveGlobalAddressRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_MoveGlobalAddressRequest_descriptor, @@ -42340,7 +42429,7 @@ private static void _clinit_autosplit_dinit_2() { "Address", "GlobalAddressesMoveRequestResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_MoveInstanceProjectRequest_descriptor = - getDescriptor().getMessageTypes().get(942); + getDescriptor().getMessageTypes().get(944); internal_static_google_cloud_compute_v1_MoveInstanceProjectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_MoveInstanceProjectRequest_descriptor, @@ -42348,7 +42437,7 @@ private static void _clinit_autosplit_dinit_2() { "InstanceMoveRequestResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_NamedPort_descriptor = - getDescriptor().getMessageTypes().get(943); + getDescriptor().getMessageTypes().get(945); internal_static_google_cloud_compute_v1_NamedPort_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NamedPort_descriptor, @@ -42356,7 +42445,7 @@ private static void _clinit_autosplit_dinit_2() { "Name", "Port", }); internal_static_google_cloud_compute_v1_NatIpInfo_descriptor = - getDescriptor().getMessageTypes().get(944); + getDescriptor().getMessageTypes().get(946); internal_static_google_cloud_compute_v1_NatIpInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NatIpInfo_descriptor, @@ -42364,7 +42453,7 @@ private static void _clinit_autosplit_dinit_2() { "NatIpInfoMappings", "NatName", }); internal_static_google_cloud_compute_v1_NatIpInfoNatIpInfoMapping_descriptor = - getDescriptor().getMessageTypes().get(945); + getDescriptor().getMessageTypes().get(947); internal_static_google_cloud_compute_v1_NatIpInfoNatIpInfoMapping_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NatIpInfoNatIpInfoMapping_descriptor, @@ -42372,7 +42461,7 @@ private static void _clinit_autosplit_dinit_2() { "Mode", "NatIp", "Usage", }); internal_static_google_cloud_compute_v1_NatIpInfoResponse_descriptor = - getDescriptor().getMessageTypes().get(946); + getDescriptor().getMessageTypes().get(948); internal_static_google_cloud_compute_v1_NatIpInfoResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NatIpInfoResponse_descriptor, @@ -42380,7 +42469,7 @@ private static void _clinit_autosplit_dinit_2() { "Result", }); internal_static_google_cloud_compute_v1_Network_descriptor = - getDescriptor().getMessageTypes().get(947); + getDescriptor().getMessageTypes().get(949); internal_static_google_cloud_compute_v1_Network_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Network_descriptor, @@ -42407,7 +42496,7 @@ private static void _clinit_autosplit_dinit_2() { "Subnetworks", }); internal_static_google_cloud_compute_v1_NetworkAttachment_descriptor = - getDescriptor().getMessageTypes().get(948); + getDescriptor().getMessageTypes().get(950); internal_static_google_cloud_compute_v1_NetworkAttachment_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkAttachment_descriptor, @@ -42429,7 +42518,7 @@ private static void _clinit_autosplit_dinit_2() { "Subnetworks", }); internal_static_google_cloud_compute_v1_NetworkAttachmentAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(949); + getDescriptor().getMessageTypes().get(951); internal_static_google_cloud_compute_v1_NetworkAttachmentAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkAttachmentAggregatedList_descriptor, @@ -42447,7 +42536,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_NetworkAttachmentConnectedEndpoint_descriptor = - getDescriptor().getMessageTypes().get(950); + getDescriptor().getMessageTypes().get(952); internal_static_google_cloud_compute_v1_NetworkAttachmentConnectedEndpoint_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkAttachmentConnectedEndpoint_descriptor, @@ -42461,7 +42550,7 @@ private static void _clinit_autosplit_dinit_2() { "SubnetworkCidrRange", }); internal_static_google_cloud_compute_v1_NetworkAttachmentList_descriptor = - getDescriptor().getMessageTypes().get(951); + getDescriptor().getMessageTypes().get(953); internal_static_google_cloud_compute_v1_NetworkAttachmentList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkAttachmentList_descriptor, @@ -42469,7 +42558,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_NetworkAttachmentsScopedList_descriptor = - getDescriptor().getMessageTypes().get(952); + getDescriptor().getMessageTypes().get(954); internal_static_google_cloud_compute_v1_NetworkAttachmentsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkAttachmentsScopedList_descriptor, @@ -42477,7 +42566,7 @@ private static void _clinit_autosplit_dinit_2() { "NetworkAttachments", "Warning", }); internal_static_google_cloud_compute_v1_NetworkEdgeSecurityService_descriptor = - getDescriptor().getMessageTypes().get(953); + getDescriptor().getMessageTypes().get(955); internal_static_google_cloud_compute_v1_NetworkEdgeSecurityService_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEdgeSecurityService_descriptor, @@ -42494,7 +42583,7 @@ private static void _clinit_autosplit_dinit_2() { "SelfLinkWithId", }); internal_static_google_cloud_compute_v1_NetworkEdgeSecurityServiceAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(954); + getDescriptor().getMessageTypes().get(956); internal_static_google_cloud_compute_v1_NetworkEdgeSecurityServiceAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEdgeSecurityServiceAggregatedList_descriptor, @@ -42512,7 +42601,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_NetworkEdgeSecurityServicesScopedList_descriptor = - getDescriptor().getMessageTypes().get(955); + getDescriptor().getMessageTypes().get(957); internal_static_google_cloud_compute_v1_NetworkEdgeSecurityServicesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEdgeSecurityServicesScopedList_descriptor, @@ -42520,7 +42609,7 @@ private static void _clinit_autosplit_dinit_2() { "NetworkEdgeSecurityServices", "Warning", }); internal_static_google_cloud_compute_v1_NetworkEndpoint_descriptor = - getDescriptor().getMessageTypes().get(956); + getDescriptor().getMessageTypes().get(958); internal_static_google_cloud_compute_v1_NetworkEndpoint_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpoint_descriptor, @@ -42542,7 +42631,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_NetworkEndpointGroup_descriptor = - getDescriptor().getMessageTypes().get(957); + getDescriptor().getMessageTypes().get(959); internal_static_google_cloud_compute_v1_NetworkEndpointGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointGroup_descriptor, @@ -42578,7 +42667,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_NetworkEndpointGroupAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(958); + getDescriptor().getMessageTypes().get(960); internal_static_google_cloud_compute_v1_NetworkEndpointGroupAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointGroupAggregatedList_descriptor, @@ -42596,7 +42685,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_NetworkEndpointGroupAppEngine_descriptor = - getDescriptor().getMessageTypes().get(959); + getDescriptor().getMessageTypes().get(961); internal_static_google_cloud_compute_v1_NetworkEndpointGroupAppEngine_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointGroupAppEngine_descriptor, @@ -42604,7 +42693,7 @@ private static void _clinit_autosplit_dinit_2() { "Service", "UrlMask", "Version", }); internal_static_google_cloud_compute_v1_NetworkEndpointGroupCloudFunction_descriptor = - getDescriptor().getMessageTypes().get(960); + getDescriptor().getMessageTypes().get(962); internal_static_google_cloud_compute_v1_NetworkEndpointGroupCloudFunction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointGroupCloudFunction_descriptor, @@ -42612,7 +42701,7 @@ private static void _clinit_autosplit_dinit_2() { "Function", "UrlMask", }); internal_static_google_cloud_compute_v1_NetworkEndpointGroupCloudRun_descriptor = - getDescriptor().getMessageTypes().get(961); + getDescriptor().getMessageTypes().get(963); internal_static_google_cloud_compute_v1_NetworkEndpointGroupCloudRun_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointGroupCloudRun_descriptor, @@ -42620,7 +42709,7 @@ private static void _clinit_autosplit_dinit_2() { "Service", "Tag", "UrlMask", }); internal_static_google_cloud_compute_v1_NetworkEndpointGroupList_descriptor = - getDescriptor().getMessageTypes().get(962); + getDescriptor().getMessageTypes().get(964); internal_static_google_cloud_compute_v1_NetworkEndpointGroupList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointGroupList_descriptor, @@ -42628,7 +42717,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_NetworkEndpointGroupPscData_descriptor = - getDescriptor().getMessageTypes().get(963); + getDescriptor().getMessageTypes().get(965); internal_static_google_cloud_compute_v1_NetworkEndpointGroupPscData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointGroupPscData_descriptor, @@ -42636,7 +42725,7 @@ private static void _clinit_autosplit_dinit_2() { "ConsumerPscAddress", "ProducerPort", "PscConnectionId", "PscConnectionStatus", }); internal_static_google_cloud_compute_v1_NetworkEndpointGroupsAttachEndpointsRequest_descriptor = - getDescriptor().getMessageTypes().get(964); + getDescriptor().getMessageTypes().get(966); internal_static_google_cloud_compute_v1_NetworkEndpointGroupsAttachEndpointsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointGroupsAttachEndpointsRequest_descriptor, @@ -42644,7 +42733,7 @@ private static void _clinit_autosplit_dinit_2() { "NetworkEndpoints", }); internal_static_google_cloud_compute_v1_NetworkEndpointGroupsDetachEndpointsRequest_descriptor = - getDescriptor().getMessageTypes().get(965); + getDescriptor().getMessageTypes().get(967); internal_static_google_cloud_compute_v1_NetworkEndpointGroupsDetachEndpointsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointGroupsDetachEndpointsRequest_descriptor, @@ -42652,7 +42741,7 @@ private static void _clinit_autosplit_dinit_2() { "NetworkEndpoints", }); internal_static_google_cloud_compute_v1_NetworkEndpointGroupsListEndpointsRequest_descriptor = - getDescriptor().getMessageTypes().get(966); + getDescriptor().getMessageTypes().get(968); internal_static_google_cloud_compute_v1_NetworkEndpointGroupsListEndpointsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointGroupsListEndpointsRequest_descriptor, @@ -42660,7 +42749,7 @@ private static void _clinit_autosplit_dinit_2() { "HealthStatus", }); internal_static_google_cloud_compute_v1_NetworkEndpointGroupsListNetworkEndpoints_descriptor = - getDescriptor().getMessageTypes().get(967); + getDescriptor().getMessageTypes().get(969); internal_static_google_cloud_compute_v1_NetworkEndpointGroupsListNetworkEndpoints_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointGroupsListNetworkEndpoints_descriptor, @@ -42668,7 +42757,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "Warning", }); internal_static_google_cloud_compute_v1_NetworkEndpointGroupsScopedList_descriptor = - getDescriptor().getMessageTypes().get(968); + getDescriptor().getMessageTypes().get(970); internal_static_google_cloud_compute_v1_NetworkEndpointGroupsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointGroupsScopedList_descriptor, @@ -42676,7 +42765,7 @@ private static void _clinit_autosplit_dinit_2() { "NetworkEndpointGroups", "Warning", }); internal_static_google_cloud_compute_v1_NetworkEndpointWithHealthStatus_descriptor = - getDescriptor().getMessageTypes().get(969); + getDescriptor().getMessageTypes().get(971); internal_static_google_cloud_compute_v1_NetworkEndpointWithHealthStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointWithHealthStatus_descriptor, @@ -42684,7 +42773,7 @@ private static void _clinit_autosplit_dinit_2() { "Healths", "NetworkEndpoint", }); internal_static_google_cloud_compute_v1_NetworkFirewallPolicyAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(970); + getDescriptor().getMessageTypes().get(972); internal_static_google_cloud_compute_v1_NetworkFirewallPolicyAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkFirewallPolicyAggregatedList_descriptor, @@ -42702,7 +42791,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_NetworkInterface_descriptor = - getDescriptor().getMessageTypes().get(971); + getDescriptor().getMessageTypes().get(973); internal_static_google_cloud_compute_v1_NetworkInterface_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkInterface_descriptor, @@ -42725,7 +42814,7 @@ private static void _clinit_autosplit_dinit_2() { "Subnetwork", }); internal_static_google_cloud_compute_v1_NetworkList_descriptor = - getDescriptor().getMessageTypes().get(972); + getDescriptor().getMessageTypes().get(974); internal_static_google_cloud_compute_v1_NetworkList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkList_descriptor, @@ -42733,7 +42822,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_NetworkParams_descriptor = - getDescriptor().getMessageTypes().get(973); + getDescriptor().getMessageTypes().get(975); internal_static_google_cloud_compute_v1_NetworkParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkParams_descriptor, @@ -42749,7 +42838,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_NetworkPeering_descriptor = - getDescriptor().getMessageTypes().get(974); + getDescriptor().getMessageTypes().get(976); internal_static_google_cloud_compute_v1_NetworkPeering_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkPeering_descriptor, @@ -42768,7 +42857,7 @@ private static void _clinit_autosplit_dinit_2() { "StateDetails", }); internal_static_google_cloud_compute_v1_NetworkPerformanceConfig_descriptor = - getDescriptor().getMessageTypes().get(975); + getDescriptor().getMessageTypes().get(977); internal_static_google_cloud_compute_v1_NetworkPerformanceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkPerformanceConfig_descriptor, @@ -42776,7 +42865,7 @@ private static void _clinit_autosplit_dinit_2() { "TotalEgressBandwidthTier", }); internal_static_google_cloud_compute_v1_NetworkProfile_descriptor = - getDescriptor().getMessageTypes().get(976); + getDescriptor().getMessageTypes().get(978); internal_static_google_cloud_compute_v1_NetworkProfile_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkProfile_descriptor, @@ -42793,7 +42882,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_NetworkProfileLocation_descriptor = - getDescriptor().getMessageTypes().get(977); + getDescriptor().getMessageTypes().get(979); internal_static_google_cloud_compute_v1_NetworkProfileLocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkProfileLocation_descriptor, @@ -42801,7 +42890,7 @@ private static void _clinit_autosplit_dinit_2() { "Name", "Scope", }); internal_static_google_cloud_compute_v1_NetworkProfileNetworkFeatures_descriptor = - getDescriptor().getMessageTypes().get(978); + getDescriptor().getMessageTypes().get(980); internal_static_google_cloud_compute_v1_NetworkProfileNetworkFeatures_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkProfileNetworkFeatures_descriptor, @@ -42836,7 +42925,7 @@ private static void _clinit_autosplit_dinit_2() { "Unicast", }); internal_static_google_cloud_compute_v1_NetworkProfilesListResponse_descriptor = - getDescriptor().getMessageTypes().get(979); + getDescriptor().getMessageTypes().get(981); internal_static_google_cloud_compute_v1_NetworkProfilesListResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkProfilesListResponse_descriptor, @@ -42844,7 +42933,7 @@ private static void _clinit_autosplit_dinit_2() { "Etag", "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Unreachables", "Warning", }); internal_static_google_cloud_compute_v1_NetworkRoutingConfig_descriptor = - getDescriptor().getMessageTypes().get(980); + getDescriptor().getMessageTypes().get(982); internal_static_google_cloud_compute_v1_NetworkRoutingConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkRoutingConfig_descriptor, @@ -42857,7 +42946,7 @@ private static void _clinit_autosplit_dinit_2() { "RoutingMode", }); internal_static_google_cloud_compute_v1_NetworksAddPeeringRequest_descriptor = - getDescriptor().getMessageTypes().get(981); + getDescriptor().getMessageTypes().get(983); internal_static_google_cloud_compute_v1_NetworksAddPeeringRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworksAddPeeringRequest_descriptor, @@ -42865,7 +42954,7 @@ private static void _clinit_autosplit_dinit_2() { "AutoCreateRoutes", "Name", "NetworkPeering", "PeerNetwork", }); internal_static_google_cloud_compute_v1_NetworksGetEffectiveFirewallsResponse_descriptor = - getDescriptor().getMessageTypes().get(982); + getDescriptor().getMessageTypes().get(984); internal_static_google_cloud_compute_v1_NetworksGetEffectiveFirewallsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworksGetEffectiveFirewallsResponse_descriptor, @@ -42873,7 +42962,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicys", "Firewalls", }); internal_static_google_cloud_compute_v1_NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy_descriptor = - getDescriptor().getMessageTypes().get(983); + getDescriptor().getMessageTypes().get(985); internal_static_google_cloud_compute_v1_NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy_descriptor, @@ -42887,7 +42976,7 @@ private static void _clinit_autosplit_dinit_2() { "Type", }); internal_static_google_cloud_compute_v1_NetworksRemovePeeringRequest_descriptor = - getDescriptor().getMessageTypes().get(984); + getDescriptor().getMessageTypes().get(986); internal_static_google_cloud_compute_v1_NetworksRemovePeeringRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworksRemovePeeringRequest_descriptor, @@ -42895,7 +42984,7 @@ private static void _clinit_autosplit_dinit_2() { "Name", }); internal_static_google_cloud_compute_v1_NetworksUpdatePeeringRequest_descriptor = - getDescriptor().getMessageTypes().get(985); + getDescriptor().getMessageTypes().get(987); internal_static_google_cloud_compute_v1_NetworksUpdatePeeringRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworksUpdatePeeringRequest_descriptor, @@ -42903,7 +42992,7 @@ private static void _clinit_autosplit_dinit_2() { "NetworkPeering", }); internal_static_google_cloud_compute_v1_NodeGroup_descriptor = - getDescriptor().getMessageTypes().get(986); + getDescriptor().getMessageTypes().get(988); internal_static_google_cloud_compute_v1_NodeGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroup_descriptor, @@ -42927,7 +43016,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_NodeGroupAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(987); + getDescriptor().getMessageTypes().get(989); internal_static_google_cloud_compute_v1_NodeGroupAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroupAggregatedList_descriptor, @@ -42945,7 +43034,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_NodeGroupAutoscalingPolicy_descriptor = - getDescriptor().getMessageTypes().get(988); + getDescriptor().getMessageTypes().get(990); internal_static_google_cloud_compute_v1_NodeGroupAutoscalingPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroupAutoscalingPolicy_descriptor, @@ -42953,7 +43042,7 @@ private static void _clinit_autosplit_dinit_2() { "MaxNodes", "MinNodes", "Mode", }); internal_static_google_cloud_compute_v1_NodeGroupList_descriptor = - getDescriptor().getMessageTypes().get(989); + getDescriptor().getMessageTypes().get(991); internal_static_google_cloud_compute_v1_NodeGroupList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroupList_descriptor, @@ -42961,7 +43050,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_NodeGroupMaintenanceWindow_descriptor = - getDescriptor().getMessageTypes().get(990); + getDescriptor().getMessageTypes().get(992); internal_static_google_cloud_compute_v1_NodeGroupMaintenanceWindow_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroupMaintenanceWindow_descriptor, @@ -42969,7 +43058,7 @@ private static void _clinit_autosplit_dinit_2() { "MaintenanceDuration", "StartTime", }); internal_static_google_cloud_compute_v1_NodeGroupNode_descriptor = - getDescriptor().getMessageTypes().get(991); + getDescriptor().getMessageTypes().get(993); internal_static_google_cloud_compute_v1_NodeGroupNode_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroupNode_descriptor, @@ -42990,7 +43079,7 @@ private static void _clinit_autosplit_dinit_2() { "UpcomingMaintenance", }); internal_static_google_cloud_compute_v1_NodeGroupsAddNodesRequest_descriptor = - getDescriptor().getMessageTypes().get(992); + getDescriptor().getMessageTypes().get(994); internal_static_google_cloud_compute_v1_NodeGroupsAddNodesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroupsAddNodesRequest_descriptor, @@ -42998,7 +43087,7 @@ private static void _clinit_autosplit_dinit_2() { "AdditionalNodeCount", }); internal_static_google_cloud_compute_v1_NodeGroupsDeleteNodesRequest_descriptor = - getDescriptor().getMessageTypes().get(993); + getDescriptor().getMessageTypes().get(995); internal_static_google_cloud_compute_v1_NodeGroupsDeleteNodesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroupsDeleteNodesRequest_descriptor, @@ -43006,7 +43095,7 @@ private static void _clinit_autosplit_dinit_2() { "Nodes", }); internal_static_google_cloud_compute_v1_NodeGroupsListNodes_descriptor = - getDescriptor().getMessageTypes().get(994); + getDescriptor().getMessageTypes().get(996); internal_static_google_cloud_compute_v1_NodeGroupsListNodes_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroupsListNodes_descriptor, @@ -43014,7 +43103,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_NodeGroupsPerformMaintenanceRequest_descriptor = - getDescriptor().getMessageTypes().get(995); + getDescriptor().getMessageTypes().get(997); internal_static_google_cloud_compute_v1_NodeGroupsPerformMaintenanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroupsPerformMaintenanceRequest_descriptor, @@ -43022,7 +43111,7 @@ private static void _clinit_autosplit_dinit_2() { "Nodes", "StartTime", }); internal_static_google_cloud_compute_v1_NodeGroupsScopedList_descriptor = - getDescriptor().getMessageTypes().get(996); + getDescriptor().getMessageTypes().get(998); internal_static_google_cloud_compute_v1_NodeGroupsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroupsScopedList_descriptor, @@ -43030,7 +43119,7 @@ private static void _clinit_autosplit_dinit_2() { "NodeGroups", "Warning", }); internal_static_google_cloud_compute_v1_NodeGroupsSetNodeTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(997); + getDescriptor().getMessageTypes().get(999); internal_static_google_cloud_compute_v1_NodeGroupsSetNodeTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroupsSetNodeTemplateRequest_descriptor, @@ -43038,7 +43127,7 @@ private static void _clinit_autosplit_dinit_2() { "NodeTemplate", }); internal_static_google_cloud_compute_v1_NodeGroupsSimulateMaintenanceEventRequest_descriptor = - getDescriptor().getMessageTypes().get(998); + getDescriptor().getMessageTypes().get(1000); internal_static_google_cloud_compute_v1_NodeGroupsSimulateMaintenanceEventRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroupsSimulateMaintenanceEventRequest_descriptor, @@ -43046,7 +43135,7 @@ private static void _clinit_autosplit_dinit_2() { "Nodes", }); internal_static_google_cloud_compute_v1_NodeTemplate_descriptor = - getDescriptor().getMessageTypes().get(999); + getDescriptor().getMessageTypes().get(1001); internal_static_google_cloud_compute_v1_NodeTemplate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeTemplate_descriptor, @@ -43077,7 +43166,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_NodeTemplateAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1000); + getDescriptor().getMessageTypes().get(1002); internal_static_google_cloud_compute_v1_NodeTemplateAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeTemplateAggregatedList_descriptor, @@ -43095,7 +43184,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_NodeTemplateList_descriptor = - getDescriptor().getMessageTypes().get(1001); + getDescriptor().getMessageTypes().get(1003); internal_static_google_cloud_compute_v1_NodeTemplateList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeTemplateList_descriptor, @@ -43103,7 +43192,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_NodeTemplateNodeTypeFlexibility_descriptor = - getDescriptor().getMessageTypes().get(1002); + getDescriptor().getMessageTypes().get(1004); internal_static_google_cloud_compute_v1_NodeTemplateNodeTypeFlexibility_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeTemplateNodeTypeFlexibility_descriptor, @@ -43111,7 +43200,7 @@ private static void _clinit_autosplit_dinit_2() { "Cpus", "LocalSsd", "Memory", }); internal_static_google_cloud_compute_v1_NodeTemplatesScopedList_descriptor = - getDescriptor().getMessageTypes().get(1003); + getDescriptor().getMessageTypes().get(1005); internal_static_google_cloud_compute_v1_NodeTemplatesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeTemplatesScopedList_descriptor, @@ -43119,7 +43208,7 @@ private static void _clinit_autosplit_dinit_2() { "NodeTemplates", "Warning", }); internal_static_google_cloud_compute_v1_NodeType_descriptor = - getDescriptor().getMessageTypes().get(1004); + getDescriptor().getMessageTypes().get(1006); internal_static_google_cloud_compute_v1_NodeType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeType_descriptor, @@ -43139,7 +43228,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_NodeTypeAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1005); + getDescriptor().getMessageTypes().get(1007); internal_static_google_cloud_compute_v1_NodeTypeAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeTypeAggregatedList_descriptor, @@ -43157,7 +43246,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_NodeTypeList_descriptor = - getDescriptor().getMessageTypes().get(1006); + getDescriptor().getMessageTypes().get(1008); internal_static_google_cloud_compute_v1_NodeTypeList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeTypeList_descriptor, @@ -43165,7 +43254,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_NodeTypesScopedList_descriptor = - getDescriptor().getMessageTypes().get(1007); + getDescriptor().getMessageTypes().get(1009); internal_static_google_cloud_compute_v1_NodeTypesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeTypesScopedList_descriptor, @@ -43173,7 +43262,7 @@ private static void _clinit_autosplit_dinit_2() { "NodeTypes", "Warning", }); internal_static_google_cloud_compute_v1_NotificationEndpoint_descriptor = - getDescriptor().getMessageTypes().get(1008); + getDescriptor().getMessageTypes().get(1010); internal_static_google_cloud_compute_v1_NotificationEndpoint_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NotificationEndpoint_descriptor, @@ -43188,7 +43277,7 @@ private static void _clinit_autosplit_dinit_2() { "SelfLink", }); internal_static_google_cloud_compute_v1_NotificationEndpointGrpcSettings_descriptor = - getDescriptor().getMessageTypes().get(1009); + getDescriptor().getMessageTypes().get(1011); internal_static_google_cloud_compute_v1_NotificationEndpointGrpcSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NotificationEndpointGrpcSettings_descriptor, @@ -43196,7 +43285,7 @@ private static void _clinit_autosplit_dinit_2() { "Authority", "Endpoint", "PayloadName", "ResendInterval", "RetryDurationSec", }); internal_static_google_cloud_compute_v1_NotificationEndpointList_descriptor = - getDescriptor().getMessageTypes().get(1010); + getDescriptor().getMessageTypes().get(1012); internal_static_google_cloud_compute_v1_NotificationEndpointList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NotificationEndpointList_descriptor, @@ -43204,7 +43293,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_Operation_descriptor = - getDescriptor().getMessageTypes().get(1011); + getDescriptor().getMessageTypes().get(1013); internal_static_google_cloud_compute_v1_Operation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Operation_descriptor, @@ -43237,7 +43326,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_OperationAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1012); + getDescriptor().getMessageTypes().get(1014); internal_static_google_cloud_compute_v1_OperationAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_OperationAggregatedList_descriptor, @@ -43255,7 +43344,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_OperationList_descriptor = - getDescriptor().getMessageTypes().get(1013); + getDescriptor().getMessageTypes().get(1015); internal_static_google_cloud_compute_v1_OperationList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_OperationList_descriptor, @@ -43263,7 +43352,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_OperationsScopedList_descriptor = - getDescriptor().getMessageTypes().get(1014); + getDescriptor().getMessageTypes().get(1016); internal_static_google_cloud_compute_v1_OperationsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_OperationsScopedList_descriptor, @@ -43271,7 +43360,7 @@ private static void _clinit_autosplit_dinit_2() { "Operations", "Warning", }); internal_static_google_cloud_compute_v1_OutlierDetection_descriptor = - getDescriptor().getMessageTypes().get(1015); + getDescriptor().getMessageTypes().get(1017); internal_static_google_cloud_compute_v1_OutlierDetection_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_OutlierDetection_descriptor, @@ -43289,7 +43378,7 @@ private static void _clinit_autosplit_dinit_2() { "SuccessRateStdevFactor", }); internal_static_google_cloud_compute_v1_PacketIntervals_descriptor = - getDescriptor().getMessageTypes().get(1016); + getDescriptor().getMessageTypes().get(1018); internal_static_google_cloud_compute_v1_PacketIntervals_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PacketIntervals_descriptor, @@ -43297,7 +43386,7 @@ private static void _clinit_autosplit_dinit_2() { "AvgMs", "Duration", "MaxMs", "MinMs", "NumIntervals", "Type", }); internal_static_google_cloud_compute_v1_PacketMirroring_descriptor = - getDescriptor().getMessageTypes().get(1017); + getDescriptor().getMessageTypes().get(1019); internal_static_google_cloud_compute_v1_PacketMirroring_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PacketMirroring_descriptor, @@ -43317,7 +43406,7 @@ private static void _clinit_autosplit_dinit_2() { "SelfLink", }); internal_static_google_cloud_compute_v1_PacketMirroringAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1018); + getDescriptor().getMessageTypes().get(1020); internal_static_google_cloud_compute_v1_PacketMirroringAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PacketMirroringAggregatedList_descriptor, @@ -43335,7 +43424,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_PacketMirroringFilter_descriptor = - getDescriptor().getMessageTypes().get(1019); + getDescriptor().getMessageTypes().get(1021); internal_static_google_cloud_compute_v1_PacketMirroringFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PacketMirroringFilter_descriptor, @@ -43343,7 +43432,7 @@ private static void _clinit_autosplit_dinit_2() { "IPProtocols", "CidrRanges", "Direction", }); internal_static_google_cloud_compute_v1_PacketMirroringForwardingRuleInfo_descriptor = - getDescriptor().getMessageTypes().get(1020); + getDescriptor().getMessageTypes().get(1022); internal_static_google_cloud_compute_v1_PacketMirroringForwardingRuleInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PacketMirroringForwardingRuleInfo_descriptor, @@ -43351,7 +43440,7 @@ private static void _clinit_autosplit_dinit_2() { "CanonicalUrl", "Url", }); internal_static_google_cloud_compute_v1_PacketMirroringList_descriptor = - getDescriptor().getMessageTypes().get(1021); + getDescriptor().getMessageTypes().get(1023); internal_static_google_cloud_compute_v1_PacketMirroringList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PacketMirroringList_descriptor, @@ -43359,7 +43448,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_PacketMirroringMirroredResourceInfo_descriptor = - getDescriptor().getMessageTypes().get(1022); + getDescriptor().getMessageTypes().get(1024); internal_static_google_cloud_compute_v1_PacketMirroringMirroredResourceInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PacketMirroringMirroredResourceInfo_descriptor, @@ -43367,7 +43456,7 @@ private static void _clinit_autosplit_dinit_2() { "Instances", "Subnetworks", "Tags", }); internal_static_google_cloud_compute_v1_PacketMirroringMirroredResourceInfoInstanceInfo_descriptor = - getDescriptor().getMessageTypes().get(1023); + getDescriptor().getMessageTypes().get(1025); internal_static_google_cloud_compute_v1_PacketMirroringMirroredResourceInfoInstanceInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PacketMirroringMirroredResourceInfoInstanceInfo_descriptor, @@ -43375,7 +43464,7 @@ private static void _clinit_autosplit_dinit_2() { "CanonicalUrl", "Url", }); internal_static_google_cloud_compute_v1_PacketMirroringMirroredResourceInfoSubnetInfo_descriptor = - getDescriptor().getMessageTypes().get(1024); + getDescriptor().getMessageTypes().get(1026); internal_static_google_cloud_compute_v1_PacketMirroringMirroredResourceInfoSubnetInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PacketMirroringMirroredResourceInfoSubnetInfo_descriptor, @@ -43383,7 +43472,7 @@ private static void _clinit_autosplit_dinit_2() { "CanonicalUrl", "Url", }); internal_static_google_cloud_compute_v1_PacketMirroringNetworkInfo_descriptor = - getDescriptor().getMessageTypes().get(1025); + getDescriptor().getMessageTypes().get(1027); internal_static_google_cloud_compute_v1_PacketMirroringNetworkInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PacketMirroringNetworkInfo_descriptor, @@ -43391,7 +43480,7 @@ private static void _clinit_autosplit_dinit_2() { "CanonicalUrl", "Url", }); internal_static_google_cloud_compute_v1_PacketMirroringsScopedList_descriptor = - getDescriptor().getMessageTypes().get(1026); + getDescriptor().getMessageTypes().get(1028); internal_static_google_cloud_compute_v1_PacketMirroringsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PacketMirroringsScopedList_descriptor, @@ -43399,7 +43488,7 @@ private static void _clinit_autosplit_dinit_2() { "PacketMirrorings", "Warning", }); internal_static_google_cloud_compute_v1_PatchAutoscalerRequest_descriptor = - getDescriptor().getMessageTypes().get(1027); + getDescriptor().getMessageTypes().get(1029); internal_static_google_cloud_compute_v1_PatchAutoscalerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchAutoscalerRequest_descriptor, @@ -43407,7 +43496,7 @@ private static void _clinit_autosplit_dinit_2() { "Autoscaler", "AutoscalerResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_PatchBackendBucketRequest_descriptor = - getDescriptor().getMessageTypes().get(1028); + getDescriptor().getMessageTypes().get(1030); internal_static_google_cloud_compute_v1_PatchBackendBucketRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchBackendBucketRequest_descriptor, @@ -43415,7 +43504,7 @@ private static void _clinit_autosplit_dinit_2() { "BackendBucket", "BackendBucketResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_PatchBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1029); + getDescriptor().getMessageTypes().get(1031); internal_static_google_cloud_compute_v1_PatchBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchBackendServiceRequest_descriptor, @@ -43423,7 +43512,7 @@ private static void _clinit_autosplit_dinit_2() { "BackendService", "BackendServiceResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_PatchFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1030); + getDescriptor().getMessageTypes().get(1032); internal_static_google_cloud_compute_v1_PatchFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchFirewallPolicyRequest_descriptor, @@ -43431,7 +43520,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicy", "FirewallPolicyResource", "RequestId", }); internal_static_google_cloud_compute_v1_PatchFirewallRequest_descriptor = - getDescriptor().getMessageTypes().get(1031); + getDescriptor().getMessageTypes().get(1033); internal_static_google_cloud_compute_v1_PatchFirewallRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchFirewallRequest_descriptor, @@ -43439,7 +43528,7 @@ private static void _clinit_autosplit_dinit_2() { "Firewall", "FirewallResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_PatchForwardingRuleRequest_descriptor = - getDescriptor().getMessageTypes().get(1032); + getDescriptor().getMessageTypes().get(1034); internal_static_google_cloud_compute_v1_PatchForwardingRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchForwardingRuleRequest_descriptor, @@ -43447,7 +43536,7 @@ private static void _clinit_autosplit_dinit_2() { "ForwardingRule", "ForwardingRuleResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_PatchGlobalForwardingRuleRequest_descriptor = - getDescriptor().getMessageTypes().get(1033); + getDescriptor().getMessageTypes().get(1035); internal_static_google_cloud_compute_v1_PatchGlobalForwardingRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchGlobalForwardingRuleRequest_descriptor, @@ -43455,7 +43544,7 @@ private static void _clinit_autosplit_dinit_2() { "ForwardingRule", "ForwardingRuleResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_PatchGlobalPublicDelegatedPrefixeRequest_descriptor = - getDescriptor().getMessageTypes().get(1034); + getDescriptor().getMessageTypes().get(1036); internal_static_google_cloud_compute_v1_PatchGlobalPublicDelegatedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchGlobalPublicDelegatedPrefixeRequest_descriptor, @@ -43463,7 +43552,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "PublicDelegatedPrefix", "PublicDelegatedPrefixResource", "RequestId", }); internal_static_google_cloud_compute_v1_PatchHealthCheckRequest_descriptor = - getDescriptor().getMessageTypes().get(1035); + getDescriptor().getMessageTypes().get(1037); internal_static_google_cloud_compute_v1_PatchHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchHealthCheckRequest_descriptor, @@ -43471,7 +43560,7 @@ private static void _clinit_autosplit_dinit_2() { "HealthCheck", "HealthCheckResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_PatchImageRequest_descriptor = - getDescriptor().getMessageTypes().get(1036); + getDescriptor().getMessageTypes().get(1038); internal_static_google_cloud_compute_v1_PatchImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchImageRequest_descriptor, @@ -43479,7 +43568,7 @@ private static void _clinit_autosplit_dinit_2() { "Image", "ImageResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_PatchInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1037); + getDescriptor().getMessageTypes().get(1039); internal_static_google_cloud_compute_v1_PatchInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchInstanceGroupManagerRequest_descriptor, @@ -43491,7 +43580,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_PatchInstanceSettingRequest_descriptor = - getDescriptor().getMessageTypes().get(1038); + getDescriptor().getMessageTypes().get(1040); internal_static_google_cloud_compute_v1_PatchInstanceSettingRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchInstanceSettingRequest_descriptor, @@ -43499,7 +43588,7 @@ private static void _clinit_autosplit_dinit_2() { "InstanceSettingsResource", "Project", "RequestId", "UpdateMask", "Zone", }); internal_static_google_cloud_compute_v1_PatchInterconnectAttachmentGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(1039); + getDescriptor().getMessageTypes().get(1041); internal_static_google_cloud_compute_v1_PatchInterconnectAttachmentGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchInterconnectAttachmentGroupRequest_descriptor, @@ -43511,7 +43600,7 @@ private static void _clinit_autosplit_dinit_2() { "UpdateMask", }); internal_static_google_cloud_compute_v1_PatchInterconnectAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(1040); + getDescriptor().getMessageTypes().get(1042); internal_static_google_cloud_compute_v1_PatchInterconnectAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchInterconnectAttachmentRequest_descriptor, @@ -43523,7 +43612,7 @@ private static void _clinit_autosplit_dinit_2() { "RequestId", }); internal_static_google_cloud_compute_v1_PatchInterconnectGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(1041); + getDescriptor().getMessageTypes().get(1043); internal_static_google_cloud_compute_v1_PatchInterconnectGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchInterconnectGroupRequest_descriptor, @@ -43535,7 +43624,7 @@ private static void _clinit_autosplit_dinit_2() { "UpdateMask", }); internal_static_google_cloud_compute_v1_PatchInterconnectRequest_descriptor = - getDescriptor().getMessageTypes().get(1042); + getDescriptor().getMessageTypes().get(1044); internal_static_google_cloud_compute_v1_PatchInterconnectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchInterconnectRequest_descriptor, @@ -43543,7 +43632,7 @@ private static void _clinit_autosplit_dinit_2() { "Interconnect", "InterconnectResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_PatchNetworkAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(1043); + getDescriptor().getMessageTypes().get(1045); internal_static_google_cloud_compute_v1_PatchNetworkAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchNetworkAttachmentRequest_descriptor, @@ -43551,7 +43640,7 @@ private static void _clinit_autosplit_dinit_2() { "NetworkAttachment", "NetworkAttachmentResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_PatchNetworkEdgeSecurityServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1044); + getDescriptor().getMessageTypes().get(1046); internal_static_google_cloud_compute_v1_PatchNetworkEdgeSecurityServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchNetworkEdgeSecurityServiceRequest_descriptor, @@ -43565,7 +43654,7 @@ private static void _clinit_autosplit_dinit_2() { "UpdateMask", }); internal_static_google_cloud_compute_v1_PatchNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1045); + getDescriptor().getMessageTypes().get(1047); internal_static_google_cloud_compute_v1_PatchNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchNetworkFirewallPolicyRequest_descriptor, @@ -43573,7 +43662,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicy", "FirewallPolicyResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_PatchNetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(1046); + getDescriptor().getMessageTypes().get(1048); internal_static_google_cloud_compute_v1_PatchNetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchNetworkRequest_descriptor, @@ -43581,7 +43670,7 @@ private static void _clinit_autosplit_dinit_2() { "Network", "NetworkResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_PatchNodeGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(1047); + getDescriptor().getMessageTypes().get(1049); internal_static_google_cloud_compute_v1_PatchNodeGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchNodeGroupRequest_descriptor, @@ -43589,7 +43678,7 @@ private static void _clinit_autosplit_dinit_2() { "NodeGroup", "NodeGroupResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_PatchPacketMirroringRequest_descriptor = - getDescriptor().getMessageTypes().get(1048); + getDescriptor().getMessageTypes().get(1050); internal_static_google_cloud_compute_v1_PatchPacketMirroringRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchPacketMirroringRequest_descriptor, @@ -43597,7 +43686,7 @@ private static void _clinit_autosplit_dinit_2() { "PacketMirroring", "PacketMirroringResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_PatchPacketMirroringRuleNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1049); + getDescriptor().getMessageTypes().get(1051); internal_static_google_cloud_compute_v1_PatchPacketMirroringRuleNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchPacketMirroringRuleNetworkFirewallPolicyRequest_descriptor, @@ -43605,7 +43694,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicy", "FirewallPolicyRuleResource", "Priority", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_PatchPerInstanceConfigsInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1050); + getDescriptor().getMessageTypes().get(1052); internal_static_google_cloud_compute_v1_PatchPerInstanceConfigsInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchPerInstanceConfigsInstanceGroupManagerRequest_descriptor, @@ -43617,7 +43706,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_PatchPerInstanceConfigsRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1051); + getDescriptor().getMessageTypes().get(1053); internal_static_google_cloud_compute_v1_PatchPerInstanceConfigsRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchPerInstanceConfigsRegionInstanceGroupManagerRequest_descriptor, @@ -43629,7 +43718,7 @@ private static void _clinit_autosplit_dinit_2() { "RequestId", }); internal_static_google_cloud_compute_v1_PatchPublicAdvertisedPrefixeRequest_descriptor = - getDescriptor().getMessageTypes().get(1052); + getDescriptor().getMessageTypes().get(1054); internal_static_google_cloud_compute_v1_PatchPublicAdvertisedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchPublicAdvertisedPrefixeRequest_descriptor, @@ -43637,7 +43726,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "PublicAdvertisedPrefix", "PublicAdvertisedPrefixResource", "RequestId", }); internal_static_google_cloud_compute_v1_PatchPublicDelegatedPrefixeRequest_descriptor = - getDescriptor().getMessageTypes().get(1053); + getDescriptor().getMessageTypes().get(1055); internal_static_google_cloud_compute_v1_PatchPublicDelegatedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchPublicDelegatedPrefixeRequest_descriptor, @@ -43649,7 +43738,7 @@ private static void _clinit_autosplit_dinit_2() { "RequestId", }); internal_static_google_cloud_compute_v1_PatchRegionAutoscalerRequest_descriptor = - getDescriptor().getMessageTypes().get(1054); + getDescriptor().getMessageTypes().get(1056); internal_static_google_cloud_compute_v1_PatchRegionAutoscalerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRegionAutoscalerRequest_descriptor, @@ -43657,7 +43746,7 @@ private static void _clinit_autosplit_dinit_2() { "Autoscaler", "AutoscalerResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_PatchRegionBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1055); + getDescriptor().getMessageTypes().get(1057); internal_static_google_cloud_compute_v1_PatchRegionBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRegionBackendServiceRequest_descriptor, @@ -43665,7 +43754,7 @@ private static void _clinit_autosplit_dinit_2() { "BackendService", "BackendServiceResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_PatchRegionHealthCheckRequest_descriptor = - getDescriptor().getMessageTypes().get(1056); + getDescriptor().getMessageTypes().get(1058); internal_static_google_cloud_compute_v1_PatchRegionHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRegionHealthCheckRequest_descriptor, @@ -43673,7 +43762,7 @@ private static void _clinit_autosplit_dinit_2() { "HealthCheck", "HealthCheckResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_PatchRegionHealthCheckServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1057); + getDescriptor().getMessageTypes().get(1059); internal_static_google_cloud_compute_v1_PatchRegionHealthCheckServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRegionHealthCheckServiceRequest_descriptor, @@ -43681,7 +43770,7 @@ private static void _clinit_autosplit_dinit_2() { "HealthCheckService", "HealthCheckServiceResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_PatchRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1058); + getDescriptor().getMessageTypes().get(1060); internal_static_google_cloud_compute_v1_PatchRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRegionInstanceGroupManagerRequest_descriptor, @@ -43693,7 +43782,7 @@ private static void _clinit_autosplit_dinit_2() { "RequestId", }); internal_static_google_cloud_compute_v1_PatchRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1059); + getDescriptor().getMessageTypes().get(1061); internal_static_google_cloud_compute_v1_PatchRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRegionNetworkFirewallPolicyRequest_descriptor, @@ -43701,7 +43790,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicy", "FirewallPolicyResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_PatchRegionSecurityPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1060); + getDescriptor().getMessageTypes().get(1062); internal_static_google_cloud_compute_v1_PatchRegionSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRegionSecurityPolicyRequest_descriptor, @@ -43714,7 +43803,7 @@ private static void _clinit_autosplit_dinit_2() { "UpdateMask", }); internal_static_google_cloud_compute_v1_PatchRegionSslPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1061); + getDescriptor().getMessageTypes().get(1063); internal_static_google_cloud_compute_v1_PatchRegionSslPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRegionSslPolicyRequest_descriptor, @@ -43722,7 +43811,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RequestId", "SslPolicy", "SslPolicyResource", }); internal_static_google_cloud_compute_v1_PatchRegionTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1062); + getDescriptor().getMessageTypes().get(1064); internal_static_google_cloud_compute_v1_PatchRegionTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRegionTargetHttpsProxyRequest_descriptor, @@ -43730,7 +43819,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RequestId", "TargetHttpsProxy", "TargetHttpsProxyResource", }); internal_static_google_cloud_compute_v1_PatchRegionUrlMapRequest_descriptor = - getDescriptor().getMessageTypes().get(1063); + getDescriptor().getMessageTypes().get(1065); internal_static_google_cloud_compute_v1_PatchRegionUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRegionUrlMapRequest_descriptor, @@ -43738,7 +43827,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RequestId", "UrlMap", "UrlMapResource", }); internal_static_google_cloud_compute_v1_PatchResourcePolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1064); + getDescriptor().getMessageTypes().get(1066); internal_static_google_cloud_compute_v1_PatchResourcePolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchResourcePolicyRequest_descriptor, @@ -43751,7 +43840,7 @@ private static void _clinit_autosplit_dinit_2() { "UpdateMask", }); internal_static_google_cloud_compute_v1_PatchRoutePolicyRouterRequest_descriptor = - getDescriptor().getMessageTypes().get(1065); + getDescriptor().getMessageTypes().get(1067); internal_static_google_cloud_compute_v1_PatchRoutePolicyRouterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRoutePolicyRouterRequest_descriptor, @@ -43759,7 +43848,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RequestId", "RoutePolicyResource", "Router", }); internal_static_google_cloud_compute_v1_PatchRouterRequest_descriptor = - getDescriptor().getMessageTypes().get(1066); + getDescriptor().getMessageTypes().get(1068); internal_static_google_cloud_compute_v1_PatchRouterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRouterRequest_descriptor, @@ -43767,7 +43856,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RequestId", "Router", "RouterResource", }); internal_static_google_cloud_compute_v1_PatchRuleFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1067); + getDescriptor().getMessageTypes().get(1069); internal_static_google_cloud_compute_v1_PatchRuleFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRuleFirewallPolicyRequest_descriptor, @@ -43775,7 +43864,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicy", "FirewallPolicyRuleResource", "Priority", "RequestId", }); internal_static_google_cloud_compute_v1_PatchRuleNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1068); + getDescriptor().getMessageTypes().get(1070); internal_static_google_cloud_compute_v1_PatchRuleNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRuleNetworkFirewallPolicyRequest_descriptor, @@ -43783,7 +43872,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicy", "FirewallPolicyRuleResource", "Priority", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_PatchRuleRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1069); + getDescriptor().getMessageTypes().get(1071); internal_static_google_cloud_compute_v1_PatchRuleRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRuleRegionNetworkFirewallPolicyRequest_descriptor, @@ -43796,7 +43885,7 @@ private static void _clinit_autosplit_dinit_2() { "RequestId", }); internal_static_google_cloud_compute_v1_PatchRuleRegionSecurityPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1070); + getDescriptor().getMessageTypes().get(1072); internal_static_google_cloud_compute_v1_PatchRuleRegionSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRuleRegionSecurityPolicyRequest_descriptor, @@ -43810,7 +43899,7 @@ private static void _clinit_autosplit_dinit_2() { "ValidateOnly", }); internal_static_google_cloud_compute_v1_PatchRuleSecurityPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1071); + getDescriptor().getMessageTypes().get(1073); internal_static_google_cloud_compute_v1_PatchRuleSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRuleSecurityPolicyRequest_descriptor, @@ -43823,7 +43912,7 @@ private static void _clinit_autosplit_dinit_2() { "ValidateOnly", }); internal_static_google_cloud_compute_v1_PatchSecurityPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1072); + getDescriptor().getMessageTypes().get(1074); internal_static_google_cloud_compute_v1_PatchSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchSecurityPolicyRequest_descriptor, @@ -43831,7 +43920,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "RequestId", "SecurityPolicy", "SecurityPolicyResource", "UpdateMask", }); internal_static_google_cloud_compute_v1_PatchServiceAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(1073); + getDescriptor().getMessageTypes().get(1075); internal_static_google_cloud_compute_v1_PatchServiceAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchServiceAttachmentRequest_descriptor, @@ -43839,7 +43928,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RequestId", "ServiceAttachment", "ServiceAttachmentResource", }); internal_static_google_cloud_compute_v1_PatchSnapshotSettingRequest_descriptor = - getDescriptor().getMessageTypes().get(1074); + getDescriptor().getMessageTypes().get(1076); internal_static_google_cloud_compute_v1_PatchSnapshotSettingRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchSnapshotSettingRequest_descriptor, @@ -43847,7 +43936,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "RequestId", "SnapshotSettingsResource", "UpdateMask", }); internal_static_google_cloud_compute_v1_PatchSslPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1075); + getDescriptor().getMessageTypes().get(1077); internal_static_google_cloud_compute_v1_PatchSslPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchSslPolicyRequest_descriptor, @@ -43855,7 +43944,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "RequestId", "SslPolicy", "SslPolicyResource", }); internal_static_google_cloud_compute_v1_PatchSubnetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(1076); + getDescriptor().getMessageTypes().get(1078); internal_static_google_cloud_compute_v1_PatchSubnetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchSubnetworkRequest_descriptor, @@ -43868,7 +43957,7 @@ private static void _clinit_autosplit_dinit_2() { "SubnetworkResource", }); internal_static_google_cloud_compute_v1_PatchTargetGrpcProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1077); + getDescriptor().getMessageTypes().get(1079); internal_static_google_cloud_compute_v1_PatchTargetGrpcProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchTargetGrpcProxyRequest_descriptor, @@ -43876,7 +43965,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "RequestId", "TargetGrpcProxy", "TargetGrpcProxyResource", }); internal_static_google_cloud_compute_v1_PatchTargetHttpProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1078); + getDescriptor().getMessageTypes().get(1080); internal_static_google_cloud_compute_v1_PatchTargetHttpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchTargetHttpProxyRequest_descriptor, @@ -43884,7 +43973,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "RequestId", "TargetHttpProxy", "TargetHttpProxyResource", }); internal_static_google_cloud_compute_v1_PatchTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1079); + getDescriptor().getMessageTypes().get(1081); internal_static_google_cloud_compute_v1_PatchTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchTargetHttpsProxyRequest_descriptor, @@ -43892,7 +43981,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "RequestId", "TargetHttpsProxy", "TargetHttpsProxyResource", }); internal_static_google_cloud_compute_v1_PatchUrlMapRequest_descriptor = - getDescriptor().getMessageTypes().get(1080); + getDescriptor().getMessageTypes().get(1082); internal_static_google_cloud_compute_v1_PatchUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchUrlMapRequest_descriptor, @@ -43900,7 +43989,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "RequestId", "UrlMap", "UrlMapResource", }); internal_static_google_cloud_compute_v1_PathMatcher_descriptor = - getDescriptor().getMessageTypes().get(1081); + getDescriptor().getMessageTypes().get(1083); internal_static_google_cloud_compute_v1_PathMatcher_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PathMatcher_descriptor, @@ -43916,7 +44005,7 @@ private static void _clinit_autosplit_dinit_2() { "RouteRules", }); internal_static_google_cloud_compute_v1_PathRule_descriptor = - getDescriptor().getMessageTypes().get(1082); + getDescriptor().getMessageTypes().get(1084); internal_static_google_cloud_compute_v1_PathRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PathRule_descriptor, @@ -43924,7 +44013,7 @@ private static void _clinit_autosplit_dinit_2() { "CustomErrorResponsePolicy", "Paths", "RouteAction", "Service", "UrlRedirect", }); internal_static_google_cloud_compute_v1_PerInstanceConfig_descriptor = - getDescriptor().getMessageTypes().get(1083); + getDescriptor().getMessageTypes().get(1085); internal_static_google_cloud_compute_v1_PerInstanceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PerInstanceConfig_descriptor, @@ -43932,7 +44021,7 @@ private static void _clinit_autosplit_dinit_2() { "Fingerprint", "Name", "PreservedState", "Status", }); internal_static_google_cloud_compute_v1_PerformMaintenanceInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1084); + getDescriptor().getMessageTypes().get(1086); internal_static_google_cloud_compute_v1_PerformMaintenanceInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PerformMaintenanceInstanceRequest_descriptor, @@ -43940,7 +44029,7 @@ private static void _clinit_autosplit_dinit_2() { "Instance", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_PerformMaintenanceNodeGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(1085); + getDescriptor().getMessageTypes().get(1087); internal_static_google_cloud_compute_v1_PerformMaintenanceNodeGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PerformMaintenanceNodeGroupRequest_descriptor, @@ -43952,7 +44041,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_PerformMaintenanceReservationBlockRequest_descriptor = - getDescriptor().getMessageTypes().get(1086); + getDescriptor().getMessageTypes().get(1088); internal_static_google_cloud_compute_v1_PerformMaintenanceReservationBlockRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PerformMaintenanceReservationBlockRequest_descriptor, @@ -43965,7 +44054,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_PerformMaintenanceReservationRequest_descriptor = - getDescriptor().getMessageTypes().get(1087); + getDescriptor().getMessageTypes().get(1089); internal_static_google_cloud_compute_v1_PerformMaintenanceReservationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PerformMaintenanceReservationRequest_descriptor, @@ -43976,8 +44065,16 @@ private static void _clinit_autosplit_dinit_2() { "ReservationsPerformMaintenanceRequestResource", "Zone", }); + internal_static_google_cloud_compute_v1_PerformMaintenanceReservationSubBlockRequest_descriptor = + getDescriptor().getMessageTypes().get(1090); + internal_static_google_cloud_compute_v1_PerformMaintenanceReservationSubBlockRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_compute_v1_PerformMaintenanceReservationSubBlockRequest_descriptor, + new java.lang.String[] { + "ParentName", "Project", "RequestId", "ReservationSubBlock", "Zone", + }); internal_static_google_cloud_compute_v1_Policy_descriptor = - getDescriptor().getMessageTypes().get(1088); + getDescriptor().getMessageTypes().get(1091); internal_static_google_cloud_compute_v1_Policy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Policy_descriptor, @@ -43985,7 +44082,7 @@ private static void _clinit_autosplit_dinit_2() { "AuditConfigs", "Bindings", "Etag", "IamOwned", "Version", }); internal_static_google_cloud_compute_v1_PreconfiguredWafSet_descriptor = - getDescriptor().getMessageTypes().get(1089); + getDescriptor().getMessageTypes().get(1092); internal_static_google_cloud_compute_v1_PreconfiguredWafSet_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PreconfiguredWafSet_descriptor, @@ -43993,7 +44090,7 @@ private static void _clinit_autosplit_dinit_2() { "ExpressionSets", }); internal_static_google_cloud_compute_v1_PreservedState_descriptor = - getDescriptor().getMessageTypes().get(1090); + getDescriptor().getMessageTypes().get(1093); internal_static_google_cloud_compute_v1_PreservedState_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PreservedState_descriptor, @@ -44033,7 +44130,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_PreservedStatePreservedDisk_descriptor = - getDescriptor().getMessageTypes().get(1091); + getDescriptor().getMessageTypes().get(1094); internal_static_google_cloud_compute_v1_PreservedStatePreservedDisk_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PreservedStatePreservedDisk_descriptor, @@ -44041,7 +44138,7 @@ private static void _clinit_autosplit_dinit_2() { "AutoDelete", "Mode", "Source", }); internal_static_google_cloud_compute_v1_PreservedStatePreservedNetworkIp_descriptor = - getDescriptor().getMessageTypes().get(1092); + getDescriptor().getMessageTypes().get(1095); internal_static_google_cloud_compute_v1_PreservedStatePreservedNetworkIp_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PreservedStatePreservedNetworkIp_descriptor, @@ -44049,7 +44146,7 @@ private static void _clinit_autosplit_dinit_2() { "AutoDelete", "IpAddress", }); internal_static_google_cloud_compute_v1_PreservedStatePreservedNetworkIpIpAddress_descriptor = - getDescriptor().getMessageTypes().get(1093); + getDescriptor().getMessageTypes().get(1096); internal_static_google_cloud_compute_v1_PreservedStatePreservedNetworkIpIpAddress_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PreservedStatePreservedNetworkIpIpAddress_descriptor, @@ -44057,7 +44154,7 @@ private static void _clinit_autosplit_dinit_2() { "Address", "Literal", }); internal_static_google_cloud_compute_v1_PreviewRouterRequest_descriptor = - getDescriptor().getMessageTypes().get(1094); + getDescriptor().getMessageTypes().get(1097); internal_static_google_cloud_compute_v1_PreviewRouterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PreviewRouterRequest_descriptor, @@ -44065,7 +44162,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "Router", "RouterResource", }); internal_static_google_cloud_compute_v1_Project_descriptor = - getDescriptor().getMessageTypes().get(1095); + getDescriptor().getMessageTypes().get(1098); internal_static_google_cloud_compute_v1_Project_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Project_descriptor, @@ -44087,7 +44184,7 @@ private static void _clinit_autosplit_dinit_2() { "XpnProjectStatus", }); internal_static_google_cloud_compute_v1_ProjectsDisableXpnResourceRequest_descriptor = - getDescriptor().getMessageTypes().get(1096); + getDescriptor().getMessageTypes().get(1099); internal_static_google_cloud_compute_v1_ProjectsDisableXpnResourceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ProjectsDisableXpnResourceRequest_descriptor, @@ -44095,7 +44192,7 @@ private static void _clinit_autosplit_dinit_2() { "XpnResource", }); internal_static_google_cloud_compute_v1_ProjectsEnableXpnResourceRequest_descriptor = - getDescriptor().getMessageTypes().get(1097); + getDescriptor().getMessageTypes().get(1100); internal_static_google_cloud_compute_v1_ProjectsEnableXpnResourceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ProjectsEnableXpnResourceRequest_descriptor, @@ -44103,7 +44200,7 @@ private static void _clinit_autosplit_dinit_2() { "XpnResource", }); internal_static_google_cloud_compute_v1_ProjectsGetXpnResources_descriptor = - getDescriptor().getMessageTypes().get(1098); + getDescriptor().getMessageTypes().get(1101); internal_static_google_cloud_compute_v1_ProjectsGetXpnResources_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ProjectsGetXpnResources_descriptor, @@ -44111,7 +44208,7 @@ private static void _clinit_autosplit_dinit_2() { "Kind", "NextPageToken", "Resources", }); internal_static_google_cloud_compute_v1_ProjectsListXpnHostsRequest_descriptor = - getDescriptor().getMessageTypes().get(1099); + getDescriptor().getMessageTypes().get(1102); internal_static_google_cloud_compute_v1_ProjectsListXpnHostsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ProjectsListXpnHostsRequest_descriptor, @@ -44119,7 +44216,7 @@ private static void _clinit_autosplit_dinit_2() { "Organization", }); internal_static_google_cloud_compute_v1_ProjectsSetCloudArmorTierRequest_descriptor = - getDescriptor().getMessageTypes().get(1100); + getDescriptor().getMessageTypes().get(1103); internal_static_google_cloud_compute_v1_ProjectsSetCloudArmorTierRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ProjectsSetCloudArmorTierRequest_descriptor, @@ -44127,7 +44224,7 @@ private static void _clinit_autosplit_dinit_2() { "CloudArmorTier", }); internal_static_google_cloud_compute_v1_ProjectsSetDefaultNetworkTierRequest_descriptor = - getDescriptor().getMessageTypes().get(1101); + getDescriptor().getMessageTypes().get(1104); internal_static_google_cloud_compute_v1_ProjectsSetDefaultNetworkTierRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ProjectsSetDefaultNetworkTierRequest_descriptor, @@ -44135,7 +44232,7 @@ private static void _clinit_autosplit_dinit_2() { "NetworkTier", }); internal_static_google_cloud_compute_v1_PublicAdvertisedPrefix_descriptor = - getDescriptor().getMessageTypes().get(1102); + getDescriptor().getMessageTypes().get(1105); internal_static_google_cloud_compute_v1_PublicAdvertisedPrefix_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PublicAdvertisedPrefix_descriptor, @@ -44156,7 +44253,7 @@ private static void _clinit_autosplit_dinit_2() { "Status", }); internal_static_google_cloud_compute_v1_PublicAdvertisedPrefixList_descriptor = - getDescriptor().getMessageTypes().get(1103); + getDescriptor().getMessageTypes().get(1106); internal_static_google_cloud_compute_v1_PublicAdvertisedPrefixList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PublicAdvertisedPrefixList_descriptor, @@ -44164,7 +44261,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_PublicAdvertisedPrefixPublicDelegatedPrefix_descriptor = - getDescriptor().getMessageTypes().get(1104); + getDescriptor().getMessageTypes().get(1107); internal_static_google_cloud_compute_v1_PublicAdvertisedPrefixPublicDelegatedPrefix_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PublicAdvertisedPrefixPublicDelegatedPrefix_descriptor, @@ -44172,7 +44269,7 @@ private static void _clinit_autosplit_dinit_2() { "IpRange", "Name", "Project", "Region", "Status", }); internal_static_google_cloud_compute_v1_PublicDelegatedPrefix_descriptor = - getDescriptor().getMessageTypes().get(1105); + getDescriptor().getMessageTypes().get(1108); internal_static_google_cloud_compute_v1_PublicDelegatedPrefix_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PublicDelegatedPrefix_descriptor, @@ -44195,7 +44292,7 @@ private static void _clinit_autosplit_dinit_2() { "Status", }); internal_static_google_cloud_compute_v1_PublicDelegatedPrefixAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1106); + getDescriptor().getMessageTypes().get(1109); internal_static_google_cloud_compute_v1_PublicDelegatedPrefixAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PublicDelegatedPrefixAggregatedList_descriptor, @@ -44213,7 +44310,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_PublicDelegatedPrefixList_descriptor = - getDescriptor().getMessageTypes().get(1107); + getDescriptor().getMessageTypes().get(1110); internal_static_google_cloud_compute_v1_PublicDelegatedPrefixList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PublicDelegatedPrefixList_descriptor, @@ -44221,7 +44318,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_PublicDelegatedPrefixPublicDelegatedSubPrefix_descriptor = - getDescriptor().getMessageTypes().get(1108); + getDescriptor().getMessageTypes().get(1111); internal_static_google_cloud_compute_v1_PublicDelegatedPrefixPublicDelegatedSubPrefix_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PublicDelegatedPrefixPublicDelegatedSubPrefix_descriptor, @@ -44237,7 +44334,7 @@ private static void _clinit_autosplit_dinit_2() { "Status", }); internal_static_google_cloud_compute_v1_PublicDelegatedPrefixesScopedList_descriptor = - getDescriptor().getMessageTypes().get(1109); + getDescriptor().getMessageTypes().get(1112); internal_static_google_cloud_compute_v1_PublicDelegatedPrefixesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PublicDelegatedPrefixesScopedList_descriptor, @@ -44245,7 +44342,7 @@ private static void _clinit_autosplit_dinit_2() { "PublicDelegatedPrefixes", "Warning", }); internal_static_google_cloud_compute_v1_Quota_descriptor = - getDescriptor().getMessageTypes().get(1110); + getDescriptor().getMessageTypes().get(1113); internal_static_google_cloud_compute_v1_Quota_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Quota_descriptor, @@ -44253,7 +44350,7 @@ private static void _clinit_autosplit_dinit_2() { "Limit", "Metric", "Owner", "Usage", }); internal_static_google_cloud_compute_v1_QuotaExceededInfo_descriptor = - getDescriptor().getMessageTypes().get(1111); + getDescriptor().getMessageTypes().get(1114); internal_static_google_cloud_compute_v1_QuotaExceededInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_QuotaExceededInfo_descriptor, @@ -44271,7 +44368,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_QuotaStatusWarning_descriptor = - getDescriptor().getMessageTypes().get(1112); + getDescriptor().getMessageTypes().get(1115); internal_static_google_cloud_compute_v1_QuotaStatusWarning_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_QuotaStatusWarning_descriptor, @@ -44279,7 +44376,7 @@ private static void _clinit_autosplit_dinit_2() { "Code", "Data", "Message", }); internal_static_google_cloud_compute_v1_RawDisk_descriptor = - getDescriptor().getMessageTypes().get(1113); + getDescriptor().getMessageTypes().get(1116); internal_static_google_cloud_compute_v1_RawDisk_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RawDisk_descriptor, @@ -44287,7 +44384,7 @@ private static void _clinit_autosplit_dinit_2() { "ContainerType", "Sha1Checksum", "Source", }); internal_static_google_cloud_compute_v1_RecreateInstancesInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1114); + getDescriptor().getMessageTypes().get(1117); internal_static_google_cloud_compute_v1_RecreateInstancesInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RecreateInstancesInstanceGroupManagerRequest_descriptor, @@ -44299,7 +44396,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_RecreateInstancesRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1115); + getDescriptor().getMessageTypes().get(1118); internal_static_google_cloud_compute_v1_RecreateInstancesRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RecreateInstancesRegionInstanceGroupManagerRequest_descriptor, @@ -44311,7 +44408,7 @@ private static void _clinit_autosplit_dinit_2() { "RequestId", }); internal_static_google_cloud_compute_v1_Reference_descriptor = - getDescriptor().getMessageTypes().get(1116); + getDescriptor().getMessageTypes().get(1119); internal_static_google_cloud_compute_v1_Reference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Reference_descriptor, @@ -44319,7 +44416,7 @@ private static void _clinit_autosplit_dinit_2() { "Kind", "ReferenceType", "Referrer", "Target", }); internal_static_google_cloud_compute_v1_Region_descriptor = - getDescriptor().getMessageTypes().get(1117); + getDescriptor().getMessageTypes().get(1120); internal_static_google_cloud_compute_v1_Region_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Region_descriptor, @@ -44338,7 +44435,7 @@ private static void _clinit_autosplit_dinit_2() { "Zones", }); internal_static_google_cloud_compute_v1_RegionAddressesMoveRequest_descriptor = - getDescriptor().getMessageTypes().get(1118); + getDescriptor().getMessageTypes().get(1121); internal_static_google_cloud_compute_v1_RegionAddressesMoveRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionAddressesMoveRequest_descriptor, @@ -44346,7 +44443,7 @@ private static void _clinit_autosplit_dinit_2() { "Description", "DestinationAddress", }); internal_static_google_cloud_compute_v1_RegionAutoscalerList_descriptor = - getDescriptor().getMessageTypes().get(1119); + getDescriptor().getMessageTypes().get(1122); internal_static_google_cloud_compute_v1_RegionAutoscalerList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionAutoscalerList_descriptor, @@ -44354,7 +44451,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_RegionDiskTypeList_descriptor = - getDescriptor().getMessageTypes().get(1120); + getDescriptor().getMessageTypes().get(1123); internal_static_google_cloud_compute_v1_RegionDiskTypeList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionDiskTypeList_descriptor, @@ -44362,7 +44459,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_RegionDisksAddResourcePoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(1121); + getDescriptor().getMessageTypes().get(1124); internal_static_google_cloud_compute_v1_RegionDisksAddResourcePoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionDisksAddResourcePoliciesRequest_descriptor, @@ -44370,7 +44467,7 @@ private static void _clinit_autosplit_dinit_2() { "ResourcePolicies", }); internal_static_google_cloud_compute_v1_RegionDisksRemoveResourcePoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(1122); + getDescriptor().getMessageTypes().get(1125); internal_static_google_cloud_compute_v1_RegionDisksRemoveResourcePoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionDisksRemoveResourcePoliciesRequest_descriptor, @@ -44378,7 +44475,7 @@ private static void _clinit_autosplit_dinit_2() { "ResourcePolicies", }); internal_static_google_cloud_compute_v1_RegionDisksResizeRequest_descriptor = - getDescriptor().getMessageTypes().get(1123); + getDescriptor().getMessageTypes().get(1126); internal_static_google_cloud_compute_v1_RegionDisksResizeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionDisksResizeRequest_descriptor, @@ -44386,7 +44483,7 @@ private static void _clinit_autosplit_dinit_2() { "SizeGb", }); internal_static_google_cloud_compute_v1_RegionDisksStartAsyncReplicationRequest_descriptor = - getDescriptor().getMessageTypes().get(1124); + getDescriptor().getMessageTypes().get(1127); internal_static_google_cloud_compute_v1_RegionDisksStartAsyncReplicationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionDisksStartAsyncReplicationRequest_descriptor, @@ -44394,7 +44491,7 @@ private static void _clinit_autosplit_dinit_2() { "AsyncSecondaryDisk", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupList_descriptor = - getDescriptor().getMessageTypes().get(1125); + getDescriptor().getMessageTypes().get(1128); internal_static_google_cloud_compute_v1_RegionInstanceGroupList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupList_descriptor, @@ -44402,7 +44499,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerDeleteInstanceConfigReq_descriptor = - getDescriptor().getMessageTypes().get(1126); + getDescriptor().getMessageTypes().get(1129); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerDeleteInstanceConfigReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerDeleteInstanceConfigReq_descriptor, @@ -44410,7 +44507,7 @@ private static void _clinit_autosplit_dinit_2() { "Names", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerList_descriptor = - getDescriptor().getMessageTypes().get(1127); + getDescriptor().getMessageTypes().get(1130); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerList_descriptor, @@ -44418,7 +44515,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerPatchInstanceConfigReq_descriptor = - getDescriptor().getMessageTypes().get(1128); + getDescriptor().getMessageTypes().get(1131); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerPatchInstanceConfigReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerPatchInstanceConfigReq_descriptor, @@ -44426,7 +44523,7 @@ private static void _clinit_autosplit_dinit_2() { "PerInstanceConfigs", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerUpdateInstanceConfigReq_descriptor = - getDescriptor().getMessageTypes().get(1129); + getDescriptor().getMessageTypes().get(1132); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerUpdateInstanceConfigReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerUpdateInstanceConfigReq_descriptor, @@ -44434,7 +44531,7 @@ private static void _clinit_autosplit_dinit_2() { "PerInstanceConfigs", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersAbandonInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(1130); + getDescriptor().getMessageTypes().get(1133); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersAbandonInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersAbandonInstancesRequest_descriptor, @@ -44442,7 +44539,7 @@ private static void _clinit_autosplit_dinit_2() { "Instances", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersApplyUpdatesRequest_descriptor = - getDescriptor().getMessageTypes().get(1131); + getDescriptor().getMessageTypes().get(1134); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersApplyUpdatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersApplyUpdatesRequest_descriptor, @@ -44450,7 +44547,7 @@ private static void _clinit_autosplit_dinit_2() { "AllInstances", "Instances", "MinimalAction", "MostDisruptiveAllowedAction", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersCreateInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(1132); + getDescriptor().getMessageTypes().get(1135); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersCreateInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersCreateInstancesRequest_descriptor, @@ -44458,7 +44555,7 @@ private static void _clinit_autosplit_dinit_2() { "Instances", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersDeleteInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(1133); + getDescriptor().getMessageTypes().get(1136); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersDeleteInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersDeleteInstancesRequest_descriptor, @@ -44466,7 +44563,7 @@ private static void _clinit_autosplit_dinit_2() { "Instances", "SkipInstancesOnValidationError", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersListErrorsResponse_descriptor = - getDescriptor().getMessageTypes().get(1134); + getDescriptor().getMessageTypes().get(1137); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersListErrorsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersListErrorsResponse_descriptor, @@ -44474,7 +44571,7 @@ private static void _clinit_autosplit_dinit_2() { "Items", "NextPageToken", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersListInstanceConfigsResp_descriptor = - getDescriptor().getMessageTypes().get(1135); + getDescriptor().getMessageTypes().get(1138); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersListInstanceConfigsResp_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersListInstanceConfigsResp_descriptor, @@ -44482,7 +44579,7 @@ private static void _clinit_autosplit_dinit_2() { "Items", "NextPageToken", "Warning", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersListInstancesResponse_descriptor = - getDescriptor().getMessageTypes().get(1136); + getDescriptor().getMessageTypes().get(1139); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersListInstancesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersListInstancesResponse_descriptor, @@ -44490,7 +44587,7 @@ private static void _clinit_autosplit_dinit_2() { "ManagedInstances", "NextPageToken", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersRecreateRequest_descriptor = - getDescriptor().getMessageTypes().get(1137); + getDescriptor().getMessageTypes().get(1140); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersRecreateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersRecreateRequest_descriptor, @@ -44498,7 +44595,7 @@ private static void _clinit_autosplit_dinit_2() { "Instances", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersResumeInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(1138); + getDescriptor().getMessageTypes().get(1141); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersResumeInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersResumeInstancesRequest_descriptor, @@ -44506,7 +44603,7 @@ private static void _clinit_autosplit_dinit_2() { "Instances", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersSetTargetPoolsRequest_descriptor = - getDescriptor().getMessageTypes().get(1139); + getDescriptor().getMessageTypes().get(1142); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersSetTargetPoolsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersSetTargetPoolsRequest_descriptor, @@ -44514,7 +44611,7 @@ private static void _clinit_autosplit_dinit_2() { "Fingerprint", "TargetPools", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersSetTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(1140); + getDescriptor().getMessageTypes().get(1143); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersSetTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersSetTemplateRequest_descriptor, @@ -44522,7 +44619,7 @@ private static void _clinit_autosplit_dinit_2() { "InstanceTemplate", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersStartInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(1141); + getDescriptor().getMessageTypes().get(1144); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersStartInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersStartInstancesRequest_descriptor, @@ -44530,7 +44627,7 @@ private static void _clinit_autosplit_dinit_2() { "Instances", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersStopInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(1142); + getDescriptor().getMessageTypes().get(1145); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersStopInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersStopInstancesRequest_descriptor, @@ -44538,7 +44635,7 @@ private static void _clinit_autosplit_dinit_2() { "ForceStop", "Instances", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersSuspendInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(1143); + getDescriptor().getMessageTypes().get(1146); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersSuspendInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersSuspendInstancesRequest_descriptor, @@ -44546,7 +44643,7 @@ private static void _clinit_autosplit_dinit_2() { "ForceSuspend", "Instances", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupsListInstances_descriptor = - getDescriptor().getMessageTypes().get(1144); + getDescriptor().getMessageTypes().get(1147); internal_static_google_cloud_compute_v1_RegionInstanceGroupsListInstances_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupsListInstances_descriptor, @@ -44554,7 +44651,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupsListInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(1145); + getDescriptor().getMessageTypes().get(1148); internal_static_google_cloud_compute_v1_RegionInstanceGroupsListInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupsListInstancesRequest_descriptor, @@ -44562,7 +44659,7 @@ private static void _clinit_autosplit_dinit_2() { "InstanceState", "PortName", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupsSetNamedPortsRequest_descriptor = - getDescriptor().getMessageTypes().get(1146); + getDescriptor().getMessageTypes().get(1149); internal_static_google_cloud_compute_v1_RegionInstanceGroupsSetNamedPortsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupsSetNamedPortsRequest_descriptor, @@ -44570,7 +44667,7 @@ private static void _clinit_autosplit_dinit_2() { "Fingerprint", "NamedPorts", }); internal_static_google_cloud_compute_v1_RegionList_descriptor = - getDescriptor().getMessageTypes().get(1147); + getDescriptor().getMessageTypes().get(1150); internal_static_google_cloud_compute_v1_RegionList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionList_descriptor, @@ -44578,7 +44675,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_RegionNetworkEndpointGroupsAttachEndpointsRequest_descriptor = - getDescriptor().getMessageTypes().get(1148); + getDescriptor().getMessageTypes().get(1151); internal_static_google_cloud_compute_v1_RegionNetworkEndpointGroupsAttachEndpointsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionNetworkEndpointGroupsAttachEndpointsRequest_descriptor, @@ -44586,7 +44683,7 @@ private static void _clinit_autosplit_dinit_2() { "NetworkEndpoints", }); internal_static_google_cloud_compute_v1_RegionNetworkEndpointGroupsDetachEndpointsRequest_descriptor = - getDescriptor().getMessageTypes().get(1149); + getDescriptor().getMessageTypes().get(1152); internal_static_google_cloud_compute_v1_RegionNetworkEndpointGroupsDetachEndpointsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionNetworkEndpointGroupsDetachEndpointsRequest_descriptor, @@ -44594,7 +44691,7 @@ private static void _clinit_autosplit_dinit_2() { "NetworkEndpoints", }); internal_static_google_cloud_compute_v1_RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse_descriptor = - getDescriptor().getMessageTypes().get(1150); + getDescriptor().getMessageTypes().get(1153); internal_static_google_cloud_compute_v1_RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse_descriptor, @@ -44602,7 +44699,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicys", "Firewalls", }); internal_static_google_cloud_compute_v1_RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy_descriptor = - getDescriptor().getMessageTypes().get(1151); + getDescriptor().getMessageTypes().get(1154); internal_static_google_cloud_compute_v1_RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy_descriptor, @@ -44610,7 +44707,7 @@ private static void _clinit_autosplit_dinit_2() { "DisplayName", "Name", "PacketMirroringRules", "Priority", "Rules", "Type", }); internal_static_google_cloud_compute_v1_RegionSetLabelsRequest_descriptor = - getDescriptor().getMessageTypes().get(1152); + getDescriptor().getMessageTypes().get(1155); internal_static_google_cloud_compute_v1_RegionSetLabelsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionSetLabelsRequest_descriptor, @@ -44628,7 +44725,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_RegionSetPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1153); + getDescriptor().getMessageTypes().get(1156); internal_static_google_cloud_compute_v1_RegionSetPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionSetPolicyRequest_descriptor, @@ -44636,7 +44733,7 @@ private static void _clinit_autosplit_dinit_2() { "Bindings", "Etag", "Policy", }); internal_static_google_cloud_compute_v1_RegionTargetHttpsProxiesSetSslCertificatesRequest_descriptor = - getDescriptor().getMessageTypes().get(1154); + getDescriptor().getMessageTypes().get(1157); internal_static_google_cloud_compute_v1_RegionTargetHttpsProxiesSetSslCertificatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionTargetHttpsProxiesSetSslCertificatesRequest_descriptor, @@ -44644,7 +44741,7 @@ private static void _clinit_autosplit_dinit_2() { "SslCertificates", }); internal_static_google_cloud_compute_v1_RegionUrlMapsValidateRequest_descriptor = - getDescriptor().getMessageTypes().get(1155); + getDescriptor().getMessageTypes().get(1158); internal_static_google_cloud_compute_v1_RegionUrlMapsValidateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionUrlMapsValidateRequest_descriptor, @@ -44652,7 +44749,7 @@ private static void _clinit_autosplit_dinit_2() { "Resource", }); internal_static_google_cloud_compute_v1_RemoveAssociationFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1156); + getDescriptor().getMessageTypes().get(1159); internal_static_google_cloud_compute_v1_RemoveAssociationFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveAssociationFirewallPolicyRequest_descriptor, @@ -44660,7 +44757,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicy", "Name", "RequestId", }); internal_static_google_cloud_compute_v1_RemoveAssociationNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1157); + getDescriptor().getMessageTypes().get(1160); internal_static_google_cloud_compute_v1_RemoveAssociationNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveAssociationNetworkFirewallPolicyRequest_descriptor, @@ -44668,7 +44765,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicy", "Name", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_RemoveAssociationRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1158); + getDescriptor().getMessageTypes().get(1161); internal_static_google_cloud_compute_v1_RemoveAssociationRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveAssociationRegionNetworkFirewallPolicyRequest_descriptor, @@ -44676,7 +44773,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicy", "Name", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_RemoveHealthCheckTargetPoolRequest_descriptor = - getDescriptor().getMessageTypes().get(1159); + getDescriptor().getMessageTypes().get(1162); internal_static_google_cloud_compute_v1_RemoveHealthCheckTargetPoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveHealthCheckTargetPoolRequest_descriptor, @@ -44688,7 +44785,7 @@ private static void _clinit_autosplit_dinit_2() { "TargetPoolsRemoveHealthCheckRequestResource", }); internal_static_google_cloud_compute_v1_RemoveInstanceTargetPoolRequest_descriptor = - getDescriptor().getMessageTypes().get(1160); + getDescriptor().getMessageTypes().get(1163); internal_static_google_cloud_compute_v1_RemoveInstanceTargetPoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveInstanceTargetPoolRequest_descriptor, @@ -44700,7 +44797,7 @@ private static void _clinit_autosplit_dinit_2() { "TargetPoolsRemoveInstanceRequestResource", }); internal_static_google_cloud_compute_v1_RemoveInstancesInstanceGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(1161); + getDescriptor().getMessageTypes().get(1164); internal_static_google_cloud_compute_v1_RemoveInstancesInstanceGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveInstancesInstanceGroupRequest_descriptor, @@ -44712,7 +44809,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_RemovePacketMirroringRuleNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1162); + getDescriptor().getMessageTypes().get(1165); internal_static_google_cloud_compute_v1_RemovePacketMirroringRuleNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemovePacketMirroringRuleNetworkFirewallPolicyRequest_descriptor, @@ -44720,7 +44817,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicy", "Priority", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_RemovePeeringNetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(1163); + getDescriptor().getMessageTypes().get(1166); internal_static_google_cloud_compute_v1_RemovePeeringNetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemovePeeringNetworkRequest_descriptor, @@ -44728,7 +44825,7 @@ private static void _clinit_autosplit_dinit_2() { "Network", "NetworksRemovePeeringRequestResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_RemoveResourcePoliciesDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1164); + getDescriptor().getMessageTypes().get(1167); internal_static_google_cloud_compute_v1_RemoveResourcePoliciesDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveResourcePoliciesDiskRequest_descriptor, @@ -44736,7 +44833,7 @@ private static void _clinit_autosplit_dinit_2() { "Disk", "DisksRemoveResourcePoliciesRequestResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_RemoveResourcePoliciesInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1165); + getDescriptor().getMessageTypes().get(1168); internal_static_google_cloud_compute_v1_RemoveResourcePoliciesInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveResourcePoliciesInstanceRequest_descriptor, @@ -44748,7 +44845,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_RemoveResourcePoliciesRegionDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1166); + getDescriptor().getMessageTypes().get(1169); internal_static_google_cloud_compute_v1_RemoveResourcePoliciesRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveResourcePoliciesRegionDiskRequest_descriptor, @@ -44760,7 +44857,7 @@ private static void _clinit_autosplit_dinit_2() { "RequestId", }); internal_static_google_cloud_compute_v1_RemoveRuleFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1167); + getDescriptor().getMessageTypes().get(1170); internal_static_google_cloud_compute_v1_RemoveRuleFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveRuleFirewallPolicyRequest_descriptor, @@ -44768,7 +44865,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicy", "Priority", "RequestId", }); internal_static_google_cloud_compute_v1_RemoveRuleNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1168); + getDescriptor().getMessageTypes().get(1171); internal_static_google_cloud_compute_v1_RemoveRuleNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveRuleNetworkFirewallPolicyRequest_descriptor, @@ -44776,7 +44873,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicy", "Priority", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_RemoveRuleRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1169); + getDescriptor().getMessageTypes().get(1172); internal_static_google_cloud_compute_v1_RemoveRuleRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveRuleRegionNetworkFirewallPolicyRequest_descriptor, @@ -44784,7 +44881,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicy", "Priority", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_RemoveRuleRegionSecurityPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1170); + getDescriptor().getMessageTypes().get(1173); internal_static_google_cloud_compute_v1_RemoveRuleRegionSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveRuleRegionSecurityPolicyRequest_descriptor, @@ -44792,7 +44889,7 @@ private static void _clinit_autosplit_dinit_2() { "Priority", "Project", "Region", "SecurityPolicy", }); internal_static_google_cloud_compute_v1_RemoveRuleSecurityPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1171); + getDescriptor().getMessageTypes().get(1174); internal_static_google_cloud_compute_v1_RemoveRuleSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveRuleSecurityPolicyRequest_descriptor, @@ -44800,7 +44897,7 @@ private static void _clinit_autosplit_dinit_2() { "Priority", "Project", "SecurityPolicy", }); internal_static_google_cloud_compute_v1_ReportHostAsFaultyInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1172); + getDescriptor().getMessageTypes().get(1175); internal_static_google_cloud_compute_v1_ReportHostAsFaultyInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReportHostAsFaultyInstanceRequest_descriptor, @@ -44812,7 +44909,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_RequestMirrorPolicy_descriptor = - getDescriptor().getMessageTypes().get(1173); + getDescriptor().getMessageTypes().get(1176); internal_static_google_cloud_compute_v1_RequestMirrorPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RequestMirrorPolicy_descriptor, @@ -44820,7 +44917,7 @@ private static void _clinit_autosplit_dinit_2() { "BackendService", }); internal_static_google_cloud_compute_v1_Reservation_descriptor = - getDescriptor().getMessageTypes().get(1174); + getDescriptor().getMessageTypes().get(1177); internal_static_google_cloud_compute_v1_Reservation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Reservation_descriptor, @@ -44857,7 +44954,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_ReservationAffinity_descriptor = - getDescriptor().getMessageTypes().get(1175); + getDescriptor().getMessageTypes().get(1178); internal_static_google_cloud_compute_v1_ReservationAffinity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationAffinity_descriptor, @@ -44865,7 +44962,7 @@ private static void _clinit_autosplit_dinit_2() { "ConsumeReservationType", "Key", "Values", }); internal_static_google_cloud_compute_v1_ReservationAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1176); + getDescriptor().getMessageTypes().get(1179); internal_static_google_cloud_compute_v1_ReservationAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationAggregatedList_descriptor, @@ -44883,7 +44980,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_ReservationBlock_descriptor = - getDescriptor().getMessageTypes().get(1177); + getDescriptor().getMessageTypes().get(1180); internal_static_google_cloud_compute_v1_ReservationBlock_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationBlock_descriptor, @@ -44904,7 +45001,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_ReservationBlockPhysicalTopology_descriptor = - getDescriptor().getMessageTypes().get(1178); + getDescriptor().getMessageTypes().get(1181); internal_static_google_cloud_compute_v1_ReservationBlockPhysicalTopology_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationBlockPhysicalTopology_descriptor, @@ -44912,7 +45009,7 @@ private static void _clinit_autosplit_dinit_2() { "Block", "Cluster", }); internal_static_google_cloud_compute_v1_ReservationBlocksGetResponse_descriptor = - getDescriptor().getMessageTypes().get(1179); + getDescriptor().getMessageTypes().get(1182); internal_static_google_cloud_compute_v1_ReservationBlocksGetResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationBlocksGetResponse_descriptor, @@ -44920,7 +45017,7 @@ private static void _clinit_autosplit_dinit_2() { "Resource", }); internal_static_google_cloud_compute_v1_ReservationBlocksListResponse_descriptor = - getDescriptor().getMessageTypes().get(1180); + getDescriptor().getMessageTypes().get(1183); internal_static_google_cloud_compute_v1_ReservationBlocksListResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationBlocksListResponse_descriptor, @@ -44928,7 +45025,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_ReservationList_descriptor = - getDescriptor().getMessageTypes().get(1181); + getDescriptor().getMessageTypes().get(1184); internal_static_google_cloud_compute_v1_ReservationList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationList_descriptor, @@ -44936,7 +45033,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_ReservationSubBlock_descriptor = - getDescriptor().getMessageTypes().get(1182); + getDescriptor().getMessageTypes().get(1185); internal_static_google_cloud_compute_v1_ReservationSubBlock_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationSubBlock_descriptor, @@ -44948,13 +45045,14 @@ private static void _clinit_autosplit_dinit_2() { "Kind", "Name", "PhysicalTopology", + "ReservationSubBlockMaintenance", "SelfLink", "SelfLinkWithId", "Status", "Zone", }); internal_static_google_cloud_compute_v1_ReservationSubBlockPhysicalTopology_descriptor = - getDescriptor().getMessageTypes().get(1183); + getDescriptor().getMessageTypes().get(1186); internal_static_google_cloud_compute_v1_ReservationSubBlockPhysicalTopology_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationSubBlockPhysicalTopology_descriptor, @@ -44962,7 +45060,7 @@ private static void _clinit_autosplit_dinit_2() { "Block", "Cluster", "SubBlock", }); internal_static_google_cloud_compute_v1_ReservationSubBlocksGetResponse_descriptor = - getDescriptor().getMessageTypes().get(1184); + getDescriptor().getMessageTypes().get(1187); internal_static_google_cloud_compute_v1_ReservationSubBlocksGetResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationSubBlocksGetResponse_descriptor, @@ -44970,7 +45068,7 @@ private static void _clinit_autosplit_dinit_2() { "Resource", }); internal_static_google_cloud_compute_v1_ReservationSubBlocksListResponse_descriptor = - getDescriptor().getMessageTypes().get(1185); + getDescriptor().getMessageTypes().get(1188); internal_static_google_cloud_compute_v1_ReservationSubBlocksListResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationSubBlocksListResponse_descriptor, @@ -44978,7 +45076,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_ReservationsBlocksPerformMaintenanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1186); + getDescriptor().getMessageTypes().get(1189); internal_static_google_cloud_compute_v1_ReservationsBlocksPerformMaintenanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationsBlocksPerformMaintenanceRequest_descriptor, @@ -44986,7 +45084,7 @@ private static void _clinit_autosplit_dinit_2() { "MaintenanceScope", }); internal_static_google_cloud_compute_v1_ReservationsPerformMaintenanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1187); + getDescriptor().getMessageTypes().get(1190); internal_static_google_cloud_compute_v1_ReservationsPerformMaintenanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationsPerformMaintenanceRequest_descriptor, @@ -44994,7 +45092,7 @@ private static void _clinit_autosplit_dinit_2() { "MaintenanceScope", }); internal_static_google_cloud_compute_v1_ReservationsResizeRequest_descriptor = - getDescriptor().getMessageTypes().get(1188); + getDescriptor().getMessageTypes().get(1191); internal_static_google_cloud_compute_v1_ReservationsResizeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationsResizeRequest_descriptor, @@ -45002,7 +45100,7 @@ private static void _clinit_autosplit_dinit_2() { "SpecificSkuCount", }); internal_static_google_cloud_compute_v1_ReservationsScopedList_descriptor = - getDescriptor().getMessageTypes().get(1189); + getDescriptor().getMessageTypes().get(1192); internal_static_google_cloud_compute_v1_ReservationsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationsScopedList_descriptor, @@ -45010,7 +45108,7 @@ private static void _clinit_autosplit_dinit_2() { "Reservations", "Warning", }); internal_static_google_cloud_compute_v1_ResetInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1190); + getDescriptor().getMessageTypes().get(1193); internal_static_google_cloud_compute_v1_ResetInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResetInstanceRequest_descriptor, @@ -45018,7 +45116,7 @@ private static void _clinit_autosplit_dinit_2() { "Instance", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_ResizeDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1191); + getDescriptor().getMessageTypes().get(1194); internal_static_google_cloud_compute_v1_ResizeDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResizeDiskRequest_descriptor, @@ -45026,7 +45124,7 @@ private static void _clinit_autosplit_dinit_2() { "Disk", "DisksResizeRequestResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_ResizeInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1192); + getDescriptor().getMessageTypes().get(1195); internal_static_google_cloud_compute_v1_ResizeInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResizeInstanceGroupManagerRequest_descriptor, @@ -45034,7 +45132,7 @@ private static void _clinit_autosplit_dinit_2() { "InstanceGroupManager", "Project", "RequestId", "Size", "Zone", }); internal_static_google_cloud_compute_v1_ResizeRegionDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1193); + getDescriptor().getMessageTypes().get(1196); internal_static_google_cloud_compute_v1_ResizeRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResizeRegionDiskRequest_descriptor, @@ -45042,7 +45140,7 @@ private static void _clinit_autosplit_dinit_2() { "Disk", "Project", "Region", "RegionDisksResizeRequestResource", "RequestId", }); internal_static_google_cloud_compute_v1_ResizeRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1194); + getDescriptor().getMessageTypes().get(1197); internal_static_google_cloud_compute_v1_ResizeRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResizeRegionInstanceGroupManagerRequest_descriptor, @@ -45050,7 +45148,7 @@ private static void _clinit_autosplit_dinit_2() { "InstanceGroupManager", "Project", "Region", "RequestId", "Size", }); internal_static_google_cloud_compute_v1_ResizeReservationRequest_descriptor = - getDescriptor().getMessageTypes().get(1195); + getDescriptor().getMessageTypes().get(1198); internal_static_google_cloud_compute_v1_ResizeReservationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResizeReservationRequest_descriptor, @@ -45058,7 +45156,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "RequestId", "Reservation", "ReservationsResizeRequestResource", "Zone", }); internal_static_google_cloud_compute_v1_ResourceCommitment_descriptor = - getDescriptor().getMessageTypes().get(1196); + getDescriptor().getMessageTypes().get(1199); internal_static_google_cloud_compute_v1_ResourceCommitment_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourceCommitment_descriptor, @@ -45066,7 +45164,7 @@ private static void _clinit_autosplit_dinit_2() { "AcceleratorType", "Amount", "Type", }); internal_static_google_cloud_compute_v1_ResourceGroupReference_descriptor = - getDescriptor().getMessageTypes().get(1197); + getDescriptor().getMessageTypes().get(1200); internal_static_google_cloud_compute_v1_ResourceGroupReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourceGroupReference_descriptor, @@ -45074,7 +45172,7 @@ private static void _clinit_autosplit_dinit_2() { "Group", }); internal_static_google_cloud_compute_v1_ResourcePoliciesScopedList_descriptor = - getDescriptor().getMessageTypes().get(1198); + getDescriptor().getMessageTypes().get(1201); internal_static_google_cloud_compute_v1_ResourcePoliciesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePoliciesScopedList_descriptor, @@ -45082,7 +45180,7 @@ private static void _clinit_autosplit_dinit_2() { "ResourcePolicies", "Warning", }); internal_static_google_cloud_compute_v1_ResourcePolicy_descriptor = - getDescriptor().getMessageTypes().get(1199); + getDescriptor().getMessageTypes().get(1202); internal_static_google_cloud_compute_v1_ResourcePolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicy_descriptor, @@ -45103,7 +45201,7 @@ private static void _clinit_autosplit_dinit_2() { "WorkloadPolicy", }); internal_static_google_cloud_compute_v1_ResourcePolicyAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1200); + getDescriptor().getMessageTypes().get(1203); internal_static_google_cloud_compute_v1_ResourcePolicyAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicyAggregatedList_descriptor, @@ -45121,7 +45219,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_ResourcePolicyDailyCycle_descriptor = - getDescriptor().getMessageTypes().get(1201); + getDescriptor().getMessageTypes().get(1204); internal_static_google_cloud_compute_v1_ResourcePolicyDailyCycle_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicyDailyCycle_descriptor, @@ -45129,13 +45227,13 @@ private static void _clinit_autosplit_dinit_2() { "DaysInCycle", "Duration", "StartTime", }); internal_static_google_cloud_compute_v1_ResourcePolicyDiskConsistencyGroupPolicy_descriptor = - getDescriptor().getMessageTypes().get(1202); + getDescriptor().getMessageTypes().get(1205); internal_static_google_cloud_compute_v1_ResourcePolicyDiskConsistencyGroupPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicyDiskConsistencyGroupPolicy_descriptor, new java.lang.String[] {}); internal_static_google_cloud_compute_v1_ResourcePolicyGroupPlacementPolicy_descriptor = - getDescriptor().getMessageTypes().get(1203); + getDescriptor().getMessageTypes().get(1206); internal_static_google_cloud_compute_v1_ResourcePolicyGroupPlacementPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicyGroupPlacementPolicy_descriptor, @@ -45143,7 +45241,7 @@ private static void _clinit_autosplit_dinit_2() { "AvailabilityDomainCount", "Collocation", "GpuTopology", "VmCount", }); internal_static_google_cloud_compute_v1_ResourcePolicyHourlyCycle_descriptor = - getDescriptor().getMessageTypes().get(1204); + getDescriptor().getMessageTypes().get(1207); internal_static_google_cloud_compute_v1_ResourcePolicyHourlyCycle_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicyHourlyCycle_descriptor, @@ -45151,7 +45249,7 @@ private static void _clinit_autosplit_dinit_2() { "Duration", "HoursInCycle", "StartTime", }); internal_static_google_cloud_compute_v1_ResourcePolicyInstanceSchedulePolicy_descriptor = - getDescriptor().getMessageTypes().get(1205); + getDescriptor().getMessageTypes().get(1208); internal_static_google_cloud_compute_v1_ResourcePolicyInstanceSchedulePolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicyInstanceSchedulePolicy_descriptor, @@ -45159,7 +45257,7 @@ private static void _clinit_autosplit_dinit_2() { "ExpirationTime", "StartTime", "TimeZone", "VmStartSchedule", "VmStopSchedule", }); internal_static_google_cloud_compute_v1_ResourcePolicyInstanceSchedulePolicySchedule_descriptor = - getDescriptor().getMessageTypes().get(1206); + getDescriptor().getMessageTypes().get(1209); internal_static_google_cloud_compute_v1_ResourcePolicyInstanceSchedulePolicySchedule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicyInstanceSchedulePolicySchedule_descriptor, @@ -45167,7 +45265,7 @@ private static void _clinit_autosplit_dinit_2() { "Schedule", }); internal_static_google_cloud_compute_v1_ResourcePolicyList_descriptor = - getDescriptor().getMessageTypes().get(1207); + getDescriptor().getMessageTypes().get(1210); internal_static_google_cloud_compute_v1_ResourcePolicyList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicyList_descriptor, @@ -45175,7 +45273,7 @@ private static void _clinit_autosplit_dinit_2() { "Etag", "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_ResourcePolicyResourceStatus_descriptor = - getDescriptor().getMessageTypes().get(1208); + getDescriptor().getMessageTypes().get(1211); internal_static_google_cloud_compute_v1_ResourcePolicyResourceStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicyResourceStatus_descriptor, @@ -45183,7 +45281,7 @@ private static void _clinit_autosplit_dinit_2() { "InstanceSchedulePolicy", }); internal_static_google_cloud_compute_v1_ResourcePolicyResourceStatusInstanceSchedulePolicyStatus_descriptor = - getDescriptor().getMessageTypes().get(1209); + getDescriptor().getMessageTypes().get(1212); internal_static_google_cloud_compute_v1_ResourcePolicyResourceStatusInstanceSchedulePolicyStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicyResourceStatusInstanceSchedulePolicyStatus_descriptor, @@ -45191,7 +45289,7 @@ private static void _clinit_autosplit_dinit_2() { "LastRunStartTime", "NextRunStartTime", }); internal_static_google_cloud_compute_v1_ResourcePolicySnapshotSchedulePolicy_descriptor = - getDescriptor().getMessageTypes().get(1210); + getDescriptor().getMessageTypes().get(1213); internal_static_google_cloud_compute_v1_ResourcePolicySnapshotSchedulePolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicySnapshotSchedulePolicy_descriptor, @@ -45199,7 +45297,7 @@ private static void _clinit_autosplit_dinit_2() { "RetentionPolicy", "Schedule", "SnapshotProperties", }); internal_static_google_cloud_compute_v1_ResourcePolicySnapshotSchedulePolicyRetentionPolicy_descriptor = - getDescriptor().getMessageTypes().get(1211); + getDescriptor().getMessageTypes().get(1214); internal_static_google_cloud_compute_v1_ResourcePolicySnapshotSchedulePolicyRetentionPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicySnapshotSchedulePolicyRetentionPolicy_descriptor, @@ -45207,7 +45305,7 @@ private static void _clinit_autosplit_dinit_2() { "MaxRetentionDays", "OnSourceDiskDelete", }); internal_static_google_cloud_compute_v1_ResourcePolicySnapshotSchedulePolicySchedule_descriptor = - getDescriptor().getMessageTypes().get(1212); + getDescriptor().getMessageTypes().get(1215); internal_static_google_cloud_compute_v1_ResourcePolicySnapshotSchedulePolicySchedule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicySnapshotSchedulePolicySchedule_descriptor, @@ -45215,7 +45313,7 @@ private static void _clinit_autosplit_dinit_2() { "DailySchedule", "HourlySchedule", "WeeklySchedule", }); internal_static_google_cloud_compute_v1_ResourcePolicySnapshotSchedulePolicySnapshotProperties_descriptor = - getDescriptor().getMessageTypes().get(1213); + getDescriptor().getMessageTypes().get(1216); internal_static_google_cloud_compute_v1_ResourcePolicySnapshotSchedulePolicySnapshotProperties_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicySnapshotSchedulePolicySnapshotProperties_descriptor, @@ -45233,7 +45331,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_ResourcePolicyWeeklyCycle_descriptor = - getDescriptor().getMessageTypes().get(1214); + getDescriptor().getMessageTypes().get(1217); internal_static_google_cloud_compute_v1_ResourcePolicyWeeklyCycle_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicyWeeklyCycle_descriptor, @@ -45241,7 +45339,7 @@ private static void _clinit_autosplit_dinit_2() { "DayOfWeeks", }); internal_static_google_cloud_compute_v1_ResourcePolicyWeeklyCycleDayOfWeek_descriptor = - getDescriptor().getMessageTypes().get(1215); + getDescriptor().getMessageTypes().get(1218); internal_static_google_cloud_compute_v1_ResourcePolicyWeeklyCycleDayOfWeek_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicyWeeklyCycleDayOfWeek_descriptor, @@ -45249,7 +45347,7 @@ private static void _clinit_autosplit_dinit_2() { "Day", "Duration", "StartTime", }); internal_static_google_cloud_compute_v1_ResourcePolicyWorkloadPolicy_descriptor = - getDescriptor().getMessageTypes().get(1216); + getDescriptor().getMessageTypes().get(1219); internal_static_google_cloud_compute_v1_ResourcePolicyWorkloadPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicyWorkloadPolicy_descriptor, @@ -45257,7 +45355,7 @@ private static void _clinit_autosplit_dinit_2() { "AcceleratorTopology", "MaxTopologyDistance", "Type", }); internal_static_google_cloud_compute_v1_ResourceStatus_descriptor = - getDescriptor().getMessageTypes().get(1217); + getDescriptor().getMessageTypes().get(1220); internal_static_google_cloud_compute_v1_ResourceStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourceStatus_descriptor, @@ -45265,7 +45363,7 @@ private static void _clinit_autosplit_dinit_2() { "PhysicalHost", "PhysicalHostTopology", "Scheduling", "UpcomingMaintenance", }); internal_static_google_cloud_compute_v1_ResourceStatusPhysicalHostTopology_descriptor = - getDescriptor().getMessageTypes().get(1218); + getDescriptor().getMessageTypes().get(1221); internal_static_google_cloud_compute_v1_ResourceStatusPhysicalHostTopology_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourceStatusPhysicalHostTopology_descriptor, @@ -45273,7 +45371,7 @@ private static void _clinit_autosplit_dinit_2() { "Block", "Cluster", "Host", "Subblock", }); internal_static_google_cloud_compute_v1_ResourceStatusScheduling_descriptor = - getDescriptor().getMessageTypes().get(1219); + getDescriptor().getMessageTypes().get(1222); internal_static_google_cloud_compute_v1_ResourceStatusScheduling_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourceStatusScheduling_descriptor, @@ -45281,7 +45379,7 @@ private static void _clinit_autosplit_dinit_2() { "AvailabilityDomain", }); internal_static_google_cloud_compute_v1_ResumeInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1220); + getDescriptor().getMessageTypes().get(1223); internal_static_google_cloud_compute_v1_ResumeInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResumeInstanceRequest_descriptor, @@ -45289,7 +45387,7 @@ private static void _clinit_autosplit_dinit_2() { "Instance", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_ResumeInstancesInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1221); + getDescriptor().getMessageTypes().get(1224); internal_static_google_cloud_compute_v1_ResumeInstancesInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResumeInstancesInstanceGroupManagerRequest_descriptor, @@ -45301,7 +45399,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_ResumeInstancesRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1222); + getDescriptor().getMessageTypes().get(1225); internal_static_google_cloud_compute_v1_ResumeInstancesRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResumeInstancesRegionInstanceGroupManagerRequest_descriptor, @@ -45313,7 +45411,7 @@ private static void _clinit_autosplit_dinit_2() { "RequestId", }); internal_static_google_cloud_compute_v1_Route_descriptor = - getDescriptor().getMessageTypes().get(1223); + getDescriptor().getMessageTypes().get(1226); internal_static_google_cloud_compute_v1_Route_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Route_descriptor, @@ -45346,7 +45444,7 @@ private static void _clinit_autosplit_dinit_2() { "Warnings", }); internal_static_google_cloud_compute_v1_RouteAsPath_descriptor = - getDescriptor().getMessageTypes().get(1224); + getDescriptor().getMessageTypes().get(1227); internal_static_google_cloud_compute_v1_RouteAsPath_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouteAsPath_descriptor, @@ -45354,7 +45452,7 @@ private static void _clinit_autosplit_dinit_2() { "AsLists", "PathSegmentType", }); internal_static_google_cloud_compute_v1_RouteList_descriptor = - getDescriptor().getMessageTypes().get(1225); + getDescriptor().getMessageTypes().get(1228); internal_static_google_cloud_compute_v1_RouteList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouteList_descriptor, @@ -45362,7 +45460,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_RouteParams_descriptor = - getDescriptor().getMessageTypes().get(1226); + getDescriptor().getMessageTypes().get(1229); internal_static_google_cloud_compute_v1_RouteParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouteParams_descriptor, @@ -45378,7 +45476,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_RoutePolicy_descriptor = - getDescriptor().getMessageTypes().get(1227); + getDescriptor().getMessageTypes().get(1230); internal_static_google_cloud_compute_v1_RoutePolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RoutePolicy_descriptor, @@ -45386,7 +45484,7 @@ private static void _clinit_autosplit_dinit_2() { "Description", "Fingerprint", "Name", "Terms", "Type", }); internal_static_google_cloud_compute_v1_RoutePolicyPolicyTerm_descriptor = - getDescriptor().getMessageTypes().get(1228); + getDescriptor().getMessageTypes().get(1231); internal_static_google_cloud_compute_v1_RoutePolicyPolicyTerm_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RoutePolicyPolicyTerm_descriptor, @@ -45394,7 +45492,7 @@ private static void _clinit_autosplit_dinit_2() { "Actions", "Match", "Priority", }); internal_static_google_cloud_compute_v1_Router_descriptor = - getDescriptor().getMessageTypes().get(1229); + getDescriptor().getMessageTypes().get(1232); internal_static_google_cloud_compute_v1_Router_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Router_descriptor, @@ -45415,7 +45513,7 @@ private static void _clinit_autosplit_dinit_2() { "SelfLink", }); internal_static_google_cloud_compute_v1_RouterAdvertisedIpRange_descriptor = - getDescriptor().getMessageTypes().get(1230); + getDescriptor().getMessageTypes().get(1233); internal_static_google_cloud_compute_v1_RouterAdvertisedIpRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterAdvertisedIpRange_descriptor, @@ -45423,7 +45521,7 @@ private static void _clinit_autosplit_dinit_2() { "Description", "Range", }); internal_static_google_cloud_compute_v1_RouterAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1231); + getDescriptor().getMessageTypes().get(1234); internal_static_google_cloud_compute_v1_RouterAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterAggregatedList_descriptor, @@ -45441,7 +45539,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_RouterBgp_descriptor = - getDescriptor().getMessageTypes().get(1232); + getDescriptor().getMessageTypes().get(1235); internal_static_google_cloud_compute_v1_RouterBgp_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterBgp_descriptor, @@ -45454,7 +45552,7 @@ private static void _clinit_autosplit_dinit_2() { "KeepaliveInterval", }); internal_static_google_cloud_compute_v1_RouterBgpPeer_descriptor = - getDescriptor().getMessageTypes().get(1233); + getDescriptor().getMessageTypes().get(1236); internal_static_google_cloud_compute_v1_RouterBgpPeer_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterBgpPeer_descriptor, @@ -45485,7 +45583,7 @@ private static void _clinit_autosplit_dinit_2() { "RouterApplianceInstance", }); internal_static_google_cloud_compute_v1_RouterBgpPeerBfd_descriptor = - getDescriptor().getMessageTypes().get(1234); + getDescriptor().getMessageTypes().get(1237); internal_static_google_cloud_compute_v1_RouterBgpPeerBfd_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterBgpPeerBfd_descriptor, @@ -45496,7 +45594,7 @@ private static void _clinit_autosplit_dinit_2() { "SessionInitializationMode", }); internal_static_google_cloud_compute_v1_RouterBgpPeerCustomLearnedIpRange_descriptor = - getDescriptor().getMessageTypes().get(1235); + getDescriptor().getMessageTypes().get(1238); internal_static_google_cloud_compute_v1_RouterBgpPeerCustomLearnedIpRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterBgpPeerCustomLearnedIpRange_descriptor, @@ -45504,7 +45602,7 @@ private static void _clinit_autosplit_dinit_2() { "Range", }); internal_static_google_cloud_compute_v1_RouterInterface_descriptor = - getDescriptor().getMessageTypes().get(1236); + getDescriptor().getMessageTypes().get(1239); internal_static_google_cloud_compute_v1_RouterInterface_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterInterface_descriptor, @@ -45520,7 +45618,7 @@ private static void _clinit_autosplit_dinit_2() { "Subnetwork", }); internal_static_google_cloud_compute_v1_RouterList_descriptor = - getDescriptor().getMessageTypes().get(1237); + getDescriptor().getMessageTypes().get(1240); internal_static_google_cloud_compute_v1_RouterList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterList_descriptor, @@ -45528,7 +45626,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_RouterMd5AuthenticationKey_descriptor = - getDescriptor().getMessageTypes().get(1238); + getDescriptor().getMessageTypes().get(1241); internal_static_google_cloud_compute_v1_RouterMd5AuthenticationKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterMd5AuthenticationKey_descriptor, @@ -45536,7 +45634,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Name", }); internal_static_google_cloud_compute_v1_RouterNat_descriptor = - getDescriptor().getMessageTypes().get(1239); + getDescriptor().getMessageTypes().get(1242); internal_static_google_cloud_compute_v1_RouterNat_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterNat_descriptor, @@ -45565,7 +45663,7 @@ private static void _clinit_autosplit_dinit_2() { "UdpIdleTimeoutSec", }); internal_static_google_cloud_compute_v1_RouterNatLogConfig_descriptor = - getDescriptor().getMessageTypes().get(1240); + getDescriptor().getMessageTypes().get(1243); internal_static_google_cloud_compute_v1_RouterNatLogConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterNatLogConfig_descriptor, @@ -45573,7 +45671,7 @@ private static void _clinit_autosplit_dinit_2() { "Enable", "Filter", }); internal_static_google_cloud_compute_v1_RouterNatRule_descriptor = - getDescriptor().getMessageTypes().get(1241); + getDescriptor().getMessageTypes().get(1244); internal_static_google_cloud_compute_v1_RouterNatRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterNatRule_descriptor, @@ -45581,7 +45679,7 @@ private static void _clinit_autosplit_dinit_2() { "Action", "Description", "Match", "RuleNumber", }); internal_static_google_cloud_compute_v1_RouterNatRuleAction_descriptor = - getDescriptor().getMessageTypes().get(1242); + getDescriptor().getMessageTypes().get(1245); internal_static_google_cloud_compute_v1_RouterNatRuleAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterNatRuleAction_descriptor, @@ -45592,7 +45690,7 @@ private static void _clinit_autosplit_dinit_2() { "SourceNatDrainRanges", }); internal_static_google_cloud_compute_v1_RouterNatSubnetworkToNat_descriptor = - getDescriptor().getMessageTypes().get(1243); + getDescriptor().getMessageTypes().get(1246); internal_static_google_cloud_compute_v1_RouterNatSubnetworkToNat_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterNatSubnetworkToNat_descriptor, @@ -45600,7 +45698,7 @@ private static void _clinit_autosplit_dinit_2() { "Name", "SecondaryIpRangeNames", "SourceIpRangesToNat", }); internal_static_google_cloud_compute_v1_RouterNatSubnetworkToNat64_descriptor = - getDescriptor().getMessageTypes().get(1244); + getDescriptor().getMessageTypes().get(1247); internal_static_google_cloud_compute_v1_RouterNatSubnetworkToNat64_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterNatSubnetworkToNat64_descriptor, @@ -45608,7 +45706,7 @@ private static void _clinit_autosplit_dinit_2() { "Name", }); internal_static_google_cloud_compute_v1_RouterStatus_descriptor = - getDescriptor().getMessageTypes().get(1245); + getDescriptor().getMessageTypes().get(1248); internal_static_google_cloud_compute_v1_RouterStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterStatus_descriptor, @@ -45616,7 +45714,7 @@ private static void _clinit_autosplit_dinit_2() { "BestRoutes", "BestRoutesForRouter", "BgpPeerStatus", "NatStatus", "Network", }); internal_static_google_cloud_compute_v1_RouterStatusBgpPeerStatus_descriptor = - getDescriptor().getMessageTypes().get(1246); + getDescriptor().getMessageTypes().get(1249); internal_static_google_cloud_compute_v1_RouterStatusBgpPeerStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterStatusBgpPeerStatus_descriptor, @@ -45643,7 +45741,7 @@ private static void _clinit_autosplit_dinit_2() { "UptimeSeconds", }); internal_static_google_cloud_compute_v1_RouterStatusNatStatus_descriptor = - getDescriptor().getMessageTypes().get(1247); + getDescriptor().getMessageTypes().get(1250); internal_static_google_cloud_compute_v1_RouterStatusNatStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterStatusNatStatus_descriptor, @@ -45659,7 +45757,7 @@ private static void _clinit_autosplit_dinit_2() { "UserAllocatedNatIps", }); internal_static_google_cloud_compute_v1_RouterStatusNatStatusNatRuleStatus_descriptor = - getDescriptor().getMessageTypes().get(1248); + getDescriptor().getMessageTypes().get(1251); internal_static_google_cloud_compute_v1_RouterStatusNatStatusNatRuleStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterStatusNatStatusNatRuleStatus_descriptor, @@ -45671,7 +45769,7 @@ private static void _clinit_autosplit_dinit_2() { "RuleNumber", }); internal_static_google_cloud_compute_v1_RouterStatusResponse_descriptor = - getDescriptor().getMessageTypes().get(1249); + getDescriptor().getMessageTypes().get(1252); internal_static_google_cloud_compute_v1_RouterStatusResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterStatusResponse_descriptor, @@ -45679,7 +45777,7 @@ private static void _clinit_autosplit_dinit_2() { "Kind", "Result", }); internal_static_google_cloud_compute_v1_RoutersGetRoutePolicyResponse_descriptor = - getDescriptor().getMessageTypes().get(1250); + getDescriptor().getMessageTypes().get(1253); internal_static_google_cloud_compute_v1_RoutersGetRoutePolicyResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RoutersGetRoutePolicyResponse_descriptor, @@ -45687,7 +45785,7 @@ private static void _clinit_autosplit_dinit_2() { "Resource", }); internal_static_google_cloud_compute_v1_RoutersListBgpRoutes_descriptor = - getDescriptor().getMessageTypes().get(1251); + getDescriptor().getMessageTypes().get(1254); internal_static_google_cloud_compute_v1_RoutersListBgpRoutes_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RoutersListBgpRoutes_descriptor, @@ -45702,7 +45800,7 @@ private static void _clinit_autosplit_dinit_2() { "Warning", }); internal_static_google_cloud_compute_v1_RoutersListRoutePolicies_descriptor = - getDescriptor().getMessageTypes().get(1252); + getDescriptor().getMessageTypes().get(1255); internal_static_google_cloud_compute_v1_RoutersListRoutePolicies_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RoutersListRoutePolicies_descriptor, @@ -45717,7 +45815,7 @@ private static void _clinit_autosplit_dinit_2() { "Warning", }); internal_static_google_cloud_compute_v1_RoutersPreviewResponse_descriptor = - getDescriptor().getMessageTypes().get(1253); + getDescriptor().getMessageTypes().get(1256); internal_static_google_cloud_compute_v1_RoutersPreviewResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RoutersPreviewResponse_descriptor, @@ -45725,7 +45823,7 @@ private static void _clinit_autosplit_dinit_2() { "Resource", }); internal_static_google_cloud_compute_v1_RoutersScopedList_descriptor = - getDescriptor().getMessageTypes().get(1254); + getDescriptor().getMessageTypes().get(1257); internal_static_google_cloud_compute_v1_RoutersScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RoutersScopedList_descriptor, @@ -45733,7 +45831,7 @@ private static void _clinit_autosplit_dinit_2() { "Routers", "Warning", }); internal_static_google_cloud_compute_v1_SSLHealthCheck_descriptor = - getDescriptor().getMessageTypes().get(1255); + getDescriptor().getMessageTypes().get(1258); internal_static_google_cloud_compute_v1_SSLHealthCheck_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SSLHealthCheck_descriptor, @@ -45741,7 +45839,7 @@ private static void _clinit_autosplit_dinit_2() { "Port", "PortName", "PortSpecification", "ProxyHeader", "Request", "Response", }); internal_static_google_cloud_compute_v1_SavedAttachedDisk_descriptor = - getDescriptor().getMessageTypes().get(1256); + getDescriptor().getMessageTypes().get(1259); internal_static_google_cloud_compute_v1_SavedAttachedDisk_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SavedAttachedDisk_descriptor, @@ -45764,7 +45862,7 @@ private static void _clinit_autosplit_dinit_2() { "Type", }); internal_static_google_cloud_compute_v1_SavedDisk_descriptor = - getDescriptor().getMessageTypes().get(1257); + getDescriptor().getMessageTypes().get(1260); internal_static_google_cloud_compute_v1_SavedDisk_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SavedDisk_descriptor, @@ -45772,7 +45870,7 @@ private static void _clinit_autosplit_dinit_2() { "Architecture", "Kind", "SourceDisk", "StorageBytes", "StorageBytesStatus", }); internal_static_google_cloud_compute_v1_ScalingScheduleStatus_descriptor = - getDescriptor().getMessageTypes().get(1258); + getDescriptor().getMessageTypes().get(1261); internal_static_google_cloud_compute_v1_ScalingScheduleStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ScalingScheduleStatus_descriptor, @@ -45780,7 +45878,7 @@ private static void _clinit_autosplit_dinit_2() { "LastStartTime", "NextStartTime", "State", }); internal_static_google_cloud_compute_v1_Scheduling_descriptor = - getDescriptor().getMessageTypes().get(1259); + getDescriptor().getMessageTypes().get(1262); internal_static_google_cloud_compute_v1_Scheduling_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Scheduling_descriptor, @@ -45801,7 +45899,7 @@ private static void _clinit_autosplit_dinit_2() { "TerminationTime", }); internal_static_google_cloud_compute_v1_SchedulingNodeAffinity_descriptor = - getDescriptor().getMessageTypes().get(1260); + getDescriptor().getMessageTypes().get(1263); internal_static_google_cloud_compute_v1_SchedulingNodeAffinity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SchedulingNodeAffinity_descriptor, @@ -45809,7 +45907,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Operator", "Values", }); internal_static_google_cloud_compute_v1_SchedulingOnInstanceStopAction_descriptor = - getDescriptor().getMessageTypes().get(1261); + getDescriptor().getMessageTypes().get(1264); internal_static_google_cloud_compute_v1_SchedulingOnInstanceStopAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SchedulingOnInstanceStopAction_descriptor, @@ -45817,7 +45915,7 @@ private static void _clinit_autosplit_dinit_2() { "DiscardLocalSsd", }); internal_static_google_cloud_compute_v1_Screenshot_descriptor = - getDescriptor().getMessageTypes().get(1262); + getDescriptor().getMessageTypes().get(1265); internal_static_google_cloud_compute_v1_Screenshot_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Screenshot_descriptor, @@ -45825,7 +45923,7 @@ private static void _clinit_autosplit_dinit_2() { "Contents", "Kind", }); internal_static_google_cloud_compute_v1_SecurityPoliciesAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1263); + getDescriptor().getMessageTypes().get(1266); internal_static_google_cloud_compute_v1_SecurityPoliciesAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPoliciesAggregatedList_descriptor, @@ -45843,7 +45941,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SecurityPoliciesListPreconfiguredExpressionSetsResponse_descriptor = - getDescriptor().getMessageTypes().get(1264); + getDescriptor().getMessageTypes().get(1267); internal_static_google_cloud_compute_v1_SecurityPoliciesListPreconfiguredExpressionSetsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPoliciesListPreconfiguredExpressionSetsResponse_descriptor, @@ -45851,7 +45949,7 @@ private static void _clinit_autosplit_dinit_2() { "PreconfiguredExpressionSets", }); internal_static_google_cloud_compute_v1_SecurityPoliciesScopedList_descriptor = - getDescriptor().getMessageTypes().get(1265); + getDescriptor().getMessageTypes().get(1268); internal_static_google_cloud_compute_v1_SecurityPoliciesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPoliciesScopedList_descriptor, @@ -45859,7 +45957,7 @@ private static void _clinit_autosplit_dinit_2() { "SecurityPolicies", "Warning", }); internal_static_google_cloud_compute_v1_SecurityPoliciesWafConfig_descriptor = - getDescriptor().getMessageTypes().get(1266); + getDescriptor().getMessageTypes().get(1269); internal_static_google_cloud_compute_v1_SecurityPoliciesWafConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPoliciesWafConfig_descriptor, @@ -45867,7 +45965,7 @@ private static void _clinit_autosplit_dinit_2() { "WafRules", }); internal_static_google_cloud_compute_v1_SecurityPolicy_descriptor = - getDescriptor().getMessageTypes().get(1267); + getDescriptor().getMessageTypes().get(1270); internal_static_google_cloud_compute_v1_SecurityPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicy_descriptor, @@ -45899,7 +45997,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfig_descriptor = - getDescriptor().getMessageTypes().get(1268); + getDescriptor().getMessageTypes().get(1271); internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfig_descriptor, @@ -45907,7 +46005,7 @@ private static void _clinit_autosplit_dinit_2() { "Layer7DdosDefenseConfig", }); internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig_descriptor = - getDescriptor().getMessageTypes().get(1269); + getDescriptor().getMessageTypes().get(1272); internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig_descriptor, @@ -45915,7 +46013,7 @@ private static void _clinit_autosplit_dinit_2() { "Enable", "RuleVisibility", "ThresholdConfigs", }); internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig_descriptor = - getDescriptor().getMessageTypes().get(1270); + getDescriptor().getMessageTypes().get(1273); internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig_descriptor, @@ -45931,7 +46029,7 @@ private static void _clinit_autosplit_dinit_2() { "TrafficGranularityConfigs", }); internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig_descriptor = - getDescriptor().getMessageTypes().get(1271); + getDescriptor().getMessageTypes().get(1274); internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig_descriptor, @@ -45939,7 +46037,7 @@ private static void _clinit_autosplit_dinit_2() { "EnableEachUniqueValue", "Type", "Value", }); internal_static_google_cloud_compute_v1_SecurityPolicyAdvancedOptionsConfig_descriptor = - getDescriptor().getMessageTypes().get(1272); + getDescriptor().getMessageTypes().get(1275); internal_static_google_cloud_compute_v1_SecurityPolicyAdvancedOptionsConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyAdvancedOptionsConfig_descriptor, @@ -45947,7 +46045,7 @@ private static void _clinit_autosplit_dinit_2() { "JsonCustomConfig", "JsonParsing", "LogLevel", "UserIpRequestHeaders", }); internal_static_google_cloud_compute_v1_SecurityPolicyAdvancedOptionsConfigJsonCustomConfig_descriptor = - getDescriptor().getMessageTypes().get(1273); + getDescriptor().getMessageTypes().get(1276); internal_static_google_cloud_compute_v1_SecurityPolicyAdvancedOptionsConfigJsonCustomConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyAdvancedOptionsConfigJsonCustomConfig_descriptor, @@ -45955,7 +46053,7 @@ private static void _clinit_autosplit_dinit_2() { "ContentTypes", }); internal_static_google_cloud_compute_v1_SecurityPolicyDdosProtectionConfig_descriptor = - getDescriptor().getMessageTypes().get(1274); + getDescriptor().getMessageTypes().get(1277); internal_static_google_cloud_compute_v1_SecurityPolicyDdosProtectionConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyDdosProtectionConfig_descriptor, @@ -45963,7 +46061,7 @@ private static void _clinit_autosplit_dinit_2() { "DdosProtection", }); internal_static_google_cloud_compute_v1_SecurityPolicyList_descriptor = - getDescriptor().getMessageTypes().get(1275); + getDescriptor().getMessageTypes().get(1278); internal_static_google_cloud_compute_v1_SecurityPolicyList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyList_descriptor, @@ -45971,7 +46069,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "Warning", }); internal_static_google_cloud_compute_v1_SecurityPolicyRecaptchaOptionsConfig_descriptor = - getDescriptor().getMessageTypes().get(1276); + getDescriptor().getMessageTypes().get(1279); internal_static_google_cloud_compute_v1_SecurityPolicyRecaptchaOptionsConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRecaptchaOptionsConfig_descriptor, @@ -45979,7 +46077,7 @@ private static void _clinit_autosplit_dinit_2() { "RedirectSiteKey", }); internal_static_google_cloud_compute_v1_SecurityPolicyReference_descriptor = - getDescriptor().getMessageTypes().get(1277); + getDescriptor().getMessageTypes().get(1280); internal_static_google_cloud_compute_v1_SecurityPolicyReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyReference_descriptor, @@ -45987,7 +46085,7 @@ private static void _clinit_autosplit_dinit_2() { "SecurityPolicy", }); internal_static_google_cloud_compute_v1_SecurityPolicyRule_descriptor = - getDescriptor().getMessageTypes().get(1278); + getDescriptor().getMessageTypes().get(1281); internal_static_google_cloud_compute_v1_SecurityPolicyRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRule_descriptor, @@ -46005,7 +46103,7 @@ private static void _clinit_autosplit_dinit_2() { "RedirectOptions", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleHttpHeaderAction_descriptor = - getDescriptor().getMessageTypes().get(1279); + getDescriptor().getMessageTypes().get(1282); internal_static_google_cloud_compute_v1_SecurityPolicyRuleHttpHeaderAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleHttpHeaderAction_descriptor, @@ -46013,7 +46111,7 @@ private static void _clinit_autosplit_dinit_2() { "RequestHeadersToAdds", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleHttpHeaderActionHttpHeaderOption_descriptor = - getDescriptor().getMessageTypes().get(1280); + getDescriptor().getMessageTypes().get(1283); internal_static_google_cloud_compute_v1_SecurityPolicyRuleHttpHeaderActionHttpHeaderOption_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleHttpHeaderActionHttpHeaderOption_descriptor, @@ -46021,7 +46119,7 @@ private static void _clinit_autosplit_dinit_2() { "HeaderName", "HeaderValue", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcher_descriptor = - getDescriptor().getMessageTypes().get(1281); + getDescriptor().getMessageTypes().get(1284); internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcher_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcher_descriptor, @@ -46029,7 +46127,7 @@ private static void _clinit_autosplit_dinit_2() { "Config", "Expr", "ExprOptions", "VersionedExpr", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcherConfig_descriptor = - getDescriptor().getMessageTypes().get(1282); + getDescriptor().getMessageTypes().get(1285); internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcherConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcherConfig_descriptor, @@ -46037,7 +46135,7 @@ private static void _clinit_autosplit_dinit_2() { "SrcIpRanges", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcherExprOptions_descriptor = - getDescriptor().getMessageTypes().get(1283); + getDescriptor().getMessageTypes().get(1286); internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcherExprOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcherExprOptions_descriptor, @@ -46045,7 +46143,7 @@ private static void _clinit_autosplit_dinit_2() { "RecaptchaOptions", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions_descriptor = - getDescriptor().getMessageTypes().get(1284); + getDescriptor().getMessageTypes().get(1287); internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions_descriptor, @@ -46053,7 +46151,7 @@ private static void _clinit_autosplit_dinit_2() { "ActionTokenSiteKeys", "SessionTokenSiteKeys", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleNetworkMatcher_descriptor = - getDescriptor().getMessageTypes().get(1285); + getDescriptor().getMessageTypes().get(1288); internal_static_google_cloud_compute_v1_SecurityPolicyRuleNetworkMatcher_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleNetworkMatcher_descriptor, @@ -46068,7 +46166,7 @@ private static void _clinit_autosplit_dinit_2() { "UserDefinedFields", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch_descriptor = - getDescriptor().getMessageTypes().get(1286); + getDescriptor().getMessageTypes().get(1289); internal_static_google_cloud_compute_v1_SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch_descriptor, @@ -46076,7 +46174,7 @@ private static void _clinit_autosplit_dinit_2() { "Name", "Values", }); internal_static_google_cloud_compute_v1_SecurityPolicyRulePreconfiguredWafConfig_descriptor = - getDescriptor().getMessageTypes().get(1287); + getDescriptor().getMessageTypes().get(1290); internal_static_google_cloud_compute_v1_SecurityPolicyRulePreconfiguredWafConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRulePreconfiguredWafConfig_descriptor, @@ -46084,7 +46182,7 @@ private static void _clinit_autosplit_dinit_2() { "Exclusions", }); internal_static_google_cloud_compute_v1_SecurityPolicyRulePreconfiguredWafConfigExclusion_descriptor = - getDescriptor().getMessageTypes().get(1288); + getDescriptor().getMessageTypes().get(1291); internal_static_google_cloud_compute_v1_SecurityPolicyRulePreconfiguredWafConfigExclusion_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRulePreconfiguredWafConfigExclusion_descriptor, @@ -46097,7 +46195,7 @@ private static void _clinit_autosplit_dinit_2() { "TargetRuleSet", }); internal_static_google_cloud_compute_v1_SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams_descriptor = - getDescriptor().getMessageTypes().get(1289); + getDescriptor().getMessageTypes().get(1292); internal_static_google_cloud_compute_v1_SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams_descriptor, @@ -46105,7 +46203,7 @@ private static void _clinit_autosplit_dinit_2() { "Op", "Val", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleRateLimitOptions_descriptor = - getDescriptor().getMessageTypes().get(1290); + getDescriptor().getMessageTypes().get(1293); internal_static_google_cloud_compute_v1_SecurityPolicyRuleRateLimitOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleRateLimitOptions_descriptor, @@ -46121,7 +46219,7 @@ private static void _clinit_autosplit_dinit_2() { "RateLimitThreshold", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig_descriptor = - getDescriptor().getMessageTypes().get(1291); + getDescriptor().getMessageTypes().get(1294); internal_static_google_cloud_compute_v1_SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig_descriptor, @@ -46129,7 +46227,7 @@ private static void _clinit_autosplit_dinit_2() { "EnforceOnKeyName", "EnforceOnKeyType", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleRateLimitOptionsThreshold_descriptor = - getDescriptor().getMessageTypes().get(1292); + getDescriptor().getMessageTypes().get(1295); internal_static_google_cloud_compute_v1_SecurityPolicyRuleRateLimitOptionsThreshold_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleRateLimitOptionsThreshold_descriptor, @@ -46137,7 +46235,7 @@ private static void _clinit_autosplit_dinit_2() { "Count", "IntervalSec", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleRedirectOptions_descriptor = - getDescriptor().getMessageTypes().get(1293); + getDescriptor().getMessageTypes().get(1296); internal_static_google_cloud_compute_v1_SecurityPolicyRuleRedirectOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleRedirectOptions_descriptor, @@ -46145,7 +46243,7 @@ private static void _clinit_autosplit_dinit_2() { "Target", "Type", }); internal_static_google_cloud_compute_v1_SecurityPolicyUserDefinedField_descriptor = - getDescriptor().getMessageTypes().get(1294); + getDescriptor().getMessageTypes().get(1297); internal_static_google_cloud_compute_v1_SecurityPolicyUserDefinedField_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyUserDefinedField_descriptor, @@ -46153,7 +46251,7 @@ private static void _clinit_autosplit_dinit_2() { "Base", "Mask", "Name", "Offset", "Size", }); internal_static_google_cloud_compute_v1_SecuritySettings_descriptor = - getDescriptor().getMessageTypes().get(1295); + getDescriptor().getMessageTypes().get(1298); internal_static_google_cloud_compute_v1_SecuritySettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecuritySettings_descriptor, @@ -46161,7 +46259,7 @@ private static void _clinit_autosplit_dinit_2() { "AwsV4Authentication", "ClientTlsPolicy", "SubjectAltNames", }); internal_static_google_cloud_compute_v1_SendDiagnosticInterruptInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1296); + getDescriptor().getMessageTypes().get(1299); internal_static_google_cloud_compute_v1_SendDiagnosticInterruptInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SendDiagnosticInterruptInstanceRequest_descriptor, @@ -46169,13 +46267,13 @@ private static void _clinit_autosplit_dinit_2() { "Instance", "Project", "Zone", }); internal_static_google_cloud_compute_v1_SendDiagnosticInterruptInstanceResponse_descriptor = - getDescriptor().getMessageTypes().get(1297); + getDescriptor().getMessageTypes().get(1300); internal_static_google_cloud_compute_v1_SendDiagnosticInterruptInstanceResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SendDiagnosticInterruptInstanceResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_compute_v1_SerialPortOutput_descriptor = - getDescriptor().getMessageTypes().get(1298); + getDescriptor().getMessageTypes().get(1301); internal_static_google_cloud_compute_v1_SerialPortOutput_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SerialPortOutput_descriptor, @@ -46183,7 +46281,7 @@ private static void _clinit_autosplit_dinit_2() { "Contents", "Kind", "Next", "SelfLink", "Start", }); internal_static_google_cloud_compute_v1_ServerBinding_descriptor = - getDescriptor().getMessageTypes().get(1299); + getDescriptor().getMessageTypes().get(1302); internal_static_google_cloud_compute_v1_ServerBinding_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ServerBinding_descriptor, @@ -46191,7 +46289,7 @@ private static void _clinit_autosplit_dinit_2() { "Type", }); internal_static_google_cloud_compute_v1_ServiceAccount_descriptor = - getDescriptor().getMessageTypes().get(1300); + getDescriptor().getMessageTypes().get(1303); internal_static_google_cloud_compute_v1_ServiceAccount_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ServiceAccount_descriptor, @@ -46199,7 +46297,7 @@ private static void _clinit_autosplit_dinit_2() { "Email", "Scopes", }); internal_static_google_cloud_compute_v1_ServiceAttachment_descriptor = - getDescriptor().getMessageTypes().get(1301); + getDescriptor().getMessageTypes().get(1304); internal_static_google_cloud_compute_v1_ServiceAttachment_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ServiceAttachment_descriptor, @@ -46226,7 +46324,7 @@ private static void _clinit_autosplit_dinit_2() { "TargetService", }); internal_static_google_cloud_compute_v1_ServiceAttachmentAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1302); + getDescriptor().getMessageTypes().get(1305); internal_static_google_cloud_compute_v1_ServiceAttachmentAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ServiceAttachmentAggregatedList_descriptor, @@ -46244,7 +46342,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_ServiceAttachmentConnectedEndpoint_descriptor = - getDescriptor().getMessageTypes().get(1303); + getDescriptor().getMessageTypes().get(1306); internal_static_google_cloud_compute_v1_ServiceAttachmentConnectedEndpoint_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ServiceAttachmentConnectedEndpoint_descriptor, @@ -46256,7 +46354,7 @@ private static void _clinit_autosplit_dinit_2() { "Status", }); internal_static_google_cloud_compute_v1_ServiceAttachmentConsumerProjectLimit_descriptor = - getDescriptor().getMessageTypes().get(1304); + getDescriptor().getMessageTypes().get(1307); internal_static_google_cloud_compute_v1_ServiceAttachmentConsumerProjectLimit_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ServiceAttachmentConsumerProjectLimit_descriptor, @@ -46264,7 +46362,7 @@ private static void _clinit_autosplit_dinit_2() { "ConnectionLimit", "NetworkUrl", "ProjectIdOrNum", }); internal_static_google_cloud_compute_v1_ServiceAttachmentList_descriptor = - getDescriptor().getMessageTypes().get(1305); + getDescriptor().getMessageTypes().get(1308); internal_static_google_cloud_compute_v1_ServiceAttachmentList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ServiceAttachmentList_descriptor, @@ -46272,7 +46370,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_ServiceAttachmentsScopedList_descriptor = - getDescriptor().getMessageTypes().get(1306); + getDescriptor().getMessageTypes().get(1309); internal_static_google_cloud_compute_v1_ServiceAttachmentsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ServiceAttachmentsScopedList_descriptor, @@ -46280,7 +46378,7 @@ private static void _clinit_autosplit_dinit_2() { "ServiceAttachments", "Warning", }); internal_static_google_cloud_compute_v1_SetBackendServiceTargetSslProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1307); + getDescriptor().getMessageTypes().get(1310); internal_static_google_cloud_compute_v1_SetBackendServiceTargetSslProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetBackendServiceTargetSslProxyRequest_descriptor, @@ -46291,7 +46389,7 @@ private static void _clinit_autosplit_dinit_2() { "TargetSslProxy", }); internal_static_google_cloud_compute_v1_SetBackendServiceTargetTcpProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1308); + getDescriptor().getMessageTypes().get(1311); internal_static_google_cloud_compute_v1_SetBackendServiceTargetTcpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetBackendServiceTargetTcpProxyRequest_descriptor, @@ -46302,7 +46400,7 @@ private static void _clinit_autosplit_dinit_2() { "TargetTcpProxy", }); internal_static_google_cloud_compute_v1_SetBackupTargetPoolRequest_descriptor = - getDescriptor().getMessageTypes().get(1309); + getDescriptor().getMessageTypes().get(1312); internal_static_google_cloud_compute_v1_SetBackupTargetPoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetBackupTargetPoolRequest_descriptor, @@ -46315,7 +46413,7 @@ private static void _clinit_autosplit_dinit_2() { "TargetReferenceResource", }); internal_static_google_cloud_compute_v1_SetCertificateMapTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1310); + getDescriptor().getMessageTypes().get(1313); internal_static_google_cloud_compute_v1_SetCertificateMapTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetCertificateMapTargetHttpsProxyRequest_descriptor, @@ -46326,7 +46424,7 @@ private static void _clinit_autosplit_dinit_2() { "TargetHttpsProxy", }); internal_static_google_cloud_compute_v1_SetCertificateMapTargetSslProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1311); + getDescriptor().getMessageTypes().get(1314); internal_static_google_cloud_compute_v1_SetCertificateMapTargetSslProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetCertificateMapTargetSslProxyRequest_descriptor, @@ -46337,7 +46435,7 @@ private static void _clinit_autosplit_dinit_2() { "TargetSslProxy", }); internal_static_google_cloud_compute_v1_SetCloudArmorTierProjectRequest_descriptor = - getDescriptor().getMessageTypes().get(1312); + getDescriptor().getMessageTypes().get(1315); internal_static_google_cloud_compute_v1_SetCloudArmorTierProjectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetCloudArmorTierProjectRequest_descriptor, @@ -46345,7 +46443,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "ProjectsSetCloudArmorTierRequestResource", "RequestId", }); internal_static_google_cloud_compute_v1_SetCommonInstanceMetadataOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(1313); + getDescriptor().getMessageTypes().get(1316); internal_static_google_cloud_compute_v1_SetCommonInstanceMetadataOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetCommonInstanceMetadataOperationMetadata_descriptor, @@ -46363,7 +46461,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo_descriptor = - getDescriptor().getMessageTypes().get(1314); + getDescriptor().getMessageTypes().get(1317); internal_static_google_cloud_compute_v1_SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo_descriptor, @@ -46371,7 +46469,7 @@ private static void _clinit_autosplit_dinit_2() { "Error", "State", }); internal_static_google_cloud_compute_v1_SetCommonInstanceMetadataProjectRequest_descriptor = - getDescriptor().getMessageTypes().get(1315); + getDescriptor().getMessageTypes().get(1318); internal_static_google_cloud_compute_v1_SetCommonInstanceMetadataProjectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetCommonInstanceMetadataProjectRequest_descriptor, @@ -46379,7 +46477,7 @@ private static void _clinit_autosplit_dinit_2() { "MetadataResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_SetDefaultNetworkTierProjectRequest_descriptor = - getDescriptor().getMessageTypes().get(1316); + getDescriptor().getMessageTypes().get(1319); internal_static_google_cloud_compute_v1_SetDefaultNetworkTierProjectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetDefaultNetworkTierProjectRequest_descriptor, @@ -46387,7 +46485,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "ProjectsSetDefaultNetworkTierRequestResource", "RequestId", }); internal_static_google_cloud_compute_v1_SetDeletionProtectionInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1317); + getDescriptor().getMessageTypes().get(1320); internal_static_google_cloud_compute_v1_SetDeletionProtectionInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetDeletionProtectionInstanceRequest_descriptor, @@ -46395,7 +46493,7 @@ private static void _clinit_autosplit_dinit_2() { "DeletionProtection", "Project", "RequestId", "Resource", "Zone", }); internal_static_google_cloud_compute_v1_SetDiskAutoDeleteInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1318); + getDescriptor().getMessageTypes().get(1321); internal_static_google_cloud_compute_v1_SetDiskAutoDeleteInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetDiskAutoDeleteInstanceRequest_descriptor, @@ -46403,7 +46501,7 @@ private static void _clinit_autosplit_dinit_2() { "AutoDelete", "DeviceName", "Instance", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_SetEdgeSecurityPolicyBackendBucketRequest_descriptor = - getDescriptor().getMessageTypes().get(1319); + getDescriptor().getMessageTypes().get(1322); internal_static_google_cloud_compute_v1_SetEdgeSecurityPolicyBackendBucketRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetEdgeSecurityPolicyBackendBucketRequest_descriptor, @@ -46411,7 +46509,7 @@ private static void _clinit_autosplit_dinit_2() { "BackendBucket", "Project", "RequestId", "SecurityPolicyReferenceResource", }); internal_static_google_cloud_compute_v1_SetEdgeSecurityPolicyBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1320); + getDescriptor().getMessageTypes().get(1323); internal_static_google_cloud_compute_v1_SetEdgeSecurityPolicyBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetEdgeSecurityPolicyBackendServiceRequest_descriptor, @@ -46419,7 +46517,7 @@ private static void _clinit_autosplit_dinit_2() { "BackendService", "Project", "RequestId", "SecurityPolicyReferenceResource", }); internal_static_google_cloud_compute_v1_SetIamPolicyBackendBucketRequest_descriptor = - getDescriptor().getMessageTypes().get(1321); + getDescriptor().getMessageTypes().get(1324); internal_static_google_cloud_compute_v1_SetIamPolicyBackendBucketRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyBackendBucketRequest_descriptor, @@ -46427,7 +46525,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetPolicyRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1322); + getDescriptor().getMessageTypes().get(1325); internal_static_google_cloud_compute_v1_SetIamPolicyBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyBackendServiceRequest_descriptor, @@ -46435,7 +46533,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetPolicyRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1323); + getDescriptor().getMessageTypes().get(1326); internal_static_google_cloud_compute_v1_SetIamPolicyDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyDiskRequest_descriptor, @@ -46443,7 +46541,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Resource", "Zone", "ZoneSetPolicyRequestResource", }); internal_static_google_cloud_compute_v1_SetIamPolicyFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1324); + getDescriptor().getMessageTypes().get(1327); internal_static_google_cloud_compute_v1_SetIamPolicyFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyFirewallPolicyRequest_descriptor, @@ -46451,7 +46549,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalOrganizationSetPolicyRequestResource", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyImageRequest_descriptor = - getDescriptor().getMessageTypes().get(1325); + getDescriptor().getMessageTypes().get(1328); internal_static_google_cloud_compute_v1_SetIamPolicyImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyImageRequest_descriptor, @@ -46459,7 +46557,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetPolicyRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1326); + getDescriptor().getMessageTypes().get(1329); internal_static_google_cloud_compute_v1_SetIamPolicyInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyInstanceRequest_descriptor, @@ -46467,7 +46565,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Resource", "Zone", "ZoneSetPolicyRequestResource", }); internal_static_google_cloud_compute_v1_SetIamPolicyInstanceTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(1327); + getDescriptor().getMessageTypes().get(1330); internal_static_google_cloud_compute_v1_SetIamPolicyInstanceTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyInstanceTemplateRequest_descriptor, @@ -46475,7 +46573,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetPolicyRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyInstantSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(1328); + getDescriptor().getMessageTypes().get(1331); internal_static_google_cloud_compute_v1_SetIamPolicyInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyInstantSnapshotRequest_descriptor, @@ -46483,7 +46581,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Resource", "Zone", "ZoneSetPolicyRequestResource", }); internal_static_google_cloud_compute_v1_SetIamPolicyInterconnectAttachmentGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(1329); + getDescriptor().getMessageTypes().get(1332); internal_static_google_cloud_compute_v1_SetIamPolicyInterconnectAttachmentGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyInterconnectAttachmentGroupRequest_descriptor, @@ -46491,7 +46589,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetPolicyRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyInterconnectGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(1330); + getDescriptor().getMessageTypes().get(1333); internal_static_google_cloud_compute_v1_SetIamPolicyInterconnectGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyInterconnectGroupRequest_descriptor, @@ -46499,7 +46597,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetPolicyRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyLicenseRequest_descriptor = - getDescriptor().getMessageTypes().get(1331); + getDescriptor().getMessageTypes().get(1334); internal_static_google_cloud_compute_v1_SetIamPolicyLicenseRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyLicenseRequest_descriptor, @@ -46507,7 +46605,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetPolicyRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyMachineImageRequest_descriptor = - getDescriptor().getMessageTypes().get(1332); + getDescriptor().getMessageTypes().get(1335); internal_static_google_cloud_compute_v1_SetIamPolicyMachineImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyMachineImageRequest_descriptor, @@ -46515,7 +46613,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetPolicyRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyNetworkAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(1333); + getDescriptor().getMessageTypes().get(1336); internal_static_google_cloud_compute_v1_SetIamPolicyNetworkAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyNetworkAttachmentRequest_descriptor, @@ -46523,7 +46621,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetPolicyRequestResource", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1334); + getDescriptor().getMessageTypes().get(1337); internal_static_google_cloud_compute_v1_SetIamPolicyNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyNetworkFirewallPolicyRequest_descriptor, @@ -46531,7 +46629,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetPolicyRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyNodeGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(1335); + getDescriptor().getMessageTypes().get(1338); internal_static_google_cloud_compute_v1_SetIamPolicyNodeGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyNodeGroupRequest_descriptor, @@ -46539,7 +46637,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Resource", "Zone", "ZoneSetPolicyRequestResource", }); internal_static_google_cloud_compute_v1_SetIamPolicyNodeTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(1336); + getDescriptor().getMessageTypes().get(1339); internal_static_google_cloud_compute_v1_SetIamPolicyNodeTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyNodeTemplateRequest_descriptor, @@ -46547,7 +46645,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetPolicyRequestResource", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyRegionBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1337); + getDescriptor().getMessageTypes().get(1340); internal_static_google_cloud_compute_v1_SetIamPolicyRegionBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyRegionBackendServiceRequest_descriptor, @@ -46555,7 +46653,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetPolicyRequestResource", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyRegionDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1338); + getDescriptor().getMessageTypes().get(1341); internal_static_google_cloud_compute_v1_SetIamPolicyRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyRegionDiskRequest_descriptor, @@ -46563,7 +46661,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetPolicyRequestResource", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyRegionInstantSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(1339); + getDescriptor().getMessageTypes().get(1342); internal_static_google_cloud_compute_v1_SetIamPolicyRegionInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyRegionInstantSnapshotRequest_descriptor, @@ -46571,7 +46669,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetPolicyRequestResource", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1340); + getDescriptor().getMessageTypes().get(1343); internal_static_google_cloud_compute_v1_SetIamPolicyRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyRegionNetworkFirewallPolicyRequest_descriptor, @@ -46579,7 +46677,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetPolicyRequestResource", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyReservationRequest_descriptor = - getDescriptor().getMessageTypes().get(1341); + getDescriptor().getMessageTypes().get(1344); internal_static_google_cloud_compute_v1_SetIamPolicyReservationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyReservationRequest_descriptor, @@ -46587,7 +46685,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Resource", "Zone", "ZoneSetPolicyRequestResource", }); internal_static_google_cloud_compute_v1_SetIamPolicyResourcePolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1342); + getDescriptor().getMessageTypes().get(1345); internal_static_google_cloud_compute_v1_SetIamPolicyResourcePolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyResourcePolicyRequest_descriptor, @@ -46595,7 +46693,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetPolicyRequestResource", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyServiceAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(1343); + getDescriptor().getMessageTypes().get(1346); internal_static_google_cloud_compute_v1_SetIamPolicyServiceAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyServiceAttachmentRequest_descriptor, @@ -46603,7 +46701,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetPolicyRequestResource", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicySnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(1344); + getDescriptor().getMessageTypes().get(1347); internal_static_google_cloud_compute_v1_SetIamPolicySnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicySnapshotRequest_descriptor, @@ -46611,7 +46709,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetPolicyRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyStoragePoolRequest_descriptor = - getDescriptor().getMessageTypes().get(1345); + getDescriptor().getMessageTypes().get(1348); internal_static_google_cloud_compute_v1_SetIamPolicyStoragePoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyStoragePoolRequest_descriptor, @@ -46619,7 +46717,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Resource", "Zone", "ZoneSetPolicyRequestResource", }); internal_static_google_cloud_compute_v1_SetIamPolicySubnetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(1346); + getDescriptor().getMessageTypes().get(1349); internal_static_google_cloud_compute_v1_SetIamPolicySubnetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicySubnetworkRequest_descriptor, @@ -46627,7 +46725,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetPolicyRequestResource", "Resource", }); internal_static_google_cloud_compute_v1_SetInstanceTemplateInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1347); + getDescriptor().getMessageTypes().get(1350); internal_static_google_cloud_compute_v1_SetInstanceTemplateInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetInstanceTemplateInstanceGroupManagerRequest_descriptor, @@ -46639,7 +46737,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_SetInstanceTemplateRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1348); + getDescriptor().getMessageTypes().get(1351); internal_static_google_cloud_compute_v1_SetInstanceTemplateRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetInstanceTemplateRegionInstanceGroupManagerRequest_descriptor, @@ -46651,7 +46749,7 @@ private static void _clinit_autosplit_dinit_2() { "RequestId", }); internal_static_google_cloud_compute_v1_SetLabelsAddressRequest_descriptor = - getDescriptor().getMessageTypes().get(1349); + getDescriptor().getMessageTypes().get(1352); internal_static_google_cloud_compute_v1_SetLabelsAddressRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsAddressRequest_descriptor, @@ -46659,7 +46757,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetLabelsRequestResource", "RequestId", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1350); + getDescriptor().getMessageTypes().get(1353); internal_static_google_cloud_compute_v1_SetLabelsDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsDiskRequest_descriptor, @@ -46667,7 +46765,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "RequestId", "Resource", "Zone", "ZoneSetLabelsRequestResource", }); internal_static_google_cloud_compute_v1_SetLabelsExternalVpnGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(1351); + getDescriptor().getMessageTypes().get(1354); internal_static_google_cloud_compute_v1_SetLabelsExternalVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsExternalVpnGatewayRequest_descriptor, @@ -46675,7 +46773,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetLabelsRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsForwardingRuleRequest_descriptor = - getDescriptor().getMessageTypes().get(1352); + getDescriptor().getMessageTypes().get(1355); internal_static_google_cloud_compute_v1_SetLabelsForwardingRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsForwardingRuleRequest_descriptor, @@ -46683,7 +46781,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetLabelsRequestResource", "RequestId", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsGlobalAddressRequest_descriptor = - getDescriptor().getMessageTypes().get(1353); + getDescriptor().getMessageTypes().get(1356); internal_static_google_cloud_compute_v1_SetLabelsGlobalAddressRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsGlobalAddressRequest_descriptor, @@ -46691,7 +46789,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetLabelsRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsGlobalForwardingRuleRequest_descriptor = - getDescriptor().getMessageTypes().get(1354); + getDescriptor().getMessageTypes().get(1357); internal_static_google_cloud_compute_v1_SetLabelsGlobalForwardingRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsGlobalForwardingRuleRequest_descriptor, @@ -46699,7 +46797,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetLabelsRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsImageRequest_descriptor = - getDescriptor().getMessageTypes().get(1355); + getDescriptor().getMessageTypes().get(1358); internal_static_google_cloud_compute_v1_SetLabelsImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsImageRequest_descriptor, @@ -46707,7 +46805,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetLabelsRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1356); + getDescriptor().getMessageTypes().get(1359); internal_static_google_cloud_compute_v1_SetLabelsInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsInstanceRequest_descriptor, @@ -46715,7 +46813,7 @@ private static void _clinit_autosplit_dinit_2() { "Instance", "InstancesSetLabelsRequestResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_SetLabelsInstantSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(1357); + getDescriptor().getMessageTypes().get(1360); internal_static_google_cloud_compute_v1_SetLabelsInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsInstantSnapshotRequest_descriptor, @@ -46723,7 +46821,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "RequestId", "Resource", "Zone", "ZoneSetLabelsRequestResource", }); internal_static_google_cloud_compute_v1_SetLabelsInterconnectAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(1358); + getDescriptor().getMessageTypes().get(1361); internal_static_google_cloud_compute_v1_SetLabelsInterconnectAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsInterconnectAttachmentRequest_descriptor, @@ -46731,7 +46829,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetLabelsRequestResource", "RequestId", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsInterconnectRequest_descriptor = - getDescriptor().getMessageTypes().get(1359); + getDescriptor().getMessageTypes().get(1362); internal_static_google_cloud_compute_v1_SetLabelsInterconnectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsInterconnectRequest_descriptor, @@ -46739,7 +46837,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetLabelsRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsMachineImageRequest_descriptor = - getDescriptor().getMessageTypes().get(1360); + getDescriptor().getMessageTypes().get(1363); internal_static_google_cloud_compute_v1_SetLabelsMachineImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsMachineImageRequest_descriptor, @@ -46747,7 +46845,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetLabelsRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsRegionDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1361); + getDescriptor().getMessageTypes().get(1364); internal_static_google_cloud_compute_v1_SetLabelsRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsRegionDiskRequest_descriptor, @@ -46755,7 +46853,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetLabelsRequestResource", "RequestId", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsRegionInstantSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(1362); + getDescriptor().getMessageTypes().get(1365); internal_static_google_cloud_compute_v1_SetLabelsRegionInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsRegionInstantSnapshotRequest_descriptor, @@ -46763,7 +46861,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetLabelsRequestResource", "RequestId", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsRegionSecurityPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1363); + getDescriptor().getMessageTypes().get(1366); internal_static_google_cloud_compute_v1_SetLabelsRegionSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsRegionSecurityPolicyRequest_descriptor, @@ -46771,7 +46869,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetLabelsRequestResource", "RequestId", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsSecurityPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1364); + getDescriptor().getMessageTypes().get(1367); internal_static_google_cloud_compute_v1_SetLabelsSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsSecurityPolicyRequest_descriptor, @@ -46779,7 +46877,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetLabelsRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(1365); + getDescriptor().getMessageTypes().get(1368); internal_static_google_cloud_compute_v1_SetLabelsSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsSnapshotRequest_descriptor, @@ -46787,7 +46885,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetLabelsRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsTargetVpnGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(1366); + getDescriptor().getMessageTypes().get(1369); internal_static_google_cloud_compute_v1_SetLabelsTargetVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsTargetVpnGatewayRequest_descriptor, @@ -46795,7 +46893,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetLabelsRequestResource", "RequestId", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsVpnGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(1367); + getDescriptor().getMessageTypes().get(1370); internal_static_google_cloud_compute_v1_SetLabelsVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsVpnGatewayRequest_descriptor, @@ -46803,7 +46901,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetLabelsRequestResource", "RequestId", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsVpnTunnelRequest_descriptor = - getDescriptor().getMessageTypes().get(1368); + getDescriptor().getMessageTypes().get(1371); internal_static_google_cloud_compute_v1_SetLabelsVpnTunnelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsVpnTunnelRequest_descriptor, @@ -46811,7 +46909,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetLabelsRequestResource", "RequestId", "Resource", }); internal_static_google_cloud_compute_v1_SetMachineResourcesInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1369); + getDescriptor().getMessageTypes().get(1372); internal_static_google_cloud_compute_v1_SetMachineResourcesInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetMachineResourcesInstanceRequest_descriptor, @@ -46823,7 +46921,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_SetMachineTypeInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1370); + getDescriptor().getMessageTypes().get(1373); internal_static_google_cloud_compute_v1_SetMachineTypeInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetMachineTypeInstanceRequest_descriptor, @@ -46831,15 +46929,19 @@ private static void _clinit_autosplit_dinit_2() { "Instance", "InstancesSetMachineTypeRequestResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_SetMetadataInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1371); + getDescriptor().getMessageTypes().get(1374); internal_static_google_cloud_compute_v1_SetMetadataInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetMetadataInstanceRequest_descriptor, new java.lang.String[] { "Instance", "MetadataResource", "Project", "RequestId", "Zone", }); + _clinit_autosplit_dinit_3(); + } + + private static void _clinit_autosplit_dinit_3() { internal_static_google_cloud_compute_v1_SetMinCpuPlatformInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1372); + getDescriptor().getMessageTypes().get(1375); internal_static_google_cloud_compute_v1_SetMinCpuPlatformInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetMinCpuPlatformInstanceRequest_descriptor, @@ -46851,7 +46953,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_SetNameInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1373); + getDescriptor().getMessageTypes().get(1376); internal_static_google_cloud_compute_v1_SetNameInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetNameInstanceRequest_descriptor, @@ -46859,7 +46961,7 @@ private static void _clinit_autosplit_dinit_2() { "Instance", "InstancesSetNameRequestResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_SetNamedPortsInstanceGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(1374); + getDescriptor().getMessageTypes().get(1377); internal_static_google_cloud_compute_v1_SetNamedPortsInstanceGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetNamedPortsInstanceGroupRequest_descriptor, @@ -46870,12 +46972,8 @@ private static void _clinit_autosplit_dinit_2() { "RequestId", "Zone", }); - _clinit_autosplit_dinit_3(); - } - - private static void _clinit_autosplit_dinit_3() { internal_static_google_cloud_compute_v1_SetNamedPortsRegionInstanceGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(1375); + getDescriptor().getMessageTypes().get(1378); internal_static_google_cloud_compute_v1_SetNamedPortsRegionInstanceGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetNamedPortsRegionInstanceGroupRequest_descriptor, @@ -46887,7 +46985,7 @@ private static void _clinit_autosplit_dinit_3() { "RequestId", }); internal_static_google_cloud_compute_v1_SetNodeTemplateNodeGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(1376); + getDescriptor().getMessageTypes().get(1379); internal_static_google_cloud_compute_v1_SetNodeTemplateNodeGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetNodeTemplateNodeGroupRequest_descriptor, @@ -46899,7 +46997,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_SetPrivateIpGoogleAccessSubnetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(1377); + getDescriptor().getMessageTypes().get(1380); internal_static_google_cloud_compute_v1_SetPrivateIpGoogleAccessSubnetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetPrivateIpGoogleAccessSubnetworkRequest_descriptor, @@ -46911,7 +47009,7 @@ private static void _clinit_autosplit_dinit_3() { "SubnetworksSetPrivateIpGoogleAccessRequestResource", }); internal_static_google_cloud_compute_v1_SetProxyHeaderTargetSslProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1378); + getDescriptor().getMessageTypes().get(1381); internal_static_google_cloud_compute_v1_SetProxyHeaderTargetSslProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetProxyHeaderTargetSslProxyRequest_descriptor, @@ -46922,7 +47020,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetSslProxy", }); internal_static_google_cloud_compute_v1_SetProxyHeaderTargetTcpProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1379); + getDescriptor().getMessageTypes().get(1382); internal_static_google_cloud_compute_v1_SetProxyHeaderTargetTcpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetProxyHeaderTargetTcpProxyRequest_descriptor, @@ -46933,7 +47031,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetTcpProxy", }); internal_static_google_cloud_compute_v1_SetQuicOverrideTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1380); + getDescriptor().getMessageTypes().get(1383); internal_static_google_cloud_compute_v1_SetQuicOverrideTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetQuicOverrideTargetHttpsProxyRequest_descriptor, @@ -46944,7 +47042,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetHttpsProxy", }); internal_static_google_cloud_compute_v1_SetSchedulingInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1381); + getDescriptor().getMessageTypes().get(1384); internal_static_google_cloud_compute_v1_SetSchedulingInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSchedulingInstanceRequest_descriptor, @@ -46952,7 +47050,7 @@ private static void _clinit_autosplit_dinit_3() { "Instance", "Project", "RequestId", "SchedulingResource", "Zone", }); internal_static_google_cloud_compute_v1_SetSecurityPolicyBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1382); + getDescriptor().getMessageTypes().get(1385); internal_static_google_cloud_compute_v1_SetSecurityPolicyBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSecurityPolicyBackendServiceRequest_descriptor, @@ -46960,7 +47058,7 @@ private static void _clinit_autosplit_dinit_3() { "BackendService", "Project", "RequestId", "SecurityPolicyReferenceResource", }); internal_static_google_cloud_compute_v1_SetSecurityPolicyInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1383); + getDescriptor().getMessageTypes().get(1386); internal_static_google_cloud_compute_v1_SetSecurityPolicyInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSecurityPolicyInstanceRequest_descriptor, @@ -46972,7 +47070,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_SetSecurityPolicyRegionBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1384); + getDescriptor().getMessageTypes().get(1387); internal_static_google_cloud_compute_v1_SetSecurityPolicyRegionBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSecurityPolicyRegionBackendServiceRequest_descriptor, @@ -46980,7 +47078,7 @@ private static void _clinit_autosplit_dinit_3() { "BackendService", "Project", "Region", "RequestId", "SecurityPolicyReferenceResource", }); internal_static_google_cloud_compute_v1_SetSecurityPolicyTargetInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1385); + getDescriptor().getMessageTypes().get(1388); internal_static_google_cloud_compute_v1_SetSecurityPolicyTargetInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSecurityPolicyTargetInstanceRequest_descriptor, @@ -46988,7 +47086,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "RequestId", "SecurityPolicyReferenceResource", "TargetInstance", "Zone", }); internal_static_google_cloud_compute_v1_SetSecurityPolicyTargetPoolRequest_descriptor = - getDescriptor().getMessageTypes().get(1386); + getDescriptor().getMessageTypes().get(1389); internal_static_google_cloud_compute_v1_SetSecurityPolicyTargetPoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSecurityPolicyTargetPoolRequest_descriptor, @@ -46996,7 +47094,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "RequestId", "SecurityPolicyReferenceResource", "TargetPool", }); internal_static_google_cloud_compute_v1_SetServiceAccountInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1387); + getDescriptor().getMessageTypes().get(1390); internal_static_google_cloud_compute_v1_SetServiceAccountInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetServiceAccountInstanceRequest_descriptor, @@ -47008,7 +47106,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_SetShieldedInstanceIntegrityPolicyInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1388); + getDescriptor().getMessageTypes().get(1391); internal_static_google_cloud_compute_v1_SetShieldedInstanceIntegrityPolicyInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetShieldedInstanceIntegrityPolicyInstanceRequest_descriptor, @@ -47016,7 +47114,7 @@ private static void _clinit_autosplit_dinit_3() { "Instance", "Project", "RequestId", "ShieldedInstanceIntegrityPolicyResource", "Zone", }); internal_static_google_cloud_compute_v1_SetSslCertificatesRegionTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1389); + getDescriptor().getMessageTypes().get(1392); internal_static_google_cloud_compute_v1_SetSslCertificatesRegionTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSslCertificatesRegionTargetHttpsProxyRequest_descriptor, @@ -47028,7 +47126,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetHttpsProxy", }); internal_static_google_cloud_compute_v1_SetSslCertificatesTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1390); + getDescriptor().getMessageTypes().get(1393); internal_static_google_cloud_compute_v1_SetSslCertificatesTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSslCertificatesTargetHttpsProxyRequest_descriptor, @@ -47039,7 +47137,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetHttpsProxy", }); internal_static_google_cloud_compute_v1_SetSslCertificatesTargetSslProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1391); + getDescriptor().getMessageTypes().get(1394); internal_static_google_cloud_compute_v1_SetSslCertificatesTargetSslProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSslCertificatesTargetSslProxyRequest_descriptor, @@ -47050,7 +47148,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetSslProxy", }); internal_static_google_cloud_compute_v1_SetSslPolicyTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1392); + getDescriptor().getMessageTypes().get(1395); internal_static_google_cloud_compute_v1_SetSslPolicyTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSslPolicyTargetHttpsProxyRequest_descriptor, @@ -47058,7 +47156,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "RequestId", "SslPolicyReferenceResource", "TargetHttpsProxy", }); internal_static_google_cloud_compute_v1_SetSslPolicyTargetSslProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1393); + getDescriptor().getMessageTypes().get(1396); internal_static_google_cloud_compute_v1_SetSslPolicyTargetSslProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSslPolicyTargetSslProxyRequest_descriptor, @@ -47066,7 +47164,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "RequestId", "SslPolicyReferenceResource", "TargetSslProxy", }); internal_static_google_cloud_compute_v1_SetTagsInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1394); + getDescriptor().getMessageTypes().get(1397); internal_static_google_cloud_compute_v1_SetTagsInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetTagsInstanceRequest_descriptor, @@ -47074,7 +47172,7 @@ private static void _clinit_autosplit_dinit_3() { "Instance", "Project", "RequestId", "TagsResource", "Zone", }); internal_static_google_cloud_compute_v1_SetTargetForwardingRuleRequest_descriptor = - getDescriptor().getMessageTypes().get(1395); + getDescriptor().getMessageTypes().get(1398); internal_static_google_cloud_compute_v1_SetTargetForwardingRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetTargetForwardingRuleRequest_descriptor, @@ -47082,7 +47180,7 @@ private static void _clinit_autosplit_dinit_3() { "ForwardingRule", "Project", "Region", "RequestId", "TargetReferenceResource", }); internal_static_google_cloud_compute_v1_SetTargetGlobalForwardingRuleRequest_descriptor = - getDescriptor().getMessageTypes().get(1396); + getDescriptor().getMessageTypes().get(1399); internal_static_google_cloud_compute_v1_SetTargetGlobalForwardingRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetTargetGlobalForwardingRuleRequest_descriptor, @@ -47090,7 +47188,7 @@ private static void _clinit_autosplit_dinit_3() { "ForwardingRule", "Project", "RequestId", "TargetReferenceResource", }); internal_static_google_cloud_compute_v1_SetTargetPoolsInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1397); + getDescriptor().getMessageTypes().get(1400); internal_static_google_cloud_compute_v1_SetTargetPoolsInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetTargetPoolsInstanceGroupManagerRequest_descriptor, @@ -47102,7 +47200,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_SetTargetPoolsRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1398); + getDescriptor().getMessageTypes().get(1401); internal_static_google_cloud_compute_v1_SetTargetPoolsRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetTargetPoolsRegionInstanceGroupManagerRequest_descriptor, @@ -47114,7 +47212,7 @@ private static void _clinit_autosplit_dinit_3() { "RequestId", }); internal_static_google_cloud_compute_v1_SetUrlMapRegionTargetHttpProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1399); + getDescriptor().getMessageTypes().get(1402); internal_static_google_cloud_compute_v1_SetUrlMapRegionTargetHttpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetUrlMapRegionTargetHttpProxyRequest_descriptor, @@ -47122,7 +47220,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "RequestId", "TargetHttpProxy", "UrlMapReferenceResource", }); internal_static_google_cloud_compute_v1_SetUrlMapRegionTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1400); + getDescriptor().getMessageTypes().get(1403); internal_static_google_cloud_compute_v1_SetUrlMapRegionTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetUrlMapRegionTargetHttpsProxyRequest_descriptor, @@ -47130,7 +47228,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "RequestId", "TargetHttpsProxy", "UrlMapReferenceResource", }); internal_static_google_cloud_compute_v1_SetUrlMapTargetHttpProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1401); + getDescriptor().getMessageTypes().get(1404); internal_static_google_cloud_compute_v1_SetUrlMapTargetHttpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetUrlMapTargetHttpProxyRequest_descriptor, @@ -47138,7 +47236,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "RequestId", "TargetHttpProxy", "UrlMapReferenceResource", }); internal_static_google_cloud_compute_v1_SetUrlMapTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1402); + getDescriptor().getMessageTypes().get(1405); internal_static_google_cloud_compute_v1_SetUrlMapTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetUrlMapTargetHttpsProxyRequest_descriptor, @@ -47146,7 +47244,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "RequestId", "TargetHttpsProxy", "UrlMapReferenceResource", }); internal_static_google_cloud_compute_v1_SetUsageExportBucketProjectRequest_descriptor = - getDescriptor().getMessageTypes().get(1403); + getDescriptor().getMessageTypes().get(1406); internal_static_google_cloud_compute_v1_SetUsageExportBucketProjectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetUsageExportBucketProjectRequest_descriptor, @@ -47154,7 +47252,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "RequestId", "UsageExportLocationResource", }); internal_static_google_cloud_compute_v1_ShareSettings_descriptor = - getDescriptor().getMessageTypes().get(1404); + getDescriptor().getMessageTypes().get(1407); internal_static_google_cloud_compute_v1_ShareSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ShareSettings_descriptor, @@ -47170,7 +47268,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_ShareSettingsProjectConfig_descriptor = - getDescriptor().getMessageTypes().get(1405); + getDescriptor().getMessageTypes().get(1408); internal_static_google_cloud_compute_v1_ShareSettingsProjectConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ShareSettingsProjectConfig_descriptor, @@ -47178,7 +47276,7 @@ private static void _clinit_autosplit_dinit_3() { "ProjectId", }); internal_static_google_cloud_compute_v1_ShieldedInstanceConfig_descriptor = - getDescriptor().getMessageTypes().get(1406); + getDescriptor().getMessageTypes().get(1409); internal_static_google_cloud_compute_v1_ShieldedInstanceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ShieldedInstanceConfig_descriptor, @@ -47186,7 +47284,7 @@ private static void _clinit_autosplit_dinit_3() { "EnableIntegrityMonitoring", "EnableSecureBoot", "EnableVtpm", }); internal_static_google_cloud_compute_v1_ShieldedInstanceIdentity_descriptor = - getDescriptor().getMessageTypes().get(1407); + getDescriptor().getMessageTypes().get(1410); internal_static_google_cloud_compute_v1_ShieldedInstanceIdentity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ShieldedInstanceIdentity_descriptor, @@ -47194,7 +47292,7 @@ private static void _clinit_autosplit_dinit_3() { "EncryptionKey", "Kind", "SigningKey", }); internal_static_google_cloud_compute_v1_ShieldedInstanceIdentityEntry_descriptor = - getDescriptor().getMessageTypes().get(1408); + getDescriptor().getMessageTypes().get(1411); internal_static_google_cloud_compute_v1_ShieldedInstanceIdentityEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ShieldedInstanceIdentityEntry_descriptor, @@ -47202,7 +47300,7 @@ private static void _clinit_autosplit_dinit_3() { "EkCert", "EkPub", }); internal_static_google_cloud_compute_v1_ShieldedInstanceIntegrityPolicy_descriptor = - getDescriptor().getMessageTypes().get(1409); + getDescriptor().getMessageTypes().get(1412); internal_static_google_cloud_compute_v1_ShieldedInstanceIntegrityPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ShieldedInstanceIntegrityPolicy_descriptor, @@ -47210,7 +47308,7 @@ private static void _clinit_autosplit_dinit_3() { "UpdateAutoLearnPolicy", }); internal_static_google_cloud_compute_v1_SignedUrlKey_descriptor = - getDescriptor().getMessageTypes().get(1410); + getDescriptor().getMessageTypes().get(1413); internal_static_google_cloud_compute_v1_SignedUrlKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SignedUrlKey_descriptor, @@ -47218,7 +47316,7 @@ private static void _clinit_autosplit_dinit_3() { "KeyName", "KeyValue", }); internal_static_google_cloud_compute_v1_SimulateMaintenanceEventInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1411); + getDescriptor().getMessageTypes().get(1414); internal_static_google_cloud_compute_v1_SimulateMaintenanceEventInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SimulateMaintenanceEventInstanceRequest_descriptor, @@ -47226,7 +47324,7 @@ private static void _clinit_autosplit_dinit_3() { "Instance", "Project", "RequestId", "WithExtendedNotifications", "Zone", }); internal_static_google_cloud_compute_v1_SimulateMaintenanceEventNodeGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(1412); + getDescriptor().getMessageTypes().get(1415); internal_static_google_cloud_compute_v1_SimulateMaintenanceEventNodeGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SimulateMaintenanceEventNodeGroupRequest_descriptor, @@ -47238,7 +47336,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_Snapshot_descriptor = - getDescriptor().getMessageTypes().get(1413); + getDescriptor().getMessageTypes().get(1416); internal_static_google_cloud_compute_v1_Snapshot_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Snapshot_descriptor, @@ -47290,7 +47388,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SnapshotList_descriptor = - getDescriptor().getMessageTypes().get(1414); + getDescriptor().getMessageTypes().get(1417); internal_static_google_cloud_compute_v1_SnapshotList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SnapshotList_descriptor, @@ -47298,7 +47396,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_SnapshotSettings_descriptor = - getDescriptor().getMessageTypes().get(1415); + getDescriptor().getMessageTypes().get(1418); internal_static_google_cloud_compute_v1_SnapshotSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SnapshotSettings_descriptor, @@ -47306,7 +47404,7 @@ private static void _clinit_autosplit_dinit_3() { "StorageLocation", }); internal_static_google_cloud_compute_v1_SnapshotSettingsStorageLocationSettings_descriptor = - getDescriptor().getMessageTypes().get(1416); + getDescriptor().getMessageTypes().get(1419); internal_static_google_cloud_compute_v1_SnapshotSettingsStorageLocationSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SnapshotSettingsStorageLocationSettings_descriptor, @@ -47324,7 +47422,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SnapshotSettingsStorageLocationSettingsStorageLocationPreference_descriptor = - getDescriptor().getMessageTypes().get(1417); + getDescriptor().getMessageTypes().get(1420); internal_static_google_cloud_compute_v1_SnapshotSettingsStorageLocationSettingsStorageLocationPreference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SnapshotSettingsStorageLocationSettingsStorageLocationPreference_descriptor, @@ -47332,7 +47430,7 @@ private static void _clinit_autosplit_dinit_3() { "Name", }); internal_static_google_cloud_compute_v1_SourceDiskEncryptionKey_descriptor = - getDescriptor().getMessageTypes().get(1418); + getDescriptor().getMessageTypes().get(1421); internal_static_google_cloud_compute_v1_SourceDiskEncryptionKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SourceDiskEncryptionKey_descriptor, @@ -47340,7 +47438,7 @@ private static void _clinit_autosplit_dinit_3() { "DiskEncryptionKey", "SourceDisk", }); internal_static_google_cloud_compute_v1_SourceInstanceParams_descriptor = - getDescriptor().getMessageTypes().get(1419); + getDescriptor().getMessageTypes().get(1422); internal_static_google_cloud_compute_v1_SourceInstanceParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SourceInstanceParams_descriptor, @@ -47348,7 +47446,7 @@ private static void _clinit_autosplit_dinit_3() { "DiskConfigs", }); internal_static_google_cloud_compute_v1_SourceInstanceProperties_descriptor = - getDescriptor().getMessageTypes().get(1420); + getDescriptor().getMessageTypes().get(1423); internal_static_google_cloud_compute_v1_SourceInstanceProperties_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SourceInstanceProperties_descriptor, @@ -47379,7 +47477,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SslCertificate_descriptor = - getDescriptor().getMessageTypes().get(1421); + getDescriptor().getMessageTypes().get(1424); internal_static_google_cloud_compute_v1_SslCertificate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslCertificate_descriptor, @@ -47400,7 +47498,7 @@ private static void _clinit_autosplit_dinit_3() { "Type", }); internal_static_google_cloud_compute_v1_SslCertificateAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1422); + getDescriptor().getMessageTypes().get(1425); internal_static_google_cloud_compute_v1_SslCertificateAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslCertificateAggregatedList_descriptor, @@ -47418,7 +47516,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SslCertificateList_descriptor = - getDescriptor().getMessageTypes().get(1423); + getDescriptor().getMessageTypes().get(1426); internal_static_google_cloud_compute_v1_SslCertificateList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslCertificateList_descriptor, @@ -47426,7 +47524,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_SslCertificateManagedSslCertificate_descriptor = - getDescriptor().getMessageTypes().get(1424); + getDescriptor().getMessageTypes().get(1427); internal_static_google_cloud_compute_v1_SslCertificateManagedSslCertificate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslCertificateManagedSslCertificate_descriptor, @@ -47444,7 +47542,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SslCertificateSelfManagedSslCertificate_descriptor = - getDescriptor().getMessageTypes().get(1425); + getDescriptor().getMessageTypes().get(1428); internal_static_google_cloud_compute_v1_SslCertificateSelfManagedSslCertificate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslCertificateSelfManagedSslCertificate_descriptor, @@ -47452,7 +47550,7 @@ private static void _clinit_autosplit_dinit_3() { "Certificate", "PrivateKey", }); internal_static_google_cloud_compute_v1_SslCertificatesScopedList_descriptor = - getDescriptor().getMessageTypes().get(1426); + getDescriptor().getMessageTypes().get(1429); internal_static_google_cloud_compute_v1_SslCertificatesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslCertificatesScopedList_descriptor, @@ -47460,7 +47558,7 @@ private static void _clinit_autosplit_dinit_3() { "SslCertificates", "Warning", }); internal_static_google_cloud_compute_v1_SslPoliciesAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1427); + getDescriptor().getMessageTypes().get(1430); internal_static_google_cloud_compute_v1_SslPoliciesAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslPoliciesAggregatedList_descriptor, @@ -47478,7 +47576,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SslPoliciesList_descriptor = - getDescriptor().getMessageTypes().get(1428); + getDescriptor().getMessageTypes().get(1431); internal_static_google_cloud_compute_v1_SslPoliciesList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslPoliciesList_descriptor, @@ -47486,7 +47584,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_SslPoliciesListAvailableFeaturesResponse_descriptor = - getDescriptor().getMessageTypes().get(1429); + getDescriptor().getMessageTypes().get(1432); internal_static_google_cloud_compute_v1_SslPoliciesListAvailableFeaturesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslPoliciesListAvailableFeaturesResponse_descriptor, @@ -47494,7 +47592,7 @@ private static void _clinit_autosplit_dinit_3() { "Features", }); internal_static_google_cloud_compute_v1_SslPoliciesScopedList_descriptor = - getDescriptor().getMessageTypes().get(1430); + getDescriptor().getMessageTypes().get(1433); internal_static_google_cloud_compute_v1_SslPoliciesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslPoliciesScopedList_descriptor, @@ -47502,7 +47600,7 @@ private static void _clinit_autosplit_dinit_3() { "SslPolicies", "Warning", }); internal_static_google_cloud_compute_v1_SslPolicy_descriptor = - getDescriptor().getMessageTypes().get(1431); + getDescriptor().getMessageTypes().get(1434); internal_static_google_cloud_compute_v1_SslPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslPolicy_descriptor, @@ -47522,7 +47620,7 @@ private static void _clinit_autosplit_dinit_3() { "Warnings", }); internal_static_google_cloud_compute_v1_SslPolicyReference_descriptor = - getDescriptor().getMessageTypes().get(1432); + getDescriptor().getMessageTypes().get(1435); internal_static_google_cloud_compute_v1_SslPolicyReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslPolicyReference_descriptor, @@ -47530,7 +47628,7 @@ private static void _clinit_autosplit_dinit_3() { "SslPolicy", }); internal_static_google_cloud_compute_v1_StartAsyncReplicationDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1433); + getDescriptor().getMessageTypes().get(1436); internal_static_google_cloud_compute_v1_StartAsyncReplicationDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StartAsyncReplicationDiskRequest_descriptor, @@ -47538,7 +47636,7 @@ private static void _clinit_autosplit_dinit_3() { "Disk", "DisksStartAsyncReplicationRequestResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_StartAsyncReplicationRegionDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1434); + getDescriptor().getMessageTypes().get(1437); internal_static_google_cloud_compute_v1_StartAsyncReplicationRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StartAsyncReplicationRegionDiskRequest_descriptor, @@ -47550,7 +47648,7 @@ private static void _clinit_autosplit_dinit_3() { "RequestId", }); internal_static_google_cloud_compute_v1_StartInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1435); + getDescriptor().getMessageTypes().get(1438); internal_static_google_cloud_compute_v1_StartInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StartInstanceRequest_descriptor, @@ -47558,7 +47656,7 @@ private static void _clinit_autosplit_dinit_3() { "Instance", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_StartInstancesInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1436); + getDescriptor().getMessageTypes().get(1439); internal_static_google_cloud_compute_v1_StartInstancesInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StartInstancesInstanceGroupManagerRequest_descriptor, @@ -47570,7 +47668,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_StartInstancesRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1437); + getDescriptor().getMessageTypes().get(1440); internal_static_google_cloud_compute_v1_StartInstancesRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StartInstancesRegionInstanceGroupManagerRequest_descriptor, @@ -47582,7 +47680,7 @@ private static void _clinit_autosplit_dinit_3() { "RequestId", }); internal_static_google_cloud_compute_v1_StartWithEncryptionKeyInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1438); + getDescriptor().getMessageTypes().get(1441); internal_static_google_cloud_compute_v1_StartWithEncryptionKeyInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StartWithEncryptionKeyInstanceRequest_descriptor, @@ -47594,7 +47692,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_StatefulPolicy_descriptor = - getDescriptor().getMessageTypes().get(1439); + getDescriptor().getMessageTypes().get(1442); internal_static_google_cloud_compute_v1_StatefulPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StatefulPolicy_descriptor, @@ -47602,7 +47700,7 @@ private static void _clinit_autosplit_dinit_3() { "PreservedState", }); internal_static_google_cloud_compute_v1_StatefulPolicyPreservedState_descriptor = - getDescriptor().getMessageTypes().get(1440); + getDescriptor().getMessageTypes().get(1443); internal_static_google_cloud_compute_v1_StatefulPolicyPreservedState_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StatefulPolicyPreservedState_descriptor, @@ -47640,7 +47738,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_StatefulPolicyPreservedStateDiskDevice_descriptor = - getDescriptor().getMessageTypes().get(1441); + getDescriptor().getMessageTypes().get(1444); internal_static_google_cloud_compute_v1_StatefulPolicyPreservedStateDiskDevice_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StatefulPolicyPreservedStateDiskDevice_descriptor, @@ -47648,7 +47746,7 @@ private static void _clinit_autosplit_dinit_3() { "AutoDelete", }); internal_static_google_cloud_compute_v1_StatefulPolicyPreservedStateNetworkIp_descriptor = - getDescriptor().getMessageTypes().get(1442); + getDescriptor().getMessageTypes().get(1445); internal_static_google_cloud_compute_v1_StatefulPolicyPreservedStateNetworkIp_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StatefulPolicyPreservedStateNetworkIp_descriptor, @@ -47656,7 +47754,7 @@ private static void _clinit_autosplit_dinit_3() { "AutoDelete", }); internal_static_google_cloud_compute_v1_Status_descriptor = - getDescriptor().getMessageTypes().get(1443); + getDescriptor().getMessageTypes().get(1446); internal_static_google_cloud_compute_v1_Status_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Status_descriptor, @@ -47664,7 +47762,7 @@ private static void _clinit_autosplit_dinit_3() { "Code", "Details", "Message", }); internal_static_google_cloud_compute_v1_StopAsyncReplicationDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1444); + getDescriptor().getMessageTypes().get(1447); internal_static_google_cloud_compute_v1_StopAsyncReplicationDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StopAsyncReplicationDiskRequest_descriptor, @@ -47672,7 +47770,7 @@ private static void _clinit_autosplit_dinit_3() { "Disk", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_StopAsyncReplicationRegionDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1445); + getDescriptor().getMessageTypes().get(1448); internal_static_google_cloud_compute_v1_StopAsyncReplicationRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StopAsyncReplicationRegionDiskRequest_descriptor, @@ -47680,7 +47778,7 @@ private static void _clinit_autosplit_dinit_3() { "Disk", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_StopGroupAsyncReplicationDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1446); + getDescriptor().getMessageTypes().get(1449); internal_static_google_cloud_compute_v1_StopGroupAsyncReplicationDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StopGroupAsyncReplicationDiskRequest_descriptor, @@ -47688,7 +47786,7 @@ private static void _clinit_autosplit_dinit_3() { "DisksStopGroupAsyncReplicationResourceResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_StopGroupAsyncReplicationRegionDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1447); + getDescriptor().getMessageTypes().get(1450); internal_static_google_cloud_compute_v1_StopGroupAsyncReplicationRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StopGroupAsyncReplicationRegionDiskRequest_descriptor, @@ -47696,7 +47794,7 @@ private static void _clinit_autosplit_dinit_3() { "DisksStopGroupAsyncReplicationResourceResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_StopInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1448); + getDescriptor().getMessageTypes().get(1451); internal_static_google_cloud_compute_v1_StopInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StopInstanceRequest_descriptor, @@ -47704,7 +47802,7 @@ private static void _clinit_autosplit_dinit_3() { "DiscardLocalSsd", "Instance", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_StopInstancesInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1449); + getDescriptor().getMessageTypes().get(1452); internal_static_google_cloud_compute_v1_StopInstancesInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StopInstancesInstanceGroupManagerRequest_descriptor, @@ -47716,7 +47814,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_StopInstancesRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1450); + getDescriptor().getMessageTypes().get(1453); internal_static_google_cloud_compute_v1_StopInstancesRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StopInstancesRegionInstanceGroupManagerRequest_descriptor, @@ -47728,7 +47826,7 @@ private static void _clinit_autosplit_dinit_3() { "RequestId", }); internal_static_google_cloud_compute_v1_StoragePool_descriptor = - getDescriptor().getMessageTypes().get(1451); + getDescriptor().getMessageTypes().get(1454); internal_static_google_cloud_compute_v1_StoragePool_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePool_descriptor, @@ -47762,7 +47860,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_StoragePoolAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1452); + getDescriptor().getMessageTypes().get(1455); internal_static_google_cloud_compute_v1_StoragePoolAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolAggregatedList_descriptor, @@ -47780,7 +47878,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_StoragePoolDisk_descriptor = - getDescriptor().getMessageTypes().get(1453); + getDescriptor().getMessageTypes().get(1456); internal_static_google_cloud_compute_v1_StoragePoolDisk_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolDisk_descriptor, @@ -47798,7 +47896,7 @@ private static void _clinit_autosplit_dinit_3() { "UsedBytes", }); internal_static_google_cloud_compute_v1_StoragePoolList_descriptor = - getDescriptor().getMessageTypes().get(1454); + getDescriptor().getMessageTypes().get(1457); internal_static_google_cloud_compute_v1_StoragePoolList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolList_descriptor, @@ -47806,7 +47904,7 @@ private static void _clinit_autosplit_dinit_3() { "Etag", "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Unreachables", "Warning", }); internal_static_google_cloud_compute_v1_StoragePoolListDisks_descriptor = - getDescriptor().getMessageTypes().get(1455); + getDescriptor().getMessageTypes().get(1458); internal_static_google_cloud_compute_v1_StoragePoolListDisks_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolListDisks_descriptor, @@ -47814,7 +47912,7 @@ private static void _clinit_autosplit_dinit_3() { "Etag", "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Unreachables", "Warning", }); internal_static_google_cloud_compute_v1_StoragePoolResourceStatus_descriptor = - getDescriptor().getMessageTypes().get(1456); + getDescriptor().getMessageTypes().get(1459); internal_static_google_cloud_compute_v1_StoragePoolResourceStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolResourceStatus_descriptor, @@ -47831,7 +47929,7 @@ private static void _clinit_autosplit_dinit_3() { "TotalProvisionedDiskThroughput", }); internal_static_google_cloud_compute_v1_StoragePoolType_descriptor = - getDescriptor().getMessageTypes().get(1457); + getDescriptor().getMessageTypes().get(1460); internal_static_google_cloud_compute_v1_StoragePoolType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolType_descriptor, @@ -47855,7 +47953,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_StoragePoolTypeAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1458); + getDescriptor().getMessageTypes().get(1461); internal_static_google_cloud_compute_v1_StoragePoolTypeAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolTypeAggregatedList_descriptor, @@ -47873,7 +47971,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_StoragePoolTypeList_descriptor = - getDescriptor().getMessageTypes().get(1459); + getDescriptor().getMessageTypes().get(1462); internal_static_google_cloud_compute_v1_StoragePoolTypeList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolTypeList_descriptor, @@ -47881,7 +47979,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_StoragePoolTypesScopedList_descriptor = - getDescriptor().getMessageTypes().get(1460); + getDescriptor().getMessageTypes().get(1463); internal_static_google_cloud_compute_v1_StoragePoolTypesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolTypesScopedList_descriptor, @@ -47889,7 +47987,7 @@ private static void _clinit_autosplit_dinit_3() { "StoragePoolTypes", "Warning", }); internal_static_google_cloud_compute_v1_StoragePoolsScopedList_descriptor = - getDescriptor().getMessageTypes().get(1461); + getDescriptor().getMessageTypes().get(1464); internal_static_google_cloud_compute_v1_StoragePoolsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolsScopedList_descriptor, @@ -47897,7 +47995,7 @@ private static void _clinit_autosplit_dinit_3() { "StoragePools", "Warning", }); internal_static_google_cloud_compute_v1_Subnetwork_descriptor = - getDescriptor().getMessageTypes().get(1462); + getDescriptor().getMessageTypes().get(1465); internal_static_google_cloud_compute_v1_Subnetwork_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Subnetwork_descriptor, @@ -47934,7 +48032,7 @@ private static void _clinit_autosplit_dinit_3() { "SystemReservedInternalIpv6Ranges", }); internal_static_google_cloud_compute_v1_SubnetworkAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1463); + getDescriptor().getMessageTypes().get(1466); internal_static_google_cloud_compute_v1_SubnetworkAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SubnetworkAggregatedList_descriptor, @@ -47952,7 +48050,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SubnetworkList_descriptor = - getDescriptor().getMessageTypes().get(1464); + getDescriptor().getMessageTypes().get(1467); internal_static_google_cloud_compute_v1_SubnetworkList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SubnetworkList_descriptor, @@ -47960,7 +48058,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_SubnetworkLogConfig_descriptor = - getDescriptor().getMessageTypes().get(1465); + getDescriptor().getMessageTypes().get(1468); internal_static_google_cloud_compute_v1_SubnetworkLogConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SubnetworkLogConfig_descriptor, @@ -47973,7 +48071,7 @@ private static void _clinit_autosplit_dinit_3() { "MetadataFields", }); internal_static_google_cloud_compute_v1_SubnetworkParams_descriptor = - getDescriptor().getMessageTypes().get(1466); + getDescriptor().getMessageTypes().get(1469); internal_static_google_cloud_compute_v1_SubnetworkParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SubnetworkParams_descriptor, @@ -47989,7 +48087,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SubnetworkSecondaryRange_descriptor = - getDescriptor().getMessageTypes().get(1467); + getDescriptor().getMessageTypes().get(1470); internal_static_google_cloud_compute_v1_SubnetworkSecondaryRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SubnetworkSecondaryRange_descriptor, @@ -47997,7 +48095,7 @@ private static void _clinit_autosplit_dinit_3() { "IpCidrRange", "RangeName", "ReservedInternalRange", }); internal_static_google_cloud_compute_v1_SubnetworksExpandIpCidrRangeRequest_descriptor = - getDescriptor().getMessageTypes().get(1468); + getDescriptor().getMessageTypes().get(1471); internal_static_google_cloud_compute_v1_SubnetworksExpandIpCidrRangeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SubnetworksExpandIpCidrRangeRequest_descriptor, @@ -48005,7 +48103,7 @@ private static void _clinit_autosplit_dinit_3() { "IpCidrRange", }); internal_static_google_cloud_compute_v1_SubnetworksScopedList_descriptor = - getDescriptor().getMessageTypes().get(1469); + getDescriptor().getMessageTypes().get(1472); internal_static_google_cloud_compute_v1_SubnetworksScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SubnetworksScopedList_descriptor, @@ -48013,7 +48111,7 @@ private static void _clinit_autosplit_dinit_3() { "Subnetworks", "Warning", }); internal_static_google_cloud_compute_v1_SubnetworksScopedWarning_descriptor = - getDescriptor().getMessageTypes().get(1470); + getDescriptor().getMessageTypes().get(1473); internal_static_google_cloud_compute_v1_SubnetworksScopedWarning_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SubnetworksScopedWarning_descriptor, @@ -48021,7 +48119,7 @@ private static void _clinit_autosplit_dinit_3() { "ScopeName", "Warning", }); internal_static_google_cloud_compute_v1_SubnetworksSetPrivateIpGoogleAccessRequest_descriptor = - getDescriptor().getMessageTypes().get(1471); + getDescriptor().getMessageTypes().get(1474); internal_static_google_cloud_compute_v1_SubnetworksSetPrivateIpGoogleAccessRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SubnetworksSetPrivateIpGoogleAccessRequest_descriptor, @@ -48029,7 +48127,7 @@ private static void _clinit_autosplit_dinit_3() { "PrivateIpGoogleAccess", }); internal_static_google_cloud_compute_v1_Subsetting_descriptor = - getDescriptor().getMessageTypes().get(1472); + getDescriptor().getMessageTypes().get(1475); internal_static_google_cloud_compute_v1_Subsetting_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Subsetting_descriptor, @@ -48037,7 +48135,7 @@ private static void _clinit_autosplit_dinit_3() { "Policy", }); internal_static_google_cloud_compute_v1_SuspendInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1473); + getDescriptor().getMessageTypes().get(1476); internal_static_google_cloud_compute_v1_SuspendInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SuspendInstanceRequest_descriptor, @@ -48045,7 +48143,7 @@ private static void _clinit_autosplit_dinit_3() { "DiscardLocalSsd", "Instance", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_SuspendInstancesInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1474); + getDescriptor().getMessageTypes().get(1477); internal_static_google_cloud_compute_v1_SuspendInstancesInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SuspendInstancesInstanceGroupManagerRequest_descriptor, @@ -48057,7 +48155,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_SuspendInstancesRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1475); + getDescriptor().getMessageTypes().get(1478); internal_static_google_cloud_compute_v1_SuspendInstancesRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SuspendInstancesRegionInstanceGroupManagerRequest_descriptor, @@ -48069,7 +48167,7 @@ private static void _clinit_autosplit_dinit_3() { "RequestId", }); internal_static_google_cloud_compute_v1_SwitchToCustomModeNetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(1476); + getDescriptor().getMessageTypes().get(1479); internal_static_google_cloud_compute_v1_SwitchToCustomModeNetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SwitchToCustomModeNetworkRequest_descriptor, @@ -48077,7 +48175,7 @@ private static void _clinit_autosplit_dinit_3() { "Network", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_TCPHealthCheck_descriptor = - getDescriptor().getMessageTypes().get(1477); + getDescriptor().getMessageTypes().get(1480); internal_static_google_cloud_compute_v1_TCPHealthCheck_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TCPHealthCheck_descriptor, @@ -48085,7 +48183,7 @@ private static void _clinit_autosplit_dinit_3() { "Port", "PortName", "PortSpecification", "ProxyHeader", "Request", "Response", }); internal_static_google_cloud_compute_v1_Tags_descriptor = - getDescriptor().getMessageTypes().get(1478); + getDescriptor().getMessageTypes().get(1481); internal_static_google_cloud_compute_v1_Tags_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Tags_descriptor, @@ -48093,7 +48191,7 @@ private static void _clinit_autosplit_dinit_3() { "Fingerprint", "Items", }); internal_static_google_cloud_compute_v1_TargetGrpcProxy_descriptor = - getDescriptor().getMessageTypes().get(1479); + getDescriptor().getMessageTypes().get(1482); internal_static_google_cloud_compute_v1_TargetGrpcProxy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetGrpcProxy_descriptor, @@ -48110,7 +48208,7 @@ private static void _clinit_autosplit_dinit_3() { "ValidateForProxyless", }); internal_static_google_cloud_compute_v1_TargetGrpcProxyList_descriptor = - getDescriptor().getMessageTypes().get(1480); + getDescriptor().getMessageTypes().get(1483); internal_static_google_cloud_compute_v1_TargetGrpcProxyList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetGrpcProxyList_descriptor, @@ -48118,7 +48216,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_TargetHttpProxiesScopedList_descriptor = - getDescriptor().getMessageTypes().get(1481); + getDescriptor().getMessageTypes().get(1484); internal_static_google_cloud_compute_v1_TargetHttpProxiesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpProxiesScopedList_descriptor, @@ -48126,7 +48224,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetHttpProxies", "Warning", }); internal_static_google_cloud_compute_v1_TargetHttpProxy_descriptor = - getDescriptor().getMessageTypes().get(1482); + getDescriptor().getMessageTypes().get(1485); internal_static_google_cloud_compute_v1_TargetHttpProxy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpProxy_descriptor, @@ -48144,7 +48242,7 @@ private static void _clinit_autosplit_dinit_3() { "UrlMap", }); internal_static_google_cloud_compute_v1_TargetHttpProxyAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1483); + getDescriptor().getMessageTypes().get(1486); internal_static_google_cloud_compute_v1_TargetHttpProxyAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpProxyAggregatedList_descriptor, @@ -48162,7 +48260,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_TargetHttpProxyList_descriptor = - getDescriptor().getMessageTypes().get(1484); + getDescriptor().getMessageTypes().get(1487); internal_static_google_cloud_compute_v1_TargetHttpProxyList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpProxyList_descriptor, @@ -48170,7 +48268,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_TargetHttpsProxiesScopedList_descriptor = - getDescriptor().getMessageTypes().get(1485); + getDescriptor().getMessageTypes().get(1488); internal_static_google_cloud_compute_v1_TargetHttpsProxiesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpsProxiesScopedList_descriptor, @@ -48178,7 +48276,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetHttpsProxies", "Warning", }); internal_static_google_cloud_compute_v1_TargetHttpsProxiesSetCertificateMapRequest_descriptor = - getDescriptor().getMessageTypes().get(1486); + getDescriptor().getMessageTypes().get(1489); internal_static_google_cloud_compute_v1_TargetHttpsProxiesSetCertificateMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpsProxiesSetCertificateMapRequest_descriptor, @@ -48186,7 +48284,7 @@ private static void _clinit_autosplit_dinit_3() { "CertificateMap", }); internal_static_google_cloud_compute_v1_TargetHttpsProxiesSetQuicOverrideRequest_descriptor = - getDescriptor().getMessageTypes().get(1487); + getDescriptor().getMessageTypes().get(1490); internal_static_google_cloud_compute_v1_TargetHttpsProxiesSetQuicOverrideRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpsProxiesSetQuicOverrideRequest_descriptor, @@ -48194,7 +48292,7 @@ private static void _clinit_autosplit_dinit_3() { "QuicOverride", }); internal_static_google_cloud_compute_v1_TargetHttpsProxiesSetSslCertificatesRequest_descriptor = - getDescriptor().getMessageTypes().get(1488); + getDescriptor().getMessageTypes().get(1491); internal_static_google_cloud_compute_v1_TargetHttpsProxiesSetSslCertificatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpsProxiesSetSslCertificatesRequest_descriptor, @@ -48202,7 +48300,7 @@ private static void _clinit_autosplit_dinit_3() { "SslCertificates", }); internal_static_google_cloud_compute_v1_TargetHttpsProxy_descriptor = - getDescriptor().getMessageTypes().get(1489); + getDescriptor().getMessageTypes().get(1492); internal_static_google_cloud_compute_v1_TargetHttpsProxy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpsProxy_descriptor, @@ -48227,7 +48325,7 @@ private static void _clinit_autosplit_dinit_3() { "UrlMap", }); internal_static_google_cloud_compute_v1_TargetHttpsProxyAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1490); + getDescriptor().getMessageTypes().get(1493); internal_static_google_cloud_compute_v1_TargetHttpsProxyAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpsProxyAggregatedList_descriptor, @@ -48245,7 +48343,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_TargetHttpsProxyList_descriptor = - getDescriptor().getMessageTypes().get(1491); + getDescriptor().getMessageTypes().get(1494); internal_static_google_cloud_compute_v1_TargetHttpsProxyList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpsProxyList_descriptor, @@ -48253,7 +48351,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_TargetInstance_descriptor = - getDescriptor().getMessageTypes().get(1492); + getDescriptor().getMessageTypes().get(1495); internal_static_google_cloud_compute_v1_TargetInstance_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetInstance_descriptor, @@ -48271,7 +48369,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_TargetInstanceAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1493); + getDescriptor().getMessageTypes().get(1496); internal_static_google_cloud_compute_v1_TargetInstanceAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetInstanceAggregatedList_descriptor, @@ -48289,7 +48387,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_TargetInstanceList_descriptor = - getDescriptor().getMessageTypes().get(1494); + getDescriptor().getMessageTypes().get(1497); internal_static_google_cloud_compute_v1_TargetInstanceList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetInstanceList_descriptor, @@ -48297,7 +48395,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_TargetInstancesScopedList_descriptor = - getDescriptor().getMessageTypes().get(1495); + getDescriptor().getMessageTypes().get(1498); internal_static_google_cloud_compute_v1_TargetInstancesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetInstancesScopedList_descriptor, @@ -48305,7 +48403,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetInstances", "Warning", }); internal_static_google_cloud_compute_v1_TargetPool_descriptor = - getDescriptor().getMessageTypes().get(1496); + getDescriptor().getMessageTypes().get(1499); internal_static_google_cloud_compute_v1_TargetPool_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetPool_descriptor, @@ -48325,7 +48423,7 @@ private static void _clinit_autosplit_dinit_3() { "SessionAffinity", }); internal_static_google_cloud_compute_v1_TargetPoolAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1497); + getDescriptor().getMessageTypes().get(1500); internal_static_google_cloud_compute_v1_TargetPoolAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetPoolAggregatedList_descriptor, @@ -48343,7 +48441,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_TargetPoolInstanceHealth_descriptor = - getDescriptor().getMessageTypes().get(1498); + getDescriptor().getMessageTypes().get(1501); internal_static_google_cloud_compute_v1_TargetPoolInstanceHealth_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetPoolInstanceHealth_descriptor, @@ -48351,7 +48449,7 @@ private static void _clinit_autosplit_dinit_3() { "HealthStatus", "Kind", }); internal_static_google_cloud_compute_v1_TargetPoolList_descriptor = - getDescriptor().getMessageTypes().get(1499); + getDescriptor().getMessageTypes().get(1502); internal_static_google_cloud_compute_v1_TargetPoolList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetPoolList_descriptor, @@ -48359,7 +48457,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_TargetPoolsAddHealthCheckRequest_descriptor = - getDescriptor().getMessageTypes().get(1500); + getDescriptor().getMessageTypes().get(1503); internal_static_google_cloud_compute_v1_TargetPoolsAddHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetPoolsAddHealthCheckRequest_descriptor, @@ -48367,7 +48465,7 @@ private static void _clinit_autosplit_dinit_3() { "HealthChecks", }); internal_static_google_cloud_compute_v1_TargetPoolsAddInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1501); + getDescriptor().getMessageTypes().get(1504); internal_static_google_cloud_compute_v1_TargetPoolsAddInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetPoolsAddInstanceRequest_descriptor, @@ -48375,7 +48473,7 @@ private static void _clinit_autosplit_dinit_3() { "Instances", }); internal_static_google_cloud_compute_v1_TargetPoolsRemoveHealthCheckRequest_descriptor = - getDescriptor().getMessageTypes().get(1502); + getDescriptor().getMessageTypes().get(1505); internal_static_google_cloud_compute_v1_TargetPoolsRemoveHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetPoolsRemoveHealthCheckRequest_descriptor, @@ -48383,7 +48481,7 @@ private static void _clinit_autosplit_dinit_3() { "HealthChecks", }); internal_static_google_cloud_compute_v1_TargetPoolsRemoveInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1503); + getDescriptor().getMessageTypes().get(1506); internal_static_google_cloud_compute_v1_TargetPoolsRemoveInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetPoolsRemoveInstanceRequest_descriptor, @@ -48391,7 +48489,7 @@ private static void _clinit_autosplit_dinit_3() { "Instances", }); internal_static_google_cloud_compute_v1_TargetPoolsScopedList_descriptor = - getDescriptor().getMessageTypes().get(1504); + getDescriptor().getMessageTypes().get(1507); internal_static_google_cloud_compute_v1_TargetPoolsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetPoolsScopedList_descriptor, @@ -48399,7 +48497,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetPools", "Warning", }); internal_static_google_cloud_compute_v1_TargetReference_descriptor = - getDescriptor().getMessageTypes().get(1505); + getDescriptor().getMessageTypes().get(1508); internal_static_google_cloud_compute_v1_TargetReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetReference_descriptor, @@ -48407,7 +48505,7 @@ private static void _clinit_autosplit_dinit_3() { "Target", }); internal_static_google_cloud_compute_v1_TargetSslProxiesSetBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1506); + getDescriptor().getMessageTypes().get(1509); internal_static_google_cloud_compute_v1_TargetSslProxiesSetBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetSslProxiesSetBackendServiceRequest_descriptor, @@ -48415,7 +48513,7 @@ private static void _clinit_autosplit_dinit_3() { "Service", }); internal_static_google_cloud_compute_v1_TargetSslProxiesSetCertificateMapRequest_descriptor = - getDescriptor().getMessageTypes().get(1507); + getDescriptor().getMessageTypes().get(1510); internal_static_google_cloud_compute_v1_TargetSslProxiesSetCertificateMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetSslProxiesSetCertificateMapRequest_descriptor, @@ -48423,7 +48521,7 @@ private static void _clinit_autosplit_dinit_3() { "CertificateMap", }); internal_static_google_cloud_compute_v1_TargetSslProxiesSetProxyHeaderRequest_descriptor = - getDescriptor().getMessageTypes().get(1508); + getDescriptor().getMessageTypes().get(1511); internal_static_google_cloud_compute_v1_TargetSslProxiesSetProxyHeaderRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetSslProxiesSetProxyHeaderRequest_descriptor, @@ -48431,7 +48529,7 @@ private static void _clinit_autosplit_dinit_3() { "ProxyHeader", }); internal_static_google_cloud_compute_v1_TargetSslProxiesSetSslCertificatesRequest_descriptor = - getDescriptor().getMessageTypes().get(1509); + getDescriptor().getMessageTypes().get(1512); internal_static_google_cloud_compute_v1_TargetSslProxiesSetSslCertificatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetSslProxiesSetSslCertificatesRequest_descriptor, @@ -48439,7 +48537,7 @@ private static void _clinit_autosplit_dinit_3() { "SslCertificates", }); internal_static_google_cloud_compute_v1_TargetSslProxy_descriptor = - getDescriptor().getMessageTypes().get(1510); + getDescriptor().getMessageTypes().get(1513); internal_static_google_cloud_compute_v1_TargetSslProxy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetSslProxy_descriptor, @@ -48457,7 +48555,7 @@ private static void _clinit_autosplit_dinit_3() { "SslPolicy", }); internal_static_google_cloud_compute_v1_TargetSslProxyList_descriptor = - getDescriptor().getMessageTypes().get(1511); + getDescriptor().getMessageTypes().get(1514); internal_static_google_cloud_compute_v1_TargetSslProxyList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetSslProxyList_descriptor, @@ -48465,7 +48563,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_TargetTcpProxiesScopedList_descriptor = - getDescriptor().getMessageTypes().get(1512); + getDescriptor().getMessageTypes().get(1515); internal_static_google_cloud_compute_v1_TargetTcpProxiesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetTcpProxiesScopedList_descriptor, @@ -48473,7 +48571,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetTcpProxies", "Warning", }); internal_static_google_cloud_compute_v1_TargetTcpProxiesSetBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1513); + getDescriptor().getMessageTypes().get(1516); internal_static_google_cloud_compute_v1_TargetTcpProxiesSetBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetTcpProxiesSetBackendServiceRequest_descriptor, @@ -48481,7 +48579,7 @@ private static void _clinit_autosplit_dinit_3() { "Service", }); internal_static_google_cloud_compute_v1_TargetTcpProxiesSetProxyHeaderRequest_descriptor = - getDescriptor().getMessageTypes().get(1514); + getDescriptor().getMessageTypes().get(1517); internal_static_google_cloud_compute_v1_TargetTcpProxiesSetProxyHeaderRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetTcpProxiesSetProxyHeaderRequest_descriptor, @@ -48489,7 +48587,7 @@ private static void _clinit_autosplit_dinit_3() { "ProxyHeader", }); internal_static_google_cloud_compute_v1_TargetTcpProxy_descriptor = - getDescriptor().getMessageTypes().get(1515); + getDescriptor().getMessageTypes().get(1518); internal_static_google_cloud_compute_v1_TargetTcpProxy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetTcpProxy_descriptor, @@ -48506,7 +48604,7 @@ private static void _clinit_autosplit_dinit_3() { "Service", }); internal_static_google_cloud_compute_v1_TargetTcpProxyAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1516); + getDescriptor().getMessageTypes().get(1519); internal_static_google_cloud_compute_v1_TargetTcpProxyAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetTcpProxyAggregatedList_descriptor, @@ -48524,7 +48622,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_TargetTcpProxyList_descriptor = - getDescriptor().getMessageTypes().get(1517); + getDescriptor().getMessageTypes().get(1520); internal_static_google_cloud_compute_v1_TargetTcpProxyList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetTcpProxyList_descriptor, @@ -48532,7 +48630,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_TargetVpnGateway_descriptor = - getDescriptor().getMessageTypes().get(1518); + getDescriptor().getMessageTypes().get(1521); internal_static_google_cloud_compute_v1_TargetVpnGateway_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetVpnGateway_descriptor, @@ -48560,7 +48658,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_TargetVpnGatewayAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1519); + getDescriptor().getMessageTypes().get(1522); internal_static_google_cloud_compute_v1_TargetVpnGatewayAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetVpnGatewayAggregatedList_descriptor, @@ -48578,7 +48676,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_TargetVpnGatewayList_descriptor = - getDescriptor().getMessageTypes().get(1520); + getDescriptor().getMessageTypes().get(1523); internal_static_google_cloud_compute_v1_TargetVpnGatewayList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetVpnGatewayList_descriptor, @@ -48586,7 +48684,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_TargetVpnGatewaysScopedList_descriptor = - getDescriptor().getMessageTypes().get(1521); + getDescriptor().getMessageTypes().get(1524); internal_static_google_cloud_compute_v1_TargetVpnGatewaysScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetVpnGatewaysScopedList_descriptor, @@ -48594,7 +48692,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetVpnGateways", "Warning", }); internal_static_google_cloud_compute_v1_TestFailure_descriptor = - getDescriptor().getMessageTypes().get(1522); + getDescriptor().getMessageTypes().get(1525); internal_static_google_cloud_compute_v1_TestFailure_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestFailure_descriptor, @@ -48610,7 +48708,7 @@ private static void _clinit_autosplit_dinit_3() { "Path", }); internal_static_google_cloud_compute_v1_TestIamPermissionsBackendBucketRequest_descriptor = - getDescriptor().getMessageTypes().get(1523); + getDescriptor().getMessageTypes().get(1526); internal_static_google_cloud_compute_v1_TestIamPermissionsBackendBucketRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsBackendBucketRequest_descriptor, @@ -48618,7 +48716,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1524); + getDescriptor().getMessageTypes().get(1527); internal_static_google_cloud_compute_v1_TestIamPermissionsBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsBackendServiceRequest_descriptor, @@ -48626,7 +48724,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1525); + getDescriptor().getMessageTypes().get(1528); internal_static_google_cloud_compute_v1_TestIamPermissionsDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsDiskRequest_descriptor, @@ -48634,7 +48732,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", "Zone", }); internal_static_google_cloud_compute_v1_TestIamPermissionsExternalVpnGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(1526); + getDescriptor().getMessageTypes().get(1529); internal_static_google_cloud_compute_v1_TestIamPermissionsExternalVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsExternalVpnGatewayRequest_descriptor, @@ -48642,7 +48740,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1527); + getDescriptor().getMessageTypes().get(1530); internal_static_google_cloud_compute_v1_TestIamPermissionsFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsFirewallPolicyRequest_descriptor, @@ -48650,7 +48748,7 @@ private static void _clinit_autosplit_dinit_3() { "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsImageRequest_descriptor = - getDescriptor().getMessageTypes().get(1528); + getDescriptor().getMessageTypes().get(1531); internal_static_google_cloud_compute_v1_TestIamPermissionsImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsImageRequest_descriptor, @@ -48658,7 +48756,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1529); + getDescriptor().getMessageTypes().get(1532); internal_static_google_cloud_compute_v1_TestIamPermissionsInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsInstanceRequest_descriptor, @@ -48666,7 +48764,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", "Zone", }); internal_static_google_cloud_compute_v1_TestIamPermissionsInstanceTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(1530); + getDescriptor().getMessageTypes().get(1533); internal_static_google_cloud_compute_v1_TestIamPermissionsInstanceTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsInstanceTemplateRequest_descriptor, @@ -48674,7 +48772,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsInstantSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(1531); + getDescriptor().getMessageTypes().get(1534); internal_static_google_cloud_compute_v1_TestIamPermissionsInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsInstantSnapshotRequest_descriptor, @@ -48682,7 +48780,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", "Zone", }); internal_static_google_cloud_compute_v1_TestIamPermissionsInterconnectAttachmentGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(1532); + getDescriptor().getMessageTypes().get(1535); internal_static_google_cloud_compute_v1_TestIamPermissionsInterconnectAttachmentGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsInterconnectAttachmentGroupRequest_descriptor, @@ -48690,7 +48788,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsInterconnectGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(1533); + getDescriptor().getMessageTypes().get(1536); internal_static_google_cloud_compute_v1_TestIamPermissionsInterconnectGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsInterconnectGroupRequest_descriptor, @@ -48698,7 +48796,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsLicenseCodeRequest_descriptor = - getDescriptor().getMessageTypes().get(1534); + getDescriptor().getMessageTypes().get(1537); internal_static_google_cloud_compute_v1_TestIamPermissionsLicenseCodeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsLicenseCodeRequest_descriptor, @@ -48706,7 +48804,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsLicenseRequest_descriptor = - getDescriptor().getMessageTypes().get(1535); + getDescriptor().getMessageTypes().get(1538); internal_static_google_cloud_compute_v1_TestIamPermissionsLicenseRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsLicenseRequest_descriptor, @@ -48714,7 +48812,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsMachineImageRequest_descriptor = - getDescriptor().getMessageTypes().get(1536); + getDescriptor().getMessageTypes().get(1539); internal_static_google_cloud_compute_v1_TestIamPermissionsMachineImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsMachineImageRequest_descriptor, @@ -48722,7 +48820,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsNetworkAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(1537); + getDescriptor().getMessageTypes().get(1540); internal_static_google_cloud_compute_v1_TestIamPermissionsNetworkAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsNetworkAttachmentRequest_descriptor, @@ -48730,7 +48828,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsNetworkEndpointGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(1538); + getDescriptor().getMessageTypes().get(1541); internal_static_google_cloud_compute_v1_TestIamPermissionsNetworkEndpointGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsNetworkEndpointGroupRequest_descriptor, @@ -48738,7 +48836,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", "Zone", }); internal_static_google_cloud_compute_v1_TestIamPermissionsNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1539); + getDescriptor().getMessageTypes().get(1542); internal_static_google_cloud_compute_v1_TestIamPermissionsNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsNetworkFirewallPolicyRequest_descriptor, @@ -48746,7 +48844,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsNodeGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(1540); + getDescriptor().getMessageTypes().get(1543); internal_static_google_cloud_compute_v1_TestIamPermissionsNodeGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsNodeGroupRequest_descriptor, @@ -48754,7 +48852,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", "Zone", }); internal_static_google_cloud_compute_v1_TestIamPermissionsNodeTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(1541); + getDescriptor().getMessageTypes().get(1544); internal_static_google_cloud_compute_v1_TestIamPermissionsNodeTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsNodeTemplateRequest_descriptor, @@ -48762,7 +48860,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsPacketMirroringRequest_descriptor = - getDescriptor().getMessageTypes().get(1542); + getDescriptor().getMessageTypes().get(1545); internal_static_google_cloud_compute_v1_TestIamPermissionsPacketMirroringRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsPacketMirroringRequest_descriptor, @@ -48770,7 +48868,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1543); + getDescriptor().getMessageTypes().get(1546); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsRegionBackendServiceRequest_descriptor, @@ -48778,7 +48876,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1544); + getDescriptor().getMessageTypes().get(1547); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsRegionDiskRequest_descriptor, @@ -48786,7 +48884,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionInstantSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(1545); + getDescriptor().getMessageTypes().get(1548); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsRegionInstantSnapshotRequest_descriptor, @@ -48794,7 +48892,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1546); + getDescriptor().getMessageTypes().get(1549); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsRegionNetworkFirewallPolicyRequest_descriptor, @@ -48802,7 +48900,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsReservationRequest_descriptor = - getDescriptor().getMessageTypes().get(1547); + getDescriptor().getMessageTypes().get(1550); internal_static_google_cloud_compute_v1_TestIamPermissionsReservationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsReservationRequest_descriptor, @@ -48810,7 +48908,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", "Zone", }); internal_static_google_cloud_compute_v1_TestIamPermissionsResourcePolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1548); + getDescriptor().getMessageTypes().get(1551); internal_static_google_cloud_compute_v1_TestIamPermissionsResourcePolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsResourcePolicyRequest_descriptor, @@ -48818,7 +48916,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsServiceAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(1549); + getDescriptor().getMessageTypes().get(1552); internal_static_google_cloud_compute_v1_TestIamPermissionsServiceAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsServiceAttachmentRequest_descriptor, @@ -48826,7 +48924,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(1550); + getDescriptor().getMessageTypes().get(1553); internal_static_google_cloud_compute_v1_TestIamPermissionsSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsSnapshotRequest_descriptor, @@ -48834,7 +48932,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsStoragePoolRequest_descriptor = - getDescriptor().getMessageTypes().get(1551); + getDescriptor().getMessageTypes().get(1554); internal_static_google_cloud_compute_v1_TestIamPermissionsStoragePoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsStoragePoolRequest_descriptor, @@ -48842,7 +48940,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", "Zone", }); internal_static_google_cloud_compute_v1_TestIamPermissionsSubnetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(1552); + getDescriptor().getMessageTypes().get(1555); internal_static_google_cloud_compute_v1_TestIamPermissionsSubnetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsSubnetworkRequest_descriptor, @@ -48850,7 +48948,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsVpnGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(1553); + getDescriptor().getMessageTypes().get(1556); internal_static_google_cloud_compute_v1_TestIamPermissionsVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsVpnGatewayRequest_descriptor, @@ -48858,7 +48956,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestPermissionsRequest_descriptor = - getDescriptor().getMessageTypes().get(1554); + getDescriptor().getMessageTypes().get(1557); internal_static_google_cloud_compute_v1_TestPermissionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestPermissionsRequest_descriptor, @@ -48866,7 +48964,7 @@ private static void _clinit_autosplit_dinit_3() { "Permissions", }); internal_static_google_cloud_compute_v1_TestPermissionsResponse_descriptor = - getDescriptor().getMessageTypes().get(1555); + getDescriptor().getMessageTypes().get(1558); internal_static_google_cloud_compute_v1_TestPermissionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestPermissionsResponse_descriptor, @@ -48874,7 +48972,7 @@ private static void _clinit_autosplit_dinit_3() { "Permissions", }); internal_static_google_cloud_compute_v1_Uint128_descriptor = - getDescriptor().getMessageTypes().get(1556); + getDescriptor().getMessageTypes().get(1559); internal_static_google_cloud_compute_v1_Uint128_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Uint128_descriptor, @@ -48882,7 +48980,7 @@ private static void _clinit_autosplit_dinit_3() { "High", "Low", }); internal_static_google_cloud_compute_v1_UpcomingMaintenance_descriptor = - getDescriptor().getMessageTypes().get(1557); + getDescriptor().getMessageTypes().get(1560); internal_static_google_cloud_compute_v1_UpcomingMaintenance_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpcomingMaintenance_descriptor, @@ -48895,7 +48993,7 @@ private static void _clinit_autosplit_dinit_3() { "WindowStartTime", }); internal_static_google_cloud_compute_v1_UpdateAccessConfigInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1558); + getDescriptor().getMessageTypes().get(1561); internal_static_google_cloud_compute_v1_UpdateAccessConfigInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateAccessConfigInstanceRequest_descriptor, @@ -48908,7 +49006,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_UpdateAutoscalerRequest_descriptor = - getDescriptor().getMessageTypes().get(1559); + getDescriptor().getMessageTypes().get(1562); internal_static_google_cloud_compute_v1_UpdateAutoscalerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateAutoscalerRequest_descriptor, @@ -48916,7 +49014,7 @@ private static void _clinit_autosplit_dinit_3() { "Autoscaler", "AutoscalerResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_UpdateBackendBucketRequest_descriptor = - getDescriptor().getMessageTypes().get(1560); + getDescriptor().getMessageTypes().get(1563); internal_static_google_cloud_compute_v1_UpdateBackendBucketRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateBackendBucketRequest_descriptor, @@ -48924,7 +49022,7 @@ private static void _clinit_autosplit_dinit_3() { "BackendBucket", "BackendBucketResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_UpdateBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1561); + getDescriptor().getMessageTypes().get(1564); internal_static_google_cloud_compute_v1_UpdateBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateBackendServiceRequest_descriptor, @@ -48932,7 +49030,7 @@ private static void _clinit_autosplit_dinit_3() { "BackendService", "BackendServiceResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_UpdateDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1562); + getDescriptor().getMessageTypes().get(1565); internal_static_google_cloud_compute_v1_UpdateDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateDiskRequest_descriptor, @@ -48940,7 +49038,7 @@ private static void _clinit_autosplit_dinit_3() { "Disk", "DiskResource", "Paths", "Project", "RequestId", "UpdateMask", "Zone", }); internal_static_google_cloud_compute_v1_UpdateDisplayDeviceInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1563); + getDescriptor().getMessageTypes().get(1566); internal_static_google_cloud_compute_v1_UpdateDisplayDeviceInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateDisplayDeviceInstanceRequest_descriptor, @@ -48948,7 +49046,7 @@ private static void _clinit_autosplit_dinit_3() { "DisplayDeviceResource", "Instance", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_UpdateFirewallRequest_descriptor = - getDescriptor().getMessageTypes().get(1564); + getDescriptor().getMessageTypes().get(1567); internal_static_google_cloud_compute_v1_UpdateFirewallRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateFirewallRequest_descriptor, @@ -48956,7 +49054,7 @@ private static void _clinit_autosplit_dinit_3() { "Firewall", "FirewallResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_UpdateHealthCheckRequest_descriptor = - getDescriptor().getMessageTypes().get(1565); + getDescriptor().getMessageTypes().get(1568); internal_static_google_cloud_compute_v1_UpdateHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateHealthCheckRequest_descriptor, @@ -48964,7 +49062,7 @@ private static void _clinit_autosplit_dinit_3() { "HealthCheck", "HealthCheckResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_UpdateInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1566); + getDescriptor().getMessageTypes().get(1569); internal_static_google_cloud_compute_v1_UpdateInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateInstanceRequest_descriptor, @@ -48978,7 +49076,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_UpdateLicenseRequest_descriptor = - getDescriptor().getMessageTypes().get(1567); + getDescriptor().getMessageTypes().get(1570); internal_static_google_cloud_compute_v1_UpdateLicenseRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateLicenseRequest_descriptor, @@ -48986,7 +49084,7 @@ private static void _clinit_autosplit_dinit_3() { "License", "LicenseResource", "Project", "RequestId", "UpdateMask", }); internal_static_google_cloud_compute_v1_UpdateNetworkInterfaceInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1568); + getDescriptor().getMessageTypes().get(1571); internal_static_google_cloud_compute_v1_UpdateNetworkInterfaceInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateNetworkInterfaceInstanceRequest_descriptor, @@ -48999,7 +49097,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_UpdatePeeringNetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(1569); + getDescriptor().getMessageTypes().get(1572); internal_static_google_cloud_compute_v1_UpdatePeeringNetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdatePeeringNetworkRequest_descriptor, @@ -49007,7 +49105,7 @@ private static void _clinit_autosplit_dinit_3() { "Network", "NetworksUpdatePeeringRequestResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_UpdatePerInstanceConfigsInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1570); + getDescriptor().getMessageTypes().get(1573); internal_static_google_cloud_compute_v1_UpdatePerInstanceConfigsInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdatePerInstanceConfigsInstanceGroupManagerRequest_descriptor, @@ -49019,7 +49117,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1571); + getDescriptor().getMessageTypes().get(1574); internal_static_google_cloud_compute_v1_UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest_descriptor, @@ -49031,7 +49129,7 @@ private static void _clinit_autosplit_dinit_3() { "RequestId", }); internal_static_google_cloud_compute_v1_UpdateRegionAutoscalerRequest_descriptor = - getDescriptor().getMessageTypes().get(1572); + getDescriptor().getMessageTypes().get(1575); internal_static_google_cloud_compute_v1_UpdateRegionAutoscalerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateRegionAutoscalerRequest_descriptor, @@ -49039,7 +49137,7 @@ private static void _clinit_autosplit_dinit_3() { "Autoscaler", "AutoscalerResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_UpdateRegionBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1573); + getDescriptor().getMessageTypes().get(1576); internal_static_google_cloud_compute_v1_UpdateRegionBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateRegionBackendServiceRequest_descriptor, @@ -49047,7 +49145,7 @@ private static void _clinit_autosplit_dinit_3() { "BackendService", "BackendServiceResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_UpdateRegionCommitmentRequest_descriptor = - getDescriptor().getMessageTypes().get(1574); + getDescriptor().getMessageTypes().get(1577); internal_static_google_cloud_compute_v1_UpdateRegionCommitmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateRegionCommitmentRequest_descriptor, @@ -49061,7 +49159,7 @@ private static void _clinit_autosplit_dinit_3() { "UpdateMask", }); internal_static_google_cloud_compute_v1_UpdateRegionDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1575); + getDescriptor().getMessageTypes().get(1578); internal_static_google_cloud_compute_v1_UpdateRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateRegionDiskRequest_descriptor, @@ -49069,7 +49167,7 @@ private static void _clinit_autosplit_dinit_3() { "Disk", "DiskResource", "Paths", "Project", "Region", "RequestId", "UpdateMask", }); internal_static_google_cloud_compute_v1_UpdateRegionHealthCheckRequest_descriptor = - getDescriptor().getMessageTypes().get(1576); + getDescriptor().getMessageTypes().get(1579); internal_static_google_cloud_compute_v1_UpdateRegionHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateRegionHealthCheckRequest_descriptor, @@ -49077,7 +49175,7 @@ private static void _clinit_autosplit_dinit_3() { "HealthCheck", "HealthCheckResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_UpdateRegionUrlMapRequest_descriptor = - getDescriptor().getMessageTypes().get(1577); + getDescriptor().getMessageTypes().get(1580); internal_static_google_cloud_compute_v1_UpdateRegionUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateRegionUrlMapRequest_descriptor, @@ -49085,7 +49183,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "RequestId", "UrlMap", "UrlMapResource", }); internal_static_google_cloud_compute_v1_UpdateReservationRequest_descriptor = - getDescriptor().getMessageTypes().get(1578); + getDescriptor().getMessageTypes().get(1581); internal_static_google_cloud_compute_v1_UpdateReservationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateReservationRequest_descriptor, @@ -49099,7 +49197,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_UpdateRoutePolicyRouterRequest_descriptor = - getDescriptor().getMessageTypes().get(1579); + getDescriptor().getMessageTypes().get(1582); internal_static_google_cloud_compute_v1_UpdateRoutePolicyRouterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateRoutePolicyRouterRequest_descriptor, @@ -49107,7 +49205,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "RequestId", "RoutePolicyResource", "Router", }); internal_static_google_cloud_compute_v1_UpdateRouterRequest_descriptor = - getDescriptor().getMessageTypes().get(1580); + getDescriptor().getMessageTypes().get(1583); internal_static_google_cloud_compute_v1_UpdateRouterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateRouterRequest_descriptor, @@ -49115,7 +49213,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "RequestId", "Router", "RouterResource", }); internal_static_google_cloud_compute_v1_UpdateShieldedInstanceConfigInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1581); + getDescriptor().getMessageTypes().get(1584); internal_static_google_cloud_compute_v1_UpdateShieldedInstanceConfigInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateShieldedInstanceConfigInstanceRequest_descriptor, @@ -49123,7 +49221,7 @@ private static void _clinit_autosplit_dinit_3() { "Instance", "Project", "RequestId", "ShieldedInstanceConfigResource", "Zone", }); internal_static_google_cloud_compute_v1_UpdateStoragePoolRequest_descriptor = - getDescriptor().getMessageTypes().get(1582); + getDescriptor().getMessageTypes().get(1585); internal_static_google_cloud_compute_v1_UpdateStoragePoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateStoragePoolRequest_descriptor, @@ -49131,7 +49229,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "RequestId", "StoragePool", "StoragePoolResource", "UpdateMask", "Zone", }); internal_static_google_cloud_compute_v1_UpdateUrlMapRequest_descriptor = - getDescriptor().getMessageTypes().get(1583); + getDescriptor().getMessageTypes().get(1586); internal_static_google_cloud_compute_v1_UpdateUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateUrlMapRequest_descriptor, @@ -49139,7 +49237,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "RequestId", "UrlMap", "UrlMapResource", }); internal_static_google_cloud_compute_v1_UrlMap_descriptor = - getDescriptor().getMessageTypes().get(1584); + getDescriptor().getMessageTypes().get(1587); internal_static_google_cloud_compute_v1_UrlMap_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlMap_descriptor, @@ -49162,7 +49260,7 @@ private static void _clinit_autosplit_dinit_3() { "Tests", }); internal_static_google_cloud_compute_v1_UrlMapList_descriptor = - getDescriptor().getMessageTypes().get(1585); + getDescriptor().getMessageTypes().get(1588); internal_static_google_cloud_compute_v1_UrlMapList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlMapList_descriptor, @@ -49170,7 +49268,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_UrlMapReference_descriptor = - getDescriptor().getMessageTypes().get(1586); + getDescriptor().getMessageTypes().get(1589); internal_static_google_cloud_compute_v1_UrlMapReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlMapReference_descriptor, @@ -49178,7 +49276,7 @@ private static void _clinit_autosplit_dinit_3() { "UrlMap", }); internal_static_google_cloud_compute_v1_UrlMapTest_descriptor = - getDescriptor().getMessageTypes().get(1587); + getDescriptor().getMessageTypes().get(1590); internal_static_google_cloud_compute_v1_UrlMapTest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlMapTest_descriptor, @@ -49192,7 +49290,7 @@ private static void _clinit_autosplit_dinit_3() { "Service", }); internal_static_google_cloud_compute_v1_UrlMapTestHeader_descriptor = - getDescriptor().getMessageTypes().get(1588); + getDescriptor().getMessageTypes().get(1591); internal_static_google_cloud_compute_v1_UrlMapTestHeader_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlMapTestHeader_descriptor, @@ -49200,7 +49298,7 @@ private static void _clinit_autosplit_dinit_3() { "Name", "Value", }); internal_static_google_cloud_compute_v1_UrlMapValidationResult_descriptor = - getDescriptor().getMessageTypes().get(1589); + getDescriptor().getMessageTypes().get(1592); internal_static_google_cloud_compute_v1_UrlMapValidationResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlMapValidationResult_descriptor, @@ -49208,7 +49306,7 @@ private static void _clinit_autosplit_dinit_3() { "LoadErrors", "LoadSucceeded", "TestFailures", "TestPassed", }); internal_static_google_cloud_compute_v1_UrlMapsAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1590); + getDescriptor().getMessageTypes().get(1593); internal_static_google_cloud_compute_v1_UrlMapsAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlMapsAggregatedList_descriptor, @@ -49226,7 +49324,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_UrlMapsScopedList_descriptor = - getDescriptor().getMessageTypes().get(1591); + getDescriptor().getMessageTypes().get(1594); internal_static_google_cloud_compute_v1_UrlMapsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlMapsScopedList_descriptor, @@ -49234,7 +49332,7 @@ private static void _clinit_autosplit_dinit_3() { "UrlMaps", "Warning", }); internal_static_google_cloud_compute_v1_UrlMapsValidateRequest_descriptor = - getDescriptor().getMessageTypes().get(1592); + getDescriptor().getMessageTypes().get(1595); internal_static_google_cloud_compute_v1_UrlMapsValidateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlMapsValidateRequest_descriptor, @@ -49242,7 +49340,7 @@ private static void _clinit_autosplit_dinit_3() { "LoadBalancingSchemes", "Resource", }); internal_static_google_cloud_compute_v1_UrlMapsValidateResponse_descriptor = - getDescriptor().getMessageTypes().get(1593); + getDescriptor().getMessageTypes().get(1596); internal_static_google_cloud_compute_v1_UrlMapsValidateResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlMapsValidateResponse_descriptor, @@ -49250,7 +49348,7 @@ private static void _clinit_autosplit_dinit_3() { "Result", }); internal_static_google_cloud_compute_v1_UrlRewrite_descriptor = - getDescriptor().getMessageTypes().get(1594); + getDescriptor().getMessageTypes().get(1597); internal_static_google_cloud_compute_v1_UrlRewrite_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlRewrite_descriptor, @@ -49258,7 +49356,7 @@ private static void _clinit_autosplit_dinit_3() { "HostRewrite", "PathPrefixRewrite", "PathTemplateRewrite", }); internal_static_google_cloud_compute_v1_UsableSubnetwork_descriptor = - getDescriptor().getMessageTypes().get(1595); + getDescriptor().getMessageTypes().get(1598); internal_static_google_cloud_compute_v1_UsableSubnetwork_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UsableSubnetwork_descriptor, @@ -49275,7 +49373,7 @@ private static void _clinit_autosplit_dinit_3() { "Subnetwork", }); internal_static_google_cloud_compute_v1_UsableSubnetworkSecondaryRange_descriptor = - getDescriptor().getMessageTypes().get(1596); + getDescriptor().getMessageTypes().get(1599); internal_static_google_cloud_compute_v1_UsableSubnetworkSecondaryRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UsableSubnetworkSecondaryRange_descriptor, @@ -49283,7 +49381,7 @@ private static void _clinit_autosplit_dinit_3() { "IpCidrRange", "RangeName", }); internal_static_google_cloud_compute_v1_UsableSubnetworksAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1597); + getDescriptor().getMessageTypes().get(1600); internal_static_google_cloud_compute_v1_UsableSubnetworksAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UsableSubnetworksAggregatedList_descriptor, @@ -49298,7 +49396,7 @@ private static void _clinit_autosplit_dinit_3() { "Warning", }); internal_static_google_cloud_compute_v1_UsageExportLocation_descriptor = - getDescriptor().getMessageTypes().get(1598); + getDescriptor().getMessageTypes().get(1601); internal_static_google_cloud_compute_v1_UsageExportLocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UsageExportLocation_descriptor, @@ -49306,7 +49404,7 @@ private static void _clinit_autosplit_dinit_3() { "BucketName", "ReportNamePrefix", }); internal_static_google_cloud_compute_v1_ValidateRegionUrlMapRequest_descriptor = - getDescriptor().getMessageTypes().get(1599); + getDescriptor().getMessageTypes().get(1602); internal_static_google_cloud_compute_v1_ValidateRegionUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ValidateRegionUrlMapRequest_descriptor, @@ -49314,7 +49412,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "RegionUrlMapsValidateRequestResource", "UrlMap", }); internal_static_google_cloud_compute_v1_ValidateUrlMapRequest_descriptor = - getDescriptor().getMessageTypes().get(1600); + getDescriptor().getMessageTypes().get(1603); internal_static_google_cloud_compute_v1_ValidateUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ValidateUrlMapRequest_descriptor, @@ -49322,7 +49420,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "UrlMap", "UrlMapsValidateRequestResource", }); internal_static_google_cloud_compute_v1_VmEndpointNatMappings_descriptor = - getDescriptor().getMessageTypes().get(1601); + getDescriptor().getMessageTypes().get(1604); internal_static_google_cloud_compute_v1_VmEndpointNatMappings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VmEndpointNatMappings_descriptor, @@ -49330,7 +49428,7 @@ private static void _clinit_autosplit_dinit_3() { "InstanceName", "InterfaceNatMappings", }); internal_static_google_cloud_compute_v1_VmEndpointNatMappingsInterfaceNatMappings_descriptor = - getDescriptor().getMessageTypes().get(1602); + getDescriptor().getMessageTypes().get(1605); internal_static_google_cloud_compute_v1_VmEndpointNatMappingsInterfaceNatMappings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VmEndpointNatMappingsInterfaceNatMappings_descriptor, @@ -49344,7 +49442,7 @@ private static void _clinit_autosplit_dinit_3() { "SourceVirtualIp", }); internal_static_google_cloud_compute_v1_VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings_descriptor = - getDescriptor().getMessageTypes().get(1603); + getDescriptor().getMessageTypes().get(1606); internal_static_google_cloud_compute_v1_VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings_descriptor, @@ -49356,7 +49454,7 @@ private static void _clinit_autosplit_dinit_3() { "RuleNumber", }); internal_static_google_cloud_compute_v1_VmEndpointNatMappingsList_descriptor = - getDescriptor().getMessageTypes().get(1604); + getDescriptor().getMessageTypes().get(1607); internal_static_google_cloud_compute_v1_VmEndpointNatMappingsList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VmEndpointNatMappingsList_descriptor, @@ -49364,7 +49462,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Kind", "NextPageToken", "Result", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_VpnGateway_descriptor = - getDescriptor().getMessageTypes().get(1605); + getDescriptor().getMessageTypes().get(1608); internal_static_google_cloud_compute_v1_VpnGateway_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnGateway_descriptor, @@ -49392,7 +49490,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_VpnGatewayAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1606); + getDescriptor().getMessageTypes().get(1609); internal_static_google_cloud_compute_v1_VpnGatewayAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnGatewayAggregatedList_descriptor, @@ -49410,7 +49508,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_VpnGatewayList_descriptor = - getDescriptor().getMessageTypes().get(1607); + getDescriptor().getMessageTypes().get(1610); internal_static_google_cloud_compute_v1_VpnGatewayList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnGatewayList_descriptor, @@ -49418,7 +49516,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_VpnGatewayStatus_descriptor = - getDescriptor().getMessageTypes().get(1608); + getDescriptor().getMessageTypes().get(1611); internal_static_google_cloud_compute_v1_VpnGatewayStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnGatewayStatus_descriptor, @@ -49426,7 +49524,7 @@ private static void _clinit_autosplit_dinit_3() { "VpnConnections", }); internal_static_google_cloud_compute_v1_VpnGatewayStatusHighAvailabilityRequirementState_descriptor = - getDescriptor().getMessageTypes().get(1609); + getDescriptor().getMessageTypes().get(1612); internal_static_google_cloud_compute_v1_VpnGatewayStatusHighAvailabilityRequirementState_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnGatewayStatusHighAvailabilityRequirementState_descriptor, @@ -49434,7 +49532,7 @@ private static void _clinit_autosplit_dinit_3() { "State", "UnsatisfiedReason", }); internal_static_google_cloud_compute_v1_VpnGatewayStatusTunnel_descriptor = - getDescriptor().getMessageTypes().get(1610); + getDescriptor().getMessageTypes().get(1613); internal_static_google_cloud_compute_v1_VpnGatewayStatusTunnel_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnGatewayStatusTunnel_descriptor, @@ -49442,7 +49540,7 @@ private static void _clinit_autosplit_dinit_3() { "LocalGatewayInterface", "PeerGatewayInterface", "TunnelUrl", }); internal_static_google_cloud_compute_v1_VpnGatewayStatusVpnConnection_descriptor = - getDescriptor().getMessageTypes().get(1611); + getDescriptor().getMessageTypes().get(1614); internal_static_google_cloud_compute_v1_VpnGatewayStatusVpnConnection_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnGatewayStatusVpnConnection_descriptor, @@ -49450,7 +49548,7 @@ private static void _clinit_autosplit_dinit_3() { "PeerExternalGateway", "PeerGcpGateway", "State", "Tunnels", }); internal_static_google_cloud_compute_v1_VpnGatewayVpnGatewayInterface_descriptor = - getDescriptor().getMessageTypes().get(1612); + getDescriptor().getMessageTypes().get(1615); internal_static_google_cloud_compute_v1_VpnGatewayVpnGatewayInterface_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnGatewayVpnGatewayInterface_descriptor, @@ -49458,7 +49556,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "InterconnectAttachment", "IpAddress", "Ipv6Address", }); internal_static_google_cloud_compute_v1_VpnGatewaysGetStatusResponse_descriptor = - getDescriptor().getMessageTypes().get(1613); + getDescriptor().getMessageTypes().get(1616); internal_static_google_cloud_compute_v1_VpnGatewaysGetStatusResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnGatewaysGetStatusResponse_descriptor, @@ -49466,7 +49564,7 @@ private static void _clinit_autosplit_dinit_3() { "Result", }); internal_static_google_cloud_compute_v1_VpnGatewaysScopedList_descriptor = - getDescriptor().getMessageTypes().get(1614); + getDescriptor().getMessageTypes().get(1617); internal_static_google_cloud_compute_v1_VpnGatewaysScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnGatewaysScopedList_descriptor, @@ -49474,7 +49572,7 @@ private static void _clinit_autosplit_dinit_3() { "VpnGateways", "Warning", }); internal_static_google_cloud_compute_v1_VpnTunnel_descriptor = - getDescriptor().getMessageTypes().get(1615); + getDescriptor().getMessageTypes().get(1618); internal_static_google_cloud_compute_v1_VpnTunnel_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnTunnel_descriptor, @@ -49513,7 +49611,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_VpnTunnelAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1616); + getDescriptor().getMessageTypes().get(1619); internal_static_google_cloud_compute_v1_VpnTunnelAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnTunnelAggregatedList_descriptor, @@ -49531,7 +49629,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_VpnTunnelList_descriptor = - getDescriptor().getMessageTypes().get(1617); + getDescriptor().getMessageTypes().get(1620); internal_static_google_cloud_compute_v1_VpnTunnelList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnTunnelList_descriptor, @@ -49539,7 +49637,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_VpnTunnelsScopedList_descriptor = - getDescriptor().getMessageTypes().get(1618); + getDescriptor().getMessageTypes().get(1621); internal_static_google_cloud_compute_v1_VpnTunnelsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnTunnelsScopedList_descriptor, @@ -49547,7 +49645,7 @@ private static void _clinit_autosplit_dinit_3() { "VpnTunnels", "Warning", }); internal_static_google_cloud_compute_v1_WafExpressionSet_descriptor = - getDescriptor().getMessageTypes().get(1619); + getDescriptor().getMessageTypes().get(1622); internal_static_google_cloud_compute_v1_WafExpressionSet_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_WafExpressionSet_descriptor, @@ -49555,7 +49653,7 @@ private static void _clinit_autosplit_dinit_3() { "Aliases", "Expressions", "Id", }); internal_static_google_cloud_compute_v1_WafExpressionSetExpression_descriptor = - getDescriptor().getMessageTypes().get(1620); + getDescriptor().getMessageTypes().get(1623); internal_static_google_cloud_compute_v1_WafExpressionSetExpression_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_WafExpressionSetExpression_descriptor, @@ -49563,7 +49661,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Sensitivity", }); internal_static_google_cloud_compute_v1_WaitGlobalOperationRequest_descriptor = - getDescriptor().getMessageTypes().get(1621); + getDescriptor().getMessageTypes().get(1624); internal_static_google_cloud_compute_v1_WaitGlobalOperationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_WaitGlobalOperationRequest_descriptor, @@ -49571,7 +49669,7 @@ private static void _clinit_autosplit_dinit_3() { "Operation", "Project", }); internal_static_google_cloud_compute_v1_WaitRegionOperationRequest_descriptor = - getDescriptor().getMessageTypes().get(1622); + getDescriptor().getMessageTypes().get(1625); internal_static_google_cloud_compute_v1_WaitRegionOperationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_WaitRegionOperationRequest_descriptor, @@ -49579,7 +49677,7 @@ private static void _clinit_autosplit_dinit_3() { "Operation", "Project", "Region", }); internal_static_google_cloud_compute_v1_WaitZoneOperationRequest_descriptor = - getDescriptor().getMessageTypes().get(1623); + getDescriptor().getMessageTypes().get(1626); internal_static_google_cloud_compute_v1_WaitZoneOperationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_WaitZoneOperationRequest_descriptor, @@ -49587,7 +49685,7 @@ private static void _clinit_autosplit_dinit_3() { "Operation", "Project", "Zone", }); internal_static_google_cloud_compute_v1_Warning_descriptor = - getDescriptor().getMessageTypes().get(1624); + getDescriptor().getMessageTypes().get(1627); internal_static_google_cloud_compute_v1_Warning_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Warning_descriptor, @@ -49595,7 +49693,7 @@ private static void _clinit_autosplit_dinit_3() { "Code", "Data", "Message", }); internal_static_google_cloud_compute_v1_Warnings_descriptor = - getDescriptor().getMessageTypes().get(1625); + getDescriptor().getMessageTypes().get(1628); internal_static_google_cloud_compute_v1_Warnings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Warnings_descriptor, @@ -49603,7 +49701,7 @@ private static void _clinit_autosplit_dinit_3() { "Code", "Data", "Message", }); internal_static_google_cloud_compute_v1_WeightedBackendService_descriptor = - getDescriptor().getMessageTypes().get(1626); + getDescriptor().getMessageTypes().get(1629); internal_static_google_cloud_compute_v1_WeightedBackendService_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_WeightedBackendService_descriptor, @@ -49611,7 +49709,7 @@ private static void _clinit_autosplit_dinit_3() { "BackendService", "HeaderAction", "Weight", }); internal_static_google_cloud_compute_v1_WithdrawPublicAdvertisedPrefixeRequest_descriptor = - getDescriptor().getMessageTypes().get(1627); + getDescriptor().getMessageTypes().get(1630); internal_static_google_cloud_compute_v1_WithdrawPublicAdvertisedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_WithdrawPublicAdvertisedPrefixeRequest_descriptor, @@ -49619,7 +49717,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "PublicAdvertisedPrefix", "RequestId", }); internal_static_google_cloud_compute_v1_WithdrawPublicDelegatedPrefixeRequest_descriptor = - getDescriptor().getMessageTypes().get(1628); + getDescriptor().getMessageTypes().get(1631); internal_static_google_cloud_compute_v1_WithdrawPublicDelegatedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_WithdrawPublicDelegatedPrefixeRequest_descriptor, @@ -49627,7 +49725,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "PublicDelegatedPrefix", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_XpnHostList_descriptor = - getDescriptor().getMessageTypes().get(1629); + getDescriptor().getMessageTypes().get(1632); internal_static_google_cloud_compute_v1_XpnHostList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_XpnHostList_descriptor, @@ -49635,7 +49733,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_XpnResourceId_descriptor = - getDescriptor().getMessageTypes().get(1630); + getDescriptor().getMessageTypes().get(1633); internal_static_google_cloud_compute_v1_XpnResourceId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_XpnResourceId_descriptor, @@ -49643,7 +49741,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Type", }); internal_static_google_cloud_compute_v1_Zone_descriptor = - getDescriptor().getMessageTypes().get(1631); + getDescriptor().getMessageTypes().get(1634); internal_static_google_cloud_compute_v1_Zone_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Zone_descriptor, @@ -49661,7 +49759,7 @@ private static void _clinit_autosplit_dinit_3() { "SupportsPzs", }); internal_static_google_cloud_compute_v1_ZoneList_descriptor = - getDescriptor().getMessageTypes().get(1632); + getDescriptor().getMessageTypes().get(1635); internal_static_google_cloud_compute_v1_ZoneList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ZoneList_descriptor, @@ -49669,7 +49767,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_ZoneSetLabelsRequest_descriptor = - getDescriptor().getMessageTypes().get(1633); + getDescriptor().getMessageTypes().get(1636); internal_static_google_cloud_compute_v1_ZoneSetLabelsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ZoneSetLabelsRequest_descriptor, @@ -49687,7 +49785,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_ZoneSetPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1634); + getDescriptor().getMessageTypes().get(1637); internal_static_google_cloud_compute_v1_ZoneSetPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ZoneSetPolicyRequest_descriptor, diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GroupMaintenanceInfo.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GroupMaintenanceInfo.java index ee8fc3f5cc6a..6276ec977209 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GroupMaintenanceInfo.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GroupMaintenanceInfo.java @@ -247,6 +247,76 @@ private SchedulingType(int value) { } private int bitField0_; + public static final int INSTANCE_MAINTENANCE_ONGOING_COUNT_FIELD_NUMBER = 137611253; + private int instanceMaintenanceOngoingCount_ = 0; + + /** + * + * + *
+   * Describes number of instances that have ongoing maintenance.
+   * 
+ * + * optional int32 instance_maintenance_ongoing_count = 137611253; + * + * @return Whether the instanceMaintenanceOngoingCount field is set. + */ + @java.lang.Override + public boolean hasInstanceMaintenanceOngoingCount() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Describes number of instances that have ongoing maintenance.
+   * 
+ * + * optional int32 instance_maintenance_ongoing_count = 137611253; + * + * @return The instanceMaintenanceOngoingCount. + */ + @java.lang.Override + public int getInstanceMaintenanceOngoingCount() { + return instanceMaintenanceOngoingCount_; + } + + public static final int INSTANCE_MAINTENANCE_PENDING_COUNT_FIELD_NUMBER = 76612881; + private int instanceMaintenancePendingCount_ = 0; + + /** + * + * + *
+   * Describes number of instances that have pending maintenance.
+   * 
+ * + * optional int32 instance_maintenance_pending_count = 76612881; + * + * @return Whether the instanceMaintenancePendingCount field is set. + */ + @java.lang.Override + public boolean hasInstanceMaintenancePendingCount() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Describes number of instances that have pending maintenance.
+   * 
+ * + * optional int32 instance_maintenance_pending_count = 76612881; + * + * @return The instanceMaintenancePendingCount. + */ + @java.lang.Override + public int getInstanceMaintenancePendingCount() { + return instanceMaintenancePendingCount_; + } + public static final int MAINTENANCE_ONGOING_COUNT_FIELD_NUMBER = 219781919; private int maintenanceOngoingCount_ = 0; @@ -263,7 +333,7 @@ private SchedulingType(int value) { */ @java.lang.Override public boolean hasMaintenanceOngoingCount() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** @@ -298,7 +368,7 @@ public int getMaintenanceOngoingCount() { */ @java.lang.Override public boolean hasMaintenancePendingCount() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** @@ -336,7 +406,7 @@ public int getMaintenancePendingCount() { */ @java.lang.Override public boolean hasSchedulingType() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** @@ -389,6 +459,76 @@ public com.google.protobuf.ByteString getSchedulingTypeBytes() { } } + public static final int SUBBLOCK_INFRA_MAINTENANCE_ONGOING_COUNT_FIELD_NUMBER = 366161790; + private int subblockInfraMaintenanceOngoingCount_ = 0; + + /** + * + * + *
+   * Describes number of subblock Infrastructure that has ongoing maintenance. Here, Subblock Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is necessary for a VM Family(e.g. NVLink Domains). Not all VM Families will support this field.
+   * 
+ * + * optional int32 subblock_infra_maintenance_ongoing_count = 366161790; + * + * @return Whether the subblockInfraMaintenanceOngoingCount field is set. + */ + @java.lang.Override + public boolean hasSubblockInfraMaintenanceOngoingCount() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+   * Describes number of subblock Infrastructure that has ongoing maintenance. Here, Subblock Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is necessary for a VM Family(e.g. NVLink Domains). Not all VM Families will support this field.
+   * 
+ * + * optional int32 subblock_infra_maintenance_ongoing_count = 366161790; + * + * @return The subblockInfraMaintenanceOngoingCount. + */ + @java.lang.Override + public int getSubblockInfraMaintenanceOngoingCount() { + return subblockInfraMaintenanceOngoingCount_; + } + + public static final int SUBBLOCK_INFRA_MAINTENANCE_PENDING_COUNT_FIELD_NUMBER = 305163418; + private int subblockInfraMaintenancePendingCount_ = 0; + + /** + * + * + *
+   * Describes number of subblock Infrastructure that has pending maintenance. Here, Subblock Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is necessary for a VM Family (e.g. NVLink Domains). Not all VM Families will support this field.
+   * 
+ * + * optional int32 subblock_infra_maintenance_pending_count = 305163418; + * + * @return Whether the subblockInfraMaintenancePendingCount field is set. + */ + @java.lang.Override + public boolean hasSubblockInfraMaintenancePendingCount() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+   * Describes number of subblock Infrastructure that has pending maintenance. Here, Subblock Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is necessary for a VM Family (e.g. NVLink Domains). Not all VM Families will support this field.
+   * 
+ * + * optional int32 subblock_infra_maintenance_pending_count = 305163418; + * + * @return The subblockInfraMaintenancePendingCount. + */ + @java.lang.Override + public int getSubblockInfraMaintenancePendingCount() { + return subblockInfraMaintenancePendingCount_; + } + public static final int UPCOMING_GROUP_MAINTENANCE_FIELD_NUMBER = 393438448; private com.google.cloud.compute.v1.UpcomingMaintenance upcomingGroupMaintenance_; @@ -407,7 +547,7 @@ public com.google.protobuf.ByteString getSchedulingTypeBytes() { */ @java.lang.Override public boolean hasUpcomingGroupMaintenance() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -464,15 +604,27 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000002) != 0)) { + output.writeInt32(76612881, instanceMaintenancePendingCount_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt32(137611253, instanceMaintenanceOngoingCount_); + } + if (((bitField0_ & 0x00000008) != 0)) { output.writeInt32(158783547, maintenancePendingCount_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 199835397, schedulingType_); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeInt32(219781919, maintenanceOngoingCount_); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { + output.writeInt32(305163418, subblockInfraMaintenancePendingCount_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeInt32(366161790, subblockInfraMaintenanceOngoingCount_); + } + if (((bitField0_ & 0x00000080) != 0)) { output.writeMessage(393438448, getUpcomingGroupMaintenance()); } getUnknownFields().writeTo(output); @@ -485,19 +637,39 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size( + 76612881, instanceMaintenancePendingCount_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size( + 137611253, instanceMaintenanceOngoingCount_); + } + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size( 158783547, maintenancePendingCount_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(199835397, schedulingType_); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size( 219781919, maintenanceOngoingCount_); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size( + 305163418, subblockInfraMaintenancePendingCount_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size( + 366161790, subblockInfraMaintenanceOngoingCount_); + } + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 393438448, getUpcomingGroupMaintenance()); @@ -518,6 +690,18 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.compute.v1.GroupMaintenanceInfo other = (com.google.cloud.compute.v1.GroupMaintenanceInfo) obj; + if (hasInstanceMaintenanceOngoingCount() != other.hasInstanceMaintenanceOngoingCount()) + return false; + if (hasInstanceMaintenanceOngoingCount()) { + if (getInstanceMaintenanceOngoingCount() != other.getInstanceMaintenanceOngoingCount()) + return false; + } + if (hasInstanceMaintenancePendingCount() != other.hasInstanceMaintenancePendingCount()) + return false; + if (hasInstanceMaintenancePendingCount()) { + if (getInstanceMaintenancePendingCount() != other.getInstanceMaintenancePendingCount()) + return false; + } if (hasMaintenanceOngoingCount() != other.hasMaintenanceOngoingCount()) return false; if (hasMaintenanceOngoingCount()) { if (getMaintenanceOngoingCount() != other.getMaintenanceOngoingCount()) return false; @@ -530,6 +714,18 @@ public boolean equals(final java.lang.Object obj) { if (hasSchedulingType()) { if (!getSchedulingType().equals(other.getSchedulingType())) return false; } + if (hasSubblockInfraMaintenanceOngoingCount() + != other.hasSubblockInfraMaintenanceOngoingCount()) return false; + if (hasSubblockInfraMaintenanceOngoingCount()) { + if (getSubblockInfraMaintenanceOngoingCount() + != other.getSubblockInfraMaintenanceOngoingCount()) return false; + } + if (hasSubblockInfraMaintenancePendingCount() + != other.hasSubblockInfraMaintenancePendingCount()) return false; + if (hasSubblockInfraMaintenancePendingCount()) { + if (getSubblockInfraMaintenancePendingCount() + != other.getSubblockInfraMaintenancePendingCount()) return false; + } if (hasUpcomingGroupMaintenance() != other.hasUpcomingGroupMaintenance()) return false; if (hasUpcomingGroupMaintenance()) { if (!getUpcomingGroupMaintenance().equals(other.getUpcomingGroupMaintenance())) return false; @@ -545,6 +741,14 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasInstanceMaintenanceOngoingCount()) { + hash = (37 * hash) + INSTANCE_MAINTENANCE_ONGOING_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getInstanceMaintenanceOngoingCount(); + } + if (hasInstanceMaintenancePendingCount()) { + hash = (37 * hash) + INSTANCE_MAINTENANCE_PENDING_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getInstanceMaintenancePendingCount(); + } if (hasMaintenanceOngoingCount()) { hash = (37 * hash) + MAINTENANCE_ONGOING_COUNT_FIELD_NUMBER; hash = (53 * hash) + getMaintenanceOngoingCount(); @@ -557,6 +761,14 @@ public int hashCode() { hash = (37 * hash) + SCHEDULING_TYPE_FIELD_NUMBER; hash = (53 * hash) + getSchedulingType().hashCode(); } + if (hasSubblockInfraMaintenanceOngoingCount()) { + hash = (37 * hash) + SUBBLOCK_INFRA_MAINTENANCE_ONGOING_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getSubblockInfraMaintenanceOngoingCount(); + } + if (hasSubblockInfraMaintenancePendingCount()) { + hash = (37 * hash) + SUBBLOCK_INFRA_MAINTENANCE_PENDING_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getSubblockInfraMaintenancePendingCount(); + } if (hasUpcomingGroupMaintenance()) { hash = (37 * hash) + UPCOMING_GROUP_MAINTENANCE_FIELD_NUMBER; hash = (53 * hash) + getUpcomingGroupMaintenance().hashCode(); @@ -710,9 +922,13 @@ private void maybeForceBuilderInitialization() { public Builder clear() { super.clear(); bitField0_ = 0; + instanceMaintenanceOngoingCount_ = 0; + instanceMaintenancePendingCount_ = 0; maintenanceOngoingCount_ = 0; maintenancePendingCount_ = 0; schedulingType_ = ""; + subblockInfraMaintenanceOngoingCount_ = 0; + subblockInfraMaintenancePendingCount_ = 0; upcomingGroupMaintenance_ = null; if (upcomingGroupMaintenanceBuilder_ != null) { upcomingGroupMaintenanceBuilder_.dispose(); @@ -756,23 +972,39 @@ private void buildPartial0(com.google.cloud.compute.v1.GroupMaintenanceInfo resu int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.maintenanceOngoingCount_ = maintenanceOngoingCount_; + result.instanceMaintenanceOngoingCount_ = instanceMaintenanceOngoingCount_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.maintenancePendingCount_ = maintenancePendingCount_; + result.instanceMaintenancePendingCount_ = instanceMaintenancePendingCount_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.schedulingType_ = schedulingType_; + result.maintenanceOngoingCount_ = maintenanceOngoingCount_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { + result.maintenancePendingCount_ = maintenancePendingCount_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.schedulingType_ = schedulingType_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.subblockInfraMaintenanceOngoingCount_ = subblockInfraMaintenanceOngoingCount_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.subblockInfraMaintenancePendingCount_ = subblockInfraMaintenancePendingCount_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000080) != 0)) { result.upcomingGroupMaintenance_ = upcomingGroupMaintenanceBuilder_ == null ? upcomingGroupMaintenance_ : upcomingGroupMaintenanceBuilder_.build(); - to_bitField0_ |= 0x00000008; + to_bitField0_ |= 0x00000080; } result.bitField0_ |= to_bitField0_; } @@ -823,6 +1055,12 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.compute.v1.GroupMaintenanceInfo other) { if (other == com.google.cloud.compute.v1.GroupMaintenanceInfo.getDefaultInstance()) return this; + if (other.hasInstanceMaintenanceOngoingCount()) { + setInstanceMaintenanceOngoingCount(other.getInstanceMaintenanceOngoingCount()); + } + if (other.hasInstanceMaintenancePendingCount()) { + setInstanceMaintenancePendingCount(other.getInstanceMaintenancePendingCount()); + } if (other.hasMaintenanceOngoingCount()) { setMaintenanceOngoingCount(other.getMaintenanceOngoingCount()); } @@ -831,9 +1069,15 @@ public Builder mergeFrom(com.google.cloud.compute.v1.GroupMaintenanceInfo other) } if (other.hasSchedulingType()) { schedulingType_ = other.schedulingType_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); } + if (other.hasSubblockInfraMaintenanceOngoingCount()) { + setSubblockInfraMaintenanceOngoingCount(other.getSubblockInfraMaintenanceOngoingCount()); + } + if (other.hasSubblockInfraMaintenancePendingCount()) { + setSubblockInfraMaintenancePendingCount(other.getSubblockInfraMaintenancePendingCount()); + } if (other.hasUpcomingGroupMaintenance()) { mergeUpcomingGroupMaintenance(other.getUpcomingGroupMaintenance()); } @@ -863,29 +1107,53 @@ public Builder mergeFrom( case 0: done = true; break; + case 612903048: + { + instanceMaintenancePendingCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 612903048 + case 1100890024: + { + instanceMaintenanceOngoingCount_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 1100890024 case 1270268376: { maintenancePendingCount_ = input.readInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; break; } // case 1270268376 case 1598683178: { schedulingType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; break; } // case 1598683178 case 1758255352: { maintenanceOngoingCount_ = input.readInt32(); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; break; } // case 1758255352 + case -1853659952: + { + subblockInfraMaintenancePendingCount_ = input.readInt32(); + bitField0_ |= 0x00000040; + break; + } // case -1853659952 + case -1365672976: + { + subblockInfraMaintenanceOngoingCount_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case -1365672976 case -1147459710: { input.readMessage( getUpcomingGroupMaintenanceFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000080; break; } // case -1147459710 default: @@ -907,6 +1175,150 @@ public Builder mergeFrom( private int bitField0_; + private int instanceMaintenanceOngoingCount_; + + /** + * + * + *
+     * Describes number of instances that have ongoing maintenance.
+     * 
+ * + * optional int32 instance_maintenance_ongoing_count = 137611253; + * + * @return Whether the instanceMaintenanceOngoingCount field is set. + */ + @java.lang.Override + public boolean hasInstanceMaintenanceOngoingCount() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Describes number of instances that have ongoing maintenance.
+     * 
+ * + * optional int32 instance_maintenance_ongoing_count = 137611253; + * + * @return The instanceMaintenanceOngoingCount. + */ + @java.lang.Override + public int getInstanceMaintenanceOngoingCount() { + return instanceMaintenanceOngoingCount_; + } + + /** + * + * + *
+     * Describes number of instances that have ongoing maintenance.
+     * 
+ * + * optional int32 instance_maintenance_ongoing_count = 137611253; + * + * @param value The instanceMaintenanceOngoingCount to set. + * @return This builder for chaining. + */ + public Builder setInstanceMaintenanceOngoingCount(int value) { + + instanceMaintenanceOngoingCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Describes number of instances that have ongoing maintenance.
+     * 
+ * + * optional int32 instance_maintenance_ongoing_count = 137611253; + * + * @return This builder for chaining. + */ + public Builder clearInstanceMaintenanceOngoingCount() { + bitField0_ = (bitField0_ & ~0x00000001); + instanceMaintenanceOngoingCount_ = 0; + onChanged(); + return this; + } + + private int instanceMaintenancePendingCount_; + + /** + * + * + *
+     * Describes number of instances that have pending maintenance.
+     * 
+ * + * optional int32 instance_maintenance_pending_count = 76612881; + * + * @return Whether the instanceMaintenancePendingCount field is set. + */ + @java.lang.Override + public boolean hasInstanceMaintenancePendingCount() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Describes number of instances that have pending maintenance.
+     * 
+ * + * optional int32 instance_maintenance_pending_count = 76612881; + * + * @return The instanceMaintenancePendingCount. + */ + @java.lang.Override + public int getInstanceMaintenancePendingCount() { + return instanceMaintenancePendingCount_; + } + + /** + * + * + *
+     * Describes number of instances that have pending maintenance.
+     * 
+ * + * optional int32 instance_maintenance_pending_count = 76612881; + * + * @param value The instanceMaintenancePendingCount to set. + * @return This builder for chaining. + */ + public Builder setInstanceMaintenancePendingCount(int value) { + + instanceMaintenancePendingCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Describes number of instances that have pending maintenance.
+     * 
+ * + * optional int32 instance_maintenance_pending_count = 76612881; + * + * @return This builder for chaining. + */ + public Builder clearInstanceMaintenancePendingCount() { + bitField0_ = (bitField0_ & ~0x00000002); + instanceMaintenancePendingCount_ = 0; + onChanged(); + return this; + } + private int maintenanceOngoingCount_; /** @@ -922,7 +1334,7 @@ public Builder mergeFrom( */ @java.lang.Override public boolean hasMaintenanceOngoingCount() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** @@ -956,7 +1368,7 @@ public int getMaintenanceOngoingCount() { public Builder setMaintenanceOngoingCount(int value) { maintenanceOngoingCount_ = value; - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -973,7 +1385,7 @@ public Builder setMaintenanceOngoingCount(int value) { * @return This builder for chaining. */ public Builder clearMaintenanceOngoingCount() { - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); maintenanceOngoingCount_ = 0; onChanged(); return this; @@ -994,7 +1406,7 @@ public Builder clearMaintenanceOngoingCount() { */ @java.lang.Override public boolean hasMaintenancePendingCount() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** @@ -1028,7 +1440,7 @@ public int getMaintenancePendingCount() { public Builder setMaintenancePendingCount(int value) { maintenancePendingCount_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1045,7 +1457,7 @@ public Builder setMaintenancePendingCount(int value) { * @return This builder for chaining. */ public Builder clearMaintenancePendingCount() { - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000008); maintenancePendingCount_ = 0; onChanged(); return this; @@ -1066,7 +1478,7 @@ public Builder clearMaintenancePendingCount() { * @return Whether the schedulingType field is set. */ public boolean hasSchedulingType() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** @@ -1135,7 +1547,7 @@ public Builder setSchedulingType(java.lang.String value) { throw new NullPointerException(); } schedulingType_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1154,7 +1566,7 @@ public Builder setSchedulingType(java.lang.String value) { */ public Builder clearSchedulingType() { schedulingType_ = getDefaultInstance().getSchedulingType(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1178,7 +1590,151 @@ public Builder setSchedulingTypeBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); schedulingType_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int subblockInfraMaintenanceOngoingCount_; + + /** + * + * + *
+     * Describes number of subblock Infrastructure that has ongoing maintenance. Here, Subblock Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is necessary for a VM Family(e.g. NVLink Domains). Not all VM Families will support this field.
+     * 
+ * + * optional int32 subblock_infra_maintenance_ongoing_count = 366161790; + * + * @return Whether the subblockInfraMaintenanceOngoingCount field is set. + */ + @java.lang.Override + public boolean hasSubblockInfraMaintenanceOngoingCount() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Describes number of subblock Infrastructure that has ongoing maintenance. Here, Subblock Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is necessary for a VM Family(e.g. NVLink Domains). Not all VM Families will support this field.
+     * 
+ * + * optional int32 subblock_infra_maintenance_ongoing_count = 366161790; + * + * @return The subblockInfraMaintenanceOngoingCount. + */ + @java.lang.Override + public int getSubblockInfraMaintenanceOngoingCount() { + return subblockInfraMaintenanceOngoingCount_; + } + + /** + * + * + *
+     * Describes number of subblock Infrastructure that has ongoing maintenance. Here, Subblock Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is necessary for a VM Family(e.g. NVLink Domains). Not all VM Families will support this field.
+     * 
+ * + * optional int32 subblock_infra_maintenance_ongoing_count = 366161790; + * + * @param value The subblockInfraMaintenanceOngoingCount to set. + * @return This builder for chaining. + */ + public Builder setSubblockInfraMaintenanceOngoingCount(int value) { + + subblockInfraMaintenanceOngoingCount_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Describes number of subblock Infrastructure that has ongoing maintenance. Here, Subblock Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is necessary for a VM Family(e.g. NVLink Domains). Not all VM Families will support this field.
+     * 
+ * + * optional int32 subblock_infra_maintenance_ongoing_count = 366161790; + * + * @return This builder for chaining. + */ + public Builder clearSubblockInfraMaintenanceOngoingCount() { + bitField0_ = (bitField0_ & ~0x00000020); + subblockInfraMaintenanceOngoingCount_ = 0; + onChanged(); + return this; + } + + private int subblockInfraMaintenancePendingCount_; + + /** + * + * + *
+     * Describes number of subblock Infrastructure that has pending maintenance. Here, Subblock Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is necessary for a VM Family (e.g. NVLink Domains). Not all VM Families will support this field.
+     * 
+ * + * optional int32 subblock_infra_maintenance_pending_count = 305163418; + * + * @return Whether the subblockInfraMaintenancePendingCount field is set. + */ + @java.lang.Override + public boolean hasSubblockInfraMaintenancePendingCount() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Describes number of subblock Infrastructure that has pending maintenance. Here, Subblock Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is necessary for a VM Family (e.g. NVLink Domains). Not all VM Families will support this field.
+     * 
+ * + * optional int32 subblock_infra_maintenance_pending_count = 305163418; + * + * @return The subblockInfraMaintenancePendingCount. + */ + @java.lang.Override + public int getSubblockInfraMaintenancePendingCount() { + return subblockInfraMaintenancePendingCount_; + } + + /** + * + * + *
+     * Describes number of subblock Infrastructure that has pending maintenance. Here, Subblock Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is necessary for a VM Family (e.g. NVLink Domains). Not all VM Families will support this field.
+     * 
+ * + * optional int32 subblock_infra_maintenance_pending_count = 305163418; + * + * @param value The subblockInfraMaintenancePendingCount to set. + * @return This builder for chaining. + */ + public Builder setSubblockInfraMaintenancePendingCount(int value) { + + subblockInfraMaintenancePendingCount_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Describes number of subblock Infrastructure that has pending maintenance. Here, Subblock Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is necessary for a VM Family (e.g. NVLink Domains). Not all VM Families will support this field.
+     * 
+ * + * optional int32 subblock_infra_maintenance_pending_count = 305163418; + * + * @return This builder for chaining. + */ + public Builder clearSubblockInfraMaintenancePendingCount() { + bitField0_ = (bitField0_ & ~0x00000040); + subblockInfraMaintenancePendingCount_ = 0; onChanged(); return this; } @@ -1204,7 +1760,7 @@ public Builder setSchedulingTypeBytes(com.google.protobuf.ByteString value) { * @return Whether the upcomingGroupMaintenance field is set. */ public boolean hasUpcomingGroupMaintenance() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -1251,7 +1807,7 @@ public Builder setUpcomingGroupMaintenance( } else { upcomingGroupMaintenanceBuilder_.setMessage(value); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -1274,7 +1830,7 @@ public Builder setUpcomingGroupMaintenance( } else { upcomingGroupMaintenanceBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -1293,7 +1849,7 @@ public Builder setUpcomingGroupMaintenance( public Builder mergeUpcomingGroupMaintenance( com.google.cloud.compute.v1.UpcomingMaintenance value) { if (upcomingGroupMaintenanceBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) + if (((bitField0_ & 0x00000080) != 0) && upcomingGroupMaintenance_ != null && upcomingGroupMaintenance_ != com.google.cloud.compute.v1.UpcomingMaintenance.getDefaultInstance()) { @@ -1305,7 +1861,7 @@ public Builder mergeUpcomingGroupMaintenance( upcomingGroupMaintenanceBuilder_.mergeFrom(value); } if (upcomingGroupMaintenance_ != null) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000080; onChanged(); } return this; @@ -1323,7 +1879,7 @@ public Builder mergeUpcomingGroupMaintenance( * */ public Builder clearUpcomingGroupMaintenance() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000080); upcomingGroupMaintenance_ = null; if (upcomingGroupMaintenanceBuilder_ != null) { upcomingGroupMaintenanceBuilder_.dispose(); @@ -1346,7 +1902,7 @@ public Builder clearUpcomingGroupMaintenance() { */ public com.google.cloud.compute.v1.UpcomingMaintenance.Builder getUpcomingGroupMaintenanceBuilder() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000080; onChanged(); return getUpcomingGroupMaintenanceFieldBuilder().getBuilder(); } diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GroupMaintenanceInfoOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GroupMaintenanceInfoOrBuilder.java index ac13df6853c0..2b7735ba54ba 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GroupMaintenanceInfoOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GroupMaintenanceInfoOrBuilder.java @@ -24,6 +24,58 @@ public interface GroupMaintenanceInfoOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.GroupMaintenanceInfo) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+   * Describes number of instances that have ongoing maintenance.
+   * 
+ * + * optional int32 instance_maintenance_ongoing_count = 137611253; + * + * @return Whether the instanceMaintenanceOngoingCount field is set. + */ + boolean hasInstanceMaintenanceOngoingCount(); + + /** + * + * + *
+   * Describes number of instances that have ongoing maintenance.
+   * 
+ * + * optional int32 instance_maintenance_ongoing_count = 137611253; + * + * @return The instanceMaintenanceOngoingCount. + */ + int getInstanceMaintenanceOngoingCount(); + + /** + * + * + *
+   * Describes number of instances that have pending maintenance.
+   * 
+ * + * optional int32 instance_maintenance_pending_count = 76612881; + * + * @return Whether the instanceMaintenancePendingCount field is set. + */ + boolean hasInstanceMaintenancePendingCount(); + + /** + * + * + *
+   * Describes number of instances that have pending maintenance.
+   * 
+ * + * optional int32 instance_maintenance_pending_count = 76612881; + * + * @return The instanceMaintenancePendingCount. + */ + int getInstanceMaintenancePendingCount(); + /** * * @@ -118,6 +170,58 @@ public interface GroupMaintenanceInfoOrBuilder */ com.google.protobuf.ByteString getSchedulingTypeBytes(); + /** + * + * + *
+   * Describes number of subblock Infrastructure that has ongoing maintenance. Here, Subblock Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is necessary for a VM Family(e.g. NVLink Domains). Not all VM Families will support this field.
+   * 
+ * + * optional int32 subblock_infra_maintenance_ongoing_count = 366161790; + * + * @return Whether the subblockInfraMaintenanceOngoingCount field is set. + */ + boolean hasSubblockInfraMaintenanceOngoingCount(); + + /** + * + * + *
+   * Describes number of subblock Infrastructure that has ongoing maintenance. Here, Subblock Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is necessary for a VM Family(e.g. NVLink Domains). Not all VM Families will support this field.
+   * 
+ * + * optional int32 subblock_infra_maintenance_ongoing_count = 366161790; + * + * @return The subblockInfraMaintenanceOngoingCount. + */ + int getSubblockInfraMaintenanceOngoingCount(); + + /** + * + * + *
+   * Describes number of subblock Infrastructure that has pending maintenance. Here, Subblock Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is necessary for a VM Family (e.g. NVLink Domains). Not all VM Families will support this field.
+   * 
+ * + * optional int32 subblock_infra_maintenance_pending_count = 305163418; + * + * @return Whether the subblockInfraMaintenancePendingCount field is set. + */ + boolean hasSubblockInfraMaintenancePendingCount(); + + /** + * + * + *
+   * Describes number of subblock Infrastructure that has pending maintenance. Here, Subblock Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is necessary for a VM Family (e.g. NVLink Domains). Not all VM Families will support this field.
+   * 
+ * + * optional int32 subblock_infra_maintenance_pending_count = 305163418; + * + * @return The subblockInfraMaintenancePendingCount. + */ + int getSubblockInfraMaintenancePendingCount(); + /** * * diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/PerformMaintenanceReservationSubBlockRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/PerformMaintenanceReservationSubBlockRequest.java new file mode 100644 index 000000000000..de74b20df4f8 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/PerformMaintenanceReservationSubBlockRequest.java @@ -0,0 +1,1486 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for ReservationSubBlocks.PerformMaintenance. See the method description for details.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest} + */ +public final class PerformMaintenanceReservationSubBlockRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest) + PerformMaintenanceReservationSubBlockRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use PerformMaintenanceReservationSubBlockRequest.newBuilder() to construct. + private PerformMaintenanceReservationSubBlockRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PerformMaintenanceReservationSubBlockRequest() { + parentName_ = ""; + project_ = ""; + requestId_ = ""; + reservationSubBlock_ = ""; + zone_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PerformMaintenanceReservationSubBlockRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_PerformMaintenanceReservationSubBlockRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_PerformMaintenanceReservationSubBlockRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest.class, + com.google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_NAME_FIELD_NUMBER = 478151936; + + @SuppressWarnings("serial") + private volatile java.lang.Object parentName_ = ""; + + /** + * + * + *
+   * The name of the parent reservation and parent block. In the format of reservations/{reservation_name}/reservationBlocks/{reservation_block_name}
+   * 
+ * + * string parent_name = 478151936 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The parentName. + */ + @java.lang.Override + public java.lang.String getParentName() { + java.lang.Object ref = parentName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parentName_ = s; + return s; + } + } + + /** + * + * + *
+   * The name of the parent reservation and parent block. In the format of reservations/{reservation_name}/reservationBlocks/{reservation_block_name}
+   * 
+ * + * string parent_name = 478151936 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for parentName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentNameBytes() { + java.lang.Object ref = parentName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parentName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 37109963; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + @java.lang.Override + public boolean hasRequestId() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
+   * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
+   * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + public static final int RESERVATION_SUB_BLOCK_FIELD_NUMBER = 22750491; + + @SuppressWarnings("serial") + private volatile java.lang.Object reservationSubBlock_ = ""; + + /** + * + * + *
+   * The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID.
+   * 
+ * + * string reservation_sub_block = 22750491 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The reservationSubBlock. + */ + @java.lang.Override + public java.lang.String getReservationSubBlock() { + java.lang.Object ref = reservationSubBlock_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reservationSubBlock_ = s; + return s; + } + } + + /** + * + * + *
+   * The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID.
+   * 
+ * + * string reservation_sub_block = 22750491 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for reservationSubBlock. + */ + @java.lang.Override + public com.google.protobuf.ByteString getReservationSubBlockBytes() { + java.lang.Object ref = reservationSubBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + reservationSubBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 3744684; + + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + + /** + * + * + *
+   * Name of the zone for this request. Zone name should conform to RFC1035.
+   * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The zone. + */ + @java.lang.Override + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + + /** + * + * + *
+   * Name of the zone for this request. Zone name should conform to RFC1035.
+   * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The bytes for zone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3744684, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reservationSubBlock_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 22750491, reservationSubBlock_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 37109963, requestId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 227560217, project_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 478151936, parentName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3744684, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reservationSubBlock_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(22750491, reservationSubBlock_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(37109963, requestId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(227560217, project_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(478151936, parentName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest other = + (com.google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest) obj; + + if (!getParentName().equals(other.getParentName())) return false; + if (!getProject().equals(other.getProject())) return false; + if (hasRequestId() != other.hasRequestId()) return false; + if (hasRequestId()) { + if (!getRequestId().equals(other.getRequestId())) return false; + } + if (!getReservationSubBlock().equals(other.getReservationSubBlock())) return false; + if (!getZone().equals(other.getZone())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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_NAME_FIELD_NUMBER; + hash = (53 * hash) + getParentName().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + if (hasRequestId()) { + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + } + hash = (37 * hash) + RESERVATION_SUB_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getReservationSubBlock().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for ReservationSubBlocks.PerformMaintenance. See the method description for details.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest) + com.google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_PerformMaintenanceReservationSubBlockRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_PerformMaintenanceReservationSubBlockRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest.class, + com.google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parentName_ = ""; + project_ = ""; + requestId_ = ""; + reservationSubBlock_ = ""; + zone_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_PerformMaintenanceReservationSubBlockRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest build() { + com.google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest buildPartial() { + com.google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest result = + new com.google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parentName_ = parentName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.project_ = project_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.reservationSubBlock_ = reservationSubBlock_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.zone_ = zone_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest) { + return mergeFrom( + (com.google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest other) { + if (other + == com.google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest + .getDefaultInstance()) return this; + if (!other.getParentName().isEmpty()) { + parentName_ = other.parentName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasRequestId()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getReservationSubBlock().isEmpty()) { + reservationSubBlock_ = other.reservationSubBlock_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 29957474: + { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 29957474 + case 182003930: + { + reservationSubBlock_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 182003930 + case 296879706: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 296879706 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 1820481738 + case -469751806: + { + parentName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case -469751806 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parentName_ = ""; + + /** + * + * + *
+     * The name of the parent reservation and parent block. In the format of reservations/{reservation_name}/reservationBlocks/{reservation_block_name}
+     * 
+ * + * string parent_name = 478151936 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The parentName. + */ + public java.lang.String getParentName() { + java.lang.Object ref = parentName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parentName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The name of the parent reservation and parent block. In the format of reservations/{reservation_name}/reservationBlocks/{reservation_block_name}
+     * 
+ * + * string parent_name = 478151936 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for parentName. + */ + public com.google.protobuf.ByteString getParentNameBytes() { + java.lang.Object ref = parentName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parentName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The name of the parent reservation and parent block. In the format of reservations/{reservation_name}/reservationBlocks/{reservation_block_name}
+     * 
+ * + * string parent_name = 478151936 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The parentName to set. + * @return This builder for chaining. + */ + public Builder setParentName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parentName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the parent reservation and parent block. In the format of reservations/{reservation_name}/reservationBlocks/{reservation_block_name}
+     * 
+ * + * string parent_name = 478151936 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearParentName() { + parentName_ = getDefaultInstance().getParentName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the parent reservation and parent block. In the format of reservations/{reservation_name}/reservationBlocks/{reservation_block_name}
+     * 
+ * + * string parent_name = 478151936 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for parentName to set. + * @return This builder for chaining. + */ + public Builder setParentNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parentName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object project_ = ""; + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
+     * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + public boolean hasRequestId() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
+     * 
+ * + * optional string request_id = 37109963; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object reservationSubBlock_ = ""; + + /** + * + * + *
+     * The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID.
+     * 
+ * + * string reservation_sub_block = 22750491 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The reservationSubBlock. + */ + public java.lang.String getReservationSubBlock() { + java.lang.Object ref = reservationSubBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reservationSubBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID.
+     * 
+ * + * string reservation_sub_block = 22750491 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for reservationSubBlock. + */ + public com.google.protobuf.ByteString getReservationSubBlockBytes() { + java.lang.Object ref = reservationSubBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + reservationSubBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID.
+     * 
+ * + * string reservation_sub_block = 22750491 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The reservationSubBlock to set. + * @return This builder for chaining. + */ + public Builder setReservationSubBlock(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + reservationSubBlock_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID.
+     * 
+ * + * string reservation_sub_block = 22750491 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearReservationSubBlock() { + reservationSubBlock_ = getDefaultInstance().getReservationSubBlock(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID.
+     * 
+ * + * string reservation_sub_block = 22750491 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for reservationSubBlock to set. + * @return This builder for chaining. + */ + public Builder setReservationSubBlockBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + reservationSubBlock_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + + /** + * + * + *
+     * Name of the zone for this request. Zone name should conform to RFC1035.
+     * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The zone. + */ + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name of the zone for this request. Zone name should conform to RFC1035.
+     * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The bytes for zone. + */ + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name of the zone for this request. Zone name should conform to RFC1035.
+     * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @param value The zone to set. + * @return This builder for chaining. + */ + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + zone_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the zone for this request. Zone name should conform to RFC1035.
+     * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return This builder for chaining. + */ + public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the zone for this request. Zone name should conform to RFC1035.
+     * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + zone_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest) + private static final com.google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest(); + } + + public static com.google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PerformMaintenanceReservationSubBlockRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/PerformMaintenanceReservationSubBlockRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/PerformMaintenanceReservationSubBlockRequestOrBuilder.java new file mode 100644 index 000000000000..7be1b6ef5db0 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/PerformMaintenanceReservationSubBlockRequestOrBuilder.java @@ -0,0 +1,177 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.compute.v1; + +public interface PerformMaintenanceReservationSubBlockRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The name of the parent reservation and parent block. In the format of reservations/{reservation_name}/reservationBlocks/{reservation_block_name}
+   * 
+ * + * string parent_name = 478151936 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The parentName. + */ + java.lang.String getParentName(); + + /** + * + * + *
+   * The name of the parent reservation and parent block. In the format of reservations/{reservation_name}/reservationBlocks/{reservation_block_name}
+   * 
+ * + * string parent_name = 478151936 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for parentName. + */ + com.google.protobuf.ByteString getParentNameBytes(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + boolean hasRequestId(); + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID.
+   * 
+ * + * string reservation_sub_block = 22750491 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The reservationSubBlock. + */ + java.lang.String getReservationSubBlock(); + + /** + * + * + *
+   * The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID.
+   * 
+ * + * string reservation_sub_block = 22750491 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for reservationSubBlock. + */ + com.google.protobuf.ByteString getReservationSubBlockBytes(); + + /** + * + * + *
+   * Name of the zone for this request. Zone name should conform to RFC1035.
+   * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The zone. + */ + java.lang.String getZone(); + + /** + * + * + *
+   * Name of the zone for this request. Zone name should conform to RFC1035.
+   * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The bytes for zone. + */ + com.google.protobuf.ByteString getZoneBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ReservationSubBlock.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ReservationSubBlock.java index fee3c41d6f57..542731d6c3d0 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ReservationSubBlock.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ReservationSubBlock.java @@ -632,6 +632,66 @@ public com.google.cloud.compute.v1.ReservationSubBlockPhysicalTopology getPhysic : physicalTopology_; } + public static final int RESERVATION_SUB_BLOCK_MAINTENANCE_FIELD_NUMBER = 377005551; + private com.google.cloud.compute.v1.GroupMaintenanceInfo reservationSubBlockMaintenance_; + + /** + * + * + *
+   * Maintenance information for this reservation subBlock.
+   * 
+ * + * + * optional .google.cloud.compute.v1.GroupMaintenanceInfo reservation_sub_block_maintenance = 377005551; + * + * + * @return Whether the reservationSubBlockMaintenance field is set. + */ + @java.lang.Override + public boolean hasReservationSubBlockMaintenance() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+   * Maintenance information for this reservation subBlock.
+   * 
+ * + * + * optional .google.cloud.compute.v1.GroupMaintenanceInfo reservation_sub_block_maintenance = 377005551; + * + * + * @return The reservationSubBlockMaintenance. + */ + @java.lang.Override + public com.google.cloud.compute.v1.GroupMaintenanceInfo getReservationSubBlockMaintenance() { + return reservationSubBlockMaintenance_ == null + ? com.google.cloud.compute.v1.GroupMaintenanceInfo.getDefaultInstance() + : reservationSubBlockMaintenance_; + } + + /** + * + * + *
+   * Maintenance information for this reservation subBlock.
+   * 
+ * + * + * optional .google.cloud.compute.v1.GroupMaintenanceInfo reservation_sub_block_maintenance = 377005551; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.GroupMaintenanceInfoOrBuilder + getReservationSubBlockMaintenanceOrBuilder() { + return reservationSubBlockMaintenance_ == null + ? com.google.cloud.compute.v1.GroupMaintenanceInfo.getDefaultInstance() + : reservationSubBlockMaintenance_; + } + public static final int SELF_LINK_FIELD_NUMBER = 456214797; @SuppressWarnings("serial") @@ -650,7 +710,7 @@ public com.google.cloud.compute.v1.ReservationSubBlockPhysicalTopology getPhysic */ @java.lang.Override public boolean hasSelfLink() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -719,7 +779,7 @@ public com.google.protobuf.ByteString getSelfLinkBytes() { */ @java.lang.Override public boolean hasSelfLinkWithId() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** @@ -789,7 +849,7 @@ public com.google.protobuf.ByteString getSelfLinkWithIdBytes() { */ @java.lang.Override public boolean hasStatus() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** @@ -860,7 +920,7 @@ public com.google.protobuf.ByteString getStatusBytes() { */ @java.lang.Override public boolean hasZone() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** @@ -934,25 +994,28 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000020) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3373707, name_); } - if (((bitField0_ & 0x00000400) != 0)) { + if (((bitField0_ & 0x00000800) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3744684, zone_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 30525366, creationTimestamp_); } - if (((bitField0_ & 0x00000100) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 44520962, selfLinkWithId_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(94851343, count_); } - if (((bitField0_ & 0x00000200) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 181260274, status_); } if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(279778519, getPhysicalTopology()); } if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(377005551, getReservationSubBlockMaintenance()); + } + if (((bitField0_ & 0x00000100) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 456214797, selfLink_); } if (((bitField0_ & 0x00000008) != 0)) { @@ -976,20 +1039,20 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3373707, name_); } - if (((bitField0_ & 0x00000400) != 0)) { + if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3744684, zone_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(30525366, creationTimestamp_); } - if (((bitField0_ & 0x00000100) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(44520962, selfLinkWithId_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(94851343, count_); } - if (((bitField0_ & 0x00000200) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(181260274, status_); } if (((bitField0_ & 0x00000040) != 0)) { @@ -998,6 +1061,11 @@ public int getSerializedSize() { 279778519, getPhysicalTopology()); } if (((bitField0_ & 0x00000080) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 377005551, getReservationSubBlockMaintenance()); + } + if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(456214797, selfLink_); } if (((bitField0_ & 0x00000008) != 0)) { @@ -1047,6 +1115,12 @@ public boolean equals(final java.lang.Object obj) { if (hasPhysicalTopology()) { if (!getPhysicalTopology().equals(other.getPhysicalTopology())) return false; } + if (hasReservationSubBlockMaintenance() != other.hasReservationSubBlockMaintenance()) + return false; + if (hasReservationSubBlockMaintenance()) { + if (!getReservationSubBlockMaintenance().equals(other.getReservationSubBlockMaintenance())) + return false; + } if (hasSelfLink() != other.hasSelfLink()) return false; if (hasSelfLink()) { if (!getSelfLink().equals(other.getSelfLink())) return false; @@ -1102,6 +1176,10 @@ public int hashCode() { hash = (37 * hash) + PHYSICAL_TOPOLOGY_FIELD_NUMBER; hash = (53 * hash) + getPhysicalTopology().hashCode(); } + if (hasReservationSubBlockMaintenance()) { + hash = (37 * hash) + RESERVATION_SUB_BLOCK_MAINTENANCE_FIELD_NUMBER; + hash = (53 * hash) + getReservationSubBlockMaintenance().hashCode(); + } if (hasSelfLink()) { hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; hash = (53 * hash) + getSelfLink().hashCode(); @@ -1260,6 +1338,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getPhysicalTopologyFieldBuilder(); + getReservationSubBlockMaintenanceFieldBuilder(); } } @@ -1278,6 +1357,11 @@ public Builder clear() { physicalTopologyBuilder_.dispose(); physicalTopologyBuilder_ = null; } + reservationSubBlockMaintenance_ = null; + if (reservationSubBlockMaintenanceBuilder_ != null) { + reservationSubBlockMaintenanceBuilder_.dispose(); + reservationSubBlockMaintenanceBuilder_ = null; + } selfLink_ = ""; selfLinkWithId_ = ""; status_ = ""; @@ -1349,21 +1433,28 @@ private void buildPartial0(com.google.cloud.compute.v1.ReservationSubBlock resul to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.selfLink_ = selfLink_; + result.reservationSubBlockMaintenance_ = + reservationSubBlockMaintenanceBuilder_ == null + ? reservationSubBlockMaintenance_ + : reservationSubBlockMaintenanceBuilder_.build(); to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00000100) != 0)) { - result.selfLinkWithId_ = selfLinkWithId_; + result.selfLink_ = selfLink_; to_bitField0_ |= 0x00000100; } if (((from_bitField0_ & 0x00000200) != 0)) { - result.status_ = status_; + result.selfLinkWithId_ = selfLinkWithId_; to_bitField0_ |= 0x00000200; } if (((from_bitField0_ & 0x00000400) != 0)) { - result.zone_ = zone_; + result.status_ = status_; to_bitField0_ |= 0x00000400; } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.zone_ = zone_; + to_bitField0_ |= 0x00000800; + } result.bitField0_ |= to_bitField0_; } @@ -1440,24 +1531,27 @@ public Builder mergeFrom(com.google.cloud.compute.v1.ReservationSubBlock other) if (other.hasPhysicalTopology()) { mergePhysicalTopology(other.getPhysicalTopology()); } + if (other.hasReservationSubBlockMaintenance()) { + mergeReservationSubBlockMaintenance(other.getReservationSubBlockMaintenance()); + } if (other.hasSelfLink()) { selfLink_ = other.selfLink_; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } if (other.hasSelfLinkWithId()) { selfLinkWithId_ = other.selfLinkWithId_; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); } if (other.hasStatus()) { status_ = other.status_; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); } if (other.hasZone()) { zone_ = other.zone_; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -1507,7 +1601,7 @@ public Builder mergeFrom( case 29957474: { zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 29957474 case 244202930: @@ -1519,7 +1613,7 @@ public Builder mergeFrom( case 356167698: { selfLinkWithId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 356167698 case 758810744: @@ -1531,7 +1625,7 @@ public Builder mergeFrom( case 1450082194: { status_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 1450082194 case -2056739142: @@ -1541,10 +1635,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case -2056739142 + case -1278922886: + { + input.readMessage( + getReservationSubBlockMaintenanceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case -1278922886 case -645248918: { selfLink_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case -645248918 case -347296280: @@ -2385,6 +2487,224 @@ public Builder clearPhysicalTopology() { return physicalTopologyBuilder_; } + private com.google.cloud.compute.v1.GroupMaintenanceInfo reservationSubBlockMaintenance_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.compute.v1.GroupMaintenanceInfo, + com.google.cloud.compute.v1.GroupMaintenanceInfo.Builder, + com.google.cloud.compute.v1.GroupMaintenanceInfoOrBuilder> + reservationSubBlockMaintenanceBuilder_; + + /** + * + * + *
+     * Maintenance information for this reservation subBlock.
+     * 
+ * + * + * optional .google.cloud.compute.v1.GroupMaintenanceInfo reservation_sub_block_maintenance = 377005551; + * + * + * @return Whether the reservationSubBlockMaintenance field is set. + */ + public boolean hasReservationSubBlockMaintenance() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Maintenance information for this reservation subBlock.
+     * 
+ * + * + * optional .google.cloud.compute.v1.GroupMaintenanceInfo reservation_sub_block_maintenance = 377005551; + * + * + * @return The reservationSubBlockMaintenance. + */ + public com.google.cloud.compute.v1.GroupMaintenanceInfo getReservationSubBlockMaintenance() { + if (reservationSubBlockMaintenanceBuilder_ == null) { + return reservationSubBlockMaintenance_ == null + ? com.google.cloud.compute.v1.GroupMaintenanceInfo.getDefaultInstance() + : reservationSubBlockMaintenance_; + } else { + return reservationSubBlockMaintenanceBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Maintenance information for this reservation subBlock.
+     * 
+ * + * + * optional .google.cloud.compute.v1.GroupMaintenanceInfo reservation_sub_block_maintenance = 377005551; + * + */ + public Builder setReservationSubBlockMaintenance( + com.google.cloud.compute.v1.GroupMaintenanceInfo value) { + if (reservationSubBlockMaintenanceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reservationSubBlockMaintenance_ = value; + } else { + reservationSubBlockMaintenanceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Maintenance information for this reservation subBlock.
+     * 
+ * + * + * optional .google.cloud.compute.v1.GroupMaintenanceInfo reservation_sub_block_maintenance = 377005551; + * + */ + public Builder setReservationSubBlockMaintenance( + com.google.cloud.compute.v1.GroupMaintenanceInfo.Builder builderForValue) { + if (reservationSubBlockMaintenanceBuilder_ == null) { + reservationSubBlockMaintenance_ = builderForValue.build(); + } else { + reservationSubBlockMaintenanceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Maintenance information for this reservation subBlock.
+     * 
+ * + * + * optional .google.cloud.compute.v1.GroupMaintenanceInfo reservation_sub_block_maintenance = 377005551; + * + */ + public Builder mergeReservationSubBlockMaintenance( + com.google.cloud.compute.v1.GroupMaintenanceInfo value) { + if (reservationSubBlockMaintenanceBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && reservationSubBlockMaintenance_ != null + && reservationSubBlockMaintenance_ + != com.google.cloud.compute.v1.GroupMaintenanceInfo.getDefaultInstance()) { + getReservationSubBlockMaintenanceBuilder().mergeFrom(value); + } else { + reservationSubBlockMaintenance_ = value; + } + } else { + reservationSubBlockMaintenanceBuilder_.mergeFrom(value); + } + if (reservationSubBlockMaintenance_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Maintenance information for this reservation subBlock.
+     * 
+ * + * + * optional .google.cloud.compute.v1.GroupMaintenanceInfo reservation_sub_block_maintenance = 377005551; + * + */ + public Builder clearReservationSubBlockMaintenance() { + bitField0_ = (bitField0_ & ~0x00000080); + reservationSubBlockMaintenance_ = null; + if (reservationSubBlockMaintenanceBuilder_ != null) { + reservationSubBlockMaintenanceBuilder_.dispose(); + reservationSubBlockMaintenanceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Maintenance information for this reservation subBlock.
+     * 
+ * + * + * optional .google.cloud.compute.v1.GroupMaintenanceInfo reservation_sub_block_maintenance = 377005551; + * + */ + public com.google.cloud.compute.v1.GroupMaintenanceInfo.Builder + getReservationSubBlockMaintenanceBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getReservationSubBlockMaintenanceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Maintenance information for this reservation subBlock.
+     * 
+ * + * + * optional .google.cloud.compute.v1.GroupMaintenanceInfo reservation_sub_block_maintenance = 377005551; + * + */ + public com.google.cloud.compute.v1.GroupMaintenanceInfoOrBuilder + getReservationSubBlockMaintenanceOrBuilder() { + if (reservationSubBlockMaintenanceBuilder_ != null) { + return reservationSubBlockMaintenanceBuilder_.getMessageOrBuilder(); + } else { + return reservationSubBlockMaintenance_ == null + ? com.google.cloud.compute.v1.GroupMaintenanceInfo.getDefaultInstance() + : reservationSubBlockMaintenance_; + } + } + + /** + * + * + *
+     * Maintenance information for this reservation subBlock.
+     * 
+ * + * + * optional .google.cloud.compute.v1.GroupMaintenanceInfo reservation_sub_block_maintenance = 377005551; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.compute.v1.GroupMaintenanceInfo, + com.google.cloud.compute.v1.GroupMaintenanceInfo.Builder, + com.google.cloud.compute.v1.GroupMaintenanceInfoOrBuilder> + getReservationSubBlockMaintenanceFieldBuilder() { + if (reservationSubBlockMaintenanceBuilder_ == null) { + reservationSubBlockMaintenanceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.compute.v1.GroupMaintenanceInfo, + com.google.cloud.compute.v1.GroupMaintenanceInfo.Builder, + com.google.cloud.compute.v1.GroupMaintenanceInfoOrBuilder>( + getReservationSubBlockMaintenance(), getParentForChildren(), isClean()); + reservationSubBlockMaintenance_ = null; + } + return reservationSubBlockMaintenanceBuilder_; + } + private java.lang.Object selfLink_ = ""; /** @@ -2399,7 +2719,7 @@ public Builder clearPhysicalTopology() { * @return Whether the selfLink field is set. */ public boolean hasSelfLink() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -2465,7 +2785,7 @@ public Builder setSelfLink(java.lang.String value) { throw new NullPointerException(); } selfLink_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2483,7 +2803,7 @@ public Builder setSelfLink(java.lang.String value) { */ public Builder clearSelfLink() { selfLink_ = getDefaultInstance().getSelfLink(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -2506,7 +2826,7 @@ public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); selfLink_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2525,7 +2845,7 @@ public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { * @return Whether the selfLinkWithId field is set. */ public boolean hasSelfLinkWithId() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** @@ -2591,7 +2911,7 @@ public Builder setSelfLinkWithId(java.lang.String value) { throw new NullPointerException(); } selfLinkWithId_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2609,7 +2929,7 @@ public Builder setSelfLinkWithId(java.lang.String value) { */ public Builder clearSelfLinkWithId() { selfLinkWithId_ = getDefaultInstance().getSelfLinkWithId(); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -2632,7 +2952,7 @@ public Builder setSelfLinkWithIdBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); selfLinkWithId_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2652,7 +2972,7 @@ public Builder setSelfLinkWithIdBytes(com.google.protobuf.ByteString value) { * @return Whether the status field is set. */ public boolean hasStatus() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** @@ -2721,7 +3041,7 @@ public Builder setStatus(java.lang.String value) { throw new NullPointerException(); } status_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -2740,7 +3060,7 @@ public Builder setStatus(java.lang.String value) { */ public Builder clearStatus() { status_ = getDefaultInstance().getStatus(); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } @@ -2764,7 +3084,7 @@ public Builder setStatusBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); status_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -2783,7 +3103,7 @@ public Builder setStatusBytes(com.google.protobuf.ByteString value) { * @return Whether the zone field is set. */ public boolean hasZone() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** @@ -2849,7 +3169,7 @@ public Builder setZone(java.lang.String value) { throw new NullPointerException(); } zone_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -2867,7 +3187,7 @@ public Builder setZone(java.lang.String value) { */ public Builder clearZone() { zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } @@ -2890,7 +3210,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); zone_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ReservationSubBlockOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ReservationSubBlockOrBuilder.java index cbd80051839a..2a973b9b65ac 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ReservationSubBlockOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ReservationSubBlockOrBuilder.java @@ -263,6 +263,50 @@ public interface ReservationSubBlockOrBuilder com.google.cloud.compute.v1.ReservationSubBlockPhysicalTopologyOrBuilder getPhysicalTopologyOrBuilder(); + /** + * + * + *
+   * Maintenance information for this reservation subBlock.
+   * 
+ * + * + * optional .google.cloud.compute.v1.GroupMaintenanceInfo reservation_sub_block_maintenance = 377005551; + * + * + * @return Whether the reservationSubBlockMaintenance field is set. + */ + boolean hasReservationSubBlockMaintenance(); + + /** + * + * + *
+   * Maintenance information for this reservation subBlock.
+   * 
+ * + * + * optional .google.cloud.compute.v1.GroupMaintenanceInfo reservation_sub_block_maintenance = 377005551; + * + * + * @return The reservationSubBlockMaintenance. + */ + com.google.cloud.compute.v1.GroupMaintenanceInfo getReservationSubBlockMaintenance(); + + /** + * + * + *
+   * Maintenance information for this reservation subBlock.
+   * 
+ * + * + * optional .google.cloud.compute.v1.GroupMaintenanceInfo reservation_sub_block_maintenance = 377005551; + * + */ + com.google.cloud.compute.v1.GroupMaintenanceInfoOrBuilder + getReservationSubBlockMaintenanceOrBuilder(); + /** * * diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/proto/google/cloud/compute/v1/compute.proto b/java-compute/proto-google-cloud-compute-v1/src/main/proto/google/cloud/compute/v1/compute.proto index eee390c244bd..2f368912a0a8 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/proto/google/cloud/compute/v1/compute.proto +++ b/java-compute/proto-google-cloud-compute-v1/src/main/proto/google/cloud/compute/v1/compute.proto @@ -14,7 +14,7 @@ // Generated by the disco-to-proto3-converter. DO NOT EDIT! // Source Discovery file: compute.v1.json -// Source file revision: 20250601 +// Source file revision: 20250626 // API name: compute // API version: v1 @@ -3871,6 +3871,9 @@ message BackendService { // The backend service timeout has a different meaning depending on the type of load balancer. For more information see, Backend service settings. The default is 30 seconds. The full range of timeout values allowed goes from 1 through 2,147,483,647 seconds. This value can be overridden in the PathMatcher configuration of the UrlMap that references this backend service. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. Instead, use maxStreamDuration. optional int32 timeout_sec = 79994995; + // Configuration for Backend Authenticated TLS and mTLS. May only be specified when the backend protocol is SSL, HTTPS or HTTP2. + optional BackendServiceTlsSettings tls_settings = 81794791; + // [Output Only] List of resources referencing given backend service. repeated BackendServiceUsedBy used_by = 389320729; @@ -4267,6 +4270,29 @@ message BackendServiceReference { } +// +message BackendServiceTlsSettings { + // Reference to the BackendAuthenticationConfig resource from the networksecurity.googleapis.com namespace. Can be used in authenticating TLS connections to the backend, as specified by the authenticationMode field. Can only be specified if authenticationMode is not NONE. + optional string authentication_config = 408053481; + + // Server Name Indication - see RFC3546 section 3.1. If set, the load balancer sends this string as the SNI hostname in the TLS connection to the backend, and requires that this string match a Subject Alternative Name (SAN) in the backend's server certificate. With a Regional Internet NEG backend, if the SNI is specified here, the load balancer uses it regardless of whether the Regional Internet NEG is specified with FQDN or IP address and port. When both sni and subjectAltNames[] are specified, the load balancer matches the backend certificate's SAN only to subjectAltNames[]. + optional string sni = 114030; + + // A list of Subject Alternative Names (SANs) that the Load Balancer verifies during a TLS handshake with the backend. When the server presents its X.509 certificate to the Load Balancer, the Load Balancer inspects the certificate's SAN field, and requires that at least one SAN match one of the subjectAltNames in the list. This field is limited to 5 entries. When both sni and subjectAltNames[] are specified, the load balancer matches the backend certificate's SAN only to subjectAltNames[]. + repeated BackendServiceTlsSettingsSubjectAltName subject_alt_names = 330029535; + +} + +// A Subject Alternative Name that the load balancer matches against the SAN field in the TLS certificate provided by the backend, specified as either a DNS name or a URI, in accordance with RFC 5280 4.2.1.6 +message BackendServiceTlsSettingsSubjectAltName { + // The SAN specified as a DNS Name. + optional string dns_name = 411992033; + + // The SAN specified as a URI. + optional string uniform_resource_identifier = 491409007; + +} + // message BackendServiceUsedBy { // [Output Only] Server-defined URL for resources referencing given BackendService like UrlMaps, TargetTcpProxies, TargetSslProxies and ForwardingRule. @@ -11129,6 +11155,12 @@ message GroupMaintenanceInfo { } + // Describes number of instances that have ongoing maintenance. + optional int32 instance_maintenance_ongoing_count = 137611253; + + // Describes number of instances that have pending maintenance. + optional int32 instance_maintenance_pending_count = 76612881; + // Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the block that have ongoing maintenance. optional int32 maintenance_ongoing_count = 219781919; @@ -11139,6 +11171,12 @@ message GroupMaintenanceInfo { // Check the SchedulingType enum for the list of possible values. optional string scheduling_type = 199835397; + // Describes number of subblock Infrastructure that has ongoing maintenance. Here, Subblock Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is necessary for a VM Family(e.g. NVLink Domains). Not all VM Families will support this field. + optional int32 subblock_infra_maintenance_ongoing_count = 366161790; + + // Describes number of subblock Infrastructure that has pending maintenance. Here, Subblock Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is necessary for a VM Family (e.g. NVLink Domains). Not all VM Families will support this field. + optional int32 subblock_infra_maintenance_pending_count = 305163418; + // Maintenance information on this group of VMs. optional UpcomingMaintenance upcoming_group_maintenance = 393438448; @@ -25820,6 +25858,31 @@ message PerformMaintenanceReservationRequest { } +// A request message for ReservationSubBlocks.PerformMaintenance. See the method description for details. +message PerformMaintenanceReservationSubBlockRequest { + // The name of the parent reservation and parent block. In the format of reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + string parent_name = 478151936 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + + // The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. + string reservation_sub_block = 22750491 [(google.api.field_behavior) = REQUIRED]; + + // Name of the zone for this request. Zone name should conform to RFC1035. + string zone = 3744684 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "zone" + ]; + +} + // An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 } ``` **YAML example:** ``` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). message Policy { // Specifies cloud audit logging configuration for this policy. @@ -28350,6 +28413,9 @@ message ReservationSubBlock { // [Output Only] The physical topology of the reservation subBlock. optional ReservationSubBlockPhysicalTopology physical_topology = 279778519; + // Maintenance information for this reservation subBlock. + optional GroupMaintenanceInfo reservation_sub_block_maintenance = 377005551; + // [Output Only] Server-defined fully-qualified URL for this resource. optional string self_link = 456214797; @@ -45597,7 +45663,6 @@ service ReservationSubBlocks { "compute.googleapis.com"; option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/compute.readonly," "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; @@ -45617,6 +45682,15 @@ service ReservationSubBlocks { option (google.api.method_signature) = "project,zone,parent_name"; } + // Allows customers to perform maintenance on a reservation subBlock + rpc PerformMaintenance(PerformMaintenanceReservationSubBlockRequest) returns (Operation) { + option (google.api.http) = { + post: "/compute/v1/projects/{project}/zones/{zone}/{parent_name}/reservationSubBlocks/{reservation_sub_block}/performMaintenance" + }; + option (google.api.method_signature) = "project,zone,parent_name,reservation_sub_block"; + option (google.cloud.operation_service) = "ZoneOperations"; + } + } // The Reservations API. diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/reservationsubblocks/performmaintenance/AsyncPerformMaintenance.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/reservationsubblocks/performmaintenance/AsyncPerformMaintenance.java new file mode 100644 index 000000000000..558e4e6e7156 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/reservationsubblocks/performmaintenance/AsyncPerformMaintenance.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.compute.v1.samples; + +// [START compute_v1_generated_ReservationSubBlocks_PerformMaintenance_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest; +import com.google.cloud.compute.v1.ReservationSubBlocksClient; +import com.google.longrunning.Operation; + +public class AsyncPerformMaintenance { + + public static void main(String[] args) throws Exception { + asyncPerformMaintenance(); + } + + public static void asyncPerformMaintenance() 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 (ReservationSubBlocksClient reservationSubBlocksClient = + ReservationSubBlocksClient.create()) { + PerformMaintenanceReservationSubBlockRequest request = + PerformMaintenanceReservationSubBlockRequest.newBuilder() + .setParentName("parentName-244870571") + .setProject("project-309310695") + .setRequestId("requestId693933066") + .setReservationSubBlock("reservationSubBlock-1816847847") + .setZone("zone3744684") + .build(); + ApiFuture future = + reservationSubBlocksClient.performMaintenanceCallable().futureCall(request); + // Do something. + com.google.cloud.compute.v1.Operation response = future.get(); + } + } +} +// [END compute_v1_generated_ReservationSubBlocks_PerformMaintenance_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/reservationsubblocks/performmaintenance/AsyncPerformMaintenanceLRO.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/reservationsubblocks/performmaintenance/AsyncPerformMaintenanceLRO.java new file mode 100644 index 000000000000..359df27be359 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/reservationsubblocks/performmaintenance/AsyncPerformMaintenanceLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.compute.v1.samples; + +// [START compute_v1_generated_ReservationSubBlocks_PerformMaintenance_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest; +import com.google.cloud.compute.v1.ReservationSubBlocksClient; + +public class AsyncPerformMaintenanceLRO { + + public static void main(String[] args) throws Exception { + asyncPerformMaintenanceLRO(); + } + + public static void asyncPerformMaintenanceLRO() 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 (ReservationSubBlocksClient reservationSubBlocksClient = + ReservationSubBlocksClient.create()) { + PerformMaintenanceReservationSubBlockRequest request = + PerformMaintenanceReservationSubBlockRequest.newBuilder() + .setParentName("parentName-244870571") + .setProject("project-309310695") + .setRequestId("requestId693933066") + .setReservationSubBlock("reservationSubBlock-1816847847") + .setZone("zone3744684") + .build(); + OperationFuture future = + reservationSubBlocksClient.performMaintenanceOperationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END compute_v1_generated_ReservationSubBlocks_PerformMaintenance_LRO_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/reservationsubblocks/performmaintenance/SyncPerformMaintenance.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/reservationsubblocks/performmaintenance/SyncPerformMaintenance.java new file mode 100644 index 000000000000..798b1de4e45d --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/reservationsubblocks/performmaintenance/SyncPerformMaintenance.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.compute.v1.samples; + +// [START compute_v1_generated_ReservationSubBlocks_PerformMaintenance_sync] +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.PerformMaintenanceReservationSubBlockRequest; +import com.google.cloud.compute.v1.ReservationSubBlocksClient; + +public class SyncPerformMaintenance { + + public static void main(String[] args) throws Exception { + syncPerformMaintenance(); + } + + public static void syncPerformMaintenance() 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 (ReservationSubBlocksClient reservationSubBlocksClient = + ReservationSubBlocksClient.create()) { + PerformMaintenanceReservationSubBlockRequest request = + PerformMaintenanceReservationSubBlockRequest.newBuilder() + .setParentName("parentName-244870571") + .setProject("project-309310695") + .setRequestId("requestId693933066") + .setReservationSubBlock("reservationSubBlock-1816847847") + .setZone("zone3744684") + .build(); + Operation response = reservationSubBlocksClient.performMaintenanceAsync(request).get(); + } + } +} +// [END compute_v1_generated_ReservationSubBlocks_PerformMaintenance_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/reservationsubblocks/performmaintenance/SyncPerformMaintenanceStringStringStringString.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/reservationsubblocks/performmaintenance/SyncPerformMaintenanceStringStringStringString.java new file mode 100644 index 000000000000..aba44cb2fb72 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/reservationsubblocks/performmaintenance/SyncPerformMaintenanceStringStringStringString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.compute.v1.samples; + +// [START compute_v1_generated_ReservationSubBlocks_PerformMaintenance_StringStringStringString_sync] +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.ReservationSubBlocksClient; + +public class SyncPerformMaintenanceStringStringStringString { + + public static void main(String[] args) throws Exception { + syncPerformMaintenanceStringStringStringString(); + } + + public static void syncPerformMaintenanceStringStringStringString() 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 (ReservationSubBlocksClient reservationSubBlocksClient = + ReservationSubBlocksClient.create()) { + String project = "project-309310695"; + String zone = "zone3744684"; + String parentName = "parentName-244870571"; + String reservationSubBlock = "reservationSubBlock-1816847847"; + Operation response = + reservationSubBlocksClient + .performMaintenanceAsync(project, zone, parentName, reservationSubBlock) + .get(); + } + } +} +// [END compute_v1_generated_ReservationSubBlocks_PerformMaintenance_StringStringStringString_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/reservationsubblockssettings/performmaintenance/SyncPerformMaintenance.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/reservationsubblockssettings/performmaintenance/SyncPerformMaintenance.java new file mode 100644 index 000000000000..96bac38c37cd --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/reservationsubblockssettings/performmaintenance/SyncPerformMaintenance.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.compute.v1.samples; + +// [START compute_v1_generated_ReservationSubBlocksSettings_PerformMaintenance_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.compute.v1.ReservationSubBlocksSettings; +import java.time.Duration; + +public class SyncPerformMaintenance { + + public static void main(String[] args) throws Exception { + syncPerformMaintenance(); + } + + public static void syncPerformMaintenance() 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 + ReservationSubBlocksSettings.Builder reservationSubBlocksSettingsBuilder = + ReservationSubBlocksSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + reservationSubBlocksSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END compute_v1_generated_ReservationSubBlocksSettings_PerformMaintenance_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/reservationsubblocksstubsettings/performmaintenance/SyncPerformMaintenance.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/reservationsubblocksstubsettings/performmaintenance/SyncPerformMaintenance.java new file mode 100644 index 000000000000..cf5785aca3dc --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/reservationsubblocksstubsettings/performmaintenance/SyncPerformMaintenance.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.compute.v1.stub.samples; + +// [START compute_v1_generated_ReservationSubBlocksStubSettings_PerformMaintenance_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.compute.v1.stub.ReservationSubBlocksStubSettings; +import java.time.Duration; + +public class SyncPerformMaintenance { + + public static void main(String[] args) throws Exception { + syncPerformMaintenance(); + } + + public static void syncPerformMaintenance() 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 + ReservationSubBlocksStubSettings.Builder reservationSubBlocksSettingsBuilder = + ReservationSubBlocksStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + reservationSubBlocksSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END compute_v1_generated_ReservationSubBlocksStubSettings_PerformMaintenance_sync] diff --git a/java-confidentialcomputing/CHANGELOG.md b/java-confidentialcomputing/CHANGELOG.md index 5244c86ea06c..448dfcc3e8b8 100644 --- a/java-confidentialcomputing/CHANGELOG.md +++ b/java-confidentialcomputing/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.54.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.53.0 (2025-06-25) ### Dependencies diff --git a/java-confidentialcomputing/README.md b/java-confidentialcomputing/README.md index 4e9b6eaa1bf9..700af5d84e9f 100644 --- a/java-confidentialcomputing/README.md +++ b/java-confidentialcomputing/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-confidentialcomputing - 0.52.0 + 0.53.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-confidentialcomputing:0.52.0' +implementation 'com.google.cloud:google-cloud-confidentialcomputing:0.53.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-confidentialcomputing" % "0.52.0" +libraryDependencies += "com.google.cloud" % "google-cloud-confidentialcomputing" % "0.53.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-confidentialcomputing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-confidentialcomputing/0.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-confidentialcomputing/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-confidentialcomputing/google-cloud-confidentialcomputing-bom/pom.xml b/java-confidentialcomputing/google-cloud-confidentialcomputing-bom/pom.xml index 83b8b0f26b6c..de2346c0eb2b 100644 --- a/java-confidentialcomputing/google-cloud-confidentialcomputing-bom/pom.xml +++ b/java-confidentialcomputing/google-cloud-confidentialcomputing-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-confidentialcomputing-bom - 0.53.0 + 0.54.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-confidentialcomputing - 0.53.0 + 0.54.0 com.google.api.grpc grpc-google-cloud-confidentialcomputing-v1 - 0.53.0 + 0.54.0 com.google.api.grpc grpc-google-cloud-confidentialcomputing-v1alpha1 - 0.53.0 + 0.54.0 com.google.api.grpc proto-google-cloud-confidentialcomputing-v1 - 0.53.0 + 0.54.0 com.google.api.grpc proto-google-cloud-confidentialcomputing-v1alpha1 - 0.53.0 + 0.54.0
diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/pom.xml b/java-confidentialcomputing/google-cloud-confidentialcomputing/pom.xml index 8b8227d4e844..f982d9058518 100644 --- a/java-confidentialcomputing/google-cloud-confidentialcomputing/pom.xml +++ b/java-confidentialcomputing/google-cloud-confidentialcomputing/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-confidentialcomputing - 0.53.0 + 0.54.0 jar Google Confidential Computing API Confidential Computing API Protect data in-use with Confidential VMs, Confidential GKE, Confidential Dataproc, and Confidential Space. com.google.cloud google-cloud-confidentialcomputing-parent - 0.53.0 + 0.54.0 google-cloud-confidentialcomputing diff --git a/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1/pom.xml b/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1/pom.xml index 5e57acd05727..866caf6e8add 100644 --- a/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1/pom.xml +++ b/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-confidentialcomputing-v1 - 0.53.0 + 0.54.0 grpc-google-cloud-confidentialcomputing-v1 GRPC library for google-cloud-confidentialcomputing com.google.cloud google-cloud-confidentialcomputing-parent - 0.53.0 + 0.54.0 diff --git a/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1alpha1/pom.xml b/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1alpha1/pom.xml index cd30f4f91824..432c009ec96b 100644 --- a/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1alpha1/pom.xml +++ b/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-confidentialcomputing-v1alpha1 - 0.53.0 + 0.54.0 grpc-google-cloud-confidentialcomputing-v1alpha1 GRPC library for google-cloud-confidentialcomputing com.google.cloud google-cloud-confidentialcomputing-parent - 0.53.0 + 0.54.0 diff --git a/java-confidentialcomputing/pom.xml b/java-confidentialcomputing/pom.xml index 32ffc7640881..4630779667ae 100644 --- a/java-confidentialcomputing/pom.xml +++ b/java-confidentialcomputing/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-confidentialcomputing-parent pom - 0.53.0 + 0.54.0 Google Confidential Computing API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-confidentialcomputing - 0.53.0 + 0.54.0 com.google.api.grpc grpc-google-cloud-confidentialcomputing-v1 - 0.53.0 + 0.54.0 com.google.api.grpc grpc-google-cloud-confidentialcomputing-v1alpha1 - 0.53.0 + 0.54.0 com.google.api.grpc proto-google-cloud-confidentialcomputing-v1 - 0.53.0 + 0.54.0 com.google.api.grpc proto-google-cloud-confidentialcomputing-v1alpha1 - 0.53.0 + 0.54.0 diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/pom.xml b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/pom.xml index 2ccb4b929bad..326d4b9062eb 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/pom.xml +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-confidentialcomputing-v1 - 0.53.0 + 0.54.0 proto-google-cloud-confidentialcomputing-v1 Proto library for google-cloud-confidentialcomputing com.google.cloud google-cloud-confidentialcomputing-parent - 0.53.0 + 0.54.0 diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/pom.xml b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/pom.xml index 07c0d0f3cc27..14c95edafa28 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/pom.xml +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-confidentialcomputing-v1alpha1 - 0.53.0 + 0.54.0 proto-google-cloud-confidentialcomputing-v1alpha1 Proto library for google-cloud-confidentialcomputing com.google.cloud google-cloud-confidentialcomputing-parent - 0.53.0 + 0.54.0 diff --git a/java-configdelivery/CHANGELOG.md b/java-configdelivery/CHANGELOG.md index 07fa8352e3f7..594099440703 100644 --- a/java-configdelivery/CHANGELOG.md +++ b/java-configdelivery/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.2.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.1.0 (2025-06-25) ### Features diff --git a/java-configdelivery/README.md b/java-configdelivery/README.md index 28b506c7a7fe..71c0bb003183 100644 --- a/java-configdelivery/README.md +++ b/java-configdelivery/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-configdelivery - 0.0.0 + 0.1.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-configdelivery:0.0.0' +implementation 'com.google.cloud:google-cloud-configdelivery:0.1.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-configdelivery" % "0.0.0" +libraryDependencies += "com.google.cloud" % "google-cloud-configdelivery" % "0.1.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-configdelivery.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-configdelivery/0.0.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-configdelivery/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-configdelivery/google-cloud-configdelivery-bom/pom.xml b/java-configdelivery/google-cloud-configdelivery-bom/pom.xml index c94fe295c00c..bfe5e18a837e 100644 --- a/java-configdelivery/google-cloud-configdelivery-bom/pom.xml +++ b/java-configdelivery/google-cloud-configdelivery-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-configdelivery-bom - 0.1.0 + 0.2.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-configdelivery - 0.1.0 + 0.2.0 com.google.api.grpc grpc-google-cloud-configdelivery-v1beta - 0.1.0 + 0.2.0 com.google.api.grpc proto-google-cloud-configdelivery-v1beta - 0.1.0 + 0.2.0 diff --git a/java-configdelivery/google-cloud-configdelivery/pom.xml b/java-configdelivery/google-cloud-configdelivery/pom.xml index 3ccbc2c700b5..c66abf90ea0f 100644 --- a/java-configdelivery/google-cloud-configdelivery/pom.xml +++ b/java-configdelivery/google-cloud-configdelivery/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-configdelivery - 0.1.0 + 0.2.0 jar Google Config Delivery API Config Delivery API ConfigDelivery service manages the deployment of kubernetes configuration to a fleet of kubernetes clusters. com.google.cloud google-cloud-configdelivery-parent - 0.1.0 + 0.2.0 google-cloud-configdelivery diff --git a/java-configdelivery/grpc-google-cloud-configdelivery-v1beta/pom.xml b/java-configdelivery/grpc-google-cloud-configdelivery-v1beta/pom.xml index 430d463af8fc..8cc6f206f90d 100644 --- a/java-configdelivery/grpc-google-cloud-configdelivery-v1beta/pom.xml +++ b/java-configdelivery/grpc-google-cloud-configdelivery-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-configdelivery-v1beta - 0.1.0 + 0.2.0 grpc-google-cloud-configdelivery-v1beta GRPC library for google-cloud-configdelivery com.google.cloud google-cloud-configdelivery-parent - 0.1.0 + 0.2.0 diff --git a/java-configdelivery/pom.xml b/java-configdelivery/pom.xml index 7a36dc875692..bcce0f533a3b 100644 --- a/java-configdelivery/pom.xml +++ b/java-configdelivery/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-configdelivery-parent pom - 0.1.0 + 0.2.0 Google Config Delivery API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-configdelivery - 0.1.0 + 0.2.0 com.google.api.grpc grpc-google-cloud-configdelivery-v1beta - 0.1.0 + 0.2.0 com.google.api.grpc proto-google-cloud-configdelivery-v1beta - 0.1.0 + 0.2.0 diff --git a/java-configdelivery/proto-google-cloud-configdelivery-v1beta/pom.xml b/java-configdelivery/proto-google-cloud-configdelivery-v1beta/pom.xml index 888c39d11d05..222c276e50d1 100644 --- a/java-configdelivery/proto-google-cloud-configdelivery-v1beta/pom.xml +++ b/java-configdelivery/proto-google-cloud-configdelivery-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-configdelivery-v1beta - 0.1.0 + 0.2.0 proto-google-cloud-configdelivery-v1beta Proto library for google-cloud-configdelivery com.google.cloud google-cloud-configdelivery-parent - 0.1.0 + 0.2.0 diff --git a/java-connectgateway/CHANGELOG.md b/java-connectgateway/CHANGELOG.md index cdc3c5d01c0d..850953722a5a 100644 --- a/java-connectgateway/CHANGELOG.md +++ b/java-connectgateway/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.20.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.19.0 (2025-06-25) ### Dependencies diff --git a/java-connectgateway/README.md b/java-connectgateway/README.md index f94491dbdc0a..9ae8ea75cbdd 100644 --- a/java-connectgateway/README.md +++ b/java-connectgateway/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-connectgateway - 0.18.0 + 0.19.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-connectgateway:0.18.0' +implementation 'com.google.cloud:google-cloud-connectgateway:0.19.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-connectgateway" % "0.18.0" +libraryDependencies += "com.google.cloud" % "google-cloud-connectgateway" % "0.19.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-connectgateway.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-connectgateway/0.18.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-connectgateway/0.19.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/google-cloud-connectgateway-bom/pom.xml b/java-connectgateway/google-cloud-connectgateway-bom/pom.xml index db9536fb07fd..b1ef799bea46 100644 --- a/java-connectgateway/google-cloud-connectgateway-bom/pom.xml +++ b/java-connectgateway/google-cloud-connectgateway-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-connectgateway-bom - 0.19.0 + 0.20.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -26,12 +26,12 @@ com.google.cloud google-cloud-connectgateway - 0.19.0 + 0.20.0 com.google.api.grpc proto-google-cloud-connectgateway-v1 - 0.19.0 + 0.20.0 diff --git a/java-connectgateway/google-cloud-connectgateway/pom.xml b/java-connectgateway/google-cloud-connectgateway/pom.xml index db9efc02e20c..f17dfcd41a18 100644 --- a/java-connectgateway/google-cloud-connectgateway/pom.xml +++ b/java-connectgateway/google-cloud-connectgateway/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-connectgateway - 0.19.0 + 0.20.0 jar Google Connect Gateway API Connect Gateway API The Connect Gateway service allows connectivity from external parties to connected Kubernetes clusters. com.google.cloud google-cloud-connectgateway-parent - 0.19.0 + 0.20.0 google-cloud-connectgateway diff --git a/java-connectgateway/pom.xml b/java-connectgateway/pom.xml index 973897fce227..113feafb64f9 100644 --- a/java-connectgateway/pom.xml +++ b/java-connectgateway/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-connectgateway-parent pom - 0.19.0 + 0.20.0 Google Connect Gateway API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,12 +29,12 @@ com.google.cloud google-cloud-connectgateway - 0.19.0 + 0.20.0 com.google.api.grpc proto-google-cloud-connectgateway-v1 - 0.19.0 + 0.20.0 diff --git a/java-connectgateway/proto-google-cloud-connectgateway-v1/pom.xml b/java-connectgateway/proto-google-cloud-connectgateway-v1/pom.xml index 9d5b8e94e771..d468b85cff1e 100644 --- a/java-connectgateway/proto-google-cloud-connectgateway-v1/pom.xml +++ b/java-connectgateway/proto-google-cloud-connectgateway-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-connectgateway-v1 - 0.19.0 + 0.20.0 proto-google-cloud-connectgateway-v1 Proto library for google-cloud-connectgateway com.google.cloud google-cloud-connectgateway-parent - 0.19.0 + 0.20.0 diff --git a/java-contact-center-insights/CHANGELOG.md b/java-contact-center-insights/CHANGELOG.md index bd1999d83cc5..3b645916404c 100644 --- a/java-contact-center-insights/CHANGELOG.md +++ b/java-contact-center-insights/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.68.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.67.0 (2025-06-25) ### Dependencies diff --git a/java-contact-center-insights/README.md b/java-contact-center-insights/README.md index 17d4ff4a594b..0aa461515efd 100644 --- a/java-contact-center-insights/README.md +++ b/java-contact-center-insights/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-contact-center-insights - 2.66.0 + 2.67.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-contact-center-insights:2.66.0' +implementation 'com.google.cloud:google-cloud-contact-center-insights:2.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-contact-center-insights" % "2.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-contact-center-insights" % "2.67.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contact-center-insights/2.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-contact-center-insights/google-cloud-contact-center-insights-bom/pom.xml b/java-contact-center-insights/google-cloud-contact-center-insights-bom/pom.xml index 0d39909715b2..62d5bacf9e63 100644 --- a/java-contact-center-insights/google-cloud-contact-center-insights-bom/pom.xml +++ b/java-contact-center-insights/google-cloud-contact-center-insights-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-contact-center-insights-bom - 2.67.0 + 2.68.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-contact-center-insights - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-contact-center-insights-v1 - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-cloud-contact-center-insights-v1 - 2.67.0 + 2.68.0 diff --git a/java-contact-center-insights/google-cloud-contact-center-insights/pom.xml b/java-contact-center-insights/google-cloud-contact-center-insights/pom.xml index b146eb9057a4..0a82ae288eeb 100644 --- a/java-contact-center-insights/google-cloud-contact-center-insights/pom.xml +++ b/java-contact-center-insights/google-cloud-contact-center-insights/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-contact-center-insights - 2.67.0 + 2.68.0 jar Google CCAI Insights CCAI Insights helps users detect and visualize patterns in their contact center data. com.google.cloud google-cloud-contact-center-insights-parent - 2.67.0 + 2.68.0 google-cloud-contact-center-insights diff --git a/java-contact-center-insights/grpc-google-cloud-contact-center-insights-v1/pom.xml b/java-contact-center-insights/grpc-google-cloud-contact-center-insights-v1/pom.xml index e3f39de07c69..b89ad021f381 100644 --- a/java-contact-center-insights/grpc-google-cloud-contact-center-insights-v1/pom.xml +++ b/java-contact-center-insights/grpc-google-cloud-contact-center-insights-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-contact-center-insights-v1 - 2.67.0 + 2.68.0 grpc-google-cloud-contact-center-insights-v1 GRPC library for google-cloud-contact-center-insights com.google.cloud google-cloud-contact-center-insights-parent - 2.67.0 + 2.68.0 diff --git a/java-contact-center-insights/pom.xml b/java-contact-center-insights/pom.xml index 41a5c8a383f0..7c58f658ae3e 100644 --- a/java-contact-center-insights/pom.xml +++ b/java-contact-center-insights/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-contact-center-insights-parent pom - 2.67.0 + 2.68.0 Google CCAI Insights Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-contact-center-insights - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-contact-center-insights-v1 - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-cloud-contact-center-insights-v1 - 2.67.0 + 2.68.0 diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/pom.xml b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/pom.xml index 5479099fe235..6fdd606678f7 100644 --- a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/pom.xml +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-contact-center-insights-v1 - 2.67.0 + 2.68.0 proto-google-cloud-contact-center-insights-v1 Proto library for google-cloud-contact-center-insights com.google.cloud google-cloud-contact-center-insights-parent - 2.67.0 + 2.68.0 diff --git a/java-container/CHANGELOG.md b/java-container/CHANGELOG.md index 9bbb28ec7c84..386abd903ae0 100644 --- a/java-container/CHANGELOG.md +++ b/java-container/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.71.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.70.0 (2025-06-25) ### Dependencies diff --git a/java-container/README.md b/java-container/README.md index 13b29beff735..cd0e1b0fb4f9 100644 --- a/java-container/README.md +++ b/java-container/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-container - 2.69.0 + 2.70.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-container:2.69.0' +implementation 'com.google.cloud:google-cloud-container:2.70.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-container" % "2.69.0" +libraryDependencies += "com.google.cloud" % "google-cloud-container" % "2.70.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.69.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-container/2.70.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/google-cloud-container-bom/pom.xml b/java-container/google-cloud-container-bom/pom.xml index 4fae6f75a57c..bf33938354a2 100644 --- a/java-container/google-cloud-container-bom/pom.xml +++ b/java-container/google-cloud-container-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-container-bom - 2.70.0 + 2.71.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-container - 2.70.0 + 2.71.0 com.google.api.grpc grpc-google-cloud-container-v1 - 2.70.0 + 2.71.0 com.google.api.grpc grpc-google-cloud-container-v1beta1 - 2.70.0 + 2.71.0 com.google.api.grpc proto-google-cloud-container-v1 - 2.70.0 + 2.71.0 com.google.api.grpc proto-google-cloud-container-v1beta1 - 2.70.0 + 2.71.0 diff --git a/java-container/google-cloud-container/pom.xml b/java-container/google-cloud-container/pom.xml index 5aa0cd8b94a2..74941d3f39e9 100644 --- a/java-container/google-cloud-container/pom.xml +++ b/java-container/google-cloud-container/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-container - 2.70.0 + 2.71.0 jar Google Cloud Container Java idiomatic client for Google Cloud Container com.google.cloud google-cloud-container-parent - 2.70.0 + 2.71.0 google-cloud-container diff --git a/java-container/grpc-google-cloud-container-v1/pom.xml b/java-container/grpc-google-cloud-container-v1/pom.xml index 6ad00b18a662..a7d22ba5ab4f 100644 --- a/java-container/grpc-google-cloud-container-v1/pom.xml +++ b/java-container/grpc-google-cloud-container-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-container-v1 - 2.70.0 + 2.71.0 grpc-google-cloud-container-v1 GRPC library for grpc-google-cloud-container-v1 com.google.cloud google-cloud-container-parent - 2.70.0 + 2.71.0 diff --git a/java-container/grpc-google-cloud-container-v1beta1/pom.xml b/java-container/grpc-google-cloud-container-v1beta1/pom.xml index 88e51e07dd6b..d0fd84988976 100644 --- a/java-container/grpc-google-cloud-container-v1beta1/pom.xml +++ b/java-container/grpc-google-cloud-container-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-container-v1beta1 - 2.70.0 + 2.71.0 grpc-google-cloud-container-v1beta1 GRPC library for google-cloud-container com.google.cloud google-cloud-container-parent - 2.70.0 + 2.71.0 diff --git a/java-container/pom.xml b/java-container/pom.xml index 81ae9187242a..65fdaec66d8a 100644 --- a/java-container/pom.xml +++ b/java-container/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-container-parent pom - 2.70.0 + 2.71.0 Google Cloud Container Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-container-v1 - 2.70.0 + 2.71.0 com.google.api.grpc proto-google-cloud-container-v1beta1 - 2.70.0 + 2.71.0 com.google.api.grpc grpc-google-cloud-container-v1beta1 - 2.70.0 + 2.71.0 com.google.api.grpc grpc-google-cloud-container-v1 - 2.70.0 + 2.71.0 com.google.cloud google-cloud-container - 2.70.0 + 2.71.0 diff --git a/java-container/proto-google-cloud-container-v1/pom.xml b/java-container/proto-google-cloud-container-v1/pom.xml index d2edd40f24ba..8c9032d5506d 100644 --- a/java-container/proto-google-cloud-container-v1/pom.xml +++ b/java-container/proto-google-cloud-container-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-container-v1 - 2.70.0 + 2.71.0 proto-google-cloud-container-v1 PROTO library for proto-google-cloud-container-v1 com.google.cloud google-cloud-container-parent - 2.70.0 + 2.71.0 diff --git a/java-container/proto-google-cloud-container-v1beta1/pom.xml b/java-container/proto-google-cloud-container-v1beta1/pom.xml index c20e538a517e..566de357d172 100644 --- a/java-container/proto-google-cloud-container-v1beta1/pom.xml +++ b/java-container/proto-google-cloud-container-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-container-v1beta1 - 2.70.0 + 2.71.0 proto-google-cloud-container-v1beta1 Proto library for google-cloud-container com.google.cloud google-cloud-container-parent - 2.70.0 + 2.71.0 diff --git a/java-containeranalysis/CHANGELOG.md b/java-containeranalysis/CHANGELOG.md index 06e9faf22b07..70be2d5ebf73 100644 --- a/java-containeranalysis/CHANGELOG.md +++ b/java-containeranalysis/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.69.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.68.0 (2025-06-25) ### Dependencies diff --git a/java-containeranalysis/README.md b/java-containeranalysis/README.md index 042974be4211..3f1a254b92b4 100644 --- a/java-containeranalysis/README.md +++ b/java-containeranalysis/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-containeranalysis - 2.67.0 + 2.68.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-containeranalysis:2.67.0' +implementation 'com.google.cloud:google-cloud-containeranalysis:2.68.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-containeranalysis" % "2.67.0" +libraryDependencies += "com.google.cloud" % "google-cloud-containeranalysis" % "2.68.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.67.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-containeranalysis/2.68.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/google-cloud-containeranalysis-bom/pom.xml b/java-containeranalysis/google-cloud-containeranalysis-bom/pom.xml index 1dfdce67ad81..a37e8c3c305e 100644 --- a/java-containeranalysis/google-cloud-containeranalysis-bom/pom.xml +++ b/java-containeranalysis/google-cloud-containeranalysis-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-containeranalysis-bom - 2.68.0 + 2.69.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-containeranalysis - 2.68.0 + 2.69.0 com.google.api.grpc grpc-google-cloud-containeranalysis-v1beta1 - 0.158.0 + 0.159.0 com.google.api.grpc grpc-google-cloud-containeranalysis-v1 - 2.68.0 + 2.69.0 com.google.api.grpc proto-google-cloud-containeranalysis-v1 - 2.68.0 + 2.69.0 com.google.api.grpc proto-google-cloud-containeranalysis-v1beta1 - 0.158.0 + 0.159.0 diff --git a/java-containeranalysis/google-cloud-containeranalysis/pom.xml b/java-containeranalysis/google-cloud-containeranalysis/pom.xml index a19debd274bc..460b47162e29 100644 --- a/java-containeranalysis/google-cloud-containeranalysis/pom.xml +++ b/java-containeranalysis/google-cloud-containeranalysis/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-containeranalysis - 2.68.0 + 2.69.0 jar Google Cloud Container Analysis Java idiomatic client for Google Cloud Container Analysis com.google.cloud google-cloud-containeranalysis-parent - 2.68.0 + 2.69.0 google-cloud-containeranalysis diff --git a/java-containeranalysis/grpc-google-cloud-containeranalysis-v1/pom.xml b/java-containeranalysis/grpc-google-cloud-containeranalysis-v1/pom.xml index 2f1b05006034..68ded47039ca 100644 --- a/java-containeranalysis/grpc-google-cloud-containeranalysis-v1/pom.xml +++ b/java-containeranalysis/grpc-google-cloud-containeranalysis-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-containeranalysis-v1 - 2.68.0 + 2.69.0 grpc-google-cloud-containeranalysis-v1 GRPC library for grpc-google-cloud-containeranalysis-v1 com.google.cloud google-cloud-containeranalysis-parent - 2.68.0 + 2.69.0 diff --git a/java-containeranalysis/grpc-google-cloud-containeranalysis-v1beta1/pom.xml b/java-containeranalysis/grpc-google-cloud-containeranalysis-v1beta1/pom.xml index a32e071b3515..6a135884e54c 100644 --- a/java-containeranalysis/grpc-google-cloud-containeranalysis-v1beta1/pom.xml +++ b/java-containeranalysis/grpc-google-cloud-containeranalysis-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-containeranalysis-v1beta1 - 0.158.0 + 0.159.0 grpc-google-cloud-containeranalysis-v1beta1 GRPC library for grpc-google-cloud-containeranalysis-v1beta1 com.google.cloud google-cloud-containeranalysis-parent - 2.68.0 + 2.69.0 diff --git a/java-containeranalysis/pom.xml b/java-containeranalysis/pom.xml index 1065b866562d..62984f4bc57d 100644 --- a/java-containeranalysis/pom.xml +++ b/java-containeranalysis/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-containeranalysis-parent pom - 2.68.0 + 2.69.0 Google Cloud Container Analysis Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,33 +29,33 @@ com.google.api.grpc proto-google-cloud-containeranalysis-v1 - 2.68.0 + 2.69.0 com.google.api.grpc proto-google-cloud-containeranalysis-v1beta1 - 0.158.0 + 0.159.0 com.google.api.grpc grpc-google-cloud-containeranalysis-v1beta1 - 0.158.0 + 0.159.0 com.google.api.grpc grpc-google-cloud-containeranalysis-v1 - 2.68.0 + 2.69.0 com.google.cloud google-cloud-containeranalysis - 2.68.0 + 2.69.0 io.grafeas grafeas - 2.68.0 + 2.69.0 diff --git a/java-containeranalysis/proto-google-cloud-containeranalysis-v1/pom.xml b/java-containeranalysis/proto-google-cloud-containeranalysis-v1/pom.xml index 69a59aff58ac..bef5d67ed930 100644 --- a/java-containeranalysis/proto-google-cloud-containeranalysis-v1/pom.xml +++ b/java-containeranalysis/proto-google-cloud-containeranalysis-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-containeranalysis-v1 - 2.68.0 + 2.69.0 proto-google-cloud-containeranalysis-v1 PROTO library for proto-google-cloud-containeranalysis-v1 com.google.cloud google-cloud-containeranalysis-parent - 2.68.0 + 2.69.0 diff --git a/java-containeranalysis/proto-google-cloud-containeranalysis-v1beta1/pom.xml b/java-containeranalysis/proto-google-cloud-containeranalysis-v1beta1/pom.xml index 4092c2cb8d77..3666c701a575 100644 --- a/java-containeranalysis/proto-google-cloud-containeranalysis-v1beta1/pom.xml +++ b/java-containeranalysis/proto-google-cloud-containeranalysis-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-containeranalysis-v1beta1 - 0.158.0 + 0.159.0 proto-google-cloud-containeranalysis-v1beta1 PROTO library for proto-google-cloud-containeranalysis-v1beta1 com.google.cloud google-cloud-containeranalysis-parent - 2.68.0 + 2.69.0 diff --git a/java-contentwarehouse/README.md b/java-contentwarehouse/README.md index 6eadd5c52750..f397e06c5302 100644 --- a/java-contentwarehouse/README.md +++ b/java-contentwarehouse/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-contentwarehouse - 0.62.0 + 0.63.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-contentwarehouse:0.62.0' +implementation 'com.google.cloud:google-cloud-contentwarehouse:0.63.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-contentwarehouse" % "0.62.0" +libraryDependencies += "com.google.cloud" % "google-cloud-contentwarehouse" % "0.63.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-contentwarehouse.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contentwarehouse/0.62.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contentwarehouse/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-contentwarehouse/google-cloud-contentwarehouse-bom/pom.xml b/java-contentwarehouse/google-cloud-contentwarehouse-bom/pom.xml index 75c80970885c..35cb9017659d 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse-bom/pom.xml +++ b/java-contentwarehouse/google-cloud-contentwarehouse-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-contentwarehouse-bom - 0.63.0 + 0.64.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-contentwarehouse - 0.63.0 + 0.64.0 com.google.api.grpc grpc-google-cloud-contentwarehouse-v1 - 0.63.0 + 0.64.0 com.google.api.grpc proto-google-cloud-contentwarehouse-v1 - 0.63.0 + 0.64.0 diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/pom.xml b/java-contentwarehouse/google-cloud-contentwarehouse/pom.xml index d1d90e320f90..45f47ad6181e 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse/pom.xml +++ b/java-contentwarehouse/google-cloud-contentwarehouse/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-contentwarehouse - 0.63.0 + 0.64.0 jar Google Document AI Warehouse Document AI Warehouse Document AI Warehouse is an integrated cloud-native GCP platform to store, search, organize, govern and analyze documents and their structured metadata. com.google.cloud google-cloud-contentwarehouse-parent - 0.63.0 + 0.64.0 google-cloud-contentwarehouse diff --git a/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/pom.xml b/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/pom.xml index 471b6e52c120..0923b94cb02c 100644 --- a/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/pom.xml +++ b/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-contentwarehouse-v1 - 0.63.0 + 0.64.0 grpc-google-cloud-contentwarehouse-v1 GRPC library for google-cloud-contentwarehouse com.google.cloud google-cloud-contentwarehouse-parent - 0.63.0 + 0.64.0 diff --git a/java-contentwarehouse/pom.xml b/java-contentwarehouse/pom.xml index 145890d2cd83..498d2cb9fd22 100644 --- a/java-contentwarehouse/pom.xml +++ b/java-contentwarehouse/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-contentwarehouse-parent pom - 0.63.0 + 0.64.0 Google Document AI Warehouse Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-contentwarehouse - 0.63.0 + 0.64.0 com.google.api.grpc grpc-google-cloud-contentwarehouse-v1 - 0.63.0 + 0.64.0 com.google.api.grpc proto-google-cloud-contentwarehouse-v1 - 0.63.0 + 0.64.0 @@ -48,7 +48,7 @@ com.google.cloud google-cloud-document-ai - 2.71.0 + 2.72.0 diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/pom.xml b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/pom.xml index d2a5088db082..1356bda83839 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/pom.xml +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-contentwarehouse-v1 - 0.63.0 + 0.64.0 proto-google-cloud-contentwarehouse-v1 Proto library for google-cloud-contentwarehouse com.google.cloud google-cloud-contentwarehouse-parent - 0.63.0 + 0.64.0 diff --git a/java-data-fusion/CHANGELOG.md b/java-data-fusion/CHANGELOG.md index 5e4eaaa5a778..da574fb9c65c 100644 --- a/java-data-fusion/CHANGELOG.md +++ b/java-data-fusion/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 1.68.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 1.67.0 (2025-06-25) ### Dependencies diff --git a/java-data-fusion/README.md b/java-data-fusion/README.md index d1e65b57a956..ab388444565f 100644 --- a/java-data-fusion/README.md +++ b/java-data-fusion/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-data-fusion - 1.66.0 + 1.67.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-data-fusion:1.66.0' +implementation 'com.google.cloud:google-cloud-data-fusion:1.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-data-fusion" % "1.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-data-fusion" % "1.67.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-data-fusion/1.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-data-fusion/google-cloud-data-fusion-bom/pom.xml b/java-data-fusion/google-cloud-data-fusion-bom/pom.xml index 0ff1cb82102e..42b6009b933a 100644 --- a/java-data-fusion/google-cloud-data-fusion-bom/pom.xml +++ b/java-data-fusion/google-cloud-data-fusion-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-data-fusion-bom - 1.67.0 + 1.68.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-data-fusion - 1.67.0 + 1.68.0 com.google.api.grpc grpc-google-cloud-data-fusion-v1beta1 - 0.71.0 + 0.72.0 com.google.api.grpc grpc-google-cloud-data-fusion-v1 - 1.67.0 + 1.68.0 com.google.api.grpc proto-google-cloud-data-fusion-v1beta1 - 0.71.0 + 0.72.0 com.google.api.grpc proto-google-cloud-data-fusion-v1 - 1.67.0 + 1.68.0 diff --git a/java-data-fusion/google-cloud-data-fusion/pom.xml b/java-data-fusion/google-cloud-data-fusion/pom.xml index d938e5103c5f..1035acdea21f 100644 --- a/java-data-fusion/google-cloud-data-fusion/pom.xml +++ b/java-data-fusion/google-cloud-data-fusion/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-data-fusion - 1.67.0 + 1.68.0 jar Google Cloud Data Fusion Cloud Data Fusion is a fully managed, cloud-native, enterprise data integration service for quickly building and managing data pipelines. com.google.cloud google-cloud-data-fusion-parent - 1.67.0 + 1.68.0 google-cloud-data-fusion diff --git a/java-data-fusion/grpc-google-cloud-data-fusion-v1/pom.xml b/java-data-fusion/grpc-google-cloud-data-fusion-v1/pom.xml index 5c0d8ee2b97c..89260b34b8cc 100644 --- a/java-data-fusion/grpc-google-cloud-data-fusion-v1/pom.xml +++ b/java-data-fusion/grpc-google-cloud-data-fusion-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-data-fusion-v1 - 1.67.0 + 1.68.0 grpc-google-cloud-data-fusion-v1 GRPC library for google-cloud-data-fusion com.google.cloud google-cloud-data-fusion-parent - 1.67.0 + 1.68.0 diff --git a/java-data-fusion/grpc-google-cloud-data-fusion-v1beta1/pom.xml b/java-data-fusion/grpc-google-cloud-data-fusion-v1beta1/pom.xml index 286ed3ac58ff..d8535f80be45 100644 --- a/java-data-fusion/grpc-google-cloud-data-fusion-v1beta1/pom.xml +++ b/java-data-fusion/grpc-google-cloud-data-fusion-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-data-fusion-v1beta1 - 0.71.0 + 0.72.0 grpc-google-cloud-data-fusion-v1beta1 GRPC library for google-cloud-data-fusion com.google.cloud google-cloud-data-fusion-parent - 1.67.0 + 1.68.0 diff --git a/java-data-fusion/pom.xml b/java-data-fusion/pom.xml index 577b6dfc820e..a3099e35e64c 100644 --- a/java-data-fusion/pom.xml +++ b/java-data-fusion/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-data-fusion-parent pom - 1.67.0 + 1.68.0 Google Cloud Data Fusion Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-data-fusion - 1.67.0 + 1.68.0 com.google.api.grpc grpc-google-cloud-data-fusion-v1beta1 - 0.71.0 + 0.72.0 com.google.api.grpc grpc-google-cloud-data-fusion-v1 - 1.67.0 + 1.68.0 com.google.api.grpc proto-google-cloud-data-fusion-v1beta1 - 0.71.0 + 0.72.0 com.google.api.grpc proto-google-cloud-data-fusion-v1 - 1.67.0 + 1.68.0 diff --git a/java-data-fusion/proto-google-cloud-data-fusion-v1/pom.xml b/java-data-fusion/proto-google-cloud-data-fusion-v1/pom.xml index 244a22bdd047..590016d50679 100644 --- a/java-data-fusion/proto-google-cloud-data-fusion-v1/pom.xml +++ b/java-data-fusion/proto-google-cloud-data-fusion-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-data-fusion-v1 - 1.67.0 + 1.68.0 proto-google-cloud-data-fusion-v1 Proto library for google-cloud-data-fusion com.google.cloud google-cloud-data-fusion-parent - 1.67.0 + 1.68.0 diff --git a/java-data-fusion/proto-google-cloud-data-fusion-v1beta1/pom.xml b/java-data-fusion/proto-google-cloud-data-fusion-v1beta1/pom.xml index 09183827dd2e..5c8b86d5b556 100644 --- a/java-data-fusion/proto-google-cloud-data-fusion-v1beta1/pom.xml +++ b/java-data-fusion/proto-google-cloud-data-fusion-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-data-fusion-v1beta1 - 0.71.0 + 0.72.0 proto-google-cloud-data-fusion-v1beta1 Proto library for google-cloud-data-fusion com.google.cloud google-cloud-data-fusion-parent - 1.67.0 + 1.68.0 diff --git a/java-datacatalog/CHANGELOG.md b/java-datacatalog/CHANGELOG.md index edde6f575a10..6a0964e5e558 100644 --- a/java-datacatalog/CHANGELOG.md +++ b/java-datacatalog/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 1.74.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 1.73.0 (2025-06-25) ### Dependencies diff --git a/java-datacatalog/README.md b/java-datacatalog/README.md index a51843606cf3..338e5a3bca9a 100644 --- a/java-datacatalog/README.md +++ b/java-datacatalog/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-datacatalog - 1.72.0 + 1.73.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datacatalog:1.72.0' +implementation 'com.google.cloud:google-cloud-datacatalog:1.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datacatalog" % "1.72.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datacatalog" % "1.73.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datacatalog/1.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-datacatalog/google-cloud-datacatalog-bom/pom.xml b/java-datacatalog/google-cloud-datacatalog-bom/pom.xml index a2c90ceb067d..ffffbdd035ab 100644 --- a/java-datacatalog/google-cloud-datacatalog-bom/pom.xml +++ b/java-datacatalog/google-cloud-datacatalog-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-datacatalog-bom - 1.73.0 + 1.74.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-datacatalog - 1.73.0 + 1.74.0 com.google.api.grpc grpc-google-cloud-datacatalog-v1 - 1.73.0 + 1.74.0 com.google.api.grpc grpc-google-cloud-datacatalog-v1beta1 - 0.110.0 + 0.111.0 com.google.api.grpc proto-google-cloud-datacatalog-v1 - 1.73.0 + 1.74.0 com.google.api.grpc proto-google-cloud-datacatalog-v1beta1 - 0.110.0 + 0.111.0 diff --git a/java-datacatalog/google-cloud-datacatalog/pom.xml b/java-datacatalog/google-cloud-datacatalog/pom.xml index 9a54188552ae..7f768736c15f 100644 --- a/java-datacatalog/google-cloud-datacatalog/pom.xml +++ b/java-datacatalog/google-cloud-datacatalog/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-datacatalog - 1.73.0 + 1.74.0 jar Google Cloud Data Catalog Java idiomatic client for Google Cloud Data Catalog com.google.cloud google-cloud-datacatalog-parent - 1.73.0 + 1.74.0 google-cloud-datacatalog diff --git a/java-datacatalog/grpc-google-cloud-datacatalog-v1/pom.xml b/java-datacatalog/grpc-google-cloud-datacatalog-v1/pom.xml index c880b74da8b4..6b70132d4a93 100644 --- a/java-datacatalog/grpc-google-cloud-datacatalog-v1/pom.xml +++ b/java-datacatalog/grpc-google-cloud-datacatalog-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-datacatalog-v1 - 1.73.0 + 1.74.0 grpc-google-cloud-datacatalog-v1 GRPC library for grpc-google-cloud-datacatalog-v1 com.google.cloud google-cloud-datacatalog-parent - 1.73.0 + 1.74.0 diff --git a/java-datacatalog/grpc-google-cloud-datacatalog-v1beta1/pom.xml b/java-datacatalog/grpc-google-cloud-datacatalog-v1beta1/pom.xml index a123c3cfcb59..aaec272cef17 100644 --- a/java-datacatalog/grpc-google-cloud-datacatalog-v1beta1/pom.xml +++ b/java-datacatalog/grpc-google-cloud-datacatalog-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-datacatalog-v1beta1 - 0.110.0 + 0.111.0 grpc-google-cloud-datacatalog-v1beta1 GRPC library for grpc-google-cloud-datacatalog-v1beta1 com.google.cloud google-cloud-datacatalog-parent - 1.73.0 + 1.74.0 diff --git a/java-datacatalog/pom.xml b/java-datacatalog/pom.xml index 8afcfae135c8..3e16fca382ad 100644 --- a/java-datacatalog/pom.xml +++ b/java-datacatalog/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-datacatalog-parent pom - 1.73.0 + 1.74.0 Google Cloud Data Catalog Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-datacatalog-v1 - 1.73.0 + 1.74.0 com.google.api.grpc proto-google-cloud-datacatalog-v1beta1 - 0.110.0 + 0.111.0 com.google.api.grpc grpc-google-cloud-datacatalog-v1 - 1.73.0 + 1.74.0 com.google.api.grpc grpc-google-cloud-datacatalog-v1beta1 - 0.110.0 + 0.111.0 com.google.cloud google-cloud-datacatalog - 1.73.0 + 1.74.0 diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/pom.xml b/java-datacatalog/proto-google-cloud-datacatalog-v1/pom.xml index 440a5da81aa4..0a63c6cd4d86 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/pom.xml +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-datacatalog-v1 - 1.73.0 + 1.74.0 proto-google-cloud-datacatalog-v1 PROTO library for proto-google-cloud-datacatalog-v1 com.google.cloud google-cloud-datacatalog-parent - 1.73.0 + 1.74.0 diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/pom.xml b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/pom.xml index ab940ac799b1..0c017de3a6ce 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/pom.xml +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-datacatalog-v1beta1 - 0.110.0 + 0.111.0 proto-google-cloud-datacatalog-v1beta1 PROTO library for proto-google-cloud-datacatalog-v1beta1 com.google.cloud google-cloud-datacatalog-parent - 1.73.0 + 1.74.0 diff --git a/java-dataflow/CHANGELOG.md b/java-dataflow/CHANGELOG.md index 21568ebb0da6..73c7a32347a4 100644 --- a/java-dataflow/CHANGELOG.md +++ b/java-dataflow/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.72.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.71.0 (2025-06-25) ### Dependencies diff --git a/java-dataflow/README.md b/java-dataflow/README.md index b33ee3c750ca..b98c99c49a1e 100644 --- a/java-dataflow/README.md +++ b/java-dataflow/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataflow - 0.70.0 + 0.71.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataflow:0.70.0' +implementation 'com.google.cloud:google-cloud-dataflow:0.71.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataflow" % "0.70.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataflow" % "0.71.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataflow.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataflow/0.70.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataflow/0.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-dataflow/google-cloud-dataflow-bom/pom.xml b/java-dataflow/google-cloud-dataflow-bom/pom.xml index ce72b97f5026..ec24f076d502 100644 --- a/java-dataflow/google-cloud-dataflow-bom/pom.xml +++ b/java-dataflow/google-cloud-dataflow-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-dataflow-bom - 0.71.0 + 0.72.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-dataflow - 0.71.0 + 0.72.0 com.google.api.grpc grpc-google-cloud-dataflow-v1beta3 - 0.71.0 + 0.72.0 com.google.api.grpc proto-google-cloud-dataflow-v1beta3 - 0.71.0 + 0.72.0 diff --git a/java-dataflow/google-cloud-dataflow/pom.xml b/java-dataflow/google-cloud-dataflow/pom.xml index 2130de89be5f..6d080880e022 100644 --- a/java-dataflow/google-cloud-dataflow/pom.xml +++ b/java-dataflow/google-cloud-dataflow/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-dataflow - 0.71.0 + 0.72.0 jar Google Dataflow Dataflow is a managed service for executing a wide variety of data processing patterns. com.google.cloud google-cloud-dataflow-parent - 0.71.0 + 0.72.0 google-cloud-dataflow diff --git a/java-dataflow/grpc-google-cloud-dataflow-v1beta3/pom.xml b/java-dataflow/grpc-google-cloud-dataflow-v1beta3/pom.xml index ef2b074e3f2d..fb4898f59165 100644 --- a/java-dataflow/grpc-google-cloud-dataflow-v1beta3/pom.xml +++ b/java-dataflow/grpc-google-cloud-dataflow-v1beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataflow-v1beta3 - 0.71.0 + 0.72.0 grpc-google-cloud-dataflow-v1beta3 GRPC library for google-cloud-dataflow com.google.cloud google-cloud-dataflow-parent - 0.71.0 + 0.72.0 diff --git a/java-dataflow/pom.xml b/java-dataflow/pom.xml index cd11a5bc300d..2d684bb5129a 100644 --- a/java-dataflow/pom.xml +++ b/java-dataflow/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataflow-parent pom - 0.71.0 + 0.72.0 Google Dataflow Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-dataflow - 0.71.0 + 0.72.0 com.google.api.grpc grpc-google-cloud-dataflow-v1beta3 - 0.71.0 + 0.72.0 com.google.api.grpc proto-google-cloud-dataflow-v1beta3 - 0.71.0 + 0.72.0 diff --git a/java-dataflow/proto-google-cloud-dataflow-v1beta3/pom.xml b/java-dataflow/proto-google-cloud-dataflow-v1beta3/pom.xml index 031cd56e8098..d219fee22d23 100644 --- a/java-dataflow/proto-google-cloud-dataflow-v1beta3/pom.xml +++ b/java-dataflow/proto-google-cloud-dataflow-v1beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataflow-v1beta3 - 0.71.0 + 0.72.0 proto-google-cloud-dataflow-v1beta3 Proto library for google-cloud-dataflow com.google.cloud google-cloud-dataflow-parent - 0.71.0 + 0.72.0 diff --git a/java-dataform/CHANGELOG.md b/java-dataform/CHANGELOG.md index b15d8c7465d7..a58d3344612c 100644 --- a/java-dataform/CHANGELOG.md +++ b/java-dataform/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.67.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.66.0 (2025-06-25) ### Dependencies diff --git a/java-dataform/README.md b/java-dataform/README.md index b42b286c102a..f81b62f90067 100644 --- a/java-dataform/README.md +++ b/java-dataform/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataform - 0.65.0 + 0.66.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataform:0.65.0' +implementation 'com.google.cloud:google-cloud-dataform:0.66.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataform" % "0.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataform" % "0.66.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataform.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataform/0.65.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataform/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-dataform/google-cloud-dataform-bom/pom.xml b/java-dataform/google-cloud-dataform-bom/pom.xml index 6d355113427d..2d6292038fe0 100644 --- a/java-dataform/google-cloud-dataform-bom/pom.xml +++ b/java-dataform/google-cloud-dataform-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-dataform-bom - 0.66.0 + 0.67.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-dataform - 0.66.0 + 0.67.0 com.google.api.grpc grpc-google-cloud-dataform-v1beta1 - 0.66.0 + 0.67.0 com.google.api.grpc grpc-google-cloud-dataform-v1 - 0.66.0 + 0.67.0 com.google.api.grpc proto-google-cloud-dataform-v1beta1 - 0.66.0 + 0.67.0 com.google.api.grpc proto-google-cloud-dataform-v1 - 0.66.0 + 0.67.0 diff --git a/java-dataform/google-cloud-dataform/pom.xml b/java-dataform/google-cloud-dataform/pom.xml index b227248ae003..e19f0b89dd1b 100644 --- a/java-dataform/google-cloud-dataform/pom.xml +++ b/java-dataform/google-cloud-dataform/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-dataform - 0.66.0 + 0.67.0 jar Google Cloud Dataform Cloud Dataform Help analytics teams manage data inside BigQuery using SQL. com.google.cloud google-cloud-dataform-parent - 0.66.0 + 0.67.0 google-cloud-dataform diff --git a/java-dataform/grpc-google-cloud-dataform-v1/pom.xml b/java-dataform/grpc-google-cloud-dataform-v1/pom.xml index 549b80f6906e..b2d00dfd32eb 100644 --- a/java-dataform/grpc-google-cloud-dataform-v1/pom.xml +++ b/java-dataform/grpc-google-cloud-dataform-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataform-v1 - 0.66.0 + 0.67.0 grpc-google-cloud-dataform-v1 GRPC library for google-cloud-dataform com.google.cloud google-cloud-dataform-parent - 0.66.0 + 0.67.0 diff --git a/java-dataform/grpc-google-cloud-dataform-v1beta1/pom.xml b/java-dataform/grpc-google-cloud-dataform-v1beta1/pom.xml index dc5d41cd37a1..88781c12e3f2 100644 --- a/java-dataform/grpc-google-cloud-dataform-v1beta1/pom.xml +++ b/java-dataform/grpc-google-cloud-dataform-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataform-v1beta1 - 0.66.0 + 0.67.0 grpc-google-cloud-dataform-v1beta1 GRPC library for google-cloud-dataform com.google.cloud google-cloud-dataform-parent - 0.66.0 + 0.67.0 diff --git a/java-dataform/pom.xml b/java-dataform/pom.xml index b55dac9ee668..91a963922679 100644 --- a/java-dataform/pom.xml +++ b/java-dataform/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataform-parent pom - 0.66.0 + 0.67.0 Google Cloud Dataform Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-dataform - 0.66.0 + 0.67.0 com.google.api.grpc proto-google-cloud-dataform-v1 - 0.66.0 + 0.67.0 com.google.api.grpc grpc-google-cloud-dataform-v1 - 0.66.0 + 0.67.0 com.google.api.grpc proto-google-cloud-dataform-v1beta1 - 0.66.0 + 0.67.0 com.google.api.grpc grpc-google-cloud-dataform-v1beta1 - 0.66.0 + 0.67.0 diff --git a/java-dataform/proto-google-cloud-dataform-v1/pom.xml b/java-dataform/proto-google-cloud-dataform-v1/pom.xml index 91dcab4803e4..437c1a54c68c 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/pom.xml +++ b/java-dataform/proto-google-cloud-dataform-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataform-v1 - 0.66.0 + 0.67.0 proto-google-cloud-dataform-v1 Proto library for google-cloud-dataform com.google.cloud google-cloud-dataform-parent - 0.66.0 + 0.67.0 diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/pom.xml b/java-dataform/proto-google-cloud-dataform-v1beta1/pom.xml index 63e1be7635e7..ec3f3cb00771 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/pom.xml +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataform-v1beta1 - 0.66.0 + 0.67.0 proto-google-cloud-dataform-v1beta1 Proto library for google-cloud-dataform com.google.cloud google-cloud-dataform-parent - 0.66.0 + 0.67.0 diff --git a/java-datalabeling/CHANGELOG.md b/java-datalabeling/CHANGELOG.md index f4af82a5e340..e114cf40ad37 100644 --- a/java-datalabeling/CHANGELOG.md +++ b/java-datalabeling/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.188.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.187.0 (2025-06-25) ### Dependencies diff --git a/java-datalabeling/README.md b/java-datalabeling/README.md index fcecd6d23616..da2a72303faa 100644 --- a/java-datalabeling/README.md +++ b/java-datalabeling/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-datalabeling - 0.186.0 + 0.187.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datalabeling:0.186.0' +implementation 'com.google.cloud:google-cloud-datalabeling:0.187.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datalabeling" % "0.186.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datalabeling" % "0.187.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-datalabeling.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalabeling/0.186.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalabeling/0.187.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/google-cloud-datalabeling-bom/pom.xml b/java-datalabeling/google-cloud-datalabeling-bom/pom.xml index 25d5f87ff610..2df336e7f70b 100644 --- a/java-datalabeling/google-cloud-datalabeling-bom/pom.xml +++ b/java-datalabeling/google-cloud-datalabeling-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-datalabeling-bom - 0.187.0 + 0.188.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-datalabeling - 0.187.0 + 0.188.0 com.google.api.grpc grpc-google-cloud-datalabeling-v1beta1 - 0.152.0 + 0.153.0 com.google.api.grpc proto-google-cloud-datalabeling-v1beta1 - 0.152.0 + 0.153.0 diff --git a/java-datalabeling/google-cloud-datalabeling/pom.xml b/java-datalabeling/google-cloud-datalabeling/pom.xml index 868701b7a694..540562dd39ec 100644 --- a/java-datalabeling/google-cloud-datalabeling/pom.xml +++ b/java-datalabeling/google-cloud-datalabeling/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-datalabeling - 0.187.0 + 0.188.0 jar Google Cloud Data Labeling Java idiomatic client for Google Cloud Data Labeling com.google.cloud google-cloud-datalabeling-parent - 0.187.0 + 0.188.0 google-cloud-datalabeling diff --git a/java-datalabeling/grpc-google-cloud-datalabeling-v1beta1/pom.xml b/java-datalabeling/grpc-google-cloud-datalabeling-v1beta1/pom.xml index c06fc80e6d3c..24004ee73fb7 100644 --- a/java-datalabeling/grpc-google-cloud-datalabeling-v1beta1/pom.xml +++ b/java-datalabeling/grpc-google-cloud-datalabeling-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-datalabeling-v1beta1 - 0.152.0 + 0.153.0 grpc-google-cloud-datalabeling-v1beta1 GRPC library for grpc-google-cloud-datalabeling-v1beta1 com.google.cloud google-cloud-datalabeling-parent - 0.187.0 + 0.188.0 diff --git a/java-datalabeling/pom.xml b/java-datalabeling/pom.xml index 67140268205d..5c0ad87deb7f 100644 --- a/java-datalabeling/pom.xml +++ b/java-datalabeling/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-datalabeling-parent pom - 0.187.0 + 0.188.0 Google Cloud Data Labeling Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api.grpc proto-google-cloud-datalabeling-v1beta1 - 0.152.0 + 0.153.0 com.google.api.grpc grpc-google-cloud-datalabeling-v1beta1 - 0.152.0 + 0.153.0 com.google.cloud google-cloud-datalabeling - 0.187.0 + 0.188.0 diff --git a/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/pom.xml b/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/pom.xml index 84d414199bec..f667fac0b927 100644 --- a/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/pom.xml +++ b/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-datalabeling-v1beta1 - 0.152.0 + 0.153.0 proto-google-cloud-datalabeling-v1beta1 PROTO library for proto-google-cloud-datalabeling-v1beta1 com.google.cloud google-cloud-datalabeling-parent - 0.187.0 + 0.188.0 diff --git a/java-datalineage/CHANGELOG.md b/java-datalineage/CHANGELOG.md index 1ba838f1c67c..a88f35ca0550 100644 --- a/java-datalineage/CHANGELOG.md +++ b/java-datalineage/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.60.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.59.0 (2025-06-25) ### Dependencies diff --git a/java-datalineage/README.md b/java-datalineage/README.md index d31e231869a5..8428b99f5741 100644 --- a/java-datalineage/README.md +++ b/java-datalineage/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-datalineage - 0.58.0 + 0.59.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datalineage:0.58.0' +implementation 'com.google.cloud:google-cloud-datalineage:0.59.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datalineage" % "0.58.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datalineage" % "0.59.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.58.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalineage/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-datalineage/google-cloud-datalineage-bom/pom.xml b/java-datalineage/google-cloud-datalineage-bom/pom.xml index d02755ae7f83..6a40558b5af0 100644 --- a/java-datalineage/google-cloud-datalineage-bom/pom.xml +++ b/java-datalineage/google-cloud-datalineage-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-datalineage-bom - 0.59.0 + 0.60.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-datalineage - 0.59.0 + 0.60.0 com.google.api.grpc grpc-google-cloud-datalineage-v1 - 0.59.0 + 0.60.0 com.google.api.grpc proto-google-cloud-datalineage-v1 - 0.59.0 + 0.60.0 diff --git a/java-datalineage/google-cloud-datalineage/pom.xml b/java-datalineage/google-cloud-datalineage/pom.xml index 9261d7f6841a..c2a7ea233340 100644 --- a/java-datalineage/google-cloud-datalineage/pom.xml +++ b/java-datalineage/google-cloud-datalineage/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-datalineage - 0.59.0 + 0.60.0 jar Google Data Lineage Data Lineage Lineage is used to track data flows between assets over time. com.google.cloud google-cloud-datalineage-parent - 0.59.0 + 0.60.0 google-cloud-datalineage diff --git a/java-datalineage/grpc-google-cloud-datalineage-v1/pom.xml b/java-datalineage/grpc-google-cloud-datalineage-v1/pom.xml index 330f836e0d55..7fb02d043136 100644 --- a/java-datalineage/grpc-google-cloud-datalineage-v1/pom.xml +++ b/java-datalineage/grpc-google-cloud-datalineage-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-datalineage-v1 - 0.59.0 + 0.60.0 grpc-google-cloud-datalineage-v1 GRPC library for google-cloud-datalineage com.google.cloud google-cloud-datalineage-parent - 0.59.0 + 0.60.0 diff --git a/java-datalineage/pom.xml b/java-datalineage/pom.xml index 6dc4168026df..1e7ec9264632 100644 --- a/java-datalineage/pom.xml +++ b/java-datalineage/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-datalineage-parent pom - 0.59.0 + 0.60.0 Google Data Lineage Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-datalineage - 0.59.0 + 0.60.0 com.google.api.grpc grpc-google-cloud-datalineage-v1 - 0.59.0 + 0.60.0 com.google.api.grpc proto-google-cloud-datalineage-v1 - 0.59.0 + 0.60.0 diff --git a/java-datalineage/proto-google-cloud-datalineage-v1/pom.xml b/java-datalineage/proto-google-cloud-datalineage-v1/pom.xml index d69a3a34fbce..28bd9f41ad11 100644 --- a/java-datalineage/proto-google-cloud-datalineage-v1/pom.xml +++ b/java-datalineage/proto-google-cloud-datalineage-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-datalineage-v1 - 0.59.0 + 0.60.0 proto-google-cloud-datalineage-v1 Proto library for google-cloud-datalineage com.google.cloud google-cloud-datalineage-parent - 0.59.0 + 0.60.0 diff --git a/java-dataplex/CHANGELOG.md b/java-dataplex/CHANGELOG.md index a20cb84c94fc..b9febcc6680e 100644 --- a/java-dataplex/CHANGELOG.md +++ b/java-dataplex/CHANGELOG.md @@ -1,5 +1,16 @@ # Changelog +## 1.66.0 (2025-07-11) + +### Features + +* A new field `semantic_search` is added to `message.google.cloud.dataplex.v1.SearchEntriesRequest` ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 1.65.0 (2025-06-25) ### Dependencies diff --git a/java-dataplex/README.md b/java-dataplex/README.md index 31eed61535ad..037390c57310 100644 --- a/java-dataplex/README.md +++ b/java-dataplex/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataplex - 1.64.0 + 1.65.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataplex:1.64.0' +implementation 'com.google.cloud:google-cloud-dataplex:1.65.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataplex" % "1.64.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataplex" % "1.65.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.64.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataplex/1.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-dataplex/google-cloud-dataplex-bom/pom.xml b/java-dataplex/google-cloud-dataplex-bom/pom.xml index 052b1d36a25e..a26266e3512f 100644 --- a/java-dataplex/google-cloud-dataplex-bom/pom.xml +++ b/java-dataplex/google-cloud-dataplex-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-dataplex-bom - 1.65.0 + 1.66.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-dataplex - 1.65.0 + 1.66.0 com.google.api.grpc grpc-google-cloud-dataplex-v1 - 1.65.0 + 1.66.0 com.google.api.grpc proto-google-cloud-dataplex-v1 - 1.65.0 + 1.66.0 diff --git a/java-dataplex/google-cloud-dataplex/pom.xml b/java-dataplex/google-cloud-dataplex/pom.xml index 01f61c863fe9..e3ecdad4033c 100644 --- a/java-dataplex/google-cloud-dataplex/pom.xml +++ b/java-dataplex/google-cloud-dataplex/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-dataplex - 1.65.0 + 1.66.0 jar Google Cloud Dataplex Cloud Dataplex 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. com.google.cloud google-cloud-dataplex-parent - 1.65.0 + 1.66.0 google-cloud-dataplex diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/CatalogServiceClient.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/CatalogServiceClient.java index c828eaf23aa3..6210d6922972 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/CatalogServiceClient.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/CatalogServiceClient.java @@ -3723,6 +3723,7 @@ public final SearchEntriesPagedResponse searchEntries(String name, String query) * .setPageToken("pageToken873572522") * .setOrderBy("orderBy-1207110587") * .setScope("scope109264468") + * .setSemanticSearch(true) * .build(); * for (SearchEntriesResult element : catalogServiceClient.searchEntries(request).iterateAll()) { * // doThingsWith(element); @@ -3758,6 +3759,7 @@ public final SearchEntriesPagedResponse searchEntries(SearchEntriesRequest reque * .setPageToken("pageToken873572522") * .setOrderBy("orderBy-1207110587") * .setScope("scope109264468") + * .setSemanticSearch(true) * .build(); * ApiFuture future = * catalogServiceClient.searchEntriesPagedCallable().futureCall(request); @@ -3794,6 +3796,7 @@ public final SearchEntriesPagedResponse searchEntries(SearchEntriesRequest reque * .setPageToken("pageToken873572522") * .setOrderBy("orderBy-1207110587") * .setScope("scope109264468") + * .setSemanticSearch(true) * .build(); * while (true) { * SearchEntriesResponse response = catalogServiceClient.searchEntriesCallable().call(request); diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonCatalogServiceStub.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonCatalogServiceStub.java index c02956d65d71..75cb62a9c017 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonCatalogServiceStub.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonCatalogServiceStub.java @@ -954,6 +954,8 @@ public class HttpJsonCatalogServiceStub extends CatalogServiceStub { serializer.putQueryParam(fields, "pageToken", request.getPageToken()); serializer.putQueryParam(fields, "query", request.getQuery()); serializer.putQueryParam(fields, "scope", request.getScope()); + serializer.putQueryParam( + fields, "semanticSearch", request.getSemanticSearch()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) diff --git a/java-dataplex/grpc-google-cloud-dataplex-v1/pom.xml b/java-dataplex/grpc-google-cloud-dataplex-v1/pom.xml index 697a6cb9d94f..365b90be6be4 100644 --- a/java-dataplex/grpc-google-cloud-dataplex-v1/pom.xml +++ b/java-dataplex/grpc-google-cloud-dataplex-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataplex-v1 - 1.65.0 + 1.66.0 grpc-google-cloud-dataplex-v1 GRPC library for google-cloud-dataplex com.google.cloud google-cloud-dataplex-parent - 1.65.0 + 1.66.0 diff --git a/java-dataplex/pom.xml b/java-dataplex/pom.xml index 6939bf2a1c7a..63e3618b550a 100644 --- a/java-dataplex/pom.xml +++ b/java-dataplex/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataplex-parent pom - 1.65.0 + 1.66.0 Google Cloud Dataplex Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-dataplex - 1.65.0 + 1.66.0 com.google.api.grpc grpc-google-cloud-dataplex-v1 - 1.65.0 + 1.66.0 com.google.api.grpc proto-google-cloud-dataplex-v1 - 1.65.0 + 1.66.0 diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/pom.xml b/java-dataplex/proto-google-cloud-dataplex-v1/pom.xml index a6ced28540ce..c7ccdd5a8165 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/pom.xml +++ b/java-dataplex/proto-google-cloud-dataplex-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataplex-v1 - 1.65.0 + 1.66.0 proto-google-cloud-dataplex-v1 Proto library for google-cloud-dataplex com.google.cloud google-cloud-dataplex-parent - 1.65.0 + 1.66.0 diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/CatalogProto.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/CatalogProto.java index 294951812596..f3b4eabde44d 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/CatalogProto.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/CatalogProto.java @@ -593,7 +593,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014aspect_types\030\003 \003(\tB\003\340A\001\022\022\n" + "\005paths\030\004 \003(\tB\003\340A\001\0224\n" + "\005entry\030\005 \001(\tB%\340A\002\372A\037\n" - + "\035dataplex.googleapis.com/Entry\"\277\001\n" + + "\035dataplex.googleapis.com/Entry\"\335\001\n" + "\024SearchEntriesRequest\0227\n" + "\004name\030\001 \001(\tB)\340A\002\372A#\n" + "!locations.googleapis.com/Location\022\022\n" @@ -601,22 +601,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\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\022\022\n" - + "\005scope\030\007 \001(\tB\003\340A\001\"\206\002\n" + + "\005scope\030\007 \001(\tB\003\340A\001\022\034\n" + + "\017semantic_search\030\013 \001(\010B\003\340A\001\"\206\002\n" + "\023SearchEntriesResult\022\033\n" + "\017linked_resource\030\010 \001(\tB\002\030\001\0227\n" + "\016dataplex_entry\030\t \001(\0132\037.google.cloud.dataplex.v1.Entry\022L\n" - + "\010snippets\030\014 \001(\01326.google.cloud.d" - + "ataplex.v1.SearchEntriesResult.SnippetsB\002\030\001\032K\n" + + "\010snippets\030\014" + + " \001(\01326.google.cloud.dataplex.v1.SearchEntriesResult.SnippetsB\002\030\001\032K\n" + "\010Snippets\022;\n" - + "\016dataplex_entry\030\001 \001(\0132" - + "\037.google.cloud.dataplex.v1.EntryB\002\030\001:\002\030\001\"\231\001\n" + + "\016dataplex_entry\030\001" + + " \001(\0132\037.google.cloud.dataplex.v1.EntryB\002\030\001:\002\030\001\"\231\001\n" + "\025SearchEntriesResponse\022>\n" - + "\007results\030\001 " - + "\003(\0132-.google.cloud.dataplex.v1.SearchEntriesResult\022\022\n\n" + + "\007results\030\001 \003(\0132-.goog" + + "le.cloud.dataplex.v1.SearchEntriesResult\022\022\n\n" + "total_size\030\002 \001(\005\022\027\n" + "\017next_page_token\030\003 \001(\t\022\023\n" - + "\013unreachable\030\004 \003(\t\"\202\001\n" - + "\n" + + "\013unreachable\030\004 \003(\t\"\202\001\n\n" + "ImportItem\022.\n" + "\005entry\030\001 \001(\0132\037.google.cloud.dataplex.v1.Entry\022/\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\022\023\n" @@ -624,8 +624,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030CreateMetadataJobRequest\0229\n" + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + "!locations.googleapis.com/Location\022@\n" - + "\014metadata_job\030\002 \001(\0132" - + "%.google.cloud.dataplex.v1.MetadataJobB\003\340A\002\022\034\n" + + "\014metadata_job\030\002" + + " \001(\0132%.google.cloud.dataplex.v1.MetadataJobB\003\340A\002\022\034\n" + "\017metadata_job_id\030\003 \001(\tB\003\340A\001\022\032\n\r" + "validate_only\030\004 \001(\010B\003\340A\001\"R\n" + "\025GetMetadataJobRequest\0229\n" @@ -650,20 +650,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003uid\030\002 \001(\tB\013\340A\003\342\214\317\327\010\002\010\001\0224\n" + "\013create_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022F\n" - + "\006labels\030\005 \003(\01321.google.clo" - + "ud.dataplex.v1.MetadataJob.LabelsEntryB\003\340A\001\022=\n" + + "\006labels\030\005" + + " \003(\01321.google.cloud.dataplex.v1.MetadataJob.LabelsEntryB\003\340A\001\022=\n" + "\004type\030\006" + " \001(\0162*.google.cloud.dataplex.v1.MetadataJob.TypeB\003\340A\002\022J\n" - + "\013import_spec\030d" - + " \001(\01323.google.cloud.dataplex.v1.MetadataJob.ImportJobSpecH\000\022J\n" - + "\013export_spec\030e " - + "\001(\01323.google.cloud.dataplex.v1.MetadataJob.ExportJobSpecH\000\022T\n\r" - + "import_result\030\310\001 \001" - + "(\01325.google.cloud.dataplex.v1.MetadataJob.ImportJobResultB\003\340A\003H\001\022T\n\r" - + "export_result\030\311\001" - + " \001(\01325.google.cloud.dataplex.v1.MetadataJob.ExportJobResultB\003\340A\003H\001\022A\n" - + "\006status\030\007" - + " \001(\0132,.google.cloud.dataplex.v1.MetadataJob.StatusB\003\340A\003\032\341\001\n" + + "\013import_spec\030d \001(\01323." + + "google.cloud.dataplex.v1.MetadataJob.ImportJobSpecH\000\022J\n" + + "\013export_spec\030e \001(\01323.goog" + + "le.cloud.dataplex.v1.MetadataJob.ExportJobSpecH\000\022T\n\r" + + "import_result\030\310\001 \001(\01325.googl" + + "e.cloud.dataplex.v1.MetadataJob.ImportJobResultB\003\340A\003H\001\022T\n\r" + + "export_result\030\311\001 \001(\01325" + + ".google.cloud.dataplex.v1.MetadataJob.ExportJobResultB\003\340A\003H\001\022A\n" + + "\006status\030\007 \001(\0132,.g" + + "oogle.cloud.dataplex.v1.MetadataJob.StatusB\003\340A\003\032\341\001\n" + "\017ImportJobResult\022\034\n" + "\017deleted_entries\030\001 \001(\003B\003\340A\003\022\034\n" + "\017updated_entries\030\002 \001(\003B\003\340A\003\022\034\n" @@ -678,14 +678,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022source_storage_uri\030\001 \001(\tB\003\340A\001\022;\n" + "\022source_create_time\030\005" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001\022V\n" - + "\005scope\030\002 \001(\0132B.google.cloud.dataplex.v1.Me" - + "tadataJob.ImportJobSpec.ImportJobScopeB\003\340A\002\022Z\n" - + "\017entry_sync_mode\030\003 \001(\0162<.google.cl" - + "oud.dataplex.v1.MetadataJob.ImportJobSpec.SyncModeB\003\340A\002\022[\n" - + "\020aspect_sync_mode\030\004 \001(" - + "\0162<.google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.SyncModeB\003\340A\002\022T\n" - + "\tlog_level\030\006" - + " \001(\0162<.google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.LogLevelB\003\340A\001\032\324\001\n" + + "\005scope\030\002 \001(\013" + + "2B.google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.ImportJobScopeB\003\340A\002\022Z\n" + + "\017entry_sync_mode\030\003 \001(\0162<.google.cloud.datapl" + + "ex.v1.MetadataJob.ImportJobSpec.SyncModeB\003\340A\002\022[\n" + + "\020aspect_sync_mode\030\004 \001(\0162<.google" + + ".cloud.dataplex.v1.MetadataJob.ImportJobSpec.SyncModeB\003\340A\002\022T\n" + + "\tlog_level\030\006 \001(\0162<." + + "google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.LogLevelB\003\340A\001\032\324\001\n" + "\016ImportJobScope\022@\n" + "\014entry_groups\030\001 \003(\tB*\340A\002\372A$\n" + "\"dataplex.googleapis.com/EntryGroup\022>\n" @@ -703,8 +703,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005DEBUG\020\001\022\010\n" + "\004INFO\020\002\032\257\003\n\r" + "ExportJobSpec\022V\n" - + "\005scope\030\002 \001(\0132B.google.cloud.datapl" - + "ex.v1.MetadataJob.ExportJobSpec.ExportJobScopeB\003\340A\002\022\030\n" + + "\005scope\030\002 \001(\0132B.google.cloud.dataplex.v1.Meta" + + "dataJob.ExportJobSpec.ExportJobScopeB\003\340A\002\022\030\n" + "\013output_path\030\003 \001(\tB\003\340A\002\032\253\002\n" + "\016ExportJobScope\022\032\n" + "\022organization_level\030\001 \001(\010\022B\n" @@ -717,8 +717,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014aspect_types\030\005 \003(\tB\'\372A$\n" + "\"dataplex.googleapis.com/AspectType\032\312\002\n" + "\006Status\022F\n" - + "\005state\030\001" - + " \001(\01622.google.cloud.dataplex.v1.MetadataJob.Status.StateB\003\340A\003\022\024\n" + + "\005state\030\001 \001(\01622.go" + + "ogle.cloud.dataplex.v1.MetadataJob.Status.StateB\003\340A\003\022\024\n" + "\007message\030\002 \001(\tB\003\340A\003\022\037\n" + "\022completion_percent\030\003 \001(\005B\003\340A\003\0224\n" + "\013update_time\030\004" @@ -739,8 +739,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020TYPE_UNSPECIFIED\020\000\022\n\n" + "\006IMPORT\020\001\022\n\n" + "\006EXPORT\020\002:l\352Ai\n" - + "#dataplex.googleapis.com/MetadataJob\022Bprojects/{project}/loca" - + "tions/{location}/metadataJobs/{metadataJob}B\006\n" + + "#dataplex.googleapis.com/Metada" + + "taJob\022Bprojects/{project}/locations/{location}/metadataJobs/{metadataJob}B\006\n" + "\004specB\010\n" + "\006result*Q\n" + "\tEntryView\022\032\n" @@ -754,130 +754,130 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030TRANSFER_STATUS_MIGRATED\020\001\022\037\n" + "\033TRANSFER_STATUS_TRANSFERRED\020\0022\225)\n" + "\016CatalogService\022\352\001\n" - + "\017CreateEntryType\0220.google.cloud.dataple" - + "x.v1.CreateEntryTypeRequest\032\035.google.longrunning.Operation\"\205\001\312A\036\n" - + "\tEntryType\022\021OperationMetadata\332A\037parent,entry_type,entry" - + "_type_id\202\323\344\223\002<\"./v1/{parent=projects/*/locations/*}/entryTypes:\n" + + "\017CreateEntryType\0220.google.cloud.dataplex.v1.Creat" + + "eEntryTypeRequest\032\035.google.longrunning.Operation\"\205\001\312A\036\n" + + "\tEntryType\022\021OperationMetadata\332A\037parent,entry_type,entry_type_id\202\323" + + "\344\223\002<\"./v1/{parent=projects/*/locations/*}/entryTypes:\n" + "entry_type\022\354\001\n" - + "\017UpdateEntryType\0220.google.cloud.dataplex.v" - + "1.UpdateEntryTypeRequest\032\035.google.longrunning.Operation\"\207\001\312A\036\n" - + "\tEntryType\022\021OperationMetadata\332A\026entry_type,update_mask\202\323\344\223" - + "\002G29/v1/{entry_type.name=projects/*/locations/*/entryTypes/*}:\n" + + "\017UpdateEntryType\0220.google.cloud.dataplex.v1.UpdateEn" + + "tryTypeRequest\032\035.google.longrunning.Operation\"\207\001\312A\036\n" + + "\tEntryType\022\021OperationMetadat" + + "a\332A\026entry_type,update_mask\202\323\344\223\002G29/v1/{e" + + "ntry_type.name=projects/*/locations/*/entryTypes/*}:\n" + "entry_type\022\316\001\n" - + "\017DeleteEntryType\0220.google.cloud.dataplex.v1" - + ".DeleteEntryTypeRequest\032\035.google.longrunning.Operation\"j\312A*\n" - + "\025google.protobuf.Emp" - + "ty\022\021OperationMetadata\332A\004name\202\323\344\223\0020*./v1/" - + "{name=projects/*/locations/*/entryTypes/*}\022\264\001\n" - + "\016ListEntryTypes\022/.google.cloud.dataplex.v1.ListEntryTypesRequest\0320.google." - + "cloud.dataplex.v1.ListEntryTypesResponse" - + "\"?\332A\006parent\202\323\344\223\0020\022./v1/{parent=projects/*/locations/*}/entryTypes\022\241\001\n" - + "\014GetEntryType\022-.google.cloud.dataplex.v1.GetEntryTy" - + "peRequest\032#.google.cloud.dataplex.v1.Ent" - + "ryType\"=\332A\004name\202\323\344\223\0020\022./v1/{name=projects/*/locations/*/entryTypes/*}\022\361\001\n" - + "\020CreateAspectType\0221.google.cloud.dataplex.v1.Cr" - + "eateAspectTypeRequest\032\035.google.longrunning.Operation\"\212\001\312A\037\n\n" - + "AspectType\022\021OperationMetadata\332A!parent,aspect_type,aspect_ty" - + "pe_id\202\323\344\223\002>\"//v1/{parent=projects/*/locations/*}/aspectTypes:\013aspect_type\022\363\001\n" - + "\020UpdateAspectType\0221.google.cloud.dataplex.v" - + "1.UpdateAspectTypeRequest\032\035.google.longrunning.Operation\"\214\001\312A\037\n\n" - + "AspectType\022\021OperationMetadata\332A\027aspect_type,update_mask\202" - + "\323\344\223\002J2;/v1/{aspect_type.name=projects/*/" - + "locations/*/aspectTypes/*}:\013aspect_type\022\321\001\n" - + "\020DeleteAspectType\0221.google.cloud.data" - + "plex.v1.DeleteAspectTypeRequest\032\035.google.longrunning.Operation\"k\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223" - + "\0021*//v1/{name=projects/*/locations/*/aspectTypes/*}\022\270\001\n" - + "\017ListAspectTypes\0220.google.cloud.dataplex.v1.ListAspectTypesReques" - + "t\0321.google.cloud.dataplex.v1.ListAspectT" - + "ypesResponse\"@\332A\006parent\202\323\344\223\0021\022//v1/{pare" - + "nt=projects/*/locations/*}/aspectTypes\022\245\001\n\r" - + "GetAspectType\022..google.cloud.dataplex.v1.GetAspectTypeRequest\032$.google.cloud." - + "dataplex.v1.AspectType\">\332A\004name\202\323\344\223\0021\022//" - + "v1/{name=projects/*/locations/*/aspectTypes/*}\022\361\001\n" - + "\020CreateEntryGroup\0221.google.clo" - + "ud.dataplex.v1.CreateEntryGroupRequest\032\035.google.longrunning.Operation\"\212\001\312A\037\n\n" - + "EntryGroup\022\021OperationMetadata\332A!parent,entr" - + "y_group,entry_group_id\202\323\344\223\002>\"//v1/{paren" - + "t=projects/*/locations/*}/entryGroups:\013entry_group\022\363\001\n" - + "\020UpdateEntryGroup\0221.google" - + ".cloud.dataplex.v1.UpdateEntryGroupRequest\032\035.google.longrunning.Operation\"\214\001\312A\037\n" - + "\n" - + "EntryGroup\022\021OperationMetadata\332A\027entry_g" - + "roup,update_mask\202\323\344\223\002J2;/v1/{entry_group" - + ".name=projects/*/locations/*/entryGroups/*}:\013entry_group\022\321\001\n" - + "\020DeleteEntryGroup\0221.google.cloud.dataplex.v1.DeleteEntryGrou" - + "pRequest\032\035.google.longrunning.Operation\"", - "k\312A*\n\025google.protobuf.Empty\022\021OperationMe" - + "tadata\332A\004name\202\323\344\223\0021*//v1/{name=projects/" - + "*/locations/*/entryGroups/*}\022\270\001\n\017ListEnt" - + "ryGroups\0220.google.cloud.dataplex.v1.List" - + "EntryGroupsRequest\0321.google.cloud.datapl" - + "ex.v1.ListEntryGroupsResponse\"@\332A\006parent" - + "\202\323\344\223\0021\022//v1/{parent=projects/*/locations" - + "/*}/entryGroups\022\245\001\n\rGetEntryGroup\022..goog" - + "le.cloud.dataplex.v1.GetEntryGroupReques" - + "t\032$.google.cloud.dataplex.v1.EntryGroup\"" - + ">\332A\004name\202\323\344\223\0021\022//v1/{name=projects/*/loc" - + "ations/*/entryGroups/*}\022\276\001\n\013CreateEntry\022" - + ",.google.cloud.dataplex.v1.CreateEntryRe" - + "quest\032\037.google.cloud.dataplex.v1.Entry\"`" - + "\332A\025parent,entry,entry_id\202\323\344\223\002B\"9/v1/{par" - + "ent=projects/*/locations/*/entryGroups/*" - + "}/entries:\005entry\022\301\001\n\013UpdateEntry\022,.googl" - + "e.cloud.dataplex.v1.UpdateEntryRequest\032\037" - + ".google.cloud.dataplex.v1.Entry\"c\332A\021entr" - + "y,update_mask\202\323\344\223\002I2@/v1/{entry.name=pro" - + "jects/*/locations/*/entryGroups/*/entrie" - + "s/**}:\005entry\022\247\001\n\013DeleteEntry\022,.google.cl" - + "oud.dataplex.v1.DeleteEntryRequest\032\037.goo" - + "gle.cloud.dataplex.v1.Entry\"I\332A\004name\202\323\344\223" - + "\002<*:/v1/{name=projects/*/locations/*/ent" - + "ryGroups/*/entries/**}\022\266\001\n\013ListEntries\022," - + ".google.cloud.dataplex.v1.ListEntriesReq" - + "uest\032-.google.cloud.dataplex.v1.ListEntr" - + "iesResponse\"J\332A\006parent\202\323\344\223\002;\0229/v1/{paren" - + "t=projects/*/locations/*/entryGroups/*}/" - + "entries\022\241\001\n\010GetEntry\022).google.cloud.data" - + "plex.v1.GetEntryRequest\032\037.google.cloud.d" - + "ataplex.v1.Entry\"I\332A\004name\202\323\344\223\002<\022:/v1/{na" - + "me=projects/*/locations/*/entryGroups/*/" - + "entries/**}\022\223\001\n\013LookupEntry\022,.google.clo" - + "ud.dataplex.v1.LookupEntryRequest\032\037.goog" - + "le.cloud.dataplex.v1.Entry\"5\202\323\344\223\002/\022-/v1/" - + "{name=projects/*/locations/*}:lookupEntr" - + "y\022\266\001\n\rSearchEntries\022..google.cloud.datap" - + "lex.v1.SearchEntriesRequest\032/.google.clo" - + "ud.dataplex.v1.SearchEntriesResponse\"D\332A" - + "\nname,query\202\323\344\223\0021\"//v1/{name=projects/*/" - + "locations/*}:searchEntries\022\370\001\n\021CreateMet" - + "adataJob\0222.google.cloud.dataplex.v1.Crea" - + "teMetadataJobRequest\032\035.google.longrunnin" - + "g.Operation\"\217\001\312A \n\013MetadataJob\022\021Operatio" - + "nMetadata\332A#parent,metadata_job,metadata" - + "_job_id\202\323\344\223\002@\"0/v1/{parent=projects/*/lo" - + "cations/*}/metadataJobs:\014metadata_job\022\251\001" - + "\n\016GetMetadataJob\022/.google.cloud.dataplex" - + ".v1.GetMetadataJobRequest\032%.google.cloud" - + ".dataplex.v1.MetadataJob\"?\332A\004name\202\323\344\223\0022\022" - + "0/v1/{name=projects/*/locations/*/metada" - + "taJobs/*}\022\274\001\n\020ListMetadataJobs\0221.google." - + "cloud.dataplex.v1.ListMetadataJobsReques" - + "t\0322.google.cloud.dataplex.v1.ListMetadat" - + "aJobsResponse\"A\332A\006parent\202\323\344\223\0022\0220/v1/{par" - + "ent=projects/*/locations/*}/metadataJobs" - + "\022\252\001\n\021CancelMetadataJob\0222.google.cloud.da" - + "taplex.v1.CancelMetadataJobRequest\032\026.goo" - + "gle.protobuf.Empty\"I\332A\004name\202\323\344\223\002<\"7/v1/{" - + "name=projects/*/locations/*/metadataJobs" - + "/*}:cancel:\001*\032K\312A\027dataplex.googleapis.co" - + "m\322A.https://www.googleapis.com/auth/clou" - + "d-platformB\274\001\n\034com.google.cloud.dataplex" - + ".v1B\014CatalogProtoP\001Z8cloud.google.com/go" - + "/dataplex/apiv1/dataplexpb;dataplexpb\252\002\030" - + "Google.Cloud.Dataplex.V1\312\002\030Google\\Cloud\\" - + "Dataplex\\V1\352\002\033Google::Cloud::Dataplex::V" - + "1b\006proto3" + + "\017DeleteEntryType\0220.google.cloud.dataplex.v1.DeleteEnt" + + "ryTypeRequest\032\035.google.longrunning.Operation\"j\312A*\n" + + "\025google.protobuf.Empty\022\021Operat" + + "ionMetadata\332A\004name\202\323\344\223\0020*./v1/{name=projects/*/locations/*/entryTypes/*}\022\264\001\n" + + "\016ListEntryTypes\022/.google.cloud.dataplex.v1.L" + + "istEntryTypesRequest\0320.google.cloud.data" + + "plex.v1.ListEntryTypesResponse\"?\332A\006paren" + + "t\202\323\344\223\0020\022./v1/{parent=projects/*/locations/*}/entryTypes\022\241\001\n" + + "\014GetEntryType\022-.google.cloud.dataplex.v1.GetEntryTypeRequest\032" + + "#.google.cloud.dataplex.v1.EntryType\"=\332A" + + "\004name\202\323\344\223\0020\022./v1/{name=projects/*/locations/*/entryTypes/*}\022\361\001\n" + + "\020CreateAspectType\0221.google.cloud.dataplex.v1.CreateAspect" + + "TypeRequest\032\035.google.longrunning.Operation\"\212\001\312A\037\n\n" + + "AspectType\022\021OperationMetadata\332" + + "A!parent,aspect_type,aspect_type_id\202\323\344\223\002" + + ">\"//v1/{parent=projects/*/locations/*}/aspectTypes:\013aspect_type\022\363\001\n" + + "\020UpdateAspectType\0221.google.cloud.dataplex.v1.UpdateAs" + + "pectTypeRequest\032\035.google.longrunning.Operation\"\214\001\312A\037\n\n" + + "AspectType\022\021OperationMetad" + + "ata\332A\027aspect_type,update_mask\202\323\344\223\002J2;/v1" + + "/{aspect_type.name=projects/*/locations/*/aspectTypes/*}:\013aspect_type\022\321\001\n" + + "\020DeleteAspectType\0221.google.cloud.dataplex.v1.De" + + "leteAspectTypeRequest\032\035.google.longrunning.Operation\"k\312A*\n" + + "\025google.protobuf.Empty" + + "\022\021OperationMetadata\332A\004name\202\323\344\223\0021*//v1/{n" + + "ame=projects/*/locations/*/aspectTypes/*}\022\270\001\n" + + "\017ListAspectTypes\0220.google.cloud.dataplex.v1.ListAspectTypesRequest\0321.google" + + ".cloud.dataplex.v1.ListAspectTypesRespon" + + "se\"@\332A\006parent\202\323\344\223\0021\022//v1/{parent=projects/*/locations/*}/aspectTypes\022\245\001\n\r" + + "GetAspectType\022..google.cloud.dataplex.v1.GetAsp" + + "ectTypeRequest\032$.google.cloud.dataplex.v" + + "1.AspectType\">\332A\004name\202\323\344\223\0021\022//v1/{name=projects/*/locations/*/aspectTypes/*}\022\361\001\n" + + "\020CreateEntryGroup\0221.google.cloud.dataple" + + "x.v1.CreateEntryGroupRequest\032\035.google.longrunning.Operation\"\212\001\312A\037\n\n" + + "EntryGroup\022\021OperationMetadata\332A!parent,entry_group,en" + + "try_group_id\202\323\344\223\002>\"//v1/{parent=projects" + + "/*/locations/*}/entryGroups:\013entry_group\022\363\001\n" + + "\020UpdateEntryGroup\0221.google.cloud.dat" + + "aplex.v1.UpdateEntryGroupRequest\032\035.google.longrunning.Operation\"\214\001\312A\037\n\n" + + "EntryGroup\022\021OperationMetadata\332A\027entry_group,updat" + + "e_mask\202\323\344\223\002J2;/v1/{entry_group.name=proj" + + "ects/*/locations/*/entryGroups/*}:\013entry_group\022\321\001\n" + + "\020DeleteEntryGroup\0221.google.cloud.dataplex.v1.DeleteEntryGroupRequest\032\035", + ".google.longrunning.Operation\"k\312A*\n\025goog" + + "le.protobuf.Empty\022\021OperationMetadata\332A\004n" + + "ame\202\323\344\223\0021*//v1/{name=projects/*/location" + + "s/*/entryGroups/*}\022\270\001\n\017ListEntryGroups\0220" + + ".google.cloud.dataplex.v1.ListEntryGroup" + + "sRequest\0321.google.cloud.dataplex.v1.List" + + "EntryGroupsResponse\"@\332A\006parent\202\323\344\223\0021\022//v" + + "1/{parent=projects/*/locations/*}/entryG" + + "roups\022\245\001\n\rGetEntryGroup\022..google.cloud.d" + + "ataplex.v1.GetEntryGroupRequest\032$.google" + + ".cloud.dataplex.v1.EntryGroup\">\332A\004name\202\323" + + "\344\223\0021\022//v1/{name=projects/*/locations/*/e" + + "ntryGroups/*}\022\276\001\n\013CreateEntry\022,.google.c" + + "loud.dataplex.v1.CreateEntryRequest\032\037.go" + + "ogle.cloud.dataplex.v1.Entry\"`\332A\025parent," + + "entry,entry_id\202\323\344\223\002B\"9/v1/{parent=projec" + + "ts/*/locations/*/entryGroups/*}/entries:" + + "\005entry\022\301\001\n\013UpdateEntry\022,.google.cloud.da" + + "taplex.v1.UpdateEntryRequest\032\037.google.cl" + + "oud.dataplex.v1.Entry\"c\332A\021entry,update_m" + + "ask\202\323\344\223\002I2@/v1/{entry.name=projects/*/lo" + + "cations/*/entryGroups/*/entries/**}:\005ent" + + "ry\022\247\001\n\013DeleteEntry\022,.google.cloud.datapl" + + "ex.v1.DeleteEntryRequest\032\037.google.cloud." + + "dataplex.v1.Entry\"I\332A\004name\202\323\344\223\002<*:/v1/{n" + + "ame=projects/*/locations/*/entryGroups/*" + + "/entries/**}\022\266\001\n\013ListEntries\022,.google.cl" + + "oud.dataplex.v1.ListEntriesRequest\032-.goo" + + "gle.cloud.dataplex.v1.ListEntriesRespons" + + "e\"J\332A\006parent\202\323\344\223\002;\0229/v1/{parent=projects" + + "/*/locations/*/entryGroups/*}/entries\022\241\001" + + "\n\010GetEntry\022).google.cloud.dataplex.v1.Ge" + + "tEntryRequest\032\037.google.cloud.dataplex.v1" + + ".Entry\"I\332A\004name\202\323\344\223\002<\022:/v1/{name=project" + + "s/*/locations/*/entryGroups/*/entries/**" + + "}\022\223\001\n\013LookupEntry\022,.google.cloud.dataple" + + "x.v1.LookupEntryRequest\032\037.google.cloud.d" + + "ataplex.v1.Entry\"5\202\323\344\223\002/\022-/v1/{name=proj" + + "ects/*/locations/*}:lookupEntry\022\266\001\n\rSear" + + "chEntries\022..google.cloud.dataplex.v1.Sea" + + "rchEntriesRequest\032/.google.cloud.dataple" + + "x.v1.SearchEntriesResponse\"D\332A\nname,quer" + + "y\202\323\344\223\0021\"//v1/{name=projects/*/locations/" + + "*}:searchEntries\022\370\001\n\021CreateMetadataJob\0222" + + ".google.cloud.dataplex.v1.CreateMetadata" + + "JobRequest\032\035.google.longrunning.Operatio" + + "n\"\217\001\312A \n\013MetadataJob\022\021OperationMetadata\332" + + "A#parent,metadata_job,metadata_job_id\202\323\344" + + "\223\002@\"0/v1/{parent=projects/*/locations/*}" + + "/metadataJobs:\014metadata_job\022\251\001\n\016GetMetad" + + "ataJob\022/.google.cloud.dataplex.v1.GetMet" + + "adataJobRequest\032%.google.cloud.dataplex." + + "v1.MetadataJob\"?\332A\004name\202\323\344\223\0022\0220/v1/{name" + + "=projects/*/locations/*/metadataJobs/*}\022" + + "\274\001\n\020ListMetadataJobs\0221.google.cloud.data" + + "plex.v1.ListMetadataJobsRequest\0322.google" + + ".cloud.dataplex.v1.ListMetadataJobsRespo" + + "nse\"A\332A\006parent\202\323\344\223\0022\0220/v1/{parent=projec" + + "ts/*/locations/*}/metadataJobs\022\252\001\n\021Cance" + + "lMetadataJob\0222.google.cloud.dataplex.v1." + + "CancelMetadataJobRequest\032\026.google.protob" + + "uf.Empty\"I\332A\004name\202\323\344\223\002<\"7/v1/{name=proje" + + "cts/*/locations/*/metadataJobs/*}:cancel" + + ":\001*\032K\312A\027dataplex.googleapis.com\322A.https:" + + "//www.googleapis.com/auth/cloud-platform" + + "B\274\001\n\034com.google.cloud.dataplex.v1B\014Catal" + + "ogProtoP\001Z8cloud.google.com/go/dataplex/" + + "apiv1/dataplexpb;dataplexpb\252\002\030Google.Clo" + + "ud.Dataplex.V1\312\002\030Google\\Cloud\\Dataplex\\V" + + "1\352\002\033Google::Cloud::Dataplex::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1328,7 +1328,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataplex_v1_SearchEntriesRequest_descriptor, new java.lang.String[] { - "Name", "Query", "PageSize", "PageToken", "OrderBy", "Scope", + "Name", "Query", "PageSize", "PageToken", "OrderBy", "Scope", "SemanticSearch", }); internal_static_google_cloud_dataplex_v1_SearchEntriesResult_descriptor = getDescriptor().getMessageTypes().get(33); diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/SearchEntriesRequest.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/SearchEntriesRequest.java index dd1cf7a112b8..dda4779fe264 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/SearchEntriesRequest.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/SearchEntriesRequest.java @@ -374,6 +374,26 @@ public com.google.protobuf.ByteString getScopeBytes() { } } + public static final int SEMANTIC_SEARCH_FIELD_NUMBER = 11; + private boolean semanticSearch_ = false; + + /** + * + * + *
+   * Optional. Specifies whether the search should understand the meaning and
+   * intent behind the query, rather than just matching keywords.
+   * 
+ * + * bool semantic_search = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The semanticSearch. + */ + @java.lang.Override + public boolean getSemanticSearch() { + return semanticSearch_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -406,6 +426,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scope_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, scope_); } + if (semanticSearch_ != false) { + output.writeBool(11, semanticSearch_); + } getUnknownFields().writeTo(output); } @@ -433,6 +456,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scope_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, scope_); } + if (semanticSearch_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, semanticSearch_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -455,6 +481,7 @@ public boolean equals(final java.lang.Object obj) { if (!getPageToken().equals(other.getPageToken())) return false; if (!getOrderBy().equals(other.getOrderBy())) return false; if (!getScope().equals(other.getScope())) return false; + if (getSemanticSearch() != other.getSemanticSearch()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -478,6 +505,8 @@ public int hashCode() { hash = (53 * hash) + getOrderBy().hashCode(); hash = (37 * hash) + SCOPE_FIELD_NUMBER; hash = (53 * hash) + getScope().hashCode(); + hash = (37 * hash) + SEMANTIC_SEARCH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSemanticSearch()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -616,6 +645,7 @@ public Builder clear() { pageToken_ = ""; orderBy_ = ""; scope_ = ""; + semanticSearch_ = false; return this; } @@ -670,6 +700,9 @@ private void buildPartial0(com.google.cloud.dataplex.v1.SearchEntriesRequest res if (((from_bitField0_ & 0x00000020) != 0)) { result.scope_ = scope_; } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.semanticSearch_ = semanticSearch_; + } } @java.lang.Override @@ -746,6 +779,9 @@ public Builder mergeFrom(com.google.cloud.dataplex.v1.SearchEntriesRequest other bitField0_ |= 0x00000020; onChanged(); } + if (other.getSemanticSearch() != false) { + setSemanticSearch(other.getSemanticSearch()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -808,6 +844,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 58 + case 88: + { + semanticSearch_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 88 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1514,6 +1556,65 @@ public Builder setScopeBytes(com.google.protobuf.ByteString value) { return this; } + private boolean semanticSearch_; + + /** + * + * + *
+     * Optional. Specifies whether the search should understand the meaning and
+     * intent behind the query, rather than just matching keywords.
+     * 
+ * + * bool semantic_search = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The semanticSearch. + */ + @java.lang.Override + public boolean getSemanticSearch() { + return semanticSearch_; + } + + /** + * + * + *
+     * Optional. Specifies whether the search should understand the meaning and
+     * intent behind the query, rather than just matching keywords.
+     * 
+ * + * bool semantic_search = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The semanticSearch to set. + * @return This builder for chaining. + */ + public Builder setSemanticSearch(boolean value) { + + semanticSearch_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies whether the search should understand the meaning and
+     * intent behind the query, rather than just matching keywords.
+     * 
+ * + * bool semantic_search = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSemanticSearch() { + bitField0_ = (bitField0_ & ~0x00000040); + semanticSearch_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/SearchEntriesRequestOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/SearchEntriesRequestOrBuilder.java index 6a2bd6c65b5f..b3de51516464 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/SearchEntriesRequestOrBuilder.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/SearchEntriesRequestOrBuilder.java @@ -196,4 +196,18 @@ public interface SearchEntriesRequestOrBuilder * @return The bytes for scope. */ com.google.protobuf.ByteString getScopeBytes(); + + /** + * + * + *
+   * Optional. Specifies whether the search should understand the meaning and
+   * intent behind the query, rather than just matching keywords.
+   * 
+ * + * bool semantic_search = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The semanticSearch. + */ + boolean getSemanticSearch(); } diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/SearchEntriesResult.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/SearchEntriesResult.java index 6cdac22c0a63..47554b029b2d 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/SearchEntriesResult.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/SearchEntriesResult.java @@ -80,7 +80,7 @@ public interface SnippetsOrBuilder * .google.cloud.dataplex.v1.Entry dataplex_entry = 1 [deprecated = true]; * * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.Snippets.dataplex_entry is - * deprecated. See google/cloud/dataplex/v1/catalog.proto;l=1385 + * deprecated. See google/cloud/dataplex/v1/catalog.proto;l=1389 * @return Whether the dataplexEntry field is set. */ @java.lang.Deprecated @@ -96,7 +96,7 @@ public interface SnippetsOrBuilder * .google.cloud.dataplex.v1.Entry dataplex_entry = 1 [deprecated = true]; * * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.Snippets.dataplex_entry is - * deprecated. See google/cloud/dataplex/v1/catalog.proto;l=1385 + * deprecated. See google/cloud/dataplex/v1/catalog.proto;l=1389 * @return The dataplexEntry. */ @java.lang.Deprecated @@ -174,7 +174,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * .google.cloud.dataplex.v1.Entry dataplex_entry = 1 [deprecated = true]; * * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.Snippets.dataplex_entry is - * deprecated. See google/cloud/dataplex/v1/catalog.proto;l=1385 + * deprecated. See google/cloud/dataplex/v1/catalog.proto;l=1389 * @return Whether the dataplexEntry field is set. */ @java.lang.Override @@ -193,7 +193,7 @@ public boolean hasDataplexEntry() { * .google.cloud.dataplex.v1.Entry dataplex_entry = 1 [deprecated = true]; * * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.Snippets.dataplex_entry is - * deprecated. See google/cloud/dataplex/v1/catalog.proto;l=1385 + * deprecated. See google/cloud/dataplex/v1/catalog.proto;l=1389 * @return The dataplexEntry. */ @java.lang.Override @@ -607,7 +607,7 @@ public Builder mergeFrom( * .google.cloud.dataplex.v1.Entry dataplex_entry = 1 [deprecated = true]; * * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.Snippets.dataplex_entry is - * deprecated. See google/cloud/dataplex/v1/catalog.proto;l=1385 + * deprecated. See google/cloud/dataplex/v1/catalog.proto;l=1389 * @return Whether the dataplexEntry field is set. */ @java.lang.Deprecated @@ -625,7 +625,7 @@ public boolean hasDataplexEntry() { * .google.cloud.dataplex.v1.Entry dataplex_entry = 1 [deprecated = true]; * * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.Snippets.dataplex_entry is - * deprecated. See google/cloud/dataplex/v1/catalog.proto;l=1385 + * deprecated. See google/cloud/dataplex/v1/catalog.proto;l=1389 * @return The dataplexEntry. */ @java.lang.Deprecated @@ -876,7 +876,7 @@ public com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets getDefaultInsta * string linked_resource = 8 [deprecated = true]; * * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.linked_resource is deprecated. See - * google/cloud/dataplex/v1/catalog.proto;l=1389 + * google/cloud/dataplex/v1/catalog.proto;l=1393 * @return The linkedResource. */ @java.lang.Override @@ -903,7 +903,7 @@ public java.lang.String getLinkedResource() { * string linked_resource = 8 [deprecated = true]; * * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.linked_resource is deprecated. See - * google/cloud/dataplex/v1/catalog.proto;l=1389 + * google/cloud/dataplex/v1/catalog.proto;l=1393 * @return The bytes for linkedResource. */ @java.lang.Override @@ -967,7 +967,7 @@ public com.google.cloud.dataplex.v1.EntryOrBuilder getDataplexEntryOrBuilder() { * * * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.snippets is deprecated. See - * google/cloud/dataplex/v1/catalog.proto;l=1394 + * google/cloud/dataplex/v1/catalog.proto;l=1398 * @return Whether the snippets field is set. */ @java.lang.Override @@ -987,7 +987,7 @@ public boolean hasSnippets() { * * * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.snippets is deprecated. See - * google/cloud/dataplex/v1/catalog.proto;l=1394 + * google/cloud/dataplex/v1/catalog.proto;l=1398 * @return The snippets. */ @java.lang.Override @@ -1448,7 +1448,7 @@ public Builder mergeFrom( * string linked_resource = 8 [deprecated = true]; * * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.linked_resource is deprecated. See - * google/cloud/dataplex/v1/catalog.proto;l=1389 + * google/cloud/dataplex/v1/catalog.proto;l=1393 * @return The linkedResource. */ @java.lang.Deprecated @@ -1474,7 +1474,7 @@ public java.lang.String getLinkedResource() { * string linked_resource = 8 [deprecated = true]; * * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.linked_resource is deprecated. See - * google/cloud/dataplex/v1/catalog.proto;l=1389 + * google/cloud/dataplex/v1/catalog.proto;l=1393 * @return The bytes for linkedResource. */ @java.lang.Deprecated @@ -1500,7 +1500,7 @@ public com.google.protobuf.ByteString getLinkedResourceBytes() { * string linked_resource = 8 [deprecated = true]; * * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.linked_resource is deprecated. See - * google/cloud/dataplex/v1/catalog.proto;l=1389 + * google/cloud/dataplex/v1/catalog.proto;l=1393 * @param value The linkedResource to set. * @return This builder for chaining. */ @@ -1525,7 +1525,7 @@ public Builder setLinkedResource(java.lang.String value) { * string linked_resource = 8 [deprecated = true]; * * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.linked_resource is deprecated. See - * google/cloud/dataplex/v1/catalog.proto;l=1389 + * google/cloud/dataplex/v1/catalog.proto;l=1393 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1546,7 +1546,7 @@ public Builder clearLinkedResource() { * string linked_resource = 8 [deprecated = true]; * * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.linked_resource is deprecated. See - * google/cloud/dataplex/v1/catalog.proto;l=1389 + * google/cloud/dataplex/v1/catalog.proto;l=1393 * @param value The bytes for linkedResource to set. * @return This builder for chaining. */ @@ -1707,7 +1707,7 @@ public com.google.cloud.dataplex.v1.EntryOrBuilder getDataplexEntryOrBuilder() { * * * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.snippets is deprecated. See - * google/cloud/dataplex/v1/catalog.proto;l=1394 + * google/cloud/dataplex/v1/catalog.proto;l=1398 * @return Whether the snippets field is set. */ @java.lang.Deprecated @@ -1727,7 +1727,7 @@ public boolean hasSnippets() { * * * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.snippets is deprecated. See - * google/cloud/dataplex/v1/catalog.proto;l=1394 + * google/cloud/dataplex/v1/catalog.proto;l=1398 * @return The snippets. */ @java.lang.Deprecated diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/SearchEntriesResultOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/SearchEntriesResultOrBuilder.java index ed48d62b1922..2346873fa5ee 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/SearchEntriesResultOrBuilder.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/SearchEntriesResultOrBuilder.java @@ -34,7 +34,7 @@ public interface SearchEntriesResultOrBuilder * string linked_resource = 8 [deprecated = true]; * * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.linked_resource is deprecated. See - * google/cloud/dataplex/v1/catalog.proto;l=1389 + * google/cloud/dataplex/v1/catalog.proto;l=1393 * @return The linkedResource. */ @java.lang.Deprecated @@ -50,7 +50,7 @@ public interface SearchEntriesResultOrBuilder * string linked_resource = 8 [deprecated = true]; * * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.linked_resource is deprecated. See - * google/cloud/dataplex/v1/catalog.proto;l=1389 + * google/cloud/dataplex/v1/catalog.proto;l=1393 * @return The bytes for linkedResource. */ @java.lang.Deprecated @@ -84,7 +84,7 @@ public interface SearchEntriesResultOrBuilder * * * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.snippets is deprecated. See - * google/cloud/dataplex/v1/catalog.proto;l=1394 + * google/cloud/dataplex/v1/catalog.proto;l=1398 * @return Whether the snippets field is set. */ @java.lang.Deprecated @@ -101,7 +101,7 @@ public interface SearchEntriesResultOrBuilder * * * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.snippets is deprecated. See - * google/cloud/dataplex/v1/catalog.proto;l=1394 + * google/cloud/dataplex/v1/catalog.proto;l=1398 * @return The snippets. */ @java.lang.Deprecated diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/catalog.proto b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/catalog.proto index db707720afdc..fd778155ca55 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/catalog.proto +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/catalog.proto @@ -1373,6 +1373,10 @@ message SearchEntriesRequest { // unspecified, it defaults to the organization where the project provided in // `name` is located. string scope = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies whether the search should understand the meaning and + // intent behind the query, rather than just matching keywords. + bool semantic_search = 11 [(google.api.field_behavior) = OPTIONAL]; } // A single result of a SearchEntries request. diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/catalogservice/searchentries/AsyncSearchEntries.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/catalogservice/searchentries/AsyncSearchEntries.java index cb3e4bb4b2e4..0150a4f598bd 100644 --- a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/catalogservice/searchentries/AsyncSearchEntries.java +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/catalogservice/searchentries/AsyncSearchEntries.java @@ -44,6 +44,7 @@ public static void asyncSearchEntries() throws Exception { .setPageToken("pageToken873572522") .setOrderBy("orderBy-1207110587") .setScope("scope109264468") + .setSemanticSearch(true) .build(); ApiFuture future = catalogServiceClient.searchEntriesPagedCallable().futureCall(request); diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/catalogservice/searchentries/AsyncSearchEntriesPaged.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/catalogservice/searchentries/AsyncSearchEntriesPaged.java index 95522e821571..93f465b245d8 100644 --- a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/catalogservice/searchentries/AsyncSearchEntriesPaged.java +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/catalogservice/searchentries/AsyncSearchEntriesPaged.java @@ -45,6 +45,7 @@ public static void asyncSearchEntriesPaged() throws Exception { .setPageToken("pageToken873572522") .setOrderBy("orderBy-1207110587") .setScope("scope109264468") + .setSemanticSearch(true) .build(); while (true) { SearchEntriesResponse response = catalogServiceClient.searchEntriesCallable().call(request); diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/catalogservice/searchentries/SyncSearchEntries.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/catalogservice/searchentries/SyncSearchEntries.java index 4580a3db6fa9..b1a77f144d0f 100644 --- a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/catalogservice/searchentries/SyncSearchEntries.java +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/catalogservice/searchentries/SyncSearchEntries.java @@ -43,6 +43,7 @@ public static void syncSearchEntries() throws Exception { .setPageToken("pageToken873572522") .setOrderBy("orderBy-1207110587") .setScope("scope109264468") + .setSemanticSearch(true) .build(); for (SearchEntriesResult element : catalogServiceClient.searchEntries(request).iterateAll()) { // doThingsWith(element); diff --git a/java-dataproc-metastore/CHANGELOG.md b/java-dataproc-metastore/CHANGELOG.md index ece0b8b6d09c..5ec2b78bb2ef 100644 --- a/java-dataproc-metastore/CHANGELOG.md +++ b/java-dataproc-metastore/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.69.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.68.0 (2025-06-25) ### Dependencies diff --git a/java-dataproc-metastore/README.md b/java-dataproc-metastore/README.md index 41ae267db70e..0a7a70fd906e 100644 --- a/java-dataproc-metastore/README.md +++ b/java-dataproc-metastore/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc-metastore - 2.67.0 + 2.68.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc-metastore:2.67.0' +implementation 'com.google.cloud:google-cloud-dataproc-metastore:2.68.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc-metastore" % "2.67.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc-metastore" % "2.68.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.67.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc-metastore/2.68.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/google-cloud-dataproc-metastore-bom/pom.xml b/java-dataproc-metastore/google-cloud-dataproc-metastore-bom/pom.xml index 06b6124128f0..61e6cf89c637 100644 --- a/java-dataproc-metastore/google-cloud-dataproc-metastore-bom/pom.xml +++ b/java-dataproc-metastore/google-cloud-dataproc-metastore-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-dataproc-metastore-bom - 2.68.0 + 2.69.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,37 +27,37 @@ com.google.cloud google-cloud-dataproc-metastore - 2.68.0 + 2.69.0 com.google.api.grpc grpc-google-cloud-dataproc-metastore-v1beta - 0.72.0 + 0.73.0 com.google.api.grpc grpc-google-cloud-dataproc-metastore-v1alpha - 0.72.0 + 0.73.0 com.google.api.grpc grpc-google-cloud-dataproc-metastore-v1 - 2.68.0 + 2.69.0 com.google.api.grpc proto-google-cloud-dataproc-metastore-v1beta - 0.72.0 + 0.73.0 com.google.api.grpc proto-google-cloud-dataproc-metastore-v1alpha - 0.72.0 + 0.73.0 com.google.api.grpc proto-google-cloud-dataproc-metastore-v1 - 2.68.0 + 2.69.0
diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/pom.xml b/java-dataproc-metastore/google-cloud-dataproc-metastore/pom.xml index 8f9227115c57..3bde84f9d8bb 100644 --- a/java-dataproc-metastore/google-cloud-dataproc-metastore/pom.xml +++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-dataproc-metastore - 2.68.0 + 2.69.0 jar Google Dataproc Metastore 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. com.google.cloud google-cloud-dataproc-metastore-parent - 2.68.0 + 2.69.0 google-cloud-dataproc-metastore diff --git a/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1/pom.xml b/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1/pom.xml index 1c8d57ab7e05..4e82ffcc80d9 100644 --- a/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1/pom.xml +++ b/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-metastore-v1 - 2.68.0 + 2.69.0 grpc-google-cloud-dataproc-metastore-v1 GRPC library for google-cloud-dataproc-metastore com.google.cloud google-cloud-dataproc-metastore-parent - 2.68.0 + 2.69.0 diff --git a/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1alpha/pom.xml b/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1alpha/pom.xml index 70542f1c15b0..3f69bfcb2338 100644 --- a/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1alpha/pom.xml +++ b/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-metastore-v1alpha - 0.72.0 + 0.73.0 grpc-google-cloud-dataproc-metastore-v1alpha GRPC library for google-cloud-dataproc-metastore com.google.cloud google-cloud-dataproc-metastore-parent - 2.68.0 + 2.69.0 diff --git a/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1beta/pom.xml b/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1beta/pom.xml index 202faec1d92a..9d7a75df0d42 100644 --- a/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1beta/pom.xml +++ b/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-metastore-v1beta - 0.72.0 + 0.73.0 grpc-google-cloud-dataproc-metastore-v1beta GRPC library for google-cloud-dataproc-metastore com.google.cloud google-cloud-dataproc-metastore-parent - 2.68.0 + 2.69.0 diff --git a/java-dataproc-metastore/pom.xml b/java-dataproc-metastore/pom.xml index 52c41a95830b..541b8085d4e5 100644 --- a/java-dataproc-metastore/pom.xml +++ b/java-dataproc-metastore/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-metastore-parent pom - 2.68.0 + 2.69.0 Google Dataproc Metastore Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.cloud google-cloud-dataproc-metastore - 2.68.0 + 2.69.0 com.google.api.grpc grpc-google-cloud-dataproc-metastore-v1beta - 0.72.0 + 0.73.0 com.google.api.grpc grpc-google-cloud-dataproc-metastore-v1alpha - 0.72.0 + 0.73.0 com.google.api.grpc grpc-google-cloud-dataproc-metastore-v1 - 2.68.0 + 2.69.0 com.google.api.grpc proto-google-cloud-dataproc-metastore-v1beta - 0.72.0 + 0.73.0 com.google.api.grpc proto-google-cloud-dataproc-metastore-v1alpha - 0.72.0 + 0.73.0 com.google.api.grpc proto-google-cloud-dataproc-metastore-v1 - 2.68.0 + 2.69.0 diff --git a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1/pom.xml b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1/pom.xml index 6b61f51e53a1..1e6f4d616873 100644 --- a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1/pom.xml +++ b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-metastore-v1 - 2.68.0 + 2.69.0 proto-google-cloud-dataproc-metastore-v1 Proto library for google-cloud-dataproc-metastore com.google.cloud google-cloud-dataproc-metastore-parent - 2.68.0 + 2.69.0 diff --git a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1alpha/pom.xml b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1alpha/pom.xml index aaedebad629b..e868a2f98e5f 100644 --- a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1alpha/pom.xml +++ b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-metastore-v1alpha - 0.72.0 + 0.73.0 proto-google-cloud-dataproc-metastore-v1alpha Proto library for google-cloud-dataproc-metastore com.google.cloud google-cloud-dataproc-metastore-parent - 2.68.0 + 2.69.0 diff --git a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1beta/pom.xml b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1beta/pom.xml index 452e351e7598..17df90ca9ef2 100644 --- a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1beta/pom.xml +++ b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-metastore-v1beta - 0.72.0 + 0.73.0 proto-google-cloud-dataproc-metastore-v1beta Proto library for google-cloud-dataproc-metastore com.google.cloud google-cloud-dataproc-metastore-parent - 2.68.0 + 2.69.0 diff --git a/java-dataproc/CHANGELOG.md b/java-dataproc/CHANGELOG.md index 7fb8d6e48bf5..002a52eb6f1e 100644 --- a/java-dataproc/CHANGELOG.md +++ b/java-dataproc/CHANGELOG.md @@ -1,5 +1,16 @@ # Changelog +## 4.65.0 (2025-07-11) + +### Features + +* Add `cluster_tier` to support creating premium clusters ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 4.64.0 (2025-06-25) ### Dependencies diff --git a/java-dataproc/README.md b/java-dataproc/README.md index 882a5429d8a6..0f3e78ce18f1 100644 --- a/java-dataproc/README.md +++ b/java-dataproc/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 4.63.0 + 4.64.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc:4.63.0' +implementation 'com.google.cloud:google-cloud-dataproc:4.64.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.63.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.64.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.63.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc/4.64.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/google-cloud-dataproc-bom/pom.xml b/java-dataproc/google-cloud-dataproc-bom/pom.xml index 1c24cb589fc5..9cc7ea203a04 100644 --- a/java-dataproc/google-cloud-dataproc-bom/pom.xml +++ b/java-dataproc/google-cloud-dataproc-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 4.64.0 + 4.65.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-dataproc - 4.64.0 + 4.65.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.64.0 + 4.65.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.64.0 + 4.65.0 diff --git a/java-dataproc/google-cloud-dataproc/pom.xml b/java-dataproc/google-cloud-dataproc/pom.xml index 744b0bf54dc9..71da89f209d1 100644 --- a/java-dataproc/google-cloud-dataproc/pom.xml +++ b/java-dataproc/google-cloud-dataproc/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 4.64.0 + 4.65.0 jar Google Cloud Dataproc Java idiomatic client for Google Cloud Dataproc com.google.cloud google-cloud-dataproc-parent - 4.64.0 + 4.65.0 google-cloud-dataproc diff --git a/java-dataproc/google-cloud-dataproc/src/main/resources/META-INF/native-image/com.google.cloud.dataproc.v1/reflect-config.json b/java-dataproc/google-cloud-dataproc/src/main/resources/META-INF/native-image/com.google.cloud.dataproc.v1/reflect-config.json index a2958e651758..93e54fd96156 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/resources/META-INF/native-image/com.google.cloud.dataproc.v1/reflect-config.json +++ b/java-dataproc/google-cloud-dataproc/src/main/resources/META-INF/native-image/com.google.cloud.dataproc.v1/reflect-config.json @@ -719,6 +719,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dataproc.v1.ClusterConfig$ClusterTier", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dataproc.v1.ClusterMetrics", "queryAllDeclaredConstructors": true, diff --git a/java-dataproc/grpc-google-cloud-dataproc-v1/pom.xml b/java-dataproc/grpc-google-cloud-dataproc-v1/pom.xml index a262d00baf7c..4cb6695149af 100644 --- a/java-dataproc/grpc-google-cloud-dataproc-v1/pom.xml +++ b/java-dataproc/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.64.0 + 4.65.0 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 4.64.0 + 4.65.0 diff --git a/java-dataproc/pom.xml b/java-dataproc/pom.xml index 80b51749b36e..8a12c93ff1fc 100644 --- a/java-dataproc/pom.xml +++ b/java-dataproc/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 4.64.0 + 4.65.0 Google Cloud Dataproc Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.64.0 + 4.65.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.64.0 + 4.65.0 com.google.cloud google-cloud-dataproc - 4.64.0 + 4.65.0 diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/pom.xml b/java-dataproc/proto-google-cloud-dataproc-v1/pom.xml index 55c0eb0f20f7..d8881ddcb865 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/pom.xml +++ b/java-dataproc/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.64.0 + 4.65.0 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 4.64.0 + 4.65.0 diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java index 03215d60b444..2f4b04e2e1c5 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java @@ -40,6 +40,7 @@ private ClusterConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) } private ClusterConfig() { + clusterTier_ = 0; configBucket_ = ""; tempBucket_ = ""; initializationActions_ = java.util.Collections.emptyList(); @@ -67,7 +68,209 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.dataproc.v1.ClusterConfig.Builder.class); } + /** + * + * + *
+   * The cluster tier.
+   * 
+ * + * Protobuf enum {@code google.cloud.dataproc.v1.ClusterConfig.ClusterTier} + */ + public enum ClusterTier implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not set. Works the same as CLUSTER_TIER_STANDARD.
+     * 
+ * + * CLUSTER_TIER_UNSPECIFIED = 0; + */ + CLUSTER_TIER_UNSPECIFIED(0), + /** + * + * + *
+     * Standard Dataproc cluster.
+     * 
+ * + * CLUSTER_TIER_STANDARD = 1; + */ + CLUSTER_TIER_STANDARD(1), + /** + * + * + *
+     * Premium Dataproc cluster.
+     * 
+ * + * CLUSTER_TIER_PREMIUM = 2; + */ + CLUSTER_TIER_PREMIUM(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Not set. Works the same as CLUSTER_TIER_STANDARD.
+     * 
+ * + * CLUSTER_TIER_UNSPECIFIED = 0; + */ + public static final int CLUSTER_TIER_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Standard Dataproc cluster.
+     * 
+ * + * CLUSTER_TIER_STANDARD = 1; + */ + public static final int CLUSTER_TIER_STANDARD_VALUE = 1; + + /** + * + * + *
+     * Premium Dataproc cluster.
+     * 
+ * + * CLUSTER_TIER_PREMIUM = 2; + */ + public static final int CLUSTER_TIER_PREMIUM_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 ClusterTier 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 ClusterTier forNumber(int value) { + switch (value) { + case 0: + return CLUSTER_TIER_UNSPECIFIED; + case 1: + return CLUSTER_TIER_STANDARD; + case 2: + return CLUSTER_TIER_PREMIUM; + 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 ClusterTier findValueByNumber(int number) { + return ClusterTier.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClusterConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final ClusterTier[] VALUES = values(); + + public static ClusterTier 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 ClusterTier(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1.ClusterConfig.ClusterTier) + } + private int bitField0_; + public static final int CLUSTER_TIER_FIELD_NUMBER = 29; + private int clusterTier_ = 0; + + /** + * + * + *
+   * Optional. The cluster tier.
+   * 
+ * + * + * .google.cloud.dataproc.v1.ClusterConfig.ClusterTier cluster_tier = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for clusterTier. + */ + @java.lang.Override + public int getClusterTierValue() { + return clusterTier_; + } + + /** + * + * + *
+   * Optional. The cluster tier.
+   * 
+ * + * + * .google.cloud.dataproc.v1.ClusterConfig.ClusterTier cluster_tier = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The clusterTier. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.ClusterConfig.ClusterTier getClusterTier() { + com.google.cloud.dataproc.v1.ClusterConfig.ClusterTier result = + com.google.cloud.dataproc.v1.ClusterConfig.ClusterTier.forNumber(clusterTier_); + return result == null + ? com.google.cloud.dataproc.v1.ClusterConfig.ClusterTier.UNRECOGNIZED + : result; + } + public static final int CONFIG_BUCKET_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -1238,6 +1441,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < auxiliaryNodeGroups_.size(); i++) { output.writeMessage(25, auxiliaryNodeGroups_.get(i)); } + if (clusterTier_ + != com.google.cloud.dataproc.v1.ClusterConfig.ClusterTier.CLUSTER_TIER_UNSPECIFIED + .getNumber()) { + output.writeEnum(29, clusterTier_); + } getUnknownFields().writeTo(output); } @@ -1300,6 +1508,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, auxiliaryNodeGroups_.get(i)); } + if (clusterTier_ + != com.google.cloud.dataproc.v1.ClusterConfig.ClusterTier.CLUSTER_TIER_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(29, clusterTier_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1316,6 +1529,7 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.dataproc.v1.ClusterConfig other = (com.google.cloud.dataproc.v1.ClusterConfig) obj; + if (clusterTier_ != other.clusterTier_) return false; if (!getConfigBucket().equals(other.getConfigBucket())) return false; if (!getTempBucket().equals(other.getTempBucket())) return false; if (hasGceClusterConfig() != other.hasGceClusterConfig()) return false; @@ -1379,6 +1593,8 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CLUSTER_TIER_FIELD_NUMBER; + hash = (53 * hash) + clusterTier_; hash = (37 * hash) + CONFIG_BUCKET_FIELD_NUMBER; hash = (53 * hash) + getConfigBucket().hashCode(); hash = (37 * hash) + TEMP_BUCKET_FIELD_NUMBER; @@ -1601,6 +1817,7 @@ private void maybeForceBuilderInitialization() { public Builder clear() { super.clear(); bitField0_ = 0; + clusterTier_ = 0; configBucket_ = ""; tempBucket_ = ""; gceClusterConfig_ = null; @@ -1634,7 +1851,7 @@ public Builder clear() { initializationActions_ = null; initializationActionsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); encryptionConfig_ = null; if (encryptionConfigBuilder_ != null) { encryptionConfigBuilder_.dispose(); @@ -1676,7 +1893,7 @@ public Builder clear() { auxiliaryNodeGroups_ = null; auxiliaryNodeGroupsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); return this; } @@ -1714,18 +1931,18 @@ public com.google.cloud.dataproc.v1.ClusterConfig buildPartial() { private void buildPartialRepeatedFields(com.google.cloud.dataproc.v1.ClusterConfig result) { if (initializationActionsBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { initializationActions_ = java.util.Collections.unmodifiableList(initializationActions_); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); } result.initializationActions_ = initializationActions_; } else { result.initializationActions_ = initializationActionsBuilder_.build(); } if (auxiliaryNodeGroupsBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0)) { + if (((bitField0_ & 0x00010000) != 0)) { auxiliaryNodeGroups_ = java.util.Collections.unmodifiableList(auxiliaryNodeGroups_); - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); } result.auxiliaryNodeGroups_ = auxiliaryNodeGroups_; } else { @@ -1736,72 +1953,75 @@ private void buildPartialRepeatedFields(com.google.cloud.dataproc.v1.ClusterConf private void buildPartial0(com.google.cloud.dataproc.v1.ClusterConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.configBucket_ = configBucket_; + result.clusterTier_ = clusterTier_; } if (((from_bitField0_ & 0x00000002) != 0)) { + result.configBucket_ = configBucket_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { result.tempBucket_ = tempBucket_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { result.gceClusterConfig_ = gceClusterConfigBuilder_ == null ? gceClusterConfig_ : gceClusterConfigBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.masterConfig_ = masterConfigBuilder_ == null ? masterConfig_ : masterConfigBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.workerConfig_ = workerConfigBuilder_ == null ? workerConfig_ : workerConfigBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.secondaryWorkerConfig_ = secondaryWorkerConfigBuilder_ == null ? secondaryWorkerConfig_ : secondaryWorkerConfigBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.softwareConfig_ = softwareConfigBuilder_ == null ? softwareConfig_ : softwareConfigBuilder_.build(); to_bitField0_ |= 0x00000010; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.encryptionConfig_ = encryptionConfigBuilder_ == null ? encryptionConfig_ : encryptionConfigBuilder_.build(); to_bitField0_ |= 0x00000020; } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.autoscalingConfig_ = autoscalingConfigBuilder_ == null ? autoscalingConfig_ : autoscalingConfigBuilder_.build(); to_bitField0_ |= 0x00000040; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.securityConfig_ = securityConfigBuilder_ == null ? securityConfig_ : securityConfigBuilder_.build(); to_bitField0_ |= 0x00000080; } - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00001000) != 0)) { result.lifecycleConfig_ = lifecycleConfigBuilder_ == null ? lifecycleConfig_ : lifecycleConfigBuilder_.build(); to_bitField0_ |= 0x00000100; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.endpointConfig_ = endpointConfigBuilder_ == null ? endpointConfig_ : endpointConfigBuilder_.build(); to_bitField0_ |= 0x00000200; } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { result.metastoreConfig_ = metastoreConfigBuilder_ == null ? metastoreConfig_ : metastoreConfigBuilder_.build(); to_bitField0_ |= 0x00000400; } - if (((from_bitField0_ & 0x00004000) != 0)) { + if (((from_bitField0_ & 0x00008000) != 0)) { result.dataprocMetricConfig_ = dataprocMetricConfigBuilder_ == null ? dataprocMetricConfig_ @@ -1856,14 +2076,17 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.dataproc.v1.ClusterConfig other) { if (other == com.google.cloud.dataproc.v1.ClusterConfig.getDefaultInstance()) return this; + if (other.clusterTier_ != 0) { + setClusterTierValue(other.getClusterTierValue()); + } if (!other.getConfigBucket().isEmpty()) { configBucket_ = other.configBucket_; - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getTempBucket().isEmpty()) { tempBucket_ = other.tempBucket_; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasGceClusterConfig()) { @@ -1885,7 +2108,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ClusterConfig other) { if (!other.initializationActions_.isEmpty()) { if (initializationActions_.isEmpty()) { initializationActions_ = other.initializationActions_; - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); } else { ensureInitializationActionsIsMutable(); initializationActions_.addAll(other.initializationActions_); @@ -1898,7 +2121,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ClusterConfig other) { initializationActionsBuilder_.dispose(); initializationActionsBuilder_ = null; initializationActions_ = other.initializationActions_; - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); initializationActionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getInitializationActionsFieldBuilder() @@ -1933,7 +2156,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ClusterConfig other) { if (!other.auxiliaryNodeGroups_.isEmpty()) { if (auxiliaryNodeGroups_.isEmpty()) { auxiliaryNodeGroups_ = other.auxiliaryNodeGroups_; - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); } else { ensureAuxiliaryNodeGroupsIsMutable(); auxiliaryNodeGroups_.addAll(other.auxiliaryNodeGroups_); @@ -1946,7 +2169,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ClusterConfig other) { auxiliaryNodeGroupsBuilder_.dispose(); auxiliaryNodeGroupsBuilder_ = null; auxiliaryNodeGroups_ = other.auxiliaryNodeGroups_; - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); auxiliaryNodeGroupsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAuxiliaryNodeGroupsFieldBuilder() @@ -1985,32 +2208,32 @@ public Builder mergeFrom( case 10: { configBucket_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; break; } // case 10 case 18: { tempBucket_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; break; } // case 18 case 66: { input.readMessage( getGceClusterConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 66 case 74: { input.readMessage(getMasterConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 74 case 82: { input.readMessage(getWorkerConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 82 case 90: @@ -2031,58 +2254,58 @@ public Builder mergeFrom( { input.readMessage( getSecondaryWorkerConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 98 case 106: { input.readMessage(getSoftwareConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 106 case 122: { input.readMessage( getEncryptionConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 122 case 130: { input.readMessage(getSecurityConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 130 case 138: { input.readMessage(getLifecycleConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; break; } // case 138 case 146: { input.readMessage( getAutoscalingConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 146 case 154: { input.readMessage(getEndpointConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 154 case 162: { input.readMessage(getMetastoreConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 162 case 186: { input.readMessage( getDataprocMetricConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 186 case 202: @@ -2099,6 +2322,12 @@ public Builder mergeFrom( } break; } // case 202 + case 232: + { + clusterTier_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 232 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2118,6 +2347,113 @@ public Builder mergeFrom( private int bitField0_; + private int clusterTier_ = 0; + + /** + * + * + *
+     * Optional. The cluster tier.
+     * 
+ * + * + * .google.cloud.dataproc.v1.ClusterConfig.ClusterTier cluster_tier = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for clusterTier. + */ + @java.lang.Override + public int getClusterTierValue() { + return clusterTier_; + } + + /** + * + * + *
+     * Optional. The cluster tier.
+     * 
+ * + * + * .google.cloud.dataproc.v1.ClusterConfig.ClusterTier cluster_tier = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for clusterTier to set. + * @return This builder for chaining. + */ + public Builder setClusterTierValue(int value) { + clusterTier_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The cluster tier.
+     * 
+ * + * + * .google.cloud.dataproc.v1.ClusterConfig.ClusterTier cluster_tier = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The clusterTier. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.ClusterConfig.ClusterTier getClusterTier() { + com.google.cloud.dataproc.v1.ClusterConfig.ClusterTier result = + com.google.cloud.dataproc.v1.ClusterConfig.ClusterTier.forNumber(clusterTier_); + return result == null + ? com.google.cloud.dataproc.v1.ClusterConfig.ClusterTier.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. The cluster tier.
+     * 
+ * + * + * .google.cloud.dataproc.v1.ClusterConfig.ClusterTier cluster_tier = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The clusterTier to set. + * @return This builder for chaining. + */ + public Builder setClusterTier(com.google.cloud.dataproc.v1.ClusterConfig.ClusterTier value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + clusterTier_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The cluster tier.
+     * 
+ * + * + * .google.cloud.dataproc.v1.ClusterConfig.ClusterTier cluster_tier = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearClusterTier() { + bitField0_ = (bitField0_ & ~0x00000001); + clusterTier_ = 0; + onChanged(); + return this; + } + private java.lang.Object configBucket_ = ""; /** @@ -2213,7 +2549,7 @@ public Builder setConfigBucket(java.lang.String value) { throw new NullPointerException(); } configBucket_ = value; - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2241,7 +2577,7 @@ public Builder setConfigBucket(java.lang.String value) { */ public Builder clearConfigBucket() { configBucket_ = getDefaultInstance().getConfigBucket(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -2274,7 +2610,7 @@ public Builder setConfigBucketBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); configBucket_ = value; - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2374,7 +2710,7 @@ public Builder setTempBucket(java.lang.String value) { throw new NullPointerException(); } tempBucket_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2402,7 +2738,7 @@ public Builder setTempBucket(java.lang.String value) { */ public Builder clearTempBucket() { tempBucket_ = getDefaultInstance().getTempBucket(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -2435,7 +2771,7 @@ public Builder setTempBucketBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); tempBucket_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2462,7 +2798,7 @@ public Builder setTempBucketBytes(com.google.protobuf.ByteString value) { * @return Whether the gceClusterConfig field is set. */ public boolean hasGceClusterConfig() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** @@ -2510,7 +2846,7 @@ public Builder setGceClusterConfig(com.google.cloud.dataproc.v1.GceClusterConfig } else { gceClusterConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2534,7 +2870,7 @@ public Builder setGceClusterConfig( } else { gceClusterConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2553,7 +2889,7 @@ public Builder setGceClusterConfig( */ public Builder mergeGceClusterConfig(com.google.cloud.dataproc.v1.GceClusterConfig value) { if (gceClusterConfigBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) + if (((bitField0_ & 0x00000008) != 0) && gceClusterConfig_ != null && gceClusterConfig_ != com.google.cloud.dataproc.v1.GceClusterConfig.getDefaultInstance()) { @@ -2565,7 +2901,7 @@ public Builder mergeGceClusterConfig(com.google.cloud.dataproc.v1.GceClusterConf gceClusterConfigBuilder_.mergeFrom(value); } if (gceClusterConfig_ != null) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } return this; @@ -2584,7 +2920,7 @@ public Builder mergeGceClusterConfig(com.google.cloud.dataproc.v1.GceClusterConf * */ public Builder clearGceClusterConfig() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); gceClusterConfig_ = null; if (gceClusterConfigBuilder_ != null) { gceClusterConfigBuilder_.dispose(); @@ -2607,7 +2943,7 @@ public Builder clearGceClusterConfig() { * */ public com.google.cloud.dataproc.v1.GceClusterConfig.Builder getGceClusterConfigBuilder() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return getGceClusterConfigFieldBuilder().getBuilder(); } @@ -2685,7 +3021,7 @@ public com.google.cloud.dataproc.v1.GceClusterConfigOrBuilder getGceClusterConfi * @return Whether the masterConfig field is set. */ public boolean hasMasterConfig() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** @@ -2733,7 +3069,7 @@ public Builder setMasterConfig(com.google.cloud.dataproc.v1.InstanceGroupConfig } else { masterConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2757,7 +3093,7 @@ public Builder setMasterConfig( } else { masterConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2776,7 +3112,7 @@ public Builder setMasterConfig( */ public Builder mergeMasterConfig(com.google.cloud.dataproc.v1.InstanceGroupConfig value) { if (masterConfigBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) + if (((bitField0_ & 0x00000010) != 0) && masterConfig_ != null && masterConfig_ != com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance()) { @@ -2788,7 +3124,7 @@ public Builder mergeMasterConfig(com.google.cloud.dataproc.v1.InstanceGroupConfi masterConfigBuilder_.mergeFrom(value); } if (masterConfig_ != null) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); } return this; @@ -2807,7 +3143,7 @@ public Builder mergeMasterConfig(com.google.cloud.dataproc.v1.InstanceGroupConfi * */ public Builder clearMasterConfig() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); masterConfig_ = null; if (masterConfigBuilder_ != null) { masterConfigBuilder_.dispose(); @@ -2830,7 +3166,7 @@ public Builder clearMasterConfig() { * */ public com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder getMasterConfigBuilder() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return getMasterConfigFieldBuilder().getBuilder(); } @@ -2908,7 +3244,7 @@ public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getMasterConfig * @return Whether the workerConfig field is set. */ public boolean hasWorkerConfig() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** @@ -2956,7 +3292,7 @@ public Builder setWorkerConfig(com.google.cloud.dataproc.v1.InstanceGroupConfig } else { workerConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2980,7 +3316,7 @@ public Builder setWorkerConfig( } else { workerConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2999,7 +3335,7 @@ public Builder setWorkerConfig( */ public Builder mergeWorkerConfig(com.google.cloud.dataproc.v1.InstanceGroupConfig value) { if (workerConfigBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) + if (((bitField0_ & 0x00000020) != 0) && workerConfig_ != null && workerConfig_ != com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance()) { @@ -3011,7 +3347,7 @@ public Builder mergeWorkerConfig(com.google.cloud.dataproc.v1.InstanceGroupConfi workerConfigBuilder_.mergeFrom(value); } if (workerConfig_ != null) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); } return this; @@ -3030,7 +3366,7 @@ public Builder mergeWorkerConfig(com.google.cloud.dataproc.v1.InstanceGroupConfi * */ public Builder clearWorkerConfig() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); workerConfig_ = null; if (workerConfigBuilder_ != null) { workerConfigBuilder_.dispose(); @@ -3053,7 +3389,7 @@ public Builder clearWorkerConfig() { * */ public com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder getWorkerConfigBuilder() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return getWorkerConfigFieldBuilder().getBuilder(); } @@ -3131,7 +3467,7 @@ public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getWorkerConfig * @return Whether the secondaryWorkerConfig field is set. */ public boolean hasSecondaryWorkerConfig() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -3180,7 +3516,7 @@ public Builder setSecondaryWorkerConfig( } else { secondaryWorkerConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -3204,7 +3540,7 @@ public Builder setSecondaryWorkerConfig( } else { secondaryWorkerConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -3224,7 +3560,7 @@ public Builder setSecondaryWorkerConfig( public Builder mergeSecondaryWorkerConfig( com.google.cloud.dataproc.v1.InstanceGroupConfig value) { if (secondaryWorkerConfigBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000040) != 0) && secondaryWorkerConfig_ != null && secondaryWorkerConfig_ != com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance()) { @@ -3236,7 +3572,7 @@ public Builder mergeSecondaryWorkerConfig( secondaryWorkerConfigBuilder_.mergeFrom(value); } if (secondaryWorkerConfig_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } return this; @@ -3255,7 +3591,7 @@ public Builder mergeSecondaryWorkerConfig( * */ public Builder clearSecondaryWorkerConfig() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); secondaryWorkerConfig_ = null; if (secondaryWorkerConfigBuilder_ != null) { secondaryWorkerConfigBuilder_.dispose(); @@ -3279,7 +3615,7 @@ public Builder clearSecondaryWorkerConfig() { */ public com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder getSecondaryWorkerConfigBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return getSecondaryWorkerConfigFieldBuilder().getBuilder(); } @@ -3357,7 +3693,7 @@ public Builder clearSecondaryWorkerConfig() { * @return Whether the softwareConfig field is set. */ public boolean hasSoftwareConfig() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -3403,7 +3739,7 @@ public Builder setSoftwareConfig(com.google.cloud.dataproc.v1.SoftwareConfig val } else { softwareConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3426,7 +3762,7 @@ public Builder setSoftwareConfig( } else { softwareConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3444,7 +3780,7 @@ public Builder setSoftwareConfig( */ public Builder mergeSoftwareConfig(com.google.cloud.dataproc.v1.SoftwareConfig value) { if (softwareConfigBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) + if (((bitField0_ & 0x00000080) != 0) && softwareConfig_ != null && softwareConfig_ != com.google.cloud.dataproc.v1.SoftwareConfig.getDefaultInstance()) { @@ -3456,7 +3792,7 @@ public Builder mergeSoftwareConfig(com.google.cloud.dataproc.v1.SoftwareConfig v softwareConfigBuilder_.mergeFrom(value); } if (softwareConfig_ != null) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } return this; @@ -3474,7 +3810,7 @@ public Builder mergeSoftwareConfig(com.google.cloud.dataproc.v1.SoftwareConfig v * */ public Builder clearSoftwareConfig() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); softwareConfig_ = null; if (softwareConfigBuilder_ != null) { softwareConfigBuilder_.dispose(); @@ -3496,7 +3832,7 @@ public Builder clearSoftwareConfig() { * */ public com.google.cloud.dataproc.v1.SoftwareConfig.Builder getSoftwareConfigBuilder() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return getSoftwareConfigFieldBuilder().getBuilder(); } @@ -3554,11 +3890,11 @@ public com.google.cloud.dataproc.v1.SoftwareConfigOrBuilder getSoftwareConfigOrB initializationActions_ = java.util.Collections.emptyList(); private void ensureInitializationActionsIsMutable() { - if (!((bitField0_ & 0x00000080) != 0)) { + if (!((bitField0_ & 0x00000100) != 0)) { initializationActions_ = new java.util.ArrayList( initializationActions_); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; } } @@ -3944,7 +4280,7 @@ public Builder addAllInitializationActions( public Builder clearInitializationActions() { if (initializationActionsBuilder_ == null) { initializationActions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); } else { initializationActionsBuilder_.clear(); @@ -4177,7 +4513,7 @@ public Builder removeInitializationActions(int index) { com.google.cloud.dataproc.v1.NodeInitializationAction.Builder, com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder>( initializationActions_, - ((bitField0_ & 0x00000080) != 0), + ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); initializationActions_ = null; @@ -4206,7 +4542,7 @@ public Builder removeInitializationActions(int index) { * @return Whether the encryptionConfig field is set. */ public boolean hasEncryptionConfig() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** @@ -4252,7 +4588,7 @@ public Builder setEncryptionConfig(com.google.cloud.dataproc.v1.EncryptionConfig } else { encryptionConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -4275,7 +4611,7 @@ public Builder setEncryptionConfig( } else { encryptionConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -4293,7 +4629,7 @@ public Builder setEncryptionConfig( */ public Builder mergeEncryptionConfig(com.google.cloud.dataproc.v1.EncryptionConfig value) { if (encryptionConfigBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) + if (((bitField0_ & 0x00000200) != 0) && encryptionConfig_ != null && encryptionConfig_ != com.google.cloud.dataproc.v1.EncryptionConfig.getDefaultInstance()) { @@ -4305,7 +4641,7 @@ public Builder mergeEncryptionConfig(com.google.cloud.dataproc.v1.EncryptionConf encryptionConfigBuilder_.mergeFrom(value); } if (encryptionConfig_ != null) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); } return this; @@ -4323,7 +4659,7 @@ public Builder mergeEncryptionConfig(com.google.cloud.dataproc.v1.EncryptionConf * */ public Builder clearEncryptionConfig() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); encryptionConfig_ = null; if (encryptionConfigBuilder_ != null) { encryptionConfigBuilder_.dispose(); @@ -4345,7 +4681,7 @@ public Builder clearEncryptionConfig() { * */ public com.google.cloud.dataproc.v1.EncryptionConfig.Builder getEncryptionConfigBuilder() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return getEncryptionConfigFieldBuilder().getBuilder(); } @@ -4421,7 +4757,7 @@ public com.google.cloud.dataproc.v1.EncryptionConfigOrBuilder getEncryptionConfi * @return Whether the autoscalingConfig field is set. */ public boolean hasAutoscalingConfig() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** @@ -4469,7 +4805,7 @@ public Builder setAutoscalingConfig(com.google.cloud.dataproc.v1.AutoscalingConf } else { autoscalingConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -4493,7 +4829,7 @@ public Builder setAutoscalingConfig( } else { autoscalingConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -4512,7 +4848,7 @@ public Builder setAutoscalingConfig( */ public Builder mergeAutoscalingConfig(com.google.cloud.dataproc.v1.AutoscalingConfig value) { if (autoscalingConfigBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) + if (((bitField0_ & 0x00000400) != 0) && autoscalingConfig_ != null && autoscalingConfig_ != com.google.cloud.dataproc.v1.AutoscalingConfig.getDefaultInstance()) { @@ -4524,7 +4860,7 @@ public Builder mergeAutoscalingConfig(com.google.cloud.dataproc.v1.AutoscalingCo autoscalingConfigBuilder_.mergeFrom(value); } if (autoscalingConfig_ != null) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); } return this; @@ -4543,7 +4879,7 @@ public Builder mergeAutoscalingConfig(com.google.cloud.dataproc.v1.AutoscalingCo * */ public Builder clearAutoscalingConfig() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); autoscalingConfig_ = null; if (autoscalingConfigBuilder_ != null) { autoscalingConfigBuilder_.dispose(); @@ -4566,7 +4902,7 @@ public Builder clearAutoscalingConfig() { * */ public com.google.cloud.dataproc.v1.AutoscalingConfig.Builder getAutoscalingConfigBuilder() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return getAutoscalingConfigFieldBuilder().getBuilder(); } @@ -4643,7 +4979,7 @@ public com.google.cloud.dataproc.v1.AutoscalingConfigOrBuilder getAutoscalingCon * @return Whether the securityConfig field is set. */ public boolean hasSecurityConfig() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** @@ -4689,7 +5025,7 @@ public Builder setSecurityConfig(com.google.cloud.dataproc.v1.SecurityConfig val } else { securityConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -4712,7 +5048,7 @@ public Builder setSecurityConfig( } else { securityConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -4730,7 +5066,7 @@ public Builder setSecurityConfig( */ public Builder mergeSecurityConfig(com.google.cloud.dataproc.v1.SecurityConfig value) { if (securityConfigBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) + if (((bitField0_ & 0x00000800) != 0) && securityConfig_ != null && securityConfig_ != com.google.cloud.dataproc.v1.SecurityConfig.getDefaultInstance()) { @@ -4742,7 +5078,7 @@ public Builder mergeSecurityConfig(com.google.cloud.dataproc.v1.SecurityConfig v securityConfigBuilder_.mergeFrom(value); } if (securityConfig_ != null) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); } return this; @@ -4760,7 +5096,7 @@ public Builder mergeSecurityConfig(com.google.cloud.dataproc.v1.SecurityConfig v * */ public Builder clearSecurityConfig() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); securityConfig_ = null; if (securityConfigBuilder_ != null) { securityConfigBuilder_.dispose(); @@ -4782,7 +5118,7 @@ public Builder clearSecurityConfig() { * */ public com.google.cloud.dataproc.v1.SecurityConfig.Builder getSecurityConfigBuilder() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return getSecurityConfigFieldBuilder().getBuilder(); } @@ -4857,7 +5193,7 @@ public com.google.cloud.dataproc.v1.SecurityConfigOrBuilder getSecurityConfigOrB * @return Whether the lifecycleConfig field is set. */ public boolean hasLifecycleConfig() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00001000) != 0); } /** @@ -4903,7 +5239,7 @@ public Builder setLifecycleConfig(com.google.cloud.dataproc.v1.LifecycleConfig v } else { lifecycleConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4926,7 +5262,7 @@ public Builder setLifecycleConfig( } else { lifecycleConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4944,7 +5280,7 @@ public Builder setLifecycleConfig( */ public Builder mergeLifecycleConfig(com.google.cloud.dataproc.v1.LifecycleConfig value) { if (lifecycleConfigBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) + if (((bitField0_ & 0x00001000) != 0) && lifecycleConfig_ != null && lifecycleConfig_ != com.google.cloud.dataproc.v1.LifecycleConfig.getDefaultInstance()) { @@ -4956,7 +5292,7 @@ public Builder mergeLifecycleConfig(com.google.cloud.dataproc.v1.LifecycleConfig lifecycleConfigBuilder_.mergeFrom(value); } if (lifecycleConfig_ != null) { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); } return this; @@ -4974,7 +5310,7 @@ public Builder mergeLifecycleConfig(com.google.cloud.dataproc.v1.LifecycleConfig * */ public Builder clearLifecycleConfig() { - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); lifecycleConfig_ = null; if (lifecycleConfigBuilder_ != null) { lifecycleConfigBuilder_.dispose(); @@ -4996,7 +5332,7 @@ public Builder clearLifecycleConfig() { * */ public com.google.cloud.dataproc.v1.LifecycleConfig.Builder getLifecycleConfigBuilder() { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return getLifecycleConfigFieldBuilder().getBuilder(); } @@ -5071,7 +5407,7 @@ public com.google.cloud.dataproc.v1.LifecycleConfigOrBuilder getLifecycleConfigO * @return Whether the endpointConfig field is set. */ public boolean hasEndpointConfig() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** @@ -5117,7 +5453,7 @@ public Builder setEndpointConfig(com.google.cloud.dataproc.v1.EndpointConfig val } else { endpointConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -5140,7 +5476,7 @@ public Builder setEndpointConfig( } else { endpointConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -5158,7 +5494,7 @@ public Builder setEndpointConfig( */ public Builder mergeEndpointConfig(com.google.cloud.dataproc.v1.EndpointConfig value) { if (endpointConfigBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) + if (((bitField0_ & 0x00002000) != 0) && endpointConfig_ != null && endpointConfig_ != com.google.cloud.dataproc.v1.EndpointConfig.getDefaultInstance()) { @@ -5170,7 +5506,7 @@ public Builder mergeEndpointConfig(com.google.cloud.dataproc.v1.EndpointConfig v endpointConfigBuilder_.mergeFrom(value); } if (endpointConfig_ != null) { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); } return this; @@ -5188,7 +5524,7 @@ public Builder mergeEndpointConfig(com.google.cloud.dataproc.v1.EndpointConfig v * */ public Builder clearEndpointConfig() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); endpointConfig_ = null; if (endpointConfigBuilder_ != null) { endpointConfigBuilder_.dispose(); @@ -5210,7 +5546,7 @@ public Builder clearEndpointConfig() { * */ public com.google.cloud.dataproc.v1.EndpointConfig.Builder getEndpointConfigBuilder() { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return getEndpointConfigFieldBuilder().getBuilder(); } @@ -5285,7 +5621,7 @@ public com.google.cloud.dataproc.v1.EndpointConfigOrBuilder getEndpointConfigOrB * @return Whether the metastoreConfig field is set. */ public boolean hasMetastoreConfig() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00004000) != 0); } /** @@ -5331,7 +5667,7 @@ public Builder setMetastoreConfig(com.google.cloud.dataproc.v1.MetastoreConfig v } else { metastoreConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -5354,7 +5690,7 @@ public Builder setMetastoreConfig( } else { metastoreConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -5372,7 +5708,7 @@ public Builder setMetastoreConfig( */ public Builder mergeMetastoreConfig(com.google.cloud.dataproc.v1.MetastoreConfig value) { if (metastoreConfigBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) + if (((bitField0_ & 0x00004000) != 0) && metastoreConfig_ != null && metastoreConfig_ != com.google.cloud.dataproc.v1.MetastoreConfig.getDefaultInstance()) { @@ -5384,7 +5720,7 @@ public Builder mergeMetastoreConfig(com.google.cloud.dataproc.v1.MetastoreConfig metastoreConfigBuilder_.mergeFrom(value); } if (metastoreConfig_ != null) { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); } return this; @@ -5402,7 +5738,7 @@ public Builder mergeMetastoreConfig(com.google.cloud.dataproc.v1.MetastoreConfig * */ public Builder clearMetastoreConfig() { - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); metastoreConfig_ = null; if (metastoreConfigBuilder_ != null) { metastoreConfigBuilder_.dispose(); @@ -5424,7 +5760,7 @@ public Builder clearMetastoreConfig() { * */ public com.google.cloud.dataproc.v1.MetastoreConfig.Builder getMetastoreConfigBuilder() { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return getMetastoreConfigFieldBuilder().getBuilder(); } @@ -5499,7 +5835,7 @@ public com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder getMetastoreConfigO * @return Whether the dataprocMetricConfig field is set. */ public boolean hasDataprocMetricConfig() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** @@ -5546,7 +5882,7 @@ public Builder setDataprocMetricConfig( } else { dataprocMetricConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -5569,7 +5905,7 @@ public Builder setDataprocMetricConfig( } else { dataprocMetricConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -5588,7 +5924,7 @@ public Builder setDataprocMetricConfig( public Builder mergeDataprocMetricConfig( com.google.cloud.dataproc.v1.DataprocMetricConfig value) { if (dataprocMetricConfigBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) + if (((bitField0_ & 0x00008000) != 0) && dataprocMetricConfig_ != null && dataprocMetricConfig_ != com.google.cloud.dataproc.v1.DataprocMetricConfig.getDefaultInstance()) { @@ -5600,7 +5936,7 @@ public Builder mergeDataprocMetricConfig( dataprocMetricConfigBuilder_.mergeFrom(value); } if (dataprocMetricConfig_ != null) { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); } return this; @@ -5618,7 +5954,7 @@ public Builder mergeDataprocMetricConfig( * */ public Builder clearDataprocMetricConfig() { - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); dataprocMetricConfig_ = null; if (dataprocMetricConfigBuilder_ != null) { dataprocMetricConfigBuilder_.dispose(); @@ -5641,7 +5977,7 @@ public Builder clearDataprocMetricConfig() { */ public com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder getDataprocMetricConfigBuilder() { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return getDataprocMetricConfigFieldBuilder().getBuilder(); } @@ -5700,11 +6036,11 @@ public Builder clearDataprocMetricConfig() { java.util.Collections.emptyList(); private void ensureAuxiliaryNodeGroupsIsMutable() { - if (!((bitField0_ & 0x00008000) != 0)) { + if (!((bitField0_ & 0x00010000) != 0)) { auxiliaryNodeGroups_ = new java.util.ArrayList( auxiliaryNodeGroups_); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; } } @@ -5955,7 +6291,7 @@ public Builder addAllAuxiliaryNodeGroups( public Builder clearAuxiliaryNodeGroups() { if (auxiliaryNodeGroupsBuilder_ == null) { auxiliaryNodeGroups_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); onChanged(); } else { auxiliaryNodeGroupsBuilder_.clear(); @@ -6102,7 +6438,7 @@ public com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.Builder addAuxiliaryNodeG com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.Builder, com.google.cloud.dataproc.v1.AuxiliaryNodeGroupOrBuilder>( auxiliaryNodeGroups_, - ((bitField0_ & 0x00008000) != 0), + ((bitField0_ & 0x00010000) != 0), getParentForChildren(), isClean()); auxiliaryNodeGroups_ = null; diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java index 609a6e83d7d0..952b20fc4c3e 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java @@ -24,6 +24,36 @@ public interface ClusterConfigOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ClusterConfig) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+   * Optional. The cluster tier.
+   * 
+ * + * + * .google.cloud.dataproc.v1.ClusterConfig.ClusterTier cluster_tier = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for clusterTier. + */ + int getClusterTierValue(); + + /** + * + * + *
+   * Optional. The cluster tier.
+   * 
+ * + * + * .google.cloud.dataproc.v1.ClusterConfig.ClusterTier cluster_tier = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The clusterTier. + */ + com.google.cloud.dataproc.v1.ClusterConfig.ClusterTier getClusterTier(); + /** * * diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java index 7a68d07a6c2f..bd25441df59f 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java @@ -279,8 +279,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132(.google.cloud.dataproc.v1.ClusterMetricsB\003\340A\003\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"\203\t\n\r" - + "ClusterConfig\022\032\n\r" + + "\005value\030\002 \001(\t:\0028\001\"\265\n\n\r" + + "ClusterConfig\022N\n" + + "\014cluster_tier\030\035 \001(\01623" + + ".google.cloud.dataproc.v1.ClusterConfig.ClusterTierB\003\340A\001\022\032\n\r" + "config_bucket\030\001 \001(\tB\003\340A\001\022\030\n" + "\013temp_bucket\030\002 \001(\tB\003\340A\001\022K\n" + "\022gce_cluster_config\030\010" @@ -310,22 +312,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026dataproc_metric_config\030\027" + " \001(\0132..google.cloud.dataproc.v1.DataprocMetricConfigB\003\340A\001\022P\n" + "\025auxiliary_node_groups\030\031" - + " \003(\0132,.google.cloud.dataproc.v1.AuxiliaryNodeGroupB\003\340A\001\"\204\002\n" + + " \003(\0132,.google.cloud.dataproc.v1.AuxiliaryNodeGroupB\003\340A\001\"`\n" + + "\013ClusterTier\022\034\n" + + "\030CLUSTER_TIER_UNSPECIFIED\020\000\022\031\n" + + "\025CLUSTER_TIER_STANDARD\020\001\022\030\n" + + "\024CLUSTER_TIER_PREMIUM\020\002\"\204\002\n" + "\024VirtualClusterConfig\022\033\n" + "\016staging_bucket\030\001 \001(\tB\003\340A\001\022[\n" - + "\031kubernetes_cluster_config\030\006" - + " \001(\01321.google.cloud.dataproc.v1.KubernetesClusterConfigB\003\340A\002H\000\022Y\n" - + "\031auxiliary_services_config\030\007" - + " \001(\01321.google.cloud.dataproc.v1.AuxiliaryServicesConfigB\003\340A\001B\027\n" + + "\031kubernetes_cluster_config\030\006 \001(\01321.google.cloud.d" + + "ataproc.v1.KubernetesClusterConfigB\003\340A\002H\000\022Y\n" + + "\031auxiliary_services_config\030\007 \001(\01321.g" + + "oogle.cloud.dataproc.v1.AuxiliaryServicesConfigB\003\340A\001B\027\n" + "\025infrastructure_config\"\301\001\n" + "\027AuxiliaryServicesConfig\022H\n" - + "\020metastore_config\030\001 \001(\0132).goog" - + "le.cloud.dataproc.v1.MetastoreConfigB\003\340A\001\022\\\n" - + "\033spark_history_server_config\030\002 \001(\01322" - + ".google.cloud.dataproc.v1.SparkHistoryServerConfigB\003\340A\001\"\272\001\n" + + "\020metastore_config\030\001" + + " \001(\0132).google.cloud.dataproc.v1.MetastoreConfigB\003\340A\001\022\\\n" + + "\033spark_history_server_config\030\002" + + " \001(\01322.google.cloud.dataproc.v1.SparkHistoryServerConfigB\003\340A\001\"\272\001\n" + "\016EndpointConfig\022P\n\n" - + "http_ports\030\001" - + " \003(\01327.google.cloud.dataproc.v1.EndpointConfig.HttpPortsEntryB\003\340A\003\022$\n" + + "http_ports\030\001 \003(\01327.googl" + + "e.cloud.dataproc.v1.EndpointConfig.HttpPortsEntryB\003\340A\003\022$\n" + "\027enable_http_port_access\030\002 \001(\010B\003\340A\001\0320\n" + "\016HttpPortsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -341,22 +347,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013network_uri\030\002 \001(\tB\003\340A\001\022\033\n" + "\016subnetwork_uri\030\006 \001(\tB\003\340A\001\022\"\n" + "\020internal_ip_only\030\007 \001(\010B\003\340A\001H\000\210\001\001\022k\n" - + "\032private_ipv6_google_access\030\014 \001(\0162B.google.cloud.dataproc." - + "v1.GceClusterConfig.PrivateIpv6GoogleAccessB\003\340A\001\022\034\n" + + "\032private_ipv6_google_access\030\014 \001(\0162B.goog" + + "le.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccessB\003\340A\001\022\034\n" + "\017service_account\030\010 \001(\tB\003\340A\001\022#\n" + "\026service_account_scopes\030\003 \003(\tB\003\340A\001\022\014\n" + "\004tags\030\004 \003(\t\022O\n" - + "\010metadata\030\005 \003(\01328.google.clo" - + "ud.dataproc.v1.GceClusterConfig.MetadataEntryB\003\340A\001\022P\n" - + "\024reservation_affinity\030\013 \001(\013" - + "2-.google.cloud.dataproc.v1.ReservationAffinityB\003\340A\001\022M\n" + + "\010metadata\030\005" + + " \003(\01328.google.cloud.dataproc.v1.GceClusterConfig.MetadataEntryB\003\340A\001\022P\n" + + "\024reservation_affinity\030\013" + + " \001(\0132-.google.cloud.dataproc.v1.ReservationAffinityB\003\340A\001\022M\n" + "\023node_group_affinity\030\r" + " \001(\0132+.google.cloud.dataproc.v1.NodeGroupAffinityB\003\340A\001\022W\n" - + "\030shielded_instance_config\030\016" - + " \001(\01320.google.cloud.dataproc.v1.ShieldedInstanceConfigB\003\340A\001\022_\n" - + "\034confidential_instance_config\030\017" - + " \001(\01324.google.cloud.dataproc.v1.ConfidentialInstanceConfigB\003\340A\001\032/\n" - + "\r" + + "\030shielded_instance_config\030\016 \001(\01320.google.cloud.d" + + "ataproc.v1.ShieldedInstanceConfigB\003\340A\001\022_\n" + + "\034confidential_instance_config\030\017 \001(\01324.g" + + "oogle.cloud.dataproc.v1.ConfidentialInstanceConfigB\003\340A\001\032/\n\r" + "MetadataEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\203\001\n" @@ -389,12 +394,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132$.google.cloud.dataproc.v1.DiskConfigB\003\340A\001\022\033\n" + "\016is_preemptible\030\006 \001(\010B\003\340A\003\022Y\n" + "\016preemptibility\030\n" - + " \001(\0162<.google.c" - + "loud.dataproc.v1.InstanceGroupConfig.PreemptibilityB\003\340A\001\022O\n" + + " \001(\0162<.google.cloud.dataproc.v1.InstanceGroupConfig.PreemptibilityB\003\340A\001\022O\n" + "\024managed_group_config\030\007" + " \001(\0132,.google.cloud.dataproc.v1.ManagedGroupConfigB\003\340A\003\022F\n" - + "\014accelerators\030\010 \003(\0132" - + "+.google.cloud.dataproc.v1.AcceleratorConfigB\003\340A\001\022\035\n" + + "\014accelerators\030\010" + + " \003(\0132+.google.cloud.dataproc.v1.AcceleratorConfigB\003\340A\001\022\035\n" + "\020min_cpu_platform\030\t \001(\tB\003\340A\001\022\036\n" + "\021min_num_instances\030\014 \001(\005B\003\340A\001\022]\n" + "\033instance_flexibility_policy\030\r" @@ -420,12 +424,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033instance_group_manager_name\030\002 \001(\tB\003\340A\003\022\'\n" + "\032instance_group_manager_uri\030\003 \001(\tB\003\340A\003\"\345\005\n" + "\031InstanceFlexibilityPolicy\022m\n" - + "\026provisioning_model_mix\030\001 \001(\0132H.goog" - + "le.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMixB\003\340A\001\022k\n" - + "\027instance_selection_list\030\002 \003(\0132E.google.cloud" - + ".dataproc.v1.InstanceFlexibilityPolicy.InstanceSelectionB\003\340A\001\022t\n" - + "\032instance_selection_results\030\003 \003(\0132K.google.cloud.datapro" - + "c.v1.InstanceFlexibilityPolicy.InstanceSelectionResultB\003\340A\003\032\274\001\n" + + "\026provisioning_model_mix\030\001 \001(\0132H.google.cloud.dataproc.v1.I" + + "nstanceFlexibilityPolicy.ProvisioningModelMixB\003\340A\001\022k\n" + + "\027instance_selection_list\030\002 \003(\0132E.google.cloud.dataproc.v1.InstanceF" + + "lexibilityPolicy.InstanceSelectionB\003\340A\001\022t\n" + + "\032instance_selection_results\030\003 \003(\0132K.go" + + "ogle.cloud.dataproc.v1.InstanceFlexibili" + + "tyPolicy.InstanceSelectionResultB\003\340A\003\032\274\001\n" + "\024ProvisioningModelMix\022(\n" + "\026standard_capacity_base\030\001 \001(\005B\003\340A\001H\000\210\001\001\0226\n" + "$standard_capacity_percent_above_base\030\002" @@ -454,37 +459,37 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033_boot_disk_provisioned_iopsB#\n" + "!_boot_disk_provisioned_throughput\"n\n" + "\022AuxiliaryNodeGroup\022<\n\n" - + "node_group\030\001" - + " \001(\0132#.google.cloud.dataproc.v1.NodeGroupB\003\340A\002\022\032\n\r" + + "node_group\030\001 \001(\0132#" + + ".google.cloud.dataproc.v1.NodeGroupB\003\340A\002\022\032\n\r" + "node_group_id\030\002 \001(\tB\003\340A\001\"\275\003\n" + "\tNodeGroup\022\014\n" + "\004name\030\001 \001(\t\022<\n" - + "\005roles\030\002" - + " \003(\0162(.google.cloud.dataproc.v1.NodeGroup.RoleB\003\340A\002\022M\n" + + "\005roles\030\002 \003(\0162(.google" + + ".cloud.dataproc.v1.NodeGroup.RoleB\003\340A\002\022M\n" + "\021node_group_config\030\003" + " \001(\0132-.google.cloud.dataproc.v1.InstanceGroupConfigB\003\340A\001\022D\n" - + "\006labels\030\004 \003(\0132/.go" - + "ogle.cloud.dataproc.v1.NodeGroup.LabelsEntryB\003\340A\001\032-\n" + + "\006labels\030\004" + + " \003(\0132/.google.cloud.dataproc.v1.NodeGroup.LabelsEntryB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"(\n" + "\004Role\022\024\n" + "\020ROLE_UNSPECIFIED\020\000\022\n\n" + "\006DRIVER\020\001:v\352As\n" - + "!dataproc.googleapis.com/NodeGroup\022Nprojects/{project}/r" - + "egions/{region}/clusters/{cluster}/nodeGroups/{node_group}\"s\n" + + "!dataproc.googleapis.com/NodeGroup\022Npr" + + "ojects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{node_group}\"s\n" + "\030NodeInitializationAction\022\034\n" + "\017executable_file\030\001 \001(\tB\003\340A\002\0229\n" + "\021execution_timeout\030\002" + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\"\326\003\n\r" + "ClusterStatus\022A\n" - + "\005state\030\001" - + " \001(\0162-.google.cloud.dataproc.v1.ClusterStatus.StateB\003\340A\003\022\026\n" + + "\005state\030\001 \001(\0162-.google.clou" + + "d.dataproc.v1.ClusterStatus.StateB\003\340A\003\022\026\n" + "\006detail\030\002 \001(\tB\006\340A\003\340A\001\0229\n" + "\020state_start_time\030\003" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022G\n" - + "\010substate\030\004 \001(" - + "\01620.google.cloud.dataproc.v1.ClusterStatus.SubstateB\003\340A\003\"\247\001\n" + + "\010substate\030\004" + + " \001(\01620.google.cloud.dataproc.v1.ClusterStatus.SubstateB\003\340A\003\"\247\001\n" + "\005State\022\013\n" + "\007UNKNOWN\020\000\022\014\n" + "\010CREATING\020\001\022\013\n" @@ -526,17 +531,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022tgt_lifetime_hours\030\016 \001(\005B\003\340A\001\022\022\n" + "\005realm\030\017 \001(\tB\003\340A\001\"\306\001\n" + "\016IdentityConfig\022r\n" - + "\034user_service_account_mapping\030\001 \003(\0132" - + "G.google.cloud.dataproc.v1.IdentityConfig.UserServiceAccountMappingEntryB\003\340A\002\032@\n" + + "\034user_service_account_mapping\030\001 \003(\0132G.google.cloud.datapro" + + "c.v1.IdentityConfig.UserServiceAccountMappingEntryB\003\340A\002\032@\n" + "\036UserServiceAccountMappingEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\371\001\n" + "\016SoftwareConfig\022\032\n\r" + "image_version\030\001 \001(\tB\003\340A\001\022Q\n\n" - + "properties\030\002" - + " \003(\01328.google.cloud.dataproc.v1.SoftwareConfig.PropertiesEntryB\003\340A\001\022E\n" - + "\023optional_components\030\003" - + " \003(\0162#.google.cloud.dataproc.v1.ComponentB\003\340A\001\0321\n" + + "properties\030\002 \003(\01328.google.cl" + + "oud.dataproc.v1.SoftwareConfig.PropertiesEntryB\003\340A\001\022E\n" + + "\023optional_components\030\003 \003(\016" + + "2#.google.cloud.dataproc.v1.ComponentB\003\340A\001\0321\n" + "\017PropertiesEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\203\002\n" @@ -554,22 +559,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032dataproc_metastore_service\030\001 \001(\tB(\340A\002\372A\"\n" + " metastore.googleapis.com/Service\"\232\002\n" + "\016ClusterMetrics\022O\n" - + "\014hdfs_metrics\030\001 \003(\01329.go" - + "ogle.cloud.dataproc.v1.ClusterMetrics.HdfsMetricsEntry\022O\n" - + "\014yarn_metrics\030\002 \003(\01329.g" - + "oogle.cloud.dataproc.v1.ClusterMetrics.YarnMetricsEntry\0322\n" + + "\014hdfs_metrics\030\001" + + " \003(\01329.google.cloud.dataproc.v1.ClusterMetrics.HdfsMetricsEntry\022O\n" + + "\014yarn_metrics\030\002" + + " \003(\01329.google.cloud.dataproc.v1.ClusterMetrics.YarnMetricsEntry\0322\n" + "\020HdfsMetricsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\003:\0028\001\0322\n" + "\020YarnMetricsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n" + + "\003key\030\001 \001(\t\022\r" + + "\n" + "\005value\030\002 \001(\003:\0028\001\"\235\003\n" + "\024DataprocMetricConfig\022K\n" - + "\007metrics\030\001 \003(" - + "\01325.google.cloud.dataproc.v1.DataprocMetricConfig.MetricB\003\340A\002\032\200\001\n" + + "\007metrics\030\001 \003(\01325.google.cloud.datap" + + "roc.v1.DataprocMetricConfig.MetricB\003\340A\002\032\200\001\n" + "\006Metric\022W\n\r" - + "metric_source\030\001 \001(\0162;.google.cloud.dataproc." - + "v1.DataprocMetricConfig.MetricSourceB\003\340A\002\022\035\n" + + "metric_source\030\001 \001(\0162;.goog" + + "le.cloud.dataproc.v1.DataprocMetricConfig.MetricSourceB\003\340A\002\022\035\n" + "\020metric_overrides\030\002 \003(\tB\003\340A\001\"\264\001\n" + "\014MetricSource\022\035\n" + "\031METRIC_SOURCE_UNSPECIFIED\020\000\022\035\n" @@ -584,8 +590,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024CreateClusterRequest\022\027\n\n" + "project_id\030\001 \001(\tB\003\340A\002\022\023\n" + "\006region\030\003 \001(\tB\003\340A\002\0227\n" - + "\007cluster\030\002" - + " \001(\0132!.google.cloud.dataproc.v1.ClusterB\003\340A\002\022\027\n\n" + + "\007cluster\030\002 \001(" + + "\0132!.google.cloud.dataproc.v1.ClusterB\003\340A\002\022\027\n\n" + "request_id\030\004 \001(\tB\003\340A\001\022V\n" + " action_on_failed_primary_workers\030\005" + " \001(\0162\'.google.cloud.dataproc.v1.FailureActionB\003\340A\001\"\256\002\n" @@ -636,8 +642,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\003 \001(\tB\003\340A\002\022\031\n" + "\014cluster_name\030\002 \001(\tB\003\340A\002\022\034\n" + "\017tarball_gcs_dir\030\004 \001(\tB\003\340A\001\022[\n" - + "\016tarball_access\030\005 \001(\0162>.google.cl" - + "oud.dataproc.v1.DiagnoseClusterRequest.TarballAccessB\003\340A\001\0226\n" + + "\016tarball_access\030\005" + + " \001(\0162>.google.cloud.dataproc.v1.DiagnoseClusterRequest.TarballAccessB\003\340A\001\0226\n" + "\022diagnosis_interval\030\006" + " \001(\0132\025.google.type.IntervalB\003\340A\001\022\021\n" + "\004jobs\030\n" @@ -650,8 +656,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026DiagnoseClusterResults\022\027\n\n" + "output_uri\030\001 \001(\tB\003\340A\003\"\370\001\n" + "\023ReservationAffinity\022Y\n" - + "\030consume_reservation_type\030\001 \001(\01622.google.cloud.dat" - + "aproc.v1.ReservationAffinity.TypeB\003\340A\001\022\020\n" + + "\030consume_reservation_type\030\001 \001(\0162" + + "2.google.cloud.dataproc.v1.ReservationAffinity.TypeB\003\340A\001\022\020\n" + "\003key\030\002 \001(\tB\003\340A\001\022\023\n" + "\006values\030\003 \003(\tB\003\340A\001\"_\n" + "\004Type\022\024\n" @@ -659,54 +665,54 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016NO_RESERVATION\020\001\022\023\n" + "\017ANY_RESERVATION\020\002\022\030\n" + "\024SPECIFIC_RESERVATION\020\0032\344\020\n" - + "\021ClusterController\022\200\002\n" - + "\r" - + "CreateCluster\022..google.cloud.dataproc.v" - + "1.CreateClusterRequest\032\035.google.longrunning.Operation\"\237\001\312A<\n" - + "\007Cluster\0221google.cloud.dataproc.v1.ClusterOperationMetadata\332" - + "A\031project_id,region,cluster\202\323\344\223\002>\"3/v1/p" - + "rojects/{project_id}/regions/{region}/clusters:\007cluster\022\250\002\n\r" - + "UpdateCluster\022..goog" - + "le.cloud.dataproc.v1.UpdateClusterRequest\032\035.google.longrunning.Operation\"\307\001\312A<\n" - + "\007Cluster\0221google.cloud.dataproc.v1.Cluste" - + "rOperationMetadata\332A2project_id,region,c" - + "luster_name,cluster,update_mask\202\323\344\223\002M2B/" - + "v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}:\007cluster\022\356\001\n" - + "\013StopCluster\022,.google.cloud.dataproc.v1.St" - + "opClusterRequest\032\035.google.longrunning.Operation\"\221\001\312A<\n" - + "\007Cluster\0221google.cloud.dat" - + "aproc.v1.ClusterOperationMetadata\202\323\344\223\002L\"" - + "G/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}:stop:\001*\022\361\001\n" - + "\014StartCluster\022-.google.cloud.dataproc.v1." - + "StartClusterRequest\032\035.google.longrunning.Operation\"\222\001\312A<\n" - + "\007Cluster\0221google.cloud.dataproc.v1.ClusterOperationMetadata\202\323\344\223" - + "\002M\"H/v1/projects/{project_id}/regions/{r" - + "egion}/clusters/{cluster_name}:start:\001*\022\231\002\n\r" - + "DeleteCluster\022..google.cloud.datapro" - + "c.v1.DeleteClusterRequest\032\035.google.longrunning.Operation\"\270\001\312AJ\n" - + "\025google.protobuf.Empty\0221google.cloud.dataproc.v1.ClusterO" - + "perationMetadata\332A\036project_id,region,clu" - + "ster_name\202\323\344\223\002D*B/v1/projects/{project_i" - + "d}/regions/{region}/clusters/{cluster_name}\022\311\001\n\n" - + "GetCluster\022+.google.cloud.dataproc.v1.GetClusterRequest\032!.google.cloud.d" - + "ataproc.v1.Cluster\"k\332A\036project_id,region" - + ",cluster_name\202\323\344\223\002D\022B/v1/projects/{proje" - + "ct_id}/regions/{region}/clusters/{cluster_name}\022\331\001\n" - + "\014ListClusters\022-.google.cloud.dataproc.v1.ListClustersRequest\032..google" - + ".cloud.dataproc.v1.ListClustersResponse\"" - + "j\332A\021project_id,region\332A\030project_id,regio" - + "n,filter\202\323\344\223\0025\0223/v1/projects/{project_id}/regions/{region}/clusters\022\252\002\n" - + "\017DiagnoseCluster\0220.google.cloud.dataproc.v1.Diagn" - + "oseClusterRequest\032\035.google.longrunning.Operation\"\305\001\312AK\n" - + "\026DiagnoseClusterResults\0221google.cloud.dataproc.v1.ClusterOperatio" - + "nMetadata\332A\036project_id,region,cluster_na" - + "me\202\323\344\223\002P\"K/v1/projects/{project_id}/regi" - + "ons/{region}/clusters/{cluster_name}:dia" - + "gnose:\001*\032K\312A\027dataproc.googleapis.com\322A.h" - + "ttps://www.googleapis.com/auth/cloud-platformBl\n" + + "\021ClusterController\022\200\002\n\r" + + "CreateCluster\022..googl" + + "e.cloud.dataproc.v1.CreateClusterRequest\032\035.google.longrunning.Operation\"\237\001\312A<\n" + + "\007Cluster\0221google.cloud.dataproc.v1.Cluster" + + "OperationMetadata\332A\031project_id,region,cl" + + "uster\202\323\344\223\002>\"3/v1/projects/{project_id}/regions/{region}/clusters:\007cluster\022\250\002\n\r" + + "UpdateCluster\022..google.cloud.dataproc.v1.U" + + "pdateClusterRequest\032\035.google.longrunning.Operation\"\307\001\312A<\n" + + "\007Cluster\0221google.cloud.dataproc.v1.ClusterOperationMetadata\332A2p" + + "roject_id,region,cluster_name,cluster,up" + + "date_mask\202\323\344\223\002M2B/v1/projects/{project_i" + + "d}/regions/{region}/clusters/{cluster_name}:\007cluster\022\356\001\n" + + "\013StopCluster\022,.google.cl" + + "oud.dataproc.v1.StopClusterRequest\032\035.google.longrunning.Operation\"\221\001\312A<\n" + + "\007Cluster\0221google.cloud.dataproc.v1.ClusterOperat" + + "ionMetadata\202\323\344\223\002L\"G/v1/projects/{project" + + "_id}/regions/{region}/clusters/{cluster_name}:stop:\001*\022\361\001\n" + + "\014StartCluster\022-.google." + + "cloud.dataproc.v1.StartClusterRequest\032\035.google.longrunning.Operation\"\222\001\312A<\n" + + "\007Cluster\0221google.cloud.dataproc.v1.ClusterOpe" + + "rationMetadata\202\323\344\223\002M\"H/v1/projects/{proj" + + "ect_id}/regions/{region}/clusters/{cluster_name}:start:\001*\022\231\002\n\r" + + "DeleteCluster\022..google.cloud.dataproc.v1.DeleteClusterRequ" + + "est\032\035.google.longrunning.Operation\"\270\001\312AJ\n" + + "\025google.protobuf.Empty\0221google.cloud.da" + + "taproc.v1.ClusterOperationMetadata\332A\036pro" + + "ject_id,region,cluster_name\202\323\344\223\002D*B/v1/p" + + "rojects/{project_id}/regions/{region}/clusters/{cluster_name}\022\311\001\n\n" + + "GetCluster\022+.google.cloud.dataproc.v1.GetClusterReques" + + "t\032!.google.cloud.dataproc.v1.Cluster\"k\332A" + + "\036project_id,region,cluster_name\202\323\344\223\002D\022B/" + + "v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}\022\331\001\n" + + "\014ListClusters\022-.google.cloud.dataproc.v1.ListCluste" + + "rsRequest\032..google.cloud.dataproc.v1.Lis" + + "tClustersResponse\"j\332A\021project_id,region\332" + + "A\030project_id,region,filter\202\323\344\223\0025\0223/v1/pr" + + "ojects/{project_id}/regions/{region}/clusters\022\252\002\n" + + "\017DiagnoseCluster\0220.google.cloud" + + ".dataproc.v1.DiagnoseClusterRequest\032\035.google.longrunning.Operation\"\305\001\312AK\n" + + "\026DiagnoseClusterResults\0221google.cloud.dataproc." + + "v1.ClusterOperationMetadata\332A\036project_id" + + ",region,cluster_name\202\323\344\223\002P\"K/v1/projects" + + "/{project_id}/regions/{region}/clusters/" + + "{cluster_name}:diagnose:\001*\032K\312A\027dataproc." + + "googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformBl\n" + "\034com.google.cloud.dataproc.v1B\r" - + "ClustersProtoP\001Z;cloud.google.com/go/data" - + "proc/v2/apiv1/dataprocpb;dataprocpbb\006proto3" + + "ClustersProtoP\001Z;cloud.google.com/go/dataproc/v2/apiv1/dataproc" + + "pb;dataprocpbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -756,6 +762,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_ClusterConfig_descriptor, new java.lang.String[] { + "ClusterTier", "ConfigBucket", "TempBucket", "GceClusterConfig", diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto index 2015e468a1d3..c48db0db367e 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto @@ -215,6 +215,21 @@ message Cluster { // The cluster config. message ClusterConfig { + // The cluster tier. + enum ClusterTier { + // Not set. Works the same as CLUSTER_TIER_STANDARD. + CLUSTER_TIER_UNSPECIFIED = 0; + + // Standard Dataproc cluster. + CLUSTER_TIER_STANDARD = 1; + + // Premium Dataproc cluster. + CLUSTER_TIER_PREMIUM = 2; + } + + // Optional. The cluster tier. + ClusterTier cluster_tier = 29 [(google.api.field_behavior) = OPTIONAL]; + // Optional. A Cloud Storage bucket used to stage job // dependencies, config files, and job driver console output. // If you do not specify a staging bucket, Cloud diff --git a/java-datastream/CHANGELOG.md b/java-datastream/CHANGELOG.md index dc87c8d31119..c7a230cba342 100644 --- a/java-datastream/CHANGELOG.md +++ b/java-datastream/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 1.67.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 1.66.0 (2025-06-25) ### Dependencies diff --git a/java-datastream/README.md b/java-datastream/README.md index 0a18e5138fa7..c59bfa18666a 100644 --- a/java-datastream/README.md +++ b/java-datastream/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-datastream - 1.65.0 + 1.66.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datastream:1.65.0' +implementation 'com.google.cloud:google-cloud-datastream:1.66.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datastream" % "1.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datastream" % "1.66.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.65.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datastream/1.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-datastream/google-cloud-datastream-bom/pom.xml b/java-datastream/google-cloud-datastream-bom/pom.xml index e3a2a74b8594..9043840096e4 100644 --- a/java-datastream/google-cloud-datastream-bom/pom.xml +++ b/java-datastream/google-cloud-datastream-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-datastream-bom - 1.66.0 + 1.67.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-datastream - 1.66.0 + 1.67.0 com.google.api.grpc grpc-google-cloud-datastream-v1alpha1 - 0.71.0 + 0.72.0 com.google.api.grpc grpc-google-cloud-datastream-v1 - 1.66.0 + 1.67.0 com.google.api.grpc proto-google-cloud-datastream-v1alpha1 - 0.71.0 + 0.72.0 com.google.api.grpc proto-google-cloud-datastream-v1 - 1.66.0 + 1.67.0
diff --git a/java-datastream/google-cloud-datastream/pom.xml b/java-datastream/google-cloud-datastream/pom.xml index f5a41ece850f..7f4933f8334c 100644 --- a/java-datastream/google-cloud-datastream/pom.xml +++ b/java-datastream/google-cloud-datastream/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-datastream - 1.66.0 + 1.67.0 jar Google Datastream Datastream 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. com.google.cloud google-cloud-datastream-parent - 1.66.0 + 1.67.0 google-cloud-datastream diff --git a/java-datastream/grpc-google-cloud-datastream-v1/pom.xml b/java-datastream/grpc-google-cloud-datastream-v1/pom.xml index 559df86267ef..f46b7e14a99e 100644 --- a/java-datastream/grpc-google-cloud-datastream-v1/pom.xml +++ b/java-datastream/grpc-google-cloud-datastream-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-datastream-v1 - 1.66.0 + 1.67.0 grpc-google-cloud-datastream-v1 GRPC library for google-cloud-datastream com.google.cloud google-cloud-datastream-parent - 1.66.0 + 1.67.0 diff --git a/java-datastream/grpc-google-cloud-datastream-v1alpha1/pom.xml b/java-datastream/grpc-google-cloud-datastream-v1alpha1/pom.xml index 4e138ef99177..13581bd29624 100644 --- a/java-datastream/grpc-google-cloud-datastream-v1alpha1/pom.xml +++ b/java-datastream/grpc-google-cloud-datastream-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-datastream-v1alpha1 - 0.71.0 + 0.72.0 grpc-google-cloud-datastream-v1alpha1 GRPC library for google-cloud-datastream com.google.cloud google-cloud-datastream-parent - 1.66.0 + 1.67.0 diff --git a/java-datastream/pom.xml b/java-datastream/pom.xml index b0a9d619a50f..f4b90859e480 100644 --- a/java-datastream/pom.xml +++ b/java-datastream/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-datastream-parent pom - 1.66.0 + 1.67.0 Google Datastream Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-datastream - 1.66.0 + 1.67.0 com.google.api.grpc proto-google-cloud-datastream-v1 - 1.66.0 + 1.67.0 com.google.api.grpc grpc-google-cloud-datastream-v1 - 1.66.0 + 1.67.0 com.google.api.grpc grpc-google-cloud-datastream-v1alpha1 - 0.71.0 + 0.72.0 com.google.api.grpc proto-google-cloud-datastream-v1alpha1 - 0.71.0 + 0.72.0 diff --git a/java-datastream/proto-google-cloud-datastream-v1/pom.xml b/java-datastream/proto-google-cloud-datastream-v1/pom.xml index b3004e058f66..33642ecb29e5 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/pom.xml +++ b/java-datastream/proto-google-cloud-datastream-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-datastream-v1 - 1.66.0 + 1.67.0 proto-google-cloud-datastream-v1 Proto library for google-cloud-datastream com.google.cloud google-cloud-datastream-parent - 1.66.0 + 1.67.0 diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/pom.xml b/java-datastream/proto-google-cloud-datastream-v1alpha1/pom.xml index 35551a4afc25..55c59322dfa5 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/pom.xml +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-datastream-v1alpha1 - 0.71.0 + 0.72.0 proto-google-cloud-datastream-v1alpha1 Proto library for google-cloud-datastream com.google.cloud google-cloud-datastream-parent - 1.66.0 + 1.67.0 diff --git a/java-deploy/CHANGELOG.md b/java-deploy/CHANGELOG.md index 6bc3c70f412c..0e62e74a7436 100644 --- a/java-deploy/CHANGELOG.md +++ b/java-deploy/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 1.66.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 1.65.0 (2025-06-25) ### Dependencies diff --git a/java-deploy/README.md b/java-deploy/README.md index 916109291a0f..d84007234dd9 100644 --- a/java-deploy/README.md +++ b/java-deploy/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-deploy - 1.64.0 + 1.65.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-deploy:1.64.0' +implementation 'com.google.cloud:google-cloud-deploy:1.65.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-deploy" % "1.64.0" +libraryDependencies += "com.google.cloud" % "google-cloud-deploy" % "1.65.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.64.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-deploy/1.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-deploy/google-cloud-deploy-bom/pom.xml b/java-deploy/google-cloud-deploy-bom/pom.xml index 300bbdd8fb8d..9d332f37d909 100644 --- a/java-deploy/google-cloud-deploy-bom/pom.xml +++ b/java-deploy/google-cloud-deploy-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-deploy-bom - 1.65.0 + 1.66.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-deploy - 1.65.0 + 1.66.0 com.google.api.grpc grpc-google-cloud-deploy-v1 - 1.65.0 + 1.66.0 com.google.api.grpc proto-google-cloud-deploy-v1 - 1.65.0 + 1.66.0 diff --git a/java-deploy/google-cloud-deploy/pom.xml b/java-deploy/google-cloud-deploy/pom.xml index ec676445bd09..fa34d46407e0 100644 --- a/java-deploy/google-cloud-deploy/pom.xml +++ b/java-deploy/google-cloud-deploy/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-deploy - 1.65.0 + 1.66.0 jar Google Google CLoud Deploy Google CLoud Deploy is a service that automates delivery of your applications to a series of target environments in a defined sequence com.google.cloud google-cloud-deploy-parent - 1.65.0 + 1.66.0 google-cloud-deploy diff --git a/java-deploy/grpc-google-cloud-deploy-v1/pom.xml b/java-deploy/grpc-google-cloud-deploy-v1/pom.xml index 443bf6a85f5a..3159535afbf6 100644 --- a/java-deploy/grpc-google-cloud-deploy-v1/pom.xml +++ b/java-deploy/grpc-google-cloud-deploy-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-deploy-v1 - 1.65.0 + 1.66.0 grpc-google-cloud-deploy-v1 GRPC library for google-cloud-deploy com.google.cloud google-cloud-deploy-parent - 1.65.0 + 1.66.0 diff --git a/java-deploy/pom.xml b/java-deploy/pom.xml index 3a6f102bb58e..47266ef5d084 100644 --- a/java-deploy/pom.xml +++ b/java-deploy/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-deploy-parent pom - 1.65.0 + 1.66.0 Google Google CLoud Deploy Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-deploy - 1.65.0 + 1.66.0 com.google.api.grpc grpc-google-cloud-deploy-v1 - 1.65.0 + 1.66.0 com.google.api.grpc proto-google-cloud-deploy-v1 - 1.65.0 + 1.66.0 diff --git a/java-deploy/proto-google-cloud-deploy-v1/pom.xml b/java-deploy/proto-google-cloud-deploy-v1/pom.xml index 47f7abf54791..e55a60817d7b 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/pom.xml +++ b/java-deploy/proto-google-cloud-deploy-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-deploy-v1 - 1.65.0 + 1.66.0 proto-google-cloud-deploy-v1 Proto library for google-cloud-deploy com.google.cloud google-cloud-deploy-parent - 1.65.0 + 1.66.0 diff --git a/java-developerconnect/CHANGELOG.md b/java-developerconnect/CHANGELOG.md index c409f3b2fcda..aec85d268705 100644 --- a/java-developerconnect/CHANGELOG.md +++ b/java-developerconnect/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.25.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.24.0 (2025-06-25) ### Features diff --git a/java-developerconnect/README.md b/java-developerconnect/README.md index efff8764cdfb..228ab53d18c7 100644 --- a/java-developerconnect/README.md +++ b/java-developerconnect/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-developerconnect - 0.23.0 + 0.24.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-developerconnect:0.23.0' +implementation 'com.google.cloud:google-cloud-developerconnect:0.24.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-developerconnect" % "0.23.0" +libraryDependencies += "com.google.cloud" % "google-cloud-developerconnect" % "0.24.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-developerconnect.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-developerconnect/0.23.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-developerconnect/0.24.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/google-cloud-developerconnect-bom/pom.xml b/java-developerconnect/google-cloud-developerconnect-bom/pom.xml index dc26fdc89fd1..00fbfdbabb12 100644 --- a/java-developerconnect/google-cloud-developerconnect-bom/pom.xml +++ b/java-developerconnect/google-cloud-developerconnect-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-developerconnect-bom - 0.24.0 + 0.25.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-developerconnect - 0.24.0 + 0.25.0 com.google.api.grpc grpc-google-cloud-developerconnect-v1 - 0.24.0 + 0.25.0 com.google.api.grpc proto-google-cloud-developerconnect-v1 - 0.24.0 + 0.25.0 diff --git a/java-developerconnect/google-cloud-developerconnect/pom.xml b/java-developerconnect/google-cloud-developerconnect/pom.xml index 108fa2a62868..1ad52a4e9962 100644 --- a/java-developerconnect/google-cloud-developerconnect/pom.xml +++ b/java-developerconnect/google-cloud-developerconnect/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-developerconnect - 0.24.0 + 0.25.0 jar Google Developer Connect API Developer Connect API Connect third-party source code management to Google com.google.cloud google-cloud-developerconnect-parent - 0.24.0 + 0.25.0 google-cloud-developerconnect diff --git a/java-developerconnect/grpc-google-cloud-developerconnect-v1/pom.xml b/java-developerconnect/grpc-google-cloud-developerconnect-v1/pom.xml index 719c426d8bec..841c3b3d2a33 100644 --- a/java-developerconnect/grpc-google-cloud-developerconnect-v1/pom.xml +++ b/java-developerconnect/grpc-google-cloud-developerconnect-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-developerconnect-v1 - 0.24.0 + 0.25.0 grpc-google-cloud-developerconnect-v1 GRPC library for google-cloud-developerconnect com.google.cloud google-cloud-developerconnect-parent - 0.24.0 + 0.25.0 diff --git a/java-developerconnect/pom.xml b/java-developerconnect/pom.xml index 2cfb70368708..09ac5921cfe2 100644 --- a/java-developerconnect/pom.xml +++ b/java-developerconnect/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-developerconnect-parent pom - 0.24.0 + 0.25.0 Google Developer Connect API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-developerconnect - 0.24.0 + 0.25.0 com.google.api.grpc grpc-google-cloud-developerconnect-v1 - 0.24.0 + 0.25.0 com.google.api.grpc proto-google-cloud-developerconnect-v1 - 0.24.0 + 0.25.0 diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/pom.xml b/java-developerconnect/proto-google-cloud-developerconnect-v1/pom.xml index d587a2db454f..8ad2c1263499 100644 --- a/java-developerconnect/proto-google-cloud-developerconnect-v1/pom.xml +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-developerconnect-v1 - 0.24.0 + 0.25.0 proto-google-cloud-developerconnect-v1 Proto library for google-cloud-developerconnect com.google.cloud google-cloud-developerconnect-parent - 0.24.0 + 0.25.0 diff --git a/java-devicestreaming/CHANGELOG.md b/java-devicestreaming/CHANGELOG.md index ee60fecce738..fdfa8e289966 100644 --- a/java-devicestreaming/CHANGELOG.md +++ b/java-devicestreaming/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.8.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.7.0 (2025-06-25) ### Dependencies diff --git a/java-devicestreaming/README.md b/java-devicestreaming/README.md index e44b450f230c..384d624c2d92 100644 --- a/java-devicestreaming/README.md +++ b/java-devicestreaming/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-devicestreaming - 0.6.0 + 0.7.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-devicestreaming:0.6.0' +implementation 'com.google.cloud:google-cloud-devicestreaming:0.7.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-devicestreaming" % "0.6.0" +libraryDependencies += "com.google.cloud" % "google-cloud-devicestreaming" % "0.7.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-devicestreaming.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-devicestreaming/0.6.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-devicestreaming/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-devicestreaming/google-cloud-devicestreaming-bom/pom.xml b/java-devicestreaming/google-cloud-devicestreaming-bom/pom.xml index a25c270bd054..c95322acd42c 100644 --- a/java-devicestreaming/google-cloud-devicestreaming-bom/pom.xml +++ b/java-devicestreaming/google-cloud-devicestreaming-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-devicestreaming-bom - 0.7.0 + 0.8.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-devicestreaming - 0.7.0 + 0.8.0 com.google.api.grpc grpc-google-cloud-devicestreaming-v1 - 0.7.0 + 0.8.0 com.google.api.grpc proto-google-cloud-devicestreaming-v1 - 0.7.0 + 0.8.0 diff --git a/java-devicestreaming/google-cloud-devicestreaming/pom.xml b/java-devicestreaming/google-cloud-devicestreaming/pom.xml index 5d24e6a17ed6..c1aeba37c7d2 100644 --- a/java-devicestreaming/google-cloud-devicestreaming/pom.xml +++ b/java-devicestreaming/google-cloud-devicestreaming/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-devicestreaming - 0.7.0 + 0.8.0 jar Google Device Streaming API Device Streaming API The Cloud API for device streaming usage. com.google.cloud google-cloud-devicestreaming-parent - 0.7.0 + 0.8.0 google-cloud-devicestreaming diff --git a/java-devicestreaming/grpc-google-cloud-devicestreaming-v1/pom.xml b/java-devicestreaming/grpc-google-cloud-devicestreaming-v1/pom.xml index 5730a02a2208..1084b6c6dfce 100644 --- a/java-devicestreaming/grpc-google-cloud-devicestreaming-v1/pom.xml +++ b/java-devicestreaming/grpc-google-cloud-devicestreaming-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-devicestreaming-v1 - 0.7.0 + 0.8.0 grpc-google-cloud-devicestreaming-v1 GRPC library for google-cloud-devicestreaming com.google.cloud google-cloud-devicestreaming-parent - 0.7.0 + 0.8.0 diff --git a/java-devicestreaming/pom.xml b/java-devicestreaming/pom.xml index 4a9c00394f64..5c5e3a1730d4 100644 --- a/java-devicestreaming/pom.xml +++ b/java-devicestreaming/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-devicestreaming-parent pom - 0.7.0 + 0.8.0 Google Device Streaming API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-devicestreaming - 0.7.0 + 0.8.0 com.google.api.grpc grpc-google-cloud-devicestreaming-v1 - 0.7.0 + 0.8.0 com.google.api.grpc proto-google-cloud-devicestreaming-v1 - 0.7.0 + 0.8.0 diff --git a/java-devicestreaming/proto-google-cloud-devicestreaming-v1/pom.xml b/java-devicestreaming/proto-google-cloud-devicestreaming-v1/pom.xml index 8bd5dc0cc3ea..e4c9ab0b0855 100644 --- a/java-devicestreaming/proto-google-cloud-devicestreaming-v1/pom.xml +++ b/java-devicestreaming/proto-google-cloud-devicestreaming-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-devicestreaming-v1 - 0.7.0 + 0.8.0 proto-google-cloud-devicestreaming-v1 Proto library for google-cloud-devicestreaming com.google.cloud google-cloud-devicestreaming-parent - 0.7.0 + 0.8.0 diff --git a/java-dialogflow-cx/CHANGELOG.md b/java-dialogflow-cx/CHANGELOG.md index 5d86213b11e0..10285a72a3cc 100644 --- a/java-dialogflow-cx/CHANGELOG.md +++ b/java-dialogflow-cx/CHANGELOG.md @@ -1,5 +1,16 @@ # Changelog +## 0.79.0 (2025-07-11) + +### Features + +* Add support for generator settings on fulfillment ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.78.0 (2025-06-25) ### Dependencies diff --git a/java-dialogflow-cx/README.md b/java-dialogflow-cx/README.md index 930582d25c72..182e5d3caf60 100644 --- a/java-dialogflow-cx/README.md +++ b/java-dialogflow-cx/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dialogflow-cx - 0.77.0 + 0.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dialogflow-cx:0.77.0' +implementation 'com.google.cloud:google-cloud-dialogflow-cx:0.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow-cx" % "0.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow-cx" % "0.78.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dialogflow-cx.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow-cx/0.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow-cx/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-dialogflow-cx/google-cloud-dialogflow-cx-bom/pom.xml b/java-dialogflow-cx/google-cloud-dialogflow-cx-bom/pom.xml index 0aa9c14a2ef0..9912ee654463 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx-bom/pom.xml +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-dialogflow-cx-bom - 0.78.0 + 0.79.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-dialogflow-cx - 0.78.0 + 0.79.0 com.google.api.grpc grpc-google-cloud-dialogflow-cx-v3beta1 - 0.78.0 + 0.79.0 com.google.api.grpc grpc-google-cloud-dialogflow-cx-v3 - 0.78.0 + 0.79.0 com.google.api.grpc proto-google-cloud-dialogflow-cx-v3beta1 - 0.78.0 + 0.79.0 com.google.api.grpc proto-google-cloud-dialogflow-cx-v3 - 0.78.0 + 0.79.0 diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/pom.xml b/java-dialogflow-cx/google-cloud-dialogflow-cx/pom.xml index 83598407dbec..055f3e96d5e1 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/pom.xml +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-dialogflow-cx - 0.78.0 + 0.79.0 jar Google Dialogflow CX 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. com.google.cloud google-cloud-dialogflow-cx-parent - 0.78.0 + 0.79.0 google-cloud-dialogflow-cx diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.cx.v3/reflect-config.json b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.cx.v3/reflect-config.json index 98d409e78d8b..23a9b87d4c3e 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.cx.v3/reflect-config.json +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.cx.v3/reflect-config.json @@ -2834,6 +2834,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dialogflow.cx.v3.Fulfillment$GeneratorSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.cx.v3.Fulfillment$GeneratorSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dialogflow.cx.v3.Fulfillment$SetParameterAction", "queryAllDeclaredConstructors": true, diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/pom.xml b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/pom.xml index 923ede128e1b..30c0794f0671 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/pom.xml +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dialogflow-cx-v3 - 0.78.0 + 0.79.0 grpc-google-cloud-dialogflow-cx-v3 GRPC library for grpc-google-cloud-dialogflow-cx-v3 com.google.cloud google-cloud-dialogflow-cx-parent - 0.78.0 + 0.79.0 diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/pom.xml b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/pom.xml index 64e35f4e5d86..8fee7abccd7e 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/pom.xml +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dialogflow-cx-v3beta1 - 0.78.0 + 0.79.0 grpc-google-cloud-dialogflow-cx-v3beta1 GRPC library for grpc-google-cloud-dialogflow-cx-v3beta1 com.google.cloud google-cloud-dialogflow-cx-parent - 0.78.0 + 0.79.0 diff --git a/java-dialogflow-cx/pom.xml b/java-dialogflow-cx/pom.xml index 959321d71ee4..8d05ef1288aa 100644 --- a/java-dialogflow-cx/pom.xml +++ b/java-dialogflow-cx/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dialogflow-cx-parent pom - 0.78.0 + 0.79.0 Google Dialogflow CX Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-dialogflow-cx - 0.78.0 + 0.79.0 com.google.api.grpc proto-google-cloud-dialogflow-cx-v3beta1 - 0.78.0 + 0.79.0 com.google.api.grpc proto-google-cloud-dialogflow-cx-v3 - 0.78.0 + 0.79.0 com.google.api.grpc grpc-google-cloud-dialogflow-cx-v3beta1 - 0.78.0 + 0.79.0 com.google.api.grpc grpc-google-cloud-dialogflow-cx-v3 - 0.78.0 + 0.79.0 diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/pom.xml b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/pom.xml index f93050ddd84c..b98ddd2af430 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/pom.xml +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dialogflow-cx-v3 - 0.78.0 + 0.79.0 proto-google-cloud-dialogflow-cx-v3 PROTO library for proto-google-cloud-dialogflow-cx-v3 com.google.cloud google-cloud-dialogflow-cx-parent - 0.78.0 + 0.79.0 diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Fulfillment.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Fulfillment.java index dea26ce72c27..e78681bd3a12 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Fulfillment.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Fulfillment.java @@ -59,6 +59,7 @@ private Fulfillment() { tag_ = ""; setParameterActions_ = java.util.Collections.emptyList(); conditionalCases_ = java.util.Collections.emptyList(); + generators_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -4880,6 +4881,1485 @@ public com.google.protobuf.Parser getParserForType() { } } + public interface GeneratorSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. The generator to call.
+     * Format:
+     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/generators/<GeneratorID>`.
+     * 
+ * + * + * string generator = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The generator. + */ + java.lang.String getGenerator(); + + /** + * + * + *
+     * Required. The generator to call.
+     * Format:
+     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/generators/<GeneratorID>`.
+     * 
+ * + * + * string generator = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for generator. + */ + com.google.protobuf.ByteString getGeneratorBytes(); + + /** + * + * + *
+     * Map from [placeholder parameter][Generator.Parameter.id] in the
+     * [Generator][google.cloud.dialogflow.cx.v3.Generator] to corresponding
+     * session parameters. By default, Dialogflow uses the session parameter
+     * with the same name to fill in the generator template. e.g. If there is a
+     * placeholder parameter `city` in the Generator, Dialogflow default to fill
+     * in the `$city` with
+     * `$session.params.city`. However, you may choose to fill `$city` with
+     * `$session.params.desination-city`.
+     * - Map key: [parameter ID][Genrator.Parameter.id]
+     * - Map value: session parameter name
+     * 
+ * + * map<string, string> input_parameters = 2; + */ + int getInputParametersCount(); + + /** + * + * + *
+     * Map from [placeholder parameter][Generator.Parameter.id] in the
+     * [Generator][google.cloud.dialogflow.cx.v3.Generator] to corresponding
+     * session parameters. By default, Dialogflow uses the session parameter
+     * with the same name to fill in the generator template. e.g. If there is a
+     * placeholder parameter `city` in the Generator, Dialogflow default to fill
+     * in the `$city` with
+     * `$session.params.city`. However, you may choose to fill `$city` with
+     * `$session.params.desination-city`.
+     * - Map key: [parameter ID][Genrator.Parameter.id]
+     * - Map value: session parameter name
+     * 
+ * + * map<string, string> input_parameters = 2; + */ + boolean containsInputParameters(java.lang.String key); + + /** Use {@link #getInputParametersMap()} instead. */ + @java.lang.Deprecated + java.util.Map getInputParameters(); + + /** + * + * + *
+     * Map from [placeholder parameter][Generator.Parameter.id] in the
+     * [Generator][google.cloud.dialogflow.cx.v3.Generator] to corresponding
+     * session parameters. By default, Dialogflow uses the session parameter
+     * with the same name to fill in the generator template. e.g. If there is a
+     * placeholder parameter `city` in the Generator, Dialogflow default to fill
+     * in the `$city` with
+     * `$session.params.city`. However, you may choose to fill `$city` with
+     * `$session.params.desination-city`.
+     * - Map key: [parameter ID][Genrator.Parameter.id]
+     * - Map value: session parameter name
+     * 
+ * + * map<string, string> input_parameters = 2; + */ + java.util.Map getInputParametersMap(); + + /** + * + * + *
+     * Map from [placeholder parameter][Generator.Parameter.id] in the
+     * [Generator][google.cloud.dialogflow.cx.v3.Generator] to corresponding
+     * session parameters. By default, Dialogflow uses the session parameter
+     * with the same name to fill in the generator template. e.g. If there is a
+     * placeholder parameter `city` in the Generator, Dialogflow default to fill
+     * in the `$city` with
+     * `$session.params.city`. However, you may choose to fill `$city` with
+     * `$session.params.desination-city`.
+     * - Map key: [parameter ID][Genrator.Parameter.id]
+     * - Map value: session parameter name
+     * 
+ * + * map<string, string> input_parameters = 2; + */ + /* nullable */ + java.lang.String getInputParametersOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+     * Map from [placeholder parameter][Generator.Parameter.id] in the
+     * [Generator][google.cloud.dialogflow.cx.v3.Generator] to corresponding
+     * session parameters. By default, Dialogflow uses the session parameter
+     * with the same name to fill in the generator template. e.g. If there is a
+     * placeholder parameter `city` in the Generator, Dialogflow default to fill
+     * in the `$city` with
+     * `$session.params.city`. However, you may choose to fill `$city` with
+     * `$session.params.desination-city`.
+     * - Map key: [parameter ID][Genrator.Parameter.id]
+     * - Map value: session parameter name
+     * 
+ * + * map<string, string> input_parameters = 2; + */ + java.lang.String getInputParametersOrThrow(java.lang.String key); + + /** + * + * + *
+     * Required. Output parameter which should contain the generator response.
+     * 
+ * + * string output_parameter = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The outputParameter. + */ + java.lang.String getOutputParameter(); + + /** + * + * + *
+     * Required. Output parameter which should contain the generator response.
+     * 
+ * + * string output_parameter = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for outputParameter. + */ + com.google.protobuf.ByteString getOutputParameterBytes(); + } + + /** + * + * + *
+   * Generator settings used by the LLM to generate a text response.
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings} + */ + public static final class GeneratorSettings extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings) + GeneratorSettingsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GeneratorSettings.newBuilder() to construct. + private GeneratorSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GeneratorSettings() { + generator_ = ""; + outputParameter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GeneratorSettings(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.FulfillmentProto + .internal_static_google_cloud_dialogflow_cx_v3_Fulfillment_GeneratorSettings_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetInputParameters(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.FulfillmentProto + .internal_static_google_cloud_dialogflow_cx_v3_Fulfillment_GeneratorSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings.class, + com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings.Builder.class); + } + + public static final int GENERATOR_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object generator_ = ""; + + /** + * + * + *
+     * Required. The generator to call.
+     * Format:
+     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/generators/<GeneratorID>`.
+     * 
+ * + * + * string generator = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The generator. + */ + @java.lang.Override + public java.lang.String getGenerator() { + java.lang.Object ref = generator_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + generator_ = s; + return s; + } + } + + /** + * + * + *
+     * Required. The generator to call.
+     * Format:
+     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/generators/<GeneratorID>`.
+     * 
+ * + * + * string generator = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for generator. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGeneratorBytes() { + java.lang.Object ref = generator_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + generator_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INPUT_PARAMETERS_FIELD_NUMBER = 2; + + private static final class InputParametersDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dialogflow.cx.v3.FulfillmentProto + .internal_static_google_cloud_dialogflow_cx_v3_Fulfillment_GeneratorSettings_InputParametersEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField inputParameters_; + + private com.google.protobuf.MapField + internalGetInputParameters() { + if (inputParameters_ == null) { + return com.google.protobuf.MapField.emptyMapField( + InputParametersDefaultEntryHolder.defaultEntry); + } + return inputParameters_; + } + + public int getInputParametersCount() { + return internalGetInputParameters().getMap().size(); + } + + /** + * + * + *
+     * Map from [placeholder parameter][Generator.Parameter.id] in the
+     * [Generator][google.cloud.dialogflow.cx.v3.Generator] to corresponding
+     * session parameters. By default, Dialogflow uses the session parameter
+     * with the same name to fill in the generator template. e.g. If there is a
+     * placeholder parameter `city` in the Generator, Dialogflow default to fill
+     * in the `$city` with
+     * `$session.params.city`. However, you may choose to fill `$city` with
+     * `$session.params.desination-city`.
+     * - Map key: [parameter ID][Genrator.Parameter.id]
+     * - Map value: session parameter name
+     * 
+ * + * map<string, string> input_parameters = 2; + */ + @java.lang.Override + public boolean containsInputParameters(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetInputParameters().getMap().containsKey(key); + } + + /** Use {@link #getInputParametersMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getInputParameters() { + return getInputParametersMap(); + } + + /** + * + * + *
+     * Map from [placeholder parameter][Generator.Parameter.id] in the
+     * [Generator][google.cloud.dialogflow.cx.v3.Generator] to corresponding
+     * session parameters. By default, Dialogflow uses the session parameter
+     * with the same name to fill in the generator template. e.g. If there is a
+     * placeholder parameter `city` in the Generator, Dialogflow default to fill
+     * in the `$city` with
+     * `$session.params.city`. However, you may choose to fill `$city` with
+     * `$session.params.desination-city`.
+     * - Map key: [parameter ID][Genrator.Parameter.id]
+     * - Map value: session parameter name
+     * 
+ * + * map<string, string> input_parameters = 2; + */ + @java.lang.Override + public java.util.Map getInputParametersMap() { + return internalGetInputParameters().getMap(); + } + + /** + * + * + *
+     * Map from [placeholder parameter][Generator.Parameter.id] in the
+     * [Generator][google.cloud.dialogflow.cx.v3.Generator] to corresponding
+     * session parameters. By default, Dialogflow uses the session parameter
+     * with the same name to fill in the generator template. e.g. If there is a
+     * placeholder parameter `city` in the Generator, Dialogflow default to fill
+     * in the `$city` with
+     * `$session.params.city`. However, you may choose to fill `$city` with
+     * `$session.params.desination-city`.
+     * - Map key: [parameter ID][Genrator.Parameter.id]
+     * - Map value: session parameter name
+     * 
+ * + * map<string, string> input_parameters = 2; + */ + @java.lang.Override + public /* nullable */ java.lang.String getInputParametersOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetInputParameters().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Map from [placeholder parameter][Generator.Parameter.id] in the
+     * [Generator][google.cloud.dialogflow.cx.v3.Generator] to corresponding
+     * session parameters. By default, Dialogflow uses the session parameter
+     * with the same name to fill in the generator template. e.g. If there is a
+     * placeholder parameter `city` in the Generator, Dialogflow default to fill
+     * in the `$city` with
+     * `$session.params.city`. However, you may choose to fill `$city` with
+     * `$session.params.desination-city`.
+     * - Map key: [parameter ID][Genrator.Parameter.id]
+     * - Map value: session parameter name
+     * 
+ * + * map<string, string> input_parameters = 2; + */ + @java.lang.Override + public java.lang.String getInputParametersOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetInputParameters().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int OUTPUT_PARAMETER_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object outputParameter_ = ""; + + /** + * + * + *
+     * Required. Output parameter which should contain the generator response.
+     * 
+ * + * string output_parameter = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The outputParameter. + */ + @java.lang.Override + public java.lang.String getOutputParameter() { + java.lang.Object ref = outputParameter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputParameter_ = s; + return s; + } + } + + /** + * + * + *
+     * Required. Output parameter which should contain the generator response.
+     * 
+ * + * string output_parameter = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for outputParameter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOutputParameterBytes() { + java.lang.Object ref = outputParameter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputParameter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(generator_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, generator_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetInputParameters(), InputParametersDefaultEntryHolder.defaultEntry, 2); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputParameter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, outputParameter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(generator_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, generator_); + } + for (java.util.Map.Entry entry : + internalGetInputParameters().getMap().entrySet()) { + com.google.protobuf.MapEntry inputParameters__ = + InputParametersDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, inputParameters__); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputParameter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, outputParameter_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings other = + (com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings) obj; + + if (!getGenerator().equals(other.getGenerator())) return false; + if (!internalGetInputParameters().equals(other.internalGetInputParameters())) return false; + if (!getOutputParameter().equals(other.getOutputParameter())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + GENERATOR_FIELD_NUMBER; + hash = (53 * hash) + getGenerator().hashCode(); + if (!internalGetInputParameters().getMap().isEmpty()) { + hash = (37 * hash) + INPUT_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + internalGetInputParameters().hashCode(); + } + hash = (37 * hash) + OUTPUT_PARAMETER_FIELD_NUMBER; + hash = (53 * hash) + getOutputParameter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Generator settings used by the LLM to generate a text response.
+     * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings) + com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.FulfillmentProto + .internal_static_google_cloud_dialogflow_cx_v3_Fulfillment_GeneratorSettings_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetInputParameters(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetMutableInputParameters(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.FulfillmentProto + .internal_static_google_cloud_dialogflow_cx_v3_Fulfillment_GeneratorSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings.class, + com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + generator_ = ""; + internalGetMutableInputParameters().clear(); + outputParameter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3.FulfillmentProto + .internal_static_google_cloud_dialogflow_cx_v3_Fulfillment_GeneratorSettings_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings build() { + com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings buildPartial() { + com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings result = + new com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.generator_ = generator_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.inputParameters_ = internalGetInputParameters(); + result.inputParameters_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.outputParameter_ = outputParameter_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings other) { + if (other + == com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings.getDefaultInstance()) + return this; + if (!other.getGenerator().isEmpty()) { + generator_ = other.generator_; + bitField0_ |= 0x00000001; + onChanged(); + } + internalGetMutableInputParameters().mergeFrom(other.internalGetInputParameters()); + bitField0_ |= 0x00000002; + if (!other.getOutputParameter().isEmpty()) { + outputParameter_ = other.outputParameter_; + 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: + { + generator_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.protobuf.MapEntry + inputParameters__ = + input.readMessage( + InputParametersDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableInputParameters() + .getMutableMap() + .put(inputParameters__.getKey(), inputParameters__.getValue()); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + outputParameter_ = 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 generator_ = ""; + + /** + * + * + *
+       * Required. The generator to call.
+       * Format:
+       * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/generators/<GeneratorID>`.
+       * 
+ * + * + * string generator = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The generator. + */ + public java.lang.String getGenerator() { + java.lang.Object ref = generator_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + generator_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Required. The generator to call.
+       * Format:
+       * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/generators/<GeneratorID>`.
+       * 
+ * + * + * string generator = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for generator. + */ + public com.google.protobuf.ByteString getGeneratorBytes() { + java.lang.Object ref = generator_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + generator_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Required. The generator to call.
+       * Format:
+       * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/generators/<GeneratorID>`.
+       * 
+ * + * + * string generator = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The generator to set. + * @return This builder for chaining. + */ + public Builder setGenerator(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + generator_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. The generator to call.
+       * Format:
+       * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/generators/<GeneratorID>`.
+       * 
+ * + * + * string generator = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearGenerator() { + generator_ = getDefaultInstance().getGenerator(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. The generator to call.
+       * Format:
+       * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/generators/<GeneratorID>`.
+       * 
+ * + * + * string generator = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for generator to set. + * @return This builder for chaining. + */ + public Builder setGeneratorBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + generator_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.MapField inputParameters_; + + private com.google.protobuf.MapField + internalGetInputParameters() { + if (inputParameters_ == null) { + return com.google.protobuf.MapField.emptyMapField( + InputParametersDefaultEntryHolder.defaultEntry); + } + return inputParameters_; + } + + private com.google.protobuf.MapField + internalGetMutableInputParameters() { + if (inputParameters_ == null) { + inputParameters_ = + com.google.protobuf.MapField.newMapField( + InputParametersDefaultEntryHolder.defaultEntry); + } + if (!inputParameters_.isMutable()) { + inputParameters_ = inputParameters_.copy(); + } + bitField0_ |= 0x00000002; + onChanged(); + return inputParameters_; + } + + public int getInputParametersCount() { + return internalGetInputParameters().getMap().size(); + } + + /** + * + * + *
+       * Map from [placeholder parameter][Generator.Parameter.id] in the
+       * [Generator][google.cloud.dialogflow.cx.v3.Generator] to corresponding
+       * session parameters. By default, Dialogflow uses the session parameter
+       * with the same name to fill in the generator template. e.g. If there is a
+       * placeholder parameter `city` in the Generator, Dialogflow default to fill
+       * in the `$city` with
+       * `$session.params.city`. However, you may choose to fill `$city` with
+       * `$session.params.desination-city`.
+       * - Map key: [parameter ID][Genrator.Parameter.id]
+       * - Map value: session parameter name
+       * 
+ * + * map<string, string> input_parameters = 2; + */ + @java.lang.Override + public boolean containsInputParameters(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetInputParameters().getMap().containsKey(key); + } + + /** Use {@link #getInputParametersMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getInputParameters() { + return getInputParametersMap(); + } + + /** + * + * + *
+       * Map from [placeholder parameter][Generator.Parameter.id] in the
+       * [Generator][google.cloud.dialogflow.cx.v3.Generator] to corresponding
+       * session parameters. By default, Dialogflow uses the session parameter
+       * with the same name to fill in the generator template. e.g. If there is a
+       * placeholder parameter `city` in the Generator, Dialogflow default to fill
+       * in the `$city` with
+       * `$session.params.city`. However, you may choose to fill `$city` with
+       * `$session.params.desination-city`.
+       * - Map key: [parameter ID][Genrator.Parameter.id]
+       * - Map value: session parameter name
+       * 
+ * + * map<string, string> input_parameters = 2; + */ + @java.lang.Override + public java.util.Map getInputParametersMap() { + return internalGetInputParameters().getMap(); + } + + /** + * + * + *
+       * Map from [placeholder parameter][Generator.Parameter.id] in the
+       * [Generator][google.cloud.dialogflow.cx.v3.Generator] to corresponding
+       * session parameters. By default, Dialogflow uses the session parameter
+       * with the same name to fill in the generator template. e.g. If there is a
+       * placeholder parameter `city` in the Generator, Dialogflow default to fill
+       * in the `$city` with
+       * `$session.params.city`. However, you may choose to fill `$city` with
+       * `$session.params.desination-city`.
+       * - Map key: [parameter ID][Genrator.Parameter.id]
+       * - Map value: session parameter name
+       * 
+ * + * map<string, string> input_parameters = 2; + */ + @java.lang.Override + public /* nullable */ java.lang.String getInputParametersOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetInputParameters().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+       * Map from [placeholder parameter][Generator.Parameter.id] in the
+       * [Generator][google.cloud.dialogflow.cx.v3.Generator] to corresponding
+       * session parameters. By default, Dialogflow uses the session parameter
+       * with the same name to fill in the generator template. e.g. If there is a
+       * placeholder parameter `city` in the Generator, Dialogflow default to fill
+       * in the `$city` with
+       * `$session.params.city`. However, you may choose to fill `$city` with
+       * `$session.params.desination-city`.
+       * - Map key: [parameter ID][Genrator.Parameter.id]
+       * - Map value: session parameter name
+       * 
+ * + * map<string, string> input_parameters = 2; + */ + @java.lang.Override + public java.lang.String getInputParametersOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetInputParameters().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearInputParameters() { + bitField0_ = (bitField0_ & ~0x00000002); + internalGetMutableInputParameters().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+       * Map from [placeholder parameter][Generator.Parameter.id] in the
+       * [Generator][google.cloud.dialogflow.cx.v3.Generator] to corresponding
+       * session parameters. By default, Dialogflow uses the session parameter
+       * with the same name to fill in the generator template. e.g. If there is a
+       * placeholder parameter `city` in the Generator, Dialogflow default to fill
+       * in the `$city` with
+       * `$session.params.city`. However, you may choose to fill `$city` with
+       * `$session.params.desination-city`.
+       * - Map key: [parameter ID][Genrator.Parameter.id]
+       * - Map value: session parameter name
+       * 
+ * + * map<string, string> input_parameters = 2; + */ + public Builder removeInputParameters(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableInputParameters().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableInputParameters() { + bitField0_ |= 0x00000002; + return internalGetMutableInputParameters().getMutableMap(); + } + + /** + * + * + *
+       * Map from [placeholder parameter][Generator.Parameter.id] in the
+       * [Generator][google.cloud.dialogflow.cx.v3.Generator] to corresponding
+       * session parameters. By default, Dialogflow uses the session parameter
+       * with the same name to fill in the generator template. e.g. If there is a
+       * placeholder parameter `city` in the Generator, Dialogflow default to fill
+       * in the `$city` with
+       * `$session.params.city`. However, you may choose to fill `$city` with
+       * `$session.params.desination-city`.
+       * - Map key: [parameter ID][Genrator.Parameter.id]
+       * - Map value: session parameter name
+       * 
+ * + * map<string, string> input_parameters = 2; + */ + public Builder putInputParameters(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableInputParameters().getMutableMap().put(key, value); + bitField0_ |= 0x00000002; + return this; + } + + /** + * + * + *
+       * Map from [placeholder parameter][Generator.Parameter.id] in the
+       * [Generator][google.cloud.dialogflow.cx.v3.Generator] to corresponding
+       * session parameters. By default, Dialogflow uses the session parameter
+       * with the same name to fill in the generator template. e.g. If there is a
+       * placeholder parameter `city` in the Generator, Dialogflow default to fill
+       * in the `$city` with
+       * `$session.params.city`. However, you may choose to fill `$city` with
+       * `$session.params.desination-city`.
+       * - Map key: [parameter ID][Genrator.Parameter.id]
+       * - Map value: session parameter name
+       * 
+ * + * map<string, string> input_parameters = 2; + */ + public Builder putAllInputParameters( + java.util.Map values) { + internalGetMutableInputParameters().getMutableMap().putAll(values); + bitField0_ |= 0x00000002; + return this; + } + + private java.lang.Object outputParameter_ = ""; + + /** + * + * + *
+       * Required. Output parameter which should contain the generator response.
+       * 
+ * + * string output_parameter = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The outputParameter. + */ + public java.lang.String getOutputParameter() { + java.lang.Object ref = outputParameter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputParameter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Required. Output parameter which should contain the generator response.
+       * 
+ * + * string output_parameter = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for outputParameter. + */ + public com.google.protobuf.ByteString getOutputParameterBytes() { + java.lang.Object ref = outputParameter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputParameter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Required. Output parameter which should contain the generator response.
+       * 
+ * + * string output_parameter = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The outputParameter to set. + * @return This builder for chaining. + */ + public Builder setOutputParameter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputParameter_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. Output parameter which should contain the generator response.
+       * 
+ * + * string output_parameter = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearOutputParameter() { + outputParameter_ = getDefaultInstance().getOutputParameter(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. Output parameter which should contain the generator response.
+       * 
+ * + * string output_parameter = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for outputParameter to set. + * @return This builder for chaining. + */ + public Builder setOutputParameterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputParameter_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings) + private static final com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings(); + } + + public static com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GeneratorSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; public static final int MESSAGES_FIELD_NUMBER = 1; @@ -5369,6 +6849,91 @@ public boolean getEnableGenerativeFallback() { return enableGenerativeFallback_; } + public static final int GENERATORS_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private java.util.List + generators_; + + /** + * + * + *
+   * A list of Generators to be called during this fulfillment.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings generators = 13; + * + */ + @java.lang.Override + public java.util.List + getGeneratorsList() { + return generators_; + } + + /** + * + * + *
+   * A list of Generators to be called during this fulfillment.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings generators = 13; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettingsOrBuilder> + getGeneratorsOrBuilderList() { + return generators_; + } + + /** + * + * + *
+   * A list of Generators to be called during this fulfillment.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings generators = 13; + * + */ + @java.lang.Override + public int getGeneratorsCount() { + return generators_.size(); + } + + /** + * + * + *
+   * A list of Generators to be called during this fulfillment.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings generators = 13; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings getGenerators(int index) { + return generators_.get(index); + } + + /** + * + * + *
+   * A list of Generators to be called during this fulfillment.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings generators = 13; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettingsOrBuilder + getGeneratorsOrBuilder(int index) { + return generators_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -5407,6 +6972,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (enableGenerativeFallback_ != false) { output.writeBool(12, enableGenerativeFallback_); } + for (int i = 0; i < generators_.size(); i++) { + output.writeMessage(13, generators_.get(i)); + } getUnknownFields().writeTo(output); } @@ -5441,6 +7009,9 @@ public int getSerializedSize() { if (enableGenerativeFallback_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, enableGenerativeFallback_); } + for (int i = 0; i < generators_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, generators_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -5468,6 +7039,7 @@ public boolean equals(final java.lang.Object obj) { if (!getAdvancedSettings().equals(other.getAdvancedSettings())) return false; } if (getEnableGenerativeFallback() != other.getEnableGenerativeFallback()) return false; + if (!getGeneratorsList().equals(other.getGeneratorsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -5503,6 +7075,10 @@ public int hashCode() { } hash = (37 * hash) + ENABLE_GENERATIVE_FALLBACK_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableGenerativeFallback()); + if (getGeneratorsCount() > 0) { + hash = (37 * hash) + GENERATORS_FIELD_NUMBER; + hash = (53 * hash) + getGeneratorsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -5662,6 +7238,7 @@ private void maybeForceBuilderInitialization() { getSetParameterActionsFieldBuilder(); getConditionalCasesFieldBuilder(); getAdvancedSettingsFieldBuilder(); + getGeneratorsFieldBuilder(); } } @@ -5699,6 +7276,13 @@ public Builder clear() { advancedSettingsBuilder_ = null; } enableGenerativeFallback_ = false; + if (generatorsBuilder_ == null) { + generators_ = java.util.Collections.emptyList(); + } else { + generators_ = null; + generatorsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000100); return this; } @@ -5762,6 +7346,15 @@ private void buildPartialRepeatedFields(com.google.cloud.dialogflow.cx.v3.Fulfil } else { result.conditionalCases_ = conditionalCasesBuilder_.build(); } + if (generatorsBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0)) { + generators_ = java.util.Collections.unmodifiableList(generators_); + bitField0_ = (bitField0_ & ~0x00000100); + } + result.generators_ = generators_; + } else { + result.generators_ = generatorsBuilder_.build(); + } } private void buildPartial0(com.google.cloud.dialogflow.cx.v3.Fulfillment result) { @@ -5932,6 +7525,33 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Fulfillment other) { if (other.getEnableGenerativeFallback() != false) { setEnableGenerativeFallback(other.getEnableGenerativeFallback()); } + if (generatorsBuilder_ == null) { + if (!other.generators_.isEmpty()) { + if (generators_.isEmpty()) { + generators_ = other.generators_; + bitField0_ = (bitField0_ & ~0x00000100); + } else { + ensureGeneratorsIsMutable(); + generators_.addAll(other.generators_); + } + onChanged(); + } + } else { + if (!other.generators_.isEmpty()) { + if (generatorsBuilder_.isEmpty()) { + generatorsBuilder_.dispose(); + generatorsBuilder_ = null; + generators_ = other.generators_; + bitField0_ = (bitField0_ & ~0x00000100); + generatorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getGeneratorsFieldBuilder() + : null; + } else { + generatorsBuilder_.addAllMessages(other.generators_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -6031,6 +7651,20 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; break; } // case 96 + case 106: + { + com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings m = + input.readMessage( + com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings.parser(), + extensionRegistry); + if (generatorsBuilder_ == null) { + ensureGeneratorsIsMutable(); + generators_.add(m); + } else { + generatorsBuilder_.addMessage(m); + } + break; + } // case 106 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -7888,6 +9522,410 @@ public Builder clearEnableGenerativeFallback() { return this; } + private java.util.List + generators_ = java.util.Collections.emptyList(); + + private void ensureGeneratorsIsMutable() { + if (!((bitField0_ & 0x00000100) != 0)) { + generators_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings>(generators_); + bitField0_ |= 0x00000100; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings, + com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings.Builder, + com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettingsOrBuilder> + generatorsBuilder_; + + /** + * + * + *
+     * A list of Generators to be called during this fulfillment.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings generators = 13; + * + */ + public java.util.List + getGeneratorsList() { + if (generatorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(generators_); + } else { + return generatorsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * A list of Generators to be called during this fulfillment.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings generators = 13; + * + */ + public int getGeneratorsCount() { + if (generatorsBuilder_ == null) { + return generators_.size(); + } else { + return generatorsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * A list of Generators to be called during this fulfillment.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings generators = 13; + * + */ + public com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings getGenerators( + int index) { + if (generatorsBuilder_ == null) { + return generators_.get(index); + } else { + return generatorsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * A list of Generators to be called during this fulfillment.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings generators = 13; + * + */ + public Builder setGenerators( + int index, com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings value) { + if (generatorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGeneratorsIsMutable(); + generators_.set(index, value); + onChanged(); + } else { + generatorsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * A list of Generators to be called during this fulfillment.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings generators = 13; + * + */ + public Builder setGenerators( + int index, + com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings.Builder builderForValue) { + if (generatorsBuilder_ == null) { + ensureGeneratorsIsMutable(); + generators_.set(index, builderForValue.build()); + onChanged(); + } else { + generatorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A list of Generators to be called during this fulfillment.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings generators = 13; + * + */ + public Builder addGenerators( + com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings value) { + if (generatorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGeneratorsIsMutable(); + generators_.add(value); + onChanged(); + } else { + generatorsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * A list of Generators to be called during this fulfillment.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings generators = 13; + * + */ + public Builder addGenerators( + int index, com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings value) { + if (generatorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGeneratorsIsMutable(); + generators_.add(index, value); + onChanged(); + } else { + generatorsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * A list of Generators to be called during this fulfillment.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings generators = 13; + * + */ + public Builder addGenerators( + com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings.Builder builderForValue) { + if (generatorsBuilder_ == null) { + ensureGeneratorsIsMutable(); + generators_.add(builderForValue.build()); + onChanged(); + } else { + generatorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A list of Generators to be called during this fulfillment.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings generators = 13; + * + */ + public Builder addGenerators( + int index, + com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings.Builder builderForValue) { + if (generatorsBuilder_ == null) { + ensureGeneratorsIsMutable(); + generators_.add(index, builderForValue.build()); + onChanged(); + } else { + generatorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A list of Generators to be called during this fulfillment.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings generators = 13; + * + */ + public Builder addAllGenerators( + java.lang.Iterable< + ? extends com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings> + values) { + if (generatorsBuilder_ == null) { + ensureGeneratorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, generators_); + onChanged(); + } else { + generatorsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * A list of Generators to be called during this fulfillment.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings generators = 13; + * + */ + public Builder clearGenerators() { + if (generatorsBuilder_ == null) { + generators_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + } else { + generatorsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * A list of Generators to be called during this fulfillment.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings generators = 13; + * + */ + public Builder removeGenerators(int index) { + if (generatorsBuilder_ == null) { + ensureGeneratorsIsMutable(); + generators_.remove(index); + onChanged(); + } else { + generatorsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * A list of Generators to be called during this fulfillment.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings generators = 13; + * + */ + public com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings.Builder + getGeneratorsBuilder(int index) { + return getGeneratorsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * A list of Generators to be called during this fulfillment.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings generators = 13; + * + */ + public com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettingsOrBuilder + getGeneratorsOrBuilder(int index) { + if (generatorsBuilder_ == null) { + return generators_.get(index); + } else { + return generatorsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * A list of Generators to be called during this fulfillment.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings generators = 13; + * + */ + public java.util.List< + ? extends com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettingsOrBuilder> + getGeneratorsOrBuilderList() { + if (generatorsBuilder_ != null) { + return generatorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(generators_); + } + } + + /** + * + * + *
+     * A list of Generators to be called during this fulfillment.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings generators = 13; + * + */ + public com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings.Builder + addGeneratorsBuilder() { + return getGeneratorsFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings.getDefaultInstance()); + } + + /** + * + * + *
+     * A list of Generators to be called during this fulfillment.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings generators = 13; + * + */ + public com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings.Builder + addGeneratorsBuilder(int index) { + return getGeneratorsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings.getDefaultInstance()); + } + + /** + * + * + *
+     * A list of Generators to be called during this fulfillment.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings generators = 13; + * + */ + public java.util.List + getGeneratorsBuilderList() { + return getGeneratorsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings, + com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings.Builder, + com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettingsOrBuilder> + getGeneratorsFieldBuilder() { + if (generatorsBuilder_ == null) { + generatorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings, + com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings.Builder, + com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettingsOrBuilder>( + generators_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); + generators_ = null; + } + return generatorsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FulfillmentOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FulfillmentOrBuilder.java index ffaac1f8d81b..e56c2b5e3a35 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FulfillmentOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FulfillmentOrBuilder.java @@ -363,4 +363,67 @@ com.google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction getSetParameter * @return The enableGenerativeFallback. */ boolean getEnableGenerativeFallback(); + + /** + * + * + *
+   * A list of Generators to be called during this fulfillment.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings generators = 13; + * + */ + java.util.List + getGeneratorsList(); + + /** + * + * + *
+   * A list of Generators to be called during this fulfillment.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings generators = 13; + * + */ + com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings getGenerators(int index); + + /** + * + * + *
+   * A list of Generators to be called during this fulfillment.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings generators = 13; + * + */ + int getGeneratorsCount(); + + /** + * + * + *
+   * A list of Generators to be called during this fulfillment.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings generators = 13; + * + */ + java.util.List + getGeneratorsOrBuilderList(); + + /** + * + * + *
+   * A list of Generators to be called during this fulfillment.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettings generators = 13; + * + */ + com.google.cloud.dialogflow.cx.v3.Fulfillment.GeneratorSettingsOrBuilder getGeneratorsOrBuilder( + int index); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FulfillmentProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FulfillmentProto.java index 6bf2ad1f6d2b..559f529702be 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FulfillmentProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FulfillmentProto.java @@ -48,6 +48,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_cx_v3_Fulfillment_ConditionalCases_Case_CaseContent_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dialogflow_cx_v3_Fulfillment_ConditionalCases_Case_CaseContent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3_Fulfillment_GeneratorSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3_Fulfillment_GeneratorSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3_Fulfillment_GeneratorSettings_InputParametersEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3_Fulfillment_GeneratorSettings_InputParametersEntry_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -59,45 +67,56 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n/google/cloud/dialogflow/cx/v3/fulfillm" + "ent.proto\022\035google.cloud.dialogflow.cx.v3" - + "\032\031google/api/resource.proto\0325google/clou" - + "d/dialogflow/cx/v3/advanced_settings.pro" - + "to\0324google/cloud/dialogflow/cx/v3/respon" - + "se_message.proto\032\034google/protobuf/struct" - + ".proto\"\323\007\n\013Fulfillment\022@\n\010messages\030\001 \003(\013" - + "2..google.cloud.dialogflow.cx.v3.Respons" - + "eMessage\0227\n\007webhook\030\002 \001(\tB&\372A#\n!dialogfl" - + "ow.googleapis.com/Webhook\022 \n\030return_part" - + "ial_responses\030\010 \001(\010\022\013\n\003tag\030\003 \001(\t\022\\\n\025set_" - + "parameter_actions\030\004 \003(\0132=.google.cloud.d" - + "ialogflow.cx.v3.Fulfillment.SetParameter" - + "Action\022V\n\021conditional_cases\030\005 \003(\0132;.goog" + + "\032\037google/api/field_behavior.proto\032\031googl" + + "e/api/resource.proto\0325google/cloud/dialo" + + "gflow/cx/v3/advanced_settings.proto\0324goo" + + "gle/cloud/dialogflow/cx/v3/response_mess" + + "age.proto\032\034google/protobuf/struct.proto\"" + + "\277\n\n\013Fulfillment\022@\n\010messages\030\001 \003(\0132..goog" + + "le.cloud.dialogflow.cx.v3.ResponseMessag" + + "e\0227\n\007webhook\030\002 \001(\tB&\372A#\n!dialogflow.goog" + + "leapis.com/Webhook\022 \n\030return_partial_res" + + "ponses\030\010 \001(\010\022\013\n\003tag\030\003 \001(\t\022\\\n\025set_paramet" + + "er_actions\030\004 \003(\0132=.google.cloud.dialogfl" + + "ow.cx.v3.Fulfillment.SetParameterAction\022" + + "V\n\021conditional_cases\030\005 \003(\0132;.google.clou" + + "d.dialogflow.cx.v3.Fulfillment.Condition" + + "alCases\022J\n\021advanced_settings\030\007 \001(\0132/.goo" + + "gle.cloud.dialogflow.cx.v3.AdvancedSetti" + + "ngs\022\"\n\032enable_generative_fallback\030\014 \001(\010\022" + + "P\n\ngenerators\030\r \003(\0132<.google.cloud.dialo" + + "gflow.cx.v3.Fulfillment.GeneratorSetting" + + "s\032N\n\022SetParameterAction\022\021\n\tparameter\030\001 \001" + + "(\t\022%\n\005value\030\002 \001(\0132\026.google.protobuf.Valu" + + "e\032\243\003\n\020ConditionalCases\022O\n\005cases\030\001 \003(\0132@." + + "google.cloud.dialogflow.cx.v3.Fulfillmen" + + "t.ConditionalCases.Case\032\275\002\n\004Case\022\021\n\tcond" + + "ition\030\001 \001(\t\022b\n\014case_content\030\002 \003(\0132L.goog" + "le.cloud.dialogflow.cx.v3.Fulfillment.Co" - + "nditionalCases\022J\n\021advanced_settings\030\007 \001(" - + "\0132/.google.cloud.dialogflow.cx.v3.Advanc" - + "edSettings\022\"\n\032enable_generative_fallback" - + "\030\014 \001(\010\032N\n\022SetParameterAction\022\021\n\tparamete" - + "r\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.protobuf" - + ".Value\032\243\003\n\020ConditionalCases\022O\n\005cases\030\001 \003" - + "(\0132@.google.cloud.dialogflow.cx.v3.Fulfi" - + "llment.ConditionalCases.Case\032\275\002\n\004Case\022\021\n" - + "\tcondition\030\001 \001(\t\022b\n\014case_content\030\002 \003(\0132L" - + ".google.cloud.dialogflow.cx.v3.Fulfillme" - + "nt.ConditionalCases.Case.CaseContent\032\275\001\n" - + "\013CaseContent\022A\n\007message\030\001 \001(\0132..google.c" - + "loud.dialogflow.cx.v3.ResponseMessageH\000\022" - + "W\n\020additional_cases\030\002 \001(\0132;.google.cloud" - + ".dialogflow.cx.v3.Fulfillment.Conditiona" - + "lCasesH\000B\022\n\020cases_or_messageB\263\001\n!com.goo" - + "gle.cloud.dialogflow.cx.v3B\020FulfillmentP" - + "rotoP\001Z1cloud.google.com/go/dialogflow/c" - + "x/apiv3/cxpb;cxpb\242\002\002DF\252\002\035Google.Cloud.Di" - + "alogflow.Cx.V3\352\002!Google::Cloud::Dialogfl" - + "ow::CX::V3b\006proto3" + + "nditionalCases.Case.CaseContent\032\275\001\n\013Case" + + "Content\022A\n\007message\030\001 \001(\0132..google.cloud." + + "dialogflow.cx.v3.ResponseMessageH\000\022W\n\020ad" + + "ditional_cases\030\002 \001(\0132;.google.cloud.dial" + + "ogflow.cx.v3.Fulfillment.ConditionalCase" + + "sH\000B\022\n\020cases_or_message\032\227\002\n\021GeneratorSet" + + "tings\022>\n\tgenerator\030\001 \001(\tB+\340A\002\372A%\n#dialog" + + "flow.googleapis.com/Generator\022k\n\020input_p" + + "arameters\030\002 \003(\0132Q.google.cloud.dialogflo" + + "w.cx.v3.Fulfillment.GeneratorSettings.In" + + "putParametersEntry\022\035\n\020output_parameter\030\003" + + " \001(\tB\003\340A\002\0326\n\024InputParametersEntry\022\013\n\003key" + + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\263\001\n!com.google" + + ".cloud.dialogflow.cx.v3B\020FulfillmentProt" + + "oP\001Z1cloud.google.com/go/dialogflow/cx/a" + + "piv3/cxpb;cxpb\242\002\002DF\252\002\035Google.Cloud.Dialo" + + "gflow.Cx.V3\352\002!Google::Cloud::Dialogflow:" + + ":CX::V3b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.dialogflow.cx.v3.AdvancedSettingsProto.getDescriptor(), com.google.cloud.dialogflow.cx.v3.ResponseMessageProto.getDescriptor(), @@ -117,6 +136,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConditionalCases", "AdvancedSettings", "EnableGenerativeFallback", + "Generators", }); internal_static_google_cloud_dialogflow_cx_v3_Fulfillment_SetParameterAction_descriptor = internal_static_google_cloud_dialogflow_cx_v3_Fulfillment_descriptor @@ -158,11 +178,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Message", "AdditionalCases", "CasesOrMessage", }); + internal_static_google_cloud_dialogflow_cx_v3_Fulfillment_GeneratorSettings_descriptor = + internal_static_google_cloud_dialogflow_cx_v3_Fulfillment_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_dialogflow_cx_v3_Fulfillment_GeneratorSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3_Fulfillment_GeneratorSettings_descriptor, + new java.lang.String[] { + "Generator", "InputParameters", "OutputParameter", + }); + internal_static_google_cloud_dialogflow_cx_v3_Fulfillment_GeneratorSettings_InputParametersEntry_descriptor = + internal_static_google_cloud_dialogflow_cx_v3_Fulfillment_GeneratorSettings_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dialogflow_cx_v3_Fulfillment_GeneratorSettings_InputParametersEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3_Fulfillment_GeneratorSettings_InputParametersEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.dialogflow.cx.v3.AdvancedSettingsProto.getDescriptor(); com.google.cloud.dialogflow.cx.v3.ResponseMessageProto.getDescriptor(); diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/fulfillment.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/fulfillment.proto index 04d3fb468e78..2635a3ca7039 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/fulfillment.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/fulfillment.proto @@ -16,6 +16,7 @@ syntax = "proto3"; package google.cloud.dialogflow.cx.v3; +import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/dialogflow/cx/v3/advanced_settings.proto"; import "google/cloud/dialogflow/cx/v3/response_message.proto"; @@ -89,6 +90,34 @@ message Fulfillment { repeated Case cases = 1; } + // Generator settings used by the LLM to generate a text response. + message GeneratorSettings { + // Required. The generator to call. + // Format: + // `projects//locations//agents//generators/`. + string generator = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Generator" + } + ]; + + // Map from [placeholder parameter][Generator.Parameter.id] in the + // [Generator][google.cloud.dialogflow.cx.v3.Generator] to corresponding + // session parameters. By default, Dialogflow uses the session parameter + // with the same name to fill in the generator template. e.g. If there is a + // placeholder parameter `city` in the Generator, Dialogflow default to fill + // in the `$city` with + // `$session.params.city`. However, you may choose to fill `$city` with + // `$session.params.desination-city`. + // - Map key: [parameter ID][Genrator.Parameter.id] + // - Map value: session parameter name + map input_parameters = 2; + + // Required. Output parameter which should contain the generator response. + string output_parameter = 3 [(google.api.field_behavior) = REQUIRED]; + } + // The list of rich message responses to present to the user. repeated ResponseMessage messages = 1; @@ -135,4 +164,7 @@ message Fulfillment { // fulfillment will be respected. This flag is only useful for fulfillments // associated with no-match event handlers. bool enable_generative_fallback = 12; + + // A list of Generators to be called during this fulfillment. + repeated GeneratorSettings generators = 13; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/pom.xml b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/pom.xml index eeb8eb1a1ebd..4353ba153adb 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/pom.xml +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dialogflow-cx-v3beta1 - 0.78.0 + 0.79.0 proto-google-cloud-dialogflow-cx-v3beta1 PROTO library for proto-google-cloud-dialogflow-cx-v3beta1 com.google.cloud google-cloud-dialogflow-cx-parent - 0.78.0 + 0.79.0 diff --git a/java-dialogflow/CHANGELOG.md b/java-dialogflow/CHANGELOG.md index 8da93acaa770..e328e4e8e44c 100644 --- a/java-dialogflow/CHANGELOG.md +++ b/java-dialogflow/CHANGELOG.md @@ -1,5 +1,16 @@ # Changelog +## 4.74.0 (2025-07-11) + +### Features + +* add a sipTrunk API ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 4.73.0 (2025-06-25) ### Dependencies diff --git a/java-dialogflow/README.md b/java-dialogflow/README.md index 7116ccfa9669..e23abe2ef279 100644 --- a/java-dialogflow/README.md +++ b/java-dialogflow/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dialogflow - 4.72.0 + 4.73.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dialogflow:4.72.0' +implementation 'com.google.cloud:google-cloud-dialogflow:4.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow" % "4.72.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow" % "4.73.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow/4.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-dialogflow/google-cloud-dialogflow-bom/pom.xml b/java-dialogflow/google-cloud-dialogflow-bom/pom.xml index 7d834c286cd3..415a57b39b65 100644 --- a/java-dialogflow/google-cloud-dialogflow-bom/pom.xml +++ b/java-dialogflow/google-cloud-dialogflow-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-dialogflow-bom - 4.73.0 + 4.74.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-dialogflow - 4.73.0 + 4.74.0 com.google.api.grpc grpc-google-cloud-dialogflow-v2beta1 - 0.171.0 + 0.172.0 com.google.api.grpc grpc-google-cloud-dialogflow-v2 - 4.73.0 + 4.74.0 com.google.api.grpc proto-google-cloud-dialogflow-v2 - 4.73.0 + 4.74.0 com.google.api.grpc proto-google-cloud-dialogflow-v2beta1 - 0.171.0 + 0.172.0 diff --git a/java-dialogflow/google-cloud-dialogflow/pom.xml b/java-dialogflow/google-cloud-dialogflow/pom.xml index dd3d8f2cd233..952f5be6f900 100644 --- a/java-dialogflow/google-cloud-dialogflow/pom.xml +++ b/java-dialogflow/google-cloud-dialogflow/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-dialogflow - 4.73.0 + 4.74.0 jar Google Cloud Dialog Flow API Java idiomatic client for Google Cloud Dialog Flow API com.google.cloud google-cloud-dialogflow-parent - 4.73.0 + 4.74.0 google-cloud-dialogflow diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2/pom.xml b/java-dialogflow/grpc-google-cloud-dialogflow-v2/pom.xml index 68bf0f8e376b..4cd2c56f5099 100644 --- a/java-dialogflow/grpc-google-cloud-dialogflow-v2/pom.xml +++ b/java-dialogflow/grpc-google-cloud-dialogflow-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dialogflow-v2 - 4.73.0 + 4.74.0 grpc-google-cloud-dialogflow-v2 GRPC library for grpc-google-cloud-dialogflow-v2 com.google.cloud google-cloud-dialogflow-parent - 4.73.0 + 4.74.0 diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/pom.xml b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/pom.xml index 149d880c5c9d..9993b10991ac 100644 --- a/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/pom.xml +++ b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dialogflow-v2beta1 - 0.171.0 + 0.172.0 grpc-google-cloud-dialogflow-v2beta1 GRPC library for grpc-google-cloud-dialogflow-v2beta1 com.google.cloud google-cloud-dialogflow-parent - 4.73.0 + 4.74.0 diff --git a/java-dialogflow/pom.xml b/java-dialogflow/pom.xml index 2197af9fd5d0..db8c38a7559f 100644 --- a/java-dialogflow/pom.xml +++ b/java-dialogflow/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dialogflow-parent pom - 4.73.0 + 4.74.0 Google Cloud Dialog Flow API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-dialogflow-v2 - 4.73.0 + 4.74.0 com.google.api.grpc proto-google-cloud-dialogflow-v2beta1 - 0.171.0 + 0.172.0 com.google.api.grpc grpc-google-cloud-dialogflow-v2beta1 - 0.171.0 + 0.172.0 com.google.api.grpc grpc-google-cloud-dialogflow-v2 - 4.73.0 + 4.74.0 com.google.cloud google-cloud-dialogflow - 4.73.0 + 4.74.0 diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/pom.xml b/java-dialogflow/proto-google-cloud-dialogflow-v2/pom.xml index 3cbb66492cd0..6da0531f6993 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/pom.xml +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dialogflow-v2 - 4.73.0 + 4.74.0 proto-google-cloud-dialogflow-v2 PROTO library for proto-google-cloud-dialogflow-v2 com.google.cloud google-cloud-dialogflow-parent - 4.73.0 + 4.74.0 diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/pom.xml b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/pom.xml index 11fb8cb2b4d7..5c062bee966c 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/pom.xml +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dialogflow-v2beta1 - 0.171.0 + 0.172.0 proto-google-cloud-dialogflow-v2beta1 PROTO library for proto-google-cloud-dialogflow-v2beta1 com.google.cloud google-cloud-dialogflow-parent - 4.73.0 + 4.74.0 diff --git a/java-discoveryengine/CHANGELOG.md b/java-discoveryengine/CHANGELOG.md index 71a816590a84..f6f45065f5ba 100644 --- a/java-discoveryengine/CHANGELOG.md +++ b/java-discoveryengine/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.64.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.63.0 (2025-06-25) ### Dependencies diff --git a/java-discoveryengine/README.md b/java-discoveryengine/README.md index 95d4dc67aba0..2e517ab8b85f 100644 --- a/java-discoveryengine/README.md +++ b/java-discoveryengine/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-discoveryengine - 0.62.0 + 0.63.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-discoveryengine:0.62.0' +implementation 'com.google.cloud:google-cloud-discoveryengine:0.63.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-discoveryengine" % "0.62.0" +libraryDependencies += "com.google.cloud" % "google-cloud-discoveryengine" % "0.63.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.62.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-discoveryengine/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-discoveryengine/google-cloud-discoveryengine-bom/pom.xml b/java-discoveryengine/google-cloud-discoveryengine-bom/pom.xml index 6b1aee318262..4381bc0bcee5 100644 --- a/java-discoveryengine/google-cloud-discoveryengine-bom/pom.xml +++ b/java-discoveryengine/google-cloud-discoveryengine-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-discoveryengine-bom - 0.63.0 + 0.64.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,37 +27,37 @@ com.google.cloud google-cloud-discoveryengine - 0.63.0 + 0.64.0 com.google.api.grpc grpc-google-cloud-discoveryengine-v1beta - 0.63.0 + 0.64.0 com.google.api.grpc grpc-google-cloud-discoveryengine-v1 - 0.63.0 + 0.64.0 com.google.api.grpc grpc-google-cloud-discoveryengine-v1alpha - 0.63.0 + 0.64.0 com.google.api.grpc proto-google-cloud-discoveryengine-v1beta - 0.63.0 + 0.64.0 com.google.api.grpc proto-google-cloud-discoveryengine-v1 - 0.63.0 + 0.64.0 com.google.api.grpc proto-google-cloud-discoveryengine-v1alpha - 0.63.0 + 0.64.0 diff --git a/java-discoveryengine/google-cloud-discoveryengine/pom.xml b/java-discoveryengine/google-cloud-discoveryengine/pom.xml index d8f52dd397ad..3ba4950e0338 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/pom.xml +++ b/java-discoveryengine/google-cloud-discoveryengine/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-discoveryengine - 0.63.0 + 0.64.0 jar Google Discovery Engine API Discovery Engine API A Cloud API that offers search and recommendation discoverability for documents from different industry verticals (e.g. media, retail, etc.). com.google.cloud google-cloud-discoveryengine-parent - 0.63.0 + 0.64.0 google-cloud-discoveryengine diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/pom.xml b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/pom.xml index 1149a59f1ae2..703266b9f5ec 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/pom.xml +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-discoveryengine-v1 - 0.63.0 + 0.64.0 grpc-google-cloud-discoveryengine-v1 GRPC library for google-cloud-discoveryengine com.google.cloud google-cloud-discoveryengine-parent - 0.63.0 + 0.64.0 diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/pom.xml b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/pom.xml index 04eca7cde889..3d251f639a22 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/pom.xml +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-discoveryengine-v1alpha - 0.63.0 + 0.64.0 grpc-google-cloud-discoveryengine-v1alpha GRPC library for google-cloud-discoveryengine com.google.cloud google-cloud-discoveryengine-parent - 0.63.0 + 0.64.0 diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/pom.xml b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/pom.xml index ecd03d8d74ce..585e39d0093b 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/pom.xml +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-discoveryengine-v1beta - 0.63.0 + 0.64.0 grpc-google-cloud-discoveryengine-v1beta GRPC library for google-cloud-discoveryengine com.google.cloud google-cloud-discoveryengine-parent - 0.63.0 + 0.64.0 diff --git a/java-discoveryengine/pom.xml b/java-discoveryengine/pom.xml index a359362b9f1c..390bb2313d92 100644 --- a/java-discoveryengine/pom.xml +++ b/java-discoveryengine/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-discoveryengine-parent pom - 0.63.0 + 0.64.0 Google Discovery Engine API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.cloud google-cloud-discoveryengine - 0.63.0 + 0.64.0 com.google.api.grpc proto-google-cloud-discoveryengine-v1alpha - 0.63.0 + 0.64.0 com.google.api.grpc grpc-google-cloud-discoveryengine-v1alpha - 0.63.0 + 0.64.0 com.google.api.grpc proto-google-cloud-discoveryengine-v1 - 0.63.0 + 0.64.0 com.google.api.grpc grpc-google-cloud-discoveryengine-v1 - 0.63.0 + 0.64.0 com.google.api.grpc grpc-google-cloud-discoveryengine-v1beta - 0.63.0 + 0.64.0 com.google.api.grpc proto-google-cloud-discoveryengine-v1beta - 0.63.0 + 0.64.0 diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/pom.xml b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/pom.xml index 10554ee0461e..0881e8855ac5 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/pom.xml +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-discoveryengine-v1 - 0.63.0 + 0.64.0 proto-google-cloud-discoveryengine-v1 Proto library for google-cloud-discoveryengine com.google.cloud google-cloud-discoveryengine-parent - 0.63.0 + 0.64.0 diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/pom.xml b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/pom.xml index 0670319ee939..ddd403ad66c5 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/pom.xml +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-discoveryengine-v1alpha - 0.63.0 + 0.64.0 proto-google-cloud-discoveryengine-v1alpha Proto library for google-cloud-discoveryengine com.google.cloud google-cloud-discoveryengine-parent - 0.63.0 + 0.64.0 diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/pom.xml b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/pom.xml index 455a4c73c9bd..baa5f13dabee 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/pom.xml +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-discoveryengine-v1beta - 0.63.0 + 0.64.0 proto-google-cloud-discoveryengine-v1beta Proto library for google-cloud-discoveryengine com.google.cloud google-cloud-discoveryengine-parent - 0.63.0 + 0.64.0 diff --git a/java-distributedcloudedge/CHANGELOG.md b/java-distributedcloudedge/CHANGELOG.md index ed362f4e5fe7..75e8eaa56b00 100644 --- a/java-distributedcloudedge/CHANGELOG.md +++ b/java-distributedcloudedge/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.65.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.64.0 (2025-06-25) ### Dependencies diff --git a/java-distributedcloudedge/README.md b/java-distributedcloudedge/README.md index 593dbd5601bc..4552245ced61 100644 --- a/java-distributedcloudedge/README.md +++ b/java-distributedcloudedge/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-distributedcloudedge - 0.63.0 + 0.64.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-distributedcloudedge:0.63.0' +implementation 'com.google.cloud:google-cloud-distributedcloudedge:0.64.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-distributedcloudedge" % "0.63.0" +libraryDependencies += "com.google.cloud" % "google-cloud-distributedcloudedge" % "0.64.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.63.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-distributedcloudedge/0.64.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/google-cloud-distributedcloudedge-bom/pom.xml b/java-distributedcloudedge/google-cloud-distributedcloudedge-bom/pom.xml index bb4705294adf..240f278a7758 100644 --- a/java-distributedcloudedge/google-cloud-distributedcloudedge-bom/pom.xml +++ b/java-distributedcloudedge/google-cloud-distributedcloudedge-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-distributedcloudedge-bom - 0.64.0 + 0.65.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-distributedcloudedge - 0.64.0 + 0.65.0 com.google.api.grpc grpc-google-cloud-distributedcloudedge-v1 - 0.64.0 + 0.65.0 com.google.api.grpc proto-google-cloud-distributedcloudedge-v1 - 0.64.0 + 0.65.0 diff --git a/java-distributedcloudedge/google-cloud-distributedcloudedge/pom.xml b/java-distributedcloudedge/google-cloud-distributedcloudedge/pom.xml index dbc15a47d27f..bee6149a79ac 100644 --- a/java-distributedcloudedge/google-cloud-distributedcloudedge/pom.xml +++ b/java-distributedcloudedge/google-cloud-distributedcloudedge/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-distributedcloudedge - 0.64.0 + 0.65.0 jar Google Google Distributed Cloud Edge Google Distributed Cloud Edge 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. com.google.cloud google-cloud-distributedcloudedge-parent - 0.64.0 + 0.65.0 google-cloud-distributedcloudedge diff --git a/java-distributedcloudedge/grpc-google-cloud-distributedcloudedge-v1/pom.xml b/java-distributedcloudedge/grpc-google-cloud-distributedcloudedge-v1/pom.xml index 63cefab88c10..ac50f68f62a7 100644 --- a/java-distributedcloudedge/grpc-google-cloud-distributedcloudedge-v1/pom.xml +++ b/java-distributedcloudedge/grpc-google-cloud-distributedcloudedge-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-distributedcloudedge-v1 - 0.64.0 + 0.65.0 grpc-google-cloud-distributedcloudedge-v1 GRPC library for google-cloud-distributedcloudedge com.google.cloud google-cloud-distributedcloudedge-parent - 0.64.0 + 0.65.0 diff --git a/java-distributedcloudedge/pom.xml b/java-distributedcloudedge/pom.xml index 29f7464905d6..c9809af20373 100644 --- a/java-distributedcloudedge/pom.xml +++ b/java-distributedcloudedge/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-distributedcloudedge-parent pom - 0.64.0 + 0.65.0 Google Google Distributed Cloud Edge Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-distributedcloudedge - 0.64.0 + 0.65.0 com.google.api.grpc grpc-google-cloud-distributedcloudedge-v1 - 0.64.0 + 0.65.0 com.google.api.grpc proto-google-cloud-distributedcloudedge-v1 - 0.64.0 + 0.65.0 diff --git a/java-distributedcloudedge/proto-google-cloud-distributedcloudedge-v1/pom.xml b/java-distributedcloudedge/proto-google-cloud-distributedcloudedge-v1/pom.xml index df34e0b011e1..39085f78d352 100644 --- a/java-distributedcloudedge/proto-google-cloud-distributedcloudedge-v1/pom.xml +++ b/java-distributedcloudedge/proto-google-cloud-distributedcloudedge-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-distributedcloudedge-v1 - 0.64.0 + 0.65.0 proto-google-cloud-distributedcloudedge-v1 Proto library for google-cloud-distributedcloudedge com.google.cloud google-cloud-distributedcloudedge-parent - 0.64.0 + 0.65.0 diff --git a/java-dlp/CHANGELOG.md b/java-dlp/CHANGELOG.md index d83bfb0980e4..27c4c60440ad 100644 --- a/java-dlp/CHANGELOG.md +++ b/java-dlp/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 3.72.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 3.71.0 (2025-06-25) ### Dependencies diff --git a/java-dlp/README.md b/java-dlp/README.md index 3692b53d7c94..5272cdcf8f80 100644 --- a/java-dlp/README.md +++ b/java-dlp/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dlp - 3.70.0 + 3.71.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dlp:3.70.0' +implementation 'com.google.cloud:google-cloud-dlp:3.71.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dlp" % "3.70.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dlp" % "3.71.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.70.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dlp/3.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-dlp/google-cloud-dlp-bom/pom.xml b/java-dlp/google-cloud-dlp-bom/pom.xml index 64f02fc4e2b5..d767194eaa47 100644 --- a/java-dlp/google-cloud-dlp-bom/pom.xml +++ b/java-dlp/google-cloud-dlp-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-dlp-bom - 3.71.0 + 3.72.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-dlp - 3.71.0 + 3.72.0 com.google.api.grpc grpc-google-cloud-dlp-v2 - 3.71.0 + 3.72.0 com.google.api.grpc proto-google-cloud-dlp-v2 - 3.71.0 + 3.72.0 diff --git a/java-dlp/google-cloud-dlp/pom.xml b/java-dlp/google-cloud-dlp/pom.xml index eb04ca24f43d..024af8e1f6d5 100644 --- a/java-dlp/google-cloud-dlp/pom.xml +++ b/java-dlp/google-cloud-dlp/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-dlp - 3.71.0 + 3.72.0 jar Google Cloud DLP Java idiomatic client for Google Cloud DLP com.google.cloud google-cloud-dlp-parent - 3.71.0 + 3.72.0 google-cloud-dlp diff --git a/java-dlp/grpc-google-cloud-dlp-v2/pom.xml b/java-dlp/grpc-google-cloud-dlp-v2/pom.xml index 211a84e578eb..b7398ace6f2b 100644 --- a/java-dlp/grpc-google-cloud-dlp-v2/pom.xml +++ b/java-dlp/grpc-google-cloud-dlp-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dlp-v2 - 3.71.0 + 3.72.0 grpc-google-cloud-dlp-v2 GRPC library for grpc-google-cloud-dlp-v2 com.google.cloud google-cloud-dlp-parent - 3.71.0 + 3.72.0 diff --git a/java-dlp/pom.xml b/java-dlp/pom.xml index 8e08adc85bd3..232d858bb3fa 100644 --- a/java-dlp/pom.xml +++ b/java-dlp/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dlp-parent pom - 3.71.0 + 3.72.0 Google Cloud DLP Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api.grpc proto-google-cloud-dlp-v2 - 3.71.0 + 3.72.0 com.google.api.grpc grpc-google-cloud-dlp-v2 - 3.71.0 + 3.72.0 com.google.cloud google-cloud-dlp - 3.71.0 + 3.72.0 diff --git a/java-dlp/proto-google-cloud-dlp-v2/pom.xml b/java-dlp/proto-google-cloud-dlp-v2/pom.xml index e74de8ce79f4..078e3e4b8dd8 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/pom.xml +++ b/java-dlp/proto-google-cloud-dlp-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dlp-v2 - 3.71.0 + 3.72.0 proto-google-cloud-dlp-v2 PROTO library for proto-google-cloud-dlp-v2 com.google.cloud google-cloud-dlp-parent - 3.71.0 + 3.72.0 diff --git a/java-dms/CHANGELOG.md b/java-dms/CHANGELOG.md index 18640d2b245e..8b7f91fc3578 100644 --- a/java-dms/CHANGELOG.md +++ b/java-dms/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.67.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.66.0 (2025-06-25) ### Dependencies diff --git a/java-dms/README.md b/java-dms/README.md index 31b365587280..adbc62e7a385 100644 --- a/java-dms/README.md +++ b/java-dms/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dms - 2.65.0 + 2.66.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dms:2.65.0' +implementation 'com.google.cloud:google-cloud-dms:2.66.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dms" % "2.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dms" % "2.66.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.65.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dms/2.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-dms/google-cloud-dms-bom/pom.xml b/java-dms/google-cloud-dms-bom/pom.xml index 09f4b463d3be..98a8f06f72da 100644 --- a/java-dms/google-cloud-dms-bom/pom.xml +++ b/java-dms/google-cloud-dms-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-dms-bom - 2.66.0 + 2.67.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-dms - 2.66.0 + 2.67.0 com.google.api.grpc grpc-google-cloud-dms-v1 - 2.66.0 + 2.67.0 com.google.api.grpc proto-google-cloud-dms-v1 - 2.66.0 + 2.67.0 diff --git a/java-dms/google-cloud-dms/pom.xml b/java-dms/google-cloud-dms/pom.xml index a0db8559b26a..6bb0384bbd42 100644 --- a/java-dms/google-cloud-dms/pom.xml +++ b/java-dms/google-cloud-dms/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-dms - 2.66.0 + 2.67.0 jar Google Database Migration Service Database Migration Service 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. com.google.cloud google-cloud-dms-parent - 2.66.0 + 2.67.0 google-cloud-dms diff --git a/java-dms/grpc-google-cloud-dms-v1/pom.xml b/java-dms/grpc-google-cloud-dms-v1/pom.xml index 672a03b5e5f3..7ea732a591cf 100644 --- a/java-dms/grpc-google-cloud-dms-v1/pom.xml +++ b/java-dms/grpc-google-cloud-dms-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dms-v1 - 2.66.0 + 2.67.0 grpc-google-cloud-dms-v1 GRPC library for google-cloud-dms com.google.cloud google-cloud-dms-parent - 2.66.0 + 2.67.0 diff --git a/java-dms/pom.xml b/java-dms/pom.xml index cb475fd44f82..eef30329d16b 100644 --- a/java-dms/pom.xml +++ b/java-dms/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dms-parent pom - 2.66.0 + 2.67.0 Google Database Migration Service Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,18 +29,18 @@ com.google.cloud google-cloud-dms - 2.66.0 + 2.67.0 com.google.api.grpc proto-google-cloud-dms-v1 - 2.66.0 + 2.67.0 com.google.api.grpc grpc-google-cloud-dms-v1 - 2.66.0 + 2.67.0 diff --git a/java-dms/proto-google-cloud-dms-v1/pom.xml b/java-dms/proto-google-cloud-dms-v1/pom.xml index 8969aaed7185..2111609874ea 100644 --- a/java-dms/proto-google-cloud-dms-v1/pom.xml +++ b/java-dms/proto-google-cloud-dms-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dms-v1 - 2.66.0 + 2.67.0 proto-google-cloud-dms-v1 Proto library for google-cloud-dms com.google.cloud google-cloud-dms-parent - 2.66.0 + 2.67.0 diff --git a/java-dns/CHANGELOG.md b/java-dns/CHANGELOG.md index 6d7f57986ff2..672b8a613c14 100644 --- a/java-dns/CHANGELOG.md +++ b/java-dns/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.66.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.65.0 (2025-06-25) ### Dependencies diff --git a/java-dns/README.md b/java-dns/README.md index a83fb440eca0..8d87c0fee5d8 100644 --- a/java-dns/README.md +++ b/java-dns/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dns - 2.65.0 + 2.66.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dns:2.65.0' +implementation 'com.google.cloud:google-cloud-dns:2.66.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dns" % "2.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dns" % "2.66.0" ``` diff --git a/java-dns/pom.xml b/java-dns/pom.xml index 78e88a9b8b31..0e6f85bef7ee 100644 --- a/java-dns/pom.xml +++ b/java-dns/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dns jar - 2.65.0 + 2.66.0 Google Cloud DNS Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml diff --git a/java-document-ai/CHANGELOG.md b/java-document-ai/CHANGELOG.md index b749d5c4ae2b..f6fc647a0d39 100644 --- a/java-document-ai/CHANGELOG.md +++ b/java-document-ai/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.72.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.71.0 (2025-06-25) ### Dependencies diff --git a/java-document-ai/README.md b/java-document-ai/README.md index 94900c05efc2..b2211a3edd4f 100644 --- a/java-document-ai/README.md +++ b/java-document-ai/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-document-ai - 2.70.0 + 2.71.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-document-ai:2.70.0' +implementation 'com.google.cloud:google-cloud-document-ai:2.71.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-document-ai" % "2.70.0" +libraryDependencies += "com.google.cloud" % "google-cloud-document-ai" % "2.71.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.70.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-document-ai/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-document-ai/google-cloud-document-ai-bom/pom.xml b/java-document-ai/google-cloud-document-ai-bom/pom.xml index 45485c9b0c56..4b0cf16775ff 100644 --- a/java-document-ai/google-cloud-document-ai-bom/pom.xml +++ b/java-document-ai/google-cloud-document-ai-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-document-ai-bom - 2.71.0 + 2.72.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -21,27 +21,27 @@ com.google.cloud google-cloud-document-ai - 2.71.0 + 2.72.0 com.google.api.grpc grpc-google-cloud-document-ai-v1beta3 - 0.83.0 + 0.84.0 com.google.api.grpc grpc-google-cloud-document-ai-v1 - 2.71.0 + 2.72.0 com.google.api.grpc proto-google-cloud-document-ai-v1beta3 - 0.83.0 + 0.84.0 com.google.api.grpc proto-google-cloud-document-ai-v1 - 2.71.0 + 2.72.0 diff --git a/java-document-ai/google-cloud-document-ai/pom.xml b/java-document-ai/google-cloud-document-ai/pom.xml index 3add5e3e93ef..3093507d330d 100644 --- a/java-document-ai/google-cloud-document-ai/pom.xml +++ b/java-document-ai/google-cloud-document-ai/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-document-ai - 2.71.0 + 2.72.0 jar Google Cloud Document AI Java idiomatic client for Google Cloud Document AI com.google.cloud google-cloud-document-ai-parent - 2.71.0 + 2.72.0 google-cloud-document-ai diff --git a/java-document-ai/grpc-google-cloud-document-ai-v1/pom.xml b/java-document-ai/grpc-google-cloud-document-ai-v1/pom.xml index a6271d3d44c3..979da90b728e 100644 --- a/java-document-ai/grpc-google-cloud-document-ai-v1/pom.xml +++ b/java-document-ai/grpc-google-cloud-document-ai-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-document-ai-v1 - 2.71.0 + 2.72.0 grpc-google-cloud-document-ai-v1 GRPC library for google-cloud-document-ai com.google.cloud google-cloud-document-ai-parent - 2.71.0 + 2.72.0 diff --git a/java-document-ai/grpc-google-cloud-document-ai-v1beta3/pom.xml b/java-document-ai/grpc-google-cloud-document-ai-v1beta3/pom.xml index b49c98626e8d..c3cbbeab3aa1 100644 --- a/java-document-ai/grpc-google-cloud-document-ai-v1beta3/pom.xml +++ b/java-document-ai/grpc-google-cloud-document-ai-v1beta3/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-document-ai-v1beta3 - 0.83.0 + 0.84.0 grpc-google-cloud-document-ai-v1beta3 GRPC library for grpc-google-cloud-document-ai-v1beta3 com.google.cloud google-cloud-document-ai-parent - 2.71.0 + 2.72.0 diff --git a/java-document-ai/pom.xml b/java-document-ai/pom.xml index 20807a7d2cdf..ad3e7a32da91 100644 --- a/java-document-ai/pom.xml +++ b/java-document-ai/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-document-ai-parent pom - 2.71.0 + 2.72.0 Google Cloud Document AI Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-document-ai-v1 - 2.71.0 + 2.72.0 com.google.api.grpc grpc-google-cloud-document-ai-v1 - 2.71.0 + 2.72.0 com.google.cloud google-cloud-document-ai - 2.71.0 + 2.72.0 com.google.api.grpc grpc-google-cloud-document-ai-v1beta3 - 0.83.0 + 0.84.0 com.google.api.grpc proto-google-cloud-document-ai-v1beta3 - 0.83.0 + 0.84.0 diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/pom.xml b/java-document-ai/proto-google-cloud-document-ai-v1/pom.xml index 11938858ac4c..b832407c0361 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/pom.xml +++ b/java-document-ai/proto-google-cloud-document-ai-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-document-ai-v1 - 2.71.0 + 2.72.0 proto-google-cloud-document-ai-v1 Proto library for google-cloud-document-ai com.google.cloud google-cloud-document-ai-parent - 2.71.0 + 2.72.0 diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/pom.xml b/java-document-ai/proto-google-cloud-document-ai-v1beta3/pom.xml index 8e4dcc1c44f6..2d89ca7cb8fc 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/pom.xml +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-document-ai-v1beta3 - 0.83.0 + 0.84.0 proto-google-cloud-document-ai-v1beta3 PROTO library for proto-google-cloud-document-ai-v1beta3 com.google.cloud google-cloud-document-ai-parent - 2.71.0 + 2.72.0 diff --git a/java-domains/CHANGELOG.md b/java-domains/CHANGELOG.md index e52b65620188..f9ac352bff7a 100644 --- a/java-domains/CHANGELOG.md +++ b/java-domains/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 1.65.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 1.64.0 (2025-06-25) ### Dependencies diff --git a/java-domains/README.md b/java-domains/README.md index 0998a3a0af1a..4d16d8b38574 100644 --- a/java-domains/README.md +++ b/java-domains/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-domains - 1.63.0 + 1.64.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-domains:1.63.0' +implementation 'com.google.cloud:google-cloud-domains:1.64.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-domains" % "1.63.0" +libraryDependencies += "com.google.cloud" % "google-cloud-domains" % "1.64.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.63.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-domains/1.64.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/google-cloud-domains-bom/pom.xml b/java-domains/google-cloud-domains-bom/pom.xml index 3ebee0fd8d27..620016617c15 100644 --- a/java-domains/google-cloud-domains-bom/pom.xml +++ b/java-domains/google-cloud-domains-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-domains-bom - 1.64.0 + 1.65.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,37 +27,37 @@ com.google.cloud google-cloud-domains - 1.64.0 + 1.65.0 com.google.api.grpc grpc-google-cloud-domains-v1beta1 - 0.72.0 + 0.73.0 com.google.api.grpc grpc-google-cloud-domains-v1alpha2 - 0.72.0 + 0.73.0 com.google.api.grpc grpc-google-cloud-domains-v1 - 1.64.0 + 1.65.0 com.google.api.grpc proto-google-cloud-domains-v1beta1 - 0.72.0 + 0.73.0 com.google.api.grpc proto-google-cloud-domains-v1alpha2 - 0.72.0 + 0.73.0 com.google.api.grpc proto-google-cloud-domains-v1 - 1.64.0 + 1.65.0 diff --git a/java-domains/google-cloud-domains/pom.xml b/java-domains/google-cloud-domains/pom.xml index 3e5e0c3e5f29..5edf7ef466d0 100644 --- a/java-domains/google-cloud-domains/pom.xml +++ b/java-domains/google-cloud-domains/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-domains - 1.64.0 + 1.65.0 jar Google Cloud Domains allows you to register and manage domains by using Cloud Domains. com.google.cloud google-cloud-domains-parent - 1.64.0 + 1.65.0 google-cloud-domains diff --git a/java-domains/grpc-google-cloud-domains-v1/pom.xml b/java-domains/grpc-google-cloud-domains-v1/pom.xml index 2644d034ef65..1fd6b3e8c272 100644 --- a/java-domains/grpc-google-cloud-domains-v1/pom.xml +++ b/java-domains/grpc-google-cloud-domains-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-domains-v1 - 1.64.0 + 1.65.0 grpc-google-cloud-domains-v1 GRPC library for google-cloud-domains com.google.cloud google-cloud-domains-parent - 1.64.0 + 1.65.0 diff --git a/java-domains/grpc-google-cloud-domains-v1alpha2/pom.xml b/java-domains/grpc-google-cloud-domains-v1alpha2/pom.xml index 1565a6b7e2d7..df12bf8a5974 100644 --- a/java-domains/grpc-google-cloud-domains-v1alpha2/pom.xml +++ b/java-domains/grpc-google-cloud-domains-v1alpha2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-domains-v1alpha2 - 0.72.0 + 0.73.0 grpc-google-cloud-domains-v1alpha2 GRPC library for google-cloud-domains com.google.cloud google-cloud-domains-parent - 1.64.0 + 1.65.0 diff --git a/java-domains/grpc-google-cloud-domains-v1beta1/pom.xml b/java-domains/grpc-google-cloud-domains-v1beta1/pom.xml index 3176576439c0..db6cd1aa1da6 100644 --- a/java-domains/grpc-google-cloud-domains-v1beta1/pom.xml +++ b/java-domains/grpc-google-cloud-domains-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-domains-v1beta1 - 0.72.0 + 0.73.0 grpc-google-cloud-domains-v1beta1 GRPC library for google-cloud-domains com.google.cloud google-cloud-domains-parent - 1.64.0 + 1.65.0 diff --git a/java-domains/pom.xml b/java-domains/pom.xml index 26d8eadf87b0..2038a768903f 100644 --- a/java-domains/pom.xml +++ b/java-domains/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-domains-parent pom - 1.64.0 + 1.65.0 Google Cloud Domains Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.cloud google-cloud-domains - 1.64.0 + 1.65.0 com.google.api.grpc proto-google-cloud-domains-v1 - 1.64.0 + 1.65.0 com.google.api.grpc grpc-google-cloud-domains-v1 - 1.64.0 + 1.65.0 com.google.api.grpc proto-google-cloud-domains-v1alpha2 - 0.72.0 + 0.73.0 com.google.api.grpc grpc-google-cloud-domains-v1alpha2 - 0.72.0 + 0.73.0 com.google.api.grpc proto-google-cloud-domains-v1beta1 - 0.72.0 + 0.73.0 com.google.api.grpc grpc-google-cloud-domains-v1beta1 - 0.72.0 + 0.73.0 diff --git a/java-domains/proto-google-cloud-domains-v1/pom.xml b/java-domains/proto-google-cloud-domains-v1/pom.xml index d9e27c0c156f..b08e9b61c610 100644 --- a/java-domains/proto-google-cloud-domains-v1/pom.xml +++ b/java-domains/proto-google-cloud-domains-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-domains-v1 - 1.64.0 + 1.65.0 proto-google-cloud-domains-v1 Proto library for google-cloud-domains com.google.cloud google-cloud-domains-parent - 1.64.0 + 1.65.0 diff --git a/java-domains/proto-google-cloud-domains-v1alpha2/pom.xml b/java-domains/proto-google-cloud-domains-v1alpha2/pom.xml index 8af029dd05b3..8ebe10ba8086 100644 --- a/java-domains/proto-google-cloud-domains-v1alpha2/pom.xml +++ b/java-domains/proto-google-cloud-domains-v1alpha2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-domains-v1alpha2 - 0.72.0 + 0.73.0 proto-google-cloud-domains-v1alpha2 Proto library for google-cloud-domains com.google.cloud google-cloud-domains-parent - 1.64.0 + 1.65.0 diff --git a/java-domains/proto-google-cloud-domains-v1beta1/pom.xml b/java-domains/proto-google-cloud-domains-v1beta1/pom.xml index 157729e47e67..65a1f012a52e 100644 --- a/java-domains/proto-google-cloud-domains-v1beta1/pom.xml +++ b/java-domains/proto-google-cloud-domains-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-domains-v1beta1 - 0.72.0 + 0.73.0 proto-google-cloud-domains-v1beta1 Proto library for google-cloud-domains com.google.cloud google-cloud-domains-parent - 1.64.0 + 1.65.0 diff --git a/java-edgenetwork/CHANGELOG.md b/java-edgenetwork/CHANGELOG.md index f3a9f6fd7d38..0b5ac783895f 100644 --- a/java-edgenetwork/CHANGELOG.md +++ b/java-edgenetwork/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.36.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.35.0 (2025-06-25) ### Dependencies diff --git a/java-edgenetwork/README.md b/java-edgenetwork/README.md index 7a76317a2fb6..596f6f056083 100644 --- a/java-edgenetwork/README.md +++ b/java-edgenetwork/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-edgenetwork - 0.34.0 + 0.35.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-edgenetwork:0.34.0' +implementation 'com.google.cloud:google-cloud-edgenetwork:0.35.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-edgenetwork" % "0.34.0" +libraryDependencies += "com.google.cloud" % "google-cloud-edgenetwork" % "0.35.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.34.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-edgenetwork/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-edgenetwork/google-cloud-edgenetwork-bom/pom.xml b/java-edgenetwork/google-cloud-edgenetwork-bom/pom.xml index 477a7632fd19..252e1753fb7c 100644 --- a/java-edgenetwork/google-cloud-edgenetwork-bom/pom.xml +++ b/java-edgenetwork/google-cloud-edgenetwork-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-edgenetwork-bom - 0.35.0 + 0.36.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-edgenetwork - 0.35.0 + 0.36.0 com.google.api.grpc grpc-google-cloud-edgenetwork-v1 - 0.35.0 + 0.36.0 com.google.api.grpc proto-google-cloud-edgenetwork-v1 - 0.35.0 + 0.36.0 diff --git a/java-edgenetwork/google-cloud-edgenetwork/pom.xml b/java-edgenetwork/google-cloud-edgenetwork/pom.xml index e93982139d52..7df32fa653b7 100644 --- a/java-edgenetwork/google-cloud-edgenetwork/pom.xml +++ b/java-edgenetwork/google-cloud-edgenetwork/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-edgenetwork - 0.35.0 + 0.36.0 jar Google Distributed Cloud Edge Network API Distributed Cloud Edge Network API Network management API for Distributed Cloud Edge. com.google.cloud google-cloud-edgenetwork-parent - 0.35.0 + 0.36.0 google-cloud-edgenetwork diff --git a/java-edgenetwork/grpc-google-cloud-edgenetwork-v1/pom.xml b/java-edgenetwork/grpc-google-cloud-edgenetwork-v1/pom.xml index 88750dae83ee..ef22c6d85c80 100644 --- a/java-edgenetwork/grpc-google-cloud-edgenetwork-v1/pom.xml +++ b/java-edgenetwork/grpc-google-cloud-edgenetwork-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-edgenetwork-v1 - 0.35.0 + 0.36.0 grpc-google-cloud-edgenetwork-v1 GRPC library for google-cloud-edgenetwork com.google.cloud google-cloud-edgenetwork-parent - 0.35.0 + 0.36.0 diff --git a/java-edgenetwork/pom.xml b/java-edgenetwork/pom.xml index f3d73a6e0000..daa9aa77b55b 100644 --- a/java-edgenetwork/pom.xml +++ b/java-edgenetwork/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-edgenetwork-parent pom - 0.35.0 + 0.36.0 Google Distributed Cloud Edge Network API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-edgenetwork - 0.35.0 + 0.36.0 com.google.api.grpc grpc-google-cloud-edgenetwork-v1 - 0.35.0 + 0.36.0 com.google.api.grpc proto-google-cloud-edgenetwork-v1 - 0.35.0 + 0.36.0 diff --git a/java-edgenetwork/proto-google-cloud-edgenetwork-v1/pom.xml b/java-edgenetwork/proto-google-cloud-edgenetwork-v1/pom.xml index b242af5bb473..761e50987654 100644 --- a/java-edgenetwork/proto-google-cloud-edgenetwork-v1/pom.xml +++ b/java-edgenetwork/proto-google-cloud-edgenetwork-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-edgenetwork-v1 - 0.35.0 + 0.36.0 proto-google-cloud-edgenetwork-v1 Proto library for google-cloud-edgenetwork com.google.cloud google-cloud-edgenetwork-parent - 0.35.0 + 0.36.0 diff --git a/java-enterpriseknowledgegraph/CHANGELOG.md b/java-enterpriseknowledgegraph/CHANGELOG.md index 79c6602b6bff..7120a1a6b14a 100644 --- a/java-enterpriseknowledgegraph/CHANGELOG.md +++ b/java-enterpriseknowledgegraph/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.64.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.63.0 (2025-06-25) ### Dependencies diff --git a/java-enterpriseknowledgegraph/README.md b/java-enterpriseknowledgegraph/README.md index 30d4de38c667..d9413fff707b 100644 --- a/java-enterpriseknowledgegraph/README.md +++ b/java-enterpriseknowledgegraph/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-enterpriseknowledgegraph - 0.62.0 + 0.63.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-enterpriseknowledgegraph:0.62.0' +implementation 'com.google.cloud:google-cloud-enterpriseknowledgegraph:0.63.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-enterpriseknowledgegraph" % "0.62.0" +libraryDependencies += "com.google.cloud" % "google-cloud-enterpriseknowledgegraph" % "0.63.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-enterpriseknowledgegraph.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-enterpriseknowledgegraph/0.62.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-enterpriseknowledgegraph/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/google-cloud-enterpriseknowledgegraph-bom/pom.xml b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph-bom/pom.xml index 9f1ad9db010f..9bae8b770667 100644 --- a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph-bom/pom.xml +++ b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-enterpriseknowledgegraph-bom - 0.63.0 + 0.64.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-enterpriseknowledgegraph - 0.63.0 + 0.64.0 com.google.api.grpc grpc-google-cloud-enterpriseknowledgegraph-v1 - 0.63.0 + 0.64.0 com.google.api.grpc proto-google-cloud-enterpriseknowledgegraph-v1 - 0.63.0 + 0.64.0 diff --git a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/pom.xml b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/pom.xml index 058e4c0a8a16..aa8aec7b9cf1 100644 --- a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/pom.xml +++ b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-enterpriseknowledgegraph - 0.63.0 + 0.64.0 jar Google Enterprise Knowledge Graph Enterprise Knowledge Graph Enterprise Knowledge Graph organizes siloed information into organizational knowledge, which involves consolidating, standardizing, and reconciling data in an efficient and useful way. com.google.cloud google-cloud-enterpriseknowledgegraph-parent - 0.63.0 + 0.64.0 google-cloud-enterpriseknowledgegraph diff --git a/java-enterpriseknowledgegraph/grpc-google-cloud-enterpriseknowledgegraph-v1/pom.xml b/java-enterpriseknowledgegraph/grpc-google-cloud-enterpriseknowledgegraph-v1/pom.xml index 0f786310afaa..069fd177dfbb 100644 --- a/java-enterpriseknowledgegraph/grpc-google-cloud-enterpriseknowledgegraph-v1/pom.xml +++ b/java-enterpriseknowledgegraph/grpc-google-cloud-enterpriseknowledgegraph-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-enterpriseknowledgegraph-v1 - 0.63.0 + 0.64.0 grpc-google-cloud-enterpriseknowledgegraph-v1 GRPC library for google-cloud-enterpriseknowledgegraph com.google.cloud google-cloud-enterpriseknowledgegraph-parent - 0.63.0 + 0.64.0 diff --git a/java-enterpriseknowledgegraph/pom.xml b/java-enterpriseknowledgegraph/pom.xml index 62773bfee6c3..7da070898f70 100644 --- a/java-enterpriseknowledgegraph/pom.xml +++ b/java-enterpriseknowledgegraph/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-enterpriseknowledgegraph-parent pom - 0.63.0 + 0.64.0 Google Enterprise Knowledge Graph Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-enterpriseknowledgegraph - 0.63.0 + 0.64.0 com.google.api.grpc grpc-google-cloud-enterpriseknowledgegraph-v1 - 0.63.0 + 0.64.0 com.google.api.grpc proto-google-cloud-enterpriseknowledgegraph-v1 - 0.63.0 + 0.64.0 diff --git a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/pom.xml b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/pom.xml index 9bf54c0f4703..4a14d82c671d 100644 --- a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/pom.xml +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-enterpriseknowledgegraph-v1 - 0.63.0 + 0.64.0 proto-google-cloud-enterpriseknowledgegraph-v1 Proto library for google-cloud-enterpriseknowledgegraph com.google.cloud google-cloud-enterpriseknowledgegraph-parent - 0.63.0 + 0.64.0 diff --git a/java-errorreporting/CHANGELOG.md b/java-errorreporting/CHANGELOG.md index 659f060e462e..64ff6be9dc7a 100644 --- a/java-errorreporting/CHANGELOG.md +++ b/java-errorreporting/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.189.0-beta (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.188.0-beta (2025-06-25) ### Dependencies diff --git a/java-errorreporting/README.md b/java-errorreporting/README.md index 86db24410107..f3574836f4f2 100644 --- a/java-errorreporting/README.md +++ b/java-errorreporting/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-errorreporting - 0.187.0-beta + 0.188.0-beta ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-errorreporting:0.187.0-beta' +implementation 'com.google.cloud:google-cloud-errorreporting:0.188.0-beta' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-errorreporting" % "0.187.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-errorreporting" % "0.188.0-beta" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-errorreporting.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-errorreporting/0.187.0-beta +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-errorreporting/0.188.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-errorreporting/google-cloud-errorreporting-bom/pom.xml b/java-errorreporting/google-cloud-errorreporting-bom/pom.xml index e4e5a025bb4e..5ab28e863b41 100644 --- a/java-errorreporting/google-cloud-errorreporting-bom/pom.xml +++ b/java-errorreporting/google-cloud-errorreporting-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-errorreporting-bom - 0.188.0-beta + 0.189.0-beta pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-errorreporting - 0.188.0-beta + 0.189.0-beta com.google.api.grpc grpc-google-cloud-error-reporting-v1beta1 - 0.154.0 + 0.155.0 com.google.api.grpc proto-google-cloud-error-reporting-v1beta1 - 0.154.0 + 0.155.0 diff --git a/java-errorreporting/google-cloud-errorreporting/pom.xml b/java-errorreporting/google-cloud-errorreporting/pom.xml index 013f45d8b781..9598a03e557b 100644 --- a/java-errorreporting/google-cloud-errorreporting/pom.xml +++ b/java-errorreporting/google-cloud-errorreporting/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-errorreporting - 0.188.0-beta + 0.189.0-beta jar Google Cloud Error Reporting Java idiomatic client for Google Cloud Error Reporting com.google.cloud google-cloud-errorreporting-parent - 0.188.0-beta + 0.189.0-beta google-cloud-errorreporting diff --git a/java-errorreporting/grpc-google-cloud-error-reporting-v1beta1/pom.xml b/java-errorreporting/grpc-google-cloud-error-reporting-v1beta1/pom.xml index 60a2eb48fb67..d72adc7d6850 100644 --- a/java-errorreporting/grpc-google-cloud-error-reporting-v1beta1/pom.xml +++ b/java-errorreporting/grpc-google-cloud-error-reporting-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-error-reporting-v1beta1 - 0.154.0 + 0.155.0 grpc-google-cloud-error-reporting-v1beta1 GRPC library for grpc-google-cloud-error-reporting-v1beta1 com.google.cloud google-cloud-errorreporting-parent - 0.188.0-beta + 0.189.0-beta diff --git a/java-errorreporting/pom.xml b/java-errorreporting/pom.xml index 1e649451c63f..6dddf37dda97 100644 --- a/java-errorreporting/pom.xml +++ b/java-errorreporting/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-errorreporting-parent pom - 0.188.0-beta + 0.189.0-beta Google Cloud Error Reporting Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,18 +29,18 @@ com.google.cloud google-cloud-errorreporting - 0.188.0-beta + 0.189.0-beta com.google.api.grpc proto-google-cloud-error-reporting-v1beta1 - 0.154.0 + 0.155.0 com.google.api.grpc grpc-google-cloud-error-reporting-v1beta1 - 0.154.0 + 0.155.0 diff --git a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/pom.xml b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/pom.xml index 429442506a0b..816b692d513f 100644 --- a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/pom.xml +++ b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-error-reporting-v1beta1 - 0.154.0 + 0.155.0 proto-google-cloud-error-reporting-v1beta1 PROTO library for proto-google-cloud-error-reporting-v1beta1 com.google.cloud google-cloud-errorreporting-parent - 0.188.0-beta + 0.189.0-beta diff --git a/java-essential-contacts/CHANGELOG.md b/java-essential-contacts/CHANGELOG.md index 25f116d77005..4aa18f360543 100644 --- a/java-essential-contacts/CHANGELOG.md +++ b/java-essential-contacts/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.68.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.67.0 (2025-06-25) ### Dependencies diff --git a/java-essential-contacts/README.md b/java-essential-contacts/README.md index aee94816d210..1091dfdecfb0 100644 --- a/java-essential-contacts/README.md +++ b/java-essential-contacts/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-essential-contacts - 2.66.0 + 2.67.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-essential-contacts:2.66.0' +implementation 'com.google.cloud:google-cloud-essential-contacts:2.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-essential-contacts" % "2.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-essential-contacts" % "2.67.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-essential-contacts/2.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-essential-contacts/google-cloud-essential-contacts-bom/pom.xml b/java-essential-contacts/google-cloud-essential-contacts-bom/pom.xml index 092bcd98c629..d5d4326af732 100644 --- a/java-essential-contacts/google-cloud-essential-contacts-bom/pom.xml +++ b/java-essential-contacts/google-cloud-essential-contacts-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-essential-contacts-bom - 2.67.0 + 2.68.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-essential-contacts - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-essential-contacts-v1 - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-cloud-essential-contacts-v1 - 2.67.0 + 2.68.0 diff --git a/java-essential-contacts/google-cloud-essential-contacts/pom.xml b/java-essential-contacts/google-cloud-essential-contacts/pom.xml index 364f1e6dcfc2..b4820a7f7a18 100644 --- a/java-essential-contacts/google-cloud-essential-contacts/pom.xml +++ b/java-essential-contacts/google-cloud-essential-contacts/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-essential-contacts - 2.67.0 + 2.68.0 jar Google Essential Contacts API Essential Contacts API helps you customize who receives notifications by providing your own list of contacts in many Google Cloud services. com.google.cloud google-cloud-essential-contacts-parent - 2.67.0 + 2.68.0 google-cloud-essential-contacts diff --git a/java-essential-contacts/grpc-google-cloud-essential-contacts-v1/pom.xml b/java-essential-contacts/grpc-google-cloud-essential-contacts-v1/pom.xml index 29c88cbefa08..396ad515edc5 100644 --- a/java-essential-contacts/grpc-google-cloud-essential-contacts-v1/pom.xml +++ b/java-essential-contacts/grpc-google-cloud-essential-contacts-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-essential-contacts-v1 - 2.67.0 + 2.68.0 grpc-google-cloud-essential-contacts-v1 GRPC library for google-cloud-essential-contacts com.google.cloud google-cloud-essential-contacts-parent - 2.67.0 + 2.68.0 diff --git a/java-essential-contacts/pom.xml b/java-essential-contacts/pom.xml index 29a28c5e898c..3af4436a48ff 100644 --- a/java-essential-contacts/pom.xml +++ b/java-essential-contacts/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-essential-contacts-parent pom - 2.67.0 + 2.68.0 Google Essential Contacts API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-essential-contacts - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-essential-contacts-v1 - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-cloud-essential-contacts-v1 - 2.67.0 + 2.68.0 diff --git a/java-essential-contacts/proto-google-cloud-essential-contacts-v1/pom.xml b/java-essential-contacts/proto-google-cloud-essential-contacts-v1/pom.xml index fa071ed4ae84..cfae927f00a6 100644 --- a/java-essential-contacts/proto-google-cloud-essential-contacts-v1/pom.xml +++ b/java-essential-contacts/proto-google-cloud-essential-contacts-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-essential-contacts-v1 - 2.67.0 + 2.68.0 proto-google-cloud-essential-contacts-v1 Proto library for google-cloud-essential-contacts com.google.cloud google-cloud-essential-contacts-parent - 2.67.0 + 2.68.0 diff --git a/java-eventarc-publishing/CHANGELOG.md b/java-eventarc-publishing/CHANGELOG.md index 5ad28e432cbe..a7f4bf531716 100644 --- a/java-eventarc-publishing/CHANGELOG.md +++ b/java-eventarc-publishing/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.68.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.67.0 (2025-06-25) ### Dependencies diff --git a/java-eventarc-publishing/README.md b/java-eventarc-publishing/README.md index 4bd0157ba241..4b65afaee8e9 100644 --- a/java-eventarc-publishing/README.md +++ b/java-eventarc-publishing/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-eventarc-publishing - 0.66.0 + 0.67.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-eventarc-publishing:0.66.0' +implementation 'com.google.cloud:google-cloud-eventarc-publishing:0.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-eventarc-publishing" % "0.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-eventarc-publishing" % "0.67.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-eventarc-publishing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc-publishing/0.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc-publishing/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-eventarc-publishing/google-cloud-eventarc-publishing-bom/pom.xml b/java-eventarc-publishing/google-cloud-eventarc-publishing-bom/pom.xml index a2a4bb226440..f99f27d87640 100644 --- a/java-eventarc-publishing/google-cloud-eventarc-publishing-bom/pom.xml +++ b/java-eventarc-publishing/google-cloud-eventarc-publishing-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-eventarc-publishing-bom - 0.67.0 + 0.68.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-eventarc-publishing - 0.67.0 + 0.68.0 com.google.api.grpc grpc-google-cloud-eventarc-publishing-v1 - 0.67.0 + 0.68.0 com.google.api.grpc proto-google-cloud-eventarc-publishing-v1 - 0.67.0 + 0.68.0 diff --git a/java-eventarc-publishing/google-cloud-eventarc-publishing/pom.xml b/java-eventarc-publishing/google-cloud-eventarc-publishing/pom.xml index e24a615edcc6..793b839cfb25 100644 --- a/java-eventarc-publishing/google-cloud-eventarc-publishing/pom.xml +++ b/java-eventarc-publishing/google-cloud-eventarc-publishing/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-eventarc-publishing - 0.67.0 + 0.68.0 jar Google Eventarc Publishing Eventarc Publishing lets you asynchronously deliver events from Google services, SaaS, and your own apps using loosely coupled services that react to state changes. com.google.cloud google-cloud-eventarc-publishing-parent - 0.67.0 + 0.68.0 google-cloud-eventarc-publishing diff --git a/java-eventarc-publishing/grpc-google-cloud-eventarc-publishing-v1/pom.xml b/java-eventarc-publishing/grpc-google-cloud-eventarc-publishing-v1/pom.xml index 88a8c3283825..5a7641543c3c 100644 --- a/java-eventarc-publishing/grpc-google-cloud-eventarc-publishing-v1/pom.xml +++ b/java-eventarc-publishing/grpc-google-cloud-eventarc-publishing-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-eventarc-publishing-v1 - 0.67.0 + 0.68.0 grpc-google-cloud-eventarc-publishing-v1 GRPC library for google-cloud-eventarc-publishing com.google.cloud google-cloud-eventarc-publishing-parent - 0.67.0 + 0.68.0 diff --git a/java-eventarc-publishing/pom.xml b/java-eventarc-publishing/pom.xml index b4a8ebc33562..3701d2e1652d 100644 --- a/java-eventarc-publishing/pom.xml +++ b/java-eventarc-publishing/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-eventarc-publishing-parent pom - 0.67.0 + 0.68.0 Google Eventarc Publishing Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-eventarc-publishing - 0.67.0 + 0.68.0 com.google.api.grpc grpc-google-cloud-eventarc-publishing-v1 - 0.67.0 + 0.68.0 com.google.api.grpc proto-google-cloud-eventarc-publishing-v1 - 0.67.0 + 0.68.0 diff --git a/java-eventarc-publishing/proto-google-cloud-eventarc-publishing-v1/pom.xml b/java-eventarc-publishing/proto-google-cloud-eventarc-publishing-v1/pom.xml index af2e4b2e016b..2220df82f654 100644 --- a/java-eventarc-publishing/proto-google-cloud-eventarc-publishing-v1/pom.xml +++ b/java-eventarc-publishing/proto-google-cloud-eventarc-publishing-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-eventarc-publishing-v1 - 0.67.0 + 0.68.0 proto-google-cloud-eventarc-publishing-v1 Proto library for google-cloud-eventarc-publishing com.google.cloud google-cloud-eventarc-publishing-parent - 0.67.0 + 0.68.0 diff --git a/java-eventarc/CHANGELOG.md b/java-eventarc/CHANGELOG.md index 464b9121da7d..cd220ae71eeb 100644 --- a/java-eventarc/CHANGELOG.md +++ b/java-eventarc/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 1.68.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 1.67.0 (2025-06-25) ### Dependencies diff --git a/java-eventarc/README.md b/java-eventarc/README.md index 201c8190c78b..98c2afae5e15 100644 --- a/java-eventarc/README.md +++ b/java-eventarc/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-eventarc - 1.66.0 + 1.67.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-eventarc:1.66.0' +implementation 'com.google.cloud:google-cloud-eventarc:1.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-eventarc" % "1.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-eventarc" % "1.67.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc/1.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-eventarc/google-cloud-eventarc-bom/pom.xml b/java-eventarc/google-cloud-eventarc-bom/pom.xml index f94d028098ca..44b43e491c6b 100644 --- a/java-eventarc/google-cloud-eventarc-bom/pom.xml +++ b/java-eventarc/google-cloud-eventarc-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-eventarc-bom - 1.67.0 + 1.68.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-eventarc - 1.67.0 + 1.68.0 com.google.api.grpc grpc-google-cloud-eventarc-v1 - 1.67.0 + 1.68.0 com.google.api.grpc proto-google-cloud-eventarc-v1 - 1.67.0 + 1.68.0 diff --git a/java-eventarc/google-cloud-eventarc/pom.xml b/java-eventarc/google-cloud-eventarc/pom.xml index c213c0101927..67dba27438de 100644 --- a/java-eventarc/google-cloud-eventarc/pom.xml +++ b/java-eventarc/google-cloud-eventarc/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-eventarc - 1.67.0 + 1.68.0 jar Google Eventarc Eventarc lets you asynchronously deliver events from Google services, SaaS, and your own apps using loosely coupled services that react to state changes. com.google.cloud google-cloud-eventarc-parent - 1.67.0 + 1.68.0 google-cloud-eventarc diff --git a/java-eventarc/grpc-google-cloud-eventarc-v1/pom.xml b/java-eventarc/grpc-google-cloud-eventarc-v1/pom.xml index bad95559eeb4..9301d310a21e 100644 --- a/java-eventarc/grpc-google-cloud-eventarc-v1/pom.xml +++ b/java-eventarc/grpc-google-cloud-eventarc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-eventarc-v1 - 1.67.0 + 1.68.0 grpc-google-cloud-eventarc-v1 GRPC library for google-cloud-eventarc com.google.cloud google-cloud-eventarc-parent - 1.67.0 + 1.68.0 diff --git a/java-eventarc/pom.xml b/java-eventarc/pom.xml index 8c05e7a13bc5..8a01b48fb530 100644 --- a/java-eventarc/pom.xml +++ b/java-eventarc/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-eventarc-parent pom - 1.67.0 + 1.68.0 Google Eventarc Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-eventarc - 1.67.0 + 1.68.0 com.google.api.grpc grpc-google-cloud-eventarc-v1 - 1.67.0 + 1.68.0 com.google.api.grpc proto-google-cloud-eventarc-v1 - 1.67.0 + 1.68.0 diff --git a/java-eventarc/proto-google-cloud-eventarc-v1/pom.xml b/java-eventarc/proto-google-cloud-eventarc-v1/pom.xml index 0a803093e44f..70692b17a1e0 100644 --- a/java-eventarc/proto-google-cloud-eventarc-v1/pom.xml +++ b/java-eventarc/proto-google-cloud-eventarc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-eventarc-v1 - 1.67.0 + 1.68.0 proto-google-cloud-eventarc-v1 Proto library for google-cloud-eventarc com.google.cloud google-cloud-eventarc-parent - 1.67.0 + 1.68.0 diff --git a/java-filestore/CHANGELOG.md b/java-filestore/CHANGELOG.md index 1357f420a140..0bf93248787f 100644 --- a/java-filestore/CHANGELOG.md +++ b/java-filestore/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 1.69.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 1.68.0 (2025-06-25) ### Dependencies diff --git a/java-filestore/README.md b/java-filestore/README.md index 8ba14566ad15..5da1938d4765 100644 --- a/java-filestore/README.md +++ b/java-filestore/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-filestore - 1.67.0 + 1.68.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-filestore:1.67.0' +implementation 'com.google.cloud:google-cloud-filestore:1.68.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-filestore" % "1.67.0" +libraryDependencies += "com.google.cloud" % "google-cloud-filestore" % "1.68.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.67.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-filestore/1.68.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/google-cloud-filestore-bom/pom.xml b/java-filestore/google-cloud-filestore-bom/pom.xml index 51582eca6019..a9cbc1f42692 100644 --- a/java-filestore/google-cloud-filestore-bom/pom.xml +++ b/java-filestore/google-cloud-filestore-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-filestore-bom - 1.68.0 + 1.69.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-filestore - 1.68.0 + 1.69.0 com.google.api.grpc grpc-google-cloud-filestore-v1beta1 - 0.70.0 + 0.71.0 com.google.api.grpc grpc-google-cloud-filestore-v1 - 1.68.0 + 1.69.0 com.google.api.grpc proto-google-cloud-filestore-v1 - 1.68.0 + 1.69.0 com.google.api.grpc proto-google-cloud-filestore-v1beta1 - 0.70.0 + 0.71.0 diff --git a/java-filestore/google-cloud-filestore/pom.xml b/java-filestore/google-cloud-filestore/pom.xml index d0146206b40c..acfa986aaca4 100644 --- a/java-filestore/google-cloud-filestore/pom.xml +++ b/java-filestore/google-cloud-filestore/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-filestore - 1.68.0 + 1.69.0 jar Google Cloud Filestore API Cloud Filestore API 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. com.google.cloud google-cloud-filestore-parent - 1.68.0 + 1.69.0 google-cloud-filestore diff --git a/java-filestore/grpc-google-cloud-filestore-v1/pom.xml b/java-filestore/grpc-google-cloud-filestore-v1/pom.xml index 9dc957951cfc..b0a881b9a760 100644 --- a/java-filestore/grpc-google-cloud-filestore-v1/pom.xml +++ b/java-filestore/grpc-google-cloud-filestore-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-filestore-v1 - 1.68.0 + 1.69.0 grpc-google-cloud-filestore-v1 GRPC library for google-cloud-filestore com.google.cloud google-cloud-filestore-parent - 1.68.0 + 1.69.0 diff --git a/java-filestore/grpc-google-cloud-filestore-v1beta1/pom.xml b/java-filestore/grpc-google-cloud-filestore-v1beta1/pom.xml index 38705c30e620..20fadce6883e 100644 --- a/java-filestore/grpc-google-cloud-filestore-v1beta1/pom.xml +++ b/java-filestore/grpc-google-cloud-filestore-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-filestore-v1beta1 - 0.70.0 + 0.71.0 grpc-google-cloud-filestore-v1beta1 GRPC library for google-cloud-filestore com.google.cloud google-cloud-filestore-parent - 1.68.0 + 1.69.0 diff --git a/java-filestore/pom.xml b/java-filestore/pom.xml index 578fda6ba767..cf0625c7b689 100644 --- a/java-filestore/pom.xml +++ b/java-filestore/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-filestore-parent pom - 1.68.0 + 1.69.0 Google Cloud Filestore API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-filestore - 1.68.0 + 1.69.0 com.google.api.grpc grpc-google-cloud-filestore-v1beta1 - 0.70.0 + 0.71.0 com.google.api.grpc grpc-google-cloud-filestore-v1 - 1.68.0 + 1.69.0 com.google.api.grpc proto-google-cloud-filestore-v1 - 1.68.0 + 1.69.0 com.google.api.grpc proto-google-cloud-filestore-v1beta1 - 0.70.0 + 0.71.0 diff --git a/java-filestore/proto-google-cloud-filestore-v1/pom.xml b/java-filestore/proto-google-cloud-filestore-v1/pom.xml index 65d5c7a2d498..9f3beb31b11a 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/pom.xml +++ b/java-filestore/proto-google-cloud-filestore-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-filestore-v1 - 1.68.0 + 1.69.0 proto-google-cloud-filestore-v1 Proto library for google-cloud-filestore com.google.cloud google-cloud-filestore-parent - 1.68.0 + 1.69.0 diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/pom.xml b/java-filestore/proto-google-cloud-filestore-v1beta1/pom.xml index 17453e119431..f514a3a2d6fb 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/pom.xml +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-filestore-v1beta1 - 0.70.0 + 0.71.0 proto-google-cloud-filestore-v1beta1 Proto library for google-cloud-filestore com.google.cloud google-cloud-filestore-parent - 1.68.0 + 1.69.0 diff --git a/java-financialservices/CHANGELOG.md b/java-financialservices/CHANGELOG.md index c3c791d8e735..fd2e346b0f92 100644 --- a/java-financialservices/CHANGELOG.md +++ b/java-financialservices/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.9.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.8.0 (2025-06-25) ### Dependencies diff --git a/java-financialservices/README.md b/java-financialservices/README.md index caca7bec7b4e..1d8f28a68a72 100644 --- a/java-financialservices/README.md +++ b/java-financialservices/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-financialservices - 0.7.0 + 0.8.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-financialservices:0.7.0' +implementation 'com.google.cloud:google-cloud-financialservices:0.8.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-financialservices" % "0.7.0" +libraryDependencies += "com.google.cloud" % "google-cloud-financialservices" % "0.8.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-financialservices.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-financialservices/0.7.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-financialservices/0.8.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/google-cloud-financialservices-bom/pom.xml b/java-financialservices/google-cloud-financialservices-bom/pom.xml index f0d281006f43..819c2d427133 100644 --- a/java-financialservices/google-cloud-financialservices-bom/pom.xml +++ b/java-financialservices/google-cloud-financialservices-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-financialservices-bom - 0.8.0 + 0.9.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-financialservices - 0.8.0 + 0.9.0 com.google.api.grpc grpc-google-cloud-financialservices-v1 - 0.8.0 + 0.9.0 com.google.api.grpc proto-google-cloud-financialservices-v1 - 0.8.0 + 0.9.0 diff --git a/java-financialservices/google-cloud-financialservices/pom.xml b/java-financialservices/google-cloud-financialservices/pom.xml index ea749edc6fde..bce70058d5cd 100644 --- a/java-financialservices/google-cloud-financialservices/pom.xml +++ b/java-financialservices/google-cloud-financialservices/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-financialservices - 0.8.0 + 0.9.0 jar Google Financial Services API Financial Services API 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. com.google.cloud google-cloud-financialservices-parent - 0.8.0 + 0.9.0 google-cloud-financialservices diff --git a/java-financialservices/grpc-google-cloud-financialservices-v1/pom.xml b/java-financialservices/grpc-google-cloud-financialservices-v1/pom.xml index 8ecefbb8a87f..0f11c1dc4fd8 100644 --- a/java-financialservices/grpc-google-cloud-financialservices-v1/pom.xml +++ b/java-financialservices/grpc-google-cloud-financialservices-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-financialservices-v1 - 0.8.0 + 0.9.0 grpc-google-cloud-financialservices-v1 GRPC library for google-cloud-financialservices com.google.cloud google-cloud-financialservices-parent - 0.8.0 + 0.9.0 diff --git a/java-financialservices/pom.xml b/java-financialservices/pom.xml index 92fe0bc153c6..cc2d65010cd3 100644 --- a/java-financialservices/pom.xml +++ b/java-financialservices/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-financialservices-parent pom - 0.8.0 + 0.9.0 Google Financial Services API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-financialservices - 0.8.0 + 0.9.0 com.google.api.grpc grpc-google-cloud-financialservices-v1 - 0.8.0 + 0.9.0 com.google.api.grpc proto-google-cloud-financialservices-v1 - 0.8.0 + 0.9.0 diff --git a/java-financialservices/proto-google-cloud-financialservices-v1/pom.xml b/java-financialservices/proto-google-cloud-financialservices-v1/pom.xml index 1eaf703d4d2d..fe1dbd3b53f3 100644 --- a/java-financialservices/proto-google-cloud-financialservices-v1/pom.xml +++ b/java-financialservices/proto-google-cloud-financialservices-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-financialservices-v1 - 0.8.0 + 0.9.0 proto-google-cloud-financialservices-v1 Proto library for google-cloud-financialservices com.google.cloud google-cloud-financialservices-parent - 0.8.0 + 0.9.0 diff --git a/java-functions/CHANGELOG.md b/java-functions/CHANGELOG.md index ed04b0f774d6..02dc4b92ae05 100644 --- a/java-functions/CHANGELOG.md +++ b/java-functions/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.70.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.69.0 (2025-06-25) ### Dependencies diff --git a/java-functions/README.md b/java-functions/README.md index 3bb1fc05eda6..35ded5b452d3 100644 --- a/java-functions/README.md +++ b/java-functions/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-functions - 2.68.0 + 2.69.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-functions:2.68.0' +implementation 'com.google.cloud:google-cloud-functions:2.69.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-functions" % "2.68.0" +libraryDependencies += "com.google.cloud" % "google-cloud-functions" % "2.69.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.68.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-functions/2.69.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/google-cloud-functions-bom/pom.xml b/java-functions/google-cloud-functions-bom/pom.xml index 95c60e61495e..6a0cc688ebc0 100644 --- a/java-functions/google-cloud-functions-bom/pom.xml +++ b/java-functions/google-cloud-functions-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-functions-bom - 2.69.0 + 2.70.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,47 +27,47 @@ com.google.cloud google-cloud-functions - 2.69.0 + 2.70.0 com.google.api.grpc grpc-google-cloud-functions-v1 - 2.69.0 + 2.70.0 com.google.api.grpc grpc-google-cloud-functions-v2beta - 2.69.0 + 2.70.0 com.google.api.grpc grpc-google-cloud-functions-v2alpha - 2.69.0 + 2.70.0 com.google.api.grpc grpc-google-cloud-functions-v2 - 2.69.0 + 2.70.0 com.google.api.grpc proto-google-cloud-functions-v1 - 2.69.0 + 2.70.0 com.google.api.grpc proto-google-cloud-functions-v2beta - 2.69.0 + 2.70.0 com.google.api.grpc proto-google-cloud-functions-v2alpha - 2.69.0 + 2.70.0 com.google.api.grpc proto-google-cloud-functions-v2 - 2.69.0 + 2.70.0 diff --git a/java-functions/google-cloud-functions/pom.xml b/java-functions/google-cloud-functions/pom.xml index 352168ff4d94..2717f1c089c8 100644 --- a/java-functions/google-cloud-functions/pom.xml +++ b/java-functions/google-cloud-functions/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-functions - 2.69.0 + 2.70.0 jar Google Cloud Functions is a scalable pay as you go Functions-as-a-Service (FaaS) to run your code with zero server management. com.google.cloud google-cloud-functions-parent - 2.69.0 + 2.70.0 google-cloud-functions diff --git a/java-functions/grpc-google-cloud-functions-v1/pom.xml b/java-functions/grpc-google-cloud-functions-v1/pom.xml index 16538117fa74..921af4cbed15 100644 --- a/java-functions/grpc-google-cloud-functions-v1/pom.xml +++ b/java-functions/grpc-google-cloud-functions-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-functions-v1 - 2.69.0 + 2.70.0 grpc-google-cloud-functions-v1 GRPC library for grpc-google-cloud-functions-v1 com.google.cloud google-cloud-functions-parent - 2.69.0 + 2.70.0 diff --git a/java-functions/grpc-google-cloud-functions-v2/pom.xml b/java-functions/grpc-google-cloud-functions-v2/pom.xml index 9e698047182e..91431383e46b 100644 --- a/java-functions/grpc-google-cloud-functions-v2/pom.xml +++ b/java-functions/grpc-google-cloud-functions-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-functions-v2 - 2.69.0 + 2.70.0 grpc-google-cloud-functions-v2 GRPC library for google-cloud-functions com.google.cloud google-cloud-functions-parent - 2.69.0 + 2.70.0 diff --git a/java-functions/grpc-google-cloud-functions-v2alpha/pom.xml b/java-functions/grpc-google-cloud-functions-v2alpha/pom.xml index b8c61d7b6e60..b5445fbcc5f3 100644 --- a/java-functions/grpc-google-cloud-functions-v2alpha/pom.xml +++ b/java-functions/grpc-google-cloud-functions-v2alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-functions-v2alpha - 2.69.0 + 2.70.0 grpc-google-cloud-functions-v2alpha GRPC library for google-cloud-functions com.google.cloud google-cloud-functions-parent - 2.69.0 + 2.70.0 diff --git a/java-functions/grpc-google-cloud-functions-v2beta/pom.xml b/java-functions/grpc-google-cloud-functions-v2beta/pom.xml index a68a09d52e19..01b6885021ae 100644 --- a/java-functions/grpc-google-cloud-functions-v2beta/pom.xml +++ b/java-functions/grpc-google-cloud-functions-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-functions-v2beta - 2.69.0 + 2.70.0 grpc-google-cloud-functions-v2beta GRPC library for google-cloud-functions com.google.cloud google-cloud-functions-parent - 2.69.0 + 2.70.0 diff --git a/java-functions/pom.xml b/java-functions/pom.xml index ed480fab319c..0147e6fcdd0f 100644 --- a/java-functions/pom.xml +++ b/java-functions/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-functions-parent pom - 2.69.0 + 2.70.0 Google Cloud Functions Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,47 +29,47 @@ com.google.cloud google-cloud-functions - 2.69.0 + 2.70.0 com.google.api.grpc proto-google-cloud-functions-v2 - 2.69.0 + 2.70.0 com.google.api.grpc grpc-google-cloud-functions-v2 - 2.69.0 + 2.70.0 com.google.api.grpc proto-google-cloud-functions-v2alpha - 2.69.0 + 2.70.0 com.google.api.grpc proto-google-cloud-functions-v2beta - 2.69.0 + 2.70.0 com.google.api.grpc grpc-google-cloud-functions-v2alpha - 2.69.0 + 2.70.0 com.google.api.grpc grpc-google-cloud-functions-v2beta - 2.69.0 + 2.70.0 com.google.api.grpc proto-google-cloud-functions-v1 - 2.69.0 + 2.70.0 com.google.api.grpc grpc-google-cloud-functions-v1 - 2.69.0 + 2.70.0 diff --git a/java-functions/proto-google-cloud-functions-v1/pom.xml b/java-functions/proto-google-cloud-functions-v1/pom.xml index 4a398a09102e..a8cdca3f5887 100644 --- a/java-functions/proto-google-cloud-functions-v1/pom.xml +++ b/java-functions/proto-google-cloud-functions-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-functions-v1 - 2.69.0 + 2.70.0 proto-google-cloud-functions-v1 PROTO library for proto-google-cloud-functions-v1 com.google.cloud google-cloud-functions-parent - 2.69.0 + 2.70.0 diff --git a/java-functions/proto-google-cloud-functions-v2/pom.xml b/java-functions/proto-google-cloud-functions-v2/pom.xml index af1da46fd6f0..ad761362d973 100644 --- a/java-functions/proto-google-cloud-functions-v2/pom.xml +++ b/java-functions/proto-google-cloud-functions-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-functions-v2 - 2.69.0 + 2.70.0 proto-google-cloud-functions-v2 Proto library for google-cloud-functions com.google.cloud google-cloud-functions-parent - 2.69.0 + 2.70.0 diff --git a/java-functions/proto-google-cloud-functions-v2alpha/pom.xml b/java-functions/proto-google-cloud-functions-v2alpha/pom.xml index 5ae5f65dc7b3..f92afe642088 100644 --- a/java-functions/proto-google-cloud-functions-v2alpha/pom.xml +++ b/java-functions/proto-google-cloud-functions-v2alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-functions-v2alpha - 2.69.0 + 2.70.0 proto-google-cloud-functions-v2alpha Proto library for google-cloud-functions com.google.cloud google-cloud-functions-parent - 2.69.0 + 2.70.0 diff --git a/java-functions/proto-google-cloud-functions-v2beta/pom.xml b/java-functions/proto-google-cloud-functions-v2beta/pom.xml index 433331a292e4..e2bd672dc125 100644 --- a/java-functions/proto-google-cloud-functions-v2beta/pom.xml +++ b/java-functions/proto-google-cloud-functions-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-functions-v2beta - 2.69.0 + 2.70.0 proto-google-cloud-functions-v2beta Proto library for google-cloud-functions com.google.cloud google-cloud-functions-parent - 2.69.0 + 2.70.0 diff --git a/java-gdchardwaremanagement/CHANGELOG.md b/java-gdchardwaremanagement/CHANGELOG.md index 62f5418c8f1b..ee882ae41521 100644 --- a/java-gdchardwaremanagement/CHANGELOG.md +++ b/java-gdchardwaremanagement/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.23.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.22.0 (2025-06-25) ### Dependencies diff --git a/java-gdchardwaremanagement/README.md b/java-gdchardwaremanagement/README.md index 5722303e0efe..efa2e07cca00 100644 --- a/java-gdchardwaremanagement/README.md +++ b/java-gdchardwaremanagement/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gdchardwaremanagement - 0.21.0 + 0.22.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gdchardwaremanagement:0.21.0' +implementation 'com.google.cloud:google-cloud-gdchardwaremanagement:0.22.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gdchardwaremanagement" % "0.21.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gdchardwaremanagement" % "0.22.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gdchardwaremanagement.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gdchardwaremanagement/0.21.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gdchardwaremanagement/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-gdchardwaremanagement/google-cloud-gdchardwaremanagement-bom/pom.xml b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement-bom/pom.xml index 6619b0deb69c..f1671736815c 100644 --- a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement-bom/pom.xml +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-gdchardwaremanagement-bom - 0.22.0 + 0.23.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-gdchardwaremanagement - 0.22.0 + 0.23.0 com.google.api.grpc grpc-google-cloud-gdchardwaremanagement-v1alpha - 0.22.0 + 0.23.0 com.google.api.grpc proto-google-cloud-gdchardwaremanagement-v1alpha - 0.22.0 + 0.23.0 diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/pom.xml b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/pom.xml index 06fec030d630..dd4c2931e922 100644 --- a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/pom.xml +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-gdchardwaremanagement - 0.22.0 + 0.23.0 jar Google GDC Hardware Management API GDC Hardware Management API 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. com.google.cloud google-cloud-gdchardwaremanagement-parent - 0.22.0 + 0.23.0 google-cloud-gdchardwaremanagement diff --git a/java-gdchardwaremanagement/grpc-google-cloud-gdchardwaremanagement-v1alpha/pom.xml b/java-gdchardwaremanagement/grpc-google-cloud-gdchardwaremanagement-v1alpha/pom.xml index 608c04c4b966..8dcc061b3f9c 100644 --- a/java-gdchardwaremanagement/grpc-google-cloud-gdchardwaremanagement-v1alpha/pom.xml +++ b/java-gdchardwaremanagement/grpc-google-cloud-gdchardwaremanagement-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-gdchardwaremanagement-v1alpha - 0.22.0 + 0.23.0 grpc-google-cloud-gdchardwaremanagement-v1alpha GRPC library for google-cloud-gdchardwaremanagement com.google.cloud google-cloud-gdchardwaremanagement-parent - 0.22.0 + 0.23.0 diff --git a/java-gdchardwaremanagement/pom.xml b/java-gdchardwaremanagement/pom.xml index 4822f54d7bfd..12a6aedc6685 100644 --- a/java-gdchardwaremanagement/pom.xml +++ b/java-gdchardwaremanagement/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-gdchardwaremanagement-parent pom - 0.22.0 + 0.23.0 Google GDC Hardware Management API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-gdchardwaremanagement - 0.22.0 + 0.23.0 com.google.api.grpc grpc-google-cloud-gdchardwaremanagement-v1alpha - 0.22.0 + 0.23.0 com.google.api.grpc proto-google-cloud-gdchardwaremanagement-v1alpha - 0.22.0 + 0.23.0 diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/pom.xml b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/pom.xml index 6b46224726a3..ac2c24b3d11d 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/pom.xml +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-gdchardwaremanagement-v1alpha - 0.22.0 + 0.23.0 proto-google-cloud-gdchardwaremanagement-v1alpha Proto library for google-cloud-gdchardwaremanagement com.google.cloud google-cloud-gdchardwaremanagement-parent - 0.22.0 + 0.23.0 diff --git a/java-gke-backup/CHANGELOG.md b/java-gke-backup/CHANGELOG.md index 3e0a7989d855..1402b452de1c 100644 --- a/java-gke-backup/CHANGELOG.md +++ b/java-gke-backup/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.67.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.66.0 (2025-06-25) ### Dependencies diff --git a/java-gke-backup/README.md b/java-gke-backup/README.md index 0821e19aadf8..f93525600a8d 100644 --- a/java-gke-backup/README.md +++ b/java-gke-backup/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gke-backup - 0.65.0 + 0.66.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gke-backup:0.65.0' +implementation 'com.google.cloud:google-cloud-gke-backup:0.66.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gke-backup" % "0.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gke-backup" % "0.66.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gke-backup.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-backup/0.65.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-backup/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-gke-backup/google-cloud-gke-backup-bom/pom.xml b/java-gke-backup/google-cloud-gke-backup-bom/pom.xml index 1e14983c4447..329a9cddee4f 100644 --- a/java-gke-backup/google-cloud-gke-backup-bom/pom.xml +++ b/java-gke-backup/google-cloud-gke-backup-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-gke-backup-bom - 0.66.0 + 0.67.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-gke-backup - 0.66.0 + 0.67.0 com.google.api.grpc grpc-google-cloud-gke-backup-v1 - 0.66.0 + 0.67.0 com.google.api.grpc proto-google-cloud-gke-backup-v1 - 0.66.0 + 0.67.0 diff --git a/java-gke-backup/google-cloud-gke-backup/pom.xml b/java-gke-backup/google-cloud-gke-backup/pom.xml index 91d27900e8ce..0a578aa872f2 100644 --- a/java-gke-backup/google-cloud-gke-backup/pom.xml +++ b/java-gke-backup/google-cloud-gke-backup/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-gke-backup - 0.66.0 + 0.67.0 jar Google Backup for GKE Backup for GKE is a service for backing up and restoring workloads in GKE. com.google.cloud google-cloud-gke-backup-parent - 0.66.0 + 0.67.0 google-cloud-gke-backup diff --git a/java-gke-backup/grpc-google-cloud-gke-backup-v1/pom.xml b/java-gke-backup/grpc-google-cloud-gke-backup-v1/pom.xml index d3998c984cc1..5161c59c9474 100644 --- a/java-gke-backup/grpc-google-cloud-gke-backup-v1/pom.xml +++ b/java-gke-backup/grpc-google-cloud-gke-backup-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-gke-backup-v1 - 0.66.0 + 0.67.0 grpc-google-cloud-gke-backup-v1 GRPC library for google-cloud-gke-backup com.google.cloud google-cloud-gke-backup-parent - 0.66.0 + 0.67.0 diff --git a/java-gke-backup/pom.xml b/java-gke-backup/pom.xml index ccde5919bd5f..7b9adce66e30 100644 --- a/java-gke-backup/pom.xml +++ b/java-gke-backup/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-gke-backup-parent pom - 0.66.0 + 0.67.0 Google Backup for GKE Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-gke-backup - 0.66.0 + 0.67.0 com.google.api.grpc grpc-google-cloud-gke-backup-v1 - 0.66.0 + 0.67.0 com.google.api.grpc proto-google-cloud-gke-backup-v1 - 0.66.0 + 0.67.0 diff --git a/java-gke-backup/proto-google-cloud-gke-backup-v1/pom.xml b/java-gke-backup/proto-google-cloud-gke-backup-v1/pom.xml index f15325068a9b..477ac2b67637 100644 --- a/java-gke-backup/proto-google-cloud-gke-backup-v1/pom.xml +++ b/java-gke-backup/proto-google-cloud-gke-backup-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-gke-backup-v1 - 0.66.0 + 0.67.0 proto-google-cloud-gke-backup-v1 Proto library for google-cloud-gke-backup com.google.cloud google-cloud-gke-backup-parent - 0.66.0 + 0.67.0 diff --git a/java-gke-connect-gateway/CHANGELOG.md b/java-gke-connect-gateway/CHANGELOG.md index 6325b78111bd..0b3e662c7a98 100644 --- a/java-gke-connect-gateway/CHANGELOG.md +++ b/java-gke-connect-gateway/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.69.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.68.0 (2025-06-25) ### Dependencies diff --git a/java-gke-connect-gateway/README.md b/java-gke-connect-gateway/README.md index 37647fde0456..7960dc407849 100644 --- a/java-gke-connect-gateway/README.md +++ b/java-gke-connect-gateway/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gke-connect-gateway - 0.67.0 + 0.68.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gke-connect-gateway:0.67.0' +implementation 'com.google.cloud:google-cloud-gke-connect-gateway:0.68.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gke-connect-gateway" % "0.67.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gke-connect-gateway" % "0.68.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.67.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-connect-gateway/0.68.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/google-cloud-gke-connect-gateway-bom/pom.xml b/java-gke-connect-gateway/google-cloud-gke-connect-gateway-bom/pom.xml index 2339af8b72a6..55e017c5a359 100644 --- a/java-gke-connect-gateway/google-cloud-gke-connect-gateway-bom/pom.xml +++ b/java-gke-connect-gateway/google-cloud-gke-connect-gateway-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-gke-connect-gateway-bom - 0.68.0 + 0.69.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,12 +27,12 @@ com.google.cloud google-cloud-gke-connect-gateway - 0.68.0 + 0.69.0 com.google.api.grpc proto-google-cloud-gke-connect-gateway-v1beta1 - 0.68.0 + 0.69.0 diff --git a/java-gke-connect-gateway/google-cloud-gke-connect-gateway/pom.xml b/java-gke-connect-gateway/google-cloud-gke-connect-gateway/pom.xml index fa0abaaaf535..9544315f7ac4 100644 --- a/java-gke-connect-gateway/google-cloud-gke-connect-gateway/pom.xml +++ b/java-gke-connect-gateway/google-cloud-gke-connect-gateway/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-gke-connect-gateway - 0.68.0 + 0.69.0 jar Google Connect Gateway API Connect Gateway API 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. com.google.cloud google-cloud-gke-connect-gateway-parent - 0.68.0 + 0.69.0 google-cloud-gke-connect-gateway diff --git a/java-gke-connect-gateway/pom.xml b/java-gke-connect-gateway/pom.xml index cf6296216d52..ef1de43c7327 100644 --- a/java-gke-connect-gateway/pom.xml +++ b/java-gke-connect-gateway/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-gke-connect-gateway-parent pom - 0.68.0 + 0.69.0 Google Connect Gateway API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,12 +29,12 @@ com.google.cloud google-cloud-gke-connect-gateway - 0.68.0 + 0.69.0 com.google.api.grpc proto-google-cloud-gke-connect-gateway-v1beta1 - 0.68.0 + 0.69.0 diff --git a/java-gke-connect-gateway/proto-google-cloud-gke-connect-gateway-v1beta1/pom.xml b/java-gke-connect-gateway/proto-google-cloud-gke-connect-gateway-v1beta1/pom.xml index ee68ed444d27..f0780d18df02 100644 --- a/java-gke-connect-gateway/proto-google-cloud-gke-connect-gateway-v1beta1/pom.xml +++ b/java-gke-connect-gateway/proto-google-cloud-gke-connect-gateway-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-gke-connect-gateway-v1beta1 - 0.68.0 + 0.69.0 proto-google-cloud-gke-connect-gateway-v1beta1 Proto library for google-cloud-gke-connect-gateway com.google.cloud google-cloud-gke-connect-gateway-parent - 0.68.0 + 0.69.0 diff --git a/java-gke-multi-cloud/CHANGELOG.md b/java-gke-multi-cloud/CHANGELOG.md index 0db8d8c98231..710dd1432b59 100644 --- a/java-gke-multi-cloud/CHANGELOG.md +++ b/java-gke-multi-cloud/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.67.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.66.0 (2025-06-25) ### Dependencies diff --git a/java-gke-multi-cloud/README.md b/java-gke-multi-cloud/README.md index 7df833ab6c7b..546031356e10 100644 --- a/java-gke-multi-cloud/README.md +++ b/java-gke-multi-cloud/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gke-multi-cloud - 0.65.0 + 0.66.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gke-multi-cloud:0.65.0' +implementation 'com.google.cloud:google-cloud-gke-multi-cloud:0.66.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gke-multi-cloud" % "0.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gke-multi-cloud" % "0.66.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gke-multi-cloud.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-multi-cloud/0.65.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-multi-cloud/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-gke-multi-cloud/google-cloud-gke-multi-cloud-bom/pom.xml b/java-gke-multi-cloud/google-cloud-gke-multi-cloud-bom/pom.xml index 822b0d623b76..d71e69c6a169 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud-bom/pom.xml +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-gke-multi-cloud-bom - 0.66.0 + 0.67.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-gke-multi-cloud - 0.66.0 + 0.67.0 com.google.api.grpc grpc-google-cloud-gke-multi-cloud-v1 - 0.66.0 + 0.67.0 com.google.api.grpc proto-google-cloud-gke-multi-cloud-v1 - 0.66.0 + 0.67.0 diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/pom.xml b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/pom.xml index 152681bac1ce..42c7a3460fde 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/pom.xml +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-gke-multi-cloud - 0.66.0 + 0.67.0 jar Google Anthos Multicloud Anthos Multicloud enables you to provision and manage GKE clusters running on AWS and Azure infrastructure through a centralized Google Cloud backed control plane. com.google.cloud google-cloud-gke-multi-cloud-parent - 0.66.0 + 0.67.0 google-cloud-gke-multi-cloud diff --git a/java-gke-multi-cloud/grpc-google-cloud-gke-multi-cloud-v1/pom.xml b/java-gke-multi-cloud/grpc-google-cloud-gke-multi-cloud-v1/pom.xml index d3e5ae66b44b..cf9c56c5039f 100644 --- a/java-gke-multi-cloud/grpc-google-cloud-gke-multi-cloud-v1/pom.xml +++ b/java-gke-multi-cloud/grpc-google-cloud-gke-multi-cloud-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-gke-multi-cloud-v1 - 0.66.0 + 0.67.0 grpc-google-cloud-gke-multi-cloud-v1 GRPC library for google-cloud-gke-multi-cloud com.google.cloud google-cloud-gke-multi-cloud-parent - 0.66.0 + 0.67.0 diff --git a/java-gke-multi-cloud/pom.xml b/java-gke-multi-cloud/pom.xml index a00623f48571..3fb3323221da 100644 --- a/java-gke-multi-cloud/pom.xml +++ b/java-gke-multi-cloud/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-gke-multi-cloud-parent pom - 0.66.0 + 0.67.0 Google Anthos Multicloud Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-gke-multi-cloud - 0.66.0 + 0.67.0 com.google.api.grpc grpc-google-cloud-gke-multi-cloud-v1 - 0.66.0 + 0.67.0 com.google.api.grpc proto-google-cloud-gke-multi-cloud-v1 - 0.66.0 + 0.67.0 diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/pom.xml b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/pom.xml index cdf6911460b2..489732b4b58f 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/pom.xml +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-gke-multi-cloud-v1 - 0.66.0 + 0.67.0 proto-google-cloud-gke-multi-cloud-v1 Proto library for google-cloud-gke-multi-cloud com.google.cloud google-cloud-gke-multi-cloud-parent - 0.66.0 + 0.67.0 diff --git a/java-gkehub/CHANGELOG.md b/java-gkehub/CHANGELOG.md index fd9ecbc853d9..f2372dea31fd 100644 --- a/java-gkehub/CHANGELOG.md +++ b/java-gkehub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 1.68.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 1.67.0 (2025-06-25) ### Dependencies diff --git a/java-gkehub/README.md b/java-gkehub/README.md index 54b7ea4aa278..554bbd6b0a0c 100644 --- a/java-gkehub/README.md +++ b/java-gkehub/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gkehub - 1.66.0 + 1.67.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gkehub:1.66.0' +implementation 'com.google.cloud:google-cloud-gkehub:1.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gkehub" % "1.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gkehub" % "1.67.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gkehub/1.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-gkehub/google-cloud-gkehub-bom/pom.xml b/java-gkehub/google-cloud-gkehub-bom/pom.xml index 479f57c6ee10..358ce1eabee2 100644 --- a/java-gkehub/google-cloud-gkehub-bom/pom.xml +++ b/java-gkehub/google-cloud-gkehub-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-gkehub-bom - 1.67.0 + 1.68.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,47 +27,47 @@ com.google.cloud google-cloud-gkehub - 1.67.0 + 1.68.0 com.google.api.grpc grpc-google-cloud-gkehub-v1beta1 - 0.73.0 + 0.74.0 com.google.api.grpc grpc-google-cloud-gkehub-v1 - 1.67.0 + 1.68.0 com.google.api.grpc grpc-google-cloud-gkehub-v1alpha - 0.73.0 + 0.74.0 com.google.api.grpc grpc-google-cloud-gkehub-v1beta - 0.73.0 + 0.74.0 com.google.api.grpc proto-google-cloud-gkehub-v1beta1 - 0.73.0 + 0.74.0 com.google.api.grpc proto-google-cloud-gkehub-v1 - 1.67.0 + 1.68.0 com.google.api.grpc proto-google-cloud-gkehub-v1alpha - 0.73.0 + 0.74.0 com.google.api.grpc proto-google-cloud-gkehub-v1beta - 0.73.0 + 0.74.0 diff --git a/java-gkehub/google-cloud-gkehub/pom.xml b/java-gkehub/google-cloud-gkehub/pom.xml index bfb0191d436d..93682865f3bd 100644 --- a/java-gkehub/google-cloud-gkehub/pom.xml +++ b/java-gkehub/google-cloud-gkehub/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-gkehub - 1.67.0 + 1.68.0 jar Google GKE Hub API 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. com.google.cloud google-cloud-gkehub-parent - 1.67.0 + 1.68.0 google-cloud-gkehub diff --git a/java-gkehub/grpc-google-cloud-gkehub-v1/pom.xml b/java-gkehub/grpc-google-cloud-gkehub-v1/pom.xml index 86674275d901..41482e89d295 100644 --- a/java-gkehub/grpc-google-cloud-gkehub-v1/pom.xml +++ b/java-gkehub/grpc-google-cloud-gkehub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-gkehub-v1 - 1.67.0 + 1.68.0 grpc-google-cloud-gkehub-v1 GRPC library for google-cloud-gkehub com.google.cloud google-cloud-gkehub-parent - 1.67.0 + 1.68.0 diff --git a/java-gkehub/grpc-google-cloud-gkehub-v1alpha/pom.xml b/java-gkehub/grpc-google-cloud-gkehub-v1alpha/pom.xml index 58dad85ff075..7a067033194b 100644 --- a/java-gkehub/grpc-google-cloud-gkehub-v1alpha/pom.xml +++ b/java-gkehub/grpc-google-cloud-gkehub-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-gkehub-v1alpha - 0.73.0 + 0.74.0 grpc-google-cloud-gkehub-v1alpha GRPC library for google-cloud-gkehub com.google.cloud google-cloud-gkehub-parent - 1.67.0 + 1.68.0 diff --git a/java-gkehub/grpc-google-cloud-gkehub-v1beta/pom.xml b/java-gkehub/grpc-google-cloud-gkehub-v1beta/pom.xml index 3ea1f802cea4..97b50eea3327 100644 --- a/java-gkehub/grpc-google-cloud-gkehub-v1beta/pom.xml +++ b/java-gkehub/grpc-google-cloud-gkehub-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-gkehub-v1beta - 0.73.0 + 0.74.0 grpc-google-cloud-gkehub-v1beta GRPC library for google-cloud-gkehub com.google.cloud google-cloud-gkehub-parent - 1.67.0 + 1.68.0 diff --git a/java-gkehub/grpc-google-cloud-gkehub-v1beta1/pom.xml b/java-gkehub/grpc-google-cloud-gkehub-v1beta1/pom.xml index 13b3c803065d..348d667233ad 100644 --- a/java-gkehub/grpc-google-cloud-gkehub-v1beta1/pom.xml +++ b/java-gkehub/grpc-google-cloud-gkehub-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-gkehub-v1beta1 - 0.73.0 + 0.74.0 grpc-google-cloud-gkehub-v1beta1 GRPC library for google-cloud-gkehub com.google.cloud google-cloud-gkehub-parent - 1.67.0 + 1.68.0 diff --git a/java-gkehub/pom.xml b/java-gkehub/pom.xml index a5cd327a1693..a1c6a2ba4e31 100644 --- a/java-gkehub/pom.xml +++ b/java-gkehub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-gkehub-parent pom - 1.67.0 + 1.68.0 Google GKE Hub API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,47 +29,47 @@ com.google.cloud google-cloud-gkehub - 1.67.0 + 1.68.0 com.google.api.grpc proto-google-cloud-gkehub-v1beta - 0.73.0 + 0.74.0 com.google.api.grpc proto-google-cloud-gkehub-v1alpha - 0.73.0 + 0.74.0 com.google.api.grpc proto-google-cloud-gkehub-v1 - 1.67.0 + 1.68.0 com.google.api.grpc grpc-google-cloud-gkehub-v1beta - 0.73.0 + 0.74.0 com.google.api.grpc grpc-google-cloud-gkehub-v1alpha - 0.73.0 + 0.74.0 com.google.api.grpc grpc-google-cloud-gkehub-v1 - 1.67.0 + 1.68.0 com.google.api.grpc proto-google-cloud-gkehub-v1beta1 - 0.73.0 + 0.74.0 com.google.api.grpc grpc-google-cloud-gkehub-v1beta1 - 0.73.0 + 0.74.0 diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/pom.xml b/java-gkehub/proto-google-cloud-gkehub-v1/pom.xml index 7ec85a29a53f..83d21e7a4882 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/pom.xml +++ b/java-gkehub/proto-google-cloud-gkehub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-gkehub-v1 - 1.67.0 + 1.68.0 proto-google-cloud-gkehub-v1 Proto library for google-cloud-gkehub com.google.cloud google-cloud-gkehub-parent - 1.67.0 + 1.68.0 diff --git a/java-gkehub/proto-google-cloud-gkehub-v1alpha/pom.xml b/java-gkehub/proto-google-cloud-gkehub-v1alpha/pom.xml index f6e0f76caee6..fcaa38302ee6 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1alpha/pom.xml +++ b/java-gkehub/proto-google-cloud-gkehub-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-gkehub-v1alpha - 0.73.0 + 0.74.0 proto-google-cloud-gkehub-v1alpha Proto library for google-cloud-gkehub com.google.cloud google-cloud-gkehub-parent - 1.67.0 + 1.68.0 diff --git a/java-gkehub/proto-google-cloud-gkehub-v1beta/pom.xml b/java-gkehub/proto-google-cloud-gkehub-v1beta/pom.xml index 29611659a832..37ebe3e72553 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1beta/pom.xml +++ b/java-gkehub/proto-google-cloud-gkehub-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-gkehub-v1beta - 0.73.0 + 0.74.0 proto-google-cloud-gkehub-v1beta Proto library for google-cloud-gkehub com.google.cloud google-cloud-gkehub-parent - 1.67.0 + 1.68.0 diff --git a/java-gkehub/proto-google-cloud-gkehub-v1beta1/pom.xml b/java-gkehub/proto-google-cloud-gkehub-v1beta1/pom.xml index 92f18516fecb..344efdb79ed6 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1beta1/pom.xml +++ b/java-gkehub/proto-google-cloud-gkehub-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-gkehub-v1beta1 - 0.73.0 + 0.74.0 proto-google-cloud-gkehub-v1beta1 Proto library for google-cloud-gkehub com.google.cloud google-cloud-gkehub-parent - 1.67.0 + 1.68.0 diff --git a/java-grafeas/CHANGELOG.md b/java-grafeas/CHANGELOG.md index 6528424dbf2f..3c2d2256e2ec 100644 --- a/java-grafeas/CHANGELOG.md +++ b/java-grafeas/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.69.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.68.0 (2025-06-25) ### Dependencies diff --git a/java-grafeas/README.md b/java-grafeas/README.md index a48260f48085..8ff90f6c65d1 100644 --- a/java-grafeas/README.md +++ b/java-grafeas/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: io.grafeas grafeas - 2.67.0 + 2.68.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'io.grafeas:grafeas:2.67.0' +implementation 'io.grafeas:grafeas:2.68.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "io.grafeas" % "grafeas" % "2.67.0" +libraryDependencies += "io.grafeas" % "grafeas" % "2.68.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.67.0 +[maven-version-link]: https://central.sonatype.com/artifact/io.grafeas/grafeas/2.68.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/pom.xml b/java-grafeas/pom.xml index 2cbb60f8c009..db6ac6abc028 100644 --- a/java-grafeas/pom.xml +++ b/java-grafeas/pom.xml @@ -5,7 +5,7 @@ 4.0.0 io.grafeas grafeas - 2.68.0 + 2.69.0 jar Grafeas Client @@ -15,7 +15,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml diff --git a/java-gsuite-addons/CHANGELOG.md b/java-gsuite-addons/CHANGELOG.md index 36e2e597798c..f3a1ccb9a181 100644 --- a/java-gsuite-addons/CHANGELOG.md +++ b/java-gsuite-addons/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.68.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.67.0 (2025-06-25) ### Dependencies diff --git a/java-gsuite-addons/README.md b/java-gsuite-addons/README.md index 9b4c1c160451..17126ae2974d 100644 --- a/java-gsuite-addons/README.md +++ b/java-gsuite-addons/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gsuite-addons - 2.66.0 + 2.67.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gsuite-addons:2.66.0' +implementation 'com.google.cloud:google-cloud-gsuite-addons:2.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gsuite-addons" % "2.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gsuite-addons" % "2.67.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gsuite-addons/2.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-gsuite-addons/google-cloud-gsuite-addons-bom/pom.xml b/java-gsuite-addons/google-cloud-gsuite-addons-bom/pom.xml index d3e19c0d0748..3aad122c059e 100644 --- a/java-gsuite-addons/google-cloud-gsuite-addons-bom/pom.xml +++ b/java-gsuite-addons/google-cloud-gsuite-addons-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-gsuite-addons-bom - 2.67.0 + 2.68.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,22 +27,22 @@ com.google.cloud google-cloud-gsuite-addons - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-gsuite-addons-v1 - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-cloud-gsuite-addons-v1 - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-apps-script-type-protos - 2.67.0 + 2.68.0 diff --git a/java-gsuite-addons/google-cloud-gsuite-addons/pom.xml b/java-gsuite-addons/google-cloud-gsuite-addons/pom.xml index 3ceb90166a0d..ae3f53f30a8d 100644 --- a/java-gsuite-addons/google-cloud-gsuite-addons/pom.xml +++ b/java-gsuite-addons/google-cloud-gsuite-addons/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-gsuite-addons - 2.67.0 + 2.68.0 jar Google Google Workspace Add-ons API Google Workspace Add-ons API are customized applications that integrate with Google Workspace productivity applications. com.google.cloud google-cloud-gsuite-addons-parent - 2.67.0 + 2.68.0 google-cloud-gsuite-addons diff --git a/java-gsuite-addons/grpc-google-cloud-gsuite-addons-v1/pom.xml b/java-gsuite-addons/grpc-google-cloud-gsuite-addons-v1/pom.xml index 6d2005edcdd7..d1bbe0cd1843 100644 --- a/java-gsuite-addons/grpc-google-cloud-gsuite-addons-v1/pom.xml +++ b/java-gsuite-addons/grpc-google-cloud-gsuite-addons-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-gsuite-addons-v1 - 2.67.0 + 2.68.0 grpc-google-cloud-gsuite-addons-v1 GRPC library for google-cloud-gsuite-addons com.google.cloud google-cloud-gsuite-addons-parent - 2.67.0 + 2.68.0 diff --git a/java-gsuite-addons/pom.xml b/java-gsuite-addons/pom.xml index 7d8ef2d98786..51ea5c7631f4 100644 --- a/java-gsuite-addons/pom.xml +++ b/java-gsuite-addons/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-gsuite-addons-parent pom - 2.67.0 + 2.68.0 Google Google Workspace Add-ons API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,22 +29,22 @@ com.google.cloud google-cloud-gsuite-addons - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-apps-script-type-protos - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-gsuite-addons-v1 - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-cloud-gsuite-addons-v1 - 2.67.0 + 2.68.0 diff --git a/java-gsuite-addons/proto-google-apps-script-type-protos/pom.xml b/java-gsuite-addons/proto-google-apps-script-type-protos/pom.xml index a23f4193bea3..2161e9dcf31c 100644 --- a/java-gsuite-addons/proto-google-apps-script-type-protos/pom.xml +++ b/java-gsuite-addons/proto-google-apps-script-type-protos/pom.xml @@ -5,13 +5,13 @@ com.google.cloud google-cloud-gsuite-addons-parent - 2.67.0 + 2.68.0 4.0.0 com.google.api.grpc proto-google-apps-script-type-protos proto-google-apps-script-type-protos - 2.67.0 + 2.68.0 diff --git a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/pom.xml b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/pom.xml index b177c9195e08..a626b77b2717 100644 --- a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/pom.xml +++ b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-gsuite-addons-v1 - 2.67.0 + 2.68.0 proto-google-cloud-gsuite-addons-v1 Proto library for google-cloud-gsuite-addons com.google.cloud google-cloud-gsuite-addons-parent - 2.67.0 + 2.68.0 diff --git a/java-iam-admin/CHANGELOG.md b/java-iam-admin/CHANGELOG.md index dc3f17c8a392..74cab6ea9281 100644 --- a/java-iam-admin/CHANGELOG.md +++ b/java-iam-admin/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 3.63.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 3.62.0 (2025-06-25) ### Dependencies diff --git a/java-iam-admin/README.md b/java-iam-admin/README.md index a7aea86a3162..61a56063c3d6 100644 --- a/java-iam-admin/README.md +++ b/java-iam-admin/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-iam-admin - 3.61.0 + 3.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-iam-admin:3.61.0' +implementation 'com.google.cloud:google-iam-admin:3.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-iam-admin" % "3.61.0" +libraryDependencies += "com.google.cloud" % "google-iam-admin" % "3.62.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-admin/3.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-iam-admin/google-iam-admin-bom/pom.xml b/java-iam-admin/google-iam-admin-bom/pom.xml index 5fe52afeb368..b04b34cd5246 100644 --- a/java-iam-admin/google-iam-admin-bom/pom.xml +++ b/java-iam-admin/google-iam-admin-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-iam-admin-bom - 3.62.0 + 3.63.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-iam-admin - 3.62.0 + 3.63.0 com.google.api.grpc grpc-google-iam-admin-v1 - 3.62.0 + 3.63.0 com.google.api.grpc proto-google-iam-admin-v1 - 3.62.0 + 3.63.0 diff --git a/java-iam-admin/google-iam-admin/pom.xml b/java-iam-admin/google-iam-admin/pom.xml index 0399c4ed2fff..b6114db0445d 100644 --- a/java-iam-admin/google-iam-admin/pom.xml +++ b/java-iam-admin/google-iam-admin/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-iam-admin - 3.62.0 + 3.63.0 jar Google IAM Admin API IAM Admin API you to manage your Service Accounts and IAM bindings. com.google.cloud google-iam-admin-parent - 3.62.0 + 3.63.0 google-iam-admin diff --git a/java-iam-admin/grpc-google-iam-admin-v1/pom.xml b/java-iam-admin/grpc-google-iam-admin-v1/pom.xml index e692f4419705..aca4f8b72c78 100644 --- a/java-iam-admin/grpc-google-iam-admin-v1/pom.xml +++ b/java-iam-admin/grpc-google-iam-admin-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-iam-admin-v1 - 3.62.0 + 3.63.0 grpc-google-iam-admin-v1 GRPC library for google-iam-admin com.google.cloud google-iam-admin-parent - 3.62.0 + 3.63.0 diff --git a/java-iam-admin/pom.xml b/java-iam-admin/pom.xml index 9652f2ac2024..993bd29fceea 100644 --- a/java-iam-admin/pom.xml +++ b/java-iam-admin/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-iam-admin-parent pom - 3.62.0 + 3.63.0 Google IAM Admin API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-iam-admin - 3.62.0 + 3.63.0 com.google.api.grpc grpc-google-iam-admin-v1 - 3.62.0 + 3.63.0 com.google.api.grpc proto-google-iam-admin-v1 - 3.62.0 + 3.63.0 diff --git a/java-iam-admin/proto-google-iam-admin-v1/pom.xml b/java-iam-admin/proto-google-iam-admin-v1/pom.xml index 02639492baf4..a1aef078fe28 100644 --- a/java-iam-admin/proto-google-iam-admin-v1/pom.xml +++ b/java-iam-admin/proto-google-iam-admin-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-iam-admin-v1 - 3.62.0 + 3.63.0 proto-google-iam-admin-v1 Proto library for google-iam-admin com.google.cloud google-iam-admin-parent - 3.62.0 + 3.63.0 diff --git a/java-iam/CHANGELOG.md b/java-iam/CHANGELOG.md index a3e488631068..b33e16a71b73 100644 --- a/java-iam/CHANGELOG.md +++ b/java-iam/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 1.66.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 1.65.0 (2025-06-25) ### Dependencies diff --git a/java-iam/README.md b/java-iam/README.md index 2a4fa22867ec..5ac8e6332ed1 100644 --- a/java-iam/README.md +++ b/java-iam/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-iam-policy - 1.64.0 + 1.65.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-iam-policy:1.64.0' +implementation 'com.google.cloud:google-iam-policy:1.65.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-iam-policy" % "1.64.0" +libraryDependencies += "com.google.cloud" % "google-iam-policy" % "1.65.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.64.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-policy/1.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-iam/google-iam-policy-bom/pom.xml b/java-iam/google-iam-policy-bom/pom.xml index 260a0f1d9f78..adb00a93937c 100644 --- a/java-iam/google-iam-policy-bom/pom.xml +++ b/java-iam/google-iam-policy-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-iam-policy-bom - 1.65.0 + 1.66.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,7 +27,7 @@ com.google.cloud google-iam-policy - 1.65.0 + 1.66.0 diff --git a/java-iam/google-iam-policy/pom.xml b/java-iam/google-iam-policy/pom.xml index 3dc438e30587..4a55d2cfdfae 100644 --- a/java-iam/google-iam-policy/pom.xml +++ b/java-iam/google-iam-policy/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-iam-policy - 1.65.0 + 1.66.0 jar Google IAM Policy Eventarc lets you asynchronously deliver events from Google services, SaaS, and your own apps using loosely coupled services that react to state changes. com.google.cloud google-iam-policy-parent - 1.65.0 + 1.66.0 google-iam-policy diff --git a/java-iam/pom.xml b/java-iam/pom.xml index 9d14bec12444..e4087b9ea05a 100644 --- a/java-iam/pom.xml +++ b/java-iam/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-iam-policy-parent pom - 1.65.0 + 1.66.0 Google IAM Policy Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml diff --git a/java-iamcredentials/CHANGELOG.md b/java-iamcredentials/CHANGELOG.md index 293d00e7d34e..e746c0ea81ce 100644 --- a/java-iamcredentials/CHANGELOG.md +++ b/java-iamcredentials/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.68.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.67.0 (2025-06-25) ### Dependencies diff --git a/java-iamcredentials/README.md b/java-iamcredentials/README.md index d6bd980529da..b1c341628722 100644 --- a/java-iamcredentials/README.md +++ b/java-iamcredentials/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-iamcredentials - 2.66.0 + 2.67.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-iamcredentials:2.66.0' +implementation 'com.google.cloud:google-cloud-iamcredentials:2.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-iamcredentials" % "2.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-iamcredentials" % "2.67.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iamcredentials/2.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-iamcredentials/google-cloud-iamcredentials-bom/pom.xml b/java-iamcredentials/google-cloud-iamcredentials-bom/pom.xml index 78bb311b9cd4..1b5de4ec69d6 100644 --- a/java-iamcredentials/google-cloud-iamcredentials-bom/pom.xml +++ b/java-iamcredentials/google-cloud-iamcredentials-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-iamcredentials-bom - 2.67.0 + 2.68.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-iamcredentials - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-iamcredentials-v1 - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-cloud-iamcredentials-v1 - 2.67.0 + 2.68.0 diff --git a/java-iamcredentials/google-cloud-iamcredentials/pom.xml b/java-iamcredentials/google-cloud-iamcredentials/pom.xml index 37bf9d2fda87..4b3eadb914f5 100644 --- a/java-iamcredentials/google-cloud-iamcredentials/pom.xml +++ b/java-iamcredentials/google-cloud-iamcredentials/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-iamcredentials - 2.67.0 + 2.68.0 jar Google Cloud IAM Service Account Credentials Java idiomatic client for Google Cloud IAM Service Account Credentials com.google.cloud google-cloud-iamcredentials-parent - 2.67.0 + 2.68.0 google-cloud-iamcredentials diff --git a/java-iamcredentials/grpc-google-cloud-iamcredentials-v1/pom.xml b/java-iamcredentials/grpc-google-cloud-iamcredentials-v1/pom.xml index 827109fdc182..4d2fadac7620 100644 --- a/java-iamcredentials/grpc-google-cloud-iamcredentials-v1/pom.xml +++ b/java-iamcredentials/grpc-google-cloud-iamcredentials-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-iamcredentials-v1 - 2.67.0 + 2.68.0 grpc-google-cloud-iamcredentials-v1 GRPC library for grpc-google-cloud-iamcredentials-v1 com.google.cloud google-cloud-iamcredentials-parent - 2.67.0 + 2.68.0 diff --git a/java-iamcredentials/pom.xml b/java-iamcredentials/pom.xml index f5d8a0a796dc..004268a3abfe 100644 --- a/java-iamcredentials/pom.xml +++ b/java-iamcredentials/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-iamcredentials-parent pom - 2.67.0 + 2.68.0 Google Cloud IAM Service Account Credentials Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api.grpc proto-google-cloud-iamcredentials-v1 - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-iamcredentials-v1 - 2.67.0 + 2.68.0 com.google.cloud google-cloud-iamcredentials - 2.67.0 + 2.68.0 diff --git a/java-iamcredentials/proto-google-cloud-iamcredentials-v1/pom.xml b/java-iamcredentials/proto-google-cloud-iamcredentials-v1/pom.xml index f404a621bfaf..9320683f8980 100644 --- a/java-iamcredentials/proto-google-cloud-iamcredentials-v1/pom.xml +++ b/java-iamcredentials/proto-google-cloud-iamcredentials-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-iamcredentials-v1 - 2.67.0 + 2.68.0 proto-google-cloud-iamcredentials-v1 PROTO library for proto-google-cloud-iamcredentials-v1 com.google.cloud google-cloud-iamcredentials-parent - 2.67.0 + 2.68.0 diff --git a/java-iap/CHANGELOG.md b/java-iap/CHANGELOG.md index c08dae842f58..12d45b9fefed 100644 --- a/java-iap/CHANGELOG.md +++ b/java-iap/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.24.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.23.0 (2025-06-25) ### Dependencies diff --git a/java-iap/README.md b/java-iap/README.md index 74df71428049..ce7f28575b77 100644 --- a/java-iap/README.md +++ b/java-iap/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-iap - 0.22.0 + 0.23.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-iap:0.22.0' +implementation 'com.google.cloud:google-cloud-iap:0.23.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-iap" % "0.22.0" +libraryDependencies += "com.google.cloud" % "google-cloud-iap" % "0.23.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.22.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iap/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-iap/google-cloud-iap-bom/pom.xml b/java-iap/google-cloud-iap-bom/pom.xml index 82164f795270..94723e7a5081 100644 --- a/java-iap/google-cloud-iap-bom/pom.xml +++ b/java-iap/google-cloud-iap-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-iap-bom - 0.23.0 + 0.24.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-iap - 0.23.0 + 0.24.0 com.google.api.grpc grpc-google-cloud-iap-v1 - 0.23.0 + 0.24.0 com.google.api.grpc proto-google-cloud-iap-v1 - 0.23.0 + 0.24.0 diff --git a/java-iap/google-cloud-iap/pom.xml b/java-iap/google-cloud-iap/pom.xml index ddb913f3aeb8..1e54ca478408 100644 --- a/java-iap/google-cloud-iap/pom.xml +++ b/java-iap/google-cloud-iap/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-iap - 0.23.0 + 0.24.0 jar Google Cloud Identity-Aware Proxy API Cloud Identity-Aware Proxy API Controls access to cloud applications running on Google Cloud Platform. com.google.cloud google-cloud-iap-parent - 0.23.0 + 0.24.0 google-cloud-iap diff --git a/java-iap/grpc-google-cloud-iap-v1/pom.xml b/java-iap/grpc-google-cloud-iap-v1/pom.xml index 8a066aab83df..e9131b938243 100644 --- a/java-iap/grpc-google-cloud-iap-v1/pom.xml +++ b/java-iap/grpc-google-cloud-iap-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-iap-v1 - 0.23.0 + 0.24.0 grpc-google-cloud-iap-v1 GRPC library for google-cloud-iap com.google.cloud google-cloud-iap-parent - 0.23.0 + 0.24.0 diff --git a/java-iap/pom.xml b/java-iap/pom.xml index fa607696d69c..7d4ae19a79ce 100644 --- a/java-iap/pom.xml +++ b/java-iap/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-iap-parent pom - 0.23.0 + 0.24.0 Google Cloud Identity-Aware Proxy API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-iap - 0.23.0 + 0.24.0 com.google.api.grpc grpc-google-cloud-iap-v1 - 0.23.0 + 0.24.0 com.google.api.grpc proto-google-cloud-iap-v1 - 0.23.0 + 0.24.0 diff --git a/java-iap/proto-google-cloud-iap-v1/pom.xml b/java-iap/proto-google-cloud-iap-v1/pom.xml index e94573f8b47a..b7e3411ea917 100644 --- a/java-iap/proto-google-cloud-iap-v1/pom.xml +++ b/java-iap/proto-google-cloud-iap-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-iap-v1 - 0.23.0 + 0.24.0 proto-google-cloud-iap-v1 Proto library for google-cloud-iap com.google.cloud google-cloud-iap-parent - 0.23.0 + 0.24.0 diff --git a/java-ids/CHANGELOG.md b/java-ids/CHANGELOG.md index cbd156f0e106..5ba99556c480 100644 --- a/java-ids/CHANGELOG.md +++ b/java-ids/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 1.67.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 1.66.0 (2025-06-25) ### Dependencies diff --git a/java-ids/README.md b/java-ids/README.md index 36f79f70b52a..59c10992d9fe 100644 --- a/java-ids/README.md +++ b/java-ids/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-ids - 1.65.0 + 1.66.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-ids:1.65.0' +implementation 'com.google.cloud:google-cloud-ids:1.66.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-ids" % "1.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-ids" % "1.66.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.65.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-ids/1.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-ids/google-cloud-ids-bom/pom.xml b/java-ids/google-cloud-ids-bom/pom.xml index 703ff1430678..6f23d8a89486 100644 --- a/java-ids/google-cloud-ids-bom/pom.xml +++ b/java-ids/google-cloud-ids-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-ids-bom - 1.66.0 + 1.67.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-ids - 1.66.0 + 1.67.0 com.google.api.grpc grpc-google-cloud-ids-v1 - 1.66.0 + 1.67.0 com.google.api.grpc proto-google-cloud-ids-v1 - 1.66.0 + 1.67.0 diff --git a/java-ids/google-cloud-ids/pom.xml b/java-ids/google-cloud-ids/pom.xml index 958b9d818cbf..d3af85db59ce 100644 --- a/java-ids/google-cloud-ids/pom.xml +++ b/java-ids/google-cloud-ids/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-ids - 1.66.0 + 1.67.0 jar Google Intrusion Detection System Intrusion Detection System monitors your networks, and it alerts you when it detects malicious activity. Cloud IDS is powered by Palo Alto Networks. com.google.cloud google-cloud-ids-parent - 1.66.0 + 1.67.0 google-cloud-ids diff --git a/java-ids/grpc-google-cloud-ids-v1/pom.xml b/java-ids/grpc-google-cloud-ids-v1/pom.xml index 85bf828cae23..9238f9f8dd36 100644 --- a/java-ids/grpc-google-cloud-ids-v1/pom.xml +++ b/java-ids/grpc-google-cloud-ids-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-ids-v1 - 1.66.0 + 1.67.0 grpc-google-cloud-ids-v1 GRPC library for google-cloud-ids com.google.cloud google-cloud-ids-parent - 1.66.0 + 1.67.0 diff --git a/java-ids/pom.xml b/java-ids/pom.xml index 04226e67242f..3e6507f7e25b 100644 --- a/java-ids/pom.xml +++ b/java-ids/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-ids-parent pom - 1.66.0 + 1.67.0 Google Intrusion Detection System Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-ids - 1.66.0 + 1.67.0 com.google.api.grpc grpc-google-cloud-ids-v1 - 1.66.0 + 1.67.0 com.google.api.grpc proto-google-cloud-ids-v1 - 1.66.0 + 1.67.0 diff --git a/java-ids/proto-google-cloud-ids-v1/pom.xml b/java-ids/proto-google-cloud-ids-v1/pom.xml index 59b4e5271b27..3541330cd4a2 100644 --- a/java-ids/proto-google-cloud-ids-v1/pom.xml +++ b/java-ids/proto-google-cloud-ids-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-ids-v1 - 1.66.0 + 1.67.0 proto-google-cloud-ids-v1 Proto library for google-cloud-ids com.google.cloud google-cloud-ids-parent - 1.66.0 + 1.67.0 diff --git a/java-infra-manager/CHANGELOG.md b/java-infra-manager/CHANGELOG.md index f9391374a7e6..dbd237ede571 100644 --- a/java-infra-manager/CHANGELOG.md +++ b/java-infra-manager/CHANGELOG.md @@ -1,5 +1,16 @@ # Changelog +## 0.45.0 (2025-07-11) + +### Features + +* added resource change and drift details for the preview ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.44.0 (2025-06-25) ### Dependencies diff --git a/java-infra-manager/README.md b/java-infra-manager/README.md index 93b8d094752d..920499601f77 100644 --- a/java-infra-manager/README.md +++ b/java-infra-manager/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-infra-manager - 0.43.0 + 0.44.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-infra-manager:0.43.0' +implementation 'com.google.cloud:google-cloud-infra-manager:0.44.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-infra-manager" % "0.43.0" +libraryDependencies += "com.google.cloud" % "google-cloud-infra-manager" % "0.44.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.43.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-infra-manager/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-infra-manager/google-cloud-infra-manager-bom/pom.xml b/java-infra-manager/google-cloud-infra-manager-bom/pom.xml index 04e986a4d124..a522dabdca19 100644 --- a/java-infra-manager/google-cloud-infra-manager-bom/pom.xml +++ b/java-infra-manager/google-cloud-infra-manager-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-infra-manager-bom - 0.44.0 + 0.45.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-infra-manager - 0.44.0 + 0.45.0 com.google.api.grpc grpc-google-cloud-infra-manager-v1 - 0.44.0 + 0.45.0 com.google.api.grpc proto-google-cloud-infra-manager-v1 - 0.44.0 + 0.45.0 diff --git a/java-infra-manager/google-cloud-infra-manager/pom.xml b/java-infra-manager/google-cloud-infra-manager/pom.xml index a6be01dd8567..e8e52d85f449 100644 --- a/java-infra-manager/google-cloud-infra-manager/pom.xml +++ b/java-infra-manager/google-cloud-infra-manager/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-infra-manager - 0.44.0 + 0.45.0 jar Google Infrastructure Manager API Infrastructure Manager API Creates and manages Google Cloud Platform resources and infrastructure. com.google.cloud google-cloud-infra-manager-parent - 0.44.0 + 0.45.0 google-cloud-infra-manager diff --git a/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/ConfigClient.java b/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/ConfigClient.java index 4b147f68d8e1..af95ae2d1adc 100644 --- a/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/ConfigClient.java +++ b/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/ConfigClient.java @@ -512,6 +512,84 @@ * * * + *

ListResourceChanges + *

Lists ResourceChanges for a given preview. + * + *

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

+ *
    + *
  • listResourceChanges(ListResourceChangesRequest request) + *

+ *

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

+ *
    + *
  • listResourceChanges(PreviewName parent) + *

  • listResourceChanges(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.

+ *
    + *
  • listResourceChangesPagedCallable() + *

  • listResourceChangesCallable() + *

+ * + * + * + *

GetResourceChange + *

Get a ResourceChange for a given preview. + * + *

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

+ *
    + *
  • getResourceChange(GetResourceChangeRequest request) + *

+ *

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

+ *
    + *
  • getResourceChange(ResourceChangeName name) + *

  • getResourceChange(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.

+ *
    + *
  • getResourceChangeCallable() + *

+ * + * + * + *

ListResourceDrifts + *

List ResourceDrifts for a given preview. + * + *

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

+ *
    + *
  • listResourceDrifts(ListResourceDriftsRequest request) + *

+ *

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

+ *
    + *
  • listResourceDrifts(PreviewName parent) + *

  • listResourceDrifts(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.

+ *
    + *
  • listResourceDriftsPagedCallable() + *

  • listResourceDriftsCallable() + *

+ * + * + * + *

GetResourceDrift + *

Get a ResourceDrift for a given preview. + * + *

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

+ *
    + *
  • getResourceDrift(GetResourceDriftRequest request) + *

+ *

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

+ *
    + *
  • getResourceDrift(ResourceDriftName name) + *

  • getResourceDrift(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.

+ *
    + *
  • getResourceDriftCallable() + *

+ * + * + * *

ListLocations *

Lists information about the supported locations for this service. * @@ -3726,7 +3804,7 @@ public final TerraformVersion getTerraformVersion(GetTerraformVersionRequest req // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists ResourceChanges for a given preview. * *

Sample code: * @@ -3737,14 +3815,77 @@ public final TerraformVersion getTerraformVersion(GetTerraformVersionRequest req * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConfigClient configClient = ConfigClient.create()) { - * ListLocationsRequest request = - * ListLocationsRequest.newBuilder() - * .setName("name3373707") - * .setFilter("filter-1274492040") + * PreviewName parent = PreviewName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]"); + * for (ResourceChange element : configClient.listResourceChanges(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * } + * + * @param parent Required. The parent in whose context the ResourceChanges are listed. The parent + * value is in the format: 'projects/{project_id}/locations/{location}/previews/{preview}'. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListResourceChangesPagedResponse listResourceChanges(PreviewName parent) { + ListResourceChangesRequest request = + ListResourceChangesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listResourceChanges(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists ResourceChanges for a given preview. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConfigClient configClient = ConfigClient.create()) {
+   *   String parent = PreviewName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]").toString();
+   *   for (ResourceChange element : configClient.listResourceChanges(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent in whose context the ResourceChanges are listed. The parent + * value is in the format: 'projects/{project_id}/locations/{location}/previews/{preview}'. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListResourceChangesPagedResponse listResourceChanges(String parent) { + ListResourceChangesRequest request = + ListResourceChangesRequest.newBuilder().setParent(parent).build(); + return listResourceChanges(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists ResourceChanges for a given preview. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConfigClient configClient = ConfigClient.create()) {
+   *   ListResourceChangesRequest request =
+   *       ListResourceChangesRequest.newBuilder()
+   *           .setParent(PreviewName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
    *           .build();
-   *   for (Location element : configClient.listLocations(request).iterateAll()) {
+   *   for (ResourceChange element : configClient.listResourceChanges(request).iterateAll()) {
    *     // doThingsWith(element);
    *   }
    * }
@@ -3753,13 +3894,14 @@ public final TerraformVersion getTerraformVersion(GetTerraformVersionRequest req
    * @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 ListLocationsPagedResponse listLocations(ListLocationsRequest request) {
-    return listLocationsPagedCallable().call(request);
+  public final ListResourceChangesPagedResponse listResourceChanges(
+      ListResourceChangesRequest request) {
+    return listResourceChangesPagedCallable().call(request);
   }
 
   // AUTO-GENERATED DOCUMENTATION AND METHOD.
   /**
-   * Lists information about the supported locations for this service.
+   * Lists ResourceChanges for a given preview.
    *
    * 

Sample code: * @@ -3770,29 +3912,31 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConfigClient configClient = ConfigClient.create()) { - * ListLocationsRequest request = - * ListLocationsRequest.newBuilder() - * .setName("name3373707") - * .setFilter("filter-1274492040") + * ListResourceChangesRequest request = + * ListResourceChangesRequest.newBuilder() + * .setParent(PreviewName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") * .build(); - * ApiFuture future = configClient.listLocationsPagedCallable().futureCall(request); + * ApiFuture future = + * configClient.listResourceChangesPagedCallable().futureCall(request); * // Do something. - * for (Location element : future.get().iterateAll()) { + * for (ResourceChange element : future.get().iterateAll()) { * // doThingsWith(element); * } * } * }

*/ - public final UnaryCallable - listLocationsPagedCallable() { - return stub.listLocationsPagedCallable(); + public final UnaryCallable + listResourceChangesPagedCallable() { + return stub.listResourceChangesPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists ResourceChanges for a given preview. * *

Sample code: * @@ -3803,16 +3947,18 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConfigClient configClient = ConfigClient.create()) { - * ListLocationsRequest request = - * ListLocationsRequest.newBuilder() - * .setName("name3373707") - * .setFilter("filter-1274492040") + * ListResourceChangesRequest request = + * ListResourceChangesRequest.newBuilder() + * .setParent(PreviewName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") * .build(); * while (true) { - * ListLocationsResponse response = configClient.listLocationsCallable().call(request); - * for (Location element : response.getLocationsList()) { + * ListResourceChangesResponse response = + * configClient.listResourceChangesCallable().call(request); + * for (ResourceChange element : response.getResourceChangesList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -3825,13 +3971,14 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * } * } */ - public final UnaryCallable listLocationsCallable() { - return stub.listLocationsCallable(); + public final UnaryCallable + listResourceChangesCallable() { + return stub.listResourceChangesCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets information about a location. + * Get a ResourceChange for a given preview. * *

Sample code: * @@ -3842,21 +3989,27 @@ public final UnaryCallable listLoca * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConfigClient configClient = ConfigClient.create()) { - * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); - * Location response = configClient.getLocation(request); + * ResourceChangeName name = + * ResourceChangeName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]", "[RESOURCE_CHANGE]"); + * ResourceChange response = configClient.getResourceChange(name); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. The name of the resource change to retrieve. Format: + * 'projects/{project_id}/locations/{location}/previews/{preview}/resourceChanges/{resource_change}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Location getLocation(GetLocationRequest request) { - return getLocationCallable().call(request); + public final ResourceChange getResourceChange(ResourceChangeName name) { + GetResourceChangeRequest request = + GetResourceChangeRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getResourceChange(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets information about a location. + * Get a ResourceChange for a given preview. * *

Sample code: * @@ -3867,22 +4020,25 @@ public final Location getLocation(GetLocationRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConfigClient configClient = ConfigClient.create()) { - * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); - * ApiFuture future = configClient.getLocationCallable().futureCall(request); - * // Do something. - * Location response = future.get(); + * String name = + * ResourceChangeName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]", "[RESOURCE_CHANGE]") + * .toString(); + * ResourceChange response = configClient.getResourceChange(name); * } * } + * + * @param name Required. The name of the resource change to retrieve. Format: + * 'projects/{project_id}/locations/{location}/previews/{preview}/resourceChanges/{resource_change}'. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable getLocationCallable() { - return stub.getLocationCallable(); + public final ResourceChange getResourceChange(String name) { + GetResourceChangeRequest request = GetResourceChangeRequest.newBuilder().setName(name).build(); + return getResourceChange(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Sets the access control policy on the specified resource. Replacesany existing policy. - * - *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * Get a ResourceChange for a given preview. * *

Sample code: * @@ -3893,28 +4049,26 @@ public final UnaryCallable getLocationCallable() { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConfigClient configClient = ConfigClient.create()) { - * SetIamPolicyRequest request = - * SetIamPolicyRequest.newBuilder() - * .setResource(DeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString()) - * .setPolicy(Policy.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) + * GetResourceChangeRequest request = + * GetResourceChangeRequest.newBuilder() + * .setName( + * ResourceChangeName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]", "[RESOURCE_CHANGE]") + * .toString()) * .build(); - * Policy response = configClient.setIamPolicy(request); + * ResourceChange response = configClient.getResourceChange(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 Policy setIamPolicy(SetIamPolicyRequest request) { - return setIamPolicyCallable().call(request); + public final ResourceChange getResourceChange(GetResourceChangeRequest request) { + return getResourceChangeCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Sets the access control policy on the specified resource. Replacesany existing policy. - * - *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * Get a ResourceChange for a given preview. * *

Sample code: * @@ -3925,26 +4079,26 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConfigClient configClient = ConfigClient.create()) { - * SetIamPolicyRequest request = - * SetIamPolicyRequest.newBuilder() - * .setResource(DeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString()) - * .setPolicy(Policy.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) + * GetResourceChangeRequest request = + * GetResourceChangeRequest.newBuilder() + * .setName( + * ResourceChangeName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]", "[RESOURCE_CHANGE]") + * .toString()) * .build(); - * ApiFuture future = configClient.setIamPolicyCallable().futureCall(request); + * ApiFuture future = + * configClient.getResourceChangeCallable().futureCall(request); * // Do something. - * Policy response = future.get(); + * ResourceChange response = future.get(); * } * } */ - public final UnaryCallable setIamPolicyCallable() { - return stub.setIamPolicyCallable(); + public final UnaryCallable getResourceChangeCallable() { + return stub.getResourceChangeCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the access control policy for a resource. Returns an empty policyif the resource exists - * and does not have a policy set. + * List ResourceDrifts for a given preview. * *

Sample code: * @@ -3955,26 +4109,28 @@ public final UnaryCallable setIamPolicyCallable() { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConfigClient configClient = ConfigClient.create()) { - * GetIamPolicyRequest request = - * GetIamPolicyRequest.newBuilder() - * .setResource(DeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString()) - * .setOptions(GetPolicyOptions.newBuilder().build()) - * .build(); - * Policy response = configClient.getIamPolicy(request); + * PreviewName parent = PreviewName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]"); + * for (ResourceDrift element : configClient.listResourceDrifts(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. The parent in whose context the ResourceDrifts are listed. The parent + * value is in the format: 'projects/{project_id}/locations/{location}/previews/{preview}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy getIamPolicy(GetIamPolicyRequest request) { - return getIamPolicyCallable().call(request); + public final ListResourceDriftsPagedResponse listResourceDrifts(PreviewName parent) { + ListResourceDriftsRequest request = + ListResourceDriftsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listResourceDrifts(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the access control policy for a resource. Returns an empty policyif the resource exists - * and does not have a policy set. + * List ResourceDrifts for a given preview. * *

Sample code: * @@ -3985,29 +4141,26 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConfigClient configClient = ConfigClient.create()) { - * GetIamPolicyRequest request = - * GetIamPolicyRequest.newBuilder() - * .setResource(DeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString()) - * .setOptions(GetPolicyOptions.newBuilder().build()) - * .build(); - * ApiFuture future = configClient.getIamPolicyCallable().futureCall(request); - * // Do something. - * Policy response = future.get(); + * String parent = PreviewName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]").toString(); + * for (ResourceDrift element : configClient.listResourceDrifts(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } + * + * @param parent Required. The parent in whose context the ResourceDrifts are listed. The parent + * value is in the format: 'projects/{project_id}/locations/{location}/previews/{preview}'. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable getIamPolicyCallable() { - return stub.getIamPolicyCallable(); + public final ListResourceDriftsPagedResponse listResourceDrifts(String parent) { + ListResourceDriftsRequest request = + ListResourceDriftsRequest.newBuilder().setParent(parent).build(); + return listResourceDrifts(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns permissions that a caller has on the specified resource. If theresource does not exist, - * this will return an empty set ofpermissions, not a `NOT_FOUND` error. - * - *

Note: This operation is designed to be used for buildingpermission-aware UIs and - * command-line tools, not for authorizationchecking. This operation may "fail open" without - * warning. + * List ResourceDrifts for a given preview. * *

Sample code: * @@ -4018,30 +4171,31 @@ public final UnaryCallable getIamPolicyCallable() { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConfigClient configClient = ConfigClient.create()) { - * TestIamPermissionsRequest request = - * TestIamPermissionsRequest.newBuilder() - * .setResource(DeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString()) - * .addAllPermissions(new ArrayList()) + * ListResourceDriftsRequest request = + * ListResourceDriftsRequest.newBuilder() + * .setParent(PreviewName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") * .build(); - * TestIamPermissionsResponse response = configClient.testIamPermissions(request); + * for (ResourceDrift element : configClient.listResourceDrifts(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 TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { - return testIamPermissionsCallable().call(request); + public final ListResourceDriftsPagedResponse listResourceDrifts( + ListResourceDriftsRequest request) { + return listResourceDriftsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns permissions that a caller has on the specified resource. If theresource does not exist, - * this will return an empty set ofpermissions, not a `NOT_FOUND` error. - * - *

Note: This operation is designed to be used for buildingpermission-aware UIs and - * command-line tools, not for authorizationchecking. This operation may "fail open" without - * warning. + * List ResourceDrifts for a given preview. * *

Sample code: * @@ -4052,27 +4206,536 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConfigClient configClient = ConfigClient.create()) { - * TestIamPermissionsRequest request = - * TestIamPermissionsRequest.newBuilder() - * .setResource(DeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString()) - * .addAllPermissions(new ArrayList()) + * ListResourceDriftsRequest request = + * ListResourceDriftsRequest.newBuilder() + * .setParent(PreviewName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") * .build(); - * ApiFuture future = - * configClient.testIamPermissionsCallable().futureCall(request); + * ApiFuture future = + * configClient.listResourceDriftsPagedCallable().futureCall(request); * // Do something. - * TestIamPermissionsResponse response = future.get(); + * for (ResourceDrift element : future.get().iterateAll()) { + * // doThingsWith(element); + * } * } * } */ - public final UnaryCallable - testIamPermissionsCallable() { - return stub.testIamPermissionsCallable(); + public final UnaryCallable + listResourceDriftsPagedCallable() { + return stub.listResourceDriftsPagedCallable(); } - @Override - public final void close() { - stub.close(); - } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List ResourceDrifts for a given preview. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConfigClient configClient = ConfigClient.create()) {
+   *   ListResourceDriftsRequest request =
+   *       ListResourceDriftsRequest.newBuilder()
+   *           .setParent(PreviewName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListResourceDriftsResponse response =
+   *         configClient.listResourceDriftsCallable().call(request);
+   *     for (ResourceDrift element : response.getResourceDriftsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listResourceDriftsCallable() { + return stub.listResourceDriftsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get a ResourceDrift for a given preview. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConfigClient configClient = ConfigClient.create()) {
+   *   ResourceDriftName name =
+   *       ResourceDriftName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]", "[RESOURCE_DRIFT]");
+   *   ResourceDrift response = configClient.getResourceDrift(name);
+   * }
+   * }
+ * + * @param name Required. The name of the resource drift to retrieve. Format: + * 'projects/{project_id}/locations/{location}/previews/{preview}/resourceDrifts/{resource_drift}'. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ResourceDrift getResourceDrift(ResourceDriftName name) { + GetResourceDriftRequest request = + GetResourceDriftRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getResourceDrift(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get a ResourceDrift for a given preview. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConfigClient configClient = ConfigClient.create()) {
+   *   String name =
+   *       ResourceDriftName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]", "[RESOURCE_DRIFT]")
+   *           .toString();
+   *   ResourceDrift response = configClient.getResourceDrift(name);
+   * }
+   * }
+ * + * @param name Required. The name of the resource drift to retrieve. Format: + * 'projects/{project_id}/locations/{location}/previews/{preview}/resourceDrifts/{resource_drift}'. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ResourceDrift getResourceDrift(String name) { + GetResourceDriftRequest request = GetResourceDriftRequest.newBuilder().setName(name).build(); + return getResourceDrift(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get a ResourceDrift for a given preview. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConfigClient configClient = ConfigClient.create()) {
+   *   GetResourceDriftRequest request =
+   *       GetResourceDriftRequest.newBuilder()
+   *           .setName(
+   *               ResourceDriftName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]", "[RESOURCE_DRIFT]")
+   *                   .toString())
+   *           .build();
+   *   ResourceDrift response = configClient.getResourceDrift(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 ResourceDrift getResourceDrift(GetResourceDriftRequest request) { + return getResourceDriftCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get a ResourceDrift for a given preview. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConfigClient configClient = ConfigClient.create()) {
+   *   GetResourceDriftRequest request =
+   *       GetResourceDriftRequest.newBuilder()
+   *           .setName(
+   *               ResourceDriftName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]", "[RESOURCE_DRIFT]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future = configClient.getResourceDriftCallable().futureCall(request);
+   *   // Do something.
+   *   ResourceDrift response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getResourceDriftCallable() { + return stub.getResourceDriftCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConfigClient configClient = ConfigClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : configClient.listLocations(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 ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConfigClient configClient = ConfigClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future = configClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConfigClient configClient = ConfigClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response = configClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConfigClient configClient = ConfigClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = configClient.getLocation(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 Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConfigClient configClient = ConfigClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future = configClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConfigClient configClient = ConfigClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(DeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = configClient.setIamPolicy(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 Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConfigClient configClient = ConfigClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(DeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = configClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConfigClient configClient = ConfigClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(DeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = configClient.getIamPolicy(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 Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConfigClient configClient = ConfigClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(DeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = configClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConfigClient configClient = ConfigClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(DeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response = configClient.testIamPermissions(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 TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConfigClient configClient = ConfigClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(DeploymentName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT]").toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       configClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something.
+   *   TestIamPermissionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + + @Override + public final void close() { + stub.close(); + } @Override public void shutdown() { @@ -4487,6 +5150,170 @@ protected ListTerraformVersionsFixedSizeCollection createCollection( } } + public static class ListResourceChangesPagedResponse + extends AbstractPagedListResponse< + ListResourceChangesRequest, + ListResourceChangesResponse, + ResourceChange, + ListResourceChangesPage, + ListResourceChangesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListResourceChangesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListResourceChangesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListResourceChangesPagedResponse(ListResourceChangesPage page) { + super(page, ListResourceChangesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListResourceChangesPage + extends AbstractPage< + ListResourceChangesRequest, + ListResourceChangesResponse, + ResourceChange, + ListResourceChangesPage> { + + private ListResourceChangesPage( + PageContext + context, + ListResourceChangesResponse response) { + super(context, response); + } + + private static ListResourceChangesPage createEmptyPage() { + return new ListResourceChangesPage(null, null); + } + + @Override + protected ListResourceChangesPage createPage( + PageContext + context, + ListResourceChangesResponse response) { + return new ListResourceChangesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListResourceChangesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListResourceChangesRequest, + ListResourceChangesResponse, + ResourceChange, + ListResourceChangesPage, + ListResourceChangesFixedSizeCollection> { + + private ListResourceChangesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListResourceChangesFixedSizeCollection createEmptyCollection() { + return new ListResourceChangesFixedSizeCollection(null, 0); + } + + @Override + protected ListResourceChangesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListResourceChangesFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListResourceDriftsPagedResponse + extends AbstractPagedListResponse< + ListResourceDriftsRequest, + ListResourceDriftsResponse, + ResourceDrift, + ListResourceDriftsPage, + ListResourceDriftsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListResourceDriftsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListResourceDriftsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListResourceDriftsPagedResponse(ListResourceDriftsPage page) { + super(page, ListResourceDriftsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListResourceDriftsPage + extends AbstractPage< + ListResourceDriftsRequest, + ListResourceDriftsResponse, + ResourceDrift, + ListResourceDriftsPage> { + + private ListResourceDriftsPage( + PageContext context, + ListResourceDriftsResponse response) { + super(context, response); + } + + private static ListResourceDriftsPage createEmptyPage() { + return new ListResourceDriftsPage(null, null); + } + + @Override + protected ListResourceDriftsPage createPage( + PageContext context, + ListResourceDriftsResponse response) { + return new ListResourceDriftsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListResourceDriftsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListResourceDriftsRequest, + ListResourceDriftsResponse, + ResourceDrift, + ListResourceDriftsPage, + ListResourceDriftsFixedSizeCollection> { + + private ListResourceDriftsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListResourceDriftsFixedSizeCollection createEmptyCollection() { + return new ListResourceDriftsFixedSizeCollection(null, 0); + } + + @Override + protected ListResourceDriftsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListResourceDriftsFixedSizeCollection(pages, collectionSize); + } + } + public static class ListLocationsPagedResponse extends AbstractPagedListResponse< ListLocationsRequest, diff --git a/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/ConfigSettings.java b/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/ConfigSettings.java index 54ee7784a449..4b409245348f 100644 --- a/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/ConfigSettings.java +++ b/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/ConfigSettings.java @@ -19,6 +19,8 @@ import static com.google.cloud.config.v1.ConfigClient.ListDeploymentsPagedResponse; import static com.google.cloud.config.v1.ConfigClient.ListLocationsPagedResponse; import static com.google.cloud.config.v1.ConfigClient.ListPreviewsPagedResponse; +import static com.google.cloud.config.v1.ConfigClient.ListResourceChangesPagedResponse; +import static com.google.cloud.config.v1.ConfigClient.ListResourceDriftsPagedResponse; import static com.google.cloud.config.v1.ConfigClient.ListResourcesPagedResponse; import static com.google.cloud.config.v1.ConfigClient.ListRevisionsPagedResponse; import static com.google.cloud.config.v1.ConfigClient.ListTerraformVersionsPagedResponse; @@ -299,6 +301,30 @@ public UnaryCallSettings deletePreviewSettings( return ((ConfigStubSettings) getStubSettings()).getTerraformVersionSettings(); } + /** Returns the object with the settings used for calls to listResourceChanges. */ + public PagedCallSettings< + ListResourceChangesRequest, ListResourceChangesResponse, ListResourceChangesPagedResponse> + listResourceChangesSettings() { + return ((ConfigStubSettings) getStubSettings()).listResourceChangesSettings(); + } + + /** Returns the object with the settings used for calls to getResourceChange. */ + public UnaryCallSettings getResourceChangeSettings() { + return ((ConfigStubSettings) getStubSettings()).getResourceChangeSettings(); + } + + /** Returns the object with the settings used for calls to listResourceDrifts. */ + public PagedCallSettings< + ListResourceDriftsRequest, ListResourceDriftsResponse, ListResourceDriftsPagedResponse> + listResourceDriftsSettings() { + return ((ConfigStubSettings) getStubSettings()).listResourceDriftsSettings(); + } + + /** Returns the object with the settings used for calls to getResourceDrift. */ + public UnaryCallSettings getResourceDriftSettings() { + return ((ConfigStubSettings) getStubSettings()).getResourceDriftSettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -614,6 +640,34 @@ public UnaryCallSettings.Builder deletePreviewS return getStubSettingsBuilder().getTerraformVersionSettings(); } + /** Returns the builder for the settings used for calls to listResourceChanges. */ + public PagedCallSettings.Builder< + ListResourceChangesRequest, + ListResourceChangesResponse, + ListResourceChangesPagedResponse> + listResourceChangesSettings() { + return getStubSettingsBuilder().listResourceChangesSettings(); + } + + /** Returns the builder for the settings used for calls to getResourceChange. */ + public UnaryCallSettings.Builder + getResourceChangeSettings() { + return getStubSettingsBuilder().getResourceChangeSettings(); + } + + /** Returns the builder for the settings used for calls to listResourceDrifts. */ + public PagedCallSettings.Builder< + ListResourceDriftsRequest, ListResourceDriftsResponse, ListResourceDriftsPagedResponse> + listResourceDriftsSettings() { + return getStubSettingsBuilder().listResourceDriftsSettings(); + } + + /** Returns the builder for the settings used for calls to getResourceDrift. */ + public UnaryCallSettings.Builder + getResourceDriftSettings() { + return getStubSettingsBuilder().getResourceDriftSettings(); + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/gapic_metadata.json b/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/gapic_metadata.json index ee8429a4179e..0fcd8926f9ee 100644 --- a/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/gapic_metadata.json +++ b/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/gapic_metadata.json @@ -52,6 +52,12 @@ "GetResource": { "methods": ["getResource", "getResource", "getResource", "getResourceCallable"] }, + "GetResourceChange": { + "methods": ["getResourceChange", "getResourceChange", "getResourceChange", "getResourceChangeCallable"] + }, + "GetResourceDrift": { + "methods": ["getResourceDrift", "getResourceDrift", "getResourceDrift", "getResourceDriftCallable"] + }, "GetRevision": { "methods": ["getRevision", "getRevision", "getRevision", "getRevisionCallable"] }, @@ -70,6 +76,12 @@ "ListPreviews": { "methods": ["listPreviews", "listPreviews", "listPreviews", "listPreviewsPagedCallable", "listPreviewsCallable"] }, + "ListResourceChanges": { + "methods": ["listResourceChanges", "listResourceChanges", "listResourceChanges", "listResourceChangesPagedCallable", "listResourceChangesCallable"] + }, + "ListResourceDrifts": { + "methods": ["listResourceDrifts", "listResourceDrifts", "listResourceDrifts", "listResourceDriftsPagedCallable", "listResourceDriftsCallable"] + }, "ListResources": { "methods": ["listResources", "listResources", "listResources", "listResourcesPagedCallable", "listResourcesCallable"] }, diff --git a/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/ConfigStub.java b/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/ConfigStub.java index ac9b43bab404..0c0e8217f407 100644 --- a/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/ConfigStub.java +++ b/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/ConfigStub.java @@ -19,6 +19,8 @@ import static com.google.cloud.config.v1.ConfigClient.ListDeploymentsPagedResponse; import static com.google.cloud.config.v1.ConfigClient.ListLocationsPagedResponse; import static com.google.cloud.config.v1.ConfigClient.ListPreviewsPagedResponse; +import static com.google.cloud.config.v1.ConfigClient.ListResourceChangesPagedResponse; +import static com.google.cloud.config.v1.ConfigClient.ListResourceDriftsPagedResponse; import static com.google.cloud.config.v1.ConfigClient.ListResourcesPagedResponse; import static com.google.cloud.config.v1.ConfigClient.ListRevisionsPagedResponse; import static com.google.cloud.config.v1.ConfigClient.ListTerraformVersionsPagedResponse; @@ -39,6 +41,8 @@ import com.google.cloud.config.v1.ExportRevisionStatefileRequest; import com.google.cloud.config.v1.GetDeploymentRequest; import com.google.cloud.config.v1.GetPreviewRequest; +import com.google.cloud.config.v1.GetResourceChangeRequest; +import com.google.cloud.config.v1.GetResourceDriftRequest; import com.google.cloud.config.v1.GetResourceRequest; import com.google.cloud.config.v1.GetRevisionRequest; import com.google.cloud.config.v1.GetTerraformVersionRequest; @@ -47,6 +51,10 @@ import com.google.cloud.config.v1.ListDeploymentsResponse; import com.google.cloud.config.v1.ListPreviewsRequest; import com.google.cloud.config.v1.ListPreviewsResponse; +import com.google.cloud.config.v1.ListResourceChangesRequest; +import com.google.cloud.config.v1.ListResourceChangesResponse; +import com.google.cloud.config.v1.ListResourceDriftsRequest; +import com.google.cloud.config.v1.ListResourceDriftsResponse; import com.google.cloud.config.v1.ListResourcesRequest; import com.google.cloud.config.v1.ListResourcesResponse; import com.google.cloud.config.v1.ListRevisionsRequest; @@ -58,6 +66,8 @@ import com.google.cloud.config.v1.OperationMetadata; import com.google.cloud.config.v1.Preview; import com.google.cloud.config.v1.Resource; +import com.google.cloud.config.v1.ResourceChange; +import com.google.cloud.config.v1.ResourceDrift; import com.google.cloud.config.v1.Revision; import com.google.cloud.config.v1.Statefile; import com.google.cloud.config.v1.TerraformVersion; @@ -250,6 +260,34 @@ public UnaryCallable getTerraformV throw new UnsupportedOperationException("Not implemented: getTerraformVersionCallable()"); } + public UnaryCallable + listResourceChangesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listResourceChangesPagedCallable()"); + } + + public UnaryCallable + listResourceChangesCallable() { + throw new UnsupportedOperationException("Not implemented: listResourceChangesCallable()"); + } + + public UnaryCallable getResourceChangeCallable() { + throw new UnsupportedOperationException("Not implemented: getResourceChangeCallable()"); + } + + public UnaryCallable + listResourceDriftsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listResourceDriftsPagedCallable()"); + } + + public UnaryCallable + listResourceDriftsCallable() { + throw new UnsupportedOperationException("Not implemented: listResourceDriftsCallable()"); + } + + public UnaryCallable getResourceDriftCallable() { + throw new UnsupportedOperationException("Not implemented: getResourceDriftCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); diff --git a/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/ConfigStubSettings.java b/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/ConfigStubSettings.java index e4abee456378..a83a7c221c59 100644 --- a/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/ConfigStubSettings.java +++ b/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/ConfigStubSettings.java @@ -19,6 +19,8 @@ import static com.google.cloud.config.v1.ConfigClient.ListDeploymentsPagedResponse; import static com.google.cloud.config.v1.ConfigClient.ListLocationsPagedResponse; import static com.google.cloud.config.v1.ConfigClient.ListPreviewsPagedResponse; +import static com.google.cloud.config.v1.ConfigClient.ListResourceChangesPagedResponse; +import static com.google.cloud.config.v1.ConfigClient.ListResourceDriftsPagedResponse; import static com.google.cloud.config.v1.ConfigClient.ListResourcesPagedResponse; import static com.google.cloud.config.v1.ConfigClient.ListRevisionsPagedResponse; import static com.google.cloud.config.v1.ConfigClient.ListTerraformVersionsPagedResponse; @@ -66,6 +68,8 @@ import com.google.cloud.config.v1.ExportRevisionStatefileRequest; import com.google.cloud.config.v1.GetDeploymentRequest; import com.google.cloud.config.v1.GetPreviewRequest; +import com.google.cloud.config.v1.GetResourceChangeRequest; +import com.google.cloud.config.v1.GetResourceDriftRequest; import com.google.cloud.config.v1.GetResourceRequest; import com.google.cloud.config.v1.GetRevisionRequest; import com.google.cloud.config.v1.GetTerraformVersionRequest; @@ -74,6 +78,10 @@ import com.google.cloud.config.v1.ListDeploymentsResponse; import com.google.cloud.config.v1.ListPreviewsRequest; import com.google.cloud.config.v1.ListPreviewsResponse; +import com.google.cloud.config.v1.ListResourceChangesRequest; +import com.google.cloud.config.v1.ListResourceChangesResponse; +import com.google.cloud.config.v1.ListResourceDriftsRequest; +import com.google.cloud.config.v1.ListResourceDriftsResponse; import com.google.cloud.config.v1.ListResourcesRequest; import com.google.cloud.config.v1.ListResourcesResponse; import com.google.cloud.config.v1.ListRevisionsRequest; @@ -85,6 +93,8 @@ import com.google.cloud.config.v1.OperationMetadata; import com.google.cloud.config.v1.Preview; import com.google.cloud.config.v1.Resource; +import com.google.cloud.config.v1.ResourceChange; +import com.google.cloud.config.v1.ResourceDrift; import com.google.cloud.config.v1.Revision; import com.google.cloud.config.v1.Statefile; import com.google.cloud.config.v1.TerraformVersion; @@ -243,6 +253,15 @@ public class ConfigStubSettings extends StubSettings { listTerraformVersionsSettings; private final UnaryCallSettings getTerraformVersionSettings; + private final PagedCallSettings< + ListResourceChangesRequest, ListResourceChangesResponse, ListResourceChangesPagedResponse> + listResourceChangesSettings; + private final UnaryCallSettings + getResourceChangeSettings; + private final PagedCallSettings< + ListResourceDriftsRequest, ListResourceDriftsResponse, ListResourceDriftsPagedResponse> + listResourceDriftsSettings; + private final UnaryCallSettings getResourceDriftSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -430,6 +449,82 @@ public Iterable extractResources( } }; + private static final PagedListDescriptor< + ListResourceChangesRequest, ListResourceChangesResponse, ResourceChange> + LIST_RESOURCE_CHANGES_PAGE_STR_DESC = + new PagedListDescriptor< + ListResourceChangesRequest, ListResourceChangesResponse, ResourceChange>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListResourceChangesRequest injectToken( + ListResourceChangesRequest payload, String token) { + return ListResourceChangesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListResourceChangesRequest injectPageSize( + ListResourceChangesRequest payload, int pageSize) { + return ListResourceChangesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListResourceChangesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListResourceChangesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListResourceChangesResponse payload) { + return payload.getResourceChangesList(); + } + }; + + private static final PagedListDescriptor< + ListResourceDriftsRequest, ListResourceDriftsResponse, ResourceDrift> + LIST_RESOURCE_DRIFTS_PAGE_STR_DESC = + new PagedListDescriptor< + ListResourceDriftsRequest, ListResourceDriftsResponse, ResourceDrift>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListResourceDriftsRequest injectToken( + ListResourceDriftsRequest payload, String token) { + return ListResourceDriftsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListResourceDriftsRequest injectPageSize( + ListResourceDriftsRequest payload, int pageSize) { + return ListResourceDriftsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListResourceDriftsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListResourceDriftsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListResourceDriftsResponse payload) { + return payload.getResourceDriftsList(); + } + }; + private static final PagedListDescriptor LIST_LOCATIONS_PAGE_STR_DESC = new PagedListDescriptor() { @@ -556,6 +651,48 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListResourceChangesRequest, ListResourceChangesResponse, ListResourceChangesPagedResponse> + LIST_RESOURCE_CHANGES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListResourceChangesRequest, + ListResourceChangesResponse, + ListResourceChangesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListResourceChangesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_RESOURCE_CHANGES_PAGE_STR_DESC, request, context); + return ListResourceChangesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListResourceDriftsRequest, ListResourceDriftsResponse, ListResourceDriftsPagedResponse> + LIST_RESOURCE_DRIFTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListResourceDriftsRequest, + ListResourceDriftsResponse, + ListResourceDriftsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListResourceDriftsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_RESOURCE_DRIFTS_PAGE_STR_DESC, request, context); + return ListResourceDriftsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> LIST_LOCATIONS_PAGE_STR_FACT = @@ -743,6 +880,30 @@ public UnaryCallSettings deletePreviewSettings( return getTerraformVersionSettings; } + /** Returns the object with the settings used for calls to listResourceChanges. */ + public PagedCallSettings< + ListResourceChangesRequest, ListResourceChangesResponse, ListResourceChangesPagedResponse> + listResourceChangesSettings() { + return listResourceChangesSettings; + } + + /** Returns the object with the settings used for calls to getResourceChange. */ + public UnaryCallSettings getResourceChangeSettings() { + return getResourceChangeSettings; + } + + /** Returns the object with the settings used for calls to listResourceDrifts. */ + public PagedCallSettings< + ListResourceDriftsRequest, ListResourceDriftsResponse, ListResourceDriftsPagedResponse> + listResourceDriftsSettings() { + return listResourceDriftsSettings; + } + + /** Returns the object with the settings used for calls to getResourceDrift. */ + public UnaryCallSettings getResourceDriftSettings() { + return getResourceDriftSettings; + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -909,6 +1070,10 @@ protected ConfigStubSettings(Builder settingsBuilder) throws IOException { exportPreviewResultSettings = settingsBuilder.exportPreviewResultSettings().build(); listTerraformVersionsSettings = settingsBuilder.listTerraformVersionsSettings().build(); getTerraformVersionSettings = settingsBuilder.getTerraformVersionSettings().build(); + listResourceChangesSettings = settingsBuilder.listResourceChangesSettings().build(); + getResourceChangeSettings = settingsBuilder.getResourceChangeSettings().build(); + listResourceDriftsSettings = settingsBuilder.listResourceDriftsSettings().build(); + getResourceDriftSettings = settingsBuilder.getResourceDriftSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); @@ -983,6 +1148,18 @@ public static class Builder extends StubSettings.Builder getTerraformVersionSettings; + private final PagedCallSettings.Builder< + ListResourceChangesRequest, + ListResourceChangesResponse, + ListResourceChangesPagedResponse> + listResourceChangesSettings; + private final UnaryCallSettings.Builder + getResourceChangeSettings; + private final PagedCallSettings.Builder< + ListResourceDriftsRequest, ListResourceDriftsResponse, ListResourceDriftsPagedResponse> + listResourceDriftsSettings; + private final UnaryCallSettings.Builder + getResourceDriftSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -1060,6 +1237,11 @@ protected Builder(ClientContext clientContext) { listTerraformVersionsSettings = PagedCallSettings.newBuilder(LIST_TERRAFORM_VERSIONS_PAGE_STR_FACT); getTerraformVersionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listResourceChangesSettings = + PagedCallSettings.newBuilder(LIST_RESOURCE_CHANGES_PAGE_STR_FACT); + getResourceChangeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listResourceDriftsSettings = PagedCallSettings.newBuilder(LIST_RESOURCE_DRIFTS_PAGE_STR_FACT); + getResourceDriftSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -1091,6 +1273,10 @@ protected Builder(ClientContext clientContext) { exportPreviewResultSettings, listTerraformVersionsSettings, getTerraformVersionSettings, + listResourceChangesSettings, + getResourceChangeSettings, + listResourceDriftsSettings, + getResourceDriftSettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -1132,6 +1318,10 @@ protected Builder(ConfigStubSettings settings) { exportPreviewResultSettings = settings.exportPreviewResultSettings.toBuilder(); listTerraformVersionsSettings = settings.listTerraformVersionsSettings.toBuilder(); getTerraformVersionSettings = settings.getTerraformVersionSettings.toBuilder(); + listResourceChangesSettings = settings.listResourceChangesSettings.toBuilder(); + getResourceChangeSettings = settings.getResourceChangeSettings.toBuilder(); + listResourceDriftsSettings = settings.listResourceDriftsSettings.toBuilder(); + getResourceDriftSettings = settings.getResourceDriftSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); @@ -1163,6 +1353,10 @@ protected Builder(ConfigStubSettings settings) { exportPreviewResultSettings, listTerraformVersionsSettings, getTerraformVersionSettings, + listResourceChangesSettings, + getResourceChangeSettings, + listResourceDriftsSettings, + getResourceDriftSettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -1310,6 +1504,26 @@ 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 + .listResourceChangesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getResourceChangeSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listResourceDriftsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getResourceDriftSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .listLocationsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) @@ -1698,6 +1912,34 @@ public UnaryCallSettings.Builder deletePreviewS return getTerraformVersionSettings; } + /** Returns the builder for the settings used for calls to listResourceChanges. */ + public PagedCallSettings.Builder< + ListResourceChangesRequest, + ListResourceChangesResponse, + ListResourceChangesPagedResponse> + listResourceChangesSettings() { + return listResourceChangesSettings; + } + + /** Returns the builder for the settings used for calls to getResourceChange. */ + public UnaryCallSettings.Builder + getResourceChangeSettings() { + return getResourceChangeSettings; + } + + /** Returns the builder for the settings used for calls to listResourceDrifts. */ + public PagedCallSettings.Builder< + ListResourceDriftsRequest, ListResourceDriftsResponse, ListResourceDriftsPagedResponse> + listResourceDriftsSettings() { + return listResourceDriftsSettings; + } + + /** Returns the builder for the settings used for calls to getResourceDrift. */ + public UnaryCallSettings.Builder + getResourceDriftSettings() { + return getResourceDriftSettings; + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/GrpcConfigStub.java b/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/GrpcConfigStub.java index 43c2789184fc..083d229c9262 100644 --- a/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/GrpcConfigStub.java +++ b/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/GrpcConfigStub.java @@ -19,6 +19,8 @@ import static com.google.cloud.config.v1.ConfigClient.ListDeploymentsPagedResponse; import static com.google.cloud.config.v1.ConfigClient.ListLocationsPagedResponse; import static com.google.cloud.config.v1.ConfigClient.ListPreviewsPagedResponse; +import static com.google.cloud.config.v1.ConfigClient.ListResourceChangesPagedResponse; +import static com.google.cloud.config.v1.ConfigClient.ListResourceDriftsPagedResponse; import static com.google.cloud.config.v1.ConfigClient.ListResourcesPagedResponse; import static com.google.cloud.config.v1.ConfigClient.ListRevisionsPagedResponse; import static com.google.cloud.config.v1.ConfigClient.ListTerraformVersionsPagedResponse; @@ -44,6 +46,8 @@ import com.google.cloud.config.v1.ExportRevisionStatefileRequest; import com.google.cloud.config.v1.GetDeploymentRequest; import com.google.cloud.config.v1.GetPreviewRequest; +import com.google.cloud.config.v1.GetResourceChangeRequest; +import com.google.cloud.config.v1.GetResourceDriftRequest; import com.google.cloud.config.v1.GetResourceRequest; import com.google.cloud.config.v1.GetRevisionRequest; import com.google.cloud.config.v1.GetTerraformVersionRequest; @@ -52,6 +56,10 @@ import com.google.cloud.config.v1.ListDeploymentsResponse; import com.google.cloud.config.v1.ListPreviewsRequest; import com.google.cloud.config.v1.ListPreviewsResponse; +import com.google.cloud.config.v1.ListResourceChangesRequest; +import com.google.cloud.config.v1.ListResourceChangesResponse; +import com.google.cloud.config.v1.ListResourceDriftsRequest; +import com.google.cloud.config.v1.ListResourceDriftsResponse; import com.google.cloud.config.v1.ListResourcesRequest; import com.google.cloud.config.v1.ListResourcesResponse; import com.google.cloud.config.v1.ListRevisionsRequest; @@ -63,6 +71,8 @@ import com.google.cloud.config.v1.OperationMetadata; import com.google.cloud.config.v1.Preview; import com.google.cloud.config.v1.Resource; +import com.google.cloud.config.v1.ResourceChange; +import com.google.cloud.config.v1.ResourceDrift; import com.google.cloud.config.v1.Revision; import com.google.cloud.config.v1.Statefile; import com.google.cloud.config.v1.TerraformVersion; @@ -323,6 +333,48 @@ public class GrpcConfigStub extends ConfigStub { .setResponseMarshaller(ProtoUtils.marshaller(TerraformVersion.getDefaultInstance())) .build(); + private static final MethodDescriptor + listResourceChangesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.config.v1.Config/ListResourceChanges") + .setRequestMarshaller( + ProtoUtils.marshaller(ListResourceChangesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListResourceChangesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getResourceChangeMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.config.v1.Config/GetResourceChange") + .setRequestMarshaller( + ProtoUtils.marshaller(GetResourceChangeRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ResourceChange.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listResourceDriftsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.config.v1.Config/ListResourceDrifts") + .setRequestMarshaller( + ProtoUtils.marshaller(ListResourceDriftsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListResourceDriftsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getResourceDriftMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.config.v1.Config/GetResourceDrift") + .setRequestMarshaller( + ProtoUtils.marshaller(GetResourceDriftRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ResourceDrift.getDefaultInstance())) + .build(); + private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -422,6 +474,16 @@ public class GrpcConfigStub extends ConfigStub { listTerraformVersionsPagedCallable; private final UnaryCallable getTerraformVersionCallable; + private final UnaryCallable + listResourceChangesCallable; + private final UnaryCallable + listResourceChangesPagedCallable; + private final UnaryCallable getResourceChangeCallable; + private final UnaryCallable + listResourceDriftsCallable; + private final UnaryCallable + listResourceDriftsPagedCallable; + private final UnaryCallable getResourceDriftCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -707,6 +769,48 @@ protected GrpcConfigStub( return builder.build(); }) .build(); + GrpcCallSettings + listResourceChangesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listResourceChangesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getResourceChangeTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getResourceChangeMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listResourceDriftsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listResourceDriftsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getResourceDriftTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getResourceDriftMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) @@ -897,6 +1001,34 @@ protected GrpcConfigStub( getTerraformVersionTransportSettings, settings.getTerraformVersionSettings(), clientContext); + this.listResourceChangesCallable = + callableFactory.createUnaryCallable( + listResourceChangesTransportSettings, + settings.listResourceChangesSettings(), + clientContext); + this.listResourceChangesPagedCallable = + callableFactory.createPagedCallable( + listResourceChangesTransportSettings, + settings.listResourceChangesSettings(), + clientContext); + this.getResourceChangeCallable = + callableFactory.createUnaryCallable( + getResourceChangeTransportSettings, + settings.getResourceChangeSettings(), + clientContext); + this.listResourceDriftsCallable = + callableFactory.createUnaryCallable( + listResourceDriftsTransportSettings, + settings.listResourceDriftsSettings(), + clientContext); + this.listResourceDriftsPagedCallable = + callableFactory.createPagedCallable( + listResourceDriftsTransportSettings, + settings.listResourceDriftsSettings(), + clientContext); + this.getResourceDriftCallable = + callableFactory.createUnaryCallable( + getResourceDriftTransportSettings, settings.getResourceDriftSettings(), clientContext); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -1116,6 +1248,40 @@ public UnaryCallable getTerraformV return getTerraformVersionCallable; } + @Override + public UnaryCallable + listResourceChangesCallable() { + return listResourceChangesCallable; + } + + @Override + public UnaryCallable + listResourceChangesPagedCallable() { + return listResourceChangesPagedCallable; + } + + @Override + public UnaryCallable getResourceChangeCallable() { + return getResourceChangeCallable; + } + + @Override + public UnaryCallable + listResourceDriftsCallable() { + return listResourceDriftsCallable; + } + + @Override + public UnaryCallable + listResourceDriftsPagedCallable() { + return listResourceDriftsPagedCallable; + } + + @Override + public UnaryCallable getResourceDriftCallable() { + return getResourceDriftCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/HttpJsonConfigStub.java b/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/HttpJsonConfigStub.java index 4b1af56dae99..f7b74f332e5c 100644 --- a/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/HttpJsonConfigStub.java +++ b/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/HttpJsonConfigStub.java @@ -19,6 +19,8 @@ import static com.google.cloud.config.v1.ConfigClient.ListDeploymentsPagedResponse; import static com.google.cloud.config.v1.ConfigClient.ListLocationsPagedResponse; import static com.google.cloud.config.v1.ConfigClient.ListPreviewsPagedResponse; +import static com.google.cloud.config.v1.ConfigClient.ListResourceChangesPagedResponse; +import static com.google.cloud.config.v1.ConfigClient.ListResourceDriftsPagedResponse; import static com.google.cloud.config.v1.ConfigClient.ListResourcesPagedResponse; import static com.google.cloud.config.v1.ConfigClient.ListRevisionsPagedResponse; import static com.google.cloud.config.v1.ConfigClient.ListTerraformVersionsPagedResponse; @@ -52,6 +54,8 @@ import com.google.cloud.config.v1.ExportRevisionStatefileRequest; import com.google.cloud.config.v1.GetDeploymentRequest; import com.google.cloud.config.v1.GetPreviewRequest; +import com.google.cloud.config.v1.GetResourceChangeRequest; +import com.google.cloud.config.v1.GetResourceDriftRequest; import com.google.cloud.config.v1.GetResourceRequest; import com.google.cloud.config.v1.GetRevisionRequest; import com.google.cloud.config.v1.GetTerraformVersionRequest; @@ -60,6 +64,10 @@ import com.google.cloud.config.v1.ListDeploymentsResponse; import com.google.cloud.config.v1.ListPreviewsRequest; import com.google.cloud.config.v1.ListPreviewsResponse; +import com.google.cloud.config.v1.ListResourceChangesRequest; +import com.google.cloud.config.v1.ListResourceChangesResponse; +import com.google.cloud.config.v1.ListResourceDriftsRequest; +import com.google.cloud.config.v1.ListResourceDriftsResponse; import com.google.cloud.config.v1.ListResourcesRequest; import com.google.cloud.config.v1.ListResourcesResponse; import com.google.cloud.config.v1.ListRevisionsRequest; @@ -71,6 +79,8 @@ import com.google.cloud.config.v1.OperationMetadata; import com.google.cloud.config.v1.Preview; import com.google.cloud.config.v1.Resource; +import com.google.cloud.config.v1.ResourceChange; +import com.google.cloud.config.v1.ResourceDrift; import com.google.cloud.config.v1.Revision; import com.google.cloud.config.v1.Statefile; import com.google.cloud.config.v1.TerraformVersion; @@ -979,6 +989,150 @@ public class HttpJsonConfigStub extends ConfigStub { .build()) .build(); + private static final ApiMethodDescriptor + listResourceChangesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.config.v1.Config/ListResourceChanges") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/previews/*}/resourceChanges", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + 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(ListResourceChangesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getResourceChangeMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.config.v1.Config/GetResourceChange") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/previews/*/resourceChanges/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ResourceChange.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listResourceDriftsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.config.v1.Config/ListResourceDrifts") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/previews/*}/resourceDrifts", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + 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(ListResourceDriftsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getResourceDriftMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.config.v1.Config/GetResourceDrift") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/previews/*/resourceDrifts/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ResourceDrift.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor listLocationsMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -1208,6 +1362,16 @@ public class HttpJsonConfigStub extends ConfigStub { listTerraformVersionsPagedCallable; private final UnaryCallable getTerraformVersionCallable; + private final UnaryCallable + listResourceChangesCallable; + private final UnaryCallable + listResourceChangesPagedCallable; + private final UnaryCallable getResourceChangeCallable; + private final UnaryCallable + listResourceDriftsCallable; + private final UnaryCallable + listResourceDriftsPagedCallable; + private final UnaryCallable getResourceDriftCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -1547,6 +1711,54 @@ protected HttpJsonConfigStub( return builder.build(); }) .build(); + HttpJsonCallSettings + listResourceChangesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listResourceChangesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + getResourceChangeTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getResourceChangeMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listResourceDriftsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listResourceDriftsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getResourceDriftTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getResourceDriftMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings listLocationsTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1743,6 +1955,34 @@ protected HttpJsonConfigStub( getTerraformVersionTransportSettings, settings.getTerraformVersionSettings(), clientContext); + this.listResourceChangesCallable = + callableFactory.createUnaryCallable( + listResourceChangesTransportSettings, + settings.listResourceChangesSettings(), + clientContext); + this.listResourceChangesPagedCallable = + callableFactory.createPagedCallable( + listResourceChangesTransportSettings, + settings.listResourceChangesSettings(), + clientContext); + this.getResourceChangeCallable = + callableFactory.createUnaryCallable( + getResourceChangeTransportSettings, + settings.getResourceChangeSettings(), + clientContext); + this.listResourceDriftsCallable = + callableFactory.createUnaryCallable( + listResourceDriftsTransportSettings, + settings.listResourceDriftsSettings(), + clientContext); + this.listResourceDriftsPagedCallable = + callableFactory.createPagedCallable( + listResourceDriftsTransportSettings, + settings.listResourceDriftsSettings(), + clientContext); + this.getResourceDriftCallable = + callableFactory.createUnaryCallable( + getResourceDriftTransportSettings, settings.getResourceDriftSettings(), clientContext); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -1794,6 +2034,10 @@ public static List getMethodDescriptors() { methodDescriptors.add(exportPreviewResultMethodDescriptor); methodDescriptors.add(listTerraformVersionsMethodDescriptor); methodDescriptors.add(getTerraformVersionMethodDescriptor); + methodDescriptors.add(listResourceChangesMethodDescriptor); + methodDescriptors.add(getResourceChangeMethodDescriptor); + methodDescriptors.add(listResourceDriftsMethodDescriptor); + methodDescriptors.add(getResourceDriftMethodDescriptor); methodDescriptors.add(listLocationsMethodDescriptor); methodDescriptors.add(getLocationMethodDescriptor); methodDescriptors.add(setIamPolicyMethodDescriptor); @@ -1996,6 +2240,40 @@ public UnaryCallable getTerraformV return getTerraformVersionCallable; } + @Override + public UnaryCallable + listResourceChangesCallable() { + return listResourceChangesCallable; + } + + @Override + public UnaryCallable + listResourceChangesPagedCallable() { + return listResourceChangesPagedCallable; + } + + @Override + public UnaryCallable getResourceChangeCallable() { + return getResourceChangeCallable; + } + + @Override + public UnaryCallable + listResourceDriftsCallable() { + return listResourceDriftsCallable; + } + + @Override + public UnaryCallable + listResourceDriftsPagedCallable() { + return listResourceDriftsPagedCallable; + } + + @Override + public UnaryCallable getResourceDriftCallable() { + return getResourceDriftCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-infra-manager/google-cloud-infra-manager/src/main/resources/META-INF/native-image/com.google.cloud.config.v1/reflect-config.json b/java-infra-manager/google-cloud-infra-manager/src/main/resources/META-INF/native-image/com.google.cloud.config.v1/reflect-config.json index b1851c7e37b8..a6638db4d0b0 100644 --- a/java-infra-manager/google-cloud-infra-manager/src/main/resources/META-INF/native-image/com.google.cloud.config.v1/reflect-config.json +++ b/java-infra-manager/google-cloud-infra-manager/src/main/resources/META-INF/native-image/com.google.cloud.config.v1/reflect-config.json @@ -773,6 +773,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.config.v1.GetResourceChangeRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.GetResourceChangeRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.GetResourceDriftRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.GetResourceDriftRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.config.v1.GetResourceRequest", "queryAllDeclaredConstructors": true, @@ -935,6 +971,78 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.config.v1.ListResourceChangesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ListResourceChangesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ListResourceChangesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ListResourceChangesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ListResourceDriftsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ListResourceDriftsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ListResourceDriftsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ListResourceDriftsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.config.v1.ListResourcesRequest", "queryAllDeclaredConstructors": true, @@ -1205,6 +1313,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.config.v1.PropertyChange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.PropertyChange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.PropertyDrift", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.PropertyDrift$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.config.v1.QuotaValidation", "queryAllDeclaredConstructors": true, @@ -1268,6 +1412,87 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.config.v1.ResourceChange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ResourceChange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ResourceChange$Intent", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ResourceChangeTerraformInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ResourceChangeTerraformInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ResourceDrift", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ResourceDrift$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ResourceDriftTerraformInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ResourceDriftTerraformInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.config.v1.ResourceTerraformInfo", "queryAllDeclaredConstructors": true, diff --git a/java-infra-manager/google-cloud-infra-manager/src/test/java/com/google/cloud/config/v1/ConfigClientHttpJsonTest.java b/java-infra-manager/google-cloud-infra-manager/src/test/java/com/google/cloud/config/v1/ConfigClientHttpJsonTest.java index 95837a324658..f7093d02bfe8 100644 --- a/java-infra-manager/google-cloud-infra-manager/src/test/java/com/google/cloud/config/v1/ConfigClientHttpJsonTest.java +++ b/java-infra-manager/google-cloud-infra-manager/src/test/java/com/google/cloud/config/v1/ConfigClientHttpJsonTest.java @@ -19,6 +19,8 @@ import static com.google.cloud.config.v1.ConfigClient.ListDeploymentsPagedResponse; import static com.google.cloud.config.v1.ConfigClient.ListLocationsPagedResponse; import static com.google.cloud.config.v1.ConfigClient.ListPreviewsPagedResponse; +import static com.google.cloud.config.v1.ConfigClient.ListResourceChangesPagedResponse; +import static com.google.cloud.config.v1.ConfigClient.ListResourceDriftsPagedResponse; import static com.google.cloud.config.v1.ConfigClient.ListResourcesPagedResponse; import static com.google.cloud.config.v1.ConfigClient.ListRevisionsPagedResponse; import static com.google.cloud.config.v1.ConfigClient.ListTerraformVersionsPagedResponse; @@ -2506,6 +2508,406 @@ public void getTerraformVersionExceptionTest2() throws Exception { } } + @Test + public void listResourceChangesTest() throws Exception { + ResourceChange responsesElement = ResourceChange.newBuilder().build(); + ListResourceChangesResponse expectedResponse = + ListResourceChangesResponse.newBuilder() + .setNextPageToken("") + .addAllResourceChanges(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + PreviewName parent = PreviewName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]"); + + ListResourceChangesPagedResponse pagedListResponse = client.listResourceChanges(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getResourceChangesList().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 listResourceChangesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PreviewName parent = PreviewName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]"); + client.listResourceChanges(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listResourceChangesTest2() throws Exception { + ResourceChange responsesElement = ResourceChange.newBuilder().build(); + ListResourceChangesResponse expectedResponse = + ListResourceChangesResponse.newBuilder() + .setNextPageToken("") + .addAllResourceChanges(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-3236/locations/location-3236/previews/preview-3236"; + + ListResourceChangesPagedResponse pagedListResponse = client.listResourceChanges(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getResourceChangesList().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 listResourceChangesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-3236/locations/location-3236/previews/preview-3236"; + client.listResourceChanges(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getResourceChangeTest() throws Exception { + ResourceChange expectedResponse = + ResourceChange.newBuilder() + .setName( + ResourceChangeName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]", "[RESOURCE_CHANGE]") + .toString()) + .setTerraformInfo(ResourceChangeTerraformInfo.newBuilder().build()) + .addAllPropertyChanges(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + ResourceChangeName name = + ResourceChangeName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]", "[RESOURCE_CHANGE]"); + + ResourceChange actualResponse = client.getResourceChange(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 getResourceChangeExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ResourceChangeName name = + ResourceChangeName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]", "[RESOURCE_CHANGE]"); + client.getResourceChange(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getResourceChangeTest2() throws Exception { + ResourceChange expectedResponse = + ResourceChange.newBuilder() + .setName( + ResourceChangeName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]", "[RESOURCE_CHANGE]") + .toString()) + .setTerraformInfo(ResourceChangeTerraformInfo.newBuilder().build()) + .addAllPropertyChanges(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-4532/locations/location-4532/previews/preview-4532/resourceChanges/resourceChange-4532"; + + ResourceChange actualResponse = client.getResourceChange(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 getResourceChangeExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-4532/locations/location-4532/previews/preview-4532/resourceChanges/resourceChange-4532"; + client.getResourceChange(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listResourceDriftsTest() throws Exception { + ResourceDrift responsesElement = ResourceDrift.newBuilder().build(); + ListResourceDriftsResponse expectedResponse = + ListResourceDriftsResponse.newBuilder() + .setNextPageToken("") + .addAllResourceDrifts(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + PreviewName parent = PreviewName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]"); + + ListResourceDriftsPagedResponse pagedListResponse = client.listResourceDrifts(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getResourceDriftsList().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 listResourceDriftsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PreviewName parent = PreviewName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]"); + client.listResourceDrifts(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listResourceDriftsTest2() throws Exception { + ResourceDrift responsesElement = ResourceDrift.newBuilder().build(); + ListResourceDriftsResponse expectedResponse = + ListResourceDriftsResponse.newBuilder() + .setNextPageToken("") + .addAllResourceDrifts(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-3236/locations/location-3236/previews/preview-3236"; + + ListResourceDriftsPagedResponse pagedListResponse = client.listResourceDrifts(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getResourceDriftsList().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 listResourceDriftsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-3236/locations/location-3236/previews/preview-3236"; + client.listResourceDrifts(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getResourceDriftTest() throws Exception { + ResourceDrift expectedResponse = + ResourceDrift.newBuilder() + .setName( + ResourceDriftName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]", "[RESOURCE_DRIFT]") + .toString()) + .setTerraformInfo(ResourceDriftTerraformInfo.newBuilder().build()) + .addAllPropertyDrifts(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + ResourceDriftName name = + ResourceDriftName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]", "[RESOURCE_DRIFT]"); + + ResourceDrift actualResponse = client.getResourceDrift(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 getResourceDriftExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ResourceDriftName name = + ResourceDriftName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]", "[RESOURCE_DRIFT]"); + client.getResourceDrift(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getResourceDriftTest2() throws Exception { + ResourceDrift expectedResponse = + ResourceDrift.newBuilder() + .setName( + ResourceDriftName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]", "[RESOURCE_DRIFT]") + .toString()) + .setTerraformInfo(ResourceDriftTerraformInfo.newBuilder().build()) + .addAllPropertyDrifts(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-8585/locations/location-8585/previews/preview-8585/resourceDrifts/resourceDrift-8585"; + + ResourceDrift actualResponse = client.getResourceDrift(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 getResourceDriftExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8585/locations/location-8585/previews/preview-8585/resourceDrifts/resourceDrift-8585"; + client.getResourceDrift(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-infra-manager/google-cloud-infra-manager/src/test/java/com/google/cloud/config/v1/ConfigClientTest.java b/java-infra-manager/google-cloud-infra-manager/src/test/java/com/google/cloud/config/v1/ConfigClientTest.java index 7a5920bf0e43..55c6c6206cf7 100644 --- a/java-infra-manager/google-cloud-infra-manager/src/test/java/com/google/cloud/config/v1/ConfigClientTest.java +++ b/java-infra-manager/google-cloud-infra-manager/src/test/java/com/google/cloud/config/v1/ConfigClientTest.java @@ -19,6 +19,8 @@ import static com.google.cloud.config.v1.ConfigClient.ListDeploymentsPagedResponse; import static com.google.cloud.config.v1.ConfigClient.ListLocationsPagedResponse; import static com.google.cloud.config.v1.ConfigClient.ListPreviewsPagedResponse; +import static com.google.cloud.config.v1.ConfigClient.ListResourceChangesPagedResponse; +import static com.google.cloud.config.v1.ConfigClient.ListResourceDriftsPagedResponse; import static com.google.cloud.config.v1.ConfigClient.ListResourcesPagedResponse; import static com.google.cloud.config.v1.ConfigClient.ListRevisionsPagedResponse; import static com.google.cloud.config.v1.ConfigClient.ListTerraformVersionsPagedResponse; @@ -2269,6 +2271,354 @@ public void getTerraformVersionExceptionTest2() throws Exception { } } + @Test + public void listResourceChangesTest() throws Exception { + ResourceChange responsesElement = ResourceChange.newBuilder().build(); + ListResourceChangesResponse expectedResponse = + ListResourceChangesResponse.newBuilder() + .setNextPageToken("") + .addAllResourceChanges(Arrays.asList(responsesElement)) + .build(); + mockConfig.addResponse(expectedResponse); + + PreviewName parent = PreviewName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]"); + + ListResourceChangesPagedResponse pagedListResponse = client.listResourceChanges(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getResourceChangesList().get(0), resources.get(0)); + + List actualRequests = mockConfig.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListResourceChangesRequest actualRequest = ((ListResourceChangesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listResourceChangesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfig.addException(exception); + + try { + PreviewName parent = PreviewName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]"); + client.listResourceChanges(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listResourceChangesTest2() throws Exception { + ResourceChange responsesElement = ResourceChange.newBuilder().build(); + ListResourceChangesResponse expectedResponse = + ListResourceChangesResponse.newBuilder() + .setNextPageToken("") + .addAllResourceChanges(Arrays.asList(responsesElement)) + .build(); + mockConfig.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListResourceChangesPagedResponse pagedListResponse = client.listResourceChanges(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getResourceChangesList().get(0), resources.get(0)); + + List actualRequests = mockConfig.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListResourceChangesRequest actualRequest = ((ListResourceChangesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listResourceChangesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfig.addException(exception); + + try { + String parent = "parent-995424086"; + client.listResourceChanges(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getResourceChangeTest() throws Exception { + ResourceChange expectedResponse = + ResourceChange.newBuilder() + .setName( + ResourceChangeName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]", "[RESOURCE_CHANGE]") + .toString()) + .setTerraformInfo(ResourceChangeTerraformInfo.newBuilder().build()) + .addAllPropertyChanges(new ArrayList()) + .build(); + mockConfig.addResponse(expectedResponse); + + ResourceChangeName name = + ResourceChangeName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]", "[RESOURCE_CHANGE]"); + + ResourceChange actualResponse = client.getResourceChange(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfig.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetResourceChangeRequest actualRequest = ((GetResourceChangeRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getResourceChangeExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfig.addException(exception); + + try { + ResourceChangeName name = + ResourceChangeName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]", "[RESOURCE_CHANGE]"); + client.getResourceChange(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getResourceChangeTest2() throws Exception { + ResourceChange expectedResponse = + ResourceChange.newBuilder() + .setName( + ResourceChangeName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]", "[RESOURCE_CHANGE]") + .toString()) + .setTerraformInfo(ResourceChangeTerraformInfo.newBuilder().build()) + .addAllPropertyChanges(new ArrayList()) + .build(); + mockConfig.addResponse(expectedResponse); + + String name = "name3373707"; + + ResourceChange actualResponse = client.getResourceChange(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfig.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetResourceChangeRequest actualRequest = ((GetResourceChangeRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getResourceChangeExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfig.addException(exception); + + try { + String name = "name3373707"; + client.getResourceChange(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listResourceDriftsTest() throws Exception { + ResourceDrift responsesElement = ResourceDrift.newBuilder().build(); + ListResourceDriftsResponse expectedResponse = + ListResourceDriftsResponse.newBuilder() + .setNextPageToken("") + .addAllResourceDrifts(Arrays.asList(responsesElement)) + .build(); + mockConfig.addResponse(expectedResponse); + + PreviewName parent = PreviewName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]"); + + ListResourceDriftsPagedResponse pagedListResponse = client.listResourceDrifts(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getResourceDriftsList().get(0), resources.get(0)); + + List actualRequests = mockConfig.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListResourceDriftsRequest actualRequest = ((ListResourceDriftsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listResourceDriftsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfig.addException(exception); + + try { + PreviewName parent = PreviewName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]"); + client.listResourceDrifts(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listResourceDriftsTest2() throws Exception { + ResourceDrift responsesElement = ResourceDrift.newBuilder().build(); + ListResourceDriftsResponse expectedResponse = + ListResourceDriftsResponse.newBuilder() + .setNextPageToken("") + .addAllResourceDrifts(Arrays.asList(responsesElement)) + .build(); + mockConfig.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListResourceDriftsPagedResponse pagedListResponse = client.listResourceDrifts(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getResourceDriftsList().get(0), resources.get(0)); + + List actualRequests = mockConfig.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListResourceDriftsRequest actualRequest = ((ListResourceDriftsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listResourceDriftsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfig.addException(exception); + + try { + String parent = "parent-995424086"; + client.listResourceDrifts(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getResourceDriftTest() throws Exception { + ResourceDrift expectedResponse = + ResourceDrift.newBuilder() + .setName( + ResourceDriftName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]", "[RESOURCE_DRIFT]") + .toString()) + .setTerraformInfo(ResourceDriftTerraformInfo.newBuilder().build()) + .addAllPropertyDrifts(new ArrayList()) + .build(); + mockConfig.addResponse(expectedResponse); + + ResourceDriftName name = + ResourceDriftName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]", "[RESOURCE_DRIFT]"); + + ResourceDrift actualResponse = client.getResourceDrift(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfig.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetResourceDriftRequest actualRequest = ((GetResourceDriftRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getResourceDriftExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfig.addException(exception); + + try { + ResourceDriftName name = + ResourceDriftName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]", "[RESOURCE_DRIFT]"); + client.getResourceDrift(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getResourceDriftTest2() throws Exception { + ResourceDrift expectedResponse = + ResourceDrift.newBuilder() + .setName( + ResourceDriftName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]", "[RESOURCE_DRIFT]") + .toString()) + .setTerraformInfo(ResourceDriftTerraformInfo.newBuilder().build()) + .addAllPropertyDrifts(new ArrayList()) + .build(); + mockConfig.addResponse(expectedResponse); + + String name = "name3373707"; + + ResourceDrift actualResponse = client.getResourceDrift(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfig.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetResourceDriftRequest actualRequest = ((GetResourceDriftRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getResourceDriftExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfig.addException(exception); + + try { + String name = "name3373707"; + client.getResourceDrift(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-infra-manager/google-cloud-infra-manager/src/test/java/com/google/cloud/config/v1/MockConfigImpl.java b/java-infra-manager/google-cloud-infra-manager/src/test/java/com/google/cloud/config/v1/MockConfigImpl.java index c8ac25d7ad75..1339faaa0d30 100644 --- a/java-infra-manager/google-cloud-infra-manager/src/test/java/com/google/cloud/config/v1/MockConfigImpl.java +++ b/java-infra-manager/google-cloud-infra-manager/src/test/java/com/google/cloud/config/v1/MockConfigImpl.java @@ -544,4 +544,90 @@ public void getTerraformVersion( Exception.class.getName()))); } } + + @Override + public void listResourceChanges( + ListResourceChangesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListResourceChangesResponse) { + requests.add(request); + responseObserver.onNext(((ListResourceChangesResponse) 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 ListResourceChanges, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListResourceChangesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getResourceChange( + GetResourceChangeRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ResourceChange) { + requests.add(request); + responseObserver.onNext(((ResourceChange) 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 GetResourceChange, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ResourceChange.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listResourceDrifts( + ListResourceDriftsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListResourceDriftsResponse) { + requests.add(request); + responseObserver.onNext(((ListResourceDriftsResponse) 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 ListResourceDrifts, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListResourceDriftsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getResourceDrift( + GetResourceDriftRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ResourceDrift) { + requests.add(request); + responseObserver.onNext(((ResourceDrift) 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 GetResourceDrift, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ResourceDrift.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-infra-manager/grpc-google-cloud-infra-manager-v1/pom.xml b/java-infra-manager/grpc-google-cloud-infra-manager-v1/pom.xml index cd0854ebf842..d67e08107ed1 100644 --- a/java-infra-manager/grpc-google-cloud-infra-manager-v1/pom.xml +++ b/java-infra-manager/grpc-google-cloud-infra-manager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-infra-manager-v1 - 0.44.0 + 0.45.0 grpc-google-cloud-infra-manager-v1 GRPC library for google-cloud-infra-manager com.google.cloud google-cloud-infra-manager-parent - 0.44.0 + 0.45.0 diff --git a/java-infra-manager/grpc-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ConfigGrpc.java b/java-infra-manager/grpc-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ConfigGrpc.java index 00abeabb739a..e4613b92b0a6 100644 --- a/java-infra-manager/grpc-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ConfigGrpc.java +++ b/java-infra-manager/grpc-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ConfigGrpc.java @@ -1038,6 +1038,190 @@ private ConfigGrpc() {} return getGetTerraformVersionMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.config.v1.ListResourceChangesRequest, + com.google.cloud.config.v1.ListResourceChangesResponse> + getListResourceChangesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListResourceChanges", + requestType = com.google.cloud.config.v1.ListResourceChangesRequest.class, + responseType = com.google.cloud.config.v1.ListResourceChangesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.config.v1.ListResourceChangesRequest, + com.google.cloud.config.v1.ListResourceChangesResponse> + getListResourceChangesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.config.v1.ListResourceChangesRequest, + com.google.cloud.config.v1.ListResourceChangesResponse> + getListResourceChangesMethod; + if ((getListResourceChangesMethod = ConfigGrpc.getListResourceChangesMethod) == null) { + synchronized (ConfigGrpc.class) { + if ((getListResourceChangesMethod = ConfigGrpc.getListResourceChangesMethod) == null) { + ConfigGrpc.getListResourceChangesMethod = + getListResourceChangesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListResourceChanges")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.config.v1.ListResourceChangesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.config.v1.ListResourceChangesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new ConfigMethodDescriptorSupplier("ListResourceChanges")) + .build(); + } + } + } + return getListResourceChangesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.config.v1.GetResourceChangeRequest, + com.google.cloud.config.v1.ResourceChange> + getGetResourceChangeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetResourceChange", + requestType = com.google.cloud.config.v1.GetResourceChangeRequest.class, + responseType = com.google.cloud.config.v1.ResourceChange.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.config.v1.GetResourceChangeRequest, + com.google.cloud.config.v1.ResourceChange> + getGetResourceChangeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.config.v1.GetResourceChangeRequest, + com.google.cloud.config.v1.ResourceChange> + getGetResourceChangeMethod; + if ((getGetResourceChangeMethod = ConfigGrpc.getGetResourceChangeMethod) == null) { + synchronized (ConfigGrpc.class) { + if ((getGetResourceChangeMethod = ConfigGrpc.getGetResourceChangeMethod) == null) { + ConfigGrpc.getGetResourceChangeMethod = + getGetResourceChangeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetResourceChange")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.config.v1.GetResourceChangeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.config.v1.ResourceChange.getDefaultInstance())) + .setSchemaDescriptor(new ConfigMethodDescriptorSupplier("GetResourceChange")) + .build(); + } + } + } + return getGetResourceChangeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.config.v1.ListResourceDriftsRequest, + com.google.cloud.config.v1.ListResourceDriftsResponse> + getListResourceDriftsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListResourceDrifts", + requestType = com.google.cloud.config.v1.ListResourceDriftsRequest.class, + responseType = com.google.cloud.config.v1.ListResourceDriftsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.config.v1.ListResourceDriftsRequest, + com.google.cloud.config.v1.ListResourceDriftsResponse> + getListResourceDriftsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.config.v1.ListResourceDriftsRequest, + com.google.cloud.config.v1.ListResourceDriftsResponse> + getListResourceDriftsMethod; + if ((getListResourceDriftsMethod = ConfigGrpc.getListResourceDriftsMethod) == null) { + synchronized (ConfigGrpc.class) { + if ((getListResourceDriftsMethod = ConfigGrpc.getListResourceDriftsMethod) == null) { + ConfigGrpc.getListResourceDriftsMethod = + getListResourceDriftsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListResourceDrifts")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.config.v1.ListResourceDriftsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.config.v1.ListResourceDriftsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new ConfigMethodDescriptorSupplier("ListResourceDrifts")) + .build(); + } + } + } + return getListResourceDriftsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.config.v1.GetResourceDriftRequest, + com.google.cloud.config.v1.ResourceDrift> + getGetResourceDriftMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetResourceDrift", + requestType = com.google.cloud.config.v1.GetResourceDriftRequest.class, + responseType = com.google.cloud.config.v1.ResourceDrift.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.config.v1.GetResourceDriftRequest, + com.google.cloud.config.v1.ResourceDrift> + getGetResourceDriftMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.config.v1.GetResourceDriftRequest, + com.google.cloud.config.v1.ResourceDrift> + getGetResourceDriftMethod; + if ((getGetResourceDriftMethod = ConfigGrpc.getGetResourceDriftMethod) == null) { + synchronized (ConfigGrpc.class) { + if ((getGetResourceDriftMethod = ConfigGrpc.getGetResourceDriftMethod) == null) { + ConfigGrpc.getGetResourceDriftMethod = + getGetResourceDriftMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetResourceDrift")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.config.v1.GetResourceDriftRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.config.v1.ResourceDrift.getDefaultInstance())) + .setSchemaDescriptor(new ConfigMethodDescriptorSupplier("GetResourceDrift")) + .build(); + } + } + } + return getGetResourceDriftMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static ConfigStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -1433,6 +1617,64 @@ default void getTerraformVersion( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getGetTerraformVersionMethod(), responseObserver); } + + /** + * + * + *
+     * Lists ResourceChanges for a given preview.
+     * 
+ */ + default void listResourceChanges( + com.google.cloud.config.v1.ListResourceChangesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListResourceChangesMethod(), responseObserver); + } + + /** + * + * + *
+     * Get a ResourceChange for a given preview.
+     * 
+ */ + default void getResourceChange( + com.google.cloud.config.v1.GetResourceChangeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetResourceChangeMethod(), responseObserver); + } + + /** + * + * + *
+     * List ResourceDrifts for a given preview.
+     * 
+ */ + default void listResourceDrifts( + com.google.cloud.config.v1.ListResourceDriftsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListResourceDriftsMethod(), responseObserver); + } + + /** + * + * + *
+     * Get a ResourceDrift for a given preview.
+     * 
+ */ + default void getResourceDrift( + com.google.cloud.config.v1.GetResourceDriftRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetResourceDriftMethod(), responseObserver); + } } /** @@ -1846,6 +2088,72 @@ public void getTerraformVersion( request, responseObserver); } + + /** + * + * + *
+     * Lists ResourceChanges for a given preview.
+     * 
+ */ + public void listResourceChanges( + com.google.cloud.config.v1.ListResourceChangesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListResourceChangesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Get a ResourceChange for a given preview.
+     * 
+ */ + public void getResourceChange( + com.google.cloud.config.v1.GetResourceChangeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetResourceChangeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * List ResourceDrifts for a given preview.
+     * 
+ */ + public void listResourceDrifts( + com.google.cloud.config.v1.ListResourceDriftsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListResourceDriftsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Get a ResourceDrift for a given preview.
+     * 
+ */ + public void getResourceDrift( + com.google.cloud.config.v1.GetResourceDriftRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetResourceDriftMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -2171,6 +2479,58 @@ public com.google.cloud.config.v1.TerraformVersion getTerraformVersion( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetTerraformVersionMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Lists ResourceChanges for a given preview.
+     * 
+ */ + public com.google.cloud.config.v1.ListResourceChangesResponse listResourceChanges( + com.google.cloud.config.v1.ListResourceChangesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListResourceChangesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get a ResourceChange for a given preview.
+     * 
+ */ + public com.google.cloud.config.v1.ResourceChange getResourceChange( + com.google.cloud.config.v1.GetResourceChangeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetResourceChangeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List ResourceDrifts for a given preview.
+     * 
+ */ + public com.google.cloud.config.v1.ListResourceDriftsResponse listResourceDrifts( + com.google.cloud.config.v1.ListResourceDriftsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListResourceDriftsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get a ResourceDrift for a given preview.
+     * 
+ */ + public com.google.cloud.config.v1.ResourceDrift getResourceDrift( + com.google.cloud.config.v1.GetResourceDriftRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetResourceDriftMethod(), getCallOptions(), request); + } } /** @@ -2496,6 +2856,58 @@ public com.google.cloud.config.v1.TerraformVersion getTerraformVersion( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetTerraformVersionMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Lists ResourceChanges for a given preview.
+     * 
+ */ + public com.google.cloud.config.v1.ListResourceChangesResponse listResourceChanges( + com.google.cloud.config.v1.ListResourceChangesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListResourceChangesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get a ResourceChange for a given preview.
+     * 
+ */ + public com.google.cloud.config.v1.ResourceChange getResourceChange( + com.google.cloud.config.v1.GetResourceChangeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetResourceChangeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List ResourceDrifts for a given preview.
+     * 
+ */ + public com.google.cloud.config.v1.ListResourceDriftsResponse listResourceDrifts( + com.google.cloud.config.v1.ListResourceDriftsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListResourceDriftsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get a ResourceDrift for a given preview.
+     * 
+ */ + public com.google.cloud.config.v1.ResourceDrift getResourceDrift( + com.google.cloud.config.v1.GetResourceDriftRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetResourceDriftMethod(), getCallOptions(), request); + } } /** @@ -2829,6 +3241,62 @@ protected ConfigFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetTerraformVersionMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * Lists ResourceChanges for a given preview.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.config.v1.ListResourceChangesResponse> + listResourceChanges(com.google.cloud.config.v1.ListResourceChangesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListResourceChangesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Get a ResourceChange for a given preview.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.config.v1.ResourceChange> + getResourceChange(com.google.cloud.config.v1.GetResourceChangeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetResourceChangeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List ResourceDrifts for a given preview.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.config.v1.ListResourceDriftsResponse> + listResourceDrifts(com.google.cloud.config.v1.ListResourceDriftsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListResourceDriftsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Get a ResourceDrift for a given preview.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.config.v1.ResourceDrift> + getResourceDrift(com.google.cloud.config.v1.GetResourceDriftRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetResourceDriftMethod(), getCallOptions()), request); + } } private static final int METHODID_LIST_DEPLOYMENTS = 0; @@ -2854,6 +3322,10 @@ protected ConfigFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca private static final int METHODID_EXPORT_PREVIEW_RESULT = 20; private static final int METHODID_LIST_TERRAFORM_VERSIONS = 21; private static final int METHODID_GET_TERRAFORM_VERSION = 22; + private static final int METHODID_LIST_RESOURCE_CHANGES = 23; + private static final int METHODID_GET_RESOURCE_CHANGE = 24; + private static final int METHODID_LIST_RESOURCE_DRIFTS = 25; + private static final int METHODID_GET_RESOURCE_DRIFT = 26; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -2996,6 +3468,30 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_LIST_RESOURCE_CHANGES: + serviceImpl.listResourceChanges( + (com.google.cloud.config.v1.ListResourceChangesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_RESOURCE_CHANGE: + serviceImpl.getResourceChange( + (com.google.cloud.config.v1.GetResourceChangeRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_RESOURCE_DRIFTS: + serviceImpl.listResourceDrifts( + (com.google.cloud.config.v1.ListResourceDriftsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_RESOURCE_DRIFT: + serviceImpl.getResourceDrift( + (com.google.cloud.config.v1.GetResourceDriftRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; default: throw new AssertionError(); } @@ -3161,6 +3657,34 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.config.v1.GetTerraformVersionRequest, com.google.cloud.config.v1.TerraformVersion>( service, METHODID_GET_TERRAFORM_VERSION))) + .addMethod( + getListResourceChangesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.config.v1.ListResourceChangesRequest, + com.google.cloud.config.v1.ListResourceChangesResponse>( + service, METHODID_LIST_RESOURCE_CHANGES))) + .addMethod( + getGetResourceChangeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.config.v1.GetResourceChangeRequest, + com.google.cloud.config.v1.ResourceChange>( + service, METHODID_GET_RESOURCE_CHANGE))) + .addMethod( + getListResourceDriftsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.config.v1.ListResourceDriftsRequest, + com.google.cloud.config.v1.ListResourceDriftsResponse>( + service, METHODID_LIST_RESOURCE_DRIFTS))) + .addMethod( + getGetResourceDriftMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.config.v1.GetResourceDriftRequest, + com.google.cloud.config.v1.ResourceDrift>( + service, METHODID_GET_RESOURCE_DRIFT))) .build(); } @@ -3233,6 +3757,10 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getExportPreviewResultMethod()) .addMethod(getListTerraformVersionsMethod()) .addMethod(getGetTerraformVersionMethod()) + .addMethod(getListResourceChangesMethod()) + .addMethod(getGetResourceChangeMethod()) + .addMethod(getListResourceDriftsMethod()) + .addMethod(getGetResourceDriftMethod()) .build(); } } diff --git a/java-infra-manager/pom.xml b/java-infra-manager/pom.xml index 03075fd3b388..5138f0bb9679 100644 --- a/java-infra-manager/pom.xml +++ b/java-infra-manager/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-infra-manager-parent pom - 0.44.0 + 0.45.0 Google Infrastructure Manager API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-infra-manager - 0.44.0 + 0.45.0 com.google.api.grpc grpc-google-cloud-infra-manager-v1 - 0.44.0 + 0.45.0 com.google.api.grpc proto-google-cloud-infra-manager-v1 - 0.44.0 + 0.45.0
diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/pom.xml b/java-infra-manager/proto-google-cloud-infra-manager-v1/pom.xml index 4811d2016b1a..a09395119da2 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/pom.xml +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-infra-manager-v1 - 0.44.0 + 0.45.0 proto-google-cloud-infra-manager-v1 Proto library for google-cloud-infra-manager com.google.cloud google-cloud-infra-manager-parent - 0.44.0 + 0.45.0 diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ConfigProto.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ConfigProto.java index a2840e285841..51424b823bb3 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ConfigProto.java +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ConfigProto.java @@ -252,6 +252,54 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_config_v1_TerraformVersion_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_config_v1_TerraformVersion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_config_v1_ResourceChangeTerraformInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_config_v1_ResourceChangeTerraformInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_config_v1_ResourceChange_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_config_v1_ResourceChange_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_config_v1_PropertyChange_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_config_v1_PropertyChange_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_config_v1_ListResourceChangesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_config_v1_ListResourceChangesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_config_v1_ListResourceChangesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_config_v1_ListResourceChangesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_config_v1_GetResourceChangeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_config_v1_GetResourceChangeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_config_v1_ResourceDriftTerraformInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_config_v1_ResourceDriftTerraformInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_config_v1_ResourceDrift_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_config_v1_ResourceDrift_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_config_v1_PropertyDrift_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_config_v1_PropertyDrift_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_config_v1_ListResourceDriftsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_config_v1_ListResourceDriftsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_config_v1_ListResourceDriftsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_config_v1_ListResourceDriftsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_config_v1_GetResourceDriftRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_config_v1_GetResourceDriftRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -269,22 +317,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "i/field_info.proto\032\031google/api/resource." + "proto\032#google/longrunning/operations.proto\032\033google/protobuf/empty.proto\032" + " google/protobuf/field_mask.proto\032\034google/protob" - + "uf/struct.proto\032\037google/protobuf/timestamp.proto\032\027google/rpc/status.proto\"\320\017\n\n" + + "uf/struct.proto\032\037google/protobuf/timestamp.proto\032\027google/rpc/status.proto\"\332\017\n\n" + "Deployment\022I\n" + "\023terraform_blueprint\030\006 \001(\0132*." - + "google.cloud.config.v1.TerraformBlueprintH\000\022\014\n" - + "\004name\030\001 \001(\t\0224\n" + + "google.cloud.config.v1.TerraformBlueprintH\000\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\0224\n" + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" - + "\013update_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022>\n" - + "\006labels\030\004 \003(\0132..google.cloud.config.v1.Deployment.LabelsEntry\022<\n" + + "\013update_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022C\n" + + "\006labels\030\004 \003(\0132..google.clou" + + "d.config.v1.Deployment.LabelsEntryB\003\340A\001\022<\n" + "\005state\030\005" + " \001(\0162(.google.cloud.config.v1.Deployment.StateB\003\340A\003\022\034\n" + "\017latest_revision\030\007 \001(\tB\003\340A\003\022\031\n" + "\014state_detail\030\t \001(\tB\003\340A\003\022E\n\n" + "error_code\030\n" + " \001(\0162,.google.cloud.config.v1.Deployment.ErrorCodeB\003\340A\003\022A\n" - + "\016delete_results\030\010 " - + "\001(\0132$.google.cloud.config.v1.ApplyResultsB\003\340A\003\022\031\n" + + "\016delete_results\030\010" + + " \001(\0132$.google.cloud.config.v1.ApplyResultsB\003\340A\003\022\031\n" + "\014delete_build\030\013 \001(\tB\003\340A\003\022\030\n" + "\013delete_logs\030\014 \001(\tB\003\340A\003\022>\n" + "\ttf_errors\030\r" @@ -296,14 +345,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031import_existing_resources\030\021 \001(\010H\003\210\001\001\022F\n" + "\013worker_pool\030\023 \001(\tB,\340A\001\372A&\n" + "$cloudbuild.googleapis.com/WorkerPoolH\004\210\001\001\022E\n\n" - + "lock_state\030\024 \001(\0162,.goog" - + "le.cloud.config.v1.Deployment.LockStateB\003\340A\003\022\'\n" + + "lock_state\030\024 " + + "\001(\0162,.google.cloud.config.v1.Deployment.LockStateB\003\340A\003\022\'\n" + "\025tf_version_constraint\030\025 \001(\tB\003\340A\001H\005\210\001\001\022\027\n\n" + "tf_version\030\026 \001(\tB\003\340A\003\022F\n" + "\020quota_validation\030\027" + " \001(\0162\'.google.cloud.config.v1.QuotaValidationB\003\340A\001\022M\n" - + "\013annotations\030\030 " - + "\003(\01323.google.cloud.config.v1.Deployment.AnnotationsEntryB\003\340A\001\032-\n" + + "\013annotations\030\030" + + " \003(\01323.google.cloud.config.v1.Deployment.AnnotationsEntryB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\0322\n" @@ -335,31 +384,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tUNLOCKING\020\004\022\017\n" + "\013LOCK_FAILED\020\005\022\021\n\r" + "UNLOCK_FAILED\020\006:g\352Ad\n" - + " config.googleapis.com/Deployment" - + "\022@projects/{project}/locations/{location}/deployments/{deployment}B\013\n" + + " config.googleapis.com/" + + "Deployment\022@projects/{project}/locations/{location}/deployments/{deployment}B\013\n" + "\tblueprintB\027\n" + "\025_artifacts_gcs_bucketB\022\n" + "\020_service_accountB\034\n" + "\032_import_existing_resourcesB\016\n" + "\014_worker_poolB\030\n" - + "\026_tf_version_constraint\"\237\002\n" + + "\026_tf_version_constraint\"\244\002\n" + "\022TerraformBlueprint\022\024\n\n" + "gcs_source\030\001 \001(\tH\000\0227\n\n" - + "git_source\030\002 \001(\0132!.google.cloud.config.v1.GitSourceH\000\022Q\n" - + "\014input_values\030\004 \003(\013" - + "2;.google.cloud.config.v1.TerraformBlueprint.InputValuesEntry\032]\n" + + "git_source\030\002 \001(\0132!.google.cloud.config.v1.GitSourceH\000\022V\n" + + "\014input_values\030\004" + + " \003(\0132;.google.cloud.config.v1.TerraformBlueprint.InputValuesEntryB\003\340A\001\032]\n" + "\020InputValuesEntry\022\013\n" + "\003key\030\001 \001(\t\0228\n" + "\005value\030\002" + " \001(\0132).google.cloud.config.v1.TerraformVariable:\0028\001B\010\n" - + "\006source\"@\n" - + "\021TerraformVariable\022+\n" - + "\013input_value\030\005 \001(\0132\026.google.protobuf.Value\"\317\001\n" + + "\006source\"E\n" + + "\021TerraformVariable\0220\n" + + "\013input_value\030\005 \001(\0132\026.google.protobuf.ValueB\003\340A\001\"\317\001\n" + "\014ApplyResults\022\017\n" + "\007content\030\001 \001(\t\022\021\n" + "\tartifacts\030\002 \001(\t\022B\n" - + "\007outputs\030\003" - + " \003(\01321.google.cloud.config.v1.ApplyResults.OutputsEntry\032W\n" + + "\007outputs\030\003 \003" + + "(\01321.google.cloud.config.v1.ApplyResults.OutputsEntry\032W\n" + "\014OutputsEntry\022\013\n" + "\003key\030\001 \001(\t\0226\n" + "\005value\030\002 \001(\0132\'.google.cloud.config.v1.TerraformOutput:\0028\001\"K\n" @@ -398,8 +447,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + "!locations.googleapis.com/Location\022\032\n\r" + "deployment_id\030\002 \001(\tB\003\340A\002\022;\n\n" - + "deployment\030\003" - + " \001(\0132\".google.cloud.config.v1.DeploymentB\003\340A\002\022\027\n\n" + + "deployment\030\003 \001(\013" + + "2\".google.cloud.config.v1.DeploymentB\003\340A\002\022\027\n\n" + "request_id\030\004 \001(\tB\003\340A\001\"\245\001\n" + "\027UpdateDeploymentRequest\0224\n" + "\013update_mask\030\001" @@ -412,17 +461,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " config.googleapis.com/Deployment\022\027\n\n" + "request_id\030\002 \001(\tB\003\340A\001\022\022\n" + "\005force\030\003 \001(\010B\003\340A\001\022X\n\r" - + "delete_policy\030\004" - + " \001(\0162<.google.cloud.config.v1.DeleteDeploymentRequest.DeletePolicyB\003\340A\001\"F\n" + + "delete_policy\030\004 \001(\0162<.google.clou" + + "d.config.v1.DeleteDeploymentRequest.DeletePolicyB\003\340A\001\"F\n" + "\014DeletePolicy\022\035\n" + "\031DELETE_POLICY_UNSPECIFIED\020\000\022\n\n" + "\006DELETE\020\001\022\013\n" + "\007ABANDON\020\002\"\301\003\n" + "\021OperationMetadata\022W\n" - + "\023deployment_metadata\030\010 \001(\01323.g" - + "oogle.cloud.config.v1.DeploymentOperationMetadataB\003\340A\003H\000\022Q\n" - + "\020preview_metadata\030\t \001" - + "(\01320.google.cloud.config.v1.PreviewOperationMetadataB\003\340A\003H\000\0224\n" + + "\023deployment_metadata\030\010" + + " \001(\01323.google.cloud.config.v1.DeploymentOperationMetadataB\003\340A\003H\000\022Q\n" + + "\020preview_metadata\030\t \001(\01320.google.cloud.co" + + "nfig.v1.PreviewOperationMetadataB\003\340A\003H\000\0224\n" + "\013create_time\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221\n" + "\010end_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n" + "\006target\030\003 \001(\tB\003\340A\003\022\021\n" @@ -432,8 +481,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013api_version\030\007 \001(\tB\003\340A\003B\023\n" + "\021resource_metadata\"\203\013\n" + "\010Revision\022N\n" - + "\023terraform_blueprint\030\006 \001(\0132" - + "*.google.cloud.config.v1.TerraformBlueprintB\003\340A\003H\000\022\014\n" + + "\023terraform_blueprint\030\006" + + " \001(\0132*.google.cloud.config.v1.TerraformBlueprintB\003\340A\003H\000\022\014\n" + "\004name\030\001 \001(\t\0224\n" + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022<\n" @@ -441,16 +490,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0162\'.google.cloud.config.v1.Revision.ActionB\003\340A\003\022:\n" + "\005state\030\005" + " \001(\0162&.google.cloud.config.v1.Revision.StateB\003\340A\003\022@\n\r" - + "apply_results\030\007 \001(\0132$." - + "google.cloud.config.v1.ApplyResultsB\003\340A\003\022\031\n" + + "apply_results\030\007" + + " \001(\0132$.google.cloud.config.v1.ApplyResultsB\003\340A\003\022\031\n" + "\014state_detail\030\010 \001(\tB\003\340A\003\022C\n\n" + "error_code\030\t" + " \001(\0162*.google.cloud.config.v1.Revision.ErrorCodeB\003\340A\003\022\022\n" + "\005build\030\n" + " \001(\tB\003\340A\003\022\021\n" + "\004logs\030\013 \001(\tB\003\340A\003\022>\n" - + "\ttf_errors\030\014 \003(\0132&.goo" - + "gle.cloud.config.v1.TerraformErrorB\003\340A\003\022\027\n\n" + + "\ttf_errors\030\014" + + " \003(\0132&.google.cloud.config.v1.TerraformErrorB\003\340A\003\022\027\n\n" + "error_logs\030\r" + " \001(\tB\003\340A\003\022B\n" + "\017service_account\030\016 \001(\tB)\340A\003\372A#\n" @@ -479,14 +528,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026APPLY_BUILD_API_FAILED\020\004\022\032\n" + "\026APPLY_BUILD_RUN_FAILED\020\005\022\033\n" + "\027QUOTA_VALIDATION_FAILED\020\007:z\352Aw\n" - + "\036config.googleapis.com/Revision\022Uprojects/{project}/locations/{location}/deploym" - + "ents/{deployment}/revisions/{revision}B\013\n" - + "\tblueprint\"\204\001\n" + + "\036config.googleapis.com/Revision\022Uprojects/{project}/location" + + "s/{location}/deployments/{deployment}/revisions/{revision}B\013\n" + + "\tblueprint\"\211\001\n" + "\016TerraformError\022\030\n" + "\020resource_address\030\001 \001(\t\022\032\n" + "\022http_response_code\030\002 \001(\005\022\031\n" - + "\021error_description\030\003 \001(\t\022!\n" - + "\005error\030\004 \001(\0132\022.google.rpc.Status\"v\n" + + "\021error_description\030\003 \001(\t\022&\n" + + "\005error\030\004 \001(\0132\022.google.rpc.StatusB\003\340A\003\"v\n" + "\tGitSource\022\026\n" + "\004repo\030\001 \001(\tB\003\340A\001H\000\210\001\001\022\033\n" + "\tdirectory\030\002 \001(\tB\003\340A\001H\001\210\001\001\022\025\n" @@ -495,8 +544,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_directoryB\006\n" + "\004_ref\"\237\004\n" + "\033DeploymentOperationMetadata\022P\n" - + "\004step\030\001 \001(\0162B.googl" - + "e.cloud.config.v1.DeploymentOperationMetadata.DeploymentStep\022;\n\r" + + "\004step\030\001 \001(\0162B.google.cloud.config." + + "v1.DeploymentOperationMetadata.DeploymentStep\022;\n\r" + "apply_results\030\002 \001(\0132$.google.cloud.config.v1.ApplyResults\022\022\n" + "\005build\030\003 \001(\tB\003\340A\003\022\021\n" + "\004logs\030\004 \001(\tB\003\340A\003\"\311\002\n" @@ -517,12 +566,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030RUNNING_QUOTA_VALIDATION\020\014\"\330\005\n" + "\010Resource\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022J\n" - + "\016terraform_info\030\002 \001(\0132-.google.cl" - + "oud.config.v1.ResourceTerraformInfoB\003\340A\003\022H\n\n" + + "\016terraform_info\030\002" + + " \001(\0132-.google.cloud.config.v1.ResourceTerraformInfoB\003\340A\003\022H\n\n" + "cai_assets\030\003" + " \003(\0132/.google.cloud.config.v1.Resource.CaiAssetsEntryB\003\340A\003\022<\n" - + "\006intent\030\004" - + " \001(\0162\'.google.cloud.config.v1.Resource.IntentB\003\340A\003\022:\n" + + "\006intent\030\004 \001(\0162\'.go" + + "ogle.cloud.config.v1.Resource.IntentB\003\340A\003\022:\n" + "\005state\030\005" + " \001(\0162&.google.cloud.config.v1.Resource.StateB\003\340A\003\032Y\n" + "\016CaiAssetsEntry\022\013\n" @@ -530,7 +579,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005value\030\002 \001(\0132\'.google.cloud.config.v1.ResourceCAIInfo:\0028\001\"a\n" + "\006Intent\022\026\n" + "\022INTENT_UNSPECIFIED\020\000\022\n\n" - + "\006CREATE\020\001\022\n\n" + + "\006CREATE\020\001\022\n" + + "\n" + "\006UPDATE\020\002\022\n\n" + "\006DELETE\020\003\022\014\n" + "\010RECREATE\020\004\022\r\n" @@ -541,8 +591,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013IN_PROGRESS\020\002\022\016\n\n" + "RECONCILED\020\003\022\n\n" + "\006FAILED\020\004:\220\001\352A\214\001\n" - + "\036config.googleapis.com/Resource\022jprojects/{project}/locations/{location}/dep" - + "loyments/{deployment}/revisions/{revision}/resources/{resource}\"B\n" + + "\036config.googleapis.com/Resource\022jprojects/{project}" + + "/locations/{location}/deployments/{deplo" + + "yment}/revisions/{revision}/resources/{resource}\"B\n" + "\025ResourceTerraformInfo\022\017\n" + "\007address\030\001 \001(\t\022\014\n" + "\004type\030\002 \001(\t\022\n\n" @@ -603,14 +654,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132*.google.cloud.config.v1.TerraformBlueprintH\000\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\0224\n" + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022@\n" - + "\006labels\030\003 \003(\0132+.go" - + "ogle.cloud.config.v1.Preview.LabelsEntryB\003\340A\001\0229\n" + + "\006labels\030\003" + + " \003(\0132+.google.cloud.config.v1.Preview.LabelsEntryB\003\340A\001\0229\n" + "\005state\030\004" + " \001(\0162%.google.cloud.config.v1.Preview.StateB\003\340A\003\022<\n\n" + "deployment\030\005 \001(\tB(\340A\001\372A\"\n" + " config.googleapis.com/Deployment\022F\n" - + "\014preview_mode\030\017 \001(\0162+.google.cl" - + "oud.config.v1.Preview.PreviewModeB\003\340A\001\022B\n" + + "\014preview_mode\030\017" + + " \001(\0162+.google.cloud.config.v1.Preview.PreviewModeB\003\340A\001\022B\n" + "\017service_account\030\007 \001(\tB)\340A\002\372A#\n" + "!iam.googleapis.com/ServiceAccount\022&\n" + "\024artifacts_gcs_bucket\030\010 \001(\tB\003\340A\001H\001\210\001\001\022F\n" @@ -657,17 +708,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036DEPLOYMENT_LOCK_ACQUIRE_FAILED\020\004\022\034\n" + "\030PREVIEW_BUILD_API_FAILED\020\005\022\034\n" + "\030PREVIEW_BUILD_RUN_FAILED\020\006:q\352An\n" - + "\035config.googleapis.com/Preview\022:projects/{project}/locations/{l" - + "ocation}/previews/{preview}*\010previews2\007previewB\013\n" + + "\035config.googleapis.com/Preview\022:projec" + + "ts/{project}/locations/{location}/previews/{preview}*\010previews2\007previewB\013\n" + "\tblueprintB\027\n" + "\025_artifacts_gcs_bucketB\016\n" + "\014_worker_poolB\030\n" + "\026_tf_version_constraint\"\344\003\n" + "\030PreviewOperationMetadata\022J\n" - + "\004step\030\001" - + " \001(\0162<.google.cloud.config.v1.PreviewOperationMetadata.PreviewStep\022C\n" - + "\021preview_artifacts\030\002" - + " \001(\0132(.google.cloud.config.v1.PreviewArtifacts\022\021\n" + + "\004step\030\001 \001(\0162<.goo" + + "gle.cloud.config.v1.PreviewOperationMetadata.PreviewStep\022C\n" + + "\021preview_artifacts\030\002 " + + "\001(\0132(.google.cloud.config.v1.PreviewArtifacts\022\021\n" + "\004logs\030\003 \001(\tB\003\340A\003\022\022\n" + "\005build\030\004 \001(\tB\003\340A\003\"\217\002\n" + "\013PreviewStep\022\034\n" @@ -715,8 +766,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(\tB%\340A\002\372A\037\n" + "\035config.googleapis.com/Preview\"Y\n" + "\033ExportPreviewResultResponse\022:\n" - + "\006result\030\001" - + " \001(\0132%.google.cloud.config.v1.PreviewResultB\003\340A\003\"M\n\r" + + "\006result\030\001 \001(\0132%.goo" + + "gle.cloud.config.v1.PreviewResultB\003\340A\003\"M\n\r" + "PreviewResult\022\036\n" + "\021binary_signed_uri\030\001 \001(\tB\003\340A\003\022\034\n" + "\017json_signed_uri\030\002 \001(\tB\003\340A\003\"Z\n" @@ -737,8 +788,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013unreachable\030\003 \003(\t\"\255\004\n" + "\020TerraformVersion\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022B\n" - + "\005state\030\002" - + " \001(\0162..google.cloud.config.v1.TerraformVersion.StateB\003\340A\003\0225\n" + + "\005state\030\002 \001(\0162" + + "..google.cloud.config.v1.TerraformVersion.StateB\003\340A\003\0225\n" + "\014support_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022<\n" + "\016deprecate_time\030\004" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003H\000\210\001\001\022;\n\r" @@ -749,127 +800,238 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006ACTIVE\020\001\022\016\n\n" + "DEPRECATED\020\002\022\014\n" + "\010OBSOLETE\020\003:\240\001\352A\234\001\n" - + "&config.googleapis.com/TerraformVersion\022Mprojects/{project}/locations/{lo" - + "cation}/terraformVersions/{terraform_ver" - + "sion}*\021terraformVersions2\020terraformVersionB\021\n" + + "&config.googleapis.com/TerraformVersion\022Mproject" + + "s/{project}/locations/{location}/terrafo" + + "rmVersions/{terraform_version}*\021terraformVersions2\020terraformVersionB\021\n" + "\017_deprecate_timeB\020\n" - + "\016_obsolete_time*N\n" + + "\016_obsolete_time\"\217\001\n" + + "\033ResourceChangeTerraformInfo\022\024\n" + + "\007address\030\001 \001(\tB\003\340A\003\022\021\n" + + "\004type\030\002 \001(\tB\003\340A\003\022\032\n\r" + + "resource_name\030\003 \001(\tB\003\340A\003\022\025\n" + + "\010provider\030\004 \001(\tB\003\340A\003\022\024\n" + + "\007actions\030\005 \003(\tB\003\340A\003\"\217\004\n" + + "\016ResourceChange\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022P\n" + + "\016terraform_info\030\002 \001(\01323.googl" + + "e.cloud.config.v1.ResourceChangeTerraformInfoB\003\340A\003\022B\n" + + "\006intent\030\003 \001(\0162-.google.clou" + + "d.config.v1.ResourceChange.IntentB\003\340A\003\022E\n" + + "\020property_changes\030\004" + + " \003(\0132&.google.cloud.config.v1.PropertyChangeB\003\340A\003\"a\n" + + "\006Intent\022\026\n" + + "\022INTENT_UNSPECIFIED\020\000\022\n\n" + + "\006CREATE\020\001\022\n\n" + + "\006UPDATE\020\002\022\n\n" + + "\006DELETE\020\003\022\014\n" + + "\010RECREATE\020\004\022\r\n" + + "\tUNCHANGED\020\005:\251\001\352A\245\001\n" + + "$config.googleapis.com/ResourceChange\022\\projects/{project}/locati" + + "ons/{location}/previews/{preview}/resour" + + "ceChanges/{resource_change}*\017resourceChanges2\016resourceChange\"\305\001\n" + + "\016PropertyChange\022\021\n" + + "\004path\030\001 \001(\tB\003\340A\003\022#\n" + + "\026before_sensitive_paths\030\002 \003(\tB\003\340A\003\022+\n" + + "\006before\030\003 \001(\0132\026.google.protobuf.ValueB\003\340A\003\022\"\n" + + "\025after_sensitive_paths\030\004 \003(\tB\003\340A\003\022*\n" + + "\005after\030\005 \001(\0132\026.google.protobuf.ValueB\003\340A\003\"\260\001\n" + + "\032ListResourceChangesRequest\0225\n" + + "\006parent\030\001 \001(\tB%\340A\002\372A\037\n" + + "\035config.googleapis.com/Preview\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\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\"\215\001\n" + + "\033ListResourceChangesResponse\022@\n" + + "\020resource_changes\030\001" + + " \003(\0132&.google.cloud.config.v1.ResourceChange\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t\"V\n" + + "\030GetResourceChangeRequest\022:\n" + + "\004name\030\001 \001(\tB,\340A\002\372A&\n" + + "$config.googleapis.com/ResourceChange\"x\n" + + "\032ResourceDriftTerraformInfo\022\024\n" + + "\007address\030\001 \001(\tB\003\340A\003\022\021\n" + + "\004type\030\002 \001(\tB\003\340A\003\022\032\n\r" + + "resource_name\030\003 \001(\tB\003\340A\003\022\025\n" + + "\010provider\030\004 \001(\tB\003\340A\003\"\337\002\n\r" + + "ResourceDrift\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022O\n" + + "\016terraform_info\030\002" + + " \001(\01322.google.cloud.config.v1.ResourceDriftTerraformInfoB\003\340A\003\022C\n" + + "\017property_drifts\030\003" + + " \003(\0132%.google.cloud.config.v1.PropertyDriftB\003\340A\003:\244\001\352A\240\001\n" + + "#config.googleapis.com/ResourceDrift\022Zprojects/{proj" + + "ect}/locations/{location}/previews/{prev" + + "iew}/resourceDrifts/{resource_drift}*\016resourceDrifts2\r" + + "resourceDrift\"\304\001\n\r" + + "PropertyDrift\022\021\n" + + "\004path\030\001 \001(\tB\003\340A\003\022#\n" + + "\026before_sensitive_paths\030\002 \003(\tB\003\340A\003\022+\n" + + "\006before\030\003 \001(\0132\026.google.protobuf.ValueB\003\340A\003\022\"\n" + + "\025after_sensitive_paths\030\004 \003(\tB\003\340A\003\022*\n" + + "\005after\030\005 \001(\0132\026.google.protobuf.ValueB\003\340A\003\"\257\001\n" + + "\031ListResourceDriftsRequest\0225\n" + + "\006parent\030\001 \001(\tB%\340A\002\372A\037\n" + + "\035config.googleapis.com/Preview\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\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\"\212\001\n" + + "\032ListResourceDriftsResponse\022>\n" + + "\017resource_drifts\030\001 \003(\0132%.google.cloud.config.v1.ResourceDrift\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t\"T\n" + + "\027GetResourceDriftRequest\0229\n" + + "\004name\030\001 \001(\tB+\340A\002\372A%\n" + + "#config.googleapis.com/ResourceDrift*N\n" + "\017QuotaValidation\022 \n" + "\034QUOTA_VALIDATION_UNSPECIFIED\020\000\022\013\n" + "\007ENABLED\020\001\022\014\n" - + "\010ENFORCED\020\0022\247#\n" + + "\010ENFORCED\020\0022\301)\n" + "\006Config\022\264\001\n" - + "\017ListDeployments\022..google.cloud.config.v1.ListDeploymentsRequest\032/" - + ".google.cloud.config.v1.ListDeploymentsR" - + "esponse\"@\332A\006parent\202\323\344\223\0021\022//v1/{parent=projects/*/locations/*}/deployments\022\241\001\n\r" - + "GetDeployment\022,.google.cloud.config.v1.Get" - + "DeploymentRequest\032\".google.cloud.config." - + "v1.Deployment\">\332A\004name\202\323\344\223\0021\022//v1/{name=" - + "projects/*/locations/*/deployments/*}\022\354\001\n" - + "\020CreateDeployment\022/.google.cloud.config" - + ".v1.CreateDeploymentRequest\032\035.google.longrunning.Operation\"\207\001\312A\037\n\n" - + "Deployment\022\021OperationMetadata\332A\037parent,deployment,depl" - + "oyment_id\202\323\344\223\002=\"//v1/{parent=projects/*/locations/*}/deployments:\n" - + "deployment\022\356\001\n" - + "\020UpdateDeployment\022/.google.cloud.config." - + "v1.UpdateDeploymentRequest\032\035.google.longrunning.Operation\"\211\001\312A\037\n\n" - + "Deployment\022\021OperationMetadata\332A\026deployment,update_mask\202" - + "\323\344\223\002H2:/v1/{deployment.name=projects/*/locations/*/deployments/*}:\n" - + "deployment\022\304\001\n" - + "\020DeleteDeployment\022/.google.cloud.config" - + ".v1.DeleteDeploymentRequest\032\035.google.longrunning.Operation\"`\312A\037\n\n" - + "Deployment\022\021Ope" - + "rationMetadata\332A\004name\202\323\344\223\0021*//v1/{name=projects/*/locations/*/deployments/*}\022\272\001\n" - + "\r" - + "ListRevisions\022,.google.cloud.config.v1.ListRevisionsRequest\032-.google.cloud.conf" - + "ig.v1.ListRevisionsResponse\"L\332A\006parent\202\323" - + "\344\223\002=\022;/v1/{parent=projects/*/locations/*/deployments/*}/revisions\022\247\001\n" - + "\013GetRevision\022*.google.cloud.config.v1.GetRevisionRequest\032" - + " .google.cloud.config.v1.Revision\"" - + "J\332A\004name\202\323\344\223\002=\022;/v1/{name=projects/*/locations/*/deployments/*/revisions/*}\022\263\001\n" - + "\013GetResource\022*.google.cloud.config.v1.GetResourceRequest\032" - + " .google.cloud.config.v1" - + ".Resource\"V\332A\004name\202\323\344\223\002I\022G/v1/{name=proj" - + "ects/*/locations/*/deployments/*/revisions/*/resources/*}\022\306\001\n\r" - + "ListResources\022,.google.cloud.config.v1.ListResourcesReques" - + "t\032-.google.cloud.config.v1.ListResources" - + "Response\"X\332A\006parent\202\323\344\223\002I\022G/v1/{parent=p" - + "rojects/*/locations/*/deployments/*/revisions/*}/resources\022\302\001\n" - + "\031ExportDeploymentStatefile\0228.google.cloud.config.v1.Export" - + "DeploymentStatefileRequest\032!.google.clou" - + "d.config.v1.Statefile\"H\202\323\344\223\002B\"=/v1/{pare" - + "nt=projects/*/locations/*/deployments/*}:exportState:\001*\022\312\001\n" - + "\027ExportRevisionStatefile\0226.google.cloud.config.v1.ExportRevis" - + "ionStatefileRequest\032!.google.cloud.confi" - + "g.v1.Statefile\"T\202\323\344\223\002N\"I/v1/{parent=proj" - + "ects/*/locations/*/deployments/*/revisions/*}:exportState:\001*\022\277\001\n" - + "\017ImportStatefile\022..google.cloud.config.v1.ImportStatefil" - + "eRequest\032!.google.cloud.config.v1.Statef" - + "ile\"Y\332A\016parent,lock_id\202\323\344\223\002B\"=/v1/{paren" - + "t=projects/*/locations/*/deployments/*}:importState:\001*\022\250\001\n" - + "\017DeleteStatefile\022..google.cloud.config.v1.DeleteStatefileReque" - + "st\032\026.google.protobuf.Empty\"M\332A\004name\202\323\344\223\002", - "@\";/v1/{name=projects/*/locations/*/depl" - + "oyments/*}:deleteState:\001*\022\310\001\n\016LockDeploy" - + "ment\022-.google.cloud.config.v1.LockDeploy" - + "mentRequest\032\035.google.longrunning.Operati" - + "on\"h\312A\037\n\nDeployment\022\021OperationMetadata\332A" - + "\004name\202\323\344\223\0029\"4/v1/{name=projects/*/locati" - + "ons/*/deployments/*}:lock:\001*\022\326\001\n\020UnlockD" - + "eployment\022/.google.cloud.config.v1.Unloc" - + "kDeploymentRequest\032\035.google.longrunning." - + "Operation\"r\312A\037\n\nDeployment\022\021OperationMet" - + "adata\332A\014name,lock_id\202\323\344\223\002;\"6/v1/{name=pr" - + "ojects/*/locations/*/deployments/*}:unlo" - + "ck:\001*\022\254\001\n\016ExportLockInfo\022-.google.cloud." - + "config.v1.ExportLockInfoRequest\032 .google" - + ".cloud.config.v1.LockInfo\"I\332A\004name\202\323\344\223\002<" - + "\022:/v1/{name=projects/*/locations/*/deplo" - + "yments/*}:exportLock\022\313\001\n\rCreatePreview\022," - + ".google.cloud.config.v1.CreatePreviewReq" - + "uest\032\035.google.longrunning.Operation\"m\312A\034" - + "\n\007Preview\022\021OperationMetadata\332A\016parent,pr" - + "eview\202\323\344\223\0027\",/v1/{parent=projects/*/loca" - + "tions/*}/previews:\007preview\022\225\001\n\nGetPrevie" - + "w\022).google.cloud.config.v1.GetPreviewReq" - + "uest\032\037.google.cloud.config.v1.Preview\";\332" - + "A\004name\202\323\344\223\002.\022,/v1/{name=projects/*/locat" - + "ions/*/previews/*}\022\250\001\n\014ListPreviews\022+.go" - + "ogle.cloud.config.v1.ListPreviewsRequest" - + "\032,.google.cloud.config.v1.ListPreviewsRe" - + "sponse\"=\332A\006parent\202\323\344\223\002.\022,/v1/{parent=pro" - + "jects/*/locations/*}/previews\022\270\001\n\rDelete" - + "Preview\022,.google.cloud.config.v1.DeleteP" - + "reviewRequest\032\035.google.longrunning.Opera" - + "tion\"Z\312A\034\n\007Preview\022\021OperationMetadata\332A\004" - + "name\202\323\344\223\002.*,/v1/{name=projects/*/locatio" - + "ns/*/previews/*}\022\300\001\n\023ExportPreviewResult" - + "\0222.google.cloud.config.v1.ExportPreviewR" - + "esultRequest\0323.google.cloud.config.v1.Ex" - + "portPreviewResultResponse\"@\202\323\344\223\002:\"5/v1/{" - + "parent=projects/*/locations/*/previews/*" - + "}:export:\001*\022\314\001\n\025ListTerraformVersions\0224." - + "google.cloud.config.v1.ListTerraformVers" - + "ionsRequest\0325.google.cloud.config.v1.Lis" - + "tTerraformVersionsResponse\"F\332A\006parent\202\323\344" - + "\223\0027\0225/v1/{parent=projects/*/locations/*}" - + "/terraformVersions\022\271\001\n\023GetTerraformVersi" - + "on\0222.google.cloud.config.v1.GetTerraform" - + "VersionRequest\032(.google.cloud.config.v1." - + "TerraformVersion\"D\332A\004name\202\323\344\223\0027\0225/v1/{na" - + "me=projects/*/locations/*/terraformVersi" - + "ons/*}\032I\312A\025config.googleapis.com\322A.https" - + "://www.googleapis.com/auth/cloud-platfor" - + "mB\374\002\n\032com.google.cloud.config.v1B\013Config" - + "ProtoP\001Z2cloud.google.com/go/config/apiv" - + "1/configpb;configpb\252\002\026Google.Cloud.Confi" - + "g.V1\312\002\026Google\\Cloud\\Config\\V1\352\002 Google::" - + "Cloud::ConfigService::V1\352AY\n!iam.googlea" - + "pis.com/ServiceAccount\0224projects/{projec" - + "t}/serviceAccounts/{service_account}\352Ai\n" - + "$cloudbuild.googleapis.com/WorkerPool\022Ap" - + "rojects/{project}/locations/{location}/w" - + "orkerPools/{worker_pool}b\006proto3" + + "\017ListDeployments\022..google.cloud.config.v1.ListDeploymentsRequest\032/.google.", + "cloud.config.v1.ListDeploymentsResponse\"" + + "@\332A\006parent\202\323\344\223\0021\022//v1/{parent=projects/*" + + "/locations/*}/deployments\022\241\001\n\rGetDeploym" + + "ent\022,.google.cloud.config.v1.GetDeployme" + + "ntRequest\032\".google.cloud.config.v1.Deplo" + + "yment\">\332A\004name\202\323\344\223\0021\022//v1/{name=projects" + + "/*/locations/*/deployments/*}\022\354\001\n\020Create" + + "Deployment\022/.google.cloud.config.v1.Crea" + + "teDeploymentRequest\032\035.google.longrunning" + + ".Operation\"\207\001\312A\037\n\nDeployment\022\021OperationM" + + "etadata\332A\037parent,deployment,deployment_i" + + "d\202\323\344\223\002=\"//v1/{parent=projects/*/location" + + "s/*}/deployments:\ndeployment\022\356\001\n\020UpdateD" + + "eployment\022/.google.cloud.config.v1.Updat" + + "eDeploymentRequest\032\035.google.longrunning." + + "Operation\"\211\001\312A\037\n\nDeployment\022\021OperationMe" + + "tadata\332A\026deployment,update_mask\202\323\344\223\002H2:/" + + "v1/{deployment.name=projects/*/locations" + + "/*/deployments/*}:\ndeployment\022\304\001\n\020Delete" + + "Deployment\022/.google.cloud.config.v1.Dele" + + "teDeploymentRequest\032\035.google.longrunning" + + ".Operation\"`\312A\037\n\nDeployment\022\021OperationMe" + + "tadata\332A\004name\202\323\344\223\0021*//v1/{name=projects/" + + "*/locations/*/deployments/*}\022\272\001\n\rListRev" + + "isions\022,.google.cloud.config.v1.ListRevi" + + "sionsRequest\032-.google.cloud.config.v1.Li" + + "stRevisionsResponse\"L\332A\006parent\202\323\344\223\002=\022;/v" + + "1/{parent=projects/*/locations/*/deploym" + + "ents/*}/revisions\022\247\001\n\013GetRevision\022*.goog" + + "le.cloud.config.v1.GetRevisionRequest\032 ." + + "google.cloud.config.v1.Revision\"J\332A\004name" + + "\202\323\344\223\002=\022;/v1/{name=projects/*/locations/*" + + "/deployments/*/revisions/*}\022\263\001\n\013GetResou" + + "rce\022*.google.cloud.config.v1.GetResource" + + "Request\032 .google.cloud.config.v1.Resourc" + + "e\"V\332A\004name\202\323\344\223\002I\022G/v1/{name=projects/*/l" + + "ocations/*/deployments/*/revisions/*/res" + + "ources/*}\022\306\001\n\rListResources\022,.google.clo" + + "ud.config.v1.ListResourcesRequest\032-.goog" + + "le.cloud.config.v1.ListResourcesResponse" + + "\"X\332A\006parent\202\323\344\223\002I\022G/v1/{parent=projects/" + + "*/locations/*/deployments/*/revisions/*}" + + "/resources\022\302\001\n\031ExportDeploymentStatefile" + + "\0228.google.cloud.config.v1.ExportDeployme" + + "ntStatefileRequest\032!.google.cloud.config" + + ".v1.Statefile\"H\202\323\344\223\002B\"=/v1/{parent=proje" + + "cts/*/locations/*/deployments/*}:exportS" + + "tate:\001*\022\312\001\n\027ExportRevisionStatefile\0226.go" + + "ogle.cloud.config.v1.ExportRevisionState" + + "fileRequest\032!.google.cloud.config.v1.Sta" + + "tefile\"T\202\323\344\223\002N\"I/v1/{parent=projects/*/l" + + "ocations/*/deployments/*/revisions/*}:ex" + + "portState:\001*\022\277\001\n\017ImportStatefile\022..googl" + + "e.cloud.config.v1.ImportStatefileRequest" + + "\032!.google.cloud.config.v1.Statefile\"Y\332A\016" + + "parent,lock_id\202\323\344\223\002B\"=/v1/{parent=projec" + + "ts/*/locations/*/deployments/*}:importSt" + + "ate:\001*\022\250\001\n\017DeleteStatefile\022..google.clou" + + "d.config.v1.DeleteStatefileRequest\032\026.goo" + + "gle.protobuf.Empty\"M\332A\004name\202\323\344\223\002@\";/v1/{" + + "name=projects/*/locations/*/deployments/" + + "*}:deleteState:\001*\022\310\001\n\016LockDeployment\022-.g" + + "oogle.cloud.config.v1.LockDeploymentRequ" + + "est\032\035.google.longrunning.Operation\"h\312A\037\n" + + "\nDeployment\022\021OperationMetadata\332A\004name\202\323\344" + + "\223\0029\"4/v1/{name=projects/*/locations/*/de" + + "ployments/*}:lock:\001*\022\326\001\n\020UnlockDeploymen" + + "t\022/.google.cloud.config.v1.UnlockDeploym" + + "entRequest\032\035.google.longrunning.Operatio" + + "n\"r\312A\037\n\nDeployment\022\021OperationMetadata\332A\014" + + "name,lock_id\202\323\344\223\002;\"6/v1/{name=projects/*" + + "/locations/*/deployments/*}:unlock:\001*\022\254\001" + + "\n\016ExportLockInfo\022-.google.cloud.config.v" + + "1.ExportLockInfoRequest\032 .google.cloud.c" + + "onfig.v1.LockInfo\"I\332A\004name\202\323\344\223\002<\022:/v1/{n" + + "ame=projects/*/locations/*/deployments/*" + + "}:exportLock\022\313\001\n\rCreatePreview\022,.google." + + "cloud.config.v1.CreatePreviewRequest\032\035.g" + + "oogle.longrunning.Operation\"m\312A\034\n\007Previe" + + "w\022\021OperationMetadata\332A\016parent,preview\202\323\344" + + "\223\0027\",/v1/{parent=projects/*/locations/*}" + + "/previews:\007preview\022\225\001\n\nGetPreview\022).goog" + + "le.cloud.config.v1.GetPreviewRequest\032\037.g" + + "oogle.cloud.config.v1.Preview\";\332A\004name\202\323" + + "\344\223\002.\022,/v1/{name=projects/*/locations/*/p" + + "reviews/*}\022\250\001\n\014ListPreviews\022+.google.clo" + + "ud.config.v1.ListPreviewsRequest\032,.googl" + + "e.cloud.config.v1.ListPreviewsResponse\"=" + + "\332A\006parent\202\323\344\223\002.\022,/v1/{parent=projects/*/" + + "locations/*}/previews\022\270\001\n\rDeletePreview\022" + + ",.google.cloud.config.v1.DeletePreviewRe" + + "quest\032\035.google.longrunning.Operation\"Z\312A" + + "\034\n\007Preview\022\021OperationMetadata\332A\004name\202\323\344\223" + + "\002.*,/v1/{name=projects/*/locations/*/pre" + + "views/*}\022\300\001\n\023ExportPreviewResult\0222.googl" + + "e.cloud.config.v1.ExportPreviewResultReq" + + "uest\0323.google.cloud.config.v1.ExportPrev" + + "iewResultResponse\"@\202\323\344\223\002:\"5/v1/{parent=p" + + "rojects/*/locations/*/previews/*}:export" + + ":\001*\022\314\001\n\025ListTerraformVersions\0224.google.c" + + "loud.config.v1.ListTerraformVersionsRequ" + + "est\0325.google.cloud.config.v1.ListTerrafo" + + "rmVersionsResponse\"F\332A\006parent\202\323\344\223\0027\0225/v1" + + "/{parent=projects/*/locations/*}/terrafo" + + "rmVersions\022\271\001\n\023GetTerraformVersion\0222.goo" + + "gle.cloud.config.v1.GetTerraformVersionR" + + "equest\032(.google.cloud.config.v1.Terrafor" + + "mVersion\"D\332A\004name\202\323\344\223\0027\0225/v1/{name=proje" + + "cts/*/locations/*/terraformVersions/*}\022\317" + + "\001\n\023ListResourceChanges\0222.google.cloud.co" + + "nfig.v1.ListResourceChangesRequest\0323.goo" + + "gle.cloud.config.v1.ListResourceChangesR" + + "esponse\"O\332A\006parent\202\323\344\223\002@\022>/v1/{parent=pr" + + "ojects/*/locations/*/previews/*}/resourc" + + "eChanges\022\274\001\n\021GetResourceChange\0220.google." + + "cloud.config.v1.GetResourceChangeRequest" + + "\032&.google.cloud.config.v1.ResourceChange" + + "\"M\332A\004name\202\323\344\223\002@\022>/v1/{name=projects/*/lo" + + "cations/*/previews/*/resourceChanges/*}\022" + + "\313\001\n\022ListResourceDrifts\0221.google.cloud.co" + + "nfig.v1.ListResourceDriftsRequest\0322.goog" + + "le.cloud.config.v1.ListResourceDriftsRes" + + "ponse\"N\332A\006parent\202\323\344\223\002?\022=/v1/{parent=proj" + + "ects/*/locations/*/previews/*}/resourceD" + + "rifts\022\270\001\n\020GetResourceDrift\022/.google.clou" + + "d.config.v1.GetResourceDriftRequest\032%.go" + + "ogle.cloud.config.v1.ResourceDrift\"L\332A\004n" + + "ame\202\323\344\223\002?\022=/v1/{name=projects/*/location" + + "s/*/previews/*/resourceDrifts/*}\032I\312A\025con" + + "fig.googleapis.com\322A.https://www.googlea" + + "pis.com/auth/cloud-platformB\374\002\n\032com.goog" + + "le.cloud.config.v1B\013ConfigProtoP\001Z2cloud" + + ".google.com/go/config/apiv1/configpb;con" + + "figpb\252\002\026Google.Cloud.Config.V1\312\002\026Google\\" + + "Cloud\\Config\\V1\352\002 Google::Cloud::ConfigS" + + "ervice::V1\352AY\n!iam.googleapis.com/Servic" + + "eAccount\0224projects/{project}/serviceAcco" + + "unts/{service_account}\352Ai\n$cloudbuild.go" + + "ogleapis.com/WorkerPool\022Aprojects/{proje" + + "ct}/locations/{location}/workerPools/{wo" + + "rker_pool}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1409,6 +1571,102 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", "State", "SupportTime", "DeprecateTime", "ObsoleteTime", }); + internal_static_google_cloud_config_v1_ResourceChangeTerraformInfo_descriptor = + getDescriptor().getMessageTypes().get(49); + internal_static_google_cloud_config_v1_ResourceChangeTerraformInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_config_v1_ResourceChangeTerraformInfo_descriptor, + new java.lang.String[] { + "Address", "Type", "ResourceName", "Provider", "Actions", + }); + internal_static_google_cloud_config_v1_ResourceChange_descriptor = + getDescriptor().getMessageTypes().get(50); + internal_static_google_cloud_config_v1_ResourceChange_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_config_v1_ResourceChange_descriptor, + new java.lang.String[] { + "Name", "TerraformInfo", "Intent", "PropertyChanges", + }); + internal_static_google_cloud_config_v1_PropertyChange_descriptor = + getDescriptor().getMessageTypes().get(51); + internal_static_google_cloud_config_v1_PropertyChange_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_config_v1_PropertyChange_descriptor, + new java.lang.String[] { + "Path", "BeforeSensitivePaths", "Before", "AfterSensitivePaths", "After", + }); + internal_static_google_cloud_config_v1_ListResourceChangesRequest_descriptor = + getDescriptor().getMessageTypes().get(52); + internal_static_google_cloud_config_v1_ListResourceChangesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_config_v1_ListResourceChangesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_config_v1_ListResourceChangesResponse_descriptor = + getDescriptor().getMessageTypes().get(53); + internal_static_google_cloud_config_v1_ListResourceChangesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_config_v1_ListResourceChangesResponse_descriptor, + new java.lang.String[] { + "ResourceChanges", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_config_v1_GetResourceChangeRequest_descriptor = + getDescriptor().getMessageTypes().get(54); + internal_static_google_cloud_config_v1_GetResourceChangeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_config_v1_GetResourceChangeRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_config_v1_ResourceDriftTerraformInfo_descriptor = + getDescriptor().getMessageTypes().get(55); + internal_static_google_cloud_config_v1_ResourceDriftTerraformInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_config_v1_ResourceDriftTerraformInfo_descriptor, + new java.lang.String[] { + "Address", "Type", "ResourceName", "Provider", + }); + internal_static_google_cloud_config_v1_ResourceDrift_descriptor = + getDescriptor().getMessageTypes().get(56); + internal_static_google_cloud_config_v1_ResourceDrift_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_config_v1_ResourceDrift_descriptor, + new java.lang.String[] { + "Name", "TerraformInfo", "PropertyDrifts", + }); + internal_static_google_cloud_config_v1_PropertyDrift_descriptor = + getDescriptor().getMessageTypes().get(57); + internal_static_google_cloud_config_v1_PropertyDrift_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_config_v1_PropertyDrift_descriptor, + new java.lang.String[] { + "Path", "BeforeSensitivePaths", "Before", "AfterSensitivePaths", "After", + }); + internal_static_google_cloud_config_v1_ListResourceDriftsRequest_descriptor = + getDescriptor().getMessageTypes().get(58); + internal_static_google_cloud_config_v1_ListResourceDriftsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_config_v1_ListResourceDriftsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_config_v1_ListResourceDriftsResponse_descriptor = + getDescriptor().getMessageTypes().get(59); + internal_static_google_cloud_config_v1_ListResourceDriftsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_config_v1_ListResourceDriftsResponse_descriptor, + new java.lang.String[] { + "ResourceDrifts", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_config_v1_GetResourceDriftRequest_descriptor = + getDescriptor().getMessageTypes().get(60); + internal_static_google_cloud_config_v1_GetResourceDriftRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_config_v1_GetResourceDriftRequest_descriptor, + new java.lang.String[] { + "Name", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/Deployment.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/Deployment.java index 4d0bf6729108..0424674c1234 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/Deployment.java +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/Deployment.java @@ -992,11 +992,11 @@ public com.google.cloud.config.v1.TerraformBlueprintOrBuilder getTerraformBluepr * * *
-   * Resource name of the deployment.
+   * Identifier. Resource name of the deployment.
    * Format: `projects/{project}/locations/{location}/deployments/{deployment}`
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -1017,11 +1017,11 @@ public java.lang.String getName() { * * *
-   * Resource name of the deployment.
+   * Identifier. Resource name of the deployment.
    * Format: `projects/{project}/locations/{location}/deployments/{deployment}`
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1173,10 +1173,10 @@ public int getLabelsCount() { * * *
-   * User-defined metadata for the deployment.
+   * Optional. User-defined metadata for the deployment.
    * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { @@ -1197,10 +1197,10 @@ public java.util.Map getLabels() { * * *
-   * User-defined metadata for the deployment.
+   * Optional. User-defined metadata for the deployment.
    * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getLabelsMap() { @@ -1211,10 +1211,10 @@ public java.util.Map getLabelsMap() { * * *
-   * User-defined metadata for the deployment.
+   * Optional. User-defined metadata for the deployment.
    * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( @@ -1232,10 +1232,10 @@ public java.util.Map getLabelsMap() { * * *
-   * User-defined metadata for the deployment.
+   * Optional. User-defined metadata for the deployment.
    * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { @@ -3722,11 +3722,11 @@ public com.google.cloud.config.v1.TerraformBlueprintOrBuilder getTerraformBluepr * * *
-     * Resource name of the deployment.
+     * Identifier. Resource name of the deployment.
      * Format: `projects/{project}/locations/{location}/deployments/{deployment}`
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -3746,11 +3746,11 @@ public java.lang.String getName() { * * *
-     * Resource name of the deployment.
+     * Identifier. Resource name of the deployment.
      * Format: `projects/{project}/locations/{location}/deployments/{deployment}`
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -3770,11 +3770,11 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Resource name of the deployment.
+     * Identifier. Resource name of the deployment.
      * Format: `projects/{project}/locations/{location}/deployments/{deployment}`
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -3793,11 +3793,11 @@ public Builder setName(java.lang.String value) { * * *
-     * Resource name of the deployment.
+     * Identifier. Resource name of the deployment.
      * Format: `projects/{project}/locations/{location}/deployments/{deployment}`
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -3812,11 +3812,11 @@ public Builder clearName() { * * *
-     * Resource name of the deployment.
+     * Identifier. Resource name of the deployment.
      * Format: `projects/{project}/locations/{location}/deployments/{deployment}`
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. @@ -4286,10 +4286,10 @@ public int getLabelsCount() { * * *
-     * User-defined metadata for the deployment.
+     * Optional. User-defined metadata for the deployment.
      * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { @@ -4310,10 +4310,10 @@ public java.util.Map getLabels() { * * *
-     * User-defined metadata for the deployment.
+     * Optional. User-defined metadata for the deployment.
      * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getLabelsMap() { @@ -4324,10 +4324,10 @@ public java.util.Map getLabelsMap() { * * *
-     * User-defined metadata for the deployment.
+     * Optional. User-defined metadata for the deployment.
      * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( @@ -4345,10 +4345,10 @@ public java.util.Map getLabelsMap() { * * *
-     * User-defined metadata for the deployment.
+     * Optional. User-defined metadata for the deployment.
      * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { @@ -4372,10 +4372,10 @@ public Builder clearLabels() { * * *
-     * User-defined metadata for the deployment.
+     * Optional. User-defined metadata for the deployment.
      * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeLabels(java.lang.String key) { if (key == null) { @@ -4396,10 +4396,10 @@ public java.util.Map getMutableLabels() { * * *
-     * User-defined metadata for the deployment.
+     * Optional. User-defined metadata for the deployment.
      * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { @@ -4417,10 +4417,10 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { * * *
-     * User-defined metadata for the deployment.
+     * Optional. User-defined metadata for the deployment.
      * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentOrBuilder.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentOrBuilder.java index 426b4c2e5a24..e69525a92179 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentOrBuilder.java +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentOrBuilder.java @@ -68,11 +68,11 @@ public interface DeploymentOrBuilder * * *
-   * Resource name of the deployment.
+   * Identifier. Resource name of the deployment.
    * Format: `projects/{project}/locations/{location}/deployments/{deployment}`
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -82,11 +82,11 @@ public interface DeploymentOrBuilder * * *
-   * Resource name of the deployment.
+   * Identifier. Resource name of the deployment.
    * Format: `projects/{project}/locations/{location}/deployments/{deployment}`
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -176,10 +176,10 @@ public interface DeploymentOrBuilder * * *
-   * User-defined metadata for the deployment.
+   * Optional. User-defined metadata for the deployment.
    * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ int getLabelsCount(); @@ -187,10 +187,10 @@ public interface DeploymentOrBuilder * * *
-   * User-defined metadata for the deployment.
+   * Optional. User-defined metadata for the deployment.
    * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ boolean containsLabels(java.lang.String key); @@ -202,10 +202,10 @@ public interface DeploymentOrBuilder * * *
-   * User-defined metadata for the deployment.
+   * Optional. User-defined metadata for the deployment.
    * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ java.util.Map getLabelsMap(); @@ -213,10 +213,10 @@ public interface DeploymentOrBuilder * * *
-   * User-defined metadata for the deployment.
+   * Optional. User-defined metadata for the deployment.
    * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ java.lang.String getLabelsOrDefault( @@ -228,10 +228,10 @@ java.lang.String getLabelsOrDefault( * * *
-   * User-defined metadata for the deployment.
+   * Optional. User-defined metadata for the deployment.
    * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ java.lang.String getLabelsOrThrow(java.lang.String key); diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/GetResourceChangeRequest.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/GetResourceChangeRequest.java new file mode 100644 index 000000000000..24565f898b02 --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/GetResourceChangeRequest.java @@ -0,0 +1,662 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/config/v1/config.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.config.v1; + +/** + * + * + *
+ * The request message for the GetResourceChange method.
+ * 
+ * + * Protobuf type {@code google.cloud.config.v1.GetResourceChangeRequest} + */ +public final class GetResourceChangeRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.config.v1.GetResourceChangeRequest) + GetResourceChangeRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetResourceChangeRequest.newBuilder() to construct. + private GetResourceChangeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetResourceChangeRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetResourceChangeRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_GetResourceChangeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_GetResourceChangeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.GetResourceChangeRequest.class, + com.google.cloud.config.v1.GetResourceChangeRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The name of the resource change to retrieve.
+   * Format:
+   * 'projects/{project_id}/locations/{location}/previews/{preview}/resourceChanges/{resource_change}'.
+   * 
+ * + * + * 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 resource change to retrieve.
+   * Format:
+   * 'projects/{project_id}/locations/{location}/previews/{preview}/resourceChanges/{resource_change}'.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.config.v1.GetResourceChangeRequest)) { + return super.equals(obj); + } + com.google.cloud.config.v1.GetResourceChangeRequest other = + (com.google.cloud.config.v1.GetResourceChangeRequest) 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.cloud.config.v1.GetResourceChangeRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.GetResourceChangeRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.GetResourceChangeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.GetResourceChangeRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.GetResourceChangeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.GetResourceChangeRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.GetResourceChangeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.GetResourceChangeRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.config.v1.GetResourceChangeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.GetResourceChangeRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.config.v1.GetResourceChangeRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.GetResourceChangeRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.config.v1.GetResourceChangeRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The request message for the GetResourceChange method.
+   * 
+ * + * Protobuf type {@code google.cloud.config.v1.GetResourceChangeRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.config.v1.GetResourceChangeRequest) + com.google.cloud.config.v1.GetResourceChangeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_GetResourceChangeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_GetResourceChangeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.GetResourceChangeRequest.class, + com.google.cloud.config.v1.GetResourceChangeRequest.Builder.class); + } + + // Construct using com.google.cloud.config.v1.GetResourceChangeRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_GetResourceChangeRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.config.v1.GetResourceChangeRequest getDefaultInstanceForType() { + return com.google.cloud.config.v1.GetResourceChangeRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.config.v1.GetResourceChangeRequest build() { + com.google.cloud.config.v1.GetResourceChangeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.config.v1.GetResourceChangeRequest buildPartial() { + com.google.cloud.config.v1.GetResourceChangeRequest result = + new com.google.cloud.config.v1.GetResourceChangeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.config.v1.GetResourceChangeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.config.v1.GetResourceChangeRequest) { + return mergeFrom((com.google.cloud.config.v1.GetResourceChangeRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.config.v1.GetResourceChangeRequest other) { + if (other == com.google.cloud.config.v1.GetResourceChangeRequest.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 resource change to retrieve.
+     * Format:
+     * 'projects/{project_id}/locations/{location}/previews/{preview}/resourceChanges/{resource_change}'.
+     * 
+ * + * + * 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 resource change to retrieve.
+     * Format:
+     * 'projects/{project_id}/locations/{location}/previews/{preview}/resourceChanges/{resource_change}'.
+     * 
+ * + * + * 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 resource change to retrieve.
+     * Format:
+     * 'projects/{project_id}/locations/{location}/previews/{preview}/resourceChanges/{resource_change}'.
+     * 
+ * + * + * 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 resource change to retrieve.
+     * Format:
+     * 'projects/{project_id}/locations/{location}/previews/{preview}/resourceChanges/{resource_change}'.
+     * 
+ * + * + * 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 resource change to retrieve.
+     * Format:
+     * 'projects/{project_id}/locations/{location}/previews/{preview}/resourceChanges/{resource_change}'.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.config.v1.GetResourceChangeRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.config.v1.GetResourceChangeRequest) + private static final com.google.cloud.config.v1.GetResourceChangeRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.config.v1.GetResourceChangeRequest(); + } + + public static com.google.cloud.config.v1.GetResourceChangeRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetResourceChangeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.config.v1.GetResourceChangeRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/GetResourceChangeRequestOrBuilder.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/GetResourceChangeRequestOrBuilder.java new file mode 100644 index 000000000000..9f41cb36288d --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/GetResourceChangeRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/config/v1/config.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.config.v1; + +public interface GetResourceChangeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.config.v1.GetResourceChangeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the resource change to retrieve.
+   * Format:
+   * 'projects/{project_id}/locations/{location}/previews/{preview}/resourceChanges/{resource_change}'.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The name of the resource change to retrieve.
+   * Format:
+   * 'projects/{project_id}/locations/{location}/previews/{preview}/resourceChanges/{resource_change}'.
+   * 
+ * + * + * 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-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/GetResourceDriftRequest.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/GetResourceDriftRequest.java new file mode 100644 index 000000000000..40104f1e6eed --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/GetResourceDriftRequest.java @@ -0,0 +1,662 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/config/v1/config.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.config.v1; + +/** + * + * + *
+ * The request message for the GetResourceDrift method.
+ * 
+ * + * Protobuf type {@code google.cloud.config.v1.GetResourceDriftRequest} + */ +public final class GetResourceDriftRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.config.v1.GetResourceDriftRequest) + GetResourceDriftRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetResourceDriftRequest.newBuilder() to construct. + private GetResourceDriftRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetResourceDriftRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetResourceDriftRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_GetResourceDriftRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_GetResourceDriftRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.GetResourceDriftRequest.class, + com.google.cloud.config.v1.GetResourceDriftRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The name of the resource drift to retrieve.
+   * Format:
+   * 'projects/{project_id}/locations/{location}/previews/{preview}/resourceDrifts/{resource_drift}'.
+   * 
+ * + * + * 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 resource drift to retrieve.
+   * Format:
+   * 'projects/{project_id}/locations/{location}/previews/{preview}/resourceDrifts/{resource_drift}'.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.config.v1.GetResourceDriftRequest)) { + return super.equals(obj); + } + com.google.cloud.config.v1.GetResourceDriftRequest other = + (com.google.cloud.config.v1.GetResourceDriftRequest) 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.cloud.config.v1.GetResourceDriftRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.GetResourceDriftRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.GetResourceDriftRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.GetResourceDriftRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.GetResourceDriftRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.GetResourceDriftRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.GetResourceDriftRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.GetResourceDriftRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.config.v1.GetResourceDriftRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.GetResourceDriftRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.config.v1.GetResourceDriftRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.GetResourceDriftRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.config.v1.GetResourceDriftRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The request message for the GetResourceDrift method.
+   * 
+ * + * Protobuf type {@code google.cloud.config.v1.GetResourceDriftRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.config.v1.GetResourceDriftRequest) + com.google.cloud.config.v1.GetResourceDriftRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_GetResourceDriftRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_GetResourceDriftRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.GetResourceDriftRequest.class, + com.google.cloud.config.v1.GetResourceDriftRequest.Builder.class); + } + + // Construct using com.google.cloud.config.v1.GetResourceDriftRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_GetResourceDriftRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.config.v1.GetResourceDriftRequest getDefaultInstanceForType() { + return com.google.cloud.config.v1.GetResourceDriftRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.config.v1.GetResourceDriftRequest build() { + com.google.cloud.config.v1.GetResourceDriftRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.config.v1.GetResourceDriftRequest buildPartial() { + com.google.cloud.config.v1.GetResourceDriftRequest result = + new com.google.cloud.config.v1.GetResourceDriftRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.config.v1.GetResourceDriftRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.config.v1.GetResourceDriftRequest) { + return mergeFrom((com.google.cloud.config.v1.GetResourceDriftRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.config.v1.GetResourceDriftRequest other) { + if (other == com.google.cloud.config.v1.GetResourceDriftRequest.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 resource drift to retrieve.
+     * Format:
+     * 'projects/{project_id}/locations/{location}/previews/{preview}/resourceDrifts/{resource_drift}'.
+     * 
+ * + * + * 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 resource drift to retrieve.
+     * Format:
+     * 'projects/{project_id}/locations/{location}/previews/{preview}/resourceDrifts/{resource_drift}'.
+     * 
+ * + * + * 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 resource drift to retrieve.
+     * Format:
+     * 'projects/{project_id}/locations/{location}/previews/{preview}/resourceDrifts/{resource_drift}'.
+     * 
+ * + * + * 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 resource drift to retrieve.
+     * Format:
+     * 'projects/{project_id}/locations/{location}/previews/{preview}/resourceDrifts/{resource_drift}'.
+     * 
+ * + * + * 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 resource drift to retrieve.
+     * Format:
+     * 'projects/{project_id}/locations/{location}/previews/{preview}/resourceDrifts/{resource_drift}'.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.config.v1.GetResourceDriftRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.config.v1.GetResourceDriftRequest) + private static final com.google.cloud.config.v1.GetResourceDriftRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.config.v1.GetResourceDriftRequest(); + } + + public static com.google.cloud.config.v1.GetResourceDriftRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetResourceDriftRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.config.v1.GetResourceDriftRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/GetResourceDriftRequestOrBuilder.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/GetResourceDriftRequestOrBuilder.java new file mode 100644 index 000000000000..f70d44fbab3d --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/GetResourceDriftRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/config/v1/config.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.config.v1; + +public interface GetResourceDriftRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.config.v1.GetResourceDriftRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the resource drift to retrieve.
+   * Format:
+   * 'projects/{project_id}/locations/{location}/previews/{preview}/resourceDrifts/{resource_drift}'.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The name of the resource drift to retrieve.
+   * Format:
+   * 'projects/{project_id}/locations/{location}/previews/{preview}/resourceDrifts/{resource_drift}'.
+   * 
+ * + * + * 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-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListResourceChangesRequest.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListResourceChangesRequest.java new file mode 100644 index 000000000000..fab6d6e831a8 --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListResourceChangesRequest.java @@ -0,0 +1,1440 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/config/v1/config.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.config.v1; + +/** + * + * + *
+ * The request message for the ListResourceChanges method.
+ * 
+ * + * Protobuf type {@code google.cloud.config.v1.ListResourceChangesRequest} + */ +public final class ListResourceChangesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.config.v1.ListResourceChangesRequest) + ListResourceChangesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListResourceChangesRequest.newBuilder() to construct. + private ListResourceChangesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListResourceChangesRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListResourceChangesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ListResourceChangesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ListResourceChangesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.ListResourceChangesRequest.class, + com.google.cloud.config.v1.ListResourceChangesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent in whose context the ResourceChanges are listed. The
+   * parent value is in the format:
+   * 'projects/{project_id}/locations/{location}/previews/{preview}'.
+   * 
+ * + * + * 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 in whose context the ResourceChanges are listed. The
+   * parent value is in the format:
+   * 'projects/{project_id}/locations/{location}/previews/{preview}'.
+   * 
+ * + * + * 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. When requesting a page of resource changes, 'page_size' specifies
+   * number of resource changes to return. If unspecified, at most 500 will be
+   * returned. The maximum value is 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. Token returned by previous call to 'ListResourceChanges' which
+   * specifies the position in the list from where to continue listing the
+   * resource changes.
+   * 
+ * + * 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. Token returned by previous call to 'ListResourceChanges' which
+   * specifies the position in the list from where to continue listing the
+   * resource changes.
+   * 
+ * + * 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; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Optional. Lists the resource changes that match the filter expression. A
+   * filter expression filters the resource changes listed in the response. The
+   * expression must be of the form '{field} {operator} {value}' where
+   * operators: '<', '>',
+   * '<=',
+   * '>=',
+   * '!=', '=', ':' are supported (colon ':' represents a HAS operator which is
+   * roughly synonymous with equality). {field} can refer to a proto or JSON
+   * field, or a synthetic field. Field names can be camelCase or snake_case.
+   *
+   * Examples:
+   * - Filter by name:
+   *   name =
+   *   "projects/foo/locations/us-central1/previews/dep/resourceChanges/baz
+   * 
+ * + * string filter = 4 [(.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. Lists the resource changes that match the filter expression. A
+   * filter expression filters the resource changes listed in the response. The
+   * expression must be of the form '{field} {operator} {value}' where
+   * operators: '<', '>',
+   * '<=',
+   * '>=',
+   * '!=', '=', ':' are supported (colon ':' represents a HAS operator which is
+   * roughly synonymous with equality). {field} can refer to a proto or JSON
+   * field, or a synthetic field. Field names can be camelCase or snake_case.
+   *
+   * Examples:
+   * - Filter by name:
+   *   name =
+   *   "projects/foo/locations/us-central1/previews/dep/resourceChanges/baz
+   * 
+ * + * string filter = 4 [(.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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Optional. Field to use to sort the list.
+   * 
+ * + * 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. Field to use to sort the list.
+   * 
+ * + * 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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.config.v1.ListResourceChangesRequest)) { + return super.equals(obj); + } + com.google.cloud.config.v1.ListResourceChangesRequest other = + (com.google.cloud.config.v1.ListResourceChangesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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 = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.config.v1.ListResourceChangesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.ListResourceChangesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.ListResourceChangesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.ListResourceChangesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.ListResourceChangesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.ListResourceChangesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.ListResourceChangesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.ListResourceChangesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.config.v1.ListResourceChangesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.ListResourceChangesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.config.v1.ListResourceChangesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.ListResourceChangesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.config.v1.ListResourceChangesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The request message for the ListResourceChanges method.
+   * 
+ * + * Protobuf type {@code google.cloud.config.v1.ListResourceChangesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.config.v1.ListResourceChangesRequest) + com.google.cloud.config.v1.ListResourceChangesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ListResourceChangesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ListResourceChangesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.ListResourceChangesRequest.class, + com.google.cloud.config.v1.ListResourceChangesRequest.Builder.class); + } + + // Construct using com.google.cloud.config.v1.ListResourceChangesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ListResourceChangesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.config.v1.ListResourceChangesRequest getDefaultInstanceForType() { + return com.google.cloud.config.v1.ListResourceChangesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.config.v1.ListResourceChangesRequest build() { + com.google.cloud.config.v1.ListResourceChangesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.config.v1.ListResourceChangesRequest buildPartial() { + com.google.cloud.config.v1.ListResourceChangesRequest result = + new com.google.cloud.config.v1.ListResourceChangesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.config.v1.ListResourceChangesRequest 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_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.config.v1.ListResourceChangesRequest) { + return mergeFrom((com.google.cloud.config.v1.ListResourceChangesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.config.v1.ListResourceChangesRequest other) { + if (other == com.google.cloud.config.v1.ListResourceChangesRequest.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(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent in whose context the ResourceChanges are listed. The
+     * parent value is in the format:
+     * 'projects/{project_id}/locations/{location}/previews/{preview}'.
+     * 
+ * + * + * 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 in whose context the ResourceChanges are listed. The
+     * parent value is in the format:
+     * 'projects/{project_id}/locations/{location}/previews/{preview}'.
+     * 
+ * + * + * 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 in whose context the ResourceChanges are listed. The
+     * parent value is in the format:
+     * 'projects/{project_id}/locations/{location}/previews/{preview}'.
+     * 
+ * + * + * 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 in whose context the ResourceChanges are listed. The
+     * parent value is in the format:
+     * 'projects/{project_id}/locations/{location}/previews/{preview}'.
+     * 
+ * + * + * 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 in whose context the ResourceChanges are listed. The
+     * parent value is in the format:
+     * 'projects/{project_id}/locations/{location}/previews/{preview}'.
+     * 
+ * + * + * 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. When requesting a page of resource changes, 'page_size' specifies
+     * number of resource changes to return. If unspecified, at most 500 will be
+     * returned. The maximum value is 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Optional. When requesting a page of resource changes, 'page_size' specifies
+     * number of resource changes to return. If unspecified, at most 500 will be
+     * returned. The maximum value is 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. When requesting a page of resource changes, 'page_size' specifies
+     * number of resource changes to return. If unspecified, at most 500 will be
+     * returned. The maximum value is 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. Token returned by previous call to 'ListResourceChanges' which
+     * specifies the position in the list from where to continue listing the
+     * resource changes.
+     * 
+ * + * 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. Token returned by previous call to 'ListResourceChanges' which
+     * specifies the position in the list from where to continue listing the
+     * resource changes.
+     * 
+ * + * 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. Token returned by previous call to 'ListResourceChanges' which
+     * specifies the position in the list from where to continue listing the
+     * resource changes.
+     * 
+ * + * 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. Token returned by previous call to 'ListResourceChanges' which
+     * specifies the position in the list from where to continue listing the
+     * resource changes.
+     * 
+ * + * 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. Token returned by previous call to 'ListResourceChanges' which
+     * specifies the position in the list from where to continue listing the
+     * resource changes.
+     * 
+ * + * 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; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Optional. Lists the resource changes that match the filter expression. A
+     * filter expression filters the resource changes listed in the response. The
+     * expression must be of the form '{field} {operator} {value}' where
+     * operators: '<', '>',
+     * '<=',
+     * '>=',
+     * '!=', '=', ':' are supported (colon ':' represents a HAS operator which is
+     * roughly synonymous with equality). {field} can refer to a proto or JSON
+     * field, or a synthetic field. Field names can be camelCase or snake_case.
+     *
+     * Examples:
+     * - Filter by name:
+     *   name =
+     *   "projects/foo/locations/us-central1/previews/dep/resourceChanges/baz
+     * 
+ * + * string filter = 4 [(.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. Lists the resource changes that match the filter expression. A
+     * filter expression filters the resource changes listed in the response. The
+     * expression must be of the form '{field} {operator} {value}' where
+     * operators: '<', '>',
+     * '<=',
+     * '>=',
+     * '!=', '=', ':' are supported (colon ':' represents a HAS operator which is
+     * roughly synonymous with equality). {field} can refer to a proto or JSON
+     * field, or a synthetic field. Field names can be camelCase or snake_case.
+     *
+     * Examples:
+     * - Filter by name:
+     *   name =
+     *   "projects/foo/locations/us-central1/previews/dep/resourceChanges/baz
+     * 
+ * + * string filter = 4 [(.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. Lists the resource changes that match the filter expression. A
+     * filter expression filters the resource changes listed in the response. The
+     * expression must be of the form '{field} {operator} {value}' where
+     * operators: '<', '>',
+     * '<=',
+     * '>=',
+     * '!=', '=', ':' are supported (colon ':' represents a HAS operator which is
+     * roughly synonymous with equality). {field} can refer to a proto or JSON
+     * field, or a synthetic field. Field names can be camelCase or snake_case.
+     *
+     * Examples:
+     * - Filter by name:
+     *   name =
+     *   "projects/foo/locations/us-central1/previews/dep/resourceChanges/baz
+     * 
+ * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Lists the resource changes that match the filter expression. A
+     * filter expression filters the resource changes listed in the response. The
+     * expression must be of the form '{field} {operator} {value}' where
+     * operators: '<', '>',
+     * '<=',
+     * '>=',
+     * '!=', '=', ':' are supported (colon ':' represents a HAS operator which is
+     * roughly synonymous with equality). {field} can refer to a proto or JSON
+     * field, or a synthetic field. Field names can be camelCase or snake_case.
+     *
+     * Examples:
+     * - Filter by name:
+     *   name =
+     *   "projects/foo/locations/us-central1/previews/dep/resourceChanges/baz
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Lists the resource changes that match the filter expression. A
+     * filter expression filters the resource changes listed in the response. The
+     * expression must be of the form '{field} {operator} {value}' where
+     * operators: '<', '>',
+     * '<=',
+     * '>=',
+     * '!=', '=', ':' are supported (colon ':' represents a HAS operator which is
+     * roughly synonymous with equality). {field} can refer to a proto or JSON
+     * field, or a synthetic field. Field names can be camelCase or snake_case.
+     *
+     * Examples:
+     * - Filter by name:
+     *   name =
+     *   "projects/foo/locations/us-central1/previews/dep/resourceChanges/baz
+     * 
+ * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Optional. Field to use to sort the list.
+     * 
+ * + * 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. Field to use to sort the list.
+     * 
+ * + * 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. Field to use to sort the list.
+     * 
+ * + * 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. Field to use to sort the list.
+     * 
+ * + * 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. Field to use to sort the list.
+     * 
+ * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.config.v1.ListResourceChangesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.config.v1.ListResourceChangesRequest) + private static final com.google.cloud.config.v1.ListResourceChangesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.config.v1.ListResourceChangesRequest(); + } + + public static com.google.cloud.config.v1.ListResourceChangesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListResourceChangesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.config.v1.ListResourceChangesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListResourceChangesRequestOrBuilder.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListResourceChangesRequestOrBuilder.java new file mode 100644 index 000000000000..65292ee6495e --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListResourceChangesRequestOrBuilder.java @@ -0,0 +1,183 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/config/v1/config.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.config.v1; + +public interface ListResourceChangesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.config.v1.ListResourceChangesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent in whose context the ResourceChanges are listed. The
+   * parent value is in the format:
+   * 'projects/{project_id}/locations/{location}/previews/{preview}'.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent in whose context the ResourceChanges are listed. The
+   * parent value is in the format:
+   * 'projects/{project_id}/locations/{location}/previews/{preview}'.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. When requesting a page of resource changes, 'page_size' specifies
+   * number of resource changes to return. If unspecified, at most 500 will be
+   * returned. The maximum value is 1000.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. Token returned by previous call to 'ListResourceChanges' which
+   * specifies the position in the list from where to continue listing the
+   * resource changes.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. Token returned by previous call to 'ListResourceChanges' which
+   * specifies the position in the list from where to continue listing the
+   * resource changes.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. Lists the resource changes that match the filter expression. A
+   * filter expression filters the resource changes listed in the response. The
+   * expression must be of the form '{field} {operator} {value}' where
+   * operators: '<', '>',
+   * '<=',
+   * '>=',
+   * '!=', '=', ':' are supported (colon ':' represents a HAS operator which is
+   * roughly synonymous with equality). {field} can refer to a proto or JSON
+   * field, or a synthetic field. Field names can be camelCase or snake_case.
+   *
+   * Examples:
+   * - Filter by name:
+   *   name =
+   *   "projects/foo/locations/us-central1/previews/dep/resourceChanges/baz
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. Lists the resource changes that match the filter expression. A
+   * filter expression filters the resource changes listed in the response. The
+   * expression must be of the form '{field} {operator} {value}' where
+   * operators: '<', '>',
+   * '<=',
+   * '>=',
+   * '!=', '=', ':' are supported (colon ':' represents a HAS operator which is
+   * roughly synonymous with equality). {field} can refer to a proto or JSON
+   * field, or a synthetic field. Field names can be camelCase or snake_case.
+   *
+   * Examples:
+   * - Filter by name:
+   *   name =
+   *   "projects/foo/locations/us-central1/previews/dep/resourceChanges/baz
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. Field to use to sort the list.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Optional. Field to use to sort the list.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListResourceChangesResponse.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListResourceChangesResponse.java new file mode 100644 index 000000000000..f249db90a29a --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListResourceChangesResponse.java @@ -0,0 +1,1462 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/config/v1/config.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.config.v1; + +/** + * + * + *
+ * A response to a 'ListResourceChanges' call. Contains a list of
+ * ResourceChanges.
+ * 
+ * + * Protobuf type {@code google.cloud.config.v1.ListResourceChangesResponse} + */ +public final class ListResourceChangesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.config.v1.ListResourceChangesResponse) + ListResourceChangesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListResourceChangesResponse.newBuilder() to construct. + private ListResourceChangesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListResourceChangesResponse() { + resourceChanges_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListResourceChangesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ListResourceChangesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ListResourceChangesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.ListResourceChangesResponse.class, + com.google.cloud.config.v1.ListResourceChangesResponse.Builder.class); + } + + public static final int RESOURCE_CHANGES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List resourceChanges_; + + /** + * + * + *
+   * List of ResourceChanges.
+   * 
+ * + * repeated .google.cloud.config.v1.ResourceChange resource_changes = 1; + */ + @java.lang.Override + public java.util.List getResourceChangesList() { + return resourceChanges_; + } + + /** + * + * + *
+   * List of ResourceChanges.
+   * 
+ * + * repeated .google.cloud.config.v1.ResourceChange resource_changes = 1; + */ + @java.lang.Override + public java.util.List + getResourceChangesOrBuilderList() { + return resourceChanges_; + } + + /** + * + * + *
+   * List of ResourceChanges.
+   * 
+ * + * repeated .google.cloud.config.v1.ResourceChange resource_changes = 1; + */ + @java.lang.Override + public int getResourceChangesCount() { + return resourceChanges_.size(); + } + + /** + * + * + *
+   * List of ResourceChanges.
+   * 
+ * + * repeated .google.cloud.config.v1.ResourceChange resource_changes = 1; + */ + @java.lang.Override + public com.google.cloud.config.v1.ResourceChange getResourceChanges(int index) { + return resourceChanges_.get(index); + } + + /** + * + * + *
+   * List of ResourceChanges.
+   * 
+ * + * repeated .google.cloud.config.v1.ResourceChange resource_changes = 1; + */ + @java.lang.Override + public com.google.cloud.config.v1.ResourceChangeOrBuilder getResourceChangesOrBuilder(int index) { + return resourceChanges_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token to request the next page of resources from the
+   * 'ListResourceChanges' method. The value of an empty string means that
+   *  there are no more resources to return.
+   * 
+ * + * 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 to request the next page of resources from the
+   * 'ListResourceChanges' method. The value of an empty string means that
+   *  there are no more resources to return.
+   * 
+ * + * 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; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Unreachable resources, if any.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
+   * Unreachable resources, if any.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+   * Unreachable resources, if any.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+   * Unreachable resources, if any.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.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 < resourceChanges_.size(); i++) { + output.writeMessage(1, resourceChanges_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(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 < resourceChanges_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, resourceChanges_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().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.cloud.config.v1.ListResourceChangesResponse)) { + return super.equals(obj); + } + com.google.cloud.config.v1.ListResourceChangesResponse other = + (com.google.cloud.config.v1.ListResourceChangesResponse) obj; + + if (!getResourceChangesList().equals(other.getResourceChangesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getResourceChangesCount() > 0) { + hash = (37 * hash) + RESOURCE_CHANGES_FIELD_NUMBER; + hash = (53 * hash) + getResourceChangesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.config.v1.ListResourceChangesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.ListResourceChangesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.ListResourceChangesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.ListResourceChangesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.ListResourceChangesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.ListResourceChangesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.ListResourceChangesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.ListResourceChangesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.config.v1.ListResourceChangesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.ListResourceChangesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.config.v1.ListResourceChangesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.ListResourceChangesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.config.v1.ListResourceChangesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A response to a 'ListResourceChanges' call. Contains a list of
+   * ResourceChanges.
+   * 
+ * + * Protobuf type {@code google.cloud.config.v1.ListResourceChangesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.config.v1.ListResourceChangesResponse) + com.google.cloud.config.v1.ListResourceChangesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ListResourceChangesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ListResourceChangesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.ListResourceChangesResponse.class, + com.google.cloud.config.v1.ListResourceChangesResponse.Builder.class); + } + + // Construct using com.google.cloud.config.v1.ListResourceChangesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (resourceChangesBuilder_ == null) { + resourceChanges_ = java.util.Collections.emptyList(); + } else { + resourceChanges_ = null; + resourceChangesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ListResourceChangesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.config.v1.ListResourceChangesResponse getDefaultInstanceForType() { + return com.google.cloud.config.v1.ListResourceChangesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.config.v1.ListResourceChangesResponse build() { + com.google.cloud.config.v1.ListResourceChangesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.config.v1.ListResourceChangesResponse buildPartial() { + com.google.cloud.config.v1.ListResourceChangesResponse result = + new com.google.cloud.config.v1.ListResourceChangesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.config.v1.ListResourceChangesResponse result) { + if (resourceChangesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + resourceChanges_ = java.util.Collections.unmodifiableList(resourceChanges_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.resourceChanges_ = resourceChanges_; + } else { + result.resourceChanges_ = resourceChangesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.config.v1.ListResourceChangesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.config.v1.ListResourceChangesResponse) { + return mergeFrom((com.google.cloud.config.v1.ListResourceChangesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.config.v1.ListResourceChangesResponse other) { + if (other == com.google.cloud.config.v1.ListResourceChangesResponse.getDefaultInstance()) + return this; + if (resourceChangesBuilder_ == null) { + if (!other.resourceChanges_.isEmpty()) { + if (resourceChanges_.isEmpty()) { + resourceChanges_ = other.resourceChanges_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureResourceChangesIsMutable(); + resourceChanges_.addAll(other.resourceChanges_); + } + onChanged(); + } + } else { + if (!other.resourceChanges_.isEmpty()) { + if (resourceChangesBuilder_.isEmpty()) { + resourceChangesBuilder_.dispose(); + resourceChangesBuilder_ = null; + resourceChanges_ = other.resourceChanges_; + bitField0_ = (bitField0_ & ~0x00000001); + resourceChangesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getResourceChangesFieldBuilder() + : null; + } else { + resourceChangesBuilder_.addAllMessages(other.resourceChanges_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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.cloud.config.v1.ResourceChange m = + input.readMessage( + com.google.cloud.config.v1.ResourceChange.parser(), extensionRegistry); + if (resourceChangesBuilder_ == null) { + ensureResourceChangesIsMutable(); + resourceChanges_.add(m); + } else { + resourceChangesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List resourceChanges_ = + java.util.Collections.emptyList(); + + private void ensureResourceChangesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + resourceChanges_ = + new java.util.ArrayList(resourceChanges_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.config.v1.ResourceChange, + com.google.cloud.config.v1.ResourceChange.Builder, + com.google.cloud.config.v1.ResourceChangeOrBuilder> + resourceChangesBuilder_; + + /** + * + * + *
+     * List of ResourceChanges.
+     * 
+ * + * repeated .google.cloud.config.v1.ResourceChange resource_changes = 1; + */ + public java.util.List getResourceChangesList() { + if (resourceChangesBuilder_ == null) { + return java.util.Collections.unmodifiableList(resourceChanges_); + } else { + return resourceChangesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * List of ResourceChanges.
+     * 
+ * + * repeated .google.cloud.config.v1.ResourceChange resource_changes = 1; + */ + public int getResourceChangesCount() { + if (resourceChangesBuilder_ == null) { + return resourceChanges_.size(); + } else { + return resourceChangesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * List of ResourceChanges.
+     * 
+ * + * repeated .google.cloud.config.v1.ResourceChange resource_changes = 1; + */ + public com.google.cloud.config.v1.ResourceChange getResourceChanges(int index) { + if (resourceChangesBuilder_ == null) { + return resourceChanges_.get(index); + } else { + return resourceChangesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * List of ResourceChanges.
+     * 
+ * + * repeated .google.cloud.config.v1.ResourceChange resource_changes = 1; + */ + public Builder setResourceChanges(int index, com.google.cloud.config.v1.ResourceChange value) { + if (resourceChangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceChangesIsMutable(); + resourceChanges_.set(index, value); + onChanged(); + } else { + resourceChangesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * List of ResourceChanges.
+     * 
+ * + * repeated .google.cloud.config.v1.ResourceChange resource_changes = 1; + */ + public Builder setResourceChanges( + int index, com.google.cloud.config.v1.ResourceChange.Builder builderForValue) { + if (resourceChangesBuilder_ == null) { + ensureResourceChangesIsMutable(); + resourceChanges_.set(index, builderForValue.build()); + onChanged(); + } else { + resourceChangesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * List of ResourceChanges.
+     * 
+ * + * repeated .google.cloud.config.v1.ResourceChange resource_changes = 1; + */ + public Builder addResourceChanges(com.google.cloud.config.v1.ResourceChange value) { + if (resourceChangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceChangesIsMutable(); + resourceChanges_.add(value); + onChanged(); + } else { + resourceChangesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * List of ResourceChanges.
+     * 
+ * + * repeated .google.cloud.config.v1.ResourceChange resource_changes = 1; + */ + public Builder addResourceChanges(int index, com.google.cloud.config.v1.ResourceChange value) { + if (resourceChangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceChangesIsMutable(); + resourceChanges_.add(index, value); + onChanged(); + } else { + resourceChangesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * List of ResourceChanges.
+     * 
+ * + * repeated .google.cloud.config.v1.ResourceChange resource_changes = 1; + */ + public Builder addResourceChanges( + com.google.cloud.config.v1.ResourceChange.Builder builderForValue) { + if (resourceChangesBuilder_ == null) { + ensureResourceChangesIsMutable(); + resourceChanges_.add(builderForValue.build()); + onChanged(); + } else { + resourceChangesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * List of ResourceChanges.
+     * 
+ * + * repeated .google.cloud.config.v1.ResourceChange resource_changes = 1; + */ + public Builder addResourceChanges( + int index, com.google.cloud.config.v1.ResourceChange.Builder builderForValue) { + if (resourceChangesBuilder_ == null) { + ensureResourceChangesIsMutable(); + resourceChanges_.add(index, builderForValue.build()); + onChanged(); + } else { + resourceChangesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * List of ResourceChanges.
+     * 
+ * + * repeated .google.cloud.config.v1.ResourceChange resource_changes = 1; + */ + public Builder addAllResourceChanges( + java.lang.Iterable values) { + if (resourceChangesBuilder_ == null) { + ensureResourceChangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceChanges_); + onChanged(); + } else { + resourceChangesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * List of ResourceChanges.
+     * 
+ * + * repeated .google.cloud.config.v1.ResourceChange resource_changes = 1; + */ + public Builder clearResourceChanges() { + if (resourceChangesBuilder_ == null) { + resourceChanges_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + resourceChangesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * List of ResourceChanges.
+     * 
+ * + * repeated .google.cloud.config.v1.ResourceChange resource_changes = 1; + */ + public Builder removeResourceChanges(int index) { + if (resourceChangesBuilder_ == null) { + ensureResourceChangesIsMutable(); + resourceChanges_.remove(index); + onChanged(); + } else { + resourceChangesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * List of ResourceChanges.
+     * 
+ * + * repeated .google.cloud.config.v1.ResourceChange resource_changes = 1; + */ + public com.google.cloud.config.v1.ResourceChange.Builder getResourceChangesBuilder(int index) { + return getResourceChangesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * List of ResourceChanges.
+     * 
+ * + * repeated .google.cloud.config.v1.ResourceChange resource_changes = 1; + */ + public com.google.cloud.config.v1.ResourceChangeOrBuilder getResourceChangesOrBuilder( + int index) { + if (resourceChangesBuilder_ == null) { + return resourceChanges_.get(index); + } else { + return resourceChangesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * List of ResourceChanges.
+     * 
+ * + * repeated .google.cloud.config.v1.ResourceChange resource_changes = 1; + */ + public java.util.List + getResourceChangesOrBuilderList() { + if (resourceChangesBuilder_ != null) { + return resourceChangesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(resourceChanges_); + } + } + + /** + * + * + *
+     * List of ResourceChanges.
+     * 
+ * + * repeated .google.cloud.config.v1.ResourceChange resource_changes = 1; + */ + public com.google.cloud.config.v1.ResourceChange.Builder addResourceChangesBuilder() { + return getResourceChangesFieldBuilder() + .addBuilder(com.google.cloud.config.v1.ResourceChange.getDefaultInstance()); + } + + /** + * + * + *
+     * List of ResourceChanges.
+     * 
+ * + * repeated .google.cloud.config.v1.ResourceChange resource_changes = 1; + */ + public com.google.cloud.config.v1.ResourceChange.Builder addResourceChangesBuilder(int index) { + return getResourceChangesFieldBuilder() + .addBuilder(index, com.google.cloud.config.v1.ResourceChange.getDefaultInstance()); + } + + /** + * + * + *
+     * List of ResourceChanges.
+     * 
+ * + * repeated .google.cloud.config.v1.ResourceChange resource_changes = 1; + */ + public java.util.List + getResourceChangesBuilderList() { + return getResourceChangesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.config.v1.ResourceChange, + com.google.cloud.config.v1.ResourceChange.Builder, + com.google.cloud.config.v1.ResourceChangeOrBuilder> + getResourceChangesFieldBuilder() { + if (resourceChangesBuilder_ == null) { + resourceChangesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.config.v1.ResourceChange, + com.google.cloud.config.v1.ResourceChange.Builder, + com.google.cloud.config.v1.ResourceChangeOrBuilder>( + resourceChanges_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + resourceChanges_ = null; + } + return resourceChangesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token to request the next page of resources from the
+     * 'ListResourceChanges' method. The value of an empty string means that
+     *  there are no more resources to return.
+     * 
+ * + * 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 to request the next page of resources from the
+     * 'ListResourceChanges' method. The value of an empty string means that
+     *  there are no more resources to return.
+     * 
+ * + * 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 to request the next page of resources from the
+     * 'ListResourceChanges' method. The value of an empty string means that
+     *  there are no more resources to return.
+     * 
+ * + * 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 to request the next page of resources from the
+     * 'ListResourceChanges' method. The value of an empty string means that
+     *  there are no more resources to return.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token to request the next page of resources from the
+     * 'ListResourceChanges' method. The value of an empty string means that
+     *  there are no more resources to return.
+     * 
+ * + * 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; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
+     * Unreachable resources, if any.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
+     * Unreachable resources, if any.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+     * Unreachable resources, if any.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+     * Unreachable resources, if any.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + /** + * + * + *
+     * Unreachable resources, if any.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unreachable resources, if any.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unreachable resources, if any.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unreachable resources, if any.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unreachable resources, if any.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.config.v1.ListResourceChangesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.config.v1.ListResourceChangesResponse) + private static final com.google.cloud.config.v1.ListResourceChangesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.config.v1.ListResourceChangesResponse(); + } + + public static com.google.cloud.config.v1.ListResourceChangesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListResourceChangesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.config.v1.ListResourceChangesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListResourceChangesResponseOrBuilder.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListResourceChangesResponseOrBuilder.java new file mode 100644 index 000000000000..b754e8489d5a --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListResourceChangesResponseOrBuilder.java @@ -0,0 +1,166 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/config/v1/config.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.config.v1; + +public interface ListResourceChangesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.config.v1.ListResourceChangesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of ResourceChanges.
+   * 
+ * + * repeated .google.cloud.config.v1.ResourceChange resource_changes = 1; + */ + java.util.List getResourceChangesList(); + + /** + * + * + *
+   * List of ResourceChanges.
+   * 
+ * + * repeated .google.cloud.config.v1.ResourceChange resource_changes = 1; + */ + com.google.cloud.config.v1.ResourceChange getResourceChanges(int index); + + /** + * + * + *
+   * List of ResourceChanges.
+   * 
+ * + * repeated .google.cloud.config.v1.ResourceChange resource_changes = 1; + */ + int getResourceChangesCount(); + + /** + * + * + *
+   * List of ResourceChanges.
+   * 
+ * + * repeated .google.cloud.config.v1.ResourceChange resource_changes = 1; + */ + java.util.List + getResourceChangesOrBuilderList(); + + /** + * + * + *
+   * List of ResourceChanges.
+   * 
+ * + * repeated .google.cloud.config.v1.ResourceChange resource_changes = 1; + */ + com.google.cloud.config.v1.ResourceChangeOrBuilder getResourceChangesOrBuilder(int index); + + /** + * + * + *
+   * A token to request the next page of resources from the
+   * 'ListResourceChanges' method. The value of an empty string means that
+   *  there are no more resources to return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token to request the next page of resources from the
+   * 'ListResourceChanges' method. The value of an empty string means that
+   *  there are no more resources to return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Unreachable resources, if any.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
+   * Unreachable resources, if any.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
+   * Unreachable resources, if any.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
+   * Unreachable resources, if any.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListResourceDriftsRequest.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListResourceDriftsRequest.java new file mode 100644 index 000000000000..07db6183eb79 --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListResourceDriftsRequest.java @@ -0,0 +1,1439 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/config/v1/config.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.config.v1; + +/** + * + * + *
+ * The request message for the ListResourceDrifts method.
+ * 
+ * + * Protobuf type {@code google.cloud.config.v1.ListResourceDriftsRequest} + */ +public final class ListResourceDriftsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.config.v1.ListResourceDriftsRequest) + ListResourceDriftsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListResourceDriftsRequest.newBuilder() to construct. + private ListResourceDriftsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListResourceDriftsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListResourceDriftsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ListResourceDriftsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ListResourceDriftsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.ListResourceDriftsRequest.class, + com.google.cloud.config.v1.ListResourceDriftsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent in whose context the ResourceDrifts are listed. The
+   * parent value is in the format:
+   * 'projects/{project_id}/locations/{location}/previews/{preview}'.
+   * 
+ * + * + * 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 in whose context the ResourceDrifts are listed. The
+   * parent value is in the format:
+   * 'projects/{project_id}/locations/{location}/previews/{preview}'.
+   * 
+ * + * + * 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. When requesting a page of resource drifts, 'page_size' specifies
+   * number of resource drifts to return. If unspecified, at most 500 will be
+   * returned. The maximum value is 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. Token returned by previous call to 'ListResourceDrifts' which
+   * specifies the position in the list from where to continue listing the
+   * resource drifts.
+   * 
+ * + * 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. Token returned by previous call to 'ListResourceDrifts' which
+   * specifies the position in the list from where to continue listing the
+   * resource drifts.
+   * 
+ * + * 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; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Optional. Lists the resource drifts that match the filter expression. A
+   * filter expression filters the resource drifts listed in the response. The
+   * expression must be of the form '{field} {operator} {value}' where
+   * operators: '<', '>',
+   * '<=',
+   * '>=',
+   * '!=', '=', ':' are supported (colon ':' represents a HAS operator which is
+   * roughly synonymous with equality). {field} can refer to a proto or JSON
+   * field, or a synthetic field. Field names can be camelCase or snake_case.
+   *
+   * Examples:
+   * - Filter by name:
+   *   name =
+   *   "projects/foo/locations/us-central1/previews/dep/resourceDrifts/baz
+   * 
+ * + * string filter = 4 [(.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. Lists the resource drifts that match the filter expression. A
+   * filter expression filters the resource drifts listed in the response. The
+   * expression must be of the form '{field} {operator} {value}' where
+   * operators: '<', '>',
+   * '<=',
+   * '>=',
+   * '!=', '=', ':' are supported (colon ':' represents a HAS operator which is
+   * roughly synonymous with equality). {field} can refer to a proto or JSON
+   * field, or a synthetic field. Field names can be camelCase or snake_case.
+   *
+   * Examples:
+   * - Filter by name:
+   *   name =
+   *   "projects/foo/locations/us-central1/previews/dep/resourceDrifts/baz
+   * 
+ * + * string filter = 4 [(.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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Optional. Field to use to sort the list.
+   * 
+ * + * 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. Field to use to sort the list.
+   * 
+ * + * 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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.config.v1.ListResourceDriftsRequest)) { + return super.equals(obj); + } + com.google.cloud.config.v1.ListResourceDriftsRequest other = + (com.google.cloud.config.v1.ListResourceDriftsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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 = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.config.v1.ListResourceDriftsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.ListResourceDriftsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.ListResourceDriftsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.ListResourceDriftsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.ListResourceDriftsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.ListResourceDriftsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.ListResourceDriftsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.ListResourceDriftsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.config.v1.ListResourceDriftsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.ListResourceDriftsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.config.v1.ListResourceDriftsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.ListResourceDriftsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.config.v1.ListResourceDriftsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The request message for the ListResourceDrifts method.
+   * 
+ * + * Protobuf type {@code google.cloud.config.v1.ListResourceDriftsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.config.v1.ListResourceDriftsRequest) + com.google.cloud.config.v1.ListResourceDriftsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ListResourceDriftsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ListResourceDriftsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.ListResourceDriftsRequest.class, + com.google.cloud.config.v1.ListResourceDriftsRequest.Builder.class); + } + + // Construct using com.google.cloud.config.v1.ListResourceDriftsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ListResourceDriftsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.config.v1.ListResourceDriftsRequest getDefaultInstanceForType() { + return com.google.cloud.config.v1.ListResourceDriftsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.config.v1.ListResourceDriftsRequest build() { + com.google.cloud.config.v1.ListResourceDriftsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.config.v1.ListResourceDriftsRequest buildPartial() { + com.google.cloud.config.v1.ListResourceDriftsRequest result = + new com.google.cloud.config.v1.ListResourceDriftsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.config.v1.ListResourceDriftsRequest 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_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.config.v1.ListResourceDriftsRequest) { + return mergeFrom((com.google.cloud.config.v1.ListResourceDriftsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.config.v1.ListResourceDriftsRequest other) { + if (other == com.google.cloud.config.v1.ListResourceDriftsRequest.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(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent in whose context the ResourceDrifts are listed. The
+     * parent value is in the format:
+     * 'projects/{project_id}/locations/{location}/previews/{preview}'.
+     * 
+ * + * + * 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 in whose context the ResourceDrifts are listed. The
+     * parent value is in the format:
+     * 'projects/{project_id}/locations/{location}/previews/{preview}'.
+     * 
+ * + * + * 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 in whose context the ResourceDrifts are listed. The
+     * parent value is in the format:
+     * 'projects/{project_id}/locations/{location}/previews/{preview}'.
+     * 
+ * + * + * 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 in whose context the ResourceDrifts are listed. The
+     * parent value is in the format:
+     * 'projects/{project_id}/locations/{location}/previews/{preview}'.
+     * 
+ * + * + * 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 in whose context the ResourceDrifts are listed. The
+     * parent value is in the format:
+     * 'projects/{project_id}/locations/{location}/previews/{preview}'.
+     * 
+ * + * + * 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. When requesting a page of resource drifts, 'page_size' specifies
+     * number of resource drifts to return. If unspecified, at most 500 will be
+     * returned. The maximum value is 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Optional. When requesting a page of resource drifts, 'page_size' specifies
+     * number of resource drifts to return. If unspecified, at most 500 will be
+     * returned. The maximum value is 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. When requesting a page of resource drifts, 'page_size' specifies
+     * number of resource drifts to return. If unspecified, at most 500 will be
+     * returned. The maximum value is 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. Token returned by previous call to 'ListResourceDrifts' which
+     * specifies the position in the list from where to continue listing the
+     * resource drifts.
+     * 
+ * + * 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. Token returned by previous call to 'ListResourceDrifts' which
+     * specifies the position in the list from where to continue listing the
+     * resource drifts.
+     * 
+ * + * 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. Token returned by previous call to 'ListResourceDrifts' which
+     * specifies the position in the list from where to continue listing the
+     * resource drifts.
+     * 
+ * + * 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. Token returned by previous call to 'ListResourceDrifts' which
+     * specifies the position in the list from where to continue listing the
+     * resource drifts.
+     * 
+ * + * 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. Token returned by previous call to 'ListResourceDrifts' which
+     * specifies the position in the list from where to continue listing the
+     * resource drifts.
+     * 
+ * + * 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; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Optional. Lists the resource drifts that match the filter expression. A
+     * filter expression filters the resource drifts listed in the response. The
+     * expression must be of the form '{field} {operator} {value}' where
+     * operators: '<', '>',
+     * '<=',
+     * '>=',
+     * '!=', '=', ':' are supported (colon ':' represents a HAS operator which is
+     * roughly synonymous with equality). {field} can refer to a proto or JSON
+     * field, or a synthetic field. Field names can be camelCase or snake_case.
+     *
+     * Examples:
+     * - Filter by name:
+     *   name =
+     *   "projects/foo/locations/us-central1/previews/dep/resourceDrifts/baz
+     * 
+ * + * string filter = 4 [(.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. Lists the resource drifts that match the filter expression. A
+     * filter expression filters the resource drifts listed in the response. The
+     * expression must be of the form '{field} {operator} {value}' where
+     * operators: '<', '>',
+     * '<=',
+     * '>=',
+     * '!=', '=', ':' are supported (colon ':' represents a HAS operator which is
+     * roughly synonymous with equality). {field} can refer to a proto or JSON
+     * field, or a synthetic field. Field names can be camelCase or snake_case.
+     *
+     * Examples:
+     * - Filter by name:
+     *   name =
+     *   "projects/foo/locations/us-central1/previews/dep/resourceDrifts/baz
+     * 
+ * + * string filter = 4 [(.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. Lists the resource drifts that match the filter expression. A
+     * filter expression filters the resource drifts listed in the response. The
+     * expression must be of the form '{field} {operator} {value}' where
+     * operators: '<', '>',
+     * '<=',
+     * '>=',
+     * '!=', '=', ':' are supported (colon ':' represents a HAS operator which is
+     * roughly synonymous with equality). {field} can refer to a proto or JSON
+     * field, or a synthetic field. Field names can be camelCase or snake_case.
+     *
+     * Examples:
+     * - Filter by name:
+     *   name =
+     *   "projects/foo/locations/us-central1/previews/dep/resourceDrifts/baz
+     * 
+ * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Lists the resource drifts that match the filter expression. A
+     * filter expression filters the resource drifts listed in the response. The
+     * expression must be of the form '{field} {operator} {value}' where
+     * operators: '<', '>',
+     * '<=',
+     * '>=',
+     * '!=', '=', ':' are supported (colon ':' represents a HAS operator which is
+     * roughly synonymous with equality). {field} can refer to a proto or JSON
+     * field, or a synthetic field. Field names can be camelCase or snake_case.
+     *
+     * Examples:
+     * - Filter by name:
+     *   name =
+     *   "projects/foo/locations/us-central1/previews/dep/resourceDrifts/baz
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Lists the resource drifts that match the filter expression. A
+     * filter expression filters the resource drifts listed in the response. The
+     * expression must be of the form '{field} {operator} {value}' where
+     * operators: '<', '>',
+     * '<=',
+     * '>=',
+     * '!=', '=', ':' are supported (colon ':' represents a HAS operator which is
+     * roughly synonymous with equality). {field} can refer to a proto or JSON
+     * field, or a synthetic field. Field names can be camelCase or snake_case.
+     *
+     * Examples:
+     * - Filter by name:
+     *   name =
+     *   "projects/foo/locations/us-central1/previews/dep/resourceDrifts/baz
+     * 
+ * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Optional. Field to use to sort the list.
+     * 
+ * + * 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. Field to use to sort the list.
+     * 
+ * + * 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. Field to use to sort the list.
+     * 
+ * + * 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. Field to use to sort the list.
+     * 
+ * + * 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. Field to use to sort the list.
+     * 
+ * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.config.v1.ListResourceDriftsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.config.v1.ListResourceDriftsRequest) + private static final com.google.cloud.config.v1.ListResourceDriftsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.config.v1.ListResourceDriftsRequest(); + } + + public static com.google.cloud.config.v1.ListResourceDriftsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListResourceDriftsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.config.v1.ListResourceDriftsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListResourceDriftsRequestOrBuilder.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListResourceDriftsRequestOrBuilder.java new file mode 100644 index 000000000000..0db4bbd0a783 --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListResourceDriftsRequestOrBuilder.java @@ -0,0 +1,183 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/config/v1/config.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.config.v1; + +public interface ListResourceDriftsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.config.v1.ListResourceDriftsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent in whose context the ResourceDrifts are listed. The
+   * parent value is in the format:
+   * 'projects/{project_id}/locations/{location}/previews/{preview}'.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent in whose context the ResourceDrifts are listed. The
+   * parent value is in the format:
+   * 'projects/{project_id}/locations/{location}/previews/{preview}'.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. When requesting a page of resource drifts, 'page_size' specifies
+   * number of resource drifts to return. If unspecified, at most 500 will be
+   * returned. The maximum value is 1000.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. Token returned by previous call to 'ListResourceDrifts' which
+   * specifies the position in the list from where to continue listing the
+   * resource drifts.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. Token returned by previous call to 'ListResourceDrifts' which
+   * specifies the position in the list from where to continue listing the
+   * resource drifts.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. Lists the resource drifts that match the filter expression. A
+   * filter expression filters the resource drifts listed in the response. The
+   * expression must be of the form '{field} {operator} {value}' where
+   * operators: '<', '>',
+   * '<=',
+   * '>=',
+   * '!=', '=', ':' are supported (colon ':' represents a HAS operator which is
+   * roughly synonymous with equality). {field} can refer to a proto or JSON
+   * field, or a synthetic field. Field names can be camelCase or snake_case.
+   *
+   * Examples:
+   * - Filter by name:
+   *   name =
+   *   "projects/foo/locations/us-central1/previews/dep/resourceDrifts/baz
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. Lists the resource drifts that match the filter expression. A
+   * filter expression filters the resource drifts listed in the response. The
+   * expression must be of the form '{field} {operator} {value}' where
+   * operators: '<', '>',
+   * '<=',
+   * '>=',
+   * '!=', '=', ':' are supported (colon ':' represents a HAS operator which is
+   * roughly synonymous with equality). {field} can refer to a proto or JSON
+   * field, or a synthetic field. Field names can be camelCase or snake_case.
+   *
+   * Examples:
+   * - Filter by name:
+   *   name =
+   *   "projects/foo/locations/us-central1/previews/dep/resourceDrifts/baz
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. Field to use to sort the list.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Optional. Field to use to sort the list.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListResourceDriftsResponse.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListResourceDriftsResponse.java new file mode 100644 index 000000000000..6fdf72a230ad --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListResourceDriftsResponse.java @@ -0,0 +1,1459 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/config/v1/config.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.config.v1; + +/** + * + * + *
+ * A response to a 'ListResourceDrifts' call. Contains a list of ResourceDrifts.
+ * 
+ * + * Protobuf type {@code google.cloud.config.v1.ListResourceDriftsResponse} + */ +public final class ListResourceDriftsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.config.v1.ListResourceDriftsResponse) + ListResourceDriftsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListResourceDriftsResponse.newBuilder() to construct. + private ListResourceDriftsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListResourceDriftsResponse() { + resourceDrifts_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListResourceDriftsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ListResourceDriftsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ListResourceDriftsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.ListResourceDriftsResponse.class, + com.google.cloud.config.v1.ListResourceDriftsResponse.Builder.class); + } + + public static final int RESOURCE_DRIFTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List resourceDrifts_; + + /** + * + * + *
+   * List of ResourceDrifts.
+   * 
+ * + * repeated .google.cloud.config.v1.ResourceDrift resource_drifts = 1; + */ + @java.lang.Override + public java.util.List getResourceDriftsList() { + return resourceDrifts_; + } + + /** + * + * + *
+   * List of ResourceDrifts.
+   * 
+ * + * repeated .google.cloud.config.v1.ResourceDrift resource_drifts = 1; + */ + @java.lang.Override + public java.util.List + getResourceDriftsOrBuilderList() { + return resourceDrifts_; + } + + /** + * + * + *
+   * List of ResourceDrifts.
+   * 
+ * + * repeated .google.cloud.config.v1.ResourceDrift resource_drifts = 1; + */ + @java.lang.Override + public int getResourceDriftsCount() { + return resourceDrifts_.size(); + } + + /** + * + * + *
+   * List of ResourceDrifts.
+   * 
+ * + * repeated .google.cloud.config.v1.ResourceDrift resource_drifts = 1; + */ + @java.lang.Override + public com.google.cloud.config.v1.ResourceDrift getResourceDrifts(int index) { + return resourceDrifts_.get(index); + } + + /** + * + * + *
+   * List of ResourceDrifts.
+   * 
+ * + * repeated .google.cloud.config.v1.ResourceDrift resource_drifts = 1; + */ + @java.lang.Override + public com.google.cloud.config.v1.ResourceDriftOrBuilder getResourceDriftsOrBuilder(int index) { + return resourceDrifts_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token to request the next page of resources from the
+   * 'ListResourceDrifts' method. The value of an empty string means that
+   * there are no more resources to return.
+   * 
+ * + * 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 to request the next page of resources from the
+   * 'ListResourceDrifts' method. The value of an empty string means that
+   * there are no more resources to return.
+   * 
+ * + * 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; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Unreachable resources, if any.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
+   * Unreachable resources, if any.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+   * Unreachable resources, if any.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+   * Unreachable resources, if any.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.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 < resourceDrifts_.size(); i++) { + output.writeMessage(1, resourceDrifts_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(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 < resourceDrifts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, resourceDrifts_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().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.cloud.config.v1.ListResourceDriftsResponse)) { + return super.equals(obj); + } + com.google.cloud.config.v1.ListResourceDriftsResponse other = + (com.google.cloud.config.v1.ListResourceDriftsResponse) obj; + + if (!getResourceDriftsList().equals(other.getResourceDriftsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getResourceDriftsCount() > 0) { + hash = (37 * hash) + RESOURCE_DRIFTS_FIELD_NUMBER; + hash = (53 * hash) + getResourceDriftsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.config.v1.ListResourceDriftsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.ListResourceDriftsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.ListResourceDriftsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.ListResourceDriftsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.ListResourceDriftsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.ListResourceDriftsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.ListResourceDriftsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.ListResourceDriftsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.config.v1.ListResourceDriftsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.ListResourceDriftsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.config.v1.ListResourceDriftsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.ListResourceDriftsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.config.v1.ListResourceDriftsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A response to a 'ListResourceDrifts' call. Contains a list of ResourceDrifts.
+   * 
+ * + * Protobuf type {@code google.cloud.config.v1.ListResourceDriftsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.config.v1.ListResourceDriftsResponse) + com.google.cloud.config.v1.ListResourceDriftsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ListResourceDriftsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ListResourceDriftsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.ListResourceDriftsResponse.class, + com.google.cloud.config.v1.ListResourceDriftsResponse.Builder.class); + } + + // Construct using com.google.cloud.config.v1.ListResourceDriftsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (resourceDriftsBuilder_ == null) { + resourceDrifts_ = java.util.Collections.emptyList(); + } else { + resourceDrifts_ = null; + resourceDriftsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ListResourceDriftsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.config.v1.ListResourceDriftsResponse getDefaultInstanceForType() { + return com.google.cloud.config.v1.ListResourceDriftsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.config.v1.ListResourceDriftsResponse build() { + com.google.cloud.config.v1.ListResourceDriftsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.config.v1.ListResourceDriftsResponse buildPartial() { + com.google.cloud.config.v1.ListResourceDriftsResponse result = + new com.google.cloud.config.v1.ListResourceDriftsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.config.v1.ListResourceDriftsResponse result) { + if (resourceDriftsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + resourceDrifts_ = java.util.Collections.unmodifiableList(resourceDrifts_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.resourceDrifts_ = resourceDrifts_; + } else { + result.resourceDrifts_ = resourceDriftsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.config.v1.ListResourceDriftsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.config.v1.ListResourceDriftsResponse) { + return mergeFrom((com.google.cloud.config.v1.ListResourceDriftsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.config.v1.ListResourceDriftsResponse other) { + if (other == com.google.cloud.config.v1.ListResourceDriftsResponse.getDefaultInstance()) + return this; + if (resourceDriftsBuilder_ == null) { + if (!other.resourceDrifts_.isEmpty()) { + if (resourceDrifts_.isEmpty()) { + resourceDrifts_ = other.resourceDrifts_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureResourceDriftsIsMutable(); + resourceDrifts_.addAll(other.resourceDrifts_); + } + onChanged(); + } + } else { + if (!other.resourceDrifts_.isEmpty()) { + if (resourceDriftsBuilder_.isEmpty()) { + resourceDriftsBuilder_.dispose(); + resourceDriftsBuilder_ = null; + resourceDrifts_ = other.resourceDrifts_; + bitField0_ = (bitField0_ & ~0x00000001); + resourceDriftsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getResourceDriftsFieldBuilder() + : null; + } else { + resourceDriftsBuilder_.addAllMessages(other.resourceDrifts_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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.cloud.config.v1.ResourceDrift m = + input.readMessage( + com.google.cloud.config.v1.ResourceDrift.parser(), extensionRegistry); + if (resourceDriftsBuilder_ == null) { + ensureResourceDriftsIsMutable(); + resourceDrifts_.add(m); + } else { + resourceDriftsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List resourceDrifts_ = + java.util.Collections.emptyList(); + + private void ensureResourceDriftsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + resourceDrifts_ = + new java.util.ArrayList(resourceDrifts_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.config.v1.ResourceDrift, + com.google.cloud.config.v1.ResourceDrift.Builder, + com.google.cloud.config.v1.ResourceDriftOrBuilder> + resourceDriftsBuilder_; + + /** + * + * + *
+     * List of ResourceDrifts.
+     * 
+ * + * repeated .google.cloud.config.v1.ResourceDrift resource_drifts = 1; + */ + public java.util.List getResourceDriftsList() { + if (resourceDriftsBuilder_ == null) { + return java.util.Collections.unmodifiableList(resourceDrifts_); + } else { + return resourceDriftsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * List of ResourceDrifts.
+     * 
+ * + * repeated .google.cloud.config.v1.ResourceDrift resource_drifts = 1; + */ + public int getResourceDriftsCount() { + if (resourceDriftsBuilder_ == null) { + return resourceDrifts_.size(); + } else { + return resourceDriftsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * List of ResourceDrifts.
+     * 
+ * + * repeated .google.cloud.config.v1.ResourceDrift resource_drifts = 1; + */ + public com.google.cloud.config.v1.ResourceDrift getResourceDrifts(int index) { + if (resourceDriftsBuilder_ == null) { + return resourceDrifts_.get(index); + } else { + return resourceDriftsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * List of ResourceDrifts.
+     * 
+ * + * repeated .google.cloud.config.v1.ResourceDrift resource_drifts = 1; + */ + public Builder setResourceDrifts(int index, com.google.cloud.config.v1.ResourceDrift value) { + if (resourceDriftsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceDriftsIsMutable(); + resourceDrifts_.set(index, value); + onChanged(); + } else { + resourceDriftsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * List of ResourceDrifts.
+     * 
+ * + * repeated .google.cloud.config.v1.ResourceDrift resource_drifts = 1; + */ + public Builder setResourceDrifts( + int index, com.google.cloud.config.v1.ResourceDrift.Builder builderForValue) { + if (resourceDriftsBuilder_ == null) { + ensureResourceDriftsIsMutable(); + resourceDrifts_.set(index, builderForValue.build()); + onChanged(); + } else { + resourceDriftsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * List of ResourceDrifts.
+     * 
+ * + * repeated .google.cloud.config.v1.ResourceDrift resource_drifts = 1; + */ + public Builder addResourceDrifts(com.google.cloud.config.v1.ResourceDrift value) { + if (resourceDriftsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceDriftsIsMutable(); + resourceDrifts_.add(value); + onChanged(); + } else { + resourceDriftsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * List of ResourceDrifts.
+     * 
+ * + * repeated .google.cloud.config.v1.ResourceDrift resource_drifts = 1; + */ + public Builder addResourceDrifts(int index, com.google.cloud.config.v1.ResourceDrift value) { + if (resourceDriftsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceDriftsIsMutable(); + resourceDrifts_.add(index, value); + onChanged(); + } else { + resourceDriftsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * List of ResourceDrifts.
+     * 
+ * + * repeated .google.cloud.config.v1.ResourceDrift resource_drifts = 1; + */ + public Builder addResourceDrifts( + com.google.cloud.config.v1.ResourceDrift.Builder builderForValue) { + if (resourceDriftsBuilder_ == null) { + ensureResourceDriftsIsMutable(); + resourceDrifts_.add(builderForValue.build()); + onChanged(); + } else { + resourceDriftsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * List of ResourceDrifts.
+     * 
+ * + * repeated .google.cloud.config.v1.ResourceDrift resource_drifts = 1; + */ + public Builder addResourceDrifts( + int index, com.google.cloud.config.v1.ResourceDrift.Builder builderForValue) { + if (resourceDriftsBuilder_ == null) { + ensureResourceDriftsIsMutable(); + resourceDrifts_.add(index, builderForValue.build()); + onChanged(); + } else { + resourceDriftsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * List of ResourceDrifts.
+     * 
+ * + * repeated .google.cloud.config.v1.ResourceDrift resource_drifts = 1; + */ + public Builder addAllResourceDrifts( + java.lang.Iterable values) { + if (resourceDriftsBuilder_ == null) { + ensureResourceDriftsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceDrifts_); + onChanged(); + } else { + resourceDriftsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * List of ResourceDrifts.
+     * 
+ * + * repeated .google.cloud.config.v1.ResourceDrift resource_drifts = 1; + */ + public Builder clearResourceDrifts() { + if (resourceDriftsBuilder_ == null) { + resourceDrifts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + resourceDriftsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * List of ResourceDrifts.
+     * 
+ * + * repeated .google.cloud.config.v1.ResourceDrift resource_drifts = 1; + */ + public Builder removeResourceDrifts(int index) { + if (resourceDriftsBuilder_ == null) { + ensureResourceDriftsIsMutable(); + resourceDrifts_.remove(index); + onChanged(); + } else { + resourceDriftsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * List of ResourceDrifts.
+     * 
+ * + * repeated .google.cloud.config.v1.ResourceDrift resource_drifts = 1; + */ + public com.google.cloud.config.v1.ResourceDrift.Builder getResourceDriftsBuilder(int index) { + return getResourceDriftsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * List of ResourceDrifts.
+     * 
+ * + * repeated .google.cloud.config.v1.ResourceDrift resource_drifts = 1; + */ + public com.google.cloud.config.v1.ResourceDriftOrBuilder getResourceDriftsOrBuilder(int index) { + if (resourceDriftsBuilder_ == null) { + return resourceDrifts_.get(index); + } else { + return resourceDriftsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * List of ResourceDrifts.
+     * 
+ * + * repeated .google.cloud.config.v1.ResourceDrift resource_drifts = 1; + */ + public java.util.List + getResourceDriftsOrBuilderList() { + if (resourceDriftsBuilder_ != null) { + return resourceDriftsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(resourceDrifts_); + } + } + + /** + * + * + *
+     * List of ResourceDrifts.
+     * 
+ * + * repeated .google.cloud.config.v1.ResourceDrift resource_drifts = 1; + */ + public com.google.cloud.config.v1.ResourceDrift.Builder addResourceDriftsBuilder() { + return getResourceDriftsFieldBuilder() + .addBuilder(com.google.cloud.config.v1.ResourceDrift.getDefaultInstance()); + } + + /** + * + * + *
+     * List of ResourceDrifts.
+     * 
+ * + * repeated .google.cloud.config.v1.ResourceDrift resource_drifts = 1; + */ + public com.google.cloud.config.v1.ResourceDrift.Builder addResourceDriftsBuilder(int index) { + return getResourceDriftsFieldBuilder() + .addBuilder(index, com.google.cloud.config.v1.ResourceDrift.getDefaultInstance()); + } + + /** + * + * + *
+     * List of ResourceDrifts.
+     * 
+ * + * repeated .google.cloud.config.v1.ResourceDrift resource_drifts = 1; + */ + public java.util.List + getResourceDriftsBuilderList() { + return getResourceDriftsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.config.v1.ResourceDrift, + com.google.cloud.config.v1.ResourceDrift.Builder, + com.google.cloud.config.v1.ResourceDriftOrBuilder> + getResourceDriftsFieldBuilder() { + if (resourceDriftsBuilder_ == null) { + resourceDriftsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.config.v1.ResourceDrift, + com.google.cloud.config.v1.ResourceDrift.Builder, + com.google.cloud.config.v1.ResourceDriftOrBuilder>( + resourceDrifts_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + resourceDrifts_ = null; + } + return resourceDriftsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token to request the next page of resources from the
+     * 'ListResourceDrifts' method. The value of an empty string means that
+     * there are no more resources to return.
+     * 
+ * + * 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 to request the next page of resources from the
+     * 'ListResourceDrifts' method. The value of an empty string means that
+     * there are no more resources to return.
+     * 
+ * + * 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 to request the next page of resources from the
+     * 'ListResourceDrifts' method. The value of an empty string means that
+     * there are no more resources to return.
+     * 
+ * + * 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 to request the next page of resources from the
+     * 'ListResourceDrifts' method. The value of an empty string means that
+     * there are no more resources to return.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token to request the next page of resources from the
+     * 'ListResourceDrifts' method. The value of an empty string means that
+     * there are no more resources to return.
+     * 
+ * + * 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; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
+     * Unreachable resources, if any.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
+     * Unreachable resources, if any.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+     * Unreachable resources, if any.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+     * Unreachable resources, if any.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + /** + * + * + *
+     * Unreachable resources, if any.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unreachable resources, if any.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unreachable resources, if any.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unreachable resources, if any.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unreachable resources, if any.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.config.v1.ListResourceDriftsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.config.v1.ListResourceDriftsResponse) + private static final com.google.cloud.config.v1.ListResourceDriftsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.config.v1.ListResourceDriftsResponse(); + } + + public static com.google.cloud.config.v1.ListResourceDriftsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListResourceDriftsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.config.v1.ListResourceDriftsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListResourceDriftsResponseOrBuilder.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListResourceDriftsResponseOrBuilder.java new file mode 100644 index 000000000000..8bc5273e4c79 --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListResourceDriftsResponseOrBuilder.java @@ -0,0 +1,166 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/config/v1/config.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.config.v1; + +public interface ListResourceDriftsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.config.v1.ListResourceDriftsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of ResourceDrifts.
+   * 
+ * + * repeated .google.cloud.config.v1.ResourceDrift resource_drifts = 1; + */ + java.util.List getResourceDriftsList(); + + /** + * + * + *
+   * List of ResourceDrifts.
+   * 
+ * + * repeated .google.cloud.config.v1.ResourceDrift resource_drifts = 1; + */ + com.google.cloud.config.v1.ResourceDrift getResourceDrifts(int index); + + /** + * + * + *
+   * List of ResourceDrifts.
+   * 
+ * + * repeated .google.cloud.config.v1.ResourceDrift resource_drifts = 1; + */ + int getResourceDriftsCount(); + + /** + * + * + *
+   * List of ResourceDrifts.
+   * 
+ * + * repeated .google.cloud.config.v1.ResourceDrift resource_drifts = 1; + */ + java.util.List + getResourceDriftsOrBuilderList(); + + /** + * + * + *
+   * List of ResourceDrifts.
+   * 
+ * + * repeated .google.cloud.config.v1.ResourceDrift resource_drifts = 1; + */ + com.google.cloud.config.v1.ResourceDriftOrBuilder getResourceDriftsOrBuilder(int index); + + /** + * + * + *
+   * A token to request the next page of resources from the
+   * 'ListResourceDrifts' method. The value of an empty string means that
+   * there are no more resources to return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token to request the next page of resources from the
+   * 'ListResourceDrifts' method. The value of an empty string means that
+   * there are no more resources to return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Unreachable resources, if any.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
+   * Unreachable resources, if any.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
+   * Unreachable resources, if any.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
+   * Unreachable resources, if any.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListTerraformVersionsRequest.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListTerraformVersionsRequest.java index 3348bfccbc3b..290d899321d3 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListTerraformVersionsRequest.java +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListTerraformVersionsRequest.java @@ -135,9 +135,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * Optional. When requesting a page of resources, 'page_size' specifies number
-   * of resources to return. If unspecified, at most 500 will be returned. The
-   * maximum value is 1000.
+   * Optional. When requesting a page of terraform versions, 'page_size'
+   * specifies number of terraform versions to return. If unspecified, at most
+   * 500 will be returned. The maximum value is 1000.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -160,7 +160,7 @@ public int getPageSize() { *
    * Optional. Token returned by previous call to 'ListTerraformVersions' which
    * specifies the position in the list from where to continue listing the
-   * resources.
+   * terraform versions.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -186,7 +186,7 @@ public java.lang.String getPageToken() { *
    * Optional. Token returned by previous call to 'ListTerraformVersions' which
    * specifies the position in the list from where to continue listing the
-   * resources.
+   * terraform versions.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -901,9 +901,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. When requesting a page of resources, 'page_size' specifies number
-     * of resources to return. If unspecified, at most 500 will be returned. The
-     * maximum value is 1000.
+     * Optional. When requesting a page of terraform versions, 'page_size'
+     * specifies number of terraform versions to return. If unspecified, at most
+     * 500 will be returned. The maximum value is 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -919,9 +919,9 @@ public int getPageSize() { * * *
-     * Optional. When requesting a page of resources, 'page_size' specifies number
-     * of resources to return. If unspecified, at most 500 will be returned. The
-     * maximum value is 1000.
+     * Optional. When requesting a page of terraform versions, 'page_size'
+     * specifies number of terraform versions to return. If unspecified, at most
+     * 500 will be returned. The maximum value is 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -941,9 +941,9 @@ public Builder setPageSize(int value) { * * *
-     * Optional. When requesting a page of resources, 'page_size' specifies number
-     * of resources to return. If unspecified, at most 500 will be returned. The
-     * maximum value is 1000.
+     * Optional. When requesting a page of terraform versions, 'page_size'
+     * specifies number of terraform versions to return. If unspecified, at most
+     * 500 will be returned. The maximum value is 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -965,7 +965,7 @@ public Builder clearPageSize() { *
      * Optional. Token returned by previous call to 'ListTerraformVersions' which
      * specifies the position in the list from where to continue listing the
-     * resources.
+     * terraform versions.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -990,7 +990,7 @@ public java.lang.String getPageToken() { *
      * Optional. Token returned by previous call to 'ListTerraformVersions' which
      * specifies the position in the list from where to continue listing the
-     * resources.
+     * terraform versions.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1015,7 +1015,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { *
      * Optional. Token returned by previous call to 'ListTerraformVersions' which
      * specifies the position in the list from where to continue listing the
-     * resources.
+     * terraform versions.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1039,7 +1039,7 @@ public Builder setPageToken(java.lang.String value) { *
      * Optional. Token returned by previous call to 'ListTerraformVersions' which
      * specifies the position in the list from where to continue listing the
-     * resources.
+     * terraform versions.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1059,7 +1059,7 @@ public Builder clearPageToken() { *
      * Optional. Token returned by previous call to 'ListTerraformVersions' which
      * specifies the position in the list from where to continue listing the
-     * resources.
+     * terraform versions.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListTerraformVersionsRequestOrBuilder.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListTerraformVersionsRequestOrBuilder.java index b99472f1d754..74446cbeb71b 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListTerraformVersionsRequestOrBuilder.java +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ListTerraformVersionsRequestOrBuilder.java @@ -62,9 +62,9 @@ public interface ListTerraformVersionsRequestOrBuilder * * *
-   * Optional. When requesting a page of resources, 'page_size' specifies number
-   * of resources to return. If unspecified, at most 500 will be returned. The
-   * maximum value is 1000.
+   * Optional. When requesting a page of terraform versions, 'page_size'
+   * specifies number of terraform versions to return. If unspecified, at most
+   * 500 will be returned. The maximum value is 1000.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -79,7 +79,7 @@ public interface ListTerraformVersionsRequestOrBuilder *
    * Optional. Token returned by previous call to 'ListTerraformVersions' which
    * specifies the position in the list from where to continue listing the
-   * resources.
+   * terraform versions.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -94,7 +94,7 @@ public interface ListTerraformVersionsRequestOrBuilder *
    * Optional. Token returned by previous call to 'ListTerraformVersions' which
    * specifies the position in the list from where to continue listing the
-   * resources.
+   * terraform versions.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/Preview.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/Preview.java index da009a803464..1c8079ccc24d 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/Preview.java +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/Preview.java @@ -2060,7 +2060,7 @@ public int getAnnotationsCount() { * *
    * Optional. Arbitrary key-value metadata storage e.g. to help client tools
-   * identifiy preview during automation. See
+   * identify preview during automation. See
    * https://google.aip.dev/148#annotations for details on format and size
    * limitations.
    * 
@@ -2088,7 +2088,7 @@ public java.util.Map getAnnotations() { * *
    * Optional. Arbitrary key-value metadata storage e.g. to help client tools
-   * identifiy preview during automation. See
+   * identify preview during automation. See
    * https://google.aip.dev/148#annotations for details on format and size
    * limitations.
    * 
@@ -2106,7 +2106,7 @@ public java.util.Map getAnnotationsMap() { * *
    * Optional. Arbitrary key-value metadata storage e.g. to help client tools
-   * identifiy preview during automation. See
+   * identify preview during automation. See
    * https://google.aip.dev/148#annotations for details on format and size
    * limitations.
    * 
@@ -2131,7 +2131,7 @@ public java.util.Map getAnnotationsMap() { * *
    * Optional. Arbitrary key-value metadata storage e.g. to help client tools
-   * identifiy preview during automation. See
+   * identify preview during automation. See
    * https://google.aip.dev/148#annotations for details on format and size
    * limitations.
    * 
@@ -6267,7 +6267,7 @@ public int getAnnotationsCount() { * *
      * Optional. Arbitrary key-value metadata storage e.g. to help client tools
-     * identifiy preview during automation. See
+     * identify preview during automation. See
      * https://google.aip.dev/148#annotations for details on format and size
      * limitations.
      * 
@@ -6295,7 +6295,7 @@ public java.util.Map getAnnotations() { * *
      * Optional. Arbitrary key-value metadata storage e.g. to help client tools
-     * identifiy preview during automation. See
+     * identify preview during automation. See
      * https://google.aip.dev/148#annotations for details on format and size
      * limitations.
      * 
@@ -6313,7 +6313,7 @@ public java.util.Map getAnnotationsMap() { * *
      * Optional. Arbitrary key-value metadata storage e.g. to help client tools
-     * identifiy preview during automation. See
+     * identify preview during automation. See
      * https://google.aip.dev/148#annotations for details on format and size
      * limitations.
      * 
@@ -6338,7 +6338,7 @@ public java.util.Map getAnnotationsMap() { * *
      * Optional. Arbitrary key-value metadata storage e.g. to help client tools
-     * identifiy preview during automation. See
+     * identify preview during automation. See
      * https://google.aip.dev/148#annotations for details on format and size
      * limitations.
      * 
@@ -6369,7 +6369,7 @@ public Builder clearAnnotations() { * *
      * Optional. Arbitrary key-value metadata storage e.g. to help client tools
-     * identifiy preview during automation. See
+     * identify preview during automation. See
      * https://google.aip.dev/148#annotations for details on format and size
      * limitations.
      * 
@@ -6397,7 +6397,7 @@ public java.util.Map getMutableAnnotations() * *
      * Optional. Arbitrary key-value metadata storage e.g. to help client tools
-     * identifiy preview during automation. See
+     * identify preview during automation. See
      * https://google.aip.dev/148#annotations for details on format and size
      * limitations.
      * 
@@ -6422,7 +6422,7 @@ public Builder putAnnotations(java.lang.String key, java.lang.String value) { * *
      * Optional. Arbitrary key-value metadata storage e.g. to help client tools
-     * identifiy preview during automation. See
+     * identify preview during automation. See
      * https://google.aip.dev/148#annotations for details on format and size
      * limitations.
      * 
diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/PreviewOrBuilder.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/PreviewOrBuilder.java index b05d3a53eecc..6e7c7acdc20f 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/PreviewOrBuilder.java +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/PreviewOrBuilder.java @@ -794,7 +794,7 @@ java.lang.String getLabelsOrDefault( * *
    * Optional. Arbitrary key-value metadata storage e.g. to help client tools
-   * identifiy preview during automation. See
+   * identify preview during automation. See
    * https://google.aip.dev/148#annotations for details on format and size
    * limitations.
    * 
@@ -809,7 +809,7 @@ java.lang.String getLabelsOrDefault( * *
    * Optional. Arbitrary key-value metadata storage e.g. to help client tools
-   * identifiy preview during automation. See
+   * identify preview during automation. See
    * https://google.aip.dev/148#annotations for details on format and size
    * limitations.
    * 
@@ -828,7 +828,7 @@ java.lang.String getLabelsOrDefault( * *
    * Optional. Arbitrary key-value metadata storage e.g. to help client tools
-   * identifiy preview during automation. See
+   * identify preview during automation. See
    * https://google.aip.dev/148#annotations for details on format and size
    * limitations.
    * 
@@ -843,7 +843,7 @@ java.lang.String getLabelsOrDefault( * *
    * Optional. Arbitrary key-value metadata storage e.g. to help client tools
-   * identifiy preview during automation. See
+   * identify preview during automation. See
    * https://google.aip.dev/148#annotations for details on format and size
    * limitations.
    * 
@@ -862,7 +862,7 @@ java.lang.String getAnnotationsOrDefault( * *
    * Optional. Arbitrary key-value metadata storage e.g. to help client tools
-   * identifiy preview during automation. See
+   * identify preview during automation. See
    * https://google.aip.dev/148#annotations for details on format and size
    * limitations.
    * 
diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/PropertyChange.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/PropertyChange.java new file mode 100644 index 000000000000..d2704cf4e223 --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/PropertyChange.java @@ -0,0 +1,1828 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/config/v1/config.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.config.v1; + +/** + * + * + *
+ * A property change represents a change to a property in the state file.
+ * 
+ * + * Protobuf type {@code google.cloud.config.v1.PropertyChange} + */ +public final class PropertyChange extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.config.v1.PropertyChange) + PropertyChangeOrBuilder { + private static final long serialVersionUID = 0L; + + // Use PropertyChange.newBuilder() to construct. + private PropertyChange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PropertyChange() { + path_ = ""; + beforeSensitivePaths_ = com.google.protobuf.LazyStringArrayList.emptyList(); + afterSensitivePaths_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PropertyChange(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_PropertyChange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_PropertyChange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.PropertyChange.class, + com.google.cloud.config.v1.PropertyChange.Builder.class); + } + + private int bitField0_; + public static final int PATH_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object path_ = ""; + + /** + * + * + *
+   * Output only. The path of the property change.
+   * 
+ * + * string path = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The path. + */ + @java.lang.Override + public java.lang.String getPath() { + java.lang.Object ref = path_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + path_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The path of the property change.
+   * 
+ * + * string path = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for path. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPathBytes() { + java.lang.Object ref = path_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + path_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BEFORE_SENSITIVE_PATHS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList beforeSensitivePaths_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Output only. The paths of sensitive fields in `before`. Paths are relative
+   * to `path`.
+   * 
+ * + * repeated string before_sensitive_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the beforeSensitivePaths. + */ + public com.google.protobuf.ProtocolStringList getBeforeSensitivePathsList() { + return beforeSensitivePaths_; + } + + /** + * + * + *
+   * Output only. The paths of sensitive fields in `before`. Paths are relative
+   * to `path`.
+   * 
+ * + * repeated string before_sensitive_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of beforeSensitivePaths. + */ + public int getBeforeSensitivePathsCount() { + return beforeSensitivePaths_.size(); + } + + /** + * + * + *
+   * Output only. The paths of sensitive fields in `before`. Paths are relative
+   * to `path`.
+   * 
+ * + * repeated string before_sensitive_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The beforeSensitivePaths at the given index. + */ + public java.lang.String getBeforeSensitivePaths(int index) { + return beforeSensitivePaths_.get(index); + } + + /** + * + * + *
+   * Output only. The paths of sensitive fields in `before`. Paths are relative
+   * to `path`.
+   * 
+ * + * repeated string before_sensitive_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the beforeSensitivePaths at the given index. + */ + public com.google.protobuf.ByteString getBeforeSensitivePathsBytes(int index) { + return beforeSensitivePaths_.getByteString(index); + } + + public static final int BEFORE_FIELD_NUMBER = 3; + private com.google.protobuf.Value before_; + + /** + * + * + *
+   * Output only. Representations of the object value before the actions.
+   * 
+ * + * .google.protobuf.Value before = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the before field is set. + */ + @java.lang.Override + public boolean hasBefore() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. Representations of the object value before the actions.
+   * 
+ * + * .google.protobuf.Value before = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The before. + */ + @java.lang.Override + public com.google.protobuf.Value getBefore() { + return before_ == null ? com.google.protobuf.Value.getDefaultInstance() : before_; + } + + /** + * + * + *
+   * Output only. Representations of the object value before the actions.
+   * 
+ * + * .google.protobuf.Value before = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.ValueOrBuilder getBeforeOrBuilder() { + return before_ == null ? com.google.protobuf.Value.getDefaultInstance() : before_; + } + + public static final int AFTER_SENSITIVE_PATHS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList afterSensitivePaths_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Output only. The paths of sensitive fields in `after`. Paths are relative
+   * to `path`.
+   * 
+ * + * repeated string after_sensitive_paths = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the afterSensitivePaths. + */ + public com.google.protobuf.ProtocolStringList getAfterSensitivePathsList() { + return afterSensitivePaths_; + } + + /** + * + * + *
+   * Output only. The paths of sensitive fields in `after`. Paths are relative
+   * to `path`.
+   * 
+ * + * repeated string after_sensitive_paths = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of afterSensitivePaths. + */ + public int getAfterSensitivePathsCount() { + return afterSensitivePaths_.size(); + } + + /** + * + * + *
+   * Output only. The paths of sensitive fields in `after`. Paths are relative
+   * to `path`.
+   * 
+ * + * repeated string after_sensitive_paths = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The afterSensitivePaths at the given index. + */ + public java.lang.String getAfterSensitivePaths(int index) { + return afterSensitivePaths_.get(index); + } + + /** + * + * + *
+   * Output only. The paths of sensitive fields in `after`. Paths are relative
+   * to `path`.
+   * 
+ * + * repeated string after_sensitive_paths = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the afterSensitivePaths at the given index. + */ + public com.google.protobuf.ByteString getAfterSensitivePathsBytes(int index) { + return afterSensitivePaths_.getByteString(index); + } + + public static final int AFTER_FIELD_NUMBER = 5; + private com.google.protobuf.Value after_; + + /** + * + * + *
+   * Output only. Representations of the object value after the actions.
+   * 
+ * + * .google.protobuf.Value after = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the after field is set. + */ + @java.lang.Override + public boolean hasAfter() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. Representations of the object value after the actions.
+   * 
+ * + * .google.protobuf.Value after = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The after. + */ + @java.lang.Override + public com.google.protobuf.Value getAfter() { + return after_ == null ? com.google.protobuf.Value.getDefaultInstance() : after_; + } + + /** + * + * + *
+   * Output only. Representations of the object value after the actions.
+   * 
+ * + * .google.protobuf.Value after = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.ValueOrBuilder getAfterOrBuilder() { + return after_ == null ? com.google.protobuf.Value.getDefaultInstance() : after_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, path_); + } + for (int i = 0; i < beforeSensitivePaths_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 2, beforeSensitivePaths_.getRaw(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getBefore()); + } + for (int i = 0; i < afterSensitivePaths_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, afterSensitivePaths_.getRaw(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getAfter()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, path_); + } + { + int dataSize = 0; + for (int i = 0; i < beforeSensitivePaths_.size(); i++) { + dataSize += computeStringSizeNoTag(beforeSensitivePaths_.getRaw(i)); + } + size += dataSize; + size += 1 * getBeforeSensitivePathsList().size(); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBefore()); + } + { + int dataSize = 0; + for (int i = 0; i < afterSensitivePaths_.size(); i++) { + dataSize += computeStringSizeNoTag(afterSensitivePaths_.getRaw(i)); + } + size += dataSize; + size += 1 * getAfterSensitivePathsList().size(); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAfter()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.config.v1.PropertyChange)) { + return super.equals(obj); + } + com.google.cloud.config.v1.PropertyChange other = + (com.google.cloud.config.v1.PropertyChange) obj; + + if (!getPath().equals(other.getPath())) return false; + if (!getBeforeSensitivePathsList().equals(other.getBeforeSensitivePathsList())) return false; + if (hasBefore() != other.hasBefore()) return false; + if (hasBefore()) { + if (!getBefore().equals(other.getBefore())) return false; + } + if (!getAfterSensitivePathsList().equals(other.getAfterSensitivePathsList())) return false; + if (hasAfter() != other.hasAfter()) return false; + if (hasAfter()) { + if (!getAfter().equals(other.getAfter())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PATH_FIELD_NUMBER; + hash = (53 * hash) + getPath().hashCode(); + if (getBeforeSensitivePathsCount() > 0) { + hash = (37 * hash) + BEFORE_SENSITIVE_PATHS_FIELD_NUMBER; + hash = (53 * hash) + getBeforeSensitivePathsList().hashCode(); + } + if (hasBefore()) { + hash = (37 * hash) + BEFORE_FIELD_NUMBER; + hash = (53 * hash) + getBefore().hashCode(); + } + if (getAfterSensitivePathsCount() > 0) { + hash = (37 * hash) + AFTER_SENSITIVE_PATHS_FIELD_NUMBER; + hash = (53 * hash) + getAfterSensitivePathsList().hashCode(); + } + if (hasAfter()) { + hash = (37 * hash) + AFTER_FIELD_NUMBER; + hash = (53 * hash) + getAfter().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.config.v1.PropertyChange parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.PropertyChange parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.PropertyChange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.PropertyChange parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.PropertyChange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.PropertyChange parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.PropertyChange parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.PropertyChange parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.config.v1.PropertyChange parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.PropertyChange parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.config.v1.PropertyChange parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.PropertyChange parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.config.v1.PropertyChange prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A property change represents a change to a property in the state file.
+   * 
+ * + * Protobuf type {@code google.cloud.config.v1.PropertyChange} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.config.v1.PropertyChange) + com.google.cloud.config.v1.PropertyChangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_PropertyChange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_PropertyChange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.PropertyChange.class, + com.google.cloud.config.v1.PropertyChange.Builder.class); + } + + // Construct using com.google.cloud.config.v1.PropertyChange.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getBeforeFieldBuilder(); + getAfterFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + path_ = ""; + beforeSensitivePaths_ = com.google.protobuf.LazyStringArrayList.emptyList(); + before_ = null; + if (beforeBuilder_ != null) { + beforeBuilder_.dispose(); + beforeBuilder_ = null; + } + afterSensitivePaths_ = com.google.protobuf.LazyStringArrayList.emptyList(); + after_ = null; + if (afterBuilder_ != null) { + afterBuilder_.dispose(); + afterBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_PropertyChange_descriptor; + } + + @java.lang.Override + public com.google.cloud.config.v1.PropertyChange getDefaultInstanceForType() { + return com.google.cloud.config.v1.PropertyChange.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.config.v1.PropertyChange build() { + com.google.cloud.config.v1.PropertyChange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.config.v1.PropertyChange buildPartial() { + com.google.cloud.config.v1.PropertyChange result = + new com.google.cloud.config.v1.PropertyChange(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.config.v1.PropertyChange result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.path_ = path_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + beforeSensitivePaths_.makeImmutable(); + result.beforeSensitivePaths_ = beforeSensitivePaths_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.before_ = beforeBuilder_ == null ? before_ : beforeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + afterSensitivePaths_.makeImmutable(); + result.afterSensitivePaths_ = afterSensitivePaths_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.after_ = afterBuilder_ == null ? after_ : afterBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.config.v1.PropertyChange) { + return mergeFrom((com.google.cloud.config.v1.PropertyChange) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.config.v1.PropertyChange other) { + if (other == com.google.cloud.config.v1.PropertyChange.getDefaultInstance()) return this; + if (!other.getPath().isEmpty()) { + path_ = other.path_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.beforeSensitivePaths_.isEmpty()) { + if (beforeSensitivePaths_.isEmpty()) { + beforeSensitivePaths_ = other.beforeSensitivePaths_; + bitField0_ |= 0x00000002; + } else { + ensureBeforeSensitivePathsIsMutable(); + beforeSensitivePaths_.addAll(other.beforeSensitivePaths_); + } + onChanged(); + } + if (other.hasBefore()) { + mergeBefore(other.getBefore()); + } + if (!other.afterSensitivePaths_.isEmpty()) { + if (afterSensitivePaths_.isEmpty()) { + afterSensitivePaths_ = other.afterSensitivePaths_; + bitField0_ |= 0x00000008; + } else { + ensureAfterSensitivePathsIsMutable(); + afterSensitivePaths_.addAll(other.afterSensitivePaths_); + } + onChanged(); + } + if (other.hasAfter()) { + mergeAfter(other.getAfter()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + path_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureBeforeSensitivePathsIsMutable(); + beforeSensitivePaths_.add(s); + break; + } // case 18 + case 26: + { + input.readMessage(getBeforeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAfterSensitivePathsIsMutable(); + afterSensitivePaths_.add(s); + break; + } // case 34 + case 42: + { + input.readMessage(getAfterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object path_ = ""; + + /** + * + * + *
+     * Output only. The path of the property change.
+     * 
+ * + * string path = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The path. + */ + public java.lang.String getPath() { + java.lang.Object ref = path_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + path_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The path of the property change.
+     * 
+ * + * string path = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for path. + */ + public com.google.protobuf.ByteString getPathBytes() { + java.lang.Object ref = path_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + path_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The path of the property change.
+     * 
+ * + * string path = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The path to set. + * @return This builder for chaining. + */ + public Builder setPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + path_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The path of the property change.
+     * 
+ * + * string path = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearPath() { + path_ = getDefaultInstance().getPath(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The path of the property change.
+     * 
+ * + * string path = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for path to set. + * @return This builder for chaining. + */ + public Builder setPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + path_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList beforeSensitivePaths_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureBeforeSensitivePathsIsMutable() { + if (!beforeSensitivePaths_.isModifiable()) { + beforeSensitivePaths_ = new com.google.protobuf.LazyStringArrayList(beforeSensitivePaths_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
+     * Output only. The paths of sensitive fields in `before`. Paths are relative
+     * to `path`.
+     * 
+ * + * + * repeated string before_sensitive_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the beforeSensitivePaths. + */ + public com.google.protobuf.ProtocolStringList getBeforeSensitivePathsList() { + beforeSensitivePaths_.makeImmutable(); + return beforeSensitivePaths_; + } + + /** + * + * + *
+     * Output only. The paths of sensitive fields in `before`. Paths are relative
+     * to `path`.
+     * 
+ * + * + * repeated string before_sensitive_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of beforeSensitivePaths. + */ + public int getBeforeSensitivePathsCount() { + return beforeSensitivePaths_.size(); + } + + /** + * + * + *
+     * Output only. The paths of sensitive fields in `before`. Paths are relative
+     * to `path`.
+     * 
+ * + * + * repeated string before_sensitive_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The beforeSensitivePaths at the given index. + */ + public java.lang.String getBeforeSensitivePaths(int index) { + return beforeSensitivePaths_.get(index); + } + + /** + * + * + *
+     * Output only. The paths of sensitive fields in `before`. Paths are relative
+     * to `path`.
+     * 
+ * + * + * repeated string before_sensitive_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the beforeSensitivePaths at the given index. + */ + public com.google.protobuf.ByteString getBeforeSensitivePathsBytes(int index) { + return beforeSensitivePaths_.getByteString(index); + } + + /** + * + * + *
+     * Output only. The paths of sensitive fields in `before`. Paths are relative
+     * to `path`.
+     * 
+ * + * + * repeated string before_sensitive_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The beforeSensitivePaths to set. + * @return This builder for chaining. + */ + public Builder setBeforeSensitivePaths(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureBeforeSensitivePathsIsMutable(); + beforeSensitivePaths_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The paths of sensitive fields in `before`. Paths are relative
+     * to `path`.
+     * 
+ * + * + * repeated string before_sensitive_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The beforeSensitivePaths to add. + * @return This builder for chaining. + */ + public Builder addBeforeSensitivePaths(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureBeforeSensitivePathsIsMutable(); + beforeSensitivePaths_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The paths of sensitive fields in `before`. Paths are relative
+     * to `path`.
+     * 
+ * + * + * repeated string before_sensitive_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The beforeSensitivePaths to add. + * @return This builder for chaining. + */ + public Builder addAllBeforeSensitivePaths(java.lang.Iterable values) { + ensureBeforeSensitivePathsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, beforeSensitivePaths_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The paths of sensitive fields in `before`. Paths are relative
+     * to `path`.
+     * 
+ * + * + * repeated string before_sensitive_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearBeforeSensitivePaths() { + beforeSensitivePaths_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The paths of sensitive fields in `before`. Paths are relative
+     * to `path`.
+     * 
+ * + * + * repeated string before_sensitive_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes of the beforeSensitivePaths to add. + * @return This builder for chaining. + */ + public Builder addBeforeSensitivePathsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureBeforeSensitivePathsIsMutable(); + beforeSensitivePaths_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Value before_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + beforeBuilder_; + + /** + * + * + *
+     * Output only. Representations of the object value before the actions.
+     * 
+ * + * .google.protobuf.Value before = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the before field is set. + */ + public boolean hasBefore() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Output only. Representations of the object value before the actions.
+     * 
+ * + * .google.protobuf.Value before = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The before. + */ + public com.google.protobuf.Value getBefore() { + if (beforeBuilder_ == null) { + return before_ == null ? com.google.protobuf.Value.getDefaultInstance() : before_; + } else { + return beforeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Representations of the object value before the actions.
+     * 
+ * + * .google.protobuf.Value before = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setBefore(com.google.protobuf.Value value) { + if (beforeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + before_ = value; + } else { + beforeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Representations of the object value before the actions.
+     * 
+ * + * .google.protobuf.Value before = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setBefore(com.google.protobuf.Value.Builder builderForValue) { + if (beforeBuilder_ == null) { + before_ = builderForValue.build(); + } else { + beforeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Representations of the object value before the actions.
+     * 
+ * + * .google.protobuf.Value before = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeBefore(com.google.protobuf.Value value) { + if (beforeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && before_ != null + && before_ != com.google.protobuf.Value.getDefaultInstance()) { + getBeforeBuilder().mergeFrom(value); + } else { + before_ = value; + } + } else { + beforeBuilder_.mergeFrom(value); + } + if (before_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Representations of the object value before the actions.
+     * 
+ * + * .google.protobuf.Value before = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearBefore() { + bitField0_ = (bitField0_ & ~0x00000004); + before_ = null; + if (beforeBuilder_ != null) { + beforeBuilder_.dispose(); + beforeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Representations of the object value before the actions.
+     * 
+ * + * .google.protobuf.Value before = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.Value.Builder getBeforeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getBeforeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Representations of the object value before the actions.
+     * 
+ * + * .google.protobuf.Value before = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.ValueOrBuilder getBeforeOrBuilder() { + if (beforeBuilder_ != null) { + return beforeBuilder_.getMessageOrBuilder(); + } else { + return before_ == null ? com.google.protobuf.Value.getDefaultInstance() : before_; + } + } + + /** + * + * + *
+     * Output only. Representations of the object value before the actions.
+     * 
+ * + * .google.protobuf.Value before = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + getBeforeFieldBuilder() { + if (beforeBuilder_ == null) { + beforeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder>(getBefore(), getParentForChildren(), isClean()); + before_ = null; + } + return beforeBuilder_; + } + + private com.google.protobuf.LazyStringArrayList afterSensitivePaths_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAfterSensitivePathsIsMutable() { + if (!afterSensitivePaths_.isModifiable()) { + afterSensitivePaths_ = new com.google.protobuf.LazyStringArrayList(afterSensitivePaths_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
+     * Output only. The paths of sensitive fields in `after`. Paths are relative
+     * to `path`.
+     * 
+ * + * repeated string after_sensitive_paths = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the afterSensitivePaths. + */ + public com.google.protobuf.ProtocolStringList getAfterSensitivePathsList() { + afterSensitivePaths_.makeImmutable(); + return afterSensitivePaths_; + } + + /** + * + * + *
+     * Output only. The paths of sensitive fields in `after`. Paths are relative
+     * to `path`.
+     * 
+ * + * repeated string after_sensitive_paths = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of afterSensitivePaths. + */ + public int getAfterSensitivePathsCount() { + return afterSensitivePaths_.size(); + } + + /** + * + * + *
+     * Output only. The paths of sensitive fields in `after`. Paths are relative
+     * to `path`.
+     * 
+ * + * repeated string after_sensitive_paths = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The afterSensitivePaths at the given index. + */ + public java.lang.String getAfterSensitivePaths(int index) { + return afterSensitivePaths_.get(index); + } + + /** + * + * + *
+     * Output only. The paths of sensitive fields in `after`. Paths are relative
+     * to `path`.
+     * 
+ * + * repeated string after_sensitive_paths = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the afterSensitivePaths at the given index. + */ + public com.google.protobuf.ByteString getAfterSensitivePathsBytes(int index) { + return afterSensitivePaths_.getByteString(index); + } + + /** + * + * + *
+     * Output only. The paths of sensitive fields in `after`. Paths are relative
+     * to `path`.
+     * 
+ * + * repeated string after_sensitive_paths = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The afterSensitivePaths to set. + * @return This builder for chaining. + */ + public Builder setAfterSensitivePaths(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAfterSensitivePathsIsMutable(); + afterSensitivePaths_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The paths of sensitive fields in `after`. Paths are relative
+     * to `path`.
+     * 
+ * + * repeated string after_sensitive_paths = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The afterSensitivePaths to add. + * @return This builder for chaining. + */ + public Builder addAfterSensitivePaths(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAfterSensitivePathsIsMutable(); + afterSensitivePaths_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The paths of sensitive fields in `after`. Paths are relative
+     * to `path`.
+     * 
+ * + * repeated string after_sensitive_paths = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The afterSensitivePaths to add. + * @return This builder for chaining. + */ + public Builder addAllAfterSensitivePaths(java.lang.Iterable values) { + ensureAfterSensitivePathsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, afterSensitivePaths_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The paths of sensitive fields in `after`. Paths are relative
+     * to `path`.
+     * 
+ * + * repeated string after_sensitive_paths = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearAfterSensitivePaths() { + afterSensitivePaths_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The paths of sensitive fields in `after`. Paths are relative
+     * to `path`.
+     * 
+ * + * repeated string after_sensitive_paths = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes of the afterSensitivePaths to add. + * @return This builder for chaining. + */ + public Builder addAfterSensitivePathsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAfterSensitivePathsIsMutable(); + afterSensitivePaths_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.Value after_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + afterBuilder_; + + /** + * + * + *
+     * Output only. Representations of the object value after the actions.
+     * 
+ * + * .google.protobuf.Value after = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the after field is set. + */ + public boolean hasAfter() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Output only. Representations of the object value after the actions.
+     * 
+ * + * .google.protobuf.Value after = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The after. + */ + public com.google.protobuf.Value getAfter() { + if (afterBuilder_ == null) { + return after_ == null ? com.google.protobuf.Value.getDefaultInstance() : after_; + } else { + return afterBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Representations of the object value after the actions.
+     * 
+ * + * .google.protobuf.Value after = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setAfter(com.google.protobuf.Value value) { + if (afterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + after_ = value; + } else { + afterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Representations of the object value after the actions.
+     * 
+ * + * .google.protobuf.Value after = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setAfter(com.google.protobuf.Value.Builder builderForValue) { + if (afterBuilder_ == null) { + after_ = builderForValue.build(); + } else { + afterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Representations of the object value after the actions.
+     * 
+ * + * .google.protobuf.Value after = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeAfter(com.google.protobuf.Value value) { + if (afterBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && after_ != null + && after_ != com.google.protobuf.Value.getDefaultInstance()) { + getAfterBuilder().mergeFrom(value); + } else { + after_ = value; + } + } else { + afterBuilder_.mergeFrom(value); + } + if (after_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Representations of the object value after the actions.
+     * 
+ * + * .google.protobuf.Value after = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearAfter() { + bitField0_ = (bitField0_ & ~0x00000010); + after_ = null; + if (afterBuilder_ != null) { + afterBuilder_.dispose(); + afterBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Representations of the object value after the actions.
+     * 
+ * + * .google.protobuf.Value after = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.Value.Builder getAfterBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getAfterFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Representations of the object value after the actions.
+     * 
+ * + * .google.protobuf.Value after = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.ValueOrBuilder getAfterOrBuilder() { + if (afterBuilder_ != null) { + return afterBuilder_.getMessageOrBuilder(); + } else { + return after_ == null ? com.google.protobuf.Value.getDefaultInstance() : after_; + } + } + + /** + * + * + *
+     * Output only. Representations of the object value after the actions.
+     * 
+ * + * .google.protobuf.Value after = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + getAfterFieldBuilder() { + if (afterBuilder_ == null) { + afterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder>(getAfter(), getParentForChildren(), isClean()); + after_ = null; + } + return afterBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.config.v1.PropertyChange) + } + + // @@protoc_insertion_point(class_scope:google.cloud.config.v1.PropertyChange) + private static final com.google.cloud.config.v1.PropertyChange DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.config.v1.PropertyChange(); + } + + public static com.google.cloud.config.v1.PropertyChange getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PropertyChange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.config.v1.PropertyChange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/PropertyChangeOrBuilder.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/PropertyChangeOrBuilder.java new file mode 100644 index 000000000000..edf6f7f6476a --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/PropertyChangeOrBuilder.java @@ -0,0 +1,250 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/config/v1/config.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.config.v1; + +public interface PropertyChangeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.config.v1.PropertyChange) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The path of the property change.
+   * 
+ * + * string path = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The path. + */ + java.lang.String getPath(); + + /** + * + * + *
+   * Output only. The path of the property change.
+   * 
+ * + * string path = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for path. + */ + com.google.protobuf.ByteString getPathBytes(); + + /** + * + * + *
+   * Output only. The paths of sensitive fields in `before`. Paths are relative
+   * to `path`.
+   * 
+ * + * repeated string before_sensitive_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the beforeSensitivePaths. + */ + java.util.List getBeforeSensitivePathsList(); + + /** + * + * + *
+   * Output only. The paths of sensitive fields in `before`. Paths are relative
+   * to `path`.
+   * 
+ * + * repeated string before_sensitive_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of beforeSensitivePaths. + */ + int getBeforeSensitivePathsCount(); + + /** + * + * + *
+   * Output only. The paths of sensitive fields in `before`. Paths are relative
+   * to `path`.
+   * 
+ * + * repeated string before_sensitive_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The beforeSensitivePaths at the given index. + */ + java.lang.String getBeforeSensitivePaths(int index); + + /** + * + * + *
+   * Output only. The paths of sensitive fields in `before`. Paths are relative
+   * to `path`.
+   * 
+ * + * repeated string before_sensitive_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the beforeSensitivePaths at the given index. + */ + com.google.protobuf.ByteString getBeforeSensitivePathsBytes(int index); + + /** + * + * + *
+   * Output only. Representations of the object value before the actions.
+   * 
+ * + * .google.protobuf.Value before = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the before field is set. + */ + boolean hasBefore(); + + /** + * + * + *
+   * Output only. Representations of the object value before the actions.
+   * 
+ * + * .google.protobuf.Value before = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The before. + */ + com.google.protobuf.Value getBefore(); + + /** + * + * + *
+   * Output only. Representations of the object value before the actions.
+   * 
+ * + * .google.protobuf.Value before = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.protobuf.ValueOrBuilder getBeforeOrBuilder(); + + /** + * + * + *
+   * Output only. The paths of sensitive fields in `after`. Paths are relative
+   * to `path`.
+   * 
+ * + * repeated string after_sensitive_paths = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the afterSensitivePaths. + */ + java.util.List getAfterSensitivePathsList(); + + /** + * + * + *
+   * Output only. The paths of sensitive fields in `after`. Paths are relative
+   * to `path`.
+   * 
+ * + * repeated string after_sensitive_paths = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of afterSensitivePaths. + */ + int getAfterSensitivePathsCount(); + + /** + * + * + *
+   * Output only. The paths of sensitive fields in `after`. Paths are relative
+   * to `path`.
+   * 
+ * + * repeated string after_sensitive_paths = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The afterSensitivePaths at the given index. + */ + java.lang.String getAfterSensitivePaths(int index); + + /** + * + * + *
+   * Output only. The paths of sensitive fields in `after`. Paths are relative
+   * to `path`.
+   * 
+ * + * repeated string after_sensitive_paths = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the afterSensitivePaths at the given index. + */ + com.google.protobuf.ByteString getAfterSensitivePathsBytes(int index); + + /** + * + * + *
+   * Output only. Representations of the object value after the actions.
+   * 
+ * + * .google.protobuf.Value after = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the after field is set. + */ + boolean hasAfter(); + + /** + * + * + *
+   * Output only. Representations of the object value after the actions.
+   * 
+ * + * .google.protobuf.Value after = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The after. + */ + com.google.protobuf.Value getAfter(); + + /** + * + * + *
+   * Output only. Representations of the object value after the actions.
+   * 
+ * + * .google.protobuf.Value after = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.protobuf.ValueOrBuilder getAfterOrBuilder(); +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/PropertyDrift.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/PropertyDrift.java new file mode 100644 index 000000000000..cc0128e01e6c --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/PropertyDrift.java @@ -0,0 +1,1827 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/config/v1/config.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.config.v1; + +/** + * + * + *
+ * A property drift represents a drift to a property in the state file.
+ * 
+ * + * Protobuf type {@code google.cloud.config.v1.PropertyDrift} + */ +public final class PropertyDrift extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.config.v1.PropertyDrift) + PropertyDriftOrBuilder { + private static final long serialVersionUID = 0L; + + // Use PropertyDrift.newBuilder() to construct. + private PropertyDrift(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PropertyDrift() { + path_ = ""; + beforeSensitivePaths_ = com.google.protobuf.LazyStringArrayList.emptyList(); + afterSensitivePaths_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PropertyDrift(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_PropertyDrift_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_PropertyDrift_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.PropertyDrift.class, + com.google.cloud.config.v1.PropertyDrift.Builder.class); + } + + private int bitField0_; + public static final int PATH_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object path_ = ""; + + /** + * + * + *
+   * Output only. The path of the property drift.
+   * 
+ * + * string path = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The path. + */ + @java.lang.Override + public java.lang.String getPath() { + java.lang.Object ref = path_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + path_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The path of the property drift.
+   * 
+ * + * string path = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for path. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPathBytes() { + java.lang.Object ref = path_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + path_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BEFORE_SENSITIVE_PATHS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList beforeSensitivePaths_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Output only. The paths of sensitive fields in `before`. Paths are relative
+   * to `path`.
+   * 
+ * + * repeated string before_sensitive_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the beforeSensitivePaths. + */ + public com.google.protobuf.ProtocolStringList getBeforeSensitivePathsList() { + return beforeSensitivePaths_; + } + + /** + * + * + *
+   * Output only. The paths of sensitive fields in `before`. Paths are relative
+   * to `path`.
+   * 
+ * + * repeated string before_sensitive_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of beforeSensitivePaths. + */ + public int getBeforeSensitivePathsCount() { + return beforeSensitivePaths_.size(); + } + + /** + * + * + *
+   * Output only. The paths of sensitive fields in `before`. Paths are relative
+   * to `path`.
+   * 
+ * + * repeated string before_sensitive_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The beforeSensitivePaths at the given index. + */ + public java.lang.String getBeforeSensitivePaths(int index) { + return beforeSensitivePaths_.get(index); + } + + /** + * + * + *
+   * Output only. The paths of sensitive fields in `before`. Paths are relative
+   * to `path`.
+   * 
+ * + * repeated string before_sensitive_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the beforeSensitivePaths at the given index. + */ + public com.google.protobuf.ByteString getBeforeSensitivePathsBytes(int index) { + return beforeSensitivePaths_.getByteString(index); + } + + public static final int BEFORE_FIELD_NUMBER = 3; + private com.google.protobuf.Value before_; + + /** + * + * + *
+   * Output only. Representations of the object value before the actions.
+   * 
+ * + * .google.protobuf.Value before = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the before field is set. + */ + @java.lang.Override + public boolean hasBefore() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. Representations of the object value before the actions.
+   * 
+ * + * .google.protobuf.Value before = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The before. + */ + @java.lang.Override + public com.google.protobuf.Value getBefore() { + return before_ == null ? com.google.protobuf.Value.getDefaultInstance() : before_; + } + + /** + * + * + *
+   * Output only. Representations of the object value before the actions.
+   * 
+ * + * .google.protobuf.Value before = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.ValueOrBuilder getBeforeOrBuilder() { + return before_ == null ? com.google.protobuf.Value.getDefaultInstance() : before_; + } + + public static final int AFTER_SENSITIVE_PATHS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList afterSensitivePaths_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Output only. The paths of sensitive fields in `after`. Paths are relative
+   * to `path`.
+   * 
+ * + * repeated string after_sensitive_paths = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the afterSensitivePaths. + */ + public com.google.protobuf.ProtocolStringList getAfterSensitivePathsList() { + return afterSensitivePaths_; + } + + /** + * + * + *
+   * Output only. The paths of sensitive fields in `after`. Paths are relative
+   * to `path`.
+   * 
+ * + * repeated string after_sensitive_paths = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of afterSensitivePaths. + */ + public int getAfterSensitivePathsCount() { + return afterSensitivePaths_.size(); + } + + /** + * + * + *
+   * Output only. The paths of sensitive fields in `after`. Paths are relative
+   * to `path`.
+   * 
+ * + * repeated string after_sensitive_paths = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The afterSensitivePaths at the given index. + */ + public java.lang.String getAfterSensitivePaths(int index) { + return afterSensitivePaths_.get(index); + } + + /** + * + * + *
+   * Output only. The paths of sensitive fields in `after`. Paths are relative
+   * to `path`.
+   * 
+ * + * repeated string after_sensitive_paths = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the afterSensitivePaths at the given index. + */ + public com.google.protobuf.ByteString getAfterSensitivePathsBytes(int index) { + return afterSensitivePaths_.getByteString(index); + } + + public static final int AFTER_FIELD_NUMBER = 5; + private com.google.protobuf.Value after_; + + /** + * + * + *
+   * Output only. Representations of the object value after the actions.
+   * 
+ * + * .google.protobuf.Value after = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the after field is set. + */ + @java.lang.Override + public boolean hasAfter() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. Representations of the object value after the actions.
+   * 
+ * + * .google.protobuf.Value after = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The after. + */ + @java.lang.Override + public com.google.protobuf.Value getAfter() { + return after_ == null ? com.google.protobuf.Value.getDefaultInstance() : after_; + } + + /** + * + * + *
+   * Output only. Representations of the object value after the actions.
+   * 
+ * + * .google.protobuf.Value after = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.ValueOrBuilder getAfterOrBuilder() { + return after_ == null ? com.google.protobuf.Value.getDefaultInstance() : after_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, path_); + } + for (int i = 0; i < beforeSensitivePaths_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 2, beforeSensitivePaths_.getRaw(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getBefore()); + } + for (int i = 0; i < afterSensitivePaths_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, afterSensitivePaths_.getRaw(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getAfter()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, path_); + } + { + int dataSize = 0; + for (int i = 0; i < beforeSensitivePaths_.size(); i++) { + dataSize += computeStringSizeNoTag(beforeSensitivePaths_.getRaw(i)); + } + size += dataSize; + size += 1 * getBeforeSensitivePathsList().size(); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBefore()); + } + { + int dataSize = 0; + for (int i = 0; i < afterSensitivePaths_.size(); i++) { + dataSize += computeStringSizeNoTag(afterSensitivePaths_.getRaw(i)); + } + size += dataSize; + size += 1 * getAfterSensitivePathsList().size(); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAfter()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.config.v1.PropertyDrift)) { + return super.equals(obj); + } + com.google.cloud.config.v1.PropertyDrift other = (com.google.cloud.config.v1.PropertyDrift) obj; + + if (!getPath().equals(other.getPath())) return false; + if (!getBeforeSensitivePathsList().equals(other.getBeforeSensitivePathsList())) return false; + if (hasBefore() != other.hasBefore()) return false; + if (hasBefore()) { + if (!getBefore().equals(other.getBefore())) return false; + } + if (!getAfterSensitivePathsList().equals(other.getAfterSensitivePathsList())) return false; + if (hasAfter() != other.hasAfter()) return false; + if (hasAfter()) { + if (!getAfter().equals(other.getAfter())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PATH_FIELD_NUMBER; + hash = (53 * hash) + getPath().hashCode(); + if (getBeforeSensitivePathsCount() > 0) { + hash = (37 * hash) + BEFORE_SENSITIVE_PATHS_FIELD_NUMBER; + hash = (53 * hash) + getBeforeSensitivePathsList().hashCode(); + } + if (hasBefore()) { + hash = (37 * hash) + BEFORE_FIELD_NUMBER; + hash = (53 * hash) + getBefore().hashCode(); + } + if (getAfterSensitivePathsCount() > 0) { + hash = (37 * hash) + AFTER_SENSITIVE_PATHS_FIELD_NUMBER; + hash = (53 * hash) + getAfterSensitivePathsList().hashCode(); + } + if (hasAfter()) { + hash = (37 * hash) + AFTER_FIELD_NUMBER; + hash = (53 * hash) + getAfter().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.config.v1.PropertyDrift parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.PropertyDrift parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.PropertyDrift parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.PropertyDrift parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.PropertyDrift parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.PropertyDrift parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.PropertyDrift parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.PropertyDrift parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.config.v1.PropertyDrift parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.PropertyDrift parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.config.v1.PropertyDrift parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.PropertyDrift parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.config.v1.PropertyDrift prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A property drift represents a drift to a property in the state file.
+   * 
+ * + * Protobuf type {@code google.cloud.config.v1.PropertyDrift} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.config.v1.PropertyDrift) + com.google.cloud.config.v1.PropertyDriftOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_PropertyDrift_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_PropertyDrift_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.PropertyDrift.class, + com.google.cloud.config.v1.PropertyDrift.Builder.class); + } + + // Construct using com.google.cloud.config.v1.PropertyDrift.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getBeforeFieldBuilder(); + getAfterFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + path_ = ""; + beforeSensitivePaths_ = com.google.protobuf.LazyStringArrayList.emptyList(); + before_ = null; + if (beforeBuilder_ != null) { + beforeBuilder_.dispose(); + beforeBuilder_ = null; + } + afterSensitivePaths_ = com.google.protobuf.LazyStringArrayList.emptyList(); + after_ = null; + if (afterBuilder_ != null) { + afterBuilder_.dispose(); + afterBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_PropertyDrift_descriptor; + } + + @java.lang.Override + public com.google.cloud.config.v1.PropertyDrift getDefaultInstanceForType() { + return com.google.cloud.config.v1.PropertyDrift.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.config.v1.PropertyDrift build() { + com.google.cloud.config.v1.PropertyDrift result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.config.v1.PropertyDrift buildPartial() { + com.google.cloud.config.v1.PropertyDrift result = + new com.google.cloud.config.v1.PropertyDrift(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.config.v1.PropertyDrift result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.path_ = path_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + beforeSensitivePaths_.makeImmutable(); + result.beforeSensitivePaths_ = beforeSensitivePaths_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.before_ = beforeBuilder_ == null ? before_ : beforeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + afterSensitivePaths_.makeImmutable(); + result.afterSensitivePaths_ = afterSensitivePaths_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.after_ = afterBuilder_ == null ? after_ : afterBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.config.v1.PropertyDrift) { + return mergeFrom((com.google.cloud.config.v1.PropertyDrift) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.config.v1.PropertyDrift other) { + if (other == com.google.cloud.config.v1.PropertyDrift.getDefaultInstance()) return this; + if (!other.getPath().isEmpty()) { + path_ = other.path_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.beforeSensitivePaths_.isEmpty()) { + if (beforeSensitivePaths_.isEmpty()) { + beforeSensitivePaths_ = other.beforeSensitivePaths_; + bitField0_ |= 0x00000002; + } else { + ensureBeforeSensitivePathsIsMutable(); + beforeSensitivePaths_.addAll(other.beforeSensitivePaths_); + } + onChanged(); + } + if (other.hasBefore()) { + mergeBefore(other.getBefore()); + } + if (!other.afterSensitivePaths_.isEmpty()) { + if (afterSensitivePaths_.isEmpty()) { + afterSensitivePaths_ = other.afterSensitivePaths_; + bitField0_ |= 0x00000008; + } else { + ensureAfterSensitivePathsIsMutable(); + afterSensitivePaths_.addAll(other.afterSensitivePaths_); + } + onChanged(); + } + if (other.hasAfter()) { + mergeAfter(other.getAfter()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + path_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureBeforeSensitivePathsIsMutable(); + beforeSensitivePaths_.add(s); + break; + } // case 18 + case 26: + { + input.readMessage(getBeforeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAfterSensitivePathsIsMutable(); + afterSensitivePaths_.add(s); + break; + } // case 34 + case 42: + { + input.readMessage(getAfterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object path_ = ""; + + /** + * + * + *
+     * Output only. The path of the property drift.
+     * 
+ * + * string path = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The path. + */ + public java.lang.String getPath() { + java.lang.Object ref = path_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + path_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The path of the property drift.
+     * 
+ * + * string path = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for path. + */ + public com.google.protobuf.ByteString getPathBytes() { + java.lang.Object ref = path_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + path_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The path of the property drift.
+     * 
+ * + * string path = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The path to set. + * @return This builder for chaining. + */ + public Builder setPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + path_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The path of the property drift.
+     * 
+ * + * string path = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearPath() { + path_ = getDefaultInstance().getPath(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The path of the property drift.
+     * 
+ * + * string path = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for path to set. + * @return This builder for chaining. + */ + public Builder setPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + path_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList beforeSensitivePaths_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureBeforeSensitivePathsIsMutable() { + if (!beforeSensitivePaths_.isModifiable()) { + beforeSensitivePaths_ = new com.google.protobuf.LazyStringArrayList(beforeSensitivePaths_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
+     * Output only. The paths of sensitive fields in `before`. Paths are relative
+     * to `path`.
+     * 
+ * + * + * repeated string before_sensitive_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the beforeSensitivePaths. + */ + public com.google.protobuf.ProtocolStringList getBeforeSensitivePathsList() { + beforeSensitivePaths_.makeImmutable(); + return beforeSensitivePaths_; + } + + /** + * + * + *
+     * Output only. The paths of sensitive fields in `before`. Paths are relative
+     * to `path`.
+     * 
+ * + * + * repeated string before_sensitive_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of beforeSensitivePaths. + */ + public int getBeforeSensitivePathsCount() { + return beforeSensitivePaths_.size(); + } + + /** + * + * + *
+     * Output only. The paths of sensitive fields in `before`. Paths are relative
+     * to `path`.
+     * 
+ * + * + * repeated string before_sensitive_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The beforeSensitivePaths at the given index. + */ + public java.lang.String getBeforeSensitivePaths(int index) { + return beforeSensitivePaths_.get(index); + } + + /** + * + * + *
+     * Output only. The paths of sensitive fields in `before`. Paths are relative
+     * to `path`.
+     * 
+ * + * + * repeated string before_sensitive_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the beforeSensitivePaths at the given index. + */ + public com.google.protobuf.ByteString getBeforeSensitivePathsBytes(int index) { + return beforeSensitivePaths_.getByteString(index); + } + + /** + * + * + *
+     * Output only. The paths of sensitive fields in `before`. Paths are relative
+     * to `path`.
+     * 
+ * + * + * repeated string before_sensitive_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The beforeSensitivePaths to set. + * @return This builder for chaining. + */ + public Builder setBeforeSensitivePaths(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureBeforeSensitivePathsIsMutable(); + beforeSensitivePaths_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The paths of sensitive fields in `before`. Paths are relative
+     * to `path`.
+     * 
+ * + * + * repeated string before_sensitive_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The beforeSensitivePaths to add. + * @return This builder for chaining. + */ + public Builder addBeforeSensitivePaths(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureBeforeSensitivePathsIsMutable(); + beforeSensitivePaths_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The paths of sensitive fields in `before`. Paths are relative
+     * to `path`.
+     * 
+ * + * + * repeated string before_sensitive_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The beforeSensitivePaths to add. + * @return This builder for chaining. + */ + public Builder addAllBeforeSensitivePaths(java.lang.Iterable values) { + ensureBeforeSensitivePathsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, beforeSensitivePaths_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The paths of sensitive fields in `before`. Paths are relative
+     * to `path`.
+     * 
+ * + * + * repeated string before_sensitive_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearBeforeSensitivePaths() { + beforeSensitivePaths_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The paths of sensitive fields in `before`. Paths are relative
+     * to `path`.
+     * 
+ * + * + * repeated string before_sensitive_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes of the beforeSensitivePaths to add. + * @return This builder for chaining. + */ + public Builder addBeforeSensitivePathsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureBeforeSensitivePathsIsMutable(); + beforeSensitivePaths_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Value before_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + beforeBuilder_; + + /** + * + * + *
+     * Output only. Representations of the object value before the actions.
+     * 
+ * + * .google.protobuf.Value before = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the before field is set. + */ + public boolean hasBefore() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Output only. Representations of the object value before the actions.
+     * 
+ * + * .google.protobuf.Value before = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The before. + */ + public com.google.protobuf.Value getBefore() { + if (beforeBuilder_ == null) { + return before_ == null ? com.google.protobuf.Value.getDefaultInstance() : before_; + } else { + return beforeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Representations of the object value before the actions.
+     * 
+ * + * .google.protobuf.Value before = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setBefore(com.google.protobuf.Value value) { + if (beforeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + before_ = value; + } else { + beforeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Representations of the object value before the actions.
+     * 
+ * + * .google.protobuf.Value before = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setBefore(com.google.protobuf.Value.Builder builderForValue) { + if (beforeBuilder_ == null) { + before_ = builderForValue.build(); + } else { + beforeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Representations of the object value before the actions.
+     * 
+ * + * .google.protobuf.Value before = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeBefore(com.google.protobuf.Value value) { + if (beforeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && before_ != null + && before_ != com.google.protobuf.Value.getDefaultInstance()) { + getBeforeBuilder().mergeFrom(value); + } else { + before_ = value; + } + } else { + beforeBuilder_.mergeFrom(value); + } + if (before_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Representations of the object value before the actions.
+     * 
+ * + * .google.protobuf.Value before = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearBefore() { + bitField0_ = (bitField0_ & ~0x00000004); + before_ = null; + if (beforeBuilder_ != null) { + beforeBuilder_.dispose(); + beforeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Representations of the object value before the actions.
+     * 
+ * + * .google.protobuf.Value before = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.Value.Builder getBeforeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getBeforeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Representations of the object value before the actions.
+     * 
+ * + * .google.protobuf.Value before = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.ValueOrBuilder getBeforeOrBuilder() { + if (beforeBuilder_ != null) { + return beforeBuilder_.getMessageOrBuilder(); + } else { + return before_ == null ? com.google.protobuf.Value.getDefaultInstance() : before_; + } + } + + /** + * + * + *
+     * Output only. Representations of the object value before the actions.
+     * 
+ * + * .google.protobuf.Value before = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + getBeforeFieldBuilder() { + if (beforeBuilder_ == null) { + beforeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder>(getBefore(), getParentForChildren(), isClean()); + before_ = null; + } + return beforeBuilder_; + } + + private com.google.protobuf.LazyStringArrayList afterSensitivePaths_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAfterSensitivePathsIsMutable() { + if (!afterSensitivePaths_.isModifiable()) { + afterSensitivePaths_ = new com.google.protobuf.LazyStringArrayList(afterSensitivePaths_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
+     * Output only. The paths of sensitive fields in `after`. Paths are relative
+     * to `path`.
+     * 
+ * + * repeated string after_sensitive_paths = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the afterSensitivePaths. + */ + public com.google.protobuf.ProtocolStringList getAfterSensitivePathsList() { + afterSensitivePaths_.makeImmutable(); + return afterSensitivePaths_; + } + + /** + * + * + *
+     * Output only. The paths of sensitive fields in `after`. Paths are relative
+     * to `path`.
+     * 
+ * + * repeated string after_sensitive_paths = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of afterSensitivePaths. + */ + public int getAfterSensitivePathsCount() { + return afterSensitivePaths_.size(); + } + + /** + * + * + *
+     * Output only. The paths of sensitive fields in `after`. Paths are relative
+     * to `path`.
+     * 
+ * + * repeated string after_sensitive_paths = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The afterSensitivePaths at the given index. + */ + public java.lang.String getAfterSensitivePaths(int index) { + return afterSensitivePaths_.get(index); + } + + /** + * + * + *
+     * Output only. The paths of sensitive fields in `after`. Paths are relative
+     * to `path`.
+     * 
+ * + * repeated string after_sensitive_paths = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the afterSensitivePaths at the given index. + */ + public com.google.protobuf.ByteString getAfterSensitivePathsBytes(int index) { + return afterSensitivePaths_.getByteString(index); + } + + /** + * + * + *
+     * Output only. The paths of sensitive fields in `after`. Paths are relative
+     * to `path`.
+     * 
+ * + * repeated string after_sensitive_paths = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The afterSensitivePaths to set. + * @return This builder for chaining. + */ + public Builder setAfterSensitivePaths(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAfterSensitivePathsIsMutable(); + afterSensitivePaths_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The paths of sensitive fields in `after`. Paths are relative
+     * to `path`.
+     * 
+ * + * repeated string after_sensitive_paths = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The afterSensitivePaths to add. + * @return This builder for chaining. + */ + public Builder addAfterSensitivePaths(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAfterSensitivePathsIsMutable(); + afterSensitivePaths_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The paths of sensitive fields in `after`. Paths are relative
+     * to `path`.
+     * 
+ * + * repeated string after_sensitive_paths = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The afterSensitivePaths to add. + * @return This builder for chaining. + */ + public Builder addAllAfterSensitivePaths(java.lang.Iterable values) { + ensureAfterSensitivePathsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, afterSensitivePaths_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The paths of sensitive fields in `after`. Paths are relative
+     * to `path`.
+     * 
+ * + * repeated string after_sensitive_paths = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearAfterSensitivePaths() { + afterSensitivePaths_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The paths of sensitive fields in `after`. Paths are relative
+     * to `path`.
+     * 
+ * + * repeated string after_sensitive_paths = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes of the afterSensitivePaths to add. + * @return This builder for chaining. + */ + public Builder addAfterSensitivePathsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAfterSensitivePathsIsMutable(); + afterSensitivePaths_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.Value after_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + afterBuilder_; + + /** + * + * + *
+     * Output only. Representations of the object value after the actions.
+     * 
+ * + * .google.protobuf.Value after = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the after field is set. + */ + public boolean hasAfter() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Output only. Representations of the object value after the actions.
+     * 
+ * + * .google.protobuf.Value after = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The after. + */ + public com.google.protobuf.Value getAfter() { + if (afterBuilder_ == null) { + return after_ == null ? com.google.protobuf.Value.getDefaultInstance() : after_; + } else { + return afterBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Representations of the object value after the actions.
+     * 
+ * + * .google.protobuf.Value after = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setAfter(com.google.protobuf.Value value) { + if (afterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + after_ = value; + } else { + afterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Representations of the object value after the actions.
+     * 
+ * + * .google.protobuf.Value after = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setAfter(com.google.protobuf.Value.Builder builderForValue) { + if (afterBuilder_ == null) { + after_ = builderForValue.build(); + } else { + afterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Representations of the object value after the actions.
+     * 
+ * + * .google.protobuf.Value after = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeAfter(com.google.protobuf.Value value) { + if (afterBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && after_ != null + && after_ != com.google.protobuf.Value.getDefaultInstance()) { + getAfterBuilder().mergeFrom(value); + } else { + after_ = value; + } + } else { + afterBuilder_.mergeFrom(value); + } + if (after_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Representations of the object value after the actions.
+     * 
+ * + * .google.protobuf.Value after = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearAfter() { + bitField0_ = (bitField0_ & ~0x00000010); + after_ = null; + if (afterBuilder_ != null) { + afterBuilder_.dispose(); + afterBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Representations of the object value after the actions.
+     * 
+ * + * .google.protobuf.Value after = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.Value.Builder getAfterBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getAfterFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Representations of the object value after the actions.
+     * 
+ * + * .google.protobuf.Value after = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.ValueOrBuilder getAfterOrBuilder() { + if (afterBuilder_ != null) { + return afterBuilder_.getMessageOrBuilder(); + } else { + return after_ == null ? com.google.protobuf.Value.getDefaultInstance() : after_; + } + } + + /** + * + * + *
+     * Output only. Representations of the object value after the actions.
+     * 
+ * + * .google.protobuf.Value after = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + getAfterFieldBuilder() { + if (afterBuilder_ == null) { + afterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder>(getAfter(), getParentForChildren(), isClean()); + after_ = null; + } + return afterBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.config.v1.PropertyDrift) + } + + // @@protoc_insertion_point(class_scope:google.cloud.config.v1.PropertyDrift) + private static final com.google.cloud.config.v1.PropertyDrift DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.config.v1.PropertyDrift(); + } + + public static com.google.cloud.config.v1.PropertyDrift getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PropertyDrift parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.config.v1.PropertyDrift getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/PropertyDriftOrBuilder.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/PropertyDriftOrBuilder.java new file mode 100644 index 000000000000..44d695f85548 --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/PropertyDriftOrBuilder.java @@ -0,0 +1,250 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/config/v1/config.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.config.v1; + +public interface PropertyDriftOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.config.v1.PropertyDrift) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The path of the property drift.
+   * 
+ * + * string path = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The path. + */ + java.lang.String getPath(); + + /** + * + * + *
+   * Output only. The path of the property drift.
+   * 
+ * + * string path = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for path. + */ + com.google.protobuf.ByteString getPathBytes(); + + /** + * + * + *
+   * Output only. The paths of sensitive fields in `before`. Paths are relative
+   * to `path`.
+   * 
+ * + * repeated string before_sensitive_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the beforeSensitivePaths. + */ + java.util.List getBeforeSensitivePathsList(); + + /** + * + * + *
+   * Output only. The paths of sensitive fields in `before`. Paths are relative
+   * to `path`.
+   * 
+ * + * repeated string before_sensitive_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of beforeSensitivePaths. + */ + int getBeforeSensitivePathsCount(); + + /** + * + * + *
+   * Output only. The paths of sensitive fields in `before`. Paths are relative
+   * to `path`.
+   * 
+ * + * repeated string before_sensitive_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The beforeSensitivePaths at the given index. + */ + java.lang.String getBeforeSensitivePaths(int index); + + /** + * + * + *
+   * Output only. The paths of sensitive fields in `before`. Paths are relative
+   * to `path`.
+   * 
+ * + * repeated string before_sensitive_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the beforeSensitivePaths at the given index. + */ + com.google.protobuf.ByteString getBeforeSensitivePathsBytes(int index); + + /** + * + * + *
+   * Output only. Representations of the object value before the actions.
+   * 
+ * + * .google.protobuf.Value before = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the before field is set. + */ + boolean hasBefore(); + + /** + * + * + *
+   * Output only. Representations of the object value before the actions.
+   * 
+ * + * .google.protobuf.Value before = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The before. + */ + com.google.protobuf.Value getBefore(); + + /** + * + * + *
+   * Output only. Representations of the object value before the actions.
+   * 
+ * + * .google.protobuf.Value before = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.protobuf.ValueOrBuilder getBeforeOrBuilder(); + + /** + * + * + *
+   * Output only. The paths of sensitive fields in `after`. Paths are relative
+   * to `path`.
+   * 
+ * + * repeated string after_sensitive_paths = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the afterSensitivePaths. + */ + java.util.List getAfterSensitivePathsList(); + + /** + * + * + *
+   * Output only. The paths of sensitive fields in `after`. Paths are relative
+   * to `path`.
+   * 
+ * + * repeated string after_sensitive_paths = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of afterSensitivePaths. + */ + int getAfterSensitivePathsCount(); + + /** + * + * + *
+   * Output only. The paths of sensitive fields in `after`. Paths are relative
+   * to `path`.
+   * 
+ * + * repeated string after_sensitive_paths = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The afterSensitivePaths at the given index. + */ + java.lang.String getAfterSensitivePaths(int index); + + /** + * + * + *
+   * Output only. The paths of sensitive fields in `after`. Paths are relative
+   * to `path`.
+   * 
+ * + * repeated string after_sensitive_paths = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the afterSensitivePaths at the given index. + */ + com.google.protobuf.ByteString getAfterSensitivePathsBytes(int index); + + /** + * + * + *
+   * Output only. Representations of the object value after the actions.
+   * 
+ * + * .google.protobuf.Value after = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the after field is set. + */ + boolean hasAfter(); + + /** + * + * + *
+   * Output only. Representations of the object value after the actions.
+   * 
+ * + * .google.protobuf.Value after = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The after. + */ + com.google.protobuf.Value getAfter(); + + /** + * + * + *
+   * Output only. Representations of the object value after the actions.
+   * 
+ * + * .google.protobuf.Value after = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.protobuf.ValueOrBuilder getAfterOrBuilder(); +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ResourceChange.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ResourceChange.java new file mode 100644 index 000000000000..a0358f74a032 --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ResourceChange.java @@ -0,0 +1,1937 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/config/v1/config.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.config.v1; + +/** + * + * + *
+ * A resource change represents a change to a resource in the state file.
+ * 
+ * + * Protobuf type {@code google.cloud.config.v1.ResourceChange} + */ +public final class ResourceChange extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.config.v1.ResourceChange) + ResourceChangeOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ResourceChange.newBuilder() to construct. + private ResourceChange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ResourceChange() { + name_ = ""; + intent_ = 0; + propertyChanges_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ResourceChange(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ResourceChange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ResourceChange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.ResourceChange.class, + com.google.cloud.config.v1.ResourceChange.Builder.class); + } + + /** + * + * + *
+   * Possible intent of the resource change.
+   * 
+ * + * Protobuf enum {@code google.cloud.config.v1.ResourceChange.Intent} + */ + public enum Intent implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The default value.
+     * 
+ * + * INTENT_UNSPECIFIED = 0; + */ + INTENT_UNSPECIFIED(0), + /** + * + * + *
+     * The resource will be created.
+     * 
+ * + * CREATE = 1; + */ + CREATE(1), + /** + * + * + *
+     * The resource will be updated.
+     * 
+ * + * UPDATE = 2; + */ + UPDATE(2), + /** + * + * + *
+     * The resource will be deleted.
+     * 
+ * + * DELETE = 3; + */ + DELETE(3), + /** + * + * + *
+     * The resource will be recreated.
+     * 
+ * + * RECREATE = 4; + */ + RECREATE(4), + /** + * + * + *
+     * The resource will be untouched.
+     * 
+ * + * UNCHANGED = 5; + */ + UNCHANGED(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * The default value.
+     * 
+ * + * INTENT_UNSPECIFIED = 0; + */ + public static final int INTENT_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The resource will be created.
+     * 
+ * + * CREATE = 1; + */ + public static final int CREATE_VALUE = 1; + + /** + * + * + *
+     * The resource will be updated.
+     * 
+ * + * UPDATE = 2; + */ + public static final int UPDATE_VALUE = 2; + + /** + * + * + *
+     * The resource will be deleted.
+     * 
+ * + * DELETE = 3; + */ + public static final int DELETE_VALUE = 3; + + /** + * + * + *
+     * The resource will be recreated.
+     * 
+ * + * RECREATE = 4; + */ + public static final int RECREATE_VALUE = 4; + + /** + * + * + *
+     * The resource will be untouched.
+     * 
+ * + * UNCHANGED = 5; + */ + public static final int UNCHANGED_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Intent 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 Intent forNumber(int value) { + switch (value) { + case 0: + return INTENT_UNSPECIFIED; + case 1: + return CREATE; + case 2: + return UPDATE; + case 3: + return DELETE; + case 4: + return RECREATE; + case 5: + return UNCHANGED; + 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 Intent findValueByNumber(int number) { + return Intent.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.config.v1.ResourceChange.getDescriptor().getEnumTypes().get(0); + } + + private static final Intent[] VALUES = values(); + + public static Intent 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 Intent(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.config.v1.ResourceChange.Intent) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. The name of the resource change.
+   * Format:
+   * 'projects/{project_id}/locations/{location}/previews/{preview}/resourceChanges/{resource_change}'.
+   * 
+ * + * 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 name of the resource change.
+   * Format:
+   * 'projects/{project_id}/locations/{location}/previews/{preview}/resourceChanges/{resource_change}'.
+   * 
+ * + * 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 TERRAFORM_INFO_FIELD_NUMBER = 2; + private com.google.cloud.config.v1.ResourceChangeTerraformInfo terraformInfo_; + + /** + * + * + *
+   * Output only. Terraform info of the resource change.
+   * 
+ * + * + * .google.cloud.config.v1.ResourceChangeTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the terraformInfo field is set. + */ + @java.lang.Override + public boolean hasTerraformInfo() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. Terraform info of the resource change.
+   * 
+ * + * + * .google.cloud.config.v1.ResourceChangeTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The terraformInfo. + */ + @java.lang.Override + public com.google.cloud.config.v1.ResourceChangeTerraformInfo getTerraformInfo() { + return terraformInfo_ == null + ? com.google.cloud.config.v1.ResourceChangeTerraformInfo.getDefaultInstance() + : terraformInfo_; + } + + /** + * + * + *
+   * Output only. Terraform info of the resource change.
+   * 
+ * + * + * .google.cloud.config.v1.ResourceChangeTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.config.v1.ResourceChangeTerraformInfoOrBuilder + getTerraformInfoOrBuilder() { + return terraformInfo_ == null + ? com.google.cloud.config.v1.ResourceChangeTerraformInfo.getDefaultInstance() + : terraformInfo_; + } + + public static final int INTENT_FIELD_NUMBER = 3; + private int intent_ = 0; + + /** + * + * + *
+   * Output only. The intent of the resource change.
+   * 
+ * + * + * .google.cloud.config.v1.ResourceChange.Intent intent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for intent. + */ + @java.lang.Override + public int getIntentValue() { + return intent_; + } + + /** + * + * + *
+   * Output only. The intent of the resource change.
+   * 
+ * + * + * .google.cloud.config.v1.ResourceChange.Intent intent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The intent. + */ + @java.lang.Override + public com.google.cloud.config.v1.ResourceChange.Intent getIntent() { + com.google.cloud.config.v1.ResourceChange.Intent result = + com.google.cloud.config.v1.ResourceChange.Intent.forNumber(intent_); + return result == null ? com.google.cloud.config.v1.ResourceChange.Intent.UNRECOGNIZED : result; + } + + public static final int PROPERTY_CHANGES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List propertyChanges_; + + /** + * + * + *
+   * Output only. The property changes of the resource change.
+   * 
+ * + * + * repeated .google.cloud.config.v1.PropertyChange property_changes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getPropertyChangesList() { + return propertyChanges_; + } + + /** + * + * + *
+   * Output only. The property changes of the resource change.
+   * 
+ * + * + * repeated .google.cloud.config.v1.PropertyChange property_changes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getPropertyChangesOrBuilderList() { + return propertyChanges_; + } + + /** + * + * + *
+   * Output only. The property changes of the resource change.
+   * 
+ * + * + * repeated .google.cloud.config.v1.PropertyChange property_changes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getPropertyChangesCount() { + return propertyChanges_.size(); + } + + /** + * + * + *
+   * Output only. The property changes of the resource change.
+   * 
+ * + * + * repeated .google.cloud.config.v1.PropertyChange property_changes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.config.v1.PropertyChange getPropertyChanges(int index) { + return propertyChanges_.get(index); + } + + /** + * + * + *
+   * Output only. The property changes of the resource change.
+   * 
+ * + * + * repeated .google.cloud.config.v1.PropertyChange property_changes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.config.v1.PropertyChangeOrBuilder getPropertyChangesOrBuilder(int index) { + return propertyChanges_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getTerraformInfo()); + } + if (intent_ + != com.google.cloud.config.v1.ResourceChange.Intent.INTENT_UNSPECIFIED.getNumber()) { + output.writeEnum(3, intent_); + } + for (int i = 0; i < propertyChanges_.size(); i++) { + output.writeMessage(4, propertyChanges_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTerraformInfo()); + } + if (intent_ + != com.google.cloud.config.v1.ResourceChange.Intent.INTENT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, intent_); + } + for (int i = 0; i < propertyChanges_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, propertyChanges_.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.cloud.config.v1.ResourceChange)) { + return super.equals(obj); + } + com.google.cloud.config.v1.ResourceChange other = + (com.google.cloud.config.v1.ResourceChange) obj; + + if (!getName().equals(other.getName())) return false; + if (hasTerraformInfo() != other.hasTerraformInfo()) return false; + if (hasTerraformInfo()) { + if (!getTerraformInfo().equals(other.getTerraformInfo())) return false; + } + if (intent_ != other.intent_) return false; + if (!getPropertyChangesList().equals(other.getPropertyChangesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasTerraformInfo()) { + hash = (37 * hash) + TERRAFORM_INFO_FIELD_NUMBER; + hash = (53 * hash) + getTerraformInfo().hashCode(); + } + hash = (37 * hash) + INTENT_FIELD_NUMBER; + hash = (53 * hash) + intent_; + if (getPropertyChangesCount() > 0) { + hash = (37 * hash) + PROPERTY_CHANGES_FIELD_NUMBER; + hash = (53 * hash) + getPropertyChangesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.config.v1.ResourceChange parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.ResourceChange parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.ResourceChange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.ResourceChange parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.ResourceChange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.ResourceChange parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.ResourceChange parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.ResourceChange parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.config.v1.ResourceChange parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.ResourceChange parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.config.v1.ResourceChange parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.ResourceChange parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.config.v1.ResourceChange prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A resource change represents a change to a resource in the state file.
+   * 
+ * + * Protobuf type {@code google.cloud.config.v1.ResourceChange} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.config.v1.ResourceChange) + com.google.cloud.config.v1.ResourceChangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ResourceChange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ResourceChange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.ResourceChange.class, + com.google.cloud.config.v1.ResourceChange.Builder.class); + } + + // Construct using com.google.cloud.config.v1.ResourceChange.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTerraformInfoFieldBuilder(); + getPropertyChangesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + terraformInfo_ = null; + if (terraformInfoBuilder_ != null) { + terraformInfoBuilder_.dispose(); + terraformInfoBuilder_ = null; + } + intent_ = 0; + if (propertyChangesBuilder_ == null) { + propertyChanges_ = java.util.Collections.emptyList(); + } else { + propertyChanges_ = null; + propertyChangesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ResourceChange_descriptor; + } + + @java.lang.Override + public com.google.cloud.config.v1.ResourceChange getDefaultInstanceForType() { + return com.google.cloud.config.v1.ResourceChange.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.config.v1.ResourceChange build() { + com.google.cloud.config.v1.ResourceChange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.config.v1.ResourceChange buildPartial() { + com.google.cloud.config.v1.ResourceChange result = + new com.google.cloud.config.v1.ResourceChange(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.config.v1.ResourceChange result) { + if (propertyChangesBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + propertyChanges_ = java.util.Collections.unmodifiableList(propertyChanges_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.propertyChanges_ = propertyChanges_; + } else { + result.propertyChanges_ = propertyChangesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.config.v1.ResourceChange result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.terraformInfo_ = + terraformInfoBuilder_ == null ? terraformInfo_ : terraformInfoBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.intent_ = intent_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.config.v1.ResourceChange) { + return mergeFrom((com.google.cloud.config.v1.ResourceChange) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.config.v1.ResourceChange other) { + if (other == com.google.cloud.config.v1.ResourceChange.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasTerraformInfo()) { + mergeTerraformInfo(other.getTerraformInfo()); + } + if (other.intent_ != 0) { + setIntentValue(other.getIntentValue()); + } + if (propertyChangesBuilder_ == null) { + if (!other.propertyChanges_.isEmpty()) { + if (propertyChanges_.isEmpty()) { + propertyChanges_ = other.propertyChanges_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensurePropertyChangesIsMutable(); + propertyChanges_.addAll(other.propertyChanges_); + } + onChanged(); + } + } else { + if (!other.propertyChanges_.isEmpty()) { + if (propertyChangesBuilder_.isEmpty()) { + propertyChangesBuilder_.dispose(); + propertyChangesBuilder_ = null; + propertyChanges_ = other.propertyChanges_; + bitField0_ = (bitField0_ & ~0x00000008); + propertyChangesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPropertyChangesFieldBuilder() + : null; + } else { + propertyChangesBuilder_.addAllMessages(other.propertyChanges_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getTerraformInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + intent_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + com.google.cloud.config.v1.PropertyChange m = + input.readMessage( + com.google.cloud.config.v1.PropertyChange.parser(), extensionRegistry); + if (propertyChangesBuilder_ == null) { + ensurePropertyChangesIsMutable(); + propertyChanges_.add(m); + } else { + propertyChangesBuilder_.addMessage(m); + } + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Identifier. The name of the resource change.
+     * Format:
+     * 'projects/{project_id}/locations/{location}/previews/{preview}/resourceChanges/{resource_change}'.
+     * 
+ * + * 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 name of the resource change.
+     * Format:
+     * 'projects/{project_id}/locations/{location}/previews/{preview}/resourceChanges/{resource_change}'.
+     * 
+ * + * 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 name of the resource change.
+     * Format:
+     * 'projects/{project_id}/locations/{location}/previews/{preview}/resourceChanges/{resource_change}'.
+     * 
+ * + * 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 name of the resource change.
+     * Format:
+     * 'projects/{project_id}/locations/{location}/previews/{preview}/resourceChanges/{resource_change}'.
+     * 
+ * + * 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 name of the resource change.
+     * Format:
+     * 'projects/{project_id}/locations/{location}/previews/{preview}/resourceChanges/{resource_change}'.
+     * 
+ * + * 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 com.google.cloud.config.v1.ResourceChangeTerraformInfo terraformInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.config.v1.ResourceChangeTerraformInfo, + com.google.cloud.config.v1.ResourceChangeTerraformInfo.Builder, + com.google.cloud.config.v1.ResourceChangeTerraformInfoOrBuilder> + terraformInfoBuilder_; + + /** + * + * + *
+     * Output only. Terraform info of the resource change.
+     * 
+ * + * + * .google.cloud.config.v1.ResourceChangeTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the terraformInfo field is set. + */ + public boolean hasTerraformInfo() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. Terraform info of the resource change.
+     * 
+ * + * + * .google.cloud.config.v1.ResourceChangeTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The terraformInfo. + */ + public com.google.cloud.config.v1.ResourceChangeTerraformInfo getTerraformInfo() { + if (terraformInfoBuilder_ == null) { + return terraformInfo_ == null + ? com.google.cloud.config.v1.ResourceChangeTerraformInfo.getDefaultInstance() + : terraformInfo_; + } else { + return terraformInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Terraform info of the resource change.
+     * 
+ * + * + * .google.cloud.config.v1.ResourceChangeTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTerraformInfo(com.google.cloud.config.v1.ResourceChangeTerraformInfo value) { + if (terraformInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + terraformInfo_ = value; + } else { + terraformInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Terraform info of the resource change.
+     * 
+ * + * + * .google.cloud.config.v1.ResourceChangeTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTerraformInfo( + com.google.cloud.config.v1.ResourceChangeTerraformInfo.Builder builderForValue) { + if (terraformInfoBuilder_ == null) { + terraformInfo_ = builderForValue.build(); + } else { + terraformInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Terraform info of the resource change.
+     * 
+ * + * + * .google.cloud.config.v1.ResourceChangeTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeTerraformInfo( + com.google.cloud.config.v1.ResourceChangeTerraformInfo value) { + if (terraformInfoBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && terraformInfo_ != null + && terraformInfo_ + != com.google.cloud.config.v1.ResourceChangeTerraformInfo.getDefaultInstance()) { + getTerraformInfoBuilder().mergeFrom(value); + } else { + terraformInfo_ = value; + } + } else { + terraformInfoBuilder_.mergeFrom(value); + } + if (terraformInfo_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Terraform info of the resource change.
+     * 
+ * + * + * .google.cloud.config.v1.ResourceChangeTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearTerraformInfo() { + bitField0_ = (bitField0_ & ~0x00000002); + terraformInfo_ = null; + if (terraformInfoBuilder_ != null) { + terraformInfoBuilder_.dispose(); + terraformInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Terraform info of the resource change.
+     * 
+ * + * + * .google.cloud.config.v1.ResourceChangeTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.config.v1.ResourceChangeTerraformInfo.Builder + getTerraformInfoBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getTerraformInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Terraform info of the resource change.
+     * 
+ * + * + * .google.cloud.config.v1.ResourceChangeTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.config.v1.ResourceChangeTerraformInfoOrBuilder + getTerraformInfoOrBuilder() { + if (terraformInfoBuilder_ != null) { + return terraformInfoBuilder_.getMessageOrBuilder(); + } else { + return terraformInfo_ == null + ? com.google.cloud.config.v1.ResourceChangeTerraformInfo.getDefaultInstance() + : terraformInfo_; + } + } + + /** + * + * + *
+     * Output only. Terraform info of the resource change.
+     * 
+ * + * + * .google.cloud.config.v1.ResourceChangeTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.config.v1.ResourceChangeTerraformInfo, + com.google.cloud.config.v1.ResourceChangeTerraformInfo.Builder, + com.google.cloud.config.v1.ResourceChangeTerraformInfoOrBuilder> + getTerraformInfoFieldBuilder() { + if (terraformInfoBuilder_ == null) { + terraformInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.config.v1.ResourceChangeTerraformInfo, + com.google.cloud.config.v1.ResourceChangeTerraformInfo.Builder, + com.google.cloud.config.v1.ResourceChangeTerraformInfoOrBuilder>( + getTerraformInfo(), getParentForChildren(), isClean()); + terraformInfo_ = null; + } + return terraformInfoBuilder_; + } + + private int intent_ = 0; + + /** + * + * + *
+     * Output only. The intent of the resource change.
+     * 
+ * + * + * .google.cloud.config.v1.ResourceChange.Intent intent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for intent. + */ + @java.lang.Override + public int getIntentValue() { + return intent_; + } + + /** + * + * + *
+     * Output only. The intent of the resource change.
+     * 
+ * + * + * .google.cloud.config.v1.ResourceChange.Intent intent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for intent to set. + * @return This builder for chaining. + */ + public Builder setIntentValue(int value) { + intent_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The intent of the resource change.
+     * 
+ * + * + * .google.cloud.config.v1.ResourceChange.Intent intent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The intent. + */ + @java.lang.Override + public com.google.cloud.config.v1.ResourceChange.Intent getIntent() { + com.google.cloud.config.v1.ResourceChange.Intent result = + com.google.cloud.config.v1.ResourceChange.Intent.forNumber(intent_); + return result == null + ? com.google.cloud.config.v1.ResourceChange.Intent.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. The intent of the resource change.
+     * 
+ * + * + * .google.cloud.config.v1.ResourceChange.Intent intent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The intent to set. + * @return This builder for chaining. + */ + public Builder setIntent(com.google.cloud.config.v1.ResourceChange.Intent value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + intent_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The intent of the resource change.
+     * 
+ * + * + * .google.cloud.config.v1.ResourceChange.Intent intent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearIntent() { + bitField0_ = (bitField0_ & ~0x00000004); + intent_ = 0; + onChanged(); + return this; + } + + private java.util.List propertyChanges_ = + java.util.Collections.emptyList(); + + private void ensurePropertyChangesIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + propertyChanges_ = + new java.util.ArrayList(propertyChanges_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.config.v1.PropertyChange, + com.google.cloud.config.v1.PropertyChange.Builder, + com.google.cloud.config.v1.PropertyChangeOrBuilder> + propertyChangesBuilder_; + + /** + * + * + *
+     * Output only. The property changes of the resource change.
+     * 
+ * + * + * repeated .google.cloud.config.v1.PropertyChange property_changes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getPropertyChangesList() { + if (propertyChangesBuilder_ == null) { + return java.util.Collections.unmodifiableList(propertyChanges_); + } else { + return propertyChangesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. The property changes of the resource change.
+     * 
+ * + * + * repeated .google.cloud.config.v1.PropertyChange property_changes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getPropertyChangesCount() { + if (propertyChangesBuilder_ == null) { + return propertyChanges_.size(); + } else { + return propertyChangesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. The property changes of the resource change.
+     * 
+ * + * + * repeated .google.cloud.config.v1.PropertyChange property_changes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.config.v1.PropertyChange getPropertyChanges(int index) { + if (propertyChangesBuilder_ == null) { + return propertyChanges_.get(index); + } else { + return propertyChangesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. The property changes of the resource change.
+     * 
+ * + * + * repeated .google.cloud.config.v1.PropertyChange property_changes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPropertyChanges(int index, com.google.cloud.config.v1.PropertyChange value) { + if (propertyChangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropertyChangesIsMutable(); + propertyChanges_.set(index, value); + onChanged(); + } else { + propertyChangesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The property changes of the resource change.
+     * 
+ * + * + * repeated .google.cloud.config.v1.PropertyChange property_changes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPropertyChanges( + int index, com.google.cloud.config.v1.PropertyChange.Builder builderForValue) { + if (propertyChangesBuilder_ == null) { + ensurePropertyChangesIsMutable(); + propertyChanges_.set(index, builderForValue.build()); + onChanged(); + } else { + propertyChangesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The property changes of the resource change.
+     * 
+ * + * + * repeated .google.cloud.config.v1.PropertyChange property_changes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPropertyChanges(com.google.cloud.config.v1.PropertyChange value) { + if (propertyChangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropertyChangesIsMutable(); + propertyChanges_.add(value); + onChanged(); + } else { + propertyChangesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. The property changes of the resource change.
+     * 
+ * + * + * repeated .google.cloud.config.v1.PropertyChange property_changes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPropertyChanges(int index, com.google.cloud.config.v1.PropertyChange value) { + if (propertyChangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropertyChangesIsMutable(); + propertyChanges_.add(index, value); + onChanged(); + } else { + propertyChangesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The property changes of the resource change.
+     * 
+ * + * + * repeated .google.cloud.config.v1.PropertyChange property_changes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPropertyChanges( + com.google.cloud.config.v1.PropertyChange.Builder builderForValue) { + if (propertyChangesBuilder_ == null) { + ensurePropertyChangesIsMutable(); + propertyChanges_.add(builderForValue.build()); + onChanged(); + } else { + propertyChangesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The property changes of the resource change.
+     * 
+ * + * + * repeated .google.cloud.config.v1.PropertyChange property_changes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPropertyChanges( + int index, com.google.cloud.config.v1.PropertyChange.Builder builderForValue) { + if (propertyChangesBuilder_ == null) { + ensurePropertyChangesIsMutable(); + propertyChanges_.add(index, builderForValue.build()); + onChanged(); + } else { + propertyChangesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The property changes of the resource change.
+     * 
+ * + * + * repeated .google.cloud.config.v1.PropertyChange property_changes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllPropertyChanges( + java.lang.Iterable values) { + if (propertyChangesBuilder_ == null) { + ensurePropertyChangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, propertyChanges_); + onChanged(); + } else { + propertyChangesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. The property changes of the resource change.
+     * 
+ * + * + * repeated .google.cloud.config.v1.PropertyChange property_changes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearPropertyChanges() { + if (propertyChangesBuilder_ == null) { + propertyChanges_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + propertyChangesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. The property changes of the resource change.
+     * 
+ * + * + * repeated .google.cloud.config.v1.PropertyChange property_changes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removePropertyChanges(int index) { + if (propertyChangesBuilder_ == null) { + ensurePropertyChangesIsMutable(); + propertyChanges_.remove(index); + onChanged(); + } else { + propertyChangesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. The property changes of the resource change.
+     * 
+ * + * + * repeated .google.cloud.config.v1.PropertyChange property_changes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.config.v1.PropertyChange.Builder getPropertyChangesBuilder(int index) { + return getPropertyChangesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. The property changes of the resource change.
+     * 
+ * + * + * repeated .google.cloud.config.v1.PropertyChange property_changes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.config.v1.PropertyChangeOrBuilder getPropertyChangesOrBuilder( + int index) { + if (propertyChangesBuilder_ == null) { + return propertyChanges_.get(index); + } else { + return propertyChangesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. The property changes of the resource change.
+     * 
+ * + * + * repeated .google.cloud.config.v1.PropertyChange property_changes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getPropertyChangesOrBuilderList() { + if (propertyChangesBuilder_ != null) { + return propertyChangesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(propertyChanges_); + } + } + + /** + * + * + *
+     * Output only. The property changes of the resource change.
+     * 
+ * + * + * repeated .google.cloud.config.v1.PropertyChange property_changes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.config.v1.PropertyChange.Builder addPropertyChangesBuilder() { + return getPropertyChangesFieldBuilder() + .addBuilder(com.google.cloud.config.v1.PropertyChange.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The property changes of the resource change.
+     * 
+ * + * + * repeated .google.cloud.config.v1.PropertyChange property_changes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.config.v1.PropertyChange.Builder addPropertyChangesBuilder(int index) { + return getPropertyChangesFieldBuilder() + .addBuilder(index, com.google.cloud.config.v1.PropertyChange.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The property changes of the resource change.
+     * 
+ * + * + * repeated .google.cloud.config.v1.PropertyChange property_changes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getPropertyChangesBuilderList() { + return getPropertyChangesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.config.v1.PropertyChange, + com.google.cloud.config.v1.PropertyChange.Builder, + com.google.cloud.config.v1.PropertyChangeOrBuilder> + getPropertyChangesFieldBuilder() { + if (propertyChangesBuilder_ == null) { + propertyChangesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.config.v1.PropertyChange, + com.google.cloud.config.v1.PropertyChange.Builder, + com.google.cloud.config.v1.PropertyChangeOrBuilder>( + propertyChanges_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + propertyChanges_ = null; + } + return propertyChangesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.config.v1.ResourceChange) + } + + // @@protoc_insertion_point(class_scope:google.cloud.config.v1.ResourceChange) + private static final com.google.cloud.config.v1.ResourceChange DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.config.v1.ResourceChange(); + } + + public static com.google.cloud.config.v1.ResourceChange getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceChange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.config.v1.ResourceChange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ResourceChangeName.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ResourceChangeName.java new file mode 100644 index 000000000000..69ab098e71a9 --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ResourceChangeName.java @@ -0,0 +1,269 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.config.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class ResourceChangeName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_PREVIEW_RESOURCE_CHANGE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/previews/{preview}/resourceChanges/{resource_change}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String preview; + private final String resourceChange; + + @Deprecated + protected ResourceChangeName() { + project = null; + location = null; + preview = null; + resourceChange = null; + } + + private ResourceChangeName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + preview = Preconditions.checkNotNull(builder.getPreview()); + resourceChange = Preconditions.checkNotNull(builder.getResourceChange()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getPreview() { + return preview; + } + + public String getResourceChange() { + return resourceChange; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ResourceChangeName of( + String project, String location, String preview, String resourceChange) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setPreview(preview) + .setResourceChange(resourceChange) + .build(); + } + + public static String format( + String project, String location, String preview, String resourceChange) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setPreview(preview) + .setResourceChange(resourceChange) + .build() + .toString(); + } + + public static ResourceChangeName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_PREVIEW_RESOURCE_CHANGE.validatedMatch( + formattedString, "ResourceChangeName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("preview"), + matchMap.get("resource_change")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (ResourceChangeName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_PREVIEW_RESOURCE_CHANGE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (preview != null) { + fieldMapBuilder.put("preview", preview); + } + if (resourceChange != null) { + fieldMapBuilder.put("resource_change", resourceChange); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_PREVIEW_RESOURCE_CHANGE.instantiate( + "project", + project, + "location", + location, + "preview", + preview, + "resource_change", + resourceChange); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ResourceChangeName that = ((ResourceChangeName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.preview, that.preview) + && Objects.equals(this.resourceChange, that.resourceChange); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(preview); + h *= 1000003; + h ^= Objects.hashCode(resourceChange); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/previews/{preview}/resourceChanges/{resource_change}. + */ + public static class Builder { + private String project; + private String location; + private String preview; + private String resourceChange; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getPreview() { + return preview; + } + + public String getResourceChange() { + return resourceChange; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setPreview(String preview) { + this.preview = preview; + return this; + } + + public Builder setResourceChange(String resourceChange) { + this.resourceChange = resourceChange; + return this; + } + + private Builder(ResourceChangeName resourceChangeName) { + this.project = resourceChangeName.project; + this.location = resourceChangeName.location; + this.preview = resourceChangeName.preview; + this.resourceChange = resourceChangeName.resourceChange; + } + + public ResourceChangeName build() { + return new ResourceChangeName(this); + } + } +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ResourceChangeOrBuilder.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ResourceChangeOrBuilder.java new file mode 100644 index 000000000000..b8e8967e22de --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ResourceChangeOrBuilder.java @@ -0,0 +1,195 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/config/v1/config.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.config.v1; + +public interface ResourceChangeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.config.v1.ResourceChange) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. The name of the resource change.
+   * Format:
+   * 'projects/{project_id}/locations/{location}/previews/{preview}/resourceChanges/{resource_change}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. The name of the resource change.
+   * Format:
+   * 'projects/{project_id}/locations/{location}/previews/{preview}/resourceChanges/{resource_change}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. Terraform info of the resource change.
+   * 
+ * + * + * .google.cloud.config.v1.ResourceChangeTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the terraformInfo field is set. + */ + boolean hasTerraformInfo(); + + /** + * + * + *
+   * Output only. Terraform info of the resource change.
+   * 
+ * + * + * .google.cloud.config.v1.ResourceChangeTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The terraformInfo. + */ + com.google.cloud.config.v1.ResourceChangeTerraformInfo getTerraformInfo(); + + /** + * + * + *
+   * Output only. Terraform info of the resource change.
+   * 
+ * + * + * .google.cloud.config.v1.ResourceChangeTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.config.v1.ResourceChangeTerraformInfoOrBuilder getTerraformInfoOrBuilder(); + + /** + * + * + *
+   * Output only. The intent of the resource change.
+   * 
+ * + * + * .google.cloud.config.v1.ResourceChange.Intent intent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for intent. + */ + int getIntentValue(); + + /** + * + * + *
+   * Output only. The intent of the resource change.
+   * 
+ * + * + * .google.cloud.config.v1.ResourceChange.Intent intent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The intent. + */ + com.google.cloud.config.v1.ResourceChange.Intent getIntent(); + + /** + * + * + *
+   * Output only. The property changes of the resource change.
+   * 
+ * + * + * repeated .google.cloud.config.v1.PropertyChange property_changes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getPropertyChangesList(); + + /** + * + * + *
+   * Output only. The property changes of the resource change.
+   * 
+ * + * + * repeated .google.cloud.config.v1.PropertyChange property_changes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.config.v1.PropertyChange getPropertyChanges(int index); + + /** + * + * + *
+   * Output only. The property changes of the resource change.
+   * 
+ * + * + * repeated .google.cloud.config.v1.PropertyChange property_changes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getPropertyChangesCount(); + + /** + * + * + *
+   * Output only. The property changes of the resource change.
+   * 
+ * + * + * repeated .google.cloud.config.v1.PropertyChange property_changes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getPropertyChangesOrBuilderList(); + + /** + * + * + *
+   * Output only. The property changes of the resource change.
+   * 
+ * + * + * repeated .google.cloud.config.v1.PropertyChange property_changes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.config.v1.PropertyChangeOrBuilder getPropertyChangesOrBuilder(int index); +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ResourceChangeTerraformInfo.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ResourceChangeTerraformInfo.java new file mode 100644 index 000000000000..0775abfd5465 --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ResourceChangeTerraformInfo.java @@ -0,0 +1,1492 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/config/v1/config.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.config.v1; + +/** + * + * + *
+ * Terraform info of a ResourceChange.
+ * 
+ * + * Protobuf type {@code google.cloud.config.v1.ResourceChangeTerraformInfo} + */ +public final class ResourceChangeTerraformInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.config.v1.ResourceChangeTerraformInfo) + ResourceChangeTerraformInfoOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ResourceChangeTerraformInfo.newBuilder() to construct. + private ResourceChangeTerraformInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ResourceChangeTerraformInfo() { + address_ = ""; + type_ = ""; + resourceName_ = ""; + provider_ = ""; + actions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ResourceChangeTerraformInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ResourceChangeTerraformInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ResourceChangeTerraformInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.ResourceChangeTerraformInfo.class, + com.google.cloud.config.v1.ResourceChangeTerraformInfo.Builder.class); + } + + public static final int ADDRESS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object address_ = ""; + + /** + * + * + *
+   * Output only. TF resource address that uniquely identifies the resource.
+   * 
+ * + * string address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The address. + */ + @java.lang.Override + public java.lang.String getAddress() { + java.lang.Object ref = address_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + address_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. TF resource address that uniquely identifies the resource.
+   * 
+ * + * string address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for address. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAddressBytes() { + java.lang.Object ref = address_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + address_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object type_ = ""; + + /** + * + * + *
+   * Output only. TF resource type.
+   * 
+ * + * string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The type. + */ + @java.lang.Override + public java.lang.String getType() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. TF resource type.
+   * 
+ * + * string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for type. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_NAME_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object resourceName_ = ""; + + /** + * + * + *
+   * Output only. TF resource name.
+   * 
+ * + * string resource_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The resourceName. + */ + @java.lang.Override + public java.lang.String getResourceName() { + java.lang.Object ref = resourceName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceName_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. TF resource name.
+   * 
+ * + * string resource_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for resourceName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceNameBytes() { + java.lang.Object ref = resourceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROVIDER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object provider_ = ""; + + /** + * + * + *
+   * Output only. TF resource provider.
+   * 
+ * + * string provider = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The provider. + */ + @java.lang.Override + public java.lang.String getProvider() { + java.lang.Object ref = provider_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + provider_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. TF resource provider.
+   * 
+ * + * string provider = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for provider. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProviderBytes() { + java.lang.Object ref = provider_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + provider_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACTIONS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList actions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Output only. TF resource actions.
+   * 
+ * + * repeated string actions = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the actions. + */ + public com.google.protobuf.ProtocolStringList getActionsList() { + return actions_; + } + + /** + * + * + *
+   * Output only. TF resource actions.
+   * 
+ * + * repeated string actions = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of actions. + */ + public int getActionsCount() { + return actions_.size(); + } + + /** + * + * + *
+   * Output only. TF resource actions.
+   * 
+ * + * repeated string actions = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The actions at the given index. + */ + public java.lang.String getActions(int index) { + return actions_.get(index); + } + + /** + * + * + *
+   * Output only. TF resource actions.
+   * 
+ * + * repeated string actions = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the actions at the given index. + */ + public com.google.protobuf.ByteString getActionsBytes(int index) { + return actions_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, resourceName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(provider_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, provider_); + } + for (int i = 0; i < actions_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, actions_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, resourceName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(provider_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, provider_); + } + { + int dataSize = 0; + for (int i = 0; i < actions_.size(); i++) { + dataSize += computeStringSizeNoTag(actions_.getRaw(i)); + } + size += dataSize; + size += 1 * getActionsList().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.cloud.config.v1.ResourceChangeTerraformInfo)) { + return super.equals(obj); + } + com.google.cloud.config.v1.ResourceChangeTerraformInfo other = + (com.google.cloud.config.v1.ResourceChangeTerraformInfo) obj; + + if (!getAddress().equals(other.getAddress())) return false; + if (!getType().equals(other.getType())) return false; + if (!getResourceName().equals(other.getResourceName())) return false; + if (!getProvider().equals(other.getProvider())) return false; + if (!getActionsList().equals(other.getActionsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAddress().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + hash = (37 * hash) + RESOURCE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getResourceName().hashCode(); + hash = (37 * hash) + PROVIDER_FIELD_NUMBER; + hash = (53 * hash) + getProvider().hashCode(); + if (getActionsCount() > 0) { + hash = (37 * hash) + ACTIONS_FIELD_NUMBER; + hash = (53 * hash) + getActionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.config.v1.ResourceChangeTerraformInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.ResourceChangeTerraformInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.ResourceChangeTerraformInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.ResourceChangeTerraformInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.ResourceChangeTerraformInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.ResourceChangeTerraformInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.ResourceChangeTerraformInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.ResourceChangeTerraformInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.config.v1.ResourceChangeTerraformInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.ResourceChangeTerraformInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.config.v1.ResourceChangeTerraformInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.ResourceChangeTerraformInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.config.v1.ResourceChangeTerraformInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Terraform info of a ResourceChange.
+   * 
+ * + * Protobuf type {@code google.cloud.config.v1.ResourceChangeTerraformInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.config.v1.ResourceChangeTerraformInfo) + com.google.cloud.config.v1.ResourceChangeTerraformInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ResourceChangeTerraformInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ResourceChangeTerraformInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.ResourceChangeTerraformInfo.class, + com.google.cloud.config.v1.ResourceChangeTerraformInfo.Builder.class); + } + + // Construct using com.google.cloud.config.v1.ResourceChangeTerraformInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + address_ = ""; + type_ = ""; + resourceName_ = ""; + provider_ = ""; + actions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ResourceChangeTerraformInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.config.v1.ResourceChangeTerraformInfo getDefaultInstanceForType() { + return com.google.cloud.config.v1.ResourceChangeTerraformInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.config.v1.ResourceChangeTerraformInfo build() { + com.google.cloud.config.v1.ResourceChangeTerraformInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.config.v1.ResourceChangeTerraformInfo buildPartial() { + com.google.cloud.config.v1.ResourceChangeTerraformInfo result = + new com.google.cloud.config.v1.ResourceChangeTerraformInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.config.v1.ResourceChangeTerraformInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.address_ = address_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.resourceName_ = resourceName_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.provider_ = provider_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + actions_.makeImmutable(); + result.actions_ = actions_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.config.v1.ResourceChangeTerraformInfo) { + return mergeFrom((com.google.cloud.config.v1.ResourceChangeTerraformInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.config.v1.ResourceChangeTerraformInfo other) { + if (other == com.google.cloud.config.v1.ResourceChangeTerraformInfo.getDefaultInstance()) + return this; + if (!other.getAddress().isEmpty()) { + address_ = other.address_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getType().isEmpty()) { + type_ = other.type_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getResourceName().isEmpty()) { + resourceName_ = other.resourceName_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getProvider().isEmpty()) { + provider_ = other.provider_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.actions_.isEmpty()) { + if (actions_.isEmpty()) { + actions_ = other.actions_; + bitField0_ |= 0x00000010; + } else { + ensureActionsIsMutable(); + actions_.addAll(other.actions_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + address_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + type_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + resourceName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + provider_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureActionsIsMutable(); + actions_.add(s); + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object address_ = ""; + + /** + * + * + *
+     * Output only. TF resource address that uniquely identifies the resource.
+     * 
+ * + * string address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The address. + */ + public java.lang.String getAddress() { + java.lang.Object ref = address_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + address_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. TF resource address that uniquely identifies the resource.
+     * 
+ * + * string address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for address. + */ + public com.google.protobuf.ByteString getAddressBytes() { + java.lang.Object ref = address_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + address_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. TF resource address that uniquely identifies the resource.
+     * 
+ * + * string address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The address to set. + * @return This builder for chaining. + */ + public Builder setAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + address_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. TF resource address that uniquely identifies the resource.
+     * 
+ * + * string address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearAddress() { + address_ = getDefaultInstance().getAddress(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. TF resource address that uniquely identifies the resource.
+     * 
+ * + * string address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for address to set. + * @return This builder for chaining. + */ + public Builder setAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + address_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object type_ = ""; + + /** + * + * + *
+     * Output only. TF resource type.
+     * 
+ * + * string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The type. + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. TF resource type.
+     * 
+ * + * string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for type. + */ + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. TF resource type.
+     * 
+ * + * string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. TF resource type.
+     * 
+ * + * string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearType() { + type_ = getDefaultInstance().getType(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. TF resource type.
+     * 
+ * + * string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for type to set. + * @return This builder for chaining. + */ + public Builder setTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object resourceName_ = ""; + + /** + * + * + *
+     * Output only. TF resource name.
+     * 
+ * + * string resource_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The resourceName. + */ + public java.lang.String getResourceName() { + java.lang.Object ref = resourceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. TF resource name.
+     * 
+ * + * string resource_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for resourceName. + */ + public com.google.protobuf.ByteString getResourceNameBytes() { + java.lang.Object ref = resourceName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. TF resource name.
+     * 
+ * + * string resource_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The resourceName to set. + * @return This builder for chaining. + */ + public Builder setResourceName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resourceName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. TF resource name.
+     * 
+ * + * string resource_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearResourceName() { + resourceName_ = getDefaultInstance().getResourceName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. TF resource name.
+     * 
+ * + * string resource_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for resourceName to set. + * @return This builder for chaining. + */ + public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object provider_ = ""; + + /** + * + * + *
+     * Output only. TF resource provider.
+     * 
+ * + * string provider = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The provider. + */ + public java.lang.String getProvider() { + java.lang.Object ref = provider_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + provider_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. TF resource provider.
+     * 
+ * + * string provider = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for provider. + */ + public com.google.protobuf.ByteString getProviderBytes() { + java.lang.Object ref = provider_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + provider_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. TF resource provider.
+     * 
+ * + * string provider = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The provider to set. + * @return This builder for chaining. + */ + public Builder setProvider(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + provider_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. TF resource provider.
+     * 
+ * + * string provider = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearProvider() { + provider_ = getDefaultInstance().getProvider(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. TF resource provider.
+     * 
+ * + * string provider = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for provider to set. + * @return This builder for chaining. + */ + public Builder setProviderBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + provider_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList actions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureActionsIsMutable() { + if (!actions_.isModifiable()) { + actions_ = new com.google.protobuf.LazyStringArrayList(actions_); + } + bitField0_ |= 0x00000010; + } + + /** + * + * + *
+     * Output only. TF resource actions.
+     * 
+ * + * repeated string actions = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the actions. + */ + public com.google.protobuf.ProtocolStringList getActionsList() { + actions_.makeImmutable(); + return actions_; + } + + /** + * + * + *
+     * Output only. TF resource actions.
+     * 
+ * + * repeated string actions = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of actions. + */ + public int getActionsCount() { + return actions_.size(); + } + + /** + * + * + *
+     * Output only. TF resource actions.
+     * 
+ * + * repeated string actions = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The actions at the given index. + */ + public java.lang.String getActions(int index) { + return actions_.get(index); + } + + /** + * + * + *
+     * Output only. TF resource actions.
+     * 
+ * + * repeated string actions = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the actions at the given index. + */ + public com.google.protobuf.ByteString getActionsBytes(int index) { + return actions_.getByteString(index); + } + + /** + * + * + *
+     * Output only. TF resource actions.
+     * 
+ * + * repeated string actions = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index to set the value at. + * @param value The actions to set. + * @return This builder for chaining. + */ + public Builder setActions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureActionsIsMutable(); + actions_.set(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. TF resource actions.
+     * 
+ * + * repeated string actions = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The actions to add. + * @return This builder for chaining. + */ + public Builder addActions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureActionsIsMutable(); + actions_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. TF resource actions.
+     * 
+ * + * repeated string actions = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param values The actions to add. + * @return This builder for chaining. + */ + public Builder addAllActions(java.lang.Iterable values) { + ensureActionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, actions_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. TF resource actions.
+     * 
+ * + * repeated string actions = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearActions() { + actions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. TF resource actions.
+     * 
+ * + * repeated string actions = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes of the actions to add. + * @return This builder for chaining. + */ + public Builder addActionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureActionsIsMutable(); + actions_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.config.v1.ResourceChangeTerraformInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.config.v1.ResourceChangeTerraformInfo) + private static final com.google.cloud.config.v1.ResourceChangeTerraformInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.config.v1.ResourceChangeTerraformInfo(); + } + + public static com.google.cloud.config.v1.ResourceChangeTerraformInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceChangeTerraformInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.config.v1.ResourceChangeTerraformInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ResourceChangeTerraformInfoOrBuilder.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ResourceChangeTerraformInfoOrBuilder.java new file mode 100644 index 000000000000..ab9c1da5dacb --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ResourceChangeTerraformInfoOrBuilder.java @@ -0,0 +1,184 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/config/v1/config.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.config.v1; + +public interface ResourceChangeTerraformInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.config.v1.ResourceChangeTerraformInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. TF resource address that uniquely identifies the resource.
+   * 
+ * + * string address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The address. + */ + java.lang.String getAddress(); + + /** + * + * + *
+   * Output only. TF resource address that uniquely identifies the resource.
+   * 
+ * + * string address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for address. + */ + com.google.protobuf.ByteString getAddressBytes(); + + /** + * + * + *
+   * Output only. TF resource type.
+   * 
+ * + * string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The type. + */ + java.lang.String getType(); + + /** + * + * + *
+   * Output only. TF resource type.
+   * 
+ * + * string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for type. + */ + com.google.protobuf.ByteString getTypeBytes(); + + /** + * + * + *
+   * Output only. TF resource name.
+   * 
+ * + * string resource_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The resourceName. + */ + java.lang.String getResourceName(); + + /** + * + * + *
+   * Output only. TF resource name.
+   * 
+ * + * string resource_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for resourceName. + */ + com.google.protobuf.ByteString getResourceNameBytes(); + + /** + * + * + *
+   * Output only. TF resource provider.
+   * 
+ * + * string provider = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The provider. + */ + java.lang.String getProvider(); + + /** + * + * + *
+   * Output only. TF resource provider.
+   * 
+ * + * string provider = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for provider. + */ + com.google.protobuf.ByteString getProviderBytes(); + + /** + * + * + *
+   * Output only. TF resource actions.
+   * 
+ * + * repeated string actions = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the actions. + */ + java.util.List getActionsList(); + + /** + * + * + *
+   * Output only. TF resource actions.
+   * 
+ * + * repeated string actions = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of actions. + */ + int getActionsCount(); + + /** + * + * + *
+   * Output only. TF resource actions.
+   * 
+ * + * repeated string actions = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The actions at the given index. + */ + java.lang.String getActions(int index); + + /** + * + * + *
+   * Output only. TF resource actions.
+   * 
+ * + * repeated string actions = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the actions at the given index. + */ + com.google.protobuf.ByteString getActionsBytes(int index); +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ResourceDrift.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ResourceDrift.java new file mode 100644 index 000000000000..253ef3ee94fd --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ResourceDrift.java @@ -0,0 +1,1532 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/config/v1/config.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.config.v1; + +/** + * + * + *
+ * A resource drift represents a drift to a resource in the state file.
+ * 
+ * + * Protobuf type {@code google.cloud.config.v1.ResourceDrift} + */ +public final class ResourceDrift extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.config.v1.ResourceDrift) + ResourceDriftOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ResourceDrift.newBuilder() to construct. + private ResourceDrift(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ResourceDrift() { + name_ = ""; + propertyDrifts_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ResourceDrift(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ResourceDrift_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ResourceDrift_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.ResourceDrift.class, + com.google.cloud.config.v1.ResourceDrift.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. The name of the resource drift.
+   * Format:
+   * 'projects/{project_id}/locations/{location}/previews/{preview}/resourceDrifts/{resource_drift}'.
+   * 
+ * + * 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 name of the resource drift.
+   * Format:
+   * 'projects/{project_id}/locations/{location}/previews/{preview}/resourceDrifts/{resource_drift}'.
+   * 
+ * + * 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 TERRAFORM_INFO_FIELD_NUMBER = 2; + private com.google.cloud.config.v1.ResourceDriftTerraformInfo terraformInfo_; + + /** + * + * + *
+   * Output only. Terraform info of the resource drift.
+   * 
+ * + * + * .google.cloud.config.v1.ResourceDriftTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the terraformInfo field is set. + */ + @java.lang.Override + public boolean hasTerraformInfo() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. Terraform info of the resource drift.
+   * 
+ * + * + * .google.cloud.config.v1.ResourceDriftTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The terraformInfo. + */ + @java.lang.Override + public com.google.cloud.config.v1.ResourceDriftTerraformInfo getTerraformInfo() { + return terraformInfo_ == null + ? com.google.cloud.config.v1.ResourceDriftTerraformInfo.getDefaultInstance() + : terraformInfo_; + } + + /** + * + * + *
+   * Output only. Terraform info of the resource drift.
+   * 
+ * + * + * .google.cloud.config.v1.ResourceDriftTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.config.v1.ResourceDriftTerraformInfoOrBuilder + getTerraformInfoOrBuilder() { + return terraformInfo_ == null + ? com.google.cloud.config.v1.ResourceDriftTerraformInfo.getDefaultInstance() + : terraformInfo_; + } + + public static final int PROPERTY_DRIFTS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List propertyDrifts_; + + /** + * + * + *
+   * Output only. The property drifts of the resource drift.
+   * 
+ * + * + * repeated .google.cloud.config.v1.PropertyDrift property_drifts = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getPropertyDriftsList() { + return propertyDrifts_; + } + + /** + * + * + *
+   * Output only. The property drifts of the resource drift.
+   * 
+ * + * + * repeated .google.cloud.config.v1.PropertyDrift property_drifts = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getPropertyDriftsOrBuilderList() { + return propertyDrifts_; + } + + /** + * + * + *
+   * Output only. The property drifts of the resource drift.
+   * 
+ * + * + * repeated .google.cloud.config.v1.PropertyDrift property_drifts = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getPropertyDriftsCount() { + return propertyDrifts_.size(); + } + + /** + * + * + *
+   * Output only. The property drifts of the resource drift.
+   * 
+ * + * + * repeated .google.cloud.config.v1.PropertyDrift property_drifts = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.config.v1.PropertyDrift getPropertyDrifts(int index) { + return propertyDrifts_.get(index); + } + + /** + * + * + *
+   * Output only. The property drifts of the resource drift.
+   * 
+ * + * + * repeated .google.cloud.config.v1.PropertyDrift property_drifts = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.config.v1.PropertyDriftOrBuilder getPropertyDriftsOrBuilder(int index) { + return propertyDrifts_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getTerraformInfo()); + } + for (int i = 0; i < propertyDrifts_.size(); i++) { + output.writeMessage(3, propertyDrifts_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTerraformInfo()); + } + for (int i = 0; i < propertyDrifts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, propertyDrifts_.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.cloud.config.v1.ResourceDrift)) { + return super.equals(obj); + } + com.google.cloud.config.v1.ResourceDrift other = (com.google.cloud.config.v1.ResourceDrift) obj; + + if (!getName().equals(other.getName())) return false; + if (hasTerraformInfo() != other.hasTerraformInfo()) return false; + if (hasTerraformInfo()) { + if (!getTerraformInfo().equals(other.getTerraformInfo())) return false; + } + if (!getPropertyDriftsList().equals(other.getPropertyDriftsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasTerraformInfo()) { + hash = (37 * hash) + TERRAFORM_INFO_FIELD_NUMBER; + hash = (53 * hash) + getTerraformInfo().hashCode(); + } + if (getPropertyDriftsCount() > 0) { + hash = (37 * hash) + PROPERTY_DRIFTS_FIELD_NUMBER; + hash = (53 * hash) + getPropertyDriftsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.config.v1.ResourceDrift parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.ResourceDrift parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.ResourceDrift parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.ResourceDrift parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.ResourceDrift parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.ResourceDrift parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.ResourceDrift parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.ResourceDrift parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.config.v1.ResourceDrift parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.ResourceDrift parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.config.v1.ResourceDrift parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.ResourceDrift parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.config.v1.ResourceDrift prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A resource drift represents a drift to a resource in the state file.
+   * 
+ * + * Protobuf type {@code google.cloud.config.v1.ResourceDrift} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.config.v1.ResourceDrift) + com.google.cloud.config.v1.ResourceDriftOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ResourceDrift_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ResourceDrift_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.ResourceDrift.class, + com.google.cloud.config.v1.ResourceDrift.Builder.class); + } + + // Construct using com.google.cloud.config.v1.ResourceDrift.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTerraformInfoFieldBuilder(); + getPropertyDriftsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + terraformInfo_ = null; + if (terraformInfoBuilder_ != null) { + terraformInfoBuilder_.dispose(); + terraformInfoBuilder_ = null; + } + if (propertyDriftsBuilder_ == null) { + propertyDrifts_ = java.util.Collections.emptyList(); + } else { + propertyDrifts_ = null; + propertyDriftsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ResourceDrift_descriptor; + } + + @java.lang.Override + public com.google.cloud.config.v1.ResourceDrift getDefaultInstanceForType() { + return com.google.cloud.config.v1.ResourceDrift.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.config.v1.ResourceDrift build() { + com.google.cloud.config.v1.ResourceDrift result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.config.v1.ResourceDrift buildPartial() { + com.google.cloud.config.v1.ResourceDrift result = + new com.google.cloud.config.v1.ResourceDrift(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.config.v1.ResourceDrift result) { + if (propertyDriftsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + propertyDrifts_ = java.util.Collections.unmodifiableList(propertyDrifts_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.propertyDrifts_ = propertyDrifts_; + } else { + result.propertyDrifts_ = propertyDriftsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.config.v1.ResourceDrift result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.terraformInfo_ = + terraformInfoBuilder_ == null ? terraformInfo_ : terraformInfoBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.config.v1.ResourceDrift) { + return mergeFrom((com.google.cloud.config.v1.ResourceDrift) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.config.v1.ResourceDrift other) { + if (other == com.google.cloud.config.v1.ResourceDrift.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasTerraformInfo()) { + mergeTerraformInfo(other.getTerraformInfo()); + } + if (propertyDriftsBuilder_ == null) { + if (!other.propertyDrifts_.isEmpty()) { + if (propertyDrifts_.isEmpty()) { + propertyDrifts_ = other.propertyDrifts_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensurePropertyDriftsIsMutable(); + propertyDrifts_.addAll(other.propertyDrifts_); + } + onChanged(); + } + } else { + if (!other.propertyDrifts_.isEmpty()) { + if (propertyDriftsBuilder_.isEmpty()) { + propertyDriftsBuilder_.dispose(); + propertyDriftsBuilder_ = null; + propertyDrifts_ = other.propertyDrifts_; + bitField0_ = (bitField0_ & ~0x00000004); + propertyDriftsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPropertyDriftsFieldBuilder() + : null; + } else { + propertyDriftsBuilder_.addAllMessages(other.propertyDrifts_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getTerraformInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.cloud.config.v1.PropertyDrift m = + input.readMessage( + com.google.cloud.config.v1.PropertyDrift.parser(), extensionRegistry); + if (propertyDriftsBuilder_ == null) { + ensurePropertyDriftsIsMutable(); + propertyDrifts_.add(m); + } else { + propertyDriftsBuilder_.addMessage(m); + } + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Identifier. The name of the resource drift.
+     * Format:
+     * 'projects/{project_id}/locations/{location}/previews/{preview}/resourceDrifts/{resource_drift}'.
+     * 
+ * + * 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 name of the resource drift.
+     * Format:
+     * 'projects/{project_id}/locations/{location}/previews/{preview}/resourceDrifts/{resource_drift}'.
+     * 
+ * + * 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 name of the resource drift.
+     * Format:
+     * 'projects/{project_id}/locations/{location}/previews/{preview}/resourceDrifts/{resource_drift}'.
+     * 
+ * + * 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 name of the resource drift.
+     * Format:
+     * 'projects/{project_id}/locations/{location}/previews/{preview}/resourceDrifts/{resource_drift}'.
+     * 
+ * + * 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 name of the resource drift.
+     * Format:
+     * 'projects/{project_id}/locations/{location}/previews/{preview}/resourceDrifts/{resource_drift}'.
+     * 
+ * + * 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 com.google.cloud.config.v1.ResourceDriftTerraformInfo terraformInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.config.v1.ResourceDriftTerraformInfo, + com.google.cloud.config.v1.ResourceDriftTerraformInfo.Builder, + com.google.cloud.config.v1.ResourceDriftTerraformInfoOrBuilder> + terraformInfoBuilder_; + + /** + * + * + *
+     * Output only. Terraform info of the resource drift.
+     * 
+ * + * + * .google.cloud.config.v1.ResourceDriftTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the terraformInfo field is set. + */ + public boolean hasTerraformInfo() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. Terraform info of the resource drift.
+     * 
+ * + * + * .google.cloud.config.v1.ResourceDriftTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The terraformInfo. + */ + public com.google.cloud.config.v1.ResourceDriftTerraformInfo getTerraformInfo() { + if (terraformInfoBuilder_ == null) { + return terraformInfo_ == null + ? com.google.cloud.config.v1.ResourceDriftTerraformInfo.getDefaultInstance() + : terraformInfo_; + } else { + return terraformInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Terraform info of the resource drift.
+     * 
+ * + * + * .google.cloud.config.v1.ResourceDriftTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTerraformInfo(com.google.cloud.config.v1.ResourceDriftTerraformInfo value) { + if (terraformInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + terraformInfo_ = value; + } else { + terraformInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Terraform info of the resource drift.
+     * 
+ * + * + * .google.cloud.config.v1.ResourceDriftTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTerraformInfo( + com.google.cloud.config.v1.ResourceDriftTerraformInfo.Builder builderForValue) { + if (terraformInfoBuilder_ == null) { + terraformInfo_ = builderForValue.build(); + } else { + terraformInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Terraform info of the resource drift.
+     * 
+ * + * + * .google.cloud.config.v1.ResourceDriftTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeTerraformInfo(com.google.cloud.config.v1.ResourceDriftTerraformInfo value) { + if (terraformInfoBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && terraformInfo_ != null + && terraformInfo_ + != com.google.cloud.config.v1.ResourceDriftTerraformInfo.getDefaultInstance()) { + getTerraformInfoBuilder().mergeFrom(value); + } else { + terraformInfo_ = value; + } + } else { + terraformInfoBuilder_.mergeFrom(value); + } + if (terraformInfo_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Terraform info of the resource drift.
+     * 
+ * + * + * .google.cloud.config.v1.ResourceDriftTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearTerraformInfo() { + bitField0_ = (bitField0_ & ~0x00000002); + terraformInfo_ = null; + if (terraformInfoBuilder_ != null) { + terraformInfoBuilder_.dispose(); + terraformInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Terraform info of the resource drift.
+     * 
+ * + * + * .google.cloud.config.v1.ResourceDriftTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.config.v1.ResourceDriftTerraformInfo.Builder getTerraformInfoBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getTerraformInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Terraform info of the resource drift.
+     * 
+ * + * + * .google.cloud.config.v1.ResourceDriftTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.config.v1.ResourceDriftTerraformInfoOrBuilder + getTerraformInfoOrBuilder() { + if (terraformInfoBuilder_ != null) { + return terraformInfoBuilder_.getMessageOrBuilder(); + } else { + return terraformInfo_ == null + ? com.google.cloud.config.v1.ResourceDriftTerraformInfo.getDefaultInstance() + : terraformInfo_; + } + } + + /** + * + * + *
+     * Output only. Terraform info of the resource drift.
+     * 
+ * + * + * .google.cloud.config.v1.ResourceDriftTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.config.v1.ResourceDriftTerraformInfo, + com.google.cloud.config.v1.ResourceDriftTerraformInfo.Builder, + com.google.cloud.config.v1.ResourceDriftTerraformInfoOrBuilder> + getTerraformInfoFieldBuilder() { + if (terraformInfoBuilder_ == null) { + terraformInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.config.v1.ResourceDriftTerraformInfo, + com.google.cloud.config.v1.ResourceDriftTerraformInfo.Builder, + com.google.cloud.config.v1.ResourceDriftTerraformInfoOrBuilder>( + getTerraformInfo(), getParentForChildren(), isClean()); + terraformInfo_ = null; + } + return terraformInfoBuilder_; + } + + private java.util.List propertyDrifts_ = + java.util.Collections.emptyList(); + + private void ensurePropertyDriftsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + propertyDrifts_ = + new java.util.ArrayList(propertyDrifts_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.config.v1.PropertyDrift, + com.google.cloud.config.v1.PropertyDrift.Builder, + com.google.cloud.config.v1.PropertyDriftOrBuilder> + propertyDriftsBuilder_; + + /** + * + * + *
+     * Output only. The property drifts of the resource drift.
+     * 
+ * + * + * repeated .google.cloud.config.v1.PropertyDrift property_drifts = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getPropertyDriftsList() { + if (propertyDriftsBuilder_ == null) { + return java.util.Collections.unmodifiableList(propertyDrifts_); + } else { + return propertyDriftsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. The property drifts of the resource drift.
+     * 
+ * + * + * repeated .google.cloud.config.v1.PropertyDrift property_drifts = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getPropertyDriftsCount() { + if (propertyDriftsBuilder_ == null) { + return propertyDrifts_.size(); + } else { + return propertyDriftsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. The property drifts of the resource drift.
+     * 
+ * + * + * repeated .google.cloud.config.v1.PropertyDrift property_drifts = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.config.v1.PropertyDrift getPropertyDrifts(int index) { + if (propertyDriftsBuilder_ == null) { + return propertyDrifts_.get(index); + } else { + return propertyDriftsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. The property drifts of the resource drift.
+     * 
+ * + * + * repeated .google.cloud.config.v1.PropertyDrift property_drifts = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPropertyDrifts(int index, com.google.cloud.config.v1.PropertyDrift value) { + if (propertyDriftsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropertyDriftsIsMutable(); + propertyDrifts_.set(index, value); + onChanged(); + } else { + propertyDriftsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The property drifts of the resource drift.
+     * 
+ * + * + * repeated .google.cloud.config.v1.PropertyDrift property_drifts = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPropertyDrifts( + int index, com.google.cloud.config.v1.PropertyDrift.Builder builderForValue) { + if (propertyDriftsBuilder_ == null) { + ensurePropertyDriftsIsMutable(); + propertyDrifts_.set(index, builderForValue.build()); + onChanged(); + } else { + propertyDriftsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The property drifts of the resource drift.
+     * 
+ * + * + * repeated .google.cloud.config.v1.PropertyDrift property_drifts = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPropertyDrifts(com.google.cloud.config.v1.PropertyDrift value) { + if (propertyDriftsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropertyDriftsIsMutable(); + propertyDrifts_.add(value); + onChanged(); + } else { + propertyDriftsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. The property drifts of the resource drift.
+     * 
+ * + * + * repeated .google.cloud.config.v1.PropertyDrift property_drifts = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPropertyDrifts(int index, com.google.cloud.config.v1.PropertyDrift value) { + if (propertyDriftsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropertyDriftsIsMutable(); + propertyDrifts_.add(index, value); + onChanged(); + } else { + propertyDriftsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The property drifts of the resource drift.
+     * 
+ * + * + * repeated .google.cloud.config.v1.PropertyDrift property_drifts = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPropertyDrifts( + com.google.cloud.config.v1.PropertyDrift.Builder builderForValue) { + if (propertyDriftsBuilder_ == null) { + ensurePropertyDriftsIsMutable(); + propertyDrifts_.add(builderForValue.build()); + onChanged(); + } else { + propertyDriftsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The property drifts of the resource drift.
+     * 
+ * + * + * repeated .google.cloud.config.v1.PropertyDrift property_drifts = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPropertyDrifts( + int index, com.google.cloud.config.v1.PropertyDrift.Builder builderForValue) { + if (propertyDriftsBuilder_ == null) { + ensurePropertyDriftsIsMutable(); + propertyDrifts_.add(index, builderForValue.build()); + onChanged(); + } else { + propertyDriftsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The property drifts of the resource drift.
+     * 
+ * + * + * repeated .google.cloud.config.v1.PropertyDrift property_drifts = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllPropertyDrifts( + java.lang.Iterable values) { + if (propertyDriftsBuilder_ == null) { + ensurePropertyDriftsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, propertyDrifts_); + onChanged(); + } else { + propertyDriftsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. The property drifts of the resource drift.
+     * 
+ * + * + * repeated .google.cloud.config.v1.PropertyDrift property_drifts = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearPropertyDrifts() { + if (propertyDriftsBuilder_ == null) { + propertyDrifts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + propertyDriftsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. The property drifts of the resource drift.
+     * 
+ * + * + * repeated .google.cloud.config.v1.PropertyDrift property_drifts = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removePropertyDrifts(int index) { + if (propertyDriftsBuilder_ == null) { + ensurePropertyDriftsIsMutable(); + propertyDrifts_.remove(index); + onChanged(); + } else { + propertyDriftsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. The property drifts of the resource drift.
+     * 
+ * + * + * repeated .google.cloud.config.v1.PropertyDrift property_drifts = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.config.v1.PropertyDrift.Builder getPropertyDriftsBuilder(int index) { + return getPropertyDriftsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. The property drifts of the resource drift.
+     * 
+ * + * + * repeated .google.cloud.config.v1.PropertyDrift property_drifts = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.config.v1.PropertyDriftOrBuilder getPropertyDriftsOrBuilder(int index) { + if (propertyDriftsBuilder_ == null) { + return propertyDrifts_.get(index); + } else { + return propertyDriftsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. The property drifts of the resource drift.
+     * 
+ * + * + * repeated .google.cloud.config.v1.PropertyDrift property_drifts = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getPropertyDriftsOrBuilderList() { + if (propertyDriftsBuilder_ != null) { + return propertyDriftsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(propertyDrifts_); + } + } + + /** + * + * + *
+     * Output only. The property drifts of the resource drift.
+     * 
+ * + * + * repeated .google.cloud.config.v1.PropertyDrift property_drifts = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.config.v1.PropertyDrift.Builder addPropertyDriftsBuilder() { + return getPropertyDriftsFieldBuilder() + .addBuilder(com.google.cloud.config.v1.PropertyDrift.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The property drifts of the resource drift.
+     * 
+ * + * + * repeated .google.cloud.config.v1.PropertyDrift property_drifts = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.config.v1.PropertyDrift.Builder addPropertyDriftsBuilder(int index) { + return getPropertyDriftsFieldBuilder() + .addBuilder(index, com.google.cloud.config.v1.PropertyDrift.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The property drifts of the resource drift.
+     * 
+ * + * + * repeated .google.cloud.config.v1.PropertyDrift property_drifts = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getPropertyDriftsBuilderList() { + return getPropertyDriftsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.config.v1.PropertyDrift, + com.google.cloud.config.v1.PropertyDrift.Builder, + com.google.cloud.config.v1.PropertyDriftOrBuilder> + getPropertyDriftsFieldBuilder() { + if (propertyDriftsBuilder_ == null) { + propertyDriftsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.config.v1.PropertyDrift, + com.google.cloud.config.v1.PropertyDrift.Builder, + com.google.cloud.config.v1.PropertyDriftOrBuilder>( + propertyDrifts_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + propertyDrifts_ = null; + } + return propertyDriftsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.config.v1.ResourceDrift) + } + + // @@protoc_insertion_point(class_scope:google.cloud.config.v1.ResourceDrift) + private static final com.google.cloud.config.v1.ResourceDrift DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.config.v1.ResourceDrift(); + } + + public static com.google.cloud.config.v1.ResourceDrift getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceDrift parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.config.v1.ResourceDrift getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ResourceDriftName.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ResourceDriftName.java new file mode 100644 index 000000000000..6ee5cfcb5077 --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ResourceDriftName.java @@ -0,0 +1,269 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.config.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class ResourceDriftName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_PREVIEW_RESOURCE_DRIFT = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/previews/{preview}/resourceDrifts/{resource_drift}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String preview; + private final String resourceDrift; + + @Deprecated + protected ResourceDriftName() { + project = null; + location = null; + preview = null; + resourceDrift = null; + } + + private ResourceDriftName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + preview = Preconditions.checkNotNull(builder.getPreview()); + resourceDrift = Preconditions.checkNotNull(builder.getResourceDrift()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getPreview() { + return preview; + } + + public String getResourceDrift() { + return resourceDrift; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ResourceDriftName of( + String project, String location, String preview, String resourceDrift) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setPreview(preview) + .setResourceDrift(resourceDrift) + .build(); + } + + public static String format( + String project, String location, String preview, String resourceDrift) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setPreview(preview) + .setResourceDrift(resourceDrift) + .build() + .toString(); + } + + public static ResourceDriftName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_PREVIEW_RESOURCE_DRIFT.validatedMatch( + formattedString, "ResourceDriftName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("preview"), + matchMap.get("resource_drift")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (ResourceDriftName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_PREVIEW_RESOURCE_DRIFT.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (preview != null) { + fieldMapBuilder.put("preview", preview); + } + if (resourceDrift != null) { + fieldMapBuilder.put("resource_drift", resourceDrift); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_PREVIEW_RESOURCE_DRIFT.instantiate( + "project", + project, + "location", + location, + "preview", + preview, + "resource_drift", + resourceDrift); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ResourceDriftName that = ((ResourceDriftName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.preview, that.preview) + && Objects.equals(this.resourceDrift, that.resourceDrift); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(preview); + h *= 1000003; + h ^= Objects.hashCode(resourceDrift); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/previews/{preview}/resourceDrifts/{resource_drift}. + */ + public static class Builder { + private String project; + private String location; + private String preview; + private String resourceDrift; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getPreview() { + return preview; + } + + public String getResourceDrift() { + return resourceDrift; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setPreview(String preview) { + this.preview = preview; + return this; + } + + public Builder setResourceDrift(String resourceDrift) { + this.resourceDrift = resourceDrift; + return this; + } + + private Builder(ResourceDriftName resourceDriftName) { + this.project = resourceDriftName.project; + this.location = resourceDriftName.location; + this.preview = resourceDriftName.preview; + this.resourceDrift = resourceDriftName.resourceDrift; + } + + public ResourceDriftName build() { + return new ResourceDriftName(this); + } + } +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ResourceDriftOrBuilder.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ResourceDriftOrBuilder.java new file mode 100644 index 000000000000..38816a23bb38 --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ResourceDriftOrBuilder.java @@ -0,0 +1,165 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/config/v1/config.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.config.v1; + +public interface ResourceDriftOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.config.v1.ResourceDrift) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. The name of the resource drift.
+   * Format:
+   * 'projects/{project_id}/locations/{location}/previews/{preview}/resourceDrifts/{resource_drift}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. The name of the resource drift.
+   * Format:
+   * 'projects/{project_id}/locations/{location}/previews/{preview}/resourceDrifts/{resource_drift}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. Terraform info of the resource drift.
+   * 
+ * + * + * .google.cloud.config.v1.ResourceDriftTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the terraformInfo field is set. + */ + boolean hasTerraformInfo(); + + /** + * + * + *
+   * Output only. Terraform info of the resource drift.
+   * 
+ * + * + * .google.cloud.config.v1.ResourceDriftTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The terraformInfo. + */ + com.google.cloud.config.v1.ResourceDriftTerraformInfo getTerraformInfo(); + + /** + * + * + *
+   * Output only. Terraform info of the resource drift.
+   * 
+ * + * + * .google.cloud.config.v1.ResourceDriftTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.config.v1.ResourceDriftTerraformInfoOrBuilder getTerraformInfoOrBuilder(); + + /** + * + * + *
+   * Output only. The property drifts of the resource drift.
+   * 
+ * + * + * repeated .google.cloud.config.v1.PropertyDrift property_drifts = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getPropertyDriftsList(); + + /** + * + * + *
+   * Output only. The property drifts of the resource drift.
+   * 
+ * + * + * repeated .google.cloud.config.v1.PropertyDrift property_drifts = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.config.v1.PropertyDrift getPropertyDrifts(int index); + + /** + * + * + *
+   * Output only. The property drifts of the resource drift.
+   * 
+ * + * + * repeated .google.cloud.config.v1.PropertyDrift property_drifts = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getPropertyDriftsCount(); + + /** + * + * + *
+   * Output only. The property drifts of the resource drift.
+   * 
+ * + * + * repeated .google.cloud.config.v1.PropertyDrift property_drifts = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getPropertyDriftsOrBuilderList(); + + /** + * + * + *
+   * Output only. The property drifts of the resource drift.
+   * 
+ * + * + * repeated .google.cloud.config.v1.PropertyDrift property_drifts = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.config.v1.PropertyDriftOrBuilder getPropertyDriftsOrBuilder(int index); +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ResourceDriftTerraformInfo.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ResourceDriftTerraformInfo.java new file mode 100644 index 000000000000..dcf9e38bf376 --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ResourceDriftTerraformInfo.java @@ -0,0 +1,1202 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/config/v1/config.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.config.v1; + +/** + * + * + *
+ * Terraform info of a ResourceChange.
+ * 
+ * + * Protobuf type {@code google.cloud.config.v1.ResourceDriftTerraformInfo} + */ +public final class ResourceDriftTerraformInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.config.v1.ResourceDriftTerraformInfo) + ResourceDriftTerraformInfoOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ResourceDriftTerraformInfo.newBuilder() to construct. + private ResourceDriftTerraformInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ResourceDriftTerraformInfo() { + address_ = ""; + type_ = ""; + resourceName_ = ""; + provider_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ResourceDriftTerraformInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ResourceDriftTerraformInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ResourceDriftTerraformInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.ResourceDriftTerraformInfo.class, + com.google.cloud.config.v1.ResourceDriftTerraformInfo.Builder.class); + } + + public static final int ADDRESS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object address_ = ""; + + /** + * + * + *
+   * Output only. The address of the drifted resource.
+   * 
+ * + * string address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The address. + */ + @java.lang.Override + public java.lang.String getAddress() { + java.lang.Object ref = address_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + address_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The address of the drifted resource.
+   * 
+ * + * string address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for address. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAddressBytes() { + java.lang.Object ref = address_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + address_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object type_ = ""; + + /** + * + * + *
+   * Output only. The type of the drifted resource.
+   * 
+ * + * string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The type. + */ + @java.lang.Override + public java.lang.String getType() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The type of the drifted resource.
+   * 
+ * + * string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for type. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_NAME_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object resourceName_ = ""; + + /** + * + * + *
+   * Output only. TF resource name.
+   * 
+ * + * string resource_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The resourceName. + */ + @java.lang.Override + public java.lang.String getResourceName() { + java.lang.Object ref = resourceName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceName_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. TF resource name.
+   * 
+ * + * string resource_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for resourceName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceNameBytes() { + java.lang.Object ref = resourceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROVIDER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object provider_ = ""; + + /** + * + * + *
+   * Output only. The provider of the drifted resource.
+   * 
+ * + * string provider = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The provider. + */ + @java.lang.Override + public java.lang.String getProvider() { + java.lang.Object ref = provider_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + provider_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The provider of the drifted resource.
+   * 
+ * + * string provider = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for provider. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProviderBytes() { + java.lang.Object ref = provider_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + provider_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, resourceName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(provider_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, provider_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, resourceName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(provider_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, provider_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.config.v1.ResourceDriftTerraformInfo)) { + return super.equals(obj); + } + com.google.cloud.config.v1.ResourceDriftTerraformInfo other = + (com.google.cloud.config.v1.ResourceDriftTerraformInfo) obj; + + if (!getAddress().equals(other.getAddress())) return false; + if (!getType().equals(other.getType())) return false; + if (!getResourceName().equals(other.getResourceName())) return false; + if (!getProvider().equals(other.getProvider())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAddress().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + hash = (37 * hash) + RESOURCE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getResourceName().hashCode(); + hash = (37 * hash) + PROVIDER_FIELD_NUMBER; + hash = (53 * hash) + getProvider().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.config.v1.ResourceDriftTerraformInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.ResourceDriftTerraformInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.ResourceDriftTerraformInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.ResourceDriftTerraformInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.ResourceDriftTerraformInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.ResourceDriftTerraformInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.ResourceDriftTerraformInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.ResourceDriftTerraformInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.config.v1.ResourceDriftTerraformInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.ResourceDriftTerraformInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.config.v1.ResourceDriftTerraformInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.ResourceDriftTerraformInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.config.v1.ResourceDriftTerraformInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Terraform info of a ResourceChange.
+   * 
+ * + * Protobuf type {@code google.cloud.config.v1.ResourceDriftTerraformInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.config.v1.ResourceDriftTerraformInfo) + com.google.cloud.config.v1.ResourceDriftTerraformInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ResourceDriftTerraformInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ResourceDriftTerraformInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.ResourceDriftTerraformInfo.class, + com.google.cloud.config.v1.ResourceDriftTerraformInfo.Builder.class); + } + + // Construct using com.google.cloud.config.v1.ResourceDriftTerraformInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + address_ = ""; + type_ = ""; + resourceName_ = ""; + provider_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ResourceDriftTerraformInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.config.v1.ResourceDriftTerraformInfo getDefaultInstanceForType() { + return com.google.cloud.config.v1.ResourceDriftTerraformInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.config.v1.ResourceDriftTerraformInfo build() { + com.google.cloud.config.v1.ResourceDriftTerraformInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.config.v1.ResourceDriftTerraformInfo buildPartial() { + com.google.cloud.config.v1.ResourceDriftTerraformInfo result = + new com.google.cloud.config.v1.ResourceDriftTerraformInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.config.v1.ResourceDriftTerraformInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.address_ = address_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.resourceName_ = resourceName_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.provider_ = provider_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.config.v1.ResourceDriftTerraformInfo) { + return mergeFrom((com.google.cloud.config.v1.ResourceDriftTerraformInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.config.v1.ResourceDriftTerraformInfo other) { + if (other == com.google.cloud.config.v1.ResourceDriftTerraformInfo.getDefaultInstance()) + return this; + if (!other.getAddress().isEmpty()) { + address_ = other.address_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getType().isEmpty()) { + type_ = other.type_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getResourceName().isEmpty()) { + resourceName_ = other.resourceName_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getProvider().isEmpty()) { + provider_ = other.provider_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + address_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + type_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + resourceName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + provider_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object address_ = ""; + + /** + * + * + *
+     * Output only. The address of the drifted resource.
+     * 
+ * + * string address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The address. + */ + public java.lang.String getAddress() { + java.lang.Object ref = address_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + address_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The address of the drifted resource.
+     * 
+ * + * string address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for address. + */ + public com.google.protobuf.ByteString getAddressBytes() { + java.lang.Object ref = address_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + address_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The address of the drifted resource.
+     * 
+ * + * string address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The address to set. + * @return This builder for chaining. + */ + public Builder setAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + address_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The address of the drifted resource.
+     * 
+ * + * string address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearAddress() { + address_ = getDefaultInstance().getAddress(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The address of the drifted resource.
+     * 
+ * + * string address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for address to set. + * @return This builder for chaining. + */ + public Builder setAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + address_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object type_ = ""; + + /** + * + * + *
+     * Output only. The type of the drifted resource.
+     * 
+ * + * string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The type. + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The type of the drifted resource.
+     * 
+ * + * string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for type. + */ + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The type of the drifted resource.
+     * 
+ * + * string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The type of the drifted resource.
+     * 
+ * + * string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearType() { + type_ = getDefaultInstance().getType(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The type of the drifted resource.
+     * 
+ * + * string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for type to set. + * @return This builder for chaining. + */ + public Builder setTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object resourceName_ = ""; + + /** + * + * + *
+     * Output only. TF resource name.
+     * 
+ * + * string resource_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The resourceName. + */ + public java.lang.String getResourceName() { + java.lang.Object ref = resourceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. TF resource name.
+     * 
+ * + * string resource_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for resourceName. + */ + public com.google.protobuf.ByteString getResourceNameBytes() { + java.lang.Object ref = resourceName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. TF resource name.
+     * 
+ * + * string resource_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The resourceName to set. + * @return This builder for chaining. + */ + public Builder setResourceName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resourceName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. TF resource name.
+     * 
+ * + * string resource_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearResourceName() { + resourceName_ = getDefaultInstance().getResourceName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. TF resource name.
+     * 
+ * + * string resource_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for resourceName to set. + * @return This builder for chaining. + */ + public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object provider_ = ""; + + /** + * + * + *
+     * Output only. The provider of the drifted resource.
+     * 
+ * + * string provider = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The provider. + */ + public java.lang.String getProvider() { + java.lang.Object ref = provider_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + provider_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The provider of the drifted resource.
+     * 
+ * + * string provider = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for provider. + */ + public com.google.protobuf.ByteString getProviderBytes() { + java.lang.Object ref = provider_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + provider_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The provider of the drifted resource.
+     * 
+ * + * string provider = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The provider to set. + * @return This builder for chaining. + */ + public Builder setProvider(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + provider_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The provider of the drifted resource.
+     * 
+ * + * string provider = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearProvider() { + provider_ = getDefaultInstance().getProvider(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The provider of the drifted resource.
+     * 
+ * + * string provider = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for provider to set. + * @return This builder for chaining. + */ + public Builder setProviderBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + provider_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.config.v1.ResourceDriftTerraformInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.config.v1.ResourceDriftTerraformInfo) + private static final com.google.cloud.config.v1.ResourceDriftTerraformInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.config.v1.ResourceDriftTerraformInfo(); + } + + public static com.google.cloud.config.v1.ResourceDriftTerraformInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceDriftTerraformInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.config.v1.ResourceDriftTerraformInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ResourceDriftTerraformInfoOrBuilder.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ResourceDriftTerraformInfoOrBuilder.java new file mode 100644 index 000000000000..1e2d6340ae79 --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ResourceDriftTerraformInfoOrBuilder.java @@ -0,0 +1,130 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/config/v1/config.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.config.v1; + +public interface ResourceDriftTerraformInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.config.v1.ResourceDriftTerraformInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The address of the drifted resource.
+   * 
+ * + * string address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The address. + */ + java.lang.String getAddress(); + + /** + * + * + *
+   * Output only. The address of the drifted resource.
+   * 
+ * + * string address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for address. + */ + com.google.protobuf.ByteString getAddressBytes(); + + /** + * + * + *
+   * Output only. The type of the drifted resource.
+   * 
+ * + * string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The type. + */ + java.lang.String getType(); + + /** + * + * + *
+   * Output only. The type of the drifted resource.
+   * 
+ * + * string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for type. + */ + com.google.protobuf.ByteString getTypeBytes(); + + /** + * + * + *
+   * Output only. TF resource name.
+   * 
+ * + * string resource_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The resourceName. + */ + java.lang.String getResourceName(); + + /** + * + * + *
+   * Output only. TF resource name.
+   * 
+ * + * string resource_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for resourceName. + */ + com.google.protobuf.ByteString getResourceNameBytes(); + + /** + * + * + *
+   * Output only. The provider of the drifted resource.
+   * 
+ * + * string provider = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The provider. + */ + java.lang.String getProvider(); + + /** + * + * + *
+   * Output only. The provider of the drifted resource.
+   * 
+ * + * string provider = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for provider. + */ + com.google.protobuf.ByteString getProviderBytes(); +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/TerraformBlueprint.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/TerraformBlueprint.java index ae41944d2538..a40420169033 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/TerraformBlueprint.java +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/TerraformBlueprint.java @@ -302,10 +302,12 @@ public int getInputValuesCount() { * * *
-   * Input variable values for the Terraform blueprint.
+   * Optional. Input variable values for the Terraform blueprint.
    * 
* - * map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4; + * + * map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public boolean containsInputValues(java.lang.String key) { @@ -327,10 +329,12 @@ public boolean containsInputValues(java.lang.String key) { * * *
-   * Input variable values for the Terraform blueprint.
+   * Optional. Input variable values for the Terraform blueprint.
    * 
* - * map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4; + * + * map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map @@ -342,10 +346,12 @@ public boolean containsInputValues(java.lang.String key) { * * *
-   * Input variable values for the Terraform blueprint.
+   * Optional. Input variable values for the Terraform blueprint.
    * 
* - * map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4; + * + * map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public /* nullable */ com.google.cloud.config.v1.TerraformVariable getInputValuesOrDefault( @@ -364,10 +370,12 @@ public boolean containsInputValues(java.lang.String key) { * * *
-   * Input variable values for the Terraform blueprint.
+   * Optional. Input variable values for the Terraform blueprint.
    * 
* - * map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4; + * + * map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.config.v1.TerraformVariable getInputValuesOrThrow(java.lang.String key) { @@ -1302,10 +1310,12 @@ public int getInputValuesCount() { * * *
-     * Input variable values for the Terraform blueprint.
+     * Optional. Input variable values for the Terraform blueprint.
      * 
* - * map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4; + * + * map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public boolean containsInputValues(java.lang.String key) { @@ -1327,10 +1337,12 @@ public boolean containsInputValues(java.lang.String key) { * * *
-     * Input variable values for the Terraform blueprint.
+     * Optional. Input variable values for the Terraform blueprint.
      * 
* - * map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4; + * + * map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map @@ -1342,10 +1354,12 @@ public boolean containsInputValues(java.lang.String key) { * * *
-     * Input variable values for the Terraform blueprint.
+     * Optional. Input variable values for the Terraform blueprint.
      * 
* - * map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4; + * + * map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public /* nullable */ com.google.cloud.config.v1.TerraformVariable getInputValuesOrDefault( @@ -1364,10 +1378,12 @@ public boolean containsInputValues(java.lang.String key) { * * *
-     * Input variable values for the Terraform blueprint.
+     * Optional. Input variable values for the Terraform blueprint.
      * 
* - * map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4; + * + * map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.config.v1.TerraformVariable getInputValuesOrThrow( @@ -1393,10 +1409,12 @@ public Builder clearInputValues() { * * *
-     * Input variable values for the Terraform blueprint.
+     * Optional. Input variable values for the Terraform blueprint.
      * 
* - * map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4; + * + * map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeInputValues(java.lang.String key) { if (key == null) { @@ -1418,10 +1436,12 @@ public Builder removeInputValues(java.lang.String key) { * * *
-     * Input variable values for the Terraform blueprint.
+     * Optional. Input variable values for the Terraform blueprint.
      * 
* - * map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4; + * + * map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder putInputValues( java.lang.String key, com.google.cloud.config.v1.TerraformVariable value) { @@ -1440,10 +1460,12 @@ public Builder putInputValues( * * *
-     * Input variable values for the Terraform blueprint.
+     * Optional. Input variable values for the Terraform blueprint.
      * 
* - * map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4; + * + * map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder putAllInputValues( java.util.Map values) { @@ -1462,10 +1484,12 @@ public Builder putAllInputValues( * * *
-     * Input variable values for the Terraform blueprint.
+     * Optional. Input variable values for the Terraform blueprint.
      * 
* - * map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4; + * + * map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.config.v1.TerraformVariable.Builder putInputValuesBuilderIfAbsent( java.lang.String key) { diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/TerraformBlueprintOrBuilder.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/TerraformBlueprintOrBuilder.java index 8af1f5d531f3..5ebd7a8aadfd 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/TerraformBlueprintOrBuilder.java +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/TerraformBlueprintOrBuilder.java @@ -116,10 +116,12 @@ public interface TerraformBlueprintOrBuilder * * *
-   * Input variable values for the Terraform blueprint.
+   * Optional. Input variable values for the Terraform blueprint.
    * 
* - * map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4; + * + * map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getInputValuesCount(); @@ -127,10 +129,12 @@ public interface TerraformBlueprintOrBuilder * * *
-   * Input variable values for the Terraform blueprint.
+   * Optional. Input variable values for the Terraform blueprint.
    * 
* - * map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4; + * + * map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ boolean containsInputValues(java.lang.String key); @@ -142,10 +146,12 @@ public interface TerraformBlueprintOrBuilder * * *
-   * Input variable values for the Terraform blueprint.
+   * Optional. Input variable values for the Terraform blueprint.
    * 
* - * map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4; + * + * map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.Map getInputValuesMap(); @@ -153,10 +159,12 @@ public interface TerraformBlueprintOrBuilder * * *
-   * Input variable values for the Terraform blueprint.
+   * Optional. Input variable values for the Terraform blueprint.
    * 
* - * map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4; + * + * map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ com.google.cloud.config.v1.TerraformVariable getInputValuesOrDefault( @@ -168,10 +176,12 @@ com.google.cloud.config.v1.TerraformVariable getInputValuesOrDefault( * * *
-   * Input variable values for the Terraform blueprint.
+   * Optional. Input variable values for the Terraform blueprint.
    * 
* - * map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4; + * + * map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.config.v1.TerraformVariable getInputValuesOrThrow(java.lang.String key); diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/TerraformError.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/TerraformError.java index 8fa88458fc6b..9f093631ebb3 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/TerraformError.java +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/TerraformError.java @@ -202,10 +202,11 @@ public com.google.protobuf.ByteString getErrorDescriptionBytes() { * * *
-   * Original error response from underlying Google API, if available.
+   * Output only. Original error response from underlying Google API, if
+   * available.
    * 
* - * .google.rpc.Status error = 4; + * .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the error field is set. */ @@ -218,10 +219,11 @@ public boolean hasError() { * * *
-   * Original error response from underlying Google API, if available.
+   * Output only. Original error response from underlying Google API, if
+   * available.
    * 
* - * .google.rpc.Status error = 4; + * .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The error. */ @@ -234,10 +236,11 @@ public com.google.rpc.Status getError() { * * *
-   * Original error response from underlying Google API, if available.
+   * Output only. Original error response from underlying Google API, if
+   * available.
    * 
* - * .google.rpc.Status error = 4; + * .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { @@ -973,10 +976,11 @@ public Builder setErrorDescriptionBytes(com.google.protobuf.ByteString value) { * * *
-     * Original error response from underlying Google API, if available.
+     * Output only. Original error response from underlying Google API, if
+     * available.
      * 
* - * .google.rpc.Status error = 4; + * .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the error field is set. */ @@ -988,10 +992,11 @@ public boolean hasError() { * * *
-     * Original error response from underlying Google API, if available.
+     * Output only. Original error response from underlying Google API, if
+     * available.
      * 
* - * .google.rpc.Status error = 4; + * .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The error. */ @@ -1007,10 +1012,11 @@ public com.google.rpc.Status getError() { * * *
-     * Original error response from underlying Google API, if available.
+     * Output only. Original error response from underlying Google API, if
+     * available.
      * 
* - * .google.rpc.Status error = 4; + * .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setError(com.google.rpc.Status value) { if (errorBuilder_ == null) { @@ -1030,10 +1036,11 @@ public Builder setError(com.google.rpc.Status value) { * * *
-     * Original error response from underlying Google API, if available.
+     * Output only. Original error response from underlying Google API, if
+     * available.
      * 
* - * .google.rpc.Status error = 4; + * .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setError(com.google.rpc.Status.Builder builderForValue) { if (errorBuilder_ == null) { @@ -1050,10 +1057,11 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { * * *
-     * Original error response from underlying Google API, if available.
+     * Output only. Original error response from underlying Google API, if
+     * available.
      * 
* - * .google.rpc.Status error = 4; + * .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { @@ -1078,10 +1086,11 @@ public Builder mergeError(com.google.rpc.Status value) { * * *
-     * Original error response from underlying Google API, if available.
+     * Output only. Original error response from underlying Google API, if
+     * available.
      * 
* - * .google.rpc.Status error = 4; + * .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearError() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1098,10 +1107,11 @@ public Builder clearError() { * * *
-     * Original error response from underlying Google API, if available.
+     * Output only. Original error response from underlying Google API, if
+     * available.
      * 
* - * .google.rpc.Status error = 4; + * .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status.Builder getErrorBuilder() { bitField0_ |= 0x00000008; @@ -1113,10 +1123,11 @@ public com.google.rpc.Status.Builder getErrorBuilder() { * * *
-     * Original error response from underlying Google API, if available.
+     * Output only. Original error response from underlying Google API, if
+     * available.
      * 
* - * .google.rpc.Status error = 4; + * .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { @@ -1130,10 +1141,11 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { * * *
-     * Original error response from underlying Google API, if available.
+     * Output only. Original error response from underlying Google API, if
+     * available.
      * 
* - * .google.rpc.Status error = 4; + * .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/TerraformErrorOrBuilder.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/TerraformErrorOrBuilder.java index b847069d6928..5b824b47e952 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/TerraformErrorOrBuilder.java +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/TerraformErrorOrBuilder.java @@ -97,10 +97,11 @@ public interface TerraformErrorOrBuilder * * *
-   * Original error response from underlying Google API, if available.
+   * Output only. Original error response from underlying Google API, if
+   * available.
    * 
* - * .google.rpc.Status error = 4; + * .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the error field is set. */ @@ -110,10 +111,11 @@ public interface TerraformErrorOrBuilder * * *
-   * Original error response from underlying Google API, if available.
+   * Output only. Original error response from underlying Google API, if
+   * available.
    * 
* - * .google.rpc.Status error = 4; + * .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The error. */ @@ -123,10 +125,11 @@ public interface TerraformErrorOrBuilder * * *
-   * Original error response from underlying Google API, if available.
+   * Output only. Original error response from underlying Google API, if
+   * available.
    * 
* - * .google.rpc.Status error = 4; + * .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.rpc.StatusOrBuilder getErrorOrBuilder(); } diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/TerraformVariable.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/TerraformVariable.java index 1ef98ab6e50d..cf265e0a72ee 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/TerraformVariable.java +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/TerraformVariable.java @@ -70,10 +70,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Input variable value.
+   * Optional. Input variable value.
    * 
* - * .google.protobuf.Value input_value = 5; + * .google.protobuf.Value input_value = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the inputValue field is set. */ @@ -86,10 +86,10 @@ public boolean hasInputValue() { * * *
-   * Input variable value.
+   * Optional. Input variable value.
    * 
* - * .google.protobuf.Value input_value = 5; + * .google.protobuf.Value input_value = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The inputValue. */ @@ -102,10 +102,10 @@ public com.google.protobuf.Value getInputValue() { * * *
-   * Input variable value.
+   * Optional. Input variable value.
    * 
* - * .google.protobuf.Value input_value = 5; + * .google.protobuf.Value input_value = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.ValueOrBuilder getInputValueOrBuilder() { @@ -484,10 +484,11 @@ public Builder mergeFrom( * * *
-     * Input variable value.
+     * Optional. Input variable value.
      * 
* - * .google.protobuf.Value input_value = 5; + * .google.protobuf.Value input_value = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the inputValue field is set. */ @@ -499,10 +500,11 @@ public boolean hasInputValue() { * * *
-     * Input variable value.
+     * Optional. Input variable value.
      * 
* - * .google.protobuf.Value input_value = 5; + * .google.protobuf.Value input_value = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The inputValue. */ @@ -518,10 +520,11 @@ public com.google.protobuf.Value getInputValue() { * * *
-     * Input variable value.
+     * Optional. Input variable value.
      * 
* - * .google.protobuf.Value input_value = 5; + * .google.protobuf.Value input_value = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setInputValue(com.google.protobuf.Value value) { if (inputValueBuilder_ == null) { @@ -541,10 +544,11 @@ public Builder setInputValue(com.google.protobuf.Value value) { * * *
-     * Input variable value.
+     * Optional. Input variable value.
      * 
* - * .google.protobuf.Value input_value = 5; + * .google.protobuf.Value input_value = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setInputValue(com.google.protobuf.Value.Builder builderForValue) { if (inputValueBuilder_ == null) { @@ -561,10 +565,11 @@ public Builder setInputValue(com.google.protobuf.Value.Builder builderForValue) * * *
-     * Input variable value.
+     * Optional. Input variable value.
      * 
* - * .google.protobuf.Value input_value = 5; + * .google.protobuf.Value input_value = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeInputValue(com.google.protobuf.Value value) { if (inputValueBuilder_ == null) { @@ -589,10 +594,11 @@ public Builder mergeInputValue(com.google.protobuf.Value value) { * * *
-     * Input variable value.
+     * Optional. Input variable value.
      * 
* - * .google.protobuf.Value input_value = 5; + * .google.protobuf.Value input_value = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearInputValue() { bitField0_ = (bitField0_ & ~0x00000001); @@ -609,10 +615,11 @@ public Builder clearInputValue() { * * *
-     * Input variable value.
+     * Optional. Input variable value.
      * 
* - * .google.protobuf.Value input_value = 5; + * .google.protobuf.Value input_value = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Value.Builder getInputValueBuilder() { bitField0_ |= 0x00000001; @@ -624,10 +631,11 @@ public com.google.protobuf.Value.Builder getInputValueBuilder() { * * *
-     * Input variable value.
+     * Optional. Input variable value.
      * 
* - * .google.protobuf.Value input_value = 5; + * .google.protobuf.Value input_value = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.ValueOrBuilder getInputValueOrBuilder() { if (inputValueBuilder_ != null) { @@ -641,10 +649,11 @@ public com.google.protobuf.ValueOrBuilder getInputValueOrBuilder() { * * *
-     * Input variable value.
+     * Optional. Input variable value.
      * 
* - * .google.protobuf.Value input_value = 5; + * .google.protobuf.Value input_value = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Value, diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/TerraformVariableOrBuilder.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/TerraformVariableOrBuilder.java index 9b90d9e126d8..08d6fcf8b186 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/TerraformVariableOrBuilder.java +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/TerraformVariableOrBuilder.java @@ -28,10 +28,10 @@ public interface TerraformVariableOrBuilder * * *
-   * Input variable value.
+   * Optional. Input variable value.
    * 
* - * .google.protobuf.Value input_value = 5; + * .google.protobuf.Value input_value = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the inputValue field is set. */ @@ -41,10 +41,10 @@ public interface TerraformVariableOrBuilder * * *
-   * Input variable value.
+   * Optional. Input variable value.
    * 
* - * .google.protobuf.Value input_value = 5; + * .google.protobuf.Value input_value = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The inputValue. */ @@ -54,10 +54,10 @@ public interface TerraformVariableOrBuilder * * *
-   * Input variable value.
+   * Optional. Input variable value.
    * 
* - * .google.protobuf.Value input_value = 5; + * .google.protobuf.Value input_value = 5 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.ValueOrBuilder getInputValueOrBuilder(); } diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/proto/google/cloud/config/v1/config.proto b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/proto/google/cloud/config/v1/config.proto index 083e62ef88e3..6eaea8fcd697 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/proto/google/cloud/config/v1/config.proto +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/proto/google/cloud/config/v1/config.proto @@ -288,6 +288,40 @@ service Config { }; option (google.api.method_signature) = "name"; } + + // Lists ResourceChanges for a given preview. + rpc ListResourceChanges(ListResourceChangesRequest) + returns (ListResourceChangesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/previews/*}/resourceChanges" + }; + option (google.api.method_signature) = "parent"; + } + + // Get a ResourceChange for a given preview. + rpc GetResourceChange(GetResourceChangeRequest) returns (ResourceChange) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/previews/*/resourceChanges/*}" + }; + option (google.api.method_signature) = "name"; + } + + // List ResourceDrifts for a given preview. + rpc ListResourceDrifts(ListResourceDriftsRequest) + returns (ListResourceDriftsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/previews/*}/resourceDrifts" + }; + option (google.api.method_signature) = "parent"; + } + + // Get a ResourceDrift for a given preview. + rpc GetResourceDrift(GetResourceDriftRequest) returns (ResourceDrift) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/previews/*/resourceDrifts/*}" + }; + option (google.api.method_signature) = "name"; + } } // Enum values to control quota checks for resources in terraform @@ -401,9 +435,9 @@ message Deployment { TerraformBlueprint terraform_blueprint = 6; } - // Resource name of the deployment. + // Identifier. Resource name of the deployment. // Format: `projects/{project}/locations/{location}/deployments/{deployment}` - string name = 1; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Output only. Time when the deployment was created. google.protobuf.Timestamp create_time = 2 @@ -413,8 +447,8 @@ message Deployment { google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - // User-defined metadata for the deployment. - map labels = 4; + // Optional. User-defined metadata for the deployment. + map labels = 4 [(google.api.field_behavior) = OPTIONAL]; // Output only. Current state of the deployment. State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -536,14 +570,16 @@ message TerraformBlueprint { GitSource git_source = 2; } - // Input variable values for the Terraform blueprint. - map input_values = 4; + // Optional. Input variable values for the Terraform blueprint. + map input_values = 4 + [(google.api.field_behavior) = OPTIONAL]; } // A Terraform input variable. message TerraformVariable { - // Input variable value. - google.protobuf.Value input_value = 5; + // Optional. Input variable value. + google.protobuf.Value input_value = 5 + [(google.api.field_behavior) = OPTIONAL]; } // Outputs and artifacts from applying a deployment. @@ -1048,8 +1084,9 @@ message TerraformError { // A human-readable error description. string error_description = 3; - // Original error response from underlying Google API, if available. - google.rpc.Status error = 4; + // Output only. Original error response from underlying Google API, if + // available. + google.rpc.Status error = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; } // A set of files in a Git repository. @@ -1595,7 +1632,7 @@ message Preview { [(google.api.field_behavior) = OPTIONAL]; // Optional. Arbitrary key-value metadata storage e.g. to help client tools - // identifiy preview during automation. See + // identify preview during automation. See // https://google.aip.dev/148#annotations for details on format and size // limitations. map annotations = 20 [(google.api.field_behavior) = OPTIONAL]; @@ -1849,14 +1886,14 @@ message ListTerraformVersionsRequest { } ]; - // Optional. When requesting a page of resources, 'page_size' specifies number - // of resources to return. If unspecified, at most 500 will be returned. The - // maximum value is 1000. + // Optional. When requesting a page of terraform versions, 'page_size' + // specifies number of terraform versions to return. If unspecified, at most + // 500 will be returned. The maximum value is 1000. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. Token returned by previous call to 'ListTerraformVersions' which // specifies the position in the list from where to continue listing the - // resources. + // terraform versions. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; // Optional. Lists the TerraformVersions that match the filter expression. A @@ -1930,3 +1967,285 @@ message TerraformVersion { optional google.protobuf.Timestamp obsolete_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; } + +// Terraform info of a ResourceChange. +message ResourceChangeTerraformInfo { + // Output only. TF resource address that uniquely identifies the resource. + string address = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. TF resource type. + string type = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. TF resource name. + string resource_name = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. TF resource provider. + string provider = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. TF resource actions. + repeated string actions = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// A resource change represents a change to a resource in the state file. +message ResourceChange { + option (google.api.resource) = { + type: "config.googleapis.com/ResourceChange" + pattern: "projects/{project}/locations/{location}/previews/{preview}/resourceChanges/{resource_change}" + plural: "resourceChanges" + singular: "resourceChange" + }; + + // Possible intent of the resource change. + enum Intent { + // The default value. + INTENT_UNSPECIFIED = 0; + + // The resource will be created. + CREATE = 1; + + // The resource will be updated. + UPDATE = 2; + + // The resource will be deleted. + DELETE = 3; + + // The resource will be recreated. + RECREATE = 4; + + // The resource will be untouched. + UNCHANGED = 5; + } + + // Identifier. The name of the resource change. + // Format: + // 'projects/{project_id}/locations/{location}/previews/{preview}/resourceChanges/{resource_change}'. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. Terraform info of the resource change. + ResourceChangeTerraformInfo terraform_info = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The intent of the resource change. + Intent intent = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The property changes of the resource change. + repeated PropertyChange property_changes = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// A property change represents a change to a property in the state file. +message PropertyChange { + // Output only. The path of the property change. + string path = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The paths of sensitive fields in `before`. Paths are relative + // to `path`. + repeated string before_sensitive_paths = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Representations of the object value before the actions. + google.protobuf.Value before = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The paths of sensitive fields in `after`. Paths are relative + // to `path`. + repeated string after_sensitive_paths = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Representations of the object value after the actions. + google.protobuf.Value after = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The request message for the ListResourceChanges method. +message ListResourceChangesRequest { + // Required. The parent in whose context the ResourceChanges are listed. The + // parent value is in the format: + // 'projects/{project_id}/locations/{location}/previews/{preview}'. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "config.googleapis.com/Preview" } + ]; + + // Optional. When requesting a page of resource changes, 'page_size' specifies + // number of resource changes to return. If unspecified, at most 500 will be + // returned. The maximum value is 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Token returned by previous call to 'ListResourceChanges' which + // specifies the position in the list from where to continue listing the + // resource changes. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Lists the resource changes that match the filter expression. A + // filter expression filters the resource changes listed in the response. The + // expression must be of the form '{field} {operator} {value}' where + // operators: '<', '>', + // '<=', + // '>=', + // '!=', '=', ':' are supported (colon ':' represents a HAS operator which is + // roughly synonymous with equality). {field} can refer to a proto or JSON + // field, or a synthetic field. Field names can be camelCase or snake_case. + // + // Examples: + // - Filter by name: + // name = + // "projects/foo/locations/us-central1/previews/dep/resourceChanges/baz + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Field to use to sort the list. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// A response to a 'ListResourceChanges' call. Contains a list of +// ResourceChanges. +message ListResourceChangesResponse { + // List of ResourceChanges. + repeated ResourceChange resource_changes = 1; + + // A token to request the next page of resources from the + // 'ListResourceChanges' method. The value of an empty string means that + // there are no more resources to return. + string next_page_token = 2; + + // Unreachable resources, if any. + repeated string unreachable = 3; +} + +// The request message for the GetResourceChange method. +message GetResourceChangeRequest { + // Required. The name of the resource change to retrieve. + // Format: + // 'projects/{project_id}/locations/{location}/previews/{preview}/resourceChanges/{resource_change}'. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "config.googleapis.com/ResourceChange" + } + ]; +} + +// Terraform info of a ResourceChange. +message ResourceDriftTerraformInfo { + // Output only. The address of the drifted resource. + string address = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The type of the drifted resource. + string type = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. TF resource name. + string resource_name = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The provider of the drifted resource. + string provider = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// A resource drift represents a drift to a resource in the state file. +message ResourceDrift { + option (google.api.resource) = { + type: "config.googleapis.com/ResourceDrift" + pattern: "projects/{project}/locations/{location}/previews/{preview}/resourceDrifts/{resource_drift}" + plural: "resourceDrifts" + singular: "resourceDrift" + }; + + // Identifier. The name of the resource drift. + // Format: + // 'projects/{project_id}/locations/{location}/previews/{preview}/resourceDrifts/{resource_drift}'. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. Terraform info of the resource drift. + ResourceDriftTerraformInfo terraform_info = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The property drifts of the resource drift. + repeated PropertyDrift property_drifts = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// A property drift represents a drift to a property in the state file. +message PropertyDrift { + // Output only. The path of the property drift. + string path = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The paths of sensitive fields in `before`. Paths are relative + // to `path`. + repeated string before_sensitive_paths = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Representations of the object value before the actions. + google.protobuf.Value before = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The paths of sensitive fields in `after`. Paths are relative + // to `path`. + repeated string after_sensitive_paths = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Representations of the object value after the actions. + google.protobuf.Value after = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The request message for the ListResourceDrifts method. +message ListResourceDriftsRequest { + // Required. The parent in whose context the ResourceDrifts are listed. The + // parent value is in the format: + // 'projects/{project_id}/locations/{location}/previews/{preview}'. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "config.googleapis.com/Preview" } + ]; + + // Optional. When requesting a page of resource drifts, 'page_size' specifies + // number of resource drifts to return. If unspecified, at most 500 will be + // returned. The maximum value is 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Token returned by previous call to 'ListResourceDrifts' which + // specifies the position in the list from where to continue listing the + // resource drifts. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Lists the resource drifts that match the filter expression. A + // filter expression filters the resource drifts listed in the response. The + // expression must be of the form '{field} {operator} {value}' where + // operators: '<', '>', + // '<=', + // '>=', + // '!=', '=', ':' are supported (colon ':' represents a HAS operator which is + // roughly synonymous with equality). {field} can refer to a proto or JSON + // field, or a synthetic field. Field names can be camelCase or snake_case. + // + // Examples: + // - Filter by name: + // name = + // "projects/foo/locations/us-central1/previews/dep/resourceDrifts/baz + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Field to use to sort the list. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// A response to a 'ListResourceDrifts' call. Contains a list of ResourceDrifts. +message ListResourceDriftsResponse { + // List of ResourceDrifts. + repeated ResourceDrift resource_drifts = 1; + + // A token to request the next page of resources from the + // 'ListResourceDrifts' method. The value of an empty string means that + // there are no more resources to return. + string next_page_token = 2; + + // Unreachable resources, if any. + repeated string unreachable = 3; +} + +// The request message for the GetResourceDrift method. +message GetResourceDriftRequest { + // Required. The name of the resource drift to retrieve. + // Format: + // 'projects/{project_id}/locations/{location}/previews/{preview}/resourceDrifts/{resource_drift}'. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "config.googleapis.com/ResourceDrift" + } + ]; +} diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/getresourcechange/AsyncGetResourceChange.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/getresourcechange/AsyncGetResourceChange.java new file mode 100644 index 000000000000..8c5f1dc6d341 --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/getresourcechange/AsyncGetResourceChange.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.config.v1.samples; + +// [START config_v1_generated_Config_GetResourceChange_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.GetResourceChangeRequest; +import com.google.cloud.config.v1.ResourceChange; +import com.google.cloud.config.v1.ResourceChangeName; + +public class AsyncGetResourceChange { + + public static void main(String[] args) throws Exception { + asyncGetResourceChange(); + } + + public static void asyncGetResourceChange() 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 (ConfigClient configClient = ConfigClient.create()) { + GetResourceChangeRequest request = + GetResourceChangeRequest.newBuilder() + .setName( + ResourceChangeName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]", "[RESOURCE_CHANGE]") + .toString()) + .build(); + ApiFuture future = + configClient.getResourceChangeCallable().futureCall(request); + // Do something. + ResourceChange response = future.get(); + } + } +} +// [END config_v1_generated_Config_GetResourceChange_async] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/getresourcechange/SyncGetResourceChange.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/getresourcechange/SyncGetResourceChange.java new file mode 100644 index 000000000000..2a1e01d640df --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/getresourcechange/SyncGetResourceChange.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.config.v1.samples; + +// [START config_v1_generated_Config_GetResourceChange_sync] +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.GetResourceChangeRequest; +import com.google.cloud.config.v1.ResourceChange; +import com.google.cloud.config.v1.ResourceChangeName; + +public class SyncGetResourceChange { + + public static void main(String[] args) throws Exception { + syncGetResourceChange(); + } + + public static void syncGetResourceChange() 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 (ConfigClient configClient = ConfigClient.create()) { + GetResourceChangeRequest request = + GetResourceChangeRequest.newBuilder() + .setName( + ResourceChangeName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]", "[RESOURCE_CHANGE]") + .toString()) + .build(); + ResourceChange response = configClient.getResourceChange(request); + } + } +} +// [END config_v1_generated_Config_GetResourceChange_sync] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/getresourcechange/SyncGetResourceChangeResourcechangename.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/getresourcechange/SyncGetResourceChangeResourcechangename.java new file mode 100644 index 000000000000..2e2aeebb44d5 --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/getresourcechange/SyncGetResourceChangeResourcechangename.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.config.v1.samples; + +// [START config_v1_generated_Config_GetResourceChange_Resourcechangename_sync] +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.ResourceChange; +import com.google.cloud.config.v1.ResourceChangeName; + +public class SyncGetResourceChangeResourcechangename { + + public static void main(String[] args) throws Exception { + syncGetResourceChangeResourcechangename(); + } + + public static void syncGetResourceChangeResourcechangename() 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 (ConfigClient configClient = ConfigClient.create()) { + ResourceChangeName name = + ResourceChangeName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]", "[RESOURCE_CHANGE]"); + ResourceChange response = configClient.getResourceChange(name); + } + } +} +// [END config_v1_generated_Config_GetResourceChange_Resourcechangename_sync] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/getresourcechange/SyncGetResourceChangeString.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/getresourcechange/SyncGetResourceChangeString.java new file mode 100644 index 000000000000..bc4a61dc5c1f --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/getresourcechange/SyncGetResourceChangeString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.config.v1.samples; + +// [START config_v1_generated_Config_GetResourceChange_String_sync] +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.ResourceChange; +import com.google.cloud.config.v1.ResourceChangeName; + +public class SyncGetResourceChangeString { + + public static void main(String[] args) throws Exception { + syncGetResourceChangeString(); + } + + public static void syncGetResourceChangeString() 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 (ConfigClient configClient = ConfigClient.create()) { + String name = + ResourceChangeName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]", "[RESOURCE_CHANGE]") + .toString(); + ResourceChange response = configClient.getResourceChange(name); + } + } +} +// [END config_v1_generated_Config_GetResourceChange_String_sync] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/getresourcedrift/AsyncGetResourceDrift.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/getresourcedrift/AsyncGetResourceDrift.java new file mode 100644 index 000000000000..02991773259f --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/getresourcedrift/AsyncGetResourceDrift.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.config.v1.samples; + +// [START config_v1_generated_Config_GetResourceDrift_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.GetResourceDriftRequest; +import com.google.cloud.config.v1.ResourceDrift; +import com.google.cloud.config.v1.ResourceDriftName; + +public class AsyncGetResourceDrift { + + public static void main(String[] args) throws Exception { + asyncGetResourceDrift(); + } + + public static void asyncGetResourceDrift() 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 (ConfigClient configClient = ConfigClient.create()) { + GetResourceDriftRequest request = + GetResourceDriftRequest.newBuilder() + .setName( + ResourceDriftName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]", "[RESOURCE_DRIFT]") + .toString()) + .build(); + ApiFuture future = configClient.getResourceDriftCallable().futureCall(request); + // Do something. + ResourceDrift response = future.get(); + } + } +} +// [END config_v1_generated_Config_GetResourceDrift_async] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/getresourcedrift/SyncGetResourceDrift.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/getresourcedrift/SyncGetResourceDrift.java new file mode 100644 index 000000000000..c8bf70c989c7 --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/getresourcedrift/SyncGetResourceDrift.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.config.v1.samples; + +// [START config_v1_generated_Config_GetResourceDrift_sync] +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.GetResourceDriftRequest; +import com.google.cloud.config.v1.ResourceDrift; +import com.google.cloud.config.v1.ResourceDriftName; + +public class SyncGetResourceDrift { + + public static void main(String[] args) throws Exception { + syncGetResourceDrift(); + } + + public static void syncGetResourceDrift() 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 (ConfigClient configClient = ConfigClient.create()) { + GetResourceDriftRequest request = + GetResourceDriftRequest.newBuilder() + .setName( + ResourceDriftName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]", "[RESOURCE_DRIFT]") + .toString()) + .build(); + ResourceDrift response = configClient.getResourceDrift(request); + } + } +} +// [END config_v1_generated_Config_GetResourceDrift_sync] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/getresourcedrift/SyncGetResourceDriftResourcedriftname.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/getresourcedrift/SyncGetResourceDriftResourcedriftname.java new file mode 100644 index 000000000000..a60c4d1b6210 --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/getresourcedrift/SyncGetResourceDriftResourcedriftname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.config.v1.samples; + +// [START config_v1_generated_Config_GetResourceDrift_Resourcedriftname_sync] +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.ResourceDrift; +import com.google.cloud.config.v1.ResourceDriftName; + +public class SyncGetResourceDriftResourcedriftname { + + public static void main(String[] args) throws Exception { + syncGetResourceDriftResourcedriftname(); + } + + public static void syncGetResourceDriftResourcedriftname() 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 (ConfigClient configClient = ConfigClient.create()) { + ResourceDriftName name = + ResourceDriftName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]", "[RESOURCE_DRIFT]"); + ResourceDrift response = configClient.getResourceDrift(name); + } + } +} +// [END config_v1_generated_Config_GetResourceDrift_Resourcedriftname_sync] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/getresourcedrift/SyncGetResourceDriftString.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/getresourcedrift/SyncGetResourceDriftString.java new file mode 100644 index 000000000000..9d4a9bdb469e --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/getresourcedrift/SyncGetResourceDriftString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.config.v1.samples; + +// [START config_v1_generated_Config_GetResourceDrift_String_sync] +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.ResourceDrift; +import com.google.cloud.config.v1.ResourceDriftName; + +public class SyncGetResourceDriftString { + + public static void main(String[] args) throws Exception { + syncGetResourceDriftString(); + } + + public static void syncGetResourceDriftString() 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 (ConfigClient configClient = ConfigClient.create()) { + String name = + ResourceDriftName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]", "[RESOURCE_DRIFT]") + .toString(); + ResourceDrift response = configClient.getResourceDrift(name); + } + } +} +// [END config_v1_generated_Config_GetResourceDrift_String_sync] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listresourcechanges/AsyncListResourceChanges.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listresourcechanges/AsyncListResourceChanges.java new file mode 100644 index 000000000000..9634fc9add31 --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listresourcechanges/AsyncListResourceChanges.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.config.v1.samples; + +// [START config_v1_generated_Config_ListResourceChanges_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.ListResourceChangesRequest; +import com.google.cloud.config.v1.PreviewName; +import com.google.cloud.config.v1.ResourceChange; + +public class AsyncListResourceChanges { + + public static void main(String[] args) throws Exception { + asyncListResourceChanges(); + } + + public static void asyncListResourceChanges() 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 (ConfigClient configClient = ConfigClient.create()) { + ListResourceChangesRequest request = + ListResourceChangesRequest.newBuilder() + .setParent(PreviewName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + configClient.listResourceChangesPagedCallable().futureCall(request); + // Do something. + for (ResourceChange element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END config_v1_generated_Config_ListResourceChanges_async] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listresourcechanges/AsyncListResourceChangesPaged.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listresourcechanges/AsyncListResourceChangesPaged.java new file mode 100644 index 000000000000..6046b49f6661 --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listresourcechanges/AsyncListResourceChangesPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.config.v1.samples; + +// [START config_v1_generated_Config_ListResourceChanges_Paged_async] +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.ListResourceChangesRequest; +import com.google.cloud.config.v1.ListResourceChangesResponse; +import com.google.cloud.config.v1.PreviewName; +import com.google.cloud.config.v1.ResourceChange; +import com.google.common.base.Strings; + +public class AsyncListResourceChangesPaged { + + public static void main(String[] args) throws Exception { + asyncListResourceChangesPaged(); + } + + public static void asyncListResourceChangesPaged() 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 (ConfigClient configClient = ConfigClient.create()) { + ListResourceChangesRequest request = + ListResourceChangesRequest.newBuilder() + .setParent(PreviewName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListResourceChangesResponse response = + configClient.listResourceChangesCallable().call(request); + for (ResourceChange element : response.getResourceChangesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END config_v1_generated_Config_ListResourceChanges_Paged_async] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listresourcechanges/SyncListResourceChanges.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listresourcechanges/SyncListResourceChanges.java new file mode 100644 index 000000000000..91f5b774b430 --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listresourcechanges/SyncListResourceChanges.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.config.v1.samples; + +// [START config_v1_generated_Config_ListResourceChanges_sync] +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.ListResourceChangesRequest; +import com.google.cloud.config.v1.PreviewName; +import com.google.cloud.config.v1.ResourceChange; + +public class SyncListResourceChanges { + + public static void main(String[] args) throws Exception { + syncListResourceChanges(); + } + + public static void syncListResourceChanges() 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 (ConfigClient configClient = ConfigClient.create()) { + ListResourceChangesRequest request = + ListResourceChangesRequest.newBuilder() + .setParent(PreviewName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (ResourceChange element : configClient.listResourceChanges(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END config_v1_generated_Config_ListResourceChanges_sync] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listresourcechanges/SyncListResourceChangesPreviewname.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listresourcechanges/SyncListResourceChangesPreviewname.java new file mode 100644 index 000000000000..e6a47acad11f --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listresourcechanges/SyncListResourceChangesPreviewname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.config.v1.samples; + +// [START config_v1_generated_Config_ListResourceChanges_Previewname_sync] +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.PreviewName; +import com.google.cloud.config.v1.ResourceChange; + +public class SyncListResourceChangesPreviewname { + + public static void main(String[] args) throws Exception { + syncListResourceChangesPreviewname(); + } + + public static void syncListResourceChangesPreviewname() 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 (ConfigClient configClient = ConfigClient.create()) { + PreviewName parent = PreviewName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]"); + for (ResourceChange element : configClient.listResourceChanges(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END config_v1_generated_Config_ListResourceChanges_Previewname_sync] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listresourcechanges/SyncListResourceChangesString.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listresourcechanges/SyncListResourceChangesString.java new file mode 100644 index 000000000000..b30a6f4a704f --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listresourcechanges/SyncListResourceChangesString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.config.v1.samples; + +// [START config_v1_generated_Config_ListResourceChanges_String_sync] +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.PreviewName; +import com.google.cloud.config.v1.ResourceChange; + +public class SyncListResourceChangesString { + + public static void main(String[] args) throws Exception { + syncListResourceChangesString(); + } + + public static void syncListResourceChangesString() 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 (ConfigClient configClient = ConfigClient.create()) { + String parent = PreviewName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]").toString(); + for (ResourceChange element : configClient.listResourceChanges(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END config_v1_generated_Config_ListResourceChanges_String_sync] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listresourcedrifts/AsyncListResourceDrifts.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listresourcedrifts/AsyncListResourceDrifts.java new file mode 100644 index 000000000000..7a3450813261 --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listresourcedrifts/AsyncListResourceDrifts.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.config.v1.samples; + +// [START config_v1_generated_Config_ListResourceDrifts_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.ListResourceDriftsRequest; +import com.google.cloud.config.v1.PreviewName; +import com.google.cloud.config.v1.ResourceDrift; + +public class AsyncListResourceDrifts { + + public static void main(String[] args) throws Exception { + asyncListResourceDrifts(); + } + + public static void asyncListResourceDrifts() 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 (ConfigClient configClient = ConfigClient.create()) { + ListResourceDriftsRequest request = + ListResourceDriftsRequest.newBuilder() + .setParent(PreviewName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + configClient.listResourceDriftsPagedCallable().futureCall(request); + // Do something. + for (ResourceDrift element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END config_v1_generated_Config_ListResourceDrifts_async] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listresourcedrifts/AsyncListResourceDriftsPaged.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listresourcedrifts/AsyncListResourceDriftsPaged.java new file mode 100644 index 000000000000..942df0deb94e --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listresourcedrifts/AsyncListResourceDriftsPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.config.v1.samples; + +// [START config_v1_generated_Config_ListResourceDrifts_Paged_async] +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.ListResourceDriftsRequest; +import com.google.cloud.config.v1.ListResourceDriftsResponse; +import com.google.cloud.config.v1.PreviewName; +import com.google.cloud.config.v1.ResourceDrift; +import com.google.common.base.Strings; + +public class AsyncListResourceDriftsPaged { + + public static void main(String[] args) throws Exception { + asyncListResourceDriftsPaged(); + } + + public static void asyncListResourceDriftsPaged() 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 (ConfigClient configClient = ConfigClient.create()) { + ListResourceDriftsRequest request = + ListResourceDriftsRequest.newBuilder() + .setParent(PreviewName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListResourceDriftsResponse response = + configClient.listResourceDriftsCallable().call(request); + for (ResourceDrift element : response.getResourceDriftsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END config_v1_generated_Config_ListResourceDrifts_Paged_async] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listresourcedrifts/SyncListResourceDrifts.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listresourcedrifts/SyncListResourceDrifts.java new file mode 100644 index 000000000000..d67b06589de2 --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listresourcedrifts/SyncListResourceDrifts.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.config.v1.samples; + +// [START config_v1_generated_Config_ListResourceDrifts_sync] +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.ListResourceDriftsRequest; +import com.google.cloud.config.v1.PreviewName; +import com.google.cloud.config.v1.ResourceDrift; + +public class SyncListResourceDrifts { + + public static void main(String[] args) throws Exception { + syncListResourceDrifts(); + } + + public static void syncListResourceDrifts() 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 (ConfigClient configClient = ConfigClient.create()) { + ListResourceDriftsRequest request = + ListResourceDriftsRequest.newBuilder() + .setParent(PreviewName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (ResourceDrift element : configClient.listResourceDrifts(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END config_v1_generated_Config_ListResourceDrifts_sync] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listresourcedrifts/SyncListResourceDriftsPreviewname.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listresourcedrifts/SyncListResourceDriftsPreviewname.java new file mode 100644 index 000000000000..f3ccde707ce1 --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listresourcedrifts/SyncListResourceDriftsPreviewname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.config.v1.samples; + +// [START config_v1_generated_Config_ListResourceDrifts_Previewname_sync] +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.PreviewName; +import com.google.cloud.config.v1.ResourceDrift; + +public class SyncListResourceDriftsPreviewname { + + public static void main(String[] args) throws Exception { + syncListResourceDriftsPreviewname(); + } + + public static void syncListResourceDriftsPreviewname() 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 (ConfigClient configClient = ConfigClient.create()) { + PreviewName parent = PreviewName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]"); + for (ResourceDrift element : configClient.listResourceDrifts(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END config_v1_generated_Config_ListResourceDrifts_Previewname_sync] diff --git a/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listresourcedrifts/SyncListResourceDriftsString.java b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listresourcedrifts/SyncListResourceDriftsString.java new file mode 100644 index 000000000000..8512f815172a --- /dev/null +++ b/java-infra-manager/samples/snippets/generated/com/google/cloud/config/v1/config/listresourcedrifts/SyncListResourceDriftsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.config.v1.samples; + +// [START config_v1_generated_Config_ListResourceDrifts_String_sync] +import com.google.cloud.config.v1.ConfigClient; +import com.google.cloud.config.v1.PreviewName; +import com.google.cloud.config.v1.ResourceDrift; + +public class SyncListResourceDriftsString { + + public static void main(String[] args) throws Exception { + syncListResourceDriftsString(); + } + + public static void syncListResourceDriftsString() 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 (ConfigClient configClient = ConfigClient.create()) { + String parent = PreviewName.of("[PROJECT]", "[LOCATION]", "[PREVIEW]").toString(); + for (ResourceDrift element : configClient.listResourceDrifts(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END config_v1_generated_Config_ListResourceDrifts_String_sync] diff --git a/java-iot/CHANGELOG.md b/java-iot/CHANGELOG.md index 0c293d54e1e8..8d68ddd18cc9 100644 --- a/java-iot/CHANGELOG.md +++ b/java-iot/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.68.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.67.0 (2025-06-25) ### Dependencies diff --git a/java-iot/README.md b/java-iot/README.md index cc3181375b7b..599fe06f2bf0 100644 --- a/java-iot/README.md +++ b/java-iot/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-iot - 2.66.0 + 2.67.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-iot:2.66.0' +implementation 'com.google.cloud:google-cloud-iot:2.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-iot" % "2.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-iot" % "2.67.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iot/2.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-iot/google-cloud-iot-bom/pom.xml b/java-iot/google-cloud-iot-bom/pom.xml index 81869fdf1409..c9be58458aea 100644 --- a/java-iot/google-cloud-iot-bom/pom.xml +++ b/java-iot/google-cloud-iot-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-iot-bom - 2.67.0 + 2.68.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-iot - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-iot-v1 - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-cloud-iot-v1 - 2.67.0 + 2.68.0
diff --git a/java-iot/google-cloud-iot/pom.xml b/java-iot/google-cloud-iot/pom.xml index 6f0dfc1c1e4c..36d4ec2f24a5 100644 --- a/java-iot/google-cloud-iot/pom.xml +++ b/java-iot/google-cloud-iot/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-iot - 2.67.0 + 2.68.0 jar Google Cloud IoT Core Java idiomatic client for Google Cloud IoT Core com.google.cloud google-cloud-iot-parent - 2.67.0 + 2.68.0 google-cloud-iot diff --git a/java-iot/grpc-google-cloud-iot-v1/pom.xml b/java-iot/grpc-google-cloud-iot-v1/pom.xml index 7512417818a7..574b4e5bacdd 100644 --- a/java-iot/grpc-google-cloud-iot-v1/pom.xml +++ b/java-iot/grpc-google-cloud-iot-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-iot-v1 - 2.67.0 + 2.68.0 grpc-google-cloud-iot-v1 GRPC library for grpc-google-cloud-iot-v1 com.google.cloud google-cloud-iot-parent - 2.67.0 + 2.68.0 diff --git a/java-iot/pom.xml b/java-iot/pom.xml index 69d86f28256e..c6baedf4a23c 100644 --- a/java-iot/pom.xml +++ b/java-iot/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-iot-parent pom - 2.67.0 + 2.68.0 Google Cloud IoT Core Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api.grpc proto-google-cloud-iot-v1 - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-iot-v1 - 2.67.0 + 2.68.0 com.google.cloud google-cloud-iot - 2.67.0 + 2.68.0 diff --git a/java-iot/proto-google-cloud-iot-v1/pom.xml b/java-iot/proto-google-cloud-iot-v1/pom.xml index 86d48cb8be3a..6f55c7870d07 100644 --- a/java-iot/proto-google-cloud-iot-v1/pom.xml +++ b/java-iot/proto-google-cloud-iot-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-iot-v1 - 2.67.0 + 2.68.0 proto-google-cloud-iot-v1 PROTO library for proto-google-cloud-iot-v1 com.google.cloud google-cloud-iot-parent - 2.67.0 + 2.68.0 diff --git a/java-java-shopping-merchant-issue-resolution/CHANGELOG.md b/java-java-shopping-merchant-issue-resolution/CHANGELOG.md index ee60fecce738..16b24a1a7482 100644 --- a/java-java-shopping-merchant-issue-resolution/CHANGELOG.md +++ b/java-java-shopping-merchant-issue-resolution/CHANGELOG.md @@ -1,5 +1,24 @@ # Changelog +## 0.8.0 (2025-07-11) + +### Features + +* new module for merchant-reports-v1alpha ([#11672](https://github.com/googleapis/google-cloud-java/issues/11672)) ([e611ec2](https://github.com/googleapis/google-cloud-java/commit/e611ec22adb990a3ca6b2785b183618231309b92)) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.7.0 (2025-06-25) ### Dependencies diff --git a/java-java-shopping-merchant-issue-resolution/README.md b/java-java-shopping-merchant-issue-resolution/README.md index e745bf4d650e..3008bba0ed6e 100644 --- a/java-java-shopping-merchant-issue-resolution/README.md +++ b/java-java-shopping-merchant-issue-resolution/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-issue-resolution - 0.6.0 + 0.7.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-issue-resolution:0.6.0' +implementation 'com.google.shopping:google-shopping-merchant-issue-resolution:0.7.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-issue-resolution" % "0.6.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-issue-resolution" % "0.7.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-issue-resolution.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-issue-resolution/0.6.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-issue-resolution/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-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution-bom/pom.xml b/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution-bom/pom.xml index 435ad706338a..4ad15ce73b9d 100644 --- a/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution-bom/pom.xml +++ b/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-issue-resolution-bom - 0.7.0 + 0.8.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.shopping google-shopping-merchant-issue-resolution - 0.7.0 + 0.8.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-issue-resolution-v1beta - 0.7.0 + 0.8.0 com.google.shopping.api.grpc proto-google-shopping-merchant-issue-resolution-v1beta - 0.7.0 + 0.8.0 diff --git a/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/pom.xml b/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/pom.xml index e51c53b6b183..20e00a2cf2e3 100644 --- a/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/pom.xml +++ b/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-issue-resolution - 0.7.0 + 0.8.0 jar Google Merchant Issue Resolution API Merchant Issue Resolution API Programatically manage your Merchant Issues com.google.shopping google-shopping-merchant-issue-resolution-parent - 0.7.0 + 0.8.0 google-shopping-merchant-issue-resolution diff --git a/java-java-shopping-merchant-issue-resolution/grpc-google-shopping-merchant-issue-resolution-v1beta/pom.xml b/java-java-shopping-merchant-issue-resolution/grpc-google-shopping-merchant-issue-resolution-v1beta/pom.xml index 8356e801047f..622bd4b4eb05 100644 --- a/java-java-shopping-merchant-issue-resolution/grpc-google-shopping-merchant-issue-resolution-v1beta/pom.xml +++ b/java-java-shopping-merchant-issue-resolution/grpc-google-shopping-merchant-issue-resolution-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-issue-resolution-v1beta - 0.7.0 + 0.8.0 grpc-google-shopping-merchant-issue-resolution-v1beta GRPC library for google-shopping-merchant-issue-resolution com.google.shopping google-shopping-merchant-issue-resolution-parent - 0.7.0 + 0.8.0 diff --git a/java-java-shopping-merchant-issue-resolution/pom.xml b/java-java-shopping-merchant-issue-resolution/pom.xml index 8a36154e7dfb..88e4966ca155 100644 --- a/java-java-shopping-merchant-issue-resolution/pom.xml +++ b/java-java-shopping-merchant-issue-resolution/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-issue-resolution-parent pom - 0.7.0 + 0.8.0 Google Merchant Issue Resolution API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.shopping google-shopping-merchant-issue-resolution - 0.7.0 + 0.8.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-issue-resolution-v1beta - 0.7.0 + 0.8.0 com.google.shopping.api.grpc proto-google-shopping-merchant-issue-resolution-v1beta - 0.7.0 + 0.8.0 diff --git a/java-java-shopping-merchant-issue-resolution/proto-google-shopping-merchant-issue-resolution-v1beta/pom.xml b/java-java-shopping-merchant-issue-resolution/proto-google-shopping-merchant-issue-resolution-v1beta/pom.xml index 03de01f6c252..e7e4d878bd5f 100644 --- a/java-java-shopping-merchant-issue-resolution/proto-google-shopping-merchant-issue-resolution-v1beta/pom.xml +++ b/java-java-shopping-merchant-issue-resolution/proto-google-shopping-merchant-issue-resolution-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-issue-resolution-v1beta - 0.7.0 + 0.8.0 proto-google-shopping-merchant-issue-resolution-v1beta Proto library for google-shopping-merchant-issue-resolution com.google.shopping google-shopping-merchant-issue-resolution-parent - 0.7.0 + 0.8.0 diff --git a/java-java-shopping-merchant-order-tracking/CHANGELOG.md b/java-java-shopping-merchant-order-tracking/CHANGELOG.md index ee60fecce738..a4742f9f4daa 100644 --- a/java-java-shopping-merchant-order-tracking/CHANGELOG.md +++ b/java-java-shopping-merchant-order-tracking/CHANGELOG.md @@ -1,5 +1,25 @@ # Changelog +## 0.8.0 (2025-07-11) + +### Features + +* new module for merchant-reports-v1alpha ([#11672](https://github.com/googleapis/google-cloud-java/issues/11672)) ([e611ec2](https://github.com/googleapis/google-cloud-java/commit/e611ec22adb990a3ca6b2785b183618231309b92)) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.7.0 (2025-06-25) ### Dependencies diff --git a/java-java-shopping-merchant-order-tracking/README.md b/java-java-shopping-merchant-order-tracking/README.md index ae9825c810c5..1de0528ff655 100644 --- a/java-java-shopping-merchant-order-tracking/README.md +++ b/java-java-shopping-merchant-order-tracking/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-order-tracking - 0.6.0 + 0.7.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-order-tracking:0.6.0' +implementation 'com.google.shopping:google-shopping-merchant-order-tracking:0.7.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-order-tracking" % "0.6.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-order-tracking" % "0.7.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-order-tracking.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-order-tracking/0.6.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-order-tracking/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-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking-bom/pom.xml b/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking-bom/pom.xml index 1c122a3a9f50..6d2b8e05fed0 100644 --- a/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking-bom/pom.xml +++ b/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-order-tracking-bom - 0.7.0 + 0.8.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.shopping google-shopping-merchant-order-tracking - 0.7.0 + 0.8.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-order-tracking-v1beta - 0.7.0 + 0.8.0 com.google.shopping.api.grpc proto-google-shopping-merchant-order-tracking-v1beta - 0.7.0 + 0.8.0 diff --git a/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking/pom.xml b/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking/pom.xml index 2cb83a7db35b..c46d03d8c9e2 100644 --- a/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking/pom.xml +++ b/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-order-tracking - 0.7.0 + 0.8.0 jar Google Merchant Order Tracking API Merchant Order Tracking API Programmatically manage your Merchant Center Accounts com.google.shopping google-shopping-merchant-order-tracking-parent - 0.7.0 + 0.8.0 google-shopping-merchant-order-tracking diff --git a/java-java-shopping-merchant-order-tracking/grpc-google-shopping-merchant-order-tracking-v1beta/pom.xml b/java-java-shopping-merchant-order-tracking/grpc-google-shopping-merchant-order-tracking-v1beta/pom.xml index a02122ef9042..8eb31c9c323c 100644 --- a/java-java-shopping-merchant-order-tracking/grpc-google-shopping-merchant-order-tracking-v1beta/pom.xml +++ b/java-java-shopping-merchant-order-tracking/grpc-google-shopping-merchant-order-tracking-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-order-tracking-v1beta - 0.7.0 + 0.8.0 grpc-google-shopping-merchant-order-tracking-v1beta GRPC library for google-shopping-merchant-order-tracking com.google.shopping google-shopping-merchant-order-tracking-parent - 0.7.0 + 0.8.0 diff --git a/java-java-shopping-merchant-order-tracking/pom.xml b/java-java-shopping-merchant-order-tracking/pom.xml index a0b9ffdc9280..ef1e56adee36 100644 --- a/java-java-shopping-merchant-order-tracking/pom.xml +++ b/java-java-shopping-merchant-order-tracking/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-order-tracking-parent pom - 0.7.0 + 0.8.0 Google Merchant Order Tracking API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.shopping google-shopping-merchant-order-tracking - 0.7.0 + 0.8.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-order-tracking-v1beta - 0.7.0 + 0.8.0 com.google.shopping.api.grpc proto-google-shopping-merchant-order-tracking-v1beta - 0.7.0 + 0.8.0 diff --git a/java-java-shopping-merchant-order-tracking/proto-google-shopping-merchant-order-tracking-v1beta/pom.xml b/java-java-shopping-merchant-order-tracking/proto-google-shopping-merchant-order-tracking-v1beta/pom.xml index 06240ccbc05c..012f9d0a9bef 100644 --- a/java-java-shopping-merchant-order-tracking/proto-google-shopping-merchant-order-tracking-v1beta/pom.xml +++ b/java-java-shopping-merchant-order-tracking/proto-google-shopping-merchant-order-tracking-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-order-tracking-v1beta - 0.7.0 + 0.8.0 proto-google-shopping-merchant-order-tracking-v1beta Proto library for google-shopping-merchant-order-tracking com.google.shopping google-shopping-merchant-order-tracking-parent - 0.7.0 + 0.8.0 diff --git a/java-kms/CHANGELOG.md b/java-kms/CHANGELOG.md index 1e8c523b7c36..a3fb6f4d3c02 100644 --- a/java-kms/CHANGELOG.md +++ b/java-kms/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.71.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.70.0 (2025-06-25) ### Dependencies diff --git a/java-kms/README.md b/java-kms/README.md index 83dd8c3293f6..dacb665daf82 100644 --- a/java-kms/README.md +++ b/java-kms/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-kms - 2.69.0 + 2.70.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-kms:2.69.0' +implementation 'com.google.cloud:google-cloud-kms:2.70.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-kms" % "2.69.0" +libraryDependencies += "com.google.cloud" % "google-cloud-kms" % "2.70.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.69.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kms/2.70.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/google-cloud-kms-bom/pom.xml b/java-kms/google-cloud-kms-bom/pom.xml index fe6552640495..0d05a83362d4 100644 --- a/java-kms/google-cloud-kms-bom/pom.xml +++ b/java-kms/google-cloud-kms-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-kms-bom - 2.70.0 + 2.71.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-kms - 2.70.0 + 2.71.0 com.google.api.grpc grpc-google-cloud-kms-v1 - 0.161.0 + 0.162.0 com.google.api.grpc proto-google-cloud-kms-v1 - 0.161.0 + 0.162.0 diff --git a/java-kms/google-cloud-kms/pom.xml b/java-kms/google-cloud-kms/pom.xml index b05be347be27..6048fd02ad23 100644 --- a/java-kms/google-cloud-kms/pom.xml +++ b/java-kms/google-cloud-kms/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-kms - 2.70.0 + 2.71.0 jar Google Cloud KMS Java idiomatic client for Google Cloud KMS com.google.cloud google-cloud-kms-parent - 2.70.0 + 2.71.0 google-cloud-kms diff --git a/java-kms/grpc-google-cloud-kms-v1/pom.xml b/java-kms/grpc-google-cloud-kms-v1/pom.xml index 580319530b16..6bdb3f80850d 100644 --- a/java-kms/grpc-google-cloud-kms-v1/pom.xml +++ b/java-kms/grpc-google-cloud-kms-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-kms-v1 - 0.161.0 + 0.162.0 grpc-google-cloud-kms-v1 GRPC library for grpc-google-cloud-kms-v1 com.google.cloud google-cloud-kms-parent - 2.70.0 + 2.71.0 diff --git a/java-kms/pom.xml b/java-kms/pom.xml index c6aba5adc4b5..04269a28c889 100644 --- a/java-kms/pom.xml +++ b/java-kms/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-kms-parent pom - 2.70.0 + 2.71.0 Google Cloud KMS Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,22 +29,22 @@ com.google.api.grpc proto-google-cloud-kms-v1 - 0.161.0 + 0.162.0 com.google.api.grpc grpc-google-cloud-kms-v1 - 0.161.0 + 0.162.0 com.google.cloud google-cloud-kms - 2.70.0 + 2.71.0 com.google.cloud google-cloud-kms-bom - 2.70.0 + 2.71.0 diff --git a/java-kms/proto-google-cloud-kms-v1/pom.xml b/java-kms/proto-google-cloud-kms-v1/pom.xml index 75117d71937e..bb10db3039c1 100644 --- a/java-kms/proto-google-cloud-kms-v1/pom.xml +++ b/java-kms/proto-google-cloud-kms-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-kms-v1 - 0.161.0 + 0.162.0 proto-google-cloud-kms-v1 PROTO library for proto-google-cloud-kms-v1 com.google.cloud google-cloud-kms-parent - 2.70.0 + 2.71.0 diff --git a/java-kmsinventory/CHANGELOG.md b/java-kmsinventory/CHANGELOG.md index 4831bf951602..a00c79f716aa 100644 --- a/java-kmsinventory/CHANGELOG.md +++ b/java-kmsinventory/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.57.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.56.0 (2025-06-25) ### Dependencies diff --git a/java-kmsinventory/README.md b/java-kmsinventory/README.md index aafafe6a20aa..1c9d99c6f2ea 100644 --- a/java-kmsinventory/README.md +++ b/java-kmsinventory/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-kmsinventory - 0.55.0 + 0.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-kmsinventory:0.55.0' +implementation 'com.google.cloud:google-cloud-kmsinventory:0.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-kmsinventory" % "0.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-kmsinventory" % "0.56.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-kmsinventory.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kmsinventory/0.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kmsinventory/0.56.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/google-cloud-kmsinventory-bom/pom.xml b/java-kmsinventory/google-cloud-kmsinventory-bom/pom.xml index b22994ca907e..c795cd76d203 100644 --- a/java-kmsinventory/google-cloud-kmsinventory-bom/pom.xml +++ b/java-kmsinventory/google-cloud-kmsinventory-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-kmsinventory-bom - 0.56.0 + 0.57.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-kmsinventory - 0.56.0 + 0.57.0 com.google.api.grpc grpc-google-cloud-kmsinventory-v1 - 0.56.0 + 0.57.0 com.google.api.grpc proto-google-cloud-kmsinventory-v1 - 0.56.0 + 0.57.0 diff --git a/java-kmsinventory/google-cloud-kmsinventory/pom.xml b/java-kmsinventory/google-cloud-kmsinventory/pom.xml index abf98c576d01..3d606eed2d44 100644 --- a/java-kmsinventory/google-cloud-kmsinventory/pom.xml +++ b/java-kmsinventory/google-cloud-kmsinventory/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-kmsinventory - 0.56.0 + 0.57.0 jar Google KMS Inventory API KMS Inventory API KMS Inventory API. com.google.cloud google-cloud-kmsinventory-parent - 0.56.0 + 0.57.0 google-cloud-kmsinventory diff --git a/java-kmsinventory/grpc-google-cloud-kmsinventory-v1/pom.xml b/java-kmsinventory/grpc-google-cloud-kmsinventory-v1/pom.xml index f34fac12d4b3..ddba8ce41784 100644 --- a/java-kmsinventory/grpc-google-cloud-kmsinventory-v1/pom.xml +++ b/java-kmsinventory/grpc-google-cloud-kmsinventory-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-kmsinventory-v1 - 0.56.0 + 0.57.0 grpc-google-cloud-kmsinventory-v1 GRPC library for google-cloud-kmsinventory com.google.cloud google-cloud-kmsinventory-parent - 0.56.0 + 0.57.0 diff --git a/java-kmsinventory/pom.xml b/java-kmsinventory/pom.xml index d5e535cd2a7b..dc3dd7513a8a 100644 --- a/java-kmsinventory/pom.xml +++ b/java-kmsinventory/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-kmsinventory-parent pom - 0.56.0 + 0.57.0 Google KMS Inventory API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,22 +29,22 @@ com.google.cloud google-cloud-kmsinventory - 0.56.0 + 0.57.0 com.google.api.grpc grpc-google-cloud-kmsinventory-v1 - 0.56.0 + 0.57.0 com.google.api.grpc proto-google-cloud-kmsinventory-v1 - 0.56.0 + 0.57.0 com.google.api.grpc proto-google-cloud-kms-v1 - 0.161.0 + 0.162.0 diff --git a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/pom.xml b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/pom.xml index 358c2091225d..e07714315a18 100644 --- a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/pom.xml +++ b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-kmsinventory-v1 - 0.56.0 + 0.57.0 proto-google-cloud-kmsinventory-v1 Proto library for google-cloud-kmsinventory com.google.cloud google-cloud-kmsinventory-parent - 0.56.0 + 0.57.0 diff --git a/java-language/CHANGELOG.md b/java-language/CHANGELOG.md index 00179fcc25b2..20b121ba116e 100644 --- a/java-language/CHANGELOG.md +++ b/java-language/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.69.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.68.0 (2025-06-25) ### Dependencies diff --git a/java-language/README.md b/java-language/README.md index 11906f5ef0ca..e7224a708e3c 100644 --- a/java-language/README.md +++ b/java-language/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-language - 2.67.0 + 2.68.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-language:2.67.0' +implementation 'com.google.cloud:google-cloud-language:2.68.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-language" % "2.67.0" +libraryDependencies += "com.google.cloud" % "google-cloud-language" % "2.68.0" ``` ## Authentication @@ -226,7 +226,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.67.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-language/2.68.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/google-cloud-language-bom/pom.xml b/java-language/google-cloud-language-bom/pom.xml index c9282a9b82f1..00c365c07af2 100644 --- a/java-language/google-cloud-language-bom/pom.xml +++ b/java-language/google-cloud-language-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-language-bom - 2.68.0 + 2.69.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -23,37 +23,37 @@ com.google.cloud google-cloud-language - 2.68.0 + 2.69.0 com.google.api.grpc grpc-google-cloud-language-v1 - 2.68.0 + 2.69.0 com.google.api.grpc grpc-google-cloud-language-v1beta2 - 0.155.0 + 0.156.0 com.google.api.grpc grpc-google-cloud-language-v2 - 2.68.0 + 2.69.0 com.google.api.grpc proto-google-cloud-language-v1 - 2.68.0 + 2.69.0 com.google.api.grpc proto-google-cloud-language-v1beta2 - 0.155.0 + 0.156.0 com.google.api.grpc proto-google-cloud-language-v2 - 2.68.0 + 2.69.0 diff --git a/java-language/google-cloud-language/pom.xml b/java-language/google-cloud-language/pom.xml index 2a684f2aa3fc..cedd89bdb68e 100644 --- a/java-language/google-cloud-language/pom.xml +++ b/java-language/google-cloud-language/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-language - 2.68.0 + 2.69.0 jar Google Cloud Natural Language Java idiomatic client for Google Clould Natural Language com.google.cloud google-cloud-language-parent - 2.68.0 + 2.69.0 google-cloud-language diff --git a/java-language/grpc-google-cloud-language-v1/pom.xml b/java-language/grpc-google-cloud-language-v1/pom.xml index 6356c23df585..f80533163948 100644 --- a/java-language/grpc-google-cloud-language-v1/pom.xml +++ b/java-language/grpc-google-cloud-language-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-language-v1 - 2.68.0 + 2.69.0 grpc-google-cloud-language-v1 GRPC library for grpc-google-cloud-language-v1 com.google.cloud google-cloud-language-parent - 2.68.0 + 2.69.0 diff --git a/java-language/grpc-google-cloud-language-v1beta2/pom.xml b/java-language/grpc-google-cloud-language-v1beta2/pom.xml index 0840dddeceea..59eb911fbe3d 100644 --- a/java-language/grpc-google-cloud-language-v1beta2/pom.xml +++ b/java-language/grpc-google-cloud-language-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-language-v1beta2 - 0.155.0 + 0.156.0 grpc-google-cloud-language-v1beta2 GRPC library for grpc-google-cloud-language-v1beta2 com.google.cloud google-cloud-language-parent - 2.68.0 + 2.69.0 diff --git a/java-language/grpc-google-cloud-language-v2/pom.xml b/java-language/grpc-google-cloud-language-v2/pom.xml index f790296b4a5e..0dd09775df36 100644 --- a/java-language/grpc-google-cloud-language-v2/pom.xml +++ b/java-language/grpc-google-cloud-language-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-language-v2 - 2.68.0 + 2.69.0 grpc-google-cloud-language-v2 GRPC library for google-cloud-language com.google.cloud google-cloud-language-parent - 2.68.0 + 2.69.0 diff --git a/java-language/pom.xml b/java-language/pom.xml index 2c995ce8b485..697134b51160 100644 --- a/java-language/pom.xml +++ b/java-language/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-language-parent pom - 2.68.0 + 2.69.0 Google Cloud Natural Language Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.api.grpc proto-google-cloud-language-v1 - 2.68.0 + 2.69.0 com.google.api.grpc proto-google-cloud-language-v2 - 2.68.0 + 2.69.0 com.google.api.grpc grpc-google-cloud-language-v2 - 2.68.0 + 2.69.0 com.google.api.grpc proto-google-cloud-language-v1beta2 - 0.155.0 + 0.156.0 com.google.api.grpc grpc-google-cloud-language-v1 - 2.68.0 + 2.69.0 com.google.api.grpc grpc-google-cloud-language-v1beta2 - 0.155.0 + 0.156.0 com.google.cloud google-cloud-language - 2.68.0 + 2.69.0 diff --git a/java-language/proto-google-cloud-language-v1/pom.xml b/java-language/proto-google-cloud-language-v1/pom.xml index 22501ed319c2..01dc34465ae5 100644 --- a/java-language/proto-google-cloud-language-v1/pom.xml +++ b/java-language/proto-google-cloud-language-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-language-v1 - 2.68.0 + 2.69.0 proto-google-cloud-language-v1 PROTO library for proto-google-cloud-language-v1 com.google.cloud google-cloud-language-parent - 2.68.0 + 2.69.0 diff --git a/java-language/proto-google-cloud-language-v1beta2/pom.xml b/java-language/proto-google-cloud-language-v1beta2/pom.xml index 2326be732651..b3573ca973a9 100644 --- a/java-language/proto-google-cloud-language-v1beta2/pom.xml +++ b/java-language/proto-google-cloud-language-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-language-v1beta2 - 0.155.0 + 0.156.0 proto-google-cloud-language-v1beta2 PROTO library for proto-google-cloud-language-v1beta2 com.google.cloud google-cloud-language-parent - 2.68.0 + 2.69.0 diff --git a/java-language/proto-google-cloud-language-v2/pom.xml b/java-language/proto-google-cloud-language-v2/pom.xml index fe93a2669989..32077d8680fe 100644 --- a/java-language/proto-google-cloud-language-v2/pom.xml +++ b/java-language/proto-google-cloud-language-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-language-v2 - 2.68.0 + 2.69.0 proto-google-cloud-language-v2 Proto library for google-cloud-language com.google.cloud google-cloud-language-parent - 2.68.0 + 2.69.0 diff --git a/java-licensemanager/.OwlBot-hermetic.yaml b/java-licensemanager/.OwlBot-hermetic.yaml new file mode 100644 index 000000000000..08c791e8342c --- /dev/null +++ b/java-licensemanager/.OwlBot-hermetic.yaml @@ -0,0 +1,35 @@ +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.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. + + +deep-remove-regex: +- "/java-licensemanager/grpc-google-.*/src" +- "/java-licensemanager/proto-google-.*/src" +- "/java-licensemanager/google-.*/src" +- "/java-licensemanager/samples/snippets/generated" + +deep-preserve-regex: +- "/java-licensemanager/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + +deep-copy-regex: +- source: "/google/cloud/licensemanager/(v.*)/.*-java/proto-google-.*/src" + dest: "/owl-bot-staging/java-licensemanager/$1/proto-google-cloud-licensemanager-$1/src" +- source: "/google/cloud/licensemanager/(v.*)/.*-java/grpc-google-.*/src" + dest: "/owl-bot-staging/java-licensemanager/$1/grpc-google-cloud-licensemanager-$1/src" +- source: "/google/cloud/licensemanager/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-licensemanager/$1/google-cloud-licensemanager/src" +- source: "/google/cloud/licensemanager/(v.*)/.*-java/samples/snippets/generated" + dest: "/owl-bot-staging/java-licensemanager/$1/samples/snippets/generated" + +api-name: licensemanager \ No newline at end of file diff --git a/java-licensemanager/.repo-metadata.json b/java-licensemanager/.repo-metadata.json new file mode 100644 index 000000000000..6e1b23766c79 --- /dev/null +++ b/java-licensemanager/.repo-metadata.json @@ -0,0 +1,16 @@ +{ + "api_shortname": "licensemanager", + "name_pretty": "License Manager API", + "product_documentation": "https://cloud.google.com/compute/docs/instances/windows/ms-licensing", + "api_description": "License Manager is a tool to manage and track third-party licenses on Google Cloud.", + "client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-licensemanager/latest/overview", + "release_level": "preview", + "transport": "both", + "language": "java", + "repo": "googleapis/google-cloud-java", + "repo_short": "java-licensemanager", + "distribution_name": "com.google.cloud:google-cloud-licensemanager", + "api_id": "licensemanager.googleapis.com", + "library_type": "GAPIC_AUTO", + "requires_billing": true +} \ No newline at end of file diff --git a/java-licensemanager/CHANGELOG.md b/java-licensemanager/CHANGELOG.md new file mode 100644 index 000000000000..5983d8fe444f --- /dev/null +++ b/java-licensemanager/CHANGELOG.md @@ -0,0 +1,11 @@ +# Changelog + +## 0.1.0 (2025-07-11) + +### Features + +* new module for licensemanager ([#11673](https://github.com/googleapis/google-cloud-java/issues/11673)) ([c192cdc](https://github.com/googleapis/google-cloud-java/commit/c192cdc1843f34caad0cbe05c1216bf892a5c0f7)) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) diff --git a/java-licensemanager/README.md b/java-licensemanager/README.md new file mode 100644 index 000000000000..d348f911aa78 --- /dev/null +++ b/java-licensemanager/README.md @@ -0,0 +1,224 @@ +# Google License Manager API Client for Java + +Java idiomatic client for [License Manager API][product-docs]. + +[![Maven][maven-version-image]][maven-version-link] +![Stability][stability-image] + +- [Product Documentation][product-docs] +- [Client Library Documentation][javadocs] + +> Note: This client is a work-in-progress, and may occasionally +> make backwards-incompatible changes. + + +## Quickstart + + +If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: + +```xml + + + + com.google.cloud + libraries-bom + 26.61.0 + pom + import + + + + + + + com.google.cloud + google-cloud-licensemanager + + +``` + +If you are using Maven without the BOM, add this to your dependencies: + + +```xml + + com.google.cloud + google-cloud-licensemanager + 0.0.0 + +``` + +If you are using Gradle without BOM, add this to your dependencies: + +```Groovy +implementation 'com.google.cloud:google-cloud-licensemanager:0.0.0' +``` + +If you are using SBT, add this to your dependencies: + +```Scala +libraryDependencies += "com.google.cloud" % "google-cloud-licensemanager" % "0.0.0" +``` + +## Authentication + +See the [Authentication][authentication] section in the base directory's README. + +## Authorization + +The client application making API calls must be granted [authorization scopes][auth-scopes] required for the desired License Manager API APIs, and the authenticated principal must have the [IAM role(s)][predefined-iam-roles] required to access GCP resources using the License Manager API API calls. + +## Getting Started + +### Prerequisites + +You will need a [Google Cloud Platform Console][developer-console] project with the License Manager API [API enabled][enable-api]. +You will need to [enable billing][enable-billing] to use Google License Manager API. +[Follow these instructions][create-project] to get your project set up. You will also need to set up the local development environment by +[installing the Google Cloud Command Line Interface][cloud-cli] and running the following commands in command line: +`gcloud auth login` and `gcloud config set project [YOUR PROJECT ID]`. + +### Installation and setup + +You'll need to obtain the `google-cloud-licensemanager` library. See the [Quickstart](#quickstart) section +to add `google-cloud-licensemanager` as a dependency in your code. + +## About License Manager API + + +[License Manager API][product-docs] License Manager is a tool to manage and track third-party licenses on Google Cloud. + +See the [License Manager API client library docs][javadocs] to learn how to +use this License Manager API Client Library. + + + + + + +## Troubleshooting + +To get help, follow the instructions in the [shared Troubleshooting document][troubleshooting]. + +## Transport + +License Manager API uses both gRPC and HTTP/JSON for the transport layer. + +## Supported Java Versions + +Java 8 or above is required for using this client. + +Google's Java client libraries, +[Google Cloud Client Libraries][cloudlibs] +and +[Google Cloud API Libraries][apilibs], +follow the +[Oracle Java SE support roadmap][oracle] +(see the Oracle Java SE Product Releases section). + +### For new development + +In general, new feature development occurs with support for the lowest Java +LTS version covered by Oracle's Premier Support (which typically lasts 5 years +from initial General Availability). If the minimum required JVM for a given +library is changed, it is accompanied by a [semver][semver] major release. + +Java 11 and (in September 2021) Java 17 are the best choices for new +development. + +### Keeping production systems current + +Google tests its client libraries with all current LTS versions covered by +Oracle's Extended Support (which typically lasts 8 years from initial +General Availability). + +#### Legacy support + +Google's client libraries support legacy versions of Java runtimes with long +term stable libraries that don't receive feature updates on a best efforts basis +as it may not be possible to backport all patches. + +Google provides updates on a best efforts basis to apps that continue to use +Java 7, though apps might need to upgrade to current versions of the library +that supports their JVM. + +#### Where to find specific information + +The latest versions and the supported Java versions are identified on +the individual GitHub repository `github.com/GoogleAPIs/java-SERVICENAME` +and on [google-cloud-java][g-c-j]. + +## Versioning + + +This library follows [Semantic Versioning](http://semver.org/). + + +It is currently in major version zero (``0.y.z``), which means that anything may change at any time +and the public API should not be considered stable. + + +## Contributing + + +Contributions to this library are always welcome and highly encouraged. + +See [CONTRIBUTING][contributing] for more information how to get started. + +Please note that this project is released with a Contributor Code of Conduct. By participating in +this project you agree to abide by its terms. See [Code of Conduct][code-of-conduct] for more +information. + + +## License + +Apache 2.0 - See [LICENSE][license] for more information. + +## CI Status + +Java Version | Status +------------ | ------ +Java 8 | [![Kokoro CI][kokoro-badge-image-2]][kokoro-badge-link-2] +Java 8 OSX | [![Kokoro CI][kokoro-badge-image-3]][kokoro-badge-link-3] +Java 8 Windows | [![Kokoro CI][kokoro-badge-image-4]][kokoro-badge-link-4] +Java 11 | [![Kokoro CI][kokoro-badge-image-5]][kokoro-badge-link-5] + +Java is a registered trademark of Oracle and/or its affiliates. + +[product-docs]: https://cloud.google.com/compute/docs/instances/windows/ms-licensing +[javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-licensemanager/latest/overview +[kokoro-badge-image-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java7.svg +[kokoro-badge-link-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java7.html +[kokoro-badge-image-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8.svg +[kokoro-badge-link-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8.html +[kokoro-badge-image-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8-osx.svg +[kokoro-badge-link-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8-osx.html +[kokoro-badge-image-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8-win.svg +[kokoro-badge-link-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8-win.html +[kokoro-badge-image-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.svg +[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html +[stability-image]: https://img.shields.io/badge/stability-preview-yellow +[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-licensemanager.svg +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-licensemanager/0.0.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 +[iam-policy]: https://cloud.google.com/iam/docs/overview#cloud-iam-policy +[developer-console]: https://console.developers.google.com/ +[create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects +[cloud-cli]: https://cloud.google.com/cli +[troubleshooting]: https://github.com/googleapis/google-cloud-java/blob/main/TROUBLESHOOTING.md +[contributing]: https://github.com/googleapis/google-cloud-java/blob/main/CONTRIBUTING.md +[code-of-conduct]: https://github.com/googleapis/google-cloud-java/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct +[license]: https://github.com/googleapis/google-cloud-java/blob/main/LICENSE +[enable-billing]: https://cloud.google.com/apis/docs/getting-started#enabling_billing +[enable-api]: https://console.cloud.google.com/flows/enableapi?apiid=licensemanager.googleapis.com +[libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM +[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png + +[semver]: https://semver.org/ +[cloudlibs]: https://cloud.google.com/apis/docs/client-libraries-explained +[apilibs]: https://cloud.google.com/apis/docs/client-libraries-explained#google_api_client_libraries +[oracle]: https://www.oracle.com/java/technologies/java-se-support-roadmap.html +[g-c-j]: http://github.com/googleapis/google-cloud-java diff --git a/java-licensemanager/google-cloud-licensemanager-bom/pom.xml b/java-licensemanager/google-cloud-licensemanager-bom/pom.xml new file mode 100644 index 000000000000..2f8f4726368f --- /dev/null +++ b/java-licensemanager/google-cloud-licensemanager-bom/pom.xml @@ -0,0 +1,43 @@ + + + 4.0.0 + com.google.cloud + google-cloud-licensemanager-bom + 0.1.0 + pom + + com.google.cloud + google-cloud-pom-parent + 1.62.0 + ../../google-cloud-pom-parent/pom.xml + + + Google License Manager API BOM + + BOM for License Manager API + + + + true + + + + + + com.google.cloud + google-cloud-licensemanager + 0.1.0 + + + com.google.api.grpc + grpc-google-cloud-licensemanager-v1 + 0.1.0 + + + com.google.api.grpc + proto-google-cloud-licensemanager-v1 + 0.1.0 + + + + diff --git a/java-licensemanager/google-cloud-licensemanager/pom.xml b/java-licensemanager/google-cloud-licensemanager/pom.xml new file mode 100644 index 000000000000..ecd221a44f0b --- /dev/null +++ b/java-licensemanager/google-cloud-licensemanager/pom.xml @@ -0,0 +1,115 @@ + + + 4.0.0 + com.google.cloud + google-cloud-licensemanager + 0.1.0 + jar + Google License Manager API + License Manager API License Manager is a tool to manage and track third-party licenses on Google Cloud. + + com.google.cloud + google-cloud-licensemanager-parent + 0.1.0 + + + google-cloud-licensemanager + + + + io.grpc + grpc-api + + + io.grpc + grpc-stub + + + io.grpc + grpc-protobuf + + + com.google.api + api-common + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-common-protos + + + + com.google.api.grpc + proto-google-cloud-licensemanager-v1 + + + com.google.guava + guava + + + com.google.api + gax + + + com.google.api + gax-grpc + + + com.google.api + gax-httpjson + + + com.google.api.grpc + proto-google-iam-v1 + + + org.threeten + threetenbp + + + + + com.google.api.grpc + grpc-google-common-protos + test + + + com.google.api.grpc + grpc-google-iam-v1 + test + + + junit + junit + test + + + + com.google.api.grpc + grpc-google-cloud-licensemanager-v1 + test + + + + com.google.api + gax + testlib + test + + + com.google.api + gax-grpc + testlib + test + + + com.google.api + gax-httpjson + testlib + test + + + diff --git a/java-licensemanager/google-cloud-licensemanager/src/main/java/com/google/cloud/licensemanager/v1/LicenseManagerClient.java b/java-licensemanager/google-cloud-licensemanager/src/main/java/com/google/cloud/licensemanager/v1/LicenseManagerClient.java new file mode 100644 index 000000000000..3f9ddb18af62 --- /dev/null +++ b/java-licensemanager/google-cloud-licensemanager/src/main/java/com/google/cloud/licensemanager/v1/LicenseManagerClient.java @@ -0,0 +1,2991 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1; + +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.cloud.licensemanager.v1.stub.LicenseManagerStub; +import com.google.cloud.licensemanager.v1.stub.LicenseManagerStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service describing handlers for resources + * + *

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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+ *   ConfigurationName name = ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]");
+ *   Configuration response = licenseManagerClient.getConfiguration(name);
+ * }
+ * }
+ * + *

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

ListConfigurations

Lists Configurations in a given project and location.

+ *

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

+ *
    + *
  • listConfigurations(ListConfigurationsRequest request) + *

+ *

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

+ *
    + *
  • listConfigurations(LocationName parent) + *

  • listConfigurations(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.

+ *
    + *
  • listConfigurationsPagedCallable() + *

  • listConfigurationsCallable() + *

+ *

GetConfiguration

Gets details of a single Configuration.

+ *

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

+ *
    + *
  • getConfiguration(GetConfigurationRequest request) + *

+ *

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

+ *
    + *
  • getConfiguration(ConfigurationName name) + *

  • getConfiguration(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.

+ *
    + *
  • getConfigurationCallable() + *

+ *

CreateConfiguration

Creates a new Configuration in a given project and location.

+ *

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

+ *
    + *
  • createConfigurationAsync(CreateConfigurationRequest request) + *

+ *

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

+ *
    + *
  • createConfigurationAsync(LocationName parent, Configuration configuration, String configurationId) + *

  • createConfigurationAsync(String parent, Configuration configuration, String configurationId) + *

+ *

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

+ *
    + *
  • createConfigurationOperationCallable() + *

  • createConfigurationCallable() + *

+ *

UpdateConfiguration

Updates the parameters of a single Configuration.

+ *

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

+ *
    + *
  • updateConfigurationAsync(UpdateConfigurationRequest request) + *

+ *

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

+ *
    + *
  • updateConfigurationAsync(Configuration configuration, FieldMask updateMask) + *

+ *

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

+ *
    + *
  • updateConfigurationOperationCallable() + *

  • updateConfigurationCallable() + *

+ *

DeleteConfiguration

Deletes a single Configuration.

+ *

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

+ *
    + *
  • deleteConfigurationAsync(DeleteConfigurationRequest request) + *

+ *

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

+ *
    + *
  • deleteConfigurationAsync(ConfigurationName name) + *

  • deleteConfigurationAsync(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.

+ *
    + *
  • deleteConfigurationOperationCallable() + *

  • deleteConfigurationCallable() + *

+ *

ListInstances

Lists Instances in a given project and location.

+ *

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

+ *
    + *
  • listInstances(ListInstancesRequest request) + *

+ *

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

+ *
    + *
  • listInstances(LocationName parent) + *

  • listInstances(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.

+ *
    + *
  • listInstancesPagedCallable() + *

  • listInstancesCallable() + *

+ *

GetInstance

Gets details of a single Instance.

+ *

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

+ *
    + *
  • getInstance(GetInstanceRequest request) + *

+ *

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

+ *
    + *
  • getInstance(InstanceName name) + *

  • getInstance(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.

+ *
    + *
  • getInstanceCallable() + *

+ *

DeactivateConfiguration

Deactivates the given configuration.

+ *

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

+ *
    + *
  • deactivateConfigurationAsync(DeactivateConfigurationRequest request) + *

+ *

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

+ *
    + *
  • deactivateConfigurationAsync(ConfigurationName name) + *

  • deactivateConfigurationAsync(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.

+ *
    + *
  • deactivateConfigurationOperationCallable() + *

  • deactivateConfigurationCallable() + *

+ *

ReactivateConfiguration

Reactivates the given configuration.

+ *

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

+ *
    + *
  • reactivateConfigurationAsync(ReactivateConfigurationRequest request) + *

+ *

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

+ *
    + *
  • reactivateConfigurationAsync(ConfigurationName name) + *

  • reactivateConfigurationAsync(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.

+ *
    + *
  • reactivateConfigurationOperationCallable() + *

  • reactivateConfigurationCallable() + *

+ *

QueryConfigurationLicenseUsage

License Usage information for a Configuration.

+ *

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

+ *
    + *
  • queryConfigurationLicenseUsage(QueryConfigurationLicenseUsageRequest request) + *

+ *

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

+ *
    + *
  • queryConfigurationLicenseUsage(ConfigurationName name, Timestamp startTime, Timestamp endTime) + *

  • queryConfigurationLicenseUsage(String name, Timestamp startTime, Timestamp endTime) + *

+ *

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

+ *
    + *
  • queryConfigurationLicenseUsageCallable() + *

+ *

AggregateUsage

Aggregates Usage per Instance for a Configuration.

+ *

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

+ *
    + *
  • aggregateUsage(AggregateUsageRequest request) + *

+ *

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

+ *
    + *
  • aggregateUsage(ConfigurationName name, Timestamp startTime, Timestamp endTime) + *

  • aggregateUsage(String name, Timestamp startTime, Timestamp endTime) + *

+ *

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

+ *
    + *
  • aggregateUsagePagedCallable() + *

  • aggregateUsageCallable() + *

+ *

ListProducts

Lists Products in a given project and location.

+ *

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

+ *
    + *
  • listProducts(ListProductsRequest request) + *

+ *

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

+ *
    + *
  • listProducts(LocationName parent) + *

  • listProducts(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.

+ *
    + *
  • listProductsPagedCallable() + *

  • listProductsCallable() + *

+ *

GetProduct

Gets details of a single Product.

+ *

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

+ *
    + *
  • getProduct(GetProductRequest request) + *

+ *

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

+ *
    + *
  • getProduct(ProductName name) + *

  • getProduct(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.

+ *
    + *
  • getProductCallable() + *

+ *

ListLocations

Lists information about the supported locations for this service.

+ *

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

+ *
    + *
  • listLocations(ListLocationsRequest request) + *

+ *

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

+ *
    + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() + *

+ *

GetLocation

Gets information about a location.

+ *

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

+ *
    + *
  • getLocation(GetLocationRequest request) + *

+ *

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

+ *
    + *
  • getLocationCallable() + *

+ *
+ * + *

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 LicenseManagerSettings 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
+ * LicenseManagerSettings licenseManagerSettings =
+ *     LicenseManagerSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * LicenseManagerClient licenseManagerClient = LicenseManagerClient.create(licenseManagerSettings);
+ * }
+ * + *

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
+ * LicenseManagerSettings licenseManagerSettings =
+ *     LicenseManagerSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * LicenseManagerClient licenseManagerClient = LicenseManagerClient.create(licenseManagerSettings);
+ * }
+ * + *

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
+ * LicenseManagerSettings licenseManagerSettings =
+ *     LicenseManagerSettings.newHttpJsonBuilder().build();
+ * LicenseManagerClient licenseManagerClient = LicenseManagerClient.create(licenseManagerSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class LicenseManagerClient implements BackgroundResource { + private final LicenseManagerSettings settings; + private final LicenseManagerStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; + + /** Constructs an instance of LicenseManagerClient with default settings. */ + public static final LicenseManagerClient create() throws IOException { + return create(LicenseManagerSettings.newBuilder().build()); + } + + /** + * Constructs an instance of LicenseManagerClient, 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 LicenseManagerClient create(LicenseManagerSettings settings) + throws IOException { + return new LicenseManagerClient(settings); + } + + /** + * Constructs an instance of LicenseManagerClient, using the given stub for making calls. This is + * for advanced usage - prefer using create(LicenseManagerSettings). + */ + public static final LicenseManagerClient create(LicenseManagerStub stub) { + return new LicenseManagerClient(stub); + } + + /** + * Constructs an instance of LicenseManagerClient, 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 LicenseManagerClient(LicenseManagerSettings settings) throws IOException { + this.settings = settings; + this.stub = ((LicenseManagerStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected LicenseManagerClient(LicenseManagerStub 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 LicenseManagerSettings getSettings() { + return settings; + } + + public LicenseManagerStub 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. + /** + * Lists Configurations in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (Configuration element : licenseManagerClient.listConfigurations(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Parent value for ListConfigurationsRequest + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListConfigurationsPagedResponse listConfigurations(LocationName parent) { + ListConfigurationsRequest request = + ListConfigurationsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listConfigurations(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Configurations in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (Configuration element : licenseManagerClient.listConfigurations(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Parent value for ListConfigurationsRequest + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListConfigurationsPagedResponse listConfigurations(String parent) { + ListConfigurationsRequest request = + ListConfigurationsRequest.newBuilder().setParent(parent).build(); + return listConfigurations(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Configurations in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   ListConfigurationsRequest request =
+   *       ListConfigurationsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (Configuration element : licenseManagerClient.listConfigurations(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 ListConfigurationsPagedResponse listConfigurations( + ListConfigurationsRequest request) { + return listConfigurationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Configurations in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   ListConfigurationsRequest request =
+   *       ListConfigurationsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       licenseManagerClient.listConfigurationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Configuration element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listConfigurationsPagedCallable() { + return stub.listConfigurationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Configurations in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   ListConfigurationsRequest request =
+   *       ListConfigurationsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListConfigurationsResponse response =
+   *         licenseManagerClient.listConfigurationsCallable().call(request);
+   *     for (Configuration element : response.getConfigurationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listConfigurationsCallable() { + return stub.listConfigurationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Configuration. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   ConfigurationName name = ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]");
+   *   Configuration response = licenseManagerClient.getConfiguration(name);
+   * }
+   * }
+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Configuration getConfiguration(ConfigurationName name) { + GetConfigurationRequest request = + GetConfigurationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getConfiguration(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Configuration. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   String name = ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString();
+   *   Configuration response = licenseManagerClient.getConfiguration(name);
+   * }
+   * }
+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Configuration getConfiguration(String name) { + GetConfigurationRequest request = GetConfigurationRequest.newBuilder().setName(name).build(); + return getConfiguration(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Configuration. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   GetConfigurationRequest request =
+   *       GetConfigurationRequest.newBuilder()
+   *           .setName(
+   *               ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString())
+   *           .build();
+   *   Configuration response = licenseManagerClient.getConfiguration(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 Configuration getConfiguration(GetConfigurationRequest request) { + return getConfigurationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Configuration. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   GetConfigurationRequest request =
+   *       GetConfigurationRequest.newBuilder()
+   *           .setName(
+   *               ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       licenseManagerClient.getConfigurationCallable().futureCall(request);
+   *   // Do something.
+   *   Configuration response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getConfigurationCallable() { + return stub.getConfigurationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Configuration in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   Configuration configuration = Configuration.newBuilder().build();
+   *   String configurationId = "configurationId1948915889";
+   *   Configuration response =
+   *       licenseManagerClient
+   *           .createConfigurationAsync(parent, configuration, configurationId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. Value for parent. + * @param configuration Required. The resource being created + * @param configurationId Required. Id of the requesting object + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createConfigurationAsync( + LocationName parent, Configuration configuration, String configurationId) { + CreateConfigurationRequest request = + CreateConfigurationRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setConfiguration(configuration) + .setConfigurationId(configurationId) + .build(); + return createConfigurationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Configuration in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   Configuration configuration = Configuration.newBuilder().build();
+   *   String configurationId = "configurationId1948915889";
+   *   Configuration response =
+   *       licenseManagerClient
+   *           .createConfigurationAsync(parent, configuration, configurationId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. Value for parent. + * @param configuration Required. The resource being created + * @param configurationId Required. Id of the requesting object + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createConfigurationAsync( + String parent, Configuration configuration, String configurationId) { + CreateConfigurationRequest request = + CreateConfigurationRequest.newBuilder() + .setParent(parent) + .setConfiguration(configuration) + .setConfigurationId(configurationId) + .build(); + return createConfigurationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Configuration in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   CreateConfigurationRequest request =
+   *       CreateConfigurationRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setConfigurationId("configurationId1948915889")
+   *           .setConfiguration(Configuration.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   Configuration response = licenseManagerClient.createConfigurationAsync(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 createConfigurationAsync( + CreateConfigurationRequest request) { + return createConfigurationOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Configuration in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   CreateConfigurationRequest request =
+   *       CreateConfigurationRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setConfigurationId("configurationId1948915889")
+   *           .setConfiguration(Configuration.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       licenseManagerClient.createConfigurationOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Configuration response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + createConfigurationOperationCallable() { + return stub.createConfigurationOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Configuration in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   CreateConfigurationRequest request =
+   *       CreateConfigurationRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setConfigurationId("configurationId1948915889")
+   *           .setConfiguration(Configuration.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       licenseManagerClient.createConfigurationCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createConfigurationCallable() { + return stub.createConfigurationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single Configuration. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   Configuration configuration = Configuration.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Configuration response =
+   *       licenseManagerClient.updateConfigurationAsync(configuration, updateMask).get();
+   * }
+   * }
+ * + * @param configuration Required. The resource being updated + * @param updateMask Optional. Field mask is used to specify the fields to be overwritten in the + * Configuration resource by the update. The fields specified in the update_mask are relative + * to the resource, not the full request. A field will be overwritten if it is in the mask. If + * the user does not provide a mask then all fields will be overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateConfigurationAsync( + Configuration configuration, FieldMask updateMask) { + UpdateConfigurationRequest request = + UpdateConfigurationRequest.newBuilder() + .setConfiguration(configuration) + .setUpdateMask(updateMask) + .build(); + return updateConfigurationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single Configuration. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   UpdateConfigurationRequest request =
+   *       UpdateConfigurationRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setConfiguration(Configuration.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   Configuration response = licenseManagerClient.updateConfigurationAsync(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 updateConfigurationAsync( + UpdateConfigurationRequest request) { + return updateConfigurationOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single Configuration. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   UpdateConfigurationRequest request =
+   *       UpdateConfigurationRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setConfiguration(Configuration.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       licenseManagerClient.updateConfigurationOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Configuration response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + updateConfigurationOperationCallable() { + return stub.updateConfigurationOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single Configuration. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   ConfigurationName name = ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]");
+   *   licenseManagerClient.deleteConfigurationAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteConfigurationAsync( + ConfigurationName name) { + DeleteConfigurationRequest request = + DeleteConfigurationRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteConfigurationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Configuration. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   String name = ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString();
+   *   licenseManagerClient.deleteConfigurationAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteConfigurationAsync(String name) { + DeleteConfigurationRequest request = + DeleteConfigurationRequest.newBuilder().setName(name).build(); + return deleteConfigurationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Configuration. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   DeleteConfigurationRequest request =
+   *       DeleteConfigurationRequest.newBuilder()
+   *           .setName(
+   *               ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   licenseManagerClient.deleteConfigurationAsync(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 deleteConfigurationAsync( + DeleteConfigurationRequest request) { + return deleteConfigurationOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Configuration. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   DeleteConfigurationRequest request =
+   *       DeleteConfigurationRequest.newBuilder()
+   *           .setName(
+   *               ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       licenseManagerClient.deleteConfigurationOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteConfigurationOperationCallable() { + return stub.deleteConfigurationOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Configuration. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   DeleteConfigurationRequest request =
+   *       DeleteConfigurationRequest.newBuilder()
+   *           .setName(
+   *               ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       licenseManagerClient.deleteConfigurationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteConfigurationCallable() { + return stub.deleteConfigurationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Instances in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (Instance element : licenseManagerClient.listInstances(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Parent value for ListInstancesRequest + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListInstancesPagedResponse listInstances(LocationName parent) { + ListInstancesRequest request = + ListInstancesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listInstances(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Instances in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (Instance element : licenseManagerClient.listInstances(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Parent value for ListInstancesRequest + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListInstancesPagedResponse listInstances(String parent) { + ListInstancesRequest request = ListInstancesRequest.newBuilder().setParent(parent).build(); + return listInstances(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Instances in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   ListInstancesRequest request =
+   *       ListInstancesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (Instance element : licenseManagerClient.listInstances(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 ListInstancesPagedResponse listInstances(ListInstancesRequest request) { + return listInstancesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Instances in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   ListInstancesRequest request =
+   *       ListInstancesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       licenseManagerClient.listInstancesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Instance element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listInstancesPagedCallable() { + return stub.listInstancesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Instances in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   ListInstancesRequest request =
+   *       ListInstancesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListInstancesResponse response = licenseManagerClient.listInstancesCallable().call(request);
+   *     for (Instance element : response.getInstancesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listInstancesCallable() { + return stub.listInstancesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Instance. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
+   *   Instance response = licenseManagerClient.getInstance(name);
+   * }
+   * }
+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Instance getInstance(InstanceName name) { + GetInstanceRequest request = + GetInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getInstance(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Instance. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString();
+   *   Instance response = licenseManagerClient.getInstance(name);
+   * }
+   * }
+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Instance getInstance(String name) { + GetInstanceRequest request = GetInstanceRequest.newBuilder().setName(name).build(); + return getInstance(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Instance. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   GetInstanceRequest request =
+   *       GetInstanceRequest.newBuilder()
+   *           .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
+   *           .build();
+   *   Instance response = licenseManagerClient.getInstance(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 Instance getInstance(GetInstanceRequest request) { + return getInstanceCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Instance. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   GetInstanceRequest request =
+   *       GetInstanceRequest.newBuilder()
+   *           .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
+   *           .build();
+   *   ApiFuture future = licenseManagerClient.getInstanceCallable().futureCall(request);
+   *   // Do something.
+   *   Instance response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getInstanceCallable() { + return stub.getInstanceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deactivates the given configuration. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   ConfigurationName name = ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]");
+   *   Configuration response = licenseManagerClient.deactivateConfigurationAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. Name of the resource. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deactivateConfigurationAsync( + ConfigurationName name) { + DeactivateConfigurationRequest request = + DeactivateConfigurationRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deactivateConfigurationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deactivates the given configuration. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   String name = ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString();
+   *   Configuration response = licenseManagerClient.deactivateConfigurationAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. Name of the resource. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deactivateConfigurationAsync( + String name) { + DeactivateConfigurationRequest request = + DeactivateConfigurationRequest.newBuilder().setName(name).build(); + return deactivateConfigurationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deactivates the given configuration. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   DeactivateConfigurationRequest request =
+   *       DeactivateConfigurationRequest.newBuilder()
+   *           .setName(
+   *               ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   Configuration response = licenseManagerClient.deactivateConfigurationAsync(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 deactivateConfigurationAsync( + DeactivateConfigurationRequest request) { + return deactivateConfigurationOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deactivates the given configuration. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   DeactivateConfigurationRequest request =
+   *       DeactivateConfigurationRequest.newBuilder()
+   *           .setName(
+   *               ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       licenseManagerClient.deactivateConfigurationOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Configuration response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deactivateConfigurationOperationCallable() { + return stub.deactivateConfigurationOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deactivates the given configuration. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   DeactivateConfigurationRequest request =
+   *       DeactivateConfigurationRequest.newBuilder()
+   *           .setName(
+   *               ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       licenseManagerClient.deactivateConfigurationCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + deactivateConfigurationCallable() { + return stub.deactivateConfigurationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Reactivates the given configuration. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   ConfigurationName name = ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]");
+   *   Configuration response = licenseManagerClient.reactivateConfigurationAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. Name of the resource. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture reactivateConfigurationAsync( + ConfigurationName name) { + ReactivateConfigurationRequest request = + ReactivateConfigurationRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return reactivateConfigurationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Reactivates the given configuration. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   String name = ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString();
+   *   Configuration response = licenseManagerClient.reactivateConfigurationAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. Name of the resource. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture reactivateConfigurationAsync( + String name) { + ReactivateConfigurationRequest request = + ReactivateConfigurationRequest.newBuilder().setName(name).build(); + return reactivateConfigurationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Reactivates the given configuration. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   ReactivateConfigurationRequest request =
+   *       ReactivateConfigurationRequest.newBuilder()
+   *           .setName(
+   *               ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   Configuration response = licenseManagerClient.reactivateConfigurationAsync(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 reactivateConfigurationAsync( + ReactivateConfigurationRequest request) { + return reactivateConfigurationOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Reactivates the given configuration. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   ReactivateConfigurationRequest request =
+   *       ReactivateConfigurationRequest.newBuilder()
+   *           .setName(
+   *               ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       licenseManagerClient.reactivateConfigurationOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Configuration response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + reactivateConfigurationOperationCallable() { + return stub.reactivateConfigurationOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Reactivates the given configuration. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   ReactivateConfigurationRequest request =
+   *       ReactivateConfigurationRequest.newBuilder()
+   *           .setName(
+   *               ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       licenseManagerClient.reactivateConfigurationCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + reactivateConfigurationCallable() { + return stub.reactivateConfigurationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * License Usage information for a Configuration. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   ConfigurationName name = ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]");
+   *   Timestamp startTime = Timestamp.newBuilder().build();
+   *   Timestamp endTime = Timestamp.newBuilder().build();
+   *   QueryConfigurationLicenseUsageResponse response =
+   *       licenseManagerClient.queryConfigurationLicenseUsage(name, startTime, endTime);
+   * }
+   * }
+ * + * @param name Required. The resource path of the Configuration. + * @param startTime Required. The start time for retrieving the usage. If not specified, we will + * use the first day of the current billing period. + * @param endTime Required. The end time for retrieving the usage. If not specified, we will use + * the last day of the current billing period. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final QueryConfigurationLicenseUsageResponse queryConfigurationLicenseUsage( + ConfigurationName name, Timestamp startTime, Timestamp endTime) { + QueryConfigurationLicenseUsageRequest request = + QueryConfigurationLicenseUsageRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setStartTime(startTime) + .setEndTime(endTime) + .build(); + return queryConfigurationLicenseUsage(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * License Usage information for a Configuration. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   String name = ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString();
+   *   Timestamp startTime = Timestamp.newBuilder().build();
+   *   Timestamp endTime = Timestamp.newBuilder().build();
+   *   QueryConfigurationLicenseUsageResponse response =
+   *       licenseManagerClient.queryConfigurationLicenseUsage(name, startTime, endTime);
+   * }
+   * }
+ * + * @param name Required. The resource path of the Configuration. + * @param startTime Required. The start time for retrieving the usage. If not specified, we will + * use the first day of the current billing period. + * @param endTime Required. The end time for retrieving the usage. If not specified, we will use + * the last day of the current billing period. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final QueryConfigurationLicenseUsageResponse queryConfigurationLicenseUsage( + String name, Timestamp startTime, Timestamp endTime) { + QueryConfigurationLicenseUsageRequest request = + QueryConfigurationLicenseUsageRequest.newBuilder() + .setName(name) + .setStartTime(startTime) + .setEndTime(endTime) + .build(); + return queryConfigurationLicenseUsage(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * License Usage information for a Configuration. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   QueryConfigurationLicenseUsageRequest request =
+   *       QueryConfigurationLicenseUsageRequest.newBuilder()
+   *           .setName(
+   *               ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString())
+   *           .setStartTime(Timestamp.newBuilder().build())
+   *           .setEndTime(Timestamp.newBuilder().build())
+   *           .build();
+   *   QueryConfigurationLicenseUsageResponse response =
+   *       licenseManagerClient.queryConfigurationLicenseUsage(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 QueryConfigurationLicenseUsageResponse queryConfigurationLicenseUsage( + QueryConfigurationLicenseUsageRequest request) { + return queryConfigurationLicenseUsageCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * License Usage information for a Configuration. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   QueryConfigurationLicenseUsageRequest request =
+   *       QueryConfigurationLicenseUsageRequest.newBuilder()
+   *           .setName(
+   *               ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString())
+   *           .setStartTime(Timestamp.newBuilder().build())
+   *           .setEndTime(Timestamp.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       licenseManagerClient.queryConfigurationLicenseUsageCallable().futureCall(request);
+   *   // Do something.
+   *   QueryConfigurationLicenseUsageResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable< + QueryConfigurationLicenseUsageRequest, QueryConfigurationLicenseUsageResponse> + queryConfigurationLicenseUsageCallable() { + return stub.queryConfigurationLicenseUsageCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Aggregates Usage per Instance for a Configuration. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   ConfigurationName name = ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]");
+   *   Timestamp startTime = Timestamp.newBuilder().build();
+   *   Timestamp endTime = Timestamp.newBuilder().build();
+   *   for (Usage element :
+   *       licenseManagerClient.aggregateUsage(name, startTime, endTime).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param name Required. Parent value for AggregateUsageRequest + * @param startTime Required. Licenses are purchased per month - so usage track needs start time + * of a month. + * @param endTime Required. Usage track is always for a month. This parameter is for the end time + * of the month. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AggregateUsagePagedResponse aggregateUsage( + ConfigurationName name, Timestamp startTime, Timestamp endTime) { + AggregateUsageRequest request = + AggregateUsageRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setStartTime(startTime) + .setEndTime(endTime) + .build(); + return aggregateUsage(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Aggregates Usage per Instance for a Configuration. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   String name = ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString();
+   *   Timestamp startTime = Timestamp.newBuilder().build();
+   *   Timestamp endTime = Timestamp.newBuilder().build();
+   *   for (Usage element :
+   *       licenseManagerClient.aggregateUsage(name, startTime, endTime).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param name Required. Parent value for AggregateUsageRequest + * @param startTime Required. Licenses are purchased per month - so usage track needs start time + * of a month. + * @param endTime Required. Usage track is always for a month. This parameter is for the end time + * of the month. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AggregateUsagePagedResponse aggregateUsage( + String name, Timestamp startTime, Timestamp endTime) { + AggregateUsageRequest request = + AggregateUsageRequest.newBuilder() + .setName(name) + .setStartTime(startTime) + .setEndTime(endTime) + .build(); + return aggregateUsage(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Aggregates Usage per Instance for a Configuration. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   AggregateUsageRequest request =
+   *       AggregateUsageRequest.newBuilder()
+   *           .setName(
+   *               ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setStartTime(Timestamp.newBuilder().build())
+   *           .setEndTime(Timestamp.newBuilder().build())
+   *           .build();
+   *   for (Usage element : licenseManagerClient.aggregateUsage(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 AggregateUsagePagedResponse aggregateUsage(AggregateUsageRequest request) { + return aggregateUsagePagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Aggregates Usage per Instance for a Configuration. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   AggregateUsageRequest request =
+   *       AggregateUsageRequest.newBuilder()
+   *           .setName(
+   *               ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setStartTime(Timestamp.newBuilder().build())
+   *           .setEndTime(Timestamp.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       licenseManagerClient.aggregateUsagePagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Usage element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + aggregateUsagePagedCallable() { + return stub.aggregateUsagePagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Aggregates Usage per Instance for a Configuration. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   AggregateUsageRequest request =
+   *       AggregateUsageRequest.newBuilder()
+   *           .setName(
+   *               ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setStartTime(Timestamp.newBuilder().build())
+   *           .setEndTime(Timestamp.newBuilder().build())
+   *           .build();
+   *   while (true) {
+   *     AggregateUsageResponse response =
+   *         licenseManagerClient.aggregateUsageCallable().call(request);
+   *     for (Usage element : response.getUsagesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + aggregateUsageCallable() { + return stub.aggregateUsageCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Products in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (Product element : licenseManagerClient.listProducts(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Parent value for ListProductsRequest + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListProductsPagedResponse listProducts(LocationName parent) { + ListProductsRequest request = + ListProductsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listProducts(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Products in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (Product element : licenseManagerClient.listProducts(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Parent value for ListProductsRequest + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListProductsPagedResponse listProducts(String parent) { + ListProductsRequest request = ListProductsRequest.newBuilder().setParent(parent).build(); + return listProducts(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Products in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   ListProductsRequest request =
+   *       ListProductsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (Product element : licenseManagerClient.listProducts(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 ListProductsPagedResponse listProducts(ListProductsRequest request) { + return listProductsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Products in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   ListProductsRequest request =
+   *       ListProductsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       licenseManagerClient.listProductsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Product element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listProductsPagedCallable() { + return stub.listProductsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Products in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   ListProductsRequest request =
+   *       ListProductsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListProductsResponse response = licenseManagerClient.listProductsCallable().call(request);
+   *     for (Product element : response.getProductsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listProductsCallable() { + return stub.listProductsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Product. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   ProductName name = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]");
+   *   Product response = licenseManagerClient.getProduct(name);
+   * }
+   * }
+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Product getProduct(ProductName name) { + GetProductRequest request = + GetProductRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getProduct(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Product. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   String name = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString();
+   *   Product response = licenseManagerClient.getProduct(name);
+   * }
+   * }
+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Product getProduct(String name) { + GetProductRequest request = GetProductRequest.newBuilder().setName(name).build(); + return getProduct(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Product. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   GetProductRequest request =
+   *       GetProductRequest.newBuilder()
+   *           .setName(ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString())
+   *           .build();
+   *   Product response = licenseManagerClient.getProduct(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 Product getProduct(GetProductRequest request) { + return getProductCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Product. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   GetProductRequest request =
+   *       GetProductRequest.newBuilder()
+   *           .setName(ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString())
+   *           .build();
+   *   ApiFuture future = licenseManagerClient.getProductCallable().futureCall(request);
+   *   // Do something.
+   *   Product response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getProductCallable() { + return stub.getProductCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : licenseManagerClient.listLocations(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 ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       licenseManagerClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response = licenseManagerClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = licenseManagerClient.getLocation(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 Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future = licenseManagerClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + @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 ListConfigurationsPagedResponse + extends AbstractPagedListResponse< + ListConfigurationsRequest, + ListConfigurationsResponse, + Configuration, + ListConfigurationsPage, + ListConfigurationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListConfigurationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListConfigurationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListConfigurationsPagedResponse(ListConfigurationsPage page) { + super(page, ListConfigurationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListConfigurationsPage + extends AbstractPage< + ListConfigurationsRequest, + ListConfigurationsResponse, + Configuration, + ListConfigurationsPage> { + + private ListConfigurationsPage( + PageContext context, + ListConfigurationsResponse response) { + super(context, response); + } + + private static ListConfigurationsPage createEmptyPage() { + return new ListConfigurationsPage(null, null); + } + + @Override + protected ListConfigurationsPage createPage( + PageContext context, + ListConfigurationsResponse response) { + return new ListConfigurationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListConfigurationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListConfigurationsRequest, + ListConfigurationsResponse, + Configuration, + ListConfigurationsPage, + ListConfigurationsFixedSizeCollection> { + + private ListConfigurationsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListConfigurationsFixedSizeCollection createEmptyCollection() { + return new ListConfigurationsFixedSizeCollection(null, 0); + } + + @Override + protected ListConfigurationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListConfigurationsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListInstancesPagedResponse + extends AbstractPagedListResponse< + ListInstancesRequest, + ListInstancesResponse, + Instance, + ListInstancesPage, + ListInstancesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListInstancesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListInstancesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListInstancesPagedResponse(ListInstancesPage page) { + super(page, ListInstancesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListInstancesPage + extends AbstractPage< + ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage> { + + private ListInstancesPage( + PageContext context, + ListInstancesResponse response) { + super(context, response); + } + + private static ListInstancesPage createEmptyPage() { + return new ListInstancesPage(null, null); + } + + @Override + protected ListInstancesPage createPage( + PageContext context, + ListInstancesResponse response) { + return new ListInstancesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListInstancesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListInstancesRequest, + ListInstancesResponse, + Instance, + ListInstancesPage, + ListInstancesFixedSizeCollection> { + + private ListInstancesFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListInstancesFixedSizeCollection createEmptyCollection() { + return new ListInstancesFixedSizeCollection(null, 0); + } + + @Override + protected ListInstancesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListInstancesFixedSizeCollection(pages, collectionSize); + } + } + + public static class AggregateUsagePagedResponse + extends AbstractPagedListResponse< + AggregateUsageRequest, + AggregateUsageResponse, + Usage, + AggregateUsagePage, + AggregateUsageFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + AggregateUsagePage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new AggregateUsagePagedResponse(input), + MoreExecutors.directExecutor()); + } + + private AggregateUsagePagedResponse(AggregateUsagePage page) { + super(page, AggregateUsageFixedSizeCollection.createEmptyCollection()); + } + } + + public static class AggregateUsagePage + extends AbstractPage< + AggregateUsageRequest, AggregateUsageResponse, Usage, AggregateUsagePage> { + + private AggregateUsagePage( + PageContext context, + AggregateUsageResponse response) { + super(context, response); + } + + private static AggregateUsagePage createEmptyPage() { + return new AggregateUsagePage(null, null); + } + + @Override + protected AggregateUsagePage createPage( + PageContext context, + AggregateUsageResponse response) { + return new AggregateUsagePage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class AggregateUsageFixedSizeCollection + extends AbstractFixedSizeCollection< + AggregateUsageRequest, + AggregateUsageResponse, + Usage, + AggregateUsagePage, + AggregateUsageFixedSizeCollection> { + + private AggregateUsageFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static AggregateUsageFixedSizeCollection createEmptyCollection() { + return new AggregateUsageFixedSizeCollection(null, 0); + } + + @Override + protected AggregateUsageFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new AggregateUsageFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListProductsPagedResponse + extends AbstractPagedListResponse< + ListProductsRequest, + ListProductsResponse, + Product, + ListProductsPage, + ListProductsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListProductsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListProductsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListProductsPagedResponse(ListProductsPage page) { + super(page, ListProductsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListProductsPage + extends AbstractPage { + + private ListProductsPage( + PageContext context, + ListProductsResponse response) { + super(context, response); + } + + private static ListProductsPage createEmptyPage() { + return new ListProductsPage(null, null); + } + + @Override + protected ListProductsPage createPage( + PageContext context, + ListProductsResponse response) { + return new ListProductsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListProductsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListProductsRequest, + ListProductsResponse, + Product, + ListProductsPage, + ListProductsFixedSizeCollection> { + + private ListProductsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListProductsFixedSizeCollection createEmptyCollection() { + return new ListProductsFixedSizeCollection(null, 0); + } + + @Override + protected ListProductsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListProductsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-licensemanager/google-cloud-licensemanager/src/main/java/com/google/cloud/licensemanager/v1/LicenseManagerSettings.java b/java-licensemanager/google-cloud-licensemanager/src/main/java/com/google/cloud/licensemanager/v1/LicenseManagerSettings.java new file mode 100644 index 000000000000..fa80a06849ba --- /dev/null +++ b/java-licensemanager/google-cloud-licensemanager/src/main/java/com/google/cloud/licensemanager/v1/LicenseManagerSettings.java @@ -0,0 +1,492 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1; + +import static com.google.cloud.licensemanager.v1.LicenseManagerClient.AggregateUsagePagedResponse; +import static com.google.cloud.licensemanager.v1.LicenseManagerClient.ListConfigurationsPagedResponse; +import static com.google.cloud.licensemanager.v1.LicenseManagerClient.ListInstancesPagedResponse; +import static com.google.cloud.licensemanager.v1.LicenseManagerClient.ListLocationsPagedResponse; +import static com.google.cloud.licensemanager.v1.LicenseManagerClient.ListProductsPagedResponse; + +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.cloud.licensemanager.v1.stub.LicenseManagerStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link LicenseManagerClient}. + * + *

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

    + *
  • The default service address (licensemanager.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 getConfiguration: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * LicenseManagerSettings.Builder licenseManagerSettingsBuilder =
+ *     LicenseManagerSettings.newBuilder();
+ * licenseManagerSettingsBuilder
+ *     .getConfigurationSettings()
+ *     .setRetrySettings(
+ *         licenseManagerSettingsBuilder
+ *             .getConfigurationSettings()
+ *             .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());
+ * LicenseManagerSettings licenseManagerSettings = licenseManagerSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) 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 createConfiguration: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * LicenseManagerSettings.Builder licenseManagerSettingsBuilder =
+ *     LicenseManagerSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * licenseManagerSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class LicenseManagerSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to listConfigurations. */ + public PagedCallSettings< + ListConfigurationsRequest, ListConfigurationsResponse, ListConfigurationsPagedResponse> + listConfigurationsSettings() { + return ((LicenseManagerStubSettings) getStubSettings()).listConfigurationsSettings(); + } + + /** Returns the object with the settings used for calls to getConfiguration. */ + public UnaryCallSettings getConfigurationSettings() { + return ((LicenseManagerStubSettings) getStubSettings()).getConfigurationSettings(); + } + + /** Returns the object with the settings used for calls to createConfiguration. */ + public UnaryCallSettings createConfigurationSettings() { + return ((LicenseManagerStubSettings) getStubSettings()).createConfigurationSettings(); + } + + /** Returns the object with the settings used for calls to createConfiguration. */ + public OperationCallSettings + createConfigurationOperationSettings() { + return ((LicenseManagerStubSettings) getStubSettings()).createConfigurationOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateConfiguration. */ + public UnaryCallSettings updateConfigurationSettings() { + return ((LicenseManagerStubSettings) getStubSettings()).updateConfigurationSettings(); + } + + /** Returns the object with the settings used for calls to updateConfiguration. */ + public OperationCallSettings + updateConfigurationOperationSettings() { + return ((LicenseManagerStubSettings) getStubSettings()).updateConfigurationOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteConfiguration. */ + public UnaryCallSettings deleteConfigurationSettings() { + return ((LicenseManagerStubSettings) getStubSettings()).deleteConfigurationSettings(); + } + + /** Returns the object with the settings used for calls to deleteConfiguration. */ + public OperationCallSettings + deleteConfigurationOperationSettings() { + return ((LicenseManagerStubSettings) getStubSettings()).deleteConfigurationOperationSettings(); + } + + /** Returns the object with the settings used for calls to listInstances. */ + public PagedCallSettings + listInstancesSettings() { + return ((LicenseManagerStubSettings) getStubSettings()).listInstancesSettings(); + } + + /** Returns the object with the settings used for calls to getInstance. */ + public UnaryCallSettings getInstanceSettings() { + return ((LicenseManagerStubSettings) getStubSettings()).getInstanceSettings(); + } + + /** Returns the object with the settings used for calls to deactivateConfiguration. */ + public UnaryCallSettings + deactivateConfigurationSettings() { + return ((LicenseManagerStubSettings) getStubSettings()).deactivateConfigurationSettings(); + } + + /** Returns the object with the settings used for calls to deactivateConfiguration. */ + public OperationCallSettings + deactivateConfigurationOperationSettings() { + return ((LicenseManagerStubSettings) getStubSettings()) + .deactivateConfigurationOperationSettings(); + } + + /** Returns the object with the settings used for calls to reactivateConfiguration. */ + public UnaryCallSettings + reactivateConfigurationSettings() { + return ((LicenseManagerStubSettings) getStubSettings()).reactivateConfigurationSettings(); + } + + /** Returns the object with the settings used for calls to reactivateConfiguration. */ + public OperationCallSettings + reactivateConfigurationOperationSettings() { + return ((LicenseManagerStubSettings) getStubSettings()) + .reactivateConfigurationOperationSettings(); + } + + /** Returns the object with the settings used for calls to queryConfigurationLicenseUsage. */ + public UnaryCallSettings< + QueryConfigurationLicenseUsageRequest, QueryConfigurationLicenseUsageResponse> + queryConfigurationLicenseUsageSettings() { + return ((LicenseManagerStubSettings) getStubSettings()) + .queryConfigurationLicenseUsageSettings(); + } + + /** Returns the object with the settings used for calls to aggregateUsage. */ + public PagedCallSettings< + AggregateUsageRequest, AggregateUsageResponse, AggregateUsagePagedResponse> + aggregateUsageSettings() { + return ((LicenseManagerStubSettings) getStubSettings()).aggregateUsageSettings(); + } + + /** Returns the object with the settings used for calls to listProducts. */ + public PagedCallSettings + listProductsSettings() { + return ((LicenseManagerStubSettings) getStubSettings()).listProductsSettings(); + } + + /** Returns the object with the settings used for calls to getProduct. */ + public UnaryCallSettings getProductSettings() { + return ((LicenseManagerStubSettings) getStubSettings()).getProductSettings(); + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((LicenseManagerStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((LicenseManagerStubSettings) getStubSettings()).getLocationSettings(); + } + + public static final LicenseManagerSettings create(LicenseManagerStubSettings stub) + throws IOException { + return new LicenseManagerSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return LicenseManagerStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return LicenseManagerStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return LicenseManagerStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return LicenseManagerStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return LicenseManagerStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return LicenseManagerStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return LicenseManagerStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return LicenseManagerStubSettings.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(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 LicenseManagerSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for LicenseManagerSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(LicenseManagerStubSettings.newBuilder(clientContext)); + } + + protected Builder(LicenseManagerSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(LicenseManagerStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(LicenseManagerStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(LicenseManagerStubSettings.newHttpJsonBuilder()); + } + + public LicenseManagerStubSettings.Builder getStubSettingsBuilder() { + return ((LicenseManagerStubSettings.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 listConfigurations. */ + public PagedCallSettings.Builder< + ListConfigurationsRequest, ListConfigurationsResponse, ListConfigurationsPagedResponse> + listConfigurationsSettings() { + return getStubSettingsBuilder().listConfigurationsSettings(); + } + + /** Returns the builder for the settings used for calls to getConfiguration. */ + public UnaryCallSettings.Builder + getConfigurationSettings() { + return getStubSettingsBuilder().getConfigurationSettings(); + } + + /** Returns the builder for the settings used for calls to createConfiguration. */ + public UnaryCallSettings.Builder + createConfigurationSettings() { + return getStubSettingsBuilder().createConfigurationSettings(); + } + + /** Returns the builder for the settings used for calls to createConfiguration. */ + public OperationCallSettings.Builder< + CreateConfigurationRequest, Configuration, OperationMetadata> + createConfigurationOperationSettings() { + return getStubSettingsBuilder().createConfigurationOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateConfiguration. */ + public UnaryCallSettings.Builder + updateConfigurationSettings() { + return getStubSettingsBuilder().updateConfigurationSettings(); + } + + /** Returns the builder for the settings used for calls to updateConfiguration. */ + public OperationCallSettings.Builder< + UpdateConfigurationRequest, Configuration, OperationMetadata> + updateConfigurationOperationSettings() { + return getStubSettingsBuilder().updateConfigurationOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteConfiguration. */ + public UnaryCallSettings.Builder + deleteConfigurationSettings() { + return getStubSettingsBuilder().deleteConfigurationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteConfiguration. */ + public OperationCallSettings.Builder + deleteConfigurationOperationSettings() { + return getStubSettingsBuilder().deleteConfigurationOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listInstances. */ + public PagedCallSettings.Builder< + ListInstancesRequest, ListInstancesResponse, ListInstancesPagedResponse> + listInstancesSettings() { + return getStubSettingsBuilder().listInstancesSettings(); + } + + /** Returns the builder for the settings used for calls to getInstance. */ + public UnaryCallSettings.Builder getInstanceSettings() { + return getStubSettingsBuilder().getInstanceSettings(); + } + + /** Returns the builder for the settings used for calls to deactivateConfiguration. */ + public UnaryCallSettings.Builder + deactivateConfigurationSettings() { + return getStubSettingsBuilder().deactivateConfigurationSettings(); + } + + /** Returns the builder for the settings used for calls to deactivateConfiguration. */ + public OperationCallSettings.Builder< + DeactivateConfigurationRequest, Configuration, OperationMetadata> + deactivateConfigurationOperationSettings() { + return getStubSettingsBuilder().deactivateConfigurationOperationSettings(); + } + + /** Returns the builder for the settings used for calls to reactivateConfiguration. */ + public UnaryCallSettings.Builder + reactivateConfigurationSettings() { + return getStubSettingsBuilder().reactivateConfigurationSettings(); + } + + /** Returns the builder for the settings used for calls to reactivateConfiguration. */ + public OperationCallSettings.Builder< + ReactivateConfigurationRequest, Configuration, OperationMetadata> + reactivateConfigurationOperationSettings() { + return getStubSettingsBuilder().reactivateConfigurationOperationSettings(); + } + + /** Returns the builder for the settings used for calls to queryConfigurationLicenseUsage. */ + public UnaryCallSettings.Builder< + QueryConfigurationLicenseUsageRequest, QueryConfigurationLicenseUsageResponse> + queryConfigurationLicenseUsageSettings() { + return getStubSettingsBuilder().queryConfigurationLicenseUsageSettings(); + } + + /** Returns the builder for the settings used for calls to aggregateUsage. */ + public PagedCallSettings.Builder< + AggregateUsageRequest, AggregateUsageResponse, AggregateUsagePagedResponse> + aggregateUsageSettings() { + return getStubSettingsBuilder().aggregateUsageSettings(); + } + + /** Returns the builder for the settings used for calls to listProducts. */ + public PagedCallSettings.Builder< + ListProductsRequest, ListProductsResponse, ListProductsPagedResponse> + listProductsSettings() { + return getStubSettingsBuilder().listProductsSettings(); + } + + /** Returns the builder for the settings used for calls to getProduct. */ + public UnaryCallSettings.Builder getProductSettings() { + return getStubSettingsBuilder().getProductSettings(); + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getStubSettingsBuilder().getLocationSettings(); + } + + @Override + public LicenseManagerSettings build() throws IOException { + return new LicenseManagerSettings(this); + } + } +} diff --git a/java-licensemanager/google-cloud-licensemanager/src/main/java/com/google/cloud/licensemanager/v1/gapic_metadata.json b/java-licensemanager/google-cloud-licensemanager/src/main/java/com/google/cloud/licensemanager/v1/gapic_metadata.json new file mode 100644 index 000000000000..29b780ba9420 --- /dev/null +++ b/java-licensemanager/google-cloud-licensemanager/src/main/java/com/google/cloud/licensemanager/v1/gapic_metadata.json @@ -0,0 +1,63 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "java", + "protoPackage": "google.cloud.licensemanager.v1", + "libraryPackage": "com.google.cloud.licensemanager.v1", + "services": { + "LicenseManager": { + "clients": { + "grpc": { + "libraryClient": "LicenseManagerClient", + "rpcs": { + "AggregateUsage": { + "methods": ["aggregateUsage", "aggregateUsage", "aggregateUsage", "aggregateUsagePagedCallable", "aggregateUsageCallable"] + }, + "CreateConfiguration": { + "methods": ["createConfigurationAsync", "createConfigurationAsync", "createConfigurationAsync", "createConfigurationOperationCallable", "createConfigurationCallable"] + }, + "DeactivateConfiguration": { + "methods": ["deactivateConfigurationAsync", "deactivateConfigurationAsync", "deactivateConfigurationAsync", "deactivateConfigurationOperationCallable", "deactivateConfigurationCallable"] + }, + "DeleteConfiguration": { + "methods": ["deleteConfigurationAsync", "deleteConfigurationAsync", "deleteConfigurationAsync", "deleteConfigurationOperationCallable", "deleteConfigurationCallable"] + }, + "GetConfiguration": { + "methods": ["getConfiguration", "getConfiguration", "getConfiguration", "getConfigurationCallable"] + }, + "GetInstance": { + "methods": ["getInstance", "getInstance", "getInstance", "getInstanceCallable"] + }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, + "GetProduct": { + "methods": ["getProduct", "getProduct", "getProduct", "getProductCallable"] + }, + "ListConfigurations": { + "methods": ["listConfigurations", "listConfigurations", "listConfigurations", "listConfigurationsPagedCallable", "listConfigurationsCallable"] + }, + "ListInstances": { + "methods": ["listInstances", "listInstances", "listInstances", "listInstancesPagedCallable", "listInstancesCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, + "ListProducts": { + "methods": ["listProducts", "listProducts", "listProducts", "listProductsPagedCallable", "listProductsCallable"] + }, + "QueryConfigurationLicenseUsage": { + "methods": ["queryConfigurationLicenseUsage", "queryConfigurationLicenseUsage", "queryConfigurationLicenseUsage", "queryConfigurationLicenseUsageCallable"] + }, + "ReactivateConfiguration": { + "methods": ["reactivateConfigurationAsync", "reactivateConfigurationAsync", "reactivateConfigurationAsync", "reactivateConfigurationOperationCallable", "reactivateConfigurationCallable"] + }, + "UpdateConfiguration": { + "methods": ["updateConfigurationAsync", "updateConfigurationAsync", "updateConfigurationOperationCallable", "updateConfigurationCallable"] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/java-licensemanager/google-cloud-licensemanager/src/main/java/com/google/cloud/licensemanager/v1/package-info.java b/java-licensemanager/google-cloud-licensemanager/src/main/java/com/google/cloud/licensemanager/v1/package-info.java new file mode 100644 index 000000000000..4b01eb28c665 --- /dev/null +++ b/java-licensemanager/google-cloud-licensemanager/src/main/java/com/google/cloud/licensemanager/v1/package-info.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * A client to License Manager API + * + *

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

======================= LicenseManagerClient ======================= + * + *

Service Description: Service describing handlers for resources + * + *

Sample for LicenseManagerClient: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) {
+ *   ConfigurationName name = ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]");
+ *   Configuration response = licenseManagerClient.getConfiguration(name);
+ * }
+ * }
+ */ +@Generated("by gapic-generator-java") +package com.google.cloud.licensemanager.v1; + +import javax.annotation.Generated; diff --git a/java-licensemanager/google-cloud-licensemanager/src/main/java/com/google/cloud/licensemanager/v1/stub/GrpcLicenseManagerCallableFactory.java b/java-licensemanager/google-cloud-licensemanager/src/main/java/com/google/cloud/licensemanager/v1/stub/GrpcLicenseManagerCallableFactory.java new file mode 100644 index 000000000000..282a9dcbb83f --- /dev/null +++ b/java-licensemanager/google-cloud-licensemanager/src/main/java/com/google/cloud/licensemanager/v1/stub/GrpcLicenseManagerCallableFactory.java @@ -0,0 +1,113 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.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; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the LicenseManager service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcLicenseManagerCallableFactory 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-licensemanager/google-cloud-licensemanager/src/main/java/com/google/cloud/licensemanager/v1/stub/GrpcLicenseManagerStub.java b/java-licensemanager/google-cloud-licensemanager/src/main/java/com/google/cloud/licensemanager/v1/stub/GrpcLicenseManagerStub.java new file mode 100644 index 000000000000..a4b8ce669344 --- /dev/null +++ b/java-licensemanager/google-cloud-licensemanager/src/main/java/com/google/cloud/licensemanager/v1/stub/GrpcLicenseManagerStub.java @@ -0,0 +1,768 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.stub; + +import static com.google.cloud.licensemanager.v1.LicenseManagerClient.AggregateUsagePagedResponse; +import static com.google.cloud.licensemanager.v1.LicenseManagerClient.ListConfigurationsPagedResponse; +import static com.google.cloud.licensemanager.v1.LicenseManagerClient.ListInstancesPagedResponse; +import static com.google.cloud.licensemanager.v1.LicenseManagerClient.ListLocationsPagedResponse; +import static com.google.cloud.licensemanager.v1.LicenseManagerClient.ListProductsPagedResponse; + +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.cloud.licensemanager.v1.AggregateUsageRequest; +import com.google.cloud.licensemanager.v1.AggregateUsageResponse; +import com.google.cloud.licensemanager.v1.Configuration; +import com.google.cloud.licensemanager.v1.CreateConfigurationRequest; +import com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest; +import com.google.cloud.licensemanager.v1.DeleteConfigurationRequest; +import com.google.cloud.licensemanager.v1.GetConfigurationRequest; +import com.google.cloud.licensemanager.v1.GetInstanceRequest; +import com.google.cloud.licensemanager.v1.GetProductRequest; +import com.google.cloud.licensemanager.v1.Instance; +import com.google.cloud.licensemanager.v1.ListConfigurationsRequest; +import com.google.cloud.licensemanager.v1.ListConfigurationsResponse; +import com.google.cloud.licensemanager.v1.ListInstancesRequest; +import com.google.cloud.licensemanager.v1.ListInstancesResponse; +import com.google.cloud.licensemanager.v1.ListProductsRequest; +import com.google.cloud.licensemanager.v1.ListProductsResponse; +import com.google.cloud.licensemanager.v1.OperationMetadata; +import com.google.cloud.licensemanager.v1.Product; +import com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest; +import com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse; +import com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest; +import com.google.cloud.licensemanager.v1.UpdateConfigurationRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +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; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the LicenseManager service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcLicenseManagerStub extends LicenseManagerStub { + private static final MethodDescriptor + listConfigurationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.licensemanager.v1.LicenseManager/ListConfigurations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListConfigurationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListConfigurationsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getConfigurationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.licensemanager.v1.LicenseManager/GetConfiguration") + .setRequestMarshaller( + ProtoUtils.marshaller(GetConfigurationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Configuration.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createConfigurationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.licensemanager.v1.LicenseManager/CreateConfiguration") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateConfigurationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateConfigurationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.licensemanager.v1.LicenseManager/UpdateConfiguration") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateConfigurationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteConfigurationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.licensemanager.v1.LicenseManager/DeleteConfiguration") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteConfigurationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listInstancesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.licensemanager.v1.LicenseManager/ListInstances") + .setRequestMarshaller( + ProtoUtils.marshaller(ListInstancesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListInstancesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getInstanceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.licensemanager.v1.LicenseManager/GetInstance") + .setRequestMarshaller(ProtoUtils.marshaller(GetInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Instance.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deactivateConfigurationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.licensemanager.v1.LicenseManager/DeactivateConfiguration") + .setRequestMarshaller( + ProtoUtils.marshaller(DeactivateConfigurationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + reactivateConfigurationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.licensemanager.v1.LicenseManager/ReactivateConfiguration") + .setRequestMarshaller( + ProtoUtils.marshaller(ReactivateConfigurationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + QueryConfigurationLicenseUsageRequest, QueryConfigurationLicenseUsageResponse> + queryConfigurationLicenseUsageMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.licensemanager.v1.LicenseManager/QueryConfigurationLicenseUsage") + .setRequestMarshaller( + ProtoUtils.marshaller(QueryConfigurationLicenseUsageRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + QueryConfigurationLicenseUsageResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + aggregateUsageMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.licensemanager.v1.LicenseManager/AggregateUsage") + .setRequestMarshaller( + ProtoUtils.marshaller(AggregateUsageRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(AggregateUsageResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listProductsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.licensemanager.v1.LicenseManager/ListProducts") + .setRequestMarshaller(ProtoUtils.marshaller(ListProductsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListProductsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getProductMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.licensemanager.v1.LicenseManager/GetProduct") + .setRequestMarshaller(ProtoUtils.marshaller(GetProductRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Product.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getLocationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) + .build(); + + private final UnaryCallable + listConfigurationsCallable; + private final UnaryCallable + listConfigurationsPagedCallable; + private final UnaryCallable getConfigurationCallable; + private final UnaryCallable createConfigurationCallable; + private final OperationCallable + createConfigurationOperationCallable; + private final UnaryCallable updateConfigurationCallable; + private final OperationCallable + updateConfigurationOperationCallable; + private final UnaryCallable deleteConfigurationCallable; + private final OperationCallable + deleteConfigurationOperationCallable; + private final UnaryCallable listInstancesCallable; + private final UnaryCallable + listInstancesPagedCallable; + private final UnaryCallable getInstanceCallable; + private final UnaryCallable + deactivateConfigurationCallable; + private final OperationCallable + deactivateConfigurationOperationCallable; + private final UnaryCallable + reactivateConfigurationCallable; + private final OperationCallable + reactivateConfigurationOperationCallable; + private final UnaryCallable< + QueryConfigurationLicenseUsageRequest, QueryConfigurationLicenseUsageResponse> + queryConfigurationLicenseUsageCallable; + private final UnaryCallable aggregateUsageCallable; + private final UnaryCallable + aggregateUsagePagedCallable; + private final UnaryCallable listProductsCallable; + private final UnaryCallable + listProductsPagedCallable; + private final UnaryCallable getProductCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcLicenseManagerStub create(LicenseManagerStubSettings settings) + throws IOException { + return new GrpcLicenseManagerStub(settings, ClientContext.create(settings)); + } + + public static final GrpcLicenseManagerStub create(ClientContext clientContext) + throws IOException { + return new GrpcLicenseManagerStub( + LicenseManagerStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcLicenseManagerStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcLicenseManagerStub( + LicenseManagerStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcLicenseManagerStub, 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 GrpcLicenseManagerStub(LicenseManagerStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcLicenseManagerCallableFactory()); + } + + /** + * Constructs an instance of GrpcLicenseManagerStub, 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 GrpcLicenseManagerStub( + LicenseManagerStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + listConfigurationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listConfigurationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getConfigurationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getConfigurationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createConfigurationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createConfigurationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateConfigurationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateConfigurationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "configuration.name", String.valueOf(request.getConfiguration().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteConfigurationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteConfigurationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listInstancesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listInstancesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getInstanceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getInstanceMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deactivateConfigurationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deactivateConfigurationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + reactivateConfigurationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(reactivateConfigurationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + queryConfigurationLicenseUsageTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(queryConfigurationLicenseUsageMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + aggregateUsageTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(aggregateUsageMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listProductsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listProductsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getProductTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getProductMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getLocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.listConfigurationsCallable = + callableFactory.createUnaryCallable( + listConfigurationsTransportSettings, + settings.listConfigurationsSettings(), + clientContext); + this.listConfigurationsPagedCallable = + callableFactory.createPagedCallable( + listConfigurationsTransportSettings, + settings.listConfigurationsSettings(), + clientContext); + this.getConfigurationCallable = + callableFactory.createUnaryCallable( + getConfigurationTransportSettings, settings.getConfigurationSettings(), clientContext); + this.createConfigurationCallable = + callableFactory.createUnaryCallable( + createConfigurationTransportSettings, + settings.createConfigurationSettings(), + clientContext); + this.createConfigurationOperationCallable = + callableFactory.createOperationCallable( + createConfigurationTransportSettings, + settings.createConfigurationOperationSettings(), + clientContext, + operationsStub); + this.updateConfigurationCallable = + callableFactory.createUnaryCallable( + updateConfigurationTransportSettings, + settings.updateConfigurationSettings(), + clientContext); + this.updateConfigurationOperationCallable = + callableFactory.createOperationCallable( + updateConfigurationTransportSettings, + settings.updateConfigurationOperationSettings(), + clientContext, + operationsStub); + this.deleteConfigurationCallable = + callableFactory.createUnaryCallable( + deleteConfigurationTransportSettings, + settings.deleteConfigurationSettings(), + clientContext); + this.deleteConfigurationOperationCallable = + callableFactory.createOperationCallable( + deleteConfigurationTransportSettings, + settings.deleteConfigurationOperationSettings(), + clientContext, + operationsStub); + this.listInstancesCallable = + callableFactory.createUnaryCallable( + listInstancesTransportSettings, settings.listInstancesSettings(), clientContext); + this.listInstancesPagedCallable = + callableFactory.createPagedCallable( + listInstancesTransportSettings, settings.listInstancesSettings(), clientContext); + this.getInstanceCallable = + callableFactory.createUnaryCallable( + getInstanceTransportSettings, settings.getInstanceSettings(), clientContext); + this.deactivateConfigurationCallable = + callableFactory.createUnaryCallable( + deactivateConfigurationTransportSettings, + settings.deactivateConfigurationSettings(), + clientContext); + this.deactivateConfigurationOperationCallable = + callableFactory.createOperationCallable( + deactivateConfigurationTransportSettings, + settings.deactivateConfigurationOperationSettings(), + clientContext, + operationsStub); + this.reactivateConfigurationCallable = + callableFactory.createUnaryCallable( + reactivateConfigurationTransportSettings, + settings.reactivateConfigurationSettings(), + clientContext); + this.reactivateConfigurationOperationCallable = + callableFactory.createOperationCallable( + reactivateConfigurationTransportSettings, + settings.reactivateConfigurationOperationSettings(), + clientContext, + operationsStub); + this.queryConfigurationLicenseUsageCallable = + callableFactory.createUnaryCallable( + queryConfigurationLicenseUsageTransportSettings, + settings.queryConfigurationLicenseUsageSettings(), + clientContext); + this.aggregateUsageCallable = + callableFactory.createUnaryCallable( + aggregateUsageTransportSettings, settings.aggregateUsageSettings(), clientContext); + this.aggregateUsagePagedCallable = + callableFactory.createPagedCallable( + aggregateUsageTransportSettings, settings.aggregateUsageSettings(), clientContext); + this.listProductsCallable = + callableFactory.createUnaryCallable( + listProductsTransportSettings, settings.listProductsSettings(), clientContext); + this.listProductsPagedCallable = + callableFactory.createPagedCallable( + listProductsTransportSettings, settings.listProductsSettings(), clientContext); + this.getProductCallable = + callableFactory.createUnaryCallable( + getProductTransportSettings, settings.getProductSettings(), clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable + listConfigurationsCallable() { + return listConfigurationsCallable; + } + + @Override + public UnaryCallable + listConfigurationsPagedCallable() { + return listConfigurationsPagedCallable; + } + + @Override + public UnaryCallable getConfigurationCallable() { + return getConfigurationCallable; + } + + @Override + public UnaryCallable createConfigurationCallable() { + return createConfigurationCallable; + } + + @Override + public OperationCallable + createConfigurationOperationCallable() { + return createConfigurationOperationCallable; + } + + @Override + public UnaryCallable updateConfigurationCallable() { + return updateConfigurationCallable; + } + + @Override + public OperationCallable + updateConfigurationOperationCallable() { + return updateConfigurationOperationCallable; + } + + @Override + public UnaryCallable deleteConfigurationCallable() { + return deleteConfigurationCallable; + } + + @Override + public OperationCallable + deleteConfigurationOperationCallable() { + return deleteConfigurationOperationCallable; + } + + @Override + public UnaryCallable listInstancesCallable() { + return listInstancesCallable; + } + + @Override + public UnaryCallable + listInstancesPagedCallable() { + return listInstancesPagedCallable; + } + + @Override + public UnaryCallable getInstanceCallable() { + return getInstanceCallable; + } + + @Override + public UnaryCallable + deactivateConfigurationCallable() { + return deactivateConfigurationCallable; + } + + @Override + public OperationCallable + deactivateConfigurationOperationCallable() { + return deactivateConfigurationOperationCallable; + } + + @Override + public UnaryCallable + reactivateConfigurationCallable() { + return reactivateConfigurationCallable; + } + + @Override + public OperationCallable + reactivateConfigurationOperationCallable() { + return reactivateConfigurationOperationCallable; + } + + @Override + public UnaryCallable< + QueryConfigurationLicenseUsageRequest, QueryConfigurationLicenseUsageResponse> + queryConfigurationLicenseUsageCallable() { + return queryConfigurationLicenseUsageCallable; + } + + @Override + public UnaryCallable aggregateUsageCallable() { + return aggregateUsageCallable; + } + + @Override + public UnaryCallable + aggregateUsagePagedCallable() { + return aggregateUsagePagedCallable; + } + + @Override + public UnaryCallable listProductsCallable() { + return listProductsCallable; + } + + @Override + public UnaryCallable listProductsPagedCallable() { + return listProductsPagedCallable; + } + + @Override + public UnaryCallable getProductCallable() { + return getProductCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @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-licensemanager/google-cloud-licensemanager/src/main/java/com/google/cloud/licensemanager/v1/stub/HttpJsonLicenseManagerCallableFactory.java b/java-licensemanager/google-cloud-licensemanager/src/main/java/com/google/cloud/licensemanager/v1/stub/HttpJsonLicenseManagerCallableFactory.java new file mode 100644 index 000000000000..4abada04733e --- /dev/null +++ b/java-licensemanager/google-cloud-licensemanager/src/main/java/com/google/cloud/licensemanager/v1/stub/HttpJsonLicenseManagerCallableFactory.java @@ -0,0 +1,101 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.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; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the LicenseManager service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonLicenseManagerCallableFactory + 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-licensemanager/google-cloud-licensemanager/src/main/java/com/google/cloud/licensemanager/v1/stub/HttpJsonLicenseManagerStub.java b/java-licensemanager/google-cloud-licensemanager/src/main/java/com/google/cloud/licensemanager/v1/stub/HttpJsonLicenseManagerStub.java new file mode 100644 index 000000000000..ecc4c27b4bf9 --- /dev/null +++ b/java-licensemanager/google-cloud-licensemanager/src/main/java/com/google/cloud/licensemanager/v1/stub/HttpJsonLicenseManagerStub.java @@ -0,0 +1,1269 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.stub; + +import static com.google.cloud.licensemanager.v1.LicenseManagerClient.AggregateUsagePagedResponse; +import static com.google.cloud.licensemanager.v1.LicenseManagerClient.ListConfigurationsPagedResponse; +import static com.google.cloud.licensemanager.v1.LicenseManagerClient.ListInstancesPagedResponse; +import static com.google.cloud.licensemanager.v1.LicenseManagerClient.ListLocationsPagedResponse; +import static com.google.cloud.licensemanager.v1.LicenseManagerClient.ListProductsPagedResponse; + +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.cloud.licensemanager.v1.AggregateUsageRequest; +import com.google.cloud.licensemanager.v1.AggregateUsageResponse; +import com.google.cloud.licensemanager.v1.Configuration; +import com.google.cloud.licensemanager.v1.CreateConfigurationRequest; +import com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest; +import com.google.cloud.licensemanager.v1.DeleteConfigurationRequest; +import com.google.cloud.licensemanager.v1.GetConfigurationRequest; +import com.google.cloud.licensemanager.v1.GetInstanceRequest; +import com.google.cloud.licensemanager.v1.GetProductRequest; +import com.google.cloud.licensemanager.v1.Instance; +import com.google.cloud.licensemanager.v1.ListConfigurationsRequest; +import com.google.cloud.licensemanager.v1.ListConfigurationsResponse; +import com.google.cloud.licensemanager.v1.ListInstancesRequest; +import com.google.cloud.licensemanager.v1.ListInstancesResponse; +import com.google.cloud.licensemanager.v1.ListProductsRequest; +import com.google.cloud.licensemanager.v1.ListProductsResponse; +import com.google.cloud.licensemanager.v1.OperationMetadata; +import com.google.cloud.licensemanager.v1.Product; +import com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest; +import com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse; +import com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest; +import com.google.cloud.licensemanager.v1.UpdateConfigurationRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.ImmutableMap; +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; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the LicenseManager service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonLicenseManagerStub extends LicenseManagerStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(Empty.getDescriptor()) + .add(OperationMetadata.getDescriptor()) + .add(Configuration.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + listConfigurationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.licensemanager.v1.LicenseManager/ListConfigurations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/configurations", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + 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(ListConfigurationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getConfigurationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.licensemanager.v1.LicenseManager/GetConfiguration") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/configurations/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Configuration.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createConfigurationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.licensemanager.v1.LicenseManager/CreateConfiguration") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/configurations", + 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, "configurationId", request.getConfigurationId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("configuration", request.getConfiguration(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateConfigurationRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateConfigurationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.licensemanager.v1.LicenseManager/UpdateConfiguration") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{configuration.name=projects/*/locations/*/configurations/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "configuration.name", request.getConfiguration().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("configuration", request.getConfiguration(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateConfigurationRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteConfigurationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.licensemanager.v1.LicenseManager/DeleteConfiguration") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/configurations/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteConfigurationRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listInstancesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.licensemanager.v1.LicenseManager/ListInstances") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/instances", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + 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(ListInstancesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getInstanceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.licensemanager.v1.LicenseManager/GetInstance") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/instances/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Instance.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deactivateConfigurationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.licensemanager.v1.LicenseManager/DeactivateConfiguration") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/configurations/*}:deactivate", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeactivateConfigurationRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + reactivateConfigurationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.licensemanager.v1.LicenseManager/ReactivateConfiguration") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/configurations/*}:reactivate", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (ReactivateConfigurationRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor< + QueryConfigurationLicenseUsageRequest, QueryConfigurationLicenseUsageResponse> + queryConfigurationLicenseUsageMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.licensemanager.v1.LicenseManager/QueryConfigurationLicenseUsage") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/configurations/*}:queryLicenseUsage", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "endTime", request.getEndTime()); + serializer.putQueryParam(fields, "startTime", request.getStartTime()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance( + QueryConfigurationLicenseUsageResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + aggregateUsageMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.licensemanager.v1.LicenseManager/AggregateUsage") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/configurations/*}:aggregateUsage", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "endTime", request.getEndTime()); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "startTime", request.getStartTime()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AggregateUsageResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listProductsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.licensemanager.v1.LicenseManager/ListProducts") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/products", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + 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(ListProductsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getProductMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.licensemanager.v1.LicenseManager/GetProduct") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/products/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Product.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listLocationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*}/locations", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListLocationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getLocationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Location.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable + listConfigurationsCallable; + private final UnaryCallable + listConfigurationsPagedCallable; + private final UnaryCallable getConfigurationCallable; + private final UnaryCallable createConfigurationCallable; + private final OperationCallable + createConfigurationOperationCallable; + private final UnaryCallable updateConfigurationCallable; + private final OperationCallable + updateConfigurationOperationCallable; + private final UnaryCallable deleteConfigurationCallable; + private final OperationCallable + deleteConfigurationOperationCallable; + private final UnaryCallable listInstancesCallable; + private final UnaryCallable + listInstancesPagedCallable; + private final UnaryCallable getInstanceCallable; + private final UnaryCallable + deactivateConfigurationCallable; + private final OperationCallable + deactivateConfigurationOperationCallable; + private final UnaryCallable + reactivateConfigurationCallable; + private final OperationCallable + reactivateConfigurationOperationCallable; + private final UnaryCallable< + QueryConfigurationLicenseUsageRequest, QueryConfigurationLicenseUsageResponse> + queryConfigurationLicenseUsageCallable; + private final UnaryCallable aggregateUsageCallable; + private final UnaryCallable + aggregateUsagePagedCallable; + private final UnaryCallable listProductsCallable; + private final UnaryCallable + listProductsPagedCallable; + private final UnaryCallable getProductCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonLicenseManagerStub create(LicenseManagerStubSettings settings) + throws IOException { + return new HttpJsonLicenseManagerStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonLicenseManagerStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonLicenseManagerStub( + LicenseManagerStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonLicenseManagerStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonLicenseManagerStub( + LicenseManagerStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonLicenseManagerStub, 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 HttpJsonLicenseManagerStub( + LicenseManagerStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonLicenseManagerCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonLicenseManagerStub, 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 HttpJsonLicenseManagerStub( + LicenseManagerStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create( + clientContext, + callableFactory, + typeRegistry, + ImmutableMap.builder() + .put( + "google.longrunning.Operations.CancelOperation", + HttpRule.newBuilder() + .setPost("/v1/{name=projects/*/locations/*/operations/*}:cancel") + .build()) + .put( + "google.longrunning.Operations.DeleteOperation", + HttpRule.newBuilder() + .setDelete("/v1/{name=projects/*/locations/*/operations/*}") + .build()) + .put( + "google.longrunning.Operations.GetOperation", + HttpRule.newBuilder() + .setGet("/v1/{name=projects/*/locations/*/operations/*}") + .build()) + .put( + "google.longrunning.Operations.ListOperations", + HttpRule.newBuilder() + .setGet("/v1/{name=projects/*/locations/*}/operations") + .build()) + .build()); + + HttpJsonCallSettings + listConfigurationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listConfigurationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getConfigurationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getConfigurationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + createConfigurationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createConfigurationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + updateConfigurationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateConfigurationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "configuration.name", + String.valueOf(request.getConfiguration().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + deleteConfigurationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteConfigurationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listInstancesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listInstancesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getInstanceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getInstanceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + deactivateConfigurationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deactivateConfigurationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + reactivateConfigurationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(reactivateConfigurationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings< + QueryConfigurationLicenseUsageRequest, QueryConfigurationLicenseUsageResponse> + queryConfigurationLicenseUsageTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(queryConfigurationLicenseUsageMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + aggregateUsageTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(aggregateUsageMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings listProductsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listProductsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getProductTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getProductMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listLocationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getLocationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.listConfigurationsCallable = + callableFactory.createUnaryCallable( + listConfigurationsTransportSettings, + settings.listConfigurationsSettings(), + clientContext); + this.listConfigurationsPagedCallable = + callableFactory.createPagedCallable( + listConfigurationsTransportSettings, + settings.listConfigurationsSettings(), + clientContext); + this.getConfigurationCallable = + callableFactory.createUnaryCallable( + getConfigurationTransportSettings, settings.getConfigurationSettings(), clientContext); + this.createConfigurationCallable = + callableFactory.createUnaryCallable( + createConfigurationTransportSettings, + settings.createConfigurationSettings(), + clientContext); + this.createConfigurationOperationCallable = + callableFactory.createOperationCallable( + createConfigurationTransportSettings, + settings.createConfigurationOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateConfigurationCallable = + callableFactory.createUnaryCallable( + updateConfigurationTransportSettings, + settings.updateConfigurationSettings(), + clientContext); + this.updateConfigurationOperationCallable = + callableFactory.createOperationCallable( + updateConfigurationTransportSettings, + settings.updateConfigurationOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteConfigurationCallable = + callableFactory.createUnaryCallable( + deleteConfigurationTransportSettings, + settings.deleteConfigurationSettings(), + clientContext); + this.deleteConfigurationOperationCallable = + callableFactory.createOperationCallable( + deleteConfigurationTransportSettings, + settings.deleteConfigurationOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listInstancesCallable = + callableFactory.createUnaryCallable( + listInstancesTransportSettings, settings.listInstancesSettings(), clientContext); + this.listInstancesPagedCallable = + callableFactory.createPagedCallable( + listInstancesTransportSettings, settings.listInstancesSettings(), clientContext); + this.getInstanceCallable = + callableFactory.createUnaryCallable( + getInstanceTransportSettings, settings.getInstanceSettings(), clientContext); + this.deactivateConfigurationCallable = + callableFactory.createUnaryCallable( + deactivateConfigurationTransportSettings, + settings.deactivateConfigurationSettings(), + clientContext); + this.deactivateConfigurationOperationCallable = + callableFactory.createOperationCallable( + deactivateConfigurationTransportSettings, + settings.deactivateConfigurationOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.reactivateConfigurationCallable = + callableFactory.createUnaryCallable( + reactivateConfigurationTransportSettings, + settings.reactivateConfigurationSettings(), + clientContext); + this.reactivateConfigurationOperationCallable = + callableFactory.createOperationCallable( + reactivateConfigurationTransportSettings, + settings.reactivateConfigurationOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.queryConfigurationLicenseUsageCallable = + callableFactory.createUnaryCallable( + queryConfigurationLicenseUsageTransportSettings, + settings.queryConfigurationLicenseUsageSettings(), + clientContext); + this.aggregateUsageCallable = + callableFactory.createUnaryCallable( + aggregateUsageTransportSettings, settings.aggregateUsageSettings(), clientContext); + this.aggregateUsagePagedCallable = + callableFactory.createPagedCallable( + aggregateUsageTransportSettings, settings.aggregateUsageSettings(), clientContext); + this.listProductsCallable = + callableFactory.createUnaryCallable( + listProductsTransportSettings, settings.listProductsSettings(), clientContext); + this.listProductsPagedCallable = + callableFactory.createPagedCallable( + listProductsTransportSettings, settings.listProductsSettings(), clientContext); + this.getProductCallable = + callableFactory.createUnaryCallable( + getProductTransportSettings, settings.getProductSettings(), clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(listConfigurationsMethodDescriptor); + methodDescriptors.add(getConfigurationMethodDescriptor); + methodDescriptors.add(createConfigurationMethodDescriptor); + methodDescriptors.add(updateConfigurationMethodDescriptor); + methodDescriptors.add(deleteConfigurationMethodDescriptor); + methodDescriptors.add(listInstancesMethodDescriptor); + methodDescriptors.add(getInstanceMethodDescriptor); + methodDescriptors.add(deactivateConfigurationMethodDescriptor); + methodDescriptors.add(reactivateConfigurationMethodDescriptor); + methodDescriptors.add(queryConfigurationLicenseUsageMethodDescriptor); + methodDescriptors.add(aggregateUsageMethodDescriptor); + methodDescriptors.add(listProductsMethodDescriptor); + methodDescriptors.add(getProductMethodDescriptor); + methodDescriptors.add(listLocationsMethodDescriptor); + methodDescriptors.add(getLocationMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable + listConfigurationsCallable() { + return listConfigurationsCallable; + } + + @Override + public UnaryCallable + listConfigurationsPagedCallable() { + return listConfigurationsPagedCallable; + } + + @Override + public UnaryCallable getConfigurationCallable() { + return getConfigurationCallable; + } + + @Override + public UnaryCallable createConfigurationCallable() { + return createConfigurationCallable; + } + + @Override + public OperationCallable + createConfigurationOperationCallable() { + return createConfigurationOperationCallable; + } + + @Override + public UnaryCallable updateConfigurationCallable() { + return updateConfigurationCallable; + } + + @Override + public OperationCallable + updateConfigurationOperationCallable() { + return updateConfigurationOperationCallable; + } + + @Override + public UnaryCallable deleteConfigurationCallable() { + return deleteConfigurationCallable; + } + + @Override + public OperationCallable + deleteConfigurationOperationCallable() { + return deleteConfigurationOperationCallable; + } + + @Override + public UnaryCallable listInstancesCallable() { + return listInstancesCallable; + } + + @Override + public UnaryCallable + listInstancesPagedCallable() { + return listInstancesPagedCallable; + } + + @Override + public UnaryCallable getInstanceCallable() { + return getInstanceCallable; + } + + @Override + public UnaryCallable + deactivateConfigurationCallable() { + return deactivateConfigurationCallable; + } + + @Override + public OperationCallable + deactivateConfigurationOperationCallable() { + return deactivateConfigurationOperationCallable; + } + + @Override + public UnaryCallable + reactivateConfigurationCallable() { + return reactivateConfigurationCallable; + } + + @Override + public OperationCallable + reactivateConfigurationOperationCallable() { + return reactivateConfigurationOperationCallable; + } + + @Override + public UnaryCallable< + QueryConfigurationLicenseUsageRequest, QueryConfigurationLicenseUsageResponse> + queryConfigurationLicenseUsageCallable() { + return queryConfigurationLicenseUsageCallable; + } + + @Override + public UnaryCallable aggregateUsageCallable() { + return aggregateUsageCallable; + } + + @Override + public UnaryCallable + aggregateUsagePagedCallable() { + return aggregateUsagePagedCallable; + } + + @Override + public UnaryCallable listProductsCallable() { + return listProductsCallable; + } + + @Override + public UnaryCallable listProductsPagedCallable() { + return listProductsPagedCallable; + } + + @Override + public UnaryCallable getProductCallable() { + return getProductCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @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-licensemanager/google-cloud-licensemanager/src/main/java/com/google/cloud/licensemanager/v1/stub/LicenseManagerStub.java b/java-licensemanager/google-cloud-licensemanager/src/main/java/com/google/cloud/licensemanager/v1/stub/LicenseManagerStub.java new file mode 100644 index 000000000000..8bf6bcfaed69 --- /dev/null +++ b/java-licensemanager/google-cloud-licensemanager/src/main/java/com/google/cloud/licensemanager/v1/stub/LicenseManagerStub.java @@ -0,0 +1,198 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.stub; + +import static com.google.cloud.licensemanager.v1.LicenseManagerClient.AggregateUsagePagedResponse; +import static com.google.cloud.licensemanager.v1.LicenseManagerClient.ListConfigurationsPagedResponse; +import static com.google.cloud.licensemanager.v1.LicenseManagerClient.ListInstancesPagedResponse; +import static com.google.cloud.licensemanager.v1.LicenseManagerClient.ListLocationsPagedResponse; +import static com.google.cloud.licensemanager.v1.LicenseManagerClient.ListProductsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.licensemanager.v1.AggregateUsageRequest; +import com.google.cloud.licensemanager.v1.AggregateUsageResponse; +import com.google.cloud.licensemanager.v1.Configuration; +import com.google.cloud.licensemanager.v1.CreateConfigurationRequest; +import com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest; +import com.google.cloud.licensemanager.v1.DeleteConfigurationRequest; +import com.google.cloud.licensemanager.v1.GetConfigurationRequest; +import com.google.cloud.licensemanager.v1.GetInstanceRequest; +import com.google.cloud.licensemanager.v1.GetProductRequest; +import com.google.cloud.licensemanager.v1.Instance; +import com.google.cloud.licensemanager.v1.ListConfigurationsRequest; +import com.google.cloud.licensemanager.v1.ListConfigurationsResponse; +import com.google.cloud.licensemanager.v1.ListInstancesRequest; +import com.google.cloud.licensemanager.v1.ListInstancesResponse; +import com.google.cloud.licensemanager.v1.ListProductsRequest; +import com.google.cloud.licensemanager.v1.ListProductsResponse; +import com.google.cloud.licensemanager.v1.OperationMetadata; +import com.google.cloud.licensemanager.v1.Product; +import com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest; +import com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse; +import com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest; +import com.google.cloud.licensemanager.v1.UpdateConfigurationRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the LicenseManager service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class LicenseManagerStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; + } + + public UnaryCallable + listConfigurationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listConfigurationsPagedCallable()"); + } + + public UnaryCallable + listConfigurationsCallable() { + throw new UnsupportedOperationException("Not implemented: listConfigurationsCallable()"); + } + + public UnaryCallable getConfigurationCallable() { + throw new UnsupportedOperationException("Not implemented: getConfigurationCallable()"); + } + + public OperationCallable + createConfigurationOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createConfigurationOperationCallable()"); + } + + public UnaryCallable createConfigurationCallable() { + throw new UnsupportedOperationException("Not implemented: createConfigurationCallable()"); + } + + public OperationCallable + updateConfigurationOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateConfigurationOperationCallable()"); + } + + public UnaryCallable updateConfigurationCallable() { + throw new UnsupportedOperationException("Not implemented: updateConfigurationCallable()"); + } + + public OperationCallable + deleteConfigurationOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteConfigurationOperationCallable()"); + } + + public UnaryCallable deleteConfigurationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteConfigurationCallable()"); + } + + public UnaryCallable + listInstancesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listInstancesPagedCallable()"); + } + + public UnaryCallable listInstancesCallable() { + throw new UnsupportedOperationException("Not implemented: listInstancesCallable()"); + } + + public UnaryCallable getInstanceCallable() { + throw new UnsupportedOperationException("Not implemented: getInstanceCallable()"); + } + + public OperationCallable + deactivateConfigurationOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deactivateConfigurationOperationCallable()"); + } + + public UnaryCallable + deactivateConfigurationCallable() { + throw new UnsupportedOperationException("Not implemented: deactivateConfigurationCallable()"); + } + + public OperationCallable + reactivateConfigurationOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: reactivateConfigurationOperationCallable()"); + } + + public UnaryCallable + reactivateConfigurationCallable() { + throw new UnsupportedOperationException("Not implemented: reactivateConfigurationCallable()"); + } + + public UnaryCallable< + QueryConfigurationLicenseUsageRequest, QueryConfigurationLicenseUsageResponse> + queryConfigurationLicenseUsageCallable() { + throw new UnsupportedOperationException( + "Not implemented: queryConfigurationLicenseUsageCallable()"); + } + + public UnaryCallable + aggregateUsagePagedCallable() { + throw new UnsupportedOperationException("Not implemented: aggregateUsagePagedCallable()"); + } + + public UnaryCallable aggregateUsageCallable() { + throw new UnsupportedOperationException("Not implemented: aggregateUsageCallable()"); + } + + public UnaryCallable listProductsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listProductsPagedCallable()"); + } + + public UnaryCallable listProductsCallable() { + throw new UnsupportedOperationException("Not implemented: listProductsCallable()"); + } + + public UnaryCallable getProductCallable() { + throw new UnsupportedOperationException("Not implemented: getProductCallable()"); + } + + public UnaryCallable + listLocationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); + } + + public UnaryCallable listLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); + } + + public UnaryCallable getLocationCallable() { + throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-licensemanager/google-cloud-licensemanager/src/main/java/com/google/cloud/licensemanager/v1/stub/LicenseManagerStubSettings.java b/java-licensemanager/google-cloud-licensemanager/src/main/java/com/google/cloud/licensemanager/v1/stub/LicenseManagerStubSettings.java new file mode 100644 index 000000000000..75ee1d75d9b1 --- /dev/null +++ b/java-licensemanager/google-cloud-licensemanager/src/main/java/com/google/cloud/licensemanager/v1/stub/LicenseManagerStubSettings.java @@ -0,0 +1,1302 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.stub; + +import static com.google.cloud.licensemanager.v1.LicenseManagerClient.AggregateUsagePagedResponse; +import static com.google.cloud.licensemanager.v1.LicenseManagerClient.ListConfigurationsPagedResponse; +import static com.google.cloud.licensemanager.v1.LicenseManagerClient.ListInstancesPagedResponse; +import static com.google.cloud.licensemanager.v1.LicenseManagerClient.ListLocationsPagedResponse; +import static com.google.cloud.licensemanager.v1.LicenseManagerClient.ListProductsPagedResponse; + +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.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.cloud.licensemanager.v1.AggregateUsageRequest; +import com.google.cloud.licensemanager.v1.AggregateUsageResponse; +import com.google.cloud.licensemanager.v1.Configuration; +import com.google.cloud.licensemanager.v1.CreateConfigurationRequest; +import com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest; +import com.google.cloud.licensemanager.v1.DeleteConfigurationRequest; +import com.google.cloud.licensemanager.v1.GetConfigurationRequest; +import com.google.cloud.licensemanager.v1.GetInstanceRequest; +import com.google.cloud.licensemanager.v1.GetProductRequest; +import com.google.cloud.licensemanager.v1.Instance; +import com.google.cloud.licensemanager.v1.ListConfigurationsRequest; +import com.google.cloud.licensemanager.v1.ListConfigurationsResponse; +import com.google.cloud.licensemanager.v1.ListInstancesRequest; +import com.google.cloud.licensemanager.v1.ListInstancesResponse; +import com.google.cloud.licensemanager.v1.ListProductsRequest; +import com.google.cloud.licensemanager.v1.ListProductsResponse; +import com.google.cloud.licensemanager.v1.OperationMetadata; +import com.google.cloud.licensemanager.v1.Product; +import com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest; +import com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse; +import com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest; +import com.google.cloud.licensemanager.v1.UpdateConfigurationRequest; +import com.google.cloud.licensemanager.v1.Usage; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +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.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link LicenseManagerStub}. + * + *

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

    + *
  • The default service address (licensemanager.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 getConfiguration: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * LicenseManagerStubSettings.Builder licenseManagerSettingsBuilder =
+ *     LicenseManagerStubSettings.newBuilder();
+ * licenseManagerSettingsBuilder
+ *     .getConfigurationSettings()
+ *     .setRetrySettings(
+ *         licenseManagerSettingsBuilder
+ *             .getConfigurationSettings()
+ *             .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());
+ * LicenseManagerStubSettings licenseManagerSettings = licenseManagerSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) 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 createConfiguration: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * LicenseManagerStubSettings.Builder licenseManagerSettingsBuilder =
+ *     LicenseManagerStubSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * licenseManagerSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class LicenseManagerStubSettings 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 PagedCallSettings< + ListConfigurationsRequest, ListConfigurationsResponse, ListConfigurationsPagedResponse> + listConfigurationsSettings; + private final UnaryCallSettings getConfigurationSettings; + private final UnaryCallSettings + createConfigurationSettings; + private final OperationCallSettings + createConfigurationOperationSettings; + private final UnaryCallSettings + updateConfigurationSettings; + private final OperationCallSettings + updateConfigurationOperationSettings; + private final UnaryCallSettings + deleteConfigurationSettings; + private final OperationCallSettings + deleteConfigurationOperationSettings; + private final PagedCallSettings< + ListInstancesRequest, ListInstancesResponse, ListInstancesPagedResponse> + listInstancesSettings; + private final UnaryCallSettings getInstanceSettings; + private final UnaryCallSettings + deactivateConfigurationSettings; + private final OperationCallSettings< + DeactivateConfigurationRequest, Configuration, OperationMetadata> + deactivateConfigurationOperationSettings; + private final UnaryCallSettings + reactivateConfigurationSettings; + private final OperationCallSettings< + ReactivateConfigurationRequest, Configuration, OperationMetadata> + reactivateConfigurationOperationSettings; + private final UnaryCallSettings< + QueryConfigurationLicenseUsageRequest, QueryConfigurationLicenseUsageResponse> + queryConfigurationLicenseUsageSettings; + private final PagedCallSettings< + AggregateUsageRequest, AggregateUsageResponse, AggregateUsagePagedResponse> + aggregateUsageSettings; + private final PagedCallSettings< + ListProductsRequest, ListProductsResponse, ListProductsPagedResponse> + listProductsSettings; + private final UnaryCallSettings getProductSettings; + private final PagedCallSettings< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings getLocationSettings; + + private static final PagedListDescriptor< + ListConfigurationsRequest, ListConfigurationsResponse, Configuration> + LIST_CONFIGURATIONS_PAGE_STR_DESC = + new PagedListDescriptor< + ListConfigurationsRequest, ListConfigurationsResponse, Configuration>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListConfigurationsRequest injectToken( + ListConfigurationsRequest payload, String token) { + return ListConfigurationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListConfigurationsRequest injectPageSize( + ListConfigurationsRequest payload, int pageSize) { + return ListConfigurationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListConfigurationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListConfigurationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListConfigurationsResponse payload) { + return payload.getConfigurationsList(); + } + }; + + private static final PagedListDescriptor + LIST_INSTANCES_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListInstancesRequest injectToken(ListInstancesRequest payload, String token) { + return ListInstancesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListInstancesRequest injectPageSize(ListInstancesRequest payload, int pageSize) { + return ListInstancesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListInstancesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListInstancesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListInstancesResponse payload) { + return payload.getInstancesList(); + } + }; + + private static final PagedListDescriptor + AGGREGATE_USAGE_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public AggregateUsageRequest injectToken(AggregateUsageRequest payload, String token) { + return AggregateUsageRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public AggregateUsageRequest injectPageSize( + AggregateUsageRequest payload, int pageSize) { + return AggregateUsageRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(AggregateUsageRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(AggregateUsageResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(AggregateUsageResponse payload) { + return payload.getUsagesList(); + } + }; + + private static final PagedListDescriptor + LIST_PRODUCTS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListProductsRequest injectToken(ListProductsRequest payload, String token) { + return ListProductsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListProductsRequest injectPageSize(ListProductsRequest payload, int pageSize) { + return ListProductsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListProductsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListProductsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListProductsResponse payload) { + return payload.getProductsList(); + } + }; + + private static final PagedListDescriptor + LIST_LOCATIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) { + return ListLocationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) { + return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLocationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLocationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLocationsResponse payload) { + return payload.getLocationsList(); + } + }; + + private static final PagedListResponseFactory< + ListConfigurationsRequest, ListConfigurationsResponse, ListConfigurationsPagedResponse> + LIST_CONFIGURATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListConfigurationsRequest, + ListConfigurationsResponse, + ListConfigurationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListConfigurationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_CONFIGURATIONS_PAGE_STR_DESC, request, context); + return ListConfigurationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListInstancesRequest, ListInstancesResponse, ListInstancesPagedResponse> + LIST_INSTANCES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListInstancesRequest, ListInstancesResponse, ListInstancesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListInstancesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_INSTANCES_PAGE_STR_DESC, request, context); + return ListInstancesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + AggregateUsageRequest, AggregateUsageResponse, AggregateUsagePagedResponse> + AGGREGATE_USAGE_PAGE_STR_FACT = + new PagedListResponseFactory< + AggregateUsageRequest, AggregateUsageResponse, AggregateUsagePagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + AggregateUsageRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, AGGREGATE_USAGE_PAGE_STR_DESC, request, context); + return AggregateUsagePagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListProductsRequest, ListProductsResponse, ListProductsPagedResponse> + LIST_PRODUCTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListProductsRequest, ListProductsResponse, ListProductsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListProductsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_PRODUCTS_PAGE_STR_DESC, request, context); + return ListProductsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + LIST_LOCATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLocationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); + return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to listConfigurations. */ + public PagedCallSettings< + ListConfigurationsRequest, ListConfigurationsResponse, ListConfigurationsPagedResponse> + listConfigurationsSettings() { + return listConfigurationsSettings; + } + + /** Returns the object with the settings used for calls to getConfiguration. */ + public UnaryCallSettings getConfigurationSettings() { + return getConfigurationSettings; + } + + /** Returns the object with the settings used for calls to createConfiguration. */ + public UnaryCallSettings createConfigurationSettings() { + return createConfigurationSettings; + } + + /** Returns the object with the settings used for calls to createConfiguration. */ + public OperationCallSettings + createConfigurationOperationSettings() { + return createConfigurationOperationSettings; + } + + /** Returns the object with the settings used for calls to updateConfiguration. */ + public UnaryCallSettings updateConfigurationSettings() { + return updateConfigurationSettings; + } + + /** Returns the object with the settings used for calls to updateConfiguration. */ + public OperationCallSettings + updateConfigurationOperationSettings() { + return updateConfigurationOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteConfiguration. */ + public UnaryCallSettings deleteConfigurationSettings() { + return deleteConfigurationSettings; + } + + /** Returns the object with the settings used for calls to deleteConfiguration. */ + public OperationCallSettings + deleteConfigurationOperationSettings() { + return deleteConfigurationOperationSettings; + } + + /** Returns the object with the settings used for calls to listInstances. */ + public PagedCallSettings + listInstancesSettings() { + return listInstancesSettings; + } + + /** Returns the object with the settings used for calls to getInstance. */ + public UnaryCallSettings getInstanceSettings() { + return getInstanceSettings; + } + + /** Returns the object with the settings used for calls to deactivateConfiguration. */ + public UnaryCallSettings + deactivateConfigurationSettings() { + return deactivateConfigurationSettings; + } + + /** Returns the object with the settings used for calls to deactivateConfiguration. */ + public OperationCallSettings + deactivateConfigurationOperationSettings() { + return deactivateConfigurationOperationSettings; + } + + /** Returns the object with the settings used for calls to reactivateConfiguration. */ + public UnaryCallSettings + reactivateConfigurationSettings() { + return reactivateConfigurationSettings; + } + + /** Returns the object with the settings used for calls to reactivateConfiguration. */ + public OperationCallSettings + reactivateConfigurationOperationSettings() { + return reactivateConfigurationOperationSettings; + } + + /** Returns the object with the settings used for calls to queryConfigurationLicenseUsage. */ + public UnaryCallSettings< + QueryConfigurationLicenseUsageRequest, QueryConfigurationLicenseUsageResponse> + queryConfigurationLicenseUsageSettings() { + return queryConfigurationLicenseUsageSettings; + } + + /** Returns the object with the settings used for calls to aggregateUsage. */ + public PagedCallSettings< + AggregateUsageRequest, AggregateUsageResponse, AggregateUsagePagedResponse> + aggregateUsageSettings() { + return aggregateUsageSettings; + } + + /** Returns the object with the settings used for calls to listProducts. */ + public PagedCallSettings + listProductsSettings() { + return listProductsSettings; + } + + /** Returns the object with the settings used for calls to getProduct. */ + public UnaryCallSettings getProductSettings() { + return getProductSettings; + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return getLocationSettings; + } + + public LicenseManagerStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcLicenseManagerStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonLicenseManagerStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "licensemanager"; + } + + /** 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 "licensemanager.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "licensemanager.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(LicenseManagerStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(LicenseManagerStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return LicenseManagerStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected LicenseManagerStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + listConfigurationsSettings = settingsBuilder.listConfigurationsSettings().build(); + getConfigurationSettings = settingsBuilder.getConfigurationSettings().build(); + createConfigurationSettings = settingsBuilder.createConfigurationSettings().build(); + createConfigurationOperationSettings = + settingsBuilder.createConfigurationOperationSettings().build(); + updateConfigurationSettings = settingsBuilder.updateConfigurationSettings().build(); + updateConfigurationOperationSettings = + settingsBuilder.updateConfigurationOperationSettings().build(); + deleteConfigurationSettings = settingsBuilder.deleteConfigurationSettings().build(); + deleteConfigurationOperationSettings = + settingsBuilder.deleteConfigurationOperationSettings().build(); + listInstancesSettings = settingsBuilder.listInstancesSettings().build(); + getInstanceSettings = settingsBuilder.getInstanceSettings().build(); + deactivateConfigurationSettings = settingsBuilder.deactivateConfigurationSettings().build(); + deactivateConfigurationOperationSettings = + settingsBuilder.deactivateConfigurationOperationSettings().build(); + reactivateConfigurationSettings = settingsBuilder.reactivateConfigurationSettings().build(); + reactivateConfigurationOperationSettings = + settingsBuilder.reactivateConfigurationOperationSettings().build(); + queryConfigurationLicenseUsageSettings = + settingsBuilder.queryConfigurationLicenseUsageSettings().build(); + aggregateUsageSettings = settingsBuilder.aggregateUsageSettings().build(); + listProductsSettings = settingsBuilder.listProductsSettings().build(); + getProductSettings = settingsBuilder.getProductSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); + } + + /** Builder for LicenseManagerStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final PagedCallSettings.Builder< + ListConfigurationsRequest, ListConfigurationsResponse, ListConfigurationsPagedResponse> + listConfigurationsSettings; + private final UnaryCallSettings.Builder + getConfigurationSettings; + private final UnaryCallSettings.Builder + createConfigurationSettings; + private final OperationCallSettings.Builder< + CreateConfigurationRequest, Configuration, OperationMetadata> + createConfigurationOperationSettings; + private final UnaryCallSettings.Builder + updateConfigurationSettings; + private final OperationCallSettings.Builder< + UpdateConfigurationRequest, Configuration, OperationMetadata> + updateConfigurationOperationSettings; + private final UnaryCallSettings.Builder + deleteConfigurationSettings; + private final OperationCallSettings.Builder< + DeleteConfigurationRequest, Empty, OperationMetadata> + deleteConfigurationOperationSettings; + private final PagedCallSettings.Builder< + ListInstancesRequest, ListInstancesResponse, ListInstancesPagedResponse> + listInstancesSettings; + private final UnaryCallSettings.Builder getInstanceSettings; + private final UnaryCallSettings.Builder + deactivateConfigurationSettings; + private final OperationCallSettings.Builder< + DeactivateConfigurationRequest, Configuration, OperationMetadata> + deactivateConfigurationOperationSettings; + private final UnaryCallSettings.Builder + reactivateConfigurationSettings; + private final OperationCallSettings.Builder< + ReactivateConfigurationRequest, Configuration, OperationMetadata> + reactivateConfigurationOperationSettings; + private final UnaryCallSettings.Builder< + QueryConfigurationLicenseUsageRequest, QueryConfigurationLicenseUsageResponse> + queryConfigurationLicenseUsageSettings; + private final PagedCallSettings.Builder< + AggregateUsageRequest, AggregateUsageResponse, AggregateUsagePagedResponse> + aggregateUsageSettings; + private final PagedCallSettings.Builder< + ListProductsRequest, ListProductsResponse, ListProductsPagedResponse> + listProductsSettings; + private final UnaryCallSettings.Builder getProductSettings; + private final PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings.Builder getLocationSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + definitions.put( + "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .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); + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setTotalTimeoutDuration(Duration.ofMillis(60000L)) + .build(); + definitions.put("no_retry_1_params", settings); + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + listConfigurationsSettings = PagedCallSettings.newBuilder(LIST_CONFIGURATIONS_PAGE_STR_FACT); + getConfigurationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createConfigurationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createConfigurationOperationSettings = OperationCallSettings.newBuilder(); + updateConfigurationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateConfigurationOperationSettings = OperationCallSettings.newBuilder(); + deleteConfigurationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteConfigurationOperationSettings = OperationCallSettings.newBuilder(); + listInstancesSettings = PagedCallSettings.newBuilder(LIST_INSTANCES_PAGE_STR_FACT); + getInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deactivateConfigurationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deactivateConfigurationOperationSettings = OperationCallSettings.newBuilder(); + reactivateConfigurationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + reactivateConfigurationOperationSettings = OperationCallSettings.newBuilder(); + queryConfigurationLicenseUsageSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + aggregateUsageSettings = PagedCallSettings.newBuilder(AGGREGATE_USAGE_PAGE_STR_FACT); + listProductsSettings = PagedCallSettings.newBuilder(LIST_PRODUCTS_PAGE_STR_FACT); + getProductSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listConfigurationsSettings, + getConfigurationSettings, + createConfigurationSettings, + updateConfigurationSettings, + deleteConfigurationSettings, + listInstancesSettings, + getInstanceSettings, + deactivateConfigurationSettings, + reactivateConfigurationSettings, + queryConfigurationLicenseUsageSettings, + aggregateUsageSettings, + listProductsSettings, + getProductSettings, + listLocationsSettings, + getLocationSettings); + initDefaults(this); + } + + protected Builder(LicenseManagerStubSettings settings) { + super(settings); + + listConfigurationsSettings = settings.listConfigurationsSettings.toBuilder(); + getConfigurationSettings = settings.getConfigurationSettings.toBuilder(); + createConfigurationSettings = settings.createConfigurationSettings.toBuilder(); + createConfigurationOperationSettings = + settings.createConfigurationOperationSettings.toBuilder(); + updateConfigurationSettings = settings.updateConfigurationSettings.toBuilder(); + updateConfigurationOperationSettings = + settings.updateConfigurationOperationSettings.toBuilder(); + deleteConfigurationSettings = settings.deleteConfigurationSettings.toBuilder(); + deleteConfigurationOperationSettings = + settings.deleteConfigurationOperationSettings.toBuilder(); + listInstancesSettings = settings.listInstancesSettings.toBuilder(); + getInstanceSettings = settings.getInstanceSettings.toBuilder(); + deactivateConfigurationSettings = settings.deactivateConfigurationSettings.toBuilder(); + deactivateConfigurationOperationSettings = + settings.deactivateConfigurationOperationSettings.toBuilder(); + reactivateConfigurationSettings = settings.reactivateConfigurationSettings.toBuilder(); + reactivateConfigurationOperationSettings = + settings.reactivateConfigurationOperationSettings.toBuilder(); + queryConfigurationLicenseUsageSettings = + settings.queryConfigurationLicenseUsageSettings.toBuilder(); + aggregateUsageSettings = settings.aggregateUsageSettings.toBuilder(); + listProductsSettings = settings.listProductsSettings.toBuilder(); + getProductSettings = settings.getProductSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listConfigurationsSettings, + getConfigurationSettings, + createConfigurationSettings, + updateConfigurationSettings, + deleteConfigurationSettings, + listInstancesSettings, + getInstanceSettings, + deactivateConfigurationSettings, + reactivateConfigurationSettings, + queryConfigurationLicenseUsageSettings, + aggregateUsageSettings, + listProductsSettings, + getProductSettings, + listLocationsSettings, + getLocationSettings); + } + + 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 + .listConfigurationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getConfigurationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createConfigurationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .updateConfigurationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .deleteConfigurationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .listInstancesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getInstanceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deactivateConfigurationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .reactivateConfigurationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .queryConfigurationLicenseUsageSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .aggregateUsageSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .listProductsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getProductSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listLocationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getLocationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createConfigurationOperationSettings() + .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(Configuration.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 + .updateConfigurationOperationSettings() + .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(Configuration.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 + .deleteConfigurationOperationSettings() + .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())); + + builder + .deactivateConfigurationOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Configuration.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 + .reactivateConfigurationOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Configuration.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 listConfigurations. */ + public PagedCallSettings.Builder< + ListConfigurationsRequest, ListConfigurationsResponse, ListConfigurationsPagedResponse> + listConfigurationsSettings() { + return listConfigurationsSettings; + } + + /** Returns the builder for the settings used for calls to getConfiguration. */ + public UnaryCallSettings.Builder + getConfigurationSettings() { + return getConfigurationSettings; + } + + /** Returns the builder for the settings used for calls to createConfiguration. */ + public UnaryCallSettings.Builder + createConfigurationSettings() { + return createConfigurationSettings; + } + + /** Returns the builder for the settings used for calls to createConfiguration. */ + public OperationCallSettings.Builder< + CreateConfigurationRequest, Configuration, OperationMetadata> + createConfigurationOperationSettings() { + return createConfigurationOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateConfiguration. */ + public UnaryCallSettings.Builder + updateConfigurationSettings() { + return updateConfigurationSettings; + } + + /** Returns the builder for the settings used for calls to updateConfiguration. */ + public OperationCallSettings.Builder< + UpdateConfigurationRequest, Configuration, OperationMetadata> + updateConfigurationOperationSettings() { + return updateConfigurationOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteConfiguration. */ + public UnaryCallSettings.Builder + deleteConfigurationSettings() { + return deleteConfigurationSettings; + } + + /** Returns the builder for the settings used for calls to deleteConfiguration. */ + public OperationCallSettings.Builder + deleteConfigurationOperationSettings() { + return deleteConfigurationOperationSettings; + } + + /** Returns the builder for the settings used for calls to listInstances. */ + public PagedCallSettings.Builder< + ListInstancesRequest, ListInstancesResponse, ListInstancesPagedResponse> + listInstancesSettings() { + return listInstancesSettings; + } + + /** Returns the builder for the settings used for calls to getInstance. */ + public UnaryCallSettings.Builder getInstanceSettings() { + return getInstanceSettings; + } + + /** Returns the builder for the settings used for calls to deactivateConfiguration. */ + public UnaryCallSettings.Builder + deactivateConfigurationSettings() { + return deactivateConfigurationSettings; + } + + /** Returns the builder for the settings used for calls to deactivateConfiguration. */ + public OperationCallSettings.Builder< + DeactivateConfigurationRequest, Configuration, OperationMetadata> + deactivateConfigurationOperationSettings() { + return deactivateConfigurationOperationSettings; + } + + /** Returns the builder for the settings used for calls to reactivateConfiguration. */ + public UnaryCallSettings.Builder + reactivateConfigurationSettings() { + return reactivateConfigurationSettings; + } + + /** Returns the builder for the settings used for calls to reactivateConfiguration. */ + public OperationCallSettings.Builder< + ReactivateConfigurationRequest, Configuration, OperationMetadata> + reactivateConfigurationOperationSettings() { + return reactivateConfigurationOperationSettings; + } + + /** Returns the builder for the settings used for calls to queryConfigurationLicenseUsage. */ + public UnaryCallSettings.Builder< + QueryConfigurationLicenseUsageRequest, QueryConfigurationLicenseUsageResponse> + queryConfigurationLicenseUsageSettings() { + return queryConfigurationLicenseUsageSettings; + } + + /** Returns the builder for the settings used for calls to aggregateUsage. */ + public PagedCallSettings.Builder< + AggregateUsageRequest, AggregateUsageResponse, AggregateUsagePagedResponse> + aggregateUsageSettings() { + return aggregateUsageSettings; + } + + /** Returns the builder for the settings used for calls to listProducts. */ + public PagedCallSettings.Builder< + ListProductsRequest, ListProductsResponse, ListProductsPagedResponse> + listProductsSettings() { + return listProductsSettings; + } + + /** Returns the builder for the settings used for calls to getProduct. */ + public UnaryCallSettings.Builder getProductSettings() { + return getProductSettings; + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getLocationSettings; + } + + @Override + public LicenseManagerStubSettings build() throws IOException { + return new LicenseManagerStubSettings(this); + } + } +} diff --git a/java-licensemanager/google-cloud-licensemanager/src/main/resources/META-INF/native-image/com.google.cloud.licensemanager.v1/reflect-config.json b/java-licensemanager/google-cloud-licensemanager/src/main/resources/META-INF/native-image/com.google.cloud.licensemanager.v1/reflect-config.json new file mode 100644 index 000000000000..e5865eef0f0b --- /dev/null +++ b/java-licensemanager/google-cloud-licensemanager/src/main/resources/META-INF/native-image/com.google.cloud.licensemanager.v1/reflect-config.json @@ -0,0 +1,2027 @@ +[ + { + "name": "com.google.api.ClientLibraryDestination", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibraryOrganization", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldBehavior", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldInfo$Format", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.LaunchStage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$ExperimentalFeatures", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$ExperimentalFeatures$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$History", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Style", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.TypeReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.TypeReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.ActivationState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.AggregateUsageRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.AggregateUsageRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.AggregateUsageResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.AggregateUsageResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.BillingInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.BillingInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.Configuration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.Configuration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.Configuration$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.CreateConfigurationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.CreateConfigurationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.DeleteConfigurationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.DeleteConfigurationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.GetConfigurationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.GetConfigurationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.GetInstanceRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.GetInstanceRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.GetProductRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.GetProductRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.Instance", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.Instance$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.Instance$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.LicenseType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.ListConfigurationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.ListConfigurationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.ListConfigurationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.ListConfigurationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.ListInstancesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.ListInstancesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.ListInstancesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.ListInstancesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.ListProductsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.ListProductsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.ListProductsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.ListProductsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.OperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.OperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.Product", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.Product$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.Product$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.UpdateConfigurationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.UpdateConfigurationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.Usage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.Usage$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.UserCountBillingInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.UserCountBillingInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.UserCountUsage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.licensemanager.v1.UserCountUsage$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.GetLocationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.GetLocationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.Location", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.Location$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.CancelOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.CancelOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.DeleteOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.DeleteOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.GetOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.GetOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.Operation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.Operation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.OperationInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.OperationInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.WaitOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.WaitOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$Edition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$VerificationState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$EnumType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$FieldPresence", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$JsonFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$MessageEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$RepeatedFieldEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Utf8Validation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Label", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$CType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$JSType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionRetention", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionTargetType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$OptimizeMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Semantic", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$IdempotencyLevel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FieldMask", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FieldMask$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.Status", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.Status$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + } +] \ No newline at end of file diff --git a/java-licensemanager/google-cloud-licensemanager/src/test/java/com/google/cloud/licensemanager/v1/LicenseManagerClientHttpJsonTest.java b/java-licensemanager/google-cloud-licensemanager/src/test/java/com/google/cloud/licensemanager/v1/LicenseManagerClientHttpJsonTest.java new file mode 100644 index 000000000000..0e06a0b91763 --- /dev/null +++ b/java-licensemanager/google-cloud-licensemanager/src/test/java/com/google/cloud/licensemanager/v1/LicenseManagerClientHttpJsonTest.java @@ -0,0 +1,1544 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1; + +import static com.google.cloud.licensemanager.v1.LicenseManagerClient.AggregateUsagePagedResponse; +import static com.google.cloud.licensemanager.v1.LicenseManagerClient.ListConfigurationsPagedResponse; +import static com.google.cloud.licensemanager.v1.LicenseManagerClient.ListInstancesPagedResponse; +import static com.google.cloud.licensemanager.v1.LicenseManagerClient.ListLocationsPagedResponse; +import static com.google.cloud.licensemanager.v1.LicenseManagerClient.ListProductsPagedResponse; + +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.cloud.licensemanager.v1.stub.HttpJsonLicenseManagerStub; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +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 LicenseManagerClientHttpJsonTest { + private static MockHttpService mockService; + private static LicenseManagerClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonLicenseManagerStub.getMethodDescriptors(), + LicenseManagerSettings.getDefaultEndpoint()); + LicenseManagerSettings settings = + LicenseManagerSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + LicenseManagerSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = LicenseManagerClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void listConfigurationsTest() throws Exception { + Configuration responsesElement = Configuration.newBuilder().build(); + ListConfigurationsResponse expectedResponse = + ListConfigurationsResponse.newBuilder() + .setNextPageToken("") + .addAllConfigurations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListConfigurationsPagedResponse pagedListResponse = client.listConfigurations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getConfigurationsList().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 listConfigurationsExceptionTest() 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.listConfigurations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listConfigurationsTest2() throws Exception { + Configuration responsesElement = Configuration.newBuilder().build(); + ListConfigurationsResponse expectedResponse = + ListConfigurationsResponse.newBuilder() + .setNextPageToken("") + .addAllConfigurations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListConfigurationsPagedResponse pagedListResponse = client.listConfigurations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getConfigurationsList().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 listConfigurationsExceptionTest2() 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.listConfigurations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getConfigurationTest() throws Exception { + Configuration expectedResponse = + Configuration.newBuilder() + .setName(ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString()) + .setDisplayName("displayName1714148973") + .setProduct(ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString()) + .setLicenseType(LicenseType.forNumber(0)) + .setCurrentBillingInfo(BillingInfo.newBuilder().build()) + .setNextBillingInfo(BillingInfo.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + ConfigurationName name = ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]"); + + Configuration actualResponse = client.getConfiguration(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 getConfigurationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ConfigurationName name = ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]"); + client.getConfiguration(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getConfigurationTest2() throws Exception { + Configuration expectedResponse = + Configuration.newBuilder() + .setName(ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString()) + .setDisplayName("displayName1714148973") + .setProduct(ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString()) + .setLicenseType(LicenseType.forNumber(0)) + .setCurrentBillingInfo(BillingInfo.newBuilder().build()) + .setNextBillingInfo(BillingInfo.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-7171/locations/location-7171/configurations/configuration-7171"; + + Configuration actualResponse = client.getConfiguration(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 getConfigurationExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-7171/locations/location-7171/configurations/configuration-7171"; + client.getConfiguration(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createConfigurationTest() throws Exception { + Configuration expectedResponse = + Configuration.newBuilder() + .setName(ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString()) + .setDisplayName("displayName1714148973") + .setProduct(ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString()) + .setLicenseType(LicenseType.forNumber(0)) + .setCurrentBillingInfo(BillingInfo.newBuilder().build()) + .setNextBillingInfo(BillingInfo.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createConfigurationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Configuration configuration = Configuration.newBuilder().build(); + String configurationId = "configurationId1948915889"; + + Configuration actualResponse = + client.createConfigurationAsync(parent, configuration, configurationId).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 createConfigurationExceptionTest() 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]"); + Configuration configuration = Configuration.newBuilder().build(); + String configurationId = "configurationId1948915889"; + client.createConfigurationAsync(parent, configuration, configurationId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createConfigurationTest2() throws Exception { + Configuration expectedResponse = + Configuration.newBuilder() + .setName(ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString()) + .setDisplayName("displayName1714148973") + .setProduct(ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString()) + .setLicenseType(LicenseType.forNumber(0)) + .setCurrentBillingInfo(BillingInfo.newBuilder().build()) + .setNextBillingInfo(BillingInfo.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createConfigurationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + Configuration configuration = Configuration.newBuilder().build(); + String configurationId = "configurationId1948915889"; + + Configuration actualResponse = + client.createConfigurationAsync(parent, configuration, configurationId).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 createConfigurationExceptionTest2() 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"; + Configuration configuration = Configuration.newBuilder().build(); + String configurationId = "configurationId1948915889"; + client.createConfigurationAsync(parent, configuration, configurationId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateConfigurationTest() throws Exception { + Configuration expectedResponse = + Configuration.newBuilder() + .setName(ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString()) + .setDisplayName("displayName1714148973") + .setProduct(ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString()) + .setLicenseType(LicenseType.forNumber(0)) + .setCurrentBillingInfo(BillingInfo.newBuilder().build()) + .setNextBillingInfo(BillingInfo.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateConfigurationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + Configuration configuration = + Configuration.newBuilder() + .setName(ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString()) + .setDisplayName("displayName1714148973") + .setProduct(ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString()) + .setLicenseType(LicenseType.forNumber(0)) + .setCurrentBillingInfo(BillingInfo.newBuilder().build()) + .setNextBillingInfo(BillingInfo.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Configuration actualResponse = client.updateConfigurationAsync(configuration, updateMask).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 updateConfigurationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Configuration configuration = + Configuration.newBuilder() + .setName( + ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString()) + .setDisplayName("displayName1714148973") + .setProduct(ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString()) + .setLicenseType(LicenseType.forNumber(0)) + .setCurrentBillingInfo(BillingInfo.newBuilder().build()) + .setNextBillingInfo(BillingInfo.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateConfigurationAsync(configuration, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteConfigurationTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteConfigurationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ConfigurationName name = ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]"); + + client.deleteConfigurationAsync(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 deleteConfigurationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ConfigurationName name = ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]"); + client.deleteConfigurationAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteConfigurationTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteConfigurationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-7171/locations/location-7171/configurations/configuration-7171"; + + client.deleteConfigurationAsync(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 deleteConfigurationExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-7171/locations/location-7171/configurations/configuration-7171"; + client.deleteConfigurationAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listInstancesTest() throws Exception { + Instance responsesElement = Instance.newBuilder().build(); + ListInstancesResponse expectedResponse = + ListInstancesResponse.newBuilder() + .setNextPageToken("") + .addAllInstances(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListInstancesPagedResponse pagedListResponse = client.listInstances(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getInstancesList().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 listInstancesExceptionTest() 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.listInstances(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listInstancesTest2() throws Exception { + Instance responsesElement = Instance.newBuilder().build(); + ListInstancesResponse expectedResponse = + ListInstancesResponse.newBuilder() + .setNextPageToken("") + .addAllInstances(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListInstancesPagedResponse pagedListResponse = client.listInstances(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getInstancesList().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 listInstancesExceptionTest2() 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.listInstances(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getInstanceTest() throws Exception { + Instance expectedResponse = + Instance.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setRegion("region-934795532") + .putAllProductActivation(new HashMap()) + .setLicenseVersionId("licenseVersionId748496082") + .setComputeInstance("computeInstance-62629396") + .build(); + mockService.addResponse(expectedResponse); + + InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + + Instance actualResponse = client.getInstance(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 getInstanceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + client.getInstance(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getInstanceTest2() throws Exception { + Instance expectedResponse = + Instance.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setRegion("region-934795532") + .putAllProductActivation(new HashMap()) + .setLicenseVersionId("licenseVersionId748496082") + .setComputeInstance("computeInstance-62629396") + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-9412/locations/location-9412/instances/instance-9412"; + + Instance actualResponse = client.getInstance(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 getInstanceExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-9412/locations/location-9412/instances/instance-9412"; + client.getInstance(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deactivateConfigurationTest() throws Exception { + Configuration expectedResponse = + Configuration.newBuilder() + .setName(ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString()) + .setDisplayName("displayName1714148973") + .setProduct(ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString()) + .setLicenseType(LicenseType.forNumber(0)) + .setCurrentBillingInfo(BillingInfo.newBuilder().build()) + .setNextBillingInfo(BillingInfo.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deactivateConfigurationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ConfigurationName name = ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]"); + + Configuration actualResponse = client.deactivateConfigurationAsync(name).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 deactivateConfigurationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ConfigurationName name = ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]"); + client.deactivateConfigurationAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deactivateConfigurationTest2() throws Exception { + Configuration expectedResponse = + Configuration.newBuilder() + .setName(ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString()) + .setDisplayName("displayName1714148973") + .setProduct(ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString()) + .setLicenseType(LicenseType.forNumber(0)) + .setCurrentBillingInfo(BillingInfo.newBuilder().build()) + .setNextBillingInfo(BillingInfo.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deactivateConfigurationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-7171/locations/location-7171/configurations/configuration-7171"; + + Configuration actualResponse = client.deactivateConfigurationAsync(name).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 deactivateConfigurationExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-7171/locations/location-7171/configurations/configuration-7171"; + client.deactivateConfigurationAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void reactivateConfigurationTest() throws Exception { + Configuration expectedResponse = + Configuration.newBuilder() + .setName(ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString()) + .setDisplayName("displayName1714148973") + .setProduct(ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString()) + .setLicenseType(LicenseType.forNumber(0)) + .setCurrentBillingInfo(BillingInfo.newBuilder().build()) + .setNextBillingInfo(BillingInfo.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("reactivateConfigurationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ConfigurationName name = ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]"); + + Configuration actualResponse = client.reactivateConfigurationAsync(name).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 reactivateConfigurationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ConfigurationName name = ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]"); + client.reactivateConfigurationAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void reactivateConfigurationTest2() throws Exception { + Configuration expectedResponse = + Configuration.newBuilder() + .setName(ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString()) + .setDisplayName("displayName1714148973") + .setProduct(ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString()) + .setLicenseType(LicenseType.forNumber(0)) + .setCurrentBillingInfo(BillingInfo.newBuilder().build()) + .setNextBillingInfo(BillingInfo.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("reactivateConfigurationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-7171/locations/location-7171/configurations/configuration-7171"; + + Configuration actualResponse = client.reactivateConfigurationAsync(name).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 reactivateConfigurationExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-7171/locations/location-7171/configurations/configuration-7171"; + client.reactivateConfigurationAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void queryConfigurationLicenseUsageTest() throws Exception { + QueryConfigurationLicenseUsageResponse expectedResponse = + QueryConfigurationLicenseUsageResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + ConfigurationName name = ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]"); + Timestamp startTime = Timestamp.newBuilder().build(); + Timestamp endTime = Timestamp.newBuilder().build(); + + QueryConfigurationLicenseUsageResponse actualResponse = + client.queryConfigurationLicenseUsage(name, startTime, endTime); + 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 queryConfigurationLicenseUsageExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ConfigurationName name = ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]"); + Timestamp startTime = Timestamp.newBuilder().build(); + Timestamp endTime = Timestamp.newBuilder().build(); + client.queryConfigurationLicenseUsage(name, startTime, endTime); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryConfigurationLicenseUsageTest2() throws Exception { + QueryConfigurationLicenseUsageResponse expectedResponse = + QueryConfigurationLicenseUsageResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-7171/locations/location-7171/configurations/configuration-7171"; + Timestamp startTime = Timestamp.newBuilder().build(); + Timestamp endTime = Timestamp.newBuilder().build(); + + QueryConfigurationLicenseUsageResponse actualResponse = + client.queryConfigurationLicenseUsage(name, startTime, endTime); + 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 queryConfigurationLicenseUsageExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-7171/locations/location-7171/configurations/configuration-7171"; + Timestamp startTime = Timestamp.newBuilder().build(); + Timestamp endTime = Timestamp.newBuilder().build(); + client.queryConfigurationLicenseUsage(name, startTime, endTime); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void aggregateUsageTest() throws Exception { + Usage responsesElement = Usage.newBuilder().build(); + AggregateUsageResponse expectedResponse = + AggregateUsageResponse.newBuilder() + .setNextPageToken("") + .addAllUsages(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ConfigurationName name = ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]"); + Timestamp startTime = Timestamp.newBuilder().build(); + Timestamp endTime = Timestamp.newBuilder().build(); + + AggregateUsagePagedResponse pagedListResponse = client.aggregateUsage(name, startTime, endTime); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getUsagesList().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 aggregateUsageExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ConfigurationName name = ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]"); + Timestamp startTime = Timestamp.newBuilder().build(); + Timestamp endTime = Timestamp.newBuilder().build(); + client.aggregateUsage(name, startTime, endTime); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void aggregateUsageTest2() throws Exception { + Usage responsesElement = Usage.newBuilder().build(); + AggregateUsageResponse expectedResponse = + AggregateUsageResponse.newBuilder() + .setNextPageToken("") + .addAllUsages(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-7171/locations/location-7171/configurations/configuration-7171"; + Timestamp startTime = Timestamp.newBuilder().build(); + Timestamp endTime = Timestamp.newBuilder().build(); + + AggregateUsagePagedResponse pagedListResponse = client.aggregateUsage(name, startTime, endTime); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getUsagesList().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 aggregateUsageExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-7171/locations/location-7171/configurations/configuration-7171"; + Timestamp startTime = Timestamp.newBuilder().build(); + Timestamp endTime = Timestamp.newBuilder().build(); + client.aggregateUsage(name, startTime, endTime); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listProductsTest() throws Exception { + Product responsesElement = Product.newBuilder().build(); + ListProductsResponse expectedResponse = + ListProductsResponse.newBuilder() + .setNextPageToken("") + .addAllProducts(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListProductsPagedResponse pagedListResponse = client.listProducts(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getProductsList().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 listProductsExceptionTest() 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.listProducts(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listProductsTest2() throws Exception { + Product responsesElement = Product.newBuilder().build(); + ListProductsResponse expectedResponse = + ListProductsResponse.newBuilder() + .setNextPageToken("") + .addAllProducts(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListProductsPagedResponse pagedListResponse = client.listProducts(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getProductsList().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 listProductsExceptionTest2() 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.listProducts(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getProductTest() throws Exception { + Product expectedResponse = + Product.newBuilder() + .setName(ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString()) + .setVersion("version351608024") + .setProductCompany("productCompany816671886") + .setSku("sku113949") + .setDescription("description-1724546052") + .setDisplayName("displayName1714148973") + .build(); + mockService.addResponse(expectedResponse); + + ProductName name = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]"); + + Product actualResponse = client.getProduct(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 getProductExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProductName name = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]"); + client.getProduct(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getProductTest2() throws Exception { + Product expectedResponse = + Product.newBuilder() + .setName(ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString()) + .setVersion("version351608024") + .setProductCompany("productCompany816671886") + .setSku("sku113949") + .setDescription("description-1724546052") + .setDisplayName("displayName1714148973") + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-4324/locations/location-4324/products/product-4324"; + + Product actualResponse = client.getProduct(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 getProductExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-4324/locations/location-4324/products/product-4324"; + client.getProduct(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().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 listLocationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + + Location actualResponse = client.getLocation(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 getLocationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-licensemanager/google-cloud-licensemanager/src/test/java/com/google/cloud/licensemanager/v1/LicenseManagerClientTest.java b/java-licensemanager/google-cloud-licensemanager/src/test/java/com/google/cloud/licensemanager/v1/LicenseManagerClientTest.java new file mode 100644 index 000000000000..f0567af83500 --- /dev/null +++ b/java-licensemanager/google-cloud-licensemanager/src/test/java/com/google/cloud/licensemanager/v1/LicenseManagerClientTest.java @@ -0,0 +1,1403 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1; + +import static com.google.cloud.licensemanager.v1.LicenseManagerClient.AggregateUsagePagedResponse; +import static com.google.cloud.licensemanager.v1.LicenseManagerClient.ListConfigurationsPagedResponse; +import static com.google.cloud.licensemanager.v1.LicenseManagerClient.ListInstancesPagedResponse; +import static com.google.cloud.licensemanager.v1.LicenseManagerClient.ListLocationsPagedResponse; +import static com.google.cloud.licensemanager.v1.LicenseManagerClient.ListProductsPagedResponse; + +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.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +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.FieldMask; +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 LicenseManagerClientTest { + private static MockLicenseManager mockLicenseManager; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private LicenseManagerClient client; + + @BeforeClass + public static void startStaticServer() { + mockLicenseManager = new MockLicenseManager(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockLicenseManager, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + LicenseManagerSettings settings = + LicenseManagerSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = LicenseManagerClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void listConfigurationsTest() throws Exception { + Configuration responsesElement = Configuration.newBuilder().build(); + ListConfigurationsResponse expectedResponse = + ListConfigurationsResponse.newBuilder() + .setNextPageToken("") + .addAllConfigurations(Arrays.asList(responsesElement)) + .build(); + mockLicenseManager.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListConfigurationsPagedResponse pagedListResponse = client.listConfigurations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getConfigurationsList().get(0), resources.get(0)); + + List actualRequests = mockLicenseManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListConfigurationsRequest actualRequest = ((ListConfigurationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listConfigurationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLicenseManager.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listConfigurations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listConfigurationsTest2() throws Exception { + Configuration responsesElement = Configuration.newBuilder().build(); + ListConfigurationsResponse expectedResponse = + ListConfigurationsResponse.newBuilder() + .setNextPageToken("") + .addAllConfigurations(Arrays.asList(responsesElement)) + .build(); + mockLicenseManager.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListConfigurationsPagedResponse pagedListResponse = client.listConfigurations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getConfigurationsList().get(0), resources.get(0)); + + List actualRequests = mockLicenseManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListConfigurationsRequest actualRequest = ((ListConfigurationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listConfigurationsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLicenseManager.addException(exception); + + try { + String parent = "parent-995424086"; + client.listConfigurations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getConfigurationTest() throws Exception { + Configuration expectedResponse = + Configuration.newBuilder() + .setName(ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString()) + .setDisplayName("displayName1714148973") + .setProduct(ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString()) + .setLicenseType(LicenseType.forNumber(0)) + .setCurrentBillingInfo(BillingInfo.newBuilder().build()) + .setNextBillingInfo(BillingInfo.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockLicenseManager.addResponse(expectedResponse); + + ConfigurationName name = ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]"); + + Configuration actualResponse = client.getConfiguration(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLicenseManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetConfigurationRequest actualRequest = ((GetConfigurationRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getConfigurationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLicenseManager.addException(exception); + + try { + ConfigurationName name = ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]"); + client.getConfiguration(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getConfigurationTest2() throws Exception { + Configuration expectedResponse = + Configuration.newBuilder() + .setName(ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString()) + .setDisplayName("displayName1714148973") + .setProduct(ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString()) + .setLicenseType(LicenseType.forNumber(0)) + .setCurrentBillingInfo(BillingInfo.newBuilder().build()) + .setNextBillingInfo(BillingInfo.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockLicenseManager.addResponse(expectedResponse); + + String name = "name3373707"; + + Configuration actualResponse = client.getConfiguration(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLicenseManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetConfigurationRequest actualRequest = ((GetConfigurationRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getConfigurationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLicenseManager.addException(exception); + + try { + String name = "name3373707"; + client.getConfiguration(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createConfigurationTest() throws Exception { + Configuration expectedResponse = + Configuration.newBuilder() + .setName(ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString()) + .setDisplayName("displayName1714148973") + .setProduct(ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString()) + .setLicenseType(LicenseType.forNumber(0)) + .setCurrentBillingInfo(BillingInfo.newBuilder().build()) + .setNextBillingInfo(BillingInfo.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createConfigurationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockLicenseManager.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Configuration configuration = Configuration.newBuilder().build(); + String configurationId = "configurationId1948915889"; + + Configuration actualResponse = + client.createConfigurationAsync(parent, configuration, configurationId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLicenseManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateConfigurationRequest actualRequest = ((CreateConfigurationRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(configuration, actualRequest.getConfiguration()); + Assert.assertEquals(configurationId, actualRequest.getConfigurationId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createConfigurationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLicenseManager.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Configuration configuration = Configuration.newBuilder().build(); + String configurationId = "configurationId1948915889"; + client.createConfigurationAsync(parent, configuration, configurationId).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 createConfigurationTest2() throws Exception { + Configuration expectedResponse = + Configuration.newBuilder() + .setName(ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString()) + .setDisplayName("displayName1714148973") + .setProduct(ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString()) + .setLicenseType(LicenseType.forNumber(0)) + .setCurrentBillingInfo(BillingInfo.newBuilder().build()) + .setNextBillingInfo(BillingInfo.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createConfigurationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockLicenseManager.addResponse(resultOperation); + + String parent = "parent-995424086"; + Configuration configuration = Configuration.newBuilder().build(); + String configurationId = "configurationId1948915889"; + + Configuration actualResponse = + client.createConfigurationAsync(parent, configuration, configurationId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLicenseManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateConfigurationRequest actualRequest = ((CreateConfigurationRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(configuration, actualRequest.getConfiguration()); + Assert.assertEquals(configurationId, actualRequest.getConfigurationId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createConfigurationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLicenseManager.addException(exception); + + try { + String parent = "parent-995424086"; + Configuration configuration = Configuration.newBuilder().build(); + String configurationId = "configurationId1948915889"; + client.createConfigurationAsync(parent, configuration, configurationId).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 updateConfigurationTest() throws Exception { + Configuration expectedResponse = + Configuration.newBuilder() + .setName(ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString()) + .setDisplayName("displayName1714148973") + .setProduct(ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString()) + .setLicenseType(LicenseType.forNumber(0)) + .setCurrentBillingInfo(BillingInfo.newBuilder().build()) + .setNextBillingInfo(BillingInfo.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateConfigurationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockLicenseManager.addResponse(resultOperation); + + Configuration configuration = Configuration.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Configuration actualResponse = client.updateConfigurationAsync(configuration, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLicenseManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateConfigurationRequest actualRequest = ((UpdateConfigurationRequest) actualRequests.get(0)); + + Assert.assertEquals(configuration, actualRequest.getConfiguration()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateConfigurationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLicenseManager.addException(exception); + + try { + Configuration configuration = Configuration.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateConfigurationAsync(configuration, updateMask).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 deleteConfigurationTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteConfigurationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockLicenseManager.addResponse(resultOperation); + + ConfigurationName name = ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]"); + + client.deleteConfigurationAsync(name).get(); + + List actualRequests = mockLicenseManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteConfigurationRequest actualRequest = ((DeleteConfigurationRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteConfigurationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLicenseManager.addException(exception); + + try { + ConfigurationName name = ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]"); + client.deleteConfigurationAsync(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 deleteConfigurationTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteConfigurationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockLicenseManager.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteConfigurationAsync(name).get(); + + List actualRequests = mockLicenseManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteConfigurationRequest actualRequest = ((DeleteConfigurationRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteConfigurationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLicenseManager.addException(exception); + + try { + String name = "name3373707"; + client.deleteConfigurationAsync(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 listInstancesTest() throws Exception { + Instance responsesElement = Instance.newBuilder().build(); + ListInstancesResponse expectedResponse = + ListInstancesResponse.newBuilder() + .setNextPageToken("") + .addAllInstances(Arrays.asList(responsesElement)) + .build(); + mockLicenseManager.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListInstancesPagedResponse pagedListResponse = client.listInstances(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getInstancesList().get(0), resources.get(0)); + + List actualRequests = mockLicenseManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListInstancesRequest actualRequest = ((ListInstancesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listInstancesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLicenseManager.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listInstances(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listInstancesTest2() throws Exception { + Instance responsesElement = Instance.newBuilder().build(); + ListInstancesResponse expectedResponse = + ListInstancesResponse.newBuilder() + .setNextPageToken("") + .addAllInstances(Arrays.asList(responsesElement)) + .build(); + mockLicenseManager.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListInstancesPagedResponse pagedListResponse = client.listInstances(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getInstancesList().get(0), resources.get(0)); + + List actualRequests = mockLicenseManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListInstancesRequest actualRequest = ((ListInstancesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listInstancesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLicenseManager.addException(exception); + + try { + String parent = "parent-995424086"; + client.listInstances(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getInstanceTest() throws Exception { + Instance expectedResponse = + Instance.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setRegion("region-934795532") + .putAllProductActivation(new HashMap()) + .setLicenseVersionId("licenseVersionId748496082") + .setComputeInstance("computeInstance-62629396") + .build(); + mockLicenseManager.addResponse(expectedResponse); + + InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + + Instance actualResponse = client.getInstance(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLicenseManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetInstanceRequest actualRequest = ((GetInstanceRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getInstanceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLicenseManager.addException(exception); + + try { + InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + client.getInstance(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getInstanceTest2() throws Exception { + Instance expectedResponse = + Instance.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setRegion("region-934795532") + .putAllProductActivation(new HashMap()) + .setLicenseVersionId("licenseVersionId748496082") + .setComputeInstance("computeInstance-62629396") + .build(); + mockLicenseManager.addResponse(expectedResponse); + + String name = "name3373707"; + + Instance actualResponse = client.getInstance(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLicenseManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetInstanceRequest actualRequest = ((GetInstanceRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getInstanceExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLicenseManager.addException(exception); + + try { + String name = "name3373707"; + client.getInstance(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deactivateConfigurationTest() throws Exception { + Configuration expectedResponse = + Configuration.newBuilder() + .setName(ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString()) + .setDisplayName("displayName1714148973") + .setProduct(ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString()) + .setLicenseType(LicenseType.forNumber(0)) + .setCurrentBillingInfo(BillingInfo.newBuilder().build()) + .setNextBillingInfo(BillingInfo.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deactivateConfigurationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockLicenseManager.addResponse(resultOperation); + + ConfigurationName name = ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]"); + + Configuration actualResponse = client.deactivateConfigurationAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLicenseManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeactivateConfigurationRequest actualRequest = + ((DeactivateConfigurationRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deactivateConfigurationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLicenseManager.addException(exception); + + try { + ConfigurationName name = ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]"); + client.deactivateConfigurationAsync(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 deactivateConfigurationTest2() throws Exception { + Configuration expectedResponse = + Configuration.newBuilder() + .setName(ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString()) + .setDisplayName("displayName1714148973") + .setProduct(ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString()) + .setLicenseType(LicenseType.forNumber(0)) + .setCurrentBillingInfo(BillingInfo.newBuilder().build()) + .setNextBillingInfo(BillingInfo.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deactivateConfigurationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockLicenseManager.addResponse(resultOperation); + + String name = "name3373707"; + + Configuration actualResponse = client.deactivateConfigurationAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLicenseManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeactivateConfigurationRequest actualRequest = + ((DeactivateConfigurationRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deactivateConfigurationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLicenseManager.addException(exception); + + try { + String name = "name3373707"; + client.deactivateConfigurationAsync(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 reactivateConfigurationTest() throws Exception { + Configuration expectedResponse = + Configuration.newBuilder() + .setName(ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString()) + .setDisplayName("displayName1714148973") + .setProduct(ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString()) + .setLicenseType(LicenseType.forNumber(0)) + .setCurrentBillingInfo(BillingInfo.newBuilder().build()) + .setNextBillingInfo(BillingInfo.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("reactivateConfigurationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockLicenseManager.addResponse(resultOperation); + + ConfigurationName name = ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]"); + + Configuration actualResponse = client.reactivateConfigurationAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLicenseManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ReactivateConfigurationRequest actualRequest = + ((ReactivateConfigurationRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void reactivateConfigurationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLicenseManager.addException(exception); + + try { + ConfigurationName name = ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]"); + client.reactivateConfigurationAsync(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 reactivateConfigurationTest2() throws Exception { + Configuration expectedResponse = + Configuration.newBuilder() + .setName(ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString()) + .setDisplayName("displayName1714148973") + .setProduct(ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString()) + .setLicenseType(LicenseType.forNumber(0)) + .setCurrentBillingInfo(BillingInfo.newBuilder().build()) + .setNextBillingInfo(BillingInfo.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("reactivateConfigurationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockLicenseManager.addResponse(resultOperation); + + String name = "name3373707"; + + Configuration actualResponse = client.reactivateConfigurationAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLicenseManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ReactivateConfigurationRequest actualRequest = + ((ReactivateConfigurationRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void reactivateConfigurationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLicenseManager.addException(exception); + + try { + String name = "name3373707"; + client.reactivateConfigurationAsync(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 queryConfigurationLicenseUsageTest() throws Exception { + QueryConfigurationLicenseUsageResponse expectedResponse = + QueryConfigurationLicenseUsageResponse.newBuilder().build(); + mockLicenseManager.addResponse(expectedResponse); + + ConfigurationName name = ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]"); + Timestamp startTime = Timestamp.newBuilder().build(); + Timestamp endTime = Timestamp.newBuilder().build(); + + QueryConfigurationLicenseUsageResponse actualResponse = + client.queryConfigurationLicenseUsage(name, startTime, endTime); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLicenseManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + QueryConfigurationLicenseUsageRequest actualRequest = + ((QueryConfigurationLicenseUsageRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(startTime, actualRequest.getStartTime()); + Assert.assertEquals(endTime, actualRequest.getEndTime()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void queryConfigurationLicenseUsageExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLicenseManager.addException(exception); + + try { + ConfigurationName name = ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]"); + Timestamp startTime = Timestamp.newBuilder().build(); + Timestamp endTime = Timestamp.newBuilder().build(); + client.queryConfigurationLicenseUsage(name, startTime, endTime); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryConfigurationLicenseUsageTest2() throws Exception { + QueryConfigurationLicenseUsageResponse expectedResponse = + QueryConfigurationLicenseUsageResponse.newBuilder().build(); + mockLicenseManager.addResponse(expectedResponse); + + String name = "name3373707"; + Timestamp startTime = Timestamp.newBuilder().build(); + Timestamp endTime = Timestamp.newBuilder().build(); + + QueryConfigurationLicenseUsageResponse actualResponse = + client.queryConfigurationLicenseUsage(name, startTime, endTime); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLicenseManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + QueryConfigurationLicenseUsageRequest actualRequest = + ((QueryConfigurationLicenseUsageRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(startTime, actualRequest.getStartTime()); + Assert.assertEquals(endTime, actualRequest.getEndTime()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void queryConfigurationLicenseUsageExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLicenseManager.addException(exception); + + try { + String name = "name3373707"; + Timestamp startTime = Timestamp.newBuilder().build(); + Timestamp endTime = Timestamp.newBuilder().build(); + client.queryConfigurationLicenseUsage(name, startTime, endTime); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void aggregateUsageTest() throws Exception { + Usage responsesElement = Usage.newBuilder().build(); + AggregateUsageResponse expectedResponse = + AggregateUsageResponse.newBuilder() + .setNextPageToken("") + .addAllUsages(Arrays.asList(responsesElement)) + .build(); + mockLicenseManager.addResponse(expectedResponse); + + ConfigurationName name = ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]"); + Timestamp startTime = Timestamp.newBuilder().build(); + Timestamp endTime = Timestamp.newBuilder().build(); + + AggregateUsagePagedResponse pagedListResponse = client.aggregateUsage(name, startTime, endTime); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getUsagesList().get(0), resources.get(0)); + + List actualRequests = mockLicenseManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + AggregateUsageRequest actualRequest = ((AggregateUsageRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(startTime, actualRequest.getStartTime()); + Assert.assertEquals(endTime, actualRequest.getEndTime()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void aggregateUsageExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLicenseManager.addException(exception); + + try { + ConfigurationName name = ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]"); + Timestamp startTime = Timestamp.newBuilder().build(); + Timestamp endTime = Timestamp.newBuilder().build(); + client.aggregateUsage(name, startTime, endTime); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void aggregateUsageTest2() throws Exception { + Usage responsesElement = Usage.newBuilder().build(); + AggregateUsageResponse expectedResponse = + AggregateUsageResponse.newBuilder() + .setNextPageToken("") + .addAllUsages(Arrays.asList(responsesElement)) + .build(); + mockLicenseManager.addResponse(expectedResponse); + + String name = "name3373707"; + Timestamp startTime = Timestamp.newBuilder().build(); + Timestamp endTime = Timestamp.newBuilder().build(); + + AggregateUsagePagedResponse pagedListResponse = client.aggregateUsage(name, startTime, endTime); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getUsagesList().get(0), resources.get(0)); + + List actualRequests = mockLicenseManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + AggregateUsageRequest actualRequest = ((AggregateUsageRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(startTime, actualRequest.getStartTime()); + Assert.assertEquals(endTime, actualRequest.getEndTime()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void aggregateUsageExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLicenseManager.addException(exception); + + try { + String name = "name3373707"; + Timestamp startTime = Timestamp.newBuilder().build(); + Timestamp endTime = Timestamp.newBuilder().build(); + client.aggregateUsage(name, startTime, endTime); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listProductsTest() throws Exception { + Product responsesElement = Product.newBuilder().build(); + ListProductsResponse expectedResponse = + ListProductsResponse.newBuilder() + .setNextPageToken("") + .addAllProducts(Arrays.asList(responsesElement)) + .build(); + mockLicenseManager.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListProductsPagedResponse pagedListResponse = client.listProducts(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getProductsList().get(0), resources.get(0)); + + List actualRequests = mockLicenseManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListProductsRequest actualRequest = ((ListProductsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listProductsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLicenseManager.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listProducts(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listProductsTest2() throws Exception { + Product responsesElement = Product.newBuilder().build(); + ListProductsResponse expectedResponse = + ListProductsResponse.newBuilder() + .setNextPageToken("") + .addAllProducts(Arrays.asList(responsesElement)) + .build(); + mockLicenseManager.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListProductsPagedResponse pagedListResponse = client.listProducts(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getProductsList().get(0), resources.get(0)); + + List actualRequests = mockLicenseManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListProductsRequest actualRequest = ((ListProductsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listProductsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLicenseManager.addException(exception); + + try { + String parent = "parent-995424086"; + client.listProducts(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getProductTest() throws Exception { + Product expectedResponse = + Product.newBuilder() + .setName(ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString()) + .setVersion("version351608024") + .setProductCompany("productCompany816671886") + .setSku("sku113949") + .setDescription("description-1724546052") + .setDisplayName("displayName1714148973") + .build(); + mockLicenseManager.addResponse(expectedResponse); + + ProductName name = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]"); + + Product actualResponse = client.getProduct(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLicenseManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetProductRequest actualRequest = ((GetProductRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getProductExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLicenseManager.addException(exception); + + try { + ProductName name = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]"); + client.getProduct(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getProductTest2() throws Exception { + Product expectedResponse = + Product.newBuilder() + .setName(ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString()) + .setVersion("version351608024") + .setProductCompany("productCompany816671886") + .setSku("sku113949") + .setDescription("description-1724546052") + .setDisplayName("displayName1714148973") + .build(); + mockLicenseManager.addResponse(expectedResponse); + + String name = "name3373707"; + + Product actualResponse = client.getProduct(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLicenseManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetProductRequest actualRequest = ((GetProductRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getProductExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLicenseManager.addException(exception); + + try { + String name = "name3373707"; + client.getProduct(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockLocations.addResponse(expectedResponse); + + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLocationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-licensemanager/google-cloud-licensemanager/src/test/java/com/google/cloud/licensemanager/v1/MockLicenseManager.java b/java-licensemanager/google-cloud-licensemanager/src/test/java/com/google/cloud/licensemanager/v1/MockLicenseManager.java new file mode 100644 index 000000000000..335ccc196ffd --- /dev/null +++ b/java-licensemanager/google-cloud-licensemanager/src/test/java/com/google/cloud/licensemanager/v1/MockLicenseManager.java @@ -0,0 +1,59 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1; + +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 MockLicenseManager implements MockGrpcService { + private final MockLicenseManagerImpl serviceImpl; + + public MockLicenseManager() { + serviceImpl = new MockLicenseManagerImpl(); + } + + @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-licensemanager/google-cloud-licensemanager/src/test/java/com/google/cloud/licensemanager/v1/MockLicenseManagerImpl.java b/java-licensemanager/google-cloud-licensemanager/src/test/java/com/google/cloud/licensemanager/v1/MockLicenseManagerImpl.java new file mode 100644 index 000000000000..ddc1f0c3a2fb --- /dev/null +++ b/java-licensemanager/google-cloud-licensemanager/src/test/java/com/google/cloud/licensemanager/v1/MockLicenseManagerImpl.java @@ -0,0 +1,337 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.licensemanager.v1.LicenseManagerGrpc.LicenseManagerImplBase; +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 MockLicenseManagerImpl extends LicenseManagerImplBase { + private List requests; + private Queue responses; + + public MockLicenseManagerImpl() { + 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 listConfigurations( + ListConfigurationsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListConfigurationsResponse) { + requests.add(request); + responseObserver.onNext(((ListConfigurationsResponse) 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 ListConfigurations, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListConfigurationsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getConfiguration( + GetConfigurationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Configuration) { + requests.add(request); + responseObserver.onNext(((Configuration) 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 GetConfiguration, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Configuration.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createConfiguration( + CreateConfigurationRequest 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 CreateConfiguration, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateConfiguration( + UpdateConfigurationRequest 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 UpdateConfiguration, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteConfiguration( + DeleteConfigurationRequest 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 DeleteConfiguration, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listInstances( + ListInstancesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListInstancesResponse) { + requests.add(request); + responseObserver.onNext(((ListInstancesResponse) 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 ListInstances, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListInstancesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getInstance(GetInstanceRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Instance) { + requests.add(request); + responseObserver.onNext(((Instance) 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 GetInstance, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Instance.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deactivateConfiguration( + DeactivateConfigurationRequest 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 DeactivateConfiguration, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void reactivateConfiguration( + ReactivateConfigurationRequest 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 ReactivateConfiguration, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void queryConfigurationLicenseUsage( + QueryConfigurationLicenseUsageRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof QueryConfigurationLicenseUsageResponse) { + requests.add(request); + responseObserver.onNext(((QueryConfigurationLicenseUsageResponse) 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 QueryConfigurationLicenseUsage," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + QueryConfigurationLicenseUsageResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void aggregateUsage( + AggregateUsageRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AggregateUsageResponse) { + requests.add(request); + responseObserver.onNext(((AggregateUsageResponse) 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 AggregateUsage, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AggregateUsageResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listProducts( + ListProductsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListProductsResponse) { + requests.add(request); + responseObserver.onNext(((ListProductsResponse) 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 ListProducts, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListProductsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getProduct(GetProductRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Product) { + requests.add(request); + responseObserver.onNext(((Product) 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 GetProduct, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Product.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-licensemanager/google-cloud-licensemanager/src/test/java/com/google/cloud/licensemanager/v1/MockLocations.java b/java-licensemanager/google-cloud-licensemanager/src/test/java/com/google/cloud/licensemanager/v1/MockLocations.java new file mode 100644 index 000000000000..76cab2ae6770 --- /dev/null +++ b/java-licensemanager/google-cloud-licensemanager/src/test/java/com/google/cloud/licensemanager/v1/MockLocations.java @@ -0,0 +1,59 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1; + +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 MockLocations implements MockGrpcService { + private final MockLocationsImpl serviceImpl; + + public MockLocations() { + serviceImpl = new MockLocationsImpl(); + } + + @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-licensemanager/google-cloud-licensemanager/src/test/java/com/google/cloud/licensemanager/v1/MockLocationsImpl.java b/java-licensemanager/google-cloud-licensemanager/src/test/java/com/google/cloud/licensemanager/v1/MockLocationsImpl.java new file mode 100644 index 000000000000..861dd471f108 --- /dev/null +++ b/java-licensemanager/google-cloud-licensemanager/src/test/java/com/google/cloud/licensemanager/v1/MockLocationsImpl.java @@ -0,0 +1,105 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.location.LocationsGrpc.LocationsImplBase; +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 MockLocationsImpl extends LocationsImplBase { + private List requests; + private Queue responses; + + public MockLocationsImpl() { + 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 listLocations( + ListLocationsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListLocationsResponse) { + requests.add(request); + responseObserver.onNext(((ListLocationsResponse) 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 ListLocations, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListLocationsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getLocation(GetLocationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Location) { + requests.add(request); + responseObserver.onNext(((Location) 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 GetLocation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Location.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-licensemanager/grpc-google-cloud-licensemanager-v1/pom.xml b/java-licensemanager/grpc-google-cloud-licensemanager-v1/pom.xml new file mode 100644 index 000000000000..73946b588164 --- /dev/null +++ b/java-licensemanager/grpc-google-cloud-licensemanager-v1/pom.xml @@ -0,0 +1,45 @@ + + 4.0.0 + com.google.api.grpc + grpc-google-cloud-licensemanager-v1 + 0.1.0 + grpc-google-cloud-licensemanager-v1 + GRPC library for google-cloud-licensemanager + + com.google.cloud + google-cloud-licensemanager-parent + 0.1.0 + + + + io.grpc + grpc-api + + + io.grpc + grpc-stub + + + io.grpc + grpc-protobuf + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-common-protos + + + com.google.api.grpc + proto-google-cloud-licensemanager-v1 + + + com.google.guava + guava + + + diff --git a/java-licensemanager/grpc-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/LicenseManagerGrpc.java b/java-licensemanager/grpc-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/LicenseManagerGrpc.java new file mode 100644 index 000000000000..164c909a497d --- /dev/null +++ b/java-licensemanager/grpc-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/LicenseManagerGrpc.java @@ -0,0 +1,2023 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Service describing handlers for resources
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/licensemanager/v1/licensemanager.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class LicenseManagerGrpc { + + private LicenseManagerGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.licensemanager.v1.LicenseManager"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.licensemanager.v1.ListConfigurationsRequest, + com.google.cloud.licensemanager.v1.ListConfigurationsResponse> + getListConfigurationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListConfigurations", + requestType = com.google.cloud.licensemanager.v1.ListConfigurationsRequest.class, + responseType = com.google.cloud.licensemanager.v1.ListConfigurationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.licensemanager.v1.ListConfigurationsRequest, + com.google.cloud.licensemanager.v1.ListConfigurationsResponse> + getListConfigurationsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.licensemanager.v1.ListConfigurationsRequest, + com.google.cloud.licensemanager.v1.ListConfigurationsResponse> + getListConfigurationsMethod; + if ((getListConfigurationsMethod = LicenseManagerGrpc.getListConfigurationsMethod) == null) { + synchronized (LicenseManagerGrpc.class) { + if ((getListConfigurationsMethod = LicenseManagerGrpc.getListConfigurationsMethod) + == null) { + LicenseManagerGrpc.getListConfigurationsMethod = + getListConfigurationsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListConfigurations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.licensemanager.v1.ListConfigurationsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.licensemanager.v1.ListConfigurationsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new LicenseManagerMethodDescriptorSupplier("ListConfigurations")) + .build(); + } + } + } + return getListConfigurationsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.licensemanager.v1.GetConfigurationRequest, + com.google.cloud.licensemanager.v1.Configuration> + getGetConfigurationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetConfiguration", + requestType = com.google.cloud.licensemanager.v1.GetConfigurationRequest.class, + responseType = com.google.cloud.licensemanager.v1.Configuration.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.licensemanager.v1.GetConfigurationRequest, + com.google.cloud.licensemanager.v1.Configuration> + getGetConfigurationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.licensemanager.v1.GetConfigurationRequest, + com.google.cloud.licensemanager.v1.Configuration> + getGetConfigurationMethod; + if ((getGetConfigurationMethod = LicenseManagerGrpc.getGetConfigurationMethod) == null) { + synchronized (LicenseManagerGrpc.class) { + if ((getGetConfigurationMethod = LicenseManagerGrpc.getGetConfigurationMethod) == null) { + LicenseManagerGrpc.getGetConfigurationMethod = + getGetConfigurationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConfiguration")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.licensemanager.v1.GetConfigurationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.licensemanager.v1.Configuration + .getDefaultInstance())) + .setSchemaDescriptor( + new LicenseManagerMethodDescriptorSupplier("GetConfiguration")) + .build(); + } + } + } + return getGetConfigurationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.licensemanager.v1.CreateConfigurationRequest, + com.google.longrunning.Operation> + getCreateConfigurationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateConfiguration", + requestType = com.google.cloud.licensemanager.v1.CreateConfigurationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.licensemanager.v1.CreateConfigurationRequest, + com.google.longrunning.Operation> + getCreateConfigurationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.licensemanager.v1.CreateConfigurationRequest, + com.google.longrunning.Operation> + getCreateConfigurationMethod; + if ((getCreateConfigurationMethod = LicenseManagerGrpc.getCreateConfigurationMethod) == null) { + synchronized (LicenseManagerGrpc.class) { + if ((getCreateConfigurationMethod = LicenseManagerGrpc.getCreateConfigurationMethod) + == null) { + LicenseManagerGrpc.getCreateConfigurationMethod = + getCreateConfigurationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateConfiguration")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.licensemanager.v1.CreateConfigurationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new LicenseManagerMethodDescriptorSupplier("CreateConfiguration")) + .build(); + } + } + } + return getCreateConfigurationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.licensemanager.v1.UpdateConfigurationRequest, + com.google.longrunning.Operation> + getUpdateConfigurationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateConfiguration", + requestType = com.google.cloud.licensemanager.v1.UpdateConfigurationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.licensemanager.v1.UpdateConfigurationRequest, + com.google.longrunning.Operation> + getUpdateConfigurationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.licensemanager.v1.UpdateConfigurationRequest, + com.google.longrunning.Operation> + getUpdateConfigurationMethod; + if ((getUpdateConfigurationMethod = LicenseManagerGrpc.getUpdateConfigurationMethod) == null) { + synchronized (LicenseManagerGrpc.class) { + if ((getUpdateConfigurationMethod = LicenseManagerGrpc.getUpdateConfigurationMethod) + == null) { + LicenseManagerGrpc.getUpdateConfigurationMethod = + getUpdateConfigurationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateConfiguration")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.licensemanager.v1.UpdateConfigurationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new LicenseManagerMethodDescriptorSupplier("UpdateConfiguration")) + .build(); + } + } + } + return getUpdateConfigurationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.licensemanager.v1.DeleteConfigurationRequest, + com.google.longrunning.Operation> + getDeleteConfigurationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteConfiguration", + requestType = com.google.cloud.licensemanager.v1.DeleteConfigurationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.licensemanager.v1.DeleteConfigurationRequest, + com.google.longrunning.Operation> + getDeleteConfigurationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.licensemanager.v1.DeleteConfigurationRequest, + com.google.longrunning.Operation> + getDeleteConfigurationMethod; + if ((getDeleteConfigurationMethod = LicenseManagerGrpc.getDeleteConfigurationMethod) == null) { + synchronized (LicenseManagerGrpc.class) { + if ((getDeleteConfigurationMethod = LicenseManagerGrpc.getDeleteConfigurationMethod) + == null) { + LicenseManagerGrpc.getDeleteConfigurationMethod = + getDeleteConfigurationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteConfiguration")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.licensemanager.v1.DeleteConfigurationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new LicenseManagerMethodDescriptorSupplier("DeleteConfiguration")) + .build(); + } + } + } + return getDeleteConfigurationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.licensemanager.v1.ListInstancesRequest, + com.google.cloud.licensemanager.v1.ListInstancesResponse> + getListInstancesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListInstances", + requestType = com.google.cloud.licensemanager.v1.ListInstancesRequest.class, + responseType = com.google.cloud.licensemanager.v1.ListInstancesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.licensemanager.v1.ListInstancesRequest, + com.google.cloud.licensemanager.v1.ListInstancesResponse> + getListInstancesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.licensemanager.v1.ListInstancesRequest, + com.google.cloud.licensemanager.v1.ListInstancesResponse> + getListInstancesMethod; + if ((getListInstancesMethod = LicenseManagerGrpc.getListInstancesMethod) == null) { + synchronized (LicenseManagerGrpc.class) { + if ((getListInstancesMethod = LicenseManagerGrpc.getListInstancesMethod) == null) { + LicenseManagerGrpc.getListInstancesMethod = + getListInstancesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListInstances")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.licensemanager.v1.ListInstancesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.licensemanager.v1.ListInstancesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new LicenseManagerMethodDescriptorSupplier("ListInstances")) + .build(); + } + } + } + return getListInstancesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.licensemanager.v1.GetInstanceRequest, + com.google.cloud.licensemanager.v1.Instance> + getGetInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetInstance", + requestType = com.google.cloud.licensemanager.v1.GetInstanceRequest.class, + responseType = com.google.cloud.licensemanager.v1.Instance.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.licensemanager.v1.GetInstanceRequest, + com.google.cloud.licensemanager.v1.Instance> + getGetInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.licensemanager.v1.GetInstanceRequest, + com.google.cloud.licensemanager.v1.Instance> + getGetInstanceMethod; + if ((getGetInstanceMethod = LicenseManagerGrpc.getGetInstanceMethod) == null) { + synchronized (LicenseManagerGrpc.class) { + if ((getGetInstanceMethod = LicenseManagerGrpc.getGetInstanceMethod) == null) { + LicenseManagerGrpc.getGetInstanceMethod = + getGetInstanceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.licensemanager.v1.GetInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.licensemanager.v1.Instance.getDefaultInstance())) + .setSchemaDescriptor( + new LicenseManagerMethodDescriptorSupplier("GetInstance")) + .build(); + } + } + } + return getGetInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest, + com.google.longrunning.Operation> + getDeactivateConfigurationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeactivateConfiguration", + requestType = com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest, + com.google.longrunning.Operation> + getDeactivateConfigurationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest, + com.google.longrunning.Operation> + getDeactivateConfigurationMethod; + if ((getDeactivateConfigurationMethod = LicenseManagerGrpc.getDeactivateConfigurationMethod) + == null) { + synchronized (LicenseManagerGrpc.class) { + if ((getDeactivateConfigurationMethod = LicenseManagerGrpc.getDeactivateConfigurationMethod) + == null) { + LicenseManagerGrpc.getDeactivateConfigurationMethod = + getDeactivateConfigurationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeactivateConfiguration")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new LicenseManagerMethodDescriptorSupplier("DeactivateConfiguration")) + .build(); + } + } + } + return getDeactivateConfigurationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest, + com.google.longrunning.Operation> + getReactivateConfigurationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ReactivateConfiguration", + requestType = com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest, + com.google.longrunning.Operation> + getReactivateConfigurationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest, + com.google.longrunning.Operation> + getReactivateConfigurationMethod; + if ((getReactivateConfigurationMethod = LicenseManagerGrpc.getReactivateConfigurationMethod) + == null) { + synchronized (LicenseManagerGrpc.class) { + if ((getReactivateConfigurationMethod = LicenseManagerGrpc.getReactivateConfigurationMethod) + == null) { + LicenseManagerGrpc.getReactivateConfigurationMethod = + getReactivateConfigurationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ReactivateConfiguration")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new LicenseManagerMethodDescriptorSupplier("ReactivateConfiguration")) + .build(); + } + } + } + return getReactivateConfigurationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest, + com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse> + getQueryConfigurationLicenseUsageMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "QueryConfigurationLicenseUsage", + requestType = com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest.class, + responseType = + com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest, + com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse> + getQueryConfigurationLicenseUsageMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest, + com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse> + getQueryConfigurationLicenseUsageMethod; + if ((getQueryConfigurationLicenseUsageMethod = + LicenseManagerGrpc.getQueryConfigurationLicenseUsageMethod) + == null) { + synchronized (LicenseManagerGrpc.class) { + if ((getQueryConfigurationLicenseUsageMethod = + LicenseManagerGrpc.getQueryConfigurationLicenseUsageMethod) + == null) { + LicenseManagerGrpc.getQueryConfigurationLicenseUsageMethod = + getQueryConfigurationLicenseUsageMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "QueryConfigurationLicenseUsage")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.licensemanager.v1 + .QueryConfigurationLicenseUsageRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.licensemanager.v1 + .QueryConfigurationLicenseUsageResponse.getDefaultInstance())) + .setSchemaDescriptor( + new LicenseManagerMethodDescriptorSupplier( + "QueryConfigurationLicenseUsage")) + .build(); + } + } + } + return getQueryConfigurationLicenseUsageMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.licensemanager.v1.AggregateUsageRequest, + com.google.cloud.licensemanager.v1.AggregateUsageResponse> + getAggregateUsageMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "AggregateUsage", + requestType = com.google.cloud.licensemanager.v1.AggregateUsageRequest.class, + responseType = com.google.cloud.licensemanager.v1.AggregateUsageResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.licensemanager.v1.AggregateUsageRequest, + com.google.cloud.licensemanager.v1.AggregateUsageResponse> + getAggregateUsageMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.licensemanager.v1.AggregateUsageRequest, + com.google.cloud.licensemanager.v1.AggregateUsageResponse> + getAggregateUsageMethod; + if ((getAggregateUsageMethod = LicenseManagerGrpc.getAggregateUsageMethod) == null) { + synchronized (LicenseManagerGrpc.class) { + if ((getAggregateUsageMethod = LicenseManagerGrpc.getAggregateUsageMethod) == null) { + LicenseManagerGrpc.getAggregateUsageMethod = + getAggregateUsageMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AggregateUsage")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.licensemanager.v1.AggregateUsageRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.licensemanager.v1.AggregateUsageResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new LicenseManagerMethodDescriptorSupplier("AggregateUsage")) + .build(); + } + } + } + return getAggregateUsageMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.licensemanager.v1.ListProductsRequest, + com.google.cloud.licensemanager.v1.ListProductsResponse> + getListProductsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListProducts", + requestType = com.google.cloud.licensemanager.v1.ListProductsRequest.class, + responseType = com.google.cloud.licensemanager.v1.ListProductsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.licensemanager.v1.ListProductsRequest, + com.google.cloud.licensemanager.v1.ListProductsResponse> + getListProductsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.licensemanager.v1.ListProductsRequest, + com.google.cloud.licensemanager.v1.ListProductsResponse> + getListProductsMethod; + if ((getListProductsMethod = LicenseManagerGrpc.getListProductsMethod) == null) { + synchronized (LicenseManagerGrpc.class) { + if ((getListProductsMethod = LicenseManagerGrpc.getListProductsMethod) == null) { + LicenseManagerGrpc.getListProductsMethod = + getListProductsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListProducts")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.licensemanager.v1.ListProductsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.licensemanager.v1.ListProductsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new LicenseManagerMethodDescriptorSupplier("ListProducts")) + .build(); + } + } + } + return getListProductsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.licensemanager.v1.GetProductRequest, + com.google.cloud.licensemanager.v1.Product> + getGetProductMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetProduct", + requestType = com.google.cloud.licensemanager.v1.GetProductRequest.class, + responseType = com.google.cloud.licensemanager.v1.Product.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.licensemanager.v1.GetProductRequest, + com.google.cloud.licensemanager.v1.Product> + getGetProductMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.licensemanager.v1.GetProductRequest, + com.google.cloud.licensemanager.v1.Product> + getGetProductMethod; + if ((getGetProductMethod = LicenseManagerGrpc.getGetProductMethod) == null) { + synchronized (LicenseManagerGrpc.class) { + if ((getGetProductMethod = LicenseManagerGrpc.getGetProductMethod) == null) { + LicenseManagerGrpc.getGetProductMethod = + getGetProductMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetProduct")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.licensemanager.v1.GetProductRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.licensemanager.v1.Product.getDefaultInstance())) + .setSchemaDescriptor(new LicenseManagerMethodDescriptorSupplier("GetProduct")) + .build(); + } + } + } + return getGetProductMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static LicenseManagerStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public LicenseManagerStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LicenseManagerStub(channel, callOptions); + } + }; + return LicenseManagerStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static LicenseManagerBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public LicenseManagerBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LicenseManagerBlockingV2Stub(channel, callOptions); + } + }; + return LicenseManagerBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static LicenseManagerBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public LicenseManagerBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LicenseManagerBlockingStub(channel, callOptions); + } + }; + return LicenseManagerBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static LicenseManagerFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public LicenseManagerFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LicenseManagerFutureStub(channel, callOptions); + } + }; + return LicenseManagerFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service describing handlers for resources
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Lists Configurations in a given project and location.
+     * 
+ */ + default void listConfigurations( + com.google.cloud.licensemanager.v1.ListConfigurationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListConfigurationsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Configuration.
+     * 
+ */ + default void getConfiguration( + com.google.cloud.licensemanager.v1.GetConfigurationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetConfigurationMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new Configuration in a given project and location.
+     * 
+ */ + default void createConfiguration( + com.google.cloud.licensemanager.v1.CreateConfigurationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateConfigurationMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a single Configuration.
+     * 
+ */ + default void updateConfiguration( + com.google.cloud.licensemanager.v1.UpdateConfigurationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateConfigurationMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a single Configuration.
+     * 
+ */ + default void deleteConfiguration( + com.google.cloud.licensemanager.v1.DeleteConfigurationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteConfigurationMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists Instances in a given project and location.
+     * 
+ */ + default void listInstances( + com.google.cloud.licensemanager.v1.ListInstancesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListInstancesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Instance.
+     * 
+ */ + default void getInstance( + com.google.cloud.licensemanager.v1.GetInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * Deactivates the given configuration.
+     * 
+ */ + default void deactivateConfiguration( + com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeactivateConfigurationMethod(), responseObserver); + } + + /** + * + * + *
+     * Reactivates the given configuration.
+     * 
+ */ + default void reactivateConfiguration( + com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getReactivateConfigurationMethod(), responseObserver); + } + + /** + * + * + *
+     * License Usage information for a Configuration.
+     * 
+ */ + default void queryConfigurationLicenseUsage( + com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getQueryConfigurationLicenseUsageMethod(), responseObserver); + } + + /** + * + * + *
+     * Aggregates Usage per Instance for a Configuration.
+     * 
+ */ + default void aggregateUsage( + com.google.cloud.licensemanager.v1.AggregateUsageRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getAggregateUsageMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists Products in a given project and location.
+     * 
+ */ + default void listProducts( + com.google.cloud.licensemanager.v1.ListProductsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListProductsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Product.
+     * 
+ */ + default void getProduct( + com.google.cloud.licensemanager.v1.GetProductRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetProductMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service LicenseManager. + * + *
+   * Service describing handlers for resources
+   * 
+ */ + public abstract static class LicenseManagerImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return LicenseManagerGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service LicenseManager. + * + *
+   * Service describing handlers for resources
+   * 
+ */ + public static final class LicenseManagerStub + extends io.grpc.stub.AbstractAsyncStub { + private LicenseManagerStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected LicenseManagerStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LicenseManagerStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Configurations in a given project and location.
+     * 
+ */ + public void listConfigurations( + com.google.cloud.licensemanager.v1.ListConfigurationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListConfigurationsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Configuration.
+     * 
+ */ + public void getConfiguration( + com.google.cloud.licensemanager.v1.GetConfigurationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetConfigurationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new Configuration in a given project and location.
+     * 
+ */ + public void createConfiguration( + com.google.cloud.licensemanager.v1.CreateConfigurationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateConfigurationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a single Configuration.
+     * 
+ */ + public void updateConfiguration( + com.google.cloud.licensemanager.v1.UpdateConfigurationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateConfigurationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a single Configuration.
+     * 
+ */ + public void deleteConfiguration( + com.google.cloud.licensemanager.v1.DeleteConfigurationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteConfigurationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists Instances in a given project and location.
+     * 
+ */ + public void listInstances( + com.google.cloud.licensemanager.v1.ListInstancesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListInstancesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Instance.
+     * 
+ */ + public void getInstance( + com.google.cloud.licensemanager.v1.GetInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deactivates the given configuration.
+     * 
+ */ + public void deactivateConfiguration( + com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeactivateConfigurationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Reactivates the given configuration.
+     * 
+ */ + public void reactivateConfiguration( + com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getReactivateConfigurationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * License Usage information for a Configuration.
+     * 
+ */ + public void queryConfigurationLicenseUsage( + com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getQueryConfigurationLicenseUsageMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Aggregates Usage per Instance for a Configuration.
+     * 
+ */ + public void aggregateUsage( + com.google.cloud.licensemanager.v1.AggregateUsageRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getAggregateUsageMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists Products in a given project and location.
+     * 
+ */ + public void listProducts( + com.google.cloud.licensemanager.v1.ListProductsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListProductsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Product.
+     * 
+ */ + public void getProduct( + com.google.cloud.licensemanager.v1.GetProductRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetProductMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service LicenseManager. + * + *
+   * Service describing handlers for resources
+   * 
+ */ + public static final class LicenseManagerBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private LicenseManagerBlockingV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected LicenseManagerBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LicenseManagerBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Configurations in a given project and location.
+     * 
+ */ + public com.google.cloud.licensemanager.v1.ListConfigurationsResponse listConfigurations( + com.google.cloud.licensemanager.v1.ListConfigurationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListConfigurationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single Configuration.
+     * 
+ */ + public com.google.cloud.licensemanager.v1.Configuration getConfiguration( + com.google.cloud.licensemanager.v1.GetConfigurationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetConfigurationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new Configuration in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createConfiguration( + com.google.cloud.licensemanager.v1.CreateConfigurationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateConfigurationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the parameters of a single Configuration.
+     * 
+ */ + public com.google.longrunning.Operation updateConfiguration( + com.google.cloud.licensemanager.v1.UpdateConfigurationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateConfigurationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single Configuration.
+     * 
+ */ + public com.google.longrunning.Operation deleteConfiguration( + com.google.cloud.licensemanager.v1.DeleteConfigurationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteConfigurationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists Instances in a given project and location.
+     * 
+ */ + public com.google.cloud.licensemanager.v1.ListInstancesResponse listInstances( + com.google.cloud.licensemanager.v1.ListInstancesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListInstancesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single Instance.
+     * 
+ */ + public com.google.cloud.licensemanager.v1.Instance getInstance( + com.google.cloud.licensemanager.v1.GetInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deactivates the given configuration.
+     * 
+ */ + public com.google.longrunning.Operation deactivateConfiguration( + com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeactivateConfigurationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Reactivates the given configuration.
+     * 
+ */ + public com.google.longrunning.Operation reactivateConfiguration( + com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getReactivateConfigurationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * License Usage information for a Configuration.
+     * 
+ */ + public com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse + queryConfigurationLicenseUsage( + com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getQueryConfigurationLicenseUsageMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Aggregates Usage per Instance for a Configuration.
+     * 
+ */ + public com.google.cloud.licensemanager.v1.AggregateUsageResponse aggregateUsage( + com.google.cloud.licensemanager.v1.AggregateUsageRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAggregateUsageMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists Products in a given project and location.
+     * 
+ */ + public com.google.cloud.licensemanager.v1.ListProductsResponse listProducts( + com.google.cloud.licensemanager.v1.ListProductsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListProductsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single Product.
+     * 
+ */ + public com.google.cloud.licensemanager.v1.Product getProduct( + com.google.cloud.licensemanager.v1.GetProductRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetProductMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service LicenseManager. + * + *
+   * Service describing handlers for resources
+   * 
+ */ + public static final class LicenseManagerBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private LicenseManagerBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected LicenseManagerBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LicenseManagerBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Configurations in a given project and location.
+     * 
+ */ + public com.google.cloud.licensemanager.v1.ListConfigurationsResponse listConfigurations( + com.google.cloud.licensemanager.v1.ListConfigurationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListConfigurationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single Configuration.
+     * 
+ */ + public com.google.cloud.licensemanager.v1.Configuration getConfiguration( + com.google.cloud.licensemanager.v1.GetConfigurationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetConfigurationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new Configuration in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createConfiguration( + com.google.cloud.licensemanager.v1.CreateConfigurationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateConfigurationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the parameters of a single Configuration.
+     * 
+ */ + public com.google.longrunning.Operation updateConfiguration( + com.google.cloud.licensemanager.v1.UpdateConfigurationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateConfigurationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single Configuration.
+     * 
+ */ + public com.google.longrunning.Operation deleteConfiguration( + com.google.cloud.licensemanager.v1.DeleteConfigurationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteConfigurationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists Instances in a given project and location.
+     * 
+ */ + public com.google.cloud.licensemanager.v1.ListInstancesResponse listInstances( + com.google.cloud.licensemanager.v1.ListInstancesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListInstancesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single Instance.
+     * 
+ */ + public com.google.cloud.licensemanager.v1.Instance getInstance( + com.google.cloud.licensemanager.v1.GetInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deactivates the given configuration.
+     * 
+ */ + public com.google.longrunning.Operation deactivateConfiguration( + com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeactivateConfigurationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Reactivates the given configuration.
+     * 
+ */ + public com.google.longrunning.Operation reactivateConfiguration( + com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getReactivateConfigurationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * License Usage information for a Configuration.
+     * 
+ */ + public com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse + queryConfigurationLicenseUsage( + com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getQueryConfigurationLicenseUsageMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Aggregates Usage per Instance for a Configuration.
+     * 
+ */ + public com.google.cloud.licensemanager.v1.AggregateUsageResponse aggregateUsage( + com.google.cloud.licensemanager.v1.AggregateUsageRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAggregateUsageMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists Products in a given project and location.
+     * 
+ */ + public com.google.cloud.licensemanager.v1.ListProductsResponse listProducts( + com.google.cloud.licensemanager.v1.ListProductsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListProductsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single Product.
+     * 
+ */ + public com.google.cloud.licensemanager.v1.Product getProduct( + com.google.cloud.licensemanager.v1.GetProductRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetProductMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service LicenseManager. + * + *
+   * Service describing handlers for resources
+   * 
+ */ + public static final class LicenseManagerFutureStub + extends io.grpc.stub.AbstractFutureStub { + private LicenseManagerFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected LicenseManagerFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LicenseManagerFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Configurations in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.licensemanager.v1.ListConfigurationsResponse> + listConfigurations(com.google.cloud.licensemanager.v1.ListConfigurationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListConfigurationsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of a single Configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.licensemanager.v1.Configuration> + getConfiguration(com.google.cloud.licensemanager.v1.GetConfigurationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetConfigurationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new Configuration in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createConfiguration(com.google.cloud.licensemanager.v1.CreateConfigurationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateConfigurationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the parameters of a single Configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateConfiguration(com.google.cloud.licensemanager.v1.UpdateConfigurationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateConfigurationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a single Configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteConfiguration(com.google.cloud.licensemanager.v1.DeleteConfigurationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteConfigurationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists Instances in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.licensemanager.v1.ListInstancesResponse> + listInstances(com.google.cloud.licensemanager.v1.ListInstancesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListInstancesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of a single Instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.licensemanager.v1.Instance> + getInstance(com.google.cloud.licensemanager.v1.GetInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deactivates the given configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deactivateConfiguration( + com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeactivateConfigurationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Reactivates the given configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + reactivateConfiguration( + com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getReactivateConfigurationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * License Usage information for a Configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse> + queryConfigurationLicenseUsage( + com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getQueryConfigurationLicenseUsageMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Aggregates Usage per Instance for a Configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.licensemanager.v1.AggregateUsageResponse> + aggregateUsage(com.google.cloud.licensemanager.v1.AggregateUsageRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getAggregateUsageMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists Products in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.licensemanager.v1.ListProductsResponse> + listProducts(com.google.cloud.licensemanager.v1.ListProductsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListProductsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of a single Product.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.licensemanager.v1.Product> + getProduct(com.google.cloud.licensemanager.v1.GetProductRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetProductMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_CONFIGURATIONS = 0; + private static final int METHODID_GET_CONFIGURATION = 1; + private static final int METHODID_CREATE_CONFIGURATION = 2; + private static final int METHODID_UPDATE_CONFIGURATION = 3; + private static final int METHODID_DELETE_CONFIGURATION = 4; + private static final int METHODID_LIST_INSTANCES = 5; + private static final int METHODID_GET_INSTANCE = 6; + private static final int METHODID_DEACTIVATE_CONFIGURATION = 7; + private static final int METHODID_REACTIVATE_CONFIGURATION = 8; + private static final int METHODID_QUERY_CONFIGURATION_LICENSE_USAGE = 9; + private static final int METHODID_AGGREGATE_USAGE = 10; + private static final int METHODID_LIST_PRODUCTS = 11; + private static final int METHODID_GET_PRODUCT = 12; + + 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_LIST_CONFIGURATIONS: + serviceImpl.listConfigurations( + (com.google.cloud.licensemanager.v1.ListConfigurationsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.licensemanager.v1.ListConfigurationsResponse>) + responseObserver); + break; + case METHODID_GET_CONFIGURATION: + serviceImpl.getConfiguration( + (com.google.cloud.licensemanager.v1.GetConfigurationRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_CONFIGURATION: + serviceImpl.createConfiguration( + (com.google.cloud.licensemanager.v1.CreateConfigurationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CONFIGURATION: + serviceImpl.updateConfiguration( + (com.google.cloud.licensemanager.v1.UpdateConfigurationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_CONFIGURATION: + serviceImpl.deleteConfiguration( + (com.google.cloud.licensemanager.v1.DeleteConfigurationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_INSTANCES: + serviceImpl.listInstances( + (com.google.cloud.licensemanager.v1.ListInstancesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.licensemanager.v1.ListInstancesResponse>) + responseObserver); + break; + case METHODID_GET_INSTANCE: + serviceImpl.getInstance( + (com.google.cloud.licensemanager.v1.GetInstanceRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DEACTIVATE_CONFIGURATION: + serviceImpl.deactivateConfiguration( + (com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_REACTIVATE_CONFIGURATION: + serviceImpl.reactivateConfiguration( + (com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_QUERY_CONFIGURATION_LICENSE_USAGE: + serviceImpl.queryConfigurationLicenseUsage( + (com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse>) + responseObserver); + break; + case METHODID_AGGREGATE_USAGE: + serviceImpl.aggregateUsage( + (com.google.cloud.licensemanager.v1.AggregateUsageRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.licensemanager.v1.AggregateUsageResponse>) + responseObserver); + break; + case METHODID_LIST_PRODUCTS: + serviceImpl.listProducts( + (com.google.cloud.licensemanager.v1.ListProductsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_PRODUCT: + serviceImpl.getProduct( + (com.google.cloud.licensemanager.v1.GetProductRequest) 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( + getListConfigurationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.licensemanager.v1.ListConfigurationsRequest, + com.google.cloud.licensemanager.v1.ListConfigurationsResponse>( + service, METHODID_LIST_CONFIGURATIONS))) + .addMethod( + getGetConfigurationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.licensemanager.v1.GetConfigurationRequest, + com.google.cloud.licensemanager.v1.Configuration>( + service, METHODID_GET_CONFIGURATION))) + .addMethod( + getCreateConfigurationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.licensemanager.v1.CreateConfigurationRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_CONFIGURATION))) + .addMethod( + getUpdateConfigurationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.licensemanager.v1.UpdateConfigurationRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_CONFIGURATION))) + .addMethod( + getDeleteConfigurationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.licensemanager.v1.DeleteConfigurationRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_CONFIGURATION))) + .addMethod( + getListInstancesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.licensemanager.v1.ListInstancesRequest, + com.google.cloud.licensemanager.v1.ListInstancesResponse>( + service, METHODID_LIST_INSTANCES))) + .addMethod( + getGetInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.licensemanager.v1.GetInstanceRequest, + com.google.cloud.licensemanager.v1.Instance>(service, METHODID_GET_INSTANCE))) + .addMethod( + getDeactivateConfigurationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest, + com.google.longrunning.Operation>(service, METHODID_DEACTIVATE_CONFIGURATION))) + .addMethod( + getReactivateConfigurationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest, + com.google.longrunning.Operation>(service, METHODID_REACTIVATE_CONFIGURATION))) + .addMethod( + getQueryConfigurationLicenseUsageMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest, + com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse>( + service, METHODID_QUERY_CONFIGURATION_LICENSE_USAGE))) + .addMethod( + getAggregateUsageMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.licensemanager.v1.AggregateUsageRequest, + com.google.cloud.licensemanager.v1.AggregateUsageResponse>( + service, METHODID_AGGREGATE_USAGE))) + .addMethod( + getListProductsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.licensemanager.v1.ListProductsRequest, + com.google.cloud.licensemanager.v1.ListProductsResponse>( + service, METHODID_LIST_PRODUCTS))) + .addMethod( + getGetProductMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.licensemanager.v1.GetProductRequest, + com.google.cloud.licensemanager.v1.Product>(service, METHODID_GET_PRODUCT))) + .build(); + } + + private abstract static class LicenseManagerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + LicenseManagerBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("LicenseManager"); + } + } + + private static final class LicenseManagerFileDescriptorSupplier + extends LicenseManagerBaseDescriptorSupplier { + LicenseManagerFileDescriptorSupplier() {} + } + + private static final class LicenseManagerMethodDescriptorSupplier + extends LicenseManagerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + LicenseManagerMethodDescriptorSupplier(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 (LicenseManagerGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new LicenseManagerFileDescriptorSupplier()) + .addMethod(getListConfigurationsMethod()) + .addMethod(getGetConfigurationMethod()) + .addMethod(getCreateConfigurationMethod()) + .addMethod(getUpdateConfigurationMethod()) + .addMethod(getDeleteConfigurationMethod()) + .addMethod(getListInstancesMethod()) + .addMethod(getGetInstanceMethod()) + .addMethod(getDeactivateConfigurationMethod()) + .addMethod(getReactivateConfigurationMethod()) + .addMethod(getQueryConfigurationLicenseUsageMethod()) + .addMethod(getAggregateUsageMethod()) + .addMethod(getListProductsMethod()) + .addMethod(getGetProductMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-licensemanager/owlbot.py b/java-licensemanager/owlbot.py new file mode 100644 index 000000000000..2ba11e6bba67 --- /dev/null +++ b/java-licensemanager/owlbot.py @@ -0,0 +1,36 @@ +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import synthtool as s +from synthtool.languages import java + + +for library in s.get_staging_dirs(): + # put any special-case replacements here + s.move(library) + +s.remove_staging_dirs() +java.common_templates(monorepo=True, excludes=[ + ".github/*", + ".kokoro/*", + "samples/*", + "CODE_OF_CONDUCT.md", + "CONTRIBUTING.md", + "LICENSE", + "SECURITY.md", + "java.header", + "license-checks.xml", + "renovate.json", + ".gitignore" +]) \ No newline at end of file diff --git a/java-licensemanager/pom.xml b/java-licensemanager/pom.xml new file mode 100644 index 000000000000..3d33ee3f9309 --- /dev/null +++ b/java-licensemanager/pom.xml @@ -0,0 +1,55 @@ + + + 4.0.0 + com.google.cloud + google-cloud-licensemanager-parent + pom + 0.1.0 + Google License Manager API Parent + + Java idiomatic client for Google Cloud Platform services. + + + + com.google.cloud + google-cloud-jar-parent + 1.62.0 + ../google-cloud-jar-parent/pom.xml + + + + UTF-8 + UTF-8 + github + google-cloud-licensemanager-parent + + + + + + com.google.cloud + google-cloud-licensemanager + 0.1.0 + + + com.google.api.grpc + grpc-google-cloud-licensemanager-v1 + 0.1.0 + + + com.google.api.grpc + proto-google-cloud-licensemanager-v1 + 0.1.0 + + + + + + + google-cloud-licensemanager + grpc-google-cloud-licensemanager-v1 + proto-google-cloud-licensemanager-v1 + google-cloud-licensemanager-bom + + + diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/clirr-ignored-differences.xml b/java-licensemanager/proto-google-cloud-licensemanager-v1/clirr-ignored-differences.xml new file mode 100644 index 000000000000..b49429f62f1b --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/clirr-ignored-differences.xml @@ -0,0 +1,80 @@ + + + + + 7012 + com/google/cloud/licensemanager/v1/*OrBuilder + * get*(*) + + + 7012 + com/google/cloud/licensemanager/v1/*OrBuilder + boolean contains*(*) + + + 7012 + com/google/cloud/licensemanager/v1/*OrBuilder + boolean has*(*) + + + + 7006 + com/google/cloud/licensemanager/v1/** + * getDefaultInstanceForType() + ** + + + 7006 + com/google/cloud/licensemanager/v1/** + * addRepeatedField(*) + ** + + + 7006 + com/google/cloud/licensemanager/v1/** + * clear() + ** + + + 7006 + com/google/cloud/licensemanager/v1/** + * clearField(*) + ** + + + 7006 + com/google/cloud/licensemanager/v1/** + * clearOneof(*) + ** + + + 7006 + com/google/cloud/licensemanager/v1/** + * clone() + ** + + + 7006 + com/google/cloud/licensemanager/v1/** + * mergeUnknownFields(*) + ** + + + 7006 + com/google/cloud/licensemanager/v1/** + * setField(*) + ** + + + 7006 + com/google/cloud/licensemanager/v1/** + * setRepeatedField(*) + ** + + + 7006 + com/google/cloud/licensemanager/v1/** + * setUnknownFields(*) + ** + + diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/pom.xml b/java-licensemanager/proto-google-cloud-licensemanager-v1/pom.xml new file mode 100644 index 000000000000..8685b16ffb4e --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/pom.xml @@ -0,0 +1,37 @@ + + 4.0.0 + com.google.api.grpc + proto-google-cloud-licensemanager-v1 + 0.1.0 + proto-google-cloud-licensemanager-v1 + Proto library for google-cloud-licensemanager + + com.google.cloud + google-cloud-licensemanager-parent + 0.1.0 + + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-common-protos + + + com.google.api.grpc + proto-google-iam-v1 + + + com.google.api + api-common + + + com.google.guava + guava + + + diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ActivationState.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ActivationState.java new file mode 100644 index 000000000000..20f967e13731 --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ActivationState.java @@ -0,0 +1,273 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/api_entities.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +/** + * + * + *
+ * State of the License Key activation on the instance.
+ * 
+ * + * Protobuf enum {@code google.cloud.licensemanager.v1.ActivationState} + */ +public enum ActivationState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * The Status of the activation is unspecified
+   * 
+ * + * ACTIVATION_STATE_UNSPECIFIED = 0; + */ + ACTIVATION_STATE_UNSPECIFIED(0), + /** + * + * + *
+   * Activation key (MAK) requested for the instance.
+   * 
+ * + * ACTIVATION_STATE_KEY_REQUESTED = 1; + */ + ACTIVATION_STATE_KEY_REQUESTED(1), + /** + * + * + *
+   * License activation process is running on the instance.
+   * 
+ * + * ACTIVATION_STATE_ACTIVATING = 2; + */ + ACTIVATION_STATE_ACTIVATING(2), + /** + * + * + *
+   * License activation is complete on the instance.
+   * 
+ * + * ACTIVATION_STATE_ACTIVATED = 3; + */ + ACTIVATION_STATE_ACTIVATED(3), + /** + * + * + *
+   * License Key is deactivating on the instance.
+   * 
+ * + * ACTIVATION_STATE_DEACTIVATING = 4; + */ + ACTIVATION_STATE_DEACTIVATING(4), + /** + * + * + *
+   * License Key is deactivated on the instance.
+   * 
+ * + * ACTIVATION_STATE_DEACTIVATED = 5; + */ + ACTIVATION_STATE_DEACTIVATED(5), + /** + * + * + *
+   * License Key activation failed on the instance.
+   * 
+ * + * ACTIVATION_STATE_TERMINATED = 6; + */ + ACTIVATION_STATE_TERMINATED(6), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * The Status of the activation is unspecified
+   * 
+ * + * ACTIVATION_STATE_UNSPECIFIED = 0; + */ + public static final int ACTIVATION_STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * Activation key (MAK) requested for the instance.
+   * 
+ * + * ACTIVATION_STATE_KEY_REQUESTED = 1; + */ + public static final int ACTIVATION_STATE_KEY_REQUESTED_VALUE = 1; + + /** + * + * + *
+   * License activation process is running on the instance.
+   * 
+ * + * ACTIVATION_STATE_ACTIVATING = 2; + */ + public static final int ACTIVATION_STATE_ACTIVATING_VALUE = 2; + + /** + * + * + *
+   * License activation is complete on the instance.
+   * 
+ * + * ACTIVATION_STATE_ACTIVATED = 3; + */ + public static final int ACTIVATION_STATE_ACTIVATED_VALUE = 3; + + /** + * + * + *
+   * License Key is deactivating on the instance.
+   * 
+ * + * ACTIVATION_STATE_DEACTIVATING = 4; + */ + public static final int ACTIVATION_STATE_DEACTIVATING_VALUE = 4; + + /** + * + * + *
+   * License Key is deactivated on the instance.
+   * 
+ * + * ACTIVATION_STATE_DEACTIVATED = 5; + */ + public static final int ACTIVATION_STATE_DEACTIVATED_VALUE = 5; + + /** + * + * + *
+   * License Key activation failed on the instance.
+   * 
+ * + * ACTIVATION_STATE_TERMINATED = 6; + */ + public static final int ACTIVATION_STATE_TERMINATED_VALUE = 6; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ActivationState 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 ActivationState forNumber(int value) { + switch (value) { + case 0: + return ACTIVATION_STATE_UNSPECIFIED; + case 1: + return ACTIVATION_STATE_KEY_REQUESTED; + case 2: + return ACTIVATION_STATE_ACTIVATING; + case 3: + return ACTIVATION_STATE_ACTIVATED; + case 4: + return ACTIVATION_STATE_DEACTIVATING; + case 5: + return ACTIVATION_STATE_DEACTIVATED; + case 6: + return ACTIVATION_STATE_TERMINATED; + 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 ActivationState findValueByNumber(int number) { + return ActivationState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.ApiEntitiesProto.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final ActivationState[] VALUES = values(); + + public static ActivationState 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 ActivationState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.licensemanager.v1.ActivationState) +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/AggregateUsageRequest.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/AggregateUsageRequest.java new file mode 100644 index 000000000000..3c3b5720222b --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/AggregateUsageRequest.java @@ -0,0 +1,1917 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/licensemanager.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +/** + * + * + *
+ * Message for requesting aggregate of Usage per configuration.
+ * 
+ * + * Protobuf type {@code google.cloud.licensemanager.v1.AggregateUsageRequest} + */ +public final class AggregateUsageRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.licensemanager.v1.AggregateUsageRequest) + AggregateUsageRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use AggregateUsageRequest.newBuilder() to construct. + private AggregateUsageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AggregateUsageRequest() { + name_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AggregateUsageRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_AggregateUsageRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_AggregateUsageRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.AggregateUsageRequest.class, + com.google.cloud.licensemanager.v1.AggregateUsageRequest.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Parent value for AggregateUsageRequest
+   * 
+ * + * + * 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. Parent value for AggregateUsageRequest
+   * 
+ * + * + * 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 = 3; + private int pageSize_ = 0; + + /** + * + * + *
+   * Optional. Requested page size. Server may return fewer items than
+   * requested. If unspecified, server will pick an appropriate default.
+   * 
+ * + * 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 identifying a page of results the server should return.
+   * 
+ * + * 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 identifying a page of results the server should return.
+   * 
+ * + * 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 FILTER_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Optional. Filtering results
+   * 
+ * + * string filter = 5 [(.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 results
+   * 
+ * + * string filter = 5 [(.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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Optional. Hint for how to order the results
+   * 
+ * + * string order_by = 6 [(.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. Hint for how to order the results
+   * 
+ * + * string order_by = 6 [(.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 START_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp startTime_; + + /** + * + * + *
+   * Required. Licenses are purchased per month - so usage track needs start
+   * time of a month.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. Licenses are purchased per month - so usage track needs start
+   * time of a month.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + /** + * + * + *
+   * Required. Licenses are purchased per month - so usage track needs start
+   * time of a month.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + public static final int END_TIME_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp endTime_; + + /** + * + * + *
+   * Required. Usage track is always for a month. This parameter is for the end
+   * time of the month.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Required. Usage track is always for a month. This parameter is for the end
+   * time of the month.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + /** + * + * + *
+   * Required. Usage track is always for a month. This parameter is for the end
+   * time of the month.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, orderBy_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(7, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(8, getEndTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, orderBy_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getEndTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.licensemanager.v1.AggregateUsageRequest)) { + return super.equals(obj); + } + com.google.cloud.licensemanager.v1.AggregateUsageRequest other = + (com.google.cloud.licensemanager.v1.AggregateUsageRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (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 = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.licensemanager.v1.AggregateUsageRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.AggregateUsageRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.AggregateUsageRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.AggregateUsageRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.AggregateUsageRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.AggregateUsageRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.AggregateUsageRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.AggregateUsageRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.AggregateUsageRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.AggregateUsageRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.AggregateUsageRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.AggregateUsageRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.licensemanager.v1.AggregateUsageRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for requesting aggregate of Usage per configuration.
+   * 
+ * + * Protobuf type {@code google.cloud.licensemanager.v1.AggregateUsageRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.licensemanager.v1.AggregateUsageRequest) + com.google.cloud.licensemanager.v1.AggregateUsageRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_AggregateUsageRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_AggregateUsageRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.AggregateUsageRequest.class, + com.google.cloud.licensemanager.v1.AggregateUsageRequest.Builder.class); + } + + // Construct using com.google.cloud.licensemanager.v1.AggregateUsageRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getStartTimeFieldBuilder(); + getEndTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_AggregateUsageRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.AggregateUsageRequest getDefaultInstanceForType() { + return com.google.cloud.licensemanager.v1.AggregateUsageRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.AggregateUsageRequest build() { + com.google.cloud.licensemanager.v1.AggregateUsageRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.AggregateUsageRequest buildPartial() { + com.google.cloud.licensemanager.v1.AggregateUsageRequest result = + new com.google.cloud.licensemanager.v1.AggregateUsageRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.licensemanager.v1.AggregateUsageRequest 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_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.licensemanager.v1.AggregateUsageRequest) { + return mergeFrom((com.google.cloud.licensemanager.v1.AggregateUsageRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.licensemanager.v1.AggregateUsageRequest other) { + if (other == com.google.cloud.licensemanager.v1.AggregateUsageRequest.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(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 24 + case 34: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + case 58: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + 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_ = ""; + + /** + * + * + *
+     * Required. Parent value for AggregateUsageRequest
+     * 
+ * + * + * 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. Parent value for AggregateUsageRequest
+     * 
+ * + * + * 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. Parent value for AggregateUsageRequest
+     * 
+ * + * + * 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. Parent value for AggregateUsageRequest
+     * 
+ * + * + * 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. Parent value for AggregateUsageRequest
+     * 
+ * + * + * 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. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * 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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 3 [(.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 token identifying a page of results the server should return.
+     * 
+ * + * 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 identifying a page of results the server should return.
+     * 
+ * + * 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 identifying a page of results the server should return.
+     * 
+ * + * 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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * 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_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Optional. Filtering results
+     * 
+ * + * string filter = 5 [(.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 results
+     * 
+ * + * string filter = 5 [(.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 results
+     * 
+ * + * string filter = 5 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Filtering results
+     * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Filtering results
+     * 
+ * + * string filter = 5 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Optional. Hint for how to order the results
+     * 
+ * + * string order_by = 6 [(.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. Hint for how to order the results
+     * 
+ * + * string order_by = 6 [(.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. Hint for how to order the results
+     * 
+ * + * string order_by = 6 [(.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. Hint for how to order the results
+     * 
+ * + * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Hint for how to order the results
+     * 
+ * + * string order_by = 6 [(.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 com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + + /** + * + * + *
+     * Required. Licenses are purchased per month - so usage track needs start
+     * time of a month.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Required. Licenses are purchased per month - so usage track needs start
+     * time of a month.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. Licenses are purchased per month - so usage track needs start
+     * time of a month.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Licenses are purchased per month - so usage track needs start
+     * time of a month.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Licenses are purchased per month - so usage track needs start
+     * time of a month.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. Licenses are purchased per month - so usage track needs start
+     * time of a month.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000020); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Licenses are purchased per month - so usage track needs start
+     * time of a month.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. Licenses are purchased per month - so usage track needs start
+     * time of a month.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + + /** + * + * + *
+     * Required. Licenses are purchased per month - so usage track needs start
+     * time of a month.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + + /** + * + * + *
+     * Required. Usage track is always for a month. This parameter is for the end
+     * time of the month.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Required. Usage track is always for a month. This parameter is for the end
+     * time of the month.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. Usage track is always for a month. This parameter is for the end
+     * time of the month.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Usage track is always for a month. This parameter is for the end
+     * time of the month.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Usage track is always for a month. This parameter is for the end
+     * time of the month.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. Usage track is always for a month. This parameter is for the end
+     * time of the month.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000040); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Usage track is always for a month. This parameter is for the end
+     * time of the month.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. Usage track is always for a month. This parameter is for the end
+     * time of the month.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + + /** + * + * + *
+     * Required. Usage track is always for a month. This parameter is for the end
+     * time of the month.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.licensemanager.v1.AggregateUsageRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.licensemanager.v1.AggregateUsageRequest) + private static final com.google.cloud.licensemanager.v1.AggregateUsageRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.licensemanager.v1.AggregateUsageRequest(); + } + + public static com.google.cloud.licensemanager.v1.AggregateUsageRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AggregateUsageRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.AggregateUsageRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/AggregateUsageRequestOrBuilder.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/AggregateUsageRequestOrBuilder.java new file mode 100644 index 000000000000..e2721f7760bb --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/AggregateUsageRequestOrBuilder.java @@ -0,0 +1,231 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/licensemanager.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +public interface AggregateUsageRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.licensemanager.v1.AggregateUsageRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Parent value for AggregateUsageRequest
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Parent value for AggregateUsageRequest
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. Requested page size. Server may return fewer items than
+   * requested. If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. Filtering results
+   * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. Filtering results
+   * 
+ * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. Hint for how to order the results
+   * 
+ * + * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Optional. Hint for how to order the results
+   * 
+ * + * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
+   * Required. Licenses are purchased per month - so usage track needs start
+   * time of a month.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + + /** + * + * + *
+   * Required. Licenses are purchased per month - so usage track needs start
+   * time of a month.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + + /** + * + * + *
+   * Required. Licenses are purchased per month - so usage track needs start
+   * time of a month.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
+   * Required. Usage track is always for a month. This parameter is for the end
+   * time of the month.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + + /** + * + * + *
+   * Required. Usage track is always for a month. This parameter is for the end
+   * time of the month.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + + /** + * + * + *
+   * Required. Usage track is always for a month. This parameter is for the end
+   * time of the month.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/AggregateUsageResponse.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/AggregateUsageResponse.java new file mode 100644 index 000000000000..51264f75a05f --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/AggregateUsageResponse.java @@ -0,0 +1,1439 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/licensemanager.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +/** + * + * + *
+ * Message for response for aggregating usage count
+ * 
+ * + * Protobuf type {@code google.cloud.licensemanager.v1.AggregateUsageResponse} + */ +public final class AggregateUsageResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.licensemanager.v1.AggregateUsageResponse) + AggregateUsageResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use AggregateUsageResponse.newBuilder() to construct. + private AggregateUsageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AggregateUsageResponse() { + usages_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AggregateUsageResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_AggregateUsageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_AggregateUsageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.AggregateUsageResponse.class, + com.google.cloud.licensemanager.v1.AggregateUsageResponse.Builder.class); + } + + public static final int USAGES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List usages_; + + /** + * + * + *
+   * The aggregated records of usage per configuration
+   * 
+ * + * repeated .google.cloud.licensemanager.v1.Usage usages = 1; + */ + @java.lang.Override + public java.util.List getUsagesList() { + return usages_; + } + + /** + * + * + *
+   * The aggregated records of usage per configuration
+   * 
+ * + * repeated .google.cloud.licensemanager.v1.Usage usages = 1; + */ + @java.lang.Override + public java.util.List + getUsagesOrBuilderList() { + return usages_; + } + + /** + * + * + *
+   * The aggregated records of usage per configuration
+   * 
+ * + * repeated .google.cloud.licensemanager.v1.Usage usages = 1; + */ + @java.lang.Override + public int getUsagesCount() { + return usages_.size(); + } + + /** + * + * + *
+   * The aggregated records of usage per configuration
+   * 
+ * + * repeated .google.cloud.licensemanager.v1.Usage usages = 1; + */ + @java.lang.Override + public com.google.cloud.licensemanager.v1.Usage getUsages(int index) { + return usages_.get(index); + } + + /** + * + * + *
+   * The aggregated records of usage per configuration
+   * 
+ * + * repeated .google.cloud.licensemanager.v1.Usage usages = 1; + */ + @java.lang.Override + public com.google.cloud.licensemanager.v1.UsageOrBuilder getUsagesOrBuilder(int index) { + return usages_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * 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 identifying a page of results the server should return.
+   * 
+ * + * 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; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.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 < usages_.size(); i++) { + output.writeMessage(1, usages_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(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 < usages_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, usages_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().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.cloud.licensemanager.v1.AggregateUsageResponse)) { + return super.equals(obj); + } + com.google.cloud.licensemanager.v1.AggregateUsageResponse other = + (com.google.cloud.licensemanager.v1.AggregateUsageResponse) obj; + + if (!getUsagesList().equals(other.getUsagesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getUsagesCount() > 0) { + hash = (37 * hash) + USAGES_FIELD_NUMBER; + hash = (53 * hash) + getUsagesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.licensemanager.v1.AggregateUsageResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.AggregateUsageResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.AggregateUsageResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.AggregateUsageResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.AggregateUsageResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.AggregateUsageResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.AggregateUsageResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.AggregateUsageResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.AggregateUsageResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.AggregateUsageResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.AggregateUsageResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.AggregateUsageResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.licensemanager.v1.AggregateUsageResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for response for aggregating usage count
+   * 
+ * + * Protobuf type {@code google.cloud.licensemanager.v1.AggregateUsageResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.licensemanager.v1.AggregateUsageResponse) + com.google.cloud.licensemanager.v1.AggregateUsageResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_AggregateUsageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_AggregateUsageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.AggregateUsageResponse.class, + com.google.cloud.licensemanager.v1.AggregateUsageResponse.Builder.class); + } + + // Construct using com.google.cloud.licensemanager.v1.AggregateUsageResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (usagesBuilder_ == null) { + usages_ = java.util.Collections.emptyList(); + } else { + usages_ = null; + usagesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_AggregateUsageResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.AggregateUsageResponse getDefaultInstanceForType() { + return com.google.cloud.licensemanager.v1.AggregateUsageResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.AggregateUsageResponse build() { + com.google.cloud.licensemanager.v1.AggregateUsageResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.AggregateUsageResponse buildPartial() { + com.google.cloud.licensemanager.v1.AggregateUsageResponse result = + new com.google.cloud.licensemanager.v1.AggregateUsageResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.licensemanager.v1.AggregateUsageResponse result) { + if (usagesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + usages_ = java.util.Collections.unmodifiableList(usages_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.usages_ = usages_; + } else { + result.usages_ = usagesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.licensemanager.v1.AggregateUsageResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.licensemanager.v1.AggregateUsageResponse) { + return mergeFrom((com.google.cloud.licensemanager.v1.AggregateUsageResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.licensemanager.v1.AggregateUsageResponse other) { + if (other == com.google.cloud.licensemanager.v1.AggregateUsageResponse.getDefaultInstance()) + return this; + if (usagesBuilder_ == null) { + if (!other.usages_.isEmpty()) { + if (usages_.isEmpty()) { + usages_ = other.usages_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureUsagesIsMutable(); + usages_.addAll(other.usages_); + } + onChanged(); + } + } else { + if (!other.usages_.isEmpty()) { + if (usagesBuilder_.isEmpty()) { + usagesBuilder_.dispose(); + usagesBuilder_ = null; + usages_ = other.usages_; + bitField0_ = (bitField0_ & ~0x00000001); + usagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getUsagesFieldBuilder() + : null; + } else { + usagesBuilder_.addAllMessages(other.usages_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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.cloud.licensemanager.v1.Usage m = + input.readMessage( + com.google.cloud.licensemanager.v1.Usage.parser(), extensionRegistry); + if (usagesBuilder_ == null) { + ensureUsagesIsMutable(); + usages_.add(m); + } else { + usagesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List usages_ = + java.util.Collections.emptyList(); + + private void ensureUsagesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + usages_ = new java.util.ArrayList(usages_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.licensemanager.v1.Usage, + com.google.cloud.licensemanager.v1.Usage.Builder, + com.google.cloud.licensemanager.v1.UsageOrBuilder> + usagesBuilder_; + + /** + * + * + *
+     * The aggregated records of usage per configuration
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Usage usages = 1; + */ + public java.util.List getUsagesList() { + if (usagesBuilder_ == null) { + return java.util.Collections.unmodifiableList(usages_); + } else { + return usagesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The aggregated records of usage per configuration
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Usage usages = 1; + */ + public int getUsagesCount() { + if (usagesBuilder_ == null) { + return usages_.size(); + } else { + return usagesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The aggregated records of usage per configuration
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Usage usages = 1; + */ + public com.google.cloud.licensemanager.v1.Usage getUsages(int index) { + if (usagesBuilder_ == null) { + return usages_.get(index); + } else { + return usagesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The aggregated records of usage per configuration
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Usage usages = 1; + */ + public Builder setUsages(int index, com.google.cloud.licensemanager.v1.Usage value) { + if (usagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUsagesIsMutable(); + usages_.set(index, value); + onChanged(); + } else { + usagesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The aggregated records of usage per configuration
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Usage usages = 1; + */ + public Builder setUsages( + int index, com.google.cloud.licensemanager.v1.Usage.Builder builderForValue) { + if (usagesBuilder_ == null) { + ensureUsagesIsMutable(); + usages_.set(index, builderForValue.build()); + onChanged(); + } else { + usagesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The aggregated records of usage per configuration
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Usage usages = 1; + */ + public Builder addUsages(com.google.cloud.licensemanager.v1.Usage value) { + if (usagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUsagesIsMutable(); + usages_.add(value); + onChanged(); + } else { + usagesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The aggregated records of usage per configuration
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Usage usages = 1; + */ + public Builder addUsages(int index, com.google.cloud.licensemanager.v1.Usage value) { + if (usagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUsagesIsMutable(); + usages_.add(index, value); + onChanged(); + } else { + usagesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The aggregated records of usage per configuration
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Usage usages = 1; + */ + public Builder addUsages(com.google.cloud.licensemanager.v1.Usage.Builder builderForValue) { + if (usagesBuilder_ == null) { + ensureUsagesIsMutable(); + usages_.add(builderForValue.build()); + onChanged(); + } else { + usagesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The aggregated records of usage per configuration
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Usage usages = 1; + */ + public Builder addUsages( + int index, com.google.cloud.licensemanager.v1.Usage.Builder builderForValue) { + if (usagesBuilder_ == null) { + ensureUsagesIsMutable(); + usages_.add(index, builderForValue.build()); + onChanged(); + } else { + usagesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The aggregated records of usage per configuration
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Usage usages = 1; + */ + public Builder addAllUsages( + java.lang.Iterable values) { + if (usagesBuilder_ == null) { + ensureUsagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, usages_); + onChanged(); + } else { + usagesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The aggregated records of usage per configuration
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Usage usages = 1; + */ + public Builder clearUsages() { + if (usagesBuilder_ == null) { + usages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + usagesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The aggregated records of usage per configuration
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Usage usages = 1; + */ + public Builder removeUsages(int index) { + if (usagesBuilder_ == null) { + ensureUsagesIsMutable(); + usages_.remove(index); + onChanged(); + } else { + usagesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The aggregated records of usage per configuration
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Usage usages = 1; + */ + public com.google.cloud.licensemanager.v1.Usage.Builder getUsagesBuilder(int index) { + return getUsagesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The aggregated records of usage per configuration
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Usage usages = 1; + */ + public com.google.cloud.licensemanager.v1.UsageOrBuilder getUsagesOrBuilder(int index) { + if (usagesBuilder_ == null) { + return usages_.get(index); + } else { + return usagesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The aggregated records of usage per configuration
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Usage usages = 1; + */ + public java.util.List + getUsagesOrBuilderList() { + if (usagesBuilder_ != null) { + return usagesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(usages_); + } + } + + /** + * + * + *
+     * The aggregated records of usage per configuration
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Usage usages = 1; + */ + public com.google.cloud.licensemanager.v1.Usage.Builder addUsagesBuilder() { + return getUsagesFieldBuilder() + .addBuilder(com.google.cloud.licensemanager.v1.Usage.getDefaultInstance()); + } + + /** + * + * + *
+     * The aggregated records of usage per configuration
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Usage usages = 1; + */ + public com.google.cloud.licensemanager.v1.Usage.Builder addUsagesBuilder(int index) { + return getUsagesFieldBuilder() + .addBuilder(index, com.google.cloud.licensemanager.v1.Usage.getDefaultInstance()); + } + + /** + * + * + *
+     * The aggregated records of usage per configuration
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Usage usages = 1; + */ + public java.util.List getUsagesBuilderList() { + return getUsagesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.licensemanager.v1.Usage, + com.google.cloud.licensemanager.v1.Usage.Builder, + com.google.cloud.licensemanager.v1.UsageOrBuilder> + getUsagesFieldBuilder() { + if (usagesBuilder_ == null) { + usagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.licensemanager.v1.Usage, + com.google.cloud.licensemanager.v1.Usage.Builder, + com.google.cloud.licensemanager.v1.UsageOrBuilder>( + usages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + usages_ = null; + } + return usagesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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 identifying a page of results the server should return.
+     * 
+ * + * 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 identifying a page of results the server should return.
+     * 
+ * + * 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 identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.licensemanager.v1.AggregateUsageResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.licensemanager.v1.AggregateUsageResponse) + private static final com.google.cloud.licensemanager.v1.AggregateUsageResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.licensemanager.v1.AggregateUsageResponse(); + } + + public static com.google.cloud.licensemanager.v1.AggregateUsageResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AggregateUsageResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.AggregateUsageResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/AggregateUsageResponseOrBuilder.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/AggregateUsageResponseOrBuilder.java new file mode 100644 index 000000000000..e9d53c999dfd --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/AggregateUsageResponseOrBuilder.java @@ -0,0 +1,162 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/licensemanager.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +public interface AggregateUsageResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.licensemanager.v1.AggregateUsageResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The aggregated records of usage per configuration
+   * 
+ * + * repeated .google.cloud.licensemanager.v1.Usage usages = 1; + */ + java.util.List getUsagesList(); + + /** + * + * + *
+   * The aggregated records of usage per configuration
+   * 
+ * + * repeated .google.cloud.licensemanager.v1.Usage usages = 1; + */ + com.google.cloud.licensemanager.v1.Usage getUsages(int index); + + /** + * + * + *
+   * The aggregated records of usage per configuration
+   * 
+ * + * repeated .google.cloud.licensemanager.v1.Usage usages = 1; + */ + int getUsagesCount(); + + /** + * + * + *
+   * The aggregated records of usage per configuration
+   * 
+ * + * repeated .google.cloud.licensemanager.v1.Usage usages = 1; + */ + java.util.List + getUsagesOrBuilderList(); + + /** + * + * + *
+   * The aggregated records of usage per configuration
+   * 
+ * + * repeated .google.cloud.licensemanager.v1.Usage usages = 1; + */ + com.google.cloud.licensemanager.v1.UsageOrBuilder getUsagesOrBuilder(int index); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ApiEntitiesProto.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ApiEntitiesProto.java new file mode 100644 index 000000000000..d10bb1c41472 --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ApiEntitiesProto.java @@ -0,0 +1,314 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/api_entities.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +public final class ApiEntitiesProto { + private ApiEntitiesProto() {} + + 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_cloud_licensemanager_v1_Configuration_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_licensemanager_v1_Configuration_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_licensemanager_v1_Configuration_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_licensemanager_v1_Configuration_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_licensemanager_v1_BillingInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_licensemanager_v1_BillingInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_licensemanager_v1_UserCountBillingInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_licensemanager_v1_UserCountBillingInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_licensemanager_v1_UserCountUsage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_licensemanager_v1_UserCountUsage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_licensemanager_v1_Product_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_licensemanager_v1_Product_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_licensemanager_v1_Instance_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_licensemanager_v1_Instance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_licensemanager_v1_Instance_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_licensemanager_v1_Instance_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_licensemanager_v1_Instance_ProductActivationEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_licensemanager_v1_Instance_ProductActivationEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_licensemanager_v1_Usage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_licensemanager_v1_Usage_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" + + "1google/cloud/licensemanager/v1/api_entities.proto\022\036google.cloud.licensemanager" + + ".v1\032\037google/api/field_behavior.proto\032\031go" + + "ogle/api/resource.proto\032\037google/protobuf/timestamp.proto\"\213\007\n\r" + + "Configuration\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" + + "\014display_name\030\005 \001(\tB\003\340A\002\022>\n" + + "\007product\030\006 \001(\tB-\340A\002\372A\'\n" + + "%licensemanager.googleapis.com/Product\022F\n" + + "\014license_type\030\007" + + " \001(\0162+.google.cloud.licensemanager.v1.LicenseTypeB\003\340A\002\022N\n" + + "\024current_billing_info\030\010" + + " \001(\0132+.google.cloud.licensemanager.v1.BillingInfoB\003\340A\002\022K\n" + + "\021next_billing_info\030\t " + + "\001(\0132+.google.cloud.licensemanager.v1.BillingInfoB\003\340A\002\0224\n" + + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022N\n" + + "\006labels\030\004 \003(\01329.google.cloud.license" + + "manager.v1.Configuration.LabelsEntryB\003\340A\001\022G\n" + + "\005state\030\n" + + " \001(\01623.google.cloud.licensemanager.v1.Configuration.StateB\003\340A\003\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"X\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\020\n" + + "\014STATE_ACTIVE\020\001\022\023\n" + + "\017STATE_SUSPENDED\020\002\022\021\n\r" + + "STATE_DELETED\020\003:\230\001\352A\224\001\n" + + "+licensemanager.googleapis.com/Configuration\022Fprojects/{proje" + + "ct}/locations/{location}/configurations/{configuration}*\016configurations2\r" + + "configuration\"\346\001\n" + + "\013BillingInfo\022W\n" + + "\022user_count_billing\030\001" + + " \001(\01324.google.cloud.licensemanager.v1.UserCountBillingInfoB\003\340A\002H\000\0223\n\n" + + "start_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221\n" + + "\010end_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003B\026\n" + + "\024current_billing_info\"/\n" + + "\024UserCountBillingInfo\022\027\n\n" + + "user_count\030\001 \001(\005B\003\340A\002\"0\n" + + "\016UserCountUsage\022\036\n" + + "\021unique_user_count\030\001 \001(\005B\003\340A\002\"\315\003\n" + + "\007Product\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\024\n" + + "\007version\030\002 \001(\tB\003\340A\002\022\034\n" + + "\017product_company\030\003 \001(\tB\003\340A\002\022A\n" + + "\005state\030\004 \001(\0162-.g" + + "oogle.cloud.licensemanager.v1.Product.StateB\003\340A\003\022\020\n" + + "\003sku\030\005 \001(\tB\003\340A\002\022\030\n" + + "\013description\030\006 \001(\tB\003\340A\002\022\031\n" + + "\014display_name\030\007 \001(\tB\003\340A\002\"v\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\026\n" + + "\022STATE_PROVISIONING\020\001\022\021\n\r" + + "STATE_RUNNING\020\002\022\025\n" + + "\021STATE_TERMINATING\020\003\022\024\n" + + "\020STATE_TERMINATED\020\004:y\352Av\n" + + "%licensemanager.googleapis.com/Product\022:projects/{project}/locations/{locat" + + "ion}/products/{product}*\010products2\007product\"\233\007\n" + + "\010Instance\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\0224\n" + + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022I\n" + + "\006labels\030\004 \003(\01324" + + ".google.cloud.licensemanager.v1.Instance.LabelsEntryB\003\340A\001\022B\n" + + "\005state\030\005 \001(\0162..googl" + + "e.cloud.licensemanager.v1.Instance.StateB\003\340A\003\022\023\n" + + "\006region\030\006 \001(\tB\003\340A\003\022`\n" + + "\022product_activation\030\007 \003(\0132?.google.cloud.licenseman" + + "ager.v1.Instance.ProductActivationEntryB\003\340A\003\022\037\n" + + "\022license_version_id\030\010 \001(\tB\003\340A\003\022H\n" + + "\020compute_instance\030\t \001(\tB.\340A\002\372A(\n" + + "&compute.googleapis.com/ComputeInstance\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\032i\n" + + "\026ProductActivationEntry\022\013\n" + + "\003key\030\001 \001(\t\022>\n" + + "\005value\030\002" + + " \001(\0162/.google.cloud.licensemanager.v1.ActivationState:\0028\001\"\204\001\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\020\n" + + "\014PROVISIONING\020\001\022\013\n" + + "\007STAGING\020\002\022\013\n" + + "\007RUNNING\020\003\022\014\n" + + "\010STOPPING\020\004\022\013\n" + + "\007STOPPED\020\005\022\016\n\n" + + "TERMINATED\020\006\022\r\n" + + "\tREPAIRING\020\007:~\352A{\n" + + "&licensemanager.googleapis.com/Ins" + + "tance\022 + * Billing Information. + * + * + * Protobuf type {@code google.cloud.licensemanager.v1.BillingInfo} + */ +public final class BillingInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.licensemanager.v1.BillingInfo) + BillingInfoOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BillingInfo.newBuilder() to construct. + private BillingInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BillingInfo() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BillingInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.ApiEntitiesProto + .internal_static_google_cloud_licensemanager_v1_BillingInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.ApiEntitiesProto + .internal_static_google_cloud_licensemanager_v1_BillingInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.BillingInfo.class, + com.google.cloud.licensemanager.v1.BillingInfo.Builder.class); + } + + private int bitField0_; + private int currentBillingInfoCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object currentBillingInfo_; + + public enum CurrentBillingInfoCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + USER_COUNT_BILLING(1), + CURRENTBILLINGINFO_NOT_SET(0); + private final int value; + + private CurrentBillingInfoCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static CurrentBillingInfoCase valueOf(int value) { + return forNumber(value); + } + + public static CurrentBillingInfoCase forNumber(int value) { + switch (value) { + case 1: + return USER_COUNT_BILLING; + case 0: + return CURRENTBILLINGINFO_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public CurrentBillingInfoCase getCurrentBillingInfoCase() { + return CurrentBillingInfoCase.forNumber(currentBillingInfoCase_); + } + + public static final int USER_COUNT_BILLING_FIELD_NUMBER = 1; + + /** + * + * + *
+   * Required. This type of billing uses user count for computing total
+   * charge.
+   * 
+ * + * + * .google.cloud.licensemanager.v1.UserCountBillingInfo user_count_billing = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the userCountBilling field is set. + */ + @java.lang.Override + public boolean hasUserCountBilling() { + return currentBillingInfoCase_ == 1; + } + + /** + * + * + *
+   * Required. This type of billing uses user count for computing total
+   * charge.
+   * 
+ * + * + * .google.cloud.licensemanager.v1.UserCountBillingInfo user_count_billing = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The userCountBilling. + */ + @java.lang.Override + public com.google.cloud.licensemanager.v1.UserCountBillingInfo getUserCountBilling() { + if (currentBillingInfoCase_ == 1) { + return (com.google.cloud.licensemanager.v1.UserCountBillingInfo) currentBillingInfo_; + } + return com.google.cloud.licensemanager.v1.UserCountBillingInfo.getDefaultInstance(); + } + + /** + * + * + *
+   * Required. This type of billing uses user count for computing total
+   * charge.
+   * 
+ * + * + * .google.cloud.licensemanager.v1.UserCountBillingInfo user_count_billing = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.licensemanager.v1.UserCountBillingInfoOrBuilder + getUserCountBillingOrBuilder() { + if (currentBillingInfoCase_ == 1) { + return (com.google.cloud.licensemanager.v1.UserCountBillingInfo) currentBillingInfo_; + } + return com.google.cloud.licensemanager.v1.UserCountBillingInfo.getDefaultInstance(); + } + + public static final int START_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp startTime_; + + /** + * + * + *
+   * Output only. When the billing starts.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. When the billing starts.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + /** + * + * + *
+   * Output only. When the billing starts.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + public static final int END_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp endTime_; + + /** + * + * + *
+   * Output only. When the billing ends.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. When the billing ends.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + /** + * + * + *
+   * Output only. When the billing ends.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (currentBillingInfoCase_ == 1) { + output.writeMessage( + 1, (com.google.cloud.licensemanager.v1.UserCountBillingInfo) currentBillingInfo_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getEndTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (currentBillingInfoCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.licensemanager.v1.UserCountBillingInfo) currentBillingInfo_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.licensemanager.v1.BillingInfo)) { + return super.equals(obj); + } + com.google.cloud.licensemanager.v1.BillingInfo other = + (com.google.cloud.licensemanager.v1.BillingInfo) obj; + + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getCurrentBillingInfoCase().equals(other.getCurrentBillingInfoCase())) return false; + switch (currentBillingInfoCase_) { + case 1: + if (!getUserCountBilling().equals(other.getUserCountBilling())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + switch (currentBillingInfoCase_) { + case 1: + hash = (37 * hash) + USER_COUNT_BILLING_FIELD_NUMBER; + hash = (53 * hash) + getUserCountBilling().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.licensemanager.v1.BillingInfo parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.BillingInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.BillingInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.BillingInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.BillingInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.BillingInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.BillingInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.BillingInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.BillingInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.BillingInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.BillingInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.BillingInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.licensemanager.v1.BillingInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Billing Information.
+   * 
+ * + * Protobuf type {@code google.cloud.licensemanager.v1.BillingInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.licensemanager.v1.BillingInfo) + com.google.cloud.licensemanager.v1.BillingInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.ApiEntitiesProto + .internal_static_google_cloud_licensemanager_v1_BillingInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.ApiEntitiesProto + .internal_static_google_cloud_licensemanager_v1_BillingInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.BillingInfo.class, + com.google.cloud.licensemanager.v1.BillingInfo.Builder.class); + } + + // Construct using com.google.cloud.licensemanager.v1.BillingInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getStartTimeFieldBuilder(); + getEndTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (userCountBillingBuilder_ != null) { + userCountBillingBuilder_.clear(); + } + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + currentBillingInfoCase_ = 0; + currentBillingInfo_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.licensemanager.v1.ApiEntitiesProto + .internal_static_google_cloud_licensemanager_v1_BillingInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.BillingInfo getDefaultInstanceForType() { + return com.google.cloud.licensemanager.v1.BillingInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.BillingInfo build() { + com.google.cloud.licensemanager.v1.BillingInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.BillingInfo buildPartial() { + com.google.cloud.licensemanager.v1.BillingInfo result = + new com.google.cloud.licensemanager.v1.BillingInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.licensemanager.v1.BillingInfo result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.licensemanager.v1.BillingInfo result) { + result.currentBillingInfoCase_ = currentBillingInfoCase_; + result.currentBillingInfo_ = this.currentBillingInfo_; + if (currentBillingInfoCase_ == 1 && userCountBillingBuilder_ != null) { + result.currentBillingInfo_ = userCountBillingBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.licensemanager.v1.BillingInfo) { + return mergeFrom((com.google.cloud.licensemanager.v1.BillingInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.licensemanager.v1.BillingInfo other) { + if (other == com.google.cloud.licensemanager.v1.BillingInfo.getDefaultInstance()) return this; + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + switch (other.getCurrentBillingInfoCase()) { + case USER_COUNT_BILLING: + { + mergeUserCountBilling(other.getUserCountBilling()); + break; + } + case CURRENTBILLINGINFO_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getUserCountBillingFieldBuilder().getBuilder(), extensionRegistry); + currentBillingInfoCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int currentBillingInfoCase_ = 0; + private java.lang.Object currentBillingInfo_; + + public CurrentBillingInfoCase getCurrentBillingInfoCase() { + return CurrentBillingInfoCase.forNumber(currentBillingInfoCase_); + } + + public Builder clearCurrentBillingInfo() { + currentBillingInfoCase_ = 0; + currentBillingInfo_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.licensemanager.v1.UserCountBillingInfo, + com.google.cloud.licensemanager.v1.UserCountBillingInfo.Builder, + com.google.cloud.licensemanager.v1.UserCountBillingInfoOrBuilder> + userCountBillingBuilder_; + + /** + * + * + *
+     * Required. This type of billing uses user count for computing total
+     * charge.
+     * 
+ * + * + * .google.cloud.licensemanager.v1.UserCountBillingInfo user_count_billing = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the userCountBilling field is set. + */ + @java.lang.Override + public boolean hasUserCountBilling() { + return currentBillingInfoCase_ == 1; + } + + /** + * + * + *
+     * Required. This type of billing uses user count for computing total
+     * charge.
+     * 
+ * + * + * .google.cloud.licensemanager.v1.UserCountBillingInfo user_count_billing = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The userCountBilling. + */ + @java.lang.Override + public com.google.cloud.licensemanager.v1.UserCountBillingInfo getUserCountBilling() { + if (userCountBillingBuilder_ == null) { + if (currentBillingInfoCase_ == 1) { + return (com.google.cloud.licensemanager.v1.UserCountBillingInfo) currentBillingInfo_; + } + return com.google.cloud.licensemanager.v1.UserCountBillingInfo.getDefaultInstance(); + } else { + if (currentBillingInfoCase_ == 1) { + return userCountBillingBuilder_.getMessage(); + } + return com.google.cloud.licensemanager.v1.UserCountBillingInfo.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Required. This type of billing uses user count for computing total
+     * charge.
+     * 
+ * + * + * .google.cloud.licensemanager.v1.UserCountBillingInfo user_count_billing = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUserCountBilling( + com.google.cloud.licensemanager.v1.UserCountBillingInfo value) { + if (userCountBillingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + currentBillingInfo_ = value; + onChanged(); + } else { + userCountBillingBuilder_.setMessage(value); + } + currentBillingInfoCase_ = 1; + return this; + } + + /** + * + * + *
+     * Required. This type of billing uses user count for computing total
+     * charge.
+     * 
+ * + * + * .google.cloud.licensemanager.v1.UserCountBillingInfo user_count_billing = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUserCountBilling( + com.google.cloud.licensemanager.v1.UserCountBillingInfo.Builder builderForValue) { + if (userCountBillingBuilder_ == null) { + currentBillingInfo_ = builderForValue.build(); + onChanged(); + } else { + userCountBillingBuilder_.setMessage(builderForValue.build()); + } + currentBillingInfoCase_ = 1; + return this; + } + + /** + * + * + *
+     * Required. This type of billing uses user count for computing total
+     * charge.
+     * 
+ * + * + * .google.cloud.licensemanager.v1.UserCountBillingInfo user_count_billing = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUserCountBilling( + com.google.cloud.licensemanager.v1.UserCountBillingInfo value) { + if (userCountBillingBuilder_ == null) { + if (currentBillingInfoCase_ == 1 + && currentBillingInfo_ + != com.google.cloud.licensemanager.v1.UserCountBillingInfo.getDefaultInstance()) { + currentBillingInfo_ = + com.google.cloud.licensemanager.v1.UserCountBillingInfo.newBuilder( + (com.google.cloud.licensemanager.v1.UserCountBillingInfo) currentBillingInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + currentBillingInfo_ = value; + } + onChanged(); + } else { + if (currentBillingInfoCase_ == 1) { + userCountBillingBuilder_.mergeFrom(value); + } else { + userCountBillingBuilder_.setMessage(value); + } + } + currentBillingInfoCase_ = 1; + return this; + } + + /** + * + * + *
+     * Required. This type of billing uses user count for computing total
+     * charge.
+     * 
+ * + * + * .google.cloud.licensemanager.v1.UserCountBillingInfo user_count_billing = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUserCountBilling() { + if (userCountBillingBuilder_ == null) { + if (currentBillingInfoCase_ == 1) { + currentBillingInfoCase_ = 0; + currentBillingInfo_ = null; + onChanged(); + } + } else { + if (currentBillingInfoCase_ == 1) { + currentBillingInfoCase_ = 0; + currentBillingInfo_ = null; + } + userCountBillingBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Required. This type of billing uses user count for computing total
+     * charge.
+     * 
+ * + * + * .google.cloud.licensemanager.v1.UserCountBillingInfo user_count_billing = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.licensemanager.v1.UserCountBillingInfo.Builder + getUserCountBillingBuilder() { + return getUserCountBillingFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. This type of billing uses user count for computing total
+     * charge.
+     * 
+ * + * + * .google.cloud.licensemanager.v1.UserCountBillingInfo user_count_billing = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.licensemanager.v1.UserCountBillingInfoOrBuilder + getUserCountBillingOrBuilder() { + if ((currentBillingInfoCase_ == 1) && (userCountBillingBuilder_ != null)) { + return userCountBillingBuilder_.getMessageOrBuilder(); + } else { + if (currentBillingInfoCase_ == 1) { + return (com.google.cloud.licensemanager.v1.UserCountBillingInfo) currentBillingInfo_; + } + return com.google.cloud.licensemanager.v1.UserCountBillingInfo.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Required. This type of billing uses user count for computing total
+     * charge.
+     * 
+ * + * + * .google.cloud.licensemanager.v1.UserCountBillingInfo user_count_billing = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.licensemanager.v1.UserCountBillingInfo, + com.google.cloud.licensemanager.v1.UserCountBillingInfo.Builder, + com.google.cloud.licensemanager.v1.UserCountBillingInfoOrBuilder> + getUserCountBillingFieldBuilder() { + if (userCountBillingBuilder_ == null) { + if (!(currentBillingInfoCase_ == 1)) { + currentBillingInfo_ = + com.google.cloud.licensemanager.v1.UserCountBillingInfo.getDefaultInstance(); + } + userCountBillingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.licensemanager.v1.UserCountBillingInfo, + com.google.cloud.licensemanager.v1.UserCountBillingInfo.Builder, + com.google.cloud.licensemanager.v1.UserCountBillingInfoOrBuilder>( + (com.google.cloud.licensemanager.v1.UserCountBillingInfo) currentBillingInfo_, + getParentForChildren(), + isClean()); + currentBillingInfo_ = null; + } + currentBillingInfoCase_ = 1; + onChanged(); + return userCountBillingBuilder_; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + + /** + * + * + *
+     * Output only. When the billing starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. When the billing starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. When the billing starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the billing starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the billing starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. When the billing starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000002); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the billing starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. When the billing starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + + /** + * + * + *
+     * Output only. When the billing starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + + /** + * + * + *
+     * Output only. When the billing ends.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Output only. When the billing ends.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. When the billing ends.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the billing ends.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the billing ends.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. When the billing ends.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000004); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the billing ends.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. When the billing ends.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + + /** + * + * + *
+     * Output only. When the billing ends.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.licensemanager.v1.BillingInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.licensemanager.v1.BillingInfo) + private static final com.google.cloud.licensemanager.v1.BillingInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.licensemanager.v1.BillingInfo(); + } + + public static com.google.cloud.licensemanager.v1.BillingInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BillingInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.BillingInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/BillingInfoOrBuilder.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/BillingInfoOrBuilder.java new file mode 100644 index 000000000000..09c3315c640c --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/BillingInfoOrBuilder.java @@ -0,0 +1,154 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/api_entities.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +public interface BillingInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.licensemanager.v1.BillingInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. This type of billing uses user count for computing total
+   * charge.
+   * 
+ * + * + * .google.cloud.licensemanager.v1.UserCountBillingInfo user_count_billing = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the userCountBilling field is set. + */ + boolean hasUserCountBilling(); + + /** + * + * + *
+   * Required. This type of billing uses user count for computing total
+   * charge.
+   * 
+ * + * + * .google.cloud.licensemanager.v1.UserCountBillingInfo user_count_billing = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The userCountBilling. + */ + com.google.cloud.licensemanager.v1.UserCountBillingInfo getUserCountBilling(); + + /** + * + * + *
+   * Required. This type of billing uses user count for computing total
+   * charge.
+   * 
+ * + * + * .google.cloud.licensemanager.v1.UserCountBillingInfo user_count_billing = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.licensemanager.v1.UserCountBillingInfoOrBuilder getUserCountBillingOrBuilder(); + + /** + * + * + *
+   * Output only. When the billing starts.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + + /** + * + * + *
+   * Output only. When the billing starts.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + + /** + * + * + *
+   * Output only. When the billing starts.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
+   * Output only. When the billing ends.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + + /** + * + * + *
+   * Output only. When the billing ends.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + + /** + * + * + *
+   * Output only. When the billing ends.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + com.google.cloud.licensemanager.v1.BillingInfo.CurrentBillingInfoCase getCurrentBillingInfoCase(); +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/Configuration.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/Configuration.java new file mode 100644 index 000000000000..89521ee2ce1f --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/Configuration.java @@ -0,0 +1,3126 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/api_entities.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +/** + * + * + *
+ * Configuration for a Google SPLA product
+ * 
+ * + * Protobuf type {@code google.cloud.licensemanager.v1.Configuration} + */ +public final class Configuration extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.licensemanager.v1.Configuration) + ConfigurationOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Configuration.newBuilder() to construct. + private Configuration(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Configuration() { + name_ = ""; + displayName_ = ""; + product_ = ""; + licenseType_ = 0; + state_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Configuration(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.ApiEntitiesProto + .internal_static_google_cloud_licensemanager_v1_Configuration_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.ApiEntitiesProto + .internal_static_google_cloud_licensemanager_v1_Configuration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.Configuration.class, + com.google.cloud.licensemanager.v1.Configuration.Builder.class); + } + + /** + * + * + *
+   * State of the configuration.
+   * 
+ * + * Protobuf enum {@code google.cloud.licensemanager.v1.Configuration.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The Status of the configuration is unspecified
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * Configuration is in active state.
+     * 
+ * + * STATE_ACTIVE = 1; + */ + STATE_ACTIVE(1), + /** + * + * + *
+     * Configuration is in deactivated state.
+     * 
+ * + * STATE_SUSPENDED = 2; + */ + STATE_SUSPENDED(2), + /** + * + * + *
+     * Configuration is in deleted state.
+     * 
+ * + * STATE_DELETED = 3; + */ + STATE_DELETED(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * The Status of the configuration is unspecified
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Configuration is in active state.
+     * 
+ * + * STATE_ACTIVE = 1; + */ + public static final int STATE_ACTIVE_VALUE = 1; + + /** + * + * + *
+     * Configuration is in deactivated state.
+     * 
+ * + * STATE_SUSPENDED = 2; + */ + public static final int STATE_SUSPENDED_VALUE = 2; + + /** + * + * + *
+     * Configuration is in deleted state.
+     * 
+ * + * STATE_DELETED = 3; + */ + public static final int STATE_DELETED_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return STATE_ACTIVE; + case 2: + return STATE_SUSPENDED; + case 3: + return STATE_DELETED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.Configuration.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State 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 State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.licensemanager.v1.Configuration.State) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. name of resource
+   * 
+ * + * 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. name of resource
+   * 
+ * + * 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 DISPLAY_NAME_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
+   * Required. User given name.
+   * 
+ * + * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. User given name.
+   * 
+ * + * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRODUCT_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object product_ = ""; + + /** + * + * + *
+   * Required. Name field (with URL) of the Product offered for SPLA.
+   * 
+ * + * + * string product = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The product. + */ + @java.lang.Override + public java.lang.String getProduct() { + java.lang.Object ref = product_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + product_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Name field (with URL) of the Product offered for SPLA.
+   * 
+ * + * + * string product = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for product. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProductBytes() { + java.lang.Object ref = product_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + product_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LICENSE_TYPE_FIELD_NUMBER = 7; + private int licenseType_ = 0; + + /** + * + * + *
+   * Required. LicenseType to be applied for billing
+   * 
+ * + * + * .google.cloud.licensemanager.v1.LicenseType license_type = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for licenseType. + */ + @java.lang.Override + public int getLicenseTypeValue() { + return licenseType_; + } + + /** + * + * + *
+   * Required. LicenseType to be applied for billing
+   * 
+ * + * + * .google.cloud.licensemanager.v1.LicenseType license_type = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The licenseType. + */ + @java.lang.Override + public com.google.cloud.licensemanager.v1.LicenseType getLicenseType() { + com.google.cloud.licensemanager.v1.LicenseType result = + com.google.cloud.licensemanager.v1.LicenseType.forNumber(licenseType_); + return result == null ? com.google.cloud.licensemanager.v1.LicenseType.UNRECOGNIZED : result; + } + + public static final int CURRENT_BILLING_INFO_FIELD_NUMBER = 8; + private com.google.cloud.licensemanager.v1.BillingInfo currentBillingInfo_; + + /** + * + * + *
+   * Required. Billing information applicable till end of the current month.
+   * 
+ * + * + * .google.cloud.licensemanager.v1.BillingInfo current_billing_info = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the currentBillingInfo field is set. + */ + @java.lang.Override + public boolean hasCurrentBillingInfo() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. Billing information applicable till end of the current month.
+   * 
+ * + * + * .google.cloud.licensemanager.v1.BillingInfo current_billing_info = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The currentBillingInfo. + */ + @java.lang.Override + public com.google.cloud.licensemanager.v1.BillingInfo getCurrentBillingInfo() { + return currentBillingInfo_ == null + ? com.google.cloud.licensemanager.v1.BillingInfo.getDefaultInstance() + : currentBillingInfo_; + } + + /** + * + * + *
+   * Required. Billing information applicable till end of the current month.
+   * 
+ * + * + * .google.cloud.licensemanager.v1.BillingInfo current_billing_info = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.licensemanager.v1.BillingInfoOrBuilder getCurrentBillingInfoOrBuilder() { + return currentBillingInfo_ == null + ? com.google.cloud.licensemanager.v1.BillingInfo.getDefaultInstance() + : currentBillingInfo_; + } + + public static final int NEXT_BILLING_INFO_FIELD_NUMBER = 9; + private com.google.cloud.licensemanager.v1.BillingInfo nextBillingInfo_; + + /** + * + * + *
+   * Required. Billing information applicable for next month.
+   * 
+ * + * + * .google.cloud.licensemanager.v1.BillingInfo next_billing_info = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the nextBillingInfo field is set. + */ + @java.lang.Override + public boolean hasNextBillingInfo() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Required. Billing information applicable for next month.
+   * 
+ * + * + * .google.cloud.licensemanager.v1.BillingInfo next_billing_info = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The nextBillingInfo. + */ + @java.lang.Override + public com.google.cloud.licensemanager.v1.BillingInfo getNextBillingInfo() { + return nextBillingInfo_ == null + ? com.google.cloud.licensemanager.v1.BillingInfo.getDefaultInstance() + : nextBillingInfo_; + } + + /** + * + * + *
+   * Required. Billing information applicable for next month.
+   * 
+ * + * + * .google.cloud.licensemanager.v1.BillingInfo next_billing_info = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.licensemanager.v1.BillingInfoOrBuilder getNextBillingInfoOrBuilder() { + return nextBillingInfo_ == null + ? com.google.cloud.licensemanager.v1.BillingInfo.getDefaultInstance() + : nextBillingInfo_; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. [Output only] Create time stamp
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Output only. [Output only] Create time stamp
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
+   * Output only. [Output only] Create time stamp
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. [Output only] Update time stamp
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Output only. [Output only] Update time stamp
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
+   * Output only. [Output only] Update time stamp
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int LABELS_FIELD_NUMBER = 4; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.licensemanager.v1.ApiEntitiesProto + .internal_static_google_cloud_licensemanager_v1_Configuration_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int STATE_FIELD_NUMBER = 10; + private int state_ = 0; + + /** + * + * + *
+   * Output only. State of the configuration.
+   * 
+ * + * + * .google.cloud.licensemanager.v1.Configuration.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+   * Output only. State of the configuration.
+   * 
+ * + * + * .google.cloud.licensemanager.v1.Configuration.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.licensemanager.v1.Configuration.State getState() { + com.google.cloud.licensemanager.v1.Configuration.State result = + com.google.cloud.licensemanager.v1.Configuration.State.forNumber(state_); + return result == null + ? com.google.cloud.licensemanager.v1.Configuration.State.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(2, getCreateTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(3, getUpdateTime()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(product_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, product_); + } + if (licenseType_ + != com.google.cloud.licensemanager.v1.LicenseType.LICENSE_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(7, licenseType_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(8, getCurrentBillingInfo()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(9, getNextBillingInfo()); + } + if (state_ + != com.google.cloud.licensemanager.v1.Configuration.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(10, state_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(product_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, product_); + } + if (licenseType_ + != com.google.cloud.licensemanager.v1.LicenseType.LICENSE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, licenseType_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCurrentBillingInfo()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getNextBillingInfo()); + } + if (state_ + != com.google.cloud.licensemanager.v1.Configuration.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, state_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.licensemanager.v1.Configuration)) { + return super.equals(obj); + } + com.google.cloud.licensemanager.v1.Configuration other = + (com.google.cloud.licensemanager.v1.Configuration) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getProduct().equals(other.getProduct())) return false; + if (licenseType_ != other.licenseType_) return false; + if (hasCurrentBillingInfo() != other.hasCurrentBillingInfo()) return false; + if (hasCurrentBillingInfo()) { + if (!getCurrentBillingInfo().equals(other.getCurrentBillingInfo())) return false; + } + if (hasNextBillingInfo() != other.hasNextBillingInfo()) return false; + if (hasNextBillingInfo()) { + if (!getNextBillingInfo().equals(other.getNextBillingInfo())) 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 (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (state_ != other.state_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + PRODUCT_FIELD_NUMBER; + hash = (53 * hash) + getProduct().hashCode(); + hash = (37 * hash) + LICENSE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + licenseType_; + if (hasCurrentBillingInfo()) { + hash = (37 * hash) + CURRENT_BILLING_INFO_FIELD_NUMBER; + hash = (53 * hash) + getCurrentBillingInfo().hashCode(); + } + if (hasNextBillingInfo()) { + hash = (37 * hash) + NEXT_BILLING_INFO_FIELD_NUMBER; + hash = (53 * hash) + getNextBillingInfo().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 (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.licensemanager.v1.Configuration parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.Configuration parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.Configuration parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.Configuration parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.Configuration parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.Configuration parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.Configuration parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.Configuration parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.Configuration parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.Configuration parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.Configuration parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.Configuration parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.licensemanager.v1.Configuration prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Configuration for a Google SPLA product
+   * 
+ * + * Protobuf type {@code google.cloud.licensemanager.v1.Configuration} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.licensemanager.v1.Configuration) + com.google.cloud.licensemanager.v1.ConfigurationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.ApiEntitiesProto + .internal_static_google_cloud_licensemanager_v1_Configuration_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.ApiEntitiesProto + .internal_static_google_cloud_licensemanager_v1_Configuration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.Configuration.class, + com.google.cloud.licensemanager.v1.Configuration.Builder.class); + } + + // Construct using com.google.cloud.licensemanager.v1.Configuration.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCurrentBillingInfoFieldBuilder(); + getNextBillingInfoFieldBuilder(); + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + product_ = ""; + licenseType_ = 0; + currentBillingInfo_ = null; + if (currentBillingInfoBuilder_ != null) { + currentBillingInfoBuilder_.dispose(); + currentBillingInfoBuilder_ = null; + } + nextBillingInfo_ = null; + if (nextBillingInfoBuilder_ != null) { + nextBillingInfoBuilder_.dispose(); + nextBillingInfoBuilder_ = null; + } + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + state_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.licensemanager.v1.ApiEntitiesProto + .internal_static_google_cloud_licensemanager_v1_Configuration_descriptor; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.Configuration getDefaultInstanceForType() { + return com.google.cloud.licensemanager.v1.Configuration.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.Configuration build() { + com.google.cloud.licensemanager.v1.Configuration result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.Configuration buildPartial() { + com.google.cloud.licensemanager.v1.Configuration result = + new com.google.cloud.licensemanager.v1.Configuration(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.licensemanager.v1.Configuration result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.product_ = product_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.licenseType_ = licenseType_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.currentBillingInfo_ = + currentBillingInfoBuilder_ == null + ? currentBillingInfo_ + : currentBillingInfoBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.nextBillingInfo_ = + nextBillingInfoBuilder_ == null ? nextBillingInfo_ : nextBillingInfoBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.state_ = state_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.licensemanager.v1.Configuration) { + return mergeFrom((com.google.cloud.licensemanager.v1.Configuration) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.licensemanager.v1.Configuration other) { + if (other == com.google.cloud.licensemanager.v1.Configuration.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getProduct().isEmpty()) { + product_ = other.product_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.licenseType_ != 0) { + setLicenseTypeValue(other.getLicenseTypeValue()); + } + if (other.hasCurrentBillingInfo()) { + mergeCurrentBillingInfo(other.getCurrentBillingInfo()); + } + if (other.hasNextBillingInfo()) { + mergeNextBillingInfo(other.getNextBillingInfo()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000100; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 18 + case 26: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000100; + break; + } // case 34 + case 42: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 42 + case 50: + { + product_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 50 + case 56: + { + licenseType_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 56 + case 66: + { + input.readMessage( + getCurrentBillingInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 66 + case 74: + { + input.readMessage(getNextBillingInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 74 + case 80: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000200; + break; + } // case 80 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (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. name of resource
+     * 
+ * + * 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. name of resource
+     * 
+ * + * 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. name of resource
+     * 
+ * + * 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. name of resource
+     * 
+ * + * 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. name of resource
+     * 
+ * + * 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 displayName_ = ""; + + /** + * + * + *
+     * Required. User given name.
+     * 
+ * + * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. User given name.
+     * 
+ * + * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. User given name.
+     * 
+ * + * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. User given name.
+     * 
+ * + * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. User given name.
+     * 
+ * + * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object product_ = ""; + + /** + * + * + *
+     * Required. Name field (with URL) of the Product offered for SPLA.
+     * 
+ * + * + * string product = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The product. + */ + public java.lang.String getProduct() { + java.lang.Object ref = product_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + product_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Name field (with URL) of the Product offered for SPLA.
+     * 
+ * + * + * string product = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for product. + */ + public com.google.protobuf.ByteString getProductBytes() { + java.lang.Object ref = product_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + product_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Name field (with URL) of the Product offered for SPLA.
+     * 
+ * + * + * string product = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The product to set. + * @return This builder for chaining. + */ + public Builder setProduct(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + product_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Name field (with URL) of the Product offered for SPLA.
+     * 
+ * + * + * string product = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearProduct() { + product_ = getDefaultInstance().getProduct(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Name field (with URL) of the Product offered for SPLA.
+     * 
+ * + * + * string product = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for product to set. + * @return This builder for chaining. + */ + public Builder setProductBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + product_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int licenseType_ = 0; + + /** + * + * + *
+     * Required. LicenseType to be applied for billing
+     * 
+ * + * + * .google.cloud.licensemanager.v1.LicenseType license_type = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for licenseType. + */ + @java.lang.Override + public int getLicenseTypeValue() { + return licenseType_; + } + + /** + * + * + *
+     * Required. LicenseType to be applied for billing
+     * 
+ * + * + * .google.cloud.licensemanager.v1.LicenseType license_type = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for licenseType to set. + * @return This builder for chaining. + */ + public Builder setLicenseTypeValue(int value) { + licenseType_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. LicenseType to be applied for billing
+     * 
+ * + * + * .google.cloud.licensemanager.v1.LicenseType license_type = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The licenseType. + */ + @java.lang.Override + public com.google.cloud.licensemanager.v1.LicenseType getLicenseType() { + com.google.cloud.licensemanager.v1.LicenseType result = + com.google.cloud.licensemanager.v1.LicenseType.forNumber(licenseType_); + return result == null ? com.google.cloud.licensemanager.v1.LicenseType.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * Required. LicenseType to be applied for billing
+     * 
+ * + * + * .google.cloud.licensemanager.v1.LicenseType license_type = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The licenseType to set. + * @return This builder for chaining. + */ + public Builder setLicenseType(com.google.cloud.licensemanager.v1.LicenseType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + licenseType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. LicenseType to be applied for billing
+     * 
+ * + * + * .google.cloud.licensemanager.v1.LicenseType license_type = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearLicenseType() { + bitField0_ = (bitField0_ & ~0x00000008); + licenseType_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.licensemanager.v1.BillingInfo currentBillingInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.licensemanager.v1.BillingInfo, + com.google.cloud.licensemanager.v1.BillingInfo.Builder, + com.google.cloud.licensemanager.v1.BillingInfoOrBuilder> + currentBillingInfoBuilder_; + + /** + * + * + *
+     * Required. Billing information applicable till end of the current month.
+     * 
+ * + * + * .google.cloud.licensemanager.v1.BillingInfo current_billing_info = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the currentBillingInfo field is set. + */ + public boolean hasCurrentBillingInfo() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Required. Billing information applicable till end of the current month.
+     * 
+ * + * + * .google.cloud.licensemanager.v1.BillingInfo current_billing_info = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The currentBillingInfo. + */ + public com.google.cloud.licensemanager.v1.BillingInfo getCurrentBillingInfo() { + if (currentBillingInfoBuilder_ == null) { + return currentBillingInfo_ == null + ? com.google.cloud.licensemanager.v1.BillingInfo.getDefaultInstance() + : currentBillingInfo_; + } else { + return currentBillingInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. Billing information applicable till end of the current month.
+     * 
+ * + * + * .google.cloud.licensemanager.v1.BillingInfo current_billing_info = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCurrentBillingInfo(com.google.cloud.licensemanager.v1.BillingInfo value) { + if (currentBillingInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + currentBillingInfo_ = value; + } else { + currentBillingInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Billing information applicable till end of the current month.
+     * 
+ * + * + * .google.cloud.licensemanager.v1.BillingInfo current_billing_info = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCurrentBillingInfo( + com.google.cloud.licensemanager.v1.BillingInfo.Builder builderForValue) { + if (currentBillingInfoBuilder_ == null) { + currentBillingInfo_ = builderForValue.build(); + } else { + currentBillingInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Billing information applicable till end of the current month.
+     * 
+ * + * + * .google.cloud.licensemanager.v1.BillingInfo current_billing_info = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeCurrentBillingInfo(com.google.cloud.licensemanager.v1.BillingInfo value) { + if (currentBillingInfoBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && currentBillingInfo_ != null + && currentBillingInfo_ + != com.google.cloud.licensemanager.v1.BillingInfo.getDefaultInstance()) { + getCurrentBillingInfoBuilder().mergeFrom(value); + } else { + currentBillingInfo_ = value; + } + } else { + currentBillingInfoBuilder_.mergeFrom(value); + } + if (currentBillingInfo_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. Billing information applicable till end of the current month.
+     * 
+ * + * + * .google.cloud.licensemanager.v1.BillingInfo current_billing_info = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearCurrentBillingInfo() { + bitField0_ = (bitField0_ & ~0x00000010); + currentBillingInfo_ = null; + if (currentBillingInfoBuilder_ != null) { + currentBillingInfoBuilder_.dispose(); + currentBillingInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Billing information applicable till end of the current month.
+     * 
+ * + * + * .google.cloud.licensemanager.v1.BillingInfo current_billing_info = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.licensemanager.v1.BillingInfo.Builder getCurrentBillingInfoBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getCurrentBillingInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. Billing information applicable till end of the current month.
+     * 
+ * + * + * .google.cloud.licensemanager.v1.BillingInfo current_billing_info = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.licensemanager.v1.BillingInfoOrBuilder + getCurrentBillingInfoOrBuilder() { + if (currentBillingInfoBuilder_ != null) { + return currentBillingInfoBuilder_.getMessageOrBuilder(); + } else { + return currentBillingInfo_ == null + ? com.google.cloud.licensemanager.v1.BillingInfo.getDefaultInstance() + : currentBillingInfo_; + } + } + + /** + * + * + *
+     * Required. Billing information applicable till end of the current month.
+     * 
+ * + * + * .google.cloud.licensemanager.v1.BillingInfo current_billing_info = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.licensemanager.v1.BillingInfo, + com.google.cloud.licensemanager.v1.BillingInfo.Builder, + com.google.cloud.licensemanager.v1.BillingInfoOrBuilder> + getCurrentBillingInfoFieldBuilder() { + if (currentBillingInfoBuilder_ == null) { + currentBillingInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.licensemanager.v1.BillingInfo, + com.google.cloud.licensemanager.v1.BillingInfo.Builder, + com.google.cloud.licensemanager.v1.BillingInfoOrBuilder>( + getCurrentBillingInfo(), getParentForChildren(), isClean()); + currentBillingInfo_ = null; + } + return currentBillingInfoBuilder_; + } + + private com.google.cloud.licensemanager.v1.BillingInfo nextBillingInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.licensemanager.v1.BillingInfo, + com.google.cloud.licensemanager.v1.BillingInfo.Builder, + com.google.cloud.licensemanager.v1.BillingInfoOrBuilder> + nextBillingInfoBuilder_; + + /** + * + * + *
+     * Required. Billing information applicable for next month.
+     * 
+ * + * + * .google.cloud.licensemanager.v1.BillingInfo next_billing_info = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the nextBillingInfo field is set. + */ + public boolean hasNextBillingInfo() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Required. Billing information applicable for next month.
+     * 
+ * + * + * .google.cloud.licensemanager.v1.BillingInfo next_billing_info = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The nextBillingInfo. + */ + public com.google.cloud.licensemanager.v1.BillingInfo getNextBillingInfo() { + if (nextBillingInfoBuilder_ == null) { + return nextBillingInfo_ == null + ? com.google.cloud.licensemanager.v1.BillingInfo.getDefaultInstance() + : nextBillingInfo_; + } else { + return nextBillingInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. Billing information applicable for next month.
+     * 
+ * + * + * .google.cloud.licensemanager.v1.BillingInfo next_billing_info = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setNextBillingInfo(com.google.cloud.licensemanager.v1.BillingInfo value) { + if (nextBillingInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nextBillingInfo_ = value; + } else { + nextBillingInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Billing information applicable for next month.
+     * 
+ * + * + * .google.cloud.licensemanager.v1.BillingInfo next_billing_info = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setNextBillingInfo( + com.google.cloud.licensemanager.v1.BillingInfo.Builder builderForValue) { + if (nextBillingInfoBuilder_ == null) { + nextBillingInfo_ = builderForValue.build(); + } else { + nextBillingInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Billing information applicable for next month.
+     * 
+ * + * + * .google.cloud.licensemanager.v1.BillingInfo next_billing_info = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeNextBillingInfo(com.google.cloud.licensemanager.v1.BillingInfo value) { + if (nextBillingInfoBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && nextBillingInfo_ != null + && nextBillingInfo_ + != com.google.cloud.licensemanager.v1.BillingInfo.getDefaultInstance()) { + getNextBillingInfoBuilder().mergeFrom(value); + } else { + nextBillingInfo_ = value; + } + } else { + nextBillingInfoBuilder_.mergeFrom(value); + } + if (nextBillingInfo_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. Billing information applicable for next month.
+     * 
+ * + * + * .google.cloud.licensemanager.v1.BillingInfo next_billing_info = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearNextBillingInfo() { + bitField0_ = (bitField0_ & ~0x00000020); + nextBillingInfo_ = null; + if (nextBillingInfoBuilder_ != null) { + nextBillingInfoBuilder_.dispose(); + nextBillingInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Billing information applicable for next month.
+     * 
+ * + * + * .google.cloud.licensemanager.v1.BillingInfo next_billing_info = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.licensemanager.v1.BillingInfo.Builder getNextBillingInfoBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getNextBillingInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. Billing information applicable for next month.
+     * 
+ * + * + * .google.cloud.licensemanager.v1.BillingInfo next_billing_info = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.licensemanager.v1.BillingInfoOrBuilder getNextBillingInfoOrBuilder() { + if (nextBillingInfoBuilder_ != null) { + return nextBillingInfoBuilder_.getMessageOrBuilder(); + } else { + return nextBillingInfo_ == null + ? com.google.cloud.licensemanager.v1.BillingInfo.getDefaultInstance() + : nextBillingInfo_; + } + } + + /** + * + * + *
+     * Required. Billing information applicable for next month.
+     * 
+ * + * + * .google.cloud.licensemanager.v1.BillingInfo next_billing_info = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.licensemanager.v1.BillingInfo, + com.google.cloud.licensemanager.v1.BillingInfo.Builder, + com.google.cloud.licensemanager.v1.BillingInfoOrBuilder> + getNextBillingInfoFieldBuilder() { + if (nextBillingInfoBuilder_ == null) { + nextBillingInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.licensemanager.v1.BillingInfo, + com.google.cloud.licensemanager.v1.BillingInfo.Builder, + com.google.cloud.licensemanager.v1.BillingInfoOrBuilder>( + getNextBillingInfo(), getParentForChildren(), isClean()); + nextBillingInfo_ = null; + } + return nextBillingInfoBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000040); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000080); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000100; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
+     * Optional. Labels as key value pairs
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
+     * Optional. Labels as key value pairs
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
+     * Optional. Labels as key value pairs
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Optional. Labels as key value pairs
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000100); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * Optional. Labels as key value pairs
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000100; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
+     * Optional. Labels as key value pairs
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000100; + return this; + } + + /** + * + * + *
+     * Optional. Labels as key value pairs
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000100; + return this; + } + + private int state_ = 0; + + /** + * + * + *
+     * Output only. State of the configuration.
+     * 
+ * + * + * .google.cloud.licensemanager.v1.Configuration.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+     * Output only. State of the configuration.
+     * 
+ * + * + * .google.cloud.licensemanager.v1.Configuration.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. State of the configuration.
+     * 
+ * + * + * .google.cloud.licensemanager.v1.Configuration.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.licensemanager.v1.Configuration.State getState() { + com.google.cloud.licensemanager.v1.Configuration.State result = + com.google.cloud.licensemanager.v1.Configuration.State.forNumber(state_); + return result == null + ? com.google.cloud.licensemanager.v1.Configuration.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. State of the configuration.
+     * 
+ * + * + * .google.cloud.licensemanager.v1.Configuration.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.licensemanager.v1.Configuration.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. State of the configuration.
+     * 
+ * + * + * .google.cloud.licensemanager.v1.Configuration.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000200); + state_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.licensemanager.v1.Configuration) + } + + // @@protoc_insertion_point(class_scope:google.cloud.licensemanager.v1.Configuration) + private static final com.google.cloud.licensemanager.v1.Configuration DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.licensemanager.v1.Configuration(); + } + + public static com.google.cloud.licensemanager.v1.Configuration getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Configuration parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.Configuration getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ConfigurationName.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ConfigurationName.java new file mode 100644 index 000000000000..4cad02401ba9 --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ConfigurationName.java @@ -0,0 +1,227 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class ConfigurationName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_CONFIGURATION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/configurations/{configuration}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String configuration; + + @Deprecated + protected ConfigurationName() { + project = null; + location = null; + configuration = null; + } + + private ConfigurationName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + configuration = Preconditions.checkNotNull(builder.getConfiguration()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getConfiguration() { + return configuration; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ConfigurationName of(String project, String location, String configuration) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setConfiguration(configuration) + .build(); + } + + public static String format(String project, String location, String configuration) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setConfiguration(configuration) + .build() + .toString(); + } + + public static ConfigurationName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_CONFIGURATION.validatedMatch( + formattedString, "ConfigurationName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("configuration")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (ConfigurationName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_CONFIGURATION.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (configuration != null) { + fieldMapBuilder.put("configuration", configuration); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_CONFIGURATION.instantiate( + "project", project, "location", location, "configuration", configuration); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ConfigurationName that = ((ConfigurationName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.configuration, that.configuration); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(configuration); + return h; + } + + /** Builder for projects/{project}/locations/{location}/configurations/{configuration}. */ + public static class Builder { + private String project; + private String location; + private String configuration; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getConfiguration() { + return configuration; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setConfiguration(String configuration) { + this.configuration = configuration; + return this; + } + + private Builder(ConfigurationName configurationName) { + this.project = configurationName.project; + this.location = configurationName.location; + this.configuration = configurationName.configuration; + } + + public ConfigurationName build() { + return new ConfigurationName(this); + } + } +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ConfigurationOrBuilder.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ConfigurationOrBuilder.java new file mode 100644 index 000000000000..dbdaff3c52b2 --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ConfigurationOrBuilder.java @@ -0,0 +1,397 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/api_entities.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +public interface ConfigurationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.licensemanager.v1.Configuration) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. name of resource
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. name of resource
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. User given name.
+   * 
+ * + * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+   * Required. User given name.
+   * 
+ * + * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Required. Name field (with URL) of the Product offered for SPLA.
+   * 
+ * + * + * string product = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The product. + */ + java.lang.String getProduct(); + + /** + * + * + *
+   * Required. Name field (with URL) of the Product offered for SPLA.
+   * 
+ * + * + * string product = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for product. + */ + com.google.protobuf.ByteString getProductBytes(); + + /** + * + * + *
+   * Required. LicenseType to be applied for billing
+   * 
+ * + * + * .google.cloud.licensemanager.v1.LicenseType license_type = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for licenseType. + */ + int getLicenseTypeValue(); + + /** + * + * + *
+   * Required. LicenseType to be applied for billing
+   * 
+ * + * + * .google.cloud.licensemanager.v1.LicenseType license_type = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The licenseType. + */ + com.google.cloud.licensemanager.v1.LicenseType getLicenseType(); + + /** + * + * + *
+   * Required. Billing information applicable till end of the current month.
+   * 
+ * + * + * .google.cloud.licensemanager.v1.BillingInfo current_billing_info = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the currentBillingInfo field is set. + */ + boolean hasCurrentBillingInfo(); + + /** + * + * + *
+   * Required. Billing information applicable till end of the current month.
+   * 
+ * + * + * .google.cloud.licensemanager.v1.BillingInfo current_billing_info = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The currentBillingInfo. + */ + com.google.cloud.licensemanager.v1.BillingInfo getCurrentBillingInfo(); + + /** + * + * + *
+   * Required. Billing information applicable till end of the current month.
+   * 
+ * + * + * .google.cloud.licensemanager.v1.BillingInfo current_billing_info = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.licensemanager.v1.BillingInfoOrBuilder getCurrentBillingInfoOrBuilder(); + + /** + * + * + *
+   * Required. Billing information applicable for next month.
+   * 
+ * + * + * .google.cloud.licensemanager.v1.BillingInfo next_billing_info = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the nextBillingInfo field is set. + */ + boolean hasNextBillingInfo(); + + /** + * + * + *
+   * Required. Billing information applicable for next month.
+   * 
+ * + * + * .google.cloud.licensemanager.v1.BillingInfo next_billing_info = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The nextBillingInfo. + */ + com.google.cloud.licensemanager.v1.BillingInfo getNextBillingInfo(); + + /** + * + * + *
+   * Required. Billing information applicable for next month.
+   * 
+ * + * + * .google.cloud.licensemanager.v1.BillingInfo next_billing_info = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.licensemanager.v1.BillingInfoOrBuilder getNextBillingInfoOrBuilder(); + + /** + * + * + *
+   * Output only. [Output only] Create time stamp
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. [Output only] Create time stamp
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. [Output only] Create time stamp
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. [Output only] Update time stamp
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. [Output only] Update time stamp
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. [Output only] Update time stamp
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. State of the configuration.
+   * 
+ * + * + * .google.cloud.licensemanager.v1.Configuration.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
+   * Output only. State of the configuration.
+   * 
+ * + * + * .google.cloud.licensemanager.v1.Configuration.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.licensemanager.v1.Configuration.State getState(); +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/CreateConfigurationRequest.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/CreateConfigurationRequest.java new file mode 100644 index 000000000000..15df3f02f829 --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/CreateConfigurationRequest.java @@ -0,0 +1,1447 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/licensemanager.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +/** + * + * + *
+ * Message for creating a Configuration
+ * 
+ * + * Protobuf type {@code google.cloud.licensemanager.v1.CreateConfigurationRequest} + */ +public final class CreateConfigurationRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.licensemanager.v1.CreateConfigurationRequest) + CreateConfigurationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CreateConfigurationRequest.newBuilder() to construct. + private CreateConfigurationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateConfigurationRequest() { + parent_ = ""; + configurationId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateConfigurationRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_CreateConfigurationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_CreateConfigurationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.CreateConfigurationRequest.class, + com.google.cloud.licensemanager.v1.CreateConfigurationRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. Value for parent.
+   * 
+ * + * + * 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. Value for parent.
+   * 
+ * + * + * 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 CONFIGURATION_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object configurationId_ = ""; + + /** + * + * + *
+   * Required. Id of the requesting object
+   * 
+ * + * string configuration_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The configurationId. + */ + @java.lang.Override + public java.lang.String getConfigurationId() { + java.lang.Object ref = configurationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + configurationId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Id of the requesting object
+   * 
+ * + * string configuration_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for configurationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConfigurationIdBytes() { + java.lang.Object ref = configurationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + configurationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONFIGURATION_FIELD_NUMBER = 3; + private com.google.cloud.licensemanager.v1.Configuration configuration_; + + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * + * .google.cloud.licensemanager.v1.Configuration configuration = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the configuration field is set. + */ + @java.lang.Override + public boolean hasConfiguration() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * + * .google.cloud.licensemanager.v1.Configuration configuration = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The configuration. + */ + @java.lang.Override + public com.google.cloud.licensemanager.v1.Configuration getConfiguration() { + return configuration_ == null + ? com.google.cloud.licensemanager.v1.Configuration.getDefaultInstance() + : configuration_; + } + + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * + * .google.cloud.licensemanager.v1.Configuration configuration = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.licensemanager.v1.ConfigurationOrBuilder getConfigurationOrBuilder() { + return configuration_ == null + ? com.google.cloud.licensemanager.v1.Configuration.getDefaultInstance() + : configuration_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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; + } + } + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(configurationId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, configurationId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getConfiguration()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(configurationId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, configurationId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getConfiguration()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, 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.cloud.licensemanager.v1.CreateConfigurationRequest)) { + return super.equals(obj); + } + com.google.cloud.licensemanager.v1.CreateConfigurationRequest other = + (com.google.cloud.licensemanager.v1.CreateConfigurationRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getConfigurationId().equals(other.getConfigurationId())) return false; + if (hasConfiguration() != other.hasConfiguration()) return false; + if (hasConfiguration()) { + if (!getConfiguration().equals(other.getConfiguration())) return false; + } + 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + CONFIGURATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getConfigurationId().hashCode(); + if (hasConfiguration()) { + hash = (37 * hash) + CONFIGURATION_FIELD_NUMBER; + hash = (53 * hash) + getConfiguration().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.cloud.licensemanager.v1.CreateConfigurationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.CreateConfigurationRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.CreateConfigurationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.CreateConfigurationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.CreateConfigurationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.CreateConfigurationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.CreateConfigurationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.CreateConfigurationRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.CreateConfigurationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.CreateConfigurationRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.CreateConfigurationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.CreateConfigurationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.licensemanager.v1.CreateConfigurationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for creating a Configuration
+   * 
+ * + * Protobuf type {@code google.cloud.licensemanager.v1.CreateConfigurationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.licensemanager.v1.CreateConfigurationRequest) + com.google.cloud.licensemanager.v1.CreateConfigurationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_CreateConfigurationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_CreateConfigurationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.CreateConfigurationRequest.class, + com.google.cloud.licensemanager.v1.CreateConfigurationRequest.Builder.class); + } + + // Construct using com.google.cloud.licensemanager.v1.CreateConfigurationRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getConfigurationFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + configurationId_ = ""; + configuration_ = null; + if (configurationBuilder_ != null) { + configurationBuilder_.dispose(); + configurationBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_CreateConfigurationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.CreateConfigurationRequest + getDefaultInstanceForType() { + return com.google.cloud.licensemanager.v1.CreateConfigurationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.CreateConfigurationRequest build() { + com.google.cloud.licensemanager.v1.CreateConfigurationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.CreateConfigurationRequest buildPartial() { + com.google.cloud.licensemanager.v1.CreateConfigurationRequest result = + new com.google.cloud.licensemanager.v1.CreateConfigurationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.licensemanager.v1.CreateConfigurationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.configurationId_ = configurationId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.configuration_ = + configurationBuilder_ == null ? configuration_ : configurationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.licensemanager.v1.CreateConfigurationRequest) { + return mergeFrom((com.google.cloud.licensemanager.v1.CreateConfigurationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.licensemanager.v1.CreateConfigurationRequest other) { + if (other + == com.google.cloud.licensemanager.v1.CreateConfigurationRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getConfigurationId().isEmpty()) { + configurationId_ = other.configurationId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasConfiguration()) { + mergeConfiguration(other.getConfiguration()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + configurationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getConfigurationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. Value for parent.
+     * 
+ * + * + * 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. Value for parent.
+     * 
+ * + * + * 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. Value for parent.
+     * 
+ * + * + * 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. Value for parent.
+     * 
+ * + * + * 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. Value for parent.
+     * 
+ * + * + * 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 configurationId_ = ""; + + /** + * + * + *
+     * Required. Id of the requesting object
+     * 
+ * + * string configuration_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The configurationId. + */ + public java.lang.String getConfigurationId() { + java.lang.Object ref = configurationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + configurationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Id of the requesting object
+     * 
+ * + * string configuration_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for configurationId. + */ + public com.google.protobuf.ByteString getConfigurationIdBytes() { + java.lang.Object ref = configurationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + configurationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Id of the requesting object
+     * 
+ * + * string configuration_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The configurationId to set. + * @return This builder for chaining. + */ + public Builder setConfigurationId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + configurationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Id of the requesting object
+     * 
+ * + * string configuration_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearConfigurationId() { + configurationId_ = getDefaultInstance().getConfigurationId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Id of the requesting object
+     * 
+ * + * string configuration_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for configurationId to set. + * @return This builder for chaining. + */ + public Builder setConfigurationIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + configurationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.licensemanager.v1.Configuration configuration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.licensemanager.v1.Configuration, + com.google.cloud.licensemanager.v1.Configuration.Builder, + com.google.cloud.licensemanager.v1.ConfigurationOrBuilder> + configurationBuilder_; + + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.licensemanager.v1.Configuration configuration = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the configuration field is set. + */ + public boolean hasConfiguration() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.licensemanager.v1.Configuration configuration = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The configuration. + */ + public com.google.cloud.licensemanager.v1.Configuration getConfiguration() { + if (configurationBuilder_ == null) { + return configuration_ == null + ? com.google.cloud.licensemanager.v1.Configuration.getDefaultInstance() + : configuration_; + } else { + return configurationBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.licensemanager.v1.Configuration configuration = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConfiguration(com.google.cloud.licensemanager.v1.Configuration value) { + if (configurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + configuration_ = value; + } else { + configurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.licensemanager.v1.Configuration configuration = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConfiguration( + com.google.cloud.licensemanager.v1.Configuration.Builder builderForValue) { + if (configurationBuilder_ == null) { + configuration_ = builderForValue.build(); + } else { + configurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.licensemanager.v1.Configuration configuration = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeConfiguration(com.google.cloud.licensemanager.v1.Configuration value) { + if (configurationBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && configuration_ != null + && configuration_ + != com.google.cloud.licensemanager.v1.Configuration.getDefaultInstance()) { + getConfigurationBuilder().mergeFrom(value); + } else { + configuration_ = value; + } + } else { + configurationBuilder_.mergeFrom(value); + } + if (configuration_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.licensemanager.v1.Configuration configuration = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearConfiguration() { + bitField0_ = (bitField0_ & ~0x00000004); + configuration_ = null; + if (configurationBuilder_ != null) { + configurationBuilder_.dispose(); + configurationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.licensemanager.v1.Configuration configuration = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.licensemanager.v1.Configuration.Builder getConfigurationBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getConfigurationFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.licensemanager.v1.Configuration configuration = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.licensemanager.v1.ConfigurationOrBuilder getConfigurationOrBuilder() { + if (configurationBuilder_ != null) { + return configurationBuilder_.getMessageOrBuilder(); + } else { + return configuration_ == null + ? com.google.cloud.licensemanager.v1.Configuration.getDefaultInstance() + : configuration_; + } + } + + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.licensemanager.v1.Configuration configuration = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.licensemanager.v1.Configuration, + com.google.cloud.licensemanager.v1.Configuration.Builder, + com.google.cloud.licensemanager.v1.ConfigurationOrBuilder> + getConfigurationFieldBuilder() { + if (configurationBuilder_ == null) { + configurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.licensemanager.v1.Configuration, + com.google.cloud.licensemanager.v1.Configuration.Builder, + com.google.cloud.licensemanager.v1.ConfigurationOrBuilder>( + getConfiguration(), getParentForChildren(), isClean()); + configuration_ = null; + } + return configurationBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.licensemanager.v1.CreateConfigurationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.licensemanager.v1.CreateConfigurationRequest) + private static final com.google.cloud.licensemanager.v1.CreateConfigurationRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.licensemanager.v1.CreateConfigurationRequest(); + } + + public static com.google.cloud.licensemanager.v1.CreateConfigurationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateConfigurationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.CreateConfigurationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/CreateConfigurationRequestOrBuilder.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/CreateConfigurationRequestOrBuilder.java new file mode 100644 index 000000000000..807c8416c6e2 --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/CreateConfigurationRequestOrBuilder.java @@ -0,0 +1,179 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/licensemanager.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +public interface CreateConfigurationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.licensemanager.v1.CreateConfigurationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Value for parent.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. Value for parent.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. Id of the requesting object
+   * 
+ * + * string configuration_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The configurationId. + */ + java.lang.String getConfigurationId(); + + /** + * + * + *
+   * Required. Id of the requesting object
+   * 
+ * + * string configuration_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for configurationId. + */ + com.google.protobuf.ByteString getConfigurationIdBytes(); + + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * + * .google.cloud.licensemanager.v1.Configuration configuration = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the configuration field is set. + */ + boolean hasConfiguration(); + + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * + * .google.cloud.licensemanager.v1.Configuration configuration = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The configuration. + */ + com.google.cloud.licensemanager.v1.Configuration getConfiguration(); + + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * + * .google.cloud.licensemanager.v1.Configuration configuration = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.licensemanager.v1.ConfigurationOrBuilder getConfigurationOrBuilder(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/DeactivateConfigurationRequest.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/DeactivateConfigurationRequest.java new file mode 100644 index 000000000000..1d0cb155df31 --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/DeactivateConfigurationRequest.java @@ -0,0 +1,946 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/licensemanager.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +/** + * + * + *
+ * Message for deactivating a Configuration.
+ * 
+ * + * Protobuf type {@code google.cloud.licensemanager.v1.DeactivateConfigurationRequest} + */ +public final class DeactivateConfigurationRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.licensemanager.v1.DeactivateConfigurationRequest) + DeactivateConfigurationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DeactivateConfigurationRequest.newBuilder() to construct. + private DeactivateConfigurationRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeactivateConfigurationRequest() { + name_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeactivateConfigurationRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_DeactivateConfigurationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_DeactivateConfigurationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest.class, + com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * 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. Name of the resource.
+   * 
+ * + * + * 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 REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * For example, consider a situation where you make an initial request and
+   * the request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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; + } + } + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * For example, consider a situation where you make an initial request and
+   * the request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, 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.cloud.licensemanager.v1.DeactivateConfigurationRequest)) { + return super.equals(obj); + } + com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest other = + (com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest) obj; + + if (!getName().equals(other.getName())) return false; + 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().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.cloud.licensemanager.v1.DeactivateConfigurationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for deactivating a Configuration.
+   * 
+ * + * Protobuf type {@code google.cloud.licensemanager.v1.DeactivateConfigurationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.licensemanager.v1.DeactivateConfigurationRequest) + com.google.cloud.licensemanager.v1.DeactivateConfigurationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_DeactivateConfigurationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_DeactivateConfigurationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest.class, + com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest.Builder.class); + } + + // Construct using + // com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_DeactivateConfigurationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest + getDefaultInstanceForType() { + return com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest build() { + com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest buildPartial() { + com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest result = + new com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest) { + return mergeFrom((com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest other) { + if (other + == com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. Name of the resource.
+     * 
+ * + * + * 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. Name of the resource.
+     * 
+ * + * + * 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. Name of the resource.
+     * 
+ * + * + * 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. Name of the resource.
+     * 
+ * + * + * 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. Name of the resource.
+     * 
+ * + * + * 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 requestId_ = ""; + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.licensemanager.v1.DeactivateConfigurationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.licensemanager.v1.DeactivateConfigurationRequest) + private static final com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest(); + } + + public static com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeactivateConfigurationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/DeactivateConfigurationRequestOrBuilder.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/DeactivateConfigurationRequestOrBuilder.java new file mode 100644 index 000000000000..4e8e393fbb73 --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/DeactivateConfigurationRequestOrBuilder.java @@ -0,0 +1,110 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/licensemanager.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +public interface DeactivateConfigurationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.licensemanager.v1.DeactivateConfigurationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * For example, consider a situation where you make an initial request and
+   * the request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * For example, consider a situation where you make an initial request and
+   * the request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/DeleteConfigurationRequest.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/DeleteConfigurationRequest.java new file mode 100644 index 000000000000..950698f56c77 --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/DeleteConfigurationRequest.java @@ -0,0 +1,940 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/licensemanager.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +/** + * + * + *
+ * Message for deleting a Configuration
+ * 
+ * + * Protobuf type {@code google.cloud.licensemanager.v1.DeleteConfigurationRequest} + */ +public final class DeleteConfigurationRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.licensemanager.v1.DeleteConfigurationRequest) + DeleteConfigurationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DeleteConfigurationRequest.newBuilder() to construct. + private DeleteConfigurationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteConfigurationRequest() { + name_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteConfigurationRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_DeleteConfigurationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_DeleteConfigurationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.DeleteConfigurationRequest.class, + com.google.cloud.licensemanager.v1.DeleteConfigurationRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * 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. Name of the resource
+   * 
+ * + * + * 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 REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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; + } + } + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, 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.cloud.licensemanager.v1.DeleteConfigurationRequest)) { + return super.equals(obj); + } + com.google.cloud.licensemanager.v1.DeleteConfigurationRequest other = + (com.google.cloud.licensemanager.v1.DeleteConfigurationRequest) obj; + + if (!getName().equals(other.getName())) return false; + 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().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.cloud.licensemanager.v1.DeleteConfigurationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.DeleteConfigurationRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.DeleteConfigurationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.DeleteConfigurationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.DeleteConfigurationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.DeleteConfigurationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.DeleteConfigurationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.DeleteConfigurationRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.DeleteConfigurationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.DeleteConfigurationRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.DeleteConfigurationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.DeleteConfigurationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.licensemanager.v1.DeleteConfigurationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for deleting a Configuration
+   * 
+ * + * Protobuf type {@code google.cloud.licensemanager.v1.DeleteConfigurationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.licensemanager.v1.DeleteConfigurationRequest) + com.google.cloud.licensemanager.v1.DeleteConfigurationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_DeleteConfigurationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_DeleteConfigurationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.DeleteConfigurationRequest.class, + com.google.cloud.licensemanager.v1.DeleteConfigurationRequest.Builder.class); + } + + // Construct using com.google.cloud.licensemanager.v1.DeleteConfigurationRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_DeleteConfigurationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.DeleteConfigurationRequest + getDefaultInstanceForType() { + return com.google.cloud.licensemanager.v1.DeleteConfigurationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.DeleteConfigurationRequest build() { + com.google.cloud.licensemanager.v1.DeleteConfigurationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.DeleteConfigurationRequest buildPartial() { + com.google.cloud.licensemanager.v1.DeleteConfigurationRequest result = + new com.google.cloud.licensemanager.v1.DeleteConfigurationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.licensemanager.v1.DeleteConfigurationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.licensemanager.v1.DeleteConfigurationRequest) { + return mergeFrom((com.google.cloud.licensemanager.v1.DeleteConfigurationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.licensemanager.v1.DeleteConfigurationRequest other) { + if (other + == com.google.cloud.licensemanager.v1.DeleteConfigurationRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * 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. Name of the resource
+     * 
+ * + * + * 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. Name of the resource
+     * 
+ * + * + * 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. Name of the resource
+     * 
+ * + * + * 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. Name of the resource
+     * 
+ * + * + * 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 requestId_ = ""; + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.licensemanager.v1.DeleteConfigurationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.licensemanager.v1.DeleteConfigurationRequest) + private static final com.google.cloud.licensemanager.v1.DeleteConfigurationRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.licensemanager.v1.DeleteConfigurationRequest(); + } + + public static com.google.cloud.licensemanager.v1.DeleteConfigurationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteConfigurationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.DeleteConfigurationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/DeleteConfigurationRequestOrBuilder.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/DeleteConfigurationRequestOrBuilder.java new file mode 100644 index 000000000000..bffd4c84d079 --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/DeleteConfigurationRequestOrBuilder.java @@ -0,0 +1,110 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/licensemanager.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +public interface DeleteConfigurationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.licensemanager.v1.DeleteConfigurationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/GetConfigurationRequest.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/GetConfigurationRequest.java new file mode 100644 index 000000000000..d463dfa3d0b6 --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/GetConfigurationRequest.java @@ -0,0 +1,649 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/licensemanager.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +/** + * + * + *
+ * Message for getting a Configuration
+ * 
+ * + * Protobuf type {@code google.cloud.licensemanager.v1.GetConfigurationRequest} + */ +public final class GetConfigurationRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.licensemanager.v1.GetConfigurationRequest) + GetConfigurationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetConfigurationRequest.newBuilder() to construct. + private GetConfigurationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetConfigurationRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetConfigurationRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_GetConfigurationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_GetConfigurationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.GetConfigurationRequest.class, + com.google.cloud.licensemanager.v1.GetConfigurationRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * 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. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.licensemanager.v1.GetConfigurationRequest)) { + return super.equals(obj); + } + com.google.cloud.licensemanager.v1.GetConfigurationRequest other = + (com.google.cloud.licensemanager.v1.GetConfigurationRequest) 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.cloud.licensemanager.v1.GetConfigurationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.GetConfigurationRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.GetConfigurationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.GetConfigurationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.GetConfigurationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.GetConfigurationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.GetConfigurationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.GetConfigurationRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.GetConfigurationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.GetConfigurationRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.GetConfigurationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.GetConfigurationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.licensemanager.v1.GetConfigurationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for getting a Configuration
+   * 
+ * + * Protobuf type {@code google.cloud.licensemanager.v1.GetConfigurationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.licensemanager.v1.GetConfigurationRequest) + com.google.cloud.licensemanager.v1.GetConfigurationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_GetConfigurationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_GetConfigurationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.GetConfigurationRequest.class, + com.google.cloud.licensemanager.v1.GetConfigurationRequest.Builder.class); + } + + // Construct using com.google.cloud.licensemanager.v1.GetConfigurationRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_GetConfigurationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.GetConfigurationRequest getDefaultInstanceForType() { + return com.google.cloud.licensemanager.v1.GetConfigurationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.GetConfigurationRequest build() { + com.google.cloud.licensemanager.v1.GetConfigurationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.GetConfigurationRequest buildPartial() { + com.google.cloud.licensemanager.v1.GetConfigurationRequest result = + new com.google.cloud.licensemanager.v1.GetConfigurationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.licensemanager.v1.GetConfigurationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.licensemanager.v1.GetConfigurationRequest) { + return mergeFrom((com.google.cloud.licensemanager.v1.GetConfigurationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.licensemanager.v1.GetConfigurationRequest other) { + if (other == com.google.cloud.licensemanager.v1.GetConfigurationRequest.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. Name of the resource
+     * 
+ * + * + * 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. Name of the resource
+     * 
+ * + * + * 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. Name of the resource
+     * 
+ * + * + * 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. Name of the resource
+     * 
+ * + * + * 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. Name of the resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.licensemanager.v1.GetConfigurationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.licensemanager.v1.GetConfigurationRequest) + private static final com.google.cloud.licensemanager.v1.GetConfigurationRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.licensemanager.v1.GetConfigurationRequest(); + } + + public static com.google.cloud.licensemanager.v1.GetConfigurationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetConfigurationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.GetConfigurationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/GetConfigurationRequestOrBuilder.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/GetConfigurationRequestOrBuilder.java new file mode 100644 index 000000000000..43c6162ae22d --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/GetConfigurationRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/licensemanager.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +public interface GetConfigurationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.licensemanager.v1.GetConfigurationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * 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-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/GetInstanceRequest.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/GetInstanceRequest.java new file mode 100644 index 000000000000..bda321ea4d69 --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/GetInstanceRequest.java @@ -0,0 +1,649 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/licensemanager.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +/** + * + * + *
+ * Message for getting a Instance
+ * 
+ * + * Protobuf type {@code google.cloud.licensemanager.v1.GetInstanceRequest} + */ +public final class GetInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.licensemanager.v1.GetInstanceRequest) + GetInstanceRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetInstanceRequest.newBuilder() to construct. + private GetInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetInstanceRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetInstanceRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_GetInstanceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_GetInstanceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.GetInstanceRequest.class, + com.google.cloud.licensemanager.v1.GetInstanceRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * 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. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.licensemanager.v1.GetInstanceRequest)) { + return super.equals(obj); + } + com.google.cloud.licensemanager.v1.GetInstanceRequest other = + (com.google.cloud.licensemanager.v1.GetInstanceRequest) 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.cloud.licensemanager.v1.GetInstanceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.GetInstanceRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.GetInstanceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.GetInstanceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.GetInstanceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.GetInstanceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.GetInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.GetInstanceRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.GetInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.GetInstanceRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.GetInstanceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.GetInstanceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.licensemanager.v1.GetInstanceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for getting a Instance
+   * 
+ * + * Protobuf type {@code google.cloud.licensemanager.v1.GetInstanceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.licensemanager.v1.GetInstanceRequest) + com.google.cloud.licensemanager.v1.GetInstanceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_GetInstanceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_GetInstanceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.GetInstanceRequest.class, + com.google.cloud.licensemanager.v1.GetInstanceRequest.Builder.class); + } + + // Construct using com.google.cloud.licensemanager.v1.GetInstanceRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_GetInstanceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.GetInstanceRequest getDefaultInstanceForType() { + return com.google.cloud.licensemanager.v1.GetInstanceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.GetInstanceRequest build() { + com.google.cloud.licensemanager.v1.GetInstanceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.GetInstanceRequest buildPartial() { + com.google.cloud.licensemanager.v1.GetInstanceRequest result = + new com.google.cloud.licensemanager.v1.GetInstanceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.licensemanager.v1.GetInstanceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.licensemanager.v1.GetInstanceRequest) { + return mergeFrom((com.google.cloud.licensemanager.v1.GetInstanceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.licensemanager.v1.GetInstanceRequest other) { + if (other == com.google.cloud.licensemanager.v1.GetInstanceRequest.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. Name of the resource
+     * 
+ * + * + * 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. Name of the resource
+     * 
+ * + * + * 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. Name of the resource
+     * 
+ * + * + * 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. Name of the resource
+     * 
+ * + * + * 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. Name of the resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.licensemanager.v1.GetInstanceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.licensemanager.v1.GetInstanceRequest) + private static final com.google.cloud.licensemanager.v1.GetInstanceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.licensemanager.v1.GetInstanceRequest(); + } + + public static com.google.cloud.licensemanager.v1.GetInstanceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.GetInstanceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/GetInstanceRequestOrBuilder.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/GetInstanceRequestOrBuilder.java new file mode 100644 index 000000000000..d8596efd04b0 --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/GetInstanceRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/licensemanager.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +public interface GetInstanceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.licensemanager.v1.GetInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * 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-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/GetProductRequest.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/GetProductRequest.java new file mode 100644 index 000000000000..4d5545253523 --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/GetProductRequest.java @@ -0,0 +1,648 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/licensemanager.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +/** + * + * + *
+ * Message for getting a Product
+ * 
+ * + * Protobuf type {@code google.cloud.licensemanager.v1.GetProductRequest} + */ +public final class GetProductRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.licensemanager.v1.GetProductRequest) + GetProductRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetProductRequest.newBuilder() to construct. + private GetProductRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetProductRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetProductRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_GetProductRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_GetProductRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.GetProductRequest.class, + com.google.cloud.licensemanager.v1.GetProductRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * 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. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.licensemanager.v1.GetProductRequest)) { + return super.equals(obj); + } + com.google.cloud.licensemanager.v1.GetProductRequest other = + (com.google.cloud.licensemanager.v1.GetProductRequest) 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.cloud.licensemanager.v1.GetProductRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.GetProductRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.GetProductRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.GetProductRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.GetProductRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.GetProductRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.GetProductRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.GetProductRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.GetProductRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.GetProductRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.GetProductRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.GetProductRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.licensemanager.v1.GetProductRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for getting a Product
+   * 
+ * + * Protobuf type {@code google.cloud.licensemanager.v1.GetProductRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.licensemanager.v1.GetProductRequest) + com.google.cloud.licensemanager.v1.GetProductRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_GetProductRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_GetProductRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.GetProductRequest.class, + com.google.cloud.licensemanager.v1.GetProductRequest.Builder.class); + } + + // Construct using com.google.cloud.licensemanager.v1.GetProductRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_GetProductRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.GetProductRequest getDefaultInstanceForType() { + return com.google.cloud.licensemanager.v1.GetProductRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.GetProductRequest build() { + com.google.cloud.licensemanager.v1.GetProductRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.GetProductRequest buildPartial() { + com.google.cloud.licensemanager.v1.GetProductRequest result = + new com.google.cloud.licensemanager.v1.GetProductRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.licensemanager.v1.GetProductRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.licensemanager.v1.GetProductRequest) { + return mergeFrom((com.google.cloud.licensemanager.v1.GetProductRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.licensemanager.v1.GetProductRequest other) { + if (other == com.google.cloud.licensemanager.v1.GetProductRequest.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. Name of the resource
+     * 
+ * + * + * 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. Name of the resource
+     * 
+ * + * + * 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. Name of the resource
+     * 
+ * + * + * 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. Name of the resource
+     * 
+ * + * + * 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. Name of the resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.licensemanager.v1.GetProductRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.licensemanager.v1.GetProductRequest) + private static final com.google.cloud.licensemanager.v1.GetProductRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.licensemanager.v1.GetProductRequest(); + } + + public static com.google.cloud.licensemanager.v1.GetProductRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetProductRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.GetProductRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/GetProductRequestOrBuilder.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/GetProductRequestOrBuilder.java new file mode 100644 index 000000000000..c068e55386cb --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/GetProductRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/licensemanager.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +public interface GetProductRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.licensemanager.v1.GetProductRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * 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-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/Instance.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/Instance.java new file mode 100644 index 000000000000..d8861c106381 --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/Instance.java @@ -0,0 +1,3198 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/api_entities.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +/** + * + * + *
+ * Message describing Instance object
+ * 
+ * + * Protobuf type {@code google.cloud.licensemanager.v1.Instance} + */ +public final class Instance extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.licensemanager.v1.Instance) + InstanceOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Instance.newBuilder() to construct. + private Instance(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Instance() { + name_ = ""; + state_ = 0; + region_ = ""; + licenseVersionId_ = ""; + computeInstance_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Instance(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.ApiEntitiesProto + .internal_static_google_cloud_licensemanager_v1_Instance_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + case 7: + return internalGetProductActivation(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.ApiEntitiesProto + .internal_static_google_cloud_licensemanager_v1_Instance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.Instance.class, + com.google.cloud.licensemanager.v1.Instance.Builder.class); + } + + /** + * + * + *
+   * VM status enum.
+   * 
+ * + * Protobuf enum {@code google.cloud.licensemanager.v1.Instance.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The Status of the VM is unspecified.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * Resources are being allocated for the instance.
+     * 
+ * + * PROVISIONING = 1; + */ + PROVISIONING(1), + /** + * + * + *
+     * All required resources have been allocated and
+     * the instance is being started.
+     * 
+ * + * STAGING = 2; + */ + STAGING(2), + /** + * + * + *
+     * The instance is running.
+     * 
+ * + * RUNNING = 3; + */ + RUNNING(3), + /** + * + * + *
+     * The instance is currently stopping (either being deleted or terminated).
+     * 
+ * + * STOPPING = 4; + */ + STOPPING(4), + /** + * + * + *
+     * The instance has stopped due to various reasons (user request, VM
+     * preemption, project freezing, etc.).
+     * 
+ * + * STOPPED = 5; + */ + STOPPED(5), + /** + * + * + *
+     * The instance has failed in some way.
+     * 
+ * + * TERMINATED = 6; + */ + TERMINATED(6), + /** + * + * + *
+     * The instance is in repair.
+     * 
+ * + * REPAIRING = 7; + */ + REPAIRING(7), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * The Status of the VM is unspecified.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Resources are being allocated for the instance.
+     * 
+ * + * PROVISIONING = 1; + */ + public static final int PROVISIONING_VALUE = 1; + + /** + * + * + *
+     * All required resources have been allocated and
+     * the instance is being started.
+     * 
+ * + * STAGING = 2; + */ + public static final int STAGING_VALUE = 2; + + /** + * + * + *
+     * The instance is running.
+     * 
+ * + * RUNNING = 3; + */ + public static final int RUNNING_VALUE = 3; + + /** + * + * + *
+     * The instance is currently stopping (either being deleted or terminated).
+     * 
+ * + * STOPPING = 4; + */ + public static final int STOPPING_VALUE = 4; + + /** + * + * + *
+     * The instance has stopped due to various reasons (user request, VM
+     * preemption, project freezing, etc.).
+     * 
+ * + * STOPPED = 5; + */ + public static final int STOPPED_VALUE = 5; + + /** + * + * + *
+     * The instance has failed in some way.
+     * 
+ * + * TERMINATED = 6; + */ + public static final int TERMINATED_VALUE = 6; + + /** + * + * + *
+     * The instance is in repair.
+     * 
+ * + * REPAIRING = 7; + */ + public static final int REPAIRING_VALUE = 7; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return PROVISIONING; + case 2: + return STAGING; + case 3: + return RUNNING; + case 4: + return STOPPING; + case 5: + return STOPPED; + case 6: + return TERMINATED; + case 7: + return REPAIRING; + 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 State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.Instance.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State 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 State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.licensemanager.v1.Instance.State) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. name of resource
+   * 
+ * + * 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. name of resource
+   * 
+ * + * 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 CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. [Output only] Create time stamp
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. [Output only] Create time stamp
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
+   * Output only. [Output only] Create time stamp
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. [Output only] Update time stamp
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. [Output only] Update time stamp
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
+   * Output only. [Output only] Update time stamp
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int LABELS_FIELD_NUMBER = 4; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.licensemanager.v1.ApiEntitiesProto + .internal_static_google_cloud_licensemanager_v1_Instance_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int STATE_FIELD_NUMBER = 5; + private int state_ = 0; + + /** + * + * + *
+   * Output only. The state of the VM.
+   * 
+ * + * + * .google.cloud.licensemanager.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+   * Output only. The state of the VM.
+   * 
+ * + * + * .google.cloud.licensemanager.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.licensemanager.v1.Instance.State getState() { + com.google.cloud.licensemanager.v1.Instance.State result = + com.google.cloud.licensemanager.v1.Instance.State.forNumber(state_); + return result == null ? com.google.cloud.licensemanager.v1.Instance.State.UNRECOGNIZED : result; + } + + public static final int REGION_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + + /** + * + * + *
+   * Output only. The location of the VM.
+   * 
+ * + * string region = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The location of the VM.
+   * 
+ * + * string region = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRODUCT_ACTIVATION_FIELD_NUMBER = 7; + + private static final class ProductActivationDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.licensemanager.v1.ApiEntitiesProto + .internal_static_google_cloud_licensemanager_v1_Instance_ProductActivationEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.ENUM, + com.google.cloud.licensemanager.v1.ActivationState.ACTIVATION_STATE_UNSPECIFIED + .getNumber()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField productActivation_; + + private com.google.protobuf.MapField + internalGetProductActivation() { + if (productActivation_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ProductActivationDefaultEntryHolder.defaultEntry); + } + return productActivation_; + } + + private static final com.google.protobuf.Internal.MapAdapter.Converter< + java.lang.Integer, com.google.cloud.licensemanager.v1.ActivationState> + productActivationValueConverter = + com.google.protobuf.Internal.MapAdapter.newEnumConverter( + com.google.cloud.licensemanager.v1.ActivationState.internalGetValueMap(), + com.google.cloud.licensemanager.v1.ActivationState.UNRECOGNIZED); + + private static final java.util.Map< + java.lang.String, com.google.cloud.licensemanager.v1.ActivationState> + internalGetAdaptedProductActivationMap( + java.util.Map map) { + return new com.google.protobuf.Internal.MapAdapter< + java.lang.String, com.google.cloud.licensemanager.v1.ActivationState, java.lang.Integer>( + map, productActivationValueConverter); + } + + public int getProductActivationCount() { + return internalGetProductActivation().getMap().size(); + } + + /** + * + * + *
+   * Output only. Map with Product_Name and Activation State of the VM.
+   * 
+ * + * + * map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsProductActivation(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetProductActivation().getMap().containsKey(key); + } + + /** Use {@link #getProductActivationMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getProductActivation() { + return getProductActivationMap(); + } + + /** + * + * + *
+   * Output only. Map with Product_Name and Activation State of the VM.
+   * 
+ * + * + * map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map + getProductActivationMap() { + return internalGetAdaptedProductActivationMap(internalGetProductActivation().getMap()); + } + + /** + * + * + *
+   * Output only. Map with Product_Name and Activation State of the VM.
+   * 
+ * + * + * map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.licensemanager.v1.ActivationState + getProductActivationOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.licensemanager.v1.ActivationState defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetProductActivation().getMap(); + return map.containsKey(key) + ? productActivationValueConverter.doForward(map.get(key)) + : defaultValue; + } + + /** + * + * + *
+   * Output only. Map with Product_Name and Activation State of the VM.
+   * 
+ * + * + * map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.licensemanager.v1.ActivationState getProductActivationOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetProductActivation().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return productActivationValueConverter.doForward(map.get(key)); + } + + /** Use {@link #getProductActivationValueMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getProductActivationValue() { + return getProductActivationValueMap(); + } + + /** + * + * + *
+   * Output only. Map with Product_Name and Activation State of the VM.
+   * 
+ * + * + * map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map getProductActivationValueMap() { + return internalGetProductActivation().getMap(); + } + + /** + * + * + *
+   * Output only. Map with Product_Name and Activation State of the VM.
+   * 
+ * + * + * map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getProductActivationValueOrDefault(java.lang.String key, int defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetProductActivation().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Output only. Map with Product_Name and Activation State of the VM.
+   * 
+ * + * + * map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getProductActivationValueOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetProductActivation().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int LICENSE_VERSION_ID_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object licenseVersionId_ = ""; + + /** + * + * + *
+   * Output only. license version id.
+   * 
+ * + * string license_version_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The licenseVersionId. + */ + @java.lang.Override + public java.lang.String getLicenseVersionId() { + java.lang.Object ref = licenseVersionId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + licenseVersionId_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. license version id.
+   * 
+ * + * string license_version_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for licenseVersionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLicenseVersionIdBytes() { + java.lang.Object ref = licenseVersionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + licenseVersionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMPUTE_INSTANCE_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object computeInstance_ = ""; + + /** + * + * + *
+   * Required. Compute Instance resource name, i.e.
+   * projects/{project}/zones/{zone}/instances/{instance}
+   * 
+ * + * + * string compute_instance = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The computeInstance. + */ + @java.lang.Override + public java.lang.String getComputeInstance() { + java.lang.Object ref = computeInstance_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + computeInstance_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Compute Instance resource name, i.e.
+   * projects/{project}/zones/{zone}/instances/{instance}
+   * 
+ * + * + * string compute_instance = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for computeInstance. + */ + @java.lang.Override + public com.google.protobuf.ByteString getComputeInstanceBytes() { + java.lang.Object ref = computeInstance_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + computeInstance_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getUpdateTime()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + if (state_ != com.google.cloud.licensemanager.v1.Instance.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(5, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, region_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, + internalGetProductActivation(), + ProductActivationDefaultEntryHolder.defaultEntry, + 7); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(licenseVersionId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, licenseVersionId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(computeInstance_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, computeInstance_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + } + if (state_ != com.google.cloud.licensemanager.v1.Instance.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, region_); + } + for (java.util.Map.Entry entry : + internalGetProductActivation().getMap().entrySet()) { + com.google.protobuf.MapEntry productActivation__ = + ProductActivationDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, productActivation__); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(licenseVersionId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, licenseVersionId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(computeInstance_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, computeInstance_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.licensemanager.v1.Instance)) { + return super.equals(obj); + } + com.google.cloud.licensemanager.v1.Instance other = + (com.google.cloud.licensemanager.v1.Instance) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (state_ != other.state_) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (!internalGetProductActivation().equals(other.internalGetProductActivation())) return false; + if (!getLicenseVersionId().equals(other.getLicenseVersionId())) return false; + if (!getComputeInstance().equals(other.getComputeInstance())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + if (!internalGetProductActivation().getMap().isEmpty()) { + hash = (37 * hash) + PRODUCT_ACTIVATION_FIELD_NUMBER; + hash = (53 * hash) + internalGetProductActivation().hashCode(); + } + hash = (37 * hash) + LICENSE_VERSION_ID_FIELD_NUMBER; + hash = (53 * hash) + getLicenseVersionId().hashCode(); + hash = (37 * hash) + COMPUTE_INSTANCE_FIELD_NUMBER; + hash = (53 * hash) + getComputeInstance().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.licensemanager.v1.Instance parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.Instance parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.Instance parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.Instance parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.Instance parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.Instance parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.Instance parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.Instance parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.Instance parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.Instance parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.Instance parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.Instance parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.licensemanager.v1.Instance prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message describing Instance object
+   * 
+ * + * Protobuf type {@code google.cloud.licensemanager.v1.Instance} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.licensemanager.v1.Instance) + com.google.cloud.licensemanager.v1.InstanceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.ApiEntitiesProto + .internal_static_google_cloud_licensemanager_v1_Instance_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + case 7: + return internalGetProductActivation(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMutableLabels(); + case 7: + return internalGetMutableProductActivation(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.ApiEntitiesProto + .internal_static_google_cloud_licensemanager_v1_Instance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.Instance.class, + com.google.cloud.licensemanager.v1.Instance.Builder.class); + } + + // Construct using com.google.cloud.licensemanager.v1.Instance.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + state_ = 0; + region_ = ""; + internalGetMutableProductActivation().clear(); + licenseVersionId_ = ""; + computeInstance_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.licensemanager.v1.ApiEntitiesProto + .internal_static_google_cloud_licensemanager_v1_Instance_descriptor; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.Instance getDefaultInstanceForType() { + return com.google.cloud.licensemanager.v1.Instance.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.Instance build() { + com.google.cloud.licensemanager.v1.Instance result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.Instance buildPartial() { + com.google.cloud.licensemanager.v1.Instance result = + new com.google.cloud.licensemanager.v1.Instance(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.licensemanager.v1.Instance result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.region_ = region_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.productActivation_ = internalGetProductActivation(); + result.productActivation_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.licenseVersionId_ = licenseVersionId_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.computeInstance_ = computeInstance_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.licensemanager.v1.Instance) { + return mergeFrom((com.google.cloud.licensemanager.v1.Instance) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.licensemanager.v1.Instance other) { + if (other == com.google.cloud.licensemanager.v1.Instance.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000008; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000020; + onChanged(); + } + internalGetMutableProductActivation().mergeFrom(other.internalGetProductActivation()); + bitField0_ |= 0x00000040; + if (!other.getLicenseVersionId().isEmpty()) { + licenseVersionId_ = other.licenseVersionId_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.getComputeInstance().isEmpty()) { + computeInstance_ = other.computeInstance_; + bitField0_ |= 0x00000100; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + com.google.protobuf.MapEntry + productActivation__ = + input.readMessage( + ProductActivationDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableProductActivation() + .getMutableMap() + .put(productActivation__.getKey(), productActivation__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + licenseVersionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: + { + computeInstance_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Identifier. name of resource
+     * 
+ * + * 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. name of resource
+     * 
+ * + * 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. name of resource
+     * 
+ * + * 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. name of resource
+     * 
+ * + * 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. name of resource
+     * 
+ * + * 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 com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000008; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
+     * Optional. Labels as key value pairs
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
+     * Optional. Labels as key value pairs
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
+     * Optional. Labels as key value pairs
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Optional. Labels as key value pairs
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * Optional. Labels as key value pairs
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000008; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
+     * Optional. Labels as key value pairs
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000008; + return this; + } + + /** + * + * + *
+     * Optional. Labels as key value pairs
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; + return this; + } + + private int state_ = 0; + + /** + * + * + *
+     * Output only. The state of the VM.
+     * 
+ * + * + * .google.cloud.licensemanager.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+     * Output only. The state of the VM.
+     * 
+ * + * + * .google.cloud.licensemanager.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The state of the VM.
+     * 
+ * + * + * .google.cloud.licensemanager.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.licensemanager.v1.Instance.State getState() { + com.google.cloud.licensemanager.v1.Instance.State result = + com.google.cloud.licensemanager.v1.Instance.State.forNumber(state_); + return result == null + ? com.google.cloud.licensemanager.v1.Instance.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. The state of the VM.
+     * 
+ * + * + * .google.cloud.licensemanager.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.licensemanager.v1.Instance.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The state of the VM.
+     * 
+ * + * + * .google.cloud.licensemanager.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000010); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + + /** + * + * + *
+     * Output only. The location of the VM.
+     * 
+ * + * string region = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The location of the VM.
+     * 
+ * + * string region = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The location of the VM.
+     * 
+ * + * string region = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The location of the VM.
+     * 
+ * + * string region = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The location of the VM.
+     * 
+ * + * string region = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.protobuf.MapField productActivation_; + + private com.google.protobuf.MapField + internalGetProductActivation() { + if (productActivation_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ProductActivationDefaultEntryHolder.defaultEntry); + } + return productActivation_; + } + + private com.google.protobuf.MapField + internalGetMutableProductActivation() { + if (productActivation_ == null) { + productActivation_ = + com.google.protobuf.MapField.newMapField( + ProductActivationDefaultEntryHolder.defaultEntry); + } + if (!productActivation_.isMutable()) { + productActivation_ = productActivation_.copy(); + } + bitField0_ |= 0x00000040; + onChanged(); + return productActivation_; + } + + public int getProductActivationCount() { + return internalGetProductActivation().getMap().size(); + } + + /** + * + * + *
+     * Output only. Map with Product_Name and Activation State of the VM.
+     * 
+ * + * + * map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsProductActivation(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetProductActivation().getMap().containsKey(key); + } + + /** Use {@link #getProductActivationMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getProductActivation() { + return getProductActivationMap(); + } + + /** + * + * + *
+     * Output only. Map with Product_Name and Activation State of the VM.
+     * 
+ * + * + * map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map + getProductActivationMap() { + return internalGetAdaptedProductActivationMap(internalGetProductActivation().getMap()); + } + + /** + * + * + *
+     * Output only. Map with Product_Name and Activation State of the VM.
+     * 
+ * + * + * map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.licensemanager.v1.ActivationState + getProductActivationOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.licensemanager.v1.ActivationState defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetProductActivation().getMap(); + return map.containsKey(key) + ? productActivationValueConverter.doForward(map.get(key)) + : defaultValue; + } + + /** + * + * + *
+     * Output only. Map with Product_Name and Activation State of the VM.
+     * 
+ * + * + * map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.licensemanager.v1.ActivationState getProductActivationOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetProductActivation().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return productActivationValueConverter.doForward(map.get(key)); + } + + /** Use {@link #getProductActivationValueMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getProductActivationValue() { + return getProductActivationValueMap(); + } + + /** + * + * + *
+     * Output only. Map with Product_Name and Activation State of the VM.
+     * 
+ * + * + * map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map getProductActivationValueMap() { + return internalGetProductActivation().getMap(); + } + + /** + * + * + *
+     * Output only. Map with Product_Name and Activation State of the VM.
+     * 
+ * + * + * map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getProductActivationValueOrDefault(java.lang.String key, int defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetProductActivation().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Output only. Map with Product_Name and Activation State of the VM.
+     * 
+ * + * + * map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getProductActivationValueOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetProductActivation().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearProductActivation() { + bitField0_ = (bitField0_ & ~0x00000040); + internalGetMutableProductActivation().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * Output only. Map with Product_Name and Activation State of the VM.
+     * 
+ * + * + * map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeProductActivation(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableProductActivation().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableProductActivation() { + bitField0_ |= 0x00000040; + return internalGetAdaptedProductActivationMap( + internalGetMutableProductActivation().getMutableMap()); + } + + /** + * + * + *
+     * Output only. Map with Product_Name and Activation State of the VM.
+     * 
+ * + * + * map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putProductActivation( + java.lang.String key, com.google.cloud.licensemanager.v1.ActivationState value) { + if (key == null) { + throw new NullPointerException("map key"); + } + + internalGetMutableProductActivation() + .getMutableMap() + .put(key, productActivationValueConverter.doBackward(value)); + bitField0_ |= 0x00000040; + return this; + } + + /** + * + * + *
+     * Output only. Map with Product_Name and Activation State of the VM.
+     * 
+ * + * + * map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putAllProductActivation( + java.util.Map + values) { + internalGetAdaptedProductActivationMap(internalGetMutableProductActivation().getMutableMap()) + .putAll(values); + bitField0_ |= 0x00000040; + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableProductActivationValue() { + bitField0_ |= 0x00000040; + return internalGetMutableProductActivation().getMutableMap(); + } + + /** + * + * + *
+     * Output only. Map with Product_Name and Activation State of the VM.
+     * 
+ * + * + * map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putProductActivationValue(java.lang.String key, int value) { + if (key == null) { + throw new NullPointerException("map key"); + } + + internalGetMutableProductActivation().getMutableMap().put(key, value); + bitField0_ |= 0x00000040; + return this; + } + + /** + * + * + *
+     * Output only. Map with Product_Name and Activation State of the VM.
+     * 
+ * + * + * map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putAllProductActivationValue( + java.util.Map values) { + internalGetMutableProductActivation().getMutableMap().putAll(values); + bitField0_ |= 0x00000040; + return this; + } + + private java.lang.Object licenseVersionId_ = ""; + + /** + * + * + *
+     * Output only. license version id.
+     * 
+ * + * string license_version_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The licenseVersionId. + */ + public java.lang.String getLicenseVersionId() { + java.lang.Object ref = licenseVersionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + licenseVersionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. license version id.
+     * 
+ * + * string license_version_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for licenseVersionId. + */ + public com.google.protobuf.ByteString getLicenseVersionIdBytes() { + java.lang.Object ref = licenseVersionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + licenseVersionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. license version id.
+     * 
+ * + * string license_version_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The licenseVersionId to set. + * @return This builder for chaining. + */ + public Builder setLicenseVersionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + licenseVersionId_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. license version id.
+     * 
+ * + * string license_version_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearLicenseVersionId() { + licenseVersionId_ = getDefaultInstance().getLicenseVersionId(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. license version id.
+     * 
+ * + * string license_version_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for licenseVersionId to set. + * @return This builder for chaining. + */ + public Builder setLicenseVersionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + licenseVersionId_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object computeInstance_ = ""; + + /** + * + * + *
+     * Required. Compute Instance resource name, i.e.
+     * projects/{project}/zones/{zone}/instances/{instance}
+     * 
+ * + * + * string compute_instance = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The computeInstance. + */ + public java.lang.String getComputeInstance() { + java.lang.Object ref = computeInstance_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + computeInstance_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Compute Instance resource name, i.e.
+     * projects/{project}/zones/{zone}/instances/{instance}
+     * 
+ * + * + * string compute_instance = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for computeInstance. + */ + public com.google.protobuf.ByteString getComputeInstanceBytes() { + java.lang.Object ref = computeInstance_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + computeInstance_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Compute Instance resource name, i.e.
+     * projects/{project}/zones/{zone}/instances/{instance}
+     * 
+ * + * + * string compute_instance = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The computeInstance to set. + * @return This builder for chaining. + */ + public Builder setComputeInstance(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + computeInstance_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Compute Instance resource name, i.e.
+     * projects/{project}/zones/{zone}/instances/{instance}
+     * 
+ * + * + * string compute_instance = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearComputeInstance() { + computeInstance_ = getDefaultInstance().getComputeInstance(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Compute Instance resource name, i.e.
+     * projects/{project}/zones/{zone}/instances/{instance}
+     * 
+ * + * + * string compute_instance = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for computeInstance to set. + * @return This builder for chaining. + */ + public Builder setComputeInstanceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + computeInstance_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.licensemanager.v1.Instance) + } + + // @@protoc_insertion_point(class_scope:google.cloud.licensemanager.v1.Instance) + private static final com.google.cloud.licensemanager.v1.Instance DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.licensemanager.v1.Instance(); + } + + public static com.google.cloud.licensemanager.v1.Instance getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Instance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.Instance getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/InstanceName.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/InstanceName.java new file mode 100644 index 000000000000..4a5d32082369 --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/InstanceName.java @@ -0,0 +1,223 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class InstanceName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_INSTANCE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/instances/{instance}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String instance; + + @Deprecated + protected InstanceName() { + project = null; + location = null; + instance = null; + } + + private InstanceName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + instance = Preconditions.checkNotNull(builder.getInstance()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getInstance() { + return instance; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static InstanceName of(String project, String location, String instance) { + return newBuilder().setProject(project).setLocation(location).setInstance(instance).build(); + } + + public static String format(String project, String location, String instance) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setInstance(instance) + .build() + .toString(); + } + + public static InstanceName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_INSTANCE.validatedMatch( + formattedString, "InstanceName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("instance")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (InstanceName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_INSTANCE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (instance != null) { + fieldMapBuilder.put("instance", instance); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_INSTANCE.instantiate( + "project", project, "location", location, "instance", instance); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + InstanceName that = ((InstanceName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.instance, that.instance); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(instance); + return h; + } + + /** Builder for projects/{project}/locations/{location}/instances/{instance}. */ + public static class Builder { + private String project; + private String location; + private String instance; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getInstance() { + return instance; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setInstance(String instance) { + this.instance = instance; + return this; + } + + private Builder(InstanceName instanceName) { + this.project = instanceName.project; + this.location = instanceName.location; + this.instance = instanceName.instance; + } + + public InstanceName build() { + return new InstanceName(this); + } + } +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/InstanceOrBuilder.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/InstanceOrBuilder.java new file mode 100644 index 000000000000..8bf2711fabca --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/InstanceOrBuilder.java @@ -0,0 +1,428 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/api_entities.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +public interface InstanceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.licensemanager.v1.Instance) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. name of resource
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. name of resource
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. [Output only] Create time stamp
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. [Output only] Create time stamp
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. [Output only] Create time stamp
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. [Output only] Update time stamp
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. [Output only] Update time stamp
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. [Output only] Update time stamp
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. The state of the VM.
+   * 
+ * + * + * .google.cloud.licensemanager.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
+   * Output only. The state of the VM.
+   * 
+ * + * + * .google.cloud.licensemanager.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.licensemanager.v1.Instance.State getState(); + + /** + * + * + *
+   * Output only. The location of the VM.
+   * 
+ * + * string region = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The region. + */ + java.lang.String getRegion(); + + /** + * + * + *
+   * Output only. The location of the VM.
+   * 
+ * + * string region = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + + /** + * + * + *
+   * Output only. Map with Product_Name and Activation State of the VM.
+   * 
+ * + * + * map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getProductActivationCount(); + + /** + * + * + *
+   * Output only. Map with Product_Name and Activation State of the VM.
+   * 
+ * + * + * map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + boolean containsProductActivation(java.lang.String key); + + /** Use {@link #getProductActivationMap()} instead. */ + @java.lang.Deprecated + java.util.Map + getProductActivation(); + + /** + * + * + *
+   * Output only. Map with Product_Name and Activation State of the VM.
+   * 
+ * + * + * map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.Map + getProductActivationMap(); + + /** + * + * + *
+   * Output only. Map with Product_Name and Activation State of the VM.
+   * 
+ * + * + * map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + /* nullable */ + com.google.cloud.licensemanager.v1.ActivationState getProductActivationOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.licensemanager.v1.ActivationState defaultValue); + + /** + * + * + *
+   * Output only. Map with Product_Name and Activation State of the VM.
+   * 
+ * + * + * map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.licensemanager.v1.ActivationState getProductActivationOrThrow( + java.lang.String key); + + /** Use {@link #getProductActivationValueMap()} instead. */ + @java.lang.Deprecated + java.util.Map getProductActivationValue(); + + /** + * + * + *
+   * Output only. Map with Product_Name and Activation State of the VM.
+   * 
+ * + * + * map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.Map getProductActivationValueMap(); + + /** + * + * + *
+   * Output only. Map with Product_Name and Activation State of the VM.
+   * 
+ * + * + * map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getProductActivationValueOrDefault(java.lang.String key, int defaultValue); + + /** + * + * + *
+   * Output only. Map with Product_Name and Activation State of the VM.
+   * 
+ * + * + * map<string, .google.cloud.licensemanager.v1.ActivationState> product_activation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getProductActivationValueOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. license version id.
+   * 
+ * + * string license_version_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The licenseVersionId. + */ + java.lang.String getLicenseVersionId(); + + /** + * + * + *
+   * Output only. license version id.
+   * 
+ * + * string license_version_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for licenseVersionId. + */ + com.google.protobuf.ByteString getLicenseVersionIdBytes(); + + /** + * + * + *
+   * Required. Compute Instance resource name, i.e.
+   * projects/{project}/zones/{zone}/instances/{instance}
+   * 
+ * + * + * string compute_instance = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The computeInstance. + */ + java.lang.String getComputeInstance(); + + /** + * + * + *
+   * Required. Compute Instance resource name, i.e.
+   * projects/{project}/zones/{zone}/instances/{instance}
+   * 
+ * + * + * string compute_instance = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for computeInstance. + */ + com.google.protobuf.ByteString getComputeInstanceBytes(); +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/LicenseManagerProto.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/LicenseManagerProto.java new file mode 100644 index 000000000000..ab14969b7815 --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/LicenseManagerProto.java @@ -0,0 +1,486 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/licensemanager.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +public final class LicenseManagerProto { + private LicenseManagerProto() {} + + 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_cloud_licensemanager_v1_ListConfigurationsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_licensemanager_v1_ListConfigurationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_licensemanager_v1_ListConfigurationsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_licensemanager_v1_ListConfigurationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_licensemanager_v1_GetConfigurationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_licensemanager_v1_GetConfigurationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_licensemanager_v1_CreateConfigurationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_licensemanager_v1_CreateConfigurationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_licensemanager_v1_UpdateConfigurationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_licensemanager_v1_UpdateConfigurationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_licensemanager_v1_DeleteConfigurationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_licensemanager_v1_DeleteConfigurationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_licensemanager_v1_ListInstancesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_licensemanager_v1_ListInstancesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_licensemanager_v1_ListInstancesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_licensemanager_v1_ListInstancesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_licensemanager_v1_GetInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_licensemanager_v1_GetInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_licensemanager_v1_QueryConfigurationLicenseUsageRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_licensemanager_v1_QueryConfigurationLicenseUsageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_licensemanager_v1_QueryConfigurationLicenseUsageResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_licensemanager_v1_QueryConfigurationLicenseUsageResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_licensemanager_v1_DeactivateConfigurationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_licensemanager_v1_DeactivateConfigurationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_licensemanager_v1_ReactivateConfigurationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_licensemanager_v1_ReactivateConfigurationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_licensemanager_v1_AggregateUsageRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_licensemanager_v1_AggregateUsageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_licensemanager_v1_AggregateUsageResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_licensemanager_v1_AggregateUsageResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_licensemanager_v1_ListProductsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_licensemanager_v1_ListProductsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_licensemanager_v1_ListProductsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_licensemanager_v1_ListProductsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_licensemanager_v1_GetProductRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_licensemanager_v1_GetProductRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_licensemanager_v1_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_licensemanager_v1_OperationMetadata_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" + + "3google/cloud/licensemanager/v1/licensemanager.proto\022\036google.cloud.licensemanag" + + "er.v1\032\034google/api/annotations.proto\032\027goo" + + "gle/api/client.proto\032\037google/api/field_b" + + "ehavior.proto\032\033google/api/field_info.pro" + + "to\032\031google/api/resource.proto\0321google/cl" + + "oud/licensemanager/v1/api_entities.proto" + + "\032#google/longrunning/operations.proto\032\033google/protobuf/empty.proto\032" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\275\001\n" + + "\031ListConfigurationsRequest\022C\n" + + "\006parent\030\001 \001(" + + "\tB3\340A\002\372A-\022+licensemanager.googleapis.com/Configuration\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\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\"\221\001\n" + + "\032ListConfigurationsResponse\022E\n" + + "\016configurations\030\001" + + " \003(\0132-.google.cloud.licensemanager.v1.Configuration\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t\"\\\n" + + "\027GetConfigurationRequest\022A\n" + + "\004name\030\001 \001(\tB3\340A\002\372A-\n" + + "+licensemanager.googleapis.com/Configuration\"\354\001\n" + + "\032CreateConfigurationRequest\022C\n" + + "\006parent\030\001 \001(" + + "\tB3\340A\002\372A-\022+licensemanager.googleapis.com/Configuration\022\035\n" + + "\020configuration_id\030\002 \001(\tB\003\340A\002\022I\n\r" + + "configuration\030\003 \001(" + + "\0132-.google.cloud.licensemanager.v1.ConfigurationB\003\340A\002\022\037\n\n" + + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\276\001\n" + + "\032UpdateConfigurationRequest\0224\n" + + "\013update_mask\030\001" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022I\n\r" + + "configuration\030\002 \001(\0132-.goo" + + "gle.cloud.licensemanager.v1.ConfigurationB\003\340A\002\022\037\n\n" + + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\200\001\n" + + "\032DeleteConfigurationRequest\022A\n" + + "\004name\030\001 \001(\tB3\340A\002\372A-\n" + + "+licensemanager.googleapis.com/Configuration\022\037\n\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\263\001\n" + + "\024ListInstancesRequest\022>\n" + + "\006parent\030\001 \001(" + + "\tB.\340A\002\372A(\022&licensemanager.googleapis.com/Instance\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\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\"\202\001\n" + + "\025ListInstancesResponse\022;\n" + + "\tinstances\030\001 \003(\0132(.google.cloud.licensemanager.v1.Instance\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t\"R\n" + + "\022GetInstanceRequest\022<\n" + + "\004name\030\001 \001(\tB.\340A\002\372A(\n" + + "&licensemanager.googleapis.com/Instance\"\322\001\n" + + "%QueryConfigurationLicenseUsageRequest\022A\n" + + "\004name\030\001 \001(\tB3\340A\002\372A-\n" + + "+licensemanager.googleapis.com/Configuration\0223\n\n" + + "start_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\002\0221\n" + + "\010end_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\002\"\177\n" + + "&QueryConfigurationLicenseUsageResponse\022J\n" + + "\020user_count_usage\030\001" + + " \001(\0132..google.cloud.licensemanager.v1.UserCountUsageH\000B\t\n" + + "\007details\"\204\001\n" + + "\036DeactivateConfigurationRequest\022A\n" + + "\004name\030\001 \001(\tB3\340A\002\372A-\n" + + "+licensemanager.googleapis.com/Configuration\022\037\n\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\204\001\n" + + "\036ReactivateConfigurationRequest\022A\n" + + "\004name\030\001 \001(\tB3\340A\002\372A-\n" + + "+licensemanager.googleapis.com/Configuration\022\037\n\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\237\002\n" + + "\025AggregateUsageRequest\022A\n" + + "\004name\030\001 \001(\tB3\340A\002\372A-\n" + + "+licensemanager.googleapis.com/Configuration\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\023\n" + + "\006filter\030\005 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\006 \001(\tB\003\340A\001\0223\n\n" + + "start_time\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\002\0221\n" + + "\010end_time\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340A\002\"}\n" + + "\026AggregateUsageResponse\0225\n" + + "\006usages\030\001 \003(\0132%.google.cloud.licensemanager.v1.Usage\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t\"\261\001\n" + + "\023ListProductsRequest\022=\n" + + "\006parent\030\001 \001(\tB-" + + "\340A\002\372A\'\022%licensemanager.googleapis.com/Product\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\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\"\177\n" + + "\024ListProductsResponse\0229\n" + + "\010products\030\001 \003(\0132\'.google.cloud.licensemanager.v1.Product\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t\"P\n" + + "\021GetProductRequest\022;\n" + + "\004name\030\001 \001(\tB-\340A\002\372A\'\n" + + "%licensemanager.googleapis.com/Product\"\200\002\n" + + "\021OperationMetadata\0224\n" + + "\013create_time\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221\n" + + "\010end_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n" + + "\006target\030\003 \001(\tB\003\340A\003\022\021\n" + + "\004verb\030\004 \001(\tB\003\340A\003\022\033\n" + + "\016status_message\030\005 \001(\tB\003\340A\003\022#\n" + + "\026requested_cancellation\030\006 \001(\010B\003\340A\003\022\030\n" + + "\013api_version\030\007 \001(\tB\003\340A\0032\246\027\n" + + "\016LicenseManager\022\320\001\n" + + "\022ListConfigurations\0229.google.cloud.licensemanager" + + ".v1.ListConfigurationsRequest\032:.google.cloud.licensemanager.v1.ListConfiguration" + + "sResponse\"C\332A\006parent\202\323\344\223\0024\0222/v1/{parent=" + + "projects/*/locations/*}/configurations\022\275\001\n" + + "\020GetConfiguration\0227.google.cloud.licen" + + "semanager.v1.GetConfigurationRequest\032-.google.cloud.licensemanager.v1.Configurat" + + "ion\"A\332A\004name\202\323\344\223\0024\0222/v1/{name=projects/*/locations/*/configurations/*}\022\211\002\n" + + "\023CreateConfiguration\022:.google.cloud.licenseman" + + "ager.v1.CreateConfigurationRequest\032\035.google.longrunning.Operation\"\226\001\312A\"\n\r" + + "Configuration\022\021OperationMetadata\332A%parent,confi" + + "guration,configuration_id\202\323\344\223\002C\"2/v1/{pa" + + "rent=projects/*/locations/*}/configurations:\r" + + "configuration\022\213\002\n" + + "\023UpdateConfiguration\022:.google.cloud.licensemanager.v1.Upda" + + "teConfigurationRequest\032\035.google.longrunning.Operation\"\230\001\312A\"\n\r" + + "Configuration\022\021OperationMetadata\332A\031configuration,update_mas" + + "k\202\323\344\223\002Q2@/v1/{configuration.name=projects/*/locations/*/configurations/*}:\r" + + "configuration\022\340\001\n" + + "\023DeleteConfiguration\022:.google.cloud.licensemanager.v1.DeleteConfigur" + + "ationRequest\032\035.google.longrunning.Operation\"n\312A*\n" + + "\025google.protobuf.Empty\022\021Operati" + + "onMetadata\332A\004name\202\323\344\223\0024*2/v1/{name=projects/*/locations/*/configurations/*}\022\274\001\n\r" + + "ListInstances\0224.google.cloud.licensemanager.v1.ListInstancesRequest\0325.google.clo" + + "ud.licensemanager.v1.ListInstancesRespon" + + "se\">\332A\006parent\202\323\344\223\002/\022-/v1/{parent=projects/*/locations/*}/instances\022\251\001\n" + + "\013GetInstance\0222.google.cloud.licensemanager.v1.GetI" + + "nstanceRequest\032(.google.cloud.licenseman" + + "ager.v1.Instance\"<\332A\004name\202\323\344\223\002/\022-/v1/{na" + + "me=projects/*/locations/*/instances/*}\022\356\001\n" + + "\027DeactivateConfiguration\022>.google.cloud.licensemanager.v1.DeactivateConfigurat" + + "ionRequest\032\035.google.longrunning.Operation\"t\312A\"\n\r" + + "Configuration\022\021OperationMetadata" + + "\332A\004name\202\323\344\223\002B\"=/v1/{name=projects/*/loca" + + "tions/*/configurations/*}:deactivate:\001*\022\356\001\n" + + "\027ReactivateConfiguration\022>.google.cloud.licensemanager.v1.ReactivateConfigura" + + "tionRequest\032\035.google.longrunning.Operation\"t\312A\"\n\r" + + "Configuration\022\021OperationMetadat" + + "a\332A\004name\202\323\344\223\002B\"=/v1/{name=projects/*/loc" + + "ations/*/configurations/*}:reactivate:\001*\022\230\002\n" + + "\036QueryConfigurationLicenseUsage\022E.google.cloud.licensemanager.v1.QueryConfig" + + "urationLicenseUsageRequest\032F.google.cloud.licensemanager.v1.QueryConfigurationLi" + + "censeUsageResponse\"g\332A\030name,start_time,e" + + "nd_time\202\323\344\223\002F\022D/v1/{name=projects/*/loca" + + "tions/*/configurations/*}:queryLicenseUsage\022\345\001\n" + + "\016AggregateUsage\0225.google.cloud.licensemanager.v1.AggregateUsageRequest\0326." + + "google.cloud.licensemanager.v1.Aggregate" + + "UsageResponse\"d\332A\030name,start_time,end_ti" + + "me\202\323\344\223\002C\022A/v1/{name=projects/*/locations/*/configurations/*}:aggregateUsage\022\270\001\n" + + "\014ListProducts\0223.google.cloud.licensemanag" + + "er.v1.ListProductsRequest\0324.google.cloud.licensemanager.v1.ListProductsResponse\"" + + "=\332A\006parent\202\323\344\223\002.\022,/v1/{parent=projects/*/locations/*}/products\022\245\001\n\n" + + "GetProduct\0221.google.cloud.licensemanager.v1.GetProduc" + + "tRequest\032\'.google.cloud.licensemanager.v" + + "1.Product\";\332A\004name\202\323\344\223\002.\022,/v1/{name=proj" + + "ects/*/locations/*/products/*}\032Q\312A\035licen" + + "semanager.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\316\002\n" + + "\"com.google.cloud.licensemanager.v1B\023Licens" + + "eManagerProtoP\001ZJcloud.google.com/go/licensemanager/apiv1/licensemanagerpb;licen" + + "semanagerpb\252\002\036Google.Cloud.LicenseManage" + + "r.V1\312\002\036Google\\Cloud\\LicenseManager\\V1\352\002!Google::Cloud::LicenseManager::V1\352A^\n" + + "&compute.googleapis.com/ComputeInstance\0224projects/{project}/zones/{zone}/instances/" + + "{instance}b\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.FieldInfoProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.licensemanager.v1.ApiEntitiesProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_licensemanager_v1_ListConfigurationsRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_licensemanager_v1_ListConfigurationsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_licensemanager_v1_ListConfigurationsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_licensemanager_v1_ListConfigurationsResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_licensemanager_v1_ListConfigurationsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_licensemanager_v1_ListConfigurationsResponse_descriptor, + new java.lang.String[] { + "Configurations", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_licensemanager_v1_GetConfigurationRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_licensemanager_v1_GetConfigurationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_licensemanager_v1_GetConfigurationRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_licensemanager_v1_CreateConfigurationRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_licensemanager_v1_CreateConfigurationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_licensemanager_v1_CreateConfigurationRequest_descriptor, + new java.lang.String[] { + "Parent", "ConfigurationId", "Configuration", "RequestId", + }); + internal_static_google_cloud_licensemanager_v1_UpdateConfigurationRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_licensemanager_v1_UpdateConfigurationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_licensemanager_v1_UpdateConfigurationRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "Configuration", "RequestId", + }); + internal_static_google_cloud_licensemanager_v1_DeleteConfigurationRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_licensemanager_v1_DeleteConfigurationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_licensemanager_v1_DeleteConfigurationRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_licensemanager_v1_ListInstancesRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_licensemanager_v1_ListInstancesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_licensemanager_v1_ListInstancesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_licensemanager_v1_ListInstancesResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_licensemanager_v1_ListInstancesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_licensemanager_v1_ListInstancesResponse_descriptor, + new java.lang.String[] { + "Instances", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_licensemanager_v1_GetInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_licensemanager_v1_GetInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_licensemanager_v1_GetInstanceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_licensemanager_v1_QueryConfigurationLicenseUsageRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_licensemanager_v1_QueryConfigurationLicenseUsageRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_licensemanager_v1_QueryConfigurationLicenseUsageRequest_descriptor, + new java.lang.String[] { + "Name", "StartTime", "EndTime", + }); + internal_static_google_cloud_licensemanager_v1_QueryConfigurationLicenseUsageResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_licensemanager_v1_QueryConfigurationLicenseUsageResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_licensemanager_v1_QueryConfigurationLicenseUsageResponse_descriptor, + new java.lang.String[] { + "UserCountUsage", "Details", + }); + internal_static_google_cloud_licensemanager_v1_DeactivateConfigurationRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_licensemanager_v1_DeactivateConfigurationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_licensemanager_v1_DeactivateConfigurationRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_licensemanager_v1_ReactivateConfigurationRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_licensemanager_v1_ReactivateConfigurationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_licensemanager_v1_ReactivateConfigurationRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_licensemanager_v1_AggregateUsageRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_licensemanager_v1_AggregateUsageRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_licensemanager_v1_AggregateUsageRequest_descriptor, + new java.lang.String[] { + "Name", "PageSize", "PageToken", "Filter", "OrderBy", "StartTime", "EndTime", + }); + internal_static_google_cloud_licensemanager_v1_AggregateUsageResponse_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_licensemanager_v1_AggregateUsageResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_licensemanager_v1_AggregateUsageResponse_descriptor, + new java.lang.String[] { + "Usages", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_licensemanager_v1_ListProductsRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_licensemanager_v1_ListProductsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_licensemanager_v1_ListProductsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_licensemanager_v1_ListProductsResponse_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_licensemanager_v1_ListProductsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_licensemanager_v1_ListProductsResponse_descriptor, + new java.lang.String[] { + "Products", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_licensemanager_v1_GetProductRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_licensemanager_v1_GetProductRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_licensemanager_v1_GetProductRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_licensemanager_v1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_licensemanager_v1_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_licensemanager_v1_OperationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", + "EndTime", + "Target", + "Verb", + "StatusMessage", + "RequestedCancellation", + "ApiVersion", + }); + 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.FieldInfoProto.fieldInfo); + 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.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.FieldInfoProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.licensemanager.v1.ApiEntitiesProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/LicenseType.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/LicenseType.java new file mode 100644 index 000000000000..cac2b1f5212e --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/LicenseType.java @@ -0,0 +1,181 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/api_entities.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +/** + * + * + *
+ * Different types of licenses that are supported.
+ * 
+ * + * Protobuf enum {@code google.cloud.licensemanager.v1.LicenseType} + */ +public enum LicenseType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * unspecified.
+   * 
+ * + * LICENSE_TYPE_UNSPECIFIED = 0; + */ + LICENSE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+   * Billing will be based on number of users listed per month.
+   * 
+ * + * LICENSE_TYPE_PER_MONTH_PER_USER = 1; + */ + LICENSE_TYPE_PER_MONTH_PER_USER(1), + /** + * + * + *
+   * Bring your own license.
+   * 
+ * + * LICENSE_TYPE_BRING_YOUR_OWN_LICENSE = 2; + */ + LICENSE_TYPE_BRING_YOUR_OWN_LICENSE(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * unspecified.
+   * 
+ * + * LICENSE_TYPE_UNSPECIFIED = 0; + */ + public static final int LICENSE_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * Billing will be based on number of users listed per month.
+   * 
+ * + * LICENSE_TYPE_PER_MONTH_PER_USER = 1; + */ + public static final int LICENSE_TYPE_PER_MONTH_PER_USER_VALUE = 1; + + /** + * + * + *
+   * Bring your own license.
+   * 
+ * + * LICENSE_TYPE_BRING_YOUR_OWN_LICENSE = 2; + */ + public static final int LICENSE_TYPE_BRING_YOUR_OWN_LICENSE_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 LicenseType 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 LicenseType forNumber(int value) { + switch (value) { + case 0: + return LICENSE_TYPE_UNSPECIFIED; + case 1: + return LICENSE_TYPE_PER_MONTH_PER_USER; + case 2: + return LICENSE_TYPE_BRING_YOUR_OWN_LICENSE; + 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 LicenseType findValueByNumber(int number) { + return LicenseType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.ApiEntitiesProto.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final LicenseType[] VALUES = values(); + + public static LicenseType 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 LicenseType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.licensemanager.v1.LicenseType) +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ListConfigurationsRequest.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ListConfigurationsRequest.java new file mode 100644 index 000000000000..25c47e1df7e1 --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ListConfigurationsRequest.java @@ -0,0 +1,1321 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/licensemanager.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +/** + * + * + *
+ * Message for requesting list of Configurations
+ * 
+ * + * Protobuf type {@code google.cloud.licensemanager.v1.ListConfigurationsRequest} + */ +public final class ListConfigurationsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.licensemanager.v1.ListConfigurationsRequest) + ListConfigurationsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListConfigurationsRequest.newBuilder() to construct. + private ListConfigurationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListConfigurationsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListConfigurationsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_ListConfigurationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_ListConfigurationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.ListConfigurationsRequest.class, + com.google.cloud.licensemanager.v1.ListConfigurationsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. Parent value for ListConfigurationsRequest
+   * 
+ * + * + * 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. Parent value for ListConfigurationsRequest
+   * 
+ * + * + * 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. Requested page size. Server may return fewer items than
+   * requested. If unspecified, server will pick an appropriate default.
+   * 
+ * + * 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 token identifying a page of results the server should return.
+   * 
+ * + * 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 token identifying a page of results the server should return.
+   * 
+ * + * 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; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Optional. Filtering results
+   * 
+ * + * string filter = 4 [(.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 results
+   * 
+ * + * string filter = 4 [(.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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Optional. Hint for how to order the results
+   * 
+ * + * 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. Hint for how to order the results
+   * 
+ * + * 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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.licensemanager.v1.ListConfigurationsRequest)) { + return super.equals(obj); + } + com.google.cloud.licensemanager.v1.ListConfigurationsRequest other = + (com.google.cloud.licensemanager.v1.ListConfigurationsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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 = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.licensemanager.v1.ListConfigurationsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.ListConfigurationsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.ListConfigurationsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.ListConfigurationsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.ListConfigurationsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.ListConfigurationsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.ListConfigurationsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.ListConfigurationsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.ListConfigurationsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.ListConfigurationsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.ListConfigurationsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.ListConfigurationsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.licensemanager.v1.ListConfigurationsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for requesting list of Configurations
+   * 
+ * + * Protobuf type {@code google.cloud.licensemanager.v1.ListConfigurationsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.licensemanager.v1.ListConfigurationsRequest) + com.google.cloud.licensemanager.v1.ListConfigurationsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_ListConfigurationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_ListConfigurationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.ListConfigurationsRequest.class, + com.google.cloud.licensemanager.v1.ListConfigurationsRequest.Builder.class); + } + + // Construct using com.google.cloud.licensemanager.v1.ListConfigurationsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_ListConfigurationsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.ListConfigurationsRequest + getDefaultInstanceForType() { + return com.google.cloud.licensemanager.v1.ListConfigurationsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.ListConfigurationsRequest build() { + com.google.cloud.licensemanager.v1.ListConfigurationsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.ListConfigurationsRequest buildPartial() { + com.google.cloud.licensemanager.v1.ListConfigurationsRequest result = + new com.google.cloud.licensemanager.v1.ListConfigurationsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.licensemanager.v1.ListConfigurationsRequest 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_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.licensemanager.v1.ListConfigurationsRequest) { + return mergeFrom((com.google.cloud.licensemanager.v1.ListConfigurationsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.licensemanager.v1.ListConfigurationsRequest other) { + if (other + == com.google.cloud.licensemanager.v1.ListConfigurationsRequest.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(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. Parent value for ListConfigurationsRequest
+     * 
+ * + * + * 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. Parent value for ListConfigurationsRequest
+     * 
+ * + * + * 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. Parent value for ListConfigurationsRequest
+     * 
+ * + * + * 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. Parent value for ListConfigurationsRequest
+     * 
+ * + * + * 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. Parent value for ListConfigurationsRequest
+     * 
+ * + * + * 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. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * 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. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * 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 token identifying a page of results the server should return.
+     * 
+ * + * 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 token identifying a page of results the server should return.
+     * 
+ * + * 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 token identifying a page of results the server should return.
+     * 
+ * + * 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 token identifying a page of results the server should return.
+     * 
+ * + * 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 token identifying a page of results the server should return.
+     * 
+ * + * 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; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Optional. Filtering results
+     * 
+ * + * string filter = 4 [(.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 results
+     * 
+ * + * string filter = 4 [(.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 results
+     * 
+ * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Filtering results
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Filtering results
+     * 
+ * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Optional. Hint for how to order the results
+     * 
+ * + * 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. Hint for how to order the results
+     * 
+ * + * 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. Hint for how to order the results
+     * 
+ * + * 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. Hint for how to order the results
+     * 
+ * + * 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. Hint for how to order the results
+     * 
+ * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.licensemanager.v1.ListConfigurationsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.licensemanager.v1.ListConfigurationsRequest) + private static final com.google.cloud.licensemanager.v1.ListConfigurationsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.licensemanager.v1.ListConfigurationsRequest(); + } + + public static com.google.cloud.licensemanager.v1.ListConfigurationsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConfigurationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.ListConfigurationsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ListConfigurationsRequestOrBuilder.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ListConfigurationsRequestOrBuilder.java new file mode 100644 index 000000000000..9a0df65876fe --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ListConfigurationsRequestOrBuilder.java @@ -0,0 +1,148 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/licensemanager.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +public interface ListConfigurationsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.licensemanager.v1.ListConfigurationsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Parent value for ListConfigurationsRequest
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. Parent value for ListConfigurationsRequest
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. Requested page size. Server may return fewer items than
+   * requested. If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. Filtering results
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. Filtering results
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. Hint for how to order the results
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Optional. Hint for how to order the results
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ListConfigurationsResponse.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ListConfigurationsResponse.java new file mode 100644 index 000000000000..7b35a0f13f58 --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ListConfigurationsResponse.java @@ -0,0 +1,1458 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/licensemanager.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +/** + * + * + *
+ * Message for response to listing Configurations
+ * 
+ * + * Protobuf type {@code google.cloud.licensemanager.v1.ListConfigurationsResponse} + */ +public final class ListConfigurationsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.licensemanager.v1.ListConfigurationsResponse) + ListConfigurationsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListConfigurationsResponse.newBuilder() to construct. + private ListConfigurationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListConfigurationsResponse() { + configurations_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListConfigurationsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_ListConfigurationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_ListConfigurationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.ListConfigurationsResponse.class, + com.google.cloud.licensemanager.v1.ListConfigurationsResponse.Builder.class); + } + + public static final int CONFIGURATIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List configurations_; + + /** + * + * + *
+   * The list of Configuration
+   * 
+ * + * repeated .google.cloud.licensemanager.v1.Configuration configurations = 1; + */ + @java.lang.Override + public java.util.List getConfigurationsList() { + return configurations_; + } + + /** + * + * + *
+   * The list of Configuration
+   * 
+ * + * repeated .google.cloud.licensemanager.v1.Configuration configurations = 1; + */ + @java.lang.Override + public java.util.List + getConfigurationsOrBuilderList() { + return configurations_; + } + + /** + * + * + *
+   * The list of Configuration
+   * 
+ * + * repeated .google.cloud.licensemanager.v1.Configuration configurations = 1; + */ + @java.lang.Override + public int getConfigurationsCount() { + return configurations_.size(); + } + + /** + * + * + *
+   * The list of Configuration
+   * 
+ * + * repeated .google.cloud.licensemanager.v1.Configuration configurations = 1; + */ + @java.lang.Override + public com.google.cloud.licensemanager.v1.Configuration getConfigurations(int index) { + return configurations_.get(index); + } + + /** + * + * + *
+   * The list of Configuration
+   * 
+ * + * repeated .google.cloud.licensemanager.v1.Configuration configurations = 1; + */ + @java.lang.Override + public com.google.cloud.licensemanager.v1.ConfigurationOrBuilder getConfigurationsOrBuilder( + int index) { + return configurations_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * 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 identifying a page of results the server should return.
+   * 
+ * + * 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; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.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 < configurations_.size(); i++) { + output.writeMessage(1, configurations_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(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 < configurations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, configurations_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().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.cloud.licensemanager.v1.ListConfigurationsResponse)) { + return super.equals(obj); + } + com.google.cloud.licensemanager.v1.ListConfigurationsResponse other = + (com.google.cloud.licensemanager.v1.ListConfigurationsResponse) obj; + + if (!getConfigurationsList().equals(other.getConfigurationsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getConfigurationsCount() > 0) { + hash = (37 * hash) + CONFIGURATIONS_FIELD_NUMBER; + hash = (53 * hash) + getConfigurationsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.licensemanager.v1.ListConfigurationsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.ListConfigurationsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.ListConfigurationsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.ListConfigurationsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.ListConfigurationsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.ListConfigurationsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.ListConfigurationsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.ListConfigurationsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.ListConfigurationsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.ListConfigurationsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.ListConfigurationsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.ListConfigurationsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.licensemanager.v1.ListConfigurationsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for response to listing Configurations
+   * 
+ * + * Protobuf type {@code google.cloud.licensemanager.v1.ListConfigurationsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.licensemanager.v1.ListConfigurationsResponse) + com.google.cloud.licensemanager.v1.ListConfigurationsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_ListConfigurationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_ListConfigurationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.ListConfigurationsResponse.class, + com.google.cloud.licensemanager.v1.ListConfigurationsResponse.Builder.class); + } + + // Construct using com.google.cloud.licensemanager.v1.ListConfigurationsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (configurationsBuilder_ == null) { + configurations_ = java.util.Collections.emptyList(); + } else { + configurations_ = null; + configurationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_ListConfigurationsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.ListConfigurationsResponse + getDefaultInstanceForType() { + return com.google.cloud.licensemanager.v1.ListConfigurationsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.ListConfigurationsResponse build() { + com.google.cloud.licensemanager.v1.ListConfigurationsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.ListConfigurationsResponse buildPartial() { + com.google.cloud.licensemanager.v1.ListConfigurationsResponse result = + new com.google.cloud.licensemanager.v1.ListConfigurationsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.licensemanager.v1.ListConfigurationsResponse result) { + if (configurationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + configurations_ = java.util.Collections.unmodifiableList(configurations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.configurations_ = configurations_; + } else { + result.configurations_ = configurationsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.licensemanager.v1.ListConfigurationsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.licensemanager.v1.ListConfigurationsResponse) { + return mergeFrom((com.google.cloud.licensemanager.v1.ListConfigurationsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.licensemanager.v1.ListConfigurationsResponse other) { + if (other + == com.google.cloud.licensemanager.v1.ListConfigurationsResponse.getDefaultInstance()) + return this; + if (configurationsBuilder_ == null) { + if (!other.configurations_.isEmpty()) { + if (configurations_.isEmpty()) { + configurations_ = other.configurations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureConfigurationsIsMutable(); + configurations_.addAll(other.configurations_); + } + onChanged(); + } + } else { + if (!other.configurations_.isEmpty()) { + if (configurationsBuilder_.isEmpty()) { + configurationsBuilder_.dispose(); + configurationsBuilder_ = null; + configurations_ = other.configurations_; + bitField0_ = (bitField0_ & ~0x00000001); + configurationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getConfigurationsFieldBuilder() + : null; + } else { + configurationsBuilder_.addAllMessages(other.configurations_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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.cloud.licensemanager.v1.Configuration m = + input.readMessage( + com.google.cloud.licensemanager.v1.Configuration.parser(), + extensionRegistry); + if (configurationsBuilder_ == null) { + ensureConfigurationsIsMutable(); + configurations_.add(m); + } else { + configurationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List configurations_ = + java.util.Collections.emptyList(); + + private void ensureConfigurationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + configurations_ = + new java.util.ArrayList( + configurations_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.licensemanager.v1.Configuration, + com.google.cloud.licensemanager.v1.Configuration.Builder, + com.google.cloud.licensemanager.v1.ConfigurationOrBuilder> + configurationsBuilder_; + + /** + * + * + *
+     * The list of Configuration
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Configuration configurations = 1; + */ + public java.util.List + getConfigurationsList() { + if (configurationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(configurations_); + } else { + return configurationsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The list of Configuration
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Configuration configurations = 1; + */ + public int getConfigurationsCount() { + if (configurationsBuilder_ == null) { + return configurations_.size(); + } else { + return configurationsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The list of Configuration
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Configuration configurations = 1; + */ + public com.google.cloud.licensemanager.v1.Configuration getConfigurations(int index) { + if (configurationsBuilder_ == null) { + return configurations_.get(index); + } else { + return configurationsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The list of Configuration
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Configuration configurations = 1; + */ + public Builder setConfigurations( + int index, com.google.cloud.licensemanager.v1.Configuration value) { + if (configurationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConfigurationsIsMutable(); + configurations_.set(index, value); + onChanged(); + } else { + configurationsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of Configuration
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Configuration configurations = 1; + */ + public Builder setConfigurations( + int index, com.google.cloud.licensemanager.v1.Configuration.Builder builderForValue) { + if (configurationsBuilder_ == null) { + ensureConfigurationsIsMutable(); + configurations_.set(index, builderForValue.build()); + onChanged(); + } else { + configurationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of Configuration
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Configuration configurations = 1; + */ + public Builder addConfigurations(com.google.cloud.licensemanager.v1.Configuration value) { + if (configurationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConfigurationsIsMutable(); + configurations_.add(value); + onChanged(); + } else { + configurationsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The list of Configuration
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Configuration configurations = 1; + */ + public Builder addConfigurations( + int index, com.google.cloud.licensemanager.v1.Configuration value) { + if (configurationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConfigurationsIsMutable(); + configurations_.add(index, value); + onChanged(); + } else { + configurationsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of Configuration
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Configuration configurations = 1; + */ + public Builder addConfigurations( + com.google.cloud.licensemanager.v1.Configuration.Builder builderForValue) { + if (configurationsBuilder_ == null) { + ensureConfigurationsIsMutable(); + configurations_.add(builderForValue.build()); + onChanged(); + } else { + configurationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of Configuration
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Configuration configurations = 1; + */ + public Builder addConfigurations( + int index, com.google.cloud.licensemanager.v1.Configuration.Builder builderForValue) { + if (configurationsBuilder_ == null) { + ensureConfigurationsIsMutable(); + configurations_.add(index, builderForValue.build()); + onChanged(); + } else { + configurationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of Configuration
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Configuration configurations = 1; + */ + public Builder addAllConfigurations( + java.lang.Iterable values) { + if (configurationsBuilder_ == null) { + ensureConfigurationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, configurations_); + onChanged(); + } else { + configurationsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The list of Configuration
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Configuration configurations = 1; + */ + public Builder clearConfigurations() { + if (configurationsBuilder_ == null) { + configurations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + configurationsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The list of Configuration
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Configuration configurations = 1; + */ + public Builder removeConfigurations(int index) { + if (configurationsBuilder_ == null) { + ensureConfigurationsIsMutable(); + configurations_.remove(index); + onChanged(); + } else { + configurationsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The list of Configuration
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Configuration configurations = 1; + */ + public com.google.cloud.licensemanager.v1.Configuration.Builder getConfigurationsBuilder( + int index) { + return getConfigurationsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The list of Configuration
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Configuration configurations = 1; + */ + public com.google.cloud.licensemanager.v1.ConfigurationOrBuilder getConfigurationsOrBuilder( + int index) { + if (configurationsBuilder_ == null) { + return configurations_.get(index); + } else { + return configurationsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The list of Configuration
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Configuration configurations = 1; + */ + public java.util.List + getConfigurationsOrBuilderList() { + if (configurationsBuilder_ != null) { + return configurationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(configurations_); + } + } + + /** + * + * + *
+     * The list of Configuration
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Configuration configurations = 1; + */ + public com.google.cloud.licensemanager.v1.Configuration.Builder addConfigurationsBuilder() { + return getConfigurationsFieldBuilder() + .addBuilder(com.google.cloud.licensemanager.v1.Configuration.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of Configuration
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Configuration configurations = 1; + */ + public com.google.cloud.licensemanager.v1.Configuration.Builder addConfigurationsBuilder( + int index) { + return getConfigurationsFieldBuilder() + .addBuilder(index, com.google.cloud.licensemanager.v1.Configuration.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of Configuration
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Configuration configurations = 1; + */ + public java.util.List + getConfigurationsBuilderList() { + return getConfigurationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.licensemanager.v1.Configuration, + com.google.cloud.licensemanager.v1.Configuration.Builder, + com.google.cloud.licensemanager.v1.ConfigurationOrBuilder> + getConfigurationsFieldBuilder() { + if (configurationsBuilder_ == null) { + configurationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.licensemanager.v1.Configuration, + com.google.cloud.licensemanager.v1.Configuration.Builder, + com.google.cloud.licensemanager.v1.ConfigurationOrBuilder>( + configurations_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + configurations_ = null; + } + return configurationsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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 identifying a page of results the server should return.
+     * 
+ * + * 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 identifying a page of results the server should return.
+     * 
+ * + * 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 identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.licensemanager.v1.ListConfigurationsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.licensemanager.v1.ListConfigurationsResponse) + private static final com.google.cloud.licensemanager.v1.ListConfigurationsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.licensemanager.v1.ListConfigurationsResponse(); + } + + public static com.google.cloud.licensemanager.v1.ListConfigurationsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConfigurationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.ListConfigurationsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ListConfigurationsResponseOrBuilder.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ListConfigurationsResponseOrBuilder.java new file mode 100644 index 000000000000..7d4a310c8dfd --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ListConfigurationsResponseOrBuilder.java @@ -0,0 +1,162 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/licensemanager.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +public interface ListConfigurationsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.licensemanager.v1.ListConfigurationsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of Configuration
+   * 
+ * + * repeated .google.cloud.licensemanager.v1.Configuration configurations = 1; + */ + java.util.List getConfigurationsList(); + + /** + * + * + *
+   * The list of Configuration
+   * 
+ * + * repeated .google.cloud.licensemanager.v1.Configuration configurations = 1; + */ + com.google.cloud.licensemanager.v1.Configuration getConfigurations(int index); + + /** + * + * + *
+   * The list of Configuration
+   * 
+ * + * repeated .google.cloud.licensemanager.v1.Configuration configurations = 1; + */ + int getConfigurationsCount(); + + /** + * + * + *
+   * The list of Configuration
+   * 
+ * + * repeated .google.cloud.licensemanager.v1.Configuration configurations = 1; + */ + java.util.List + getConfigurationsOrBuilderList(); + + /** + * + * + *
+   * The list of Configuration
+   * 
+ * + * repeated .google.cloud.licensemanager.v1.Configuration configurations = 1; + */ + com.google.cloud.licensemanager.v1.ConfigurationOrBuilder getConfigurationsOrBuilder(int index); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ListInstancesRequest.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ListInstancesRequest.java new file mode 100644 index 000000000000..bc2b80ba57f5 --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ListInstancesRequest.java @@ -0,0 +1,1317 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/licensemanager.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +/** + * + * + *
+ * Message for requesting list of Instances
+ * 
+ * + * Protobuf type {@code google.cloud.licensemanager.v1.ListInstancesRequest} + */ +public final class ListInstancesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.licensemanager.v1.ListInstancesRequest) + ListInstancesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListInstancesRequest.newBuilder() to construct. + private ListInstancesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListInstancesRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListInstancesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_ListInstancesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_ListInstancesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.ListInstancesRequest.class, + com.google.cloud.licensemanager.v1.ListInstancesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. Parent value for ListInstancesRequest
+   * 
+ * + * + * 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. Parent value for ListInstancesRequest
+   * 
+ * + * + * 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. Requested page size. Server may return fewer items than
+   * requested. If unspecified, server will pick an appropriate default.
+   * 
+ * + * 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 token identifying a page of results the server should return.
+   * 
+ * + * 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 token identifying a page of results the server should return.
+   * 
+ * + * 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; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Optional. Filtering results
+   * 
+ * + * string filter = 4 [(.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 results
+   * 
+ * + * string filter = 4 [(.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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Optional. Hint for how to order the results
+   * 
+ * + * 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. Hint for how to order the results
+   * 
+ * + * 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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.licensemanager.v1.ListInstancesRequest)) { + return super.equals(obj); + } + com.google.cloud.licensemanager.v1.ListInstancesRequest other = + (com.google.cloud.licensemanager.v1.ListInstancesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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 = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.licensemanager.v1.ListInstancesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.ListInstancesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.ListInstancesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.ListInstancesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.ListInstancesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.ListInstancesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.ListInstancesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.ListInstancesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.ListInstancesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.ListInstancesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.ListInstancesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.ListInstancesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.licensemanager.v1.ListInstancesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for requesting list of Instances
+   * 
+ * + * Protobuf type {@code google.cloud.licensemanager.v1.ListInstancesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.licensemanager.v1.ListInstancesRequest) + com.google.cloud.licensemanager.v1.ListInstancesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_ListInstancesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_ListInstancesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.ListInstancesRequest.class, + com.google.cloud.licensemanager.v1.ListInstancesRequest.Builder.class); + } + + // Construct using com.google.cloud.licensemanager.v1.ListInstancesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_ListInstancesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.ListInstancesRequest getDefaultInstanceForType() { + return com.google.cloud.licensemanager.v1.ListInstancesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.ListInstancesRequest build() { + com.google.cloud.licensemanager.v1.ListInstancesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.ListInstancesRequest buildPartial() { + com.google.cloud.licensemanager.v1.ListInstancesRequest result = + new com.google.cloud.licensemanager.v1.ListInstancesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.licensemanager.v1.ListInstancesRequest 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_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.licensemanager.v1.ListInstancesRequest) { + return mergeFrom((com.google.cloud.licensemanager.v1.ListInstancesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.licensemanager.v1.ListInstancesRequest other) { + if (other == com.google.cloud.licensemanager.v1.ListInstancesRequest.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(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. Parent value for ListInstancesRequest
+     * 
+ * + * + * 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. Parent value for ListInstancesRequest
+     * 
+ * + * + * 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. Parent value for ListInstancesRequest
+     * 
+ * + * + * 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. Parent value for ListInstancesRequest
+     * 
+ * + * + * 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. Parent value for ListInstancesRequest
+     * 
+ * + * + * 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. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * 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. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * 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 token identifying a page of results the server should return.
+     * 
+ * + * 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 token identifying a page of results the server should return.
+     * 
+ * + * 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 token identifying a page of results the server should return.
+     * 
+ * + * 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 token identifying a page of results the server should return.
+     * 
+ * + * 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 token identifying a page of results the server should return.
+     * 
+ * + * 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; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Optional. Filtering results
+     * 
+ * + * string filter = 4 [(.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 results
+     * 
+ * + * string filter = 4 [(.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 results
+     * 
+ * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Filtering results
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Filtering results
+     * 
+ * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Optional. Hint for how to order the results
+     * 
+ * + * 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. Hint for how to order the results
+     * 
+ * + * 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. Hint for how to order the results
+     * 
+ * + * 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. Hint for how to order the results
+     * 
+ * + * 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. Hint for how to order the results
+     * 
+ * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.licensemanager.v1.ListInstancesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.licensemanager.v1.ListInstancesRequest) + private static final com.google.cloud.licensemanager.v1.ListInstancesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.licensemanager.v1.ListInstancesRequest(); + } + + public static com.google.cloud.licensemanager.v1.ListInstancesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListInstancesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.ListInstancesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ListInstancesRequestOrBuilder.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ListInstancesRequestOrBuilder.java new file mode 100644 index 000000000000..e6a9953765b8 --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ListInstancesRequestOrBuilder.java @@ -0,0 +1,148 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/licensemanager.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +public interface ListInstancesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.licensemanager.v1.ListInstancesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Parent value for ListInstancesRequest
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. Parent value for ListInstancesRequest
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. Requested page size. Server may return fewer items than
+   * requested. If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. Filtering results
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. Filtering results
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. Hint for how to order the results
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Optional. Hint for how to order the results
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ListInstancesResponse.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ListInstancesResponse.java new file mode 100644 index 000000000000..7db874513342 --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ListInstancesResponse.java @@ -0,0 +1,1442 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/licensemanager.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +/** + * + * + *
+ * Message for response to listing Instances
+ * 
+ * + * Protobuf type {@code google.cloud.licensemanager.v1.ListInstancesResponse} + */ +public final class ListInstancesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.licensemanager.v1.ListInstancesResponse) + ListInstancesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListInstancesResponse.newBuilder() to construct. + private ListInstancesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListInstancesResponse() { + instances_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListInstancesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_ListInstancesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_ListInstancesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.ListInstancesResponse.class, + com.google.cloud.licensemanager.v1.ListInstancesResponse.Builder.class); + } + + public static final int INSTANCES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List instances_; + + /** + * + * + *
+   * The list of Instance
+   * 
+ * + * repeated .google.cloud.licensemanager.v1.Instance instances = 1; + */ + @java.lang.Override + public java.util.List getInstancesList() { + return instances_; + } + + /** + * + * + *
+   * The list of Instance
+   * 
+ * + * repeated .google.cloud.licensemanager.v1.Instance instances = 1; + */ + @java.lang.Override + public java.util.List + getInstancesOrBuilderList() { + return instances_; + } + + /** + * + * + *
+   * The list of Instance
+   * 
+ * + * repeated .google.cloud.licensemanager.v1.Instance instances = 1; + */ + @java.lang.Override + public int getInstancesCount() { + return instances_.size(); + } + + /** + * + * + *
+   * The list of Instance
+   * 
+ * + * repeated .google.cloud.licensemanager.v1.Instance instances = 1; + */ + @java.lang.Override + public com.google.cloud.licensemanager.v1.Instance getInstances(int index) { + return instances_.get(index); + } + + /** + * + * + *
+   * The list of Instance
+   * 
+ * + * repeated .google.cloud.licensemanager.v1.Instance instances = 1; + */ + @java.lang.Override + public com.google.cloud.licensemanager.v1.InstanceOrBuilder getInstancesOrBuilder(int index) { + return instances_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * 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 identifying a page of results the server should return.
+   * 
+ * + * 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; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.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 < instances_.size(); i++) { + output.writeMessage(1, instances_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(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 < instances_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, instances_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().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.cloud.licensemanager.v1.ListInstancesResponse)) { + return super.equals(obj); + } + com.google.cloud.licensemanager.v1.ListInstancesResponse other = + (com.google.cloud.licensemanager.v1.ListInstancesResponse) obj; + + if (!getInstancesList().equals(other.getInstancesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getInstancesCount() > 0) { + hash = (37 * hash) + INSTANCES_FIELD_NUMBER; + hash = (53 * hash) + getInstancesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.licensemanager.v1.ListInstancesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.ListInstancesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.ListInstancesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.ListInstancesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.ListInstancesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.ListInstancesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.ListInstancesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.ListInstancesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.ListInstancesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.ListInstancesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.ListInstancesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.ListInstancesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.licensemanager.v1.ListInstancesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for response to listing Instances
+   * 
+ * + * Protobuf type {@code google.cloud.licensemanager.v1.ListInstancesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.licensemanager.v1.ListInstancesResponse) + com.google.cloud.licensemanager.v1.ListInstancesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_ListInstancesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_ListInstancesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.ListInstancesResponse.class, + com.google.cloud.licensemanager.v1.ListInstancesResponse.Builder.class); + } + + // Construct using com.google.cloud.licensemanager.v1.ListInstancesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (instancesBuilder_ == null) { + instances_ = java.util.Collections.emptyList(); + } else { + instances_ = null; + instancesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_ListInstancesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.ListInstancesResponse getDefaultInstanceForType() { + return com.google.cloud.licensemanager.v1.ListInstancesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.ListInstancesResponse build() { + com.google.cloud.licensemanager.v1.ListInstancesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.ListInstancesResponse buildPartial() { + com.google.cloud.licensemanager.v1.ListInstancesResponse result = + new com.google.cloud.licensemanager.v1.ListInstancesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.licensemanager.v1.ListInstancesResponse result) { + if (instancesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + instances_ = java.util.Collections.unmodifiableList(instances_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.instances_ = instances_; + } else { + result.instances_ = instancesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.licensemanager.v1.ListInstancesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.licensemanager.v1.ListInstancesResponse) { + return mergeFrom((com.google.cloud.licensemanager.v1.ListInstancesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.licensemanager.v1.ListInstancesResponse other) { + if (other == com.google.cloud.licensemanager.v1.ListInstancesResponse.getDefaultInstance()) + return this; + if (instancesBuilder_ == null) { + if (!other.instances_.isEmpty()) { + if (instances_.isEmpty()) { + instances_ = other.instances_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureInstancesIsMutable(); + instances_.addAll(other.instances_); + } + onChanged(); + } + } else { + if (!other.instances_.isEmpty()) { + if (instancesBuilder_.isEmpty()) { + instancesBuilder_.dispose(); + instancesBuilder_ = null; + instances_ = other.instances_; + bitField0_ = (bitField0_ & ~0x00000001); + instancesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInstancesFieldBuilder() + : null; + } else { + instancesBuilder_.addAllMessages(other.instances_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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.cloud.licensemanager.v1.Instance m = + input.readMessage( + com.google.cloud.licensemanager.v1.Instance.parser(), extensionRegistry); + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(m); + } else { + instancesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List instances_ = + java.util.Collections.emptyList(); + + private void ensureInstancesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + instances_ = + new java.util.ArrayList(instances_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.licensemanager.v1.Instance, + com.google.cloud.licensemanager.v1.Instance.Builder, + com.google.cloud.licensemanager.v1.InstanceOrBuilder> + instancesBuilder_; + + /** + * + * + *
+     * The list of Instance
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Instance instances = 1; + */ + public java.util.List getInstancesList() { + if (instancesBuilder_ == null) { + return java.util.Collections.unmodifiableList(instances_); + } else { + return instancesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The list of Instance
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Instance instances = 1; + */ + public int getInstancesCount() { + if (instancesBuilder_ == null) { + return instances_.size(); + } else { + return instancesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The list of Instance
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Instance instances = 1; + */ + public com.google.cloud.licensemanager.v1.Instance getInstances(int index) { + if (instancesBuilder_ == null) { + return instances_.get(index); + } else { + return instancesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The list of Instance
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Instance instances = 1; + */ + public Builder setInstances(int index, com.google.cloud.licensemanager.v1.Instance value) { + if (instancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.set(index, value); + onChanged(); + } else { + instancesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of Instance
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Instance instances = 1; + */ + public Builder setInstances( + int index, com.google.cloud.licensemanager.v1.Instance.Builder builderForValue) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.set(index, builderForValue.build()); + onChanged(); + } else { + instancesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of Instance
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Instance instances = 1; + */ + public Builder addInstances(com.google.cloud.licensemanager.v1.Instance value) { + if (instancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.add(value); + onChanged(); + } else { + instancesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The list of Instance
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Instance instances = 1; + */ + public Builder addInstances(int index, com.google.cloud.licensemanager.v1.Instance value) { + if (instancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.add(index, value); + onChanged(); + } else { + instancesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of Instance
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Instance instances = 1; + */ + public Builder addInstances( + com.google.cloud.licensemanager.v1.Instance.Builder builderForValue) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(builderForValue.build()); + onChanged(); + } else { + instancesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of Instance
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Instance instances = 1; + */ + public Builder addInstances( + int index, com.google.cloud.licensemanager.v1.Instance.Builder builderForValue) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(index, builderForValue.build()); + onChanged(); + } else { + instancesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of Instance
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Instance instances = 1; + */ + public Builder addAllInstances( + java.lang.Iterable values) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instances_); + onChanged(); + } else { + instancesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The list of Instance
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Instance instances = 1; + */ + public Builder clearInstances() { + if (instancesBuilder_ == null) { + instances_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + instancesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The list of Instance
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Instance instances = 1; + */ + public Builder removeInstances(int index) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.remove(index); + onChanged(); + } else { + instancesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The list of Instance
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Instance instances = 1; + */ + public com.google.cloud.licensemanager.v1.Instance.Builder getInstancesBuilder(int index) { + return getInstancesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The list of Instance
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Instance instances = 1; + */ + public com.google.cloud.licensemanager.v1.InstanceOrBuilder getInstancesOrBuilder(int index) { + if (instancesBuilder_ == null) { + return instances_.get(index); + } else { + return instancesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The list of Instance
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Instance instances = 1; + */ + public java.util.List + getInstancesOrBuilderList() { + if (instancesBuilder_ != null) { + return instancesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(instances_); + } + } + + /** + * + * + *
+     * The list of Instance
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Instance instances = 1; + */ + public com.google.cloud.licensemanager.v1.Instance.Builder addInstancesBuilder() { + return getInstancesFieldBuilder() + .addBuilder(com.google.cloud.licensemanager.v1.Instance.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of Instance
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Instance instances = 1; + */ + public com.google.cloud.licensemanager.v1.Instance.Builder addInstancesBuilder(int index) { + return getInstancesFieldBuilder() + .addBuilder(index, com.google.cloud.licensemanager.v1.Instance.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of Instance
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Instance instances = 1; + */ + public java.util.List + getInstancesBuilderList() { + return getInstancesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.licensemanager.v1.Instance, + com.google.cloud.licensemanager.v1.Instance.Builder, + com.google.cloud.licensemanager.v1.InstanceOrBuilder> + getInstancesFieldBuilder() { + if (instancesBuilder_ == null) { + instancesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.licensemanager.v1.Instance, + com.google.cloud.licensemanager.v1.Instance.Builder, + com.google.cloud.licensemanager.v1.InstanceOrBuilder>( + instances_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + instances_ = null; + } + return instancesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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 identifying a page of results the server should return.
+     * 
+ * + * 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 identifying a page of results the server should return.
+     * 
+ * + * 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 identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.licensemanager.v1.ListInstancesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.licensemanager.v1.ListInstancesResponse) + private static final com.google.cloud.licensemanager.v1.ListInstancesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.licensemanager.v1.ListInstancesResponse(); + } + + public static com.google.cloud.licensemanager.v1.ListInstancesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListInstancesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.ListInstancesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ListInstancesResponseOrBuilder.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ListInstancesResponseOrBuilder.java new file mode 100644 index 000000000000..d1af13dbebbe --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ListInstancesResponseOrBuilder.java @@ -0,0 +1,162 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/licensemanager.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +public interface ListInstancesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.licensemanager.v1.ListInstancesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of Instance
+   * 
+ * + * repeated .google.cloud.licensemanager.v1.Instance instances = 1; + */ + java.util.List getInstancesList(); + + /** + * + * + *
+   * The list of Instance
+   * 
+ * + * repeated .google.cloud.licensemanager.v1.Instance instances = 1; + */ + com.google.cloud.licensemanager.v1.Instance getInstances(int index); + + /** + * + * + *
+   * The list of Instance
+   * 
+ * + * repeated .google.cloud.licensemanager.v1.Instance instances = 1; + */ + int getInstancesCount(); + + /** + * + * + *
+   * The list of Instance
+   * 
+ * + * repeated .google.cloud.licensemanager.v1.Instance instances = 1; + */ + java.util.List + getInstancesOrBuilderList(); + + /** + * + * + *
+   * The list of Instance
+   * 
+ * + * repeated .google.cloud.licensemanager.v1.Instance instances = 1; + */ + com.google.cloud.licensemanager.v1.InstanceOrBuilder getInstancesOrBuilder(int index); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ListProductsRequest.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ListProductsRequest.java new file mode 100644 index 000000000000..5a7e1f28a3f1 --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ListProductsRequest.java @@ -0,0 +1,1317 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/licensemanager.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +/** + * + * + *
+ * Message for requesting list of Products
+ * 
+ * + * Protobuf type {@code google.cloud.licensemanager.v1.ListProductsRequest} + */ +public final class ListProductsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.licensemanager.v1.ListProductsRequest) + ListProductsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListProductsRequest.newBuilder() to construct. + private ListProductsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListProductsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListProductsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_ListProductsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_ListProductsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.ListProductsRequest.class, + com.google.cloud.licensemanager.v1.ListProductsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. Parent value for ListProductsRequest
+   * 
+ * + * + * 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. Parent value for ListProductsRequest
+   * 
+ * + * + * 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. Requested page size. Server may return fewer items than
+   * requested. If unspecified, server will pick an appropriate default.
+   * 
+ * + * 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 token identifying a page of results the server should return.
+   * 
+ * + * 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 token identifying a page of results the server should return.
+   * 
+ * + * 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; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Optional. Filtering results
+   * 
+ * + * string filter = 4 [(.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 results
+   * 
+ * + * string filter = 4 [(.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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Optional. Hint for how to order the results
+   * 
+ * + * 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. Hint for how to order the results
+   * 
+ * + * 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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.licensemanager.v1.ListProductsRequest)) { + return super.equals(obj); + } + com.google.cloud.licensemanager.v1.ListProductsRequest other = + (com.google.cloud.licensemanager.v1.ListProductsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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 = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.licensemanager.v1.ListProductsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.ListProductsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.ListProductsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.ListProductsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.ListProductsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.ListProductsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.ListProductsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.ListProductsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.ListProductsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.ListProductsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.ListProductsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.ListProductsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.licensemanager.v1.ListProductsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for requesting list of Products
+   * 
+ * + * Protobuf type {@code google.cloud.licensemanager.v1.ListProductsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.licensemanager.v1.ListProductsRequest) + com.google.cloud.licensemanager.v1.ListProductsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_ListProductsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_ListProductsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.ListProductsRequest.class, + com.google.cloud.licensemanager.v1.ListProductsRequest.Builder.class); + } + + // Construct using com.google.cloud.licensemanager.v1.ListProductsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_ListProductsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.ListProductsRequest getDefaultInstanceForType() { + return com.google.cloud.licensemanager.v1.ListProductsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.ListProductsRequest build() { + com.google.cloud.licensemanager.v1.ListProductsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.ListProductsRequest buildPartial() { + com.google.cloud.licensemanager.v1.ListProductsRequest result = + new com.google.cloud.licensemanager.v1.ListProductsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.licensemanager.v1.ListProductsRequest 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_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.licensemanager.v1.ListProductsRequest) { + return mergeFrom((com.google.cloud.licensemanager.v1.ListProductsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.licensemanager.v1.ListProductsRequest other) { + if (other == com.google.cloud.licensemanager.v1.ListProductsRequest.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(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. Parent value for ListProductsRequest
+     * 
+ * + * + * 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. Parent value for ListProductsRequest
+     * 
+ * + * + * 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. Parent value for ListProductsRequest
+     * 
+ * + * + * 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. Parent value for ListProductsRequest
+     * 
+ * + * + * 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. Parent value for ListProductsRequest
+     * 
+ * + * + * 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. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * 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. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * 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 token identifying a page of results the server should return.
+     * 
+ * + * 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 token identifying a page of results the server should return.
+     * 
+ * + * 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 token identifying a page of results the server should return.
+     * 
+ * + * 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 token identifying a page of results the server should return.
+     * 
+ * + * 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 token identifying a page of results the server should return.
+     * 
+ * + * 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; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Optional. Filtering results
+     * 
+ * + * string filter = 4 [(.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 results
+     * 
+ * + * string filter = 4 [(.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 results
+     * 
+ * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Filtering results
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Filtering results
+     * 
+ * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Optional. Hint for how to order the results
+     * 
+ * + * 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. Hint for how to order the results
+     * 
+ * + * 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. Hint for how to order the results
+     * 
+ * + * 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. Hint for how to order the results
+     * 
+ * + * 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. Hint for how to order the results
+     * 
+ * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.licensemanager.v1.ListProductsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.licensemanager.v1.ListProductsRequest) + private static final com.google.cloud.licensemanager.v1.ListProductsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.licensemanager.v1.ListProductsRequest(); + } + + public static com.google.cloud.licensemanager.v1.ListProductsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProductsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.ListProductsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ListProductsRequestOrBuilder.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ListProductsRequestOrBuilder.java new file mode 100644 index 000000000000..63ca4391199c --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ListProductsRequestOrBuilder.java @@ -0,0 +1,148 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/licensemanager.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +public interface ListProductsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.licensemanager.v1.ListProductsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Parent value for ListProductsRequest
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. Parent value for ListProductsRequest
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. Requested page size. Server may return fewer items than
+   * requested. If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. Filtering results
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. Filtering results
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. Hint for how to order the results
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Optional. Hint for how to order the results
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ListProductsResponse.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ListProductsResponse.java new file mode 100644 index 000000000000..fe3462299a40 --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ListProductsResponse.java @@ -0,0 +1,1440 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/licensemanager.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +/** + * + * + *
+ * Message for response to listing Products
+ * 
+ * + * Protobuf type {@code google.cloud.licensemanager.v1.ListProductsResponse} + */ +public final class ListProductsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.licensemanager.v1.ListProductsResponse) + ListProductsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListProductsResponse.newBuilder() to construct. + private ListProductsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListProductsResponse() { + products_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListProductsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_ListProductsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_ListProductsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.ListProductsResponse.class, + com.google.cloud.licensemanager.v1.ListProductsResponse.Builder.class); + } + + public static final int PRODUCTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List products_; + + /** + * + * + *
+   * The list of Product
+   * 
+ * + * repeated .google.cloud.licensemanager.v1.Product products = 1; + */ + @java.lang.Override + public java.util.List getProductsList() { + return products_; + } + + /** + * + * + *
+   * The list of Product
+   * 
+ * + * repeated .google.cloud.licensemanager.v1.Product products = 1; + */ + @java.lang.Override + public java.util.List + getProductsOrBuilderList() { + return products_; + } + + /** + * + * + *
+   * The list of Product
+   * 
+ * + * repeated .google.cloud.licensemanager.v1.Product products = 1; + */ + @java.lang.Override + public int getProductsCount() { + return products_.size(); + } + + /** + * + * + *
+   * The list of Product
+   * 
+ * + * repeated .google.cloud.licensemanager.v1.Product products = 1; + */ + @java.lang.Override + public com.google.cloud.licensemanager.v1.Product getProducts(int index) { + return products_.get(index); + } + + /** + * + * + *
+   * The list of Product
+   * 
+ * + * repeated .google.cloud.licensemanager.v1.Product products = 1; + */ + @java.lang.Override + public com.google.cloud.licensemanager.v1.ProductOrBuilder getProductsOrBuilder(int index) { + return products_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * 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 identifying a page of results the server should return.
+   * 
+ * + * 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; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.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 < products_.size(); i++) { + output.writeMessage(1, products_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(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 < products_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, products_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().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.cloud.licensemanager.v1.ListProductsResponse)) { + return super.equals(obj); + } + com.google.cloud.licensemanager.v1.ListProductsResponse other = + (com.google.cloud.licensemanager.v1.ListProductsResponse) obj; + + if (!getProductsList().equals(other.getProductsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getProductsCount() > 0) { + hash = (37 * hash) + PRODUCTS_FIELD_NUMBER; + hash = (53 * hash) + getProductsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.licensemanager.v1.ListProductsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.ListProductsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.ListProductsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.ListProductsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.ListProductsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.ListProductsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.ListProductsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.ListProductsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.ListProductsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.ListProductsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.ListProductsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.ListProductsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.licensemanager.v1.ListProductsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for response to listing Products
+   * 
+ * + * Protobuf type {@code google.cloud.licensemanager.v1.ListProductsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.licensemanager.v1.ListProductsResponse) + com.google.cloud.licensemanager.v1.ListProductsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_ListProductsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_ListProductsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.ListProductsResponse.class, + com.google.cloud.licensemanager.v1.ListProductsResponse.Builder.class); + } + + // Construct using com.google.cloud.licensemanager.v1.ListProductsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (productsBuilder_ == null) { + products_ = java.util.Collections.emptyList(); + } else { + products_ = null; + productsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_ListProductsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.ListProductsResponse getDefaultInstanceForType() { + return com.google.cloud.licensemanager.v1.ListProductsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.ListProductsResponse build() { + com.google.cloud.licensemanager.v1.ListProductsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.ListProductsResponse buildPartial() { + com.google.cloud.licensemanager.v1.ListProductsResponse result = + new com.google.cloud.licensemanager.v1.ListProductsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.licensemanager.v1.ListProductsResponse result) { + if (productsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + products_ = java.util.Collections.unmodifiableList(products_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.products_ = products_; + } else { + result.products_ = productsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.licensemanager.v1.ListProductsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.licensemanager.v1.ListProductsResponse) { + return mergeFrom((com.google.cloud.licensemanager.v1.ListProductsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.licensemanager.v1.ListProductsResponse other) { + if (other == com.google.cloud.licensemanager.v1.ListProductsResponse.getDefaultInstance()) + return this; + if (productsBuilder_ == null) { + if (!other.products_.isEmpty()) { + if (products_.isEmpty()) { + products_ = other.products_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureProductsIsMutable(); + products_.addAll(other.products_); + } + onChanged(); + } + } else { + if (!other.products_.isEmpty()) { + if (productsBuilder_.isEmpty()) { + productsBuilder_.dispose(); + productsBuilder_ = null; + products_ = other.products_; + bitField0_ = (bitField0_ & ~0x00000001); + productsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getProductsFieldBuilder() + : null; + } else { + productsBuilder_.addAllMessages(other.products_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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.cloud.licensemanager.v1.Product m = + input.readMessage( + com.google.cloud.licensemanager.v1.Product.parser(), extensionRegistry); + if (productsBuilder_ == null) { + ensureProductsIsMutable(); + products_.add(m); + } else { + productsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List products_ = + java.util.Collections.emptyList(); + + private void ensureProductsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + products_ = new java.util.ArrayList(products_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.licensemanager.v1.Product, + com.google.cloud.licensemanager.v1.Product.Builder, + com.google.cloud.licensemanager.v1.ProductOrBuilder> + productsBuilder_; + + /** + * + * + *
+     * The list of Product
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Product products = 1; + */ + public java.util.List getProductsList() { + if (productsBuilder_ == null) { + return java.util.Collections.unmodifiableList(products_); + } else { + return productsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The list of Product
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Product products = 1; + */ + public int getProductsCount() { + if (productsBuilder_ == null) { + return products_.size(); + } else { + return productsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The list of Product
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Product products = 1; + */ + public com.google.cloud.licensemanager.v1.Product getProducts(int index) { + if (productsBuilder_ == null) { + return products_.get(index); + } else { + return productsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The list of Product
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Product products = 1; + */ + public Builder setProducts(int index, com.google.cloud.licensemanager.v1.Product value) { + if (productsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProductsIsMutable(); + products_.set(index, value); + onChanged(); + } else { + productsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of Product
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Product products = 1; + */ + public Builder setProducts( + int index, com.google.cloud.licensemanager.v1.Product.Builder builderForValue) { + if (productsBuilder_ == null) { + ensureProductsIsMutable(); + products_.set(index, builderForValue.build()); + onChanged(); + } else { + productsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of Product
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Product products = 1; + */ + public Builder addProducts(com.google.cloud.licensemanager.v1.Product value) { + if (productsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProductsIsMutable(); + products_.add(value); + onChanged(); + } else { + productsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The list of Product
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Product products = 1; + */ + public Builder addProducts(int index, com.google.cloud.licensemanager.v1.Product value) { + if (productsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProductsIsMutable(); + products_.add(index, value); + onChanged(); + } else { + productsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of Product
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Product products = 1; + */ + public Builder addProducts(com.google.cloud.licensemanager.v1.Product.Builder builderForValue) { + if (productsBuilder_ == null) { + ensureProductsIsMutable(); + products_.add(builderForValue.build()); + onChanged(); + } else { + productsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of Product
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Product products = 1; + */ + public Builder addProducts( + int index, com.google.cloud.licensemanager.v1.Product.Builder builderForValue) { + if (productsBuilder_ == null) { + ensureProductsIsMutable(); + products_.add(index, builderForValue.build()); + onChanged(); + } else { + productsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of Product
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Product products = 1; + */ + public Builder addAllProducts( + java.lang.Iterable values) { + if (productsBuilder_ == null) { + ensureProductsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, products_); + onChanged(); + } else { + productsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The list of Product
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Product products = 1; + */ + public Builder clearProducts() { + if (productsBuilder_ == null) { + products_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + productsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The list of Product
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Product products = 1; + */ + public Builder removeProducts(int index) { + if (productsBuilder_ == null) { + ensureProductsIsMutable(); + products_.remove(index); + onChanged(); + } else { + productsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The list of Product
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Product products = 1; + */ + public com.google.cloud.licensemanager.v1.Product.Builder getProductsBuilder(int index) { + return getProductsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The list of Product
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Product products = 1; + */ + public com.google.cloud.licensemanager.v1.ProductOrBuilder getProductsOrBuilder(int index) { + if (productsBuilder_ == null) { + return products_.get(index); + } else { + return productsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The list of Product
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Product products = 1; + */ + public java.util.List + getProductsOrBuilderList() { + if (productsBuilder_ != null) { + return productsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(products_); + } + } + + /** + * + * + *
+     * The list of Product
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Product products = 1; + */ + public com.google.cloud.licensemanager.v1.Product.Builder addProductsBuilder() { + return getProductsFieldBuilder() + .addBuilder(com.google.cloud.licensemanager.v1.Product.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of Product
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Product products = 1; + */ + public com.google.cloud.licensemanager.v1.Product.Builder addProductsBuilder(int index) { + return getProductsFieldBuilder() + .addBuilder(index, com.google.cloud.licensemanager.v1.Product.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of Product
+     * 
+ * + * repeated .google.cloud.licensemanager.v1.Product products = 1; + */ + public java.util.List + getProductsBuilderList() { + return getProductsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.licensemanager.v1.Product, + com.google.cloud.licensemanager.v1.Product.Builder, + com.google.cloud.licensemanager.v1.ProductOrBuilder> + getProductsFieldBuilder() { + if (productsBuilder_ == null) { + productsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.licensemanager.v1.Product, + com.google.cloud.licensemanager.v1.Product.Builder, + com.google.cloud.licensemanager.v1.ProductOrBuilder>( + products_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + products_ = null; + } + return productsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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 identifying a page of results the server should return.
+     * 
+ * + * 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 identifying a page of results the server should return.
+     * 
+ * + * 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 identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.licensemanager.v1.ListProductsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.licensemanager.v1.ListProductsResponse) + private static final com.google.cloud.licensemanager.v1.ListProductsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.licensemanager.v1.ListProductsResponse(); + } + + public static com.google.cloud.licensemanager.v1.ListProductsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProductsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.ListProductsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ListProductsResponseOrBuilder.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ListProductsResponseOrBuilder.java new file mode 100644 index 000000000000..99653fd8720a --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ListProductsResponseOrBuilder.java @@ -0,0 +1,162 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/licensemanager.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +public interface ListProductsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.licensemanager.v1.ListProductsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of Product
+   * 
+ * + * repeated .google.cloud.licensemanager.v1.Product products = 1; + */ + java.util.List getProductsList(); + + /** + * + * + *
+   * The list of Product
+   * 
+ * + * repeated .google.cloud.licensemanager.v1.Product products = 1; + */ + com.google.cloud.licensemanager.v1.Product getProducts(int index); + + /** + * + * + *
+   * The list of Product
+   * 
+ * + * repeated .google.cloud.licensemanager.v1.Product products = 1; + */ + int getProductsCount(); + + /** + * + * + *
+   * The list of Product
+   * 
+ * + * repeated .google.cloud.licensemanager.v1.Product products = 1; + */ + java.util.List + getProductsOrBuilderList(); + + /** + * + * + *
+   * The list of Product
+   * 
+ * + * repeated .google.cloud.licensemanager.v1.Product products = 1; + */ + com.google.cloud.licensemanager.v1.ProductOrBuilder getProductsOrBuilder(int index); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/LocationName.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/LocationName.java new file mode 100644 index 000000000000..2daba1c9c5f1 --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/LocationName.java @@ -0,0 +1,192 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class LocationName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION = + PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + + @Deprecated + protected LocationName() { + project = null; + location = null; + } + + private LocationName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static LocationName of(String project, String location) { + return newBuilder().setProject(project).setLocation(location).build(); + } + + public static String format(String project, String location) { + return newBuilder().setProject(project).setLocation(location).build().toString(); + } + + public static LocationName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION.validatedMatch( + formattedString, "LocationName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (LocationName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION.instantiate("project", project, "location", location); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + LocationName that = ((LocationName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + return h; + } + + /** Builder for projects/{project}/locations/{location}. */ + public static class Builder { + private String project; + private String location; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + private Builder(LocationName locationName) { + this.project = locationName.project; + this.location = locationName.location; + } + + public LocationName build() { + return new LocationName(this); + } + } +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/OperationMetadata.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/OperationMetadata.java new file mode 100644 index 000000000000..cb718d2c488e --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/OperationMetadata.java @@ -0,0 +1,1910 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/licensemanager.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +/** + * + * + *
+ * Represents the metadata of the long-running operation.
+ * 
+ * + * Protobuf type {@code google.cloud.licensemanager.v1.OperationMetadata} + */ +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.licensemanager.v1.OperationMetadata) + OperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + // Use OperationMetadata.newBuilder() to construct. + private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private OperationMetadata() { + target_ = ""; + verb_ = ""; + statusMessage_ = ""; + apiVersion_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OperationMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_OperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_OperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.OperationMetadata.class, + com.google.cloud.licensemanager.v1.OperationMetadata.Builder.class); + } + + private int bitField0_; + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. The time the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1 [(.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 the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1 [(.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 the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1 [(.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 END_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp endTime_; + + /** + * + * + *
+   * Output only. The time the operation finished running.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. The time the operation finished running.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + /** + * + * + *
+   * Output only. The time the operation finished running.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + public static final int TARGET_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object target_ = ""; + + /** + * + * + *
+   * Output only. Server-defined resource path for the target of the operation.
+   * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + @java.lang.Override + public java.lang.String getTarget() { + java.lang.Object 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(); + target_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Server-defined resource path for the target of the operation.
+   * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetBytes() { + java.lang.Object ref = target_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERB_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object verb_ = ""; + + /** + * + * + *
+   * Output only. Name of the verb executed by the operation.
+   * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The verb. + */ + @java.lang.Override + public java.lang.String getVerb() { + java.lang.Object ref = verb_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + verb_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Name of the verb executed by the operation.
+   * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for verb. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVerbBytes() { + java.lang.Object ref = verb_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + verb_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object statusMessage_ = ""; + + /** + * + * + *
+   * Output only. Human-readable status of the operation, if any.
+   * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The statusMessage. + */ + @java.lang.Override + public java.lang.String getStatusMessage() { + java.lang.Object ref = statusMessage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusMessage_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Human-readable status of the operation, if any.
+   * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for statusMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; + private boolean requestedCancellation_ = false; + + /** + * + * + *
+   * Output only. Identifies whether the user has requested cancellation
+   * of the operation. Operations that have been cancelled successfully
+   * have
+   * [google.longrunning.Operation.error][google.longrunning.Operation.error]
+   * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+   * corresponding to `Code.CANCELLED`.
+   * 
+ * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The requestedCancellation. + */ + @java.lang.Override + public boolean getRequestedCancellation() { + return requestedCancellation_; + } + + public static final int API_VERSION_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object apiVersion_ = ""; + + /** + * + * + *
+   * Output only. API version used to start the operation.
+   * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The apiVersion. + */ + @java.lang.Override + public java.lang.String getApiVersion() { + java.lang.Object ref = apiVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + apiVersion_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. API version used to start the operation.
+   * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for apiVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getApiVersionBytes() { + java.lang.Object ref = apiVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apiVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getEndTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, target_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(verb_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, verb_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, statusMessage_); + } + if (requestedCancellation_ != false) { + output.writeBool(6, requestedCancellation_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, apiVersion_); + } + 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, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(verb_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, verb_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); + } + if (requestedCancellation_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requestedCancellation_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.licensemanager.v1.OperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.licensemanager.v1.OperationMetadata other = + (com.google.cloud.licensemanager.v1.OperationMetadata) obj; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getTarget().equals(other.getTarget())) return false; + if (!getVerb().equals(other.getVerb())) return false; + if (!getStatusMessage().equals(other.getStatusMessage())) return false; + if (getRequestedCancellation() != other.getRequestedCancellation()) return false; + if (!getApiVersion().equals(other.getApiVersion())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (37 * hash) + TARGET_FIELD_NUMBER; + hash = (53 * hash) + getTarget().hashCode(); + hash = (37 * hash) + VERB_FIELD_NUMBER; + hash = (53 * hash) + getVerb().hashCode(); + hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getStatusMessage().hashCode(); + hash = (37 * hash) + REQUESTED_CANCELLATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequestedCancellation()); + hash = (37 * hash) + API_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getApiVersion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.licensemanager.v1.OperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.OperationMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.OperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.OperationMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.OperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.OperationMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.OperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.OperationMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.OperationMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.OperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.OperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.licensemanager.v1.OperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Represents the metadata of the long-running operation.
+   * 
+ * + * Protobuf type {@code google.cloud.licensemanager.v1.OperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.licensemanager.v1.OperationMetadata) + com.google.cloud.licensemanager.v1.OperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_OperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_OperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.OperationMetadata.class, + com.google.cloud.licensemanager.v1.OperationMetadata.Builder.class); + } + + // Construct using com.google.cloud.licensemanager.v1.OperationMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getEndTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + target_ = ""; + verb_ = ""; + statusMessage_ = ""; + requestedCancellation_ = false; + apiVersion_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_OperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.OperationMetadata getDefaultInstanceForType() { + return com.google.cloud.licensemanager.v1.OperationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.OperationMetadata build() { + com.google.cloud.licensemanager.v1.OperationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.OperationMetadata buildPartial() { + com.google.cloud.licensemanager.v1.OperationMetadata result = + new com.google.cloud.licensemanager.v1.OperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.licensemanager.v1.OperationMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.target_ = target_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.verb_ = verb_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.statusMessage_ = statusMessage_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.requestedCancellation_ = requestedCancellation_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.apiVersion_ = apiVersion_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.licensemanager.v1.OperationMetadata) { + return mergeFrom((com.google.cloud.licensemanager.v1.OperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.licensemanager.v1.OperationMetadata other) { + if (other == com.google.cloud.licensemanager.v1.OperationMetadata.getDefaultInstance()) + return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (!other.getTarget().isEmpty()) { + target_ = other.target_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getVerb().isEmpty()) { + verb_ = other.verb_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getStatusMessage().isEmpty()) { + statusMessage_ = other.statusMessage_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getRequestedCancellation() != false) { + setRequestedCancellation(other.getRequestedCancellation()); + } + if (!other.getApiVersion().isEmpty()) { + apiVersion_ = other.apiVersion_; + bitField0_ |= 0x00000040; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + verb_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + statusMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + requestedCancellation_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + apiVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. The time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Output only. The time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.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 the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.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 the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + + /** + * + * + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000002); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + + /** + * + * + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + private java.lang.Object target_ = ""; + + /** + * + * + *
+     * Output only. Server-defined resource path for the target of the operation.
+     * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + public java.lang.String getTarget() { + java.lang.Object ref = target_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + target_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Server-defined resource path for the target of the operation.
+     * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + public com.google.protobuf.ByteString getTargetBytes() { + java.lang.Object ref = target_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Server-defined resource path for the target of the operation.
+     * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The target to set. + * @return This builder for chaining. + */ + public Builder setTarget(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Server-defined resource path for the target of the operation.
+     * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTarget() { + target_ = getDefaultInstance().getTarget(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Server-defined resource path for the target of the operation.
+     * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for target to set. + * @return This builder for chaining. + */ + public Builder setTargetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object verb_ = ""; + + /** + * + * + *
+     * Output only. Name of the verb executed by the operation.
+     * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The verb. + */ + public java.lang.String getVerb() { + java.lang.Object ref = verb_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + verb_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Name of the verb executed by the operation.
+     * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for verb. + */ + public com.google.protobuf.ByteString getVerbBytes() { + java.lang.Object ref = verb_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + verb_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Name of the verb executed by the operation.
+     * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The verb to set. + * @return This builder for chaining. + */ + public Builder setVerb(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + verb_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Name of the verb executed by the operation.
+     * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearVerb() { + verb_ = getDefaultInstance().getVerb(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Name of the verb executed by the operation.
+     * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for verb to set. + * @return This builder for chaining. + */ + public Builder setVerbBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object statusMessage_ = ""; + + /** + * + * + *
+     * Output only. Human-readable status of the operation, if any.
+     * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The statusMessage. + */ + public java.lang.String getStatusMessage() { + java.lang.Object ref = statusMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Human-readable status of the operation, if any.
+     * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for statusMessage. + */ + public com.google.protobuf.ByteString getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Human-readable status of the operation, if any.
+     * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The statusMessage to set. + * @return This builder for chaining. + */ + public Builder setStatusMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + statusMessage_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Human-readable status of the operation, if any.
+     * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearStatusMessage() { + statusMessage_ = getDefaultInstance().getStatusMessage(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Human-readable status of the operation, if any.
+     * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for statusMessage to set. + * @return This builder for chaining. + */ + public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusMessage_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private boolean requestedCancellation_; + + /** + * + * + *
+     * Output only. Identifies whether the user has requested cancellation
+     * of the operation. Operations that have been cancelled successfully
+     * have
+     * [google.longrunning.Operation.error][google.longrunning.Operation.error]
+     * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+     * corresponding to `Code.CANCELLED`.
+     * 
+ * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The requestedCancellation. + */ + @java.lang.Override + public boolean getRequestedCancellation() { + return requestedCancellation_; + } + + /** + * + * + *
+     * Output only. Identifies whether the user has requested cancellation
+     * of the operation. Operations that have been cancelled successfully
+     * have
+     * [google.longrunning.Operation.error][google.longrunning.Operation.error]
+     * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+     * corresponding to `Code.CANCELLED`.
+     * 
+ * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The requestedCancellation to set. + * @return This builder for chaining. + */ + public Builder setRequestedCancellation(boolean value) { + + requestedCancellation_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Identifies whether the user has requested cancellation
+     * of the operation. Operations that have been cancelled successfully
+     * have
+     * [google.longrunning.Operation.error][google.longrunning.Operation.error]
+     * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+     * corresponding to `Code.CANCELLED`.
+     * 
+ * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRequestedCancellation() { + bitField0_ = (bitField0_ & ~0x00000020); + requestedCancellation_ = false; + onChanged(); + return this; + } + + private java.lang.Object apiVersion_ = ""; + + /** + * + * + *
+     * Output only. API version used to start the operation.
+     * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The apiVersion. + */ + public java.lang.String getApiVersion() { + java.lang.Object ref = apiVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + apiVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. API version used to start the operation.
+     * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for apiVersion. + */ + public com.google.protobuf.ByteString getApiVersionBytes() { + java.lang.Object ref = apiVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apiVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. API version used to start the operation.
+     * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The apiVersion to set. + * @return This builder for chaining. + */ + public Builder setApiVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + apiVersion_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. API version used to start the operation.
+     * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearApiVersion() { + apiVersion_ = getDefaultInstance().getApiVersion(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. API version used to start the operation.
+     * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for apiVersion to set. + * @return This builder for chaining. + */ + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.licensemanager.v1.OperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.licensemanager.v1.OperationMetadata) + private static final com.google.cloud.licensemanager.v1.OperationMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.licensemanager.v1.OperationMetadata(); + } + + public static com.google.cloud.licensemanager.v1.OperationMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.OperationMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/OperationMetadataOrBuilder.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/OperationMetadataOrBuilder.java new file mode 100644 index 000000000000..7f5ac35edf64 --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/OperationMetadataOrBuilder.java @@ -0,0 +1,228 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/licensemanager.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +public interface OperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.licensemanager.v1.OperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The time the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. The time the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. The time the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The time the operation finished running.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + + /** + * + * + *
+   * Output only. The time the operation finished running.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + + /** + * + * + *
+   * Output only. The time the operation finished running.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Server-defined resource path for the target of the operation.
+   * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + java.lang.String getTarget(); + + /** + * + * + *
+   * Output only. Server-defined resource path for the target of the operation.
+   * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + com.google.protobuf.ByteString getTargetBytes(); + + /** + * + * + *
+   * Output only. Name of the verb executed by the operation.
+   * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The verb. + */ + java.lang.String getVerb(); + + /** + * + * + *
+   * Output only. Name of the verb executed by the operation.
+   * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for verb. + */ + com.google.protobuf.ByteString getVerbBytes(); + + /** + * + * + *
+   * Output only. Human-readable status of the operation, if any.
+   * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The statusMessage. + */ + java.lang.String getStatusMessage(); + + /** + * + * + *
+   * Output only. Human-readable status of the operation, if any.
+   * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for statusMessage. + */ + com.google.protobuf.ByteString getStatusMessageBytes(); + + /** + * + * + *
+   * Output only. Identifies whether the user has requested cancellation
+   * of the operation. Operations that have been cancelled successfully
+   * have
+   * [google.longrunning.Operation.error][google.longrunning.Operation.error]
+   * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+   * corresponding to `Code.CANCELLED`.
+   * 
+ * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The requestedCancellation. + */ + boolean getRequestedCancellation(); + + /** + * + * + *
+   * Output only. API version used to start the operation.
+   * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The apiVersion. + */ + java.lang.String getApiVersion(); + + /** + * + * + *
+   * Output only. API version used to start the operation.
+   * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for apiVersion. + */ + com.google.protobuf.ByteString getApiVersionBytes(); +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/Product.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/Product.java new file mode 100644 index 000000000000..7144f74ee1b5 --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/Product.java @@ -0,0 +1,1961 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/api_entities.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +/** + * + * + *
+ * Products for Google SPLA.
+ * 
+ * + * Protobuf type {@code google.cloud.licensemanager.v1.Product} + */ +public final class Product extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.licensemanager.v1.Product) + ProductOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Product.newBuilder() to construct. + private Product(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Product() { + name_ = ""; + version_ = ""; + productCompany_ = ""; + state_ = 0; + sku_ = ""; + description_ = ""; + displayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Product(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.ApiEntitiesProto + .internal_static_google_cloud_licensemanager_v1_Product_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.ApiEntitiesProto + .internal_static_google_cloud_licensemanager_v1_Product_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.Product.class, + com.google.cloud.licensemanager.v1.Product.Builder.class); + } + + /** + * + * + *
+   * State of the product.
+   * 
+ * + * Protobuf enum {@code google.cloud.licensemanager.v1.Product.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The Status of the product is unknown.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * Product is under provisioning stage.
+     * 
+ * + * STATE_PROVISIONING = 1; + */ + STATE_PROVISIONING(1), + /** + * + * + *
+     * Product is ok to run on instances.
+     * 
+ * + * STATE_RUNNING = 2; + */ + STATE_RUNNING(2), + /** + * + * + *
+     * The product is about to terminate or has been announced for termination.
+     * 
+ * + * STATE_TERMINATING = 3; + */ + STATE_TERMINATING(3), + /** + * + * + *
+     * The product has been terminated.
+     * 
+ * + * STATE_TERMINATED = 4; + */ + STATE_TERMINATED(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * The Status of the product is unknown.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Product is under provisioning stage.
+     * 
+ * + * STATE_PROVISIONING = 1; + */ + public static final int STATE_PROVISIONING_VALUE = 1; + + /** + * + * + *
+     * Product is ok to run on instances.
+     * 
+ * + * STATE_RUNNING = 2; + */ + public static final int STATE_RUNNING_VALUE = 2; + + /** + * + * + *
+     * The product is about to terminate or has been announced for termination.
+     * 
+ * + * STATE_TERMINATING = 3; + */ + public static final int STATE_TERMINATING_VALUE = 3; + + /** + * + * + *
+     * The product has been terminated.
+     * 
+ * + * STATE_TERMINATED = 4; + */ + public static final int STATE_TERMINATED_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return STATE_PROVISIONING; + case 2: + return STATE_RUNNING; + case 3: + return STATE_TERMINATING; + case 4: + return STATE_TERMINATED; + 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 State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.Product.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State 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 State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.licensemanager.v1.Product.State) + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. Full name of the product resource.
+   * ex "projects/1/locations/us-central1/products/office-2021"
+   * 
+ * + * 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. Full name of the product resource.
+   * ex "projects/1/locations/us-central1/products/office-2021"
+   * 
+ * + * 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 VERSION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; + + /** + * + * + *
+   * Required. Version of the product.
+   * 
+ * + * string version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The version. + */ + @java.lang.Override + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Version of the product.
+   * 
+ * + * string version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for version. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRODUCT_COMPANY_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object productCompany_ = ""; + + /** + * + * + *
+   * Required. Company that released the product.
+   * 
+ * + * string product_company = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The productCompany. + */ + @java.lang.Override + public java.lang.String getProductCompany() { + java.lang.Object ref = productCompany_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + productCompany_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Company that released the product.
+   * 
+ * + * string product_company = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for productCompany. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProductCompanyBytes() { + java.lang.Object ref = productCompany_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + productCompany_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 4; + private int state_ = 0; + + /** + * + * + *
+   * Output only. State of the product.
+   * 
+ * + * + * .google.cloud.licensemanager.v1.Product.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+   * Output only. State of the product.
+   * 
+ * + * + * .google.cloud.licensemanager.v1.Product.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.licensemanager.v1.Product.State getState() { + com.google.cloud.licensemanager.v1.Product.State result = + com.google.cloud.licensemanager.v1.Product.State.forNumber(state_); + return result == null ? com.google.cloud.licensemanager.v1.Product.State.UNRECOGNIZED : result; + } + + public static final int SKU_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object sku_ = ""; + + /** + * + * + *
+   * Required. SKU for mapping to the Billing/Subscription resource.
+   * 
+ * + * string sku = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The sku. + */ + @java.lang.Override + public java.lang.String getSku() { + java.lang.Object ref = sku_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sku_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. SKU for mapping to the Billing/Subscription resource.
+   * 
+ * + * string sku = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for sku. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSkuBytes() { + java.lang.Object ref = sku_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sku_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * Required. Human-readable, detailed description of the Product
+   * 
+ * + * string description = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Human-readable, detailed description of the Product
+   * 
+ * + * string description = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
+   * Required. Human-readable name of the Product
+   * 
+ * + * string display_name = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Human-readable name of the Product
+   * 
+ * + * string display_name = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(productCompany_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, productCompany_); + } + if (state_ != com.google.cloud.licensemanager.v1.Product.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(4, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sku_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, sku_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, description_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, displayName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(productCompany_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, productCompany_); + } + if (state_ != com.google.cloud.licensemanager.v1.Product.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sku_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, sku_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, description_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, displayName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.licensemanager.v1.Product)) { + return super.equals(obj); + } + com.google.cloud.licensemanager.v1.Product other = + (com.google.cloud.licensemanager.v1.Product) obj; + + if (!getName().equals(other.getName())) return false; + if (!getVersion().equals(other.getVersion())) return false; + if (!getProductCompany().equals(other.getProductCompany())) return false; + if (state_ != other.state_) return false; + if (!getSku().equals(other.getSku())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (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) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (37 * hash) + PRODUCT_COMPANY_FIELD_NUMBER; + hash = (53 * hash) + getProductCompany().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + SKU_FIELD_NUMBER; + hash = (53 * hash) + getSku().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.licensemanager.v1.Product parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.Product parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.Product parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.Product parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.Product parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.Product parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.Product parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.Product parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.Product parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.Product parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.Product parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.Product parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.licensemanager.v1.Product prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Products for Google SPLA.
+   * 
+ * + * Protobuf type {@code google.cloud.licensemanager.v1.Product} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.licensemanager.v1.Product) + com.google.cloud.licensemanager.v1.ProductOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.ApiEntitiesProto + .internal_static_google_cloud_licensemanager_v1_Product_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.ApiEntitiesProto + .internal_static_google_cloud_licensemanager_v1_Product_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.Product.class, + com.google.cloud.licensemanager.v1.Product.Builder.class); + } + + // Construct using com.google.cloud.licensemanager.v1.Product.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + version_ = ""; + productCompany_ = ""; + state_ = 0; + sku_ = ""; + description_ = ""; + displayName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.licensemanager.v1.ApiEntitiesProto + .internal_static_google_cloud_licensemanager_v1_Product_descriptor; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.Product getDefaultInstanceForType() { + return com.google.cloud.licensemanager.v1.Product.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.Product build() { + com.google.cloud.licensemanager.v1.Product result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.Product buildPartial() { + com.google.cloud.licensemanager.v1.Product result = + new com.google.cloud.licensemanager.v1.Product(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.licensemanager.v1.Product result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.version_ = version_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.productCompany_ = productCompany_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.sku_ = sku_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.displayName_ = displayName_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.licensemanager.v1.Product) { + return mergeFrom((com.google.cloud.licensemanager.v1.Product) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.licensemanager.v1.Product other) { + if (other == com.google.cloud.licensemanager.v1.Product.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getProductCompany().isEmpty()) { + productCompany_ = other.productCompany_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getSku().isEmpty()) { + sku_ = other.sku_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000040; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + version_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + productCompany_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + sku_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Identifier. Full name of the product resource.
+     * ex "projects/1/locations/us-central1/products/office-2021"
+     * 
+ * + * 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. Full name of the product resource.
+     * ex "projects/1/locations/us-central1/products/office-2021"
+     * 
+ * + * 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. Full name of the product resource.
+     * ex "projects/1/locations/us-central1/products/office-2021"
+     * 
+ * + * 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. Full name of the product resource.
+     * ex "projects/1/locations/us-central1/products/office-2021"
+     * 
+ * + * 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. Full name of the product resource.
+     * ex "projects/1/locations/us-central1/products/office-2021"
+     * 
+ * + * 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 version_ = ""; + + /** + * + * + *
+     * Required. Version of the product.
+     * 
+ * + * string version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The version. + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Version of the product.
+     * 
+ * + * string version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for version. + */ + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Version of the product.
+     * 
+ * + * string version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + version_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Version of the product.
+     * 
+ * + * string version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + version_ = getDefaultInstance().getVersion(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Version of the product.
+     * 
+ * + * string version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for version to set. + * @return This builder for chaining. + */ + public Builder setVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object productCompany_ = ""; + + /** + * + * + *
+     * Required. Company that released the product.
+     * 
+ * + * string product_company = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The productCompany. + */ + public java.lang.String getProductCompany() { + java.lang.Object ref = productCompany_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + productCompany_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Company that released the product.
+     * 
+ * + * string product_company = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for productCompany. + */ + public com.google.protobuf.ByteString getProductCompanyBytes() { + java.lang.Object ref = productCompany_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + productCompany_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Company that released the product.
+     * 
+ * + * string product_company = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The productCompany to set. + * @return This builder for chaining. + */ + public Builder setProductCompany(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + productCompany_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Company that released the product.
+     * 
+ * + * string product_company = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProductCompany() { + productCompany_ = getDefaultInstance().getProductCompany(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Company that released the product.
+     * 
+ * + * string product_company = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for productCompany to set. + * @return This builder for chaining. + */ + public Builder setProductCompanyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + productCompany_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
+     * Output only. State of the product.
+     * 
+ * + * + * .google.cloud.licensemanager.v1.Product.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+     * Output only. State of the product.
+     * 
+ * + * + * .google.cloud.licensemanager.v1.Product.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. State of the product.
+     * 
+ * + * + * .google.cloud.licensemanager.v1.Product.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.licensemanager.v1.Product.State getState() { + com.google.cloud.licensemanager.v1.Product.State result = + com.google.cloud.licensemanager.v1.Product.State.forNumber(state_); + return result == null + ? com.google.cloud.licensemanager.v1.Product.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. State of the product.
+     * 
+ * + * + * .google.cloud.licensemanager.v1.Product.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.licensemanager.v1.Product.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. State of the product.
+     * 
+ * + * + * .google.cloud.licensemanager.v1.Product.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000008); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object sku_ = ""; + + /** + * + * + *
+     * Required. SKU for mapping to the Billing/Subscription resource.
+     * 
+ * + * string sku = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The sku. + */ + public java.lang.String getSku() { + java.lang.Object ref = sku_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sku_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. SKU for mapping to the Billing/Subscription resource.
+     * 
+ * + * string sku = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for sku. + */ + public com.google.protobuf.ByteString getSkuBytes() { + java.lang.Object ref = sku_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sku_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. SKU for mapping to the Billing/Subscription resource.
+     * 
+ * + * string sku = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The sku to set. + * @return This builder for chaining. + */ + public Builder setSku(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sku_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. SKU for mapping to the Billing/Subscription resource.
+     * 
+ * + * string sku = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSku() { + sku_ = getDefaultInstance().getSku(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. SKU for mapping to the Billing/Subscription resource.
+     * 
+ * + * string sku = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for sku to set. + * @return This builder for chaining. + */ + public Builder setSkuBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sku_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+     * Required. Human-readable, detailed description of the Product
+     * 
+ * + * string description = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Human-readable, detailed description of the Product
+     * 
+ * + * string description = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Human-readable, detailed description of the Product
+     * 
+ * + * string description = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Human-readable, detailed description of the Product
+     * 
+ * + * string description = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Human-readable, detailed description of the Product
+     * 
+ * + * string description = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
+     * Required. Human-readable name of the Product
+     * 
+ * + * string display_name = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Human-readable name of the Product
+     * 
+ * + * string display_name = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Human-readable name of the Product
+     * 
+ * + * string display_name = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Human-readable name of the Product
+     * 
+ * + * string display_name = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Human-readable name of the Product
+     * 
+ * + * string display_name = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.licensemanager.v1.Product) + } + + // @@protoc_insertion_point(class_scope:google.cloud.licensemanager.v1.Product) + private static final com.google.cloud.licensemanager.v1.Product DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.licensemanager.v1.Product(); + } + + public static com.google.cloud.licensemanager.v1.Product getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Product parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.Product getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ProductName.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ProductName.java new file mode 100644 index 000000000000..5387400ca1d9 --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ProductName.java @@ -0,0 +1,223 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class ProductName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_PRODUCT = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/products/{product}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String product; + + @Deprecated + protected ProductName() { + project = null; + location = null; + product = null; + } + + private ProductName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + product = Preconditions.checkNotNull(builder.getProduct()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getProduct() { + return product; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ProductName of(String project, String location, String product) { + return newBuilder().setProject(project).setLocation(location).setProduct(product).build(); + } + + public static String format(String project, String location, String product) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setProduct(product) + .build() + .toString(); + } + + public static ProductName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_PRODUCT.validatedMatch( + formattedString, "ProductName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("product")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (ProductName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_PRODUCT.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (product != null) { + fieldMapBuilder.put("product", product); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_PRODUCT.instantiate( + "project", project, "location", location, "product", product); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ProductName that = ((ProductName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.product, that.product); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(product); + return h; + } + + /** Builder for projects/{project}/locations/{location}/products/{product}. */ + public static class Builder { + private String project; + private String location; + private String product; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getProduct() { + return product; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setProduct(String product) { + this.product = product; + return this; + } + + private Builder(ProductName productName) { + this.project = productName.project; + this.location = productName.location; + this.product = productName.product; + } + + public ProductName build() { + return new ProductName(this); + } + } +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ProductOrBuilder.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ProductOrBuilder.java new file mode 100644 index 000000000000..6a6164e29609 --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ProductOrBuilder.java @@ -0,0 +1,214 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/api_entities.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +public interface ProductOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.licensemanager.v1.Product) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. Full name of the product resource.
+   * ex "projects/1/locations/us-central1/products/office-2021"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. Full name of the product resource.
+   * ex "projects/1/locations/us-central1/products/office-2021"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. Version of the product.
+   * 
+ * + * string version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The version. + */ + java.lang.String getVersion(); + + /** + * + * + *
+   * Required. Version of the product.
+   * 
+ * + * string version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for version. + */ + com.google.protobuf.ByteString getVersionBytes(); + + /** + * + * + *
+   * Required. Company that released the product.
+   * 
+ * + * string product_company = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The productCompany. + */ + java.lang.String getProductCompany(); + + /** + * + * + *
+   * Required. Company that released the product.
+   * 
+ * + * string product_company = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for productCompany. + */ + com.google.protobuf.ByteString getProductCompanyBytes(); + + /** + * + * + *
+   * Output only. State of the product.
+   * 
+ * + * + * .google.cloud.licensemanager.v1.Product.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
+   * Output only. State of the product.
+   * 
+ * + * + * .google.cloud.licensemanager.v1.Product.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.licensemanager.v1.Product.State getState(); + + /** + * + * + *
+   * Required. SKU for mapping to the Billing/Subscription resource.
+   * 
+ * + * string sku = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The sku. + */ + java.lang.String getSku(); + + /** + * + * + *
+   * Required. SKU for mapping to the Billing/Subscription resource.
+   * 
+ * + * string sku = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for sku. + */ + com.google.protobuf.ByteString getSkuBytes(); + + /** + * + * + *
+   * Required. Human-readable, detailed description of the Product
+   * 
+ * + * string description = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Required. Human-readable, detailed description of the Product
+   * 
+ * + * string description = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Required. Human-readable name of the Product
+   * 
+ * + * string display_name = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+   * Required. Human-readable name of the Product
+   * 
+ * + * string display_name = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/QueryConfigurationLicenseUsageRequest.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/QueryConfigurationLicenseUsageRequest.java new file mode 100644 index 000000000000..1351ccfd4474 --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/QueryConfigurationLicenseUsageRequest.java @@ -0,0 +1,1267 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/licensemanager.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +/** + * + * + *
+ * Message for requesting license usage per configuration.
+ * 
+ * + * Protobuf type {@code google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest} + */ +public final class QueryConfigurationLicenseUsageRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest) + QueryConfigurationLicenseUsageRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use QueryConfigurationLicenseUsageRequest.newBuilder() to construct. + private QueryConfigurationLicenseUsageRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private QueryConfigurationLicenseUsageRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new QueryConfigurationLicenseUsageRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_QueryConfigurationLicenseUsageRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_QueryConfigurationLicenseUsageRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest.class, + com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource path of the Configuration.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The resource path of the Configuration.
+   * 
+ * + * + * 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 START_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp startTime_; + + /** + * + * + *
+   * Required. The start time for retrieving the usage. If not specified, we
+   * will use the first day of the current billing period.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The start time for retrieving the usage. If not specified, we
+   * will use the first day of the current billing period.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + /** + * + * + *
+   * Required. The start time for retrieving the usage. If not specified, we
+   * will use the first day of the current billing period.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + public static final int END_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp endTime_; + + /** + * + * + *
+   * Required. The end time for retrieving the usage. If not specified, we will
+   * use the last day of the current billing period.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Required. The end time for retrieving the usage. If not specified, we will
+   * use the last day of the current billing period.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + /** + * + * + *
+   * Required. The end time for retrieving the usage. If not specified, we will
+   * use the last day of the current billing period.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getEndTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest)) { + return super.equals(obj); + } + com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest other = + (com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for requesting license usage per configuration.
+   * 
+ * + * Protobuf type {@code google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest) + com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_QueryConfigurationLicenseUsageRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_QueryConfigurationLicenseUsageRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest.class, + com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getStartTimeFieldBuilder(); + getEndTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_QueryConfigurationLicenseUsageRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest + getDefaultInstanceForType() { + return com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest build() { + com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest buildPartial() { + com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest result = + new com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest) { + return mergeFrom( + (com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest other) { + if (other + == com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource path of the Configuration.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The resource path of the Configuration.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The resource path of the Configuration.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource path of the Configuration.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource path of the Configuration.
+     * 
+ * + * + * 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 com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + + /** + * + * + *
+     * Required. The start time for retrieving the usage. If not specified, we
+     * will use the first day of the current billing period.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. The start time for retrieving the usage. If not specified, we
+     * will use the first day of the current billing period.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The start time for retrieving the usage. If not specified, we
+     * will use the first day of the current billing period.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The start time for retrieving the usage. If not specified, we
+     * will use the first day of the current billing period.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The start time for retrieving the usage. If not specified, we
+     * will use the first day of the current billing period.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The start time for retrieving the usage. If not specified, we
+     * will use the first day of the current billing period.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000002); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The start time for retrieving the usage. If not specified, we
+     * will use the first day of the current billing period.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The start time for retrieving the usage. If not specified, we
+     * will use the first day of the current billing period.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + + /** + * + * + *
+     * Required. The start time for retrieving the usage. If not specified, we
+     * will use the first day of the current billing period.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + + /** + * + * + *
+     * Required. The end time for retrieving the usage. If not specified, we will
+     * use the last day of the current billing period.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. The end time for retrieving the usage. If not specified, we will
+     * use the last day of the current billing period.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The end time for retrieving the usage. If not specified, we will
+     * use the last day of the current billing period.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The end time for retrieving the usage. If not specified, we will
+     * use the last day of the current billing period.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The end time for retrieving the usage. If not specified, we will
+     * use the last day of the current billing period.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The end time for retrieving the usage. If not specified, we will
+     * use the last day of the current billing period.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000004); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The end time for retrieving the usage. If not specified, we will
+     * use the last day of the current billing period.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The end time for retrieving the usage. If not specified, we will
+     * use the last day of the current billing period.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + + /** + * + * + *
+     * Required. The end time for retrieving the usage. If not specified, we will
+     * use the last day of the current billing period.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest) + private static final com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest(); + } + + public static com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryConfigurationLicenseUsageRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/QueryConfigurationLicenseUsageRequestOrBuilder.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/QueryConfigurationLicenseUsageRequestOrBuilder.java new file mode 100644 index 000000000000..5b0ea5e9b5ba --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/QueryConfigurationLicenseUsageRequestOrBuilder.java @@ -0,0 +1,139 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/licensemanager.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +public interface QueryConfigurationLicenseUsageRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource path of the Configuration.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource path of the Configuration.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The start time for retrieving the usage. If not specified, we
+   * will use the first day of the current billing period.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + + /** + * + * + *
+   * Required. The start time for retrieving the usage. If not specified, we
+   * will use the first day of the current billing period.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + + /** + * + * + *
+   * Required. The start time for retrieving the usage. If not specified, we
+   * will use the first day of the current billing period.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
+   * Required. The end time for retrieving the usage. If not specified, we will
+   * use the last day of the current billing period.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + + /** + * + * + *
+   * Required. The end time for retrieving the usage. If not specified, we will
+   * use the last day of the current billing period.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + + /** + * + * + *
+   * Required. The end time for retrieving the usage. If not specified, we will
+   * use the last day of the current billing period.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/QueryConfigurationLicenseUsageResponse.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/QueryConfigurationLicenseUsageResponse.java new file mode 100644 index 000000000000..36d6d46c6924 --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/QueryConfigurationLicenseUsageResponse.java @@ -0,0 +1,854 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/licensemanager.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +/** + * + * + *
+ * Message for response to get the license usage per configuration.
+ * 
+ * + * Protobuf type {@code google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse} + */ +public final class QueryConfigurationLicenseUsageResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse) + QueryConfigurationLicenseUsageResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use QueryConfigurationLicenseUsageResponse.newBuilder() to construct. + private QueryConfigurationLicenseUsageResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private QueryConfigurationLicenseUsageResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new QueryConfigurationLicenseUsageResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_QueryConfigurationLicenseUsageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_QueryConfigurationLicenseUsageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse.class, + com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse.Builder + .class); + } + + private int detailsCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object details_; + + public enum DetailsCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + USER_COUNT_USAGE(1), + DETAILS_NOT_SET(0); + private final int value; + + private DetailsCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DetailsCase valueOf(int value) { + return forNumber(value); + } + + public static DetailsCase forNumber(int value) { + switch (value) { + case 1: + return USER_COUNT_USAGE; + case 0: + return DETAILS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DetailsCase getDetailsCase() { + return DetailsCase.forNumber(detailsCase_); + } + + public static final int USER_COUNT_USAGE_FIELD_NUMBER = 1; + + /** + * + * + *
+   * Usage information for license types which use user-count billing.
+   * 
+ * + * .google.cloud.licensemanager.v1.UserCountUsage user_count_usage = 1; + * + * @return Whether the userCountUsage field is set. + */ + @java.lang.Override + public boolean hasUserCountUsage() { + return detailsCase_ == 1; + } + + /** + * + * + *
+   * Usage information for license types which use user-count billing.
+   * 
+ * + * .google.cloud.licensemanager.v1.UserCountUsage user_count_usage = 1; + * + * @return The userCountUsage. + */ + @java.lang.Override + public com.google.cloud.licensemanager.v1.UserCountUsage getUserCountUsage() { + if (detailsCase_ == 1) { + return (com.google.cloud.licensemanager.v1.UserCountUsage) details_; + } + return com.google.cloud.licensemanager.v1.UserCountUsage.getDefaultInstance(); + } + + /** + * + * + *
+   * Usage information for license types which use user-count billing.
+   * 
+ * + * .google.cloud.licensemanager.v1.UserCountUsage user_count_usage = 1; + */ + @java.lang.Override + public com.google.cloud.licensemanager.v1.UserCountUsageOrBuilder getUserCountUsageOrBuilder() { + if (detailsCase_ == 1) { + return (com.google.cloud.licensemanager.v1.UserCountUsage) details_; + } + return com.google.cloud.licensemanager.v1.UserCountUsage.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (detailsCase_ == 1) { + output.writeMessage(1, (com.google.cloud.licensemanager.v1.UserCountUsage) details_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (detailsCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.licensemanager.v1.UserCountUsage) details_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse)) { + return super.equals(obj); + } + com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse other = + (com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse) obj; + + if (!getDetailsCase().equals(other.getDetailsCase())) return false; + switch (detailsCase_) { + case 1: + if (!getUserCountUsage().equals(other.getUserCountUsage())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (detailsCase_) { + case 1: + hash = (37 * hash) + USER_COUNT_USAGE_FIELD_NUMBER; + hash = (53 * hash) + getUserCountUsage().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for response to get the license usage per configuration.
+   * 
+ * + * Protobuf type {@code google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse) + com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_QueryConfigurationLicenseUsageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_QueryConfigurationLicenseUsageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse.class, + com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (userCountUsageBuilder_ != null) { + userCountUsageBuilder_.clear(); + } + detailsCase_ = 0; + details_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_QueryConfigurationLicenseUsageResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse + getDefaultInstanceForType() { + return com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse build() { + com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse + buildPartial() { + com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse result = + new com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse result) { + result.detailsCase_ = detailsCase_; + result.details_ = this.details_; + if (detailsCase_ == 1 && userCountUsageBuilder_ != null) { + result.details_ = userCountUsageBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse) { + return mergeFrom( + (com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse other) { + if (other + == com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse + .getDefaultInstance()) return this; + switch (other.getDetailsCase()) { + case USER_COUNT_USAGE: + { + mergeUserCountUsage(other.getUserCountUsage()); + break; + } + case DETAILS_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getUserCountUsageFieldBuilder().getBuilder(), extensionRegistry); + detailsCase_ = 1; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int detailsCase_ = 0; + private java.lang.Object details_; + + public DetailsCase getDetailsCase() { + return DetailsCase.forNumber(detailsCase_); + } + + public Builder clearDetails() { + detailsCase_ = 0; + details_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.licensemanager.v1.UserCountUsage, + com.google.cloud.licensemanager.v1.UserCountUsage.Builder, + com.google.cloud.licensemanager.v1.UserCountUsageOrBuilder> + userCountUsageBuilder_; + + /** + * + * + *
+     * Usage information for license types which use user-count billing.
+     * 
+ * + * .google.cloud.licensemanager.v1.UserCountUsage user_count_usage = 1; + * + * @return Whether the userCountUsage field is set. + */ + @java.lang.Override + public boolean hasUserCountUsage() { + return detailsCase_ == 1; + } + + /** + * + * + *
+     * Usage information for license types which use user-count billing.
+     * 
+ * + * .google.cloud.licensemanager.v1.UserCountUsage user_count_usage = 1; + * + * @return The userCountUsage. + */ + @java.lang.Override + public com.google.cloud.licensemanager.v1.UserCountUsage getUserCountUsage() { + if (userCountUsageBuilder_ == null) { + if (detailsCase_ == 1) { + return (com.google.cloud.licensemanager.v1.UserCountUsage) details_; + } + return com.google.cloud.licensemanager.v1.UserCountUsage.getDefaultInstance(); + } else { + if (detailsCase_ == 1) { + return userCountUsageBuilder_.getMessage(); + } + return com.google.cloud.licensemanager.v1.UserCountUsage.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Usage information for license types which use user-count billing.
+     * 
+ * + * .google.cloud.licensemanager.v1.UserCountUsage user_count_usage = 1; + */ + public Builder setUserCountUsage(com.google.cloud.licensemanager.v1.UserCountUsage value) { + if (userCountUsageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + details_ = value; + onChanged(); + } else { + userCountUsageBuilder_.setMessage(value); + } + detailsCase_ = 1; + return this; + } + + /** + * + * + *
+     * Usage information for license types which use user-count billing.
+     * 
+ * + * .google.cloud.licensemanager.v1.UserCountUsage user_count_usage = 1; + */ + public Builder setUserCountUsage( + com.google.cloud.licensemanager.v1.UserCountUsage.Builder builderForValue) { + if (userCountUsageBuilder_ == null) { + details_ = builderForValue.build(); + onChanged(); + } else { + userCountUsageBuilder_.setMessage(builderForValue.build()); + } + detailsCase_ = 1; + return this; + } + + /** + * + * + *
+     * Usage information for license types which use user-count billing.
+     * 
+ * + * .google.cloud.licensemanager.v1.UserCountUsage user_count_usage = 1; + */ + public Builder mergeUserCountUsage(com.google.cloud.licensemanager.v1.UserCountUsage value) { + if (userCountUsageBuilder_ == null) { + if (detailsCase_ == 1 + && details_ != com.google.cloud.licensemanager.v1.UserCountUsage.getDefaultInstance()) { + details_ = + com.google.cloud.licensemanager.v1.UserCountUsage.newBuilder( + (com.google.cloud.licensemanager.v1.UserCountUsage) details_) + .mergeFrom(value) + .buildPartial(); + } else { + details_ = value; + } + onChanged(); + } else { + if (detailsCase_ == 1) { + userCountUsageBuilder_.mergeFrom(value); + } else { + userCountUsageBuilder_.setMessage(value); + } + } + detailsCase_ = 1; + return this; + } + + /** + * + * + *
+     * Usage information for license types which use user-count billing.
+     * 
+ * + * .google.cloud.licensemanager.v1.UserCountUsage user_count_usage = 1; + */ + public Builder clearUserCountUsage() { + if (userCountUsageBuilder_ == null) { + if (detailsCase_ == 1) { + detailsCase_ = 0; + details_ = null; + onChanged(); + } + } else { + if (detailsCase_ == 1) { + detailsCase_ = 0; + details_ = null; + } + userCountUsageBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Usage information for license types which use user-count billing.
+     * 
+ * + * .google.cloud.licensemanager.v1.UserCountUsage user_count_usage = 1; + */ + public com.google.cloud.licensemanager.v1.UserCountUsage.Builder getUserCountUsageBuilder() { + return getUserCountUsageFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Usage information for license types which use user-count billing.
+     * 
+ * + * .google.cloud.licensemanager.v1.UserCountUsage user_count_usage = 1; + */ + @java.lang.Override + public com.google.cloud.licensemanager.v1.UserCountUsageOrBuilder getUserCountUsageOrBuilder() { + if ((detailsCase_ == 1) && (userCountUsageBuilder_ != null)) { + return userCountUsageBuilder_.getMessageOrBuilder(); + } else { + if (detailsCase_ == 1) { + return (com.google.cloud.licensemanager.v1.UserCountUsage) details_; + } + return com.google.cloud.licensemanager.v1.UserCountUsage.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Usage information for license types which use user-count billing.
+     * 
+ * + * .google.cloud.licensemanager.v1.UserCountUsage user_count_usage = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.licensemanager.v1.UserCountUsage, + com.google.cloud.licensemanager.v1.UserCountUsage.Builder, + com.google.cloud.licensemanager.v1.UserCountUsageOrBuilder> + getUserCountUsageFieldBuilder() { + if (userCountUsageBuilder_ == null) { + if (!(detailsCase_ == 1)) { + details_ = com.google.cloud.licensemanager.v1.UserCountUsage.getDefaultInstance(); + } + userCountUsageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.licensemanager.v1.UserCountUsage, + com.google.cloud.licensemanager.v1.UserCountUsage.Builder, + com.google.cloud.licensemanager.v1.UserCountUsageOrBuilder>( + (com.google.cloud.licensemanager.v1.UserCountUsage) details_, + getParentForChildren(), + isClean()); + details_ = null; + } + detailsCase_ = 1; + onChanged(); + return userCountUsageBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse) + private static final com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse(); + } + + public static com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryConfigurationLicenseUsageResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/QueryConfigurationLicenseUsageResponseOrBuilder.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/QueryConfigurationLicenseUsageResponseOrBuilder.java new file mode 100644 index 000000000000..a946eee47e12 --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/QueryConfigurationLicenseUsageResponseOrBuilder.java @@ -0,0 +1,66 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/licensemanager.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +public interface QueryConfigurationLicenseUsageResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Usage information for license types which use user-count billing.
+   * 
+ * + * .google.cloud.licensemanager.v1.UserCountUsage user_count_usage = 1; + * + * @return Whether the userCountUsage field is set. + */ + boolean hasUserCountUsage(); + + /** + * + * + *
+   * Usage information for license types which use user-count billing.
+   * 
+ * + * .google.cloud.licensemanager.v1.UserCountUsage user_count_usage = 1; + * + * @return The userCountUsage. + */ + com.google.cloud.licensemanager.v1.UserCountUsage getUserCountUsage(); + + /** + * + * + *
+   * Usage information for license types which use user-count billing.
+   * 
+ * + * .google.cloud.licensemanager.v1.UserCountUsage user_count_usage = 1; + */ + com.google.cloud.licensemanager.v1.UserCountUsageOrBuilder getUserCountUsageOrBuilder(); + + com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse.DetailsCase + getDetailsCase(); +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ReactivateConfigurationRequest.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ReactivateConfigurationRequest.java new file mode 100644 index 000000000000..39df3d28c3d6 --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ReactivateConfigurationRequest.java @@ -0,0 +1,946 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/licensemanager.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +/** + * + * + *
+ * Message for resuming a Configuration.
+ * 
+ * + * Protobuf type {@code google.cloud.licensemanager.v1.ReactivateConfigurationRequest} + */ +public final class ReactivateConfigurationRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.licensemanager.v1.ReactivateConfigurationRequest) + ReactivateConfigurationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReactivateConfigurationRequest.newBuilder() to construct. + private ReactivateConfigurationRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReactivateConfigurationRequest() { + name_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReactivateConfigurationRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_ReactivateConfigurationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_ReactivateConfigurationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest.class, + com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * 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. Name of the resource.
+   * 
+ * + * + * 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 REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * For example, consider a situation where you make an initial request and
+   * the request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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; + } + } + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * For example, consider a situation where you make an initial request and
+   * the request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, 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.cloud.licensemanager.v1.ReactivateConfigurationRequest)) { + return super.equals(obj); + } + com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest other = + (com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest) obj; + + if (!getName().equals(other.getName())) return false; + 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().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.cloud.licensemanager.v1.ReactivateConfigurationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for resuming a Configuration.
+   * 
+ * + * Protobuf type {@code google.cloud.licensemanager.v1.ReactivateConfigurationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.licensemanager.v1.ReactivateConfigurationRequest) + com.google.cloud.licensemanager.v1.ReactivateConfigurationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_ReactivateConfigurationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_ReactivateConfigurationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest.class, + com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest.Builder.class); + } + + // Construct using + // com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_ReactivateConfigurationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest + getDefaultInstanceForType() { + return com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest build() { + com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest buildPartial() { + com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest result = + new com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest) { + return mergeFrom((com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest other) { + if (other + == com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. Name of the resource.
+     * 
+ * + * + * 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. Name of the resource.
+     * 
+ * + * + * 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. Name of the resource.
+     * 
+ * + * + * 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. Name of the resource.
+     * 
+ * + * + * 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. Name of the resource.
+     * 
+ * + * + * 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 requestId_ = ""; + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.licensemanager.v1.ReactivateConfigurationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.licensemanager.v1.ReactivateConfigurationRequest) + private static final com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest(); + } + + public static com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReactivateConfigurationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ReactivateConfigurationRequestOrBuilder.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ReactivateConfigurationRequestOrBuilder.java new file mode 100644 index 000000000000..83add7793f0c --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ReactivateConfigurationRequestOrBuilder.java @@ -0,0 +1,110 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/licensemanager.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +public interface ReactivateConfigurationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.licensemanager.v1.ReactivateConfigurationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * For example, consider a situation where you make an initial request and
+   * the request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * For example, consider a situation where you make an initial request and
+   * the request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/UpdateConfigurationRequest.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/UpdateConfigurationRequest.java new file mode 100644 index 000000000000..64747a96ba4d --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/UpdateConfigurationRequest.java @@ -0,0 +1,1391 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/licensemanager.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +/** + * + * + *
+ * Message for updating a Configuration
+ * 
+ * + * Protobuf type {@code google.cloud.licensemanager.v1.UpdateConfigurationRequest} + */ +public final class UpdateConfigurationRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.licensemanager.v1.UpdateConfigurationRequest) + UpdateConfigurationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UpdateConfigurationRequest.newBuilder() to construct. + private UpdateConfigurationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateConfigurationRequest() { + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateConfigurationRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_UpdateConfigurationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_UpdateConfigurationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.UpdateConfigurationRequest.class, + com.google.cloud.licensemanager.v1.UpdateConfigurationRequest.Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
+   * Optional. Field mask is used to specify the fields to be overwritten in the
+   * Configuration resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Field mask is used to specify the fields to be overwritten in the
+   * Configuration resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
+   * Optional. Field mask is used to specify the fields to be overwritten in the
+   * Configuration resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int CONFIGURATION_FIELD_NUMBER = 2; + private com.google.cloud.licensemanager.v1.Configuration configuration_; + + /** + * + * + *
+   * Required. The resource being updated
+   * 
+ * + * + * .google.cloud.licensemanager.v1.Configuration configuration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the configuration field is set. + */ + @java.lang.Override + public boolean hasConfiguration() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Required. The resource being updated
+   * 
+ * + * + * .google.cloud.licensemanager.v1.Configuration configuration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The configuration. + */ + @java.lang.Override + public com.google.cloud.licensemanager.v1.Configuration getConfiguration() { + return configuration_ == null + ? com.google.cloud.licensemanager.v1.Configuration.getDefaultInstance() + : configuration_; + } + + /** + * + * + *
+   * Required. The resource being updated
+   * 
+ * + * + * .google.cloud.licensemanager.v1.Configuration configuration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.licensemanager.v1.ConfigurationOrBuilder getConfigurationOrBuilder() { + return configuration_ == null + ? com.google.cloud.licensemanager.v1.Configuration.getDefaultInstance() + : configuration_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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; + } + } + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getConfiguration()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requestId_); + } + 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, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConfiguration()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, 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.cloud.licensemanager.v1.UpdateConfigurationRequest)) { + return super.equals(obj); + } + com.google.cloud.licensemanager.v1.UpdateConfigurationRequest other = + (com.google.cloud.licensemanager.v1.UpdateConfigurationRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasConfiguration() != other.hasConfiguration()) return false; + if (hasConfiguration()) { + if (!getConfiguration().equals(other.getConfiguration())) return false; + } + 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(); + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasConfiguration()) { + hash = (37 * hash) + CONFIGURATION_FIELD_NUMBER; + hash = (53 * hash) + getConfiguration().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.cloud.licensemanager.v1.UpdateConfigurationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.UpdateConfigurationRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.UpdateConfigurationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.UpdateConfigurationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.UpdateConfigurationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.UpdateConfigurationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.UpdateConfigurationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.UpdateConfigurationRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.UpdateConfigurationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.UpdateConfigurationRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.UpdateConfigurationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.UpdateConfigurationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.licensemanager.v1.UpdateConfigurationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for updating a Configuration
+   * 
+ * + * Protobuf type {@code google.cloud.licensemanager.v1.UpdateConfigurationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.licensemanager.v1.UpdateConfigurationRequest) + com.google.cloud.licensemanager.v1.UpdateConfigurationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_UpdateConfigurationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_UpdateConfigurationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.UpdateConfigurationRequest.class, + com.google.cloud.licensemanager.v1.UpdateConfigurationRequest.Builder.class); + } + + // Construct using com.google.cloud.licensemanager.v1.UpdateConfigurationRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getUpdateMaskFieldBuilder(); + getConfigurationFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + configuration_ = null; + if (configurationBuilder_ != null) { + configurationBuilder_.dispose(); + configurationBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.licensemanager.v1.LicenseManagerProto + .internal_static_google_cloud_licensemanager_v1_UpdateConfigurationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.UpdateConfigurationRequest + getDefaultInstanceForType() { + return com.google.cloud.licensemanager.v1.UpdateConfigurationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.UpdateConfigurationRequest build() { + com.google.cloud.licensemanager.v1.UpdateConfigurationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.UpdateConfigurationRequest buildPartial() { + com.google.cloud.licensemanager.v1.UpdateConfigurationRequest result = + new com.google.cloud.licensemanager.v1.UpdateConfigurationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.licensemanager.v1.UpdateConfigurationRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.configuration_ = + configurationBuilder_ == null ? configuration_ : configurationBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.licensemanager.v1.UpdateConfigurationRequest) { + return mergeFrom((com.google.cloud.licensemanager.v1.UpdateConfigurationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.licensemanager.v1.UpdateConfigurationRequest other) { + if (other + == com.google.cloud.licensemanager.v1.UpdateConfigurationRequest.getDefaultInstance()) + return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasConfiguration()) { + mergeConfiguration(other.getConfiguration()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + 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: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getConfigurationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = 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 com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * Configuration resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * Configuration resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * Configuration resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * Configuration resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * Configuration resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * Configuration resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * Configuration resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * Configuration resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * Configuration resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.licensemanager.v1.Configuration configuration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.licensemanager.v1.Configuration, + com.google.cloud.licensemanager.v1.Configuration.Builder, + com.google.cloud.licensemanager.v1.ConfigurationOrBuilder> + configurationBuilder_; + + /** + * + * + *
+     * Required. The resource being updated
+     * 
+ * + * + * .google.cloud.licensemanager.v1.Configuration configuration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the configuration field is set. + */ + public boolean hasConfiguration() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. The resource being updated
+     * 
+ * + * + * .google.cloud.licensemanager.v1.Configuration configuration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The configuration. + */ + public com.google.cloud.licensemanager.v1.Configuration getConfiguration() { + if (configurationBuilder_ == null) { + return configuration_ == null + ? com.google.cloud.licensemanager.v1.Configuration.getDefaultInstance() + : configuration_; + } else { + return configurationBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The resource being updated
+     * 
+ * + * + * .google.cloud.licensemanager.v1.Configuration configuration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConfiguration(com.google.cloud.licensemanager.v1.Configuration value) { + if (configurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + configuration_ = value; + } else { + configurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource being updated
+     * 
+ * + * + * .google.cloud.licensemanager.v1.Configuration configuration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConfiguration( + com.google.cloud.licensemanager.v1.Configuration.Builder builderForValue) { + if (configurationBuilder_ == null) { + configuration_ = builderForValue.build(); + } else { + configurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource being updated
+     * 
+ * + * + * .google.cloud.licensemanager.v1.Configuration configuration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeConfiguration(com.google.cloud.licensemanager.v1.Configuration value) { + if (configurationBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && configuration_ != null + && configuration_ + != com.google.cloud.licensemanager.v1.Configuration.getDefaultInstance()) { + getConfigurationBuilder().mergeFrom(value); + } else { + configuration_ = value; + } + } else { + configurationBuilder_.mergeFrom(value); + } + if (configuration_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The resource being updated
+     * 
+ * + * + * .google.cloud.licensemanager.v1.Configuration configuration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearConfiguration() { + bitField0_ = (bitField0_ & ~0x00000002); + configuration_ = null; + if (configurationBuilder_ != null) { + configurationBuilder_.dispose(); + configurationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource being updated
+     * 
+ * + * + * .google.cloud.licensemanager.v1.Configuration configuration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.licensemanager.v1.Configuration.Builder getConfigurationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getConfigurationFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The resource being updated
+     * 
+ * + * + * .google.cloud.licensemanager.v1.Configuration configuration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.licensemanager.v1.ConfigurationOrBuilder getConfigurationOrBuilder() { + if (configurationBuilder_ != null) { + return configurationBuilder_.getMessageOrBuilder(); + } else { + return configuration_ == null + ? com.google.cloud.licensemanager.v1.Configuration.getDefaultInstance() + : configuration_; + } + } + + /** + * + * + *
+     * Required. The resource being updated
+     * 
+ * + * + * .google.cloud.licensemanager.v1.Configuration configuration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.licensemanager.v1.Configuration, + com.google.cloud.licensemanager.v1.Configuration.Builder, + com.google.cloud.licensemanager.v1.ConfigurationOrBuilder> + getConfigurationFieldBuilder() { + if (configurationBuilder_ == null) { + configurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.licensemanager.v1.Configuration, + com.google.cloud.licensemanager.v1.Configuration.Builder, + com.google.cloud.licensemanager.v1.ConfigurationOrBuilder>( + getConfiguration(), getParentForChildren(), isClean()); + configuration_ = null; + } + return configurationBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.licensemanager.v1.UpdateConfigurationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.licensemanager.v1.UpdateConfigurationRequest) + private static final com.google.cloud.licensemanager.v1.UpdateConfigurationRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.licensemanager.v1.UpdateConfigurationRequest(); + } + + public static com.google.cloud.licensemanager.v1.UpdateConfigurationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateConfigurationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.UpdateConfigurationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/UpdateConfigurationRequestOrBuilder.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/UpdateConfigurationRequestOrBuilder.java new file mode 100644 index 000000000000..9c618759159e --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/UpdateConfigurationRequestOrBuilder.java @@ -0,0 +1,175 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/licensemanager.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +public interface UpdateConfigurationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.licensemanager.v1.UpdateConfigurationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Field mask is used to specify the fields to be overwritten in the
+   * Configuration resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
+   * Optional. Field mask is used to specify the fields to be overwritten in the
+   * Configuration resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
+   * Optional. Field mask is used to specify the fields to be overwritten in the
+   * Configuration resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
+   * Required. The resource being updated
+   * 
+ * + * + * .google.cloud.licensemanager.v1.Configuration configuration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the configuration field is set. + */ + boolean hasConfiguration(); + + /** + * + * + *
+   * Required. The resource being updated
+   * 
+ * + * + * .google.cloud.licensemanager.v1.Configuration configuration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The configuration. + */ + com.google.cloud.licensemanager.v1.Configuration getConfiguration(); + + /** + * + * + *
+   * Required. The resource being updated
+   * 
+ * + * + * .google.cloud.licensemanager.v1.Configuration configuration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.licensemanager.v1.ConfigurationOrBuilder getConfigurationOrBuilder(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/Usage.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/Usage.java new file mode 100644 index 000000000000..e16a678cf4a2 --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/Usage.java @@ -0,0 +1,736 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/api_entities.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +/** + * + * + *
+ * Message describing total counts of users who accessed a VM.
+ * 
+ * + * Protobuf type {@code google.cloud.licensemanager.v1.Usage} + */ +public final class Usage extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.licensemanager.v1.Usage) + UsageOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Usage.newBuilder() to construct. + private Usage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Usage() { + limaInstance_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Usage(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.ApiEntitiesProto + .internal_static_google_cloud_licensemanager_v1_Usage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.ApiEntitiesProto + .internal_static_google_cloud_licensemanager_v1_Usage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.Usage.class, + com.google.cloud.licensemanager.v1.Usage.Builder.class); + } + + public static final int LIMA_INSTANCE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object limaInstance_ = ""; + + /** + * + * + *
+   * LiMa Instance resource name, i.e.
+   * projects/{project}/locations/{location}/instances/{instance}
+   * 
+ * + * string lima_instance = 1 [(.google.api.resource_reference) = { ... } + * + * @return The limaInstance. + */ + @java.lang.Override + public java.lang.String getLimaInstance() { + java.lang.Object ref = limaInstance_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + limaInstance_ = s; + return s; + } + } + + /** + * + * + *
+   * LiMa Instance resource name, i.e.
+   * projects/{project}/locations/{location}/instances/{instance}
+   * 
+ * + * string lima_instance = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for limaInstance. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLimaInstanceBytes() { + java.lang.Object ref = limaInstance_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + limaInstance_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USERS_FIELD_NUMBER = 2; + private int users_ = 0; + + /** + * + * + *
+   * Number of unique users accessing the VM.
+   * 
+ * + * int32 users = 2; + * + * @return The users. + */ + @java.lang.Override + public int getUsers() { + return users_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(limaInstance_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, limaInstance_); + } + if (users_ != 0) { + output.writeInt32(2, users_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(limaInstance_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, limaInstance_); + } + if (users_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, users_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.licensemanager.v1.Usage)) { + return super.equals(obj); + } + com.google.cloud.licensemanager.v1.Usage other = (com.google.cloud.licensemanager.v1.Usage) obj; + + if (!getLimaInstance().equals(other.getLimaInstance())) return false; + if (getUsers() != other.getUsers()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LIMA_INSTANCE_FIELD_NUMBER; + hash = (53 * hash) + getLimaInstance().hashCode(); + hash = (37 * hash) + USERS_FIELD_NUMBER; + hash = (53 * hash) + getUsers(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.licensemanager.v1.Usage parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.Usage parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.Usage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.Usage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.Usage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.Usage parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.Usage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.Usage parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.Usage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.Usage parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.Usage parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.Usage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.licensemanager.v1.Usage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message describing total counts of users who accessed a VM.
+   * 
+ * + * Protobuf type {@code google.cloud.licensemanager.v1.Usage} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.licensemanager.v1.Usage) + com.google.cloud.licensemanager.v1.UsageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.ApiEntitiesProto + .internal_static_google_cloud_licensemanager_v1_Usage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.ApiEntitiesProto + .internal_static_google_cloud_licensemanager_v1_Usage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.Usage.class, + com.google.cloud.licensemanager.v1.Usage.Builder.class); + } + + // Construct using com.google.cloud.licensemanager.v1.Usage.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + limaInstance_ = ""; + users_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.licensemanager.v1.ApiEntitiesProto + .internal_static_google_cloud_licensemanager_v1_Usage_descriptor; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.Usage getDefaultInstanceForType() { + return com.google.cloud.licensemanager.v1.Usage.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.Usage build() { + com.google.cloud.licensemanager.v1.Usage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.Usage buildPartial() { + com.google.cloud.licensemanager.v1.Usage result = + new com.google.cloud.licensemanager.v1.Usage(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.licensemanager.v1.Usage result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.limaInstance_ = limaInstance_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.users_ = users_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.licensemanager.v1.Usage) { + return mergeFrom((com.google.cloud.licensemanager.v1.Usage) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.licensemanager.v1.Usage other) { + if (other == com.google.cloud.licensemanager.v1.Usage.getDefaultInstance()) return this; + if (!other.getLimaInstance().isEmpty()) { + limaInstance_ = other.limaInstance_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getUsers() != 0) { + setUsers(other.getUsers()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + limaInstance_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + users_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object limaInstance_ = ""; + + /** + * + * + *
+     * LiMa Instance resource name, i.e.
+     * projects/{project}/locations/{location}/instances/{instance}
+     * 
+ * + * string lima_instance = 1 [(.google.api.resource_reference) = { ... } + * + * @return The limaInstance. + */ + public java.lang.String getLimaInstance() { + java.lang.Object ref = limaInstance_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + limaInstance_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * LiMa Instance resource name, i.e.
+     * projects/{project}/locations/{location}/instances/{instance}
+     * 
+ * + * string lima_instance = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for limaInstance. + */ + public com.google.protobuf.ByteString getLimaInstanceBytes() { + java.lang.Object ref = limaInstance_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + limaInstance_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * LiMa Instance resource name, i.e.
+     * projects/{project}/locations/{location}/instances/{instance}
+     * 
+ * + * string lima_instance = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The limaInstance to set. + * @return This builder for chaining. + */ + public Builder setLimaInstance(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + limaInstance_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * LiMa Instance resource name, i.e.
+     * projects/{project}/locations/{location}/instances/{instance}
+     * 
+ * + * string lima_instance = 1 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearLimaInstance() { + limaInstance_ = getDefaultInstance().getLimaInstance(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * LiMa Instance resource name, i.e.
+     * projects/{project}/locations/{location}/instances/{instance}
+     * 
+ * + * string lima_instance = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for limaInstance to set. + * @return This builder for chaining. + */ + public Builder setLimaInstanceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + limaInstance_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int users_; + + /** + * + * + *
+     * Number of unique users accessing the VM.
+     * 
+ * + * int32 users = 2; + * + * @return The users. + */ + @java.lang.Override + public int getUsers() { + return users_; + } + + /** + * + * + *
+     * Number of unique users accessing the VM.
+     * 
+ * + * int32 users = 2; + * + * @param value The users to set. + * @return This builder for chaining. + */ + public Builder setUsers(int value) { + + users_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Number of unique users accessing the VM.
+     * 
+ * + * int32 users = 2; + * + * @return This builder for chaining. + */ + public Builder clearUsers() { + bitField0_ = (bitField0_ & ~0x00000002); + users_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.licensemanager.v1.Usage) + } + + // @@protoc_insertion_point(class_scope:google.cloud.licensemanager.v1.Usage) + private static final com.google.cloud.licensemanager.v1.Usage DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.licensemanager.v1.Usage(); + } + + public static com.google.cloud.licensemanager.v1.Usage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Usage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.Usage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/UsageOrBuilder.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/UsageOrBuilder.java new file mode 100644 index 000000000000..9b48bcd44978 --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/UsageOrBuilder.java @@ -0,0 +1,67 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/api_entities.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +public interface UsageOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.licensemanager.v1.Usage) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * LiMa Instance resource name, i.e.
+   * projects/{project}/locations/{location}/instances/{instance}
+   * 
+ * + * string lima_instance = 1 [(.google.api.resource_reference) = { ... } + * + * @return The limaInstance. + */ + java.lang.String getLimaInstance(); + + /** + * + * + *
+   * LiMa Instance resource name, i.e.
+   * projects/{project}/locations/{location}/instances/{instance}
+   * 
+ * + * string lima_instance = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for limaInstance. + */ + com.google.protobuf.ByteString getLimaInstanceBytes(); + + /** + * + * + *
+   * Number of unique users accessing the VM.
+   * 
+ * + * int32 users = 2; + * + * @return The users. + */ + int getUsers(); +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/UserCountBillingInfo.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/UserCountBillingInfo.java new file mode 100644 index 000000000000..73199926bf4c --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/UserCountBillingInfo.java @@ -0,0 +1,542 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/api_entities.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +/** + * + * + *
+ * This approach uses total unique user count for billing.
+ * 
+ * + * Protobuf type {@code google.cloud.licensemanager.v1.UserCountBillingInfo} + */ +public final class UserCountBillingInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.licensemanager.v1.UserCountBillingInfo) + UserCountBillingInfoOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UserCountBillingInfo.newBuilder() to construct. + private UserCountBillingInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UserCountBillingInfo() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UserCountBillingInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.ApiEntitiesProto + .internal_static_google_cloud_licensemanager_v1_UserCountBillingInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.ApiEntitiesProto + .internal_static_google_cloud_licensemanager_v1_UserCountBillingInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.UserCountBillingInfo.class, + com.google.cloud.licensemanager.v1.UserCountBillingInfo.Builder.class); + } + + public static final int USER_COUNT_FIELD_NUMBER = 1; + private int userCount_ = 0; + + /** + * + * + *
+   * Required. Number of users to bill for.
+   * 
+ * + * int32 user_count = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The userCount. + */ + @java.lang.Override + public int getUserCount() { + return userCount_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (userCount_ != 0) { + output.writeInt32(1, userCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (userCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, userCount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.licensemanager.v1.UserCountBillingInfo)) { + return super.equals(obj); + } + com.google.cloud.licensemanager.v1.UserCountBillingInfo other = + (com.google.cloud.licensemanager.v1.UserCountBillingInfo) obj; + + if (getUserCount() != other.getUserCount()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USER_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getUserCount(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.licensemanager.v1.UserCountBillingInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.UserCountBillingInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.UserCountBillingInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.UserCountBillingInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.UserCountBillingInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.UserCountBillingInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.UserCountBillingInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.UserCountBillingInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.UserCountBillingInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.UserCountBillingInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.UserCountBillingInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.UserCountBillingInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.licensemanager.v1.UserCountBillingInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * This approach uses total unique user count for billing.
+   * 
+ * + * Protobuf type {@code google.cloud.licensemanager.v1.UserCountBillingInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.licensemanager.v1.UserCountBillingInfo) + com.google.cloud.licensemanager.v1.UserCountBillingInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.ApiEntitiesProto + .internal_static_google_cloud_licensemanager_v1_UserCountBillingInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.ApiEntitiesProto + .internal_static_google_cloud_licensemanager_v1_UserCountBillingInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.UserCountBillingInfo.class, + com.google.cloud.licensemanager.v1.UserCountBillingInfo.Builder.class); + } + + // Construct using com.google.cloud.licensemanager.v1.UserCountBillingInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + userCount_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.licensemanager.v1.ApiEntitiesProto + .internal_static_google_cloud_licensemanager_v1_UserCountBillingInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.UserCountBillingInfo getDefaultInstanceForType() { + return com.google.cloud.licensemanager.v1.UserCountBillingInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.UserCountBillingInfo build() { + com.google.cloud.licensemanager.v1.UserCountBillingInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.UserCountBillingInfo buildPartial() { + com.google.cloud.licensemanager.v1.UserCountBillingInfo result = + new com.google.cloud.licensemanager.v1.UserCountBillingInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.licensemanager.v1.UserCountBillingInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.userCount_ = userCount_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.licensemanager.v1.UserCountBillingInfo) { + return mergeFrom((com.google.cloud.licensemanager.v1.UserCountBillingInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.licensemanager.v1.UserCountBillingInfo other) { + if (other == com.google.cloud.licensemanager.v1.UserCountBillingInfo.getDefaultInstance()) + return this; + if (other.getUserCount() != 0) { + setUserCount(other.getUserCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + userCount_ = input.readInt32(); + 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 int userCount_; + + /** + * + * + *
+     * Required. Number of users to bill for.
+     * 
+ * + * int32 user_count = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The userCount. + */ + @java.lang.Override + public int getUserCount() { + return userCount_; + } + + /** + * + * + *
+     * Required. Number of users to bill for.
+     * 
+ * + * int32 user_count = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The userCount to set. + * @return This builder for chaining. + */ + public Builder setUserCount(int value) { + + userCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Number of users to bill for.
+     * 
+ * + * int32 user_count = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearUserCount() { + bitField0_ = (bitField0_ & ~0x00000001); + userCount_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.licensemanager.v1.UserCountBillingInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.licensemanager.v1.UserCountBillingInfo) + private static final com.google.cloud.licensemanager.v1.UserCountBillingInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.licensemanager.v1.UserCountBillingInfo(); + } + + public static com.google.cloud.licensemanager.v1.UserCountBillingInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserCountBillingInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.UserCountBillingInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/UserCountBillingInfoOrBuilder.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/UserCountBillingInfoOrBuilder.java new file mode 100644 index 000000000000..873dcce9f83d --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/UserCountBillingInfoOrBuilder.java @@ -0,0 +1,39 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/api_entities.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +public interface UserCountBillingInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.licensemanager.v1.UserCountBillingInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Number of users to bill for.
+   * 
+ * + * int32 user_count = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The userCount. + */ + int getUserCount(); +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/UserCountUsage.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/UserCountUsage.java new file mode 100644 index 000000000000..a23f7b8a39f3 --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/UserCountUsage.java @@ -0,0 +1,543 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/api_entities.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +/** + * + * + *
+ * Message representing usage for license configurations which use user-count
+ * billing.
+ * 
+ * + * Protobuf type {@code google.cloud.licensemanager.v1.UserCountUsage} + */ +public final class UserCountUsage extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.licensemanager.v1.UserCountUsage) + UserCountUsageOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UserCountUsage.newBuilder() to construct. + private UserCountUsage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UserCountUsage() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UserCountUsage(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.ApiEntitiesProto + .internal_static_google_cloud_licensemanager_v1_UserCountUsage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.ApiEntitiesProto + .internal_static_google_cloud_licensemanager_v1_UserCountUsage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.UserCountUsage.class, + com.google.cloud.licensemanager.v1.UserCountUsage.Builder.class); + } + + public static final int UNIQUE_USER_COUNT_FIELD_NUMBER = 1; + private int uniqueUserCount_ = 0; + + /** + * + * + *
+   * Required. Unique number of licensed users.
+   * 
+ * + * int32 unique_user_count = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The uniqueUserCount. + */ + @java.lang.Override + public int getUniqueUserCount() { + return uniqueUserCount_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (uniqueUserCount_ != 0) { + output.writeInt32(1, uniqueUserCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (uniqueUserCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, uniqueUserCount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.licensemanager.v1.UserCountUsage)) { + return super.equals(obj); + } + com.google.cloud.licensemanager.v1.UserCountUsage other = + (com.google.cloud.licensemanager.v1.UserCountUsage) obj; + + if (getUniqueUserCount() != other.getUniqueUserCount()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + UNIQUE_USER_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getUniqueUserCount(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.licensemanager.v1.UserCountUsage parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.UserCountUsage parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.UserCountUsage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.UserCountUsage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.UserCountUsage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.licensemanager.v1.UserCountUsage parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.UserCountUsage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.UserCountUsage parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.UserCountUsage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.UserCountUsage parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.licensemanager.v1.UserCountUsage parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.licensemanager.v1.UserCountUsage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.licensemanager.v1.UserCountUsage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message representing usage for license configurations which use user-count
+   * billing.
+   * 
+ * + * Protobuf type {@code google.cloud.licensemanager.v1.UserCountUsage} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.licensemanager.v1.UserCountUsage) + com.google.cloud.licensemanager.v1.UserCountUsageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.licensemanager.v1.ApiEntitiesProto + .internal_static_google_cloud_licensemanager_v1_UserCountUsage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.licensemanager.v1.ApiEntitiesProto + .internal_static_google_cloud_licensemanager_v1_UserCountUsage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.licensemanager.v1.UserCountUsage.class, + com.google.cloud.licensemanager.v1.UserCountUsage.Builder.class); + } + + // Construct using com.google.cloud.licensemanager.v1.UserCountUsage.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uniqueUserCount_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.licensemanager.v1.ApiEntitiesProto + .internal_static_google_cloud_licensemanager_v1_UserCountUsage_descriptor; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.UserCountUsage getDefaultInstanceForType() { + return com.google.cloud.licensemanager.v1.UserCountUsage.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.UserCountUsage build() { + com.google.cloud.licensemanager.v1.UserCountUsage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.UserCountUsage buildPartial() { + com.google.cloud.licensemanager.v1.UserCountUsage result = + new com.google.cloud.licensemanager.v1.UserCountUsage(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.licensemanager.v1.UserCountUsage result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.uniqueUserCount_ = uniqueUserCount_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.licensemanager.v1.UserCountUsage) { + return mergeFrom((com.google.cloud.licensemanager.v1.UserCountUsage) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.licensemanager.v1.UserCountUsage other) { + if (other == com.google.cloud.licensemanager.v1.UserCountUsage.getDefaultInstance()) + return this; + if (other.getUniqueUserCount() != 0) { + setUniqueUserCount(other.getUniqueUserCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + uniqueUserCount_ = input.readInt32(); + 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 int uniqueUserCount_; + + /** + * + * + *
+     * Required. Unique number of licensed users.
+     * 
+ * + * int32 unique_user_count = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The uniqueUserCount. + */ + @java.lang.Override + public int getUniqueUserCount() { + return uniqueUserCount_; + } + + /** + * + * + *
+     * Required. Unique number of licensed users.
+     * 
+ * + * int32 unique_user_count = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The uniqueUserCount to set. + * @return This builder for chaining. + */ + public Builder setUniqueUserCount(int value) { + + uniqueUserCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Unique number of licensed users.
+     * 
+ * + * int32 unique_user_count = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearUniqueUserCount() { + bitField0_ = (bitField0_ & ~0x00000001); + uniqueUserCount_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.licensemanager.v1.UserCountUsage) + } + + // @@protoc_insertion_point(class_scope:google.cloud.licensemanager.v1.UserCountUsage) + private static final com.google.cloud.licensemanager.v1.UserCountUsage DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.licensemanager.v1.UserCountUsage(); + } + + public static com.google.cloud.licensemanager.v1.UserCountUsage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserCountUsage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.licensemanager.v1.UserCountUsage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/UserCountUsageOrBuilder.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/UserCountUsageOrBuilder.java new file mode 100644 index 000000000000..18231e0762d1 --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/UserCountUsageOrBuilder.java @@ -0,0 +1,39 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/licensemanager/v1/api_entities.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.licensemanager.v1; + +public interface UserCountUsageOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.licensemanager.v1.UserCountUsage) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Unique number of licensed users.
+   * 
+ * + * int32 unique_user_count = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The uniqueUserCount. + */ + int getUniqueUserCount(); +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/proto/google/cloud/licensemanager/v1/api_entities.proto b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/proto/google/cloud/licensemanager/v1/api_entities.proto new file mode 100644 index 000000000000..e36a9b65fd16 --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/proto/google/cloud/licensemanager/v1/api_entities.proto @@ -0,0 +1,295 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.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.cloud.licensemanager.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.LicenseManager.V1"; +option go_package = "cloud.google.com/go/licensemanager/apiv1/licensemanagerpb;licensemanagerpb"; +option java_multiple_files = true; +option java_outer_classname = "ApiEntitiesProto"; +option java_package = "com.google.cloud.licensemanager.v1"; +option php_namespace = "Google\\Cloud\\LicenseManager\\V1"; +option ruby_package = "Google::Cloud::LicenseManager::V1"; + +// Different types of licenses that are supported. +enum LicenseType { + // unspecified. + LICENSE_TYPE_UNSPECIFIED = 0; + + // Billing will be based on number of users listed per month. + LICENSE_TYPE_PER_MONTH_PER_USER = 1; + + // Bring your own license. + LICENSE_TYPE_BRING_YOUR_OWN_LICENSE = 2; +} + +// State of the License Key activation on the instance. +enum ActivationState { + // The Status of the activation is unspecified + ACTIVATION_STATE_UNSPECIFIED = 0; + + // Activation key (MAK) requested for the instance. + ACTIVATION_STATE_KEY_REQUESTED = 1; + + // License activation process is running on the instance. + ACTIVATION_STATE_ACTIVATING = 2; + + // License activation is complete on the instance. + ACTIVATION_STATE_ACTIVATED = 3; + + // License Key is deactivating on the instance. + ACTIVATION_STATE_DEACTIVATING = 4; + + // License Key is deactivated on the instance. + ACTIVATION_STATE_DEACTIVATED = 5; + + // License Key activation failed on the instance. + ACTIVATION_STATE_TERMINATED = 6; +} + +// Configuration for a Google SPLA product +message Configuration { + option (google.api.resource) = { + type: "licensemanager.googleapis.com/Configuration" + pattern: "projects/{project}/locations/{location}/configurations/{configuration}" + plural: "configurations" + singular: "configuration" + }; + + // State of the configuration. + enum State { + // The Status of the configuration is unspecified + STATE_UNSPECIFIED = 0; + + // Configuration is in active state. + STATE_ACTIVE = 1; + + // Configuration is in deactivated state. + STATE_SUSPENDED = 2; + + // Configuration is in deleted state. + STATE_DELETED = 3; + } + + // Identifier. name of resource + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. User given name. + string display_name = 5 [(google.api.field_behavior) = REQUIRED]; + + // Required. Name field (with URL) of the Product offered for SPLA. + string product = 6 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "licensemanager.googleapis.com/Product" + } + ]; + + // Required. LicenseType to be applied for billing + LicenseType license_type = 7 [(google.api.field_behavior) = REQUIRED]; + + // Required. Billing information applicable till end of the current month. + BillingInfo current_billing_info = 8 [(google.api.field_behavior) = REQUIRED]; + + // Required. Billing information applicable for next month. + BillingInfo next_billing_info = 9 [(google.api.field_behavior) = REQUIRED]; + + // Output only. [Output only] Create time stamp + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. [Output only] Update time stamp + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Labels as key value pairs + map labels = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. State of the configuration. + State state = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Billing Information. +message BillingInfo { + oneof current_billing_info { + // Required. This type of billing uses user count for computing total + // charge. + UserCountBillingInfo user_count_billing = 1 + [(google.api.field_behavior) = REQUIRED]; + } + + // Output only. When the billing starts. + google.protobuf.Timestamp start_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. When the billing ends. + google.protobuf.Timestamp end_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// This approach uses total unique user count for billing. +message UserCountBillingInfo { + // Required. Number of users to bill for. + int32 user_count = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Message representing usage for license configurations which use user-count +// billing. +message UserCountUsage { + // Required. Unique number of licensed users. + int32 unique_user_count = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Products for Google SPLA. +message Product { + option (google.api.resource) = { + type: "licensemanager.googleapis.com/Product" + pattern: "projects/{project}/locations/{location}/products/{product}" + plural: "products" + singular: "product" + }; + + // State of the product. + enum State { + // The Status of the product is unknown. + STATE_UNSPECIFIED = 0; + + // Product is under provisioning stage. + STATE_PROVISIONING = 1; + + // Product is ok to run on instances. + STATE_RUNNING = 2; + + // The product is about to terminate or has been announced for termination. + STATE_TERMINATING = 3; + + // The product has been terminated. + STATE_TERMINATED = 4; + } + + // Identifier. Full name of the product resource. + // ex "projects/1/locations/us-central1/products/office-2021" + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. Version of the product. + string version = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Company that released the product. + string product_company = 3 [(google.api.field_behavior) = REQUIRED]; + + // Output only. State of the product. + State state = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. SKU for mapping to the Billing/Subscription resource. + string sku = 5 [(google.api.field_behavior) = REQUIRED]; + + // Required. Human-readable, detailed description of the Product + string description = 6 [(google.api.field_behavior) = REQUIRED]; + + // Required. Human-readable name of the Product + string display_name = 7 [(google.api.field_behavior) = REQUIRED]; +} + +// Message describing Instance object +message Instance { + option (google.api.resource) = { + type: "licensemanager.googleapis.com/Instance" + pattern: "projects/{project}/locations/{location}/instances/{instance}" + plural: "instances" + singular: "instance" + }; + + // VM status enum. + enum State { + // The Status of the VM is unspecified. + STATE_UNSPECIFIED = 0; + + // Resources are being allocated for the instance. + PROVISIONING = 1; + + // All required resources have been allocated and + // the instance is being started. + STAGING = 2; + + // The instance is running. + RUNNING = 3; + + // The instance is currently stopping (either being deleted or terminated). + STOPPING = 4; + + // The instance has stopped due to various reasons (user request, VM + // preemption, project freezing, etc.). + STOPPED = 5; + + // The instance has failed in some way. + TERMINATED = 6; + + // The instance is in repair. + REPAIRING = 7; + } + + // Identifier. name of resource + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. [Output only] Create time stamp + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. [Output only] Update time stamp + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Labels as key value pairs + map labels = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The state of the VM. + State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The location of the VM. + string region = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Map with Product_Name and Activation State of the VM. + map product_activation = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. license version id. + string license_version_id = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Compute Instance resource name, i.e. + // projects/{project}/zones/{zone}/instances/{instance} + string compute_instance = 9 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "compute.googleapis.com/ComputeInstance" + } + ]; +} + +// Message describing total counts of users who accessed a VM. +message Usage { + // LiMa Instance resource name, i.e. + // projects/{project}/locations/{location}/instances/{instance} + string lima_instance = 1 [(google.api.resource_reference) = { + type: "licensemanager.googleapis.com/Instance" + }]; + + // Number of unique users accessing the VM. + int32 users = 2; +} diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/proto/google/cloud/licensemanager/v1/licensemanager.proto b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/proto/google/cloud/licensemanager/v1/licensemanager.proto new file mode 100644 index 000000000000..b6a2507b1817 --- /dev/null +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/proto/google/cloud/licensemanager/v1/licensemanager.proto @@ -0,0 +1,586 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.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.cloud.licensemanager.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; +import "google/api/resource.proto"; +import "google/cloud/licensemanager/v1/api_entities.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.LicenseManager.V1"; +option go_package = "cloud.google.com/go/licensemanager/apiv1/licensemanagerpb;licensemanagerpb"; +option java_multiple_files = true; +option java_outer_classname = "LicenseManagerProto"; +option java_package = "com.google.cloud.licensemanager.v1"; +option php_namespace = "Google\\Cloud\\LicenseManager\\V1"; +option ruby_package = "Google::Cloud::LicenseManager::V1"; +option (google.api.resource_definition) = { + type: "compute.googleapis.com/ComputeInstance" + pattern: "projects/{project}/zones/{zone}/instances/{instance}" +}; + +// Service describing handlers for resources +service LicenseManager { + option (google.api.default_host) = "licensemanager.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Lists Configurations in a given project and location. + rpc ListConfigurations(ListConfigurationsRequest) + returns (ListConfigurationsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/configurations" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single Configuration. + rpc GetConfiguration(GetConfigurationRequest) returns (Configuration) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/configurations/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new Configuration in a given project and location. + rpc CreateConfiguration(CreateConfigurationRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/configurations" + body: "configuration" + }; + option (google.api.method_signature) = + "parent,configuration,configuration_id"; + option (google.longrunning.operation_info) = { + response_type: "Configuration" + metadata_type: "OperationMetadata" + }; + } + + // Updates the parameters of a single Configuration. + rpc UpdateConfiguration(UpdateConfigurationRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{configuration.name=projects/*/locations/*/configurations/*}" + body: "configuration" + }; + option (google.api.method_signature) = "configuration,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "Configuration" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a single Configuration. + rpc DeleteConfiguration(DeleteConfigurationRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/configurations/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Lists Instances in a given project and location. + rpc ListInstances(ListInstancesRequest) returns (ListInstancesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/instances" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single Instance. + rpc GetInstance(GetInstanceRequest) returns (Instance) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/instances/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Deactivates the given configuration. + rpc DeactivateConfiguration(DeactivateConfigurationRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/configurations/*}:deactivate" + body: "*" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "Configuration" + metadata_type: "OperationMetadata" + }; + } + + // Reactivates the given configuration. + rpc ReactivateConfiguration(ReactivateConfigurationRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/configurations/*}:reactivate" + body: "*" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "Configuration" + metadata_type: "OperationMetadata" + }; + } + + // License Usage information for a Configuration. + rpc QueryConfigurationLicenseUsage(QueryConfigurationLicenseUsageRequest) + returns (QueryConfigurationLicenseUsageResponse) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/configurations/*}:queryLicenseUsage" + }; + option (google.api.method_signature) = "name,start_time,end_time"; + } + + // Aggregates Usage per Instance for a Configuration. + rpc AggregateUsage(AggregateUsageRequest) returns (AggregateUsageResponse) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/configurations/*}:aggregateUsage" + }; + option (google.api.method_signature) = "name,start_time,end_time"; + } + + // Lists Products in a given project and location. + rpc ListProducts(ListProductsRequest) returns (ListProductsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/products" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single Product. + rpc GetProduct(GetProductRequest) returns (Product) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/products/*}" + }; + option (google.api.method_signature) = "name"; + } +} + +// Message for requesting list of Configurations +message ListConfigurationsRequest { + // Required. Parent value for ListConfigurationsRequest + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "licensemanager.googleapis.com/Configuration" + } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying a page of results the server should return. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filtering results + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Hint for how to order the results + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for response to listing Configurations +message ListConfigurationsResponse { + // The list of Configuration + repeated Configuration configurations = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Message for getting a Configuration +message GetConfigurationRequest { + // Required. Name of the resource + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "licensemanager.googleapis.com/Configuration" + } + ]; +} + +// Message for creating a Configuration +message CreateConfigurationRequest { + // Required. Value for parent. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "licensemanager.googleapis.com/Configuration" + } + ]; + + // Required. Id of the requesting object + string configuration_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The resource being created + Configuration configuration = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 4 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Message for updating a Configuration +message UpdateConfigurationRequest { + // Optional. Field mask is used to specify the fields to be overwritten in the + // Configuration resource by the update. + // The fields specified in the update_mask are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. If the + // user does not provide a mask then all fields will be overwritten. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The resource being updated + Configuration configuration = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 3 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Message for deleting a Configuration +message DeleteConfigurationRequest { + // Required. Name of the resource + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "licensemanager.googleapis.com/Configuration" + } + ]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes after the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Message for requesting list of Instances +message ListInstancesRequest { + // Required. Parent value for ListInstancesRequest + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "licensemanager.googleapis.com/Instance" + } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying a page of results the server should return. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filtering results + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Hint for how to order the results + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for response to listing Instances +message ListInstancesResponse { + // The list of Instance + repeated Instance instances = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Message for getting a Instance +message GetInstanceRequest { + // Required. Name of the resource + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "licensemanager.googleapis.com/Instance" + } + ]; +} + +// Message for requesting license usage per configuration. +message QueryConfigurationLicenseUsageRequest { + // Required. The resource path of the Configuration. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "licensemanager.googleapis.com/Configuration" + } + ]; + + // Required. The start time for retrieving the usage. If not specified, we + // will use the first day of the current billing period. + google.protobuf.Timestamp start_time = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The end time for retrieving the usage. If not specified, we will + // use the last day of the current billing period. + google.protobuf.Timestamp end_time = 3 + [(google.api.field_behavior) = REQUIRED]; +} + +// Message for response to get the license usage per configuration. +message QueryConfigurationLicenseUsageResponse { + // Depending on the type of the configuration, one of the following + // will be populated. + oneof details { + // Usage information for license types which use user-count billing. + UserCountUsage user_count_usage = 1; + } +} + +// Message for deactivating a Configuration. +message DeactivateConfigurationRequest { + // Required. Name of the resource. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "licensemanager.googleapis.com/Configuration" + } + ]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes after the first request. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Message for resuming a Configuration. +message ReactivateConfigurationRequest { + // Required. Name of the resource. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "licensemanager.googleapis.com/Configuration" + } + ]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes after the first request. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Message for requesting aggregate of Usage per configuration. +message AggregateUsageRequest { + // Required. Parent value for AggregateUsageRequest + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "licensemanager.googleapis.com/Configuration" + } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying a page of results the server should return. + string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filtering results + string filter = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Hint for how to order the results + string order_by = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Licenses are purchased per month - so usage track needs start + // time of a month. + google.protobuf.Timestamp start_time = 7 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Usage track is always for a month. This parameter is for the end + // time of the month. + google.protobuf.Timestamp end_time = 8 + [(google.api.field_behavior) = REQUIRED]; +} + +// Message for response for aggregating usage count +message AggregateUsageResponse { + // The aggregated records of usage per configuration + repeated Usage usages = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Message for requesting list of Products +message ListProductsRequest { + // Required. Parent value for ListProductsRequest + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "licensemanager.googleapis.com/Product" + } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying a page of results the server should return. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filtering results + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Hint for how to order the results + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for response to listing Products +message ListProductsResponse { + // The list of Product + repeated Product products = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Message for getting a Product +message GetProductRequest { + // Required. Name of the resource + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "licensemanager.googleapis.com/Product" + } + ]; +} + +// Represents the metadata of the long-running operation. +message OperationMetadata { + // Output only. The time the operation was created. + google.protobuf.Timestamp create_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time the operation finished running. + google.protobuf.Timestamp end_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Server-defined resource path for the target of the operation. + string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Name of the verb executed by the operation. + string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Human-readable status of the operation, if any. + string status_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Identifies whether the user has requested cancellation + // of the operation. Operations that have been cancelled successfully + // have + // [google.longrunning.Operation.error][google.longrunning.Operation.error] + // value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, + // corresponding to `Code.CANCELLED`. + bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. API version used to start the operation. + string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/aggregateusage/AsyncAggregateUsage.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/aggregateusage/AsyncAggregateUsage.java new file mode 100644 index 000000000000..91fbf05bafb9 --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/aggregateusage/AsyncAggregateUsage.java @@ -0,0 +1,60 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_AggregateUsage_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.licensemanager.v1.AggregateUsageRequest; +import com.google.cloud.licensemanager.v1.ConfigurationName; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.cloud.licensemanager.v1.Usage; +import com.google.protobuf.Timestamp; + +public class AsyncAggregateUsage { + + public static void main(String[] args) throws Exception { + asyncAggregateUsage(); + } + + public static void asyncAggregateUsage() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + AggregateUsageRequest request = + AggregateUsageRequest.newBuilder() + .setName( + ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + ApiFuture future = + licenseManagerClient.aggregateUsagePagedCallable().futureCall(request); + // Do something. + for (Usage element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END licensemanager_v1_generated_LicenseManager_AggregateUsage_async] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/aggregateusage/AsyncAggregateUsagePaged.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/aggregateusage/AsyncAggregateUsagePaged.java new file mode 100644 index 000000000000..da554e94c21d --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/aggregateusage/AsyncAggregateUsagePaged.java @@ -0,0 +1,68 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_AggregateUsage_Paged_async] +import com.google.cloud.licensemanager.v1.AggregateUsageRequest; +import com.google.cloud.licensemanager.v1.AggregateUsageResponse; +import com.google.cloud.licensemanager.v1.ConfigurationName; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.cloud.licensemanager.v1.Usage; +import com.google.common.base.Strings; +import com.google.protobuf.Timestamp; + +public class AsyncAggregateUsagePaged { + + public static void main(String[] args) throws Exception { + asyncAggregateUsagePaged(); + } + + public static void asyncAggregateUsagePaged() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + AggregateUsageRequest request = + AggregateUsageRequest.newBuilder() + .setName( + ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + while (true) { + AggregateUsageResponse response = + licenseManagerClient.aggregateUsageCallable().call(request); + for (Usage element : response.getUsagesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END licensemanager_v1_generated_LicenseManager_AggregateUsage_Paged_async] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/aggregateusage/SyncAggregateUsage.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/aggregateusage/SyncAggregateUsage.java new file mode 100644 index 000000000000..be50ba9612fd --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/aggregateusage/SyncAggregateUsage.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_AggregateUsage_sync] +import com.google.cloud.licensemanager.v1.AggregateUsageRequest; +import com.google.cloud.licensemanager.v1.ConfigurationName; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.cloud.licensemanager.v1.Usage; +import com.google.protobuf.Timestamp; + +public class SyncAggregateUsage { + + public static void main(String[] args) throws Exception { + syncAggregateUsage(); + } + + public static void syncAggregateUsage() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + AggregateUsageRequest request = + AggregateUsageRequest.newBuilder() + .setName( + ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + for (Usage element : licenseManagerClient.aggregateUsage(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END licensemanager_v1_generated_LicenseManager_AggregateUsage_sync] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/aggregateusage/SyncAggregateUsageConfigurationnameTimestampTimestamp.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/aggregateusage/SyncAggregateUsageConfigurationnameTimestampTimestamp.java new file mode 100644 index 000000000000..577cece86757 --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/aggregateusage/SyncAggregateUsageConfigurationnameTimestampTimestamp.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_AggregateUsage_ConfigurationnameTimestampTimestamp_sync] +import com.google.cloud.licensemanager.v1.ConfigurationName; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.cloud.licensemanager.v1.Usage; +import com.google.protobuf.Timestamp; + +public class SyncAggregateUsageConfigurationnameTimestampTimestamp { + + public static void main(String[] args) throws Exception { + syncAggregateUsageConfigurationnameTimestampTimestamp(); + } + + public static void syncAggregateUsageConfigurationnameTimestampTimestamp() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + ConfigurationName name = ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]"); + Timestamp startTime = Timestamp.newBuilder().build(); + Timestamp endTime = Timestamp.newBuilder().build(); + for (Usage element : + licenseManagerClient.aggregateUsage(name, startTime, endTime).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END licensemanager_v1_generated_LicenseManager_AggregateUsage_ConfigurationnameTimestampTimestamp_sync] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/aggregateusage/SyncAggregateUsageStringTimestampTimestamp.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/aggregateusage/SyncAggregateUsageStringTimestampTimestamp.java new file mode 100644 index 000000000000..e4845c29af49 --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/aggregateusage/SyncAggregateUsageStringTimestampTimestamp.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_AggregateUsage_StringTimestampTimestamp_sync] +import com.google.cloud.licensemanager.v1.ConfigurationName; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.cloud.licensemanager.v1.Usage; +import com.google.protobuf.Timestamp; + +public class SyncAggregateUsageStringTimestampTimestamp { + + public static void main(String[] args) throws Exception { + syncAggregateUsageStringTimestampTimestamp(); + } + + public static void syncAggregateUsageStringTimestampTimestamp() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + String name = ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString(); + Timestamp startTime = Timestamp.newBuilder().build(); + Timestamp endTime = Timestamp.newBuilder().build(); + for (Usage element : + licenseManagerClient.aggregateUsage(name, startTime, endTime).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END licensemanager_v1_generated_LicenseManager_AggregateUsage_StringTimestampTimestamp_sync] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/create/SyncCreateSetCredentialsProvider.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..53e1f69ad36c --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.cloud.licensemanager.v1.LicenseManagerSettings; +import com.google.cloud.licensemanager.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() 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 + LicenseManagerSettings licenseManagerSettings = + LicenseManagerSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + LicenseManagerClient licenseManagerClient = LicenseManagerClient.create(licenseManagerSettings); + } +} +// [END licensemanager_v1_generated_LicenseManager_Create_SetCredentialsProvider_sync] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/create/SyncCreateSetEndpoint.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..febe63bbe78f --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/create/SyncCreateSetEndpoint.java @@ -0,0 +1,41 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_Create_SetEndpoint_sync] +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.cloud.licensemanager.v1.LicenseManagerSettings; +import com.google.cloud.licensemanager.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() 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 + LicenseManagerSettings licenseManagerSettings = + LicenseManagerSettings.newBuilder().setEndpoint(myEndpoint).build(); + LicenseManagerClient licenseManagerClient = LicenseManagerClient.create(licenseManagerSettings); + } +} +// [END licensemanager_v1_generated_LicenseManager_Create_SetEndpoint_sync] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/create/SyncCreateUseHttpJsonTransport.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..254a43840a39 --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_Create_UseHttpJsonTransport_sync] +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.cloud.licensemanager.v1.LicenseManagerSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() 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 + LicenseManagerSettings licenseManagerSettings = + LicenseManagerSettings.newHttpJsonBuilder().build(); + LicenseManagerClient licenseManagerClient = LicenseManagerClient.create(licenseManagerSettings); + } +} +// [END licensemanager_v1_generated_LicenseManager_Create_UseHttpJsonTransport_sync] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/createconfiguration/AsyncCreateConfiguration.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/createconfiguration/AsyncCreateConfiguration.java new file mode 100644 index 000000000000..050e61142a2a --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/createconfiguration/AsyncCreateConfiguration.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_CreateConfiguration_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.licensemanager.v1.Configuration; +import com.google.cloud.licensemanager.v1.CreateConfigurationRequest; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.cloud.licensemanager.v1.LocationName; +import com.google.longrunning.Operation; + +public class AsyncCreateConfiguration { + + public static void main(String[] args) throws Exception { + asyncCreateConfiguration(); + } + + public static void asyncCreateConfiguration() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + CreateConfigurationRequest request = + CreateConfigurationRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setConfigurationId("configurationId1948915889") + .setConfiguration(Configuration.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + licenseManagerClient.createConfigurationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END licensemanager_v1_generated_LicenseManager_CreateConfiguration_async] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/createconfiguration/AsyncCreateConfigurationLRO.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/createconfiguration/AsyncCreateConfigurationLRO.java new file mode 100644 index 000000000000..7db7266df408 --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/createconfiguration/AsyncCreateConfigurationLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_CreateConfiguration_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.licensemanager.v1.Configuration; +import com.google.cloud.licensemanager.v1.CreateConfigurationRequest; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.cloud.licensemanager.v1.LocationName; +import com.google.cloud.licensemanager.v1.OperationMetadata; + +public class AsyncCreateConfigurationLRO { + + public static void main(String[] args) throws Exception { + asyncCreateConfigurationLRO(); + } + + public static void asyncCreateConfigurationLRO() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + CreateConfigurationRequest request = + CreateConfigurationRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setConfigurationId("configurationId1948915889") + .setConfiguration(Configuration.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + licenseManagerClient.createConfigurationOperationCallable().futureCall(request); + // Do something. + Configuration response = future.get(); + } + } +} +// [END licensemanager_v1_generated_LicenseManager_CreateConfiguration_LRO_async] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/createconfiguration/SyncCreateConfiguration.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/createconfiguration/SyncCreateConfiguration.java new file mode 100644 index 000000000000..1ec0648462fa --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/createconfiguration/SyncCreateConfiguration.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_CreateConfiguration_sync] +import com.google.cloud.licensemanager.v1.Configuration; +import com.google.cloud.licensemanager.v1.CreateConfigurationRequest; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.cloud.licensemanager.v1.LocationName; + +public class SyncCreateConfiguration { + + public static void main(String[] args) throws Exception { + syncCreateConfiguration(); + } + + public static void syncCreateConfiguration() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + CreateConfigurationRequest request = + CreateConfigurationRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setConfigurationId("configurationId1948915889") + .setConfiguration(Configuration.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + Configuration response = licenseManagerClient.createConfigurationAsync(request).get(); + } + } +} +// [END licensemanager_v1_generated_LicenseManager_CreateConfiguration_sync] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/createconfiguration/SyncCreateConfigurationLocationnameConfigurationString.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/createconfiguration/SyncCreateConfigurationLocationnameConfigurationString.java new file mode 100644 index 000000000000..3c9384dd2ca5 --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/createconfiguration/SyncCreateConfigurationLocationnameConfigurationString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_CreateConfiguration_LocationnameConfigurationString_sync] +import com.google.cloud.licensemanager.v1.Configuration; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.cloud.licensemanager.v1.LocationName; + +public class SyncCreateConfigurationLocationnameConfigurationString { + + public static void main(String[] args) throws Exception { + syncCreateConfigurationLocationnameConfigurationString(); + } + + public static void syncCreateConfigurationLocationnameConfigurationString() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Configuration configuration = Configuration.newBuilder().build(); + String configurationId = "configurationId1948915889"; + Configuration response = + licenseManagerClient + .createConfigurationAsync(parent, configuration, configurationId) + .get(); + } + } +} +// [END licensemanager_v1_generated_LicenseManager_CreateConfiguration_LocationnameConfigurationString_sync] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/createconfiguration/SyncCreateConfigurationStringConfigurationString.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/createconfiguration/SyncCreateConfigurationStringConfigurationString.java new file mode 100644 index 000000000000..25c44966edd3 --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/createconfiguration/SyncCreateConfigurationStringConfigurationString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_CreateConfiguration_StringConfigurationString_sync] +import com.google.cloud.licensemanager.v1.Configuration; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.cloud.licensemanager.v1.LocationName; + +public class SyncCreateConfigurationStringConfigurationString { + + public static void main(String[] args) throws Exception { + syncCreateConfigurationStringConfigurationString(); + } + + public static void syncCreateConfigurationStringConfigurationString() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + Configuration configuration = Configuration.newBuilder().build(); + String configurationId = "configurationId1948915889"; + Configuration response = + licenseManagerClient + .createConfigurationAsync(parent, configuration, configurationId) + .get(); + } + } +} +// [END licensemanager_v1_generated_LicenseManager_CreateConfiguration_StringConfigurationString_sync] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/deactivateconfiguration/AsyncDeactivateConfiguration.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/deactivateconfiguration/AsyncDeactivateConfiguration.java new file mode 100644 index 000000000000..17a1c2221e1f --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/deactivateconfiguration/AsyncDeactivateConfiguration.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_DeactivateConfiguration_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.licensemanager.v1.ConfigurationName; +import com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.longrunning.Operation; + +public class AsyncDeactivateConfiguration { + + public static void main(String[] args) throws Exception { + asyncDeactivateConfiguration(); + } + + public static void asyncDeactivateConfiguration() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + DeactivateConfigurationRequest request = + DeactivateConfigurationRequest.newBuilder() + .setName( + ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + licenseManagerClient.deactivateConfigurationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END licensemanager_v1_generated_LicenseManager_DeactivateConfiguration_async] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/deactivateconfiguration/AsyncDeactivateConfigurationLRO.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/deactivateconfiguration/AsyncDeactivateConfigurationLRO.java new file mode 100644 index 000000000000..9e191bf298a3 --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/deactivateconfiguration/AsyncDeactivateConfigurationLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_DeactivateConfiguration_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.licensemanager.v1.Configuration; +import com.google.cloud.licensemanager.v1.ConfigurationName; +import com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.cloud.licensemanager.v1.OperationMetadata; + +public class AsyncDeactivateConfigurationLRO { + + public static void main(String[] args) throws Exception { + asyncDeactivateConfigurationLRO(); + } + + public static void asyncDeactivateConfigurationLRO() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + DeactivateConfigurationRequest request = + DeactivateConfigurationRequest.newBuilder() + .setName( + ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + licenseManagerClient.deactivateConfigurationOperationCallable().futureCall(request); + // Do something. + Configuration response = future.get(); + } + } +} +// [END licensemanager_v1_generated_LicenseManager_DeactivateConfiguration_LRO_async] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/deactivateconfiguration/SyncDeactivateConfiguration.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/deactivateconfiguration/SyncDeactivateConfiguration.java new file mode 100644 index 000000000000..17e3199e5769 --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/deactivateconfiguration/SyncDeactivateConfiguration.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_DeactivateConfiguration_sync] +import com.google.cloud.licensemanager.v1.Configuration; +import com.google.cloud.licensemanager.v1.ConfigurationName; +import com.google.cloud.licensemanager.v1.DeactivateConfigurationRequest; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; + +public class SyncDeactivateConfiguration { + + public static void main(String[] args) throws Exception { + syncDeactivateConfiguration(); + } + + public static void syncDeactivateConfiguration() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + DeactivateConfigurationRequest request = + DeactivateConfigurationRequest.newBuilder() + .setName( + ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString()) + .setRequestId("requestId693933066") + .build(); + Configuration response = licenseManagerClient.deactivateConfigurationAsync(request).get(); + } + } +} +// [END licensemanager_v1_generated_LicenseManager_DeactivateConfiguration_sync] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/deactivateconfiguration/SyncDeactivateConfigurationConfigurationname.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/deactivateconfiguration/SyncDeactivateConfigurationConfigurationname.java new file mode 100644 index 000000000000..b3c4a1dc0f79 --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/deactivateconfiguration/SyncDeactivateConfigurationConfigurationname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_DeactivateConfiguration_Configurationname_sync] +import com.google.cloud.licensemanager.v1.Configuration; +import com.google.cloud.licensemanager.v1.ConfigurationName; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; + +public class SyncDeactivateConfigurationConfigurationname { + + public static void main(String[] args) throws Exception { + syncDeactivateConfigurationConfigurationname(); + } + + public static void syncDeactivateConfigurationConfigurationname() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + ConfigurationName name = ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]"); + Configuration response = licenseManagerClient.deactivateConfigurationAsync(name).get(); + } + } +} +// [END licensemanager_v1_generated_LicenseManager_DeactivateConfiguration_Configurationname_sync] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/deactivateconfiguration/SyncDeactivateConfigurationString.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/deactivateconfiguration/SyncDeactivateConfigurationString.java new file mode 100644 index 000000000000..3de891a0efee --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/deactivateconfiguration/SyncDeactivateConfigurationString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_DeactivateConfiguration_String_sync] +import com.google.cloud.licensemanager.v1.Configuration; +import com.google.cloud.licensemanager.v1.ConfigurationName; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; + +public class SyncDeactivateConfigurationString { + + public static void main(String[] args) throws Exception { + syncDeactivateConfigurationString(); + } + + public static void syncDeactivateConfigurationString() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + String name = ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString(); + Configuration response = licenseManagerClient.deactivateConfigurationAsync(name).get(); + } + } +} +// [END licensemanager_v1_generated_LicenseManager_DeactivateConfiguration_String_sync] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/deleteconfiguration/AsyncDeleteConfiguration.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/deleteconfiguration/AsyncDeleteConfiguration.java new file mode 100644 index 000000000000..47412cbe122b --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/deleteconfiguration/AsyncDeleteConfiguration.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_DeleteConfiguration_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.licensemanager.v1.ConfigurationName; +import com.google.cloud.licensemanager.v1.DeleteConfigurationRequest; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteConfiguration { + + public static void main(String[] args) throws Exception { + asyncDeleteConfiguration(); + } + + public static void asyncDeleteConfiguration() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + DeleteConfigurationRequest request = + DeleteConfigurationRequest.newBuilder() + .setName( + ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + licenseManagerClient.deleteConfigurationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END licensemanager_v1_generated_LicenseManager_DeleteConfiguration_async] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/deleteconfiguration/AsyncDeleteConfigurationLRO.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/deleteconfiguration/AsyncDeleteConfigurationLRO.java new file mode 100644 index 000000000000..2aaf9522c46e --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/deleteconfiguration/AsyncDeleteConfigurationLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_DeleteConfiguration_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.licensemanager.v1.ConfigurationName; +import com.google.cloud.licensemanager.v1.DeleteConfigurationRequest; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.cloud.licensemanager.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteConfigurationLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteConfigurationLRO(); + } + + public static void asyncDeleteConfigurationLRO() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + DeleteConfigurationRequest request = + DeleteConfigurationRequest.newBuilder() + .setName( + ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + licenseManagerClient.deleteConfigurationOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END licensemanager_v1_generated_LicenseManager_DeleteConfiguration_LRO_async] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/deleteconfiguration/SyncDeleteConfiguration.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/deleteconfiguration/SyncDeleteConfiguration.java new file mode 100644 index 000000000000..b4058ec66911 --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/deleteconfiguration/SyncDeleteConfiguration.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_DeleteConfiguration_sync] +import com.google.cloud.licensemanager.v1.ConfigurationName; +import com.google.cloud.licensemanager.v1.DeleteConfigurationRequest; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.protobuf.Empty; + +public class SyncDeleteConfiguration { + + public static void main(String[] args) throws Exception { + syncDeleteConfiguration(); + } + + public static void syncDeleteConfiguration() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + DeleteConfigurationRequest request = + DeleteConfigurationRequest.newBuilder() + .setName( + ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString()) + .setRequestId("requestId693933066") + .build(); + licenseManagerClient.deleteConfigurationAsync(request).get(); + } + } +} +// [END licensemanager_v1_generated_LicenseManager_DeleteConfiguration_sync] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/deleteconfiguration/SyncDeleteConfigurationConfigurationname.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/deleteconfiguration/SyncDeleteConfigurationConfigurationname.java new file mode 100644 index 000000000000..42f001ef830e --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/deleteconfiguration/SyncDeleteConfigurationConfigurationname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_DeleteConfiguration_Configurationname_sync] +import com.google.cloud.licensemanager.v1.ConfigurationName; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.protobuf.Empty; + +public class SyncDeleteConfigurationConfigurationname { + + public static void main(String[] args) throws Exception { + syncDeleteConfigurationConfigurationname(); + } + + public static void syncDeleteConfigurationConfigurationname() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + ConfigurationName name = ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]"); + licenseManagerClient.deleteConfigurationAsync(name).get(); + } + } +} +// [END licensemanager_v1_generated_LicenseManager_DeleteConfiguration_Configurationname_sync] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/deleteconfiguration/SyncDeleteConfigurationString.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/deleteconfiguration/SyncDeleteConfigurationString.java new file mode 100644 index 000000000000..f3d0857f4564 --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/deleteconfiguration/SyncDeleteConfigurationString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_DeleteConfiguration_String_sync] +import com.google.cloud.licensemanager.v1.ConfigurationName; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.protobuf.Empty; + +public class SyncDeleteConfigurationString { + + public static void main(String[] args) throws Exception { + syncDeleteConfigurationString(); + } + + public static void syncDeleteConfigurationString() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + String name = ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString(); + licenseManagerClient.deleteConfigurationAsync(name).get(); + } + } +} +// [END licensemanager_v1_generated_LicenseManager_DeleteConfiguration_String_sync] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/getconfiguration/AsyncGetConfiguration.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/getconfiguration/AsyncGetConfiguration.java new file mode 100644 index 000000000000..f1c2c32add89 --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/getconfiguration/AsyncGetConfiguration.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_GetConfiguration_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.licensemanager.v1.Configuration; +import com.google.cloud.licensemanager.v1.ConfigurationName; +import com.google.cloud.licensemanager.v1.GetConfigurationRequest; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; + +public class AsyncGetConfiguration { + + public static void main(String[] args) throws Exception { + asyncGetConfiguration(); + } + + public static void asyncGetConfiguration() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + GetConfigurationRequest request = + GetConfigurationRequest.newBuilder() + .setName( + ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString()) + .build(); + ApiFuture future = + licenseManagerClient.getConfigurationCallable().futureCall(request); + // Do something. + Configuration response = future.get(); + } + } +} +// [END licensemanager_v1_generated_LicenseManager_GetConfiguration_async] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/getconfiguration/SyncGetConfiguration.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/getconfiguration/SyncGetConfiguration.java new file mode 100644 index 000000000000..82a206f238ae --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/getconfiguration/SyncGetConfiguration.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_GetConfiguration_sync] +import com.google.cloud.licensemanager.v1.Configuration; +import com.google.cloud.licensemanager.v1.ConfigurationName; +import com.google.cloud.licensemanager.v1.GetConfigurationRequest; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; + +public class SyncGetConfiguration { + + public static void main(String[] args) throws Exception { + syncGetConfiguration(); + } + + public static void syncGetConfiguration() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + GetConfigurationRequest request = + GetConfigurationRequest.newBuilder() + .setName( + ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString()) + .build(); + Configuration response = licenseManagerClient.getConfiguration(request); + } + } +} +// [END licensemanager_v1_generated_LicenseManager_GetConfiguration_sync] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/getconfiguration/SyncGetConfigurationConfigurationname.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/getconfiguration/SyncGetConfigurationConfigurationname.java new file mode 100644 index 000000000000..813b980a1111 --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/getconfiguration/SyncGetConfigurationConfigurationname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_GetConfiguration_Configurationname_sync] +import com.google.cloud.licensemanager.v1.Configuration; +import com.google.cloud.licensemanager.v1.ConfigurationName; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; + +public class SyncGetConfigurationConfigurationname { + + public static void main(String[] args) throws Exception { + syncGetConfigurationConfigurationname(); + } + + public static void syncGetConfigurationConfigurationname() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + ConfigurationName name = ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]"); + Configuration response = licenseManagerClient.getConfiguration(name); + } + } +} +// [END licensemanager_v1_generated_LicenseManager_GetConfiguration_Configurationname_sync] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/getconfiguration/SyncGetConfigurationString.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/getconfiguration/SyncGetConfigurationString.java new file mode 100644 index 000000000000..f655e751c6e5 --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/getconfiguration/SyncGetConfigurationString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_GetConfiguration_String_sync] +import com.google.cloud.licensemanager.v1.Configuration; +import com.google.cloud.licensemanager.v1.ConfigurationName; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; + +public class SyncGetConfigurationString { + + public static void main(String[] args) throws Exception { + syncGetConfigurationString(); + } + + public static void syncGetConfigurationString() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + String name = ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString(); + Configuration response = licenseManagerClient.getConfiguration(name); + } + } +} +// [END licensemanager_v1_generated_LicenseManager_GetConfiguration_String_sync] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/getinstance/AsyncGetInstance.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/getinstance/AsyncGetInstance.java new file mode 100644 index 000000000000..d3dee8d06320 --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/getinstance/AsyncGetInstance.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_GetInstance_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.licensemanager.v1.GetInstanceRequest; +import com.google.cloud.licensemanager.v1.Instance; +import com.google.cloud.licensemanager.v1.InstanceName; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; + +public class AsyncGetInstance { + + public static void main(String[] args) throws Exception { + asyncGetInstance(); + } + + public static void asyncGetInstance() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + GetInstanceRequest request = + GetInstanceRequest.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .build(); + ApiFuture future = licenseManagerClient.getInstanceCallable().futureCall(request); + // Do something. + Instance response = future.get(); + } + } +} +// [END licensemanager_v1_generated_LicenseManager_GetInstance_async] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/getinstance/SyncGetInstance.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/getinstance/SyncGetInstance.java new file mode 100644 index 000000000000..6502b86ff163 --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/getinstance/SyncGetInstance.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_GetInstance_sync] +import com.google.cloud.licensemanager.v1.GetInstanceRequest; +import com.google.cloud.licensemanager.v1.Instance; +import com.google.cloud.licensemanager.v1.InstanceName; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; + +public class SyncGetInstance { + + public static void main(String[] args) throws Exception { + syncGetInstance(); + } + + public static void syncGetInstance() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + GetInstanceRequest request = + GetInstanceRequest.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .build(); + Instance response = licenseManagerClient.getInstance(request); + } + } +} +// [END licensemanager_v1_generated_LicenseManager_GetInstance_sync] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/getinstance/SyncGetInstanceInstancename.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/getinstance/SyncGetInstanceInstancename.java new file mode 100644 index 000000000000..66ef30291fa0 --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/getinstance/SyncGetInstanceInstancename.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_GetInstance_Instancename_sync] +import com.google.cloud.licensemanager.v1.Instance; +import com.google.cloud.licensemanager.v1.InstanceName; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; + +public class SyncGetInstanceInstancename { + + public static void main(String[] args) throws Exception { + syncGetInstanceInstancename(); + } + + public static void syncGetInstanceInstancename() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + Instance response = licenseManagerClient.getInstance(name); + } + } +} +// [END licensemanager_v1_generated_LicenseManager_GetInstance_Instancename_sync] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/getinstance/SyncGetInstanceString.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/getinstance/SyncGetInstanceString.java new file mode 100644 index 000000000000..90a74a7cd08b --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/getinstance/SyncGetInstanceString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_GetInstance_String_sync] +import com.google.cloud.licensemanager.v1.Instance; +import com.google.cloud.licensemanager.v1.InstanceName; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; + +public class SyncGetInstanceString { + + public static void main(String[] args) throws Exception { + syncGetInstanceString(); + } + + public static void syncGetInstanceString() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); + Instance response = licenseManagerClient.getInstance(name); + } + } +} +// [END licensemanager_v1_generated_LicenseManager_GetInstance_String_sync] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/getlocation/AsyncGetLocation.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/getlocation/AsyncGetLocation.java new file mode 100644 index 000000000000..3d0424eb9b03 --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/getlocation/AsyncGetLocation.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_GetLocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; + +public class AsyncGetLocation { + + public static void main(String[] args) throws Exception { + asyncGetLocation(); + } + + public static void asyncGetLocation() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = licenseManagerClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END licensemanager_v1_generated_LicenseManager_GetLocation_async] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/getlocation/SyncGetLocation.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/getlocation/SyncGetLocation.java new file mode 100644 index 000000000000..b66aaad6d30f --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/getlocation/SyncGetLocation.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_GetLocation_sync] +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; + +public class SyncGetLocation { + + public static void main(String[] args) throws Exception { + syncGetLocation(); + } + + public static void syncGetLocation() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = licenseManagerClient.getLocation(request); + } + } +} +// [END licensemanager_v1_generated_LicenseManager_GetLocation_sync] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/getproduct/AsyncGetProduct.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/getproduct/AsyncGetProduct.java new file mode 100644 index 000000000000..59af5fb3a270 --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/getproduct/AsyncGetProduct.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_GetProduct_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.licensemanager.v1.GetProductRequest; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.cloud.licensemanager.v1.Product; +import com.google.cloud.licensemanager.v1.ProductName; + +public class AsyncGetProduct { + + public static void main(String[] args) throws Exception { + asyncGetProduct(); + } + + public static void asyncGetProduct() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + GetProductRequest request = + GetProductRequest.newBuilder() + .setName(ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString()) + .build(); + ApiFuture future = licenseManagerClient.getProductCallable().futureCall(request); + // Do something. + Product response = future.get(); + } + } +} +// [END licensemanager_v1_generated_LicenseManager_GetProduct_async] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/getproduct/SyncGetProduct.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/getproduct/SyncGetProduct.java new file mode 100644 index 000000000000..32a40553c4da --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/getproduct/SyncGetProduct.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_GetProduct_sync] +import com.google.cloud.licensemanager.v1.GetProductRequest; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.cloud.licensemanager.v1.Product; +import com.google.cloud.licensemanager.v1.ProductName; + +public class SyncGetProduct { + + public static void main(String[] args) throws Exception { + syncGetProduct(); + } + + public static void syncGetProduct() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + GetProductRequest request = + GetProductRequest.newBuilder() + .setName(ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString()) + .build(); + Product response = licenseManagerClient.getProduct(request); + } + } +} +// [END licensemanager_v1_generated_LicenseManager_GetProduct_sync] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/getproduct/SyncGetProductProductname.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/getproduct/SyncGetProductProductname.java new file mode 100644 index 000000000000..a6bd53d6db34 --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/getproduct/SyncGetProductProductname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_GetProduct_Productname_sync] +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.cloud.licensemanager.v1.Product; +import com.google.cloud.licensemanager.v1.ProductName; + +public class SyncGetProductProductname { + + public static void main(String[] args) throws Exception { + syncGetProductProductname(); + } + + public static void syncGetProductProductname() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + ProductName name = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]"); + Product response = licenseManagerClient.getProduct(name); + } + } +} +// [END licensemanager_v1_generated_LicenseManager_GetProduct_Productname_sync] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/getproduct/SyncGetProductString.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/getproduct/SyncGetProductString.java new file mode 100644 index 000000000000..34b9c31a4907 --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/getproduct/SyncGetProductString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_GetProduct_String_sync] +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.cloud.licensemanager.v1.Product; +import com.google.cloud.licensemanager.v1.ProductName; + +public class SyncGetProductString { + + public static void main(String[] args) throws Exception { + syncGetProductString(); + } + + public static void syncGetProductString() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + String name = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]").toString(); + Product response = licenseManagerClient.getProduct(name); + } + } +} +// [END licensemanager_v1_generated_LicenseManager_GetProduct_String_sync] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listconfigurations/AsyncListConfigurations.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listconfigurations/AsyncListConfigurations.java new file mode 100644 index 000000000000..ad492556b294 --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listconfigurations/AsyncListConfigurations.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_ListConfigurations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.licensemanager.v1.Configuration; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.cloud.licensemanager.v1.ListConfigurationsRequest; +import com.google.cloud.licensemanager.v1.LocationName; + +public class AsyncListConfigurations { + + public static void main(String[] args) throws Exception { + asyncListConfigurations(); + } + + public static void asyncListConfigurations() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + ListConfigurationsRequest request = + ListConfigurationsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + licenseManagerClient.listConfigurationsPagedCallable().futureCall(request); + // Do something. + for (Configuration element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END licensemanager_v1_generated_LicenseManager_ListConfigurations_async] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listconfigurations/AsyncListConfigurationsPaged.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listconfigurations/AsyncListConfigurationsPaged.java new file mode 100644 index 000000000000..986554a8708c --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listconfigurations/AsyncListConfigurationsPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_ListConfigurations_Paged_async] +import com.google.cloud.licensemanager.v1.Configuration; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.cloud.licensemanager.v1.ListConfigurationsRequest; +import com.google.cloud.licensemanager.v1.ListConfigurationsResponse; +import com.google.cloud.licensemanager.v1.LocationName; +import com.google.common.base.Strings; + +public class AsyncListConfigurationsPaged { + + public static void main(String[] args) throws Exception { + asyncListConfigurationsPaged(); + } + + public static void asyncListConfigurationsPaged() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + ListConfigurationsRequest request = + ListConfigurationsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListConfigurationsResponse response = + licenseManagerClient.listConfigurationsCallable().call(request); + for (Configuration element : response.getConfigurationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END licensemanager_v1_generated_LicenseManager_ListConfigurations_Paged_async] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listconfigurations/SyncListConfigurations.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listconfigurations/SyncListConfigurations.java new file mode 100644 index 000000000000..6e60acbb4566 --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listconfigurations/SyncListConfigurations.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_ListConfigurations_sync] +import com.google.cloud.licensemanager.v1.Configuration; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.cloud.licensemanager.v1.ListConfigurationsRequest; +import com.google.cloud.licensemanager.v1.LocationName; + +public class SyncListConfigurations { + + public static void main(String[] args) throws Exception { + syncListConfigurations(); + } + + public static void syncListConfigurations() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + ListConfigurationsRequest request = + ListConfigurationsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (Configuration element : licenseManagerClient.listConfigurations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END licensemanager_v1_generated_LicenseManager_ListConfigurations_sync] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listconfigurations/SyncListConfigurationsLocationname.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listconfigurations/SyncListConfigurationsLocationname.java new file mode 100644 index 000000000000..37e9cdf59cc2 --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listconfigurations/SyncListConfigurationsLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_ListConfigurations_Locationname_sync] +import com.google.cloud.licensemanager.v1.Configuration; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.cloud.licensemanager.v1.LocationName; + +public class SyncListConfigurationsLocationname { + + public static void main(String[] args) throws Exception { + syncListConfigurationsLocationname(); + } + + public static void syncListConfigurationsLocationname() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Configuration element : licenseManagerClient.listConfigurations(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END licensemanager_v1_generated_LicenseManager_ListConfigurations_Locationname_sync] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listconfigurations/SyncListConfigurationsString.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listconfigurations/SyncListConfigurationsString.java new file mode 100644 index 000000000000..2f298be54d92 --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listconfigurations/SyncListConfigurationsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_ListConfigurations_String_sync] +import com.google.cloud.licensemanager.v1.Configuration; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.cloud.licensemanager.v1.LocationName; + +public class SyncListConfigurationsString { + + public static void main(String[] args) throws Exception { + syncListConfigurationsString(); + } + + public static void syncListConfigurationsString() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Configuration element : licenseManagerClient.listConfigurations(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END licensemanager_v1_generated_LicenseManager_ListConfigurations_String_sync] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listinstances/AsyncListInstances.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listinstances/AsyncListInstances.java new file mode 100644 index 000000000000..cbe19627f7d2 --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listinstances/AsyncListInstances.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_ListInstances_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.licensemanager.v1.Instance; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.cloud.licensemanager.v1.ListInstancesRequest; +import com.google.cloud.licensemanager.v1.LocationName; + +public class AsyncListInstances { + + public static void main(String[] args) throws Exception { + asyncListInstances(); + } + + public static void asyncListInstances() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + ListInstancesRequest request = + ListInstancesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + licenseManagerClient.listInstancesPagedCallable().futureCall(request); + // Do something. + for (Instance element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END licensemanager_v1_generated_LicenseManager_ListInstances_async] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listinstances/AsyncListInstancesPaged.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listinstances/AsyncListInstancesPaged.java new file mode 100644 index 000000000000..f345c9c231e6 --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listinstances/AsyncListInstancesPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_ListInstances_Paged_async] +import com.google.cloud.licensemanager.v1.Instance; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.cloud.licensemanager.v1.ListInstancesRequest; +import com.google.cloud.licensemanager.v1.ListInstancesResponse; +import com.google.cloud.licensemanager.v1.LocationName; +import com.google.common.base.Strings; + +public class AsyncListInstancesPaged { + + public static void main(String[] args) throws Exception { + asyncListInstancesPaged(); + } + + public static void asyncListInstancesPaged() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + ListInstancesRequest request = + ListInstancesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListInstancesResponse response = licenseManagerClient.listInstancesCallable().call(request); + for (Instance element : response.getInstancesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END licensemanager_v1_generated_LicenseManager_ListInstances_Paged_async] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listinstances/SyncListInstances.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listinstances/SyncListInstances.java new file mode 100644 index 000000000000..2e09f365bc6a --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listinstances/SyncListInstances.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_ListInstances_sync] +import com.google.cloud.licensemanager.v1.Instance; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.cloud.licensemanager.v1.ListInstancesRequest; +import com.google.cloud.licensemanager.v1.LocationName; + +public class SyncListInstances { + + public static void main(String[] args) throws Exception { + syncListInstances(); + } + + public static void syncListInstances() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + ListInstancesRequest request = + ListInstancesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (Instance element : licenseManagerClient.listInstances(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END licensemanager_v1_generated_LicenseManager_ListInstances_sync] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listinstances/SyncListInstancesLocationname.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listinstances/SyncListInstancesLocationname.java new file mode 100644 index 000000000000..d1d4f862be5f --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listinstances/SyncListInstancesLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_ListInstances_Locationname_sync] +import com.google.cloud.licensemanager.v1.Instance; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.cloud.licensemanager.v1.LocationName; + +public class SyncListInstancesLocationname { + + public static void main(String[] args) throws Exception { + syncListInstancesLocationname(); + } + + public static void syncListInstancesLocationname() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Instance element : licenseManagerClient.listInstances(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END licensemanager_v1_generated_LicenseManager_ListInstances_Locationname_sync] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listinstances/SyncListInstancesString.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listinstances/SyncListInstancesString.java new file mode 100644 index 000000000000..ce649f635144 --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listinstances/SyncListInstancesString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_ListInstances_String_sync] +import com.google.cloud.licensemanager.v1.Instance; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.cloud.licensemanager.v1.LocationName; + +public class SyncListInstancesString { + + public static void main(String[] args) throws Exception { + syncListInstancesString(); + } + + public static void syncListInstancesString() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Instance element : licenseManagerClient.listInstances(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END licensemanager_v1_generated_LicenseManager_ListInstances_String_sync] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listlocations/AsyncListLocations.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listlocations/AsyncListLocations.java new file mode 100644 index 000000000000..28b0a2ab0d1a --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listlocations/AsyncListLocations.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_ListLocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +public class AsyncListLocations { + + public static void main(String[] args) throws Exception { + asyncListLocations(); + } + + public static void asyncListLocations() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + licenseManagerClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END licensemanager_v1_generated_LicenseManager_ListLocations_async] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listlocations/AsyncListLocationsPaged.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 000000000000..5c551ee30529 --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,61 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_ListLocations_Paged_async] +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.base.Strings; + +public class AsyncListLocationsPaged { + + public static void main(String[] args) throws Exception { + asyncListLocationsPaged(); + } + + public static void asyncListLocationsPaged() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = licenseManagerClient.listLocationsCallable().call(request); + for (Location element : response.getLocationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END licensemanager_v1_generated_LicenseManager_ListLocations_Paged_async] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listlocations/SyncListLocations.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listlocations/SyncListLocations.java new file mode 100644 index 000000000000..b9cb0cf0ffea --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listlocations/SyncListLocations.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_ListLocations_sync] +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +public class SyncListLocations { + + public static void main(String[] args) throws Exception { + syncListLocations(); + } + + public static void syncListLocations() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : licenseManagerClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END licensemanager_v1_generated_LicenseManager_ListLocations_sync] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listproducts/AsyncListProducts.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listproducts/AsyncListProducts.java new file mode 100644 index 000000000000..d8bb34e3fdaf --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listproducts/AsyncListProducts.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_ListProducts_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.cloud.licensemanager.v1.ListProductsRequest; +import com.google.cloud.licensemanager.v1.LocationName; +import com.google.cloud.licensemanager.v1.Product; + +public class AsyncListProducts { + + public static void main(String[] args) throws Exception { + asyncListProducts(); + } + + public static void asyncListProducts() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + ListProductsRequest request = + ListProductsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + licenseManagerClient.listProductsPagedCallable().futureCall(request); + // Do something. + for (Product element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END licensemanager_v1_generated_LicenseManager_ListProducts_async] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listproducts/AsyncListProductsPaged.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listproducts/AsyncListProductsPaged.java new file mode 100644 index 000000000000..9b5c15b65091 --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listproducts/AsyncListProductsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_ListProducts_Paged_async] +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.cloud.licensemanager.v1.ListProductsRequest; +import com.google.cloud.licensemanager.v1.ListProductsResponse; +import com.google.cloud.licensemanager.v1.LocationName; +import com.google.cloud.licensemanager.v1.Product; +import com.google.common.base.Strings; + +public class AsyncListProductsPaged { + + public static void main(String[] args) throws Exception { + asyncListProductsPaged(); + } + + public static void asyncListProductsPaged() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + ListProductsRequest request = + ListProductsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListProductsResponse response = licenseManagerClient.listProductsCallable().call(request); + for (Product element : response.getProductsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END licensemanager_v1_generated_LicenseManager_ListProducts_Paged_async] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listproducts/SyncListProducts.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listproducts/SyncListProducts.java new file mode 100644 index 000000000000..763b16ae9e7c --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listproducts/SyncListProducts.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_ListProducts_sync] +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.cloud.licensemanager.v1.ListProductsRequest; +import com.google.cloud.licensemanager.v1.LocationName; +import com.google.cloud.licensemanager.v1.Product; + +public class SyncListProducts { + + public static void main(String[] args) throws Exception { + syncListProducts(); + } + + public static void syncListProducts() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + ListProductsRequest request = + ListProductsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (Product element : licenseManagerClient.listProducts(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END licensemanager_v1_generated_LicenseManager_ListProducts_sync] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listproducts/SyncListProductsLocationname.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listproducts/SyncListProductsLocationname.java new file mode 100644 index 000000000000..1709d4845699 --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listproducts/SyncListProductsLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_ListProducts_Locationname_sync] +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.cloud.licensemanager.v1.LocationName; +import com.google.cloud.licensemanager.v1.Product; + +public class SyncListProductsLocationname { + + public static void main(String[] args) throws Exception { + syncListProductsLocationname(); + } + + public static void syncListProductsLocationname() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Product element : licenseManagerClient.listProducts(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END licensemanager_v1_generated_LicenseManager_ListProducts_Locationname_sync] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listproducts/SyncListProductsString.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listproducts/SyncListProductsString.java new file mode 100644 index 000000000000..ed44a6c81b99 --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/listproducts/SyncListProductsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_ListProducts_String_sync] +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.cloud.licensemanager.v1.LocationName; +import com.google.cloud.licensemanager.v1.Product; + +public class SyncListProductsString { + + public static void main(String[] args) throws Exception { + syncListProductsString(); + } + + public static void syncListProductsString() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Product element : licenseManagerClient.listProducts(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END licensemanager_v1_generated_LicenseManager_ListProducts_String_sync] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/queryconfigurationlicenseusage/AsyncQueryConfigurationLicenseUsage.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/queryconfigurationlicenseusage/AsyncQueryConfigurationLicenseUsage.java new file mode 100644 index 000000000000..7692135dbd90 --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/queryconfigurationlicenseusage/AsyncQueryConfigurationLicenseUsage.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_QueryConfigurationLicenseUsage_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.licensemanager.v1.ConfigurationName; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest; +import com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse; +import com.google.protobuf.Timestamp; + +public class AsyncQueryConfigurationLicenseUsage { + + public static void main(String[] args) throws Exception { + asyncQueryConfigurationLicenseUsage(); + } + + public static void asyncQueryConfigurationLicenseUsage() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + QueryConfigurationLicenseUsageRequest request = + QueryConfigurationLicenseUsageRequest.newBuilder() + .setName( + ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + ApiFuture future = + licenseManagerClient.queryConfigurationLicenseUsageCallable().futureCall(request); + // Do something. + QueryConfigurationLicenseUsageResponse response = future.get(); + } + } +} +// [END licensemanager_v1_generated_LicenseManager_QueryConfigurationLicenseUsage_async] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/queryconfigurationlicenseusage/SyncQueryConfigurationLicenseUsage.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/queryconfigurationlicenseusage/SyncQueryConfigurationLicenseUsage.java new file mode 100644 index 000000000000..19d7c6f73fa6 --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/queryconfigurationlicenseusage/SyncQueryConfigurationLicenseUsage.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_QueryConfigurationLicenseUsage_sync] +import com.google.cloud.licensemanager.v1.ConfigurationName; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageRequest; +import com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse; +import com.google.protobuf.Timestamp; + +public class SyncQueryConfigurationLicenseUsage { + + public static void main(String[] args) throws Exception { + syncQueryConfigurationLicenseUsage(); + } + + public static void syncQueryConfigurationLicenseUsage() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + QueryConfigurationLicenseUsageRequest request = + QueryConfigurationLicenseUsageRequest.newBuilder() + .setName( + ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .build(); + QueryConfigurationLicenseUsageResponse response = + licenseManagerClient.queryConfigurationLicenseUsage(request); + } + } +} +// [END licensemanager_v1_generated_LicenseManager_QueryConfigurationLicenseUsage_sync] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/queryconfigurationlicenseusage/SyncQueryConfigurationLicenseUsageConfigurationnameTimestampTimestamp.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/queryconfigurationlicenseusage/SyncQueryConfigurationLicenseUsageConfigurationnameTimestampTimestamp.java new file mode 100644 index 000000000000..cdb92a665a4b --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/queryconfigurationlicenseusage/SyncQueryConfigurationLicenseUsageConfigurationnameTimestampTimestamp.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_QueryConfigurationLicenseUsage_ConfigurationnameTimestampTimestamp_sync] +import com.google.cloud.licensemanager.v1.ConfigurationName; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse; +import com.google.protobuf.Timestamp; + +public class SyncQueryConfigurationLicenseUsageConfigurationnameTimestampTimestamp { + + public static void main(String[] args) throws Exception { + syncQueryConfigurationLicenseUsageConfigurationnameTimestampTimestamp(); + } + + public static void syncQueryConfigurationLicenseUsageConfigurationnameTimestampTimestamp() + 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + ConfigurationName name = ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]"); + Timestamp startTime = Timestamp.newBuilder().build(); + Timestamp endTime = Timestamp.newBuilder().build(); + QueryConfigurationLicenseUsageResponse response = + licenseManagerClient.queryConfigurationLicenseUsage(name, startTime, endTime); + } + } +} +// [END licensemanager_v1_generated_LicenseManager_QueryConfigurationLicenseUsage_ConfigurationnameTimestampTimestamp_sync] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/queryconfigurationlicenseusage/SyncQueryConfigurationLicenseUsageStringTimestampTimestamp.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/queryconfigurationlicenseusage/SyncQueryConfigurationLicenseUsageStringTimestampTimestamp.java new file mode 100644 index 000000000000..2a3884c3080a --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/queryconfigurationlicenseusage/SyncQueryConfigurationLicenseUsageStringTimestampTimestamp.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_QueryConfigurationLicenseUsage_StringTimestampTimestamp_sync] +import com.google.cloud.licensemanager.v1.ConfigurationName; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse; +import com.google.protobuf.Timestamp; + +public class SyncQueryConfigurationLicenseUsageStringTimestampTimestamp { + + public static void main(String[] args) throws Exception { + syncQueryConfigurationLicenseUsageStringTimestampTimestamp(); + } + + public static void syncQueryConfigurationLicenseUsageStringTimestampTimestamp() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + String name = ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString(); + Timestamp startTime = Timestamp.newBuilder().build(); + Timestamp endTime = Timestamp.newBuilder().build(); + QueryConfigurationLicenseUsageResponse response = + licenseManagerClient.queryConfigurationLicenseUsage(name, startTime, endTime); + } + } +} +// [END licensemanager_v1_generated_LicenseManager_QueryConfigurationLicenseUsage_StringTimestampTimestamp_sync] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/reactivateconfiguration/AsyncReactivateConfiguration.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/reactivateconfiguration/AsyncReactivateConfiguration.java new file mode 100644 index 000000000000..ad2c25212baf --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/reactivateconfiguration/AsyncReactivateConfiguration.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_ReactivateConfiguration_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.licensemanager.v1.ConfigurationName; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest; +import com.google.longrunning.Operation; + +public class AsyncReactivateConfiguration { + + public static void main(String[] args) throws Exception { + asyncReactivateConfiguration(); + } + + public static void asyncReactivateConfiguration() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + ReactivateConfigurationRequest request = + ReactivateConfigurationRequest.newBuilder() + .setName( + ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + licenseManagerClient.reactivateConfigurationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END licensemanager_v1_generated_LicenseManager_ReactivateConfiguration_async] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/reactivateconfiguration/AsyncReactivateConfigurationLRO.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/reactivateconfiguration/AsyncReactivateConfigurationLRO.java new file mode 100644 index 000000000000..8853bb95b4b4 --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/reactivateconfiguration/AsyncReactivateConfigurationLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_ReactivateConfiguration_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.licensemanager.v1.Configuration; +import com.google.cloud.licensemanager.v1.ConfigurationName; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.cloud.licensemanager.v1.OperationMetadata; +import com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest; + +public class AsyncReactivateConfigurationLRO { + + public static void main(String[] args) throws Exception { + asyncReactivateConfigurationLRO(); + } + + public static void asyncReactivateConfigurationLRO() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + ReactivateConfigurationRequest request = + ReactivateConfigurationRequest.newBuilder() + .setName( + ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + licenseManagerClient.reactivateConfigurationOperationCallable().futureCall(request); + // Do something. + Configuration response = future.get(); + } + } +} +// [END licensemanager_v1_generated_LicenseManager_ReactivateConfiguration_LRO_async] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/reactivateconfiguration/SyncReactivateConfiguration.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/reactivateconfiguration/SyncReactivateConfiguration.java new file mode 100644 index 000000000000..7904f760e953 --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/reactivateconfiguration/SyncReactivateConfiguration.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_ReactivateConfiguration_sync] +import com.google.cloud.licensemanager.v1.Configuration; +import com.google.cloud.licensemanager.v1.ConfigurationName; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.cloud.licensemanager.v1.ReactivateConfigurationRequest; + +public class SyncReactivateConfiguration { + + public static void main(String[] args) throws Exception { + syncReactivateConfiguration(); + } + + public static void syncReactivateConfiguration() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + ReactivateConfigurationRequest request = + ReactivateConfigurationRequest.newBuilder() + .setName( + ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString()) + .setRequestId("requestId693933066") + .build(); + Configuration response = licenseManagerClient.reactivateConfigurationAsync(request).get(); + } + } +} +// [END licensemanager_v1_generated_LicenseManager_ReactivateConfiguration_sync] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/reactivateconfiguration/SyncReactivateConfigurationConfigurationname.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/reactivateconfiguration/SyncReactivateConfigurationConfigurationname.java new file mode 100644 index 000000000000..7040c4171026 --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/reactivateconfiguration/SyncReactivateConfigurationConfigurationname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_ReactivateConfiguration_Configurationname_sync] +import com.google.cloud.licensemanager.v1.Configuration; +import com.google.cloud.licensemanager.v1.ConfigurationName; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; + +public class SyncReactivateConfigurationConfigurationname { + + public static void main(String[] args) throws Exception { + syncReactivateConfigurationConfigurationname(); + } + + public static void syncReactivateConfigurationConfigurationname() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + ConfigurationName name = ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]"); + Configuration response = licenseManagerClient.reactivateConfigurationAsync(name).get(); + } + } +} +// [END licensemanager_v1_generated_LicenseManager_ReactivateConfiguration_Configurationname_sync] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/reactivateconfiguration/SyncReactivateConfigurationString.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/reactivateconfiguration/SyncReactivateConfigurationString.java new file mode 100644 index 000000000000..8373361bac1a --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/reactivateconfiguration/SyncReactivateConfigurationString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_ReactivateConfiguration_String_sync] +import com.google.cloud.licensemanager.v1.Configuration; +import com.google.cloud.licensemanager.v1.ConfigurationName; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; + +public class SyncReactivateConfigurationString { + + public static void main(String[] args) throws Exception { + syncReactivateConfigurationString(); + } + + public static void syncReactivateConfigurationString() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + String name = ConfigurationName.of("[PROJECT]", "[LOCATION]", "[CONFIGURATION]").toString(); + Configuration response = licenseManagerClient.reactivateConfigurationAsync(name).get(); + } + } +} +// [END licensemanager_v1_generated_LicenseManager_ReactivateConfiguration_String_sync] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/updateconfiguration/AsyncUpdateConfiguration.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/updateconfiguration/AsyncUpdateConfiguration.java new file mode 100644 index 000000000000..53472f1a73b7 --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/updateconfiguration/AsyncUpdateConfiguration.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_UpdateConfiguration_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.licensemanager.v1.Configuration; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.cloud.licensemanager.v1.UpdateConfigurationRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateConfiguration { + + public static void main(String[] args) throws Exception { + asyncUpdateConfiguration(); + } + + public static void asyncUpdateConfiguration() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + UpdateConfigurationRequest request = + UpdateConfigurationRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setConfiguration(Configuration.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + licenseManagerClient.updateConfigurationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END licensemanager_v1_generated_LicenseManager_UpdateConfiguration_async] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/updateconfiguration/AsyncUpdateConfigurationLRO.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/updateconfiguration/AsyncUpdateConfigurationLRO.java new file mode 100644 index 000000000000..ac5a243c9512 --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/updateconfiguration/AsyncUpdateConfigurationLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_UpdateConfiguration_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.licensemanager.v1.Configuration; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.cloud.licensemanager.v1.OperationMetadata; +import com.google.cloud.licensemanager.v1.UpdateConfigurationRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateConfigurationLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateConfigurationLRO(); + } + + public static void asyncUpdateConfigurationLRO() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + UpdateConfigurationRequest request = + UpdateConfigurationRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setConfiguration(Configuration.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + licenseManagerClient.updateConfigurationOperationCallable().futureCall(request); + // Do something. + Configuration response = future.get(); + } + } +} +// [END licensemanager_v1_generated_LicenseManager_UpdateConfiguration_LRO_async] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/updateconfiguration/SyncUpdateConfiguration.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/updateconfiguration/SyncUpdateConfiguration.java new file mode 100644 index 000000000000..a3300fe36a16 --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/updateconfiguration/SyncUpdateConfiguration.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_UpdateConfiguration_sync] +import com.google.cloud.licensemanager.v1.Configuration; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.cloud.licensemanager.v1.UpdateConfigurationRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateConfiguration { + + public static void main(String[] args) throws Exception { + syncUpdateConfiguration(); + } + + public static void syncUpdateConfiguration() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + UpdateConfigurationRequest request = + UpdateConfigurationRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setConfiguration(Configuration.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + Configuration response = licenseManagerClient.updateConfigurationAsync(request).get(); + } + } +} +// [END licensemanager_v1_generated_LicenseManager_UpdateConfiguration_sync] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/updateconfiguration/SyncUpdateConfigurationConfigurationFieldmask.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/updateconfiguration/SyncUpdateConfigurationConfigurationFieldmask.java new file mode 100644 index 000000000000..64e07b42a8a9 --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanager/updateconfiguration/SyncUpdateConfigurationConfigurationFieldmask.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManager_UpdateConfiguration_ConfigurationFieldmask_sync] +import com.google.cloud.licensemanager.v1.Configuration; +import com.google.cloud.licensemanager.v1.LicenseManagerClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateConfigurationConfigurationFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateConfigurationConfigurationFieldmask(); + } + + public static void syncUpdateConfigurationConfigurationFieldmask() 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 (LicenseManagerClient licenseManagerClient = LicenseManagerClient.create()) { + Configuration configuration = Configuration.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Configuration response = + licenseManagerClient.updateConfigurationAsync(configuration, updateMask).get(); + } + } +} +// [END licensemanager_v1_generated_LicenseManager_UpdateConfiguration_ConfigurationFieldmask_sync] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanagersettings/createconfiguration/SyncCreateConfiguration.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanagersettings/createconfiguration/SyncCreateConfiguration.java new file mode 100644 index 000000000000..def1d4c8c5ce --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanagersettings/createconfiguration/SyncCreateConfiguration.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManagerSettings_CreateConfiguration_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.licensemanager.v1.LicenseManagerSettings; +import java.time.Duration; + +public class SyncCreateConfiguration { + + public static void main(String[] args) throws Exception { + syncCreateConfiguration(); + } + + public static void syncCreateConfiguration() 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 + LicenseManagerSettings.Builder licenseManagerSettingsBuilder = + LicenseManagerSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + licenseManagerSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END licensemanager_v1_generated_LicenseManagerSettings_CreateConfiguration_sync] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanagersettings/getconfiguration/SyncGetConfiguration.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanagersettings/getconfiguration/SyncGetConfiguration.java new file mode 100644 index 000000000000..91e8ef784856 --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/licensemanagersettings/getconfiguration/SyncGetConfiguration.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.samples; + +// [START licensemanager_v1_generated_LicenseManagerSettings_GetConfiguration_sync] +import com.google.cloud.licensemanager.v1.LicenseManagerSettings; +import java.time.Duration; + +public class SyncGetConfiguration { + + public static void main(String[] args) throws Exception { + syncGetConfiguration(); + } + + public static void syncGetConfiguration() 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 + LicenseManagerSettings.Builder licenseManagerSettingsBuilder = + LicenseManagerSettings.newBuilder(); + licenseManagerSettingsBuilder + .getConfigurationSettings() + .setRetrySettings( + licenseManagerSettingsBuilder + .getConfigurationSettings() + .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()); + LicenseManagerSettings licenseManagerSettings = licenseManagerSettingsBuilder.build(); + } +} +// [END licensemanager_v1_generated_LicenseManagerSettings_GetConfiguration_sync] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/stub/licensemanagerstubsettings/createconfiguration/SyncCreateConfiguration.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/stub/licensemanagerstubsettings/createconfiguration/SyncCreateConfiguration.java new file mode 100644 index 000000000000..fc622594efa5 --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/stub/licensemanagerstubsettings/createconfiguration/SyncCreateConfiguration.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.stub.samples; + +// [START licensemanager_v1_generated_LicenseManagerStubSettings_CreateConfiguration_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.licensemanager.v1.stub.LicenseManagerStubSettings; +import java.time.Duration; + +public class SyncCreateConfiguration { + + public static void main(String[] args) throws Exception { + syncCreateConfiguration(); + } + + public static void syncCreateConfiguration() 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 + LicenseManagerStubSettings.Builder licenseManagerSettingsBuilder = + LicenseManagerStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + licenseManagerSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END licensemanager_v1_generated_LicenseManagerStubSettings_CreateConfiguration_sync] diff --git a/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/stub/licensemanagerstubsettings/getconfiguration/SyncGetConfiguration.java b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/stub/licensemanagerstubsettings/getconfiguration/SyncGetConfiguration.java new file mode 100644 index 000000000000..d625fe2ed126 --- /dev/null +++ b/java-licensemanager/samples/snippets/generated/com/google/cloud/licensemanager/v1/stub/licensemanagerstubsettings/getconfiguration/SyncGetConfiguration.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.licensemanager.v1.stub.samples; + +// [START licensemanager_v1_generated_LicenseManagerStubSettings_GetConfiguration_sync] +import com.google.cloud.licensemanager.v1.stub.LicenseManagerStubSettings; +import java.time.Duration; + +public class SyncGetConfiguration { + + public static void main(String[] args) throws Exception { + syncGetConfiguration(); + } + + public static void syncGetConfiguration() 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 + LicenseManagerStubSettings.Builder licenseManagerSettingsBuilder = + LicenseManagerStubSettings.newBuilder(); + licenseManagerSettingsBuilder + .getConfigurationSettings() + .setRetrySettings( + licenseManagerSettingsBuilder + .getConfigurationSettings() + .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()); + LicenseManagerStubSettings licenseManagerSettings = licenseManagerSettingsBuilder.build(); + } +} +// [END licensemanager_v1_generated_LicenseManagerStubSettings_GetConfiguration_sync] diff --git a/java-life-sciences/CHANGELOG.md b/java-life-sciences/CHANGELOG.md index 4f36186f8f55..5e9c680aa2cd 100644 --- a/java-life-sciences/CHANGELOG.md +++ b/java-life-sciences/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.70.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.69.0 (2025-06-25) ### Dependencies diff --git a/java-life-sciences/README.md b/java-life-sciences/README.md index 0cb6decaed10..1c8711c67ed4 100644 --- a/java-life-sciences/README.md +++ b/java-life-sciences/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-life-sciences - 0.68.0 + 0.69.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-life-sciences:0.68.0' +implementation 'com.google.cloud:google-cloud-life-sciences:0.69.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-life-sciences" % "0.68.0" +libraryDependencies += "com.google.cloud" % "google-cloud-life-sciences" % "0.69.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-life-sciences.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-life-sciences/0.68.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-life-sciences/0.69.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/google-cloud-life-sciences-bom/pom.xml b/java-life-sciences/google-cloud-life-sciences-bom/pom.xml index aea4434dcff2..df72e29fc005 100644 --- a/java-life-sciences/google-cloud-life-sciences-bom/pom.xml +++ b/java-life-sciences/google-cloud-life-sciences-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-life-sciences-bom - 0.69.0 + 0.70.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-life-sciences - 0.69.0 + 0.70.0 com.google.api.grpc grpc-google-cloud-life-sciences-v2beta - 0.69.0 + 0.70.0 com.google.api.grpc proto-google-cloud-life-sciences-v2beta - 0.69.0 + 0.70.0 diff --git a/java-life-sciences/google-cloud-life-sciences/pom.xml b/java-life-sciences/google-cloud-life-sciences/pom.xml index 71f10dbed435..99ec7c4eda1a 100644 --- a/java-life-sciences/google-cloud-life-sciences/pom.xml +++ b/java-life-sciences/google-cloud-life-sciences/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-life-sciences - 0.69.0 + 0.70.0 jar Google Cloud Life Sciences Cloud Life Sciences is a suite of services and tools for managing, processing, and transforming life sciences data. com.google.cloud google-cloud-life-sciences-parent - 0.69.0 + 0.70.0 google-cloud-life-sciences diff --git a/java-life-sciences/grpc-google-cloud-life-sciences-v2beta/pom.xml b/java-life-sciences/grpc-google-cloud-life-sciences-v2beta/pom.xml index 7fd967fccad0..caf4f0022675 100644 --- a/java-life-sciences/grpc-google-cloud-life-sciences-v2beta/pom.xml +++ b/java-life-sciences/grpc-google-cloud-life-sciences-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-life-sciences-v2beta - 0.69.0 + 0.70.0 grpc-google-cloud-life-sciences-v2beta GRPC library for google-cloud-life-sciences com.google.cloud google-cloud-life-sciences-parent - 0.69.0 + 0.70.0 diff --git a/java-life-sciences/pom.xml b/java-life-sciences/pom.xml index 6f0a7388ed85..98452e14b289 100644 --- a/java-life-sciences/pom.xml +++ b/java-life-sciences/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-life-sciences-parent pom - 0.69.0 + 0.70.0 Google Cloud Life Sciences Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-life-sciences - 0.69.0 + 0.70.0 com.google.api.grpc grpc-google-cloud-life-sciences-v2beta - 0.69.0 + 0.70.0 com.google.api.grpc proto-google-cloud-life-sciences-v2beta - 0.69.0 + 0.70.0 diff --git a/java-life-sciences/proto-google-cloud-life-sciences-v2beta/pom.xml b/java-life-sciences/proto-google-cloud-life-sciences-v2beta/pom.xml index 7465c1c4be3b..2927de631747 100644 --- a/java-life-sciences/proto-google-cloud-life-sciences-v2beta/pom.xml +++ b/java-life-sciences/proto-google-cloud-life-sciences-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-life-sciences-v2beta - 0.69.0 + 0.70.0 proto-google-cloud-life-sciences-v2beta Proto library for google-cloud-life-sciences com.google.cloud google-cloud-life-sciences-parent - 0.69.0 + 0.70.0 diff --git a/java-lustre/CHANGELOG.md b/java-lustre/CHANGELOG.md index dcf3dc0a0668..600ebe3c5370 100644 --- a/java-lustre/CHANGELOG.md +++ b/java-lustre/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.8.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.7.0 (2025-06-25) ### Dependencies diff --git a/java-lustre/README.md b/java-lustre/README.md index a8b0b05c7b77..e44499867b7e 100644 --- a/java-lustre/README.md +++ b/java-lustre/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-lustre - 0.6.0 + 0.7.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-lustre:0.6.0' +implementation 'com.google.cloud:google-cloud-lustre:0.7.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-lustre" % "0.6.0" +libraryDependencies += "com.google.cloud" % "google-cloud-lustre" % "0.7.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-lustre.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-lustre/0.6.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-lustre/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-lustre/google-cloud-lustre-bom/pom.xml b/java-lustre/google-cloud-lustre-bom/pom.xml index 4782f974c995..30e15dfdd83d 100644 --- a/java-lustre/google-cloud-lustre-bom/pom.xml +++ b/java-lustre/google-cloud-lustre-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-lustre-bom - 0.7.0 + 0.8.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-lustre - 0.7.0 + 0.8.0 com.google.api.grpc grpc-google-cloud-lustre-v1 - 0.7.0 + 0.8.0 com.google.api.grpc proto-google-cloud-lustre-v1 - 0.7.0 + 0.8.0 diff --git a/java-lustre/google-cloud-lustre/pom.xml b/java-lustre/google-cloud-lustre/pom.xml index 04df930cca72..f738c75ecab1 100644 --- a/java-lustre/google-cloud-lustre/pom.xml +++ b/java-lustre/google-cloud-lustre/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-lustre - 0.7.0 + 0.8.0 jar Google Google Cloud Managed Lustre API Google Cloud Managed Lustre API Google Cloud Managed Lustre delivers a high-performance, fully managed parallel file system optimized for AI and HPC applications. com.google.cloud google-cloud-lustre-parent - 0.7.0 + 0.8.0 google-cloud-lustre diff --git a/java-lustre/grpc-google-cloud-lustre-v1/pom.xml b/java-lustre/grpc-google-cloud-lustre-v1/pom.xml index 0a89779ddb11..0ddaba03cf15 100644 --- a/java-lustre/grpc-google-cloud-lustre-v1/pom.xml +++ b/java-lustre/grpc-google-cloud-lustre-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-lustre-v1 - 0.7.0 + 0.8.0 grpc-google-cloud-lustre-v1 GRPC library for google-cloud-lustre com.google.cloud google-cloud-lustre-parent - 0.7.0 + 0.8.0 diff --git a/java-lustre/pom.xml b/java-lustre/pom.xml index 80f9099d27ae..0d58023307f1 100644 --- a/java-lustre/pom.xml +++ b/java-lustre/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-lustre-parent pom - 0.7.0 + 0.8.0 Google Google Cloud Managed Lustre API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-lustre - 0.7.0 + 0.8.0 com.google.api.grpc grpc-google-cloud-lustre-v1 - 0.7.0 + 0.8.0 com.google.api.grpc proto-google-cloud-lustre-v1 - 0.7.0 + 0.8.0 diff --git a/java-lustre/proto-google-cloud-lustre-v1/pom.xml b/java-lustre/proto-google-cloud-lustre-v1/pom.xml index 61f2691f0c76..df6d36ff1b0f 100644 --- a/java-lustre/proto-google-cloud-lustre-v1/pom.xml +++ b/java-lustre/proto-google-cloud-lustre-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-lustre-v1 - 0.7.0 + 0.8.0 proto-google-cloud-lustre-v1 Proto library for google-cloud-lustre com.google.cloud google-cloud-lustre-parent - 0.7.0 + 0.8.0 diff --git a/java-maintenance/CHANGELOG.md b/java-maintenance/CHANGELOG.md index 4146df8e801f..04339c209613 100644 --- a/java-maintenance/CHANGELOG.md +++ b/java-maintenance/CHANGELOG.md @@ -1,5 +1,16 @@ # Changelog +## 0.2.0 (2025-07-11) + +### Bug Fixes + +* Add missing comments for messages ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.1.0 (2025-06-25) ### Features diff --git a/java-maintenance/README.md b/java-maintenance/README.md index 506960d96ff4..1c6034d11608 100644 --- a/java-maintenance/README.md +++ b/java-maintenance/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-maintenance - 0.0.0 + 0.1.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-maintenance:0.0.0' +implementation 'com.google.cloud:google-cloud-maintenance:0.1.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-maintenance" % "0.0.0" +libraryDependencies += "com.google.cloud" % "google-cloud-maintenance" % "0.1.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-maintenance.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-maintenance/0.0.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-maintenance/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-maintenance/google-cloud-maintenance-bom/pom.xml b/java-maintenance/google-cloud-maintenance-bom/pom.xml index 010e54082947..db07ee410918 100644 --- a/java-maintenance/google-cloud-maintenance-bom/pom.xml +++ b/java-maintenance/google-cloud-maintenance-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-maintenance-bom - 0.1.0 + 0.2.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-maintenance - 0.1.0 + 0.2.0 com.google.api.grpc grpc-google-cloud-maintenance-v1beta - 0.1.0 + 0.2.0 com.google.api.grpc proto-google-cloud-maintenance-v1beta - 0.1.0 + 0.2.0 diff --git a/java-maintenance/google-cloud-maintenance/pom.xml b/java-maintenance/google-cloud-maintenance/pom.xml index a8ca8d33f937..eab55ce6c942 100644 --- a/java-maintenance/google-cloud-maintenance/pom.xml +++ b/java-maintenance/google-cloud-maintenance/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-maintenance - 0.1.0 + 0.2.0 jar Google Maintenance API Maintenance API The Maintenance API provides a centralized view of planned disruptive maintenance events across supported Google Cloud products. com.google.cloud google-cloud-maintenance-parent - 0.1.0 + 0.2.0 google-cloud-maintenance diff --git a/java-maintenance/grpc-google-cloud-maintenance-v1beta/pom.xml b/java-maintenance/grpc-google-cloud-maintenance-v1beta/pom.xml index 3b4feefe9f63..39f6b594cb35 100644 --- a/java-maintenance/grpc-google-cloud-maintenance-v1beta/pom.xml +++ b/java-maintenance/grpc-google-cloud-maintenance-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-maintenance-v1beta - 0.1.0 + 0.2.0 grpc-google-cloud-maintenance-v1beta GRPC library for google-cloud-maintenance com.google.cloud google-cloud-maintenance-parent - 0.1.0 + 0.2.0 diff --git a/java-maintenance/pom.xml b/java-maintenance/pom.xml index 477619869ccc..4fe583b276a4 100644 --- a/java-maintenance/pom.xml +++ b/java-maintenance/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-maintenance-parent pom - 0.1.0 + 0.2.0 Google Maintenance API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-maintenance - 0.1.0 + 0.2.0 com.google.api.grpc grpc-google-cloud-maintenance-v1beta - 0.1.0 + 0.2.0 com.google.api.grpc proto-google-cloud-maintenance-v1beta - 0.1.0 + 0.2.0 diff --git a/java-maintenance/proto-google-cloud-maintenance-v1beta/pom.xml b/java-maintenance/proto-google-cloud-maintenance-v1beta/pom.xml index 29a68e136b18..9bad1f38d148 100644 --- a/java-maintenance/proto-google-cloud-maintenance-v1beta/pom.xml +++ b/java-maintenance/proto-google-cloud-maintenance-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-maintenance-v1beta - 0.1.0 + 0.2.0 proto-google-cloud-maintenance-v1beta Proto library for google-cloud-maintenance com.google.cloud google-cloud-maintenance-parent - 0.1.0 + 0.2.0 diff --git a/java-maintenance/proto-google-cloud-maintenance-v1beta/src/main/java/com/google/cloud/maintenance/api/v1beta/MaintenanceSummary.java b/java-maintenance/proto-google-cloud-maintenance-v1beta/src/main/java/com/google/cloud/maintenance/api/v1beta/MaintenanceSummary.java index f4b2b3892c44..363081591523 100644 --- a/java-maintenance/proto-google-cloud-maintenance-v1beta/src/main/java/com/google/cloud/maintenance/api/v1beta/MaintenanceSummary.java +++ b/java-maintenance/proto-google-cloud-maintenance-v1beta/src/main/java/com/google/cloud/maintenance/api/v1beta/MaintenanceSummary.java @@ -183,7 +183,15 @@ public interface StatsOrBuilder getAggregatesOrBuilder(int index); } - /** Protobuf type {@code google.cloud.maintenance.api.v1beta.MaintenanceSummary.Stats} */ + /** + * + * + *
+   * Stats indicates the type of aggregate and the corresponding aggregates.
+   * 
+ * + * Protobuf type {@code google.cloud.maintenance.api.v1beta.MaintenanceSummary.Stats} + */ public static final class Stats extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.maintenance.api.v1beta.MaintenanceSummary.Stats) @@ -551,7 +559,15 @@ protected Builder newBuilderForType( return builder; } - /** Protobuf type {@code google.cloud.maintenance.api.v1beta.MaintenanceSummary.Stats} */ + /** + * + * + *
+     * Stats indicates the type of aggregate and the corresponding aggregates.
+     * 
+ * + * Protobuf type {@code google.cloud.maintenance.api.v1beta.MaintenanceSummary.Stats} + */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements @@ -1497,7 +1513,15 @@ public interface AggregateOrBuilder long getCount(); } - /** Protobuf type {@code google.cloud.maintenance.api.v1beta.MaintenanceSummary.Aggregate} */ + /** + * + * + *
+   * Aggregate is a <group, count> pair.
+   * 
+ * + * Protobuf type {@code google.cloud.maintenance.api.v1beta.MaintenanceSummary.Aggregate} + */ public static final class Aggregate extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.maintenance.api.v1beta.MaintenanceSummary.Aggregate) @@ -1782,7 +1806,15 @@ protected Builder newBuilderForType( return builder; } - /** Protobuf type {@code google.cloud.maintenance.api.v1beta.MaintenanceSummary.Aggregate} */ + /** + * + * + *
+     * Aggregate is a <group, count> pair.
+     * 
+ * + * Protobuf type {@code google.cloud.maintenance.api.v1beta.MaintenanceSummary.Aggregate} + */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements diff --git a/java-maintenance/proto-google-cloud-maintenance-v1beta/src/main/java/com/google/cloud/maintenance/api/v1beta/SummarizeMaintenancesResponse.java b/java-maintenance/proto-google-cloud-maintenance-v1beta/src/main/java/com/google/cloud/maintenance/api/v1beta/SummarizeMaintenancesResponse.java index abd04131e47e..7d5e77da86cd 100644 --- a/java-maintenance/proto-google-cloud-maintenance-v1beta/src/main/java/com/google/cloud/maintenance/api/v1beta/SummarizeMaintenancesResponse.java +++ b/java-maintenance/proto-google-cloud-maintenance-v1beta/src/main/java/com/google/cloud/maintenance/api/v1beta/SummarizeMaintenancesResponse.java @@ -19,7 +19,15 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.maintenance.api.v1beta; -/** Protobuf type {@code google.cloud.maintenance.api.v1beta.SummarizeMaintenancesResponse} */ +/** + * + * + *
+ * Request message for SummarizeMaintenances custom method.
+ * 
+ * + * Protobuf type {@code google.cloud.maintenance.api.v1beta.SummarizeMaintenancesResponse} + */ public final class SummarizeMaintenancesResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.maintenance.api.v1beta.SummarizeMaintenancesResponse) @@ -460,7 +468,15 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build return builder; } - /** Protobuf type {@code google.cloud.maintenance.api.v1beta.SummarizeMaintenancesResponse} */ + /** + * + * + *
+   * Request message for SummarizeMaintenances custom method.
+   * 
+ * + * Protobuf type {@code google.cloud.maintenance.api.v1beta.SummarizeMaintenancesResponse} + */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.maintenance.api.v1beta.SummarizeMaintenancesResponse) diff --git a/java-maintenance/proto-google-cloud-maintenance-v1beta/src/main/proto/google/cloud/maintenance/api/v1beta/maintenance_service.proto b/java-maintenance/proto-google-cloud-maintenance-v1beta/src/main/proto/google/cloud/maintenance/api/v1beta/maintenance_service.proto index f7173d1fed7c..d2e57c68de8d 100644 --- a/java-maintenance/proto-google-cloud-maintenance-v1beta/src/main/proto/google/cloud/maintenance/api/v1beta/maintenance_service.proto +++ b/java-maintenance/proto-google-cloud-maintenance-v1beta/src/main/proto/google/cloud/maintenance/api/v1beta/maintenance_service.proto @@ -70,6 +70,7 @@ message SummarizeMaintenancesRequest { string order_by = 10508; } +// Request message for SummarizeMaintenances custom method. message SummarizeMaintenancesResponse { // The resulting summaries. repeated MaintenanceSummary maintenances = 10509; @@ -87,6 +88,7 @@ message SummarizeMaintenancesResponse { // MaintenanceSummary contains maintenance statistics calculated based on // ResourceMaintenances within the scope: project and location. message MaintenanceSummary { + // Stats indicates the type of aggregate and the corresponding aggregates. message Stats { // groupBy specifies the type of aggregate. // For example a group_by might be `"state"` @@ -98,6 +100,7 @@ message MaintenanceSummary { repeated Aggregate aggregates = 2; } + // Aggregate is a pair. message Aggregate { // Specifies what specific value of the group_by the count represents. For // example if group_by is `"state"` its corresponding group could be diff --git a/java-managed-identities/CHANGELOG.md b/java-managed-identities/CHANGELOG.md index 4da19b3f4ddc..4d4ca6bbf5ef 100644 --- a/java-managed-identities/CHANGELOG.md +++ b/java-managed-identities/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 1.66.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 1.65.0 (2025-06-25) ### Dependencies diff --git a/java-managed-identities/README.md b/java-managed-identities/README.md index 54e28115373c..1bac5075225d 100644 --- a/java-managed-identities/README.md +++ b/java-managed-identities/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-managed-identities - 1.64.0 + 1.65.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-managed-identities:1.64.0' +implementation 'com.google.cloud:google-cloud-managed-identities:1.65.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-managed-identities" % "1.64.0" +libraryDependencies += "com.google.cloud" % "google-cloud-managed-identities" % "1.65.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.64.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managed-identities/1.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-managed-identities/google-cloud-managed-identities-bom/pom.xml b/java-managed-identities/google-cloud-managed-identities-bom/pom.xml index 0f3601fdf7be..77c910110a91 100644 --- a/java-managed-identities/google-cloud-managed-identities-bom/pom.xml +++ b/java-managed-identities/google-cloud-managed-identities-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-managed-identities-bom - 1.65.0 + 1.66.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-managed-identities - 1.65.0 + 1.66.0 com.google.api.grpc grpc-google-cloud-managed-identities-v1 - 1.65.0 + 1.66.0 com.google.api.grpc proto-google-cloud-managed-identities-v1 - 1.65.0 + 1.66.0
diff --git a/java-managed-identities/google-cloud-managed-identities/pom.xml b/java-managed-identities/google-cloud-managed-identities/pom.xml index b11cd2c50bd6..ed76dd52b973 100644 --- a/java-managed-identities/google-cloud-managed-identities/pom.xml +++ b/java-managed-identities/google-cloud-managed-identities/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-managed-identities - 1.65.0 + 1.66.0 jar Google Managed Service for Microsoft Active Directory 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. com.google.cloud google-cloud-managed-identities-parent - 1.65.0 + 1.66.0 google-cloud-managed-identities diff --git a/java-managed-identities/grpc-google-cloud-managed-identities-v1/pom.xml b/java-managed-identities/grpc-google-cloud-managed-identities-v1/pom.xml index 002745ade0c2..41097ee34944 100644 --- a/java-managed-identities/grpc-google-cloud-managed-identities-v1/pom.xml +++ b/java-managed-identities/grpc-google-cloud-managed-identities-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-managed-identities-v1 - 1.65.0 + 1.66.0 grpc-google-cloud-managed-identities-v1 GRPC library for google-cloud-managed-identities com.google.cloud google-cloud-managed-identities-parent - 1.65.0 + 1.66.0 diff --git a/java-managed-identities/pom.xml b/java-managed-identities/pom.xml index 60ed03de198d..9021e640b297 100644 --- a/java-managed-identities/pom.xml +++ b/java-managed-identities/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-managed-identities-parent pom - 1.65.0 + 1.66.0 Google Managed Service for Microsoft Active Directory Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-managed-identities - 1.65.0 + 1.66.0 com.google.api.grpc proto-google-cloud-managed-identities-v1 - 1.65.0 + 1.66.0 com.google.api.grpc grpc-google-cloud-managed-identities-v1 - 1.65.0 + 1.66.0 diff --git a/java-managed-identities/proto-google-cloud-managed-identities-v1/pom.xml b/java-managed-identities/proto-google-cloud-managed-identities-v1/pom.xml index 05ec5c348cf7..ee989981f075 100644 --- a/java-managed-identities/proto-google-cloud-managed-identities-v1/pom.xml +++ b/java-managed-identities/proto-google-cloud-managed-identities-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-managed-identities-v1 - 1.65.0 + 1.66.0 proto-google-cloud-managed-identities-v1 Proto library for google-cloud-managed-identities com.google.cloud google-cloud-managed-identities-parent - 1.65.0 + 1.66.0 diff --git a/java-managedkafka/CHANGELOG.md b/java-managedkafka/CHANGELOG.md index 9d3dc0bcfe6e..d3bd6312ca9e 100644 --- a/java-managedkafka/CHANGELOG.md +++ b/java-managedkafka/CHANGELOG.md @@ -1,5 +1,16 @@ # Changelog +## 0.24.0 (2025-07-11) + +### Features + +* update libraries and clients for Managed Kafka ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.23.0 (2025-06-25) ### Dependencies diff --git a/java-managedkafka/README.md b/java-managedkafka/README.md index f8e06f26e3d1..27355ee81bf4 100644 --- a/java-managedkafka/README.md +++ b/java-managedkafka/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-managedkafka - 0.22.0 + 0.23.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-managedkafka:0.22.0' +implementation 'com.google.cloud:google-cloud-managedkafka:0.23.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-managedkafka" % "0.22.0" +libraryDependencies += "com.google.cloud" % "google-cloud-managedkafka" % "0.23.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-managedkafka.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managedkafka/0.22.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managedkafka/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-managedkafka/google-cloud-managedkafka-bom/pom.xml b/java-managedkafka/google-cloud-managedkafka-bom/pom.xml index 91d56be8ef31..55e393dc5a80 100644 --- a/java-managedkafka/google-cloud-managedkafka-bom/pom.xml +++ b/java-managedkafka/google-cloud-managedkafka-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-managedkafka-bom - 0.23.0 + 0.24.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-managedkafka - 0.23.0 + 0.24.0 com.google.api.grpc grpc-google-cloud-managedkafka-v1 - 0.23.0 + 0.24.0 com.google.api.grpc proto-google-cloud-managedkafka-v1 - 0.23.0 + 0.24.0 diff --git a/java-managedkafka/google-cloud-managedkafka/pom.xml b/java-managedkafka/google-cloud-managedkafka/pom.xml index 2800e038aad5..b055ff098050 100644 --- a/java-managedkafka/google-cloud-managedkafka/pom.xml +++ b/java-managedkafka/google-cloud-managedkafka/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-managedkafka - 0.23.0 + 0.24.0 jar Google Managed Service for Apache Kafka API Managed Service for Apache Kafka API Manage Apache Kafka clusters and resources. com.google.cloud google-cloud-managedkafka-parent - 0.23.0 + 0.24.0 google-cloud-managedkafka diff --git a/java-managedkafka/google-cloud-managedkafka/src/main/resources/META-INF/native-image/com.google.cloud.managedkafka.v1/reflect-config.json b/java-managedkafka/google-cloud-managedkafka/src/main/resources/META-INF/native-image/com.google.cloud.managedkafka.v1/reflect-config.json index 74152aced6c7..05af96c43bdd 100644 --- a/java-managedkafka/google-cloud-managedkafka/src/main/resources/META-INF/native-image/com.google.cloud.managedkafka.v1/reflect-config.json +++ b/java-managedkafka/google-cloud-managedkafka/src/main/resources/META-INF/native-image/com.google.cloud.managedkafka.v1/reflect-config.json @@ -1628,6 +1628,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.managedkafka.v1.TlsConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.managedkafka.v1.TlsConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.managedkafka.v1.Topic", "queryAllDeclaredConstructors": true, @@ -1646,6 +1664,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.managedkafka.v1.TrustConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.managedkafka.v1.TrustConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.managedkafka.v1.TrustConfig$CertificateAuthorityServiceConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.managedkafka.v1.TrustConfig$CertificateAuthorityServiceConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.managedkafka.v1.UpdateAclRequest", "queryAllDeclaredConstructors": true, diff --git a/java-managedkafka/google-cloud-managedkafka/src/test/java/com/google/cloud/managedkafka/v1/ManagedKafkaClientHttpJsonTest.java b/java-managedkafka/google-cloud-managedkafka/src/test/java/com/google/cloud/managedkafka/v1/ManagedKafkaClientHttpJsonTest.java index c77ca169c29a..2ba0c83305b3 100644 --- a/java-managedkafka/google-cloud-managedkafka/src/test/java/com/google/cloud/managedkafka/v1/ManagedKafkaClientHttpJsonTest.java +++ b/java-managedkafka/google-cloud-managedkafka/src/test/java/com/google/cloud/managedkafka/v1/ManagedKafkaClientHttpJsonTest.java @@ -203,6 +203,7 @@ public void getClusterTest() throws Exception { .setRebalanceConfig(RebalanceConfig.newBuilder().build()) .setSatisfiesPzi(true) .setSatisfiesPzs(true) + .setTlsConfig(TlsConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -254,6 +255,7 @@ public void getClusterTest2() throws Exception { .setRebalanceConfig(RebalanceConfig.newBuilder().build()) .setSatisfiesPzi(true) .setSatisfiesPzs(true) + .setTlsConfig(TlsConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -305,6 +307,7 @@ public void createClusterTest() throws Exception { .setRebalanceConfig(RebalanceConfig.newBuilder().build()) .setSatisfiesPzi(true) .setSatisfiesPzs(true) + .setTlsConfig(TlsConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -365,6 +368,7 @@ public void createClusterTest2() throws Exception { .setRebalanceConfig(RebalanceConfig.newBuilder().build()) .setSatisfiesPzi(true) .setSatisfiesPzs(true) + .setTlsConfig(TlsConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -425,6 +429,7 @@ public void updateClusterTest() throws Exception { .setRebalanceConfig(RebalanceConfig.newBuilder().build()) .setSatisfiesPzi(true) .setSatisfiesPzs(true) + .setTlsConfig(TlsConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -444,6 +449,7 @@ public void updateClusterTest() throws Exception { .setRebalanceConfig(RebalanceConfig.newBuilder().build()) .setSatisfiesPzi(true) .setSatisfiesPzs(true) + .setTlsConfig(TlsConfig.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -483,6 +489,7 @@ public void updateClusterExceptionTest() throws Exception { .setRebalanceConfig(RebalanceConfig.newBuilder().build()) .setSatisfiesPzi(true) .setSatisfiesPzs(true) + .setTlsConfig(TlsConfig.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateClusterAsync(cluster, updateMask).get(); diff --git a/java-managedkafka/google-cloud-managedkafka/src/test/java/com/google/cloud/managedkafka/v1/ManagedKafkaClientTest.java b/java-managedkafka/google-cloud-managedkafka/src/test/java/com/google/cloud/managedkafka/v1/ManagedKafkaClientTest.java index 50e9b8e469bb..bcfea1e821d4 100644 --- a/java-managedkafka/google-cloud-managedkafka/src/test/java/com/google/cloud/managedkafka/v1/ManagedKafkaClientTest.java +++ b/java-managedkafka/google-cloud-managedkafka/src/test/java/com/google/cloud/managedkafka/v1/ManagedKafkaClientTest.java @@ -198,6 +198,7 @@ public void getClusterTest() throws Exception { .setRebalanceConfig(RebalanceConfig.newBuilder().build()) .setSatisfiesPzi(true) .setSatisfiesPzs(true) + .setTlsConfig(TlsConfig.newBuilder().build()) .build(); mockManagedKafka.addResponse(expectedResponse); @@ -243,6 +244,7 @@ public void getClusterTest2() throws Exception { .setRebalanceConfig(RebalanceConfig.newBuilder().build()) .setSatisfiesPzi(true) .setSatisfiesPzs(true) + .setTlsConfig(TlsConfig.newBuilder().build()) .build(); mockManagedKafka.addResponse(expectedResponse); @@ -288,6 +290,7 @@ public void createClusterTest() throws Exception { .setRebalanceConfig(RebalanceConfig.newBuilder().build()) .setSatisfiesPzi(true) .setSatisfiesPzs(true) + .setTlsConfig(TlsConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -347,6 +350,7 @@ public void createClusterTest2() throws Exception { .setRebalanceConfig(RebalanceConfig.newBuilder().build()) .setSatisfiesPzi(true) .setSatisfiesPzs(true) + .setTlsConfig(TlsConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -406,6 +410,7 @@ public void updateClusterTest() throws Exception { .setRebalanceConfig(RebalanceConfig.newBuilder().build()) .setSatisfiesPzi(true) .setSatisfiesPzs(true) + .setTlsConfig(TlsConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() diff --git a/java-managedkafka/grpc-google-cloud-managedkafka-v1/pom.xml b/java-managedkafka/grpc-google-cloud-managedkafka-v1/pom.xml index 688ab270d4e4..b8e0a3502e60 100644 --- a/java-managedkafka/grpc-google-cloud-managedkafka-v1/pom.xml +++ b/java-managedkafka/grpc-google-cloud-managedkafka-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-managedkafka-v1 - 0.23.0 + 0.24.0 grpc-google-cloud-managedkafka-v1 GRPC library for google-cloud-managedkafka com.google.cloud google-cloud-managedkafka-parent - 0.23.0 + 0.24.0 diff --git a/java-managedkafka/pom.xml b/java-managedkafka/pom.xml index 6ad0ae289877..40f70d29e78f 100644 --- a/java-managedkafka/pom.xml +++ b/java-managedkafka/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-managedkafka-parent pom - 0.23.0 + 0.24.0 Google Managed Service for Apache Kafka API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-managedkafka - 0.23.0 + 0.24.0 com.google.api.grpc grpc-google-cloud-managedkafka-v1 - 0.23.0 + 0.24.0 com.google.api.grpc proto-google-cloud-managedkafka-v1 - 0.23.0 + 0.24.0 diff --git a/java-managedkafka/proto-google-cloud-managedkafka-v1/pom.xml b/java-managedkafka/proto-google-cloud-managedkafka-v1/pom.xml index 832a402f428d..8e6c40ffa067 100644 --- a/java-managedkafka/proto-google-cloud-managedkafka-v1/pom.xml +++ b/java-managedkafka/proto-google-cloud-managedkafka-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-managedkafka-v1 - 0.23.0 + 0.24.0 proto-google-cloud-managedkafka-v1 Proto library for google-cloud-managedkafka com.google.cloud google-cloud-managedkafka-parent - 0.23.0 + 0.24.0 diff --git a/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/Cluster.java b/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/Cluster.java index 9e32842fc094..e8b40f4f628c 100644 --- a/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/Cluster.java +++ b/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/Cluster.java @@ -865,6 +865,65 @@ public boolean getSatisfiesPzs() { return satisfiesPzs_; } + public static final int TLS_CONFIG_FIELD_NUMBER = 13; + private com.google.cloud.managedkafka.v1.TlsConfig tlsConfig_; + + /** + * + * + *
+   * Optional. TLS configuration for the Kafka cluster.
+   * 
+ * + * + * .google.cloud.managedkafka.v1.TlsConfig tls_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the tlsConfig field is set. + */ + @java.lang.Override + public boolean hasTlsConfig() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+   * Optional. TLS configuration for the Kafka cluster.
+   * 
+ * + * + * .google.cloud.managedkafka.v1.TlsConfig tls_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tlsConfig. + */ + @java.lang.Override + public com.google.cloud.managedkafka.v1.TlsConfig getTlsConfig() { + return tlsConfig_ == null + ? com.google.cloud.managedkafka.v1.TlsConfig.getDefaultInstance() + : tlsConfig_; + } + + /** + * + * + *
+   * Optional. TLS configuration for the Kafka cluster.
+   * 
+ * + * + * .google.cloud.managedkafka.v1.TlsConfig tls_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.managedkafka.v1.TlsConfigOrBuilder getTlsConfigOrBuilder() { + return tlsConfig_ == null + ? com.google.cloud.managedkafka.v1.TlsConfig.getDefaultInstance() + : tlsConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -908,6 +967,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000020) != 0)) { output.writeBool(12, satisfiesPzs_); } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(13, getTlsConfig()); + } getUnknownFields().writeTo(output); } @@ -956,6 +1018,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, satisfiesPzs_); } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getTlsConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -998,6 +1063,10 @@ public boolean equals(final java.lang.Object obj) { if (hasSatisfiesPzs()) { if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false; } + if (hasTlsConfig() != other.hasTlsConfig()) return false; + if (hasTlsConfig()) { + if (!getTlsConfig().equals(other.getTlsConfig())) return false; + } if (!getPlatformConfigCase().equals(other.getPlatformConfigCase())) return false; switch (platformConfigCase_) { case 9: @@ -1049,6 +1118,10 @@ public int hashCode() { hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs()); } + if (hasTlsConfig()) { + hash = (37 * hash) + TLS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getTlsConfig().hashCode(); + } switch (platformConfigCase_) { case 9: hash = (37 * hash) + GCP_CONFIG_FIELD_NUMBER; @@ -1224,6 +1297,7 @@ private void maybeForceBuilderInitialization() { getUpdateTimeFieldBuilder(); getCapacityConfigFieldBuilder(); getRebalanceConfigFieldBuilder(); + getTlsConfigFieldBuilder(); } } @@ -1259,6 +1333,11 @@ public Builder clear() { state_ = 0; satisfiesPzi_ = false; satisfiesPzs_ = false; + tlsConfig_ = null; + if (tlsConfigBuilder_ != null) { + tlsConfigBuilder_.dispose(); + tlsConfigBuilder_ = null; + } platformConfigCase_ = 0; platformConfig_ = null; return this; @@ -1335,6 +1414,10 @@ private void buildPartial0(com.google.cloud.managedkafka.v1.Cluster result) { result.satisfiesPzs_ = satisfiesPzs_; to_bitField0_ |= 0x00000020; } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.tlsConfig_ = tlsConfigBuilder_ == null ? tlsConfig_ : tlsConfigBuilder_.build(); + to_bitField0_ |= 0x00000040; + } result.bitField0_ |= to_bitField0_; } @@ -1419,6 +1502,9 @@ public Builder mergeFrom(com.google.cloud.managedkafka.v1.Cluster other) { if (other.hasSatisfiesPzs()) { setSatisfiesPzs(other.getSatisfiesPzs()); } + if (other.hasTlsConfig()) { + mergeTlsConfig(other.getTlsConfig()); + } switch (other.getPlatformConfigCase()) { case GCP_CONFIG: { @@ -1522,6 +1608,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000200; break; } // case 96 + case 106: + { + input.readMessage(getTlsConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 106 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3189,6 +3281,219 @@ public Builder clearSatisfiesPzs() { return this; } + private com.google.cloud.managedkafka.v1.TlsConfig tlsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.managedkafka.v1.TlsConfig, + com.google.cloud.managedkafka.v1.TlsConfig.Builder, + com.google.cloud.managedkafka.v1.TlsConfigOrBuilder> + tlsConfigBuilder_; + + /** + * + * + *
+     * Optional. TLS configuration for the Kafka cluster.
+     * 
+ * + * + * .google.cloud.managedkafka.v1.TlsConfig tls_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the tlsConfig field is set. + */ + public boolean hasTlsConfig() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
+     * Optional. TLS configuration for the Kafka cluster.
+     * 
+ * + * + * .google.cloud.managedkafka.v1.TlsConfig tls_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tlsConfig. + */ + public com.google.cloud.managedkafka.v1.TlsConfig getTlsConfig() { + if (tlsConfigBuilder_ == null) { + return tlsConfig_ == null + ? com.google.cloud.managedkafka.v1.TlsConfig.getDefaultInstance() + : tlsConfig_; + } else { + return tlsConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. TLS configuration for the Kafka cluster.
+     * 
+ * + * + * .google.cloud.managedkafka.v1.TlsConfig tls_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTlsConfig(com.google.cloud.managedkafka.v1.TlsConfig value) { + if (tlsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tlsConfig_ = value; + } else { + tlsConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. TLS configuration for the Kafka cluster.
+     * 
+ * + * + * .google.cloud.managedkafka.v1.TlsConfig tls_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTlsConfig( + com.google.cloud.managedkafka.v1.TlsConfig.Builder builderForValue) { + if (tlsConfigBuilder_ == null) { + tlsConfig_ = builderForValue.build(); + } else { + tlsConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. TLS configuration for the Kafka cluster.
+     * 
+ * + * + * .google.cloud.managedkafka.v1.TlsConfig tls_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeTlsConfig(com.google.cloud.managedkafka.v1.TlsConfig value) { + if (tlsConfigBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && tlsConfig_ != null + && tlsConfig_ != com.google.cloud.managedkafka.v1.TlsConfig.getDefaultInstance()) { + getTlsConfigBuilder().mergeFrom(value); + } else { + tlsConfig_ = value; + } + } else { + tlsConfigBuilder_.mergeFrom(value); + } + if (tlsConfig_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. TLS configuration for the Kafka cluster.
+     * 
+ * + * + * .google.cloud.managedkafka.v1.TlsConfig tls_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearTlsConfig() { + bitField0_ = (bitField0_ & ~0x00000400); + tlsConfig_ = null; + if (tlsConfigBuilder_ != null) { + tlsConfigBuilder_.dispose(); + tlsConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. TLS configuration for the Kafka cluster.
+     * 
+ * + * + * .google.cloud.managedkafka.v1.TlsConfig tls_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.managedkafka.v1.TlsConfig.Builder getTlsConfigBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return getTlsConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. TLS configuration for the Kafka cluster.
+     * 
+ * + * + * .google.cloud.managedkafka.v1.TlsConfig tls_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.managedkafka.v1.TlsConfigOrBuilder getTlsConfigOrBuilder() { + if (tlsConfigBuilder_ != null) { + return tlsConfigBuilder_.getMessageOrBuilder(); + } else { + return tlsConfig_ == null + ? com.google.cloud.managedkafka.v1.TlsConfig.getDefaultInstance() + : tlsConfig_; + } + } + + /** + * + * + *
+     * Optional. TLS configuration for the Kafka cluster.
+     * 
+ * + * + * .google.cloud.managedkafka.v1.TlsConfig tls_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.managedkafka.v1.TlsConfig, + com.google.cloud.managedkafka.v1.TlsConfig.Builder, + com.google.cloud.managedkafka.v1.TlsConfigOrBuilder> + getTlsConfigFieldBuilder() { + if (tlsConfigBuilder_ == null) { + tlsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.managedkafka.v1.TlsConfig, + com.google.cloud.managedkafka.v1.TlsConfig.Builder, + com.google.cloud.managedkafka.v1.TlsConfigOrBuilder>( + getTlsConfig(), getParentForChildren(), isClean()); + tlsConfig_ = null; + } + return tlsConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/ClusterOrBuilder.java b/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/ClusterOrBuilder.java index 741c0026c890..666c93300b84 100644 --- a/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/ClusterOrBuilder.java +++ b/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/ClusterOrBuilder.java @@ -409,5 +409,48 @@ java.lang.String getLabelsOrDefault( */ boolean getSatisfiesPzs(); + /** + * + * + *
+   * Optional. TLS configuration for the Kafka cluster.
+   * 
+ * + * + * .google.cloud.managedkafka.v1.TlsConfig tls_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the tlsConfig field is set. + */ + boolean hasTlsConfig(); + + /** + * + * + *
+   * Optional. TLS configuration for the Kafka cluster.
+   * 
+ * + * + * .google.cloud.managedkafka.v1.TlsConfig tls_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tlsConfig. + */ + com.google.cloud.managedkafka.v1.TlsConfig getTlsConfig(); + + /** + * + * + *
+   * Optional. TLS configuration for the Kafka cluster.
+   * 
+ * + * + * .google.cloud.managedkafka.v1.TlsConfig tls_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.managedkafka.v1.TlsConfigOrBuilder getTlsConfigOrBuilder(); + com.google.cloud.managedkafka.v1.Cluster.PlatformConfigCase getPlatformConfigCase(); } diff --git a/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/ResourcesProto.java b/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/ResourcesProto.java index 9b008afedb86..9837b798a94e 100644 --- a/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/ResourcesProto.java +++ b/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/ResourcesProto.java @@ -56,6 +56,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_managedkafka_v1_GcpConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_managedkafka_v1_GcpConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_managedkafka_v1_TlsConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_managedkafka_v1_TlsConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_managedkafka_v1_TrustConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_managedkafka_v1_TrustConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_managedkafka_v1_TrustConfig_CertificateAuthorityServiceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_managedkafka_v1_TrustConfig_CertificateAuthorityServiceConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_managedkafka_v1_Topic_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -146,7 +158,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".proto\022\034google.cloud.managedkafka.v1\032\037go" + "ogle/api/field_behavior.proto\032\031google/ap" + "i/resource.proto\032\036google/protobuf/durati" - + "on.proto\032\037google/protobuf/timestamp.proto\"\330\006\n" + + "on.proto\032\037google/protobuf/timestamp.proto\"\232\007\n" + "\007Cluster\022B\n\n" + "gcp_config\030\t \001(\0132\'.goog" + "le.cloud.managedkafka.v1.GcpConfigB\003\340A\002H\000\022\021\n" @@ -162,7 +174,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005state\030\n" + " \001(\0162+.google.cloud.managedkafka.v1.Cluster.StateB\003\340A\003\022\037\n\r" + "satisfies_pzi\030\013 \001(\010B\003\340A\003H\001\210\001\001\022\037\n\r" - + "satisfies_pzs\030\014 \001(\010B\003\340A\003H\002\210\001\001\032-\n" + + "satisfies_pzs\030\014 \001(\010B\003\340A\003H\002\210\001\001\022@\n\n" + + "tls_config\030\r" + + " \001(\0132\'.google.cloud.managedkafka.v1.TlsConfigB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"F\n" @@ -171,8 +185,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010CREATING\020\001\022\n\n" + "\006ACTIVE\020\002\022\014\n" + "\010DELETING\020\003:w\352At\n" - + "#managedkafka.googleapis.com/Cluster\022:projects/{project}/locations/{lo" - + "cation}/clusters/{cluster}*\010clusters2\007clusterB\021\n" + + "#managedkafka.googleapis.com/Cluster\022:projec" + + "ts/{project}/locations/{location}/clusters/{cluster}*\010clusters2\007clusterB\021\n" + "\017platform_configB\020\n" + "\016_satisfies_pziB\020\n" + "\016_satisfies_pzs\"D\n" @@ -180,8 +194,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "vcpu_count\030\001 \001(\003B\003\340A\002\022\031\n" + "\014memory_bytes\030\002 \001(\003B\003\340A\002\"\250\001\n" + "\017RebalanceConfig\022E\n" - + "\004mode\030\001" - + " \001(\01622.google.cloud.managedkafka.v1.RebalanceConfig.ModeB\003\340A\001\"N\n" + + "\004mode\030\001 \001(\01622.google." + + "cloud.managedkafka.v1.RebalanceConfig.ModeB\003\340A\001\"N\n" + "\004Mode\022\024\n" + "\020MODE_UNSPECIFIED\020\000\022\020\n" + "\014NO_REBALANCE\020\001\022\036\n" @@ -195,7 +209,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "access_config\030\003" + " \001(\0132*.google.cloud.managedkafka.v1.AccessConfigB\003\340A\002\022=\n" + "\007kms_key\030\002 \001(\tB,\340A\001\340A\005\372A#\n" - + "!cloudkms.googleapis.com/CryptoKey\"\327\002\n" + + "!cloudkms.googleapis.com/CryptoKey\"{\n" + + "\tTlsConfig\022D\n" + + "\014trust_config\030\001 \001(\013" + + "2).google.cloud.managedkafka.v1.TrustConfigB\003\340A\001\022(\n" + + "\033ssl_principal_mapping_rules\030\002 \001(\tB\003\340A\001\"\323\001\n" + + "\013TrustConfig\022e\n" + + "\013cas_configs\030\001 \003(\0132K.google.cloud.managedkafka.v1.T" + + "rustConfig.CertificateAuthorityServiceConfigB\003\340A\001\032]\n" + + "!CertificateAuthorityServiceConfig\0228\n" + + "\007ca_pool\030\001 \001(\tB\'\340A\002\372A!\n" + + "\037privateca.googleapis.com/CaPool\"\327\002\n" + "\005Topic\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\034\n" + "\017partition_count\030\002 \001(\005B\003\340A\002\022\"\n" @@ -205,28 +229,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014ConfigsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:\200\001\352A}\n" - + "!managedkafka.googleapis.com/Topic\022Iprojects/{project}/locations/{location}/clu" - + "sters/{cluster}/topics/{topic}*\006topics2\005topic\"\341\001\n" + + "!managedkafka.googleapis.com/Topic\022Iprojects/{project}/locations/{location" + + "}/clusters/{cluster}/topics/{topic}*\006topics2\005topic\"\341\001\n" + "\025ConsumerTopicMetadata\022\\\n\n" - + "partitions\030\001 \003(\0132C.google.cloud.managedkafka." - + "v1.ConsumerTopicMetadata.PartitionsEntryB\003\340A\001\032j\n" + + "partitions\030\001 \003(\0132C.google.cloud.managedk" + + "afka.v1.ConsumerTopicMetadata.PartitionsEntryB\003\340A\001\032j\n" + "\017PartitionsEntry\022\013\n" + "\003key\030\001 \001(\005\022F\n" - + "\005value\030\002" - + " \001(\01327.google.cloud.managedkafka.v1.ConsumerPartitionMetadata:\0028\001\"G\n" + + "\005value\030\002 \001(\01327.google.cloud.managed" + + "kafka.v1.ConsumerPartitionMetadata:\0028\001\"G\n" + "\031ConsumerPartitionMetadata\022\023\n" + "\006offset\030\001 \001(\003B\003\340A\002\022\025\n" + "\010metadata\030\002 \001(\tB\003\340A\001\"\201\003\n\r" + "ConsumerGroup\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022L\n" - + "\006topics\030\002 \003(\0132" - + "7.google.cloud.managedkafka.v1.ConsumerGroup.TopicsEntryB\003\340A\001\032b\n" + + "\006topics\030\002" + + " \003(\01327.google.cloud.managedkafka.v1.ConsumerGroup.TopicsEntryB\003\340A\001\032b\n" + "\013TopicsEntry\022\013\n" + "\003key\030\001 \001(\t\022B\n" - + "\005value\030\002 \001(\01323.google.cloud." - + "managedkafka.v1.ConsumerTopicMetadata:\0028\001:\252\001\352A\246\001\n" - + ")managedkafka.googleapis.com/ConsumerGroup\022Zprojects/{project}/location" - + "s/{location}/clusters/{cluster}/consumerGroups/{consumer_group}*\016consumerGroups2\r" + + "\005value\030\002 \001(\01323.google.c" + + "loud.managedkafka.v1.ConsumerTopicMetadata:\0028\001:\252\001\352A\246\001\n" + + ")managedkafka.googleapis.com/ConsumerGroup\022Zprojects/{project}/loc" + + "ations/{location}/clusters/{cluster}/con" + + "sumerGroups/{consumer_group}*\016consumerGroups2\r" + "consumerGroup\"\200\002\n" + "\021OperationMetadata\0224\n" + "\013create_time\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221\n" @@ -237,16 +262,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026requested_cancellation\030\006 \001(\010B\003\340A\003\022\030\n" + "\013api_version\030\007 \001(\tB\003\340A\003\"\203\007\n" + "\016ConnectCluster\022I\n\n" - + "gcp_config\030\007 \001(\0132..googl" - + "e.cloud.managedkafka.v1.ConnectGcpConfigB\003\340A\002H\000\022\021\n" + + "gcp_config\030\007 \001(\0132.." + + "google.cloud.managedkafka.v1.ConnectGcpConfigB\003\340A\002H\000\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\035\n\r" + "kafka_cluster\030\002 \001(\tB\006\340A\002\340A\005\0224\n" + "\013create_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022M\n" - + "\006labels\030\005 \003(\01328.google.cloud.man" - + "agedkafka.v1.ConnectCluster.LabelsEntryB\003\340A\001\022J\n" - + "\017capacity_config\030\006 \001(\0132,.google.c" - + "loud.managedkafka.v1.CapacityConfigB\003\340A\002\022F\n" + + "\006labels\030\005 \003(\01328.google.clou" + + "d.managedkafka.v1.ConnectCluster.LabelsEntryB\003\340A\001\022J\n" + + "\017capacity_config\030\006 \001(\0132,.goo" + + "gle.cloud.managedkafka.v1.CapacityConfigB\003\340A\002\022F\n" + "\005state\030\010" + " \001(\01622.google.cloud.managedkafka.v1.ConnectCluster.StateB\003\340A\003\022M\n" + "\006config\030\t" @@ -262,27 +287,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010CREATING\020\001\022\n\n" + "\006ACTIVE\020\002\022\014\n" + "\010DELETING\020\003:\234\001\352A\230\001\n" - + "*managedkafka.googleapis.com/ConnectCluster\022Iprojects/{project}/locations/{" - + "location}/connectClusters/{connect_cluster}*\017connectClusters2\016connectClusterB\021\n" + + "*managedkafka.googleapis.com/ConnectCluster\022Iprojects/{project}/locati" + + "ons/{location}/connectClusters/{connect_" + + "cluster}*\017connectClusters2\016connectClusterB\021\n" + "\017platform_config\"s\n" + "\024ConnectNetworkConfig\022\033\n" + "\016primary_subnet\030\003 \001(\tB\003\340A\002\022\037\n" + "\022additional_subnets\030\004 \003(\tB\003\340A\001\022\035\n" + "\020dns_domain_names\030\002 \003(\tB\003\340A\001\"g\n" + "\023ConnectAccessConfig\022P\n" - + "\017network_configs\030\001 \003(\01322.google.cloud.mana" - + "gedkafka.v1.ConnectNetworkConfigB\003\340A\002\"\253\001\n" + + "\017network_configs\030\001 \003(\01322.google.cloud" + + ".managedkafka.v1.ConnectNetworkConfigB\003\340A\002\"\253\001\n" + "\020ConnectGcpConfig\022M\n\r" - + "access_config\030\001 \001(" - + "\01321.google.cloud.managedkafka.v1.ConnectAccessConfigB\003\340A\002\022H\n" + + "access_config\030\001" + + " \001(\01321.google.cloud.managedkafka.v1.ConnectAccessConfigB\003\340A\002\022H\n" + "\014secret_paths\030\002 \003(\tB2\340A\001\372A,\n" + "*secretmanager.googleapis.com/SecretVersion\"\333\004\n" + "\tConnector\022Q\n" + "\023task_restart_policy\030\004" + " \001(\0132-.google.cloud.managedkafka.v1.TaskRetryPolicyB\003\340A\001H\000\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022J\n" - + "\007configs\030\002 \003(\01324.google.cloud." - + "managedkafka.v1.Connector.ConfigsEntryB\003\340A\001\022A\n" + + "\007configs\030\002 \003(\01324.google.c" + + "loud.managedkafka.v1.Connector.ConfigsEntryB\003\340A\001\022A\n" + "\005state\030\003" + " \001(\0162-.google.cloud.managedkafka.v1.Connector.StateB\003\340A\003\032.\n" + "\014ConfigsEntry\022\013\n" @@ -296,8 +322,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006FAILED\020\004\022\016\n\n" + "RESTARTING\020\005\022\013\n" + "\007STOPPED\020\006:\244\001\352A\240\001\n" - + "%managedkafka.googleapis.com/Connector\022`projects/{project}/locations/{location}/" - + "connectClusters/{connect_cluster}/connectors/{connector}*\n" + + "%managedkafka.googleapis.com/Connector\022`projects/{project}/locations/{locat" + + "ion}/connectClusters/{connect_cluster}/connectors/{connector}*\n" + "connectors2\tconnectorB\020\n" + "\016restart_policy\"\203\001\n" + "\017TaskRetryPolicy\0227\n" @@ -307,29 +333,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\"\270\002\n" + "\003Acl\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022@\n" - + "\013acl_entries\030\002 \003(\0132" - + "&.google.cloud.managedkafka.v1.AclEntryB\003\340A\002\022\021\n" + + "\013acl_entries\030\002" + + " \003(\0132&.google.cloud.managedkafka.v1.AclEntryB\003\340A\002\022\021\n" + "\004etag\030\003 \001(\tB\003\340A\001\022\032\n\r" + "resource_type\030\004 \001(\tB\003\340A\003\022\032\n\r" + "resource_name\030\005 \001(\tB\003\340A\003\022\031\n" + "\014pattern_type\030\006 \001(\tB\003\340A\003:v\352As\n" - + "\037managedkafka.googleapis.com/Acl\022Eprojects/{proj" - + "ect}/locations/{location}/clusters/{cluster}/acls/{acl}*\004acls2\003acl\"k\n" + + "\037managedkafka.googleapis.com/Acl\022Eprojects/" + + "{project}/locations/{location}/clusters/{cluster}/acls/{acl}*\004acls2\003acl\"k\n" + "\010AclEntry\022\026\n" + "\tprincipal\030\004 \001(\tB\003\340A\002\022\034\n" + "\017permission_type\030\005 \001(\tB\003\340A\002\022\026\n" + "\toperation\030\006 \001(\tB\003\340A\002\022\021\n" + "\004host\030\007 \001(\tB\003\340A\002B\242\004\n" - + " com.google.cloud.managedkafka.v1B\016ResourcesProtoP\001ZDcloud.go" - + "ogle.com/go/managedkafka/apiv1/managedka" - + "fkapb;managedkafkapb\252\002\034Google.Cloud.Mana" - + "gedKafka.V1\312\002\034Google\\Cloud\\ManagedKafka\\V1\352\002\037Google::Cloud::ManagedKafka::V1\352Ax\n" - + "!cloudkms.googleapis.com/CryptoKey\022Sprojects/{project}/locations/{location}/keyR" - + "ings/{key_ring}/cryptoKeys/{crypto_key}\352Ak\n" - + "*secretmanager.googleapis.com/SecretV" - + "ersion\022=projects/{project}/secrets/{secret}/versions/{secret_version}\352A\\\n" - + "\037privateca.googleapis.com/CaPool\0229projects/{pro" - + "ject}/locations/{location}/caPools/{ca_pool}b\006proto3" + + " com.google.cloud.managedkafka.v1B\016ResourcesProtoP\001ZDclo" + + "ud.google.com/go/managedkafka/apiv1/mana" + + "gedkafkapb;managedkafkapb\252\002\034Google.Cloud" + + ".ManagedKafka.V1\312\002\034Google\\Cloud\\ManagedK" + + "afka\\V1\352\002\037Google::Cloud::ManagedKafka::V1\352Ax\n" + + "!cloudkms.googleapis.com/CryptoKey\022Sprojects/{project}/locations/{location}" + + "/keyRings/{key_ring}/cryptoKeys/{crypto_key}\352Ak\n" + + "*secretmanager.googleapis.com/Se" + + "cretVersion\022=projects/{project}/secrets/{secret}/versions/{secret_version}\352A\\\n" + + "\037privateca.googleapis.com/CaPool\0229projects" + + "/{project}/locations/{location}/caPools/{ca_pool}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -356,6 +383,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "State", "SatisfiesPzi", "SatisfiesPzs", + "TlsConfig", "PlatformConfig", }); internal_static_google_cloud_managedkafka_v1_Cluster_LabelsEntry_descriptor = @@ -406,8 +434,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "AccessConfig", "KmsKey", }); - internal_static_google_cloud_managedkafka_v1_Topic_descriptor = + internal_static_google_cloud_managedkafka_v1_TlsConfig_descriptor = getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_managedkafka_v1_TlsConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_managedkafka_v1_TlsConfig_descriptor, + new java.lang.String[] { + "TrustConfig", "SslPrincipalMappingRules", + }); + internal_static_google_cloud_managedkafka_v1_TrustConfig_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_managedkafka_v1_TrustConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_managedkafka_v1_TrustConfig_descriptor, + new java.lang.String[] { + "CasConfigs", + }); + internal_static_google_cloud_managedkafka_v1_TrustConfig_CertificateAuthorityServiceConfig_descriptor = + internal_static_google_cloud_managedkafka_v1_TrustConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_managedkafka_v1_TrustConfig_CertificateAuthorityServiceConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_managedkafka_v1_TrustConfig_CertificateAuthorityServiceConfig_descriptor, + new java.lang.String[] { + "CaPool", + }); + internal_static_google_cloud_managedkafka_v1_Topic_descriptor = + getDescriptor().getMessageTypes().get(8); internal_static_google_cloud_managedkafka_v1_Topic_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_managedkafka_v1_Topic_descriptor, @@ -423,7 +475,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_managedkafka_v1_ConsumerTopicMetadata_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(9); internal_static_google_cloud_managedkafka_v1_ConsumerTopicMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_managedkafka_v1_ConsumerTopicMetadata_descriptor, @@ -441,7 +493,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_managedkafka_v1_ConsumerPartitionMetadata_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_managedkafka_v1_ConsumerPartitionMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_managedkafka_v1_ConsumerPartitionMetadata_descriptor, @@ -449,7 +501,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Offset", "Metadata", }); internal_static_google_cloud_managedkafka_v1_ConsumerGroup_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_managedkafka_v1_ConsumerGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_managedkafka_v1_ConsumerGroup_descriptor, @@ -467,7 +519,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_managedkafka_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_managedkafka_v1_OperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_managedkafka_v1_OperationMetadata_descriptor, @@ -481,7 +533,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ApiVersion", }); internal_static_google_cloud_managedkafka_v1_ConnectCluster_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_managedkafka_v1_ConnectCluster_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_managedkafka_v1_ConnectCluster_descriptor, @@ -518,7 +570,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_managedkafka_v1_ConnectNetworkConfig_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_managedkafka_v1_ConnectNetworkConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_managedkafka_v1_ConnectNetworkConfig_descriptor, @@ -526,7 +578,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PrimarySubnet", "AdditionalSubnets", "DnsDomainNames", }); internal_static_google_cloud_managedkafka_v1_ConnectAccessConfig_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_managedkafka_v1_ConnectAccessConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_managedkafka_v1_ConnectAccessConfig_descriptor, @@ -534,7 +586,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkConfigs", }); internal_static_google_cloud_managedkafka_v1_ConnectGcpConfig_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_managedkafka_v1_ConnectGcpConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_managedkafka_v1_ConnectGcpConfig_descriptor, @@ -542,7 +594,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AccessConfig", "SecretPaths", }); internal_static_google_cloud_managedkafka_v1_Connector_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_managedkafka_v1_Connector_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_managedkafka_v1_Connector_descriptor, @@ -558,7 +610,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_managedkafka_v1_TaskRetryPolicy_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_managedkafka_v1_TaskRetryPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_managedkafka_v1_TaskRetryPolicy_descriptor, @@ -566,7 +618,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MinimumBackoff", "MaximumBackoff", }); internal_static_google_cloud_managedkafka_v1_Acl_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_managedkafka_v1_Acl_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_managedkafka_v1_Acl_descriptor, @@ -574,7 +626,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "AclEntries", "Etag", "ResourceType", "ResourceName", "PatternType", }); internal_static_google_cloud_managedkafka_v1_AclEntry_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_managedkafka_v1_AclEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_managedkafka_v1_AclEntry_descriptor, diff --git a/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/TlsConfig.java b/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/TlsConfig.java new file mode 100644 index 000000000000..15edf33b84a4 --- /dev/null +++ b/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/TlsConfig.java @@ -0,0 +1,1024 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/managedkafka/v1/resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.managedkafka.v1; + +/** + * + * + *
+ * The TLS configuration for the Kafka cluster.
+ * 
+ * + * Protobuf type {@code google.cloud.managedkafka.v1.TlsConfig} + */ +public final class TlsConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.managedkafka.v1.TlsConfig) + TlsConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use TlsConfig.newBuilder() to construct. + private TlsConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TlsConfig() { + sslPrincipalMappingRules_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TlsConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.managedkafka.v1.ResourcesProto + .internal_static_google_cloud_managedkafka_v1_TlsConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.managedkafka.v1.ResourcesProto + .internal_static_google_cloud_managedkafka_v1_TlsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.managedkafka.v1.TlsConfig.class, + com.google.cloud.managedkafka.v1.TlsConfig.Builder.class); + } + + private int bitField0_; + public static final int TRUST_CONFIG_FIELD_NUMBER = 1; + private com.google.cloud.managedkafka.v1.TrustConfig trustConfig_; + + /** + * + * + *
+   * Optional. The configuration of the broker truststore. If specified, clients
+   * can use mTLS for authentication.
+   * 
+ * + * + * .google.cloud.managedkafka.v1.TrustConfig trust_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the trustConfig field is set. + */ + @java.lang.Override + public boolean hasTrustConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. The configuration of the broker truststore. If specified, clients
+   * can use mTLS for authentication.
+   * 
+ * + * + * .google.cloud.managedkafka.v1.TrustConfig trust_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The trustConfig. + */ + @java.lang.Override + public com.google.cloud.managedkafka.v1.TrustConfig getTrustConfig() { + return trustConfig_ == null + ? com.google.cloud.managedkafka.v1.TrustConfig.getDefaultInstance() + : trustConfig_; + } + + /** + * + * + *
+   * Optional. The configuration of the broker truststore. If specified, clients
+   * can use mTLS for authentication.
+   * 
+ * + * + * .google.cloud.managedkafka.v1.TrustConfig trust_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.managedkafka.v1.TrustConfigOrBuilder getTrustConfigOrBuilder() { + return trustConfig_ == null + ? com.google.cloud.managedkafka.v1.TrustConfig.getDefaultInstance() + : trustConfig_; + } + + public static final int SSL_PRINCIPAL_MAPPING_RULES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object sslPrincipalMappingRules_ = ""; + + /** + * + * + *
+   * Optional. A list of rules for mapping from SSL principal names to
+   * short names. These are applied in order by Kafka.
+   * Refer to the Apache Kafka documentation for `ssl.principal.mapping.rules`
+   * for the precise formatting details and syntax.
+   * Example: "RULE:^CN=(.*?),OU=ServiceUsers.*$/$1@example.com/,DEFAULT"
+   *
+   * This is a static Kafka broker configuration. Setting or modifying this
+   * field will trigger a rolling restart of the Kafka brokers to apply
+   * the change. An empty string means no rules are applied (Kafka default).
+   * 
+ * + * string ssl_principal_mapping_rules = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sslPrincipalMappingRules. + */ + @java.lang.Override + public java.lang.String getSslPrincipalMappingRules() { + java.lang.Object ref = sslPrincipalMappingRules_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sslPrincipalMappingRules_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. A list of rules for mapping from SSL principal names to
+   * short names. These are applied in order by Kafka.
+   * Refer to the Apache Kafka documentation for `ssl.principal.mapping.rules`
+   * for the precise formatting details and syntax.
+   * Example: "RULE:^CN=(.*?),OU=ServiceUsers.*$/$1@example.com/,DEFAULT"
+   *
+   * This is a static Kafka broker configuration. Setting or modifying this
+   * field will trigger a rolling restart of the Kafka brokers to apply
+   * the change. An empty string means no rules are applied (Kafka default).
+   * 
+ * + * string ssl_principal_mapping_rules = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sslPrincipalMappingRules. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSslPrincipalMappingRulesBytes() { + java.lang.Object ref = sslPrincipalMappingRules_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sslPrincipalMappingRules_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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, getTrustConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sslPrincipalMappingRules_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sslPrincipalMappingRules_); + } + 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, getTrustConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sslPrincipalMappingRules_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sslPrincipalMappingRules_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.managedkafka.v1.TlsConfig)) { + return super.equals(obj); + } + com.google.cloud.managedkafka.v1.TlsConfig other = + (com.google.cloud.managedkafka.v1.TlsConfig) obj; + + if (hasTrustConfig() != other.hasTrustConfig()) return false; + if (hasTrustConfig()) { + if (!getTrustConfig().equals(other.getTrustConfig())) return false; + } + if (!getSslPrincipalMappingRules().equals(other.getSslPrincipalMappingRules())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTrustConfig()) { + hash = (37 * hash) + TRUST_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getTrustConfig().hashCode(); + } + hash = (37 * hash) + SSL_PRINCIPAL_MAPPING_RULES_FIELD_NUMBER; + hash = (53 * hash) + getSslPrincipalMappingRules().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.managedkafka.v1.TlsConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.managedkafka.v1.TlsConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.managedkafka.v1.TlsConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.managedkafka.v1.TlsConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.managedkafka.v1.TlsConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.managedkafka.v1.TlsConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.managedkafka.v1.TlsConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.managedkafka.v1.TlsConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.managedkafka.v1.TlsConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.managedkafka.v1.TlsConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.managedkafka.v1.TlsConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.managedkafka.v1.TlsConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.managedkafka.v1.TlsConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The TLS configuration for the Kafka cluster.
+   * 
+ * + * Protobuf type {@code google.cloud.managedkafka.v1.TlsConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.managedkafka.v1.TlsConfig) + com.google.cloud.managedkafka.v1.TlsConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.managedkafka.v1.ResourcesProto + .internal_static_google_cloud_managedkafka_v1_TlsConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.managedkafka.v1.ResourcesProto + .internal_static_google_cloud_managedkafka_v1_TlsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.managedkafka.v1.TlsConfig.class, + com.google.cloud.managedkafka.v1.TlsConfig.Builder.class); + } + + // Construct using com.google.cloud.managedkafka.v1.TlsConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTrustConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + trustConfig_ = null; + if (trustConfigBuilder_ != null) { + trustConfigBuilder_.dispose(); + trustConfigBuilder_ = null; + } + sslPrincipalMappingRules_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.managedkafka.v1.ResourcesProto + .internal_static_google_cloud_managedkafka_v1_TlsConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.managedkafka.v1.TlsConfig getDefaultInstanceForType() { + return com.google.cloud.managedkafka.v1.TlsConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.managedkafka.v1.TlsConfig build() { + com.google.cloud.managedkafka.v1.TlsConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.managedkafka.v1.TlsConfig buildPartial() { + com.google.cloud.managedkafka.v1.TlsConfig result = + new com.google.cloud.managedkafka.v1.TlsConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.managedkafka.v1.TlsConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.trustConfig_ = + trustConfigBuilder_ == null ? trustConfig_ : trustConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sslPrincipalMappingRules_ = sslPrincipalMappingRules_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.managedkafka.v1.TlsConfig) { + return mergeFrom((com.google.cloud.managedkafka.v1.TlsConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.managedkafka.v1.TlsConfig other) { + if (other == com.google.cloud.managedkafka.v1.TlsConfig.getDefaultInstance()) return this; + if (other.hasTrustConfig()) { + mergeTrustConfig(other.getTrustConfig()); + } + if (!other.getSslPrincipalMappingRules().isEmpty()) { + sslPrincipalMappingRules_ = other.sslPrincipalMappingRules_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getTrustConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + sslPrincipalMappingRules_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.managedkafka.v1.TrustConfig trustConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.managedkafka.v1.TrustConfig, + com.google.cloud.managedkafka.v1.TrustConfig.Builder, + com.google.cloud.managedkafka.v1.TrustConfigOrBuilder> + trustConfigBuilder_; + + /** + * + * + *
+     * Optional. The configuration of the broker truststore. If specified, clients
+     * can use mTLS for authentication.
+     * 
+ * + * + * .google.cloud.managedkafka.v1.TrustConfig trust_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the trustConfig field is set. + */ + public boolean hasTrustConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. The configuration of the broker truststore. If specified, clients
+     * can use mTLS for authentication.
+     * 
+ * + * + * .google.cloud.managedkafka.v1.TrustConfig trust_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The trustConfig. + */ + public com.google.cloud.managedkafka.v1.TrustConfig getTrustConfig() { + if (trustConfigBuilder_ == null) { + return trustConfig_ == null + ? com.google.cloud.managedkafka.v1.TrustConfig.getDefaultInstance() + : trustConfig_; + } else { + return trustConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The configuration of the broker truststore. If specified, clients
+     * can use mTLS for authentication.
+     * 
+ * + * + * .google.cloud.managedkafka.v1.TrustConfig trust_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTrustConfig(com.google.cloud.managedkafka.v1.TrustConfig value) { + if (trustConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + trustConfig_ = value; + } else { + trustConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The configuration of the broker truststore. If specified, clients
+     * can use mTLS for authentication.
+     * 
+ * + * + * .google.cloud.managedkafka.v1.TrustConfig trust_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTrustConfig( + com.google.cloud.managedkafka.v1.TrustConfig.Builder builderForValue) { + if (trustConfigBuilder_ == null) { + trustConfig_ = builderForValue.build(); + } else { + trustConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The configuration of the broker truststore. If specified, clients
+     * can use mTLS for authentication.
+     * 
+ * + * + * .google.cloud.managedkafka.v1.TrustConfig trust_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeTrustConfig(com.google.cloud.managedkafka.v1.TrustConfig value) { + if (trustConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && trustConfig_ != null + && trustConfig_ != com.google.cloud.managedkafka.v1.TrustConfig.getDefaultInstance()) { + getTrustConfigBuilder().mergeFrom(value); + } else { + trustConfig_ = value; + } + } else { + trustConfigBuilder_.mergeFrom(value); + } + if (trustConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The configuration of the broker truststore. If specified, clients
+     * can use mTLS for authentication.
+     * 
+ * + * + * .google.cloud.managedkafka.v1.TrustConfig trust_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearTrustConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + trustConfig_ = null; + if (trustConfigBuilder_ != null) { + trustConfigBuilder_.dispose(); + trustConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The configuration of the broker truststore. If specified, clients
+     * can use mTLS for authentication.
+     * 
+ * + * + * .google.cloud.managedkafka.v1.TrustConfig trust_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.managedkafka.v1.TrustConfig.Builder getTrustConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getTrustConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The configuration of the broker truststore. If specified, clients
+     * can use mTLS for authentication.
+     * 
+ * + * + * .google.cloud.managedkafka.v1.TrustConfig trust_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.managedkafka.v1.TrustConfigOrBuilder getTrustConfigOrBuilder() { + if (trustConfigBuilder_ != null) { + return trustConfigBuilder_.getMessageOrBuilder(); + } else { + return trustConfig_ == null + ? com.google.cloud.managedkafka.v1.TrustConfig.getDefaultInstance() + : trustConfig_; + } + } + + /** + * + * + *
+     * Optional. The configuration of the broker truststore. If specified, clients
+     * can use mTLS for authentication.
+     * 
+ * + * + * .google.cloud.managedkafka.v1.TrustConfig trust_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.managedkafka.v1.TrustConfig, + com.google.cloud.managedkafka.v1.TrustConfig.Builder, + com.google.cloud.managedkafka.v1.TrustConfigOrBuilder> + getTrustConfigFieldBuilder() { + if (trustConfigBuilder_ == null) { + trustConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.managedkafka.v1.TrustConfig, + com.google.cloud.managedkafka.v1.TrustConfig.Builder, + com.google.cloud.managedkafka.v1.TrustConfigOrBuilder>( + getTrustConfig(), getParentForChildren(), isClean()); + trustConfig_ = null; + } + return trustConfigBuilder_; + } + + private java.lang.Object sslPrincipalMappingRules_ = ""; + + /** + * + * + *
+     * Optional. A list of rules for mapping from SSL principal names to
+     * short names. These are applied in order by Kafka.
+     * Refer to the Apache Kafka documentation for `ssl.principal.mapping.rules`
+     * for the precise formatting details and syntax.
+     * Example: "RULE:^CN=(.*?),OU=ServiceUsers.*$/$1@example.com/,DEFAULT"
+     *
+     * This is a static Kafka broker configuration. Setting or modifying this
+     * field will trigger a rolling restart of the Kafka brokers to apply
+     * the change. An empty string means no rules are applied (Kafka default).
+     * 
+ * + * string ssl_principal_mapping_rules = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sslPrincipalMappingRules. + */ + public java.lang.String getSslPrincipalMappingRules() { + java.lang.Object ref = sslPrincipalMappingRules_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sslPrincipalMappingRules_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. A list of rules for mapping from SSL principal names to
+     * short names. These are applied in order by Kafka.
+     * Refer to the Apache Kafka documentation for `ssl.principal.mapping.rules`
+     * for the precise formatting details and syntax.
+     * Example: "RULE:^CN=(.*?),OU=ServiceUsers.*$/$1@example.com/,DEFAULT"
+     *
+     * This is a static Kafka broker configuration. Setting or modifying this
+     * field will trigger a rolling restart of the Kafka brokers to apply
+     * the change. An empty string means no rules are applied (Kafka default).
+     * 
+ * + * string ssl_principal_mapping_rules = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for sslPrincipalMappingRules. + */ + public com.google.protobuf.ByteString getSslPrincipalMappingRulesBytes() { + java.lang.Object ref = sslPrincipalMappingRules_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sslPrincipalMappingRules_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. A list of rules for mapping from SSL principal names to
+     * short names. These are applied in order by Kafka.
+     * Refer to the Apache Kafka documentation for `ssl.principal.mapping.rules`
+     * for the precise formatting details and syntax.
+     * Example: "RULE:^CN=(.*?),OU=ServiceUsers.*$/$1@example.com/,DEFAULT"
+     *
+     * This is a static Kafka broker configuration. Setting or modifying this
+     * field will trigger a rolling restart of the Kafka brokers to apply
+     * the change. An empty string means no rules are applied (Kafka default).
+     * 
+ * + * string ssl_principal_mapping_rules = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The sslPrincipalMappingRules to set. + * @return This builder for chaining. + */ + public Builder setSslPrincipalMappingRules(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sslPrincipalMappingRules_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of rules for mapping from SSL principal names to
+     * short names. These are applied in order by Kafka.
+     * Refer to the Apache Kafka documentation for `ssl.principal.mapping.rules`
+     * for the precise formatting details and syntax.
+     * Example: "RULE:^CN=(.*?),OU=ServiceUsers.*$/$1@example.com/,DEFAULT"
+     *
+     * This is a static Kafka broker configuration. Setting or modifying this
+     * field will trigger a rolling restart of the Kafka brokers to apply
+     * the change. An empty string means no rules are applied (Kafka default).
+     * 
+ * + * string ssl_principal_mapping_rules = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearSslPrincipalMappingRules() { + sslPrincipalMappingRules_ = getDefaultInstance().getSslPrincipalMappingRules(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A list of rules for mapping from SSL principal names to
+     * short names. These are applied in order by Kafka.
+     * Refer to the Apache Kafka documentation for `ssl.principal.mapping.rules`
+     * for the precise formatting details and syntax.
+     * Example: "RULE:^CN=(.*?),OU=ServiceUsers.*$/$1@example.com/,DEFAULT"
+     *
+     * This is a static Kafka broker configuration. Setting or modifying this
+     * field will trigger a rolling restart of the Kafka brokers to apply
+     * the change. An empty string means no rules are applied (Kafka default).
+     * 
+ * + * string ssl_principal_mapping_rules = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes for sslPrincipalMappingRules to set. + * @return This builder for chaining. + */ + public Builder setSslPrincipalMappingRulesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sslPrincipalMappingRules_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.managedkafka.v1.TlsConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.managedkafka.v1.TlsConfig) + private static final com.google.cloud.managedkafka.v1.TlsConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.managedkafka.v1.TlsConfig(); + } + + public static com.google.cloud.managedkafka.v1.TlsConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TlsConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.managedkafka.v1.TlsConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/TlsConfigOrBuilder.java b/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/TlsConfigOrBuilder.java new file mode 100644 index 000000000000..f064f0a76f6e --- /dev/null +++ b/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/TlsConfigOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/managedkafka/v1/resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.managedkafka.v1; + +public interface TlsConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.managedkafka.v1.TlsConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The configuration of the broker truststore. If specified, clients
+   * can use mTLS for authentication.
+   * 
+ * + * + * .google.cloud.managedkafka.v1.TrustConfig trust_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the trustConfig field is set. + */ + boolean hasTrustConfig(); + + /** + * + * + *
+   * Optional. The configuration of the broker truststore. If specified, clients
+   * can use mTLS for authentication.
+   * 
+ * + * + * .google.cloud.managedkafka.v1.TrustConfig trust_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The trustConfig. + */ + com.google.cloud.managedkafka.v1.TrustConfig getTrustConfig(); + + /** + * + * + *
+   * Optional. The configuration of the broker truststore. If specified, clients
+   * can use mTLS for authentication.
+   * 
+ * + * + * .google.cloud.managedkafka.v1.TrustConfig trust_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.managedkafka.v1.TrustConfigOrBuilder getTrustConfigOrBuilder(); + + /** + * + * + *
+   * Optional. A list of rules for mapping from SSL principal names to
+   * short names. These are applied in order by Kafka.
+   * Refer to the Apache Kafka documentation for `ssl.principal.mapping.rules`
+   * for the precise formatting details and syntax.
+   * Example: "RULE:^CN=(.*?),OU=ServiceUsers.*$/$1@example.com/,DEFAULT"
+   *
+   * This is a static Kafka broker configuration. Setting or modifying this
+   * field will trigger a rolling restart of the Kafka brokers to apply
+   * the change. An empty string means no rules are applied (Kafka default).
+   * 
+ * + * string ssl_principal_mapping_rules = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sslPrincipalMappingRules. + */ + java.lang.String getSslPrincipalMappingRules(); + + /** + * + * + *
+   * Optional. A list of rules for mapping from SSL principal names to
+   * short names. These are applied in order by Kafka.
+   * Refer to the Apache Kafka documentation for `ssl.principal.mapping.rules`
+   * for the precise formatting details and syntax.
+   * Example: "RULE:^CN=(.*?),OU=ServiceUsers.*$/$1@example.com/,DEFAULT"
+   *
+   * This is a static Kafka broker configuration. Setting or modifying this
+   * field will trigger a rolling restart of the Kafka brokers to apply
+   * the change. An empty string means no rules are applied (Kafka default).
+   * 
+ * + * string ssl_principal_mapping_rules = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sslPrincipalMappingRules. + */ + com.google.protobuf.ByteString getSslPrincipalMappingRulesBytes(); +} diff --git a/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/TrustConfig.java b/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/TrustConfig.java new file mode 100644 index 000000000000..c5dc41072598 --- /dev/null +++ b/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/TrustConfig.java @@ -0,0 +1,1815 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/managedkafka/v1/resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.managedkafka.v1; + +/** + * + * + *
+ * Sources of CA certificates to install in the broker's truststore.
+ * 
+ * + * Protobuf type {@code google.cloud.managedkafka.v1.TrustConfig} + */ +public final class TrustConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.managedkafka.v1.TrustConfig) + TrustConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use TrustConfig.newBuilder() to construct. + private TrustConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrustConfig() { + casConfigs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrustConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.managedkafka.v1.ResourcesProto + .internal_static_google_cloud_managedkafka_v1_TrustConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.managedkafka.v1.ResourcesProto + .internal_static_google_cloud_managedkafka_v1_TrustConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.managedkafka.v1.TrustConfig.class, + com.google.cloud.managedkafka.v1.TrustConfig.Builder.class); + } + + public interface CertificateAuthorityServiceConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. The name of the CA pool to pull CA certificates from.
+     * Structured like:
+     * projects/{project}/locations/{location}/caPools/{ca_pool}.
+     * The CA pool does not need to be in the same project or location as the
+     * Kafka cluster.
+     * 
+ * + * + * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The caPool. + */ + java.lang.String getCaPool(); + + /** + * + * + *
+     * Required. The name of the CA pool to pull CA certificates from.
+     * Structured like:
+     * projects/{project}/locations/{location}/caPools/{ca_pool}.
+     * The CA pool does not need to be in the same project or location as the
+     * Kafka cluster.
+     * 
+ * + * + * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for caPool. + */ + com.google.protobuf.ByteString getCaPoolBytes(); + } + + /** + * + * + *
+   * A configuration for the Google Certificate Authority Service.
+   * 
+ * + * Protobuf type {@code + * google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig} + */ + public static final class CertificateAuthorityServiceConfig + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig) + CertificateAuthorityServiceConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CertificateAuthorityServiceConfig.newBuilder() to construct. + private CertificateAuthorityServiceConfig( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CertificateAuthorityServiceConfig() { + caPool_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CertificateAuthorityServiceConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.managedkafka.v1.ResourcesProto + .internal_static_google_cloud_managedkafka_v1_TrustConfig_CertificateAuthorityServiceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.managedkafka.v1.ResourcesProto + .internal_static_google_cloud_managedkafka_v1_TrustConfig_CertificateAuthorityServiceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig.class, + com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig.Builder + .class); + } + + public static final int CA_POOL_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object caPool_ = ""; + + /** + * + * + *
+     * Required. The name of the CA pool to pull CA certificates from.
+     * Structured like:
+     * projects/{project}/locations/{location}/caPools/{ca_pool}.
+     * The CA pool does not need to be in the same project or location as the
+     * Kafka cluster.
+     * 
+ * + * + * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The caPool. + */ + @java.lang.Override + public java.lang.String getCaPool() { + java.lang.Object ref = caPool_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + caPool_ = s; + return s; + } + } + + /** + * + * + *
+     * Required. The name of the CA pool to pull CA certificates from.
+     * Structured like:
+     * projects/{project}/locations/{location}/caPools/{ca_pool}.
+     * The CA pool does not need to be in the same project or location as the
+     * Kafka cluster.
+     * 
+ * + * + * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for caPool. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCaPoolBytes() { + java.lang.Object ref = caPool_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + caPool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(caPool_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, caPool_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(caPool_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, caPool_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig)) { + return super.equals(obj); + } + com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig other = + (com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig) obj; + + if (!getCaPool().equals(other.getCaPool())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CA_POOL_FIELD_NUMBER; + hash = (53 * hash) + getCaPool().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * A configuration for the Google Certificate Authority Service.
+     * 
+ * + * Protobuf type {@code + * google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig) + com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.managedkafka.v1.ResourcesProto + .internal_static_google_cloud_managedkafka_v1_TrustConfig_CertificateAuthorityServiceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.managedkafka.v1.ResourcesProto + .internal_static_google_cloud_managedkafka_v1_TrustConfig_CertificateAuthorityServiceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig + .class, + com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig + .Builder.class); + } + + // Construct using + // com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + caPool_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.managedkafka.v1.ResourcesProto + .internal_static_google_cloud_managedkafka_v1_TrustConfig_CertificateAuthorityServiceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig + getDefaultInstanceForType() { + return com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig + build() { + com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig + buildPartial() { + com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig result = + new com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.caPool_ = caPool_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig) { + return mergeFrom( + (com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig other) { + if (other + == com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig + .getDefaultInstance()) return this; + if (!other.getCaPool().isEmpty()) { + caPool_ = other.caPool_; + 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: + { + caPool_ = 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 caPool_ = ""; + + /** + * + * + *
+       * Required. The name of the CA pool to pull CA certificates from.
+       * Structured like:
+       * projects/{project}/locations/{location}/caPools/{ca_pool}.
+       * The CA pool does not need to be in the same project or location as the
+       * Kafka cluster.
+       * 
+ * + * + * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The caPool. + */ + public java.lang.String getCaPool() { + java.lang.Object ref = caPool_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + caPool_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Required. The name of the CA pool to pull CA certificates from.
+       * Structured like:
+       * projects/{project}/locations/{location}/caPools/{ca_pool}.
+       * The CA pool does not need to be in the same project or location as the
+       * Kafka cluster.
+       * 
+ * + * + * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for caPool. + */ + public com.google.protobuf.ByteString getCaPoolBytes() { + java.lang.Object ref = caPool_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + caPool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Required. The name of the CA pool to pull CA certificates from.
+       * Structured like:
+       * projects/{project}/locations/{location}/caPools/{ca_pool}.
+       * The CA pool does not need to be in the same project or location as the
+       * Kafka cluster.
+       * 
+ * + * + * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The caPool to set. + * @return This builder for chaining. + */ + public Builder setCaPool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + caPool_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. The name of the CA pool to pull CA certificates from.
+       * Structured like:
+       * projects/{project}/locations/{location}/caPools/{ca_pool}.
+       * The CA pool does not need to be in the same project or location as the
+       * Kafka cluster.
+       * 
+ * + * + * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCaPool() { + caPool_ = getDefaultInstance().getCaPool(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. The name of the CA pool to pull CA certificates from.
+       * Structured like:
+       * projects/{project}/locations/{location}/caPools/{ca_pool}.
+       * The CA pool does not need to be in the same project or location as the
+       * Kafka cluster.
+       * 
+ * + * + * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for caPool to set. + * @return This builder for chaining. + */ + public Builder setCaPoolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + caPool_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig) + private static final com.google.cloud.managedkafka.v1.TrustConfig + .CertificateAuthorityServiceConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig(); + } + + public static com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateAuthorityServiceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int CAS_CONFIGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig> + casConfigs_; + + /** + * + * + *
+   * Optional. Configuration for the Google Certificate Authority Service.
+   * Maximum 10.
+   * 
+ * + * + * repeated .google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig cas_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig> + getCasConfigsList() { + return casConfigs_; + } + + /** + * + * + *
+   * Optional. Configuration for the Google Certificate Authority Service.
+   * Maximum 10.
+   * 
+ * + * + * repeated .google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig cas_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.managedkafka.v1.TrustConfig + .CertificateAuthorityServiceConfigOrBuilder> + getCasConfigsOrBuilderList() { + return casConfigs_; + } + + /** + * + * + *
+   * Optional. Configuration for the Google Certificate Authority Service.
+   * Maximum 10.
+   * 
+ * + * + * repeated .google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig cas_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getCasConfigsCount() { + return casConfigs_.size(); + } + + /** + * + * + *
+   * Optional. Configuration for the Google Certificate Authority Service.
+   * Maximum 10.
+   * 
+ * + * + * repeated .google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig cas_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig + getCasConfigs(int index) { + return casConfigs_.get(index); + } + + /** + * + * + *
+   * Optional. Configuration for the Google Certificate Authority Service.
+   * Maximum 10.
+   * 
+ * + * + * repeated .google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig cas_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfigOrBuilder + getCasConfigsOrBuilder(int index) { + return casConfigs_.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 < casConfigs_.size(); i++) { + output.writeMessage(1, casConfigs_.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 < casConfigs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, casConfigs_.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.cloud.managedkafka.v1.TrustConfig)) { + return super.equals(obj); + } + com.google.cloud.managedkafka.v1.TrustConfig other = + (com.google.cloud.managedkafka.v1.TrustConfig) obj; + + if (!getCasConfigsList().equals(other.getCasConfigsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getCasConfigsCount() > 0) { + hash = (37 * hash) + CAS_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getCasConfigsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.managedkafka.v1.TrustConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.managedkafka.v1.TrustConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.managedkafka.v1.TrustConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.managedkafka.v1.TrustConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.managedkafka.v1.TrustConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.managedkafka.v1.TrustConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.managedkafka.v1.TrustConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.managedkafka.v1.TrustConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.managedkafka.v1.TrustConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.managedkafka.v1.TrustConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.managedkafka.v1.TrustConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.managedkafka.v1.TrustConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.managedkafka.v1.TrustConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Sources of CA certificates to install in the broker's truststore.
+   * 
+ * + * Protobuf type {@code google.cloud.managedkafka.v1.TrustConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.managedkafka.v1.TrustConfig) + com.google.cloud.managedkafka.v1.TrustConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.managedkafka.v1.ResourcesProto + .internal_static_google_cloud_managedkafka_v1_TrustConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.managedkafka.v1.ResourcesProto + .internal_static_google_cloud_managedkafka_v1_TrustConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.managedkafka.v1.TrustConfig.class, + com.google.cloud.managedkafka.v1.TrustConfig.Builder.class); + } + + // Construct using com.google.cloud.managedkafka.v1.TrustConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (casConfigsBuilder_ == null) { + casConfigs_ = java.util.Collections.emptyList(); + } else { + casConfigs_ = null; + casConfigsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.managedkafka.v1.ResourcesProto + .internal_static_google_cloud_managedkafka_v1_TrustConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.managedkafka.v1.TrustConfig getDefaultInstanceForType() { + return com.google.cloud.managedkafka.v1.TrustConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.managedkafka.v1.TrustConfig build() { + com.google.cloud.managedkafka.v1.TrustConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.managedkafka.v1.TrustConfig buildPartial() { + com.google.cloud.managedkafka.v1.TrustConfig result = + new com.google.cloud.managedkafka.v1.TrustConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.managedkafka.v1.TrustConfig result) { + if (casConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + casConfigs_ = java.util.Collections.unmodifiableList(casConfigs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.casConfigs_ = casConfigs_; + } else { + result.casConfigs_ = casConfigsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.managedkafka.v1.TrustConfig result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.managedkafka.v1.TrustConfig) { + return mergeFrom((com.google.cloud.managedkafka.v1.TrustConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.managedkafka.v1.TrustConfig other) { + if (other == com.google.cloud.managedkafka.v1.TrustConfig.getDefaultInstance()) return this; + if (casConfigsBuilder_ == null) { + if (!other.casConfigs_.isEmpty()) { + if (casConfigs_.isEmpty()) { + casConfigs_ = other.casConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCasConfigsIsMutable(); + casConfigs_.addAll(other.casConfigs_); + } + onChanged(); + } + } else { + if (!other.casConfigs_.isEmpty()) { + if (casConfigsBuilder_.isEmpty()) { + casConfigsBuilder_.dispose(); + casConfigsBuilder_ = null; + casConfigs_ = other.casConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + casConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCasConfigsFieldBuilder() + : null; + } else { + casConfigsBuilder_.addAllMessages(other.casConfigs_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig m = + input.readMessage( + com.google.cloud.managedkafka.v1.TrustConfig + .CertificateAuthorityServiceConfig.parser(), + extensionRegistry); + if (casConfigsBuilder_ == null) { + ensureCasConfigsIsMutable(); + casConfigs_.add(m); + } else { + casConfigsBuilder_.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< + com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig> + casConfigs_ = java.util.Collections.emptyList(); + + private void ensureCasConfigsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + casConfigs_ = + new java.util.ArrayList< + com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig>( + casConfigs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig, + com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig.Builder, + com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfigOrBuilder> + casConfigsBuilder_; + + /** + * + * + *
+     * Optional. Configuration for the Google Certificate Authority Service.
+     * Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig cas_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig> + getCasConfigsList() { + if (casConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(casConfigs_); + } else { + return casConfigsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. Configuration for the Google Certificate Authority Service.
+     * Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig cas_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getCasConfigsCount() { + if (casConfigsBuilder_ == null) { + return casConfigs_.size(); + } else { + return casConfigsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. Configuration for the Google Certificate Authority Service.
+     * Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig cas_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig + getCasConfigs(int index) { + if (casConfigsBuilder_ == null) { + return casConfigs_.get(index); + } else { + return casConfigsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. Configuration for the Google Certificate Authority Service.
+     * Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig cas_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCasConfigs( + int index, + com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig value) { + if (casConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCasConfigsIsMutable(); + casConfigs_.set(index, value); + onChanged(); + } else { + casConfigsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration for the Google Certificate Authority Service.
+     * Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig cas_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCasConfigs( + int index, + com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig.Builder + builderForValue) { + if (casConfigsBuilder_ == null) { + ensureCasConfigsIsMutable(); + casConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + casConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration for the Google Certificate Authority Service.
+     * Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig cas_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCasConfigs( + com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig value) { + if (casConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCasConfigsIsMutable(); + casConfigs_.add(value); + onChanged(); + } else { + casConfigsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration for the Google Certificate Authority Service.
+     * Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig cas_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCasConfigs( + int index, + com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig value) { + if (casConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCasConfigsIsMutable(); + casConfigs_.add(index, value); + onChanged(); + } else { + casConfigsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration for the Google Certificate Authority Service.
+     * Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig cas_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCasConfigs( + com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig.Builder + builderForValue) { + if (casConfigsBuilder_ == null) { + ensureCasConfigsIsMutable(); + casConfigs_.add(builderForValue.build()); + onChanged(); + } else { + casConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration for the Google Certificate Authority Service.
+     * Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig cas_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCasConfigs( + int index, + com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig.Builder + builderForValue) { + if (casConfigsBuilder_ == null) { + ensureCasConfigsIsMutable(); + casConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + casConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration for the Google Certificate Authority Service.
+     * Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig cas_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllCasConfigs( + java.lang.Iterable< + ? extends + com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig> + values) { + if (casConfigsBuilder_ == null) { + ensureCasConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, casConfigs_); + onChanged(); + } else { + casConfigsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration for the Google Certificate Authority Service.
+     * Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig cas_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCasConfigs() { + if (casConfigsBuilder_ == null) { + casConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + casConfigsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration for the Google Certificate Authority Service.
+     * Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig cas_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeCasConfigs(int index) { + if (casConfigsBuilder_ == null) { + ensureCasConfigsIsMutable(); + casConfigs_.remove(index); + onChanged(); + } else { + casConfigsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration for the Google Certificate Authority Service.
+     * Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig cas_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig.Builder + getCasConfigsBuilder(int index) { + return getCasConfigsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. Configuration for the Google Certificate Authority Service.
+     * Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig cas_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfigOrBuilder + getCasConfigsOrBuilder(int index) { + if (casConfigsBuilder_ == null) { + return casConfigs_.get(index); + } else { + return casConfigsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. Configuration for the Google Certificate Authority Service.
+     * Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig cas_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.managedkafka.v1.TrustConfig + .CertificateAuthorityServiceConfigOrBuilder> + getCasConfigsOrBuilderList() { + if (casConfigsBuilder_ != null) { + return casConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(casConfigs_); + } + } + + /** + * + * + *
+     * Optional. Configuration for the Google Certificate Authority Service.
+     * Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig cas_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig.Builder + addCasConfigsBuilder() { + return getCasConfigsFieldBuilder() + .addBuilder( + com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig + .getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Configuration for the Google Certificate Authority Service.
+     * Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig cas_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig.Builder + addCasConfigsBuilder(int index) { + return getCasConfigsFieldBuilder() + .addBuilder( + index, + com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig + .getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Configuration for the Google Certificate Authority Service.
+     * Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig cas_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig.Builder> + getCasConfigsBuilderList() { + return getCasConfigsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig, + com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig.Builder, + com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfigOrBuilder> + getCasConfigsFieldBuilder() { + if (casConfigsBuilder_ == null) { + casConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig, + com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig + .Builder, + com.google.cloud.managedkafka.v1.TrustConfig + .CertificateAuthorityServiceConfigOrBuilder>( + casConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + casConfigs_ = null; + } + return casConfigsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.managedkafka.v1.TrustConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.managedkafka.v1.TrustConfig) + private static final com.google.cloud.managedkafka.v1.TrustConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.managedkafka.v1.TrustConfig(); + } + + public static com.google.cloud.managedkafka.v1.TrustConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrustConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.managedkafka.v1.TrustConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/TrustConfigOrBuilder.java b/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/TrustConfigOrBuilder.java new file mode 100644 index 000000000000..fc95f292cda1 --- /dev/null +++ b/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/TrustConfigOrBuilder.java @@ -0,0 +1,103 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/managedkafka/v1/resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.managedkafka.v1; + +public interface TrustConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.managedkafka.v1.TrustConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Configuration for the Google Certificate Authority Service.
+   * Maximum 10.
+   * 
+ * + * + * repeated .google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig cas_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getCasConfigsList(); + + /** + * + * + *
+   * Optional. Configuration for the Google Certificate Authority Service.
+   * Maximum 10.
+   * 
+ * + * + * repeated .google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig cas_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig getCasConfigs( + int index); + + /** + * + * + *
+   * Optional. Configuration for the Google Certificate Authority Service.
+   * Maximum 10.
+   * 
+ * + * + * repeated .google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig cas_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getCasConfigsCount(); + + /** + * + * + *
+   * Optional. Configuration for the Google Certificate Authority Service.
+   * Maximum 10.
+   * 
+ * + * + * repeated .google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig cas_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.managedkafka.v1.TrustConfig + .CertificateAuthorityServiceConfigOrBuilder> + getCasConfigsOrBuilderList(); + + /** + * + * + *
+   * Optional. Configuration for the Google Certificate Authority Service.
+   * Maximum 10.
+   * 
+ * + * + * repeated .google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfig cas_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.managedkafka.v1.TrustConfig.CertificateAuthorityServiceConfigOrBuilder + getCasConfigsOrBuilder(int index); +} diff --git a/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/proto/google/cloud/managedkafka/v1/resources.proto b/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/proto/google/cloud/managedkafka/v1/resources.proto index 40fb43e4dfe3..3afd38e19446 100644 --- a/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/proto/google/cloud/managedkafka/v1/resources.proto +++ b/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/proto/google/cloud/managedkafka/v1/resources.proto @@ -101,6 +101,9 @@ message Cluster { // Output only. Reserved for future use. optional bool satisfies_pzs = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. TLS configuration for the Kafka cluster. + TlsConfig tls_config = 13 [(google.api.field_behavior) = OPTIONAL]; } // A capacity configuration of a Kafka cluster. @@ -175,6 +178,48 @@ message GcpConfig { ]; } +// The TLS configuration for the Kafka cluster. +message TlsConfig { + // Optional. The configuration of the broker truststore. If specified, clients + // can use mTLS for authentication. + TrustConfig trust_config = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A list of rules for mapping from SSL principal names to + // short names. These are applied in order by Kafka. + // Refer to the Apache Kafka documentation for `ssl.principal.mapping.rules` + // for the precise formatting details and syntax. + // Example: "RULE:^CN=(.*?),OU=ServiceUsers.*$/$1@example.com/,DEFAULT" + // + // This is a static Kafka broker configuration. Setting or modifying this + // field will trigger a rolling restart of the Kafka brokers to apply + // the change. An empty string means no rules are applied (Kafka default). + string ssl_principal_mapping_rules = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Sources of CA certificates to install in the broker's truststore. +message TrustConfig { + // A configuration for the Google Certificate Authority Service. + message CertificateAuthorityServiceConfig { + // Required. The name of the CA pool to pull CA certificates from. + // Structured like: + // projects/{project}/locations/{location}/caPools/{ca_pool}. + // The CA pool does not need to be in the same project or location as the + // Kafka cluster. + string ca_pool = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "privateca.googleapis.com/CaPool" + } + ]; + } + + // Optional. Configuration for the Google Certificate Authority Service. + // Maximum 10. + repeated CertificateAuthorityServiceConfig cas_configs = 1 + [(google.api.field_behavior) = OPTIONAL]; +} + // A Kafka topic in a given cluster. message Topic { option (google.api.resource) = { diff --git a/java-maps-addressvalidation/CHANGELOG.md b/java-maps-addressvalidation/CHANGELOG.md index abcfc26c53e2..915e2bb87c61 100644 --- a/java-maps-addressvalidation/CHANGELOG.md +++ b/java-maps-addressvalidation/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.62.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.61.0 (2025-06-25) ### Dependencies diff --git a/java-maps-addressvalidation/README.md b/java-maps-addressvalidation/README.md index 5702a647c599..b9b8cb0271e4 100644 --- a/java-maps-addressvalidation/README.md +++ b/java-maps-addressvalidation/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.maps google-maps-addressvalidation - 0.60.0 + 0.61.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-addressvalidation:0.60.0' +implementation 'com.google.maps:google-maps-addressvalidation:0.61.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-addressvalidation" % "0.60.0" +libraryDependencies += "com.google.maps" % "google-maps-addressvalidation" % "0.61.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-addressvalidation.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-addressvalidation/0.60.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-addressvalidation/0.61.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/google-maps-addressvalidation-bom/pom.xml b/java-maps-addressvalidation/google-maps-addressvalidation-bom/pom.xml index 2cf047a7852b..8ceffc862b6a 100644 --- a/java-maps-addressvalidation/google-maps-addressvalidation-bom/pom.xml +++ b/java-maps-addressvalidation/google-maps-addressvalidation-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.maps google-maps-addressvalidation-bom - 0.61.0 + 0.62.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.maps google-maps-addressvalidation - 0.61.0 + 0.62.0 com.google.maps.api.grpc grpc-google-maps-addressvalidation-v1 - 0.61.0 + 0.62.0 com.google.maps.api.grpc proto-google-maps-addressvalidation-v1 - 0.61.0 + 0.62.0
diff --git a/java-maps-addressvalidation/google-maps-addressvalidation/pom.xml b/java-maps-addressvalidation/google-maps-addressvalidation/pom.xml index 711e27561af3..c934b3789958 100644 --- a/java-maps-addressvalidation/google-maps-addressvalidation/pom.xml +++ b/java-maps-addressvalidation/google-maps-addressvalidation/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.maps google-maps-addressvalidation - 0.61.0 + 0.62.0 jar Google Address Validation API Address Validation API 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. com.google.maps google-maps-addressvalidation-parent - 0.61.0 + 0.62.0 google-maps-addressvalidation diff --git a/java-maps-addressvalidation/grpc-google-maps-addressvalidation-v1/pom.xml b/java-maps-addressvalidation/grpc-google-maps-addressvalidation-v1/pom.xml index 115513a206e4..ab20ea50dfc8 100644 --- a/java-maps-addressvalidation/grpc-google-maps-addressvalidation-v1/pom.xml +++ b/java-maps-addressvalidation/grpc-google-maps-addressvalidation-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc grpc-google-maps-addressvalidation-v1 - 0.61.0 + 0.62.0 grpc-google-maps-addressvalidation-v1 GRPC library for google-maps-addressvalidation com.google.maps google-maps-addressvalidation-parent - 0.61.0 + 0.62.0 diff --git a/java-maps-addressvalidation/pom.xml b/java-maps-addressvalidation/pom.xml index d220a219b44e..4c26045ca996 100644 --- a/java-maps-addressvalidation/pom.xml +++ b/java-maps-addressvalidation/pom.xml @@ -4,7 +4,7 @@ com.google.maps google-maps-addressvalidation-parent pom - 0.61.0 + 0.62.0 Google Address Validation API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.maps google-maps-addressvalidation - 0.61.0 + 0.62.0 com.google.maps.api.grpc grpc-google-maps-addressvalidation-v1 - 0.61.0 + 0.62.0 com.google.maps.api.grpc proto-google-maps-addressvalidation-v1 - 0.61.0 + 0.62.0 diff --git a/java-maps-addressvalidation/proto-google-maps-addressvalidation-v1/pom.xml b/java-maps-addressvalidation/proto-google-maps-addressvalidation-v1/pom.xml index ecab854f56f3..9c49cb95e367 100644 --- a/java-maps-addressvalidation/proto-google-maps-addressvalidation-v1/pom.xml +++ b/java-maps-addressvalidation/proto-google-maps-addressvalidation-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc proto-google-maps-addressvalidation-v1 - 0.61.0 + 0.62.0 proto-google-maps-addressvalidation-v1 Proto library for google-maps-addressvalidation com.google.maps google-maps-addressvalidation-parent - 0.61.0 + 0.62.0 diff --git a/java-maps-area-insights/CHANGELOG.md b/java-maps-area-insights/CHANGELOG.md index 1564548dac86..25bbe0ba0544 100644 --- a/java-maps-area-insights/CHANGELOG.md +++ b/java-maps-area-insights/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.19.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.18.0 (2025-06-25) ### Dependencies diff --git a/java-maps-area-insights/README.md b/java-maps-area-insights/README.md index 14e52019a59d..3ccc2efb713e 100644 --- a/java-maps-area-insights/README.md +++ b/java-maps-area-insights/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.maps google-maps-area-insights - 0.17.0 + 0.18.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-area-insights:0.17.0' +implementation 'com.google.maps:google-maps-area-insights:0.18.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-area-insights" % "0.17.0" +libraryDependencies += "com.google.maps" % "google-maps-area-insights" % "0.18.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-area-insights.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-area-insights/0.17.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-area-insights/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-maps-area-insights/google-maps-area-insights-bom/pom.xml b/java-maps-area-insights/google-maps-area-insights-bom/pom.xml index 2dbd58f7335e..3d469fa5e7b1 100644 --- a/java-maps-area-insights/google-maps-area-insights-bom/pom.xml +++ b/java-maps-area-insights/google-maps-area-insights-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.maps google-maps-area-insights-bom - 0.18.0 + 0.19.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.maps google-maps-area-insights - 0.18.0 + 0.19.0 com.google.maps.api.grpc grpc-google-maps-area-insights-v1 - 0.18.0 + 0.19.0 com.google.maps.api.grpc proto-google-maps-area-insights-v1 - 0.18.0 + 0.19.0 diff --git a/java-maps-area-insights/google-maps-area-insights/pom.xml b/java-maps-area-insights/google-maps-area-insights/pom.xml index 651edd7685c3..c9fcc47ad1bd 100644 --- a/java-maps-area-insights/google-maps-area-insights/pom.xml +++ b/java-maps-area-insights/google-maps-area-insights/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.maps google-maps-area-insights - 0.18.0 + 0.19.0 jar Google Places Insights API Places Insights API Places Insights API. com.google.maps google-maps-area-insights-parent - 0.18.0 + 0.19.0 google-maps-area-insights diff --git a/java-maps-area-insights/grpc-google-maps-area-insights-v1/pom.xml b/java-maps-area-insights/grpc-google-maps-area-insights-v1/pom.xml index 8e37205260d4..2094fdea2d8f 100644 --- a/java-maps-area-insights/grpc-google-maps-area-insights-v1/pom.xml +++ b/java-maps-area-insights/grpc-google-maps-area-insights-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc grpc-google-maps-area-insights-v1 - 0.18.0 + 0.19.0 grpc-google-maps-area-insights-v1 GRPC library for google-maps-area-insights com.google.maps google-maps-area-insights-parent - 0.18.0 + 0.19.0 diff --git a/java-maps-area-insights/pom.xml b/java-maps-area-insights/pom.xml index f1aeef8158d9..d8127c397fe3 100644 --- a/java-maps-area-insights/pom.xml +++ b/java-maps-area-insights/pom.xml @@ -4,7 +4,7 @@ com.google.maps google-maps-area-insights-parent pom - 0.18.0 + 0.19.0 Google Places Insights API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.maps google-maps-area-insights - 0.18.0 + 0.19.0 com.google.maps.api.grpc grpc-google-maps-area-insights-v1 - 0.18.0 + 0.19.0 com.google.maps.api.grpc proto-google-maps-area-insights-v1 - 0.18.0 + 0.19.0 diff --git a/java-maps-area-insights/proto-google-maps-area-insights-v1/pom.xml b/java-maps-area-insights/proto-google-maps-area-insights-v1/pom.xml index 1511090ad8aa..a9146bd35319 100644 --- a/java-maps-area-insights/proto-google-maps-area-insights-v1/pom.xml +++ b/java-maps-area-insights/proto-google-maps-area-insights-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc proto-google-maps-area-insights-v1 - 0.18.0 + 0.19.0 proto-google-maps-area-insights-v1 Proto library for google-maps-area-insights com.google.maps google-maps-area-insights-parent - 0.18.0 + 0.19.0 diff --git a/java-maps-fleetengine-delivery/CHANGELOG.md b/java-maps-fleetengine-delivery/CHANGELOG.md index 84cbadd6c914..9272b22f8272 100644 --- a/java-maps-fleetengine-delivery/CHANGELOG.md +++ b/java-maps-fleetengine-delivery/CHANGELOG.md @@ -1,5 +1,16 @@ # Changelog +## 0.15.0 (2025-07-11) + +### Features + +* add ability to specify trip attributes to Trip and deprecate Trip.remaining_waypoints_version ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.14.0 (2025-06-25) ### Dependencies diff --git a/java-maps-fleetengine-delivery/README.md b/java-maps-fleetengine-delivery/README.md index 8899ccb3d279..42cec14c9ce7 100644 --- a/java-maps-fleetengine-delivery/README.md +++ b/java-maps-fleetengine-delivery/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.maps google-maps-fleetengine-delivery - 0.13.0 + 0.14.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-fleetengine-delivery:0.13.0' +implementation 'com.google.maps:google-maps-fleetengine-delivery:0.14.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-fleetengine-delivery" % "0.13.0" +libraryDependencies += "com.google.maps" % "google-maps-fleetengine-delivery" % "0.14.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-fleetengine-delivery.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-fleetengine-delivery/0.13.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-fleetengine-delivery/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-maps-fleetengine-delivery/google-maps-fleetengine-delivery-bom/pom.xml b/java-maps-fleetengine-delivery/google-maps-fleetengine-delivery-bom/pom.xml index ac5135b3bacf..ab673083dca8 100644 --- a/java-maps-fleetengine-delivery/google-maps-fleetengine-delivery-bom/pom.xml +++ b/java-maps-fleetengine-delivery/google-maps-fleetengine-delivery-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.maps google-maps-fleetengine-delivery-bom - 0.14.0 + 0.15.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.maps google-maps-fleetengine-delivery - 0.14.0 + 0.15.0 com.google.maps.api.grpc grpc-google-maps-fleetengine-delivery-v1 - 0.14.0 + 0.15.0 com.google.maps.api.grpc proto-google-maps-fleetengine-delivery-v1 - 0.14.0 + 0.15.0 diff --git a/java-maps-fleetengine-delivery/google-maps-fleetengine-delivery/pom.xml b/java-maps-fleetengine-delivery/google-maps-fleetengine-delivery/pom.xml index 9371099a71f4..09e16a178037 100644 --- a/java-maps-fleetengine-delivery/google-maps-fleetengine-delivery/pom.xml +++ b/java-maps-fleetengine-delivery/google-maps-fleetengine-delivery/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.maps google-maps-fleetengine-delivery - 0.14.0 + 0.15.0 jar Google Last Mile Fleet Solution Delivery API Last Mile Fleet Solution Delivery API Enables Fleet Engine for access to the On Demand Rides and Deliveries and Last Mile Fleet Solution APIs. Customer's use of Google Maps Content in the Cloud Logging Services is subject to the Google Maps Platform Terms of Service located at https://cloud.google.com/maps-platform/terms. com.google.maps google-maps-fleetengine-delivery-parent - 0.14.0 + 0.15.0 google-maps-fleetengine-delivery diff --git a/java-maps-fleetengine-delivery/grpc-google-maps-fleetengine-delivery-v1/pom.xml b/java-maps-fleetengine-delivery/grpc-google-maps-fleetengine-delivery-v1/pom.xml index ae74c5e1c587..33866ed0c29f 100644 --- a/java-maps-fleetengine-delivery/grpc-google-maps-fleetengine-delivery-v1/pom.xml +++ b/java-maps-fleetengine-delivery/grpc-google-maps-fleetengine-delivery-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc grpc-google-maps-fleetengine-delivery-v1 - 0.14.0 + 0.15.0 grpc-google-maps-fleetengine-delivery-v1 GRPC library for google-maps-fleetengine-delivery com.google.maps google-maps-fleetengine-delivery-parent - 0.14.0 + 0.15.0 diff --git a/java-maps-fleetengine-delivery/pom.xml b/java-maps-fleetengine-delivery/pom.xml index 0709f0d13b02..261b8f68c3c0 100644 --- a/java-maps-fleetengine-delivery/pom.xml +++ b/java-maps-fleetengine-delivery/pom.xml @@ -4,7 +4,7 @@ com.google.maps google-maps-fleetengine-delivery-parent pom - 0.14.0 + 0.15.0 Google Last Mile Fleet Solution Delivery API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.maps google-maps-fleetengine-delivery - 0.14.0 + 0.15.0 com.google.maps.api.grpc grpc-google-maps-fleetengine-delivery-v1 - 0.14.0 + 0.15.0 com.google.maps.api.grpc proto-google-maps-fleetengine-delivery-v1 - 0.14.0 + 0.15.0 diff --git a/java-maps-fleetengine-delivery/proto-google-maps-fleetengine-delivery-v1/pom.xml b/java-maps-fleetengine-delivery/proto-google-maps-fleetengine-delivery-v1/pom.xml index 633254f22e01..c042614525bb 100644 --- a/java-maps-fleetengine-delivery/proto-google-maps-fleetengine-delivery-v1/pom.xml +++ b/java-maps-fleetengine-delivery/proto-google-maps-fleetengine-delivery-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc proto-google-maps-fleetengine-delivery-v1 - 0.14.0 + 0.15.0 proto-google-maps-fleetengine-delivery-v1 Proto library for google-maps-fleetengine-delivery com.google.maps google-maps-fleetengine-delivery-parent - 0.14.0 + 0.15.0 diff --git a/java-maps-fleetengine-delivery/proto-google-maps-fleetengine-delivery-v1/src/main/java/com/google/maps/fleetengine/delivery/v1/Common.java b/java-maps-fleetengine-delivery/proto-google-maps-fleetengine-delivery-v1/src/main/java/com/google/maps/fleetengine/delivery/v1/Common.java index 0d068462e430..8c24d2997e9a 100644 --- a/java-maps-fleetengine-delivery/proto-google-maps-fleetengine-delivery-v1/src/main/java/com/google/maps/fleetengine/delivery/v1/Common.java +++ b/java-maps-fleetengine-delivery/proto-google-maps-fleetengine-delivery-v1/src/main/java/com/google/maps/fleetengine/delivery/v1/Common.java @@ -53,90 +53,85 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n" - + "0google/maps/fleetengine/delivery/v1/common.proto\022\034maps.fleetengine.delivery.v1" + "\n0google/maps/fleetengine/delivery/v1/co" + + "mmon.proto\022\034maps.fleetengine.delivery.v1" + "\032\037google/api/field_behavior.proto\032\037googl" + "e/protobuf/timestamp.proto\032\036google/proto" - + "buf/wrappers.proto\032\030google/type/latlng.proto\"\240\001\n" - + "\030DeliveryVehicleAttribute\022\013\n" - + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t\022\026\n" - + "\014string_value\030\003 \001(\tH\000\022\024\n\n" - + "bool_value\030\004 \001(\010H\000\022\026\n" - + "\014number_value\030\005 \001(\001H\000B\"\n" - + " delivery_vehicle_attribute_value\"\364\014\n" - + "\027DeliveryVehicleLocation\022%\n" - + "\010location\030\001 \001(\0132\023.google.type.LatLng\022=\n" - + "\023horizontal_accuracy\030\010" - + " \001(\0132\034.google.protobuf.DoubleValueB\002\030\001\0225\n" - + "\017latlng_accuracy\030\026 \001(\0132\034.google.protobuf.DoubleValue\022,\n" - + "\007heading\030\002 \001(\0132\033.google.protobuf.Int32Value\022:\n" - + "\020bearing_accuracy\030\n" - + " \001(\0132\034.google.protobuf.DoubleValueB\002\030\001\0226\n" - + "\020heading_accuracy\030\027 \001(\0132\034.google.protobuf.DoubleValue\022.\n" - + "\010altitude\030\005 \001(\0132\034.google.protobuf.DoubleValue\022;\n" - + "\021vertical_accuracy\030\t" - + " \001(\0132\034.google.protobuf.DoubleValueB\002\030\001\0227\n" - + "\021altitude_accuracy\030\030 \001(\0132\034.google.protobuf.DoubleValue\0223\n\n" - + "speed_kmph\030\003 \001(\0132\033.google.protobuf.Int32ValueB\002\030\001\022+\n" - + "\005speed\030\006 \001(\0132\034.google.protobuf.DoubleValue\0224\n" - + "\016speed_accuracy\030\007 \001(\0132\034.google.protobuf.DoubleValue\022/\n" - + "\013update_time\030\004 \001(\0132\032.google.protobuf.Timestamp\0224\n" - + "\013server_time\030\r" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022T\n" - + "\017location_sensor\030\013 \001(\016" - + "2;.maps.fleetengine.delivery.v1.DeliveryVehicleLocationSensor\0223\n" - + "\017is_road_snapped\030\033 \001(\0132\032.google.protobuf.BoolValue\022>\n" - + "\025is_gps_sensor_enabled\030\014" - + " \001(\0132\032.google.protobuf.BoolValueB\003\340A\004\022;\n" - + "\021time_since_update\030\016" - + " \001(\0132\033.google.protobuf.Int32ValueB\003\340A\004\022=\n" - + "\021num_stale_updates\030\017" - + " \001(\0132\033.google.protobuf.Int32ValueB\005\030\001\340A\004\022)\n" - + "\014raw_location\030\020 \001(\0132\023.google.type.LatLng\0225\n" - + "\021raw_location_time\030\021 \001(\0132\032.google.protobuf.Timestamp\022X\n" - + "\023raw_location_sensor\030\034 \001(\0162;.maps.fle" - + "etengine.delivery.v1.DeliveryVehicleLocationSensor\022;\n" - + "\025raw_location_accuracy\030\031 \001(\0132\034.google.protobuf.DoubleValue\0222\n" - + "\025supplemental_location\030\022 \001(\0132\023.google.type.LatLng\022>\n" - + "\032supplemental_location_time\030\023 \001(\0132\032.google.protobuf.Timestamp\022a\n" - + "\034supplemental_location_sensor\030\024 \001(\0162;.maps.fleeten" - + "gine.delivery.v1.DeliveryVehicleLocationSensor\022D\n" - + "\036supplemental_location_accuracy\030\025" - + " \001(\0132\034.google.protobuf.DoubleValue\022\030\n" - + "\014road_snapped\030\032 \001(\010B\002\030\001\"t\n\n" - + "TimeWindow\0223\n\n" - + "start_time\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\002\0221\n" - + "\010end_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\002\"z\n\r" - + "TaskAttribute\022\013\n" - + "\003key\030\001 \001(\t\022\026\n" - + "\014string_value\030\002 \001(\tH\000\022\024\n\n" - + "bool_value\030\003 \001(\010H\000\022\026\n" - + "\014number_value\030\004 \001(\001H\000B\026\n" - + "\024task_attribute_value*\346\001\n" - + "\035DeliveryVehicleLocationSensor\022\022\n" - + "\016UNKNOWN_SENSOR\020\000\022\007\n" - + "\003GPS\020\001\022\013\n" - + "\007NETWORK\020\002\022\013\n" - + "\007PASSIVE\020\003\022\"\n" - + "\036ROAD_SNAPPED_LOCATION_PROVIDER\020\004\022\036\n" - + "\032CUSTOMER_SUPPLIED_LOCATION\020\005\022\031\n" - + "\025FLEET_ENGINE_LOCATION\020\006\022\033\n" - + "\027FUSED_LOCATION_PROVIDER\020d\022\022\n" - + "\r" - + "CORE_LOCATION\020\310\001*\230\001\n" - + "\037DeliveryVehicleNavigationStatus\022\035\n" - + "\031UNKNOWN_NAVIGATION_STATUS\020\000\022\017\n" - + "\013NO_GUIDANCE\020\001\022\032\n" - + "\026ENROUTE_TO_DESTINATION\020\002\022\r\n" - + "\tOFF_ROUTE\020\003\022\032\n" - + "\026ARRIVED_AT_DESTINATION\020\004B\373\001\n" - + "\'com.google.maps.fleetengine.delivery.v1B\006CommonP\001ZIcloud.google" - + ".com/go/maps/fleetengine/delivery/apiv1/" - + "deliverypb;deliverypb\242\002\004CFED\252\002#Google.Ma" - + "ps.FleetEngine.Delivery.V1\312\002#Google\\Maps" - + "\\FleetEngine\\Delivery\\V1\352\002\'Google::Maps:" - + ":FleetEngine::Delivery::V1b\006proto3" + + "buf/wrappers.proto\032\030google/type/latlng.p" + + "roto\"\240\001\n\030DeliveryVehicleAttribute\022\013\n\003key" + + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\022\026\n\014string_value\030\003 " + + "\001(\tH\000\022\024\n\nbool_value\030\004 \001(\010H\000\022\026\n\014number_va" + + "lue\030\005 \001(\001H\000B\"\n delivery_vehicle_attribut" + + "e_value\"\320\016\n\027DeliveryVehicleLocation\022%\n\010l" + + "ocation\030\001 \001(\0132\023.google.type.LatLng\022=\n\023ho" + + "rizontal_accuracy\030\010 \001(\0132\034.google.protobu" + + "f.DoubleValueB\002\030\001\0225\n\017latlng_accuracy\030\026 \001" + + "(\0132\034.google.protobuf.DoubleValue\022,\n\007head" + + "ing\030\002 \001(\0132\033.google.protobuf.Int32Value\022:" + + "\n\020bearing_accuracy\030\n \001(\0132\034.google.protob" + + "uf.DoubleValueB\002\030\001\0226\n\020heading_accuracy\030\027" + + " \001(\0132\034.google.protobuf.DoubleValue\022.\n\010al" + + "titude\030\005 \001(\0132\034.google.protobuf.DoubleVal" + + "ue\022;\n\021vertical_accuracy\030\t \001(\0132\034.google.p" + + "rotobuf.DoubleValueB\002\030\001\0227\n\021altitude_accu" + + "racy\030\030 \001(\0132\034.google.protobuf.DoubleValue" + + "\0223\n\nspeed_kmph\030\003 \001(\0132\033.google.protobuf.I" + + "nt32ValueB\002\030\001\022+\n\005speed\030\006 \001(\0132\034.google.pr" + + "otobuf.DoubleValue\0224\n\016speed_accuracy\030\007 \001" + + "(\0132\034.google.protobuf.DoubleValue\022/\n\013upda" + + "te_time\030\004 \001(\0132\032.google.protobuf.Timestam" + + "p\0224\n\013server_time\030\r \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\022T\n\017location_sensor\030\013 \001(\016" + + "2;.maps.fleetengine.delivery.v1.Delivery" + + "VehicleLocationSensor\0223\n\017is_road_snapped" + + "\030\033 \001(\0132\032.google.protobuf.BoolValue\022>\n\025is" + + "_gps_sensor_enabled\030\014 \001(\0132\032.google.proto" + + "buf.BoolValueB\003\340A\004\022;\n\021time_since_update\030" + + "\016 \001(\0132\033.google.protobuf.Int32ValueB\003\340A\004\022" + + "=\n\021num_stale_updates\030\017 \001(\0132\033.google.prot" + + "obuf.Int32ValueB\005\030\001\340A\004\022)\n\014raw_location\030\020" + + " \001(\0132\023.google.type.LatLng\0225\n\021raw_locatio" + + "n_time\030\021 \001(\0132\032.google.protobuf.Timestamp" + + "\022X\n\023raw_location_sensor\030\034 \001(\0162;.maps.fle" + + "etengine.delivery.v1.DeliveryVehicleLoca" + + "tionSensor\022;\n\025raw_location_accuracy\030\031 \001(" + + "\0132\034.google.protobuf.DoubleValue\022)\n\014flp_l" + + "ocation\030\035 \001(\0132\023.google.type.LatLng\0223\n\017fl" + + "p_update_time\030\036 \001(\0132\032.google.protobuf.Ti" + + "mestamp\022@\n\032flp_latlng_accuracy_meters\030\037 " + + "\001(\0132\034.google.protobuf.DoubleValue\0228\n\023flp" + + "_heading_degrees\030 \001(\0132\033.google.protobuf" + + ".Int32Value\0222\n\025supplemental_location\030\022 \001" + + "(\0132\023.google.type.LatLng\022>\n\032supplemental_" + + "location_time\030\023 \001(\0132\032.google.protobuf.Ti" + + "mestamp\022a\n\034supplemental_location_sensor\030" + + "\024 \001(\0162;.maps.fleetengine.delivery.v1.Del" + + "iveryVehicleLocationSensor\022D\n\036supplement" + + "al_location_accuracy\030\025 \001(\0132\034.google.prot" + + "obuf.DoubleValue\022\030\n\014road_snapped\030\032 \001(\010B\002" + + "\030\001\"t\n\nTimeWindow\0223\n\nstart_time\030\001 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\002\0221\n\010end_tim" + + "e\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\002" + + "\"z\n\rTaskAttribute\022\013\n\003key\030\001 \001(\t\022\026\n\014string" + + "_value\030\002 \001(\tH\000\022\024\n\nbool_value\030\003 \001(\010H\000\022\026\n\014" + + "number_value\030\004 \001(\001H\000B\026\n\024task_attribute_v" + + "alue*\346\001\n\035DeliveryVehicleLocationSensor\022\022" + + "\n\016UNKNOWN_SENSOR\020\000\022\007\n\003GPS\020\001\022\013\n\007NETWORK\020\002" + + "\022\013\n\007PASSIVE\020\003\022\"\n\036ROAD_SNAPPED_LOCATION_P" + + "ROVIDER\020\004\022\036\n\032CUSTOMER_SUPPLIED_LOCATION\020" + + "\005\022\031\n\025FLEET_ENGINE_LOCATION\020\006\022\033\n\027FUSED_LO" + + "CATION_PROVIDER\020d\022\022\n\rCORE_LOCATION\020\310\001*\230\001" + + "\n\037DeliveryVehicleNavigationStatus\022\035\n\031UNK" + + "NOWN_NAVIGATION_STATUS\020\000\022\017\n\013NO_GUIDANCE\020" + + "\001\022\032\n\026ENROUTE_TO_DESTINATION\020\002\022\r\n\tOFF_ROU" + + "TE\020\003\022\032\n\026ARRIVED_AT_DESTINATION\020\004B\373\001\n\'com" + + ".google.maps.fleetengine.delivery.v1B\006Co" + + "mmonP\001ZIcloud.google.com/go/maps/fleeten" + + "gine/delivery/apiv1/deliverypb;deliveryp" + + "b\242\002\004CFED\252\002#Google.Maps.FleetEngine.Deliv" + + "ery.V1\312\002#Google\\Maps\\FleetEngine\\Deliver" + + "y\\V1\352\002\'Google::Maps::FleetEngine::Delive" + + "ry::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -189,6 +184,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RawLocationTime", "RawLocationSensor", "RawLocationAccuracy", + "FlpLocation", + "FlpUpdateTime", + "FlpLatlngAccuracyMeters", + "FlpHeadingDegrees", "SupplementalLocation", "SupplementalLocationTime", "SupplementalLocationSensor", diff --git a/java-maps-fleetengine-delivery/proto-google-maps-fleetengine-delivery-v1/src/main/java/com/google/maps/fleetengine/delivery/v1/DeliveryVehicleLocation.java b/java-maps-fleetengine-delivery/proto-google-maps-fleetengine-delivery-v1/src/main/java/com/google/maps/fleetengine/delivery/v1/DeliveryVehicleLocation.java index 95bc89da26e6..bdfd96613b18 100644 --- a/java-maps-fleetengine-delivery/proto-google-maps-fleetengine-delivery-v1/src/main/java/com/google/maps/fleetengine/delivery/v1/DeliveryVehicleLocation.java +++ b/java-maps-fleetengine-delivery/proto-google-maps-fleetengine-delivery-v1/src/main/java/com/google/maps/fleetengine/delivery/v1/DeliveryVehicleLocation.java @@ -1320,6 +1320,217 @@ public com.google.protobuf.DoubleValueOrBuilder getRawLocationAccuracyOrBuilder( : rawLocationAccuracy_; } + public static final int FLP_LOCATION_FIELD_NUMBER = 29; + private com.google.type.LatLng flpLocation_; + + /** + * + * + *
+   * The location from Android's Fused Location Provider.
+   * 
+ * + * .google.type.LatLng flp_location = 29; + * + * @return Whether the flpLocation field is set. + */ + @java.lang.Override + public boolean hasFlpLocation() { + return ((bitField0_ & 0x00200000) != 0); + } + + /** + * + * + *
+   * The location from Android's Fused Location Provider.
+   * 
+ * + * .google.type.LatLng flp_location = 29; + * + * @return The flpLocation. + */ + @java.lang.Override + public com.google.type.LatLng getFlpLocation() { + return flpLocation_ == null ? com.google.type.LatLng.getDefaultInstance() : flpLocation_; + } + + /** + * + * + *
+   * The location from Android's Fused Location Provider.
+   * 
+ * + * .google.type.LatLng flp_location = 29; + */ + @java.lang.Override + public com.google.type.LatLngOrBuilder getFlpLocationOrBuilder() { + return flpLocation_ == null ? com.google.type.LatLng.getDefaultInstance() : flpLocation_; + } + + public static final int FLP_UPDATE_TIME_FIELD_NUMBER = 30; + private com.google.protobuf.Timestamp flpUpdateTime_; + + /** + * + * + *
+   * Update timestamp of the `flp_location`
+   * 
+ * + * .google.protobuf.Timestamp flp_update_time = 30; + * + * @return Whether the flpUpdateTime field is set. + */ + @java.lang.Override + public boolean hasFlpUpdateTime() { + return ((bitField0_ & 0x00400000) != 0); + } + + /** + * + * + *
+   * Update timestamp of the `flp_location`
+   * 
+ * + * .google.protobuf.Timestamp flp_update_time = 30; + * + * @return The flpUpdateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getFlpUpdateTime() { + return flpUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : flpUpdateTime_; + } + + /** + * + * + *
+   * Update timestamp of the `flp_location`
+   * 
+ * + * .google.protobuf.Timestamp flp_update_time = 30; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getFlpUpdateTimeOrBuilder() { + return flpUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : flpUpdateTime_; + } + + public static final int FLP_LATLNG_ACCURACY_METERS_FIELD_NUMBER = 31; + private com.google.protobuf.DoubleValue flpLatlngAccuracyMeters_; + + /** + * + * + *
+   * Accuracy of `flp_location` in meters as a radius.
+   * 
+ * + * .google.protobuf.DoubleValue flp_latlng_accuracy_meters = 31; + * + * @return Whether the flpLatlngAccuracyMeters field is set. + */ + @java.lang.Override + public boolean hasFlpLatlngAccuracyMeters() { + return ((bitField0_ & 0x00800000) != 0); + } + + /** + * + * + *
+   * Accuracy of `flp_location` in meters as a radius.
+   * 
+ * + * .google.protobuf.DoubleValue flp_latlng_accuracy_meters = 31; + * + * @return The flpLatlngAccuracyMeters. + */ + @java.lang.Override + public com.google.protobuf.DoubleValue getFlpLatlngAccuracyMeters() { + return flpLatlngAccuracyMeters_ == null + ? com.google.protobuf.DoubleValue.getDefaultInstance() + : flpLatlngAccuracyMeters_; + } + + /** + * + * + *
+   * Accuracy of `flp_location` in meters as a radius.
+   * 
+ * + * .google.protobuf.DoubleValue flp_latlng_accuracy_meters = 31; + */ + @java.lang.Override + public com.google.protobuf.DoubleValueOrBuilder getFlpLatlngAccuracyMetersOrBuilder() { + return flpLatlngAccuracyMeters_ == null + ? com.google.protobuf.DoubleValue.getDefaultInstance() + : flpLatlngAccuracyMeters_; + } + + public static final int FLP_HEADING_DEGREES_FIELD_NUMBER = 32; + private com.google.protobuf.Int32Value flpHeadingDegrees_; + + /** + * + * + *
+   * Direction the vehicle is moving in degrees, as determined by the Fused
+   * Location Provider. 0 represents North. The valid range is [0,360).
+   * 
+ * + * .google.protobuf.Int32Value flp_heading_degrees = 32; + * + * @return Whether the flpHeadingDegrees field is set. + */ + @java.lang.Override + public boolean hasFlpHeadingDegrees() { + return ((bitField0_ & 0x01000000) != 0); + } + + /** + * + * + *
+   * Direction the vehicle is moving in degrees, as determined by the Fused
+   * Location Provider. 0 represents North. The valid range is [0,360).
+   * 
+ * + * .google.protobuf.Int32Value flp_heading_degrees = 32; + * + * @return The flpHeadingDegrees. + */ + @java.lang.Override + public com.google.protobuf.Int32Value getFlpHeadingDegrees() { + return flpHeadingDegrees_ == null + ? com.google.protobuf.Int32Value.getDefaultInstance() + : flpHeadingDegrees_; + } + + /** + * + * + *
+   * Direction the vehicle is moving in degrees, as determined by the Fused
+   * Location Provider. 0 represents North. The valid range is [0,360).
+   * 
+ * + * .google.protobuf.Int32Value flp_heading_degrees = 32; + */ + @java.lang.Override + public com.google.protobuf.Int32ValueOrBuilder getFlpHeadingDegreesOrBuilder() { + return flpHeadingDegrees_ == null + ? com.google.protobuf.Int32Value.getDefaultInstance() + : flpHeadingDegrees_; + } + public static final int SUPPLEMENTAL_LOCATION_FIELD_NUMBER = 18; private com.google.type.LatLng supplementalLocation_; @@ -1336,7 +1547,7 @@ public com.google.protobuf.DoubleValueOrBuilder getRawLocationAccuracyOrBuilder( */ @java.lang.Override public boolean hasSupplementalLocation() { - return ((bitField0_ & 0x00200000) != 0); + return ((bitField0_ & 0x02000000) != 0); } /** @@ -1389,7 +1600,7 @@ public com.google.type.LatLngOrBuilder getSupplementalLocationOrBuilder() { */ @java.lang.Override public boolean hasSupplementalLocationTime() { - return ((bitField0_ & 0x00400000) != 0); + return ((bitField0_ & 0x04000000) != 0); } /** @@ -1489,7 +1700,7 @@ public int getSupplementalLocationSensorValue() { */ @java.lang.Override public boolean hasSupplementalLocationAccuracy() { - return ((bitField0_ & 0x00800000) != 0); + return ((bitField0_ & 0x08000000) != 0); } /** @@ -1539,7 +1750,7 @@ public com.google.protobuf.DoubleValueOrBuilder getSupplementalLocationAccuracyO * bool road_snapped = 26 [deprecated = true]; * * @deprecated maps.fleetengine.delivery.v1.DeliveryVehicleLocation.road_snapped is deprecated. - * See google/maps/fleetengine/delivery/v1/common.proto;l=160 + * See google/maps/fleetengine/delivery/v1/common.proto;l=173 * @return The roadSnapped. */ @java.lang.Override @@ -1615,10 +1826,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00080000) != 0)) { output.writeMessage(17, getRawLocationTime()); } - if (((bitField0_ & 0x00200000) != 0)) { + if (((bitField0_ & 0x02000000) != 0)) { output.writeMessage(18, getSupplementalLocation()); } - if (((bitField0_ & 0x00400000) != 0)) { + if (((bitField0_ & 0x04000000) != 0)) { output.writeMessage(19, getSupplementalLocationTime()); } if (supplementalLocationSensor_ @@ -1626,7 +1837,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(20, supplementalLocationSensor_); } - if (((bitField0_ & 0x00800000) != 0)) { + if (((bitField0_ & 0x08000000) != 0)) { output.writeMessage(21, getSupplementalLocationAccuracy()); } if (((bitField0_ & 0x00000004) != 0)) { @@ -1652,6 +1863,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(28, rawLocationSensor_); } + if (((bitField0_ & 0x00200000) != 0)) { + output.writeMessage(29, getFlpLocation()); + } + if (((bitField0_ & 0x00400000) != 0)) { + output.writeMessage(30, getFlpUpdateTime()); + } + if (((bitField0_ & 0x00800000) != 0)) { + output.writeMessage(31, getFlpLatlngAccuracyMeters()); + } + if (((bitField0_ & 0x01000000) != 0)) { + output.writeMessage(32, getFlpHeadingDegrees()); + } getUnknownFields().writeTo(output); } @@ -1714,11 +1937,11 @@ public int getSerializedSize() { if (((bitField0_ & 0x00080000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getRawLocationTime()); } - if (((bitField0_ & 0x00200000) != 0)) { + if (((bitField0_ & 0x02000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getSupplementalLocation()); } - if (((bitField0_ & 0x00400000) != 0)) { + if (((bitField0_ & 0x04000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 19, getSupplementalLocationTime()); @@ -1729,7 +1952,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeEnumSize(20, supplementalLocationSensor_); } - if (((bitField0_ & 0x00800000) != 0)) { + if (((bitField0_ & 0x08000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 21, getSupplementalLocationAccuracy()); @@ -1758,6 +1981,20 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(28, rawLocationSensor_); } + if (((bitField0_ & 0x00200000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, getFlpLocation()); + } + if (((bitField0_ & 0x00400000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(30, getFlpUpdateTime()); + } + if (((bitField0_ & 0x00800000) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 31, getFlpLatlngAccuracyMeters()); + } + if (((bitField0_ & 0x01000000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(32, getFlpHeadingDegrees()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1860,6 +2097,22 @@ public boolean equals(final java.lang.Object obj) { if (hasRawLocationAccuracy()) { if (!getRawLocationAccuracy().equals(other.getRawLocationAccuracy())) return false; } + if (hasFlpLocation() != other.hasFlpLocation()) return false; + if (hasFlpLocation()) { + if (!getFlpLocation().equals(other.getFlpLocation())) return false; + } + if (hasFlpUpdateTime() != other.hasFlpUpdateTime()) return false; + if (hasFlpUpdateTime()) { + if (!getFlpUpdateTime().equals(other.getFlpUpdateTime())) return false; + } + if (hasFlpLatlngAccuracyMeters() != other.hasFlpLatlngAccuracyMeters()) return false; + if (hasFlpLatlngAccuracyMeters()) { + if (!getFlpLatlngAccuracyMeters().equals(other.getFlpLatlngAccuracyMeters())) return false; + } + if (hasFlpHeadingDegrees() != other.hasFlpHeadingDegrees()) return false; + if (hasFlpHeadingDegrees()) { + if (!getFlpHeadingDegrees().equals(other.getFlpHeadingDegrees())) return false; + } if (hasSupplementalLocation() != other.hasSupplementalLocation()) return false; if (hasSupplementalLocation()) { if (!getSupplementalLocation().equals(other.getSupplementalLocation())) return false; @@ -1974,6 +2227,22 @@ public int hashCode() { hash = (37 * hash) + RAW_LOCATION_ACCURACY_FIELD_NUMBER; hash = (53 * hash) + getRawLocationAccuracy().hashCode(); } + if (hasFlpLocation()) { + hash = (37 * hash) + FLP_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getFlpLocation().hashCode(); + } + if (hasFlpUpdateTime()) { + hash = (37 * hash) + FLP_UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getFlpUpdateTime().hashCode(); + } + if (hasFlpLatlngAccuracyMeters()) { + hash = (37 * hash) + FLP_LATLNG_ACCURACY_METERS_FIELD_NUMBER; + hash = (53 * hash) + getFlpLatlngAccuracyMeters().hashCode(); + } + if (hasFlpHeadingDegrees()) { + hash = (37 * hash) + FLP_HEADING_DEGREES_FIELD_NUMBER; + hash = (53 * hash) + getFlpHeadingDegrees().hashCode(); + } if (hasSupplementalLocation()) { hash = (37 * hash) + SUPPLEMENTAL_LOCATION_FIELD_NUMBER; hash = (53 * hash) + getSupplementalLocation().hashCode(); @@ -2153,6 +2422,10 @@ private void maybeForceBuilderInitialization() { getRawLocationFieldBuilder(); getRawLocationTimeFieldBuilder(); getRawLocationAccuracyFieldBuilder(); + getFlpLocationFieldBuilder(); + getFlpUpdateTimeFieldBuilder(); + getFlpLatlngAccuracyMetersFieldBuilder(); + getFlpHeadingDegreesFieldBuilder(); getSupplementalLocationFieldBuilder(); getSupplementalLocationTimeFieldBuilder(); getSupplementalLocationAccuracyFieldBuilder(); @@ -2270,6 +2543,26 @@ public Builder clear() { rawLocationAccuracyBuilder_.dispose(); rawLocationAccuracyBuilder_ = null; } + flpLocation_ = null; + if (flpLocationBuilder_ != null) { + flpLocationBuilder_.dispose(); + flpLocationBuilder_ = null; + } + flpUpdateTime_ = null; + if (flpUpdateTimeBuilder_ != null) { + flpUpdateTimeBuilder_.dispose(); + flpUpdateTimeBuilder_ = null; + } + flpLatlngAccuracyMeters_ = null; + if (flpLatlngAccuracyMetersBuilder_ != null) { + flpLatlngAccuracyMetersBuilder_.dispose(); + flpLatlngAccuracyMetersBuilder_ = null; + } + flpHeadingDegrees_ = null; + if (flpHeadingDegreesBuilder_ != null) { + flpHeadingDegreesBuilder_.dispose(); + flpHeadingDegreesBuilder_ = null; + } supplementalLocation_ = null; if (supplementalLocationBuilder_ != null) { supplementalLocationBuilder_.dispose(); @@ -2437,30 +2730,54 @@ private void buildPartial0( to_bitField0_ |= 0x00100000; } if (((from_bitField0_ & 0x00800000) != 0)) { + result.flpLocation_ = + flpLocationBuilder_ == null ? flpLocation_ : flpLocationBuilder_.build(); + to_bitField0_ |= 0x00200000; + } + if (((from_bitField0_ & 0x01000000) != 0)) { + result.flpUpdateTime_ = + flpUpdateTimeBuilder_ == null ? flpUpdateTime_ : flpUpdateTimeBuilder_.build(); + to_bitField0_ |= 0x00400000; + } + if (((from_bitField0_ & 0x02000000) != 0)) { + result.flpLatlngAccuracyMeters_ = + flpLatlngAccuracyMetersBuilder_ == null + ? flpLatlngAccuracyMeters_ + : flpLatlngAccuracyMetersBuilder_.build(); + to_bitField0_ |= 0x00800000; + } + if (((from_bitField0_ & 0x04000000) != 0)) { + result.flpHeadingDegrees_ = + flpHeadingDegreesBuilder_ == null + ? flpHeadingDegrees_ + : flpHeadingDegreesBuilder_.build(); + to_bitField0_ |= 0x01000000; + } + if (((from_bitField0_ & 0x08000000) != 0)) { result.supplementalLocation_ = supplementalLocationBuilder_ == null ? supplementalLocation_ : supplementalLocationBuilder_.build(); - to_bitField0_ |= 0x00200000; + to_bitField0_ |= 0x02000000; } - if (((from_bitField0_ & 0x01000000) != 0)) { + if (((from_bitField0_ & 0x10000000) != 0)) { result.supplementalLocationTime_ = supplementalLocationTimeBuilder_ == null ? supplementalLocationTime_ : supplementalLocationTimeBuilder_.build(); - to_bitField0_ |= 0x00400000; + to_bitField0_ |= 0x04000000; } - if (((from_bitField0_ & 0x02000000) != 0)) { + if (((from_bitField0_ & 0x20000000) != 0)) { result.supplementalLocationSensor_ = supplementalLocationSensor_; } - if (((from_bitField0_ & 0x04000000) != 0)) { + if (((from_bitField0_ & 0x40000000) != 0)) { result.supplementalLocationAccuracy_ = supplementalLocationAccuracyBuilder_ == null ? supplementalLocationAccuracy_ : supplementalLocationAccuracyBuilder_.build(); - to_bitField0_ |= 0x00800000; + to_bitField0_ |= 0x08000000; } - if (((from_bitField0_ & 0x08000000) != 0)) { + if (((from_bitField0_ & 0x80000000) != 0)) { result.roadSnapped_ = roadSnapped_; } result.bitField0_ |= to_bitField0_; @@ -2583,6 +2900,18 @@ public Builder mergeFrom( if (other.hasRawLocationAccuracy()) { mergeRawLocationAccuracy(other.getRawLocationAccuracy()); } + if (other.hasFlpLocation()) { + mergeFlpLocation(other.getFlpLocation()); + } + if (other.hasFlpUpdateTime()) { + mergeFlpUpdateTime(other.getFlpUpdateTime()); + } + if (other.hasFlpLatlngAccuracyMeters()) { + mergeFlpLatlngAccuracyMeters(other.getFlpLatlngAccuracyMeters()); + } + if (other.hasFlpHeadingDegrees()) { + mergeFlpHeadingDegrees(other.getFlpHeadingDegrees()); + } if (other.hasSupplementalLocation()) { mergeSupplementalLocation(other.getSupplementalLocation()); } @@ -2733,27 +3062,27 @@ public Builder mergeFrom( { input.readMessage( getSupplementalLocationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00800000; + bitField0_ |= 0x08000000; break; } // case 146 case 154: { input.readMessage( getSupplementalLocationTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x01000000; + bitField0_ |= 0x10000000; break; } // case 154 case 160: { supplementalLocationSensor_ = input.readEnum(); - bitField0_ |= 0x02000000; + bitField0_ |= 0x20000000; break; } // case 160 case 170: { input.readMessage( getSupplementalLocationAccuracyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x04000000; + bitField0_ |= 0x40000000; break; } // case 170 case 178: @@ -2785,7 +3114,7 @@ public Builder mergeFrom( case 208: { roadSnapped_ = input.readBool(); - bitField0_ |= 0x08000000; + bitField0_ |= 0x80000000; break; } // case 208 case 218: @@ -2800,6 +3129,32 @@ public Builder mergeFrom( bitField0_ |= 0x00200000; break; } // case 224 + case 234: + { + input.readMessage(getFlpLocationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00800000; + break; + } // case 234 + case 242: + { + input.readMessage(getFlpUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x01000000; + break; + } // case 242 + case 250: + { + input.readMessage( + getFlpLatlngAccuracyMetersFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x02000000; + break; + } // case 250 + case 258: + { + input.readMessage( + getFlpHeadingDegreesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x04000000; + break; + } // case 258 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -7305,23 +7660,23 @@ public com.google.protobuf.DoubleValueOrBuilder getRawLocationAccuracyOrBuilder( return rawLocationAccuracyBuilder_; } - private com.google.type.LatLng supplementalLocation_; + private com.google.type.LatLng flpLocation_; private com.google.protobuf.SingleFieldBuilderV3< com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> - supplementalLocationBuilder_; + flpLocationBuilder_; /** * * *
-     * Supplemental location provided by the integrating app.
+     * The location from Android's Fused Location Provider.
      * 
* - * .google.type.LatLng supplemental_location = 18; + * .google.type.LatLng flp_location = 29; * - * @return Whether the supplementalLocation field is set. + * @return Whether the flpLocation field is set. */ - public boolean hasSupplementalLocation() { + public boolean hasFlpLocation() { return ((bitField0_ & 0x00800000) != 0); } @@ -7329,20 +7684,18 @@ public boolean hasSupplementalLocation() { * * *
-     * Supplemental location provided by the integrating app.
+     * The location from Android's Fused Location Provider.
      * 
* - * .google.type.LatLng supplemental_location = 18; + * .google.type.LatLng flp_location = 29; * - * @return The supplementalLocation. + * @return The flpLocation. */ - public com.google.type.LatLng getSupplementalLocation() { - if (supplementalLocationBuilder_ == null) { - return supplementalLocation_ == null - ? com.google.type.LatLng.getDefaultInstance() - : supplementalLocation_; + public com.google.type.LatLng getFlpLocation() { + if (flpLocationBuilder_ == null) { + return flpLocation_ == null ? com.google.type.LatLng.getDefaultInstance() : flpLocation_; } else { - return supplementalLocationBuilder_.getMessage(); + return flpLocationBuilder_.getMessage(); } } @@ -7350,19 +7703,19 @@ public com.google.type.LatLng getSupplementalLocation() { * * *
-     * Supplemental location provided by the integrating app.
+     * The location from Android's Fused Location Provider.
      * 
* - * .google.type.LatLng supplemental_location = 18; + * .google.type.LatLng flp_location = 29; */ - public Builder setSupplementalLocation(com.google.type.LatLng value) { - if (supplementalLocationBuilder_ == null) { + public Builder setFlpLocation(com.google.type.LatLng value) { + if (flpLocationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - supplementalLocation_ = value; + flpLocation_ = value; } else { - supplementalLocationBuilder_.setMessage(value); + flpLocationBuilder_.setMessage(value); } bitField0_ |= 0x00800000; onChanged(); @@ -7373,16 +7726,16 @@ public Builder setSupplementalLocation(com.google.type.LatLng value) { * * *
-     * Supplemental location provided by the integrating app.
+     * The location from Android's Fused Location Provider.
      * 
* - * .google.type.LatLng supplemental_location = 18; + * .google.type.LatLng flp_location = 29; */ - public Builder setSupplementalLocation(com.google.type.LatLng.Builder builderForValue) { - if (supplementalLocationBuilder_ == null) { - supplementalLocation_ = builderForValue.build(); + public Builder setFlpLocation(com.google.type.LatLng.Builder builderForValue) { + if (flpLocationBuilder_ == null) { + flpLocation_ = builderForValue.build(); } else { - supplementalLocationBuilder_.setMessage(builderForValue.build()); + flpLocationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00800000; onChanged(); @@ -7393,25 +7746,805 @@ public Builder setSupplementalLocation(com.google.type.LatLng.Builder builderFor * * *
-     * Supplemental location provided by the integrating app.
+     * The location from Android's Fused Location Provider.
      * 
* - * .google.type.LatLng supplemental_location = 18; + * .google.type.LatLng flp_location = 29; */ - public Builder mergeSupplementalLocation(com.google.type.LatLng value) { - if (supplementalLocationBuilder_ == null) { + public Builder mergeFlpLocation(com.google.type.LatLng value) { + if (flpLocationBuilder_ == null) { if (((bitField0_ & 0x00800000) != 0) - && supplementalLocation_ != null - && supplementalLocation_ != com.google.type.LatLng.getDefaultInstance()) { - getSupplementalLocationBuilder().mergeFrom(value); + && flpLocation_ != null + && flpLocation_ != com.google.type.LatLng.getDefaultInstance()) { + getFlpLocationBuilder().mergeFrom(value); } else { - supplementalLocation_ = value; + flpLocation_ = value; } } else { - supplementalLocationBuilder_.mergeFrom(value); + flpLocationBuilder_.mergeFrom(value); + } + if (flpLocation_ != null) { + bitField0_ |= 0x00800000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The location from Android's Fused Location Provider.
+     * 
+ * + * .google.type.LatLng flp_location = 29; + */ + public Builder clearFlpLocation() { + bitField0_ = (bitField0_ & ~0x00800000); + flpLocation_ = null; + if (flpLocationBuilder_ != null) { + flpLocationBuilder_.dispose(); + flpLocationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The location from Android's Fused Location Provider.
+     * 
+ * + * .google.type.LatLng flp_location = 29; + */ + public com.google.type.LatLng.Builder getFlpLocationBuilder() { + bitField0_ |= 0x00800000; + onChanged(); + return getFlpLocationFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The location from Android's Fused Location Provider.
+     * 
+ * + * .google.type.LatLng flp_location = 29; + */ + public com.google.type.LatLngOrBuilder getFlpLocationOrBuilder() { + if (flpLocationBuilder_ != null) { + return flpLocationBuilder_.getMessageOrBuilder(); + } else { + return flpLocation_ == null ? com.google.type.LatLng.getDefaultInstance() : flpLocation_; + } + } + + /** + * + * + *
+     * The location from Android's Fused Location Provider.
+     * 
+ * + * .google.type.LatLng flp_location = 29; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + getFlpLocationFieldBuilder() { + if (flpLocationBuilder_ == null) { + flpLocationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, + com.google.type.LatLng.Builder, + com.google.type.LatLngOrBuilder>( + getFlpLocation(), getParentForChildren(), isClean()); + flpLocation_ = null; + } + return flpLocationBuilder_; + } + + private com.google.protobuf.Timestamp flpUpdateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + flpUpdateTimeBuilder_; + + /** + * + * + *
+     * Update timestamp of the `flp_location`
+     * 
+ * + * .google.protobuf.Timestamp flp_update_time = 30; + * + * @return Whether the flpUpdateTime field is set. + */ + public boolean hasFlpUpdateTime() { + return ((bitField0_ & 0x01000000) != 0); + } + + /** + * + * + *
+     * Update timestamp of the `flp_location`
+     * 
+ * + * .google.protobuf.Timestamp flp_update_time = 30; + * + * @return The flpUpdateTime. + */ + public com.google.protobuf.Timestamp getFlpUpdateTime() { + if (flpUpdateTimeBuilder_ == null) { + return flpUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : flpUpdateTime_; + } else { + return flpUpdateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Update timestamp of the `flp_location`
+     * 
+ * + * .google.protobuf.Timestamp flp_update_time = 30; + */ + public Builder setFlpUpdateTime(com.google.protobuf.Timestamp value) { + if (flpUpdateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + flpUpdateTime_ = value; + } else { + flpUpdateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x01000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Update timestamp of the `flp_location`
+     * 
+ * + * .google.protobuf.Timestamp flp_update_time = 30; + */ + public Builder setFlpUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (flpUpdateTimeBuilder_ == null) { + flpUpdateTime_ = builderForValue.build(); + } else { + flpUpdateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x01000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Update timestamp of the `flp_location`
+     * 
+ * + * .google.protobuf.Timestamp flp_update_time = 30; + */ + public Builder mergeFlpUpdateTime(com.google.protobuf.Timestamp value) { + if (flpUpdateTimeBuilder_ == null) { + if (((bitField0_ & 0x01000000) != 0) + && flpUpdateTime_ != null + && flpUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getFlpUpdateTimeBuilder().mergeFrom(value); + } else { + flpUpdateTime_ = value; + } + } else { + flpUpdateTimeBuilder_.mergeFrom(value); + } + if (flpUpdateTime_ != null) { + bitField0_ |= 0x01000000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Update timestamp of the `flp_location`
+     * 
+ * + * .google.protobuf.Timestamp flp_update_time = 30; + */ + public Builder clearFlpUpdateTime() { + bitField0_ = (bitField0_ & ~0x01000000); + flpUpdateTime_ = null; + if (flpUpdateTimeBuilder_ != null) { + flpUpdateTimeBuilder_.dispose(); + flpUpdateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Update timestamp of the `flp_location`
+     * 
+ * + * .google.protobuf.Timestamp flp_update_time = 30; + */ + public com.google.protobuf.Timestamp.Builder getFlpUpdateTimeBuilder() { + bitField0_ |= 0x01000000; + onChanged(); + return getFlpUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Update timestamp of the `flp_location`
+     * 
+ * + * .google.protobuf.Timestamp flp_update_time = 30; + */ + public com.google.protobuf.TimestampOrBuilder getFlpUpdateTimeOrBuilder() { + if (flpUpdateTimeBuilder_ != null) { + return flpUpdateTimeBuilder_.getMessageOrBuilder(); + } else { + return flpUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : flpUpdateTime_; + } + } + + /** + * + * + *
+     * Update timestamp of the `flp_location`
+     * 
+ * + * .google.protobuf.Timestamp flp_update_time = 30; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getFlpUpdateTimeFieldBuilder() { + if (flpUpdateTimeBuilder_ == null) { + flpUpdateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getFlpUpdateTime(), getParentForChildren(), isClean()); + flpUpdateTime_ = null; + } + return flpUpdateTimeBuilder_; + } + + private com.google.protobuf.DoubleValue flpLatlngAccuracyMeters_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, + com.google.protobuf.DoubleValue.Builder, + com.google.protobuf.DoubleValueOrBuilder> + flpLatlngAccuracyMetersBuilder_; + + /** + * + * + *
+     * Accuracy of `flp_location` in meters as a radius.
+     * 
+ * + * .google.protobuf.DoubleValue flp_latlng_accuracy_meters = 31; + * + * @return Whether the flpLatlngAccuracyMeters field is set. + */ + public boolean hasFlpLatlngAccuracyMeters() { + return ((bitField0_ & 0x02000000) != 0); + } + + /** + * + * + *
+     * Accuracy of `flp_location` in meters as a radius.
+     * 
+ * + * .google.protobuf.DoubleValue flp_latlng_accuracy_meters = 31; + * + * @return The flpLatlngAccuracyMeters. + */ + public com.google.protobuf.DoubleValue getFlpLatlngAccuracyMeters() { + if (flpLatlngAccuracyMetersBuilder_ == null) { + return flpLatlngAccuracyMeters_ == null + ? com.google.protobuf.DoubleValue.getDefaultInstance() + : flpLatlngAccuracyMeters_; + } else { + return flpLatlngAccuracyMetersBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Accuracy of `flp_location` in meters as a radius.
+     * 
+ * + * .google.protobuf.DoubleValue flp_latlng_accuracy_meters = 31; + */ + public Builder setFlpLatlngAccuracyMeters(com.google.protobuf.DoubleValue value) { + if (flpLatlngAccuracyMetersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + flpLatlngAccuracyMeters_ = value; + } else { + flpLatlngAccuracyMetersBuilder_.setMessage(value); + } + bitField0_ |= 0x02000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Accuracy of `flp_location` in meters as a radius.
+     * 
+ * + * .google.protobuf.DoubleValue flp_latlng_accuracy_meters = 31; + */ + public Builder setFlpLatlngAccuracyMeters( + com.google.protobuf.DoubleValue.Builder builderForValue) { + if (flpLatlngAccuracyMetersBuilder_ == null) { + flpLatlngAccuracyMeters_ = builderForValue.build(); + } else { + flpLatlngAccuracyMetersBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x02000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Accuracy of `flp_location` in meters as a radius.
+     * 
+ * + * .google.protobuf.DoubleValue flp_latlng_accuracy_meters = 31; + */ + public Builder mergeFlpLatlngAccuracyMeters(com.google.protobuf.DoubleValue value) { + if (flpLatlngAccuracyMetersBuilder_ == null) { + if (((bitField0_ & 0x02000000) != 0) + && flpLatlngAccuracyMeters_ != null + && flpLatlngAccuracyMeters_ != com.google.protobuf.DoubleValue.getDefaultInstance()) { + getFlpLatlngAccuracyMetersBuilder().mergeFrom(value); + } else { + flpLatlngAccuracyMeters_ = value; + } + } else { + flpLatlngAccuracyMetersBuilder_.mergeFrom(value); + } + if (flpLatlngAccuracyMeters_ != null) { + bitField0_ |= 0x02000000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Accuracy of `flp_location` in meters as a radius.
+     * 
+ * + * .google.protobuf.DoubleValue flp_latlng_accuracy_meters = 31; + */ + public Builder clearFlpLatlngAccuracyMeters() { + bitField0_ = (bitField0_ & ~0x02000000); + flpLatlngAccuracyMeters_ = null; + if (flpLatlngAccuracyMetersBuilder_ != null) { + flpLatlngAccuracyMetersBuilder_.dispose(); + flpLatlngAccuracyMetersBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Accuracy of `flp_location` in meters as a radius.
+     * 
+ * + * .google.protobuf.DoubleValue flp_latlng_accuracy_meters = 31; + */ + public com.google.protobuf.DoubleValue.Builder getFlpLatlngAccuracyMetersBuilder() { + bitField0_ |= 0x02000000; + onChanged(); + return getFlpLatlngAccuracyMetersFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Accuracy of `flp_location` in meters as a radius.
+     * 
+ * + * .google.protobuf.DoubleValue flp_latlng_accuracy_meters = 31; + */ + public com.google.protobuf.DoubleValueOrBuilder getFlpLatlngAccuracyMetersOrBuilder() { + if (flpLatlngAccuracyMetersBuilder_ != null) { + return flpLatlngAccuracyMetersBuilder_.getMessageOrBuilder(); + } else { + return flpLatlngAccuracyMeters_ == null + ? com.google.protobuf.DoubleValue.getDefaultInstance() + : flpLatlngAccuracyMeters_; + } + } + + /** + * + * + *
+     * Accuracy of `flp_location` in meters as a radius.
+     * 
+ * + * .google.protobuf.DoubleValue flp_latlng_accuracy_meters = 31; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, + com.google.protobuf.DoubleValue.Builder, + com.google.protobuf.DoubleValueOrBuilder> + getFlpLatlngAccuracyMetersFieldBuilder() { + if (flpLatlngAccuracyMetersBuilder_ == null) { + flpLatlngAccuracyMetersBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, + com.google.protobuf.DoubleValue.Builder, + com.google.protobuf.DoubleValueOrBuilder>( + getFlpLatlngAccuracyMeters(), getParentForChildren(), isClean()); + flpLatlngAccuracyMeters_ = null; + } + return flpLatlngAccuracyMetersBuilder_; + } + + private com.google.protobuf.Int32Value flpHeadingDegrees_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, + com.google.protobuf.Int32Value.Builder, + com.google.protobuf.Int32ValueOrBuilder> + flpHeadingDegreesBuilder_; + + /** + * + * + *
+     * Direction the vehicle is moving in degrees, as determined by the Fused
+     * Location Provider. 0 represents North. The valid range is [0,360).
+     * 
+ * + * .google.protobuf.Int32Value flp_heading_degrees = 32; + * + * @return Whether the flpHeadingDegrees field is set. + */ + public boolean hasFlpHeadingDegrees() { + return ((bitField0_ & 0x04000000) != 0); + } + + /** + * + * + *
+     * Direction the vehicle is moving in degrees, as determined by the Fused
+     * Location Provider. 0 represents North. The valid range is [0,360).
+     * 
+ * + * .google.protobuf.Int32Value flp_heading_degrees = 32; + * + * @return The flpHeadingDegrees. + */ + public com.google.protobuf.Int32Value getFlpHeadingDegrees() { + if (flpHeadingDegreesBuilder_ == null) { + return flpHeadingDegrees_ == null + ? com.google.protobuf.Int32Value.getDefaultInstance() + : flpHeadingDegrees_; + } else { + return flpHeadingDegreesBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Direction the vehicle is moving in degrees, as determined by the Fused
+     * Location Provider. 0 represents North. The valid range is [0,360).
+     * 
+ * + * .google.protobuf.Int32Value flp_heading_degrees = 32; + */ + public Builder setFlpHeadingDegrees(com.google.protobuf.Int32Value value) { + if (flpHeadingDegreesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + flpHeadingDegrees_ = value; + } else { + flpHeadingDegreesBuilder_.setMessage(value); + } + bitField0_ |= 0x04000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Direction the vehicle is moving in degrees, as determined by the Fused
+     * Location Provider. 0 represents North. The valid range is [0,360).
+     * 
+ * + * .google.protobuf.Int32Value flp_heading_degrees = 32; + */ + public Builder setFlpHeadingDegrees(com.google.protobuf.Int32Value.Builder builderForValue) { + if (flpHeadingDegreesBuilder_ == null) { + flpHeadingDegrees_ = builderForValue.build(); + } else { + flpHeadingDegreesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x04000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Direction the vehicle is moving in degrees, as determined by the Fused
+     * Location Provider. 0 represents North. The valid range is [0,360).
+     * 
+ * + * .google.protobuf.Int32Value flp_heading_degrees = 32; + */ + public Builder mergeFlpHeadingDegrees(com.google.protobuf.Int32Value value) { + if (flpHeadingDegreesBuilder_ == null) { + if (((bitField0_ & 0x04000000) != 0) + && flpHeadingDegrees_ != null + && flpHeadingDegrees_ != com.google.protobuf.Int32Value.getDefaultInstance()) { + getFlpHeadingDegreesBuilder().mergeFrom(value); + } else { + flpHeadingDegrees_ = value; + } + } else { + flpHeadingDegreesBuilder_.mergeFrom(value); + } + if (flpHeadingDegrees_ != null) { + bitField0_ |= 0x04000000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Direction the vehicle is moving in degrees, as determined by the Fused
+     * Location Provider. 0 represents North. The valid range is [0,360).
+     * 
+ * + * .google.protobuf.Int32Value flp_heading_degrees = 32; + */ + public Builder clearFlpHeadingDegrees() { + bitField0_ = (bitField0_ & ~0x04000000); + flpHeadingDegrees_ = null; + if (flpHeadingDegreesBuilder_ != null) { + flpHeadingDegreesBuilder_.dispose(); + flpHeadingDegreesBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Direction the vehicle is moving in degrees, as determined by the Fused
+     * Location Provider. 0 represents North. The valid range is [0,360).
+     * 
+ * + * .google.protobuf.Int32Value flp_heading_degrees = 32; + */ + public com.google.protobuf.Int32Value.Builder getFlpHeadingDegreesBuilder() { + bitField0_ |= 0x04000000; + onChanged(); + return getFlpHeadingDegreesFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Direction the vehicle is moving in degrees, as determined by the Fused
+     * Location Provider. 0 represents North. The valid range is [0,360).
+     * 
+ * + * .google.protobuf.Int32Value flp_heading_degrees = 32; + */ + public com.google.protobuf.Int32ValueOrBuilder getFlpHeadingDegreesOrBuilder() { + if (flpHeadingDegreesBuilder_ != null) { + return flpHeadingDegreesBuilder_.getMessageOrBuilder(); + } else { + return flpHeadingDegrees_ == null + ? com.google.protobuf.Int32Value.getDefaultInstance() + : flpHeadingDegrees_; + } + } + + /** + * + * + *
+     * Direction the vehicle is moving in degrees, as determined by the Fused
+     * Location Provider. 0 represents North. The valid range is [0,360).
+     * 
+ * + * .google.protobuf.Int32Value flp_heading_degrees = 32; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, + com.google.protobuf.Int32Value.Builder, + com.google.protobuf.Int32ValueOrBuilder> + getFlpHeadingDegreesFieldBuilder() { + if (flpHeadingDegreesBuilder_ == null) { + flpHeadingDegreesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, + com.google.protobuf.Int32Value.Builder, + com.google.protobuf.Int32ValueOrBuilder>( + getFlpHeadingDegrees(), getParentForChildren(), isClean()); + flpHeadingDegrees_ = null; + } + return flpHeadingDegreesBuilder_; + } + + private com.google.type.LatLng supplementalLocation_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + supplementalLocationBuilder_; + + /** + * + * + *
+     * Supplemental location provided by the integrating app.
+     * 
+ * + * .google.type.LatLng supplemental_location = 18; + * + * @return Whether the supplementalLocation field is set. + */ + public boolean hasSupplementalLocation() { + return ((bitField0_ & 0x08000000) != 0); + } + + /** + * + * + *
+     * Supplemental location provided by the integrating app.
+     * 
+ * + * .google.type.LatLng supplemental_location = 18; + * + * @return The supplementalLocation. + */ + public com.google.type.LatLng getSupplementalLocation() { + if (supplementalLocationBuilder_ == null) { + return supplementalLocation_ == null + ? com.google.type.LatLng.getDefaultInstance() + : supplementalLocation_; + } else { + return supplementalLocationBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Supplemental location provided by the integrating app.
+     * 
+ * + * .google.type.LatLng supplemental_location = 18; + */ + public Builder setSupplementalLocation(com.google.type.LatLng value) { + if (supplementalLocationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + supplementalLocation_ = value; + } else { + supplementalLocationBuilder_.setMessage(value); + } + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Supplemental location provided by the integrating app.
+     * 
+ * + * .google.type.LatLng supplemental_location = 18; + */ + public Builder setSupplementalLocation(com.google.type.LatLng.Builder builderForValue) { + if (supplementalLocationBuilder_ == null) { + supplementalLocation_ = builderForValue.build(); + } else { + supplementalLocationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Supplemental location provided by the integrating app.
+     * 
+ * + * .google.type.LatLng supplemental_location = 18; + */ + public Builder mergeSupplementalLocation(com.google.type.LatLng value) { + if (supplementalLocationBuilder_ == null) { + if (((bitField0_ & 0x08000000) != 0) + && supplementalLocation_ != null + && supplementalLocation_ != com.google.type.LatLng.getDefaultInstance()) { + getSupplementalLocationBuilder().mergeFrom(value); + } else { + supplementalLocation_ = value; + } + } else { + supplementalLocationBuilder_.mergeFrom(value); } if (supplementalLocation_ != null) { - bitField0_ |= 0x00800000; + bitField0_ |= 0x08000000; onChanged(); } return this; @@ -7427,7 +8560,7 @@ public Builder mergeSupplementalLocation(com.google.type.LatLng value) { * .google.type.LatLng supplemental_location = 18; */ public Builder clearSupplementalLocation() { - bitField0_ = (bitField0_ & ~0x00800000); + bitField0_ = (bitField0_ & ~0x08000000); supplementalLocation_ = null; if (supplementalLocationBuilder_ != null) { supplementalLocationBuilder_.dispose(); @@ -7447,7 +8580,7 @@ public Builder clearSupplementalLocation() { * .google.type.LatLng supplemental_location = 18; */ public com.google.type.LatLng.Builder getSupplementalLocationBuilder() { - bitField0_ |= 0x00800000; + bitField0_ |= 0x08000000; onChanged(); return getSupplementalLocationFieldBuilder().getBuilder(); } @@ -7514,7 +8647,7 @@ public com.google.type.LatLngOrBuilder getSupplementalLocationOrBuilder() { * @return Whether the supplementalLocationTime field is set. */ public boolean hasSupplementalLocationTime() { - return ((bitField0_ & 0x01000000) != 0); + return ((bitField0_ & 0x10000000) != 0); } /** @@ -7556,7 +8689,7 @@ public Builder setSupplementalLocationTime(com.google.protobuf.Timestamp value) } else { supplementalLocationTimeBuilder_.setMessage(value); } - bitField0_ |= 0x01000000; + bitField0_ |= 0x10000000; onChanged(); return this; } @@ -7577,7 +8710,7 @@ public Builder setSupplementalLocationTime( } else { supplementalLocationTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x01000000; + bitField0_ |= 0x10000000; onChanged(); return this; } @@ -7593,7 +8726,7 @@ public Builder setSupplementalLocationTime( */ public Builder mergeSupplementalLocationTime(com.google.protobuf.Timestamp value) { if (supplementalLocationTimeBuilder_ == null) { - if (((bitField0_ & 0x01000000) != 0) + if (((bitField0_ & 0x10000000) != 0) && supplementalLocationTime_ != null && supplementalLocationTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSupplementalLocationTimeBuilder().mergeFrom(value); @@ -7604,7 +8737,7 @@ public Builder mergeSupplementalLocationTime(com.google.protobuf.Timestamp value supplementalLocationTimeBuilder_.mergeFrom(value); } if (supplementalLocationTime_ != null) { - bitField0_ |= 0x01000000; + bitField0_ |= 0x10000000; onChanged(); } return this; @@ -7620,7 +8753,7 @@ public Builder mergeSupplementalLocationTime(com.google.protobuf.Timestamp value * .google.protobuf.Timestamp supplemental_location_time = 19; */ public Builder clearSupplementalLocationTime() { - bitField0_ = (bitField0_ & ~0x01000000); + bitField0_ = (bitField0_ & ~0x10000000); supplementalLocationTime_ = null; if (supplementalLocationTimeBuilder_ != null) { supplementalLocationTimeBuilder_.dispose(); @@ -7640,7 +8773,7 @@ public Builder clearSupplementalLocationTime() { * .google.protobuf.Timestamp supplemental_location_time = 19; */ public com.google.protobuf.Timestamp.Builder getSupplementalLocationTimeBuilder() { - bitField0_ |= 0x01000000; + bitField0_ |= 0x10000000; onChanged(); return getSupplementalLocationTimeFieldBuilder().getBuilder(); } @@ -7728,7 +8861,7 @@ public int getSupplementalLocationSensorValue() { */ public Builder setSupplementalLocationSensorValue(int value) { supplementalLocationSensor_ = value; - bitField0_ |= 0x02000000; + bitField0_ |= 0x20000000; onChanged(); return this; } @@ -7778,7 +8911,7 @@ public Builder setSupplementalLocationSensor( if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x02000000; + bitField0_ |= 0x20000000; supplementalLocationSensor_ = value.getNumber(); onChanged(); return this; @@ -7799,7 +8932,7 @@ public Builder setSupplementalLocationSensor( * @return This builder for chaining. */ public Builder clearSupplementalLocationSensor() { - bitField0_ = (bitField0_ & ~0x02000000); + bitField0_ = (bitField0_ & ~0x20000000); supplementalLocationSensor_ = 0; onChanged(); return this; @@ -7824,7 +8957,7 @@ public Builder clearSupplementalLocationSensor() { * @return Whether the supplementalLocationAccuracy field is set. */ public boolean hasSupplementalLocationAccuracy() { - return ((bitField0_ & 0x04000000) != 0); + return ((bitField0_ & 0x40000000) != 0); } /** @@ -7866,7 +8999,7 @@ public Builder setSupplementalLocationAccuracy(com.google.protobuf.DoubleValue v } else { supplementalLocationAccuracyBuilder_.setMessage(value); } - bitField0_ |= 0x04000000; + bitField0_ |= 0x40000000; onChanged(); return this; } @@ -7887,7 +9020,7 @@ public Builder setSupplementalLocationAccuracy( } else { supplementalLocationAccuracyBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x04000000; + bitField0_ |= 0x40000000; onChanged(); return this; } @@ -7903,7 +9036,7 @@ public Builder setSupplementalLocationAccuracy( */ public Builder mergeSupplementalLocationAccuracy(com.google.protobuf.DoubleValue value) { if (supplementalLocationAccuracyBuilder_ == null) { - if (((bitField0_ & 0x04000000) != 0) + if (((bitField0_ & 0x40000000) != 0) && supplementalLocationAccuracy_ != null && supplementalLocationAccuracy_ != com.google.protobuf.DoubleValue.getDefaultInstance()) { @@ -7915,7 +9048,7 @@ public Builder mergeSupplementalLocationAccuracy(com.google.protobuf.DoubleValue supplementalLocationAccuracyBuilder_.mergeFrom(value); } if (supplementalLocationAccuracy_ != null) { - bitField0_ |= 0x04000000; + bitField0_ |= 0x40000000; onChanged(); } return this; @@ -7931,7 +9064,7 @@ public Builder mergeSupplementalLocationAccuracy(com.google.protobuf.DoubleValue * .google.protobuf.DoubleValue supplemental_location_accuracy = 21; */ public Builder clearSupplementalLocationAccuracy() { - bitField0_ = (bitField0_ & ~0x04000000); + bitField0_ = (bitField0_ & ~0x40000000); supplementalLocationAccuracy_ = null; if (supplementalLocationAccuracyBuilder_ != null) { supplementalLocationAccuracyBuilder_.dispose(); @@ -7951,7 +9084,7 @@ public Builder clearSupplementalLocationAccuracy() { * .google.protobuf.DoubleValue supplemental_location_accuracy = 21; */ public com.google.protobuf.DoubleValue.Builder getSupplementalLocationAccuracyBuilder() { - bitField0_ |= 0x04000000; + bitField0_ |= 0x40000000; onChanged(); return getSupplementalLocationAccuracyFieldBuilder().getBuilder(); } @@ -8013,7 +9146,7 @@ public com.google.protobuf.DoubleValueOrBuilder getSupplementalLocationAccuracyO * bool road_snapped = 26 [deprecated = true]; * * @deprecated maps.fleetengine.delivery.v1.DeliveryVehicleLocation.road_snapped is deprecated. - * See google/maps/fleetengine/delivery/v1/common.proto;l=160 + * See google/maps/fleetengine/delivery/v1/common.proto;l=173 * @return The roadSnapped. */ @java.lang.Override @@ -8032,7 +9165,7 @@ public boolean getRoadSnapped() { * bool road_snapped = 26 [deprecated = true]; * * @deprecated maps.fleetengine.delivery.v1.DeliveryVehicleLocation.road_snapped is deprecated. - * See google/maps/fleetengine/delivery/v1/common.proto;l=160 + * See google/maps/fleetengine/delivery/v1/common.proto;l=173 * @param value The roadSnapped to set. * @return This builder for chaining. */ @@ -8040,7 +9173,7 @@ public boolean getRoadSnapped() { public Builder setRoadSnapped(boolean value) { roadSnapped_ = value; - bitField0_ |= 0x08000000; + bitField0_ |= 0x80000000; onChanged(); return this; } @@ -8055,12 +9188,12 @@ public Builder setRoadSnapped(boolean value) { * bool road_snapped = 26 [deprecated = true]; * * @deprecated maps.fleetengine.delivery.v1.DeliveryVehicleLocation.road_snapped is deprecated. - * See google/maps/fleetengine/delivery/v1/common.proto;l=160 + * See google/maps/fleetengine/delivery/v1/common.proto;l=173 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearRoadSnapped() { - bitField0_ = (bitField0_ & ~0x08000000); + bitField0_ = (bitField0_ & ~0x80000000); roadSnapped_ = false; onChanged(); return this; diff --git a/java-maps-fleetengine-delivery/proto-google-maps-fleetengine-delivery-v1/src/main/java/com/google/maps/fleetengine/delivery/v1/DeliveryVehicleLocationOrBuilder.java b/java-maps-fleetengine-delivery/proto-google-maps-fleetengine-delivery-v1/src/main/java/com/google/maps/fleetengine/delivery/v1/DeliveryVehicleLocationOrBuilder.java index 2323550787a8..b4911f562e33 100644 --- a/java-maps-fleetengine-delivery/proto-google-maps-fleetengine-delivery-v1/src/main/java/com/google/maps/fleetengine/delivery/v1/DeliveryVehicleLocationOrBuilder.java +++ b/java-maps-fleetengine-delivery/proto-google-maps-fleetengine-delivery-v1/src/main/java/com/google/maps/fleetengine/delivery/v1/DeliveryVehicleLocationOrBuilder.java @@ -944,6 +944,157 @@ public interface DeliveryVehicleLocationOrBuilder */ com.google.protobuf.DoubleValueOrBuilder getRawLocationAccuracyOrBuilder(); + /** + * + * + *
+   * The location from Android's Fused Location Provider.
+   * 
+ * + * .google.type.LatLng flp_location = 29; + * + * @return Whether the flpLocation field is set. + */ + boolean hasFlpLocation(); + + /** + * + * + *
+   * The location from Android's Fused Location Provider.
+   * 
+ * + * .google.type.LatLng flp_location = 29; + * + * @return The flpLocation. + */ + com.google.type.LatLng getFlpLocation(); + + /** + * + * + *
+   * The location from Android's Fused Location Provider.
+   * 
+ * + * .google.type.LatLng flp_location = 29; + */ + com.google.type.LatLngOrBuilder getFlpLocationOrBuilder(); + + /** + * + * + *
+   * Update timestamp of the `flp_location`
+   * 
+ * + * .google.protobuf.Timestamp flp_update_time = 30; + * + * @return Whether the flpUpdateTime field is set. + */ + boolean hasFlpUpdateTime(); + + /** + * + * + *
+   * Update timestamp of the `flp_location`
+   * 
+ * + * .google.protobuf.Timestamp flp_update_time = 30; + * + * @return The flpUpdateTime. + */ + com.google.protobuf.Timestamp getFlpUpdateTime(); + + /** + * + * + *
+   * Update timestamp of the `flp_location`
+   * 
+ * + * .google.protobuf.Timestamp flp_update_time = 30; + */ + com.google.protobuf.TimestampOrBuilder getFlpUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Accuracy of `flp_location` in meters as a radius.
+   * 
+ * + * .google.protobuf.DoubleValue flp_latlng_accuracy_meters = 31; + * + * @return Whether the flpLatlngAccuracyMeters field is set. + */ + boolean hasFlpLatlngAccuracyMeters(); + + /** + * + * + *
+   * Accuracy of `flp_location` in meters as a radius.
+   * 
+ * + * .google.protobuf.DoubleValue flp_latlng_accuracy_meters = 31; + * + * @return The flpLatlngAccuracyMeters. + */ + com.google.protobuf.DoubleValue getFlpLatlngAccuracyMeters(); + + /** + * + * + *
+   * Accuracy of `flp_location` in meters as a radius.
+   * 
+ * + * .google.protobuf.DoubleValue flp_latlng_accuracy_meters = 31; + */ + com.google.protobuf.DoubleValueOrBuilder getFlpLatlngAccuracyMetersOrBuilder(); + + /** + * + * + *
+   * Direction the vehicle is moving in degrees, as determined by the Fused
+   * Location Provider. 0 represents North. The valid range is [0,360).
+   * 
+ * + * .google.protobuf.Int32Value flp_heading_degrees = 32; + * + * @return Whether the flpHeadingDegrees field is set. + */ + boolean hasFlpHeadingDegrees(); + + /** + * + * + *
+   * Direction the vehicle is moving in degrees, as determined by the Fused
+   * Location Provider. 0 represents North. The valid range is [0,360).
+   * 
+ * + * .google.protobuf.Int32Value flp_heading_degrees = 32; + * + * @return The flpHeadingDegrees. + */ + com.google.protobuf.Int32Value getFlpHeadingDegrees(); + + /** + * + * + *
+   * Direction the vehicle is moving in degrees, as determined by the Fused
+   * Location Provider. 0 represents North. The valid range is [0,360).
+   * 
+ * + * .google.protobuf.Int32Value flp_heading_degrees = 32; + */ + com.google.protobuf.Int32ValueOrBuilder getFlpHeadingDegreesOrBuilder(); + /** * * @@ -1098,7 +1249,7 @@ public interface DeliveryVehicleLocationOrBuilder * bool road_snapped = 26 [deprecated = true]; * * @deprecated maps.fleetengine.delivery.v1.DeliveryVehicleLocation.road_snapped is deprecated. - * See google/maps/fleetengine/delivery/v1/common.proto;l=160 + * See google/maps/fleetengine/delivery/v1/common.proto;l=173 * @return The roadSnapped. */ @java.lang.Deprecated diff --git a/java-maps-fleetengine-delivery/proto-google-maps-fleetengine-delivery-v1/src/main/proto/google/maps/fleetengine/delivery/v1/common.proto b/java-maps-fleetengine-delivery/proto-google-maps-fleetengine-delivery-v1/src/main/proto/google/maps/fleetengine/delivery/v1/common.proto index 01a62c0b35e5..88ceee249040 100644 --- a/java-maps-fleetengine-delivery/proto-google-maps-fleetengine-delivery-v1/src/main/proto/google/maps/fleetengine/delivery/v1/common.proto +++ b/java-maps-fleetengine-delivery/proto-google-maps-fleetengine-delivery-v1/src/main/proto/google/maps/fleetengine/delivery/v1/common.proto @@ -144,6 +144,19 @@ message DeliveryVehicleLocation { // Accuracy of `raw_location` as a radius, in meters. google.protobuf.DoubleValue raw_location_accuracy = 25; + // The location from Android's Fused Location Provider. + google.type.LatLng flp_location = 29; + + // Update timestamp of the `flp_location` + google.protobuf.Timestamp flp_update_time = 30; + + // Accuracy of `flp_location` in meters as a radius. + google.protobuf.DoubleValue flp_latlng_accuracy_meters = 31; + + // Direction the vehicle is moving in degrees, as determined by the Fused + // Location Provider. 0 represents North. The valid range is [0,360). + google.protobuf.Int32Value flp_heading_degrees = 32; + // Supplemental location provided by the integrating app. google.type.LatLng supplemental_location = 18; diff --git a/java-maps-fleetengine/CHANGELOG.md b/java-maps-fleetengine/CHANGELOG.md index 8b7e404792ba..740f8402bddf 100644 --- a/java-maps-fleetengine/CHANGELOG.md +++ b/java-maps-fleetengine/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.15.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.14.0 (2025-06-25) ### Dependencies diff --git a/java-maps-fleetengine/README.md b/java-maps-fleetengine/README.md index 767b8e2d6abf..03db3b7a798b 100644 --- a/java-maps-fleetengine/README.md +++ b/java-maps-fleetengine/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.maps google-maps-fleetengine - 0.13.0 + 0.14.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-fleetengine:0.13.0' +implementation 'com.google.maps:google-maps-fleetengine:0.14.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-fleetengine" % "0.13.0" +libraryDependencies += "com.google.maps" % "google-maps-fleetengine" % "0.14.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-fleetengine.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-fleetengine/0.13.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-fleetengine/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-maps-fleetengine/google-maps-fleetengine-bom/pom.xml b/java-maps-fleetengine/google-maps-fleetengine-bom/pom.xml index 55b62c1fcb5d..003e76428a46 100644 --- a/java-maps-fleetengine/google-maps-fleetengine-bom/pom.xml +++ b/java-maps-fleetengine/google-maps-fleetengine-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.maps google-maps-fleetengine-bom - 0.14.0 + 0.15.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.maps google-maps-fleetengine - 0.14.0 + 0.15.0 com.google.maps.api.grpc grpc-google-maps-fleetengine-v1 - 0.14.0 + 0.15.0 com.google.maps.api.grpc proto-google-maps-fleetengine-v1 - 0.14.0 + 0.15.0
diff --git a/java-maps-fleetengine/google-maps-fleetengine/pom.xml b/java-maps-fleetengine/google-maps-fleetengine/pom.xml index 7e8ace89381f..d8edae41bc20 100644 --- a/java-maps-fleetengine/google-maps-fleetengine/pom.xml +++ b/java-maps-fleetengine/google-maps-fleetengine/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.maps google-maps-fleetengine - 0.14.0 + 0.15.0 jar Google Local Rides and Deliveries API Local Rides and Deliveries API Enables Fleet Engine for access to the On Demand Rides and Deliveries and Last Mile Fleet Solution APIs. Customer's use of Google Maps Content in the Cloud Logging Services is subject to the Google Maps Platform Terms of Service located at https://cloud.google.com/maps-platform/terms. com.google.maps google-maps-fleetengine-parent - 0.14.0 + 0.15.0 google-maps-fleetengine diff --git a/java-maps-fleetengine/google-maps-fleetengine/src/main/resources/META-INF/native-image/com.google.maps.fleetengine.v1/reflect-config.json b/java-maps-fleetengine/google-maps-fleetengine/src/main/resources/META-INF/native-image/com.google.maps.fleetengine.v1/reflect-config.json index 9e88ac2ad545..7fd649b259de 100644 --- a/java-maps-fleetengine/google-maps-fleetengine/src/main/resources/META-INF/native-image/com.google.maps.fleetengine.v1/reflect-config.json +++ b/java-maps-fleetengine/google-maps-fleetengine/src/main/resources/META-INF/native-image/com.google.maps.fleetengine.v1/reflect-config.json @@ -1016,6 +1016,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.maps.fleetengine.v1.TripAttribute", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.fleetengine.v1.TripAttribute$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.maps.fleetengine.v1.TripStatus", "queryAllDeclaredConstructors": true, diff --git a/java-maps-fleetengine/google-maps-fleetengine/src/test/java/com/google/maps/fleetengine/v1/TripServiceClientTest.java b/java-maps-fleetengine/google-maps-fleetengine/src/test/java/com/google/maps/fleetengine/v1/TripServiceClientTest.java index 0ae463750e3f..be703abdd89b 100644 --- a/java-maps-fleetengine/google-maps-fleetengine/src/test/java/com/google/maps/fleetengine/v1/TripServiceClientTest.java +++ b/java-maps-fleetengine/google-maps-fleetengine/src/test/java/com/google/maps/fleetengine/v1/TripServiceClientTest.java @@ -122,6 +122,7 @@ public void createTripTest() throws Exception { .setLastLocation(VehicleLocation.newBuilder().build()) .setLastLocationSnappable(true) .setView(TripView.forNumber(0)) + .addAllAttributes(new ArrayList()) .build(); mockTripService.addResponse(expectedResponse); @@ -207,6 +208,7 @@ public void getTripTest() throws Exception { .setLastLocation(VehicleLocation.newBuilder().build()) .setLastLocationSnappable(true) .setView(TripView.forNumber(0)) + .addAllAttributes(new ArrayList()) .build(); mockTripService.addResponse(expectedResponse); @@ -496,6 +498,7 @@ public void updateTripTest() throws Exception { .setLastLocation(VehicleLocation.newBuilder().build()) .setLastLocationSnappable(true) .setView(TripView.forNumber(0)) + .addAllAttributes(new ArrayList()) .build(); mockTripService.addResponse(expectedResponse); diff --git a/java-maps-fleetengine/grpc-google-maps-fleetengine-v1/pom.xml b/java-maps-fleetengine/grpc-google-maps-fleetengine-v1/pom.xml index 908815d80132..1e5ab6ac4f4f 100644 --- a/java-maps-fleetengine/grpc-google-maps-fleetengine-v1/pom.xml +++ b/java-maps-fleetengine/grpc-google-maps-fleetengine-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc grpc-google-maps-fleetengine-v1 - 0.14.0 + 0.15.0 grpc-google-maps-fleetengine-v1 GRPC library for google-maps-fleetengine com.google.maps google-maps-fleetengine-parent - 0.14.0 + 0.15.0 diff --git a/java-maps-fleetengine/pom.xml b/java-maps-fleetengine/pom.xml index 5116e520b4dd..7d021c204e51 100644 --- a/java-maps-fleetengine/pom.xml +++ b/java-maps-fleetengine/pom.xml @@ -4,7 +4,7 @@ com.google.maps google-maps-fleetengine-parent pom - 0.14.0 + 0.15.0 Google Local Rides and Deliveries API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.maps google-maps-fleetengine - 0.14.0 + 0.15.0 com.google.maps.api.grpc grpc-google-maps-fleetengine-v1 - 0.14.0 + 0.15.0 com.google.maps.api.grpc proto-google-maps-fleetengine-v1 - 0.14.0 + 0.15.0 diff --git a/java-maps-fleetengine/proto-google-maps-fleetengine-v1/pom.xml b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/pom.xml index db64c4effd74..5af68bc3b8ff 100644 --- a/java-maps-fleetengine/proto-google-maps-fleetengine-v1/pom.xml +++ b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc proto-google-maps-fleetengine-v1 - 0.14.0 + 0.15.0 proto-google-maps-fleetengine-v1 Proto library for google-maps-fleetengine com.google.maps google-maps-fleetengine-parent - 0.14.0 + 0.15.0 diff --git a/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/FleetEngine.java b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/FleetEngine.java index 91c4cf30032d..645e34e0a97c 100644 --- a/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/FleetEngine.java +++ b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/FleetEngine.java @@ -48,6 +48,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_maps_fleetengine_v1_VehicleLocation_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_maps_fleetengine_v1_VehicleLocation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_maps_fleetengine_v1_TripAttribute_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_maps_fleetengine_v1_TripAttribute_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -95,7 +99,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014string_value\030\003 \001(\tH\000\022\024\n\n" + "bool_value\030\004 \001(\010H\000\022\026\n" + "\014number_value\030\005 \001(\001H\000B\031\n" - + "\027vehicle_attribute_value\"\244\014\n" + + "\027vehicle_attribute_value\"\200\016\n" + "\017VehicleLocation\022%\n" + "\010location\030\001 \001(\0132\023.google.type.LatLng\022=\n" + "\023horizontal_accuracy\030\010" @@ -126,14 +130,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014raw_location\030\020 \001(\0132\023.google.type.LatLng\0225\n" + "\021raw_location_time\030\021 \001(\0132\032.google.protobuf.Timestamp\022@\n" + "\023raw_location_sensor\030\034 \001(\0162#.maps.fleetengine.v1.LocationSensor\022;\n" - + "\025raw_location_accuracy\030\031 \001(\0132\034.google.protobuf.DoubleValue\0222\n" + + "\025raw_location_accuracy\030\031 \001(\0132\034.google.protobuf.DoubleValue\022)\n" + + "\014flp_location\030\035 \001(\0132\023.google.type.LatLng\0223\n" + + "\017flp_update_time\030\036 \001(\0132\032.google.protobuf.Timestamp\022@\n" + + "\032flp_latlng_accuracy_meters\030\037" + + " \001(\0132\034.google.protobuf.DoubleValue\0228\n" + + "\023flp_heading_degrees\030 \001(\0132\033.google.protobuf.Int32Value\0222\n" + "\025supplemental_location\030\022 \001(\0132\023.google.type.LatLng\022>\n" + "\032supplemental_location_time\030\023 \001(\0132\032.google.protobuf.Timestamp\022I\n" + "\034supplemental_location_sensor\030\024" + " \001(\0162#.maps.fleetengine.v1.LocationSensor\022D\n" + "\036supplemental_location_accuracy\030\025" + " \001(\0132\034.google.protobuf.DoubleValue\022\030\n" - + "\014road_snapped\030\032 \001(\010B\002\030\001*<\n" + + "\014road_snapped\030\032 \001(\010B\002\030\001\"z\n\r" + + "TripAttribute\022\013\n" + + "\003key\030\001 \001(\t\022\026\n" + + "\014string_value\030\002 \001(\tH\000\022\024\n\n" + + "bool_value\030\003 \001(\010H\000\022\026\n" + + "\014number_value\030\004 \001(\001H\000B\026\n" + + "\024trip_attribute_value*<\n" + "\010TripType\022\025\n" + "\021UNKNOWN_TRIP_TYPE\020\000\022\n\n" + "\006SHARED\020\001\022\r\n" @@ -163,11 +178,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025FLEET_ENGINE_LOCATION\020\006\022\033\n" + "\027FUSED_LOCATION_PROVIDER\020d\022\022\n\r" + "CORE_LOCATION\020\310\001B\327\001\n" - + "\036com.google.maps.fleetengine.v1B\013FleetEngineP" - + "\001ZFcloud.google.com/go/maps/fleetengine/" - + "apiv1/fleetenginepb;fleetenginepb\242\002\003CFE\252" - + "\002\032Google.Maps.FleetEngine.V1\312\002\032Google\\Ma" - + "ps\\FleetEngine\\V1\352\002\035Google::Maps::FleetEngine::V1b\006proto3" + + "\036com.google.maps.fleetengine.v1B\013FleetEngineP\001ZFcloud.google." + + "com/go/maps/fleetengine/apiv1/fleetengin" + + "epb;fleetenginepb\242\002\003CFE\252\002\032Google.Maps.Fl" + + "eetEngine.V1\312\002\032Google\\Maps\\FleetEngine\\V" + + "1\352\002\035Google::Maps::FleetEngine::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -250,12 +265,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RawLocationTime", "RawLocationSensor", "RawLocationAccuracy", + "FlpLocation", + "FlpUpdateTime", + "FlpLatlngAccuracyMeters", + "FlpHeadingDegrees", "SupplementalLocation", "SupplementalLocationTime", "SupplementalLocationSensor", "SupplementalLocationAccuracy", "RoadSnapped", }); + internal_static_maps_fleetengine_v1_TripAttribute_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_maps_fleetengine_v1_TripAttribute_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_maps_fleetengine_v1_TripAttribute_descriptor, + new java.lang.String[] { + "Key", "StringValue", "BoolValue", "NumberValue", "TripAttributeValue", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/GetTripRequest.java b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/GetTripRequest.java index bc8a62efe3db..1c7fdeb4569f 100644 --- a/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/GetTripRequest.java +++ b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/GetTripRequest.java @@ -289,17 +289,20 @@ public com.google.protobuf.TimestampOrBuilder getCurrentRouteSegmentVersionOrBui * * *
-   * Indicates the minimum timestamp (exclusive) for which
-   * `Trip.remaining_waypoints` are retrieved. If they are unchanged since this
-   * timestamp, the `remaining_waypoints` are not set in the response. If this
-   * field is unspecified, `remaining_waypoints` is always retrieved.
+   * Deprecated: `Trip.remaining_waypoints` are always retrieved. Use
+   * `remaining_waypoints_route_version` to control when
+   * `Trip.remaining_waypoints.traffic_to_waypoint` and
+   * `Trip.remaining_waypoints.path_to_waypoint` data are retrieved.
    * 
* - * .google.protobuf.Timestamp remaining_waypoints_version = 7; + * .google.protobuf.Timestamp remaining_waypoints_version = 7 [deprecated = true]; * + * @deprecated maps.fleetengine.v1.GetTripRequest.remaining_waypoints_version is deprecated. See + * google/maps/fleetengine/v1/trip_api.proto;l=228 * @return Whether the remainingWaypointsVersion field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasRemainingWaypointsVersion() { return ((bitField0_ & 0x00000004) != 0); } @@ -308,17 +311,20 @@ public boolean hasRemainingWaypointsVersion() { * * *
-   * Indicates the minimum timestamp (exclusive) for which
-   * `Trip.remaining_waypoints` are retrieved. If they are unchanged since this
-   * timestamp, the `remaining_waypoints` are not set in the response. If this
-   * field is unspecified, `remaining_waypoints` is always retrieved.
+   * Deprecated: `Trip.remaining_waypoints` are always retrieved. Use
+   * `remaining_waypoints_route_version` to control when
+   * `Trip.remaining_waypoints.traffic_to_waypoint` and
+   * `Trip.remaining_waypoints.path_to_waypoint` data are retrieved.
    * 
* - * .google.protobuf.Timestamp remaining_waypoints_version = 7; + * .google.protobuf.Timestamp remaining_waypoints_version = 7 [deprecated = true]; * + * @deprecated maps.fleetengine.v1.GetTripRequest.remaining_waypoints_version is deprecated. See + * google/maps/fleetengine/v1/trip_api.proto;l=228 * @return The remainingWaypointsVersion. */ @java.lang.Override + @java.lang.Deprecated public com.google.protobuf.Timestamp getRemainingWaypointsVersion() { return remainingWaypointsVersion_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() @@ -329,15 +335,16 @@ public com.google.protobuf.Timestamp getRemainingWaypointsVersion() { * * *
-   * Indicates the minimum timestamp (exclusive) for which
-   * `Trip.remaining_waypoints` are retrieved. If they are unchanged since this
-   * timestamp, the `remaining_waypoints` are not set in the response. If this
-   * field is unspecified, `remaining_waypoints` is always retrieved.
+   * Deprecated: `Trip.remaining_waypoints` are always retrieved. Use
+   * `remaining_waypoints_route_version` to control when
+   * `Trip.remaining_waypoints.traffic_to_waypoint` and
+   * `Trip.remaining_waypoints.path_to_waypoint` data are retrieved.
    * 
* - * .google.protobuf.Timestamp remaining_waypoints_version = 7; + * .google.protobuf.Timestamp remaining_waypoints_version = 7 [deprecated = true]; */ @java.lang.Override + @java.lang.Deprecated public com.google.protobuf.TimestampOrBuilder getRemainingWaypointsVersionOrBuilder() { return remainingWaypointsVersion_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() @@ -1774,16 +1781,19 @@ public com.google.protobuf.TimestampOrBuilder getCurrentRouteSegmentVersionOrBui * * *
-     * Indicates the minimum timestamp (exclusive) for which
-     * `Trip.remaining_waypoints` are retrieved. If they are unchanged since this
-     * timestamp, the `remaining_waypoints` are not set in the response. If this
-     * field is unspecified, `remaining_waypoints` is always retrieved.
+     * Deprecated: `Trip.remaining_waypoints` are always retrieved. Use
+     * `remaining_waypoints_route_version` to control when
+     * `Trip.remaining_waypoints.traffic_to_waypoint` and
+     * `Trip.remaining_waypoints.path_to_waypoint` data are retrieved.
      * 
* - * .google.protobuf.Timestamp remaining_waypoints_version = 7; + * .google.protobuf.Timestamp remaining_waypoints_version = 7 [deprecated = true]; * + * @deprecated maps.fleetengine.v1.GetTripRequest.remaining_waypoints_version is deprecated. See + * google/maps/fleetengine/v1/trip_api.proto;l=228 * @return Whether the remainingWaypointsVersion field is set. */ + @java.lang.Deprecated public boolean hasRemainingWaypointsVersion() { return ((bitField0_ & 0x00000010) != 0); } @@ -1792,16 +1802,19 @@ public boolean hasRemainingWaypointsVersion() { * * *
-     * Indicates the minimum timestamp (exclusive) for which
-     * `Trip.remaining_waypoints` are retrieved. If they are unchanged since this
-     * timestamp, the `remaining_waypoints` are not set in the response. If this
-     * field is unspecified, `remaining_waypoints` is always retrieved.
+     * Deprecated: `Trip.remaining_waypoints` are always retrieved. Use
+     * `remaining_waypoints_route_version` to control when
+     * `Trip.remaining_waypoints.traffic_to_waypoint` and
+     * `Trip.remaining_waypoints.path_to_waypoint` data are retrieved.
      * 
* - * .google.protobuf.Timestamp remaining_waypoints_version = 7; + * .google.protobuf.Timestamp remaining_waypoints_version = 7 [deprecated = true]; * + * @deprecated maps.fleetengine.v1.GetTripRequest.remaining_waypoints_version is deprecated. See + * google/maps/fleetengine/v1/trip_api.proto;l=228 * @return The remainingWaypointsVersion. */ + @java.lang.Deprecated public com.google.protobuf.Timestamp getRemainingWaypointsVersion() { if (remainingWaypointsVersionBuilder_ == null) { return remainingWaypointsVersion_ == null @@ -1816,14 +1829,15 @@ public com.google.protobuf.Timestamp getRemainingWaypointsVersion() { * * *
-     * Indicates the minimum timestamp (exclusive) for which
-     * `Trip.remaining_waypoints` are retrieved. If they are unchanged since this
-     * timestamp, the `remaining_waypoints` are not set in the response. If this
-     * field is unspecified, `remaining_waypoints` is always retrieved.
+     * Deprecated: `Trip.remaining_waypoints` are always retrieved. Use
+     * `remaining_waypoints_route_version` to control when
+     * `Trip.remaining_waypoints.traffic_to_waypoint` and
+     * `Trip.remaining_waypoints.path_to_waypoint` data are retrieved.
      * 
* - * .google.protobuf.Timestamp remaining_waypoints_version = 7; + * .google.protobuf.Timestamp remaining_waypoints_version = 7 [deprecated = true]; */ + @java.lang.Deprecated public Builder setRemainingWaypointsVersion(com.google.protobuf.Timestamp value) { if (remainingWaypointsVersionBuilder_ == null) { if (value == null) { @@ -1842,14 +1856,15 @@ public Builder setRemainingWaypointsVersion(com.google.protobuf.Timestamp value) * * *
-     * Indicates the minimum timestamp (exclusive) for which
-     * `Trip.remaining_waypoints` are retrieved. If they are unchanged since this
-     * timestamp, the `remaining_waypoints` are not set in the response. If this
-     * field is unspecified, `remaining_waypoints` is always retrieved.
+     * Deprecated: `Trip.remaining_waypoints` are always retrieved. Use
+     * `remaining_waypoints_route_version` to control when
+     * `Trip.remaining_waypoints.traffic_to_waypoint` and
+     * `Trip.remaining_waypoints.path_to_waypoint` data are retrieved.
      * 
* - * .google.protobuf.Timestamp remaining_waypoints_version = 7; + * .google.protobuf.Timestamp remaining_waypoints_version = 7 [deprecated = true]; */ + @java.lang.Deprecated public Builder setRemainingWaypointsVersion( com.google.protobuf.Timestamp.Builder builderForValue) { if (remainingWaypointsVersionBuilder_ == null) { @@ -1866,14 +1881,15 @@ public Builder setRemainingWaypointsVersion( * * *
-     * Indicates the minimum timestamp (exclusive) for which
-     * `Trip.remaining_waypoints` are retrieved. If they are unchanged since this
-     * timestamp, the `remaining_waypoints` are not set in the response. If this
-     * field is unspecified, `remaining_waypoints` is always retrieved.
+     * Deprecated: `Trip.remaining_waypoints` are always retrieved. Use
+     * `remaining_waypoints_route_version` to control when
+     * `Trip.remaining_waypoints.traffic_to_waypoint` and
+     * `Trip.remaining_waypoints.path_to_waypoint` data are retrieved.
      * 
* - * .google.protobuf.Timestamp remaining_waypoints_version = 7; + * .google.protobuf.Timestamp remaining_waypoints_version = 7 [deprecated = true]; */ + @java.lang.Deprecated public Builder mergeRemainingWaypointsVersion(com.google.protobuf.Timestamp value) { if (remainingWaypointsVersionBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) @@ -1897,14 +1913,15 @@ public Builder mergeRemainingWaypointsVersion(com.google.protobuf.Timestamp valu * * *
-     * Indicates the minimum timestamp (exclusive) for which
-     * `Trip.remaining_waypoints` are retrieved. If they are unchanged since this
-     * timestamp, the `remaining_waypoints` are not set in the response. If this
-     * field is unspecified, `remaining_waypoints` is always retrieved.
+     * Deprecated: `Trip.remaining_waypoints` are always retrieved. Use
+     * `remaining_waypoints_route_version` to control when
+     * `Trip.remaining_waypoints.traffic_to_waypoint` and
+     * `Trip.remaining_waypoints.path_to_waypoint` data are retrieved.
      * 
* - * .google.protobuf.Timestamp remaining_waypoints_version = 7; + * .google.protobuf.Timestamp remaining_waypoints_version = 7 [deprecated = true]; */ + @java.lang.Deprecated public Builder clearRemainingWaypointsVersion() { bitField0_ = (bitField0_ & ~0x00000010); remainingWaypointsVersion_ = null; @@ -1920,14 +1937,15 @@ public Builder clearRemainingWaypointsVersion() { * * *
-     * Indicates the minimum timestamp (exclusive) for which
-     * `Trip.remaining_waypoints` are retrieved. If they are unchanged since this
-     * timestamp, the `remaining_waypoints` are not set in the response. If this
-     * field is unspecified, `remaining_waypoints` is always retrieved.
+     * Deprecated: `Trip.remaining_waypoints` are always retrieved. Use
+     * `remaining_waypoints_route_version` to control when
+     * `Trip.remaining_waypoints.traffic_to_waypoint` and
+     * `Trip.remaining_waypoints.path_to_waypoint` data are retrieved.
      * 
* - * .google.protobuf.Timestamp remaining_waypoints_version = 7; + * .google.protobuf.Timestamp remaining_waypoints_version = 7 [deprecated = true]; */ + @java.lang.Deprecated public com.google.protobuf.Timestamp.Builder getRemainingWaypointsVersionBuilder() { bitField0_ |= 0x00000010; onChanged(); @@ -1938,14 +1956,15 @@ public com.google.protobuf.Timestamp.Builder getRemainingWaypointsVersionBuilder * * *
-     * Indicates the minimum timestamp (exclusive) for which
-     * `Trip.remaining_waypoints` are retrieved. If they are unchanged since this
-     * timestamp, the `remaining_waypoints` are not set in the response. If this
-     * field is unspecified, `remaining_waypoints` is always retrieved.
+     * Deprecated: `Trip.remaining_waypoints` are always retrieved. Use
+     * `remaining_waypoints_route_version` to control when
+     * `Trip.remaining_waypoints.traffic_to_waypoint` and
+     * `Trip.remaining_waypoints.path_to_waypoint` data are retrieved.
      * 
* - * .google.protobuf.Timestamp remaining_waypoints_version = 7; + * .google.protobuf.Timestamp remaining_waypoints_version = 7 [deprecated = true]; */ + @java.lang.Deprecated public com.google.protobuf.TimestampOrBuilder getRemainingWaypointsVersionOrBuilder() { if (remainingWaypointsVersionBuilder_ != null) { return remainingWaypointsVersionBuilder_.getMessageOrBuilder(); @@ -1960,13 +1979,13 @@ public com.google.protobuf.TimestampOrBuilder getRemainingWaypointsVersionOrBuil * * *
-     * Indicates the minimum timestamp (exclusive) for which
-     * `Trip.remaining_waypoints` are retrieved. If they are unchanged since this
-     * timestamp, the `remaining_waypoints` are not set in the response. If this
-     * field is unspecified, `remaining_waypoints` is always retrieved.
+     * Deprecated: `Trip.remaining_waypoints` are always retrieved. Use
+     * `remaining_waypoints_route_version` to control when
+     * `Trip.remaining_waypoints.traffic_to_waypoint` and
+     * `Trip.remaining_waypoints.path_to_waypoint` data are retrieved.
      * 
* - * .google.protobuf.Timestamp remaining_waypoints_version = 7; + * .google.protobuf.Timestamp remaining_waypoints_version = 7 [deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, diff --git a/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/GetTripRequestOrBuilder.java b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/GetTripRequestOrBuilder.java index d6cd94289a32..b1c3bc904feb 100644 --- a/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/GetTripRequestOrBuilder.java +++ b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/GetTripRequestOrBuilder.java @@ -173,46 +173,53 @@ public interface GetTripRequestOrBuilder * * *
-   * Indicates the minimum timestamp (exclusive) for which
-   * `Trip.remaining_waypoints` are retrieved. If they are unchanged since this
-   * timestamp, the `remaining_waypoints` are not set in the response. If this
-   * field is unspecified, `remaining_waypoints` is always retrieved.
+   * Deprecated: `Trip.remaining_waypoints` are always retrieved. Use
+   * `remaining_waypoints_route_version` to control when
+   * `Trip.remaining_waypoints.traffic_to_waypoint` and
+   * `Trip.remaining_waypoints.path_to_waypoint` data are retrieved.
    * 
* - * .google.protobuf.Timestamp remaining_waypoints_version = 7; + * .google.protobuf.Timestamp remaining_waypoints_version = 7 [deprecated = true]; * + * @deprecated maps.fleetengine.v1.GetTripRequest.remaining_waypoints_version is deprecated. See + * google/maps/fleetengine/v1/trip_api.proto;l=228 * @return Whether the remainingWaypointsVersion field is set. */ + @java.lang.Deprecated boolean hasRemainingWaypointsVersion(); /** * * *
-   * Indicates the minimum timestamp (exclusive) for which
-   * `Trip.remaining_waypoints` are retrieved. If they are unchanged since this
-   * timestamp, the `remaining_waypoints` are not set in the response. If this
-   * field is unspecified, `remaining_waypoints` is always retrieved.
+   * Deprecated: `Trip.remaining_waypoints` are always retrieved. Use
+   * `remaining_waypoints_route_version` to control when
+   * `Trip.remaining_waypoints.traffic_to_waypoint` and
+   * `Trip.remaining_waypoints.path_to_waypoint` data are retrieved.
    * 
* - * .google.protobuf.Timestamp remaining_waypoints_version = 7; + * .google.protobuf.Timestamp remaining_waypoints_version = 7 [deprecated = true]; * + * @deprecated maps.fleetengine.v1.GetTripRequest.remaining_waypoints_version is deprecated. See + * google/maps/fleetengine/v1/trip_api.proto;l=228 * @return The remainingWaypointsVersion. */ + @java.lang.Deprecated com.google.protobuf.Timestamp getRemainingWaypointsVersion(); /** * * *
-   * Indicates the minimum timestamp (exclusive) for which
-   * `Trip.remaining_waypoints` are retrieved. If they are unchanged since this
-   * timestamp, the `remaining_waypoints` are not set in the response. If this
-   * field is unspecified, `remaining_waypoints` is always retrieved.
+   * Deprecated: `Trip.remaining_waypoints` are always retrieved. Use
+   * `remaining_waypoints_route_version` to control when
+   * `Trip.remaining_waypoints.traffic_to_waypoint` and
+   * `Trip.remaining_waypoints.path_to_waypoint` data are retrieved.
    * 
* - * .google.protobuf.Timestamp remaining_waypoints_version = 7; + * .google.protobuf.Timestamp remaining_waypoints_version = 7 [deprecated = true]; */ + @java.lang.Deprecated com.google.protobuf.TimestampOrBuilder getRemainingWaypointsVersionOrBuilder(); /** diff --git a/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/SpeedReadingInterval.java b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/SpeedReadingInterval.java index eb0dfc10211d..e2366426f921 100644 --- a/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/SpeedReadingInterval.java +++ b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/SpeedReadingInterval.java @@ -90,7 +90,7 @@ public enum Speed implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * Normal speed, no slowdown is detected.
+     * Normal speed, no traffic delays.
      * 
* * NORMAL = 1; @@ -100,7 +100,7 @@ public enum Speed implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * Slowdown detected, but no traffic jam formed.
+     * Slowdown detected, medium amount of traffic.
      * 
* * SLOW = 2; @@ -110,7 +110,7 @@ public enum Speed implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * Traffic jam detected.
+     * Traffic delays.
      * 
* * TRAFFIC_JAM = 3; @@ -134,7 +134,7 @@ public enum Speed implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * Normal speed, no slowdown is detected.
+     * Normal speed, no traffic delays.
      * 
* * NORMAL = 1; @@ -145,7 +145,7 @@ public enum Speed implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * Slowdown detected, but no traffic jam formed.
+     * Slowdown detected, medium amount of traffic.
      * 
* * SLOW = 2; @@ -156,7 +156,7 @@ public enum Speed implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * Traffic jam detected.
+     * Traffic delays.
      * 
* * TRAFFIC_JAM = 3; diff --git a/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/StopLocation.java b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/StopLocation.java index 034f6eec0b40..3a2aefa0ef0c 100644 --- a/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/StopLocation.java +++ b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/StopLocation.java @@ -176,7 +176,7 @@ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { * * * @deprecated maps.fleetengine.v1.StopLocation.stop_time is deprecated. See - * google/maps/fleetengine/v1/trips.proto;l=237 + * google/maps/fleetengine/v1/trips.proto;l=240 * @return Whether the stopTime field is set. */ @java.lang.Override @@ -197,7 +197,7 @@ public boolean hasStopTime() { * * * @deprecated maps.fleetengine.v1.StopLocation.stop_time is deprecated. See - * google/maps/fleetengine/v1/trips.proto;l=237 + * google/maps/fleetengine/v1/trips.proto;l=240 * @return The stopTime. */ @java.lang.Override @@ -1044,7 +1044,7 @@ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { * * * @deprecated maps.fleetengine.v1.StopLocation.stop_time is deprecated. See - * google/maps/fleetengine/v1/trips.proto;l=237 + * google/maps/fleetengine/v1/trips.proto;l=240 * @return Whether the stopTime field is set. */ @java.lang.Deprecated @@ -1064,7 +1064,7 @@ public boolean hasStopTime() { * * * @deprecated maps.fleetengine.v1.StopLocation.stop_time is deprecated. See - * google/maps/fleetengine/v1/trips.proto;l=237 + * google/maps/fleetengine/v1/trips.proto;l=240 * @return The stopTime. */ @java.lang.Deprecated diff --git a/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/StopLocationOrBuilder.java b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/StopLocationOrBuilder.java index 07c36afb9dbc..2887a20a0835 100644 --- a/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/StopLocationOrBuilder.java +++ b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/StopLocationOrBuilder.java @@ -110,7 +110,7 @@ public interface StopLocationOrBuilder * * * @deprecated maps.fleetengine.v1.StopLocation.stop_time is deprecated. See - * google/maps/fleetengine/v1/trips.proto;l=237 + * google/maps/fleetengine/v1/trips.proto;l=240 * @return Whether the stopTime field is set. */ @java.lang.Deprecated @@ -128,7 +128,7 @@ public interface StopLocationOrBuilder * * * @deprecated maps.fleetengine.v1.StopLocation.stop_time is deprecated. See - * google/maps/fleetengine/v1/trips.proto;l=237 + * google/maps/fleetengine/v1/trips.proto;l=240 * @return The stopTime. */ @java.lang.Deprecated diff --git a/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/Trip.java b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/Trip.java index 56c5ff3fce7e..39160c8370c9 100644 --- a/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/Trip.java +++ b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/Trip.java @@ -52,6 +52,7 @@ private Trip() { route_ = java.util.Collections.emptyList(); currentRouteSegment_ = ""; view_ = 0; + attributes_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -2140,6 +2141,82 @@ public com.google.maps.fleetengine.v1.TripView getView() { return result == null ? com.google.maps.fleetengine.v1.TripView.UNRECOGNIZED : result; } + public static final int ATTRIBUTES_FIELD_NUMBER = 35; + + @SuppressWarnings("serial") + private java.util.List attributes_; + + /** + * + * + *
+   * A list of custom Trip attributes. Each attribute must have a unique key.
+   * 
+ * + * repeated .maps.fleetengine.v1.TripAttribute attributes = 35; + */ + @java.lang.Override + public java.util.List getAttributesList() { + return attributes_; + } + + /** + * + * + *
+   * A list of custom Trip attributes. Each attribute must have a unique key.
+   * 
+ * + * repeated .maps.fleetengine.v1.TripAttribute attributes = 35; + */ + @java.lang.Override + public java.util.List + getAttributesOrBuilderList() { + return attributes_; + } + + /** + * + * + *
+   * A list of custom Trip attributes. Each attribute must have a unique key.
+   * 
+ * + * repeated .maps.fleetengine.v1.TripAttribute attributes = 35; + */ + @java.lang.Override + public int getAttributesCount() { + return attributes_.size(); + } + + /** + * + * + *
+   * A list of custom Trip attributes. Each attribute must have a unique key.
+   * 
+ * + * repeated .maps.fleetengine.v1.TripAttribute attributes = 35; + */ + @java.lang.Override + public com.google.maps.fleetengine.v1.TripAttribute getAttributes(int index) { + return attributes_.get(index); + } + + /** + * + * + *
+   * A list of custom Trip attributes. Each attribute must have a unique key.
+   * 
+ * + * repeated .maps.fleetengine.v1.TripAttribute attributes = 35; + */ + @java.lang.Override + public com.google.maps.fleetengine.v1.TripAttributeOrBuilder getAttributesOrBuilder(int index) { + return attributes_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2253,6 +2330,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < actualIntermediateDestinations_.size(); i++) { output.writeMessage(34, actualIntermediateDestinations_.get(i)); } + for (int i = 0; i < attributes_.size(); i++) { + output.writeMessage(35, attributes_.get(i)); + } getUnknownFields().writeTo(output); } @@ -2390,6 +2470,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 34, actualIntermediateDestinations_.get(i)); } + for (int i = 0; i < attributes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(35, attributes_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2506,6 +2589,7 @@ public boolean equals(final java.lang.Object obj) { } if (getLastLocationSnappable() != other.getLastLocationSnappable()) return false; if (view_ != other.view_) return false; + if (!getAttributesList().equals(other.getAttributesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2631,6 +2715,10 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLastLocationSnappable()); hash = (37 * hash) + VIEW_FIELD_NUMBER; hash = (53 * hash) + view_; + if (getAttributesCount() > 0) { + hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getAttributesList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2795,6 +2883,7 @@ private void maybeForceBuilderInitialization() { getRemainingWaypointsVersionFieldBuilder(); getRemainingWaypointsRouteVersionFieldBuilder(); getLastLocationFieldBuilder(); + getAttributesFieldBuilder(); } } @@ -2944,6 +3033,13 @@ public Builder clear() { } lastLocationSnappable_ = false; view_ = 0; + if (attributesBuilder_ == null) { + attributes_ = java.util.Collections.emptyList(); + } else { + attributes_ = null; + attributesBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00000002); return this; } @@ -3041,6 +3137,15 @@ private void buildPartialRepeatedFields(com.google.maps.fleetengine.v1.Trip resu } else { result.route_ = routeBuilder_.build(); } + if (attributesBuilder_ == null) { + if (((bitField1_ & 0x00000002) != 0)) { + attributes_ = java.util.Collections.unmodifiableList(attributes_); + bitField1_ = (bitField1_ & ~0x00000002); + } + result.attributes_ = attributes_; + } else { + result.attributes_ = attributesBuilder_.build(); + } } private void buildPartial0(com.google.maps.fleetengine.v1.Trip result) { @@ -3494,6 +3599,33 @@ public Builder mergeFrom(com.google.maps.fleetengine.v1.Trip other) { if (other.view_ != 0) { setViewValue(other.getViewValue()); } + if (attributesBuilder_ == null) { + if (!other.attributes_.isEmpty()) { + if (attributes_.isEmpty()) { + attributes_ = other.attributes_; + bitField1_ = (bitField1_ & ~0x00000002); + } else { + ensureAttributesIsMutable(); + attributes_.addAll(other.attributes_); + } + onChanged(); + } + } else { + if (!other.attributes_.isEmpty()) { + if (attributesBuilder_.isEmpty()) { + attributesBuilder_.dispose(); + attributesBuilder_ = null; + attributes_ = other.attributes_; + bitField1_ = (bitField1_ & ~0x00000002); + attributesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAttributesFieldBuilder() + : null; + } else { + attributesBuilder_.addAllMessages(other.attributes_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3776,6 +3908,19 @@ public Builder mergeFrom( } break; } // case 274 + case 282: + { + com.google.maps.fleetengine.v1.TripAttribute m = + input.readMessage( + com.google.maps.fleetengine.v1.TripAttribute.parser(), extensionRegistry); + if (attributesBuilder_ == null) { + ensureAttributesIsMutable(); + attributes_.add(m); + } else { + attributesBuilder_.addMessage(m); + } + break; + } // case 282 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -11414,6 +11559,374 @@ public Builder clearView() { return this; } + private java.util.List attributes_ = + java.util.Collections.emptyList(); + + private void ensureAttributesIsMutable() { + if (!((bitField1_ & 0x00000002) != 0)) { + attributes_ = + new java.util.ArrayList(attributes_); + bitField1_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.fleetengine.v1.TripAttribute, + com.google.maps.fleetengine.v1.TripAttribute.Builder, + com.google.maps.fleetengine.v1.TripAttributeOrBuilder> + attributesBuilder_; + + /** + * + * + *
+     * A list of custom Trip attributes. Each attribute must have a unique key.
+     * 
+ * + * repeated .maps.fleetengine.v1.TripAttribute attributes = 35; + */ + public java.util.List getAttributesList() { + if (attributesBuilder_ == null) { + return java.util.Collections.unmodifiableList(attributes_); + } else { + return attributesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * A list of custom Trip attributes. Each attribute must have a unique key.
+     * 
+ * + * repeated .maps.fleetengine.v1.TripAttribute attributes = 35; + */ + public int getAttributesCount() { + if (attributesBuilder_ == null) { + return attributes_.size(); + } else { + return attributesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * A list of custom Trip attributes. Each attribute must have a unique key.
+     * 
+ * + * repeated .maps.fleetengine.v1.TripAttribute attributes = 35; + */ + public com.google.maps.fleetengine.v1.TripAttribute getAttributes(int index) { + if (attributesBuilder_ == null) { + return attributes_.get(index); + } else { + return attributesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * A list of custom Trip attributes. Each attribute must have a unique key.
+     * 
+ * + * repeated .maps.fleetengine.v1.TripAttribute attributes = 35; + */ + public Builder setAttributes(int index, com.google.maps.fleetengine.v1.TripAttribute value) { + if (attributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttributesIsMutable(); + attributes_.set(index, value); + onChanged(); + } else { + attributesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * A list of custom Trip attributes. Each attribute must have a unique key.
+     * 
+ * + * repeated .maps.fleetengine.v1.TripAttribute attributes = 35; + */ + public Builder setAttributes( + int index, com.google.maps.fleetengine.v1.TripAttribute.Builder builderForValue) { + if (attributesBuilder_ == null) { + ensureAttributesIsMutable(); + attributes_.set(index, builderForValue.build()); + onChanged(); + } else { + attributesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A list of custom Trip attributes. Each attribute must have a unique key.
+     * 
+ * + * repeated .maps.fleetengine.v1.TripAttribute attributes = 35; + */ + public Builder addAttributes(com.google.maps.fleetengine.v1.TripAttribute value) { + if (attributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttributesIsMutable(); + attributes_.add(value); + onChanged(); + } else { + attributesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * A list of custom Trip attributes. Each attribute must have a unique key.
+     * 
+ * + * repeated .maps.fleetengine.v1.TripAttribute attributes = 35; + */ + public Builder addAttributes(int index, com.google.maps.fleetengine.v1.TripAttribute value) { + if (attributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttributesIsMutable(); + attributes_.add(index, value); + onChanged(); + } else { + attributesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * A list of custom Trip attributes. Each attribute must have a unique key.
+     * 
+ * + * repeated .maps.fleetengine.v1.TripAttribute attributes = 35; + */ + public Builder addAttributes( + com.google.maps.fleetengine.v1.TripAttribute.Builder builderForValue) { + if (attributesBuilder_ == null) { + ensureAttributesIsMutable(); + attributes_.add(builderForValue.build()); + onChanged(); + } else { + attributesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A list of custom Trip attributes. Each attribute must have a unique key.
+     * 
+ * + * repeated .maps.fleetengine.v1.TripAttribute attributes = 35; + */ + public Builder addAttributes( + int index, com.google.maps.fleetengine.v1.TripAttribute.Builder builderForValue) { + if (attributesBuilder_ == null) { + ensureAttributesIsMutable(); + attributes_.add(index, builderForValue.build()); + onChanged(); + } else { + attributesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A list of custom Trip attributes. Each attribute must have a unique key.
+     * 
+ * + * repeated .maps.fleetengine.v1.TripAttribute attributes = 35; + */ + public Builder addAllAttributes( + java.lang.Iterable values) { + if (attributesBuilder_ == null) { + ensureAttributesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, attributes_); + onChanged(); + } else { + attributesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * A list of custom Trip attributes. Each attribute must have a unique key.
+     * 
+ * + * repeated .maps.fleetengine.v1.TripAttribute attributes = 35; + */ + public Builder clearAttributes() { + if (attributesBuilder_ == null) { + attributes_ = java.util.Collections.emptyList(); + bitField1_ = (bitField1_ & ~0x00000002); + onChanged(); + } else { + attributesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * A list of custom Trip attributes. Each attribute must have a unique key.
+     * 
+ * + * repeated .maps.fleetengine.v1.TripAttribute attributes = 35; + */ + public Builder removeAttributes(int index) { + if (attributesBuilder_ == null) { + ensureAttributesIsMutable(); + attributes_.remove(index); + onChanged(); + } else { + attributesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * A list of custom Trip attributes. Each attribute must have a unique key.
+     * 
+ * + * repeated .maps.fleetengine.v1.TripAttribute attributes = 35; + */ + public com.google.maps.fleetengine.v1.TripAttribute.Builder getAttributesBuilder(int index) { + return getAttributesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * A list of custom Trip attributes. Each attribute must have a unique key.
+     * 
+ * + * repeated .maps.fleetengine.v1.TripAttribute attributes = 35; + */ + public com.google.maps.fleetengine.v1.TripAttributeOrBuilder getAttributesOrBuilder(int index) { + if (attributesBuilder_ == null) { + return attributes_.get(index); + } else { + return attributesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * A list of custom Trip attributes. Each attribute must have a unique key.
+     * 
+ * + * repeated .maps.fleetengine.v1.TripAttribute attributes = 35; + */ + public java.util.List + getAttributesOrBuilderList() { + if (attributesBuilder_ != null) { + return attributesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(attributes_); + } + } + + /** + * + * + *
+     * A list of custom Trip attributes. Each attribute must have a unique key.
+     * 
+ * + * repeated .maps.fleetengine.v1.TripAttribute attributes = 35; + */ + public com.google.maps.fleetengine.v1.TripAttribute.Builder addAttributesBuilder() { + return getAttributesFieldBuilder() + .addBuilder(com.google.maps.fleetengine.v1.TripAttribute.getDefaultInstance()); + } + + /** + * + * + *
+     * A list of custom Trip attributes. Each attribute must have a unique key.
+     * 
+ * + * repeated .maps.fleetengine.v1.TripAttribute attributes = 35; + */ + public com.google.maps.fleetengine.v1.TripAttribute.Builder addAttributesBuilder(int index) { + return getAttributesFieldBuilder() + .addBuilder(index, com.google.maps.fleetengine.v1.TripAttribute.getDefaultInstance()); + } + + /** + * + * + *
+     * A list of custom Trip attributes. Each attribute must have a unique key.
+     * 
+ * + * repeated .maps.fleetengine.v1.TripAttribute attributes = 35; + */ + public java.util.List + getAttributesBuilderList() { + return getAttributesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.fleetengine.v1.TripAttribute, + com.google.maps.fleetengine.v1.TripAttribute.Builder, + com.google.maps.fleetengine.v1.TripAttributeOrBuilder> + getAttributesFieldBuilder() { + if (attributesBuilder_ == null) { + attributesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.fleetengine.v1.TripAttribute, + com.google.maps.fleetengine.v1.TripAttribute.Builder, + com.google.maps.fleetengine.v1.TripAttributeOrBuilder>( + attributes_, ((bitField1_ & 0x00000002) != 0), getParentForChildren(), isClean()); + attributes_ = null; + } + return attributesBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/TripApi.java b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/TripApi.java index 35bbfa1edd61..6a06d41f877c 100644 --- a/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/TripApi.java +++ b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/TripApi.java @@ -81,16 +81,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\003 \001(\tB\'\340A\002\372A!\n" + "\037fleetengine.googleapis.com/Trip\022\024\n" + "\007trip_id\030\005 \001(\tB\003\340A\002\022,\n" - + "\004trip\030\004 \001(\0132\031.maps.fleetengine.v1.TripB\003\340A\002\"\202\004\n" + + "\004trip\030\004 \001(\0132\031.maps.fleetengine.v1.TripB\003\340A\002\"\206\004\n" + "\016GetTripRequest\0222\n" + "\006header\030\001 \001(\0132\".maps.fleetengine.v1.RequestHeader\0225\n" + "\004name\030\003 \001(\tB\'\340A\002\372A!\n" + "\037fleetengine.googleapis.com/Trip\022+\n" + "\004view\030\013 \001(\0162\035.maps.fleetengine.v1.TripView\022A\n" + "\035current_route_segment_version\030\006" - + " \001(\0132\032.google.protobuf.Timestamp\022?\n" + + " \001(\0132\032.google.protobuf.Timestamp\022C\n" + "\033remaining_waypoints_version\030\007" - + " \001(\0132\032.google.protobuf.Timestamp\022B\n" + + " \001(\0132\032.google.protobuf.TimestampB\002\030\001\022B\n" + "\021route_format_type\030\010" + " \001(\0162\'.maps.fleetengine.v1.PolylineFormatType\022I\n" + "%current_route_segment_traffic_version\030\t" @@ -106,9 +106,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014country_code\030\003 \001(\tB\003\340A\002\022@\n" + "\010platform\030\005" + " \001(\0162..maps.fleetengine.v1.BillingPlatformIdentifier\022\023\n" - + "\013related_ids\030\006 \003(\t\022R\n\r" - + "solution_type\030\007" - + " \001(\0162;.maps.fleetengine.v1.ReportBillableTripRequest.SolutionType\"W\n" + + "\013related_ids\030\006 \003(\t\022R\n" + + "\r" + + "solution_type\030\007 \001(\0162;.maps.fleetengine." + + "v1.ReportBillableTripRequest.SolutionType\"W\n" + "\014SolutionType\022\035\n" + "\031SOLUTION_TYPE_UNSPECIFIED\020\000\022(\n" + "$ON_DEMAND_RIDESHARING_AND_DELIVERIES\020\001\"\276\001\n" @@ -130,34 +131,36 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005trips\030\001 \003(\0132\031.maps.fleetengine.v1.Trip\022\027\n" + "\017next_page_token\030\002 \001(\t2\367\010\n" + "\013TripService\022\250\001\n\n" - + "CreateTrip\022&.maps.fleetengine.v1.CreateTripRequest\032\031.m" - + "aps.fleetengine.v1.Trip\"W\202\323\344\223\002&\"\036/v1/{parent=providers/*}/trips:\004trip\212\323\344\223\002%\022#\n" + + "CreateTrip\022&.maps.fleetengine.v1.CreateTripRequest" + + "\032\031.maps.fleetengine.v1.Trip\"W\202\323\344\223\002&\"\036/v1" + + "/{parent=providers/*}/trips:\004trip\212\323\344\223\002%\022#\n" + "\006parent\022\031{provider_id=providers/*}\022\232\001\n" - + "\007Get" - + "Trip\022#.maps.fleetengine.v1.GetTripRequest\032\031.maps.fleetengine.v1.Trip\"O\202\323\344\223\002" + + "\007GetTrip\022#.maps.fleetengine.v1.GetTripRequest\032\031.maps.fleetengine.v1.Trip\"O\202\323\344\223\002" + " \022\036/v1/{name=providers/*/trips/*}\212\323\344\223\002#\022!\n" + "\004name\022\031{provider_id=providers/*}\022\244\001\n\n" - + "DeleteTrip\022&.maps.fleetengine.v1.DeleteTripReq" - + "uest\032\026.google.protobuf.Empty\"V\332A\004name\202\323\344\223\002" + + "DeleteTrip\022&.maps.fleetengine.v1.DeleteTri" + + "pRequest\032\026.google.protobuf.Empty\"V\332A\004name\202\323\344\223\002" + " *\036/v1/{name=providers/*/trips/*}\212\323\344\223\002#\022!\n" + "\004name\022\031{provider_id=providers/*}\022\277\001\n" - + "\022ReportBillableTrip\022..maps.fleetengine.v" - + "1.ReportBillableTripRequest\032\026.google.pro" - + "tobuf.Empty\"a\202\323\344\223\0022\"-/v1/{name=providers/*/billableTrips/*}:report:\001*\212\323\344\223\002#\022!\n" + + "\022ReportBillableTrip\022..maps.fleetengi" + + "ne.v1.ReportBillableTripRequest\032\026.google" + + ".protobuf.Empty\"a\202\323\344\223\0022\"-/v1/{name=provi" + + "ders/*/billableTrips/*}:report:\001*\212\323\344\223\002#\022!\n" + "\004name\022\031{provider_id=providers/*}\022\275\001\n" - + "\013SearchTrips\022\'.maps.fleetengine.v1.SearchTrips" - + "Request\032(.maps.fleetengine.v1.SearchTrip" - + "sResponse\"[\202\323\344\223\002*\"%/v1/{parent=providers/*}/trips:search:\001*\212\323\344\223\002%\022#\n" + + "\013SearchTrips\022\'.maps.fleetengine.v1.SearchT" + + "ripsRequest\032(.maps.fleetengine.v1.Search" + + "TripsResponse\"[\202\323\344\223\002*\"%/v1/{parent=providers/*}/trips:search:\001*\212\323\344\223\002%\022#\n" + "\006parent\022\031{provider_id=providers/*}\022\246\001\n\n" - + "UpdateTrip\022&.maps.fleetengine.v1.UpdateTripRequest\032\031." - + "maps.fleetengine.v1.Trip\"U\202\323\344\223\002&\032\036/v1/{name=providers/*/trips/*}:\004trip\212\323\344\223\002#\022!\n" - + "\004name\022\031{provider_id=providers/*}\032N\312A\032flee" - + "tengine.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\323\001\n" - + "\036com.google.maps.fleetengine.v1B\007TripApiP\001ZFc" - + "loud.google.com/go/maps/fleetengine/apiv" - + "1/fleetenginepb;fleetenginepb\242\002\003CFE\252\002\032Go" - + "ogle.Maps.FleetEngine.V1\312\002\032Google\\Maps\\F" - + "leetEngine\\V1\352\002\035Google::Maps::FleetEngine::V1b\006proto3" + + "UpdateTrip\022&.maps.fleetengine.v1.UpdateTripReques" + + "t\032\031.maps.fleetengine.v1.Trip\"U\202\323\344\223\002&\032\036/v" + + "1/{name=providers/*/trips/*}:\004trip\212\323\344\223\002#\022!\n" + + "\004name\022\031{provider_id=providers/*}\032N\312A\032" + + "fleetengine.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\323\001\n" + + "\036com.google.maps.fleetengine.v1B\007TripApiP" + + "\001ZFcloud.google.com/go/maps/fleetengine/" + + "apiv1/fleetenginepb;fleetenginepb\242\002\003CFE\252" + + "\002\032Google.Maps.FleetEngine.V1\312\002\032Google\\Ma" + + "ps\\FleetEngine\\V1\352\002\035Google::Maps::FleetEngine::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/TripAttribute.java b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/TripAttribute.java new file mode 100644 index 000000000000..f7f34a7980a5 --- /dev/null +++ b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/TripAttribute.java @@ -0,0 +1,1240 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/fleetengine/v1/fleetengine.proto + +// Protobuf Java Version: 3.25.8 +package com.google.maps.fleetengine.v1; + +/** + * + * + *
+ * Describes a trip attribute as a key-value pair. The "key:value" string length
+ * cannot exceed 256 characters.
+ * 
+ * + * Protobuf type {@code maps.fleetengine.v1.TripAttribute} + */ +public final class TripAttribute extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:maps.fleetengine.v1.TripAttribute) + TripAttributeOrBuilder { + private static final long serialVersionUID = 0L; + + // Use TripAttribute.newBuilder() to construct. + private TripAttribute(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TripAttribute() { + key_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TripAttribute(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.fleetengine.v1.FleetEngine + .internal_static_maps_fleetengine_v1_TripAttribute_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.fleetengine.v1.FleetEngine + .internal_static_maps_fleetengine_v1_TripAttribute_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.fleetengine.v1.TripAttribute.class, + com.google.maps.fleetengine.v1.TripAttribute.Builder.class); + } + + private int tripAttributeValueCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object tripAttributeValue_; + + public enum TripAttributeValueCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + STRING_VALUE(2), + BOOL_VALUE(3), + NUMBER_VALUE(4), + TRIPATTRIBUTEVALUE_NOT_SET(0); + private final int value; + + private TripAttributeValueCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TripAttributeValueCase valueOf(int value) { + return forNumber(value); + } + + public static TripAttributeValueCase forNumber(int value) { + switch (value) { + case 2: + return STRING_VALUE; + case 3: + return BOOL_VALUE; + case 4: + return NUMBER_VALUE; + case 0: + return TRIPATTRIBUTEVALUE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TripAttributeValueCase getTripAttributeValueCase() { + return TripAttributeValueCase.forNumber(tripAttributeValueCase_); + } + + public static final int KEY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object key_ = ""; + + /** + * + * + *
+   * The attribute's key. Keys may not contain the colon character (:).
+   * 
+ * + * string key = 1; + * + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } + } + + /** + * + * + *
+   * The attribute's key. Keys may not contain the colon character (:).
+   * 
+ * + * string key = 1; + * + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STRING_VALUE_FIELD_NUMBER = 2; + + /** + * + * + *
+   * String typed attribute value.
+   * 
+ * + * string string_value = 2; + * + * @return Whether the stringValue field is set. + */ + public boolean hasStringValue() { + return tripAttributeValueCase_ == 2; + } + + /** + * + * + *
+   * String typed attribute value.
+   * 
+ * + * string string_value = 2; + * + * @return The stringValue. + */ + public java.lang.String getStringValue() { + java.lang.Object ref = ""; + if (tripAttributeValueCase_ == 2) { + ref = tripAttributeValue_; + } + if (ref instanceof java.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 (tripAttributeValueCase_ == 2) { + tripAttributeValue_ = s; + } + return s; + } + } + + /** + * + * + *
+   * String typed attribute value.
+   * 
+ * + * string string_value = 2; + * + * @return The bytes for stringValue. + */ + public com.google.protobuf.ByteString getStringValueBytes() { + java.lang.Object ref = ""; + if (tripAttributeValueCase_ == 2) { + ref = tripAttributeValue_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (tripAttributeValueCase_ == 2) { + tripAttributeValue_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BOOL_VALUE_FIELD_NUMBER = 3; + + /** + * + * + *
+   * Boolean typed attribute value.
+   * 
+ * + * bool bool_value = 3; + * + * @return Whether the boolValue field is set. + */ + @java.lang.Override + public boolean hasBoolValue() { + return tripAttributeValueCase_ == 3; + } + + /** + * + * + *
+   * Boolean typed attribute value.
+   * 
+ * + * bool bool_value = 3; + * + * @return The boolValue. + */ + @java.lang.Override + public boolean getBoolValue() { + if (tripAttributeValueCase_ == 3) { + return (java.lang.Boolean) tripAttributeValue_; + } + return false; + } + + public static final int NUMBER_VALUE_FIELD_NUMBER = 4; + + /** + * + * + *
+   * Double typed attribute value.
+   * 
+ * + * double number_value = 4; + * + * @return Whether the numberValue field is set. + */ + @java.lang.Override + public boolean hasNumberValue() { + return tripAttributeValueCase_ == 4; + } + + /** + * + * + *
+   * Double typed attribute value.
+   * 
+ * + * double number_value = 4; + * + * @return The numberValue. + */ + @java.lang.Override + public double getNumberValue() { + if (tripAttributeValueCase_ == 4) { + return (java.lang.Double) tripAttributeValue_; + } + return 0D; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); + } + if (tripAttributeValueCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tripAttributeValue_); + } + if (tripAttributeValueCase_ == 3) { + output.writeBool(3, (boolean) ((java.lang.Boolean) tripAttributeValue_)); + } + if (tripAttributeValueCase_ == 4) { + output.writeDouble(4, (double) ((java.lang.Double) tripAttributeValue_)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); + } + if (tripAttributeValueCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tripAttributeValue_); + } + if (tripAttributeValueCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 3, (boolean) ((java.lang.Boolean) tripAttributeValue_)); + } + if (tripAttributeValueCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeDoubleSize( + 4, (double) ((java.lang.Double) tripAttributeValue_)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.maps.fleetengine.v1.TripAttribute)) { + return super.equals(obj); + } + com.google.maps.fleetengine.v1.TripAttribute other = + (com.google.maps.fleetengine.v1.TripAttribute) obj; + + if (!getKey().equals(other.getKey())) return false; + if (!getTripAttributeValueCase().equals(other.getTripAttributeValueCase())) return false; + switch (tripAttributeValueCase_) { + case 2: + if (!getStringValue().equals(other.getStringValue())) return false; + break; + case 3: + if (getBoolValue() != other.getBoolValue()) return false; + break; + case 4: + if (java.lang.Double.doubleToLongBits(getNumberValue()) + != java.lang.Double.doubleToLongBits(other.getNumberValue())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + switch (tripAttributeValueCase_) { + case 2: + hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getStringValue().hashCode(); + break; + case 3: + hash = (37 * hash) + BOOL_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBoolValue()); + break; + case 4: + hash = (37 * hash) + NUMBER_VALUE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getNumberValue())); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.fleetengine.v1.TripAttribute parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.fleetengine.v1.TripAttribute parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.fleetengine.v1.TripAttribute parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.fleetengine.v1.TripAttribute parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.fleetengine.v1.TripAttribute parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.fleetengine.v1.TripAttribute parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.fleetengine.v1.TripAttribute parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.maps.fleetengine.v1.TripAttribute parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.fleetengine.v1.TripAttribute parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.fleetengine.v1.TripAttribute parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.fleetengine.v1.TripAttribute parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.maps.fleetengine.v1.TripAttribute parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.maps.fleetengine.v1.TripAttribute prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Describes a trip attribute as a key-value pair. The "key:value" string length
+   * cannot exceed 256 characters.
+   * 
+ * + * Protobuf type {@code maps.fleetengine.v1.TripAttribute} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:maps.fleetengine.v1.TripAttribute) + com.google.maps.fleetengine.v1.TripAttributeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.fleetengine.v1.FleetEngine + .internal_static_maps_fleetengine_v1_TripAttribute_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.fleetengine.v1.FleetEngine + .internal_static_maps_fleetengine_v1_TripAttribute_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.fleetengine.v1.TripAttribute.class, + com.google.maps.fleetengine.v1.TripAttribute.Builder.class); + } + + // Construct using com.google.maps.fleetengine.v1.TripAttribute.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + key_ = ""; + tripAttributeValueCase_ = 0; + tripAttributeValue_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.fleetengine.v1.FleetEngine + .internal_static_maps_fleetengine_v1_TripAttribute_descriptor; + } + + @java.lang.Override + public com.google.maps.fleetengine.v1.TripAttribute getDefaultInstanceForType() { + return com.google.maps.fleetengine.v1.TripAttribute.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.fleetengine.v1.TripAttribute build() { + com.google.maps.fleetengine.v1.TripAttribute result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.fleetengine.v1.TripAttribute buildPartial() { + com.google.maps.fleetengine.v1.TripAttribute result = + new com.google.maps.fleetengine.v1.TripAttribute(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.maps.fleetengine.v1.TripAttribute result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.key_ = key_; + } + } + + private void buildPartialOneofs(com.google.maps.fleetengine.v1.TripAttribute result) { + result.tripAttributeValueCase_ = tripAttributeValueCase_; + result.tripAttributeValue_ = this.tripAttributeValue_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.maps.fleetengine.v1.TripAttribute) { + return mergeFrom((com.google.maps.fleetengine.v1.TripAttribute) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.fleetengine.v1.TripAttribute other) { + if (other == com.google.maps.fleetengine.v1.TripAttribute.getDefaultInstance()) return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + bitField0_ |= 0x00000001; + onChanged(); + } + switch (other.getTripAttributeValueCase()) { + case STRING_VALUE: + { + tripAttributeValueCase_ = 2; + tripAttributeValue_ = other.tripAttributeValue_; + onChanged(); + break; + } + case BOOL_VALUE: + { + setBoolValue(other.getBoolValue()); + break; + } + case NUMBER_VALUE: + { + setNumberValue(other.getNumberValue()); + break; + } + case TRIPATTRIBUTEVALUE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + key_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + tripAttributeValueCase_ = 2; + tripAttributeValue_ = s; + break; + } // case 18 + case 24: + { + tripAttributeValue_ = input.readBool(); + tripAttributeValueCase_ = 3; + break; + } // case 24 + case 33: + { + tripAttributeValue_ = input.readDouble(); + tripAttributeValueCase_ = 4; + break; + } // case 33 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int tripAttributeValueCase_ = 0; + private java.lang.Object tripAttributeValue_; + + public TripAttributeValueCase getTripAttributeValueCase() { + return TripAttributeValueCase.forNumber(tripAttributeValueCase_); + } + + public Builder clearTripAttributeValue() { + tripAttributeValueCase_ = 0; + tripAttributeValue_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object key_ = ""; + + /** + * + * + *
+     * The attribute's key. Keys may not contain the colon character (:).
+     * 
+ * + * string key = 1; + * + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The attribute's key. Keys may not contain the colon character (:).
+     * 
+ * + * string key = 1; + * + * @return The bytes for key. + */ + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The attribute's key. Keys may not contain the colon character (:).
+     * 
+ * + * string key = 1; + * + * @param value The key to set. + * @return This builder for chaining. + */ + public Builder setKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + key_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The attribute's key. Keys may not contain the colon character (:).
+     * 
+ * + * string key = 1; + * + * @return This builder for chaining. + */ + public Builder clearKey() { + key_ = getDefaultInstance().getKey(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * The attribute's key. Keys may not contain the colon character (:).
+     * 
+ * + * string key = 1; + * + * @param value The bytes for key to set. + * @return This builder for chaining. + */ + public Builder setKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + key_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * String typed attribute value.
+     * 
+ * + * string string_value = 2; + * + * @return Whether the stringValue field is set. + */ + @java.lang.Override + public boolean hasStringValue() { + return tripAttributeValueCase_ == 2; + } + + /** + * + * + *
+     * String typed attribute value.
+     * 
+ * + * string string_value = 2; + * + * @return The stringValue. + */ + @java.lang.Override + public java.lang.String getStringValue() { + java.lang.Object ref = ""; + if (tripAttributeValueCase_ == 2) { + ref = tripAttributeValue_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (tripAttributeValueCase_ == 2) { + tripAttributeValue_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * String typed attribute value.
+     * 
+ * + * string string_value = 2; + * + * @return The bytes for stringValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStringValueBytes() { + java.lang.Object ref = ""; + if (tripAttributeValueCase_ == 2) { + ref = tripAttributeValue_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (tripAttributeValueCase_ == 2) { + tripAttributeValue_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * String typed attribute value.
+     * 
+ * + * string string_value = 2; + * + * @param value The stringValue to set. + * @return This builder for chaining. + */ + public Builder setStringValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tripAttributeValueCase_ = 2; + tripAttributeValue_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * String typed attribute value.
+     * 
+ * + * string string_value = 2; + * + * @return This builder for chaining. + */ + public Builder clearStringValue() { + if (tripAttributeValueCase_ == 2) { + tripAttributeValueCase_ = 0; + tripAttributeValue_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * String typed attribute value.
+     * 
+ * + * string string_value = 2; + * + * @param value The bytes for stringValue to set. + * @return This builder for chaining. + */ + public Builder setStringValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tripAttributeValueCase_ = 2; + tripAttributeValue_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Boolean typed attribute value.
+     * 
+ * + * bool bool_value = 3; + * + * @return Whether the boolValue field is set. + */ + public boolean hasBoolValue() { + return tripAttributeValueCase_ == 3; + } + + /** + * + * + *
+     * Boolean typed attribute value.
+     * 
+ * + * bool bool_value = 3; + * + * @return The boolValue. + */ + public boolean getBoolValue() { + if (tripAttributeValueCase_ == 3) { + return (java.lang.Boolean) tripAttributeValue_; + } + return false; + } + + /** + * + * + *
+     * Boolean typed attribute value.
+     * 
+ * + * bool bool_value = 3; + * + * @param value The boolValue to set. + * @return This builder for chaining. + */ + public Builder setBoolValue(boolean value) { + + tripAttributeValueCase_ = 3; + tripAttributeValue_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Boolean typed attribute value.
+     * 
+ * + * bool bool_value = 3; + * + * @return This builder for chaining. + */ + public Builder clearBoolValue() { + if (tripAttributeValueCase_ == 3) { + tripAttributeValueCase_ = 0; + tripAttributeValue_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Double typed attribute value.
+     * 
+ * + * double number_value = 4; + * + * @return Whether the numberValue field is set. + */ + public boolean hasNumberValue() { + return tripAttributeValueCase_ == 4; + } + + /** + * + * + *
+     * Double typed attribute value.
+     * 
+ * + * double number_value = 4; + * + * @return The numberValue. + */ + public double getNumberValue() { + if (tripAttributeValueCase_ == 4) { + return (java.lang.Double) tripAttributeValue_; + } + return 0D; + } + + /** + * + * + *
+     * Double typed attribute value.
+     * 
+ * + * double number_value = 4; + * + * @param value The numberValue to set. + * @return This builder for chaining. + */ + public Builder setNumberValue(double value) { + + tripAttributeValueCase_ = 4; + tripAttributeValue_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Double typed attribute value.
+     * 
+ * + * double number_value = 4; + * + * @return This builder for chaining. + */ + public Builder clearNumberValue() { + if (tripAttributeValueCase_ == 4) { + tripAttributeValueCase_ = 0; + tripAttributeValue_ = null; + onChanged(); + } + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:maps.fleetengine.v1.TripAttribute) + } + + // @@protoc_insertion_point(class_scope:maps.fleetengine.v1.TripAttribute) + private static final com.google.maps.fleetengine.v1.TripAttribute DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.maps.fleetengine.v1.TripAttribute(); + } + + public static com.google.maps.fleetengine.v1.TripAttribute getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TripAttribute parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.maps.fleetengine.v1.TripAttribute getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/TripAttributeOrBuilder.java b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/TripAttributeOrBuilder.java new file mode 100644 index 000000000000..8a643dab52d5 --- /dev/null +++ b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/TripAttributeOrBuilder.java @@ -0,0 +1,145 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/fleetengine/v1/fleetengine.proto + +// Protobuf Java Version: 3.25.8 +package com.google.maps.fleetengine.v1; + +public interface TripAttributeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:maps.fleetengine.v1.TripAttribute) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The attribute's key. Keys may not contain the colon character (:).
+   * 
+ * + * string key = 1; + * + * @return The key. + */ + java.lang.String getKey(); + + /** + * + * + *
+   * The attribute's key. Keys may not contain the colon character (:).
+   * 
+ * + * string key = 1; + * + * @return The bytes for key. + */ + com.google.protobuf.ByteString getKeyBytes(); + + /** + * + * + *
+   * String typed attribute value.
+   * 
+ * + * string string_value = 2; + * + * @return Whether the stringValue field is set. + */ + boolean hasStringValue(); + + /** + * + * + *
+   * String typed attribute value.
+   * 
+ * + * string string_value = 2; + * + * @return The stringValue. + */ + java.lang.String getStringValue(); + + /** + * + * + *
+   * String typed attribute value.
+   * 
+ * + * string string_value = 2; + * + * @return The bytes for stringValue. + */ + com.google.protobuf.ByteString getStringValueBytes(); + + /** + * + * + *
+   * Boolean typed attribute value.
+   * 
+ * + * bool bool_value = 3; + * + * @return Whether the boolValue field is set. + */ + boolean hasBoolValue(); + + /** + * + * + *
+   * Boolean typed attribute value.
+   * 
+ * + * bool bool_value = 3; + * + * @return The boolValue. + */ + boolean getBoolValue(); + + /** + * + * + *
+   * Double typed attribute value.
+   * 
+ * + * double number_value = 4; + * + * @return Whether the numberValue field is set. + */ + boolean hasNumberValue(); + + /** + * + * + *
+   * Double typed attribute value.
+   * 
+ * + * double number_value = 4; + * + * @return The numberValue. + */ + double getNumberValue(); + + com.google.maps.fleetengine.v1.TripAttribute.TripAttributeValueCase getTripAttributeValueCase(); +} diff --git a/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/TripOrBuilder.java b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/TripOrBuilder.java index 3484d35295d8..84027d263ae6 100644 --- a/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/TripOrBuilder.java +++ b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/TripOrBuilder.java @@ -1549,4 +1549,60 @@ com.google.maps.fleetengine.v1.StopLocationOrBuilder getActualIntermediateDestin * @return The view. */ com.google.maps.fleetengine.v1.TripView getView(); + + /** + * + * + *
+   * A list of custom Trip attributes. Each attribute must have a unique key.
+   * 
+ * + * repeated .maps.fleetengine.v1.TripAttribute attributes = 35; + */ + java.util.List getAttributesList(); + + /** + * + * + *
+   * A list of custom Trip attributes. Each attribute must have a unique key.
+   * 
+ * + * repeated .maps.fleetengine.v1.TripAttribute attributes = 35; + */ + com.google.maps.fleetengine.v1.TripAttribute getAttributes(int index); + + /** + * + * + *
+   * A list of custom Trip attributes. Each attribute must have a unique key.
+   * 
+ * + * repeated .maps.fleetengine.v1.TripAttribute attributes = 35; + */ + int getAttributesCount(); + + /** + * + * + *
+   * A list of custom Trip attributes. Each attribute must have a unique key.
+   * 
+ * + * repeated .maps.fleetengine.v1.TripAttribute attributes = 35; + */ + java.util.List + getAttributesOrBuilderList(); + + /** + * + * + *
+   * A list of custom Trip attributes. Each attribute must have a unique key.
+   * 
+ * + * repeated .maps.fleetengine.v1.TripAttribute attributes = 35; + */ + com.google.maps.fleetengine.v1.TripAttributeOrBuilder getAttributesOrBuilder(int index); } diff --git a/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/Trips.java b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/Trips.java index d9a630e14a83..43e7b7702705 100644 --- a/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/Trips.java +++ b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/Trips.java @@ -52,7 +52,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "o\032,google/maps/fleetengine/v1/fleetengine.proto\032(google/maps/fleetengine/v1/traf" + "fic.proto\032\036google/protobuf/duration.prot" + "o\032\037google/protobuf/timestamp.proto\032\036goog" - + "le/protobuf/wrappers.proto\032\030google/type/latlng.proto\"\267\020\n" + + "le/protobuf/wrappers.proto\032\030google/type/latlng.proto\"\357\020\n" + "\004Trip\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\022\n\n" + "vehicle_id\030\002 \001(\t\0224\n" @@ -105,13 +105,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "last_location\030\013 \001(\0132" + "$.maps.fleetengine.v1.VehicleLocationB\003\340A\003\022$\n" + "\027last_location_snappable\030\032 \001(\010B\003\340A\003\022+\n" - + "\004view\030\037 \001(\0162\035.maps.fleetengine.v1.TripView:G\352AD\n" + + "\004view\030\037 \001(\0162\035.maps.fleetengine.v1.TripView\0226\n\n" + + "attributes\030# \003(\0132\".maps.fleetengine.v1.TripAttribute:G\352AD\n" + "\037fleetengine.googleapis.com/Trip\022!providers/{provider}/trips/{trip}\"\234\001\n" + "\014StopLocation\022\'\n" + "\005point\030\001 \001(\0132\023.google.type.LatLngB\003\340A\002\022-\n" + "\ttimestamp\030\002 \001(\0132\032.google.protobuf.Timestamp\0224\n" - + "\tstop_time\030\003 \001" - + "(\0132\032.google.protobuf.TimestampB\005\030\001\340A\004*\342\001\n\n" + + "\tstop_time\030\003" + + " \001(\0132\032.google.protobuf.TimestampB\005\030\001\340A\004*\342\001\n\n" + "TripStatus\022\027\n" + "\023UNKNOWN_TRIP_STATUS\020\000\022\007\n" + "\003NEW\020\001\022\025\n" @@ -133,11 +134,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025TRIP_VIEW_UNSPECIFIED\020\000\022\007\n" + "\003SDK\020\001\022\027\n" + "\023JOURNEY_SHARING_V1S\020\002B\321\001\n" - + "\036com.google.maps.fleetengine.v1B\005TripsP\001ZFcloud." - + "google.com/go/maps/fleetengine/apiv1/fle" - + "etenginepb;fleetenginepb\242\002\003CFE\252\002\032Google." - + "Maps.FleetEngine.V1\312\002\032Google\\Maps\\FleetE" - + "ngine\\V1\352\002\035Google::Maps::FleetEngine::V1b\006proto3" + + "\036com.google.maps.fleetengine.v1B\005TripsP\001ZFcloud.google.com/go/maps/fleet" + + "engine/apiv1/fleetenginepb;fleetenginepb" + + "\242\002\003CFE\252\002\032Google.Maps.FleetEngine.V1\312\002\032Go" + + "ogle\\Maps\\FleetEngine\\V1\352\002\035Google::Maps::FleetEngine::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -190,6 +190,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LastLocation", "LastLocationSnappable", "View", + "Attributes", }); internal_static_maps_fleetengine_v1_StopLocation_descriptor = getDescriptor().getMessageTypes().get(1); diff --git a/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/VehicleLocation.java b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/VehicleLocation.java index dbe784c7e59d..b826e0c68b7c 100644 --- a/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/VehicleLocation.java +++ b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/VehicleLocation.java @@ -1311,6 +1311,217 @@ public com.google.protobuf.DoubleValueOrBuilder getRawLocationAccuracyOrBuilder( : rawLocationAccuracy_; } + public static final int FLP_LOCATION_FIELD_NUMBER = 29; + private com.google.type.LatLng flpLocation_; + + /** + * + * + *
+   * The location from Android's Fused Location Provider.
+   * 
+ * + * .google.type.LatLng flp_location = 29; + * + * @return Whether the flpLocation field is set. + */ + @java.lang.Override + public boolean hasFlpLocation() { + return ((bitField0_ & 0x00200000) != 0); + } + + /** + * + * + *
+   * The location from Android's Fused Location Provider.
+   * 
+ * + * .google.type.LatLng flp_location = 29; + * + * @return The flpLocation. + */ + @java.lang.Override + public com.google.type.LatLng getFlpLocation() { + return flpLocation_ == null ? com.google.type.LatLng.getDefaultInstance() : flpLocation_; + } + + /** + * + * + *
+   * The location from Android's Fused Location Provider.
+   * 
+ * + * .google.type.LatLng flp_location = 29; + */ + @java.lang.Override + public com.google.type.LatLngOrBuilder getFlpLocationOrBuilder() { + return flpLocation_ == null ? com.google.type.LatLng.getDefaultInstance() : flpLocation_; + } + + public static final int FLP_UPDATE_TIME_FIELD_NUMBER = 30; + private com.google.protobuf.Timestamp flpUpdateTime_; + + /** + * + * + *
+   * Update timestamp of `flp_location`.
+   * 
+ * + * .google.protobuf.Timestamp flp_update_time = 30; + * + * @return Whether the flpUpdateTime field is set. + */ + @java.lang.Override + public boolean hasFlpUpdateTime() { + return ((bitField0_ & 0x00400000) != 0); + } + + /** + * + * + *
+   * Update timestamp of `flp_location`.
+   * 
+ * + * .google.protobuf.Timestamp flp_update_time = 30; + * + * @return The flpUpdateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getFlpUpdateTime() { + return flpUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : flpUpdateTime_; + } + + /** + * + * + *
+   * Update timestamp of `flp_location`.
+   * 
+ * + * .google.protobuf.Timestamp flp_update_time = 30; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getFlpUpdateTimeOrBuilder() { + return flpUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : flpUpdateTime_; + } + + public static final int FLP_LATLNG_ACCURACY_METERS_FIELD_NUMBER = 31; + private com.google.protobuf.DoubleValue flpLatlngAccuracyMeters_; + + /** + * + * + *
+   * Accuracy of `flp_location` in meters as a radius.
+   * 
+ * + * .google.protobuf.DoubleValue flp_latlng_accuracy_meters = 31; + * + * @return Whether the flpLatlngAccuracyMeters field is set. + */ + @java.lang.Override + public boolean hasFlpLatlngAccuracyMeters() { + return ((bitField0_ & 0x00800000) != 0); + } + + /** + * + * + *
+   * Accuracy of `flp_location` in meters as a radius.
+   * 
+ * + * .google.protobuf.DoubleValue flp_latlng_accuracy_meters = 31; + * + * @return The flpLatlngAccuracyMeters. + */ + @java.lang.Override + public com.google.protobuf.DoubleValue getFlpLatlngAccuracyMeters() { + return flpLatlngAccuracyMeters_ == null + ? com.google.protobuf.DoubleValue.getDefaultInstance() + : flpLatlngAccuracyMeters_; + } + + /** + * + * + *
+   * Accuracy of `flp_location` in meters as a radius.
+   * 
+ * + * .google.protobuf.DoubleValue flp_latlng_accuracy_meters = 31; + */ + @java.lang.Override + public com.google.protobuf.DoubleValueOrBuilder getFlpLatlngAccuracyMetersOrBuilder() { + return flpLatlngAccuracyMeters_ == null + ? com.google.protobuf.DoubleValue.getDefaultInstance() + : flpLatlngAccuracyMeters_; + } + + public static final int FLP_HEADING_DEGREES_FIELD_NUMBER = 32; + private com.google.protobuf.Int32Value flpHeadingDegrees_; + + /** + * + * + *
+   * Direction the vehicle is moving in degrees, as determined by the Fused
+   * Location Provider. 0 represents North. The valid range is [0,360).
+   * 
+ * + * .google.protobuf.Int32Value flp_heading_degrees = 32; + * + * @return Whether the flpHeadingDegrees field is set. + */ + @java.lang.Override + public boolean hasFlpHeadingDegrees() { + return ((bitField0_ & 0x01000000) != 0); + } + + /** + * + * + *
+   * Direction the vehicle is moving in degrees, as determined by the Fused
+   * Location Provider. 0 represents North. The valid range is [0,360).
+   * 
+ * + * .google.protobuf.Int32Value flp_heading_degrees = 32; + * + * @return The flpHeadingDegrees. + */ + @java.lang.Override + public com.google.protobuf.Int32Value getFlpHeadingDegrees() { + return flpHeadingDegrees_ == null + ? com.google.protobuf.Int32Value.getDefaultInstance() + : flpHeadingDegrees_; + } + + /** + * + * + *
+   * Direction the vehicle is moving in degrees, as determined by the Fused
+   * Location Provider. 0 represents North. The valid range is [0,360).
+   * 
+ * + * .google.protobuf.Int32Value flp_heading_degrees = 32; + */ + @java.lang.Override + public com.google.protobuf.Int32ValueOrBuilder getFlpHeadingDegreesOrBuilder() { + return flpHeadingDegrees_ == null + ? com.google.protobuf.Int32Value.getDefaultInstance() + : flpHeadingDegrees_; + } + public static final int SUPPLEMENTAL_LOCATION_FIELD_NUMBER = 18; private com.google.type.LatLng supplementalLocation_; @@ -1327,7 +1538,7 @@ public com.google.protobuf.DoubleValueOrBuilder getRawLocationAccuracyOrBuilder( */ @java.lang.Override public boolean hasSupplementalLocation() { - return ((bitField0_ & 0x00200000) != 0); + return ((bitField0_ & 0x02000000) != 0); } /** @@ -1380,7 +1591,7 @@ public com.google.type.LatLngOrBuilder getSupplementalLocationOrBuilder() { */ @java.lang.Override public boolean hasSupplementalLocationTime() { - return ((bitField0_ & 0x00400000) != 0); + return ((bitField0_ & 0x04000000) != 0); } /** @@ -1472,7 +1683,7 @@ public com.google.maps.fleetengine.v1.LocationSensor getSupplementalLocationSens */ @java.lang.Override public boolean hasSupplementalLocationAccuracy() { - return ((bitField0_ & 0x00800000) != 0); + return ((bitField0_ & 0x08000000) != 0); } /** @@ -1522,7 +1733,7 @@ public com.google.protobuf.DoubleValueOrBuilder getSupplementalLocationAccuracyO * bool road_snapped = 26 [deprecated = true]; * * @deprecated maps.fleetengine.v1.VehicleLocation.road_snapped is deprecated. See - * google/maps/fleetengine/v1/fleetengine.proto;l=298 + * google/maps/fleetengine/v1/fleetengine.proto;l=311 * @return The roadSnapped. */ @java.lang.Override @@ -1597,17 +1808,17 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00080000) != 0)) { output.writeMessage(17, getRawLocationTime()); } - if (((bitField0_ & 0x00200000) != 0)) { + if (((bitField0_ & 0x02000000) != 0)) { output.writeMessage(18, getSupplementalLocation()); } - if (((bitField0_ & 0x00400000) != 0)) { + if (((bitField0_ & 0x04000000) != 0)) { output.writeMessage(19, getSupplementalLocationTime()); } if (supplementalLocationSensor_ != com.google.maps.fleetengine.v1.LocationSensor.UNKNOWN_SENSOR.getNumber()) { output.writeEnum(20, supplementalLocationSensor_); } - if (((bitField0_ & 0x00800000) != 0)) { + if (((bitField0_ & 0x08000000) != 0)) { output.writeMessage(21, getSupplementalLocationAccuracy()); } if (((bitField0_ & 0x00000004) != 0)) { @@ -1632,6 +1843,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io != com.google.maps.fleetengine.v1.LocationSensor.UNKNOWN_SENSOR.getNumber()) { output.writeEnum(28, rawLocationSensor_); } + if (((bitField0_ & 0x00200000) != 0)) { + output.writeMessage(29, getFlpLocation()); + } + if (((bitField0_ & 0x00400000) != 0)) { + output.writeMessage(30, getFlpUpdateTime()); + } + if (((bitField0_ & 0x00800000) != 0)) { + output.writeMessage(31, getFlpLatlngAccuracyMeters()); + } + if (((bitField0_ & 0x01000000) != 0)) { + output.writeMessage(32, getFlpHeadingDegrees()); + } getUnknownFields().writeTo(output); } @@ -1693,11 +1916,11 @@ public int getSerializedSize() { if (((bitField0_ & 0x00080000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getRawLocationTime()); } - if (((bitField0_ & 0x00200000) != 0)) { + if (((bitField0_ & 0x02000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getSupplementalLocation()); } - if (((bitField0_ & 0x00400000) != 0)) { + if (((bitField0_ & 0x04000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 19, getSupplementalLocationTime()); @@ -1707,7 +1930,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeEnumSize(20, supplementalLocationSensor_); } - if (((bitField0_ & 0x00800000) != 0)) { + if (((bitField0_ & 0x08000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 21, getSupplementalLocationAccuracy()); @@ -1735,6 +1958,20 @@ public int getSerializedSize() { != com.google.maps.fleetengine.v1.LocationSensor.UNKNOWN_SENSOR.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(28, rawLocationSensor_); } + if (((bitField0_ & 0x00200000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, getFlpLocation()); + } + if (((bitField0_ & 0x00400000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(30, getFlpUpdateTime()); + } + if (((bitField0_ & 0x00800000) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 31, getFlpLatlngAccuracyMeters()); + } + if (((bitField0_ & 0x01000000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(32, getFlpHeadingDegrees()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1837,6 +2074,22 @@ public boolean equals(final java.lang.Object obj) { if (hasRawLocationAccuracy()) { if (!getRawLocationAccuracy().equals(other.getRawLocationAccuracy())) return false; } + if (hasFlpLocation() != other.hasFlpLocation()) return false; + if (hasFlpLocation()) { + if (!getFlpLocation().equals(other.getFlpLocation())) return false; + } + if (hasFlpUpdateTime() != other.hasFlpUpdateTime()) return false; + if (hasFlpUpdateTime()) { + if (!getFlpUpdateTime().equals(other.getFlpUpdateTime())) return false; + } + if (hasFlpLatlngAccuracyMeters() != other.hasFlpLatlngAccuracyMeters()) return false; + if (hasFlpLatlngAccuracyMeters()) { + if (!getFlpLatlngAccuracyMeters().equals(other.getFlpLatlngAccuracyMeters())) return false; + } + if (hasFlpHeadingDegrees() != other.hasFlpHeadingDegrees()) return false; + if (hasFlpHeadingDegrees()) { + if (!getFlpHeadingDegrees().equals(other.getFlpHeadingDegrees())) return false; + } if (hasSupplementalLocation() != other.hasSupplementalLocation()) return false; if (hasSupplementalLocation()) { if (!getSupplementalLocation().equals(other.getSupplementalLocation())) return false; @@ -1951,6 +2204,22 @@ public int hashCode() { hash = (37 * hash) + RAW_LOCATION_ACCURACY_FIELD_NUMBER; hash = (53 * hash) + getRawLocationAccuracy().hashCode(); } + if (hasFlpLocation()) { + hash = (37 * hash) + FLP_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getFlpLocation().hashCode(); + } + if (hasFlpUpdateTime()) { + hash = (37 * hash) + FLP_UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getFlpUpdateTime().hashCode(); + } + if (hasFlpLatlngAccuracyMeters()) { + hash = (37 * hash) + FLP_LATLNG_ACCURACY_METERS_FIELD_NUMBER; + hash = (53 * hash) + getFlpLatlngAccuracyMeters().hashCode(); + } + if (hasFlpHeadingDegrees()) { + hash = (37 * hash) + FLP_HEADING_DEGREES_FIELD_NUMBER; + hash = (53 * hash) + getFlpHeadingDegrees().hashCode(); + } if (hasSupplementalLocation()) { hash = (37 * hash) + SUPPLEMENTAL_LOCATION_FIELD_NUMBER; hash = (53 * hash) + getSupplementalLocation().hashCode(); @@ -2129,6 +2398,10 @@ private void maybeForceBuilderInitialization() { getRawLocationFieldBuilder(); getRawLocationTimeFieldBuilder(); getRawLocationAccuracyFieldBuilder(); + getFlpLocationFieldBuilder(); + getFlpUpdateTimeFieldBuilder(); + getFlpLatlngAccuracyMetersFieldBuilder(); + getFlpHeadingDegreesFieldBuilder(); getSupplementalLocationFieldBuilder(); getSupplementalLocationTimeFieldBuilder(); getSupplementalLocationAccuracyFieldBuilder(); @@ -2246,6 +2519,26 @@ public Builder clear() { rawLocationAccuracyBuilder_.dispose(); rawLocationAccuracyBuilder_ = null; } + flpLocation_ = null; + if (flpLocationBuilder_ != null) { + flpLocationBuilder_.dispose(); + flpLocationBuilder_ = null; + } + flpUpdateTime_ = null; + if (flpUpdateTimeBuilder_ != null) { + flpUpdateTimeBuilder_.dispose(); + flpUpdateTimeBuilder_ = null; + } + flpLatlngAccuracyMeters_ = null; + if (flpLatlngAccuracyMetersBuilder_ != null) { + flpLatlngAccuracyMetersBuilder_.dispose(); + flpLatlngAccuracyMetersBuilder_ = null; + } + flpHeadingDegrees_ = null; + if (flpHeadingDegreesBuilder_ != null) { + flpHeadingDegreesBuilder_.dispose(); + flpHeadingDegreesBuilder_ = null; + } supplementalLocation_ = null; if (supplementalLocationBuilder_ != null) { supplementalLocationBuilder_.dispose(); @@ -2411,30 +2704,54 @@ private void buildPartial0(com.google.maps.fleetengine.v1.VehicleLocation result to_bitField0_ |= 0x00100000; } if (((from_bitField0_ & 0x00800000) != 0)) { + result.flpLocation_ = + flpLocationBuilder_ == null ? flpLocation_ : flpLocationBuilder_.build(); + to_bitField0_ |= 0x00200000; + } + if (((from_bitField0_ & 0x01000000) != 0)) { + result.flpUpdateTime_ = + flpUpdateTimeBuilder_ == null ? flpUpdateTime_ : flpUpdateTimeBuilder_.build(); + to_bitField0_ |= 0x00400000; + } + if (((from_bitField0_ & 0x02000000) != 0)) { + result.flpLatlngAccuracyMeters_ = + flpLatlngAccuracyMetersBuilder_ == null + ? flpLatlngAccuracyMeters_ + : flpLatlngAccuracyMetersBuilder_.build(); + to_bitField0_ |= 0x00800000; + } + if (((from_bitField0_ & 0x04000000) != 0)) { + result.flpHeadingDegrees_ = + flpHeadingDegreesBuilder_ == null + ? flpHeadingDegrees_ + : flpHeadingDegreesBuilder_.build(); + to_bitField0_ |= 0x01000000; + } + if (((from_bitField0_ & 0x08000000) != 0)) { result.supplementalLocation_ = supplementalLocationBuilder_ == null ? supplementalLocation_ : supplementalLocationBuilder_.build(); - to_bitField0_ |= 0x00200000; + to_bitField0_ |= 0x02000000; } - if (((from_bitField0_ & 0x01000000) != 0)) { + if (((from_bitField0_ & 0x10000000) != 0)) { result.supplementalLocationTime_ = supplementalLocationTimeBuilder_ == null ? supplementalLocationTime_ : supplementalLocationTimeBuilder_.build(); - to_bitField0_ |= 0x00400000; + to_bitField0_ |= 0x04000000; } - if (((from_bitField0_ & 0x02000000) != 0)) { + if (((from_bitField0_ & 0x20000000) != 0)) { result.supplementalLocationSensor_ = supplementalLocationSensor_; } - if (((from_bitField0_ & 0x04000000) != 0)) { + if (((from_bitField0_ & 0x40000000) != 0)) { result.supplementalLocationAccuracy_ = supplementalLocationAccuracyBuilder_ == null ? supplementalLocationAccuracy_ : supplementalLocationAccuracyBuilder_.build(); - to_bitField0_ |= 0x00800000; + to_bitField0_ |= 0x08000000; } - if (((from_bitField0_ & 0x08000000) != 0)) { + if (((from_bitField0_ & 0x80000000) != 0)) { result.roadSnapped_ = roadSnapped_; } result.bitField0_ |= to_bitField0_; @@ -2554,6 +2871,18 @@ public Builder mergeFrom(com.google.maps.fleetengine.v1.VehicleLocation other) { if (other.hasRawLocationAccuracy()) { mergeRawLocationAccuracy(other.getRawLocationAccuracy()); } + if (other.hasFlpLocation()) { + mergeFlpLocation(other.getFlpLocation()); + } + if (other.hasFlpUpdateTime()) { + mergeFlpUpdateTime(other.getFlpUpdateTime()); + } + if (other.hasFlpLatlngAccuracyMeters()) { + mergeFlpLatlngAccuracyMeters(other.getFlpLatlngAccuracyMeters()); + } + if (other.hasFlpHeadingDegrees()) { + mergeFlpHeadingDegrees(other.getFlpHeadingDegrees()); + } if (other.hasSupplementalLocation()) { mergeSupplementalLocation(other.getSupplementalLocation()); } @@ -2704,27 +3033,27 @@ public Builder mergeFrom( { input.readMessage( getSupplementalLocationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00800000; + bitField0_ |= 0x08000000; break; } // case 146 case 154: { input.readMessage( getSupplementalLocationTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x01000000; + bitField0_ |= 0x10000000; break; } // case 154 case 160: { supplementalLocationSensor_ = input.readEnum(); - bitField0_ |= 0x02000000; + bitField0_ |= 0x20000000; break; } // case 160 case 170: { input.readMessage( getSupplementalLocationAccuracyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x04000000; + bitField0_ |= 0x40000000; break; } // case 170 case 178: @@ -2756,7 +3085,7 @@ public Builder mergeFrom( case 208: { roadSnapped_ = input.readBool(); - bitField0_ |= 0x08000000; + bitField0_ |= 0x80000000; break; } // case 208 case 218: @@ -2771,6 +3100,32 @@ public Builder mergeFrom( bitField0_ |= 0x00200000; break; } // case 224 + case 234: + { + input.readMessage(getFlpLocationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00800000; + break; + } // case 234 + case 242: + { + input.readMessage(getFlpUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x01000000; + break; + } // case 242 + case 250: + { + input.readMessage( + getFlpLatlngAccuracyMetersFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x02000000; + break; + } // case 250 + case 258: + { + input.readMessage( + getFlpHeadingDegreesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x04000000; + break; + } // case 258 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -7256,23 +7611,23 @@ public com.google.protobuf.DoubleValueOrBuilder getRawLocationAccuracyOrBuilder( return rawLocationAccuracyBuilder_; } - private com.google.type.LatLng supplementalLocation_; + private com.google.type.LatLng flpLocation_; private com.google.protobuf.SingleFieldBuilderV3< com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> - supplementalLocationBuilder_; + flpLocationBuilder_; /** * * *
-     * Supplemental location provided by the integrating app.
+     * The location from Android's Fused Location Provider.
      * 
* - * .google.type.LatLng supplemental_location = 18; + * .google.type.LatLng flp_location = 29; * - * @return Whether the supplementalLocation field is set. + * @return Whether the flpLocation field is set. */ - public boolean hasSupplementalLocation() { + public boolean hasFlpLocation() { return ((bitField0_ & 0x00800000) != 0); } @@ -7280,20 +7635,18 @@ public boolean hasSupplementalLocation() { * * *
-     * Supplemental location provided by the integrating app.
+     * The location from Android's Fused Location Provider.
      * 
* - * .google.type.LatLng supplemental_location = 18; + * .google.type.LatLng flp_location = 29; * - * @return The supplementalLocation. + * @return The flpLocation. */ - public com.google.type.LatLng getSupplementalLocation() { - if (supplementalLocationBuilder_ == null) { - return supplementalLocation_ == null - ? com.google.type.LatLng.getDefaultInstance() - : supplementalLocation_; + public com.google.type.LatLng getFlpLocation() { + if (flpLocationBuilder_ == null) { + return flpLocation_ == null ? com.google.type.LatLng.getDefaultInstance() : flpLocation_; } else { - return supplementalLocationBuilder_.getMessage(); + return flpLocationBuilder_.getMessage(); } } @@ -7301,19 +7654,19 @@ public com.google.type.LatLng getSupplementalLocation() { * * *
-     * Supplemental location provided by the integrating app.
+     * The location from Android's Fused Location Provider.
      * 
* - * .google.type.LatLng supplemental_location = 18; + * .google.type.LatLng flp_location = 29; */ - public Builder setSupplementalLocation(com.google.type.LatLng value) { - if (supplementalLocationBuilder_ == null) { + public Builder setFlpLocation(com.google.type.LatLng value) { + if (flpLocationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - supplementalLocation_ = value; + flpLocation_ = value; } else { - supplementalLocationBuilder_.setMessage(value); + flpLocationBuilder_.setMessage(value); } bitField0_ |= 0x00800000; onChanged(); @@ -7324,16 +7677,16 @@ public Builder setSupplementalLocation(com.google.type.LatLng value) { * * *
-     * Supplemental location provided by the integrating app.
+     * The location from Android's Fused Location Provider.
      * 
* - * .google.type.LatLng supplemental_location = 18; + * .google.type.LatLng flp_location = 29; */ - public Builder setSupplementalLocation(com.google.type.LatLng.Builder builderForValue) { - if (supplementalLocationBuilder_ == null) { - supplementalLocation_ = builderForValue.build(); + public Builder setFlpLocation(com.google.type.LatLng.Builder builderForValue) { + if (flpLocationBuilder_ == null) { + flpLocation_ = builderForValue.build(); } else { - supplementalLocationBuilder_.setMessage(builderForValue.build()); + flpLocationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00800000; onChanged(); @@ -7344,25 +7697,805 @@ public Builder setSupplementalLocation(com.google.type.LatLng.Builder builderFor * * *
-     * Supplemental location provided by the integrating app.
+     * The location from Android's Fused Location Provider.
      * 
* - * .google.type.LatLng supplemental_location = 18; + * .google.type.LatLng flp_location = 29; */ - public Builder mergeSupplementalLocation(com.google.type.LatLng value) { - if (supplementalLocationBuilder_ == null) { + public Builder mergeFlpLocation(com.google.type.LatLng value) { + if (flpLocationBuilder_ == null) { if (((bitField0_ & 0x00800000) != 0) - && supplementalLocation_ != null - && supplementalLocation_ != com.google.type.LatLng.getDefaultInstance()) { - getSupplementalLocationBuilder().mergeFrom(value); + && flpLocation_ != null + && flpLocation_ != com.google.type.LatLng.getDefaultInstance()) { + getFlpLocationBuilder().mergeFrom(value); } else { - supplementalLocation_ = value; + flpLocation_ = value; } } else { - supplementalLocationBuilder_.mergeFrom(value); + flpLocationBuilder_.mergeFrom(value); + } + if (flpLocation_ != null) { + bitField0_ |= 0x00800000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The location from Android's Fused Location Provider.
+     * 
+ * + * .google.type.LatLng flp_location = 29; + */ + public Builder clearFlpLocation() { + bitField0_ = (bitField0_ & ~0x00800000); + flpLocation_ = null; + if (flpLocationBuilder_ != null) { + flpLocationBuilder_.dispose(); + flpLocationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The location from Android's Fused Location Provider.
+     * 
+ * + * .google.type.LatLng flp_location = 29; + */ + public com.google.type.LatLng.Builder getFlpLocationBuilder() { + bitField0_ |= 0x00800000; + onChanged(); + return getFlpLocationFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The location from Android's Fused Location Provider.
+     * 
+ * + * .google.type.LatLng flp_location = 29; + */ + public com.google.type.LatLngOrBuilder getFlpLocationOrBuilder() { + if (flpLocationBuilder_ != null) { + return flpLocationBuilder_.getMessageOrBuilder(); + } else { + return flpLocation_ == null ? com.google.type.LatLng.getDefaultInstance() : flpLocation_; + } + } + + /** + * + * + *
+     * The location from Android's Fused Location Provider.
+     * 
+ * + * .google.type.LatLng flp_location = 29; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + getFlpLocationFieldBuilder() { + if (flpLocationBuilder_ == null) { + flpLocationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, + com.google.type.LatLng.Builder, + com.google.type.LatLngOrBuilder>( + getFlpLocation(), getParentForChildren(), isClean()); + flpLocation_ = null; + } + return flpLocationBuilder_; + } + + private com.google.protobuf.Timestamp flpUpdateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + flpUpdateTimeBuilder_; + + /** + * + * + *
+     * Update timestamp of `flp_location`.
+     * 
+ * + * .google.protobuf.Timestamp flp_update_time = 30; + * + * @return Whether the flpUpdateTime field is set. + */ + public boolean hasFlpUpdateTime() { + return ((bitField0_ & 0x01000000) != 0); + } + + /** + * + * + *
+     * Update timestamp of `flp_location`.
+     * 
+ * + * .google.protobuf.Timestamp flp_update_time = 30; + * + * @return The flpUpdateTime. + */ + public com.google.protobuf.Timestamp getFlpUpdateTime() { + if (flpUpdateTimeBuilder_ == null) { + return flpUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : flpUpdateTime_; + } else { + return flpUpdateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Update timestamp of `flp_location`.
+     * 
+ * + * .google.protobuf.Timestamp flp_update_time = 30; + */ + public Builder setFlpUpdateTime(com.google.protobuf.Timestamp value) { + if (flpUpdateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + flpUpdateTime_ = value; + } else { + flpUpdateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x01000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Update timestamp of `flp_location`.
+     * 
+ * + * .google.protobuf.Timestamp flp_update_time = 30; + */ + public Builder setFlpUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (flpUpdateTimeBuilder_ == null) { + flpUpdateTime_ = builderForValue.build(); + } else { + flpUpdateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x01000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Update timestamp of `flp_location`.
+     * 
+ * + * .google.protobuf.Timestamp flp_update_time = 30; + */ + public Builder mergeFlpUpdateTime(com.google.protobuf.Timestamp value) { + if (flpUpdateTimeBuilder_ == null) { + if (((bitField0_ & 0x01000000) != 0) + && flpUpdateTime_ != null + && flpUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getFlpUpdateTimeBuilder().mergeFrom(value); + } else { + flpUpdateTime_ = value; + } + } else { + flpUpdateTimeBuilder_.mergeFrom(value); + } + if (flpUpdateTime_ != null) { + bitField0_ |= 0x01000000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Update timestamp of `flp_location`.
+     * 
+ * + * .google.protobuf.Timestamp flp_update_time = 30; + */ + public Builder clearFlpUpdateTime() { + bitField0_ = (bitField0_ & ~0x01000000); + flpUpdateTime_ = null; + if (flpUpdateTimeBuilder_ != null) { + flpUpdateTimeBuilder_.dispose(); + flpUpdateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Update timestamp of `flp_location`.
+     * 
+ * + * .google.protobuf.Timestamp flp_update_time = 30; + */ + public com.google.protobuf.Timestamp.Builder getFlpUpdateTimeBuilder() { + bitField0_ |= 0x01000000; + onChanged(); + return getFlpUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Update timestamp of `flp_location`.
+     * 
+ * + * .google.protobuf.Timestamp flp_update_time = 30; + */ + public com.google.protobuf.TimestampOrBuilder getFlpUpdateTimeOrBuilder() { + if (flpUpdateTimeBuilder_ != null) { + return flpUpdateTimeBuilder_.getMessageOrBuilder(); + } else { + return flpUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : flpUpdateTime_; + } + } + + /** + * + * + *
+     * Update timestamp of `flp_location`.
+     * 
+ * + * .google.protobuf.Timestamp flp_update_time = 30; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getFlpUpdateTimeFieldBuilder() { + if (flpUpdateTimeBuilder_ == null) { + flpUpdateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getFlpUpdateTime(), getParentForChildren(), isClean()); + flpUpdateTime_ = null; + } + return flpUpdateTimeBuilder_; + } + + private com.google.protobuf.DoubleValue flpLatlngAccuracyMeters_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, + com.google.protobuf.DoubleValue.Builder, + com.google.protobuf.DoubleValueOrBuilder> + flpLatlngAccuracyMetersBuilder_; + + /** + * + * + *
+     * Accuracy of `flp_location` in meters as a radius.
+     * 
+ * + * .google.protobuf.DoubleValue flp_latlng_accuracy_meters = 31; + * + * @return Whether the flpLatlngAccuracyMeters field is set. + */ + public boolean hasFlpLatlngAccuracyMeters() { + return ((bitField0_ & 0x02000000) != 0); + } + + /** + * + * + *
+     * Accuracy of `flp_location` in meters as a radius.
+     * 
+ * + * .google.protobuf.DoubleValue flp_latlng_accuracy_meters = 31; + * + * @return The flpLatlngAccuracyMeters. + */ + public com.google.protobuf.DoubleValue getFlpLatlngAccuracyMeters() { + if (flpLatlngAccuracyMetersBuilder_ == null) { + return flpLatlngAccuracyMeters_ == null + ? com.google.protobuf.DoubleValue.getDefaultInstance() + : flpLatlngAccuracyMeters_; + } else { + return flpLatlngAccuracyMetersBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Accuracy of `flp_location` in meters as a radius.
+     * 
+ * + * .google.protobuf.DoubleValue flp_latlng_accuracy_meters = 31; + */ + public Builder setFlpLatlngAccuracyMeters(com.google.protobuf.DoubleValue value) { + if (flpLatlngAccuracyMetersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + flpLatlngAccuracyMeters_ = value; + } else { + flpLatlngAccuracyMetersBuilder_.setMessage(value); + } + bitField0_ |= 0x02000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Accuracy of `flp_location` in meters as a radius.
+     * 
+ * + * .google.protobuf.DoubleValue flp_latlng_accuracy_meters = 31; + */ + public Builder setFlpLatlngAccuracyMeters( + com.google.protobuf.DoubleValue.Builder builderForValue) { + if (flpLatlngAccuracyMetersBuilder_ == null) { + flpLatlngAccuracyMeters_ = builderForValue.build(); + } else { + flpLatlngAccuracyMetersBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x02000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Accuracy of `flp_location` in meters as a radius.
+     * 
+ * + * .google.protobuf.DoubleValue flp_latlng_accuracy_meters = 31; + */ + public Builder mergeFlpLatlngAccuracyMeters(com.google.protobuf.DoubleValue value) { + if (flpLatlngAccuracyMetersBuilder_ == null) { + if (((bitField0_ & 0x02000000) != 0) + && flpLatlngAccuracyMeters_ != null + && flpLatlngAccuracyMeters_ != com.google.protobuf.DoubleValue.getDefaultInstance()) { + getFlpLatlngAccuracyMetersBuilder().mergeFrom(value); + } else { + flpLatlngAccuracyMeters_ = value; + } + } else { + flpLatlngAccuracyMetersBuilder_.mergeFrom(value); + } + if (flpLatlngAccuracyMeters_ != null) { + bitField0_ |= 0x02000000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Accuracy of `flp_location` in meters as a radius.
+     * 
+ * + * .google.protobuf.DoubleValue flp_latlng_accuracy_meters = 31; + */ + public Builder clearFlpLatlngAccuracyMeters() { + bitField0_ = (bitField0_ & ~0x02000000); + flpLatlngAccuracyMeters_ = null; + if (flpLatlngAccuracyMetersBuilder_ != null) { + flpLatlngAccuracyMetersBuilder_.dispose(); + flpLatlngAccuracyMetersBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Accuracy of `flp_location` in meters as a radius.
+     * 
+ * + * .google.protobuf.DoubleValue flp_latlng_accuracy_meters = 31; + */ + public com.google.protobuf.DoubleValue.Builder getFlpLatlngAccuracyMetersBuilder() { + bitField0_ |= 0x02000000; + onChanged(); + return getFlpLatlngAccuracyMetersFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Accuracy of `flp_location` in meters as a radius.
+     * 
+ * + * .google.protobuf.DoubleValue flp_latlng_accuracy_meters = 31; + */ + public com.google.protobuf.DoubleValueOrBuilder getFlpLatlngAccuracyMetersOrBuilder() { + if (flpLatlngAccuracyMetersBuilder_ != null) { + return flpLatlngAccuracyMetersBuilder_.getMessageOrBuilder(); + } else { + return flpLatlngAccuracyMeters_ == null + ? com.google.protobuf.DoubleValue.getDefaultInstance() + : flpLatlngAccuracyMeters_; + } + } + + /** + * + * + *
+     * Accuracy of `flp_location` in meters as a radius.
+     * 
+ * + * .google.protobuf.DoubleValue flp_latlng_accuracy_meters = 31; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, + com.google.protobuf.DoubleValue.Builder, + com.google.protobuf.DoubleValueOrBuilder> + getFlpLatlngAccuracyMetersFieldBuilder() { + if (flpLatlngAccuracyMetersBuilder_ == null) { + flpLatlngAccuracyMetersBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, + com.google.protobuf.DoubleValue.Builder, + com.google.protobuf.DoubleValueOrBuilder>( + getFlpLatlngAccuracyMeters(), getParentForChildren(), isClean()); + flpLatlngAccuracyMeters_ = null; + } + return flpLatlngAccuracyMetersBuilder_; + } + + private com.google.protobuf.Int32Value flpHeadingDegrees_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, + com.google.protobuf.Int32Value.Builder, + com.google.protobuf.Int32ValueOrBuilder> + flpHeadingDegreesBuilder_; + + /** + * + * + *
+     * Direction the vehicle is moving in degrees, as determined by the Fused
+     * Location Provider. 0 represents North. The valid range is [0,360).
+     * 
+ * + * .google.protobuf.Int32Value flp_heading_degrees = 32; + * + * @return Whether the flpHeadingDegrees field is set. + */ + public boolean hasFlpHeadingDegrees() { + return ((bitField0_ & 0x04000000) != 0); + } + + /** + * + * + *
+     * Direction the vehicle is moving in degrees, as determined by the Fused
+     * Location Provider. 0 represents North. The valid range is [0,360).
+     * 
+ * + * .google.protobuf.Int32Value flp_heading_degrees = 32; + * + * @return The flpHeadingDegrees. + */ + public com.google.protobuf.Int32Value getFlpHeadingDegrees() { + if (flpHeadingDegreesBuilder_ == null) { + return flpHeadingDegrees_ == null + ? com.google.protobuf.Int32Value.getDefaultInstance() + : flpHeadingDegrees_; + } else { + return flpHeadingDegreesBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Direction the vehicle is moving in degrees, as determined by the Fused
+     * Location Provider. 0 represents North. The valid range is [0,360).
+     * 
+ * + * .google.protobuf.Int32Value flp_heading_degrees = 32; + */ + public Builder setFlpHeadingDegrees(com.google.protobuf.Int32Value value) { + if (flpHeadingDegreesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + flpHeadingDegrees_ = value; + } else { + flpHeadingDegreesBuilder_.setMessage(value); + } + bitField0_ |= 0x04000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Direction the vehicle is moving in degrees, as determined by the Fused
+     * Location Provider. 0 represents North. The valid range is [0,360).
+     * 
+ * + * .google.protobuf.Int32Value flp_heading_degrees = 32; + */ + public Builder setFlpHeadingDegrees(com.google.protobuf.Int32Value.Builder builderForValue) { + if (flpHeadingDegreesBuilder_ == null) { + flpHeadingDegrees_ = builderForValue.build(); + } else { + flpHeadingDegreesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x04000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Direction the vehicle is moving in degrees, as determined by the Fused
+     * Location Provider. 0 represents North. The valid range is [0,360).
+     * 
+ * + * .google.protobuf.Int32Value flp_heading_degrees = 32; + */ + public Builder mergeFlpHeadingDegrees(com.google.protobuf.Int32Value value) { + if (flpHeadingDegreesBuilder_ == null) { + if (((bitField0_ & 0x04000000) != 0) + && flpHeadingDegrees_ != null + && flpHeadingDegrees_ != com.google.protobuf.Int32Value.getDefaultInstance()) { + getFlpHeadingDegreesBuilder().mergeFrom(value); + } else { + flpHeadingDegrees_ = value; + } + } else { + flpHeadingDegreesBuilder_.mergeFrom(value); + } + if (flpHeadingDegrees_ != null) { + bitField0_ |= 0x04000000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Direction the vehicle is moving in degrees, as determined by the Fused
+     * Location Provider. 0 represents North. The valid range is [0,360).
+     * 
+ * + * .google.protobuf.Int32Value flp_heading_degrees = 32; + */ + public Builder clearFlpHeadingDegrees() { + bitField0_ = (bitField0_ & ~0x04000000); + flpHeadingDegrees_ = null; + if (flpHeadingDegreesBuilder_ != null) { + flpHeadingDegreesBuilder_.dispose(); + flpHeadingDegreesBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Direction the vehicle is moving in degrees, as determined by the Fused
+     * Location Provider. 0 represents North. The valid range is [0,360).
+     * 
+ * + * .google.protobuf.Int32Value flp_heading_degrees = 32; + */ + public com.google.protobuf.Int32Value.Builder getFlpHeadingDegreesBuilder() { + bitField0_ |= 0x04000000; + onChanged(); + return getFlpHeadingDegreesFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Direction the vehicle is moving in degrees, as determined by the Fused
+     * Location Provider. 0 represents North. The valid range is [0,360).
+     * 
+ * + * .google.protobuf.Int32Value flp_heading_degrees = 32; + */ + public com.google.protobuf.Int32ValueOrBuilder getFlpHeadingDegreesOrBuilder() { + if (flpHeadingDegreesBuilder_ != null) { + return flpHeadingDegreesBuilder_.getMessageOrBuilder(); + } else { + return flpHeadingDegrees_ == null + ? com.google.protobuf.Int32Value.getDefaultInstance() + : flpHeadingDegrees_; + } + } + + /** + * + * + *
+     * Direction the vehicle is moving in degrees, as determined by the Fused
+     * Location Provider. 0 represents North. The valid range is [0,360).
+     * 
+ * + * .google.protobuf.Int32Value flp_heading_degrees = 32; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, + com.google.protobuf.Int32Value.Builder, + com.google.protobuf.Int32ValueOrBuilder> + getFlpHeadingDegreesFieldBuilder() { + if (flpHeadingDegreesBuilder_ == null) { + flpHeadingDegreesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, + com.google.protobuf.Int32Value.Builder, + com.google.protobuf.Int32ValueOrBuilder>( + getFlpHeadingDegrees(), getParentForChildren(), isClean()); + flpHeadingDegrees_ = null; + } + return flpHeadingDegreesBuilder_; + } + + private com.google.type.LatLng supplementalLocation_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + supplementalLocationBuilder_; + + /** + * + * + *
+     * Supplemental location provided by the integrating app.
+     * 
+ * + * .google.type.LatLng supplemental_location = 18; + * + * @return Whether the supplementalLocation field is set. + */ + public boolean hasSupplementalLocation() { + return ((bitField0_ & 0x08000000) != 0); + } + + /** + * + * + *
+     * Supplemental location provided by the integrating app.
+     * 
+ * + * .google.type.LatLng supplemental_location = 18; + * + * @return The supplementalLocation. + */ + public com.google.type.LatLng getSupplementalLocation() { + if (supplementalLocationBuilder_ == null) { + return supplementalLocation_ == null + ? com.google.type.LatLng.getDefaultInstance() + : supplementalLocation_; + } else { + return supplementalLocationBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Supplemental location provided by the integrating app.
+     * 
+ * + * .google.type.LatLng supplemental_location = 18; + */ + public Builder setSupplementalLocation(com.google.type.LatLng value) { + if (supplementalLocationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + supplementalLocation_ = value; + } else { + supplementalLocationBuilder_.setMessage(value); + } + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Supplemental location provided by the integrating app.
+     * 
+ * + * .google.type.LatLng supplemental_location = 18; + */ + public Builder setSupplementalLocation(com.google.type.LatLng.Builder builderForValue) { + if (supplementalLocationBuilder_ == null) { + supplementalLocation_ = builderForValue.build(); + } else { + supplementalLocationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Supplemental location provided by the integrating app.
+     * 
+ * + * .google.type.LatLng supplemental_location = 18; + */ + public Builder mergeSupplementalLocation(com.google.type.LatLng value) { + if (supplementalLocationBuilder_ == null) { + if (((bitField0_ & 0x08000000) != 0) + && supplementalLocation_ != null + && supplementalLocation_ != com.google.type.LatLng.getDefaultInstance()) { + getSupplementalLocationBuilder().mergeFrom(value); + } else { + supplementalLocation_ = value; + } + } else { + supplementalLocationBuilder_.mergeFrom(value); } if (supplementalLocation_ != null) { - bitField0_ |= 0x00800000; + bitField0_ |= 0x08000000; onChanged(); } return this; @@ -7378,7 +8511,7 @@ public Builder mergeSupplementalLocation(com.google.type.LatLng value) { * .google.type.LatLng supplemental_location = 18; */ public Builder clearSupplementalLocation() { - bitField0_ = (bitField0_ & ~0x00800000); + bitField0_ = (bitField0_ & ~0x08000000); supplementalLocation_ = null; if (supplementalLocationBuilder_ != null) { supplementalLocationBuilder_.dispose(); @@ -7398,7 +8531,7 @@ public Builder clearSupplementalLocation() { * .google.type.LatLng supplemental_location = 18; */ public com.google.type.LatLng.Builder getSupplementalLocationBuilder() { - bitField0_ |= 0x00800000; + bitField0_ |= 0x08000000; onChanged(); return getSupplementalLocationFieldBuilder().getBuilder(); } @@ -7465,7 +8598,7 @@ public com.google.type.LatLngOrBuilder getSupplementalLocationOrBuilder() { * @return Whether the supplementalLocationTime field is set. */ public boolean hasSupplementalLocationTime() { - return ((bitField0_ & 0x01000000) != 0); + return ((bitField0_ & 0x10000000) != 0); } /** @@ -7507,7 +8640,7 @@ public Builder setSupplementalLocationTime(com.google.protobuf.Timestamp value) } else { supplementalLocationTimeBuilder_.setMessage(value); } - bitField0_ |= 0x01000000; + bitField0_ |= 0x10000000; onChanged(); return this; } @@ -7528,7 +8661,7 @@ public Builder setSupplementalLocationTime( } else { supplementalLocationTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x01000000; + bitField0_ |= 0x10000000; onChanged(); return this; } @@ -7544,7 +8677,7 @@ public Builder setSupplementalLocationTime( */ public Builder mergeSupplementalLocationTime(com.google.protobuf.Timestamp value) { if (supplementalLocationTimeBuilder_ == null) { - if (((bitField0_ & 0x01000000) != 0) + if (((bitField0_ & 0x10000000) != 0) && supplementalLocationTime_ != null && supplementalLocationTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSupplementalLocationTimeBuilder().mergeFrom(value); @@ -7555,7 +8688,7 @@ public Builder mergeSupplementalLocationTime(com.google.protobuf.Timestamp value supplementalLocationTimeBuilder_.mergeFrom(value); } if (supplementalLocationTime_ != null) { - bitField0_ |= 0x01000000; + bitField0_ |= 0x10000000; onChanged(); } return this; @@ -7571,7 +8704,7 @@ public Builder mergeSupplementalLocationTime(com.google.protobuf.Timestamp value * .google.protobuf.Timestamp supplemental_location_time = 19; */ public Builder clearSupplementalLocationTime() { - bitField0_ = (bitField0_ & ~0x01000000); + bitField0_ = (bitField0_ & ~0x10000000); supplementalLocationTime_ = null; if (supplementalLocationTimeBuilder_ != null) { supplementalLocationTimeBuilder_.dispose(); @@ -7591,7 +8724,7 @@ public Builder clearSupplementalLocationTime() { * .google.protobuf.Timestamp supplemental_location_time = 19; */ public com.google.protobuf.Timestamp.Builder getSupplementalLocationTimeBuilder() { - bitField0_ |= 0x01000000; + bitField0_ |= 0x10000000; onChanged(); return getSupplementalLocationTimeFieldBuilder().getBuilder(); } @@ -7675,7 +8808,7 @@ public int getSupplementalLocationSensorValue() { */ public Builder setSupplementalLocationSensorValue(int value) { supplementalLocationSensor_ = value; - bitField0_ |= 0x02000000; + bitField0_ |= 0x20000000; onChanged(); return this; } @@ -7717,7 +8850,7 @@ public Builder setSupplementalLocationSensor( if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x02000000; + bitField0_ |= 0x20000000; supplementalLocationSensor_ = value.getNumber(); onChanged(); return this; @@ -7736,7 +8869,7 @@ public Builder setSupplementalLocationSensor( * @return This builder for chaining. */ public Builder clearSupplementalLocationSensor() { - bitField0_ = (bitField0_ & ~0x02000000); + bitField0_ = (bitField0_ & ~0x20000000); supplementalLocationSensor_ = 0; onChanged(); return this; @@ -7761,7 +8894,7 @@ public Builder clearSupplementalLocationSensor() { * @return Whether the supplementalLocationAccuracy field is set. */ public boolean hasSupplementalLocationAccuracy() { - return ((bitField0_ & 0x04000000) != 0); + return ((bitField0_ & 0x40000000) != 0); } /** @@ -7803,7 +8936,7 @@ public Builder setSupplementalLocationAccuracy(com.google.protobuf.DoubleValue v } else { supplementalLocationAccuracyBuilder_.setMessage(value); } - bitField0_ |= 0x04000000; + bitField0_ |= 0x40000000; onChanged(); return this; } @@ -7824,7 +8957,7 @@ public Builder setSupplementalLocationAccuracy( } else { supplementalLocationAccuracyBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x04000000; + bitField0_ |= 0x40000000; onChanged(); return this; } @@ -7840,7 +8973,7 @@ public Builder setSupplementalLocationAccuracy( */ public Builder mergeSupplementalLocationAccuracy(com.google.protobuf.DoubleValue value) { if (supplementalLocationAccuracyBuilder_ == null) { - if (((bitField0_ & 0x04000000) != 0) + if (((bitField0_ & 0x40000000) != 0) && supplementalLocationAccuracy_ != null && supplementalLocationAccuracy_ != com.google.protobuf.DoubleValue.getDefaultInstance()) { @@ -7852,7 +8985,7 @@ public Builder mergeSupplementalLocationAccuracy(com.google.protobuf.DoubleValue supplementalLocationAccuracyBuilder_.mergeFrom(value); } if (supplementalLocationAccuracy_ != null) { - bitField0_ |= 0x04000000; + bitField0_ |= 0x40000000; onChanged(); } return this; @@ -7868,7 +9001,7 @@ public Builder mergeSupplementalLocationAccuracy(com.google.protobuf.DoubleValue * .google.protobuf.DoubleValue supplemental_location_accuracy = 21; */ public Builder clearSupplementalLocationAccuracy() { - bitField0_ = (bitField0_ & ~0x04000000); + bitField0_ = (bitField0_ & ~0x40000000); supplementalLocationAccuracy_ = null; if (supplementalLocationAccuracyBuilder_ != null) { supplementalLocationAccuracyBuilder_.dispose(); @@ -7888,7 +9021,7 @@ public Builder clearSupplementalLocationAccuracy() { * .google.protobuf.DoubleValue supplemental_location_accuracy = 21; */ public com.google.protobuf.DoubleValue.Builder getSupplementalLocationAccuracyBuilder() { - bitField0_ |= 0x04000000; + bitField0_ |= 0x40000000; onChanged(); return getSupplementalLocationAccuracyFieldBuilder().getBuilder(); } @@ -7950,7 +9083,7 @@ public com.google.protobuf.DoubleValueOrBuilder getSupplementalLocationAccuracyO * bool road_snapped = 26 [deprecated = true]; * * @deprecated maps.fleetengine.v1.VehicleLocation.road_snapped is deprecated. See - * google/maps/fleetengine/v1/fleetengine.proto;l=298 + * google/maps/fleetengine/v1/fleetengine.proto;l=311 * @return The roadSnapped. */ @java.lang.Override @@ -7969,7 +9102,7 @@ public boolean getRoadSnapped() { * bool road_snapped = 26 [deprecated = true]; * * @deprecated maps.fleetengine.v1.VehicleLocation.road_snapped is deprecated. See - * google/maps/fleetengine/v1/fleetengine.proto;l=298 + * google/maps/fleetengine/v1/fleetengine.proto;l=311 * @param value The roadSnapped to set. * @return This builder for chaining. */ @@ -7977,7 +9110,7 @@ public boolean getRoadSnapped() { public Builder setRoadSnapped(boolean value) { roadSnapped_ = value; - bitField0_ |= 0x08000000; + bitField0_ |= 0x80000000; onChanged(); return this; } @@ -7992,12 +9125,12 @@ public Builder setRoadSnapped(boolean value) { * bool road_snapped = 26 [deprecated = true]; * * @deprecated maps.fleetengine.v1.VehicleLocation.road_snapped is deprecated. See - * google/maps/fleetengine/v1/fleetengine.proto;l=298 + * google/maps/fleetengine/v1/fleetengine.proto;l=311 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearRoadSnapped() { - bitField0_ = (bitField0_ & ~0x08000000); + bitField0_ = (bitField0_ & ~0x80000000); roadSnapped_ = false; onChanged(); return this; diff --git a/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/VehicleLocationOrBuilder.java b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/VehicleLocationOrBuilder.java index fcd479539d67..ded43e668796 100644 --- a/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/VehicleLocationOrBuilder.java +++ b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/VehicleLocationOrBuilder.java @@ -942,6 +942,157 @@ public interface VehicleLocationOrBuilder */ com.google.protobuf.DoubleValueOrBuilder getRawLocationAccuracyOrBuilder(); + /** + * + * + *
+   * The location from Android's Fused Location Provider.
+   * 
+ * + * .google.type.LatLng flp_location = 29; + * + * @return Whether the flpLocation field is set. + */ + boolean hasFlpLocation(); + + /** + * + * + *
+   * The location from Android's Fused Location Provider.
+   * 
+ * + * .google.type.LatLng flp_location = 29; + * + * @return The flpLocation. + */ + com.google.type.LatLng getFlpLocation(); + + /** + * + * + *
+   * The location from Android's Fused Location Provider.
+   * 
+ * + * .google.type.LatLng flp_location = 29; + */ + com.google.type.LatLngOrBuilder getFlpLocationOrBuilder(); + + /** + * + * + *
+   * Update timestamp of `flp_location`.
+   * 
+ * + * .google.protobuf.Timestamp flp_update_time = 30; + * + * @return Whether the flpUpdateTime field is set. + */ + boolean hasFlpUpdateTime(); + + /** + * + * + *
+   * Update timestamp of `flp_location`.
+   * 
+ * + * .google.protobuf.Timestamp flp_update_time = 30; + * + * @return The flpUpdateTime. + */ + com.google.protobuf.Timestamp getFlpUpdateTime(); + + /** + * + * + *
+   * Update timestamp of `flp_location`.
+   * 
+ * + * .google.protobuf.Timestamp flp_update_time = 30; + */ + com.google.protobuf.TimestampOrBuilder getFlpUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Accuracy of `flp_location` in meters as a radius.
+   * 
+ * + * .google.protobuf.DoubleValue flp_latlng_accuracy_meters = 31; + * + * @return Whether the flpLatlngAccuracyMeters field is set. + */ + boolean hasFlpLatlngAccuracyMeters(); + + /** + * + * + *
+   * Accuracy of `flp_location` in meters as a radius.
+   * 
+ * + * .google.protobuf.DoubleValue flp_latlng_accuracy_meters = 31; + * + * @return The flpLatlngAccuracyMeters. + */ + com.google.protobuf.DoubleValue getFlpLatlngAccuracyMeters(); + + /** + * + * + *
+   * Accuracy of `flp_location` in meters as a radius.
+   * 
+ * + * .google.protobuf.DoubleValue flp_latlng_accuracy_meters = 31; + */ + com.google.protobuf.DoubleValueOrBuilder getFlpLatlngAccuracyMetersOrBuilder(); + + /** + * + * + *
+   * Direction the vehicle is moving in degrees, as determined by the Fused
+   * Location Provider. 0 represents North. The valid range is [0,360).
+   * 
+ * + * .google.protobuf.Int32Value flp_heading_degrees = 32; + * + * @return Whether the flpHeadingDegrees field is set. + */ + boolean hasFlpHeadingDegrees(); + + /** + * + * + *
+   * Direction the vehicle is moving in degrees, as determined by the Fused
+   * Location Provider. 0 represents North. The valid range is [0,360).
+   * 
+ * + * .google.protobuf.Int32Value flp_heading_degrees = 32; + * + * @return The flpHeadingDegrees. + */ + com.google.protobuf.Int32Value getFlpHeadingDegrees(); + + /** + * + * + *
+   * Direction the vehicle is moving in degrees, as determined by the Fused
+   * Location Provider. 0 represents North. The valid range is [0,360).
+   * 
+ * + * .google.protobuf.Int32Value flp_heading_degrees = 32; + */ + com.google.protobuf.Int32ValueOrBuilder getFlpHeadingDegreesOrBuilder(); + /** * * @@ -1091,7 +1242,7 @@ public interface VehicleLocationOrBuilder * bool road_snapped = 26 [deprecated = true]; * * @deprecated maps.fleetengine.v1.VehicleLocation.road_snapped is deprecated. See - * google/maps/fleetengine/v1/fleetengine.proto;l=298 + * google/maps/fleetengine/v1/fleetengine.proto;l=311 * @return The roadSnapped. */ @java.lang.Deprecated diff --git a/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/proto/google/maps/fleetengine/v1/fleetengine.proto b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/proto/google/maps/fleetengine/v1/fleetengine.proto index 2835a1d549d8..426190db6b38 100644 --- a/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/proto/google/maps/fleetengine/v1/fleetengine.proto +++ b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/proto/google/maps/fleetengine/v1/fleetengine.proto @@ -282,6 +282,19 @@ message VehicleLocation { // Accuracy of `raw_location` as a radius, in meters. google.protobuf.DoubleValue raw_location_accuracy = 25; + // The location from Android's Fused Location Provider. + google.type.LatLng flp_location = 29; + + // Update timestamp of `flp_location`. + google.protobuf.Timestamp flp_update_time = 30; + + // Accuracy of `flp_location` in meters as a radius. + google.protobuf.DoubleValue flp_latlng_accuracy_meters = 31; + + // Direction the vehicle is moving in degrees, as determined by the Fused + // Location Provider. 0 represents North. The valid range is [0,360). + google.protobuf.Int32Value flp_heading_degrees = 32; + // Supplemental location provided by the integrating app. google.type.LatLng supplemental_location = 18; @@ -335,3 +348,22 @@ enum LocationSensor { // The location provider on Apple operating systems. CORE_LOCATION = 200; } + +// Describes a trip attribute as a key-value pair. The "key:value" string length +// cannot exceed 256 characters. +message TripAttribute { + // The attribute's key. Keys may not contain the colon character (:). + string key = 1; + + // The attribute's value, can be in string, bool, or double type. + oneof trip_attribute_value { + // String typed attribute value. + string string_value = 2; + + // Boolean typed attribute value. + bool bool_value = 3; + + // Double typed attribute value. + double number_value = 4; + } +} diff --git a/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/proto/google/maps/fleetengine/v1/traffic.proto b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/proto/google/maps/fleetengine/v1/traffic.proto index ae1c9dc55c1e..03312c25739b 100644 --- a/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/proto/google/maps/fleetengine/v1/traffic.proto +++ b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/proto/google/maps/fleetengine/v1/traffic.proto @@ -34,13 +34,13 @@ message SpeedReadingInterval { // Default value. This value is unused. SPEED_UNSPECIFIED = 0; - // Normal speed, no slowdown is detected. + // Normal speed, no traffic delays. NORMAL = 1; - // Slowdown detected, but no traffic jam formed. + // Slowdown detected, medium amount of traffic. SLOW = 2; - // Traffic jam detected. + // Traffic delays. TRAFFIC_JAM = 3; } diff --git a/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/proto/google/maps/fleetengine/v1/trip_api.proto b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/proto/google/maps/fleetengine/v1/trip_api.proto index 25b4de21e8bc..4f707bb6e5e2 100644 --- a/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/proto/google/maps/fleetengine/v1/trip_api.proto +++ b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/proto/google/maps/fleetengine/v1/trip_api.proto @@ -222,11 +222,11 @@ message GetTripRequest { // If a minimum is unspecified, the route data are always retrieved. google.protobuf.Timestamp current_route_segment_version = 6; - // Indicates the minimum timestamp (exclusive) for which - // `Trip.remaining_waypoints` are retrieved. If they are unchanged since this - // timestamp, the `remaining_waypoints` are not set in the response. If this - // field is unspecified, `remaining_waypoints` is always retrieved. - google.protobuf.Timestamp remaining_waypoints_version = 7; + // Deprecated: `Trip.remaining_waypoints` are always retrieved. Use + // `remaining_waypoints_route_version` to control when + // `Trip.remaining_waypoints.traffic_to_waypoint` and + // `Trip.remaining_waypoints.path_to_waypoint` data are retrieved. + google.protobuf.Timestamp remaining_waypoints_version = 7 [deprecated = true]; // The returned current route format, `LAT_LNG_LIST_TYPE` (in `Trip.route`), // or `ENCODED_POLYLINE_TYPE` (in `Trip.current_route_segment`). The default diff --git a/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/proto/google/maps/fleetengine/v1/trips.proto b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/proto/google/maps/fleetengine/v1/trips.proto index ef6a69a6464e..ea4874937048 100644 --- a/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/proto/google/maps/fleetengine/v1/trips.proto +++ b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/proto/google/maps/fleetengine/v1/trips.proto @@ -224,6 +224,9 @@ message Trip { // The subset of Trip fields that are populated and how they should be // interpreted. TripView view = 31; + + // A list of custom Trip attributes. Each attribute must have a unique key. + repeated TripAttribute attributes = 35; } // The actual location where a stop (pickup/dropoff) happened. diff --git a/java-maps-mapsplatformdatasets/CHANGELOG.md b/java-maps-mapsplatformdatasets/CHANGELOG.md index 2a7eb0d4dc05..f6111f762ece 100644 --- a/java-maps-mapsplatformdatasets/CHANGELOG.md +++ b/java-maps-mapsplatformdatasets/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.57.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.56.0 (2025-06-25) ### Dependencies diff --git a/java-maps-mapsplatformdatasets/README.md b/java-maps-mapsplatformdatasets/README.md index af93ff047ee3..aa0def13fe01 100644 --- a/java-maps-mapsplatformdatasets/README.md +++ b/java-maps-mapsplatformdatasets/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.maps google-maps-mapsplatformdatasets - 0.55.0 + 0.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-mapsplatformdatasets:0.55.0' +implementation 'com.google.maps:google-maps-mapsplatformdatasets:0.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-mapsplatformdatasets" % "0.55.0" +libraryDependencies += "com.google.maps" % "google-maps-mapsplatformdatasets" % "0.56.0" ``` ## Authentication @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-mapsplatformdatasets.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-mapsplatformdatasets/0.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-mapsplatformdatasets/0.56.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/google-maps-mapsplatformdatasets-bom/pom.xml b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets-bom/pom.xml index 4b01b4561a81..2a30a4b8db9f 100644 --- a/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets-bom/pom.xml +++ b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.maps google-maps-mapsplatformdatasets-bom - 0.56.0 + 0.57.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.maps google-maps-mapsplatformdatasets - 0.56.0 + 0.57.0 com.google.maps.api.grpc grpc-google-maps-mapsplatformdatasets-v1 - 0.56.0 + 0.57.0 com.google.maps.api.grpc proto-google-maps-mapsplatformdatasets-v1 - 0.56.0 + 0.57.0
diff --git a/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/pom.xml b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/pom.xml index 9fd6150ad1ee..7fd1c92f2d0a 100644 --- a/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/pom.xml +++ b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.maps google-maps-mapsplatformdatasets - 0.56.0 + 0.57.0 jar Google Maps Platform Datasets API Maps Platform Datasets API The Maps Platform Datasets API enables developers to ingest geospatially-tied datasets @@ -11,7 +11,7 @@ com.google.maps google-maps-mapsplatformdatasets-parent - 0.56.0 + 0.57.0 google-maps-mapsplatformdatasets diff --git a/java-maps-mapsplatformdatasets/grpc-google-maps-mapsplatformdatasets-v1/pom.xml b/java-maps-mapsplatformdatasets/grpc-google-maps-mapsplatformdatasets-v1/pom.xml index 8b458c08f116..c509606dce5d 100644 --- a/java-maps-mapsplatformdatasets/grpc-google-maps-mapsplatformdatasets-v1/pom.xml +++ b/java-maps-mapsplatformdatasets/grpc-google-maps-mapsplatformdatasets-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc grpc-google-maps-mapsplatformdatasets-v1 - 0.56.0 + 0.57.0 grpc-google-maps-mapsplatformdatasets-v1 GRPC library for google-maps-mapsplatformdatasets com.google.maps google-maps-mapsplatformdatasets-parent - 0.56.0 + 0.57.0 diff --git a/java-maps-mapsplatformdatasets/pom.xml b/java-maps-mapsplatformdatasets/pom.xml index f7062d894012..64790d957933 100644 --- a/java-maps-mapsplatformdatasets/pom.xml +++ b/java-maps-mapsplatformdatasets/pom.xml @@ -4,7 +4,7 @@ com.google.maps google-maps-mapsplatformdatasets-parent pom - 0.56.0 + 0.57.0 Google Maps Platform Datasets API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.maps google-maps-mapsplatformdatasets - 0.56.0 + 0.57.0 com.google.maps.api.grpc proto-google-maps-mapsplatformdatasets-v1 - 0.56.0 + 0.57.0 com.google.maps.api.grpc grpc-google-maps-mapsplatformdatasets-v1 - 0.56.0 + 0.57.0 diff --git a/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/pom.xml b/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/pom.xml index 3c64c7885a04..2f813e16e494 100644 --- a/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/pom.xml +++ b/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc proto-google-maps-mapsplatformdatasets-v1 - 0.56.0 + 0.57.0 proto-google-maps-mapsplatformdatasets-v1 Proto library for google-maps-mapsplatformdatasets com.google.maps google-maps-mapsplatformdatasets-parent - 0.56.0 + 0.57.0 diff --git a/java-maps-places/CHANGELOG.md b/java-maps-places/CHANGELOG.md index 3fc4f2f14992..c8908f8926f0 100644 --- a/java-maps-places/CHANGELOG.md +++ b/java-maps-places/CHANGELOG.md @@ -1,5 +1,16 @@ # Changelog +## 0.39.0 (2025-07-11) + +### Bug Fixes + +* clarify behavior of primary types and weekday text ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.38.0 (2025-06-25) ### Dependencies diff --git a/java-maps-places/README.md b/java-maps-places/README.md index aa88516d472b..b0e2c346d646 100644 --- a/java-maps-places/README.md +++ b/java-maps-places/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.maps google-maps-places - 0.37.0 + 0.38.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-places:0.37.0' +implementation 'com.google.maps:google-maps-places:0.38.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-places" % "0.37.0" +libraryDependencies += "com.google.maps" % "google-maps-places" % "0.38.0" ``` ## Authentication @@ -204,7 +204,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-places.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-places/0.37.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-places/0.38.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-places/google-maps-places-bom/pom.xml b/java-maps-places/google-maps-places-bom/pom.xml index ebbb63f48e2c..245b22e1a429 100644 --- a/java-maps-places/google-maps-places-bom/pom.xml +++ b/java-maps-places/google-maps-places-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.maps google-maps-places-bom - 0.38.0 + 0.39.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.maps google-maps-places - 0.38.0 + 0.39.0 com.google.maps.api.grpc grpc-google-maps-places-v1 - 0.38.0 + 0.39.0 com.google.maps.api.grpc proto-google-maps-places-v1 - 0.38.0 + 0.39.0 diff --git a/java-maps-places/google-maps-places/pom.xml b/java-maps-places/google-maps-places/pom.xml index d0a7cdaff5ab..f8452a618611 100644 --- a/java-maps-places/google-maps-places/pom.xml +++ b/java-maps-places/google-maps-places/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.maps google-maps-places - 0.38.0 + 0.39.0 jar Google Places API (New) Places API (New) The Places API allows developers to access a variety of search and @@ -11,7 +11,7 @@ com.google.maps google-maps-places-parent - 0.38.0 + 0.39.0 google-maps-places diff --git a/java-maps-places/google-maps-places/src/main/java/com/google/maps/places/v1/PlacesClient.java b/java-maps-places/google-maps-places/src/main/java/com/google/maps/places/v1/PlacesClient.java index 4be4fc8fa6b3..7842a9269498 100644 --- a/java-maps-places/google-maps-places/src/main/java/com/google/maps/places/v1/PlacesClient.java +++ b/java-maps-places/google-maps-places/src/main/java/com/google/maps/places/v1/PlacesClient.java @@ -27,9 +27,9 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS. /** * Service Description: Service definition for the Places API. Note: every request (except for - * Autocomplete requests) requires a field mask set outside of the request proto (`all/*`, is - * not assumed). The field mask can be set via the HTTP header `X-Goog-FieldMask`. See: - * https://developers.google.com/maps/documentation/places/web-service/choose-fields + * Autocomplete and GetPhotoMedia requests) requires a field mask set outside of the request proto + * (`all/*`, is not assumed). The field mask can be set via the HTTP header `X-Goog-FieldMask`. + * See: https://developers.google.com/maps/documentation/places/web-service/choose-fields * *

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: diff --git a/java-maps-places/google-maps-places/src/main/java/com/google/maps/places/v1/package-info.java b/java-maps-places/google-maps-places/src/main/java/com/google/maps/places/v1/package-info.java index 161536eb4517..2c01eceda4ed 100644 --- a/java-maps-places/google-maps-places/src/main/java/com/google/maps/places/v1/package-info.java +++ b/java-maps-places/google-maps-places/src/main/java/com/google/maps/places/v1/package-info.java @@ -22,9 +22,9 @@ *

======================= PlacesClient ======================= * *

Service Description: Service definition for the Places API. Note: every request (except for - * Autocomplete requests) requires a field mask set outside of the request proto (`all/*`, is - * not assumed). The field mask can be set via the HTTP header `X-Goog-FieldMask`. See: - * https://developers.google.com/maps/documentation/places/web-service/choose-fields + * Autocomplete and GetPhotoMedia requests) requires a field mask set outside of the request proto + * (`all/*`, is not assumed). The field mask can be set via the HTTP header `X-Goog-FieldMask`. + * See: https://developers.google.com/maps/documentation/places/web-service/choose-fields * *

Sample for PlacesClient: * diff --git a/java-maps-places/grpc-google-maps-places-v1/pom.xml b/java-maps-places/grpc-google-maps-places-v1/pom.xml index 20b0beb1933b..0d0704c97db0 100644 --- a/java-maps-places/grpc-google-maps-places-v1/pom.xml +++ b/java-maps-places/grpc-google-maps-places-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc grpc-google-maps-places-v1 - 0.38.0 + 0.39.0 grpc-google-maps-places-v1 GRPC library for google-maps-places com.google.maps google-maps-places-parent - 0.38.0 + 0.39.0 diff --git a/java-maps-places/grpc-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlacesGrpc.java b/java-maps-places/grpc-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlacesGrpc.java index 61f052b125eb..53d58a50b494 100644 --- a/java-maps-places/grpc-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlacesGrpc.java +++ b/java-maps-places/grpc-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlacesGrpc.java @@ -22,9 +22,10 @@ * *

  * Service definition for the Places API.
- * Note: every request (except for Autocomplete requests) requires a field mask
- * set outside of the request proto (`all/*`, is not assumed). The field mask
- * can be set via the HTTP header `X-Goog-FieldMask`. See:
+ * Note: every request (except for Autocomplete and GetPhotoMedia requests)
+ * requires a field mask set outside of the request proto (`all/*`, is not
+ * assumed). The field mask can be set via the HTTP header `X-Goog-FieldMask`.
+ * See:
  * https://developers.google.com/maps/documentation/places/web-service/choose-fields
  * 
*/ @@ -310,9 +311,10 @@ public PlacesFutureStub newStub( * *
    * Service definition for the Places API.
-   * Note: every request (except for Autocomplete requests) requires a field mask
-   * set outside of the request proto (`all/*`, is not assumed). The field mask
-   * can be set via the HTTP header `X-Goog-FieldMask`. See:
+   * Note: every request (except for Autocomplete and GetPhotoMedia requests)
+   * requires a field mask set outside of the request proto (`all/*`, is not
+   * assumed). The field mask can be set via the HTTP header `X-Goog-FieldMask`.
+   * See:
    * https://developers.google.com/maps/documentation/places/web-service/choose-fields
    * 
*/ @@ -396,9 +398,10 @@ default void autocompletePlaces( * *
    * Service definition for the Places API.
-   * Note: every request (except for Autocomplete requests) requires a field mask
-   * set outside of the request proto (`all/*`, is not assumed). The field mask
-   * can be set via the HTTP header `X-Goog-FieldMask`. See:
+   * Note: every request (except for Autocomplete and GetPhotoMedia requests)
+   * requires a field mask set outside of the request proto (`all/*`, is not
+   * assumed). The field mask can be set via the HTTP header `X-Goog-FieldMask`.
+   * See:
    * https://developers.google.com/maps/documentation/places/web-service/choose-fields
    * 
*/ @@ -415,9 +418,10 @@ public final io.grpc.ServerServiceDefinition bindService() { * *
    * Service definition for the Places API.
-   * Note: every request (except for Autocomplete requests) requires a field mask
-   * set outside of the request proto (`all/*`, is not assumed). The field mask
-   * can be set via the HTTP header `X-Goog-FieldMask`. See:
+   * Note: every request (except for Autocomplete and GetPhotoMedia requests)
+   * requires a field mask set outside of the request proto (`all/*`, is not
+   * assumed). The field mask can be set via the HTTP header `X-Goog-FieldMask`.
+   * See:
    * https://developers.google.com/maps/documentation/places/web-service/choose-fields
    * 
*/ @@ -517,9 +521,10 @@ public void autocompletePlaces( * *
    * Service definition for the Places API.
-   * Note: every request (except for Autocomplete requests) requires a field mask
-   * set outside of the request proto (`all/*`, is not assumed). The field mask
-   * can be set via the HTTP header `X-Goog-FieldMask`. See:
+   * Note: every request (except for Autocomplete and GetPhotoMedia requests)
+   * requires a field mask set outside of the request proto (`all/*`, is not
+   * assumed). The field mask can be set via the HTTP header `X-Goog-FieldMask`.
+   * See:
    * https://developers.google.com/maps/documentation/places/web-service/choose-fields
    * 
*/ @@ -606,9 +611,10 @@ public com.google.maps.places.v1.AutocompletePlacesResponse autocompletePlaces( * *
    * Service definition for the Places API.
-   * Note: every request (except for Autocomplete requests) requires a field mask
-   * set outside of the request proto (`all/*`, is not assumed). The field mask
-   * can be set via the HTTP header `X-Goog-FieldMask`. See:
+   * Note: every request (except for Autocomplete and GetPhotoMedia requests)
+   * requires a field mask set outside of the request proto (`all/*`, is not
+   * assumed). The field mask can be set via the HTTP header `X-Goog-FieldMask`.
+   * See:
    * https://developers.google.com/maps/documentation/places/web-service/choose-fields
    * 
*/ @@ -695,9 +701,10 @@ public com.google.maps.places.v1.AutocompletePlacesResponse autocompletePlaces( * *
    * Service definition for the Places API.
-   * Note: every request (except for Autocomplete requests) requires a field mask
-   * set outside of the request proto (`all/*`, is not assumed). The field mask
-   * can be set via the HTTP header `X-Goog-FieldMask`. See:
+   * Note: every request (except for Autocomplete and GetPhotoMedia requests)
+   * requires a field mask set outside of the request proto (`all/*`, is not
+   * assumed). The field mask can be set via the HTTP header `X-Goog-FieldMask`.
+   * See:
    * https://developers.google.com/maps/documentation/places/web-service/choose-fields
    * 
*/ diff --git a/java-maps-places/pom.xml b/java-maps-places/pom.xml index 38b8856ddb0b..cc19e4199710 100644 --- a/java-maps-places/pom.xml +++ b/java-maps-places/pom.xml @@ -4,7 +4,7 @@ com.google.maps google-maps-places-parent pom - 0.38.0 + 0.39.0 Google Places API (New) Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.maps google-maps-places - 0.38.0 + 0.39.0 com.google.maps.api.grpc grpc-google-maps-places-v1 - 0.38.0 + 0.39.0 com.google.maps.api.grpc proto-google-maps-places-v1 - 0.38.0 + 0.39.0 diff --git a/java-maps-places/proto-google-maps-places-v1/pom.xml b/java-maps-places/proto-google-maps-places-v1/pom.xml index f3038596fd5c..000a42163135 100644 --- a/java-maps-places/proto-google-maps-places-v1/pom.xml +++ b/java-maps-places/proto-google-maps-places-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc proto-google-maps-places-v1 - 0.38.0 + 0.39.0 proto-google-maps-places-v1 Proto library for google-maps-places com.google.maps google-maps-places-parent - 0.38.0 + 0.39.0 diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/Place.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/Place.java index 222ab71b5084..a6c7a00fb0b8 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/Place.java +++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/Place.java @@ -2670,9 +2670,19 @@ public interface OpeningHoursOrBuilder * *
      * The periods that this place is open during the week. The periods are in
-     * chronological order, starting with Sunday in the place-local timezone. An
-     * empty (but not absent) value indicates a place that is never open, e.g.
+     * chronological order, in the place-local timezone. An empty (but not
+     * absent) value indicates a place that is never open, e.g.
      * because it is closed temporarily for renovations.
+     *
+     * The starting day of `periods` is NOT fixed and should not be assumed to
+     * be Sunday. The API determines the start day based on a variety of
+     * factors. For example, for a 24/7 business, the first period may begin on
+     * the day of the request. For other businesses, it might be the first day
+     * of the week that they are open.
+     *
+     * NOTE: The ordering of the `periods` array is independent of the ordering
+     * of the `weekday_descriptions` array. Do not assume they will begin on the
+     * same day.
      * 
* * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2; @@ -2684,9 +2694,19 @@ public interface OpeningHoursOrBuilder * *
      * The periods that this place is open during the week. The periods are in
-     * chronological order, starting with Sunday in the place-local timezone. An
-     * empty (but not absent) value indicates a place that is never open, e.g.
+     * chronological order, in the place-local timezone. An empty (but not
+     * absent) value indicates a place that is never open, e.g.
      * because it is closed temporarily for renovations.
+     *
+     * The starting day of `periods` is NOT fixed and should not be assumed to
+     * be Sunday. The API determines the start day based on a variety of
+     * factors. For example, for a 24/7 business, the first period may begin on
+     * the day of the request. For other businesses, it might be the first day
+     * of the week that they are open.
+     *
+     * NOTE: The ordering of the `periods` array is independent of the ordering
+     * of the `weekday_descriptions` array. Do not assume they will begin on the
+     * same day.
      * 
* * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2; @@ -2698,9 +2718,19 @@ public interface OpeningHoursOrBuilder * *
      * The periods that this place is open during the week. The periods are in
-     * chronological order, starting with Sunday in the place-local timezone. An
-     * empty (but not absent) value indicates a place that is never open, e.g.
+     * chronological order, in the place-local timezone. An empty (but not
+     * absent) value indicates a place that is never open, e.g.
      * because it is closed temporarily for renovations.
+     *
+     * The starting day of `periods` is NOT fixed and should not be assumed to
+     * be Sunday. The API determines the start day based on a variety of
+     * factors. For example, for a 24/7 business, the first period may begin on
+     * the day of the request. For other businesses, it might be the first day
+     * of the week that they are open.
+     *
+     * NOTE: The ordering of the `periods` array is independent of the ordering
+     * of the `weekday_descriptions` array. Do not assume they will begin on the
+     * same day.
      * 
* * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2; @@ -2712,9 +2742,19 @@ public interface OpeningHoursOrBuilder * *
      * The periods that this place is open during the week. The periods are in
-     * chronological order, starting with Sunday in the place-local timezone. An
-     * empty (but not absent) value indicates a place that is never open, e.g.
+     * chronological order, in the place-local timezone. An empty (but not
+     * absent) value indicates a place that is never open, e.g.
      * because it is closed temporarily for renovations.
+     *
+     * The starting day of `periods` is NOT fixed and should not be assumed to
+     * be Sunday. The API determines the start day based on a variety of
+     * factors. For example, for a 24/7 business, the first period may begin on
+     * the day of the request. For other businesses, it might be the first day
+     * of the week that they are open.
+     *
+     * NOTE: The ordering of the `periods` array is independent of the ordering
+     * of the `weekday_descriptions` array. Do not assume they will begin on the
+     * same day.
      * 
* * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2; @@ -2727,9 +2767,19 @@ public interface OpeningHoursOrBuilder * *
      * The periods that this place is open during the week. The periods are in
-     * chronological order, starting with Sunday in the place-local timezone. An
-     * empty (but not absent) value indicates a place that is never open, e.g.
+     * chronological order, in the place-local timezone. An empty (but not
+     * absent) value indicates a place that is never open, e.g.
      * because it is closed temporarily for renovations.
+     *
+     * The starting day of `periods` is NOT fixed and should not be assumed to
+     * be Sunday. The API determines the start day based on a variety of
+     * factors. For example, for a 24/7 business, the first period may begin on
+     * the day of the request. For other businesses, it might be the first day
+     * of the week that they are open.
+     *
+     * NOTE: The ordering of the `periods` array is independent of the ordering
+     * of the `weekday_descriptions` array. Do not assume they will begin on the
+     * same day.
      * 
* * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2; @@ -2741,8 +2791,15 @@ public interface OpeningHoursOrBuilder * *
      * Localized strings describing the opening hours of this place, one string
-     * for each day of the week.  Will be empty if the hours are unknown or
-     * could not be converted to localized text. Example: "Sun: 18:00–06:00"
+     * for each day of the week.
+     *
+     * NOTE: The order of the days and the start of the week is determined by
+     * the locale (language and region). The ordering of the `periods` array is
+     * independent of the ordering of the `weekday_descriptions` array. Do not
+     * assume they will begin on the same day.
+     *
+     * Will be empty if the hours are unknown or could not be converted to
+     * localized text. Example: "Sun: 18:00–06:00"
      * 
* * repeated string weekday_descriptions = 3; @@ -2756,8 +2813,15 @@ public interface OpeningHoursOrBuilder * *
      * Localized strings describing the opening hours of this place, one string
-     * for each day of the week.  Will be empty if the hours are unknown or
-     * could not be converted to localized text. Example: "Sun: 18:00–06:00"
+     * for each day of the week.
+     *
+     * NOTE: The order of the days and the start of the week is determined by
+     * the locale (language and region). The ordering of the `periods` array is
+     * independent of the ordering of the `weekday_descriptions` array. Do not
+     * assume they will begin on the same day.
+     *
+     * Will be empty if the hours are unknown or could not be converted to
+     * localized text. Example: "Sun: 18:00–06:00"
      * 
* * repeated string weekday_descriptions = 3; @@ -2771,8 +2835,15 @@ public interface OpeningHoursOrBuilder * *
      * Localized strings describing the opening hours of this place, one string
-     * for each day of the week.  Will be empty if the hours are unknown or
-     * could not be converted to localized text. Example: "Sun: 18:00–06:00"
+     * for each day of the week.
+     *
+     * NOTE: The order of the days and the start of the week is determined by
+     * the locale (language and region). The ordering of the `periods` array is
+     * independent of the ordering of the `weekday_descriptions` array. Do not
+     * assume they will begin on the same day.
+     *
+     * Will be empty if the hours are unknown or could not be converted to
+     * localized text. Example: "Sun: 18:00–06:00"
      * 
* * repeated string weekday_descriptions = 3; @@ -2787,8 +2858,15 @@ public interface OpeningHoursOrBuilder * *
      * Localized strings describing the opening hours of this place, one string
-     * for each day of the week.  Will be empty if the hours are unknown or
-     * could not be converted to localized text. Example: "Sun: 18:00–06:00"
+     * for each day of the week.
+     *
+     * NOTE: The order of the days and the start of the week is determined by
+     * the locale (language and region). The ordering of the `periods` array is
+     * independent of the ordering of the `weekday_descriptions` array. Do not
+     * assume they will begin on the same day.
+     *
+     * Will be empty if the hours are unknown or could not be converted to
+     * localized text. Example: "Sun: 18:00–06:00"
      * 
* * repeated string weekday_descriptions = 3; @@ -6734,9 +6812,19 @@ public boolean getOpenNow() { * *
      * The periods that this place is open during the week. The periods are in
-     * chronological order, starting with Sunday in the place-local timezone. An
-     * empty (but not absent) value indicates a place that is never open, e.g.
+     * chronological order, in the place-local timezone. An empty (but not
+     * absent) value indicates a place that is never open, e.g.
      * because it is closed temporarily for renovations.
+     *
+     * The starting day of `periods` is NOT fixed and should not be assumed to
+     * be Sunday. The API determines the start day based on a variety of
+     * factors. For example, for a 24/7 business, the first period may begin on
+     * the day of the request. For other businesses, it might be the first day
+     * of the week that they are open.
+     *
+     * NOTE: The ordering of the `periods` array is independent of the ordering
+     * of the `weekday_descriptions` array. Do not assume they will begin on the
+     * same day.
      * 
* * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2; @@ -6751,9 +6839,19 @@ public java.util.List getPe * *
      * The periods that this place is open during the week. The periods are in
-     * chronological order, starting with Sunday in the place-local timezone. An
-     * empty (but not absent) value indicates a place that is never open, e.g.
+     * chronological order, in the place-local timezone. An empty (but not
+     * absent) value indicates a place that is never open, e.g.
      * because it is closed temporarily for renovations.
+     *
+     * The starting day of `periods` is NOT fixed and should not be assumed to
+     * be Sunday. The API determines the start day based on a variety of
+     * factors. For example, for a 24/7 business, the first period may begin on
+     * the day of the request. For other businesses, it might be the first day
+     * of the week that they are open.
+     *
+     * NOTE: The ordering of the `periods` array is independent of the ordering
+     * of the `weekday_descriptions` array. Do not assume they will begin on the
+     * same day.
      * 
* * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2; @@ -6769,9 +6867,19 @@ public java.util.List getPe * *
      * The periods that this place is open during the week. The periods are in
-     * chronological order, starting with Sunday in the place-local timezone. An
-     * empty (but not absent) value indicates a place that is never open, e.g.
+     * chronological order, in the place-local timezone. An empty (but not
+     * absent) value indicates a place that is never open, e.g.
      * because it is closed temporarily for renovations.
+     *
+     * The starting day of `periods` is NOT fixed and should not be assumed to
+     * be Sunday. The API determines the start day based on a variety of
+     * factors. For example, for a 24/7 business, the first period may begin on
+     * the day of the request. For other businesses, it might be the first day
+     * of the week that they are open.
+     *
+     * NOTE: The ordering of the `periods` array is independent of the ordering
+     * of the `weekday_descriptions` array. Do not assume they will begin on the
+     * same day.
      * 
* * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2; @@ -6786,9 +6894,19 @@ public int getPeriodsCount() { * *
      * The periods that this place is open during the week. The periods are in
-     * chronological order, starting with Sunday in the place-local timezone. An
-     * empty (but not absent) value indicates a place that is never open, e.g.
+     * chronological order, in the place-local timezone. An empty (but not
+     * absent) value indicates a place that is never open, e.g.
      * because it is closed temporarily for renovations.
+     *
+     * The starting day of `periods` is NOT fixed and should not be assumed to
+     * be Sunday. The API determines the start day based on a variety of
+     * factors. For example, for a 24/7 business, the first period may begin on
+     * the day of the request. For other businesses, it might be the first day
+     * of the week that they are open.
+     *
+     * NOTE: The ordering of the `periods` array is independent of the ordering
+     * of the `weekday_descriptions` array. Do not assume they will begin on the
+     * same day.
      * 
* * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2; @@ -6803,9 +6921,19 @@ public com.google.maps.places.v1.Place.OpeningHours.Period getPeriods(int index) * *
      * The periods that this place is open during the week. The periods are in
-     * chronological order, starting with Sunday in the place-local timezone. An
-     * empty (but not absent) value indicates a place that is never open, e.g.
+     * chronological order, in the place-local timezone. An empty (but not
+     * absent) value indicates a place that is never open, e.g.
      * because it is closed temporarily for renovations.
+     *
+     * The starting day of `periods` is NOT fixed and should not be assumed to
+     * be Sunday. The API determines the start day based on a variety of
+     * factors. For example, for a 24/7 business, the first period may begin on
+     * the day of the request. For other businesses, it might be the first day
+     * of the week that they are open.
+     *
+     * NOTE: The ordering of the `periods` array is independent of the ordering
+     * of the `weekday_descriptions` array. Do not assume they will begin on the
+     * same day.
      * 
* * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2; @@ -6827,8 +6955,15 @@ public com.google.maps.places.v1.Place.OpeningHours.PeriodOrBuilder getPeriodsOr * *
      * Localized strings describing the opening hours of this place, one string
-     * for each day of the week.  Will be empty if the hours are unknown or
-     * could not be converted to localized text. Example: "Sun: 18:00–06:00"
+     * for each day of the week.
+     *
+     * NOTE: The order of the days and the start of the week is determined by
+     * the locale (language and region). The ordering of the `periods` array is
+     * independent of the ordering of the `weekday_descriptions` array. Do not
+     * assume they will begin on the same day.
+     *
+     * Will be empty if the hours are unknown or could not be converted to
+     * localized text. Example: "Sun: 18:00–06:00"
      * 
* * repeated string weekday_descriptions = 3; @@ -6844,8 +6979,15 @@ public com.google.protobuf.ProtocolStringList getWeekdayDescriptionsList() { * *
      * Localized strings describing the opening hours of this place, one string
-     * for each day of the week.  Will be empty if the hours are unknown or
-     * could not be converted to localized text. Example: "Sun: 18:00–06:00"
+     * for each day of the week.
+     *
+     * NOTE: The order of the days and the start of the week is determined by
+     * the locale (language and region). The ordering of the `periods` array is
+     * independent of the ordering of the `weekday_descriptions` array. Do not
+     * assume they will begin on the same day.
+     *
+     * Will be empty if the hours are unknown or could not be converted to
+     * localized text. Example: "Sun: 18:00–06:00"
      * 
* * repeated string weekday_descriptions = 3; @@ -6861,8 +7003,15 @@ public int getWeekdayDescriptionsCount() { * *
      * Localized strings describing the opening hours of this place, one string
-     * for each day of the week.  Will be empty if the hours are unknown or
-     * could not be converted to localized text. Example: "Sun: 18:00–06:00"
+     * for each day of the week.
+     *
+     * NOTE: The order of the days and the start of the week is determined by
+     * the locale (language and region). The ordering of the `periods` array is
+     * independent of the ordering of the `weekday_descriptions` array. Do not
+     * assume they will begin on the same day.
+     *
+     * Will be empty if the hours are unknown or could not be converted to
+     * localized text. Example: "Sun: 18:00–06:00"
      * 
* * repeated string weekday_descriptions = 3; @@ -6879,8 +7028,15 @@ public java.lang.String getWeekdayDescriptions(int index) { * *
      * Localized strings describing the opening hours of this place, one string
-     * for each day of the week.  Will be empty if the hours are unknown or
-     * could not be converted to localized text. Example: "Sun: 18:00–06:00"
+     * for each day of the week.
+     *
+     * NOTE: The order of the days and the start of the week is determined by
+     * the locale (language and region). The ordering of the `periods` array is
+     * independent of the ordering of the `weekday_descriptions` array. Do not
+     * assume they will begin on the same day.
+     *
+     * Will be empty if the hours are unknown or could not be converted to
+     * localized text. Example: "Sun: 18:00–06:00"
      * 
* * repeated string weekday_descriptions = 3; @@ -7895,9 +8051,19 @@ private void ensurePeriodsIsMutable() { * *
        * The periods that this place is open during the week. The periods are in
-       * chronological order, starting with Sunday in the place-local timezone. An
-       * empty (but not absent) value indicates a place that is never open, e.g.
+       * chronological order, in the place-local timezone. An empty (but not
+       * absent) value indicates a place that is never open, e.g.
        * because it is closed temporarily for renovations.
+       *
+       * The starting day of `periods` is NOT fixed and should not be assumed to
+       * be Sunday. The API determines the start day based on a variety of
+       * factors. For example, for a 24/7 business, the first period may begin on
+       * the day of the request. For other businesses, it might be the first day
+       * of the week that they are open.
+       *
+       * NOTE: The ordering of the `periods` array is independent of the ordering
+       * of the `weekday_descriptions` array. Do not assume they will begin on the
+       * same day.
        * 
* * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2; @@ -7915,9 +8081,19 @@ public java.util.List getPe * *
        * The periods that this place is open during the week. The periods are in
-       * chronological order, starting with Sunday in the place-local timezone. An
-       * empty (but not absent) value indicates a place that is never open, e.g.
+       * chronological order, in the place-local timezone. An empty (but not
+       * absent) value indicates a place that is never open, e.g.
        * because it is closed temporarily for renovations.
+       *
+       * The starting day of `periods` is NOT fixed and should not be assumed to
+       * be Sunday. The API determines the start day based on a variety of
+       * factors. For example, for a 24/7 business, the first period may begin on
+       * the day of the request. For other businesses, it might be the first day
+       * of the week that they are open.
+       *
+       * NOTE: The ordering of the `periods` array is independent of the ordering
+       * of the `weekday_descriptions` array. Do not assume they will begin on the
+       * same day.
        * 
* * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2; @@ -7935,9 +8111,19 @@ public int getPeriodsCount() { * *
        * The periods that this place is open during the week. The periods are in
-       * chronological order, starting with Sunday in the place-local timezone. An
-       * empty (but not absent) value indicates a place that is never open, e.g.
+       * chronological order, in the place-local timezone. An empty (but not
+       * absent) value indicates a place that is never open, e.g.
        * because it is closed temporarily for renovations.
+       *
+       * The starting day of `periods` is NOT fixed and should not be assumed to
+       * be Sunday. The API determines the start day based on a variety of
+       * factors. For example, for a 24/7 business, the first period may begin on
+       * the day of the request. For other businesses, it might be the first day
+       * of the week that they are open.
+       *
+       * NOTE: The ordering of the `periods` array is independent of the ordering
+       * of the `weekday_descriptions` array. Do not assume they will begin on the
+       * same day.
        * 
* * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2; @@ -7955,9 +8141,19 @@ public com.google.maps.places.v1.Place.OpeningHours.Period getPeriods(int index) * *
        * The periods that this place is open during the week. The periods are in
-       * chronological order, starting with Sunday in the place-local timezone. An
-       * empty (but not absent) value indicates a place that is never open, e.g.
+       * chronological order, in the place-local timezone. An empty (but not
+       * absent) value indicates a place that is never open, e.g.
        * because it is closed temporarily for renovations.
+       *
+       * The starting day of `periods` is NOT fixed and should not be assumed to
+       * be Sunday. The API determines the start day based on a variety of
+       * factors. For example, for a 24/7 business, the first period may begin on
+       * the day of the request. For other businesses, it might be the first day
+       * of the week that they are open.
+       *
+       * NOTE: The ordering of the `periods` array is independent of the ordering
+       * of the `weekday_descriptions` array. Do not assume they will begin on the
+       * same day.
        * 
* * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2; @@ -7982,9 +8178,19 @@ public Builder setPeriods( * *
        * The periods that this place is open during the week. The periods are in
-       * chronological order, starting with Sunday in the place-local timezone. An
-       * empty (but not absent) value indicates a place that is never open, e.g.
+       * chronological order, in the place-local timezone. An empty (but not
+       * absent) value indicates a place that is never open, e.g.
        * because it is closed temporarily for renovations.
+       *
+       * The starting day of `periods` is NOT fixed and should not be assumed to
+       * be Sunday. The API determines the start day based on a variety of
+       * factors. For example, for a 24/7 business, the first period may begin on
+       * the day of the request. For other businesses, it might be the first day
+       * of the week that they are open.
+       *
+       * NOTE: The ordering of the `periods` array is independent of the ordering
+       * of the `weekday_descriptions` array. Do not assume they will begin on the
+       * same day.
        * 
* * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2; @@ -8006,9 +8212,19 @@ public Builder setPeriods( * *
        * The periods that this place is open during the week. The periods are in
-       * chronological order, starting with Sunday in the place-local timezone. An
-       * empty (but not absent) value indicates a place that is never open, e.g.
+       * chronological order, in the place-local timezone. An empty (but not
+       * absent) value indicates a place that is never open, e.g.
        * because it is closed temporarily for renovations.
+       *
+       * The starting day of `periods` is NOT fixed and should not be assumed to
+       * be Sunday. The API determines the start day based on a variety of
+       * factors. For example, for a 24/7 business, the first period may begin on
+       * the day of the request. For other businesses, it might be the first day
+       * of the week that they are open.
+       *
+       * NOTE: The ordering of the `periods` array is independent of the ordering
+       * of the `weekday_descriptions` array. Do not assume they will begin on the
+       * same day.
        * 
* * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2; @@ -8032,9 +8248,19 @@ public Builder addPeriods(com.google.maps.places.v1.Place.OpeningHours.Period va * *
        * The periods that this place is open during the week. The periods are in
-       * chronological order, starting with Sunday in the place-local timezone. An
-       * empty (but not absent) value indicates a place that is never open, e.g.
+       * chronological order, in the place-local timezone. An empty (but not
+       * absent) value indicates a place that is never open, e.g.
        * because it is closed temporarily for renovations.
+       *
+       * The starting day of `periods` is NOT fixed and should not be assumed to
+       * be Sunday. The API determines the start day based on a variety of
+       * factors. For example, for a 24/7 business, the first period may begin on
+       * the day of the request. For other businesses, it might be the first day
+       * of the week that they are open.
+       *
+       * NOTE: The ordering of the `periods` array is independent of the ordering
+       * of the `weekday_descriptions` array. Do not assume they will begin on the
+       * same day.
        * 
* * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2; @@ -8059,9 +8285,19 @@ public Builder addPeriods( * *
        * The periods that this place is open during the week. The periods are in
-       * chronological order, starting with Sunday in the place-local timezone. An
-       * empty (but not absent) value indicates a place that is never open, e.g.
+       * chronological order, in the place-local timezone. An empty (but not
+       * absent) value indicates a place that is never open, e.g.
        * because it is closed temporarily for renovations.
+       *
+       * The starting day of `periods` is NOT fixed and should not be assumed to
+       * be Sunday. The API determines the start day based on a variety of
+       * factors. For example, for a 24/7 business, the first period may begin on
+       * the day of the request. For other businesses, it might be the first day
+       * of the week that they are open.
+       *
+       * NOTE: The ordering of the `periods` array is independent of the ordering
+       * of the `weekday_descriptions` array. Do not assume they will begin on the
+       * same day.
        * 
* * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2; @@ -8083,9 +8319,19 @@ public Builder addPeriods( * *
        * The periods that this place is open during the week. The periods are in
-       * chronological order, starting with Sunday in the place-local timezone. An
-       * empty (but not absent) value indicates a place that is never open, e.g.
+       * chronological order, in the place-local timezone. An empty (but not
+       * absent) value indicates a place that is never open, e.g.
        * because it is closed temporarily for renovations.
+       *
+       * The starting day of `periods` is NOT fixed and should not be assumed to
+       * be Sunday. The API determines the start day based on a variety of
+       * factors. For example, for a 24/7 business, the first period may begin on
+       * the day of the request. For other businesses, it might be the first day
+       * of the week that they are open.
+       *
+       * NOTE: The ordering of the `periods` array is independent of the ordering
+       * of the `weekday_descriptions` array. Do not assume they will begin on the
+       * same day.
        * 
* * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2; @@ -8107,9 +8353,19 @@ public Builder addPeriods( * *
        * The periods that this place is open during the week. The periods are in
-       * chronological order, starting with Sunday in the place-local timezone. An
-       * empty (but not absent) value indicates a place that is never open, e.g.
+       * chronological order, in the place-local timezone. An empty (but not
+       * absent) value indicates a place that is never open, e.g.
        * because it is closed temporarily for renovations.
+       *
+       * The starting day of `periods` is NOT fixed and should not be assumed to
+       * be Sunday. The API determines the start day based on a variety of
+       * factors. For example, for a 24/7 business, the first period may begin on
+       * the day of the request. For other businesses, it might be the first day
+       * of the week that they are open.
+       *
+       * NOTE: The ordering of the `periods` array is independent of the ordering
+       * of the `weekday_descriptions` array. Do not assume they will begin on the
+       * same day.
        * 
* * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2; @@ -8132,9 +8388,19 @@ public Builder addAllPeriods( * *
        * The periods that this place is open during the week. The periods are in
-       * chronological order, starting with Sunday in the place-local timezone. An
-       * empty (but not absent) value indicates a place that is never open, e.g.
+       * chronological order, in the place-local timezone. An empty (but not
+       * absent) value indicates a place that is never open, e.g.
        * because it is closed temporarily for renovations.
+       *
+       * The starting day of `periods` is NOT fixed and should not be assumed to
+       * be Sunday. The API determines the start day based on a variety of
+       * factors. For example, for a 24/7 business, the first period may begin on
+       * the day of the request. For other businesses, it might be the first day
+       * of the week that they are open.
+       *
+       * NOTE: The ordering of the `periods` array is independent of the ordering
+       * of the `weekday_descriptions` array. Do not assume they will begin on the
+       * same day.
        * 
* * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2; @@ -8155,9 +8421,19 @@ public Builder clearPeriods() { * *
        * The periods that this place is open during the week. The periods are in
-       * chronological order, starting with Sunday in the place-local timezone. An
-       * empty (but not absent) value indicates a place that is never open, e.g.
+       * chronological order, in the place-local timezone. An empty (but not
+       * absent) value indicates a place that is never open, e.g.
        * because it is closed temporarily for renovations.
+       *
+       * The starting day of `periods` is NOT fixed and should not be assumed to
+       * be Sunday. The API determines the start day based on a variety of
+       * factors. For example, for a 24/7 business, the first period may begin on
+       * the day of the request. For other businesses, it might be the first day
+       * of the week that they are open.
+       *
+       * NOTE: The ordering of the `periods` array is independent of the ordering
+       * of the `weekday_descriptions` array. Do not assume they will begin on the
+       * same day.
        * 
* * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2; @@ -8178,9 +8454,19 @@ public Builder removePeriods(int index) { * *
        * The periods that this place is open during the week. The periods are in
-       * chronological order, starting with Sunday in the place-local timezone. An
-       * empty (but not absent) value indicates a place that is never open, e.g.
+       * chronological order, in the place-local timezone. An empty (but not
+       * absent) value indicates a place that is never open, e.g.
        * because it is closed temporarily for renovations.
+       *
+       * The starting day of `periods` is NOT fixed and should not be assumed to
+       * be Sunday. The API determines the start day based on a variety of
+       * factors. For example, for a 24/7 business, the first period may begin on
+       * the day of the request. For other businesses, it might be the first day
+       * of the week that they are open.
+       *
+       * NOTE: The ordering of the `periods` array is independent of the ordering
+       * of the `weekday_descriptions` array. Do not assume they will begin on the
+       * same day.
        * 
* * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2; @@ -8195,9 +8481,19 @@ public com.google.maps.places.v1.Place.OpeningHours.Period.Builder getPeriodsBui * *
        * The periods that this place is open during the week. The periods are in
-       * chronological order, starting with Sunday in the place-local timezone. An
-       * empty (but not absent) value indicates a place that is never open, e.g.
+       * chronological order, in the place-local timezone. An empty (but not
+       * absent) value indicates a place that is never open, e.g.
        * because it is closed temporarily for renovations.
+       *
+       * The starting day of `periods` is NOT fixed and should not be assumed to
+       * be Sunday. The API determines the start day based on a variety of
+       * factors. For example, for a 24/7 business, the first period may begin on
+       * the day of the request. For other businesses, it might be the first day
+       * of the week that they are open.
+       *
+       * NOTE: The ordering of the `periods` array is independent of the ordering
+       * of the `weekday_descriptions` array. Do not assume they will begin on the
+       * same day.
        * 
* * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2; @@ -8216,9 +8512,19 @@ public com.google.maps.places.v1.Place.OpeningHours.PeriodOrBuilder getPeriodsOr * *
        * The periods that this place is open during the week. The periods are in
-       * chronological order, starting with Sunday in the place-local timezone. An
-       * empty (but not absent) value indicates a place that is never open, e.g.
+       * chronological order, in the place-local timezone. An empty (but not
+       * absent) value indicates a place that is never open, e.g.
        * because it is closed temporarily for renovations.
+       *
+       * The starting day of `periods` is NOT fixed and should not be assumed to
+       * be Sunday. The API determines the start day based on a variety of
+       * factors. For example, for a 24/7 business, the first period may begin on
+       * the day of the request. For other businesses, it might be the first day
+       * of the week that they are open.
+       *
+       * NOTE: The ordering of the `periods` array is independent of the ordering
+       * of the `weekday_descriptions` array. Do not assume they will begin on the
+       * same day.
        * 
* * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2; @@ -8237,9 +8543,19 @@ public com.google.maps.places.v1.Place.OpeningHours.PeriodOrBuilder getPeriodsOr * *
        * The periods that this place is open during the week. The periods are in
-       * chronological order, starting with Sunday in the place-local timezone. An
-       * empty (but not absent) value indicates a place that is never open, e.g.
+       * chronological order, in the place-local timezone. An empty (but not
+       * absent) value indicates a place that is never open, e.g.
        * because it is closed temporarily for renovations.
+       *
+       * The starting day of `periods` is NOT fixed and should not be assumed to
+       * be Sunday. The API determines the start day based on a variety of
+       * factors. For example, for a 24/7 business, the first period may begin on
+       * the day of the request. For other businesses, it might be the first day
+       * of the week that they are open.
+       *
+       * NOTE: The ordering of the `periods` array is independent of the ordering
+       * of the `weekday_descriptions` array. Do not assume they will begin on the
+       * same day.
        * 
* * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2; @@ -8254,9 +8570,19 @@ public com.google.maps.places.v1.Place.OpeningHours.Period.Builder addPeriodsBui * *
        * The periods that this place is open during the week. The periods are in
-       * chronological order, starting with Sunday in the place-local timezone. An
-       * empty (but not absent) value indicates a place that is never open, e.g.
+       * chronological order, in the place-local timezone. An empty (but not
+       * absent) value indicates a place that is never open, e.g.
        * because it is closed temporarily for renovations.
+       *
+       * The starting day of `periods` is NOT fixed and should not be assumed to
+       * be Sunday. The API determines the start day based on a variety of
+       * factors. For example, for a 24/7 business, the first period may begin on
+       * the day of the request. For other businesses, it might be the first day
+       * of the week that they are open.
+       *
+       * NOTE: The ordering of the `periods` array is independent of the ordering
+       * of the `weekday_descriptions` array. Do not assume they will begin on the
+       * same day.
        * 
* * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2; @@ -8273,9 +8599,19 @@ public com.google.maps.places.v1.Place.OpeningHours.Period.Builder addPeriodsBui * *
        * The periods that this place is open during the week. The periods are in
-       * chronological order, starting with Sunday in the place-local timezone. An
-       * empty (but not absent) value indicates a place that is never open, e.g.
+       * chronological order, in the place-local timezone. An empty (but not
+       * absent) value indicates a place that is never open, e.g.
        * because it is closed temporarily for renovations.
+       *
+       * The starting day of `periods` is NOT fixed and should not be assumed to
+       * be Sunday. The API determines the start day based on a variety of
+       * factors. For example, for a 24/7 business, the first period may begin on
+       * the day of the request. For other businesses, it might be the first day
+       * of the week that they are open.
+       *
+       * NOTE: The ordering of the `periods` array is independent of the ordering
+       * of the `weekday_descriptions` array. Do not assume they will begin on the
+       * same day.
        * 
* * repeated .google.maps.places.v1.Place.OpeningHours.Period periods = 2; @@ -8317,8 +8653,15 @@ private void ensureWeekdayDescriptionsIsMutable() { * *
        * Localized strings describing the opening hours of this place, one string
-       * for each day of the week.  Will be empty if the hours are unknown or
-       * could not be converted to localized text. Example: "Sun: 18:00–06:00"
+       * for each day of the week.
+       *
+       * NOTE: The order of the days and the start of the week is determined by
+       * the locale (language and region). The ordering of the `periods` array is
+       * independent of the ordering of the `weekday_descriptions` array. Do not
+       * assume they will begin on the same day.
+       *
+       * Will be empty if the hours are unknown or could not be converted to
+       * localized text. Example: "Sun: 18:00–06:00"
        * 
* * repeated string weekday_descriptions = 3; @@ -8335,8 +8678,15 @@ public com.google.protobuf.ProtocolStringList getWeekdayDescriptionsList() { * *
        * Localized strings describing the opening hours of this place, one string
-       * for each day of the week.  Will be empty if the hours are unknown or
-       * could not be converted to localized text. Example: "Sun: 18:00–06:00"
+       * for each day of the week.
+       *
+       * NOTE: The order of the days and the start of the week is determined by
+       * the locale (language and region). The ordering of the `periods` array is
+       * independent of the ordering of the `weekday_descriptions` array. Do not
+       * assume they will begin on the same day.
+       *
+       * Will be empty if the hours are unknown or could not be converted to
+       * localized text. Example: "Sun: 18:00–06:00"
        * 
* * repeated string weekday_descriptions = 3; @@ -8352,8 +8702,15 @@ public int getWeekdayDescriptionsCount() { * *
        * Localized strings describing the opening hours of this place, one string
-       * for each day of the week.  Will be empty if the hours are unknown or
-       * could not be converted to localized text. Example: "Sun: 18:00–06:00"
+       * for each day of the week.
+       *
+       * NOTE: The order of the days and the start of the week is determined by
+       * the locale (language and region). The ordering of the `periods` array is
+       * independent of the ordering of the `weekday_descriptions` array. Do not
+       * assume they will begin on the same day.
+       *
+       * Will be empty if the hours are unknown or could not be converted to
+       * localized text. Example: "Sun: 18:00–06:00"
        * 
* * repeated string weekday_descriptions = 3; @@ -8370,8 +8727,15 @@ public java.lang.String getWeekdayDescriptions(int index) { * *
        * Localized strings describing the opening hours of this place, one string
-       * for each day of the week.  Will be empty if the hours are unknown or
-       * could not be converted to localized text. Example: "Sun: 18:00–06:00"
+       * for each day of the week.
+       *
+       * NOTE: The order of the days and the start of the week is determined by
+       * the locale (language and region). The ordering of the `periods` array is
+       * independent of the ordering of the `weekday_descriptions` array. Do not
+       * assume they will begin on the same day.
+       *
+       * Will be empty if the hours are unknown or could not be converted to
+       * localized text. Example: "Sun: 18:00–06:00"
        * 
* * repeated string weekday_descriptions = 3; @@ -8388,8 +8752,15 @@ public com.google.protobuf.ByteString getWeekdayDescriptionsBytes(int index) { * *
        * Localized strings describing the opening hours of this place, one string
-       * for each day of the week.  Will be empty if the hours are unknown or
-       * could not be converted to localized text. Example: "Sun: 18:00–06:00"
+       * for each day of the week.
+       *
+       * NOTE: The order of the days and the start of the week is determined by
+       * the locale (language and region). The ordering of the `periods` array is
+       * independent of the ordering of the `weekday_descriptions` array. Do not
+       * assume they will begin on the same day.
+       *
+       * Will be empty if the hours are unknown or could not be converted to
+       * localized text. Example: "Sun: 18:00–06:00"
        * 
* * repeated string weekday_descriptions = 3; @@ -8414,8 +8785,15 @@ public Builder setWeekdayDescriptions(int index, java.lang.String value) { * *
        * Localized strings describing the opening hours of this place, one string
-       * for each day of the week.  Will be empty if the hours are unknown or
-       * could not be converted to localized text. Example: "Sun: 18:00–06:00"
+       * for each day of the week.
+       *
+       * NOTE: The order of the days and the start of the week is determined by
+       * the locale (language and region). The ordering of the `periods` array is
+       * independent of the ordering of the `weekday_descriptions` array. Do not
+       * assume they will begin on the same day.
+       *
+       * Will be empty if the hours are unknown or could not be converted to
+       * localized text. Example: "Sun: 18:00–06:00"
        * 
* * repeated string weekday_descriptions = 3; @@ -8439,8 +8817,15 @@ public Builder addWeekdayDescriptions(java.lang.String value) { * *
        * Localized strings describing the opening hours of this place, one string
-       * for each day of the week.  Will be empty if the hours are unknown or
-       * could not be converted to localized text. Example: "Sun: 18:00–06:00"
+       * for each day of the week.
+       *
+       * NOTE: The order of the days and the start of the week is determined by
+       * the locale (language and region). The ordering of the `periods` array is
+       * independent of the ordering of the `weekday_descriptions` array. Do not
+       * assume they will begin on the same day.
+       *
+       * Will be empty if the hours are unknown or could not be converted to
+       * localized text. Example: "Sun: 18:00–06:00"
        * 
* * repeated string weekday_descriptions = 3; @@ -8461,8 +8846,15 @@ public Builder addAllWeekdayDescriptions(java.lang.Iterable va * *
        * Localized strings describing the opening hours of this place, one string
-       * for each day of the week.  Will be empty if the hours are unknown or
-       * could not be converted to localized text. Example: "Sun: 18:00–06:00"
+       * for each day of the week.
+       *
+       * NOTE: The order of the days and the start of the week is determined by
+       * the locale (language and region). The ordering of the `periods` array is
+       * independent of the ordering of the `weekday_descriptions` array. Do not
+       * assume they will begin on the same day.
+       *
+       * Will be empty if the hours are unknown or could not be converted to
+       * localized text. Example: "Sun: 18:00–06:00"
        * 
* * repeated string weekday_descriptions = 3; @@ -8482,8 +8874,15 @@ public Builder clearWeekdayDescriptions() { * *
        * Localized strings describing the opening hours of this place, one string
-       * for each day of the week.  Will be empty if the hours are unknown or
-       * could not be converted to localized text. Example: "Sun: 18:00–06:00"
+       * for each day of the week.
+       *
+       * NOTE: The order of the days and the start of the week is determined by
+       * the locale (language and region). The ordering of the `periods` array is
+       * independent of the ordering of the `weekday_descriptions` array. Do not
+       * assume they will begin on the same day.
+       *
+       * Will be empty if the hours are unknown or could not be converted to
+       * localized text. Example: "Sun: 18:00–06:00"
        * 
* * repeated string weekday_descriptions = 3; @@ -22792,11 +23191,14 @@ public com.google.protobuf.ByteString getTypesBytes(int index) { * * *
-   * The primary type of the given result. This type must one of the Places API
-   * supported types. For example, "restaurant", "cafe", "airport", etc.  A
+   * The primary type of the given result. This type must be one of the Places
+   * API supported types. For example, "restaurant", "cafe", "airport", etc.  A
    * place can only have a single primary type.  For the complete list of
    * possible values, see Table A and Table B at
-   * https://developers.google.com/maps/documentation/places/web-service/place-types
+   * https://developers.google.com/maps/documentation/places/web-service/place-types.
+   * The primary type may be missing if the place's primary type is not a
+   * supported type. When a primary type is present, it is always one of the
+   * types in the `types` field.
    * 
* * string primary_type = 50; @@ -22820,11 +23222,14 @@ public java.lang.String getPrimaryType() { * * *
-   * The primary type of the given result. This type must one of the Places API
-   * supported types. For example, "restaurant", "cafe", "airport", etc.  A
+   * The primary type of the given result. This type must be one of the Places
+   * API supported types. For example, "restaurant", "cafe", "airport", etc.  A
    * place can only have a single primary type.  For the complete list of
    * possible values, see Table A and Table B at
-   * https://developers.google.com/maps/documentation/places/web-service/place-types
+   * https://developers.google.com/maps/documentation/places/web-service/place-types.
+   * The primary type may be missing if the place's primary type is not a
+   * supported type. When a primary type is present, it is always one of the
+   * types in the `types` field.
    * 
* * string primary_type = 50; @@ -22854,7 +23259,9 @@ public com.google.protobuf.ByteString getPrimaryTypeBytes() { * The display name of the primary type, localized to the request language if * applicable. For the complete list of possible values, see Table A and Table * B at - * https://developers.google.com/maps/documentation/places/web-service/place-types + * https://developers.google.com/maps/documentation/places/web-service/place-types. + * The primary type may be missing if the place's primary type is not a + * supported type. * * * .google.type.LocalizedText primary_type_display_name = 32; @@ -22873,7 +23280,9 @@ public boolean hasPrimaryTypeDisplayName() { * The display name of the primary type, localized to the request language if * applicable. For the complete list of possible values, see Table A and Table * B at - * https://developers.google.com/maps/documentation/places/web-service/place-types + * https://developers.google.com/maps/documentation/places/web-service/place-types. + * The primary type may be missing if the place's primary type is not a + * supported type. * * * .google.type.LocalizedText primary_type_display_name = 32; @@ -22894,7 +23303,9 @@ public com.google.type.LocalizedText getPrimaryTypeDisplayName() { * The display name of the primary type, localized to the request language if * applicable. For the complete list of possible values, see Table A and Table * B at - * https://developers.google.com/maps/documentation/places/web-service/place-types + * https://developers.google.com/maps/documentation/places/web-service/place-types. + * The primary type may be missing if the place's primary type is not a + * supported type. * * * .google.type.LocalizedText primary_type_display_name = 32; @@ -29660,11 +30071,14 @@ public Builder addTypesBytes(com.google.protobuf.ByteString value) { * * *
-     * The primary type of the given result. This type must one of the Places API
-     * supported types. For example, "restaurant", "cafe", "airport", etc.  A
+     * The primary type of the given result. This type must be one of the Places
+     * API supported types. For example, "restaurant", "cafe", "airport", etc.  A
      * place can only have a single primary type.  For the complete list of
      * possible values, see Table A and Table B at
-     * https://developers.google.com/maps/documentation/places/web-service/place-types
+     * https://developers.google.com/maps/documentation/places/web-service/place-types.
+     * The primary type may be missing if the place's primary type is not a
+     * supported type. When a primary type is present, it is always one of the
+     * types in the `types` field.
      * 
* * string primary_type = 50; @@ -29687,11 +30101,14 @@ public java.lang.String getPrimaryType() { * * *
-     * The primary type of the given result. This type must one of the Places API
-     * supported types. For example, "restaurant", "cafe", "airport", etc.  A
+     * The primary type of the given result. This type must be one of the Places
+     * API supported types. For example, "restaurant", "cafe", "airport", etc.  A
      * place can only have a single primary type.  For the complete list of
      * possible values, see Table A and Table B at
-     * https://developers.google.com/maps/documentation/places/web-service/place-types
+     * https://developers.google.com/maps/documentation/places/web-service/place-types.
+     * The primary type may be missing if the place's primary type is not a
+     * supported type. When a primary type is present, it is always one of the
+     * types in the `types` field.
      * 
* * string primary_type = 50; @@ -29714,11 +30131,14 @@ public com.google.protobuf.ByteString getPrimaryTypeBytes() { * * *
-     * The primary type of the given result. This type must one of the Places API
-     * supported types. For example, "restaurant", "cafe", "airport", etc.  A
+     * The primary type of the given result. This type must be one of the Places
+     * API supported types. For example, "restaurant", "cafe", "airport", etc.  A
      * place can only have a single primary type.  For the complete list of
      * possible values, see Table A and Table B at
-     * https://developers.google.com/maps/documentation/places/web-service/place-types
+     * https://developers.google.com/maps/documentation/places/web-service/place-types.
+     * The primary type may be missing if the place's primary type is not a
+     * supported type. When a primary type is present, it is always one of the
+     * types in the `types` field.
      * 
* * string primary_type = 50; @@ -29740,11 +30160,14 @@ public Builder setPrimaryType(java.lang.String value) { * * *
-     * The primary type of the given result. This type must one of the Places API
-     * supported types. For example, "restaurant", "cafe", "airport", etc.  A
+     * The primary type of the given result. This type must be one of the Places
+     * API supported types. For example, "restaurant", "cafe", "airport", etc.  A
      * place can only have a single primary type.  For the complete list of
      * possible values, see Table A and Table B at
-     * https://developers.google.com/maps/documentation/places/web-service/place-types
+     * https://developers.google.com/maps/documentation/places/web-service/place-types.
+     * The primary type may be missing if the place's primary type is not a
+     * supported type. When a primary type is present, it is always one of the
+     * types in the `types` field.
      * 
* * string primary_type = 50; @@ -29762,11 +30185,14 @@ public Builder clearPrimaryType() { * * *
-     * The primary type of the given result. This type must one of the Places API
-     * supported types. For example, "restaurant", "cafe", "airport", etc.  A
+     * The primary type of the given result. This type must be one of the Places
+     * API supported types. For example, "restaurant", "cafe", "airport", etc.  A
      * place can only have a single primary type.  For the complete list of
      * possible values, see Table A and Table B at
-     * https://developers.google.com/maps/documentation/places/web-service/place-types
+     * https://developers.google.com/maps/documentation/places/web-service/place-types.
+     * The primary type may be missing if the place's primary type is not a
+     * supported type. When a primary type is present, it is always one of the
+     * types in the `types` field.
      * 
* * string primary_type = 50; @@ -29799,7 +30225,9 @@ public Builder setPrimaryTypeBytes(com.google.protobuf.ByteString value) { * The display name of the primary type, localized to the request language if * applicable. For the complete list of possible values, see Table A and Table * B at - * https://developers.google.com/maps/documentation/places/web-service/place-types + * https://developers.google.com/maps/documentation/places/web-service/place-types. + * The primary type may be missing if the place's primary type is not a + * supported type. * * * .google.type.LocalizedText primary_type_display_name = 32; @@ -29817,7 +30245,9 @@ public boolean hasPrimaryTypeDisplayName() { * The display name of the primary type, localized to the request language if * applicable. For the complete list of possible values, see Table A and Table * B at - * https://developers.google.com/maps/documentation/places/web-service/place-types + * https://developers.google.com/maps/documentation/places/web-service/place-types. + * The primary type may be missing if the place's primary type is not a + * supported type. * * * .google.type.LocalizedText primary_type_display_name = 32; @@ -29841,7 +30271,9 @@ public com.google.type.LocalizedText getPrimaryTypeDisplayName() { * The display name of the primary type, localized to the request language if * applicable. For the complete list of possible values, see Table A and Table * B at - * https://developers.google.com/maps/documentation/places/web-service/place-types + * https://developers.google.com/maps/documentation/places/web-service/place-types. + * The primary type may be missing if the place's primary type is not a + * supported type. * * * .google.type.LocalizedText primary_type_display_name = 32; @@ -29867,7 +30299,9 @@ public Builder setPrimaryTypeDisplayName(com.google.type.LocalizedText value) { * The display name of the primary type, localized to the request language if * applicable. For the complete list of possible values, see Table A and Table * B at - * https://developers.google.com/maps/documentation/places/web-service/place-types + * https://developers.google.com/maps/documentation/places/web-service/place-types. + * The primary type may be missing if the place's primary type is not a + * supported type. * * * .google.type.LocalizedText primary_type_display_name = 32; @@ -29891,7 +30325,9 @@ public Builder setPrimaryTypeDisplayName( * The display name of the primary type, localized to the request language if * applicable. For the complete list of possible values, see Table A and Table * B at - * https://developers.google.com/maps/documentation/places/web-service/place-types + * https://developers.google.com/maps/documentation/places/web-service/place-types. + * The primary type may be missing if the place's primary type is not a + * supported type. * * * .google.type.LocalizedText primary_type_display_name = 32; @@ -29922,7 +30358,9 @@ public Builder mergePrimaryTypeDisplayName(com.google.type.LocalizedText value) * The display name of the primary type, localized to the request language if * applicable. For the complete list of possible values, see Table A and Table * B at - * https://developers.google.com/maps/documentation/places/web-service/place-types + * https://developers.google.com/maps/documentation/places/web-service/place-types. + * The primary type may be missing if the place's primary type is not a + * supported type. * * * .google.type.LocalizedText primary_type_display_name = 32; @@ -29945,7 +30383,9 @@ public Builder clearPrimaryTypeDisplayName() { * The display name of the primary type, localized to the request language if * applicable. For the complete list of possible values, see Table A and Table * B at - * https://developers.google.com/maps/documentation/places/web-service/place-types + * https://developers.google.com/maps/documentation/places/web-service/place-types. + * The primary type may be missing if the place's primary type is not a + * supported type. * * * .google.type.LocalizedText primary_type_display_name = 32; @@ -29963,7 +30403,9 @@ public com.google.type.LocalizedText.Builder getPrimaryTypeDisplayNameBuilder() * The display name of the primary type, localized to the request language if * applicable. For the complete list of possible values, see Table A and Table * B at - * https://developers.google.com/maps/documentation/places/web-service/place-types + * https://developers.google.com/maps/documentation/places/web-service/place-types. + * The primary type may be missing if the place's primary type is not a + * supported type. * * * .google.type.LocalizedText primary_type_display_name = 32; @@ -29985,7 +30427,9 @@ public com.google.type.LocalizedTextOrBuilder getPrimaryTypeDisplayNameOrBuilder * The display name of the primary type, localized to the request language if * applicable. For the complete list of possible values, see Table A and Table * B at - * https://developers.google.com/maps/documentation/places/web-service/place-types + * https://developers.google.com/maps/documentation/places/web-service/place-types. + * The primary type may be missing if the place's primary type is not a + * supported type. * * * .google.type.LocalizedText primary_type_display_name = 32; diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlaceOrBuilder.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlaceOrBuilder.java index 9abfb128e148..0d5e166f1389 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlaceOrBuilder.java +++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlaceOrBuilder.java @@ -188,11 +188,14 @@ public interface PlaceOrBuilder * * *
-   * The primary type of the given result. This type must one of the Places API
-   * supported types. For example, "restaurant", "cafe", "airport", etc.  A
+   * The primary type of the given result. This type must be one of the Places
+   * API supported types. For example, "restaurant", "cafe", "airport", etc.  A
    * place can only have a single primary type.  For the complete list of
    * possible values, see Table A and Table B at
-   * https://developers.google.com/maps/documentation/places/web-service/place-types
+   * https://developers.google.com/maps/documentation/places/web-service/place-types.
+   * The primary type may be missing if the place's primary type is not a
+   * supported type. When a primary type is present, it is always one of the
+   * types in the `types` field.
    * 
* * string primary_type = 50; @@ -205,11 +208,14 @@ public interface PlaceOrBuilder * * *
-   * The primary type of the given result. This type must one of the Places API
-   * supported types. For example, "restaurant", "cafe", "airport", etc.  A
+   * The primary type of the given result. This type must be one of the Places
+   * API supported types. For example, "restaurant", "cafe", "airport", etc.  A
    * place can only have a single primary type.  For the complete list of
    * possible values, see Table A and Table B at
-   * https://developers.google.com/maps/documentation/places/web-service/place-types
+   * https://developers.google.com/maps/documentation/places/web-service/place-types.
+   * The primary type may be missing if the place's primary type is not a
+   * supported type. When a primary type is present, it is always one of the
+   * types in the `types` field.
    * 
* * string primary_type = 50; @@ -225,7 +231,9 @@ public interface PlaceOrBuilder * The display name of the primary type, localized to the request language if * applicable. For the complete list of possible values, see Table A and Table * B at - * https://developers.google.com/maps/documentation/places/web-service/place-types + * https://developers.google.com/maps/documentation/places/web-service/place-types. + * The primary type may be missing if the place's primary type is not a + * supported type. * * * .google.type.LocalizedText primary_type_display_name = 32; @@ -241,7 +249,9 @@ public interface PlaceOrBuilder * The display name of the primary type, localized to the request language if * applicable. For the complete list of possible values, see Table A and Table * B at - * https://developers.google.com/maps/documentation/places/web-service/place-types + * https://developers.google.com/maps/documentation/places/web-service/place-types. + * The primary type may be missing if the place's primary type is not a + * supported type. * * * .google.type.LocalizedText primary_type_display_name = 32; @@ -257,7 +267,9 @@ public interface PlaceOrBuilder * The display name of the primary type, localized to the request language if * applicable. For the complete list of possible values, see Table A and Table * B at - * https://developers.google.com/maps/documentation/places/web-service/place-types + * https://developers.google.com/maps/documentation/places/web-service/place-types. + * The primary type may be missing if the place's primary type is not a + * supported type. * * * .google.type.LocalizedText primary_type_display_name = 32; diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/place.proto b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/place.proto index 33dead097fd5..36ca53d9e0e8 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/place.proto +++ b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/place.proto @@ -177,14 +177,31 @@ message Place { optional bool open_now = 1; // The periods that this place is open during the week. The periods are in - // chronological order, starting with Sunday in the place-local timezone. An - // empty (but not absent) value indicates a place that is never open, e.g. + // chronological order, in the place-local timezone. An empty (but not + // absent) value indicates a place that is never open, e.g. // because it is closed temporarily for renovations. + // + // The starting day of `periods` is NOT fixed and should not be assumed to + // be Sunday. The API determines the start day based on a variety of + // factors. For example, for a 24/7 business, the first period may begin on + // the day of the request. For other businesses, it might be the first day + // of the week that they are open. + // + // NOTE: The ordering of the `periods` array is independent of the ordering + // of the `weekday_descriptions` array. Do not assume they will begin on the + // same day. repeated Period periods = 2; // Localized strings describing the opening hours of this place, one string - // for each day of the week. Will be empty if the hours are unknown or - // could not be converted to localized text. Example: "Sun: 18:00–06:00" + // for each day of the week. + // + // NOTE: The order of the days and the start of the week is determined by + // the locale (language and region). The ordering of the `periods` array is + // independent of the ordering of the `weekday_descriptions` array. Do not + // assume they will begin on the same day. + // + // Will be empty if the hours are unknown or could not be converted to + // localized text. Example: "Sun: 18:00–06:00" repeated string weekday_descriptions = 3; // A type string used to identify the type of secondary hours. @@ -405,17 +422,22 @@ message Place { // https://developers.google.com/maps/documentation/places/web-service/place-types repeated string types = 5; - // The primary type of the given result. This type must one of the Places API - // supported types. For example, "restaurant", "cafe", "airport", etc. A + // The primary type of the given result. This type must be one of the Places + // API supported types. For example, "restaurant", "cafe", "airport", etc. A // place can only have a single primary type. For the complete list of // possible values, see Table A and Table B at - // https://developers.google.com/maps/documentation/places/web-service/place-types + // https://developers.google.com/maps/documentation/places/web-service/place-types. + // The primary type may be missing if the place's primary type is not a + // supported type. When a primary type is present, it is always one of the + // types in the `types` field. string primary_type = 50; // The display name of the primary type, localized to the request language if // applicable. For the complete list of possible values, see Table A and Table // B at - // https://developers.google.com/maps/documentation/places/web-service/place-types + // https://developers.google.com/maps/documentation/places/web-service/place-types. + // The primary type may be missing if the place's primary type is not a + // supported type. google.type.LocalizedText primary_type_display_name = 32; // A human-readable phone number for the place, in national format. diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/places_service.proto b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/places_service.proto index becdf1eae0a1..15d8ad05e66c 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/places_service.proto +++ b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/places_service.proto @@ -41,9 +41,10 @@ option objc_class_prefix = "GMPSV1"; option php_namespace = "Google\\Maps\\Places\\V1"; // Service definition for the Places API. -// Note: every request (except for Autocomplete requests) requires a field mask -// set outside of the request proto (`all/*`, is not assumed). The field mask -// can be set via the HTTP header `X-Goog-FieldMask`. See: +// Note: every request (except for Autocomplete and GetPhotoMedia requests) +// requires a field mask set outside of the request proto (`all/*`, is not +// assumed). The field mask can be set via the HTTP header `X-Goog-FieldMask`. +// See: // https://developers.google.com/maps/documentation/places/web-service/choose-fields service Places { option (google.api.default_host) = "places.googleapis.com"; diff --git a/java-maps-routeoptimization/CHANGELOG.md b/java-maps-routeoptimization/CHANGELOG.md index 047cfd03da73..58c3b9a34eac 100644 --- a/java-maps-routeoptimization/CHANGELOG.md +++ b/java-maps-routeoptimization/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.26.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.25.0 (2025-06-25) ### Dependencies diff --git a/java-maps-routeoptimization/README.md b/java-maps-routeoptimization/README.md index da3448dbd59c..7b6f1d4532f2 100644 --- a/java-maps-routeoptimization/README.md +++ b/java-maps-routeoptimization/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.maps google-maps-routeoptimization - 0.24.0 + 0.25.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-routeoptimization:0.24.0' +implementation 'com.google.maps:google-maps-routeoptimization:0.25.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-routeoptimization" % "0.24.0" +libraryDependencies += "com.google.maps" % "google-maps-routeoptimization" % "0.25.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-routeoptimization.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routeoptimization/0.24.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routeoptimization/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-maps-routeoptimization/google-maps-routeoptimization-bom/pom.xml b/java-maps-routeoptimization/google-maps-routeoptimization-bom/pom.xml index e9bd3fbc3177..8a5ce55ab9de 100644 --- a/java-maps-routeoptimization/google-maps-routeoptimization-bom/pom.xml +++ b/java-maps-routeoptimization/google-maps-routeoptimization-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.maps google-maps-routeoptimization-bom - 0.25.0 + 0.26.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.maps google-maps-routeoptimization - 0.25.0 + 0.26.0 com.google.maps.api.grpc grpc-google-maps-routeoptimization-v1 - 0.25.0 + 0.26.0 com.google.maps.api.grpc proto-google-maps-routeoptimization-v1 - 0.25.0 + 0.26.0
diff --git a/java-maps-routeoptimization/google-maps-routeoptimization/pom.xml b/java-maps-routeoptimization/google-maps-routeoptimization/pom.xml index 282e9fdb779d..a605bcf84f71 100644 --- a/java-maps-routeoptimization/google-maps-routeoptimization/pom.xml +++ b/java-maps-routeoptimization/google-maps-routeoptimization/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.maps google-maps-routeoptimization - 0.25.0 + 0.26.0 jar Google Route Optimization API Route Optimization API 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. com.google.maps google-maps-routeoptimization-parent - 0.25.0 + 0.26.0 google-maps-routeoptimization diff --git a/java-maps-routeoptimization/grpc-google-maps-routeoptimization-v1/pom.xml b/java-maps-routeoptimization/grpc-google-maps-routeoptimization-v1/pom.xml index 2def50d395d2..5b86520a4cc8 100644 --- a/java-maps-routeoptimization/grpc-google-maps-routeoptimization-v1/pom.xml +++ b/java-maps-routeoptimization/grpc-google-maps-routeoptimization-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc grpc-google-maps-routeoptimization-v1 - 0.25.0 + 0.26.0 grpc-google-maps-routeoptimization-v1 GRPC library for google-maps-routeoptimization com.google.maps google-maps-routeoptimization-parent - 0.25.0 + 0.26.0 diff --git a/java-maps-routeoptimization/pom.xml b/java-maps-routeoptimization/pom.xml index c357886f50e6..bd467ab48555 100644 --- a/java-maps-routeoptimization/pom.xml +++ b/java-maps-routeoptimization/pom.xml @@ -4,7 +4,7 @@ com.google.maps google-maps-routeoptimization-parent pom - 0.25.0 + 0.26.0 Google Route Optimization API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.maps google-maps-routeoptimization - 0.25.0 + 0.26.0 com.google.maps.api.grpc grpc-google-maps-routeoptimization-v1 - 0.25.0 + 0.26.0 com.google.maps.api.grpc proto-google-maps-routeoptimization-v1 - 0.25.0 + 0.26.0 diff --git a/java-maps-routeoptimization/proto-google-maps-routeoptimization-v1/pom.xml b/java-maps-routeoptimization/proto-google-maps-routeoptimization-v1/pom.xml index 1114142f5215..ebe2cd3358b1 100644 --- a/java-maps-routeoptimization/proto-google-maps-routeoptimization-v1/pom.xml +++ b/java-maps-routeoptimization/proto-google-maps-routeoptimization-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc proto-google-maps-routeoptimization-v1 - 0.25.0 + 0.26.0 proto-google-maps-routeoptimization-v1 Proto library for google-maps-routeoptimization com.google.maps google-maps-routeoptimization-parent - 0.25.0 + 0.26.0 diff --git a/java-maps-routing/CHANGELOG.md b/java-maps-routing/CHANGELOG.md index 7a74d85cc621..8bc71168c6e6 100644 --- a/java-maps-routing/CHANGELOG.md +++ b/java-maps-routing/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 1.53.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 1.52.0 (2025-06-25) ### Dependencies diff --git a/java-maps-routing/README.md b/java-maps-routing/README.md index 13ed72f47448..2512eaffcba4 100644 --- a/java-maps-routing/README.md +++ b/java-maps-routing/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.maps google-maps-routing - 1.51.0 + 1.52.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-routing:1.51.0' +implementation 'com.google.maps:google-maps-routing:1.52.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-routing" % "1.51.0" +libraryDependencies += "com.google.maps" % "google-maps-routing" % "1.52.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routing/1.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-maps-routing/google-maps-routing-bom/pom.xml b/java-maps-routing/google-maps-routing-bom/pom.xml index 519d55d5330f..4b046c6f8225 100644 --- a/java-maps-routing/google-maps-routing-bom/pom.xml +++ b/java-maps-routing/google-maps-routing-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.maps google-maps-routing-bom - 1.52.0 + 1.53.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.maps google-maps-routing - 1.52.0 + 1.53.0 com.google.maps.api.grpc grpc-google-maps-routing-v2 - 1.52.0 + 1.53.0 com.google.maps.api.grpc proto-google-maps-routing-v2 - 1.52.0 + 1.53.0 diff --git a/java-maps-routing/google-maps-routing/pom.xml b/java-maps-routing/google-maps-routing/pom.xml index acebfc9565f4..8943bf6122fe 100644 --- a/java-maps-routing/google-maps-routing/pom.xml +++ b/java-maps-routing/google-maps-routing/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.maps google-maps-routing - 1.52.0 + 1.53.0 jar Google Routes API Routes API 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. com.google.maps google-maps-routing-parent - 1.52.0 + 1.53.0 google-maps-routing diff --git a/java-maps-routing/grpc-google-maps-routing-v2/pom.xml b/java-maps-routing/grpc-google-maps-routing-v2/pom.xml index f72567b53d34..edac47e15861 100644 --- a/java-maps-routing/grpc-google-maps-routing-v2/pom.xml +++ b/java-maps-routing/grpc-google-maps-routing-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc grpc-google-maps-routing-v2 - 1.52.0 + 1.53.0 grpc-google-maps-routing-v2 GRPC library for google-maps-routing com.google.maps google-maps-routing-parent - 1.52.0 + 1.53.0 diff --git a/java-maps-routing/pom.xml b/java-maps-routing/pom.xml index 32c014f99f2f..2c5eef812e26 100644 --- a/java-maps-routing/pom.xml +++ b/java-maps-routing/pom.xml @@ -4,7 +4,7 @@ com.google.maps google-maps-routing-parent pom - 1.52.0 + 1.53.0 Google Routes API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.maps google-maps-routing - 1.52.0 + 1.53.0 com.google.maps.api.grpc grpc-google-maps-routing-v2 - 1.52.0 + 1.53.0 com.google.maps.api.grpc proto-google-maps-routing-v2 - 1.52.0 + 1.53.0 diff --git a/java-maps-routing/proto-google-maps-routing-v2/pom.xml b/java-maps-routing/proto-google-maps-routing-v2/pom.xml index ab4e73e3ac74..388044615358 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/pom.xml +++ b/java-maps-routing/proto-google-maps-routing-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc proto-google-maps-routing-v2 - 1.52.0 + 1.53.0 proto-google-maps-routing-v2 Proto library for google-maps-routing com.google.maps google-maps-routing-parent - 1.52.0 + 1.53.0 diff --git a/java-maps-solar/CHANGELOG.md b/java-maps-solar/CHANGELOG.md index 8c6712be3ca4..187f90867c65 100644 --- a/java-maps-solar/CHANGELOG.md +++ b/java-maps-solar/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.27.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.26.0 (2025-06-25) ### Dependencies diff --git a/java-maps-solar/README.md b/java-maps-solar/README.md index 1371e09396a6..ee9fbbb26ae6 100644 --- a/java-maps-solar/README.md +++ b/java-maps-solar/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.maps google-maps-solar - 0.25.0 + 0.26.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-solar:0.25.0' +implementation 'com.google.maps:google-maps-solar:0.26.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-solar" % "0.25.0" +libraryDependencies += "com.google.maps" % "google-maps-solar" % "0.26.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-solar.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-solar/0.25.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-solar/0.26.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/google-maps-solar-bom/pom.xml b/java-maps-solar/google-maps-solar-bom/pom.xml index 3799db63d064..53ebdb90fcf5 100644 --- a/java-maps-solar/google-maps-solar-bom/pom.xml +++ b/java-maps-solar/google-maps-solar-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.maps google-maps-solar-bom - 0.26.0 + 0.27.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.maps google-maps-solar - 0.26.0 + 0.27.0 com.google.maps.api.grpc grpc-google-maps-solar-v1 - 0.26.0 + 0.27.0 com.google.maps.api.grpc proto-google-maps-solar-v1 - 0.26.0 + 0.27.0 diff --git a/java-maps-solar/google-maps-solar/pom.xml b/java-maps-solar/google-maps-solar/pom.xml index 7f2d85b03dfe..77ff62b562b6 100644 --- a/java-maps-solar/google-maps-solar/pom.xml +++ b/java-maps-solar/google-maps-solar/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.maps google-maps-solar - 0.26.0 + 0.27.0 jar Google Solar API Solar API The Solar API allows users to read details about the solar potential of over 60 million buildings. This includes measurements of the building's roof (e.g., size and tilt/azimuth), energy production for a range of sizes of solar installations, and financial costs and benefits. com.google.maps google-maps-solar-parent - 0.26.0 + 0.27.0 google-maps-solar diff --git a/java-maps-solar/grpc-google-maps-solar-v1/pom.xml b/java-maps-solar/grpc-google-maps-solar-v1/pom.xml index 6b3c024b6766..7bb364da11f7 100644 --- a/java-maps-solar/grpc-google-maps-solar-v1/pom.xml +++ b/java-maps-solar/grpc-google-maps-solar-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc grpc-google-maps-solar-v1 - 0.26.0 + 0.27.0 grpc-google-maps-solar-v1 GRPC library for google-maps-solar com.google.maps google-maps-solar-parent - 0.26.0 + 0.27.0 diff --git a/java-maps-solar/pom.xml b/java-maps-solar/pom.xml index f97a628ba0b9..5bbbb95013ee 100644 --- a/java-maps-solar/pom.xml +++ b/java-maps-solar/pom.xml @@ -4,7 +4,7 @@ com.google.maps google-maps-solar-parent pom - 0.26.0 + 0.27.0 Google Solar API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.maps google-maps-solar - 0.26.0 + 0.27.0 com.google.maps.api.grpc grpc-google-maps-solar-v1 - 0.26.0 + 0.27.0 com.google.maps.api.grpc proto-google-maps-solar-v1 - 0.26.0 + 0.27.0 diff --git a/java-maps-solar/proto-google-maps-solar-v1/pom.xml b/java-maps-solar/proto-google-maps-solar-v1/pom.xml index 9f908cb30ba1..a711f40601b9 100644 --- a/java-maps-solar/proto-google-maps-solar-v1/pom.xml +++ b/java-maps-solar/proto-google-maps-solar-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc proto-google-maps-solar-v1 - 0.26.0 + 0.27.0 proto-google-maps-solar-v1 Proto library for google-maps-solar com.google.maps google-maps-solar-parent - 0.26.0 + 0.27.0 diff --git a/java-marketingplatformadminapi/CHANGELOG.md b/java-marketingplatformadminapi/CHANGELOG.md index 4b6e9038dd69..0b892a076e78 100644 --- a/java-marketingplatformadminapi/CHANGELOG.md +++ b/java-marketingplatformadminapi/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.17.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.16.0 (2025-06-25) ### Dependencies diff --git a/java-marketingplatformadminapi/README.md b/java-marketingplatformadminapi/README.md index fb5787c7fa1f..b5c022791968 100644 --- a/java-marketingplatformadminapi/README.md +++ b/java-marketingplatformadminapi/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.ads-marketingplatform admin - 0.15.0 + 0.16.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.ads-marketingplatform:admin:0.15.0' +implementation 'com.google.ads-marketingplatform:admin:0.16.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.ads-marketingplatform" % "admin" % "0.15.0" +libraryDependencies += "com.google.ads-marketingplatform" % "admin" % "0.16.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.ads-marketingplatform/admin.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.ads-marketingplatform/admin/0.15.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.ads-marketingplatform/admin/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-marketingplatformadminapi/admin-bom/pom.xml b/java-marketingplatformadminapi/admin-bom/pom.xml index b2075cff7858..9d24e446ae77 100644 --- a/java-marketingplatformadminapi/admin-bom/pom.xml +++ b/java-marketingplatformadminapi/admin-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.ads-marketingplatform admin-bom - 0.16.0 + 0.17.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.ads-marketingplatform admin - 0.16.0 + 0.17.0 com.google.ads-marketingplatform.api.grpc grpc-admin-v1alpha - 0.16.0 + 0.17.0 com.google.ads-marketingplatform.api.grpc proto-admin-v1alpha - 0.16.0 + 0.17.0 diff --git a/java-marketingplatformadminapi/admin/pom.xml b/java-marketingplatformadminapi/admin/pom.xml index a43ba3ae428f..e7a3d666fc49 100644 --- a/java-marketingplatformadminapi/admin/pom.xml +++ b/java-marketingplatformadminapi/admin/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.ads-marketingplatform admin - 0.16.0 + 0.17.0 jar Google Google Marketing Platform Admin API Google Marketing Platform Admin API The Google Marketing Platform Admin API allows for programmatic access to the Google Marketing Platform configuration data. You can use the Google Marketing Platform Admin API to manage links between your Google Marketing Platform organization and Google Analytics accounts, and to set the service level of your GA4 properties. com.google.ads-marketingplatform admin-parent - 0.16.0 + 0.17.0 admin diff --git a/java-marketingplatformadminapi/grpc-admin-v1alpha/pom.xml b/java-marketingplatformadminapi/grpc-admin-v1alpha/pom.xml index cf5534c92967..b20dce399314 100644 --- a/java-marketingplatformadminapi/grpc-admin-v1alpha/pom.xml +++ b/java-marketingplatformadminapi/grpc-admin-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.ads-marketingplatform.api.grpc grpc-admin-v1alpha - 0.16.0 + 0.17.0 grpc-admin-v1alpha GRPC library for admin com.google.ads-marketingplatform admin-parent - 0.16.0 + 0.17.0 diff --git a/java-marketingplatformadminapi/pom.xml b/java-marketingplatformadminapi/pom.xml index 78b5a10a6aeb..9cfdc4f40ece 100644 --- a/java-marketingplatformadminapi/pom.xml +++ b/java-marketingplatformadminapi/pom.xml @@ -4,7 +4,7 @@ com.google.ads-marketingplatform admin-parent pom - 0.16.0 + 0.17.0 Google Google Marketing Platform Admin API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.ads-marketingplatform admin - 0.16.0 + 0.17.0 com.google.ads-marketingplatform.api.grpc grpc-admin-v1alpha - 0.16.0 + 0.17.0 com.google.ads-marketingplatform.api.grpc proto-admin-v1alpha - 0.16.0 + 0.17.0 diff --git a/java-marketingplatformadminapi/proto-admin-v1alpha/pom.xml b/java-marketingplatformadminapi/proto-admin-v1alpha/pom.xml index 5ba6ec5d3d88..e785d1dc1876 100644 --- a/java-marketingplatformadminapi/proto-admin-v1alpha/pom.xml +++ b/java-marketingplatformadminapi/proto-admin-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.ads-marketingplatform.api.grpc proto-admin-v1alpha - 0.16.0 + 0.17.0 proto-admin-v1alpha Proto library for admin com.google.ads-marketingplatform admin-parent - 0.16.0 + 0.17.0 diff --git a/java-mediatranslation/CHANGELOG.md b/java-mediatranslation/CHANGELOG.md index 7b476a5919be..a21468c92ccb 100644 --- a/java-mediatranslation/CHANGELOG.md +++ b/java-mediatranslation/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.74.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.73.0 (2025-06-25) ### Dependencies diff --git a/java-mediatranslation/README.md b/java-mediatranslation/README.md index e83c9d59561f..0b9d2496f0d3 100644 --- a/java-mediatranslation/README.md +++ b/java-mediatranslation/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-mediatranslation - 0.72.0 + 0.73.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-mediatranslation:0.72.0' +implementation 'com.google.cloud:google-cloud-mediatranslation:0.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-mediatranslation" % "0.72.0" +libraryDependencies += "com.google.cloud" % "google-cloud-mediatranslation" % "0.73.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-mediatranslation.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-mediatranslation/0.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-mediatranslation/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-mediatranslation/google-cloud-mediatranslation-bom/pom.xml b/java-mediatranslation/google-cloud-mediatranslation-bom/pom.xml index 8fb96bb9d2ac..794d5c30dd71 100644 --- a/java-mediatranslation/google-cloud-mediatranslation-bom/pom.xml +++ b/java-mediatranslation/google-cloud-mediatranslation-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-mediatranslation-bom - 0.73.0 + 0.74.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-mediatranslation - 0.73.0 + 0.74.0 com.google.api.grpc grpc-google-cloud-mediatranslation-v1beta1 - 0.73.0 + 0.74.0 com.google.api.grpc proto-google-cloud-mediatranslation-v1beta1 - 0.73.0 + 0.74.0 diff --git a/java-mediatranslation/google-cloud-mediatranslation/pom.xml b/java-mediatranslation/google-cloud-mediatranslation/pom.xml index 4b77d8dca29a..84ea6f3f511a 100644 --- a/java-mediatranslation/google-cloud-mediatranslation/pom.xml +++ b/java-mediatranslation/google-cloud-mediatranslation/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-mediatranslation - 0.73.0 + 0.74.0 jar Google Media Translation API provides enterprise quality translation from/to various media types. com.google.cloud google-cloud-mediatranslation-parent - 0.73.0 + 0.74.0 google-cloud-mediatranslation diff --git a/java-mediatranslation/grpc-google-cloud-mediatranslation-v1beta1/pom.xml b/java-mediatranslation/grpc-google-cloud-mediatranslation-v1beta1/pom.xml index de3153925eb9..9fdfa34c935a 100644 --- a/java-mediatranslation/grpc-google-cloud-mediatranslation-v1beta1/pom.xml +++ b/java-mediatranslation/grpc-google-cloud-mediatranslation-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-mediatranslation-v1beta1 - 0.73.0 + 0.74.0 grpc-google-cloud-mediatranslation-v1beta1 GRPC library for grpc-google-cloud-mediatranslation-v1beta1 com.google.cloud google-cloud-mediatranslation-parent - 0.73.0 + 0.74.0 diff --git a/java-mediatranslation/pom.xml b/java-mediatranslation/pom.xml index 0c102b93131d..cb6f06badd7f 100644 --- a/java-mediatranslation/pom.xml +++ b/java-mediatranslation/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-mediatranslation-parent pom - 0.73.0 + 0.74.0 Google Media Translation API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-mediatranslation - 0.73.0 + 0.74.0 com.google.api.grpc proto-google-cloud-mediatranslation-v1beta1 - 0.73.0 + 0.74.0 com.google.api.grpc grpc-google-cloud-mediatranslation-v1beta1 - 0.73.0 + 0.74.0 diff --git a/java-mediatranslation/proto-google-cloud-mediatranslation-v1beta1/pom.xml b/java-mediatranslation/proto-google-cloud-mediatranslation-v1beta1/pom.xml index 91680129763d..49c28cc94ab6 100644 --- a/java-mediatranslation/proto-google-cloud-mediatranslation-v1beta1/pom.xml +++ b/java-mediatranslation/proto-google-cloud-mediatranslation-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-mediatranslation-v1beta1 - 0.73.0 + 0.74.0 proto-google-cloud-mediatranslation-v1beta1 PROTO library for proto-google-cloud-mediatranslation-v1beta1 com.google.cloud google-cloud-mediatranslation-parent - 0.73.0 + 0.74.0 diff --git a/java-meet/CHANGELOG.md b/java-meet/CHANGELOG.md index 288e0740809d..4cd116fada2e 100644 --- a/java-meet/CHANGELOG.md +++ b/java-meet/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.35.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.34.0 (2025-06-25) ### Dependencies diff --git a/java-meet/README.md b/java-meet/README.md index d994820194fc..897193a03d58 100644 --- a/java-meet/README.md +++ b/java-meet/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-meet - 0.33.0 + 0.34.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-meet:0.33.0' +implementation 'com.google.cloud:google-cloud-meet:0.34.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-meet" % "0.33.0" +libraryDependencies += "com.google.cloud" % "google-cloud-meet" % "0.34.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-meet.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-meet/0.33.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-meet/0.34.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/google-cloud-meet-bom/pom.xml b/java-meet/google-cloud-meet-bom/pom.xml index e70be1638809..adbb2e472535 100644 --- a/java-meet/google-cloud-meet-bom/pom.xml +++ b/java-meet/google-cloud-meet-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-meet-bom - 0.34.0 + 0.35.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-meet - 0.34.0 + 0.35.0 com.google.api.grpc grpc-google-cloud-meet-v2beta - 0.34.0 + 0.35.0 com.google.api.grpc grpc-google-cloud-meet-v2 - 0.34.0 + 0.35.0 com.google.api.grpc proto-google-cloud-meet-v2beta - 0.34.0 + 0.35.0 com.google.api.grpc proto-google-cloud-meet-v2 - 0.34.0 + 0.35.0 diff --git a/java-meet/google-cloud-meet/pom.xml b/java-meet/google-cloud-meet/pom.xml index 0e27fa631eb1..ee5431586d6f 100644 --- a/java-meet/google-cloud-meet/pom.xml +++ b/java-meet/google-cloud-meet/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-meet - 0.34.0 + 0.35.0 jar Google Google Meet API Google Meet API 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 com.google.cloud google-cloud-meet-parent - 0.34.0 + 0.35.0 google-cloud-meet diff --git a/java-meet/grpc-google-cloud-meet-v2/pom.xml b/java-meet/grpc-google-cloud-meet-v2/pom.xml index 292ff4a7c67b..4ac2460cbf20 100644 --- a/java-meet/grpc-google-cloud-meet-v2/pom.xml +++ b/java-meet/grpc-google-cloud-meet-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-meet-v2 - 0.34.0 + 0.35.0 grpc-google-cloud-meet-v2 GRPC library for google-cloud-meet com.google.cloud google-cloud-meet-parent - 0.34.0 + 0.35.0 diff --git a/java-meet/grpc-google-cloud-meet-v2beta/pom.xml b/java-meet/grpc-google-cloud-meet-v2beta/pom.xml index 416b1cd22edb..001a8755c497 100644 --- a/java-meet/grpc-google-cloud-meet-v2beta/pom.xml +++ b/java-meet/grpc-google-cloud-meet-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-meet-v2beta - 0.34.0 + 0.35.0 grpc-google-cloud-meet-v2beta GRPC library for google-cloud-meet com.google.cloud google-cloud-meet-parent - 0.34.0 + 0.35.0 diff --git a/java-meet/pom.xml b/java-meet/pom.xml index 76a9abadf12b..aa7c5d1fc2c2 100644 --- a/java-meet/pom.xml +++ b/java-meet/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-meet-parent pom - 0.34.0 + 0.35.0 Google Google Meet API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-meet - 0.34.0 + 0.35.0 com.google.api.grpc proto-google-cloud-meet-v2 - 0.34.0 + 0.35.0 com.google.api.grpc grpc-google-cloud-meet-v2 - 0.34.0 + 0.35.0 com.google.api.grpc grpc-google-cloud-meet-v2beta - 0.34.0 + 0.35.0 com.google.api.grpc proto-google-cloud-meet-v2beta - 0.34.0 + 0.35.0 diff --git a/java-meet/proto-google-cloud-meet-v2/pom.xml b/java-meet/proto-google-cloud-meet-v2/pom.xml index fdb05167de85..fc2ad5100e7e 100644 --- a/java-meet/proto-google-cloud-meet-v2/pom.xml +++ b/java-meet/proto-google-cloud-meet-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-meet-v2 - 0.34.0 + 0.35.0 proto-google-cloud-meet-v2 Proto library for google-cloud-meet com.google.cloud google-cloud-meet-parent - 0.34.0 + 0.35.0 diff --git a/java-meet/proto-google-cloud-meet-v2beta/pom.xml b/java-meet/proto-google-cloud-meet-v2beta/pom.xml index dde670e51525..e0671f3142c4 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/pom.xml +++ b/java-meet/proto-google-cloud-meet-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-meet-v2beta - 0.34.0 + 0.35.0 proto-google-cloud-meet-v2beta Proto library for google-cloud-meet com.google.cloud google-cloud-meet-parent - 0.34.0 + 0.35.0 diff --git a/java-memcache/CHANGELOG.md b/java-memcache/CHANGELOG.md index a3215fb6d464..31bd68d7bd39 100644 --- a/java-memcache/CHANGELOG.md +++ b/java-memcache/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.68.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.67.0 (2025-06-25) ### Dependencies diff --git a/java-memcache/README.md b/java-memcache/README.md index 6880e37f9056..a84fed1a7388 100644 --- a/java-memcache/README.md +++ b/java-memcache/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-memcache - 2.66.0 + 2.67.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-memcache:2.66.0' +implementation 'com.google.cloud:google-cloud-memcache:2.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-memcache" % "2.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-memcache" % "2.67.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-memcache/2.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-memcache/google-cloud-memcache-bom/pom.xml b/java-memcache/google-cloud-memcache-bom/pom.xml index bc99b95cf988..52e373caef67 100644 --- a/java-memcache/google-cloud-memcache-bom/pom.xml +++ b/java-memcache/google-cloud-memcache-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-memcache-bom - 2.67.0 + 2.68.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-memcache - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-memcache-v1beta2 - 0.74.0 + 0.75.0 com.google.api.grpc grpc-google-cloud-memcache-v1 - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-cloud-memcache-v1beta2 - 0.74.0 + 0.75.0 com.google.api.grpc proto-google-cloud-memcache-v1 - 2.67.0 + 2.68.0 diff --git a/java-memcache/google-cloud-memcache/pom.xml b/java-memcache/google-cloud-memcache/pom.xml index c350c1fd3069..426d9d3ad3e4 100644 --- a/java-memcache/google-cloud-memcache/pom.xml +++ b/java-memcache/google-cloud-memcache/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-memcache - 2.67.0 + 2.68.0 jar Google Cloud Memcache Java idiomatic client for Google Cloud memcache com.google.cloud google-cloud-memcache-parent - 2.67.0 + 2.68.0 google-cloud-memcache diff --git a/java-memcache/grpc-google-cloud-memcache-v1/pom.xml b/java-memcache/grpc-google-cloud-memcache-v1/pom.xml index 5c0c544bf522..1ad270b67dee 100644 --- a/java-memcache/grpc-google-cloud-memcache-v1/pom.xml +++ b/java-memcache/grpc-google-cloud-memcache-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-memcache-v1 - 2.67.0 + 2.68.0 grpc-google-cloud-memcache-v1 GRPC library for grpc-google-cloud-memcache-v1 com.google.cloud google-cloud-memcache-parent - 2.67.0 + 2.68.0 diff --git a/java-memcache/grpc-google-cloud-memcache-v1beta2/pom.xml b/java-memcache/grpc-google-cloud-memcache-v1beta2/pom.xml index 45d993e9660e..cb31c88c9d60 100644 --- a/java-memcache/grpc-google-cloud-memcache-v1beta2/pom.xml +++ b/java-memcache/grpc-google-cloud-memcache-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-memcache-v1beta2 - 0.74.0 + 0.75.0 grpc-google-cloud-memcache-v1beta2 GRPC library for grpc-google-cloud-memcache-v1beta2 com.google.cloud google-cloud-memcache-parent - 2.67.0 + 2.68.0 diff --git a/java-memcache/pom.xml b/java-memcache/pom.xml index 43d481923f90..0da8233a875d 100644 --- a/java-memcache/pom.xml +++ b/java-memcache/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-memcache-parent pom - 2.67.0 + 2.68.0 Google Cloud Memcache Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-memcache-v1beta2 - 0.74.0 + 0.75.0 com.google.api.grpc grpc-google-cloud-memcache-v1beta2 - 0.74.0 + 0.75.0 com.google.api.grpc proto-google-cloud-memcache-v1 - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-memcache-v1 - 2.67.0 + 2.68.0 com.google.cloud google-cloud-memcache - 2.67.0 + 2.68.0 diff --git a/java-memcache/proto-google-cloud-memcache-v1/pom.xml b/java-memcache/proto-google-cloud-memcache-v1/pom.xml index 9837af07898b..7f24d28c331a 100644 --- a/java-memcache/proto-google-cloud-memcache-v1/pom.xml +++ b/java-memcache/proto-google-cloud-memcache-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-memcache-v1 - 2.67.0 + 2.68.0 proto-google-cloud-memcache-v1 PROTO library for proto-google-cloud-memcache-v1 com.google.cloud google-cloud-memcache-parent - 2.67.0 + 2.68.0 diff --git a/java-memcache/proto-google-cloud-memcache-v1beta2/pom.xml b/java-memcache/proto-google-cloud-memcache-v1beta2/pom.xml index b3b3be987c55..9055a30025c0 100644 --- a/java-memcache/proto-google-cloud-memcache-v1beta2/pom.xml +++ b/java-memcache/proto-google-cloud-memcache-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-memcache-v1beta2 - 0.74.0 + 0.75.0 proto-google-cloud-memcache-v1beta2 PROTO library for proto-google-cloud-memcache-v1beta2 com.google.cloud google-cloud-memcache-parent - 2.67.0 + 2.68.0 diff --git a/java-migrationcenter/CHANGELOG.md b/java-migrationcenter/CHANGELOG.md index ef6f50a4e262..fd3900413515 100644 --- a/java-migrationcenter/CHANGELOG.md +++ b/java-migrationcenter/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.50.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.49.0 (2025-06-25) ### Dependencies diff --git a/java-migrationcenter/README.md b/java-migrationcenter/README.md index 331118e897dc..6f2a6a1dacd7 100644 --- a/java-migrationcenter/README.md +++ b/java-migrationcenter/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-migrationcenter - 0.48.0 + 0.49.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-migrationcenter:0.48.0' +implementation 'com.google.cloud:google-cloud-migrationcenter:0.49.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-migrationcenter" % "0.48.0" +libraryDependencies += "com.google.cloud" % "google-cloud-migrationcenter" % "0.49.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-migrationcenter.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-migrationcenter/0.48.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-migrationcenter/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-migrationcenter/google-cloud-migrationcenter-bom/pom.xml b/java-migrationcenter/google-cloud-migrationcenter-bom/pom.xml index 1567846b76f9..b71c88062124 100644 --- a/java-migrationcenter/google-cloud-migrationcenter-bom/pom.xml +++ b/java-migrationcenter/google-cloud-migrationcenter-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-migrationcenter-bom - 0.49.0 + 0.50.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-migrationcenter - 0.49.0 + 0.50.0 com.google.api.grpc grpc-google-cloud-migrationcenter-v1 - 0.49.0 + 0.50.0 com.google.api.grpc proto-google-cloud-migrationcenter-v1 - 0.49.0 + 0.50.0 diff --git a/java-migrationcenter/google-cloud-migrationcenter/pom.xml b/java-migrationcenter/google-cloud-migrationcenter/pom.xml index be6198177b51..f8342a5a0fc1 100644 --- a/java-migrationcenter/google-cloud-migrationcenter/pom.xml +++ b/java-migrationcenter/google-cloud-migrationcenter/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-migrationcenter - 0.49.0 + 0.50.0 jar Google Migration Center API Migration Center API 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 com.google.cloud google-cloud-migrationcenter-parent - 0.49.0 + 0.50.0 google-cloud-migrationcenter diff --git a/java-migrationcenter/grpc-google-cloud-migrationcenter-v1/pom.xml b/java-migrationcenter/grpc-google-cloud-migrationcenter-v1/pom.xml index f862f950f58f..df90cbbdf66b 100644 --- a/java-migrationcenter/grpc-google-cloud-migrationcenter-v1/pom.xml +++ b/java-migrationcenter/grpc-google-cloud-migrationcenter-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-migrationcenter-v1 - 0.49.0 + 0.50.0 grpc-google-cloud-migrationcenter-v1 GRPC library for google-cloud-migrationcenter com.google.cloud google-cloud-migrationcenter-parent - 0.49.0 + 0.50.0 diff --git a/java-migrationcenter/pom.xml b/java-migrationcenter/pom.xml index e37a8f47a967..4782e2f6cbbf 100644 --- a/java-migrationcenter/pom.xml +++ b/java-migrationcenter/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-migrationcenter-parent pom - 0.49.0 + 0.50.0 Google Migration Center API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-migrationcenter - 0.49.0 + 0.50.0 com.google.api.grpc grpc-google-cloud-migrationcenter-v1 - 0.49.0 + 0.50.0 com.google.api.grpc proto-google-cloud-migrationcenter-v1 - 0.49.0 + 0.50.0 diff --git a/java-migrationcenter/proto-google-cloud-migrationcenter-v1/pom.xml b/java-migrationcenter/proto-google-cloud-migrationcenter-v1/pom.xml index 31e4b94d2eef..a0162434e5c5 100644 --- a/java-migrationcenter/proto-google-cloud-migrationcenter-v1/pom.xml +++ b/java-migrationcenter/proto-google-cloud-migrationcenter-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-migrationcenter-v1 - 0.49.0 + 0.50.0 proto-google-cloud-migrationcenter-v1 Proto library for google-cloud-migrationcenter com.google.cloud google-cloud-migrationcenter-parent - 0.49.0 + 0.50.0 diff --git a/java-modelarmor/CHANGELOG.md b/java-modelarmor/CHANGELOG.md index 90561748acb0..4913258a1807 100644 --- a/java-modelarmor/CHANGELOG.md +++ b/java-modelarmor/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## 0.9.0 (2025-07-11) + +### Features + +* add client libraries for v1beta API ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) +* Add MultiLingual Support for Sanitize APIs ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.8.0 (2025-06-25) ### Dependencies diff --git a/java-modelarmor/README.md b/java-modelarmor/README.md index 1f8b531849b8..0cb60f73d91a 100644 --- a/java-modelarmor/README.md +++ b/java-modelarmor/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-modelarmor - 0.7.0 + 0.8.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-modelarmor:0.7.0' +implementation 'com.google.cloud:google-cloud-modelarmor:0.8.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-modelarmor" % "0.7.0" +libraryDependencies += "com.google.cloud" % "google-cloud-modelarmor" % "0.8.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-modelarmor.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-modelarmor/0.7.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-modelarmor/0.8.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/google-cloud-modelarmor-bom/pom.xml b/java-modelarmor/google-cloud-modelarmor-bom/pom.xml index bdef1e590e5c..f4f64c1214d7 100644 --- a/java-modelarmor/google-cloud-modelarmor-bom/pom.xml +++ b/java-modelarmor/google-cloud-modelarmor-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-modelarmor-bom - 0.8.0 + 0.9.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -26,27 +26,27 @@ com.google.cloud google-cloud-modelarmor - 0.8.0 + 0.9.0 com.google.api.grpc grpc-google-cloud-modelarmor-v1 - 0.8.0 + 0.9.0 com.google.api.grpc grpc-google-cloud-modelarmor-v1beta - 0.8.0 + 0.9.0 com.google.api.grpc proto-google-cloud-modelarmor-v1 - 0.8.0 + 0.9.0 com.google.api.grpc proto-google-cloud-modelarmor-v1beta - 0.8.0 + 0.9.0 diff --git a/java-modelarmor/google-cloud-modelarmor/pom.xml b/java-modelarmor/google-cloud-modelarmor/pom.xml index da6f09d67add..305d100ca646 100644 --- a/java-modelarmor/google-cloud-modelarmor/pom.xml +++ b/java-modelarmor/google-cloud-modelarmor/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-modelarmor - 0.8.0 + 0.9.0 jar Google Model Armor API Model Armor API 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. com.google.cloud google-cloud-modelarmor-parent - 0.8.0 + 0.9.0 google-cloud-modelarmor diff --git a/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1/ModelArmorClient.java b/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1/ModelArmorClient.java index 1f17347100b3..b93151a5e023 100644 --- a/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1/ModelArmorClient.java +++ b/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1/ModelArmorClient.java @@ -1187,6 +1187,8 @@ public final UnaryCallable updateFloorS * SanitizeUserPromptRequest.newBuilder() * .setName(TemplateName.of("[PROJECT]", "[LOCATION]", "[TEMPLATE]").toString()) * .setUserPromptData(DataItem.newBuilder().build()) + * .setMultiLanguageDetectionMetadata( + * MultiLanguageDetectionMetadata.newBuilder().build()) * .build(); * SanitizeUserPromptResponse response = modelArmorClient.sanitizeUserPrompt(request); * } @@ -1216,6 +1218,8 @@ public final SanitizeUserPromptResponse sanitizeUserPrompt(SanitizeUserPromptReq * SanitizeUserPromptRequest.newBuilder() * .setName(TemplateName.of("[PROJECT]", "[LOCATION]", "[TEMPLATE]").toString()) * .setUserPromptData(DataItem.newBuilder().build()) + * .setMultiLanguageDetectionMetadata( + * MultiLanguageDetectionMetadata.newBuilder().build()) * .build(); * ApiFuture future = * modelArmorClient.sanitizeUserPromptCallable().futureCall(request); @@ -1247,6 +1251,8 @@ public final SanitizeUserPromptResponse sanitizeUserPrompt(SanitizeUserPromptReq * .setName(TemplateName.of("[PROJECT]", "[LOCATION]", "[TEMPLATE]").toString()) * .setModelResponseData(DataItem.newBuilder().build()) * .setUserPrompt("userPrompt1504308495") + * .setMultiLanguageDetectionMetadata( + * MultiLanguageDetectionMetadata.newBuilder().build()) * .build(); * SanitizeModelResponseResponse response = modelArmorClient.sanitizeModelResponse(request); * } @@ -1278,6 +1284,8 @@ public final SanitizeModelResponseResponse sanitizeModelResponse( * .setName(TemplateName.of("[PROJECT]", "[LOCATION]", "[TEMPLATE]").toString()) * .setModelResponseData(DataItem.newBuilder().build()) * .setUserPrompt("userPrompt1504308495") + * .setMultiLanguageDetectionMetadata( + * MultiLanguageDetectionMetadata.newBuilder().build()) * .build(); * ApiFuture future = * modelArmorClient.sanitizeModelResponseCallable().futureCall(request); diff --git a/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1beta/ModelArmorClient.java b/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1beta/ModelArmorClient.java index c219db1ce204..eb8984dbea55 100644 --- a/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1beta/ModelArmorClient.java +++ b/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1beta/ModelArmorClient.java @@ -1189,6 +1189,8 @@ public final UnaryCallable updateFloorS * SanitizeUserPromptRequest.newBuilder() * .setName(TemplateName.of("[PROJECT]", "[LOCATION]", "[TEMPLATE]").toString()) * .setUserPromptData(DataItem.newBuilder().build()) + * .setMultiLanguageDetectionMetadata( + * MultiLanguageDetectionMetadata.newBuilder().build()) * .build(); * SanitizeUserPromptResponse response = modelArmorClient.sanitizeUserPrompt(request); * } @@ -1218,6 +1220,8 @@ public final SanitizeUserPromptResponse sanitizeUserPrompt(SanitizeUserPromptReq * SanitizeUserPromptRequest.newBuilder() * .setName(TemplateName.of("[PROJECT]", "[LOCATION]", "[TEMPLATE]").toString()) * .setUserPromptData(DataItem.newBuilder().build()) + * .setMultiLanguageDetectionMetadata( + * MultiLanguageDetectionMetadata.newBuilder().build()) * .build(); * ApiFuture future = * modelArmorClient.sanitizeUserPromptCallable().futureCall(request); diff --git a/java-modelarmor/google-cloud-modelarmor/src/main/resources/META-INF/native-image/com.google.cloud.modelarmor.v1/reflect-config.json b/java-modelarmor/google-cloud-modelarmor/src/main/resources/META-INF/native-image/com.google.cloud.modelarmor.v1/reflect-config.json index 20ba1d147209..c469c0770f6a 100644 --- a/java-modelarmor/google-cloud-modelarmor/src/main/resources/META-INF/native-image/com.google.cloud.modelarmor.v1/reflect-config.json +++ b/java-modelarmor/google-cloud-modelarmor/src/main/resources/META-INF/native-image/com.google.cloud.modelarmor.v1/reflect-config.json @@ -881,6 +881,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.modelarmor.v1.PiAndJailbreakFilterResult", "queryAllDeclaredConstructors": true, @@ -1331,6 +1349,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.modelarmor.v1.Template$TemplateMetadata$MultiLanguageDetection", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.modelarmor.v1.Template$TemplateMetadata$MultiLanguageDetection$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.modelarmor.v1.UpdateFloorSettingRequest", "queryAllDeclaredConstructors": true, diff --git a/java-modelarmor/google-cloud-modelarmor/src/main/resources/META-INF/native-image/com.google.cloud.modelarmor.v1beta/reflect-config.json b/java-modelarmor/google-cloud-modelarmor/src/main/resources/META-INF/native-image/com.google.cloud.modelarmor.v1beta/reflect-config.json index 3750216b48d1..23b830531661 100644 --- a/java-modelarmor/google-cloud-modelarmor/src/main/resources/META-INF/native-image/com.google.cloud.modelarmor.v1beta/reflect-config.json +++ b/java-modelarmor/google-cloud-modelarmor/src/main/resources/META-INF/native-image/com.google.cloud.modelarmor.v1beta/reflect-config.json @@ -1349,6 +1349,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.modelarmor.v1beta.Template$TemplateMetadata$MultiLanguageDetection", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.modelarmor.v1beta.Template$TemplateMetadata$MultiLanguageDetection$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.modelarmor.v1beta.UpdateFloorSettingRequest", "queryAllDeclaredConstructors": true, diff --git a/java-modelarmor/google-cloud-modelarmor/src/test/java/com/google/cloud/modelarmor/v1/ModelArmorClientHttpJsonTest.java b/java-modelarmor/google-cloud-modelarmor/src/test/java/com/google/cloud/modelarmor/v1/ModelArmorClientHttpJsonTest.java index 173835d63dbe..417b11fcf9ed 100644 --- a/java-modelarmor/google-cloud-modelarmor/src/test/java/com/google/cloud/modelarmor/v1/ModelArmorClientHttpJsonTest.java +++ b/java-modelarmor/google-cloud-modelarmor/src/test/java/com/google/cloud/modelarmor/v1/ModelArmorClientHttpJsonTest.java @@ -707,6 +707,7 @@ public void sanitizeUserPromptTest() throws Exception { SanitizeUserPromptRequest.newBuilder() .setName(TemplateName.of("[PROJECT]", "[LOCATION]", "[TEMPLATE]").toString()) .setUserPromptData(DataItem.newBuilder().build()) + .setMultiLanguageDetectionMetadata(MultiLanguageDetectionMetadata.newBuilder().build()) .build(); SanitizeUserPromptResponse actualResponse = client.sanitizeUserPrompt(request); @@ -739,6 +740,8 @@ public void sanitizeUserPromptExceptionTest() throws Exception { SanitizeUserPromptRequest.newBuilder() .setName(TemplateName.of("[PROJECT]", "[LOCATION]", "[TEMPLATE]").toString()) .setUserPromptData(DataItem.newBuilder().build()) + .setMultiLanguageDetectionMetadata( + MultiLanguageDetectionMetadata.newBuilder().build()) .build(); client.sanitizeUserPrompt(request); Assert.fail("No exception raised"); @@ -760,6 +763,7 @@ public void sanitizeModelResponseTest() throws Exception { .setName(TemplateName.of("[PROJECT]", "[LOCATION]", "[TEMPLATE]").toString()) .setModelResponseData(DataItem.newBuilder().build()) .setUserPrompt("userPrompt1504308495") + .setMultiLanguageDetectionMetadata(MultiLanguageDetectionMetadata.newBuilder().build()) .build(); SanitizeModelResponseResponse actualResponse = client.sanitizeModelResponse(request); @@ -793,6 +797,8 @@ public void sanitizeModelResponseExceptionTest() throws Exception { .setName(TemplateName.of("[PROJECT]", "[LOCATION]", "[TEMPLATE]").toString()) .setModelResponseData(DataItem.newBuilder().build()) .setUserPrompt("userPrompt1504308495") + .setMultiLanguageDetectionMetadata( + MultiLanguageDetectionMetadata.newBuilder().build()) .build(); client.sanitizeModelResponse(request); Assert.fail("No exception raised"); diff --git a/java-modelarmor/google-cloud-modelarmor/src/test/java/com/google/cloud/modelarmor/v1/ModelArmorClientTest.java b/java-modelarmor/google-cloud-modelarmor/src/test/java/com/google/cloud/modelarmor/v1/ModelArmorClientTest.java index 613c95ab5203..2965b70b86bc 100644 --- a/java-modelarmor/google-cloud-modelarmor/src/test/java/com/google/cloud/modelarmor/v1/ModelArmorClientTest.java +++ b/java-modelarmor/google-cloud-modelarmor/src/test/java/com/google/cloud/modelarmor/v1/ModelArmorClientTest.java @@ -618,6 +618,7 @@ public void sanitizeUserPromptTest() throws Exception { SanitizeUserPromptRequest.newBuilder() .setName(TemplateName.of("[PROJECT]", "[LOCATION]", "[TEMPLATE]").toString()) .setUserPromptData(DataItem.newBuilder().build()) + .setMultiLanguageDetectionMetadata(MultiLanguageDetectionMetadata.newBuilder().build()) .build(); SanitizeUserPromptResponse actualResponse = client.sanitizeUserPrompt(request); @@ -629,6 +630,9 @@ public void sanitizeUserPromptTest() throws Exception { Assert.assertEquals(request.getName(), actualRequest.getName()); Assert.assertEquals(request.getUserPromptData(), actualRequest.getUserPromptData()); + Assert.assertEquals( + request.getMultiLanguageDetectionMetadata(), + actualRequest.getMultiLanguageDetectionMetadata()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -645,6 +649,8 @@ public void sanitizeUserPromptExceptionTest() throws Exception { SanitizeUserPromptRequest.newBuilder() .setName(TemplateName.of("[PROJECT]", "[LOCATION]", "[TEMPLATE]").toString()) .setUserPromptData(DataItem.newBuilder().build()) + .setMultiLanguageDetectionMetadata( + MultiLanguageDetectionMetadata.newBuilder().build()) .build(); client.sanitizeUserPrompt(request); Assert.fail("No exception raised"); @@ -666,6 +672,7 @@ public void sanitizeModelResponseTest() throws Exception { .setName(TemplateName.of("[PROJECT]", "[LOCATION]", "[TEMPLATE]").toString()) .setModelResponseData(DataItem.newBuilder().build()) .setUserPrompt("userPrompt1504308495") + .setMultiLanguageDetectionMetadata(MultiLanguageDetectionMetadata.newBuilder().build()) .build(); SanitizeModelResponseResponse actualResponse = client.sanitizeModelResponse(request); @@ -679,6 +686,9 @@ public void sanitizeModelResponseTest() throws Exception { Assert.assertEquals(request.getName(), actualRequest.getName()); Assert.assertEquals(request.getModelResponseData(), actualRequest.getModelResponseData()); Assert.assertEquals(request.getUserPrompt(), actualRequest.getUserPrompt()); + Assert.assertEquals( + request.getMultiLanguageDetectionMetadata(), + actualRequest.getMultiLanguageDetectionMetadata()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -696,6 +706,8 @@ public void sanitizeModelResponseExceptionTest() throws Exception { .setName(TemplateName.of("[PROJECT]", "[LOCATION]", "[TEMPLATE]").toString()) .setModelResponseData(DataItem.newBuilder().build()) .setUserPrompt("userPrompt1504308495") + .setMultiLanguageDetectionMetadata( + MultiLanguageDetectionMetadata.newBuilder().build()) .build(); client.sanitizeModelResponse(request); Assert.fail("No exception raised"); diff --git a/java-modelarmor/google-cloud-modelarmor/src/test/java/com/google/cloud/modelarmor/v1beta/ModelArmorClientHttpJsonTest.java b/java-modelarmor/google-cloud-modelarmor/src/test/java/com/google/cloud/modelarmor/v1beta/ModelArmorClientHttpJsonTest.java index 3be75a2b9951..e506c87e3eab 100644 --- a/java-modelarmor/google-cloud-modelarmor/src/test/java/com/google/cloud/modelarmor/v1beta/ModelArmorClientHttpJsonTest.java +++ b/java-modelarmor/google-cloud-modelarmor/src/test/java/com/google/cloud/modelarmor/v1beta/ModelArmorClientHttpJsonTest.java @@ -707,6 +707,7 @@ public void sanitizeUserPromptTest() throws Exception { SanitizeUserPromptRequest.newBuilder() .setName(TemplateName.of("[PROJECT]", "[LOCATION]", "[TEMPLATE]").toString()) .setUserPromptData(DataItem.newBuilder().build()) + .setMultiLanguageDetectionMetadata(MultiLanguageDetectionMetadata.newBuilder().build()) .build(); SanitizeUserPromptResponse actualResponse = client.sanitizeUserPrompt(request); @@ -739,6 +740,8 @@ public void sanitizeUserPromptExceptionTest() throws Exception { SanitizeUserPromptRequest.newBuilder() .setName(TemplateName.of("[PROJECT]", "[LOCATION]", "[TEMPLATE]").toString()) .setUserPromptData(DataItem.newBuilder().build()) + .setMultiLanguageDetectionMetadata( + MultiLanguageDetectionMetadata.newBuilder().build()) .build(); client.sanitizeUserPrompt(request); Assert.fail("No exception raised"); diff --git a/java-modelarmor/google-cloud-modelarmor/src/test/java/com/google/cloud/modelarmor/v1beta/ModelArmorClientTest.java b/java-modelarmor/google-cloud-modelarmor/src/test/java/com/google/cloud/modelarmor/v1beta/ModelArmorClientTest.java index 90ae017c81c5..9b1b8dc1f689 100644 --- a/java-modelarmor/google-cloud-modelarmor/src/test/java/com/google/cloud/modelarmor/v1beta/ModelArmorClientTest.java +++ b/java-modelarmor/google-cloud-modelarmor/src/test/java/com/google/cloud/modelarmor/v1beta/ModelArmorClientTest.java @@ -618,6 +618,7 @@ public void sanitizeUserPromptTest() throws Exception { SanitizeUserPromptRequest.newBuilder() .setName(TemplateName.of("[PROJECT]", "[LOCATION]", "[TEMPLATE]").toString()) .setUserPromptData(DataItem.newBuilder().build()) + .setMultiLanguageDetectionMetadata(MultiLanguageDetectionMetadata.newBuilder().build()) .build(); SanitizeUserPromptResponse actualResponse = client.sanitizeUserPrompt(request); @@ -629,6 +630,9 @@ public void sanitizeUserPromptTest() throws Exception { Assert.assertEquals(request.getName(), actualRequest.getName()); Assert.assertEquals(request.getUserPromptData(), actualRequest.getUserPromptData()); + Assert.assertEquals( + request.getMultiLanguageDetectionMetadata(), + actualRequest.getMultiLanguageDetectionMetadata()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -645,6 +649,8 @@ public void sanitizeUserPromptExceptionTest() throws Exception { SanitizeUserPromptRequest.newBuilder() .setName(TemplateName.of("[PROJECT]", "[LOCATION]", "[TEMPLATE]").toString()) .setUserPromptData(DataItem.newBuilder().build()) + .setMultiLanguageDetectionMetadata( + MultiLanguageDetectionMetadata.newBuilder().build()) .build(); client.sanitizeUserPrompt(request); Assert.fail("No exception raised"); diff --git a/java-modelarmor/grpc-google-cloud-modelarmor-v1/pom.xml b/java-modelarmor/grpc-google-cloud-modelarmor-v1/pom.xml index 153e8bd96841..5fe78b5ab7b8 100644 --- a/java-modelarmor/grpc-google-cloud-modelarmor-v1/pom.xml +++ b/java-modelarmor/grpc-google-cloud-modelarmor-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-modelarmor-v1 - 0.8.0 + 0.9.0 grpc-google-cloud-modelarmor-v1 GRPC library for google-cloud-modelarmor com.google.cloud google-cloud-modelarmor-parent - 0.8.0 + 0.9.0 diff --git a/java-modelarmor/grpc-google-cloud-modelarmor-v1beta/pom.xml b/java-modelarmor/grpc-google-cloud-modelarmor-v1beta/pom.xml index 94aac3185e26..0de50d933c64 100644 --- a/java-modelarmor/grpc-google-cloud-modelarmor-v1beta/pom.xml +++ b/java-modelarmor/grpc-google-cloud-modelarmor-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-modelarmor-v1beta - 0.8.0 + 0.9.0 grpc-google-cloud-modelarmor-v1beta GRPC library for google-cloud-modelarmor com.google.cloud google-cloud-modelarmor-parent - 0.8.0 + 0.9.0 diff --git a/java-modelarmor/pom.xml b/java-modelarmor/pom.xml index 2d21a889cb11..b07982639e70 100644 --- a/java-modelarmor/pom.xml +++ b/java-modelarmor/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-modelarmor-parent pom - 0.8.0 + 0.9.0 Google Model Armor API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-modelarmor - 0.8.0 + 0.9.0 com.google.api.grpc proto-google-cloud-modelarmor-v1beta - 0.8.0 + 0.9.0 com.google.api.grpc grpc-google-cloud-modelarmor-v1beta - 0.8.0 + 0.9.0 com.google.api.grpc grpc-google-cloud-modelarmor-v1 - 0.8.0 + 0.9.0 com.google.api.grpc proto-google-cloud-modelarmor-v1 - 0.8.0 + 0.9.0 diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/pom.xml b/java-modelarmor/proto-google-cloud-modelarmor-v1/pom.xml index 32da5fb78534..33d847f315e0 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1/pom.xml +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-modelarmor-v1 - 0.8.0 + 0.9.0 proto-google-cloud-modelarmor-v1 Proto library for google-cloud-modelarmor com.google.cloud google-cloud-modelarmor-parent - 0.8.0 + 0.9.0 diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/ByteDataItem.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/ByteDataItem.java index 498597ab3748..5a7cf617aad5 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/ByteDataItem.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/ByteDataItem.java @@ -135,6 +135,26 @@ public enum ByteItemType implements com.google.protobuf.ProtocolMessageEnum { * POWERPOINT_DOCUMENT = 5; */ POWERPOINT_DOCUMENT(5), + /** + * + * + *
+     * TXT
+     * 
+ * + * TXT = 6; + */ + TXT(6), + /** + * + * + *
+     * CSV
+     * 
+ * + * CSV = 7; + */ + CSV(7), UNRECOGNIZED(-1), ; @@ -204,6 +224,28 @@ public enum ByteItemType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int POWERPOINT_DOCUMENT_VALUE = 5; + /** + * + * + *
+     * TXT
+     * 
+ * + * TXT = 6; + */ + public static final int TXT_VALUE = 6; + + /** + * + * + *
+     * CSV
+     * 
+ * + * CSV = 7; + */ + public static final int CSV_VALUE = 7; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -240,6 +282,10 @@ public static ByteItemType forNumber(int value) { return EXCEL_DOCUMENT; case 5: return POWERPOINT_DOCUMENT; + case 6: + return TXT; + case 7: + return CSV; default: return null; } diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/MultiLanguageDetectionMetadata.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/MultiLanguageDetectionMetadata.java new file mode 100644 index 000000000000..e2fd7f56b434 --- /dev/null +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/MultiLanguageDetectionMetadata.java @@ -0,0 +1,764 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/modelarmor/v1/service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.modelarmor.v1; + +/** + * + * + *
+ * Message for Enabling Multi Language Detection.
+ * 
+ * + * Protobuf type {@code google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata} + */ +public final class MultiLanguageDetectionMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata) + MultiLanguageDetectionMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + // Use MultiLanguageDetectionMetadata.newBuilder() to construct. + private MultiLanguageDetectionMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MultiLanguageDetectionMetadata() { + sourceLanguage_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MultiLanguageDetectionMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_MultiLanguageDetectionMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_MultiLanguageDetectionMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata.class, + com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata.Builder.class); + } + + public static final int SOURCE_LANGUAGE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceLanguage_ = ""; + + /** + * + * + *
+   * Optional. Optional Source language of the user prompt.
+   *
+   * If multi-language detection is enabled but language is not set in that case
+   * we would automatically detect the source language.
+   * 
+ * + * string source_language = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sourceLanguage. + */ + @java.lang.Override + public java.lang.String getSourceLanguage() { + java.lang.Object ref = sourceLanguage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceLanguage_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Optional Source language of the user prompt.
+   *
+   * If multi-language detection is enabled but language is not set in that case
+   * we would automatically detect the source language.
+   * 
+ * + * string source_language = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sourceLanguage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceLanguageBytes() { + java.lang.Object ref = sourceLanguage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceLanguage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENABLE_MULTI_LANGUAGE_DETECTION_FIELD_NUMBER = 2; + private boolean enableMultiLanguageDetection_ = false; + + /** + * + * + *
+   * Optional. Enable detection of multi-language prompts and responses.
+   * 
+ * + * bool enable_multi_language_detection = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enableMultiLanguageDetection. + */ + @java.lang.Override + public boolean getEnableMultiLanguageDetection() { + return enableMultiLanguageDetection_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceLanguage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceLanguage_); + } + if (enableMultiLanguageDetection_ != false) { + output.writeBool(2, enableMultiLanguageDetection_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceLanguage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sourceLanguage_); + } + if (enableMultiLanguageDetection_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableMultiLanguageDetection_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata)) { + return super.equals(obj); + } + com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata other = + (com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata) obj; + + if (!getSourceLanguage().equals(other.getSourceLanguage())) return false; + if (getEnableMultiLanguageDetection() != other.getEnableMultiLanguageDetection()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SOURCE_LANGUAGE_FIELD_NUMBER; + hash = (53 * hash) + getSourceLanguage().hashCode(); + hash = (37 * hash) + ENABLE_MULTI_LANGUAGE_DETECTION_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableMultiLanguageDetection()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for Enabling Multi Language Detection.
+   * 
+ * + * Protobuf type {@code google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata) + com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_MultiLanguageDetectionMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_MultiLanguageDetectionMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata.class, + com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata.Builder.class); + } + + // Construct using com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sourceLanguage_ = ""; + enableMultiLanguageDetection_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_MultiLanguageDetectionMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata + getDefaultInstanceForType() { + return com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata build() { + com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata buildPartial() { + com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata result = + new com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sourceLanguage_ = sourceLanguage_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.enableMultiLanguageDetection_ = enableMultiLanguageDetection_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata) { + return mergeFrom((com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata other) { + if (other + == com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata.getDefaultInstance()) + return this; + if (!other.getSourceLanguage().isEmpty()) { + sourceLanguage_ = other.sourceLanguage_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getEnableMultiLanguageDetection() != false) { + setEnableMultiLanguageDetection(other.getEnableMultiLanguageDetection()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + sourceLanguage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + enableMultiLanguageDetection_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object sourceLanguage_ = ""; + + /** + * + * + *
+     * Optional. Optional Source language of the user prompt.
+     *
+     * If multi-language detection is enabled but language is not set in that case
+     * we would automatically detect the source language.
+     * 
+ * + * string source_language = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sourceLanguage. + */ + public java.lang.String getSourceLanguage() { + java.lang.Object ref = sourceLanguage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceLanguage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Optional Source language of the user prompt.
+     *
+     * If multi-language detection is enabled but language is not set in that case
+     * we would automatically detect the source language.
+     * 
+ * + * string source_language = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sourceLanguage. + */ + public com.google.protobuf.ByteString getSourceLanguageBytes() { + java.lang.Object ref = sourceLanguage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceLanguage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Optional Source language of the user prompt.
+     *
+     * If multi-language detection is enabled but language is not set in that case
+     * we would automatically detect the source language.
+     * 
+ * + * string source_language = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The sourceLanguage to set. + * @return This builder for chaining. + */ + public Builder setSourceLanguage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceLanguage_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Optional Source language of the user prompt.
+     *
+     * If multi-language detection is enabled but language is not set in that case
+     * we would automatically detect the source language.
+     * 
+ * + * string source_language = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSourceLanguage() { + sourceLanguage_ = getDefaultInstance().getSourceLanguage(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Optional Source language of the user prompt.
+     *
+     * If multi-language detection is enabled but language is not set in that case
+     * we would automatically detect the source language.
+     * 
+ * + * string source_language = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for sourceLanguage to set. + * @return This builder for chaining. + */ + public Builder setSourceLanguageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceLanguage_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean enableMultiLanguageDetection_; + + /** + * + * + *
+     * Optional. Enable detection of multi-language prompts and responses.
+     * 
+ * + * bool enable_multi_language_detection = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enableMultiLanguageDetection. + */ + @java.lang.Override + public boolean getEnableMultiLanguageDetection() { + return enableMultiLanguageDetection_; + } + + /** + * + * + *
+     * Optional. Enable detection of multi-language prompts and responses.
+     * 
+ * + * bool enable_multi_language_detection = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enableMultiLanguageDetection to set. + * @return This builder for chaining. + */ + public Builder setEnableMultiLanguageDetection(boolean value) { + + enableMultiLanguageDetection_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Enable detection of multi-language prompts and responses.
+     * 
+ * + * bool enable_multi_language_detection = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearEnableMultiLanguageDetection() { + bitField0_ = (bitField0_ & ~0x00000002); + enableMultiLanguageDetection_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata) + private static final com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata(); + } + + public static com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MultiLanguageDetectionMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/MultiLanguageDetectionMetadataOrBuilder.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/MultiLanguageDetectionMetadataOrBuilder.java new file mode 100644 index 000000000000..2b216f3e3b73 --- /dev/null +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/MultiLanguageDetectionMetadataOrBuilder.java @@ -0,0 +1,72 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/modelarmor/v1/service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.modelarmor.v1; + +public interface MultiLanguageDetectionMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Optional Source language of the user prompt.
+   *
+   * If multi-language detection is enabled but language is not set in that case
+   * we would automatically detect the source language.
+   * 
+ * + * string source_language = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sourceLanguage. + */ + java.lang.String getSourceLanguage(); + + /** + * + * + *
+   * Optional. Optional Source language of the user prompt.
+   *
+   * If multi-language detection is enabled but language is not set in that case
+   * we would automatically detect the source language.
+   * 
+ * + * string source_language = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sourceLanguage. + */ + com.google.protobuf.ByteString getSourceLanguageBytes(); + + /** + * + * + *
+   * Optional. Enable detection of multi-language prompts and responses.
+   * 
+ * + * bool enable_multi_language_detection = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enableMultiLanguageDetection. + */ + boolean getEnableMultiLanguageDetection(); +} diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SanitizeModelResponseRequest.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SanitizeModelResponseRequest.java index 641b0c8aa657..d246d18701a2 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SanitizeModelResponseRequest.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SanitizeModelResponseRequest.java @@ -237,6 +237,68 @@ public com.google.protobuf.ByteString getUserPromptBytes() { } } + public static final int MULTI_LANGUAGE_DETECTION_METADATA_FIELD_NUMBER = 7; + private com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata + multiLanguageDetectionMetadata_; + + /** + * + * + *
+   * Optional. Metadata related for multi language detection.
+   * 
+ * + * + * .google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata multi_language_detection_metadata = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the multiLanguageDetectionMetadata field is set. + */ + @java.lang.Override + public boolean hasMultiLanguageDetectionMetadata() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. Metadata related for multi language detection.
+   * 
+ * + * + * .google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata multi_language_detection_metadata = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The multiLanguageDetectionMetadata. + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata + getMultiLanguageDetectionMetadata() { + return multiLanguageDetectionMetadata_ == null + ? com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata.getDefaultInstance() + : multiLanguageDetectionMetadata_; + } + + /** + * + * + *
+   * Optional. Metadata related for multi language detection.
+   * 
+ * + * + * .google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata multi_language_detection_metadata = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadataOrBuilder + getMultiLanguageDetectionMetadataOrBuilder() { + return multiLanguageDetectionMetadata_ == null + ? com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata.getDefaultInstance() + : multiLanguageDetectionMetadata_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -260,6 +322,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userPrompt_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, userPrompt_); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getMultiLanguageDetectionMetadata()); + } getUnknownFields().writeTo(output); } @@ -278,6 +343,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userPrompt_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, userPrompt_); } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, getMultiLanguageDetectionMetadata()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -300,6 +370,12 @@ public boolean equals(final java.lang.Object obj) { if (!getModelResponseData().equals(other.getModelResponseData())) return false; } if (!getUserPrompt().equals(other.getUserPrompt())) return false; + if (hasMultiLanguageDetectionMetadata() != other.hasMultiLanguageDetectionMetadata()) + return false; + if (hasMultiLanguageDetectionMetadata()) { + if (!getMultiLanguageDetectionMetadata().equals(other.getMultiLanguageDetectionMetadata())) + return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -319,6 +395,10 @@ public int hashCode() { } hash = (37 * hash) + USER_PROMPT_FIELD_NUMBER; hash = (53 * hash) + getUserPrompt().hashCode(); + if (hasMultiLanguageDetectionMetadata()) { + hash = (37 * hash) + MULTI_LANGUAGE_DETECTION_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMultiLanguageDetectionMetadata().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -462,6 +542,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getModelResponseDataFieldBuilder(); + getMultiLanguageDetectionMetadataFieldBuilder(); } } @@ -476,6 +557,11 @@ public Builder clear() { modelResponseDataBuilder_ = null; } userPrompt_ = ""; + multiLanguageDetectionMetadata_ = null; + if (multiLanguageDetectionMetadataBuilder_ != null) { + multiLanguageDetectionMetadataBuilder_.dispose(); + multiLanguageDetectionMetadataBuilder_ = null; + } return this; } @@ -526,6 +612,13 @@ private void buildPartial0(com.google.cloud.modelarmor.v1.SanitizeModelResponseR if (((from_bitField0_ & 0x00000004) != 0)) { result.userPrompt_ = userPrompt_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.multiLanguageDetectionMetadata_ = + multiLanguageDetectionMetadataBuilder_ == null + ? multiLanguageDetectionMetadata_ + : multiLanguageDetectionMetadataBuilder_.build(); + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -588,6 +681,9 @@ public Builder mergeFrom(com.google.cloud.modelarmor.v1.SanitizeModelResponseReq bitField0_ |= 0x00000004; onChanged(); } + if (other.hasMultiLanguageDetectionMetadata()) { + mergeMultiLanguageDetectionMetadata(other.getMultiLanguageDetectionMetadata()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -633,6 +729,14 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 34 + case 58: + { + input.readMessage( + getMultiLanguageDetectionMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1102,6 +1206,227 @@ public Builder setUserPromptBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata + multiLanguageDetectionMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata, + com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata.Builder, + com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadataOrBuilder> + multiLanguageDetectionMetadataBuilder_; + + /** + * + * + *
+     * Optional. Metadata related for multi language detection.
+     * 
+ * + * + * .google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata multi_language_detection_metadata = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the multiLanguageDetectionMetadata field is set. + */ + public boolean hasMultiLanguageDetectionMetadata() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Optional. Metadata related for multi language detection.
+     * 
+ * + * + * .google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata multi_language_detection_metadata = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The multiLanguageDetectionMetadata. + */ + public com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata + getMultiLanguageDetectionMetadata() { + if (multiLanguageDetectionMetadataBuilder_ == null) { + return multiLanguageDetectionMetadata_ == null + ? com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata.getDefaultInstance() + : multiLanguageDetectionMetadata_; + } else { + return multiLanguageDetectionMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Metadata related for multi language detection.
+     * 
+ * + * + * .google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata multi_language_detection_metadata = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMultiLanguageDetectionMetadata( + com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata value) { + if (multiLanguageDetectionMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + multiLanguageDetectionMetadata_ = value; + } else { + multiLanguageDetectionMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Metadata related for multi language detection.
+     * 
+ * + * + * .google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata multi_language_detection_metadata = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMultiLanguageDetectionMetadata( + com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata.Builder builderForValue) { + if (multiLanguageDetectionMetadataBuilder_ == null) { + multiLanguageDetectionMetadata_ = builderForValue.build(); + } else { + multiLanguageDetectionMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Metadata related for multi language detection.
+     * 
+ * + * + * .google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata multi_language_detection_metadata = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMultiLanguageDetectionMetadata( + com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata value) { + if (multiLanguageDetectionMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && multiLanguageDetectionMetadata_ != null + && multiLanguageDetectionMetadata_ + != com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata + .getDefaultInstance()) { + getMultiLanguageDetectionMetadataBuilder().mergeFrom(value); + } else { + multiLanguageDetectionMetadata_ = value; + } + } else { + multiLanguageDetectionMetadataBuilder_.mergeFrom(value); + } + if (multiLanguageDetectionMetadata_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Metadata related for multi language detection.
+     * 
+ * + * + * .google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata multi_language_detection_metadata = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMultiLanguageDetectionMetadata() { + bitField0_ = (bitField0_ & ~0x00000008); + multiLanguageDetectionMetadata_ = null; + if (multiLanguageDetectionMetadataBuilder_ != null) { + multiLanguageDetectionMetadataBuilder_.dispose(); + multiLanguageDetectionMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Metadata related for multi language detection.
+     * 
+ * + * + * .google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata multi_language_detection_metadata = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata.Builder + getMultiLanguageDetectionMetadataBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getMultiLanguageDetectionMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Metadata related for multi language detection.
+     * 
+ * + * + * .google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata multi_language_detection_metadata = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadataOrBuilder + getMultiLanguageDetectionMetadataOrBuilder() { + if (multiLanguageDetectionMetadataBuilder_ != null) { + return multiLanguageDetectionMetadataBuilder_.getMessageOrBuilder(); + } else { + return multiLanguageDetectionMetadata_ == null + ? com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata.getDefaultInstance() + : multiLanguageDetectionMetadata_; + } + } + + /** + * + * + *
+     * Optional. Metadata related for multi language detection.
+     * 
+ * + * + * .google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata multi_language_detection_metadata = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata, + com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata.Builder, + com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadataOrBuilder> + getMultiLanguageDetectionMetadataFieldBuilder() { + if (multiLanguageDetectionMetadataBuilder_ == null) { + multiLanguageDetectionMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata, + com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata.Builder, + com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadataOrBuilder>( + getMultiLanguageDetectionMetadata(), getParentForChildren(), isClean()); + multiLanguageDetectionMetadata_ = null; + } + return multiLanguageDetectionMetadataBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SanitizeModelResponseRequestOrBuilder.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SanitizeModelResponseRequestOrBuilder.java index 15d950f12dfb..715cf4bd08f7 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SanitizeModelResponseRequestOrBuilder.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SanitizeModelResponseRequestOrBuilder.java @@ -124,4 +124,48 @@ public interface SanitizeModelResponseRequestOrBuilder * @return The bytes for userPrompt. */ com.google.protobuf.ByteString getUserPromptBytes(); + + /** + * + * + *
+   * Optional. Metadata related for multi language detection.
+   * 
+ * + * + * .google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata multi_language_detection_metadata = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the multiLanguageDetectionMetadata field is set. + */ + boolean hasMultiLanguageDetectionMetadata(); + + /** + * + * + *
+   * Optional. Metadata related for multi language detection.
+   * 
+ * + * + * .google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata multi_language_detection_metadata = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The multiLanguageDetectionMetadata. + */ + com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata getMultiLanguageDetectionMetadata(); + + /** + * + * + *
+   * Optional. Metadata related for multi language detection.
+   * 
+ * + * + * .google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata multi_language_detection_metadata = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadataOrBuilder + getMultiLanguageDetectionMetadataOrBuilder(); } diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SanitizeUserPromptRequest.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SanitizeUserPromptRequest.java index 918cb0d307a3..69438f375575 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SanitizeUserPromptRequest.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SanitizeUserPromptRequest.java @@ -183,6 +183,68 @@ public com.google.cloud.modelarmor.v1.DataItemOrBuilder getUserPromptDataOrBuild : userPromptData_; } + public static final int MULTI_LANGUAGE_DETECTION_METADATA_FIELD_NUMBER = 6; + private com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata + multiLanguageDetectionMetadata_; + + /** + * + * + *
+   * Optional. Metadata related to Multi Language Detection.
+   * 
+ * + * + * .google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata multi_language_detection_metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the multiLanguageDetectionMetadata field is set. + */ + @java.lang.Override + public boolean hasMultiLanguageDetectionMetadata() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. Metadata related to Multi Language Detection.
+   * 
+ * + * + * .google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata multi_language_detection_metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The multiLanguageDetectionMetadata. + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata + getMultiLanguageDetectionMetadata() { + return multiLanguageDetectionMetadata_ == null + ? com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata.getDefaultInstance() + : multiLanguageDetectionMetadata_; + } + + /** + * + * + *
+   * Optional. Metadata related to Multi Language Detection.
+   * 
+ * + * + * .google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata multi_language_detection_metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadataOrBuilder + getMultiLanguageDetectionMetadataOrBuilder() { + return multiLanguageDetectionMetadata_ == null + ? com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata.getDefaultInstance() + : multiLanguageDetectionMetadata_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -203,6 +265,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getUserPromptData()); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getMultiLanguageDetectionMetadata()); + } getUnknownFields().writeTo(output); } @@ -218,6 +283,11 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUserPromptData()); } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, getMultiLanguageDetectionMetadata()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -239,6 +309,12 @@ public boolean equals(final java.lang.Object obj) { if (hasUserPromptData()) { if (!getUserPromptData().equals(other.getUserPromptData())) return false; } + if (hasMultiLanguageDetectionMetadata() != other.hasMultiLanguageDetectionMetadata()) + return false; + if (hasMultiLanguageDetectionMetadata()) { + if (!getMultiLanguageDetectionMetadata().equals(other.getMultiLanguageDetectionMetadata())) + return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -256,6 +332,10 @@ public int hashCode() { hash = (37 * hash) + USER_PROMPT_DATA_FIELD_NUMBER; hash = (53 * hash) + getUserPromptData().hashCode(); } + if (hasMultiLanguageDetectionMetadata()) { + hash = (37 * hash) + MULTI_LANGUAGE_DETECTION_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMultiLanguageDetectionMetadata().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -399,6 +479,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getUserPromptDataFieldBuilder(); + getMultiLanguageDetectionMetadataFieldBuilder(); } } @@ -412,6 +493,11 @@ public Builder clear() { userPromptDataBuilder_.dispose(); userPromptDataBuilder_ = null; } + multiLanguageDetectionMetadata_ = null; + if (multiLanguageDetectionMetadataBuilder_ != null) { + multiLanguageDetectionMetadataBuilder_.dispose(); + multiLanguageDetectionMetadataBuilder_ = null; + } return this; } @@ -457,6 +543,13 @@ private void buildPartial0(com.google.cloud.modelarmor.v1.SanitizeUserPromptRequ userPromptDataBuilder_ == null ? userPromptData_ : userPromptDataBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.multiLanguageDetectionMetadata_ = + multiLanguageDetectionMetadataBuilder_ == null + ? multiLanguageDetectionMetadata_ + : multiLanguageDetectionMetadataBuilder_.build(); + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -514,6 +607,9 @@ public Builder mergeFrom(com.google.cloud.modelarmor.v1.SanitizeUserPromptReques if (other.hasUserPromptData()) { mergeUserPromptData(other.getUserPromptData()); } + if (other.hasMultiLanguageDetectionMetadata()) { + mergeMultiLanguageDetectionMetadata(other.getMultiLanguageDetectionMetadata()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -552,6 +648,14 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 50: + { + input.readMessage( + getMultiLanguageDetectionMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -910,6 +1014,227 @@ public com.google.cloud.modelarmor.v1.DataItemOrBuilder getUserPromptDataOrBuild return userPromptDataBuilder_; } + private com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata + multiLanguageDetectionMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata, + com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata.Builder, + com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadataOrBuilder> + multiLanguageDetectionMetadataBuilder_; + + /** + * + * + *
+     * Optional. Metadata related to Multi Language Detection.
+     * 
+ * + * + * .google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata multi_language_detection_metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the multiLanguageDetectionMetadata field is set. + */ + public boolean hasMultiLanguageDetectionMetadata() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Optional. Metadata related to Multi Language Detection.
+     * 
+ * + * + * .google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata multi_language_detection_metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The multiLanguageDetectionMetadata. + */ + public com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata + getMultiLanguageDetectionMetadata() { + if (multiLanguageDetectionMetadataBuilder_ == null) { + return multiLanguageDetectionMetadata_ == null + ? com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata.getDefaultInstance() + : multiLanguageDetectionMetadata_; + } else { + return multiLanguageDetectionMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Metadata related to Multi Language Detection.
+     * 
+ * + * + * .google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata multi_language_detection_metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMultiLanguageDetectionMetadata( + com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata value) { + if (multiLanguageDetectionMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + multiLanguageDetectionMetadata_ = value; + } else { + multiLanguageDetectionMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Metadata related to Multi Language Detection.
+     * 
+ * + * + * .google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata multi_language_detection_metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMultiLanguageDetectionMetadata( + com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata.Builder builderForValue) { + if (multiLanguageDetectionMetadataBuilder_ == null) { + multiLanguageDetectionMetadata_ = builderForValue.build(); + } else { + multiLanguageDetectionMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Metadata related to Multi Language Detection.
+     * 
+ * + * + * .google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata multi_language_detection_metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMultiLanguageDetectionMetadata( + com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata value) { + if (multiLanguageDetectionMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && multiLanguageDetectionMetadata_ != null + && multiLanguageDetectionMetadata_ + != com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata + .getDefaultInstance()) { + getMultiLanguageDetectionMetadataBuilder().mergeFrom(value); + } else { + multiLanguageDetectionMetadata_ = value; + } + } else { + multiLanguageDetectionMetadataBuilder_.mergeFrom(value); + } + if (multiLanguageDetectionMetadata_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Metadata related to Multi Language Detection.
+     * 
+ * + * + * .google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata multi_language_detection_metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMultiLanguageDetectionMetadata() { + bitField0_ = (bitField0_ & ~0x00000004); + multiLanguageDetectionMetadata_ = null; + if (multiLanguageDetectionMetadataBuilder_ != null) { + multiLanguageDetectionMetadataBuilder_.dispose(); + multiLanguageDetectionMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Metadata related to Multi Language Detection.
+     * 
+ * + * + * .google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata multi_language_detection_metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata.Builder + getMultiLanguageDetectionMetadataBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getMultiLanguageDetectionMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Metadata related to Multi Language Detection.
+     * 
+ * + * + * .google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata multi_language_detection_metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadataOrBuilder + getMultiLanguageDetectionMetadataOrBuilder() { + if (multiLanguageDetectionMetadataBuilder_ != null) { + return multiLanguageDetectionMetadataBuilder_.getMessageOrBuilder(); + } else { + return multiLanguageDetectionMetadata_ == null + ? com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata.getDefaultInstance() + : multiLanguageDetectionMetadata_; + } + } + + /** + * + * + *
+     * Optional. Metadata related to Multi Language Detection.
+     * 
+ * + * + * .google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata multi_language_detection_metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata, + com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata.Builder, + com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadataOrBuilder> + getMultiLanguageDetectionMetadataFieldBuilder() { + if (multiLanguageDetectionMetadataBuilder_ == null) { + multiLanguageDetectionMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata, + com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata.Builder, + com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadataOrBuilder>( + getMultiLanguageDetectionMetadata(), getParentForChildren(), isClean()); + multiLanguageDetectionMetadata_ = null; + } + return multiLanguageDetectionMetadataBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SanitizeUserPromptRequestOrBuilder.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SanitizeUserPromptRequestOrBuilder.java index 295fedb23a6a..deb62b8d0eca 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SanitizeUserPromptRequestOrBuilder.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/SanitizeUserPromptRequestOrBuilder.java @@ -98,4 +98,48 @@ public interface SanitizeUserPromptRequestOrBuilder * */ com.google.cloud.modelarmor.v1.DataItemOrBuilder getUserPromptDataOrBuilder(); + + /** + * + * + *
+   * Optional. Metadata related to Multi Language Detection.
+   * 
+ * + * + * .google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata multi_language_detection_metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the multiLanguageDetectionMetadata field is set. + */ + boolean hasMultiLanguageDetectionMetadata(); + + /** + * + * + *
+   * Optional. Metadata related to Multi Language Detection.
+   * 
+ * + * + * .google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata multi_language_detection_metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The multiLanguageDetectionMetadata. + */ + com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata getMultiLanguageDetectionMetadata(); + + /** + * + * + *
+   * Optional. Metadata related to Multi Language Detection.
+   * 
+ * + * + * .google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata multi_language_detection_metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadataOrBuilder + getMultiLanguageDetectionMetadataOrBuilder(); } diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/Template.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/Template.java index 84a149a0786b..04a0d4091d96 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/Template.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/Template.java @@ -216,6 +216,51 @@ public interface TemplateMetadataOrBuilder * @return The logSanitizeOperations. */ boolean getLogSanitizeOperations(); + + /** + * + * + *
+     * Optional. Metadata for multi language detection.
+     * 
+ * + * + * .google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection multi_language_detection = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the multiLanguageDetection field is set. + */ + boolean hasMultiLanguageDetection(); + + /** + * + * + *
+     * Optional. Metadata for multi language detection.
+     * 
+ * + * + * .google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection multi_language_detection = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The multiLanguageDetection. + */ + com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection + getMultiLanguageDetection(); + + /** + * + * + *
+     * Optional. Metadata for multi language detection.
+     * 
+ * + * + * .google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection multi_language_detection = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetectionOrBuilder + getMultiLanguageDetectionOrBuilder(); } /** @@ -264,6 +309,601 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.modelarmor.v1.Template.TemplateMetadata.Builder.class); } + public interface MultiLanguageDetectionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Required. If true, multi language detection will be enabled.
+       * 
+ * + * bool enable_multi_language_detection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enableMultiLanguageDetection. + */ + boolean getEnableMultiLanguageDetection(); + } + + /** + * + * + *
+     * Metadata to enable multi language detection via template.
+     * 
+ * + * Protobuf type {@code + * google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection} + */ + public static final class MultiLanguageDetection extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection) + MultiLanguageDetectionOrBuilder { + private static final long serialVersionUID = 0L; + + // Use MultiLanguageDetection.newBuilder() to construct. + private MultiLanguageDetection(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MultiLanguageDetection() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MultiLanguageDetection(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_Template_TemplateMetadata_MultiLanguageDetection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_Template_TemplateMetadata_MultiLanguageDetection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection + .class, + com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection + .Builder.class); + } + + public static final int ENABLE_MULTI_LANGUAGE_DETECTION_FIELD_NUMBER = 1; + private boolean enableMultiLanguageDetection_ = false; + + /** + * + * + *
+       * Required. If true, multi language detection will be enabled.
+       * 
+ * + * bool enable_multi_language_detection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enableMultiLanguageDetection. + */ + @java.lang.Override + public boolean getEnableMultiLanguageDetection() { + return enableMultiLanguageDetection_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enableMultiLanguageDetection_ != false) { + output.writeBool(1, enableMultiLanguageDetection_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enableMultiLanguageDetection_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 1, enableMultiLanguageDetection_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection)) { + return super.equals(obj); + } + com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection other = + (com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection) obj; + + if (getEnableMultiLanguageDetection() != other.getEnableMultiLanguageDetection()) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLE_MULTI_LANGUAGE_DETECTION_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getEnableMultiLanguageDetection()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+       * Metadata to enable multi language detection via template.
+       * 
+ * + * Protobuf type {@code + * google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection) + com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetectionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_Template_TemplateMetadata_MultiLanguageDetection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_Template_TemplateMetadata_MultiLanguageDetection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection + .class, + com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection + .Builder.class); + } + + // Construct using + // com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enableMultiLanguageDetection_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_Template_TemplateMetadata_MultiLanguageDetection_descriptor; + } + + @java.lang.Override + public com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection + getDefaultInstanceForType() { + return com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection + build() { + com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection + buildPartial() { + com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection result = + new com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enableMultiLanguageDetection_ = enableMultiLanguageDetection_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection) { + return mergeFrom( + (com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection other) { + if (other + == com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection + .getDefaultInstance()) return this; + if (other.getEnableMultiLanguageDetection() != false) { + setEnableMultiLanguageDetection(other.getEnableMultiLanguageDetection()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + enableMultiLanguageDetection_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean enableMultiLanguageDetection_; + + /** + * + * + *
+         * Required. If true, multi language detection will be enabled.
+         * 
+ * + * bool enable_multi_language_detection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enableMultiLanguageDetection. + */ + @java.lang.Override + public boolean getEnableMultiLanguageDetection() { + return enableMultiLanguageDetection_; + } + + /** + * + * + *
+         * Required. If true, multi language detection will be enabled.
+         * 
+ * + * bool enable_multi_language_detection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enableMultiLanguageDetection to set. + * @return This builder for chaining. + */ + public Builder setEnableMultiLanguageDetection(boolean value) { + + enableMultiLanguageDetection_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. If true, multi language detection will be enabled.
+         * 
+ * + * bool enable_multi_language_detection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearEnableMultiLanguageDetection() { + bitField0_ = (bitField0_ & ~0x00000001); + enableMultiLanguageDetection_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection) + } + + // @@protoc_insertion_point(class_scope:google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection) + private static final com.google.cloud.modelarmor.v1.Template.TemplateMetadata + .MultiLanguageDetection + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection(); + } + + public static com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MultiLanguageDetection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; public static final int IGNORE_PARTIAL_INVOCATION_FAILURES_FIELD_NUMBER = 1; private boolean ignorePartialInvocationFailures_ = false; @@ -484,6 +1124,70 @@ public boolean getLogSanitizeOperations() { return logSanitizeOperations_; } + public static final int MULTI_LANGUAGE_DETECTION_FIELD_NUMBER = 9; + private com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection + multiLanguageDetection_; + + /** + * + * + *
+     * Optional. Metadata for multi language detection.
+     * 
+ * + * + * .google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection multi_language_detection = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the multiLanguageDetection field is set. + */ + @java.lang.Override + public boolean hasMultiLanguageDetection() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. Metadata for multi language detection.
+     * 
+ * + * + * .google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection multi_language_detection = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The multiLanguageDetection. + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection + getMultiLanguageDetection() { + return multiLanguageDetection_ == null + ? com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection + .getDefaultInstance() + : multiLanguageDetection_; + } + + /** + * + * + *
+     * Optional. Metadata for multi language detection.
+     * 
+ * + * + * .google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection multi_language_detection = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetectionOrBuilder + getMultiLanguageDetectionOrBuilder() { + return multiLanguageDetection_ == null + ? com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection + .getDefaultInstance() + : multiLanguageDetection_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -522,6 +1226,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (logSanitizeOperations_ != false) { output.writeBool(7, logSanitizeOperations_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(9, getMultiLanguageDetection()); + } getUnknownFields().writeTo(output); } @@ -562,6 +1269,11 @@ public int getSerializedSize() { if (logSanitizeOperations_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, logSanitizeOperations_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, getMultiLanguageDetection()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -589,6 +1301,10 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getCustomLlmResponseSafetyErrorMessage())) return false; if (getLogTemplateOperations() != other.getLogTemplateOperations()) return false; if (getLogSanitizeOperations() != other.getLogSanitizeOperations()) return false; + if (hasMultiLanguageDetection() != other.hasMultiLanguageDetection()) return false; + if (hasMultiLanguageDetection()) { + if (!getMultiLanguageDetection().equals(other.getMultiLanguageDetection())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -616,6 +1332,10 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLogTemplateOperations()); hash = (37 * hash) + LOG_SANITIZE_OPERATIONS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLogSanitizeOperations()); + if (hasMultiLanguageDetection()) { + hash = (37 * hash) + MULTI_LANGUAGE_DETECTION_FIELD_NUMBER; + hash = (53 * hash) + getMultiLanguageDetection().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -749,10 +1469,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.modelarmor.v1.Template.TemplateMetadata.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMultiLanguageDetectionFieldBuilder(); + } } @java.lang.Override @@ -766,6 +1495,11 @@ public Builder clear() { customLlmResponseSafetyErrorMessage_ = ""; logTemplateOperations_ = false; logSanitizeOperations_ = false; + multiLanguageDetection_ = null; + if (multiLanguageDetectionBuilder_ != null) { + multiLanguageDetectionBuilder_.dispose(); + multiLanguageDetectionBuilder_ = null; + } return this; } @@ -823,6 +1557,15 @@ private void buildPartial0(com.google.cloud.modelarmor.v1.Template.TemplateMetad if (((from_bitField0_ & 0x00000040) != 0)) { result.logSanitizeOperations_ = logSanitizeOperations_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000080) != 0)) { + result.multiLanguageDetection_ = + multiLanguageDetectionBuilder_ == null + ? multiLanguageDetection_ + : multiLanguageDetectionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -898,6 +1641,9 @@ public Builder mergeFrom(com.google.cloud.modelarmor.v1.Template.TemplateMetadat if (other.getLogSanitizeOperations() != false) { setLogSanitizeOperations(other.getLogSanitizeOperations()); } + if (other.hasMultiLanguageDetection()) { + mergeMultiLanguageDetection(other.getMultiLanguageDetection()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -966,6 +1712,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case 56 + case 74: + { + input.readMessage( + getMultiLanguageDetectionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1543,6 +2296,237 @@ public Builder clearLogSanitizeOperations() { return this; } + private com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection + multiLanguageDetection_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection, + com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection + .Builder, + com.google.cloud.modelarmor.v1.Template.TemplateMetadata + .MultiLanguageDetectionOrBuilder> + multiLanguageDetectionBuilder_; + + /** + * + * + *
+       * Optional. Metadata for multi language detection.
+       * 
+ * + * + * .google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection multi_language_detection = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the multiLanguageDetection field is set. + */ + public boolean hasMultiLanguageDetection() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+       * Optional. Metadata for multi language detection.
+       * 
+ * + * + * .google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection multi_language_detection = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The multiLanguageDetection. + */ + public com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection + getMultiLanguageDetection() { + if (multiLanguageDetectionBuilder_ == null) { + return multiLanguageDetection_ == null + ? com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection + .getDefaultInstance() + : multiLanguageDetection_; + } else { + return multiLanguageDetectionBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Optional. Metadata for multi language detection.
+       * 
+ * + * + * .google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection multi_language_detection = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMultiLanguageDetection( + com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection value) { + if (multiLanguageDetectionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + multiLanguageDetection_ = value; + } else { + multiLanguageDetectionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Metadata for multi language detection.
+       * 
+ * + * + * .google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection multi_language_detection = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMultiLanguageDetection( + com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection.Builder + builderForValue) { + if (multiLanguageDetectionBuilder_ == null) { + multiLanguageDetection_ = builderForValue.build(); + } else { + multiLanguageDetectionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Metadata for multi language detection.
+       * 
+ * + * + * .google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection multi_language_detection = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMultiLanguageDetection( + com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection value) { + if (multiLanguageDetectionBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && multiLanguageDetection_ != null + && multiLanguageDetection_ + != com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection + .getDefaultInstance()) { + getMultiLanguageDetectionBuilder().mergeFrom(value); + } else { + multiLanguageDetection_ = value; + } + } else { + multiLanguageDetectionBuilder_.mergeFrom(value); + } + if (multiLanguageDetection_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Optional. Metadata for multi language detection.
+       * 
+ * + * + * .google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection multi_language_detection = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMultiLanguageDetection() { + bitField0_ = (bitField0_ & ~0x00000080); + multiLanguageDetection_ = null; + if (multiLanguageDetectionBuilder_ != null) { + multiLanguageDetectionBuilder_.dispose(); + multiLanguageDetectionBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Metadata for multi language detection.
+       * 
+ * + * + * .google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection multi_language_detection = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection.Builder + getMultiLanguageDetectionBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getMultiLanguageDetectionFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Optional. Metadata for multi language detection.
+       * 
+ * + * + * .google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection multi_language_detection = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.modelarmor.v1.Template.TemplateMetadata + .MultiLanguageDetectionOrBuilder + getMultiLanguageDetectionOrBuilder() { + if (multiLanguageDetectionBuilder_ != null) { + return multiLanguageDetectionBuilder_.getMessageOrBuilder(); + } else { + return multiLanguageDetection_ == null + ? com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection + .getDefaultInstance() + : multiLanguageDetection_; + } + } + + /** + * + * + *
+       * Optional. Metadata for multi language detection.
+       * 
+ * + * + * .google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection multi_language_detection = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection, + com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection + .Builder, + com.google.cloud.modelarmor.v1.Template.TemplateMetadata + .MultiLanguageDetectionOrBuilder> + getMultiLanguageDetectionFieldBuilder() { + if (multiLanguageDetectionBuilder_ == null) { + multiLanguageDetectionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection, + com.google.cloud.modelarmor.v1.Template.TemplateMetadata.MultiLanguageDetection + .Builder, + com.google.cloud.modelarmor.v1.Template.TemplateMetadata + .MultiLanguageDetectionOrBuilder>( + getMultiLanguageDetection(), getParentForChildren(), isClean()); + multiLanguageDetection_ = null; + } + return multiLanguageDetectionBuilder_; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/V1mainProto.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/V1mainProto.java index 44487245735b..c45d92b798b3 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/V1mainProto.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/V1mainProto.java @@ -36,6 +36,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_modelarmor_v1_Template_TemplateMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_modelarmor_v1_Template_TemplateMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_modelarmor_v1_Template_TemplateMetadata_MultiLanguageDetection_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_modelarmor_v1_Template_TemplateMetadata_MultiLanguageDetection_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_modelarmor_v1_Template_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -136,6 +140,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_modelarmor_v1_SanitizationResult_FilterResultsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_modelarmor_v1_SanitizationResult_FilterResultsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_modelarmor_v1_MultiLanguageDetectionMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_modelarmor_v1_MultiLanguageDetectionMetadata_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_modelarmor_v1_FilterResult_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -228,7 +236,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "proto\032\037google/api/field_behavior.proto\032\033" + "google/api/field_info.proto\032\031google/api/" + "resource.proto\032\033google/protobuf/empty.proto\032" - + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\364\006\n" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\261\010\n" + "\010Template\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\0224\n" + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" @@ -238,7 +246,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "filter_config\030\005" + " \001(\0132(.google.cloud.modelarmor.v1.FilterConfigB\003\340A\002\022U\n" + "\021template_metadata\030\006 \001(\01325.google.cloud.modela" - + "rmor.v1.Template.TemplateMetadataB\003\340A\001\032\331\002\n" + + "rmor.v1.Template.TemplateMetadataB\003\340A\001\032\226\004\n" + "\020TemplateMetadata\022/\n" + "\"ignore_partial_invocation_failures\030\001 \001(\010B\003\340A\001\022,\n" + "\037custom_prompt_safety_error_code\030\002 \001(\005B\003\340A\001\022/\n" @@ -246,25 +254,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "%custom_llm_response_safety_error_code\030\004 \001(\005B\003\340A\001\0225\n" + "(custom_llm_response_safety_error_message\030\005 \001(\tB\003\340A\001\022$\n" + "\027log_template_operations\030\006 \001(\010B\003\340A\001\022$\n" - + "\027log_sanitize_operations\030\007 \001(\010B\003\340A\001\032-\n" + + "\027log_sanitize_operations\030\007 \001(\010B\003\340A\001\022s\n" + + "\030multi_language_detection\030\t \001(\0132L.google.cloud.mode" + + "larmor.v1.Template.TemplateMetadata.MultiLanguageDetectionB\003\340A\001\032F\n" + + "\026MultiLanguageDetection\022,\n" + + "\037enable_multi_language_detection\030\001 \001(\010B\003\340A\002\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:z\352Aw\n" - + "\"modelarmor.googleapis.com/Template\022organizations/{organization}/locations/{location}/floorSetting*\r" + + "&modelarmor.googleapis.com/FloorSetting\0224projects/{project}/" + + "locations/{location}/floorSetting\0222folders/{folder}/locations/{location}/floorSe" + + "tting\022>organizations/{organization}/locations/{location}/floorSetting*\r" + "floorSettings2\014floorSettingB#\n" + "!_enable_floor_setting_enforcement\"\257\001\n" + "\024ListTemplatesRequest\022:\n" @@ -290,8 +301,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\253\001\n" + "\025UpdateTemplateRequest\0224\n" + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022;\n" - + "\010template\030\002 \001(\0132$.g" - + "oogle.cloud.modelarmor.v1.TemplateB\003\340A\002\022\037\n\n" + + "\010template\030\002" + + " \001(\0132$.google.cloud.modelarmor.v1.TemplateB\003\340A\002\022\037\n\n" + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"r\n" + "\025DeleteTemplateRequest\0228\n" + "\004name\030\001 \001(\tB*\340A\002\372A$\n" @@ -301,134 +312,141 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB.\340A\002\372A(\n" + "&modelarmor.googleapis.com/FloorSetting\"\227\001\n" + "\031UpdateFloorSettingRequest\022D\n\r" - + "floor_setting\030\001" - + " \001(\0132(.google.cloud.modelarmor.v1.FloorSettingB\003\340A\002\0224\n" + + "floor_setting\030\001 \001(\0132(" + + ".google.cloud.modelarmor.v1.FloorSettingB\003\340A\002\0224\n" + "\013update_mask\030\002" + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"\357\002\n" + "\014FilterConfig\022H\n" - + "\014rai_settings\030\001 \001(\0132-.google.c" - + "loud.modelarmor.v1.RaiFilterSettingsB\003\340A\001\022H\n" + + "\014rai_settings\030\001" + + " \001(\0132-.google.cloud.modelarmor.v1.RaiFilterSettingsB\003\340A\001\022H\n" + "\014sdp_settings\030\002" + " \001(\0132-.google.cloud.modelarmor.v1.SdpFilterSettingsB\003\340A\001\022g\n" - + " pi_and_jailbreak_filter_settings\030\003 \001(\01328." - + "google.cloud.modelarmor.v1.PiAndJailbreakFilterSettingsB\003\340A\001\022b\n" - + "\035malicious_uri_filter_settings\030\004 \001(\01326.google.cloud.model" - + "armor.v1.MaliciousUriFilterSettingsB\003\340A\001\"\341\002\n" + + " pi_and_jailbreak_filter_settings\030\003 \001(\01328.google.clou" + + "d.modelarmor.v1.PiAndJailbreakFilterSettingsB\003\340A\001\022b\n" + + "\035malicious_uri_filter_settings\030\004" + + " \001(\01326.google.cloud.modelarmor.v1.MaliciousUriFilterSettingsB\003\340A\001\"\341\002\n" + "\034PiAndJailbreakFilterSettings\022y\n" - + "\022filter_enforcement\030\001 \001(\0162X.google.cloud.mod" - + "elarmor.v1.PiAndJailbreakFilterSettings.PiAndJailbreakFilterEnforcementB\003\340A\001\022S\n" - + "\020confidence_level\030\003 \001(\01624.google.cloud.mo" - + "delarmor.v1.DetectionConfidenceLevelB\003\340A\001\"q\n" + + "\022filter_enforcement\030\001 \001(\0162X.google.cloud.modelarmor.v1." + + "PiAndJailbreakFilterSettings.PiAndJailbreakFilterEnforcementB\003\340A\001\022S\n" + + "\020confidence_level\030\003" + + " \001(\01624.google.cloud.modelarmor.v1.DetectionConfidenceLevelB\003\340A\001\"q\n" + "\037PiAndJailbreakFilterEnforcement\0223\n" + "/PI_AND_JAILBREAK_FILTER_ENFORCEMENT_UNSPECIFIED\020\000\022\013\n" + "\007ENABLED\020\001\022\014\n" + "\010DISABLED\020\002\"\201\002\n" + "\032MaliciousUriFilterSettings\022u\n" - + "\022filter_enforcement\030\001 \001(\0162T.google.cloud.modelarmo" - + "r.v1.MaliciousUriFilterSettings.MaliciousUriFilterEnforcementB\003\340A\001\"l\n" + + "\022filter_enforcement\030\001 \001(\0162T.google.cloud.modelarmor.v1.Malici" + + "ousUriFilterSettings.MaliciousUriFilterEnforcementB\003\340A\001\"l\n" + "\035MaliciousUriFilterEnforcement\0220\n" + ",MALICIOUS_URI_FILTER_ENFORCEMENT_UNSPECIFIED\020\000\022\013\n" + "\007ENABLED\020\001\022\014\n" + "\010DISABLED\020\002\"\216\002\n" + "\021RaiFilterSettings\022Q\n" - + "\013rai_filters\030\001 \003(\01327.google.cloud.model" - + "armor.v1.RaiFilterSettings.RaiFilterB\003\340A\002\032\245\001\n" + + "\013rai_filters\030\001" + + " \003(\01327.google.cloud.modelarmor.v1.RaiFilterSettings.RaiFilterB\003\340A\002\032\245\001\n" + "\tRaiFilter\022C\n" - + "\013filter_type\030\001 \001(\0162).g" - + "oogle.cloud.modelarmor.v1.RaiFilterTypeB\003\340A\002\022S\n" - + "\020confidence_level\030\002 \001(\01624.google." - + "cloud.modelarmor.v1.DetectionConfidenceLevelB\003\340A\001\"\300\001\n" + + "\013filter_type\030\001" + + " \001(\0162).google.cloud.modelarmor.v1.RaiFilterTypeB\003\340A\002\022S\n" + + "\020confidence_level\030\002 \001(\01624.google.cloud.model" + + "armor.v1.DetectionConfidenceLevelB\003\340A\001\"\300\001\n" + "\021SdpFilterSettings\022G\n" - + "\014basic_config\030\001" - + " \001(\0132*.google.cloud.modelarmor.v1.SdpBasicConfigB\003\340A\001H\000\022M\n" - + "\017advanced_config\030\002" - + " \001(\0132-.google.cloud.modelarmor.v1.SdpAdvancedConfigB\003\340A\001H\000B\023\n" + + "\014basic_config\030\001 \001" + + "(\0132*.google.cloud.modelarmor.v1.SdpBasicConfigB\003\340A\001H\000\022M\n" + + "\017advanced_config\030\002 \001(\0132-" + + ".google.cloud.modelarmor.v1.SdpAdvancedConfigB\003\340A\001H\000B\023\n" + "\021sdp_configuration\"\335\001\n" + "\016SdpBasicConfig\022e\n" - + "\022filter_enforcement\030\003 \001(\0162D.google.cloud.modelarmor.v1" - + ".SdpBasicConfig.SdpBasicConfigEnforcementB\003\340A\001\"d\n" + + "\022filter_enforcement\030\003 \001(\016" + + "2D.google.cloud.modelarmor.v1.SdpBasicConfig.SdpBasicConfigEnforcementB\003\340A\001\"d\n" + "\031SdpBasicConfigEnforcement\022,\n" + "(SDP_BASIC_CONFIG_ENFORCEMENT_UNSPECIFIED\020\000\022\013\n" + "\007ENABLED\020\001\022\014\n" + "\010DISABLED\020\002\"T\n" + "\021SdpAdvancedConfig\022\035\n" + "\020inspect_template\030\001 \001(\tB\003\340A\001\022 \n" - + "\023deidentify_template\030\002 \001(\tB\003\340A\001\"\232\001\n" + + "\023deidentify_template\030\002 \001(\tB\003\340A\001\"\206\002\n" + "\031SanitizeUserPromptRequest\0228\n" + "\004name\030\001 \001(\tB*\340A\002\372A$\n" + "\"modelarmor.googleapis.com/Template\022C\n" + "\020user_prompt_data\030\002" - + " \001(\0132$.google.cloud.modelarmor.v1.DataItemB\003\340A\002\"\272\001\n" + + " \001(\0132$.google.cloud.modelarmor.v1.DataItemB\003\340A\002\022j\n" + + "!multi_language_detection_metadata\030\006 \001(\0132:.google.cloud.m" + + "odelarmor.v1.MultiLanguageDetectionMetadataB\003\340A\001\"\246\002\n" + "\034SanitizeModelResponseRequest\0228\n" + "\004name\030\001 \001(\tB*\340A\002\372A$\n" + "\"modelarmor.googleapis.com/Template\022F\n" + "\023model_response_data\030\002" + " \001(\0132$.google.cloud.modelarmor.v1.DataItemB\003\340A\002\022\030\n" - + "\013user_prompt\030\004 \001(\tB\003\340A\001\"n\n" + + "\013user_prompt\030\004 \001(\tB\003\340A\001\022j\n" + + "!multi_language_detection_metadata\030\007 \001(\013" + + "2:.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadataB\003\340A\001\"n\n" + "\032SanitizeUserPromptResponse\022P\n" - + "\023sanitization_result\030\001 \001(\0132" - + "..google.cloud.modelarmor.v1.SanitizationResultB\003\340A\003\"q\n" + + "\023sanitization_result\030\001" + + " \001(\0132..google.cloud.modelarmor.v1.SanitizationResultB\003\340A\003\"q\n" + "\035SanitizeModelResponseResponse\022P\n" - + "\023sanitization_result\030\001 \001(\0132..goo" - + "gle.cloud.modelarmor.v1.SanitizationResultB\003\340A\003\"\311\004\n" + + "\023sanitization_result\030\001 \001(\0132" + + "..google.cloud.modelarmor.v1.SanitizationResultB\003\340A\003\"\311\004\n" + "\022SanitizationResult\022M\n" + "\022filter_match_state\030\001" + " \001(\0162,.google.cloud.modelarmor.v1.FilterMatchStateB\003\340A\003\022^\n" - + "\016filter_results\030\002 \003(\0132A.google.cloud.modelarmor." - + "v1.SanitizationResult.FilterResultsEntryB\003\340A\003\022L\n" - + "\021invocation_result\030\004 \001(\0162,.googl" - + "e.cloud.modelarmor.v1.InvocationResultB\003\340A\003\022g\n" - + "\025sanitization_metadata\030\003 \001(\0132C.goo" - + "gle.cloud.modelarmor.v1.SanitizationResult.SanitizationMetadataB\003\340A\003\032m\n" + + "\016filter_results\030\002 \003(\0132A.google.cloud.modela" + + "rmor.v1.SanitizationResult.FilterResultsEntryB\003\340A\003\022L\n" + + "\021invocation_result\030\004 \001(\0162,." + + "google.cloud.modelarmor.v1.InvocationResultB\003\340A\003\022g\n" + + "\025sanitization_metadata\030\003 \001(\0132" + + "C.google.cloud.modelarmor.v1.SanitizationResult.SanitizationMetadataB\003\340A\003\032m\n" + "\024SanitizationMetadata\022\022\n\n" - + "error_code\030\001 \001(\003\022\025\n\r" + + "error_code\030\001 \001(\003\022\025\n" + + "\r" + "error_message\030\002 \001(\t\022*\n" + "\"ignore_partial_invocation_failures\030\003 \001(\010\032^\n" + "\022FilterResultsEntry\022\013\n" + "\003key\030\001 \001(\t\0227\n" - + "\005value\030\002" - + " \001(\0132(.google.cloud.modelarmor.v1.FilterResult:\0028\001\"\234\004\n" + + "\005value\030\002 \001(\0132(.google.cloud.modelarmor.v1.FilterResult:\0028\001\"l\n" + + "\036MultiLanguageDetectionMetadata\022\034\n" + + "\017source_language\030\001 \001(\tB\003\340A\001\022,\n" + + "\037enable_multi_language_detection\030\002 \001(\010B\003\340A\001\"\234\004\n" + "\014FilterResult\022H\n" - + "\021rai_filter_result\030\001 \001(\0132" - + "+.google.cloud.modelarmor.v1.RaiFilterResultH\000\022H\n" - + "\021sdp_filter_result\030\002 \001(\0132+.goog" - + "le.cloud.modelarmor.v1.SdpFilterResultH\000\022`\n" - + "\036pi_and_jailbreak_filter_result\030\003 \001(\013" - + "26.google.cloud.modelarmor.v1.PiAndJailbreakFilterResultH\000\022[\n" + + "\021rai_filter_result\030\001 \001(\0132+.goo" + + "gle.cloud.modelarmor.v1.RaiFilterResultH\000\022H\n" + + "\021sdp_filter_result\030\002" + + " \001(\0132+.google.cloud.modelarmor.v1.SdpFilterResultH\000\022`\n" + + "\036pi_and_jailbreak_filter_result\030\003 \001(\01326.go" + + "ogle.cloud.modelarmor.v1.PiAndJailbreakFilterResultH\000\022[\n" + "\033malicious_uri_filter_result\030\004" + " \001(\01324.google.cloud.modelarmor.v1.MaliciousUriFilterResultH\000\022Q\n" + "\031csam_filter_filter_result\030\005" + " \001(\0132,.google.cloud.modelarmor.v1.CsamFilterResultH\000\022U\n" - + "\030virus_scan_filter_result\030\006 \001(\01321.google.cl" - + "oud.modelarmor.v1.VirusScanFilterResultH\000B\017\n\r" + + "\030virus_scan_filter_result\030\006" + + " \001(\01321.google.cloud.modelarmor.v1.VirusScanFilterResultH\000B\017\n\r" + "filter_result\"\277\005\n" + "\017RaiFilterResult\022N\n" - + "\017execution_state\030\001 \001(\01620.google.cloud.m" - + "odelarmor.v1.FilterExecutionStateB\003\340A\003\022>\n\r" + + "\017execution_state\030\001" + + " \001(\01620.google.cloud.modelarmor.v1.FilterExecutionStateB\003\340A\003\022>\n\r" + "message_items\030\002 \003(\0132\'.google.cloud.modelarmor.v1.MessageItem\022F\n" - + "\013match_state\030\003 " - + "\001(\0162,.google.cloud.modelarmor.v1.FilterMatchStateB\003\340A\003\022f\n" - + "\027rai_filter_type_results\030\004 \003(\0132E.google.cloud.modelarmor.v1.Rai" - + "FilterResult.RaiFilterTypeResultsEntry\032\355\001\n" + + "\013match_state\030\003 \001(\0162," + + ".google.cloud.modelarmor.v1.FilterMatchStateB\003\340A\003\022f\n" + + "\027rai_filter_type_results\030\004 \003" + + "(\0132E.google.cloud.modelarmor.v1.RaiFilterResult.RaiFilterTypeResultsEntry\032\355\001\n" + "\023RaiFilterTypeResult\022>\n" + "\013filter_type\030\001 \001(\0162).google.cloud.modelarmor.v1.RaiFilterType\022N\n" - + "\020confidence_level\030\002 \001(\01624.googl" - + "e.cloud.modelarmor.v1.DetectionConfidenceLevel\022F\n" - + "\013match_state\030\003 \001(\0162,.google.clo" - + "ud.modelarmor.v1.FilterMatchStateB\003\340A\003\032|\n" + + "\020confidence_level\030\002 \001(\01624.google.clo" + + "ud.modelarmor.v1.DetectionConfidenceLevel\022F\n" + + "\013match_state\030\003" + + " \001(\0162,.google.cloud.modelarmor.v1.FilterMatchStateB\003\340A\003\032|\n" + "\031RaiFilterTypeResultsEntry\022\013\n" + "\003key\030\001 \001(\t\022N\n" - + "\005value\030\002 \001(\0132?.google.cloud.modelarmo" - + "r.v1.RaiFilterResult.RaiFilterTypeResult:\0028\001\"\261\001\n" + + "\005value\030\002 \001(\0132?.google.cloud.modelarmor.v1." + + "RaiFilterResult.RaiFilterTypeResult:\0028\001\"\261\001\n" + "\017SdpFilterResult\022F\n" - + "\016inspect_result\030\001" - + " \001(\0132,.google.cloud.modelarmor.v1.SdpInspectResultH\000\022L\n" - + "\021deidentify_result\030\002 " - + "\001(\0132/.google.cloud.modelarmor.v1.SdpDeidentifyResultH\000B\010\n" + + "\016inspect_result\030\001 " + + "\001(\0132,.google.cloud.modelarmor.v1.SdpInspectResultH\000\022L\n" + + "\021deidentify_result\030\002 \001(\0132/" + + ".google.cloud.modelarmor.v1.SdpDeidentifyResultH\000B\010\n" + "\006result\"\300\002\n" + "\020SdpInspectResult\022N\n" - + "\017execution_state\030\001 \001(\01620.google." - + "cloud.modelarmor.v1.FilterExecutionStateB\003\340A\003\022>\n\r" + + "\017execution_state\030\001 \001(\01620.google.cloud" + + ".modelarmor.v1.FilterExecutionStateB\003\340A\003\022>\n\r" + "message_items\030\002 \003(\0132\'.google.cloud.modelarmor.v1.MessageItem\022F\n" + "\013match_state\030\003" + " \001(\0162,.google.cloud.modelarmor.v1.FilterMatchStateB\003\340A\003\0228\n" @@ -437,64 +455,65 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010DataItem\022\016\n" + "\004text\030\001 \001(\tH\000\022=\n" + "\tbyte_item\030\002 \001(\0132(.google.cloud.modelarmor.v1.ByteDataItemH\000B\013\n" - + "\tdata_item\"\210\002\n" + + "\tdata_item\"\232\002\n" + "\014ByteDataItem\022R\n" + "\016byte_data_type\030\001" + " \001(\01625.google.cloud.modelarmor.v1.ByteDataItem.ByteItemTypeB\003\340A\002\022\026\n" - + "\tbyte_data\030\002 \001(\014B\003\340A\002\"\213\001\n" + + "\tbyte_data\030\002 \001(\014B\003\340A\002\"\235\001\n" + "\014ByteItemType\022\036\n" + "\032BYTE_ITEM_TYPE_UNSPECIFIED\020\000\022\022\n" + "\016PLAINTEXT_UTF8\020\001\022\007\n" + "\003PDF\020\002\022\021\n\r" + "WORD_DOCUMENT\020\003\022\022\n" + "\016EXCEL_DOCUMENT\020\004\022\027\n" - + "\023POWERPOINT_DOCUMENT\020\005\"\320\002\n" + + "\023POWERPOINT_DOCUMENT\020\005\022\007\n" + + "\003TXT\020\006\022\007\n" + + "\003CSV\020\007\"\320\002\n" + "\023SdpDeidentifyResult\022N\n" + "\017execution_state\030\001" + " \001(\01620.google.cloud.modelarmor.v1.FilterExecutionStateB\003\340A\003\022>\n\r" + "message_items\030\002 \003(\0132\'.google.cloud.modelarmor.v1.MessageItem\022F\n" - + "\013match_state\030\003 \001(\0162,.google.clo" - + "ud.modelarmor.v1.FilterMatchStateB\003\340A\003\0222\n" + + "\013match_state\030\003 \001(\016" + + "2,.google.cloud.modelarmor.v1.FilterMatchStateB\003\340A\003\0222\n" + "\004data\030\004 \001(\0132$.google.cloud.modelarmor.v1.DataItem\022\031\n" - + "\021transformed_bytes\030\005 \001(\003\022\022\n" - + "\n" + + "\021transformed_bytes\030\005 \001(\003\022\022\n\n" + "info_types\030\006 \003(\t\"\304\002\n\n" + "SdpFinding\022\021\n" + "\tinfo_type\030\001 \001(\t\022D\n\n" + "likelihood\030\002 \001(\01620.google.cloud.modelarmor.v1.SdpFindingLikelihood\022K\n" - + "\010location\030\003 \001(\01329.google.cloud.model" - + "armor.v1.SdpFinding.SdpFindingLocation\032\217\001\n" + + "\010location\030\003 \001(\01329.googl" + + "e.cloud.modelarmor.v1.SdpFinding.SdpFindingLocation\032\217\001\n" + "\022SdpFindingLocation\0229\n\n" + "byte_range\030\001 \001(\0132%.google.cloud.modelarmor.v1.RangeInfo\022>\n" - + "\017codepoint_range\030\002" - + " \001(\0132%.google.cloud.modelarmor.v1.RangeInfo\"\304\002\n" + + "\017codepoint_range\030\002 \001(\0132%" + + ".google.cloud.modelarmor.v1.RangeInfo\"\304\002\n" + "\032PiAndJailbreakFilterResult\022N\n" - + "\017execution_state\030\001 \001(\016" - + "20.google.cloud.modelarmor.v1.FilterExecutionStateB\003\340A\003\022>\n\r" + + "\017execution_state\030\001" + + " \001(\01620.google.cloud.modelarmor.v1.FilterExecutionStateB\003\340A\003\022>\n\r" + "message_items\030\002 \003(\0132\'.google.cloud.modelarmor.v1.MessageItem\022F\n" - + "\013match_state\030\003" - + " \001(\0162,.google.cloud.modelarmor.v1.FilterMatchStateB\003\340A\003\022N\n" - + "\020confidence_level\030\005" - + " \001(\01624.google.cloud.modelarmor.v1.DetectionConfidenceLevel\"\307\003\n" + + "\013match_state\030\003 \001(\0162,.goog" + + "le.cloud.modelarmor.v1.FilterMatchStateB\003\340A\003\022N\n" + + "\020confidence_level\030\005 \001(\01624.google." + + "cloud.modelarmor.v1.DetectionConfidenceLevel\"\307\003\n" + "\030MaliciousUriFilterResult\022N\n" + "\017execution_state\030\001" + " \001(\01620.google.cloud.modelarmor.v1.FilterExecutionStateB\003\340A\003\022>\n\r" + "message_items\030\002 \003(\0132\'.google.cloud.modelarmor.v1.MessageItem\022F\n" - + "\013match_state\030\003" - + " \001(\0162,.google.cloud.modelarmor.v1.FilterMatchStateB\003\340A\003\022q\n" - + "\033malicious_uri_matched_items\030\004 \003(\0132L.goog" - + "le.cloud.modelarmor.v1.MaliciousUriFilterResult.MaliciousUriMatchedItem\032`\n" + + "\013match_state\030\003 \001(\0162," + + ".google.cloud.modelarmor.v1.FilterMatchStateB\003\340A\003\022q\n" + + "\033malicious_uri_matched_items\030\004 \003(\0132L.google.cloud.modelarmor.v1.Mali" + + "ciousUriFilterResult.MaliciousUriMatchedItem\032`\n" + "\027MaliciousUriMatchedItem\022\013\n" + "\003uri\030\001 \001(\t\0228\n" + "\tlocations\030\002 \003(\0132%.google.cloud.modelarmor.v1.RangeInfo\"\240\004\n" + "\025VirusScanFilterResult\022N\n" - + "\017execution_state\030\001" - + " \001(\01620.google.cloud.modelarmor.v1.FilterExecutionStateB\003\340A\003\022>\n\r" + + "\017execution_state\030\001 \001(\01620.goog" + + "le.cloud.modelarmor.v1.FilterExecutionStateB\003\340A\003\022>\n\r" + "message_items\030\002 \003(\0132\'.google.cloud.modelarmor.v1.MessageItem\022F\n" - + "\013match_state\030\003 \001(\016" - + "2,.google.cloud.modelarmor.v1.FilterMatchStateB\003\340A\003\022b\n" - + "\024scanned_content_type\030\004 \001(" - + "\0162D.google.cloud.modelarmor.v1.VirusScanFilterResult.ScannedContentType\022\031\n" + + "\013match_state\030\003" + + " \001(\0162,.google.cloud.modelarmor.v1.FilterMatchStateB\003\340A\003\022b\n" + + "\024scanned_content_type\030\004 \001(\0162D.google.cloud.modelarmor" + + ".v1.VirusScanFilterResult.ScannedContentType\022\031\n" + "\014scanned_size\030\005 \001(\003H\000\210\001\001\022>\n\r" + "virus_details\030\006 \003(\0132\'.google.cloud.modelarmor.v1.VirusDetail\"_\n" + "\022ScannedContentType\022$\n" @@ -506,9 +525,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013VirusDetail\022\016\n" + "\006vendor\030\001 \001(\t\022\r\n" + "\005names\030\002 \003(\t\022G\n" - + "\013threat_type\030\003" - + " \001(\01622.google.cloud.modelarmor.v1.VirusDetail.ThreatType\"\243\001\n" - + "\n" + + "\013threat_type\030\003 \001(\01622." + + "google.cloud.modelarmor.v1.VirusDetail.ThreatType\"\243\001\n\n" + "ThreatType\022\033\n" + "\027THREAT_TYPE_UNSPECIFIED\020\000\022\013\n" + "\007UNKNOWN\020\001\022\021\n\r" @@ -520,11 +538,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017execution_state\030\001" + " \001(\01620.google.cloud.modelarmor.v1.FilterExecutionStateB\003\340A\003\022>\n\r" + "message_items\030\002 \003(\0132\'.google.cloud.modelarmor.v1.MessageItem\022F\n" - + "\013match_state\030\003 \001(\0162,.google.cl" - + "oud.modelarmor.v1.FilterMatchStateB\003\340A\003\"\270\001\n" + + "\013match_state\030\003 \001(" + + "\0162,.google.cloud.modelarmor.v1.FilterMatchStateB\003\340A\003\"\270\001\n" + "\013MessageItem\022I\n" - + "\014message_type\030\001 \001(\01623." - + "google.cloud.modelarmor.v1.MessageItem.MessageType\022\017\n" + + "\014message_type\030\001" + + " \001(\01623.google.cloud.modelarmor.v1.MessageItem.MessageType\022\017\n" + "\007message\030\002 \001(\t\"M\n" + "\013MessageType\022\034\n" + "\030MESSAGE_TYPE_UNSPECIFIED\020\000\022\010\n" @@ -568,51 +586,51 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007PARTIAL\020\002\022\013\n" + "\007FAILURE\020\0032\304\020\n\n" + "ModelArmor\022\264\001\n\r" - + "ListTemplates\0220.google.cloud.modelarmor.v1." - + "ListTemplatesRequest\0321.google.cloud.mode" - + "larmor.v1.ListTemplatesResponse\">\332A\006pare" - + "nt\202\323\344\223\002/\022-/v1/{parent=projects/*/locations/*}/templates\022\241\001\n" - + "\013GetTemplate\022..google.cloud.modelarmor.v1.GetTemplateRequest\032" - + "$.google.cloud.modelarmor.v1.Template\"<\332" - + "A\004name\202\323\344\223\002/\022-/v1/{name=projects/*/locations/*/templates/*}\022\310\001\n" - + "\016CreateTemplate\0221.google.cloud.modelarmor.v1.CreateTempla" - + "teRequest\032$.google.cloud.modelarmor.v1.T" - + "emplate\"]\332A\033parent,template,template_id\202" - + "\323\344\223\0029\"-/v1/{parent=projects/*/locations/*}/templates:\010template\022\312\001\n" - + "\016UpdateTemplate\0221.google.cloud.modelarmor.v1.UpdateTem" + + "ListTemplates\0220.google.cloud.modelarmor.v1.ListTemplatesRequest\0321.goog" + + "le.cloud.modelarmor.v1.ListTemplatesResp" + + "onse\">\332A\006parent\202\323\344\223\002/\022-/v1/{parent=projects/*/locations/*}/templates\022\241\001\n" + + "\013GetTemplate\022..google.cloud.modelarmor.v1.GetTem" + "plateRequest\032$.google.cloud.modelarmor.v" - + "1.Template\"_\332A\024template,update_mask\202\323\344\223\002" - + "B26/v1/{template.name=projects/*/locations/*/templates/*}:\010template\022\231\001\n" - + "\016DeleteTemplate\0221.google.cloud.modelarmor.v1.Dele" - + "teTemplateRequest\032\026.google.protobuf.Empt" - + "y\"<\332A\004name\202\323\344\223\002/*-/v1/{name=projects/*/locations/*/templates/*}\022\230\002\n" - + "\017GetFloorSetting\0222.google.cloud.modelarmor.v1.GetFloo" - + "rSettingRequest\032(.google.cloud.modelarmo" - + "r.v1.FloorSetting\"\246\001\332A\004name\202\323\344\223\002\230\001\022./v1/" - + "{name=projects/*/locations/*/floorSetting}Z/\022-/v1/{name=folders/*/locations/*/fl" - + "oorSetting}Z5\0223/v1/{name=organizations/*/locations/*/floorSetting}\022\212\003\n" - + "\022UpdateFloorSetting\0225.google.cloud.modelarmor.v1.U" - + "pdateFloorSettingRequest\032(.google.cloud." - + "modelarmor.v1.FloorSetting\"\222\002\332A\031floor_se" - + "tting,update_mask\202\323\344\223\002\357\0012cloud.google" - + ".com/go/modelarmor/apiv1/modelarmorpb;mo" - + "delarmorpb\252\002\032Google.Cloud.ModelArmor.V1\312" - + "\002\032Google\\Cloud\\ModelArmor\\V1b\006proto3" + + "\022SanitizeUserPrompt\0225.google.cloud.model" + + "armor.v1.SanitizeUserPromptRequest\0326.google.cloud.modelarmor.v1.SanitizeUserProm" + + "ptResponse\"K\202\323\344\223\002E\"@/v1/{name=projects/*" + + "/locations/*/templates/*}:sanitizeUserPrompt:\001*\022\334\001\n" + + "\025SanitizeModelResponse\0228.google.cloud.modelarmor.v1.SanitizeModelResp" + + "onseRequest\0329.google.cloud.modelarmor.v1" + + ".SanitizeModelResponseResponse\"N\202\323\344\223\002H\"C" + + "/v1/{name=projects/*/locations/*/templat" + + "es/*}:sanitizeModelResponse:\001*\032M\312A\031model" + + "armor.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\251\001\n" + + "\036com.google.cloud.modelarmor.v1B\013V1mainProtoP\001Z" + + ">cloud.google.com/go/modelarmor/apiv1/mo" + + "delarmorpb;modelarmorpb\252\002\032Google.Cloud.M" + + "odelArmor.V1\312\002\032Google\\Cloud\\ModelArmor\\V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -648,6 +666,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CustomLlmResponseSafetyErrorMessage", "LogTemplateOperations", "LogSanitizeOperations", + "MultiLanguageDetection", + }); + internal_static_google_cloud_modelarmor_v1_Template_TemplateMetadata_MultiLanguageDetection_descriptor = + internal_static_google_cloud_modelarmor_v1_Template_TemplateMetadata_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_modelarmor_v1_Template_TemplateMetadata_MultiLanguageDetection_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_modelarmor_v1_Template_TemplateMetadata_MultiLanguageDetection_descriptor, + new java.lang.String[] { + "EnableMultiLanguageDetection", }); internal_static_google_cloud_modelarmor_v1_Template_LabelsEntry_descriptor = internal_static_google_cloud_modelarmor_v1_Template_descriptor.getNestedTypes().get(1); @@ -804,7 +833,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1_SanitizeUserPromptRequest_descriptor, new java.lang.String[] { - "Name", "UserPromptData", + "Name", "UserPromptData", "MultiLanguageDetectionMetadata", }); internal_static_google_cloud_modelarmor_v1_SanitizeModelResponseRequest_descriptor = getDescriptor().getMessageTypes().get(18); @@ -812,7 +841,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1_SanitizeModelResponseRequest_descriptor, new java.lang.String[] { - "Name", "ModelResponseData", "UserPrompt", + "Name", "ModelResponseData", "UserPrompt", "MultiLanguageDetectionMetadata", }); internal_static_google_cloud_modelarmor_v1_SanitizeUserPromptResponse_descriptor = getDescriptor().getMessageTypes().get(19); @@ -858,8 +887,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_modelarmor_v1_FilterResult_descriptor = + internal_static_google_cloud_modelarmor_v1_MultiLanguageDetectionMetadata_descriptor = getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_modelarmor_v1_MultiLanguageDetectionMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_modelarmor_v1_MultiLanguageDetectionMetadata_descriptor, + new java.lang.String[] { + "SourceLanguage", "EnableMultiLanguageDetection", + }); + internal_static_google_cloud_modelarmor_v1_FilterResult_descriptor = + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_modelarmor_v1_FilterResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1_FilterResult_descriptor, @@ -873,7 +910,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FilterResult", }); internal_static_google_cloud_modelarmor_v1_RaiFilterResult_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_modelarmor_v1_RaiFilterResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1_RaiFilterResult_descriptor, @@ -901,7 +938,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_modelarmor_v1_SdpFilterResult_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_modelarmor_v1_SdpFilterResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1_SdpFilterResult_descriptor, @@ -909,7 +946,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InspectResult", "DeidentifyResult", "Result", }); internal_static_google_cloud_modelarmor_v1_SdpInspectResult_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_modelarmor_v1_SdpInspectResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1_SdpInspectResult_descriptor, @@ -917,7 +954,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExecutionState", "MessageItems", "MatchState", "Findings", "FindingsTruncated", }); internal_static_google_cloud_modelarmor_v1_DataItem_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_modelarmor_v1_DataItem_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1_DataItem_descriptor, @@ -925,7 +962,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Text", "ByteItem", "DataItem", }); internal_static_google_cloud_modelarmor_v1_ByteDataItem_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_modelarmor_v1_ByteDataItem_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1_ByteDataItem_descriptor, @@ -933,7 +970,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ByteDataType", "ByteData", }); internal_static_google_cloud_modelarmor_v1_SdpDeidentifyResult_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(29); internal_static_google_cloud_modelarmor_v1_SdpDeidentifyResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1_SdpDeidentifyResult_descriptor, @@ -946,7 +983,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InfoTypes", }); internal_static_google_cloud_modelarmor_v1_SdpFinding_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(30); internal_static_google_cloud_modelarmor_v1_SdpFinding_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1_SdpFinding_descriptor, @@ -962,7 +999,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ByteRange", "CodepointRange", }); internal_static_google_cloud_modelarmor_v1_PiAndJailbreakFilterResult_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(31); internal_static_google_cloud_modelarmor_v1_PiAndJailbreakFilterResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1_PiAndJailbreakFilterResult_descriptor, @@ -970,7 +1007,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExecutionState", "MessageItems", "MatchState", "ConfidenceLevel", }); internal_static_google_cloud_modelarmor_v1_MaliciousUriFilterResult_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(32); internal_static_google_cloud_modelarmor_v1_MaliciousUriFilterResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1_MaliciousUriFilterResult_descriptor, @@ -988,7 +1025,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Uri", "Locations", }); internal_static_google_cloud_modelarmor_v1_VirusScanFilterResult_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(33); internal_static_google_cloud_modelarmor_v1_VirusScanFilterResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1_VirusScanFilterResult_descriptor, @@ -1001,7 +1038,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "VirusDetails", }); internal_static_google_cloud_modelarmor_v1_VirusDetail_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(34); internal_static_google_cloud_modelarmor_v1_VirusDetail_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1_VirusDetail_descriptor, @@ -1009,7 +1046,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Vendor", "Names", "ThreatType", }); internal_static_google_cloud_modelarmor_v1_CsamFilterResult_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(35); internal_static_google_cloud_modelarmor_v1_CsamFilterResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1_CsamFilterResult_descriptor, @@ -1017,7 +1054,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExecutionState", "MessageItems", "MatchState", }); internal_static_google_cloud_modelarmor_v1_MessageItem_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(36); internal_static_google_cloud_modelarmor_v1_MessageItem_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1_MessageItem_descriptor, @@ -1025,7 +1062,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MessageType", "Message", }); internal_static_google_cloud_modelarmor_v1_RangeInfo_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(37); internal_static_google_cloud_modelarmor_v1_RangeInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1_RangeInfo_descriptor, diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/proto/google/cloud/modelarmor/v1/service.proto b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/proto/google/cloud/modelarmor/v1/service.proto index cdb5d8dacc32..52f68d8d5ad7 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/proto/google/cloud/modelarmor/v1/service.proto +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/proto/google/cloud/modelarmor/v1/service.proto @@ -239,6 +239,13 @@ message Template { // Message describing TemplateMetadata message TemplateMetadata { + // Metadata to enable multi language detection via template. + message MultiLanguageDetection { + // Required. If true, multi language detection will be enabled. + bool enable_multi_language_detection = 1 + [(google.api.field_behavior) = REQUIRED]; + } + // Optional. If true, partial detector failures should be ignored. bool ignore_partial_invocation_failures = 1 [(google.api.field_behavior) = OPTIONAL]; @@ -269,6 +276,10 @@ message Template { // Optional. If true, log sanitize operations. bool log_sanitize_operations = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Metadata for multi language detection. + MultiLanguageDetection multi_language_detection = 9 + [(google.api.field_behavior) = OPTIONAL]; } // Identifier. name of resource @@ -659,6 +670,10 @@ message SanitizeUserPromptRequest { // Required. User prompt data to sanitize. DataItem user_prompt_data = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Metadata related to Multi Language Detection. + MultiLanguageDetectionMetadata multi_language_detection_metadata = 6 + [(google.api.field_behavior) = OPTIONAL]; } // Sanitize Model Response request. @@ -677,6 +692,10 @@ message SanitizeModelResponseRequest { // Optional. User Prompt associated with Model response. string user_prompt = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Metadata related for multi language detection. + MultiLanguageDetectionMetadata multi_language_detection_metadata = 7 + [(google.api.field_behavior) = OPTIONAL]; } // Sanitized User Prompt Response. @@ -736,6 +755,19 @@ message SanitizationResult { [(google.api.field_behavior) = OUTPUT_ONLY]; } +// Message for Enabling Multi Language Detection. +message MultiLanguageDetectionMetadata { + // Optional. Optional Source language of the user prompt. + // + // If multi-language detection is enabled but language is not set in that case + // we would automatically detect the source language. + string source_language = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Enable detection of multi-language prompts and responses. + bool enable_multi_language_detection = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + // Filter Result obtained after Sanitization operations. message FilterResult { // Encapsulates one of responsible AI, Sensitive Data Protection, Prompt @@ -873,6 +905,12 @@ message ByteDataItem { // PPTX, PPTM, POTX, POTM, POT POWERPOINT_DOCUMENT = 5; + + // TXT + TXT = 6; + + // CSV + CSV = 7; } // Required. The type of byte data diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/pom.xml b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/pom.xml index ea580c9fe8fd..101db32aea49 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/pom.xml +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-modelarmor-v1beta - 0.8.0 + 0.9.0 proto-google-cloud-modelarmor-v1beta Proto library for google-cloud-modelarmor com.google.cloud google-cloud-modelarmor-parent - 0.8.0 + 0.9.0 diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/MultiLanguageDetectionMetadata.java b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/MultiLanguageDetectionMetadata.java index 3c874377ee0d..6346413b5228 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/MultiLanguageDetectionMetadata.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/MultiLanguageDetectionMetadata.java @@ -23,7 +23,7 @@ * * *
- * Message for Translation Support.
+ * Message for Enabling Multi Language Detection.
  * 
* * Protobuf type {@code google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata} @@ -40,7 +40,9 @@ private MultiLanguageDetectionMetadata( super(builder); } - private MultiLanguageDetectionMetadata() {} + private MultiLanguageDetectionMetadata() { + sourceLanguage_ = ""; + } @java.lang.Override @SuppressWarnings({"unused"}) @@ -63,6 +65,85 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata.Builder.class); } + public static final int SOURCE_LANGUAGE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceLanguage_ = ""; + + /** + * + * + *
+   * Optional. Optional Source language of the user prompt.
+   *
+   * If multi-language detection is enabled but language is not set in that case
+   * we would automatically detect the source language.
+   * 
+ * + * string source_language = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sourceLanguage. + */ + @java.lang.Override + public java.lang.String getSourceLanguage() { + java.lang.Object ref = sourceLanguage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceLanguage_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Optional Source language of the user prompt.
+   *
+   * If multi-language detection is enabled but language is not set in that case
+   * we would automatically detect the source language.
+   * 
+ * + * string source_language = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sourceLanguage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceLanguageBytes() { + java.lang.Object ref = sourceLanguage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceLanguage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENABLE_MULTI_LANGUAGE_DETECTION_FIELD_NUMBER = 2; + private boolean enableMultiLanguageDetection_ = false; + + /** + * + * + *
+   * Optional. Enable detection of multi-language prompts and responses.
+   * 
+ * + * bool enable_multi_language_detection = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enableMultiLanguageDetection. + */ + @java.lang.Override + public boolean getEnableMultiLanguageDetection() { + return enableMultiLanguageDetection_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -77,6 +158,12 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceLanguage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceLanguage_); + } + if (enableMultiLanguageDetection_ != false) { + output.writeBool(2, enableMultiLanguageDetection_); + } getUnknownFields().writeTo(output); } @@ -86,6 +173,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceLanguage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sourceLanguage_); + } + if (enableMultiLanguageDetection_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableMultiLanguageDetection_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -102,6 +196,8 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata other = (com.google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata) obj; + if (!getSourceLanguage().equals(other.getSourceLanguage())) return false; + if (getEnableMultiLanguageDetection() != other.getEnableMultiLanguageDetection()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -113,6 +209,11 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SOURCE_LANGUAGE_FIELD_NUMBER; + hash = (53 * hash) + getSourceLanguage().hashCode(); + hash = (37 * hash) + ENABLE_MULTI_LANGUAGE_DETECTION_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableMultiLanguageDetection()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -220,7 +321,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Message for Translation Support.
+   * Message for Enabling Multi Language Detection.
    * 
* * Protobuf type {@code google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata} @@ -255,6 +356,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; + sourceLanguage_ = ""; + enableMultiLanguageDetection_ = false; return this; } @@ -283,10 +387,24 @@ public com.google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata build() public com.google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata buildPartial() { com.google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata result = new com.google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sourceLanguage_ = sourceLanguage_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.enableMultiLanguageDetection_ = enableMultiLanguageDetection_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -335,6 +453,14 @@ public Builder mergeFrom( if (other == com.google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata.getDefaultInstance()) return this; + if (!other.getSourceLanguage().isEmpty()) { + sourceLanguage_ = other.sourceLanguage_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getEnableMultiLanguageDetection() != false) { + setEnableMultiLanguageDetection(other.getEnableMultiLanguageDetection()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -361,6 +487,18 @@ public Builder mergeFrom( case 0: done = true; break; + case 10: + { + sourceLanguage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + enableMultiLanguageDetection_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -378,6 +516,193 @@ public Builder mergeFrom( return this; } + private int bitField0_; + + private java.lang.Object sourceLanguage_ = ""; + + /** + * + * + *
+     * Optional. Optional Source language of the user prompt.
+     *
+     * If multi-language detection is enabled but language is not set in that case
+     * we would automatically detect the source language.
+     * 
+ * + * string source_language = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sourceLanguage. + */ + public java.lang.String getSourceLanguage() { + java.lang.Object ref = sourceLanguage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceLanguage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Optional Source language of the user prompt.
+     *
+     * If multi-language detection is enabled but language is not set in that case
+     * we would automatically detect the source language.
+     * 
+ * + * string source_language = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sourceLanguage. + */ + public com.google.protobuf.ByteString getSourceLanguageBytes() { + java.lang.Object ref = sourceLanguage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceLanguage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Optional Source language of the user prompt.
+     *
+     * If multi-language detection is enabled but language is not set in that case
+     * we would automatically detect the source language.
+     * 
+ * + * string source_language = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The sourceLanguage to set. + * @return This builder for chaining. + */ + public Builder setSourceLanguage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceLanguage_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Optional Source language of the user prompt.
+     *
+     * If multi-language detection is enabled but language is not set in that case
+     * we would automatically detect the source language.
+     * 
+ * + * string source_language = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSourceLanguage() { + sourceLanguage_ = getDefaultInstance().getSourceLanguage(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Optional Source language of the user prompt.
+     *
+     * If multi-language detection is enabled but language is not set in that case
+     * we would automatically detect the source language.
+     * 
+ * + * string source_language = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for sourceLanguage to set. + * @return This builder for chaining. + */ + public Builder setSourceLanguageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceLanguage_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean enableMultiLanguageDetection_; + + /** + * + * + *
+     * Optional. Enable detection of multi-language prompts and responses.
+     * 
+ * + * bool enable_multi_language_detection = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enableMultiLanguageDetection. + */ + @java.lang.Override + public boolean getEnableMultiLanguageDetection() { + return enableMultiLanguageDetection_; + } + + /** + * + * + *
+     * Optional. Enable detection of multi-language prompts and responses.
+     * 
+ * + * bool enable_multi_language_detection = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enableMultiLanguageDetection to set. + * @return This builder for chaining. + */ + public Builder setEnableMultiLanguageDetection(boolean value) { + + enableMultiLanguageDetection_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Enable detection of multi-language prompts and responses.
+     * 
+ * + * bool enable_multi_language_detection = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearEnableMultiLanguageDetection() { + bitField0_ = (bitField0_ & ~0x00000002); + enableMultiLanguageDetection_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/MultiLanguageDetectionMetadataOrBuilder.java b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/MultiLanguageDetectionMetadataOrBuilder.java index cfdd55ec05d7..e6e65eff3d10 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/MultiLanguageDetectionMetadataOrBuilder.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/MultiLanguageDetectionMetadataOrBuilder.java @@ -22,4 +22,51 @@ public interface MultiLanguageDetectionMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata) - com.google.protobuf.MessageOrBuilder {} + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Optional Source language of the user prompt.
+   *
+   * If multi-language detection is enabled but language is not set in that case
+   * we would automatically detect the source language.
+   * 
+ * + * string source_language = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sourceLanguage. + */ + java.lang.String getSourceLanguage(); + + /** + * + * + *
+   * Optional. Optional Source language of the user prompt.
+   *
+   * If multi-language detection is enabled but language is not set in that case
+   * we would automatically detect the source language.
+   * 
+ * + * string source_language = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sourceLanguage. + */ + com.google.protobuf.ByteString getSourceLanguageBytes(); + + /** + * + * + *
+   * Optional. Enable detection of multi-language prompts and responses.
+   * 
+ * + * bool enable_multi_language_detection = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enableMultiLanguageDetection. + */ + boolean getEnableMultiLanguageDetection(); +} diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/SanitizeModelResponseRequest.java b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/SanitizeModelResponseRequest.java index f890b740c64a..77d47f42e6cd 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/SanitizeModelResponseRequest.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/SanitizeModelResponseRequest.java @@ -245,7 +245,7 @@ public com.google.protobuf.ByteString getUserPromptBytes() { * * *
-   * Optional. Metadata related for Translations.
+   * Optional. Metadata related for multi language detection.
    * 
* * @@ -263,7 +263,7 @@ public boolean hasMultiLanguageDetectionMetadata() { * * *
-   * Optional. Metadata related for Translations.
+   * Optional. Metadata related for multi language detection.
    * 
* * @@ -284,7 +284,7 @@ public boolean hasMultiLanguageDetectionMetadata() { * * *
-   * Optional. Metadata related for Translations.
+   * Optional. Metadata related for multi language detection.
    * 
* * @@ -1223,7 +1223,7 @@ public Builder setUserPromptBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. Metadata related for Translations.
+     * Optional. Metadata related for multi language detection.
      * 
* * @@ -1240,7 +1240,7 @@ public boolean hasMultiLanguageDetectionMetadata() { * * *
-     * Optional. Metadata related for Translations.
+     * Optional. Metadata related for multi language detection.
      * 
* * @@ -1264,7 +1264,7 @@ public boolean hasMultiLanguageDetectionMetadata() { * * *
-     * Optional. Metadata related for Translations.
+     * Optional. Metadata related for multi language detection.
      * 
* * @@ -1290,7 +1290,7 @@ public Builder setMultiLanguageDetectionMetadata( * * *
-     * Optional. Metadata related for Translations.
+     * Optional. Metadata related for multi language detection.
      * 
* * @@ -1313,7 +1313,7 @@ public Builder setMultiLanguageDetectionMetadata( * * *
-     * Optional. Metadata related for Translations.
+     * Optional. Metadata related for multi language detection.
      * 
* * @@ -1346,7 +1346,7 @@ public Builder mergeMultiLanguageDetectionMetadata( * * *
-     * Optional. Metadata related for Translations.
+     * Optional. Metadata related for multi language detection.
      * 
* * @@ -1368,7 +1368,7 @@ public Builder clearMultiLanguageDetectionMetadata() { * * *
-     * Optional. Metadata related for Translations.
+     * Optional. Metadata related for multi language detection.
      * 
* * @@ -1386,7 +1386,7 @@ public Builder clearMultiLanguageDetectionMetadata() { * * *
-     * Optional. Metadata related for Translations.
+     * Optional. Metadata related for multi language detection.
      * 
* * @@ -1408,7 +1408,7 @@ public Builder clearMultiLanguageDetectionMetadata() { * * *
-     * Optional. Metadata related for Translations.
+     * Optional. Metadata related for multi language detection.
      * 
* * diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/SanitizeModelResponseRequestOrBuilder.java b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/SanitizeModelResponseRequestOrBuilder.java index 7513d98a1bef..e3c023a5cdb5 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/SanitizeModelResponseRequestOrBuilder.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/SanitizeModelResponseRequestOrBuilder.java @@ -129,7 +129,7 @@ public interface SanitizeModelResponseRequestOrBuilder * * *
-   * Optional. Metadata related for Translations.
+   * Optional. Metadata related for multi language detection.
    * 
* * @@ -144,7 +144,7 @@ public interface SanitizeModelResponseRequestOrBuilder * * *
-   * Optional. Metadata related for Translations.
+   * Optional. Metadata related for multi language detection.
    * 
* * @@ -160,7 +160,7 @@ public interface SanitizeModelResponseRequestOrBuilder * * *
-   * Optional. Metadata related for Translations.
+   * Optional. Metadata related for multi language detection.
    * 
* * diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/SanitizeUserPromptRequest.java b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/SanitizeUserPromptRequest.java index 688f5415bd2a..b1745f253622 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/SanitizeUserPromptRequest.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/SanitizeUserPromptRequest.java @@ -183,6 +183,68 @@ public com.google.cloud.modelarmor.v1beta.DataItemOrBuilder getUserPromptDataOrB : userPromptData_; } + public static final int MULTI_LANGUAGE_DETECTION_METADATA_FIELD_NUMBER = 6; + private com.google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata + multiLanguageDetectionMetadata_; + + /** + * + * + *
+   * Optional. Metadata related to Multi Language Detection.
+   * 
+ * + * + * .google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata multi_language_detection_metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the multiLanguageDetectionMetadata field is set. + */ + @java.lang.Override + public boolean hasMultiLanguageDetectionMetadata() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. Metadata related to Multi Language Detection.
+   * 
+ * + * + * .google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata multi_language_detection_metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The multiLanguageDetectionMetadata. + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata + getMultiLanguageDetectionMetadata() { + return multiLanguageDetectionMetadata_ == null + ? com.google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata.getDefaultInstance() + : multiLanguageDetectionMetadata_; + } + + /** + * + * + *
+   * Optional. Metadata related to Multi Language Detection.
+   * 
+ * + * + * .google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata multi_language_detection_metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadataOrBuilder + getMultiLanguageDetectionMetadataOrBuilder() { + return multiLanguageDetectionMetadata_ == null + ? com.google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata.getDefaultInstance() + : multiLanguageDetectionMetadata_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -203,6 +265,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getUserPromptData()); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getMultiLanguageDetectionMetadata()); + } getUnknownFields().writeTo(output); } @@ -218,6 +283,11 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUserPromptData()); } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, getMultiLanguageDetectionMetadata()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -239,6 +309,12 @@ public boolean equals(final java.lang.Object obj) { if (hasUserPromptData()) { if (!getUserPromptData().equals(other.getUserPromptData())) return false; } + if (hasMultiLanguageDetectionMetadata() != other.hasMultiLanguageDetectionMetadata()) + return false; + if (hasMultiLanguageDetectionMetadata()) { + if (!getMultiLanguageDetectionMetadata().equals(other.getMultiLanguageDetectionMetadata())) + return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -256,6 +332,10 @@ public int hashCode() { hash = (37 * hash) + USER_PROMPT_DATA_FIELD_NUMBER; hash = (53 * hash) + getUserPromptData().hashCode(); } + if (hasMultiLanguageDetectionMetadata()) { + hash = (37 * hash) + MULTI_LANGUAGE_DETECTION_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMultiLanguageDetectionMetadata().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -399,6 +479,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getUserPromptDataFieldBuilder(); + getMultiLanguageDetectionMetadataFieldBuilder(); } } @@ -412,6 +493,11 @@ public Builder clear() { userPromptDataBuilder_.dispose(); userPromptDataBuilder_ = null; } + multiLanguageDetectionMetadata_ = null; + if (multiLanguageDetectionMetadataBuilder_ != null) { + multiLanguageDetectionMetadataBuilder_.dispose(); + multiLanguageDetectionMetadataBuilder_ = null; + } return this; } @@ -459,6 +545,13 @@ private void buildPartial0( userPromptDataBuilder_ == null ? userPromptData_ : userPromptDataBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.multiLanguageDetectionMetadata_ = + multiLanguageDetectionMetadataBuilder_ == null + ? multiLanguageDetectionMetadata_ + : multiLanguageDetectionMetadataBuilder_.build(); + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -517,6 +610,9 @@ public Builder mergeFrom(com.google.cloud.modelarmor.v1beta.SanitizeUserPromptRe if (other.hasUserPromptData()) { mergeUserPromptData(other.getUserPromptData()); } + if (other.hasMultiLanguageDetectionMetadata()) { + mergeMultiLanguageDetectionMetadata(other.getMultiLanguageDetectionMetadata()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -555,6 +651,14 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 50: + { + input.readMessage( + getMultiLanguageDetectionMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -914,6 +1018,227 @@ public com.google.cloud.modelarmor.v1beta.DataItemOrBuilder getUserPromptDataOrB return userPromptDataBuilder_; } + private com.google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata + multiLanguageDetectionMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata, + com.google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata.Builder, + com.google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadataOrBuilder> + multiLanguageDetectionMetadataBuilder_; + + /** + * + * + *
+     * Optional. Metadata related to Multi Language Detection.
+     * 
+ * + * + * .google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata multi_language_detection_metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the multiLanguageDetectionMetadata field is set. + */ + public boolean hasMultiLanguageDetectionMetadata() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Optional. Metadata related to Multi Language Detection.
+     * 
+ * + * + * .google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata multi_language_detection_metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The multiLanguageDetectionMetadata. + */ + public com.google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata + getMultiLanguageDetectionMetadata() { + if (multiLanguageDetectionMetadataBuilder_ == null) { + return multiLanguageDetectionMetadata_ == null + ? com.google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata.getDefaultInstance() + : multiLanguageDetectionMetadata_; + } else { + return multiLanguageDetectionMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Metadata related to Multi Language Detection.
+     * 
+ * + * + * .google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata multi_language_detection_metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMultiLanguageDetectionMetadata( + com.google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata value) { + if (multiLanguageDetectionMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + multiLanguageDetectionMetadata_ = value; + } else { + multiLanguageDetectionMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Metadata related to Multi Language Detection.
+     * 
+ * + * + * .google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata multi_language_detection_metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMultiLanguageDetectionMetadata( + com.google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata.Builder builderForValue) { + if (multiLanguageDetectionMetadataBuilder_ == null) { + multiLanguageDetectionMetadata_ = builderForValue.build(); + } else { + multiLanguageDetectionMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Metadata related to Multi Language Detection.
+     * 
+ * + * + * .google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata multi_language_detection_metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMultiLanguageDetectionMetadata( + com.google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata value) { + if (multiLanguageDetectionMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && multiLanguageDetectionMetadata_ != null + && multiLanguageDetectionMetadata_ + != com.google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata + .getDefaultInstance()) { + getMultiLanguageDetectionMetadataBuilder().mergeFrom(value); + } else { + multiLanguageDetectionMetadata_ = value; + } + } else { + multiLanguageDetectionMetadataBuilder_.mergeFrom(value); + } + if (multiLanguageDetectionMetadata_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Metadata related to Multi Language Detection.
+     * 
+ * + * + * .google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata multi_language_detection_metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMultiLanguageDetectionMetadata() { + bitField0_ = (bitField0_ & ~0x00000004); + multiLanguageDetectionMetadata_ = null; + if (multiLanguageDetectionMetadataBuilder_ != null) { + multiLanguageDetectionMetadataBuilder_.dispose(); + multiLanguageDetectionMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Metadata related to Multi Language Detection.
+     * 
+ * + * + * .google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata multi_language_detection_metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata.Builder + getMultiLanguageDetectionMetadataBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getMultiLanguageDetectionMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Metadata related to Multi Language Detection.
+     * 
+ * + * + * .google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata multi_language_detection_metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadataOrBuilder + getMultiLanguageDetectionMetadataOrBuilder() { + if (multiLanguageDetectionMetadataBuilder_ != null) { + return multiLanguageDetectionMetadataBuilder_.getMessageOrBuilder(); + } else { + return multiLanguageDetectionMetadata_ == null + ? com.google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata.getDefaultInstance() + : multiLanguageDetectionMetadata_; + } + } + + /** + * + * + *
+     * Optional. Metadata related to Multi Language Detection.
+     * 
+ * + * + * .google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata multi_language_detection_metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata, + com.google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata.Builder, + com.google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadataOrBuilder> + getMultiLanguageDetectionMetadataFieldBuilder() { + if (multiLanguageDetectionMetadataBuilder_ == null) { + multiLanguageDetectionMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata, + com.google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata.Builder, + com.google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadataOrBuilder>( + getMultiLanguageDetectionMetadata(), getParentForChildren(), isClean()); + multiLanguageDetectionMetadata_ = null; + } + return multiLanguageDetectionMetadataBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/SanitizeUserPromptRequestOrBuilder.java b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/SanitizeUserPromptRequestOrBuilder.java index 6f0835122807..71499897c70e 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/SanitizeUserPromptRequestOrBuilder.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/SanitizeUserPromptRequestOrBuilder.java @@ -98,4 +98,49 @@ public interface SanitizeUserPromptRequestOrBuilder *
*/ com.google.cloud.modelarmor.v1beta.DataItemOrBuilder getUserPromptDataOrBuilder(); + + /** + * + * + *
+   * Optional. Metadata related to Multi Language Detection.
+   * 
+ * + * + * .google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata multi_language_detection_metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the multiLanguageDetectionMetadata field is set. + */ + boolean hasMultiLanguageDetectionMetadata(); + + /** + * + * + *
+   * Optional. Metadata related to Multi Language Detection.
+   * 
+ * + * + * .google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata multi_language_detection_metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The multiLanguageDetectionMetadata. + */ + com.google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata + getMultiLanguageDetectionMetadata(); + + /** + * + * + *
+   * Optional. Metadata related to Multi Language Detection.
+   * 
+ * + * + * .google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata multi_language_detection_metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadataOrBuilder + getMultiLanguageDetectionMetadataOrBuilder(); } diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/Template.java b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/Template.java index 77d6880b542b..9040b9278fb3 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/Template.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/Template.java @@ -216,6 +216,51 @@ public interface TemplateMetadataOrBuilder * @return The logSanitizeOperations. */ boolean getLogSanitizeOperations(); + + /** + * + * + *
+     * Optional. Metadata for multi language detection.
+     * 
+ * + * + * .google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection multi_language_detection = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the multiLanguageDetection field is set. + */ + boolean hasMultiLanguageDetection(); + + /** + * + * + *
+     * Optional. Metadata for multi language detection.
+     * 
+ * + * + * .google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection multi_language_detection = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The multiLanguageDetection. + */ + com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection + getMultiLanguageDetection(); + + /** + * + * + *
+     * Optional. Metadata for multi language detection.
+     * 
+ * + * + * .google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection multi_language_detection = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetectionOrBuilder + getMultiLanguageDetectionOrBuilder(); } /** @@ -264,6 +309,620 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata.Builder.class); } + public interface MultiLanguageDetectionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Required. If true, multi language detection will be enabled.
+       * 
+ * + * bool enable_multi_language_detection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enableMultiLanguageDetection. + */ + boolean getEnableMultiLanguageDetection(); + } + + /** + * + * + *
+     * Metadata to enable multi language detection via template.
+     * 
+ * + * Protobuf type {@code + * google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection} + */ + public static final class MultiLanguageDetection extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection) + MultiLanguageDetectionOrBuilder { + private static final long serialVersionUID = 0L; + + // Use MultiLanguageDetection.newBuilder() to construct. + private MultiLanguageDetection(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MultiLanguageDetection() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MultiLanguageDetection(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.modelarmor.v1beta.V1mainProto + .internal_static_google_cloud_modelarmor_v1beta_Template_TemplateMetadata_MultiLanguageDetection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.modelarmor.v1beta.V1mainProto + .internal_static_google_cloud_modelarmor_v1beta_Template_TemplateMetadata_MultiLanguageDetection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection + .class, + com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection + .Builder.class); + } + + public static final int ENABLE_MULTI_LANGUAGE_DETECTION_FIELD_NUMBER = 1; + private boolean enableMultiLanguageDetection_ = false; + + /** + * + * + *
+       * Required. If true, multi language detection will be enabled.
+       * 
+ * + * bool enable_multi_language_detection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enableMultiLanguageDetection. + */ + @java.lang.Override + public boolean getEnableMultiLanguageDetection() { + return enableMultiLanguageDetection_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enableMultiLanguageDetection_ != false) { + output.writeBool(1, enableMultiLanguageDetection_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enableMultiLanguageDetection_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 1, enableMultiLanguageDetection_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection)) { + return super.equals(obj); + } + com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection other = + (com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection) + obj; + + if (getEnableMultiLanguageDetection() != other.getEnableMultiLanguageDetection()) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLE_MULTI_LANGUAGE_DETECTION_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getEnableMultiLanguageDetection()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata + .MultiLanguageDetection + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata + .MultiLanguageDetection + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata + .MultiLanguageDetection + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata + .MultiLanguageDetection + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata + .MultiLanguageDetection + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata + .MultiLanguageDetection + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata + .MultiLanguageDetection + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata + .MultiLanguageDetection + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata + .MultiLanguageDetection + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata + .MultiLanguageDetection + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata + .MultiLanguageDetection + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata + .MultiLanguageDetection + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+       * Metadata to enable multi language detection via template.
+       * 
+ * + * Protobuf type {@code + * google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection) + com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata + .MultiLanguageDetectionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.modelarmor.v1beta.V1mainProto + .internal_static_google_cloud_modelarmor_v1beta_Template_TemplateMetadata_MultiLanguageDetection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.modelarmor.v1beta.V1mainProto + .internal_static_google_cloud_modelarmor_v1beta_Template_TemplateMetadata_MultiLanguageDetection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata + .MultiLanguageDetection.class, + com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata + .MultiLanguageDetection.Builder.class); + } + + // Construct using + // com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enableMultiLanguageDetection_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.modelarmor.v1beta.V1mainProto + .internal_static_google_cloud_modelarmor_v1beta_Template_TemplateMetadata_MultiLanguageDetection_descriptor; + } + + @java.lang.Override + public com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection + getDefaultInstanceForType() { + return com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection + build() { + com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection + buildPartial() { + com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection + result = + new com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata + .MultiLanguageDetection(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enableMultiLanguageDetection_ = enableMultiLanguageDetection_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection) { + return mergeFrom( + (com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata + .MultiLanguageDetection) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection + other) { + if (other + == com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection + .getDefaultInstance()) return this; + if (other.getEnableMultiLanguageDetection() != false) { + setEnableMultiLanguageDetection(other.getEnableMultiLanguageDetection()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + enableMultiLanguageDetection_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean enableMultiLanguageDetection_; + + /** + * + * + *
+         * Required. If true, multi language detection will be enabled.
+         * 
+ * + * bool enable_multi_language_detection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enableMultiLanguageDetection. + */ + @java.lang.Override + public boolean getEnableMultiLanguageDetection() { + return enableMultiLanguageDetection_; + } + + /** + * + * + *
+         * Required. If true, multi language detection will be enabled.
+         * 
+ * + * bool enable_multi_language_detection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enableMultiLanguageDetection to set. + * @return This builder for chaining. + */ + public Builder setEnableMultiLanguageDetection(boolean value) { + + enableMultiLanguageDetection_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. If true, multi language detection will be enabled.
+         * 
+ * + * bool enable_multi_language_detection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearEnableMultiLanguageDetection() { + bitField0_ = (bitField0_ & ~0x00000001); + enableMultiLanguageDetection_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection) + } + + // @@protoc_insertion_point(class_scope:google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection) + private static final com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata + .MultiLanguageDetection + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata + .MultiLanguageDetection(); + } + + public static com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata + .MultiLanguageDetection + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MultiLanguageDetection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; public static final int IGNORE_PARTIAL_INVOCATION_FAILURES_FIELD_NUMBER = 1; private boolean ignorePartialInvocationFailures_ = false; @@ -484,6 +1143,71 @@ public boolean getLogSanitizeOperations() { return logSanitizeOperations_; } + public static final int MULTI_LANGUAGE_DETECTION_FIELD_NUMBER = 9; + private com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection + multiLanguageDetection_; + + /** + * + * + *
+     * Optional. Metadata for multi language detection.
+     * 
+ * + * + * .google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection multi_language_detection = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the multiLanguageDetection field is set. + */ + @java.lang.Override + public boolean hasMultiLanguageDetection() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. Metadata for multi language detection.
+     * 
+ * + * + * .google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection multi_language_detection = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The multiLanguageDetection. + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection + getMultiLanguageDetection() { + return multiLanguageDetection_ == null + ? com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection + .getDefaultInstance() + : multiLanguageDetection_; + } + + /** + * + * + *
+     * Optional. Metadata for multi language detection.
+     * 
+ * + * + * .google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection multi_language_detection = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata + .MultiLanguageDetectionOrBuilder + getMultiLanguageDetectionOrBuilder() { + return multiLanguageDetection_ == null + ? com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection + .getDefaultInstance() + : multiLanguageDetection_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -522,6 +1246,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (logSanitizeOperations_ != false) { output.writeBool(7, logSanitizeOperations_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(9, getMultiLanguageDetection()); + } getUnknownFields().writeTo(output); } @@ -562,6 +1289,11 @@ public int getSerializedSize() { if (logSanitizeOperations_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, logSanitizeOperations_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, getMultiLanguageDetection()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -589,6 +1321,10 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getCustomLlmResponseSafetyErrorMessage())) return false; if (getLogTemplateOperations() != other.getLogTemplateOperations()) return false; if (getLogSanitizeOperations() != other.getLogSanitizeOperations()) return false; + if (hasMultiLanguageDetection() != other.hasMultiLanguageDetection()) return false; + if (hasMultiLanguageDetection()) { + if (!getMultiLanguageDetection().equals(other.getMultiLanguageDetection())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -616,6 +1352,10 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLogTemplateOperations()); hash = (37 * hash) + LOG_SANITIZE_OPERATIONS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLogSanitizeOperations()); + if (hasMultiLanguageDetection()) { + hash = (37 * hash) + MULTI_LANGUAGE_DETECTION_FIELD_NUMBER; + hash = (53 * hash) + getMultiLanguageDetection().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -749,10 +1489,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMultiLanguageDetectionFieldBuilder(); + } } @java.lang.Override @@ -766,6 +1515,11 @@ public Builder clear() { customLlmResponseSafetyErrorMessage_ = ""; logTemplateOperations_ = false; logSanitizeOperations_ = false; + multiLanguageDetection_ = null; + if (multiLanguageDetectionBuilder_ != null) { + multiLanguageDetectionBuilder_.dispose(); + multiLanguageDetectionBuilder_ = null; + } return this; } @@ -825,6 +1579,15 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000040) != 0)) { result.logSanitizeOperations_ = logSanitizeOperations_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000080) != 0)) { + result.multiLanguageDetection_ = + multiLanguageDetectionBuilder_ == null + ? multiLanguageDetection_ + : multiLanguageDetectionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -901,6 +1664,9 @@ public Builder mergeFrom(com.google.cloud.modelarmor.v1beta.Template.TemplateMet if (other.getLogSanitizeOperations() != false) { setLogSanitizeOperations(other.getLogSanitizeOperations()); } + if (other.hasMultiLanguageDetection()) { + mergeMultiLanguageDetection(other.getMultiLanguageDetection()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -969,6 +1735,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case 56 + case 74: + { + input.readMessage( + getMultiLanguageDetectionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1546,6 +2319,242 @@ public Builder clearLogSanitizeOperations() { return this; } + private com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection + multiLanguageDetection_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection, + com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection + .Builder, + com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata + .MultiLanguageDetectionOrBuilder> + multiLanguageDetectionBuilder_; + + /** + * + * + *
+       * Optional. Metadata for multi language detection.
+       * 
+ * + * + * .google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection multi_language_detection = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the multiLanguageDetection field is set. + */ + public boolean hasMultiLanguageDetection() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+       * Optional. Metadata for multi language detection.
+       * 
+ * + * + * .google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection multi_language_detection = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The multiLanguageDetection. + */ + public com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection + getMultiLanguageDetection() { + if (multiLanguageDetectionBuilder_ == null) { + return multiLanguageDetection_ == null + ? com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection + .getDefaultInstance() + : multiLanguageDetection_; + } else { + return multiLanguageDetectionBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Optional. Metadata for multi language detection.
+       * 
+ * + * + * .google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection multi_language_detection = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMultiLanguageDetection( + com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection + value) { + if (multiLanguageDetectionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + multiLanguageDetection_ = value; + } else { + multiLanguageDetectionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Metadata for multi language detection.
+       * 
+ * + * + * .google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection multi_language_detection = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMultiLanguageDetection( + com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection + .Builder + builderForValue) { + if (multiLanguageDetectionBuilder_ == null) { + multiLanguageDetection_ = builderForValue.build(); + } else { + multiLanguageDetectionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Metadata for multi language detection.
+       * 
+ * + * + * .google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection multi_language_detection = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMultiLanguageDetection( + com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection + value) { + if (multiLanguageDetectionBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && multiLanguageDetection_ != null + && multiLanguageDetection_ + != com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata + .MultiLanguageDetection.getDefaultInstance()) { + getMultiLanguageDetectionBuilder().mergeFrom(value); + } else { + multiLanguageDetection_ = value; + } + } else { + multiLanguageDetectionBuilder_.mergeFrom(value); + } + if (multiLanguageDetection_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Optional. Metadata for multi language detection.
+       * 
+ * + * + * .google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection multi_language_detection = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMultiLanguageDetection() { + bitField0_ = (bitField0_ & ~0x00000080); + multiLanguageDetection_ = null; + if (multiLanguageDetectionBuilder_ != null) { + multiLanguageDetectionBuilder_.dispose(); + multiLanguageDetectionBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Metadata for multi language detection.
+       * 
+ * + * + * .google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection multi_language_detection = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection + .Builder + getMultiLanguageDetectionBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getMultiLanguageDetectionFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Optional. Metadata for multi language detection.
+       * 
+ * + * + * .google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection multi_language_detection = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata + .MultiLanguageDetectionOrBuilder + getMultiLanguageDetectionOrBuilder() { + if (multiLanguageDetectionBuilder_ != null) { + return multiLanguageDetectionBuilder_.getMessageOrBuilder(); + } else { + return multiLanguageDetection_ == null + ? com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection + .getDefaultInstance() + : multiLanguageDetection_; + } + } + + /** + * + * + *
+       * Optional. Metadata for multi language detection.
+       * 
+ * + * + * .google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection multi_language_detection = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection, + com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection + .Builder, + com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata + .MultiLanguageDetectionOrBuilder> + getMultiLanguageDetectionFieldBuilder() { + if (multiLanguageDetectionBuilder_ == null) { + multiLanguageDetectionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata + .MultiLanguageDetection, + com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata + .MultiLanguageDetection.Builder, + com.google.cloud.modelarmor.v1beta.Template.TemplateMetadata + .MultiLanguageDetectionOrBuilder>( + getMultiLanguageDetection(), getParentForChildren(), isClean()); + multiLanguageDetection_ = null; + } + return multiLanguageDetectionBuilder_; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/V1mainProto.java b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/V1mainProto.java index e7672db2280e..fb1f451f3080 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/V1mainProto.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/V1mainProto.java @@ -36,6 +36,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_modelarmor_v1beta_Template_TemplateMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_modelarmor_v1beta_Template_TemplateMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_modelarmor_v1beta_Template_TemplateMetadata_MultiLanguageDetection_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_modelarmor_v1beta_Template_TemplateMetadata_MultiLanguageDetection_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_modelarmor_v1beta_Template_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -232,7 +236,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/client.proto\032\037google/api/field_behavior" + ".proto\032\033google/api/field_info.proto\032\031goo" + "gle/api/resource.proto\032\033google/protobuf/empty.proto\032" - + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\200\007\n" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\301\010\n" + "\010Template\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\0224\n" + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" @@ -242,7 +246,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "filter_config\030\005 \001(\0132,.g" + "oogle.cloud.modelarmor.v1beta.FilterConfigB\003\340A\002\022Y\n" + "\021template_metadata\030\006 \001(\01329.goo" - + "gle.cloud.modelarmor.v1beta.Template.TemplateMetadataB\003\340A\001\032\331\002\n" + + "gle.cloud.modelarmor.v1beta.Template.TemplateMetadataB\003\340A\001\032\232\004\n" + "\020TemplateMetadata\022/\n" + "\"ignore_partial_invocation_failures\030\001 \001(\010B\003\340A\001\022,\n" + "\037custom_prompt_safety_error_code\030\002 \001(\005B\003\340A\001\022/\n" @@ -250,12 +254,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "%custom_llm_response_safety_error_code\030\004 \001(\005B\003\340A\001\0225\n" + "(custom_llm_response_safety_error_message\030\005 \001(\tB\003\340A\001\022$\n" + "\027log_template_operations\030\006 \001(\010B\003\340A\001\022$\n" - + "\027log_sanitize_operations\030\007 \001(\010B\003\340A\001\032-\n" + + "\027log_sanitize_operations\030\007 \001(\010B\003\340A\001\022w\n" + + "\030multi_language_detection\030\t \001(\0132P.google.cloud.modelarmor.v1beta.Templa" + + "te.TemplateMetadata.MultiLanguageDetectionB\003\340A\001\032F\n" + + "\026MultiLanguageDetection\022,\n" + + "\037enable_multi_language_detection\030\001 \001(\010B\003\340A\002\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:z\352Aw\n" - + "\"modelarmor.googleapi" - + "s.com/Template\022organizations/{organization}/locations/{location}/floorSetting*\r" + + "&modelarmor.googleapis.com/FloorSetting\0224projects/{project}/locations/{l" + + "ocation}/floorSetting\0222folders/{folder}/locations/{location}/floorSetting\022>organ" + + "izations/{organization}/locations/{location}/floorSetting*\r" + "floorSettings2\014floorSettingB#\n" + "!_enable_floor_setting_enforcement\"\257\001\n" + "\024ListTemplatesRequest\022:\n" @@ -286,8 +294,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB*\340A\002\372A$\n" + "\"modelarmor.googleapis.com/Template\"\317\001\n" + "\025CreateTemplateRequest\022:\n" - + "\006parent\030\001 \001(" - + "\tB*\340A\002\372A$\022\"modelarmor.googleapis.com/Template\022\030\n" + + "\006parent\030\001 \001(\tB*\340A" + + "\002\372A$\022\"modelarmor.googleapis.com/Template\022\030\n" + "\013template_id\030\002 \001(\tB\003\340A\002\022?\n" + "\010template\030\003" + " \001(\0132(.google.cloud.modelarmor.v1beta.TemplateB\003\340A\002\022\037\n\n" @@ -305,43 +313,45 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB.\340A\002\372A(\n" + "&modelarmor.googleapis.com/FloorSetting\"\233\001\n" + "\031UpdateFloorSettingRequest\022H\n\r" - + "floor_setting\030\001" - + " \001(\0132,.google.cloud.modelarmor.v1beta.FloorSettingB\003\340A\002\0224\n" + + "floor_setting\030\001 \001(\0132" + + ",.google.cloud.modelarmor.v1beta.FloorSettingB\003\340A\002\0224\n" + "\013update_mask\030\002" + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"\377\002\n" + "\014FilterConfig\022L\n" - + "\014rai_settings\030\001 \001(\01321.google." - + "cloud.modelarmor.v1beta.RaiFilterSettingsB\003\340A\001\022L\n" - + "\014sdp_settings\030\002 \001(\01321.google.cl" - + "oud.modelarmor.v1beta.SdpFilterSettingsB\003\340A\001\022k\n" - + " pi_and_jailbreak_filter_settings\030\003" - + " \001(\0132<.google.cloud.modelarmor.v1beta.PiAndJailbreakFilterSettingsB\003\340A\001\022f\n" - + "\035malicious_uri_filter_settings\030\004 \001(\0132:.googl" - + "e.cloud.modelarmor.v1beta.MaliciousUriFilterSettingsB\003\340A\001\"\351\002\n" + + "\014rai_settings\030\001 \001(\01321.google.cloud.m" + + "odelarmor.v1beta.RaiFilterSettingsB\003\340A\001\022L\n" + + "\014sdp_settings\030\002" + + " \001(\01321.google.cloud.modelarmor.v1beta.SdpFilterSettingsB\003\340A\001\022k\n" + + " pi_and_jailbreak_filter_settings\030\003 \001(\0132" + + "<.google.cloud.modelarmor.v1beta.PiAndJailbreakFilterSettingsB\003\340A\001\022f\n" + + "\035malicious_uri_filter_settings\030\004 \001(\0132:.google.cloud" + + ".modelarmor.v1beta.MaliciousUriFilterSettingsB\003\340A\001\"\351\002\n" + "\034PiAndJailbreakFilterSettings\022}\n" - + "\022filter_enforcement\030\001 \001(\0162\\.google.cloud.modelarmor.v1beta.PiAndJai" - + "lbreakFilterSettings.PiAndJailbreakFilterEnforcementB\003\340A\001\022W\n" - + "\020confidence_level\030\003 " - + "\001(\01628.google.cloud.modelarmor.v1beta.DetectionConfidenceLevelB\003\340A\001\"q\n" + + "\022filter_enforcement\030\001 \001(\0162\\.google" + + ".cloud.modelarmor.v1beta.PiAndJailbreakF" + + "ilterSettings.PiAndJailbreakFilterEnforcementB\003\340A\001\022W\n" + + "\020confidence_level\030\003 \001(\01628.g" + + "oogle.cloud.modelarmor.v1beta.DetectionConfidenceLevelB\003\340A\001\"q\n" + "\037PiAndJailbreakFilterEnforcement\0223\n" + "/PI_AND_JAILBREAK_FILTER_ENFORCEMENT_UNSPECIFIED\020\000\022\013\n" + "\007ENABLED\020\001\022\014\n" + "\010DISABLED\020\002\"\205\002\n" + "\032MaliciousUriFilterSettings\022y\n" - + "\022filter_enforcement\030\001 \001(\0162X.google.cloud.modelarmor.v1beta.Malici" - + "ousUriFilterSettings.MaliciousUriFilterEnforcementB\003\340A\001\"l\n" + + "\022filter_enforcement\030\001 \001(\0162X.goog" + + "le.cloud.modelarmor.v1beta.MaliciousUriF" + + "ilterSettings.MaliciousUriFilterEnforcementB\003\340A\001\"l\n" + "\035MaliciousUriFilterEnforcement\0220\n" + ",MALICIOUS_URI_FILTER_ENFORCEMENT_UNSPECIFIED\020\000\022\013\n" + "\007ENABLED\020\001\022\014\n" + "\010DISABLED\020\002\"\232\002\n" + "\021RaiFilterSettings\022U\n" - + "\013rai_filters\030\001" - + " \003(\0132;.google.cloud.modelarmor.v1beta.RaiFilterSettings.RaiFilterB\003\340A\002\032\255\001\n" + + "\013rai_filters\030\001 \003(" + + "\0132;.google.cloud.modelarmor.v1beta.RaiFilterSettings.RaiFilterB\003\340A\002\032\255\001\n" + "\tRaiFilter\022G\n" - + "\013filter_type\030\001 \001(\0162-.google.c" - + "loud.modelarmor.v1beta.RaiFilterTypeB\003\340A\002\022W\n" - + "\020confidence_level\030\002 \001(\01628.google.clo" - + "ud.modelarmor.v1beta.DetectionConfidenceLevelB\003\340A\001\"\310\001\n" + + "\013filter_type\030\001" + + " \001(\0162-.google.cloud.modelarmor.v1beta.RaiFilterTypeB\003\340A\002\022W\n" + + "\020confidence_level\030\002 \001(\01628.google.cloud.mode" + + "larmor.v1beta.DetectionConfidenceLevelB\003\340A\001\"\310\001\n" + "\021SdpFilterSettings\022K\n" + "\014basic_config\030\001" + " \001(\0132..google.cloud.modelarmor.v1beta.SdpBasicConfigB\003\340A\001H\000\022Q\n" @@ -349,107 +359,111 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\01321.google.cloud.modelarmor.v1beta.SdpAdvancedConfigB\003\340A\001H\000B\023\n" + "\021sdp_configuration\"\341\001\n" + "\016SdpBasicConfig\022i\n" - + "\022filter_enforcement\030\003 \001(\0162H.google.cloud.mode" - + "larmor.v1beta.SdpBasicConfig.SdpBasicConfigEnforcementB\003\340A\001\"d\n" + + "\022filter_enforcement\030\003 \001(\0162H.google.cloud.modelarmor." + + "v1beta.SdpBasicConfig.SdpBasicConfigEnforcementB\003\340A\001\"d\n" + "\031SdpBasicConfigEnforcement\022,\n" + "(SDP_BASIC_CONFIG_ENFORCEMENT_UNSPECIFIED\020\000\022\013\n" + "\007ENABLED\020\001\022\014\n" + "\010DISABLED\020\002\"T\n" + "\021SdpAdvancedConfig\022\035\n" + "\020inspect_template\030\001 \001(\tB\003\340A\001\022 \n" - + "\023deidentify_template\030\002 \001(\tB\003\340A\001\"\236\001\n" + + "\023deidentify_template\030\002 \001(\tB\003\340A\001\"\216\002\n" + "\031SanitizeUserPromptRequest\0228\n" + "\004name\030\001 \001(\tB*\340A\002\372A$\n" + "\"modelarmor.googleapis.com/Template\022G\n" - + "\020user_prompt_data\030\002 \001(" - + "\0132(.google.cloud.modelarmor.v1beta.DataItemB\003\340A\002\"\256\002\n" + + "\020user_prompt_data\030\002 \001(\0132(.goo" + + "gle.cloud.modelarmor.v1beta.DataItemB\003\340A\002\022n\n" + + "!multi_language_detection_metadata\030\006" + + " \001(\0132>.google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadataB\003\340A\001\"\256\002\n" + "\034SanitizeModelResponseRequest\0228\n" + "\004name\030\001 \001(\tB*\340A\002\372A$\n" + "\"modelarmor.googleapis.com/Template\022J\n" - + "\023model_response_data\030\002" - + " \001(\0132(.google.cloud.modelarmor.v1beta.DataItemB\003\340A\002\022\030\n" + + "\023model_response_data\030\002 \001(\0132(.goog" + + "le.cloud.modelarmor.v1beta.DataItemB\003\340A\002\022\030\n" + "\013user_prompt\030\004 \001(\tB\003\340A\001\022n\n" - + "!multi_language_detection_metadata\030\007" - + " \001(\0132>.google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadataB\003\340A\001\"r\n" + + "!multi_language_detection_metadata\030\007 \001(\0132>.google.c" + + "loud.modelarmor.v1beta.MultiLanguageDetectionMetadataB\003\340A\001\"r\n" + "\032SanitizeUserPromptResponse\022T\n" - + "\023sanitization_result\030\001" - + " \001(\01322.google.cloud.modelarmor.v1beta.SanitizationResultB\003\340A\003\"u\n" + + "\023sanitization_result\030\001 \001(\01322." + + "google.cloud.modelarmor.v1beta.SanitizationResultB\003\340A\003\"u\n" + "\035SanitizeModelResponseResponse\022T\n" - + "\023sanitization_result\030\001" - + " \001(\01322.google.cloud.modelarmor.v1beta.SanitizationResultB\003\340A\003\"\335\004\n" + + "\023sanitization_result\030\001 \001(\01322.g" + + "oogle.cloud.modelarmor.v1beta.SanitizationResultB\003\340A\003\"\335\004\n" + "\022SanitizationResult\022Q\n" - + "\022filter_match_state\030\001 \001(\0162" - + "0.google.cloud.modelarmor.v1beta.FilterMatchStateB\003\340A\003\022b\n" - + "\016filter_results\030\002 \003(\0132E" - + ".google.cloud.modelarmor.v1beta.SanitizationResult.FilterResultsEntryB\003\340A\003\022P\n" + + "\022filter_match_state\030\001 \001(\01620.google.cloud." + + "modelarmor.v1beta.FilterMatchStateB\003\340A\003\022b\n" + + "\016filter_results\030\002 \003(\0132E.google.cloud.m" + + "odelarmor.v1beta.SanitizationResult.FilterResultsEntryB\003\340A\003\022P\n" + "\021invocation_result\030\004" + " \001(\01620.google.cloud.modelarmor.v1beta.InvocationResultB\003\340A\003\022k\n" - + "\025sanitization_metadata\030\003 \001(\0132G.google.clo" - + "ud.modelarmor.v1beta.SanitizationResult.SanitizationMetadataB\003\340A\003\032m\n" + + "\025sanitization_metadata\030\003 \001(\0132G.google.cloud.modelarmor.v" + + "1beta.SanitizationResult.SanitizationMetadataB\003\340A\003\032m\n" + "\024SanitizationMetadata\022\022\n\n" + "error_code\030\001 \001(\003\022\025\n\r" + "error_message\030\002 \001(\t\022*\n" + "\"ignore_partial_invocation_failures\030\003 \001(\010\032b\n" + "\022FilterResultsEntry\022\013\n" + "\003key\030\001 \001(\t\022;\n" - + "\005value\030\002 \001(\0132,.google.cloud.modelarmor.v1beta.FilterResult:\0028\001\"" - + " \n" - + "\036MultiLanguageDetectionMetadata\"\264\004\n" + + "\005value\030\002" + + " \001(\0132,.google.cloud.modelarmor.v1beta.FilterResult:\0028\001\"l\n" + + "\036MultiLanguageDetectionMetadata\022\034\n" + + "\017source_language\030\001 \001(\tB\003\340A\001\022,\n" + + "\037enable_multi_language_detection\030\002 \001(\010B\003\340A\001\"\264\004\n" + "\014FilterResult\022L\n" - + "\021rai_filter_result\030\001 \001(\0132/.goo" - + "gle.cloud.modelarmor.v1beta.RaiFilterResultH\000\022L\n" - + "\021sdp_filter_result\030\002 \001(\0132/.googl" - + "e.cloud.modelarmor.v1beta.SdpFilterResultH\000\022d\n" - + "\036pi_and_jailbreak_filter_result\030\003 " - + "\001(\0132:.google.cloud.modelarmor.v1beta.PiAndJailbreakFilterResultH\000\022_\n" - + "\033malicious_uri_filter_result\030\004 \001(\01328.google.cloud.mo" - + "delarmor.v1beta.MaliciousUriFilterResultH\000\022U\n" - + "\031csam_filter_filter_result\030\005 \001(\01320." - + "google.cloud.modelarmor.v1beta.CsamFilterResultH\000\022Y\n" - + "\030virus_scan_filter_result\030\006 " - + "\001(\01325.google.cloud.modelarmor.v1beta.VirusScanFilterResultH\000B\017\n\r" + + "\021rai_filter_result\030\001" + + " \001(\0132/.google.cloud.modelarmor.v1beta.RaiFilterResultH\000\022L\n" + + "\021sdp_filter_result\030\002" + + " \001(\0132/.google.cloud.modelarmor.v1beta.SdpFilterResultH\000\022d\n" + + "\036pi_and_jailbreak_filter_result\030\003 \001(\0132:.google.cloud." + + "modelarmor.v1beta.PiAndJailbreakFilterResultH\000\022_\n" + + "\033malicious_uri_filter_result\030\004 " + + "\001(\01328.google.cloud.modelarmor.v1beta.MaliciousUriFilterResultH\000\022U\n" + + "\031csam_filter_filter_result\030\005" + + " \001(\01320.google.cloud.modelarmor.v1beta.CsamFilterResultH\000\022Y\n" + + "\030virus_scan_filter_result\030\006 \001(\01325.google.cloud." + + "modelarmor.v1beta.VirusScanFilterResultH\000B\017\n\r" + "filter_result\"\340\005\n" + "\017RaiFilterResult\022R\n" - + "\017execution_state\030\001 \001" - + "(\01624.google.cloud.modelarmor.v1beta.FilterExecutionStateB\003\340A\003\022B\n\r" + + "\017execution_state\030\001 \001(\01624.google.cloud.m" + + "odelarmor.v1beta.FilterExecutionStateB\003\340A\003\022B\n\r" + "message_items\030\002 \003(\0132+.google.cloud.modelarmor.v1beta.MessageItem\022J\n" - + "\013match_state\030\003 \001(\01620.google." - + "cloud.modelarmor.v1beta.FilterMatchStateB\003\340A\003\022j\n" - + "\027rai_filter_type_results\030\004 \003(\0132I" - + ".google.cloud.modelarmor.v1beta.RaiFilterResult.RaiFilterTypeResultsEntry\032\371\001\n" + + "\013match_state\030\003" + + " \001(\01620.google.cloud.modelarmor.v1beta.FilterMatchStateB\003\340A\003\022j\n" + + "\027rai_filter_type_results\030\004 \003(\0132I.google.cloud.model" + + "armor.v1beta.RaiFilterResult.RaiFilterTypeResultsEntry\032\371\001\n" + "\023RaiFilterTypeResult\022B\n" - + "\013filter_type\030\001 \001(\0162-" - + ".google.cloud.modelarmor.v1beta.RaiFilterType\022R\n" - + "\020confidence_level\030\002 \001(\01628.google" - + ".cloud.modelarmor.v1beta.DetectionConfidenceLevel\022J\n" - + "\013match_state\030\003 \001(\01620.google." - + "cloud.modelarmor.v1beta.FilterMatchStateB\003\340A\003\032\200\001\n" + + "\013filter_type\030\001" + + " \001(\0162-.google.cloud.modelarmor.v1beta.RaiFilterType\022R\n" + + "\020confidence_level\030\002" + + " \001(\01628.google.cloud.modelarmor.v1beta.DetectionConfidenceLevel\022J\n" + + "\013match_state\030\003" + + " \001(\01620.google.cloud.modelarmor.v1beta.FilterMatchStateB\003\340A\003\032\200\001\n" + "\031RaiFilterTypeResultsEntry\022\013\n" + "\003key\030\001 \001(\t\022R\n" - + "\005value\030\002 \001(\0132C.google.cloud.m" - + "odelarmor.v1beta.RaiFilterResult.RaiFilterTypeResult:\0028\001\"\271\001\n" + + "\005value\030\002 \001(\0132C.google.cloud.modelarmor.v1beta.Ra" + + "iFilterResult.RaiFilterTypeResult:\0028\001\"\271\001\n" + "\017SdpFilterResult\022J\n" - + "\016inspect_result\030\001" - + " \001(\01320.google.cloud.modelarmor.v1beta.SdpInspectResultH\000\022P\n" - + "\021deidentify_result\030\002" - + " \001(\01323.google.cloud.modelarmor.v1beta.SdpDeidentifyResultH\000B\010\n" + + "\016inspect_result\030\001 \001(" + + "\01320.google.cloud.modelarmor.v1beta.SdpInspectResultH\000\022P\n" + + "\021deidentify_result\030\002 \001(\013" + + "23.google.cloud.modelarmor.v1beta.SdpDeidentifyResultH\000B\010\n" + "\006result\"\320\002\n" + "\020SdpInspectResult\022R\n" - + "\017execution_state\030\001" - + " \001(\01624.google.cloud.modelarmor.v1beta.FilterExecutionStateB\003\340A\003\022B\n\r" + + "\017execution_state\030\001 \001(\01624.google" + + ".cloud.modelarmor.v1beta.FilterExecutionStateB\003\340A\003\022B\n\r" + "message_items\030\002 \003(\0132+.google.cloud.modelarmor.v1beta.MessageItem\022J\n" - + "\013match_state\030\003 \001(\01620" - + ".google.cloud.modelarmor.v1beta.FilterMatchStateB\003\340A\003\022<\n" + + "\013match_state\030\003" + + " \001(\01620.google.cloud.modelarmor.v1beta.FilterMatchStateB\003\340A\003\022<\n" + "\010findings\030\004 \003(\0132*.google.cloud.modelarmor.v1beta.SdpFinding\022\032\n" + "\022findings_truncated\030\005 \001(\010\"j\n" + "\010DataItem\022\016\n" + "\004text\030\001 \001(\tH\000\022A\n" - + "\tbyte_item\030\002 \001(\0132,.google." - + "cloud.modelarmor.v1beta.ByteDataItemH\000B\013\n" + + "\tbyte_item\030\002" + + " \001(\0132,.google.cloud.modelarmor.v1beta.ByteDataItemH\000B\013\n" + "\tdata_item\"\236\002\n" + "\014ByteDataItem\022V\n" - + "\016byte_data_type\030\001" - + " \001(\01629.google.cloud.modelarmor.v1beta.ByteDataItem.ByteItemTypeB\003\340A\002\022\026\n" + + "\016byte_data_type\030\001 \001(\01629.goog" + + "le.cloud.modelarmor.v1beta.ByteDataItem.ByteItemTypeB\003\340A\002\022\026\n" + "\tbyte_data\030\002 \001(\014B\003\340A\002\"\235\001\n" + "\014ByteItemType\022\036\n" + "\032BYTE_ITEM_TYPE_UNSPECIFIED\020\000\022\022\n" @@ -461,51 +475,52 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003TXT\020\006\022\007\n" + "\003CSV\020\007\"\340\002\n" + "\023SdpDeidentifyResult\022R\n" - + "\017execution_state\030\001 \001(\01624.google.c" - + "loud.modelarmor.v1beta.FilterExecutionStateB\003\340A\003\022B\n\r" + + "\017execution_state\030\001" + + " \001(\01624.google.cloud.modelarmor.v1beta.FilterExecutionStateB\003\340A\003\022B\n\r" + "message_items\030\002 \003(\0132+.google.cloud.modelarmor.v1beta.MessageItem\022J\n" - + "\013match_state\030\003" - + " \001(\01620.google.cloud.modelarmor.v1beta.FilterMatchStateB\003\340A\003\0226\n" + + "\013match_state\030\003 \001(\01620" + + ".google.cloud.modelarmor.v1beta.FilterMatchStateB\003\340A\003\0226\n" + "\004data\030\004 \001(\0132(.google.cloud.modelarmor.v1beta.DataItem\022\031\n" + "\021transformed_bytes\030\005 \001(\003\022\022\n\n" - + "info_types\030\006 \003(\t\"\324\002\n\n" + + "info_types\030\006 \003(\t\"\324\002\n" + + "\n" + "SdpFinding\022\021\n" + "\tinfo_type\030\001 \001(\t\022H\n\n" - + "likelihood\030\002 \001(\01624.google.c" - + "loud.modelarmor.v1beta.SdpFindingLikelihood\022O\n" - + "\010location\030\003 \001(\0132=.google.cloud.mod" - + "elarmor.v1beta.SdpFinding.SdpFindingLocation\032\227\001\n" + + "likelihood\030\002" + + " \001(\01624.google.cloud.modelarmor.v1beta.SdpFindingLikelihood\022O\n" + + "\010location\030\003 \001" + + "(\0132=.google.cloud.modelarmor.v1beta.SdpFinding.SdpFindingLocation\032\227\001\n" + "\022SdpFindingLocation\022=\n\n" + "byte_range\030\001 \001(\0132).google.cloud.modelarmor.v1beta.RangeInfo\022B\n" - + "\017codepoint_range\030\002 \001(\0132).go" - + "ogle.cloud.modelarmor.v1beta.RangeInfo\"\324\002\n" + + "\017codepoint_range\030\002" + + " \001(\0132).google.cloud.modelarmor.v1beta.RangeInfo\"\324\002\n" + "\032PiAndJailbreakFilterResult\022R\n" - + "\017execution_state\030\001" - + " \001(\01624.google.cloud.modelarmor.v1beta.FilterExecutionStateB\003\340A\003\022B\n\r" - + "message_items\030\002 \003(\0132+.google.cloud.modelarmor.v1beta.MessageItem\022J\n" - + "\013match_state\030\003 \001" - + "(\01620.google.cloud.modelarmor.v1beta.FilterMatchStateB\003\340A\003\022R\n" - + "\020confidence_level\030\005 " - + "\001(\01628.google.cloud.modelarmor.v1beta.DetectionConfidenceLevel\"\333\003\n" - + "\030MaliciousUriFilterResult\022R\n" + "\017execution_state\030\001 \001(\01624.go" + "ogle.cloud.modelarmor.v1beta.FilterExecutionStateB\003\340A\003\022B\n\r" + "message_items\030\002 \003(\0132+.google.cloud.modelarmor.v1beta.MessageItem\022J\n" + "\013match_state\030\003 \001(\01620.google.cloud.m" - + "odelarmor.v1beta.FilterMatchStateB\003\340A\003\022u\n" - + "\033malicious_uri_matched_items\030\004 \003(\0132P.go" - + "ogle.cloud.modelarmor.v1beta.MaliciousUriFilterResult.MaliciousUriMatchedItem\032d\n" + + "odelarmor.v1beta.FilterMatchStateB\003\340A\003\022R\n" + + "\020confidence_level\030\005 \001(\01628.google.cloud." + + "modelarmor.v1beta.DetectionConfidenceLevel\"\333\003\n" + + "\030MaliciousUriFilterResult\022R\n" + + "\017execution_state\030\001" + + " \001(\01624.google.cloud.modelarmor.v1beta.FilterExecutionStateB\003\340A\003\022B\n\r" + + "message_items\030\002 \003(\0132+.google.cloud.modelarmor.v1beta.MessageItem\022J\n" + + "\013match_state\030\003" + + " \001(\01620.google.cloud.modelarmor.v1beta.FilterMatchStateB\003\340A\003\022u\n" + + "\033malicious_uri_matched_items\030\004 \003(\0132P.google.cloud.modelarm" + + "or.v1beta.MaliciousUriFilterResult.MaliciousUriMatchedItem\032d\n" + "\027MaliciousUriMatchedItem\022\013\n" + "\003uri\030\001 \001(\t\022<\n" + "\tlocations\030\002 \003(\0132).google.cloud.modelarmor.v1beta.RangeInfo\"\264\004\n" + "\025VirusScanFilterResult\022R\n" - + "\017execution_state\030\001 \001(\01624.google." - + "cloud.modelarmor.v1beta.FilterExecutionStateB\003\340A\003\022B\n\r" + + "\017execution_state\030\001" + + " \001(\01624.google.cloud.modelarmor.v1beta.FilterExecutionStateB\003\340A\003\022B\n\r" + "message_items\030\002 \003(\0132+.google.cloud.modelarmor.v1beta.MessageItem\022J\n" - + "\013match_state\030\003" - + " \001(\01620.google.cloud.modelarmor.v1beta.FilterMatchStateB\003\340A\003\022f\n" - + "\024scanned_content_type\030\004 \001(\0162H.google.cloud.m" - + "odelarmor.v1beta.VirusScanFilterResult.ScannedContentType\022\031\n" + + "\013match_state\030\003 \001(\0162" + + "0.google.cloud.modelarmor.v1beta.FilterMatchStateB\003\340A\003\022f\n" + + "\024scanned_content_type\030\004 \001(\0162H.google.cloud.modelarmor.v1beta.Vi" + + "rusScanFilterResult.ScannedContentType\022\031\n" + "\014scanned_size\030\005 \001(\003H\000\210\001\001\022B\n\r" + "virus_details\030\006 \003(\0132+.google.cloud.modelarmor.v1beta.VirusDetail\"_\n" + "\022ScannedContentType\022$\n" @@ -517,8 +532,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013VirusDetail\022\016\n" + "\006vendor\030\001 \001(\t\022\r\n" + "\005names\030\002 \003(\t\022K\n" - + "\013threat_type\030\003" - + " \001(\01626.google.cloud.modelarmor.v1beta.VirusDetail.ThreatType\"\243\001\n\n" + + "\013threat_type\030\003 \001(\01626.go" + + "ogle.cloud.modelarmor.v1beta.VirusDetail.ThreatType\"\243\001\n\n" + "ThreatType\022\033\n" + "\027THREAT_TYPE_UNSPECIFIED\020\000\022\013\n" + "\007UNKNOWN\020\001\022\021\n\r" @@ -527,14 +542,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033POTENTIALLY_HARMFUL_CONTENT\020\004\022 \n" + "\034POTENTIALLY_UNWANTED_CONTENT\020\005\"\366\001\n" + "\020CsamFilterResult\022R\n" - + "\017execution_state\030\001 \001" - + "(\01624.google.cloud.modelarmor.v1beta.FilterExecutionStateB\003\340A\003\022B\n\r" + + "\017execution_state\030\001 \001(\01624.google.cloud.m" + + "odelarmor.v1beta.FilterExecutionStateB\003\340A\003\022B\n\r" + "message_items\030\002 \003(\0132+.google.cloud.modelarmor.v1beta.MessageItem\022J\n" - + "\013match_state\030\003 \001(\01620.google." - + "cloud.modelarmor.v1beta.FilterMatchStateB\003\340A\003\"\274\001\n" + + "\013match_state\030\003" + + " \001(\01620.google.cloud.modelarmor.v1beta.FilterMatchStateB\003\340A\003\"\274\001\n" + "\013MessageItem\022M\n" - + "\014message_type\030\001 " - + "\001(\01627.google.cloud.modelarmor.v1beta.MessageItem.MessageType\022\017\n" + + "\014message_type\030\001 \001(\01627.google.cloud." + + "modelarmor.v1beta.MessageItem.MessageType\022\017\n" + "\007message\030\002 \001(\t\"M\n" + "\013MessageType\022\034\n" + "\030MESSAGE_TYPE_UNSPECIFIED\020\000\022\010\n" @@ -578,53 +593,54 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007PARTIAL\020\002\022\013\n" + "\007FAILURE\020\0032\274\021\n\n" + "ModelArmor\022\300\001\n\r" - + "ListTemplates\0224.google.cloud.modelarmor.v1beta.ListTemplatesRequest\0325.goo" - + "gle.cloud.modelarmor.v1beta.ListTemplate" - + "sResponse\"B\332A\006parent\202\323\344\223\0023\0221/v1beta/{par" - + "ent=projects/*/locations/*}/templates\022\255\001\n" - + "\013GetTemplate\0222.google.cloud.modelarmor." - + "v1beta.GetTemplateRequest\032(.google.cloud" - + ".modelarmor.v1beta.Template\"@\332A\004name\202\323\344\223" - + "\0023\0221/v1beta/{name=projects/*/locations/*/templates/*}\022\324\001\n" - + "\016CreateTemplate\0225.google.cloud.modelarmor.v1beta.CreateTemplate" - + "Request\032(.google.cloud.modelarmor.v1beta" - + ".Template\"a\332A\033parent,template,template_i" - + "d\202\323\344\223\002=\"1/v1beta/{parent=projects/*/locations/*}/templates:\010template\022\326\001\n" - + "\016UpdateTemplate\0225.google.cloud.modelarmor.v1beta" - + ".UpdateTemplateRequest\032(.google.cloud.mo" - + "delarmor.v1beta.Template\"c\332A\024template,up" - + "date_mask\202\323\344\223\002F2:/v1beta/{template.name=" - + "projects/*/locations/*/templates/*}:\010template\022\241\001\n" - + "\016DeleteTemplate\0225.google.cloud.modelarmor.v1beta.DeleteTemplateRequest\032" - + "\026.google.protobuf.Empty\"@\332A\004name\202\323\344\223\0023*1" - + "/v1beta/{name=projects/*/locations/*/templates/*}\022\254\002\n" - + "\017GetFloorSetting\0226.google.cloud.modelarmor.v1beta.GetFloorSettingRe" - + "quest\032,.google.cloud.modelarmor.v1beta.F" - + "loorSetting\"\262\001\332A\004name\202\323\344\223\002\244\001\0222/v1beta/{n" - + "ame=projects/*/locations/*/floorSetting}Z3\0221/v1beta/{name=folders/*/locations/*/" - + "floorSetting}Z9\0227/v1beta/{name=organizations/*/locations/*/floorSetting}\022\236\003\n" - + "\022UpdateFloorSetting\0229.google.cloud.modelarmo" - + "r.v1beta.UpdateFloorSettingRequest\032,.google.cloud.modelarmor.v1beta.FloorSetting" - + "\"\236\002\332A\031floor_setting,update_mask\202\323\344\223\002\373\0012@" - + "/v1beta/{floor_setting.name=projects/*/locations/*/floorSetting}:\r" + + "ListTemplates\0224.google.cloud.modelarmor.v1beta.ListT" + + "emplatesRequest\0325.google.cloud.modelarmo" + + "r.v1beta.ListTemplatesResponse\"B\332A\006paren" + + "t\202\323\344\223\0023\0221/v1beta/{parent=projects/*/locations/*}/templates\022\255\001\n" + + "\013GetTemplate\0222.google.cloud.modelarmor.v1beta.GetTemplateR" + + "equest\032(.google.cloud.modelarmor.v1beta." + + "Template\"@\332A\004name\202\323\344\223\0023\0221/v1beta/{name=projects/*/locations/*/templates/*}\022\324\001\n" + + "\016CreateTemplate\0225.google.cloud.modelarmor." + + "v1beta.CreateTemplateRequest\032(.google.cl" + + "oud.modelarmor.v1beta.Template\"a\332A\033paren" + + "t,template,template_id\202\323\344\223\002=\"1/v1beta/{p" + + "arent=projects/*/locations/*}/templates:\010template\022\326\001\n" + + "\016UpdateTemplate\0225.google.cloud.modelarmor.v1beta.UpdateTemplateRequ" + + "est\032(.google.cloud.modelarmor.v1beta.Tem" + + "plate\"c\332A\024template,update_mask\202\323\344\223\002F2:/v" + + "1beta/{template.name=projects/*/locations/*/templates/*}:\010template\022\241\001\n" + + "\016DeleteTemplate\0225.google.cloud.modelarmor.v1beta.D" + + "eleteTemplateRequest\032\026.google.protobuf.E" + + "mpty\"@\332A\004name\202\323\344\223\0023*1/v1beta/{name=projects/*/locations/*/templates/*}\022\254\002\n" + + "\017GetFloorSetting\0226.google.cloud.modelarmor.v1b" + + "eta.GetFloorSettingRequest\032,.google.clou" + + "d.modelarmor.v1beta.FloorSetting\"\262\001\332A\004na" + + "me\202\323\344\223\002\244\001\0222/v1beta/{name=projects/*/loca" + + "tions/*/floorSetting}Z3\0221/v1beta/{name=folders/*/locations/*/floorSetting}Z9\0227/v" + + "1beta/{name=organizations/*/locations/*/floorSetting}\022\236\003\n" + + "\022UpdateFloorSetting\0229.google.cloud.modelarmor.v1beta.UpdateFloo" + + "rSettingRequest\032,.google.cloud.modelarmo" + + "r.v1beta.FloorSetting\"\236\002\332A\031floor_setting" + + ",update_mask\202\323\344\223\002\373\0012@/v1beta/{floor_sett" + + "ing.name=projects/*/locations/*/floorSetting}:\r" + "floor_settingZP2?/v1beta/{floor_setting.name=folders/*/locations/*/floorSetting}:\r" - + "floor_settin" - + "gZV2E/v1beta/{floor_setting.name=organizations/*/locations/*/floorSetting}:\r" + + "floor_settingZV2E/v1beta/{floor" + + "_setting.name=organizations/*/locations/*/floorSetting}:\r" + "floor_setting\022\334\001\n" - + "\022SanitizeUserPrompt\0229.google.cloud.modelarmor.v1beta.SanitizeUserPr" - + "omptRequest\032:.google.cloud.modelarmor.v1" - + "beta.SanitizeUserPromptResponse\"O\202\323\344\223\002I\"" - + "D/v1beta/{name=projects/*/locations/*/templates/*}:sanitizeUserPrompt:\001*\022\350\001\n" - + "\025SanitizeModelResponse\022<.google.cloud.modela" - + "rmor.v1beta.SanitizeModelResponseRequest\032=.google.cloud.modelarmor.v1beta.Saniti" - + "zeModelResponseResponse\"R\202\323\344\223\002L\"G/v1beta" - + "/{name=projects/*/locations/*/templates/" - + "*}:sanitizeModelResponse:\001*\032M\312A\031modelarm" - + "or.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\271\001\n" - + "\"com.google.cloud.modelarmor.v1betaB\013V1mainProtoP\001" - + "ZBcloud.google.com/go/modelarmor/apiv1be" - + "ta/modelarmorpb;modelarmorpb\252\002\036Google.Cl" - + "oud.ModelArmor.V1Beta\312\002\036Google\\Cloud\\ModelArmor\\V1betab\006proto3" + + "\022SanitizeUserPrompt\0229.google.cloud.modelarmor." + + "v1beta.SanitizeUserPromptRequest\032:.google.cloud.modelarmor.v1beta.SanitizeUserPr" + + "omptResponse\"O\202\323\344\223\002I\"D/v1beta/{name=proj" + + "ects/*/locations/*/templates/*}:sanitizeUserPrompt:\001*\022\350\001\n" + + "\025SanitizeModelResponse\022<.google.cloud.modelarmor.v1beta.Sanitiz" + + "eModelResponseRequest\032=.google.cloud.modelarmor.v1beta.SanitizeModelResponseResp" + + "onse\"R\202\323\344\223\002L\"G/v1beta/{name=projects/*/l" + + "ocations/*/templates/*}:sanitizeModelRes" + + "ponse:\001*\032M\312A\031modelarmor.googleapis.com\322A" + + ".https://www.googleapis.com/auth/cloud-platformB\271\001\n" + + "\"com.google.cloud.modelarmor.v1betaB\013V1mainProtoP\001ZBcloud.google.com/" + + "go/modelarmor/apiv1beta/modelarmorpb;mod" + + "elarmorpb\252\002\036Google.Cloud.ModelArmor.V1Be" + + "ta\312\002\036Google\\Cloud\\ModelArmor\\V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -660,6 +676,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CustomLlmResponseSafetyErrorMessage", "LogTemplateOperations", "LogSanitizeOperations", + "MultiLanguageDetection", + }); + internal_static_google_cloud_modelarmor_v1beta_Template_TemplateMetadata_MultiLanguageDetection_descriptor = + internal_static_google_cloud_modelarmor_v1beta_Template_TemplateMetadata_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_modelarmor_v1beta_Template_TemplateMetadata_MultiLanguageDetection_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_modelarmor_v1beta_Template_TemplateMetadata_MultiLanguageDetection_descriptor, + new java.lang.String[] { + "EnableMultiLanguageDetection", }); internal_static_google_cloud_modelarmor_v1beta_Template_LabelsEntry_descriptor = internal_static_google_cloud_modelarmor_v1beta_Template_descriptor.getNestedTypes().get(1); @@ -816,7 +843,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1beta_SanitizeUserPromptRequest_descriptor, new java.lang.String[] { - "Name", "UserPromptData", + "Name", "UserPromptData", "MultiLanguageDetectionMetadata", }); internal_static_google_cloud_modelarmor_v1beta_SanitizeModelResponseRequest_descriptor = getDescriptor().getMessageTypes().get(18); @@ -875,7 +902,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_modelarmor_v1beta_MultiLanguageDetectionMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1beta_MultiLanguageDetectionMetadata_descriptor, - new java.lang.String[] {}); + new java.lang.String[] { + "SourceLanguage", "EnableMultiLanguageDetection", + }); internal_static_google_cloud_modelarmor_v1beta_FilterResult_descriptor = getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_modelarmor_v1beta_FilterResult_fieldAccessorTable = diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/proto/google/cloud/modelarmor/v1beta/service.proto b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/proto/google/cloud/modelarmor/v1beta/service.proto index c18f181a8045..8a395a17adce 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/proto/google/cloud/modelarmor/v1beta/service.proto +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/proto/google/cloud/modelarmor/v1beta/service.proto @@ -239,6 +239,13 @@ message Template { // Message describing TemplateMetadata message TemplateMetadata { + // Metadata to enable multi language detection via template. + message MultiLanguageDetection { + // Required. If true, multi language detection will be enabled. + bool enable_multi_language_detection = 1 + [(google.api.field_behavior) = REQUIRED]; + } + // Optional. If true, partial detector failures should be ignored. bool ignore_partial_invocation_failures = 1 [(google.api.field_behavior) = OPTIONAL]; @@ -269,6 +276,10 @@ message Template { // Optional. If true, log sanitize operations. bool log_sanitize_operations = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Metadata for multi language detection. + MultiLanguageDetection multi_language_detection = 9 + [(google.api.field_behavior) = OPTIONAL]; } // Identifier. name of resource @@ -659,6 +670,10 @@ message SanitizeUserPromptRequest { // Required. User prompt data to sanitize. DataItem user_prompt_data = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Metadata related to Multi Language Detection. + MultiLanguageDetectionMetadata multi_language_detection_metadata = 6 + [(google.api.field_behavior) = OPTIONAL]; } // Sanitize Model Response request. @@ -678,7 +693,7 @@ message SanitizeModelResponseRequest { // Optional. User Prompt associated with Model response. string user_prompt = 4 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Metadata related for Translations. + // Optional. Metadata related for multi language detection. MultiLanguageDetectionMetadata multi_language_detection_metadata = 7 [(google.api.field_behavior) = OPTIONAL]; } @@ -740,8 +755,18 @@ message SanitizationResult { [(google.api.field_behavior) = OUTPUT_ONLY]; } -// Message for Translation Support. -message MultiLanguageDetectionMetadata {} +// Message for Enabling Multi Language Detection. +message MultiLanguageDetectionMetadata { + // Optional. Optional Source language of the user prompt. + // + // If multi-language detection is enabled but language is not set in that case + // we would automatically detect the source language. + string source_language = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Enable detection of multi-language prompts and responses. + bool enable_multi_language_detection = 2 + [(google.api.field_behavior) = OPTIONAL]; +} // Filter Result obtained after Sanitization operations. message FilterResult { diff --git a/java-modelarmor/samples/snippets/generated/com/google/cloud/modelarmor/v1/modelarmor/sanitizemodelresponse/AsyncSanitizeModelResponse.java b/java-modelarmor/samples/snippets/generated/com/google/cloud/modelarmor/v1/modelarmor/sanitizemodelresponse/AsyncSanitizeModelResponse.java index 40e934d6c2ce..fd4bf6552c7a 100644 --- a/java-modelarmor/samples/snippets/generated/com/google/cloud/modelarmor/v1/modelarmor/sanitizemodelresponse/AsyncSanitizeModelResponse.java +++ b/java-modelarmor/samples/snippets/generated/com/google/cloud/modelarmor/v1/modelarmor/sanitizemodelresponse/AsyncSanitizeModelResponse.java @@ -20,6 +20,7 @@ import com.google.api.core.ApiFuture; import com.google.cloud.modelarmor.v1.DataItem; import com.google.cloud.modelarmor.v1.ModelArmorClient; +import com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata; import com.google.cloud.modelarmor.v1.SanitizeModelResponseRequest; import com.google.cloud.modelarmor.v1.SanitizeModelResponseResponse; import com.google.cloud.modelarmor.v1.TemplateName; @@ -42,6 +43,8 @@ public static void asyncSanitizeModelResponse() throws Exception { .setName(TemplateName.of("[PROJECT]", "[LOCATION]", "[TEMPLATE]").toString()) .setModelResponseData(DataItem.newBuilder().build()) .setUserPrompt("userPrompt1504308495") + .setMultiLanguageDetectionMetadata( + MultiLanguageDetectionMetadata.newBuilder().build()) .build(); ApiFuture future = modelArmorClient.sanitizeModelResponseCallable().futureCall(request); diff --git a/java-modelarmor/samples/snippets/generated/com/google/cloud/modelarmor/v1/modelarmor/sanitizemodelresponse/SyncSanitizeModelResponse.java b/java-modelarmor/samples/snippets/generated/com/google/cloud/modelarmor/v1/modelarmor/sanitizemodelresponse/SyncSanitizeModelResponse.java index baa6d5266465..cc5910474d55 100644 --- a/java-modelarmor/samples/snippets/generated/com/google/cloud/modelarmor/v1/modelarmor/sanitizemodelresponse/SyncSanitizeModelResponse.java +++ b/java-modelarmor/samples/snippets/generated/com/google/cloud/modelarmor/v1/modelarmor/sanitizemodelresponse/SyncSanitizeModelResponse.java @@ -19,6 +19,7 @@ // [START modelarmor_v1_generated_ModelArmor_SanitizeModelResponse_sync] import com.google.cloud.modelarmor.v1.DataItem; import com.google.cloud.modelarmor.v1.ModelArmorClient; +import com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata; import com.google.cloud.modelarmor.v1.SanitizeModelResponseRequest; import com.google.cloud.modelarmor.v1.SanitizeModelResponseResponse; import com.google.cloud.modelarmor.v1.TemplateName; @@ -41,6 +42,8 @@ public static void syncSanitizeModelResponse() throws Exception { .setName(TemplateName.of("[PROJECT]", "[LOCATION]", "[TEMPLATE]").toString()) .setModelResponseData(DataItem.newBuilder().build()) .setUserPrompt("userPrompt1504308495") + .setMultiLanguageDetectionMetadata( + MultiLanguageDetectionMetadata.newBuilder().build()) .build(); SanitizeModelResponseResponse response = modelArmorClient.sanitizeModelResponse(request); } diff --git a/java-modelarmor/samples/snippets/generated/com/google/cloud/modelarmor/v1/modelarmor/sanitizeuserprompt/AsyncSanitizeUserPrompt.java b/java-modelarmor/samples/snippets/generated/com/google/cloud/modelarmor/v1/modelarmor/sanitizeuserprompt/AsyncSanitizeUserPrompt.java index bfc2f80148f2..dc05b0537420 100644 --- a/java-modelarmor/samples/snippets/generated/com/google/cloud/modelarmor/v1/modelarmor/sanitizeuserprompt/AsyncSanitizeUserPrompt.java +++ b/java-modelarmor/samples/snippets/generated/com/google/cloud/modelarmor/v1/modelarmor/sanitizeuserprompt/AsyncSanitizeUserPrompt.java @@ -20,6 +20,7 @@ import com.google.api.core.ApiFuture; import com.google.cloud.modelarmor.v1.DataItem; import com.google.cloud.modelarmor.v1.ModelArmorClient; +import com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata; import com.google.cloud.modelarmor.v1.SanitizeUserPromptRequest; import com.google.cloud.modelarmor.v1.SanitizeUserPromptResponse; import com.google.cloud.modelarmor.v1.TemplateName; @@ -41,6 +42,8 @@ public static void asyncSanitizeUserPrompt() throws Exception { SanitizeUserPromptRequest.newBuilder() .setName(TemplateName.of("[PROJECT]", "[LOCATION]", "[TEMPLATE]").toString()) .setUserPromptData(DataItem.newBuilder().build()) + .setMultiLanguageDetectionMetadata( + MultiLanguageDetectionMetadata.newBuilder().build()) .build(); ApiFuture future = modelArmorClient.sanitizeUserPromptCallable().futureCall(request); diff --git a/java-modelarmor/samples/snippets/generated/com/google/cloud/modelarmor/v1/modelarmor/sanitizeuserprompt/SyncSanitizeUserPrompt.java b/java-modelarmor/samples/snippets/generated/com/google/cloud/modelarmor/v1/modelarmor/sanitizeuserprompt/SyncSanitizeUserPrompt.java index ea647a4c995c..5a28954be68b 100644 --- a/java-modelarmor/samples/snippets/generated/com/google/cloud/modelarmor/v1/modelarmor/sanitizeuserprompt/SyncSanitizeUserPrompt.java +++ b/java-modelarmor/samples/snippets/generated/com/google/cloud/modelarmor/v1/modelarmor/sanitizeuserprompt/SyncSanitizeUserPrompt.java @@ -19,6 +19,7 @@ // [START modelarmor_v1_generated_ModelArmor_SanitizeUserPrompt_sync] import com.google.cloud.modelarmor.v1.DataItem; import com.google.cloud.modelarmor.v1.ModelArmorClient; +import com.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata; import com.google.cloud.modelarmor.v1.SanitizeUserPromptRequest; import com.google.cloud.modelarmor.v1.SanitizeUserPromptResponse; import com.google.cloud.modelarmor.v1.TemplateName; @@ -40,6 +41,8 @@ public static void syncSanitizeUserPrompt() throws Exception { SanitizeUserPromptRequest.newBuilder() .setName(TemplateName.of("[PROJECT]", "[LOCATION]", "[TEMPLATE]").toString()) .setUserPromptData(DataItem.newBuilder().build()) + .setMultiLanguageDetectionMetadata( + MultiLanguageDetectionMetadata.newBuilder().build()) .build(); SanitizeUserPromptResponse response = modelArmorClient.sanitizeUserPrompt(request); } diff --git a/java-modelarmor/samples/snippets/generated/com/google/cloud/modelarmor/v1beta/modelarmor/sanitizeuserprompt/AsyncSanitizeUserPrompt.java b/java-modelarmor/samples/snippets/generated/com/google/cloud/modelarmor/v1beta/modelarmor/sanitizeuserprompt/AsyncSanitizeUserPrompt.java index 903505f3f1f7..e6abc67be1a3 100644 --- a/java-modelarmor/samples/snippets/generated/com/google/cloud/modelarmor/v1beta/modelarmor/sanitizeuserprompt/AsyncSanitizeUserPrompt.java +++ b/java-modelarmor/samples/snippets/generated/com/google/cloud/modelarmor/v1beta/modelarmor/sanitizeuserprompt/AsyncSanitizeUserPrompt.java @@ -20,6 +20,7 @@ import com.google.api.core.ApiFuture; import com.google.cloud.modelarmor.v1beta.DataItem; import com.google.cloud.modelarmor.v1beta.ModelArmorClient; +import com.google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata; import com.google.cloud.modelarmor.v1beta.SanitizeUserPromptRequest; import com.google.cloud.modelarmor.v1beta.SanitizeUserPromptResponse; import com.google.cloud.modelarmor.v1beta.TemplateName; @@ -41,6 +42,8 @@ public static void asyncSanitizeUserPrompt() throws Exception { SanitizeUserPromptRequest.newBuilder() .setName(TemplateName.of("[PROJECT]", "[LOCATION]", "[TEMPLATE]").toString()) .setUserPromptData(DataItem.newBuilder().build()) + .setMultiLanguageDetectionMetadata( + MultiLanguageDetectionMetadata.newBuilder().build()) .build(); ApiFuture future = modelArmorClient.sanitizeUserPromptCallable().futureCall(request); diff --git a/java-modelarmor/samples/snippets/generated/com/google/cloud/modelarmor/v1beta/modelarmor/sanitizeuserprompt/SyncSanitizeUserPrompt.java b/java-modelarmor/samples/snippets/generated/com/google/cloud/modelarmor/v1beta/modelarmor/sanitizeuserprompt/SyncSanitizeUserPrompt.java index c8ee89ea5fb7..dc09772b2275 100644 --- a/java-modelarmor/samples/snippets/generated/com/google/cloud/modelarmor/v1beta/modelarmor/sanitizeuserprompt/SyncSanitizeUserPrompt.java +++ b/java-modelarmor/samples/snippets/generated/com/google/cloud/modelarmor/v1beta/modelarmor/sanitizeuserprompt/SyncSanitizeUserPrompt.java @@ -19,6 +19,7 @@ // [START modelarmor_v1beta_generated_ModelArmor_SanitizeUserPrompt_sync] import com.google.cloud.modelarmor.v1beta.DataItem; import com.google.cloud.modelarmor.v1beta.ModelArmorClient; +import com.google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata; import com.google.cloud.modelarmor.v1beta.SanitizeUserPromptRequest; import com.google.cloud.modelarmor.v1beta.SanitizeUserPromptResponse; import com.google.cloud.modelarmor.v1beta.TemplateName; @@ -40,6 +41,8 @@ public static void syncSanitizeUserPrompt() throws Exception { SanitizeUserPromptRequest.newBuilder() .setName(TemplateName.of("[PROJECT]", "[LOCATION]", "[TEMPLATE]").toString()) .setUserPromptData(DataItem.newBuilder().build()) + .setMultiLanguageDetectionMetadata( + MultiLanguageDetectionMetadata.newBuilder().build()) .build(); SanitizeUserPromptResponse response = modelArmorClient.sanitizeUserPrompt(request); } diff --git a/java-monitoring-dashboards/CHANGELOG.md b/java-monitoring-dashboards/CHANGELOG.md index bd6414433d23..dce33dc7eaa7 100644 --- a/java-monitoring-dashboards/CHANGELOG.md +++ b/java-monitoring-dashboards/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.70.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.69.0 (2025-06-25) ### Dependencies diff --git a/java-monitoring-dashboards/README.md b/java-monitoring-dashboards/README.md index d943be3d6b1d..85aca5432dda 100644 --- a/java-monitoring-dashboards/README.md +++ b/java-monitoring-dashboards/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-monitoring-dashboard - 2.68.0 + 2.69.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-monitoring-dashboard:2.68.0' +implementation 'com.google.cloud:google-cloud-monitoring-dashboard:2.69.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-dashboard" % "2.68.0" +libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-dashboard" % "2.69.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.68.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring-dashboard/2.69.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/google-cloud-monitoring-dashboard-bom/pom.xml b/java-monitoring-dashboards/google-cloud-monitoring-dashboard-bom/pom.xml index 7133530d156d..c39f2d9d1baa 100644 --- a/java-monitoring-dashboards/google-cloud-monitoring-dashboard-bom/pom.xml +++ b/java-monitoring-dashboards/google-cloud-monitoring-dashboard-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-monitoring-dashboard-bom - 2.69.0 + 2.70.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-monitoring-dashboard - 2.69.0 + 2.70.0 com.google.api.grpc grpc-google-cloud-monitoring-dashboard-v1 - 2.69.0 + 2.70.0 com.google.api.grpc proto-google-cloud-monitoring-dashboard-v1 - 2.69.0 + 2.70.0
diff --git a/java-monitoring-dashboards/google-cloud-monitoring-dashboard/pom.xml b/java-monitoring-dashboards/google-cloud-monitoring-dashboard/pom.xml index a014a14837da..c6e1b1d21fd7 100644 --- a/java-monitoring-dashboards/google-cloud-monitoring-dashboard/pom.xml +++ b/java-monitoring-dashboards/google-cloud-monitoring-dashboard/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-monitoring-dashboard - 2.69.0 + 2.70.0 jar Google Cloud Monitoring Dashboard Java idiomatic client for Google Cloud Monitoring Dashboard com.google.cloud google-cloud-monitoring-dashboard-parent - 2.69.0 + 2.70.0 google-cloud-monitoring-dashboard diff --git a/java-monitoring-dashboards/grpc-google-cloud-monitoring-dashboard-v1/pom.xml b/java-monitoring-dashboards/grpc-google-cloud-monitoring-dashboard-v1/pom.xml index b0d0d949a3ba..c7f0c653feb1 100644 --- a/java-monitoring-dashboards/grpc-google-cloud-monitoring-dashboard-v1/pom.xml +++ b/java-monitoring-dashboards/grpc-google-cloud-monitoring-dashboard-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-monitoring-dashboard-v1 - 2.69.0 + 2.70.0 grpc-google-cloud-monitoring-dashboard-v1 GRPC library for grpc-google-cloud-monitoring-dashboard-v1 com.google.cloud google-cloud-monitoring-dashboard-parent - 2.69.0 + 2.70.0 diff --git a/java-monitoring-dashboards/pom.xml b/java-monitoring-dashboards/pom.xml index 0e283f8d13bf..595c761979fd 100644 --- a/java-monitoring-dashboards/pom.xml +++ b/java-monitoring-dashboards/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-monitoring-dashboard-parent pom - 2.69.0 + 2.70.0 Google Cloud Monitoring Dashboard Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api.grpc proto-google-cloud-monitoring-dashboard-v1 - 2.69.0 + 2.70.0 com.google.api.grpc grpc-google-cloud-monitoring-dashboard-v1 - 2.69.0 + 2.70.0 com.google.cloud google-cloud-monitoring-dashboard - 2.69.0 + 2.70.0 diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/pom.xml b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/pom.xml index 62b76d6ab63d..54cd320fe993 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/pom.xml +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-monitoring-dashboard-v1 - 2.69.0 + 2.70.0 proto-google-cloud-monitoring-dashboard-v1 PROTO library for proto-google-cloud-monitoring-dashboard-v1 com.google.cloud google-cloud-monitoring-dashboard-parent - 2.69.0 + 2.70.0 diff --git a/java-monitoring-metricsscope/CHANGELOG.md b/java-monitoring-metricsscope/CHANGELOG.md index 27fba00120d9..4d5b0a511959 100644 --- a/java-monitoring-metricsscope/CHANGELOG.md +++ b/java-monitoring-metricsscope/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.62.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.61.0 (2025-06-25) ### Dependencies diff --git a/java-monitoring-metricsscope/README.md b/java-monitoring-metricsscope/README.md index a23793520dd7..f1ceafe89125 100644 --- a/java-monitoring-metricsscope/README.md +++ b/java-monitoring-metricsscope/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-monitoring-metricsscope - 0.60.0 + 0.61.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-monitoring-metricsscope:0.60.0' +implementation 'com.google.cloud:google-cloud-monitoring-metricsscope:0.61.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-metricsscope" % "0.60.0" +libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-metricsscope" % "0.61.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-monitoring-metricsscope.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring-metricsscope/0.60.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring-metricsscope/0.61.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/google-cloud-monitoring-metricsscope-bom/pom.xml b/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope-bom/pom.xml index 53ba6544e8f5..ceb94e763ea3 100644 --- a/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope-bom/pom.xml +++ b/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-monitoring-metricsscope-bom - 0.61.0 + 0.62.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-monitoring-metricsscope - 0.61.0 + 0.62.0 com.google.api.grpc grpc-google-cloud-monitoring-metricsscope-v1 - 0.61.0 + 0.62.0 com.google.api.grpc proto-google-cloud-monitoring-metricsscope-v1 - 0.61.0 + 0.62.0 diff --git a/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope/pom.xml b/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope/pom.xml index 17fa6e98ba15..ef9feaa65485 100644 --- a/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope/pom.xml +++ b/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-monitoring-metricsscope - 0.61.0 + 0.62.0 jar Google Monitoring Metrics Scopes Monitoring Metrics Scopes The metrics scope defines the set of Google Cloud projects whose metrics the current Google Cloud project can access. com.google.cloud google-cloud-monitoring-metricsscope-parent - 0.61.0 + 0.62.0 google-cloud-monitoring-metricsscope diff --git a/java-monitoring-metricsscope/grpc-google-cloud-monitoring-metricsscope-v1/pom.xml b/java-monitoring-metricsscope/grpc-google-cloud-monitoring-metricsscope-v1/pom.xml index 73c634815681..502f2fce50ab 100644 --- a/java-monitoring-metricsscope/grpc-google-cloud-monitoring-metricsscope-v1/pom.xml +++ b/java-monitoring-metricsscope/grpc-google-cloud-monitoring-metricsscope-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-monitoring-metricsscope-v1 - 0.61.0 + 0.62.0 grpc-google-cloud-monitoring-metricsscope-v1 GRPC library for google-cloud-monitoring-metricsscope com.google.cloud google-cloud-monitoring-metricsscope-parent - 0.61.0 + 0.62.0 diff --git a/java-monitoring-metricsscope/pom.xml b/java-monitoring-metricsscope/pom.xml index e5fbfc361b40..a5eaee362b05 100644 --- a/java-monitoring-metricsscope/pom.xml +++ b/java-monitoring-metricsscope/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-monitoring-metricsscope-parent pom - 0.61.0 + 0.62.0 Google Monitoring Metrics Scopes Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-monitoring-metricsscope - 0.61.0 + 0.62.0 com.google.api.grpc grpc-google-cloud-monitoring-metricsscope-v1 - 0.61.0 + 0.62.0 com.google.api.grpc proto-google-cloud-monitoring-metricsscope-v1 - 0.61.0 + 0.62.0 diff --git a/java-monitoring-metricsscope/proto-google-cloud-monitoring-metricsscope-v1/pom.xml b/java-monitoring-metricsscope/proto-google-cloud-monitoring-metricsscope-v1/pom.xml index a9a8b73f815d..0318d6f85b73 100644 --- a/java-monitoring-metricsscope/proto-google-cloud-monitoring-metricsscope-v1/pom.xml +++ b/java-monitoring-metricsscope/proto-google-cloud-monitoring-metricsscope-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-monitoring-metricsscope-v1 - 0.61.0 + 0.62.0 proto-google-cloud-monitoring-metricsscope-v1 Proto library for google-cloud-monitoring-metricsscope com.google.cloud google-cloud-monitoring-metricsscope-parent - 0.61.0 + 0.62.0 diff --git a/java-monitoring/CHANGELOG.md b/java-monitoring/CHANGELOG.md index fe0908bfa2fa..a6629a889c71 100644 --- a/java-monitoring/CHANGELOG.md +++ b/java-monitoring/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 3.69.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 3.68.0 (2025-06-25) ### Dependencies diff --git a/java-monitoring/README.md b/java-monitoring/README.md index 8272d381bc00..614a9f1d75dc 100644 --- a/java-monitoring/README.md +++ b/java-monitoring/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-monitoring - 3.67.0 + 3.68.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-monitoring:3.67.0' +implementation 'com.google.cloud:google-cloud-monitoring:3.68.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-monitoring" % "3.67.0" +libraryDependencies += "com.google.cloud" % "google-cloud-monitoring" % "3.68.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.67.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring/3.68.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/google-cloud-monitoring-bom/pom.xml b/java-monitoring/google-cloud-monitoring-bom/pom.xml index bd6a91085b8d..142cabe9cbf4 100644 --- a/java-monitoring/google-cloud-monitoring-bom/pom.xml +++ b/java-monitoring/google-cloud-monitoring-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-monitoring-bom - 3.68.0 + 3.69.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-monitoring - 3.68.0 + 3.69.0 com.google.api.grpc grpc-google-cloud-monitoring-v3 - 3.68.0 + 3.69.0 com.google.api.grpc proto-google-cloud-monitoring-v3 - 3.68.0 + 3.69.0 diff --git a/java-monitoring/google-cloud-monitoring/pom.xml b/java-monitoring/google-cloud-monitoring/pom.xml index 53ac0c6d4d22..ab57886da7a5 100644 --- a/java-monitoring/google-cloud-monitoring/pom.xml +++ b/java-monitoring/google-cloud-monitoring/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-monitoring - 3.68.0 + 3.69.0 jar Google Cloud Monitoring Java idiomatic client for Stackdriver Monitoring com.google.cloud google-cloud-monitoring-parent - 3.68.0 + 3.69.0 google-cloud-monitoring diff --git a/java-monitoring/grpc-google-cloud-monitoring-v3/pom.xml b/java-monitoring/grpc-google-cloud-monitoring-v3/pom.xml index 1b4f9f3c44a4..6043a7b39b75 100644 --- a/java-monitoring/grpc-google-cloud-monitoring-v3/pom.xml +++ b/java-monitoring/grpc-google-cloud-monitoring-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-monitoring-v3 - 3.68.0 + 3.69.0 grpc-google-cloud-monitoring-v3 GRPC library for grpc-google-cloud-monitoring-v3 com.google.cloud google-cloud-monitoring-parent - 3.68.0 + 3.69.0 diff --git a/java-monitoring/pom.xml b/java-monitoring/pom.xml index 84cde9edff79..f3651260ef54 100644 --- a/java-monitoring/pom.xml +++ b/java-monitoring/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-monitoring-parent pom - 3.68.0 + 3.69.0 Google Cloud Monitoring Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api.grpc proto-google-cloud-monitoring-v3 - 3.68.0 + 3.69.0 com.google.api.grpc grpc-google-cloud-monitoring-v3 - 3.68.0 + 3.69.0 com.google.cloud google-cloud-monitoring - 3.68.0 + 3.69.0 diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/pom.xml b/java-monitoring/proto-google-cloud-monitoring-v3/pom.xml index 3d536a06def3..3bd6ef6ebf49 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/pom.xml +++ b/java-monitoring/proto-google-cloud-monitoring-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-monitoring-v3 - 3.68.0 + 3.69.0 proto-google-cloud-monitoring-v3 PROTO library for proto-google-cloud-monitoring-v3 com.google.cloud google-cloud-monitoring-parent - 3.68.0 + 3.69.0 diff --git a/java-netapp/CHANGELOG.md b/java-netapp/CHANGELOG.md index 73617b9fde93..7480d10de67f 100644 --- a/java-netapp/CHANGELOG.md +++ b/java-netapp/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.47.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.46.0 (2025-06-25) ### Dependencies diff --git a/java-netapp/README.md b/java-netapp/README.md index a03ab213e0d8..7cf93ea1bd0d 100644 --- a/java-netapp/README.md +++ b/java-netapp/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-netapp - 0.45.0 + 0.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-netapp:0.45.0' +implementation 'com.google.cloud:google-cloud-netapp:0.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-netapp" % "0.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-netapp" % "0.46.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-netapp.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-netapp/0.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-netapp/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-netapp/google-cloud-netapp-bom/pom.xml b/java-netapp/google-cloud-netapp-bom/pom.xml index 1f4c6d1494a3..bc9a1cdc2f6f 100644 --- a/java-netapp/google-cloud-netapp-bom/pom.xml +++ b/java-netapp/google-cloud-netapp-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-netapp-bom - 0.46.0 + 0.47.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-netapp - 0.46.0 + 0.47.0 com.google.api.grpc grpc-google-cloud-netapp-v1 - 0.46.0 + 0.47.0 com.google.api.grpc proto-google-cloud-netapp-v1 - 0.46.0 + 0.47.0 diff --git a/java-netapp/google-cloud-netapp/pom.xml b/java-netapp/google-cloud-netapp/pom.xml index 2612ca5bfb77..9ff241508f03 100644 --- a/java-netapp/google-cloud-netapp/pom.xml +++ b/java-netapp/google-cloud-netapp/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-netapp - 0.46.0 + 0.47.0 jar Google NetApp API NetApp API 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. com.google.cloud google-cloud-netapp-parent - 0.46.0 + 0.47.0 google-cloud-netapp diff --git a/java-netapp/grpc-google-cloud-netapp-v1/pom.xml b/java-netapp/grpc-google-cloud-netapp-v1/pom.xml index 8383c55430e4..d6d715460492 100644 --- a/java-netapp/grpc-google-cloud-netapp-v1/pom.xml +++ b/java-netapp/grpc-google-cloud-netapp-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-netapp-v1 - 0.46.0 + 0.47.0 grpc-google-cloud-netapp-v1 GRPC library for google-cloud-netapp com.google.cloud google-cloud-netapp-parent - 0.46.0 + 0.47.0 diff --git a/java-netapp/pom.xml b/java-netapp/pom.xml index 29239b26429b..83c8dd026360 100644 --- a/java-netapp/pom.xml +++ b/java-netapp/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-netapp-parent pom - 0.46.0 + 0.47.0 Google NetApp API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-netapp - 0.46.0 + 0.47.0 com.google.api.grpc proto-google-cloud-netapp-v1 - 0.46.0 + 0.47.0 com.google.api.grpc grpc-google-cloud-netapp-v1 - 0.46.0 + 0.47.0 diff --git a/java-netapp/proto-google-cloud-netapp-v1/pom.xml b/java-netapp/proto-google-cloud-netapp-v1/pom.xml index 01fd9aa33f0c..9fbb3cafbe7f 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/pom.xml +++ b/java-netapp/proto-google-cloud-netapp-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-netapp-v1 - 0.46.0 + 0.47.0 proto-google-cloud-netapp-v1 Proto library for google-cloud-netapp com.google.cloud google-cloud-netapp-parent - 0.46.0 + 0.47.0 diff --git a/java-network-management/CHANGELOG.md b/java-network-management/CHANGELOG.md index 243917c4ceb5..32ca40df93a1 100644 --- a/java-network-management/CHANGELOG.md +++ b/java-network-management/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 1.69.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 1.68.0 (2025-06-25) ### Dependencies diff --git a/java-network-management/README.md b/java-network-management/README.md index ed76d3a5701f..6c4cb5f9f35e 100644 --- a/java-network-management/README.md +++ b/java-network-management/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-network-management - 1.67.0 + 1.68.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-network-management:1.67.0' +implementation 'com.google.cloud:google-cloud-network-management:1.68.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-network-management" % "1.67.0" +libraryDependencies += "com.google.cloud" % "google-cloud-network-management" % "1.68.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.67.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-management/1.68.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/google-cloud-network-management-bom/pom.xml b/java-network-management/google-cloud-network-management-bom/pom.xml index 9a99a78d2c29..edbfd562cc4a 100644 --- a/java-network-management/google-cloud-network-management-bom/pom.xml +++ b/java-network-management/google-cloud-network-management-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-network-management-bom - 1.68.0 + 1.69.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-network-management - 1.68.0 + 1.69.0 com.google.api.grpc grpc-google-cloud-network-management-v1beta1 - 0.70.0 + 0.71.0 com.google.api.grpc grpc-google-cloud-network-management-v1 - 1.68.0 + 1.69.0 com.google.api.grpc proto-google-cloud-network-management-v1beta1 - 0.70.0 + 0.71.0 com.google.api.grpc proto-google-cloud-network-management-v1 - 1.68.0 + 1.69.0 diff --git a/java-network-management/google-cloud-network-management/pom.xml b/java-network-management/google-cloud-network-management/pom.xml index 2b5f33c65e78..9b24f22512ae 100644 --- a/java-network-management/google-cloud-network-management/pom.xml +++ b/java-network-management/google-cloud-network-management/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-network-management - 1.68.0 + 1.69.0 jar Google Network Management API Network Management API provides a collection of network performance monitoring and diagnostic capabilities. com.google.cloud google-cloud-network-management-parent - 1.68.0 + 1.69.0 google-cloud-network-management diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/OrganizationVpcFlowLogsServiceClient.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/OrganizationVpcFlowLogsServiceClient.java new file mode 100644 index 000000000000..dacbec2b834d --- /dev/null +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/OrganizationVpcFlowLogsServiceClient.java @@ -0,0 +1,2113 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1; + +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.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networkmanagement.v1beta1.stub.OrganizationVpcFlowLogsServiceStub; +import com.google.cloud.networkmanagement.v1beta1.stub.OrganizationVpcFlowLogsServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: The VPC Flow Logs organization service in the Google Cloud Network + * Management API provides organization level configurations that generate Flow Logs. The service + * and the configuration resources created using this service are global. + * + *

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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
+ *     OrganizationVpcFlowLogsServiceClient.create()) {
+ *   VpcFlowLogsConfigName name =
+ *       VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName(
+ *           "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]");
+ *   VpcFlowLogsConfig response = organizationVpcFlowLogsServiceClient.getVpcFlowLogsConfig(name);
+ * }
+ * }
+ * + *

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

ListVpcFlowLogsConfigs

Lists all `VpcFlowLogsConfigs` in a given organization.

+ *

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

+ *
    + *
  • listVpcFlowLogsConfigs(ListVpcFlowLogsConfigsRequest request) + *

+ *

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

+ *
    + *
  • listVpcFlowLogsConfigs(LocationName parent) + *

  • listVpcFlowLogsConfigs(OrganizationLocationName parent) + *

  • listVpcFlowLogsConfigs(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.

+ *
    + *
  • listVpcFlowLogsConfigsPagedCallable() + *

  • listVpcFlowLogsConfigsCallable() + *

+ *

GetVpcFlowLogsConfig

Gets the details of a specific `VpcFlowLogsConfig`.

+ *

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

+ *
    + *
  • getVpcFlowLogsConfig(GetVpcFlowLogsConfigRequest request) + *

+ *

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

+ *
    + *
  • getVpcFlowLogsConfig(VpcFlowLogsConfigName name) + *

  • getVpcFlowLogsConfig(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.

+ *
    + *
  • getVpcFlowLogsConfigCallable() + *

+ *

CreateVpcFlowLogsConfig

Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already exists (even if the ID is different), the creation fails. Notes: + *

1. Creating a configuration with `state=DISABLED` will fail 2. The following fields are not considered as settings for the purpose of the check mentioned above, therefore - creating another configuration with the same fields but different values for the following fields will fail as well: * name * create_time * update_time * labels * description

+ *

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

+ *
    + *
  • createVpcFlowLogsConfigAsync(CreateVpcFlowLogsConfigRequest request) + *

+ *

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

+ *
    + *
  • createVpcFlowLogsConfigAsync(LocationName parent, VpcFlowLogsConfig vpcFlowLogsConfig, VpcFlowLogsConfigName vpcFlowLogsConfigId) + *

  • createVpcFlowLogsConfigAsync(LocationName parent, VpcFlowLogsConfig vpcFlowLogsConfig, String vpcFlowLogsConfigId) + *

  • createVpcFlowLogsConfigAsync(OrganizationLocationName parent, VpcFlowLogsConfig vpcFlowLogsConfig, VpcFlowLogsConfigName vpcFlowLogsConfigId) + *

  • createVpcFlowLogsConfigAsync(OrganizationLocationName parent, VpcFlowLogsConfig vpcFlowLogsConfig, String vpcFlowLogsConfigId) + *

  • createVpcFlowLogsConfigAsync(String parent, VpcFlowLogsConfig vpcFlowLogsConfig, VpcFlowLogsConfigName vpcFlowLogsConfigId) + *

  • createVpcFlowLogsConfigAsync(String parent, VpcFlowLogsConfig vpcFlowLogsConfig, String vpcFlowLogsConfigId) + *

+ *

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

+ *
    + *
  • createVpcFlowLogsConfigOperationCallable() + *

  • createVpcFlowLogsConfigCallable() + *

+ *

UpdateVpcFlowLogsConfig

Updates an existing `VpcFlowLogsConfig`. If a configuration with the exact same settings already exists (even if the ID is different), the creation fails. Notes: + *

1. Updating a configuration with `state=DISABLED` will fail 2. The following fields are not considered as settings for the purpose of the check mentioned above, therefore - updating another configuration with the same fields but different values for the following fields will fail as well: * name * create_time * update_time * labels * description

+ *

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

+ *
    + *
  • updateVpcFlowLogsConfigAsync(UpdateVpcFlowLogsConfigRequest request) + *

+ *

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

+ *
    + *
  • updateVpcFlowLogsConfigAsync(VpcFlowLogsConfig vpcFlowLogsConfig, FieldMask updateMask) + *

+ *

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

+ *
    + *
  • updateVpcFlowLogsConfigOperationCallable() + *

  • updateVpcFlowLogsConfigCallable() + *

+ *

DeleteVpcFlowLogsConfig

Deletes a specific `VpcFlowLogsConfig`.

+ *

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

+ *
    + *
  • deleteVpcFlowLogsConfigAsync(DeleteVpcFlowLogsConfigRequest request) + *

+ *

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

+ *
    + *
  • deleteVpcFlowLogsConfigAsync(VpcFlowLogsConfigName name) + *

  • deleteVpcFlowLogsConfigAsync(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.

+ *
    + *
  • deleteVpcFlowLogsConfigOperationCallable() + *

  • deleteVpcFlowLogsConfigCallable() + *

+ *

ListLocations

Lists information about the supported locations for this service.

+ *

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

+ *
    + *
  • listLocations(ListLocationsRequest request) + *

+ *

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

+ *
    + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() + *

+ *

GetLocation

Gets information about a location.

+ *

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

+ *
    + *
  • getLocation(GetLocationRequest request) + *

+ *

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

+ *
    + *
  • getLocationCallable() + *

+ *

SetIamPolicy

Sets the access control policy on the specified resource. Replacesany existing policy. + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.

+ *

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

+ *
    + *
  • setIamPolicy(SetIamPolicyRequest request) + *

+ *

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

+ *
    + *
  • setIamPolicyCallable() + *

+ *

GetIamPolicy

Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.

+ *

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

+ *
    + *
  • getIamPolicy(GetIamPolicyRequest request) + *

+ *

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

+ *
    + *
  • getIamPolicyCallable() + *

+ *

TestIamPermissions

Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. + *

Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning.

+ *

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

+ *
    + *
  • testIamPermissions(TestIamPermissionsRequest request) + *

+ *

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

+ *
    + *
  • testIamPermissionsCallable() + *

+ *
+ * + *

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 + * OrganizationVpcFlowLogsServiceSettings 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
+ * OrganizationVpcFlowLogsServiceSettings organizationVpcFlowLogsServiceSettings =
+ *     OrganizationVpcFlowLogsServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
+ *     OrganizationVpcFlowLogsServiceClient.create(organizationVpcFlowLogsServiceSettings);
+ * }
+ * + *

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
+ * OrganizationVpcFlowLogsServiceSettings organizationVpcFlowLogsServiceSettings =
+ *     OrganizationVpcFlowLogsServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
+ *     OrganizationVpcFlowLogsServiceClient.create(organizationVpcFlowLogsServiceSettings);
+ * }
+ * + *

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
+ * OrganizationVpcFlowLogsServiceSettings organizationVpcFlowLogsServiceSettings =
+ *     OrganizationVpcFlowLogsServiceSettings.newHttpJsonBuilder().build();
+ * OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
+ *     OrganizationVpcFlowLogsServiceClient.create(organizationVpcFlowLogsServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class OrganizationVpcFlowLogsServiceClient implements BackgroundResource { + private final OrganizationVpcFlowLogsServiceSettings settings; + private final OrganizationVpcFlowLogsServiceStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; + + /** Constructs an instance of OrganizationVpcFlowLogsServiceClient with default settings. */ + public static final OrganizationVpcFlowLogsServiceClient create() throws IOException { + return create(OrganizationVpcFlowLogsServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of OrganizationVpcFlowLogsServiceClient, 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 OrganizationVpcFlowLogsServiceClient create( + OrganizationVpcFlowLogsServiceSettings settings) throws IOException { + return new OrganizationVpcFlowLogsServiceClient(settings); + } + + /** + * Constructs an instance of OrganizationVpcFlowLogsServiceClient, using the given stub for making + * calls. This is for advanced usage - prefer using + * create(OrganizationVpcFlowLogsServiceSettings). + */ + public static final OrganizationVpcFlowLogsServiceClient create( + OrganizationVpcFlowLogsServiceStub stub) { + return new OrganizationVpcFlowLogsServiceClient(stub); + } + + /** + * Constructs an instance of OrganizationVpcFlowLogsServiceClient, 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 OrganizationVpcFlowLogsServiceClient(OrganizationVpcFlowLogsServiceSettings settings) + throws IOException { + this.settings = settings; + this.stub = + ((OrganizationVpcFlowLogsServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected OrganizationVpcFlowLogsServiceClient(OrganizationVpcFlowLogsServiceStub 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 OrganizationVpcFlowLogsServiceSettings getSettings() { + return settings; + } + + public OrganizationVpcFlowLogsServiceStub 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. + /** + * Lists all `VpcFlowLogsConfigs` in a given organization. + * + *

Sample code: + * + *

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

- For project-level resourcs: `projects/{project_id}/locations/global` + *

- For organization-level resources: `organizations/{organization_id}/locations/global` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListVpcFlowLogsConfigsPagedResponse listVpcFlowLogsConfigs(LocationName parent) { + ListVpcFlowLogsConfigsRequest request = + ListVpcFlowLogsConfigsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listVpcFlowLogsConfigs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all `VpcFlowLogsConfigs` in a given organization. + * + *

Sample code: + * + *

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

- For project-level resourcs: `projects/{project_id}/locations/global` + *

- For organization-level resources: `organizations/{organization_id}/locations/global` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListVpcFlowLogsConfigsPagedResponse listVpcFlowLogsConfigs( + OrganizationLocationName parent) { + ListVpcFlowLogsConfigsRequest request = + ListVpcFlowLogsConfigsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listVpcFlowLogsConfigs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all `VpcFlowLogsConfigs` in a given organization. + * + *

Sample code: + * + *

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

- For project-level resourcs: `projects/{project_id}/locations/global` + *

- For organization-level resources: `organizations/{organization_id}/locations/global` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListVpcFlowLogsConfigsPagedResponse listVpcFlowLogsConfigs(String parent) { + ListVpcFlowLogsConfigsRequest request = + ListVpcFlowLogsConfigsRequest.newBuilder().setParent(parent).build(); + return listVpcFlowLogsConfigs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all `VpcFlowLogsConfigs` in a given organization. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
+   *     OrganizationVpcFlowLogsServiceClient.create()) {
+   *   ListVpcFlowLogsConfigsRequest request =
+   *       ListVpcFlowLogsConfigsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (VpcFlowLogsConfig element :
+   *       organizationVpcFlowLogsServiceClient.listVpcFlowLogsConfigs(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 ListVpcFlowLogsConfigsPagedResponse listVpcFlowLogsConfigs( + ListVpcFlowLogsConfigsRequest request) { + return listVpcFlowLogsConfigsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all `VpcFlowLogsConfigs` in a given organization. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
+   *     OrganizationVpcFlowLogsServiceClient.create()) {
+   *   ListVpcFlowLogsConfigsRequest request =
+   *       ListVpcFlowLogsConfigsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       organizationVpcFlowLogsServiceClient
+   *           .listVpcFlowLogsConfigsPagedCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   for (VpcFlowLogsConfig element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listVpcFlowLogsConfigsPagedCallable() { + return stub.listVpcFlowLogsConfigsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all `VpcFlowLogsConfigs` in a given organization. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
+   *     OrganizationVpcFlowLogsServiceClient.create()) {
+   *   ListVpcFlowLogsConfigsRequest request =
+   *       ListVpcFlowLogsConfigsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListVpcFlowLogsConfigsResponse response =
+   *         organizationVpcFlowLogsServiceClient.listVpcFlowLogsConfigsCallable().call(request);
+   *     for (VpcFlowLogsConfig element : response.getVpcFlowLogsConfigsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listVpcFlowLogsConfigsCallable() { + return stub.listVpcFlowLogsConfigsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a specific `VpcFlowLogsConfig`. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
+   *     OrganizationVpcFlowLogsServiceClient.create()) {
+   *   VpcFlowLogsConfigName name =
+   *       VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName(
+   *           "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]");
+   *   VpcFlowLogsConfig response = organizationVpcFlowLogsServiceClient.getVpcFlowLogsConfig(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the VpcFlowLogsConfig, in one of the following + * formats: + *

- For project-level resources: + * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + *

- For organization-level resources: + * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final VpcFlowLogsConfig getVpcFlowLogsConfig(VpcFlowLogsConfigName name) { + GetVpcFlowLogsConfigRequest request = + GetVpcFlowLogsConfigRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getVpcFlowLogsConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a specific `VpcFlowLogsConfig`. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
+   *     OrganizationVpcFlowLogsServiceClient.create()) {
+   *   String name =
+   *       VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName(
+   *               "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]")
+   *           .toString();
+   *   VpcFlowLogsConfig response = organizationVpcFlowLogsServiceClient.getVpcFlowLogsConfig(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the VpcFlowLogsConfig, in one of the following + * formats: + *

- For project-level resources: + * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + *

- For organization-level resources: + * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final VpcFlowLogsConfig getVpcFlowLogsConfig(String name) { + GetVpcFlowLogsConfigRequest request = + GetVpcFlowLogsConfigRequest.newBuilder().setName(name).build(); + return getVpcFlowLogsConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a specific `VpcFlowLogsConfig`. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
+   *     OrganizationVpcFlowLogsServiceClient.create()) {
+   *   GetVpcFlowLogsConfigRequest request =
+   *       GetVpcFlowLogsConfigRequest.newBuilder()
+   *           .setName(
+   *               VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName(
+   *                       "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]")
+   *                   .toString())
+   *           .build();
+   *   VpcFlowLogsConfig response =
+   *       organizationVpcFlowLogsServiceClient.getVpcFlowLogsConfig(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 VpcFlowLogsConfig getVpcFlowLogsConfig(GetVpcFlowLogsConfigRequest request) { + return getVpcFlowLogsConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a specific `VpcFlowLogsConfig`. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
+   *     OrganizationVpcFlowLogsServiceClient.create()) {
+   *   GetVpcFlowLogsConfigRequest request =
+   *       GetVpcFlowLogsConfigRequest.newBuilder()
+   *           .setName(
+   *               VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName(
+   *                       "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       organizationVpcFlowLogsServiceClient.getVpcFlowLogsConfigCallable().futureCall(request);
+   *   // Do something.
+   *   VpcFlowLogsConfig response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getVpcFlowLogsConfigCallable() { + return stub.getVpcFlowLogsConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already + * exists (even if the ID is different), the creation fails. Notes: + * + *

1. Creating a configuration with `state=DISABLED` will fail 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - creating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
+   *     OrganizationVpcFlowLogsServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build();
+   *   VpcFlowLogsConfigName vpcFlowLogsConfigId =
+   *       VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName(
+   *           "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]");
+   *   VpcFlowLogsConfig response =
+   *       organizationVpcFlowLogsServiceClient
+   *           .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The parent resource of the VpcFlowLogsConfig to create, in one of the + * following formats: + *

- For project-level resources: `projects/{project_id}/locations/global` + *

- For organization-level resources: `organizations/{organization_id}/locations/global` + * @param vpcFlowLogsConfig Required. A `VpcFlowLogsConfig` resource + * @param vpcFlowLogsConfigId Required. ID of the `VpcFlowLogsConfig`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createVpcFlowLogsConfigAsync( + LocationName parent, + VpcFlowLogsConfig vpcFlowLogsConfig, + VpcFlowLogsConfigName vpcFlowLogsConfigId) { + CreateVpcFlowLogsConfigRequest request = + CreateVpcFlowLogsConfigRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setVpcFlowLogsConfig(vpcFlowLogsConfig) + .setVpcFlowLogsConfigId( + vpcFlowLogsConfigId == null ? null : vpcFlowLogsConfigId.toString()) + .build(); + return createVpcFlowLogsConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already + * exists (even if the ID is different), the creation fails. Notes: + * + *

1. Creating a configuration with `state=DISABLED` will fail 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - creating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
+   *     OrganizationVpcFlowLogsServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build();
+   *   String vpcFlowLogsConfigId =
+   *       VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName(
+   *               "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]")
+   *           .toString();
+   *   VpcFlowLogsConfig response =
+   *       organizationVpcFlowLogsServiceClient
+   *           .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The parent resource of the VpcFlowLogsConfig to create, in one of the + * following formats: + *

- For project-level resources: `projects/{project_id}/locations/global` + *

- For organization-level resources: `organizations/{organization_id}/locations/global` + * @param vpcFlowLogsConfig Required. A `VpcFlowLogsConfig` resource + * @param vpcFlowLogsConfigId Required. ID of the `VpcFlowLogsConfig`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createVpcFlowLogsConfigAsync( + LocationName parent, VpcFlowLogsConfig vpcFlowLogsConfig, String vpcFlowLogsConfigId) { + CreateVpcFlowLogsConfigRequest request = + CreateVpcFlowLogsConfigRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setVpcFlowLogsConfig(vpcFlowLogsConfig) + .setVpcFlowLogsConfigId(vpcFlowLogsConfigId) + .build(); + return createVpcFlowLogsConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already + * exists (even if the ID is different), the creation fails. Notes: + * + *

1. Creating a configuration with `state=DISABLED` will fail 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - creating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
+   *     OrganizationVpcFlowLogsServiceClient.create()) {
+   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+   *   VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build();
+   *   VpcFlowLogsConfigName vpcFlowLogsConfigId =
+   *       VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName(
+   *           "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]");
+   *   VpcFlowLogsConfig response =
+   *       organizationVpcFlowLogsServiceClient
+   *           .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The parent resource of the VpcFlowLogsConfig to create, in one of the + * following formats: + *

- For project-level resources: `projects/{project_id}/locations/global` + *

- For organization-level resources: `organizations/{organization_id}/locations/global` + * @param vpcFlowLogsConfig Required. A `VpcFlowLogsConfig` resource + * @param vpcFlowLogsConfigId Required. ID of the `VpcFlowLogsConfig`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createVpcFlowLogsConfigAsync( + OrganizationLocationName parent, + VpcFlowLogsConfig vpcFlowLogsConfig, + VpcFlowLogsConfigName vpcFlowLogsConfigId) { + CreateVpcFlowLogsConfigRequest request = + CreateVpcFlowLogsConfigRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setVpcFlowLogsConfig(vpcFlowLogsConfig) + .setVpcFlowLogsConfigId( + vpcFlowLogsConfigId == null ? null : vpcFlowLogsConfigId.toString()) + .build(); + return createVpcFlowLogsConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already + * exists (even if the ID is different), the creation fails. Notes: + * + *

1. Creating a configuration with `state=DISABLED` will fail 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - creating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
+   *     OrganizationVpcFlowLogsServiceClient.create()) {
+   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+   *   VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build();
+   *   String vpcFlowLogsConfigId =
+   *       VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName(
+   *               "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]")
+   *           .toString();
+   *   VpcFlowLogsConfig response =
+   *       organizationVpcFlowLogsServiceClient
+   *           .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The parent resource of the VpcFlowLogsConfig to create, in one of the + * following formats: + *

- For project-level resources: `projects/{project_id}/locations/global` + *

- For organization-level resources: `organizations/{organization_id}/locations/global` + * @param vpcFlowLogsConfig Required. A `VpcFlowLogsConfig` resource + * @param vpcFlowLogsConfigId Required. ID of the `VpcFlowLogsConfig`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createVpcFlowLogsConfigAsync( + OrganizationLocationName parent, + VpcFlowLogsConfig vpcFlowLogsConfig, + String vpcFlowLogsConfigId) { + CreateVpcFlowLogsConfigRequest request = + CreateVpcFlowLogsConfigRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setVpcFlowLogsConfig(vpcFlowLogsConfig) + .setVpcFlowLogsConfigId(vpcFlowLogsConfigId) + .build(); + return createVpcFlowLogsConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already + * exists (even if the ID is different), the creation fails. Notes: + * + *

1. Creating a configuration with `state=DISABLED` will fail 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - creating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
+   *     OrganizationVpcFlowLogsServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build();
+   *   VpcFlowLogsConfigName vpcFlowLogsConfigId =
+   *       VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName(
+   *           "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]");
+   *   VpcFlowLogsConfig response =
+   *       organizationVpcFlowLogsServiceClient
+   *           .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The parent resource of the VpcFlowLogsConfig to create, in one of the + * following formats: + *

- For project-level resources: `projects/{project_id}/locations/global` + *

- For organization-level resources: `organizations/{organization_id}/locations/global` + * @param vpcFlowLogsConfig Required. A `VpcFlowLogsConfig` resource + * @param vpcFlowLogsConfigId Required. ID of the `VpcFlowLogsConfig`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createVpcFlowLogsConfigAsync( + String parent, + VpcFlowLogsConfig vpcFlowLogsConfig, + VpcFlowLogsConfigName vpcFlowLogsConfigId) { + CreateVpcFlowLogsConfigRequest request = + CreateVpcFlowLogsConfigRequest.newBuilder() + .setParent(parent) + .setVpcFlowLogsConfig(vpcFlowLogsConfig) + .setVpcFlowLogsConfigId( + vpcFlowLogsConfigId == null ? null : vpcFlowLogsConfigId.toString()) + .build(); + return createVpcFlowLogsConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already + * exists (even if the ID is different), the creation fails. Notes: + * + *

1. Creating a configuration with `state=DISABLED` will fail 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - creating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
+   *     OrganizationVpcFlowLogsServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build();
+   *   String vpcFlowLogsConfigId =
+   *       VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName(
+   *               "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]")
+   *           .toString();
+   *   VpcFlowLogsConfig response =
+   *       organizationVpcFlowLogsServiceClient
+   *           .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The parent resource of the VpcFlowLogsConfig to create, in one of the + * following formats: + *

- For project-level resources: `projects/{project_id}/locations/global` + *

- For organization-level resources: `organizations/{organization_id}/locations/global` + * @param vpcFlowLogsConfig Required. A `VpcFlowLogsConfig` resource + * @param vpcFlowLogsConfigId Required. ID of the `VpcFlowLogsConfig`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createVpcFlowLogsConfigAsync( + String parent, VpcFlowLogsConfig vpcFlowLogsConfig, String vpcFlowLogsConfigId) { + CreateVpcFlowLogsConfigRequest request = + CreateVpcFlowLogsConfigRequest.newBuilder() + .setParent(parent) + .setVpcFlowLogsConfig(vpcFlowLogsConfig) + .setVpcFlowLogsConfigId(vpcFlowLogsConfigId) + .build(); + return createVpcFlowLogsConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already + * exists (even if the ID is different), the creation fails. Notes: + * + *

1. Creating a configuration with `state=DISABLED` will fail 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - creating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
+   *     OrganizationVpcFlowLogsServiceClient.create()) {
+   *   CreateVpcFlowLogsConfigRequest request =
+   *       CreateVpcFlowLogsConfigRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setVpcFlowLogsConfigId(
+   *               VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName(
+   *                       "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]")
+   *                   .toString())
+   *           .setVpcFlowLogsConfig(VpcFlowLogsConfig.newBuilder().build())
+   *           .build();
+   *   VpcFlowLogsConfig response =
+   *       organizationVpcFlowLogsServiceClient.createVpcFlowLogsConfigAsync(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 createVpcFlowLogsConfigAsync( + CreateVpcFlowLogsConfigRequest request) { + return createVpcFlowLogsConfigOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already + * exists (even if the ID is different), the creation fails. Notes: + * + *

1. Creating a configuration with `state=DISABLED` will fail 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - creating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
+   *     OrganizationVpcFlowLogsServiceClient.create()) {
+   *   CreateVpcFlowLogsConfigRequest request =
+   *       CreateVpcFlowLogsConfigRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setVpcFlowLogsConfigId(
+   *               VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName(
+   *                       "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]")
+   *                   .toString())
+   *           .setVpcFlowLogsConfig(VpcFlowLogsConfig.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       organizationVpcFlowLogsServiceClient
+   *           .createVpcFlowLogsConfigOperationCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   VpcFlowLogsConfig response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + CreateVpcFlowLogsConfigRequest, VpcFlowLogsConfig, OperationMetadata> + createVpcFlowLogsConfigOperationCallable() { + return stub.createVpcFlowLogsConfigOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already + * exists (even if the ID is different), the creation fails. Notes: + * + *

1. Creating a configuration with `state=DISABLED` will fail 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - creating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
+   *     OrganizationVpcFlowLogsServiceClient.create()) {
+   *   CreateVpcFlowLogsConfigRequest request =
+   *       CreateVpcFlowLogsConfigRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setVpcFlowLogsConfigId(
+   *               VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName(
+   *                       "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]")
+   *                   .toString())
+   *           .setVpcFlowLogsConfig(VpcFlowLogsConfig.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       organizationVpcFlowLogsServiceClient
+   *           .createVpcFlowLogsConfigCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createVpcFlowLogsConfigCallable() { + return stub.createVpcFlowLogsConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an existing `VpcFlowLogsConfig`. If a configuration with the exact same settings + * already exists (even if the ID is different), the creation fails. Notes: + * + *

1. Updating a configuration with `state=DISABLED` will fail 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - updating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
+   *     OrganizationVpcFlowLogsServiceClient.create()) {
+   *   VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   VpcFlowLogsConfig response =
+   *       organizationVpcFlowLogsServiceClient
+   *           .updateVpcFlowLogsConfigAsync(vpcFlowLogsConfig, updateMask)
+   *           .get();
+   * }
+   * }
+ * + * @param vpcFlowLogsConfig Required. Only fields specified in update_mask are updated. + * @param updateMask Required. Mask of fields to update. At least one path must be supplied in + * this field. For example, to change the state of the configuration to ENABLED, specify + * `update_mask` = `"state"`, and the `vpc_flow_logs_config` would be: `vpc_flow_logs_config = + * { name = "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config" state = + * "ENABLED" }` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateVpcFlowLogsConfigAsync( + VpcFlowLogsConfig vpcFlowLogsConfig, FieldMask updateMask) { + UpdateVpcFlowLogsConfigRequest request = + UpdateVpcFlowLogsConfigRequest.newBuilder() + .setVpcFlowLogsConfig(vpcFlowLogsConfig) + .setUpdateMask(updateMask) + .build(); + return updateVpcFlowLogsConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an existing `VpcFlowLogsConfig`. If a configuration with the exact same settings + * already exists (even if the ID is different), the creation fails. Notes: + * + *

1. Updating a configuration with `state=DISABLED` will fail 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - updating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
+   *     OrganizationVpcFlowLogsServiceClient.create()) {
+   *   UpdateVpcFlowLogsConfigRequest request =
+   *       UpdateVpcFlowLogsConfigRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setVpcFlowLogsConfig(VpcFlowLogsConfig.newBuilder().build())
+   *           .build();
+   *   VpcFlowLogsConfig response =
+   *       organizationVpcFlowLogsServiceClient.updateVpcFlowLogsConfigAsync(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 updateVpcFlowLogsConfigAsync( + UpdateVpcFlowLogsConfigRequest request) { + return updateVpcFlowLogsConfigOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an existing `VpcFlowLogsConfig`. If a configuration with the exact same settings + * already exists (even if the ID is different), the creation fails. Notes: + * + *

1. Updating a configuration with `state=DISABLED` will fail 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - updating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
+   *     OrganizationVpcFlowLogsServiceClient.create()) {
+   *   UpdateVpcFlowLogsConfigRequest request =
+   *       UpdateVpcFlowLogsConfigRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setVpcFlowLogsConfig(VpcFlowLogsConfig.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       organizationVpcFlowLogsServiceClient
+   *           .updateVpcFlowLogsConfigOperationCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   VpcFlowLogsConfig response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + UpdateVpcFlowLogsConfigRequest, VpcFlowLogsConfig, OperationMetadata> + updateVpcFlowLogsConfigOperationCallable() { + return stub.updateVpcFlowLogsConfigOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an existing `VpcFlowLogsConfig`. If a configuration with the exact same settings + * already exists (even if the ID is different), the creation fails. Notes: + * + *

1. Updating a configuration with `state=DISABLED` will fail 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - updating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
+   *     OrganizationVpcFlowLogsServiceClient.create()) {
+   *   VpcFlowLogsConfigName name =
+   *       VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName(
+   *           "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]");
+   *   organizationVpcFlowLogsServiceClient.deleteVpcFlowLogsConfigAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the VpcFlowLogsConfig, in one of the following + * formats: + *

- For a project-level resource: + * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + *

- For an organization-level resource: + * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteVpcFlowLogsConfigAsync( + VpcFlowLogsConfigName name) { + DeleteVpcFlowLogsConfigRequest request = + DeleteVpcFlowLogsConfigRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteVpcFlowLogsConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific `VpcFlowLogsConfig`. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
+   *     OrganizationVpcFlowLogsServiceClient.create()) {
+   *   String name =
+   *       VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName(
+   *               "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]")
+   *           .toString();
+   *   organizationVpcFlowLogsServiceClient.deleteVpcFlowLogsConfigAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the VpcFlowLogsConfig, in one of the following + * formats: + *

- For a project-level resource: + * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + *

- For an organization-level resource: + * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteVpcFlowLogsConfigAsync(String name) { + DeleteVpcFlowLogsConfigRequest request = + DeleteVpcFlowLogsConfigRequest.newBuilder().setName(name).build(); + return deleteVpcFlowLogsConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific `VpcFlowLogsConfig`. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
+   *     OrganizationVpcFlowLogsServiceClient.create()) {
+   *   DeleteVpcFlowLogsConfigRequest request =
+   *       DeleteVpcFlowLogsConfigRequest.newBuilder()
+   *           .setName(
+   *               VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName(
+   *                       "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]")
+   *                   .toString())
+   *           .build();
+   *   organizationVpcFlowLogsServiceClient.deleteVpcFlowLogsConfigAsync(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 deleteVpcFlowLogsConfigAsync( + DeleteVpcFlowLogsConfigRequest request) { + return deleteVpcFlowLogsConfigOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific `VpcFlowLogsConfig`. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
+   *     OrganizationVpcFlowLogsServiceClient.create()) {
+   *   DeleteVpcFlowLogsConfigRequest request =
+   *       DeleteVpcFlowLogsConfigRequest.newBuilder()
+   *           .setName(
+   *               VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName(
+   *                       "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]")
+   *                   .toString())
+   *           .build();
+   *   OperationFuture future =
+   *       organizationVpcFlowLogsServiceClient
+   *           .deleteVpcFlowLogsConfigOperationCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteVpcFlowLogsConfigOperationCallable() { + return stub.deleteVpcFlowLogsConfigOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific `VpcFlowLogsConfig`. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
+   *     OrganizationVpcFlowLogsServiceClient.create()) {
+   *   DeleteVpcFlowLogsConfigRequest request =
+   *       DeleteVpcFlowLogsConfigRequest.newBuilder()
+   *           .setName(
+   *               VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName(
+   *                       "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       organizationVpcFlowLogsServiceClient
+   *           .deleteVpcFlowLogsConfigCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + deleteVpcFlowLogsConfigCallable() { + return stub.deleteVpcFlowLogsConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
+   *     OrganizationVpcFlowLogsServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element :
+   *       organizationVpcFlowLogsServiceClient.listLocations(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 ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
+   *     OrganizationVpcFlowLogsServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       organizationVpcFlowLogsServiceClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
+   *     OrganizationVpcFlowLogsServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response =
+   *         organizationVpcFlowLogsServiceClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
+   *     OrganizationVpcFlowLogsServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = organizationVpcFlowLogsServiceClient.getLocation(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 Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
+   *     OrganizationVpcFlowLogsServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future =
+   *       organizationVpcFlowLogsServiceClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
+   *     OrganizationVpcFlowLogsServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = organizationVpcFlowLogsServiceClient.setIamPolicy(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 Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
+   *     OrganizationVpcFlowLogsServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       organizationVpcFlowLogsServiceClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
+   *     OrganizationVpcFlowLogsServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = organizationVpcFlowLogsServiceClient.getIamPolicy(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 Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
+   *     OrganizationVpcFlowLogsServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       organizationVpcFlowLogsServiceClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
+   *     OrganizationVpcFlowLogsServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response =
+   *       organizationVpcFlowLogsServiceClient.testIamPermissions(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 TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
+   *     OrganizationVpcFlowLogsServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       organizationVpcFlowLogsServiceClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something.
+   *   TestIamPermissionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + + @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 ListVpcFlowLogsConfigsPagedResponse + extends AbstractPagedListResponse< + ListVpcFlowLogsConfigsRequest, + ListVpcFlowLogsConfigsResponse, + VpcFlowLogsConfig, + ListVpcFlowLogsConfigsPage, + ListVpcFlowLogsConfigsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListVpcFlowLogsConfigsRequest, ListVpcFlowLogsConfigsResponse, VpcFlowLogsConfig> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListVpcFlowLogsConfigsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListVpcFlowLogsConfigsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListVpcFlowLogsConfigsPagedResponse(ListVpcFlowLogsConfigsPage page) { + super(page, ListVpcFlowLogsConfigsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListVpcFlowLogsConfigsPage + extends AbstractPage< + ListVpcFlowLogsConfigsRequest, + ListVpcFlowLogsConfigsResponse, + VpcFlowLogsConfig, + ListVpcFlowLogsConfigsPage> { + + private ListVpcFlowLogsConfigsPage( + PageContext< + ListVpcFlowLogsConfigsRequest, ListVpcFlowLogsConfigsResponse, VpcFlowLogsConfig> + context, + ListVpcFlowLogsConfigsResponse response) { + super(context, response); + } + + private static ListVpcFlowLogsConfigsPage createEmptyPage() { + return new ListVpcFlowLogsConfigsPage(null, null); + } + + @Override + protected ListVpcFlowLogsConfigsPage createPage( + PageContext< + ListVpcFlowLogsConfigsRequest, ListVpcFlowLogsConfigsResponse, VpcFlowLogsConfig> + context, + ListVpcFlowLogsConfigsResponse response) { + return new ListVpcFlowLogsConfigsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListVpcFlowLogsConfigsRequest, ListVpcFlowLogsConfigsResponse, VpcFlowLogsConfig> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListVpcFlowLogsConfigsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListVpcFlowLogsConfigsRequest, + ListVpcFlowLogsConfigsResponse, + VpcFlowLogsConfig, + ListVpcFlowLogsConfigsPage, + ListVpcFlowLogsConfigsFixedSizeCollection> { + + private ListVpcFlowLogsConfigsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListVpcFlowLogsConfigsFixedSizeCollection createEmptyCollection() { + return new ListVpcFlowLogsConfigsFixedSizeCollection(null, 0); + } + + @Override + protected ListVpcFlowLogsConfigsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListVpcFlowLogsConfigsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/OrganizationVpcFlowLogsServiceSettings.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/OrganizationVpcFlowLogsServiceSettings.java new file mode 100644 index 000000000000..ab8a50f1b4e0 --- /dev/null +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/OrganizationVpcFlowLogsServiceSettings.java @@ -0,0 +1,420 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1; + +import static com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient.ListVpcFlowLogsConfigsPagedResponse; + +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.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networkmanagement.v1beta1.stub.OrganizationVpcFlowLogsServiceStubSettings; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link OrganizationVpcFlowLogsServiceClient}. + * + *

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

    + *
  • The default service address (networkmanagement.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 getVpcFlowLogsConfig: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * OrganizationVpcFlowLogsServiceSettings.Builder organizationVpcFlowLogsServiceSettingsBuilder =
+ *     OrganizationVpcFlowLogsServiceSettings.newBuilder();
+ * organizationVpcFlowLogsServiceSettingsBuilder
+ *     .getVpcFlowLogsConfigSettings()
+ *     .setRetrySettings(
+ *         organizationVpcFlowLogsServiceSettingsBuilder
+ *             .getVpcFlowLogsConfigSettings()
+ *             .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());
+ * OrganizationVpcFlowLogsServiceSettings organizationVpcFlowLogsServiceSettings =
+ *     organizationVpcFlowLogsServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) 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 createVpcFlowLogsConfig: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * OrganizationVpcFlowLogsServiceSettings.Builder organizationVpcFlowLogsServiceSettingsBuilder =
+ *     OrganizationVpcFlowLogsServiceSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * organizationVpcFlowLogsServiceSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class OrganizationVpcFlowLogsServiceSettings + extends ClientSettings { + + /** Returns the object with the settings used for calls to listVpcFlowLogsConfigs. */ + public PagedCallSettings< + ListVpcFlowLogsConfigsRequest, + ListVpcFlowLogsConfigsResponse, + ListVpcFlowLogsConfigsPagedResponse> + listVpcFlowLogsConfigsSettings() { + return ((OrganizationVpcFlowLogsServiceStubSettings) getStubSettings()) + .listVpcFlowLogsConfigsSettings(); + } + + /** Returns the object with the settings used for calls to getVpcFlowLogsConfig. */ + public UnaryCallSettings + getVpcFlowLogsConfigSettings() { + return ((OrganizationVpcFlowLogsServiceStubSettings) getStubSettings()) + .getVpcFlowLogsConfigSettings(); + } + + /** Returns the object with the settings used for calls to createVpcFlowLogsConfig. */ + public UnaryCallSettings + createVpcFlowLogsConfigSettings() { + return ((OrganizationVpcFlowLogsServiceStubSettings) getStubSettings()) + .createVpcFlowLogsConfigSettings(); + } + + /** Returns the object with the settings used for calls to createVpcFlowLogsConfig. */ + public OperationCallSettings + createVpcFlowLogsConfigOperationSettings() { + return ((OrganizationVpcFlowLogsServiceStubSettings) getStubSettings()) + .createVpcFlowLogsConfigOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateVpcFlowLogsConfig. */ + public UnaryCallSettings + updateVpcFlowLogsConfigSettings() { + return ((OrganizationVpcFlowLogsServiceStubSettings) getStubSettings()) + .updateVpcFlowLogsConfigSettings(); + } + + /** Returns the object with the settings used for calls to updateVpcFlowLogsConfig. */ + public OperationCallSettings + updateVpcFlowLogsConfigOperationSettings() { + return ((OrganizationVpcFlowLogsServiceStubSettings) getStubSettings()) + .updateVpcFlowLogsConfigOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteVpcFlowLogsConfig. */ + public UnaryCallSettings + deleteVpcFlowLogsConfigSettings() { + return ((OrganizationVpcFlowLogsServiceStubSettings) getStubSettings()) + .deleteVpcFlowLogsConfigSettings(); + } + + /** Returns the object with the settings used for calls to deleteVpcFlowLogsConfig. */ + public OperationCallSettings + deleteVpcFlowLogsConfigOperationSettings() { + return ((OrganizationVpcFlowLogsServiceStubSettings) getStubSettings()) + .deleteVpcFlowLogsConfigOperationSettings(); + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((OrganizationVpcFlowLogsServiceStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((OrganizationVpcFlowLogsServiceStubSettings) getStubSettings()).getLocationSettings(); + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return ((OrganizationVpcFlowLogsServiceStubSettings) getStubSettings()).setIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return ((OrganizationVpcFlowLogsServiceStubSettings) getStubSettings()).getIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return ((OrganizationVpcFlowLogsServiceStubSettings) getStubSettings()) + .testIamPermissionsSettings(); + } + + public static final OrganizationVpcFlowLogsServiceSettings create( + OrganizationVpcFlowLogsServiceStubSettings stub) throws IOException { + return new OrganizationVpcFlowLogsServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return OrganizationVpcFlowLogsServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return OrganizationVpcFlowLogsServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return OrganizationVpcFlowLogsServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return OrganizationVpcFlowLogsServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return OrganizationVpcFlowLogsServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return OrganizationVpcFlowLogsServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return OrganizationVpcFlowLogsServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return OrganizationVpcFlowLogsServiceStubSettings.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(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 OrganizationVpcFlowLogsServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for OrganizationVpcFlowLogsServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(OrganizationVpcFlowLogsServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(OrganizationVpcFlowLogsServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(OrganizationVpcFlowLogsServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(OrganizationVpcFlowLogsServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(OrganizationVpcFlowLogsServiceStubSettings.newHttpJsonBuilder()); + } + + public OrganizationVpcFlowLogsServiceStubSettings.Builder getStubSettingsBuilder() { + return ((OrganizationVpcFlowLogsServiceStubSettings.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 listVpcFlowLogsConfigs. */ + public PagedCallSettings.Builder< + ListVpcFlowLogsConfigsRequest, + ListVpcFlowLogsConfigsResponse, + ListVpcFlowLogsConfigsPagedResponse> + listVpcFlowLogsConfigsSettings() { + return getStubSettingsBuilder().listVpcFlowLogsConfigsSettings(); + } + + /** Returns the builder for the settings used for calls to getVpcFlowLogsConfig. */ + public UnaryCallSettings.Builder + getVpcFlowLogsConfigSettings() { + return getStubSettingsBuilder().getVpcFlowLogsConfigSettings(); + } + + /** Returns the builder for the settings used for calls to createVpcFlowLogsConfig. */ + public UnaryCallSettings.Builder + createVpcFlowLogsConfigSettings() { + return getStubSettingsBuilder().createVpcFlowLogsConfigSettings(); + } + + /** Returns the builder for the settings used for calls to createVpcFlowLogsConfig. */ + public OperationCallSettings.Builder< + CreateVpcFlowLogsConfigRequest, VpcFlowLogsConfig, OperationMetadata> + createVpcFlowLogsConfigOperationSettings() { + return getStubSettingsBuilder().createVpcFlowLogsConfigOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateVpcFlowLogsConfig. */ + public UnaryCallSettings.Builder + updateVpcFlowLogsConfigSettings() { + return getStubSettingsBuilder().updateVpcFlowLogsConfigSettings(); + } + + /** Returns the builder for the settings used for calls to updateVpcFlowLogsConfig. */ + public OperationCallSettings.Builder< + UpdateVpcFlowLogsConfigRequest, VpcFlowLogsConfig, OperationMetadata> + updateVpcFlowLogsConfigOperationSettings() { + return getStubSettingsBuilder().updateVpcFlowLogsConfigOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteVpcFlowLogsConfig. */ + public UnaryCallSettings.Builder + deleteVpcFlowLogsConfigSettings() { + return getStubSettingsBuilder().deleteVpcFlowLogsConfigSettings(); + } + + /** Returns the builder for the settings used for calls to deleteVpcFlowLogsConfig. */ + public OperationCallSettings.Builder + deleteVpcFlowLogsConfigOperationSettings() { + return getStubSettingsBuilder().deleteVpcFlowLogsConfigOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getStubSettingsBuilder().getLocationSettings(); + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return getStubSettingsBuilder().setIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getStubSettingsBuilder().getIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return getStubSettingsBuilder().testIamPermissionsSettings(); + } + + @Override + public OrganizationVpcFlowLogsServiceSettings build() throws IOException { + return new OrganizationVpcFlowLogsServiceSettings(this); + } + } +} diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceClient.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceClient.java index f758bd43c7a5..bee41c84f201 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceClient.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceClient.java @@ -65,7 +65,8 @@ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { * VpcFlowLogsConfigName name = - * VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + * VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + * "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); * VpcFlowLogsConfig response = vpcFlowLogsServiceClient.getVpcFlowLogsConfig(name); * } * } @@ -92,6 +93,7 @@ *

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

*
    *
  • listVpcFlowLogsConfigs(LocationName parent) + *

  • listVpcFlowLogsConfigs(OrganizationLocationName parent) *

  • listVpcFlowLogsConfigs(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.

@@ -122,7 +124,8 @@ * * *

CreateVpcFlowLogsConfig - *

Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already exists (even if the ID is different), the creation fails. Notes: 1. Creating a configuration with state=DISABLED will fail. 2. The following fields are not considrered as `settings` for the purpose of the check mentioned above, therefore - creating another configuration with the same fields but different values for the following fields will fail as well: - name - create_time - update_time - labels - description + *

Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already exists (even if the ID is different), the creation fails. Notes: + *

1. Creating a configuration with `state=DISABLED` will fail 2. The following fields are not considered as settings for the purpose of the check mentioned above, therefore - creating another configuration with the same fields but different values for the following fields will fail as well: * name * create_time * update_time * labels * description * *

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

*
    @@ -132,6 +135,8 @@ *
      *
    • createVpcFlowLogsConfigAsync(LocationName parent, VpcFlowLogsConfig vpcFlowLogsConfig, VpcFlowLogsConfigName vpcFlowLogsConfigId) *

    • createVpcFlowLogsConfigAsync(LocationName parent, VpcFlowLogsConfig vpcFlowLogsConfig, String vpcFlowLogsConfigId) + *

    • createVpcFlowLogsConfigAsync(OrganizationLocationName parent, VpcFlowLogsConfig vpcFlowLogsConfig, VpcFlowLogsConfigName vpcFlowLogsConfigId) + *

    • createVpcFlowLogsConfigAsync(OrganizationLocationName parent, VpcFlowLogsConfig vpcFlowLogsConfig, String vpcFlowLogsConfigId) *

    • createVpcFlowLogsConfigAsync(String parent, VpcFlowLogsConfig vpcFlowLogsConfig, VpcFlowLogsConfigName vpcFlowLogsConfigId) *

    • createVpcFlowLogsConfigAsync(String parent, VpcFlowLogsConfig vpcFlowLogsConfig, String vpcFlowLogsConfigId) *

    @@ -144,7 +149,8 @@ * * *

    UpdateVpcFlowLogsConfig - *

    Updates an existing `VpcFlowLogsConfig`. If a configuration with the exact same settings already exists (even if the ID is different), the creation fails. Notes: 1. The following fields are not considrered as `settings` for the purpose of the check mentioned above, therefore - updating another configuration with the same fields but different values for the following fields will fail as well: - name - create_time - update_time - labels - description + *

    Updates an existing `VpcFlowLogsConfig`. If a configuration with the exact same settings already exists (even if the ID is different), the creation fails. Notes: + *

    1. Updating a configuration with `state=DISABLED` will fail 2. The following fields are not considered as settings for the purpose of the check mentioned above, therefore - updating another configuration with the same fields but different values for the following fields will fail as well: * name * create_time * update_time * labels * description * *

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

    *
      @@ -182,6 +188,21 @@ * * * + *

      QueryOrgVpcFlowLogsConfigs + *

      QueryOrgVpcFlowLogsConfigs returns a list of all organization-level VPC Flow Logs configurations applicable to the specified project. + * + *

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

      + *
        + *
      • queryOrgVpcFlowLogsConfigs(QueryOrgVpcFlowLogsConfigsRequest request) + *

      + *

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

      + *
        + *
      • queryOrgVpcFlowLogsConfigsPagedCallable() + *

      • queryOrgVpcFlowLogsConfigsCallable() + *

      + * + * + * *

      ListLocations *

      Lists information about the supported locations for this service. * @@ -409,8 +430,10 @@ public final OperationsClient getHttpJsonOperationsClient() { * } * } * - * @param parent Required. The parent resource of the VpcFlowLogsConfig: - * `projects/{project_id}/locations/global` + * @param parent Required. The parent resource of the VpcFlowLogsConfig, in one of the following + * formats: + *

      - For project-level resourcs: `projects/{project_id}/locations/global` + *

      - For organization-level resources: `organizations/{organization_id}/locations/global` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListVpcFlowLogsConfigsPagedResponse listVpcFlowLogsConfigs(LocationName parent) { @@ -421,6 +444,42 @@ public final ListVpcFlowLogsConfigsPagedResponse listVpcFlowLogsConfigs(Location return listVpcFlowLogsConfigs(request); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all `VpcFlowLogsConfigs` in a given project. + * + *

      Sample code: + * + *

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

      - For project-level resourcs: `projects/{project_id}/locations/global` + *

      - For organization-level resources: `organizations/{organization_id}/locations/global` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListVpcFlowLogsConfigsPagedResponse listVpcFlowLogsConfigs( + OrganizationLocationName parent) { + ListVpcFlowLogsConfigsRequest request = + ListVpcFlowLogsConfigsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listVpcFlowLogsConfigs(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists all `VpcFlowLogsConfigs` in a given project. @@ -442,8 +501,10 @@ public final ListVpcFlowLogsConfigsPagedResponse listVpcFlowLogsConfigs(Location * } * } * - * @param parent Required. The parent resource of the VpcFlowLogsConfig: - * `projects/{project_id}/locations/global` + * @param parent Required. The parent resource of the VpcFlowLogsConfig, in one of the following + * formats: + *

      - For project-level resourcs: `projects/{project_id}/locations/global` + *

      - For organization-level resources: `organizations/{organization_id}/locations/global` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListVpcFlowLogsConfigsPagedResponse listVpcFlowLogsConfigs(String parent) { @@ -579,13 +640,18 @@ public final ListVpcFlowLogsConfigsPagedResponse listVpcFlowLogsConfigs( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { * VpcFlowLogsConfigName name = - * VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + * VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + * "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); * VpcFlowLogsConfig response = vpcFlowLogsServiceClient.getVpcFlowLogsConfig(name); * } * } * - * @param name Required. `VpcFlowLogsConfig` resource name using the form: - * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}` + * @param name Required. The resource name of the VpcFlowLogsConfig, in one of the following + * formats: + *

      - For project-level resources: + * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + *

      - For organization-level resources: + * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final VpcFlowLogsConfig getVpcFlowLogsConfig(VpcFlowLogsConfigName name) { @@ -610,13 +676,19 @@ public final VpcFlowLogsConfig getVpcFlowLogsConfig(VpcFlowLogsConfigName name) * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { * String name = - * VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]").toString(); + * VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + * "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + * .toString(); * VpcFlowLogsConfig response = vpcFlowLogsServiceClient.getVpcFlowLogsConfig(name); * } * } * - * @param name Required. `VpcFlowLogsConfig` resource name using the form: - * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}` + * @param name Required. The resource name of the VpcFlowLogsConfig, in one of the following + * formats: + *

      - For project-level resources: + * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + *

      - For organization-level resources: + * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final VpcFlowLogsConfig getVpcFlowLogsConfig(String name) { @@ -641,7 +713,8 @@ public final VpcFlowLogsConfig getVpcFlowLogsConfig(String name) { * GetVpcFlowLogsConfigRequest request = * GetVpcFlowLogsConfigRequest.newBuilder() * .setName( - * VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + * VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + * "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") * .toString()) * .build(); * VpcFlowLogsConfig response = vpcFlowLogsServiceClient.getVpcFlowLogsConfig(request); @@ -671,7 +744,8 @@ public final VpcFlowLogsConfig getVpcFlowLogsConfig(GetVpcFlowLogsConfigRequest * GetVpcFlowLogsConfigRequest request = * GetVpcFlowLogsConfigRequest.newBuilder() * .setName( - * VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + * VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + * "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") * .toString()) * .build(); * ApiFuture future = @@ -689,11 +763,12 @@ public final VpcFlowLogsConfig getVpcFlowLogsConfig(GetVpcFlowLogsConfigRequest // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already - * exists (even if the ID is different), the creation fails. Notes: 1. Creating a configuration - * with state=DISABLED will fail. 2. The following fields are not considrered as `settings` for - * the purpose of the check mentioned above, therefore - creating another configuration with the - * same fields but different values for the following fields will fail as well: - name - - * create_time - update_time - labels - description + * exists (even if the ID is different), the creation fails. Notes: + * + *

      1. Creating a configuration with `state=DISABLED` will fail 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - creating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description * *

      Sample code: * @@ -707,7 +782,8 @@ public final VpcFlowLogsConfig getVpcFlowLogsConfig(GetVpcFlowLogsConfigRequest * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); * VpcFlowLogsConfigName vpcFlowLogsConfigId = - * VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + * VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + * "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); * VpcFlowLogsConfig response = * vpcFlowLogsServiceClient * .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId) @@ -715,8 +791,10 @@ public final VpcFlowLogsConfig getVpcFlowLogsConfig(GetVpcFlowLogsConfigRequest * } * } * - * @param parent Required. The parent resource of the VPC Flow Logs configuration to create: - * `projects/{project_id}/locations/global` + * @param parent Required. The parent resource of the VpcFlowLogsConfig to create, in one of the + * following formats: + *

      - For project-level resources: `projects/{project_id}/locations/global` + *

      - For organization-level resources: `organizations/{organization_id}/locations/global` * @param vpcFlowLogsConfig Required. A `VpcFlowLogsConfig` resource * @param vpcFlowLogsConfigId Required. ID of the `VpcFlowLogsConfig`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -738,11 +816,12 @@ public final OperationFuture createVpcFlow // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already - * exists (even if the ID is different), the creation fails. Notes: 1. Creating a configuration - * with state=DISABLED will fail. 2. The following fields are not considrered as `settings` for - * the purpose of the check mentioned above, therefore - creating another configuration with the - * same fields but different values for the following fields will fail as well: - name - - * create_time - update_time - labels - description + * exists (even if the ID is different), the creation fails. Notes: + * + *

      1. Creating a configuration with `state=DISABLED` will fail 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - creating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description * *

      Sample code: * @@ -756,7 +835,9 @@ public final OperationFuture createVpcFlow * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); * String vpcFlowLogsConfigId = - * VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]").toString(); + * VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + * "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + * .toString(); * VpcFlowLogsConfig response = * vpcFlowLogsServiceClient * .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId) @@ -764,8 +845,10 @@ public final OperationFuture createVpcFlow * } * } * - * @param parent Required. The parent resource of the VPC Flow Logs configuration to create: - * `projects/{project_id}/locations/global` + * @param parent Required. The parent resource of the VpcFlowLogsConfig to create, in one of the + * following formats: + *

      - For project-level resources: `projects/{project_id}/locations/global` + *

      - For organization-level resources: `organizations/{organization_id}/locations/global` * @param vpcFlowLogsConfig Required. A `VpcFlowLogsConfig` resource * @param vpcFlowLogsConfigId Required. ID of the `VpcFlowLogsConfig`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -784,11 +867,118 @@ public final OperationFuture createVpcFlow // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already - * exists (even if the ID is different), the creation fails. Notes: 1. Creating a configuration - * with state=DISABLED will fail. 2. The following fields are not considrered as `settings` for - * the purpose of the check mentioned above, therefore - creating another configuration with the - * same fields but different values for the following fields will fail as well: - name - - * create_time - update_time - labels - description + * exists (even if the ID is different), the creation fails. Notes: + * + *

      1. Creating a configuration with `state=DISABLED` will fail 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - creating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
      +   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
      +   *   VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build();
      +   *   VpcFlowLogsConfigName vpcFlowLogsConfigId =
      +   *       VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName(
      +   *           "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]");
      +   *   VpcFlowLogsConfig response =
      +   *       vpcFlowLogsServiceClient
      +   *           .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId)
      +   *           .get();
      +   * }
      +   * }
      + * + * @param parent Required. The parent resource of the VpcFlowLogsConfig to create, in one of the + * following formats: + *

      - For project-level resources: `projects/{project_id}/locations/global` + *

      - For organization-level resources: `organizations/{organization_id}/locations/global` + * @param vpcFlowLogsConfig Required. A `VpcFlowLogsConfig` resource + * @param vpcFlowLogsConfigId Required. ID of the `VpcFlowLogsConfig`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createVpcFlowLogsConfigAsync( + OrganizationLocationName parent, + VpcFlowLogsConfig vpcFlowLogsConfig, + VpcFlowLogsConfigName vpcFlowLogsConfigId) { + CreateVpcFlowLogsConfigRequest request = + CreateVpcFlowLogsConfigRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setVpcFlowLogsConfig(vpcFlowLogsConfig) + .setVpcFlowLogsConfigId( + vpcFlowLogsConfigId == null ? null : vpcFlowLogsConfigId.toString()) + .build(); + return createVpcFlowLogsConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already + * exists (even if the ID is different), the creation fails. Notes: + * + *

      1. Creating a configuration with `state=DISABLED` will fail 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - creating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
      +   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
      +   *   VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build();
      +   *   String vpcFlowLogsConfigId =
      +   *       VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName(
      +   *               "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]")
      +   *           .toString();
      +   *   VpcFlowLogsConfig response =
      +   *       vpcFlowLogsServiceClient
      +   *           .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId)
      +   *           .get();
      +   * }
      +   * }
      + * + * @param parent Required. The parent resource of the VpcFlowLogsConfig to create, in one of the + * following formats: + *

      - For project-level resources: `projects/{project_id}/locations/global` + *

      - For organization-level resources: `organizations/{organization_id}/locations/global` + * @param vpcFlowLogsConfig Required. A `VpcFlowLogsConfig` resource + * @param vpcFlowLogsConfigId Required. ID of the `VpcFlowLogsConfig`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createVpcFlowLogsConfigAsync( + OrganizationLocationName parent, + VpcFlowLogsConfig vpcFlowLogsConfig, + String vpcFlowLogsConfigId) { + CreateVpcFlowLogsConfigRequest request = + CreateVpcFlowLogsConfigRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setVpcFlowLogsConfig(vpcFlowLogsConfig) + .setVpcFlowLogsConfigId(vpcFlowLogsConfigId) + .build(); + return createVpcFlowLogsConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already + * exists (even if the ID is different), the creation fails. Notes: + * + *

      1. Creating a configuration with `state=DISABLED` will fail 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - creating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description * *

      Sample code: * @@ -802,7 +992,8 @@ public final OperationFuture createVpcFlow * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); * VpcFlowLogsConfigName vpcFlowLogsConfigId = - * VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + * VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + * "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); * VpcFlowLogsConfig response = * vpcFlowLogsServiceClient * .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId) @@ -810,8 +1001,10 @@ public final OperationFuture createVpcFlow * } * } * - * @param parent Required. The parent resource of the VPC Flow Logs configuration to create: - * `projects/{project_id}/locations/global` + * @param parent Required. The parent resource of the VpcFlowLogsConfig to create, in one of the + * following formats: + *

      - For project-level resources: `projects/{project_id}/locations/global` + *

      - For organization-level resources: `organizations/{organization_id}/locations/global` * @param vpcFlowLogsConfig Required. A `VpcFlowLogsConfig` resource * @param vpcFlowLogsConfigId Required. ID of the `VpcFlowLogsConfig`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -833,11 +1026,12 @@ public final OperationFuture createVpcFlow // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already - * exists (even if the ID is different), the creation fails. Notes: 1. Creating a configuration - * with state=DISABLED will fail. 2. The following fields are not considrered as `settings` for - * the purpose of the check mentioned above, therefore - creating another configuration with the - * same fields but different values for the following fields will fail as well: - name - - * create_time - update_time - labels - description + * exists (even if the ID is different), the creation fails. Notes: + * + *

      1. Creating a configuration with `state=DISABLED` will fail 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - creating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description * *

      Sample code: * @@ -851,7 +1045,9 @@ public final OperationFuture createVpcFlow * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); * String vpcFlowLogsConfigId = - * VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]").toString(); + * VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + * "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + * .toString(); * VpcFlowLogsConfig response = * vpcFlowLogsServiceClient * .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId) @@ -859,8 +1055,10 @@ public final OperationFuture createVpcFlow * } * } * - * @param parent Required. The parent resource of the VPC Flow Logs configuration to create: - * `projects/{project_id}/locations/global` + * @param parent Required. The parent resource of the VpcFlowLogsConfig to create, in one of the + * following formats: + *

      - For project-level resources: `projects/{project_id}/locations/global` + *

      - For organization-level resources: `organizations/{organization_id}/locations/global` * @param vpcFlowLogsConfig Required. A `VpcFlowLogsConfig` resource * @param vpcFlowLogsConfigId Required. ID of the `VpcFlowLogsConfig`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -879,11 +1077,12 @@ public final OperationFuture createVpcFlow // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already - * exists (even if the ID is different), the creation fails. Notes: 1. Creating a configuration - * with state=DISABLED will fail. 2. The following fields are not considrered as `settings` for - * the purpose of the check mentioned above, therefore - creating another configuration with the - * same fields but different values for the following fields will fail as well: - name - - * create_time - update_time - labels - description + * exists (even if the ID is different), the creation fails. Notes: + * + *

      1. Creating a configuration with `state=DISABLED` will fail 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - creating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description * *

      Sample code: * @@ -898,7 +1097,8 @@ public final OperationFuture createVpcFlow * CreateVpcFlowLogsConfigRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setVpcFlowLogsConfigId( - * VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + * VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + * "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") * .toString()) * .setVpcFlowLogsConfig(VpcFlowLogsConfig.newBuilder().build()) * .build(); @@ -918,11 +1118,12 @@ public final OperationFuture createVpcFlow // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already - * exists (even if the ID is different), the creation fails. Notes: 1. Creating a configuration - * with state=DISABLED will fail. 2. The following fields are not considrered as `settings` for - * the purpose of the check mentioned above, therefore - creating another configuration with the - * same fields but different values for the following fields will fail as well: - name - - * create_time - update_time - labels - description + * exists (even if the ID is different), the creation fails. Notes: + * + *

      1. Creating a configuration with `state=DISABLED` will fail 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - creating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description * *

      Sample code: * @@ -937,7 +1138,8 @@ public final OperationFuture createVpcFlow * CreateVpcFlowLogsConfigRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setVpcFlowLogsConfigId( - * VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + * VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + * "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") * .toString()) * .setVpcFlowLogsConfig(VpcFlowLogsConfig.newBuilder().build()) * .build(); @@ -957,11 +1159,12 @@ public final OperationFuture createVpcFlow // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already - * exists (even if the ID is different), the creation fails. Notes: 1. Creating a configuration - * with state=DISABLED will fail. 2. The following fields are not considrered as `settings` for - * the purpose of the check mentioned above, therefore - creating another configuration with the - * same fields but different values for the following fields will fail as well: - name - - * create_time - update_time - labels - description + * exists (even if the ID is different), the creation fails. Notes: + * + *

      1. Creating a configuration with `state=DISABLED` will fail 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - creating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description * *

      Sample code: * @@ -976,7 +1179,8 @@ public final OperationFuture createVpcFlow * CreateVpcFlowLogsConfigRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setVpcFlowLogsConfigId( - * VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + * VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + * "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") * .toString()) * .setVpcFlowLogsConfig(VpcFlowLogsConfig.newBuilder().build()) * .build(); @@ -995,10 +1199,12 @@ public final OperationFuture createVpcFlow // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates an existing `VpcFlowLogsConfig`. If a configuration with the exact same settings - * already exists (even if the ID is different), the creation fails. Notes: 1. The following - * fields are not considrered as `settings` for the purpose of the check mentioned above, - * therefore - updating another configuration with the same fields but different values for the - * following fields will fail as well: - name - create_time - update_time - labels - description + * already exists (even if the ID is different), the creation fails. Notes: + * + *

      1. Updating a configuration with `state=DISABLED` will fail 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - updating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description * *

      Sample code: * @@ -1020,7 +1226,10 @@ public final OperationFuture createVpcFlow * * @param vpcFlowLogsConfig Required. Only fields specified in update_mask are updated. * @param updateMask Required. Mask of fields to update. At least one path must be supplied in - * this field. + * this field. For example, to change the state of the configuration to ENABLED, specify + * `update_mask` = `"state"`, and the `vpc_flow_logs_config` would be: `vpc_flow_logs_config = + * { name = "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config" state = + * "ENABLED" }` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture updateVpcFlowLogsConfigAsync( @@ -1036,10 +1245,12 @@ public final OperationFuture updateVpcFlow // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates an existing `VpcFlowLogsConfig`. If a configuration with the exact same settings - * already exists (even if the ID is different), the creation fails. Notes: 1. The following - * fields are not considrered as `settings` for the purpose of the check mentioned above, - * therefore - updating another configuration with the same fields but different values for the - * following fields will fail as well: - name - create_time - update_time - labels - description + * already exists (even if the ID is different), the creation fails. Notes: + * + *

      1. Updating a configuration with `state=DISABLED` will fail 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - updating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description * *

      Sample code: * @@ -1071,10 +1282,12 @@ public final OperationFuture updateVpcFlow // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates an existing `VpcFlowLogsConfig`. If a configuration with the exact same settings - * already exists (even if the ID is different), the creation fails. Notes: 1. The following - * fields are not considrered as `settings` for the purpose of the check mentioned above, - * therefore - updating another configuration with the same fields but different values for the - * following fields will fail as well: - name - create_time - update_time - labels - description + * already exists (even if the ID is different), the creation fails. Notes: + * + *

      1. Updating a configuration with `state=DISABLED` will fail 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - updating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description * *

      Sample code: * @@ -1106,10 +1319,12 @@ public final OperationFuture updateVpcFlow // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates an existing `VpcFlowLogsConfig`. If a configuration with the exact same settings - * already exists (even if the ID is different), the creation fails. Notes: 1. The following - * fields are not considrered as `settings` for the purpose of the check mentioned above, - * therefore - updating another configuration with the same fields but different values for the - * following fields will fail as well: - name - create_time - update_time - labels - description + * already exists (even if the ID is different), the creation fails. Notes: + * + *

      1. Updating a configuration with `state=DISABLED` will fail 2. The following fields are not + * considered as settings for the purpose of the check mentioned above, therefore - updating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description * *

      Sample code: * @@ -1151,13 +1366,18 @@ public final OperationFuture updateVpcFlow * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { * VpcFlowLogsConfigName name = - * VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + * VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + * "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); * vpcFlowLogsServiceClient.deleteVpcFlowLogsConfigAsync(name).get(); * } * } * - * @param name Required. `VpcFlowLogsConfig` resource name using the form: - * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}` + * @param name Required. The resource name of the VpcFlowLogsConfig, in one of the following + * formats: + *

      - For a project-level resource: + * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + *

      - For an organization-level resource: + * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteVpcFlowLogsConfigAsync( @@ -1183,13 +1403,19 @@ public final OperationFuture deleteVpcFlowLogsConfigAs * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { * String name = - * VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]").toString(); + * VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + * "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + * .toString(); * vpcFlowLogsServiceClient.deleteVpcFlowLogsConfigAsync(name).get(); * } * } * - * @param name Required. `VpcFlowLogsConfig` resource name using the form: - * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}` + * @param name Required. The resource name of the VpcFlowLogsConfig, in one of the following + * formats: + *

      - For a project-level resource: + * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + *

      - For an organization-level resource: + * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteVpcFlowLogsConfigAsync(String name) { @@ -1214,7 +1440,8 @@ public final OperationFuture deleteVpcFlowLogsConfigAs * DeleteVpcFlowLogsConfigRequest request = * DeleteVpcFlowLogsConfigRequest.newBuilder() * .setName( - * VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + * VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + * "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") * .toString()) * .build(); * vpcFlowLogsServiceClient.deleteVpcFlowLogsConfigAsync(request).get(); @@ -1245,7 +1472,8 @@ public final OperationFuture deleteVpcFlowLogsConfigAs * DeleteVpcFlowLogsConfigRequest request = * DeleteVpcFlowLogsConfigRequest.newBuilder() * .setName( - * VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + * VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + * "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") * .toString()) * .build(); * OperationFuture future = @@ -1276,7 +1504,8 @@ public final OperationFuture deleteVpcFlowLogsConfigAs * DeleteVpcFlowLogsConfigRequest request = * DeleteVpcFlowLogsConfigRequest.newBuilder() * .setName( - * VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + * VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + * "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") * .toString()) * .build(); * ApiFuture future = @@ -1291,6 +1520,120 @@ public final OperationFuture deleteVpcFlowLogsConfigAs return stub.deleteVpcFlowLogsConfigCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * QueryOrgVpcFlowLogsConfigs returns a list of all organization-level VPC Flow Logs + * configurations applicable to the specified project. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
      +   *   QueryOrgVpcFlowLogsConfigsRequest request =
      +   *       QueryOrgVpcFlowLogsConfigsRequest.newBuilder()
      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .setFilter("filter-1274492040")
      +   *           .build();
      +   *   for (VpcFlowLogsConfig element :
      +   *       vpcFlowLogsServiceClient.queryOrgVpcFlowLogsConfigs(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 QueryOrgVpcFlowLogsConfigsPagedResponse queryOrgVpcFlowLogsConfigs( + QueryOrgVpcFlowLogsConfigsRequest request) { + return queryOrgVpcFlowLogsConfigsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * QueryOrgVpcFlowLogsConfigs returns a list of all organization-level VPC Flow Logs + * configurations applicable to the specified project. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
      +   *   QueryOrgVpcFlowLogsConfigsRequest request =
      +   *       QueryOrgVpcFlowLogsConfigsRequest.newBuilder()
      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .setFilter("filter-1274492040")
      +   *           .build();
      +   *   ApiFuture future =
      +   *       vpcFlowLogsServiceClient.queryOrgVpcFlowLogsConfigsPagedCallable().futureCall(request);
      +   *   // Do something.
      +   *   for (VpcFlowLogsConfig element : future.get().iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + */ + public final UnaryCallable< + QueryOrgVpcFlowLogsConfigsRequest, QueryOrgVpcFlowLogsConfigsPagedResponse> + queryOrgVpcFlowLogsConfigsPagedCallable() { + return stub.queryOrgVpcFlowLogsConfigsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * QueryOrgVpcFlowLogsConfigs returns a list of all organization-level VPC Flow Logs + * configurations applicable to the specified project. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
      +   *   QueryOrgVpcFlowLogsConfigsRequest request =
      +   *       QueryOrgVpcFlowLogsConfigsRequest.newBuilder()
      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .setFilter("filter-1274492040")
      +   *           .build();
      +   *   while (true) {
      +   *     QueryOrgVpcFlowLogsConfigsResponse response =
      +   *         vpcFlowLogsServiceClient.queryOrgVpcFlowLogsConfigsCallable().call(request);
      +   *     for (VpcFlowLogsConfig element : response.getVpcFlowLogsConfigsList()) {
      +   *       // doThingsWith(element);
      +   *     }
      +   *     String nextPageToken = response.getNextPageToken();
      +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
      +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
      +   *     } else {
      +   *       break;
      +   *     }
      +   *   }
      +   * }
      +   * }
      + */ + public final UnaryCallable + queryOrgVpcFlowLogsConfigsCallable() { + return stub.queryOrgVpcFlowLogsConfigsCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists information about the supported locations for this service. @@ -1759,6 +2102,102 @@ protected ListVpcFlowLogsConfigsFixedSizeCollection createCollection( } } + public static class QueryOrgVpcFlowLogsConfigsPagedResponse + extends AbstractPagedListResponse< + QueryOrgVpcFlowLogsConfigsRequest, + QueryOrgVpcFlowLogsConfigsResponse, + VpcFlowLogsConfig, + QueryOrgVpcFlowLogsConfigsPage, + QueryOrgVpcFlowLogsConfigsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + QueryOrgVpcFlowLogsConfigsRequest, + QueryOrgVpcFlowLogsConfigsResponse, + VpcFlowLogsConfig> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + QueryOrgVpcFlowLogsConfigsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new QueryOrgVpcFlowLogsConfigsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private QueryOrgVpcFlowLogsConfigsPagedResponse(QueryOrgVpcFlowLogsConfigsPage page) { + super(page, QueryOrgVpcFlowLogsConfigsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class QueryOrgVpcFlowLogsConfigsPage + extends AbstractPage< + QueryOrgVpcFlowLogsConfigsRequest, + QueryOrgVpcFlowLogsConfigsResponse, + VpcFlowLogsConfig, + QueryOrgVpcFlowLogsConfigsPage> { + + private QueryOrgVpcFlowLogsConfigsPage( + PageContext< + QueryOrgVpcFlowLogsConfigsRequest, + QueryOrgVpcFlowLogsConfigsResponse, + VpcFlowLogsConfig> + context, + QueryOrgVpcFlowLogsConfigsResponse response) { + super(context, response); + } + + private static QueryOrgVpcFlowLogsConfigsPage createEmptyPage() { + return new QueryOrgVpcFlowLogsConfigsPage(null, null); + } + + @Override + protected QueryOrgVpcFlowLogsConfigsPage createPage( + PageContext< + QueryOrgVpcFlowLogsConfigsRequest, + QueryOrgVpcFlowLogsConfigsResponse, + VpcFlowLogsConfig> + context, + QueryOrgVpcFlowLogsConfigsResponse response) { + return new QueryOrgVpcFlowLogsConfigsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + QueryOrgVpcFlowLogsConfigsRequest, + QueryOrgVpcFlowLogsConfigsResponse, + VpcFlowLogsConfig> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class QueryOrgVpcFlowLogsConfigsFixedSizeCollection + extends AbstractFixedSizeCollection< + QueryOrgVpcFlowLogsConfigsRequest, + QueryOrgVpcFlowLogsConfigsResponse, + VpcFlowLogsConfig, + QueryOrgVpcFlowLogsConfigsPage, + QueryOrgVpcFlowLogsConfigsFixedSizeCollection> { + + private QueryOrgVpcFlowLogsConfigsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static QueryOrgVpcFlowLogsConfigsFixedSizeCollection createEmptyCollection() { + return new QueryOrgVpcFlowLogsConfigsFixedSizeCollection(null, 0); + } + + @Override + protected QueryOrgVpcFlowLogsConfigsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new QueryOrgVpcFlowLogsConfigsFixedSizeCollection(pages, collectionSize); + } + } + public static class ListLocationsPagedResponse extends AbstractPagedListResponse< ListLocationsRequest, diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceSettings.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceSettings.java index 10536d2b7e75..c1050b609f76 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceSettings.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceSettings.java @@ -18,6 +18,7 @@ import static com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient.ListLocationsPagedResponse; import static com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient.ListVpcFlowLogsConfigsPagedResponse; +import static com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient.QueryOrgVpcFlowLogsConfigsPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.BetaApi; @@ -184,6 +185,16 @@ public class VpcFlowLogsServiceSettings extends ClientSettings + queryOrgVpcFlowLogsConfigsSettings() { + return ((VpcFlowLogsServiceStubSettings) getStubSettings()) + .queryOrgVpcFlowLogsConfigsSettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -376,6 +387,15 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().deleteVpcFlowLogsConfigOperationSettings(); } + /** Returns the builder for the settings used for calls to queryOrgVpcFlowLogsConfigs. */ + public PagedCallSettings.Builder< + QueryOrgVpcFlowLogsConfigsRequest, + QueryOrgVpcFlowLogsConfigsResponse, + QueryOrgVpcFlowLogsConfigsPagedResponse> + queryOrgVpcFlowLogsConfigsSettings() { + return getStubSettingsBuilder().queryOrgVpcFlowLogsConfigsSettings(); + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/gapic_metadata.json b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/gapic_metadata.json index 90418160ee96..cd1a668a3e50 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/gapic_metadata.json +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/gapic_metadata.json @@ -53,7 +53,7 @@ "libraryClient": "VpcFlowLogsServiceClient", "rpcs": { "CreateVpcFlowLogsConfig": { - "methods": ["createVpcFlowLogsConfigAsync", "createVpcFlowLogsConfigAsync", "createVpcFlowLogsConfigAsync", "createVpcFlowLogsConfigAsync", "createVpcFlowLogsConfigAsync", "createVpcFlowLogsConfigOperationCallable", "createVpcFlowLogsConfigCallable"] + "methods": ["createVpcFlowLogsConfigAsync", "createVpcFlowLogsConfigAsync", "createVpcFlowLogsConfigAsync", "createVpcFlowLogsConfigAsync", "createVpcFlowLogsConfigAsync", "createVpcFlowLogsConfigAsync", "createVpcFlowLogsConfigAsync", "createVpcFlowLogsConfigOperationCallable", "createVpcFlowLogsConfigCallable"] }, "DeleteVpcFlowLogsConfig": { "methods": ["deleteVpcFlowLogsConfigAsync", "deleteVpcFlowLogsConfigAsync", "deleteVpcFlowLogsConfigAsync", "deleteVpcFlowLogsConfigOperationCallable", "deleteVpcFlowLogsConfigCallable"] @@ -71,7 +71,49 @@ "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] }, "ListVpcFlowLogsConfigs": { - "methods": ["listVpcFlowLogsConfigs", "listVpcFlowLogsConfigs", "listVpcFlowLogsConfigs", "listVpcFlowLogsConfigsPagedCallable", "listVpcFlowLogsConfigsCallable"] + "methods": ["listVpcFlowLogsConfigs", "listVpcFlowLogsConfigs", "listVpcFlowLogsConfigs", "listVpcFlowLogsConfigs", "listVpcFlowLogsConfigsPagedCallable", "listVpcFlowLogsConfigsCallable"] + }, + "QueryOrgVpcFlowLogsConfigs": { + "methods": ["queryOrgVpcFlowLogsConfigs", "queryOrgVpcFlowLogsConfigsPagedCallable", "queryOrgVpcFlowLogsConfigsCallable"] + }, + "SetIamPolicy": { + "methods": ["setIamPolicy", "setIamPolicyCallable"] + }, + "TestIamPermissions": { + "methods": ["testIamPermissions", "testIamPermissionsCallable"] + }, + "UpdateVpcFlowLogsConfig": { + "methods": ["updateVpcFlowLogsConfigAsync", "updateVpcFlowLogsConfigAsync", "updateVpcFlowLogsConfigOperationCallable", "updateVpcFlowLogsConfigCallable"] + } + } + } + } + }, + "OrganizationVpcFlowLogsService": { + "clients": { + "grpc": { + "libraryClient": "OrganizationVpcFlowLogsServiceClient", + "rpcs": { + "CreateVpcFlowLogsConfig": { + "methods": ["createVpcFlowLogsConfigAsync", "createVpcFlowLogsConfigAsync", "createVpcFlowLogsConfigAsync", "createVpcFlowLogsConfigAsync", "createVpcFlowLogsConfigAsync", "createVpcFlowLogsConfigAsync", "createVpcFlowLogsConfigAsync", "createVpcFlowLogsConfigOperationCallable", "createVpcFlowLogsConfigCallable"] + }, + "DeleteVpcFlowLogsConfig": { + "methods": ["deleteVpcFlowLogsConfigAsync", "deleteVpcFlowLogsConfigAsync", "deleteVpcFlowLogsConfigAsync", "deleteVpcFlowLogsConfigOperationCallable", "deleteVpcFlowLogsConfigCallable"] + }, + "GetIamPolicy": { + "methods": ["getIamPolicy", "getIamPolicyCallable"] + }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, + "GetVpcFlowLogsConfig": { + "methods": ["getVpcFlowLogsConfig", "getVpcFlowLogsConfig", "getVpcFlowLogsConfig", "getVpcFlowLogsConfigCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, + "ListVpcFlowLogsConfigs": { + "methods": ["listVpcFlowLogsConfigs", "listVpcFlowLogsConfigs", "listVpcFlowLogsConfigs", "listVpcFlowLogsConfigs", "listVpcFlowLogsConfigsPagedCallable", "listVpcFlowLogsConfigsCallable"] }, "SetIamPolicy": { "methods": ["setIamPolicy", "setIamPolicyCallable"] diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/package-info.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/package-info.java index c39d2223b913..ca4b5bb03ab3 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/package-info.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/package-info.java @@ -63,10 +63,34 @@ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { * VpcFlowLogsConfigName name = - * VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + * VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + * "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); * VpcFlowLogsConfig response = vpcFlowLogsServiceClient.getVpcFlowLogsConfig(name); * } * } + * + *

      ======================= OrganizationVpcFlowLogsServiceClient ======================= + * + *

      Service Description: The VPC Flow Logs organization service in the Google Cloud Network + * Management API provides organization level configurations that generate Flow Logs. The service + * and the configuration resources created using this service are global. + * + *

      Sample for OrganizationVpcFlowLogsServiceClient: + * + *

      {@code
      + * // This snippet has been automatically generated and should be regarded as a code template only.
      + * // It will require modifications to work:
      + * // - It may require correct/in-range values for request initialization.
      + * // - It may require specifying regional endpoints when creating the service client as shown in
      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      + * try (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
      + *     OrganizationVpcFlowLogsServiceClient.create()) {
      + *   VpcFlowLogsConfigName name =
      + *       VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName(
      + *           "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]");
      + *   VpcFlowLogsConfig response = organizationVpcFlowLogsServiceClient.getVpcFlowLogsConfig(name);
      + * }
      + * }
      */ @Generated("by gapic-generator-java") package com.google.cloud.networkmanagement.v1beta1; diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/GrpcOrganizationVpcFlowLogsServiceCallableFactory.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/GrpcOrganizationVpcFlowLogsServiceCallableFactory.java new file mode 100644 index 000000000000..7243c6188955 --- /dev/null +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/GrpcOrganizationVpcFlowLogsServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the OrganizationVpcFlowLogsService service API. + * + *

      This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcOrganizationVpcFlowLogsServiceCallableFactory 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-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/GrpcOrganizationVpcFlowLogsServiceStub.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/GrpcOrganizationVpcFlowLogsServiceStub.java new file mode 100644 index 000000000000..20fb1656d7af --- /dev/null +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/GrpcOrganizationVpcFlowLogsServiceStub.java @@ -0,0 +1,554 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.stub; + +import static com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient.ListVpcFlowLogsConfigsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networkmanagement.v1beta1.CreateVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1beta1.DeleteVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1beta1.GetVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsRequest; +import com.google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsResponse; +import com.google.cloud.networkmanagement.v1beta1.OperationMetadata; +import com.google.cloud.networkmanagement.v1beta1.UpdateVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +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; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the OrganizationVpcFlowLogsService service API. + * + *

      This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcOrganizationVpcFlowLogsServiceStub extends OrganizationVpcFlowLogsServiceStub { + private static final MethodDescriptor< + ListVpcFlowLogsConfigsRequest, ListVpcFlowLogsConfigsResponse> + listVpcFlowLogsConfigsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsService/ListVpcFlowLogsConfigs") + .setRequestMarshaller( + ProtoUtils.marshaller(ListVpcFlowLogsConfigsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListVpcFlowLogsConfigsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getVpcFlowLogsConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsService/GetVpcFlowLogsConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(GetVpcFlowLogsConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(VpcFlowLogsConfig.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createVpcFlowLogsConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsService/CreateVpcFlowLogsConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateVpcFlowLogsConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateVpcFlowLogsConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsService/UpdateVpcFlowLogsConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateVpcFlowLogsConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteVpcFlowLogsConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsService/DeleteVpcFlowLogsConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteVpcFlowLogsConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getLocationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) + .build(); + + private static final MethodDescriptor setIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + testIamPermissionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") + .setRequestMarshaller( + ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) + .build(); + + private final UnaryCallable + listVpcFlowLogsConfigsCallable; + private final UnaryCallable + listVpcFlowLogsConfigsPagedCallable; + private final UnaryCallable + getVpcFlowLogsConfigCallable; + private final UnaryCallable + createVpcFlowLogsConfigCallable; + private final OperationCallable< + CreateVpcFlowLogsConfigRequest, VpcFlowLogsConfig, OperationMetadata> + createVpcFlowLogsConfigOperationCallable; + private final UnaryCallable + updateVpcFlowLogsConfigCallable; + private final OperationCallable< + UpdateVpcFlowLogsConfigRequest, VpcFlowLogsConfig, OperationMetadata> + updateVpcFlowLogsConfigOperationCallable; + private final UnaryCallable + deleteVpcFlowLogsConfigCallable; + private final OperationCallable + deleteVpcFlowLogsConfigOperationCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcOrganizationVpcFlowLogsServiceStub create( + OrganizationVpcFlowLogsServiceStubSettings settings) throws IOException { + return new GrpcOrganizationVpcFlowLogsServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcOrganizationVpcFlowLogsServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcOrganizationVpcFlowLogsServiceStub( + OrganizationVpcFlowLogsServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcOrganizationVpcFlowLogsServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcOrganizationVpcFlowLogsServiceStub( + OrganizationVpcFlowLogsServiceStubSettings.newBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of GrpcOrganizationVpcFlowLogsServiceStub, 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 GrpcOrganizationVpcFlowLogsServiceStub( + OrganizationVpcFlowLogsServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcOrganizationVpcFlowLogsServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcOrganizationVpcFlowLogsServiceStub, 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 GrpcOrganizationVpcFlowLogsServiceStub( + OrganizationVpcFlowLogsServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + listVpcFlowLogsConfigsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listVpcFlowLogsConfigsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getVpcFlowLogsConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getVpcFlowLogsConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + createVpcFlowLogsConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createVpcFlowLogsConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateVpcFlowLogsConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateVpcFlowLogsConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "vpc_flow_logs_config.name", + String.valueOf(request.getVpcFlowLogsConfig().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteVpcFlowLogsConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteVpcFlowLogsConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getLocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings setIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); + GrpcCallSettings getIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); + GrpcCallSettings + testIamPermissionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); + + this.listVpcFlowLogsConfigsCallable = + callableFactory.createUnaryCallable( + listVpcFlowLogsConfigsTransportSettings, + settings.listVpcFlowLogsConfigsSettings(), + clientContext); + this.listVpcFlowLogsConfigsPagedCallable = + callableFactory.createPagedCallable( + listVpcFlowLogsConfigsTransportSettings, + settings.listVpcFlowLogsConfigsSettings(), + clientContext); + this.getVpcFlowLogsConfigCallable = + callableFactory.createUnaryCallable( + getVpcFlowLogsConfigTransportSettings, + settings.getVpcFlowLogsConfigSettings(), + clientContext); + this.createVpcFlowLogsConfigCallable = + callableFactory.createUnaryCallable( + createVpcFlowLogsConfigTransportSettings, + settings.createVpcFlowLogsConfigSettings(), + clientContext); + this.createVpcFlowLogsConfigOperationCallable = + callableFactory.createOperationCallable( + createVpcFlowLogsConfigTransportSettings, + settings.createVpcFlowLogsConfigOperationSettings(), + clientContext, + operationsStub); + this.updateVpcFlowLogsConfigCallable = + callableFactory.createUnaryCallable( + updateVpcFlowLogsConfigTransportSettings, + settings.updateVpcFlowLogsConfigSettings(), + clientContext); + this.updateVpcFlowLogsConfigOperationCallable = + callableFactory.createOperationCallable( + updateVpcFlowLogsConfigTransportSettings, + settings.updateVpcFlowLogsConfigOperationSettings(), + clientContext, + operationsStub); + this.deleteVpcFlowLogsConfigCallable = + callableFactory.createUnaryCallable( + deleteVpcFlowLogsConfigTransportSettings, + settings.deleteVpcFlowLogsConfigSettings(), + clientContext); + this.deleteVpcFlowLogsConfigOperationCallable = + callableFactory.createOperationCallable( + deleteVpcFlowLogsConfigTransportSettings, + settings.deleteVpcFlowLogsConfigOperationSettings(), + clientContext, + operationsStub); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable + listVpcFlowLogsConfigsCallable() { + return listVpcFlowLogsConfigsCallable; + } + + @Override + public UnaryCallable + listVpcFlowLogsConfigsPagedCallable() { + return listVpcFlowLogsConfigsPagedCallable; + } + + @Override + public UnaryCallable + getVpcFlowLogsConfigCallable() { + return getVpcFlowLogsConfigCallable; + } + + @Override + public UnaryCallable + createVpcFlowLogsConfigCallable() { + return createVpcFlowLogsConfigCallable; + } + + @Override + public OperationCallable + createVpcFlowLogsConfigOperationCallable() { + return createVpcFlowLogsConfigOperationCallable; + } + + @Override + public UnaryCallable + updateVpcFlowLogsConfigCallable() { + return updateVpcFlowLogsConfigCallable; + } + + @Override + public OperationCallable + updateVpcFlowLogsConfigOperationCallable() { + return updateVpcFlowLogsConfigOperationCallable; + } + + @Override + public UnaryCallable + deleteVpcFlowLogsConfigCallable() { + return deleteVpcFlowLogsConfigCallable; + } + + @Override + public OperationCallable + deleteVpcFlowLogsConfigOperationCallable() { + return deleteVpcFlowLogsConfigOperationCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @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-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/GrpcVpcFlowLogsServiceStub.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/GrpcVpcFlowLogsServiceStub.java index a9811def4b4f..ad27145dcf50 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/GrpcVpcFlowLogsServiceStub.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/GrpcVpcFlowLogsServiceStub.java @@ -18,6 +18,7 @@ import static com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient.ListLocationsPagedResponse; import static com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient.ListVpcFlowLogsConfigsPagedResponse; +import static com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient.QueryOrgVpcFlowLogsConfigsPagedResponse; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; @@ -38,6 +39,8 @@ import com.google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsRequest; import com.google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsResponse; import com.google.cloud.networkmanagement.v1beta1.OperationMetadata; +import com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest; +import com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse; import com.google.cloud.networkmanagement.v1beta1.UpdateVpcFlowLogsConfigRequest; import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig; import com.google.iam.v1.GetIamPolicyRequest; @@ -121,6 +124,20 @@ public class GrpcVpcFlowLogsServiceStub extends VpcFlowLogsServiceStub { .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor< + QueryOrgVpcFlowLogsConfigsRequest, QueryOrgVpcFlowLogsConfigsResponse> + queryOrgVpcFlowLogsConfigsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networkmanagement.v1beta1.VpcFlowLogsService/QueryOrgVpcFlowLogsConfigs") + .setRequestMarshaller( + ProtoUtils.marshaller(QueryOrgVpcFlowLogsConfigsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(QueryOrgVpcFlowLogsConfigsResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -187,6 +204,11 @@ public class GrpcVpcFlowLogsServiceStub extends VpcFlowLogsServiceStub { deleteVpcFlowLogsConfigCallable; private final OperationCallable deleteVpcFlowLogsConfigOperationCallable; + private final UnaryCallable + queryOrgVpcFlowLogsConfigsCallable; + private final UnaryCallable< + QueryOrgVpcFlowLogsConfigsRequest, QueryOrgVpcFlowLogsConfigsPagedResponse> + queryOrgVpcFlowLogsConfigsPagedCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -298,6 +320,18 @@ protected GrpcVpcFlowLogsServiceStub( return builder.build(); }) .build(); + GrpcCallSettings + queryOrgVpcFlowLogsConfigsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(queryOrgVpcFlowLogsConfigsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) @@ -398,6 +432,16 @@ protected GrpcVpcFlowLogsServiceStub( settings.deleteVpcFlowLogsConfigOperationSettings(), clientContext, operationsStub); + this.queryOrgVpcFlowLogsConfigsCallable = + callableFactory.createUnaryCallable( + queryOrgVpcFlowLogsConfigsTransportSettings, + settings.queryOrgVpcFlowLogsConfigsSettings(), + clientContext); + this.queryOrgVpcFlowLogsConfigsPagedCallable = + callableFactory.createPagedCallable( + queryOrgVpcFlowLogsConfigsTransportSettings, + settings.queryOrgVpcFlowLogsConfigsSettings(), + clientContext); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -481,6 +525,18 @@ public GrpcOperationsStub getOperationsStub() { return deleteVpcFlowLogsConfigOperationCallable; } + @Override + public UnaryCallable + queryOrgVpcFlowLogsConfigsCallable() { + return queryOrgVpcFlowLogsConfigsCallable; + } + + @Override + public UnaryCallable + queryOrgVpcFlowLogsConfigsPagedCallable() { + return queryOrgVpcFlowLogsConfigsPagedCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/HttpJsonOrganizationVpcFlowLogsServiceCallableFactory.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/HttpJsonOrganizationVpcFlowLogsServiceCallableFactory.java new file mode 100644 index 000000000000..63bee59ed897 --- /dev/null +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/HttpJsonOrganizationVpcFlowLogsServiceCallableFactory.java @@ -0,0 +1,103 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the OrganizationVpcFlowLogsService service API. + * + *

      This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonOrganizationVpcFlowLogsServiceCallableFactory + 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-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/HttpJsonOrganizationVpcFlowLogsServiceStub.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/HttpJsonOrganizationVpcFlowLogsServiceStub.java new file mode 100644 index 000000000000..3d871e67a801 --- /dev/null +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/HttpJsonOrganizationVpcFlowLogsServiceStub.java @@ -0,0 +1,923 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.stub; + +import static com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient.ListVpcFlowLogsConfigsPagedResponse; + +import com.google.api.HttpRule; +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.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.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networkmanagement.v1beta1.CreateVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1beta1.DeleteVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1beta1.GetVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsRequest; +import com.google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsResponse; +import com.google.cloud.networkmanagement.v1beta1.OperationMetadata; +import com.google.cloud.networkmanagement.v1beta1.UpdateVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig; +import com.google.common.collect.ImmutableMap; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +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; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the OrganizationVpcFlowLogsService service API. + * + *

      This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonOrganizationVpcFlowLogsServiceStub extends OrganizationVpcFlowLogsServiceStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(Empty.getDescriptor()) + .add(OperationMetadata.getDescriptor()) + .add(VpcFlowLogsConfig.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor< + ListVpcFlowLogsConfigsRequest, ListVpcFlowLogsConfigsResponse> + listVpcFlowLogsConfigsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsService/ListVpcFlowLogsConfigs") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=organizations/*/locations/*}/vpcFlowLogsConfigs", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + 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(ListVpcFlowLogsConfigsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getVpcFlowLogsConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsService/GetVpcFlowLogsConfig") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=organizations/*/locations/*/vpcFlowLogsConfigs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(VpcFlowLogsConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createVpcFlowLogsConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsService/CreateVpcFlowLogsConfig") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=organizations/*/locations/*}/vpcFlowLogsConfigs", + 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, "vpcFlowLogsConfigId", request.getVpcFlowLogsConfigId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "vpcFlowLogsConfig", request.getVpcFlowLogsConfig(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateVpcFlowLogsConfigRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateVpcFlowLogsConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsService/UpdateVpcFlowLogsConfig") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{vpcFlowLogsConfig.name=organizations/*/locations/*/vpcFlowLogsConfigs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "vpcFlowLogsConfig.name", + request.getVpcFlowLogsConfig().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "vpcFlowLogsConfig", request.getVpcFlowLogsConfig(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateVpcFlowLogsConfigRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteVpcFlowLogsConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsService/DeleteVpcFlowLogsConfig") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=organizations/*/locations/*/vpcFlowLogsConfigs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteVpcFlowLogsConfigRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listLocationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*}/locations", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths("/v1beta1/{name=organizations/*}/locations") + .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(ListLocationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getLocationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths("/v1beta1/{name=organizations/*/locations/*}") + .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(Location.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + setIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{resource=projects/*/locations/global/connectivityTests/*}:setIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + 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().clearResource().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{resource=projects/*/locations/global/connectivityTests/*}:getIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .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(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + testIamPermissionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{resource=projects/*/locations/global/connectivityTests/*}:testIamPermissions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + 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().clearResource().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TestIamPermissionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable + listVpcFlowLogsConfigsCallable; + private final UnaryCallable + listVpcFlowLogsConfigsPagedCallable; + private final UnaryCallable + getVpcFlowLogsConfigCallable; + private final UnaryCallable + createVpcFlowLogsConfigCallable; + private final OperationCallable< + CreateVpcFlowLogsConfigRequest, VpcFlowLogsConfig, OperationMetadata> + createVpcFlowLogsConfigOperationCallable; + private final UnaryCallable + updateVpcFlowLogsConfigCallable; + private final OperationCallable< + UpdateVpcFlowLogsConfigRequest, VpcFlowLogsConfig, OperationMetadata> + updateVpcFlowLogsConfigOperationCallable; + private final UnaryCallable + deleteVpcFlowLogsConfigCallable; + private final OperationCallable + deleteVpcFlowLogsConfigOperationCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonOrganizationVpcFlowLogsServiceStub create( + OrganizationVpcFlowLogsServiceStubSettings settings) throws IOException { + return new HttpJsonOrganizationVpcFlowLogsServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonOrganizationVpcFlowLogsServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonOrganizationVpcFlowLogsServiceStub( + OrganizationVpcFlowLogsServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonOrganizationVpcFlowLogsServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonOrganizationVpcFlowLogsServiceStub( + OrganizationVpcFlowLogsServiceStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonOrganizationVpcFlowLogsServiceStub, 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 HttpJsonOrganizationVpcFlowLogsServiceStub( + OrganizationVpcFlowLogsServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonOrganizationVpcFlowLogsServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonOrganizationVpcFlowLogsServiceStub, 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 HttpJsonOrganizationVpcFlowLogsServiceStub( + OrganizationVpcFlowLogsServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create( + clientContext, + callableFactory, + typeRegistry, + ImmutableMap.builder() + .put( + "google.longrunning.Operations.CancelOperation", + HttpRule.newBuilder() + .setPost("/v1beta1/{name=projects/*/locations/global/operations/*}:cancel") + .addAdditionalBindings( + HttpRule.newBuilder() + .setPost( + "/v1beta1/{name=organizations/*/locations/global/operations/*}:cancel") + .build()) + .build()) + .put( + "google.longrunning.Operations.DeleteOperation", + HttpRule.newBuilder() + .setDelete("/v1beta1/{name=projects/*/locations/global/operations/*}") + .addAdditionalBindings( + HttpRule.newBuilder() + .setDelete( + "/v1beta1/{name=organizations/*/locations/global/operations/*}") + .build()) + .build()) + .put( + "google.longrunning.Operations.GetOperation", + HttpRule.newBuilder() + .setGet("/v1beta1/{name=projects/*/locations/global/operations/*}") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta1/{name=organizations/*/locations/global/operations/*}") + .build()) + .build()) + .put( + "google.longrunning.Operations.ListOperations", + HttpRule.newBuilder() + .setGet("/v1beta1/{name=projects/*/locations/global}/operations") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta1/{name=organizations/*/locations/global}/operations") + .build()) + .build()) + .build()); + + HttpJsonCallSettings + listVpcFlowLogsConfigsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listVpcFlowLogsConfigsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + getVpcFlowLogsConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getVpcFlowLogsConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + createVpcFlowLogsConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createVpcFlowLogsConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + updateVpcFlowLogsConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateVpcFlowLogsConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "vpc_flow_logs_config.name", + String.valueOf(request.getVpcFlowLogsConfig().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + deleteVpcFlowLogsConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteVpcFlowLogsConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listLocationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getLocationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings setIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + testIamPermissionsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); + + this.listVpcFlowLogsConfigsCallable = + callableFactory.createUnaryCallable( + listVpcFlowLogsConfigsTransportSettings, + settings.listVpcFlowLogsConfigsSettings(), + clientContext); + this.listVpcFlowLogsConfigsPagedCallable = + callableFactory.createPagedCallable( + listVpcFlowLogsConfigsTransportSettings, + settings.listVpcFlowLogsConfigsSettings(), + clientContext); + this.getVpcFlowLogsConfigCallable = + callableFactory.createUnaryCallable( + getVpcFlowLogsConfigTransportSettings, + settings.getVpcFlowLogsConfigSettings(), + clientContext); + this.createVpcFlowLogsConfigCallable = + callableFactory.createUnaryCallable( + createVpcFlowLogsConfigTransportSettings, + settings.createVpcFlowLogsConfigSettings(), + clientContext); + this.createVpcFlowLogsConfigOperationCallable = + callableFactory.createOperationCallable( + createVpcFlowLogsConfigTransportSettings, + settings.createVpcFlowLogsConfigOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateVpcFlowLogsConfigCallable = + callableFactory.createUnaryCallable( + updateVpcFlowLogsConfigTransportSettings, + settings.updateVpcFlowLogsConfigSettings(), + clientContext); + this.updateVpcFlowLogsConfigOperationCallable = + callableFactory.createOperationCallable( + updateVpcFlowLogsConfigTransportSettings, + settings.updateVpcFlowLogsConfigOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteVpcFlowLogsConfigCallable = + callableFactory.createUnaryCallable( + deleteVpcFlowLogsConfigTransportSettings, + settings.deleteVpcFlowLogsConfigSettings(), + clientContext); + this.deleteVpcFlowLogsConfigOperationCallable = + callableFactory.createOperationCallable( + deleteVpcFlowLogsConfigTransportSettings, + settings.deleteVpcFlowLogsConfigOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(listVpcFlowLogsConfigsMethodDescriptor); + methodDescriptors.add(getVpcFlowLogsConfigMethodDescriptor); + methodDescriptors.add(createVpcFlowLogsConfigMethodDescriptor); + methodDescriptors.add(updateVpcFlowLogsConfigMethodDescriptor); + methodDescriptors.add(deleteVpcFlowLogsConfigMethodDescriptor); + methodDescriptors.add(listLocationsMethodDescriptor); + methodDescriptors.add(getLocationMethodDescriptor); + methodDescriptors.add(setIamPolicyMethodDescriptor); + methodDescriptors.add(getIamPolicyMethodDescriptor); + methodDescriptors.add(testIamPermissionsMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable + listVpcFlowLogsConfigsCallable() { + return listVpcFlowLogsConfigsCallable; + } + + @Override + public UnaryCallable + listVpcFlowLogsConfigsPagedCallable() { + return listVpcFlowLogsConfigsPagedCallable; + } + + @Override + public UnaryCallable + getVpcFlowLogsConfigCallable() { + return getVpcFlowLogsConfigCallable; + } + + @Override + public UnaryCallable + createVpcFlowLogsConfigCallable() { + return createVpcFlowLogsConfigCallable; + } + + @Override + public OperationCallable + createVpcFlowLogsConfigOperationCallable() { + return createVpcFlowLogsConfigOperationCallable; + } + + @Override + public UnaryCallable + updateVpcFlowLogsConfigCallable() { + return updateVpcFlowLogsConfigCallable; + } + + @Override + public OperationCallable + updateVpcFlowLogsConfigOperationCallable() { + return updateVpcFlowLogsConfigOperationCallable; + } + + @Override + public UnaryCallable + deleteVpcFlowLogsConfigCallable() { + return deleteVpcFlowLogsConfigCallable; + } + + @Override + public OperationCallable + deleteVpcFlowLogsConfigOperationCallable() { + return deleteVpcFlowLogsConfigOperationCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @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-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/HttpJsonReachabilityServiceStub.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/HttpJsonReachabilityServiceStub.java index 2e81512ee0e7..e6172173c704 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/HttpJsonReachabilityServiceStub.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/HttpJsonReachabilityServiceStub.java @@ -339,6 +339,7 @@ public class HttpJsonReachabilityServiceStub extends ReachabilityServiceStub { serializer.putPathParam(fields, "name", request.getName()); return fields; }) + .setAdditionalPaths("/v1beta1/{name=organizations/*}/locations") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -373,6 +374,7 @@ public class HttpJsonReachabilityServiceStub extends ReachabilityServiceStub { serializer.putPathParam(fields, "name", request.getName()); return fields; }) + .setAdditionalPaths("/v1beta1/{name=organizations/*/locations/*}") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -585,21 +587,41 @@ protected HttpJsonReachabilityServiceStub( "google.longrunning.Operations.CancelOperation", HttpRule.newBuilder() .setPost("/v1beta1/{name=projects/*/locations/global/operations/*}:cancel") + .addAdditionalBindings( + HttpRule.newBuilder() + .setPost( + "/v1beta1/{name=organizations/*/locations/global/operations/*}:cancel") + .build()) .build()) .put( "google.longrunning.Operations.DeleteOperation", HttpRule.newBuilder() .setDelete("/v1beta1/{name=projects/*/locations/global/operations/*}") + .addAdditionalBindings( + HttpRule.newBuilder() + .setDelete( + "/v1beta1/{name=organizations/*/locations/global/operations/*}") + .build()) .build()) .put( "google.longrunning.Operations.GetOperation", HttpRule.newBuilder() .setGet("/v1beta1/{name=projects/*/locations/global/operations/*}") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta1/{name=organizations/*/locations/global/operations/*}") + .build()) .build()) .put( "google.longrunning.Operations.ListOperations", HttpRule.newBuilder() .setGet("/v1beta1/{name=projects/*/locations/global}/operations") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta1/{name=organizations/*/locations/global}/operations") + .build()) .build()) .build()); diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/HttpJsonVpcFlowLogsServiceStub.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/HttpJsonVpcFlowLogsServiceStub.java index 1d3a25bbbea2..b69f23c1ffe3 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/HttpJsonVpcFlowLogsServiceStub.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/HttpJsonVpcFlowLogsServiceStub.java @@ -18,6 +18,7 @@ import static com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient.ListLocationsPagedResponse; import static com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient.ListVpcFlowLogsConfigsPagedResponse; +import static com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient.QueryOrgVpcFlowLogsConfigsPagedResponse; import com.google.api.HttpRule; import com.google.api.core.BetaApi; @@ -46,6 +47,8 @@ import com.google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsRequest; import com.google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsResponse; import com.google.cloud.networkmanagement.v1beta1.OperationMetadata; +import com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest; +import com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse; import com.google.cloud.networkmanagement.v1beta1.UpdateVpcFlowLogsConfigRequest; import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig; import com.google.common.collect.ImmutableMap; @@ -285,6 +288,46 @@ public class HttpJsonVpcFlowLogsServiceStub extends VpcFlowLogsServiceStub { HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor< + QueryOrgVpcFlowLogsConfigsRequest, QueryOrgVpcFlowLogsConfigsResponse> + queryOrgVpcFlowLogsConfigsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.networkmanagement.v1beta1.VpcFlowLogsService/QueryOrgVpcFlowLogsConfigs") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*}/vpcFlowLogsConfigs:queryOrgVpcFlowLogsConfigs", + 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, "filter", request.getFilter()); + 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(QueryOrgVpcFlowLogsConfigsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor listLocationsMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -302,6 +345,7 @@ public class HttpJsonVpcFlowLogsServiceStub extends VpcFlowLogsServiceStub { serializer.putPathParam(fields, "name", request.getName()); return fields; }) + .setAdditionalPaths("/v1beta1/{name=organizations/*}/locations") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -336,6 +380,7 @@ public class HttpJsonVpcFlowLogsServiceStub extends VpcFlowLogsServiceStub { serializer.putPathParam(fields, "name", request.getName()); return fields; }) + .setAdditionalPaths("/v1beta1/{name=organizations/*/locations/*}") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -481,6 +526,11 @@ public class HttpJsonVpcFlowLogsServiceStub extends VpcFlowLogsServiceStub { deleteVpcFlowLogsConfigCallable; private final OperationCallable deleteVpcFlowLogsConfigOperationCallable; + private final UnaryCallable + queryOrgVpcFlowLogsConfigsCallable; + private final UnaryCallable< + QueryOrgVpcFlowLogsConfigsRequest, QueryOrgVpcFlowLogsConfigsPagedResponse> + queryOrgVpcFlowLogsConfigsPagedCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -544,21 +594,41 @@ protected HttpJsonVpcFlowLogsServiceStub( "google.longrunning.Operations.CancelOperation", HttpRule.newBuilder() .setPost("/v1beta1/{name=projects/*/locations/global/operations/*}:cancel") + .addAdditionalBindings( + HttpRule.newBuilder() + .setPost( + "/v1beta1/{name=organizations/*/locations/global/operations/*}:cancel") + .build()) .build()) .put( "google.longrunning.Operations.DeleteOperation", HttpRule.newBuilder() .setDelete("/v1beta1/{name=projects/*/locations/global/operations/*}") + .addAdditionalBindings( + HttpRule.newBuilder() + .setDelete( + "/v1beta1/{name=organizations/*/locations/global/operations/*}") + .build()) .build()) .put( "google.longrunning.Operations.GetOperation", HttpRule.newBuilder() .setGet("/v1beta1/{name=projects/*/locations/global/operations/*}") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta1/{name=organizations/*/locations/global/operations/*}") + .build()) .build()) .put( "google.longrunning.Operations.ListOperations", HttpRule.newBuilder() .setGet("/v1beta1/{name=projects/*/locations/global}/operations") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta1/{name=organizations/*/locations/global}/operations") + .build()) .build()) .build()); @@ -625,6 +695,19 @@ protected HttpJsonVpcFlowLogsServiceStub( return builder.build(); }) .build(); + HttpJsonCallSettings + queryOrgVpcFlowLogsConfigsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(queryOrgVpcFlowLogsConfigsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); HttpJsonCallSettings listLocationsTransportSettings = HttpJsonCallSettings.newBuilder() @@ -731,6 +814,16 @@ protected HttpJsonVpcFlowLogsServiceStub( settings.deleteVpcFlowLogsConfigOperationSettings(), clientContext, httpJsonOperationsStub); + this.queryOrgVpcFlowLogsConfigsCallable = + callableFactory.createUnaryCallable( + queryOrgVpcFlowLogsConfigsTransportSettings, + settings.queryOrgVpcFlowLogsConfigsSettings(), + clientContext); + this.queryOrgVpcFlowLogsConfigsPagedCallable = + callableFactory.createPagedCallable( + queryOrgVpcFlowLogsConfigsTransportSettings, + settings.queryOrgVpcFlowLogsConfigsSettings(), + clientContext); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -764,6 +857,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(createVpcFlowLogsConfigMethodDescriptor); methodDescriptors.add(updateVpcFlowLogsConfigMethodDescriptor); methodDescriptors.add(deleteVpcFlowLogsConfigMethodDescriptor); + methodDescriptors.add(queryOrgVpcFlowLogsConfigsMethodDescriptor); methodDescriptors.add(listLocationsMethodDescriptor); methodDescriptors.add(getLocationMethodDescriptor); methodDescriptors.add(setIamPolicyMethodDescriptor); @@ -830,6 +924,18 @@ public HttpJsonOperationsStub getHttpJsonOperationsStub() { return deleteVpcFlowLogsConfigOperationCallable; } + @Override + public UnaryCallable + queryOrgVpcFlowLogsConfigsCallable() { + return queryOrgVpcFlowLogsConfigsCallable; + } + + @Override + public UnaryCallable + queryOrgVpcFlowLogsConfigsPagedCallable() { + return queryOrgVpcFlowLogsConfigsPagedCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/OrganizationVpcFlowLogsServiceStub.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/OrganizationVpcFlowLogsServiceStub.java new file mode 100644 index 000000000000..f5bda850851d --- /dev/null +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/OrganizationVpcFlowLogsServiceStub.java @@ -0,0 +1,143 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.stub; + +import static com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient.ListVpcFlowLogsConfigsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networkmanagement.v1beta1.CreateVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1beta1.DeleteVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1beta1.GetVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsRequest; +import com.google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsResponse; +import com.google.cloud.networkmanagement.v1beta1.OperationMetadata; +import com.google.cloud.networkmanagement.v1beta1.UpdateVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the OrganizationVpcFlowLogsService service API. + * + *

      This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class OrganizationVpcFlowLogsServiceStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; + } + + public UnaryCallable + listVpcFlowLogsConfigsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listVpcFlowLogsConfigsPagedCallable()"); + } + + public UnaryCallable + listVpcFlowLogsConfigsCallable() { + throw new UnsupportedOperationException("Not implemented: listVpcFlowLogsConfigsCallable()"); + } + + public UnaryCallable + getVpcFlowLogsConfigCallable() { + throw new UnsupportedOperationException("Not implemented: getVpcFlowLogsConfigCallable()"); + } + + public OperationCallable + createVpcFlowLogsConfigOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createVpcFlowLogsConfigOperationCallable()"); + } + + public UnaryCallable + createVpcFlowLogsConfigCallable() { + throw new UnsupportedOperationException("Not implemented: createVpcFlowLogsConfigCallable()"); + } + + public OperationCallable + updateVpcFlowLogsConfigOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateVpcFlowLogsConfigOperationCallable()"); + } + + public UnaryCallable + updateVpcFlowLogsConfigCallable() { + throw new UnsupportedOperationException("Not implemented: updateVpcFlowLogsConfigCallable()"); + } + + public OperationCallable + deleteVpcFlowLogsConfigOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteVpcFlowLogsConfigOperationCallable()"); + } + + public UnaryCallable + deleteVpcFlowLogsConfigCallable() { + throw new UnsupportedOperationException("Not implemented: deleteVpcFlowLogsConfigCallable()"); + } + + public UnaryCallable + listLocationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); + } + + public UnaryCallable listLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); + } + + public UnaryCallable getLocationCallable() { + throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); + } + + public UnaryCallable setIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); + } + + public UnaryCallable getIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); + } + + public UnaryCallable + testIamPermissionsCallable() { + throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/OrganizationVpcFlowLogsServiceStubSettings.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/OrganizationVpcFlowLogsServiceStubSettings.java new file mode 100644 index 000000000000..bf1ee048a7f7 --- /dev/null +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/OrganizationVpcFlowLogsServiceStubSettings.java @@ -0,0 +1,902 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.stub; + +import static com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient.ListVpcFlowLogsConfigsPagedResponse; + +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.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.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networkmanagement.v1beta1.CreateVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1beta1.DeleteVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1beta1.GetVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsRequest; +import com.google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsResponse; +import com.google.cloud.networkmanagement.v1beta1.OperationMetadata; +import com.google.cloud.networkmanagement.v1beta1.UpdateVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig; +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.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +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; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link OrganizationVpcFlowLogsServiceStub}. + * + *

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

        + *
      • The default service address (networkmanagement.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 getVpcFlowLogsConfig: + * + *

      {@code
      + * // This snippet has been automatically generated and should be regarded as a code template only.
      + * // It will require modifications to work:
      + * // - It may require correct/in-range values for request initialization.
      + * // - It may require specifying regional endpoints when creating the service client as shown in
      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      + * OrganizationVpcFlowLogsServiceStubSettings.Builder
      + *     organizationVpcFlowLogsServiceSettingsBuilder =
      + *         OrganizationVpcFlowLogsServiceStubSettings.newBuilder();
      + * organizationVpcFlowLogsServiceSettingsBuilder
      + *     .getVpcFlowLogsConfigSettings()
      + *     .setRetrySettings(
      + *         organizationVpcFlowLogsServiceSettingsBuilder
      + *             .getVpcFlowLogsConfigSettings()
      + *             .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());
      + * OrganizationVpcFlowLogsServiceStubSettings organizationVpcFlowLogsServiceSettings =
      + *     organizationVpcFlowLogsServiceSettingsBuilder.build();
      + * }
      + * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) 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 createVpcFlowLogsConfig: + * + *

      {@code
      + * // This snippet has been automatically generated and should be regarded as a code template only.
      + * // It will require modifications to work:
      + * // - It may require correct/in-range values for request initialization.
      + * // - It may require specifying regional endpoints when creating the service client as shown in
      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      + * OrganizationVpcFlowLogsServiceStubSettings.Builder
      + *     organizationVpcFlowLogsServiceSettingsBuilder =
      + *         OrganizationVpcFlowLogsServiceStubSettings.newBuilder();
      + * TimedRetryAlgorithm timedRetryAlgorithm =
      + *     OperationalTimedPollAlgorithm.create(
      + *         RetrySettings.newBuilder()
      + *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
      + *             .setRetryDelayMultiplier(1.5)
      + *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
      + *             .setTotalTimeoutDuration(Duration.ofHours(24))
      + *             .build());
      + * organizationVpcFlowLogsServiceSettingsBuilder
      + *     .createClusterOperationSettings()
      + *     .setPollingAlgorithm(timedRetryAlgorithm)
      + *     .build();
      + * }
      + */ +@BetaApi +@Generated("by gapic-generator-java") +public class OrganizationVpcFlowLogsServiceStubSettings + 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 PagedCallSettings< + ListVpcFlowLogsConfigsRequest, + ListVpcFlowLogsConfigsResponse, + ListVpcFlowLogsConfigsPagedResponse> + listVpcFlowLogsConfigsSettings; + private final UnaryCallSettings + getVpcFlowLogsConfigSettings; + private final UnaryCallSettings + createVpcFlowLogsConfigSettings; + private final OperationCallSettings< + CreateVpcFlowLogsConfigRequest, VpcFlowLogsConfig, OperationMetadata> + createVpcFlowLogsConfigOperationSettings; + private final UnaryCallSettings + updateVpcFlowLogsConfigSettings; + private final OperationCallSettings< + UpdateVpcFlowLogsConfigRequest, VpcFlowLogsConfig, OperationMetadata> + updateVpcFlowLogsConfigOperationSettings; + private final UnaryCallSettings + deleteVpcFlowLogsConfigSettings; + private final OperationCallSettings + deleteVpcFlowLogsConfigOperationSettings; + private final PagedCallSettings< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings getLocationSettings; + private final UnaryCallSettings setIamPolicySettings; + private final UnaryCallSettings getIamPolicySettings; + private final UnaryCallSettings + testIamPermissionsSettings; + + private static final PagedListDescriptor< + ListVpcFlowLogsConfigsRequest, ListVpcFlowLogsConfigsResponse, VpcFlowLogsConfig> + LIST_VPC_FLOW_LOGS_CONFIGS_PAGE_STR_DESC = + new PagedListDescriptor< + ListVpcFlowLogsConfigsRequest, ListVpcFlowLogsConfigsResponse, VpcFlowLogsConfig>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListVpcFlowLogsConfigsRequest injectToken( + ListVpcFlowLogsConfigsRequest payload, String token) { + return ListVpcFlowLogsConfigsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListVpcFlowLogsConfigsRequest injectPageSize( + ListVpcFlowLogsConfigsRequest payload, int pageSize) { + return ListVpcFlowLogsConfigsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListVpcFlowLogsConfigsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListVpcFlowLogsConfigsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListVpcFlowLogsConfigsResponse payload) { + return payload.getVpcFlowLogsConfigsList(); + } + }; + + private static final PagedListDescriptor + LIST_LOCATIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) { + return ListLocationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) { + return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLocationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLocationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLocationsResponse payload) { + return payload.getLocationsList(); + } + }; + + private static final PagedListResponseFactory< + ListVpcFlowLogsConfigsRequest, + ListVpcFlowLogsConfigsResponse, + ListVpcFlowLogsConfigsPagedResponse> + LIST_VPC_FLOW_LOGS_CONFIGS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListVpcFlowLogsConfigsRequest, + ListVpcFlowLogsConfigsResponse, + ListVpcFlowLogsConfigsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListVpcFlowLogsConfigsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListVpcFlowLogsConfigsRequest, + ListVpcFlowLogsConfigsResponse, + VpcFlowLogsConfig> + pageContext = + PageContext.create( + callable, LIST_VPC_FLOW_LOGS_CONFIGS_PAGE_STR_DESC, request, context); + return ListVpcFlowLogsConfigsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + LIST_LOCATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLocationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); + return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to listVpcFlowLogsConfigs. */ + public PagedCallSettings< + ListVpcFlowLogsConfigsRequest, + ListVpcFlowLogsConfigsResponse, + ListVpcFlowLogsConfigsPagedResponse> + listVpcFlowLogsConfigsSettings() { + return listVpcFlowLogsConfigsSettings; + } + + /** Returns the object with the settings used for calls to getVpcFlowLogsConfig. */ + public UnaryCallSettings + getVpcFlowLogsConfigSettings() { + return getVpcFlowLogsConfigSettings; + } + + /** Returns the object with the settings used for calls to createVpcFlowLogsConfig. */ + public UnaryCallSettings + createVpcFlowLogsConfigSettings() { + return createVpcFlowLogsConfigSettings; + } + + /** Returns the object with the settings used for calls to createVpcFlowLogsConfig. */ + public OperationCallSettings + createVpcFlowLogsConfigOperationSettings() { + return createVpcFlowLogsConfigOperationSettings; + } + + /** Returns the object with the settings used for calls to updateVpcFlowLogsConfig. */ + public UnaryCallSettings + updateVpcFlowLogsConfigSettings() { + return updateVpcFlowLogsConfigSettings; + } + + /** Returns the object with the settings used for calls to updateVpcFlowLogsConfig. */ + public OperationCallSettings + updateVpcFlowLogsConfigOperationSettings() { + return updateVpcFlowLogsConfigOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteVpcFlowLogsConfig. */ + public UnaryCallSettings + deleteVpcFlowLogsConfigSettings() { + return deleteVpcFlowLogsConfigSettings; + } + + /** Returns the object with the settings used for calls to deleteVpcFlowLogsConfig. */ + public OperationCallSettings + deleteVpcFlowLogsConfigOperationSettings() { + return deleteVpcFlowLogsConfigOperationSettings; + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return getLocationSettings; + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + public OrganizationVpcFlowLogsServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcOrganizationVpcFlowLogsServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonOrganizationVpcFlowLogsServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "networkmanagement"; + } + + /** 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 "networkmanagement.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "networkmanagement.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(OrganizationVpcFlowLogsServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", + GaxProperties.getLibraryVersion(OrganizationVpcFlowLogsServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return OrganizationVpcFlowLogsServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected OrganizationVpcFlowLogsServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + listVpcFlowLogsConfigsSettings = settingsBuilder.listVpcFlowLogsConfigsSettings().build(); + getVpcFlowLogsConfigSettings = settingsBuilder.getVpcFlowLogsConfigSettings().build(); + createVpcFlowLogsConfigSettings = settingsBuilder.createVpcFlowLogsConfigSettings().build(); + createVpcFlowLogsConfigOperationSettings = + settingsBuilder.createVpcFlowLogsConfigOperationSettings().build(); + updateVpcFlowLogsConfigSettings = settingsBuilder.updateVpcFlowLogsConfigSettings().build(); + updateVpcFlowLogsConfigOperationSettings = + settingsBuilder.updateVpcFlowLogsConfigOperationSettings().build(); + deleteVpcFlowLogsConfigSettings = settingsBuilder.deleteVpcFlowLogsConfigSettings().build(); + deleteVpcFlowLogsConfigOperationSettings = + settingsBuilder.deleteVpcFlowLogsConfigOperationSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); + setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); + getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); + testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); + } + + /** Builder for OrganizationVpcFlowLogsServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final PagedCallSettings.Builder< + ListVpcFlowLogsConfigsRequest, + ListVpcFlowLogsConfigsResponse, + ListVpcFlowLogsConfigsPagedResponse> + listVpcFlowLogsConfigsSettings; + private final UnaryCallSettings.Builder + getVpcFlowLogsConfigSettings; + private final UnaryCallSettings.Builder + createVpcFlowLogsConfigSettings; + private final OperationCallSettings.Builder< + CreateVpcFlowLogsConfigRequest, VpcFlowLogsConfig, OperationMetadata> + createVpcFlowLogsConfigOperationSettings; + private final UnaryCallSettings.Builder + updateVpcFlowLogsConfigSettings; + private final OperationCallSettings.Builder< + UpdateVpcFlowLogsConfigRequest, VpcFlowLogsConfig, OperationMetadata> + updateVpcFlowLogsConfigOperationSettings; + private final UnaryCallSettings.Builder + deleteVpcFlowLogsConfigSettings; + private final OperationCallSettings.Builder< + DeleteVpcFlowLogsConfigRequest, Empty, OperationMetadata> + deleteVpcFlowLogsConfigOperationSettings; + private final PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings.Builder getLocationSettings; + private final UnaryCallSettings.Builder setIamPolicySettings; + private final UnaryCallSettings.Builder getIamPolicySettings; + private final UnaryCallSettings.Builder + testIamPermissionsSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + listVpcFlowLogsConfigsSettings = + PagedCallSettings.newBuilder(LIST_VPC_FLOW_LOGS_CONFIGS_PAGE_STR_FACT); + getVpcFlowLogsConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createVpcFlowLogsConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createVpcFlowLogsConfigOperationSettings = OperationCallSettings.newBuilder(); + updateVpcFlowLogsConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateVpcFlowLogsConfigOperationSettings = OperationCallSettings.newBuilder(); + deleteVpcFlowLogsConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteVpcFlowLogsConfigOperationSettings = OperationCallSettings.newBuilder(); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listVpcFlowLogsConfigsSettings, + getVpcFlowLogsConfigSettings, + createVpcFlowLogsConfigSettings, + updateVpcFlowLogsConfigSettings, + deleteVpcFlowLogsConfigSettings, + listLocationsSettings, + getLocationSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + initDefaults(this); + } + + protected Builder(OrganizationVpcFlowLogsServiceStubSettings settings) { + super(settings); + + listVpcFlowLogsConfigsSettings = settings.listVpcFlowLogsConfigsSettings.toBuilder(); + getVpcFlowLogsConfigSettings = settings.getVpcFlowLogsConfigSettings.toBuilder(); + createVpcFlowLogsConfigSettings = settings.createVpcFlowLogsConfigSettings.toBuilder(); + createVpcFlowLogsConfigOperationSettings = + settings.createVpcFlowLogsConfigOperationSettings.toBuilder(); + updateVpcFlowLogsConfigSettings = settings.updateVpcFlowLogsConfigSettings.toBuilder(); + updateVpcFlowLogsConfigOperationSettings = + settings.updateVpcFlowLogsConfigOperationSettings.toBuilder(); + deleteVpcFlowLogsConfigSettings = settings.deleteVpcFlowLogsConfigSettings.toBuilder(); + deleteVpcFlowLogsConfigOperationSettings = + settings.deleteVpcFlowLogsConfigOperationSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); + setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); + getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); + testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listVpcFlowLogsConfigsSettings, + getVpcFlowLogsConfigSettings, + createVpcFlowLogsConfigSettings, + updateVpcFlowLogsConfigSettings, + deleteVpcFlowLogsConfigSettings, + listLocationsSettings, + getLocationSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + } + + 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 + .listVpcFlowLogsConfigsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getVpcFlowLogsConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createVpcFlowLogsConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateVpcFlowLogsConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteVpcFlowLogsConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listLocationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getLocationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .setIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .testIamPermissionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createVpcFlowLogsConfigOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(VpcFlowLogsConfig.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 + .updateVpcFlowLogsConfigOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(VpcFlowLogsConfig.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 + .deleteVpcFlowLogsConfigOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_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 listVpcFlowLogsConfigs. */ + public PagedCallSettings.Builder< + ListVpcFlowLogsConfigsRequest, + ListVpcFlowLogsConfigsResponse, + ListVpcFlowLogsConfigsPagedResponse> + listVpcFlowLogsConfigsSettings() { + return listVpcFlowLogsConfigsSettings; + } + + /** Returns the builder for the settings used for calls to getVpcFlowLogsConfig. */ + public UnaryCallSettings.Builder + getVpcFlowLogsConfigSettings() { + return getVpcFlowLogsConfigSettings; + } + + /** Returns the builder for the settings used for calls to createVpcFlowLogsConfig. */ + public UnaryCallSettings.Builder + createVpcFlowLogsConfigSettings() { + return createVpcFlowLogsConfigSettings; + } + + /** Returns the builder for the settings used for calls to createVpcFlowLogsConfig. */ + public OperationCallSettings.Builder< + CreateVpcFlowLogsConfigRequest, VpcFlowLogsConfig, OperationMetadata> + createVpcFlowLogsConfigOperationSettings() { + return createVpcFlowLogsConfigOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateVpcFlowLogsConfig. */ + public UnaryCallSettings.Builder + updateVpcFlowLogsConfigSettings() { + return updateVpcFlowLogsConfigSettings; + } + + /** Returns the builder for the settings used for calls to updateVpcFlowLogsConfig. */ + public OperationCallSettings.Builder< + UpdateVpcFlowLogsConfigRequest, VpcFlowLogsConfig, OperationMetadata> + updateVpcFlowLogsConfigOperationSettings() { + return updateVpcFlowLogsConfigOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteVpcFlowLogsConfig. */ + public UnaryCallSettings.Builder + deleteVpcFlowLogsConfigSettings() { + return deleteVpcFlowLogsConfigSettings; + } + + /** Returns the builder for the settings used for calls to deleteVpcFlowLogsConfig. */ + public OperationCallSettings.Builder + deleteVpcFlowLogsConfigOperationSettings() { + return deleteVpcFlowLogsConfigOperationSettings; + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getLocationSettings; + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + @Override + public OrganizationVpcFlowLogsServiceStubSettings build() throws IOException { + return new OrganizationVpcFlowLogsServiceStubSettings(this); + } + } +} diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/VpcFlowLogsServiceStub.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/VpcFlowLogsServiceStub.java index 5140f58eed55..9c309a3d9adf 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/VpcFlowLogsServiceStub.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/VpcFlowLogsServiceStub.java @@ -18,6 +18,7 @@ import static com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient.ListLocationsPagedResponse; import static com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient.ListVpcFlowLogsConfigsPagedResponse; +import static com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient.QueryOrgVpcFlowLogsConfigsPagedResponse; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; @@ -33,6 +34,8 @@ import com.google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsRequest; import com.google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsResponse; import com.google.cloud.networkmanagement.v1beta1.OperationMetadata; +import com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest; +import com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse; import com.google.cloud.networkmanagement.v1beta1.UpdateVpcFlowLogsConfigRequest; import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig; import com.google.iam.v1.GetIamPolicyRequest; @@ -112,6 +115,18 @@ public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOp throw new UnsupportedOperationException("Not implemented: deleteVpcFlowLogsConfigCallable()"); } + public UnaryCallable + queryOrgVpcFlowLogsConfigsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: queryOrgVpcFlowLogsConfigsPagedCallable()"); + } + + public UnaryCallable + queryOrgVpcFlowLogsConfigsCallable() { + throw new UnsupportedOperationException( + "Not implemented: queryOrgVpcFlowLogsConfigsCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/VpcFlowLogsServiceStubSettings.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/VpcFlowLogsServiceStubSettings.java index 1933dd724cce..49e18687b7e3 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/VpcFlowLogsServiceStubSettings.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/VpcFlowLogsServiceStubSettings.java @@ -18,6 +18,7 @@ import static com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient.ListLocationsPagedResponse; import static com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient.ListVpcFlowLogsConfigsPagedResponse; +import static com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient.QueryOrgVpcFlowLogsConfigsPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; @@ -59,6 +60,8 @@ import com.google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsRequest; import com.google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsResponse; import com.google.cloud.networkmanagement.v1beta1.OperationMetadata; +import com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest; +import com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse; import com.google.cloud.networkmanagement.v1beta1.UpdateVpcFlowLogsConfigRequest; import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig; import com.google.common.collect.ImmutableList; @@ -183,6 +186,11 @@ public class VpcFlowLogsServiceStubSettings extends StubSettings deleteVpcFlowLogsConfigOperationSettings; + private final PagedCallSettings< + QueryOrgVpcFlowLogsConfigsRequest, + QueryOrgVpcFlowLogsConfigsResponse, + QueryOrgVpcFlowLogsConfigsPagedResponse> + queryOrgVpcFlowLogsConfigsSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -233,6 +241,51 @@ public Iterable extractResources( } }; + private static final PagedListDescriptor< + QueryOrgVpcFlowLogsConfigsRequest, QueryOrgVpcFlowLogsConfigsResponse, VpcFlowLogsConfig> + QUERY_ORG_VPC_FLOW_LOGS_CONFIGS_PAGE_STR_DESC = + new PagedListDescriptor< + QueryOrgVpcFlowLogsConfigsRequest, + QueryOrgVpcFlowLogsConfigsResponse, + VpcFlowLogsConfig>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public QueryOrgVpcFlowLogsConfigsRequest injectToken( + QueryOrgVpcFlowLogsConfigsRequest payload, String token) { + return QueryOrgVpcFlowLogsConfigsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public QueryOrgVpcFlowLogsConfigsRequest injectPageSize( + QueryOrgVpcFlowLogsConfigsRequest payload, int pageSize) { + return QueryOrgVpcFlowLogsConfigsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(QueryOrgVpcFlowLogsConfigsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(QueryOrgVpcFlowLogsConfigsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + QueryOrgVpcFlowLogsConfigsResponse payload) { + return payload.getVpcFlowLogsConfigsList(); + } + }; + private static final PagedListDescriptor LIST_LOCATIONS_PAGE_STR_DESC = new PagedListDescriptor() { @@ -294,6 +347,37 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + QueryOrgVpcFlowLogsConfigsRequest, + QueryOrgVpcFlowLogsConfigsResponse, + QueryOrgVpcFlowLogsConfigsPagedResponse> + QUERY_ORG_VPC_FLOW_LOGS_CONFIGS_PAGE_STR_FACT = + new PagedListResponseFactory< + QueryOrgVpcFlowLogsConfigsRequest, + QueryOrgVpcFlowLogsConfigsResponse, + QueryOrgVpcFlowLogsConfigsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + QueryOrgVpcFlowLogsConfigsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + QueryOrgVpcFlowLogsConfigsRequest, + QueryOrgVpcFlowLogsConfigsResponse, + VpcFlowLogsConfig> + pageContext = + PageContext.create( + callable, + QUERY_ORG_VPC_FLOW_LOGS_CONFIGS_PAGE_STR_DESC, + request, + context); + return QueryOrgVpcFlowLogsConfigsPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> LIST_LOCATIONS_PAGE_STR_FACT = @@ -362,6 +446,15 @@ public ApiFuture getFuturePagedResponse( return deleteVpcFlowLogsConfigOperationSettings; } + /** Returns the object with the settings used for calls to queryOrgVpcFlowLogsConfigs. */ + public PagedCallSettings< + QueryOrgVpcFlowLogsConfigsRequest, + QueryOrgVpcFlowLogsConfigsResponse, + QueryOrgVpcFlowLogsConfigsPagedResponse> + queryOrgVpcFlowLogsConfigsSettings() { + return queryOrgVpcFlowLogsConfigsSettings; + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -511,6 +604,8 @@ protected VpcFlowLogsServiceStubSettings(Builder settingsBuilder) throws IOExcep deleteVpcFlowLogsConfigSettings = settingsBuilder.deleteVpcFlowLogsConfigSettings().build(); deleteVpcFlowLogsConfigOperationSettings = settingsBuilder.deleteVpcFlowLogsConfigOperationSettings().build(); + queryOrgVpcFlowLogsConfigsSettings = + settingsBuilder.queryOrgVpcFlowLogsConfigsSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); @@ -544,6 +639,11 @@ public static class Builder private final OperationCallSettings.Builder< DeleteVpcFlowLogsConfigRequest, Empty, OperationMetadata> deleteVpcFlowLogsConfigOperationSettings; + private final PagedCallSettings.Builder< + QueryOrgVpcFlowLogsConfigsRequest, + QueryOrgVpcFlowLogsConfigsResponse, + QueryOrgVpcFlowLogsConfigsPagedResponse> + queryOrgVpcFlowLogsConfigsSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -588,6 +688,8 @@ protected Builder(ClientContext clientContext) { updateVpcFlowLogsConfigOperationSettings = OperationCallSettings.newBuilder(); deleteVpcFlowLogsConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteVpcFlowLogsConfigOperationSettings = OperationCallSettings.newBuilder(); + queryOrgVpcFlowLogsConfigsSettings = + PagedCallSettings.newBuilder(QUERY_ORG_VPC_FLOW_LOGS_CONFIGS_PAGE_STR_FACT); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -601,6 +703,7 @@ protected Builder(ClientContext clientContext) { createVpcFlowLogsConfigSettings, updateVpcFlowLogsConfigSettings, deleteVpcFlowLogsConfigSettings, + queryOrgVpcFlowLogsConfigsSettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -623,6 +726,7 @@ protected Builder(VpcFlowLogsServiceStubSettings settings) { deleteVpcFlowLogsConfigSettings = settings.deleteVpcFlowLogsConfigSettings.toBuilder(); deleteVpcFlowLogsConfigOperationSettings = settings.deleteVpcFlowLogsConfigOperationSettings.toBuilder(); + queryOrgVpcFlowLogsConfigsSettings = settings.queryOrgVpcFlowLogsConfigsSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); @@ -636,6 +740,7 @@ protected Builder(VpcFlowLogsServiceStubSettings settings) { createVpcFlowLogsConfigSettings, updateVpcFlowLogsConfigSettings, deleteVpcFlowLogsConfigSettings, + queryOrgVpcFlowLogsConfigsSettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -693,6 +798,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .queryOrgVpcFlowLogsConfigsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .listLocationsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -861,6 +971,15 @@ public Builder applyToAllUnaryMethods( return deleteVpcFlowLogsConfigOperationSettings; } + /** Returns the builder for the settings used for calls to queryOrgVpcFlowLogsConfigs. */ + public PagedCallSettings.Builder< + QueryOrgVpcFlowLogsConfigsRequest, + QueryOrgVpcFlowLogsConfigsResponse, + QueryOrgVpcFlowLogsConfigsPagedResponse> + queryOrgVpcFlowLogsConfigsSettings() { + return queryOrgVpcFlowLogsConfigsSettings; + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-network-management/google-cloud-network-management/src/main/resources/META-INF/native-image/com.google.cloud.networkmanagement.v1beta1/reflect-config.json b/java-network-management/google-cloud-network-management/src/main/resources/META-INF/native-image/com.google.cloud.networkmanagement.v1beta1/reflect-config.json index ad5d32f7f6af..12f4ca6285cb 100644 --- a/java-network-management/google-cloud-network-management/src/main/resources/META-INF/native-image/com.google.cloud.networkmanagement.v1beta1/reflect-config.json +++ b/java-network-management/google-cloud-network-management/src/main/resources/META-INF/native-image/com.google.cloud.networkmanagement.v1beta1/reflect-config.json @@ -737,6 +737,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkmanagement.v1beta1.DeliverInfo$GoogleServiceType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkmanagement.v1beta1.DeliverInfo$Target", "queryAllDeclaredConstructors": true, @@ -1070,6 +1079,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkmanagement.v1beta1.InstanceInfo$Status", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkmanagement.v1beta1.LatencyDistribution", "queryAllDeclaredConstructors": true, @@ -1394,6 +1412,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkmanagement.v1beta1.ProbingDetails$SingleEdgeResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1beta1.ProbingDetails$SingleEdgeResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo", "queryAllDeclaredConstructors": true, @@ -1412,6 +1448,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkmanagement.v1beta1.ReachabilityDetails", "queryAllDeclaredConstructors": true, @@ -1718,6 +1790,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig$CrossProjectMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig$Metadata", "queryAllDeclaredConstructors": true, @@ -1736,6 +1817,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig$TargetResourceState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkmanagement.v1beta1.VpnGatewayInfo", "queryAllDeclaredConstructors": true, diff --git a/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsServiceClientHttpJsonTest.java b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsServiceClientHttpJsonTest.java index a14ce9eb958d..814dfa0865c7 100644 --- a/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsServiceClientHttpJsonTest.java +++ b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsServiceClientHttpJsonTest.java @@ -60,6 +60,7 @@ import org.junit.Assert; import org.junit.Before; import org.junit.BeforeClass; +import org.junit.Ignore; import org.junit.Test; @Generated("by gapic-generator-java") @@ -147,6 +148,7 @@ public void listVpcFlowLogsConfigsExceptionTest() throws Exception { } } + @Ignore("See: https://github.com/googleapis/sdk-platform-java/issues/1839") @Test public void listVpcFlowLogsConfigsTest2() throws Exception { VpcFlowLogsConfig responsesElement = VpcFlowLogsConfig.newBuilder().build(); @@ -435,6 +437,7 @@ public void createVpcFlowLogsConfigExceptionTest2() throws Exception { } } + @Ignore("See: https://github.com/googleapis/sdk-platform-java/issues/1839") @Test public void createVpcFlowLogsConfigTest3() throws Exception { VpcFlowLogsConfig expectedResponse = @@ -500,6 +503,7 @@ public void createVpcFlowLogsConfigExceptionTest3() throws Exception { } } + @Ignore("See: https://github.com/googleapis/sdk-platform-java/issues/1839") @Test public void createVpcFlowLogsConfigTest4() throws Exception { VpcFlowLogsConfig expectedResponse = diff --git a/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/MockOrganizationVpcFlowLogsService.java b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/MockOrganizationVpcFlowLogsService.java new file mode 100644 index 000000000000..f1d79c6caf75 --- /dev/null +++ b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/MockOrganizationVpcFlowLogsService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1; + +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 MockOrganizationVpcFlowLogsService implements MockGrpcService { + private final MockOrganizationVpcFlowLogsServiceImpl serviceImpl; + + public MockOrganizationVpcFlowLogsService() { + serviceImpl = new MockOrganizationVpcFlowLogsServiceImpl(); + } + + @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-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/MockOrganizationVpcFlowLogsServiceImpl.java b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/MockOrganizationVpcFlowLogsServiceImpl.java new file mode 100644 index 000000000000..488519b1653f --- /dev/null +++ b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/MockOrganizationVpcFlowLogsServiceImpl.java @@ -0,0 +1,172 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1; + +import com.google.api.core.BetaApi; +import com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceGrpc.OrganizationVpcFlowLogsServiceImplBase; +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 MockOrganizationVpcFlowLogsServiceImpl extends OrganizationVpcFlowLogsServiceImplBase { + private List requests; + private Queue responses; + + public MockOrganizationVpcFlowLogsServiceImpl() { + 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 listVpcFlowLogsConfigs( + ListVpcFlowLogsConfigsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListVpcFlowLogsConfigsResponse) { + requests.add(request); + responseObserver.onNext(((ListVpcFlowLogsConfigsResponse) 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 ListVpcFlowLogsConfigs, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + ListVpcFlowLogsConfigsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getVpcFlowLogsConfig( + GetVpcFlowLogsConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof VpcFlowLogsConfig) { + requests.add(request); + responseObserver.onNext(((VpcFlowLogsConfig) 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 GetVpcFlowLogsConfig, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + VpcFlowLogsConfig.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createVpcFlowLogsConfig( + CreateVpcFlowLogsConfigRequest 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 CreateVpcFlowLogsConfig, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateVpcFlowLogsConfig( + UpdateVpcFlowLogsConfigRequest 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 UpdateVpcFlowLogsConfig, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteVpcFlowLogsConfig( + DeleteVpcFlowLogsConfigRequest 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 DeleteVpcFlowLogsConfig, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/MockVpcFlowLogsServiceImpl.java b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/MockVpcFlowLogsServiceImpl.java index 71ae0f3aa7c1..226d549f20f4 100644 --- a/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/MockVpcFlowLogsServiceImpl.java +++ b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/MockVpcFlowLogsServiceImpl.java @@ -169,4 +169,27 @@ public void deleteVpcFlowLogsConfig( Exception.class.getName()))); } } + + @Override + public void queryOrgVpcFlowLogsConfigs( + QueryOrgVpcFlowLogsConfigsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof QueryOrgVpcFlowLogsConfigsResponse) { + requests.add(request); + responseObserver.onNext(((QueryOrgVpcFlowLogsConfigsResponse) 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 QueryOrgVpcFlowLogsConfigs, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + QueryOrgVpcFlowLogsConfigsResponse.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/OrganizationVpcFlowLogsServiceClientHttpJsonTest.java b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/OrganizationVpcFlowLogsServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..2fa7e7b23b07 --- /dev/null +++ b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/OrganizationVpcFlowLogsServiceClientHttpJsonTest.java @@ -0,0 +1,1225 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1; + +import static com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient.ListVpcFlowLogsConfigsPagedResponse; + +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.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networkmanagement.v1beta1.stub.HttpJsonOrganizationVpcFlowLogsServiceStub; +import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.ByteString; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.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.Ignore; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class OrganizationVpcFlowLogsServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static OrganizationVpcFlowLogsServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonOrganizationVpcFlowLogsServiceStub.getMethodDescriptors(), + OrganizationVpcFlowLogsServiceSettings.getDefaultEndpoint()); + OrganizationVpcFlowLogsServiceSettings settings = + OrganizationVpcFlowLogsServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + OrganizationVpcFlowLogsServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = OrganizationVpcFlowLogsServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Ignore("See: https://github.com/googleapis/sdk-platform-java/issues/1839") + @Test + public void listVpcFlowLogsConfigsTest() throws Exception { + VpcFlowLogsConfig responsesElement = VpcFlowLogsConfig.newBuilder().build(); + ListVpcFlowLogsConfigsResponse expectedResponse = + ListVpcFlowLogsConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllVpcFlowLogsConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListVpcFlowLogsConfigsPagedResponse pagedListResponse = client.listVpcFlowLogsConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getVpcFlowLogsConfigsList().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 listVpcFlowLogsConfigsExceptionTest() 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.listVpcFlowLogsConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listVpcFlowLogsConfigsTest2() throws Exception { + VpcFlowLogsConfig responsesElement = VpcFlowLogsConfig.newBuilder().build(); + ListVpcFlowLogsConfigsResponse expectedResponse = + ListVpcFlowLogsConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllVpcFlowLogsConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + + ListVpcFlowLogsConfigsPagedResponse pagedListResponse = client.listVpcFlowLogsConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getVpcFlowLogsConfigsList().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 listVpcFlowLogsConfigsExceptionTest2() 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.listVpcFlowLogsConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listVpcFlowLogsConfigsTest3() throws Exception { + VpcFlowLogsConfig responsesElement = VpcFlowLogsConfig.newBuilder().build(); + ListVpcFlowLogsConfigsResponse expectedResponse = + ListVpcFlowLogsConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllVpcFlowLogsConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "organizations/organization-9365/locations/location-9365"; + + ListVpcFlowLogsConfigsPagedResponse pagedListResponse = client.listVpcFlowLogsConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getVpcFlowLogsConfigsList().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 listVpcFlowLogsConfigsExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "organizations/organization-9365/locations/location-9365"; + client.listVpcFlowLogsConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getVpcFlowLogsConfigTest() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName( + "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + VpcFlowLogsConfigName name = + VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName( + "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + + VpcFlowLogsConfig actualResponse = client.getVpcFlowLogsConfig(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 getVpcFlowLogsConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + VpcFlowLogsConfigName name = + VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName( + "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + client.getVpcFlowLogsConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getVpcFlowLogsConfigTest2() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName( + "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "organizations/organization-7429/locations/location-7429/vpcFlowLogsConfigs/vpcFlowLogsConfig-7429"; + + VpcFlowLogsConfig actualResponse = client.getVpcFlowLogsConfig(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 getVpcFlowLogsConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "organizations/organization-7429/locations/location-7429/vpcFlowLogsConfigs/vpcFlowLogsConfig-7429"; + client.getVpcFlowLogsConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Ignore("See: https://github.com/googleapis/sdk-platform-java/issues/1839") + @Test + public void createVpcFlowLogsConfigTest() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + VpcFlowLogsConfigName vpcFlowLogsConfigId = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + + VpcFlowLogsConfig actualResponse = + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).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 createVpcFlowLogsConfigExceptionTest() 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]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + VpcFlowLogsConfigName vpcFlowLogsConfigId = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Ignore("See: https://github.com/googleapis/sdk-platform-java/issues/1839") + @Test + public void createVpcFlowLogsConfigTest2() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + String vpcFlowLogsConfigId = "vpcFlowLogsConfigId649763"; + + VpcFlowLogsConfig actualResponse = + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).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 createVpcFlowLogsConfigExceptionTest2() 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]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + String vpcFlowLogsConfigId = "vpcFlowLogsConfigId649763"; + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createVpcFlowLogsConfigTest3() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + VpcFlowLogsConfigName vpcFlowLogsConfigId = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + + VpcFlowLogsConfig actualResponse = + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).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 createVpcFlowLogsConfigExceptionTest3() 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]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + VpcFlowLogsConfigName vpcFlowLogsConfigId = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createVpcFlowLogsConfigTest4() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + String vpcFlowLogsConfigId = "vpcFlowLogsConfigId649763"; + + VpcFlowLogsConfig actualResponse = + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).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 createVpcFlowLogsConfigExceptionTest4() 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]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + String vpcFlowLogsConfigId = "vpcFlowLogsConfigId649763"; + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createVpcFlowLogsConfigTest5() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "organizations/organization-9365/locations/location-9365"; + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + VpcFlowLogsConfigName vpcFlowLogsConfigId = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + + VpcFlowLogsConfig actualResponse = + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).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 createVpcFlowLogsConfigExceptionTest5() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "organizations/organization-9365/locations/location-9365"; + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + VpcFlowLogsConfigName vpcFlowLogsConfigId = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createVpcFlowLogsConfigTest6() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "organizations/organization-9365/locations/location-9365"; + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + String vpcFlowLogsConfigId = "vpcFlowLogsConfigId649763"; + + VpcFlowLogsConfig actualResponse = + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).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 createVpcFlowLogsConfigExceptionTest6() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "organizations/organization-9365/locations/location-9365"; + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + String vpcFlowLogsConfigId = "vpcFlowLogsConfigId649763"; + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateVpcFlowLogsConfigTest() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName( + "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + VpcFlowLogsConfig vpcFlowLogsConfig = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName( + "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + VpcFlowLogsConfig actualResponse = + client.updateVpcFlowLogsConfigAsync(vpcFlowLogsConfig, updateMask).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 updateVpcFlowLogsConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + VpcFlowLogsConfig vpcFlowLogsConfig = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName( + "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateVpcFlowLogsConfigAsync(vpcFlowLogsConfig, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteVpcFlowLogsConfigTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + VpcFlowLogsConfigName name = + VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName( + "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + + client.deleteVpcFlowLogsConfigAsync(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 deleteVpcFlowLogsConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + VpcFlowLogsConfigName name = + VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName( + "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + client.deleteVpcFlowLogsConfigAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteVpcFlowLogsConfigTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "organizations/organization-7429/locations/location-7429/vpcFlowLogsConfigs/vpcFlowLogsConfig-7429"; + + client.deleteVpcFlowLogsConfigAsync(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 deleteVpcFlowLogsConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "organizations/organization-7429/locations/location-7429/vpcFlowLogsConfigs/vpcFlowLogsConfig-7429"; + client.deleteVpcFlowLogsConfigAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().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 listLocationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + + Location actualResponse = client.getLocation(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 getLocationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + Policy actualResponse = client.setIamPolicy(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 setIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.setIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + + Policy actualResponse = client.getIamPolicy(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 getIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + client.getIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(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 testIamPermissionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + client.testIamPermissions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/OrganizationVpcFlowLogsServiceClientTest.java b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/OrganizationVpcFlowLogsServiceClientTest.java new file mode 100644 index 000000000000..d429d6ee1e7e --- /dev/null +++ b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/OrganizationVpcFlowLogsServiceClientTest.java @@ -0,0 +1,1142 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1; + +import static com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient.ListVpcFlowLogsConfigsPagedResponse; + +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.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.ByteString; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.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 OrganizationVpcFlowLogsServiceClientTest { + private static MockIAMPolicy mockIAMPolicy; + private static MockLocations mockLocations; + private static MockOrganizationVpcFlowLogsService mockOrganizationVpcFlowLogsService; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private OrganizationVpcFlowLogsServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockOrganizationVpcFlowLogsService = new MockOrganizationVpcFlowLogsService(); + mockLocations = new MockLocations(); + mockIAMPolicy = new MockIAMPolicy(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList( + mockOrganizationVpcFlowLogsService, mockLocations, mockIAMPolicy)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + OrganizationVpcFlowLogsServiceSettings settings = + OrganizationVpcFlowLogsServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = OrganizationVpcFlowLogsServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void listVpcFlowLogsConfigsTest() throws Exception { + VpcFlowLogsConfig responsesElement = VpcFlowLogsConfig.newBuilder().build(); + ListVpcFlowLogsConfigsResponse expectedResponse = + ListVpcFlowLogsConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllVpcFlowLogsConfigs(Arrays.asList(responsesElement)) + .build(); + mockOrganizationVpcFlowLogsService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListVpcFlowLogsConfigsPagedResponse pagedListResponse = client.listVpcFlowLogsConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getVpcFlowLogsConfigsList().get(0), resources.get(0)); + + List actualRequests = mockOrganizationVpcFlowLogsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListVpcFlowLogsConfigsRequest actualRequest = + ((ListVpcFlowLogsConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listVpcFlowLogsConfigsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationVpcFlowLogsService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listVpcFlowLogsConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listVpcFlowLogsConfigsTest2() throws Exception { + VpcFlowLogsConfig responsesElement = VpcFlowLogsConfig.newBuilder().build(); + ListVpcFlowLogsConfigsResponse expectedResponse = + ListVpcFlowLogsConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllVpcFlowLogsConfigs(Arrays.asList(responsesElement)) + .build(); + mockOrganizationVpcFlowLogsService.addResponse(expectedResponse); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + + ListVpcFlowLogsConfigsPagedResponse pagedListResponse = client.listVpcFlowLogsConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getVpcFlowLogsConfigsList().get(0), resources.get(0)); + + List actualRequests = mockOrganizationVpcFlowLogsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListVpcFlowLogsConfigsRequest actualRequest = + ((ListVpcFlowLogsConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listVpcFlowLogsConfigsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationVpcFlowLogsService.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + client.listVpcFlowLogsConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listVpcFlowLogsConfigsTest3() throws Exception { + VpcFlowLogsConfig responsesElement = VpcFlowLogsConfig.newBuilder().build(); + ListVpcFlowLogsConfigsResponse expectedResponse = + ListVpcFlowLogsConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllVpcFlowLogsConfigs(Arrays.asList(responsesElement)) + .build(); + mockOrganizationVpcFlowLogsService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListVpcFlowLogsConfigsPagedResponse pagedListResponse = client.listVpcFlowLogsConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getVpcFlowLogsConfigsList().get(0), resources.get(0)); + + List actualRequests = mockOrganizationVpcFlowLogsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListVpcFlowLogsConfigsRequest actualRequest = + ((ListVpcFlowLogsConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listVpcFlowLogsConfigsExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationVpcFlowLogsService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listVpcFlowLogsConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getVpcFlowLogsConfigTest() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName( + "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockOrganizationVpcFlowLogsService.addResponse(expectedResponse); + + VpcFlowLogsConfigName name = + VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName( + "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + + VpcFlowLogsConfig actualResponse = client.getVpcFlowLogsConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOrganizationVpcFlowLogsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetVpcFlowLogsConfigRequest actualRequest = + ((GetVpcFlowLogsConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getVpcFlowLogsConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationVpcFlowLogsService.addException(exception); + + try { + VpcFlowLogsConfigName name = + VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName( + "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + client.getVpcFlowLogsConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getVpcFlowLogsConfigTest2() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName( + "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockOrganizationVpcFlowLogsService.addResponse(expectedResponse); + + String name = "name3373707"; + + VpcFlowLogsConfig actualResponse = client.getVpcFlowLogsConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOrganizationVpcFlowLogsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetVpcFlowLogsConfigRequest actualRequest = + ((GetVpcFlowLogsConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getVpcFlowLogsConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationVpcFlowLogsService.addException(exception); + + try { + String name = "name3373707"; + client.getVpcFlowLogsConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createVpcFlowLogsConfigTest() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOrganizationVpcFlowLogsService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + VpcFlowLogsConfigName vpcFlowLogsConfigId = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + + VpcFlowLogsConfig actualResponse = + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOrganizationVpcFlowLogsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateVpcFlowLogsConfigRequest actualRequest = + ((CreateVpcFlowLogsConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(vpcFlowLogsConfig, actualRequest.getVpcFlowLogsConfig()); + Assert.assertEquals(vpcFlowLogsConfigId.toString(), actualRequest.getVpcFlowLogsConfigId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createVpcFlowLogsConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationVpcFlowLogsService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + VpcFlowLogsConfigName vpcFlowLogsConfigId = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).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 createVpcFlowLogsConfigTest2() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOrganizationVpcFlowLogsService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + String vpcFlowLogsConfigId = "vpcFlowLogsConfigId649763"; + + VpcFlowLogsConfig actualResponse = + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOrganizationVpcFlowLogsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateVpcFlowLogsConfigRequest actualRequest = + ((CreateVpcFlowLogsConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(vpcFlowLogsConfig, actualRequest.getVpcFlowLogsConfig()); + Assert.assertEquals(vpcFlowLogsConfigId, actualRequest.getVpcFlowLogsConfigId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createVpcFlowLogsConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationVpcFlowLogsService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + String vpcFlowLogsConfigId = "vpcFlowLogsConfigId649763"; + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).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 createVpcFlowLogsConfigTest3() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOrganizationVpcFlowLogsService.addResponse(resultOperation); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + VpcFlowLogsConfigName vpcFlowLogsConfigId = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + + VpcFlowLogsConfig actualResponse = + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOrganizationVpcFlowLogsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateVpcFlowLogsConfigRequest actualRequest = + ((CreateVpcFlowLogsConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(vpcFlowLogsConfig, actualRequest.getVpcFlowLogsConfig()); + Assert.assertEquals(vpcFlowLogsConfigId.toString(), actualRequest.getVpcFlowLogsConfigId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createVpcFlowLogsConfigExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationVpcFlowLogsService.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + VpcFlowLogsConfigName vpcFlowLogsConfigId = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).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 createVpcFlowLogsConfigTest4() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOrganizationVpcFlowLogsService.addResponse(resultOperation); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + String vpcFlowLogsConfigId = "vpcFlowLogsConfigId649763"; + + VpcFlowLogsConfig actualResponse = + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOrganizationVpcFlowLogsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateVpcFlowLogsConfigRequest actualRequest = + ((CreateVpcFlowLogsConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(vpcFlowLogsConfig, actualRequest.getVpcFlowLogsConfig()); + Assert.assertEquals(vpcFlowLogsConfigId, actualRequest.getVpcFlowLogsConfigId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createVpcFlowLogsConfigExceptionTest4() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationVpcFlowLogsService.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + String vpcFlowLogsConfigId = "vpcFlowLogsConfigId649763"; + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).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 createVpcFlowLogsConfigTest5() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOrganizationVpcFlowLogsService.addResponse(resultOperation); + + String parent = "parent-995424086"; + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + VpcFlowLogsConfigName vpcFlowLogsConfigId = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + + VpcFlowLogsConfig actualResponse = + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOrganizationVpcFlowLogsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateVpcFlowLogsConfigRequest actualRequest = + ((CreateVpcFlowLogsConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(vpcFlowLogsConfig, actualRequest.getVpcFlowLogsConfig()); + Assert.assertEquals(vpcFlowLogsConfigId.toString(), actualRequest.getVpcFlowLogsConfigId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createVpcFlowLogsConfigExceptionTest5() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationVpcFlowLogsService.addException(exception); + + try { + String parent = "parent-995424086"; + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + VpcFlowLogsConfigName vpcFlowLogsConfigId = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).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 createVpcFlowLogsConfigTest6() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOrganizationVpcFlowLogsService.addResponse(resultOperation); + + String parent = "parent-995424086"; + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + String vpcFlowLogsConfigId = "vpcFlowLogsConfigId649763"; + + VpcFlowLogsConfig actualResponse = + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOrganizationVpcFlowLogsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateVpcFlowLogsConfigRequest actualRequest = + ((CreateVpcFlowLogsConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(vpcFlowLogsConfig, actualRequest.getVpcFlowLogsConfig()); + Assert.assertEquals(vpcFlowLogsConfigId, actualRequest.getVpcFlowLogsConfigId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createVpcFlowLogsConfigExceptionTest6() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationVpcFlowLogsService.addException(exception); + + try { + String parent = "parent-995424086"; + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + String vpcFlowLogsConfigId = "vpcFlowLogsConfigId649763"; + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).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 updateVpcFlowLogsConfigTest() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName( + "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOrganizationVpcFlowLogsService.addResponse(resultOperation); + + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + VpcFlowLogsConfig actualResponse = + client.updateVpcFlowLogsConfigAsync(vpcFlowLogsConfig, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOrganizationVpcFlowLogsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateVpcFlowLogsConfigRequest actualRequest = + ((UpdateVpcFlowLogsConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(vpcFlowLogsConfig, actualRequest.getVpcFlowLogsConfig()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateVpcFlowLogsConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationVpcFlowLogsService.addException(exception); + + try { + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateVpcFlowLogsConfigAsync(vpcFlowLogsConfig, updateMask).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 deleteVpcFlowLogsConfigTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOrganizationVpcFlowLogsService.addResponse(resultOperation); + + VpcFlowLogsConfigName name = + VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName( + "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + + client.deleteVpcFlowLogsConfigAsync(name).get(); + + List actualRequests = mockOrganizationVpcFlowLogsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteVpcFlowLogsConfigRequest actualRequest = + ((DeleteVpcFlowLogsConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteVpcFlowLogsConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationVpcFlowLogsService.addException(exception); + + try { + VpcFlowLogsConfigName name = + VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName( + "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + client.deleteVpcFlowLogsConfigAsync(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 deleteVpcFlowLogsConfigTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOrganizationVpcFlowLogsService.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteVpcFlowLogsConfigAsync(name).get(); + + List actualRequests = mockOrganizationVpcFlowLogsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteVpcFlowLogsConfigRequest actualRequest = + ((DeleteVpcFlowLogsConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteVpcFlowLogsConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationVpcFlowLogsService.addException(exception); + + try { + String name = "name3373707"; + client.deleteVpcFlowLogsConfigAsync(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 listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockLocations.addResponse(expectedResponse); + + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLocationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockIAMPolicy.addResponse(expectedResponse); + + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + Policy actualResponse = client.setIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy()); + Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.setIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockIAMPolicy.addResponse(expectedResponse); + + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + + Policy actualResponse = client.getIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getOptions(), actualRequest.getOptions()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + client.getIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockIAMPolicy.addResponse(expectedResponse); + + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + client.testIamPermissions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceClientHttpJsonTest.java b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceClientHttpJsonTest.java index 42c9f8605325..44a9ec697d54 100644 --- a/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceClientHttpJsonTest.java +++ b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceClientHttpJsonTest.java @@ -18,6 +18,7 @@ import static com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient.ListLocationsPagedResponse; import static com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient.ListVpcFlowLogsConfigsPagedResponse; +import static com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient.QueryOrgVpcFlowLogsConfigsPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.httpjson.GaxHttpJsonProperties; @@ -148,6 +149,7 @@ public void listVpcFlowLogsConfigsExceptionTest() throws Exception { } } + @Ignore("See: https://github.com/googleapis/sdk-platform-java/issues/1839") @Test public void listVpcFlowLogsConfigsTest2() throws Exception { VpcFlowLogsConfig responsesElement = VpcFlowLogsConfig.newBuilder().build(); @@ -158,7 +160,7 @@ public void listVpcFlowLogsConfigsTest2() throws Exception { .build(); mockService.addResponse(expectedResponse); - String parent = "projects/project-5833/locations/location-5833"; + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); ListVpcFlowLogsConfigsPagedResponse pagedListResponse = client.listVpcFlowLogsConfigs(parent); @@ -189,6 +191,56 @@ public void listVpcFlowLogsConfigsExceptionTest2() throws Exception { new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + client.listVpcFlowLogsConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listVpcFlowLogsConfigsTest3() throws Exception { + VpcFlowLogsConfig responsesElement = VpcFlowLogsConfig.newBuilder().build(); + ListVpcFlowLogsConfigsResponse expectedResponse = + ListVpcFlowLogsConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllVpcFlowLogsConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListVpcFlowLogsConfigsPagedResponse pagedListResponse = client.listVpcFlowLogsConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getVpcFlowLogsConfigsList().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 listVpcFlowLogsConfigsExceptionTest3() 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.listVpcFlowLogsConfigs(parent); @@ -203,7 +255,8 @@ public void getVpcFlowLogsConfigTest() throws Exception { VpcFlowLogsConfig expectedResponse = VpcFlowLogsConfig.newBuilder() .setName( - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") .toString()) .setDescription("description-1724546052") .setFlowSampling(-543591464) @@ -216,7 +269,8 @@ public void getVpcFlowLogsConfigTest() throws Exception { mockService.addResponse(expectedResponse); VpcFlowLogsConfigName name = - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); VpcFlowLogsConfig actualResponse = client.getVpcFlowLogsConfig(name); Assert.assertEquals(expectedResponse, actualResponse); @@ -245,7 +299,8 @@ public void getVpcFlowLogsConfigExceptionTest() throws Exception { try { VpcFlowLogsConfigName name = - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); client.getVpcFlowLogsConfig(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -258,7 +313,8 @@ public void getVpcFlowLogsConfigTest2() throws Exception { VpcFlowLogsConfig expectedResponse = VpcFlowLogsConfig.newBuilder() .setName( - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") .toString()) .setDescription("description-1724546052") .setFlowSampling(-543591464) @@ -313,7 +369,8 @@ public void createVpcFlowLogsConfigTest() throws Exception { VpcFlowLogsConfig expectedResponse = VpcFlowLogsConfig.newBuilder() .setName( - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") .toString()) .setDescription("description-1724546052") .setFlowSampling(-543591464) @@ -334,7 +391,8 @@ public void createVpcFlowLogsConfigTest() throws Exception { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); VpcFlowLogsConfigName vpcFlowLogsConfigId = - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); VpcFlowLogsConfig actualResponse = client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); @@ -366,7 +424,8 @@ public void createVpcFlowLogsConfigExceptionTest() throws Exception { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); VpcFlowLogsConfigName vpcFlowLogsConfigId = - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { @@ -378,7 +437,8 @@ public void createVpcFlowLogsConfigTest2() throws Exception { VpcFlowLogsConfig expectedResponse = VpcFlowLogsConfig.newBuilder() .setName( - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") .toString()) .setDescription("description-1724546052") .setFlowSampling(-543591464) @@ -436,12 +496,14 @@ public void createVpcFlowLogsConfigExceptionTest2() throws Exception { } } + @Ignore("See: https://github.com/googleapis/sdk-platform-java/issues/1839") @Test public void createVpcFlowLogsConfigTest3() throws Exception { VpcFlowLogsConfig expectedResponse = VpcFlowLogsConfig.newBuilder() .setName( - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") .toString()) .setDescription("description-1724546052") .setFlowSampling(-543591464) @@ -459,10 +521,11 @@ public void createVpcFlowLogsConfigTest3() throws Exception { .build(); mockService.addResponse(resultOperation); - String parent = "projects/project-5833/locations/location-5833"; + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); VpcFlowLogsConfigName vpcFlowLogsConfigId = - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); VpcFlowLogsConfig actualResponse = client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); @@ -491,22 +554,25 @@ public void createVpcFlowLogsConfigExceptionTest3() throws Exception { mockService.addException(exception); try { - String parent = "projects/project-5833/locations/location-5833"; + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); VpcFlowLogsConfigName vpcFlowLogsConfigId = - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { } } + @Ignore("See: https://github.com/googleapis/sdk-platform-java/issues/1839") @Test public void createVpcFlowLogsConfigTest4() throws Exception { VpcFlowLogsConfig expectedResponse = VpcFlowLogsConfig.newBuilder() .setName( - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") .toString()) .setDescription("description-1724546052") .setFlowSampling(-543591464) @@ -524,7 +590,7 @@ public void createVpcFlowLogsConfigTest4() throws Exception { .build(); mockService.addResponse(resultOperation); - String parent = "projects/project-5833/locations/location-5833"; + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); String vpcFlowLogsConfigId = "vpcFlowLogsConfigId649763"; @@ -554,6 +620,138 @@ public void createVpcFlowLogsConfigExceptionTest4() throws Exception { new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + String vpcFlowLogsConfigId = "vpcFlowLogsConfigId649763"; + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createVpcFlowLogsConfigTest5() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + VpcFlowLogsConfigName vpcFlowLogsConfigId = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + + VpcFlowLogsConfig actualResponse = + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).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 createVpcFlowLogsConfigExceptionTest5() 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"; + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + VpcFlowLogsConfigName vpcFlowLogsConfigId = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createVpcFlowLogsConfigTest6() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + String vpcFlowLogsConfigId = "vpcFlowLogsConfigId649763"; + + VpcFlowLogsConfig actualResponse = + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).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 createVpcFlowLogsConfigExceptionTest6() 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"; VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); @@ -569,7 +767,8 @@ public void updateVpcFlowLogsConfigTest() throws Exception { VpcFlowLogsConfig expectedResponse = VpcFlowLogsConfig.newBuilder() .setName( - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") .toString()) .setDescription("description-1724546052") .setFlowSampling(-543591464) @@ -590,7 +789,8 @@ public void updateVpcFlowLogsConfigTest() throws Exception { VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder() .setName( - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") .toString()) .setDescription("description-1724546052") .setFlowSampling(-543591464) @@ -632,7 +832,8 @@ public void updateVpcFlowLogsConfigExceptionTest() throws Exception { VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder() .setName( - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") .toString()) .setDescription("description-1724546052") .setFlowSampling(-543591464) @@ -661,7 +862,8 @@ public void deleteVpcFlowLogsConfigTest() throws Exception { mockService.addResponse(resultOperation); VpcFlowLogsConfigName name = - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); client.deleteVpcFlowLogsConfigAsync(name).get(); @@ -689,7 +891,8 @@ public void deleteVpcFlowLogsConfigExceptionTest() throws Exception { try { VpcFlowLogsConfigName name = - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); client.deleteVpcFlowLogsConfigAsync(name).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { @@ -743,6 +946,69 @@ public void deleteVpcFlowLogsConfigExceptionTest2() throws Exception { } } + @Test + public void queryOrgVpcFlowLogsConfigsTest() throws Exception { + VpcFlowLogsConfig responsesElement = VpcFlowLogsConfig.newBuilder().build(); + QueryOrgVpcFlowLogsConfigsResponse expectedResponse = + QueryOrgVpcFlowLogsConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllVpcFlowLogsConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + QueryOrgVpcFlowLogsConfigsRequest request = + QueryOrgVpcFlowLogsConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + + QueryOrgVpcFlowLogsConfigsPagedResponse pagedListResponse = + client.queryOrgVpcFlowLogsConfigs(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getVpcFlowLogsConfigsList().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 queryOrgVpcFlowLogsConfigsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + QueryOrgVpcFlowLogsConfigsRequest request = + QueryOrgVpcFlowLogsConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + client.queryOrgVpcFlowLogsConfigs(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceClientTest.java b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceClientTest.java index f8e190cd05e6..1b6092287ba8 100644 --- a/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceClientTest.java +++ b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceClientTest.java @@ -18,6 +18,7 @@ import static com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient.ListLocationsPagedResponse; import static com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient.ListVpcFlowLogsConfigsPagedResponse; +import static com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient.QueryOrgVpcFlowLogsConfigsPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.grpc.GaxGrpcProperties; @@ -161,6 +162,51 @@ public void listVpcFlowLogsConfigsTest2() throws Exception { .build(); mockVpcFlowLogsService.addResponse(expectedResponse); + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + + ListVpcFlowLogsConfigsPagedResponse pagedListResponse = client.listVpcFlowLogsConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getVpcFlowLogsConfigsList().get(0), resources.get(0)); + + List actualRequests = mockVpcFlowLogsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListVpcFlowLogsConfigsRequest actualRequest = + ((ListVpcFlowLogsConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listVpcFlowLogsConfigsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVpcFlowLogsService.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + client.listVpcFlowLogsConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listVpcFlowLogsConfigsTest3() throws Exception { + VpcFlowLogsConfig responsesElement = VpcFlowLogsConfig.newBuilder().build(); + ListVpcFlowLogsConfigsResponse expectedResponse = + ListVpcFlowLogsConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllVpcFlowLogsConfigs(Arrays.asList(responsesElement)) + .build(); + mockVpcFlowLogsService.addResponse(expectedResponse); + String parent = "parent-995424086"; ListVpcFlowLogsConfigsPagedResponse pagedListResponse = client.listVpcFlowLogsConfigs(parent); @@ -183,7 +229,7 @@ public void listVpcFlowLogsConfigsTest2() throws Exception { } @Test - public void listVpcFlowLogsConfigsExceptionTest2() throws Exception { + public void listVpcFlowLogsConfigsExceptionTest3() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockVpcFlowLogsService.addException(exception); @@ -201,7 +247,8 @@ public void getVpcFlowLogsConfigTest() throws Exception { VpcFlowLogsConfig expectedResponse = VpcFlowLogsConfig.newBuilder() .setName( - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") .toString()) .setDescription("description-1724546052") .setFlowSampling(-543591464) @@ -214,7 +261,8 @@ public void getVpcFlowLogsConfigTest() throws Exception { mockVpcFlowLogsService.addResponse(expectedResponse); VpcFlowLogsConfigName name = - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); VpcFlowLogsConfig actualResponse = client.getVpcFlowLogsConfig(name); Assert.assertEquals(expectedResponse, actualResponse); @@ -238,7 +286,8 @@ public void getVpcFlowLogsConfigExceptionTest() throws Exception { try { VpcFlowLogsConfigName name = - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); client.getVpcFlowLogsConfig(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -251,7 +300,8 @@ public void getVpcFlowLogsConfigTest2() throws Exception { VpcFlowLogsConfig expectedResponse = VpcFlowLogsConfig.newBuilder() .setName( - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") .toString()) .setDescription("description-1724546052") .setFlowSampling(-543591464) @@ -299,7 +349,8 @@ public void createVpcFlowLogsConfigTest() throws Exception { VpcFlowLogsConfig expectedResponse = VpcFlowLogsConfig.newBuilder() .setName( - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") .toString()) .setDescription("description-1724546052") .setFlowSampling(-543591464) @@ -320,7 +371,8 @@ public void createVpcFlowLogsConfigTest() throws Exception { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); VpcFlowLogsConfigName vpcFlowLogsConfigId = - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); VpcFlowLogsConfig actualResponse = client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); @@ -349,7 +401,8 @@ public void createVpcFlowLogsConfigExceptionTest() throws Exception { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); VpcFlowLogsConfigName vpcFlowLogsConfigId = - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { @@ -364,7 +417,8 @@ public void createVpcFlowLogsConfigTest2() throws Exception { VpcFlowLogsConfig expectedResponse = VpcFlowLogsConfig.newBuilder() .setName( - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") .toString()) .setDescription("description-1724546052") .setFlowSampling(-543591464) @@ -427,7 +481,140 @@ public void createVpcFlowLogsConfigTest3() throws Exception { VpcFlowLogsConfig expectedResponse = VpcFlowLogsConfig.newBuilder() .setName( - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVpcFlowLogsService.addResponse(resultOperation); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + VpcFlowLogsConfigName vpcFlowLogsConfigId = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + + VpcFlowLogsConfig actualResponse = + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVpcFlowLogsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateVpcFlowLogsConfigRequest actualRequest = + ((CreateVpcFlowLogsConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(vpcFlowLogsConfig, actualRequest.getVpcFlowLogsConfig()); + Assert.assertEquals(vpcFlowLogsConfigId.toString(), actualRequest.getVpcFlowLogsConfigId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createVpcFlowLogsConfigExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVpcFlowLogsService.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + VpcFlowLogsConfigName vpcFlowLogsConfigId = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).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 createVpcFlowLogsConfigTest4() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVpcFlowLogsService.addResponse(resultOperation); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + String vpcFlowLogsConfigId = "vpcFlowLogsConfigId649763"; + + VpcFlowLogsConfig actualResponse = + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVpcFlowLogsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateVpcFlowLogsConfigRequest actualRequest = + ((CreateVpcFlowLogsConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(vpcFlowLogsConfig, actualRequest.getVpcFlowLogsConfig()); + Assert.assertEquals(vpcFlowLogsConfigId, actualRequest.getVpcFlowLogsConfigId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createVpcFlowLogsConfigExceptionTest4() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVpcFlowLogsService.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + String vpcFlowLogsConfigId = "vpcFlowLogsConfigId649763"; + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).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 createVpcFlowLogsConfigTest5() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") .toString()) .setDescription("description-1724546052") .setFlowSampling(-543591464) @@ -448,7 +635,8 @@ public void createVpcFlowLogsConfigTest3() throws Exception { String parent = "parent-995424086"; VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); VpcFlowLogsConfigName vpcFlowLogsConfigId = - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); VpcFlowLogsConfig actualResponse = client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); @@ -469,7 +657,7 @@ public void createVpcFlowLogsConfigTest3() throws Exception { } @Test - public void createVpcFlowLogsConfigExceptionTest3() throws Exception { + public void createVpcFlowLogsConfigExceptionTest5() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockVpcFlowLogsService.addException(exception); @@ -477,7 +665,8 @@ public void createVpcFlowLogsConfigExceptionTest3() throws Exception { String parent = "parent-995424086"; VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); VpcFlowLogsConfigName vpcFlowLogsConfigId = - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { @@ -488,11 +677,12 @@ public void createVpcFlowLogsConfigExceptionTest3() throws Exception { } @Test - public void createVpcFlowLogsConfigTest4() throws Exception { + public void createVpcFlowLogsConfigTest6() throws Exception { VpcFlowLogsConfig expectedResponse = VpcFlowLogsConfig.newBuilder() .setName( - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") .toString()) .setDescription("description-1724546052") .setFlowSampling(-543591464) @@ -533,7 +723,7 @@ public void createVpcFlowLogsConfigTest4() throws Exception { } @Test - public void createVpcFlowLogsConfigExceptionTest4() throws Exception { + public void createVpcFlowLogsConfigExceptionTest6() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockVpcFlowLogsService.addException(exception); @@ -555,7 +745,8 @@ public void updateVpcFlowLogsConfigTest() throws Exception { VpcFlowLogsConfig expectedResponse = VpcFlowLogsConfig.newBuilder() .setName( - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") .toString()) .setDescription("description-1724546052") .setFlowSampling(-543591464) @@ -622,7 +813,8 @@ public void deleteVpcFlowLogsConfigTest() throws Exception { mockVpcFlowLogsService.addResponse(resultOperation); VpcFlowLogsConfigName name = - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); client.deleteVpcFlowLogsConfigAsync(name).get(); @@ -645,7 +837,8 @@ public void deleteVpcFlowLogsConfigExceptionTest() throws Exception { try { VpcFlowLogsConfigName name = - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); client.deleteVpcFlowLogsConfigAsync(name).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { @@ -698,6 +891,67 @@ public void deleteVpcFlowLogsConfigExceptionTest2() throws Exception { } } + @Test + public void queryOrgVpcFlowLogsConfigsTest() throws Exception { + VpcFlowLogsConfig responsesElement = VpcFlowLogsConfig.newBuilder().build(); + QueryOrgVpcFlowLogsConfigsResponse expectedResponse = + QueryOrgVpcFlowLogsConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllVpcFlowLogsConfigs(Arrays.asList(responsesElement)) + .build(); + mockVpcFlowLogsService.addResponse(expectedResponse); + + QueryOrgVpcFlowLogsConfigsRequest request = + QueryOrgVpcFlowLogsConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + + QueryOrgVpcFlowLogsConfigsPagedResponse pagedListResponse = + client.queryOrgVpcFlowLogsConfigs(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getVpcFlowLogsConfigsList().get(0), resources.get(0)); + + List actualRequests = mockVpcFlowLogsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + QueryOrgVpcFlowLogsConfigsRequest actualRequest = + ((QueryOrgVpcFlowLogsConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void queryOrgVpcFlowLogsConfigsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVpcFlowLogsService.addException(exception); + + try { + QueryOrgVpcFlowLogsConfigsRequest request = + QueryOrgVpcFlowLogsConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + client.queryOrgVpcFlowLogsConfigs(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-network-management/grpc-google-cloud-network-management-v1/pom.xml b/java-network-management/grpc-google-cloud-network-management-v1/pom.xml index 8011b5d6e2dd..64ad4937b46a 100644 --- a/java-network-management/grpc-google-cloud-network-management-v1/pom.xml +++ b/java-network-management/grpc-google-cloud-network-management-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-network-management-v1 - 1.68.0 + 1.69.0 grpc-google-cloud-network-management-v1 GRPC library for google-cloud-network-management com.google.cloud google-cloud-network-management-parent - 1.68.0 + 1.69.0 diff --git a/java-network-management/grpc-google-cloud-network-management-v1beta1/pom.xml b/java-network-management/grpc-google-cloud-network-management-v1beta1/pom.xml index fdc17e497f84..74ba4e213b9d 100644 --- a/java-network-management/grpc-google-cloud-network-management-v1beta1/pom.xml +++ b/java-network-management/grpc-google-cloud-network-management-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-network-management-v1beta1 - 0.70.0 + 0.71.0 grpc-google-cloud-network-management-v1beta1 GRPC library for google-cloud-network-management com.google.cloud google-cloud-network-management-parent - 1.68.0 + 1.69.0 diff --git a/java-network-management/grpc-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/OrganizationVpcFlowLogsServiceGrpc.java b/java-network-management/grpc-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/OrganizationVpcFlowLogsServiceGrpc.java new file mode 100644 index 000000000000..b031f32992d0 --- /dev/null +++ b/java-network-management/grpc-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/OrganizationVpcFlowLogsServiceGrpc.java @@ -0,0 +1,1149 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
      + * The VPC Flow Logs organization service in the Google Cloud Network Management
      + * API provides organization level configurations that generate Flow Logs. The
      + * service and the configuration resources created using this service are
      + * global.
      + * 
      + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/networkmanagement/v1beta1/vpc_flow_logs.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class OrganizationVpcFlowLogsServiceGrpc { + + private OrganizationVpcFlowLogsServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsRequest, + com.google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsResponse> + getListVpcFlowLogsConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListVpcFlowLogsConfigs", + requestType = com.google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsRequest.class, + responseType = + com.google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsRequest, + com.google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsResponse> + getListVpcFlowLogsConfigsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsRequest, + com.google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsResponse> + getListVpcFlowLogsConfigsMethod; + if ((getListVpcFlowLogsConfigsMethod = + OrganizationVpcFlowLogsServiceGrpc.getListVpcFlowLogsConfigsMethod) + == null) { + synchronized (OrganizationVpcFlowLogsServiceGrpc.class) { + if ((getListVpcFlowLogsConfigsMethod = + OrganizationVpcFlowLogsServiceGrpc.getListVpcFlowLogsConfigsMethod) + == null) { + OrganizationVpcFlowLogsServiceGrpc.getListVpcFlowLogsConfigsMethod = + getListVpcFlowLogsConfigsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListVpcFlowLogsConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkmanagement.v1beta1 + .ListVpcFlowLogsConfigsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkmanagement.v1beta1 + .ListVpcFlowLogsConfigsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new OrganizationVpcFlowLogsServiceMethodDescriptorSupplier( + "ListVpcFlowLogsConfigs")) + .build(); + } + } + } + return getListVpcFlowLogsConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1beta1.GetVpcFlowLogsConfigRequest, + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig> + getGetVpcFlowLogsConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetVpcFlowLogsConfig", + requestType = com.google.cloud.networkmanagement.v1beta1.GetVpcFlowLogsConfigRequest.class, + responseType = com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1beta1.GetVpcFlowLogsConfigRequest, + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig> + getGetVpcFlowLogsConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1beta1.GetVpcFlowLogsConfigRequest, + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig> + getGetVpcFlowLogsConfigMethod; + if ((getGetVpcFlowLogsConfigMethod = + OrganizationVpcFlowLogsServiceGrpc.getGetVpcFlowLogsConfigMethod) + == null) { + synchronized (OrganizationVpcFlowLogsServiceGrpc.class) { + if ((getGetVpcFlowLogsConfigMethod = + OrganizationVpcFlowLogsServiceGrpc.getGetVpcFlowLogsConfigMethod) + == null) { + OrganizationVpcFlowLogsServiceGrpc.getGetVpcFlowLogsConfigMethod = + getGetVpcFlowLogsConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetVpcFlowLogsConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkmanagement.v1beta1.GetVpcFlowLogsConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new OrganizationVpcFlowLogsServiceMethodDescriptorSupplier( + "GetVpcFlowLogsConfig")) + .build(); + } + } + } + return getGetVpcFlowLogsConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1beta1.CreateVpcFlowLogsConfigRequest, + com.google.longrunning.Operation> + getCreateVpcFlowLogsConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateVpcFlowLogsConfig", + requestType = com.google.cloud.networkmanagement.v1beta1.CreateVpcFlowLogsConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1beta1.CreateVpcFlowLogsConfigRequest, + com.google.longrunning.Operation> + getCreateVpcFlowLogsConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1beta1.CreateVpcFlowLogsConfigRequest, + com.google.longrunning.Operation> + getCreateVpcFlowLogsConfigMethod; + if ((getCreateVpcFlowLogsConfigMethod = + OrganizationVpcFlowLogsServiceGrpc.getCreateVpcFlowLogsConfigMethod) + == null) { + synchronized (OrganizationVpcFlowLogsServiceGrpc.class) { + if ((getCreateVpcFlowLogsConfigMethod = + OrganizationVpcFlowLogsServiceGrpc.getCreateVpcFlowLogsConfigMethod) + == null) { + OrganizationVpcFlowLogsServiceGrpc.getCreateVpcFlowLogsConfigMethod = + getCreateVpcFlowLogsConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateVpcFlowLogsConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkmanagement.v1beta1 + .CreateVpcFlowLogsConfigRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new OrganizationVpcFlowLogsServiceMethodDescriptorSupplier( + "CreateVpcFlowLogsConfig")) + .build(); + } + } + } + return getCreateVpcFlowLogsConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1beta1.UpdateVpcFlowLogsConfigRequest, + com.google.longrunning.Operation> + getUpdateVpcFlowLogsConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateVpcFlowLogsConfig", + requestType = com.google.cloud.networkmanagement.v1beta1.UpdateVpcFlowLogsConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1beta1.UpdateVpcFlowLogsConfigRequest, + com.google.longrunning.Operation> + getUpdateVpcFlowLogsConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1beta1.UpdateVpcFlowLogsConfigRequest, + com.google.longrunning.Operation> + getUpdateVpcFlowLogsConfigMethod; + if ((getUpdateVpcFlowLogsConfigMethod = + OrganizationVpcFlowLogsServiceGrpc.getUpdateVpcFlowLogsConfigMethod) + == null) { + synchronized (OrganizationVpcFlowLogsServiceGrpc.class) { + if ((getUpdateVpcFlowLogsConfigMethod = + OrganizationVpcFlowLogsServiceGrpc.getUpdateVpcFlowLogsConfigMethod) + == null) { + OrganizationVpcFlowLogsServiceGrpc.getUpdateVpcFlowLogsConfigMethod = + getUpdateVpcFlowLogsConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateVpcFlowLogsConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkmanagement.v1beta1 + .UpdateVpcFlowLogsConfigRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new OrganizationVpcFlowLogsServiceMethodDescriptorSupplier( + "UpdateVpcFlowLogsConfig")) + .build(); + } + } + } + return getUpdateVpcFlowLogsConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1beta1.DeleteVpcFlowLogsConfigRequest, + com.google.longrunning.Operation> + getDeleteVpcFlowLogsConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteVpcFlowLogsConfig", + requestType = com.google.cloud.networkmanagement.v1beta1.DeleteVpcFlowLogsConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1beta1.DeleteVpcFlowLogsConfigRequest, + com.google.longrunning.Operation> + getDeleteVpcFlowLogsConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1beta1.DeleteVpcFlowLogsConfigRequest, + com.google.longrunning.Operation> + getDeleteVpcFlowLogsConfigMethod; + if ((getDeleteVpcFlowLogsConfigMethod = + OrganizationVpcFlowLogsServiceGrpc.getDeleteVpcFlowLogsConfigMethod) + == null) { + synchronized (OrganizationVpcFlowLogsServiceGrpc.class) { + if ((getDeleteVpcFlowLogsConfigMethod = + OrganizationVpcFlowLogsServiceGrpc.getDeleteVpcFlowLogsConfigMethod) + == null) { + OrganizationVpcFlowLogsServiceGrpc.getDeleteVpcFlowLogsConfigMethod = + getDeleteVpcFlowLogsConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteVpcFlowLogsConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkmanagement.v1beta1 + .DeleteVpcFlowLogsConfigRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new OrganizationVpcFlowLogsServiceMethodDescriptorSupplier( + "DeleteVpcFlowLogsConfig")) + .build(); + } + } + } + return getDeleteVpcFlowLogsConfigMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static OrganizationVpcFlowLogsServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public OrganizationVpcFlowLogsServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OrganizationVpcFlowLogsServiceStub(channel, callOptions); + } + }; + return OrganizationVpcFlowLogsServiceStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static OrganizationVpcFlowLogsServiceBlockingV2Stub newBlockingV2Stub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public OrganizationVpcFlowLogsServiceBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OrganizationVpcFlowLogsServiceBlockingV2Stub(channel, callOptions); + } + }; + return OrganizationVpcFlowLogsServiceBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static OrganizationVpcFlowLogsServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public OrganizationVpcFlowLogsServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OrganizationVpcFlowLogsServiceBlockingStub(channel, callOptions); + } + }; + return OrganizationVpcFlowLogsServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static OrganizationVpcFlowLogsServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public OrganizationVpcFlowLogsServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OrganizationVpcFlowLogsServiceFutureStub(channel, callOptions); + } + }; + return OrganizationVpcFlowLogsServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
      +   * The VPC Flow Logs organization service in the Google Cloud Network Management
      +   * API provides organization level configurations that generate Flow Logs. The
      +   * service and the configuration resources created using this service are
      +   * global.
      +   * 
      + */ + public interface AsyncService { + + /** + * + * + *
      +     * Lists all `VpcFlowLogsConfigs` in a given organization.
      +     * 
      + */ + default void listVpcFlowLogsConfigs( + com.google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListVpcFlowLogsConfigsMethod(), responseObserver); + } + + /** + * + * + *
      +     * Gets the details of a specific `VpcFlowLogsConfig`.
      +     * 
      + */ + default void getVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1beta1.GetVpcFlowLogsConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetVpcFlowLogsConfigMethod(), responseObserver); + } + + /** + * + * + *
      +     * Creates a new `VpcFlowLogsConfig`.
      +     * If a configuration with the exact same settings already exists (even if the
      +     * ID is different), the creation fails.
      +     * Notes:
      +     *   1. Creating a configuration with `state=DISABLED` will fail
      +     *   2. The following fields are not considered as settings for the purpose
      +     *   of the check mentioned above, therefore - creating another configuration
      +     *   with the same fields but different values for the following fields will
      +     *   fail as well:
      +     *       * name
      +     *       * create_time
      +     *       * update_time
      +     *       * labels
      +     *       * description
      +     * 
      + */ + default void createVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1beta1.CreateVpcFlowLogsConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateVpcFlowLogsConfigMethod(), responseObserver); + } + + /** + * + * + *
      +     * Updates an existing `VpcFlowLogsConfig`.
      +     * If a configuration with the exact same settings already exists (even if the
      +     * ID is different), the creation fails.
      +     * Notes:
      +     *   1. Updating a configuration with `state=DISABLED` will fail
      +     *   2. The following fields are not considered as settings for the purpose
      +     *   of the check mentioned above, therefore - updating another configuration
      +     *   with the same fields but different values for the following fields will
      +     *   fail as well:
      +     *       * name
      +     *       * create_time
      +     *       * update_time
      +     *       * labels
      +     *       * description
      +     * 
      + */ + default void updateVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1beta1.UpdateVpcFlowLogsConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateVpcFlowLogsConfigMethod(), responseObserver); + } + + /** + * + * + *
      +     * Deletes a specific `VpcFlowLogsConfig`.
      +     * 
      + */ + default void deleteVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1beta1.DeleteVpcFlowLogsConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteVpcFlowLogsConfigMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service OrganizationVpcFlowLogsService. + * + *
      +   * The VPC Flow Logs organization service in the Google Cloud Network Management
      +   * API provides organization level configurations that generate Flow Logs. The
      +   * service and the configuration resources created using this service are
      +   * global.
      +   * 
      + */ + public abstract static class OrganizationVpcFlowLogsServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return OrganizationVpcFlowLogsServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service OrganizationVpcFlowLogsService. + * + *
      +   * The VPC Flow Logs organization service in the Google Cloud Network Management
      +   * API provides organization level configurations that generate Flow Logs. The
      +   * service and the configuration resources created using this service are
      +   * global.
      +   * 
      + */ + public static final class OrganizationVpcFlowLogsServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private OrganizationVpcFlowLogsServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected OrganizationVpcFlowLogsServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OrganizationVpcFlowLogsServiceStub(channel, callOptions); + } + + /** + * + * + *
      +     * Lists all `VpcFlowLogsConfigs` in a given organization.
      +     * 
      + */ + public void listVpcFlowLogsConfigs( + com.google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListVpcFlowLogsConfigsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Gets the details of a specific `VpcFlowLogsConfig`.
      +     * 
      + */ + public void getVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1beta1.GetVpcFlowLogsConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetVpcFlowLogsConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Creates a new `VpcFlowLogsConfig`.
      +     * If a configuration with the exact same settings already exists (even if the
      +     * ID is different), the creation fails.
      +     * Notes:
      +     *   1. Creating a configuration with `state=DISABLED` will fail
      +     *   2. The following fields are not considered as settings for the purpose
      +     *   of the check mentioned above, therefore - creating another configuration
      +     *   with the same fields but different values for the following fields will
      +     *   fail as well:
      +     *       * name
      +     *       * create_time
      +     *       * update_time
      +     *       * labels
      +     *       * description
      +     * 
      + */ + public void createVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1beta1.CreateVpcFlowLogsConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateVpcFlowLogsConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Updates an existing `VpcFlowLogsConfig`.
      +     * If a configuration with the exact same settings already exists (even if the
      +     * ID is different), the creation fails.
      +     * Notes:
      +     *   1. Updating a configuration with `state=DISABLED` will fail
      +     *   2. The following fields are not considered as settings for the purpose
      +     *   of the check mentioned above, therefore - updating another configuration
      +     *   with the same fields but different values for the following fields will
      +     *   fail as well:
      +     *       * name
      +     *       * create_time
      +     *       * update_time
      +     *       * labels
      +     *       * description
      +     * 
      + */ + public void updateVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1beta1.UpdateVpcFlowLogsConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateVpcFlowLogsConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Deletes a specific `VpcFlowLogsConfig`.
      +     * 
      + */ + public void deleteVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1beta1.DeleteVpcFlowLogsConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteVpcFlowLogsConfigMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service OrganizationVpcFlowLogsService. + * + *
      +   * The VPC Flow Logs organization service in the Google Cloud Network Management
      +   * API provides organization level configurations that generate Flow Logs. The
      +   * service and the configuration resources created using this service are
      +   * global.
      +   * 
      + */ + public static final class OrganizationVpcFlowLogsServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private OrganizationVpcFlowLogsServiceBlockingV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected OrganizationVpcFlowLogsServiceBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OrganizationVpcFlowLogsServiceBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
      +     * Lists all `VpcFlowLogsConfigs` in a given organization.
      +     * 
      + */ + public com.google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsResponse + listVpcFlowLogsConfigs( + com.google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListVpcFlowLogsConfigsMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Gets the details of a specific `VpcFlowLogsConfig`.
      +     * 
      + */ + public com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig getVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1beta1.GetVpcFlowLogsConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetVpcFlowLogsConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Creates a new `VpcFlowLogsConfig`.
      +     * If a configuration with the exact same settings already exists (even if the
      +     * ID is different), the creation fails.
      +     * Notes:
      +     *   1. Creating a configuration with `state=DISABLED` will fail
      +     *   2. The following fields are not considered as settings for the purpose
      +     *   of the check mentioned above, therefore - creating another configuration
      +     *   with the same fields but different values for the following fields will
      +     *   fail as well:
      +     *       * name
      +     *       * create_time
      +     *       * update_time
      +     *       * labels
      +     *       * description
      +     * 
      + */ + public com.google.longrunning.Operation createVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1beta1.CreateVpcFlowLogsConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateVpcFlowLogsConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Updates an existing `VpcFlowLogsConfig`.
      +     * If a configuration with the exact same settings already exists (even if the
      +     * ID is different), the creation fails.
      +     * Notes:
      +     *   1. Updating a configuration with `state=DISABLED` will fail
      +     *   2. The following fields are not considered as settings for the purpose
      +     *   of the check mentioned above, therefore - updating another configuration
      +     *   with the same fields but different values for the following fields will
      +     *   fail as well:
      +     *       * name
      +     *       * create_time
      +     *       * update_time
      +     *       * labels
      +     *       * description
      +     * 
      + */ + public com.google.longrunning.Operation updateVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1beta1.UpdateVpcFlowLogsConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateVpcFlowLogsConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Deletes a specific `VpcFlowLogsConfig`.
      +     * 
      + */ + public com.google.longrunning.Operation deleteVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1beta1.DeleteVpcFlowLogsConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteVpcFlowLogsConfigMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service + * OrganizationVpcFlowLogsService. + * + *
      +   * The VPC Flow Logs organization service in the Google Cloud Network Management
      +   * API provides organization level configurations that generate Flow Logs. The
      +   * service and the configuration resources created using this service are
      +   * global.
      +   * 
      + */ + public static final class OrganizationVpcFlowLogsServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private OrganizationVpcFlowLogsServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected OrganizationVpcFlowLogsServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OrganizationVpcFlowLogsServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
      +     * Lists all `VpcFlowLogsConfigs` in a given organization.
      +     * 
      + */ + public com.google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsResponse + listVpcFlowLogsConfigs( + com.google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListVpcFlowLogsConfigsMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Gets the details of a specific `VpcFlowLogsConfig`.
      +     * 
      + */ + public com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig getVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1beta1.GetVpcFlowLogsConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetVpcFlowLogsConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Creates a new `VpcFlowLogsConfig`.
      +     * If a configuration with the exact same settings already exists (even if the
      +     * ID is different), the creation fails.
      +     * Notes:
      +     *   1. Creating a configuration with `state=DISABLED` will fail
      +     *   2. The following fields are not considered as settings for the purpose
      +     *   of the check mentioned above, therefore - creating another configuration
      +     *   with the same fields but different values for the following fields will
      +     *   fail as well:
      +     *       * name
      +     *       * create_time
      +     *       * update_time
      +     *       * labels
      +     *       * description
      +     * 
      + */ + public com.google.longrunning.Operation createVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1beta1.CreateVpcFlowLogsConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateVpcFlowLogsConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Updates an existing `VpcFlowLogsConfig`.
      +     * If a configuration with the exact same settings already exists (even if the
      +     * ID is different), the creation fails.
      +     * Notes:
      +     *   1. Updating a configuration with `state=DISABLED` will fail
      +     *   2. The following fields are not considered as settings for the purpose
      +     *   of the check mentioned above, therefore - updating another configuration
      +     *   with the same fields but different values for the following fields will
      +     *   fail as well:
      +     *       * name
      +     *       * create_time
      +     *       * update_time
      +     *       * labels
      +     *       * description
      +     * 
      + */ + public com.google.longrunning.Operation updateVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1beta1.UpdateVpcFlowLogsConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateVpcFlowLogsConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Deletes a specific `VpcFlowLogsConfig`.
      +     * 
      + */ + public com.google.longrunning.Operation deleteVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1beta1.DeleteVpcFlowLogsConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteVpcFlowLogsConfigMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service + * OrganizationVpcFlowLogsService. + * + *
      +   * The VPC Flow Logs organization service in the Google Cloud Network Management
      +   * API provides organization level configurations that generate Flow Logs. The
      +   * service and the configuration resources created using this service are
      +   * global.
      +   * 
      + */ + public static final class OrganizationVpcFlowLogsServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private OrganizationVpcFlowLogsServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected OrganizationVpcFlowLogsServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OrganizationVpcFlowLogsServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
      +     * Lists all `VpcFlowLogsConfigs` in a given organization.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsResponse> + listVpcFlowLogsConfigs( + com.google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListVpcFlowLogsConfigsMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Gets the details of a specific `VpcFlowLogsConfig`.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig> + getVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1beta1.GetVpcFlowLogsConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetVpcFlowLogsConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Creates a new `VpcFlowLogsConfig`.
      +     * If a configuration with the exact same settings already exists (even if the
      +     * ID is different), the creation fails.
      +     * Notes:
      +     *   1. Creating a configuration with `state=DISABLED` will fail
      +     *   2. The following fields are not considered as settings for the purpose
      +     *   of the check mentioned above, therefore - creating another configuration
      +     *   with the same fields but different values for the following fields will
      +     *   fail as well:
      +     *       * name
      +     *       * create_time
      +     *       * update_time
      +     *       * labels
      +     *       * description
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + createVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1beta1.CreateVpcFlowLogsConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateVpcFlowLogsConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Updates an existing `VpcFlowLogsConfig`.
      +     * If a configuration with the exact same settings already exists (even if the
      +     * ID is different), the creation fails.
      +     * Notes:
      +     *   1. Updating a configuration with `state=DISABLED` will fail
      +     *   2. The following fields are not considered as settings for the purpose
      +     *   of the check mentioned above, therefore - updating another configuration
      +     *   with the same fields but different values for the following fields will
      +     *   fail as well:
      +     *       * name
      +     *       * create_time
      +     *       * update_time
      +     *       * labels
      +     *       * description
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + updateVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1beta1.UpdateVpcFlowLogsConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateVpcFlowLogsConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Deletes a specific `VpcFlowLogsConfig`.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + deleteVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1beta1.DeleteVpcFlowLogsConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteVpcFlowLogsConfigMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_VPC_FLOW_LOGS_CONFIGS = 0; + private static final int METHODID_GET_VPC_FLOW_LOGS_CONFIG = 1; + private static final int METHODID_CREATE_VPC_FLOW_LOGS_CONFIG = 2; + private static final int METHODID_UPDATE_VPC_FLOW_LOGS_CONFIG = 3; + private static final int METHODID_DELETE_VPC_FLOW_LOGS_CONFIG = 4; + + 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_LIST_VPC_FLOW_LOGS_CONFIGS: + serviceImpl.listVpcFlowLogsConfigs( + (com.google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsResponse>) + responseObserver); + break; + case METHODID_GET_VPC_FLOW_LOGS_CONFIG: + serviceImpl.getVpcFlowLogsConfig( + (com.google.cloud.networkmanagement.v1beta1.GetVpcFlowLogsConfigRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig>) + responseObserver); + break; + case METHODID_CREATE_VPC_FLOW_LOGS_CONFIG: + serviceImpl.createVpcFlowLogsConfig( + (com.google.cloud.networkmanagement.v1beta1.CreateVpcFlowLogsConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_VPC_FLOW_LOGS_CONFIG: + serviceImpl.updateVpcFlowLogsConfig( + (com.google.cloud.networkmanagement.v1beta1.UpdateVpcFlowLogsConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_VPC_FLOW_LOGS_CONFIG: + serviceImpl.deleteVpcFlowLogsConfig( + (com.google.cloud.networkmanagement.v1beta1.DeleteVpcFlowLogsConfigRequest) 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( + getListVpcFlowLogsConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsRequest, + com.google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsResponse>( + service, METHODID_LIST_VPC_FLOW_LOGS_CONFIGS))) + .addMethod( + getGetVpcFlowLogsConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkmanagement.v1beta1.GetVpcFlowLogsConfigRequest, + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig>( + service, METHODID_GET_VPC_FLOW_LOGS_CONFIG))) + .addMethod( + getCreateVpcFlowLogsConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkmanagement.v1beta1.CreateVpcFlowLogsConfigRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_VPC_FLOW_LOGS_CONFIG))) + .addMethod( + getUpdateVpcFlowLogsConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkmanagement.v1beta1.UpdateVpcFlowLogsConfigRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_VPC_FLOW_LOGS_CONFIG))) + .addMethod( + getDeleteVpcFlowLogsConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkmanagement.v1beta1.DeleteVpcFlowLogsConfigRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_VPC_FLOW_LOGS_CONFIG))) + .build(); + } + + private abstract static class OrganizationVpcFlowLogsServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + OrganizationVpcFlowLogsServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("OrganizationVpcFlowLogsService"); + } + } + + private static final class OrganizationVpcFlowLogsServiceFileDescriptorSupplier + extends OrganizationVpcFlowLogsServiceBaseDescriptorSupplier { + OrganizationVpcFlowLogsServiceFileDescriptorSupplier() {} + } + + private static final class OrganizationVpcFlowLogsServiceMethodDescriptorSupplier + extends OrganizationVpcFlowLogsServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + OrganizationVpcFlowLogsServiceMethodDescriptorSupplier(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 (OrganizationVpcFlowLogsServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor( + new OrganizationVpcFlowLogsServiceFileDescriptorSupplier()) + .addMethod(getListVpcFlowLogsConfigsMethod()) + .addMethod(getGetVpcFlowLogsConfigMethod()) + .addMethod(getCreateVpcFlowLogsConfigMethod()) + .addMethod(getUpdateVpcFlowLogsConfigMethod()) + .addMethod(getDeleteVpcFlowLogsConfigMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-network-management/grpc-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceGrpc.java b/java-network-management/grpc-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceGrpc.java index 3e2f145e48b4..47b9f2d68862 100644 --- a/java-network-management/grpc-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceGrpc.java +++ b/java-network-management/grpc-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceGrpc.java @@ -290,6 +290,63 @@ private VpcFlowLogsServiceGrpc() {} return getDeleteVpcFlowLogsConfigMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest, + com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse> + getQueryOrgVpcFlowLogsConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "QueryOrgVpcFlowLogsConfigs", + requestType = + com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest.class, + responseType = + com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest, + com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse> + getQueryOrgVpcFlowLogsConfigsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest, + com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse> + getQueryOrgVpcFlowLogsConfigsMethod; + if ((getQueryOrgVpcFlowLogsConfigsMethod = + VpcFlowLogsServiceGrpc.getQueryOrgVpcFlowLogsConfigsMethod) + == null) { + synchronized (VpcFlowLogsServiceGrpc.class) { + if ((getQueryOrgVpcFlowLogsConfigsMethod = + VpcFlowLogsServiceGrpc.getQueryOrgVpcFlowLogsConfigsMethod) + == null) { + VpcFlowLogsServiceGrpc.getQueryOrgVpcFlowLogsConfigsMethod = + getQueryOrgVpcFlowLogsConfigsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "QueryOrgVpcFlowLogsConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkmanagement.v1beta1 + .QueryOrgVpcFlowLogsConfigsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkmanagement.v1beta1 + .QueryOrgVpcFlowLogsConfigsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new VpcFlowLogsServiceMethodDescriptorSupplier( + "QueryOrgVpcFlowLogsConfigs")) + .build(); + } + } + } + return getQueryOrgVpcFlowLogsConfigsMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static VpcFlowLogsServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -394,16 +451,16 @@ default void getVpcFlowLogsConfig( * If a configuration with the exact same settings already exists (even if the * ID is different), the creation fails. * Notes: - * 1. Creating a configuration with state=DISABLED will fail. - * 2. The following fields are not considrered as `settings` for the purpose - * of the check mentioned above, therefore - creating another configuration - * with the same fields but different values for the following fields will - * fail as well: - * - name - * - create_time - * - update_time - * - labels - * - description + * 1. Creating a configuration with `state=DISABLED` will fail + * 2. The following fields are not considered as settings for the purpose + * of the check mentioned above, therefore - creating another configuration + * with the same fields but different values for the following fields will + * fail as well: + * * name + * * create_time + * * update_time + * * labels + * * description * */ default void createVpcFlowLogsConfig( @@ -421,15 +478,16 @@ default void createVpcFlowLogsConfig( * If a configuration with the exact same settings already exists (even if the * ID is different), the creation fails. * Notes: - * 1. The following fields are not considrered as `settings` for the purpose - * of the check mentioned above, therefore - updating another configuration - * with the same fields but different values for the following fields will - * fail as well: - * - name - * - create_time - * - update_time - * - labels - * - description + * 1. Updating a configuration with `state=DISABLED` will fail + * 2. The following fields are not considered as settings for the purpose + * of the check mentioned above, therefore - updating another configuration + * with the same fields but different values for the following fields will + * fail as well: + * * name + * * create_time + * * update_time + * * labels + * * description * */ default void updateVpcFlowLogsConfig( @@ -452,6 +510,23 @@ default void deleteVpcFlowLogsConfig( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getDeleteVpcFlowLogsConfigMethod(), responseObserver); } + + /** + * + * + *
      +     * QueryOrgVpcFlowLogsConfigs returns a list of all organization-level VPC
      +     * Flow Logs configurations applicable to the specified project.
      +     * 
      + */ + default void queryOrgVpcFlowLogsConfigs( + com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getQueryOrgVpcFlowLogsConfigsMethod(), responseObserver); + } } /** @@ -536,16 +611,16 @@ public void getVpcFlowLogsConfig( * If a configuration with the exact same settings already exists (even if the * ID is different), the creation fails. * Notes: - * 1. Creating a configuration with state=DISABLED will fail. - * 2. The following fields are not considrered as `settings` for the purpose - * of the check mentioned above, therefore - creating another configuration - * with the same fields but different values for the following fields will - * fail as well: - * - name - * - create_time - * - update_time - * - labels - * - description + * 1. Creating a configuration with `state=DISABLED` will fail + * 2. The following fields are not considered as settings for the purpose + * of the check mentioned above, therefore - creating another configuration + * with the same fields but different values for the following fields will + * fail as well: + * * name + * * create_time + * * update_time + * * labels + * * description * */ public void createVpcFlowLogsConfig( @@ -565,15 +640,16 @@ public void createVpcFlowLogsConfig( * If a configuration with the exact same settings already exists (even if the * ID is different), the creation fails. * Notes: - * 1. The following fields are not considrered as `settings` for the purpose - * of the check mentioned above, therefore - updating another configuration - * with the same fields but different values for the following fields will - * fail as well: - * - name - * - create_time - * - update_time - * - labels - * - description + * 1. Updating a configuration with `state=DISABLED` will fail + * 2. The following fields are not considered as settings for the purpose + * of the check mentioned above, therefore - updating another configuration + * with the same fields but different values for the following fields will + * fail as well: + * * name + * * create_time + * * update_time + * * labels + * * description * */ public void updateVpcFlowLogsConfig( @@ -600,6 +676,25 @@ public void deleteVpcFlowLogsConfig( request, responseObserver); } + + /** + * + * + *
      +     * QueryOrgVpcFlowLogsConfigs returns a list of all organization-level VPC
      +     * Flow Logs configurations applicable to the specified project.
      +     * 
      + */ + public void queryOrgVpcFlowLogsConfigs( + com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getQueryOrgVpcFlowLogsConfigsMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -659,16 +754,16 @@ public com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig getVpcFlowLo * If a configuration with the exact same settings already exists (even if the * ID is different), the creation fails. * Notes: - * 1. Creating a configuration with state=DISABLED will fail. - * 2. The following fields are not considrered as `settings` for the purpose - * of the check mentioned above, therefore - creating another configuration - * with the same fields but different values for the following fields will - * fail as well: - * - name - * - create_time - * - update_time - * - labels - * - description + * 1. Creating a configuration with `state=DISABLED` will fail + * 2. The following fields are not considered as settings for the purpose + * of the check mentioned above, therefore - creating another configuration + * with the same fields but different values for the following fields will + * fail as well: + * * name + * * create_time + * * update_time + * * labels + * * description * */ public com.google.longrunning.Operation createVpcFlowLogsConfig( @@ -685,15 +780,16 @@ public com.google.longrunning.Operation createVpcFlowLogsConfig( * If a configuration with the exact same settings already exists (even if the * ID is different), the creation fails. * Notes: - * 1. The following fields are not considrered as `settings` for the purpose - * of the check mentioned above, therefore - updating another configuration - * with the same fields but different values for the following fields will - * fail as well: - * - name - * - create_time - * - update_time - * - labels - * - description + * 1. Updating a configuration with `state=DISABLED` will fail + * 2. The following fields are not considered as settings for the purpose + * of the check mentioned above, therefore - updating another configuration + * with the same fields but different values for the following fields will + * fail as well: + * * name + * * create_time + * * update_time + * * labels + * * description * */ public com.google.longrunning.Operation updateVpcFlowLogsConfig( @@ -714,6 +810,21 @@ public com.google.longrunning.Operation deleteVpcFlowLogsConfig( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteVpcFlowLogsConfigMethod(), getCallOptions(), request); } + + /** + * + * + *
      +     * QueryOrgVpcFlowLogsConfigs returns a list of all organization-level VPC
      +     * Flow Logs configurations applicable to the specified project.
      +     * 
      + */ + public com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse + queryOrgVpcFlowLogsConfigs( + com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getQueryOrgVpcFlowLogsConfigsMethod(), getCallOptions(), request); + } } /** @@ -773,16 +884,16 @@ public com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig getVpcFlowLo * If a configuration with the exact same settings already exists (even if the * ID is different), the creation fails. * Notes: - * 1. Creating a configuration with state=DISABLED will fail. - * 2. The following fields are not considrered as `settings` for the purpose - * of the check mentioned above, therefore - creating another configuration - * with the same fields but different values for the following fields will - * fail as well: - * - name - * - create_time - * - update_time - * - labels - * - description + * 1. Creating a configuration with `state=DISABLED` will fail + * 2. The following fields are not considered as settings for the purpose + * of the check mentioned above, therefore - creating another configuration + * with the same fields but different values for the following fields will + * fail as well: + * * name + * * create_time + * * update_time + * * labels + * * description * */ public com.google.longrunning.Operation createVpcFlowLogsConfig( @@ -799,15 +910,16 @@ public com.google.longrunning.Operation createVpcFlowLogsConfig( * If a configuration with the exact same settings already exists (even if the * ID is different), the creation fails. * Notes: - * 1. The following fields are not considrered as `settings` for the purpose - * of the check mentioned above, therefore - updating another configuration - * with the same fields but different values for the following fields will - * fail as well: - * - name - * - create_time - * - update_time - * - labels - * - description + * 1. Updating a configuration with `state=DISABLED` will fail + * 2. The following fields are not considered as settings for the purpose + * of the check mentioned above, therefore - updating another configuration + * with the same fields but different values for the following fields will + * fail as well: + * * name + * * create_time + * * update_time + * * labels + * * description * */ public com.google.longrunning.Operation updateVpcFlowLogsConfig( @@ -828,6 +940,21 @@ public com.google.longrunning.Operation deleteVpcFlowLogsConfig( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteVpcFlowLogsConfigMethod(), getCallOptions(), request); } + + /** + * + * + *
      +     * QueryOrgVpcFlowLogsConfigs returns a list of all organization-level VPC
      +     * Flow Logs configurations applicable to the specified project.
      +     * 
      + */ + public com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse + queryOrgVpcFlowLogsConfigs( + com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getQueryOrgVpcFlowLogsConfigsMethod(), getCallOptions(), request); + } } /** @@ -889,16 +1016,16 @@ protected VpcFlowLogsServiceFutureStub build( * If a configuration with the exact same settings already exists (even if the * ID is different), the creation fails. * Notes: - * 1. Creating a configuration with state=DISABLED will fail. - * 2. The following fields are not considrered as `settings` for the purpose - * of the check mentioned above, therefore - creating another configuration - * with the same fields but different values for the following fields will - * fail as well: - * - name - * - create_time - * - update_time - * - labels - * - description + * 1. Creating a configuration with `state=DISABLED` will fail + * 2. The following fields are not considered as settings for the purpose + * of the check mentioned above, therefore - creating another configuration + * with the same fields but different values for the following fields will + * fail as well: + * * name + * * create_time + * * update_time + * * labels + * * description * */ public com.google.common.util.concurrent.ListenableFuture @@ -916,15 +1043,16 @@ protected VpcFlowLogsServiceFutureStub build( * If a configuration with the exact same settings already exists (even if the * ID is different), the creation fails. * Notes: - * 1. The following fields are not considrered as `settings` for the purpose - * of the check mentioned above, therefore - updating another configuration - * with the same fields but different values for the following fields will - * fail as well: - * - name - * - create_time - * - update_time - * - labels - * - description + * 1. Updating a configuration with `state=DISABLED` will fail + * 2. The following fields are not considered as settings for the purpose + * of the check mentioned above, therefore - updating another configuration + * with the same fields but different values for the following fields will + * fail as well: + * * name + * * create_time + * * update_time + * * labels + * * description * */ public com.google.common.util.concurrent.ListenableFuture @@ -947,6 +1075,22 @@ protected VpcFlowLogsServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteVpcFlowLogsConfigMethod(), getCallOptions()), request); } + + /** + * + * + *
      +     * QueryOrgVpcFlowLogsConfigs returns a list of all organization-level VPC
      +     * Flow Logs configurations applicable to the specified project.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse> + queryOrgVpcFlowLogsConfigs( + com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getQueryOrgVpcFlowLogsConfigsMethod(), getCallOptions()), request); + } } private static final int METHODID_LIST_VPC_FLOW_LOGS_CONFIGS = 0; @@ -954,6 +1098,7 @@ protected VpcFlowLogsServiceFutureStub build( private static final int METHODID_CREATE_VPC_FLOW_LOGS_CONFIG = 2; private static final int METHODID_UPDATE_VPC_FLOW_LOGS_CONFIG = 3; private static final int METHODID_DELETE_VPC_FLOW_LOGS_CONFIG = 4; + private static final int METHODID_QUERY_ORG_VPC_FLOW_LOGS_CONFIGS = 5; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1001,6 +1146,15 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.networkmanagement.v1beta1.DeleteVpcFlowLogsConfigRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_QUERY_ORG_VPC_FLOW_LOGS_CONFIGS: + serviceImpl.queryOrgVpcFlowLogsConfigs( + (com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networkmanagement.v1beta1 + .QueryOrgVpcFlowLogsConfigsResponse>) + responseObserver); + break; default: throw new AssertionError(); } @@ -1054,6 +1208,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.networkmanagement.v1beta1.DeleteVpcFlowLogsConfigRequest, com.google.longrunning.Operation>( service, METHODID_DELETE_VPC_FLOW_LOGS_CONFIG))) + .addMethod( + getQueryOrgVpcFlowLogsConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest, + com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse>( + service, METHODID_QUERY_ORG_VPC_FLOW_LOGS_CONFIGS))) .build(); } @@ -1110,6 +1271,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getCreateVpcFlowLogsConfigMethod()) .addMethod(getUpdateVpcFlowLogsConfigMethod()) .addMethod(getDeleteVpcFlowLogsConfigMethod()) + .addMethod(getQueryOrgVpcFlowLogsConfigsMethod()) .build(); } } diff --git a/java-network-management/owlbot.py b/java-network-management/owlbot.py index 2ba8efbf4ebc..091a382f7e60 100644 --- a/java-network-management/owlbot.py +++ b/java-network-management/owlbot.py @@ -18,6 +18,8 @@ v1_file_name = "owl-bot-staging/v1/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/ReachabilityServiceClientHttpJsonTest.java" v1beta1_file_name = "owl-bot-staging/v1beta1/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/ReachabilityServiceClientHttpJsonTest.java" v1beta1_vpcflowlogs_file_name = "owl-bot-staging/v1beta1/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceClientHttpJsonTest.java" +v1_vpcflowlogs_file_name = "owl-bot-staging/v1/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsServiceClientHttpJsonTest.java" +v1beta1_org_vpcflowlogs_file_name = "owl-bot-staging/v1beta1/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/OrganizationVpcFlowLogsServiceClientHttpJsonTest.java" for library in s.get_staging_dirs(): # put any special-case replacements here @@ -101,6 +103,61 @@ r'\s+@Test\n\s+public void testIamPermissionsTest\(\) throws Exception.*', '@Ignore("See: https://github.com/googleapis/sdk-platform-java/issues/1839")@Test\npublic void testIamPermissionsTest() throws Exception {' ) + s.replace( + v1beta1_vpcflowlogs_file_name, + r'\s+@Test\n\s+public void createVpcFlowLogsConfigTest3\(\) throws Exception.*', + '@Ignore("See: https://github.com/googleapis/sdk-platform-java/issues/1839")@Test\npublic void createVpcFlowLogsConfigTest3() throws Exception {' + ) + s.replace( + v1beta1_vpcflowlogs_file_name, + r'\s+@Test\n\s+public void createVpcFlowLogsConfigTest4\(\) throws Exception.*', + '@Ignore("See: https://github.com/googleapis/sdk-platform-java/issues/1839")@Test\npublic void createVpcFlowLogsConfigTest4() throws Exception {' + ) + s.replace( + v1beta1_vpcflowlogs_file_name, + r'\s+@Test\n\s+public void listVpcFlowLogsConfigsTest2\(\) throws Exception.*', + '@Ignore("See: https://github.com/googleapis/sdk-platform-java/issues/1839")@Test\npublic void listVpcFlowLogsConfigsTest2() throws Exception {' + ) + s.replace( + v1_vpcflowlogs_file_name, + r'^import org.junit.Test;', + 'import org.junit.Ignore;\nimport org.junit.Test;' + ) + s.replace( + v1_vpcflowlogs_file_name, + r'\s+@Test\n\s+public void createVpcFlowLogsConfigTest3\(\) throws Exception.*', + '@Ignore("See: https://github.com/googleapis/sdk-platform-java/issues/1839")@Test\npublic void createVpcFlowLogsConfigTest3() throws Exception {' + ) + s.replace( + v1_vpcflowlogs_file_name, + r'\s+@Test\n\s+public void createVpcFlowLogsConfigTest4\(\) throws Exception.*', + '@Ignore("See: https://github.com/googleapis/sdk-platform-java/issues/1839")@Test\npublic void createVpcFlowLogsConfigTest4() throws Exception {' + ) + s.replace( + v1_vpcflowlogs_file_name, + r'\s+@Test\n\s+public void listVpcFlowLogsConfigsTest2\(\) throws Exception.*', + '@Ignore("See: https://github.com/googleapis/sdk-platform-java/issues/1839")@Test\npublic void listVpcFlowLogsConfigsTest2() throws Exception {' + ) + s.replace( + v1beta1_org_vpcflowlogs_file_name, + r'^import org.junit.Test;', + 'import org.junit.Ignore;\nimport org.junit.Test;' + ) + s.replace( + v1beta1_org_vpcflowlogs_file_name, + r'\s+@Test\n\s+public void createVpcFlowLogsConfigTest\(\) throws Exception.*', + '@Ignore("See: https://github.com/googleapis/sdk-platform-java/issues/1839")@Test\npublic void createVpcFlowLogsConfigTest() throws Exception {' + ) + s.replace( + v1beta1_org_vpcflowlogs_file_name, + r'\s+@Test\n\s+public void createVpcFlowLogsConfigTest2\(\) throws Exception.*', + '@Ignore("See: https://github.com/googleapis/sdk-platform-java/issues/1839")@Test\npublic void createVpcFlowLogsConfigTest2() throws Exception {' + ) + s.replace( + v1beta1_org_vpcflowlogs_file_name, + r'\s+@Test\n\s+public void listVpcFlowLogsConfigsTest\(\) throws Exception.*', + '@Ignore("See: https://github.com/googleapis/sdk-platform-java/issues/1839")@Test\npublic void listVpcFlowLogsConfigsTest() throws Exception {' + ) s.move(library) s.remove_staging_dirs() diff --git a/java-network-management/pom.xml b/java-network-management/pom.xml index d00413ca844a..c60d84750bd3 100644 --- a/java-network-management/pom.xml +++ b/java-network-management/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-network-management-parent pom - 1.68.0 + 1.69.0 Google Network Management API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-network-management - 1.68.0 + 1.69.0 com.google.api.grpc grpc-google-cloud-network-management-v1beta1 - 0.70.0 + 0.71.0 com.google.api.grpc grpc-google-cloud-network-management-v1 - 1.68.0 + 1.69.0 com.google.api.grpc proto-google-cloud-network-management-v1beta1 - 0.70.0 + 0.71.0 com.google.api.grpc proto-google-cloud-network-management-v1 - 1.68.0 + 1.69.0
      diff --git a/java-network-management/proto-google-cloud-network-management-v1/pom.xml b/java-network-management/proto-google-cloud-network-management-v1/pom.xml index f15571a63760..9a16dc0c2253 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/pom.xml +++ b/java-network-management/proto-google-cloud-network-management-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-network-management-v1 - 1.68.0 + 1.69.0 proto-google-cloud-network-management-v1 Proto library for google-cloud-network-management com.google.cloud google-cloud-network-management-parent - 1.68.0 + 1.69.0 diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/pom.xml b/java-network-management/proto-google-cloud-network-management-v1beta1/pom.xml index 70f0c7a28217..b7d4e6797d12 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/pom.xml +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-network-management-v1beta1 - 0.70.0 + 0.71.0 proto-google-cloud-network-management-v1beta1 Proto library for google-cloud-network-management com.google.cloud google-cloud-network-management-parent - 1.68.0 + 1.69.0 diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/AbortInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/AbortInfo.java index 539ad6b5b7ad..87681702fd60 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/AbortInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/AbortInfo.java @@ -395,13 +395,24 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * * *
      -     * Aborted because a PSC endpoint selection for the Google-managed service
      +     * Aborted because PSC endpoint selection for the Google-managed service
            * is ambiguous (several PSC endpoints satisfy test input).
            * 
      * * GOOGLE_MANAGED_SERVICE_AMBIGUOUS_PSC_ENDPOINT = 19; */ GOOGLE_MANAGED_SERVICE_AMBIGUOUS_PSC_ENDPOINT(19), + /** + * + * + *
      +     * Aborted because endpoint selection for the Google-managed service is
      +     * ambiguous (several endpoints satisfy test input).
      +     * 
      + * + * GOOGLE_MANAGED_SERVICE_AMBIGUOUS_ENDPOINT = 39; + */ + GOOGLE_MANAGED_SERVICE_AMBIGUOUS_ENDPOINT(39), /** * * @@ -829,7 +840,7 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * * *
      -     * Aborted because a PSC endpoint selection for the Google-managed service
      +     * Aborted because PSC endpoint selection for the Google-managed service
            * is ambiguous (several PSC endpoints satisfy test input).
            * 
      * @@ -837,6 +848,18 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { */ public static final int GOOGLE_MANAGED_SERVICE_AMBIGUOUS_PSC_ENDPOINT_VALUE = 19; + /** + * + * + *
      +     * Aborted because endpoint selection for the Google-managed service is
      +     * ambiguous (several endpoints satisfy test input).
      +     * 
      + * + * GOOGLE_MANAGED_SERVICE_AMBIGUOUS_ENDPOINT = 39; + */ + public static final int GOOGLE_MANAGED_SERVICE_AMBIGUOUS_ENDPOINT_VALUE = 39; + /** * * @@ -1013,6 +1036,8 @@ public static Cause forNumber(int value) { return ROUTE_CONFIG_NOT_FOUND; case 19: return GOOGLE_MANAGED_SERVICE_AMBIGUOUS_PSC_ENDPOINT; + case 39: + return GOOGLE_MANAGED_SERVICE_AMBIGUOUS_ENDPOINT; case 20: return SOURCE_PSC_CLOUD_SQL_UNSUPPORTED; case 34: diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/CreateVpcFlowLogsConfigRequest.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/CreateVpcFlowLogsConfigRequest.java index 306fe3f89772..d39c03d73d51 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/CreateVpcFlowLogsConfigRequest.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/CreateVpcFlowLogsConfigRequest.java @@ -77,8 +77,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
      -   * Required. The parent resource of the VPC Flow Logs configuration to create:
      -   *     `projects/{project_id}/locations/global`
      +   * Required. The parent resource of the VpcFlowLogsConfig to create,
      +   * in one of the following formats:
      +   *
      +   * - For project-level resources: `projects/{project_id}/locations/global`
      +   *
      +   * - For organization-level resources:
      +   * `organizations/{organization_id}/locations/global`
          * 
      * * @@ -104,8 +109,13 @@ public java.lang.String getParent() { * * *
      -   * Required. The parent resource of the VPC Flow Logs configuration to create:
      -   *     `projects/{project_id}/locations/global`
      +   * Required. The parent resource of the VpcFlowLogsConfig to create,
      +   * in one of the following formats:
      +   *
      +   * - For project-level resources: `projects/{project_id}/locations/global`
      +   *
      +   * - For organization-level resources:
      +   * `organizations/{organization_id}/locations/global`
          * 
      * * @@ -678,8 +688,13 @@ public Builder mergeFrom( * * *
      -     * Required. The parent resource of the VPC Flow Logs configuration to create:
      -     *     `projects/{project_id}/locations/global`
      +     * Required. The parent resource of the VpcFlowLogsConfig to create,
      +     * in one of the following formats:
      +     *
      +     * - For project-level resources: `projects/{project_id}/locations/global`
      +     *
      +     * - For organization-level resources:
      +     * `organizations/{organization_id}/locations/global`
            * 
      * * @@ -704,8 +719,13 @@ public java.lang.String getParent() { * * *
      -     * Required. The parent resource of the VPC Flow Logs configuration to create:
      -     *     `projects/{project_id}/locations/global`
      +     * Required. The parent resource of the VpcFlowLogsConfig to create,
      +     * in one of the following formats:
      +     *
      +     * - For project-level resources: `projects/{project_id}/locations/global`
      +     *
      +     * - For organization-level resources:
      +     * `organizations/{organization_id}/locations/global`
            * 
      * * @@ -730,8 +750,13 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
      -     * Required. The parent resource of the VPC Flow Logs configuration to create:
      -     *     `projects/{project_id}/locations/global`
      +     * Required. The parent resource of the VpcFlowLogsConfig to create,
      +     * in one of the following formats:
      +     *
      +     * - For project-level resources: `projects/{project_id}/locations/global`
      +     *
      +     * - For organization-level resources:
      +     * `organizations/{organization_id}/locations/global`
            * 
      * * @@ -755,8 +780,13 @@ public Builder setParent(java.lang.String value) { * * *
      -     * Required. The parent resource of the VPC Flow Logs configuration to create:
      -     *     `projects/{project_id}/locations/global`
      +     * Required. The parent resource of the VpcFlowLogsConfig to create,
      +     * in one of the following formats:
      +     *
      +     * - For project-level resources: `projects/{project_id}/locations/global`
      +     *
      +     * - For organization-level resources:
      +     * `organizations/{organization_id}/locations/global`
            * 
      * * @@ -776,8 +806,13 @@ public Builder clearParent() { * * *
      -     * Required. The parent resource of the VPC Flow Logs configuration to create:
      -     *     `projects/{project_id}/locations/global`
      +     * Required. The parent resource of the VpcFlowLogsConfig to create,
      +     * in one of the following formats:
      +     *
      +     * - For project-level resources: `projects/{project_id}/locations/global`
      +     *
      +     * - For organization-level resources:
      +     * `organizations/{organization_id}/locations/global`
            * 
      * * diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/CreateVpcFlowLogsConfigRequestOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/CreateVpcFlowLogsConfigRequestOrBuilder.java index 531761ae2071..e7c37c95dfb7 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/CreateVpcFlowLogsConfigRequestOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/CreateVpcFlowLogsConfigRequestOrBuilder.java @@ -28,8 +28,13 @@ public interface CreateVpcFlowLogsConfigRequestOrBuilder * * *
      -   * Required. The parent resource of the VPC Flow Logs configuration to create:
      -   *     `projects/{project_id}/locations/global`
      +   * Required. The parent resource of the VpcFlowLogsConfig to create,
      +   * in one of the following formats:
      +   *
      +   * - For project-level resources: `projects/{project_id}/locations/global`
      +   *
      +   * - For organization-level resources:
      +   * `organizations/{organization_id}/locations/global`
          * 
      * * @@ -44,8 +49,13 @@ public interface CreateVpcFlowLogsConfigRequestOrBuilder * * *
      -   * Required. The parent resource of the VPC Flow Logs configuration to create:
      -   *     `projects/{project_id}/locations/global`
      +   * Required. The parent resource of the VpcFlowLogsConfig to create,
      +   * in one of the following formats:
      +   *
      +   * - For project-level resources: `projects/{project_id}/locations/global`
      +   *
      +   * - For organization-level resources:
      +   * `organizations/{organization_id}/locations/global`
          * 
      * * diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DeleteVpcFlowLogsConfigRequest.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DeleteVpcFlowLogsConfigRequest.java index 2fd76b20c99f..f1e1676cdd5d 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DeleteVpcFlowLogsConfigRequest.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DeleteVpcFlowLogsConfigRequest.java @@ -75,8 +75,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
      -   * Required. `VpcFlowLogsConfig` resource name using the form:
      -   *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
      +   * Required. The resource name of the VpcFlowLogsConfig,
      +   * in one of the following formats:
      +   *
      +   * - For a project-level resource:
      +   * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
      +   *
      +   * - For an organization-level resource:
      +   * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
          * 
      * * @@ -102,8 +108,14 @@ public java.lang.String getName() { * * *
      -   * Required. `VpcFlowLogsConfig` resource name using the form:
      -   *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
      +   * Required. The resource name of the VpcFlowLogsConfig,
      +   * in one of the following formats:
      +   *
      +   * - For a project-level resource:
      +   * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
      +   *
      +   * - For an organization-level resource:
      +   * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
          * 
      * * @@ -488,8 +500,14 @@ public Builder mergeFrom( * * *
      -     * Required. `VpcFlowLogsConfig` resource name using the form:
      -     *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
      +     * Required. The resource name of the VpcFlowLogsConfig,
      +     * in one of the following formats:
      +     *
      +     * - For a project-level resource:
      +     * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
      +     *
      +     * - For an organization-level resource:
      +     * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
            * 
      * * @@ -514,8 +532,14 @@ public java.lang.String getName() { * * *
      -     * Required. `VpcFlowLogsConfig` resource name using the form:
      -     *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
      +     * Required. The resource name of the VpcFlowLogsConfig,
      +     * in one of the following formats:
      +     *
      +     * - For a project-level resource:
      +     * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
      +     *
      +     * - For an organization-level resource:
      +     * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
            * 
      * * @@ -540,8 +564,14 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
      -     * Required. `VpcFlowLogsConfig` resource name using the form:
      -     *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
      +     * Required. The resource name of the VpcFlowLogsConfig,
      +     * in one of the following formats:
      +     *
      +     * - For a project-level resource:
      +     * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
      +     *
      +     * - For an organization-level resource:
      +     * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
            * 
      * * @@ -565,8 +595,14 @@ public Builder setName(java.lang.String value) { * * *
      -     * Required. `VpcFlowLogsConfig` resource name using the form:
      -     *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
      +     * Required. The resource name of the VpcFlowLogsConfig,
      +     * in one of the following formats:
      +     *
      +     * - For a project-level resource:
      +     * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
      +     *
      +     * - For an organization-level resource:
      +     * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
            * 
      * * @@ -586,8 +622,14 @@ public Builder clearName() { * * *
      -     * Required. `VpcFlowLogsConfig` resource name using the form:
      -     *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
      +     * Required. The resource name of the VpcFlowLogsConfig,
      +     * in one of the following formats:
      +     *
      +     * - For a project-level resource:
      +     * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
      +     *
      +     * - For an organization-level resource:
      +     * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
            * 
      * * diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DeleteVpcFlowLogsConfigRequestOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DeleteVpcFlowLogsConfigRequestOrBuilder.java index 39e729dc0b21..32420deaf43e 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DeleteVpcFlowLogsConfigRequestOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DeleteVpcFlowLogsConfigRequestOrBuilder.java @@ -28,8 +28,14 @@ public interface DeleteVpcFlowLogsConfigRequestOrBuilder * * *
      -   * Required. `VpcFlowLogsConfig` resource name using the form:
      -   *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
      +   * Required. The resource name of the VpcFlowLogsConfig,
      +   * in one of the following formats:
      +   *
      +   * - For a project-level resource:
      +   * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
      +   *
      +   * - For an organization-level resource:
      +   * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
          * 
      * * @@ -44,8 +50,14 @@ public interface DeleteVpcFlowLogsConfigRequestOrBuilder * * *
      -   * Required. `VpcFlowLogsConfig` resource name using the form:
      -   *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
      +   * Required. The resource name of the VpcFlowLogsConfig,
      +   * in one of the following formats:
      +   *
      +   * - For a project-level resource:
      +   * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
      +   *
      +   * - For an organization-level resource:
      +   * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
          * 
      * * diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DeliverInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DeliverInfo.java index 3827d34ea610..f3842e206317 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DeliverInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DeliverInfo.java @@ -45,6 +45,7 @@ private DeliverInfo() { ipAddress_ = ""; storageBucket_ = ""; pscGoogleApiTarget_ = ""; + googleServiceType_ = 0; } @java.lang.Override @@ -580,6 +581,255 @@ private Target(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.networkmanagement.v1beta1.DeliverInfo.Target) } + /** + * + * + *
      +   * Recognized type of a Google Service.
      +   * 
      + * + * Protobuf enum {@code google.cloud.networkmanagement.v1beta1.DeliverInfo.GoogleServiceType} + */ + public enum GoogleServiceType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +     * Unspecified Google Service.
      +     * 
      + * + * GOOGLE_SERVICE_TYPE_UNSPECIFIED = 0; + */ + GOOGLE_SERVICE_TYPE_UNSPECIFIED(0), + /** + * + * + *
      +     * Identity aware proxy.
      +     * https://cloud.google.com/iap/docs/using-tcp-forwarding
      +     * 
      + * + * IAP = 1; + */ + IAP(1), + /** + * + * + *
      +     * One of two services sharing IP ranges:
      +     * * Load Balancer proxy
      +     * * Centralized Health Check prober
      +     * https://cloud.google.com/load-balancing/docs/firewall-rules
      +     * 
      + * + * GFE_PROXY_OR_HEALTH_CHECK_PROBER = 2; + */ + GFE_PROXY_OR_HEALTH_CHECK_PROBER(2), + /** + * + * + *
      +     * Connectivity from Cloud DNS to forwarding targets or alternate name
      +     * servers that use private routing.
      +     * https://cloud.google.com/dns/docs/zones/forwarding-zones#firewall-rules
      +     * https://cloud.google.com/dns/docs/policies#firewall-rules
      +     * 
      + * + * CLOUD_DNS = 3; + */ + CLOUD_DNS(3), + /** + * + * + *
      +     * private.googleapis.com and restricted.googleapis.com
      +     * 
      + * + * PRIVATE_GOOGLE_ACCESS = 4; + */ + PRIVATE_GOOGLE_ACCESS(4), + /** + * + * + *
      +     * Google API via Serverless VPC Access.
      +     * https://cloud.google.com/vpc/docs/serverless-vpc-access
      +     * 
      + * + * SERVERLESS_VPC_ACCESS = 5; + */ + SERVERLESS_VPC_ACCESS(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
      +     * Unspecified Google Service.
      +     * 
      + * + * GOOGLE_SERVICE_TYPE_UNSPECIFIED = 0; + */ + public static final int GOOGLE_SERVICE_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +     * Identity aware proxy.
      +     * https://cloud.google.com/iap/docs/using-tcp-forwarding
      +     * 
      + * + * IAP = 1; + */ + public static final int IAP_VALUE = 1; + + /** + * + * + *
      +     * One of two services sharing IP ranges:
      +     * * Load Balancer proxy
      +     * * Centralized Health Check prober
      +     * https://cloud.google.com/load-balancing/docs/firewall-rules
      +     * 
      + * + * GFE_PROXY_OR_HEALTH_CHECK_PROBER = 2; + */ + public static final int GFE_PROXY_OR_HEALTH_CHECK_PROBER_VALUE = 2; + + /** + * + * + *
      +     * Connectivity from Cloud DNS to forwarding targets or alternate name
      +     * servers that use private routing.
      +     * https://cloud.google.com/dns/docs/zones/forwarding-zones#firewall-rules
      +     * https://cloud.google.com/dns/docs/policies#firewall-rules
      +     * 
      + * + * CLOUD_DNS = 3; + */ + public static final int CLOUD_DNS_VALUE = 3; + + /** + * + * + *
      +     * private.googleapis.com and restricted.googleapis.com
      +     * 
      + * + * PRIVATE_GOOGLE_ACCESS = 4; + */ + public static final int PRIVATE_GOOGLE_ACCESS_VALUE = 4; + + /** + * + * + *
      +     * Google API via Serverless VPC Access.
      +     * https://cloud.google.com/vpc/docs/serverless-vpc-access
      +     * 
      + * + * SERVERLESS_VPC_ACCESS = 5; + */ + public static final int SERVERLESS_VPC_ACCESS_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static GoogleServiceType 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 GoogleServiceType forNumber(int value) { + switch (value) { + case 0: + return GOOGLE_SERVICE_TYPE_UNSPECIFIED; + case 1: + return IAP; + case 2: + return GFE_PROXY_OR_HEALTH_CHECK_PROBER; + case 3: + return CLOUD_DNS; + case 4: + return PRIVATE_GOOGLE_ACCESS; + case 5: + return SERVERLESS_VPC_ACCESS; + 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 GoogleServiceType findValueByNumber(int number) { + return GoogleServiceType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1beta1.DeliverInfo.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final GoogleServiceType[] VALUES = values(); + + public static GoogleServiceType 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 GoogleServiceType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networkmanagement.v1beta1.DeliverInfo.GoogleServiceType) + } + public static final int TARGET_FIELD_NUMBER = 1; private int target_ = 0; @@ -833,6 +1083,53 @@ public com.google.protobuf.ByteString getPscGoogleApiTargetBytes() { } } + public static final int GOOGLE_SERVICE_TYPE_FIELD_NUMBER = 6; + private int googleServiceType_ = 0; + + /** + * + * + *
      +   * Recognized type of a Google Service the packet is delivered to (if
      +   * applicable).
      +   * 
      + * + * + * .google.cloud.networkmanagement.v1beta1.DeliverInfo.GoogleServiceType google_service_type = 6; + * + * + * @return The enum numeric value on the wire for googleServiceType. + */ + @java.lang.Override + public int getGoogleServiceTypeValue() { + return googleServiceType_; + } + + /** + * + * + *
      +   * Recognized type of a Google Service the packet is delivered to (if
      +   * applicable).
      +   * 
      + * + * + * .google.cloud.networkmanagement.v1beta1.DeliverInfo.GoogleServiceType google_service_type = 6; + * + * + * @return The googleServiceType. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.DeliverInfo.GoogleServiceType + getGoogleServiceType() { + com.google.cloud.networkmanagement.v1beta1.DeliverInfo.GoogleServiceType result = + com.google.cloud.networkmanagement.v1beta1.DeliverInfo.GoogleServiceType.forNumber( + googleServiceType_); + return result == null + ? com.google.cloud.networkmanagement.v1beta1.DeliverInfo.GoogleServiceType.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -864,6 +1161,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscGoogleApiTarget_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, pscGoogleApiTarget_); } + if (googleServiceType_ + != com.google.cloud.networkmanagement.v1beta1.DeliverInfo.GoogleServiceType + .GOOGLE_SERVICE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, googleServiceType_); + } getUnknownFields().writeTo(output); } @@ -890,6 +1193,12 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscGoogleApiTarget_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, pscGoogleApiTarget_); } + if (googleServiceType_ + != com.google.cloud.networkmanagement.v1beta1.DeliverInfo.GoogleServiceType + .GOOGLE_SERVICE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, googleServiceType_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -911,6 +1220,7 @@ public boolean equals(final java.lang.Object obj) { if (!getIpAddress().equals(other.getIpAddress())) return false; if (!getStorageBucket().equals(other.getStorageBucket())) return false; if (!getPscGoogleApiTarget().equals(other.getPscGoogleApiTarget())) return false; + if (googleServiceType_ != other.googleServiceType_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -932,6 +1242,8 @@ public int hashCode() { hash = (53 * hash) + getStorageBucket().hashCode(); hash = (37 * hash) + PSC_GOOGLE_API_TARGET_FIELD_NUMBER; hash = (53 * hash) + getPscGoogleApiTarget().hashCode(); + hash = (37 * hash) + GOOGLE_SERVICE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + googleServiceType_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1078,6 +1390,7 @@ public Builder clear() { ipAddress_ = ""; storageBucket_ = ""; pscGoogleApiTarget_ = ""; + googleServiceType_ = 0; return this; } @@ -1129,6 +1442,9 @@ private void buildPartial0(com.google.cloud.networkmanagement.v1beta1.DeliverInf if (((from_bitField0_ & 0x00000010) != 0)) { result.pscGoogleApiTarget_ = pscGoogleApiTarget_; } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.googleServiceType_ = googleServiceType_; + } } @java.lang.Override @@ -1200,6 +1516,9 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1beta1.DeliverInfo bitField0_ |= 0x00000010; onChanged(); } + if (other.googleServiceType_ != 0) { + setGoogleServiceTypeValue(other.getGoogleServiceTypeValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1256,6 +1575,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 42 + case 48: + { + googleServiceType_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1821,6 +2146,121 @@ public Builder setPscGoogleApiTargetBytes(com.google.protobuf.ByteString value) return this; } + private int googleServiceType_ = 0; + + /** + * + * + *
      +     * Recognized type of a Google Service the packet is delivered to (if
      +     * applicable).
      +     * 
      + * + * + * .google.cloud.networkmanagement.v1beta1.DeliverInfo.GoogleServiceType google_service_type = 6; + * + * + * @return The enum numeric value on the wire for googleServiceType. + */ + @java.lang.Override + public int getGoogleServiceTypeValue() { + return googleServiceType_; + } + + /** + * + * + *
      +     * Recognized type of a Google Service the packet is delivered to (if
      +     * applicable).
      +     * 
      + * + * + * .google.cloud.networkmanagement.v1beta1.DeliverInfo.GoogleServiceType google_service_type = 6; + * + * + * @param value The enum numeric value on the wire for googleServiceType to set. + * @return This builder for chaining. + */ + public Builder setGoogleServiceTypeValue(int value) { + googleServiceType_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Recognized type of a Google Service the packet is delivered to (if
      +     * applicable).
      +     * 
      + * + * + * .google.cloud.networkmanagement.v1beta1.DeliverInfo.GoogleServiceType google_service_type = 6; + * + * + * @return The googleServiceType. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.DeliverInfo.GoogleServiceType + getGoogleServiceType() { + com.google.cloud.networkmanagement.v1beta1.DeliverInfo.GoogleServiceType result = + com.google.cloud.networkmanagement.v1beta1.DeliverInfo.GoogleServiceType.forNumber( + googleServiceType_); + return result == null + ? com.google.cloud.networkmanagement.v1beta1.DeliverInfo.GoogleServiceType.UNRECOGNIZED + : result; + } + + /** + * + * + *
      +     * Recognized type of a Google Service the packet is delivered to (if
      +     * applicable).
      +     * 
      + * + * + * .google.cloud.networkmanagement.v1beta1.DeliverInfo.GoogleServiceType google_service_type = 6; + * + * + * @param value The googleServiceType to set. + * @return This builder for chaining. + */ + public Builder setGoogleServiceType( + com.google.cloud.networkmanagement.v1beta1.DeliverInfo.GoogleServiceType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + googleServiceType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Recognized type of a Google Service the packet is delivered to (if
      +     * applicable).
      +     * 
      + * + * + * .google.cloud.networkmanagement.v1beta1.DeliverInfo.GoogleServiceType google_service_type = 6; + * + * + * @return This builder for chaining. + */ + public Builder clearGoogleServiceType() { + bitField0_ = (bitField0_ & ~0x00000020); + googleServiceType_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DeliverInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DeliverInfoOrBuilder.java index 4cd1c181e750..d2b1b581ec06 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DeliverInfoOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DeliverInfoOrBuilder.java @@ -155,4 +155,36 @@ public interface DeliverInfoOrBuilder * @return The bytes for pscGoogleApiTarget. */ com.google.protobuf.ByteString getPscGoogleApiTargetBytes(); + + /** + * + * + *
      +   * Recognized type of a Google Service the packet is delivered to (if
      +   * applicable).
      +   * 
      + * + * + * .google.cloud.networkmanagement.v1beta1.DeliverInfo.GoogleServiceType google_service_type = 6; + * + * + * @return The enum numeric value on the wire for googleServiceType. + */ + int getGoogleServiceTypeValue(); + + /** + * + * + *
      +   * Recognized type of a Google Service the packet is delivered to (if
      +   * applicable).
      +   * 
      + * + * + * .google.cloud.networkmanagement.v1beta1.DeliverInfo.GoogleServiceType google_service_type = 6; + * + * + * @return The googleServiceType. + */ + com.google.cloud.networkmanagement.v1beta1.DeliverInfo.GoogleServiceType getGoogleServiceType(); } diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DropInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DropInfo.java index 1fe4385d28ab..86c5f1dbe37e 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DropInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DropInfo.java @@ -230,12 +230,24 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * * *
      -     * Packet is sent from the Internet to the private IPv6 address.
      +     * Packet is sent from the Internet or Google service to the private IPv6
      +     * address.
            * 
      * * NO_ROUTE_FROM_INTERNET_TO_PRIVATE_IPV6_ADDRESS = 44; */ NO_ROUTE_FROM_INTERNET_TO_PRIVATE_IPV6_ADDRESS(44), + /** + * + * + *
      +     * Packet is sent from the external IPv6 source address of an instance to
      +     * the private IPv6 address of an instance.
      +     * 
      + * + * NO_ROUTE_FROM_EXTERNAL_IPV6_SOURCE_TO_PRIVATE_IPV6_ADDRESS = 98; + */ + NO_ROUTE_FROM_EXTERNAL_IPV6_SOURCE_TO_PRIVATE_IPV6_ADDRESS(98), /** * * @@ -270,8 +282,9 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * * *
      -     * Instance with only an internal IP address tries to access Google API and
      -     * services, but private Google access is not enabled in the subnet.
      +     * Endpoint with only an internal IP address tries to access Google API and
      +     * services, but Private Google Access is not enabled in the subnet or is
      +     * not applicable.
            * 
      * * PRIVATE_GOOGLE_ACCESS_DISALLOWED = 8; @@ -293,9 +306,8 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * * *
      -     * Instance with only an internal IP address tries to access external hosts,
      -     * but Cloud NAT is not enabled in the subnet, unless special configurations
      -     * on a VM allow this connection.
      +     * Endpoint with only an internal IP address tries to access external hosts,
      +     * but there is no matching Cloud NAT gateway in the subnet.
            * 
      * * NO_EXTERNAL_ADDRESS = 9; @@ -1043,6 +1055,50 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * UNSUPPORTED_ROUTE_MATCHED_FOR_NAT64_DESTINATION = 88; */ UNSUPPORTED_ROUTE_MATCHED_FOR_NAT64_DESTINATION(88), + /** + * + * + *
      +     * Packet could be dropped because hybrid endpoint like a VPN gateway or
      +     * Interconnect is not allowed to send traffic to the Internet.
      +     * 
      + * + * TRAFFIC_FROM_HYBRID_ENDPOINT_TO_INTERNET_DISALLOWED = 89; + */ + TRAFFIC_FROM_HYBRID_ENDPOINT_TO_INTERNET_DISALLOWED(89), + /** + * + * + *
      +     * Packet with destination IP address within the reserved NAT64 range is
      +     * dropped due to no matching NAT gateway in the subnet.
      +     * 
      + * + * NO_MATCHING_NAT64_GATEWAY = 90; + */ + NO_MATCHING_NAT64_GATEWAY(90), + /** + * + * + *
      +     * Packet is dropped due to being sent to a backend of a passthrough load
      +     * balancer that doesn't use the same IP version as the frontend.
      +     * 
      + * + * LOAD_BALANCER_BACKEND_IP_VERSION_MISMATCH = 96; + */ + LOAD_BALANCER_BACKEND_IP_VERSION_MISMATCH(96), + /** + * + * + *
      +     * Packet from the unknown NCC network is dropped due to no known route
      +     * from the source network to the destination IP address.
      +     * 
      + * + * NO_KNOWN_ROUTE_FROM_NCC_NETWORK_TO_DESTINATION = 97; + */ + NO_KNOWN_ROUTE_FROM_NCC_NETWORK_TO_DESTINATION(97), UNRECOGNIZED(-1), ; @@ -1212,13 +1268,26 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * * *
      -     * Packet is sent from the Internet to the private IPv6 address.
      +     * Packet is sent from the Internet or Google service to the private IPv6
      +     * address.
            * 
      * * NO_ROUTE_FROM_INTERNET_TO_PRIVATE_IPV6_ADDRESS = 44; */ public static final int NO_ROUTE_FROM_INTERNET_TO_PRIVATE_IPV6_ADDRESS_VALUE = 44; + /** + * + * + *
      +     * Packet is sent from the external IPv6 source address of an instance to
      +     * the private IPv6 address of an instance.
      +     * 
      + * + * NO_ROUTE_FROM_EXTERNAL_IPV6_SOURCE_TO_PRIVATE_IPV6_ADDRESS = 98; + */ + public static final int NO_ROUTE_FROM_EXTERNAL_IPV6_SOURCE_TO_PRIVATE_IPV6_ADDRESS_VALUE = 98; + /** * * @@ -1256,8 +1325,9 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * * *
      -     * Instance with only an internal IP address tries to access Google API and
      -     * services, but private Google access is not enabled in the subnet.
      +     * Endpoint with only an internal IP address tries to access Google API and
      +     * services, but Private Google Access is not enabled in the subnet or is
      +     * not applicable.
            * 
      * * PRIVATE_GOOGLE_ACCESS_DISALLOWED = 8; @@ -1281,9 +1351,8 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * * *
      -     * Instance with only an internal IP address tries to access external hosts,
      -     * but Cloud NAT is not enabled in the subnet, unless special configurations
      -     * on a VM allow this connection.
      +     * Endpoint with only an internal IP address tries to access external hosts,
      +     * but there is no matching Cloud NAT gateway in the subnet.
            * 
      * * NO_EXTERNAL_ADDRESS = 9; @@ -2099,6 +2168,54 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNSUPPORTED_ROUTE_MATCHED_FOR_NAT64_DESTINATION_VALUE = 88; + /** + * + * + *
      +     * Packet could be dropped because hybrid endpoint like a VPN gateway or
      +     * Interconnect is not allowed to send traffic to the Internet.
      +     * 
      + * + * TRAFFIC_FROM_HYBRID_ENDPOINT_TO_INTERNET_DISALLOWED = 89; + */ + public static final int TRAFFIC_FROM_HYBRID_ENDPOINT_TO_INTERNET_DISALLOWED_VALUE = 89; + + /** + * + * + *
      +     * Packet with destination IP address within the reserved NAT64 range is
      +     * dropped due to no matching NAT gateway in the subnet.
      +     * 
      + * + * NO_MATCHING_NAT64_GATEWAY = 90; + */ + public static final int NO_MATCHING_NAT64_GATEWAY_VALUE = 90; + + /** + * + * + *
      +     * Packet is dropped due to being sent to a backend of a passthrough load
      +     * balancer that doesn't use the same IP version as the frontend.
      +     * 
      + * + * LOAD_BALANCER_BACKEND_IP_VERSION_MISMATCH = 96; + */ + public static final int LOAD_BALANCER_BACKEND_IP_VERSION_MISMATCH_VALUE = 96; + + /** + * + * + *
      +     * Packet from the unknown NCC network is dropped due to no known route
      +     * from the source network to the destination IP address.
      +     * 
      + * + * NO_KNOWN_ROUTE_FROM_NCC_NETWORK_TO_DESTINATION = 97; + */ + public static final int NO_KNOWN_ROUTE_FROM_NCC_NETWORK_TO_DESTINATION_VALUE = 97; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -2153,6 +2270,8 @@ public static Cause forNumber(int value) { return ROUTE_NEXT_HOP_FORWARDING_RULE_TYPE_INVALID; case 44: return NO_ROUTE_FROM_INTERNET_TO_PRIVATE_IPV6_ADDRESS; + case 98: + return NO_ROUTE_FROM_EXTERNAL_IPV6_SOURCE_TO_PRIVATE_IPV6_ADDRESS; case 45: return VPN_TUNNEL_LOCAL_SELECTOR_MISMATCH; case 46: @@ -2299,6 +2418,14 @@ public static Cause forNumber(int value) { return PSC_PORT_MAPPING_WITHOUT_PSC_CONNECTION_UNSUPPORTED; case 88: return UNSUPPORTED_ROUTE_MATCHED_FOR_NAT64_DESTINATION; + case 89: + return TRAFFIC_FROM_HYBRID_ENDPOINT_TO_INTERNET_DISALLOWED; + case 90: + return NO_MATCHING_NAT64_GATEWAY; + case 96: + return LOAD_BALANCER_BACKEND_IP_VERSION_MISMATCH; + case 97: + return NO_KNOWN_ROUTE_FROM_NCC_NETWORK_TO_DESTINATION; default: return null; } diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/Endpoint.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/Endpoint.java index c788fc2481e6..dbac2d088157 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/Endpoint.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/Endpoint.java @@ -1869,6 +1869,36 @@ public interface CloudRunRevisionEndpointOrBuilder * @return The bytes for uri. */ com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
      +     * Output only. The URI of the Cloud Run service that the revision belongs
      +     * to. The format is:
      +     * projects/{project}/locations/{location}/services/{service}
      +     * 
      + * + * string service_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The serviceUri. + */ + java.lang.String getServiceUri(); + + /** + * + * + *
      +     * Output only. The URI of the Cloud Run service that the revision belongs
      +     * to. The format is:
      +     * projects/{project}/locations/{location}/services/{service}
      +     * 
      + * + * string service_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for serviceUri. + */ + com.google.protobuf.ByteString getServiceUriBytes(); } /** @@ -1893,6 +1923,7 @@ private CloudRunRevisionEndpoint(com.google.protobuf.GeneratedMessageV3.Builder< private CloudRunRevisionEndpoint() { uri_ = ""; + serviceUri_ = ""; } @java.lang.Override @@ -1976,6 +2007,63 @@ public com.google.protobuf.ByteString getUriBytes() { } } + public static final int SERVICE_URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceUri_ = ""; + + /** + * + * + *
      +     * Output only. The URI of the Cloud Run service that the revision belongs
      +     * to. The format is:
      +     * projects/{project}/locations/{location}/services/{service}
      +     * 
      + * + * string service_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The serviceUri. + */ + @java.lang.Override + public java.lang.String getServiceUri() { + java.lang.Object ref = serviceUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceUri_ = s; + return s; + } + } + + /** + * + * + *
      +     * Output only. The URI of the Cloud Run service that the revision belongs
      +     * to. The format is:
      +     * projects/{project}/locations/{location}/services/{service}
      +     * 
      + * + * string service_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for serviceUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceUriBytes() { + java.lang.Object ref = serviceUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1993,6 +2081,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, serviceUri_); + } getUnknownFields().writeTo(output); } @@ -2005,6 +2096,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, serviceUri_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2024,6 +2118,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint) obj; if (!getUri().equals(other.getUri())) return false; + if (!getServiceUri().equals(other.getServiceUri())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2037,6 +2132,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + URI_FIELD_NUMBER; hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + SERVICE_URI_FIELD_NUMBER; + hash = (53 * hash) + getServiceUri().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2190,6 +2287,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; uri_ = ""; + serviceUri_ = ""; return this; } @@ -2234,6 +2332,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000001) != 0)) { result.uri_ = uri_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.serviceUri_ = serviceUri_; + } } @java.lang.Override @@ -2294,6 +2395,11 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; onChanged(); } + if (!other.getServiceUri().isEmpty()) { + serviceUri_ = other.serviceUri_; + bitField0_ |= 0x00000002; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2326,6 +2432,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 18: + { + serviceUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2471,6 +2583,127 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object serviceUri_ = ""; + + /** + * + * + *
      +       * Output only. The URI of the Cloud Run service that the revision belongs
      +       * to. The format is:
      +       * projects/{project}/locations/{location}/services/{service}
      +       * 
      + * + * string service_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The serviceUri. + */ + public java.lang.String getServiceUri() { + java.lang.Object ref = serviceUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +       * Output only. The URI of the Cloud Run service that the revision belongs
      +       * to. The format is:
      +       * projects/{project}/locations/{location}/services/{service}
      +       * 
      + * + * string service_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for serviceUri. + */ + public com.google.protobuf.ByteString getServiceUriBytes() { + java.lang.Object ref = serviceUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +       * Output only. The URI of the Cloud Run service that the revision belongs
      +       * to. The format is:
      +       * projects/{project}/locations/{location}/services/{service}
      +       * 
      + * + * string service_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The serviceUri to set. + * @return This builder for chaining. + */ + public Builder setServiceUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serviceUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Output only. The URI of the Cloud Run service that the revision belongs
      +       * to. The format is:
      +       * projects/{project}/locations/{location}/services/{service}
      +       * 
      + * + * string service_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearServiceUri() { + serviceUri_ = getDefaultInstance().getServiceUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +       * Output only. The URI of the Cloud Run service that the revision belongs
      +       * to. The format is:
      +       * projects/{project}/locations/{location}/services/{service}
      +       * 
      + * + * string service_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for serviceUri to set. + * @return This builder for chaining. + */ + public Builder setServiceUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/FirewallInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/FirewallInfo.java index 56158cd9c0c6..2e7f8b00541a 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/FirewallInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/FirewallInfo.java @@ -1027,6 +1027,27 @@ public int getFirewallRuleTypeValue() { : result; } + public static final int POLICY_PRIORITY_FIELD_NUMBER = 12; + private int policyPriority_ = 0; + + /** + * + * + *
      +   * The priority of the firewall policy that this rule is associated with.
      +   * This field is not applicable to VPC firewall rules and implied VPC firewall
      +   * rules.
      +   * 
      + * + * int32 policy_priority = 12; + * + * @return The policyPriority. + */ + @java.lang.Override + public int getPolicyPriority() { + return policyPriority_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1078,6 +1099,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, policyUri_); } + if (policyPriority_ != 0) { + output.writeInt32(12, policyPriority_); + } getUnknownFields().writeTo(output); } @@ -1133,6 +1157,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, policyUri_); } + if (policyPriority_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(12, policyPriority_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1160,6 +1187,7 @@ public boolean equals(final java.lang.Object obj) { if (!getPolicy().equals(other.getPolicy())) return false; if (!getPolicyUri().equals(other.getPolicyUri())) return false; if (firewallRuleType_ != other.firewallRuleType_) return false; + if (getPolicyPriority() != other.getPolicyPriority()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1197,6 +1225,8 @@ public int hashCode() { hash = (53 * hash) + getPolicyUri().hashCode(); hash = (37 * hash) + FIREWALL_RULE_TYPE_FIELD_NUMBER; hash = (53 * hash) + firewallRuleType_; + hash = (37 * hash) + POLICY_PRIORITY_FIELD_NUMBER; + hash = (53 * hash) + getPolicyPriority(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1350,6 +1380,7 @@ public Builder clear() { policy_ = ""; policyUri_ = ""; firewallRuleType_ = 0; + policyPriority_ = 0; return this; } @@ -1421,6 +1452,9 @@ private void buildPartial0(com.google.cloud.networkmanagement.v1beta1.FirewallIn if (((from_bitField0_ & 0x00000400) != 0)) { result.firewallRuleType_ = firewallRuleType_; } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.policyPriority_ = policyPriority_; + } } @java.lang.Override @@ -1530,6 +1564,9 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1beta1.FirewallInfo if (other.firewallRuleType_ != 0) { setFirewallRuleTypeValue(other.getFirewallRuleTypeValue()); } + if (other.getPolicyPriority() != 0) { + setPolicyPriority(other.getPolicyPriority()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1624,6 +1661,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000200; break; } // case 90 + case 96: + { + policyPriority_ = input.readInt32(); + bitField0_ |= 0x00000800; + break; + } // case 96 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2997,6 +3040,68 @@ public Builder clearFirewallRuleType() { return this; } + private int policyPriority_; + + /** + * + * + *
      +     * The priority of the firewall policy that this rule is associated with.
      +     * This field is not applicable to VPC firewall rules and implied VPC firewall
      +     * rules.
      +     * 
      + * + * int32 policy_priority = 12; + * + * @return The policyPriority. + */ + @java.lang.Override + public int getPolicyPriority() { + return policyPriority_; + } + + /** + * + * + *
      +     * The priority of the firewall policy that this rule is associated with.
      +     * This field is not applicable to VPC firewall rules and implied VPC firewall
      +     * rules.
      +     * 
      + * + * int32 policy_priority = 12; + * + * @param value The policyPriority to set. + * @return This builder for chaining. + */ + public Builder setPolicyPriority(int value) { + + policyPriority_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The priority of the firewall policy that this rule is associated with.
      +     * This field is not applicable to VPC firewall rules and implied VPC firewall
      +     * rules.
      +     * 
      + * + * int32 policy_priority = 12; + * + * @return This builder for chaining. + */ + public Builder clearPolicyPriority() { + bitField0_ = (bitField0_ & ~0x00000800); + policyPriority_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/FirewallInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/FirewallInfoOrBuilder.java index da40564e0a8f..f641de03918e 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/FirewallInfoOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/FirewallInfoOrBuilder.java @@ -374,4 +374,19 @@ public interface FirewallInfoOrBuilder * @return The firewallRuleType. */ com.google.cloud.networkmanagement.v1beta1.FirewallInfo.FirewallRuleType getFirewallRuleType(); + + /** + * + * + *
      +   * The priority of the firewall policy that this rule is associated with.
      +   * This field is not applicable to VPC firewall rules and implied VPC firewall
      +   * rules.
      +   * 
      + * + * int32 policy_priority = 12; + * + * @return The policyPriority. + */ + int getPolicyPriority(); } diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ForwardInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ForwardInfo.java index f8d43ac0cd8d..27aeec71330e 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ForwardInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ForwardInfo.java @@ -178,6 +178,16 @@ public enum Target implements com.google.protobuf.ProtocolMessageEnum { * ROUTER_APPLIANCE = 9; */ ROUTER_APPLIANCE(9), + /** + * + * + *
      +     * Forwarded to a Secure Web Proxy Gateway.
      +     * 
      + * + * SECURE_WEB_PROXY_GATEWAY = 10; + */ + SECURE_WEB_PROXY_GATEWAY(10), UNRECOGNIZED(-1), ; @@ -291,6 +301,17 @@ public enum Target implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ROUTER_APPLIANCE_VALUE = 9; + /** + * + * + *
      +     * Forwarded to a Secure Web Proxy Gateway.
      +     * 
      + * + * SECURE_WEB_PROXY_GATEWAY = 10; + */ + public static final int SECURE_WEB_PROXY_GATEWAY_VALUE = 10; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -335,6 +356,8 @@ public static Target forNumber(int value) { return NCC_HUB; case 9: return ROUTER_APPLIANCE; + case 10: + return SECURE_WEB_PROXY_GATEWAY; default: return null; } diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/GetVpcFlowLogsConfigRequest.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/GetVpcFlowLogsConfigRequest.java index ececd455e88b..3205728ff854 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/GetVpcFlowLogsConfigRequest.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/GetVpcFlowLogsConfigRequest.java @@ -73,8 +73,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
      -   * Required. `VpcFlowLogsConfig` resource name using the form:
      -   *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
      +   * Required. The resource name of the VpcFlowLogsConfig,
      +   * in one of the following formats:
      +   *
      +   * - For project-level resources:
      +   * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
      +   *
      +   * - For organization-level resources:
      +   * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
          * 
      * * @@ -100,8 +106,14 @@ public java.lang.String getName() { * * *
      -   * Required. `VpcFlowLogsConfig` resource name using the form:
      -   *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
      +   * Required. The resource name of the VpcFlowLogsConfig,
      +   * in one of the following formats:
      +   *
      +   * - For project-level resources:
      +   * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
      +   *
      +   * - For organization-level resources:
      +   * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
          * 
      * * @@ -482,8 +494,14 @@ public Builder mergeFrom( * * *
      -     * Required. `VpcFlowLogsConfig` resource name using the form:
      -     *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
      +     * Required. The resource name of the VpcFlowLogsConfig,
      +     * in one of the following formats:
      +     *
      +     * - For project-level resources:
      +     * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
      +     *
      +     * - For organization-level resources:
      +     * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
            * 
      * * @@ -508,8 +526,14 @@ public java.lang.String getName() { * * *
      -     * Required. `VpcFlowLogsConfig` resource name using the form:
      -     *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
      +     * Required. The resource name of the VpcFlowLogsConfig,
      +     * in one of the following formats:
      +     *
      +     * - For project-level resources:
      +     * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
      +     *
      +     * - For organization-level resources:
      +     * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
            * 
      * * @@ -534,8 +558,14 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
      -     * Required. `VpcFlowLogsConfig` resource name using the form:
      -     *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
      +     * Required. The resource name of the VpcFlowLogsConfig,
      +     * in one of the following formats:
      +     *
      +     * - For project-level resources:
      +     * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
      +     *
      +     * - For organization-level resources:
      +     * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
            * 
      * * @@ -559,8 +589,14 @@ public Builder setName(java.lang.String value) { * * *
      -     * Required. `VpcFlowLogsConfig` resource name using the form:
      -     *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
      +     * Required. The resource name of the VpcFlowLogsConfig,
      +     * in one of the following formats:
      +     *
      +     * - For project-level resources:
      +     * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
      +     *
      +     * - For organization-level resources:
      +     * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
            * 
      * * @@ -580,8 +616,14 @@ public Builder clearName() { * * *
      -     * Required. `VpcFlowLogsConfig` resource name using the form:
      -     *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
      +     * Required. The resource name of the VpcFlowLogsConfig,
      +     * in one of the following formats:
      +     *
      +     * - For project-level resources:
      +     * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
      +     *
      +     * - For organization-level resources:
      +     * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
            * 
      * * diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/GetVpcFlowLogsConfigRequestOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/GetVpcFlowLogsConfigRequestOrBuilder.java index 65541c569ce7..226220d5bcc8 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/GetVpcFlowLogsConfigRequestOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/GetVpcFlowLogsConfigRequestOrBuilder.java @@ -28,8 +28,14 @@ public interface GetVpcFlowLogsConfigRequestOrBuilder * * *
      -   * Required. `VpcFlowLogsConfig` resource name using the form:
      -   *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
      +   * Required. The resource name of the VpcFlowLogsConfig,
      +   * in one of the following formats:
      +   *
      +   * - For project-level resources:
      +   * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
      +   *
      +   * - For organization-level resources:
      +   * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
          * 
      * * @@ -44,8 +50,14 @@ public interface GetVpcFlowLogsConfigRequestOrBuilder * * *
      -   * Required. `VpcFlowLogsConfig` resource name using the form:
      -   *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
      +   * Required. The resource name of the VpcFlowLogsConfig,
      +   * in one of the following formats:
      +   *
      +   * - For project-level resources:
      +   * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
      +   *
      +   * - For organization-level resources:
      +   * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
          * 
      * * diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InstanceInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InstanceInfo.java index 8e54a8b1513e..7c8f72afe103 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InstanceInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InstanceInfo.java @@ -49,6 +49,7 @@ private InstanceInfo() { networkTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); serviceAccount_ = ""; pscNetworkAttachmentUri_ = ""; + status_ = 0; } @java.lang.Override @@ -72,6 +73,168 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.networkmanagement.v1beta1.InstanceInfo.Builder.class); } + /** + * + * + *
      +   * The status of the instance. We treat all states other than "RUNNING" as
      +   * not running.
      +   * 
      + * + * Protobuf enum {@code google.cloud.networkmanagement.v1beta1.InstanceInfo.Status} + */ + public enum Status implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +     * Default unspecified value.
      +     * 
      + * + * STATUS_UNSPECIFIED = 0; + */ + STATUS_UNSPECIFIED(0), + /** + * + * + *
      +     * The instance is running.
      +     * 
      + * + * RUNNING = 1; + */ + RUNNING(1), + /** + * + * + *
      +     * The instance has any status other than "RUNNING".
      +     * 
      + * + * NOT_RUNNING = 2; + */ + NOT_RUNNING(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
      +     * Default unspecified value.
      +     * 
      + * + * STATUS_UNSPECIFIED = 0; + */ + public static final int STATUS_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +     * The instance is running.
      +     * 
      + * + * RUNNING = 1; + */ + public static final int RUNNING_VALUE = 1; + + /** + * + * + *
      +     * The instance has any status other than "RUNNING".
      +     * 
      + * + * NOT_RUNNING = 2; + */ + public static final int NOT_RUNNING_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 Status 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 Status forNumber(int value) { + switch (value) { + case 0: + return STATUS_UNSPECIFIED; + case 1: + return RUNNING; + case 2: + return NOT_RUNNING; + 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 Status findValueByNumber(int number) { + return Status.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1beta1.InstanceInfo.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Status[] VALUES = values(); + + public static Status 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 Status(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networkmanagement.v1beta1.InstanceInfo.Status) + } + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -473,7 +636,7 @@ public com.google.protobuf.ByteString getNetworkTagsBytes(int index) { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is deprecated. - * See google/cloud/networkmanagement/v1beta1/trace.proto;l=340 + * See google/cloud/networkmanagement/v1beta1/trace.proto;l=353 * @return The serviceAccount. */ @java.lang.Override @@ -500,7 +663,7 @@ public java.lang.String getServiceAccount() { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is deprecated. - * See google/cloud/networkmanagement/v1beta1/trace.proto;l=340 + * See google/cloud/networkmanagement/v1beta1/trace.proto;l=353 * @return The bytes for serviceAccount. */ @java.lang.Override @@ -570,6 +733,68 @@ public com.google.protobuf.ByteString getPscNetworkAttachmentUriBytes() { } } + public static final int RUNNING_FIELD_NUMBER = 10; + private boolean running_ = false; + + /** + * + * + *
      +   * Indicates whether the Compute Engine instance is running.
      +   * Deprecated: use the `status` field instead.
      +   * 
      + * + * bool running = 10 [deprecated = true]; + * + * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.running is deprecated. See + * google/cloud/networkmanagement/v1beta1/trace.proto;l=360 + * @return The running. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean getRunning() { + return running_; + } + + public static final int STATUS_FIELD_NUMBER = 11; + private int status_ = 0; + + /** + * + * + *
      +   * The status of the instance.
      +   * 
      + * + * .google.cloud.networkmanagement.v1beta1.InstanceInfo.Status status = 11; + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + + /** + * + * + *
      +   * The status of the instance.
      +   * 
      + * + * .google.cloud.networkmanagement.v1beta1.InstanceInfo.Status status = 11; + * + * @return The status. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.InstanceInfo.Status getStatus() { + com.google.cloud.networkmanagement.v1beta1.InstanceInfo.Status result = + com.google.cloud.networkmanagement.v1beta1.InstanceInfo.Status.forNumber(status_); + return result == null + ? com.google.cloud.networkmanagement.v1beta1.InstanceInfo.Status.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -611,6 +836,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscNetworkAttachmentUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, pscNetworkAttachmentUri_); } + if (running_ != false) { + output.writeBool(10, running_); + } + if (status_ + != com.google.cloud.networkmanagement.v1beta1.InstanceInfo.Status.STATUS_UNSPECIFIED + .getNumber()) { + output.writeEnum(11, status_); + } getUnknownFields().writeTo(output); } @@ -652,6 +885,14 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscNetworkAttachmentUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, pscNetworkAttachmentUri_); } + if (running_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, running_); + } + if (status_ + != com.google.cloud.networkmanagement.v1beta1.InstanceInfo.Status.STATUS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, status_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -677,6 +918,8 @@ public boolean equals(final java.lang.Object obj) { if (!getNetworkTagsList().equals(other.getNetworkTagsList())) return false; if (!getServiceAccount().equals(other.getServiceAccount())) return false; if (!getPscNetworkAttachmentUri().equals(other.getPscNetworkAttachmentUri())) return false; + if (getRunning() != other.getRunning()) return false; + if (status_ != other.status_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -708,6 +951,10 @@ public int hashCode() { hash = (53 * hash) + getServiceAccount().hashCode(); hash = (37 * hash) + PSC_NETWORK_ATTACHMENT_URI_FIELD_NUMBER; hash = (53 * hash) + getPscNetworkAttachmentUri().hashCode(); + hash = (37 * hash) + RUNNING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRunning()); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -858,6 +1105,8 @@ public Builder clear() { networkTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); serviceAccount_ = ""; pscNetworkAttachmentUri_ = ""; + running_ = false; + status_ = 0; return this; } @@ -922,6 +1171,12 @@ private void buildPartial0(com.google.cloud.networkmanagement.v1beta1.InstanceIn if (((from_bitField0_ & 0x00000100) != 0)) { result.pscNetworkAttachmentUri_ = pscNetworkAttachmentUri_; } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.running_ = running_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.status_ = status_; + } } @java.lang.Override @@ -1020,6 +1275,12 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1beta1.InstanceInfo bitField0_ |= 0x00000100; onChanged(); } + if (other.getRunning() != false) { + setRunning(other.getRunning()); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1101,6 +1362,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000100; break; } // case 74 + case 80: + { + running_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 88: + { + status_ = input.readEnum(); + bitField0_ |= 0x00000400; + break; + } // case 88 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1981,7 +2254,7 @@ public Builder addNetworkTagsBytes(com.google.protobuf.ByteString value) { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=340 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=353 * @return The serviceAccount. */ @java.lang.Deprecated @@ -2007,7 +2280,7 @@ public java.lang.String getServiceAccount() { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=340 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=353 * @return The bytes for serviceAccount. */ @java.lang.Deprecated @@ -2033,7 +2306,7 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=340 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=353 * @param value The serviceAccount to set. * @return This builder for chaining. */ @@ -2058,7 +2331,7 @@ public Builder setServiceAccount(java.lang.String value) { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=340 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=353 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2079,7 +2352,7 @@ public Builder clearServiceAccount() { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=340 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=353 * @param value The bytes for serviceAccount to set. * @return This builder for chaining. */ @@ -2206,6 +2479,171 @@ public Builder setPscNetworkAttachmentUriBytes(com.google.protobuf.ByteString va return this; } + private boolean running_; + + /** + * + * + *
      +     * Indicates whether the Compute Engine instance is running.
      +     * Deprecated: use the `status` field instead.
      +     * 
      + * + * bool running = 10 [deprecated = true]; + * + * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.running is deprecated. See + * google/cloud/networkmanagement/v1beta1/trace.proto;l=360 + * @return The running. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean getRunning() { + return running_; + } + + /** + * + * + *
      +     * Indicates whether the Compute Engine instance is running.
      +     * Deprecated: use the `status` field instead.
      +     * 
      + * + * bool running = 10 [deprecated = true]; + * + * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.running is deprecated. See + * google/cloud/networkmanagement/v1beta1/trace.proto;l=360 + * @param value The running to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setRunning(boolean value) { + + running_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Indicates whether the Compute Engine instance is running.
      +     * Deprecated: use the `status` field instead.
      +     * 
      + * + * bool running = 10 [deprecated = true]; + * + * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.running is deprecated. See + * google/cloud/networkmanagement/v1beta1/trace.proto;l=360 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearRunning() { + bitField0_ = (bitField0_ & ~0x00000200); + running_ = false; + onChanged(); + return this; + } + + private int status_ = 0; + + /** + * + * + *
      +     * The status of the instance.
      +     * 
      + * + * .google.cloud.networkmanagement.v1beta1.InstanceInfo.Status status = 11; + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + + /** + * + * + *
      +     * The status of the instance.
      +     * 
      + * + * .google.cloud.networkmanagement.v1beta1.InstanceInfo.Status status = 11; + * + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + status_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The status of the instance.
      +     * 
      + * + * .google.cloud.networkmanagement.v1beta1.InstanceInfo.Status status = 11; + * + * @return The status. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.InstanceInfo.Status getStatus() { + com.google.cloud.networkmanagement.v1beta1.InstanceInfo.Status result = + com.google.cloud.networkmanagement.v1beta1.InstanceInfo.Status.forNumber(status_); + return result == null + ? com.google.cloud.networkmanagement.v1beta1.InstanceInfo.Status.UNRECOGNIZED + : result; + } + + /** + * + * + *
      +     * The status of the instance.
      +     * 
      + * + * .google.cloud.networkmanagement.v1beta1.InstanceInfo.Status status = 11; + * + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(com.google.cloud.networkmanagement.v1beta1.InstanceInfo.Status value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000400; + status_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * The status of the instance.
      +     * 
      + * + * .google.cloud.networkmanagement.v1beta1.InstanceInfo.Status status = 11; + * + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000400); + status_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InstanceInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InstanceInfoOrBuilder.java index b3f482103ff1..a6d1b1e728f8 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InstanceInfoOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InstanceInfoOrBuilder.java @@ -244,7 +244,7 @@ public interface InstanceInfoOrBuilder * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is deprecated. - * See google/cloud/networkmanagement/v1beta1/trace.proto;l=340 + * See google/cloud/networkmanagement/v1beta1/trace.proto;l=353 * @return The serviceAccount. */ @java.lang.Deprecated @@ -260,7 +260,7 @@ public interface InstanceInfoOrBuilder * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is deprecated. - * See google/cloud/networkmanagement/v1beta1/trace.proto;l=340 + * See google/cloud/networkmanagement/v1beta1/trace.proto;l=353 * @return The bytes for serviceAccount. */ @java.lang.Deprecated @@ -291,4 +291,47 @@ public interface InstanceInfoOrBuilder * @return The bytes for pscNetworkAttachmentUri. */ com.google.protobuf.ByteString getPscNetworkAttachmentUriBytes(); + + /** + * + * + *
      +   * Indicates whether the Compute Engine instance is running.
      +   * Deprecated: use the `status` field instead.
      +   * 
      + * + * bool running = 10 [deprecated = true]; + * + * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.running is deprecated. See + * google/cloud/networkmanagement/v1beta1/trace.proto;l=360 + * @return The running. + */ + @java.lang.Deprecated + boolean getRunning(); + + /** + * + * + *
      +   * The status of the instance.
      +   * 
      + * + * .google.cloud.networkmanagement.v1beta1.InstanceInfo.Status status = 11; + * + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + + /** + * + * + *
      +   * The status of the instance.
      +   * 
      + * + * .google.cloud.networkmanagement.v1beta1.InstanceInfo.Status status = 11; + * + * @return The status. + */ + com.google.cloud.networkmanagement.v1beta1.InstanceInfo.Status getStatus(); } diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ListVpcFlowLogsConfigsRequest.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ListVpcFlowLogsConfigsRequest.java index 7e39b0aa9ba1..df96edad7952 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ListVpcFlowLogsConfigsRequest.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ListVpcFlowLogsConfigsRequest.java @@ -76,8 +76,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
      -   * Required. The parent resource of the VpcFlowLogsConfig:
      -   *     `projects/{project_id}/locations/global`
      +   * Required. The parent resource of the VpcFlowLogsConfig,
      +   * in one of the following formats:
      +   *
      +   * - For project-level resourcs: `projects/{project_id}/locations/global`
      +   *
      +   * - For organization-level resources:
      +   * `organizations/{organization_id}/locations/global`
          * 
      * * @@ -103,8 +108,13 @@ public java.lang.String getParent() { * * *
      -   * Required. The parent resource of the VpcFlowLogsConfig:
      -   *     `projects/{project_id}/locations/global`
      +   * Required. The parent resource of the VpcFlowLogsConfig,
      +   * in one of the following formats:
      +   *
      +   * - For project-level resourcs: `projects/{project_id}/locations/global`
      +   *
      +   * - For organization-level resources:
      +   * `organizations/{organization_id}/locations/global`
          * 
      * * @@ -766,8 +776,13 @@ public Builder mergeFrom( * * *
      -     * Required. The parent resource of the VpcFlowLogsConfig:
      -     *     `projects/{project_id}/locations/global`
      +     * Required. The parent resource of the VpcFlowLogsConfig,
      +     * in one of the following formats:
      +     *
      +     * - For project-level resourcs: `projects/{project_id}/locations/global`
      +     *
      +     * - For organization-level resources:
      +     * `organizations/{organization_id}/locations/global`
            * 
      * * @@ -792,8 +807,13 @@ public java.lang.String getParent() { * * *
      -     * Required. The parent resource of the VpcFlowLogsConfig:
      -     *     `projects/{project_id}/locations/global`
      +     * Required. The parent resource of the VpcFlowLogsConfig,
      +     * in one of the following formats:
      +     *
      +     * - For project-level resourcs: `projects/{project_id}/locations/global`
      +     *
      +     * - For organization-level resources:
      +     * `organizations/{organization_id}/locations/global`
            * 
      * * @@ -818,8 +838,13 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
      -     * Required. The parent resource of the VpcFlowLogsConfig:
      -     *     `projects/{project_id}/locations/global`
      +     * Required. The parent resource of the VpcFlowLogsConfig,
      +     * in one of the following formats:
      +     *
      +     * - For project-level resourcs: `projects/{project_id}/locations/global`
      +     *
      +     * - For organization-level resources:
      +     * `organizations/{organization_id}/locations/global`
            * 
      * * @@ -843,8 +868,13 @@ public Builder setParent(java.lang.String value) { * * *
      -     * Required. The parent resource of the VpcFlowLogsConfig:
      -     *     `projects/{project_id}/locations/global`
      +     * Required. The parent resource of the VpcFlowLogsConfig,
      +     * in one of the following formats:
      +     *
      +     * - For project-level resourcs: `projects/{project_id}/locations/global`
      +     *
      +     * - For organization-level resources:
      +     * `organizations/{organization_id}/locations/global`
            * 
      * * @@ -864,8 +894,13 @@ public Builder clearParent() { * * *
      -     * Required. The parent resource of the VpcFlowLogsConfig:
      -     *     `projects/{project_id}/locations/global`
      +     * Required. The parent resource of the VpcFlowLogsConfig,
      +     * in one of the following formats:
      +     *
      +     * - For project-level resourcs: `projects/{project_id}/locations/global`
      +     *
      +     * - For organization-level resources:
      +     * `organizations/{organization_id}/locations/global`
            * 
      * * diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ListVpcFlowLogsConfigsRequestOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ListVpcFlowLogsConfigsRequestOrBuilder.java index c72aa5f747e6..708fa64f216f 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ListVpcFlowLogsConfigsRequestOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ListVpcFlowLogsConfigsRequestOrBuilder.java @@ -28,8 +28,13 @@ public interface ListVpcFlowLogsConfigsRequestOrBuilder * * *
      -   * Required. The parent resource of the VpcFlowLogsConfig:
      -   *     `projects/{project_id}/locations/global`
      +   * Required. The parent resource of the VpcFlowLogsConfig,
      +   * in one of the following formats:
      +   *
      +   * - For project-level resourcs: `projects/{project_id}/locations/global`
      +   *
      +   * - For organization-level resources:
      +   * `organizations/{organization_id}/locations/global`
          * 
      * * @@ -44,8 +49,13 @@ public interface ListVpcFlowLogsConfigsRequestOrBuilder * * *
      -   * Required. The parent resource of the VpcFlowLogsConfig:
      -   *     `projects/{project_id}/locations/global`
      +   * Required. The parent resource of the VpcFlowLogsConfig,
      +   * in one of the following formats:
      +   *
      +   * - For project-level resourcs: `projects/{project_id}/locations/global`
      +   *
      +   * - For organization-level resources:
      +   * `organizations/{organization_id}/locations/global`
          * 
      * * diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerInfo.java index d1915219b313..4531aec723e8 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerInfo.java @@ -546,7 +546,7 @@ public int getLoadBalancerTypeValue() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=781 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=808 * @return The healthCheckUri. */ @java.lang.Override @@ -575,7 +575,7 @@ public java.lang.String getHealthCheckUri() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=781 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=808 * @return The bytes for healthCheckUri. */ @java.lang.Override @@ -1388,7 +1388,7 @@ public Builder clearLoadBalancerType() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=781 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=808 * @return The healthCheckUri. */ @java.lang.Deprecated @@ -1416,7 +1416,7 @@ public java.lang.String getHealthCheckUri() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=781 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=808 * @return The bytes for healthCheckUri. */ @java.lang.Deprecated @@ -1444,7 +1444,7 @@ public com.google.protobuf.ByteString getHealthCheckUriBytes() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=781 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=808 * @param value The healthCheckUri to set. * @return This builder for chaining. */ @@ -1471,7 +1471,7 @@ public Builder setHealthCheckUri(java.lang.String value) { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=781 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=808 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1494,7 +1494,7 @@ public Builder clearHealthCheckUri() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=781 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=808 * @param value The bytes for healthCheckUri to set. * @return This builder for chaining. */ diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerInfoOrBuilder.java index 78442c9e05d3..355d0e72264c 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerInfoOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerInfoOrBuilder.java @@ -67,7 +67,7 @@ public interface LoadBalancerInfoOrBuilder * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=781 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=808 * @return The healthCheckUri. */ @java.lang.Deprecated @@ -85,7 +85,7 @@ public interface LoadBalancerInfoOrBuilder * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=781 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=808 * @return The bytes for healthCheckUri. */ @java.lang.Deprecated diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/NetworkInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/NetworkInfo.java index e109d1794f8b..481963340e5a 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/NetworkInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/NetworkInfo.java @@ -24,7 +24,6 @@ * *
        * For display only. Metadata associated with a Compute Engine network.
      - * Next ID: 7
        * 
      * * Protobuf type {@code google.cloud.networkmanagement.v1beta1.NetworkInfo} @@ -536,7 +535,6 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
          * For display only. Metadata associated with a Compute Engine network.
      -   * Next ID: 7
          * 
      * * Protobuf type {@code google.cloud.networkmanagement.v1beta1.NetworkInfo} diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/OrganizationLocationName.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/OrganizationLocationName.java new file mode 100644 index 000000000000..0c8f36d8da47 --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/OrganizationLocationName.java @@ -0,0 +1,192 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class OrganizationLocationName implements ResourceName { + private static final PathTemplate ORGANIZATION_LOCATION = + PathTemplate.createWithoutUrlEncoding("organizations/{organization}/locations/{location}"); + private volatile Map fieldValuesMap; + private final String organization; + private final String location; + + @Deprecated + protected OrganizationLocationName() { + organization = null; + location = null; + } + + private OrganizationLocationName(Builder builder) { + organization = Preconditions.checkNotNull(builder.getOrganization()); + location = Preconditions.checkNotNull(builder.getLocation()); + } + + public String getOrganization() { + return organization; + } + + public String getLocation() { + return location; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static OrganizationLocationName of(String organization, String location) { + return newBuilder().setOrganization(organization).setLocation(location).build(); + } + + public static String format(String organization, String location) { + return newBuilder().setOrganization(organization).setLocation(location).build().toString(); + } + + public static OrganizationLocationName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + ORGANIZATION_LOCATION.validatedMatch( + formattedString, "OrganizationLocationName.parse: formattedString not in valid format"); + return of(matchMap.get("organization"), matchMap.get("location")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (OrganizationLocationName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return ORGANIZATION_LOCATION.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); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return ORGANIZATION_LOCATION.instantiate("organization", organization, "location", location); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + OrganizationLocationName that = ((OrganizationLocationName) o); + return Objects.equals(this.organization, that.organization) + && Objects.equals(this.location, that.location); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(organization); + h *= 1000003; + h ^= Objects.hashCode(location); + return h; + } + + /** Builder for organizations/{organization}/locations/{location}. */ + public static class Builder { + private String organization; + private String location; + + protected Builder() {} + + public String getOrganization() { + return organization; + } + + public String getLocation() { + return location; + } + + public Builder setOrganization(String organization) { + this.organization = organization; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + private Builder(OrganizationLocationName organizationLocationName) { + this.organization = organizationLocationName.organization; + this.location = organizationLocationName.location; + } + + public OrganizationLocationName build() { + return new OrganizationLocationName(this); + } + } +} diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ProbingDetails.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ProbingDetails.java index 98c65a700877..1cc2f50a6a8a 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ProbingDetails.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ProbingDetails.java @@ -42,6 +42,7 @@ private ProbingDetails(com.google.protobuf.GeneratedMessageV3.Builder builder private ProbingDetails() { result_ = 0; abortCause_ = 0; + edgeResponses_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -1117,155 +1118,2074 @@ public com.google.protobuf.Parser getParserForType() { } } - private int bitField0_; - public static final int RESULT_FIELD_NUMBER = 1; - private int result_ = 0; + public interface SingleEdgeResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse) + com.google.protobuf.MessageOrBuilder { - /** - * - * - *
      -   * The overall result of active probing.
      -   * 
      - * - * .google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult result = 1; - * - * @return The enum numeric value on the wire for result. - */ - @java.lang.Override - public int getResultValue() { - return result_; - } + /** + * + * + *
      +     * The overall result of active probing for this egress device.
      +     * 
      + * + * .google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult result = 1; + * + * @return The enum numeric value on the wire for result. + */ + int getResultValue(); - /** - * - * - *
      -   * The overall result of active probing.
      -   * 
      - * - * .google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult result = 1; - * - * @return The result. - */ - @java.lang.Override - public com.google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult getResult() { - com.google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult result = - com.google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult.forNumber(result_); - return result == null - ? com.google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult.UNRECOGNIZED - : result; - } + /** + * + * + *
      +     * The overall result of active probing for this egress device.
      +     * 
      + * + * .google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult result = 1; + * + * @return The result. + */ + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult getResult(); - public static final int VERIFY_TIME_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp verifyTime_; + /** + * + * + *
      +     * Number of probes sent.
      +     * 
      + * + * int32 sent_probe_count = 2; + * + * @return The sentProbeCount. + */ + int getSentProbeCount(); - /** - * - * - *
      -   * The time that reachability was assessed through active probing.
      -   * 
      - * - * .google.protobuf.Timestamp verify_time = 2; - * - * @return Whether the verifyTime field is set. - */ - @java.lang.Override - public boolean hasVerifyTime() { - return ((bitField0_ & 0x00000001) != 0); - } + /** + * + * + *
      +     * Number of probes that reached the destination.
      +     * 
      + * + * int32 successful_probe_count = 3; + * + * @return The successfulProbeCount. + */ + int getSuccessfulProbeCount(); - /** - * - * - *
      -   * The time that reachability was assessed through active probing.
      -   * 
      - * - * .google.protobuf.Timestamp verify_time = 2; - * - * @return The verifyTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getVerifyTime() { - return verifyTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : verifyTime_; - } + /** + * + * + *
      +     * Latency as measured by active probing in one direction: from the source
      +     * to the destination endpoint.
      +     * 
      + * + * .google.cloud.networkmanagement.v1beta1.LatencyDistribution probing_latency = 4; + * + * @return Whether the probingLatency field is set. + */ + boolean hasProbingLatency(); - /** - * - * - *
      -   * The time that reachability was assessed through active probing.
      -   * 
      - * - * .google.protobuf.Timestamp verify_time = 2; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getVerifyTimeOrBuilder() { - return verifyTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : verifyTime_; - } + /** + * + * + *
      +     * Latency as measured by active probing in one direction: from the source
      +     * to the destination endpoint.
      +     * 
      + * + * .google.cloud.networkmanagement.v1beta1.LatencyDistribution probing_latency = 4; + * + * @return The probingLatency. + */ + com.google.cloud.networkmanagement.v1beta1.LatencyDistribution getProbingLatency(); - public static final int ERROR_FIELD_NUMBER = 3; - private com.google.rpc.Status error_; + /** + * + * + *
      +     * Latency as measured by active probing in one direction: from the source
      +     * to the destination endpoint.
      +     * 
      + * + * .google.cloud.networkmanagement.v1beta1.LatencyDistribution probing_latency = 4; + */ + com.google.cloud.networkmanagement.v1beta1.LatencyDistributionOrBuilder + getProbingLatencyOrBuilder(); - /** - * - * - *
      -   * Details about an internal failure or the cancellation of active probing.
      -   * 
      - * - * .google.rpc.Status error = 3; - * - * @return Whether the error field is set. - */ - @java.lang.Override - public boolean hasError() { - return ((bitField0_ & 0x00000002) != 0); - } + /** + * + * + *
      +     * The EdgeLocation from which a packet, destined to the internet, will
      +     * egress the Google network.
      +     * This will only be populated for a connectivity test which has an internet
      +     * destination address.
      +     * The absence of this field *must not* be used as an indication that the
      +     * destination is part of the Google network.
      +     * 
      + * + * + * .google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation destination_egress_location = 5; + * + * + * @return Whether the destinationEgressLocation field is set. + */ + boolean hasDestinationEgressLocation(); - /** - * - * - *
      -   * Details about an internal failure or the cancellation of active probing.
      -   * 
      - * - * .google.rpc.Status error = 3; - * - * @return The error. - */ - @java.lang.Override - public com.google.rpc.Status getError() { - return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + /** + * + * + *
      +     * The EdgeLocation from which a packet, destined to the internet, will
      +     * egress the Google network.
      +     * This will only be populated for a connectivity test which has an internet
      +     * destination address.
      +     * The absence of this field *must not* be used as an indication that the
      +     * destination is part of the Google network.
      +     * 
      + * + * + * .google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation destination_egress_location = 5; + * + * + * @return The destinationEgressLocation. + */ + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation + getDestinationEgressLocation(); + + /** + * + * + *
      +     * The EdgeLocation from which a packet, destined to the internet, will
      +     * egress the Google network.
      +     * This will only be populated for a connectivity test which has an internet
      +     * destination address.
      +     * The absence of this field *must not* be used as an indication that the
      +     * destination is part of the Google network.
      +     * 
      + * + * + * .google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation destination_egress_location = 5; + * + */ + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocationOrBuilder + getDestinationEgressLocationOrBuilder(); + + /** + * + * + *
      +     * Router name in the format '{router}.{metroshard}'. For example:
      +     * pf01.aaa01, pr02.aaa01.
      +     * 
      + * + * string destination_router = 6; + * + * @return The destinationRouter. + */ + java.lang.String getDestinationRouter(); + + /** + * + * + *
      +     * Router name in the format '{router}.{metroshard}'. For example:
      +     * pf01.aaa01, pr02.aaa01.
      +     * 
      + * + * string destination_router = 6; + * + * @return The bytes for destinationRouter. + */ + com.google.protobuf.ByteString getDestinationRouterBytes(); } /** * * *
      -   * Details about an internal failure or the cancellation of active probing.
      +   * Probing results for a single edge device.
          * 
      * - * .google.rpc.Status error = 3; + * Protobuf type {@code google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse} */ - @java.lang.Override - public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { - return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; - } + public static final class SingleEdgeResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse) + SingleEdgeResponseOrBuilder { + private static final long serialVersionUID = 0L; - public static final int ABORT_CAUSE_FIELD_NUMBER = 4; - private int abortCause_ = 0; + // Use SingleEdgeResponse.newBuilder() to construct. + private SingleEdgeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - /** - * - * - *
      -   * The reason probing was aborted.
      -   * 
      - * - * .google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingAbortCause abort_cause = 4; + private SingleEdgeResponse() { + result_ = 0; + destinationRouter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SingleEdgeResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1beta1.TestOuterClass + .internal_static_google_cloud_networkmanagement_v1beta1_ProbingDetails_SingleEdgeResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1beta1.TestOuterClass + .internal_static_google_cloud_networkmanagement_v1beta1_ProbingDetails_SingleEdgeResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse.class, + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse.Builder + .class); + } + + private int bitField0_; + public static final int RESULT_FIELD_NUMBER = 1; + private int result_ = 0; + + /** + * + * + *
      +     * The overall result of active probing for this egress device.
      +     * 
      + * + * .google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult result = 1; + * + * @return The enum numeric value on the wire for result. + */ + @java.lang.Override + public int getResultValue() { + return result_; + } + + /** + * + * + *
      +     * The overall result of active probing for this egress device.
      +     * 
      + * + * .google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult result = 1; + * + * @return The result. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult getResult() { + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult result = + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult.forNumber( + result_); + return result == null + ? com.google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult.UNRECOGNIZED + : result; + } + + public static final int SENT_PROBE_COUNT_FIELD_NUMBER = 2; + private int sentProbeCount_ = 0; + + /** + * + * + *
      +     * Number of probes sent.
      +     * 
      + * + * int32 sent_probe_count = 2; + * + * @return The sentProbeCount. + */ + @java.lang.Override + public int getSentProbeCount() { + return sentProbeCount_; + } + + public static final int SUCCESSFUL_PROBE_COUNT_FIELD_NUMBER = 3; + private int successfulProbeCount_ = 0; + + /** + * + * + *
      +     * Number of probes that reached the destination.
      +     * 
      + * + * int32 successful_probe_count = 3; + * + * @return The successfulProbeCount. + */ + @java.lang.Override + public int getSuccessfulProbeCount() { + return successfulProbeCount_; + } + + public static final int PROBING_LATENCY_FIELD_NUMBER = 4; + private com.google.cloud.networkmanagement.v1beta1.LatencyDistribution probingLatency_; + + /** + * + * + *
      +     * Latency as measured by active probing in one direction: from the source
      +     * to the destination endpoint.
      +     * 
      + * + * .google.cloud.networkmanagement.v1beta1.LatencyDistribution probing_latency = 4; + * + * @return Whether the probingLatency field is set. + */ + @java.lang.Override + public boolean hasProbingLatency() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +     * Latency as measured by active probing in one direction: from the source
      +     * to the destination endpoint.
      +     * 
      + * + * .google.cloud.networkmanagement.v1beta1.LatencyDistribution probing_latency = 4; + * + * @return The probingLatency. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.LatencyDistribution getProbingLatency() { + return probingLatency_ == null + ? com.google.cloud.networkmanagement.v1beta1.LatencyDistribution.getDefaultInstance() + : probingLatency_; + } + + /** + * + * + *
      +     * Latency as measured by active probing in one direction: from the source
      +     * to the destination endpoint.
      +     * 
      + * + * .google.cloud.networkmanagement.v1beta1.LatencyDistribution probing_latency = 4; + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.LatencyDistributionOrBuilder + getProbingLatencyOrBuilder() { + return probingLatency_ == null + ? com.google.cloud.networkmanagement.v1beta1.LatencyDistribution.getDefaultInstance() + : probingLatency_; + } + + public static final int DESTINATION_EGRESS_LOCATION_FIELD_NUMBER = 5; + private com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation + destinationEgressLocation_; + + /** + * + * + *
      +     * The EdgeLocation from which a packet, destined to the internet, will
      +     * egress the Google network.
      +     * This will only be populated for a connectivity test which has an internet
      +     * destination address.
      +     * The absence of this field *must not* be used as an indication that the
      +     * destination is part of the Google network.
      +     * 
      + * + * + * .google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation destination_egress_location = 5; + * + * + * @return Whether the destinationEgressLocation field is set. + */ + @java.lang.Override + public boolean hasDestinationEgressLocation() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +     * The EdgeLocation from which a packet, destined to the internet, will
      +     * egress the Google network.
      +     * This will only be populated for a connectivity test which has an internet
      +     * destination address.
      +     * The absence of this field *must not* be used as an indication that the
      +     * destination is part of the Google network.
      +     * 
      + * + * + * .google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation destination_egress_location = 5; + * + * + * @return The destinationEgressLocation. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation + getDestinationEgressLocation() { + return destinationEgressLocation_ == null + ? com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation + .getDefaultInstance() + : destinationEgressLocation_; + } + + /** + * + * + *
      +     * The EdgeLocation from which a packet, destined to the internet, will
      +     * egress the Google network.
      +     * This will only be populated for a connectivity test which has an internet
      +     * destination address.
      +     * The absence of this field *must not* be used as an indication that the
      +     * destination is part of the Google network.
      +     * 
      + * + * + * .google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation destination_egress_location = 5; + * + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocationOrBuilder + getDestinationEgressLocationOrBuilder() { + return destinationEgressLocation_ == null + ? com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation + .getDefaultInstance() + : destinationEgressLocation_; + } + + public static final int DESTINATION_ROUTER_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object destinationRouter_ = ""; + + /** + * + * + *
      +     * Router name in the format '{router}.{metroshard}'. For example:
      +     * pf01.aaa01, pr02.aaa01.
      +     * 
      + * + * string destination_router = 6; + * + * @return The destinationRouter. + */ + @java.lang.Override + public java.lang.String getDestinationRouter() { + java.lang.Object ref = destinationRouter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destinationRouter_ = s; + return s; + } + } + + /** + * + * + *
      +     * Router name in the format '{router}.{metroshard}'. For example:
      +     * pf01.aaa01, pr02.aaa01.
      +     * 
      + * + * string destination_router = 6; + * + * @return The bytes for destinationRouter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDestinationRouterBytes() { + java.lang.Object ref = destinationRouter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destinationRouter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (result_ + != com.google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult + .PROBING_RESULT_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, result_); + } + if (sentProbeCount_ != 0) { + output.writeInt32(2, sentProbeCount_); + } + if (successfulProbeCount_ != 0) { + output.writeInt32(3, successfulProbeCount_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getProbingLatency()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getDestinationEgressLocation()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationRouter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, destinationRouter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (result_ + != com.google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult + .PROBING_RESULT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, result_); + } + if (sentProbeCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, sentProbeCount_); + } + if (successfulProbeCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, successfulProbeCount_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getProbingLatency()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, getDestinationEgressLocation()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationRouter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, destinationRouter_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse)) { + return super.equals(obj); + } + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse other = + (com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse) obj; + + if (result_ != other.result_) return false; + if (getSentProbeCount() != other.getSentProbeCount()) return false; + if (getSuccessfulProbeCount() != other.getSuccessfulProbeCount()) return false; + if (hasProbingLatency() != other.hasProbingLatency()) return false; + if (hasProbingLatency()) { + if (!getProbingLatency().equals(other.getProbingLatency())) return false; + } + if (hasDestinationEgressLocation() != other.hasDestinationEgressLocation()) return false; + if (hasDestinationEgressLocation()) { + if (!getDestinationEgressLocation().equals(other.getDestinationEgressLocation())) + return false; + } + if (!getDestinationRouter().equals(other.getDestinationRouter())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RESULT_FIELD_NUMBER; + hash = (53 * hash) + result_; + hash = (37 * hash) + SENT_PROBE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getSentProbeCount(); + hash = (37 * hash) + SUCCESSFUL_PROBE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getSuccessfulProbeCount(); + if (hasProbingLatency()) { + hash = (37 * hash) + PROBING_LATENCY_FIELD_NUMBER; + hash = (53 * hash) + getProbingLatency().hashCode(); + } + if (hasDestinationEgressLocation()) { + hash = (37 * hash) + DESTINATION_EGRESS_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getDestinationEgressLocation().hashCode(); + } + hash = (37 * hash) + DESTINATION_ROUTER_FIELD_NUMBER; + hash = (53 * hash) + getDestinationRouter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * Probing results for a single edge device.
      +     * 
      + * + * Protobuf type {@code + * google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse) + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1beta1.TestOuterClass + .internal_static_google_cloud_networkmanagement_v1beta1_ProbingDetails_SingleEdgeResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1beta1.TestOuterClass + .internal_static_google_cloud_networkmanagement_v1beta1_ProbingDetails_SingleEdgeResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse.class, + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getProbingLatencyFieldBuilder(); + getDestinationEgressLocationFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + result_ = 0; + sentProbeCount_ = 0; + successfulProbeCount_ = 0; + probingLatency_ = null; + if (probingLatencyBuilder_ != null) { + probingLatencyBuilder_.dispose(); + probingLatencyBuilder_ = null; + } + destinationEgressLocation_ = null; + if (destinationEgressLocationBuilder_ != null) { + destinationEgressLocationBuilder_.dispose(); + destinationEgressLocationBuilder_ = null; + } + destinationRouter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkmanagement.v1beta1.TestOuterClass + .internal_static_google_cloud_networkmanagement_v1beta1_ProbingDetails_SingleEdgeResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse + getDefaultInstanceForType() { + return com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse build() { + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse + buildPartial() { + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse result = + new com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.result_ = result_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sentProbeCount_ = sentProbeCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.successfulProbeCount_ = successfulProbeCount_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.probingLatency_ = + probingLatencyBuilder_ == null ? probingLatency_ : probingLatencyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.destinationEgressLocation_ = + destinationEgressLocationBuilder_ == null + ? destinationEgressLocation_ + : destinationEgressLocationBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.destinationRouter_ = destinationRouter_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse) { + return mergeFrom( + (com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse other) { + if (other + == com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse + .getDefaultInstance()) return this; + if (other.result_ != 0) { + setResultValue(other.getResultValue()); + } + if (other.getSentProbeCount() != 0) { + setSentProbeCount(other.getSentProbeCount()); + } + if (other.getSuccessfulProbeCount() != 0) { + setSuccessfulProbeCount(other.getSuccessfulProbeCount()); + } + if (other.hasProbingLatency()) { + mergeProbingLatency(other.getProbingLatency()); + } + if (other.hasDestinationEgressLocation()) { + mergeDestinationEgressLocation(other.getDestinationEgressLocation()); + } + if (!other.getDestinationRouter().isEmpty()) { + destinationRouter_ = other.destinationRouter_; + bitField0_ |= 0x00000020; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + result_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + sentProbeCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + successfulProbeCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + input.readMessage( + getProbingLatencyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + getDestinationEgressLocationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + destinationRouter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int result_ = 0; + + /** + * + * + *
      +       * The overall result of active probing for this egress device.
      +       * 
      + * + * .google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult result = 1; + * + * + * @return The enum numeric value on the wire for result. + */ + @java.lang.Override + public int getResultValue() { + return result_; + } + + /** + * + * + *
      +       * The overall result of active probing for this egress device.
      +       * 
      + * + * .google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult result = 1; + * + * + * @param value The enum numeric value on the wire for result to set. + * @return This builder for chaining. + */ + public Builder setResultValue(int value) { + result_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * The overall result of active probing for this egress device.
      +       * 
      + * + * .google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult result = 1; + * + * + * @return The result. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult getResult() { + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult result = + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult.forNumber( + result_); + return result == null + ? com.google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult.UNRECOGNIZED + : result; + } + + /** + * + * + *
      +       * The overall result of active probing for this egress device.
      +       * 
      + * + * .google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult result = 1; + * + * + * @param value The result to set. + * @return This builder for chaining. + */ + public Builder setResult( + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + result_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +       * The overall result of active probing for this egress device.
      +       * 
      + * + * .google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult result = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearResult() { + bitField0_ = (bitField0_ & ~0x00000001); + result_ = 0; + onChanged(); + return this; + } + + private int sentProbeCount_; + + /** + * + * + *
      +       * Number of probes sent.
      +       * 
      + * + * int32 sent_probe_count = 2; + * + * @return The sentProbeCount. + */ + @java.lang.Override + public int getSentProbeCount() { + return sentProbeCount_; + } + + /** + * + * + *
      +       * Number of probes sent.
      +       * 
      + * + * int32 sent_probe_count = 2; + * + * @param value The sentProbeCount to set. + * @return This builder for chaining. + */ + public Builder setSentProbeCount(int value) { + + sentProbeCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Number of probes sent.
      +       * 
      + * + * int32 sent_probe_count = 2; + * + * @return This builder for chaining. + */ + public Builder clearSentProbeCount() { + bitField0_ = (bitField0_ & ~0x00000002); + sentProbeCount_ = 0; + onChanged(); + return this; + } + + private int successfulProbeCount_; + + /** + * + * + *
      +       * Number of probes that reached the destination.
      +       * 
      + * + * int32 successful_probe_count = 3; + * + * @return The successfulProbeCount. + */ + @java.lang.Override + public int getSuccessfulProbeCount() { + return successfulProbeCount_; + } + + /** + * + * + *
      +       * Number of probes that reached the destination.
      +       * 
      + * + * int32 successful_probe_count = 3; + * + * @param value The successfulProbeCount to set. + * @return This builder for chaining. + */ + public Builder setSuccessfulProbeCount(int value) { + + successfulProbeCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Number of probes that reached the destination.
      +       * 
      + * + * int32 successful_probe_count = 3; + * + * @return This builder for chaining. + */ + public Builder clearSuccessfulProbeCount() { + bitField0_ = (bitField0_ & ~0x00000004); + successfulProbeCount_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.networkmanagement.v1beta1.LatencyDistribution probingLatency_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1beta1.LatencyDistribution, + com.google.cloud.networkmanagement.v1beta1.LatencyDistribution.Builder, + com.google.cloud.networkmanagement.v1beta1.LatencyDistributionOrBuilder> + probingLatencyBuilder_; + + /** + * + * + *
      +       * Latency as measured by active probing in one direction: from the source
      +       * to the destination endpoint.
      +       * 
      + * + * .google.cloud.networkmanagement.v1beta1.LatencyDistribution probing_latency = 4; + * + * + * @return Whether the probingLatency field is set. + */ + public boolean hasProbingLatency() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +       * Latency as measured by active probing in one direction: from the source
      +       * to the destination endpoint.
      +       * 
      + * + * .google.cloud.networkmanagement.v1beta1.LatencyDistribution probing_latency = 4; + * + * + * @return The probingLatency. + */ + public com.google.cloud.networkmanagement.v1beta1.LatencyDistribution getProbingLatency() { + if (probingLatencyBuilder_ == null) { + return probingLatency_ == null + ? com.google.cloud.networkmanagement.v1beta1.LatencyDistribution.getDefaultInstance() + : probingLatency_; + } else { + return probingLatencyBuilder_.getMessage(); + } + } + + /** + * + * + *
      +       * Latency as measured by active probing in one direction: from the source
      +       * to the destination endpoint.
      +       * 
      + * + * .google.cloud.networkmanagement.v1beta1.LatencyDistribution probing_latency = 4; + * + */ + public Builder setProbingLatency( + com.google.cloud.networkmanagement.v1beta1.LatencyDistribution value) { + if (probingLatencyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + probingLatency_ = value; + } else { + probingLatencyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Latency as measured by active probing in one direction: from the source
      +       * to the destination endpoint.
      +       * 
      + * + * .google.cloud.networkmanagement.v1beta1.LatencyDistribution probing_latency = 4; + * + */ + public Builder setProbingLatency( + com.google.cloud.networkmanagement.v1beta1.LatencyDistribution.Builder builderForValue) { + if (probingLatencyBuilder_ == null) { + probingLatency_ = builderForValue.build(); + } else { + probingLatencyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Latency as measured by active probing in one direction: from the source
      +       * to the destination endpoint.
      +       * 
      + * + * .google.cloud.networkmanagement.v1beta1.LatencyDistribution probing_latency = 4; + * + */ + public Builder mergeProbingLatency( + com.google.cloud.networkmanagement.v1beta1.LatencyDistribution value) { + if (probingLatencyBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && probingLatency_ != null + && probingLatency_ + != com.google.cloud.networkmanagement.v1beta1.LatencyDistribution + .getDefaultInstance()) { + getProbingLatencyBuilder().mergeFrom(value); + } else { + probingLatency_ = value; + } + } else { + probingLatencyBuilder_.mergeFrom(value); + } + if (probingLatency_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
      +       * Latency as measured by active probing in one direction: from the source
      +       * to the destination endpoint.
      +       * 
      + * + * .google.cloud.networkmanagement.v1beta1.LatencyDistribution probing_latency = 4; + * + */ + public Builder clearProbingLatency() { + bitField0_ = (bitField0_ & ~0x00000008); + probingLatency_ = null; + if (probingLatencyBuilder_ != null) { + probingLatencyBuilder_.dispose(); + probingLatencyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +       * Latency as measured by active probing in one direction: from the source
      +       * to the destination endpoint.
      +       * 
      + * + * .google.cloud.networkmanagement.v1beta1.LatencyDistribution probing_latency = 4; + * + */ + public com.google.cloud.networkmanagement.v1beta1.LatencyDistribution.Builder + getProbingLatencyBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getProbingLatencyFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +       * Latency as measured by active probing in one direction: from the source
      +       * to the destination endpoint.
      +       * 
      + * + * .google.cloud.networkmanagement.v1beta1.LatencyDistribution probing_latency = 4; + * + */ + public com.google.cloud.networkmanagement.v1beta1.LatencyDistributionOrBuilder + getProbingLatencyOrBuilder() { + if (probingLatencyBuilder_ != null) { + return probingLatencyBuilder_.getMessageOrBuilder(); + } else { + return probingLatency_ == null + ? com.google.cloud.networkmanagement.v1beta1.LatencyDistribution.getDefaultInstance() + : probingLatency_; + } + } + + /** + * + * + *
      +       * Latency as measured by active probing in one direction: from the source
      +       * to the destination endpoint.
      +       * 
      + * + * .google.cloud.networkmanagement.v1beta1.LatencyDistribution probing_latency = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1beta1.LatencyDistribution, + com.google.cloud.networkmanagement.v1beta1.LatencyDistribution.Builder, + com.google.cloud.networkmanagement.v1beta1.LatencyDistributionOrBuilder> + getProbingLatencyFieldBuilder() { + if (probingLatencyBuilder_ == null) { + probingLatencyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1beta1.LatencyDistribution, + com.google.cloud.networkmanagement.v1beta1.LatencyDistribution.Builder, + com.google.cloud.networkmanagement.v1beta1.LatencyDistributionOrBuilder>( + getProbingLatency(), getParentForChildren(), isClean()); + probingLatency_ = null; + } + return probingLatencyBuilder_; + } + + private com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation + destinationEgressLocation_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation, + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation.Builder, + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocationOrBuilder> + destinationEgressLocationBuilder_; + + /** + * + * + *
      +       * The EdgeLocation from which a packet, destined to the internet, will
      +       * egress the Google network.
      +       * This will only be populated for a connectivity test which has an internet
      +       * destination address.
      +       * The absence of this field *must not* be used as an indication that the
      +       * destination is part of the Google network.
      +       * 
      + * + * + * .google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation destination_egress_location = 5; + * + * + * @return Whether the destinationEgressLocation field is set. + */ + public boolean hasDestinationEgressLocation() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
      +       * The EdgeLocation from which a packet, destined to the internet, will
      +       * egress the Google network.
      +       * This will only be populated for a connectivity test which has an internet
      +       * destination address.
      +       * The absence of this field *must not* be used as an indication that the
      +       * destination is part of the Google network.
      +       * 
      + * + * + * .google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation destination_egress_location = 5; + * + * + * @return The destinationEgressLocation. + */ + public com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation + getDestinationEgressLocation() { + if (destinationEgressLocationBuilder_ == null) { + return destinationEgressLocation_ == null + ? com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation + .getDefaultInstance() + : destinationEgressLocation_; + } else { + return destinationEgressLocationBuilder_.getMessage(); + } + } + + /** + * + * + *
      +       * The EdgeLocation from which a packet, destined to the internet, will
      +       * egress the Google network.
      +       * This will only be populated for a connectivity test which has an internet
      +       * destination address.
      +       * The absence of this field *must not* be used as an indication that the
      +       * destination is part of the Google network.
      +       * 
      + * + * + * .google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation destination_egress_location = 5; + * + */ + public Builder setDestinationEgressLocation( + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation value) { + if (destinationEgressLocationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + destinationEgressLocation_ = value; + } else { + destinationEgressLocationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +       * The EdgeLocation from which a packet, destined to the internet, will
      +       * egress the Google network.
      +       * This will only be populated for a connectivity test which has an internet
      +       * destination address.
      +       * The absence of this field *must not* be used as an indication that the
      +       * destination is part of the Google network.
      +       * 
      + * + * + * .google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation destination_egress_location = 5; + * + */ + public Builder setDestinationEgressLocation( + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation.Builder + builderForValue) { + if (destinationEgressLocationBuilder_ == null) { + destinationEgressLocation_ = builderForValue.build(); + } else { + destinationEgressLocationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +       * The EdgeLocation from which a packet, destined to the internet, will
      +       * egress the Google network.
      +       * This will only be populated for a connectivity test which has an internet
      +       * destination address.
      +       * The absence of this field *must not* be used as an indication that the
      +       * destination is part of the Google network.
      +       * 
      + * + * + * .google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation destination_egress_location = 5; + * + */ + public Builder mergeDestinationEgressLocation( + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation value) { + if (destinationEgressLocationBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && destinationEgressLocation_ != null + && destinationEgressLocation_ + != com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation + .getDefaultInstance()) { + getDestinationEgressLocationBuilder().mergeFrom(value); + } else { + destinationEgressLocation_ = value; + } + } else { + destinationEgressLocationBuilder_.mergeFrom(value); + } + if (destinationEgressLocation_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
      +       * The EdgeLocation from which a packet, destined to the internet, will
      +       * egress the Google network.
      +       * This will only be populated for a connectivity test which has an internet
      +       * destination address.
      +       * The absence of this field *must not* be used as an indication that the
      +       * destination is part of the Google network.
      +       * 
      + * + * + * .google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation destination_egress_location = 5; + * + */ + public Builder clearDestinationEgressLocation() { + bitField0_ = (bitField0_ & ~0x00000010); + destinationEgressLocation_ = null; + if (destinationEgressLocationBuilder_ != null) { + destinationEgressLocationBuilder_.dispose(); + destinationEgressLocationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +       * The EdgeLocation from which a packet, destined to the internet, will
      +       * egress the Google network.
      +       * This will only be populated for a connectivity test which has an internet
      +       * destination address.
      +       * The absence of this field *must not* be used as an indication that the
      +       * destination is part of the Google network.
      +       * 
      + * + * + * .google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation destination_egress_location = 5; + * + */ + public com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation.Builder + getDestinationEgressLocationBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getDestinationEgressLocationFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +       * The EdgeLocation from which a packet, destined to the internet, will
      +       * egress the Google network.
      +       * This will only be populated for a connectivity test which has an internet
      +       * destination address.
      +       * The absence of this field *must not* be used as an indication that the
      +       * destination is part of the Google network.
      +       * 
      + * + * + * .google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation destination_egress_location = 5; + * + */ + public com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocationOrBuilder + getDestinationEgressLocationOrBuilder() { + if (destinationEgressLocationBuilder_ != null) { + return destinationEgressLocationBuilder_.getMessageOrBuilder(); + } else { + return destinationEgressLocation_ == null + ? com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation + .getDefaultInstance() + : destinationEgressLocation_; + } + } + + /** + * + * + *
      +       * The EdgeLocation from which a packet, destined to the internet, will
      +       * egress the Google network.
      +       * This will only be populated for a connectivity test which has an internet
      +       * destination address.
      +       * The absence of this field *must not* be used as an indication that the
      +       * destination is part of the Google network.
      +       * 
      + * + * + * .google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation destination_egress_location = 5; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation, + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation.Builder, + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocationOrBuilder> + getDestinationEgressLocationFieldBuilder() { + if (destinationEgressLocationBuilder_ == null) { + destinationEgressLocationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation, + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation.Builder, + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocationOrBuilder>( + getDestinationEgressLocation(), getParentForChildren(), isClean()); + destinationEgressLocation_ = null; + } + return destinationEgressLocationBuilder_; + } + + private java.lang.Object destinationRouter_ = ""; + + /** + * + * + *
      +       * Router name in the format '{router}.{metroshard}'. For example:
      +       * pf01.aaa01, pr02.aaa01.
      +       * 
      + * + * string destination_router = 6; + * + * @return The destinationRouter. + */ + public java.lang.String getDestinationRouter() { + java.lang.Object ref = destinationRouter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destinationRouter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +       * Router name in the format '{router}.{metroshard}'. For example:
      +       * pf01.aaa01, pr02.aaa01.
      +       * 
      + * + * string destination_router = 6; + * + * @return The bytes for destinationRouter. + */ + public com.google.protobuf.ByteString getDestinationRouterBytes() { + java.lang.Object ref = destinationRouter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destinationRouter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +       * Router name in the format '{router}.{metroshard}'. For example:
      +       * pf01.aaa01, pr02.aaa01.
      +       * 
      + * + * string destination_router = 6; + * + * @param value The destinationRouter to set. + * @return This builder for chaining. + */ + public Builder setDestinationRouter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + destinationRouter_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Router name in the format '{router}.{metroshard}'. For example:
      +       * pf01.aaa01, pr02.aaa01.
      +       * 
      + * + * string destination_router = 6; + * + * @return This builder for chaining. + */ + public Builder clearDestinationRouter() { + destinationRouter_ = getDefaultInstance().getDestinationRouter(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
      +       * Router name in the format '{router}.{metroshard}'. For example:
      +       * pf01.aaa01, pr02.aaa01.
      +       * 
      + * + * string destination_router = 6; + * + * @param value The bytes for destinationRouter to set. + * @return This builder for chaining. + */ + public Builder setDestinationRouterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + destinationRouter_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse) + private static final com.google.cloud.networkmanagement.v1beta1.ProbingDetails + .SingleEdgeResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse(); + } + + public static com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SingleEdgeResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int RESULT_FIELD_NUMBER = 1; + private int result_ = 0; + + /** + * + * + *
      +   * The overall result of active probing.
      +   * 
      + * + * .google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult result = 1; + * + * @return The enum numeric value on the wire for result. + */ + @java.lang.Override + public int getResultValue() { + return result_; + } + + /** + * + * + *
      +   * The overall result of active probing.
      +   * 
      + * + * .google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult result = 1; + * + * @return The result. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult getResult() { + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult result = + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult.forNumber(result_); + return result == null + ? com.google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult.UNRECOGNIZED + : result; + } + + public static final int VERIFY_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp verifyTime_; + + /** + * + * + *
      +   * The time that reachability was assessed through active probing.
      +   * 
      + * + * .google.protobuf.Timestamp verify_time = 2; + * + * @return Whether the verifyTime field is set. + */ + @java.lang.Override + public boolean hasVerifyTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * The time that reachability was assessed through active probing.
      +   * 
      + * + * .google.protobuf.Timestamp verify_time = 2; + * + * @return The verifyTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getVerifyTime() { + return verifyTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : verifyTime_; + } + + /** + * + * + *
      +   * The time that reachability was assessed through active probing.
      +   * 
      + * + * .google.protobuf.Timestamp verify_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getVerifyTimeOrBuilder() { + return verifyTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : verifyTime_; + } + + public static final int ERROR_FIELD_NUMBER = 3; + private com.google.rpc.Status error_; + + /** + * + * + *
      +   * Details about an internal failure or the cancellation of active probing.
      +   * 
      + * + * .google.rpc.Status error = 3; + * + * @return Whether the error field is set. + */ + @java.lang.Override + public boolean hasError() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * Details about an internal failure or the cancellation of active probing.
      +   * 
      + * + * .google.rpc.Status error = 3; + * + * @return The error. + */ + @java.lang.Override + public com.google.rpc.Status getError() { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + + /** + * + * + *
      +   * Details about an internal failure or the cancellation of active probing.
      +   * 
      + * + * .google.rpc.Status error = 3; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + + public static final int ABORT_CAUSE_FIELD_NUMBER = 4; + private int abortCause_ = 0; + + /** + * + * + *
      +   * The reason probing was aborted.
      +   * 
      + * + * .google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingAbortCause abort_cause = 4; * * * @return The enum numeric value on the wire for abortCause. @@ -1458,12 +3378,12 @@ public com.google.cloud.networkmanagement.v1beta1.LatencyDistribution getProbing * * *
      -   * The EdgeLocation from which a packet destined for/originating from the
      -   * internet will egress/ingress the Google network.
      +   * The EdgeLocation from which a packet, destined to the internet, will egress
      +   * the Google network.
          * This will only be populated for a connectivity test which has an internet
      -   * destination/source address.
      +   * destination address.
          * The absence of this field *must not* be used as an indication that the
      -   * destination/source is part of the Google network.
      +   * destination is part of the Google network.
          * 
      * * @@ -1481,12 +3401,12 @@ public boolean hasDestinationEgressLocation() { * * *
      -   * The EdgeLocation from which a packet destined for/originating from the
      -   * internet will egress/ingress the Google network.
      +   * The EdgeLocation from which a packet, destined to the internet, will egress
      +   * the Google network.
          * This will only be populated for a connectivity test which has an internet
      -   * destination/source address.
      +   * destination address.
          * The absence of this field *must not* be used as an indication that the
      -   * destination/source is part of the Google network.
      +   * destination is part of the Google network.
          * 
      * * @@ -1508,12 +3428,12 @@ public boolean hasDestinationEgressLocation() { * * *
      -   * The EdgeLocation from which a packet destined for/originating from the
      -   * internet will egress/ingress the Google network.
      +   * The EdgeLocation from which a packet, destined to the internet, will egress
      +   * the Google network.
          * This will only be populated for a connectivity test which has an internet
      -   * destination/source address.
      +   * destination address.
          * The absence of this field *must not* be used as an indication that the
      -   * destination/source is part of the Google network.
      +   * destination is part of the Google network.
          * 
      * * @@ -1529,6 +3449,119 @@ public boolean hasDestinationEgressLocation() { : destinationEgressLocation_; } + public static final int EDGE_RESPONSES_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse> + edgeResponses_; + + /** + * + * + *
      +   * Probing results for all edge devices.
      +   * 
      + * + * + * repeated .google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse edge_responses = 10; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse> + getEdgeResponsesList() { + return edgeResponses_; + } + + /** + * + * + *
      +   * Probing results for all edge devices.
      +   * 
      + * + * + * repeated .google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse edge_responses = 10; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponseOrBuilder> + getEdgeResponsesOrBuilderList() { + return edgeResponses_; + } + + /** + * + * + *
      +   * Probing results for all edge devices.
      +   * 
      + * + * + * repeated .google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse edge_responses = 10; + * + */ + @java.lang.Override + public int getEdgeResponsesCount() { + return edgeResponses_.size(); + } + + /** + * + * + *
      +   * Probing results for all edge devices.
      +   * 
      + * + * + * repeated .google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse edge_responses = 10; + * + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse + getEdgeResponses(int index) { + return edgeResponses_.get(index); + } + + /** + * + * + *
      +   * Probing results for all edge devices.
      +   * 
      + * + * + * repeated .google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse edge_responses = 10; + * + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponseOrBuilder + getEdgeResponsesOrBuilder(int index) { + return edgeResponses_.get(index); + } + + public static final int PROBED_ALL_DEVICES_FIELD_NUMBER = 11; + private boolean probedAllDevices_ = false; + + /** + * + * + *
      +   * Whether all relevant edge devices were probed.
      +   * 
      + * + * bool probed_all_devices = 11; + * + * @return The probedAllDevices. + */ + @java.lang.Override + public boolean getProbedAllDevices() { + return probedAllDevices_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1576,6 +3609,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(9, getDestinationEgressLocation()); } + for (int i = 0; i < edgeResponses_.size(); i++) { + output.writeMessage(10, edgeResponses_.get(i)); + } + if (probedAllDevices_ != false) { + output.writeBool(11, probedAllDevices_); + } getUnknownFields().writeTo(output); } @@ -1620,6 +3659,12 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 9, getDestinationEgressLocation()); } + for (int i = 0; i < edgeResponses_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, edgeResponses_.get(i)); + } + if (probedAllDevices_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, probedAllDevices_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1661,6 +3706,8 @@ public boolean equals(final java.lang.Object obj) { if (!getDestinationEgressLocation().equals(other.getDestinationEgressLocation())) return false; } + if (!getEdgeResponsesList().equals(other.getEdgeResponsesList())) return false; + if (getProbedAllDevices() != other.getProbedAllDevices()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1700,6 +3747,12 @@ public int hashCode() { hash = (37 * hash) + DESTINATION_EGRESS_LOCATION_FIELD_NUMBER; hash = (53 * hash) + getDestinationEgressLocation().hashCode(); } + if (getEdgeResponsesCount() > 0) { + hash = (37 * hash) + EDGE_RESPONSES_FIELD_NUMBER; + hash = (53 * hash) + getEdgeResponsesList().hashCode(); + } + hash = (37 * hash) + PROBED_ALL_DEVICES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getProbedAllDevices()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1821,528 +3874,1018 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.networkmanagement.v1beta1.TestOuterClass - .internal_static_google_cloud_networkmanagement_v1beta1_ProbingDetails_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.networkmanagement.v1beta1.ProbingDetails.class, - com.google.cloud.networkmanagement.v1beta1.ProbingDetails.Builder.class); + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1beta1.TestOuterClass + .internal_static_google_cloud_networkmanagement_v1beta1_ProbingDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.class, + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.Builder.class); + } + + // Construct using com.google.cloud.networkmanagement.v1beta1.ProbingDetails.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getVerifyTimeFieldBuilder(); + getErrorFieldBuilder(); + getEndpointInfoFieldBuilder(); + getProbingLatencyFieldBuilder(); + getDestinationEgressLocationFieldBuilder(); + getEdgeResponsesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + result_ = 0; + verifyTime_ = null; + if (verifyTimeBuilder_ != null) { + verifyTimeBuilder_.dispose(); + verifyTimeBuilder_ = null; + } + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); + errorBuilder_ = null; + } + abortCause_ = 0; + sentProbeCount_ = 0; + successfulProbeCount_ = 0; + endpointInfo_ = null; + if (endpointInfoBuilder_ != null) { + endpointInfoBuilder_.dispose(); + endpointInfoBuilder_ = null; + } + probingLatency_ = null; + if (probingLatencyBuilder_ != null) { + probingLatencyBuilder_.dispose(); + probingLatencyBuilder_ = null; + } + destinationEgressLocation_ = null; + if (destinationEgressLocationBuilder_ != null) { + destinationEgressLocationBuilder_.dispose(); + destinationEgressLocationBuilder_ = null; + } + if (edgeResponsesBuilder_ == null) { + edgeResponses_ = java.util.Collections.emptyList(); + } else { + edgeResponses_ = null; + edgeResponsesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000200); + probedAllDevices_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkmanagement.v1beta1.TestOuterClass + .internal_static_google_cloud_networkmanagement_v1beta1_ProbingDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.ProbingDetails getDefaultInstanceForType() { + return com.google.cloud.networkmanagement.v1beta1.ProbingDetails.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.ProbingDetails build() { + com.google.cloud.networkmanagement.v1beta1.ProbingDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.ProbingDetails buildPartial() { + com.google.cloud.networkmanagement.v1beta1.ProbingDetails result = + new com.google.cloud.networkmanagement.v1beta1.ProbingDetails(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networkmanagement.v1beta1.ProbingDetails result) { + if (edgeResponsesBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0)) { + edgeResponses_ = java.util.Collections.unmodifiableList(edgeResponses_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.edgeResponses_ = edgeResponses_; + } else { + result.edgeResponses_ = edgeResponsesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.networkmanagement.v1beta1.ProbingDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.result_ = result_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.verifyTime_ = verifyTimeBuilder_ == null ? verifyTime_ : verifyTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.abortCause_ = abortCause_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.sentProbeCount_ = sentProbeCount_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.successfulProbeCount_ = successfulProbeCount_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.endpointInfo_ = + endpointInfoBuilder_ == null ? endpointInfo_ : endpointInfoBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.probingLatency_ = + probingLatencyBuilder_ == null ? probingLatency_ : probingLatencyBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.destinationEgressLocation_ = + destinationEgressLocationBuilder_ == null + ? destinationEgressLocation_ + : destinationEgressLocationBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.probedAllDevices_ = probedAllDevices_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); } - // Construct using com.google.cloud.networkmanagement.v1beta1.ProbingDetails.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getVerifyTimeFieldBuilder(); - getErrorFieldBuilder(); - getEndpointInfoFieldBuilder(); - getProbingLatencyFieldBuilder(); - getDestinationEgressLocationFieldBuilder(); + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkmanagement.v1beta1.ProbingDetails) { + return mergeFrom((com.google.cloud.networkmanagement.v1beta1.ProbingDetails) other); + } else { + super.mergeFrom(other); + return this; } } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - result_ = 0; - verifyTime_ = null; - if (verifyTimeBuilder_ != null) { - verifyTimeBuilder_.dispose(); - verifyTimeBuilder_ = null; + public Builder mergeFrom(com.google.cloud.networkmanagement.v1beta1.ProbingDetails other) { + if (other == com.google.cloud.networkmanagement.v1beta1.ProbingDetails.getDefaultInstance()) + return this; + if (other.result_ != 0) { + setResultValue(other.getResultValue()); } - error_ = null; - if (errorBuilder_ != null) { - errorBuilder_.dispose(); - errorBuilder_ = null; + if (other.hasVerifyTime()) { + mergeVerifyTime(other.getVerifyTime()); } - abortCause_ = 0; - sentProbeCount_ = 0; - successfulProbeCount_ = 0; - endpointInfo_ = null; - if (endpointInfoBuilder_ != null) { - endpointInfoBuilder_.dispose(); - endpointInfoBuilder_ = null; + if (other.hasError()) { + mergeError(other.getError()); } - probingLatency_ = null; - if (probingLatencyBuilder_ != null) { - probingLatencyBuilder_.dispose(); - probingLatencyBuilder_ = null; + if (other.abortCause_ != 0) { + setAbortCauseValue(other.getAbortCauseValue()); } - destinationEgressLocation_ = null; - if (destinationEgressLocationBuilder_ != null) { - destinationEgressLocationBuilder_.dispose(); - destinationEgressLocationBuilder_ = null; + if (other.getSentProbeCount() != 0) { + setSentProbeCount(other.getSentProbeCount()); + } + if (other.getSuccessfulProbeCount() != 0) { + setSuccessfulProbeCount(other.getSuccessfulProbeCount()); + } + if (other.hasEndpointInfo()) { + mergeEndpointInfo(other.getEndpointInfo()); + } + if (other.hasProbingLatency()) { + mergeProbingLatency(other.getProbingLatency()); + } + if (other.hasDestinationEgressLocation()) { + mergeDestinationEgressLocation(other.getDestinationEgressLocation()); + } + if (edgeResponsesBuilder_ == null) { + if (!other.edgeResponses_.isEmpty()) { + if (edgeResponses_.isEmpty()) { + edgeResponses_ = other.edgeResponses_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureEdgeResponsesIsMutable(); + edgeResponses_.addAll(other.edgeResponses_); + } + onChanged(); + } + } else { + if (!other.edgeResponses_.isEmpty()) { + if (edgeResponsesBuilder_.isEmpty()) { + edgeResponsesBuilder_.dispose(); + edgeResponsesBuilder_ = null; + edgeResponses_ = other.edgeResponses_; + bitField0_ = (bitField0_ & ~0x00000200); + edgeResponsesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEdgeResponsesFieldBuilder() + : null; + } else { + edgeResponsesBuilder_.addAllMessages(other.edgeResponses_); + } + } + } + if (other.getProbedAllDevices() != false) { + setProbedAllDevices(other.getProbedAllDevices()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + result_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage(getVerifyTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + abortCause_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + sentProbeCount_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + successfulProbeCount_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + input.readMessage(getEndpointInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + input.readMessage(getProbingLatencyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: + { + input.readMessage( + getDestinationEgressLocationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse m = + input.readMessage( + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse + .parser(), + extensionRegistry); + if (edgeResponsesBuilder_ == null) { + ensureEdgeResponsesIsMutable(); + edgeResponses_.add(m); + } else { + edgeResponsesBuilder_.addMessage(m); + } + break; + } // case 82 + case 88: + { + probedAllDevices_ = input.readBool(); + bitField0_ |= 0x00000400; + break; + } // case 88 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int result_ = 0; + + /** + * + * + *
      +     * The overall result of active probing.
      +     * 
      + * + * .google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult result = 1; + * + * @return The enum numeric value on the wire for result. + */ + @java.lang.Override + public int getResultValue() { + return result_; + } + + /** + * + * + *
      +     * The overall result of active probing.
      +     * 
      + * + * .google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult result = 1; + * + * @param value The enum numeric value on the wire for result to set. + * @return This builder for chaining. + */ + public Builder setResultValue(int value) { + result_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The overall result of active probing.
      +     * 
      + * + * .google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult result = 1; + * + * @return The result. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult getResult() { + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult result = + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult.forNumber( + result_); + return result == null + ? com.google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult.UNRECOGNIZED + : result; + } + + /** + * + * + *
      +     * The overall result of active probing.
      +     * 
      + * + * .google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult result = 1; + * + * @param value The result to set. + * @return This builder for chaining. + */ + public Builder setResult( + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult value) { + if (value == null) { + throw new NullPointerException(); } + bitField0_ |= 0x00000001; + result_ = value.getNumber(); + onChanged(); return this; } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkmanagement.v1beta1.TestOuterClass - .internal_static_google_cloud_networkmanagement_v1beta1_ProbingDetails_descriptor; + /** + * + * + *
      +     * The overall result of active probing.
      +     * 
      + * + * .google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult result = 1; + * + * @return This builder for chaining. + */ + public Builder clearResult() { + bitField0_ = (bitField0_ & ~0x00000001); + result_ = 0; + onChanged(); + return this; } - @java.lang.Override - public com.google.cloud.networkmanagement.v1beta1.ProbingDetails getDefaultInstanceForType() { - return com.google.cloud.networkmanagement.v1beta1.ProbingDetails.getDefaultInstance(); + private com.google.protobuf.Timestamp verifyTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + verifyTimeBuilder_; + + /** + * + * + *
      +     * The time that reachability was assessed through active probing.
      +     * 
      + * + * .google.protobuf.Timestamp verify_time = 2; + * + * @return Whether the verifyTime field is set. + */ + public boolean hasVerifyTime() { + return ((bitField0_ & 0x00000002) != 0); } - @java.lang.Override - public com.google.cloud.networkmanagement.v1beta1.ProbingDetails build() { - com.google.cloud.networkmanagement.v1beta1.ProbingDetails result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + /** + * + * + *
      +     * The time that reachability was assessed through active probing.
      +     * 
      + * + * .google.protobuf.Timestamp verify_time = 2; + * + * @return The verifyTime. + */ + public com.google.protobuf.Timestamp getVerifyTime() { + if (verifyTimeBuilder_ == null) { + return verifyTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : verifyTime_; + } else { + return verifyTimeBuilder_.getMessage(); } - return result; } - @java.lang.Override - public com.google.cloud.networkmanagement.v1beta1.ProbingDetails buildPartial() { - com.google.cloud.networkmanagement.v1beta1.ProbingDetails result = - new com.google.cloud.networkmanagement.v1beta1.ProbingDetails(this); - if (bitField0_ != 0) { - buildPartial0(result); + /** + * + * + *
      +     * The time that reachability was assessed through active probing.
      +     * 
      + * + * .google.protobuf.Timestamp verify_time = 2; + */ + public Builder setVerifyTime(com.google.protobuf.Timestamp value) { + if (verifyTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + verifyTime_ = value; + } else { + verifyTimeBuilder_.setMessage(value); } - onBuilt(); - return result; + bitField0_ |= 0x00000002; + onChanged(); + return this; } - private void buildPartial0(com.google.cloud.networkmanagement.v1beta1.ProbingDetails result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.result_ = result_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.verifyTime_ = verifyTimeBuilder_ == null ? verifyTime_ : verifyTimeBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.abortCause_ = abortCause_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.sentProbeCount_ = sentProbeCount_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.successfulProbeCount_ = successfulProbeCount_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.endpointInfo_ = - endpointInfoBuilder_ == null ? endpointInfo_ : endpointInfoBuilder_.build(); - to_bitField0_ |= 0x00000004; + /** + * + * + *
      +     * The time that reachability was assessed through active probing.
      +     * 
      + * + * .google.protobuf.Timestamp verify_time = 2; + */ + public Builder setVerifyTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (verifyTimeBuilder_ == null) { + verifyTime_ = builderForValue.build(); + } else { + verifyTimeBuilder_.setMessage(builderForValue.build()); } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.probingLatency_ = - probingLatencyBuilder_ == null ? probingLatency_ : probingLatencyBuilder_.build(); - to_bitField0_ |= 0x00000008; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The time that reachability was assessed through active probing.
      +     * 
      + * + * .google.protobuf.Timestamp verify_time = 2; + */ + public Builder mergeVerifyTime(com.google.protobuf.Timestamp value) { + if (verifyTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && verifyTime_ != null + && verifyTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getVerifyTimeBuilder().mergeFrom(value); + } else { + verifyTime_ = value; + } + } else { + verifyTimeBuilder_.mergeFrom(value); } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.destinationEgressLocation_ = - destinationEgressLocationBuilder_ == null - ? destinationEgressLocation_ - : destinationEgressLocationBuilder_.build(); - to_bitField0_ |= 0x00000010; + if (verifyTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); } - result.bitField0_ |= to_bitField0_; + return this; } - @java.lang.Override - public Builder clone() { - return super.clone(); + /** + * + * + *
      +     * The time that reachability was assessed through active probing.
      +     * 
      + * + * .google.protobuf.Timestamp verify_time = 2; + */ + public Builder clearVerifyTime() { + bitField0_ = (bitField0_ & ~0x00000002); + verifyTime_ = null; + if (verifyTimeBuilder_ != null) { + verifyTimeBuilder_.dispose(); + verifyTimeBuilder_ = null; + } + onChanged(); + return this; } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); + /** + * + * + *
      +     * The time that reachability was assessed through active probing.
      +     * 
      + * + * .google.protobuf.Timestamp verify_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getVerifyTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getVerifyTimeFieldBuilder().getBuilder(); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + /** + * + * + *
      +     * The time that reachability was assessed through active probing.
      +     * 
      + * + * .google.protobuf.Timestamp verify_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getVerifyTimeOrBuilder() { + if (verifyTimeBuilder_ != null) { + return verifyTimeBuilder_.getMessageOrBuilder(); + } else { + return verifyTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : verifyTime_; + } } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + /** + * + * + *
      +     * The time that reachability was assessed through active probing.
      +     * 
      + * + * .google.protobuf.Timestamp verify_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getVerifyTimeFieldBuilder() { + if (verifyTimeBuilder_ == null) { + verifyTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getVerifyTime(), getParentForChildren(), isClean()); + verifyTime_ = null; + } + return verifyTimeBuilder_; } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } + private com.google.rpc.Status error_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorBuilder_; - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + /** + * + * + *
      +     * Details about an internal failure or the cancellation of active probing.
      +     * 
      + * + * .google.rpc.Status error = 3; + * + * @return Whether the error field is set. + */ + public boolean hasError() { + return ((bitField0_ & 0x00000004) != 0); } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.networkmanagement.v1beta1.ProbingDetails) { - return mergeFrom((com.google.cloud.networkmanagement.v1beta1.ProbingDetails) other); + /** + * + * + *
      +     * Details about an internal failure or the cancellation of active probing.
      +     * 
      + * + * .google.rpc.Status error = 3; + * + * @return The error. + */ + public com.google.rpc.Status getError() { + if (errorBuilder_ == null) { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } else { - super.mergeFrom(other); - return this; + return errorBuilder_.getMessage(); } } - public Builder mergeFrom(com.google.cloud.networkmanagement.v1beta1.ProbingDetails other) { - if (other == com.google.cloud.networkmanagement.v1beta1.ProbingDetails.getDefaultInstance()) - return this; - if (other.result_ != 0) { - setResultValue(other.getResultValue()); - } - if (other.hasVerifyTime()) { - mergeVerifyTime(other.getVerifyTime()); - } - if (other.hasError()) { - mergeError(other.getError()); - } - if (other.abortCause_ != 0) { - setAbortCauseValue(other.getAbortCauseValue()); - } - if (other.getSentProbeCount() != 0) { - setSentProbeCount(other.getSentProbeCount()); - } - if (other.getSuccessfulProbeCount() != 0) { - setSuccessfulProbeCount(other.getSuccessfulProbeCount()); - } - if (other.hasEndpointInfo()) { - mergeEndpointInfo(other.getEndpointInfo()); - } - if (other.hasProbingLatency()) { - mergeProbingLatency(other.getProbingLatency()); - } - if (other.hasDestinationEgressLocation()) { - mergeDestinationEgressLocation(other.getDestinationEgressLocation()); + /** + * + * + *
      +     * Details about an internal failure or the cancellation of active probing.
      +     * 
      + * + * .google.rpc.Status error = 3; + */ + public Builder setError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + error_ = value; + } else { + errorBuilder_.setMessage(value); } - this.mergeUnknownFields(other.getUnknownFields()); + bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + * + * + *
      +     * Details about an internal failure or the cancellation of active probing.
      +     * 
      + * + * .google.rpc.Status error = 3; + */ + public Builder setError(com.google.rpc.Status.Builder builderForValue) { + if (errorBuilder_ == null) { + error_ = builderForValue.build(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + 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(); + /** + * + * + *
      +     * Details about an internal failure or the cancellation of active probing.
      +     * 
      + * + * .google.rpc.Status error = 3; + */ + public Builder mergeError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && error_ != null + && error_ != com.google.rpc.Status.getDefaultInstance()) { + getErrorBuilder().mergeFrom(value); + } else { + error_ = value; + } + } else { + errorBuilder_.mergeFrom(value); } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - result_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - input.readMessage(getVerifyTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - abortCause_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: - { - sentProbeCount_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: - { - successfulProbeCount_ = input.readInt32(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 58: - { - input.readMessage(getEndpointInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: - { - input.readMessage(getProbingLatencyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 74: - { - input.readMessage( - getDestinationEgressLocationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 74 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { + if (error_ != null) { + bitField0_ |= 0x00000004; onChanged(); - } // finally + } return this; } - private int bitField0_; - - private int result_ = 0; - /** * * *
      -     * The overall result of active probing.
      +     * Details about an internal failure or the cancellation of active probing.
            * 
      * - * .google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult result = 1; - * - * @return The enum numeric value on the wire for result. + * .google.rpc.Status error = 3; */ - @java.lang.Override - public int getResultValue() { - return result_; + public Builder clearError() { + bitField0_ = (bitField0_ & ~0x00000004); + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); + errorBuilder_ = null; + } + onChanged(); + return this; } /** * * *
      -     * The overall result of active probing.
      +     * Details about an internal failure or the cancellation of active probing.
            * 
      * - * .google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult result = 1; - * - * @param value The enum numeric value on the wire for result to set. - * @return This builder for chaining. + * .google.rpc.Status error = 3; */ - public Builder setResultValue(int value) { - result_ = value; - bitField0_ |= 0x00000001; + public com.google.rpc.Status.Builder getErrorBuilder() { + bitField0_ |= 0x00000004; onChanged(); - return this; + return getErrorFieldBuilder().getBuilder(); } /** * * *
      -     * The overall result of active probing.
      +     * Details about an internal failure or the cancellation of active probing.
            * 
      * - * .google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult result = 1; + * .google.rpc.Status error = 3; + */ + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + if (errorBuilder_ != null) { + return errorBuilder_.getMessageOrBuilder(); + } else { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + } + + /** * - * @return The result. + * + *
      +     * Details about an internal failure or the cancellation of active probing.
      +     * 
      + * + * .google.rpc.Status error = 3; */ - @java.lang.Override - public com.google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult getResult() { - com.google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult result = - com.google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult.forNumber( - result_); - return result == null - ? com.google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult.UNRECOGNIZED - : result; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + errorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean()); + error_ = null; + } + return errorBuilder_; } + private int abortCause_ = 0; + /** * * *
      -     * The overall result of active probing.
      +     * The reason probing was aborted.
            * 
      * - * .google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult result = 1; + * + * .google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingAbortCause abort_cause = 4; + * * - * @param value The result to set. - * @return This builder for chaining. + * @return The enum numeric value on the wire for abortCause. */ - public Builder setResult( - com.google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - result_ = value.getNumber(); - onChanged(); - return this; + @java.lang.Override + public int getAbortCauseValue() { + return abortCause_; } /** * * *
      -     * The overall result of active probing.
      +     * The reason probing was aborted.
            * 
      * - * .google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingResult result = 1; + * + * .google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingAbortCause abort_cause = 4; + * * + * @param value The enum numeric value on the wire for abortCause to set. * @return This builder for chaining. */ - public Builder clearResult() { - bitField0_ = (bitField0_ & ~0x00000001); - result_ = 0; + public Builder setAbortCauseValue(int value) { + abortCause_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } - private com.google.protobuf.Timestamp verifyTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - verifyTimeBuilder_; - /** * * *
      -     * The time that reachability was assessed through active probing.
      +     * The reason probing was aborted.
            * 
      * - * .google.protobuf.Timestamp verify_time = 2; + * + * .google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingAbortCause abort_cause = 4; + * * - * @return Whether the verifyTime field is set. + * @return The abortCause. */ - public boolean hasVerifyTime() { - return ((bitField0_ & 0x00000002) != 0); + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingAbortCause + getAbortCause() { + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingAbortCause result = + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingAbortCause.forNumber( + abortCause_); + return result == null + ? com.google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingAbortCause.UNRECOGNIZED + : result; } /** * * *
      -     * The time that reachability was assessed through active probing.
      +     * The reason probing was aborted.
            * 
      * - * .google.protobuf.Timestamp verify_time = 2; + * + * .google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingAbortCause abort_cause = 4; + * * - * @return The verifyTime. + * @param value The abortCause to set. + * @return This builder for chaining. */ - public com.google.protobuf.Timestamp getVerifyTime() { - if (verifyTimeBuilder_ == null) { - return verifyTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : verifyTime_; - } else { - return verifyTimeBuilder_.getMessage(); + public Builder setAbortCause( + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingAbortCause value) { + if (value == null) { + throw new NullPointerException(); } + bitField0_ |= 0x00000008; + abortCause_ = value.getNumber(); + onChanged(); + return this; } /** * * *
      -     * The time that reachability was assessed through active probing.
      +     * The reason probing was aborted.
            * 
      * - * .google.protobuf.Timestamp verify_time = 2; + * + * .google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingAbortCause abort_cause = 4; + * + * + * @return This builder for chaining. */ - public Builder setVerifyTime(com.google.protobuf.Timestamp value) { - if (verifyTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - verifyTime_ = value; - } else { - verifyTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; + public Builder clearAbortCause() { + bitField0_ = (bitField0_ & ~0x00000008); + abortCause_ = 0; onChanged(); return this; } + private int sentProbeCount_; + /** * * *
      -     * The time that reachability was assessed through active probing.
      +     * Number of probes sent.
            * 
      * - * .google.protobuf.Timestamp verify_time = 2; + * int32 sent_probe_count = 5; + * + * @return The sentProbeCount. */ - public Builder setVerifyTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (verifyTimeBuilder_ == null) { - verifyTime_ = builderForValue.build(); - } else { - verifyTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; + @java.lang.Override + public int getSentProbeCount() { + return sentProbeCount_; } /** * * *
      -     * The time that reachability was assessed through active probing.
      +     * Number of probes sent.
            * 
      * - * .google.protobuf.Timestamp verify_time = 2; + * int32 sent_probe_count = 5; + * + * @param value The sentProbeCount to set. + * @return This builder for chaining. */ - public Builder mergeVerifyTime(com.google.protobuf.Timestamp value) { - if (verifyTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && verifyTime_ != null - && verifyTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getVerifyTimeBuilder().mergeFrom(value); - } else { - verifyTime_ = value; - } - } else { - verifyTimeBuilder_.mergeFrom(value); - } - if (verifyTime_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } + public Builder setSentProbeCount(int value) { + + sentProbeCount_ = value; + bitField0_ |= 0x00000010; + onChanged(); return this; } @@ -2350,118 +4893,118 @@ public Builder mergeVerifyTime(com.google.protobuf.Timestamp value) { * * *
      -     * The time that reachability was assessed through active probing.
      +     * Number of probes sent.
            * 
      * - * .google.protobuf.Timestamp verify_time = 2; + * int32 sent_probe_count = 5; + * + * @return This builder for chaining. */ - public Builder clearVerifyTime() { - bitField0_ = (bitField0_ & ~0x00000002); - verifyTime_ = null; - if (verifyTimeBuilder_ != null) { - verifyTimeBuilder_.dispose(); - verifyTimeBuilder_ = null; - } + public Builder clearSentProbeCount() { + bitField0_ = (bitField0_ & ~0x00000010); + sentProbeCount_ = 0; onChanged(); return this; } + private int successfulProbeCount_; + /** * * *
      -     * The time that reachability was assessed through active probing.
      +     * Number of probes that reached the destination.
            * 
      * - * .google.protobuf.Timestamp verify_time = 2; + * int32 successful_probe_count = 6; + * + * @return The successfulProbeCount. */ - public com.google.protobuf.Timestamp.Builder getVerifyTimeBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getVerifyTimeFieldBuilder().getBuilder(); + @java.lang.Override + public int getSuccessfulProbeCount() { + return successfulProbeCount_; } /** * * *
      -     * The time that reachability was assessed through active probing.
      +     * Number of probes that reached the destination.
            * 
      * - * .google.protobuf.Timestamp verify_time = 2; + * int32 successful_probe_count = 6; + * + * @param value The successfulProbeCount to set. + * @return This builder for chaining. */ - public com.google.protobuf.TimestampOrBuilder getVerifyTimeOrBuilder() { - if (verifyTimeBuilder_ != null) { - return verifyTimeBuilder_.getMessageOrBuilder(); - } else { - return verifyTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : verifyTime_; - } + public Builder setSuccessfulProbeCount(int value) { + + successfulProbeCount_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; } /** * * *
      -     * The time that reachability was assessed through active probing.
      +     * Number of probes that reached the destination.
            * 
      * - * .google.protobuf.Timestamp verify_time = 2; + * int32 successful_probe_count = 6; + * + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getVerifyTimeFieldBuilder() { - if (verifyTimeBuilder_ == null) { - verifyTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getVerifyTime(), getParentForChildren(), isClean()); - verifyTime_ = null; - } - return verifyTimeBuilder_; + public Builder clearSuccessfulProbeCount() { + bitField0_ = (bitField0_ & ~0x00000020); + successfulProbeCount_ = 0; + onChanged(); + return this; } - private com.google.rpc.Status error_; + private com.google.cloud.networkmanagement.v1beta1.EndpointInfo endpointInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - errorBuilder_; + com.google.cloud.networkmanagement.v1beta1.EndpointInfo, + com.google.cloud.networkmanagement.v1beta1.EndpointInfo.Builder, + com.google.cloud.networkmanagement.v1beta1.EndpointInfoOrBuilder> + endpointInfoBuilder_; /** * * *
      -     * Details about an internal failure or the cancellation of active probing.
      +     * The source and destination endpoints derived from the test input and used
      +     * for active probing.
            * 
      * - * .google.rpc.Status error = 3; + * .google.cloud.networkmanagement.v1beta1.EndpointInfo endpoint_info = 7; * - * @return Whether the error field is set. + * @return Whether the endpointInfo field is set. */ - public boolean hasError() { - return ((bitField0_ & 0x00000004) != 0); + public boolean hasEndpointInfo() { + return ((bitField0_ & 0x00000040) != 0); } /** * * *
      -     * Details about an internal failure or the cancellation of active probing.
      +     * The source and destination endpoints derived from the test input and used
      +     * for active probing.
            * 
      * - * .google.rpc.Status error = 3; + * .google.cloud.networkmanagement.v1beta1.EndpointInfo endpoint_info = 7; * - * @return The error. + * @return The endpointInfo. */ - public com.google.rpc.Status getError() { - if (errorBuilder_ == null) { - return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + public com.google.cloud.networkmanagement.v1beta1.EndpointInfo getEndpointInfo() { + if (endpointInfoBuilder_ == null) { + return endpointInfo_ == null + ? com.google.cloud.networkmanagement.v1beta1.EndpointInfo.getDefaultInstance() + : endpointInfo_; } else { - return errorBuilder_.getMessage(); + return endpointInfoBuilder_.getMessage(); } } @@ -2469,21 +5012,22 @@ public com.google.rpc.Status getError() { * * *
      -     * Details about an internal failure or the cancellation of active probing.
      +     * The source and destination endpoints derived from the test input and used
      +     * for active probing.
            * 
      * - * .google.rpc.Status error = 3; + * .google.cloud.networkmanagement.v1beta1.EndpointInfo endpoint_info = 7; */ - public Builder setError(com.google.rpc.Status value) { - if (errorBuilder_ == null) { + public Builder setEndpointInfo(com.google.cloud.networkmanagement.v1beta1.EndpointInfo value) { + if (endpointInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - error_ = value; + endpointInfo_ = value; } else { - errorBuilder_.setMessage(value); + endpointInfoBuilder_.setMessage(value); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2492,18 +5036,20 @@ public Builder setError(com.google.rpc.Status value) { * * *
      -     * Details about an internal failure or the cancellation of active probing.
      +     * The source and destination endpoints derived from the test input and used
      +     * for active probing.
            * 
      * - * .google.rpc.Status error = 3; + * .google.cloud.networkmanagement.v1beta1.EndpointInfo endpoint_info = 7; */ - public Builder setError(com.google.rpc.Status.Builder builderForValue) { - if (errorBuilder_ == null) { - error_ = builderForValue.build(); + public Builder setEndpointInfo( + com.google.cloud.networkmanagement.v1beta1.EndpointInfo.Builder builderForValue) { + if (endpointInfoBuilder_ == null) { + endpointInfo_ = builderForValue.build(); } else { - errorBuilder_.setMessage(builderForValue.build()); + endpointInfoBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2512,25 +5058,28 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { * * *
      -     * Details about an internal failure or the cancellation of active probing.
      +     * The source and destination endpoints derived from the test input and used
      +     * for active probing.
            * 
      * - * .google.rpc.Status error = 3; + * .google.cloud.networkmanagement.v1beta1.EndpointInfo endpoint_info = 7; */ - public Builder mergeError(com.google.rpc.Status value) { - if (errorBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && error_ != null - && error_ != com.google.rpc.Status.getDefaultInstance()) { - getErrorBuilder().mergeFrom(value); + public Builder mergeEndpointInfo( + com.google.cloud.networkmanagement.v1beta1.EndpointInfo value) { + if (endpointInfoBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && endpointInfo_ != null + && endpointInfo_ + != com.google.cloud.networkmanagement.v1beta1.EndpointInfo.getDefaultInstance()) { + getEndpointInfoBuilder().mergeFrom(value); } else { - error_ = value; + endpointInfo_ = value; } } else { - errorBuilder_.mergeFrom(value); + endpointInfoBuilder_.mergeFrom(value); } - if (error_ != null) { - bitField0_ |= 0x00000004; + if (endpointInfo_ != null) { + bitField0_ |= 0x00000040; onChanged(); } return this; @@ -2540,17 +5089,18 @@ public Builder mergeError(com.google.rpc.Status value) { * * *
      -     * Details about an internal failure or the cancellation of active probing.
      +     * The source and destination endpoints derived from the test input and used
      +     * for active probing.
            * 
      * - * .google.rpc.Status error = 3; + * .google.cloud.networkmanagement.v1beta1.EndpointInfo endpoint_info = 7; */ - public Builder clearError() { - bitField0_ = (bitField0_ & ~0x00000004); - error_ = null; - if (errorBuilder_ != null) { - errorBuilder_.dispose(); - errorBuilder_ = null; + public Builder clearEndpointInfo() { + bitField0_ = (bitField0_ & ~0x00000040); + endpointInfo_ = null; + if (endpointInfoBuilder_ != null) { + endpointInfoBuilder_.dispose(); + endpointInfoBuilder_ = null; } onChanged(); return this; @@ -2560,31 +5110,37 @@ public Builder clearError() { * * *
      -     * Details about an internal failure or the cancellation of active probing.
      +     * The source and destination endpoints derived from the test input and used
      +     * for active probing.
            * 
      * - * .google.rpc.Status error = 3; + * .google.cloud.networkmanagement.v1beta1.EndpointInfo endpoint_info = 7; */ - public com.google.rpc.Status.Builder getErrorBuilder() { - bitField0_ |= 0x00000004; + public com.google.cloud.networkmanagement.v1beta1.EndpointInfo.Builder + getEndpointInfoBuilder() { + bitField0_ |= 0x00000040; onChanged(); - return getErrorFieldBuilder().getBuilder(); + return getEndpointInfoFieldBuilder().getBuilder(); } /** * * *
      -     * Details about an internal failure or the cancellation of active probing.
      +     * The source and destination endpoints derived from the test input and used
      +     * for active probing.
            * 
      * - * .google.rpc.Status error = 3; + * .google.cloud.networkmanagement.v1beta1.EndpointInfo endpoint_info = 7; */ - public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { - if (errorBuilder_ != null) { - return errorBuilder_.getMessageOrBuilder(); + public com.google.cloud.networkmanagement.v1beta1.EndpointInfoOrBuilder + getEndpointInfoOrBuilder() { + if (endpointInfoBuilder_ != null) { + return endpointInfoBuilder_.getMessageOrBuilder(); } else { - return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + return endpointInfo_ == null + ? com.google.cloud.networkmanagement.v1beta1.EndpointInfo.getDefaultInstance() + : endpointInfo_; } } @@ -2592,170 +5148,150 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { * * *
      -     * Details about an internal failure or the cancellation of active probing.
      +     * The source and destination endpoints derived from the test input and used
      +     * for active probing.
            * 
      * - * .google.rpc.Status error = 3; + * .google.cloud.networkmanagement.v1beta1.EndpointInfo endpoint_info = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - getErrorFieldBuilder() { - if (errorBuilder_ == null) { - errorBuilder_ = + com.google.cloud.networkmanagement.v1beta1.EndpointInfo, + com.google.cloud.networkmanagement.v1beta1.EndpointInfo.Builder, + com.google.cloud.networkmanagement.v1beta1.EndpointInfoOrBuilder> + getEndpointInfoFieldBuilder() { + if (endpointInfoBuilder_ == null) { + endpointInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, - com.google.rpc.Status.Builder, - com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean()); - error_ = null; + com.google.cloud.networkmanagement.v1beta1.EndpointInfo, + com.google.cloud.networkmanagement.v1beta1.EndpointInfo.Builder, + com.google.cloud.networkmanagement.v1beta1.EndpointInfoOrBuilder>( + getEndpointInfo(), getParentForChildren(), isClean()); + endpointInfo_ = null; } - return errorBuilder_; - } - - private int abortCause_ = 0; - - /** - * - * - *
      -     * The reason probing was aborted.
      -     * 
      - * - * - * .google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingAbortCause abort_cause = 4; - * - * - * @return The enum numeric value on the wire for abortCause. - */ - @java.lang.Override - public int getAbortCauseValue() { - return abortCause_; - } - - /** - * - * - *
      -     * The reason probing was aborted.
      -     * 
      - * - * - * .google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingAbortCause abort_cause = 4; - * - * - * @param value The enum numeric value on the wire for abortCause to set. - * @return This builder for chaining. - */ - public Builder setAbortCauseValue(int value) { - abortCause_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; + return endpointInfoBuilder_; } + private com.google.cloud.networkmanagement.v1beta1.LatencyDistribution probingLatency_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1beta1.LatencyDistribution, + com.google.cloud.networkmanagement.v1beta1.LatencyDistribution.Builder, + com.google.cloud.networkmanagement.v1beta1.LatencyDistributionOrBuilder> + probingLatencyBuilder_; + /** * * *
      -     * The reason probing was aborted.
      +     * Latency as measured by active probing in one direction:
      +     * from the source to the destination endpoint.
            * 
      * - * - * .google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingAbortCause abort_cause = 4; - * + * .google.cloud.networkmanagement.v1beta1.LatencyDistribution probing_latency = 8; * - * @return The abortCause. + * @return Whether the probingLatency field is set. */ - @java.lang.Override - public com.google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingAbortCause - getAbortCause() { - com.google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingAbortCause result = - com.google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingAbortCause.forNumber( - abortCause_); - return result == null - ? com.google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingAbortCause.UNRECOGNIZED - : result; + public boolean hasProbingLatency() { + return ((bitField0_ & 0x00000080) != 0); } /** * * *
      -     * The reason probing was aborted.
      +     * Latency as measured by active probing in one direction:
      +     * from the source to the destination endpoint.
            * 
      * - * - * .google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingAbortCause abort_cause = 4; - * + * .google.cloud.networkmanagement.v1beta1.LatencyDistribution probing_latency = 8; * - * @param value The abortCause to set. - * @return This builder for chaining. + * @return The probingLatency. */ - public Builder setAbortCause( - com.google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingAbortCause value) { - if (value == null) { - throw new NullPointerException(); + public com.google.cloud.networkmanagement.v1beta1.LatencyDistribution getProbingLatency() { + if (probingLatencyBuilder_ == null) { + return probingLatency_ == null + ? com.google.cloud.networkmanagement.v1beta1.LatencyDistribution.getDefaultInstance() + : probingLatency_; + } else { + return probingLatencyBuilder_.getMessage(); } - bitField0_ |= 0x00000008; - abortCause_ = value.getNumber(); - onChanged(); - return this; } /** * * *
      -     * The reason probing was aborted.
      +     * Latency as measured by active probing in one direction:
      +     * from the source to the destination endpoint.
            * 
      * - * - * .google.cloud.networkmanagement.v1beta1.ProbingDetails.ProbingAbortCause abort_cause = 4; - * - * - * @return This builder for chaining. + * .google.cloud.networkmanagement.v1beta1.LatencyDistribution probing_latency = 8; */ - public Builder clearAbortCause() { - bitField0_ = (bitField0_ & ~0x00000008); - abortCause_ = 0; + public Builder setProbingLatency( + com.google.cloud.networkmanagement.v1beta1.LatencyDistribution value) { + if (probingLatencyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + probingLatency_ = value; + } else { + probingLatencyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; onChanged(); return this; } - private int sentProbeCount_; - /** * * *
      -     * Number of probes sent.
      +     * Latency as measured by active probing in one direction:
      +     * from the source to the destination endpoint.
            * 
      * - * int32 sent_probe_count = 5; - * - * @return The sentProbeCount. + * .google.cloud.networkmanagement.v1beta1.LatencyDistribution probing_latency = 8; */ - @java.lang.Override - public int getSentProbeCount() { - return sentProbeCount_; + public Builder setProbingLatency( + com.google.cloud.networkmanagement.v1beta1.LatencyDistribution.Builder builderForValue) { + if (probingLatencyBuilder_ == null) { + probingLatency_ = builderForValue.build(); + } else { + probingLatencyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; } /** * * *
      -     * Number of probes sent.
      +     * Latency as measured by active probing in one direction:
      +     * from the source to the destination endpoint.
            * 
      * - * int32 sent_probe_count = 5; - * - * @param value The sentProbeCount to set. - * @return This builder for chaining. + * .google.cloud.networkmanagement.v1beta1.LatencyDistribution probing_latency = 8; */ - public Builder setSentProbeCount(int value) { - - sentProbeCount_ = value; - bitField0_ |= 0x00000010; - onChanged(); + public Builder mergeProbingLatency( + com.google.cloud.networkmanagement.v1beta1.LatencyDistribution value) { + if (probingLatencyBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && probingLatency_ != null + && probingLatency_ + != com.google.cloud.networkmanagement.v1beta1.LatencyDistribution + .getDefaultInstance()) { + getProbingLatencyBuilder().mergeFrom(value); + } else { + probingLatency_ = value; + } + } else { + probingLatencyBuilder_.mergeFrom(value); + } + if (probingLatency_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } return this; } @@ -2763,118 +5299,145 @@ public Builder setSentProbeCount(int value) { * * *
      -     * Number of probes sent.
      +     * Latency as measured by active probing in one direction:
      +     * from the source to the destination endpoint.
            * 
      * - * int32 sent_probe_count = 5; - * - * @return This builder for chaining. + * .google.cloud.networkmanagement.v1beta1.LatencyDistribution probing_latency = 8; */ - public Builder clearSentProbeCount() { - bitField0_ = (bitField0_ & ~0x00000010); - sentProbeCount_ = 0; + public Builder clearProbingLatency() { + bitField0_ = (bitField0_ & ~0x00000080); + probingLatency_ = null; + if (probingLatencyBuilder_ != null) { + probingLatencyBuilder_.dispose(); + probingLatencyBuilder_ = null; + } onChanged(); return this; } - private int successfulProbeCount_; - /** * * *
      -     * Number of probes that reached the destination.
      +     * Latency as measured by active probing in one direction:
      +     * from the source to the destination endpoint.
            * 
      * - * int32 successful_probe_count = 6; - * - * @return The successfulProbeCount. + * .google.cloud.networkmanagement.v1beta1.LatencyDistribution probing_latency = 8; */ - @java.lang.Override - public int getSuccessfulProbeCount() { - return successfulProbeCount_; + public com.google.cloud.networkmanagement.v1beta1.LatencyDistribution.Builder + getProbingLatencyBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getProbingLatencyFieldBuilder().getBuilder(); } /** * * *
      -     * Number of probes that reached the destination.
      +     * Latency as measured by active probing in one direction:
      +     * from the source to the destination endpoint.
            * 
      * - * int32 successful_probe_count = 6; - * - * @param value The successfulProbeCount to set. - * @return This builder for chaining. + * .google.cloud.networkmanagement.v1beta1.LatencyDistribution probing_latency = 8; */ - public Builder setSuccessfulProbeCount(int value) { - - successfulProbeCount_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; + public com.google.cloud.networkmanagement.v1beta1.LatencyDistributionOrBuilder + getProbingLatencyOrBuilder() { + if (probingLatencyBuilder_ != null) { + return probingLatencyBuilder_.getMessageOrBuilder(); + } else { + return probingLatency_ == null + ? com.google.cloud.networkmanagement.v1beta1.LatencyDistribution.getDefaultInstance() + : probingLatency_; + } } /** * * *
      -     * Number of probes that reached the destination.
      +     * Latency as measured by active probing in one direction:
      +     * from the source to the destination endpoint.
            * 
      * - * int32 successful_probe_count = 6; - * - * @return This builder for chaining. + * .google.cloud.networkmanagement.v1beta1.LatencyDistribution probing_latency = 8; */ - public Builder clearSuccessfulProbeCount() { - bitField0_ = (bitField0_ & ~0x00000020); - successfulProbeCount_ = 0; - onChanged(); - return this; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1beta1.LatencyDistribution, + com.google.cloud.networkmanagement.v1beta1.LatencyDistribution.Builder, + com.google.cloud.networkmanagement.v1beta1.LatencyDistributionOrBuilder> + getProbingLatencyFieldBuilder() { + if (probingLatencyBuilder_ == null) { + probingLatencyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1beta1.LatencyDistribution, + com.google.cloud.networkmanagement.v1beta1.LatencyDistribution.Builder, + com.google.cloud.networkmanagement.v1beta1.LatencyDistributionOrBuilder>( + getProbingLatency(), getParentForChildren(), isClean()); + probingLatency_ = null; + } + return probingLatencyBuilder_; } - private com.google.cloud.networkmanagement.v1beta1.EndpointInfo endpointInfo_; + private com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation + destinationEgressLocation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkmanagement.v1beta1.EndpointInfo, - com.google.cloud.networkmanagement.v1beta1.EndpointInfo.Builder, - com.google.cloud.networkmanagement.v1beta1.EndpointInfoOrBuilder> - endpointInfoBuilder_; + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation, + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation.Builder, + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocationOrBuilder> + destinationEgressLocationBuilder_; /** * * *
      -     * The source and destination endpoints derived from the test input and used
      -     * for active probing.
      +     * The EdgeLocation from which a packet, destined to the internet, will egress
      +     * the Google network.
      +     * This will only be populated for a connectivity test which has an internet
      +     * destination address.
      +     * The absence of this field *must not* be used as an indication that the
      +     * destination is part of the Google network.
            * 
      * - * .google.cloud.networkmanagement.v1beta1.EndpointInfo endpoint_info = 7; + * + * .google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation destination_egress_location = 9; + * * - * @return Whether the endpointInfo field is set. + * @return Whether the destinationEgressLocation field is set. */ - public boolean hasEndpointInfo() { - return ((bitField0_ & 0x00000040) != 0); + public boolean hasDestinationEgressLocation() { + return ((bitField0_ & 0x00000100) != 0); } /** * * *
      -     * The source and destination endpoints derived from the test input and used
      -     * for active probing.
      +     * The EdgeLocation from which a packet, destined to the internet, will egress
      +     * the Google network.
      +     * This will only be populated for a connectivity test which has an internet
      +     * destination address.
      +     * The absence of this field *must not* be used as an indication that the
      +     * destination is part of the Google network.
            * 
      * - * .google.cloud.networkmanagement.v1beta1.EndpointInfo endpoint_info = 7; + * + * .google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation destination_egress_location = 9; + * * - * @return The endpointInfo. + * @return The destinationEgressLocation. */ - public com.google.cloud.networkmanagement.v1beta1.EndpointInfo getEndpointInfo() { - if (endpointInfoBuilder_ == null) { - return endpointInfo_ == null - ? com.google.cloud.networkmanagement.v1beta1.EndpointInfo.getDefaultInstance() - : endpointInfo_; + public com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation + getDestinationEgressLocation() { + if (destinationEgressLocationBuilder_ == null) { + return destinationEgressLocation_ == null + ? com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation + .getDefaultInstance() + : destinationEgressLocation_; } else { - return endpointInfoBuilder_.getMessage(); + return destinationEgressLocationBuilder_.getMessage(); } } @@ -2882,22 +5445,29 @@ public com.google.cloud.networkmanagement.v1beta1.EndpointInfo getEndpointInfo() * * *
      -     * The source and destination endpoints derived from the test input and used
      -     * for active probing.
      +     * The EdgeLocation from which a packet, destined to the internet, will egress
      +     * the Google network.
      +     * This will only be populated for a connectivity test which has an internet
      +     * destination address.
      +     * The absence of this field *must not* be used as an indication that the
      +     * destination is part of the Google network.
            * 
      * - * .google.cloud.networkmanagement.v1beta1.EndpointInfo endpoint_info = 7; + * + * .google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation destination_egress_location = 9; + * */ - public Builder setEndpointInfo(com.google.cloud.networkmanagement.v1beta1.EndpointInfo value) { - if (endpointInfoBuilder_ == null) { + public Builder setDestinationEgressLocation( + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation value) { + if (destinationEgressLocationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - endpointInfo_ = value; + destinationEgressLocation_ = value; } else { - endpointInfoBuilder_.setMessage(value); + destinationEgressLocationBuilder_.setMessage(value); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2906,20 +5476,27 @@ public Builder setEndpointInfo(com.google.cloud.networkmanagement.v1beta1.Endpoi * * *
      -     * The source and destination endpoints derived from the test input and used
      -     * for active probing.
      +     * The EdgeLocation from which a packet, destined to the internet, will egress
      +     * the Google network.
      +     * This will only be populated for a connectivity test which has an internet
      +     * destination address.
      +     * The absence of this field *must not* be used as an indication that the
      +     * destination is part of the Google network.
            * 
      * - * .google.cloud.networkmanagement.v1beta1.EndpointInfo endpoint_info = 7; + * + * .google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation destination_egress_location = 9; + * */ - public Builder setEndpointInfo( - com.google.cloud.networkmanagement.v1beta1.EndpointInfo.Builder builderForValue) { - if (endpointInfoBuilder_ == null) { - endpointInfo_ = builderForValue.build(); + public Builder setDestinationEgressLocation( + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation.Builder + builderForValue) { + if (destinationEgressLocationBuilder_ == null) { + destinationEgressLocation_ = builderForValue.build(); } else { - endpointInfoBuilder_.setMessage(builderForValue.build()); + destinationEgressLocationBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2928,28 +5505,35 @@ public Builder setEndpointInfo( * * *
      -     * The source and destination endpoints derived from the test input and used
      -     * for active probing.
      +     * The EdgeLocation from which a packet, destined to the internet, will egress
      +     * the Google network.
      +     * This will only be populated for a connectivity test which has an internet
      +     * destination address.
      +     * The absence of this field *must not* be used as an indication that the
      +     * destination is part of the Google network.
            * 
      * - * .google.cloud.networkmanagement.v1beta1.EndpointInfo endpoint_info = 7; + * + * .google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation destination_egress_location = 9; + * */ - public Builder mergeEndpointInfo( - com.google.cloud.networkmanagement.v1beta1.EndpointInfo value) { - if (endpointInfoBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && endpointInfo_ != null - && endpointInfo_ - != com.google.cloud.networkmanagement.v1beta1.EndpointInfo.getDefaultInstance()) { - getEndpointInfoBuilder().mergeFrom(value); + public Builder mergeDestinationEgressLocation( + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation value) { + if (destinationEgressLocationBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && destinationEgressLocation_ != null + && destinationEgressLocation_ + != com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation + .getDefaultInstance()) { + getDestinationEgressLocationBuilder().mergeFrom(value); } else { - endpointInfo_ = value; + destinationEgressLocation_ = value; } } else { - endpointInfoBuilder_.mergeFrom(value); + destinationEgressLocationBuilder_.mergeFrom(value); } - if (endpointInfo_ != null) { - bitField0_ |= 0x00000040; + if (destinationEgressLocation_ != null) { + bitField0_ |= 0x00000100; onChanged(); } return this; @@ -2959,18 +5543,24 @@ public Builder mergeEndpointInfo( * * *
      -     * The source and destination endpoints derived from the test input and used
      -     * for active probing.
      +     * The EdgeLocation from which a packet, destined to the internet, will egress
      +     * the Google network.
      +     * This will only be populated for a connectivity test which has an internet
      +     * destination address.
      +     * The absence of this field *must not* be used as an indication that the
      +     * destination is part of the Google network.
            * 
      * - * .google.cloud.networkmanagement.v1beta1.EndpointInfo endpoint_info = 7; + * + * .google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation destination_egress_location = 9; + * */ - public Builder clearEndpointInfo() { - bitField0_ = (bitField0_ & ~0x00000040); - endpointInfo_ = null; - if (endpointInfoBuilder_ != null) { - endpointInfoBuilder_.dispose(); - endpointInfoBuilder_ = null; + public Builder clearDestinationEgressLocation() { + bitField0_ = (bitField0_ & ~0x00000100); + destinationEgressLocation_ = null; + if (destinationEgressLocationBuilder_ != null) { + destinationEgressLocationBuilder_.dispose(); + destinationEgressLocationBuilder_ = null; } onChanged(); return this; @@ -2980,37 +5570,50 @@ public Builder clearEndpointInfo() { * * *
      -     * The source and destination endpoints derived from the test input and used
      -     * for active probing.
      +     * The EdgeLocation from which a packet, destined to the internet, will egress
      +     * the Google network.
      +     * This will only be populated for a connectivity test which has an internet
      +     * destination address.
      +     * The absence of this field *must not* be used as an indication that the
      +     * destination is part of the Google network.
            * 
      * - * .google.cloud.networkmanagement.v1beta1.EndpointInfo endpoint_info = 7; + * + * .google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation destination_egress_location = 9; + * */ - public com.google.cloud.networkmanagement.v1beta1.EndpointInfo.Builder - getEndpointInfoBuilder() { - bitField0_ |= 0x00000040; + public com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation.Builder + getDestinationEgressLocationBuilder() { + bitField0_ |= 0x00000100; onChanged(); - return getEndpointInfoFieldBuilder().getBuilder(); + return getDestinationEgressLocationFieldBuilder().getBuilder(); } /** * * *
      -     * The source and destination endpoints derived from the test input and used
      -     * for active probing.
      +     * The EdgeLocation from which a packet, destined to the internet, will egress
      +     * the Google network.
      +     * This will only be populated for a connectivity test which has an internet
      +     * destination address.
      +     * The absence of this field *must not* be used as an indication that the
      +     * destination is part of the Google network.
            * 
      * - * .google.cloud.networkmanagement.v1beta1.EndpointInfo endpoint_info = 7; + * + * .google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation destination_egress_location = 9; + * */ - public com.google.cloud.networkmanagement.v1beta1.EndpointInfoOrBuilder - getEndpointInfoOrBuilder() { - if (endpointInfoBuilder_ != null) { - return endpointInfoBuilder_.getMessageOrBuilder(); + public com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocationOrBuilder + getDestinationEgressLocationOrBuilder() { + if (destinationEgressLocationBuilder_ != null) { + return destinationEgressLocationBuilder_.getMessageOrBuilder(); } else { - return endpointInfo_ == null - ? com.google.cloud.networkmanagement.v1beta1.EndpointInfo.getDefaultInstance() - : endpointInfo_; + return destinationEgressLocation_ == null + ? com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation + .getDefaultInstance() + : destinationEgressLocation_; } } @@ -3018,96 +5621,190 @@ public Builder clearEndpointInfo() { * * *
      -     * The source and destination endpoints derived from the test input and used
      -     * for active probing.
      +     * The EdgeLocation from which a packet, destined to the internet, will egress
      +     * the Google network.
      +     * This will only be populated for a connectivity test which has an internet
      +     * destination address.
      +     * The absence of this field *must not* be used as an indication that the
      +     * destination is part of the Google network.
            * 
      * - * .google.cloud.networkmanagement.v1beta1.EndpointInfo endpoint_info = 7; + * + * .google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation destination_egress_location = 9; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkmanagement.v1beta1.EndpointInfo, - com.google.cloud.networkmanagement.v1beta1.EndpointInfo.Builder, - com.google.cloud.networkmanagement.v1beta1.EndpointInfoOrBuilder> - getEndpointInfoFieldBuilder() { - if (endpointInfoBuilder_ == null) { - endpointInfoBuilder_ = + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation, + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation.Builder, + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocationOrBuilder> + getDestinationEgressLocationFieldBuilder() { + if (destinationEgressLocationBuilder_ == null) { + destinationEgressLocationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkmanagement.v1beta1.EndpointInfo, - com.google.cloud.networkmanagement.v1beta1.EndpointInfo.Builder, - com.google.cloud.networkmanagement.v1beta1.EndpointInfoOrBuilder>( - getEndpointInfo(), getParentForChildren(), isClean()); - endpointInfo_ = null; + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation, + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation.Builder, + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocationOrBuilder>( + getDestinationEgressLocation(), getParentForChildren(), isClean()); + destinationEgressLocation_ = null; } - return endpointInfoBuilder_; + return destinationEgressLocationBuilder_; } - private com.google.cloud.networkmanagement.v1beta1.LatencyDistribution probingLatency_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkmanagement.v1beta1.LatencyDistribution, - com.google.cloud.networkmanagement.v1beta1.LatencyDistribution.Builder, - com.google.cloud.networkmanagement.v1beta1.LatencyDistributionOrBuilder> - probingLatencyBuilder_; + private java.util.List< + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse> + edgeResponses_ = java.util.Collections.emptyList(); + + private void ensureEdgeResponsesIsMutable() { + if (!((bitField0_ & 0x00000200) != 0)) { + edgeResponses_ = + new java.util.ArrayList< + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse>( + edgeResponses_); + bitField0_ |= 0x00000200; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse, + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse.Builder, + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponseOrBuilder> + edgeResponsesBuilder_; /** * * *
      -     * Latency as measured by active probing in one direction:
      -     * from the source to the destination endpoint.
      +     * Probing results for all edge devices.
            * 
      * - * .google.cloud.networkmanagement.v1beta1.LatencyDistribution probing_latency = 8; + * + * repeated .google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse edge_responses = 10; + * + */ + public java.util.List< + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse> + getEdgeResponsesList() { + if (edgeResponsesBuilder_ == null) { + return java.util.Collections.unmodifiableList(edgeResponses_); + } else { + return edgeResponsesBuilder_.getMessageList(); + } + } + + /** * - * @return Whether the probingLatency field is set. + * + *
      +     * Probing results for all edge devices.
      +     * 
      + * + * + * repeated .google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse edge_responses = 10; + * */ - public boolean hasProbingLatency() { - return ((bitField0_ & 0x00000080) != 0); + public int getEdgeResponsesCount() { + if (edgeResponsesBuilder_ == null) { + return edgeResponses_.size(); + } else { + return edgeResponsesBuilder_.getCount(); + } } /** * * *
      -     * Latency as measured by active probing in one direction:
      -     * from the source to the destination endpoint.
      +     * Probing results for all edge devices.
            * 
      * - * .google.cloud.networkmanagement.v1beta1.LatencyDistribution probing_latency = 8; + * + * repeated .google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse edge_responses = 10; + * + */ + public com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse + getEdgeResponses(int index) { + if (edgeResponsesBuilder_ == null) { + return edgeResponses_.get(index); + } else { + return edgeResponsesBuilder_.getMessage(index); + } + } + + /** * - * @return The probingLatency. + * + *
      +     * Probing results for all edge devices.
      +     * 
      + * + * + * repeated .google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse edge_responses = 10; + * */ - public com.google.cloud.networkmanagement.v1beta1.LatencyDistribution getProbingLatency() { - if (probingLatencyBuilder_ == null) { - return probingLatency_ == null - ? com.google.cloud.networkmanagement.v1beta1.LatencyDistribution.getDefaultInstance() - : probingLatency_; + public Builder setEdgeResponses( + int index, + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse value) { + if (edgeResponsesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEdgeResponsesIsMutable(); + edgeResponses_.set(index, value); + onChanged(); } else { - return probingLatencyBuilder_.getMessage(); + edgeResponsesBuilder_.setMessage(index, value); } + return this; } /** * * *
      -     * Latency as measured by active probing in one direction:
      -     * from the source to the destination endpoint.
      +     * Probing results for all edge devices.
            * 
      * - * .google.cloud.networkmanagement.v1beta1.LatencyDistribution probing_latency = 8; + * + * repeated .google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse edge_responses = 10; + * */ - public Builder setProbingLatency( - com.google.cloud.networkmanagement.v1beta1.LatencyDistribution value) { - if (probingLatencyBuilder_ == null) { + public Builder setEdgeResponses( + int index, + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse.Builder + builderForValue) { + if (edgeResponsesBuilder_ == null) { + ensureEdgeResponsesIsMutable(); + edgeResponses_.set(index, builderForValue.build()); + onChanged(); + } else { + edgeResponsesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Probing results for all edge devices.
      +     * 
      + * + * + * repeated .google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse edge_responses = 10; + * + */ + public Builder addEdgeResponses( + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse value) { + if (edgeResponsesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - probingLatency_ = value; + ensureEdgeResponsesIsMutable(); + edgeResponses_.add(value); + onChanged(); } else { - probingLatencyBuilder_.setMessage(value); + edgeResponsesBuilder_.addMessage(value); } - bitField0_ |= 0x00000080; - onChanged(); return this; } @@ -3115,21 +5812,26 @@ public Builder setProbingLatency( * * *
      -     * Latency as measured by active probing in one direction:
      -     * from the source to the destination endpoint.
      +     * Probing results for all edge devices.
            * 
      * - * .google.cloud.networkmanagement.v1beta1.LatencyDistribution probing_latency = 8; + * + * repeated .google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse edge_responses = 10; + * */ - public Builder setProbingLatency( - com.google.cloud.networkmanagement.v1beta1.LatencyDistribution.Builder builderForValue) { - if (probingLatencyBuilder_ == null) { - probingLatency_ = builderForValue.build(); + public Builder addEdgeResponses( + int index, + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse value) { + if (edgeResponsesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEdgeResponsesIsMutable(); + edgeResponses_.add(index, value); + onChanged(); } else { - probingLatencyBuilder_.setMessage(builderForValue.build()); + edgeResponsesBuilder_.addMessage(index, value); } - bitField0_ |= 0x00000080; - onChanged(); return this; } @@ -3137,30 +5839,22 @@ public Builder setProbingLatency( * * *
      -     * Latency as measured by active probing in one direction:
      -     * from the source to the destination endpoint.
      +     * Probing results for all edge devices.
            * 
      * - * .google.cloud.networkmanagement.v1beta1.LatencyDistribution probing_latency = 8; + * + * repeated .google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse edge_responses = 10; + * */ - public Builder mergeProbingLatency( - com.google.cloud.networkmanagement.v1beta1.LatencyDistribution value) { - if (probingLatencyBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && probingLatency_ != null - && probingLatency_ - != com.google.cloud.networkmanagement.v1beta1.LatencyDistribution - .getDefaultInstance()) { - getProbingLatencyBuilder().mergeFrom(value); - } else { - probingLatency_ = value; - } - } else { - probingLatencyBuilder_.mergeFrom(value); - } - if (probingLatency_ != null) { - bitField0_ |= 0x00000080; + public Builder addEdgeResponses( + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse.Builder + builderForValue) { + if (edgeResponsesBuilder_ == null) { + ensureEdgeResponsesIsMutable(); + edgeResponses_.add(builderForValue.build()); onChanged(); + } else { + edgeResponsesBuilder_.addMessage(builderForValue.build()); } return this; } @@ -3169,20 +5863,24 @@ public Builder mergeProbingLatency( * * *
      -     * Latency as measured by active probing in one direction:
      -     * from the source to the destination endpoint.
      +     * Probing results for all edge devices.
            * 
      * - * .google.cloud.networkmanagement.v1beta1.LatencyDistribution probing_latency = 8; + * + * repeated .google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse edge_responses = 10; + * */ - public Builder clearProbingLatency() { - bitField0_ = (bitField0_ & ~0x00000080); - probingLatency_ = null; - if (probingLatencyBuilder_ != null) { - probingLatencyBuilder_.dispose(); - probingLatencyBuilder_ = null; + public Builder addEdgeResponses( + int index, + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse.Builder + builderForValue) { + if (edgeResponsesBuilder_ == null) { + ensureEdgeResponsesIsMutable(); + edgeResponses_.add(index, builderForValue.build()); + onChanged(); + } else { + edgeResponsesBuilder_.addMessage(index, builderForValue.build()); } - onChanged(); return this; } @@ -3190,124 +5888,105 @@ public Builder clearProbingLatency() { * * *
      -     * Latency as measured by active probing in one direction:
      -     * from the source to the destination endpoint.
      +     * Probing results for all edge devices.
            * 
      * - * .google.cloud.networkmanagement.v1beta1.LatencyDistribution probing_latency = 8; + * + * repeated .google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse edge_responses = 10; + * */ - public com.google.cloud.networkmanagement.v1beta1.LatencyDistribution.Builder - getProbingLatencyBuilder() { - bitField0_ |= 0x00000080; - onChanged(); - return getProbingLatencyFieldBuilder().getBuilder(); + public Builder addAllEdgeResponses( + java.lang.Iterable< + ? extends + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse> + values) { + if (edgeResponsesBuilder_ == null) { + ensureEdgeResponsesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, edgeResponses_); + onChanged(); + } else { + edgeResponsesBuilder_.addAllMessages(values); + } + return this; } /** * * *
      -     * Latency as measured by active probing in one direction:
      -     * from the source to the destination endpoint.
      +     * Probing results for all edge devices.
            * 
      * - * .google.cloud.networkmanagement.v1beta1.LatencyDistribution probing_latency = 8; + * + * repeated .google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse edge_responses = 10; + * */ - public com.google.cloud.networkmanagement.v1beta1.LatencyDistributionOrBuilder - getProbingLatencyOrBuilder() { - if (probingLatencyBuilder_ != null) { - return probingLatencyBuilder_.getMessageOrBuilder(); + public Builder clearEdgeResponses() { + if (edgeResponsesBuilder_ == null) { + edgeResponses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); } else { - return probingLatency_ == null - ? com.google.cloud.networkmanagement.v1beta1.LatencyDistribution.getDefaultInstance() - : probingLatency_; + edgeResponsesBuilder_.clear(); } + return this; } /** * * *
      -     * Latency as measured by active probing in one direction:
      -     * from the source to the destination endpoint.
      +     * Probing results for all edge devices.
            * 
      * - * .google.cloud.networkmanagement.v1beta1.LatencyDistribution probing_latency = 8; + * + * repeated .google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse edge_responses = 10; + * */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkmanagement.v1beta1.LatencyDistribution, - com.google.cloud.networkmanagement.v1beta1.LatencyDistribution.Builder, - com.google.cloud.networkmanagement.v1beta1.LatencyDistributionOrBuilder> - getProbingLatencyFieldBuilder() { - if (probingLatencyBuilder_ == null) { - probingLatencyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkmanagement.v1beta1.LatencyDistribution, - com.google.cloud.networkmanagement.v1beta1.LatencyDistribution.Builder, - com.google.cloud.networkmanagement.v1beta1.LatencyDistributionOrBuilder>( - getProbingLatency(), getParentForChildren(), isClean()); - probingLatency_ = null; + public Builder removeEdgeResponses(int index) { + if (edgeResponsesBuilder_ == null) { + ensureEdgeResponsesIsMutable(); + edgeResponses_.remove(index); + onChanged(); + } else { + edgeResponsesBuilder_.remove(index); } - return probingLatencyBuilder_; + return this; } - private com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation - destinationEgressLocation_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation, - com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation.Builder, - com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocationOrBuilder> - destinationEgressLocationBuilder_; - /** * * *
      -     * The EdgeLocation from which a packet destined for/originating from the
      -     * internet will egress/ingress the Google network.
      -     * This will only be populated for a connectivity test which has an internet
      -     * destination/source address.
      -     * The absence of this field *must not* be used as an indication that the
      -     * destination/source is part of the Google network.
      +     * Probing results for all edge devices.
            * 
      * * - * .google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation destination_egress_location = 9; + * repeated .google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse edge_responses = 10; * - * - * @return Whether the destinationEgressLocation field is set. */ - public boolean hasDestinationEgressLocation() { - return ((bitField0_ & 0x00000100) != 0); + public com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse.Builder + getEdgeResponsesBuilder(int index) { + return getEdgeResponsesFieldBuilder().getBuilder(index); } /** * * *
      -     * The EdgeLocation from which a packet destined for/originating from the
      -     * internet will egress/ingress the Google network.
      -     * This will only be populated for a connectivity test which has an internet
      -     * destination/source address.
      -     * The absence of this field *must not* be used as an indication that the
      -     * destination/source is part of the Google network.
      +     * Probing results for all edge devices.
            * 
      * * - * .google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation destination_egress_location = 9; + * repeated .google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse edge_responses = 10; * - * - * @return The destinationEgressLocation. */ - public com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation - getDestinationEgressLocation() { - if (destinationEgressLocationBuilder_ == null) { - return destinationEgressLocation_ == null - ? com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation - .getDefaultInstance() - : destinationEgressLocation_; + public com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponseOrBuilder + getEdgeResponsesOrBuilder(int index) { + if (edgeResponsesBuilder_ == null) { + return edgeResponses_.get(index); } else { - return destinationEgressLocationBuilder_.getMessage(); + return edgeResponsesBuilder_.getMessageOrBuilder(index); } } @@ -3315,209 +5994,157 @@ public boolean hasDestinationEgressLocation() { * * *
      -     * The EdgeLocation from which a packet destined for/originating from the
      -     * internet will egress/ingress the Google network.
      -     * This will only be populated for a connectivity test which has an internet
      -     * destination/source address.
      -     * The absence of this field *must not* be used as an indication that the
      -     * destination/source is part of the Google network.
      +     * Probing results for all edge devices.
            * 
      * * - * .google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation destination_egress_location = 9; + * repeated .google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse edge_responses = 10; * */ - public Builder setDestinationEgressLocation( - com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation value) { - if (destinationEgressLocationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - destinationEgressLocation_ = value; + public java.util.List< + ? extends + com.google.cloud.networkmanagement.v1beta1.ProbingDetails + .SingleEdgeResponseOrBuilder> + getEdgeResponsesOrBuilderList() { + if (edgeResponsesBuilder_ != null) { + return edgeResponsesBuilder_.getMessageOrBuilderList(); } else { - destinationEgressLocationBuilder_.setMessage(value); + return java.util.Collections.unmodifiableList(edgeResponses_); } - bitField0_ |= 0x00000100; - onChanged(); - return this; } /** * * *
      -     * The EdgeLocation from which a packet destined for/originating from the
      -     * internet will egress/ingress the Google network.
      -     * This will only be populated for a connectivity test which has an internet
      -     * destination/source address.
      -     * The absence of this field *must not* be used as an indication that the
      -     * destination/source is part of the Google network.
      +     * Probing results for all edge devices.
            * 
      * * - * .google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation destination_egress_location = 9; + * repeated .google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse edge_responses = 10; * */ - public Builder setDestinationEgressLocation( - com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation.Builder - builderForValue) { - if (destinationEgressLocationBuilder_ == null) { - destinationEgressLocation_ = builderForValue.build(); - } else { - destinationEgressLocationBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000100; - onChanged(); - return this; + public com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse.Builder + addEdgeResponsesBuilder() { + return getEdgeResponsesFieldBuilder() + .addBuilder( + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse + .getDefaultInstance()); } /** * * *
      -     * The EdgeLocation from which a packet destined for/originating from the
      -     * internet will egress/ingress the Google network.
      -     * This will only be populated for a connectivity test which has an internet
      -     * destination/source address.
      -     * The absence of this field *must not* be used as an indication that the
      -     * destination/source is part of the Google network.
      +     * Probing results for all edge devices.
            * 
      * * - * .google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation destination_egress_location = 9; + * repeated .google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse edge_responses = 10; * */ - public Builder mergeDestinationEgressLocation( - com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation value) { - if (destinationEgressLocationBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && destinationEgressLocation_ != null - && destinationEgressLocation_ - != com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation - .getDefaultInstance()) { - getDestinationEgressLocationBuilder().mergeFrom(value); - } else { - destinationEgressLocation_ = value; - } - } else { - destinationEgressLocationBuilder_.mergeFrom(value); - } - if (destinationEgressLocation_ != null) { - bitField0_ |= 0x00000100; - onChanged(); - } - return this; + public com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse.Builder + addEdgeResponsesBuilder(int index) { + return getEdgeResponsesFieldBuilder() + .addBuilder( + index, + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse + .getDefaultInstance()); } /** * * *
      -     * The EdgeLocation from which a packet destined for/originating from the
      -     * internet will egress/ingress the Google network.
      -     * This will only be populated for a connectivity test which has an internet
      -     * destination/source address.
      -     * The absence of this field *must not* be used as an indication that the
      -     * destination/source is part of the Google network.
      +     * Probing results for all edge devices.
            * 
      * * - * .google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation destination_egress_location = 9; + * repeated .google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse edge_responses = 10; * */ - public Builder clearDestinationEgressLocation() { - bitField0_ = (bitField0_ & ~0x00000100); - destinationEgressLocation_ = null; - if (destinationEgressLocationBuilder_ != null) { - destinationEgressLocationBuilder_.dispose(); - destinationEgressLocationBuilder_ = null; + public java.util.List< + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse.Builder> + getEdgeResponsesBuilderList() { + return getEdgeResponsesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse, + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse.Builder, + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponseOrBuilder> + getEdgeResponsesFieldBuilder() { + if (edgeResponsesBuilder_ == null) { + edgeResponsesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse, + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse + .Builder, + com.google.cloud.networkmanagement.v1beta1.ProbingDetails + .SingleEdgeResponseOrBuilder>( + edgeResponses_, + ((bitField0_ & 0x00000200) != 0), + getParentForChildren(), + isClean()); + edgeResponses_ = null; } - onChanged(); - return this; + return edgeResponsesBuilder_; } + private boolean probedAllDevices_; + /** * * *
      -     * The EdgeLocation from which a packet destined for/originating from the
      -     * internet will egress/ingress the Google network.
      -     * This will only be populated for a connectivity test which has an internet
      -     * destination/source address.
      -     * The absence of this field *must not* be used as an indication that the
      -     * destination/source is part of the Google network.
      +     * Whether all relevant edge devices were probed.
            * 
      * - * - * .google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation destination_egress_location = 9; - * + * bool probed_all_devices = 11; + * + * @return The probedAllDevices. */ - public com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation.Builder - getDestinationEgressLocationBuilder() { - bitField0_ |= 0x00000100; - onChanged(); - return getDestinationEgressLocationFieldBuilder().getBuilder(); + @java.lang.Override + public boolean getProbedAllDevices() { + return probedAllDevices_; } /** * * *
      -     * The EdgeLocation from which a packet destined for/originating from the
      -     * internet will egress/ingress the Google network.
      -     * This will only be populated for a connectivity test which has an internet
      -     * destination/source address.
      -     * The absence of this field *must not* be used as an indication that the
      -     * destination/source is part of the Google network.
      +     * Whether all relevant edge devices were probed.
            * 
      * - * - * .google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation destination_egress_location = 9; - * + * bool probed_all_devices = 11; + * + * @param value The probedAllDevices to set. + * @return This builder for chaining. */ - public com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocationOrBuilder - getDestinationEgressLocationOrBuilder() { - if (destinationEgressLocationBuilder_ != null) { - return destinationEgressLocationBuilder_.getMessageOrBuilder(); - } else { - return destinationEgressLocation_ == null - ? com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation - .getDefaultInstance() - : destinationEgressLocation_; - } + public Builder setProbedAllDevices(boolean value) { + + probedAllDevices_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; } /** * * *
      -     * The EdgeLocation from which a packet destined for/originating from the
      -     * internet will egress/ingress the Google network.
      -     * This will only be populated for a connectivity test which has an internet
      -     * destination/source address.
      -     * The absence of this field *must not* be used as an indication that the
      -     * destination/source is part of the Google network.
      +     * Whether all relevant edge devices were probed.
            * 
      * - * - * .google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation destination_egress_location = 9; - * + * bool probed_all_devices = 11; + * + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation, - com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation.Builder, - com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocationOrBuilder> - getDestinationEgressLocationFieldBuilder() { - if (destinationEgressLocationBuilder_ == null) { - destinationEgressLocationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation, - com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocation.Builder, - com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocationOrBuilder>( - getDestinationEgressLocation(), getParentForChildren(), isClean()); - destinationEgressLocation_ = null; - } - return destinationEgressLocationBuilder_; + public Builder clearProbedAllDevices() { + bitField0_ = (bitField0_ & ~0x00000400); + probedAllDevices_ = false; + onChanged(); + return this; } @java.lang.Override diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ProbingDetailsOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ProbingDetailsOrBuilder.java index dc70a7d060bd..0ef088f33ce7 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ProbingDetailsOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ProbingDetailsOrBuilder.java @@ -263,12 +263,12 @@ public interface ProbingDetailsOrBuilder * * *
      -   * The EdgeLocation from which a packet destined for/originating from the
      -   * internet will egress/ingress the Google network.
      +   * The EdgeLocation from which a packet, destined to the internet, will egress
      +   * the Google network.
          * This will only be populated for a connectivity test which has an internet
      -   * destination/source address.
      +   * destination address.
          * The absence of this field *must not* be used as an indication that the
      -   * destination/source is part of the Google network.
      +   * destination is part of the Google network.
          * 
      * * @@ -283,12 +283,12 @@ public interface ProbingDetailsOrBuilder * * *
      -   * The EdgeLocation from which a packet destined for/originating from the
      -   * internet will egress/ingress the Google network.
      +   * The EdgeLocation from which a packet, destined to the internet, will egress
      +   * the Google network.
          * This will only be populated for a connectivity test which has an internet
      -   * destination/source address.
      +   * destination address.
          * The absence of this field *must not* be used as an indication that the
      -   * destination/source is part of the Google network.
      +   * destination is part of the Google network.
          * 
      * * @@ -304,12 +304,12 @@ public interface ProbingDetailsOrBuilder * * *
      -   * The EdgeLocation from which a packet destined for/originating from the
      -   * internet will egress/ingress the Google network.
      +   * The EdgeLocation from which a packet, destined to the internet, will egress
      +   * the Google network.
          * This will only be populated for a connectivity test which has an internet
      -   * destination/source address.
      +   * destination address.
          * The absence of this field *must not* be used as an indication that the
      -   * destination/source is part of the Google network.
      +   * destination is part of the Google network.
          * 
      * * @@ -318,4 +318,88 @@ public interface ProbingDetailsOrBuilder */ com.google.cloud.networkmanagement.v1beta1.ProbingDetails.EdgeLocationOrBuilder getDestinationEgressLocationOrBuilder(); + + /** + * + * + *
      +   * Probing results for all edge devices.
      +   * 
      + * + * + * repeated .google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse edge_responses = 10; + * + */ + java.util.List + getEdgeResponsesList(); + + /** + * + * + *
      +   * Probing results for all edge devices.
      +   * 
      + * + * + * repeated .google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse edge_responses = 10; + * + */ + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse getEdgeResponses( + int index); + + /** + * + * + *
      +   * Probing results for all edge devices.
      +   * 
      + * + * + * repeated .google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse edge_responses = 10; + * + */ + int getEdgeResponsesCount(); + + /** + * + * + *
      +   * Probing results for all edge devices.
      +   * 
      + * + * + * repeated .google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse edge_responses = 10; + * + */ + java.util.List< + ? extends + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponseOrBuilder> + getEdgeResponsesOrBuilderList(); + + /** + * + * + *
      +   * Probing results for all edge devices.
      +   * 
      + * + * + * repeated .google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponse edge_responses = 10; + * + */ + com.google.cloud.networkmanagement.v1beta1.ProbingDetails.SingleEdgeResponseOrBuilder + getEdgeResponsesOrBuilder(int index); + + /** + * + * + *
      +   * Whether all relevant edge devices were probed.
      +   * 
      + * + * bool probed_all_devices = 11; + * + * @return The probedAllDevices. + */ + boolean getProbedAllDevices(); } diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/QueryOrgVpcFlowLogsConfigsRequest.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/QueryOrgVpcFlowLogsConfigsRequest.java new file mode 100644 index 000000000000..ce6d26d0a0f4 --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/QueryOrgVpcFlowLogsConfigsRequest.java @@ -0,0 +1,1176 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkmanagement/v1beta1/vpc_flow_logs.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkmanagement.v1beta1; + +/** + * + * + *
      + * Request for the `QueryOrgVpcFlowLogsConfigs` method.
      + * 
      + * + * Protobuf type {@code google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest} + */ +public final class QueryOrgVpcFlowLogsConfigsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest) + QueryOrgVpcFlowLogsConfigsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use QueryOrgVpcFlowLogsConfigsRequest.newBuilder() to construct. + private QueryOrgVpcFlowLogsConfigsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private QueryOrgVpcFlowLogsConfigsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new QueryOrgVpcFlowLogsConfigsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1beta1_QueryOrgVpcFlowLogsConfigsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1beta1_QueryOrgVpcFlowLogsConfigsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest.class, + com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest.Builder + .class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
      +   * Required. The parent resource of the VpcFlowLogsConfig, specified in
      +   * the following format: `projects/{project_id}/locations/global`
      +   * 
      + * + * + * 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 of the VpcFlowLogsConfig, specified in
      +   * the following format: `projects/{project_id}/locations/global`
      +   * 
      + * + * + * 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. Number of `VpcFlowLogsConfigs` to return.
      +   * 
      + * + * 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. Page token from an earlier query, as returned in
      +   * `next_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. Page token from an earlier query, as returned in
      +   * `next_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; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
      +   * Optional. Lists the `VpcFlowLogsConfigs` that match the filter expression.
      +   * A filter expression must use the supported [CEL logic operators]
      +   * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
      +   * 
      + * + * string filter = 4 [(.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. Lists the `VpcFlowLogsConfigs` that match the filter expression.
      +   * A filter expression must use the supported [CEL logic operators]
      +   * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
      +   * 
      + * + * string filter = 4 [(.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 + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest)) { + return super.equals(obj); + } + com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest other = + (com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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 = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request for the `QueryOrgVpcFlowLogsConfigs` method.
      +   * 
      + * + * Protobuf type {@code google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest) + com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1beta1_QueryOrgVpcFlowLogsConfigsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1beta1_QueryOrgVpcFlowLogsConfigsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest.class, + com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1beta1_QueryOrgVpcFlowLogsConfigsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest + getDefaultInstanceForType() { + return com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest build() { + com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest + buildPartial() { + com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest result = + new com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest 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_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest) { + return mergeFrom( + (com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest other) { + if (other + == com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest + .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(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + 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 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
      +     * Required. The parent resource of the VpcFlowLogsConfig, specified in
      +     * the following format: `projects/{project_id}/locations/global`
      +     * 
      + * + * + * 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 of the VpcFlowLogsConfig, specified in
      +     * the following format: `projects/{project_id}/locations/global`
      +     * 
      + * + * + * 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 of the VpcFlowLogsConfig, specified in
      +     * the following format: `projects/{project_id}/locations/global`
      +     * 
      + * + * + * 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 of the VpcFlowLogsConfig, specified in
      +     * the following format: `projects/{project_id}/locations/global`
      +     * 
      + * + * + * 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 of the VpcFlowLogsConfig, specified in
      +     * the following format: `projects/{project_id}/locations/global`
      +     * 
      + * + * + * 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. Number of `VpcFlowLogsConfigs` to return.
      +     * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
      +     * Optional. Number of `VpcFlowLogsConfigs` to return.
      +     * 
      + * + * 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. Number of `VpcFlowLogsConfigs` to return.
      +     * 
      + * + * 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. Page token from an earlier query, as returned in
      +     * `next_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. Page token from an earlier query, as returned in
      +     * `next_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. Page token from an earlier query, as returned in
      +     * `next_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. Page token from an earlier query, as returned in
      +     * `next_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. Page token from an earlier query, as returned in
      +     * `next_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; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
      +     * Optional. Lists the `VpcFlowLogsConfigs` that match the filter expression.
      +     * A filter expression must use the supported [CEL logic operators]
      +     * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
      +     * 
      + * + * string filter = 4 [(.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. Lists the `VpcFlowLogsConfigs` that match the filter expression.
      +     * A filter expression must use the supported [CEL logic operators]
      +     * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
      +     * 
      + * + * string filter = 4 [(.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. Lists the `VpcFlowLogsConfigs` that match the filter expression.
      +     * A filter expression must use the supported [CEL logic operators]
      +     * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
      +     * 
      + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Lists the `VpcFlowLogsConfigs` that match the filter expression.
      +     * A filter expression must use the supported [CEL logic operators]
      +     * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
      +     * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Lists the `VpcFlowLogsConfigs` that match the filter expression.
      +     * A filter expression must use the supported [CEL logic operators]
      +     * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
      +     * 
      + * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest) + private static final com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest(); + } + + public static com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryOrgVpcFlowLogsConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/QueryOrgVpcFlowLogsConfigsRequestOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/QueryOrgVpcFlowLogsConfigsRequestOrBuilder.java new file mode 100644 index 000000000000..4569dfe76fa2 --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/QueryOrgVpcFlowLogsConfigsRequestOrBuilder.java @@ -0,0 +1,129 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkmanagement/v1beta1/vpc_flow_logs.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkmanagement.v1beta1; + +public interface QueryOrgVpcFlowLogsConfigsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The parent resource of the VpcFlowLogsConfig, specified in
      +   * the following format: `projects/{project_id}/locations/global`
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
      +   * Required. The parent resource of the VpcFlowLogsConfig, specified in
      +   * the following format: `projects/{project_id}/locations/global`
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
      +   * Optional. Number of `VpcFlowLogsConfigs` to return.
      +   * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
      +   * Optional. Page token from an earlier query, as returned in
      +   * `next_page_token`.
      +   * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
      +   * Optional. Page token from an earlier query, as returned in
      +   * `next_page_token`.
      +   * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
      +   * Optional. Lists the `VpcFlowLogsConfigs` that match the filter expression.
      +   * A filter expression must use the supported [CEL logic operators]
      +   * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
      +   * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
      +   * Optional. Lists the `VpcFlowLogsConfigs` that match the filter expression.
      +   * A filter expression must use the supported [CEL logic operators]
      +   * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
      +   * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/QueryOrgVpcFlowLogsConfigsResponse.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/QueryOrgVpcFlowLogsConfigsResponse.java new file mode 100644 index 000000000000..9ef44d3ec664 --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/QueryOrgVpcFlowLogsConfigsResponse.java @@ -0,0 +1,1540 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkmanagement/v1beta1/vpc_flow_logs.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkmanagement.v1beta1; + +/** + * + * + *
      + * Response for the `QueryVpcFlowLogsConfigs` method.
      + * 
      + * + * Protobuf type {@code google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse} + */ +public final class QueryOrgVpcFlowLogsConfigsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse) + QueryOrgVpcFlowLogsConfigsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use QueryOrgVpcFlowLogsConfigsResponse.newBuilder() to construct. + private QueryOrgVpcFlowLogsConfigsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private QueryOrgVpcFlowLogsConfigsResponse() { + vpcFlowLogsConfigs_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new QueryOrgVpcFlowLogsConfigsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1beta1_QueryOrgVpcFlowLogsConfigsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1beta1_QueryOrgVpcFlowLogsConfigsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse.class, + com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse.Builder + .class); + } + + public static final int VPC_FLOW_LOGS_CONFIGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + vpcFlowLogsConfigs_; + + /** + * + * + *
      +   * List of VPC Flow Log configurations.
      +   * 
      + * + * + * repeated .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + @java.lang.Override + public java.util.List + getVpcFlowLogsConfigsList() { + return vpcFlowLogsConfigs_; + } + + /** + * + * + *
      +   * List of VPC Flow Log configurations.
      +   * 
      + * + * + * repeated .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfigOrBuilder> + getVpcFlowLogsConfigsOrBuilderList() { + return vpcFlowLogsConfigs_; + } + + /** + * + * + *
      +   * List of VPC Flow Log configurations.
      +   * 
      + * + * + * repeated .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + @java.lang.Override + public int getVpcFlowLogsConfigsCount() { + return vpcFlowLogsConfigs_.size(); + } + + /** + * + * + *
      +   * List of VPC Flow Log configurations.
      +   * 
      + * + * + * repeated .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig getVpcFlowLogsConfigs( + int index) { + return vpcFlowLogsConfigs_.get(index); + } + + /** + * + * + *
      +   * List of VPC Flow Log configurations.
      +   * 
      + * + * + * repeated .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfigOrBuilder + getVpcFlowLogsConfigsOrBuilder(int index) { + return vpcFlowLogsConfigs_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
      +   * Page token to fetch the next set of configurations.
      +   * 
      + * + * 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; + } + } + + /** + * + * + *
      +   * Page token to fetch the next set of configurations.
      +   * 
      + * + * 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; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
      +   * Locations that could not be reached (when querying all locations with `-`).
      +   * 
      + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
      +   * Locations that could not be reached (when querying all locations with `-`).
      +   * 
      + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
      +   * Locations that could not be reached (when querying all locations with `-`).
      +   * 
      + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
      +   * Locations that could not be reached (when querying all locations with `-`).
      +   * 
      + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.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 < vpcFlowLogsConfigs_.size(); i++) { + output.writeMessage(1, vpcFlowLogsConfigs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(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 < vpcFlowLogsConfigs_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, vpcFlowLogsConfigs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().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.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse)) { + return super.equals(obj); + } + com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse other = + (com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse) obj; + + if (!getVpcFlowLogsConfigsList().equals(other.getVpcFlowLogsConfigsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getVpcFlowLogsConfigsCount() > 0) { + hash = (37 * hash) + VPC_FLOW_LOGS_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getVpcFlowLogsConfigsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Response for the `QueryVpcFlowLogsConfigs` method.
      +   * 
      + * + * Protobuf type {@code google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse) + com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1beta1_QueryOrgVpcFlowLogsConfigsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1beta1_QueryOrgVpcFlowLogsConfigsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse.class, + com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (vpcFlowLogsConfigsBuilder_ == null) { + vpcFlowLogsConfigs_ = java.util.Collections.emptyList(); + } else { + vpcFlowLogsConfigs_ = null; + vpcFlowLogsConfigsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1beta1_QueryOrgVpcFlowLogsConfigsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse + getDefaultInstanceForType() { + return com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse build() { + com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse + buildPartial() { + com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse result = + new com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse result) { + if (vpcFlowLogsConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + vpcFlowLogsConfigs_ = java.util.Collections.unmodifiableList(vpcFlowLogsConfigs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.vpcFlowLogsConfigs_ = vpcFlowLogsConfigs_; + } else { + result.vpcFlowLogsConfigs_ = vpcFlowLogsConfigsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse) { + return mergeFrom( + (com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse other) { + if (other + == com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse + .getDefaultInstance()) return this; + if (vpcFlowLogsConfigsBuilder_ == null) { + if (!other.vpcFlowLogsConfigs_.isEmpty()) { + if (vpcFlowLogsConfigs_.isEmpty()) { + vpcFlowLogsConfigs_ = other.vpcFlowLogsConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureVpcFlowLogsConfigsIsMutable(); + vpcFlowLogsConfigs_.addAll(other.vpcFlowLogsConfigs_); + } + onChanged(); + } + } else { + if (!other.vpcFlowLogsConfigs_.isEmpty()) { + if (vpcFlowLogsConfigsBuilder_.isEmpty()) { + vpcFlowLogsConfigsBuilder_.dispose(); + vpcFlowLogsConfigsBuilder_ = null; + vpcFlowLogsConfigs_ = other.vpcFlowLogsConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + vpcFlowLogsConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getVpcFlowLogsConfigsFieldBuilder() + : null; + } else { + vpcFlowLogsConfigsBuilder_.addAllMessages(other.vpcFlowLogsConfigs_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig m = + input.readMessage( + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.parser(), + extensionRegistry); + if (vpcFlowLogsConfigsBuilder_ == null) { + ensureVpcFlowLogsConfigsIsMutable(); + vpcFlowLogsConfigs_.add(m); + } else { + vpcFlowLogsConfigsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + vpcFlowLogsConfigs_ = java.util.Collections.emptyList(); + + private void ensureVpcFlowLogsConfigsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + vpcFlowLogsConfigs_ = + new java.util.ArrayList( + vpcFlowLogsConfigs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig, + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Builder, + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfigOrBuilder> + vpcFlowLogsConfigsBuilder_; + + /** + * + * + *
      +     * List of VPC Flow Log configurations.
      +     * 
      + * + * + * repeated .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public java.util.List + getVpcFlowLogsConfigsList() { + if (vpcFlowLogsConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(vpcFlowLogsConfigs_); + } else { + return vpcFlowLogsConfigsBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * List of VPC Flow Log configurations.
      +     * 
      + * + * + * repeated .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public int getVpcFlowLogsConfigsCount() { + if (vpcFlowLogsConfigsBuilder_ == null) { + return vpcFlowLogsConfigs_.size(); + } else { + return vpcFlowLogsConfigsBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * List of VPC Flow Log configurations.
      +     * 
      + * + * + * repeated .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig getVpcFlowLogsConfigs( + int index) { + if (vpcFlowLogsConfigsBuilder_ == null) { + return vpcFlowLogsConfigs_.get(index); + } else { + return vpcFlowLogsConfigsBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * List of VPC Flow Log configurations.
      +     * 
      + * + * + * repeated .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public Builder setVpcFlowLogsConfigs( + int index, com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig value) { + if (vpcFlowLogsConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVpcFlowLogsConfigsIsMutable(); + vpcFlowLogsConfigs_.set(index, value); + onChanged(); + } else { + vpcFlowLogsConfigsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * List of VPC Flow Log configurations.
      +     * 
      + * + * + * repeated .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public Builder setVpcFlowLogsConfigs( + int index, + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Builder builderForValue) { + if (vpcFlowLogsConfigsBuilder_ == null) { + ensureVpcFlowLogsConfigsIsMutable(); + vpcFlowLogsConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + vpcFlowLogsConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * List of VPC Flow Log configurations.
      +     * 
      + * + * + * repeated .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public Builder addVpcFlowLogsConfigs( + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig value) { + if (vpcFlowLogsConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVpcFlowLogsConfigsIsMutable(); + vpcFlowLogsConfigs_.add(value); + onChanged(); + } else { + vpcFlowLogsConfigsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * List of VPC Flow Log configurations.
      +     * 
      + * + * + * repeated .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public Builder addVpcFlowLogsConfigs( + int index, com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig value) { + if (vpcFlowLogsConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVpcFlowLogsConfigsIsMutable(); + vpcFlowLogsConfigs_.add(index, value); + onChanged(); + } else { + vpcFlowLogsConfigsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * List of VPC Flow Log configurations.
      +     * 
      + * + * + * repeated .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public Builder addVpcFlowLogsConfigs( + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Builder builderForValue) { + if (vpcFlowLogsConfigsBuilder_ == null) { + ensureVpcFlowLogsConfigsIsMutable(); + vpcFlowLogsConfigs_.add(builderForValue.build()); + onChanged(); + } else { + vpcFlowLogsConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * List of VPC Flow Log configurations.
      +     * 
      + * + * + * repeated .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public Builder addVpcFlowLogsConfigs( + int index, + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Builder builderForValue) { + if (vpcFlowLogsConfigsBuilder_ == null) { + ensureVpcFlowLogsConfigsIsMutable(); + vpcFlowLogsConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + vpcFlowLogsConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * List of VPC Flow Log configurations.
      +     * 
      + * + * + * repeated .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public Builder addAllVpcFlowLogsConfigs( + java.lang.Iterable + values) { + if (vpcFlowLogsConfigsBuilder_ == null) { + ensureVpcFlowLogsConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, vpcFlowLogsConfigs_); + onChanged(); + } else { + vpcFlowLogsConfigsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * List of VPC Flow Log configurations.
      +     * 
      + * + * + * repeated .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public Builder clearVpcFlowLogsConfigs() { + if (vpcFlowLogsConfigsBuilder_ == null) { + vpcFlowLogsConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + vpcFlowLogsConfigsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * List of VPC Flow Log configurations.
      +     * 
      + * + * + * repeated .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public Builder removeVpcFlowLogsConfigs(int index) { + if (vpcFlowLogsConfigsBuilder_ == null) { + ensureVpcFlowLogsConfigsIsMutable(); + vpcFlowLogsConfigs_.remove(index); + onChanged(); + } else { + vpcFlowLogsConfigsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * List of VPC Flow Log configurations.
      +     * 
      + * + * + * repeated .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Builder + getVpcFlowLogsConfigsBuilder(int index) { + return getVpcFlowLogsConfigsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * List of VPC Flow Log configurations.
      +     * 
      + * + * + * repeated .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfigOrBuilder + getVpcFlowLogsConfigsOrBuilder(int index) { + if (vpcFlowLogsConfigsBuilder_ == null) { + return vpcFlowLogsConfigs_.get(index); + } else { + return vpcFlowLogsConfigsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * List of VPC Flow Log configurations.
      +     * 
      + * + * + * repeated .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfigOrBuilder> + getVpcFlowLogsConfigsOrBuilderList() { + if (vpcFlowLogsConfigsBuilder_ != null) { + return vpcFlowLogsConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(vpcFlowLogsConfigs_); + } + } + + /** + * + * + *
      +     * List of VPC Flow Log configurations.
      +     * 
      + * + * + * repeated .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Builder + addVpcFlowLogsConfigsBuilder() { + return getVpcFlowLogsConfigsFieldBuilder() + .addBuilder( + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.getDefaultInstance()); + } + + /** + * + * + *
      +     * List of VPC Flow Log configurations.
      +     * 
      + * + * + * repeated .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Builder + addVpcFlowLogsConfigsBuilder(int index) { + return getVpcFlowLogsConfigsFieldBuilder() + .addBuilder( + index, + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.getDefaultInstance()); + } + + /** + * + * + *
      +     * List of VPC Flow Log configurations.
      +     * 
      + * + * + * repeated .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public java.util.List + getVpcFlowLogsConfigsBuilderList() { + return getVpcFlowLogsConfigsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig, + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Builder, + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfigOrBuilder> + getVpcFlowLogsConfigsFieldBuilder() { + if (vpcFlowLogsConfigsBuilder_ == null) { + vpcFlowLogsConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig, + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Builder, + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfigOrBuilder>( + vpcFlowLogsConfigs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + vpcFlowLogsConfigs_ = null; + } + return vpcFlowLogsConfigsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
      +     * Page token to fetch the next set of configurations.
      +     * 
      + * + * 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; + } + } + + /** + * + * + *
      +     * Page token to fetch the next set of configurations.
      +     * 
      + * + * 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; + } + } + + /** + * + * + *
      +     * Page token to fetch the next set of configurations.
      +     * 
      + * + * 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; + } + + /** + * + * + *
      +     * Page token to fetch the next set of configurations.
      +     * 
      + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Page token to fetch the next set of configurations.
      +     * 
      + * + * 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; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
      +     * Locations that could not be reached (when querying all locations with `-`).
      +     * 
      + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
      +     * Locations that could not be reached (when querying all locations with `-`).
      +     * 
      + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
      +     * Locations that could not be reached (when querying all locations with `-`).
      +     * 
      + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
      +     * Locations that could not be reached (when querying all locations with `-`).
      +     * 
      + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + /** + * + * + *
      +     * Locations that could not be reached (when querying all locations with `-`).
      +     * 
      + * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Locations that could not be reached (when querying all locations with `-`).
      +     * 
      + * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Locations that could not be reached (when querying all locations with `-`).
      +     * 
      + * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Locations that could not be reached (when querying all locations with `-`).
      +     * 
      + * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Locations that could not be reached (when querying all locations with `-`).
      +     * 
      + * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse) + private static final com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse(); + } + + public static com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryOrgVpcFlowLogsConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/QueryOrgVpcFlowLogsConfigsResponseOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/QueryOrgVpcFlowLogsConfigsResponseOrBuilder.java new file mode 100644 index 000000000000..160f98561aea --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/QueryOrgVpcFlowLogsConfigsResponseOrBuilder.java @@ -0,0 +1,174 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkmanagement/v1beta1/vpc_flow_logs.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkmanagement.v1beta1; + +public interface QueryOrgVpcFlowLogsConfigsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * List of VPC Flow Log configurations.
      +   * 
      + * + * + * repeated .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + java.util.List + getVpcFlowLogsConfigsList(); + + /** + * + * + *
      +   * List of VPC Flow Log configurations.
      +   * 
      + * + * + * repeated .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig getVpcFlowLogsConfigs(int index); + + /** + * + * + *
      +   * List of VPC Flow Log configurations.
      +   * 
      + * + * + * repeated .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + int getVpcFlowLogsConfigsCount(); + + /** + * + * + *
      +   * List of VPC Flow Log configurations.
      +   * 
      + * + * + * repeated .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + java.util.List + getVpcFlowLogsConfigsOrBuilderList(); + + /** + * + * + *
      +   * List of VPC Flow Log configurations.
      +   * 
      + * + * + * repeated .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfigOrBuilder + getVpcFlowLogsConfigsOrBuilder(int index); + + /** + * + * + *
      +   * Page token to fetch the next set of configurations.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
      +   * Page token to fetch the next set of configurations.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
      +   * Locations that could not be reached (when querying all locations with `-`).
      +   * 
      + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
      +   * Locations that could not be reached (when querying all locations with `-`).
      +   * 
      + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
      +   * Locations that could not be reached (when querying all locations with `-`).
      +   * 
      + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
      +   * Locations that could not be reached (when querying all locations with `-`).
      +   * 
      + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RouteInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RouteInfo.java index fdf42128cec5..fd3bfd4a4ff6 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RouteInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RouteInfo.java @@ -538,6 +538,16 @@ public enum NextHopType implements com.google.protobuf.ProtocolMessageEnum { * NEXT_HOP_NCC_HUB = 12; */ NEXT_HOP_NCC_HUB(12), + /** + * + * + *
      +     * Next hop is Secure Web Proxy Gateway.
      +     * 
      + * + * SECURE_WEB_PROXY_GATEWAY = 13; + */ + SECURE_WEB_PROXY_GATEWAY(13), UNRECOGNIZED(-1), ; @@ -693,6 +703,17 @@ public enum NextHopType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NEXT_HOP_NCC_HUB_VALUE = 12; + /** + * + * + *
      +     * Next hop is Secure Web Proxy Gateway.
      +     * 
      + * + * SECURE_WEB_PROXY_GATEWAY = 13; + */ + public static final int SECURE_WEB_PROXY_GATEWAY_VALUE = 13; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -743,6 +764,8 @@ public static NextHopType forNumber(int value) { return NEXT_HOP_ROUTER_APPLIANCE; case 12: return NEXT_HOP_NCC_HUB; + case 13: + return SECURE_WEB_PROXY_GATEWAY; default: return null; } @@ -1054,7 +1077,7 @@ public com.google.cloud.networkmanagement.v1beta1.RouteInfo.NextHopType getNextH *
      * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=568 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=595 * @return The enum numeric value on the wire for routeScope. */ @java.lang.Override @@ -1076,7 +1099,7 @@ public int getRouteScopeValue() { *
      * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=568 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=595 * @return The routeScope. */ @java.lang.Override @@ -1324,7 +1347,7 @@ public com.google.protobuf.ByteString getDestIpRangeBytes() { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=588 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=615 * @return The nextHop. */ @java.lang.Override @@ -1353,7 +1376,7 @@ public java.lang.String getNextHop() { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=588 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=615 * @return The bytes for nextHop. */ @java.lang.Override @@ -2002,7 +2025,7 @@ public com.google.protobuf.ByteString getAdvertisedRouteSourceRouterUriBytes() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=628 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=655 * @return Whether the advertisedRouteNextHopUri field is set. */ @java.lang.Override @@ -2025,7 +2048,7 @@ public boolean hasAdvertisedRouteNextHopUri() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=628 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=655 * @return The advertisedRouteNextHopUri. */ @java.lang.Override @@ -2056,7 +2079,7 @@ public java.lang.String getAdvertisedRouteNextHopUri() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=628 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=655 * @return The bytes for advertisedRouteNextHopUri. */ @java.lang.Override @@ -3548,7 +3571,7 @@ public Builder clearNextHopType() { *
      * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=568 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=595 * @return The enum numeric value on the wire for routeScope. */ @java.lang.Override @@ -3570,7 +3593,7 @@ public int getRouteScopeValue() { *
      * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=568 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=595 * @param value The enum numeric value on the wire for routeScope to set. * @return This builder for chaining. */ @@ -3595,7 +3618,7 @@ public Builder setRouteScopeValue(int value) { *
      * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=568 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=595 * @return The routeScope. */ @java.lang.Override @@ -3621,7 +3644,7 @@ public com.google.cloud.networkmanagement.v1beta1.RouteInfo.RouteScope getRouteS *
      * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=568 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=595 * @param value The routeScope to set. * @return This builder for chaining. */ @@ -3650,7 +3673,7 @@ public Builder setRouteScope( * * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=568 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=595 * @return This builder for chaining. */ @java.lang.Deprecated @@ -4134,7 +4157,7 @@ public Builder setDestIpRangeBytes(com.google.protobuf.ByteString value) { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=588 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=615 * @return The nextHop. */ @java.lang.Deprecated @@ -4162,7 +4185,7 @@ public java.lang.String getNextHop() { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=588 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=615 * @return The bytes for nextHop. */ @java.lang.Deprecated @@ -4190,7 +4213,7 @@ public com.google.protobuf.ByteString getNextHopBytes() { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=588 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=615 * @param value The nextHop to set. * @return This builder for chaining. */ @@ -4217,7 +4240,7 @@ public Builder setNextHop(java.lang.String value) { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=588 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=615 * @return This builder for chaining. */ @java.lang.Deprecated @@ -4240,7 +4263,7 @@ public Builder clearNextHop() { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=588 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=615 * @param value The bytes for nextHop to set. * @return This builder for chaining. */ @@ -5678,7 +5701,7 @@ public Builder setAdvertisedRouteSourceRouterUriBytes(com.google.protobuf.ByteSt * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=628 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=655 * @return Whether the advertisedRouteNextHopUri field is set. */ @java.lang.Deprecated @@ -5700,7 +5723,7 @@ public boolean hasAdvertisedRouteNextHopUri() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=628 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=655 * @return The advertisedRouteNextHopUri. */ @java.lang.Deprecated @@ -5730,7 +5753,7 @@ public java.lang.String getAdvertisedRouteNextHopUri() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=628 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=655 * @return The bytes for advertisedRouteNextHopUri. */ @java.lang.Deprecated @@ -5760,7 +5783,7 @@ public com.google.protobuf.ByteString getAdvertisedRouteNextHopUriBytes() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=628 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=655 * @param value The advertisedRouteNextHopUri to set. * @return This builder for chaining. */ @@ -5789,7 +5812,7 @@ public Builder setAdvertisedRouteNextHopUri(java.lang.String value) { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=628 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=655 * @return This builder for chaining. */ @java.lang.Deprecated @@ -5814,7 +5837,7 @@ public Builder clearAdvertisedRouteNextHopUri() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=628 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=655 * @param value The bytes for advertisedRouteNextHopUri to set. * @return This builder for chaining. */ diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RouteInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RouteInfoOrBuilder.java index 41c01fef5061..58000de41d13 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RouteInfoOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RouteInfoOrBuilder.java @@ -89,7 +89,7 @@ public interface RouteInfoOrBuilder * * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=568 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=595 * @return The enum numeric value on the wire for routeScope. */ @java.lang.Deprecated @@ -108,7 +108,7 @@ public interface RouteInfoOrBuilder * * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=568 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=595 * @return The routeScope. */ @java.lang.Deprecated @@ -236,7 +236,7 @@ public interface RouteInfoOrBuilder * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=588 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=615 * @return The nextHop. */ @java.lang.Deprecated @@ -254,7 +254,7 @@ public interface RouteInfoOrBuilder * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=588 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=615 * @return The bytes for nextHop. */ @java.lang.Deprecated @@ -681,7 +681,7 @@ public interface RouteInfoOrBuilder * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=628 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=655 * @return Whether the advertisedRouteNextHopUri field is set. */ @java.lang.Deprecated @@ -701,7 +701,7 @@ public interface RouteInfoOrBuilder * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=628 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=655 * @return The advertisedRouteNextHopUri. */ @java.lang.Deprecated @@ -721,7 +721,7 @@ public interface RouteInfoOrBuilder * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=628 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=655 * @return The bytes for advertisedRouteNextHopUri. */ @java.lang.Deprecated diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/TestOuterClass.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/TestOuterClass.java index f8d069758b7e..578784f519f3 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/TestOuterClass.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/TestOuterClass.java @@ -72,6 +72,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_networkmanagement_v1beta1_ProbingDetails_EdgeLocation_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_networkmanagement_v1beta1_ProbingDetails_EdgeLocation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkmanagement_v1beta1_ProbingDetails_SingleEdgeResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkmanagement_v1beta1_ProbingDetails_SingleEdgeResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -114,7 +118,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:t\352Aq\n" + "1networkmanagement.googleapis.com/ConnectivityTest\022\n" + + "\006Status\022\026\n" + + "\022STATUS_UNSPECIFIED\020\000\022\013\n" + + "\007RUNNING\020\001\022\017\n" + + "\013NOT_RUNNING\020\002\"v\n" + "\013NetworkInfo\022\024\n" + "\014display_name\030\001 \001(\t\022\013\n" + "\003uri\030\002 \001(\t\022\032\n" + "\022matched_subnet_uri\030\005 \001(\t\022\030\n" + "\020matched_ip_range\030\004 \001(\t\022\016\n" - + "\006region\030\006 \001(\t\"\234\005\n" + + "\006region\030\006 \001(\t\"\265\005\n" + "\014FirewallInfo\022\024\n" + "\014display_name\030\001 \001(\t\022\013\n" + "\003uri\030\002 \001(\t\022\021\n" @@ -304,8 +312,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006policy\030\t \001(\t\022\022\n\n" + "policy_uri\030\013 \001(\t\022a\n" + "\022firewall_rule_type\030\n" - + " \001(\0162E.google.clo" - + "ud.networkmanagement.v1beta1.FirewallInfo.FirewallRuleType\"\341\002\n" + + " \001(\0162E.google.c" + + "loud.networkmanagement.v1beta1.FirewallInfo.FirewallRuleType\022\027\n" + + "\017policy_priority\030\014 \001(\005\"\341\002\n" + "\020FirewallRuleType\022\"\n" + "\036FIREWALL_RULE_TYPE_UNSPECIFIED\020\000\022%\n" + "!HIERARCHICAL_FIREWALL_POLICY_RULE\020\001\022\025\n" @@ -316,14 +325,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "%NETWORK_REGIONAL_FIREWALL_POLICY_RULE\020\006\022$\n" + " UNSUPPORTED_FIREWALL_POLICY_RULE\020d\022\022\n" + "\016TRACKING_STATE\020e\022\024\n" - + "\020ANALYSIS_SKIPPED\020f\"\335\013\n" + + "\020ANALYSIS_SKIPPED\020f\"\373\013\n" + "\tRouteInfo\022O\n\n" - + "route_type\030\010" - + " \001(\0162;.google.cloud.networkmanagement.v1beta1.RouteInfo.RouteType\022T\n\r" - + "next_hop_type\030\t" - + " \001(\0162=.google.cloud.networkmanagement.v1beta1.RouteInfo.NextHopType\022U\n" - + "\013route_scope\030\016 \001(\0162<.google.cloud.networkm" - + "anagement.v1beta1.RouteInfo.RouteScopeB\002\030\001\022\024\n" + + "route_type\030\010 \001(\0162;.go" + + "ogle.cloud.networkmanagement.v1beta1.RouteInfo.RouteType\022T\n\r" + + "next_hop_type\030\t \001(\0162" + + "=.google.cloud.networkmanagement.v1beta1.RouteInfo.NextHopType\022U\n" + + "\013route_scope\030\016 " + + "\001(\0162<.google.cloud.networkmanagement.v1beta1.RouteInfo.RouteScopeB\002\030\001\022\024\n" + "\014display_name\030\001 \001(\t\022\013\n" + "\003uri\030\002 \001(\t\022\016\n" + "\006region\030\023 \001(\t\022\025\n\r" @@ -357,7 +366,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016PEERING_STATIC\020\005\022\023\n" + "\017PEERING_DYNAMIC\020\006\022\020\n" + "\014POLICY_BASED\020\007\022\016\n\n" - + "ADVERTISED\020e\"\314\002\n" + + "ADVERTISED\020e\"\352\002\n" + "\013NextHopType\022\035\n" + "\031NEXT_HOP_TYPE_UNSPECIFIED\020\000\022\017\n" + "\013NEXT_HOP_IP\020\001\022\025\n" @@ -372,7 +381,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014NEXT_HOP_ILB\020\n" + "\022\035\n" + "\031NEXT_HOP_ROUTER_APPLIANCE\020\013\022\024\n" - + "\020NEXT_HOP_NCC_HUB\020\014\"C\n\n" + + "\020NEXT_HOP_NCC_HUB\020\014\022\034\n" + + "\030SECURE_WEB_PROXY_GATEWAY\020\r" + + "\"C\n\n" + "RouteScope\022\033\n" + "\027ROUTE_SCOPE_UNSPECIFIED\020\000\022\013\n" + "\007NETWORK\020\001\022\013\n" @@ -383,8 +394,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036_advertised_route_next_hop_uri\"\337\002\n" + "\021GoogleServiceInfo\022\021\n" + "\tsource_ip\030\001 \001(\t\022h\n" - + "\023google_service_type\030\002 \001(\0162K.google.cl" - + "oud.networkmanagement.v1beta1.GoogleServiceInfo.GoogleServiceType\"\314\001\n" + + "\023google_service_type\030\002 \001(\0162K.google.cloud.networkmanagement.v" + + "1beta1.GoogleServiceInfo.GoogleServiceType\"\314\001\n" + "\021GoogleServiceType\022#\n" + "\037GOOGLE_SERVICE_TYPE_UNSPECIFIED\020\000\022\007\n" + "\003IAP\020\001\022$\n" @@ -408,13 +419,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\t\022\035\n" + "\025psc_google_api_target\030\013 \001(\t\"\321\004\n" + "\020LoadBalancerInfo\022e\n" - + "\022load_balancer_type\030\001 \001(\0162I.goo" - + "gle.cloud.networkmanagement.v1beta1.LoadBalancerInfo.LoadBalancerType\022\034\n" + + "\022load_balancer_type\030\001 \001(\0162I.google.cloud.networkmanage" + + "ment.v1beta1.LoadBalancerInfo.LoadBalancerType\022\034\n" + "\020health_check_uri\030\002 \001(\tB\002\030\001\022M\n" - + "\010backends\030\003 \003(\0132;." - + "google.cloud.networkmanagement.v1beta1.LoadBalancerBackend\022Z\n" - + "\014backend_type\030\004 \001(\016" - + "2D.google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.BackendType\022\023\n" + + "\010backends\030\003" + + " \003(\0132;.google.cloud.networkmanagement.v1beta1.LoadBalancerBackend\022Z\n" + + "\014backend_type\030\004 \001(\0162D.google.cloud.network" + + "management.v1beta1.LoadBalancerInfo.BackendType\022\023\n" + "\013backend_uri\030\005 \001(\t\"\217\001\n" + "\020LoadBalancerType\022\"\n" + "\036LOAD_BALANCER_TYPE_UNSPECIFIED\020\000\022\024\n" @@ -431,9 +442,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023LoadBalancerBackend\022\024\n" + "\014display_name\030\001 \001(\t\022\013\n" + "\003uri\030\002 \001(\t\022y\n" - + "\033health_check_firewall_state\030\003 \001(\0162T." - + "google.cloud.networkmanagement.v1beta1.L" - + "oadBalancerBackend.HealthCheckFirewallState\022,\n" + + "\033health_check_firewall_state\030\003 \001(\0162T.google.cloud.networkman" + + "agement.v1beta1.LoadBalancerBackend.HealthCheckFirewallState\022,\n" + "$health_check_allowing_firewall_rules\030\004 \003(\t\022,\n" + "$health_check_blocking_firewall_rules\030\005 \003(\t\"j\n" + "\030HealthCheckFirewallState\022+\n" @@ -456,8 +466,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021source_gateway_ip\030\006 \001(\t\022\023\n" + "\013network_uri\030\007 \001(\t\022\016\n" + "\006region\030\010 \001(\t\022W\n" - + "\014routing_type\030\t \001(\0162A.googl" - + "e.cloud.networkmanagement.v1beta1.VpnTunnelInfo.RoutingType\"[\n" + + "\014routing_type\030\t" + + " \001(\0162A.google.cloud.networkmanagement.v1beta1.VpnTunnelInfo.RoutingType\"[\n" + "\013RoutingType\022\034\n" + "\030ROUTING_TYPE_UNSPECIFIED\020\000\022\017\n" + "\013ROUTE_BASED\020\001\022\020\n" @@ -471,14 +481,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020destination_port\030\005 \001(\005\022\032\n" + "\022source_network_uri\030\006 \001(\t\022\037\n" + "\027destination_network_uri\030\007 \001(\t\022\030\n" - + "\020source_agent_uri\030\010 \001(\t\"\276\004\n" + + "\020source_agent_uri\030\010 \001(\t\"\321\006\n" + "\013DeliverInfo\022J\n" - + "\006target\030\001 \001(\0162:.g" - + "oogle.cloud.networkmanagement.v1beta1.DeliverInfo.Target\022\024\n" + + "\006target\030\001" + + " \001(\0162:.google.cloud.networkmanagement.v1beta1.DeliverInfo.Target\022\024\n" + "\014resource_uri\030\002 \001(\t\022\034\n\n" + "ip_address\030\003 \001(\tB\010\342\214\317\327\010\002\010\004\022\026\n" + "\016storage_bucket\030\004 \001(\t\022\035\n" - + "\025psc_google_api_target\030\005 \001(\t\"\367\002\n" + + "\025psc_google_api_target\030\005 \001(\t\022b\n" + + "\023google_service_type\030\006 \001(\0162E.google.cloud.networkmanageme" + + "nt.v1beta1.DeliverInfo.GoogleServiceType\"\367\002\n" + "\006Target\022\026\n" + "\022TARGET_UNSPECIFIED\020\000\022\014\n" + "\010INSTANCE\020\001\022\014\n" @@ -499,12 +511,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022CLOUD_RUN_REVISION\020\016\022\032\n" + "\026GOOGLE_MANAGED_SERVICE\020\017\022\022\n" + "\016REDIS_INSTANCE\020\020\022\021\n\r" - + "REDIS_CLUSTER\020\021\"\360\002\n" + + "REDIS_CLUSTER\020\021\"\254\001\n" + + "\021GoogleServiceType\022#\n" + + "\037GOOGLE_SERVICE_TYPE_UNSPECIFIED\020\000\022\007\n" + + "\003IAP\020\001\022$\n" + + " GFE_PROXY_OR_HEALTH_CHECK_PROBER\020\002\022\r\n" + + "\tCLOUD_DNS\020\003\022\031\n" + + "\025PRIVATE_GOOGLE_ACCESS\020\004\022\031\n" + + "\025SERVERLESS_VPC_ACCESS\020\005\"\216\003\n" + "\013ForwardInfo\022J\n" - + "\006target\030\001" - + " \001(\0162:.google.cloud.networkmanagement.v1beta1.ForwardInfo.Target\022\024\n" + + "\006target\030\001 \001(\0162:.google.cloud" + + ".networkmanagement.v1beta1.ForwardInfo.Target\022\024\n" + "\014resource_uri\030\002 \001(\t\022\034\n\n" - + "ip_address\030\003 \001(\tB\010\342\214\317\327\010\002\010\004\"\340\001\n" + + "ip_address\030\003 \001(\tB\010\342\214\317\327\010\002\010\004\"\376\001\n" + "\006Target\022\026\n" + "\022TARGET_UNSPECIFIED\020\000\022\017\n" + "\013PEERING_VPC\020\001\022\017\n" @@ -515,13 +534,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022CLOUD_SQL_INSTANCE\020\006\032\002\010\001\022\023\n" + "\017ANOTHER_PROJECT\020\007\022\013\n" + "\007NCC_HUB\020\010\022\024\n" - + "\020ROUTER_APPLIANCE\020\t\"\372\n\n" + + "\020ROUTER_APPLIANCE\020\t\022\034\n" + + "\030SECURE_WEB_PROXY_GATEWAY\020\n" + + "\"\251\013\n" + "\tAbortInfo\022F\n" - + "\005cause\030\001 \001(\01627.google.cloud.net" - + "workmanagement.v1beta1.AbortInfo.Cause\022\024\n" + + "\005cause\030\001 \001(\01627.google.cloud.n" + + "etworkmanagement.v1beta1.AbortInfo.Cause\022\024\n" + "\014resource_uri\030\002 \001(\t\022\034\n\n" + "ip_address\030\004 \001(\tB\010\342\214\317\327\010\002\010\004\022#\n" - + "\033projects_missing_permission\030\003 \003(\t\"\313\t\n" + + "\033projects_missing_permission\030\003 \003(\t\"\372\t\n" + "\005Cause\022\025\n" + "\021CAUSE_UNSPECIFIED\020\000\022\027\n" + "\017UNKNOWN_NETWORK\020\001\032\002\010\001\022\027\n" @@ -553,7 +574,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030NETWORK_CONFIG_NOT_FOUND\020\031\022\035\n" + "\031FIREWALL_CONFIG_NOT_FOUND\020\032\022\032\n" + "\026ROUTE_CONFIG_NOT_FOUND\020\033\0221\n" - + "-GOOGLE_MANAGED_SERVICE_AMBIGUOUS_PSC_ENDPOINT\020\023\022$\n" + + "-GOOGLE_MANAGED_SERVICE_AMBIGUOUS_PSC_ENDPOINT\020\023\022-\n" + + ")GOOGLE_MANAGED_SERVICE_AMBIGUOUS_ENDPOINT\020\'\022$\n" + " SOURCE_PSC_CLOUD_SQL_UNSUPPORTED\020\024\022$\n" + " SOURCE_REDIS_CLUSTER_UNSUPPORTED\020\"\022%\n" + "!SOURCE_REDIS_INSTANCE_UNSUPPORTED\020#\022&\n" @@ -561,14 +583,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027NON_ROUTABLE_IP_ADDRESS\020\026\022+\n" + "\'UNKNOWN_ISSUE_IN_GOOGLE_MANAGED_PROJECT\020\036\022-\n" + ")UNSUPPORTED_GOOGLE_MANAGED_PROJECT_CONFIG\020\037\022\033\n" - + "\027NO_SERVERLESS_IP_RANGES\020%\"\232\034\n" + + "\027NO_SERVERLESS_IP_RANGES\020%\"\225\036\n" + "\010DropInfo\022E\n" - + "\005cause\030\001 \001(\01626.google.cloud" - + ".networkmanagement.v1beta1.DropInfo.Cause\022\024\n" + + "\005cause\030\001 \001(\01626.goo" + + "gle.cloud.networkmanagement.v1beta1.DropInfo.Cause\022\024\n" + "\014resource_uri\030\002 \001(\t\022\021\n" + "\tsource_ip\030\003 \001(\t\022\026\n" + "\016destination_ip\030\004 \001(\t\022\016\n" - + "\006region\030\005 \001(\t\"\365\032\n" + + "\006region\030\005 \001(\t\"\360\034\n" + "\005Cause\022\025\n" + "\021CAUSE_UNSPECIFIED\020\000\022\034\n" + "\030UNKNOWN_EXTERNAL_ADDRESS\020\001\022\031\n" @@ -584,7 +606,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "*ROUTE_NEXT_HOP_FORWARDING_RULE_IP_MISMATCH\0203\022-\n" + ")ROUTE_NEXT_HOP_VPN_TUNNEL_NOT_ESTABLISHED\0204\022/\n" + "+ROUTE_NEXT_HOP_FORWARDING_RULE_TYPE_INVALID\0205\0222\n" - + ".NO_ROUTE_FROM_INTERNET_TO_PRIVATE_IPV6_ADDRESS\020,\022&\n" + + ".NO_ROUTE_FROM_INTERNET_TO_PRIVATE_IPV6_ADDRESS\020,\022>\n" + + ":NO_ROUTE_FROM_EXTERNAL_IPV6_SOURCE_TO_PRIVATE_IPV6_ADDRESS\020b\022&\n" + "\"VPN_TUNNEL_LOCAL_SELECTOR_MISMATCH\020-\022\'\n" + "#VPN_TUNNEL_REMOTE_SELECTOR_MISMATCH\020.\022\037\n" + "\033PRIVATE_TRAFFIC_TO_INTERNET\020\007\022$\n" @@ -659,7 +682,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\'PRIVATE_NAT_TO_PSC_ENDPOINT_UNSUPPORTED\020S\022\"\n" + "\036PSC_PORT_MAPPING_PORT_MISMATCH\020V\0227\n" + "3PSC_PORT_MAPPING_WITHOUT_PSC_CONNECTION_UNSUPPORTED\020W\0223\n" - + "/UNSUPPORTED_ROUTE_MATCHED_FOR_NAT64_DESTINATION\020X\"\201\001\n\r" + + "/UNSUPPORTED_ROUTE_MATCHED_FOR_NAT64_DESTINATION\020X\0227\n" + + "3TRAFFIC_FROM_HYBRID_ENDPOINT_TO_INTERNET_DISALLOWED\020Y\022\035\n" + + "\031NO_MATCHING_NAT64_GATEWAY\020Z\022-\n" + + ")LOAD_BALANCER_BACKEND_IP_VERSION_MISMATCH\020`\0222\n" + + ".NO_KNOWN_ROUTE_FROM_NCC_NETWORK_TO_DESTINATION\020a\"\201\001\n\r" + "GKEMasterInfo\022\023\n" + "\013cluster_uri\030\002 \001(\t\022\033\n" + "\023cluster_network_uri\030\004 \001(\t\022\023\n" @@ -683,7 +710,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020RedisClusterInfo\022\024\n" + "\014display_name\030\001 \001(\t\022\013\n" + "\003uri\030\002 \001(\t\022\023\n" - + "\013network_uri\030\003 \001(\t\022/\n" + + "\013network_ur", + "i\030\003 \001(\t\022/\n" + "\035discovery_endpoint_ip_address\030\004 \001(" + "\tB\010\342\214\317\327\010\002\010\004\022/\n" + "\035secondary_endpoint_ip_address\030\005 \001(" @@ -692,7 +720,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021CloudFunctionInfo\022\024\n" + "\014display_name\030\001 \001(\t\022\013\n" + "\003uri\030\002 \001(\t\022\020\n" - + "\010location\030\003 \001(\t\022\022\n\n" + + "\010location\030\003 \001(\t\022\022\n" + + "\n" + "version_id\030\004 \001(\003\"`\n" + "\024CloudRunRevisionInfo\022\024\n" + "\014display_name\030\001 \001(\t\022\013\n" @@ -718,61 +747,82 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023selected_ip_address\030\001 \001(" + "\tB\010\342\214\317\327\010\002\010\004\"\364\003\n" + "\007NatInfo\022B\n" - + "\004type\030\001" - + " \001(\01624.google.cloud.networkmanagement.v1beta1.NatInfo.Type\022\020\n" - + "\010proto", - "col\030\002 \001(\t\022\023\n\013network_uri\030\003 \001(\t\022\025\n\rold_so" - + "urce_ip\030\004 \001(\t\022\025\n\rnew_source_ip\030\005 \001(\t\022\032\n\022" - + "old_destination_ip\030\006 \001(\t\022\032\n\022new_destinat" - + "ion_ip\030\007 \001(\t\022\027\n\017old_source_port\030\010 \001(\005\022\027\n" - + "\017new_source_port\030\t \001(\005\022\034\n\024old_destinatio" - + "n_port\030\n \001(\005\022\034\n\024new_destination_port\030\013 \001" - + "(\005\022\022\n\nrouter_uri\030\014 \001(\t\022\030\n\020nat_gateway_na" - + "me\030\r \001(\t\"|\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\030" - + "\n\024INTERNAL_TO_EXTERNAL\020\001\022\030\n\024EXTERNAL_TO_" - + "INTERNAL\020\002\022\r\n\tCLOUD_NAT\020\003\022\033\n\027PRIVATE_SER" - + "VICE_CONNECT\020\004\"\244\002\n\023ProxyConnectionInfo\022\020" - + "\n\010protocol\030\001 \001(\t\022\025\n\rold_source_ip\030\002 \001(\t\022" - + "\025\n\rnew_source_ip\030\003 \001(\t\022\032\n\022old_destinatio" - + "n_ip\030\004 \001(\t\022\032\n\022new_destination_ip\030\005 \001(\t\022\027" - + "\n\017old_source_port\030\006 \001(\005\022\027\n\017new_source_po" - + "rt\030\007 \001(\005\022\034\n\024old_destination_port\030\010 \001(\005\022\034" - + "\n\024new_destination_port\030\t \001(\005\022\022\n\nsubnet_u" - + "ri\030\n \001(\t\022\023\n\013network_uri\030\013 \001(\t\"\367\004\n\027LoadBa" - + "lancerBackendInfo\022\014\n\004name\030\001 \001(\t\022\024\n\014insta" - + "nce_uri\030\002 \001(\t\022\033\n\023backend_service_uri\030\003 \001" - + "(\t\022\032\n\022instance_group_uri\030\004 \001(\t\022\"\n\032networ" - + "k_endpoint_group_uri\030\005 \001(\t\022\032\n\022backend_bu" - + "cket_uri\030\010 \001(\t\022\"\n\032psc_service_attachment" - + "_uri\030\t \001(\t\022\035\n\025psc_google_api_target\030\n \001(" - + "\t\022\030\n\020health_check_uri\030\006 \001(\t\022\221\001\n#health_c" - + "heck_firewalls_config_state\030\007 \001(\0162_.goog" - + "le.cloud.networkmanagement.v1beta1.LoadB" - + "alancerBackendInfo.HealthCheckFirewallsC" - + "onfigStateB\003\340A\003\"\315\001\n\037HealthCheckFirewalls" - + "ConfigState\0223\n/HEALTH_CHECK_FIREWALLS_CO" - + "NFIG_STATE_UNSPECIFIED\020\000\022\030\n\024FIREWALLS_CO" - + "NFIGURED\020\001\022\"\n\036FIREWALLS_PARTIALLY_CONFIG" - + "URED\020\002\022\034\n\030FIREWALLS_NOT_CONFIGURED\020\003\022\031\n\025" - + "FIREWALLS_UNSUPPORTED\020\004\"#\n\021StorageBucket" - + "Info\022\016\n\006bucket\030\001 \001(\t\"$\n\021ServerlessNegInf" - + "o\022\017\n\007neg_uri\030\001 \001(\t*\366\002\n\020LoadBalancerType\022" - + "\"\n\036LOAD_BALANCER_TYPE_UNSPECIFIED\020\000\022 \n\034H" - + "TTPS_ADVANCED_LOAD_BALANCER\020\001\022\027\n\023HTTPS_L" - + "OAD_BALANCER\020\002\022 \n\034REGIONAL_HTTPS_LOAD_BA" - + "LANCER\020\003\022 \n\034INTERNAL_HTTPS_LOAD_BALANCER" - + "\020\004\022\033\n\027SSL_PROXY_LOAD_BALANCER\020\005\022\033\n\027TCP_P" - + "ROXY_LOAD_BALANCER\020\006\022$\n INTERNAL_TCP_PRO" - + "XY_LOAD_BALANCER\020\007\022\031\n\025NETWORK_LOAD_BALAN" - + "CER\020\010\022 \n\034LEGACY_NETWORK_LOAD_BALANCER\020\t\022" - + "\"\n\036TCP_UDP_INTERNAL_LOAD_BALANCER\020\nB\222\002\n*" - + "com.google.cloud.networkmanagement.v1bet" - + "a1B\nTraceProtoP\001ZXcloud.google.com/go/ne" - + "tworkmanagement/apiv1beta1/networkmanage" - + "mentpb;networkmanagementpb\252\002&Google.Clou" - + "d.NetworkManagement.V1Beta1\312\002&Google\\Clo" - + "ud\\NetworkManagement\\V1beta1\352\002)Google::C" - + "loud::NetworkManagement::V1beta1b\006proto3" + + "\004type\030\001 \001(\01624." + + "google.cloud.networkmanagement.v1beta1.NatInfo.Type\022\020\n" + + "\010protocol\030\002 \001(\t\022\023\n" + + "\013network_uri\030\003 \001(\t\022\025\n\r" + + "old_source_ip\030\004 \001(\t\022\025\n\r" + + "new_source_ip\030\005 \001(\t\022\032\n" + + "\022old_destination_ip\030\006 \001(\t\022\032\n" + + "\022new_destination_ip\030\007 \001(\t\022\027\n" + + "\017old_source_port\030\010 \001(\005\022\027\n" + + "\017new_source_port\030\t \001(\005\022\034\n" + + "\024old_destination_port\030\n" + + " \001(\005\022\034\n" + + "\024new_destination_port\030\013 \001(\005\022\022\n\n" + + "router_uri\030\014 \001(\t\022\030\n" + + "\020nat_gateway_name\030\r" + + " \001(\t\"|\n" + + "\004Type\022\024\n" + + "\020TYPE_UNSPECIFIED\020\000\022\030\n" + + "\024INTERNAL_TO_EXTERNAL\020\001\022\030\n" + + "\024EXTERNAL_TO_INTERNAL\020\002\022\r\n" + + "\tCLOUD_NAT\020\003\022\033\n" + + "\027PRIVATE_SERVICE_CONNECT\020\004\"\244\002\n" + + "\023ProxyConnectionInfo\022\020\n" + + "\010protocol\030\001 \001(\t\022\025\n\r" + + "old_source_ip\030\002 \001(\t\022\025\n\r" + + "new_source_ip\030\003 \001(\t\022\032\n" + + "\022old_destination_ip\030\004 \001(\t\022\032\n" + + "\022new_destination_ip\030\005 \001(\t\022\027\n" + + "\017old_source_port\030\006 \001(\005\022\027\n" + + "\017new_source_port\030\007 \001(\005\022\034\n" + + "\024old_destination_port\030\010 \001(\005\022\034\n" + + "\024new_destination_port\030\t \001(\005\022\022\n\n" + + "subnet_uri\030\n" + + " \001(\t\022\023\n" + + "\013network_uri\030\013 \001(\t\"\367\004\n" + + "\027LoadBalancerBackendInfo\022\014\n" + + "\004name\030\001 \001(\t\022\024\n" + + "\014instance_uri\030\002 \001(\t\022\033\n" + + "\023backend_service_uri\030\003 \001(\t\022\032\n" + + "\022instance_group_uri\030\004 \001(\t\022\"\n" + + "\032network_endpoint_group_uri\030\005 \001(\t\022\032\n" + + "\022backend_bucket_uri\030\010 \001(\t\022\"\n" + + "\032psc_service_attachment_uri\030\t \001(\t\022\035\n" + + "\025psc_google_api_target\030\n" + + " \001(\t\022\030\n" + + "\020health_check_uri\030\006 \001(\t\022\221\001\n" + + "#health_check_firewalls_config_state\030\007 \001(\0162_.google.cloud.networkmana" + + "gement.v1beta1.LoadBalancerBackendInfo.HealthCheckFirewallsConfigStateB\003\340A\003\"\315\001\n" + + "\037HealthCheckFirewallsConfigState\0223\n" + + "/HEALTH_CHECK_FIREWALLS_CONFIG_STATE_UNSPECIFIED\020\000\022\030\n" + + "\024FIREWALLS_CONFIGURED\020\001\022\"\n" + + "\036FIREWALLS_PARTIALLY_CONFIGURED\020\002\022\034\n" + + "\030FIREWALLS_NOT_CONFIGURED\020\003\022\031\n" + + "\025FIREWALLS_UNSUPPORTED\020\004\"#\n" + + "\021StorageBucketInfo\022\016\n" + + "\006bucket\030\001 \001(\t\"$\n" + + "\021ServerlessNegInfo\022\017\n" + + "\007neg_uri\030\001 \001(\t*\366\002\n" + + "\020LoadBalancerType\022\"\n" + + "\036LOAD_BALANCER_TYPE_UNSPECIFIED\020\000\022 \n" + + "\034HTTPS_ADVANCED_LOAD_BALANCER\020\001\022\027\n" + + "\023HTTPS_LOAD_BALANCER\020\002\022 \n" + + "\034REGIONAL_HTTPS_LOAD_BALANCER\020\003\022 \n" + + "\034INTERNAL_HTTPS_LOAD_BALANCER\020\004\022\033\n" + + "\027SSL_PROXY_LOAD_BALANCER\020\005\022\033\n" + + "\027TCP_PROXY_LOAD_BALANCER\020\006\022$\n" + + " INTERNAL_TCP_PROXY_LOAD_BALANCER\020\007\022\031\n" + + "\025NETWORK_LOAD_BALANCER\020\010\022 \n" + + "\034LEGACY_NETWORK_LOAD_BALANCER\020\t\022\"\n" + + "\036TCP_UDP_INTERNAL_LOAD_BALANCER\020\n" + + "B\222\002\n" + + "*com.google.cloud.networkmanagement.v1beta1B\n" + + "TraceProtoP\001ZXcloud.google.com/go/networkmanagement/apiv" + + "1beta1/networkmanagementpb;networkmanagementpb\252\002&Google.Cloud.NetworkManagement." + + "V1Beta1\312\002&Google\\Cloud\\NetworkManagement" + + "\\V1beta1\352\002)Google::Cloud::NetworkManagement::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -845,6 +895,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkTags", "ServiceAccount", "PscNetworkAttachmentUri", + "Running", + "Status", }); internal_static_google_cloud_networkmanagement_v1beta1_NetworkInfo_descriptor = getDescriptor().getMessageTypes().get(3); @@ -871,6 +923,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Policy", "PolicyUri", "FirewallRuleType", + "PolicyPriority", }); internal_static_google_cloud_networkmanagement_v1beta1_RouteInfo_descriptor = getDescriptor().getMessageTypes().get(5); @@ -994,7 +1047,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1beta1_DeliverInfo_descriptor, new java.lang.String[] { - "Target", "ResourceUri", "IpAddress", "StorageBucket", "PscGoogleApiTarget", + "Target", + "ResourceUri", + "IpAddress", + "StorageBucket", + "PscGoogleApiTarget", + "GoogleServiceType", }); internal_static_google_cloud_networkmanagement_v1beta1_ForwardInfo_descriptor = getDescriptor().getMessageTypes().get(14); diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/UpdateVpcFlowLogsConfigRequest.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/UpdateVpcFlowLogsConfigRequest.java index b12287714ba8..b046667bab0a 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/UpdateVpcFlowLogsConfigRequest.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/UpdateVpcFlowLogsConfigRequest.java @@ -74,6 +74,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
          * Required. Mask of fields to update. At least one path must be supplied in
          * this field.
      +   * For example, to change the state of the configuration to ENABLED, specify
      +   *   `update_mask` = `"state"`, and the `vpc_flow_logs_config` would be:
      +   *   `vpc_flow_logs_config = {
      +   *     name =
      +   *     "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config"
      +   *     state = "ENABLED" }`
          * 
      * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -92,6 +98,12 @@ public boolean hasUpdateMask() { *
          * Required. Mask of fields to update. At least one path must be supplied in
          * this field.
      +   * For example, to change the state of the configuration to ENABLED, specify
      +   *   `update_mask` = `"state"`, and the `vpc_flow_logs_config` would be:
      +   *   `vpc_flow_logs_config = {
      +   *     name =
      +   *     "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config"
      +   *     state = "ENABLED" }`
          * 
      * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -110,6 +122,12 @@ public com.google.protobuf.FieldMask getUpdateMask() { *
          * Required. Mask of fields to update. At least one path must be supplied in
          * this field.
      +   * For example, to change the state of the configuration to ENABLED, specify
      +   *   `update_mask` = `"state"`, and the `vpc_flow_logs_config` would be:
      +   *   `vpc_flow_logs_config = {
      +   *     name =
      +   *     "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config"
      +   *     state = "ENABLED" }`
          * 
      * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -606,6 +624,12 @@ public Builder mergeFrom( *
            * Required. Mask of fields to update. At least one path must be supplied in
            * this field.
      +     * For example, to change the state of the configuration to ENABLED, specify
      +     *   `update_mask` = `"state"`, and the `vpc_flow_logs_config` would be:
      +     *   `vpc_flow_logs_config = {
      +     *     name =
      +     *     "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config"
      +     *     state = "ENABLED" }`
            * 
      * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -623,6 +647,12 @@ public boolean hasUpdateMask() { *
            * Required. Mask of fields to update. At least one path must be supplied in
            * this field.
      +     * For example, to change the state of the configuration to ENABLED, specify
      +     *   `update_mask` = `"state"`, and the `vpc_flow_logs_config` would be:
      +     *   `vpc_flow_logs_config = {
      +     *     name =
      +     *     "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config"
      +     *     state = "ENABLED" }`
            * 
      * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -646,6 +676,12 @@ public com.google.protobuf.FieldMask getUpdateMask() { *
            * Required. Mask of fields to update. At least one path must be supplied in
            * this field.
      +     * For example, to change the state of the configuration to ENABLED, specify
      +     *   `update_mask` = `"state"`, and the `vpc_flow_logs_config` would be:
      +     *   `vpc_flow_logs_config = {
      +     *     name =
      +     *     "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config"
      +     *     state = "ENABLED" }`
            * 
      * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -671,6 +707,12 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { *
            * Required. Mask of fields to update. At least one path must be supplied in
            * this field.
      +     * For example, to change the state of the configuration to ENABLED, specify
      +     *   `update_mask` = `"state"`, and the `vpc_flow_logs_config` would be:
      +     *   `vpc_flow_logs_config = {
      +     *     name =
      +     *     "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config"
      +     *     state = "ENABLED" }`
            * 
      * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -693,6 +735,12 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal *
            * Required. Mask of fields to update. At least one path must be supplied in
            * this field.
      +     * For example, to change the state of the configuration to ENABLED, specify
      +     *   `update_mask` = `"state"`, and the `vpc_flow_logs_config` would be:
      +     *   `vpc_flow_logs_config = {
      +     *     name =
      +     *     "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config"
      +     *     state = "ENABLED" }`
            * 
      * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -723,6 +771,12 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { *
            * Required. Mask of fields to update. At least one path must be supplied in
            * this field.
      +     * For example, to change the state of the configuration to ENABLED, specify
      +     *   `update_mask` = `"state"`, and the `vpc_flow_logs_config` would be:
      +     *   `vpc_flow_logs_config = {
      +     *     name =
      +     *     "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config"
      +     *     state = "ENABLED" }`
            * 
      * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -745,6 +799,12 @@ public Builder clearUpdateMask() { *
            * Required. Mask of fields to update. At least one path must be supplied in
            * this field.
      +     * For example, to change the state of the configuration to ENABLED, specify
      +     *   `update_mask` = `"state"`, and the `vpc_flow_logs_config` would be:
      +     *   `vpc_flow_logs_config = {
      +     *     name =
      +     *     "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config"
      +     *     state = "ENABLED" }`
            * 
      * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -762,6 +822,12 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { *
            * Required. Mask of fields to update. At least one path must be supplied in
            * this field.
      +     * For example, to change the state of the configuration to ENABLED, specify
      +     *   `update_mask` = `"state"`, and the `vpc_flow_logs_config` would be:
      +     *   `vpc_flow_logs_config = {
      +     *     name =
      +     *     "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config"
      +     *     state = "ENABLED" }`
            * 
      * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -783,6 +849,12 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { *
            * Required. Mask of fields to update. At least one path must be supplied in
            * this field.
      +     * For example, to change the state of the configuration to ENABLED, specify
      +     *   `update_mask` = `"state"`, and the `vpc_flow_logs_config` would be:
      +     *   `vpc_flow_logs_config = {
      +     *     name =
      +     *     "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config"
      +     *     state = "ENABLED" }`
            * 
      * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/UpdateVpcFlowLogsConfigRequestOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/UpdateVpcFlowLogsConfigRequestOrBuilder.java index a5195d764be2..c555be41200e 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/UpdateVpcFlowLogsConfigRequestOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/UpdateVpcFlowLogsConfigRequestOrBuilder.java @@ -30,6 +30,12 @@ public interface UpdateVpcFlowLogsConfigRequestOrBuilder *
          * Required. Mask of fields to update. At least one path must be supplied in
          * this field.
      +   * For example, to change the state of the configuration to ENABLED, specify
      +   *   `update_mask` = `"state"`, and the `vpc_flow_logs_config` would be:
      +   *   `vpc_flow_logs_config = {
      +   *     name =
      +   *     "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config"
      +   *     state = "ENABLED" }`
          * 
      * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -45,6 +51,12 @@ public interface UpdateVpcFlowLogsConfigRequestOrBuilder *
          * Required. Mask of fields to update. At least one path must be supplied in
          * this field.
      +   * For example, to change the state of the configuration to ENABLED, specify
      +   *   `update_mask` = `"state"`, and the `vpc_flow_logs_config` would be:
      +   *   `vpc_flow_logs_config = {
      +   *     name =
      +   *     "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config"
      +   *     state = "ENABLED" }`
          * 
      * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -60,6 +72,12 @@ public interface UpdateVpcFlowLogsConfigRequestOrBuilder *
          * Required. Mask of fields to update. At least one path must be supplied in
          * this field.
      +   * For example, to change the state of the configuration to ENABLED, specify
      +   *   `update_mask` = `"state"`, and the `vpc_flow_logs_config` would be:
      +   *   `vpc_flow_logs_config = {
      +   *     name =
      +   *     "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config"
      +   *     state = "ENABLED" }`
          * 
      * * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsConfig.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsConfig.java index 30cfbad969f5..374a2cadae11 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsConfig.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsConfig.java @@ -47,6 +47,8 @@ private VpcFlowLogsConfig() { metadata_ = 0; metadataFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); filterExpr_ = ""; + crossProjectMetadata_ = 0; + targetResourceState_ = 0; } @java.lang.Override @@ -87,7 +89,6 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl * *
          * Determines whether this configuration will be generating logs.
      -   * Setting state=DISABLED will pause the log generation for this config.
          * 
      * * Protobuf enum {@code google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State} @@ -685,6 +686,342 @@ private Metadata(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata) } + /** + * + * + *
      +   * Determines whether to include cross project annotations in the logs.
      +   * Project configurations will always have CROSS_PROJECT_METADATA_DISABLED.
      +   * 
      + * + * Protobuf enum {@code + * google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata} + */ + public enum CrossProjectMetadata implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +     * If not specified, the default is CROSS_PROJECT_METADATA_ENABLED.
      +     * 
      + * + * CROSS_PROJECT_METADATA_UNSPECIFIED = 0; + */ + CROSS_PROJECT_METADATA_UNSPECIFIED(0), + /** + * + * + *
      +     * When CROSS_PROJECT_METADATA_ENABLED, metadata from other projects will be
      +     * included in the logs.
      +     * 
      + * + * CROSS_PROJECT_METADATA_ENABLED = 1; + */ + CROSS_PROJECT_METADATA_ENABLED(1), + /** + * + * + *
      +     * When CROSS_PROJECT_METADATA_DISABLED, metadata from other projects will
      +     * not be included in the logs.
      +     * 
      + * + * CROSS_PROJECT_METADATA_DISABLED = 2; + */ + CROSS_PROJECT_METADATA_DISABLED(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
      +     * If not specified, the default is CROSS_PROJECT_METADATA_ENABLED.
      +     * 
      + * + * CROSS_PROJECT_METADATA_UNSPECIFIED = 0; + */ + public static final int CROSS_PROJECT_METADATA_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +     * When CROSS_PROJECT_METADATA_ENABLED, metadata from other projects will be
      +     * included in the logs.
      +     * 
      + * + * CROSS_PROJECT_METADATA_ENABLED = 1; + */ + public static final int CROSS_PROJECT_METADATA_ENABLED_VALUE = 1; + + /** + * + * + *
      +     * When CROSS_PROJECT_METADATA_DISABLED, metadata from other projects will
      +     * not be included in the logs.
      +     * 
      + * + * CROSS_PROJECT_METADATA_DISABLED = 2; + */ + public static final int CROSS_PROJECT_METADATA_DISABLED_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static CrossProjectMetadata 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 CrossProjectMetadata forNumber(int value) { + switch (value) { + case 0: + return CROSS_PROJECT_METADATA_UNSPECIFIED; + case 1: + return CROSS_PROJECT_METADATA_ENABLED; + case 2: + return CROSS_PROJECT_METADATA_DISABLED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CrossProjectMetadata findValueByNumber(int number) { + return CrossProjectMetadata.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.getDescriptor() + .getEnumTypes() + .get(3); + } + + private static final CrossProjectMetadata[] VALUES = values(); + + public static CrossProjectMetadata 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 CrossProjectMetadata(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata) + } + + /** + * + * + *
      +   * Output only. Indicates whether the target resource exists, for diagnostic
      +   * purposes.
      +   * 
      + * + * Protobuf enum {@code + * google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.TargetResourceState} + */ + public enum TargetResourceState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +     * Unspecified target resource state.
      +     * 
      + * + * TARGET_RESOURCE_STATE_UNSPECIFIED = 0; + */ + TARGET_RESOURCE_STATE_UNSPECIFIED(0), + /** + * + * + *
      +     * Indicates that the target resource exists.
      +     * 
      + * + * TARGET_RESOURCE_EXISTS = 1; + */ + TARGET_RESOURCE_EXISTS(1), + /** + * + * + *
      +     * Indicates that the target resource does not exist.
      +     * 
      + * + * TARGET_RESOURCE_DOES_NOT_EXIST = 2; + */ + TARGET_RESOURCE_DOES_NOT_EXIST(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
      +     * Unspecified target resource state.
      +     * 
      + * + * TARGET_RESOURCE_STATE_UNSPECIFIED = 0; + */ + public static final int TARGET_RESOURCE_STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +     * Indicates that the target resource exists.
      +     * 
      + * + * TARGET_RESOURCE_EXISTS = 1; + */ + public static final int TARGET_RESOURCE_EXISTS_VALUE = 1; + + /** + * + * + *
      +     * Indicates that the target resource does not exist.
      +     * 
      + * + * TARGET_RESOURCE_DOES_NOT_EXIST = 2; + */ + public static final int TARGET_RESOURCE_DOES_NOT_EXIST_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 TargetResourceState 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 TargetResourceState forNumber(int value) { + switch (value) { + case 0: + return TARGET_RESOURCE_STATE_UNSPECIFIED; + case 1: + return TARGET_RESOURCE_EXISTS; + case 2: + return TARGET_RESOURCE_DOES_NOT_EXIST; + 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 TargetResourceState findValueByNumber(int number) { + return TargetResourceState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.getDescriptor() + .getEnumTypes() + .get(4); + } + + private static final TargetResourceState[] VALUES = values(); + + public static TargetResourceState 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 TargetResourceState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.TargetResourceState) + } + private int bitField0_; private int targetResourceCase_ = 0; @@ -695,6 +1032,8 @@ public enum TargetResourceCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { + NETWORK(100), + SUBNET(101), INTERCONNECT_ATTACHMENT(102), VPN_TUNNEL(103), TARGETRESOURCE_NOT_SET(0); @@ -716,6 +1055,10 @@ public static TargetResourceCase valueOf(int value) { public static TargetResourceCase forNumber(int value) { switch (value) { + case 100: + return NETWORK; + case 101: + return SUBNET; case 102: return INTERCONNECT_ATTACHMENT; case 103: @@ -745,8 +1088,14 @@ public TargetResourceCase getTargetResourceCase() { * * *
      -   * Identifier. Unique name of the configuration using the form:
      -   *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
      +   * Identifier. Unique name of the configuration. The name can have one of the
      +   * following forms:
      +   *
      +   * - For project-level configurations:
      +   * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
      +   *
      +   * - For organization-level configurations:
      +   * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
          * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -770,8 +1119,14 @@ public java.lang.String getName() { * * *
      -   * Identifier. Unique name of the configuration using the form:
      -   *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
      +   * Identifier. Unique name of the configuration. The name can have one of the
      +   * following forms:
      +   *
      +   * - For project-level configurations:
      +   * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
      +   *
      +   * - For organization-level configurations:
      +   * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
          * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -871,7 +1226,8 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * *
          * Optional. The state of the VPC Flow Log configuration. Default value is
      -   * ENABLED. When creating a new configuration, it must be enabled.
      +   * ENABLED. When creating a new configuration, it must be enabled. Setting
      +   * state=DISABLED will pause the log generation for this config.
          * 
      * * @@ -890,7 +1246,8 @@ public boolean hasState() { * *
          * Optional. The state of the VPC Flow Log configuration. Default value is
      -   * ENABLED. When creating a new configuration, it must be enabled.
      +   * ENABLED. When creating a new configuration, it must be enabled. Setting
      +   * state=DISABLED will pause the log generation for this config.
          * 
      * * @@ -909,7 +1266,8 @@ public int getStateValue() { * *
          * Optional. The state of the VPC Flow Log configuration. Default value is
      -   * ENABLED. When creating a new configuration, it must be enabled.
      +   * ENABLED. When creating a new configuration, it must be enabled. Setting
      +   * state=DISABLED will pause the log generation for this config.
          * 
      * * @@ -1246,6 +1604,298 @@ public com.google.protobuf.ByteString getFilterExprBytes() { } } + public static final int CROSS_PROJECT_METADATA_FIELD_NUMBER = 13; + private int crossProjectMetadata_ = 0; + + /** + * + * + *
      +   * Optional. Determines whether to include cross project annotations in the
      +   * logs. This field is available only for organization configurations. If not
      +   * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
      +   * 
      + * + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the crossProjectMetadata field is set. + */ + @java.lang.Override + public boolean hasCrossProjectMetadata() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
      +   * Optional. Determines whether to include cross project annotations in the
      +   * logs. This field is available only for organization configurations. If not
      +   * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
      +   * 
      + * + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for crossProjectMetadata. + */ + @java.lang.Override + public int getCrossProjectMetadataValue() { + return crossProjectMetadata_; + } + + /** + * + * + *
      +   * Optional. Determines whether to include cross project annotations in the
      +   * logs. This field is available only for organization configurations. If not
      +   * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
      +   * 
      + * + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The crossProjectMetadata. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata + getCrossProjectMetadata() { + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata result = + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata.forNumber( + crossProjectMetadata_); + return result == null + ? com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata + .UNRECOGNIZED + : result; + } + + public static final int TARGET_RESOURCE_STATE_FIELD_NUMBER = 12; + private int targetResourceState_ = 0; + + /** + * + * + *
      +   * Output only. Describes the state of the configured target resource for
      +   * diagnostic purposes.
      +   * 
      + * + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.TargetResourceState target_resource_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the targetResourceState field is set. + */ + @java.lang.Override + public boolean hasTargetResourceState() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
      +   * Output only. Describes the state of the configured target resource for
      +   * diagnostic purposes.
      +   * 
      + * + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.TargetResourceState target_resource_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for targetResourceState. + */ + @java.lang.Override + public int getTargetResourceStateValue() { + return targetResourceState_; + } + + /** + * + * + *
      +   * Output only. Describes the state of the configured target resource for
      +   * diagnostic purposes.
      +   * 
      + * + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.TargetResourceState target_resource_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The targetResourceState. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.TargetResourceState + getTargetResourceState() { + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.TargetResourceState result = + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.TargetResourceState.forNumber( + targetResourceState_); + return result == null + ? com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.TargetResourceState + .UNRECOGNIZED + : result; + } + + public static final int NETWORK_FIELD_NUMBER = 100; + + /** + * + * + *
      +   * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
      +   * within the network.
      +   * Format: projects/{project_id}/global/networks/{name}
      +   * 
      + * + * string network = 100; + * + * @return Whether the network field is set. + */ + public boolean hasNetwork() { + return targetResourceCase_ == 100; + } + + /** + * + * + *
      +   * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
      +   * within the network.
      +   * Format: projects/{project_id}/global/networks/{name}
      +   * 
      + * + * string network = 100; + * + * @return The network. + */ + public java.lang.String getNetwork() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 100) { + ref = targetResource_; + } + if (ref instanceof java.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 (targetResourceCase_ == 100) { + targetResource_ = s; + } + return s; + } + } + + /** + * + * + *
      +   * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
      +   * within the network.
      +   * Format: projects/{project_id}/global/networks/{name}
      +   * 
      + * + * string network = 100; + * + * @return The bytes for network. + */ + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 100) { + ref = targetResource_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (targetResourceCase_ == 100) { + targetResource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUBNET_FIELD_NUMBER = 101; + + /** + * + * + *
      +   * Traffic will be logged from VMs within the subnetwork.
      +   * Format: projects/{project_id}/regions/{region}/subnetworks/{name}
      +   * 
      + * + * string subnet = 101; + * + * @return Whether the subnet field is set. + */ + public boolean hasSubnet() { + return targetResourceCase_ == 101; + } + + /** + * + * + *
      +   * Traffic will be logged from VMs within the subnetwork.
      +   * Format: projects/{project_id}/regions/{region}/subnetworks/{name}
      +   * 
      + * + * string subnet = 101; + * + * @return The subnet. + */ + public java.lang.String getSubnet() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 101) { + ref = targetResource_; + } + if (ref instanceof java.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 (targetResourceCase_ == 101) { + targetResource_ = s; + } + return s; + } + } + + /** + * + * + *
      +   * Traffic will be logged from VMs within the subnetwork.
      +   * Format: projects/{project_id}/regions/{region}/subnetworks/{name}
      +   * 
      + * + * string subnet = 101; + * + * @return The bytes for subnet. + */ + public com.google.protobuf.ByteString getSubnetBytes() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 101) { + ref = targetResource_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (targetResourceCase_ == 101) { + targetResource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int INTERCONNECT_ATTACHMENT_FIELD_NUMBER = 102; /** @@ -1525,7 +2175,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { */ @java.lang.Override public boolean hasCreateTime() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -1577,7 +2227,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { */ @java.lang.Override public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** @@ -1650,14 +2300,26 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000020) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, filterExpr_); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { output.writeMessage(9, getCreateTime()); } - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { output.writeMessage(10, getUpdateTime()); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 11); + if (((bitField0_ & 0x00000080) != 0)) { + output.writeEnum(12, targetResourceState_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeEnum(13, crossProjectMetadata_); + } + if (targetResourceCase_ == 100) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 100, targetResource_); + } + if (targetResourceCase_ == 101) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 101, targetResource_); + } if (targetResourceCase_ == 102) { com.google.protobuf.GeneratedMessageV3.writeString(output, 102, targetResource_); } @@ -1702,10 +2364,10 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, filterExpr_); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getCreateTime()); } - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getUpdateTime()); } for (java.util.Map.Entry entry : @@ -1718,6 +2380,18 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, labels__); } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, targetResourceState_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, crossProjectMetadata_); + } + if (targetResourceCase_ == 100) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, targetResource_); + } + if (targetResourceCase_ == 101) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(101, targetResource_); + } if (targetResourceCase_ == 102) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(102, targetResource_); } @@ -1767,6 +2441,14 @@ public boolean equals(final java.lang.Object obj) { if (hasFilterExpr()) { if (!getFilterExpr().equals(other.getFilterExpr())) return false; } + if (hasCrossProjectMetadata() != other.hasCrossProjectMetadata()) return false; + if (hasCrossProjectMetadata()) { + if (crossProjectMetadata_ != other.crossProjectMetadata_) return false; + } + if (hasTargetResourceState() != other.hasTargetResourceState()) return false; + if (hasTargetResourceState()) { + if (targetResourceState_ != other.targetResourceState_) return false; + } if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { @@ -1778,6 +2460,12 @@ public boolean equals(final java.lang.Object obj) { } if (!getTargetResourceCase().equals(other.getTargetResourceCase())) return false; switch (targetResourceCase_) { + case 100: + if (!getNetwork().equals(other.getNetwork())) return false; + break; + case 101: + if (!getSubnet().equals(other.getSubnet())) return false; + break; case 102: if (!getInterconnectAttachment().equals(other.getInterconnectAttachment())) return false; break; @@ -1828,6 +2516,14 @@ public int hashCode() { hash = (37 * hash) + FILTER_EXPR_FIELD_NUMBER; hash = (53 * hash) + getFilterExpr().hashCode(); } + if (hasCrossProjectMetadata()) { + hash = (37 * hash) + CROSS_PROJECT_METADATA_FIELD_NUMBER; + hash = (53 * hash) + crossProjectMetadata_; + } + if (hasTargetResourceState()) { + hash = (37 * hash) + TARGET_RESOURCE_STATE_FIELD_NUMBER; + hash = (53 * hash) + targetResourceState_; + } if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); @@ -1841,6 +2537,14 @@ public int hashCode() { hash = (53 * hash) + getUpdateTime().hashCode(); } switch (targetResourceCase_) { + case 100: + hash = (37 * hash) + NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getNetwork().hashCode(); + break; + case 101: + hash = (37 * hash) + SUBNET_FIELD_NUMBER; + hash = (53 * hash) + getSubnet().hashCode(); + break; case 102: hash = (37 * hash) + INTERCONNECT_ATTACHMENT_FIELD_NUMBER; hash = (53 * hash) + getInterconnectAttachment().hashCode(); @@ -2033,6 +2737,8 @@ public Builder clear() { metadata_ = 0; metadataFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); filterExpr_ = ""; + crossProjectMetadata_ = 0; + targetResourceState_ = 0; internalGetMutableLabels().clear(); createTime_ = null; if (createTimeBuilder_ != null) { @@ -2117,17 +2823,25 @@ private void buildPartial0( result.filterExpr_ = filterExpr_; to_bitField0_ |= 0x00000020; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { + result.crossProjectMetadata_ = crossProjectMetadata_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.targetResourceState_ = targetResourceState_; + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00004000) != 0)) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00008000) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); - to_bitField0_ |= 0x00000040; + to_bitField0_ |= 0x00000100; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00010000) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); - to_bitField0_ |= 0x00000080; + to_bitField0_ |= 0x00000200; } result.bitField0_ |= to_bitField0_; } @@ -2222,8 +2936,14 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsC bitField0_ |= 0x00000080; onChanged(); } + if (other.hasCrossProjectMetadata()) { + setCrossProjectMetadata(other.getCrossProjectMetadata()); + } + if (other.hasTargetResourceState()) { + setTargetResourceState(other.getTargetResourceState()); + } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00004000; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -2231,6 +2951,20 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsC mergeUpdateTime(other.getUpdateTime()); } switch (other.getTargetResourceCase()) { + case NETWORK: + { + targetResourceCase_ = 100; + targetResource_ = other.targetResource_; + onChanged(); + break; + } + case SUBNET: + { + targetResourceCase_ = 101; + targetResource_ = other.targetResource_; + onChanged(); + break; + } case INTERCONNECT_ATTACHMENT: { targetResourceCase_ = 102; @@ -2328,13 +3062,13 @@ public Builder mergeFrom( case 74: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00008000; break; } // case 74 case 82: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00010000; break; } // case 82 case 90: @@ -2346,9 +3080,35 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00004000; break; } // case 90 + case 96: + { + targetResourceState_ = input.readEnum(); + bitField0_ |= 0x00000200; + break; + } // case 96 + case 104: + { + crossProjectMetadata_ = input.readEnum(); + bitField0_ |= 0x00000100; + break; + } // case 104 + case 802: + { + java.lang.String s = input.readStringRequireUtf8(); + targetResourceCase_ = 100; + targetResource_ = s; + break; + } // case 802 + case 810: + { + java.lang.String s = input.readStringRequireUtf8(); + targetResourceCase_ = 101; + targetResource_ = s; + break; + } // case 810 case 818: { java.lang.String s = input.readStringRequireUtf8(); @@ -2387,84 +3147,405 @@ public TargetResourceCase getTargetResourceCase() { return TargetResourceCase.forNumber(targetResourceCase_); } - public Builder clearTargetResource() { - targetResourceCase_ = 0; - targetResource_ = null; + public Builder clearTargetResource() { + targetResourceCase_ = 0; + targetResource_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Identifier. Unique name of the configuration. The name can have one of the
      +     * following forms:
      +     *
      +     * - For project-level configurations:
      +     * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
      +     *
      +     * - For organization-level configurations:
      +     * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_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. Unique name of the configuration. The name can have one of the
      +     * following forms:
      +     *
      +     * - For project-level configurations:
      +     * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
      +     *
      +     * - For organization-level configurations:
      +     * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_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. Unique name of the configuration. The name can have one of the
      +     * following forms:
      +     *
      +     * - For project-level configurations:
      +     * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
      +     *
      +     * - For organization-level configurations:
      +     * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_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. Unique name of the configuration. The name can have one of the
      +     * following forms:
      +     *
      +     * - For project-level configurations:
      +     * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
      +     *
      +     * - For organization-level configurations:
      +     * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_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. Unique name of the configuration. The name can have one of the
      +     * following forms:
      +     *
      +     * - For project-level configurations:
      +     * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
      +     *
      +     * - For organization-level configurations:
      +     * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_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 description_ = ""; + + /** + * + * + *
      +     * Optional. The user-supplied description of the VPC Flow Logs configuration.
      +     * Maximum of 512 characters.
      +     * 
      + * + * optional string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the description field is set. + */ + public boolean hasDescription() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +     * Optional. The user-supplied description of the VPC Flow Logs configuration.
      +     * Maximum of 512 characters.
      +     * 
      + * + * optional string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The user-supplied description of the VPC Flow Logs configuration.
      +     * Maximum of 512 characters.
      +     * 
      + * + * optional string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The user-supplied description of the VPC Flow Logs configuration.
      +     * Maximum of 512 characters.
      +     * 
      + * + * optional string description = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The user-supplied description of the VPC Flow Logs configuration.
      +     * Maximum of 512 characters.
      +     * 
      + * + * optional string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The user-supplied description of the VPC Flow Logs configuration.
      +     * Maximum of 512 characters.
      +     * 
      + * + * optional string description = 2 [(.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_ |= 0x00000002; onChanged(); return this; } - private int bitField0_; + private int state_ = 0; - private java.lang.Object name_ = ""; + /** + * + * + *
      +     * Optional. The state of the VPC Flow Log configuration. Default value is
      +     * ENABLED. When creating a new configuration, it must be enabled. Setting
      +     * state=DISABLED will pause the log generation for this config.
      +     * 
      + * + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the state field is set. + */ + @java.lang.Override + public boolean hasState() { + return ((bitField0_ & 0x00000004) != 0); + } /** * * *
      -     * Identifier. Unique name of the configuration using the form:
      -     *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
      +     * Optional. The state of the VPC Flow Log configuration. Default value is
      +     * ENABLED. When creating a new configuration, it must be enabled. Setting
      +     * state=DISABLED will pause the log generation for this config.
            * 
      * - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return The name. + * @return The enum numeric value on the wire for state. */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public int getStateValue() { + return state_; } /** * * *
      -     * Identifier. Unique name of the configuration using the form:
      -     *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
      +     * Optional. The state of the VPC Flow Log configuration. Default value is
      +     * ENABLED. When creating a new configuration, it must be enabled. Setting
      +     * state=DISABLED will pause the log generation for this config.
            * 
      * - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return The bytes for name. + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.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 Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; } /** * * *
      -     * Identifier. Unique name of the configuration using the form:
      -     *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
      +     * Optional. The state of the VPC Flow Log configuration. Default value is
      +     * ENABLED. When creating a new configuration, it must be enabled. Setting
      +     * state=DISABLED will pause the log generation for this config.
            * 
      * - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @param value The name to set. + * @return The state. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State getState() { + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State result = + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State.forNumber(state_); + return result == null + ? com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
      +     * Optional. The state of the VPC Flow Log configuration. Default value is
      +     * ENABLED. When creating a new configuration, it must be enabled. Setting
      +     * state=DISABLED will pause the log generation for this config.
      +     * 
      + * + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The state to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setState( + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State value) { if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; + state_ = value.getNumber(); onChanged(); return this; } @@ -2473,149 +3554,218 @@ public Builder setName(java.lang.String value) { * * *
      -     * Identifier. Unique name of the configuration using the form:
      -     *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
      +     * Optional. The state of the VPC Flow Log configuration. Default value is
      +     * ENABLED. When creating a new configuration, it must be enabled. Setting
      +     * state=DISABLED will pause the log generation for this config.
            * 
      * - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return This builder for chaining. */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000004); + state_ = 0; onChanged(); return this; } + private int aggregationInterval_ = 0; + /** * * *
      -     * Identifier. Unique name of the configuration using the form:
      -     *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
      +     * Optional. The aggregation interval for the logs. Default value is
      +     * INTERVAL_5_SEC.
            * 
      * - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @param value The bytes for name to set. + * @return Whether the aggregationInterval field is set. + */ + @java.lang.Override + public boolean hasAggregationInterval() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +     * Optional. The aggregation interval for the logs. Default value is
      +     * INTERVAL_5_SEC.
      +     * 
      + * + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for aggregationInterval. + */ + @java.lang.Override + public int getAggregationIntervalValue() { + return aggregationInterval_; + } + + /** + * + * + *
      +     * Optional. The aggregation interval for the logs. Default value is
      +     * INTERVAL_5_SEC.
      +     * 
      + * + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for aggregationInterval to 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; + public Builder setAggregationIntervalValue(int value) { + aggregationInterval_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } - private java.lang.Object description_ = ""; - /** * * *
      -     * Optional. The user-supplied description of the VPC Flow Logs configuration.
      -     * Maximum of 512 characters.
      +     * Optional. The aggregation interval for the logs. Default value is
      +     * INTERVAL_5_SEC.
            * 
      * - * optional string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return Whether the description field is set. + * @return The aggregationInterval. */ - public boolean hasDescription() { - return ((bitField0_ & 0x00000002) != 0); + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval + getAggregationInterval() { + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval result = + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval + .forNumber(aggregationInterval_); + return result == null + ? com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval + .UNRECOGNIZED + : result; } /** * * *
      -     * Optional. The user-supplied description of the VPC Flow Logs configuration.
      -     * Maximum of 512 characters.
      +     * Optional. The aggregation interval for the logs. Default value is
      +     * INTERVAL_5_SEC.
            * 
      * - * optional string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return The description. + * @param value The aggregationInterval to set. + * @return This builder for chaining. */ - 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; + public Builder setAggregationInterval( + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval value) { + if (value == null) { + throw new NullPointerException(); } + bitField0_ |= 0x00000008; + aggregationInterval_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The aggregation interval for the logs. Default value is
      +     * INTERVAL_5_SEC.
      +     * 
      + * + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAggregationInterval() { + bitField0_ = (bitField0_ & ~0x00000008); + aggregationInterval_ = 0; + onChanged(); + return this; } + private float flowSampling_; + /** * * *
      -     * Optional. The user-supplied description of the VPC Flow Logs configuration.
      -     * Maximum of 512 characters.
      +     * Optional. The value of the field must be in (0, 1]. The sampling rate of
      +     * VPC Flow Logs where 1.0 means all collected logs are reported. Setting the
      +     * sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs,
      +     * use the state field instead. Default value is 1.0.
            * 
      * - * optional string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional float flow_sampling = 5 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for description. + * @return Whether the flowSampling field is set. */ - 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; - } + @java.lang.Override + public boolean hasFlowSampling() { + return ((bitField0_ & 0x00000010) != 0); } /** * * *
      -     * Optional. The user-supplied description of the VPC Flow Logs configuration.
      -     * Maximum of 512 characters.
      +     * Optional. The value of the field must be in (0, 1]. The sampling rate of
      +     * VPC Flow Logs where 1.0 means all collected logs are reported. Setting the
      +     * sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs,
      +     * use the state field instead. Default value is 1.0.
            * 
      * - * optional string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional float flow_sampling = 5 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The description to set. - * @return This builder for chaining. + * @return The flowSampling. */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - description_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; + @java.lang.Override + public float getFlowSampling() { + return flowSampling_; } /** * * *
      -     * Optional. The user-supplied description of the VPC Flow Logs configuration.
      -     * Maximum of 512 characters.
      +     * Optional. The value of the field must be in (0, 1]. The sampling rate of
      +     * VPC Flow Logs where 1.0 means all collected logs are reported. Setting the
      +     * sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs,
      +     * use the state field instead. Default value is 1.0.
            * 
      * - * optional string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional float flow_sampling = 5 [(.google.api.field_behavior) = OPTIONAL]; * + * @param value The flowSampling to set. * @return This builder for chaining. */ - public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000002); + public Builder setFlowSampling(float value) { + + flowSampling_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2624,84 +3774,84 @@ public Builder clearDescription() { * * *
      -     * Optional. The user-supplied description of the VPC Flow Logs configuration.
      -     * Maximum of 512 characters.
      +     * Optional. The value of the field must be in (0, 1]. The sampling rate of
      +     * VPC Flow Logs where 1.0 means all collected logs are reported. Setting the
      +     * sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs,
      +     * use the state field instead. Default value is 1.0.
            * 
      * - * optional string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional float flow_sampling = 5 [(.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_ |= 0x00000002; + public Builder clearFlowSampling() { + bitField0_ = (bitField0_ & ~0x00000010); + flowSampling_ = 0F; onChanged(); return this; } - private int state_ = 0; + private int metadata_ = 0; /** * * *
      -     * Optional. The state of the VPC Flow Log configuration. Default value is
      -     * ENABLED. When creating a new configuration, it must be enabled.
      +     * Optional. Configures whether all, none or a subset of metadata fields
      +     * should be added to the reported VPC flow logs. Default value is
      +     * INCLUDE_ALL_METADATA.
            * 
      * * - * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the state field is set. + * @return Whether the metadata field is set. */ @java.lang.Override - public boolean hasState() { - return ((bitField0_ & 0x00000004) != 0); + public boolean hasMetadata() { + return ((bitField0_ & 0x00000020) != 0); } /** * * *
      -     * Optional. The state of the VPC Flow Log configuration. Default value is
      -     * ENABLED. When creating a new configuration, it must be enabled.
      +     * Optional. Configures whether all, none or a subset of metadata fields
      +     * should be added to the reported VPC flow logs. Default value is
      +     * INCLUDE_ALL_METADATA.
            * 
      * * - * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The enum numeric value on the wire for state. + * @return The enum numeric value on the wire for metadata. */ @java.lang.Override - public int getStateValue() { - return state_; + public int getMetadataValue() { + return metadata_; } /** * * *
      -     * Optional. The state of the VPC Flow Log configuration. Default value is
      -     * ENABLED. When creating a new configuration, it must be enabled.
      +     * Optional. Configures whether all, none or a subset of metadata fields
      +     * should be added to the reported VPC flow logs. Default value is
      +     * INCLUDE_ALL_METADATA.
            * 
      * * - * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; * * - * @param value The enum numeric value on the wire for state to set. + * @param value The enum numeric value on the wire for metadata to set. * @return This builder for chaining. */ - public Builder setStateValue(int value) { - state_ = value; - bitField0_ |= 0x00000004; + public Builder setMetadataValue(int value) { + metadata_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2710,22 +3860,24 @@ public Builder setStateValue(int value) { * * *
      -     * Optional. The state of the VPC Flow Log configuration. Default value is
      -     * ENABLED. When creating a new configuration, it must be enabled.
      +     * Optional. Configures whether all, none or a subset of metadata fields
      +     * should be added to the reported VPC flow logs. Default value is
      +     * INCLUDE_ALL_METADATA.
            * 
      * * - * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The state. + * @return The metadata. */ @java.lang.Override - public com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State getState() { - com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State result = - com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State.forNumber(state_); + public com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata getMetadata() { + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata result = + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata.forNumber( + metadata_); return result == null - ? com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State.UNRECOGNIZED + ? com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata.UNRECOGNIZED : result; } @@ -2733,24 +3885,25 @@ public com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State getSta * * *
      -     * Optional. The state of the VPC Flow Log configuration. Default value is
      -     * ENABLED. When creating a new configuration, it must be enabled.
      +     * Optional. Configures whether all, none or a subset of metadata fields
      +     * should be added to the reported VPC flow logs. Default value is
      +     * INCLUDE_ALL_METADATA.
            * 
      * * - * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; * * - * @param value The state to set. + * @param value The metadata to set. * @return This builder for chaining. */ - public Builder setState( - com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State value) { + public Builder setMetadata( + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000004; - state_ = value.getNumber(); + bitField0_ |= 0x00000020; + metadata_ = value.getNumber(); onChanged(); return this; } @@ -2759,81 +3912,167 @@ public Builder setState( * * *
      -     * Optional. The state of the VPC Flow Log configuration. Default value is
      -     * ENABLED. When creating a new configuration, it must be enabled.
      +     * Optional. Configures whether all, none or a subset of metadata fields
      +     * should be added to the reported VPC flow logs. Default value is
      +     * INCLUDE_ALL_METADATA.
            * 
      * * - * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @return This builder for chaining. */ - public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000004); - state_ = 0; + public Builder clearMetadata() { + bitField0_ = (bitField0_ & ~0x00000020); + metadata_ = 0; onChanged(); return this; } - private int aggregationInterval_ = 0; + private com.google.protobuf.LazyStringArrayList metadataFields_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureMetadataFieldsIsMutable() { + if (!metadataFields_.isModifiable()) { + metadataFields_ = new com.google.protobuf.LazyStringArrayList(metadataFields_); + } + bitField0_ |= 0x00000040; + } + + /** + * + * + *
      +     * Optional. Custom metadata fields to include in the reported VPC flow logs.
      +     * Can only be specified if "metadata" was set to CUSTOM_METADATA.
      +     * 
      + * + * repeated string metadata_fields = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the metadataFields. + */ + public com.google.protobuf.ProtocolStringList getMetadataFieldsList() { + metadataFields_.makeImmutable(); + return metadataFields_; + } + + /** + * + * + *
      +     * Optional. Custom metadata fields to include in the reported VPC flow logs.
      +     * Can only be specified if "metadata" was set to CUSTOM_METADATA.
      +     * 
      + * + * repeated string metadata_fields = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of metadataFields. + */ + public int getMetadataFieldsCount() { + return metadataFields_.size(); + } + + /** + * + * + *
      +     * Optional. Custom metadata fields to include in the reported VPC flow logs.
      +     * Can only be specified if "metadata" was set to CUSTOM_METADATA.
      +     * 
      + * + * repeated string metadata_fields = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The metadataFields at the given index. + */ + public java.lang.String getMetadataFields(int index) { + return metadataFields_.get(index); + } + + /** + * + * + *
      +     * Optional. Custom metadata fields to include in the reported VPC flow logs.
      +     * Can only be specified if "metadata" was set to CUSTOM_METADATA.
      +     * 
      + * + * repeated string metadata_fields = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the metadataFields at the given index. + */ + public com.google.protobuf.ByteString getMetadataFieldsBytes(int index) { + return metadataFields_.getByteString(index); + } /** * * *
      -     * Optional. The aggregation interval for the logs. Default value is
      -     * INTERVAL_5_SEC.
      +     * Optional. Custom metadata fields to include in the reported VPC flow logs.
      +     * Can only be specified if "metadata" was set to CUSTOM_METADATA.
            * 
      * - * - * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated string metadata_fields = 7 [(.google.api.field_behavior) = OPTIONAL]; * - * @return Whether the aggregationInterval field is set. + * @param index The index to set the value at. + * @param value The metadataFields to set. + * @return This builder for chaining. */ - @java.lang.Override - public boolean hasAggregationInterval() { - return ((bitField0_ & 0x00000008) != 0); + public Builder setMetadataFields(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetadataFieldsIsMutable(); + metadataFields_.set(index, value); + bitField0_ |= 0x00000040; + onChanged(); + return this; } /** * * *
      -     * Optional. The aggregation interval for the logs. Default value is
      -     * INTERVAL_5_SEC.
      +     * Optional. Custom metadata fields to include in the reported VPC flow logs.
      +     * Can only be specified if "metadata" was set to CUSTOM_METADATA.
            * 
      * - * - * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated string metadata_fields = 7 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The enum numeric value on the wire for aggregationInterval. + * @param value The metadataFields to add. + * @return This builder for chaining. */ - @java.lang.Override - public int getAggregationIntervalValue() { - return aggregationInterval_; + public Builder addMetadataFields(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetadataFieldsIsMutable(); + metadataFields_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; } /** * * *
      -     * Optional. The aggregation interval for the logs. Default value is
      -     * INTERVAL_5_SEC.
      +     * Optional. Custom metadata fields to include in the reported VPC flow logs.
      +     * Can only be specified if "metadata" was set to CUSTOM_METADATA.
            * 
      * - * - * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated string metadata_fields = 7 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The enum numeric value on the wire for aggregationInterval to set. + * @param values The metadataFields to add. * @return This builder for chaining. */ - public Builder setAggregationIntervalValue(int value) { - aggregationInterval_ = value; - bitField0_ |= 0x00000008; + public Builder addAllMetadataFields(java.lang.Iterable values) { + ensureMetadataFieldsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metadataFields_); + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2842,134 +4081,151 @@ public Builder setAggregationIntervalValue(int value) { * * *
      -     * Optional. The aggregation interval for the logs. Default value is
      -     * INTERVAL_5_SEC.
      +     * Optional. Custom metadata fields to include in the reported VPC flow logs.
      +     * Can only be specified if "metadata" was set to CUSTOM_METADATA.
            * 
      * - * - * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated string metadata_fields = 7 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The aggregationInterval. + * @return This builder for chaining. */ - @java.lang.Override - public com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval - getAggregationInterval() { - com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval result = - com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval - .forNumber(aggregationInterval_); - return result == null - ? com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval - .UNRECOGNIZED - : result; + public Builder clearMetadataFields() { + metadataFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + ; + onChanged(); + return this; } /** * * *
      -     * Optional. The aggregation interval for the logs. Default value is
      -     * INTERVAL_5_SEC.
      +     * Optional. Custom metadata fields to include in the reported VPC flow logs.
      +     * Can only be specified if "metadata" was set to CUSTOM_METADATA.
            * 
      * - * - * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated string metadata_fields = 7 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The aggregationInterval to set. + * @param value The bytes of the metadataFields to add. * @return This builder for chaining. */ - public Builder setAggregationInterval( - com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval value) { + public Builder addMetadataFieldsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000008; - aggregationInterval_ = value.getNumber(); + checkByteStringIsUtf8(value); + ensureMetadataFieldsIsMutable(); + metadataFields_.add(value); + bitField0_ |= 0x00000040; onChanged(); return this; } + private java.lang.Object filterExpr_ = ""; + /** * * *
      -     * Optional. The aggregation interval for the logs. Default value is
      -     * INTERVAL_5_SEC.
      +     * Optional. Export filter used to define which VPC Flow Logs should be
      +     * logged.
            * 
      * - * - * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * optional string filter_expr = 8 [(.google.api.field_behavior) = OPTIONAL]; * - * @return This builder for chaining. + * @return Whether the filterExpr field is set. */ - public Builder clearAggregationInterval() { - bitField0_ = (bitField0_ & ~0x00000008); - aggregationInterval_ = 0; - onChanged(); - return this; + public boolean hasFilterExpr() { + return ((bitField0_ & 0x00000080) != 0); } - private float flowSampling_; - /** * * *
      -     * Optional. The value of the field must be in (0, 1]. The sampling rate of
      -     * VPC Flow Logs where 1.0 means all collected logs are reported. Setting the
      -     * sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs,
      -     * use the state field instead. Default value is 1.0.
      +     * Optional. Export filter used to define which VPC Flow Logs should be
      +     * logged.
            * 
      * - * optional float flow_sampling = 5 [(.google.api.field_behavior) = OPTIONAL]; + * optional string filter_expr = 8 [(.google.api.field_behavior) = OPTIONAL]; * - * @return Whether the flowSampling field is set. + * @return The filterExpr. */ - @java.lang.Override - public boolean hasFlowSampling() { - return ((bitField0_ & 0x00000010) != 0); + public java.lang.String getFilterExpr() { + java.lang.Object ref = filterExpr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filterExpr_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** * * *
      -     * Optional. The value of the field must be in (0, 1]. The sampling rate of
      -     * VPC Flow Logs where 1.0 means all collected logs are reported. Setting the
      -     * sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs,
      -     * use the state field instead. Default value is 1.0.
      +     * Optional. Export filter used to define which VPC Flow Logs should be
      +     * logged.
            * 
      * - * optional float flow_sampling = 5 [(.google.api.field_behavior) = OPTIONAL]; + * optional string filter_expr = 8 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The flowSampling. + * @return The bytes for filterExpr. */ - @java.lang.Override - public float getFlowSampling() { - return flowSampling_; + public com.google.protobuf.ByteString getFilterExprBytes() { + java.lang.Object ref = filterExpr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filterExpr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** * * *
      -     * Optional. The value of the field must be in (0, 1]. The sampling rate of
      -     * VPC Flow Logs where 1.0 means all collected logs are reported. Setting the
      -     * sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs,
      -     * use the state field instead. Default value is 1.0.
      +     * Optional. Export filter used to define which VPC Flow Logs should be
      +     * logged.
            * 
      * - * optional float flow_sampling = 5 [(.google.api.field_behavior) = OPTIONAL]; + * optional string filter_expr = 8 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The flowSampling to set. + * @param value The filterExpr to set. * @return This builder for chaining. */ - public Builder setFlowSampling(float value) { + public Builder setFilterExpr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filterExpr_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } - flowSampling_ = value; - bitField0_ |= 0x00000010; + /** + * + * + *
      +     * Optional. Export filter used to define which VPC Flow Logs should be
      +     * logged.
      +     * 
      + * + * optional string filter_expr = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilterExpr() { + filterExpr_ = getDefaultInstance().getFilterExpr(); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -2978,84 +4234,87 @@ public Builder setFlowSampling(float value) { * * *
      -     * Optional. The value of the field must be in (0, 1]. The sampling rate of
      -     * VPC Flow Logs where 1.0 means all collected logs are reported. Setting the
      -     * sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs,
      -     * use the state field instead. Default value is 1.0.
      +     * Optional. Export filter used to define which VPC Flow Logs should be
      +     * logged.
            * 
      * - * optional float flow_sampling = 5 [(.google.api.field_behavior) = OPTIONAL]; + * optional string filter_expr = 8 [(.google.api.field_behavior) = OPTIONAL]; * + * @param value The bytes for filterExpr to set. * @return This builder for chaining. */ - public Builder clearFlowSampling() { - bitField0_ = (bitField0_ & ~0x00000010); - flowSampling_ = 0F; + public Builder setFilterExprBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filterExpr_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } - private int metadata_ = 0; + private int crossProjectMetadata_ = 0; /** * * *
      -     * Optional. Configures whether all, none or a subset of metadata fields
      -     * should be added to the reported VPC flow logs. Default value is
      -     * INCLUDE_ALL_METADATA.
      +     * Optional. Determines whether to include cross project annotations in the
      +     * logs. This field is available only for organization configurations. If not
      +     * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
            * 
      * * - * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the metadata field is set. + * @return Whether the crossProjectMetadata field is set. */ @java.lang.Override - public boolean hasMetadata() { - return ((bitField0_ & 0x00000020) != 0); + public boolean hasCrossProjectMetadata() { + return ((bitField0_ & 0x00000100) != 0); } /** * * *
      -     * Optional. Configures whether all, none or a subset of metadata fields
      -     * should be added to the reported VPC flow logs. Default value is
      -     * INCLUDE_ALL_METADATA.
      +     * Optional. Determines whether to include cross project annotations in the
      +     * logs. This field is available only for organization configurations. If not
      +     * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
            * 
      * * - * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The enum numeric value on the wire for metadata. + * @return The enum numeric value on the wire for crossProjectMetadata. */ @java.lang.Override - public int getMetadataValue() { - return metadata_; + public int getCrossProjectMetadataValue() { + return crossProjectMetadata_; } /** * * *
      -     * Optional. Configures whether all, none or a subset of metadata fields
      -     * should be added to the reported VPC flow logs. Default value is
      -     * INCLUDE_ALL_METADATA.
      +     * Optional. Determines whether to include cross project annotations in the
      +     * logs. This field is available only for organization configurations. If not
      +     * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
            * 
      * * - * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; * * - * @param value The enum numeric value on the wire for metadata to set. + * @param value The enum numeric value on the wire for crossProjectMetadata to set. * @return This builder for chaining. */ - public Builder setMetadataValue(int value) { - metadata_ = value; - bitField0_ |= 0x00000020; + public Builder setCrossProjectMetadataValue(int value) { + crossProjectMetadata_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3064,24 +4323,26 @@ public Builder setMetadataValue(int value) { * * *
      -     * Optional. Configures whether all, none or a subset of metadata fields
      -     * should be added to the reported VPC flow logs. Default value is
      -     * INCLUDE_ALL_METADATA.
      +     * Optional. Determines whether to include cross project annotations in the
      +     * logs. This field is available only for organization configurations. If not
      +     * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
            * 
      * * - * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The metadata. + * @return The crossProjectMetadata. */ @java.lang.Override - public com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata getMetadata() { - com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata result = - com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata.forNumber( - metadata_); + public com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata + getCrossProjectMetadata() { + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata result = + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata + .forNumber(crossProjectMetadata_); return result == null - ? com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata.UNRECOGNIZED + ? com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata + .UNRECOGNIZED : result; } @@ -3089,25 +4350,25 @@ public com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata get * * *
      -     * Optional. Configures whether all, none or a subset of metadata fields
      -     * should be added to the reported VPC flow logs. Default value is
      -     * INCLUDE_ALL_METADATA.
      +     * Optional. Determines whether to include cross project annotations in the
      +     * logs. This field is available only for organization configurations. If not
      +     * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
            * 
      * * - * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; * * - * @param value The metadata to set. + * @param value The crossProjectMetadata to set. * @return This builder for chaining. */ - public Builder setMetadata( - com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata value) { + public Builder setCrossProjectMetadata( + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000020; - metadata_ = value.getNumber(); + bitField0_ |= 0x00000100; + crossProjectMetadata_ = value.getNumber(); onChanged(); return this; } @@ -3116,122 +4377,134 @@ public Builder setMetadata( * * *
      -     * Optional. Configures whether all, none or a subset of metadata fields
      -     * should be added to the reported VPC flow logs. Default value is
      -     * INCLUDE_ALL_METADATA.
      +     * Optional. Determines whether to include cross project annotations in the
      +     * logs. This field is available only for organization configurations. If not
      +     * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
            * 
      * * - * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; * * * @return This builder for chaining. */ - public Builder clearMetadata() { - bitField0_ = (bitField0_ & ~0x00000020); - metadata_ = 0; + public Builder clearCrossProjectMetadata() { + bitField0_ = (bitField0_ & ~0x00000100); + crossProjectMetadata_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringArrayList metadataFields_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureMetadataFieldsIsMutable() { - if (!metadataFields_.isModifiable()) { - metadataFields_ = new com.google.protobuf.LazyStringArrayList(metadataFields_); - } - bitField0_ |= 0x00000040; - } + private int targetResourceState_ = 0; /** * * *
      -     * Optional. Custom metadata fields to include in the reported VPC flow logs.
      -     * Can only be specified if "metadata" was set to CUSTOM_METADATA.
      +     * Output only. Describes the state of the configured target resource for
      +     * diagnostic purposes.
            * 
      * - * repeated string metadata_fields = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.TargetResourceState target_resource_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return A list containing the metadataFields. + * @return Whether the targetResourceState field is set. */ - public com.google.protobuf.ProtocolStringList getMetadataFieldsList() { - metadataFields_.makeImmutable(); - return metadataFields_; + @java.lang.Override + public boolean hasTargetResourceState() { + return ((bitField0_ & 0x00000200) != 0); } /** * * *
      -     * Optional. Custom metadata fields to include in the reported VPC flow logs.
      -     * Can only be specified if "metadata" was set to CUSTOM_METADATA.
      +     * Output only. Describes the state of the configured target resource for
      +     * diagnostic purposes.
            * 
      * - * repeated string metadata_fields = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.TargetResourceState target_resource_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return The count of metadataFields. + * @return The enum numeric value on the wire for targetResourceState. */ - public int getMetadataFieldsCount() { - return metadataFields_.size(); + @java.lang.Override + public int getTargetResourceStateValue() { + return targetResourceState_; } /** * * *
      -     * Optional. Custom metadata fields to include in the reported VPC flow logs.
      -     * Can only be specified if "metadata" was set to CUSTOM_METADATA.
      +     * Output only. Describes the state of the configured target resource for
      +     * diagnostic purposes.
            * 
      * - * repeated string metadata_fields = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.TargetResourceState target_resource_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @param index The index of the element to return. - * @return The metadataFields at the given index. + * @param value The enum numeric value on the wire for targetResourceState to set. + * @return This builder for chaining. */ - public java.lang.String getMetadataFields(int index) { - return metadataFields_.get(index); + public Builder setTargetResourceStateValue(int value) { + targetResourceState_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; } /** * * *
      -     * Optional. Custom metadata fields to include in the reported VPC flow logs.
      -     * Can only be specified if "metadata" was set to CUSTOM_METADATA.
      +     * Output only. Describes the state of the configured target resource for
      +     * diagnostic purposes.
            * 
      * - * repeated string metadata_fields = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.TargetResourceState target_resource_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @param index The index of the value to return. - * @return The bytes of the metadataFields at the given index. + * @return The targetResourceState. */ - public com.google.protobuf.ByteString getMetadataFieldsBytes(int index) { - return metadataFields_.getByteString(index); + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.TargetResourceState + getTargetResourceState() { + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.TargetResourceState result = + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.TargetResourceState + .forNumber(targetResourceState_); + return result == null + ? com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.TargetResourceState + .UNRECOGNIZED + : result; } /** * * *
      -     * Optional. Custom metadata fields to include in the reported VPC flow logs.
      -     * Can only be specified if "metadata" was set to CUSTOM_METADATA.
      +     * Output only. Describes the state of the configured target resource for
      +     * diagnostic purposes.
            * 
      * - * repeated string metadata_fields = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.TargetResourceState target_resource_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @param index The index to set the value at. - * @param value The metadataFields to set. + * @param value The targetResourceState to set. * @return This builder for chaining. */ - public Builder setMetadataFields(int index, java.lang.String value) { + public Builder setTargetResourceState( + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.TargetResourceState value) { if (value == null) { throw new NullPointerException(); } - ensureMetadataFieldsIsMutable(); - metadataFields_.set(index, value); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000200; + targetResourceState_ = value.getNumber(); onChanged(); return this; } @@ -3240,22 +4513,19 @@ public Builder setMetadataFields(int index, java.lang.String value) { * * *
      -     * Optional. Custom metadata fields to include in the reported VPC flow logs.
      -     * Can only be specified if "metadata" was set to CUSTOM_METADATA.
      +     * Output only. Describes the state of the configured target resource for
      +     * diagnostic purposes.
            * 
      * - * repeated string metadata_fields = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.TargetResourceState target_resource_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @param value The metadataFields to add. * @return This builder for chaining. */ - public Builder addMetadataFields(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetadataFieldsIsMutable(); - metadataFields_.add(value); - bitField0_ |= 0x00000040; + public Builder clearTargetResourceState() { + bitField0_ = (bitField0_ & ~0x00000200); + targetResourceState_ = 0; onChanged(); return this; } @@ -3264,19 +4534,102 @@ public Builder addMetadataFields(java.lang.String value) { * * *
      -     * Optional. Custom metadata fields to include in the reported VPC flow logs.
      -     * Can only be specified if "metadata" was set to CUSTOM_METADATA.
      +     * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
      +     * within the network.
      +     * Format: projects/{project_id}/global/networks/{name}
            * 
      * - * repeated string metadata_fields = 7 [(.google.api.field_behavior) = OPTIONAL]; + * string network = 100; * - * @param values The metadataFields to add. + * @return Whether the network field is set. + */ + @java.lang.Override + public boolean hasNetwork() { + return targetResourceCase_ == 100; + } + + /** + * + * + *
      +     * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
      +     * within the network.
      +     * Format: projects/{project_id}/global/networks/{name}
      +     * 
      + * + * string network = 100; + * + * @return The network. + */ + @java.lang.Override + public java.lang.String getNetwork() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 100) { + ref = targetResource_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (targetResourceCase_ == 100) { + targetResource_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
      +     * within the network.
      +     * Format: projects/{project_id}/global/networks/{name}
      +     * 
      + * + * string network = 100; + * + * @return The bytes for network. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 100) { + ref = targetResource_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (targetResourceCase_ == 100) { + targetResource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
      +     * within the network.
      +     * Format: projects/{project_id}/global/networks/{name}
      +     * 
      + * + * string network = 100; + * + * @param value The network to set. * @return This builder for chaining. */ - public Builder addAllMetadataFields(java.lang.Iterable values) { - ensureMetadataFieldsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metadataFields_); - bitField0_ |= 0x00000040; + public Builder setNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + targetResourceCase_ = 100; + targetResource_ = value; onChanged(); return this; } @@ -3285,19 +4638,21 @@ public Builder addAllMetadataFields(java.lang.Iterable values) * * *
      -     * Optional. Custom metadata fields to include in the reported VPC flow logs.
      -     * Can only be specified if "metadata" was set to CUSTOM_METADATA.
      +     * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
      +     * within the network.
      +     * Format: projects/{project_id}/global/networks/{name}
            * 
      * - * repeated string metadata_fields = 7 [(.google.api.field_behavior) = OPTIONAL]; + * string network = 100; * * @return This builder for chaining. */ - public Builder clearMetadataFields() { - metadataFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - ; - onChanged(); + public Builder clearNetwork() { + if (targetResourceCase_ == 100) { + targetResourceCase_ = 0; + targetResource_ = null; + onChanged(); + } return this; } @@ -3305,63 +4660,68 @@ public Builder clearMetadataFields() { * * *
      -     * Optional. Custom metadata fields to include in the reported VPC flow logs.
      -     * Can only be specified if "metadata" was set to CUSTOM_METADATA.
      +     * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
      +     * within the network.
      +     * Format: projects/{project_id}/global/networks/{name}
            * 
      * - * repeated string metadata_fields = 7 [(.google.api.field_behavior) = OPTIONAL]; + * string network = 100; * - * @param value The bytes of the metadataFields to add. + * @param value The bytes for network to set. * @return This builder for chaining. */ - public Builder addMetadataFieldsBytes(com.google.protobuf.ByteString value) { + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - ensureMetadataFieldsIsMutable(); - metadataFields_.add(value); - bitField0_ |= 0x00000040; + targetResourceCase_ = 100; + targetResource_ = value; onChanged(); return this; } - private java.lang.Object filterExpr_ = ""; - /** * * *
      -     * Optional. Export filter used to define which VPC Flow Logs should be
      -     * logged.
      +     * Traffic will be logged from VMs within the subnetwork.
      +     * Format: projects/{project_id}/regions/{region}/subnetworks/{name}
            * 
      * - * optional string filter_expr = 8 [(.google.api.field_behavior) = OPTIONAL]; + * string subnet = 101; * - * @return Whether the filterExpr field is set. + * @return Whether the subnet field is set. */ - public boolean hasFilterExpr() { - return ((bitField0_ & 0x00000080) != 0); + @java.lang.Override + public boolean hasSubnet() { + return targetResourceCase_ == 101; } /** * * *
      -     * Optional. Export filter used to define which VPC Flow Logs should be
      -     * logged.
      +     * Traffic will be logged from VMs within the subnetwork.
      +     * Format: projects/{project_id}/regions/{region}/subnetworks/{name}
            * 
      * - * optional string filter_expr = 8 [(.google.api.field_behavior) = OPTIONAL]; + * string subnet = 101; * - * @return The filterExpr. + * @return The subnet. */ - public java.lang.String getFilterExpr() { - java.lang.Object ref = filterExpr_; + @java.lang.Override + public java.lang.String getSubnet() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 101) { + ref = targetResource_; + } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - filterExpr_ = s; + if (targetResourceCase_ == 101) { + targetResource_ = s; + } return s; } else { return (java.lang.String) ref; @@ -3372,20 +4732,26 @@ public java.lang.String getFilterExpr() { * * *
      -     * Optional. Export filter used to define which VPC Flow Logs should be
      -     * logged.
      +     * Traffic will be logged from VMs within the subnetwork.
      +     * Format: projects/{project_id}/regions/{region}/subnetworks/{name}
            * 
      * - * optional string filter_expr = 8 [(.google.api.field_behavior) = OPTIONAL]; + * string subnet = 101; * - * @return The bytes for filterExpr. + * @return The bytes for subnet. */ - public com.google.protobuf.ByteString getFilterExprBytes() { - java.lang.Object ref = filterExpr_; + @java.lang.Override + public com.google.protobuf.ByteString getSubnetBytes() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 101) { + ref = targetResource_; + } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filterExpr_ = b; + if (targetResourceCase_ == 101) { + targetResource_ = b; + } return b; } else { return (com.google.protobuf.ByteString) ref; @@ -3396,21 +4762,21 @@ public com.google.protobuf.ByteString getFilterExprBytes() { * * *
      -     * Optional. Export filter used to define which VPC Flow Logs should be
      -     * logged.
      +     * Traffic will be logged from VMs within the subnetwork.
      +     * Format: projects/{project_id}/regions/{region}/subnetworks/{name}
            * 
      * - * optional string filter_expr = 8 [(.google.api.field_behavior) = OPTIONAL]; + * string subnet = 101; * - * @param value The filterExpr to set. + * @param value The subnet to set. * @return This builder for chaining. */ - public Builder setFilterExpr(java.lang.String value) { + public Builder setSubnet(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filterExpr_ = value; - bitField0_ |= 0x00000080; + targetResourceCase_ = 101; + targetResource_ = value; onChanged(); return this; } @@ -3419,18 +4785,20 @@ public Builder setFilterExpr(java.lang.String value) { * * *
      -     * Optional. Export filter used to define which VPC Flow Logs should be
      -     * logged.
      +     * Traffic will be logged from VMs within the subnetwork.
      +     * Format: projects/{project_id}/regions/{region}/subnetworks/{name}
            * 
      * - * optional string filter_expr = 8 [(.google.api.field_behavior) = OPTIONAL]; + * string subnet = 101; * * @return This builder for chaining. */ - public Builder clearFilterExpr() { - filterExpr_ = getDefaultInstance().getFilterExpr(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); + public Builder clearSubnet() { + if (targetResourceCase_ == 101) { + targetResourceCase_ = 0; + targetResource_ = null; + onChanged(); + } return this; } @@ -3438,22 +4806,22 @@ public Builder clearFilterExpr() { * * *
      -     * Optional. Export filter used to define which VPC Flow Logs should be
      -     * logged.
      +     * Traffic will be logged from VMs within the subnetwork.
      +     * Format: projects/{project_id}/regions/{region}/subnetworks/{name}
            * 
      * - * optional string filter_expr = 8 [(.google.api.field_behavior) = OPTIONAL]; + * string subnet = 101; * - * @param value The bytes for filterExpr to set. + * @param value The bytes for subnet to set. * @return This builder for chaining. */ - public Builder setFilterExprBytes(com.google.protobuf.ByteString value) { + public Builder setSubnetBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filterExpr_ = value; - bitField0_ |= 0x00000080; + targetResourceCase_ = 101; + targetResource_ = value; onChanged(); return this; } @@ -3771,7 +5139,7 @@ private com.google.protobuf.MapField interna if (!labels_.isMutable()) { labels_ = labels_.copy(); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00004000; onChanged(); return labels_; } @@ -3861,7 +5229,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00004000); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -3886,7 +5254,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00004000; return internalGetMutableLabels().getMutableMap(); } @@ -3907,7 +5275,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00004000; return this; } @@ -3922,7 +5290,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00004000; return this; } @@ -3947,7 +5315,7 @@ public Builder putAllLabels(java.util.Map va * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** @@ -3993,7 +5361,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -4015,7 +5383,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -4033,7 +5401,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) + if (((bitField0_ & 0x00008000) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); @@ -4044,7 +5412,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00008000; onChanged(); } return this; @@ -4062,7 +5430,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { *
      */ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00008000); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -4084,7 +5452,7 @@ public Builder clearCreateTime() { *
      */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00008000; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -4159,7 +5527,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00010000) != 0); } /** @@ -4205,7 +5573,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -4227,7 +5595,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -4245,7 +5613,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) + if (((bitField0_ & 0x00010000) != 0) && updateTime_ != null && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); @@ -4256,7 +5624,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { updateTimeBuilder_.mergeFrom(value); } if (updateTime_ != null) { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00010000; onChanged(); } return this; @@ -4274,7 +5642,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { *
      */ public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00010000); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); @@ -4296,7 +5664,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00010000; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsConfigName.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsConfigName.java index 5c81ba5bc103..ce8a1f40ff50 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsConfigName.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsConfigName.java @@ -17,6 +17,7 @@ package com.google.cloud.networkmanagement.v1beta1; 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; @@ -32,22 +33,39 @@ public class VpcFlowLogsConfigName implements ResourceName { private static final PathTemplate PROJECT_LOCATION_VPC_FLOW_LOGS_CONFIG = PathTemplate.createWithoutUrlEncoding( "projects/{project}/locations/{location}/vpcFlowLogsConfigs/{vpc_flow_logs_config}"); + private static final PathTemplate ORGANIZATION_LOCATION_VPC_FLOW_LOGS_CONFIG = + PathTemplate.createWithoutUrlEncoding( + "organizations/{organization}/locations/{location}/vpcFlowLogsConfigs/{vpc_flow_logs_config}"); private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; private final String project; private final String location; private final String vpcFlowLogsConfig; + private final String organization; @Deprecated protected VpcFlowLogsConfigName() { project = null; location = null; vpcFlowLogsConfig = null; + organization = null; } private VpcFlowLogsConfigName(Builder builder) { project = Preconditions.checkNotNull(builder.getProject()); location = Preconditions.checkNotNull(builder.getLocation()); vpcFlowLogsConfig = Preconditions.checkNotNull(builder.getVpcFlowLogsConfig()); + organization = null; + pathTemplate = PROJECT_LOCATION_VPC_FLOW_LOGS_CONFIG; + } + + private VpcFlowLogsConfigName(OrganizationLocationVpcFlowLogsConfigBuilder builder) { + organization = Preconditions.checkNotNull(builder.getOrganization()); + location = Preconditions.checkNotNull(builder.getLocation()); + vpcFlowLogsConfig = Preconditions.checkNotNull(builder.getVpcFlowLogsConfig()); + project = null; + pathTemplate = ORGANIZATION_LOCATION_VPC_FLOW_LOGS_CONFIG; } public String getProject() { @@ -62,10 +80,23 @@ public String getVpcFlowLogsConfig() { return vpcFlowLogsConfig; } + public String getOrganization() { + return organization; + } + public static Builder newBuilder() { return new Builder(); } + public static Builder newProjectLocationVpcFlowLogsConfigBuilder() { + return new Builder(); + } + + public static OrganizationLocationVpcFlowLogsConfigBuilder + newOrganizationLocationVpcFlowLogsConfigBuilder() { + return new OrganizationLocationVpcFlowLogsConfigBuilder(); + } + public Builder toBuilder() { return new Builder(this); } @@ -79,6 +110,24 @@ public static VpcFlowLogsConfigName of( .build(); } + public static VpcFlowLogsConfigName ofProjectLocationVpcFlowLogsConfigName( + String project, String location, String vpcFlowLogsConfig) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setVpcFlowLogsConfig(vpcFlowLogsConfig) + .build(); + } + + public static VpcFlowLogsConfigName ofOrganizationLocationVpcFlowLogsConfigName( + String organization, String location, String vpcFlowLogsConfig) { + return newOrganizationLocationVpcFlowLogsConfigBuilder() + .setOrganization(organization) + .setLocation(location) + .setVpcFlowLogsConfig(vpcFlowLogsConfig) + .build(); + } + public static String format(String project, String location, String vpcFlowLogsConfig) { return newBuilder() .setProject(project) @@ -88,15 +137,44 @@ public static String format(String project, String location, String vpcFlowLogsC .toString(); } + public static String formatProjectLocationVpcFlowLogsConfigName( + String project, String location, String vpcFlowLogsConfig) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setVpcFlowLogsConfig(vpcFlowLogsConfig) + .build() + .toString(); + } + + public static String formatOrganizationLocationVpcFlowLogsConfigName( + String organization, String location, String vpcFlowLogsConfig) { + return newOrganizationLocationVpcFlowLogsConfigBuilder() + .setOrganization(organization) + .setLocation(location) + .setVpcFlowLogsConfig(vpcFlowLogsConfig) + .build() + .toString(); + } + public static VpcFlowLogsConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } - Map matchMap = - PROJECT_LOCATION_VPC_FLOW_LOGS_CONFIG.validatedMatch( - formattedString, "VpcFlowLogsConfigName.parse: formattedString not in valid format"); - return of( - matchMap.get("project"), matchMap.get("location"), matchMap.get("vpc_flow_logs_config")); + if (PROJECT_LOCATION_VPC_FLOW_LOGS_CONFIG.matches(formattedString)) { + Map matchMap = PROJECT_LOCATION_VPC_FLOW_LOGS_CONFIG.match(formattedString); + return ofProjectLocationVpcFlowLogsConfigName( + matchMap.get("project"), matchMap.get("location"), matchMap.get("vpc_flow_logs_config")); + } else if (ORGANIZATION_LOCATION_VPC_FLOW_LOGS_CONFIG.matches(formattedString)) { + Map matchMap = + ORGANIZATION_LOCATION_VPC_FLOW_LOGS_CONFIG.match(formattedString); + return ofOrganizationLocationVpcFlowLogsConfigName( + matchMap.get("organization"), + matchMap.get("location"), + matchMap.get("vpc_flow_logs_config")); + } + throw new ValidationException( + "VpcFlowLogsConfigName.parse: formattedString not in valid format"); } public static List parseList(List formattedStrings) { @@ -120,7 +198,8 @@ public static List toStringList(List values) { } public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_VPC_FLOW_LOGS_CONFIG.matches(formattedString); + return PROJECT_LOCATION_VPC_FLOW_LOGS_CONFIG.matches(formattedString) + || ORGANIZATION_LOCATION_VPC_FLOW_LOGS_CONFIG.matches(formattedString); } @Override @@ -138,6 +217,9 @@ public Map getFieldValuesMap() { if (vpcFlowLogsConfig != null) { fieldMapBuilder.put("vpc_flow_logs_config", vpcFlowLogsConfig); } + if (organization != null) { + fieldMapBuilder.put("organization", organization); + } fieldValuesMap = fieldMapBuilder.build(); } } @@ -151,8 +233,7 @@ public String getFieldValue(String fieldName) { @Override public String toString() { - return PROJECT_LOCATION_VPC_FLOW_LOGS_CONFIG.instantiate( - "project", project, "location", location, "vpc_flow_logs_config", vpcFlowLogsConfig); + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); } @Override @@ -164,7 +245,8 @@ public boolean equals(Object o) { VpcFlowLogsConfigName that = ((VpcFlowLogsConfigName) o); return Objects.equals(this.project, that.project) && Objects.equals(this.location, that.location) - && Objects.equals(this.vpcFlowLogsConfig, that.vpcFlowLogsConfig); + && Objects.equals(this.vpcFlowLogsConfig, that.vpcFlowLogsConfig) + && Objects.equals(this.organization, that.organization); } return false; } @@ -173,11 +255,15 @@ public boolean equals(Object o) { public int hashCode() { int h = 1; h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; h ^= Objects.hashCode(project); h *= 1000003; h ^= Objects.hashCode(location); h *= 1000003; h ^= Objects.hashCode(vpcFlowLogsConfig); + h *= 1000003; + h ^= Objects.hashCode(organization); return h; } @@ -219,6 +305,10 @@ public Builder setVpcFlowLogsConfig(String vpcFlowLogsConfig) { } private Builder(VpcFlowLogsConfigName vpcFlowLogsConfigName) { + Preconditions.checkArgument( + Objects.equals(vpcFlowLogsConfigName.pathTemplate, PROJECT_LOCATION_VPC_FLOW_LOGS_CONFIG), + "toBuilder is only supported when VpcFlowLogsConfigName has the pattern of" + + " projects/{project}/locations/{location}/vpcFlowLogsConfigs/{vpc_flow_logs_config}"); this.project = vpcFlowLogsConfigName.project; this.location = vpcFlowLogsConfigName.location; this.vpcFlowLogsConfig = vpcFlowLogsConfigName.vpcFlowLogsConfig; @@ -228,4 +318,48 @@ public VpcFlowLogsConfigName build() { return new VpcFlowLogsConfigName(this); } } + + /** + * Builder for + * organizations/{organization}/locations/{location}/vpcFlowLogsConfigs/{vpc_flow_logs_config}. + */ + public static class OrganizationLocationVpcFlowLogsConfigBuilder { + private String organization; + private String location; + private String vpcFlowLogsConfig; + + protected OrganizationLocationVpcFlowLogsConfigBuilder() {} + + public String getOrganization() { + return organization; + } + + public String getLocation() { + return location; + } + + public String getVpcFlowLogsConfig() { + return vpcFlowLogsConfig; + } + + public OrganizationLocationVpcFlowLogsConfigBuilder setOrganization(String organization) { + this.organization = organization; + return this; + } + + public OrganizationLocationVpcFlowLogsConfigBuilder setLocation(String location) { + this.location = location; + return this; + } + + public OrganizationLocationVpcFlowLogsConfigBuilder setVpcFlowLogsConfig( + String vpcFlowLogsConfig) { + this.vpcFlowLogsConfig = vpcFlowLogsConfig; + return this; + } + + public VpcFlowLogsConfigName build() { + return new VpcFlowLogsConfigName(this); + } + } } diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsConfigOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsConfigOrBuilder.java index 4ac6e4f7fa9a..ca4558d09d4c 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsConfigOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsConfigOrBuilder.java @@ -28,8 +28,14 @@ public interface VpcFlowLogsConfigOrBuilder * * *
      -   * Identifier. Unique name of the configuration using the form:
      -   *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
      +   * Identifier. Unique name of the configuration. The name can have one of the
      +   * following forms:
      +   *
      +   * - For project-level configurations:
      +   * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
      +   *
      +   * - For organization-level configurations:
      +   * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
          * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -42,8 +48,14 @@ public interface VpcFlowLogsConfigOrBuilder * * *
      -   * Identifier. Unique name of the configuration using the form:
      -   *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
      +   * Identifier. Unique name of the configuration. The name can have one of the
      +   * following forms:
      +   *
      +   * - For project-level configurations:
      +   * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
      +   *
      +   * - For organization-level configurations:
      +   * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
          * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -99,7 +111,8 @@ public interface VpcFlowLogsConfigOrBuilder * *
          * Optional. The state of the VPC Flow Log configuration. Default value is
      -   * ENABLED. When creating a new configuration, it must be enabled.
      +   * ENABLED. When creating a new configuration, it must be enabled. Setting
      +   * state=DISABLED will pause the log generation for this config.
          * 
      * * @@ -115,7 +128,8 @@ public interface VpcFlowLogsConfigOrBuilder * *
          * Optional. The state of the VPC Flow Log configuration. Default value is
      -   * ENABLED. When creating a new configuration, it must be enabled.
      +   * ENABLED. When creating a new configuration, it must be enabled. Setting
      +   * state=DISABLED will pause the log generation for this config.
          * 
      * * @@ -131,7 +145,8 @@ public interface VpcFlowLogsConfigOrBuilder * *
          * Optional. The state of the VPC Flow Log configuration. Default value is
      -   * ENABLED. When creating a new configuration, it must be enabled.
      +   * ENABLED. When creating a new configuration, it must be enabled. Setting
      +   * state=DISABLED will pause the log generation for this config.
          * 
      * * @@ -374,6 +389,194 @@ public interface VpcFlowLogsConfigOrBuilder */ com.google.protobuf.ByteString getFilterExprBytes(); + /** + * + * + *
      +   * Optional. Determines whether to include cross project annotations in the
      +   * logs. This field is available only for organization configurations. If not
      +   * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
      +   * 
      + * + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the crossProjectMetadata field is set. + */ + boolean hasCrossProjectMetadata(); + + /** + * + * + *
      +   * Optional. Determines whether to include cross project annotations in the
      +   * logs. This field is available only for organization configurations. If not
      +   * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
      +   * 
      + * + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for crossProjectMetadata. + */ + int getCrossProjectMetadataValue(); + + /** + * + * + *
      +   * Optional. Determines whether to include cross project annotations in the
      +   * logs. This field is available only for organization configurations. If not
      +   * specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
      +   * 
      + * + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata cross_project_metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The crossProjectMetadata. + */ + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadata + getCrossProjectMetadata(); + + /** + * + * + *
      +   * Output only. Describes the state of the configured target resource for
      +   * diagnostic purposes.
      +   * 
      + * + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.TargetResourceState target_resource_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the targetResourceState field is set. + */ + boolean hasTargetResourceState(); + + /** + * + * + *
      +   * Output only. Describes the state of the configured target resource for
      +   * diagnostic purposes.
      +   * 
      + * + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.TargetResourceState target_resource_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for targetResourceState. + */ + int getTargetResourceStateValue(); + + /** + * + * + *
      +   * Output only. Describes the state of the configured target resource for
      +   * diagnostic purposes.
      +   * 
      + * + * + * optional .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.TargetResourceState target_resource_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The targetResourceState. + */ + com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.TargetResourceState + getTargetResourceState(); + + /** + * + * + *
      +   * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
      +   * within the network.
      +   * Format: projects/{project_id}/global/networks/{name}
      +   * 
      + * + * string network = 100; + * + * @return Whether the network field is set. + */ + boolean hasNetwork(); + + /** + * + * + *
      +   * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
      +   * within the network.
      +   * Format: projects/{project_id}/global/networks/{name}
      +   * 
      + * + * string network = 100; + * + * @return The network. + */ + java.lang.String getNetwork(); + + /** + * + * + *
      +   * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
      +   * within the network.
      +   * Format: projects/{project_id}/global/networks/{name}
      +   * 
      + * + * string network = 100; + * + * @return The bytes for network. + */ + com.google.protobuf.ByteString getNetworkBytes(); + + /** + * + * + *
      +   * Traffic will be logged from VMs within the subnetwork.
      +   * Format: projects/{project_id}/regions/{region}/subnetworks/{name}
      +   * 
      + * + * string subnet = 101; + * + * @return Whether the subnet field is set. + */ + boolean hasSubnet(); + + /** + * + * + *
      +   * Traffic will be logged from VMs within the subnetwork.
      +   * Format: projects/{project_id}/regions/{region}/subnetworks/{name}
      +   * 
      + * + * string subnet = 101; + * + * @return The subnet. + */ + java.lang.String getSubnet(); + + /** + * + * + *
      +   * Traffic will be logged from VMs within the subnetwork.
      +   * Format: projects/{project_id}/regions/{region}/subnetworks/{name}
      +   * 
      + * + * string subnet = 101; + * + * @return The bytes for subnet. + */ + com.google.protobuf.ByteString getSubnetBytes(); + /** * * diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsConfigProto.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsConfigProto.java index b84fefbdac29..56146109a90c 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsConfigProto.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsConfigProto.java @@ -49,7 +49,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "Agoogle/cloud/networkmanagement/v1beta1/vpc_flow_logs_config.proto\022&google.clou" + "d.networkmanagement.v1beta1\032\037google/api/" + "field_behavior.proto\032\031google/api/resourc" - + "e.proto\032\037google/protobuf/timestamp.proto\"\221\013\n" + + "e.proto\032\037google/protobuf/timestamp.proto\"\302\020\n" + "\021VpcFlowLogsConfig\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\035\n" + "\013description\030\002 \001(\tB\003\340A\001H\001\210\001\001\022X\n" @@ -62,11 +62,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010metadata\030\006 \001(\0162B.google.cloud.networkmanag" + "ement.v1beta1.VpcFlowLogsConfig.MetadataB\003\340A\001H\005\210\001\001\022\034\n" + "\017metadata_fields\030\007 \003(\tB\003\340A\001\022\035\n" - + "\013filter_expr\030\010 \001(\tB\003\340A\001H\006\210\001\001\022!\n" + + "\013filter_expr\030\010 \001(\tB\003\340A\001H\006\210\001\001\022x\n" + + "\026cross_project_metadata\030\r" + + " \001(\0162N.google.cloud.n" + + "etworkmanagement.v1beta1.VpcFlowLogsConfig.CrossProjectMetadataB\003\340A\001H\007\210\001\001\022v\n" + + "\025target_resource_state\030\014 \001(\0162M.google.cloud." + + "networkmanagement.v1beta1.VpcFlowLogsConfig.TargetResourceStateB\003\340A\003H\010\210\001\001\022\021\n" + + "\007network\030d \001(\tH\000\022\020\n" + + "\006subnet\030e \001(\tH\000\022!\n" + "\027interconnect_attachment\030f \001(\tH\000\022\024\n\n" + "vpn_tunnel\030g \001(\tH\000\022Z\n" - + "\006labels\030\013 \003(\0132E.google.cloud." - + "networkmanagement.v1beta1.VpcFlowLogsConfig.LabelsEntryB\003\340A\001\0224\n" + + "\006labels\030\013 \003(\0132E.google.cloud.n" + + "etworkmanagement.v1beta1.VpcFlowLogsConfig.LabelsEntryB\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\032-\n" @@ -89,23 +96,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024METADATA_UNSPECIFIED\020\000\022\030\n" + "\024INCLUDE_ALL_METADATA\020\001\022\030\n" + "\024EXCLUDE_ALL_METADATA\020\002\022\023\n" - + "\017CUSTOM_METADATA\020\003:\262\001\352A\256\001\n" - + "2networkmanagement.googleapis.com/VpcFlowLogsConfig\022Qprojects/" - + "{project}/locations/{location}/vpcFlowLo" - + "gsConfigs/{vpc_flow_logs_config}*\022vpcFlowLogsConfigs2\021vpcFlowLogsConfigB\021\n" + + "\017CUSTOM_METADATA\020\003\"\207\001\n" + + "\024CrossProjectMetadata\022&\n" + + "\"CROSS_PROJECT_METADATA_UNSPECIFIED\020\000\022\"\n" + + "\036CROSS_PROJECT_METADATA_ENABLED\020\001\022#\n" + + "\037CROSS_PROJECT_METADATA_DISABLED\020\002\"|\n" + + "\023TargetResourceState\022%\n" + + "!TARGET_RESOURCE_STATE_UNSPECIFIED\020\000\022\032\n" + + "\026TARGET_RESOURCE_EXISTS\020\001\022\"\n" + + "\036TARGET_RESOURCE_DOES_NOT_EXIST\020\002:\217\002\352A\213\002\n" + + "2networkmanagement.googleapis.com/VpcFlowLogsConfig\022Qprojects/{project}/locatio" + + "ns/{location}/vpcFlowLogsConfigs/{vpc_flow_logs_config}\022[organizations/{organiza" + + "tion}/locations/{location}/vpcFlowLogsCo" + + "nfigs/{vpc_flow_logs_config}*\022vpcFlowLogsConfigs2\021vpcFlowLogsConfigB\021\n" + "\017target_resourceB\016\n" + "\014_descriptionB\010\n" + "\006_stateB\027\n" + "\025_aggregation_intervalB\020\n" + "\016_flow_samplingB\013\n" + "\t_metadataB\016\n" - + "\014_filter_exprB\236\002\n" - + "*com.google.cloud.networkmanagement.v1beta1B\026Vpc" - + "FlowLogsConfigProtoP\001ZXcloud.google.com/go/networkmanagement/apiv1beta1/networkm" - + "anagementpb;networkmanagementpb\252\002&Google" - + ".Cloud.NetworkManagement.V1Beta1\312\002&Googl" - + "e\\Cloud\\NetworkManagement\\V1beta1\352\002)Goog" - + "le::Cloud::NetworkManagement::V1beta1b\006proto3" + + "\014_filter_exprB\031\n" + + "\027_cross_project_metadataB\030\n" + + "\026_target_resource_stateB\213\003\n" + + "*com.google.cloud.networkmanagement.v1beta1B\026VpcFlowLogsConfigProtoP\001ZXcloud.go" + + "ogle.com/go/networkmanagement/apiv1beta1/networkmanagementpb;networkmanagementpb" + + "\252\002&Google.Cloud.NetworkManagement.V1Beta" + + "1\312\002&Google\\Cloud\\NetworkManagement\\V1bet" + + "a1\352\002)Google::Cloud::NetworkManagement::V1beta1\352Aj\n" + + "5networkmanagement.googleapis.com/OrganizationLocation\0221organizations/" + + "{organization}/locations/{location}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -129,6 +148,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Metadata", "MetadataFields", "FilterExpr", + "CrossProjectMetadata", + "TargetResourceState", + "Network", + "Subnet", "InterconnectAttachment", "VpnTunnel", "Labels", @@ -150,6 +173,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); com.google.api.FieldBehaviorProto.getDescriptor(); diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsProto.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsProto.java index d3dd000cde31..318555ae8e6c 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsProto.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsProto.java @@ -52,6 +52,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_networkmanagement_v1beta1_DeleteVpcFlowLogsConfigRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_networkmanagement_v1beta1_DeleteVpcFlowLogsConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkmanagement_v1beta1_QueryOrgVpcFlowLogsConfigsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkmanagement_v1beta1_QueryOrgVpcFlowLogsConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkmanagement_v1beta1_QueryOrgVpcFlowLogsConfigsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkmanagement_v1beta1_QueryOrgVpcFlowLogsConfigsResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -98,41 +106,87 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "management.v1beta1.VpcFlowLogsConfigB\003\340A\002\"j\n" + "\036DeleteVpcFlowLogsConfigRequest\022H\n" + "\004name\030\001 \001(\tB:\340A\002\372A4\n" - + "2networkmanagement.googleapis.com/VpcFlowLogsConfig2\267\014\n" + + "2networkmanagement.googleapis.com/VpcFlowLogsConfig\"\265\001\n" + + "!QueryOrgVpcFlowLogsConfigsRequest\022J\n" + + "\006parent\030\001 \001(" + + "\tB:\340A\002\372A4\0222networkmanagement.googleapis.com/VpcFlowLogsConfig\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\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\"\254\001\n" + + "\"QueryOrgVpcFlowLogsConfigsResponse\022X\n" + + "\025vpc_flow_logs_configs\030\001 " + + "\003(\01329.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t2\315\016\n" + "\022VpcFlowLogsService\022\365\001\n" - + "\026ListVpcFlowLogsConfigs\022E.google.cloud.networkmanagement.v1beta1" - + ".ListVpcFlowLogsConfigsRequest\032F.google.cloud.networkmanagement.v1beta1.ListVpcF" - + "lowLogsConfigsResponse\"L\332A\006parent\202\323\344\223\002=\022" - + ";/v1beta1/{parent=projects/*/locations/*}/vpcFlowLogsConfigs\022\342\001\n" - + "\024GetVpcFlowLogsConfig\022C.google.cloud.networkmanagement.v" - + "1beta1.GetVpcFlowLogsConfigRequest\0329.google.cloud.networkmanagement.v1beta1.VpcF" - + "lowLogsConfig\"J\332A\004name\202\323\344\223\002=\022;/v1beta1/{" - + "name=projects/*/locations/*/vpcFlowLogsConfigs/*}\022\342\002\n" - + "\027CreateVpcFlowLogsConfig\022F.google.cloud.networkmanagement.v1beta1.C" - + "reateVpcFlowLogsConfigRequest\032\035.google.longrunning.Operation\"\337\001\312AM\n" - + "\021VpcFlowLogsConfig\0228google.cloud.networkmanagement.v1" - + "beta1.OperationMetadata\332A3parent,vpc_flo" - + "w_logs_config,vpc_flow_logs_config_id\202\323\344" - + "\223\002S\";/v1beta1/{parent=projects/*/locatio" - + "ns/*}/vpcFlowLogsConfigs:\024vpc_flow_logs_config\022\344\002\n" - + "\027UpdateVpcFlowLogsConfig\022F.google.cloud.networkmanagement.v1beta1.Upda" - + "teVpcFlowLogsConfigRequest\032\035.google.longrunning.Operation\"\341\001\312AM\n" - + "\021VpcFlowLogsConf" - + "ig\0228google.cloud.networkmanagement.v1beta1.OperationMetadata\332A vpc_flow_logs_con" - + "fig,update_mask\202\323\344\223\002h2P/v1beta1/{vpc_flo" - + "w_logs_config.name=projects/*/locations/" - + "*/vpcFlowLogsConfigs/*}:\024vpc_flow_logs_config\022\241\002\n" - + "\027DeleteVpcFlowLogsConfig\022F.google.cloud.networkmanagement.v1beta1.Delet" - + "eVpcFlowLogsConfigRequest\032\035.google.longrunning.Operation\"\236\001\312AQ\n" - + "\025google.protobuf.Empty\0228google.cloud.networkmanagement.v1" - + "beta1.OperationMetadata\332A\004name\202\323\344\223\002=*;/v" - + "1beta1/{name=projects/*/locations/*/vpcFlowLogsConfigs/*}\032T\312A networkmanagement." - + "googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\230\002\n" - + "*com.google.cloud.networkmanagement.v1beta1B\020VpcFlowL" - + "ogsProtoP\001ZXcloud.google.com/go/networkmanagement/apiv1beta1/networkmanagementpb" - + ";networkmanagementpb\252\002&Google.Cloud.Netw" - + "orkManagement.V1Beta1\312\002&Google\\Cloud\\Net" - + "workManagement\\V1beta1\352\002)Google::Cloud::NetworkManagement::V1beta1b\006proto3" + + "\026ListVpcFlowLogsConfigs\022E.google.cloud.networkmanagement.v1beta1." + + "ListVpcFlowLogsConfigsRequest\032F.google.cloud.networkmanagement.v1beta1.ListVpcFl" + + "owLogsConfigsResponse\"L\332A\006parent\202\323\344\223\002=\022;" + + "/v1beta1/{parent=projects/*/locations/*}/vpcFlowLogsConfigs\022\342\001\n" + + "\024GetVpcFlowLogsConfig\022C.google.cloud.networkmanagement.v1" + + "beta1.GetVpcFlowLogsConfigRequest\0329.google.cloud.networkmanagement.v1beta1.VpcFl" + + "owLogsConfig\"J\332A\004name\202\323\344\223\002=\022;/v1beta1/{n" + + "ame=projects/*/locations/*/vpcFlowLogsConfigs/*}\022\342\002\n" + + "\027CreateVpcFlowLogsConfig\022F.google.cloud.networkmanagement.v1beta1.Cr" + + "eateVpcFlowLogsConfigRequest\032\035.google.longrunning.Operation\"\337\001\312AM\n" + + "\021VpcFlowLogsConfig\0228google.cloud.networkmanagement.v1b" + + "eta1.OperationMetadata\332A3parent,vpc_flow" + + "_logs_config,vpc_flow_logs_config_id\202\323\344\223" + + "\002S\";/v1beta1/{parent=projects/*/location" + + "s/*}/vpcFlowLogsConfigs:\024vpc_flow_logs_config\022\344\002\n" + + "\027UpdateVpcFlowLogsConfig\022F.google.cloud.networkmanagement.v1beta1.Updat" + + "eVpcFlowLogsConfigRequest\032\035.google.longrunning.Operation\"\341\001\312AM\n" + + "\021VpcFlowLogsConfi" + + "g\0228google.cloud.networkmanagement.v1beta1.OperationMetadata\332A vpc_flow_logs_conf" + + "ig,update_mask\202\323\344\223\002h2P/v1beta1/{vpc_flow" + + "_logs_config.name=projects/*/locations/*" + + "/vpcFlowLogsConfigs/*}:\024vpc_flow_logs_config\022\241\002\n" + + "\027DeleteVpcFlowLogsConfig\022F.google.cloud.networkmanagement.v1beta1.Delete" + + "VpcFlowLogsConfigRequest\032\035.google.longrunning.Operation\"\236\001\312AQ\n" + + "\025google.protobuf.Empty\0228google.cloud.networkmanagement.v1b" + + "eta1.OperationMetadata\332A\004name\202\323\344\223\002=*;/v1" + + "beta1/{name=projects/*/locations/*/vpcFlowLogsConfigs/*}\022\223\002\n" + + "\032QueryOrgVpcFlowLogsConfigs\022I.google.cloud.networkmanagement" + + ".v1beta1.QueryOrgVpcFlowLogsConfigsRequest\032J.google.cloud.networkmanagement.v1be" + + "ta1.QueryOrgVpcFlowLogsConfigsResponse\"^" + + "\202\323\344\223\002X\022V/v1beta1/{parent=projects/*/loca" + + "tions/*}/vpcFlowLogsConfigs:queryOrgVpcFlowLogsConfigs\032T\312A networkmanagement.goo" + + "gleapis.com\322A.https://www.googleapis.com/auth/cloud-platform2\334\014\n" + + "\036OrganizationVpcFlowLogsService\022\372\001\n" + + "\026ListVpcFlowLogsConfigs\022E.google.cloud.networkmanagement.v1be" + + "ta1.ListVpcFlowLogsConfigsRequest\032F.google.cloud.networkmanagement.v1beta1.ListV" + + "pcFlowLogsConfigsResponse\"Q\332A\006parent\202\323\344\223" + + "\002B\022@/v1beta1/{parent=organizations/*/locations/*}/vpcFlowLogsConfigs\022\347\001\n" + + "\024GetVpcFlowLogsConfig\022C.google.cloud.networkmana" + + "gement.v1beta1.GetVpcFlowLogsConfigRequest\0329.google.cloud.networkmanagement.v1be" + + "ta1.VpcFlowLogsConfig\"O\332A\004name\202\323\344\223\002B\022@/v" + + "1beta1/{name=organizations/*/locations/*/vpcFlowLogsConfigs/*}\022\347\002\n" + + "\027CreateVpcFlowLogsConfig\022F.google.cloud.networkmanagem" + + "ent.v1beta1.CreateVpcFlowLogsConfigRequest\032\035.google.longrunning.Operation\"\344\001\312AM\n" + + "\021VpcFlowLogsConfig\0228google.cloud.network" + + "management.v1beta1.OperationMetadata\332A3parent,vpc_flow_logs_config,vpc_flow_logs" + + "_config_id\202\323\344\223\002X\"@/v1beta1/{parent=organ" + + "izations/*/locations/*}/vpcFlowLogsConfigs:\024vpc_flow_logs_config\022\351\002\n" + + "\027UpdateVpcFlowLogsConfig\022F.google.cloud.networkmanag" + + "ement.v1beta1.UpdateVpcFlowLogsConfigReq" + + "uest\032\035.google.longrunning.Operation\"\346\001\312AM\n" + + "\021VpcFlowLogsConfig\0228google.cloud.netwo" + + "rkmanagement.v1beta1.OperationMetadata\332A" + + " vpc_flow_logs_config,update_mask\202\323\344\223\002m2" + + "U/v1beta1/{vpc_flow_logs_config.name=org" + + "anizations/*/locations/*/vpcFlowLogsConfigs/*}:\024vpc_flow_logs_config\022\246\002\n" + + "\027DeleteVpcFlowLogsConfig\022F.google.cloud.networkm" + + "anagement.v1beta1.DeleteVpcFlowLogsConfi" + + "gRequest\032\035.google.longrunning.Operation\"\243\001\312AQ\n" + + "\025google.protobuf.Empty\0228google.cloud.networkmanagement.v1beta1.OperationMe" + + "tadata\332A\004name\202\323\344\223\002B*@/v1beta1/{name=orga" + + "nizations/*/locations/*/vpcFlowLogsConfigs/*}\032T\312A networkmanagement.googleapis.c" + + "om\322A.https://www.googleapis.com/auth/cloud-platformB\230\002\n" + + "*com.google.cloud.networkmanagement.v1beta1B\020VpcFlowLogsProtoP\001ZX" + + "cloud.google.com/go/networkmanagement/apiv1beta1/networkmanagementpb;networkmana" + + "gementpb\252\002&Google.Cloud.NetworkManagemen" + + "t.V1Beta1\312\002&Google\\Cloud\\NetworkManageme" + + "nt\\V1beta1\352\002)Google::Cloud::NetworkManagement::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -196,6 +250,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", }); + internal_static_google_cloud_networkmanagement_v1beta1_QueryOrgVpcFlowLogsConfigsRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_networkmanagement_v1beta1_QueryOrgVpcFlowLogsConfigsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkmanagement_v1beta1_QueryOrgVpcFlowLogsConfigsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_networkmanagement_v1beta1_QueryOrgVpcFlowLogsConfigsResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_networkmanagement_v1beta1_QueryOrgVpcFlowLogsConfigsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkmanagement_v1beta1_QueryOrgVpcFlowLogsConfigsResponse_descriptor, + new java.lang.String[] { + "VpcFlowLogsConfigs", "NextPageToken", "Unreachable", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/connectivity_test.proto b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/connectivity_test.proto index 56025648dd00..547dc87a81ef 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/connectivity_test.proto +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/connectivity_test.proto @@ -173,6 +173,11 @@ message Endpoint { // URI. The format is: // projects/{project}/locations/{location}/revisions/{revision} string uri = 1; + + // Output only. The URI of the Cloud Run service that the revision belongs + // to. The format is: + // projects/{project}/locations/{location}/services/{service} + string service_uri = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } // The IP address of the endpoint, which can be an external or internal IP. @@ -376,6 +381,34 @@ message ProbingDetails { string metropolitan_area = 1; } + // Probing results for a single edge device. + message SingleEdgeResponse { + // The overall result of active probing for this egress device. + ProbingResult result = 1; + + // Number of probes sent. + int32 sent_probe_count = 2; + + // Number of probes that reached the destination. + int32 successful_probe_count = 3; + + // Latency as measured by active probing in one direction: from the source + // to the destination endpoint. + LatencyDistribution probing_latency = 4; + + // The EdgeLocation from which a packet, destined to the internet, will + // egress the Google network. + // This will only be populated for a connectivity test which has an internet + // destination address. + // The absence of this field *must not* be used as an indication that the + // destination is part of the Google network. + EdgeLocation destination_egress_location = 5; + + // Router name in the format '{router}.{metroshard}'. For example: + // pf01.aaa01, pr02.aaa01. + string destination_router = 6; + } + // The overall result of active probing. ProbingResult result = 1; @@ -402,11 +435,17 @@ message ProbingDetails { // from the source to the destination endpoint. LatencyDistribution probing_latency = 8; - // The EdgeLocation from which a packet destined for/originating from the - // internet will egress/ingress the Google network. + // The EdgeLocation from which a packet, destined to the internet, will egress + // the Google network. // This will only be populated for a connectivity test which has an internet - // destination/source address. + // destination address. // The absence of this field *must not* be used as an indication that the - // destination/source is part of the Google network. + // destination is part of the Google network. EdgeLocation destination_egress_location = 9; + + // Probing results for all edge devices. + repeated SingleEdgeResponse edge_responses = 10; + + // Whether all relevant edge devices were probed. + bool probed_all_devices = 11; } diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/trace.proto b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/trace.proto index 33c09fb26b13..2419955c7166 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/trace.proto +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/trace.proto @@ -316,6 +316,19 @@ message Step { // For display only. Metadata associated with a Compute Engine instance. message InstanceInfo { + // The status of the instance. We treat all states other than "RUNNING" as + // not running. + enum Status { + // Default unspecified value. + STATUS_UNSPECIFIED = 0; + + // The instance is running. + RUNNING = 1; + + // The instance has any status other than "RUNNING". + NOT_RUNNING = 2; + } + // Name of a Compute Engine instance. string display_name = 1; @@ -342,10 +355,16 @@ message InstanceInfo { // URI of the PSC network attachment the NIC is attached to (if relevant). string psc_network_attachment_uri = 9; + + // Indicates whether the Compute Engine instance is running. + // Deprecated: use the `status` field instead. + bool running = 10 [deprecated = true]; + + // The status of the instance. + Status status = 11; } // For display only. Metadata associated with a Compute Engine network. -// Next ID: 7 message NetworkInfo { // Name of a Compute Engine network. string display_name = 1; @@ -459,6 +478,11 @@ message FirewallInfo { // The firewall rule's type. FirewallRuleType firewall_rule_type = 10; + + // The priority of the firewall policy that this rule is associated with. + // This field is not applicable to VPC firewall rules and implied VPC firewall + // rules. + int32 policy_priority = 12; } // For display only. Metadata associated with a Compute Engine route. @@ -544,6 +568,9 @@ message RouteInfo { // Next hop is an NCC hub. This scenario only happens when the user doesn't // have permissions to the project where the next hop resource is located. NEXT_HOP_NCC_HUB = 12; + + // Next hop is Secure Web Proxy Gateway. + SECURE_WEB_PROXY_GATEWAY = 13; } // Indicates where routes are applicable. @@ -986,6 +1013,35 @@ message DeliverInfo { REDIS_CLUSTER = 17; } + // Recognized type of a Google Service. + enum GoogleServiceType { + // Unspecified Google Service. + GOOGLE_SERVICE_TYPE_UNSPECIFIED = 0; + + // Identity aware proxy. + // https://cloud.google.com/iap/docs/using-tcp-forwarding + IAP = 1; + + // One of two services sharing IP ranges: + // * Load Balancer proxy + // * Centralized Health Check prober + // https://cloud.google.com/load-balancing/docs/firewall-rules + GFE_PROXY_OR_HEALTH_CHECK_PROBER = 2; + + // Connectivity from Cloud DNS to forwarding targets or alternate name + // servers that use private routing. + // https://cloud.google.com/dns/docs/zones/forwarding-zones#firewall-rules + // https://cloud.google.com/dns/docs/policies#firewall-rules + CLOUD_DNS = 3; + + // private.googleapis.com and restricted.googleapis.com + PRIVATE_GOOGLE_ACCESS = 4; + + // Google API via Serverless VPC Access. + // https://cloud.google.com/vpc/docs/serverless-vpc-access + SERVERLESS_VPC_ACCESS = 5; + } + // Target type where the packet is delivered to. Target target = 1; @@ -1001,6 +1057,10 @@ message DeliverInfo { // PSC Google API target the packet is delivered to (if applicable). string psc_google_api_target = 5; + + // Recognized type of a Google Service the packet is delivered to (if + // applicable). + GoogleServiceType google_service_type = 6; } // Details of the final state "forward" and associated resource. @@ -1036,6 +1096,9 @@ message ForwardInfo { // Forwarded to a router appliance. ROUTER_APPLIANCE = 9; + + // Forwarded to a Secure Web Proxy Gateway. + SECURE_WEB_PROXY_GATEWAY = 10; } // Target type where this packet is forwarded to. @@ -1162,10 +1225,14 @@ message AbortInfo { // Aborted because expected route configuration was missing. ROUTE_CONFIG_NOT_FOUND = 27; - // Aborted because a PSC endpoint selection for the Google-managed service + // Aborted because PSC endpoint selection for the Google-managed service // is ambiguous (several PSC endpoints satisfy test input). GOOGLE_MANAGED_SERVICE_AMBIGUOUS_PSC_ENDPOINT = 19; + // Aborted because endpoint selection for the Google-managed service is + // ambiguous (several endpoints satisfy test input). + GOOGLE_MANAGED_SERVICE_AMBIGUOUS_ENDPOINT = 39; + // Aborted because tests with a PSC-based Cloud SQL instance as a source are // not supported. SOURCE_PSC_CLOUD_SQL_UNSUPPORTED = 20; @@ -1265,9 +1332,14 @@ message DropInfo { // rule of the internal passthrough load balancer). ROUTE_NEXT_HOP_FORWARDING_RULE_TYPE_INVALID = 53; - // Packet is sent from the Internet to the private IPv6 address. + // Packet is sent from the Internet or Google service to the private IPv6 + // address. NO_ROUTE_FROM_INTERNET_TO_PRIVATE_IPV6_ADDRESS = 44; + // Packet is sent from the external IPv6 source address of an instance to + // the private IPv6 address of an instance. + NO_ROUTE_FROM_EXTERNAL_IPV6_SOURCE_TO_PRIVATE_IPV6_ADDRESS = 98; + // The packet does not match a policy-based VPN tunnel local selector. VPN_TUNNEL_LOCAL_SELECTOR_MISMATCH = 45; @@ -1277,8 +1349,9 @@ message DropInfo { // Packet with internal destination address sent to the internet gateway. PRIVATE_TRAFFIC_TO_INTERNET = 7; - // Instance with only an internal IP address tries to access Google API and - // services, but private Google access is not enabled in the subnet. + // Endpoint with only an internal IP address tries to access Google API and + // services, but Private Google Access is not enabled in the subnet or is + // not applicable. PRIVATE_GOOGLE_ACCESS_DISALLOWED = 8; // Source endpoint tries to access Google API and services through the VPN @@ -1286,9 +1359,8 @@ message DropInfo { // in the source endpoint network. PRIVATE_GOOGLE_ACCESS_VIA_VPN_TUNNEL_UNSUPPORTED = 47; - // Instance with only an internal IP address tries to access external hosts, - // but Cloud NAT is not enabled in the subnet, unless special configurations - // on a VM allow this connection. + // Endpoint with only an internal IP address tries to access external hosts, + // but there is no matching Cloud NAT gateway in the subnet. NO_EXTERNAL_ADDRESS = 9; // Destination internal address cannot be resolved to a known target. If @@ -1563,6 +1635,22 @@ message DropInfo { // Packet with destination IP address within the reserved NAT64 range is // dropped due to matching a route of an unsupported type. UNSUPPORTED_ROUTE_MATCHED_FOR_NAT64_DESTINATION = 88; + + // Packet could be dropped because hybrid endpoint like a VPN gateway or + // Interconnect is not allowed to send traffic to the Internet. + TRAFFIC_FROM_HYBRID_ENDPOINT_TO_INTERNET_DISALLOWED = 89; + + // Packet with destination IP address within the reserved NAT64 range is + // dropped due to no matching NAT gateway in the subnet. + NO_MATCHING_NAT64_GATEWAY = 90; + + // Packet is dropped due to being sent to a backend of a passthrough load + // balancer that doesn't use the same IP version as the frontend. + LOAD_BALANCER_BACKEND_IP_VERSION_MISMATCH = 96; + + // Packet from the unknown NCC network is dropped due to no known route + // from the source network to the destination IP address. + NO_KNOWN_ROUTE_FROM_NCC_NETWORK_TO_DESTINATION = 97; } // Cause that the packet is dropped. diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/vpc_flow_logs.proto b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/vpc_flow_logs.proto index b898173f9b19..e1a73bdd051d 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/vpc_flow_logs.proto +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/vpc_flow_logs.proto @@ -64,16 +64,17 @@ service VpcFlowLogsService { // If a configuration with the exact same settings already exists (even if the // ID is different), the creation fails. // Notes: - // 1. Creating a configuration with state=DISABLED will fail. - // 2. The following fields are not considrered as `settings` for the purpose - // of the check mentioned above, therefore - creating another configuration - // with the same fields but different values for the following fields will - // fail as well: - // - name - // - create_time - // - update_time - // - labels - // - description + // + // 1. Creating a configuration with `state=DISABLED` will fail + // 2. The following fields are not considered as settings for the purpose + // of the check mentioned above, therefore - creating another configuration + // with the same fields but different values for the following fields will + // fail as well: + // * name + // * create_time + // * update_time + // * labels + // * description rpc CreateVpcFlowLogsConfig(CreateVpcFlowLogsConfigRequest) returns (google.longrunning.Operation) { option (google.api.http) = { @@ -92,15 +93,17 @@ service VpcFlowLogsService { // If a configuration with the exact same settings already exists (even if the // ID is different), the creation fails. // Notes: - // 1. The following fields are not considrered as `settings` for the purpose - // of the check mentioned above, therefore - updating another configuration - // with the same fields but different values for the following fields will - // fail as well: - // - name - // - create_time - // - update_time - // - labels - // - description + // + // 1. Updating a configuration with `state=DISABLED` will fail + // 2. The following fields are not considered as settings for the purpose + // of the check mentioned above, therefore - updating another configuration + // with the same fields but different values for the following fields will + // fail as well: + // * name + // * create_time + // * update_time + // * labels + // * description rpc UpdateVpcFlowLogsConfig(UpdateVpcFlowLogsConfigRequest) returns (google.longrunning.Operation) { option (google.api.http) = { @@ -126,12 +129,124 @@ service VpcFlowLogsService { metadata_type: "google.cloud.networkmanagement.v1beta1.OperationMetadata" }; } + + // QueryOrgVpcFlowLogsConfigs returns a list of all organization-level VPC + // Flow Logs configurations applicable to the specified project. + rpc QueryOrgVpcFlowLogsConfigs(QueryOrgVpcFlowLogsConfigsRequest) + returns (QueryOrgVpcFlowLogsConfigsResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*}/vpcFlowLogsConfigs:queryOrgVpcFlowLogsConfigs" + }; + } +} + +// The VPC Flow Logs organization service in the Google Cloud Network Management +// API provides organization level configurations that generate Flow Logs. The +// service and the configuration resources created using this service are +// global. +service OrganizationVpcFlowLogsService { + option (google.api.default_host) = "networkmanagement.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Lists all `VpcFlowLogsConfigs` in a given organization. + rpc ListVpcFlowLogsConfigs(ListVpcFlowLogsConfigsRequest) + returns (ListVpcFlowLogsConfigsResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=organizations/*/locations/*}/vpcFlowLogsConfigs" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets the details of a specific `VpcFlowLogsConfig`. + rpc GetVpcFlowLogsConfig(GetVpcFlowLogsConfigRequest) + returns (VpcFlowLogsConfig) { + option (google.api.http) = { + get: "/v1beta1/{name=organizations/*/locations/*/vpcFlowLogsConfigs/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new `VpcFlowLogsConfig`. + // If a configuration with the exact same settings already exists (even if the + // ID is different), the creation fails. + // Notes: + // + // 1. Creating a configuration with `state=DISABLED` will fail + // 2. The following fields are not considered as settings for the purpose + // of the check mentioned above, therefore - creating another configuration + // with the same fields but different values for the following fields will + // fail as well: + // * name + // * create_time + // * update_time + // * labels + // * description + rpc CreateVpcFlowLogsConfig(CreateVpcFlowLogsConfigRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{parent=organizations/*/locations/*}/vpcFlowLogsConfigs" + body: "vpc_flow_logs_config" + }; + option (google.api.method_signature) = + "parent,vpc_flow_logs_config,vpc_flow_logs_config_id"; + option (google.longrunning.operation_info) = { + response_type: "VpcFlowLogsConfig" + metadata_type: "google.cloud.networkmanagement.v1beta1.OperationMetadata" + }; + } + + // Updates an existing `VpcFlowLogsConfig`. + // If a configuration with the exact same settings already exists (even if the + // ID is different), the creation fails. + // Notes: + // + // 1. Updating a configuration with `state=DISABLED` will fail + // 2. The following fields are not considered as settings for the purpose + // of the check mentioned above, therefore - updating another configuration + // with the same fields but different values for the following fields will + // fail as well: + // * name + // * create_time + // * update_time + // * labels + // * description + rpc UpdateVpcFlowLogsConfig(UpdateVpcFlowLogsConfigRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1beta1/{vpc_flow_logs_config.name=organizations/*/locations/*/vpcFlowLogsConfigs/*}" + body: "vpc_flow_logs_config" + }; + option (google.api.method_signature) = "vpc_flow_logs_config,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "VpcFlowLogsConfig" + metadata_type: "google.cloud.networkmanagement.v1beta1.OperationMetadata" + }; + } + + // Deletes a specific `VpcFlowLogsConfig`. + rpc DeleteVpcFlowLogsConfig(DeleteVpcFlowLogsConfigRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1beta1/{name=organizations/*/locations/*/vpcFlowLogsConfigs/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "google.cloud.networkmanagement.v1beta1.OperationMetadata" + }; + } } // Request for the `ListVpcFlowLogsConfigs` method. message ListVpcFlowLogsConfigsRequest { - // Required. The parent resource of the VpcFlowLogsConfig: - // `projects/{project_id}/locations/global` + // Required. The parent resource of the VpcFlowLogsConfig, + // in one of the following formats: + // + // - For project-level resourcs: `projects/{project_id}/locations/global` + // + // - For organization-level resources: + // `organizations/{organization_id}/locations/global` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -169,8 +284,14 @@ message ListVpcFlowLogsConfigsResponse { // Request for the `GetVpcFlowLogsConfig` method. message GetVpcFlowLogsConfigRequest { - // Required. `VpcFlowLogsConfig` resource name using the form: - // `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}` + // Required. The resource name of the VpcFlowLogsConfig, + // in one of the following formats: + // + // - For project-level resources: + // `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + // + // - For organization-level resources: + // `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -181,8 +302,13 @@ message GetVpcFlowLogsConfigRequest { // Request for the `CreateVpcFlowLogsConfig` method. message CreateVpcFlowLogsConfigRequest { - // Required. The parent resource of the VPC Flow Logs configuration to create: - // `projects/{project_id}/locations/global` + // Required. The parent resource of the VpcFlowLogsConfig to create, + // in one of the following formats: + // + // - For project-level resources: `projects/{project_id}/locations/global` + // + // - For organization-level resources: + // `organizations/{organization_id}/locations/global` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -207,6 +333,12 @@ message CreateVpcFlowLogsConfigRequest { message UpdateVpcFlowLogsConfigRequest { // Required. Mask of fields to update. At least one path must be supplied in // this field. + // For example, to change the state of the configuration to ENABLED, specify + // `update_mask` = `"state"`, and the `vpc_flow_logs_config` would be: + // `vpc_flow_logs_config = { + // name = + // "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config" + // state = "ENABLED" }` google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = REQUIRED]; @@ -217,8 +349,14 @@ message UpdateVpcFlowLogsConfigRequest { // Request for the `DeleteVpcFlowLogsConfig` method. message DeleteVpcFlowLogsConfigRequest { - // Required. `VpcFlowLogsConfig` resource name using the form: - // `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}` + // Required. The resource name of the VpcFlowLogsConfig, + // in one of the following formats: + // + // - For a project-level resource: + // `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + // + // - For an organization-level resource: + // `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -226,3 +364,39 @@ message DeleteVpcFlowLogsConfigRequest { } ]; } + +// Request for the `QueryOrgVpcFlowLogsConfigs` method. +message QueryOrgVpcFlowLogsConfigsRequest { + // Required. The parent resource of the VpcFlowLogsConfig, specified in + // the following format: `projects/{project_id}/locations/global` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "networkmanagement.googleapis.com/VpcFlowLogsConfig" + } + ]; + + // Optional. Number of `VpcFlowLogsConfigs` to return. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Page token from an earlier query, as returned in + // `next_page_token`. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Lists the `VpcFlowLogsConfigs` that match the filter expression. + // A filter expression must use the supported [CEL logic operators] + // (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators). + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response for the `QueryVpcFlowLogsConfigs` method. +message QueryOrgVpcFlowLogsConfigsResponse { + // List of VPC Flow Log configurations. + repeated VpcFlowLogsConfig vpc_flow_logs_configs = 1; + + // Page token to fetch the next set of configurations. + string next_page_token = 2; + + // Locations that could not be reached (when querying all locations with `-`). + repeated string unreachable = 3; +} diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/vpc_flow_logs_config.proto b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/vpc_flow_logs_config.proto index 4c82c0028ce9..24399457b968 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/vpc_flow_logs_config.proto +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/vpc_flow_logs_config.proto @@ -27,18 +27,22 @@ option java_outer_classname = "VpcFlowLogsConfigProto"; option java_package = "com.google.cloud.networkmanagement.v1beta1"; option php_namespace = "Google\\Cloud\\NetworkManagement\\V1beta1"; option ruby_package = "Google::Cloud::NetworkManagement::V1beta1"; +option (google.api.resource_definition) = { + type: "networkmanagement.googleapis.com/OrganizationLocation" + pattern: "organizations/{organization}/locations/{location}" +}; // A configuration to generate VPC Flow Logs. message VpcFlowLogsConfig { option (google.api.resource) = { type: "networkmanagement.googleapis.com/VpcFlowLogsConfig" pattern: "projects/{project}/locations/{location}/vpcFlowLogsConfigs/{vpc_flow_logs_config}" + pattern: "organizations/{organization}/locations/{location}/vpcFlowLogsConfigs/{vpc_flow_logs_config}" plural: "vpcFlowLogsConfigs" singular: "vpcFlowLogsConfig" }; // Determines whether this configuration will be generating logs. - // Setting state=DISABLED will pause the log generation for this config. enum State { // If not specified, will default to ENABLED. STATE_UNSPECIFIED = 0; @@ -89,8 +93,42 @@ message VpcFlowLogsConfig { CUSTOM_METADATA = 3; } - // Identifier. Unique name of the configuration using the form: - // `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + // Determines whether to include cross project annotations in the logs. + // Project configurations will always have CROSS_PROJECT_METADATA_DISABLED. + enum CrossProjectMetadata { + // If not specified, the default is CROSS_PROJECT_METADATA_ENABLED. + CROSS_PROJECT_METADATA_UNSPECIFIED = 0; + + // When CROSS_PROJECT_METADATA_ENABLED, metadata from other projects will be + // included in the logs. + CROSS_PROJECT_METADATA_ENABLED = 1; + + // When CROSS_PROJECT_METADATA_DISABLED, metadata from other projects will + // not be included in the logs. + CROSS_PROJECT_METADATA_DISABLED = 2; + } + + // Output only. Indicates whether the target resource exists, for diagnostic + // purposes. + enum TargetResourceState { + // Unspecified target resource state. + TARGET_RESOURCE_STATE_UNSPECIFIED = 0; + + // Indicates that the target resource exists. + TARGET_RESOURCE_EXISTS = 1; + + // Indicates that the target resource does not exist. + TARGET_RESOURCE_DOES_NOT_EXIST = 2; + } + + // Identifier. Unique name of the configuration. The name can have one of the + // following forms: + // + // - For project-level configurations: + // `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + // + // - For organization-level configurations: + // `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Optional. The user-supplied description of the VPC Flow Logs configuration. @@ -98,7 +136,8 @@ message VpcFlowLogsConfig { optional string description = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. The state of the VPC Flow Log configuration. Default value is - // ENABLED. When creating a new configuration, it must be enabled. + // ENABLED. When creating a new configuration, it must be enabled. Setting + // state=DISABLED will pause the log generation for this config. optional State state = 3 [(google.api.field_behavior) = OPTIONAL]; // Optional. The aggregation interval for the logs. Default value is @@ -125,10 +164,31 @@ message VpcFlowLogsConfig { // logged. optional string filter_expr = 8 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Determines whether to include cross project annotations in the + // logs. This field is available only for organization configurations. If not + // specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED. + optional CrossProjectMetadata cross_project_metadata = 13 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Describes the state of the configured target resource for + // diagnostic purposes. + optional TargetResourceState target_resource_state = 12 + [(google.api.field_behavior) = OUTPUT_ONLY]; + // Reference to the resource of the config scope. That is, the scope from // which traffic is logged. The target resource must belong to the same // project as the configuration. + // This field is not supported for organization level configurations. oneof target_resource { + // Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments + // within the network. + // Format: projects/{project_id}/global/networks/{name} + string network = 100; + + // Traffic will be logged from VMs within the subnetwork. + // Format: projects/{project_id}/regions/{region}/subnetworks/{name} + string subnet = 101; + // Traffic will be logged from the Interconnect Attachment. // Format: // projects/{project_id}/regions/{region}/interconnectAttachments/{name} diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/create/SyncCreateSetCredentialsProvider.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..c0aa020efec7 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceSettings; +import com.google.cloud.networkmanagement.v1beta1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() 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 + OrganizationVpcFlowLogsServiceSettings organizationVpcFlowLogsServiceSettings = + OrganizationVpcFlowLogsServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create(organizationVpcFlowLogsServiceSettings); + } +} +// [END networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_Create_SetCredentialsProvider_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/create/SyncCreateSetEndpoint.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..ce03d4095920 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_Create_SetEndpoint_sync] +import com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceSettings; +import com.google.cloud.networkmanagement.v1beta1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() 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 + OrganizationVpcFlowLogsServiceSettings organizationVpcFlowLogsServiceSettings = + OrganizationVpcFlowLogsServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create(organizationVpcFlowLogsServiceSettings); + } +} +// [END networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_Create_SetEndpoint_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/create/SyncCreateUseHttpJsonTransport.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..54ba8c72b0b9 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() 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 + OrganizationVpcFlowLogsServiceSettings organizationVpcFlowLogsServiceSettings = + OrganizationVpcFlowLogsServiceSettings.newHttpJsonBuilder().build(); + OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create(organizationVpcFlowLogsServiceSettings); + } +} +// [END networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_Create_UseHttpJsonTransport_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/createvpcflowlogsconfig/AsyncCreateVpcFlowLogsConfig.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/createvpcflowlogsconfig/AsyncCreateVpcFlowLogsConfig.java new file mode 100644 index 000000000000..0e7ad660eadf --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/createvpcflowlogsconfig/AsyncCreateVpcFlowLogsConfig.java @@ -0,0 +1,60 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_CreateVpcFlowLogsConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkmanagement.v1beta1.CreateVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1beta1.LocationName; +import com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfigName; +import com.google.longrunning.Operation; + +public class AsyncCreateVpcFlowLogsConfig { + + public static void main(String[] args) throws Exception { + asyncCreateVpcFlowLogsConfig(); + } + + public static void asyncCreateVpcFlowLogsConfig() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + CreateVpcFlowLogsConfigRequest request = + CreateVpcFlowLogsConfigRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setVpcFlowLogsConfigId( + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setVpcFlowLogsConfig(VpcFlowLogsConfig.newBuilder().build()) + .build(); + ApiFuture future = + organizationVpcFlowLogsServiceClient + .createVpcFlowLogsConfigCallable() + .futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_CreateVpcFlowLogsConfig_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/createvpcflowlogsconfig/AsyncCreateVpcFlowLogsConfigLRO.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/createvpcflowlogsconfig/AsyncCreateVpcFlowLogsConfigLRO.java new file mode 100644 index 000000000000..fc95c0e63367 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/createvpcflowlogsconfig/AsyncCreateVpcFlowLogsConfigLRO.java @@ -0,0 +1,60 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_CreateVpcFlowLogsConfig_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networkmanagement.v1beta1.CreateVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1beta1.LocationName; +import com.google.cloud.networkmanagement.v1beta1.OperationMetadata; +import com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfigName; + +public class AsyncCreateVpcFlowLogsConfigLRO { + + public static void main(String[] args) throws Exception { + asyncCreateVpcFlowLogsConfigLRO(); + } + + public static void asyncCreateVpcFlowLogsConfigLRO() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + CreateVpcFlowLogsConfigRequest request = + CreateVpcFlowLogsConfigRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setVpcFlowLogsConfigId( + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setVpcFlowLogsConfig(VpcFlowLogsConfig.newBuilder().build()) + .build(); + OperationFuture future = + organizationVpcFlowLogsServiceClient + .createVpcFlowLogsConfigOperationCallable() + .futureCall(request); + // Do something. + VpcFlowLogsConfig response = future.get(); + } + } +} +// [END networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_CreateVpcFlowLogsConfig_LRO_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfig.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfig.java new file mode 100644 index 000000000000..1e740827283d --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfig.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_CreateVpcFlowLogsConfig_sync] +import com.google.cloud.networkmanagement.v1beta1.CreateVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1beta1.LocationName; +import com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfigName; + +public class SyncCreateVpcFlowLogsConfig { + + public static void main(String[] args) throws Exception { + syncCreateVpcFlowLogsConfig(); + } + + public static void syncCreateVpcFlowLogsConfig() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + CreateVpcFlowLogsConfigRequest request = + CreateVpcFlowLogsConfigRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setVpcFlowLogsConfigId( + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setVpcFlowLogsConfig(VpcFlowLogsConfig.newBuilder().build()) + .build(); + VpcFlowLogsConfig response = + organizationVpcFlowLogsServiceClient.createVpcFlowLogsConfigAsync(request).get(); + } + } +} +// [END networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_CreateVpcFlowLogsConfig_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigString.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigString.java new file mode 100644 index 000000000000..45e2317fa247 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigString.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_CreateVpcFlowLogsConfig_LocationnameVpcflowlogsconfigString_sync] +import com.google.cloud.networkmanagement.v1beta1.LocationName; +import com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfigName; + +public class SyncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigString { + + public static void main(String[] args) throws Exception { + syncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigString(); + } + + public static void syncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigString() + 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + String vpcFlowLogsConfigId = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString(); + VpcFlowLogsConfig response = + organizationVpcFlowLogsServiceClient + .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId) + .get(); + } + } +} +// [END networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_CreateVpcFlowLogsConfig_LocationnameVpcflowlogsconfigString_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigVpcflowlogsconfigname.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigVpcflowlogsconfigname.java new file mode 100644 index 000000000000..6339abecfed1 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigVpcflowlogsconfigname.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_CreateVpcFlowLogsConfig_LocationnameVpcflowlogsconfigVpcflowlogsconfigname_sync] +import com.google.cloud.networkmanagement.v1beta1.LocationName; +import com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfigName; + +public class SyncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigVpcflowlogsconfigname { + + public static void main(String[] args) throws Exception { + syncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigVpcflowlogsconfigname(); + } + + public static void syncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigVpcflowlogsconfigname() + 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + VpcFlowLogsConfigName vpcFlowLogsConfigId = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfig response = + organizationVpcFlowLogsServiceClient + .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId) + .get(); + } + } +} +// [END networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_CreateVpcFlowLogsConfig_LocationnameVpcflowlogsconfigVpcflowlogsconfigname_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigOrganizationlocationnameVpcflowlogsconfigString.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigOrganizationlocationnameVpcflowlogsconfigString.java new file mode 100644 index 000000000000..cad1040338df --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigOrganizationlocationnameVpcflowlogsconfigString.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_CreateVpcFlowLogsConfig_OrganizationlocationnameVpcflowlogsconfigString_sync] +import com.google.cloud.networkmanagement.v1beta1.OrganizationLocationName; +import com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfigName; + +public class SyncCreateVpcFlowLogsConfigOrganizationlocationnameVpcflowlogsconfigString { + + public static void main(String[] args) throws Exception { + syncCreateVpcFlowLogsConfigOrganizationlocationnameVpcflowlogsconfigString(); + } + + public static void syncCreateVpcFlowLogsConfigOrganizationlocationnameVpcflowlogsconfigString() + 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + String vpcFlowLogsConfigId = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString(); + VpcFlowLogsConfig response = + organizationVpcFlowLogsServiceClient + .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId) + .get(); + } + } +} +// [END networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_CreateVpcFlowLogsConfig_OrganizationlocationnameVpcflowlogsconfigString_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigOrganizationlocationnameVpcflowlogsconfigVpcflowlogsconfigname.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigOrganizationlocationnameVpcflowlogsconfigVpcflowlogsconfigname.java new file mode 100644 index 000000000000..2575a5e7a3a4 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigOrganizationlocationnameVpcflowlogsconfigVpcflowlogsconfigname.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_CreateVpcFlowLogsConfig_OrganizationlocationnameVpcflowlogsconfigVpcflowlogsconfigname_sync] +import com.google.cloud.networkmanagement.v1beta1.OrganizationLocationName; +import com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfigName; + +public +class SyncCreateVpcFlowLogsConfigOrganizationlocationnameVpcflowlogsconfigVpcflowlogsconfigname { + + public static void main(String[] args) throws Exception { + syncCreateVpcFlowLogsConfigOrganizationlocationnameVpcflowlogsconfigVpcflowlogsconfigname(); + } + + public static void + syncCreateVpcFlowLogsConfigOrganizationlocationnameVpcflowlogsconfigVpcflowlogsconfigname() + 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + VpcFlowLogsConfigName vpcFlowLogsConfigId = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfig response = + organizationVpcFlowLogsServiceClient + .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId) + .get(); + } + } +} +// [END networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_CreateVpcFlowLogsConfig_OrganizationlocationnameVpcflowlogsconfigVpcflowlogsconfigname_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigStringVpcflowlogsconfigString.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigStringVpcflowlogsconfigString.java new file mode 100644 index 000000000000..9ee574a25b27 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigStringVpcflowlogsconfigString.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_CreateVpcFlowLogsConfig_StringVpcflowlogsconfigString_sync] +import com.google.cloud.networkmanagement.v1beta1.LocationName; +import com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfigName; + +public class SyncCreateVpcFlowLogsConfigStringVpcflowlogsconfigString { + + public static void main(String[] args) throws Exception { + syncCreateVpcFlowLogsConfigStringVpcflowlogsconfigString(); + } + + public static void syncCreateVpcFlowLogsConfigStringVpcflowlogsconfigString() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + String vpcFlowLogsConfigId = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString(); + VpcFlowLogsConfig response = + organizationVpcFlowLogsServiceClient + .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId) + .get(); + } + } +} +// [END networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_CreateVpcFlowLogsConfig_StringVpcflowlogsconfigString_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigStringVpcflowlogsconfigVpcflowlogsconfigname.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigStringVpcflowlogsconfigVpcflowlogsconfigname.java new file mode 100644 index 000000000000..1a64f8c8001b --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigStringVpcflowlogsconfigVpcflowlogsconfigname.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_CreateVpcFlowLogsConfig_StringVpcflowlogsconfigVpcflowlogsconfigname_sync] +import com.google.cloud.networkmanagement.v1beta1.LocationName; +import com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfigName; + +public class SyncCreateVpcFlowLogsConfigStringVpcflowlogsconfigVpcflowlogsconfigname { + + public static void main(String[] args) throws Exception { + syncCreateVpcFlowLogsConfigStringVpcflowlogsconfigVpcflowlogsconfigname(); + } + + public static void syncCreateVpcFlowLogsConfigStringVpcflowlogsconfigVpcflowlogsconfigname() + 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + VpcFlowLogsConfigName vpcFlowLogsConfigId = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfig response = + organizationVpcFlowLogsServiceClient + .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId) + .get(); + } + } +} +// [END networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_CreateVpcFlowLogsConfig_StringVpcflowlogsconfigVpcflowlogsconfigname_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/deletevpcflowlogsconfig/AsyncDeleteVpcFlowLogsConfig.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/deletevpcflowlogsconfig/AsyncDeleteVpcFlowLogsConfig.java new file mode 100644 index 000000000000..75932db3306b --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/deletevpcflowlogsconfig/AsyncDeleteVpcFlowLogsConfig.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_DeleteVpcFlowLogsConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkmanagement.v1beta1.DeleteVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfigName; +import com.google.longrunning.Operation; + +public class AsyncDeleteVpcFlowLogsConfig { + + public static void main(String[] args) throws Exception { + asyncDeleteVpcFlowLogsConfig(); + } + + public static void asyncDeleteVpcFlowLogsConfig() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + DeleteVpcFlowLogsConfigRequest request = + DeleteVpcFlowLogsConfigRequest.newBuilder() + .setName( + VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName( + "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .build(); + ApiFuture future = + organizationVpcFlowLogsServiceClient + .deleteVpcFlowLogsConfigCallable() + .futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_DeleteVpcFlowLogsConfig_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/deletevpcflowlogsconfig/AsyncDeleteVpcFlowLogsConfigLRO.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/deletevpcflowlogsconfig/AsyncDeleteVpcFlowLogsConfigLRO.java new file mode 100644 index 000000000000..0be18aa81f4d --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/deletevpcflowlogsconfig/AsyncDeleteVpcFlowLogsConfigLRO.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_DeleteVpcFlowLogsConfig_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networkmanagement.v1beta1.DeleteVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1beta1.OperationMetadata; +import com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfigName; +import com.google.protobuf.Empty; + +public class AsyncDeleteVpcFlowLogsConfigLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteVpcFlowLogsConfigLRO(); + } + + public static void asyncDeleteVpcFlowLogsConfigLRO() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + DeleteVpcFlowLogsConfigRequest request = + DeleteVpcFlowLogsConfigRequest.newBuilder() + .setName( + VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName( + "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .build(); + OperationFuture future = + organizationVpcFlowLogsServiceClient + .deleteVpcFlowLogsConfigOperationCallable() + .futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_DeleteVpcFlowLogsConfig_LRO_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/deletevpcflowlogsconfig/SyncDeleteVpcFlowLogsConfig.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/deletevpcflowlogsconfig/SyncDeleteVpcFlowLogsConfig.java new file mode 100644 index 000000000000..adb266d3705f --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/deletevpcflowlogsconfig/SyncDeleteVpcFlowLogsConfig.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_DeleteVpcFlowLogsConfig_sync] +import com.google.cloud.networkmanagement.v1beta1.DeleteVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfigName; +import com.google.protobuf.Empty; + +public class SyncDeleteVpcFlowLogsConfig { + + public static void main(String[] args) throws Exception { + syncDeleteVpcFlowLogsConfig(); + } + + public static void syncDeleteVpcFlowLogsConfig() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + DeleteVpcFlowLogsConfigRequest request = + DeleteVpcFlowLogsConfigRequest.newBuilder() + .setName( + VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName( + "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .build(); + organizationVpcFlowLogsServiceClient.deleteVpcFlowLogsConfigAsync(request).get(); + } + } +} +// [END networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_DeleteVpcFlowLogsConfig_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/deletevpcflowlogsconfig/SyncDeleteVpcFlowLogsConfigString.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/deletevpcflowlogsconfig/SyncDeleteVpcFlowLogsConfigString.java new file mode 100644 index 000000000000..f118d0aaf3cb --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/deletevpcflowlogsconfig/SyncDeleteVpcFlowLogsConfigString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_DeleteVpcFlowLogsConfig_String_sync] +import com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfigName; +import com.google.protobuf.Empty; + +public class SyncDeleteVpcFlowLogsConfigString { + + public static void main(String[] args) throws Exception { + syncDeleteVpcFlowLogsConfigString(); + } + + public static void syncDeleteVpcFlowLogsConfigString() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + String name = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString(); + organizationVpcFlowLogsServiceClient.deleteVpcFlowLogsConfigAsync(name).get(); + } + } +} +// [END networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_DeleteVpcFlowLogsConfig_String_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/deletevpcflowlogsconfig/SyncDeleteVpcFlowLogsConfigVpcflowlogsconfigname.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/deletevpcflowlogsconfig/SyncDeleteVpcFlowLogsConfigVpcflowlogsconfigname.java new file mode 100644 index 000000000000..51a38bfa5b85 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/deletevpcflowlogsconfig/SyncDeleteVpcFlowLogsConfigVpcflowlogsconfigname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_DeleteVpcFlowLogsConfig_Vpcflowlogsconfigname_sync] +import com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfigName; +import com.google.protobuf.Empty; + +public class SyncDeleteVpcFlowLogsConfigVpcflowlogsconfigname { + + public static void main(String[] args) throws Exception { + syncDeleteVpcFlowLogsConfigVpcflowlogsconfigname(); + } + + public static void syncDeleteVpcFlowLogsConfigVpcflowlogsconfigname() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + VpcFlowLogsConfigName name = + VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName( + "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + organizationVpcFlowLogsServiceClient.deleteVpcFlowLogsConfigAsync(name).get(); + } + } +} +// [END networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_DeleteVpcFlowLogsConfig_Vpcflowlogsconfigname_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/getiampolicy/AsyncGetIamPolicy.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/getiampolicy/AsyncGetIamPolicy.java new file mode 100644 index 000000000000..6d5d986e6542 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/getiampolicy/AsyncGetIamPolicy.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_GetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkmanagement.v1beta1.ConnectivityTestName; +import com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class AsyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncGetIamPolicy(); + } + + public static void asyncGetIamPolicy() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + ApiFuture future = + organizationVpcFlowLogsServiceClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_GetIamPolicy_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/getiampolicy/SyncGetIamPolicy.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/getiampolicy/SyncGetIamPolicy.java new file mode 100644 index 000000000000..0b96b6c0a7e7 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/getiampolicy/SyncGetIamPolicy.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_GetIamPolicy_sync] +import com.google.cloud.networkmanagement.v1beta1.ConnectivityTestName; +import com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + syncGetIamPolicy(); + } + + public static void syncGetIamPolicy() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + Policy response = organizationVpcFlowLogsServiceClient.getIamPolicy(request); + } + } +} +// [END networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_GetIamPolicy_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/getlocation/AsyncGetLocation.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/getlocation/AsyncGetLocation.java new file mode 100644 index 000000000000..59acb797cb2e --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/getlocation/AsyncGetLocation.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_GetLocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; +import com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient; + +public class AsyncGetLocation { + + public static void main(String[] args) throws Exception { + asyncGetLocation(); + } + + public static void asyncGetLocation() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = + organizationVpcFlowLogsServiceClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_GetLocation_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/getlocation/SyncGetLocation.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/getlocation/SyncGetLocation.java new file mode 100644 index 000000000000..5c96d80aff78 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/getlocation/SyncGetLocation.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_GetLocation_sync] +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; +import com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient; + +public class SyncGetLocation { + + public static void main(String[] args) throws Exception { + syncGetLocation(); + } + + public static void syncGetLocation() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = organizationVpcFlowLogsServiceClient.getLocation(request); + } + } +} +// [END networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_GetLocation_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/getvpcflowlogsconfig/AsyncGetVpcFlowLogsConfig.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/getvpcflowlogsconfig/AsyncGetVpcFlowLogsConfig.java new file mode 100644 index 000000000000..99c4578fd0c5 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/getvpcflowlogsconfig/AsyncGetVpcFlowLogsConfig.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_GetVpcFlowLogsConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkmanagement.v1beta1.GetVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfigName; + +public class AsyncGetVpcFlowLogsConfig { + + public static void main(String[] args) throws Exception { + asyncGetVpcFlowLogsConfig(); + } + + public static void asyncGetVpcFlowLogsConfig() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + GetVpcFlowLogsConfigRequest request = + GetVpcFlowLogsConfigRequest.newBuilder() + .setName( + VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName( + "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .build(); + ApiFuture future = + organizationVpcFlowLogsServiceClient.getVpcFlowLogsConfigCallable().futureCall(request); + // Do something. + VpcFlowLogsConfig response = future.get(); + } + } +} +// [END networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_GetVpcFlowLogsConfig_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfig.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfig.java new file mode 100644 index 000000000000..a54c005bd569 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfig.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_GetVpcFlowLogsConfig_sync] +import com.google.cloud.networkmanagement.v1beta1.GetVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfigName; + +public class SyncGetVpcFlowLogsConfig { + + public static void main(String[] args) throws Exception { + syncGetVpcFlowLogsConfig(); + } + + public static void syncGetVpcFlowLogsConfig() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + GetVpcFlowLogsConfigRequest request = + GetVpcFlowLogsConfigRequest.newBuilder() + .setName( + VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName( + "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .build(); + VpcFlowLogsConfig response = + organizationVpcFlowLogsServiceClient.getVpcFlowLogsConfig(request); + } + } +} +// [END networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_GetVpcFlowLogsConfig_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfigString.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfigString.java new file mode 100644 index 000000000000..e46c97a9f48d --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfigString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_GetVpcFlowLogsConfig_String_sync] +import com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfigName; + +public class SyncGetVpcFlowLogsConfigString { + + public static void main(String[] args) throws Exception { + syncGetVpcFlowLogsConfigString(); + } + + public static void syncGetVpcFlowLogsConfigString() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + String name = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString(); + VpcFlowLogsConfig response = organizationVpcFlowLogsServiceClient.getVpcFlowLogsConfig(name); + } + } +} +// [END networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_GetVpcFlowLogsConfig_String_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfigVpcflowlogsconfigname.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfigVpcflowlogsconfigname.java new file mode 100644 index 000000000000..3dccd3143fff --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfigVpcflowlogsconfigname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_GetVpcFlowLogsConfig_Vpcflowlogsconfigname_sync] +import com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfigName; + +public class SyncGetVpcFlowLogsConfigVpcflowlogsconfigname { + + public static void main(String[] args) throws Exception { + syncGetVpcFlowLogsConfigVpcflowlogsconfigname(); + } + + public static void syncGetVpcFlowLogsConfigVpcflowlogsconfigname() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + VpcFlowLogsConfigName name = + VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName( + "[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfig response = organizationVpcFlowLogsServiceClient.getVpcFlowLogsConfig(name); + } + } +} +// [END networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_GetVpcFlowLogsConfig_Vpcflowlogsconfigname_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/listlocations/AsyncListLocations.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/listlocations/AsyncListLocations.java new file mode 100644 index 000000000000..d61c16bc58d5 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/listlocations/AsyncListLocations.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_ListLocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient; + +public class AsyncListLocations { + + public static void main(String[] args) throws Exception { + asyncListLocations(); + } + + public static void asyncListLocations() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + organizationVpcFlowLogsServiceClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_ListLocations_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/listlocations/AsyncListLocationsPaged.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 000000000000..9cf1dd60a6c2 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_ListLocations_Paged_async] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient; +import com.google.common.base.Strings; + +public class AsyncListLocationsPaged { + + public static void main(String[] args) throws Exception { + asyncListLocationsPaged(); + } + + public static void asyncListLocationsPaged() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = + organizationVpcFlowLogsServiceClient.listLocationsCallable().call(request); + for (Location element : response.getLocationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_ListLocations_Paged_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/listlocations/SyncListLocations.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/listlocations/SyncListLocations.java new file mode 100644 index 000000000000..57890f41c108 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/listlocations/SyncListLocations.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_ListLocations_sync] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient; + +public class SyncListLocations { + + public static void main(String[] args) throws Exception { + syncListLocations(); + } + + public static void syncListLocations() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : + organizationVpcFlowLogsServiceClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_ListLocations_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/listvpcflowlogsconfigs/AsyncListVpcFlowLogsConfigs.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/listvpcflowlogsconfigs/AsyncListVpcFlowLogsConfigs.java new file mode 100644 index 000000000000..5985fc86396b --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/listvpcflowlogsconfigs/AsyncListVpcFlowLogsConfigs.java @@ -0,0 +1,59 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_ListVpcFlowLogsConfigs_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsRequest; +import com.google.cloud.networkmanagement.v1beta1.LocationName; +import com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig; + +public class AsyncListVpcFlowLogsConfigs { + + public static void main(String[] args) throws Exception { + asyncListVpcFlowLogsConfigs(); + } + + public static void asyncListVpcFlowLogsConfigs() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + ListVpcFlowLogsConfigsRequest request = + ListVpcFlowLogsConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + organizationVpcFlowLogsServiceClient + .listVpcFlowLogsConfigsPagedCallable() + .futureCall(request); + // Do something. + for (VpcFlowLogsConfig element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_ListVpcFlowLogsConfigs_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/listvpcflowlogsconfigs/AsyncListVpcFlowLogsConfigsPaged.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/listvpcflowlogsconfigs/AsyncListVpcFlowLogsConfigsPaged.java new file mode 100644 index 000000000000..e96e6c8864d0 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/listvpcflowlogsconfigs/AsyncListVpcFlowLogsConfigsPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_ListVpcFlowLogsConfigs_Paged_async] +import com.google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsRequest; +import com.google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsResponse; +import com.google.cloud.networkmanagement.v1beta1.LocationName; +import com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig; +import com.google.common.base.Strings; + +public class AsyncListVpcFlowLogsConfigsPaged { + + public static void main(String[] args) throws Exception { + asyncListVpcFlowLogsConfigsPaged(); + } + + public static void asyncListVpcFlowLogsConfigsPaged() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + ListVpcFlowLogsConfigsRequest request = + ListVpcFlowLogsConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListVpcFlowLogsConfigsResponse response = + organizationVpcFlowLogsServiceClient.listVpcFlowLogsConfigsCallable().call(request); + for (VpcFlowLogsConfig element : response.getVpcFlowLogsConfigsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_ListVpcFlowLogsConfigs_Paged_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/listvpcflowlogsconfigs/SyncListVpcFlowLogsConfigs.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/listvpcflowlogsconfigs/SyncListVpcFlowLogsConfigs.java new file mode 100644 index 000000000000..71024e1ee2ae --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/listvpcflowlogsconfigs/SyncListVpcFlowLogsConfigs.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_ListVpcFlowLogsConfigs_sync] +import com.google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsRequest; +import com.google.cloud.networkmanagement.v1beta1.LocationName; +import com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig; + +public class SyncListVpcFlowLogsConfigs { + + public static void main(String[] args) throws Exception { + syncListVpcFlowLogsConfigs(); + } + + public static void syncListVpcFlowLogsConfigs() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + ListVpcFlowLogsConfigsRequest request = + ListVpcFlowLogsConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (VpcFlowLogsConfig element : + organizationVpcFlowLogsServiceClient.listVpcFlowLogsConfigs(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_ListVpcFlowLogsConfigs_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/listvpcflowlogsconfigs/SyncListVpcFlowLogsConfigsLocationname.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/listvpcflowlogsconfigs/SyncListVpcFlowLogsConfigsLocationname.java new file mode 100644 index 000000000000..2ebeaf30fd2d --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/listvpcflowlogsconfigs/SyncListVpcFlowLogsConfigsLocationname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_ListVpcFlowLogsConfigs_Locationname_sync] +import com.google.cloud.networkmanagement.v1beta1.LocationName; +import com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig; + +public class SyncListVpcFlowLogsConfigsLocationname { + + public static void main(String[] args) throws Exception { + syncListVpcFlowLogsConfigsLocationname(); + } + + public static void syncListVpcFlowLogsConfigsLocationname() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (VpcFlowLogsConfig element : + organizationVpcFlowLogsServiceClient.listVpcFlowLogsConfigs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_ListVpcFlowLogsConfigs_Locationname_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/listvpcflowlogsconfigs/SyncListVpcFlowLogsConfigsOrganizationlocationname.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/listvpcflowlogsconfigs/SyncListVpcFlowLogsConfigsOrganizationlocationname.java new file mode 100644 index 000000000000..f04ed95f15c7 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/listvpcflowlogsconfigs/SyncListVpcFlowLogsConfigsOrganizationlocationname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_ListVpcFlowLogsConfigs_Organizationlocationname_sync] +import com.google.cloud.networkmanagement.v1beta1.OrganizationLocationName; +import com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig; + +public class SyncListVpcFlowLogsConfigsOrganizationlocationname { + + public static void main(String[] args) throws Exception { + syncListVpcFlowLogsConfigsOrganizationlocationname(); + } + + public static void syncListVpcFlowLogsConfigsOrganizationlocationname() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + for (VpcFlowLogsConfig element : + organizationVpcFlowLogsServiceClient.listVpcFlowLogsConfigs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_ListVpcFlowLogsConfigs_Organizationlocationname_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/listvpcflowlogsconfigs/SyncListVpcFlowLogsConfigsString.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/listvpcflowlogsconfigs/SyncListVpcFlowLogsConfigsString.java new file mode 100644 index 000000000000..7608fbc10ba7 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/listvpcflowlogsconfigs/SyncListVpcFlowLogsConfigsString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_ListVpcFlowLogsConfigs_String_sync] +import com.google.cloud.networkmanagement.v1beta1.LocationName; +import com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig; + +public class SyncListVpcFlowLogsConfigsString { + + public static void main(String[] args) throws Exception { + syncListVpcFlowLogsConfigsString(); + } + + public static void syncListVpcFlowLogsConfigsString() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (VpcFlowLogsConfig element : + organizationVpcFlowLogsServiceClient.listVpcFlowLogsConfigs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_ListVpcFlowLogsConfigs_String_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/setiampolicy/AsyncSetIamPolicy.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/setiampolicy/AsyncSetIamPolicy.java new file mode 100644 index 000000000000..c2c9c80de9c0 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/setiampolicy/AsyncSetIamPolicy.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_SetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkmanagement.v1beta1.ConnectivityTestName; +import com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class AsyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncSetIamPolicy(); + } + + public static void asyncSetIamPolicy() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + organizationVpcFlowLogsServiceClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_SetIamPolicy_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/setiampolicy/SyncSetIamPolicy.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/setiampolicy/SyncSetIamPolicy.java new file mode 100644 index 000000000000..caf7ff6d443b --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/setiampolicy/SyncSetIamPolicy.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_SetIamPolicy_sync] +import com.google.cloud.networkmanagement.v1beta1.ConnectivityTestName; +import com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class SyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicy(); + } + + public static void syncSetIamPolicy() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Policy response = organizationVpcFlowLogsServiceClient.setIamPolicy(request); + } + } +} +// [END networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_SetIamPolicy_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/testiampermissions/AsyncTestIamPermissions.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/testiampermissions/AsyncTestIamPermissions.java new file mode 100644 index 000000000000..a00f7e4bbc7f --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/testiampermissions/AsyncTestIamPermissions.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_TestIamPermissions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkmanagement.v1beta1.ConnectivityTestName; +import com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class AsyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + asyncTestIamPermissions(); + } + + public static void asyncTestIamPermissions() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + ApiFuture future = + organizationVpcFlowLogsServiceClient.testIamPermissionsCallable().futureCall(request); + // Do something. + TestIamPermissionsResponse response = future.get(); + } + } +} +// [END networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_TestIamPermissions_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/testiampermissions/SyncTestIamPermissions.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/testiampermissions/SyncTestIamPermissions.java new file mode 100644 index 000000000000..6ef34514865a --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/testiampermissions/SyncTestIamPermissions.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_TestIamPermissions_sync] +import com.google.cloud.networkmanagement.v1beta1.ConnectivityTestName; +import com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class SyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + syncTestIamPermissions(); + } + + public static void syncTestIamPermissions() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + TestIamPermissionsResponse response = + organizationVpcFlowLogsServiceClient.testIamPermissions(request); + } + } +} +// [END networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_TestIamPermissions_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/updatevpcflowlogsconfig/AsyncUpdateVpcFlowLogsConfig.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/updatevpcflowlogsconfig/AsyncUpdateVpcFlowLogsConfig.java new file mode 100644 index 000000000000..0fda2bb1e866 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/updatevpcflowlogsconfig/AsyncUpdateVpcFlowLogsConfig.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_UpdateVpcFlowLogsConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1beta1.UpdateVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateVpcFlowLogsConfig { + + public static void main(String[] args) throws Exception { + asyncUpdateVpcFlowLogsConfig(); + } + + public static void asyncUpdateVpcFlowLogsConfig() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + UpdateVpcFlowLogsConfigRequest request = + UpdateVpcFlowLogsConfigRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setVpcFlowLogsConfig(VpcFlowLogsConfig.newBuilder().build()) + .build(); + ApiFuture future = + organizationVpcFlowLogsServiceClient + .updateVpcFlowLogsConfigCallable() + .futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_UpdateVpcFlowLogsConfig_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/updatevpcflowlogsconfig/AsyncUpdateVpcFlowLogsConfigLRO.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/updatevpcflowlogsconfig/AsyncUpdateVpcFlowLogsConfigLRO.java new file mode 100644 index 000000000000..04757503796a --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/updatevpcflowlogsconfig/AsyncUpdateVpcFlowLogsConfigLRO.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_UpdateVpcFlowLogsConfig_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networkmanagement.v1beta1.OperationMetadata; +import com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1beta1.UpdateVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateVpcFlowLogsConfigLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateVpcFlowLogsConfigLRO(); + } + + public static void asyncUpdateVpcFlowLogsConfigLRO() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + UpdateVpcFlowLogsConfigRequest request = + UpdateVpcFlowLogsConfigRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setVpcFlowLogsConfig(VpcFlowLogsConfig.newBuilder().build()) + .build(); + OperationFuture future = + organizationVpcFlowLogsServiceClient + .updateVpcFlowLogsConfigOperationCallable() + .futureCall(request); + // Do something. + VpcFlowLogsConfig response = future.get(); + } + } +} +// [END networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_UpdateVpcFlowLogsConfig_LRO_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/updatevpcflowlogsconfig/SyncUpdateVpcFlowLogsConfig.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/updatevpcflowlogsconfig/SyncUpdateVpcFlowLogsConfig.java new file mode 100644 index 000000000000..7b065798e7c8 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/updatevpcflowlogsconfig/SyncUpdateVpcFlowLogsConfig.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_UpdateVpcFlowLogsConfig_sync] +import com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1beta1.UpdateVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig; +import com.google.protobuf.FieldMask; + +public class SyncUpdateVpcFlowLogsConfig { + + public static void main(String[] args) throws Exception { + syncUpdateVpcFlowLogsConfig(); + } + + public static void syncUpdateVpcFlowLogsConfig() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + UpdateVpcFlowLogsConfigRequest request = + UpdateVpcFlowLogsConfigRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setVpcFlowLogsConfig(VpcFlowLogsConfig.newBuilder().build()) + .build(); + VpcFlowLogsConfig response = + organizationVpcFlowLogsServiceClient.updateVpcFlowLogsConfigAsync(request).get(); + } + } +} +// [END networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_UpdateVpcFlowLogsConfig_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/updatevpcflowlogsconfig/SyncUpdateVpcFlowLogsConfigVpcflowlogsconfigFieldmask.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/updatevpcflowlogsconfig/SyncUpdateVpcFlowLogsConfigVpcflowlogsconfigFieldmask.java new file mode 100644 index 000000000000..34ce905d59e4 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservice/updatevpcflowlogsconfig/SyncUpdateVpcFlowLogsConfigVpcflowlogsconfigFieldmask.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_UpdateVpcFlowLogsConfig_VpcflowlogsconfigFieldmask_sync] +import com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig; +import com.google.protobuf.FieldMask; + +public class SyncUpdateVpcFlowLogsConfigVpcflowlogsconfigFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateVpcFlowLogsConfigVpcflowlogsconfigFieldmask(); + } + + public static void syncUpdateVpcFlowLogsConfigVpcflowlogsconfigFieldmask() 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 (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient = + OrganizationVpcFlowLogsServiceClient.create()) { + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + VpcFlowLogsConfig response = + organizationVpcFlowLogsServiceClient + .updateVpcFlowLogsConfigAsync(vpcFlowLogsConfig, updateMask) + .get(); + } + } +} +// [END networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_UpdateVpcFlowLogsConfig_VpcflowlogsconfigFieldmask_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservicesettings/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfig.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservicesettings/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfig.java new file mode 100644 index 000000000000..8c65e3f9df2d --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservicesettings/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfig.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsServiceSettings_CreateVpcFlowLogsConfig_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceSettings; +import java.time.Duration; + +public class SyncCreateVpcFlowLogsConfig { + + public static void main(String[] args) throws Exception { + syncCreateVpcFlowLogsConfig(); + } + + public static void syncCreateVpcFlowLogsConfig() 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 + OrganizationVpcFlowLogsServiceSettings.Builder organizationVpcFlowLogsServiceSettingsBuilder = + OrganizationVpcFlowLogsServiceSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + organizationVpcFlowLogsServiceSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsServiceSettings_CreateVpcFlowLogsConfig_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservicesettings/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfig.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservicesettings/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfig.java new file mode 100644 index 000000000000..33e64377256a --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/organizationvpcflowlogsservicesettings/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfig.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsServiceSettings_GetVpcFlowLogsConfig_sync] +import com.google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceSettings; +import java.time.Duration; + +public class SyncGetVpcFlowLogsConfig { + + public static void main(String[] args) throws Exception { + syncGetVpcFlowLogsConfig(); + } + + public static void syncGetVpcFlowLogsConfig() 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 + OrganizationVpcFlowLogsServiceSettings.Builder organizationVpcFlowLogsServiceSettingsBuilder = + OrganizationVpcFlowLogsServiceSettings.newBuilder(); + organizationVpcFlowLogsServiceSettingsBuilder + .getVpcFlowLogsConfigSettings() + .setRetrySettings( + organizationVpcFlowLogsServiceSettingsBuilder + .getVpcFlowLogsConfigSettings() + .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()); + OrganizationVpcFlowLogsServiceSettings organizationVpcFlowLogsServiceSettings = + organizationVpcFlowLogsServiceSettingsBuilder.build(); + } +} +// [END networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsServiceSettings_GetVpcFlowLogsConfig_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/stub/organizationvpcflowlogsservicestubsettings/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfig.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/stub/organizationvpcflowlogsservicestubsettings/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfig.java new file mode 100644 index 000000000000..783fa0a9e151 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/stub/organizationvpcflowlogsservicestubsettings/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfig.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.stub.samples; + +// [START networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsServiceStubSettings_CreateVpcFlowLogsConfig_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.networkmanagement.v1beta1.stub.OrganizationVpcFlowLogsServiceStubSettings; +import java.time.Duration; + +public class SyncCreateVpcFlowLogsConfig { + + public static void main(String[] args) throws Exception { + syncCreateVpcFlowLogsConfig(); + } + + public static void syncCreateVpcFlowLogsConfig() 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 + OrganizationVpcFlowLogsServiceStubSettings.Builder + organizationVpcFlowLogsServiceSettingsBuilder = + OrganizationVpcFlowLogsServiceStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + organizationVpcFlowLogsServiceSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsServiceStubSettings_CreateVpcFlowLogsConfig_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/stub/organizationvpcflowlogsservicestubsettings/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfig.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/stub/organizationvpcflowlogsservicestubsettings/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfig.java new file mode 100644 index 000000000000..945a629c17da --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/stub/organizationvpcflowlogsservicestubsettings/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfig.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.stub.samples; + +// [START networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsServiceStubSettings_GetVpcFlowLogsConfig_sync] +import com.google.cloud.networkmanagement.v1beta1.stub.OrganizationVpcFlowLogsServiceStubSettings; +import java.time.Duration; + +public class SyncGetVpcFlowLogsConfig { + + public static void main(String[] args) throws Exception { + syncGetVpcFlowLogsConfig(); + } + + public static void syncGetVpcFlowLogsConfig() 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 + OrganizationVpcFlowLogsServiceStubSettings.Builder + organizationVpcFlowLogsServiceSettingsBuilder = + OrganizationVpcFlowLogsServiceStubSettings.newBuilder(); + organizationVpcFlowLogsServiceSettingsBuilder + .getVpcFlowLogsConfigSettings() + .setRetrySettings( + organizationVpcFlowLogsServiceSettingsBuilder + .getVpcFlowLogsConfigSettings() + .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()); + OrganizationVpcFlowLogsServiceStubSettings organizationVpcFlowLogsServiceSettings = + organizationVpcFlowLogsServiceSettingsBuilder.build(); + } +} +// [END networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsServiceStubSettings_GetVpcFlowLogsConfig_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/createvpcflowlogsconfig/AsyncCreateVpcFlowLogsConfig.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/createvpcflowlogsconfig/AsyncCreateVpcFlowLogsConfig.java index ea623f712396..ffe863cd1fb2 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/createvpcflowlogsconfig/AsyncCreateVpcFlowLogsConfig.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/createvpcflowlogsconfig/AsyncCreateVpcFlowLogsConfig.java @@ -42,7 +42,8 @@ public static void asyncCreateVpcFlowLogsConfig() throws Exception { CreateVpcFlowLogsConfigRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setVpcFlowLogsConfigId( - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") .toString()) .setVpcFlowLogsConfig(VpcFlowLogsConfig.newBuilder().build()) .build(); diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/createvpcflowlogsconfig/AsyncCreateVpcFlowLogsConfigLRO.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/createvpcflowlogsconfig/AsyncCreateVpcFlowLogsConfigLRO.java index f6684d587d17..91c743b763dc 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/createvpcflowlogsconfig/AsyncCreateVpcFlowLogsConfigLRO.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/createvpcflowlogsconfig/AsyncCreateVpcFlowLogsConfigLRO.java @@ -42,7 +42,8 @@ public static void asyncCreateVpcFlowLogsConfigLRO() throws Exception { CreateVpcFlowLogsConfigRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setVpcFlowLogsConfigId( - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") .toString()) .setVpcFlowLogsConfig(VpcFlowLogsConfig.newBuilder().build()) .build(); diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfig.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfig.java index 46eebcd37ba1..5cc161683c88 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfig.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfig.java @@ -40,7 +40,8 @@ public static void syncCreateVpcFlowLogsConfig() throws Exception { CreateVpcFlowLogsConfigRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setVpcFlowLogsConfigId( - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") .toString()) .setVpcFlowLogsConfig(VpcFlowLogsConfig.newBuilder().build()) .build(); diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigString.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigString.java index 77e98663b8a0..245c47dc1db2 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigString.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigString.java @@ -39,7 +39,9 @@ public static void syncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigStrin LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); String vpcFlowLogsConfigId = - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]").toString(); + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString(); VpcFlowLogsConfig response = vpcFlowLogsServiceClient .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId) diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigVpcflowlogsconfigname.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigVpcflowlogsconfigname.java index b3624165ae21..5bcfa283cbbf 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigVpcflowlogsconfigname.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigVpcflowlogsconfigname.java @@ -39,7 +39,8 @@ public static void syncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigVpcfl LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); VpcFlowLogsConfigName vpcFlowLogsConfigId = - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); VpcFlowLogsConfig response = vpcFlowLogsServiceClient .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId) diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigOrganizationlocationnameVpcflowlogsconfigString.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigOrganizationlocationnameVpcflowlogsconfigString.java new file mode 100644 index 000000000000..faf7fd3941b8 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigOrganizationlocationnameVpcflowlogsconfigString.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_VpcFlowLogsService_CreateVpcFlowLogsConfig_OrganizationlocationnameVpcflowlogsconfigString_sync] +import com.google.cloud.networkmanagement.v1beta1.OrganizationLocationName; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfigName; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient; + +public class SyncCreateVpcFlowLogsConfigOrganizationlocationnameVpcflowlogsconfigString { + + public static void main(String[] args) throws Exception { + syncCreateVpcFlowLogsConfigOrganizationlocationnameVpcflowlogsconfigString(); + } + + public static void syncCreateVpcFlowLogsConfigOrganizationlocationnameVpcflowlogsconfigString() + 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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + String vpcFlowLogsConfigId = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString(); + VpcFlowLogsConfig response = + vpcFlowLogsServiceClient + .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId) + .get(); + } + } +} +// [END networkmanagement_v1beta1_generated_VpcFlowLogsService_CreateVpcFlowLogsConfig_OrganizationlocationnameVpcflowlogsconfigString_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigOrganizationlocationnameVpcflowlogsconfigVpcflowlogsconfigname.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigOrganizationlocationnameVpcflowlogsconfigVpcflowlogsconfigname.java new file mode 100644 index 000000000000..2fe5e173c226 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigOrganizationlocationnameVpcflowlogsconfigVpcflowlogsconfigname.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_VpcFlowLogsService_CreateVpcFlowLogsConfig_OrganizationlocationnameVpcflowlogsconfigVpcflowlogsconfigname_sync] +import com.google.cloud.networkmanagement.v1beta1.OrganizationLocationName; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfigName; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient; + +public +class SyncCreateVpcFlowLogsConfigOrganizationlocationnameVpcflowlogsconfigVpcflowlogsconfigname { + + public static void main(String[] args) throws Exception { + syncCreateVpcFlowLogsConfigOrganizationlocationnameVpcflowlogsconfigVpcflowlogsconfigname(); + } + + public static void + syncCreateVpcFlowLogsConfigOrganizationlocationnameVpcflowlogsconfigVpcflowlogsconfigname() + 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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + VpcFlowLogsConfigName vpcFlowLogsConfigId = + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfig response = + vpcFlowLogsServiceClient + .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId) + .get(); + } + } +} +// [END networkmanagement_v1beta1_generated_VpcFlowLogsService_CreateVpcFlowLogsConfig_OrganizationlocationnameVpcflowlogsconfigVpcflowlogsconfigname_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigStringVpcflowlogsconfigString.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigStringVpcflowlogsconfigString.java index 6dcf58da4c57..ce7aa162a3d9 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigStringVpcflowlogsconfigString.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigStringVpcflowlogsconfigString.java @@ -38,7 +38,9 @@ public static void syncCreateVpcFlowLogsConfigStringVpcflowlogsconfigString() th String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); String vpcFlowLogsConfigId = - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]").toString(); + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString(); VpcFlowLogsConfig response = vpcFlowLogsServiceClient .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId) diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigStringVpcflowlogsconfigVpcflowlogsconfigname.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigStringVpcflowlogsconfigVpcflowlogsconfigname.java index c2d2200cb8a1..e82dd6170234 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigStringVpcflowlogsconfigVpcflowlogsconfigname.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigStringVpcflowlogsconfigVpcflowlogsconfigname.java @@ -39,7 +39,8 @@ public static void syncCreateVpcFlowLogsConfigStringVpcflowlogsconfigVpcflowlogs String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); VpcFlowLogsConfigName vpcFlowLogsConfigId = - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); VpcFlowLogsConfig response = vpcFlowLogsServiceClient .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId) diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/deletevpcflowlogsconfig/AsyncDeleteVpcFlowLogsConfig.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/deletevpcflowlogsconfig/AsyncDeleteVpcFlowLogsConfig.java index c5ea79e088cc..119d72472f93 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/deletevpcflowlogsconfig/AsyncDeleteVpcFlowLogsConfig.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/deletevpcflowlogsconfig/AsyncDeleteVpcFlowLogsConfig.java @@ -39,7 +39,8 @@ public static void asyncDeleteVpcFlowLogsConfig() throws Exception { DeleteVpcFlowLogsConfigRequest request = DeleteVpcFlowLogsConfigRequest.newBuilder() .setName( - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") .toString()) .build(); ApiFuture future = diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/deletevpcflowlogsconfig/AsyncDeleteVpcFlowLogsConfigLRO.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/deletevpcflowlogsconfig/AsyncDeleteVpcFlowLogsConfigLRO.java index 40db96c30f83..e879e45afe47 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/deletevpcflowlogsconfig/AsyncDeleteVpcFlowLogsConfigLRO.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/deletevpcflowlogsconfig/AsyncDeleteVpcFlowLogsConfigLRO.java @@ -40,7 +40,8 @@ public static void asyncDeleteVpcFlowLogsConfigLRO() throws Exception { DeleteVpcFlowLogsConfigRequest request = DeleteVpcFlowLogsConfigRequest.newBuilder() .setName( - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") .toString()) .build(); OperationFuture future = diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/deletevpcflowlogsconfig/SyncDeleteVpcFlowLogsConfig.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/deletevpcflowlogsconfig/SyncDeleteVpcFlowLogsConfig.java index 1d7c5a05e14f..8ec8d5c894b4 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/deletevpcflowlogsconfig/SyncDeleteVpcFlowLogsConfig.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/deletevpcflowlogsconfig/SyncDeleteVpcFlowLogsConfig.java @@ -38,7 +38,8 @@ public static void syncDeleteVpcFlowLogsConfig() throws Exception { DeleteVpcFlowLogsConfigRequest request = DeleteVpcFlowLogsConfigRequest.newBuilder() .setName( - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") .toString()) .build(); vpcFlowLogsServiceClient.deleteVpcFlowLogsConfigAsync(request).get(); diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/deletevpcflowlogsconfig/SyncDeleteVpcFlowLogsConfigString.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/deletevpcflowlogsconfig/SyncDeleteVpcFlowLogsConfigString.java index 73e0f0acaa50..9c09f9169610 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/deletevpcflowlogsconfig/SyncDeleteVpcFlowLogsConfigString.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/deletevpcflowlogsconfig/SyncDeleteVpcFlowLogsConfigString.java @@ -35,7 +35,9 @@ public static void syncDeleteVpcFlowLogsConfigString() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { String name = - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]").toString(); + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString(); vpcFlowLogsServiceClient.deleteVpcFlowLogsConfigAsync(name).get(); } } diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/deletevpcflowlogsconfig/SyncDeleteVpcFlowLogsConfigVpcflowlogsconfigname.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/deletevpcflowlogsconfig/SyncDeleteVpcFlowLogsConfigVpcflowlogsconfigname.java index d1826570bfb3..75f732ba5549 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/deletevpcflowlogsconfig/SyncDeleteVpcFlowLogsConfigVpcflowlogsconfigname.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/deletevpcflowlogsconfig/SyncDeleteVpcFlowLogsConfigVpcflowlogsconfigname.java @@ -35,7 +35,8 @@ public static void syncDeleteVpcFlowLogsConfigVpcflowlogsconfigname() throws Exc // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { VpcFlowLogsConfigName name = - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); vpcFlowLogsServiceClient.deleteVpcFlowLogsConfigAsync(name).get(); } } diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/getvpcflowlogsconfig/AsyncGetVpcFlowLogsConfig.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/getvpcflowlogsconfig/AsyncGetVpcFlowLogsConfig.java index f85586059103..d47f24881e73 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/getvpcflowlogsconfig/AsyncGetVpcFlowLogsConfig.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/getvpcflowlogsconfig/AsyncGetVpcFlowLogsConfig.java @@ -39,7 +39,8 @@ public static void asyncGetVpcFlowLogsConfig() throws Exception { GetVpcFlowLogsConfigRequest request = GetVpcFlowLogsConfigRequest.newBuilder() .setName( - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") .toString()) .build(); ApiFuture future = diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfig.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfig.java index cf2c5fba055b..aaa32fce3a93 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfig.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfig.java @@ -38,7 +38,8 @@ public static void syncGetVpcFlowLogsConfig() throws Exception { GetVpcFlowLogsConfigRequest request = GetVpcFlowLogsConfigRequest.newBuilder() .setName( - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") .toString()) .build(); VpcFlowLogsConfig response = vpcFlowLogsServiceClient.getVpcFlowLogsConfig(request); diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfigString.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfigString.java index 6b9c6bc10765..833900b2da4b 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfigString.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfigString.java @@ -35,7 +35,9 @@ public static void syncGetVpcFlowLogsConfigString() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { String name = - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]").toString(); + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString(); VpcFlowLogsConfig response = vpcFlowLogsServiceClient.getVpcFlowLogsConfig(name); } } diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfigVpcflowlogsconfigname.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfigVpcflowlogsconfigname.java index 243c28b9e062..2643c2120acd 100644 --- a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfigVpcflowlogsconfigname.java +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfigVpcflowlogsconfigname.java @@ -35,7 +35,8 @@ public static void syncGetVpcFlowLogsConfigVpcflowlogsconfigname() throws Except // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { VpcFlowLogsConfigName name = - VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName( + "[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); VpcFlowLogsConfig response = vpcFlowLogsServiceClient.getVpcFlowLogsConfig(name); } } diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/listvpcflowlogsconfigs/SyncListVpcFlowLogsConfigsOrganizationlocationname.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/listvpcflowlogsconfigs/SyncListVpcFlowLogsConfigsOrganizationlocationname.java new file mode 100644 index 000000000000..fde0bcea900d --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/listvpcflowlogsconfigs/SyncListVpcFlowLogsConfigsOrganizationlocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_VpcFlowLogsService_ListVpcFlowLogsConfigs_Organizationlocationname_sync] +import com.google.cloud.networkmanagement.v1beta1.OrganizationLocationName; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient; + +public class SyncListVpcFlowLogsConfigsOrganizationlocationname { + + public static void main(String[] args) throws Exception { + syncListVpcFlowLogsConfigsOrganizationlocationname(); + } + + public static void syncListVpcFlowLogsConfigsOrganizationlocationname() 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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + for (VpcFlowLogsConfig element : + vpcFlowLogsServiceClient.listVpcFlowLogsConfigs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkmanagement_v1beta1_generated_VpcFlowLogsService_ListVpcFlowLogsConfigs_Organizationlocationname_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/queryorgvpcflowlogsconfigs/AsyncQueryOrgVpcFlowLogsConfigs.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/queryorgvpcflowlogsconfigs/AsyncQueryOrgVpcFlowLogsConfigs.java new file mode 100644 index 000000000000..6e365ac461d0 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/queryorgvpcflowlogsconfigs/AsyncQueryOrgVpcFlowLogsConfigs.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_VpcFlowLogsService_QueryOrgVpcFlowLogsConfigs_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkmanagement.v1beta1.LocationName; +import com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient; + +public class AsyncQueryOrgVpcFlowLogsConfigs { + + public static void main(String[] args) throws Exception { + asyncQueryOrgVpcFlowLogsConfigs(); + } + + public static void asyncQueryOrgVpcFlowLogsConfigs() 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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + QueryOrgVpcFlowLogsConfigsRequest request = + QueryOrgVpcFlowLogsConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + vpcFlowLogsServiceClient.queryOrgVpcFlowLogsConfigsPagedCallable().futureCall(request); + // Do something. + for (VpcFlowLogsConfig element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkmanagement_v1beta1_generated_VpcFlowLogsService_QueryOrgVpcFlowLogsConfigs_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/queryorgvpcflowlogsconfigs/AsyncQueryOrgVpcFlowLogsConfigsPaged.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/queryorgvpcflowlogsconfigs/AsyncQueryOrgVpcFlowLogsConfigsPaged.java new file mode 100644 index 000000000000..2e5011330250 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/queryorgvpcflowlogsconfigs/AsyncQueryOrgVpcFlowLogsConfigsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_VpcFlowLogsService_QueryOrgVpcFlowLogsConfigs_Paged_async] +import com.google.cloud.networkmanagement.v1beta1.LocationName; +import com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest; +import com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient; +import com.google.common.base.Strings; + +public class AsyncQueryOrgVpcFlowLogsConfigsPaged { + + public static void main(String[] args) throws Exception { + asyncQueryOrgVpcFlowLogsConfigsPaged(); + } + + public static void asyncQueryOrgVpcFlowLogsConfigsPaged() 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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + QueryOrgVpcFlowLogsConfigsRequest request = + QueryOrgVpcFlowLogsConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + while (true) { + QueryOrgVpcFlowLogsConfigsResponse response = + vpcFlowLogsServiceClient.queryOrgVpcFlowLogsConfigsCallable().call(request); + for (VpcFlowLogsConfig element : response.getVpcFlowLogsConfigsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END networkmanagement_v1beta1_generated_VpcFlowLogsService_QueryOrgVpcFlowLogsConfigs_Paged_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/queryorgvpcflowlogsconfigs/SyncQueryOrgVpcFlowLogsConfigs.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/queryorgvpcflowlogsconfigs/SyncQueryOrgVpcFlowLogsConfigs.java new file mode 100644 index 000000000000..cb9daa61e543 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1beta1/vpcflowlogsservice/queryorgvpcflowlogsconfigs/SyncQueryOrgVpcFlowLogsConfigs.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.cloud.networkmanagement.v1beta1.samples; + +// [START networkmanagement_v1beta1_generated_VpcFlowLogsService_QueryOrgVpcFlowLogsConfigs_sync] +import com.google.cloud.networkmanagement.v1beta1.LocationName; +import com.google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsRequest; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient; + +public class SyncQueryOrgVpcFlowLogsConfigs { + + public static void main(String[] args) throws Exception { + syncQueryOrgVpcFlowLogsConfigs(); + } + + public static void syncQueryOrgVpcFlowLogsConfigs() 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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + QueryOrgVpcFlowLogsConfigsRequest request = + QueryOrgVpcFlowLogsConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + for (VpcFlowLogsConfig element : + vpcFlowLogsServiceClient.queryOrgVpcFlowLogsConfigs(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkmanagement_v1beta1_generated_VpcFlowLogsService_QueryOrgVpcFlowLogsConfigs_sync] diff --git a/java-network-security/CHANGELOG.md b/java-network-security/CHANGELOG.md index 77c8ef69c14c..01dc1da5a7d3 100644 --- a/java-network-security/CHANGELOG.md +++ b/java-network-security/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.71.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.70.0 (2025-06-25) ### Dependencies diff --git a/java-network-security/README.md b/java-network-security/README.md index 97244639143f..1c560efd6bc2 100644 --- a/java-network-security/README.md +++ b/java-network-security/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-network-security - 0.69.0 + 0.70.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-network-security:0.69.0' +implementation 'com.google.cloud:google-cloud-network-security:0.70.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-network-security" % "0.69.0" +libraryDependencies += "com.google.cloud" % "google-cloud-network-security" % "0.70.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.69.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-security/0.70.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/google-cloud-network-security-bom/pom.xml b/java-network-security/google-cloud-network-security-bom/pom.xml index c75241f275cf..f59a2d904863 100644 --- a/java-network-security/google-cloud-network-security-bom/pom.xml +++ b/java-network-security/google-cloud-network-security-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-network-security-bom - 0.70.0 + 0.71.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-network-security - 0.70.0 + 0.71.0 com.google.api.grpc grpc-google-cloud-network-security-v1beta1 - 0.70.0 + 0.71.0 com.google.api.grpc grpc-google-cloud-network-security-v1 - 0.70.0 + 0.71.0 com.google.api.grpc proto-google-cloud-network-security-v1beta1 - 0.70.0 + 0.71.0 com.google.api.grpc proto-google-cloud-network-security-v1 - 0.70.0 + 0.71.0
      diff --git a/java-network-security/google-cloud-network-security/pom.xml b/java-network-security/google-cloud-network-security/pom.xml index ae6a6307e2aa..996456e7f7c5 100644 --- a/java-network-security/google-cloud-network-security/pom.xml +++ b/java-network-security/google-cloud-network-security/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-network-security - 0.70.0 + 0.71.0 jar Google Network Security API Network Security API n/a com.google.cloud google-cloud-network-security-parent - 0.70.0 + 0.71.0 google-cloud-network-security diff --git a/java-network-security/grpc-google-cloud-network-security-v1/pom.xml b/java-network-security/grpc-google-cloud-network-security-v1/pom.xml index e0d28c9b9f7a..1aabe8165ec7 100644 --- a/java-network-security/grpc-google-cloud-network-security-v1/pom.xml +++ b/java-network-security/grpc-google-cloud-network-security-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-network-security-v1 - 0.70.0 + 0.71.0 grpc-google-cloud-network-security-v1 GRPC library for google-cloud-network-security com.google.cloud google-cloud-network-security-parent - 0.70.0 + 0.71.0 diff --git a/java-network-security/grpc-google-cloud-network-security-v1beta1/pom.xml b/java-network-security/grpc-google-cloud-network-security-v1beta1/pom.xml index 7c49fac178a0..04da56ee1de6 100644 --- a/java-network-security/grpc-google-cloud-network-security-v1beta1/pom.xml +++ b/java-network-security/grpc-google-cloud-network-security-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-network-security-v1beta1 - 0.70.0 + 0.71.0 grpc-google-cloud-network-security-v1beta1 GRPC library for google-cloud-network-security com.google.cloud google-cloud-network-security-parent - 0.70.0 + 0.71.0 diff --git a/java-network-security/pom.xml b/java-network-security/pom.xml index bcf1502bb84c..2957e1457cfd 100644 --- a/java-network-security/pom.xml +++ b/java-network-security/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-network-security-parent pom - 0.70.0 + 0.71.0 Google Network Security API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-network-security - 0.70.0 + 0.71.0 com.google.api.grpc proto-google-cloud-network-security-v1 - 0.70.0 + 0.71.0 com.google.api.grpc grpc-google-cloud-network-security-v1 - 0.70.0 + 0.71.0 com.google.api.grpc grpc-google-cloud-network-security-v1beta1 - 0.70.0 + 0.71.0 com.google.api.grpc proto-google-cloud-network-security-v1beta1 - 0.70.0 + 0.71.0 diff --git a/java-network-security/proto-google-cloud-network-security-v1/pom.xml b/java-network-security/proto-google-cloud-network-security-v1/pom.xml index 4965d7db6802..bf709f64e055 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/pom.xml +++ b/java-network-security/proto-google-cloud-network-security-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-network-security-v1 - 0.70.0 + 0.71.0 proto-google-cloud-network-security-v1 Proto library for google-cloud-network-security com.google.cloud google-cloud-network-security-parent - 0.70.0 + 0.71.0 diff --git a/java-network-security/proto-google-cloud-network-security-v1beta1/pom.xml b/java-network-security/proto-google-cloud-network-security-v1beta1/pom.xml index 9899711f5ca5..eaaa1b577d86 100644 --- a/java-network-security/proto-google-cloud-network-security-v1beta1/pom.xml +++ b/java-network-security/proto-google-cloud-network-security-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-network-security-v1beta1 - 0.70.0 + 0.71.0 proto-google-cloud-network-security-v1beta1 Proto library for google-cloud-network-security com.google.cloud google-cloud-network-security-parent - 0.70.0 + 0.71.0 diff --git a/java-networkconnectivity/CHANGELOG.md b/java-networkconnectivity/CHANGELOG.md index 26f2594fe11a..d0631f4c1f48 100644 --- a/java-networkconnectivity/CHANGELOG.md +++ b/java-networkconnectivity/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 1.67.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 1.66.0 (2025-06-25) ### Dependencies diff --git a/java-networkconnectivity/README.md b/java-networkconnectivity/README.md index d40ed32fcaa9..742570f1a08e 100644 --- a/java-networkconnectivity/README.md +++ b/java-networkconnectivity/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-networkconnectivity - 1.65.0 + 1.66.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-networkconnectivity:1.65.0' +implementation 'com.google.cloud:google-cloud-networkconnectivity:1.66.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-networkconnectivity" % "1.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-networkconnectivity" % "1.66.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.65.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkconnectivity/1.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-networkconnectivity/google-cloud-networkconnectivity-bom/pom.xml b/java-networkconnectivity/google-cloud-networkconnectivity-bom/pom.xml index a6642be1be0d..1a27990e0d5d 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity-bom/pom.xml +++ b/java-networkconnectivity/google-cloud-networkconnectivity-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-networkconnectivity-bom - 1.66.0 + 1.67.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-networkconnectivity - 1.66.0 + 1.67.0 com.google.api.grpc grpc-google-cloud-networkconnectivity-v1alpha1 - 0.72.0 + 0.73.0 com.google.api.grpc grpc-google-cloud-networkconnectivity-v1 - 1.66.0 + 1.67.0 com.google.api.grpc proto-google-cloud-networkconnectivity-v1alpha1 - 0.72.0 + 0.73.0 com.google.api.grpc proto-google-cloud-networkconnectivity-v1 - 1.66.0 + 1.67.0 diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/pom.xml b/java-networkconnectivity/google-cloud-networkconnectivity/pom.xml index 0e161c86f8c8..dd3f6d60e9ac 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/pom.xml +++ b/java-networkconnectivity/google-cloud-networkconnectivity/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-networkconnectivity - 1.66.0 + 1.67.0 jar Google Network Connectivity Center 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 com.google.cloud google-cloud-networkconnectivity-parent - 1.66.0 + 1.67.0 google-cloud-networkconnectivity diff --git a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/pom.xml b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/pom.xml index e9ce50ba0cb6..b4b2eaf948be 100644 --- a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/pom.xml +++ b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-networkconnectivity-v1 - 1.66.0 + 1.67.0 grpc-google-cloud-networkconnectivity-v1 GRPC library for google-cloud-networkconnectivity com.google.cloud google-cloud-networkconnectivity-parent - 1.66.0 + 1.67.0 diff --git a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1alpha1/pom.xml b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1alpha1/pom.xml index 7e3c1acec297..057cb4d070ed 100644 --- a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1alpha1/pom.xml +++ b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-networkconnectivity-v1alpha1 - 0.72.0 + 0.73.0 grpc-google-cloud-networkconnectivity-v1alpha1 GRPC library for google-cloud-networkconnectivity com.google.cloud google-cloud-networkconnectivity-parent - 1.66.0 + 1.67.0 diff --git a/java-networkconnectivity/pom.xml b/java-networkconnectivity/pom.xml index e89fbf6748ff..4b7d539e641e 100644 --- a/java-networkconnectivity/pom.xml +++ b/java-networkconnectivity/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-networkconnectivity-parent pom - 1.66.0 + 1.67.0 Google Network Connectivity Center Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-networkconnectivity - 1.66.0 + 1.67.0 com.google.api.grpc proto-google-cloud-networkconnectivity-v1 - 1.66.0 + 1.67.0 com.google.api.grpc grpc-google-cloud-networkconnectivity-v1 - 1.66.0 + 1.67.0 com.google.api.grpc proto-google-cloud-networkconnectivity-v1alpha1 - 0.72.0 + 0.73.0 com.google.api.grpc grpc-google-cloud-networkconnectivity-v1alpha1 - 0.72.0 + 0.73.0 diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/pom.xml b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/pom.xml index 380d912e72dd..8982f5e7ff32 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/pom.xml +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-networkconnectivity-v1 - 1.66.0 + 1.67.0 proto-google-cloud-networkconnectivity-v1 Proto library for google-cloud-networkconnectivity com.google.cloud google-cloud-networkconnectivity-parent - 1.66.0 + 1.67.0 diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/pom.xml b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/pom.xml index a0d1ea63b0f4..07e2fb0d52c5 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/pom.xml +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-networkconnectivity-v1alpha1 - 0.72.0 + 0.73.0 proto-google-cloud-networkconnectivity-v1alpha1 Proto library for google-cloud-networkconnectivity com.google.cloud google-cloud-networkconnectivity-parent - 1.66.0 + 1.67.0 diff --git a/java-networkservices/CHANGELOG.md b/java-networkservices/CHANGELOG.md index 3b5def207c6f..b18f23ce9b01 100644 --- a/java-networkservices/CHANGELOG.md +++ b/java-networkservices/CHANGELOG.md @@ -1,5 +1,16 @@ # Changelog +## 0.24.0 (2025-07-11) + +### Features + +* Add isolation support to prevent cross-region overflow by adding a new field "isolation_config" to message "ServiceLbPolicy" ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.23.0 (2025-06-25) ### Features diff --git a/java-networkservices/README.md b/java-networkservices/README.md index aeb6a8159dd6..3e9e3ce77a0b 100644 --- a/java-networkservices/README.md +++ b/java-networkservices/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-networkservices - 0.22.0 + 0.23.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-networkservices:0.22.0' +implementation 'com.google.cloud:google-cloud-networkservices:0.23.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-networkservices" % "0.22.0" +libraryDependencies += "com.google.cloud" % "google-cloud-networkservices" % "0.23.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-networkservices.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkservices/0.22.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkservices/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-networkservices/google-cloud-networkservices-bom/pom.xml b/java-networkservices/google-cloud-networkservices-bom/pom.xml index a09a2b66b2c1..53cc55cd1269 100644 --- a/java-networkservices/google-cloud-networkservices-bom/pom.xml +++ b/java-networkservices/google-cloud-networkservices-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-networkservices-bom - 0.23.0 + 0.24.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-networkservices - 0.23.0 + 0.24.0 com.google.api.grpc grpc-google-cloud-networkservices-v1 - 0.23.0 + 0.24.0 com.google.api.grpc proto-google-cloud-networkservices-v1 - 0.23.0 + 0.24.0 diff --git a/java-networkservices/google-cloud-networkservices/pom.xml b/java-networkservices/google-cloud-networkservices/pom.xml index 18c7d064d46e..d41bf37cab29 100644 --- a/java-networkservices/google-cloud-networkservices/pom.xml +++ b/java-networkservices/google-cloud-networkservices/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-networkservices - 0.23.0 + 0.24.0 jar Google Network Services API Network Services API 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. com.google.cloud google-cloud-networkservices-parent - 0.23.0 + 0.24.0 google-cloud-networkservices diff --git a/java-networkservices/google-cloud-networkservices/src/main/resources/META-INF/native-image/com.google.cloud.networkservices.v1/reflect-config.json b/java-networkservices/google-cloud-networkservices/src/main/resources/META-INF/native-image/com.google.cloud.networkservices.v1/reflect-config.json index 73008a954385..fc4e6413fa69 100644 --- a/java-networkservices/google-cloud-networkservices/src/main/resources/META-INF/native-image/com.google.cloud.networkservices.v1/reflect-config.json +++ b/java-networkservices/google-cloud-networkservices/src/main/resources/META-INF/native-image/com.google.cloud.networkservices.v1/reflect-config.json @@ -2897,6 +2897,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkservices.v1.ServiceLbPolicy$IsolationConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.ServiceLbPolicy$IsolationConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.ServiceLbPolicy$IsolationGranularity", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.ServiceLbPolicy$IsolationMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkservices.v1.ServiceLbPolicy$LoadBalancingAlgorithm", "queryAllDeclaredConstructors": true, diff --git a/java-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/NetworkServicesClientHttpJsonTest.java b/java-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/NetworkServicesClientHttpJsonTest.java index 1f90e039550e..068177836a39 100644 --- a/java-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/NetworkServicesClientHttpJsonTest.java +++ b/java-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/NetworkServicesClientHttpJsonTest.java @@ -5208,6 +5208,7 @@ public void getServiceLbPolicyTest() throws Exception { .setDescription("description-1724546052") .setAutoCapacityDrain(ServiceLbPolicy.AutoCapacityDrain.newBuilder().build()) .setFailoverConfig(ServiceLbPolicy.FailoverConfig.newBuilder().build()) + .setIsolationConfig(ServiceLbPolicy.IsolationConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -5261,6 +5262,7 @@ public void getServiceLbPolicyTest2() throws Exception { .setDescription("description-1724546052") .setAutoCapacityDrain(ServiceLbPolicy.AutoCapacityDrain.newBuilder().build()) .setFailoverConfig(ServiceLbPolicy.FailoverConfig.newBuilder().build()) + .setIsolationConfig(ServiceLbPolicy.IsolationConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -5314,6 +5316,7 @@ public void createServiceLbPolicyTest() throws Exception { .setDescription("description-1724546052") .setAutoCapacityDrain(ServiceLbPolicy.AutoCapacityDrain.newBuilder().build()) .setFailoverConfig(ServiceLbPolicy.FailoverConfig.newBuilder().build()) + .setIsolationConfig(ServiceLbPolicy.IsolationConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -5375,6 +5378,7 @@ public void createServiceLbPolicyTest2() throws Exception { .setDescription("description-1724546052") .setAutoCapacityDrain(ServiceLbPolicy.AutoCapacityDrain.newBuilder().build()) .setFailoverConfig(ServiceLbPolicy.FailoverConfig.newBuilder().build()) + .setIsolationConfig(ServiceLbPolicy.IsolationConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -5436,6 +5440,7 @@ public void updateServiceLbPolicyTest() throws Exception { .setDescription("description-1724546052") .setAutoCapacityDrain(ServiceLbPolicy.AutoCapacityDrain.newBuilder().build()) .setFailoverConfig(ServiceLbPolicy.FailoverConfig.newBuilder().build()) + .setIsolationConfig(ServiceLbPolicy.IsolationConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -5455,6 +5460,7 @@ public void updateServiceLbPolicyTest() throws Exception { .setDescription("description-1724546052") .setAutoCapacityDrain(ServiceLbPolicy.AutoCapacityDrain.newBuilder().build()) .setFailoverConfig(ServiceLbPolicy.FailoverConfig.newBuilder().build()) + .setIsolationConfig(ServiceLbPolicy.IsolationConfig.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -5496,6 +5502,7 @@ public void updateServiceLbPolicyExceptionTest() throws Exception { .setDescription("description-1724546052") .setAutoCapacityDrain(ServiceLbPolicy.AutoCapacityDrain.newBuilder().build()) .setFailoverConfig(ServiceLbPolicy.FailoverConfig.newBuilder().build()) + .setIsolationConfig(ServiceLbPolicy.IsolationConfig.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateServiceLbPolicyAsync(serviceLbPolicy, updateMask).get(); diff --git a/java-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/NetworkServicesClientTest.java b/java-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/NetworkServicesClientTest.java index 74ea7180e2b1..cc0b17fb75fd 100644 --- a/java-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/NetworkServicesClientTest.java +++ b/java-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/NetworkServicesClientTest.java @@ -4663,6 +4663,7 @@ public void getServiceLbPolicyTest() throws Exception { .setDescription("description-1724546052") .setAutoCapacityDrain(ServiceLbPolicy.AutoCapacityDrain.newBuilder().build()) .setFailoverConfig(ServiceLbPolicy.FailoverConfig.newBuilder().build()) + .setIsolationConfig(ServiceLbPolicy.IsolationConfig.newBuilder().build()) .build(); mockNetworkServices.addResponse(expectedResponse); @@ -4710,6 +4711,7 @@ public void getServiceLbPolicyTest2() throws Exception { .setDescription("description-1724546052") .setAutoCapacityDrain(ServiceLbPolicy.AutoCapacityDrain.newBuilder().build()) .setFailoverConfig(ServiceLbPolicy.FailoverConfig.newBuilder().build()) + .setIsolationConfig(ServiceLbPolicy.IsolationConfig.newBuilder().build()) .build(); mockNetworkServices.addResponse(expectedResponse); @@ -4755,6 +4757,7 @@ public void createServiceLbPolicyTest() throws Exception { .setDescription("description-1724546052") .setAutoCapacityDrain(ServiceLbPolicy.AutoCapacityDrain.newBuilder().build()) .setFailoverConfig(ServiceLbPolicy.FailoverConfig.newBuilder().build()) + .setIsolationConfig(ServiceLbPolicy.IsolationConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -4816,6 +4819,7 @@ public void createServiceLbPolicyTest2() throws Exception { .setDescription("description-1724546052") .setAutoCapacityDrain(ServiceLbPolicy.AutoCapacityDrain.newBuilder().build()) .setFailoverConfig(ServiceLbPolicy.FailoverConfig.newBuilder().build()) + .setIsolationConfig(ServiceLbPolicy.IsolationConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -4877,6 +4881,7 @@ public void updateServiceLbPolicyTest() throws Exception { .setDescription("description-1724546052") .setAutoCapacityDrain(ServiceLbPolicy.AutoCapacityDrain.newBuilder().build()) .setFailoverConfig(ServiceLbPolicy.FailoverConfig.newBuilder().build()) + .setIsolationConfig(ServiceLbPolicy.IsolationConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() diff --git a/java-networkservices/grpc-google-cloud-networkservices-v1/pom.xml b/java-networkservices/grpc-google-cloud-networkservices-v1/pom.xml index 6585ee227625..548b2dd9c5e2 100644 --- a/java-networkservices/grpc-google-cloud-networkservices-v1/pom.xml +++ b/java-networkservices/grpc-google-cloud-networkservices-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-networkservices-v1 - 0.23.0 + 0.24.0 grpc-google-cloud-networkservices-v1 GRPC library for google-cloud-networkservices com.google.cloud google-cloud-networkservices-parent - 0.23.0 + 0.24.0 diff --git a/java-networkservices/pom.xml b/java-networkservices/pom.xml index a3324a0da862..6c41d82fb791 100644 --- a/java-networkservices/pom.xml +++ b/java-networkservices/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-networkservices-parent pom - 0.23.0 + 0.24.0 Google Network Services API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-networkservices - 0.23.0 + 0.24.0 com.google.api.grpc grpc-google-cloud-networkservices-v1 - 0.23.0 + 0.24.0 com.google.api.grpc proto-google-cloud-networkservices-v1 - 0.23.0 + 0.24.0 diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/pom.xml b/java-networkservices/proto-google-cloud-networkservices-v1/pom.xml index 38cd6d77a0e4..85da7df2f79f 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/pom.xml +++ b/java-networkservices/proto-google-cloud-networkservices-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-networkservices-v1 - 0.23.0 + 0.24.0 proto-google-cloud-networkservices-v1 Proto library for google-cloud-networkservices com.google.cloud google-cloud-networkservices-parent - 0.23.0 + 0.24.0 diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ServiceLbPolicy.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ServiceLbPolicy.java index 5b18dc5439bd..bd4a6e68379b 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ServiceLbPolicy.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ServiceLbPolicy.java @@ -303,6 +303,313 @@ private LoadBalancingAlgorithm(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.networkservices.v1.ServiceLbPolicy.LoadBalancingAlgorithm) } + /** + * + * + *
      +   * The granularity of this isolation restriction.
      +   * 
      + * + * Protobuf enum {@code google.cloud.networkservices.v1.ServiceLbPolicy.IsolationGranularity} + */ + public enum IsolationGranularity implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +     * No isolation is configured for the backend service. Traffic can overflow
      +     * based on the load balancing algorithm.
      +     * 
      + * + * ISOLATION_GRANULARITY_UNSPECIFIED = 0; + */ + ISOLATION_GRANULARITY_UNSPECIFIED(0), + /** + * + * + *
      +     * Traffic for this service will be isolated at the cloud region level.
      +     * 
      + * + * REGION = 1; + */ + REGION(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
      +     * No isolation is configured for the backend service. Traffic can overflow
      +     * based on the load balancing algorithm.
      +     * 
      + * + * ISOLATION_GRANULARITY_UNSPECIFIED = 0; + */ + public static final int ISOLATION_GRANULARITY_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +     * Traffic for this service will be isolated at the cloud region level.
      +     * 
      + * + * REGION = 1; + */ + public static final int REGION_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static IsolationGranularity 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 IsolationGranularity forNumber(int value) { + switch (value) { + case 0: + return ISOLATION_GRANULARITY_UNSPECIFIED; + case 1: + return REGION; + 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 IsolationGranularity findValueByNumber(int number) { + return IsolationGranularity.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networkservices.v1.ServiceLbPolicy.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final IsolationGranularity[] VALUES = values(); + + public static IsolationGranularity 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 IsolationGranularity(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networkservices.v1.ServiceLbPolicy.IsolationGranularity) + } + + /** + * + * + *
      +   * The mode of this isolation restriction, defining whether clients in a given
      +   * region are allowed to reach out to another region.
      +   * 
      + * + * Protobuf enum {@code google.cloud.networkservices.v1.ServiceLbPolicy.IsolationMode} + */ + public enum IsolationMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +     * No isolation mode is configured for the backend service.
      +     * 
      + * + * ISOLATION_MODE_UNSPECIFIED = 0; + */ + ISOLATION_MODE_UNSPECIFIED(0), + /** + * + * + *
      +     * Traffic will be sent to the nearest region.
      +     * 
      + * + * NEAREST = 1; + */ + NEAREST(1), + /** + * + * + *
      +     * Traffic will fail if no serving backends are available in the same region
      +     * as the load balancer.
      +     * 
      + * + * STRICT = 2; + */ + STRICT(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
      +     * No isolation mode is configured for the backend service.
      +     * 
      + * + * ISOLATION_MODE_UNSPECIFIED = 0; + */ + public static final int ISOLATION_MODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +     * Traffic will be sent to the nearest region.
      +     * 
      + * + * NEAREST = 1; + */ + public static final int NEAREST_VALUE = 1; + + /** + * + * + *
      +     * Traffic will fail if no serving backends are available in the same region
      +     * as the load balancer.
      +     * 
      + * + * STRICT = 2; + */ + public static final int STRICT_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 IsolationMode 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 IsolationMode forNumber(int value) { + switch (value) { + case 0: + return ISOLATION_MODE_UNSPECIFIED; + case 1: + return NEAREST; + case 2: + return STRICT; + 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 IsolationMode findValueByNumber(int number) { + return IsolationMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networkservices.v1.ServiceLbPolicy.getDescriptor() + .getEnumTypes() + .get(2); + } + + private static final IsolationMode[] VALUES = values(); + + public static IsolationMode 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 IsolationMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networkservices.v1.ServiceLbPolicy.IsolationMode) + } + public interface AutoCapacityDrainOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkservices.v1.ServiceLbPolicy.AutoCapacityDrain) @@ -1334,50 +1641,931 @@ public Builder mergeFrom( private int bitField0_; - private int failoverHealthThreshold_; + private int failoverHealthThreshold_; + + /** + * + * + *
      +       * Optional. The percentage threshold that a load balancer will begin to
      +       * send traffic to failover backends. If the percentage of endpoints in a
      +       * MIG/NEG is smaller than this value, traffic would be sent to failover
      +       * backends if possible. This field should be set to a value between 1
      +       * and 99. The default value is 50 for Global external HTTP(S) load balancer
      +       * (classic) and Proxyless service mesh, and 70 for others.
      +       * 
      + * + * int32 failover_health_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The failoverHealthThreshold. + */ + @java.lang.Override + public int getFailoverHealthThreshold() { + return failoverHealthThreshold_; + } + + /** + * + * + *
      +       * Optional. The percentage threshold that a load balancer will begin to
      +       * send traffic to failover backends. If the percentage of endpoints in a
      +       * MIG/NEG is smaller than this value, traffic would be sent to failover
      +       * backends if possible. This field should be set to a value between 1
      +       * and 99. The default value is 50 for Global external HTTP(S) load balancer
      +       * (classic) and Proxyless service mesh, and 70 for others.
      +       * 
      + * + * int32 failover_health_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The failoverHealthThreshold to set. + * @return This builder for chaining. + */ + public Builder setFailoverHealthThreshold(int value) { + + failoverHealthThreshold_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The percentage threshold that a load balancer will begin to
      +       * send traffic to failover backends. If the percentage of endpoints in a
      +       * MIG/NEG is smaller than this value, traffic would be sent to failover
      +       * backends if possible. This field should be set to a value between 1
      +       * and 99. The default value is 50 for Global external HTTP(S) load balancer
      +       * (classic) and Proxyless service mesh, and 70 for others.
      +       * 
      + * + * int32 failover_health_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFailoverHealthThreshold() { + bitField0_ = (bitField0_ & ~0x00000001); + failoverHealthThreshold_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkservices.v1.ServiceLbPolicy.FailoverConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkservices.v1.ServiceLbPolicy.FailoverConfig) + private static final com.google.cloud.networkservices.v1.ServiceLbPolicy.FailoverConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkservices.v1.ServiceLbPolicy.FailoverConfig(); + } + + public static com.google.cloud.networkservices.v1.ServiceLbPolicy.FailoverConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FailoverConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.ServiceLbPolicy.FailoverConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface IsolationConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Optional. The isolation granularity of the load balancer.
      +     * 
      + * + * + * .google.cloud.networkservices.v1.ServiceLbPolicy.IsolationGranularity isolation_granularity = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for isolationGranularity. + */ + int getIsolationGranularityValue(); + + /** + * + * + *
      +     * Optional. The isolation granularity of the load balancer.
      +     * 
      + * + * + * .google.cloud.networkservices.v1.ServiceLbPolicy.IsolationGranularity isolation_granularity = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The isolationGranularity. + */ + com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationGranularity + getIsolationGranularity(); + + /** + * + * + *
      +     * Optional. The isolation mode of the load balancer.
      +     * 
      + * + * + * .google.cloud.networkservices.v1.ServiceLbPolicy.IsolationMode isolation_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for isolationMode. + */ + int getIsolationModeValue(); + + /** + * + * + *
      +     * Optional. The isolation mode of the load balancer.
      +     * 
      + * + * + * .google.cloud.networkservices.v1.ServiceLbPolicy.IsolationMode isolation_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The isolationMode. + */ + com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationMode getIsolationMode(); + } + + /** + * + * + *
      +   * Configuration to provide isolation support for the associated Backend
      +   * Service.
      +   * 
      + * + * Protobuf type {@code google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig} + */ + public static final class IsolationConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig) + IsolationConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use IsolationConfig.newBuilder() to construct. + private IsolationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IsolationConfig() { + isolationGranularity_ = 0; + isolationMode_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IsolationConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.ServiceLbPolicyProto + .internal_static_google_cloud_networkservices_v1_ServiceLbPolicy_IsolationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.ServiceLbPolicyProto + .internal_static_google_cloud_networkservices_v1_ServiceLbPolicy_IsolationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig.class, + com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig.Builder.class); + } + + public static final int ISOLATION_GRANULARITY_FIELD_NUMBER = 1; + private int isolationGranularity_ = 0; + + /** + * + * + *
      +     * Optional. The isolation granularity of the load balancer.
      +     * 
      + * + * + * .google.cloud.networkservices.v1.ServiceLbPolicy.IsolationGranularity isolation_granularity = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for isolationGranularity. + */ + @java.lang.Override + public int getIsolationGranularityValue() { + return isolationGranularity_; + } + + /** + * + * + *
      +     * Optional. The isolation granularity of the load balancer.
      +     * 
      + * + * + * .google.cloud.networkservices.v1.ServiceLbPolicy.IsolationGranularity isolation_granularity = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The isolationGranularity. + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationGranularity + getIsolationGranularity() { + com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationGranularity result = + com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationGranularity.forNumber( + isolationGranularity_); + return result == null + ? com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationGranularity.UNRECOGNIZED + : result; + } + + public static final int ISOLATION_MODE_FIELD_NUMBER = 2; + private int isolationMode_ = 0; + + /** + * + * + *
      +     * Optional. The isolation mode of the load balancer.
      +     * 
      + * + * + * .google.cloud.networkservices.v1.ServiceLbPolicy.IsolationMode isolation_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for isolationMode. + */ + @java.lang.Override + public int getIsolationModeValue() { + return isolationMode_; + } + + /** + * + * + *
      +     * Optional. The isolation mode of the load balancer.
      +     * 
      + * + * + * .google.cloud.networkservices.v1.ServiceLbPolicy.IsolationMode isolation_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The isolationMode. + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationMode getIsolationMode() { + com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationMode result = + com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationMode.forNumber( + isolationMode_); + return result == null + ? com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationMode.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 (isolationGranularity_ + != com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationGranularity + .ISOLATION_GRANULARITY_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, isolationGranularity_); + } + if (isolationMode_ + != com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationMode + .ISOLATION_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, isolationMode_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (isolationGranularity_ + != com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationGranularity + .ISOLATION_GRANULARITY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, isolationGranularity_); + } + if (isolationMode_ + != com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationMode + .ISOLATION_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, isolationMode_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig)) { + return super.equals(obj); + } + com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig other = + (com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig) obj; + + if (isolationGranularity_ != other.isolationGranularity_) return false; + if (isolationMode_ != other.isolationMode_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ISOLATION_GRANULARITY_FIELD_NUMBER; + hash = (53 * hash) + isolationGranularity_; + hash = (37 * hash) + ISOLATION_MODE_FIELD_NUMBER; + hash = (53 * hash) + isolationMode_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * Configuration to provide isolation support for the associated Backend
      +     * Service.
      +     * 
      + * + * Protobuf type {@code google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig) + com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.ServiceLbPolicyProto + .internal_static_google_cloud_networkservices_v1_ServiceLbPolicy_IsolationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.ServiceLbPolicyProto + .internal_static_google_cloud_networkservices_v1_ServiceLbPolicy_IsolationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig.class, + com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig.Builder.class); + } + + // Construct using + // com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + isolationGranularity_ = 0; + isolationMode_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkservices.v1.ServiceLbPolicyProto + .internal_static_google_cloud_networkservices_v1_ServiceLbPolicy_IsolationConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig + getDefaultInstanceForType() { + return com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig build() { + com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig buildPartial() { + com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig result = + new com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.isolationGranularity_ = isolationGranularity_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.isolationMode_ = isolationMode_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig) { + return mergeFrom( + (com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig other) { + if (other + == com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig + .getDefaultInstance()) return this; + if (other.isolationGranularity_ != 0) { + setIsolationGranularityValue(other.getIsolationGranularityValue()); + } + if (other.isolationMode_ != 0) { + setIsolationModeValue(other.getIsolationModeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + isolationGranularity_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + isolationMode_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int isolationGranularity_ = 0; + + /** + * + * + *
      +       * Optional. The isolation granularity of the load balancer.
      +       * 
      + * + * + * .google.cloud.networkservices.v1.ServiceLbPolicy.IsolationGranularity isolation_granularity = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for isolationGranularity. + */ + @java.lang.Override + public int getIsolationGranularityValue() { + return isolationGranularity_; + } + + /** + * + * + *
      +       * Optional. The isolation granularity of the load balancer.
      +       * 
      + * + * + * .google.cloud.networkservices.v1.ServiceLbPolicy.IsolationGranularity isolation_granularity = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for isolationGranularity to set. + * @return This builder for chaining. + */ + public Builder setIsolationGranularityValue(int value) { + isolationGranularity_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The isolation granularity of the load balancer.
      +       * 
      + * + * + * .google.cloud.networkservices.v1.ServiceLbPolicy.IsolationGranularity isolation_granularity = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The isolationGranularity. + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationGranularity + getIsolationGranularity() { + com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationGranularity result = + com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationGranularity.forNumber( + isolationGranularity_); + return result == null + ? com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationGranularity.UNRECOGNIZED + : result; + } + + /** + * + * + *
      +       * Optional. The isolation granularity of the load balancer.
      +       * 
      + * + * + * .google.cloud.networkservices.v1.ServiceLbPolicy.IsolationGranularity isolation_granularity = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The isolationGranularity to set. + * @return This builder for chaining. + */ + public Builder setIsolationGranularity( + com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationGranularity value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + isolationGranularity_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The isolation granularity of the load balancer.
      +       * 
      + * + * + * .google.cloud.networkservices.v1.ServiceLbPolicy.IsolationGranularity isolation_granularity = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearIsolationGranularity() { + bitField0_ = (bitField0_ & ~0x00000001); + isolationGranularity_ = 0; + onChanged(); + return this; + } + + private int isolationMode_ = 0; /** * * *
      -       * Optional. The percentage threshold that a load balancer will begin to
      -       * send traffic to failover backends. If the percentage of endpoints in a
      -       * MIG/NEG is smaller than this value, traffic would be sent to failover
      -       * backends if possible. This field should be set to a value between 1
      -       * and 99. The default value is 50 for Global external HTTP(S) load balancer
      -       * (classic) and Proxyless service mesh, and 70 for others.
      +       * Optional. The isolation mode of the load balancer.
              * 
      * - * int32 failover_health_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.networkservices.v1.ServiceLbPolicy.IsolationMode isolation_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return The failoverHealthThreshold. + * @return The enum numeric value on the wire for isolationMode. */ @java.lang.Override - public int getFailoverHealthThreshold() { - return failoverHealthThreshold_; + public int getIsolationModeValue() { + return isolationMode_; } /** * * *
      -       * Optional. The percentage threshold that a load balancer will begin to
      -       * send traffic to failover backends. If the percentage of endpoints in a
      -       * MIG/NEG is smaller than this value, traffic would be sent to failover
      -       * backends if possible. This field should be set to a value between 1
      -       * and 99. The default value is 50 for Global external HTTP(S) load balancer
      -       * (classic) and Proxyless service mesh, and 70 for others.
      +       * Optional. The isolation mode of the load balancer.
              * 
      * - * int32 failover_health_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.networkservices.v1.ServiceLbPolicy.IsolationMode isolation_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @param value The failoverHealthThreshold to set. + * @param value The enum numeric value on the wire for isolationMode to set. * @return This builder for chaining. */ - public Builder setFailoverHealthThreshold(int value) { + public Builder setIsolationModeValue(int value) { + isolationMode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - failoverHealthThreshold_ = value; - bitField0_ |= 0x00000001; + /** + * + * + *
      +       * Optional. The isolation mode of the load balancer.
      +       * 
      + * + * + * .google.cloud.networkservices.v1.ServiceLbPolicy.IsolationMode isolation_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The isolationMode. + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationMode getIsolationMode() { + com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationMode result = + com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationMode.forNumber( + isolationMode_); + return result == null + ? com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationMode.UNRECOGNIZED + : result; + } + + /** + * + * + *
      +       * Optional. The isolation mode of the load balancer.
      +       * 
      + * + * + * .google.cloud.networkservices.v1.ServiceLbPolicy.IsolationMode isolation_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The isolationMode to set. + * @return This builder for chaining. + */ + public Builder setIsolationMode( + com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + isolationMode_ = value.getNumber(); onChanged(); return this; } @@ -1386,21 +2574,18 @@ public Builder setFailoverHealthThreshold(int value) { * * *
      -       * Optional. The percentage threshold that a load balancer will begin to
      -       * send traffic to failover backends. If the percentage of endpoints in a
      -       * MIG/NEG is smaller than this value, traffic would be sent to failover
      -       * backends if possible. This field should be set to a value between 1
      -       * and 99. The default value is 50 for Global external HTTP(S) load balancer
      -       * (classic) and Proxyless service mesh, and 70 for others.
      +       * Optional. The isolation mode of the load balancer.
              * 
      * - * int32 failover_health_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.networkservices.v1.ServiceLbPolicy.IsolationMode isolation_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return This builder for chaining. */ - public Builder clearFailoverHealthThreshold() { - bitField0_ = (bitField0_ & ~0x00000001); - failoverHealthThreshold_ = 0; + public Builder clearIsolationMode() { + bitField0_ = (bitField0_ & ~0x00000002); + isolationMode_ = 0; onChanged(); return this; } @@ -1417,26 +2602,26 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkservices.v1.ServiceLbPolicy.FailoverConfig) + // @@protoc_insertion_point(builder_scope:google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig) } - // @@protoc_insertion_point(class_scope:google.cloud.networkservices.v1.ServiceLbPolicy.FailoverConfig) - private static final com.google.cloud.networkservices.v1.ServiceLbPolicy.FailoverConfig + // @@protoc_insertion_point(class_scope:google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig) + private static final com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.networkservices.v1.ServiceLbPolicy.FailoverConfig(); + DEFAULT_INSTANCE = new com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig(); } - public static com.google.cloud.networkservices.v1.ServiceLbPolicy.FailoverConfig + public static com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig 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 FailoverConfig parsePartialFrom( + public IsolationConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1456,17 +2641,17 @@ public FailoverConfig 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.cloud.networkservices.v1.ServiceLbPolicy.FailoverConfig + public com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -1965,6 +3150,69 @@ public com.google.cloud.networkservices.v1.ServiceLbPolicy.FailoverConfig getFai : failoverConfig_; } + public static final int ISOLATION_CONFIG_FIELD_NUMBER = 11; + private com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig isolationConfig_; + + /** + * + * + *
      +   * Optional. Configuration to provide isolation support for the associated
      +   * Backend Service.
      +   * 
      + * + * + * .google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig isolation_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the isolationConfig field is set. + */ + @java.lang.Override + public boolean hasIsolationConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
      +   * Optional. Configuration to provide isolation support for the associated
      +   * Backend Service.
      +   * 
      + * + * + * .google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig isolation_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The isolationConfig. + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig getIsolationConfig() { + return isolationConfig_ == null + ? com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig.getDefaultInstance() + : isolationConfig_; + } + + /** + * + * + *
      +   * Optional. Configuration to provide isolation support for the associated
      +   * Backend Service.
      +   * 
      + * + * + * .google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig isolation_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfigOrBuilder + getIsolationConfigOrBuilder() { + return isolationConfig_ == null + ? com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig.getDefaultInstance() + : isolationConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2005,6 +3253,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(10, getFailoverConfig()); } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(11, getIsolationConfig()); + } getUnknownFields().writeTo(output); } @@ -2048,6 +3299,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getFailoverConfig()); } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getIsolationConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2084,6 +3338,10 @@ public boolean equals(final java.lang.Object obj) { if (hasFailoverConfig()) { if (!getFailoverConfig().equals(other.getFailoverConfig())) return false; } + if (hasIsolationConfig() != other.hasIsolationConfig()) return false; + if (hasIsolationConfig()) { + if (!getIsolationConfig().equals(other.getIsolationConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2121,6 +3379,10 @@ public int hashCode() { hash = (37 * hash) + FAILOVER_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getFailoverConfig().hashCode(); } + if (hasIsolationConfig()) { + hash = (37 * hash) + ISOLATION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getIsolationConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2289,6 +3551,7 @@ private void maybeForceBuilderInitialization() { getUpdateTimeFieldBuilder(); getAutoCapacityDrainFieldBuilder(); getFailoverConfigFieldBuilder(); + getIsolationConfigFieldBuilder(); } } @@ -2320,6 +3583,11 @@ public Builder clear() { failoverConfigBuilder_.dispose(); failoverConfigBuilder_ = null; } + isolationConfig_ = null; + if (isolationConfigBuilder_ != null) { + isolationConfigBuilder_.dispose(); + isolationConfigBuilder_ = null; + } return this; } @@ -2390,6 +3658,11 @@ private void buildPartial0(com.google.cloud.networkservices.v1.ServiceLbPolicy r failoverConfigBuilder_ == null ? failoverConfig_ : failoverConfigBuilder_.build(); to_bitField0_ |= 0x00000008; } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.isolationConfig_ = + isolationConfigBuilder_ == null ? isolationConfig_ : isolationConfigBuilder_.build(); + to_bitField0_ |= 0x00000010; + } result.bitField0_ |= to_bitField0_; } @@ -2466,6 +3739,9 @@ public Builder mergeFrom(com.google.cloud.networkservices.v1.ServiceLbPolicy oth if (other.hasFailoverConfig()) { mergeFailoverConfig(other.getFailoverConfig()); } + if (other.hasIsolationConfig()) { + mergeIsolationConfig(other.getIsolationConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2547,6 +3823,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; break; } // case 82 + case 90: + { + input.readMessage(getIsolationConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 90 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3964,6 +5246,238 @@ public Builder clearFailoverConfig() { return failoverConfigBuilder_; } + private com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig isolationConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig, + com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig.Builder, + com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfigOrBuilder> + isolationConfigBuilder_; + + /** + * + * + *
      +     * Optional. Configuration to provide isolation support for the associated
      +     * Backend Service.
      +     * 
      + * + * + * .google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig isolation_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the isolationConfig field is set. + */ + public boolean hasIsolationConfig() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
      +     * Optional. Configuration to provide isolation support for the associated
      +     * Backend Service.
      +     * 
      + * + * + * .google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig isolation_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The isolationConfig. + */ + public com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig + getIsolationConfig() { + if (isolationConfigBuilder_ == null) { + return isolationConfig_ == null + ? com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig + .getDefaultInstance() + : isolationConfig_; + } else { + return isolationConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. Configuration to provide isolation support for the associated
      +     * Backend Service.
      +     * 
      + * + * + * .google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig isolation_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIsolationConfig( + com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig value) { + if (isolationConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + isolationConfig_ = value; + } else { + isolationConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Configuration to provide isolation support for the associated
      +     * Backend Service.
      +     * 
      + * + * + * .google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig isolation_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIsolationConfig( + com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig.Builder + builderForValue) { + if (isolationConfigBuilder_ == null) { + isolationConfig_ = builderForValue.build(); + } else { + isolationConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Configuration to provide isolation support for the associated
      +     * Backend Service.
      +     * 
      + * + * + * .google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig isolation_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeIsolationConfig( + com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig value) { + if (isolationConfigBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && isolationConfig_ != null + && isolationConfig_ + != com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig + .getDefaultInstance()) { + getIsolationConfigBuilder().mergeFrom(value); + } else { + isolationConfig_ = value; + } + } else { + isolationConfigBuilder_.mergeFrom(value); + } + if (isolationConfig_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Configuration to provide isolation support for the associated
      +     * Backend Service.
      +     * 
      + * + * + * .google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig isolation_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearIsolationConfig() { + bitField0_ = (bitField0_ & ~0x00000100); + isolationConfig_ = null; + if (isolationConfigBuilder_ != null) { + isolationConfigBuilder_.dispose(); + isolationConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Configuration to provide isolation support for the associated
      +     * Backend Service.
      +     * 
      + * + * + * .google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig isolation_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig.Builder + getIsolationConfigBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getIsolationConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Configuration to provide isolation support for the associated
      +     * Backend Service.
      +     * 
      + * + * + * .google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig isolation_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfigOrBuilder + getIsolationConfigOrBuilder() { + if (isolationConfigBuilder_ != null) { + return isolationConfigBuilder_.getMessageOrBuilder(); + } else { + return isolationConfig_ == null + ? com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig + .getDefaultInstance() + : isolationConfig_; + } + } + + /** + * + * + *
      +     * Optional. Configuration to provide isolation support for the associated
      +     * Backend Service.
      +     * 
      + * + * + * .google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig isolation_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig, + com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig.Builder, + com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfigOrBuilder> + getIsolationConfigFieldBuilder() { + if (isolationConfigBuilder_ == null) { + isolationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig, + com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig.Builder, + com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfigOrBuilder>( + getIsolationConfig(), getParentForChildren(), isClean()); + isolationConfig_ = null; + } + return isolationConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ServiceLbPolicyOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ServiceLbPolicyOrBuilder.java index 0a69f57991cb..28896f303e06 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ServiceLbPolicyOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ServiceLbPolicyOrBuilder.java @@ -346,4 +346,51 @@ java.lang.String getLabelsOrDefault( */ com.google.cloud.networkservices.v1.ServiceLbPolicy.FailoverConfigOrBuilder getFailoverConfigOrBuilder(); + + /** + * + * + *
      +   * Optional. Configuration to provide isolation support for the associated
      +   * Backend Service.
      +   * 
      + * + * + * .google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig isolation_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the isolationConfig field is set. + */ + boolean hasIsolationConfig(); + + /** + * + * + *
      +   * Optional. Configuration to provide isolation support for the associated
      +   * Backend Service.
      +   * 
      + * + * + * .google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig isolation_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The isolationConfig. + */ + com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig getIsolationConfig(); + + /** + * + * + *
      +   * Optional. Configuration to provide isolation support for the associated
      +   * Backend Service.
      +   * 
      + * + * + * .google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig isolation_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfigOrBuilder + getIsolationConfigOrBuilder(); } diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ServiceLbPolicyProto.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ServiceLbPolicyProto.java index 2784ae4694f8..f4fbe72cd372 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ServiceLbPolicyProto.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ServiceLbPolicyProto.java @@ -40,6 +40,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_networkservices_v1_ServiceLbPolicy_FailoverConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_networkservices_v1_ServiceLbPolicy_FailoverConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkservices_v1_ServiceLbPolicy_IsolationConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkservices_v1_ServiceLbPolicy_IsolationConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_networkservices_v1_ServiceLbPolicy_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -77,66 +81,84 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n7google/cloud/networkservices/v1/servic" - + "e_lb_policy.proto\022\037google.cloud.networks" - + "ervices.v1\032\037google/api/field_behavior.pr" - + "oto\032\031google/api/resource.proto\032 google/p" - + "rotobuf/field_mask.proto\032\037google/protobu" - + "f/timestamp.proto\"\350\007\n\017ServiceLbPolicy\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\010\0224\n\013create_time\030\002 \001(\0132\032." - + "google.protobuf.TimestampB\003\340A\003\0224\n\013update" - + "_time\030\003 \001(\0132\032.google.protobuf.TimestampB" - + "\003\340A\003\022Q\n\006labels\030\004 \003(\0132<.google.cloud.netw" - + "orkservices.v1.ServiceLbPolicy.LabelsEnt" - + "ryB\003\340A\001\022\030\n\013description\030\005 \001(\tB\003\340A\001\022n\n\030loa" - + "d_balancing_algorithm\030\006 \001(\0162G.google.clo" - + "ud.networkservices.v1.ServiceLbPolicy.Lo" - + "adBalancingAlgorithmB\003\340A\001\022d\n\023auto_capaci" - + "ty_drain\030\010 \001(\0132B.google.cloud.networkser" - + "vices.v1.ServiceLbPolicy.AutoCapacityDra" - + "inB\003\340A\001\022]\n\017failover_config\030\n \001(\0132?.googl" - + "e.cloud.networkservices.v1.ServiceLbPoli" - + "cy.FailoverConfigB\003\340A\001\032(\n\021AutoCapacityDr" - + "ain\022\023\n\006enable\030\001 \001(\010B\003\340A\001\0328\n\016FailoverConf" - + "ig\022&\n\031failover_health_threshold\030\001 \001(\005B\003\340" - + "A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" - + "\002 \001(\t:\0028\001\"\233\001\n\026LoadBalancingAlgorithm\022(\n$" - + "LOAD_BALANCING_ALGORITHM_UNSPECIFIED\020\000\022\022" - + "\n\016SPRAY_TO_WORLD\020\003\022\023\n\017SPRAY_TO_REGION\020\004\022" - + "\027\n\023WATERFALL_BY_REGION\020\005\022\025\n\021WATERFALL_BY" - + "_ZONE\020\006:\202\001\352A\177\n.networkservices.googleapi" - + "s.com/ServiceLbPolicy\022Mprojects/{project" - + "}/locations/{location}/serviceLbPolicies" - + "/{service_lb_policy}\"\215\001\n\034ListServiceLbPo" - + "liciesRequest\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\022.n" - + "etworkservices.googleapis.com/ServiceLbP" - + "olicy\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003" - + " \001(\t\"\234\001\n\035ListServiceLbPoliciesResponse\022M" - + "\n\023service_lb_policies\030\001 \003(\01320.google.clo" - + "ud.networkservices.v1.ServiceLbPolicy\022\027\n" - + "\017next_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 " - + "\003(\t\"a\n\031GetServiceLbPolicyRequest\022D\n\004name" - + "\030\001 \001(\tB6\340A\002\372A0\n.networkservices.googleap" - + "is.com/ServiceLbPolicy\"\333\001\n\034CreateService" - + "LbPolicyRequest\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\022" - + ".networkservices.googleapis.com/ServiceL" - + "bPolicy\022!\n\024service_lb_policy_id\030\002 \001(\tB\003\340" - + "A\002\022P\n\021service_lb_policy\030\003 \001(\01320.google.c" - + "loud.networkservices.v1.ServiceLbPolicyB" - + "\003\340A\002\"\246\001\n\034UpdateServiceLbPolicyRequest\0224\n" - + "\013update_mask\030\001 \001(\0132\032.google.protobuf.Fie" - + "ldMaskB\003\340A\001\022P\n\021service_lb_policy\030\002 \001(\01320" - + ".google.cloud.networkservices.v1.Service" - + "LbPolicyB\003\340A\002\"d\n\034DeleteServiceLbPolicyRe" - + "quest\022D\n\004name\030\001 \001(\tB6\340A\002\372A0\n.networkserv" - + "ices.googleapis.com/ServiceLbPolicyB\365\001\n#" - + "com.google.cloud.networkservices.v1B\024Ser" - + "viceLbPolicyProtoP\001ZMcloud.google.com/go" - + "/networkservices/apiv1/networkservicespb" - + ";networkservicespb\252\002\037Google.Cloud.Networ" - + "kServices.V1\312\002\037Google\\Cloud\\NetworkServi" - + "ces\\V1\352\002\"Google::Cloud::NetworkServices:" - + ":V1b\006proto3" + "\n" + + "7google/cloud/networkservices/v1/service_lb_policy.proto\022\037google.cloud.networks" + + "ervices.v1\032\037google/api/field_behavior.proto\032\031google/api/resource.proto\032" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\272\013\n" + + "\017ServiceLbPolicy\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\0224\n" + + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022Q\n" + + "\006labels\030\004 \003(\0132<.google.cloud.netw" + + "orkservices.v1.ServiceLbPolicy.LabelsEntryB\003\340A\001\022\030\n" + + "\013description\030\005 \001(\tB\003\340A\001\022n\n" + + "\030load_balancing_algorithm\030\006 \001(\0162G.google.clo" + + "ud.networkservices.v1.ServiceLbPolicy.LoadBalancingAlgorithmB\003\340A\001\022d\n" + + "\023auto_capacity_drain\030\010 \001(\0132B.google.cloud.networkser" + + "vices.v1.ServiceLbPolicy.AutoCapacityDrainB\003\340A\001\022]\n" + + "\017failover_config\030\n" + + " \001(\0132?.googl" + + "e.cloud.networkservices.v1.ServiceLbPolicy.FailoverConfigB\003\340A\001\022_\n" + + "\020isolation_config\030\013 \001(\0132@.google.cloud.networkservices." + + "v1.ServiceLbPolicy.IsolationConfigB\003\340A\001\032(\n" + + "\021AutoCapacityDrain\022\023\n" + + "\006enable\030\001 \001(\010B\003\340A\001\0328\n" + + "\016FailoverConfig\022&\n" + + "\031failover_health_threshold\030\001 \001(\005B\003\340A\001\032\331\001\n" + + "\017IsolationConfig\022i\n" + + "\025isolation_granularity\030\001 \001(\0162E.google." + + "cloud.networkservices.v1.ServiceLbPolicy.IsolationGranularityB\003\340A\001\022[\n" + + "\016isolation_mode\030\002 \001(\0162>.google.cloud.networkservice" + + "s.v1.ServiceLbPolicy.IsolationModeB\003\340A\001\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"\233\001\n" + + "\026LoadBalancingAlgorithm\022(\n" + + "$LOAD_BALANCING_ALGORITHM_UNSPECIFIED\020\000\022\022\n" + + "\016SPRAY_TO_WORLD\020\003\022\023\n" + + "\017SPRAY_TO_REGION\020\004\022\027\n" + + "\023WATERFALL_BY_REGION\020\005\022\025\n" + + "\021WATERFALL_BY_ZONE\020\006\"I\n" + + "\024IsolationGranularity\022%\n" + + "!ISOLATION_GRANULARITY_UNSPECIFIED\020\000\022\n\n" + + "\006REGION\020\001\"H\n\r" + + "IsolationMode\022\036\n" + + "\032ISOLATION_MODE_UNSPECIFIED\020\000\022\013\n" + + "\007NEAREST\020\001\022\n\n" + + "\006STRICT\020\002:\202\001\352A\177\n" + + ".networkservices.googleapis.com/ServiceLbPolicy\022Mprojects/{project}/locations/{l" + + "ocation}/serviceLbPolicies/{service_lb_policy}\"\215\001\n" + + "\034ListServiceLbPoliciesRequest\022F\n" + + "\006parent\030\001 \001(" + + "\tB6\340A\002\372A0\022.networkservices.googleapis.com/ServiceLbPolicy\022\021\n" + + "\tpage_size\030\002 \001(\005\022\022\n\n" + + "page_token\030\003 \001(\t\"\234\001\n" + + "\035ListServiceLbPoliciesResponse\022M\n" + + "\023service_lb_policies\030\001" + + " \003(\01320.google.cloud.networkservices.v1.ServiceLbPolicy\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t\"a\n" + + "\031GetServiceLbPolicyRequest\022D\n" + + "\004name\030\001 \001(\tB6\340A\002\372A0\n" + + ".networkservices.googleapis.com/ServiceLbPolicy\"\333\001\n" + + "\034CreateServiceLbPolicyRequest\022F\n" + + "\006parent\030\001 \001(" + + "\tB6\340A\002\372A0\022.networkservices.googleapis.com/ServiceLbPolicy\022!\n" + + "\024service_lb_policy_id\030\002 \001(\tB\003\340A\002\022P\n" + + "\021service_lb_policy\030\003" + + " \001(\01320.google.cloud.networkservices.v1.ServiceLbPolicyB\003\340A\002\"\246\001\n" + + "\034UpdateServiceLbPolicyRequest\0224\n" + + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022P\n" + + "\021service_lb_policy\030\002 \001(\01320.google.cloud." + + "networkservices.v1.ServiceLbPolicyB\003\340A\002\"d\n" + + "\034DeleteServiceLbPolicyRequest\022D\n" + + "\004name\030\001 \001(\tB6\340A\002\372A0\n" + + ".networkservices.googleapis.com/ServiceLbPolicyB\365\001\n" + + "#com.google.cloud.networkservices.v1B\024ServiceLbPolicyPr" + + "otoP\001ZMcloud.google.com/go/networkservices/apiv1/networkservicespb;networkservic" + + "espb\252\002\037Google.Cloud.NetworkServices.V1\312\002" + + "\037Google\\Cloud\\NetworkServices\\V1\352\002\"Googl" + + "e::Cloud::NetworkServices::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -161,6 +183,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LoadBalancingAlgorithm", "AutoCapacityDrain", "FailoverConfig", + "IsolationConfig", }); internal_static_google_cloud_networkservices_v1_ServiceLbPolicy_AutoCapacityDrain_descriptor = internal_static_google_cloud_networkservices_v1_ServiceLbPolicy_descriptor @@ -182,10 +205,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "FailoverHealthThreshold", }); - internal_static_google_cloud_networkservices_v1_ServiceLbPolicy_LabelsEntry_descriptor = + internal_static_google_cloud_networkservices_v1_ServiceLbPolicy_IsolationConfig_descriptor = internal_static_google_cloud_networkservices_v1_ServiceLbPolicy_descriptor .getNestedTypes() .get(2); + internal_static_google_cloud_networkservices_v1_ServiceLbPolicy_IsolationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkservices_v1_ServiceLbPolicy_IsolationConfig_descriptor, + new java.lang.String[] { + "IsolationGranularity", "IsolationMode", + }); + internal_static_google_cloud_networkservices_v1_ServiceLbPolicy_LabelsEntry_descriptor = + internal_static_google_cloud_networkservices_v1_ServiceLbPolicy_descriptor + .getNestedTypes() + .get(3); internal_static_google_cloud_networkservices_v1_ServiceLbPolicy_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_networkservices_v1_ServiceLbPolicy_LabelsEntry_descriptor, diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/service_lb_policy.proto b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/service_lb_policy.proto index 18d629e9ce8f..9dbfab5f1e14 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/service_lb_policy.proto +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/service_lb_policy.proto @@ -61,6 +61,17 @@ message ServiceLbPolicy { [(google.api.field_behavior) = OPTIONAL]; } + // Configuration to provide isolation support for the associated Backend + // Service. + message IsolationConfig { + // Optional. The isolation granularity of the load balancer. + IsolationGranularity isolation_granularity = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The isolation mode of the load balancer. + IsolationMode isolation_mode = 2 [(google.api.field_behavior) = OPTIONAL]; + } + // The global load balancing algorithm to be used. enum LoadBalancingAlgorithm { // The type of the loadbalancing algorithm is unspecified. @@ -86,6 +97,30 @@ message ServiceLbPolicy { WATERFALL_BY_ZONE = 6; } + // The granularity of this isolation restriction. + enum IsolationGranularity { + // No isolation is configured for the backend service. Traffic can overflow + // based on the load balancing algorithm. + ISOLATION_GRANULARITY_UNSPECIFIED = 0; + + // Traffic for this service will be isolated at the cloud region level. + REGION = 1; + } + + // The mode of this isolation restriction, defining whether clients in a given + // region are allowed to reach out to another region. + enum IsolationMode { + // No isolation mode is configured for the backend service. + ISOLATION_MODE_UNSPECIFIED = 0; + + // Traffic will be sent to the nearest region. + NEAREST = 1; + + // Traffic will fail if no serving backends are available in the same region + // as the load balancer. + STRICT = 2; + } + // Identifier. Name of the ServiceLbPolicy resource. It matches pattern // `projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}`. string name = 1 [(google.api.field_behavior) = IDENTIFIER]; @@ -117,6 +152,11 @@ message ServiceLbPolicy { // Optional. Configuration related to health based failover. FailoverConfig failover_config = 10 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configuration to provide isolation support for the associated + // Backend Service. + IsolationConfig isolation_config = 11 + [(google.api.field_behavior) = OPTIONAL]; } // Request used with the ListServiceLbPolicies method. diff --git a/java-notebooks/CHANGELOG.md b/java-notebooks/CHANGELOG.md index 96259a2b8a62..31a043949117 100644 --- a/java-notebooks/CHANGELOG.md +++ b/java-notebooks/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 1.66.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 1.65.0 (2025-06-25) ### Dependencies diff --git a/java-notebooks/README.md b/java-notebooks/README.md index 80876a93269a..1b12ffb60b9e 100644 --- a/java-notebooks/README.md +++ b/java-notebooks/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-notebooks - 1.64.0 + 1.65.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-notebooks:1.64.0' +implementation 'com.google.cloud:google-cloud-notebooks:1.65.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-notebooks" % "1.64.0" +libraryDependencies += "com.google.cloud" % "google-cloud-notebooks" % "1.65.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.64.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-notebooks/1.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-notebooks/google-cloud-notebooks-bom/pom.xml b/java-notebooks/google-cloud-notebooks-bom/pom.xml index ffa0963e72bc..dc84087f4eb9 100644 --- a/java-notebooks/google-cloud-notebooks-bom/pom.xml +++ b/java-notebooks/google-cloud-notebooks-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-notebooks-bom - 1.65.0 + 1.66.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,37 +27,37 @@ com.google.cloud google-cloud-notebooks - 1.65.0 + 1.66.0 com.google.api.grpc grpc-google-cloud-notebooks-v1beta1 - 0.72.0 + 0.73.0 com.google.api.grpc grpc-google-cloud-notebooks-v1 - 1.65.0 + 1.66.0 com.google.api.grpc grpc-google-cloud-notebooks-v2 - 1.65.0 + 1.66.0 com.google.api.grpc proto-google-cloud-notebooks-v1beta1 - 0.72.0 + 0.73.0 com.google.api.grpc proto-google-cloud-notebooks-v1 - 1.65.0 + 1.66.0 com.google.api.grpc proto-google-cloud-notebooks-v2 - 1.65.0 + 1.66.0
      diff --git a/java-notebooks/google-cloud-notebooks/pom.xml b/java-notebooks/google-cloud-notebooks/pom.xml index 6481c1d2e6d0..34597a8f76cc 100644 --- a/java-notebooks/google-cloud-notebooks/pom.xml +++ b/java-notebooks/google-cloud-notebooks/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-notebooks - 1.65.0 + 1.66.0 jar Google AI Platform Notebooks 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. com.google.cloud google-cloud-notebooks-parent - 1.65.0 + 1.66.0 google-cloud-notebooks diff --git a/java-notebooks/grpc-google-cloud-notebooks-v1/pom.xml b/java-notebooks/grpc-google-cloud-notebooks-v1/pom.xml index 12b58f75be48..00b2dc06828c 100644 --- a/java-notebooks/grpc-google-cloud-notebooks-v1/pom.xml +++ b/java-notebooks/grpc-google-cloud-notebooks-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-notebooks-v1 - 1.65.0 + 1.66.0 grpc-google-cloud-notebooks-v1 GRPC library for google-cloud-notebooks com.google.cloud google-cloud-notebooks-parent - 1.65.0 + 1.66.0 diff --git a/java-notebooks/grpc-google-cloud-notebooks-v1beta1/pom.xml b/java-notebooks/grpc-google-cloud-notebooks-v1beta1/pom.xml index 01f9e10d716c..851b4f99519b 100644 --- a/java-notebooks/grpc-google-cloud-notebooks-v1beta1/pom.xml +++ b/java-notebooks/grpc-google-cloud-notebooks-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-notebooks-v1beta1 - 0.72.0 + 0.73.0 grpc-google-cloud-notebooks-v1beta1 GRPC library for grpc-google-cloud-notebooks-v1beta1 com.google.cloud google-cloud-notebooks-parent - 1.65.0 + 1.66.0 diff --git a/java-notebooks/grpc-google-cloud-notebooks-v2/pom.xml b/java-notebooks/grpc-google-cloud-notebooks-v2/pom.xml index ab22ec245c6f..196ceee97d1c 100644 --- a/java-notebooks/grpc-google-cloud-notebooks-v2/pom.xml +++ b/java-notebooks/grpc-google-cloud-notebooks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-notebooks-v2 - 1.65.0 + 1.66.0 grpc-google-cloud-notebooks-v2 GRPC library for google-cloud-notebooks com.google.cloud google-cloud-notebooks-parent - 1.65.0 + 1.66.0 diff --git a/java-notebooks/pom.xml b/java-notebooks/pom.xml index e391eeb14621..0249a00a25e0 100644 --- a/java-notebooks/pom.xml +++ b/java-notebooks/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-notebooks-parent pom - 1.65.0 + 1.66.0 Google AI Platform Notebooks Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.cloud google-cloud-notebooks - 1.65.0 + 1.66.0 com.google.api.grpc proto-google-cloud-notebooks-v2 - 1.65.0 + 1.66.0 com.google.api.grpc grpc-google-cloud-notebooks-v2 - 1.65.0 + 1.66.0 com.google.api.grpc proto-google-cloud-notebooks-v1 - 1.65.0 + 1.66.0 com.google.api.grpc grpc-google-cloud-notebooks-v1 - 1.65.0 + 1.66.0 com.google.api.grpc proto-google-cloud-notebooks-v1beta1 - 0.72.0 + 0.73.0 com.google.api.grpc grpc-google-cloud-notebooks-v1beta1 - 0.72.0 + 0.73.0 diff --git a/java-notebooks/proto-google-cloud-notebooks-v1/pom.xml b/java-notebooks/proto-google-cloud-notebooks-v1/pom.xml index ccba80797aee..c3ce38e211bd 100644 --- a/java-notebooks/proto-google-cloud-notebooks-v1/pom.xml +++ b/java-notebooks/proto-google-cloud-notebooks-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-notebooks-v1 - 1.65.0 + 1.66.0 proto-google-cloud-notebooks-v1 Proto library for google-cloud-notebooks com.google.cloud google-cloud-notebooks-parent - 1.65.0 + 1.66.0 diff --git a/java-notebooks/proto-google-cloud-notebooks-v1beta1/pom.xml b/java-notebooks/proto-google-cloud-notebooks-v1beta1/pom.xml index c9f71b484938..9d055ce85508 100644 --- a/java-notebooks/proto-google-cloud-notebooks-v1beta1/pom.xml +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-notebooks-v1beta1 - 0.72.0 + 0.73.0 proto-google-cloud-notebooks-v1beta1 PROTO library for proto-google-cloud-notebooks-v1beta1 com.google.cloud google-cloud-notebooks-parent - 1.65.0 + 1.66.0 diff --git a/java-notebooks/proto-google-cloud-notebooks-v2/pom.xml b/java-notebooks/proto-google-cloud-notebooks-v2/pom.xml index 8ea2c83b90e0..031119601344 100644 --- a/java-notebooks/proto-google-cloud-notebooks-v2/pom.xml +++ b/java-notebooks/proto-google-cloud-notebooks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-notebooks-v2 - 1.65.0 + 1.66.0 proto-google-cloud-notebooks-v2 Proto library for google-cloud-notebooks com.google.cloud google-cloud-notebooks-parent - 1.65.0 + 1.66.0 diff --git a/java-notification/CHANGELOG.md b/java-notification/CHANGELOG.md index fa4a6061b847..a6c4f3b528f1 100644 --- a/java-notification/CHANGELOG.md +++ b/java-notification/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.186.0-beta (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.185.0-beta (2025-06-25) ### Dependencies diff --git a/java-notification/README.md b/java-notification/README.md index 68b4bf14a40b..9ee4da3a8156 100644 --- a/java-notification/README.md +++ b/java-notification/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-notification - 0.185.0-beta + 0.186.0-beta ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-notification:0.185.0-beta' +implementation 'com.google.cloud:google-cloud-notification:0.186.0-beta' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-notification" % "0.185.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-notification" % "0.186.0-beta" ``` diff --git a/java-notification/pom.xml b/java-notification/pom.xml index 233b61a2c6a7..8daa6772bda6 100644 --- a/java-notification/pom.xml +++ b/java-notification/pom.xml @@ -5,7 +5,7 @@ 4.0.0 com.google.cloud google-cloud-notification - 0.185.0-beta + 0.186.0-beta jar Google Cloud Pub/Sub Notifications for GCS @@ -15,7 +15,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml diff --git a/java-optimization/CHANGELOG.md b/java-optimization/CHANGELOG.md index 4150b7777f2f..9f49c9990918 100644 --- a/java-optimization/CHANGELOG.md +++ b/java-optimization/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 1.66.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 1.65.0 (2025-06-25) ### Dependencies diff --git a/java-optimization/README.md b/java-optimization/README.md index 1cb10a63cb06..9facbb13bf09 100644 --- a/java-optimization/README.md +++ b/java-optimization/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-optimization - 1.64.0 + 1.65.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-optimization:1.64.0' +implementation 'com.google.cloud:google-cloud-optimization:1.65.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-optimization" % "1.64.0" +libraryDependencies += "com.google.cloud" % "google-cloud-optimization" % "1.65.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.64.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-optimization/1.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-optimization/google-cloud-optimization-bom/pom.xml b/java-optimization/google-cloud-optimization-bom/pom.xml index 4088e08405dc..670b3defd2a4 100644 --- a/java-optimization/google-cloud-optimization-bom/pom.xml +++ b/java-optimization/google-cloud-optimization-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-optimization-bom - 1.65.0 + 1.66.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-optimization - 1.65.0 + 1.66.0 com.google.api.grpc grpc-google-cloud-optimization-v1 - 1.65.0 + 1.66.0 com.google.api.grpc proto-google-cloud-optimization-v1 - 1.65.0 + 1.66.0 diff --git a/java-optimization/google-cloud-optimization/pom.xml b/java-optimization/google-cloud-optimization/pom.xml index 4977de8f4669..ad9a9ad86320 100644 --- a/java-optimization/google-cloud-optimization/pom.xml +++ b/java-optimization/google-cloud-optimization/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-optimization - 1.65.0 + 1.66.0 jar Google Cloud Fleet Routing Cloud Fleet Routing 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. com.google.cloud google-cloud-optimization-parent - 1.65.0 + 1.66.0 google-cloud-optimization diff --git a/java-optimization/grpc-google-cloud-optimization-v1/pom.xml b/java-optimization/grpc-google-cloud-optimization-v1/pom.xml index ba6262fdc7bf..8d1d24ab2226 100644 --- a/java-optimization/grpc-google-cloud-optimization-v1/pom.xml +++ b/java-optimization/grpc-google-cloud-optimization-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-optimization-v1 - 1.65.0 + 1.66.0 grpc-google-cloud-optimization-v1 GRPC library for google-cloud-optimization com.google.cloud google-cloud-optimization-parent - 1.65.0 + 1.66.0 diff --git a/java-optimization/pom.xml b/java-optimization/pom.xml index 413d8d04f961..4d80c5401992 100644 --- a/java-optimization/pom.xml +++ b/java-optimization/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-optimization-parent pom - 1.65.0 + 1.66.0 Google Cloud Fleet Routing Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-optimization - 1.65.0 + 1.66.0 com.google.api.grpc grpc-google-cloud-optimization-v1 - 1.65.0 + 1.66.0 com.google.api.grpc proto-google-cloud-optimization-v1 - 1.65.0 + 1.66.0 diff --git a/java-optimization/proto-google-cloud-optimization-v1/pom.xml b/java-optimization/proto-google-cloud-optimization-v1/pom.xml index 13ebc780e3c7..f9109894160b 100644 --- a/java-optimization/proto-google-cloud-optimization-v1/pom.xml +++ b/java-optimization/proto-google-cloud-optimization-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-optimization-v1 - 1.65.0 + 1.66.0 proto-google-cloud-optimization-v1 Proto library for google-cloud-optimization com.google.cloud google-cloud-optimization-parent - 1.65.0 + 1.66.0 diff --git a/java-oracledatabase/CHANGELOG.md b/java-oracledatabase/CHANGELOG.md index 374cf4c04a74..81bd3a859de6 100644 --- a/java-oracledatabase/CHANGELOG.md +++ b/java-oracledatabase/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.17.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.16.0 (2025-06-25) ### Dependencies diff --git a/java-oracledatabase/README.md b/java-oracledatabase/README.md index f9540dea4fe5..cacfc1d671a8 100644 --- a/java-oracledatabase/README.md +++ b/java-oracledatabase/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-oracledatabase - 0.15.0 + 0.16.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-oracledatabase:0.15.0' +implementation 'com.google.cloud:google-cloud-oracledatabase:0.16.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-oracledatabase" % "0.15.0" +libraryDependencies += "com.google.cloud" % "google-cloud-oracledatabase" % "0.16.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-oracledatabase.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-oracledatabase/0.15.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-oracledatabase/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-oracledatabase/google-cloud-oracledatabase-bom/pom.xml b/java-oracledatabase/google-cloud-oracledatabase-bom/pom.xml index 840d6b1fbf31..f30b80869b3d 100644 --- a/java-oracledatabase/google-cloud-oracledatabase-bom/pom.xml +++ b/java-oracledatabase/google-cloud-oracledatabase-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-oracledatabase-bom - 0.16.0 + 0.17.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-oracledatabase - 0.16.0 + 0.17.0 com.google.api.grpc grpc-google-cloud-oracledatabase-v1 - 0.16.0 + 0.17.0 com.google.api.grpc proto-google-cloud-oracledatabase-v1 - 0.16.0 + 0.17.0 diff --git a/java-oracledatabase/google-cloud-oracledatabase/pom.xml b/java-oracledatabase/google-cloud-oracledatabase/pom.xml index df2536095bcd..cd0e9742f634 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/pom.xml +++ b/java-oracledatabase/google-cloud-oracledatabase/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-oracledatabase - 0.16.0 + 0.17.0 jar Google Oracle Database@Google Cloud API Oracle Database@Google Cloud API The Oracle Database@Google Cloud API provides a set of APIs to manage Oracle database services, such as Exadata and Autonomous Databases. com.google.cloud google-cloud-oracledatabase-parent - 0.16.0 + 0.17.0 google-cloud-oracledatabase diff --git a/java-oracledatabase/grpc-google-cloud-oracledatabase-v1/pom.xml b/java-oracledatabase/grpc-google-cloud-oracledatabase-v1/pom.xml index 5a0bd88003c6..c31473d0c84d 100644 --- a/java-oracledatabase/grpc-google-cloud-oracledatabase-v1/pom.xml +++ b/java-oracledatabase/grpc-google-cloud-oracledatabase-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-oracledatabase-v1 - 0.16.0 + 0.17.0 grpc-google-cloud-oracledatabase-v1 GRPC library for google-cloud-oracledatabase com.google.cloud google-cloud-oracledatabase-parent - 0.16.0 + 0.17.0 diff --git a/java-oracledatabase/pom.xml b/java-oracledatabase/pom.xml index 27537614eba6..931844d52e1f 100644 --- a/java-oracledatabase/pom.xml +++ b/java-oracledatabase/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-oracledatabase-parent pom - 0.16.0 + 0.17.0 Google Oracle Database@Google Cloud API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-oracledatabase - 0.16.0 + 0.17.0 com.google.api.grpc grpc-google-cloud-oracledatabase-v1 - 0.16.0 + 0.17.0 com.google.api.grpc proto-google-cloud-oracledatabase-v1 - 0.16.0 + 0.17.0 diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/pom.xml b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/pom.xml index 0e625d9ddff5..e7fd469a642b 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/pom.xml +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-oracledatabase-v1 - 0.16.0 + 0.17.0 proto-google-cloud-oracledatabase-v1 Proto library for google-cloud-oracledatabase com.google.cloud google-cloud-oracledatabase-parent - 0.16.0 + 0.17.0 diff --git a/java-orchestration-airflow/CHANGELOG.md b/java-orchestration-airflow/CHANGELOG.md index a75fa2deb56a..60202b7f20a2 100644 --- a/java-orchestration-airflow/CHANGELOG.md +++ b/java-orchestration-airflow/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 1.68.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 1.67.0 (2025-06-25) ### Dependencies diff --git a/java-orchestration-airflow/README.md b/java-orchestration-airflow/README.md index ff0776c2cfb3..d88aafb68e94 100644 --- a/java-orchestration-airflow/README.md +++ b/java-orchestration-airflow/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-orchestration-airflow - 1.66.0 + 1.67.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-orchestration-airflow:1.66.0' +implementation 'com.google.cloud:google-cloud-orchestration-airflow:1.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-orchestration-airflow" % "1.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-orchestration-airflow" % "1.67.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orchestration-airflow/1.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-orchestration-airflow/google-cloud-orchestration-airflow-bom/pom.xml b/java-orchestration-airflow/google-cloud-orchestration-airflow-bom/pom.xml index ed4a49a5da3f..335afcbb601f 100644 --- a/java-orchestration-airflow/google-cloud-orchestration-airflow-bom/pom.xml +++ b/java-orchestration-airflow/google-cloud-orchestration-airflow-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-orchestration-airflow-bom - 1.67.0 + 1.68.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-orchestration-airflow - 1.67.0 + 1.68.0 com.google.api.grpc grpc-google-cloud-orchestration-airflow-v1 - 1.67.0 + 1.68.0 com.google.api.grpc grpc-google-cloud-orchestration-airflow-v1beta1 - 0.70.0 + 0.71.0 com.google.api.grpc proto-google-cloud-orchestration-airflow-v1 - 1.67.0 + 1.68.0 com.google.api.grpc proto-google-cloud-orchestration-airflow-v1beta1 - 0.70.0 + 0.71.0 diff --git a/java-orchestration-airflow/google-cloud-orchestration-airflow/pom.xml b/java-orchestration-airflow/google-cloud-orchestration-airflow/pom.xml index b28b1de011c0..0eeef0a31985 100644 --- a/java-orchestration-airflow/google-cloud-orchestration-airflow/pom.xml +++ b/java-orchestration-airflow/google-cloud-orchestration-airflow/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-orchestration-airflow - 1.67.0 + 1.68.0 jar Google Cloud Composer Cloud Composer 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. com.google.cloud google-cloud-orchestration-airflow-parent - 1.67.0 + 1.68.0 google-cloud-orchestration-airflow diff --git a/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1/pom.xml b/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1/pom.xml index c9ee2a75d0b8..c79ce7b632f9 100644 --- a/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1/pom.xml +++ b/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-orchestration-airflow-v1 - 1.67.0 + 1.68.0 grpc-google-cloud-orchestration-airflow-v1 GRPC library for google-cloud-orchestration-airflow com.google.cloud google-cloud-orchestration-airflow-parent - 1.67.0 + 1.68.0 diff --git a/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1beta1/pom.xml b/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1beta1/pom.xml index 72e881c470c0..8bb4d3a1d94b 100644 --- a/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1beta1/pom.xml +++ b/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-orchestration-airflow-v1beta1 - 0.70.0 + 0.71.0 grpc-google-cloud-orchestration-airflow-v1beta1 GRPC library for google-cloud-orchestration-airflow com.google.cloud google-cloud-orchestration-airflow-parent - 1.67.0 + 1.68.0 diff --git a/java-orchestration-airflow/pom.xml b/java-orchestration-airflow/pom.xml index 0921f0089262..2821ca9155e5 100644 --- a/java-orchestration-airflow/pom.xml +++ b/java-orchestration-airflow/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-orchestration-airflow-parent pom - 1.67.0 + 1.68.0 Google Cloud Composer Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-orchestration-airflow - 1.67.0 + 1.68.0 com.google.api.grpc grpc-google-cloud-orchestration-airflow-v1 - 1.67.0 + 1.68.0 com.google.api.grpc grpc-google-cloud-orchestration-airflow-v1beta1 - 0.70.0 + 0.71.0 com.google.api.grpc proto-google-cloud-orchestration-airflow-v1 - 1.67.0 + 1.68.0 com.google.api.grpc proto-google-cloud-orchestration-airflow-v1beta1 - 0.70.0 + 0.71.0 diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/pom.xml b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/pom.xml index e22099913fc4..b474046242f0 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/pom.xml +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-orchestration-airflow-v1 - 1.67.0 + 1.68.0 proto-google-cloud-orchestration-airflow-v1 Proto library for google-cloud-orchestration-airflow com.google.cloud google-cloud-orchestration-airflow-parent - 1.67.0 + 1.68.0 diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/pom.xml b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/pom.xml index 32bf1de39c21..67da7d92bb3e 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/pom.xml +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-orchestration-airflow-v1beta1 - 0.70.0 + 0.71.0 proto-google-cloud-orchestration-airflow-v1beta1 Proto library for google-cloud-orchestration-airflow com.google.cloud google-cloud-orchestration-airflow-parent - 1.67.0 + 1.68.0 diff --git a/java-orgpolicy/CHANGELOG.md b/java-orgpolicy/CHANGELOG.md index 3b1f26b6f3b1..2c03cad32bbc 100644 --- a/java-orgpolicy/CHANGELOG.md +++ b/java-orgpolicy/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.68.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.67.0 (2025-06-25) ### Dependencies diff --git a/java-orgpolicy/README.md b/java-orgpolicy/README.md index 659d7f4bdfbf..94bcf341a1c1 100644 --- a/java-orgpolicy/README.md +++ b/java-orgpolicy/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-orgpolicy - 2.66.0 + 2.67.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-orgpolicy:2.66.0' +implementation 'com.google.cloud:google-cloud-orgpolicy:2.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-orgpolicy" % "2.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-orgpolicy" % "2.67.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orgpolicy/2.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-orgpolicy/google-cloud-orgpolicy-bom/pom.xml b/java-orgpolicy/google-cloud-orgpolicy-bom/pom.xml index 74152feef089..7dc3ad3f9132 100644 --- a/java-orgpolicy/google-cloud-orgpolicy-bom/pom.xml +++ b/java-orgpolicy/google-cloud-orgpolicy-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-orgpolicy-bom - 2.67.0 + 2.68.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -26,22 +26,22 @@ com.google.cloud google-cloud-orgpolicy - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-orgpolicy-v2 - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-cloud-orgpolicy-v1 - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-cloud-orgpolicy-v2 - 2.67.0 + 2.68.0 diff --git a/java-orgpolicy/google-cloud-orgpolicy/pom.xml b/java-orgpolicy/google-cloud-orgpolicy/pom.xml index 863df20b8e7b..e8c08d86c076 100644 --- a/java-orgpolicy/google-cloud-orgpolicy/pom.xml +++ b/java-orgpolicy/google-cloud-orgpolicy/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-orgpolicy - 2.67.0 + 2.68.0 Google Cloud Org Policy The Org Policy API allows users to configure governance rules on their GCP resources across the Cloud Resource Hierarchy. @@ -11,7 +11,7 @@ com.google.cloud google-cloud-orgpolicy-parent - 2.67.0 + 2.68.0 google-cloud-orgpolicy diff --git a/java-orgpolicy/grpc-google-cloud-orgpolicy-v2/pom.xml b/java-orgpolicy/grpc-google-cloud-orgpolicy-v2/pom.xml index 939ff65209d9..ce0f63914b1d 100644 --- a/java-orgpolicy/grpc-google-cloud-orgpolicy-v2/pom.xml +++ b/java-orgpolicy/grpc-google-cloud-orgpolicy-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-orgpolicy-v2 - 2.67.0 + 2.68.0 grpc-google-cloud-orgpolicy-v2 GRPC library for grpc-google-cloud-orgpolicy-v2 com.google.cloud google-cloud-orgpolicy-parent - 2.67.0 + 2.68.0 diff --git a/java-orgpolicy/pom.xml b/java-orgpolicy/pom.xml index 3b02ae1057be..0a8446149853 100644 --- a/java-orgpolicy/pom.xml +++ b/java-orgpolicy/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-orgpolicy-parent pom - 2.67.0 + 2.68.0 Google Cloud Org Policy Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,22 +29,22 @@ com.google.api.grpc google-cloud-orgpolicy - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-cloud-orgpolicy-v1 - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-cloud-orgpolicy-v2 - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-orgpolicy-v2 - 2.67.0 + 2.68.0 diff --git a/java-orgpolicy/proto-google-cloud-orgpolicy-v1/pom.xml b/java-orgpolicy/proto-google-cloud-orgpolicy-v1/pom.xml index 4073e5f81b00..e9dfbceda52b 100644 --- a/java-orgpolicy/proto-google-cloud-orgpolicy-v1/pom.xml +++ b/java-orgpolicy/proto-google-cloud-orgpolicy-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-orgpolicy-v1 - 2.67.0 + 2.68.0 proto-google-cloud-orgpolicy-v1 PROTO library for proto-google-cloud-orgpolicy-v1 com.google.cloud google-cloud-orgpolicy-parent - 2.67.0 + 2.68.0 diff --git a/java-orgpolicy/proto-google-cloud-orgpolicy-v2/pom.xml b/java-orgpolicy/proto-google-cloud-orgpolicy-v2/pom.xml index 9fe4cfafab63..c2d3c909b68c 100644 --- a/java-orgpolicy/proto-google-cloud-orgpolicy-v2/pom.xml +++ b/java-orgpolicy/proto-google-cloud-orgpolicy-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-orgpolicy-v2 - 2.67.0 + 2.68.0 proto-google-cloud-orgpolicy-v2 PROTO library for proto-google-cloud-orgpolicy-v2 com.google.cloud google-cloud-orgpolicy-parent - 2.67.0 + 2.68.0 diff --git a/java-os-config/CHANGELOG.md b/java-os-config/CHANGELOG.md index 27f740906009..0ec798b8302d 100644 --- a/java-os-config/CHANGELOG.md +++ b/java-os-config/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.70.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.69.0 (2025-06-25) ### Dependencies diff --git a/java-os-config/README.md b/java-os-config/README.md index 393384b442b3..946d531b2b26 100644 --- a/java-os-config/README.md +++ b/java-os-config/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-os-config - 2.68.0 + 2.69.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-os-config:2.68.0' +implementation 'com.google.cloud:google-cloud-os-config:2.69.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-os-config" % "2.68.0" +libraryDependencies += "com.google.cloud" % "google-cloud-os-config" % "2.69.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.68.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-os-config/2.69.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/google-cloud-os-config-bom/pom.xml b/java-os-config/google-cloud-os-config-bom/pom.xml index 24d4e90e5ed2..a44f53b511a6 100644 --- a/java-os-config/google-cloud-os-config-bom/pom.xml +++ b/java-os-config/google-cloud-os-config-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-os-config-bom - 2.69.0 + 2.70.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -23,37 +23,37 @@ com.google.cloud google-cloud-os-config - 2.69.0 + 2.70.0 com.google.api.grpc grpc-google-cloud-os-config-v1 - 2.69.0 + 2.70.0 com.google.api.grpc grpc-google-cloud-os-config-v1beta - 2.69.0 + 2.70.0 com.google.api.grpc grpc-google-cloud-os-config-v1alpha - 2.69.0 + 2.70.0 com.google.api.grpc proto-google-cloud-os-config-v1 - 2.69.0 + 2.70.0 com.google.api.grpc proto-google-cloud-os-config-v1alpha - 2.69.0 + 2.70.0 com.google.api.grpc proto-google-cloud-os-config-v1beta - 2.69.0 + 2.70.0 diff --git a/java-os-config/google-cloud-os-config/pom.xml b/java-os-config/google-cloud-os-config/pom.xml index 5d1c1bb3a7fb..202bba998d2d 100644 --- a/java-os-config/google-cloud-os-config/pom.xml +++ b/java-os-config/google-cloud-os-config/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-os-config - 2.69.0 + 2.70.0 jar Google OS Config API provides OS management tools that can be used for patch management, patch compliance, and configuration management on VM instances. com.google.cloud google-cloud-os-config-parent - 2.69.0 + 2.70.0 google-cloud-os-config diff --git a/java-os-config/grpc-google-cloud-os-config-v1/pom.xml b/java-os-config/grpc-google-cloud-os-config-v1/pom.xml index 0b70c8e14b25..36f8970b241c 100644 --- a/java-os-config/grpc-google-cloud-os-config-v1/pom.xml +++ b/java-os-config/grpc-google-cloud-os-config-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-os-config-v1 - 2.69.0 + 2.70.0 grpc-google-cloud-os-config-v1 GRPC library for grpc-google-cloud-os-config-v1 com.google.cloud google-cloud-os-config-parent - 2.69.0 + 2.70.0 diff --git a/java-os-config/grpc-google-cloud-os-config-v1alpha/pom.xml b/java-os-config/grpc-google-cloud-os-config-v1alpha/pom.xml index 14090f80fa08..4002e6e75eb3 100644 --- a/java-os-config/grpc-google-cloud-os-config-v1alpha/pom.xml +++ b/java-os-config/grpc-google-cloud-os-config-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-os-config-v1alpha - 2.69.0 + 2.70.0 grpc-google-cloud-os-config-v1alpha GRPC library for google-cloud-os-config com.google.cloud google-cloud-os-config-parent - 2.69.0 + 2.70.0 diff --git a/java-os-config/grpc-google-cloud-os-config-v1beta/pom.xml b/java-os-config/grpc-google-cloud-os-config-v1beta/pom.xml index d2d96f70b4cd..1d6f11778a4e 100644 --- a/java-os-config/grpc-google-cloud-os-config-v1beta/pom.xml +++ b/java-os-config/grpc-google-cloud-os-config-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-os-config-v1beta - 2.69.0 + 2.70.0 grpc-google-cloud-os-config-v1beta GRPC library for google-cloud-os-config com.google.cloud google-cloud-os-config-parent - 2.69.0 + 2.70.0 diff --git a/java-os-config/pom.xml b/java-os-config/pom.xml index fdf6c64be347..19f856d0ac48 100644 --- a/java-os-config/pom.xml +++ b/java-os-config/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-os-config-parent pom - 2.69.0 + 2.70.0 Google OS Config API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.cloud google-cloud-os-config - 2.69.0 + 2.70.0 com.google.api.grpc proto-google-cloud-os-config-v1beta - 2.69.0 + 2.70.0 com.google.api.grpc proto-google-cloud-os-config-v1alpha - 2.69.0 + 2.70.0 com.google.api.grpc grpc-google-cloud-os-config-v1alpha - 2.69.0 + 2.70.0 com.google.api.grpc grpc-google-cloud-os-config-v1beta - 2.69.0 + 2.70.0 com.google.api.grpc proto-google-cloud-os-config-v1 - 2.69.0 + 2.70.0 com.google.api.grpc grpc-google-cloud-os-config-v1 - 2.69.0 + 2.70.0 diff --git a/java-os-config/proto-google-cloud-os-config-v1/pom.xml b/java-os-config/proto-google-cloud-os-config-v1/pom.xml index bb829724393a..9ee17f18fccc 100644 --- a/java-os-config/proto-google-cloud-os-config-v1/pom.xml +++ b/java-os-config/proto-google-cloud-os-config-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-os-config-v1 - 2.69.0 + 2.70.0 proto-google-cloud-os-config-v1 PROTO library for proto-google-cloud-os-config-v1 com.google.cloud google-cloud-os-config-parent - 2.69.0 + 2.70.0 diff --git a/java-os-config/proto-google-cloud-os-config-v1alpha/pom.xml b/java-os-config/proto-google-cloud-os-config-v1alpha/pom.xml index 396c53e4c91e..a652c2ab3419 100644 --- a/java-os-config/proto-google-cloud-os-config-v1alpha/pom.xml +++ b/java-os-config/proto-google-cloud-os-config-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-os-config-v1alpha - 2.69.0 + 2.70.0 proto-google-cloud-os-config-v1alpha Proto library for google-cloud-os-config com.google.cloud google-cloud-os-config-parent - 2.69.0 + 2.70.0 diff --git a/java-os-config/proto-google-cloud-os-config-v1beta/pom.xml b/java-os-config/proto-google-cloud-os-config-v1beta/pom.xml index 37d973f700fe..f4d5afeb6673 100644 --- a/java-os-config/proto-google-cloud-os-config-v1beta/pom.xml +++ b/java-os-config/proto-google-cloud-os-config-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-os-config-v1beta - 2.69.0 + 2.70.0 proto-google-cloud-os-config-v1beta Proto library for google-cloud-os-config com.google.cloud google-cloud-os-config-parent - 2.69.0 + 2.70.0 diff --git a/java-os-login/CHANGELOG.md b/java-os-login/CHANGELOG.md index 18353db93281..25af72242286 100644 --- a/java-os-login/CHANGELOG.md +++ b/java-os-login/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.67.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.66.0 (2025-06-25) ### Dependencies diff --git a/java-os-login/README.md b/java-os-login/README.md index 8873e469f239..97c1bb4f5fcb 100644 --- a/java-os-login/README.md +++ b/java-os-login/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-os-login - 2.65.0 + 2.66.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-os-login:2.65.0' +implementation 'com.google.cloud:google-cloud-os-login:2.66.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-os-login" % "2.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-os-login" % "2.66.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.65.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-os-login/2.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-os-login/google-cloud-os-login-bom/pom.xml b/java-os-login/google-cloud-os-login-bom/pom.xml index ec10eea51f7e..3ba0862b8eec 100644 --- a/java-os-login/google-cloud-os-login-bom/pom.xml +++ b/java-os-login/google-cloud-os-login-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-os-login-bom - 2.66.0 + 2.67.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-os-login - 2.66.0 + 2.67.0 com.google.api.grpc grpc-google-cloud-os-login-v1 - 2.66.0 + 2.67.0 com.google.api.grpc proto-google-cloud-os-login-v1 - 2.66.0 + 2.67.0 diff --git a/java-os-login/google-cloud-os-login/pom.xml b/java-os-login/google-cloud-os-login/pom.xml index 78abe289297e..d8d91f5b5780 100644 --- a/java-os-login/google-cloud-os-login/pom.xml +++ b/java-os-login/google-cloud-os-login/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-os-login - 2.66.0 + 2.67.0 jar Google Cloud OS Login Java idiomatic client for Google Cloud OS Login com.google.cloud google-cloud-os-login-parent - 2.66.0 + 2.67.0 google-cloud-os-login diff --git a/java-os-login/grpc-google-cloud-os-login-v1/pom.xml b/java-os-login/grpc-google-cloud-os-login-v1/pom.xml index 652524d8b031..3391d8c7b6d8 100644 --- a/java-os-login/grpc-google-cloud-os-login-v1/pom.xml +++ b/java-os-login/grpc-google-cloud-os-login-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-os-login-v1 - 2.66.0 + 2.67.0 grpc-google-cloud-os-login-v1 GRPC library for grpc-google-cloud-os-login-v1 com.google.cloud google-cloud-os-login-parent - 2.66.0 + 2.67.0 diff --git a/java-os-login/pom.xml b/java-os-login/pom.xml index c96aef1fb84a..d71fcf747efb 100644 --- a/java-os-login/pom.xml +++ b/java-os-login/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-os-login-parent pom - 2.66.0 + 2.67.0 Google Cloud OS Login Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api.grpc proto-google-cloud-os-login-v1 - 2.66.0 + 2.67.0 com.google.api.grpc grpc-google-cloud-os-login-v1 - 2.66.0 + 2.67.0 com.google.cloud google-cloud-os-login - 2.66.0 + 2.67.0 diff --git a/java-os-login/proto-google-cloud-os-login-v1/pom.xml b/java-os-login/proto-google-cloud-os-login-v1/pom.xml index f82b20665e1d..5750b9f6ba1e 100644 --- a/java-os-login/proto-google-cloud-os-login-v1/pom.xml +++ b/java-os-login/proto-google-cloud-os-login-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-os-login-v1 - 2.66.0 + 2.67.0 proto-google-cloud-os-login-v1 PROTO library for proto-google-cloud-os-login-v1 com.google.cloud google-cloud-os-login-parent - 2.66.0 + 2.67.0 diff --git a/java-parallelstore/CHANGELOG.md b/java-parallelstore/CHANGELOG.md index 49489b3b3fd1..9b0a8cc23697 100644 --- a/java-parallelstore/CHANGELOG.md +++ b/java-parallelstore/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.31.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.30.0 (2025-06-25) ### Dependencies diff --git a/java-parallelstore/README.md b/java-parallelstore/README.md index 24cca380469d..94282c6f5c02 100644 --- a/java-parallelstore/README.md +++ b/java-parallelstore/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-parallelstore - 0.29.0 + 0.30.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-parallelstore:0.29.0' +implementation 'com.google.cloud:google-cloud-parallelstore:0.30.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-parallelstore" % "0.29.0" +libraryDependencies += "com.google.cloud" % "google-cloud-parallelstore" % "0.30.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-parallelstore.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-parallelstore/0.29.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-parallelstore/0.30.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/google-cloud-parallelstore-bom/pom.xml b/java-parallelstore/google-cloud-parallelstore-bom/pom.xml index 0cab4c168f35..f15b31e2e241 100644 --- a/java-parallelstore/google-cloud-parallelstore-bom/pom.xml +++ b/java-parallelstore/google-cloud-parallelstore-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-parallelstore-bom - 0.30.0 + 0.31.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -26,27 +26,27 @@ com.google.cloud google-cloud-parallelstore - 0.30.0 + 0.31.0 com.google.api.grpc grpc-google-cloud-parallelstore-v1beta - 0.30.0 + 0.31.0 com.google.api.grpc grpc-google-cloud-parallelstore-v1 - 0.30.0 + 0.31.0 com.google.api.grpc proto-google-cloud-parallelstore-v1beta - 0.30.0 + 0.31.0 com.google.api.grpc proto-google-cloud-parallelstore-v1 - 0.30.0 + 0.31.0 diff --git a/java-parallelstore/google-cloud-parallelstore/pom.xml b/java-parallelstore/google-cloud-parallelstore/pom.xml index 128c1d382dab..987900503fcd 100644 --- a/java-parallelstore/google-cloud-parallelstore/pom.xml +++ b/java-parallelstore/google-cloud-parallelstore/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-parallelstore - 0.30.0 + 0.31.0 jar Google Parallelstore API Parallelstore API Parallelstore is based on Intel DAOS and delivers up to 6.3x greater read throughput performance compared to competitive Lustre scratch offerings. com.google.cloud google-cloud-parallelstore-parent - 0.30.0 + 0.31.0 google-cloud-parallelstore diff --git a/java-parallelstore/grpc-google-cloud-parallelstore-v1/pom.xml b/java-parallelstore/grpc-google-cloud-parallelstore-v1/pom.xml index 3a0e05f1837f..c6c91d8cf71b 100644 --- a/java-parallelstore/grpc-google-cloud-parallelstore-v1/pom.xml +++ b/java-parallelstore/grpc-google-cloud-parallelstore-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-parallelstore-v1 - 0.30.0 + 0.31.0 grpc-google-cloud-parallelstore-v1 GRPC library for google-cloud-parallelstore com.google.cloud google-cloud-parallelstore-parent - 0.30.0 + 0.31.0 diff --git a/java-parallelstore/grpc-google-cloud-parallelstore-v1beta/pom.xml b/java-parallelstore/grpc-google-cloud-parallelstore-v1beta/pom.xml index 537e3048073a..87a0a55efb48 100644 --- a/java-parallelstore/grpc-google-cloud-parallelstore-v1beta/pom.xml +++ b/java-parallelstore/grpc-google-cloud-parallelstore-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-parallelstore-v1beta - 0.30.0 + 0.31.0 grpc-google-cloud-parallelstore-v1beta GRPC library for google-cloud-parallelstore com.google.cloud google-cloud-parallelstore-parent - 0.30.0 + 0.31.0 diff --git a/java-parallelstore/pom.xml b/java-parallelstore/pom.xml index 71c5a191e482..3677de98fbe5 100644 --- a/java-parallelstore/pom.xml +++ b/java-parallelstore/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-parallelstore-parent pom - 0.30.0 + 0.31.0 Google Parallelstore API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-parallelstore - 0.30.0 + 0.31.0 com.google.api.grpc proto-google-cloud-parallelstore-v1 - 0.30.0 + 0.31.0 com.google.api.grpc grpc-google-cloud-parallelstore-v1 - 0.30.0 + 0.31.0 com.google.api.grpc grpc-google-cloud-parallelstore-v1beta - 0.30.0 + 0.31.0 com.google.api.grpc proto-google-cloud-parallelstore-v1beta - 0.30.0 + 0.31.0 diff --git a/java-parallelstore/proto-google-cloud-parallelstore-v1/pom.xml b/java-parallelstore/proto-google-cloud-parallelstore-v1/pom.xml index a4e14694eef1..7370aa3f8414 100644 --- a/java-parallelstore/proto-google-cloud-parallelstore-v1/pom.xml +++ b/java-parallelstore/proto-google-cloud-parallelstore-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-parallelstore-v1 - 0.30.0 + 0.31.0 proto-google-cloud-parallelstore-v1 Proto library for google-cloud-parallelstore com.google.cloud google-cloud-parallelstore-parent - 0.30.0 + 0.31.0 diff --git a/java-parallelstore/proto-google-cloud-parallelstore-v1beta/pom.xml b/java-parallelstore/proto-google-cloud-parallelstore-v1beta/pom.xml index 7ca377883575..d591097b2f4c 100644 --- a/java-parallelstore/proto-google-cloud-parallelstore-v1beta/pom.xml +++ b/java-parallelstore/proto-google-cloud-parallelstore-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-parallelstore-v1beta - 0.30.0 + 0.31.0 proto-google-cloud-parallelstore-v1beta Proto library for google-cloud-parallelstore com.google.cloud google-cloud-parallelstore-parent - 0.30.0 + 0.31.0 diff --git a/java-parametermanager/CHANGELOG.md b/java-parametermanager/CHANGELOG.md index 0887e9fe7f40..6573091a6ae8 100644 --- a/java-parametermanager/CHANGELOG.md +++ b/java-parametermanager/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.12.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.11.0 (2025-06-25) ### Features diff --git a/java-parametermanager/README.md b/java-parametermanager/README.md index 22d7f6e9fc12..1f8071a00bea 100644 --- a/java-parametermanager/README.md +++ b/java-parametermanager/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-parametermanager - 0.10.0 + 0.11.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-parametermanager:0.10.0' +implementation 'com.google.cloud:google-cloud-parametermanager:0.11.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-parametermanager" % "0.10.0" +libraryDependencies += "com.google.cloud" % "google-cloud-parametermanager" % "0.11.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-parametermanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-parametermanager/0.10.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-parametermanager/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-parametermanager/google-cloud-parametermanager-bom/pom.xml b/java-parametermanager/google-cloud-parametermanager-bom/pom.xml index 3b53e66819d9..c5e87e922b33 100644 --- a/java-parametermanager/google-cloud-parametermanager-bom/pom.xml +++ b/java-parametermanager/google-cloud-parametermanager-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-parametermanager-bom - 0.11.0 + 0.12.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-parametermanager - 0.11.0 + 0.12.0 com.google.api.grpc grpc-google-cloud-parametermanager-v1 - 0.11.0 + 0.12.0 com.google.api.grpc proto-google-cloud-parametermanager-v1 - 0.11.0 + 0.12.0 diff --git a/java-parametermanager/google-cloud-parametermanager/pom.xml b/java-parametermanager/google-cloud-parametermanager/pom.xml index 2a21b237302b..388200896cdb 100644 --- a/java-parametermanager/google-cloud-parametermanager/pom.xml +++ b/java-parametermanager/google-cloud-parametermanager/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-parametermanager - 0.11.0 + 0.12.0 jar Google Parameter Manager API Parameter Manager API (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. com.google.cloud google-cloud-parametermanager-parent - 0.11.0 + 0.12.0 google-cloud-parametermanager diff --git a/java-parametermanager/grpc-google-cloud-parametermanager-v1/pom.xml b/java-parametermanager/grpc-google-cloud-parametermanager-v1/pom.xml index e1dde916db02..c6677cb9809f 100644 --- a/java-parametermanager/grpc-google-cloud-parametermanager-v1/pom.xml +++ b/java-parametermanager/grpc-google-cloud-parametermanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-parametermanager-v1 - 0.11.0 + 0.12.0 grpc-google-cloud-parametermanager-v1 GRPC library for google-cloud-parametermanager com.google.cloud google-cloud-parametermanager-parent - 0.11.0 + 0.12.0 diff --git a/java-parametermanager/pom.xml b/java-parametermanager/pom.xml index 03023e169438..efbc68f81b74 100644 --- a/java-parametermanager/pom.xml +++ b/java-parametermanager/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-parametermanager-parent pom - 0.11.0 + 0.12.0 Google Parameter Manager API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-parametermanager - 0.11.0 + 0.12.0 com.google.api.grpc grpc-google-cloud-parametermanager-v1 - 0.11.0 + 0.12.0 com.google.api.grpc proto-google-cloud-parametermanager-v1 - 0.11.0 + 0.12.0 diff --git a/java-parametermanager/proto-google-cloud-parametermanager-v1/pom.xml b/java-parametermanager/proto-google-cloud-parametermanager-v1/pom.xml index 37364e139466..2ef7a0b36194 100644 --- a/java-parametermanager/proto-google-cloud-parametermanager-v1/pom.xml +++ b/java-parametermanager/proto-google-cloud-parametermanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-parametermanager-v1 - 0.11.0 + 0.12.0 proto-google-cloud-parametermanager-v1 Proto library for google-cloud-parametermanager com.google.cloud google-cloud-parametermanager-parent - 0.11.0 + 0.12.0 diff --git a/java-phishingprotection/CHANGELOG.md b/java-phishingprotection/CHANGELOG.md index 84b2ce4a8015..57a77170f5fb 100644 --- a/java-phishingprotection/CHANGELOG.md +++ b/java-phishingprotection/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.99.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.98.0 (2025-06-25) ### Dependencies diff --git a/java-phishingprotection/README.md b/java-phishingprotection/README.md index 055e42094c86..9ab94d4b84c9 100644 --- a/java-phishingprotection/README.md +++ b/java-phishingprotection/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-phishingprotection - 0.97.0 + 0.98.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-phishingprotection:0.97.0' +implementation 'com.google.cloud:google-cloud-phishingprotection:0.98.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-phishingprotection" % "0.97.0" +libraryDependencies += "com.google.cloud" % "google-cloud-phishingprotection" % "0.98.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-phishingprotection.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-phishingprotection/0.97.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-phishingprotection/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-phishingprotection/google-cloud-phishingprotection-bom/pom.xml b/java-phishingprotection/google-cloud-phishingprotection-bom/pom.xml index c43fbcf1a84c..1f306ea221e9 100644 --- a/java-phishingprotection/google-cloud-phishingprotection-bom/pom.xml +++ b/java-phishingprotection/google-cloud-phishingprotection-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-phishingprotection-bom - 0.98.0 + 0.99.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-phishingprotection - 0.98.0 + 0.99.0 com.google.api.grpc grpc-google-cloud-phishingprotection-v1beta1 - 0.98.0 + 0.99.0 com.google.api.grpc proto-google-cloud-phishingprotection-v1beta1 - 0.98.0 + 0.99.0 diff --git a/java-phishingprotection/google-cloud-phishingprotection/pom.xml b/java-phishingprotection/google-cloud-phishingprotection/pom.xml index 71e5cc645206..4bc29916412d 100644 --- a/java-phishingprotection/google-cloud-phishingprotection/pom.xml +++ b/java-phishingprotection/google-cloud-phishingprotection/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-phishingprotection - 0.98.0 + 0.99.0 jar Google Cloud Phishing Protection Java idiomatic client for Google Cloud Phishing Protection com.google.cloud google-cloud-phishingprotection-parent - 0.98.0 + 0.99.0 google-cloud-phishingprotection diff --git a/java-phishingprotection/grpc-google-cloud-phishingprotection-v1beta1/pom.xml b/java-phishingprotection/grpc-google-cloud-phishingprotection-v1beta1/pom.xml index 40c1e8b43409..e196e1719353 100644 --- a/java-phishingprotection/grpc-google-cloud-phishingprotection-v1beta1/pom.xml +++ b/java-phishingprotection/grpc-google-cloud-phishingprotection-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-phishingprotection-v1beta1 - 0.98.0 + 0.99.0 grpc-google-cloud-phishingprotection-v1beta1 GRPC library for grpc-google-cloud-phishingprotection-v1beta1 com.google.cloud google-cloud-phishingprotection-parent - 0.98.0 + 0.99.0 diff --git a/java-phishingprotection/pom.xml b/java-phishingprotection/pom.xml index dab434534a92..e9b20ff2c057 100644 --- a/java-phishingprotection/pom.xml +++ b/java-phishingprotection/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-phishingprotection-parent pom - 0.98.0 + 0.99.0 Google Cloud Phishing Protection Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api.grpc proto-google-cloud-phishingprotection-v1beta1 - 0.98.0 + 0.99.0 com.google.api.grpc grpc-google-cloud-phishingprotection-v1beta1 - 0.98.0 + 0.99.0 com.google.cloud google-cloud-phishingprotection - 0.98.0 + 0.99.0 diff --git a/java-phishingprotection/proto-google-cloud-phishingprotection-v1beta1/pom.xml b/java-phishingprotection/proto-google-cloud-phishingprotection-v1beta1/pom.xml index f983aa79fb55..377698f24275 100644 --- a/java-phishingprotection/proto-google-cloud-phishingprotection-v1beta1/pom.xml +++ b/java-phishingprotection/proto-google-cloud-phishingprotection-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-phishingprotection-v1beta1 - 0.98.0 + 0.99.0 proto-google-cloud-phishingprotection-v1beta1 PROTO library for proto-google-cloud-phishingprotection-v1beta1 com.google.cloud google-cloud-phishingprotection-parent - 0.98.0 + 0.99.0 diff --git a/java-policy-troubleshooter/CHANGELOG.md b/java-policy-troubleshooter/CHANGELOG.md index 396844765788..7c5360979bd2 100644 --- a/java-policy-troubleshooter/CHANGELOG.md +++ b/java-policy-troubleshooter/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 1.67.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 1.66.0 (2025-06-25) ### Dependencies diff --git a/java-policy-troubleshooter/README.md b/java-policy-troubleshooter/README.md index a6d463c464bf..042afdcb4100 100644 --- a/java-policy-troubleshooter/README.md +++ b/java-policy-troubleshooter/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-policy-troubleshooter - 1.65.0 + 1.66.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-policy-troubleshooter:1.65.0' +implementation 'com.google.cloud:google-cloud-policy-troubleshooter:1.66.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-policy-troubleshooter" % "1.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-policy-troubleshooter" % "1.66.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.65.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-policy-troubleshooter/1.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-policy-troubleshooter/google-cloud-policy-troubleshooter-bom/pom.xml b/java-policy-troubleshooter/google-cloud-policy-troubleshooter-bom/pom.xml index 11fcca5a08ff..0d2f2963893d 100644 --- a/java-policy-troubleshooter/google-cloud-policy-troubleshooter-bom/pom.xml +++ b/java-policy-troubleshooter/google-cloud-policy-troubleshooter-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-policy-troubleshooter-bom - 1.66.0 + 1.67.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-policy-troubleshooter - 1.66.0 + 1.67.0 com.google.api.grpc grpc-google-cloud-policy-troubleshooter-v1 - 1.66.0 + 1.67.0 com.google.api.grpc grpc-google-cloud-policy-troubleshooter-v3 - 1.66.0 + 1.67.0 com.google.api.grpc proto-google-cloud-policy-troubleshooter-v1 - 1.66.0 + 1.67.0 com.google.api.grpc proto-google-cloud-policy-troubleshooter-v3 - 1.66.0 + 1.67.0 diff --git a/java-policy-troubleshooter/google-cloud-policy-troubleshooter/pom.xml b/java-policy-troubleshooter/google-cloud-policy-troubleshooter/pom.xml index 09866ce8685e..255c2b1d7745 100644 --- a/java-policy-troubleshooter/google-cloud-policy-troubleshooter/pom.xml +++ b/java-policy-troubleshooter/google-cloud-policy-troubleshooter/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-policy-troubleshooter - 1.66.0 + 1.67.0 jar Google IAM Policy Troubleshooter API 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. com.google.cloud google-cloud-policy-troubleshooter-parent - 1.66.0 + 1.67.0 google-cloud-policy-troubleshooter diff --git a/java-policy-troubleshooter/grpc-google-cloud-policy-troubleshooter-v1/pom.xml b/java-policy-troubleshooter/grpc-google-cloud-policy-troubleshooter-v1/pom.xml index 4595a624d909..97ac07332854 100644 --- a/java-policy-troubleshooter/grpc-google-cloud-policy-troubleshooter-v1/pom.xml +++ b/java-policy-troubleshooter/grpc-google-cloud-policy-troubleshooter-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-policy-troubleshooter-v1 - 1.66.0 + 1.67.0 grpc-google-cloud-policy-troubleshooter-v1 GRPC library for google-cloud-policy-troubleshooter com.google.cloud google-cloud-policy-troubleshooter-parent - 1.66.0 + 1.67.0 diff --git a/java-policy-troubleshooter/grpc-google-cloud-policy-troubleshooter-v3/pom.xml b/java-policy-troubleshooter/grpc-google-cloud-policy-troubleshooter-v3/pom.xml index 21c28a7aeea7..55e603b71018 100644 --- a/java-policy-troubleshooter/grpc-google-cloud-policy-troubleshooter-v3/pom.xml +++ b/java-policy-troubleshooter/grpc-google-cloud-policy-troubleshooter-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-policy-troubleshooter-v3 - 1.66.0 + 1.67.0 grpc-google-cloud-policy-troubleshooter-v3 GRPC library for google-cloud-policy-troubleshooter com.google.cloud google-cloud-policy-troubleshooter-parent - 1.66.0 + 1.67.0 diff --git a/java-policy-troubleshooter/pom.xml b/java-policy-troubleshooter/pom.xml index 78e199e1a721..4fadeddb5f25 100644 --- a/java-policy-troubleshooter/pom.xml +++ b/java-policy-troubleshooter/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-policy-troubleshooter-parent pom - 1.66.0 + 1.67.0 Google IAM Policy Troubleshooter API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-policy-troubleshooter - 1.66.0 + 1.67.0 com.google.api.grpc proto-google-cloud-policy-troubleshooter-v3 - 1.66.0 + 1.67.0 com.google.api.grpc grpc-google-cloud-policy-troubleshooter-v3 - 1.66.0 + 1.67.0 com.google.api.grpc proto-google-cloud-policy-troubleshooter-v1 - 1.66.0 + 1.67.0 com.google.api.grpc grpc-google-cloud-policy-troubleshooter-v1 - 1.66.0 + 1.67.0 diff --git a/java-policy-troubleshooter/proto-google-cloud-policy-troubleshooter-v1/pom.xml b/java-policy-troubleshooter/proto-google-cloud-policy-troubleshooter-v1/pom.xml index 7f20714f50f5..a881f2132dce 100644 --- a/java-policy-troubleshooter/proto-google-cloud-policy-troubleshooter-v1/pom.xml +++ b/java-policy-troubleshooter/proto-google-cloud-policy-troubleshooter-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-policy-troubleshooter-v1 - 1.66.0 + 1.67.0 proto-google-cloud-policy-troubleshooter-v1 Proto library for google-cloud-policy-troubleshooter com.google.cloud google-cloud-policy-troubleshooter-parent - 1.66.0 + 1.67.0 diff --git a/java-policy-troubleshooter/proto-google-cloud-policy-troubleshooter-v3/pom.xml b/java-policy-troubleshooter/proto-google-cloud-policy-troubleshooter-v3/pom.xml index 8f604b5c8aa1..17cce2757613 100644 --- a/java-policy-troubleshooter/proto-google-cloud-policy-troubleshooter-v3/pom.xml +++ b/java-policy-troubleshooter/proto-google-cloud-policy-troubleshooter-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-policy-troubleshooter-v3 - 1.66.0 + 1.67.0 proto-google-cloud-policy-troubleshooter-v3 Proto library for google-cloud-policy-troubleshooter com.google.cloud google-cloud-policy-troubleshooter-parent - 1.66.0 + 1.67.0 diff --git a/java-policysimulator/CHANGELOG.md b/java-policysimulator/CHANGELOG.md index 4040ec70250d..9035ea3a128a 100644 --- a/java-policysimulator/CHANGELOG.md +++ b/java-policysimulator/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.47.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.46.0 (2025-06-25) ### Dependencies diff --git a/java-policysimulator/README.md b/java-policysimulator/README.md index bcef1876ade8..70d0cdd14efa 100644 --- a/java-policysimulator/README.md +++ b/java-policysimulator/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-policysimulator - 0.45.0 + 0.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-policysimulator:0.45.0' +implementation 'com.google.cloud:google-cloud-policysimulator:0.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-policysimulator" % "0.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-policysimulator" % "0.46.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-policysimulator.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-policysimulator/0.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-policysimulator/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-policysimulator/google-cloud-policysimulator-bom/pom.xml b/java-policysimulator/google-cloud-policysimulator-bom/pom.xml index 346f0e7aec94..a1be86263fbb 100644 --- a/java-policysimulator/google-cloud-policysimulator-bom/pom.xml +++ b/java-policysimulator/google-cloud-policysimulator-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-policysimulator-bom - 0.46.0 + 0.47.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-policysimulator - 0.46.0 + 0.47.0 com.google.api.grpc grpc-google-cloud-policysimulator-v1 - 0.46.0 + 0.47.0 com.google.api.grpc proto-google-cloud-policysimulator-v1 - 0.46.0 + 0.47.0 diff --git a/java-policysimulator/google-cloud-policysimulator/pom.xml b/java-policysimulator/google-cloud-policysimulator/pom.xml index b42316d1d0db..8c7350693ec4 100644 --- a/java-policysimulator/google-cloud-policysimulator/pom.xml +++ b/java-policysimulator/google-cloud-policysimulator/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-policysimulator - 0.46.0 + 0.47.0 jar Google Policy Simulator API Policy Simulator API Policy Simulator is a collection of endpoints for creating, running, and viewing a Replay. com.google.cloud google-cloud-policysimulator-parent - 0.46.0 + 0.47.0 google-cloud-policysimulator diff --git a/java-policysimulator/grpc-google-cloud-policysimulator-v1/pom.xml b/java-policysimulator/grpc-google-cloud-policysimulator-v1/pom.xml index 0344e0f0fb5a..a5b85678d637 100644 --- a/java-policysimulator/grpc-google-cloud-policysimulator-v1/pom.xml +++ b/java-policysimulator/grpc-google-cloud-policysimulator-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-policysimulator-v1 - 0.46.0 + 0.47.0 grpc-google-cloud-policysimulator-v1 GRPC library for google-cloud-policysimulator com.google.cloud google-cloud-policysimulator-parent - 0.46.0 + 0.47.0 diff --git a/java-policysimulator/pom.xml b/java-policysimulator/pom.xml index 9ae0cc9ba355..c906a46661a5 100644 --- a/java-policysimulator/pom.xml +++ b/java-policysimulator/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-policysimulator-parent pom - 0.46.0 + 0.47.0 Google Policy Simulator API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-policysimulator - 0.46.0 + 0.47.0 com.google.api.grpc grpc-google-cloud-policysimulator-v1 - 0.46.0 + 0.47.0 com.google.api.grpc proto-google-cloud-policysimulator-v1 - 0.46.0 + 0.47.0 diff --git a/java-policysimulator/proto-google-cloud-policysimulator-v1/pom.xml b/java-policysimulator/proto-google-cloud-policysimulator-v1/pom.xml index 0024b792020a..d2a26d474267 100644 --- a/java-policysimulator/proto-google-cloud-policysimulator-v1/pom.xml +++ b/java-policysimulator/proto-google-cloud-policysimulator-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-policysimulator-v1 - 0.46.0 + 0.47.0 proto-google-cloud-policysimulator-v1 Proto library for google-cloud-policysimulator com.google.cloud google-cloud-policysimulator-parent - 0.46.0 + 0.47.0 diff --git a/java-private-catalog/CHANGELOG.md b/java-private-catalog/CHANGELOG.md index b9ddbd4d9609..0ac0c8d8e84d 100644 --- a/java-private-catalog/CHANGELOG.md +++ b/java-private-catalog/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.70.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.69.0 (2025-06-25) ### Dependencies diff --git a/java-private-catalog/README.md b/java-private-catalog/README.md index 0b38017a34f0..3e9f5841351f 100644 --- a/java-private-catalog/README.md +++ b/java-private-catalog/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-private-catalog - 0.68.0 + 0.69.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-private-catalog:0.68.0' +implementation 'com.google.cloud:google-cloud-private-catalog:0.69.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-private-catalog" % "0.68.0" +libraryDependencies += "com.google.cloud" % "google-cloud-private-catalog" % "0.69.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-private-catalog.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-private-catalog/0.68.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-private-catalog/0.69.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/google-cloud-private-catalog-bom/pom.xml b/java-private-catalog/google-cloud-private-catalog-bom/pom.xml index 927ffb59af55..a81586b6740a 100644 --- a/java-private-catalog/google-cloud-private-catalog-bom/pom.xml +++ b/java-private-catalog/google-cloud-private-catalog-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-private-catalog-bom - 0.69.0 + 0.70.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-private-catalog - 0.69.0 + 0.70.0 com.google.api.grpc grpc-google-cloud-private-catalog-v1beta1 - 0.69.0 + 0.70.0 com.google.api.grpc proto-google-cloud-private-catalog-v1beta1 - 0.69.0 + 0.70.0 diff --git a/java-private-catalog/google-cloud-private-catalog/pom.xml b/java-private-catalog/google-cloud-private-catalog/pom.xml index 7f3a3655856c..6e83798ccbc7 100644 --- a/java-private-catalog/google-cloud-private-catalog/pom.xml +++ b/java-private-catalog/google-cloud-private-catalog/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-private-catalog - 0.69.0 + 0.70.0 jar Google Private Catalog Private Catalog 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. com.google.cloud google-cloud-private-catalog-parent - 0.69.0 + 0.70.0 google-cloud-private-catalog diff --git a/java-private-catalog/grpc-google-cloud-private-catalog-v1beta1/pom.xml b/java-private-catalog/grpc-google-cloud-private-catalog-v1beta1/pom.xml index b555b325b7b2..630ae52823b0 100644 --- a/java-private-catalog/grpc-google-cloud-private-catalog-v1beta1/pom.xml +++ b/java-private-catalog/grpc-google-cloud-private-catalog-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-private-catalog-v1beta1 - 0.69.0 + 0.70.0 grpc-google-cloud-private-catalog-v1beta1 GRPC library for google-cloud-private-catalog com.google.cloud google-cloud-private-catalog-parent - 0.69.0 + 0.70.0 diff --git a/java-private-catalog/pom.xml b/java-private-catalog/pom.xml index 2f8eb8cf04de..66c0d6e97ef1 100644 --- a/java-private-catalog/pom.xml +++ b/java-private-catalog/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-private-catalog-parent pom - 0.69.0 + 0.70.0 Google Private Catalog Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-private-catalog - 0.69.0 + 0.70.0 com.google.api.grpc grpc-google-cloud-private-catalog-v1beta1 - 0.69.0 + 0.70.0 com.google.api.grpc proto-google-cloud-private-catalog-v1beta1 - 0.69.0 + 0.70.0 diff --git a/java-private-catalog/proto-google-cloud-private-catalog-v1beta1/pom.xml b/java-private-catalog/proto-google-cloud-private-catalog-v1beta1/pom.xml index 399364594b9e..a462944962d2 100644 --- a/java-private-catalog/proto-google-cloud-private-catalog-v1beta1/pom.xml +++ b/java-private-catalog/proto-google-cloud-private-catalog-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-private-catalog-v1beta1 - 0.69.0 + 0.70.0 proto-google-cloud-private-catalog-v1beta1 Proto library for google-cloud-private-catalog com.google.cloud google-cloud-private-catalog-parent - 0.69.0 + 0.70.0 diff --git a/java-privilegedaccessmanager/CHANGELOG.md b/java-privilegedaccessmanager/CHANGELOG.md index 3de43deb0b21..66633b7f80bc 100644 --- a/java-privilegedaccessmanager/CHANGELOG.md +++ b/java-privilegedaccessmanager/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.22.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.21.0 (2025-06-25) ### Dependencies diff --git a/java-privilegedaccessmanager/README.md b/java-privilegedaccessmanager/README.md index cc81b39deb7e..dc4a6e846448 100644 --- a/java-privilegedaccessmanager/README.md +++ b/java-privilegedaccessmanager/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-privilegedaccessmanager - 0.20.0 + 0.21.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-privilegedaccessmanager:0.20.0' +implementation 'com.google.cloud:google-cloud-privilegedaccessmanager:0.21.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-privilegedaccessmanager" % "0.20.0" +libraryDependencies += "com.google.cloud" % "google-cloud-privilegedaccessmanager" % "0.21.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-privilegedaccessmanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-privilegedaccessmanager/0.20.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-privilegedaccessmanager/0.21.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/google-cloud-privilegedaccessmanager-bom/pom.xml b/java-privilegedaccessmanager/google-cloud-privilegedaccessmanager-bom/pom.xml index d8f2dfc9ee39..cdbf387fa140 100644 --- a/java-privilegedaccessmanager/google-cloud-privilegedaccessmanager-bom/pom.xml +++ b/java-privilegedaccessmanager/google-cloud-privilegedaccessmanager-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-privilegedaccessmanager-bom - 0.21.0 + 0.22.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-privilegedaccessmanager - 0.21.0 + 0.22.0 com.google.api.grpc grpc-google-cloud-privilegedaccessmanager-v1 - 0.21.0 + 0.22.0 com.google.api.grpc proto-google-cloud-privilegedaccessmanager-v1 - 0.21.0 + 0.22.0 diff --git a/java-privilegedaccessmanager/google-cloud-privilegedaccessmanager/pom.xml b/java-privilegedaccessmanager/google-cloud-privilegedaccessmanager/pom.xml index b3a0ab3c1bc1..c85755f65930 100644 --- a/java-privilegedaccessmanager/google-cloud-privilegedaccessmanager/pom.xml +++ b/java-privilegedaccessmanager/google-cloud-privilegedaccessmanager/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-privilegedaccessmanager - 0.21.0 + 0.22.0 jar Google Privileged Access Manager API Privileged Access Manager API Privileged Access Manager (PAM) helps you on your journey towards least privilege and helps mitigate risks tied to privileged access misuse or abuse. com.google.cloud google-cloud-privilegedaccessmanager-parent - 0.21.0 + 0.22.0 google-cloud-privilegedaccessmanager diff --git a/java-privilegedaccessmanager/grpc-google-cloud-privilegedaccessmanager-v1/pom.xml b/java-privilegedaccessmanager/grpc-google-cloud-privilegedaccessmanager-v1/pom.xml index 928fceef8472..8e4c8599f793 100644 --- a/java-privilegedaccessmanager/grpc-google-cloud-privilegedaccessmanager-v1/pom.xml +++ b/java-privilegedaccessmanager/grpc-google-cloud-privilegedaccessmanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-privilegedaccessmanager-v1 - 0.21.0 + 0.22.0 grpc-google-cloud-privilegedaccessmanager-v1 GRPC library for google-cloud-privilegedaccessmanager com.google.cloud google-cloud-privilegedaccessmanager-parent - 0.21.0 + 0.22.0 diff --git a/java-privilegedaccessmanager/pom.xml b/java-privilegedaccessmanager/pom.xml index eefb05d8a03e..cc2017ddcc69 100644 --- a/java-privilegedaccessmanager/pom.xml +++ b/java-privilegedaccessmanager/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-privilegedaccessmanager-parent pom - 0.21.0 + 0.22.0 Google Privileged Access Manager API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-privilegedaccessmanager - 0.21.0 + 0.22.0 com.google.api.grpc grpc-google-cloud-privilegedaccessmanager-v1 - 0.21.0 + 0.22.0 com.google.api.grpc proto-google-cloud-privilegedaccessmanager-v1 - 0.21.0 + 0.22.0 diff --git a/java-privilegedaccessmanager/proto-google-cloud-privilegedaccessmanager-v1/pom.xml b/java-privilegedaccessmanager/proto-google-cloud-privilegedaccessmanager-v1/pom.xml index 840594f799de..956fa6c8d868 100644 --- a/java-privilegedaccessmanager/proto-google-cloud-privilegedaccessmanager-v1/pom.xml +++ b/java-privilegedaccessmanager/proto-google-cloud-privilegedaccessmanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-privilegedaccessmanager-v1 - 0.21.0 + 0.22.0 proto-google-cloud-privilegedaccessmanager-v1 Proto library for google-cloud-privilegedaccessmanager com.google.cloud google-cloud-privilegedaccessmanager-parent - 0.21.0 + 0.22.0 diff --git a/java-profiler/CHANGELOG.md b/java-profiler/CHANGELOG.md index 5b4aa07f751a..648fc9948cbe 100644 --- a/java-profiler/CHANGELOG.md +++ b/java-profiler/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.68.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.67.0 (2025-06-25) ### Dependencies diff --git a/java-profiler/README.md b/java-profiler/README.md index 603bb0f22d53..90bf3cfce660 100644 --- a/java-profiler/README.md +++ b/java-profiler/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-profiler - 2.66.0 + 2.67.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-profiler:2.66.0' +implementation 'com.google.cloud:google-cloud-profiler:2.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-profiler" % "2.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-profiler" % "2.67.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-profiler/2.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-profiler/google-cloud-profiler-bom/pom.xml b/java-profiler/google-cloud-profiler-bom/pom.xml index 57913a7604f6..a7be0b8ba267 100644 --- a/java-profiler/google-cloud-profiler-bom/pom.xml +++ b/java-profiler/google-cloud-profiler-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-profiler-bom - 2.67.0 + 2.68.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-profiler - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-profiler-v2 - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-cloud-profiler-v2 - 2.67.0 + 2.68.0 diff --git a/java-profiler/google-cloud-profiler/pom.xml b/java-profiler/google-cloud-profiler/pom.xml index 3738e6405209..1f460554137a 100644 --- a/java-profiler/google-cloud-profiler/pom.xml +++ b/java-profiler/google-cloud-profiler/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-profiler - 2.67.0 + 2.68.0 jar Google Cloud Profiler 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. com.google.cloud google-cloud-profiler-parent - 2.67.0 + 2.68.0 google-cloud-profiler diff --git a/java-profiler/grpc-google-cloud-profiler-v2/pom.xml b/java-profiler/grpc-google-cloud-profiler-v2/pom.xml index 043e803b47e8..f30daeae634f 100644 --- a/java-profiler/grpc-google-cloud-profiler-v2/pom.xml +++ b/java-profiler/grpc-google-cloud-profiler-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-profiler-v2 - 2.67.0 + 2.68.0 grpc-google-cloud-profiler-v2 GRPC library for google-cloud-profiler com.google.cloud google-cloud-profiler-parent - 2.67.0 + 2.68.0 diff --git a/java-profiler/pom.xml b/java-profiler/pom.xml index 3875ce950574..fb4336c7bd2d 100644 --- a/java-profiler/pom.xml +++ b/java-profiler/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-profiler-parent pom - 2.67.0 + 2.68.0 Google Cloud Profiler Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-profiler - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-cloud-profiler-v2 - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-profiler-v2 - 2.67.0 + 2.68.0 diff --git a/java-profiler/proto-google-cloud-profiler-v2/pom.xml b/java-profiler/proto-google-cloud-profiler-v2/pom.xml index 3d624a5240bf..b52767e90e76 100644 --- a/java-profiler/proto-google-cloud-profiler-v2/pom.xml +++ b/java-profiler/proto-google-cloud-profiler-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-profiler-v2 - 2.67.0 + 2.68.0 proto-google-cloud-profiler-v2 Proto library for google-cloud-profiler com.google.cloud google-cloud-profiler-parent - 2.67.0 + 2.68.0 diff --git a/java-publicca/CHANGELOG.md b/java-publicca/CHANGELOG.md index 0f0e98462f2c..ee9fc2a46467 100644 --- a/java-publicca/CHANGELOG.md +++ b/java-publicca/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.65.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.64.0 (2025-06-25) ### Dependencies diff --git a/java-publicca/README.md b/java-publicca/README.md index c62b6ec924a1..c586f145ab06 100644 --- a/java-publicca/README.md +++ b/java-publicca/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-publicca - 0.63.0 + 0.64.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-publicca:0.63.0' +implementation 'com.google.cloud:google-cloud-publicca:0.64.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-publicca" % "0.63.0" +libraryDependencies += "com.google.cloud" % "google-cloud-publicca" % "0.64.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.63.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-publicca/0.64.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/google-cloud-publicca-bom/pom.xml b/java-publicca/google-cloud-publicca-bom/pom.xml index 1be247210398..c26481db39c3 100644 --- a/java-publicca/google-cloud-publicca-bom/pom.xml +++ b/java-publicca/google-cloud-publicca-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-publicca-bom - 0.64.0 + 0.65.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-publicca - 0.64.0 + 0.65.0 com.google.api.grpc grpc-google-cloud-publicca-v1beta1 - 0.64.0 + 0.65.0 com.google.api.grpc grpc-google-cloud-publicca-v1 - 0.64.0 + 0.65.0 com.google.api.grpc proto-google-cloud-publicca-v1beta1 - 0.64.0 + 0.65.0 com.google.api.grpc proto-google-cloud-publicca-v1 - 0.64.0 + 0.65.0 diff --git a/java-publicca/google-cloud-publicca/pom.xml b/java-publicca/google-cloud-publicca/pom.xml index d20b222455fa..6fbbb209f083 100644 --- a/java-publicca/google-cloud-publicca/pom.xml +++ b/java-publicca/google-cloud-publicca/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-publicca - 0.64.0 + 0.65.0 jar Google Public Certificate Authority Public Certificate Authority Certificate Manager's Public Certificate Authority (CA) functionality allows you to provision and deploy widely trusted X.509 certificates after validating that the certificate requester controls the domains. com.google.cloud google-cloud-publicca-parent - 0.64.0 + 0.65.0 google-cloud-publicca diff --git a/java-publicca/grpc-google-cloud-publicca-v1/pom.xml b/java-publicca/grpc-google-cloud-publicca-v1/pom.xml index 66b695dd483e..387fe7f34fdc 100644 --- a/java-publicca/grpc-google-cloud-publicca-v1/pom.xml +++ b/java-publicca/grpc-google-cloud-publicca-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-publicca-v1 - 0.64.0 + 0.65.0 grpc-google-cloud-publicca-v1 GRPC library for google-cloud-publicca com.google.cloud google-cloud-publicca-parent - 0.64.0 + 0.65.0 diff --git a/java-publicca/grpc-google-cloud-publicca-v1beta1/pom.xml b/java-publicca/grpc-google-cloud-publicca-v1beta1/pom.xml index 91b17c8e3671..d58ba5068040 100644 --- a/java-publicca/grpc-google-cloud-publicca-v1beta1/pom.xml +++ b/java-publicca/grpc-google-cloud-publicca-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-publicca-v1beta1 - 0.64.0 + 0.65.0 grpc-google-cloud-publicca-v1beta1 GRPC library for google-cloud-publicca com.google.cloud google-cloud-publicca-parent - 0.64.0 + 0.65.0 diff --git a/java-publicca/pom.xml b/java-publicca/pom.xml index 5dc476dd2485..23552563b82a 100644 --- a/java-publicca/pom.xml +++ b/java-publicca/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-publicca-parent pom - 0.64.0 + 0.65.0 Google Public Certificate Authority Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-publicca - 0.64.0 + 0.65.0 com.google.api.grpc proto-google-cloud-publicca-v1 - 0.64.0 + 0.65.0 com.google.api.grpc grpc-google-cloud-publicca-v1 - 0.64.0 + 0.65.0 com.google.api.grpc grpc-google-cloud-publicca-v1beta1 - 0.64.0 + 0.65.0 com.google.api.grpc proto-google-cloud-publicca-v1beta1 - 0.64.0 + 0.65.0 diff --git a/java-publicca/proto-google-cloud-publicca-v1/pom.xml b/java-publicca/proto-google-cloud-publicca-v1/pom.xml index 11ebfffd9f06..827387926ad8 100644 --- a/java-publicca/proto-google-cloud-publicca-v1/pom.xml +++ b/java-publicca/proto-google-cloud-publicca-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-publicca-v1 - 0.64.0 + 0.65.0 proto-google-cloud-publicca-v1 Proto library for google-cloud-publicca com.google.cloud google-cloud-publicca-parent - 0.64.0 + 0.65.0 diff --git a/java-publicca/proto-google-cloud-publicca-v1beta1/pom.xml b/java-publicca/proto-google-cloud-publicca-v1beta1/pom.xml index 776d30a29821..2f43fa10c36d 100644 --- a/java-publicca/proto-google-cloud-publicca-v1beta1/pom.xml +++ b/java-publicca/proto-google-cloud-publicca-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-publicca-v1beta1 - 0.64.0 + 0.65.0 proto-google-cloud-publicca-v1beta1 Proto library for google-cloud-publicca com.google.cloud google-cloud-publicca-parent - 0.64.0 + 0.65.0 diff --git a/java-rapidmigrationassessment/CHANGELOG.md b/java-rapidmigrationassessment/CHANGELOG.md index a4b7d6f7158a..06fb94d088ce 100644 --- a/java-rapidmigrationassessment/CHANGELOG.md +++ b/java-rapidmigrationassessment/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.51.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.50.0 (2025-06-25) ### Dependencies diff --git a/java-rapidmigrationassessment/README.md b/java-rapidmigrationassessment/README.md index 08090146f5f3..c815ea8240a9 100644 --- a/java-rapidmigrationassessment/README.md +++ b/java-rapidmigrationassessment/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-rapidmigrationassessment - 0.49.0 + 0.50.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-rapidmigrationassessment:0.49.0' +implementation 'com.google.cloud:google-cloud-rapidmigrationassessment:0.50.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-rapidmigrationassessment" % "0.49.0" +libraryDependencies += "com.google.cloud" % "google-cloud-rapidmigrationassessment" % "0.50.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-rapidmigrationassessment.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-rapidmigrationassessment/0.49.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-rapidmigrationassessment/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-rapidmigrationassessment/google-cloud-rapidmigrationassessment-bom/pom.xml b/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment-bom/pom.xml index 7351f943f43b..83a56e9d9487 100644 --- a/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment-bom/pom.xml +++ b/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-rapidmigrationassessment-bom - 0.50.0 + 0.51.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-rapidmigrationassessment - 0.50.0 + 0.51.0 com.google.api.grpc grpc-google-cloud-rapidmigrationassessment-v1 - 0.50.0 + 0.51.0 com.google.api.grpc proto-google-cloud-rapidmigrationassessment-v1 - 0.50.0 + 0.51.0 diff --git a/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment/pom.xml b/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment/pom.xml index 79d11d6ed7ec..218166e3261d 100644 --- a/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment/pom.xml +++ b/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-rapidmigrationassessment - 0.50.0 + 0.51.0 jar Google Rapid Migration Assessment API Rapid Migration Assessment API Rapid Migration Assessment API com.google.cloud google-cloud-rapidmigrationassessment-parent - 0.50.0 + 0.51.0 google-cloud-rapidmigrationassessment diff --git a/java-rapidmigrationassessment/grpc-google-cloud-rapidmigrationassessment-v1/pom.xml b/java-rapidmigrationassessment/grpc-google-cloud-rapidmigrationassessment-v1/pom.xml index d68e2a4dc3af..d88bb9b82cf7 100644 --- a/java-rapidmigrationassessment/grpc-google-cloud-rapidmigrationassessment-v1/pom.xml +++ b/java-rapidmigrationassessment/grpc-google-cloud-rapidmigrationassessment-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-rapidmigrationassessment-v1 - 0.50.0 + 0.51.0 grpc-google-cloud-rapidmigrationassessment-v1 GRPC library for google-cloud-rapidmigrationassessment com.google.cloud google-cloud-rapidmigrationassessment-parent - 0.50.0 + 0.51.0 diff --git a/java-rapidmigrationassessment/pom.xml b/java-rapidmigrationassessment/pom.xml index cb13d5795882..e8ffbff09bd3 100644 --- a/java-rapidmigrationassessment/pom.xml +++ b/java-rapidmigrationassessment/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-rapidmigrationassessment-parent pom - 0.50.0 + 0.51.0 Google Rapid Migration Assessment API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-rapidmigrationassessment - 0.50.0 + 0.51.0 com.google.api.grpc grpc-google-cloud-rapidmigrationassessment-v1 - 0.50.0 + 0.51.0 com.google.api.grpc proto-google-cloud-rapidmigrationassessment-v1 - 0.50.0 + 0.51.0 diff --git a/java-rapidmigrationassessment/proto-google-cloud-rapidmigrationassessment-v1/pom.xml b/java-rapidmigrationassessment/proto-google-cloud-rapidmigrationassessment-v1/pom.xml index fbf45e072d14..ab8350e5507f 100644 --- a/java-rapidmigrationassessment/proto-google-cloud-rapidmigrationassessment-v1/pom.xml +++ b/java-rapidmigrationassessment/proto-google-cloud-rapidmigrationassessment-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-rapidmigrationassessment-v1 - 0.50.0 + 0.51.0 proto-google-cloud-rapidmigrationassessment-v1 Proto library for google-cloud-rapidmigrationassessment com.google.cloud google-cloud-rapidmigrationassessment-parent - 0.50.0 + 0.51.0 diff --git a/java-recaptchaenterprise/CHANGELOG.md b/java-recaptchaenterprise/CHANGELOG.md index f8869b8285d3..f853c0fe2b40 100644 --- a/java-recaptchaenterprise/CHANGELOG.md +++ b/java-recaptchaenterprise/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 3.65.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 3.64.0 (2025-06-25) ### Dependencies diff --git a/java-recaptchaenterprise/README.md b/java-recaptchaenterprise/README.md index b530033421a0..288dac702a4f 100644 --- a/java-recaptchaenterprise/README.md +++ b/java-recaptchaenterprise/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-recaptchaenterprise - 3.63.0 + 3.64.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-recaptchaenterprise:3.63.0' +implementation 'com.google.cloud:google-cloud-recaptchaenterprise:3.64.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-recaptchaenterprise" % "3.63.0" +libraryDependencies += "com.google.cloud" % "google-cloud-recaptchaenterprise" % "3.64.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.63.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recaptchaenterprise/3.64.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/google-cloud-recaptchaenterprise-bom/pom.xml b/java-recaptchaenterprise/google-cloud-recaptchaenterprise-bom/pom.xml index 17070e3ed174..3378342f5b38 100644 --- a/java-recaptchaenterprise/google-cloud-recaptchaenterprise-bom/pom.xml +++ b/java-recaptchaenterprise/google-cloud-recaptchaenterprise-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-recaptchaenterprise-bom - 3.64.0 + 3.65.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-recaptchaenterprise - 3.64.0 + 3.65.0 com.google.api.grpc grpc-google-cloud-recaptchaenterprise-v1 - 3.64.0 + 3.65.0 com.google.api.grpc grpc-google-cloud-recaptchaenterprise-v1beta1 - 0.106.0 + 0.107.0 com.google.api.grpc proto-google-cloud-recaptchaenterprise-v1 - 3.64.0 + 3.65.0 com.google.api.grpc proto-google-cloud-recaptchaenterprise-v1beta1 - 0.106.0 + 0.107.0 diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/pom.xml b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/pom.xml index 6f2f81a235f7..445e4b011222 100644 --- a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/pom.xml +++ b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-recaptchaenterprise - 3.64.0 + 3.65.0 jar reCAPTCHA Enterprise Help protect your website from fraudulent activity, spam, and abuse. com.google.cloud google-cloud-recaptchaenterprise-parent - 3.64.0 + 3.65.0 google-cloud-recaptchaenterprise diff --git a/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1/pom.xml b/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1/pom.xml index 95dad9eb09b2..5a6d52b7c3ad 100644 --- a/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1/pom.xml +++ b/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-recaptchaenterprise-v1 - 3.64.0 + 3.65.0 grpc-google-cloud-recaptchaenterprise-v1 GRPC library for grpc-google-cloud-recaptchaenterprise-v1 com.google.cloud google-cloud-recaptchaenterprise-parent - 3.64.0 + 3.65.0 diff --git a/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1beta1/pom.xml b/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1beta1/pom.xml index 3f7219b5a1b1..0de5facb872e 100644 --- a/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1beta1/pom.xml +++ b/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-recaptchaenterprise-v1beta1 - 0.106.0 + 0.107.0 grpc-google-cloud-recaptchaenterprise-v1beta1 GRPC library for grpc-google-cloud-recaptchaenterprise-v1beta1 com.google.cloud google-cloud-recaptchaenterprise-parent - 3.64.0 + 3.65.0 diff --git a/java-recaptchaenterprise/pom.xml b/java-recaptchaenterprise/pom.xml index bd1d0c2808dc..714ce2c5dc4f 100644 --- a/java-recaptchaenterprise/pom.xml +++ b/java-recaptchaenterprise/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-recaptchaenterprise-parent pom - 3.64.0 + 3.65.0 reCAPTCHA Enterprise Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-recaptchaenterprise-v1 - 3.64.0 + 3.65.0 com.google.api.grpc proto-google-cloud-recaptchaenterprise-v1beta1 - 0.106.0 + 0.107.0 com.google.api.grpc grpc-google-cloud-recaptchaenterprise-v1 - 3.64.0 + 3.65.0 com.google.api.grpc grpc-google-cloud-recaptchaenterprise-v1beta1 - 0.106.0 + 0.107.0 com.google.cloud google-cloud-recaptchaenterprise - 3.64.0 + 3.65.0 diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/pom.xml b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/pom.xml index 88af153e9006..394283cb9e14 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/pom.xml +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-recaptchaenterprise-v1 - 3.64.0 + 3.65.0 proto-google-cloud-recaptchaenterprise-v1 PROTO library for proto-google-cloud-recaptchaenterprise-v1 com.google.cloud google-cloud-recaptchaenterprise-parent - 3.64.0 + 3.65.0 diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/pom.xml b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/pom.xml index 338eff948a43..52cee4226559 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/pom.xml +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-recaptchaenterprise-v1beta1 - 0.106.0 + 0.107.0 proto-google-cloud-recaptchaenterprise-v1beta1 PROTO library for proto-google-cloud-recaptchaenterprise-v1beta1 com.google.cloud google-cloud-recaptchaenterprise-parent - 3.64.0 + 3.65.0 diff --git a/java-recommendations-ai/CHANGELOG.md b/java-recommendations-ai/CHANGELOG.md index a2bb351139a4..49635c9b17aa 100644 --- a/java-recommendations-ai/CHANGELOG.md +++ b/java-recommendations-ai/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.75.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.74.0 (2025-06-25) ### Dependencies diff --git a/java-recommendations-ai/README.md b/java-recommendations-ai/README.md index 0f2d5f518dd8..8f20bc73be72 100644 --- a/java-recommendations-ai/README.md +++ b/java-recommendations-ai/README.md @@ -46,20 +46,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-recommendations-ai - 0.73.0 + 0.74.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-recommendations-ai:0.73.0' +implementation 'com.google.cloud:google-cloud-recommendations-ai:0.74.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-recommendations-ai" % "0.73.0" +libraryDependencies += "com.google.cloud" % "google-cloud-recommendations-ai" % "0.74.0" ``` ## Authentication @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-recommendations-ai.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recommendations-ai/0.73.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recommendations-ai/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-recommendations-ai/google-cloud-recommendations-ai-bom/pom.xml b/java-recommendations-ai/google-cloud-recommendations-ai-bom/pom.xml index 2578f8ef4a8f..4fd51b3a63ec 100644 --- a/java-recommendations-ai/google-cloud-recommendations-ai-bom/pom.xml +++ b/java-recommendations-ai/google-cloud-recommendations-ai-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-recommendations-ai-bom - 0.74.0 + 0.75.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-recommendations-ai - 0.74.0 + 0.75.0 com.google.api.grpc grpc-google-cloud-recommendations-ai-v1beta1 - 0.74.0 + 0.75.0 com.google.api.grpc proto-google-cloud-recommendations-ai-v1beta1 - 0.74.0 + 0.75.0 diff --git a/java-recommendations-ai/google-cloud-recommendations-ai/pom.xml b/java-recommendations-ai/google-cloud-recommendations-ai/pom.xml index 73d4a36da214..19fc4906d272 100644 --- a/java-recommendations-ai/google-cloud-recommendations-ai/pom.xml +++ b/java-recommendations-ai/google-cloud-recommendations-ai/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-recommendations-ai - 0.74.0 + 0.75.0 jar Google Recommendations AI delivers highly personalized product recommendations at scale. com.google.cloud google-cloud-recommendations-ai-parent - 0.74.0 + 0.75.0 google-cloud-recommendations-ai diff --git a/java-recommendations-ai/grpc-google-cloud-recommendations-ai-v1beta1/pom.xml b/java-recommendations-ai/grpc-google-cloud-recommendations-ai-v1beta1/pom.xml index 95aefcebe5a3..e5e2672ccc71 100644 --- a/java-recommendations-ai/grpc-google-cloud-recommendations-ai-v1beta1/pom.xml +++ b/java-recommendations-ai/grpc-google-cloud-recommendations-ai-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-recommendations-ai-v1beta1 - 0.74.0 + 0.75.0 grpc-google-cloud-recommendations-ai-v1beta1 GRPC library for grpc-google-cloud-recommendations-ai-v1beta1 com.google.cloud google-cloud-recommendations-ai-parent - 0.74.0 + 0.75.0 diff --git a/java-recommendations-ai/pom.xml b/java-recommendations-ai/pom.xml index 8e02de319a3c..33a5a00c678e 100644 --- a/java-recommendations-ai/pom.xml +++ b/java-recommendations-ai/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-recommendations-ai-parent pom - 0.74.0 + 0.75.0 Google Recommendations AI Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-recommendations-ai - 0.74.0 + 0.75.0 com.google.api.grpc proto-google-cloud-recommendations-ai-v1beta1 - 0.74.0 + 0.75.0 com.google.api.grpc grpc-google-cloud-recommendations-ai-v1beta1 - 0.74.0 + 0.75.0 diff --git a/java-recommendations-ai/proto-google-cloud-recommendations-ai-v1beta1/pom.xml b/java-recommendations-ai/proto-google-cloud-recommendations-ai-v1beta1/pom.xml index 8ba91828a487..8a2941eb16a0 100644 --- a/java-recommendations-ai/proto-google-cloud-recommendations-ai-v1beta1/pom.xml +++ b/java-recommendations-ai/proto-google-cloud-recommendations-ai-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-recommendations-ai-v1beta1 - 0.74.0 + 0.75.0 proto-google-cloud-recommendations-ai-v1beta1 PROTO library for proto-google-cloud-recommendations-ai-v1beta1 com.google.cloud google-cloud-recommendations-ai-parent - 0.74.0 + 0.75.0 diff --git a/java-recommender/CHANGELOG.md b/java-recommender/CHANGELOG.md index 027a5d708375..17cce92a0bfc 100644 --- a/java-recommender/CHANGELOG.md +++ b/java-recommender/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.70.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.69.0 (2025-06-25) ### Dependencies diff --git a/java-recommender/README.md b/java-recommender/README.md index 42c395b0f5d8..4fead4337cc8 100644 --- a/java-recommender/README.md +++ b/java-recommender/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-recommender - 2.68.0 + 2.69.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-recommender:2.68.0' +implementation 'com.google.cloud:google-cloud-recommender:2.69.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-recommender" % "2.68.0" +libraryDependencies += "com.google.cloud" % "google-cloud-recommender" % "2.69.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.68.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recommender/2.69.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/google-cloud-recommender-bom/pom.xml b/java-recommender/google-cloud-recommender-bom/pom.xml index 62781135e97d..dfc18044eef3 100644 --- a/java-recommender/google-cloud-recommender-bom/pom.xml +++ b/java-recommender/google-cloud-recommender-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-recommender-bom - 2.69.0 + 2.70.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-recommender - 2.69.0 + 2.70.0 com.google.api.grpc grpc-google-cloud-recommender-v1 - 2.69.0 + 2.70.0 com.google.api.grpc grpc-google-cloud-recommender-v1beta1 - 0.81.0 + 0.82.0 com.google.api.grpc proto-google-cloud-recommender-v1 - 2.69.0 + 2.70.0 com.google.api.grpc proto-google-cloud-recommender-v1beta1 - 0.81.0 + 0.82.0 diff --git a/java-recommender/google-cloud-recommender/pom.xml b/java-recommender/google-cloud-recommender/pom.xml index 3556d55aea6f..4f6d0cd1a2f3 100644 --- a/java-recommender/google-cloud-recommender/pom.xml +++ b/java-recommender/google-cloud-recommender/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-recommender - 2.69.0 + 2.70.0 jar Google Cloud Recommender @@ -12,7 +12,7 @@ com.google.cloud google-cloud-recommender-parent - 2.69.0 + 2.70.0 google-cloud-recommender diff --git a/java-recommender/grpc-google-cloud-recommender-v1/pom.xml b/java-recommender/grpc-google-cloud-recommender-v1/pom.xml index 2bb33ab0c03e..631631df35bc 100644 --- a/java-recommender/grpc-google-cloud-recommender-v1/pom.xml +++ b/java-recommender/grpc-google-cloud-recommender-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-recommender-v1 - 2.69.0 + 2.70.0 grpc-google-cloud-recommender-v1 GRPC library for grpc-google-cloud-recommender-v1 com.google.cloud google-cloud-recommender-parent - 2.69.0 + 2.70.0 diff --git a/java-recommender/grpc-google-cloud-recommender-v1beta1/pom.xml b/java-recommender/grpc-google-cloud-recommender-v1beta1/pom.xml index ddc2d1d42575..89c128d1987c 100644 --- a/java-recommender/grpc-google-cloud-recommender-v1beta1/pom.xml +++ b/java-recommender/grpc-google-cloud-recommender-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-recommender-v1beta1 - 0.81.0 + 0.82.0 grpc-google-cloud-recommender-v1beta1 GRPC library for grpc-google-cloud-recommender-v1beta1 com.google.cloud google-cloud-recommender-parent - 2.69.0 + 2.70.0 diff --git a/java-recommender/pom.xml b/java-recommender/pom.xml index b3f197e6238d..f954b7477050 100644 --- a/java-recommender/pom.xml +++ b/java-recommender/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-recommender-parent pom - 2.69.0 + 2.70.0 Google Cloud recommender Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-recommender-v1 - 2.69.0 + 2.70.0 com.google.cloud google-cloud-recommender - 2.69.0 + 2.70.0 com.google.api.grpc proto-google-cloud-recommender-v1beta1 - 0.81.0 + 0.82.0 com.google.api.grpc grpc-google-cloud-recommender-v1 - 2.69.0 + 2.70.0 com.google.api.grpc grpc-google-cloud-recommender-v1beta1 - 0.81.0 + 0.82.0 diff --git a/java-recommender/proto-google-cloud-recommender-v1/pom.xml b/java-recommender/proto-google-cloud-recommender-v1/pom.xml index 112f6dfcb0e6..437aa535b2b5 100644 --- a/java-recommender/proto-google-cloud-recommender-v1/pom.xml +++ b/java-recommender/proto-google-cloud-recommender-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-recommender-v1 - 2.69.0 + 2.70.0 proto-google-cloud-recommender-v1 PROTO library for proto-google-cloud-recommender-v1 com.google.cloud google-cloud-recommender-parent - 2.69.0 + 2.70.0 diff --git a/java-recommender/proto-google-cloud-recommender-v1beta1/pom.xml b/java-recommender/proto-google-cloud-recommender-v1beta1/pom.xml index 90f3070cb64f..038a497508c7 100644 --- a/java-recommender/proto-google-cloud-recommender-v1beta1/pom.xml +++ b/java-recommender/proto-google-cloud-recommender-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-recommender-v1beta1 - 0.81.0 + 0.82.0 proto-google-cloud-recommender-v1beta1 PROTO library for proto-google-cloud-recommender-v1beta1 com.google.cloud google-cloud-recommender-parent - 2.69.0 + 2.70.0 diff --git a/java-redis-cluster/CHANGELOG.md b/java-redis-cluster/CHANGELOG.md index ac9ed2e39f17..4b29caff79a6 100644 --- a/java-redis-cluster/CHANGELOG.md +++ b/java-redis-cluster/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.40.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.39.0 (2025-06-25) ### Dependencies diff --git a/java-redis-cluster/README.md b/java-redis-cluster/README.md index e645026f8699..966f145a7fa0 100644 --- a/java-redis-cluster/README.md +++ b/java-redis-cluster/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-redis-cluster - 0.38.0 + 0.39.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-redis-cluster:0.38.0' +implementation 'com.google.cloud:google-cloud-redis-cluster:0.39.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-redis-cluster" % "0.38.0" +libraryDependencies += "com.google.cloud" % "google-cloud-redis-cluster" % "0.39.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-redis-cluster.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-redis-cluster/0.38.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-redis-cluster/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-redis-cluster/google-cloud-redis-cluster-bom/pom.xml b/java-redis-cluster/google-cloud-redis-cluster-bom/pom.xml index 5b6fc842e82e..6ffe308f1504 100644 --- a/java-redis-cluster/google-cloud-redis-cluster-bom/pom.xml +++ b/java-redis-cluster/google-cloud-redis-cluster-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-redis-cluster-bom - 0.39.0 + 0.40.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-redis-cluster - 0.39.0 + 0.40.0 com.google.api.grpc grpc-google-cloud-redis-cluster-v1 - 0.39.0 + 0.40.0 com.google.api.grpc grpc-google-cloud-redis-cluster-v1beta1 - 0.39.0 + 0.40.0 com.google.api.grpc proto-google-cloud-redis-cluster-v1beta1 - 0.39.0 + 0.40.0 com.google.api.grpc proto-google-cloud-redis-cluster-v1 - 0.39.0 + 0.40.0 diff --git a/java-redis-cluster/google-cloud-redis-cluster/pom.xml b/java-redis-cluster/google-cloud-redis-cluster/pom.xml index d4ae686d037c..aecd90aaaec4 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/pom.xml +++ b/java-redis-cluster/google-cloud-redis-cluster/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-redis-cluster - 0.39.0 + 0.40.0 jar Google Google Cloud Memorystore for Redis API Google Cloud Memorystore for Redis API Creates and manages Redis instances on the Google Cloud Platform. com.google.cloud google-cloud-redis-cluster-parent - 0.39.0 + 0.40.0 google-cloud-redis-cluster diff --git a/java-redis-cluster/grpc-google-cloud-redis-cluster-v1/pom.xml b/java-redis-cluster/grpc-google-cloud-redis-cluster-v1/pom.xml index 677526c10e6f..bec746967b5d 100644 --- a/java-redis-cluster/grpc-google-cloud-redis-cluster-v1/pom.xml +++ b/java-redis-cluster/grpc-google-cloud-redis-cluster-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-redis-cluster-v1 - 0.39.0 + 0.40.0 grpc-google-cloud-redis-cluster-v1 GRPC library for google-cloud-redis-cluster com.google.cloud google-cloud-redis-cluster-parent - 0.39.0 + 0.40.0 diff --git a/java-redis-cluster/grpc-google-cloud-redis-cluster-v1beta1/pom.xml b/java-redis-cluster/grpc-google-cloud-redis-cluster-v1beta1/pom.xml index dfd1ec13e0bb..ce2e66872c44 100644 --- a/java-redis-cluster/grpc-google-cloud-redis-cluster-v1beta1/pom.xml +++ b/java-redis-cluster/grpc-google-cloud-redis-cluster-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-redis-cluster-v1beta1 - 0.39.0 + 0.40.0 grpc-google-cloud-redis-cluster-v1beta1 GRPC library for google-cloud-redis-cluster com.google.cloud google-cloud-redis-cluster-parent - 0.39.0 + 0.40.0 diff --git a/java-redis-cluster/pom.xml b/java-redis-cluster/pom.xml index 492f8ebcf768..aff79a332de4 100644 --- a/java-redis-cluster/pom.xml +++ b/java-redis-cluster/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-redis-cluster-parent pom - 0.39.0 + 0.40.0 Google Google Cloud Memorystore for Redis API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-redis-cluster - 0.39.0 + 0.40.0 com.google.api.grpc grpc-google-cloud-redis-cluster-v1 - 0.39.0 + 0.40.0 com.google.api.grpc grpc-google-cloud-redis-cluster-v1beta1 - 0.39.0 + 0.40.0 com.google.api.grpc proto-google-cloud-redis-cluster-v1beta1 - 0.39.0 + 0.40.0 com.google.api.grpc proto-google-cloud-redis-cluster-v1 - 0.39.0 + 0.40.0 diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/pom.xml b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/pom.xml index ce2416178751..2599c0c85882 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/pom.xml +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-redis-cluster-v1 - 0.39.0 + 0.40.0 proto-google-cloud-redis-cluster-v1 Proto library for google-cloud-redis-cluster com.google.cloud google-cloud-redis-cluster-parent - 0.39.0 + 0.40.0 diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/pom.xml b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/pom.xml index 858b71899f26..c1fe3f83a5ba 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/pom.xml +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-redis-cluster-v1beta1 - 0.39.0 + 0.40.0 proto-google-cloud-redis-cluster-v1beta1 Proto library for google-cloud-redis-cluster com.google.cloud google-cloud-redis-cluster-parent - 0.39.0 + 0.40.0 diff --git a/java-redis/CHANGELOG.md b/java-redis/CHANGELOG.md index 6f43e1752dcf..da275dd7241f 100644 --- a/java-redis/CHANGELOG.md +++ b/java-redis/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.71.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.70.0 (2025-06-25) ### Dependencies diff --git a/java-redis/README.md b/java-redis/README.md index 5eceba2e5b03..51f1c1a3ffd0 100644 --- a/java-redis/README.md +++ b/java-redis/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-redis - 2.69.0 + 2.70.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-redis:2.69.0' +implementation 'com.google.cloud:google-cloud-redis:2.70.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-redis" % "2.69.0" +libraryDependencies += "com.google.cloud" % "google-cloud-redis" % "2.70.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.69.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-redis/2.70.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/google-cloud-redis-bom/pom.xml b/java-redis/google-cloud-redis-bom/pom.xml index d37d5d46fc0c..883439b782c4 100644 --- a/java-redis/google-cloud-redis-bom/pom.xml +++ b/java-redis/google-cloud-redis-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-redis-bom - 2.70.0 + 2.71.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-redis - 2.70.0 + 2.71.0 com.google.api.grpc grpc-google-cloud-redis-v1beta1 - 0.158.0 + 0.159.0 com.google.api.grpc grpc-google-cloud-redis-v1 - 2.70.0 + 2.71.0 com.google.api.grpc proto-google-cloud-redis-v1 - 2.70.0 + 2.71.0 com.google.api.grpc proto-google-cloud-redis-v1beta1 - 0.158.0 + 0.159.0 diff --git a/java-redis/google-cloud-redis/pom.xml b/java-redis/google-cloud-redis/pom.xml index b169cd46a730..2715ae1f1656 100644 --- a/java-redis/google-cloud-redis/pom.xml +++ b/java-redis/google-cloud-redis/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-redis - 2.70.0 + 2.71.0 jar Google Cloud Redis Java idiomatic client for Google Cloud Redis com.google.cloud google-cloud-redis-parent - 2.70.0 + 2.71.0 google-cloud-redis diff --git a/java-redis/grpc-google-cloud-redis-v1/pom.xml b/java-redis/grpc-google-cloud-redis-v1/pom.xml index 00784a2feb40..19db123b0ea9 100644 --- a/java-redis/grpc-google-cloud-redis-v1/pom.xml +++ b/java-redis/grpc-google-cloud-redis-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-redis-v1 - 2.70.0 + 2.71.0 grpc-google-cloud-redis-v1 GRPC library for grpc-google-cloud-redis-v1 com.google.cloud google-cloud-redis-parent - 2.70.0 + 2.71.0 diff --git a/java-redis/grpc-google-cloud-redis-v1beta1/pom.xml b/java-redis/grpc-google-cloud-redis-v1beta1/pom.xml index 170867f2dc70..a6a690e115f8 100644 --- a/java-redis/grpc-google-cloud-redis-v1beta1/pom.xml +++ b/java-redis/grpc-google-cloud-redis-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-redis-v1beta1 - 0.158.0 + 0.159.0 grpc-google-cloud-redis-v1beta1 GRPC library for grpc-google-cloud-redis-v1beta1 com.google.cloud google-cloud-redis-parent - 2.70.0 + 2.71.0 diff --git a/java-redis/pom.xml b/java-redis/pom.xml index 1b9b8c2fee48..39fc0de6db4e 100644 --- a/java-redis/pom.xml +++ b/java-redis/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-redis-parent pom - 2.70.0 + 2.71.0 Google Cloud Redis Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-redis-v1 - 2.70.0 + 2.71.0 com.google.api.grpc proto-google-cloud-redis-v1beta1 - 0.158.0 + 0.159.0 com.google.api.grpc grpc-google-cloud-redis-v1beta1 - 0.158.0 + 0.159.0 com.google.api.grpc grpc-google-cloud-redis-v1 - 2.70.0 + 2.71.0 com.google.cloud google-cloud-redis - 2.70.0 + 2.71.0 diff --git a/java-redis/proto-google-cloud-redis-v1/pom.xml b/java-redis/proto-google-cloud-redis-v1/pom.xml index 91b035305e66..2572999c3fe7 100644 --- a/java-redis/proto-google-cloud-redis-v1/pom.xml +++ b/java-redis/proto-google-cloud-redis-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-redis-v1 - 2.70.0 + 2.71.0 proto-google-cloud-redis-v1 PROTO library for proto-google-cloud-redis-v1 com.google.cloud google-cloud-redis-parent - 2.70.0 + 2.71.0 diff --git a/java-redis/proto-google-cloud-redis-v1beta1/pom.xml b/java-redis/proto-google-cloud-redis-v1beta1/pom.xml index 0223412049eb..e6882bb9b06a 100644 --- a/java-redis/proto-google-cloud-redis-v1beta1/pom.xml +++ b/java-redis/proto-google-cloud-redis-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-redis-v1beta1 - 0.158.0 + 0.159.0 proto-google-cloud-redis-v1beta1 PROTO library for proto-google-cloud-redis-v1beta1 com.google.cloud google-cloud-redis-parent - 2.70.0 + 2.71.0 diff --git a/java-resourcemanager/CHANGELOG.md b/java-resourcemanager/CHANGELOG.md index 178936474f55..90b25f51f24b 100644 --- a/java-resourcemanager/CHANGELOG.md +++ b/java-resourcemanager/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 1.70.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 1.69.0 (2025-06-25) ### Dependencies diff --git a/java-resourcemanager/README.md b/java-resourcemanager/README.md index 2782ea600f25..602db255f8ce 100644 --- a/java-resourcemanager/README.md +++ b/java-resourcemanager/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-resourcemanager - 1.68.0 + 1.69.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-resourcemanager:1.68.0' +implementation 'com.google.cloud:google-cloud-resourcemanager:1.69.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-resourcemanager" % "1.68.0" +libraryDependencies += "com.google.cloud" % "google-cloud-resourcemanager" % "1.69.0" ``` ## Authentication @@ -335,7 +335,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.68.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-resourcemanager/1.69.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/google-cloud-resourcemanager-bom/pom.xml b/java-resourcemanager/google-cloud-resourcemanager-bom/pom.xml index 25d5ab9a9442..3cccf018e1a0 100644 --- a/java-resourcemanager/google-cloud-resourcemanager-bom/pom.xml +++ b/java-resourcemanager/google-cloud-resourcemanager-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-resourcemanager-bom - 1.69.0 + 1.70.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-resourcemanager - 1.69.0 + 1.70.0 com.google.api.grpc grpc-google-cloud-resourcemanager-v3 - 1.69.0 + 1.70.0 com.google.api.grpc proto-google-cloud-resourcemanager-v3 - 1.69.0 + 1.70.0 diff --git a/java-resourcemanager/google-cloud-resourcemanager/pom.xml b/java-resourcemanager/google-cloud-resourcemanager/pom.xml index d7bb2502950c..68efb5c68843 100644 --- a/java-resourcemanager/google-cloud-resourcemanager/pom.xml +++ b/java-resourcemanager/google-cloud-resourcemanager/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-resourcemanager jar - 1.69.0 + 1.70.0 Google Cloud Resource Manager Java idiomatic client for Google Cloud Resource Manager @@ -13,7 +13,7 @@ com.google.cloud google-cloud-resourcemanager-parent - 1.69.0 + 1.70.0 diff --git a/java-resourcemanager/grpc-google-cloud-resourcemanager-v3/pom.xml b/java-resourcemanager/grpc-google-cloud-resourcemanager-v3/pom.xml index 626dbed11846..9b0aca8dd4ca 100644 --- a/java-resourcemanager/grpc-google-cloud-resourcemanager-v3/pom.xml +++ b/java-resourcemanager/grpc-google-cloud-resourcemanager-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-resourcemanager-v3 - 1.69.0 + 1.70.0 grpc-google-cloud-resourcemanager-v3 GRPC library for google-cloud-resourcemanager com.google.cloud google-cloud-resourcemanager-parent - 1.69.0 + 1.70.0 diff --git a/java-resourcemanager/pom.xml b/java-resourcemanager/pom.xml index 39d0725997eb..d8fda67113cb 100644 --- a/java-resourcemanager/pom.xml +++ b/java-resourcemanager/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-resourcemanager-parent pom - 1.69.0 + 1.70.0 Google Resource Manager API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,18 +29,18 @@ com.google.cloud google-cloud-resourcemanager - 1.69.0 + 1.70.0 com.google.api.grpc proto-google-cloud-resourcemanager-v3 - 1.69.0 + 1.70.0 com.google.api.grpc grpc-google-cloud-resourcemanager-v3 - 1.69.0 + 1.70.0 diff --git a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/pom.xml b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/pom.xml index d86ef1818d0a..3e9065dacd5e 100644 --- a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/pom.xml +++ b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-resourcemanager-v3 - 1.69.0 + 1.70.0 proto-google-cloud-resourcemanager-v3 Proto library for google-cloud-resourcemanager com.google.cloud google-cloud-resourcemanager-parent - 1.69.0 + 1.70.0 diff --git a/java-retail/CHANGELOG.md b/java-retail/CHANGELOG.md index 7c6d1e4847f2..027e66e05f72 100644 --- a/java-retail/CHANGELOG.md +++ b/java-retail/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.70.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.69.0 (2025-06-25) ### Features diff --git a/java-retail/README.md b/java-retail/README.md index 56328ee1e16c..0762f38f672d 100644 --- a/java-retail/README.md +++ b/java-retail/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-retail - 2.68.0 + 2.69.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-retail:2.68.0' +implementation 'com.google.cloud:google-cloud-retail:2.69.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-retail" % "2.68.0" +libraryDependencies += "com.google.cloud" % "google-cloud-retail" % "2.69.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.68.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-retail/2.69.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/google-cloud-retail-bom/pom.xml b/java-retail/google-cloud-retail-bom/pom.xml index af9b931daf12..fdcacc4fd7f3 100644 --- a/java-retail/google-cloud-retail-bom/pom.xml +++ b/java-retail/google-cloud-retail-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-retail-bom - 2.69.0 + 2.70.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,37 +27,37 @@ com.google.cloud google-cloud-retail - 2.69.0 + 2.70.0 com.google.api.grpc grpc-google-cloud-retail-v2 - 2.69.0 + 2.70.0 com.google.api.grpc grpc-google-cloud-retail-v2alpha - 2.69.0 + 2.70.0 com.google.api.grpc grpc-google-cloud-retail-v2beta - 2.69.0 + 2.70.0 com.google.api.grpc proto-google-cloud-retail-v2 - 2.69.0 + 2.70.0 com.google.api.grpc proto-google-cloud-retail-v2alpha - 2.69.0 + 2.70.0 com.google.api.grpc proto-google-cloud-retail-v2beta - 2.69.0 + 2.70.0 diff --git a/java-retail/google-cloud-retail/pom.xml b/java-retail/google-cloud-retail/pom.xml index 16ce02641134..6b406a0b2ccd 100644 --- a/java-retail/google-cloud-retail/pom.xml +++ b/java-retail/google-cloud-retail/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-retail - 2.69.0 + 2.70.0 jar Google Cloud Retail Retail solutions API. com.google.cloud google-cloud-retail-parent - 2.69.0 + 2.70.0 google-cloud-retail diff --git a/java-retail/grpc-google-cloud-retail-v2/pom.xml b/java-retail/grpc-google-cloud-retail-v2/pom.xml index f15f94cf582a..d3197393e63e 100644 --- a/java-retail/grpc-google-cloud-retail-v2/pom.xml +++ b/java-retail/grpc-google-cloud-retail-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-retail-v2 - 2.69.0 + 2.70.0 grpc-google-cloud-retail-v2 GRPC library for google-cloud-retail com.google.cloud google-cloud-retail-parent - 2.69.0 + 2.70.0 diff --git a/java-retail/grpc-google-cloud-retail-v2alpha/pom.xml b/java-retail/grpc-google-cloud-retail-v2alpha/pom.xml index e3774f4c651e..376f1bf4f5d5 100644 --- a/java-retail/grpc-google-cloud-retail-v2alpha/pom.xml +++ b/java-retail/grpc-google-cloud-retail-v2alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-retail-v2alpha - 2.69.0 + 2.70.0 grpc-google-cloud-retail-v2alpha GRPC library for google-cloud-retail com.google.cloud google-cloud-retail-parent - 2.69.0 + 2.70.0 diff --git a/java-retail/grpc-google-cloud-retail-v2beta/pom.xml b/java-retail/grpc-google-cloud-retail-v2beta/pom.xml index 9e06cb7f9fd5..fdb0fbeacf3b 100644 --- a/java-retail/grpc-google-cloud-retail-v2beta/pom.xml +++ b/java-retail/grpc-google-cloud-retail-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-retail-v2beta - 2.69.0 + 2.70.0 grpc-google-cloud-retail-v2beta GRPC library for google-cloud-retail com.google.cloud google-cloud-retail-parent - 2.69.0 + 2.70.0 diff --git a/java-retail/pom.xml b/java-retail/pom.xml index 7f5f006d60e1..9d41ee9eaa26 100644 --- a/java-retail/pom.xml +++ b/java-retail/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-retail-parent pom - 2.69.0 + 2.70.0 Google Cloud Retail Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.cloud google-cloud-retail - 2.69.0 + 2.70.0 com.google.api.grpc proto-google-cloud-retail-v2beta - 2.69.0 + 2.70.0 com.google.api.grpc proto-google-cloud-retail-v2alpha - 2.69.0 + 2.70.0 com.google.api.grpc grpc-google-cloud-retail-v2beta - 2.69.0 + 2.70.0 com.google.api.grpc grpc-google-cloud-retail-v2alpha - 2.69.0 + 2.70.0 com.google.api.grpc proto-google-cloud-retail-v2 - 2.69.0 + 2.70.0 com.google.api.grpc grpc-google-cloud-retail-v2 - 2.69.0 + 2.70.0 diff --git a/java-retail/proto-google-cloud-retail-v2/pom.xml b/java-retail/proto-google-cloud-retail-v2/pom.xml index bd9df42a6fef..ae7801f22bfc 100644 --- a/java-retail/proto-google-cloud-retail-v2/pom.xml +++ b/java-retail/proto-google-cloud-retail-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-retail-v2 - 2.69.0 + 2.70.0 proto-google-cloud-retail-v2 Proto library for google-cloud-retail com.google.cloud google-cloud-retail-parent - 2.69.0 + 2.70.0 diff --git a/java-retail/proto-google-cloud-retail-v2alpha/pom.xml b/java-retail/proto-google-cloud-retail-v2alpha/pom.xml index 236a9b45fdc1..49b5f1c004e0 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/pom.xml +++ b/java-retail/proto-google-cloud-retail-v2alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-retail-v2alpha - 2.69.0 + 2.70.0 proto-google-cloud-retail-v2alpha Proto library for google-cloud-retail com.google.cloud google-cloud-retail-parent - 2.69.0 + 2.70.0 diff --git a/java-retail/proto-google-cloud-retail-v2beta/pom.xml b/java-retail/proto-google-cloud-retail-v2beta/pom.xml index fad5773a8f31..9acfe52464d3 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/pom.xml +++ b/java-retail/proto-google-cloud-retail-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-retail-v2beta - 2.69.0 + 2.70.0 proto-google-cloud-retail-v2beta Proto library for google-cloud-retail com.google.cloud google-cloud-retail-parent - 2.69.0 + 2.70.0 diff --git a/java-run/CHANGELOG.md b/java-run/CHANGELOG.md index 874b7792ebde..47fe5e5eaeb3 100644 --- a/java-run/CHANGELOG.md +++ b/java-run/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.68.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.67.0 (2025-06-25) ### Dependencies diff --git a/java-run/README.md b/java-run/README.md index ca27b2a50675..b90fe535e665 100644 --- a/java-run/README.md +++ b/java-run/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-run - 0.66.0 + 0.67.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-run:0.66.0' +implementation 'com.google.cloud:google-cloud-run:0.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-run" % "0.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-run" % "0.67.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-run.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-run/0.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-run/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-run/google-cloud-run-bom/pom.xml b/java-run/google-cloud-run-bom/pom.xml index 9c3a52044f9d..b412c3adaff7 100644 --- a/java-run/google-cloud-run-bom/pom.xml +++ b/java-run/google-cloud-run-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-run-bom - 0.67.0 + 0.68.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-run - 0.67.0 + 0.68.0 com.google.api.grpc grpc-google-cloud-run-v2 - 0.67.0 + 0.68.0 com.google.api.grpc proto-google-cloud-run-v2 - 0.67.0 + 0.68.0 diff --git a/java-run/google-cloud-run/pom.xml b/java-run/google-cloud-run/pom.xml index bdfddf503e78..0632005a5500 100644 --- a/java-run/google-cloud-run/pom.xml +++ b/java-run/google-cloud-run/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-run - 0.67.0 + 0.68.0 jar Google Cloud Run Cloud Run is a managed compute platform that enables you to run containers that are invocable via requests or events. com.google.cloud google-cloud-run-parent - 0.67.0 + 0.68.0 google-cloud-run diff --git a/java-run/grpc-google-cloud-run-v2/pom.xml b/java-run/grpc-google-cloud-run-v2/pom.xml index 93549527f6b9..4e78cc82f46c 100644 --- a/java-run/grpc-google-cloud-run-v2/pom.xml +++ b/java-run/grpc-google-cloud-run-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-run-v2 - 0.67.0 + 0.68.0 grpc-google-cloud-run-v2 GRPC library for google-cloud-run com.google.cloud google-cloud-run-parent - 0.67.0 + 0.68.0 diff --git a/java-run/pom.xml b/java-run/pom.xml index 0487f5059483..fd9cb375fe19 100644 --- a/java-run/pom.xml +++ b/java-run/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-run-parent pom - 0.67.0 + 0.68.0 Google Cloud Run Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-run - 0.67.0 + 0.68.0 com.google.api.grpc grpc-google-cloud-run-v2 - 0.67.0 + 0.68.0 com.google.api.grpc proto-google-cloud-run-v2 - 0.67.0 + 0.68.0 diff --git a/java-run/proto-google-cloud-run-v2/pom.xml b/java-run/proto-google-cloud-run-v2/pom.xml index e93d952b3907..f60332c00039 100644 --- a/java-run/proto-google-cloud-run-v2/pom.xml +++ b/java-run/proto-google-cloud-run-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-run-v2 - 0.67.0 + 0.68.0 proto-google-cloud-run-v2 Proto library for google-cloud-run com.google.cloud google-cloud-run-parent - 0.67.0 + 0.68.0 diff --git a/java-samples/pom.xml b/java-samples/pom.xml index d865aa340da6..ada7d768f155 100644 --- a/java-samples/pom.xml +++ b/java-samples/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml diff --git a/java-scheduler/CHANGELOG.md b/java-scheduler/CHANGELOG.md index ce70f631fe9b..f2070b508578 100644 --- a/java-scheduler/CHANGELOG.md +++ b/java-scheduler/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.68.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.67.0 (2025-06-25) ### Dependencies diff --git a/java-scheduler/README.md b/java-scheduler/README.md index c0604bb9c581..cf09dacbf708 100644 --- a/java-scheduler/README.md +++ b/java-scheduler/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-scheduler - 2.66.0 + 2.67.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-scheduler:2.66.0' +implementation 'com.google.cloud:google-cloud-scheduler:2.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-scheduler" % "2.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-scheduler" % "2.67.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-scheduler/2.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-scheduler/google-cloud-scheduler-bom/pom.xml b/java-scheduler/google-cloud-scheduler-bom/pom.xml index 3fe133d2ec89..5087f9ef5de0 100644 --- a/java-scheduler/google-cloud-scheduler-bom/pom.xml +++ b/java-scheduler/google-cloud-scheduler-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-scheduler-bom - 2.67.0 + 2.68.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-scheduler - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-scheduler-v1beta1 - 0.152.0 + 0.153.0 com.google.api.grpc grpc-google-cloud-scheduler-v1 - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-cloud-scheduler-v1beta1 - 0.152.0 + 0.153.0 com.google.api.grpc proto-google-cloud-scheduler-v1 - 2.67.0 + 2.68.0 diff --git a/java-scheduler/google-cloud-scheduler/pom.xml b/java-scheduler/google-cloud-scheduler/pom.xml index 475560c4117d..cee89a45e7ff 100644 --- a/java-scheduler/google-cloud-scheduler/pom.xml +++ b/java-scheduler/google-cloud-scheduler/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-scheduler - 2.67.0 + 2.68.0 jar Google Cloud Scheduler Fully managed cron job service com.google.cloud google-cloud-scheduler-parent - 2.67.0 + 2.68.0 google-cloud-scheduler diff --git a/java-scheduler/grpc-google-cloud-scheduler-v1/pom.xml b/java-scheduler/grpc-google-cloud-scheduler-v1/pom.xml index 17571663a0a6..31e960fda53d 100644 --- a/java-scheduler/grpc-google-cloud-scheduler-v1/pom.xml +++ b/java-scheduler/grpc-google-cloud-scheduler-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-scheduler-v1 - 2.67.0 + 2.68.0 grpc-google-cloud-scheduler-v1 GRPC library for grpc-google-cloud-scheduler-v1 com.google.cloud google-cloud-scheduler-parent - 2.67.0 + 2.68.0 diff --git a/java-scheduler/grpc-google-cloud-scheduler-v1beta1/pom.xml b/java-scheduler/grpc-google-cloud-scheduler-v1beta1/pom.xml index 44b3f9ce97a2..adc7505f61ac 100644 --- a/java-scheduler/grpc-google-cloud-scheduler-v1beta1/pom.xml +++ b/java-scheduler/grpc-google-cloud-scheduler-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-scheduler-v1beta1 - 0.152.0 + 0.153.0 grpc-google-cloud-scheduler-v1beta1 GRPC library for grpc-google-cloud-scheduler-v1beta1 com.google.cloud google-cloud-scheduler-parent - 2.67.0 + 2.68.0 diff --git a/java-scheduler/pom.xml b/java-scheduler/pom.xml index ea2cc32678b1..60aab591b863 100644 --- a/java-scheduler/pom.xml +++ b/java-scheduler/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-scheduler-parent pom - 2.67.0 + 2.68.0 Google Cloud Scheduler Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-scheduler-v1beta1 - 0.152.0 + 0.153.0 com.google.api.grpc proto-google-cloud-scheduler-v1 - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-scheduler-v1beta1 - 0.152.0 + 0.153.0 com.google.api.grpc grpc-google-cloud-scheduler-v1 - 2.67.0 + 2.68.0 com.google.cloud google-cloud-scheduler - 2.67.0 + 2.68.0 diff --git a/java-scheduler/proto-google-cloud-scheduler-v1/pom.xml b/java-scheduler/proto-google-cloud-scheduler-v1/pom.xml index 2c7799382b89..d244777aa631 100644 --- a/java-scheduler/proto-google-cloud-scheduler-v1/pom.xml +++ b/java-scheduler/proto-google-cloud-scheduler-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-scheduler-v1 - 2.67.0 + 2.68.0 proto-google-cloud-scheduler-v1 PROTO library for proto-google-cloud-scheduler-v1 com.google.cloud google-cloud-scheduler-parent - 2.67.0 + 2.68.0 diff --git a/java-scheduler/proto-google-cloud-scheduler-v1beta1/pom.xml b/java-scheduler/proto-google-cloud-scheduler-v1beta1/pom.xml index 80007181c55f..94acefcd7638 100644 --- a/java-scheduler/proto-google-cloud-scheduler-v1beta1/pom.xml +++ b/java-scheduler/proto-google-cloud-scheduler-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-scheduler-v1beta1 - 0.152.0 + 0.153.0 proto-google-cloud-scheduler-v1beta1 PROTO library for proto-google-cloud-scheduler-v1beta1 com.google.cloud google-cloud-scheduler-parent - 2.67.0 + 2.68.0 diff --git a/java-secretmanager/CHANGELOG.md b/java-secretmanager/CHANGELOG.md index b24e080d83ac..61f298b06c6c 100644 --- a/java-secretmanager/CHANGELOG.md +++ b/java-secretmanager/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.68.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.67.0 (2025-06-25) ### Dependencies diff --git a/java-secretmanager/README.md b/java-secretmanager/README.md index be657743ab3f..5bf09b6a89cc 100644 --- a/java-secretmanager/README.md +++ b/java-secretmanager/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-secretmanager - 2.66.0 + 2.67.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-secretmanager:2.66.0' +implementation 'com.google.cloud:google-cloud-secretmanager:2.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-secretmanager" % "2.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-secretmanager" % "2.67.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-secretmanager/2.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-secretmanager/google-cloud-secretmanager-bom/pom.xml b/java-secretmanager/google-cloud-secretmanager-bom/pom.xml index fa875c253f93..1761e4c9b793 100644 --- a/java-secretmanager/google-cloud-secretmanager-bom/pom.xml +++ b/java-secretmanager/google-cloud-secretmanager-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-secretmanager-bom - 2.67.0 + 2.68.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -23,37 +23,37 @@ com.google.cloud google-cloud-secretmanager - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-secretmanager-v1 - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-secretmanager-v1beta2 - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-secretmanager-v1beta1 - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-cloud-secretmanager-v1 - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-cloud-secretmanager-v1beta2 - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-cloud-secretmanager-v1beta1 - 2.67.0 + 2.68.0 diff --git a/java-secretmanager/google-cloud-secretmanager/pom.xml b/java-secretmanager/google-cloud-secretmanager/pom.xml index 3c675e45fbf6..2df3c012e040 100644 --- a/java-secretmanager/google-cloud-secretmanager/pom.xml +++ b/java-secretmanager/google-cloud-secretmanager/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-secretmanager - 2.67.0 + 2.68.0 jar Google Cloud Secret Manager Java idiomatic client for Google Cloud Secret Manager com.google.cloud google-cloud-secretmanager-parent - 2.67.0 + 2.68.0 google-cloud-secretmanager diff --git a/java-secretmanager/grpc-google-cloud-secretmanager-v1/pom.xml b/java-secretmanager/grpc-google-cloud-secretmanager-v1/pom.xml index 29fef0a0b333..72f1aa02944a 100644 --- a/java-secretmanager/grpc-google-cloud-secretmanager-v1/pom.xml +++ b/java-secretmanager/grpc-google-cloud-secretmanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-secretmanager-v1 - 2.67.0 + 2.68.0 grpc-google-cloud-secretmanager-v1 GRPC library for grpc-google-cloud-secretmanager-v1 com.google.cloud google-cloud-secretmanager-parent - 2.67.0 + 2.68.0 diff --git a/java-secretmanager/grpc-google-cloud-secretmanager-v1beta1/pom.xml b/java-secretmanager/grpc-google-cloud-secretmanager-v1beta1/pom.xml index fada82a0147e..1e1056c89dc0 100644 --- a/java-secretmanager/grpc-google-cloud-secretmanager-v1beta1/pom.xml +++ b/java-secretmanager/grpc-google-cloud-secretmanager-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-secretmanager-v1beta1 - 2.67.0 + 2.68.0 grpc-google-cloud-secretmanager-v1beta1 GRPC library for google-cloud-secretmanager com.google.cloud google-cloud-secretmanager-parent - 2.67.0 + 2.68.0 diff --git a/java-secretmanager/grpc-google-cloud-secretmanager-v1beta2/pom.xml b/java-secretmanager/grpc-google-cloud-secretmanager-v1beta2/pom.xml index 2c6a4d8a90bf..f35beb07b104 100644 --- a/java-secretmanager/grpc-google-cloud-secretmanager-v1beta2/pom.xml +++ b/java-secretmanager/grpc-google-cloud-secretmanager-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-secretmanager-v1beta2 - 2.67.0 + 2.68.0 grpc-google-cloud-secretmanager-v1beta2 GRPC library for google-cloud-secretmanager com.google.cloud google-cloud-secretmanager-parent - 2.67.0 + 2.68.0 diff --git a/java-secretmanager/pom.xml b/java-secretmanager/pom.xml index 36c6d5e88785..209aef61b2f7 100644 --- a/java-secretmanager/pom.xml +++ b/java-secretmanager/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-secretmanager-parent pom - 2.67.0 + 2.68.0 Google Cloud secretmanager Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.api.grpc proto-google-cloud-secretmanager-v1 - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-cloud-secretmanager-v1beta1 - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-secretmanager-v1beta1 - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-cloud-secretmanager-v1beta2 - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-secretmanager-v1beta2 - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-secretmanager-v1 - 2.67.0 + 2.68.0 com.google.cloud google-cloud-secretmanager - 2.67.0 + 2.68.0 diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/pom.xml b/java-secretmanager/proto-google-cloud-secretmanager-v1/pom.xml index 987e6f2a2317..a10a0da4d6f4 100644 --- a/java-secretmanager/proto-google-cloud-secretmanager-v1/pom.xml +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-secretmanager-v1 - 2.67.0 + 2.68.0 proto-google-cloud-secretmanager-v1 PROTO library for proto-google-cloud-secretmanager-v1 com.google.cloud google-cloud-secretmanager-parent - 2.67.0 + 2.68.0 diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1beta1/pom.xml b/java-secretmanager/proto-google-cloud-secretmanager-v1beta1/pom.xml index 239e471cb5ec..6e580fea7aa8 100644 --- a/java-secretmanager/proto-google-cloud-secretmanager-v1beta1/pom.xml +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-secretmanager-v1beta1 - 2.67.0 + 2.68.0 proto-google-cloud-secretmanager-v1beta1 Proto library for google-cloud-secretmanager com.google.cloud google-cloud-secretmanager-parent - 2.67.0 + 2.68.0 diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/pom.xml b/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/pom.xml index a80b8429178e..7261f9659307 100644 --- a/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/pom.xml +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-secretmanager-v1beta2 - 2.67.0 + 2.68.0 proto-google-cloud-secretmanager-v1beta2 Proto library for google-cloud-secretmanager com.google.cloud google-cloud-secretmanager-parent - 2.67.0 + 2.68.0 diff --git a/java-securesourcemanager/CHANGELOG.md b/java-securesourcemanager/CHANGELOG.md index 0ff05a813f27..e0a93a029974 100644 --- a/java-securesourcemanager/CHANGELOG.md +++ b/java-securesourcemanager/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.38.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.37.0 (2025-06-25) ### Dependencies diff --git a/java-securesourcemanager/README.md b/java-securesourcemanager/README.md index c10041fbe7ba..b66d4b3fbe17 100644 --- a/java-securesourcemanager/README.md +++ b/java-securesourcemanager/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-securesourcemanager - 0.36.0 + 0.37.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securesourcemanager:0.36.0' +implementation 'com.google.cloud:google-cloud-securesourcemanager:0.37.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securesourcemanager" % "0.36.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securesourcemanager" % "0.37.0" ``` ## Authentication @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.36.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securesourcemanager/0.37.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/google-cloud-securesourcemanager-bom/pom.xml b/java-securesourcemanager/google-cloud-securesourcemanager-bom/pom.xml index dea9b2bb92f4..4a9e4e06af56 100644 --- a/java-securesourcemanager/google-cloud-securesourcemanager-bom/pom.xml +++ b/java-securesourcemanager/google-cloud-securesourcemanager-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-securesourcemanager-bom - 0.37.0 + 0.38.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-securesourcemanager - 0.37.0 + 0.38.0 com.google.api.grpc grpc-google-cloud-securesourcemanager-v1 - 0.37.0 + 0.38.0 com.google.api.grpc proto-google-cloud-securesourcemanager-v1 - 0.37.0 + 0.38.0 diff --git a/java-securesourcemanager/google-cloud-securesourcemanager/pom.xml b/java-securesourcemanager/google-cloud-securesourcemanager/pom.xml index 0ebc14b802bb..7158e8b4c9b8 100644 --- a/java-securesourcemanager/google-cloud-securesourcemanager/pom.xml +++ b/java-securesourcemanager/google-cloud-securesourcemanager/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-securesourcemanager - 0.37.0 + 0.38.0 jar Google Secure Source Manager API Secure Source Manager API Regionally deployed, single-tenant managed source code repository hosted on @@ -11,7 +11,7 @@ com.google.cloud google-cloud-securesourcemanager-parent - 0.37.0 + 0.38.0 google-cloud-securesourcemanager diff --git a/java-securesourcemanager/grpc-google-cloud-securesourcemanager-v1/pom.xml b/java-securesourcemanager/grpc-google-cloud-securesourcemanager-v1/pom.xml index a246be44a3a7..9948d548907f 100644 --- a/java-securesourcemanager/grpc-google-cloud-securesourcemanager-v1/pom.xml +++ b/java-securesourcemanager/grpc-google-cloud-securesourcemanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-securesourcemanager-v1 - 0.37.0 + 0.38.0 grpc-google-cloud-securesourcemanager-v1 GRPC library for google-cloud-securesourcemanager com.google.cloud google-cloud-securesourcemanager-parent - 0.37.0 + 0.38.0 diff --git a/java-securesourcemanager/pom.xml b/java-securesourcemanager/pom.xml index 7eccf3cfe900..2031bc7bcc3f 100644 --- a/java-securesourcemanager/pom.xml +++ b/java-securesourcemanager/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-securesourcemanager-parent pom - 0.37.0 + 0.38.0 Google Secure Source Manager API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-securesourcemanager - 0.37.0 + 0.38.0 com.google.api.grpc grpc-google-cloud-securesourcemanager-v1 - 0.37.0 + 0.38.0 com.google.api.grpc proto-google-cloud-securesourcemanager-v1 - 0.37.0 + 0.38.0 diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/pom.xml b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/pom.xml index 52e97c66c79e..9e66d6eafcde 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/pom.xml +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-securesourcemanager-v1 - 0.37.0 + 0.38.0 proto-google-cloud-securesourcemanager-v1 Proto library for google-cloud-securesourcemanager com.google.cloud google-cloud-securesourcemanager-parent - 0.37.0 + 0.38.0 diff --git a/java-security-private-ca/CHANGELOG.md b/java-security-private-ca/CHANGELOG.md index 11889b7c3946..670236e76c41 100644 --- a/java-security-private-ca/CHANGELOG.md +++ b/java-security-private-ca/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.70.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.69.0 (2025-06-25) ### Dependencies diff --git a/java-security-private-ca/README.md b/java-security-private-ca/README.md index b9316a761e42..455e97dae759 100644 --- a/java-security-private-ca/README.md +++ b/java-security-private-ca/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-security-private-ca - 2.68.0 + 2.69.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-security-private-ca:2.68.0' +implementation 'com.google.cloud:google-cloud-security-private-ca:2.69.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-security-private-ca" % "2.68.0" +libraryDependencies += "com.google.cloud" % "google-cloud-security-private-ca" % "2.69.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.68.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-security-private-ca/2.69.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/google-cloud-security-private-ca-bom/pom.xml b/java-security-private-ca/google-cloud-security-private-ca-bom/pom.xml index 5d61cb545dbf..8c7a78054fe3 100644 --- a/java-security-private-ca/google-cloud-security-private-ca-bom/pom.xml +++ b/java-security-private-ca/google-cloud-security-private-ca-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-security-private-ca-bom - 2.69.0 + 2.70.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-security-private-ca - 2.69.0 + 2.70.0 com.google.api.grpc grpc-google-cloud-security-private-ca-v1beta1 - 0.76.0 + 0.77.0 com.google.api.grpc grpc-google-cloud-security-private-ca-v1 - 2.69.0 + 2.70.0 com.google.api.grpc proto-google-cloud-security-private-ca-v1beta1 - 0.76.0 + 0.77.0 com.google.api.grpc proto-google-cloud-security-private-ca-v1 - 2.69.0 + 2.70.0 diff --git a/java-security-private-ca/google-cloud-security-private-ca/pom.xml b/java-security-private-ca/google-cloud-security-private-ca/pom.xml index 6cec2cc85115..1726dcd89395 100644 --- a/java-security-private-ca/google-cloud-security-private-ca/pom.xml +++ b/java-security-private-ca/google-cloud-security-private-ca/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-security-private-ca - 2.69.0 + 2.70.0 jar Google Certificate Authority Service simplifies the deployment and management of private CAs without managing infrastructure. com.google.cloud google-cloud-security-private-ca-parent - 2.69.0 + 2.70.0 google-cloud-security-private-ca diff --git a/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClient.java b/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClient.java index c0b1e572de23..75056f820445 100644 --- a/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClient.java +++ b/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClient.java @@ -890,8 +890,9 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param certificateId Optional. It must be unique within a location and match the regular * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the - * Enterprise [CertificateAuthority.Tier][], but is optional and its value is ignored - * otherwise. + * Enterprise + * [CertificateAuthority.tier][google.cloud.security.privateca.v1.CertificateAuthority.tier], + * but is optional and its value is ignored otherwise. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Certificate createCertificate( @@ -937,8 +938,9 @@ public final Certificate createCertificate( * @param certificateId Optional. It must be unique within a location and match the regular * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the - * Enterprise [CertificateAuthority.Tier][], but is optional and its value is ignored - * otherwise. + * Enterprise + * [CertificateAuthority.tier][google.cloud.security.privateca.v1.CertificateAuthority.tier], + * but is optional and its value is ignored otherwise. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Certificate createCertificate( diff --git a/java-security-private-ca/google-cloud-security-private-ca/src/main/resources/META-INF/native-image/com.google.cloud.security.privateca.v1/reflect-config.json b/java-security-private-ca/google-cloud-security-private-ca/src/main/resources/META-INF/native-image/com.google.cloud.security.privateca.v1/reflect-config.json index 3acfee220ba8..3fe5d5af265a 100644 --- a/java-security-private-ca/google-cloud-security-private-ca/src/main/resources/META-INF/native-image/com.google.cloud.security.privateca.v1/reflect-config.json +++ b/java-security-private-ca/google-cloud-security-private-ca/src/main/resources/META-INF/native-image/com.google.cloud.security.privateca.v1/reflect-config.json @@ -116,6 +116,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.FieldInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldInfo$Format", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.GoSettings", "queryAllDeclaredConstructors": true, @@ -413,6 +440,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.TypeReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.TypeReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, @@ -503,6 +548,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.security.privateca.v1.AttributeType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.security.privateca.v1.AttributeTypeAndValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.security.privateca.v1.AttributeTypeAndValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.security.privateca.v1.CaPool", "queryAllDeclaredConstructors": true, @@ -773,6 +845,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.security.privateca.v1.CertificateAuthority$UserDefinedAccessUrls", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.security.privateca.v1.CertificateAuthority$UserDefinedAccessUrls$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.security.privateca.v1.CertificateConfig", "queryAllDeclaredConstructors": true, @@ -1646,6 +1736,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.security.privateca.v1.RelativeDistinguishedName", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.security.privateca.v1.RelativeDistinguishedName$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.security.privateca.v1.RevocationReason", "queryAllDeclaredConstructors": true, diff --git a/java-security-private-ca/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClientHttpJsonTest.java b/java-security-private-ca/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClientHttpJsonTest.java index 5912f7d09aeb..63a863d7bcd1 100644 --- a/java-security-private-ca/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClientHttpJsonTest.java +++ b/java-security-private-ca/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClientHttpJsonTest.java @@ -717,6 +717,10 @@ public void activateCertificateAuthorityTest() throws Exception { .setDeleteTime(Timestamp.newBuilder().build()) .setExpireTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) + .setUserDefinedAccessUrls( + CertificateAuthority.UserDefinedAccessUrls.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -786,6 +790,10 @@ public void activateCertificateAuthorityTest2() throws Exception { .setDeleteTime(Timestamp.newBuilder().build()) .setExpireTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) + .setUserDefinedAccessUrls( + CertificateAuthority.UserDefinedAccessUrls.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -853,6 +861,10 @@ public void createCertificateAuthorityTest() throws Exception { .setDeleteTime(Timestamp.newBuilder().build()) .setExpireTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) + .setUserDefinedAccessUrls( + CertificateAuthority.UserDefinedAccessUrls.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -927,6 +939,10 @@ public void createCertificateAuthorityTest2() throws Exception { .setDeleteTime(Timestamp.newBuilder().build()) .setExpireTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) + .setUserDefinedAccessUrls( + CertificateAuthority.UserDefinedAccessUrls.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -1001,6 +1017,10 @@ public void disableCertificateAuthorityTest() throws Exception { .setDeleteTime(Timestamp.newBuilder().build()) .setExpireTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) + .setUserDefinedAccessUrls( + CertificateAuthority.UserDefinedAccessUrls.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -1070,6 +1090,10 @@ public void disableCertificateAuthorityTest2() throws Exception { .setDeleteTime(Timestamp.newBuilder().build()) .setExpireTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) + .setUserDefinedAccessUrls( + CertificateAuthority.UserDefinedAccessUrls.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -1137,6 +1161,10 @@ public void enableCertificateAuthorityTest() throws Exception { .setDeleteTime(Timestamp.newBuilder().build()) .setExpireTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) + .setUserDefinedAccessUrls( + CertificateAuthority.UserDefinedAccessUrls.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -1206,6 +1234,10 @@ public void enableCertificateAuthorityTest2() throws Exception { .setDeleteTime(Timestamp.newBuilder().build()) .setExpireTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) + .setUserDefinedAccessUrls( + CertificateAuthority.UserDefinedAccessUrls.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -1363,6 +1395,10 @@ public void getCertificateAuthorityTest() throws Exception { .setDeleteTime(Timestamp.newBuilder().build()) .setExpireTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) + .setUserDefinedAccessUrls( + CertificateAuthority.UserDefinedAccessUrls.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); mockService.addResponse(expectedResponse); @@ -1427,6 +1463,10 @@ public void getCertificateAuthorityTest2() throws Exception { .setDeleteTime(Timestamp.newBuilder().build()) .setExpireTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) + .setUserDefinedAccessUrls( + CertificateAuthority.UserDefinedAccessUrls.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); mockService.addResponse(expectedResponse); @@ -1591,6 +1631,10 @@ public void undeleteCertificateAuthorityTest() throws Exception { .setDeleteTime(Timestamp.newBuilder().build()) .setExpireTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) + .setUserDefinedAccessUrls( + CertificateAuthority.UserDefinedAccessUrls.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -1660,6 +1704,10 @@ public void undeleteCertificateAuthorityTest2() throws Exception { .setDeleteTime(Timestamp.newBuilder().build()) .setExpireTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) + .setUserDefinedAccessUrls( + CertificateAuthority.UserDefinedAccessUrls.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -1727,6 +1775,10 @@ public void deleteCertificateAuthorityTest() throws Exception { .setDeleteTime(Timestamp.newBuilder().build()) .setExpireTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) + .setUserDefinedAccessUrls( + CertificateAuthority.UserDefinedAccessUrls.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -1796,6 +1848,10 @@ public void deleteCertificateAuthorityTest2() throws Exception { .setDeleteTime(Timestamp.newBuilder().build()) .setExpireTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) + .setUserDefinedAccessUrls( + CertificateAuthority.UserDefinedAccessUrls.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -1863,6 +1919,10 @@ public void updateCertificateAuthorityTest() throws Exception { .setDeleteTime(Timestamp.newBuilder().build()) .setExpireTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) + .setUserDefinedAccessUrls( + CertificateAuthority.UserDefinedAccessUrls.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -1891,6 +1951,10 @@ public void updateCertificateAuthorityTest() throws Exception { .setDeleteTime(Timestamp.newBuilder().build()) .setExpireTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) + .setUserDefinedAccessUrls( + CertificateAuthority.UserDefinedAccessUrls.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -1940,6 +2004,10 @@ public void updateCertificateAuthorityExceptionTest() throws Exception { .setDeleteTime(Timestamp.newBuilder().build()) .setExpireTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) + .setUserDefinedAccessUrls( + CertificateAuthority.UserDefinedAccessUrls.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateCertificateAuthorityAsync(certificateAuthority, updateMask).get(); diff --git a/java-security-private-ca/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClientTest.java b/java-security-private-ca/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClientTest.java index 567d69b75dc7..969c8e73cf7a 100644 --- a/java-security-private-ca/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClientTest.java +++ b/java-security-private-ca/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClientTest.java @@ -632,6 +632,10 @@ public void activateCertificateAuthorityTest() throws Exception { .setDeleteTime(Timestamp.newBuilder().build()) .setExpireTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) + .setUserDefinedAccessUrls( + CertificateAuthority.UserDefinedAccessUrls.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -699,6 +703,10 @@ public void activateCertificateAuthorityTest2() throws Exception { .setDeleteTime(Timestamp.newBuilder().build()) .setExpireTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) + .setUserDefinedAccessUrls( + CertificateAuthority.UserDefinedAccessUrls.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -762,6 +770,10 @@ public void createCertificateAuthorityTest() throws Exception { .setDeleteTime(Timestamp.newBuilder().build()) .setExpireTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) + .setUserDefinedAccessUrls( + CertificateAuthority.UserDefinedAccessUrls.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -836,6 +848,10 @@ public void createCertificateAuthorityTest2() throws Exception { .setDeleteTime(Timestamp.newBuilder().build()) .setExpireTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) + .setUserDefinedAccessUrls( + CertificateAuthority.UserDefinedAccessUrls.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -910,6 +926,10 @@ public void disableCertificateAuthorityTest() throws Exception { .setDeleteTime(Timestamp.newBuilder().build()) .setExpireTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) + .setUserDefinedAccessUrls( + CertificateAuthority.UserDefinedAccessUrls.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -977,6 +997,10 @@ public void disableCertificateAuthorityTest2() throws Exception { .setDeleteTime(Timestamp.newBuilder().build()) .setExpireTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) + .setUserDefinedAccessUrls( + CertificateAuthority.UserDefinedAccessUrls.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -1040,6 +1064,10 @@ public void enableCertificateAuthorityTest() throws Exception { .setDeleteTime(Timestamp.newBuilder().build()) .setExpireTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) + .setUserDefinedAccessUrls( + CertificateAuthority.UserDefinedAccessUrls.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -1107,6 +1135,10 @@ public void enableCertificateAuthorityTest2() throws Exception { .setDeleteTime(Timestamp.newBuilder().build()) .setExpireTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) + .setUserDefinedAccessUrls( + CertificateAuthority.UserDefinedAccessUrls.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -1248,6 +1280,10 @@ public void getCertificateAuthorityTest() throws Exception { .setDeleteTime(Timestamp.newBuilder().build()) .setExpireTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) + .setUserDefinedAccessUrls( + CertificateAuthority.UserDefinedAccessUrls.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); mockCertificateAuthorityService.addResponse(expectedResponse); @@ -1307,6 +1343,10 @@ public void getCertificateAuthorityTest2() throws Exception { .setDeleteTime(Timestamp.newBuilder().build()) .setExpireTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) + .setUserDefinedAccessUrls( + CertificateAuthority.UserDefinedAccessUrls.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); mockCertificateAuthorityService.addResponse(expectedResponse); @@ -1454,6 +1494,10 @@ public void undeleteCertificateAuthorityTest() throws Exception { .setDeleteTime(Timestamp.newBuilder().build()) .setExpireTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) + .setUserDefinedAccessUrls( + CertificateAuthority.UserDefinedAccessUrls.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -1521,6 +1565,10 @@ public void undeleteCertificateAuthorityTest2() throws Exception { .setDeleteTime(Timestamp.newBuilder().build()) .setExpireTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) + .setUserDefinedAccessUrls( + CertificateAuthority.UserDefinedAccessUrls.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -1584,6 +1632,10 @@ public void deleteCertificateAuthorityTest() throws Exception { .setDeleteTime(Timestamp.newBuilder().build()) .setExpireTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) + .setUserDefinedAccessUrls( + CertificateAuthority.UserDefinedAccessUrls.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -1651,6 +1703,10 @@ public void deleteCertificateAuthorityTest2() throws Exception { .setDeleteTime(Timestamp.newBuilder().build()) .setExpireTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) + .setUserDefinedAccessUrls( + CertificateAuthority.UserDefinedAccessUrls.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -1714,6 +1770,10 @@ public void updateCertificateAuthorityTest() throws Exception { .setDeleteTime(Timestamp.newBuilder().build()) .setExpireTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) + .setUserDefinedAccessUrls( + CertificateAuthority.UserDefinedAccessUrls.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); Operation resultOperation = Operation.newBuilder() diff --git a/java-security-private-ca/grpc-google-cloud-security-private-ca-v1/pom.xml b/java-security-private-ca/grpc-google-cloud-security-private-ca-v1/pom.xml index 43b5c35c445d..67c087fb8617 100644 --- a/java-security-private-ca/grpc-google-cloud-security-private-ca-v1/pom.xml +++ b/java-security-private-ca/grpc-google-cloud-security-private-ca-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-security-private-ca-v1 - 2.69.0 + 2.70.0 grpc-google-cloud-security-private-ca-v1 GRPC library for google-cloud-security-private-ca com.google.cloud google-cloud-security-private-ca-parent - 2.69.0 + 2.70.0 diff --git a/java-security-private-ca/grpc-google-cloud-security-private-ca-v1beta1/pom.xml b/java-security-private-ca/grpc-google-cloud-security-private-ca-v1beta1/pom.xml index 5c6367cd397d..10c09bf822c2 100644 --- a/java-security-private-ca/grpc-google-cloud-security-private-ca-v1beta1/pom.xml +++ b/java-security-private-ca/grpc-google-cloud-security-private-ca-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-security-private-ca-v1beta1 - 0.76.0 + 0.77.0 grpc-google-cloud-security-private-ca-v1beta1 GRPC library for google-cloud-security-private-ca com.google.cloud google-cloud-security-private-ca-parent - 2.69.0 + 2.70.0 diff --git a/java-security-private-ca/pom.xml b/java-security-private-ca/pom.xml index 1b70da78ed84..3b10aa1d3cb6 100644 --- a/java-security-private-ca/pom.xml +++ b/java-security-private-ca/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-security-private-ca-parent pom - 2.69.0 + 2.70.0 Google Certificate Authority Service Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-security-private-ca - 2.69.0 + 2.70.0 com.google.api.grpc proto-google-cloud-security-private-ca-v1 - 2.69.0 + 2.70.0 com.google.api.grpc grpc-google-cloud-security-private-ca-v1 - 2.69.0 + 2.70.0 com.google.api.grpc proto-google-cloud-security-private-ca-v1beta1 - 0.76.0 + 0.77.0 com.google.api.grpc grpc-google-cloud-security-private-ca-v1beta1 - 0.76.0 + 0.77.0 diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/pom.xml b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/pom.xml index 367c6f618176..a29a19b1fe8b 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/pom.xml +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-security-private-ca-v1 - 2.69.0 + 2.70.0 proto-google-cloud-security-private-ca-v1 Proto library for google-cloud-security-private-ca com.google.cloud google-cloud-security-private-ca-parent - 2.69.0 + 2.70.0 diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ActivateCertificateAuthorityRequest.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ActivateCertificateAuthorityRequest.java index 8889049234c2..c092ef6c0ec5 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ActivateCertificateAuthorityRequest.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ActivateCertificateAuthorityRequest.java @@ -274,7 +274,9 @@ public com.google.cloud.security.privateca.v1.SubordinateConfig getSubordinateCo * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The requestId. */ @@ -310,7 +312,9 @@ public java.lang.String getRequestId() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The bytes for requestId. */ @@ -1280,7 +1284,9 @@ public Builder clearSubordinateConfig() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The requestId. */ @@ -1315,7 +1321,9 @@ public java.lang.String getRequestId() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The bytes for requestId. */ @@ -1350,7 +1358,9 @@ public com.google.protobuf.ByteString getRequestIdBytes() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @param value The requestId to set. * @return This builder for chaining. @@ -1384,7 +1394,9 @@ public Builder setRequestId(java.lang.String value) { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return This builder for chaining. */ @@ -1414,7 +1426,9 @@ public Builder clearRequestId() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @param value The bytes for requestId to set. * @return This builder for chaining. diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ActivateCertificateAuthorityRequestOrBuilder.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ActivateCertificateAuthorityRequestOrBuilder.java index 0dc762b3a3b9..ff82dc8babfe 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ActivateCertificateAuthorityRequestOrBuilder.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ActivateCertificateAuthorityRequestOrBuilder.java @@ -151,7 +151,9 @@ public interface ActivateCertificateAuthorityRequestOrBuilder * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The requestId. */ @@ -176,7 +178,9 @@ public interface ActivateCertificateAuthorityRequestOrBuilder * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The bytes for requestId. */ diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/AttributeType.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/AttributeType.java new file mode 100644 index 000000000000..f3c33cf217aa --- /dev/null +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/AttributeType.java @@ -0,0 +1,320 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/security/privateca/v1/resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.security.privateca.v1; + +/** + * + * + *
      + * [AttributeType][google.cloud.security.privateca.v1.AttributeType] specifies
      + * the type of Attribute in a relative distinguished name.
      + * 
      + * + * Protobuf enum {@code google.cloud.security.privateca.v1.AttributeType} + */ +public enum AttributeType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +   * Attribute type is unspecified.
      +   * 
      + * + * ATTRIBUTE_TYPE_UNSPECIFIED = 0; + */ + ATTRIBUTE_TYPE_UNSPECIFIED(0), + /** + * + * + *
      +   * The "common name" of the subject.
      +   * 
      + * + * COMMON_NAME = 1; + */ + COMMON_NAME(1), + /** + * + * + *
      +   * The country code of the subject.
      +   * 
      + * + * COUNTRY_CODE = 2; + */ + COUNTRY_CODE(2), + /** + * + * + *
      +   * The organization of the subject.
      +   * 
      + * + * ORGANIZATION = 3; + */ + ORGANIZATION(3), + /** + * + * + *
      +   * The organizational unit of the subject.
      +   * 
      + * + * ORGANIZATIONAL_UNIT = 4; + */ + ORGANIZATIONAL_UNIT(4), + /** + * + * + *
      +   * The locality or city of the subject.
      +   * 
      + * + * LOCALITY = 5; + */ + LOCALITY(5), + /** + * + * + *
      +   * The province, territory, or regional state of the subject.
      +   * 
      + * + * PROVINCE = 6; + */ + PROVINCE(6), + /** + * + * + *
      +   * The street address of the subject.
      +   * 
      + * + * STREET_ADDRESS = 7; + */ + STREET_ADDRESS(7), + /** + * + * + *
      +   * The postal code of the subject.
      +   * 
      + * + * POSTAL_CODE = 8; + */ + POSTAL_CODE(8), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
      +   * Attribute type is unspecified.
      +   * 
      + * + * ATTRIBUTE_TYPE_UNSPECIFIED = 0; + */ + public static final int ATTRIBUTE_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +   * The "common name" of the subject.
      +   * 
      + * + * COMMON_NAME = 1; + */ + public static final int COMMON_NAME_VALUE = 1; + + /** + * + * + *
      +   * The country code of the subject.
      +   * 
      + * + * COUNTRY_CODE = 2; + */ + public static final int COUNTRY_CODE_VALUE = 2; + + /** + * + * + *
      +   * The organization of the subject.
      +   * 
      + * + * ORGANIZATION = 3; + */ + public static final int ORGANIZATION_VALUE = 3; + + /** + * + * + *
      +   * The organizational unit of the subject.
      +   * 
      + * + * ORGANIZATIONAL_UNIT = 4; + */ + public static final int ORGANIZATIONAL_UNIT_VALUE = 4; + + /** + * + * + *
      +   * The locality or city of the subject.
      +   * 
      + * + * LOCALITY = 5; + */ + public static final int LOCALITY_VALUE = 5; + + /** + * + * + *
      +   * The province, territory, or regional state of the subject.
      +   * 
      + * + * PROVINCE = 6; + */ + public static final int PROVINCE_VALUE = 6; + + /** + * + * + *
      +   * The street address of the subject.
      +   * 
      + * + * STREET_ADDRESS = 7; + */ + public static final int STREET_ADDRESS_VALUE = 7; + + /** + * + * + *
      +   * The postal code of the subject.
      +   * 
      + * + * POSTAL_CODE = 8; + */ + public static final int POSTAL_CODE_VALUE = 8; + + 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 AttributeType 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 AttributeType forNumber(int value) { + switch (value) { + case 0: + return ATTRIBUTE_TYPE_UNSPECIFIED; + case 1: + return COMMON_NAME; + case 2: + return COUNTRY_CODE; + case 3: + return ORGANIZATION; + case 4: + return ORGANIZATIONAL_UNIT; + case 5: + return LOCALITY; + case 6: + return PROVINCE; + case 7: + return STREET_ADDRESS; + case 8: + return POSTAL_CODE; + 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 AttributeType findValueByNumber(int number) { + return AttributeType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final AttributeType[] VALUES = values(); + + public static AttributeType 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 AttributeType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.security.privateca.v1.AttributeType) +} diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/AttributeTypeAndValue.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/AttributeTypeAndValue.java new file mode 100644 index 000000000000..109c95137f1c --- /dev/null +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/AttributeTypeAndValue.java @@ -0,0 +1,1241 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/security/privateca/v1/resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.security.privateca.v1; + +/** + * + * + *
      + * [AttributeTypeAndValue][google.cloud.security.privateca.v1.AttributeTypeAndValue]
      + * specifies an attribute type and value. It can use either a OID or enum value
      + * to specify the attribute type.
      + * 
      + * + * Protobuf type {@code google.cloud.security.privateca.v1.AttributeTypeAndValue} + */ +public final class AttributeTypeAndValue extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.AttributeTypeAndValue) + AttributeTypeAndValueOrBuilder { + private static final long serialVersionUID = 0L; + + // Use AttributeTypeAndValue.newBuilder() to construct. + private AttributeTypeAndValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AttributeTypeAndValue() { + value_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AttributeTypeAndValue(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_AttributeTypeAndValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_AttributeTypeAndValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.security.privateca.v1.AttributeTypeAndValue.class, + com.google.cloud.security.privateca.v1.AttributeTypeAndValue.Builder.class); + } + + private int attributeTypeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object attributeType_; + + public enum AttributeTypeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TYPE(1), + OBJECT_ID(2), + ATTRIBUTETYPE_NOT_SET(0); + private final int value; + + private AttributeTypeCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static AttributeTypeCase valueOf(int value) { + return forNumber(value); + } + + public static AttributeTypeCase forNumber(int value) { + switch (value) { + case 1: + return TYPE; + case 2: + return OBJECT_ID; + case 0: + return ATTRIBUTETYPE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public AttributeTypeCase getAttributeTypeCase() { + return AttributeTypeCase.forNumber(attributeTypeCase_); + } + + public static final int TYPE_FIELD_NUMBER = 1; + + /** + * + * + *
      +   * The attribute type of the attribute and value pair.
      +   * 
      + * + * .google.cloud.security.privateca.v1.AttributeType type = 1; + * + * @return Whether the type field is set. + */ + public boolean hasType() { + return attributeTypeCase_ == 1; + } + + /** + * + * + *
      +   * The attribute type of the attribute and value pair.
      +   * 
      + * + * .google.cloud.security.privateca.v1.AttributeType type = 1; + * + * @return The enum numeric value on the wire for type. + */ + public int getTypeValue() { + if (attributeTypeCase_ == 1) { + return (java.lang.Integer) attributeType_; + } + return 0; + } + + /** + * + * + *
      +   * The attribute type of the attribute and value pair.
      +   * 
      + * + * .google.cloud.security.privateca.v1.AttributeType type = 1; + * + * @return The type. + */ + public com.google.cloud.security.privateca.v1.AttributeType getType() { + if (attributeTypeCase_ == 1) { + com.google.cloud.security.privateca.v1.AttributeType result = + com.google.cloud.security.privateca.v1.AttributeType.forNumber( + (java.lang.Integer) attributeType_); + return result == null + ? com.google.cloud.security.privateca.v1.AttributeType.UNRECOGNIZED + : result; + } + return com.google.cloud.security.privateca.v1.AttributeType.ATTRIBUTE_TYPE_UNSPECIFIED; + } + + public static final int OBJECT_ID_FIELD_NUMBER = 2; + + /** + * + * + *
      +   * Object ID for an attribute type of an attribute and value pair.
      +   * 
      + * + * .google.cloud.security.privateca.v1.ObjectId object_id = 2; + * + * @return Whether the objectId field is set. + */ + @java.lang.Override + public boolean hasObjectId() { + return attributeTypeCase_ == 2; + } + + /** + * + * + *
      +   * Object ID for an attribute type of an attribute and value pair.
      +   * 
      + * + * .google.cloud.security.privateca.v1.ObjectId object_id = 2; + * + * @return The objectId. + */ + @java.lang.Override + public com.google.cloud.security.privateca.v1.ObjectId getObjectId() { + if (attributeTypeCase_ == 2) { + return (com.google.cloud.security.privateca.v1.ObjectId) attributeType_; + } + return com.google.cloud.security.privateca.v1.ObjectId.getDefaultInstance(); + } + + /** + * + * + *
      +   * Object ID for an attribute type of an attribute and value pair.
      +   * 
      + * + * .google.cloud.security.privateca.v1.ObjectId object_id = 2; + */ + @java.lang.Override + public com.google.cloud.security.privateca.v1.ObjectIdOrBuilder getObjectIdOrBuilder() { + if (attributeTypeCase_ == 2) { + return (com.google.cloud.security.privateca.v1.ObjectId) attributeType_; + } + return com.google.cloud.security.privateca.v1.ObjectId.getDefaultInstance(); + } + + public static final int VALUE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object value_ = ""; + + /** + * + * + *
      +   * The value for the attribute type.
      +   * 
      + * + * string value = 3; + * + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } + } + + /** + * + * + *
      +   * The value for the attribute type.
      +   * 
      + * + * string value = 3; + * + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (attributeTypeCase_ == 1) { + output.writeEnum(1, ((java.lang.Integer) attributeType_)); + } + if (attributeTypeCase_ == 2) { + output.writeMessage(2, (com.google.cloud.security.privateca.v1.ObjectId) attributeType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, value_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (attributeTypeCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 1, ((java.lang.Integer) attributeType_)); + } + if (attributeTypeCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.security.privateca.v1.ObjectId) attributeType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, value_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.security.privateca.v1.AttributeTypeAndValue)) { + return super.equals(obj); + } + com.google.cloud.security.privateca.v1.AttributeTypeAndValue other = + (com.google.cloud.security.privateca.v1.AttributeTypeAndValue) obj; + + if (!getValue().equals(other.getValue())) return false; + if (!getAttributeTypeCase().equals(other.getAttributeTypeCase())) return false; + switch (attributeTypeCase_) { + case 1: + if (getTypeValue() != other.getTypeValue()) return false; + break; + case 2: + if (!getObjectId().equals(other.getObjectId())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + switch (attributeTypeCase_) { + case 1: + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getTypeValue(); + break; + case 2: + hash = (37 * hash) + OBJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getObjectId().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.security.privateca.v1.AttributeTypeAndValue parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.security.privateca.v1.AttributeTypeAndValue parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.security.privateca.v1.AttributeTypeAndValue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.security.privateca.v1.AttributeTypeAndValue parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.security.privateca.v1.AttributeTypeAndValue parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.security.privateca.v1.AttributeTypeAndValue parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.security.privateca.v1.AttributeTypeAndValue parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.security.privateca.v1.AttributeTypeAndValue parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.security.privateca.v1.AttributeTypeAndValue parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.security.privateca.v1.AttributeTypeAndValue parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.security.privateca.v1.AttributeTypeAndValue parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.security.privateca.v1.AttributeTypeAndValue parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.AttributeTypeAndValue prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * [AttributeTypeAndValue][google.cloud.security.privateca.v1.AttributeTypeAndValue]
      +   * specifies an attribute type and value. It can use either a OID or enum value
      +   * to specify the attribute type.
      +   * 
      + * + * Protobuf type {@code google.cloud.security.privateca.v1.AttributeTypeAndValue} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.AttributeTypeAndValue) + com.google.cloud.security.privateca.v1.AttributeTypeAndValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_AttributeTypeAndValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_AttributeTypeAndValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.security.privateca.v1.AttributeTypeAndValue.class, + com.google.cloud.security.privateca.v1.AttributeTypeAndValue.Builder.class); + } + + // Construct using com.google.cloud.security.privateca.v1.AttributeTypeAndValue.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (objectIdBuilder_ != null) { + objectIdBuilder_.clear(); + } + value_ = ""; + attributeTypeCase_ = 0; + attributeType_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_AttributeTypeAndValue_descriptor; + } + + @java.lang.Override + public com.google.cloud.security.privateca.v1.AttributeTypeAndValue + getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1.AttributeTypeAndValue.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.security.privateca.v1.AttributeTypeAndValue build() { + com.google.cloud.security.privateca.v1.AttributeTypeAndValue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.security.privateca.v1.AttributeTypeAndValue buildPartial() { + com.google.cloud.security.privateca.v1.AttributeTypeAndValue result = + new com.google.cloud.security.privateca.v1.AttributeTypeAndValue(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.security.privateca.v1.AttributeTypeAndValue result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.value_ = value_; + } + } + + private void buildPartialOneofs( + com.google.cloud.security.privateca.v1.AttributeTypeAndValue result) { + result.attributeTypeCase_ = attributeTypeCase_; + result.attributeType_ = this.attributeType_; + if (attributeTypeCase_ == 2 && objectIdBuilder_ != null) { + result.attributeType_ = objectIdBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.security.privateca.v1.AttributeTypeAndValue) { + return mergeFrom((com.google.cloud.security.privateca.v1.AttributeTypeAndValue) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.security.privateca.v1.AttributeTypeAndValue other) { + if (other + == com.google.cloud.security.privateca.v1.AttributeTypeAndValue.getDefaultInstance()) + return this; + if (!other.getValue().isEmpty()) { + value_ = other.value_; + bitField0_ |= 0x00000004; + onChanged(); + } + switch (other.getAttributeTypeCase()) { + case TYPE: + { + setTypeValue(other.getTypeValue()); + break; + } + case OBJECT_ID: + { + mergeObjectId(other.getObjectId()); + break; + } + case ATTRIBUTETYPE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + attributeTypeCase_ = 1; + attributeType_ = rawValue; + break; + } // case 8 + case 18: + { + input.readMessage(getObjectIdFieldBuilder().getBuilder(), extensionRegistry); + attributeTypeCase_ = 2; + break; + } // case 18 + case 26: + { + value_ = 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 attributeTypeCase_ = 0; + private java.lang.Object attributeType_; + + public AttributeTypeCase getAttributeTypeCase() { + return AttributeTypeCase.forNumber(attributeTypeCase_); + } + + public Builder clearAttributeType() { + attributeTypeCase_ = 0; + attributeType_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
      +     * The attribute type of the attribute and value pair.
      +     * 
      + * + * .google.cloud.security.privateca.v1.AttributeType type = 1; + * + * @return Whether the type field is set. + */ + @java.lang.Override + public boolean hasType() { + return attributeTypeCase_ == 1; + } + + /** + * + * + *
      +     * The attribute type of the attribute and value pair.
      +     * 
      + * + * .google.cloud.security.privateca.v1.AttributeType type = 1; + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + if (attributeTypeCase_ == 1) { + return ((java.lang.Integer) attributeType_).intValue(); + } + return 0; + } + + /** + * + * + *
      +     * The attribute type of the attribute and value pair.
      +     * 
      + * + * .google.cloud.security.privateca.v1.AttributeType type = 1; + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + attributeTypeCase_ = 1; + attributeType_ = value; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The attribute type of the attribute and value pair.
      +     * 
      + * + * .google.cloud.security.privateca.v1.AttributeType type = 1; + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.security.privateca.v1.AttributeType getType() { + if (attributeTypeCase_ == 1) { + com.google.cloud.security.privateca.v1.AttributeType result = + com.google.cloud.security.privateca.v1.AttributeType.forNumber( + (java.lang.Integer) attributeType_); + return result == null + ? com.google.cloud.security.privateca.v1.AttributeType.UNRECOGNIZED + : result; + } + return com.google.cloud.security.privateca.v1.AttributeType.ATTRIBUTE_TYPE_UNSPECIFIED; + } + + /** + * + * + *
      +     * The attribute type of the attribute and value pair.
      +     * 
      + * + * .google.cloud.security.privateca.v1.AttributeType type = 1; + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.cloud.security.privateca.v1.AttributeType value) { + if (value == null) { + throw new NullPointerException(); + } + attributeTypeCase_ = 1; + attributeType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * The attribute type of the attribute and value pair.
      +     * 
      + * + * .google.cloud.security.privateca.v1.AttributeType type = 1; + * + * @return This builder for chaining. + */ + public Builder clearType() { + if (attributeTypeCase_ == 1) { + attributeTypeCase_ = 0; + attributeType_ = null; + onChanged(); + } + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.ObjectId, + com.google.cloud.security.privateca.v1.ObjectId.Builder, + com.google.cloud.security.privateca.v1.ObjectIdOrBuilder> + objectIdBuilder_; + + /** + * + * + *
      +     * Object ID for an attribute type of an attribute and value pair.
      +     * 
      + * + * .google.cloud.security.privateca.v1.ObjectId object_id = 2; + * + * @return Whether the objectId field is set. + */ + @java.lang.Override + public boolean hasObjectId() { + return attributeTypeCase_ == 2; + } + + /** + * + * + *
      +     * Object ID for an attribute type of an attribute and value pair.
      +     * 
      + * + * .google.cloud.security.privateca.v1.ObjectId object_id = 2; + * + * @return The objectId. + */ + @java.lang.Override + public com.google.cloud.security.privateca.v1.ObjectId getObjectId() { + if (objectIdBuilder_ == null) { + if (attributeTypeCase_ == 2) { + return (com.google.cloud.security.privateca.v1.ObjectId) attributeType_; + } + return com.google.cloud.security.privateca.v1.ObjectId.getDefaultInstance(); + } else { + if (attributeTypeCase_ == 2) { + return objectIdBuilder_.getMessage(); + } + return com.google.cloud.security.privateca.v1.ObjectId.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Object ID for an attribute type of an attribute and value pair.
      +     * 
      + * + * .google.cloud.security.privateca.v1.ObjectId object_id = 2; + */ + public Builder setObjectId(com.google.cloud.security.privateca.v1.ObjectId value) { + if (objectIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + attributeType_ = value; + onChanged(); + } else { + objectIdBuilder_.setMessage(value); + } + attributeTypeCase_ = 2; + return this; + } + + /** + * + * + *
      +     * Object ID for an attribute type of an attribute and value pair.
      +     * 
      + * + * .google.cloud.security.privateca.v1.ObjectId object_id = 2; + */ + public Builder setObjectId( + com.google.cloud.security.privateca.v1.ObjectId.Builder builderForValue) { + if (objectIdBuilder_ == null) { + attributeType_ = builderForValue.build(); + onChanged(); + } else { + objectIdBuilder_.setMessage(builderForValue.build()); + } + attributeTypeCase_ = 2; + return this; + } + + /** + * + * + *
      +     * Object ID for an attribute type of an attribute and value pair.
      +     * 
      + * + * .google.cloud.security.privateca.v1.ObjectId object_id = 2; + */ + public Builder mergeObjectId(com.google.cloud.security.privateca.v1.ObjectId value) { + if (objectIdBuilder_ == null) { + if (attributeTypeCase_ == 2 + && attributeType_ + != com.google.cloud.security.privateca.v1.ObjectId.getDefaultInstance()) { + attributeType_ = + com.google.cloud.security.privateca.v1.ObjectId.newBuilder( + (com.google.cloud.security.privateca.v1.ObjectId) attributeType_) + .mergeFrom(value) + .buildPartial(); + } else { + attributeType_ = value; + } + onChanged(); + } else { + if (attributeTypeCase_ == 2) { + objectIdBuilder_.mergeFrom(value); + } else { + objectIdBuilder_.setMessage(value); + } + } + attributeTypeCase_ = 2; + return this; + } + + /** + * + * + *
      +     * Object ID for an attribute type of an attribute and value pair.
      +     * 
      + * + * .google.cloud.security.privateca.v1.ObjectId object_id = 2; + */ + public Builder clearObjectId() { + if (objectIdBuilder_ == null) { + if (attributeTypeCase_ == 2) { + attributeTypeCase_ = 0; + attributeType_ = null; + onChanged(); + } + } else { + if (attributeTypeCase_ == 2) { + attributeTypeCase_ = 0; + attributeType_ = null; + } + objectIdBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Object ID for an attribute type of an attribute and value pair.
      +     * 
      + * + * .google.cloud.security.privateca.v1.ObjectId object_id = 2; + */ + public com.google.cloud.security.privateca.v1.ObjectId.Builder getObjectIdBuilder() { + return getObjectIdFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Object ID for an attribute type of an attribute and value pair.
      +     * 
      + * + * .google.cloud.security.privateca.v1.ObjectId object_id = 2; + */ + @java.lang.Override + public com.google.cloud.security.privateca.v1.ObjectIdOrBuilder getObjectIdOrBuilder() { + if ((attributeTypeCase_ == 2) && (objectIdBuilder_ != null)) { + return objectIdBuilder_.getMessageOrBuilder(); + } else { + if (attributeTypeCase_ == 2) { + return (com.google.cloud.security.privateca.v1.ObjectId) attributeType_; + } + return com.google.cloud.security.privateca.v1.ObjectId.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Object ID for an attribute type of an attribute and value pair.
      +     * 
      + * + * .google.cloud.security.privateca.v1.ObjectId object_id = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.ObjectId, + com.google.cloud.security.privateca.v1.ObjectId.Builder, + com.google.cloud.security.privateca.v1.ObjectIdOrBuilder> + getObjectIdFieldBuilder() { + if (objectIdBuilder_ == null) { + if (!(attributeTypeCase_ == 2)) { + attributeType_ = com.google.cloud.security.privateca.v1.ObjectId.getDefaultInstance(); + } + objectIdBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.ObjectId, + com.google.cloud.security.privateca.v1.ObjectId.Builder, + com.google.cloud.security.privateca.v1.ObjectIdOrBuilder>( + (com.google.cloud.security.privateca.v1.ObjectId) attributeType_, + getParentForChildren(), + isClean()); + attributeType_ = null; + } + attributeTypeCase_ = 2; + onChanged(); + return objectIdBuilder_; + } + + private java.lang.Object value_ = ""; + + /** + * + * + *
      +     * The value for the attribute type.
      +     * 
      + * + * string value = 3; + * + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * The value for the attribute type.
      +     * 
      + * + * string value = 3; + * + * @return The bytes for value. + */ + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * The value for the attribute type.
      +     * 
      + * + * string value = 3; + * + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The value for the attribute type.
      +     * 
      + * + * string value = 3; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * The value for the attribute type.
      +     * 
      + * + * string value = 3; + * + * @param value The bytes for value to set. + * @return This builder for chaining. + */ + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.AttributeTypeAndValue) + } + + // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.AttributeTypeAndValue) + private static final com.google.cloud.security.privateca.v1.AttributeTypeAndValue + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.AttributeTypeAndValue(); + } + + public static com.google.cloud.security.privateca.v1.AttributeTypeAndValue getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AttributeTypeAndValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.security.privateca.v1.AttributeTypeAndValue getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/AttributeTypeAndValueOrBuilder.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/AttributeTypeAndValueOrBuilder.java new file mode 100644 index 000000000000..e617f5b8acdd --- /dev/null +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/AttributeTypeAndValueOrBuilder.java @@ -0,0 +1,131 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/security/privateca/v1/resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.security.privateca.v1; + +public interface AttributeTypeAndValueOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.AttributeTypeAndValue) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * The attribute type of the attribute and value pair.
      +   * 
      + * + * .google.cloud.security.privateca.v1.AttributeType type = 1; + * + * @return Whether the type field is set. + */ + boolean hasType(); + + /** + * + * + *
      +   * The attribute type of the attribute and value pair.
      +   * 
      + * + * .google.cloud.security.privateca.v1.AttributeType type = 1; + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + + /** + * + * + *
      +   * The attribute type of the attribute and value pair.
      +   * 
      + * + * .google.cloud.security.privateca.v1.AttributeType type = 1; + * + * @return The type. + */ + com.google.cloud.security.privateca.v1.AttributeType getType(); + + /** + * + * + *
      +   * Object ID for an attribute type of an attribute and value pair.
      +   * 
      + * + * .google.cloud.security.privateca.v1.ObjectId object_id = 2; + * + * @return Whether the objectId field is set. + */ + boolean hasObjectId(); + + /** + * + * + *
      +   * Object ID for an attribute type of an attribute and value pair.
      +   * 
      + * + * .google.cloud.security.privateca.v1.ObjectId object_id = 2; + * + * @return The objectId. + */ + com.google.cloud.security.privateca.v1.ObjectId getObjectId(); + + /** + * + * + *
      +   * Object ID for an attribute type of an attribute and value pair.
      +   * 
      + * + * .google.cloud.security.privateca.v1.ObjectId object_id = 2; + */ + com.google.cloud.security.privateca.v1.ObjectIdOrBuilder getObjectIdOrBuilder(); + + /** + * + * + *
      +   * The value for the attribute type.
      +   * 
      + * + * string value = 3; + * + * @return The value. + */ + java.lang.String getValue(); + + /** + * + * + *
      +   * The value for the attribute type.
      +   * 
      + * + * string value = 3; + * + * @return The bytes for value. + */ + com.google.protobuf.ByteString getValueBytes(); + + com.google.cloud.security.privateca.v1.AttributeTypeAndValue.AttributeTypeCase + getAttributeTypeCase(); +} diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CaPool.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CaPool.java index db16a4a1fed8..fda8f0719e83 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CaPool.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CaPool.java @@ -1500,6 +1500,67 @@ com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType getA com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTypeOrBuilder getAllowedKeyTypesOrBuilder(int index); + /** + * + * + *
      +     * Optional. The duration to backdate all certificates issued from this
      +     * [CaPool][google.cloud.security.privateca.v1.CaPool]. If not set, the
      +     * certificates will be issued with a not_before_time of the issuance time
      +     * (i.e. the current time). If set, the certificates will be issued with a
      +     * not_before_time of the issuance time minus the backdate_duration. The
      +     * not_after_time will be adjusted to preserve the requested lifetime. The
      +     * backdate_duration must be less than or equal to 48 hours.
      +     * 
      + * + * + * .google.protobuf.Duration backdate_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the backdateDuration field is set. + */ + boolean hasBackdateDuration(); + + /** + * + * + *
      +     * Optional. The duration to backdate all certificates issued from this
      +     * [CaPool][google.cloud.security.privateca.v1.CaPool]. If not set, the
      +     * certificates will be issued with a not_before_time of the issuance time
      +     * (i.e. the current time). If set, the certificates will be issued with a
      +     * not_before_time of the issuance time minus the backdate_duration. The
      +     * not_after_time will be adjusted to preserve the requested lifetime. The
      +     * backdate_duration must be less than or equal to 48 hours.
      +     * 
      + * + * + * .google.protobuf.Duration backdate_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The backdateDuration. + */ + com.google.protobuf.Duration getBackdateDuration(); + + /** + * + * + *
      +     * Optional. The duration to backdate all certificates issued from this
      +     * [CaPool][google.cloud.security.privateca.v1.CaPool]. If not set, the
      +     * certificates will be issued with a not_before_time of the issuance time
      +     * (i.e. the current time). If set, the certificates will be issued with a
      +     * not_before_time of the issuance time minus the backdate_duration. The
      +     * not_after_time will be adjusted to preserve the requested lifetime. The
      +     * backdate_duration must be less than or equal to 48 hours.
      +     * 
      + * + * + * .google.protobuf.Duration backdate_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.DurationOrBuilder getBackdateDurationOrBuilder(); + /** * * @@ -5824,6 +5885,83 @@ public int getAllowedKeyTypesCount() { return allowedKeyTypes_.get(index); } + public static final int BACKDATE_DURATION_FIELD_NUMBER = 7; + private com.google.protobuf.Duration backdateDuration_; + + /** + * + * + *
      +     * Optional. The duration to backdate all certificates issued from this
      +     * [CaPool][google.cloud.security.privateca.v1.CaPool]. If not set, the
      +     * certificates will be issued with a not_before_time of the issuance time
      +     * (i.e. the current time). If set, the certificates will be issued with a
      +     * not_before_time of the issuance time minus the backdate_duration. The
      +     * not_after_time will be adjusted to preserve the requested lifetime. The
      +     * backdate_duration must be less than or equal to 48 hours.
      +     * 
      + * + * + * .google.protobuf.Duration backdate_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the backdateDuration field is set. + */ + @java.lang.Override + public boolean hasBackdateDuration() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +     * Optional. The duration to backdate all certificates issued from this
      +     * [CaPool][google.cloud.security.privateca.v1.CaPool]. If not set, the
      +     * certificates will be issued with a not_before_time of the issuance time
      +     * (i.e. the current time). If set, the certificates will be issued with a
      +     * not_before_time of the issuance time minus the backdate_duration. The
      +     * not_after_time will be adjusted to preserve the requested lifetime. The
      +     * backdate_duration must be less than or equal to 48 hours.
      +     * 
      + * + * + * .google.protobuf.Duration backdate_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The backdateDuration. + */ + @java.lang.Override + public com.google.protobuf.Duration getBackdateDuration() { + return backdateDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : backdateDuration_; + } + + /** + * + * + *
      +     * Optional. The duration to backdate all certificates issued from this
      +     * [CaPool][google.cloud.security.privateca.v1.CaPool]. If not set, the
      +     * certificates will be issued with a not_before_time of the issuance time
      +     * (i.e. the current time). If set, the certificates will be issued with a
      +     * not_before_time of the issuance time minus the backdate_duration. The
      +     * not_after_time will be adjusted to preserve the requested lifetime. The
      +     * backdate_duration must be less than or equal to 48 hours.
      +     * 
      + * + * + * .google.protobuf.Duration backdate_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getBackdateDurationOrBuilder() { + return backdateDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : backdateDuration_; + } + public static final int MAXIMUM_LIFETIME_FIELD_NUMBER = 2; private com.google.protobuf.Duration maximumLifetime_; @@ -5849,7 +5987,7 @@ public int getAllowedKeyTypesCount() { */ @java.lang.Override public boolean hasMaximumLifetime() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** @@ -5926,7 +6064,7 @@ public com.google.protobuf.DurationOrBuilder getMaximumLifetimeOrBuilder() { */ @java.lang.Override public boolean hasAllowedIssuanceModes() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** @@ -6003,7 +6141,7 @@ public boolean hasAllowedIssuanceModes() { */ @java.lang.Override public boolean hasBaselineValues() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** @@ -6084,7 +6222,7 @@ public com.google.cloud.security.privateca.v1.X509Parameters getBaselineValues() */ @java.lang.Override public boolean hasIdentityConstraints() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** @@ -6171,7 +6309,7 @@ public boolean hasIdentityConstraints() { */ @java.lang.Override public boolean hasPassthroughExtensions() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** @@ -6263,21 +6401,24 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < allowedKeyTypes_.size(); i++) { output.writeMessage(1, allowedKeyTypes_.get(i)); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getMaximumLifetime()); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getAllowedIssuanceModes()); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(4, getBaselineValues()); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(5, getIdentityConstraints()); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(6, getPassthroughExtensions()); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(7, getBackdateDuration()); + } getUnknownFields().writeTo(output); } @@ -6291,24 +6432,27 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, allowedKeyTypes_.get(i)); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMaximumLifetime()); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAllowedIssuanceModes()); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getBaselineValues()); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getIdentityConstraints()); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getPassthroughExtensions()); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getBackdateDuration()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -6326,6 +6470,10 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy) obj; if (!getAllowedKeyTypesList().equals(other.getAllowedKeyTypesList())) return false; + if (hasBackdateDuration() != other.hasBackdateDuration()) return false; + if (hasBackdateDuration()) { + if (!getBackdateDuration().equals(other.getBackdateDuration())) return false; + } if (hasMaximumLifetime() != other.hasMaximumLifetime()) return false; if (hasMaximumLifetime()) { if (!getMaximumLifetime().equals(other.getMaximumLifetime())) return false; @@ -6361,6 +6509,10 @@ public int hashCode() { hash = (37 * hash) + ALLOWED_KEY_TYPES_FIELD_NUMBER; hash = (53 * hash) + getAllowedKeyTypesList().hashCode(); } + if (hasBackdateDuration()) { + hash = (37 * hash) + BACKDATE_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getBackdateDuration().hashCode(); + } if (hasMaximumLifetime()) { hash = (37 * hash) + MAXIMUM_LIFETIME_FIELD_NUMBER; hash = (53 * hash) + getMaximumLifetime().hashCode(); @@ -6527,6 +6679,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getAllowedKeyTypesFieldBuilder(); + getBackdateDurationFieldBuilder(); getMaximumLifetimeFieldBuilder(); getAllowedIssuanceModesFieldBuilder(); getBaselineValuesFieldBuilder(); @@ -6546,6 +6699,11 @@ public Builder clear() { allowedKeyTypesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); + backdateDuration_ = null; + if (backdateDurationBuilder_ != null) { + backdateDurationBuilder_.dispose(); + backdateDurationBuilder_ = null; + } maximumLifetime_ = null; if (maximumLifetimeBuilder_ != null) { maximumLifetimeBuilder_.dispose(); @@ -6625,35 +6783,42 @@ private void buildPartial0( int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.maximumLifetime_ = - maximumLifetimeBuilder_ == null ? maximumLifetime_ : maximumLifetimeBuilder_.build(); + result.backdateDuration_ = + backdateDurationBuilder_ == null + ? backdateDuration_ + : backdateDurationBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { + result.maximumLifetime_ = + maximumLifetimeBuilder_ == null ? maximumLifetime_ : maximumLifetimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { result.allowedIssuanceModes_ = allowedIssuanceModesBuilder_ == null ? allowedIssuanceModes_ : allowedIssuanceModesBuilder_.build(); - to_bitField0_ |= 0x00000002; + to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.baselineValues_ = baselineValuesBuilder_ == null ? baselineValues_ : baselineValuesBuilder_.build(); - to_bitField0_ |= 0x00000004; + to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.identityConstraints_ = identityConstraintsBuilder_ == null ? identityConstraints_ : identityConstraintsBuilder_.build(); - to_bitField0_ |= 0x00000008; + to_bitField0_ |= 0x00000010; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.passthroughExtensions_ = passthroughExtensionsBuilder_ == null ? passthroughExtensions_ : passthroughExtensionsBuilder_.build(); - to_bitField0_ |= 0x00000010; + to_bitField0_ |= 0x00000020; } result.bitField0_ |= to_bitField0_; } @@ -6734,6 +6899,9 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1.CaPool.IssuanceP } } } + if (other.hasBackdateDuration()) { + mergeBackdateDuration(other.getBackdateDuration()); + } if (other.hasMaximumLifetime()) { mergeMaximumLifetime(other.getMaximumLifetime()); } @@ -6794,37 +6962,44 @@ public Builder mergeFrom( { input.readMessage( getMaximumLifetimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; break; } // case 18 case 26: { input.readMessage( getAllowedIssuanceModesFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 26 case 34: { input.readMessage( getBaselineValuesFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 34 case 42: { input.readMessage( getIdentityConstraintsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 42 case 50: { input.readMessage( getPassthroughExtensionsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 50 + case 58: + { + input.readMessage( + getBackdateDurationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -7339,6 +7514,272 @@ public Builder removeAllowedKeyTypes(int index) { return allowedKeyTypesBuilder_; } + private com.google.protobuf.Duration backdateDuration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + backdateDurationBuilder_; + + /** + * + * + *
      +       * Optional. The duration to backdate all certificates issued from this
      +       * [CaPool][google.cloud.security.privateca.v1.CaPool]. If not set, the
      +       * certificates will be issued with a not_before_time of the issuance time
      +       * (i.e. the current time). If set, the certificates will be issued with a
      +       * not_before_time of the issuance time minus the backdate_duration. The
      +       * not_after_time will be adjusted to preserve the requested lifetime. The
      +       * backdate_duration must be less than or equal to 48 hours.
      +       * 
      + * + * + * .google.protobuf.Duration backdate_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the backdateDuration field is set. + */ + public boolean hasBackdateDuration() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +       * Optional. The duration to backdate all certificates issued from this
      +       * [CaPool][google.cloud.security.privateca.v1.CaPool]. If not set, the
      +       * certificates will be issued with a not_before_time of the issuance time
      +       * (i.e. the current time). If set, the certificates will be issued with a
      +       * not_before_time of the issuance time minus the backdate_duration. The
      +       * not_after_time will be adjusted to preserve the requested lifetime. The
      +       * backdate_duration must be less than or equal to 48 hours.
      +       * 
      + * + * + * .google.protobuf.Duration backdate_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The backdateDuration. + */ + public com.google.protobuf.Duration getBackdateDuration() { + if (backdateDurationBuilder_ == null) { + return backdateDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : backdateDuration_; + } else { + return backdateDurationBuilder_.getMessage(); + } + } + + /** + * + * + *
      +       * Optional. The duration to backdate all certificates issued from this
      +       * [CaPool][google.cloud.security.privateca.v1.CaPool]. If not set, the
      +       * certificates will be issued with a not_before_time of the issuance time
      +       * (i.e. the current time). If set, the certificates will be issued with a
      +       * not_before_time of the issuance time minus the backdate_duration. The
      +       * not_after_time will be adjusted to preserve the requested lifetime. The
      +       * backdate_duration must be less than or equal to 48 hours.
      +       * 
      + * + * + * .google.protobuf.Duration backdate_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBackdateDuration(com.google.protobuf.Duration value) { + if (backdateDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + backdateDuration_ = value; + } else { + backdateDurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The duration to backdate all certificates issued from this
      +       * [CaPool][google.cloud.security.privateca.v1.CaPool]. If not set, the
      +       * certificates will be issued with a not_before_time of the issuance time
      +       * (i.e. the current time). If set, the certificates will be issued with a
      +       * not_before_time of the issuance time minus the backdate_duration. The
      +       * not_after_time will be adjusted to preserve the requested lifetime. The
      +       * backdate_duration must be less than or equal to 48 hours.
      +       * 
      + * + * + * .google.protobuf.Duration backdate_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBackdateDuration(com.google.protobuf.Duration.Builder builderForValue) { + if (backdateDurationBuilder_ == null) { + backdateDuration_ = builderForValue.build(); + } else { + backdateDurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The duration to backdate all certificates issued from this
      +       * [CaPool][google.cloud.security.privateca.v1.CaPool]. If not set, the
      +       * certificates will be issued with a not_before_time of the issuance time
      +       * (i.e. the current time). If set, the certificates will be issued with a
      +       * not_before_time of the issuance time minus the backdate_duration. The
      +       * not_after_time will be adjusted to preserve the requested lifetime. The
      +       * backdate_duration must be less than or equal to 48 hours.
      +       * 
      + * + * + * .google.protobuf.Duration backdate_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeBackdateDuration(com.google.protobuf.Duration value) { + if (backdateDurationBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && backdateDuration_ != null + && backdateDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + getBackdateDurationBuilder().mergeFrom(value); + } else { + backdateDuration_ = value; + } + } else { + backdateDurationBuilder_.mergeFrom(value); + } + if (backdateDuration_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
      +       * Optional. The duration to backdate all certificates issued from this
      +       * [CaPool][google.cloud.security.privateca.v1.CaPool]. If not set, the
      +       * certificates will be issued with a not_before_time of the issuance time
      +       * (i.e. the current time). If set, the certificates will be issued with a
      +       * not_before_time of the issuance time minus the backdate_duration. The
      +       * not_after_time will be adjusted to preserve the requested lifetime. The
      +       * backdate_duration must be less than or equal to 48 hours.
      +       * 
      + * + * + * .google.protobuf.Duration backdate_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearBackdateDuration() { + bitField0_ = (bitField0_ & ~0x00000002); + backdateDuration_ = null; + if (backdateDurationBuilder_ != null) { + backdateDurationBuilder_.dispose(); + backdateDurationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The duration to backdate all certificates issued from this
      +       * [CaPool][google.cloud.security.privateca.v1.CaPool]. If not set, the
      +       * certificates will be issued with a not_before_time of the issuance time
      +       * (i.e. the current time). If set, the certificates will be issued with a
      +       * not_before_time of the issuance time minus the backdate_duration. The
      +       * not_after_time will be adjusted to preserve the requested lifetime. The
      +       * backdate_duration must be less than or equal to 48 hours.
      +       * 
      + * + * + * .google.protobuf.Duration backdate_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Duration.Builder getBackdateDurationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getBackdateDurationFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +       * Optional. The duration to backdate all certificates issued from this
      +       * [CaPool][google.cloud.security.privateca.v1.CaPool]. If not set, the
      +       * certificates will be issued with a not_before_time of the issuance time
      +       * (i.e. the current time). If set, the certificates will be issued with a
      +       * not_before_time of the issuance time minus the backdate_duration. The
      +       * not_after_time will be adjusted to preserve the requested lifetime. The
      +       * backdate_duration must be less than or equal to 48 hours.
      +       * 
      + * + * + * .google.protobuf.Duration backdate_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.DurationOrBuilder getBackdateDurationOrBuilder() { + if (backdateDurationBuilder_ != null) { + return backdateDurationBuilder_.getMessageOrBuilder(); + } else { + return backdateDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : backdateDuration_; + } + } + + /** + * + * + *
      +       * Optional. The duration to backdate all certificates issued from this
      +       * [CaPool][google.cloud.security.privateca.v1.CaPool]. If not set, the
      +       * certificates will be issued with a not_before_time of the issuance time
      +       * (i.e. the current time). If set, the certificates will be issued with a
      +       * not_before_time of the issuance time minus the backdate_duration. The
      +       * not_after_time will be adjusted to preserve the requested lifetime. The
      +       * backdate_duration must be less than or equal to 48 hours.
      +       * 
      + * + * + * .google.protobuf.Duration backdate_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getBackdateDurationFieldBuilder() { + if (backdateDurationBuilder_ == null) { + backdateDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getBackdateDuration(), getParentForChildren(), isClean()); + backdateDuration_ = null; + } + return backdateDurationBuilder_; + } + private com.google.protobuf.Duration maximumLifetime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, @@ -7367,7 +7808,7 @@ public Builder removeAllowedKeyTypes(int index) { * @return Whether the maximumLifetime field is set. */ public boolean hasMaximumLifetime() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** @@ -7427,7 +7868,7 @@ public Builder setMaximumLifetime(com.google.protobuf.Duration value) { } else { maximumLifetimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -7456,7 +7897,7 @@ public Builder setMaximumLifetime(com.google.protobuf.Duration.Builder builderFo } else { maximumLifetimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -7481,7 +7922,7 @@ public Builder setMaximumLifetime(com.google.protobuf.Duration.Builder builderFo */ public Builder mergeMaximumLifetime(com.google.protobuf.Duration value) { if (maximumLifetimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) + if (((bitField0_ & 0x00000004) != 0) && maximumLifetime_ != null && maximumLifetime_ != com.google.protobuf.Duration.getDefaultInstance()) { getMaximumLifetimeBuilder().mergeFrom(value); @@ -7492,7 +7933,7 @@ public Builder mergeMaximumLifetime(com.google.protobuf.Duration value) { maximumLifetimeBuilder_.mergeFrom(value); } if (maximumLifetime_ != null) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); } return this; @@ -7517,7 +7958,7 @@ public Builder mergeMaximumLifetime(com.google.protobuf.Duration value) { *
      */ public Builder clearMaximumLifetime() { - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); maximumLifetime_ = null; if (maximumLifetimeBuilder_ != null) { maximumLifetimeBuilder_.dispose(); @@ -7546,7 +7987,7 @@ public Builder clearMaximumLifetime() { *
      */ public com.google.protobuf.Duration.Builder getMaximumLifetimeBuilder() { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return getMaximumLifetimeFieldBuilder().getBuilder(); } @@ -7639,7 +8080,7 @@ public com.google.protobuf.DurationOrBuilder getMaximumLifetimeOrBuilder() { * @return Whether the allowedIssuanceModes field is set. */ public boolean hasAllowedIssuanceModes() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** @@ -7694,7 +8135,7 @@ public Builder setAllowedIssuanceModes( } else { allowedIssuanceModesBuilder_.setMessage(value); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -7721,7 +8162,7 @@ public Builder setAllowedIssuanceModes( } else { allowedIssuanceModesBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -7743,7 +8184,7 @@ public Builder setAllowedIssuanceModes( public Builder mergeAllowedIssuanceModes( com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes value) { if (allowedIssuanceModesBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) + if (((bitField0_ & 0x00000008) != 0) && allowedIssuanceModes_ != null && allowedIssuanceModes_ != com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes @@ -7756,7 +8197,7 @@ public Builder mergeAllowedIssuanceModes( allowedIssuanceModesBuilder_.mergeFrom(value); } if (allowedIssuanceModes_ != null) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } return this; @@ -7777,7 +8218,7 @@ public Builder mergeAllowedIssuanceModes( * */ public Builder clearAllowedIssuanceModes() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); allowedIssuanceModes_ = null; if (allowedIssuanceModesBuilder_ != null) { allowedIssuanceModesBuilder_.dispose(); @@ -7803,7 +8244,7 @@ public Builder clearAllowedIssuanceModes() { */ public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.Builder getAllowedIssuanceModesBuilder() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return getAllowedIssuanceModesFieldBuilder().getBuilder(); } @@ -7896,7 +8337,7 @@ public Builder clearAllowedIssuanceModes() { * @return Whether the baselineValues field is set. */ public boolean hasBaselineValues() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** @@ -7959,7 +8400,7 @@ public Builder setBaselineValues( } else { baselineValuesBuilder_.setMessage(value); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -7990,7 +8431,7 @@ public Builder setBaselineValues( } else { baselineValuesBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -8017,7 +8458,7 @@ public Builder setBaselineValues( public Builder mergeBaselineValues( com.google.cloud.security.privateca.v1.X509Parameters value) { if (baselineValuesBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) + if (((bitField0_ & 0x00000010) != 0) && baselineValues_ != null && baselineValues_ != com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance()) { @@ -8029,7 +8470,7 @@ public Builder mergeBaselineValues( baselineValuesBuilder_.mergeFrom(value); } if (baselineValues_ != null) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); } return this; @@ -8055,7 +8496,7 @@ public Builder mergeBaselineValues( * */ public Builder clearBaselineValues() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); baselineValues_ = null; if (baselineValuesBuilder_ != null) { baselineValuesBuilder_.dispose(); @@ -8086,7 +8527,7 @@ public Builder clearBaselineValues() { */ public com.google.cloud.security.privateca.v1.X509Parameters.Builder getBaselineValuesBuilder() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return getBaselineValuesFieldBuilder().getBuilder(); } @@ -8183,7 +8624,7 @@ public Builder clearBaselineValues() { * @return Whether the identityConstraints field is set. */ public boolean hasIdentityConstraints() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** @@ -8240,7 +8681,7 @@ public Builder setIdentityConstraints( } else { identityConstraintsBuilder_.setMessage(value); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -8268,7 +8709,7 @@ public Builder setIdentityConstraints( } else { identityConstraintsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -8291,7 +8732,7 @@ public Builder setIdentityConstraints( public Builder mergeIdentityConstraints( com.google.cloud.security.privateca.v1.CertificateIdentityConstraints value) { if (identityConstraintsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) + if (((bitField0_ & 0x00000020) != 0) && identityConstraints_ != null && identityConstraints_ != com.google.cloud.security.privateca.v1.CertificateIdentityConstraints @@ -8304,7 +8745,7 @@ public Builder mergeIdentityConstraints( identityConstraintsBuilder_.mergeFrom(value); } if (identityConstraints_ != null) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); } return this; @@ -8326,7 +8767,7 @@ public Builder mergeIdentityConstraints( * */ public Builder clearIdentityConstraints() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); identityConstraints_ = null; if (identityConstraintsBuilder_ != null) { identityConstraintsBuilder_.dispose(); @@ -8353,7 +8794,7 @@ public Builder clearIdentityConstraints() { */ public com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder getIdentityConstraintsBuilder() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return getIdentityConstraintsFieldBuilder().getBuilder(); } @@ -8454,7 +8895,7 @@ public Builder clearIdentityConstraints() { * @return Whether the passthroughExtensions field is set. */ public boolean hasPassthroughExtensions() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -8533,7 +8974,7 @@ public Builder setPassthroughExtensions( } else { passthroughExtensionsBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -8572,7 +9013,7 @@ public Builder setPassthroughExtensions( } else { passthroughExtensionsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -8606,7 +9047,7 @@ public Builder setPassthroughExtensions( public Builder mergePassthroughExtensions( com.google.cloud.security.privateca.v1.CertificateExtensionConstraints value) { if (passthroughExtensionsBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000040) != 0) && passthroughExtensions_ != null && passthroughExtensions_ != com.google.cloud.security.privateca.v1.CertificateExtensionConstraints @@ -8619,7 +9060,7 @@ public Builder mergePassthroughExtensions( passthroughExtensionsBuilder_.mergeFrom(value); } if (passthroughExtensions_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } return this; @@ -8652,7 +9093,7 @@ public Builder mergePassthroughExtensions( * */ public Builder clearPassthroughExtensions() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); passthroughExtensions_ = null; if (passthroughExtensionsBuilder_ != null) { passthroughExtensionsBuilder_.dispose(); @@ -8690,7 +9131,7 @@ public Builder clearPassthroughExtensions() { */ public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder getPassthroughExtensionsBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return getPassthroughExtensionsFieldBuilder().getBuilder(); } @@ -8853,12 +9294,12 @@ public com.google.protobuf.Parser getParserForType() { * * *
      -   * Output only. The resource name for this
      +   * Identifier. The resource name for this
          * [CaPool][google.cloud.security.privateca.v1.CaPool] in the format
          * `projects/*/locations/*/caPools/*`.
          * 
      * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -8879,12 +9320,12 @@ public java.lang.String getName() { * * *
      -   * Output only. The resource name for this
      +   * Identifier. The resource name for this
          * [CaPool][google.cloud.security.privateca.v1.CaPool] in the format
          * `projects/*/locations/*/caPools/*`.
          * 
      * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -9717,12 +10158,12 @@ public Builder mergeFrom( * * *
      -     * Output only. The resource name for this
      +     * Identifier. The resource name for this
            * [CaPool][google.cloud.security.privateca.v1.CaPool] in the format
            * `projects/*/locations/*/caPools/*`.
            * 
      * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -9742,12 +10183,12 @@ public java.lang.String getName() { * * *
      -     * Output only. The resource name for this
      +     * Identifier. The resource name for this
            * [CaPool][google.cloud.security.privateca.v1.CaPool] in the format
            * `projects/*/locations/*/caPools/*`.
            * 
      * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -9767,12 +10208,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
      -     * Output only. The resource name for this
      +     * Identifier. The resource name for this
            * [CaPool][google.cloud.security.privateca.v1.CaPool] in the format
            * `projects/*/locations/*/caPools/*`.
            * 
      * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -9791,12 +10232,12 @@ public Builder setName(java.lang.String value) { * * *
      -     * Output only. The resource name for this
      +     * Identifier. The resource name for this
            * [CaPool][google.cloud.security.privateca.v1.CaPool] in the format
            * `projects/*/locations/*/caPools/*`.
            * 
      * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -9811,12 +10252,12 @@ public Builder clearName() { * * *
      -     * Output only. The resource name for this
      +     * Identifier. The resource name for this
            * [CaPool][google.cloud.security.privateca.v1.CaPool] in the format
            * `projects/*/locations/*/caPools/*`.
            * 
      * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CaPoolOrBuilder.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CaPoolOrBuilder.java index af81673839d1..edcfbe07df9c 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CaPoolOrBuilder.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CaPoolOrBuilder.java @@ -28,12 +28,12 @@ public interface CaPoolOrBuilder * * *
      -   * Output only. The resource name for this
      +   * Identifier. The resource name for this
          * [CaPool][google.cloud.security.privateca.v1.CaPool] in the format
          * `projects/*/locations/*/caPools/*`.
          * 
      * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -43,12 +43,12 @@ public interface CaPoolOrBuilder * * *
      -   * Output only. The resource name for this
      +   * Identifier. The resource name for this
          * [CaPool][google.cloud.security.privateca.v1.CaPool] in the format
          * `projects/*/locations/*/caPools/*`.
          * 
      * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/Certificate.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/Certificate.java index 4380fb4b0f4a..7d893d42fa23 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/Certificate.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/Certificate.java @@ -1163,14 +1163,12 @@ public CertificateConfigCase getCertificateConfigCase() { * * *
      -   * Output only. The resource name for this
      +   * Identifier. The resource name for this
          * [Certificate][google.cloud.security.privateca.v1.Certificate] in the format
          * `projects/*/locations/*/caPools/*/certificates/*`.
          * 
      * - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -1191,14 +1189,12 @@ public java.lang.String getName() { * * *
      -   * Output only. The resource name for this
      +   * Identifier. The resource name for this
          * [Certificate][google.cloud.security.privateca.v1.Certificate] in the format
          * `projects/*/locations/*/caPools/*/certificates/*`.
          * 
      * - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -2903,14 +2899,12 @@ public Builder clearCertificateConfig() { * * *
      -     * Output only. The resource name for this
      +     * Identifier. The resource name for this
            * [Certificate][google.cloud.security.privateca.v1.Certificate] in the format
            * `projects/*/locations/*/caPools/*/certificates/*`.
            * 
      * - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -2930,14 +2924,12 @@ public java.lang.String getName() { * * *
      -     * Output only. The resource name for this
      +     * Identifier. The resource name for this
            * [Certificate][google.cloud.security.privateca.v1.Certificate] in the format
            * `projects/*/locations/*/caPools/*/certificates/*`.
            * 
      * - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -2957,14 +2949,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
      -     * Output only. The resource name for this
      +     * Identifier. The resource name for this
            * [Certificate][google.cloud.security.privateca.v1.Certificate] in the format
            * `projects/*/locations/*/caPools/*/certificates/*`.
            * 
      * - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -2983,14 +2973,12 @@ public Builder setName(java.lang.String value) { * * *
      -     * Output only. The resource name for this
      +     * Identifier. The resource name for this
            * [Certificate][google.cloud.security.privateca.v1.Certificate] in the format
            * `projects/*/locations/*/caPools/*/certificates/*`.
            * 
      * - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -3005,14 +2993,12 @@ public Builder clearName() { * * *
      -     * Output only. The resource name for this
      +     * Identifier. The resource name for this
            * [Certificate][google.cloud.security.privateca.v1.Certificate] in the format
            * `projects/*/locations/*/caPools/*/certificates/*`.
            * 
      * - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthority.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthority.java index b3c78370f7d5..7090825f336b 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthority.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthority.java @@ -3120,6 +3120,1376 @@ public com.google.protobuf.Parser getParserForType() { } } + public interface UserDefinedAccessUrlsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Optional. A list of URLs where the issuer CA certificate may be
      +     * downloaded, which appears in the "Authority Information Access" extension
      +     * in the certificate. If specified, the default [Cloud Storage
      +     * URLs][google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.ca_certificate_access_url]
      +     * will be omitted.
      +     * 
      + * + * + * repeated string aia_issuing_certificate_urls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the aiaIssuingCertificateUrls. + */ + java.util.List getAiaIssuingCertificateUrlsList(); + + /** + * + * + *
      +     * Optional. A list of URLs where the issuer CA certificate may be
      +     * downloaded, which appears in the "Authority Information Access" extension
      +     * in the certificate. If specified, the default [Cloud Storage
      +     * URLs][google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.ca_certificate_access_url]
      +     * will be omitted.
      +     * 
      + * + * + * repeated string aia_issuing_certificate_urls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of aiaIssuingCertificateUrls. + */ + int getAiaIssuingCertificateUrlsCount(); + + /** + * + * + *
      +     * Optional. A list of URLs where the issuer CA certificate may be
      +     * downloaded, which appears in the "Authority Information Access" extension
      +     * in the certificate. If specified, the default [Cloud Storage
      +     * URLs][google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.ca_certificate_access_url]
      +     * will be omitted.
      +     * 
      + * + * + * repeated string aia_issuing_certificate_urls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The aiaIssuingCertificateUrls at the given index. + */ + java.lang.String getAiaIssuingCertificateUrls(int index); + + /** + * + * + *
      +     * Optional. A list of URLs where the issuer CA certificate may be
      +     * downloaded, which appears in the "Authority Information Access" extension
      +     * in the certificate. If specified, the default [Cloud Storage
      +     * URLs][google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.ca_certificate_access_url]
      +     * will be omitted.
      +     * 
      + * + * + * repeated string aia_issuing_certificate_urls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the aiaIssuingCertificateUrls at the given index. + */ + com.google.protobuf.ByteString getAiaIssuingCertificateUrlsBytes(int index); + + /** + * + * + *
      +     * Optional. A list of URLs where to obtain CRL information, i.e.
      +     * the DistributionPoint.fullName described by
      +     * https://tools.ietf.org/html/rfc5280#section-4.2.1.13.
      +     * If specified, the default
      +     * [Cloud Storage
      +     * URLs][google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.crl_access_urls]
      +     * will be omitted.
      +     * 
      + * + * repeated string crl_access_urls = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the crlAccessUrls. + */ + java.util.List getCrlAccessUrlsList(); + + /** + * + * + *
      +     * Optional. A list of URLs where to obtain CRL information, i.e.
      +     * the DistributionPoint.fullName described by
      +     * https://tools.ietf.org/html/rfc5280#section-4.2.1.13.
      +     * If specified, the default
      +     * [Cloud Storage
      +     * URLs][google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.crl_access_urls]
      +     * will be omitted.
      +     * 
      + * + * repeated string crl_access_urls = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of crlAccessUrls. + */ + int getCrlAccessUrlsCount(); + + /** + * + * + *
      +     * Optional. A list of URLs where to obtain CRL information, i.e.
      +     * the DistributionPoint.fullName described by
      +     * https://tools.ietf.org/html/rfc5280#section-4.2.1.13.
      +     * If specified, the default
      +     * [Cloud Storage
      +     * URLs][google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.crl_access_urls]
      +     * will be omitted.
      +     * 
      + * + * repeated string crl_access_urls = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The crlAccessUrls at the given index. + */ + java.lang.String getCrlAccessUrls(int index); + + /** + * + * + *
      +     * Optional. A list of URLs where to obtain CRL information, i.e.
      +     * the DistributionPoint.fullName described by
      +     * https://tools.ietf.org/html/rfc5280#section-4.2.1.13.
      +     * If specified, the default
      +     * [Cloud Storage
      +     * URLs][google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.crl_access_urls]
      +     * will be omitted.
      +     * 
      + * + * repeated string crl_access_urls = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the crlAccessUrls at the given index. + */ + com.google.protobuf.ByteString getCrlAccessUrlsBytes(int index); + } + + /** + * + * + *
      +   * User-defined URLs for accessing content published by this
      +   * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
      +   * 
      + * + * Protobuf type {@code + * google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls} + */ + public static final class UserDefinedAccessUrls extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls) + UserDefinedAccessUrlsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UserDefinedAccessUrls.newBuilder() to construct. + private UserDefinedAccessUrls(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UserDefinedAccessUrls() { + aiaIssuingCertificateUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); + crlAccessUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UserDefinedAccessUrls(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CertificateAuthority_UserDefinedAccessUrls_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CertificateAuthority_UserDefinedAccessUrls_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls + .class, + com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls + .Builder.class); + } + + public static final int AIA_ISSUING_CERTIFICATE_URLS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList aiaIssuingCertificateUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
      +     * Optional. A list of URLs where the issuer CA certificate may be
      +     * downloaded, which appears in the "Authority Information Access" extension
      +     * in the certificate. If specified, the default [Cloud Storage
      +     * URLs][google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.ca_certificate_access_url]
      +     * will be omitted.
      +     * 
      + * + * + * repeated string aia_issuing_certificate_urls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the aiaIssuingCertificateUrls. + */ + public com.google.protobuf.ProtocolStringList getAiaIssuingCertificateUrlsList() { + return aiaIssuingCertificateUrls_; + } + + /** + * + * + *
      +     * Optional. A list of URLs where the issuer CA certificate may be
      +     * downloaded, which appears in the "Authority Information Access" extension
      +     * in the certificate. If specified, the default [Cloud Storage
      +     * URLs][google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.ca_certificate_access_url]
      +     * will be omitted.
      +     * 
      + * + * + * repeated string aia_issuing_certificate_urls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of aiaIssuingCertificateUrls. + */ + public int getAiaIssuingCertificateUrlsCount() { + return aiaIssuingCertificateUrls_.size(); + } + + /** + * + * + *
      +     * Optional. A list of URLs where the issuer CA certificate may be
      +     * downloaded, which appears in the "Authority Information Access" extension
      +     * in the certificate. If specified, the default [Cloud Storage
      +     * URLs][google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.ca_certificate_access_url]
      +     * will be omitted.
      +     * 
      + * + * + * repeated string aia_issuing_certificate_urls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The aiaIssuingCertificateUrls at the given index. + */ + public java.lang.String getAiaIssuingCertificateUrls(int index) { + return aiaIssuingCertificateUrls_.get(index); + } + + /** + * + * + *
      +     * Optional. A list of URLs where the issuer CA certificate may be
      +     * downloaded, which appears in the "Authority Information Access" extension
      +     * in the certificate. If specified, the default [Cloud Storage
      +     * URLs][google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.ca_certificate_access_url]
      +     * will be omitted.
      +     * 
      + * + * + * repeated string aia_issuing_certificate_urls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the aiaIssuingCertificateUrls at the given index. + */ + public com.google.protobuf.ByteString getAiaIssuingCertificateUrlsBytes(int index) { + return aiaIssuingCertificateUrls_.getByteString(index); + } + + public static final int CRL_ACCESS_URLS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList crlAccessUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
      +     * Optional. A list of URLs where to obtain CRL information, i.e.
      +     * the DistributionPoint.fullName described by
      +     * https://tools.ietf.org/html/rfc5280#section-4.2.1.13.
      +     * If specified, the default
      +     * [Cloud Storage
      +     * URLs][google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.crl_access_urls]
      +     * will be omitted.
      +     * 
      + * + * repeated string crl_access_urls = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the crlAccessUrls. + */ + public com.google.protobuf.ProtocolStringList getCrlAccessUrlsList() { + return crlAccessUrls_; + } + + /** + * + * + *
      +     * Optional. A list of URLs where to obtain CRL information, i.e.
      +     * the DistributionPoint.fullName described by
      +     * https://tools.ietf.org/html/rfc5280#section-4.2.1.13.
      +     * If specified, the default
      +     * [Cloud Storage
      +     * URLs][google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.crl_access_urls]
      +     * will be omitted.
      +     * 
      + * + * repeated string crl_access_urls = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of crlAccessUrls. + */ + public int getCrlAccessUrlsCount() { + return crlAccessUrls_.size(); + } + + /** + * + * + *
      +     * Optional. A list of URLs where to obtain CRL information, i.e.
      +     * the DistributionPoint.fullName described by
      +     * https://tools.ietf.org/html/rfc5280#section-4.2.1.13.
      +     * If specified, the default
      +     * [Cloud Storage
      +     * URLs][google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.crl_access_urls]
      +     * will be omitted.
      +     * 
      + * + * repeated string crl_access_urls = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The crlAccessUrls at the given index. + */ + public java.lang.String getCrlAccessUrls(int index) { + return crlAccessUrls_.get(index); + } + + /** + * + * + *
      +     * Optional. A list of URLs where to obtain CRL information, i.e.
      +     * the DistributionPoint.fullName described by
      +     * https://tools.ietf.org/html/rfc5280#section-4.2.1.13.
      +     * If specified, the default
      +     * [Cloud Storage
      +     * URLs][google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.crl_access_urls]
      +     * will be omitted.
      +     * 
      + * + * repeated string crl_access_urls = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the crlAccessUrls at the given index. + */ + public com.google.protobuf.ByteString getCrlAccessUrlsBytes(int index) { + return crlAccessUrls_.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 < aiaIssuingCertificateUrls_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 1, aiaIssuingCertificateUrls_.getRaw(i)); + } + for (int i = 0; i < crlAccessUrls_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, crlAccessUrls_.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 < aiaIssuingCertificateUrls_.size(); i++) { + dataSize += computeStringSizeNoTag(aiaIssuingCertificateUrls_.getRaw(i)); + } + size += dataSize; + size += 1 * getAiaIssuingCertificateUrlsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < crlAccessUrls_.size(); i++) { + dataSize += computeStringSizeNoTag(crlAccessUrls_.getRaw(i)); + } + size += dataSize; + size += 1 * getCrlAccessUrlsList().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.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls)) { + return super.equals(obj); + } + com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls other = + (com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls) obj; + + if (!getAiaIssuingCertificateUrlsList().equals(other.getAiaIssuingCertificateUrlsList())) + return false; + if (!getCrlAccessUrlsList().equals(other.getCrlAccessUrlsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAiaIssuingCertificateUrlsCount() > 0) { + hash = (37 * hash) + AIA_ISSUING_CERTIFICATE_URLS_FIELD_NUMBER; + hash = (53 * hash) + getAiaIssuingCertificateUrlsList().hashCode(); + } + if (getCrlAccessUrlsCount() > 0) { + hash = (37 * hash) + CRL_ACCESS_URLS_FIELD_NUMBER; + hash = (53 * hash) + getCrlAccessUrlsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * User-defined URLs for accessing content published by this
      +     * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
      +     * 
      + * + * Protobuf type {@code + * google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls) + com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrlsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CertificateAuthority_UserDefinedAccessUrls_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CertificateAuthority_UserDefinedAccessUrls_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls + .class, + com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls + .Builder.class); + } + + // Construct using + // com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + aiaIssuingCertificateUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); + crlAccessUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CertificateAuthority_UserDefinedAccessUrls_descriptor; + } + + @java.lang.Override + public com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls + getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls + build() { + com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls + buildPartial() { + com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls result = + new com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + aiaIssuingCertificateUrls_.makeImmutable(); + result.aiaIssuingCertificateUrls_ = aiaIssuingCertificateUrls_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + crlAccessUrls_.makeImmutable(); + result.crlAccessUrls_ = crlAccessUrls_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls) { + return mergeFrom( + (com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls other) { + if (other + == com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls + .getDefaultInstance()) return this; + if (!other.aiaIssuingCertificateUrls_.isEmpty()) { + if (aiaIssuingCertificateUrls_.isEmpty()) { + aiaIssuingCertificateUrls_ = other.aiaIssuingCertificateUrls_; + bitField0_ |= 0x00000001; + } else { + ensureAiaIssuingCertificateUrlsIsMutable(); + aiaIssuingCertificateUrls_.addAll(other.aiaIssuingCertificateUrls_); + } + onChanged(); + } + if (!other.crlAccessUrls_.isEmpty()) { + if (crlAccessUrls_.isEmpty()) { + crlAccessUrls_ = other.crlAccessUrls_; + bitField0_ |= 0x00000002; + } else { + ensureCrlAccessUrlsIsMutable(); + crlAccessUrls_.addAll(other.crlAccessUrls_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + ensureAiaIssuingCertificateUrlsIsMutable(); + aiaIssuingCertificateUrls_.add(s); + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureCrlAccessUrlsIsMutable(); + crlAccessUrls_.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 aiaIssuingCertificateUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAiaIssuingCertificateUrlsIsMutable() { + if (!aiaIssuingCertificateUrls_.isModifiable()) { + aiaIssuingCertificateUrls_ = + new com.google.protobuf.LazyStringArrayList(aiaIssuingCertificateUrls_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
      +       * Optional. A list of URLs where the issuer CA certificate may be
      +       * downloaded, which appears in the "Authority Information Access" extension
      +       * in the certificate. If specified, the default [Cloud Storage
      +       * URLs][google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.ca_certificate_access_url]
      +       * will be omitted.
      +       * 
      + * + * + * repeated string aia_issuing_certificate_urls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the aiaIssuingCertificateUrls. + */ + public com.google.protobuf.ProtocolStringList getAiaIssuingCertificateUrlsList() { + aiaIssuingCertificateUrls_.makeImmutable(); + return aiaIssuingCertificateUrls_; + } + + /** + * + * + *
      +       * Optional. A list of URLs where the issuer CA certificate may be
      +       * downloaded, which appears in the "Authority Information Access" extension
      +       * in the certificate. If specified, the default [Cloud Storage
      +       * URLs][google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.ca_certificate_access_url]
      +       * will be omitted.
      +       * 
      + * + * + * repeated string aia_issuing_certificate_urls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of aiaIssuingCertificateUrls. + */ + public int getAiaIssuingCertificateUrlsCount() { + return aiaIssuingCertificateUrls_.size(); + } + + /** + * + * + *
      +       * Optional. A list of URLs where the issuer CA certificate may be
      +       * downloaded, which appears in the "Authority Information Access" extension
      +       * in the certificate. If specified, the default [Cloud Storage
      +       * URLs][google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.ca_certificate_access_url]
      +       * will be omitted.
      +       * 
      + * + * + * repeated string aia_issuing_certificate_urls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The aiaIssuingCertificateUrls at the given index. + */ + public java.lang.String getAiaIssuingCertificateUrls(int index) { + return aiaIssuingCertificateUrls_.get(index); + } + + /** + * + * + *
      +       * Optional. A list of URLs where the issuer CA certificate may be
      +       * downloaded, which appears in the "Authority Information Access" extension
      +       * in the certificate. If specified, the default [Cloud Storage
      +       * URLs][google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.ca_certificate_access_url]
      +       * will be omitted.
      +       * 
      + * + * + * repeated string aia_issuing_certificate_urls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the aiaIssuingCertificateUrls at the given index. + */ + public com.google.protobuf.ByteString getAiaIssuingCertificateUrlsBytes(int index) { + return aiaIssuingCertificateUrls_.getByteString(index); + } + + /** + * + * + *
      +       * Optional. A list of URLs where the issuer CA certificate may be
      +       * downloaded, which appears in the "Authority Information Access" extension
      +       * in the certificate. If specified, the default [Cloud Storage
      +       * URLs][google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.ca_certificate_access_url]
      +       * will be omitted.
      +       * 
      + * + * + * repeated string aia_issuing_certificate_urls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The aiaIssuingCertificateUrls to set. + * @return This builder for chaining. + */ + public Builder setAiaIssuingCertificateUrls(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAiaIssuingCertificateUrlsIsMutable(); + aiaIssuingCertificateUrls_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. A list of URLs where the issuer CA certificate may be
      +       * downloaded, which appears in the "Authority Information Access" extension
      +       * in the certificate. If specified, the default [Cloud Storage
      +       * URLs][google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.ca_certificate_access_url]
      +       * will be omitted.
      +       * 
      + * + * + * repeated string aia_issuing_certificate_urls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The aiaIssuingCertificateUrls to add. + * @return This builder for chaining. + */ + public Builder addAiaIssuingCertificateUrls(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAiaIssuingCertificateUrlsIsMutable(); + aiaIssuingCertificateUrls_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. A list of URLs where the issuer CA certificate may be
      +       * downloaded, which appears in the "Authority Information Access" extension
      +       * in the certificate. If specified, the default [Cloud Storage
      +       * URLs][google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.ca_certificate_access_url]
      +       * will be omitted.
      +       * 
      + * + * + * repeated string aia_issuing_certificate_urls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The aiaIssuingCertificateUrls to add. + * @return This builder for chaining. + */ + public Builder addAllAiaIssuingCertificateUrls(java.lang.Iterable values) { + ensureAiaIssuingCertificateUrlsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, aiaIssuingCertificateUrls_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. A list of URLs where the issuer CA certificate may be
      +       * downloaded, which appears in the "Authority Information Access" extension
      +       * in the certificate. If specified, the default [Cloud Storage
      +       * URLs][google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.ca_certificate_access_url]
      +       * will be omitted.
      +       * 
      + * + * + * repeated string aia_issuing_certificate_urls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAiaIssuingCertificateUrls() { + aiaIssuingCertificateUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. A list of URLs where the issuer CA certificate may be
      +       * downloaded, which appears in the "Authority Information Access" extension
      +       * in the certificate. If specified, the default [Cloud Storage
      +       * URLs][google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.ca_certificate_access_url]
      +       * will be omitted.
      +       * 
      + * + * + * repeated string aia_issuing_certificate_urls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the aiaIssuingCertificateUrls to add. + * @return This builder for chaining. + */ + public Builder addAiaIssuingCertificateUrlsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAiaIssuingCertificateUrlsIsMutable(); + aiaIssuingCertificateUrls_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList crlAccessUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureCrlAccessUrlsIsMutable() { + if (!crlAccessUrls_.isModifiable()) { + crlAccessUrls_ = new com.google.protobuf.LazyStringArrayList(crlAccessUrls_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
      +       * Optional. A list of URLs where to obtain CRL information, i.e.
      +       * the DistributionPoint.fullName described by
      +       * https://tools.ietf.org/html/rfc5280#section-4.2.1.13.
      +       * If specified, the default
      +       * [Cloud Storage
      +       * URLs][google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.crl_access_urls]
      +       * will be omitted.
      +       * 
      + * + * repeated string crl_access_urls = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the crlAccessUrls. + */ + public com.google.protobuf.ProtocolStringList getCrlAccessUrlsList() { + crlAccessUrls_.makeImmutable(); + return crlAccessUrls_; + } + + /** + * + * + *
      +       * Optional. A list of URLs where to obtain CRL information, i.e.
      +       * the DistributionPoint.fullName described by
      +       * https://tools.ietf.org/html/rfc5280#section-4.2.1.13.
      +       * If specified, the default
      +       * [Cloud Storage
      +       * URLs][google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.crl_access_urls]
      +       * will be omitted.
      +       * 
      + * + * repeated string crl_access_urls = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of crlAccessUrls. + */ + public int getCrlAccessUrlsCount() { + return crlAccessUrls_.size(); + } + + /** + * + * + *
      +       * Optional. A list of URLs where to obtain CRL information, i.e.
      +       * the DistributionPoint.fullName described by
      +       * https://tools.ietf.org/html/rfc5280#section-4.2.1.13.
      +       * If specified, the default
      +       * [Cloud Storage
      +       * URLs][google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.crl_access_urls]
      +       * will be omitted.
      +       * 
      + * + * repeated string crl_access_urls = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The crlAccessUrls at the given index. + */ + public java.lang.String getCrlAccessUrls(int index) { + return crlAccessUrls_.get(index); + } + + /** + * + * + *
      +       * Optional. A list of URLs where to obtain CRL information, i.e.
      +       * the DistributionPoint.fullName described by
      +       * https://tools.ietf.org/html/rfc5280#section-4.2.1.13.
      +       * If specified, the default
      +       * [Cloud Storage
      +       * URLs][google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.crl_access_urls]
      +       * will be omitted.
      +       * 
      + * + * repeated string crl_access_urls = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the crlAccessUrls at the given index. + */ + public com.google.protobuf.ByteString getCrlAccessUrlsBytes(int index) { + return crlAccessUrls_.getByteString(index); + } + + /** + * + * + *
      +       * Optional. A list of URLs where to obtain CRL information, i.e.
      +       * the DistributionPoint.fullName described by
      +       * https://tools.ietf.org/html/rfc5280#section-4.2.1.13.
      +       * If specified, the default
      +       * [Cloud Storage
      +       * URLs][google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.crl_access_urls]
      +       * will be omitted.
      +       * 
      + * + * repeated string crl_access_urls = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The crlAccessUrls to set. + * @return This builder for chaining. + */ + public Builder setCrlAccessUrls(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCrlAccessUrlsIsMutable(); + crlAccessUrls_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. A list of URLs where to obtain CRL information, i.e.
      +       * the DistributionPoint.fullName described by
      +       * https://tools.ietf.org/html/rfc5280#section-4.2.1.13.
      +       * If specified, the default
      +       * [Cloud Storage
      +       * URLs][google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.crl_access_urls]
      +       * will be omitted.
      +       * 
      + * + * repeated string crl_access_urls = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The crlAccessUrls to add. + * @return This builder for chaining. + */ + public Builder addCrlAccessUrls(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCrlAccessUrlsIsMutable(); + crlAccessUrls_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. A list of URLs where to obtain CRL information, i.e.
      +       * the DistributionPoint.fullName described by
      +       * https://tools.ietf.org/html/rfc5280#section-4.2.1.13.
      +       * If specified, the default
      +       * [Cloud Storage
      +       * URLs][google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.crl_access_urls]
      +       * will be omitted.
      +       * 
      + * + * repeated string crl_access_urls = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The crlAccessUrls to add. + * @return This builder for chaining. + */ + public Builder addAllCrlAccessUrls(java.lang.Iterable values) { + ensureCrlAccessUrlsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, crlAccessUrls_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. A list of URLs where to obtain CRL information, i.e.
      +       * the DistributionPoint.fullName described by
      +       * https://tools.ietf.org/html/rfc5280#section-4.2.1.13.
      +       * If specified, the default
      +       * [Cloud Storage
      +       * URLs][google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.crl_access_urls]
      +       * will be omitted.
      +       * 
      + * + * repeated string crl_access_urls = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCrlAccessUrls() { + crlAccessUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. A list of URLs where to obtain CRL information, i.e.
      +       * the DistributionPoint.fullName described by
      +       * https://tools.ietf.org/html/rfc5280#section-4.2.1.13.
      +       * If specified, the default
      +       * [Cloud Storage
      +       * URLs][google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.crl_access_urls]
      +       * will be omitted.
      +       * 
      + * + * repeated string crl_access_urls = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the crlAccessUrls to add. + * @return This builder for chaining. + */ + public Builder addCrlAccessUrlsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureCrlAccessUrlsIsMutable(); + crlAccessUrls_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls) + } + + // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls) + private static final com.google.cloud.security.privateca.v1.CertificateAuthority + .UserDefinedAccessUrls + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls(); + } + + public static com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserDefinedAccessUrls parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @@ -3130,12 +4500,12 @@ public com.google.protobuf.Parser getParserForType() { * * *
      -   * Output only. The resource name for this
      +   * Identifier. The resource name for this
          * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
          * in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
          * 
      * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -3156,12 +4526,12 @@ public java.lang.String getName() { * * *
      -   * Output only. The resource name for this
      +   * Identifier. The resource name for this
          * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
          * in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
          * 
      * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -4269,21 +5639,129 @@ public java.util.Map getLabelsMap() { * * *
      -   * Optional. Labels with user-defined metadata.
      +   * Optional. Labels with user-defined metadata.
      +   * 
      + * + * map<string, string> labels = 17 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int USER_DEFINED_ACCESS_URLS_FIELD_NUMBER = 18; + private com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls + userDefinedAccessUrls_; + + /** + * + * + *
      +   * Optional. User-defined URLs for CA certificate and CRLs. The service does
      +   * not publish content to these URLs. It is up to the user to mirror content
      +   * to these URLs.
      +   * 
      + * + * + * .google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls user_defined_access_urls = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the userDefinedAccessUrls field is set. + */ + @java.lang.Override + public boolean hasUserDefinedAccessUrls() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
      +   * Optional. User-defined URLs for CA certificate and CRLs. The service does
      +   * not publish content to these URLs. It is up to the user to mirror content
      +   * to these URLs.
      +   * 
      + * + * + * .google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls user_defined_access_urls = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The userDefinedAccessUrls. + */ + @java.lang.Override + public com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls + getUserDefinedAccessUrls() { + return userDefinedAccessUrls_ == null + ? com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls + .getDefaultInstance() + : userDefinedAccessUrls_; + } + + /** + * + * + *
      +   * Optional. User-defined URLs for CA certificate and CRLs. The service does
      +   * not publish content to these URLs. It is up to the user to mirror content
      +   * to these URLs.
      +   * 
      + * + * + * .google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls user_defined_access_urls = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrlsOrBuilder + getUserDefinedAccessUrlsOrBuilder() { + return userDefinedAccessUrls_ == null + ? com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls + .getDefaultInstance() + : userDefinedAccessUrls_; + } + + public static final int SATISFIES_PZS_FIELD_NUMBER = 19; + private boolean satisfiesPzs_ = false; + + /** + * + * + *
      +   * Output only. Reserved for future use.
      +   * 
      + * + * bool satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + + public static final int SATISFIES_PZI_FIELD_NUMBER = 20; + private boolean satisfiesPzi_ = false; + + /** + * + * + *
      +   * Output only. Reserved for future use.
          * 
      * - * map<string, string> labels = 17 [(.google.api.field_behavior) = OPTIONAL]; + * bool satisfies_pzi = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); + public boolean getSatisfiesPzi() { + return satisfiesPzi_; } private byte memoizedIsInitialized = -1; @@ -4354,6 +5832,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 17); + if (((bitField0_ & 0x00000200) != 0)) { + output.writeMessage(18, getUserDefinedAccessUrls()); + } + if (satisfiesPzs_ != false) { + output.writeBool(19, satisfiesPzs_); + } + if (satisfiesPzi_ != false) { + output.writeBool(20, satisfiesPzi_); + } getUnknownFields().writeTo(output); } @@ -4432,6 +5919,16 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, labels__); } + if (((bitField0_ & 0x00000200) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(18, getUserDefinedAccessUrls()); + } + if (satisfiesPzs_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(19, satisfiesPzs_); + } + if (satisfiesPzi_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(20, satisfiesPzi_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -4493,6 +5990,12 @@ public boolean equals(final java.lang.Object obj) { if (!getExpireTime().equals(other.getExpireTime())) return false; } if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (hasUserDefinedAccessUrls() != other.hasUserDefinedAccessUrls()) return false; + if (hasUserDefinedAccessUrls()) { + if (!getUserDefinedAccessUrls().equals(other.getUserDefinedAccessUrls())) return false; + } + if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false; + if (getSatisfiesPzi() != other.getSatisfiesPzi()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -4562,6 +6065,14 @@ public int hashCode() { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } + if (hasUserDefinedAccessUrls()) { + hash = (37 * hash) + USER_DEFINED_ACCESS_URLS_FIELD_NUMBER; + hash = (53 * hash) + getUserDefinedAccessUrls().hashCode(); + } + hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs()); + hash = (37 * hash) + SATISFIES_PZI_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzi()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -4741,6 +6252,7 @@ private void maybeForceBuilderInitialization() { getUpdateTimeFieldBuilder(); getDeleteTimeFieldBuilder(); getExpireTimeFieldBuilder(); + getUserDefinedAccessUrlsFieldBuilder(); } } @@ -4807,6 +6319,13 @@ public Builder clear() { expireTimeBuilder_ = null; } internalGetMutableLabels().clear(); + userDefinedAccessUrls_ = null; + if (userDefinedAccessUrlsBuilder_ != null) { + userDefinedAccessUrlsBuilder_.dispose(); + userDefinedAccessUrlsBuilder_ = null; + } + satisfiesPzs_ = false; + satisfiesPzi_ = false; return this; } @@ -4921,6 +6440,19 @@ private void buildPartial0(com.google.cloud.security.privateca.v1.CertificateAut result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.userDefinedAccessUrls_ = + userDefinedAccessUrlsBuilder_ == null + ? userDefinedAccessUrls_ + : userDefinedAccessUrlsBuilder_.build(); + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.satisfiesPzs_ = satisfiesPzs_; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.satisfiesPzi_ = satisfiesPzi_; + } result.bitField0_ |= to_bitField0_; } @@ -5055,6 +6587,15 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1.CertificateAutho } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00010000; + if (other.hasUserDefinedAccessUrls()) { + mergeUserDefinedAccessUrls(other.getUserDefinedAccessUrls()); + } + if (other.getSatisfiesPzs() != false) { + setSatisfiesPzs(other.getSatisfiesPzs()); + } + if (other.getSatisfiesPzi() != false) { + setSatisfiesPzi(other.getSatisfiesPzi()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -5199,6 +6740,25 @@ public Builder mergeFrom( bitField0_ |= 0x00010000; break; } // case 138 + case 146: + { + input.readMessage( + getUserDefinedAccessUrlsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00020000; + break; + } // case 146 + case 152: + { + satisfiesPzs_ = input.readBool(); + bitField0_ |= 0x00040000; + break; + } // case 152 + case 160: + { + satisfiesPzi_ = input.readBool(); + bitField0_ |= 0x00080000; + break; + } // case 160 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5224,12 +6784,12 @@ public Builder mergeFrom( * * *
      -     * Output only. The resource name for this
      +     * Identifier. The resource name for this
            * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
            * in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
            * 
      * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -5249,12 +6809,12 @@ public java.lang.String getName() { * * *
      -     * Output only. The resource name for this
      +     * Identifier. The resource name for this
            * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
            * in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
            * 
      * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -5274,12 +6834,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
      -     * Output only. The resource name for this
      +     * Identifier. The resource name for this
            * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
            * in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
            * 
      * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -5298,12 +6858,12 @@ public Builder setName(java.lang.String value) { * * *
      -     * Output only. The resource name for this
      +     * Identifier. The resource name for this
            * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
            * in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
            * 
      * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -5318,12 +6878,12 @@ public Builder clearName() { * * *
      -     * Output only. The resource name for this
      +     * Identifier. The resource name for this
            * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
            * in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
            * 
      * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. @@ -8909,6 +10469,367 @@ public Builder putAllLabels(java.util.Map va return this; } + private com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls + userDefinedAccessUrls_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls, + com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls + .Builder, + com.google.cloud.security.privateca.v1.CertificateAuthority + .UserDefinedAccessUrlsOrBuilder> + userDefinedAccessUrlsBuilder_; + + /** + * + * + *
      +     * Optional. User-defined URLs for CA certificate and CRLs. The service does
      +     * not publish content to these URLs. It is up to the user to mirror content
      +     * to these URLs.
      +     * 
      + * + * + * .google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls user_defined_access_urls = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the userDefinedAccessUrls field is set. + */ + public boolean hasUserDefinedAccessUrls() { + return ((bitField0_ & 0x00020000) != 0); + } + + /** + * + * + *
      +     * Optional. User-defined URLs for CA certificate and CRLs. The service does
      +     * not publish content to these URLs. It is up to the user to mirror content
      +     * to these URLs.
      +     * 
      + * + * + * .google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls user_defined_access_urls = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The userDefinedAccessUrls. + */ + public com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls + getUserDefinedAccessUrls() { + if (userDefinedAccessUrlsBuilder_ == null) { + return userDefinedAccessUrls_ == null + ? com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls + .getDefaultInstance() + : userDefinedAccessUrls_; + } else { + return userDefinedAccessUrlsBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. User-defined URLs for CA certificate and CRLs. The service does
      +     * not publish content to these URLs. It is up to the user to mirror content
      +     * to these URLs.
      +     * 
      + * + * + * .google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls user_defined_access_urls = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUserDefinedAccessUrls( + com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls value) { + if (userDefinedAccessUrlsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + userDefinedAccessUrls_ = value; + } else { + userDefinedAccessUrlsBuilder_.setMessage(value); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. User-defined URLs for CA certificate and CRLs. The service does
      +     * not publish content to these URLs. It is up to the user to mirror content
      +     * to these URLs.
      +     * 
      + * + * + * .google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls user_defined_access_urls = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUserDefinedAccessUrls( + com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls.Builder + builderForValue) { + if (userDefinedAccessUrlsBuilder_ == null) { + userDefinedAccessUrls_ = builderForValue.build(); + } else { + userDefinedAccessUrlsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. User-defined URLs for CA certificate and CRLs. The service does
      +     * not publish content to these URLs. It is up to the user to mirror content
      +     * to these URLs.
      +     * 
      + * + * + * .google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls user_defined_access_urls = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUserDefinedAccessUrls( + com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls value) { + if (userDefinedAccessUrlsBuilder_ == null) { + if (((bitField0_ & 0x00020000) != 0) + && userDefinedAccessUrls_ != null + && userDefinedAccessUrls_ + != com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls + .getDefaultInstance()) { + getUserDefinedAccessUrlsBuilder().mergeFrom(value); + } else { + userDefinedAccessUrls_ = value; + } + } else { + userDefinedAccessUrlsBuilder_.mergeFrom(value); + } + if (userDefinedAccessUrls_ != null) { + bitField0_ |= 0x00020000; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. User-defined URLs for CA certificate and CRLs. The service does
      +     * not publish content to these URLs. It is up to the user to mirror content
      +     * to these URLs.
      +     * 
      + * + * + * .google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls user_defined_access_urls = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUserDefinedAccessUrls() { + bitField0_ = (bitField0_ & ~0x00020000); + userDefinedAccessUrls_ = null; + if (userDefinedAccessUrlsBuilder_ != null) { + userDefinedAccessUrlsBuilder_.dispose(); + userDefinedAccessUrlsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. User-defined URLs for CA certificate and CRLs. The service does
      +     * not publish content to these URLs. It is up to the user to mirror content
      +     * to these URLs.
      +     * 
      + * + * + * .google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls user_defined_access_urls = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls.Builder + getUserDefinedAccessUrlsBuilder() { + bitField0_ |= 0x00020000; + onChanged(); + return getUserDefinedAccessUrlsFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. User-defined URLs for CA certificate and CRLs. The service does
      +     * not publish content to these URLs. It is up to the user to mirror content
      +     * to these URLs.
      +     * 
      + * + * + * .google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls user_defined_access_urls = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.security.privateca.v1.CertificateAuthority + .UserDefinedAccessUrlsOrBuilder + getUserDefinedAccessUrlsOrBuilder() { + if (userDefinedAccessUrlsBuilder_ != null) { + return userDefinedAccessUrlsBuilder_.getMessageOrBuilder(); + } else { + return userDefinedAccessUrls_ == null + ? com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls + .getDefaultInstance() + : userDefinedAccessUrls_; + } + } + + /** + * + * + *
      +     * Optional. User-defined URLs for CA certificate and CRLs. The service does
      +     * not publish content to these URLs. It is up to the user to mirror content
      +     * to these URLs.
      +     * 
      + * + * + * .google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls user_defined_access_urls = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls, + com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls + .Builder, + com.google.cloud.security.privateca.v1.CertificateAuthority + .UserDefinedAccessUrlsOrBuilder> + getUserDefinedAccessUrlsFieldBuilder() { + if (userDefinedAccessUrlsBuilder_ == null) { + userDefinedAccessUrlsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls, + com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls + .Builder, + com.google.cloud.security.privateca.v1.CertificateAuthority + .UserDefinedAccessUrlsOrBuilder>( + getUserDefinedAccessUrls(), getParentForChildren(), isClean()); + userDefinedAccessUrls_ = null; + } + return userDefinedAccessUrlsBuilder_; + } + + private boolean satisfiesPzs_; + + /** + * + * + *
      +     * Output only. Reserved for future use.
      +     * 
      + * + * bool satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + + /** + * + * + *
      +     * Output only. Reserved for future use.
      +     * 
      + * + * bool satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The satisfiesPzs to set. + * @return This builder for chaining. + */ + public Builder setSatisfiesPzs(boolean value) { + + satisfiesPzs_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Reserved for future use.
      +     * 
      + * + * bool satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSatisfiesPzs() { + bitField0_ = (bitField0_ & ~0x00040000); + satisfiesPzs_ = false; + onChanged(); + return this; + } + + private boolean satisfiesPzi_; + + /** + * + * + *
      +     * Output only. Reserved for future use.
      +     * 
      + * + * bool satisfies_pzi = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + @java.lang.Override + public boolean getSatisfiesPzi() { + return satisfiesPzi_; + } + + /** + * + * + *
      +     * Output only. Reserved for future use.
      +     * 
      + * + * bool satisfies_pzi = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The satisfiesPzi to set. + * @return This builder for chaining. + */ + public Builder setSatisfiesPzi(boolean value) { + + satisfiesPzi_ = value; + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Reserved for future use.
      +     * 
      + * + * bool satisfies_pzi = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSatisfiesPzi() { + bitField0_ = (bitField0_ & ~0x00080000); + satisfiesPzi_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityOrBuilder.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityOrBuilder.java index e2444a89a8ce..3c9d6c6aa869 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityOrBuilder.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityOrBuilder.java @@ -28,12 +28,12 @@ public interface CertificateAuthorityOrBuilder * * *
      -   * Output only. The resource name for this
      +   * Identifier. The resource name for this
          * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
          * in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
          * 
      * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -43,12 +43,12 @@ public interface CertificateAuthorityOrBuilder * * *
      -   * Output only. The resource name for this
      +   * Identifier. The resource name for this
          * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
          * in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
          * 
      * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -886,4 +886,81 @@ java.lang.String getLabelsOrDefault( * map<string, string> labels = 17 [(.google.api.field_behavior) = OPTIONAL]; */ java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
      +   * Optional. User-defined URLs for CA certificate and CRLs. The service does
      +   * not publish content to these URLs. It is up to the user to mirror content
      +   * to these URLs.
      +   * 
      + * + * + * .google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls user_defined_access_urls = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the userDefinedAccessUrls field is set. + */ + boolean hasUserDefinedAccessUrls(); + + /** + * + * + *
      +   * Optional. User-defined URLs for CA certificate and CRLs. The service does
      +   * not publish content to these URLs. It is up to the user to mirror content
      +   * to these URLs.
      +   * 
      + * + * + * .google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls user_defined_access_urls = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The userDefinedAccessUrls. + */ + com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls + getUserDefinedAccessUrls(); + + /** + * + * + *
      +   * Optional. User-defined URLs for CA certificate and CRLs. The service does
      +   * not publish content to these URLs. It is up to the user to mirror content
      +   * to these URLs.
      +   * 
      + * + * + * .google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrls user_defined_access_urls = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.security.privateca.v1.CertificateAuthority.UserDefinedAccessUrlsOrBuilder + getUserDefinedAccessUrlsOrBuilder(); + + /** + * + * + *
      +   * Output only. Reserved for future use.
      +   * 
      + * + * bool satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + boolean getSatisfiesPzs(); + + /** + * + * + *
      +   * Output only. Reserved for future use.
      +   * 
      + * + * bool satisfies_pzi = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + boolean getSatisfiesPzi(); } diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateDescription.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateDescription.java index 3d487298fc2b..ddb80c6be834 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateDescription.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateDescription.java @@ -45,6 +45,7 @@ private CertificateDescription(com.google.protobuf.GeneratedMessageV3.Builder private CertificateDescription() { crlDistributionPoints_ = com.google.protobuf.LazyStringArrayList.emptyList(); aiaIssuingCertificateUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); + tbsCertificateDigest_ = ""; } @java.lang.Override @@ -4306,6 +4307,65 @@ public boolean hasCertFingerprint() { : certFingerprint_; } + public static final int TBS_CERTIFICATE_DIGEST_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object tbsCertificateDigest_ = ""; + + /** + * + * + *
      +   * The hash of the pre-signed certificate, which will be signed by the CA.
      +   * Corresponds to the TBS Certificate in
      +   * https://tools.ietf.org/html/rfc5280#section-4.1.2. The field will always be
      +   * populated.
      +   * 
      + * + * string tbs_certificate_digest = 9; + * + * @return The tbsCertificateDigest. + */ + @java.lang.Override + public java.lang.String getTbsCertificateDigest() { + java.lang.Object ref = tbsCertificateDigest_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tbsCertificateDigest_ = s; + return s; + } + } + + /** + * + * + *
      +   * The hash of the pre-signed certificate, which will be signed by the CA.
      +   * Corresponds to the TBS Certificate in
      +   * https://tools.ietf.org/html/rfc5280#section-4.1.2. The field will always be
      +   * populated.
      +   * 
      + * + * string tbs_certificate_digest = 9; + * + * @return The bytes for tbsCertificateDigest. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTbsCertificateDigestBytes() { + java.lang.Object ref = tbsCertificateDigest_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tbsCertificateDigest_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -4346,6 +4406,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(8, getCertFingerprint()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tbsCertificateDigest_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, tbsCertificateDigest_); + } getUnknownFields().writeTo(output); } @@ -4389,6 +4452,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCertFingerprint()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tbsCertificateDigest_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, tbsCertificateDigest_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -4432,6 +4498,7 @@ public boolean equals(final java.lang.Object obj) { if (hasCertFingerprint()) { if (!getCertFingerprint().equals(other.getCertFingerprint())) return false; } + if (!getTbsCertificateDigest().equals(other.getTbsCertificateDigest())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -4475,6 +4542,8 @@ public int hashCode() { hash = (37 * hash) + CERT_FINGERPRINT_FIELD_NUMBER; hash = (53 * hash) + getCertFingerprint().hashCode(); } + hash = (37 * hash) + TBS_CERTIFICATE_DIGEST_FIELD_NUMBER; + hash = (53 * hash) + getTbsCertificateDigest().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -4665,6 +4734,7 @@ public Builder clear() { certFingerprintBuilder_.dispose(); certFingerprintBuilder_ = null; } + tbsCertificateDigest_ = ""; return this; } @@ -4743,6 +4813,9 @@ private void buildPartial0( certFingerprintBuilder_ == null ? certFingerprint_ : certFingerprintBuilder_.build(); to_bitField0_ |= 0x00000020; } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.tbsCertificateDigest_ = tbsCertificateDigest_; + } result.bitField0_ |= to_bitField0_; } @@ -4831,6 +4904,11 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1.CertificateDescr if (other.hasCertFingerprint()) { mergeCertFingerprint(other.getCertFingerprint()); } + if (!other.getTbsCertificateDigest().isEmpty()) { + tbsCertificateDigest_ = other.tbsCertificateDigest_; + bitField0_ |= 0x00000100; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -4908,6 +4986,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; break; } // case 66 + case 74: + { + tbsCertificateDigest_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -6635,6 +6719,132 @@ public Builder clearCertFingerprint() { return certFingerprintBuilder_; } + private java.lang.Object tbsCertificateDigest_ = ""; + + /** + * + * + *
      +     * The hash of the pre-signed certificate, which will be signed by the CA.
      +     * Corresponds to the TBS Certificate in
      +     * https://tools.ietf.org/html/rfc5280#section-4.1.2. The field will always be
      +     * populated.
      +     * 
      + * + * string tbs_certificate_digest = 9; + * + * @return The tbsCertificateDigest. + */ + public java.lang.String getTbsCertificateDigest() { + java.lang.Object ref = tbsCertificateDigest_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tbsCertificateDigest_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * The hash of the pre-signed certificate, which will be signed by the CA.
      +     * Corresponds to the TBS Certificate in
      +     * https://tools.ietf.org/html/rfc5280#section-4.1.2. The field will always be
      +     * populated.
      +     * 
      + * + * string tbs_certificate_digest = 9; + * + * @return The bytes for tbsCertificateDigest. + */ + public com.google.protobuf.ByteString getTbsCertificateDigestBytes() { + java.lang.Object ref = tbsCertificateDigest_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tbsCertificateDigest_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * The hash of the pre-signed certificate, which will be signed by the CA.
      +     * Corresponds to the TBS Certificate in
      +     * https://tools.ietf.org/html/rfc5280#section-4.1.2. The field will always be
      +     * populated.
      +     * 
      + * + * string tbs_certificate_digest = 9; + * + * @param value The tbsCertificateDigest to set. + * @return This builder for chaining. + */ + public Builder setTbsCertificateDigest(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tbsCertificateDigest_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The hash of the pre-signed certificate, which will be signed by the CA.
      +     * Corresponds to the TBS Certificate in
      +     * https://tools.ietf.org/html/rfc5280#section-4.1.2. The field will always be
      +     * populated.
      +     * 
      + * + * string tbs_certificate_digest = 9; + * + * @return This builder for chaining. + */ + public Builder clearTbsCertificateDigest() { + tbsCertificateDigest_ = getDefaultInstance().getTbsCertificateDigest(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
      +     * The hash of the pre-signed certificate, which will be signed by the CA.
      +     * Corresponds to the TBS Certificate in
      +     * https://tools.ietf.org/html/rfc5280#section-4.1.2. The field will always be
      +     * populated.
      +     * 
      + * + * string tbs_certificate_digest = 9; + * + * @param value The bytes for tbsCertificateDigest to set. + * @return This builder for chaining. + */ + public Builder setTbsCertificateDigestBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tbsCertificateDigest_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateDescriptionOrBuilder.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateDescriptionOrBuilder.java index 6721f1202b1f..f23c29d40348 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateDescriptionOrBuilder.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateDescriptionOrBuilder.java @@ -398,4 +398,36 @@ public interface CertificateDescriptionOrBuilder */ com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprintOrBuilder getCertFingerprintOrBuilder(); + + /** + * + * + *
      +   * The hash of the pre-signed certificate, which will be signed by the CA.
      +   * Corresponds to the TBS Certificate in
      +   * https://tools.ietf.org/html/rfc5280#section-4.1.2. The field will always be
      +   * populated.
      +   * 
      + * + * string tbs_certificate_digest = 9; + * + * @return The tbsCertificateDigest. + */ + java.lang.String getTbsCertificateDigest(); + + /** + * + * + *
      +   * The hash of the pre-signed certificate, which will be signed by the CA.
      +   * Corresponds to the TBS Certificate in
      +   * https://tools.ietf.org/html/rfc5280#section-4.1.2. The field will always be
      +   * populated.
      +   * 
      + * + * string tbs_certificate_digest = 9; + * + * @return The bytes for tbsCertificateDigest. + */ + com.google.protobuf.ByteString getTbsCertificateDigestBytes(); } diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateOrBuilder.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateOrBuilder.java index 77c0682b25db..0542066b30b4 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateOrBuilder.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateOrBuilder.java @@ -28,14 +28,12 @@ public interface CertificateOrBuilder * * *
      -   * Output only. The resource name for this
      +   * Identifier. The resource name for this
          * [Certificate][google.cloud.security.privateca.v1.Certificate] in the format
          * `projects/*/locations/*/caPools/*/certificates/*`.
          * 
      * - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -45,14 +43,12 @@ public interface CertificateOrBuilder * * *
      -   * Output only. The resource name for this
      +   * Identifier. The resource name for this
          * [Certificate][google.cloud.security.privateca.v1.Certificate] in the format
          * `projects/*/locations/*/caPools/*/certificates/*`.
          * 
      * - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateRevocationList.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateRevocationList.java index 58e545ce82bb..c953a393ed92 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateRevocationList.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateRevocationList.java @@ -1420,13 +1420,13 @@ public com.google.protobuf.Parser getParserForType() { * * *
      -   * Output only. The resource name for this
      +   * Identifier. The resource name for this
          * [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]
          * in the format `projects/*/locations/*/caPools/*certificateAuthorities/*/
          *    certificateRevocationLists/*`.
          * 
      * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -1447,13 +1447,13 @@ public java.lang.String getName() { * * *
      -   * Output only. The resource name for this
      +   * Identifier. The resource name for this
          * [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]
          * in the format `projects/*/locations/*/caPools/*certificateAuthorities/*/
          *    certificateRevocationLists/*`.
          * 
      * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -2710,13 +2710,13 @@ public Builder mergeFrom( * * *
      -     * Output only. The resource name for this
      +     * Identifier. The resource name for this
            * [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]
            * in the format `projects/*/locations/*/caPools/*certificateAuthorities/*/
            *    certificateRevocationLists/*`.
            * 
      * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -2736,13 +2736,13 @@ public java.lang.String getName() { * * *
      -     * Output only. The resource name for this
      +     * Identifier. The resource name for this
            * [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]
            * in the format `projects/*/locations/*/caPools/*certificateAuthorities/*/
            *    certificateRevocationLists/*`.
            * 
      * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -2762,13 +2762,13 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
      -     * Output only. The resource name for this
      +     * Identifier. The resource name for this
            * [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]
            * in the format `projects/*/locations/*/caPools/*certificateAuthorities/*/
            *    certificateRevocationLists/*`.
            * 
      * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -2787,13 +2787,13 @@ public Builder setName(java.lang.String value) { * * *
      -     * Output only. The resource name for this
      +     * Identifier. The resource name for this
            * [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]
            * in the format `projects/*/locations/*/caPools/*certificateAuthorities/*/
            *    certificateRevocationLists/*`.
            * 
      * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -2808,13 +2808,13 @@ public Builder clearName() { * * *
      -     * Output only. The resource name for this
      +     * Identifier. The resource name for this
            * [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]
            * in the format `projects/*/locations/*/caPools/*certificateAuthorities/*/
            *    certificateRevocationLists/*`.
            * 
      * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateRevocationListOrBuilder.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateRevocationListOrBuilder.java index f651af8d6917..fa32842f72fb 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateRevocationListOrBuilder.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateRevocationListOrBuilder.java @@ -28,13 +28,13 @@ public interface CertificateRevocationListOrBuilder * * *
      -   * Output only. The resource name for this
      +   * Identifier. The resource name for this
          * [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]
          * in the format `projects/*/locations/*/caPools/*certificateAuthorities/*/
          *    certificateRevocationLists/*`.
          * 
      * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -44,13 +44,13 @@ public interface CertificateRevocationListOrBuilder * * *
      -   * Output only. The resource name for this
      +   * Identifier. The resource name for this
          * [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]
          * in the format `projects/*/locations/*/caPools/*certificateAuthorities/*/
          *    certificateRevocationLists/*`.
          * 
      * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplate.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplate.java index d9359fe00038..cc385d55299c 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplate.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplate.java @@ -89,14 +89,12 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl * * *
      -   * Output only. The resource name for this
      +   * Identifier. The resource name for this
          * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]
          * in the format `projects/*/locations/*/certificateTemplates/*`.
          * 
      * - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -117,14 +115,12 @@ public java.lang.String getName() { * * *
      -   * Output only. The resource name for this
      +   * Identifier. The resource name for this
          * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]
          * in the format `projects/*/locations/*/certificateTemplates/*`.
          * 
      * - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1438,14 +1434,12 @@ public Builder mergeFrom( * * *
      -     * Output only. The resource name for this
      +     * Identifier. The resource name for this
            * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]
            * in the format `projects/*/locations/*/certificateTemplates/*`.
            * 
      * - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -1465,14 +1459,12 @@ public java.lang.String getName() { * * *
      -     * Output only. The resource name for this
      +     * Identifier. The resource name for this
            * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]
            * in the format `projects/*/locations/*/certificateTemplates/*`.
            * 
      * - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1492,14 +1484,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
      -     * Output only. The resource name for this
      +     * Identifier. The resource name for this
            * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]
            * in the format `projects/*/locations/*/certificateTemplates/*`.
            * 
      * - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -1518,14 +1508,12 @@ public Builder setName(java.lang.String value) { * * *
      -     * Output only. The resource name for this
      +     * Identifier. The resource name for this
            * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]
            * in the format `projects/*/locations/*/certificateTemplates/*`.
            * 
      * - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -1540,14 +1528,12 @@ public Builder clearName() { * * *
      -     * Output only. The resource name for this
      +     * Identifier. The resource name for this
            * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]
            * in the format `projects/*/locations/*/certificateTemplates/*`.
            * 
      * - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplateOrBuilder.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplateOrBuilder.java index 2a75aff9a69a..0065e461c85d 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplateOrBuilder.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplateOrBuilder.java @@ -28,14 +28,12 @@ public interface CertificateTemplateOrBuilder * * *
      -   * Output only. The resource name for this
      +   * Identifier. The resource name for this
          * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]
          * in the format `projects/*/locations/*/certificateTemplates/*`.
          * 
      * - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -45,14 +43,12 @@ public interface CertificateTemplateOrBuilder * * *
      -   * Output only. The resource name for this
      +   * Identifier. The resource name for this
          * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]
          * in the format `projects/*/locations/*/certificateTemplates/*`.
          * 
      * - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCaPoolRequest.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCaPoolRequest.java index db211b03adcd..f868ab7b18ba 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCaPoolRequest.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCaPoolRequest.java @@ -270,7 +270,9 @@ public com.google.cloud.security.privateca.v1.CaPoolOrBuilder getCaPoolOrBuilder * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The requestId. */ @@ -306,7 +308,9 @@ public java.lang.String getRequestId() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The bytes for requestId. */ @@ -1249,7 +1253,9 @@ public com.google.cloud.security.privateca.v1.CaPoolOrBuilder getCaPoolOrBuilder * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The requestId. */ @@ -1284,7 +1290,9 @@ public java.lang.String getRequestId() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The bytes for requestId. */ @@ -1319,7 +1327,9 @@ public com.google.protobuf.ByteString getRequestIdBytes() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @param value The requestId to set. * @return This builder for chaining. @@ -1353,7 +1363,9 @@ public Builder setRequestId(java.lang.String value) { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return This builder for chaining. */ @@ -1383,7 +1395,9 @@ public Builder clearRequestId() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @param value The bytes for requestId to set. * @return This builder for chaining. diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCaPoolRequestOrBuilder.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCaPoolRequestOrBuilder.java index 0ba32396a15f..9d10f589580c 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCaPoolRequestOrBuilder.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCaPoolRequestOrBuilder.java @@ -151,7 +151,9 @@ public interface CreateCaPoolRequestOrBuilder * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The requestId. */ @@ -176,7 +178,9 @@ public interface CreateCaPoolRequestOrBuilder * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The bytes for requestId. */ diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateRequest.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateRequest.java index 1251fdd726ea..66f9854ae80e 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateRequest.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateRequest.java @@ -144,8 +144,9 @@ public com.google.protobuf.ByteString getParentBytes() { * Optional. It must be unique within a location and match the regular * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] - * in the Enterprise [CertificateAuthority.Tier][], but is optional and its - * value is ignored otherwise. + * in the Enterprise + * [CertificateAuthority.tier][google.cloud.security.privateca.v1.CertificateAuthority.tier], + * but is optional and its value is ignored otherwise. * * * string certificate_id = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -172,8 +173,9 @@ public java.lang.String getCertificateId() { * Optional. It must be unique within a location and match the regular * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] - * in the Enterprise [CertificateAuthority.Tier][], but is optional and its - * value is ignored otherwise. + * in the Enterprise + * [CertificateAuthority.tier][google.cloud.security.privateca.v1.CertificateAuthority.tier], + * but is optional and its value is ignored otherwise. * * * string certificate_id = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1083,8 +1085,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * Optional. It must be unique within a location and match the regular * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] - * in the Enterprise [CertificateAuthority.Tier][], but is optional and its - * value is ignored otherwise. + * in the Enterprise + * [CertificateAuthority.tier][google.cloud.security.privateca.v1.CertificateAuthority.tier], + * but is optional and its value is ignored otherwise. * * * string certificate_id = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1110,8 +1113,9 @@ public java.lang.String getCertificateId() { * Optional. It must be unique within a location and match the regular * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] - * in the Enterprise [CertificateAuthority.Tier][], but is optional and its - * value is ignored otherwise. + * in the Enterprise + * [CertificateAuthority.tier][google.cloud.security.privateca.v1.CertificateAuthority.tier], + * but is optional and its value is ignored otherwise. * * * string certificate_id = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1137,8 +1141,9 @@ public com.google.protobuf.ByteString getCertificateIdBytes() { * Optional. It must be unique within a location and match the regular * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] - * in the Enterprise [CertificateAuthority.Tier][], but is optional and its - * value is ignored otherwise. + * in the Enterprise + * [CertificateAuthority.tier][google.cloud.security.privateca.v1.CertificateAuthority.tier], + * but is optional and its value is ignored otherwise. * * * string certificate_id = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1163,8 +1168,9 @@ public Builder setCertificateId(java.lang.String value) { * Optional. It must be unique within a location and match the regular * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] - * in the Enterprise [CertificateAuthority.Tier][], but is optional and its - * value is ignored otherwise. + * in the Enterprise + * [CertificateAuthority.tier][google.cloud.security.privateca.v1.CertificateAuthority.tier], + * but is optional and its value is ignored otherwise. * * * string certificate_id = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1185,8 +1191,9 @@ public Builder clearCertificateId() { * Optional. It must be unique within a location and match the regular * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] - * in the Enterprise [CertificateAuthority.Tier][], but is optional and its - * value is ignored otherwise. + * in the Enterprise + * [CertificateAuthority.tier][google.cloud.security.privateca.v1.CertificateAuthority.tier], + * but is optional and its value is ignored otherwise. * * * string certificate_id = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateRequestOrBuilder.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateRequestOrBuilder.java index 63cc1c617ceb..0e199351e93f 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateRequestOrBuilder.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateRequestOrBuilder.java @@ -67,8 +67,9 @@ public interface CreateCertificateRequestOrBuilder * Optional. It must be unique within a location and match the regular * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] - * in the Enterprise [CertificateAuthority.Tier][], but is optional and its - * value is ignored otherwise. + * in the Enterprise + * [CertificateAuthority.tier][google.cloud.security.privateca.v1.CertificateAuthority.tier], + * but is optional and its value is ignored otherwise. * * * string certificate_id = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -84,8 +85,9 @@ public interface CreateCertificateRequestOrBuilder * Optional. It must be unique within a location and match the regular * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] - * in the Enterprise [CertificateAuthority.Tier][], but is optional and its - * value is ignored otherwise. + * in the Enterprise + * [CertificateAuthority.tier][google.cloud.security.privateca.v1.CertificateAuthority.tier], + * but is optional and its value is ignored otherwise. * * * string certificate_id = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateTemplateRequest.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateTemplateRequest.java index 3a57e1d9493b..8b823d264402 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateTemplateRequest.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateTemplateRequest.java @@ -275,7 +275,9 @@ public com.google.cloud.security.privateca.v1.CertificateTemplate getCertificate * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The requestId. */ @@ -311,7 +313,9 @@ public java.lang.String getRequestId() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The bytes for requestId. */ @@ -1284,7 +1288,9 @@ public Builder clearCertificateTemplate() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The requestId. */ @@ -1319,7 +1325,9 @@ public java.lang.String getRequestId() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The bytes for requestId. */ @@ -1354,7 +1362,9 @@ public com.google.protobuf.ByteString getRequestIdBytes() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @param value The requestId to set. * @return This builder for chaining. @@ -1388,7 +1398,9 @@ public Builder setRequestId(java.lang.String value) { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return This builder for chaining. */ @@ -1418,7 +1430,9 @@ public Builder clearRequestId() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @param value The bytes for requestId to set. * @return This builder for chaining. diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateTemplateRequestOrBuilder.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateTemplateRequestOrBuilder.java index 0ed5de31788a..0c5ce4a85042 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateTemplateRequestOrBuilder.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateTemplateRequestOrBuilder.java @@ -155,7 +155,9 @@ public interface CreateCertificateTemplateRequestOrBuilder * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The requestId. */ @@ -180,7 +182,9 @@ public interface CreateCertificateTemplateRequestOrBuilder * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The bytes for requestId. */ diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCaPoolRequest.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCaPoolRequest.java index 141da4abdab4..5306ee5fc1f5 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCaPoolRequest.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCaPoolRequest.java @@ -151,7 +151,9 @@ public com.google.protobuf.ByteString getNameBytes() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The requestId. */ @@ -187,7 +189,9 @@ public java.lang.String getRequestId() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The bytes for requestId. */ @@ -769,7 +773,9 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The requestId. */ @@ -804,7 +810,9 @@ public java.lang.String getRequestId() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The bytes for requestId. */ @@ -839,7 +847,9 @@ public com.google.protobuf.ByteString getRequestIdBytes() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @param value The requestId to set. * @return This builder for chaining. @@ -873,7 +883,9 @@ public Builder setRequestId(java.lang.String value) { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return This builder for chaining. */ @@ -903,7 +915,9 @@ public Builder clearRequestId() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @param value The bytes for requestId to set. * @return This builder for chaining. diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCaPoolRequestOrBuilder.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCaPoolRequestOrBuilder.java index 4763c6125377..e03df46298d9 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCaPoolRequestOrBuilder.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCaPoolRequestOrBuilder.java @@ -77,7 +77,9 @@ public interface DeleteCaPoolRequestOrBuilder * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The requestId. */ @@ -102,7 +104,9 @@ public interface DeleteCaPoolRequestOrBuilder * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The bytes for requestId. */ diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateAuthorityRequest.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateAuthorityRequest.java index 24baa43c8c3c..56abd146b35f 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateAuthorityRequest.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateAuthorityRequest.java @@ -152,7 +152,9 @@ public com.google.protobuf.ByteString getNameBytes() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The requestId. */ @@ -188,7 +190,9 @@ public java.lang.String getRequestId() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The bytes for requestId. */ @@ -867,7 +871,9 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The requestId. */ @@ -902,7 +908,9 @@ public java.lang.String getRequestId() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The bytes for requestId. */ @@ -937,7 +945,9 @@ public com.google.protobuf.ByteString getRequestIdBytes() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @param value The requestId to set. * @return This builder for chaining. @@ -971,7 +981,9 @@ public Builder setRequestId(java.lang.String value) { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return This builder for chaining. */ @@ -1001,7 +1013,9 @@ public Builder clearRequestId() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @param value The bytes for requestId to set. * @return This builder for chaining. diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateAuthorityRequestOrBuilder.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateAuthorityRequestOrBuilder.java index 505d2fef0ae8..343e121a6591 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateAuthorityRequestOrBuilder.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateAuthorityRequestOrBuilder.java @@ -77,7 +77,9 @@ public interface DeleteCertificateAuthorityRequestOrBuilder * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The requestId. */ @@ -102,7 +104,9 @@ public interface DeleteCertificateAuthorityRequestOrBuilder * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The bytes for requestId. */ diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateTemplateRequest.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateTemplateRequest.java index 4741c2dd30e1..b468081eb05e 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateTemplateRequest.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateTemplateRequest.java @@ -152,7 +152,9 @@ public com.google.protobuf.ByteString getNameBytes() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The requestId. */ @@ -188,7 +190,9 @@ public java.lang.String getRequestId() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The bytes for requestId. */ @@ -737,7 +741,9 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The requestId. */ @@ -772,7 +778,9 @@ public java.lang.String getRequestId() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The bytes for requestId. */ @@ -807,7 +815,9 @@ public com.google.protobuf.ByteString getRequestIdBytes() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @param value The requestId to set. * @return This builder for chaining. @@ -841,7 +851,9 @@ public Builder setRequestId(java.lang.String value) { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return This builder for chaining. */ @@ -871,7 +883,9 @@ public Builder clearRequestId() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @param value The bytes for requestId to set. * @return This builder for chaining. diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateTemplateRequestOrBuilder.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateTemplateRequestOrBuilder.java index ea4e33f45281..3679d0ac94a1 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateTemplateRequestOrBuilder.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateTemplateRequestOrBuilder.java @@ -77,7 +77,9 @@ public interface DeleteCertificateTemplateRequestOrBuilder * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The requestId. */ @@ -102,7 +104,9 @@ public interface DeleteCertificateTemplateRequestOrBuilder * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The bytes for requestId. */ diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DisableCertificateAuthorityRequest.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DisableCertificateAuthorityRequest.java index a9523418b60a..a79051222789 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DisableCertificateAuthorityRequest.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DisableCertificateAuthorityRequest.java @@ -153,7 +153,9 @@ public com.google.protobuf.ByteString getNameBytes() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The requestId. */ @@ -189,7 +191,9 @@ public java.lang.String getRequestId() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The bytes for requestId. */ @@ -784,7 +788,9 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The requestId. */ @@ -819,7 +825,9 @@ public java.lang.String getRequestId() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The bytes for requestId. */ @@ -854,7 +862,9 @@ public com.google.protobuf.ByteString getRequestIdBytes() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @param value The requestId to set. * @return This builder for chaining. @@ -888,7 +898,9 @@ public Builder setRequestId(java.lang.String value) { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return This builder for chaining. */ @@ -918,7 +930,9 @@ public Builder clearRequestId() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @param value The bytes for requestId to set. * @return This builder for chaining. diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DisableCertificateAuthorityRequestOrBuilder.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DisableCertificateAuthorityRequestOrBuilder.java index fe805e869d9b..8cab1faa8814 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DisableCertificateAuthorityRequestOrBuilder.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DisableCertificateAuthorityRequestOrBuilder.java @@ -77,7 +77,9 @@ public interface DisableCertificateAuthorityRequestOrBuilder * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The requestId. */ @@ -102,7 +104,9 @@ public interface DisableCertificateAuthorityRequestOrBuilder * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The bytes for requestId. */ diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/EnableCertificateAuthorityRequest.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/EnableCertificateAuthorityRequest.java index df2207c03c53..0656bc501709 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/EnableCertificateAuthorityRequest.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/EnableCertificateAuthorityRequest.java @@ -152,7 +152,9 @@ public com.google.protobuf.ByteString getNameBytes() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The requestId. */ @@ -188,7 +190,9 @@ public java.lang.String getRequestId() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The bytes for requestId. */ @@ -738,7 +742,9 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The requestId. */ @@ -773,7 +779,9 @@ public java.lang.String getRequestId() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The bytes for requestId. */ @@ -808,7 +816,9 @@ public com.google.protobuf.ByteString getRequestIdBytes() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @param value The requestId to set. * @return This builder for chaining. @@ -842,7 +852,9 @@ public Builder setRequestId(java.lang.String value) { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return This builder for chaining. */ @@ -872,7 +884,9 @@ public Builder clearRequestId() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @param value The bytes for requestId to set. * @return This builder for chaining. diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/EnableCertificateAuthorityRequestOrBuilder.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/EnableCertificateAuthorityRequestOrBuilder.java index e62e8525c98b..3ad79389dcf4 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/EnableCertificateAuthorityRequestOrBuilder.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/EnableCertificateAuthorityRequestOrBuilder.java @@ -77,7 +77,9 @@ public interface EnableCertificateAuthorityRequestOrBuilder * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The requestId. */ @@ -102,7 +104,9 @@ public interface EnableCertificateAuthorityRequestOrBuilder * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The bytes for requestId. */ diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsResponse.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsResponse.java index 0b7aef5ed96d..b7a9ff39d221 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsResponse.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsResponse.java @@ -153,8 +153,8 @@ public com.google.cloud.security.privateca.v1.CaPoolOrBuilder getCaPoolsOrBuilde * *
          * A token to retrieve next page of results. Pass this value in
      -   * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
      -   * page of results.
      +   * [ListCertificateAuthoritiesRequest.page_token][google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest.page_token]
      +   * to retrieve the next page of results.
          * 
      * * string next_page_token = 2; @@ -179,8 +179,8 @@ public java.lang.String getNextPageToken() { * *
          * A token to retrieve next page of results. Pass this value in
      -   * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
      -   * page of results.
      +   * [ListCertificateAuthoritiesRequest.page_token][google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest.page_token]
      +   * to retrieve the next page of results.
          * 
      * * string next_page_token = 2; @@ -1097,8 +1097,8 @@ public com.google.cloud.security.privateca.v1.CaPool.Builder addCaPoolsBuilder(i * *
            * A token to retrieve next page of results. Pass this value in
      -     * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
      -     * page of results.
      +     * [ListCertificateAuthoritiesRequest.page_token][google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest.page_token]
      +     * to retrieve the next page of results.
            * 
      * * string next_page_token = 2; @@ -1122,8 +1122,8 @@ public java.lang.String getNextPageToken() { * *
            * A token to retrieve next page of results. Pass this value in
      -     * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
      -     * page of results.
      +     * [ListCertificateAuthoritiesRequest.page_token][google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest.page_token]
      +     * to retrieve the next page of results.
            * 
      * * string next_page_token = 2; @@ -1147,8 +1147,8 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * *
            * A token to retrieve next page of results. Pass this value in
      -     * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
      -     * page of results.
      +     * [ListCertificateAuthoritiesRequest.page_token][google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest.page_token]
      +     * to retrieve the next page of results.
            * 
      * * string next_page_token = 2; @@ -1171,8 +1171,8 @@ public Builder setNextPageToken(java.lang.String value) { * *
            * A token to retrieve next page of results. Pass this value in
      -     * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
      -     * page of results.
      +     * [ListCertificateAuthoritiesRequest.page_token][google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest.page_token]
      +     * to retrieve the next page of results.
            * 
      * * string next_page_token = 2; @@ -1191,8 +1191,8 @@ public Builder clearNextPageToken() { * *
            * A token to retrieve next page of results. Pass this value in
      -     * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
      -     * page of results.
      +     * [ListCertificateAuthoritiesRequest.page_token][google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest.page_token]
      +     * to retrieve the next page of results.
            * 
      * * string next_page_token = 2; diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsResponseOrBuilder.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsResponseOrBuilder.java index e80564b05904..2dff26802cad 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsResponseOrBuilder.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsResponseOrBuilder.java @@ -85,8 +85,8 @@ public interface ListCaPoolsResponseOrBuilder * *
          * A token to retrieve next page of results. Pass this value in
      -   * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
      -   * page of results.
      +   * [ListCertificateAuthoritiesRequest.page_token][google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest.page_token]
      +   * to retrieve the next page of results.
          * 
      * * string next_page_token = 2; @@ -100,8 +100,8 @@ public interface ListCaPoolsResponseOrBuilder * *
          * A token to retrieve next page of results. Pass this value in
      -   * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
      -   * page of results.
      +   * [ListCertificateAuthoritiesRequest.page_token][google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest.page_token]
      +   * to retrieve the next page of results.
          * 
      * * string next_page_token = 2; diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesResponse.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesResponse.java index 6fbc6ca00acc..ebf8edc59de2 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesResponse.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesResponse.java @@ -175,8 +175,8 @@ public com.google.cloud.security.privateca.v1.CertificateAuthority getCertificat * *
          * A token to retrieve next page of results. Pass this value in
      -   * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
      -   * page of results.
      +   * [ListCertificateAuthoritiesRequest.page_token][google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest.page_token]
      +   * to retrieve the next page of results.
          * 
      * * string next_page_token = 2; @@ -201,8 +201,8 @@ public java.lang.String getNextPageToken() { * *
          * A token to retrieve next page of results. Pass this value in
      -   * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
      -   * page of results.
      +   * [ListCertificateAuthoritiesRequest.page_token][google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest.page_token]
      +   * to retrieve the next page of results.
          * 
      * * string next_page_token = 2; @@ -1211,8 +1211,8 @@ public Builder removeCertificateAuthorities(int index) { * *
            * A token to retrieve next page of results. Pass this value in
      -     * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
      -     * page of results.
      +     * [ListCertificateAuthoritiesRequest.page_token][google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest.page_token]
      +     * to retrieve the next page of results.
            * 
      * * string next_page_token = 2; @@ -1236,8 +1236,8 @@ public java.lang.String getNextPageToken() { * *
            * A token to retrieve next page of results. Pass this value in
      -     * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
      -     * page of results.
      +     * [ListCertificateAuthoritiesRequest.page_token][google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest.page_token]
      +     * to retrieve the next page of results.
            * 
      * * string next_page_token = 2; @@ -1261,8 +1261,8 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * *
            * A token to retrieve next page of results. Pass this value in
      -     * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
      -     * page of results.
      +     * [ListCertificateAuthoritiesRequest.page_token][google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest.page_token]
      +     * to retrieve the next page of results.
            * 
      * * string next_page_token = 2; @@ -1285,8 +1285,8 @@ public Builder setNextPageToken(java.lang.String value) { * *
            * A token to retrieve next page of results. Pass this value in
      -     * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
      -     * page of results.
      +     * [ListCertificateAuthoritiesRequest.page_token][google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest.page_token]
      +     * to retrieve the next page of results.
            * 
      * * string next_page_token = 2; @@ -1305,8 +1305,8 @@ public Builder clearNextPageToken() { * *
            * A token to retrieve next page of results. Pass this value in
      -     * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
      -     * page of results.
      +     * [ListCertificateAuthoritiesRequest.page_token][google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest.page_token]
      +     * to retrieve the next page of results.
            * 
      * * string next_page_token = 2; diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesResponseOrBuilder.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesResponseOrBuilder.java index 8df813f4786a..87677c6a6576 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesResponseOrBuilder.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesResponseOrBuilder.java @@ -102,8 +102,8 @@ public interface ListCertificateAuthoritiesResponseOrBuilder * *
          * A token to retrieve next page of results. Pass this value in
      -   * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
      -   * page of results.
      +   * [ListCertificateAuthoritiesRequest.page_token][google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest.page_token]
      +   * to retrieve the next page of results.
          * 
      * * string next_page_token = 2; @@ -117,8 +117,8 @@ public interface ListCertificateAuthoritiesResponseOrBuilder * *
          * A token to retrieve next page of results. Pass this value in
      -   * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
      -   * page of results.
      +   * [ListCertificateAuthoritiesRequest.page_token][google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest.page_token]
      +   * to retrieve the next page of results.
          * 
      * * string next_page_token = 2; diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsResponse.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsResponse.java index 61b9cba51597..bfd660945b04 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsResponse.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsResponse.java @@ -176,8 +176,8 @@ public int getCertificateRevocationListsCount() { * *
          * A token to retrieve next page of results. Pass this value in
      -   * [ListCertificateRevocationListsRequest.next_page_token][] to retrieve the
      -   * next page of results.
      +   * [ListCertificateRevocationListsRequest.page_token][google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest.page_token]
      +   * to retrieve the next page of results.
          * 
      * * string next_page_token = 2; @@ -202,8 +202,8 @@ public java.lang.String getNextPageToken() { * *
          * A token to retrieve next page of results. Pass this value in
      -   * [ListCertificateRevocationListsRequest.next_page_token][] to retrieve the
      -   * next page of results.
      +   * [ListCertificateRevocationListsRequest.page_token][google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest.page_token]
      +   * to retrieve the next page of results.
          * 
      * * string next_page_token = 2; @@ -1223,8 +1223,8 @@ public Builder removeCertificateRevocationLists(int index) { * *
            * A token to retrieve next page of results. Pass this value in
      -     * [ListCertificateRevocationListsRequest.next_page_token][] to retrieve the
      -     * next page of results.
      +     * [ListCertificateRevocationListsRequest.page_token][google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest.page_token]
      +     * to retrieve the next page of results.
            * 
      * * string next_page_token = 2; @@ -1248,8 +1248,8 @@ public java.lang.String getNextPageToken() { * *
            * A token to retrieve next page of results. Pass this value in
      -     * [ListCertificateRevocationListsRequest.next_page_token][] to retrieve the
      -     * next page of results.
      +     * [ListCertificateRevocationListsRequest.page_token][google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest.page_token]
      +     * to retrieve the next page of results.
            * 
      * * string next_page_token = 2; @@ -1273,8 +1273,8 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * *
            * A token to retrieve next page of results. Pass this value in
      -     * [ListCertificateRevocationListsRequest.next_page_token][] to retrieve the
      -     * next page of results.
      +     * [ListCertificateRevocationListsRequest.page_token][google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest.page_token]
      +     * to retrieve the next page of results.
            * 
      * * string next_page_token = 2; @@ -1297,8 +1297,8 @@ public Builder setNextPageToken(java.lang.String value) { * *
            * A token to retrieve next page of results. Pass this value in
      -     * [ListCertificateRevocationListsRequest.next_page_token][] to retrieve the
      -     * next page of results.
      +     * [ListCertificateRevocationListsRequest.page_token][google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest.page_token]
      +     * to retrieve the next page of results.
            * 
      * * string next_page_token = 2; @@ -1317,8 +1317,8 @@ public Builder clearNextPageToken() { * *
            * A token to retrieve next page of results. Pass this value in
      -     * [ListCertificateRevocationListsRequest.next_page_token][] to retrieve the
      -     * next page of results.
      +     * [ListCertificateRevocationListsRequest.page_token][google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest.page_token]
      +     * to retrieve the next page of results.
            * 
      * * string next_page_token = 2; diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsResponseOrBuilder.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsResponseOrBuilder.java index 8ca8551990ba..f082e9f0d817 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsResponseOrBuilder.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsResponseOrBuilder.java @@ -104,8 +104,8 @@ com.google.cloud.security.privateca.v1.CertificateRevocationList getCertificateR * *
          * A token to retrieve next page of results. Pass this value in
      -   * [ListCertificateRevocationListsRequest.next_page_token][] to retrieve the
      -   * next page of results.
      +   * [ListCertificateRevocationListsRequest.page_token][google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest.page_token]
      +   * to retrieve the next page of results.
          * 
      * * string next_page_token = 2; @@ -119,8 +119,8 @@ com.google.cloud.security.privateca.v1.CertificateRevocationList getCertificateR * *
          * A token to retrieve next page of results. Pass this value in
      -   * [ListCertificateRevocationListsRequest.next_page_token][] to retrieve the
      -   * next page of results.
      +   * [ListCertificateRevocationListsRequest.page_token][google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest.page_token]
      +   * to retrieve the next page of results.
          * 
      * * string next_page_token = 2; diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesResponse.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesResponse.java index 939a9624a64e..62d17866331d 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesResponse.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesResponse.java @@ -174,8 +174,8 @@ public com.google.cloud.security.privateca.v1.CertificateTemplate getCertificate * *
          * A token to retrieve next page of results. Pass this value in
      -   * [ListCertificateTemplatesRequest.next_page_token][] to retrieve
      -   * the next page of results.
      +   * [ListCertificateTemplatesRequest.page_token][google.cloud.security.privateca.v1.ListCertificateTemplatesRequest.page_token]
      +   * to retrieve the next page of results.
          * 
      * * string next_page_token = 2; @@ -200,8 +200,8 @@ public java.lang.String getNextPageToken() { * *
          * A token to retrieve next page of results. Pass this value in
      -   * [ListCertificateTemplatesRequest.next_page_token][] to retrieve
      -   * the next page of results.
      +   * [ListCertificateTemplatesRequest.page_token][google.cloud.security.privateca.v1.ListCertificateTemplatesRequest.page_token]
      +   * to retrieve the next page of results.
          * 
      * * string next_page_token = 2; @@ -1206,8 +1206,8 @@ public Builder removeCertificateTemplates(int index) { * *
            * A token to retrieve next page of results. Pass this value in
      -     * [ListCertificateTemplatesRequest.next_page_token][] to retrieve
      -     * the next page of results.
      +     * [ListCertificateTemplatesRequest.page_token][google.cloud.security.privateca.v1.ListCertificateTemplatesRequest.page_token]
      +     * to retrieve the next page of results.
            * 
      * * string next_page_token = 2; @@ -1231,8 +1231,8 @@ public java.lang.String getNextPageToken() { * *
            * A token to retrieve next page of results. Pass this value in
      -     * [ListCertificateTemplatesRequest.next_page_token][] to retrieve
      -     * the next page of results.
      +     * [ListCertificateTemplatesRequest.page_token][google.cloud.security.privateca.v1.ListCertificateTemplatesRequest.page_token]
      +     * to retrieve the next page of results.
            * 
      * * string next_page_token = 2; @@ -1256,8 +1256,8 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * *
            * A token to retrieve next page of results. Pass this value in
      -     * [ListCertificateTemplatesRequest.next_page_token][] to retrieve
      -     * the next page of results.
      +     * [ListCertificateTemplatesRequest.page_token][google.cloud.security.privateca.v1.ListCertificateTemplatesRequest.page_token]
      +     * to retrieve the next page of results.
            * 
      * * string next_page_token = 2; @@ -1280,8 +1280,8 @@ public Builder setNextPageToken(java.lang.String value) { * *
            * A token to retrieve next page of results. Pass this value in
      -     * [ListCertificateTemplatesRequest.next_page_token][] to retrieve
      -     * the next page of results.
      +     * [ListCertificateTemplatesRequest.page_token][google.cloud.security.privateca.v1.ListCertificateTemplatesRequest.page_token]
      +     * to retrieve the next page of results.
            * 
      * * string next_page_token = 2; @@ -1300,8 +1300,8 @@ public Builder clearNextPageToken() { * *
            * A token to retrieve next page of results. Pass this value in
      -     * [ListCertificateTemplatesRequest.next_page_token][] to retrieve
      -     * the next page of results.
      +     * [ListCertificateTemplatesRequest.page_token][google.cloud.security.privateca.v1.ListCertificateTemplatesRequest.page_token]
      +     * to retrieve the next page of results.
            * 
      * * string next_page_token = 2; diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesResponseOrBuilder.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesResponseOrBuilder.java index c270676e39ca..d910eca92dfe 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesResponseOrBuilder.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesResponseOrBuilder.java @@ -102,8 +102,8 @@ public interface ListCertificateTemplatesResponseOrBuilder * *
          * A token to retrieve next page of results. Pass this value in
      -   * [ListCertificateTemplatesRequest.next_page_token][] to retrieve
      -   * the next page of results.
      +   * [ListCertificateTemplatesRequest.page_token][google.cloud.security.privateca.v1.ListCertificateTemplatesRequest.page_token]
      +   * to retrieve the next page of results.
          * 
      * * string next_page_token = 2; @@ -117,8 +117,8 @@ public interface ListCertificateTemplatesResponseOrBuilder * *
          * A token to retrieve next page of results. Pass this value in
      -   * [ListCertificateTemplatesRequest.next_page_token][] to retrieve
      -   * the next page of results.
      +   * [ListCertificateTemplatesRequest.page_token][google.cloud.security.privateca.v1.ListCertificateTemplatesRequest.page_token]
      +   * to retrieve the next page of results.
          * 
      * * string next_page_token = 2; diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesResponse.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesResponse.java index ae6545da70a6..39e5bb61b151 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesResponse.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesResponse.java @@ -154,8 +154,8 @@ public com.google.cloud.security.privateca.v1.CertificateOrBuilder getCertificat * *
          * A token to retrieve next page of results. Pass this value in
      -   * [ListCertificatesRequest.next_page_token][] to retrieve the
      -   * next page of results.
      +   * [ListCertificatesRequest.page_token][google.cloud.security.privateca.v1.ListCertificatesRequest.page_token]
      +   * to retrieve the next page of results.
          * 
      * * string next_page_token = 2; @@ -180,8 +180,8 @@ public java.lang.String getNextPageToken() { * *
          * A token to retrieve next page of results. Pass this value in
      -   * [ListCertificatesRequest.next_page_token][] to retrieve the
      -   * next page of results.
      +   * [ListCertificatesRequest.page_token][google.cloud.security.privateca.v1.ListCertificatesRequest.page_token]
      +   * to retrieve the next page of results.
          * 
      * * string next_page_token = 2; @@ -1112,8 +1112,8 @@ public com.google.cloud.security.privateca.v1.Certificate.Builder addCertificate * *
            * A token to retrieve next page of results. Pass this value in
      -     * [ListCertificatesRequest.next_page_token][] to retrieve the
      -     * next page of results.
      +     * [ListCertificatesRequest.page_token][google.cloud.security.privateca.v1.ListCertificatesRequest.page_token]
      +     * to retrieve the next page of results.
            * 
      * * string next_page_token = 2; @@ -1137,8 +1137,8 @@ public java.lang.String getNextPageToken() { * *
            * A token to retrieve next page of results. Pass this value in
      -     * [ListCertificatesRequest.next_page_token][] to retrieve the
      -     * next page of results.
      +     * [ListCertificatesRequest.page_token][google.cloud.security.privateca.v1.ListCertificatesRequest.page_token]
      +     * to retrieve the next page of results.
            * 
      * * string next_page_token = 2; @@ -1162,8 +1162,8 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * *
            * A token to retrieve next page of results. Pass this value in
      -     * [ListCertificatesRequest.next_page_token][] to retrieve the
      -     * next page of results.
      +     * [ListCertificatesRequest.page_token][google.cloud.security.privateca.v1.ListCertificatesRequest.page_token]
      +     * to retrieve the next page of results.
            * 
      * * string next_page_token = 2; @@ -1186,8 +1186,8 @@ public Builder setNextPageToken(java.lang.String value) { * *
            * A token to retrieve next page of results. Pass this value in
      -     * [ListCertificatesRequest.next_page_token][] to retrieve the
      -     * next page of results.
      +     * [ListCertificatesRequest.page_token][google.cloud.security.privateca.v1.ListCertificatesRequest.page_token]
      +     * to retrieve the next page of results.
            * 
      * * string next_page_token = 2; @@ -1206,8 +1206,8 @@ public Builder clearNextPageToken() { * *
            * A token to retrieve next page of results. Pass this value in
      -     * [ListCertificatesRequest.next_page_token][] to retrieve the
      -     * next page of results.
      +     * [ListCertificatesRequest.page_token][google.cloud.security.privateca.v1.ListCertificatesRequest.page_token]
      +     * to retrieve the next page of results.
            * 
      * * string next_page_token = 2; diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesResponseOrBuilder.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesResponseOrBuilder.java index 120d99430ea1..6a14760548f8 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesResponseOrBuilder.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesResponseOrBuilder.java @@ -85,8 +85,8 @@ public interface ListCertificatesResponseOrBuilder * *
          * A token to retrieve next page of results. Pass this value in
      -   * [ListCertificatesRequest.next_page_token][] to retrieve the
      -   * next page of results.
      +   * [ListCertificatesRequest.page_token][google.cloud.security.privateca.v1.ListCertificatesRequest.page_token]
      +   * to retrieve the next page of results.
          * 
      * * string next_page_token = 2; @@ -100,8 +100,8 @@ public interface ListCertificatesResponseOrBuilder * *
          * A token to retrieve next page of results. Pass this value in
      -   * [ListCertificatesRequest.next_page_token][] to retrieve the
      -   * next page of results.
      +   * [ListCertificatesRequest.page_token][google.cloud.security.privateca.v1.ListCertificatesRequest.page_token]
      +   * to retrieve the next page of results.
          * 
      * * string next_page_token = 2; diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/OperationMetadata.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/OperationMetadata.java index 2f11a96b62f9..df1f3cf9043d 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/OperationMetadata.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/OperationMetadata.java @@ -340,9 +340,10 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { *
          * Output only. Identifies whether the user has requested cancellation
          * of the operation. Operations that have successfully been cancelled
      -   * have [Operation.error][] value with a
      -   * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
      -   * `Code.CANCELLED`.
      +   * have
      +   * [google.longrunning.Operation.error][google.longrunning.Operation.error]
      +   * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
      +   * corresponding to `Code.CANCELLED`.
          * 
      * * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1673,9 +1674,10 @@ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { *
            * Output only. Identifies whether the user has requested cancellation
            * of the operation. Operations that have successfully been cancelled
      -     * have [Operation.error][] value with a
      -     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
      -     * `Code.CANCELLED`.
      +     * have
      +     * [google.longrunning.Operation.error][google.longrunning.Operation.error]
      +     * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
      +     * corresponding to `Code.CANCELLED`.
            * 
      * * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1693,9 +1695,10 @@ public boolean getRequestedCancellation() { *
            * Output only. Identifies whether the user has requested cancellation
            * of the operation. Operations that have successfully been cancelled
      -     * have [Operation.error][] value with a
      -     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
      -     * `Code.CANCELLED`.
      +     * have
      +     * [google.longrunning.Operation.error][google.longrunning.Operation.error]
      +     * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
      +     * corresponding to `Code.CANCELLED`.
            * 
      * * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1717,9 +1720,10 @@ public Builder setRequestedCancellation(boolean value) { *
            * Output only. Identifies whether the user has requested cancellation
            * of the operation. Operations that have successfully been cancelled
      -     * have [Operation.error][] value with a
      -     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
      -     * `Code.CANCELLED`.
      +     * have
      +     * [google.longrunning.Operation.error][google.longrunning.Operation.error]
      +     * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
      +     * corresponding to `Code.CANCELLED`.
            * 
      * * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/OperationMetadataOrBuilder.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/OperationMetadataOrBuilder.java index cedb8e0cbbea..68195bbb513c 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/OperationMetadataOrBuilder.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/OperationMetadataOrBuilder.java @@ -188,9 +188,10 @@ public interface OperationMetadataOrBuilder *
          * Output only. Identifies whether the user has requested cancellation
          * of the operation. Operations that have successfully been cancelled
      -   * have [Operation.error][] value with a
      -   * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
      -   * `Code.CANCELLED`.
      +   * have
      +   * [google.longrunning.Operation.error][google.longrunning.Operation.error]
      +   * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
      +   * corresponding to `Code.CANCELLED`.
          * 
      * * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PrivateCaProto.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PrivateCaProto.java index 2ed5ec0dbc47..00b8bca4ba60 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PrivateCaProto.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PrivateCaProto.java @@ -193,16 +193,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "0google/cloud/security/privateca/v1/service.proto\022\"google.cloud.security.privat" + "eca.v1\032\034google/api/annotations.proto\032\027go" + "ogle/api/client.proto\032\037google/api/field_" - + "behavior.proto\032\031google/api/resource.prot" - + "o\0322google/cloud/security/privateca/v1/resources.proto\032#google/longrunning/operat" - + "ions.proto\032\033google/protobuf/empty.proto\032" + + "behavior.proto\032\033google/api/field_info.pr" + + "oto\032\031google/api/resource.proto\0322google/c" + + "loud/security/privateca/v1/resources.pro" + + "to\032#google/longrunning/operations.proto\032\033google/protobuf/empty.proto\032" + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\237\002\n" + "\030CreateCertificateRequest\0227\n" + "\006parent\030\001 \001(\tB\'\340A\002\372A!\n" + "\037privateca.googleapis.com/CaPool\022\033\n" + "\016certificate_id\030\002 \001(\tB\003\340A\001\022I\n" - + "\013certificate\030\003 \001" - + "(\0132/.google.cloud.security.privateca.v1.CertificateB\003\340A\002\022\027\n\n" + + "\013certificate\030\003 \001(\0132/.google" + + ".cloud.security.privateca.v1.CertificateB\003\340A\002\022\027\n\n" + "request_id\030\004 \001(\tB\003\340A\001\022\032\n\r" + "validate_only\030\005 \001(\010B\003\340A\001\022-\n" + " issuing_certificate_authority_id\030\006 \001(\tB\003\340A\001\"S\n" @@ -217,45 +218,45 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + "\010order_by\030\005 \001(\tB\003\340A\001\"\217\001\n" + "\030ListCertificatesResponse\022E\n" - + "\014certificates\030\001 \003(\0132/.google." - + "cloud.security.privateca.v1.Certificate\022\027\n" + + "\014certificates\030\001" + + " \003(\0132/.google.cloud.security.privateca.v1.Certificate\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" + "\013unreachable\030\003 \003(\t\"\272\001\n" + "\030RevokeCertificateRequest\022:\n" + "\004name\030\001 \001(\tB,\340A\002\372A&\n" + "$privateca.googleapis.com/Certificate\022I\n" - + "\006reason\030\002 \001(\01624.google." - + "cloud.security.privateca.v1.RevocationReasonB\003\340A\002\022\027\n\n" + + "\006reason\030\002 \001(\01624.google.cloud.secur" + + "ity.privateca.v1.RevocationReasonB\003\340A\002\022\027\n\n" + "request_id\030\003 \001(\tB\003\340A\001\"\264\001\n" + "\030UpdateCertificateRequest\022I\n" - + "\013certificate\030\001" - + " \001(\0132/.google.cloud.security.privateca.v1.CertificateB\003\340A\002\0224\n" + + "\013certificate\030\001 \001(\0132/.goog" + + "le.cloud.security.privateca.v1.CertificateB\003\340A\002\0224\n" + "\013update_mask\030\002" + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022\027\n\n" - + "request_id\030\003 \001(\tB\003\340A\001\"\374\001\n" + + "request_id\030\003 \001(\tB\003\340A\001\"\204\002\n" + "#ActivateCertificateAuthorityRequest\022C\n" + "\004name\030\001 \001(\tB5\340A\002\372A/\n" + "-privateca.googleapis.com/CertificateAuthority\022\037\n" + "\022pem_ca_certificate\030\002 \001(\tB\003\340A\002\022V\n" - + "\022subordinate_config\030\003 \001(\01325.google.clo" - + "ud.security.privateca.v1.SubordinateConfigB\003\340A\002\022\027\n\n" - + "request_id\030\004 \001(\tB\003\340A\001\"\372\001\n" + + "\022subordinate_config\030\003" + + " \001(\01325.google.cloud.security.privateca.v1.SubordinateConfigB\003\340A\002\022\037\n\n" + + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\372\001\n" + "!CreateCertificateAuthorityRequest\0227\n" + "\006parent\030\001 \001(\tB\'\340A\002\372A!\n" + "\037privateca.googleapis.com/CaPool\022%\n" + "\030certificate_authority_id\030\002 \001(\tB\003\340A\002\022\\\n" - + "\025certificate_authority\030\003 \001(\01328." - + "google.cloud.security.privateca.v1.CertificateAuthorityB\003\340A\002\022\027\n\n" - + "request_id\030\004 \001(\tB\003\340A\001\"\253\001\n" + + "\025certificate_authority\030\003 \001(\01328.goo" + + "gle.cloud.security.privateca.v1.CertificateAuthorityB\003\340A\002\022\027\n\n" + + "request_id\030\004 \001(\tB\003\340A\001\"\263\001\n" + "\"DisableCertificateAuthorityRequest\022C\n" + "\004name\030\001 \001(\tB5\340A\002\372A/\n" - + "-privateca.googleapis.com/CertificateAuthority\022\027\n\n" - + "request_id\030\002 \001(\tB\003\340A\001\022\'\n" - + "\032ignore_dependent_resources\030\003 \001(\010B\003\340A\001\"\201\001\n" + + "-privateca.googleapis.com/CertificateAuthority\022\037\n\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\022\'\n" + + "\032ignore_dependent_resources\030\003 \001(\010B\003\340A\001\"\211\001\n" + "!EnableCertificateAuthorityRequest\022C\n" + "\004name\030\001 \001(\tB5\340A\002\372A/\n" - + "-privateca.googleapis.com/CertificateAuthority\022\027\n\n" - + "request_id\030\002 \001(\tB\003\340A\001\"j\n" + + "-privateca.googleapis.com/CertificateAuthority\022\037\n\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"j\n" + "#FetchCertificateAuthorityCsrRequest\022C\n" + "\004name\030\001 \001(\tB5\340A\002\372A/\n" + "-privateca.googleapis.com/CertificateAuthority\"<\n" @@ -275,49 +276,49 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027certificate_authorities\030\001" + " \003(\01328.google.cloud.security.privateca.v1.CertificateAuthority\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" - + "\013unreachable\030\003 \003(\t\"\203\001\n" + + "\013unreachable\030\003 \003(\t\"\213\001\n" + "#UndeleteCertificateAuthorityRequest\022C\n" + "\004name\030\001 \001(\tB5\340A\002\372A/\n" - + "-privateca.googleapis.com/CertificateAuthority\022\027\n\n" - + "request_id\030\002 \001(\tB\003\340A\001\"\363\001\n" + + "-privateca.googleapis.com/CertificateAuthority\022\037\n\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\373\001\n" + "!DeleteCertificateAuthorityRequest\022C\n" + "\004name\030\001 \001(\tB5\340A\002\372A/\n" - + "-privateca.googleapis.com/CertificateAuthority\022\027\n\n" - + "request_id\030\002 \001(\tB\003\340A\001\022\'\n" + + "-privateca.googleapis.com/CertificateAuthority\022\037\n\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\022\'\n" + "\032ignore_active_certificates\030\004 \001(\010B\003\340A\001\022\036\n" + "\021skip_grace_period\030\005 \001(\010B\003\340A\001\022\'\n" - + "\032ignore_dependent_resources\030\006 \001(\010B\003\340A\001\"\320\001\n" + + "\032ignore_dependent_resources\030\006 \001(\010B\003\340A\001\"\330\001\n" + "!UpdateCertificateAuthorityRequest\022\\\n" - + "\025certificate_authority\030\001 \001(\01328." - + "google.cloud.security.privateca.v1.CertificateAuthorityB\003\340A\002\0224\n" + + "\025certificate_authority\030\001 \001(\01328.google.clou" + + "d.security.privateca.v1.CertificateAuthorityB\003\340A\002\0224\n" + "\013update_mask\030\002" - + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022\027\n\n" - + "request_id\030\003 \001(\tB\003\340A\001\"\304\001\n" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022\037\n\n" + + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\314\001\n" + "\023CreateCaPoolRequest\0229\n" + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + "!locations.googleapis.com/Location\022\027\n\n" + "ca_pool_id\030\002 \001(\tB\003\340A\002\022@\n" + "\007ca_pool\030\003" - + " \001(\0132*.google.cloud.security.privateca.v1.CaPoolB\003\340A\002\022\027\n\n" - + "request_id\030\004 \001(\tB\003\340A\001\"\246\001\n" + + " \001(\0132*.google.cloud.security.privateca.v1.CaPoolB\003\340A\002\022\037\n\n" + + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\256\001\n" + "\023UpdateCaPoolRequest\022@\n" + "\007ca_pool\030\001" + " \001(\0132*.google.cloud.security.privateca.v1.CaPoolB\003\340A\002\0224\n" + "\013update_mask\030\002" - + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022\027\n\n" - + "request_id\030\003 \001(\tB\003\340A\001\"\216\001\n" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022\037\n\n" + + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\226\001\n" + "\023DeleteCaPoolRequest\0225\n" + "\004name\030\001 \001(\tB\'\340A\002\372A!\n" - + "\037privateca.googleapis.com/CaPool\022\027\n\n" - + "request_id\030\002 \001(\tB\003\340A\001\022\'\n" + + "\037privateca.googleapis.com/CaPool\022\037\n\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\022\'\n" + "\032ignore_dependent_resources\030\004 \001(\010B\003\340A\001\"h\n" + "\023FetchCaCertsRequest\0228\n" + "\007ca_pool\030\001 \001(\tB\'\340A\002\372A!\n" + "\037privateca.googleapis.com/CaPool\022\027\n\n" + "request_id\030\002 \001(\tB\003\340A\001\"\217\001\n" + "\024FetchCaCertsResponse\022T\n" - + "\010ca_certs\030\001 \003(" - + "\0132B.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain\032!\n" + + "\010ca_certs\030\001 \003(\0132B.google.cloud.se" + + "curity.privateca.v1.FetchCaCertsResponse.CertChain\032!\n" + "\tCertChain\022\024\n" + "\014certificates\030\001 \003(\t\"I\n" + "\020GetCaPoolRequest\0225\n" @@ -340,33 +341,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "%ListCertificateRevocationListsRequest\022E\n" + "\006parent\030\001 \001(\tB5\340A\002\372A/\n" + "-privateca.googleapis.com/CertificateAuthority\022\026\n" - + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n" + + "\n" + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + "\010order_by\030\005 \001(\tB\003\340A\001\"\273\001\n" + "&ListCertificateRevocationListsResponse\022c\n" - + "\034certificate_revocation_lists\030\001" - + " \003(\0132=.google.cloud.security.privateca.v1.CertificateRevocationList\022\027\n" + + "\034certificate_revocation_lists\030\001 \003(\0132=.google.clo" + + "ud.security.privateca.v1.CertificateRevocationList\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" + "\013unreachable\030\003 \003(\t\"\340\001\n" + "&UpdateCertificateRevocationListRequest\022g\n" - + "\033certificate_revocation_list\030\001 \001(\0132=.go" - + "ogle.cloud.security.privateca.v1.CertificateRevocationListB\003\340A\002\0224\n" + + "\033certificate_revocation_list\030\001 \001(\0132=.google.cloud.security" + + ".privateca.v1.CertificateRevocationListB\003\340A\002\0224\n" + "\013update_mask\030\002" - + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022\027\n" - + "\n" - + "request_id\030\003 \001(\tB\003\340A\001\"\370\001\n" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022\027\n\n" + + "request_id\030\003 \001(\tB\003\340A\001\"\200\002\n" + " CreateCertificateTemplateRequest\0229\n" + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + "!locations.googleapis.com/Location\022$\n" + "\027certificate_template_id\030\002 \001(\tB\003\340A\002\022Z\n" - + "\024certificate_template\030\003 \001(\01327.google.clou" - + "d.security.privateca.v1.CertificateTemplateB\003\340A\002\022\027\n\n" - + "request_id\030\004 \001(\tB\003\340A\001\"\177\n" + + "\024certificate_template\030\003" + + " \001(\01327.google.cloud.security.privateca.v1.CertificateTemplateB\003\340A\002\022\037\n\n" + + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\207\001\n" + " DeleteCertificateTemplateRequest\022B\n" + "\004name\030\001 \001(\tB4\340A\002\372A.\n" - + ",privateca.googleapis.com/CertificateTemplate\022\027\n\n" - + "request_id\030\002 \001(\tB\003\340A\001\"c\n" + + ",privateca.googleapis.com/CertificateTemplate\022\037\n\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"c\n" + "\035GetCertificateTemplateRequest\022B\n" + "\004name\030\001 \001(\tB4\340A\002\372A.\n" + ",privateca.googleapis.com/CertificateTemplate\"\271\001\n" @@ -378,16 +379,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + "\010order_by\030\005 \001(\tB\003\340A\001\"\250\001\n" + " ListCertificateTemplatesResponse\022V\n" - + "\025certificate_templates\030\001 \003(\0132" - + "7.google.cloud.security.privateca.v1.CertificateTemplate\022\027\n" + + "\025certificate_templates\030\001 \003(\01327." + + "google.cloud.security.privateca.v1.CertificateTemplate\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" - + "\013unreachable\030\003 \003(\t\"\315\001\n" + + "\013unreachable\030\003 \003(\t\"\325\001\n" + " UpdateCertificateTemplateRequest\022Z\n" + "\024certificate_template\030\001" + " \001(\01327.google.cloud.security.privateca.v1.CertificateTemplateB\003\340A\002\0224\n" + "\013update_mask\030\002" - + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022\027\n\n" - + "request_id\030\003 \001(\tB\003\340A\001\"\200\002\n" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022\037\n\n" + + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\200\002\n" + "\021OperationMetadata\0224\n" + "\013create_time\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221\n" + "\010end_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n" @@ -397,157 +398,157 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026requested_cancellation\030\006 \001(\010B\003\340A\003\022\030\n" + "\013api_version\030\007 \001(\tB\003\340A\0032\372;\n" + "\033CertificateAuthorityService\022\367\001\n" - + "\021CreateCertificate\022<.google.cloud.security.privateca.v1.CreateCertificateRe" - + "quest\032/.google.cloud.security.privateca." - + "v1.Certificate\"s\332A!parent,certificate,ce" - + "rtificate_id\202\323\344\223\002I\":/v1/{parent=projects" - + "/*/locations/*/caPools/*}/certificates:\013certificate\022\307\001\n" - + "\016GetCertificate\0229.google.cloud.security.privateca.v1.GetCertifica" - + "teRequest\032/.google.cloud.security.privat" - + "eca.v1.Certificate\"I\332A\004name\202\323\344\223\002<\022:/v1/{" - + "name=projects/*/locations/*/caPools/*/certificates/*}\022\332\001\n" - + "\020ListCertificates\022;.google.cloud.security.privateca.v1.ListCert" - + "ificatesRequest\032<.google.cloud.security." - + "privateca.v1.ListCertificatesResponse\"K\332" - + "A\006parent\202\323\344\223\002<\022:/v1/{parent=projects/*/locations/*/caPools/*}/certificates\022\327\001\n" - + "\021RevokeCertificate\022<.google.cloud.security" - + ".privateca.v1.RevokeCertificateRequest\032/.google.cloud.security.privateca.v1.Cert" - + "ificate\"S\332A\004name\202\323\344\223\002F\"A/v1/{name=projec" - + "ts/*/locations/*/caPools/*/certificates/*}:revoke:\001*\022\371\001\n" - + "\021UpdateCertificate\022<.google.cloud.security.privateca.v1.UpdateCe" - + "rtificateRequest\032/.google.cloud.security" - + ".privateca.v1.Certificate\"u\332A\027certificat" - + "e,update_mask\202\323\344\223\002U2F/v1/{certificate.na" - + "me=projects/*/locations/*/caPools/*/certificates/*}:\013certificate\022\224\002\n" - + "\034ActivateCertificateAuthority\022G.google.cloud.securit" - + "y.privateca.v1.ActivateCertificateAuthor" - + "ityRequest\032\035.google.longrunning.Operation\"\213\001\312A)\n" - + "\024CertificateAuthority\022\021Operation" - + "Metadata\332A\004name\202\323\344\223\002R\"M/v1/{name=project" - + "s/*/locations/*/caPools/*/certificateAuthorities/*}:activate:\001*\022\314\002\n" - + "\032CreateCertificateAuthority\022E.google.cloud.security.p" - + "rivateca.v1.CreateCertificateAuthorityRe" - + "quest\032\035.google.longrunning.Operation\"\307\001\312A)\n" - + "\024CertificateAuthority\022\021OperationMetad" - + "ata\332A5parent,certificate_authority,certi" - + "ficate_authority_id\202\323\344\223\002]\"D/v1/{parent=p" - + "rojects/*/locations/*/caPools/*}/certifi" - + "cateAuthorities:\025certificate_authority\022\221\002\n" - + "\033DisableCertificateAuthority\022F.google.cloud.security.privateca.v1.DisableCerti" - + "ficateAuthorityRequest\032\035.google.longrunning.Operation\"\212\001\312A)\n" - + "\024CertificateAuthorit" - + "y\022\021OperationMetadata\332A\004name\202\323\344\223\002Q\"L/v1/{" - + "name=projects/*/locations/*/caPools/*/certificateAuthorities/*}:disable:\001*\022\216\002\n" - + "\032EnableCertificateAuthority\022E.google.cloud" - + ".security.privateca.v1.EnableCertificate" - + "AuthorityRequest\032\035.google.longrunning.Operation\"\211\001\312A)\n" + + "\021CreateCertificate\022<.google.cloud.security.privateca.v1.CreateCertifi" + + "cateRequest\032/.google.cloud.security.priv" + + "ateca.v1.Certificate\"s\332A!parent,certific" + + "ate,certificate_id\202\323\344\223\002I\":/v1/{parent=pr" + + "ojects/*/locations/*/caPools/*}/certificates:\013certificate\022\307\001\n" + + "\016GetCertificate\0229.google.cloud.security.privateca.v1.GetCer" + + "tificateRequest\032/.google.cloud.security." + + "privateca.v1.Certificate\"I\332A\004name\202\323\344\223\002<\022" + + ":/v1/{name=projects/*/locations/*/caPools/*/certificates/*}\022\332\001\n" + + "\020ListCertificates\022;.google.cloud.security.privateca.v1.Li" + + "stCertificatesRequest\032<.google.cloud.security.privateca.v1.ListCertificatesRespo" + + "nse\"K\332A\006parent\202\323\344\223\002<\022:/v1/{parent=projec" + + "ts/*/locations/*/caPools/*}/certificates\022\327\001\n" + + "\021RevokeCertificate\022<.google.cloud.security.privateca.v1.RevokeCertificateReq" + + "uest\032/.google.cloud.security.privateca.v" + + "1.Certificate\"S\332A\004name\202\323\344\223\002F\"A/v1/{name=" + + "projects/*/locations/*/caPools/*/certificates/*}:revoke:\001*\022\371\001\n" + + "\021UpdateCertificate\022<.google.cloud.security.privateca.v1.Up" + + "dateCertificateRequest\032/.google.cloud.se" + + "curity.privateca.v1.Certificate\"u\332A\027cert" + + "ificate,update_mask\202\323\344\223\002U2F/v1/{certific" + + "ate.name=projects/*/locations/*/caPools/*/certificates/*}:\013certificate\022\224\002\n" + + "\034ActivateCertificateAuthority\022G.google.cloud.s" + + "ecurity.privateca.v1.ActivateCertificate" + + "AuthorityRequest\032\035.google.longrunning.Operation\"\213\001\312A)\n" + "\024CertificateAuthority\022\021Ope" - + "rationMetadata\332A\004name\202\323\344\223\002P\"K/v1/{name=p" - + "rojects/*/locations/*/caPools/*/certificateAuthorities/*}:enable:\001*\022\214\002\n" - + "\034FetchCertificateAuthorityCsr\022G.google.cloud.secu" - + "rity.privateca.v1.FetchCertificateAuthorityCsrRequest\032H.google.cloud.security.pr" - + "ivateca.v1.FetchCertificateAuthorityCsrR" - + "esponse\"Y\332A\004name\202\323\344\223\002L\022J/v1/{name=projec" - + "ts/*/locations/*/caPools/*/certificateAuthorities/*}:fetch\022\354\001\n" - + "\027GetCertificateAuthority\022B.google.cloud.security.privateca" - + ".v1.GetCertificateAuthorityRequest\0328.google.cloud.security.privateca.v1.Certific" - + "ateAuthority\"S\332A\004name\202\323\344\223\002F\022D/v1/{name=p" - + "rojects/*/locations/*/caPools/*/certificateAuthorities/*}\022\202\002\n" - + "\032ListCertificateAuthorities\022E.google.cloud.security.private" - + "ca.v1.ListCertificateAuthoritiesRequest\032F.google.cloud.security.privateca.v1.Lis" - + "tCertificateAuthoritiesResponse\"U\332A\006pare" - + "nt\202\323\344\223\002F\022D/v1/{parent=projects/*/locatio" - + "ns/*/caPools/*}/certificateAuthorities\022\224\002\n" - + "\034UndeleteCertificateAuthority\022G.google.cloud.security.privateca.v1.UndeleteCer" - + "tificateAuthorityRequest\032\035.google.longrunning.Operation\"\213\001\312A)\n" + + "rationMetadata\332A\004name\202\323\344\223\002R\"M/v1/{name=p" + + "rojects/*/locations/*/caPools/*/certificateAuthorities/*}:activate:\001*\022\314\002\n" + + "\032CreateCertificateAuthority\022E.google.cloud.secu" + + "rity.privateca.v1.CreateCertificateAutho" + + "rityRequest\032\035.google.longrunning.Operation\"\307\001\312A)\n" + + "\024CertificateAuthority\022\021OperationMetadata\332A5parent,certificate_authority" + + ",certificate_authority_id\202\323\344\223\002]\"D/v1/{pa" + + "rent=projects/*/locations/*/caPools/*}/c" + + "ertificateAuthorities:\025certificate_authority\022\221\002\n" + + "\033DisableCertificateAuthority\022F.google.cloud.security.privateca.v1.Disabl" + + "eCertificateAuthorityRequest\032\035.google.longrunning.Operation\"\212\001\312A)\n" + + "\024CertificateAuthority\022\021OperationMetadata\332A\004name\202\323\344\223\002Q\"" + + "L/v1/{name=projects/*/locations/*/caPool" + + "s/*/certificateAuthorities/*}:disable:\001*\022\216\002\n" + + "\032EnableCertificateAuthority\022E.google.cloud.security.privateca.v1.EnableCerti" + + "ficateAuthorityRequest\032\035.google.longrunning.Operation\"\211\001\312A)\n" + + "\024CertificateAuthorit" + + "y\022\021OperationMetadata\332A\004name\202\323\344\223\002P\"K/v1/{" + + "name=projects/*/locations/*/caPools/*/certificateAuthorities/*}:enable:\001*\022\214\002\n" + + "\034FetchCertificateAuthorityCsr\022G.google.clou" + + "d.security.privateca.v1.FetchCertificateAuthorityCsrRequest\032H.google.cloud.secur" + + "ity.privateca.v1.FetchCertificateAuthori" + + "tyCsrResponse\"Y\332A\004name\202\323\344\223\002L\022J/v1/{name=" + + "projects/*/locations/*/caPools/*/certificateAuthorities/*}:fetch\022\354\001\n" + + "\027GetCertificateAuthority\022B.google.cloud.security.pri" + + "vateca.v1.GetCertificateAuthorityRequest\0328.google.cloud.security.privateca.v1.Ce" + + "rtificateAuthority\"S\332A\004name\202\323\344\223\002F\022D/v1/{" + + "name=projects/*/locations/*/caPools/*/certificateAuthorities/*}\022\202\002\n" + + "\032ListCertificateAuthorities\022E.google.cloud.security.p" + + "rivateca.v1.ListCertificateAuthoritiesRequest\032F.google.cloud.security.privateca." + + "v1.ListCertificateAuthoritiesResponse\"U\332" + + "A\006parent\202\323\344\223\002F\022D/v1/{parent=projects/*/l" + + "ocations/*/caPools/*}/certificateAuthorities\022\224\002\n" + + "\034UndeleteCertificateAuthority\022G.google.cloud.security.privateca.v1.Undel" + + "eteCertificateAuthorityRequest\032\035.google.longrunning.Operation\"\213\001\312A)\n" + + "\024CertificateAuthority\022\021OperationMetadata\332A\004name\202\323\344\223\002" + + "R\"M/v1/{name=projects/*/locations/*/caPo" + + "ols/*/certificateAuthorities/*}:undelete:\001*\022\203\002\n" + + "\032DeleteCertificateAuthority\022E.google.cloud.security.privateca.v1.DeleteCe" + + "rtificateAuthorityRequest\032\035.google.longrunning.Operation\"\177\312A)\n" + "\024CertificateAuthor" - + "ity\022\021OperationMetadata\332A\004name\202\323\344\223\002R\"M/v1" - + "/{name=projects/*/locations/*/caPools/*/" - + "certificateAuthorities/*}:undelete:\001*\022\203\002\n" - + "\032DeleteCertificateAuthority\022E.google.cloud.security.privateca.v1.DeleteCertific" - + "ateAuthorityRequest\032\035.google.longrunning.Operation\"\177\312A)\n" - + "\024CertificateAuthority\022\021O" - + "perationMetadata\332A\004name\202\323\344\223\002F*D/v1/{name" - + "=projects/*/locations/*/caPools/*/certificateAuthorities/*}\022\316\002\n" - + "\032UpdateCertificateAuthority\022E.google.cloud.security.priva" - + "teca.v1.UpdateCertificateAuthorityRequest\032\035.google.longrunning.Operation\"\311\001\312A)\n" - + "\024CertificateAuthority\022\021OperationMetadata\332" - + "A!certificate_authority,update_mask\202\323\344\223\002" - + "s2Z/v1/{certificate_authority.name=proje" - + "cts/*/locations/*/caPools/*/certificateAuthorities/*}:\025certificate_authority\022\336\001\n" - + "\014CreateCaPool\0227.google.cloud.security.pr" - + "ivateca.v1.CreateCaPoolRequest\032\035.google.longrunning.Operation\"v\312A\033\n" - + "\006CaPool\022\021OperationMetadata\332A\031parent,ca_pool,ca_pool_i" - + "d\202\323\344\223\0026\"+/v1/{parent=projects/*/locations/*}/caPools:\007ca_pool\022\340\001\n" - + "\014UpdateCaPool\0227.google.cloud.security.privateca.v1.Upda" - + "teCaPoolRequest\032\035.google.longrunning.Operation\"x\312A\033\n" - + "\006CaPool\022\021OperationMetadata\332A" - + "\023ca_pool,update_mask\202\323\344\223\002>23/v1/{ca_pool" - + ".name=projects/*/locations/*/caPools/*}:\007ca_pool\022\251\001\n" - + "\tGetCaPool\0224.google.cloud.security.privateca.v1.GetCaPoolRequest\032*.g" - + "oogle.cloud.security.privateca.v1.CaPool" - + "\":\332A\004name\202\323\344\223\002-\022+/v1/{name=projects/*/locations/*/caPools/*}\022\274\001\n" - + "\013ListCaPools\0226.google.cloud.security.privateca.v1.ListCa" - + "PoolsRequest\0327.google.cloud.security.pri" - + "vateca.v1.ListCaPoolsResponse\"<\332A\006parent" - + "\202\323\344\223\002-\022+/v1/{parent=projects/*/locations/*}/caPools\022\317\001\n" - + "\014DeleteCaPool\0227.google.cloud.security.privateca.v1.DeleteCaPoolRe" - + "quest\032\035.google.longrunning.Operation\"g\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMetad" - + "ata\332A\004name\202\323\344\223\002-*+/v1/{name=projects/*/locations/*/caPools/*}\022\323\001\n" - + "\014FetchCaCerts\0227.google.cloud.security.privateca.v1.Fetc" - + "hCaCertsRequest\0328.google.cloud.security." - + "privateca.v1.FetchCaCertsResponse\"P\332A\007ca" - + "_pool\202\323\344\223\002@\";/v1/{ca_pool=projects/*/locations/*/caPools/*}:fetchCaCerts:\001*\022\230\002\n" - + "\034GetCertificateRevocationList\022G.google.cl" - + "oud.security.privateca.v1.GetCertificateRevocationListRequest\032=.google.cloud.sec" - + "urity.privateca.v1.CertificateRevocation" - + "List\"p\332A\004name\202\323\344\223\002c\022a/v1/{name=projects/" - + "*/locations/*/caPools/*/certificateAutho" - + "rities/*/certificateRevocationLists/*}\022\253\002\n" - + "\036ListCertificateRevocationLists\022I.google.cloud.security.privateca.v1.ListCerti" - + "ficateRevocationListsRequest\032J.google.cloud.security.privateca.v1.ListCertificat" - + "eRevocationListsResponse\"r\332A\006parent\202\323\344\223\002" - + "c\022a/v1/{parent=projects/*/locations/*/ca" - + "Pools/*/certificateAuthorities/*}/certificateRevocationLists\022\215\003\n" - + "\037UpdateCertificateRevocationList\022J.google.cloud.security" - + ".privateca.v1.UpdateCertificateRevocatio" - + "nListRequest\032\035.google.longrunning.Operation\"\376\001\312A.\n" - + "\031CertificateRevocationList\022\021OperationMetadata\332A\'certificate_revocation" - + "_list,update_mask\202\323\344\223\002\234\0012}/v1/{certifica" - + "te_revocation_list.name=projects/*/locations/*/caPools/*/certificateAuthorities/" - + "*/certificateRevocationLists/*}:\033certificate_revocation_list\022\272\002\n" - + "\031CreateCertificateTemplate\022D.google.cloud.security.priva" - + "teca.v1.CreateCertificateTemplateRequest\032\035.google.longrunning.Operation\"\267\001\312A(\n" - + "\023CertificateTemplate\022\021OperationMetadata\332A3" - + "parent,certificate_template,certificate_" - + "template_id\202\323\344\223\002P\"8/v1/{parent=projects/" - + "*/locations/*}/certificateTemplates:\024certificate_template\022\232\002\n" - + "\031DeleteCertificateTemplate\022D.google.cloud.security.privatec" - + "a.v1.DeleteCertificateTemplateRequest\032\035.google.longrunning.Operation\"\227\001\312AM\n" - + "\025google.protobuf.Empty\0224google.cloud.security" - + ".privateca.v1.OperationMetadata\332A\004name\202\323" - + "\344\223\002:*8/v1/{name=projects/*/locations/*/certificateTemplates/*}\022\335\001\n" - + "\026GetCertificateTemplate\022A.google.cloud.security.privat" - + "eca.v1.GetCertificateTemplateRequest\0327.google.cloud.security.privateca.v1.Certif" - + "icateTemplate\"G\332A\004name\202\323\344\223\002:\0228/v1/{name=" - + "projects/*/locations/*/certificateTemplates/*}\022\360\001\n" - + "\030ListCertificateTemplates\022C.google.cloud.security.privateca.v1.ListCer" - + "tificateTemplatesRequest\032D.google.cloud.security.privateca.v1.ListCertificateTem" - + "platesResponse\"I\332A\006parent\202\323\344\223\002:\0228/v1/{pa" - + "rent=projects/*/locations/*}/certificateTemplates\022\274\002\n" - + "\031UpdateCertificateTemplate\022D.google.cloud.security.privateca.v1.Upd" - + "ateCertificateTemplateRequest\032\035.google.longrunning.Operation\"\271\001\312A(\n" - + "\023CertificateTemplate\022\021OperationMetadata\332A certificate" - + "_template,update_mask\202\323\344\223\002e2M/v1/{certif" - + "icate_template.name=projects/*/locations/*/certificateTemplates/*}:\024certificate_" - + "template\032L\312A\030privateca.googleapis.com\322A." - + "https://www.googleapis.com/auth/cloud-platformB\366\001\n" - + "&com.google.cloud.security.privateca.v1B\016PrivateCaProtoP\001ZDcloud.googl" - + "e.com/go/security/privateca/apiv1/privat" - + "ecapb;privatecapb\370\001\001\252\002\"Google.Cloud.Secu" - + "rity.PrivateCA.V1\312\002\"Google\\Cloud\\Securit" - + "y\\PrivateCA\\V1\352\002&Google::Cloud::Security::PrivateCA::V1b\006proto3" + + "ity\022\021OperationMetadata\332A\004name\202\323\344\223\002F*D/v1" + + "/{name=projects/*/locations/*/caPools/*/certificateAuthorities/*}\022\316\002\n" + + "\032UpdateCertificateAuthority\022E.google.cloud.security" + + ".privateca.v1.UpdateCertificateAuthority" + + "Request\032\035.google.longrunning.Operation\"\311\001\312A)\n" + + "\024CertificateAuthority\022\021OperationMet" + + "adata\332A!certificate_authority,update_mas" + + "k\202\323\344\223\002s2Z/v1/{certificate_authority.name" + + "=projects/*/locations/*/caPools/*/certif" + + "icateAuthorities/*}:\025certificate_authority\022\336\001\n" + + "\014CreateCaPool\0227.google.cloud.secur" + + "ity.privateca.v1.CreateCaPoolRequest\032\035.google.longrunning.Operation\"v\312A\033\n" + + "\006CaPool\022\021OperationMetadata\332A\031parent,ca_pool,ca_" + + "pool_id\202\323\344\223\0026\"+/v1/{parent=projects/*/locations/*}/caPools:\007ca_pool\022\340\001\n" + + "\014UpdateCaPool\0227.google.cloud.security.privateca.v" + + "1.UpdateCaPoolRequest\032\035.google.longrunning.Operation\"x\312A\033\n" + + "\006CaPool\022\021OperationMeta" + + "data\332A\023ca_pool,update_mask\202\323\344\223\002>23/v1/{c" + + "a_pool.name=projects/*/locations/*/caPools/*}:\007ca_pool\022\251\001\n" + + "\tGetCaPool\0224.google.cloud.security.privateca.v1.GetCaPoolReque" + + "st\032*.google.cloud.security.privateca.v1." + + "CaPool\":\332A\004name\202\323\344\223\002-\022+/v1/{name=projects/*/locations/*/caPools/*}\022\274\001\n" + + "\013ListCaPools\0226.google.cloud.security.privateca.v1." + + "ListCaPoolsRequest\0327.google.cloud.securi" + + "ty.privateca.v1.ListCaPoolsResponse\"<\332A\006" + + "parent\202\323\344\223\002-\022+/v1/{parent=projects/*/locations/*}/caPools\022\317\001\n" + + "\014DeleteCaPool\0227.google.cloud.security.privateca.v1.DeleteCa" + + "PoolRequest\032\035.google.longrunning.Operation\"g\312A*\n" + + "\025google.protobuf.Empty\022\021Operatio" + + "nMetadata\332A\004name\202\323\344\223\002-*+/v1/{name=projects/*/locations/*/caPools/*}\022\323\001\n" + + "\014FetchCaCerts\0227.google.cloud.security.privateca.v" + + "1.FetchCaCertsRequest\0328.google.cloud.security.privateca.v1.FetchCaCertsResponse\"" + + "P\332A\007ca_pool\202\323\344\223\002@\";/v1/{ca_pool=projects" + + "/*/locations/*/caPools/*}:fetchCaCerts:\001*\022\230\002\n" + + "\034GetCertificateRevocationList\022G.google.cloud.security.privateca.v1.GetCerti" + + "ficateRevocationListRequest\032=.google.cloud.security.privateca.v1.CertificateRevo" + + "cationList\"p\332A\004name\202\323\344\223\002c\022a/v1/{name=pro" + + "jects/*/locations/*/caPools/*/certificat" + + "eAuthorities/*/certificateRevocationLists/*}\022\253\002\n" + + "\036ListCertificateRevocationLists\022I.google.cloud.security.privateca.v1.Lis" + + "tCertificateRevocationListsRequest\032J.google.cloud.security.privateca.v1.ListCert" + + "ificateRevocationListsResponse\"r\332A\006paren" + + "t\202\323\344\223\002c\022a/v1/{parent=projects/*/location" + + "s/*/caPools/*/certificateAuthorities/*}/certificateRevocationLists\022\215\003\n" + + "\037UpdateCertificateRevocationList\022J.google.cloud.se" + + "curity.privateca.v1.UpdateCertificateRev" + + "ocationListRequest\032\035.google.longrunning.Operation\"\376\001\312A.\n" + + "\031CertificateRevocationList\022\021OperationMetadata\332A\'certificate_revo" + + "cation_list,update_mask\202\323\344\223\002\234\0012}/v1/{cer" + + "tificate_revocation_list.name=projects/*/locations/*/caPools/*/certificateAuthor" + + "ities/*/certificateRevocationLists/*}:\033certificate_revocation_list\022\272\002\n" + + "\031CreateCertificateTemplate\022D.google.cloud.security" + + ".privateca.v1.CreateCertificateTemplateR" + + "equest\032\035.google.longrunning.Operation\"\267\001\312A(\n" + + "\023CertificateTemplate\022\021OperationMetad" + + "ata\332A3parent,certificate_template,certif" + + "icate_template_id\202\323\344\223\002P\"8/v1/{parent=pro" + + "jects/*/locations/*}/certificateTemplates:\024certificate_template\022\232\002\n" + + "\031DeleteCertificateTemplate\022D.google.cloud.security.pr" + + "ivateca.v1.DeleteCertificateTemplateRequ" + + "est\032\035.google.longrunning.Operation\"\227\001\312AM\n" + + "\025google.protobuf.Empty\0224google.cloud.se" + + "curity.privateca.v1.OperationMetadata\332A\004" + + "name\202\323\344\223\002:*8/v1/{name=projects/*/locations/*/certificateTemplates/*}\022\335\001\n" + + "\026GetCertificateTemplate\022A.google.cloud.security." + + "privateca.v1.GetCertificateTemplateRequest\0327.google.cloud.security.privateca.v1." + + "CertificateTemplate\"G\332A\004name\202\323\344\223\002:\0228/v1/" + + "{name=projects/*/locations/*/certificateTemplates/*}\022\360\001\n" + + "\030ListCertificateTemplates\022C.google.cloud.security.privateca.v1.L" + + "istCertificateTemplatesRequest\032D.google.cloud.security.privateca.v1.ListCertific" + + "ateTemplatesResponse\"I\332A\006parent\202\323\344\223\002:\0228/" + + "v1/{parent=projects/*/locations/*}/certificateTemplates\022\274\002\n" + + "\031UpdateCertificateTemplate\022D.google.cloud.security.privateca." + + "v1.UpdateCertificateTemplateRequest\032\035.google.longrunning.Operation\"\271\001\312A(\n" + + "\023CertificateTemplate\022\021OperationMetadata\332A certi" + + "ficate_template,update_mask\202\323\344\223\002e2M/v1/{" + + "certificate_template.name=projects/*/locations/*/certificateTemplates/*}:\024certif" + + "icate_template\032L\312A\030privateca.googleapis." + + "com\322A.https://www.googleapis.com/auth/cloud-platformB\363\001\n" + + "&com.google.cloud.security.privateca.v1B\016PrivateCaProtoP\001ZDcloud" + + ".google.com/go/security/privateca/apiv1/" + + "privatecapb;privatecapb\252\002\"Google.Cloud.S" + + "ecurity.PrivateCA.V1\312\002\"Google\\Cloud\\Secu" + + "rity\\PrivateCA\\V1\352\002&Google::Cloud::Security::PrivateCA::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -556,6 +557,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.AnnotationsProto.getDescriptor(), com.google.api.ClientProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.FieldInfoProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), @@ -888,6 +890,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.FieldInfoProto.fieldInfo); registry.add(com.google.api.AnnotationsProto.http); registry.add(com.google.api.ClientProto.methodSignature); registry.add(com.google.api.ClientProto.oauthScopes); @@ -898,6 +901,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.FieldInfoProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PrivateCaResourcesProto.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PrivateCaResourcesProto.java index 0f65c6836060..edac961745e5 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PrivateCaResourcesProto.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PrivateCaResourcesProto.java @@ -40,6 +40,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_security_privateca_v1_CertificateAuthority_KeyVersionSpec_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_security_privateca_v1_CertificateAuthority_KeyVersionSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CertificateAuthority_UserDefinedAccessUrls_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CertificateAuthority_UserDefinedAccessUrls_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_security_privateca_v1_CertificateAuthority_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -180,6 +184,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_security_privateca_v1_KeyUsage_ExtendedKeyUsageOptions_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_security_privateca_v1_KeyUsage_ExtendedKeyUsageOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_AttributeTypeAndValue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_AttributeTypeAndValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_RelativeDistinguishedName_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_RelativeDistinguishedName_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_security_privateca_v1_Subject_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -210,9 +222,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ateca.v1\032\037google/api/field_behavior.prot" + "o\032\031google/api/resource.proto\032\036google/pro" + "tobuf/duration.proto\032\037google/protobuf/ti" - + "mestamp.proto\032\026google/type/expr.proto\"\365\017\n" + + "mestamp.proto\032\026google/type/expr.proto\"\206\022\n" + "\024CertificateAuthority\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022S\n" + + "\004name\030\001 \001(\tB\003\340A\010\022S\n" + "\004type\030\002 \001(\0162=.google.cloud.security." + "privateca.v1.CertificateAuthority.TypeB\006\340A\002\340A\005\022M\n" + "\006config\030\003 \001(\01325.google.cloud.se" @@ -241,15 +253,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013delete_time\030\017 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013expire_time\030\020 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022Y\n" + "\006labels\030\021 \003(\0132D.google.cloud.security.privateca." - + "v1.CertificateAuthority.LabelsEntryB\003\340A\001\032H\n\n" + + "v1.CertificateAuthority.LabelsEntryB\003\340A\001\022u\n" + + "\030user_defined_access_urls\030\022 \001(\0132N.goo" + + "gle.cloud.security.privateca.v1.Certific" + + "ateAuthority.UserDefinedAccessUrlsB\003\340A\001\022\032\n\r" + + "satisfies_pzs\030\023 \001(\010B\003\340A\003\022\032\n\r" + + "satisfies_pzi\030\024 \001(\010B\003\340A\003\032H\n\n" + "AccessUrls\022!\n" + "\031ca_certificate_access_url\030\001 \001(\t\022\027\n" + "\017crl_access_urls\030\002 \003(\t\032\240\001\n" + "\016KeyVersionSpec\022\037\n" + "\025cloud_kms_key_version\030\001 \001(\tH\000\022_\n" - + "\talgorithm\030\002 \001(\0162J.google.cloud" - + ".security.privateca.v1.CertificateAuthority.SignHashAlgorithmH\000B\014\n\n" - + "KeyVersion\032-\n" + + "\talgorithm\030\002 \001(\0162J.google.cloud.security.privateca.v1.Ce" + + "rtificateAuthority.SignHashAlgorithmH\000B\014\n\n" + + "KeyVersion\032`\n" + + "\025UserDefinedAccessUrls\022)\n" + + "\034aia_issuing_certificate_urls\030\001 \003(\tB\003\340A\001\022\034\n" + + "\017crl_access_urls\030\002 \003(\tB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\">\n" @@ -274,53 +294,53 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025RSA_PKCS1_4096_SHA256\020\010\022\022\n" + "\016EC_P256_SHA256\020\004\022\022\n" + "\016EC_P384_SHA384\020\005:\235\001\352A\231\001\n" - + "-privateca.googleapis.com/CertificateAuthority\022hprojects/{project}/location" - + "s/{location}/caPools/{ca_pool}/certifica" - + "teAuthorities/{certificate_authority}\"\241\020\n" + + "-privateca.googleapis.com/CertificateAuthority\022hprojects/{project}/locations/{loca" + + "tion}/caPools/{ca_pool}/certificateAuthorities/{certificate_authority}\"\334\020\n" + "\006CaPool\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022E\n" - + "\004tier\030\002 \001(" - + "\0162/.google.cloud.security.privateca.v1.CaPool.TierB\006\340A\002\340A\005\022W\n" - + "\017issuance_policy\030\003 " - + "\001(\01329.google.cloud.security.privateca.v1.CaPool.IssuancePolicyB\003\340A\001\022]\n" - + "\022publishing_options\030\004 \001(\0132<.google.cloud.security." - + "privateca.v1.CaPool.PublishingOptionsB\003\340A\001\022K\n" - + "\006labels\030\005 \003(\01326.google.cloud.securi" - + "ty.privateca.v1.CaPool.LabelsEntryB\003\340A\001\032\373\001\n" + + "\004name\030\001 \001(\tB\003\340A\010\022E\n" + + "\004tier\030\002 \001(\0162/.goo" + + "gle.cloud.security.privateca.v1.CaPool.TierB\006\340A\002\340A\005\022W\n" + + "\017issuance_policy\030\003 \001(\01329.g" + + "oogle.cloud.security.privateca.v1.CaPool.IssuancePolicyB\003\340A\001\022]\n" + + "\022publishing_options\030\004" + + " \001(\0132<.google.cloud.security.privateca.v1.CaPool.PublishingOptionsB\003\340A\001\022K\n" + + "\006labels\030\005" + + " \003(\01326.google.cloud.security.privateca.v1.CaPool.LabelsEntryB\003\340A\001\032\373\001\n" + "\021PublishingOptions\022\034\n" + "\017publish_ca_cert\030\001 \001(\010B\003\340A\001\022\030\n" + "\013publish_crl\030\002 \001(\010B\003\340A\001\022i\n" - + "\017encoding_format\030\003 \001(\0162K.google.cloud.se" - + "curity.privateca.v1.CaPool.PublishingOptions.EncodingFormatB\003\340A\001\"C\n" + + "\017encoding_format\030\003 \001(\0162K.google.cloud.security." + + "privateca.v1.CaPool.PublishingOptions.EncodingFormatB\003\340A\001\"C\n" + "\016EncodingFormat\022\037\n" + "\033ENCODING_FORMAT_UNSPECIFIED\020\000\022\007\n" + "\003PEM\020\001\022\007\n" - + "\003DER\020\002\032\357\t\n" + + "\003DER\020\002\032\252\n\n" + "\016IssuancePolicy\022h\n" - + "\021allowed_key_types\030\001 \003(\0132H.google.cloud.secur" - + "ity.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTypeB\003\340A\001\0228\n" + + "\021allowed_key_types\030\001 \003(\0132H.google.cloud.security.pri" + + "vateca.v1.CaPool.IssuancePolicy.AllowedKeyTypeB\003\340A\001\0229\n" + + "\021backdate_duration\030\007" + + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\0228\n" + "\020maximum_lifetime\030\002" + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\022l\n" - + "\026allowed_issuance_modes\030\003 \001(\0132G.google.cl" - + "oud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModesB\003\340A\001\022P\n" - + "\017baseline_values\030\004" - + " \001(\01322.google.cloud.security.privateca.v1.X509ParametersB\003\340A\001\022e\n" - + "\024identity_constraints\030\005 \001(\0132B.google.cloud.securi" - + "ty.privateca.v1.CertificateIdentityConstraintsB\003\340A\001\022h\n" - + "\026passthrough_extensions\030\006 \001(\0132C.google.cloud.security.privateca.v1" - + ".CertificateExtensionConstraintsB\003\340A\001\032\305\004\n" + + "\026allowed_issuance_modes\030\003 \001(\0132G.google.cloud.security.privateca.v1.Ca" + + "Pool.IssuancePolicy.IssuanceModesB\003\340A\001\022P\n" + + "\017baseline_values\030\004 \001(\01322.google.cloud.s" + + "ecurity.privateca.v1.X509ParametersB\003\340A\001\022e\n" + + "\024identity_constraints\030\005 \001(\0132B.google." + + "cloud.security.privateca.v1.CertificateIdentityConstraintsB\003\340A\001\022h\n" + + "\026passthrough_extensions\030\006 \001(\0132C.google.cloud.security." + + "privateca.v1.CertificateExtensionConstraintsB\003\340A\001\032\305\004\n" + "\016AllowedKeyType\022b\n" - + "\003rsa\030\001 \001(\0132S.google.c" - + "loud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyTypeH\000\022l\n" - + "\016elliptic_curve\030\002 \001(\0132R.google.cloud.secu" - + "rity.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyTypeH\000\032J\n\n" + + "\003rsa\030\001 \001(\0132S.google.cloud.security.privateca.v1.C" + + "aPool.IssuancePolicy.AllowedKeyType.RsaKeyTypeH\000\022l\n" + + "\016elliptic_curve\030\002 \001(\0132R.google.cloud.security.privateca.v1.CaPool.Iss" + + "uancePolicy.AllowedKeyType.EcKeyTypeH\000\032J\n\n" + "RsaKeyType\022\035\n" + "\020min_modulus_size\030\001 \001(\003B\003\340A\001\022\035\n" + "\020max_modulus_size\030\002 \001(\003B\003\340A\001\032\210\002\n" + "\tEcKeyType\022\211\001\n" - + "\023signature_algorithm\030\001 \001(\0162g.google.clou" - + "d.security.privateca.v1.CaPool.IssuanceP" - + "olicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithmB\003\340A\001\"o\n" + + "\023signature_algorithm\030\001 \001(\0162g.google.cloud.security.privateca.v1.CaPo" + + "ol.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithmB\003\340A\001\"o\n" + "\024EcSignatureAlgorithm\022&\n" + "\"EC_SIGNATURE_ALGORITHM_UNSPECIFIED\020\000\022\016\n\n" + "ECDSA_P256\020\001\022\016\n\n" @@ -337,44 +357,43 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020TIER_UNSPECIFIED\020\000\022\016\n\n" + "ENTERPRISE\020\001\022\n\n" + "\006DEVOPS\020\002:_\352A\\\n" - + "\037privateca.googleapis.com/CaPool\0229projects/{projec" - + "t}/locations/{location}/caPools/{ca_pool}\"\274\010\n" + + "\037privateca.googleapis.com/CaPool\0229proj" + + "ects/{project}/locations/{location}/caPools/{ca_pool}\"\274\010\n" + "\031CertificateRevocationList\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022\034\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\034\n" + "\017sequence_number\030\002 \001(\003B\003\340A\003\022s\n" - + "\024revoked_certificates\030\003 \003(\0132P.google." - + "cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificateB\003\340A\003\022\024\n" + + "\024revoked_certificates\030\003 \003(\0132P.google.cloud.security.privateca.v1." + + "CertificateRevocationList.RevokedCertificateB\003\340A\003\022\024\n" + "\007pem_crl\030\004 \001(\tB\003\340A\003\022\027\n\n" + "access_url\030\005 \001(\tB\003\340A\003\022W\n" - + "\005state\030\006 \001(\0162C.google.cloud.secur" - + "ity.privateca.v1.CertificateRevocationList.StateB\003\340A\003\0224\n" + + "\005state\030\006 \001(\0162C.google" + + ".cloud.security.privateca.v1.CertificateRevocationList.StateB\003\340A\003\0224\n" + "\013create_time\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\010" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\030\n" + "\013revision_id\030\t \001(\tB\003\340A\003\022^\n" + "\006labels\030\n" - + " \003(\0132I.google.cloud.security.privateca.v1" - + ".CertificateRevocationList.LabelsEntryB\003\340A\001\032\300\001\n" + + " \003(\0132I.google.cloud.security." + + "privateca.v1.CertificateRevocationList.LabelsEntryB\003\340A\001\032\300\001\n" + "\022RevokedCertificate\022>\n" + "\013certificate\030\001 \001(\tB)\372A&\n" + "$privateca.googleapis.com/Certificate\022\031\n" + "\021hex_serial_number\030\002 \001(\t\022O\n" - + "\021revocation_reason\030\003 \001(\01624.google.cloud." - + "security.privateca.v1.RevocationReason\032-\n" + + "\021revocation_reason\030\003 \001(\01624.g" + + "oogle.cloud.security.privateca.v1.RevocationReason\032-\n" + "\013LabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n" + + "\003key\030\001 \001(\t\022\r" + + "\n" + "\005value\030\002 \001(\t:\0028\001\":\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\n\n" + "\006ACTIVE\020\001\022\016\n\n" + "SUPERSEDED\020\002:\334\001\352A\330\001\n" - + "2privateca.googleapis.com/CertificateRevocation" - + "List\022\241\001projects/{project}/locations/{loc" - + "ation}/caPools/{ca_pool}/certificateAuthorities/{certificate_authority}/certific" - + "ateRevocationLists/{certificate_revocation_list}\"\217\n\n" - + "\013Certificate\022:\n" - + "\004name\030\001 \001(\tB,\340A\003\372A&\n" - + "$privateca.googleapis.com/Certificate\022\026\n" + + "2privateca.googleapis.com/CertificateRevocationList\022\241\001projects/{project}/lo" + + "cations/{location}/caPools/{ca_pool}/certificateAuthorities/{certificate_authori" + + "ty}/certificateRevocationLists/{certificate_revocation_list}\"\346\t\n" + + "\013Certificate\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\026\n" + "\007pem_csr\030\002 \001(\tB\003\340A\005H\000\022L\n" + "\006config\030\003" + " \001(\01325.google.cloud.security.privateca.v1.CertificateConfigB\003\340A\005H\000\022[\n" @@ -384,62 +403,61 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\031.google.protobuf.DurationB\006\340A\002\340A\005\022R\n" + "\024certificate_template\030\006 \001(\tB4\340A\005\372A.\n" + ",privateca.googleapis.com/CertificateTemplate\022Q\n" - + "\014subject_mode\030\007 \001(\01626" - + ".google.cloud.security.privateca.v1.SubjectRequestModeB\003\340A\005\022b\n" - + "\022revocation_details\030\010 \001(\0132A.google.cloud.security.privatec" - + "a.v1.Certificate.RevocationDetailsB\003\340A\003\022\034\n" + + "\014subject_mode\030\007" + + " \001(\01626.google.cloud.security.privateca.v1.SubjectRequestModeB\003\340A\005\022b\n" + + "\022revocation_details\030\010 \001(\0132A.google.cloud.securi" + + "ty.privateca.v1.Certificate.RevocationDetailsB\003\340A\003\022\034\n" + "\017pem_certificate\030\t \001(\tB\003\340A\003\022`\n" + "\027certificate_description\030\n" - + " \001(\0132:.google.cloud.se" - + "curity.privateca.v1.CertificateDescriptionB\003\340A\003\022\"\n" + + " \001(\0132:.goog" + + "le.cloud.security.privateca.v1.CertificateDescriptionB\003\340A\003\022\"\n" + "\025pem_certificate_chain\030\013 \003(\tB\003\340A\003\0224\n" + "\013create_time\030\014 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\r" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022P\n" - + "\006labels\030\016" - + " \003(\0132;.google.cloud.security.privateca.v1.Certificate.LabelsEntryB\003\340A\001\032\230\001\n" + + "\006labels\030\016 \003(\0132;.google.cloud.securi" + + "ty.privateca.v1.Certificate.LabelsEntryB\003\340A\001\032\230\001\n" + "\021RevocationDetails\022N\n" - + "\020revocation_state\030\001 \001(" - + "\01624.google.cloud.security.privateca.v1.RevocationReason\0223\n" + + "\020revocation_state\030\001" + + " \001(\01624.google.cloud.security.privateca.v1.RevocationReason\0223\n" + "\017revocation_time\030\002 \001(\0132\032.google.protobuf.Timestamp\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:\177\352A|\n" - + "$privateca.googleapis.com/Certificate\022Tprojects/{project}/locations/{location}/" - + "caPools/{ca_pool}/certificates/{certificate}B\024\n" - + "\022certificate_config\"\321\006\n" - + "\023CertificateTemplate\022B\n" - + "\004name\030\001 \001(\tB4\340A\003\372A.\n" - + ",privateca.googleapis.com/CertificateTemplate\0228\n" + + "$privateca.googleapis.com/Certificate\022Tprojects/{project}/locations/" + + "{location}/caPools/{ca_pool}/certificates/{certificate}B\024\n" + + "\022certificate_config\"\240\006\n" + + "\023CertificateTemplate\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\0228\n" + "\020maximum_lifetime\030\t" + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\022R\n" - + "\021predefined_values\030\002 " - + "\001(\01322.google.cloud.security.privateca.v1.X509ParametersB\003\340A\001\022e\n" - + "\024identity_constraints\030\003 \001(\0132B.google.cloud.security.priva" - + "teca.v1.CertificateIdentityConstraintsB\003\340A\001\022h\n" - + "\026passthrough_extensions\030\004 \001(\0132C.go" - + "ogle.cloud.security.privateca.v1.CertificateExtensionConstraintsB\003\340A\001\022\030\n" + + "\021predefined_values\030\002" + + " \001(\01322.google.cloud.security.privateca.v1.X509ParametersB\003\340A\001\022e\n" + + "\024identity_constraints\030\003 \001(\0132B.google.cloud.security.pri" + + "vateca.v1.CertificateIdentityConstraintsB\003\340A\001\022h\n" + + "\026passthrough_extensions\030\004 \001(\0132C." + + "google.cloud.security.privateca.v1.CertificateExtensionConstraintsB\003\340A\001\022\030\n" + "\013description\030\005 \001(\tB\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\022X\n" - + "\006labels\030\010 \003(\0132C.google.cloud.secur" - + "ity.privateca.v1.CertificateTemplate.LabelsEntryB\003\340A\001\032-\n" + + "\006labels\030\010 \003(\0132C.google.cloud.sec" + + "urity.privateca.v1.CertificateTemplate.LabelsEntryB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:\207\001\352A\203\001\n" - + ",privateca.googleapis.com/CertificateTemplate\022Sproje" - + "cts/{project}/locations/{location}/certi" - + "ficateTemplates/{certificate_template}\"\316\006\n" + + ",privateca.googleapis.com/CertificateTemplate\022Spro" + + "jects/{project}/locations/{location}/cer" + + "tificateTemplates/{certificate_template}\"\316\006\n" + "\016X509Parameters\022D\n" - + "\tkey_usage\030\001 \001(\0132,.g" - + "oogle.cloud.security.privateca.v1.KeyUsageB\003\340A\001\022U\n\n" - + "ca_options\030\002 \001(\0132<.google.clo" - + "ud.security.privateca.v1.X509Parameters.CaOptionsB\003\340A\001\022E\n\n" - + "policy_ids\030\003 \003(\0132,.goo" - + "gle.cloud.security.privateca.v1.ObjectIdB\003\340A\001\022\035\n" + + "\tkey_usage\030\001 \001(\0132," + + ".google.cloud.security.privateca.v1.KeyUsageB\003\340A\001\022U\n\n" + + "ca_options\030\002 \001(\0132<.google.c" + + "loud.security.privateca.v1.X509Parameters.CaOptionsB\003\340A\001\022E\n\n" + + "policy_ids\030\003 \003(\0132,.g" + + "oogle.cloud.security.privateca.v1.ObjectIdB\003\340A\001\022\035\n" + "\020aia_ocsp_servers\030\004 \003(\tB\003\340A\001\022a\n" - + "\020name_constraints\030\006 \001(\0132B.google.cloud.se" - + "curity.privateca.v1.X509Parameters.NameConstraintsB\003\340A\001\022U\n" + + "\020name_constraints\030\006 \001(\0132B.google.cloud." + + "security.privateca.v1.X509Parameters.NameConstraintsB\003\340A\001\022U\n" + "\025additional_extensions\030\005" + " \003(\01321.google.cloud.security.privateca.v1.X509ExtensionB\003\340A\001\032s\n" + "\tCaOptions\022\027\n" @@ -460,48 +478,49 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021SubordinateConfig\022V\n" + "\025certificate_authority\030\001 \001(\tB5\340A\002\372A/\n" + "-privateca.googleapis.com/CertificateAuthorityH\000\022m\n" - + "\020pem_issuer_chain\030\002 \001(\0132L.google.cloud.s" - + "ecurity.privateca.v1.SubordinateConfig.SubordinateConfigChainB\003\340A\002H\000\0327\n" + + "\020pem_issuer_chain\030\002 \001(\0132L.google.cloud" + + ".security.privateca.v1.SubordinateConfig.SubordinateConfigChainB\003\340A\002H\000\0327\n" + "\026SubordinateConfigChain\022\035\n" + "\020pem_certificates\030\001 \003(\tB\003\340A\002B\024\n" + "\022subordinate_config\"\235\001\n" + "\tPublicKey\022\020\n" + "\003key\030\001 \001(\014B\003\340A\002\022L\n" - + "\006format\030\002 \001(\01627.go" - + "ogle.cloud.security.privateca.v1.PublicKey.KeyFormatB\003\340A\002\"0\n" + + "\006format\030\002 \001(\01627." + + "google.cloud.security.privateca.v1.PublicKey.KeyFormatB\003\340A\002\"0\n" + "\tKeyFormat\022\032\n" + "\026KEY_FORMAT_UNSPECIFIED\020\000\022\007\n" + "\003PEM\020\001\"\254\004\n" + "\021CertificateConfig\022`\n" - + "\016subject_config\030\001 \001(\0132C.goog" - + "le.cloud.security.privateca.v1.CertificateConfig.SubjectConfigB\003\340A\002\022L\n" + + "\016subject_config\030\001 \001(\0132C.go" + + "ogle.cloud.security.privateca.v1.CertificateConfig.SubjectConfigB\003\340A\002\022L\n" + "\013x509_config\030\002" + " \001(\01322.google.cloud.security.privateca.v1.X509ParametersB\003\340A\002\022F\n\n" + "public_key\030\003" + " \001(\0132-.google.cloud.security.privateca.v1.PublicKeyB\003\340A\001\022X\n" - + "\016subject_key_id\030\004 \001(" - + "\0132;.google.cloud.security.privateca.v1.CertificateConfig.KeyIdB\003\340A\001\032\246\001\n\r" + + "\016subject_key_id\030\004 " + + "\001(\0132;.google.cloud.security.privateca.v1.CertificateConfig.KeyIdB\003\340A\001\032\246\001\n\r" + "SubjectConfig\022A\n" + "\007subject\030\001" + " \001(\0132+.google.cloud.security.privateca.v1.SubjectB\003\340A\001\022R\n" - + "\020subject_alt_name\030\002" - + " \001(\01323.google.cloud.security.privateca.v1.SubjectAltNamesB\003\340A\001\032\034\n" + + "\020subject_alt_name\030\002 \001(\01323.google.cloud.secu" + + "rity.privateca.v1.SubjectAltNamesB\003\340A\001\032\034\n" + "\005KeyId\022\023\n" - + "\006key_id\030\001 \001(\tB\003\340A\002\"\241\010\n" + + "\006key_id\030\001 \001(\tB\003\340A\002\"\301\010\n" + "\026CertificateDescription\022j\n" - + "\023subject_description\030\001 \001(\0132M.google.cloud.security.privateca.v1." - + "CertificateDescription.SubjectDescription\022L\n" - + "\020x509_description\030\002 \001(\01322.google.clo" - + "ud.security.privateca.v1.X509Parameters\022A\n\n" + + "\023subject_description\030\001 \001(\0132M.google.cloud.security.privateca.v" + + "1.CertificateDescription.SubjectDescription\022L\n" + + "\020x509_description\030\002 \001(\01322.google.c" + + "loud.security.privateca.v1.X509Parameters\022A\n\n" + "public_key\030\003 \001(\0132-.google.cloud.security.privateca.v1.PublicKey\022X\n" - + "\016subject_key_id\030\004" - + " \001(\0132@.google.cloud.security.privateca.v1.CertificateDescription.KeyId\022Z\n" - + "\020authority_key_id\030\005 \001(\0132@.google.cloud.se" - + "curity.privateca.v1.CertificateDescription.KeyId\022\037\n" + + "\016subject_key_id\030\004 \001(\0132@.google.cloud.security.pri" + + "vateca.v1.CertificateDescription.KeyId\022Z\n" + + "\020authority_key_id\030\005 \001(\0132@.google.cloud." + + "security.privateca.v1.CertificateDescription.KeyId\022\037\n" + "\027crl_distribution_points\030\006 \003(\t\022$\n" + "\034aia_issuing_certificate_urls\030\007 \003(\t\022k\n" - + "\020cert_fingerprint\030\010 \001(\0132Q.google.cloud" - + ".security.privateca.v1.CertificateDescription.CertificateFingerprint\032\322\002\n" + + "\020cert_fingerprint\030\010 \001(\0132Q.google.clo" + + "ud.security.privateca.v1.CertificateDescription.CertificateFingerprint\022\036\n" + + "\026tbs_certificate_digest\030\t \001(\t\032\322\002\n" + "\022SubjectDescription\022<\n" + "\007subject\030\001 \001(\0132+.google.cloud.security.privateca.v1.Subject\022M\n" + "\020subject_alt_name\030\002" @@ -517,15 +536,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010ObjectId\022\033\n" + "\016object_id_path\030\001 \003(\005B\003\340A\002\"\200\001\n\r" + "X509Extension\022D\n" - + "\tobject_id\030\001" - + " \001(\0132,.google.cloud.security.privateca.v1.ObjectIdB\003\340A\002\022\025\n" + + "\tobject_id\030\001 \001(\0132," + + ".google.cloud.security.privateca.v1.ObjectIdB\003\340A\002\022\025\n" + "\010critical\030\002 \001(\010B\003\340A\001\022\022\n" + "\005value\030\003 \001(\014B\003\340A\002\"\242\005\n" + "\010KeyUsage\022T\n" + "\016base_key_usage\030\001" + " \001(\0132<.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions\022`\n" - + "\022extended_key_usage\030\002 \001(\0132D.google.cloud" - + ".security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions\022Q\n" + + "\022extended_key_usage\030\002 \001(\0132D.google.cloud.secur" + + "ity.privateca.v1.KeyUsage.ExtendedKeyUsageOptions\022Q\n" + "\033unknown_extended_key_usages\030\003" + " \003(\0132,.google.cloud.security.privateca.v1.ObjectId\032\347\001\n" + "\017KeyUsageOptions\022\031\n" @@ -544,7 +563,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014code_signing\030\003 \001(\010\022\030\n" + "\020email_protection\030\004 \001(\010\022\025\n\r" + "time_stamping\030\005 \001(\010\022\024\n" - + "\014ocsp_signing\030\006 \001(\010\"\270\001\n" + + "\014ocsp_signing\030\006 \001(\010\"\276\001\n" + + "\025AttributeTypeAndValue\022A\n" + + "\004type\030\001" + + " \001(\01621.google.cloud.security.privateca.v1.AttributeTypeH\000\022A\n" + + "\tobject_id\030\002 \001(" + + "\0132,.google.cloud.security.privateca.v1.ObjectIdH\000\022\r\n" + + "\005value\030\003 \001(\tB\020\n" + + "\016attribute_type\"j\n" + + "\031RelativeDistinguishedName\022M\n\n" + + "attributes\030\001" + + " \003(\01329.google.cloud.security.privateca.v1.AttributeTypeAndValue\"\215\002\n" + "\007Subject\022\023\n" + "\013common_name\030\001 \001(\t\022\024\n" + "\014country_code\030\002 \001(\t\022\024\n" @@ -553,14 +582,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010locality\030\005 \001(\t\022\020\n" + "\010province\030\006 \001(\t\022\026\n" + "\016street_address\030\007 \001(\t\022\023\n" - + "\013postal_code\030\010 \001(\t\"\251\001\n" + + "\013postal_code\030\010 \001(\t\022S\n" + + "\014rdn_sequence\030\t \003(\0132" + + "=.google.cloud.security.privateca.v1.RelativeDistinguishedName\"\251\001\n" + "\017SubjectAltNames\022\021\n" + "\tdns_names\030\001 \003(\t\022\014\n" + "\004uris\030\002 \003(\t\022\027\n" + "\017email_addresses\030\003 \003(\t\022\024\n" + "\014ip_addresses\030\004 \003(\t\022F\n" - + "\013custom_sans\030\005 " - + "\003(\01321.google.cloud.security.privateca.v1.X509Extension\"\372\001\n" + + "\013custom_sans\030\005" + + " \003(\01321.google.cloud.security.privateca.v1.X509Extension\"\372\001\n" + "\036CertificateIdentityConstraints\022.\n" + "\016cel_expression\030\001 \001(\0132\021.google.type.ExprB\003\340A\001\022+\n" + "\031allow_subject_passthrough\030\002 \001(\010B\003\340A\002H\000\210\001\001\0225\n" @@ -569,10 +600,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032_allow_subject_passthroughB&\n" + "$_allow_subject_alt_names_passthrough\"\264\003\n" + "\037CertificateExtensionConstraints\022|\n" - + "\020known_extensions\030\001 \003(\0162].google.cloud.security.privat" - + "eca.v1.CertificateExtensionConstraints.KnownCertificateExtensionB\003\340A\001\022P\n" - + "\025additional_extensions\030\002" - + " \003(\0132,.google.cloud.security.privateca.v1.ObjectIdB\003\340A\001\"\300\001\n" + + "\020known_extensions\030\001 \003(\0162].google.c" + + "loud.security.privateca.v1.CertificateEx" + + "tensionConstraints.KnownCertificateExtensionB\003\340A\001\022P\n" + + "\025additional_extensions\030\002 \003(\013" + + "2,.google.cloud.security.privateca.v1.ObjectIdB\003\340A\001\"\300\001\n" + "\031KnownCertificateExtension\022+\n" + "\'KNOWN_CERTIFICATE_EXTENSION_UNSPECIFIED\020\000\022\022\n" + "\016BASE_KEY_USAGE\020\001\022\026\n" @@ -580,7 +612,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "CA_OPTIONS\020\003\022\016\n\n" + "POLICY_IDS\020\004\022\024\n" + "\020AIA_OCSP_SERVERS\020\005\022\024\n" - + "\020NAME_CONSTRAINTS\020\006*\207\002\n" + + "\020NAME_CONSTRAINTS\020\006*\276\001\n\r" + + "AttributeType\022\036\n" + + "\032ATTRIBUTE_TYPE_UNSPECIFIED\020\000\022\017\n" + + "\013COMMON_NAME\020\001\022\020\n" + + "\014COUNTRY_CODE\020\002\022\020\n" + + "\014ORGANIZATION\020\003\022\027\n" + + "\023ORGANIZATIONAL_UNIT\020\004\022\014\n" + + "\010LOCALITY\020\005\022\014\n" + + "\010PROVINCE\020\006\022\022\n" + + "\016STREET_ADDRESS\020\007\022\017\n" + + "\013POSTAL_CODE\020\010*\207\002\n" + "\020RevocationReason\022!\n" + "\035REVOCATION_REASON_UNSPECIFIED\020\000\022\022\n" + "\016KEY_COMPROMISE\020\001\022$\n" @@ -590,16 +632,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026CESSATION_OF_OPERATION\020\005\022\024\n" + "\020CERTIFICATE_HOLD\020\006\022\027\n" + "\023PRIVILEGE_WITHDRAWN\020\007\022\"\n" - + "\036ATTRIBUTE_AUTHORITY_COMPROMISE\020\010*]\n" + + "\036ATTRIBUTE_AUTHORITY_COMPROMISE\020\010*o\n" + "\022SubjectRequestMode\022$\n" + " SUBJECT_REQUEST_MODE_UNSPECIFIED\020\000\022\013\n" - + "\007DEFAULT\020\001\022\024\n" - + "\020REFLECTED_SPIFFE\020\002B\377\001\n" - + "&com.google.cloud.security.privateca.v1B\027PrivateC" - + "aResourcesProtoP\001ZDcloud.google.com/go/security/privateca/apiv1/privatecapb;priv" - + "atecapb\370\001\001\252\002\"Google.Cloud.Security.Priva" - + "teCA.V1\312\002\"Google\\Cloud\\Security\\PrivateC" - + "A\\V1\352\002&Google::Cloud::Security::PrivateCA::V1b\006proto3" + + "\007DEFAULT\020\001\022\020\n" + + "\014RDN_SEQUENCE\020\003\022\024\n" + + "\020REFLECTED_SPIFFE\020\002B\374\001\n" + + "&com.google.cloud.security.privateca.v1B\027PrivateCaResource" + + "sProtoP\001ZDcloud.google.com/go/security/p" + + "rivateca/apiv1/privatecapb;privatecapb\252\002" + + "\"Google.Cloud.Security.PrivateCA.V1\312\002\"Go" + + "ogle\\Cloud\\Security\\PrivateCA\\V1\352\002&Googl" + + "e::Cloud::Security::PrivateCA::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -634,6 +678,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DeleteTime", "ExpireTime", "Labels", + "UserDefinedAccessUrls", + "SatisfiesPzs", + "SatisfiesPzi", }); internal_static_google_cloud_security_privateca_v1_CertificateAuthority_AccessUrls_descriptor = internal_static_google_cloud_security_privateca_v1_CertificateAuthority_descriptor @@ -655,10 +702,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "CloudKmsKeyVersion", "Algorithm", "KeyVersion", }); - internal_static_google_cloud_security_privateca_v1_CertificateAuthority_LabelsEntry_descriptor = + internal_static_google_cloud_security_privateca_v1_CertificateAuthority_UserDefinedAccessUrls_descriptor = internal_static_google_cloud_security_privateca_v1_CertificateAuthority_descriptor .getNestedTypes() .get(2); + internal_static_google_cloud_security_privateca_v1_CertificateAuthority_UserDefinedAccessUrls_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CertificateAuthority_UserDefinedAccessUrls_descriptor, + new java.lang.String[] { + "AiaIssuingCertificateUrls", "CrlAccessUrls", + }); + internal_static_google_cloud_security_privateca_v1_CertificateAuthority_LabelsEntry_descriptor = + internal_static_google_cloud_security_privateca_v1_CertificateAuthority_descriptor + .getNestedTypes() + .get(3); internal_static_google_cloud_security_privateca_v1_CertificateAuthority_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_security_privateca_v1_CertificateAuthority_LabelsEntry_descriptor, @@ -692,6 +749,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_descriptor, new java.lang.String[] { "AllowedKeyTypes", + "BackdateDuration", "MaximumLifetime", "AllowedIssuanceModes", "BaselineValues", @@ -962,6 +1020,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CrlDistributionPoints", "AiaIssuingCertificateUrls", "CertFingerprint", + "TbsCertificateDigest", }); internal_static_google_cloud_security_privateca_v1_CertificateDescription_SubjectDescription_descriptor = internal_static_google_cloud_security_privateca_v1_CertificateDescription_descriptor @@ -1055,8 +1114,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TimeStamping", "OcspSigning", }); - internal_static_google_cloud_security_privateca_v1_Subject_descriptor = + internal_static_google_cloud_security_privateca_v1_AttributeTypeAndValue_descriptor = getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_security_privateca_v1_AttributeTypeAndValue_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_AttributeTypeAndValue_descriptor, + new java.lang.String[] { + "Type", "ObjectId", "Value", "AttributeType", + }); + internal_static_google_cloud_security_privateca_v1_RelativeDistinguishedName_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_security_privateca_v1_RelativeDistinguishedName_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_RelativeDistinguishedName_descriptor, + new java.lang.String[] { + "Attributes", + }); + internal_static_google_cloud_security_privateca_v1_Subject_descriptor = + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_security_privateca_v1_Subject_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_security_privateca_v1_Subject_descriptor, @@ -1069,9 +1144,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Province", "StreetAddress", "PostalCode", + "RdnSequence", }); internal_static_google_cloud_security_privateca_v1_SubjectAltNames_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_security_privateca_v1_SubjectAltNames_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_security_privateca_v1_SubjectAltNames_descriptor, @@ -1079,7 +1155,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DnsNames", "Uris", "EmailAddresses", "IpAddresses", "CustomSans", }); internal_static_google_cloud_security_privateca_v1_CertificateIdentityConstraints_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_security_privateca_v1_CertificateIdentityConstraints_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_security_privateca_v1_CertificateIdentityConstraints_descriptor, @@ -1087,7 +1163,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CelExpression", "AllowSubjectPassthrough", "AllowSubjectAltNamesPassthrough", }); internal_static_google_cloud_security_privateca_v1_CertificateExtensionConstraints_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_security_privateca_v1_CertificateExtensionConstraints_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_security_privateca_v1_CertificateExtensionConstraints_descriptor, diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/RelativeDistinguishedName.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/RelativeDistinguishedName.java new file mode 100644 index 000000000000..59315f85e9b5 --- /dev/null +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/RelativeDistinguishedName.java @@ -0,0 +1,1012 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/security/privateca/v1/resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.security.privateca.v1; + +/** + * + * + *
      + * [RelativeDistinguishedName][google.cloud.security.privateca.v1.RelativeDistinguishedName]
      + * specifies a relative distinguished name which will be used to build a
      + * distinguished name.
      + * 
      + * + * Protobuf type {@code google.cloud.security.privateca.v1.RelativeDistinguishedName} + */ +public final class RelativeDistinguishedName extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.RelativeDistinguishedName) + RelativeDistinguishedNameOrBuilder { + private static final long serialVersionUID = 0L; + + // Use RelativeDistinguishedName.newBuilder() to construct. + private RelativeDistinguishedName(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RelativeDistinguishedName() { + attributes_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RelativeDistinguishedName(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_RelativeDistinguishedName_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_RelativeDistinguishedName_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.security.privateca.v1.RelativeDistinguishedName.class, + com.google.cloud.security.privateca.v1.RelativeDistinguishedName.Builder.class); + } + + public static final int ATTRIBUTES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List attributes_; + + /** + * + * + *
      +   * Attributes describes the attribute value assertions in the RDN.
      +   * 
      + * + * repeated .google.cloud.security.privateca.v1.AttributeTypeAndValue attributes = 1; + */ + @java.lang.Override + public java.util.List + getAttributesList() { + return attributes_; + } + + /** + * + * + *
      +   * Attributes describes the attribute value assertions in the RDN.
      +   * 
      + * + * repeated .google.cloud.security.privateca.v1.AttributeTypeAndValue attributes = 1; + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.security.privateca.v1.AttributeTypeAndValueOrBuilder> + getAttributesOrBuilderList() { + return attributes_; + } + + /** + * + * + *
      +   * Attributes describes the attribute value assertions in the RDN.
      +   * 
      + * + * repeated .google.cloud.security.privateca.v1.AttributeTypeAndValue attributes = 1; + */ + @java.lang.Override + public int getAttributesCount() { + return attributes_.size(); + } + + /** + * + * + *
      +   * Attributes describes the attribute value assertions in the RDN.
      +   * 
      + * + * repeated .google.cloud.security.privateca.v1.AttributeTypeAndValue attributes = 1; + */ + @java.lang.Override + public com.google.cloud.security.privateca.v1.AttributeTypeAndValue getAttributes(int index) { + return attributes_.get(index); + } + + /** + * + * + *
      +   * Attributes describes the attribute value assertions in the RDN.
      +   * 
      + * + * repeated .google.cloud.security.privateca.v1.AttributeTypeAndValue attributes = 1; + */ + @java.lang.Override + public com.google.cloud.security.privateca.v1.AttributeTypeAndValueOrBuilder + getAttributesOrBuilder(int index) { + return attributes_.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 < attributes_.size(); i++) { + output.writeMessage(1, attributes_.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 < attributes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, attributes_.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.cloud.security.privateca.v1.RelativeDistinguishedName)) { + return super.equals(obj); + } + com.google.cloud.security.privateca.v1.RelativeDistinguishedName other = + (com.google.cloud.security.privateca.v1.RelativeDistinguishedName) obj; + + if (!getAttributesList().equals(other.getAttributesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAttributesCount() > 0) { + hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getAttributesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.security.privateca.v1.RelativeDistinguishedName parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.security.privateca.v1.RelativeDistinguishedName parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.security.privateca.v1.RelativeDistinguishedName parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.security.privateca.v1.RelativeDistinguishedName parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.security.privateca.v1.RelativeDistinguishedName parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.security.privateca.v1.RelativeDistinguishedName parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.security.privateca.v1.RelativeDistinguishedName parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.security.privateca.v1.RelativeDistinguishedName parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.security.privateca.v1.RelativeDistinguishedName parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.security.privateca.v1.RelativeDistinguishedName parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.security.privateca.v1.RelativeDistinguishedName parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.security.privateca.v1.RelativeDistinguishedName parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.RelativeDistinguishedName prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * [RelativeDistinguishedName][google.cloud.security.privateca.v1.RelativeDistinguishedName]
      +   * specifies a relative distinguished name which will be used to build a
      +   * distinguished name.
      +   * 
      + * + * Protobuf type {@code google.cloud.security.privateca.v1.RelativeDistinguishedName} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.RelativeDistinguishedName) + com.google.cloud.security.privateca.v1.RelativeDistinguishedNameOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_RelativeDistinguishedName_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_RelativeDistinguishedName_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.security.privateca.v1.RelativeDistinguishedName.class, + com.google.cloud.security.privateca.v1.RelativeDistinguishedName.Builder.class); + } + + // Construct using com.google.cloud.security.privateca.v1.RelativeDistinguishedName.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (attributesBuilder_ == null) { + attributes_ = java.util.Collections.emptyList(); + } else { + attributes_ = null; + attributesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_RelativeDistinguishedName_descriptor; + } + + @java.lang.Override + public com.google.cloud.security.privateca.v1.RelativeDistinguishedName + getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1.RelativeDistinguishedName.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.security.privateca.v1.RelativeDistinguishedName build() { + com.google.cloud.security.privateca.v1.RelativeDistinguishedName result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.security.privateca.v1.RelativeDistinguishedName buildPartial() { + com.google.cloud.security.privateca.v1.RelativeDistinguishedName result = + new com.google.cloud.security.privateca.v1.RelativeDistinguishedName(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.security.privateca.v1.RelativeDistinguishedName result) { + if (attributesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + attributes_ = java.util.Collections.unmodifiableList(attributes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.attributes_ = attributes_; + } else { + result.attributes_ = attributesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.security.privateca.v1.RelativeDistinguishedName result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.security.privateca.v1.RelativeDistinguishedName) { + return mergeFrom((com.google.cloud.security.privateca.v1.RelativeDistinguishedName) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.security.privateca.v1.RelativeDistinguishedName other) { + if (other + == com.google.cloud.security.privateca.v1.RelativeDistinguishedName.getDefaultInstance()) + return this; + if (attributesBuilder_ == null) { + if (!other.attributes_.isEmpty()) { + if (attributes_.isEmpty()) { + attributes_ = other.attributes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAttributesIsMutable(); + attributes_.addAll(other.attributes_); + } + onChanged(); + } + } else { + if (!other.attributes_.isEmpty()) { + if (attributesBuilder_.isEmpty()) { + attributesBuilder_.dispose(); + attributesBuilder_ = null; + attributes_ = other.attributes_; + bitField0_ = (bitField0_ & ~0x00000001); + attributesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAttributesFieldBuilder() + : null; + } else { + attributesBuilder_.addAllMessages(other.attributes_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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.cloud.security.privateca.v1.AttributeTypeAndValue m = + input.readMessage( + com.google.cloud.security.privateca.v1.AttributeTypeAndValue.parser(), + extensionRegistry); + if (attributesBuilder_ == null) { + ensureAttributesIsMutable(); + attributes_.add(m); + } else { + attributesBuilder_.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 + attributes_ = java.util.Collections.emptyList(); + + private void ensureAttributesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + attributes_ = + new java.util.ArrayList( + attributes_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1.AttributeTypeAndValue, + com.google.cloud.security.privateca.v1.AttributeTypeAndValue.Builder, + com.google.cloud.security.privateca.v1.AttributeTypeAndValueOrBuilder> + attributesBuilder_; + + /** + * + * + *
      +     * Attributes describes the attribute value assertions in the RDN.
      +     * 
      + * + * repeated .google.cloud.security.privateca.v1.AttributeTypeAndValue attributes = 1; + * + */ + public java.util.List + getAttributesList() { + if (attributesBuilder_ == null) { + return java.util.Collections.unmodifiableList(attributes_); + } else { + return attributesBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * Attributes describes the attribute value assertions in the RDN.
      +     * 
      + * + * repeated .google.cloud.security.privateca.v1.AttributeTypeAndValue attributes = 1; + * + */ + public int getAttributesCount() { + if (attributesBuilder_ == null) { + return attributes_.size(); + } else { + return attributesBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * Attributes describes the attribute value assertions in the RDN.
      +     * 
      + * + * repeated .google.cloud.security.privateca.v1.AttributeTypeAndValue attributes = 1; + * + */ + public com.google.cloud.security.privateca.v1.AttributeTypeAndValue getAttributes(int index) { + if (attributesBuilder_ == null) { + return attributes_.get(index); + } else { + return attributesBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * Attributes describes the attribute value assertions in the RDN.
      +     * 
      + * + * repeated .google.cloud.security.privateca.v1.AttributeTypeAndValue attributes = 1; + * + */ + public Builder setAttributes( + int index, com.google.cloud.security.privateca.v1.AttributeTypeAndValue value) { + if (attributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttributesIsMutable(); + attributes_.set(index, value); + onChanged(); + } else { + attributesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Attributes describes the attribute value assertions in the RDN.
      +     * 
      + * + * repeated .google.cloud.security.privateca.v1.AttributeTypeAndValue attributes = 1; + * + */ + public Builder setAttributes( + int index, + com.google.cloud.security.privateca.v1.AttributeTypeAndValue.Builder builderForValue) { + if (attributesBuilder_ == null) { + ensureAttributesIsMutable(); + attributes_.set(index, builderForValue.build()); + onChanged(); + } else { + attributesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Attributes describes the attribute value assertions in the RDN.
      +     * 
      + * + * repeated .google.cloud.security.privateca.v1.AttributeTypeAndValue attributes = 1; + * + */ + public Builder addAttributes( + com.google.cloud.security.privateca.v1.AttributeTypeAndValue value) { + if (attributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttributesIsMutable(); + attributes_.add(value); + onChanged(); + } else { + attributesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * Attributes describes the attribute value assertions in the RDN.
      +     * 
      + * + * repeated .google.cloud.security.privateca.v1.AttributeTypeAndValue attributes = 1; + * + */ + public Builder addAttributes( + int index, com.google.cloud.security.privateca.v1.AttributeTypeAndValue value) { + if (attributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttributesIsMutable(); + attributes_.add(index, value); + onChanged(); + } else { + attributesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Attributes describes the attribute value assertions in the RDN.
      +     * 
      + * + * repeated .google.cloud.security.privateca.v1.AttributeTypeAndValue attributes = 1; + * + */ + public Builder addAttributes( + com.google.cloud.security.privateca.v1.AttributeTypeAndValue.Builder builderForValue) { + if (attributesBuilder_ == null) { + ensureAttributesIsMutable(); + attributes_.add(builderForValue.build()); + onChanged(); + } else { + attributesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Attributes describes the attribute value assertions in the RDN.
      +     * 
      + * + * repeated .google.cloud.security.privateca.v1.AttributeTypeAndValue attributes = 1; + * + */ + public Builder addAttributes( + int index, + com.google.cloud.security.privateca.v1.AttributeTypeAndValue.Builder builderForValue) { + if (attributesBuilder_ == null) { + ensureAttributesIsMutable(); + attributes_.add(index, builderForValue.build()); + onChanged(); + } else { + attributesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Attributes describes the attribute value assertions in the RDN.
      +     * 
      + * + * repeated .google.cloud.security.privateca.v1.AttributeTypeAndValue attributes = 1; + * + */ + public Builder addAllAttributes( + java.lang.Iterable + values) { + if (attributesBuilder_ == null) { + ensureAttributesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, attributes_); + onChanged(); + } else { + attributesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * Attributes describes the attribute value assertions in the RDN.
      +     * 
      + * + * repeated .google.cloud.security.privateca.v1.AttributeTypeAndValue attributes = 1; + * + */ + public Builder clearAttributes() { + if (attributesBuilder_ == null) { + attributes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + attributesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Attributes describes the attribute value assertions in the RDN.
      +     * 
      + * + * repeated .google.cloud.security.privateca.v1.AttributeTypeAndValue attributes = 1; + * + */ + public Builder removeAttributes(int index) { + if (attributesBuilder_ == null) { + ensureAttributesIsMutable(); + attributes_.remove(index); + onChanged(); + } else { + attributesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * Attributes describes the attribute value assertions in the RDN.
      +     * 
      + * + * repeated .google.cloud.security.privateca.v1.AttributeTypeAndValue attributes = 1; + * + */ + public com.google.cloud.security.privateca.v1.AttributeTypeAndValue.Builder + getAttributesBuilder(int index) { + return getAttributesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * Attributes describes the attribute value assertions in the RDN.
      +     * 
      + * + * repeated .google.cloud.security.privateca.v1.AttributeTypeAndValue attributes = 1; + * + */ + public com.google.cloud.security.privateca.v1.AttributeTypeAndValueOrBuilder + getAttributesOrBuilder(int index) { + if (attributesBuilder_ == null) { + return attributes_.get(index); + } else { + return attributesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * Attributes describes the attribute value assertions in the RDN.
      +     * 
      + * + * repeated .google.cloud.security.privateca.v1.AttributeTypeAndValue attributes = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.security.privateca.v1.AttributeTypeAndValueOrBuilder> + getAttributesOrBuilderList() { + if (attributesBuilder_ != null) { + return attributesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(attributes_); + } + } + + /** + * + * + *
      +     * Attributes describes the attribute value assertions in the RDN.
      +     * 
      + * + * repeated .google.cloud.security.privateca.v1.AttributeTypeAndValue attributes = 1; + * + */ + public com.google.cloud.security.privateca.v1.AttributeTypeAndValue.Builder + addAttributesBuilder() { + return getAttributesFieldBuilder() + .addBuilder( + com.google.cloud.security.privateca.v1.AttributeTypeAndValue.getDefaultInstance()); + } + + /** + * + * + *
      +     * Attributes describes the attribute value assertions in the RDN.
      +     * 
      + * + * repeated .google.cloud.security.privateca.v1.AttributeTypeAndValue attributes = 1; + * + */ + public com.google.cloud.security.privateca.v1.AttributeTypeAndValue.Builder + addAttributesBuilder(int index) { + return getAttributesFieldBuilder() + .addBuilder( + index, + com.google.cloud.security.privateca.v1.AttributeTypeAndValue.getDefaultInstance()); + } + + /** + * + * + *
      +     * Attributes describes the attribute value assertions in the RDN.
      +     * 
      + * + * repeated .google.cloud.security.privateca.v1.AttributeTypeAndValue attributes = 1; + * + */ + public java.util.List + getAttributesBuilderList() { + return getAttributesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1.AttributeTypeAndValue, + com.google.cloud.security.privateca.v1.AttributeTypeAndValue.Builder, + com.google.cloud.security.privateca.v1.AttributeTypeAndValueOrBuilder> + getAttributesFieldBuilder() { + if (attributesBuilder_ == null) { + attributesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1.AttributeTypeAndValue, + com.google.cloud.security.privateca.v1.AttributeTypeAndValue.Builder, + com.google.cloud.security.privateca.v1.AttributeTypeAndValueOrBuilder>( + attributes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + attributes_ = null; + } + return attributesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.RelativeDistinguishedName) + } + + // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.RelativeDistinguishedName) + private static final com.google.cloud.security.privateca.v1.RelativeDistinguishedName + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.RelativeDistinguishedName(); + } + + public static com.google.cloud.security.privateca.v1.RelativeDistinguishedName + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RelativeDistinguishedName parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.security.privateca.v1.RelativeDistinguishedName + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/RelativeDistinguishedNameOrBuilder.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/RelativeDistinguishedNameOrBuilder.java new file mode 100644 index 000000000000..2e0b5d89ada6 --- /dev/null +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/RelativeDistinguishedNameOrBuilder.java @@ -0,0 +1,83 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/security/privateca/v1/resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.security.privateca.v1; + +public interface RelativeDistinguishedNameOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.RelativeDistinguishedName) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Attributes describes the attribute value assertions in the RDN.
      +   * 
      + * + * repeated .google.cloud.security.privateca.v1.AttributeTypeAndValue attributes = 1; + */ + java.util.List getAttributesList(); + + /** + * + * + *
      +   * Attributes describes the attribute value assertions in the RDN.
      +   * 
      + * + * repeated .google.cloud.security.privateca.v1.AttributeTypeAndValue attributes = 1; + */ + com.google.cloud.security.privateca.v1.AttributeTypeAndValue getAttributes(int index); + + /** + * + * + *
      +   * Attributes describes the attribute value assertions in the RDN.
      +   * 
      + * + * repeated .google.cloud.security.privateca.v1.AttributeTypeAndValue attributes = 1; + */ + int getAttributesCount(); + + /** + * + * + *
      +   * Attributes describes the attribute value assertions in the RDN.
      +   * 
      + * + * repeated .google.cloud.security.privateca.v1.AttributeTypeAndValue attributes = 1; + */ + java.util.List + getAttributesOrBuilderList(); + + /** + * + * + *
      +   * Attributes describes the attribute value assertions in the RDN.
      +   * 
      + * + * repeated .google.cloud.security.privateca.v1.AttributeTypeAndValue attributes = 1; + */ + com.google.cloud.security.privateca.v1.AttributeTypeAndValueOrBuilder getAttributesOrBuilder( + int index); +} diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/RevocationReason.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/RevocationReason.java index a9fbac900ec7..68d9a9d3a226 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/RevocationReason.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/RevocationReason.java @@ -326,7 +326,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.getDescriptor() .getEnumTypes() - .get(0); + .get(1); } private static final RevocationReason[] VALUES = values(); diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/Subject.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/Subject.java index 2588b5a1f2bb..c1ad8647a50b 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/Subject.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/Subject.java @@ -49,6 +49,7 @@ private Subject() { province_ = ""; streetAddress_ = ""; postalCode_ = ""; + rdnSequence_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -496,6 +497,92 @@ public com.google.protobuf.ByteString getPostalCodeBytes() { } } + public static final int RDN_SEQUENCE_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private java.util.List + rdnSequence_; + + /** + * + * + *
      +   * This field can be used in place of the named subject fields.
      +   * 
      + * + * repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9; + * + */ + @java.lang.Override + public java.util.List + getRdnSequenceList() { + return rdnSequence_; + } + + /** + * + * + *
      +   * This field can be used in place of the named subject fields.
      +   * 
      + * + * repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.security.privateca.v1.RelativeDistinguishedNameOrBuilder> + getRdnSequenceOrBuilderList() { + return rdnSequence_; + } + + /** + * + * + *
      +   * This field can be used in place of the named subject fields.
      +   * 
      + * + * repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9; + * + */ + @java.lang.Override + public int getRdnSequenceCount() { + return rdnSequence_.size(); + } + + /** + * + * + *
      +   * This field can be used in place of the named subject fields.
      +   * 
      + * + * repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9; + * + */ + @java.lang.Override + public com.google.cloud.security.privateca.v1.RelativeDistinguishedName getRdnSequence( + int index) { + return rdnSequence_.get(index); + } + + /** + * + * + *
      +   * This field can be used in place of the named subject fields.
      +   * 
      + * + * repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9; + * + */ + @java.lang.Override + public com.google.cloud.security.privateca.v1.RelativeDistinguishedNameOrBuilder + getRdnSequenceOrBuilder(int index) { + return rdnSequence_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -534,6 +621,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(postalCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, postalCode_); } + for (int i = 0; i < rdnSequence_.size(); i++) { + output.writeMessage(9, rdnSequence_.get(i)); + } getUnknownFields().writeTo(output); } @@ -567,6 +657,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(postalCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, postalCode_); } + for (int i = 0; i < rdnSequence_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, rdnSequence_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -591,6 +684,7 @@ public boolean equals(final java.lang.Object obj) { if (!getProvince().equals(other.getProvince())) return false; if (!getStreetAddress().equals(other.getStreetAddress())) return false; if (!getPostalCode().equals(other.getPostalCode())) return false; + if (!getRdnSequenceList().equals(other.getRdnSequenceList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -618,6 +712,10 @@ public int hashCode() { hash = (53 * hash) + getStreetAddress().hashCode(); hash = (37 * hash) + POSTAL_CODE_FIELD_NUMBER; hash = (53 * hash) + getPostalCode().hashCode(); + if (getRdnSequenceCount() > 0) { + hash = (37 * hash) + RDN_SEQUENCE_FIELD_NUMBER; + hash = (53 * hash) + getRdnSequenceList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -767,6 +865,13 @@ public Builder clear() { province_ = ""; streetAddress_ = ""; postalCode_ = ""; + if (rdnSequenceBuilder_ == null) { + rdnSequence_ = java.util.Collections.emptyList(); + } else { + rdnSequence_ = null; + rdnSequenceBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000100); return this; } @@ -794,6 +899,7 @@ public com.google.cloud.security.privateca.v1.Subject build() { public com.google.cloud.security.privateca.v1.Subject buildPartial() { com.google.cloud.security.privateca.v1.Subject result = new com.google.cloud.security.privateca.v1.Subject(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -801,6 +907,18 @@ public com.google.cloud.security.privateca.v1.Subject buildPartial() { return result; } + private void buildPartialRepeatedFields(com.google.cloud.security.privateca.v1.Subject result) { + if (rdnSequenceBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0)) { + rdnSequence_ = java.util.Collections.unmodifiableList(rdnSequence_); + bitField0_ = (bitField0_ & ~0x00000100); + } + result.rdnSequence_ = rdnSequence_; + } else { + result.rdnSequence_ = rdnSequenceBuilder_.build(); + } + } + private void buildPartial0(com.google.cloud.security.privateca.v1.Subject result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -914,6 +1032,33 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1.Subject other) { bitField0_ |= 0x00000080; onChanged(); } + if (rdnSequenceBuilder_ == null) { + if (!other.rdnSequence_.isEmpty()) { + if (rdnSequence_.isEmpty()) { + rdnSequence_ = other.rdnSequence_; + bitField0_ = (bitField0_ & ~0x00000100); + } else { + ensureRdnSequenceIsMutable(); + rdnSequence_.addAll(other.rdnSequence_); + } + onChanged(); + } + } else { + if (!other.rdnSequence_.isEmpty()) { + if (rdnSequenceBuilder_.isEmpty()) { + rdnSequenceBuilder_.dispose(); + rdnSequenceBuilder_ = null; + rdnSequence_ = other.rdnSequence_; + bitField0_ = (bitField0_ & ~0x00000100); + rdnSequenceBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRdnSequenceFieldBuilder() + : null; + } else { + rdnSequenceBuilder_.addAllMessages(other.rdnSequence_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -988,6 +1133,20 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; break; } // case 66 + case 74: + { + com.google.cloud.security.privateca.v1.RelativeDistinguishedName m = + input.readMessage( + com.google.cloud.security.privateca.v1.RelativeDistinguishedName.parser(), + extensionRegistry); + if (rdnSequenceBuilder_ == null) { + ensureRdnSequenceIsMutable(); + rdnSequence_.add(m); + } else { + rdnSequenceBuilder_.addMessage(m); + } + break; + } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1895,6 +2054,430 @@ public Builder setPostalCodeBytes(com.google.protobuf.ByteString value) { return this; } + private java.util.List + rdnSequence_ = java.util.Collections.emptyList(); + + private void ensureRdnSequenceIsMutable() { + if (!((bitField0_ & 0x00000100) != 0)) { + rdnSequence_ = + new java.util.ArrayList< + com.google.cloud.security.privateca.v1.RelativeDistinguishedName>(rdnSequence_); + bitField0_ |= 0x00000100; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1.RelativeDistinguishedName, + com.google.cloud.security.privateca.v1.RelativeDistinguishedName.Builder, + com.google.cloud.security.privateca.v1.RelativeDistinguishedNameOrBuilder> + rdnSequenceBuilder_; + + /** + * + * + *
      +     * This field can be used in place of the named subject fields.
      +     * 
      + * + * + * repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9; + * + */ + public java.util.List + getRdnSequenceList() { + if (rdnSequenceBuilder_ == null) { + return java.util.Collections.unmodifiableList(rdnSequence_); + } else { + return rdnSequenceBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * This field can be used in place of the named subject fields.
      +     * 
      + * + * + * repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9; + * + */ + public int getRdnSequenceCount() { + if (rdnSequenceBuilder_ == null) { + return rdnSequence_.size(); + } else { + return rdnSequenceBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * This field can be used in place of the named subject fields.
      +     * 
      + * + * + * repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9; + * + */ + public com.google.cloud.security.privateca.v1.RelativeDistinguishedName getRdnSequence( + int index) { + if (rdnSequenceBuilder_ == null) { + return rdnSequence_.get(index); + } else { + return rdnSequenceBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * This field can be used in place of the named subject fields.
      +     * 
      + * + * + * repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9; + * + */ + public Builder setRdnSequence( + int index, com.google.cloud.security.privateca.v1.RelativeDistinguishedName value) { + if (rdnSequenceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRdnSequenceIsMutable(); + rdnSequence_.set(index, value); + onChanged(); + } else { + rdnSequenceBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * This field can be used in place of the named subject fields.
      +     * 
      + * + * + * repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9; + * + */ + public Builder setRdnSequence( + int index, + com.google.cloud.security.privateca.v1.RelativeDistinguishedName.Builder builderForValue) { + if (rdnSequenceBuilder_ == null) { + ensureRdnSequenceIsMutable(); + rdnSequence_.set(index, builderForValue.build()); + onChanged(); + } else { + rdnSequenceBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * This field can be used in place of the named subject fields.
      +     * 
      + * + * + * repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9; + * + */ + public Builder addRdnSequence( + com.google.cloud.security.privateca.v1.RelativeDistinguishedName value) { + if (rdnSequenceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRdnSequenceIsMutable(); + rdnSequence_.add(value); + onChanged(); + } else { + rdnSequenceBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * This field can be used in place of the named subject fields.
      +     * 
      + * + * + * repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9; + * + */ + public Builder addRdnSequence( + int index, com.google.cloud.security.privateca.v1.RelativeDistinguishedName value) { + if (rdnSequenceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRdnSequenceIsMutable(); + rdnSequence_.add(index, value); + onChanged(); + } else { + rdnSequenceBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * This field can be used in place of the named subject fields.
      +     * 
      + * + * + * repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9; + * + */ + public Builder addRdnSequence( + com.google.cloud.security.privateca.v1.RelativeDistinguishedName.Builder builderForValue) { + if (rdnSequenceBuilder_ == null) { + ensureRdnSequenceIsMutable(); + rdnSequence_.add(builderForValue.build()); + onChanged(); + } else { + rdnSequenceBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * This field can be used in place of the named subject fields.
      +     * 
      + * + * + * repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9; + * + */ + public Builder addRdnSequence( + int index, + com.google.cloud.security.privateca.v1.RelativeDistinguishedName.Builder builderForValue) { + if (rdnSequenceBuilder_ == null) { + ensureRdnSequenceIsMutable(); + rdnSequence_.add(index, builderForValue.build()); + onChanged(); + } else { + rdnSequenceBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * This field can be used in place of the named subject fields.
      +     * 
      + * + * + * repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9; + * + */ + public Builder addAllRdnSequence( + java.lang.Iterable< + ? extends com.google.cloud.security.privateca.v1.RelativeDistinguishedName> + values) { + if (rdnSequenceBuilder_ == null) { + ensureRdnSequenceIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rdnSequence_); + onChanged(); + } else { + rdnSequenceBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * This field can be used in place of the named subject fields.
      +     * 
      + * + * + * repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9; + * + */ + public Builder clearRdnSequence() { + if (rdnSequenceBuilder_ == null) { + rdnSequence_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + } else { + rdnSequenceBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * This field can be used in place of the named subject fields.
      +     * 
      + * + * + * repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9; + * + */ + public Builder removeRdnSequence(int index) { + if (rdnSequenceBuilder_ == null) { + ensureRdnSequenceIsMutable(); + rdnSequence_.remove(index); + onChanged(); + } else { + rdnSequenceBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * This field can be used in place of the named subject fields.
      +     * 
      + * + * + * repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9; + * + */ + public com.google.cloud.security.privateca.v1.RelativeDistinguishedName.Builder + getRdnSequenceBuilder(int index) { + return getRdnSequenceFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * This field can be used in place of the named subject fields.
      +     * 
      + * + * + * repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9; + * + */ + public com.google.cloud.security.privateca.v1.RelativeDistinguishedNameOrBuilder + getRdnSequenceOrBuilder(int index) { + if (rdnSequenceBuilder_ == null) { + return rdnSequence_.get(index); + } else { + return rdnSequenceBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * This field can be used in place of the named subject fields.
      +     * 
      + * + * + * repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9; + * + */ + public java.util.List< + ? extends com.google.cloud.security.privateca.v1.RelativeDistinguishedNameOrBuilder> + getRdnSequenceOrBuilderList() { + if (rdnSequenceBuilder_ != null) { + return rdnSequenceBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rdnSequence_); + } + } + + /** + * + * + *
      +     * This field can be used in place of the named subject fields.
      +     * 
      + * + * + * repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9; + * + */ + public com.google.cloud.security.privateca.v1.RelativeDistinguishedName.Builder + addRdnSequenceBuilder() { + return getRdnSequenceFieldBuilder() + .addBuilder( + com.google.cloud.security.privateca.v1.RelativeDistinguishedName + .getDefaultInstance()); + } + + /** + * + * + *
      +     * This field can be used in place of the named subject fields.
      +     * 
      + * + * + * repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9; + * + */ + public com.google.cloud.security.privateca.v1.RelativeDistinguishedName.Builder + addRdnSequenceBuilder(int index) { + return getRdnSequenceFieldBuilder() + .addBuilder( + index, + com.google.cloud.security.privateca.v1.RelativeDistinguishedName + .getDefaultInstance()); + } + + /** + * + * + *
      +     * This field can be used in place of the named subject fields.
      +     * 
      + * + * + * repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9; + * + */ + public java.util.List + getRdnSequenceBuilderList() { + return getRdnSequenceFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1.RelativeDistinguishedName, + com.google.cloud.security.privateca.v1.RelativeDistinguishedName.Builder, + com.google.cloud.security.privateca.v1.RelativeDistinguishedNameOrBuilder> + getRdnSequenceFieldBuilder() { + if (rdnSequenceBuilder_ == null) { + rdnSequenceBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1.RelativeDistinguishedName, + com.google.cloud.security.privateca.v1.RelativeDistinguishedName.Builder, + com.google.cloud.security.privateca.v1.RelativeDistinguishedNameOrBuilder>( + rdnSequence_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); + rdnSequence_ = null; + } + return rdnSequenceBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectOrBuilder.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectOrBuilder.java index c8650a21566a..1d688b95c404 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectOrBuilder.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectOrBuilder.java @@ -231,4 +231,68 @@ public interface SubjectOrBuilder * @return The bytes for postalCode. */ com.google.protobuf.ByteString getPostalCodeBytes(); + + /** + * + * + *
      +   * This field can be used in place of the named subject fields.
      +   * 
      + * + * repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9; + * + */ + java.util.List + getRdnSequenceList(); + + /** + * + * + *
      +   * This field can be used in place of the named subject fields.
      +   * 
      + * + * repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9; + * + */ + com.google.cloud.security.privateca.v1.RelativeDistinguishedName getRdnSequence(int index); + + /** + * + * + *
      +   * This field can be used in place of the named subject fields.
      +   * 
      + * + * repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9; + * + */ + int getRdnSequenceCount(); + + /** + * + * + *
      +   * This field can be used in place of the named subject fields.
      +   * 
      + * + * repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9; + * + */ + java.util.List< + ? extends com.google.cloud.security.privateca.v1.RelativeDistinguishedNameOrBuilder> + getRdnSequenceOrBuilderList(); + + /** + * + * + *
      +   * This field can be used in place of the named subject fields.
      +   * 
      + * + * repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9; + * + */ + com.google.cloud.security.privateca.v1.RelativeDistinguishedNameOrBuilder getRdnSequenceOrBuilder( + int index); } diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectRequestMode.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectRequestMode.java index d96cfb453f3b..7ca93f15df6f 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectRequestMode.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectRequestMode.java @@ -57,6 +57,24 @@ public enum SubjectRequestMode implements com.google.protobuf.ProtocolMessageEnu * DEFAULT = 1; */ DEFAULT(1), + /** + * + * + *
      +   * A mode used to get an accurate representation of the Subject
      +   * field's distinguished name. Indicates that the certificate's
      +   * [Subject][google.cloud.security.privateca.v1.Subject] and/or
      +   * [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] are
      +   * specified in the certificate request. When parsing a PEM CSR this mode will
      +   * maintain the sequence of RDNs found in the CSR's subject field in the
      +   * issued [Certificate][google.cloud.security.privateca.v1.Certificate]. This
      +   * mode requires the caller to have the `privateca.certificates.create`
      +   * permission.
      +   * 
      + * + * RDN_SEQUENCE = 3; + */ + RDN_SEQUENCE(3), /** * * @@ -104,6 +122,25 @@ public enum SubjectRequestMode implements com.google.protobuf.ProtocolMessageEnu */ public static final int DEFAULT_VALUE = 1; + /** + * + * + *
      +   * A mode used to get an accurate representation of the Subject
      +   * field's distinguished name. Indicates that the certificate's
      +   * [Subject][google.cloud.security.privateca.v1.Subject] and/or
      +   * [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] are
      +   * specified in the certificate request. When parsing a PEM CSR this mode will
      +   * maintain the sequence of RDNs found in the CSR's subject field in the
      +   * issued [Certificate][google.cloud.security.privateca.v1.Certificate]. This
      +   * mode requires the caller to have the `privateca.certificates.create`
      +   * permission.
      +   * 
      + * + * RDN_SEQUENCE = 3; + */ + public static final int RDN_SEQUENCE_VALUE = 3; + /** * * @@ -151,6 +188,8 @@ public static SubjectRequestMode forNumber(int value) { return SUBJECT_REQUEST_MODE_UNSPECIFIED; case 1: return DEFAULT; + case 3: + return RDN_SEQUENCE; case 2: return REFLECTED_SPIFFE; default: @@ -185,7 +224,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.getDescriptor() .getEnumTypes() - .get(1); + .get(2); } private static final SubjectRequestMode[] VALUES = values(); diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UndeleteCertificateAuthorityRequest.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UndeleteCertificateAuthorityRequest.java index b131edec0b5d..46a1c78df72e 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UndeleteCertificateAuthorityRequest.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UndeleteCertificateAuthorityRequest.java @@ -154,7 +154,9 @@ public com.google.protobuf.ByteString getNameBytes() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The requestId. */ @@ -190,7 +192,9 @@ public java.lang.String getRequestId() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The bytes for requestId. */ @@ -746,7 +750,9 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The requestId. */ @@ -781,7 +787,9 @@ public java.lang.String getRequestId() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The bytes for requestId. */ @@ -816,7 +824,9 @@ public com.google.protobuf.ByteString getRequestIdBytes() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @param value The requestId to set. * @return This builder for chaining. @@ -850,7 +860,9 @@ public Builder setRequestId(java.lang.String value) { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return This builder for chaining. */ @@ -880,7 +892,9 @@ public Builder clearRequestId() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @param value The bytes for requestId to set. * @return This builder for chaining. diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UndeleteCertificateAuthorityRequestOrBuilder.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UndeleteCertificateAuthorityRequestOrBuilder.java index 2b5679557228..dfeed1871617 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UndeleteCertificateAuthorityRequestOrBuilder.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UndeleteCertificateAuthorityRequestOrBuilder.java @@ -77,7 +77,9 @@ public interface UndeleteCertificateAuthorityRequestOrBuilder * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The requestId. */ @@ -102,7 +104,9 @@ public interface UndeleteCertificateAuthorityRequestOrBuilder * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The bytes for requestId. */ diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCaPoolRequest.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCaPoolRequest.java index f668c1a40b4e..3dc972239e2a 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCaPoolRequest.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCaPoolRequest.java @@ -204,7 +204,9 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The requestId. */ @@ -240,7 +242,9 @@ public java.lang.String getRequestId() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The bytes for requestId. */ @@ -1124,7 +1128,9 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The requestId. */ @@ -1159,7 +1165,9 @@ public java.lang.String getRequestId() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The bytes for requestId. */ @@ -1194,7 +1202,9 @@ public com.google.protobuf.ByteString getRequestIdBytes() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @param value The requestId to set. * @return This builder for chaining. @@ -1228,7 +1238,9 @@ public Builder setRequestId(java.lang.String value) { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return This builder for chaining. */ @@ -1258,7 +1270,9 @@ public Builder clearRequestId() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @param value The bytes for requestId to set. * @return This builder for chaining. diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCaPoolRequestOrBuilder.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCaPoolRequestOrBuilder.java index b6cd46c5fe73..fcc94b8d6403 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCaPoolRequestOrBuilder.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCaPoolRequestOrBuilder.java @@ -129,7 +129,9 @@ public interface UpdateCaPoolRequestOrBuilder * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The requestId. */ @@ -154,7 +156,9 @@ public interface UpdateCaPoolRequestOrBuilder * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The bytes for requestId. */ diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateAuthorityRequest.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateAuthorityRequest.java index 884d02af1d21..88e91e5c6bb5 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateAuthorityRequest.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateAuthorityRequest.java @@ -209,7 +209,9 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The requestId. */ @@ -245,7 +247,9 @@ public java.lang.String getRequestId() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The bytes for requestId. */ @@ -1161,7 +1165,9 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The requestId. */ @@ -1196,7 +1202,9 @@ public java.lang.String getRequestId() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The bytes for requestId. */ @@ -1231,7 +1239,9 @@ public com.google.protobuf.ByteString getRequestIdBytes() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @param value The requestId to set. * @return This builder for chaining. @@ -1265,7 +1275,9 @@ public Builder setRequestId(java.lang.String value) { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return This builder for chaining. */ @@ -1295,7 +1307,9 @@ public Builder clearRequestId() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @param value The bytes for requestId to set. * @return This builder for chaining. diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateAuthorityRequestOrBuilder.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateAuthorityRequestOrBuilder.java index 7f5b74bad091..ece0fe075719 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateAuthorityRequestOrBuilder.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateAuthorityRequestOrBuilder.java @@ -133,7 +133,9 @@ public interface UpdateCertificateAuthorityRequestOrBuilder * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The requestId. */ @@ -158,7 +160,9 @@ public interface UpdateCertificateAuthorityRequestOrBuilder * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The bytes for requestId. */ diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateTemplateRequest.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateTemplateRequest.java index 804b13311a25..64d82c5bb92d 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateTemplateRequest.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateTemplateRequest.java @@ -209,7 +209,9 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The requestId. */ @@ -245,7 +247,9 @@ public java.lang.String getRequestId() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The bytes for requestId. */ @@ -1159,7 +1163,9 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The requestId. */ @@ -1194,7 +1200,9 @@ public java.lang.String getRequestId() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The bytes for requestId. */ @@ -1229,7 +1237,9 @@ public com.google.protobuf.ByteString getRequestIdBytes() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @param value The requestId to set. * @return This builder for chaining. @@ -1263,7 +1273,9 @@ public Builder setRequestId(java.lang.String value) { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return This builder for chaining. */ @@ -1293,7 +1305,9 @@ public Builder clearRequestId() { * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @param value The bytes for requestId to set. * @return This builder for chaining. diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateTemplateRequestOrBuilder.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateTemplateRequestOrBuilder.java index 14663b224267..aed79c8a2d4e 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateTemplateRequestOrBuilder.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateTemplateRequestOrBuilder.java @@ -133,7 +133,9 @@ public interface UpdateCertificateTemplateRequestOrBuilder * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The requestId. */ @@ -158,7 +160,9 @@ public interface UpdateCertificateTemplateRequestOrBuilder * not supported (00000000-0000-0000-0000-000000000000). * * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The bytes for requestId. */ diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509Parameters.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509Parameters.java index 6af838e31a28..407e068272bd 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509Parameters.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509Parameters.java @@ -78,9 +78,9 @@ public interface CaOptionsOrBuilder * * *
      -     * Optional. Refers to the "CA" X.509 extension, which is a boolean value.
      -     * When this value is missing, the extension will be omitted from the CA
      -     * certificate.
      +     * Optional. Refers to the "CA" boolean field in the X.509 extension.
      +     * When this value is missing, the basic constraints extension will be
      +     * omitted from the certificate.
            * 
      * * optional bool is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -93,9 +93,9 @@ public interface CaOptionsOrBuilder * * *
      -     * Optional. Refers to the "CA" X.509 extension, which is a boolean value.
      -     * When this value is missing, the extension will be omitted from the CA
      -     * certificate.
      +     * Optional. Refers to the "CA" boolean field in the X.509 extension.
      +     * When this value is missing, the basic constraints extension will be
      +     * omitted from the certificate.
            * 
      * * optional bool is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -108,12 +108,11 @@ public interface CaOptionsOrBuilder * * *
      -     * Optional. Refers to the path length restriction X.509 extension. For a CA
      -     * certificate, this value describes the depth of subordinate CA
      -     * certificates that are allowed.
      -     * If this value is less than 0, the request will fail.
      -     * If this value is missing, the max path length will be omitted from the
      -     * CA certificate.
      +     * Optional. Refers to the path length constraint field in the X.509
      +     * extension. For a CA certificate, this value describes the depth of
      +     * subordinate CA certificates that are allowed. If this value is less than
      +     * 0, the request will fail. If this value is missing, the max path length
      +     * will be omitted from the certificate.
            * 
      * * optional int32 max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -127,12 +126,11 @@ public interface CaOptionsOrBuilder * * *
      -     * Optional. Refers to the path length restriction X.509 extension. For a CA
      -     * certificate, this value describes the depth of subordinate CA
      -     * certificates that are allowed.
      -     * If this value is less than 0, the request will fail.
      -     * If this value is missing, the max path length will be omitted from the
      -     * CA certificate.
      +     * Optional. Refers to the path length constraint field in the X.509
      +     * extension. For a CA certificate, this value describes the depth of
      +     * subordinate CA certificates that are allowed. If this value is less than
      +     * 0, the request will fail. If this value is missing, the max path length
      +     * will be omitted from the certificate.
            * 
      * * optional int32 max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -147,7 +145,8 @@ public interface CaOptionsOrBuilder * * *
      -   * Describes values that are relevant in a CA certificate.
      +   * Describes the X.509 basic constraints extension, per [RFC 5280
      +   * section 4.2.1.9](https://tools.ietf.org/html/rfc5280#section-4.2.1.9)
          * 
      * * Protobuf type {@code google.cloud.security.privateca.v1.X509Parameters.CaOptions} @@ -194,9 +193,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
      -     * Optional. Refers to the "CA" X.509 extension, which is a boolean value.
      -     * When this value is missing, the extension will be omitted from the CA
      -     * certificate.
      +     * Optional. Refers to the "CA" boolean field in the X.509 extension.
      +     * When this value is missing, the basic constraints extension will be
      +     * omitted from the certificate.
            * 
      * * optional bool is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -212,9 +211,9 @@ public boolean hasIsCa() { * * *
      -     * Optional. Refers to the "CA" X.509 extension, which is a boolean value.
      -     * When this value is missing, the extension will be omitted from the CA
      -     * certificate.
      +     * Optional. Refers to the "CA" boolean field in the X.509 extension.
      +     * When this value is missing, the basic constraints extension will be
      +     * omitted from the certificate.
            * 
      * * optional bool is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -233,12 +232,11 @@ public boolean getIsCa() { * * *
      -     * Optional. Refers to the path length restriction X.509 extension. For a CA
      -     * certificate, this value describes the depth of subordinate CA
      -     * certificates that are allowed.
      -     * If this value is less than 0, the request will fail.
      -     * If this value is missing, the max path length will be omitted from the
      -     * CA certificate.
      +     * Optional. Refers to the path length constraint field in the X.509
      +     * extension. For a CA certificate, this value describes the depth of
      +     * subordinate CA certificates that are allowed. If this value is less than
      +     * 0, the request will fail. If this value is missing, the max path length
      +     * will be omitted from the certificate.
            * 
      * * optional int32 max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -255,12 +253,11 @@ public boolean hasMaxIssuerPathLength() { * * *
      -     * Optional. Refers to the path length restriction X.509 extension. For a CA
      -     * certificate, this value describes the depth of subordinate CA
      -     * certificates that are allowed.
      -     * If this value is less than 0, the request will fail.
      -     * If this value is missing, the max path length will be omitted from the
      -     * CA certificate.
      +     * Optional. Refers to the path length constraint field in the X.509
      +     * extension. For a CA certificate, this value describes the depth of
      +     * subordinate CA certificates that are allowed. If this value is less than
      +     * 0, the request will fail. If this value is missing, the max path length
      +     * will be omitted from the certificate.
            * 
      * * optional int32 max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -459,7 +456,8 @@ protected Builder newBuilderForType( * * *
      -     * Describes values that are relevant in a CA certificate.
      +     * Describes the X.509 basic constraints extension, per [RFC 5280
      +     * section 4.2.1.9](https://tools.ietf.org/html/rfc5280#section-4.2.1.9)
            * 
      * * Protobuf type {@code google.cloud.security.privateca.v1.X509Parameters.CaOptions} @@ -667,9 +665,9 @@ public Builder mergeFrom( * * *
      -       * Optional. Refers to the "CA" X.509 extension, which is a boolean value.
      -       * When this value is missing, the extension will be omitted from the CA
      -       * certificate.
      +       * Optional. Refers to the "CA" boolean field in the X.509 extension.
      +       * When this value is missing, the basic constraints extension will be
      +       * omitted from the certificate.
              * 
      * * optional bool is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -685,9 +683,9 @@ public boolean hasIsCa() { * * *
      -       * Optional. Refers to the "CA" X.509 extension, which is a boolean value.
      -       * When this value is missing, the extension will be omitted from the CA
      -       * certificate.
      +       * Optional. Refers to the "CA" boolean field in the X.509 extension.
      +       * When this value is missing, the basic constraints extension will be
      +       * omitted from the certificate.
              * 
      * * optional bool is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -703,9 +701,9 @@ public boolean getIsCa() { * * *
      -       * Optional. Refers to the "CA" X.509 extension, which is a boolean value.
      -       * When this value is missing, the extension will be omitted from the CA
      -       * certificate.
      +       * Optional. Refers to the "CA" boolean field in the X.509 extension.
      +       * When this value is missing, the basic constraints extension will be
      +       * omitted from the certificate.
              * 
      * * optional bool is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -725,9 +723,9 @@ public Builder setIsCa(boolean value) { * * *
      -       * Optional. Refers to the "CA" X.509 extension, which is a boolean value.
      -       * When this value is missing, the extension will be omitted from the CA
      -       * certificate.
      +       * Optional. Refers to the "CA" boolean field in the X.509 extension.
      +       * When this value is missing, the basic constraints extension will be
      +       * omitted from the certificate.
              * 
      * * optional bool is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -747,12 +745,11 @@ public Builder clearIsCa() { * * *
      -       * Optional. Refers to the path length restriction X.509 extension. For a CA
      -       * certificate, this value describes the depth of subordinate CA
      -       * certificates that are allowed.
      -       * If this value is less than 0, the request will fail.
      -       * If this value is missing, the max path length will be omitted from the
      -       * CA certificate.
      +       * Optional. Refers to the path length constraint field in the X.509
      +       * extension. For a CA certificate, this value describes the depth of
      +       * subordinate CA certificates that are allowed. If this value is less than
      +       * 0, the request will fail. If this value is missing, the max path length
      +       * will be omitted from the certificate.
              * 
      * * optional int32 max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -769,12 +766,11 @@ public boolean hasMaxIssuerPathLength() { * * *
      -       * Optional. Refers to the path length restriction X.509 extension. For a CA
      -       * certificate, this value describes the depth of subordinate CA
      -       * certificates that are allowed.
      -       * If this value is less than 0, the request will fail.
      -       * If this value is missing, the max path length will be omitted from the
      -       * CA certificate.
      +       * Optional. Refers to the path length constraint field in the X.509
      +       * extension. For a CA certificate, this value describes the depth of
      +       * subordinate CA certificates that are allowed. If this value is less than
      +       * 0, the request will fail. If this value is missing, the max path length
      +       * will be omitted from the certificate.
              * 
      * * optional int32 max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -791,12 +787,11 @@ public int getMaxIssuerPathLength() { * * *
      -       * Optional. Refers to the path length restriction X.509 extension. For a CA
      -       * certificate, this value describes the depth of subordinate CA
      -       * certificates that are allowed.
      -       * If this value is less than 0, the request will fail.
      -       * If this value is missing, the max path length will be omitted from the
      -       * CA certificate.
      +       * Optional. Refers to the path length constraint field in the X.509
      +       * extension. For a CA certificate, this value describes the depth of
      +       * subordinate CA certificates that are allowed. If this value is less than
      +       * 0, the request will fail. If this value is missing, the max path length
      +       * will be omitted from the certificate.
              * 
      * * optional int32 max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -817,12 +812,11 @@ public Builder setMaxIssuerPathLength(int value) { * * *
      -       * Optional. Refers to the path length restriction X.509 extension. For a CA
      -       * certificate, this value describes the depth of subordinate CA
      -       * certificates that are allowed.
      -       * If this value is less than 0, the request will fail.
      -       * If this value is missing, the max path length will be omitted from the
      -       * CA certificate.
      +       * Optional. Refers to the path length constraint field in the X.509
      +       * extension. For a CA certificate, this value describes the depth of
      +       * subordinate CA certificates that are allowed. If this value is less than
      +       * 0, the request will fail. If this value is missing, the max path length
      +       * will be omitted from the certificate.
              * 
      * * optional int32 max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -4707,7 +4701,9 @@ public com.google.cloud.security.privateca.v1.KeyUsageOrBuilder getKeyUsageOrBui *
          * Optional. Describes options in this
          * [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that
      -   * are relevant in a CA certificate.
      +   * are relevant in a CA certificate. If not specified, a default basic
      +   * constraints extension with `is_ca=false` will be added for leaf
      +   * certificates.
          * 
      * * @@ -4727,7 +4723,9 @@ public boolean hasCaOptions() { *
          * Optional. Describes options in this
          * [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that
      -   * are relevant in a CA certificate.
      +   * are relevant in a CA certificate. If not specified, a default basic
      +   * constraints extension with `is_ca=false` will be added for leaf
      +   * certificates.
          * 
      * * @@ -4749,7 +4747,9 @@ public com.google.cloud.security.privateca.v1.X509Parameters.CaOptions getCaOpti *
          * Optional. Describes options in this
          * [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that
      -   * are relevant in a CA certificate.
      +   * are relevant in a CA certificate. If not specified, a default basic
      +   * constraints extension with `is_ca=false` will be added for leaf
      +   * certificates.
          * 
      * * @@ -5931,7 +5931,9 @@ public com.google.cloud.security.privateca.v1.KeyUsageOrBuilder getKeyUsageOrBui *
            * Optional. Describes options in this
            * [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that
      -     * are relevant in a CA certificate.
      +     * are relevant in a CA certificate. If not specified, a default basic
      +     * constraints extension with `is_ca=false` will be added for leaf
      +     * certificates.
            * 
      * * @@ -5950,7 +5952,9 @@ public boolean hasCaOptions() { *
            * Optional. Describes options in this
            * [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that
      -     * are relevant in a CA certificate.
      +     * are relevant in a CA certificate. If not specified, a default basic
      +     * constraints extension with `is_ca=false` will be added for leaf
      +     * certificates.
            * 
      * * @@ -5975,7 +5979,9 @@ public com.google.cloud.security.privateca.v1.X509Parameters.CaOptions getCaOpti *
            * Optional. Describes options in this
            * [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that
      -     * are relevant in a CA certificate.
      +     * are relevant in a CA certificate. If not specified, a default basic
      +     * constraints extension with `is_ca=false` will be added for leaf
      +     * certificates.
            * 
      * * @@ -6003,7 +6009,9 @@ public Builder setCaOptions( *
            * Optional. Describes options in this
            * [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that
      -     * are relevant in a CA certificate.
      +     * are relevant in a CA certificate. If not specified, a default basic
      +     * constraints extension with `is_ca=false` will be added for leaf
      +     * certificates.
            * 
      * * @@ -6028,7 +6036,9 @@ public Builder setCaOptions( *
            * Optional. Describes options in this
            * [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that
      -     * are relevant in a CA certificate.
      +     * are relevant in a CA certificate. If not specified, a default basic
      +     * constraints extension with `is_ca=false` will be added for leaf
      +     * certificates.
            * 
      * * @@ -6063,7 +6073,9 @@ public Builder mergeCaOptions( *
            * Optional. Describes options in this
            * [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that
      -     * are relevant in a CA certificate.
      +     * are relevant in a CA certificate. If not specified, a default basic
      +     * constraints extension with `is_ca=false` will be added for leaf
      +     * certificates.
            * 
      * * @@ -6087,7 +6099,9 @@ public Builder clearCaOptions() { *
            * Optional. Describes options in this
            * [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that
      -     * are relevant in a CA certificate.
      +     * are relevant in a CA certificate. If not specified, a default basic
      +     * constraints extension with `is_ca=false` will be added for leaf
      +     * certificates.
            * 
      * * @@ -6107,7 +6121,9 @@ public Builder clearCaOptions() { *
            * Optional. Describes options in this
            * [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that
      -     * are relevant in a CA certificate.
      +     * are relevant in a CA certificate. If not specified, a default basic
      +     * constraints extension with `is_ca=false` will be added for leaf
      +     * certificates.
            * 
      * * @@ -6131,7 +6147,9 @@ public Builder clearCaOptions() { *
            * Optional. Describes options in this
            * [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that
      -     * are relevant in a CA certificate.
      +     * are relevant in a CA certificate. If not specified, a default basic
      +     * constraints extension with `is_ca=false` will be added for leaf
      +     * certificates.
            * 
      * * diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509ParametersOrBuilder.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509ParametersOrBuilder.java index 66d43e4973f1..a94803cd8b11 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509ParametersOrBuilder.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509ParametersOrBuilder.java @@ -76,7 +76,9 @@ public interface X509ParametersOrBuilder *
          * Optional. Describes options in this
          * [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that
      -   * are relevant in a CA certificate.
      +   * are relevant in a CA certificate. If not specified, a default basic
      +   * constraints extension with `is_ca=false` will be added for leaf
      +   * certificates.
          * 
      * * @@ -93,7 +95,9 @@ public interface X509ParametersOrBuilder *
          * Optional. Describes options in this
          * [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that
      -   * are relevant in a CA certificate.
      +   * are relevant in a CA certificate. If not specified, a default basic
      +   * constraints extension with `is_ca=false` will be added for leaf
      +   * certificates.
          * 
      * * @@ -110,7 +114,9 @@ public interface X509ParametersOrBuilder *
          * Optional. Describes options in this
          * [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that
      -   * are relevant in a CA certificate.
      +   * are relevant in a CA certificate. If not specified, a default basic
      +   * constraints extension with `is_ca=false` will be added for leaf
      +   * certificates.
          * 
      * * diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/proto/google/cloud/security/privateca/v1/resources.proto b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/proto/google/cloud/security/privateca/v1/resources.proto index 32f60bda0c8a..15ed965e42ce 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/proto/google/cloud/security/privateca/v1/resources.proto +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/proto/google/cloud/security/privateca/v1/resources.proto @@ -22,7 +22,6 @@ import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; import "google/type/expr.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Security.PrivateCA.V1"; option go_package = "cloud.google.com/go/security/privateca/apiv1/privatecapb;privatecapb"; option java_multiple_files = true; @@ -180,10 +179,32 @@ message CertificateAuthority { EC_P384_SHA384 = 5; } - // Output only. The resource name for this + // User-defined URLs for accessing content published by this + // [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. + message UserDefinedAccessUrls { + // Optional. A list of URLs where the issuer CA certificate may be + // downloaded, which appears in the "Authority Information Access" extension + // in the certificate. If specified, the default [Cloud Storage + // URLs][google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.ca_certificate_access_url] + // will be omitted. + repeated string aia_issuing_certificate_urls = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A list of URLs where to obtain CRL information, i.e. + // the DistributionPoint.fullName described by + // https://tools.ietf.org/html/rfc5280#section-4.2.1.13. + // If specified, the default + // [Cloud Storage + // URLs][google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.crl_access_urls] + // will be omitted. + repeated string crl_access_urls = 2 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Identifier. The resource name for this // [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] // in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`. - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Required. Immutable. The // [Type][google.cloud.security.privateca.v1.CertificateAuthority.Type] of @@ -302,6 +323,18 @@ message CertificateAuthority { // Optional. Labels with user-defined metadata. map labels = 17 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. User-defined URLs for CA certificate and CRLs. The service does + // not publish content to these URLs. It is up to the user to mirror content + // to these URLs. + UserDefinedAccessUrls user_defined_access_urls = 18 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Reserved for future use. + bool satisfies_pzs = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzi = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; } // A [CaPool][google.cloud.security.privateca.v1.CaPool] represents a group of @@ -472,6 +505,16 @@ message CaPool { repeated AllowedKeyType allowed_key_types = 1 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The duration to backdate all certificates issued from this + // [CaPool][google.cloud.security.privateca.v1.CaPool]. If not set, the + // certificates will be issued with a not_before_time of the issuance time + // (i.e. the current time). If set, the certificates will be issued with a + // not_before_time of the issuance time minus the backdate_duration. The + // not_after_time will be adjusted to preserve the requested lifetime. The + // backdate_duration must be less than or equal to 48 hours. + google.protobuf.Duration backdate_duration = 7 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. The maximum lifetime allowed for issued // [Certificates][google.cloud.security.privateca.v1.Certificate]. Note that // if the issuing @@ -529,10 +572,10 @@ message CaPool { [(google.api.field_behavior) = OPTIONAL]; } - // Output only. The resource name for this + // Identifier. The resource name for this // [CaPool][google.cloud.security.privateca.v1.CaPool] in the format // `projects/*/locations/*/caPools/*`. - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Required. Immutable. The // [Tier][google.cloud.security.privateca.v1.CaPool.Tier] of this @@ -610,11 +653,11 @@ message CertificateRevocationList { SUPERSEDED = 2; } - // Output only. The resource name for this + // Identifier. The resource name for this // [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] // in the format `projects/*/locations/*/caPools/*certificateAuthorities/*/ // certificateRevocationLists/*`. - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Output only. The CRL sequence number that appears in pem_crl. int64 sequence_number = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -680,15 +723,10 @@ message Certificate { google.protobuf.Timestamp revocation_time = 2; } - // Output only. The resource name for this + // Identifier. The resource name for this // [Certificate][google.cloud.security.privateca.v1.Certificate] in the format // `projects/*/locations/*/caPools/*/certificates/*`. - string name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "privateca.googleapis.com/Certificate" - } - ]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // The config used to create a signed X.509 certificate. oneof certificate_config { @@ -782,15 +820,10 @@ message CertificateTemplate { pattern: "projects/{project}/locations/{location}/certificateTemplates/{certificate_template}" }; - // Output only. The resource name for this + // Identifier. The resource name for this // [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] // in the format `projects/*/locations/*/certificateTemplates/*`. - string name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "privateca.googleapis.com/CertificateTemplate" - } - ]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Optional. The maximum lifetime allowed for issued // [Certificates][google.cloud.security.privateca.v1.Certificate] that use @@ -873,19 +906,19 @@ message CertificateTemplate { // usage fields, fields specific to CA certificates, certificate policy // extensions and custom extensions. message X509Parameters { - // Describes values that are relevant in a CA certificate. + // Describes the X.509 basic constraints extension, per [RFC 5280 + // section 4.2.1.9](https://tools.ietf.org/html/rfc5280#section-4.2.1.9) message CaOptions { - // Optional. Refers to the "CA" X.509 extension, which is a boolean value. - // When this value is missing, the extension will be omitted from the CA - // certificate. + // Optional. Refers to the "CA" boolean field in the X.509 extension. + // When this value is missing, the basic constraints extension will be + // omitted from the certificate. optional bool is_ca = 1 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Refers to the path length restriction X.509 extension. For a CA - // certificate, this value describes the depth of subordinate CA - // certificates that are allowed. - // If this value is less than 0, the request will fail. - // If this value is missing, the max path length will be omitted from the - // CA certificate. + // Optional. Refers to the path length constraint field in the X.509 + // extension. For a CA certificate, this value describes the depth of + // subordinate CA certificates that are allowed. If this value is less than + // 0, the request will fail. If this value is missing, the max path length + // will be omitted from the certificate. optional int32 max_issuer_path_length = 2 [(google.api.field_behavior) = OPTIONAL]; } @@ -951,7 +984,9 @@ message X509Parameters { // Optional. Describes options in this // [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that - // are relevant in a CA certificate. + // are relevant in a CA certificate. If not specified, a default basic + // constraints extension with `is_ca=false` will be added for leaf + // certificates. CaOptions ca_options = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. Describes the X.509 certificate policy object identifiers, per @@ -1163,6 +1198,12 @@ message CertificateDescription { // The hash of the x.509 certificate. CertificateFingerprint cert_fingerprint = 8; + + // The hash of the pre-signed certificate, which will be signed by the CA. + // Corresponds to the TBS Certificate in + // https://tools.ietf.org/html/rfc5280#section-4.1.2. The field will always be + // populated. + string tbs_certificate_digest = 9; } // An [ObjectId][google.cloud.security.privateca.v1.ObjectId] specifies an @@ -1267,6 +1308,31 @@ message KeyUsage { repeated ObjectId unknown_extended_key_usages = 3; } +// [AttributeTypeAndValue][google.cloud.security.privateca.v1.AttributeTypeAndValue] +// specifies an attribute type and value. It can use either a OID or enum value +// to specify the attribute type. +message AttributeTypeAndValue { + // The attribute type for the attribute and value pair. + oneof attribute_type { + // The attribute type of the attribute and value pair. + AttributeType type = 1; + + // Object ID for an attribute type of an attribute and value pair. + ObjectId object_id = 2; + } + + // The value for the attribute type. + string value = 3; +} + +// [RelativeDistinguishedName][google.cloud.security.privateca.v1.RelativeDistinguishedName] +// specifies a relative distinguished name which will be used to build a +// distinguished name. +message RelativeDistinguishedName { + // Attributes describes the attribute value assertions in the RDN. + repeated AttributeTypeAndValue attributes = 1; +} + // [Subject][google.cloud.security.privateca.v1.Subject] describes parts of a // distinguished name that, in turn, describes the subject of the certificate. message Subject { @@ -1293,6 +1359,9 @@ message Subject { // The postal code of the subject. string postal_code = 8; + + // This field can be used in place of the named subject fields. + repeated RelativeDistinguishedName rdn_sequence = 9; } // [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] @@ -1419,6 +1488,37 @@ message CertificateExtensionConstraints { [(google.api.field_behavior) = OPTIONAL]; } +// [AttributeType][google.cloud.security.privateca.v1.AttributeType] specifies +// the type of Attribute in a relative distinguished name. +enum AttributeType { + // Attribute type is unspecified. + ATTRIBUTE_TYPE_UNSPECIFIED = 0; + + // The "common name" of the subject. + COMMON_NAME = 1; + + // The country code of the subject. + COUNTRY_CODE = 2; + + // The organization of the subject. + ORGANIZATION = 3; + + // The organizational unit of the subject. + ORGANIZATIONAL_UNIT = 4; + + // The locality or city of the subject. + LOCALITY = 5; + + // The province, territory, or regional state of the subject. + PROVINCE = 6; + + // The street address of the subject. + STREET_ADDRESS = 7; + + // The postal code of the subject. + POSTAL_CODE = 8; +} + // A [RevocationReason][google.cloud.security.privateca.v1.RevocationReason] // indicates whether a // [Certificate][google.cloud.security.privateca.v1.Certificate] has been @@ -1484,6 +1584,17 @@ enum SubjectRequestMode { // the `privateca.certificates.create` permission. DEFAULT = 1; + // A mode used to get an accurate representation of the Subject + // field's distinguished name. Indicates that the certificate's + // [Subject][google.cloud.security.privateca.v1.Subject] and/or + // [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] are + // specified in the certificate request. When parsing a PEM CSR this mode will + // maintain the sequence of RDNs found in the CSR's subject field in the + // issued [Certificate][google.cloud.security.privateca.v1.Certificate]. This + // mode requires the caller to have the `privateca.certificates.create` + // permission. + RDN_SEQUENCE = 3; + // A mode reserved for special cases. Indicates that the certificate should // have one SPIFFE // [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] set diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/proto/google/cloud/security/privateca/v1/service.proto b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/proto/google/cloud/security/privateca/v1/service.proto index 3eb390d7e282..9054e267687e 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/proto/google/cloud/security/privateca/v1/service.proto +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/proto/google/cloud/security/privateca/v1/service.proto @@ -19,6 +19,7 @@ package google.cloud.security.privateca.v1; import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; import "google/api/resource.proto"; import "google/cloud/security/privateca/v1/resources.proto"; import "google/longrunning/operations.proto"; @@ -26,7 +27,6 @@ import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Security.PrivateCA.V1"; option go_package = "cloud.google.com/go/security/privateca/apiv1/privatecapb;privatecapb"; option java_multiple_files = true; @@ -431,8 +431,9 @@ message CreateCertificateRequest { // Optional. It must be unique within a location and match the regular // expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a // [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] - // in the Enterprise [CertificateAuthority.Tier][], but is optional and its - // value is ignored otherwise. + // in the Enterprise + // [CertificateAuthority.tier][google.cloud.security.privateca.v1.CertificateAuthority.tier], + // but is optional and its value is ignored otherwise. string certificate_id = 2 [(google.api.field_behavior) = OPTIONAL]; // Required. A [Certificate][google.cloud.security.privateca.v1.Certificate] @@ -546,8 +547,8 @@ message ListCertificatesResponse { repeated Certificate certificates = 1; // A token to retrieve next page of results. Pass this value in - // [ListCertificatesRequest.next_page_token][] to retrieve the - // next page of results. + // [ListCertificatesRequest.page_token][google.cloud.security.privateca.v1.ListCertificatesRequest.page_token] + // to retrieve the next page of results. string next_page_token = 2; // A list of locations (e.g. "us-west1") that could not be reached. @@ -650,7 +651,10 @@ message ActivateCertificateAuthorityRequest { // // The request ID must be a valid UUID with the exception that zero UUID is // not supported (00000000-0000-0000-0000-000000000000). - string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; + string request_id = 4 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; } // Request message for @@ -719,7 +723,10 @@ message DisableCertificateAuthorityRequest { // // The request ID must be a valid UUID with the exception that zero UUID is // not supported (00000000-0000-0000-0000-000000000000). - string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; // Optional. This field allows this CA to be disabled even if it's being // depended on by another resource. However, doing so may result in unintended @@ -754,7 +761,10 @@ message EnableCertificateAuthorityRequest { // // The request ID must be a valid UUID with the exception that zero UUID is // not supported (00000000-0000-0000-0000-000000000000). - string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; } // Request message for @@ -836,8 +846,8 @@ message ListCertificateAuthoritiesResponse { repeated CertificateAuthority certificate_authorities = 1; // A token to retrieve next page of results. Pass this value in - // [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next - // page of results. + // [ListCertificateAuthoritiesRequest.page_token][google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest.page_token] + // to retrieve the next page of results. string next_page_token = 2; // A list of locations (e.g. "us-west1") that could not be reached. @@ -870,7 +880,10 @@ message UndeleteCertificateAuthorityRequest { // // The request ID must be a valid UUID with the exception that zero UUID is // not supported (00000000-0000-0000-0000-000000000000). - string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; } // Request message for @@ -899,7 +912,10 @@ message DeleteCertificateAuthorityRequest { // // The request ID must be a valid UUID with the exception that zero UUID is // not supported (00000000-0000-0000-0000-000000000000). - string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; // Optional. This field allows the CA to be deleted even if the CA has // active certs. Active certs include both unrevoked and unexpired certs. @@ -943,7 +959,10 @@ message UpdateCertificateAuthorityRequest { // // The request ID must be a valid UUID with the exception that zero UUID is // not supported (00000000-0000-0000-0000-000000000000). - string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; + string request_id = 3 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; } // Request message for @@ -980,7 +999,10 @@ message CreateCaPoolRequest { // // The request ID must be a valid UUID with the exception that zero UUID is // not supported (00000000-0000-0000-0000-000000000000). - string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; + string request_id = 4 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; } // Request message for @@ -1007,7 +1029,10 @@ message UpdateCaPoolRequest { // // The request ID must be a valid UUID with the exception that zero UUID is // not supported (00000000-0000-0000-0000-000000000000). - string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; + string request_id = 3 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; } // Request message for @@ -1036,7 +1061,10 @@ message DeleteCaPoolRequest { // // The request ID must be a valid UUID with the exception that zero UUID is // not supported (00000000-0000-0000-0000-000000000000). - string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; // Optional. This field allows this pool to be deleted even if it's being // depended on by another resource. However, doing so may result in unintended @@ -1141,8 +1169,8 @@ message ListCaPoolsResponse { repeated CaPool ca_pools = 1; // A token to retrieve next page of results. Pass this value in - // [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next - // page of results. + // [ListCertificateAuthoritiesRequest.page_token][google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest.page_token] + // to retrieve the next page of results. string next_page_token = 2; // A list of locations (e.g. "us-west1") that could not be reached. @@ -1207,8 +1235,8 @@ message ListCertificateRevocationListsResponse { repeated CertificateRevocationList certificate_revocation_lists = 1; // A token to retrieve next page of results. Pass this value in - // [ListCertificateRevocationListsRequest.next_page_token][] to retrieve the - // next page of results. + // [ListCertificateRevocationListsRequest.page_token][google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest.page_token] + // to retrieve the next page of results. string next_page_token = 2; // A list of locations (e.g. "us-west1") that could not be reached. @@ -1280,7 +1308,10 @@ message CreateCertificateTemplateRequest { // // The request ID must be a valid UUID with the exception that zero UUID is // not supported (00000000-0000-0000-0000-000000000000). - string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; + string request_id = 4 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; } // Request message for @@ -1309,7 +1340,10 @@ message DeleteCertificateTemplateRequest { // // The request ID must be a valid UUID with the exception that zero UUID is // not supported (00000000-0000-0000-0000-000000000000). - string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; } // Request message for @@ -1369,8 +1403,8 @@ message ListCertificateTemplatesResponse { repeated CertificateTemplate certificate_templates = 1; // A token to retrieve next page of results. Pass this value in - // [ListCertificateTemplatesRequest.next_page_token][] to retrieve - // the next page of results. + // [ListCertificateTemplatesRequest.page_token][google.cloud.security.privateca.v1.ListCertificateTemplatesRequest.page_token] + // to retrieve the next page of results. string next_page_token = 2; // A list of locations (e.g. "us-west1") that could not be reached. @@ -1403,7 +1437,10 @@ message UpdateCertificateTemplateRequest { // // The request ID must be a valid UUID with the exception that zero UUID is // not supported (00000000-0000-0000-0000-000000000000). - string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; + string request_id = 3 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; } // Represents the metadata of the long-running operation. @@ -1427,9 +1464,10 @@ message OperationMetadata { // Output only. Identifies whether the user has requested cancellation // of the operation. Operations that have successfully been cancelled - // have [Operation.error][] value with a - // [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - // `Code.CANCELLED`. + // have + // [google.longrunning.Operation.error][google.longrunning.Operation.error] + // value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, + // corresponding to `Code.CANCELLED`. bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. API version used to start the operation. diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1beta1/pom.xml b/java-security-private-ca/proto-google-cloud-security-private-ca-v1beta1/pom.xml index 1c942819294e..62e9b22113a0 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1beta1/pom.xml +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-security-private-ca-v1beta1 - 0.76.0 + 0.77.0 proto-google-cloud-security-private-ca-v1beta1 Proto library for google-cloud-security-private-ca com.google.cloud google-cloud-security-private-ca-parent - 2.69.0 + 2.70.0 diff --git a/java-securitycenter-settings/CHANGELOG.md b/java-securitycenter-settings/CHANGELOG.md index e6272e803967..1f3c045227dc 100644 --- a/java-securitycenter-settings/CHANGELOG.md +++ b/java-securitycenter-settings/CHANGELOG.md @@ -1,5 +1,16 @@ # Changelog +## 0.71.0 (2025-07-11) + +### Features + +* Add AffectedResources proto ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.70.0 (2025-06-25) ### Dependencies diff --git a/java-securitycenter-settings/README.md b/java-securitycenter-settings/README.md index 8c3b0ec8d47d..abb592c4cda1 100644 --- a/java-securitycenter-settings/README.md +++ b/java-securitycenter-settings/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-securitycenter-settings - 0.69.0 + 0.70.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securitycenter-settings:0.69.0' +implementation 'com.google.cloud:google-cloud-securitycenter-settings:0.70.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter-settings" % "0.69.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter-settings" % "0.70.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-securitycenter-settings.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter-settings/0.69.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter-settings/0.70.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/google-cloud-securitycenter-settings-bom/pom.xml b/java-securitycenter-settings/google-cloud-securitycenter-settings-bom/pom.xml index cc7ea2f9bbe2..abb193033250 100644 --- a/java-securitycenter-settings/google-cloud-securitycenter-settings-bom/pom.xml +++ b/java-securitycenter-settings/google-cloud-securitycenter-settings-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-securitycenter-settings-bom - 0.70.0 + 0.71.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-securitycenter-settings - 0.70.0 + 0.71.0 com.google.api.grpc grpc-google-cloud-securitycenter-settings-v1beta1 - 0.70.0 + 0.71.0 com.google.api.grpc proto-google-cloud-securitycenter-settings-v1beta1 - 0.70.0 + 0.71.0 diff --git a/java-securitycenter-settings/google-cloud-securitycenter-settings/pom.xml b/java-securitycenter-settings/google-cloud-securitycenter-settings/pom.xml index 184eddeaf7ff..fb6ae22b27b8 100644 --- a/java-securitycenter-settings/google-cloud-securitycenter-settings/pom.xml +++ b/java-securitycenter-settings/google-cloud-securitycenter-settings/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-securitycenter-settings - 0.70.0 + 0.71.0 jar Google Security Command Center Settings API 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. com.google.cloud google-cloud-securitycenter-settings-parent - 0.70.0 + 0.71.0 google-cloud-securitycenter-settings diff --git a/java-securitycenter-settings/grpc-google-cloud-securitycenter-settings-v1beta1/pom.xml b/java-securitycenter-settings/grpc-google-cloud-securitycenter-settings-v1beta1/pom.xml index 6ccd64780a03..9795dde63564 100644 --- a/java-securitycenter-settings/grpc-google-cloud-securitycenter-settings-v1beta1/pom.xml +++ b/java-securitycenter-settings/grpc-google-cloud-securitycenter-settings-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-securitycenter-settings-v1beta1 - 0.70.0 + 0.71.0 grpc-google-cloud-securitycenter-settings-v1beta1 GRPC library for grpc-google-cloud-securitycenter-settings-v1beta1 com.google.cloud google-cloud-securitycenter-settings-parent - 0.70.0 + 0.71.0 diff --git a/java-securitycenter-settings/pom.xml b/java-securitycenter-settings/pom.xml index d55675395c99..d01770f0094d 100644 --- a/java-securitycenter-settings/pom.xml +++ b/java-securitycenter-settings/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-securitycenter-settings-parent pom - 0.70.0 + 0.71.0 Google Security Command Center Settings API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-securitycenter-settings - 0.70.0 + 0.71.0 com.google.api.grpc proto-google-cloud-securitycenter-settings-v1beta1 - 0.70.0 + 0.71.0 com.google.api.grpc grpc-google-cloud-securitycenter-settings-v1beta1 - 0.70.0 + 0.71.0 diff --git a/java-securitycenter-settings/proto-google-cloud-securitycenter-settings-v1beta1/pom.xml b/java-securitycenter-settings/proto-google-cloud-securitycenter-settings-v1beta1/pom.xml index 268b12b940c6..6ce395d95aa6 100644 --- a/java-securitycenter-settings/proto-google-cloud-securitycenter-settings-v1beta1/pom.xml +++ b/java-securitycenter-settings/proto-google-cloud-securitycenter-settings-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-securitycenter-settings-v1beta1 - 0.70.0 + 0.71.0 proto-google-cloud-securitycenter-settings-v1beta1 PROTO library for proto-google-cloud-securitycenter-settings-v1beta1 com.google.cloud google-cloud-securitycenter-settings-parent - 0.70.0 + 0.71.0 diff --git a/java-securitycenter/CHANGELOG.md b/java-securitycenter/CHANGELOG.md index 28a8d712cee2..5a52eb60c01e 100644 --- a/java-securitycenter/CHANGELOG.md +++ b/java-securitycenter/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## 2.76.0 (2025-07-11) + +### Features + +* Add AffectedResources proto ([961af18](https://github.com/googleapis/google-cloud-java/commit/961af1881e5332f33a231baef0ba291b3648b038)) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.75.0 (2025-06-25) ### Dependencies diff --git a/java-securitycenter/README.md b/java-securitycenter/README.md index 40df82f57320..8b811dec34fa 100644 --- a/java-securitycenter/README.md +++ b/java-securitycenter/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-securitycenter - 2.74.0 + 2.75.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securitycenter:2.74.0' +implementation 'com.google.cloud:google-cloud-securitycenter:2.75.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter" % "2.74.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter" % "2.75.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.74.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter/2.75.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/google-cloud-securitycenter-bom/pom.xml b/java-securitycenter/google-cloud-securitycenter-bom/pom.xml index 65df7f4a0ae4..a93258dde10a 100644 --- a/java-securitycenter/google-cloud-securitycenter-bom/pom.xml +++ b/java-securitycenter/google-cloud-securitycenter-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-securitycenter-bom - 2.75.0 + 2.76.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -23,47 +23,47 @@ com.google.cloud google-cloud-securitycenter - 2.75.0 + 2.76.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1 - 2.75.0 + 2.76.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1beta1 - 0.170.0 + 0.171.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1p1beta1 - 0.170.0 + 0.171.0 com.google.api.grpc grpc-google-cloud-securitycenter-v2 - 2.75.0 + 2.76.0 com.google.api.grpc proto-google-cloud-securitycenter-v1 - 2.75.0 + 2.76.0 com.google.api.grpc proto-google-cloud-securitycenter-v1beta1 - 0.170.0 + 0.171.0 com.google.api.grpc proto-google-cloud-securitycenter-v1p1beta1 - 0.170.0 + 0.171.0 com.google.api.grpc proto-google-cloud-securitycenter-v2 - 2.75.0 + 2.76.0 diff --git a/java-securitycenter/google-cloud-securitycenter/pom.xml b/java-securitycenter/google-cloud-securitycenter/pom.xml index e6ab479926f8..3197e8ddbf45 100644 --- a/java-securitycenter/google-cloud-securitycenter/pom.xml +++ b/java-securitycenter/google-cloud-securitycenter/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-securitycenter - 2.75.0 + 2.76.0 jar Google Cloud Security Command Center Java idiomatic client for Google Cloud Security Command Center com.google.cloud google-cloud-securitycenter-parent - 2.75.0 + 2.76.0 google-cloud-securitycenter diff --git a/java-securitycenter/google-cloud-securitycenter/src/main/resources/META-INF/native-image/com.google.cloud.securitycenter.v2/reflect-config.json b/java-securitycenter/google-cloud-securitycenter/src/main/resources/META-INF/native-image/com.google.cloud.securitycenter.v2/reflect-config.json index c243e310c3f9..8babd24206fa 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/main/resources/META-INF/native-image/com.google.cloud.securitycenter.v2/reflect-config.json +++ b/java-securitycenter/google-cloud-securitycenter/src/main/resources/META-INF/native-image/com.google.cloud.securitycenter.v2/reflect-config.json @@ -485,6 +485,69 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.securitycenter.v2.AffectedResources", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securitycenter.v2.AffectedResources$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securitycenter.v2.AiModel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securitycenter.v2.AiModel$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securitycenter.v2.AiModel$DeploymentPlatform", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securitycenter.v2.Allowed", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securitycenter.v2.Allowed$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.securitycenter.v2.Application", "queryAllDeclaredConstructors": true, @@ -863,6 +926,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.securitycenter.v2.BigQueryDestination", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securitycenter.v2.BigQueryDestination$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.securitycenter.v2.BigQueryExport", "queryAllDeclaredConstructors": true, @@ -926,6 +1007,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.securitycenter.v2.Chokepoint", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securitycenter.v2.Chokepoint$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.securitycenter.v2.CloudArmor", "queryAllDeclaredConstructors": true, @@ -1331,6 +1430,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.securitycenter.v2.Cwe", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securitycenter.v2.Cwe$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.securitycenter.v2.DataAccessEvent", "queryAllDeclaredConstructors": true, @@ -1502,6 +1619,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.securitycenter.v2.Denied", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securitycenter.v2.Denied$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.securitycenter.v2.Disk", "queryAllDeclaredConstructors": true, @@ -1574,6 +1709,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.securitycenter.v2.ExportFindingsMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securitycenter.v2.ExportFindingsMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securitycenter.v2.ExportFindingsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securitycenter.v2.ExportFindingsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.securitycenter.v2.ExternalSystem", "queryAllDeclaredConstructors": true, @@ -1646,6 +1817,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.securitycenter.v2.File$FileOperation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securitycenter.v2.File$FileOperation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securitycenter.v2.File$FileOperation$OperationType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.securitycenter.v2.Finding", "queryAllDeclaredConstructors": true, @@ -2141,6 +2339,96 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.securitycenter.v2.IpRule", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securitycenter.v2.IpRule$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securitycenter.v2.IpRule$PortRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securitycenter.v2.IpRule$PortRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securitycenter.v2.IpRules", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securitycenter.v2.IpRules$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securitycenter.v2.IpRules$Direction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securitycenter.v2.Job", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securitycenter.v2.Job$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securitycenter.v2.JobState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.securitycenter.v2.KernelRootkit", "queryAllDeclaredConstructors": true, @@ -2780,6 +3068,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.securitycenter.v2.Network", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securitycenter.v2.Network$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.securitycenter.v2.Notebook", "queryAllDeclaredConstructors": true, @@ -3437,6 +3743,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.securitycenter.v2.VertexAi", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securitycenter.v2.VertexAi$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securitycenter.v2.VertexAi$Dataset", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securitycenter.v2.VertexAi$Dataset$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securitycenter.v2.VertexAi$Pipeline", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securitycenter.v2.VertexAi$Pipeline$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.securitycenter.v2.Vulnerability", "queryAllDeclaredConstructors": true, diff --git a/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v2/SecurityCenterClientHttpJsonTest.java b/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v2/SecurityCenterClientHttpJsonTest.java index 8eb53abb52c0..e6da3dffb379 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v2/SecurityCenterClientHttpJsonTest.java +++ b/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v2/SecurityCenterClientHttpJsonTest.java @@ -611,7 +611,9 @@ public void createFindingTest() throws Exception { .setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build()) .setKernelRootkit(KernelRootkit.newBuilder().build()) .addAllOrgPolicies(new ArrayList()) + .setJob(Job.newBuilder().build()) .setApplication(Application.newBuilder().build()) + .setIpRules(IpRules.newBuilder().build()) .setBackupDisasterRecovery(BackupDisasterRecovery.newBuilder().build()) .setSecurityPosture(SecurityPosture.newBuilder().build()) .addAllLogEntries(new ArrayList()) @@ -623,7 +625,12 @@ public void createFindingTest() throws Exception { .setDisk(Disk.newBuilder().build()) .addAllDataAccessEvents(new ArrayList()) .addAllDataFlowEvents(new ArrayList()) + .addAllNetworks(new ArrayList()) .addAllDataRetentionDeletionEvents(new ArrayList()) + .setAffectedResources(AffectedResources.newBuilder().build()) + .setAiModel(AiModel.newBuilder().build()) + .setChokepoint(Chokepoint.newBuilder().build()) + .setVertexAi(VertexAi.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -711,7 +718,9 @@ public void createFindingTest2() throws Exception { .setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build()) .setKernelRootkit(KernelRootkit.newBuilder().build()) .addAllOrgPolicies(new ArrayList()) + .setJob(Job.newBuilder().build()) .setApplication(Application.newBuilder().build()) + .setIpRules(IpRules.newBuilder().build()) .setBackupDisasterRecovery(BackupDisasterRecovery.newBuilder().build()) .setSecurityPosture(SecurityPosture.newBuilder().build()) .addAllLogEntries(new ArrayList()) @@ -723,7 +732,12 @@ public void createFindingTest2() throws Exception { .setDisk(Disk.newBuilder().build()) .addAllDataAccessEvents(new ArrayList()) .addAllDataFlowEvents(new ArrayList()) + .addAllNetworks(new ArrayList()) .addAllDataRetentionDeletionEvents(new ArrayList()) + .setAffectedResources(AffectedResources.newBuilder().build()) + .setAiModel(AiModel.newBuilder().build()) + .setChokepoint(Chokepoint.newBuilder().build()) + .setVertexAi(VertexAi.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -1170,6 +1184,7 @@ public void createNotificationConfigTest() throws Exception { .setDescription("description-1724546052") .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") + .setUpdateTime(Timestamp.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -1225,6 +1240,7 @@ public void createNotificationConfigTest2() throws Exception { .setDescription("description-1724546052") .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") + .setUpdateTime(Timestamp.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -1280,6 +1296,7 @@ public void createNotificationConfigTest3() throws Exception { .setDescription("description-1724546052") .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") + .setUpdateTime(Timestamp.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -1335,6 +1352,7 @@ public void createNotificationConfigTest4() throws Exception { .setDescription("description-1724546052") .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") + .setUpdateTime(Timestamp.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -2350,6 +2368,7 @@ public void getNotificationConfigTest() throws Exception { .setDescription("description-1724546052") .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") + .setUpdateTime(Timestamp.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -2404,6 +2423,7 @@ public void getNotificationConfigTest2() throws Exception { .setDescription("description-1724546052") .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") + .setUpdateTime(Timestamp.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -4274,7 +4294,9 @@ public void setFindingStateTest() throws Exception { .setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build()) .setKernelRootkit(KernelRootkit.newBuilder().build()) .addAllOrgPolicies(new ArrayList()) + .setJob(Job.newBuilder().build()) .setApplication(Application.newBuilder().build()) + .setIpRules(IpRules.newBuilder().build()) .setBackupDisasterRecovery(BackupDisasterRecovery.newBuilder().build()) .setSecurityPosture(SecurityPosture.newBuilder().build()) .addAllLogEntries(new ArrayList()) @@ -4286,7 +4308,12 @@ public void setFindingStateTest() throws Exception { .setDisk(Disk.newBuilder().build()) .addAllDataAccessEvents(new ArrayList()) .addAllDataFlowEvents(new ArrayList()) + .addAllNetworks(new ArrayList()) .addAllDataRetentionDeletionEvents(new ArrayList()) + .setAffectedResources(AffectedResources.newBuilder().build()) + .setAiModel(AiModel.newBuilder().build()) + .setChokepoint(Chokepoint.newBuilder().build()) + .setVertexAi(VertexAi.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -4374,7 +4401,9 @@ public void setFindingStateTest2() throws Exception { .setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build()) .setKernelRootkit(KernelRootkit.newBuilder().build()) .addAllOrgPolicies(new ArrayList()) + .setJob(Job.newBuilder().build()) .setApplication(Application.newBuilder().build()) + .setIpRules(IpRules.newBuilder().build()) .setBackupDisasterRecovery(BackupDisasterRecovery.newBuilder().build()) .setSecurityPosture(SecurityPosture.newBuilder().build()) .addAllLogEntries(new ArrayList()) @@ -4386,7 +4415,12 @@ public void setFindingStateTest2() throws Exception { .setDisk(Disk.newBuilder().build()) .addAllDataAccessEvents(new ArrayList()) .addAllDataFlowEvents(new ArrayList()) + .addAllNetworks(new ArrayList()) .addAllDataRetentionDeletionEvents(new ArrayList()) + .setAffectedResources(AffectedResources.newBuilder().build()) + .setAiModel(AiModel.newBuilder().build()) + .setChokepoint(Chokepoint.newBuilder().build()) + .setVertexAi(VertexAi.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -4570,7 +4604,9 @@ public void setMuteTest() throws Exception { .setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build()) .setKernelRootkit(KernelRootkit.newBuilder().build()) .addAllOrgPolicies(new ArrayList()) + .setJob(Job.newBuilder().build()) .setApplication(Application.newBuilder().build()) + .setIpRules(IpRules.newBuilder().build()) .setBackupDisasterRecovery(BackupDisasterRecovery.newBuilder().build()) .setSecurityPosture(SecurityPosture.newBuilder().build()) .addAllLogEntries(new ArrayList()) @@ -4582,7 +4618,12 @@ public void setMuteTest() throws Exception { .setDisk(Disk.newBuilder().build()) .addAllDataAccessEvents(new ArrayList()) .addAllDataFlowEvents(new ArrayList()) + .addAllNetworks(new ArrayList()) .addAllDataRetentionDeletionEvents(new ArrayList()) + .setAffectedResources(AffectedResources.newBuilder().build()) + .setAiModel(AiModel.newBuilder().build()) + .setChokepoint(Chokepoint.newBuilder().build()) + .setVertexAi(VertexAi.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -4670,7 +4711,9 @@ public void setMuteTest2() throws Exception { .setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build()) .setKernelRootkit(KernelRootkit.newBuilder().build()) .addAllOrgPolicies(new ArrayList()) + .setJob(Job.newBuilder().build()) .setApplication(Application.newBuilder().build()) + .setIpRules(IpRules.newBuilder().build()) .setBackupDisasterRecovery(BackupDisasterRecovery.newBuilder().build()) .setSecurityPosture(SecurityPosture.newBuilder().build()) .addAllLogEntries(new ArrayList()) @@ -4682,7 +4725,12 @@ public void setMuteTest2() throws Exception { .setDisk(Disk.newBuilder().build()) .addAllDataAccessEvents(new ArrayList()) .addAllDataFlowEvents(new ArrayList()) + .addAllNetworks(new ArrayList()) .addAllDataRetentionDeletionEvents(new ArrayList()) + .setAffectedResources(AffectedResources.newBuilder().build()) + .setAiModel(AiModel.newBuilder().build()) + .setChokepoint(Chokepoint.newBuilder().build()) + .setVertexAi(VertexAi.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -5022,7 +5070,9 @@ public void updateFindingTest() throws Exception { .setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build()) .setKernelRootkit(KernelRootkit.newBuilder().build()) .addAllOrgPolicies(new ArrayList()) + .setJob(Job.newBuilder().build()) .setApplication(Application.newBuilder().build()) + .setIpRules(IpRules.newBuilder().build()) .setBackupDisasterRecovery(BackupDisasterRecovery.newBuilder().build()) .setSecurityPosture(SecurityPosture.newBuilder().build()) .addAllLogEntries(new ArrayList()) @@ -5034,7 +5084,12 @@ public void updateFindingTest() throws Exception { .setDisk(Disk.newBuilder().build()) .addAllDataAccessEvents(new ArrayList()) .addAllDataFlowEvents(new ArrayList()) + .addAllNetworks(new ArrayList()) .addAllDataRetentionDeletionEvents(new ArrayList()) + .setAffectedResources(AffectedResources.newBuilder().build()) + .setAiModel(AiModel.newBuilder().build()) + .setChokepoint(Chokepoint.newBuilder().build()) + .setVertexAi(VertexAi.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -5080,7 +5135,9 @@ public void updateFindingTest() throws Exception { .setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build()) .setKernelRootkit(KernelRootkit.newBuilder().build()) .addAllOrgPolicies(new ArrayList()) + .setJob(Job.newBuilder().build()) .setApplication(Application.newBuilder().build()) + .setIpRules(IpRules.newBuilder().build()) .setBackupDisasterRecovery(BackupDisasterRecovery.newBuilder().build()) .setSecurityPosture(SecurityPosture.newBuilder().build()) .addAllLogEntries(new ArrayList()) @@ -5092,7 +5149,12 @@ public void updateFindingTest() throws Exception { .setDisk(Disk.newBuilder().build()) .addAllDataAccessEvents(new ArrayList()) .addAllDataFlowEvents(new ArrayList()) + .addAllNetworks(new ArrayList()) .addAllDataRetentionDeletionEvents(new ArrayList()) + .setAffectedResources(AffectedResources.newBuilder().build()) + .setAiModel(AiModel.newBuilder().build()) + .setChokepoint(Chokepoint.newBuilder().build()) + .setVertexAi(VertexAi.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -5164,7 +5226,9 @@ public void updateFindingExceptionTest() throws Exception { .setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build()) .setKernelRootkit(KernelRootkit.newBuilder().build()) .addAllOrgPolicies(new ArrayList()) + .setJob(Job.newBuilder().build()) .setApplication(Application.newBuilder().build()) + .setIpRules(IpRules.newBuilder().build()) .setBackupDisasterRecovery(BackupDisasterRecovery.newBuilder().build()) .setSecurityPosture(SecurityPosture.newBuilder().build()) .addAllLogEntries(new ArrayList()) @@ -5176,7 +5240,12 @@ public void updateFindingExceptionTest() throws Exception { .setDisk(Disk.newBuilder().build()) .addAllDataAccessEvents(new ArrayList()) .addAllDataFlowEvents(new ArrayList()) + .addAllNetworks(new ArrayList()) .addAllDataRetentionDeletionEvents(new ArrayList()) + .setAffectedResources(AffectedResources.newBuilder().build()) + .setAiModel(AiModel.newBuilder().build()) + .setChokepoint(Chokepoint.newBuilder().build()) + .setVertexAi(VertexAi.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateFinding(finding, updateMask); @@ -5273,6 +5342,7 @@ public void updateNotificationConfigTest() throws Exception { .setDescription("description-1724546052") .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") + .setUpdateTime(Timestamp.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -5285,6 +5355,7 @@ public void updateNotificationConfigTest() throws Exception { .setDescription("description-1724546052") .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") + .setUpdateTime(Timestamp.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -5324,6 +5395,7 @@ public void updateNotificationConfigExceptionTest() throws Exception { .setDescription("description-1724546052") .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") + .setUpdateTime(Timestamp.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateNotificationConfig(notificationConfig, updateMask); diff --git a/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v2/SecurityCenterClientTest.java b/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v2/SecurityCenterClientTest.java index 19aa4c225f61..7cb25523743d 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v2/SecurityCenterClientTest.java +++ b/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v2/SecurityCenterClientTest.java @@ -588,7 +588,9 @@ public void createFindingTest() throws Exception { .setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build()) .setKernelRootkit(KernelRootkit.newBuilder().build()) .addAllOrgPolicies(new ArrayList()) + .setJob(Job.newBuilder().build()) .setApplication(Application.newBuilder().build()) + .setIpRules(IpRules.newBuilder().build()) .setBackupDisasterRecovery(BackupDisasterRecovery.newBuilder().build()) .setSecurityPosture(SecurityPosture.newBuilder().build()) .addAllLogEntries(new ArrayList()) @@ -600,7 +602,12 @@ public void createFindingTest() throws Exception { .setDisk(Disk.newBuilder().build()) .addAllDataAccessEvents(new ArrayList()) .addAllDataFlowEvents(new ArrayList()) + .addAllNetworks(new ArrayList()) .addAllDataRetentionDeletionEvents(new ArrayList()) + .setAffectedResources(AffectedResources.newBuilder().build()) + .setAiModel(AiModel.newBuilder().build()) + .setChokepoint(Chokepoint.newBuilder().build()) + .setVertexAi(VertexAi.newBuilder().build()) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -684,7 +691,9 @@ public void createFindingTest2() throws Exception { .setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build()) .setKernelRootkit(KernelRootkit.newBuilder().build()) .addAllOrgPolicies(new ArrayList()) + .setJob(Job.newBuilder().build()) .setApplication(Application.newBuilder().build()) + .setIpRules(IpRules.newBuilder().build()) .setBackupDisasterRecovery(BackupDisasterRecovery.newBuilder().build()) .setSecurityPosture(SecurityPosture.newBuilder().build()) .addAllLogEntries(new ArrayList()) @@ -696,7 +705,12 @@ public void createFindingTest2() throws Exception { .setDisk(Disk.newBuilder().build()) .addAllDataAccessEvents(new ArrayList()) .addAllDataFlowEvents(new ArrayList()) + .addAllNetworks(new ArrayList()) .addAllDataRetentionDeletionEvents(new ArrayList()) + .setAffectedResources(AffectedResources.newBuilder().build()) + .setAiModel(AiModel.newBuilder().build()) + .setChokepoint(Chokepoint.newBuilder().build()) + .setVertexAi(VertexAi.newBuilder().build()) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -1111,6 +1125,7 @@ public void createNotificationConfigTest() throws Exception { .setDescription("description-1724546052") .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") + .setUpdateTime(Timestamp.newBuilder().build()) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -1163,6 +1178,7 @@ public void createNotificationConfigTest2() throws Exception { .setDescription("description-1724546052") .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") + .setUpdateTime(Timestamp.newBuilder().build()) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -1215,6 +1231,7 @@ public void createNotificationConfigTest3() throws Exception { .setDescription("description-1724546052") .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") + .setUpdateTime(Timestamp.newBuilder().build()) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -1267,6 +1284,7 @@ public void createNotificationConfigTest4() throws Exception { .setDescription("description-1724546052") .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") + .setUpdateTime(Timestamp.newBuilder().build()) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -2159,6 +2177,7 @@ public void getNotificationConfigTest() throws Exception { .setDescription("description-1724546052") .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") + .setUpdateTime(Timestamp.newBuilder().build()) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -2208,6 +2227,7 @@ public void getNotificationConfigTest2() throws Exception { .setDescription("description-1724546052") .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") + .setUpdateTime(Timestamp.newBuilder().build()) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -3872,7 +3892,9 @@ public void setFindingStateTest() throws Exception { .setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build()) .setKernelRootkit(KernelRootkit.newBuilder().build()) .addAllOrgPolicies(new ArrayList()) + .setJob(Job.newBuilder().build()) .setApplication(Application.newBuilder().build()) + .setIpRules(IpRules.newBuilder().build()) .setBackupDisasterRecovery(BackupDisasterRecovery.newBuilder().build()) .setSecurityPosture(SecurityPosture.newBuilder().build()) .addAllLogEntries(new ArrayList()) @@ -3884,7 +3906,12 @@ public void setFindingStateTest() throws Exception { .setDisk(Disk.newBuilder().build()) .addAllDataAccessEvents(new ArrayList()) .addAllDataFlowEvents(new ArrayList()) + .addAllNetworks(new ArrayList()) .addAllDataRetentionDeletionEvents(new ArrayList()) + .setAffectedResources(AffectedResources.newBuilder().build()) + .setAiModel(AiModel.newBuilder().build()) + .setChokepoint(Chokepoint.newBuilder().build()) + .setVertexAi(VertexAi.newBuilder().build()) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -3967,7 +3994,9 @@ public void setFindingStateTest2() throws Exception { .setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build()) .setKernelRootkit(KernelRootkit.newBuilder().build()) .addAllOrgPolicies(new ArrayList()) + .setJob(Job.newBuilder().build()) .setApplication(Application.newBuilder().build()) + .setIpRules(IpRules.newBuilder().build()) .setBackupDisasterRecovery(BackupDisasterRecovery.newBuilder().build()) .setSecurityPosture(SecurityPosture.newBuilder().build()) .addAllLogEntries(new ArrayList()) @@ -3979,7 +4008,12 @@ public void setFindingStateTest2() throws Exception { .setDisk(Disk.newBuilder().build()) .addAllDataAccessEvents(new ArrayList()) .addAllDataFlowEvents(new ArrayList()) + .addAllNetworks(new ArrayList()) .addAllDataRetentionDeletionEvents(new ArrayList()) + .setAffectedResources(AffectedResources.newBuilder().build()) + .setAiModel(AiModel.newBuilder().build()) + .setChokepoint(Chokepoint.newBuilder().build()) + .setVertexAi(VertexAi.newBuilder().build()) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -4148,7 +4182,9 @@ public void setMuteTest() throws Exception { .setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build()) .setKernelRootkit(KernelRootkit.newBuilder().build()) .addAllOrgPolicies(new ArrayList()) + .setJob(Job.newBuilder().build()) .setApplication(Application.newBuilder().build()) + .setIpRules(IpRules.newBuilder().build()) .setBackupDisasterRecovery(BackupDisasterRecovery.newBuilder().build()) .setSecurityPosture(SecurityPosture.newBuilder().build()) .addAllLogEntries(new ArrayList()) @@ -4160,7 +4196,12 @@ public void setMuteTest() throws Exception { .setDisk(Disk.newBuilder().build()) .addAllDataAccessEvents(new ArrayList()) .addAllDataFlowEvents(new ArrayList()) + .addAllNetworks(new ArrayList()) .addAllDataRetentionDeletionEvents(new ArrayList()) + .setAffectedResources(AffectedResources.newBuilder().build()) + .setAiModel(AiModel.newBuilder().build()) + .setChokepoint(Chokepoint.newBuilder().build()) + .setVertexAi(VertexAi.newBuilder().build()) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -4243,7 +4284,9 @@ public void setMuteTest2() throws Exception { .setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build()) .setKernelRootkit(KernelRootkit.newBuilder().build()) .addAllOrgPolicies(new ArrayList()) + .setJob(Job.newBuilder().build()) .setApplication(Application.newBuilder().build()) + .setIpRules(IpRules.newBuilder().build()) .setBackupDisasterRecovery(BackupDisasterRecovery.newBuilder().build()) .setSecurityPosture(SecurityPosture.newBuilder().build()) .addAllLogEntries(new ArrayList()) @@ -4255,7 +4298,12 @@ public void setMuteTest2() throws Exception { .setDisk(Disk.newBuilder().build()) .addAllDataAccessEvents(new ArrayList()) .addAllDataFlowEvents(new ArrayList()) + .addAllNetworks(new ArrayList()) .addAllDataRetentionDeletionEvents(new ArrayList()) + .setAffectedResources(AffectedResources.newBuilder().build()) + .setAiModel(AiModel.newBuilder().build()) + .setChokepoint(Chokepoint.newBuilder().build()) + .setVertexAi(VertexAi.newBuilder().build()) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -4518,7 +4566,9 @@ public void updateFindingTest() throws Exception { .setCloudDlpDataProfile(CloudDlpDataProfile.newBuilder().build()) .setKernelRootkit(KernelRootkit.newBuilder().build()) .addAllOrgPolicies(new ArrayList()) + .setJob(Job.newBuilder().build()) .setApplication(Application.newBuilder().build()) + .setIpRules(IpRules.newBuilder().build()) .setBackupDisasterRecovery(BackupDisasterRecovery.newBuilder().build()) .setSecurityPosture(SecurityPosture.newBuilder().build()) .addAllLogEntries(new ArrayList()) @@ -4530,7 +4580,12 @@ public void updateFindingTest() throws Exception { .setDisk(Disk.newBuilder().build()) .addAllDataAccessEvents(new ArrayList()) .addAllDataFlowEvents(new ArrayList()) + .addAllNetworks(new ArrayList()) .addAllDataRetentionDeletionEvents(new ArrayList()) + .setAffectedResources(AffectedResources.newBuilder().build()) + .setAiModel(AiModel.newBuilder().build()) + .setChokepoint(Chokepoint.newBuilder().build()) + .setVertexAi(VertexAi.newBuilder().build()) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -4627,6 +4682,7 @@ public void updateNotificationConfigTest() throws Exception { .setDescription("description-1724546052") .setPubsubTopic("pubsubTopic255880396") .setServiceAccount("serviceAccount1079137720") + .setUpdateTime(Timestamp.newBuilder().build()) .build(); mockSecurityCenter.addResponse(expectedResponse); diff --git a/java-securitycenter/grpc-google-cloud-securitycenter-v1/pom.xml b/java-securitycenter/grpc-google-cloud-securitycenter-v1/pom.xml index dcf9e49d406b..c795e9c96d0e 100644 --- a/java-securitycenter/grpc-google-cloud-securitycenter-v1/pom.xml +++ b/java-securitycenter/grpc-google-cloud-securitycenter-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1 - 2.75.0 + 2.76.0 grpc-google-cloud-securitycenter-v1 GRPC library for grpc-google-cloud-securitycenter-v1 com.google.cloud google-cloud-securitycenter-parent - 2.75.0 + 2.76.0 diff --git a/java-securitycenter/grpc-google-cloud-securitycenter-v1beta1/pom.xml b/java-securitycenter/grpc-google-cloud-securitycenter-v1beta1/pom.xml index 2d4920d214d6..8f31665aa9f0 100644 --- a/java-securitycenter/grpc-google-cloud-securitycenter-v1beta1/pom.xml +++ b/java-securitycenter/grpc-google-cloud-securitycenter-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1beta1 - 0.170.0 + 0.171.0 grpc-google-cloud-securitycenter-v1beta1 GRPC library for grpc-google-cloud-securitycenter-v1beta1 com.google.cloud google-cloud-securitycenter-parent - 2.75.0 + 2.76.0 diff --git a/java-securitycenter/grpc-google-cloud-securitycenter-v1p1beta1/pom.xml b/java-securitycenter/grpc-google-cloud-securitycenter-v1p1beta1/pom.xml index 1097852a9301..337e21e76059 100644 --- a/java-securitycenter/grpc-google-cloud-securitycenter-v1p1beta1/pom.xml +++ b/java-securitycenter/grpc-google-cloud-securitycenter-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1p1beta1 - 0.170.0 + 0.171.0 grpc-google-cloud-securitycenter-v1p1beta1 GRPC library for grpc-google-cloud-securitycenter-v1p1beta1 com.google.cloud google-cloud-securitycenter-parent - 2.75.0 + 2.76.0 diff --git a/java-securitycenter/grpc-google-cloud-securitycenter-v2/pom.xml b/java-securitycenter/grpc-google-cloud-securitycenter-v2/pom.xml index 304d81efd440..34a285addb25 100644 --- a/java-securitycenter/grpc-google-cloud-securitycenter-v2/pom.xml +++ b/java-securitycenter/grpc-google-cloud-securitycenter-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-securitycenter-v2 - 2.75.0 + 2.76.0 grpc-google-cloud-securitycenter-v2 GRPC library for google-cloud-securitycenter com.google.cloud google-cloud-securitycenter-parent - 2.75.0 + 2.76.0 diff --git a/java-securitycenter/pom.xml b/java-securitycenter/pom.xml index c50ffbb08d0f..c1c05ec7e717 100644 --- a/java-securitycenter/pom.xml +++ b/java-securitycenter/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-securitycenter-parent pom - 2.75.0 + 2.76.0 Google Cloud Security Command Center Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,47 +29,47 @@ com.google.api.grpc proto-google-cloud-securitycenter-v1 - 2.75.0 + 2.76.0 com.google.api.grpc proto-google-cloud-securitycenter-v2 - 2.75.0 + 2.76.0 com.google.api.grpc grpc-google-cloud-securitycenter-v2 - 2.75.0 + 2.76.0 com.google.api.grpc proto-google-cloud-securitycenter-v1beta1 - 0.170.0 + 0.171.0 com.google.api.grpc proto-google-cloud-securitycenter-v1p1beta1 - 0.170.0 + 0.171.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1 - 2.75.0 + 2.76.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1beta1 - 0.170.0 + 0.171.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1p1beta1 - 0.170.0 + 0.171.0 com.google.cloud google-cloud-securitycenter - 2.75.0 + 2.76.0 diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/pom.xml b/java-securitycenter/proto-google-cloud-securitycenter-v1/pom.xml index ea54a744c0ab..c58509947f05 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/pom.xml +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-securitycenter-v1 - 2.75.0 + 2.76.0 proto-google-cloud-securitycenter-v1 PROTO library for proto-google-cloud-securitycenter-v1 com.google.cloud google-cloud-securitycenter-parent - 2.75.0 + 2.76.0 diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1beta1/pom.xml b/java-securitycenter/proto-google-cloud-securitycenter-v1beta1/pom.xml index 7274a12cfd88..bf7972724a5a 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1beta1/pom.xml +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-securitycenter-v1beta1 - 0.170.0 + 0.171.0 proto-google-cloud-securitycenter-v1beta1 PROTO library for proto-google-cloud-securitycenter-v1beta1 com.google.cloud google-cloud-securitycenter-parent - 2.75.0 + 2.76.0 diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/pom.xml b/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/pom.xml index bf41343a7809..e0d19091e92d 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/pom.xml +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-securitycenter-v1p1beta1 - 0.170.0 + 0.171.0 proto-google-cloud-securitycenter-v1p1beta1 PROTO library for proto-google-cloud-securitycenter-v1p1beta1 com.google.cloud google-cloud-securitycenter-parent - 2.75.0 + 2.76.0 diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/pom.xml b/java-securitycenter/proto-google-cloud-securitycenter-v2/pom.xml index 2039c83cc988..a9bfa93ab220 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/pom.xml +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-securitycenter-v2 - 2.75.0 + 2.76.0 proto-google-cloud-securitycenter-v2 Proto library for google-cloud-securitycenter com.google.cloud google-cloud-securitycenter-parent - 2.75.0 + 2.76.0 diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/AffectedResources.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/AffectedResources.java new file mode 100644 index 000000000000..b06d5b758eaf --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/AffectedResources.java @@ -0,0 +1,541 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v2/affected_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.securitycenter.v2; + +/** + * + * + *
      + * Details about resources affected by this finding.
      + * 
      + * + * Protobuf type {@code google.cloud.securitycenter.v2.AffectedResources} + */ +public final class AffectedResources extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v2.AffectedResources) + AffectedResourcesOrBuilder { + private static final long serialVersionUID = 0L; + + // Use AffectedResources.newBuilder() to construct. + private AffectedResources(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AffectedResources() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AffectedResources(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v2.AffectedResourcesProto + .internal_static_google_cloud_securitycenter_v2_AffectedResources_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v2.AffectedResourcesProto + .internal_static_google_cloud_securitycenter_v2_AffectedResources_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v2.AffectedResources.class, + com.google.cloud.securitycenter.v2.AffectedResources.Builder.class); + } + + public static final int COUNT_FIELD_NUMBER = 1; + private long count_ = 0L; + + /** + * + * + *
      +   * The count of resources affected by the finding.
      +   * 
      + * + * int64 count = 1; + * + * @return The count. + */ + @java.lang.Override + public long getCount() { + return count_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (count_ != 0L) { + output.writeInt64(1, count_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (count_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, count_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycenter.v2.AffectedResources)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v2.AffectedResources other = + (com.google.cloud.securitycenter.v2.AffectedResources) obj; + + if (getCount() != other.getCount()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCount()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v2.AffectedResources parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.AffectedResources parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.AffectedResources parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.AffectedResources parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.AffectedResources parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.AffectedResources parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.AffectedResources parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.AffectedResources parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.AffectedResources parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.AffectedResources parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.AffectedResources parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.AffectedResources parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.securitycenter.v2.AffectedResources prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Details about resources affected by this finding.
      +   * 
      + * + * Protobuf type {@code google.cloud.securitycenter.v2.AffectedResources} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v2.AffectedResources) + com.google.cloud.securitycenter.v2.AffectedResourcesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v2.AffectedResourcesProto + .internal_static_google_cloud_securitycenter_v2_AffectedResources_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v2.AffectedResourcesProto + .internal_static_google_cloud_securitycenter_v2_AffectedResources_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v2.AffectedResources.class, + com.google.cloud.securitycenter.v2.AffectedResources.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v2.AffectedResources.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + count_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v2.AffectedResourcesProto + .internal_static_google_cloud_securitycenter_v2_AffectedResources_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.AffectedResources getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v2.AffectedResources.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.AffectedResources build() { + com.google.cloud.securitycenter.v2.AffectedResources result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.AffectedResources buildPartial() { + com.google.cloud.securitycenter.v2.AffectedResources result = + new com.google.cloud.securitycenter.v2.AffectedResources(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.securitycenter.v2.AffectedResources result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.count_ = count_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v2.AffectedResources) { + return mergeFrom((com.google.cloud.securitycenter.v2.AffectedResources) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v2.AffectedResources other) { + if (other == com.google.cloud.securitycenter.v2.AffectedResources.getDefaultInstance()) + return this; + if (other.getCount() != 0L) { + setCount(other.getCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + count_ = 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 count_; + + /** + * + * + *
      +     * The count of resources affected by the finding.
      +     * 
      + * + * int64 count = 1; + * + * @return The count. + */ + @java.lang.Override + public long getCount() { + return count_; + } + + /** + * + * + *
      +     * The count of resources affected by the finding.
      +     * 
      + * + * int64 count = 1; + * + * @param value The count to set. + * @return This builder for chaining. + */ + public Builder setCount(long value) { + + count_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The count of resources affected by the finding.
      +     * 
      + * + * int64 count = 1; + * + * @return This builder for chaining. + */ + public Builder clearCount() { + bitField0_ = (bitField0_ & ~0x00000001); + count_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v2.AffectedResources) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v2.AffectedResources) + private static final com.google.cloud.securitycenter.v2.AffectedResources DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v2.AffectedResources(); + } + + public static com.google.cloud.securitycenter.v2.AffectedResources getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AffectedResources parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.AffectedResources getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/AffectedResourcesOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/AffectedResourcesOrBuilder.java new file mode 100644 index 000000000000..b315fd191d53 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/AffectedResourcesOrBuilder.java @@ -0,0 +1,39 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v2/affected_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.securitycenter.v2; + +public interface AffectedResourcesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v2.AffectedResources) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * The count of resources affected by the finding.
      +   * 
      + * + * int64 count = 1; + * + * @return The count. + */ + long getCount(); +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/AffectedResourcesProto.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/AffectedResourcesProto.java new file mode 100644 index 000000000000..12f5d5923ee6 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/AffectedResourcesProto.java @@ -0,0 +1,69 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v2/affected_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.securitycenter.v2; + +public final class AffectedResourcesProto { + private AffectedResourcesProto() {} + + 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_cloud_securitycenter_v2_AffectedResources_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v2_AffectedResources_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n7google/cloud/securitycenter/v2/affecte" + + "d_resources.proto\022\036google.cloud.security" + + "center.v2\"\"\n\021AffectedResources\022\r\n\005count\030" + + "\001 \001(\003B\360\001\n\"com.google.cloud.securitycente" + + "r.v2B\026AffectedResourcesProtoP\001ZJcloud.go" + + "ogle.com/go/securitycenter/apiv2/securit" + + "ycenterpb;securitycenterpb\252\002\036Google.Clou" + + "d.SecurityCenter.V2\312\002\036Google\\Cloud\\Secur" + + "ityCenter\\V2\352\002!Google::Cloud::SecurityCe" + + "nter::V2b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_cloud_securitycenter_v2_AffectedResources_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v2_AffectedResources_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v2_AffectedResources_descriptor, + new java.lang.String[] { + "Count", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/AiModel.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/AiModel.java new file mode 100644 index 000000000000..b58d12e3da8d --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/AiModel.java @@ -0,0 +1,1915 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v2/ai_model.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.securitycenter.v2; + +/** + * + * + *
      + * Contains information about the AI model associated with the finding.
      + * 
      + * + * Protobuf type {@code google.cloud.securitycenter.v2.AiModel} + */ +public final class AiModel extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v2.AiModel) + AiModelOrBuilder { + private static final long serialVersionUID = 0L; + + // Use AiModel.newBuilder() to construct. + private AiModel(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AiModel() { + name_ = ""; + domain_ = ""; + library_ = ""; + location_ = ""; + publisher_ = ""; + deploymentPlatform_ = 0; + displayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AiModel(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v2.AiModelProto + .internal_static_google_cloud_securitycenter_v2_AiModel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v2.AiModelProto + .internal_static_google_cloud_securitycenter_v2_AiModel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v2.AiModel.class, + com.google.cloud.securitycenter.v2.AiModel.Builder.class); + } + + /** + * + * + *
      +   * The platform on which the model is deployed.
      +   * 
      + * + * Protobuf enum {@code google.cloud.securitycenter.v2.AiModel.DeploymentPlatform} + */ + public enum DeploymentPlatform implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +     * Unspecified deployment platform.
      +     * 
      + * + * DEPLOYMENT_PLATFORM_UNSPECIFIED = 0; + */ + DEPLOYMENT_PLATFORM_UNSPECIFIED(0), + /** + * + * + *
      +     * Vertex AI.
      +     * 
      + * + * VERTEX_AI = 1; + */ + VERTEX_AI(1), + /** + * + * + *
      +     * Google Kubernetes Engine.
      +     * 
      + * + * GKE = 2; + */ + GKE(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
      +     * Unspecified deployment platform.
      +     * 
      + * + * DEPLOYMENT_PLATFORM_UNSPECIFIED = 0; + */ + public static final int DEPLOYMENT_PLATFORM_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +     * Vertex AI.
      +     * 
      + * + * VERTEX_AI = 1; + */ + public static final int VERTEX_AI_VALUE = 1; + + /** + * + * + *
      +     * Google Kubernetes Engine.
      +     * 
      + * + * GKE = 2; + */ + public static final int GKE_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 DeploymentPlatform 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 DeploymentPlatform forNumber(int value) { + switch (value) { + case 0: + return DEPLOYMENT_PLATFORM_UNSPECIFIED; + case 1: + return VERTEX_AI; + case 2: + return GKE; + 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 DeploymentPlatform findValueByNumber(int number) { + return DeploymentPlatform.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.securitycenter.v2.AiModel.getDescriptor().getEnumTypes().get(0); + } + + private static final DeploymentPlatform[] VALUES = values(); + + public static DeploymentPlatform 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 DeploymentPlatform(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.securitycenter.v2.AiModel.DeploymentPlatform) + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * The name of the AI model, for example, "gemini:1.0.0".
      +   * 
      + * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +   * The name of the AI model, for example, "gemini:1.0.0".
      +   * 
      + * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object domain_ = ""; + + /** + * + * + *
      +   * The domain of the model, for example, “image-classification”.
      +   * 
      + * + * string domain = 2; + * + * @return The domain. + */ + @java.lang.Override + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } + } + + /** + * + * + *
      +   * The domain of the model, for example, “image-classification”.
      +   * 
      + * + * string domain = 2; + * + * @return The bytes for domain. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LIBRARY_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object library_ = ""; + + /** + * + * + *
      +   * The name of the model library, for example, “transformers”.
      +   * 
      + * + * string library = 3; + * + * @return The library. + */ + @java.lang.Override + public java.lang.String getLibrary() { + java.lang.Object ref = library_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + library_ = s; + return s; + } + } + + /** + * + * + *
      +   * The name of the model library, for example, “transformers”.
      +   * 
      + * + * string library = 3; + * + * @return The bytes for library. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLibraryBytes() { + java.lang.Object ref = library_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + library_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCATION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object location_ = ""; + + /** + * + * + *
      +   * The region in which the model is used, for example, “us-central1”.
      +   * 
      + * + * string location = 4; + * + * @return The location. + */ + @java.lang.Override + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } + } + + /** + * + * + *
      +   * The region in which the model is used, for example, “us-central1”.
      +   * 
      + * + * string location = 4; + * + * @return The bytes for location. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PUBLISHER_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object publisher_ = ""; + + /** + * + * + *
      +   * The publisher of the model, for example, “google” or “nvidia”.
      +   * 
      + * + * string publisher = 5; + * + * @return The publisher. + */ + @java.lang.Override + public java.lang.String getPublisher() { + java.lang.Object ref = publisher_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + publisher_ = s; + return s; + } + } + + /** + * + * + *
      +   * The publisher of the model, for example, “google” or “nvidia”.
      +   * 
      + * + * string publisher = 5; + * + * @return The bytes for publisher. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPublisherBytes() { + java.lang.Object ref = publisher_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + publisher_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPLOYMENT_PLATFORM_FIELD_NUMBER = 6; + private int deploymentPlatform_ = 0; + + /** + * + * + *
      +   * The platform on which the model is deployed.
      +   * 
      + * + * .google.cloud.securitycenter.v2.AiModel.DeploymentPlatform deployment_platform = 6; + * + * + * @return The enum numeric value on the wire for deploymentPlatform. + */ + @java.lang.Override + public int getDeploymentPlatformValue() { + return deploymentPlatform_; + } + + /** + * + * + *
      +   * The platform on which the model is deployed.
      +   * 
      + * + * .google.cloud.securitycenter.v2.AiModel.DeploymentPlatform deployment_platform = 6; + * + * + * @return The deploymentPlatform. + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.AiModel.DeploymentPlatform getDeploymentPlatform() { + com.google.cloud.securitycenter.v2.AiModel.DeploymentPlatform result = + com.google.cloud.securitycenter.v2.AiModel.DeploymentPlatform.forNumber( + deploymentPlatform_); + return result == null + ? com.google.cloud.securitycenter.v2.AiModel.DeploymentPlatform.UNRECOGNIZED + : result; + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
      +   * The user defined display name of model. Ex. baseline-classification-model
      +   * 
      + * + * string display_name = 7; + * + * @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; + } + } + + /** + * + * + *
      +   * The user defined display name of model. Ex. baseline-classification-model
      +   * 
      + * + * string display_name = 7; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domain_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(library_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, library_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, location_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publisher_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, publisher_); + } + if (deploymentPlatform_ + != com.google.cloud.securitycenter.v2.AiModel.DeploymentPlatform + .DEPLOYMENT_PLATFORM_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, deploymentPlatform_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, displayName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domain_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(library_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, library_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, location_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publisher_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, publisher_); + } + if (deploymentPlatform_ + != com.google.cloud.securitycenter.v2.AiModel.DeploymentPlatform + .DEPLOYMENT_PLATFORM_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, deploymentPlatform_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, displayName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycenter.v2.AiModel)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v2.AiModel other = + (com.google.cloud.securitycenter.v2.AiModel) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDomain().equals(other.getDomain())) return false; + if (!getLibrary().equals(other.getLibrary())) return false; + if (!getLocation().equals(other.getLocation())) return false; + if (!getPublisher().equals(other.getPublisher())) return false; + if (deploymentPlatform_ != other.deploymentPlatform_) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (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) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + LIBRARY_FIELD_NUMBER; + hash = (53 * hash) + getLibrary().hashCode(); + hash = (37 * hash) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + hash = (37 * hash) + PUBLISHER_FIELD_NUMBER; + hash = (53 * hash) + getPublisher().hashCode(); + hash = (37 * hash) + DEPLOYMENT_PLATFORM_FIELD_NUMBER; + hash = (53 * hash) + deploymentPlatform_; + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v2.AiModel parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.AiModel parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.AiModel parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.AiModel parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.AiModel parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.AiModel parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.AiModel parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.AiModel parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.AiModel parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.AiModel parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.AiModel parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.AiModel parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.securitycenter.v2.AiModel prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Contains information about the AI model associated with the finding.
      +   * 
      + * + * Protobuf type {@code google.cloud.securitycenter.v2.AiModel} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v2.AiModel) + com.google.cloud.securitycenter.v2.AiModelOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v2.AiModelProto + .internal_static_google_cloud_securitycenter_v2_AiModel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v2.AiModelProto + .internal_static_google_cloud_securitycenter_v2_AiModel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v2.AiModel.class, + com.google.cloud.securitycenter.v2.AiModel.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v2.AiModel.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + domain_ = ""; + library_ = ""; + location_ = ""; + publisher_ = ""; + deploymentPlatform_ = 0; + displayName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v2.AiModelProto + .internal_static_google_cloud_securitycenter_v2_AiModel_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.AiModel getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v2.AiModel.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.AiModel build() { + com.google.cloud.securitycenter.v2.AiModel result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.AiModel buildPartial() { + com.google.cloud.securitycenter.v2.AiModel result = + new com.google.cloud.securitycenter.v2.AiModel(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.securitycenter.v2.AiModel result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.domain_ = domain_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.library_ = library_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.location_ = location_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.publisher_ = publisher_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.deploymentPlatform_ = deploymentPlatform_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.displayName_ = displayName_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v2.AiModel) { + return mergeFrom((com.google.cloud.securitycenter.v2.AiModel) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v2.AiModel other) { + if (other == com.google.cloud.securitycenter.v2.AiModel.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getLibrary().isEmpty()) { + library_ = other.library_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getPublisher().isEmpty()) { + publisher_ = other.publisher_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.deploymentPlatform_ != 0) { + setDeploymentPlatformValue(other.getDeploymentPlatformValue()); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000040; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + domain_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + library_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + location_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + publisher_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + deploymentPlatform_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * The name of the AI model, for example, "gemini:1.0.0".
      +     * 
      + * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * The name of the AI model, for example, "gemini:1.0.0".
      +     * 
      + * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * The name of the AI model, for example, "gemini:1.0.0".
      +     * 
      + * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The name of the AI model, for example, "gemini:1.0.0".
      +     * 
      + * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * The name of the AI model, for example, "gemini:1.0.0".
      +     * 
      + * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + + /** + * + * + *
      +     * The domain of the model, for example, “image-classification”.
      +     * 
      + * + * string domain = 2; + * + * @return The domain. + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * The domain of the model, for example, “image-classification”.
      +     * 
      + * + * string domain = 2; + * + * @return The bytes for domain. + */ + public com.google.protobuf.ByteString getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * The domain of the model, for example, “image-classification”.
      +     * 
      + * + * string domain = 2; + * + * @param value The domain to set. + * @return This builder for chaining. + */ + public Builder setDomain(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + domain_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The domain of the model, for example, “image-classification”.
      +     * 
      + * + * string domain = 2; + * + * @return This builder for chaining. + */ + public Builder clearDomain() { + domain_ = getDefaultInstance().getDomain(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * The domain of the model, for example, “image-classification”.
      +     * 
      + * + * string domain = 2; + * + * @param value The bytes for domain to set. + * @return This builder for chaining. + */ + public Builder setDomainBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + domain_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object library_ = ""; + + /** + * + * + *
      +     * The name of the model library, for example, “transformers”.
      +     * 
      + * + * string library = 3; + * + * @return The library. + */ + public java.lang.String getLibrary() { + java.lang.Object ref = library_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + library_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * The name of the model library, for example, “transformers”.
      +     * 
      + * + * string library = 3; + * + * @return The bytes for library. + */ + public com.google.protobuf.ByteString getLibraryBytes() { + java.lang.Object ref = library_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + library_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * The name of the model library, for example, “transformers”.
      +     * 
      + * + * string library = 3; + * + * @param value The library to set. + * @return This builder for chaining. + */ + public Builder setLibrary(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + library_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The name of the model library, for example, “transformers”.
      +     * 
      + * + * string library = 3; + * + * @return This builder for chaining. + */ + public Builder clearLibrary() { + library_ = getDefaultInstance().getLibrary(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * The name of the model library, for example, “transformers”.
      +     * 
      + * + * string library = 3; + * + * @param value The bytes for library to set. + * @return This builder for chaining. + */ + public Builder setLibraryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + library_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object location_ = ""; + + /** + * + * + *
      +     * The region in which the model is used, for example, “us-central1”.
      +     * 
      + * + * string location = 4; + * + * @return The location. + */ + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * The region in which the model is used, for example, “us-central1”.
      +     * 
      + * + * string location = 4; + * + * @return The bytes for location. + */ + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * The region in which the model is used, for example, “us-central1”.
      +     * 
      + * + * string location = 4; + * + * @param value The location to set. + * @return This builder for chaining. + */ + public Builder setLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + location_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The region in which the model is used, for example, “us-central1”.
      +     * 
      + * + * string location = 4; + * + * @return This builder for chaining. + */ + public Builder clearLocation() { + location_ = getDefaultInstance().getLocation(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
      +     * The region in which the model is used, for example, “us-central1”.
      +     * 
      + * + * string location = 4; + * + * @param value The bytes for location to set. + * @return This builder for chaining. + */ + public Builder setLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + location_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object publisher_ = ""; + + /** + * + * + *
      +     * The publisher of the model, for example, “google” or “nvidia”.
      +     * 
      + * + * string publisher = 5; + * + * @return The publisher. + */ + public java.lang.String getPublisher() { + java.lang.Object ref = publisher_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + publisher_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * The publisher of the model, for example, “google” or “nvidia”.
      +     * 
      + * + * string publisher = 5; + * + * @return The bytes for publisher. + */ + public com.google.protobuf.ByteString getPublisherBytes() { + java.lang.Object ref = publisher_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + publisher_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * The publisher of the model, for example, “google” or “nvidia”.
      +     * 
      + * + * string publisher = 5; + * + * @param value The publisher to set. + * @return This builder for chaining. + */ + public Builder setPublisher(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + publisher_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The publisher of the model, for example, “google” or “nvidia”.
      +     * 
      + * + * string publisher = 5; + * + * @return This builder for chaining. + */ + public Builder clearPublisher() { + publisher_ = getDefaultInstance().getPublisher(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
      +     * The publisher of the model, for example, “google” or “nvidia”.
      +     * 
      + * + * string publisher = 5; + * + * @param value The bytes for publisher to set. + * @return This builder for chaining. + */ + public Builder setPublisherBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + publisher_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int deploymentPlatform_ = 0; + + /** + * + * + *
      +     * The platform on which the model is deployed.
      +     * 
      + * + * .google.cloud.securitycenter.v2.AiModel.DeploymentPlatform deployment_platform = 6; + * + * + * @return The enum numeric value on the wire for deploymentPlatform. + */ + @java.lang.Override + public int getDeploymentPlatformValue() { + return deploymentPlatform_; + } + + /** + * + * + *
      +     * The platform on which the model is deployed.
      +     * 
      + * + * .google.cloud.securitycenter.v2.AiModel.DeploymentPlatform deployment_platform = 6; + * + * + * @param value The enum numeric value on the wire for deploymentPlatform to set. + * @return This builder for chaining. + */ + public Builder setDeploymentPlatformValue(int value) { + deploymentPlatform_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The platform on which the model is deployed.
      +     * 
      + * + * .google.cloud.securitycenter.v2.AiModel.DeploymentPlatform deployment_platform = 6; + * + * + * @return The deploymentPlatform. + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.AiModel.DeploymentPlatform getDeploymentPlatform() { + com.google.cloud.securitycenter.v2.AiModel.DeploymentPlatform result = + com.google.cloud.securitycenter.v2.AiModel.DeploymentPlatform.forNumber( + deploymentPlatform_); + return result == null + ? com.google.cloud.securitycenter.v2.AiModel.DeploymentPlatform.UNRECOGNIZED + : result; + } + + /** + * + * + *
      +     * The platform on which the model is deployed.
      +     * 
      + * + * .google.cloud.securitycenter.v2.AiModel.DeploymentPlatform deployment_platform = 6; + * + * + * @param value The deploymentPlatform to set. + * @return This builder for chaining. + */ + public Builder setDeploymentPlatform( + com.google.cloud.securitycenter.v2.AiModel.DeploymentPlatform value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + deploymentPlatform_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * The platform on which the model is deployed.
      +     * 
      + * + * .google.cloud.securitycenter.v2.AiModel.DeploymentPlatform deployment_platform = 6; + * + * + * @return This builder for chaining. + */ + public Builder clearDeploymentPlatform() { + bitField0_ = (bitField0_ & ~0x00000020); + deploymentPlatform_ = 0; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
      +     * The user defined display name of model. Ex. baseline-classification-model
      +     * 
      + * + * string display_name = 7; + * + * @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; + } + } + + /** + * + * + *
      +     * The user defined display name of model. Ex. baseline-classification-model
      +     * 
      + * + * string display_name = 7; + * + * @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; + } + } + + /** + * + * + *
      +     * The user defined display name of model. Ex. baseline-classification-model
      +     * 
      + * + * string display_name = 7; + * + * @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_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The user defined display name of model. Ex. baseline-classification-model
      +     * 
      + * + * string display_name = 7; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
      +     * The user defined display name of model. Ex. baseline-classification-model
      +     * 
      + * + * string display_name = 7; + * + * @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_ |= 0x00000040; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v2.AiModel) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v2.AiModel) + private static final com.google.cloud.securitycenter.v2.AiModel DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v2.AiModel(); + } + + public static com.google.cloud.securitycenter.v2.AiModel getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AiModel parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.AiModel getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/AiModelOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/AiModelOrBuilder.java new file mode 100644 index 000000000000..64c75197caaf --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/AiModelOrBuilder.java @@ -0,0 +1,210 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v2/ai_model.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.securitycenter.v2; + +public interface AiModelOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v2.AiModel) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * The name of the AI model, for example, "gemini:1.0.0".
      +   * 
      + * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * The name of the AI model, for example, "gemini:1.0.0".
      +   * 
      + * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +   * The domain of the model, for example, “image-classification”.
      +   * 
      + * + * string domain = 2; + * + * @return The domain. + */ + java.lang.String getDomain(); + + /** + * + * + *
      +   * The domain of the model, for example, “image-classification”.
      +   * 
      + * + * string domain = 2; + * + * @return The bytes for domain. + */ + com.google.protobuf.ByteString getDomainBytes(); + + /** + * + * + *
      +   * The name of the model library, for example, “transformers”.
      +   * 
      + * + * string library = 3; + * + * @return The library. + */ + java.lang.String getLibrary(); + + /** + * + * + *
      +   * The name of the model library, for example, “transformers”.
      +   * 
      + * + * string library = 3; + * + * @return The bytes for library. + */ + com.google.protobuf.ByteString getLibraryBytes(); + + /** + * + * + *
      +   * The region in which the model is used, for example, “us-central1”.
      +   * 
      + * + * string location = 4; + * + * @return The location. + */ + java.lang.String getLocation(); + + /** + * + * + *
      +   * The region in which the model is used, for example, “us-central1”.
      +   * 
      + * + * string location = 4; + * + * @return The bytes for location. + */ + com.google.protobuf.ByteString getLocationBytes(); + + /** + * + * + *
      +   * The publisher of the model, for example, “google” or “nvidia”.
      +   * 
      + * + * string publisher = 5; + * + * @return The publisher. + */ + java.lang.String getPublisher(); + + /** + * + * + *
      +   * The publisher of the model, for example, “google” or “nvidia”.
      +   * 
      + * + * string publisher = 5; + * + * @return The bytes for publisher. + */ + com.google.protobuf.ByteString getPublisherBytes(); + + /** + * + * + *
      +   * The platform on which the model is deployed.
      +   * 
      + * + * .google.cloud.securitycenter.v2.AiModel.DeploymentPlatform deployment_platform = 6; + * + * + * @return The enum numeric value on the wire for deploymentPlatform. + */ + int getDeploymentPlatformValue(); + + /** + * + * + *
      +   * The platform on which the model is deployed.
      +   * 
      + * + * .google.cloud.securitycenter.v2.AiModel.DeploymentPlatform deployment_platform = 6; + * + * + * @return The deploymentPlatform. + */ + com.google.cloud.securitycenter.v2.AiModel.DeploymentPlatform getDeploymentPlatform(); + + /** + * + * + *
      +   * The user defined display name of model. Ex. baseline-classification-model
      +   * 
      + * + * string display_name = 7; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
      +   * The user defined display name of model. Ex. baseline-classification-model
      +   * 
      + * + * string display_name = 7; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/AiModelProto.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/AiModelProto.java new file mode 100644 index 000000000000..4aa0c113beff --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/AiModelProto.java @@ -0,0 +1,86 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v2/ai_model.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.securitycenter.v2; + +public final class AiModelProto { + private AiModelProto() {} + + 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_cloud_securitycenter_v2_AiModel_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v2_AiModel_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/cloud/securitycenter/v2/ai_mode" + + "l.proto\022\036google.cloud.securitycenter.v2\"\237\002\n" + + "\007AiModel\022\014\n" + + "\004name\030\001 \001(\t\022\016\n" + + "\006domain\030\002 \001(\t\022\017\n" + + "\007library\030\003 \001(\t\022\020\n" + + "\010location\030\004 \001(\t\022\021\n" + + "\tpublisher\030\005 \001(\t\022W\n" + + "\023deployment_platform\030\006" + + " \001(\0162:.google.cloud.securitycenter.v2.AiModel.DeploymentPlatform\022\024\n" + + "\014display_name\030\007 \001(\t\"Q\n" + + "\022DeploymentPlatform\022#\n" + + "\037DEPLOYMENT_PLATFORM_UNSPECIFIED\020\000\022\r\n" + + "\tVERTEX_AI\020\001\022\007\n" + + "\003GKE\020\002B\346\001\n" + + "\"com.google.cloud.securitycenter.v2B\014AiModelProtoP\001ZJcloud.google.c" + + "om/go/securitycenter/apiv2/securitycente" + + "rpb;securitycenterpb\252\002\036Google.Cloud.Secu" + + "rityCenter.V2\312\002\036Google\\Cloud\\SecurityCen" + + "ter\\V2\352\002!Google::Cloud::SecurityCenter::V2b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_cloud_securitycenter_v2_AiModel_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v2_AiModel_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v2_AiModel_descriptor, + new java.lang.String[] { + "Name", + "Domain", + "Library", + "Location", + "Publisher", + "DeploymentPlatform", + "DisplayName", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/Allowed.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/Allowed.java new file mode 100644 index 000000000000..f844e260af8d --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/Allowed.java @@ -0,0 +1,1004 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v2/ip_rules.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.securitycenter.v2; + +/** + * + * + *
      + * Allowed IP rule.
      + * 
      + * + * Protobuf type {@code google.cloud.securitycenter.v2.Allowed} + */ +public final class Allowed extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v2.Allowed) + AllowedOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Allowed.newBuilder() to construct. + private Allowed(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Allowed() { + ipRules_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Allowed(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v2.IpRulesProto + .internal_static_google_cloud_securitycenter_v2_Allowed_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v2.IpRulesProto + .internal_static_google_cloud_securitycenter_v2_Allowed_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v2.Allowed.class, + com.google.cloud.securitycenter.v2.Allowed.Builder.class); + } + + public static final int IP_RULES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List ipRules_; + + /** + * + * + *
      +   * Optional. Optional list of allowed IP rules.
      +   * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getIpRulesList() { + return ipRules_; + } + + /** + * + * + *
      +   * Optional. Optional list of allowed IP rules.
      +   * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getIpRulesOrBuilderList() { + return ipRules_; + } + + /** + * + * + *
      +   * Optional. Optional list of allowed IP rules.
      +   * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getIpRulesCount() { + return ipRules_.size(); + } + + /** + * + * + *
      +   * Optional. Optional list of allowed IP rules.
      +   * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.IpRule getIpRules(int index) { + return ipRules_.get(index); + } + + /** + * + * + *
      +   * Optional. Optional list of allowed IP rules.
      +   * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.IpRuleOrBuilder getIpRulesOrBuilder(int index) { + return ipRules_.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 < ipRules_.size(); i++) { + output.writeMessage(1, ipRules_.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 < ipRules_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, ipRules_.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.cloud.securitycenter.v2.Allowed)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v2.Allowed other = + (com.google.cloud.securitycenter.v2.Allowed) obj; + + if (!getIpRulesList().equals(other.getIpRulesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getIpRulesCount() > 0) { + hash = (37 * hash) + IP_RULES_FIELD_NUMBER; + hash = (53 * hash) + getIpRulesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v2.Allowed parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.Allowed parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.Allowed parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.Allowed parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.Allowed parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.Allowed parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.Allowed parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.Allowed parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.Allowed parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.Allowed parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.Allowed parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.Allowed parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.securitycenter.v2.Allowed prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Allowed IP rule.
      +   * 
      + * + * Protobuf type {@code google.cloud.securitycenter.v2.Allowed} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v2.Allowed) + com.google.cloud.securitycenter.v2.AllowedOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v2.IpRulesProto + .internal_static_google_cloud_securitycenter_v2_Allowed_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v2.IpRulesProto + .internal_static_google_cloud_securitycenter_v2_Allowed_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v2.Allowed.class, + com.google.cloud.securitycenter.v2.Allowed.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v2.Allowed.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (ipRulesBuilder_ == null) { + ipRules_ = java.util.Collections.emptyList(); + } else { + ipRules_ = null; + ipRulesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v2.IpRulesProto + .internal_static_google_cloud_securitycenter_v2_Allowed_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.Allowed getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v2.Allowed.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.Allowed build() { + com.google.cloud.securitycenter.v2.Allowed result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.Allowed buildPartial() { + com.google.cloud.securitycenter.v2.Allowed result = + new com.google.cloud.securitycenter.v2.Allowed(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.securitycenter.v2.Allowed result) { + if (ipRulesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + ipRules_ = java.util.Collections.unmodifiableList(ipRules_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.ipRules_ = ipRules_; + } else { + result.ipRules_ = ipRulesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.securitycenter.v2.Allowed result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v2.Allowed) { + return mergeFrom((com.google.cloud.securitycenter.v2.Allowed) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v2.Allowed other) { + if (other == com.google.cloud.securitycenter.v2.Allowed.getDefaultInstance()) return this; + if (ipRulesBuilder_ == null) { + if (!other.ipRules_.isEmpty()) { + if (ipRules_.isEmpty()) { + ipRules_ = other.ipRules_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureIpRulesIsMutable(); + ipRules_.addAll(other.ipRules_); + } + onChanged(); + } + } else { + if (!other.ipRules_.isEmpty()) { + if (ipRulesBuilder_.isEmpty()) { + ipRulesBuilder_.dispose(); + ipRulesBuilder_ = null; + ipRules_ = other.ipRules_; + bitField0_ = (bitField0_ & ~0x00000001); + ipRulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getIpRulesFieldBuilder() + : null; + } else { + ipRulesBuilder_.addAllMessages(other.ipRules_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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.cloud.securitycenter.v2.IpRule m = + input.readMessage( + com.google.cloud.securitycenter.v2.IpRule.parser(), extensionRegistry); + if (ipRulesBuilder_ == null) { + ensureIpRulesIsMutable(); + ipRules_.add(m); + } else { + ipRulesBuilder_.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 ipRules_ = + java.util.Collections.emptyList(); + + private void ensureIpRulesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + ipRules_ = new java.util.ArrayList(ipRules_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v2.IpRule, + com.google.cloud.securitycenter.v2.IpRule.Builder, + com.google.cloud.securitycenter.v2.IpRuleOrBuilder> + ipRulesBuilder_; + + /** + * + * + *
      +     * Optional. Optional list of allowed IP rules.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getIpRulesList() { + if (ipRulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(ipRules_); + } else { + return ipRulesBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * Optional. Optional list of allowed IP rules.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getIpRulesCount() { + if (ipRulesBuilder_ == null) { + return ipRules_.size(); + } else { + return ipRulesBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * Optional. Optional list of allowed IP rules.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.securitycenter.v2.IpRule getIpRules(int index) { + if (ipRulesBuilder_ == null) { + return ipRules_.get(index); + } else { + return ipRulesBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * Optional. Optional list of allowed IP rules.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIpRules(int index, com.google.cloud.securitycenter.v2.IpRule value) { + if (ipRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIpRulesIsMutable(); + ipRules_.set(index, value); + onChanged(); + } else { + ipRulesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. Optional list of allowed IP rules.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIpRules( + int index, com.google.cloud.securitycenter.v2.IpRule.Builder builderForValue) { + if (ipRulesBuilder_ == null) { + ensureIpRulesIsMutable(); + ipRules_.set(index, builderForValue.build()); + onChanged(); + } else { + ipRulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. Optional list of allowed IP rules.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addIpRules(com.google.cloud.securitycenter.v2.IpRule value) { + if (ipRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIpRulesIsMutable(); + ipRules_.add(value); + onChanged(); + } else { + ipRulesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * Optional. Optional list of allowed IP rules.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addIpRules(int index, com.google.cloud.securitycenter.v2.IpRule value) { + if (ipRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIpRulesIsMutable(); + ipRules_.add(index, value); + onChanged(); + } else { + ipRulesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. Optional list of allowed IP rules.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addIpRules(com.google.cloud.securitycenter.v2.IpRule.Builder builderForValue) { + if (ipRulesBuilder_ == null) { + ensureIpRulesIsMutable(); + ipRules_.add(builderForValue.build()); + onChanged(); + } else { + ipRulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. Optional list of allowed IP rules.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addIpRules( + int index, com.google.cloud.securitycenter.v2.IpRule.Builder builderForValue) { + if (ipRulesBuilder_ == null) { + ensureIpRulesIsMutable(); + ipRules_.add(index, builderForValue.build()); + onChanged(); + } else { + ipRulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. Optional list of allowed IP rules.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllIpRules( + java.lang.Iterable values) { + if (ipRulesBuilder_ == null) { + ensureIpRulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ipRules_); + onChanged(); + } else { + ipRulesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * Optional. Optional list of allowed IP rules.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearIpRules() { + if (ipRulesBuilder_ == null) { + ipRules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + ipRulesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Optional list of allowed IP rules.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeIpRules(int index) { + if (ipRulesBuilder_ == null) { + ensureIpRulesIsMutable(); + ipRules_.remove(index); + onChanged(); + } else { + ipRulesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * Optional. Optional list of allowed IP rules.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.securitycenter.v2.IpRule.Builder getIpRulesBuilder(int index) { + return getIpRulesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * Optional. Optional list of allowed IP rules.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.securitycenter.v2.IpRuleOrBuilder getIpRulesOrBuilder(int index) { + if (ipRulesBuilder_ == null) { + return ipRules_.get(index); + } else { + return ipRulesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * Optional. Optional list of allowed IP rules.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getIpRulesOrBuilderList() { + if (ipRulesBuilder_ != null) { + return ipRulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(ipRules_); + } + } + + /** + * + * + *
      +     * Optional. Optional list of allowed IP rules.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.securitycenter.v2.IpRule.Builder addIpRulesBuilder() { + return getIpRulesFieldBuilder() + .addBuilder(com.google.cloud.securitycenter.v2.IpRule.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. Optional list of allowed IP rules.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.securitycenter.v2.IpRule.Builder addIpRulesBuilder(int index) { + return getIpRulesFieldBuilder() + .addBuilder(index, com.google.cloud.securitycenter.v2.IpRule.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. Optional list of allowed IP rules.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getIpRulesBuilderList() { + return getIpRulesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v2.IpRule, + com.google.cloud.securitycenter.v2.IpRule.Builder, + com.google.cloud.securitycenter.v2.IpRuleOrBuilder> + getIpRulesFieldBuilder() { + if (ipRulesBuilder_ == null) { + ipRulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v2.IpRule, + com.google.cloud.securitycenter.v2.IpRule.Builder, + com.google.cloud.securitycenter.v2.IpRuleOrBuilder>( + ipRules_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + ipRules_ = null; + } + return ipRulesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v2.Allowed) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v2.Allowed) + private static final com.google.cloud.securitycenter.v2.Allowed DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v2.Allowed(); + } + + public static com.google.cloud.securitycenter.v2.Allowed getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Allowed parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.Allowed getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/AllowedOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/AllowedOrBuilder.java new file mode 100644 index 000000000000..aea3ff06d12e --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/AllowedOrBuilder.java @@ -0,0 +1,92 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v2/ip_rules.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.securitycenter.v2; + +public interface AllowedOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v2.Allowed) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Optional. Optional list of allowed IP rules.
      +   * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getIpRulesList(); + + /** + * + * + *
      +   * Optional. Optional list of allowed IP rules.
      +   * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.securitycenter.v2.IpRule getIpRules(int index); + + /** + * + * + *
      +   * Optional. Optional list of allowed IP rules.
      +   * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getIpRulesCount(); + + /** + * + * + *
      +   * Optional. Optional list of allowed IP rules.
      +   * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getIpRulesOrBuilderList(); + + /** + * + * + *
      +   * Optional. Optional list of allowed IP rules.
      +   * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.securitycenter.v2.IpRuleOrBuilder getIpRulesOrBuilder(int index); +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/BigQueryDestination.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/BigQueryDestination.java new file mode 100644 index 000000000000..10ced4866c39 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/BigQueryDestination.java @@ -0,0 +1,642 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v2/securitycenter_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.securitycenter.v2; + +/** + * + * + *
      + * The destination big query dataset to export findings to.
      + * 
      + * + * Protobuf type {@code google.cloud.securitycenter.v2.BigQueryDestination} + */ +public final class BigQueryDestination extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v2.BigQueryDestination) + BigQueryDestinationOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BigQueryDestination.newBuilder() to construct. + private BigQueryDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BigQueryDestination() { + dataset_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BigQueryDestination(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v2.SecuritycenterServiceProto + .internal_static_google_cloud_securitycenter_v2_BigQueryDestination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v2.SecuritycenterServiceProto + .internal_static_google_cloud_securitycenter_v2_BigQueryDestination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v2.BigQueryDestination.class, + com.google.cloud.securitycenter.v2.BigQueryDestination.Builder.class); + } + + public static final int DATASET_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object dataset_ = ""; + + /** + * + * + *
      +   * Required. The relative resource name of the destination dataset, in the
      +   * form projects/{projectId}/datasets/{datasetId}.
      +   * 
      + * + * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The dataset. + */ + @java.lang.Override + public java.lang.String getDataset() { + java.lang.Object ref = dataset_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataset_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The relative resource name of the destination dataset, in the
      +   * form projects/{projectId}/datasets/{datasetId}.
      +   * 
      + * + * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for dataset. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDatasetBytes() { + java.lang.Object ref = dataset_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataset_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataset_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataset_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dataset_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycenter.v2.BigQueryDestination)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v2.BigQueryDestination other = + (com.google.cloud.securitycenter.v2.BigQueryDestination) obj; + + if (!getDataset().equals(other.getDataset())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DATASET_FIELD_NUMBER; + hash = (53 * hash) + getDataset().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v2.BigQueryDestination parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.BigQueryDestination parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.BigQueryDestination parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.BigQueryDestination parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.BigQueryDestination parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.BigQueryDestination parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.BigQueryDestination parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.BigQueryDestination parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.BigQueryDestination parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.BigQueryDestination parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.BigQueryDestination parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.BigQueryDestination parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.securitycenter.v2.BigQueryDestination prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * The destination big query dataset to export findings to.
      +   * 
      + * + * Protobuf type {@code google.cloud.securitycenter.v2.BigQueryDestination} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v2.BigQueryDestination) + com.google.cloud.securitycenter.v2.BigQueryDestinationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v2.SecuritycenterServiceProto + .internal_static_google_cloud_securitycenter_v2_BigQueryDestination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v2.SecuritycenterServiceProto + .internal_static_google_cloud_securitycenter_v2_BigQueryDestination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v2.BigQueryDestination.class, + com.google.cloud.securitycenter.v2.BigQueryDestination.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v2.BigQueryDestination.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dataset_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v2.SecuritycenterServiceProto + .internal_static_google_cloud_securitycenter_v2_BigQueryDestination_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.BigQueryDestination getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v2.BigQueryDestination.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.BigQueryDestination build() { + com.google.cloud.securitycenter.v2.BigQueryDestination result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.BigQueryDestination buildPartial() { + com.google.cloud.securitycenter.v2.BigQueryDestination result = + new com.google.cloud.securitycenter.v2.BigQueryDestination(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.securitycenter.v2.BigQueryDestination result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dataset_ = dataset_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v2.BigQueryDestination) { + return mergeFrom((com.google.cloud.securitycenter.v2.BigQueryDestination) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v2.BigQueryDestination other) { + if (other == com.google.cloud.securitycenter.v2.BigQueryDestination.getDefaultInstance()) + return this; + if (!other.getDataset().isEmpty()) { + dataset_ = other.dataset_; + 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: + { + dataset_ = 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 dataset_ = ""; + + /** + * + * + *
      +     * Required. The relative resource name of the destination dataset, in the
      +     * form projects/{projectId}/datasets/{datasetId}.
      +     * 
      + * + * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The dataset. + */ + public java.lang.String getDataset() { + java.lang.Object ref = dataset_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataset_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The relative resource name of the destination dataset, in the
      +     * form projects/{projectId}/datasets/{datasetId}.
      +     * 
      + * + * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for dataset. + */ + public com.google.protobuf.ByteString getDatasetBytes() { + java.lang.Object ref = dataset_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The relative resource name of the destination dataset, in the
      +     * form projects/{projectId}/datasets/{datasetId}.
      +     * 
      + * + * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The dataset to set. + * @return This builder for chaining. + */ + public Builder setDataset(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dataset_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The relative resource name of the destination dataset, in the
      +     * form projects/{projectId}/datasets/{datasetId}.
      +     * 
      + * + * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDataset() { + dataset_ = getDefaultInstance().getDataset(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The relative resource name of the destination dataset, in the
      +     * form projects/{projectId}/datasets/{datasetId}.
      +     * 
      + * + * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for dataset to set. + * @return This builder for chaining. + */ + public Builder setDatasetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataset_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v2.BigQueryDestination) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v2.BigQueryDestination) + private static final com.google.cloud.securitycenter.v2.BigQueryDestination DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v2.BigQueryDestination(); + } + + public static com.google.cloud.securitycenter.v2.BigQueryDestination getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BigQueryDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.BigQueryDestination getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/BigQueryDestinationOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/BigQueryDestinationOrBuilder.java new file mode 100644 index 000000000000..2c1a29cdfcb5 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/BigQueryDestinationOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v2/securitycenter_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.securitycenter.v2; + +public interface BigQueryDestinationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v2.BigQueryDestination) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The relative resource name of the destination dataset, in the
      +   * form projects/{projectId}/datasets/{datasetId}.
      +   * 
      + * + * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The dataset. + */ + java.lang.String getDataset(); + + /** + * + * + *
      +   * Required. The relative resource name of the destination dataset, in the
      +   * form projects/{projectId}/datasets/{datasetId}.
      +   * 
      + * + * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for dataset. + */ + com.google.protobuf.ByteString getDatasetBytes(); +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/Chokepoint.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/Chokepoint.java new file mode 100644 index 000000000000..7affdd080a03 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/Chokepoint.java @@ -0,0 +1,764 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v2/chokepoint.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.securitycenter.v2; + +/** + * + * + *
      + * Contains details about a chokepoint, which is a resource or resource group
      + * where high-risk attack paths converge, based on [attack path simulations]
      + * (https://cloud.google.com/security-command-center/docs/attack-exposure-learn#attack_path_simulations).
      + * 
      + * + * Protobuf type {@code google.cloud.securitycenter.v2.Chokepoint} + */ +public final class Chokepoint extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v2.Chokepoint) + ChokepointOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Chokepoint.newBuilder() to construct. + private Chokepoint(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Chokepoint() { + relatedFindings_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Chokepoint(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v2.ChokepointProto + .internal_static_google_cloud_securitycenter_v2_Chokepoint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v2.ChokepointProto + .internal_static_google_cloud_securitycenter_v2_Chokepoint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v2.Chokepoint.class, + com.google.cloud.securitycenter.v2.Chokepoint.Builder.class); + } + + public static final int RELATED_FINDINGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList relatedFindings_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
      +   * List of resource names of findings associated with this chokepoint.
      +   * For example, organizations/123/sources/456/findings/789.
      +   * This list will have at most 100 findings.
      +   * 
      + * + * repeated string related_findings = 1; + * + * @return A list containing the relatedFindings. + */ + public com.google.protobuf.ProtocolStringList getRelatedFindingsList() { + return relatedFindings_; + } + + /** + * + * + *
      +   * List of resource names of findings associated with this chokepoint.
      +   * For example, organizations/123/sources/456/findings/789.
      +   * This list will have at most 100 findings.
      +   * 
      + * + * repeated string related_findings = 1; + * + * @return The count of relatedFindings. + */ + public int getRelatedFindingsCount() { + return relatedFindings_.size(); + } + + /** + * + * + *
      +   * List of resource names of findings associated with this chokepoint.
      +   * For example, organizations/123/sources/456/findings/789.
      +   * This list will have at most 100 findings.
      +   * 
      + * + * repeated string related_findings = 1; + * + * @param index The index of the element to return. + * @return The relatedFindings at the given index. + */ + public java.lang.String getRelatedFindings(int index) { + return relatedFindings_.get(index); + } + + /** + * + * + *
      +   * List of resource names of findings associated with this chokepoint.
      +   * For example, organizations/123/sources/456/findings/789.
      +   * This list will have at most 100 findings.
      +   * 
      + * + * repeated string related_findings = 1; + * + * @param index The index of the value to return. + * @return The bytes of the relatedFindings at the given index. + */ + public com.google.protobuf.ByteString getRelatedFindingsBytes(int index) { + return relatedFindings_.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 < relatedFindings_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, relatedFindings_.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 < relatedFindings_.size(); i++) { + dataSize += computeStringSizeNoTag(relatedFindings_.getRaw(i)); + } + size += dataSize; + size += 1 * getRelatedFindingsList().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.cloud.securitycenter.v2.Chokepoint)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v2.Chokepoint other = + (com.google.cloud.securitycenter.v2.Chokepoint) obj; + + if (!getRelatedFindingsList().equals(other.getRelatedFindingsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getRelatedFindingsCount() > 0) { + hash = (37 * hash) + RELATED_FINDINGS_FIELD_NUMBER; + hash = (53 * hash) + getRelatedFindingsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v2.Chokepoint parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.Chokepoint parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.Chokepoint parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.Chokepoint parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.Chokepoint parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.Chokepoint parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.Chokepoint parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.Chokepoint parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.Chokepoint parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.Chokepoint parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.Chokepoint parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.Chokepoint parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.securitycenter.v2.Chokepoint prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Contains details about a chokepoint, which is a resource or resource group
      +   * where high-risk attack paths converge, based on [attack path simulations]
      +   * (https://cloud.google.com/security-command-center/docs/attack-exposure-learn#attack_path_simulations).
      +   * 
      + * + * Protobuf type {@code google.cloud.securitycenter.v2.Chokepoint} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v2.Chokepoint) + com.google.cloud.securitycenter.v2.ChokepointOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v2.ChokepointProto + .internal_static_google_cloud_securitycenter_v2_Chokepoint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v2.ChokepointProto + .internal_static_google_cloud_securitycenter_v2_Chokepoint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v2.Chokepoint.class, + com.google.cloud.securitycenter.v2.Chokepoint.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v2.Chokepoint.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + relatedFindings_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v2.ChokepointProto + .internal_static_google_cloud_securitycenter_v2_Chokepoint_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.Chokepoint getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v2.Chokepoint.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.Chokepoint build() { + com.google.cloud.securitycenter.v2.Chokepoint result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.Chokepoint buildPartial() { + com.google.cloud.securitycenter.v2.Chokepoint result = + new com.google.cloud.securitycenter.v2.Chokepoint(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.securitycenter.v2.Chokepoint result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + relatedFindings_.makeImmutable(); + result.relatedFindings_ = relatedFindings_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v2.Chokepoint) { + return mergeFrom((com.google.cloud.securitycenter.v2.Chokepoint) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v2.Chokepoint other) { + if (other == com.google.cloud.securitycenter.v2.Chokepoint.getDefaultInstance()) return this; + if (!other.relatedFindings_.isEmpty()) { + if (relatedFindings_.isEmpty()) { + relatedFindings_ = other.relatedFindings_; + bitField0_ |= 0x00000001; + } else { + ensureRelatedFindingsIsMutable(); + relatedFindings_.addAll(other.relatedFindings_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + ensureRelatedFindingsIsMutable(); + relatedFindings_.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 relatedFindings_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureRelatedFindingsIsMutable() { + if (!relatedFindings_.isModifiable()) { + relatedFindings_ = new com.google.protobuf.LazyStringArrayList(relatedFindings_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
      +     * List of resource names of findings associated with this chokepoint.
      +     * For example, organizations/123/sources/456/findings/789.
      +     * This list will have at most 100 findings.
      +     * 
      + * + * repeated string related_findings = 1; + * + * @return A list containing the relatedFindings. + */ + public com.google.protobuf.ProtocolStringList getRelatedFindingsList() { + relatedFindings_.makeImmutable(); + return relatedFindings_; + } + + /** + * + * + *
      +     * List of resource names of findings associated with this chokepoint.
      +     * For example, organizations/123/sources/456/findings/789.
      +     * This list will have at most 100 findings.
      +     * 
      + * + * repeated string related_findings = 1; + * + * @return The count of relatedFindings. + */ + public int getRelatedFindingsCount() { + return relatedFindings_.size(); + } + + /** + * + * + *
      +     * List of resource names of findings associated with this chokepoint.
      +     * For example, organizations/123/sources/456/findings/789.
      +     * This list will have at most 100 findings.
      +     * 
      + * + * repeated string related_findings = 1; + * + * @param index The index of the element to return. + * @return The relatedFindings at the given index. + */ + public java.lang.String getRelatedFindings(int index) { + return relatedFindings_.get(index); + } + + /** + * + * + *
      +     * List of resource names of findings associated with this chokepoint.
      +     * For example, organizations/123/sources/456/findings/789.
      +     * This list will have at most 100 findings.
      +     * 
      + * + * repeated string related_findings = 1; + * + * @param index The index of the value to return. + * @return The bytes of the relatedFindings at the given index. + */ + public com.google.protobuf.ByteString getRelatedFindingsBytes(int index) { + return relatedFindings_.getByteString(index); + } + + /** + * + * + *
      +     * List of resource names of findings associated with this chokepoint.
      +     * For example, organizations/123/sources/456/findings/789.
      +     * This list will have at most 100 findings.
      +     * 
      + * + * repeated string related_findings = 1; + * + * @param index The index to set the value at. + * @param value The relatedFindings to set. + * @return This builder for chaining. + */ + public Builder setRelatedFindings(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRelatedFindingsIsMutable(); + relatedFindings_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * List of resource names of findings associated with this chokepoint.
      +     * For example, organizations/123/sources/456/findings/789.
      +     * This list will have at most 100 findings.
      +     * 
      + * + * repeated string related_findings = 1; + * + * @param value The relatedFindings to add. + * @return This builder for chaining. + */ + public Builder addRelatedFindings(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRelatedFindingsIsMutable(); + relatedFindings_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * List of resource names of findings associated with this chokepoint.
      +     * For example, organizations/123/sources/456/findings/789.
      +     * This list will have at most 100 findings.
      +     * 
      + * + * repeated string related_findings = 1; + * + * @param values The relatedFindings to add. + * @return This builder for chaining. + */ + public Builder addAllRelatedFindings(java.lang.Iterable values) { + ensureRelatedFindingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, relatedFindings_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * List of resource names of findings associated with this chokepoint.
      +     * For example, organizations/123/sources/456/findings/789.
      +     * This list will have at most 100 findings.
      +     * 
      + * + * repeated string related_findings = 1; + * + * @return This builder for chaining. + */ + public Builder clearRelatedFindings() { + relatedFindings_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
      +     * List of resource names of findings associated with this chokepoint.
      +     * For example, organizations/123/sources/456/findings/789.
      +     * This list will have at most 100 findings.
      +     * 
      + * + * repeated string related_findings = 1; + * + * @param value The bytes of the relatedFindings to add. + * @return This builder for chaining. + */ + public Builder addRelatedFindingsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRelatedFindingsIsMutable(); + relatedFindings_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v2.Chokepoint) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v2.Chokepoint) + private static final com.google.cloud.securitycenter.v2.Chokepoint DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v2.Chokepoint(); + } + + public static com.google.cloud.securitycenter.v2.Chokepoint getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Chokepoint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.Chokepoint getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ChokepointOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ChokepointOrBuilder.java new file mode 100644 index 000000000000..3aa44a5df7ac --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ChokepointOrBuilder.java @@ -0,0 +1,88 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v2/chokepoint.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.securitycenter.v2; + +public interface ChokepointOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v2.Chokepoint) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * List of resource names of findings associated with this chokepoint.
      +   * For example, organizations/123/sources/456/findings/789.
      +   * This list will have at most 100 findings.
      +   * 
      + * + * repeated string related_findings = 1; + * + * @return A list containing the relatedFindings. + */ + java.util.List getRelatedFindingsList(); + + /** + * + * + *
      +   * List of resource names of findings associated with this chokepoint.
      +   * For example, organizations/123/sources/456/findings/789.
      +   * This list will have at most 100 findings.
      +   * 
      + * + * repeated string related_findings = 1; + * + * @return The count of relatedFindings. + */ + int getRelatedFindingsCount(); + + /** + * + * + *
      +   * List of resource names of findings associated with this chokepoint.
      +   * For example, organizations/123/sources/456/findings/789.
      +   * This list will have at most 100 findings.
      +   * 
      + * + * repeated string related_findings = 1; + * + * @param index The index of the element to return. + * @return The relatedFindings at the given index. + */ + java.lang.String getRelatedFindings(int index); + + /** + * + * + *
      +   * List of resource names of findings associated with this chokepoint.
      +   * For example, organizations/123/sources/456/findings/789.
      +   * This list will have at most 100 findings.
      +   * 
      + * + * repeated string related_findings = 1; + * + * @param index The index of the value to return. + * @return The bytes of the relatedFindings at the given index. + */ + com.google.protobuf.ByteString getRelatedFindingsBytes(int index); +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ChokepointProto.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ChokepointProto.java new file mode 100644 index 000000000000..7ba5a9b59382 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ChokepointProto.java @@ -0,0 +1,69 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v2/chokepoint.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.securitycenter.v2; + +public final class ChokepointProto { + private ChokepointProto() {} + + 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_cloud_securitycenter_v2_Chokepoint_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v2_Chokepoint_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/cloud/securitycenter/v2/chokepo" + + "int.proto\022\036google.cloud.securitycenter.v" + + "2\"&\n\nChokepoint\022\030\n\020related_findings\030\001 \003(" + + "\tB\351\001\n\"com.google.cloud.securitycenter.v2" + + "B\017ChokepointProtoP\001ZJcloud.google.com/go" + + "/securitycenter/apiv2/securitycenterpb;s" + + "ecuritycenterpb\252\002\036Google.Cloud.SecurityC" + + "enter.V2\312\002\036Google\\Cloud\\SecurityCenter\\V" + + "2\352\002!Google::Cloud::SecurityCenter::V2b\006p" + + "roto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_cloud_securitycenter_v2_Chokepoint_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v2_Chokepoint_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v2_Chokepoint_descriptor, + new java.lang.String[] { + "RelatedFindings", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/CloudProvider.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/CloudProvider.java index 47758be15b44..678886917af6 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/CloudProvider.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/CloudProvider.java @@ -43,7 +43,7 @@ public enum CloudProvider implements com.google.protobuf.ProtocolMessageEnum { * * *
      -   * The cloud provider is Google Cloud Platform.
      +   * The cloud provider is Google Cloud.
          * 
      * * GOOGLE_CLOUD_PLATFORM = 1; @@ -87,7 +87,7 @@ public enum CloudProvider implements com.google.protobuf.ProtocolMessageEnum { * * *
      -   * The cloud provider is Google Cloud Platform.
      +   * The cloud provider is Google Cloud.
          * 
      * * GOOGLE_CLOUD_PLATFORM = 1; diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/Cwe.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/Cwe.java new file mode 100644 index 000000000000..9f947eda8918 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/Cwe.java @@ -0,0 +1,1173 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v2/vulnerability.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.securitycenter.v2; + +/** + * + * + *
      + * CWE stands for Common Weakness Enumeration. Information about this weakness,
      + * as described by [CWE](https://cwe.mitre.org/).
      + * 
      + * + * Protobuf type {@code google.cloud.securitycenter.v2.Cwe} + */ +public final class Cwe extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v2.Cwe) + CweOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Cwe.newBuilder() to construct. + private Cwe(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Cwe() { + id_ = ""; + references_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Cwe(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v2.VulnerabilityProto + .internal_static_google_cloud_securitycenter_v2_Cwe_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v2.VulnerabilityProto + .internal_static_google_cloud_securitycenter_v2_Cwe_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v2.Cwe.class, + com.google.cloud.securitycenter.v2.Cwe.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + + /** + * + * + *
      +   * The CWE identifier, e.g. CWE-94
      +   * 
      + * + * string id = 1; + * + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + + /** + * + * + *
      +   * The CWE identifier, e.g. CWE-94
      +   * 
      + * + * string id = 1; + * + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REFERENCES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List references_; + + /** + * + * + *
      +   * Any reference to the details on the CWE, for example,
      +   * https://cwe.mitre.org/data/definitions/94.html
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.Reference references = 2; + */ + @java.lang.Override + public java.util.List getReferencesList() { + return references_; + } + + /** + * + * + *
      +   * Any reference to the details on the CWE, for example,
      +   * https://cwe.mitre.org/data/definitions/94.html
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.Reference references = 2; + */ + @java.lang.Override + public java.util.List + getReferencesOrBuilderList() { + return references_; + } + + /** + * + * + *
      +   * Any reference to the details on the CWE, for example,
      +   * https://cwe.mitre.org/data/definitions/94.html
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.Reference references = 2; + */ + @java.lang.Override + public int getReferencesCount() { + return references_.size(); + } + + /** + * + * + *
      +   * Any reference to the details on the CWE, for example,
      +   * https://cwe.mitre.org/data/definitions/94.html
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.Reference references = 2; + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.Reference getReferences(int index) { + return references_.get(index); + } + + /** + * + * + *
      +   * Any reference to the details on the CWE, for example,
      +   * https://cwe.mitre.org/data/definitions/94.html
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.Reference references = 2; + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.ReferenceOrBuilder getReferencesOrBuilder(int index) { + return references_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + for (int i = 0; i < references_.size(); i++) { + output.writeMessage(2, references_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + for (int i = 0; i < references_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, references_.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.cloud.securitycenter.v2.Cwe)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v2.Cwe other = (com.google.cloud.securitycenter.v2.Cwe) obj; + + if (!getId().equals(other.getId())) return false; + if (!getReferencesList().equals(other.getReferencesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + if (getReferencesCount() > 0) { + hash = (37 * hash) + REFERENCES_FIELD_NUMBER; + hash = (53 * hash) + getReferencesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v2.Cwe parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.Cwe parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.Cwe parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.Cwe parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.Cwe parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.Cwe parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.Cwe parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.Cwe parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.Cwe parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.Cwe parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.Cwe parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.Cwe parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.securitycenter.v2.Cwe prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * CWE stands for Common Weakness Enumeration. Information about this weakness,
      +   * as described by [CWE](https://cwe.mitre.org/).
      +   * 
      + * + * Protobuf type {@code google.cloud.securitycenter.v2.Cwe} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v2.Cwe) + com.google.cloud.securitycenter.v2.CweOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v2.VulnerabilityProto + .internal_static_google_cloud_securitycenter_v2_Cwe_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v2.VulnerabilityProto + .internal_static_google_cloud_securitycenter_v2_Cwe_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v2.Cwe.class, + com.google.cloud.securitycenter.v2.Cwe.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v2.Cwe.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + if (referencesBuilder_ == null) { + references_ = java.util.Collections.emptyList(); + } else { + references_ = null; + referencesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v2.VulnerabilityProto + .internal_static_google_cloud_securitycenter_v2_Cwe_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.Cwe getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v2.Cwe.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.Cwe build() { + com.google.cloud.securitycenter.v2.Cwe result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.Cwe buildPartial() { + com.google.cloud.securitycenter.v2.Cwe result = + new com.google.cloud.securitycenter.v2.Cwe(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.securitycenter.v2.Cwe result) { + if (referencesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + references_ = java.util.Collections.unmodifiableList(references_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.references_ = references_; + } else { + result.references_ = referencesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.securitycenter.v2.Cwe result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v2.Cwe) { + return mergeFrom((com.google.cloud.securitycenter.v2.Cwe) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v2.Cwe other) { + if (other == com.google.cloud.securitycenter.v2.Cwe.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (referencesBuilder_ == null) { + if (!other.references_.isEmpty()) { + if (references_.isEmpty()) { + references_ = other.references_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureReferencesIsMutable(); + references_.addAll(other.references_); + } + onChanged(); + } + } else { + if (!other.references_.isEmpty()) { + if (referencesBuilder_.isEmpty()) { + referencesBuilder_.dispose(); + referencesBuilder_ = null; + references_ = other.references_; + bitField0_ = (bitField0_ & ~0x00000002); + referencesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getReferencesFieldBuilder() + : null; + } else { + referencesBuilder_.addAllMessages(other.references_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.securitycenter.v2.Reference m = + input.readMessage( + com.google.cloud.securitycenter.v2.Reference.parser(), extensionRegistry); + if (referencesBuilder_ == null) { + ensureReferencesIsMutable(); + references_.add(m); + } else { + referencesBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object id_ = ""; + + /** + * + * + *
      +     * The CWE identifier, e.g. CWE-94
      +     * 
      + * + * string id = 1; + * + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * The CWE identifier, e.g. CWE-94
      +     * 
      + * + * string id = 1; + * + * @return The bytes for id. + */ + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * The CWE identifier, e.g. CWE-94
      +     * 
      + * + * string id = 1; + * + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The CWE identifier, e.g. CWE-94
      +     * 
      + * + * string id = 1; + * + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * The CWE identifier, e.g. CWE-94
      +     * 
      + * + * string id = 1; + * + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List references_ = + java.util.Collections.emptyList(); + + private void ensureReferencesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + references_ = + new java.util.ArrayList(references_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v2.Reference, + com.google.cloud.securitycenter.v2.Reference.Builder, + com.google.cloud.securitycenter.v2.ReferenceOrBuilder> + referencesBuilder_; + + /** + * + * + *
      +     * Any reference to the details on the CWE, for example,
      +     * https://cwe.mitre.org/data/definitions/94.html
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.Reference references = 2; + */ + public java.util.List getReferencesList() { + if (referencesBuilder_ == null) { + return java.util.Collections.unmodifiableList(references_); + } else { + return referencesBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * Any reference to the details on the CWE, for example,
      +     * https://cwe.mitre.org/data/definitions/94.html
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.Reference references = 2; + */ + public int getReferencesCount() { + if (referencesBuilder_ == null) { + return references_.size(); + } else { + return referencesBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * Any reference to the details on the CWE, for example,
      +     * https://cwe.mitre.org/data/definitions/94.html
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.Reference references = 2; + */ + public com.google.cloud.securitycenter.v2.Reference getReferences(int index) { + if (referencesBuilder_ == null) { + return references_.get(index); + } else { + return referencesBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * Any reference to the details on the CWE, for example,
      +     * https://cwe.mitre.org/data/definitions/94.html
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.Reference references = 2; + */ + public Builder setReferences(int index, com.google.cloud.securitycenter.v2.Reference value) { + if (referencesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReferencesIsMutable(); + references_.set(index, value); + onChanged(); + } else { + referencesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Any reference to the details on the CWE, for example,
      +     * https://cwe.mitre.org/data/definitions/94.html
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.Reference references = 2; + */ + public Builder setReferences( + int index, com.google.cloud.securitycenter.v2.Reference.Builder builderForValue) { + if (referencesBuilder_ == null) { + ensureReferencesIsMutable(); + references_.set(index, builderForValue.build()); + onChanged(); + } else { + referencesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Any reference to the details on the CWE, for example,
      +     * https://cwe.mitre.org/data/definitions/94.html
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.Reference references = 2; + */ + public Builder addReferences(com.google.cloud.securitycenter.v2.Reference value) { + if (referencesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReferencesIsMutable(); + references_.add(value); + onChanged(); + } else { + referencesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * Any reference to the details on the CWE, for example,
      +     * https://cwe.mitre.org/data/definitions/94.html
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.Reference references = 2; + */ + public Builder addReferences(int index, com.google.cloud.securitycenter.v2.Reference value) { + if (referencesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReferencesIsMutable(); + references_.add(index, value); + onChanged(); + } else { + referencesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Any reference to the details on the CWE, for example,
      +     * https://cwe.mitre.org/data/definitions/94.html
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.Reference references = 2; + */ + public Builder addReferences( + com.google.cloud.securitycenter.v2.Reference.Builder builderForValue) { + if (referencesBuilder_ == null) { + ensureReferencesIsMutable(); + references_.add(builderForValue.build()); + onChanged(); + } else { + referencesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Any reference to the details on the CWE, for example,
      +     * https://cwe.mitre.org/data/definitions/94.html
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.Reference references = 2; + */ + public Builder addReferences( + int index, com.google.cloud.securitycenter.v2.Reference.Builder builderForValue) { + if (referencesBuilder_ == null) { + ensureReferencesIsMutable(); + references_.add(index, builderForValue.build()); + onChanged(); + } else { + referencesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Any reference to the details on the CWE, for example,
      +     * https://cwe.mitre.org/data/definitions/94.html
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.Reference references = 2; + */ + public Builder addAllReferences( + java.lang.Iterable values) { + if (referencesBuilder_ == null) { + ensureReferencesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, references_); + onChanged(); + } else { + referencesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * Any reference to the details on the CWE, for example,
      +     * https://cwe.mitre.org/data/definitions/94.html
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.Reference references = 2; + */ + public Builder clearReferences() { + if (referencesBuilder_ == null) { + references_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + referencesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Any reference to the details on the CWE, for example,
      +     * https://cwe.mitre.org/data/definitions/94.html
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.Reference references = 2; + */ + public Builder removeReferences(int index) { + if (referencesBuilder_ == null) { + ensureReferencesIsMutable(); + references_.remove(index); + onChanged(); + } else { + referencesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * Any reference to the details on the CWE, for example,
      +     * https://cwe.mitre.org/data/definitions/94.html
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.Reference references = 2; + */ + public com.google.cloud.securitycenter.v2.Reference.Builder getReferencesBuilder(int index) { + return getReferencesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * Any reference to the details on the CWE, for example,
      +     * https://cwe.mitre.org/data/definitions/94.html
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.Reference references = 2; + */ + public com.google.cloud.securitycenter.v2.ReferenceOrBuilder getReferencesOrBuilder(int index) { + if (referencesBuilder_ == null) { + return references_.get(index); + } else { + return referencesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * Any reference to the details on the CWE, for example,
      +     * https://cwe.mitre.org/data/definitions/94.html
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.Reference references = 2; + */ + public java.util.List + getReferencesOrBuilderList() { + if (referencesBuilder_ != null) { + return referencesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(references_); + } + } + + /** + * + * + *
      +     * Any reference to the details on the CWE, for example,
      +     * https://cwe.mitre.org/data/definitions/94.html
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.Reference references = 2; + */ + public com.google.cloud.securitycenter.v2.Reference.Builder addReferencesBuilder() { + return getReferencesFieldBuilder() + .addBuilder(com.google.cloud.securitycenter.v2.Reference.getDefaultInstance()); + } + + /** + * + * + *
      +     * Any reference to the details on the CWE, for example,
      +     * https://cwe.mitre.org/data/definitions/94.html
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.Reference references = 2; + */ + public com.google.cloud.securitycenter.v2.Reference.Builder addReferencesBuilder(int index) { + return getReferencesFieldBuilder() + .addBuilder(index, com.google.cloud.securitycenter.v2.Reference.getDefaultInstance()); + } + + /** + * + * + *
      +     * Any reference to the details on the CWE, for example,
      +     * https://cwe.mitre.org/data/definitions/94.html
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.Reference references = 2; + */ + public java.util.List + getReferencesBuilderList() { + return getReferencesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v2.Reference, + com.google.cloud.securitycenter.v2.Reference.Builder, + com.google.cloud.securitycenter.v2.ReferenceOrBuilder> + getReferencesFieldBuilder() { + if (referencesBuilder_ == null) { + referencesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v2.Reference, + com.google.cloud.securitycenter.v2.Reference.Builder, + com.google.cloud.securitycenter.v2.ReferenceOrBuilder>( + references_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + references_ = null; + } + return referencesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v2.Cwe) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v2.Cwe) + private static final com.google.cloud.securitycenter.v2.Cwe DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v2.Cwe(); + } + + public static com.google.cloud.securitycenter.v2.Cwe getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Cwe parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.Cwe getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/CweOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/CweOrBuilder.java new file mode 100644 index 000000000000..e873df08ee20 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/CweOrBuilder.java @@ -0,0 +1,113 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v2/vulnerability.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.securitycenter.v2; + +public interface CweOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v2.Cwe) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * The CWE identifier, e.g. CWE-94
      +   * 
      + * + * string id = 1; + * + * @return The id. + */ + java.lang.String getId(); + + /** + * + * + *
      +   * The CWE identifier, e.g. CWE-94
      +   * 
      + * + * string id = 1; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
      +   * Any reference to the details on the CWE, for example,
      +   * https://cwe.mitre.org/data/definitions/94.html
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.Reference references = 2; + */ + java.util.List getReferencesList(); + + /** + * + * + *
      +   * Any reference to the details on the CWE, for example,
      +   * https://cwe.mitre.org/data/definitions/94.html
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.Reference references = 2; + */ + com.google.cloud.securitycenter.v2.Reference getReferences(int index); + + /** + * + * + *
      +   * Any reference to the details on the CWE, for example,
      +   * https://cwe.mitre.org/data/definitions/94.html
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.Reference references = 2; + */ + int getReferencesCount(); + + /** + * + * + *
      +   * Any reference to the details on the CWE, for example,
      +   * https://cwe.mitre.org/data/definitions/94.html
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.Reference references = 2; + */ + java.util.List + getReferencesOrBuilderList(); + + /** + * + * + *
      +   * Any reference to the details on the CWE, for example,
      +   * https://cwe.mitre.org/data/definitions/94.html
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.Reference references = 2; + */ + com.google.cloud.securitycenter.v2.ReferenceOrBuilder getReferencesOrBuilder(int index); +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/Denied.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/Denied.java new file mode 100644 index 000000000000..40fd5e96b2fd --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/Denied.java @@ -0,0 +1,1004 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v2/ip_rules.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.securitycenter.v2; + +/** + * + * + *
      + * Denied IP rule.
      + * 
      + * + * Protobuf type {@code google.cloud.securitycenter.v2.Denied} + */ +public final class Denied extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v2.Denied) + DeniedOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Denied.newBuilder() to construct. + private Denied(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Denied() { + ipRules_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Denied(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v2.IpRulesProto + .internal_static_google_cloud_securitycenter_v2_Denied_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v2.IpRulesProto + .internal_static_google_cloud_securitycenter_v2_Denied_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v2.Denied.class, + com.google.cloud.securitycenter.v2.Denied.Builder.class); + } + + public static final int IP_RULES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List ipRules_; + + /** + * + * + *
      +   * Optional. Optional list of denied IP rules.
      +   * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getIpRulesList() { + return ipRules_; + } + + /** + * + * + *
      +   * Optional. Optional list of denied IP rules.
      +   * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getIpRulesOrBuilderList() { + return ipRules_; + } + + /** + * + * + *
      +   * Optional. Optional list of denied IP rules.
      +   * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getIpRulesCount() { + return ipRules_.size(); + } + + /** + * + * + *
      +   * Optional. Optional list of denied IP rules.
      +   * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.IpRule getIpRules(int index) { + return ipRules_.get(index); + } + + /** + * + * + *
      +   * Optional. Optional list of denied IP rules.
      +   * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.IpRuleOrBuilder getIpRulesOrBuilder(int index) { + return ipRules_.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 < ipRules_.size(); i++) { + output.writeMessage(1, ipRules_.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 < ipRules_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, ipRules_.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.cloud.securitycenter.v2.Denied)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v2.Denied other = + (com.google.cloud.securitycenter.v2.Denied) obj; + + if (!getIpRulesList().equals(other.getIpRulesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getIpRulesCount() > 0) { + hash = (37 * hash) + IP_RULES_FIELD_NUMBER; + hash = (53 * hash) + getIpRulesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v2.Denied parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.Denied parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.Denied parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.Denied parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.Denied parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.Denied parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.Denied parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.Denied parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.Denied parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.Denied parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.Denied parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.Denied parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.securitycenter.v2.Denied prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Denied IP rule.
      +   * 
      + * + * Protobuf type {@code google.cloud.securitycenter.v2.Denied} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v2.Denied) + com.google.cloud.securitycenter.v2.DeniedOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v2.IpRulesProto + .internal_static_google_cloud_securitycenter_v2_Denied_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v2.IpRulesProto + .internal_static_google_cloud_securitycenter_v2_Denied_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v2.Denied.class, + com.google.cloud.securitycenter.v2.Denied.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v2.Denied.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (ipRulesBuilder_ == null) { + ipRules_ = java.util.Collections.emptyList(); + } else { + ipRules_ = null; + ipRulesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v2.IpRulesProto + .internal_static_google_cloud_securitycenter_v2_Denied_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.Denied getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v2.Denied.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.Denied build() { + com.google.cloud.securitycenter.v2.Denied result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.Denied buildPartial() { + com.google.cloud.securitycenter.v2.Denied result = + new com.google.cloud.securitycenter.v2.Denied(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.securitycenter.v2.Denied result) { + if (ipRulesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + ipRules_ = java.util.Collections.unmodifiableList(ipRules_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.ipRules_ = ipRules_; + } else { + result.ipRules_ = ipRulesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.securitycenter.v2.Denied result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v2.Denied) { + return mergeFrom((com.google.cloud.securitycenter.v2.Denied) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v2.Denied other) { + if (other == com.google.cloud.securitycenter.v2.Denied.getDefaultInstance()) return this; + if (ipRulesBuilder_ == null) { + if (!other.ipRules_.isEmpty()) { + if (ipRules_.isEmpty()) { + ipRules_ = other.ipRules_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureIpRulesIsMutable(); + ipRules_.addAll(other.ipRules_); + } + onChanged(); + } + } else { + if (!other.ipRules_.isEmpty()) { + if (ipRulesBuilder_.isEmpty()) { + ipRulesBuilder_.dispose(); + ipRulesBuilder_ = null; + ipRules_ = other.ipRules_; + bitField0_ = (bitField0_ & ~0x00000001); + ipRulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getIpRulesFieldBuilder() + : null; + } else { + ipRulesBuilder_.addAllMessages(other.ipRules_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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.cloud.securitycenter.v2.IpRule m = + input.readMessage( + com.google.cloud.securitycenter.v2.IpRule.parser(), extensionRegistry); + if (ipRulesBuilder_ == null) { + ensureIpRulesIsMutable(); + ipRules_.add(m); + } else { + ipRulesBuilder_.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 ipRules_ = + java.util.Collections.emptyList(); + + private void ensureIpRulesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + ipRules_ = new java.util.ArrayList(ipRules_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v2.IpRule, + com.google.cloud.securitycenter.v2.IpRule.Builder, + com.google.cloud.securitycenter.v2.IpRuleOrBuilder> + ipRulesBuilder_; + + /** + * + * + *
      +     * Optional. Optional list of denied IP rules.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getIpRulesList() { + if (ipRulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(ipRules_); + } else { + return ipRulesBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * Optional. Optional list of denied IP rules.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getIpRulesCount() { + if (ipRulesBuilder_ == null) { + return ipRules_.size(); + } else { + return ipRulesBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * Optional. Optional list of denied IP rules.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.securitycenter.v2.IpRule getIpRules(int index) { + if (ipRulesBuilder_ == null) { + return ipRules_.get(index); + } else { + return ipRulesBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * Optional. Optional list of denied IP rules.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIpRules(int index, com.google.cloud.securitycenter.v2.IpRule value) { + if (ipRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIpRulesIsMutable(); + ipRules_.set(index, value); + onChanged(); + } else { + ipRulesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. Optional list of denied IP rules.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIpRules( + int index, com.google.cloud.securitycenter.v2.IpRule.Builder builderForValue) { + if (ipRulesBuilder_ == null) { + ensureIpRulesIsMutable(); + ipRules_.set(index, builderForValue.build()); + onChanged(); + } else { + ipRulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. Optional list of denied IP rules.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addIpRules(com.google.cloud.securitycenter.v2.IpRule value) { + if (ipRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIpRulesIsMutable(); + ipRules_.add(value); + onChanged(); + } else { + ipRulesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * Optional. Optional list of denied IP rules.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addIpRules(int index, com.google.cloud.securitycenter.v2.IpRule value) { + if (ipRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIpRulesIsMutable(); + ipRules_.add(index, value); + onChanged(); + } else { + ipRulesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. Optional list of denied IP rules.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addIpRules(com.google.cloud.securitycenter.v2.IpRule.Builder builderForValue) { + if (ipRulesBuilder_ == null) { + ensureIpRulesIsMutable(); + ipRules_.add(builderForValue.build()); + onChanged(); + } else { + ipRulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. Optional list of denied IP rules.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addIpRules( + int index, com.google.cloud.securitycenter.v2.IpRule.Builder builderForValue) { + if (ipRulesBuilder_ == null) { + ensureIpRulesIsMutable(); + ipRules_.add(index, builderForValue.build()); + onChanged(); + } else { + ipRulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. Optional list of denied IP rules.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllIpRules( + java.lang.Iterable values) { + if (ipRulesBuilder_ == null) { + ensureIpRulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ipRules_); + onChanged(); + } else { + ipRulesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * Optional. Optional list of denied IP rules.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearIpRules() { + if (ipRulesBuilder_ == null) { + ipRules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + ipRulesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Optional list of denied IP rules.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeIpRules(int index) { + if (ipRulesBuilder_ == null) { + ensureIpRulesIsMutable(); + ipRules_.remove(index); + onChanged(); + } else { + ipRulesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * Optional. Optional list of denied IP rules.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.securitycenter.v2.IpRule.Builder getIpRulesBuilder(int index) { + return getIpRulesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * Optional. Optional list of denied IP rules.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.securitycenter.v2.IpRuleOrBuilder getIpRulesOrBuilder(int index) { + if (ipRulesBuilder_ == null) { + return ipRules_.get(index); + } else { + return ipRulesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * Optional. Optional list of denied IP rules.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getIpRulesOrBuilderList() { + if (ipRulesBuilder_ != null) { + return ipRulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(ipRules_); + } + } + + /** + * + * + *
      +     * Optional. Optional list of denied IP rules.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.securitycenter.v2.IpRule.Builder addIpRulesBuilder() { + return getIpRulesFieldBuilder() + .addBuilder(com.google.cloud.securitycenter.v2.IpRule.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. Optional list of denied IP rules.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.securitycenter.v2.IpRule.Builder addIpRulesBuilder(int index) { + return getIpRulesFieldBuilder() + .addBuilder(index, com.google.cloud.securitycenter.v2.IpRule.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. Optional list of denied IP rules.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getIpRulesBuilderList() { + return getIpRulesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v2.IpRule, + com.google.cloud.securitycenter.v2.IpRule.Builder, + com.google.cloud.securitycenter.v2.IpRuleOrBuilder> + getIpRulesFieldBuilder() { + if (ipRulesBuilder_ == null) { + ipRulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v2.IpRule, + com.google.cloud.securitycenter.v2.IpRule.Builder, + com.google.cloud.securitycenter.v2.IpRuleOrBuilder>( + ipRules_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + ipRules_ = null; + } + return ipRulesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v2.Denied) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v2.Denied) + private static final com.google.cloud.securitycenter.v2.Denied DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v2.Denied(); + } + + public static com.google.cloud.securitycenter.v2.Denied getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Denied parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.Denied getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/DeniedOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/DeniedOrBuilder.java new file mode 100644 index 000000000000..06fe23065d6c --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/DeniedOrBuilder.java @@ -0,0 +1,92 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v2/ip_rules.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.securitycenter.v2; + +public interface DeniedOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v2.Denied) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Optional. Optional list of denied IP rules.
      +   * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getIpRulesList(); + + /** + * + * + *
      +   * Optional. Optional list of denied IP rules.
      +   * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.securitycenter.v2.IpRule getIpRules(int index); + + /** + * + * + *
      +   * Optional. Optional list of denied IP rules.
      +   * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getIpRulesCount(); + + /** + * + * + *
      +   * Optional. Optional list of denied IP rules.
      +   * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getIpRulesOrBuilderList(); + + /** + * + * + *
      +   * Optional. Optional list of denied IP rules.
      +   * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule ip_rules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.securitycenter.v2.IpRuleOrBuilder getIpRulesOrBuilder(int index); +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/Disk.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/Disk.java index 7b58e6f39f40..7ef233f1ef55 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/Disk.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/Disk.java @@ -74,7 +74,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
          * The name of the disk, for example,
      -   * `https://www.googleapis.com/compute/v1/projects/{project-id}/zones/{zone-id}/disks/{disk-id}`.
      +   * "https://www.googleapis.com/compute/v1/projects/{project-id}/zones/{zone-id}/disks/{disk-id}".
          * 
      * * string name = 1; @@ -99,7 +99,7 @@ public java.lang.String getName() { * *
          * The name of the disk, for example,
      -   * `https://www.googleapis.com/compute/v1/projects/{project-id}/zones/{zone-id}/disks/{disk-id}`.
      +   * "https://www.googleapis.com/compute/v1/projects/{project-id}/zones/{zone-id}/disks/{disk-id}".
          * 
      * * string name = 1; @@ -467,7 +467,7 @@ public Builder mergeFrom( * *
            * The name of the disk, for example,
      -     * `https://www.googleapis.com/compute/v1/projects/{project-id}/zones/{zone-id}/disks/{disk-id}`.
      +     * "https://www.googleapis.com/compute/v1/projects/{project-id}/zones/{zone-id}/disks/{disk-id}".
            * 
      * * string name = 1; @@ -491,7 +491,7 @@ public java.lang.String getName() { * *
            * The name of the disk, for example,
      -     * `https://www.googleapis.com/compute/v1/projects/{project-id}/zones/{zone-id}/disks/{disk-id}`.
      +     * "https://www.googleapis.com/compute/v1/projects/{project-id}/zones/{zone-id}/disks/{disk-id}".
            * 
      * * string name = 1; @@ -515,7 +515,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
            * The name of the disk, for example,
      -     * `https://www.googleapis.com/compute/v1/projects/{project-id}/zones/{zone-id}/disks/{disk-id}`.
      +     * "https://www.googleapis.com/compute/v1/projects/{project-id}/zones/{zone-id}/disks/{disk-id}".
            * 
      * * string name = 1; @@ -538,7 +538,7 @@ public Builder setName(java.lang.String value) { * *
            * The name of the disk, for example,
      -     * `https://www.googleapis.com/compute/v1/projects/{project-id}/zones/{zone-id}/disks/{disk-id}`.
      +     * "https://www.googleapis.com/compute/v1/projects/{project-id}/zones/{zone-id}/disks/{disk-id}".
            * 
      * * string name = 1; @@ -557,7 +557,7 @@ public Builder clearName() { * *
            * The name of the disk, for example,
      -     * `https://www.googleapis.com/compute/v1/projects/{project-id}/zones/{zone-id}/disks/{disk-id}`.
      +     * "https://www.googleapis.com/compute/v1/projects/{project-id}/zones/{zone-id}/disks/{disk-id}".
            * 
      * * string name = 1; diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/DiskOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/DiskOrBuilder.java index c1cb4dcfa2bd..8dfe2899ee3b 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/DiskOrBuilder.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/DiskOrBuilder.java @@ -29,7 +29,7 @@ public interface DiskOrBuilder * *
          * The name of the disk, for example,
      -   * `https://www.googleapis.com/compute/v1/projects/{project-id}/zones/{zone-id}/disks/{disk-id}`.
      +   * "https://www.googleapis.com/compute/v1/projects/{project-id}/zones/{zone-id}/disks/{disk-id}".
          * 
      * * string name = 1; @@ -43,7 +43,7 @@ public interface DiskOrBuilder * *
          * The name of the disk, for example,
      -   * `https://www.googleapis.com/compute/v1/projects/{project-id}/zones/{zone-id}/disks/{disk-id}`.
      +   * "https://www.googleapis.com/compute/v1/projects/{project-id}/zones/{zone-id}/disks/{disk-id}".
          * 
      * * string name = 1; diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ExportFindingsMetadata.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ExportFindingsMetadata.java new file mode 100644 index 000000000000..d0fc0c8e85aa --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ExportFindingsMetadata.java @@ -0,0 +1,1182 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v2/securitycenter_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.securitycenter.v2; + +/** + * + * + *
      + * The LRO metadata for a ExportFindings request.
      + * 
      + * + * Protobuf type {@code google.cloud.securitycenter.v2.ExportFindingsMetadata} + */ +public final class ExportFindingsMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v2.ExportFindingsMetadata) + ExportFindingsMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ExportFindingsMetadata.newBuilder() to construct. + private ExportFindingsMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExportFindingsMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExportFindingsMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v2.SecuritycenterServiceProto + .internal_static_google_cloud_securitycenter_v2_ExportFindingsMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v2.SecuritycenterServiceProto + .internal_static_google_cloud_securitycenter_v2_ExportFindingsMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v2.ExportFindingsMetadata.class, + com.google.cloud.securitycenter.v2.ExportFindingsMetadata.Builder.class); + } + + private int bitField0_; + private int destinationCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object destination_; + + public enum DestinationCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + BIG_QUERY_DESTINATION(2), + DESTINATION_NOT_SET(0); + private final int value; + + private DestinationCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DestinationCase valueOf(int value) { + return forNumber(value); + } + + public static DestinationCase forNumber(int value) { + switch (value) { + case 2: + return BIG_QUERY_DESTINATION; + case 0: + return DESTINATION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); + } + + public static final int EXPORT_START_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp exportStartTime_; + + /** + * + * + *
      +   * Optional. Timestamp at which export was started
      +   * 
      + * + * + * .google.protobuf.Timestamp export_start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the exportStartTime field is set. + */ + @java.lang.Override + public boolean hasExportStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Optional. Timestamp at which export was started
      +   * 
      + * + * + * .google.protobuf.Timestamp export_start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The exportStartTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getExportStartTime() { + return exportStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : exportStartTime_; + } + + /** + * + * + *
      +   * Optional. Timestamp at which export was started
      +   * 
      + * + * + * .google.protobuf.Timestamp export_start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getExportStartTimeOrBuilder() { + return exportStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : exportStartTime_; + } + + public static final int BIG_QUERY_DESTINATION_FIELD_NUMBER = 2; + + /** + * + * + *
      +   * Required. The destination big query dataset to export findings to.
      +   * 
      + * + * + * .google.cloud.securitycenter.v2.BigQueryDestination big_query_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the bigQueryDestination field is set. + */ + @java.lang.Override + public boolean hasBigQueryDestination() { + return destinationCase_ == 2; + } + + /** + * + * + *
      +   * Required. The destination big query dataset to export findings to.
      +   * 
      + * + * + * .google.cloud.securitycenter.v2.BigQueryDestination big_query_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bigQueryDestination. + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.BigQueryDestination getBigQueryDestination() { + if (destinationCase_ == 2) { + return (com.google.cloud.securitycenter.v2.BigQueryDestination) destination_; + } + return com.google.cloud.securitycenter.v2.BigQueryDestination.getDefaultInstance(); + } + + /** + * + * + *
      +   * Required. The destination big query dataset to export findings to.
      +   * 
      + * + * + * .google.cloud.securitycenter.v2.BigQueryDestination big_query_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.BigQueryDestinationOrBuilder + getBigQueryDestinationOrBuilder() { + if (destinationCase_ == 2) { + return (com.google.cloud.securitycenter.v2.BigQueryDestination) destination_; + } + return com.google.cloud.securitycenter.v2.BigQueryDestination.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getExportStartTime()); + } + if (destinationCase_ == 2) { + output.writeMessage(2, (com.google.cloud.securitycenter.v2.BigQueryDestination) destination_); + } + 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, getExportStartTime()); + } + if (destinationCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.securitycenter.v2.BigQueryDestination) destination_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycenter.v2.ExportFindingsMetadata)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v2.ExportFindingsMetadata other = + (com.google.cloud.securitycenter.v2.ExportFindingsMetadata) obj; + + if (hasExportStartTime() != other.hasExportStartTime()) return false; + if (hasExportStartTime()) { + if (!getExportStartTime().equals(other.getExportStartTime())) return false; + } + if (!getDestinationCase().equals(other.getDestinationCase())) return false; + switch (destinationCase_) { + case 2: + if (!getBigQueryDestination().equals(other.getBigQueryDestination())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasExportStartTime()) { + hash = (37 * hash) + EXPORT_START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getExportStartTime().hashCode(); + } + switch (destinationCase_) { + case 2: + hash = (37 * hash) + BIG_QUERY_DESTINATION_FIELD_NUMBER; + hash = (53 * hash) + getBigQueryDestination().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v2.ExportFindingsMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.ExportFindingsMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.ExportFindingsMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.ExportFindingsMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.ExportFindingsMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.ExportFindingsMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.ExportFindingsMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.ExportFindingsMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.ExportFindingsMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.ExportFindingsMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.ExportFindingsMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.ExportFindingsMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.securitycenter.v2.ExportFindingsMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * The LRO metadata for a ExportFindings request.
      +   * 
      + * + * Protobuf type {@code google.cloud.securitycenter.v2.ExportFindingsMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v2.ExportFindingsMetadata) + com.google.cloud.securitycenter.v2.ExportFindingsMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v2.SecuritycenterServiceProto + .internal_static_google_cloud_securitycenter_v2_ExportFindingsMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v2.SecuritycenterServiceProto + .internal_static_google_cloud_securitycenter_v2_ExportFindingsMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v2.ExportFindingsMetadata.class, + com.google.cloud.securitycenter.v2.ExportFindingsMetadata.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v2.ExportFindingsMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getExportStartTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + exportStartTime_ = null; + if (exportStartTimeBuilder_ != null) { + exportStartTimeBuilder_.dispose(); + exportStartTimeBuilder_ = null; + } + if (bigQueryDestinationBuilder_ != null) { + bigQueryDestinationBuilder_.clear(); + } + destinationCase_ = 0; + destination_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v2.SecuritycenterServiceProto + .internal_static_google_cloud_securitycenter_v2_ExportFindingsMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.ExportFindingsMetadata getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v2.ExportFindingsMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.ExportFindingsMetadata build() { + com.google.cloud.securitycenter.v2.ExportFindingsMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.ExportFindingsMetadata buildPartial() { + com.google.cloud.securitycenter.v2.ExportFindingsMetadata result = + new com.google.cloud.securitycenter.v2.ExportFindingsMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.securitycenter.v2.ExportFindingsMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.exportStartTime_ = + exportStartTimeBuilder_ == null ? exportStartTime_ : exportStartTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.securitycenter.v2.ExportFindingsMetadata result) { + result.destinationCase_ = destinationCase_; + result.destination_ = this.destination_; + if (destinationCase_ == 2 && bigQueryDestinationBuilder_ != null) { + result.destination_ = bigQueryDestinationBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v2.ExportFindingsMetadata) { + return mergeFrom((com.google.cloud.securitycenter.v2.ExportFindingsMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v2.ExportFindingsMetadata other) { + if (other == com.google.cloud.securitycenter.v2.ExportFindingsMetadata.getDefaultInstance()) + return this; + if (other.hasExportStartTime()) { + mergeExportStartTime(other.getExportStartTime()); + } + switch (other.getDestinationCase()) { + case BIG_QUERY_DESTINATION: + { + mergeBigQueryDestination(other.getBigQueryDestination()); + break; + } + case DESTINATION_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getExportStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getBigQueryDestinationFieldBuilder().getBuilder(), extensionRegistry); + destinationCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int destinationCase_ = 0; + private java.lang.Object destination_; + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); + } + + public Builder clearDestination() { + destinationCase_ = 0; + destination_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.Timestamp exportStartTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + exportStartTimeBuilder_; + + /** + * + * + *
      +     * Optional. Timestamp at which export was started
      +     * 
      + * + * + * .google.protobuf.Timestamp export_start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the exportStartTime field is set. + */ + public boolean hasExportStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +     * Optional. Timestamp at which export was started
      +     * 
      + * + * + * .google.protobuf.Timestamp export_start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The exportStartTime. + */ + public com.google.protobuf.Timestamp getExportStartTime() { + if (exportStartTimeBuilder_ == null) { + return exportStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : exportStartTime_; + } else { + return exportStartTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. Timestamp at which export was started
      +     * 
      + * + * + * .google.protobuf.Timestamp export_start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExportStartTime(com.google.protobuf.Timestamp value) { + if (exportStartTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + exportStartTime_ = value; + } else { + exportStartTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Timestamp at which export was started
      +     * 
      + * + * + * .google.protobuf.Timestamp export_start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExportStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (exportStartTimeBuilder_ == null) { + exportStartTime_ = builderForValue.build(); + } else { + exportStartTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Timestamp at which export was started
      +     * 
      + * + * + * .google.protobuf.Timestamp export_start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeExportStartTime(com.google.protobuf.Timestamp value) { + if (exportStartTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && exportStartTime_ != null + && exportStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getExportStartTimeBuilder().mergeFrom(value); + } else { + exportStartTime_ = value; + } + } else { + exportStartTimeBuilder_.mergeFrom(value); + } + if (exportStartTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Timestamp at which export was started
      +     * 
      + * + * + * .google.protobuf.Timestamp export_start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearExportStartTime() { + bitField0_ = (bitField0_ & ~0x00000001); + exportStartTime_ = null; + if (exportStartTimeBuilder_ != null) { + exportStartTimeBuilder_.dispose(); + exportStartTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Timestamp at which export was started
      +     * 
      + * + * + * .google.protobuf.Timestamp export_start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Timestamp.Builder getExportStartTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getExportStartTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Timestamp at which export was started
      +     * 
      + * + * + * .google.protobuf.Timestamp export_start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.TimestampOrBuilder getExportStartTimeOrBuilder() { + if (exportStartTimeBuilder_ != null) { + return exportStartTimeBuilder_.getMessageOrBuilder(); + } else { + return exportStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : exportStartTime_; + } + } + + /** + * + * + *
      +     * Optional. Timestamp at which export was started
      +     * 
      + * + * + * .google.protobuf.Timestamp export_start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getExportStartTimeFieldBuilder() { + if (exportStartTimeBuilder_ == null) { + exportStartTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getExportStartTime(), getParentForChildren(), isClean()); + exportStartTime_ = null; + } + return exportStartTimeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v2.BigQueryDestination, + com.google.cloud.securitycenter.v2.BigQueryDestination.Builder, + com.google.cloud.securitycenter.v2.BigQueryDestinationOrBuilder> + bigQueryDestinationBuilder_; + + /** + * + * + *
      +     * Required. The destination big query dataset to export findings to.
      +     * 
      + * + * + * .google.cloud.securitycenter.v2.BigQueryDestination big_query_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the bigQueryDestination field is set. + */ + @java.lang.Override + public boolean hasBigQueryDestination() { + return destinationCase_ == 2; + } + + /** + * + * + *
      +     * Required. The destination big query dataset to export findings to.
      +     * 
      + * + * + * .google.cloud.securitycenter.v2.BigQueryDestination big_query_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bigQueryDestination. + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.BigQueryDestination getBigQueryDestination() { + if (bigQueryDestinationBuilder_ == null) { + if (destinationCase_ == 2) { + return (com.google.cloud.securitycenter.v2.BigQueryDestination) destination_; + } + return com.google.cloud.securitycenter.v2.BigQueryDestination.getDefaultInstance(); + } else { + if (destinationCase_ == 2) { + return bigQueryDestinationBuilder_.getMessage(); + } + return com.google.cloud.securitycenter.v2.BigQueryDestination.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Required. The destination big query dataset to export findings to.
      +     * 
      + * + * + * .google.cloud.securitycenter.v2.BigQueryDestination big_query_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setBigQueryDestination( + com.google.cloud.securitycenter.v2.BigQueryDestination value) { + if (bigQueryDestinationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + destination_ = value; + onChanged(); + } else { + bigQueryDestinationBuilder_.setMessage(value); + } + destinationCase_ = 2; + return this; + } + + /** + * + * + *
      +     * Required. The destination big query dataset to export findings to.
      +     * 
      + * + * + * .google.cloud.securitycenter.v2.BigQueryDestination big_query_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setBigQueryDestination( + com.google.cloud.securitycenter.v2.BigQueryDestination.Builder builderForValue) { + if (bigQueryDestinationBuilder_ == null) { + destination_ = builderForValue.build(); + onChanged(); + } else { + bigQueryDestinationBuilder_.setMessage(builderForValue.build()); + } + destinationCase_ = 2; + return this; + } + + /** + * + * + *
      +     * Required. The destination big query dataset to export findings to.
      +     * 
      + * + * + * .google.cloud.securitycenter.v2.BigQueryDestination big_query_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeBigQueryDestination( + com.google.cloud.securitycenter.v2.BigQueryDestination value) { + if (bigQueryDestinationBuilder_ == null) { + if (destinationCase_ == 2 + && destination_ + != com.google.cloud.securitycenter.v2.BigQueryDestination.getDefaultInstance()) { + destination_ = + com.google.cloud.securitycenter.v2.BigQueryDestination.newBuilder( + (com.google.cloud.securitycenter.v2.BigQueryDestination) destination_) + .mergeFrom(value) + .buildPartial(); + } else { + destination_ = value; + } + onChanged(); + } else { + if (destinationCase_ == 2) { + bigQueryDestinationBuilder_.mergeFrom(value); + } else { + bigQueryDestinationBuilder_.setMessage(value); + } + } + destinationCase_ = 2; + return this; + } + + /** + * + * + *
      +     * Required. The destination big query dataset to export findings to.
      +     * 
      + * + * + * .google.cloud.securitycenter.v2.BigQueryDestination big_query_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearBigQueryDestination() { + if (bigQueryDestinationBuilder_ == null) { + if (destinationCase_ == 2) { + destinationCase_ = 0; + destination_ = null; + onChanged(); + } + } else { + if (destinationCase_ == 2) { + destinationCase_ = 0; + destination_ = null; + } + bigQueryDestinationBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Required. The destination big query dataset to export findings to.
      +     * 
      + * + * + * .google.cloud.securitycenter.v2.BigQueryDestination big_query_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.securitycenter.v2.BigQueryDestination.Builder + getBigQueryDestinationBuilder() { + return getBigQueryDestinationFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Required. The destination big query dataset to export findings to.
      +     * 
      + * + * + * .google.cloud.securitycenter.v2.BigQueryDestination big_query_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.BigQueryDestinationOrBuilder + getBigQueryDestinationOrBuilder() { + if ((destinationCase_ == 2) && (bigQueryDestinationBuilder_ != null)) { + return bigQueryDestinationBuilder_.getMessageOrBuilder(); + } else { + if (destinationCase_ == 2) { + return (com.google.cloud.securitycenter.v2.BigQueryDestination) destination_; + } + return com.google.cloud.securitycenter.v2.BigQueryDestination.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Required. The destination big query dataset to export findings to.
      +     * 
      + * + * + * .google.cloud.securitycenter.v2.BigQueryDestination big_query_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v2.BigQueryDestination, + com.google.cloud.securitycenter.v2.BigQueryDestination.Builder, + com.google.cloud.securitycenter.v2.BigQueryDestinationOrBuilder> + getBigQueryDestinationFieldBuilder() { + if (bigQueryDestinationBuilder_ == null) { + if (!(destinationCase_ == 2)) { + destination_ = + com.google.cloud.securitycenter.v2.BigQueryDestination.getDefaultInstance(); + } + bigQueryDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v2.BigQueryDestination, + com.google.cloud.securitycenter.v2.BigQueryDestination.Builder, + com.google.cloud.securitycenter.v2.BigQueryDestinationOrBuilder>( + (com.google.cloud.securitycenter.v2.BigQueryDestination) destination_, + getParentForChildren(), + isClean()); + destination_ = null; + } + destinationCase_ = 2; + onChanged(); + return bigQueryDestinationBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v2.ExportFindingsMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v2.ExportFindingsMetadata) + private static final com.google.cloud.securitycenter.v2.ExportFindingsMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v2.ExportFindingsMetadata(); + } + + public static com.google.cloud.securitycenter.v2.ExportFindingsMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportFindingsMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.ExportFindingsMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ExportFindingsMetadataOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ExportFindingsMetadataOrBuilder.java new file mode 100644 index 000000000000..4de077fba4b3 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ExportFindingsMetadataOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v2/securitycenter_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.securitycenter.v2; + +public interface ExportFindingsMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v2.ExportFindingsMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Optional. Timestamp at which export was started
      +   * 
      + * + * + * .google.protobuf.Timestamp export_start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the exportStartTime field is set. + */ + boolean hasExportStartTime(); + + /** + * + * + *
      +   * Optional. Timestamp at which export was started
      +   * 
      + * + * + * .google.protobuf.Timestamp export_start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The exportStartTime. + */ + com.google.protobuf.Timestamp getExportStartTime(); + + /** + * + * + *
      +   * Optional. Timestamp at which export was started
      +   * 
      + * + * + * .google.protobuf.Timestamp export_start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.TimestampOrBuilder getExportStartTimeOrBuilder(); + + /** + * + * + *
      +   * Required. The destination big query dataset to export findings to.
      +   * 
      + * + * + * .google.cloud.securitycenter.v2.BigQueryDestination big_query_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the bigQueryDestination field is set. + */ + boolean hasBigQueryDestination(); + + /** + * + * + *
      +   * Required. The destination big query dataset to export findings to.
      +   * 
      + * + * + * .google.cloud.securitycenter.v2.BigQueryDestination big_query_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bigQueryDestination. + */ + com.google.cloud.securitycenter.v2.BigQueryDestination getBigQueryDestination(); + + /** + * + * + *
      +   * Required. The destination big query dataset to export findings to.
      +   * 
      + * + * + * .google.cloud.securitycenter.v2.BigQueryDestination big_query_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.securitycenter.v2.BigQueryDestinationOrBuilder getBigQueryDestinationOrBuilder(); + + com.google.cloud.securitycenter.v2.ExportFindingsMetadata.DestinationCase getDestinationCase(); +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ExportFindingsResponse.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ExportFindingsResponse.java new file mode 100644 index 000000000000..b17ee45f9ef3 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ExportFindingsResponse.java @@ -0,0 +1,435 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v2/securitycenter_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.securitycenter.v2; + +/** + * + * + *
      + * The response to a ExportFindings request. Contains the LRO information.
      + * 
      + * + * Protobuf type {@code google.cloud.securitycenter.v2.ExportFindingsResponse} + */ +public final class ExportFindingsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v2.ExportFindingsResponse) + ExportFindingsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ExportFindingsResponse.newBuilder() to construct. + private ExportFindingsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExportFindingsResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExportFindingsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v2.SecuritycenterServiceProto + .internal_static_google_cloud_securitycenter_v2_ExportFindingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v2.SecuritycenterServiceProto + .internal_static_google_cloud_securitycenter_v2_ExportFindingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v2.ExportFindingsResponse.class, + com.google.cloud.securitycenter.v2.ExportFindingsResponse.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.cloud.securitycenter.v2.ExportFindingsResponse)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v2.ExportFindingsResponse other = + (com.google.cloud.securitycenter.v2.ExportFindingsResponse) 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.cloud.securitycenter.v2.ExportFindingsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.ExportFindingsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.ExportFindingsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.ExportFindingsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.ExportFindingsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.ExportFindingsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.ExportFindingsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.ExportFindingsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.ExportFindingsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.ExportFindingsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.ExportFindingsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.ExportFindingsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.securitycenter.v2.ExportFindingsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * The response to a ExportFindings request. Contains the LRO information.
      +   * 
      + * + * Protobuf type {@code google.cloud.securitycenter.v2.ExportFindingsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v2.ExportFindingsResponse) + com.google.cloud.securitycenter.v2.ExportFindingsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v2.SecuritycenterServiceProto + .internal_static_google_cloud_securitycenter_v2_ExportFindingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v2.SecuritycenterServiceProto + .internal_static_google_cloud_securitycenter_v2_ExportFindingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v2.ExportFindingsResponse.class, + com.google.cloud.securitycenter.v2.ExportFindingsResponse.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v2.ExportFindingsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v2.SecuritycenterServiceProto + .internal_static_google_cloud_securitycenter_v2_ExportFindingsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.ExportFindingsResponse getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v2.ExportFindingsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.ExportFindingsResponse build() { + com.google.cloud.securitycenter.v2.ExportFindingsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.ExportFindingsResponse buildPartial() { + com.google.cloud.securitycenter.v2.ExportFindingsResponse result = + new com.google.cloud.securitycenter.v2.ExportFindingsResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v2.ExportFindingsResponse) { + return mergeFrom((com.google.cloud.securitycenter.v2.ExportFindingsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v2.ExportFindingsResponse other) { + if (other == com.google.cloud.securitycenter.v2.ExportFindingsResponse.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v2.ExportFindingsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v2.ExportFindingsResponse) + private static final com.google.cloud.securitycenter.v2.ExportFindingsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v2.ExportFindingsResponse(); + } + + public static com.google.cloud.securitycenter.v2.ExportFindingsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportFindingsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.ExportFindingsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ExportFindingsResponseOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ExportFindingsResponseOrBuilder.java new file mode 100644 index 000000000000..f659c4c706c3 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ExportFindingsResponseOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v2/securitycenter_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.securitycenter.v2; + +public interface ExportFindingsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v2.ExportFindingsResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/File.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/File.java index 1ed52322666a..ad16a3ef7fdd 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/File.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/File.java @@ -44,6 +44,7 @@ private File() { path_ = ""; sha256_ = ""; contents_ = ""; + operations_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -952,6 +953,868 @@ public com.google.cloud.securitycenter.v2.File.DiskPath getDefaultInstanceForTyp } } + public interface FileOperationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v2.File.FileOperation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * The type of the operation
      +     * 
      + * + * .google.cloud.securitycenter.v2.File.FileOperation.OperationType type = 1; + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + + /** + * + * + *
      +     * The type of the operation
      +     * 
      + * + * .google.cloud.securitycenter.v2.File.FileOperation.OperationType type = 1; + * + * @return The type. + */ + com.google.cloud.securitycenter.v2.File.FileOperation.OperationType getType(); + } + + /** + * + * + *
      +   * Operation(s) performed on a file.
      +   * 
      + * + * Protobuf type {@code google.cloud.securitycenter.v2.File.FileOperation} + */ + public static final class FileOperation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v2.File.FileOperation) + FileOperationOrBuilder { + private static final long serialVersionUID = 0L; + + // Use FileOperation.newBuilder() to construct. + private FileOperation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FileOperation() { + type_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FileOperation(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v2.FileProto + .internal_static_google_cloud_securitycenter_v2_File_FileOperation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v2.FileProto + .internal_static_google_cloud_securitycenter_v2_File_FileOperation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v2.File.FileOperation.class, + com.google.cloud.securitycenter.v2.File.FileOperation.Builder.class); + } + + /** + * + * + *
      +     * The type of the operation
      +     * 
      + * + * Protobuf enum {@code google.cloud.securitycenter.v2.File.FileOperation.OperationType} + */ + public enum OperationType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +       * The operation is unspecified.
      +       * 
      + * + * OPERATION_TYPE_UNSPECIFIED = 0; + */ + OPERATION_TYPE_UNSPECIFIED(0), + /** + * + * + *
      +       * Represents an open operation.
      +       * 
      + * + * OPEN = 1; + */ + OPEN(1), + /** + * + * + *
      +       * Represents a read operation.
      +       * 
      + * + * READ = 2; + */ + READ(2), + /** + * + * + *
      +       * Represents a rename operation.
      +       * 
      + * + * RENAME = 3; + */ + RENAME(3), + /** + * + * + *
      +       * Represents a write operation.
      +       * 
      + * + * WRITE = 4; + */ + WRITE(4), + /** + * + * + *
      +       * Represents an execute operation.
      +       * 
      + * + * EXECUTE = 5; + */ + EXECUTE(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
      +       * The operation is unspecified.
      +       * 
      + * + * OPERATION_TYPE_UNSPECIFIED = 0; + */ + public static final int OPERATION_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +       * Represents an open operation.
      +       * 
      + * + * OPEN = 1; + */ + public static final int OPEN_VALUE = 1; + + /** + * + * + *
      +       * Represents a read operation.
      +       * 
      + * + * READ = 2; + */ + public static final int READ_VALUE = 2; + + /** + * + * + *
      +       * Represents a rename operation.
      +       * 
      + * + * RENAME = 3; + */ + public static final int RENAME_VALUE = 3; + + /** + * + * + *
      +       * Represents a write operation.
      +       * 
      + * + * WRITE = 4; + */ + public static final int WRITE_VALUE = 4; + + /** + * + * + *
      +       * Represents an execute operation.
      +       * 
      + * + * EXECUTE = 5; + */ + public static final int EXECUTE_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OperationType 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 OperationType forNumber(int value) { + switch (value) { + case 0: + return OPERATION_TYPE_UNSPECIFIED; + case 1: + return OPEN; + case 2: + return READ; + case 3: + return RENAME; + case 4: + return WRITE; + case 5: + return EXECUTE; + 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 OperationType findValueByNumber(int number) { + return OperationType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.securitycenter.v2.File.FileOperation.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final OperationType[] VALUES = values(); + + public static OperationType 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 OperationType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.securitycenter.v2.File.FileOperation.OperationType) + } + + public static final int TYPE_FIELD_NUMBER = 1; + private int type_ = 0; + + /** + * + * + *
      +     * The type of the operation
      +     * 
      + * + * .google.cloud.securitycenter.v2.File.FileOperation.OperationType type = 1; + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
      +     * The type of the operation
      +     * 
      + * + * .google.cloud.securitycenter.v2.File.FileOperation.OperationType type = 1; + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.File.FileOperation.OperationType getType() { + com.google.cloud.securitycenter.v2.File.FileOperation.OperationType result = + com.google.cloud.securitycenter.v2.File.FileOperation.OperationType.forNumber(type_); + return result == null + ? com.google.cloud.securitycenter.v2.File.FileOperation.OperationType.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 (type_ + != com.google.cloud.securitycenter.v2.File.FileOperation.OperationType + .OPERATION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, type_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ + != com.google.cloud.securitycenter.v2.File.FileOperation.OperationType + .OPERATION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycenter.v2.File.FileOperation)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v2.File.FileOperation other = + (com.google.cloud.securitycenter.v2.File.FileOperation) obj; + + if (type_ != other.type_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v2.File.FileOperation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.File.FileOperation parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.File.FileOperation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.File.FileOperation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.File.FileOperation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.File.FileOperation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.File.FileOperation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.File.FileOperation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.File.FileOperation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.File.FileOperation parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.File.FileOperation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.File.FileOperation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.securitycenter.v2.File.FileOperation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * Operation(s) performed on a file.
      +     * 
      + * + * Protobuf type {@code google.cloud.securitycenter.v2.File.FileOperation} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v2.File.FileOperation) + com.google.cloud.securitycenter.v2.File.FileOperationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v2.FileProto + .internal_static_google_cloud_securitycenter_v2_File_FileOperation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v2.FileProto + .internal_static_google_cloud_securitycenter_v2_File_FileOperation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v2.File.FileOperation.class, + com.google.cloud.securitycenter.v2.File.FileOperation.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v2.File.FileOperation.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + type_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v2.FileProto + .internal_static_google_cloud_securitycenter_v2_File_FileOperation_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.File.FileOperation getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v2.File.FileOperation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.File.FileOperation build() { + com.google.cloud.securitycenter.v2.File.FileOperation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.File.FileOperation buildPartial() { + com.google.cloud.securitycenter.v2.File.FileOperation result = + new com.google.cloud.securitycenter.v2.File.FileOperation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.securitycenter.v2.File.FileOperation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.type_ = type_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v2.File.FileOperation) { + return mergeFrom((com.google.cloud.securitycenter.v2.File.FileOperation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v2.File.FileOperation other) { + if (other == com.google.cloud.securitycenter.v2.File.FileOperation.getDefaultInstance()) + return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + type_ = input.readEnum(); + 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 int type_ = 0; + + /** + * + * + *
      +       * The type of the operation
      +       * 
      + * + * .google.cloud.securitycenter.v2.File.FileOperation.OperationType type = 1; + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
      +       * The type of the operation
      +       * 
      + * + * .google.cloud.securitycenter.v2.File.FileOperation.OperationType type = 1; + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * The type of the operation
      +       * 
      + * + * .google.cloud.securitycenter.v2.File.FileOperation.OperationType type = 1; + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.File.FileOperation.OperationType getType() { + com.google.cloud.securitycenter.v2.File.FileOperation.OperationType result = + com.google.cloud.securitycenter.v2.File.FileOperation.OperationType.forNumber(type_); + return result == null + ? com.google.cloud.securitycenter.v2.File.FileOperation.OperationType.UNRECOGNIZED + : result; + } + + /** + * + * + *
      +       * The type of the operation
      +       * 
      + * + * .google.cloud.securitycenter.v2.File.FileOperation.OperationType type = 1; + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType( + com.google.cloud.securitycenter.v2.File.FileOperation.OperationType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + type_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +       * The type of the operation
      +       * 
      + * + * .google.cloud.securitycenter.v2.File.FileOperation.OperationType type = 1; + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000001); + type_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v2.File.FileOperation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v2.File.FileOperation) + private static final com.google.cloud.securitycenter.v2.File.FileOperation DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v2.File.FileOperation(); + } + + public static com.google.cloud.securitycenter.v2.File.FileOperation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FileOperation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.File.FileOperation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; public static final int PATH_FIELD_NUMBER = 1; @@ -1198,34 +2061,111 @@ public boolean hasDiskPath() { * * *
      -   * Path of the file in terms of underlying disk/partition identifiers.
      +   * Path of the file in terms of underlying disk/partition identifiers.
      +   * 
      + * + * .google.cloud.securitycenter.v2.File.DiskPath disk_path = 7; + * + * @return The diskPath. + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.File.DiskPath getDiskPath() { + return diskPath_ == null + ? com.google.cloud.securitycenter.v2.File.DiskPath.getDefaultInstance() + : diskPath_; + } + + /** + * + * + *
      +   * Path of the file in terms of underlying disk/partition identifiers.
      +   * 
      + * + * .google.cloud.securitycenter.v2.File.DiskPath disk_path = 7; + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.File.DiskPathOrBuilder getDiskPathOrBuilder() { + return diskPath_ == null + ? com.google.cloud.securitycenter.v2.File.DiskPath.getDefaultInstance() + : diskPath_; + } + + public static final int OPERATIONS_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private java.util.List operations_; + + /** + * + * + *
      +   * Operation(s) performed on a file.
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.File.FileOperation operations = 8; + */ + @java.lang.Override + public java.util.List getOperationsList() { + return operations_; + } + + /** + * + * + *
      +   * Operation(s) performed on a file.
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.File.FileOperation operations = 8; + */ + @java.lang.Override + public java.util.List + getOperationsOrBuilderList() { + return operations_; + } + + /** + * + * + *
      +   * Operation(s) performed on a file.
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.File.FileOperation operations = 8; + */ + @java.lang.Override + public int getOperationsCount() { + return operations_.size(); + } + + /** + * + * + *
      +   * Operation(s) performed on a file.
          * 
      * - * .google.cloud.securitycenter.v2.File.DiskPath disk_path = 7; - * - * @return The diskPath. + * repeated .google.cloud.securitycenter.v2.File.FileOperation operations = 8; */ @java.lang.Override - public com.google.cloud.securitycenter.v2.File.DiskPath getDiskPath() { - return diskPath_ == null - ? com.google.cloud.securitycenter.v2.File.DiskPath.getDefaultInstance() - : diskPath_; + public com.google.cloud.securitycenter.v2.File.FileOperation getOperations(int index) { + return operations_.get(index); } /** * * *
      -   * Path of the file in terms of underlying disk/partition identifiers.
      +   * Operation(s) performed on a file.
          * 
      * - * .google.cloud.securitycenter.v2.File.DiskPath disk_path = 7; + * repeated .google.cloud.securitycenter.v2.File.FileOperation operations = 8; */ @java.lang.Override - public com.google.cloud.securitycenter.v2.File.DiskPathOrBuilder getDiskPathOrBuilder() { - return diskPath_ == null - ? com.google.cloud.securitycenter.v2.File.DiskPath.getDefaultInstance() - : diskPath_; + public com.google.cloud.securitycenter.v2.File.FileOperationOrBuilder getOperationsOrBuilder( + int index) { + return operations_.get(index); } private byte memoizedIsInitialized = -1; @@ -1263,6 +2203,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(7, getDiskPath()); } + for (int i = 0; i < operations_.size(); i++) { + output.writeMessage(8, operations_.get(i)); + } getUnknownFields().writeTo(output); } @@ -1293,6 +2236,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getDiskPath()); } + for (int i = 0; i < operations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, operations_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1318,6 +2264,7 @@ public boolean equals(final java.lang.Object obj) { if (hasDiskPath()) { if (!getDiskPath().equals(other.getDiskPath())) return false; } + if (!getOperationsList().equals(other.getOperationsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1345,6 +2292,10 @@ public int hashCode() { hash = (37 * hash) + DISK_PATH_FIELD_NUMBER; hash = (53 * hash) + getDiskPath().hashCode(); } + if (getOperationsCount() > 0) { + hash = (37 * hash) + OPERATIONS_FIELD_NUMBER; + hash = (53 * hash) + getOperationsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1488,6 +2439,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getDiskPathFieldBuilder(); + getOperationsFieldBuilder(); } } @@ -1506,6 +2458,13 @@ public Builder clear() { diskPathBuilder_.dispose(); diskPathBuilder_ = null; } + if (operationsBuilder_ == null) { + operations_ = java.util.Collections.emptyList(); + } else { + operations_ = null; + operationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); return this; } @@ -1533,6 +2492,7 @@ public com.google.cloud.securitycenter.v2.File build() { public com.google.cloud.securitycenter.v2.File buildPartial() { com.google.cloud.securitycenter.v2.File result = new com.google.cloud.securitycenter.v2.File(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -1540,6 +2500,18 @@ public com.google.cloud.securitycenter.v2.File buildPartial() { return result; } + private void buildPartialRepeatedFields(com.google.cloud.securitycenter.v2.File result) { + if (operationsBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + operations_ = java.util.Collections.unmodifiableList(operations_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.operations_ = operations_; + } else { + result.operations_ = operationsBuilder_.build(); + } + } + private void buildPartial0(com.google.cloud.securitycenter.v2.File result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -1640,6 +2612,33 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v2.File other) { if (other.hasDiskPath()) { mergeDiskPath(other.getDiskPath()); } + if (operationsBuilder_ == null) { + if (!other.operations_.isEmpty()) { + if (operations_.isEmpty()) { + operations_ = other.operations_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureOperationsIsMutable(); + operations_.addAll(other.operations_); + } + onChanged(); + } + } else { + if (!other.operations_.isEmpty()) { + if (operationsBuilder_.isEmpty()) { + operationsBuilder_.dispose(); + operationsBuilder_ = null; + operations_ = other.operations_; + bitField0_ = (bitField0_ & ~0x00000080); + operationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getOperationsFieldBuilder() + : null; + } else { + operationsBuilder_.addAllMessages(other.operations_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1708,6 +2707,20 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case 58 + case 66: + { + com.google.cloud.securitycenter.v2.File.FileOperation m = + input.readMessage( + com.google.cloud.securitycenter.v2.File.FileOperation.parser(), + extensionRegistry); + if (operationsBuilder_ == null) { + ensureOperationsIsMutable(); + operations_.add(m); + } else { + operationsBuilder_.addMessage(m); + } + break; + } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2439,6 +3452,383 @@ public com.google.cloud.securitycenter.v2.File.DiskPathOrBuilder getDiskPathOrBu return diskPathBuilder_; } + private java.util.List operations_ = + java.util.Collections.emptyList(); + + private void ensureOperationsIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + operations_ = + new java.util.ArrayList( + operations_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v2.File.FileOperation, + com.google.cloud.securitycenter.v2.File.FileOperation.Builder, + com.google.cloud.securitycenter.v2.File.FileOperationOrBuilder> + operationsBuilder_; + + /** + * + * + *
      +     * Operation(s) performed on a file.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.File.FileOperation operations = 8; + */ + public java.util.List + getOperationsList() { + if (operationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(operations_); + } else { + return operationsBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * Operation(s) performed on a file.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.File.FileOperation operations = 8; + */ + public int getOperationsCount() { + if (operationsBuilder_ == null) { + return operations_.size(); + } else { + return operationsBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * Operation(s) performed on a file.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.File.FileOperation operations = 8; + */ + public com.google.cloud.securitycenter.v2.File.FileOperation getOperations(int index) { + if (operationsBuilder_ == null) { + return operations_.get(index); + } else { + return operationsBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * Operation(s) performed on a file.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.File.FileOperation operations = 8; + */ + public Builder setOperations( + int index, com.google.cloud.securitycenter.v2.File.FileOperation value) { + if (operationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOperationsIsMutable(); + operations_.set(index, value); + onChanged(); + } else { + operationsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Operation(s) performed on a file.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.File.FileOperation operations = 8; + */ + public Builder setOperations( + int index, com.google.cloud.securitycenter.v2.File.FileOperation.Builder builderForValue) { + if (operationsBuilder_ == null) { + ensureOperationsIsMutable(); + operations_.set(index, builderForValue.build()); + onChanged(); + } else { + operationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Operation(s) performed on a file.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.File.FileOperation operations = 8; + */ + public Builder addOperations(com.google.cloud.securitycenter.v2.File.FileOperation value) { + if (operationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOperationsIsMutable(); + operations_.add(value); + onChanged(); + } else { + operationsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * Operation(s) performed on a file.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.File.FileOperation operations = 8; + */ + public Builder addOperations( + int index, com.google.cloud.securitycenter.v2.File.FileOperation value) { + if (operationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOperationsIsMutable(); + operations_.add(index, value); + onChanged(); + } else { + operationsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Operation(s) performed on a file.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.File.FileOperation operations = 8; + */ + public Builder addOperations( + com.google.cloud.securitycenter.v2.File.FileOperation.Builder builderForValue) { + if (operationsBuilder_ == null) { + ensureOperationsIsMutable(); + operations_.add(builderForValue.build()); + onChanged(); + } else { + operationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Operation(s) performed on a file.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.File.FileOperation operations = 8; + */ + public Builder addOperations( + int index, com.google.cloud.securitycenter.v2.File.FileOperation.Builder builderForValue) { + if (operationsBuilder_ == null) { + ensureOperationsIsMutable(); + operations_.add(index, builderForValue.build()); + onChanged(); + } else { + operationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Operation(s) performed on a file.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.File.FileOperation operations = 8; + */ + public Builder addAllOperations( + java.lang.Iterable + values) { + if (operationsBuilder_ == null) { + ensureOperationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, operations_); + onChanged(); + } else { + operationsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * Operation(s) performed on a file.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.File.FileOperation operations = 8; + */ + public Builder clearOperations() { + if (operationsBuilder_ == null) { + operations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + operationsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Operation(s) performed on a file.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.File.FileOperation operations = 8; + */ + public Builder removeOperations(int index) { + if (operationsBuilder_ == null) { + ensureOperationsIsMutable(); + operations_.remove(index); + onChanged(); + } else { + operationsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * Operation(s) performed on a file.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.File.FileOperation operations = 8; + */ + public com.google.cloud.securitycenter.v2.File.FileOperation.Builder getOperationsBuilder( + int index) { + return getOperationsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * Operation(s) performed on a file.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.File.FileOperation operations = 8; + */ + public com.google.cloud.securitycenter.v2.File.FileOperationOrBuilder getOperationsOrBuilder( + int index) { + if (operationsBuilder_ == null) { + return operations_.get(index); + } else { + return operationsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * Operation(s) performed on a file.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.File.FileOperation operations = 8; + */ + public java.util.List + getOperationsOrBuilderList() { + if (operationsBuilder_ != null) { + return operationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(operations_); + } + } + + /** + * + * + *
      +     * Operation(s) performed on a file.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.File.FileOperation operations = 8; + */ + public com.google.cloud.securitycenter.v2.File.FileOperation.Builder addOperationsBuilder() { + return getOperationsFieldBuilder() + .addBuilder(com.google.cloud.securitycenter.v2.File.FileOperation.getDefaultInstance()); + } + + /** + * + * + *
      +     * Operation(s) performed on a file.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.File.FileOperation operations = 8; + */ + public com.google.cloud.securitycenter.v2.File.FileOperation.Builder addOperationsBuilder( + int index) { + return getOperationsFieldBuilder() + .addBuilder( + index, com.google.cloud.securitycenter.v2.File.FileOperation.getDefaultInstance()); + } + + /** + * + * + *
      +     * Operation(s) performed on a file.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.File.FileOperation operations = 8; + */ + public java.util.List + getOperationsBuilderList() { + return getOperationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v2.File.FileOperation, + com.google.cloud.securitycenter.v2.File.FileOperation.Builder, + com.google.cloud.securitycenter.v2.File.FileOperationOrBuilder> + getOperationsFieldBuilder() { + if (operationsBuilder_ == null) { + operationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v2.File.FileOperation, + com.google.cloud.securitycenter.v2.File.FileOperation.Builder, + com.google.cloud.securitycenter.v2.File.FileOperationOrBuilder>( + operations_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); + operations_ = null; + } + return operationsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/FileOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/FileOrBuilder.java index b2fb22c23a5e..bed808127fed 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/FileOrBuilder.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/FileOrBuilder.java @@ -183,4 +183,60 @@ public interface FileOrBuilder * .google.cloud.securitycenter.v2.File.DiskPath disk_path = 7; */ com.google.cloud.securitycenter.v2.File.DiskPathOrBuilder getDiskPathOrBuilder(); + + /** + * + * + *
      +   * Operation(s) performed on a file.
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.File.FileOperation operations = 8; + */ + java.util.List getOperationsList(); + + /** + * + * + *
      +   * Operation(s) performed on a file.
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.File.FileOperation operations = 8; + */ + com.google.cloud.securitycenter.v2.File.FileOperation getOperations(int index); + + /** + * + * + *
      +   * Operation(s) performed on a file.
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.File.FileOperation operations = 8; + */ + int getOperationsCount(); + + /** + * + * + *
      +   * Operation(s) performed on a file.
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.File.FileOperation operations = 8; + */ + java.util.List + getOperationsOrBuilderList(); + + /** + * + * + *
      +   * Operation(s) performed on a file.
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.File.FileOperation operations = 8; + */ + com.google.cloud.securitycenter.v2.File.FileOperationOrBuilder getOperationsOrBuilder(int index); } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/FileProto.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/FileProto.java index 28f496fffd3c..e06c5f4c307b 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/FileProto.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/FileProto.java @@ -36,6 +36,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_securitycenter_v2_File_DiskPath_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_securitycenter_v2_File_DiskPath_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v2_File_FileOperation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v2_File_FileOperation_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -46,7 +50,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n" - + ")google/cloud/securitycenter/v2/file.proto\022\036google.cloud.securitycenter.v2\"\360\001\n" + + ")google/cloud/securitycenter/v2/file.proto\022\036google.cloud.securitycenter.v2\"\203\004\n" + "\004File\022\014\n" + "\004path\030\001 \001(\t\022\014\n" + "\004size\030\002 \001(\003\022\016\n" @@ -54,15 +58,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013hashed_size\030\004 \001(\003\022\030\n" + "\020partially_hashed\030\005 \001(\010\022\020\n" + "\010contents\030\006 \001(\t\022@\n" - + "\tdisk_path\030\007 \001(\0132-.google.cloud.securitycenter.v2.File.DiskPath\0329\n" + + "\tdisk_path\030\007 \001(\0132-.google.cloud.securitycenter.v2.File.DiskPath\022F\n\n" + + "operations\030\010 \003(\0132" + + "2.google.cloud.securitycenter.v2.File.FileOperation\0329\n" + "\010DiskPath\022\026\n" + "\016partition_uuid\030\001 \001(\t\022\025\n\r" - + "relative_path\030\002 \001(\tB\343\001\n" - + "\"com.google.cloud.securitycenter.v2B\tFileProtoP\001ZJcloud.google.com/go/security" - + "center/apiv2/securitycenterpb;securityce" - + "nterpb\252\002\036Google.Cloud.SecurityCenter.V2\312" - + "\002\036Google\\Cloud\\SecurityCenter\\V2\352\002!Googl" - + "e::Cloud::SecurityCenter::V2b\006proto3" + + "relative_path\030\002 \001(\t\032\310\001\n\r" + + "FileOperation\022N\n" + + "\004type\030\001 \001(\0162@.google.cloud.se" + + "curitycenter.v2.File.FileOperation.OperationType\"g\n\r" + + "OperationType\022\036\n" + + "\032OPERATION_TYPE_UNSPECIFIED\020\000\022\010\n" + + "\004OPEN\020\001\022\010\n" + + "\004READ\020\002\022\n\n" + + "\006RENAME\020\003\022\t\n" + + "\005WRITE\020\004\022\013\n" + + "\007EXECUTE\020\005B\343\001\n" + + "\"com.google.cloud.securitycenter.v2B\tFilePr" + + "otoP\001ZJcloud.google.com/go/securitycenter/apiv2/securitycenterpb;securitycenterp" + + "b\252\002\036Google.Cloud.SecurityCenter.V2\312\002\036Goo" + + "gle\\Cloud\\SecurityCenter\\V2\352\002!Google::Cloud::SecurityCenter::V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -73,7 +88,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v2_File_descriptor, new java.lang.String[] { - "Path", "Size", "Sha256", "HashedSize", "PartiallyHashed", "Contents", "DiskPath", + "Path", + "Size", + "Sha256", + "HashedSize", + "PartiallyHashed", + "Contents", + "DiskPath", + "Operations", }); internal_static_google_cloud_securitycenter_v2_File_DiskPath_descriptor = internal_static_google_cloud_securitycenter_v2_File_descriptor.getNestedTypes().get(0); @@ -83,6 +105,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "PartitionUuid", "RelativePath", }); + internal_static_google_cloud_securitycenter_v2_File_FileOperation_descriptor = + internal_static_google_cloud_securitycenter_v2_File_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_securitycenter_v2_File_FileOperation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v2_File_FileOperation_descriptor, + new java.lang.String[] { + "Type", + }); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/Finding.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/Finding.java index 548ebf735268..131364f57ab9 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/Finding.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/Finding.java @@ -73,6 +73,7 @@ private Finding() { groupMemberships_ = java.util.Collections.emptyList(); dataAccessEvents_ = java.util.Collections.emptyList(); dataFlowEvents_ = java.util.Collections.emptyList(); + networks_ = java.util.Collections.emptyList(); dataRetentionDeletionEvents_ = java.util.Collections.emptyList(); } @@ -850,6 +851,17 @@ public enum FindingClass implements com.google.protobuf.ProtocolMessageEnum { * SENSITIVE_DATA_RISK = 8; */ SENSITIVE_DATA_RISK(8), + /** + * + * + *
      +     * Describes a resource or resource group where high risk attack paths
      +     * converge, based on attack path simulations (APS).
      +     * 
      + * + * CHOKEPOINT = 9; + */ + CHOKEPOINT(9), UNRECOGNIZED(-1), ; @@ -957,6 +969,18 @@ public enum FindingClass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SENSITIVE_DATA_RISK_VALUE = 8; + /** + * + * + *
      +     * Describes a resource or resource group where high risk attack paths
      +     * converge, based on attack path simulations (APS).
      +     * 
      + * + * CHOKEPOINT = 9; + */ + public static final int CHOKEPOINT_VALUE = 9; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -999,6 +1023,8 @@ public static FindingClass forNumber(int value) { return TOXIC_COMBINATION; case 8: return SENSITIVE_DATA_RISK; + case 9: + return CHOKEPOINT; default: return null; } @@ -4525,7 +4551,7 @@ public com.google.cloud.securitycenter.v2.Finding.MuteInfo getDefaultInstanceFor * * *
      -   * The [relative resource
      +   * Identifier. The [relative resource
          * name](https://cloud.google.com/apis/design/resource_names#relative_resource_name)
          * of the finding. The following list shows some examples:
          *
      @@ -4541,7 +4567,7 @@ public com.google.cloud.securitycenter.v2.Finding.MuteInfo getDefaultInstanceFor
          * `projects/{project_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}`
          * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -4562,7 +4588,7 @@ public java.lang.String getName() { * * *
      -   * The [relative resource
      +   * Identifier. The [relative resource
          * name](https://cloud.google.com/apis/design/resource_names#relative_resource_name)
          * of the finding. The following list shows some examples:
          *
      @@ -4578,7 +4604,7 @@ public java.lang.String getName() {
          * `projects/{project_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}`
          * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -7278,6 +7304,55 @@ public com.google.cloud.securitycenter.v2.OrgPolicyOrBuilder getOrgPoliciesOrBui return orgPolicies_.get(index); } + public static final int JOB_FIELD_NUMBER = 44; + private com.google.cloud.securitycenter.v2.Job job_; + + /** + * + * + *
      +   * Job associated with the finding.
      +   * 
      + * + * .google.cloud.securitycenter.v2.Job job = 44; + * + * @return Whether the job field is set. + */ + @java.lang.Override + public boolean hasJob() { + return ((bitField0_ & 0x00010000) != 0); + } + + /** + * + * + *
      +   * Job associated with the finding.
      +   * 
      + * + * .google.cloud.securitycenter.v2.Job job = 44; + * + * @return The job. + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.Job getJob() { + return job_ == null ? com.google.cloud.securitycenter.v2.Job.getDefaultInstance() : job_; + } + + /** + * + * + *
      +   * Job associated with the finding.
      +   * 
      + * + * .google.cloud.securitycenter.v2.Job job = 44; + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.JobOrBuilder getJobOrBuilder() { + return job_ == null ? com.google.cloud.securitycenter.v2.Job.getDefaultInstance() : job_; + } + public static final int APPLICATION_FIELD_NUMBER = 45; private com.google.cloud.securitycenter.v2.Application application_; @@ -7294,7 +7369,7 @@ public com.google.cloud.securitycenter.v2.OrgPolicyOrBuilder getOrgPoliciesOrBui */ @java.lang.Override public boolean hasApplication() { - return ((bitField0_ & 0x00010000) != 0); + return ((bitField0_ & 0x00020000) != 0); } /** @@ -7331,6 +7406,59 @@ public com.google.cloud.securitycenter.v2.ApplicationOrBuilder getApplicationOrB : application_; } + public static final int IP_RULES_FIELD_NUMBER = 46; + private com.google.cloud.securitycenter.v2.IpRules ipRules_; + + /** + * + * + *
      +   * IP rules associated with the finding.
      +   * 
      + * + * .google.cloud.securitycenter.v2.IpRules ip_rules = 46; + * + * @return Whether the ipRules field is set. + */ + @java.lang.Override + public boolean hasIpRules() { + return ((bitField0_ & 0x00040000) != 0); + } + + /** + * + * + *
      +   * IP rules associated with the finding.
      +   * 
      + * + * .google.cloud.securitycenter.v2.IpRules ip_rules = 46; + * + * @return The ipRules. + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.IpRules getIpRules() { + return ipRules_ == null + ? com.google.cloud.securitycenter.v2.IpRules.getDefaultInstance() + : ipRules_; + } + + /** + * + * + *
      +   * IP rules associated with the finding.
      +   * 
      + * + * .google.cloud.securitycenter.v2.IpRules ip_rules = 46; + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.IpRulesOrBuilder getIpRulesOrBuilder() { + return ipRules_ == null + ? com.google.cloud.securitycenter.v2.IpRules.getDefaultInstance() + : ipRules_; + } + public static final int BACKUP_DISASTER_RECOVERY_FIELD_NUMBER = 47; private com.google.cloud.securitycenter.v2.BackupDisasterRecovery backupDisasterRecovery_; @@ -7348,7 +7476,7 @@ public com.google.cloud.securitycenter.v2.ApplicationOrBuilder getApplicationOrB */ @java.lang.Override public boolean hasBackupDisasterRecovery() { - return ((bitField0_ & 0x00020000) != 0); + return ((bitField0_ & 0x00080000) != 0); } /** @@ -7404,7 +7532,7 @@ public com.google.cloud.securitycenter.v2.BackupDisasterRecovery getBackupDisast */ @java.lang.Override public boolean hasSecurityPosture() { - return ((bitField0_ & 0x00040000) != 0); + return ((bitField0_ & 0x00100000) != 0); } /** @@ -7610,7 +7738,7 @@ public com.google.cloud.securitycenter.v2.LoadBalancerOrBuilder getLoadBalancers */ @java.lang.Override public boolean hasCloudArmor() { - return ((bitField0_ & 0x00080000) != 0); + return ((bitField0_ & 0x00200000) != 0); } /** @@ -7663,7 +7791,7 @@ public com.google.cloud.securitycenter.v2.CloudArmorOrBuilder getCloudArmorOrBui */ @java.lang.Override public boolean hasNotebook() { - return ((bitField0_ & 0x00100000) != 0); + return ((bitField0_ & 0x00400000) != 0); } /** @@ -7720,7 +7848,7 @@ public com.google.cloud.securitycenter.v2.NotebookOrBuilder getNotebookOrBuilder */ @java.lang.Override public boolean hasToxicCombination() { - return ((bitField0_ & 0x00200000) != 0); + return ((bitField0_ & 0x00800000) != 0); } /** @@ -7870,7 +7998,7 @@ public com.google.cloud.securitycenter.v2.GroupMembershipOrBuilder getGroupMembe */ @java.lang.Override public boolean hasDisk() { - return ((bitField0_ & 0x00400000) != 0); + return ((bitField0_ & 0x01000000) != 0); } /** @@ -8058,6 +8186,82 @@ public com.google.cloud.securitycenter.v2.DataFlowEventOrBuilder getDataFlowEven return dataFlowEvents_.get(index); } + public static final int NETWORKS_FIELD_NUMBER = 63; + + @SuppressWarnings("serial") + private java.util.List networks_; + + /** + * + * + *
      +   * Represents the VPC networks that the resource is attached to.
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.Network networks = 63; + */ + @java.lang.Override + public java.util.List getNetworksList() { + return networks_; + } + + /** + * + * + *
      +   * Represents the VPC networks that the resource is attached to.
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.Network networks = 63; + */ + @java.lang.Override + public java.util.List + getNetworksOrBuilderList() { + return networks_; + } + + /** + * + * + *
      +   * Represents the VPC networks that the resource is attached to.
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.Network networks = 63; + */ + @java.lang.Override + public int getNetworksCount() { + return networks_.size(); + } + + /** + * + * + *
      +   * Represents the VPC networks that the resource is attached to.
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.Network networks = 63; + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.Network getNetworks(int index) { + return networks_.get(index); + } + + /** + * + * + *
      +   * Represents the VPC networks that the resource is attached to.
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.Network networks = 63; + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.NetworkOrBuilder getNetworksOrBuilder(int index) { + return networks_.get(index); + } + public static final int DATA_RETENTION_DELETION_EVENTS_FIELD_NUMBER = 64; @SuppressWarnings("serial") @@ -8149,94 +8353,316 @@ public int getDataRetentionDeletionEventsCount() { return dataRetentionDeletionEvents_.get(index); } - private byte memoizedIsInitialized = -1; + public static final int AFFECTED_RESOURCES_FIELD_NUMBER = 65; + private com.google.cloud.securitycenter.v2.AffectedResources affectedResources_; + /** + * + * + *
      +   * AffectedResources associated with the finding.
      +   * 
      + * + * .google.cloud.securitycenter.v2.AffectedResources affected_resources = 65; + * + * @return Whether the affectedResources field is set. + */ @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public boolean hasAffectedResources() { + return ((bitField0_ & 0x02000000) != 0); + } - memoizedIsInitialized = 1; - return true; + /** + * + * + *
      +   * AffectedResources associated with the finding.
      +   * 
      + * + * .google.cloud.securitycenter.v2.AffectedResources affected_resources = 65; + * + * @return The affectedResources. + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.AffectedResources getAffectedResources() { + return affectedResources_ == null + ? com.google.cloud.securitycenter.v2.AffectedResources.getDefaultInstance() + : affectedResources_; } + /** + * + * + *
      +   * AffectedResources associated with the finding.
      +   * 
      + * + * .google.cloud.securitycenter.v2.AffectedResources affected_resources = 65; + */ @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(canonicalName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, canonicalName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, parent_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, resourceName_); - } - if (state_ != com.google.cloud.securitycenter.v2.Finding.State.STATE_UNSPECIFIED.getNumber()) { - output.writeEnum(6, state_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(category_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, category_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalUri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, externalUri_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetSourceProperties(), SourcePropertiesDefaultEntryHolder.defaultEntry, 9); - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(10, getSecurityMarks()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(11, getEventTime()); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(12, getCreateTime()); - } - if (severity_ - != com.google.cloud.securitycenter.v2.Finding.Severity.SEVERITY_UNSPECIFIED.getNumber()) { - output.writeEnum(14, severity_); - } - if (mute_ != com.google.cloud.securitycenter.v2.Finding.Mute.MUTE_UNSPECIFIED.getNumber()) { - output.writeEnum(15, mute_); - } - if (findingClass_ - != com.google.cloud.securitycenter.v2.Finding.FindingClass.FINDING_CLASS_UNSPECIFIED - .getNumber()) { - output.writeEnum(16, findingClass_); - } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeMessage(17, getIndicator()); - } - if (((bitField0_ & 0x00000020) != 0)) { - output.writeMessage(18, getVulnerability()); - } - if (((bitField0_ & 0x00000040) != 0)) { - output.writeMessage(19, getMuteUpdateTime()); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetExternalSystems(), ExternalSystemsDefaultEntryHolder.defaultEntry, 20); - if (((bitField0_ & 0x00000080) != 0)) { - output.writeMessage(21, getMitreAttack()); - } - if (((bitField0_ & 0x00000100) != 0)) { - output.writeMessage(22, getAccess()); - } - for (int i = 0; i < connections_.size(); i++) { - output.writeMessage(23, connections_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(muteInitiator_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 24, muteInitiator_); - } - for (int i = 0; i < processes_.size(); i++) { - output.writeMessage(25, processes_.get(i)); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetContacts(), ContactsDefaultEntryHolder.defaultEntry, 26); - for (int i = 0; i < compliances_.size(); i++) { - output.writeMessage(27, compliances_.get(i)); + public com.google.cloud.securitycenter.v2.AffectedResourcesOrBuilder + getAffectedResourcesOrBuilder() { + return affectedResources_ == null + ? com.google.cloud.securitycenter.v2.AffectedResources.getDefaultInstance() + : affectedResources_; + } + + public static final int AI_MODEL_FIELD_NUMBER = 66; + private com.google.cloud.securitycenter.v2.AiModel aiModel_; + + /** + * + * + *
      +   * The AI model associated with the finding.
      +   * 
      + * + * .google.cloud.securitycenter.v2.AiModel ai_model = 66; + * + * @return Whether the aiModel field is set. + */ + @java.lang.Override + public boolean hasAiModel() { + return ((bitField0_ & 0x04000000) != 0); + } + + /** + * + * + *
      +   * The AI model associated with the finding.
      +   * 
      + * + * .google.cloud.securitycenter.v2.AiModel ai_model = 66; + * + * @return The aiModel. + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.AiModel getAiModel() { + return aiModel_ == null + ? com.google.cloud.securitycenter.v2.AiModel.getDefaultInstance() + : aiModel_; + } + + /** + * + * + *
      +   * The AI model associated with the finding.
      +   * 
      + * + * .google.cloud.securitycenter.v2.AiModel ai_model = 66; + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.AiModelOrBuilder getAiModelOrBuilder() { + return aiModel_ == null + ? com.google.cloud.securitycenter.v2.AiModel.getDefaultInstance() + : aiModel_; + } + + public static final int CHOKEPOINT_FIELD_NUMBER = 69; + private com.google.cloud.securitycenter.v2.Chokepoint chokepoint_; + + /** + * + * + *
      +   * Contains details about a chokepoint, which is a resource or resource group
      +   * where high-risk attack paths converge, based on [attack path simulations]
      +   * (https://cloud.google.com/security-command-center/docs/attack-exposure-learn#attack_path_simulations).
      +   * This field cannot be updated. Its value is ignored in all update requests.
      +   * 
      + * + * .google.cloud.securitycenter.v2.Chokepoint chokepoint = 69; + * + * @return Whether the chokepoint field is set. + */ + @java.lang.Override + public boolean hasChokepoint() { + return ((bitField0_ & 0x08000000) != 0); + } + + /** + * + * + *
      +   * Contains details about a chokepoint, which is a resource or resource group
      +   * where high-risk attack paths converge, based on [attack path simulations]
      +   * (https://cloud.google.com/security-command-center/docs/attack-exposure-learn#attack_path_simulations).
      +   * This field cannot be updated. Its value is ignored in all update requests.
      +   * 
      + * + * .google.cloud.securitycenter.v2.Chokepoint chokepoint = 69; + * + * @return The chokepoint. + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.Chokepoint getChokepoint() { + return chokepoint_ == null + ? com.google.cloud.securitycenter.v2.Chokepoint.getDefaultInstance() + : chokepoint_; + } + + /** + * + * + *
      +   * Contains details about a chokepoint, which is a resource or resource group
      +   * where high-risk attack paths converge, based on [attack path simulations]
      +   * (https://cloud.google.com/security-command-center/docs/attack-exposure-learn#attack_path_simulations).
      +   * This field cannot be updated. Its value is ignored in all update requests.
      +   * 
      + * + * .google.cloud.securitycenter.v2.Chokepoint chokepoint = 69; + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.ChokepointOrBuilder getChokepointOrBuilder() { + return chokepoint_ == null + ? com.google.cloud.securitycenter.v2.Chokepoint.getDefaultInstance() + : chokepoint_; + } + + public static final int VERTEX_AI_FIELD_NUMBER = 72; + private com.google.cloud.securitycenter.v2.VertexAi vertexAi_; + + /** + * + * + *
      +   * VertexAi associated with the finding.
      +   * 
      + * + * .google.cloud.securitycenter.v2.VertexAi vertex_ai = 72; + * + * @return Whether the vertexAi field is set. + */ + @java.lang.Override + public boolean hasVertexAi() { + return ((bitField0_ & 0x10000000) != 0); + } + + /** + * + * + *
      +   * VertexAi associated with the finding.
      +   * 
      + * + * .google.cloud.securitycenter.v2.VertexAi vertex_ai = 72; + * + * @return The vertexAi. + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.VertexAi getVertexAi() { + return vertexAi_ == null + ? com.google.cloud.securitycenter.v2.VertexAi.getDefaultInstance() + : vertexAi_; + } + + /** + * + * + *
      +   * VertexAi associated with the finding.
      +   * 
      + * + * .google.cloud.securitycenter.v2.VertexAi vertex_ai = 72; + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.VertexAiOrBuilder getVertexAiOrBuilder() { + return vertexAi_ == null + ? com.google.cloud.securitycenter.v2.VertexAi.getDefaultInstance() + : vertexAi_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(canonicalName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, canonicalName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, resourceName_); + } + if (state_ != com.google.cloud.securitycenter.v2.Finding.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(6, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(category_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, category_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, externalUri_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetSourceProperties(), SourcePropertiesDefaultEntryHolder.defaultEntry, 9); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(10, getSecurityMarks()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(11, getEventTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(12, getCreateTime()); + } + if (severity_ + != com.google.cloud.securitycenter.v2.Finding.Severity.SEVERITY_UNSPECIFIED.getNumber()) { + output.writeEnum(14, severity_); + } + if (mute_ != com.google.cloud.securitycenter.v2.Finding.Mute.MUTE_UNSPECIFIED.getNumber()) { + output.writeEnum(15, mute_); + } + if (findingClass_ + != com.google.cloud.securitycenter.v2.Finding.FindingClass.FINDING_CLASS_UNSPECIFIED + .getNumber()) { + output.writeEnum(16, findingClass_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(17, getIndicator()); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(18, getVulnerability()); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(19, getMuteUpdateTime()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetExternalSystems(), ExternalSystemsDefaultEntryHolder.defaultEntry, 20); + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(21, getMitreAttack()); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(22, getAccess()); + } + for (int i = 0; i < connections_.size(); i++) { + output.writeMessage(23, connections_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(muteInitiator_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 24, muteInitiator_); + } + for (int i = 0; i < processes_.size(); i++) { + output.writeMessage(25, processes_.get(i)); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetContacts(), ContactsDefaultEntryHolder.defaultEntry, 26); + for (int i = 0; i < compliances_.size(); i++) { + output.writeMessage(27, compliances_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentDisplayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 29, parentDisplayName_); @@ -8284,12 +8710,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(43, orgPolicies_.get(i)); } if (((bitField0_ & 0x00010000) != 0)) { - output.writeMessage(45, getApplication()); + output.writeMessage(44, getJob()); } if (((bitField0_ & 0x00020000) != 0)) { - output.writeMessage(47, getBackupDisasterRecovery()); + output.writeMessage(45, getApplication()); } if (((bitField0_ & 0x00040000) != 0)) { + output.writeMessage(46, getIpRules()); + } + if (((bitField0_ & 0x00080000) != 0)) { + output.writeMessage(47, getBackupDisasterRecovery()); + } + if (((bitField0_ & 0x00100000) != 0)) { output.writeMessage(48, getSecurityPosture()); } for (int i = 0; i < logEntries_.size(); i++) { @@ -8298,22 +8730,22 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < loadBalancers_.size(); i++) { output.writeMessage(50, loadBalancers_.get(i)); } - if (((bitField0_ & 0x00080000) != 0)) { + if (((bitField0_ & 0x00200000) != 0)) { output.writeMessage(51, getCloudArmor()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(53, getMuteInfo()); } - if (((bitField0_ & 0x00100000) != 0)) { + if (((bitField0_ & 0x00400000) != 0)) { output.writeMessage(55, getNotebook()); } - if (((bitField0_ & 0x00200000) != 0)) { + if (((bitField0_ & 0x00800000) != 0)) { output.writeMessage(56, getToxicCombination()); } for (int i = 0; i < groupMemberships_.size(); i++) { output.writeMessage(57, groupMemberships_.get(i)); } - if (((bitField0_ & 0x00400000) != 0)) { + if (((bitField0_ & 0x01000000) != 0)) { output.writeMessage(58, getDisk()); } for (int i = 0; i < dataAccessEvents_.size(); i++) { @@ -8322,9 +8754,24 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < dataFlowEvents_.size(); i++) { output.writeMessage(62, dataFlowEvents_.get(i)); } + for (int i = 0; i < networks_.size(); i++) { + output.writeMessage(63, networks_.get(i)); + } for (int i = 0; i < dataRetentionDeletionEvents_.size(); i++) { output.writeMessage(64, dataRetentionDeletionEvents_.get(i)); } + if (((bitField0_ & 0x02000000) != 0)) { + output.writeMessage(65, getAffectedResources()); + } + if (((bitField0_ & 0x04000000) != 0)) { + output.writeMessage(66, getAiModel()); + } + if (((bitField0_ & 0x08000000) != 0)) { + output.writeMessage(69, getChokepoint()); + } + if (((bitField0_ & 0x10000000) != 0)) { + output.writeMessage(72, getVertexAi()); + } getUnknownFields().writeTo(output); } @@ -8484,13 +8931,19 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(43, orgPolicies_.get(i)); } if (((bitField0_ & 0x00010000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(45, getApplication()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(44, getJob()); } if (((bitField0_ & 0x00020000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(45, getApplication()); + } + if (((bitField0_ & 0x00040000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(46, getIpRules()); + } + if (((bitField0_ & 0x00080000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(47, getBackupDisasterRecovery()); } - if (((bitField0_ & 0x00040000) != 0)) { + if (((bitField0_ & 0x00100000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(48, getSecurityPosture()); } for (int i = 0; i < logEntries_.size(); i++) { @@ -8499,23 +8952,23 @@ public int getSerializedSize() { for (int i = 0; i < loadBalancers_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(50, loadBalancers_.get(i)); } - if (((bitField0_ & 0x00080000) != 0)) { + if (((bitField0_ & 0x00200000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(51, getCloudArmor()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(53, getMuteInfo()); } - if (((bitField0_ & 0x00100000) != 0)) { + if (((bitField0_ & 0x00400000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(55, getNotebook()); } - if (((bitField0_ & 0x00200000) != 0)) { + if (((bitField0_ & 0x00800000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(56, getToxicCombination()); } for (int i = 0; i < groupMemberships_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(57, groupMemberships_.get(i)); } - if (((bitField0_ & 0x00400000) != 0)) { + if (((bitField0_ & 0x01000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(58, getDisk()); } for (int i = 0; i < dataAccessEvents_.size(); i++) { @@ -8525,11 +8978,26 @@ public int getSerializedSize() { for (int i = 0; i < dataFlowEvents_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(62, dataFlowEvents_.get(i)); } + for (int i = 0; i < networks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(63, networks_.get(i)); + } for (int i = 0; i < dataRetentionDeletionEvents_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 64, dataRetentionDeletionEvents_.get(i)); } + if (((bitField0_ & 0x02000000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(65, getAffectedResources()); + } + if (((bitField0_ & 0x04000000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(66, getAiModel()); + } + if (((bitField0_ & 0x08000000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(69, getChokepoint()); + } + if (((bitField0_ & 0x10000000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(72, getVertexAi()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -8635,10 +9103,18 @@ public boolean equals(final java.lang.Object obj) { if (!getKernelRootkit().equals(other.getKernelRootkit())) return false; } if (!getOrgPoliciesList().equals(other.getOrgPoliciesList())) return false; + if (hasJob() != other.hasJob()) return false; + if (hasJob()) { + if (!getJob().equals(other.getJob())) return false; + } if (hasApplication() != other.hasApplication()) return false; if (hasApplication()) { if (!getApplication().equals(other.getApplication())) return false; } + if (hasIpRules() != other.hasIpRules()) return false; + if (hasIpRules()) { + if (!getIpRules().equals(other.getIpRules())) return false; + } if (hasBackupDisasterRecovery() != other.hasBackupDisasterRecovery()) return false; if (hasBackupDisasterRecovery()) { if (!getBackupDisasterRecovery().equals(other.getBackupDisasterRecovery())) return false; @@ -8668,8 +9144,25 @@ public boolean equals(final java.lang.Object obj) { } if (!getDataAccessEventsList().equals(other.getDataAccessEventsList())) return false; if (!getDataFlowEventsList().equals(other.getDataFlowEventsList())) return false; + if (!getNetworksList().equals(other.getNetworksList())) return false; if (!getDataRetentionDeletionEventsList().equals(other.getDataRetentionDeletionEventsList())) return false; + if (hasAffectedResources() != other.hasAffectedResources()) return false; + if (hasAffectedResources()) { + if (!getAffectedResources().equals(other.getAffectedResources())) return false; + } + if (hasAiModel() != other.hasAiModel()) return false; + if (hasAiModel()) { + if (!getAiModel().equals(other.getAiModel())) return false; + } + if (hasChokepoint() != other.hasChokepoint()) return false; + if (hasChokepoint()) { + if (!getChokepoint().equals(other.getChokepoint())) return false; + } + if (hasVertexAi() != other.hasVertexAi()) return false; + if (hasVertexAi()) { + if (!getVertexAi().equals(other.getVertexAi())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -8815,10 +9308,18 @@ public int hashCode() { hash = (37 * hash) + ORG_POLICIES_FIELD_NUMBER; hash = (53 * hash) + getOrgPoliciesList().hashCode(); } + if (hasJob()) { + hash = (37 * hash) + JOB_FIELD_NUMBER; + hash = (53 * hash) + getJob().hashCode(); + } if (hasApplication()) { hash = (37 * hash) + APPLICATION_FIELD_NUMBER; hash = (53 * hash) + getApplication().hashCode(); } + if (hasIpRules()) { + hash = (37 * hash) + IP_RULES_FIELD_NUMBER; + hash = (53 * hash) + getIpRules().hashCode(); + } if (hasBackupDisasterRecovery()) { hash = (37 * hash) + BACKUP_DISASTER_RECOVERY_FIELD_NUMBER; hash = (53 * hash) + getBackupDisasterRecovery().hashCode(); @@ -8863,10 +9364,30 @@ public int hashCode() { hash = (37 * hash) + DATA_FLOW_EVENTS_FIELD_NUMBER; hash = (53 * hash) + getDataFlowEventsList().hashCode(); } + if (getNetworksCount() > 0) { + hash = (37 * hash) + NETWORKS_FIELD_NUMBER; + hash = (53 * hash) + getNetworksList().hashCode(); + } if (getDataRetentionDeletionEventsCount() > 0) { hash = (37 * hash) + DATA_RETENTION_DELETION_EVENTS_FIELD_NUMBER; hash = (53 * hash) + getDataRetentionDeletionEventsList().hashCode(); } + if (hasAffectedResources()) { + hash = (37 * hash) + AFFECTED_RESOURCES_FIELD_NUMBER; + hash = (53 * hash) + getAffectedResources().hashCode(); + } + if (hasAiModel()) { + hash = (37 * hash) + AI_MODEL_FIELD_NUMBER; + hash = (53 * hash) + getAiModel().hashCode(); + } + if (hasChokepoint()) { + hash = (37 * hash) + CHOKEPOINT_FIELD_NUMBER; + hash = (53 * hash) + getChokepoint().hashCode(); + } + if (hasVertexAi()) { + hash = (37 * hash) + VERTEX_AI_FIELD_NUMBER; + hash = (53 * hash) + getVertexAi().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -9067,7 +9588,9 @@ private void maybeForceBuilderInitialization() { getCloudDlpDataProfileFieldBuilder(); getKernelRootkitFieldBuilder(); getOrgPoliciesFieldBuilder(); + getJobFieldBuilder(); getApplicationFieldBuilder(); + getIpRulesFieldBuilder(); getBackupDisasterRecoveryFieldBuilder(); getSecurityPostureFieldBuilder(); getLogEntriesFieldBuilder(); @@ -9079,7 +9602,12 @@ private void maybeForceBuilderInitialization() { getDiskFieldBuilder(); getDataAccessEventsFieldBuilder(); getDataFlowEventsFieldBuilder(); + getNetworksFieldBuilder(); getDataRetentionDeletionEventsFieldBuilder(); + getAffectedResourcesFieldBuilder(); + getAiModelFieldBuilder(); + getChokepointFieldBuilder(); + getVertexAiFieldBuilder(); } } @@ -9235,11 +9763,21 @@ public Builder clear() { orgPoliciesBuilder_.clear(); } bitField1_ = (bitField1_ & ~0x00000100); + job_ = null; + if (jobBuilder_ != null) { + jobBuilder_.dispose(); + jobBuilder_ = null; + } application_ = null; if (applicationBuilder_ != null) { applicationBuilder_.dispose(); applicationBuilder_ = null; } + ipRules_ = null; + if (ipRulesBuilder_ != null) { + ipRulesBuilder_.dispose(); + ipRulesBuilder_ = null; + } backupDisasterRecovery_ = null; if (backupDisasterRecoveryBuilder_ != null) { backupDisasterRecoveryBuilder_.dispose(); @@ -9256,14 +9794,14 @@ public Builder clear() { logEntries_ = null; logEntriesBuilder_.clear(); } - bitField1_ = (bitField1_ & ~0x00001000); + bitField1_ = (bitField1_ & ~0x00004000); if (loadBalancersBuilder_ == null) { loadBalancers_ = java.util.Collections.emptyList(); } else { loadBalancers_ = null; loadBalancersBuilder_.clear(); } - bitField1_ = (bitField1_ & ~0x00002000); + bitField1_ = (bitField1_ & ~0x00008000); cloudArmor_ = null; if (cloudArmorBuilder_ != null) { cloudArmorBuilder_.dispose(); @@ -9285,7 +9823,7 @@ public Builder clear() { groupMemberships_ = null; groupMembershipsBuilder_.clear(); } - bitField1_ = (bitField1_ & ~0x00020000); + bitField1_ = (bitField1_ & ~0x00080000); disk_ = null; if (diskBuilder_ != null) { diskBuilder_.dispose(); @@ -9297,21 +9835,48 @@ public Builder clear() { dataAccessEvents_ = null; dataAccessEventsBuilder_.clear(); } - bitField1_ = (bitField1_ & ~0x00080000); + bitField1_ = (bitField1_ & ~0x00200000); if (dataFlowEventsBuilder_ == null) { dataFlowEvents_ = java.util.Collections.emptyList(); } else { dataFlowEvents_ = null; dataFlowEventsBuilder_.clear(); } - bitField1_ = (bitField1_ & ~0x00100000); + bitField1_ = (bitField1_ & ~0x00400000); + if (networksBuilder_ == null) { + networks_ = java.util.Collections.emptyList(); + } else { + networks_ = null; + networksBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00800000); if (dataRetentionDeletionEventsBuilder_ == null) { dataRetentionDeletionEvents_ = java.util.Collections.emptyList(); } else { dataRetentionDeletionEvents_ = null; dataRetentionDeletionEventsBuilder_.clear(); } - bitField1_ = (bitField1_ & ~0x00200000); + bitField1_ = (bitField1_ & ~0x01000000); + affectedResources_ = null; + if (affectedResourcesBuilder_ != null) { + affectedResourcesBuilder_.dispose(); + affectedResourcesBuilder_ = null; + } + aiModel_ = null; + if (aiModelBuilder_ != null) { + aiModelBuilder_.dispose(); + aiModelBuilder_ = null; + } + chokepoint_ = null; + if (chokepointBuilder_ != null) { + chokepointBuilder_.dispose(); + chokepointBuilder_ = null; + } + vertexAi_ = null; + if (vertexAiBuilder_ != null) { + vertexAiBuilder_.dispose(); + vertexAiBuilder_ = null; + } return this; } @@ -9415,55 +9980,64 @@ private void buildPartialRepeatedFields(com.google.cloud.securitycenter.v2.Findi result.orgPolicies_ = orgPoliciesBuilder_.build(); } if (logEntriesBuilder_ == null) { - if (((bitField1_ & 0x00001000) != 0)) { + if (((bitField1_ & 0x00004000) != 0)) { logEntries_ = java.util.Collections.unmodifiableList(logEntries_); - bitField1_ = (bitField1_ & ~0x00001000); + bitField1_ = (bitField1_ & ~0x00004000); } result.logEntries_ = logEntries_; } else { result.logEntries_ = logEntriesBuilder_.build(); } if (loadBalancersBuilder_ == null) { - if (((bitField1_ & 0x00002000) != 0)) { + if (((bitField1_ & 0x00008000) != 0)) { loadBalancers_ = java.util.Collections.unmodifiableList(loadBalancers_); - bitField1_ = (bitField1_ & ~0x00002000); + bitField1_ = (bitField1_ & ~0x00008000); } result.loadBalancers_ = loadBalancers_; } else { result.loadBalancers_ = loadBalancersBuilder_.build(); } if (groupMembershipsBuilder_ == null) { - if (((bitField1_ & 0x00020000) != 0)) { + if (((bitField1_ & 0x00080000) != 0)) { groupMemberships_ = java.util.Collections.unmodifiableList(groupMemberships_); - bitField1_ = (bitField1_ & ~0x00020000); + bitField1_ = (bitField1_ & ~0x00080000); } result.groupMemberships_ = groupMemberships_; } else { result.groupMemberships_ = groupMembershipsBuilder_.build(); } if (dataAccessEventsBuilder_ == null) { - if (((bitField1_ & 0x00080000) != 0)) { + if (((bitField1_ & 0x00200000) != 0)) { dataAccessEvents_ = java.util.Collections.unmodifiableList(dataAccessEvents_); - bitField1_ = (bitField1_ & ~0x00080000); + bitField1_ = (bitField1_ & ~0x00200000); } result.dataAccessEvents_ = dataAccessEvents_; } else { result.dataAccessEvents_ = dataAccessEventsBuilder_.build(); } if (dataFlowEventsBuilder_ == null) { - if (((bitField1_ & 0x00100000) != 0)) { + if (((bitField1_ & 0x00400000) != 0)) { dataFlowEvents_ = java.util.Collections.unmodifiableList(dataFlowEvents_); - bitField1_ = (bitField1_ & ~0x00100000); + bitField1_ = (bitField1_ & ~0x00400000); } result.dataFlowEvents_ = dataFlowEvents_; } else { result.dataFlowEvents_ = dataFlowEventsBuilder_.build(); } + if (networksBuilder_ == null) { + if (((bitField1_ & 0x00800000) != 0)) { + networks_ = java.util.Collections.unmodifiableList(networks_); + bitField1_ = (bitField1_ & ~0x00800000); + } + result.networks_ = networks_; + } else { + result.networks_ = networksBuilder_.build(); + } if (dataRetentionDeletionEventsBuilder_ == null) { - if (((bitField1_ & 0x00200000) != 0)) { + if (((bitField1_ & 0x01000000) != 0)) { dataRetentionDeletionEvents_ = java.util.Collections.unmodifiableList(dataRetentionDeletionEvents_); - bitField1_ = (bitField1_ & ~0x00200000); + bitField1_ = (bitField1_ & ~0x01000000); } result.dataRetentionDeletionEvents_ = dataRetentionDeletionEvents_; } else { @@ -9614,38 +10188,65 @@ private void buildPartial1(com.google.cloud.securitycenter.v2.Finding result) { to_bitField0_ |= 0x00008000; } if (((from_bitField1_ & 0x00000200) != 0)) { - result.application_ = - applicationBuilder_ == null ? application_ : applicationBuilder_.build(); + result.job_ = jobBuilder_ == null ? job_ : jobBuilder_.build(); to_bitField0_ |= 0x00010000; } if (((from_bitField1_ & 0x00000400) != 0)) { + result.application_ = + applicationBuilder_ == null ? application_ : applicationBuilder_.build(); + to_bitField0_ |= 0x00020000; + } + if (((from_bitField1_ & 0x00000800) != 0)) { + result.ipRules_ = ipRulesBuilder_ == null ? ipRules_ : ipRulesBuilder_.build(); + to_bitField0_ |= 0x00040000; + } + if (((from_bitField1_ & 0x00001000) != 0)) { result.backupDisasterRecovery_ = backupDisasterRecoveryBuilder_ == null ? backupDisasterRecovery_ : backupDisasterRecoveryBuilder_.build(); - to_bitField0_ |= 0x00020000; + to_bitField0_ |= 0x00080000; } - if (((from_bitField1_ & 0x00000800) != 0)) { + if (((from_bitField1_ & 0x00002000) != 0)) { result.securityPosture_ = securityPostureBuilder_ == null ? securityPosture_ : securityPostureBuilder_.build(); - to_bitField0_ |= 0x00040000; + to_bitField0_ |= 0x00100000; } - if (((from_bitField1_ & 0x00004000) != 0)) { + if (((from_bitField1_ & 0x00010000) != 0)) { result.cloudArmor_ = cloudArmorBuilder_ == null ? cloudArmor_ : cloudArmorBuilder_.build(); - to_bitField0_ |= 0x00080000; + to_bitField0_ |= 0x00200000; } - if (((from_bitField1_ & 0x00008000) != 0)) { + if (((from_bitField1_ & 0x00020000) != 0)) { result.notebook_ = notebookBuilder_ == null ? notebook_ : notebookBuilder_.build(); - to_bitField0_ |= 0x00100000; + to_bitField0_ |= 0x00400000; } - if (((from_bitField1_ & 0x00010000) != 0)) { + if (((from_bitField1_ & 0x00040000) != 0)) { result.toxicCombination_ = toxicCombinationBuilder_ == null ? toxicCombination_ : toxicCombinationBuilder_.build(); - to_bitField0_ |= 0x00200000; + to_bitField0_ |= 0x00800000; } - if (((from_bitField1_ & 0x00040000) != 0)) { + if (((from_bitField1_ & 0x00100000) != 0)) { result.disk_ = diskBuilder_ == null ? disk_ : diskBuilder_.build(); - to_bitField0_ |= 0x00400000; + to_bitField0_ |= 0x01000000; + } + if (((from_bitField1_ & 0x02000000) != 0)) { + result.affectedResources_ = + affectedResourcesBuilder_ == null + ? affectedResources_ + : affectedResourcesBuilder_.build(); + to_bitField0_ |= 0x02000000; + } + if (((from_bitField1_ & 0x04000000) != 0)) { + result.aiModel_ = aiModelBuilder_ == null ? aiModel_ : aiModelBuilder_.build(); + to_bitField0_ |= 0x04000000; + } + if (((from_bitField1_ & 0x08000000) != 0)) { + result.chokepoint_ = chokepointBuilder_ == null ? chokepoint_ : chokepointBuilder_.build(); + to_bitField0_ |= 0x08000000; + } + if (((from_bitField1_ & 0x10000000) != 0)) { + result.vertexAi_ = vertexAiBuilder_ == null ? vertexAi_ : vertexAiBuilder_.build(); + to_bitField0_ |= 0x10000000; } result.bitField0_ |= to_bitField0_; } @@ -10005,9 +10606,15 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v2.Finding other) { } } } + if (other.hasJob()) { + mergeJob(other.getJob()); + } if (other.hasApplication()) { mergeApplication(other.getApplication()); } + if (other.hasIpRules()) { + mergeIpRules(other.getIpRules()); + } if (other.hasBackupDisasterRecovery()) { mergeBackupDisasterRecovery(other.getBackupDisasterRecovery()); } @@ -10018,7 +10625,7 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v2.Finding other) { if (!other.logEntries_.isEmpty()) { if (logEntries_.isEmpty()) { logEntries_ = other.logEntries_; - bitField1_ = (bitField1_ & ~0x00001000); + bitField1_ = (bitField1_ & ~0x00004000); } else { ensureLogEntriesIsMutable(); logEntries_.addAll(other.logEntries_); @@ -10031,7 +10638,7 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v2.Finding other) { logEntriesBuilder_.dispose(); logEntriesBuilder_ = null; logEntries_ = other.logEntries_; - bitField1_ = (bitField1_ & ~0x00001000); + bitField1_ = (bitField1_ & ~0x00004000); logEntriesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLogEntriesFieldBuilder() @@ -10045,7 +10652,7 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v2.Finding other) { if (!other.loadBalancers_.isEmpty()) { if (loadBalancers_.isEmpty()) { loadBalancers_ = other.loadBalancers_; - bitField1_ = (bitField1_ & ~0x00002000); + bitField1_ = (bitField1_ & ~0x00008000); } else { ensureLoadBalancersIsMutable(); loadBalancers_.addAll(other.loadBalancers_); @@ -10058,7 +10665,7 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v2.Finding other) { loadBalancersBuilder_.dispose(); loadBalancersBuilder_ = null; loadBalancers_ = other.loadBalancers_; - bitField1_ = (bitField1_ & ~0x00002000); + bitField1_ = (bitField1_ & ~0x00008000); loadBalancersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLoadBalancersFieldBuilder() @@ -10081,7 +10688,7 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v2.Finding other) { if (!other.groupMemberships_.isEmpty()) { if (groupMemberships_.isEmpty()) { groupMemberships_ = other.groupMemberships_; - bitField1_ = (bitField1_ & ~0x00020000); + bitField1_ = (bitField1_ & ~0x00080000); } else { ensureGroupMembershipsIsMutable(); groupMemberships_.addAll(other.groupMemberships_); @@ -10094,7 +10701,7 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v2.Finding other) { groupMembershipsBuilder_.dispose(); groupMembershipsBuilder_ = null; groupMemberships_ = other.groupMemberships_; - bitField1_ = (bitField1_ & ~0x00020000); + bitField1_ = (bitField1_ & ~0x00080000); groupMembershipsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getGroupMembershipsFieldBuilder() @@ -10111,7 +10718,7 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v2.Finding other) { if (!other.dataAccessEvents_.isEmpty()) { if (dataAccessEvents_.isEmpty()) { dataAccessEvents_ = other.dataAccessEvents_; - bitField1_ = (bitField1_ & ~0x00080000); + bitField1_ = (bitField1_ & ~0x00200000); } else { ensureDataAccessEventsIsMutable(); dataAccessEvents_.addAll(other.dataAccessEvents_); @@ -10124,7 +10731,7 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v2.Finding other) { dataAccessEventsBuilder_.dispose(); dataAccessEventsBuilder_ = null; dataAccessEvents_ = other.dataAccessEvents_; - bitField1_ = (bitField1_ & ~0x00080000); + bitField1_ = (bitField1_ & ~0x00200000); dataAccessEventsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDataAccessEventsFieldBuilder() @@ -10138,7 +10745,7 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v2.Finding other) { if (!other.dataFlowEvents_.isEmpty()) { if (dataFlowEvents_.isEmpty()) { dataFlowEvents_ = other.dataFlowEvents_; - bitField1_ = (bitField1_ & ~0x00100000); + bitField1_ = (bitField1_ & ~0x00400000); } else { ensureDataFlowEventsIsMutable(); dataFlowEvents_.addAll(other.dataFlowEvents_); @@ -10151,7 +10758,7 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v2.Finding other) { dataFlowEventsBuilder_.dispose(); dataFlowEventsBuilder_ = null; dataFlowEvents_ = other.dataFlowEvents_; - bitField1_ = (bitField1_ & ~0x00100000); + bitField1_ = (bitField1_ & ~0x00400000); dataFlowEventsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDataFlowEventsFieldBuilder() @@ -10161,11 +10768,38 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v2.Finding other) { } } } + if (networksBuilder_ == null) { + if (!other.networks_.isEmpty()) { + if (networks_.isEmpty()) { + networks_ = other.networks_; + bitField1_ = (bitField1_ & ~0x00800000); + } else { + ensureNetworksIsMutable(); + networks_.addAll(other.networks_); + } + onChanged(); + } + } else { + if (!other.networks_.isEmpty()) { + if (networksBuilder_.isEmpty()) { + networksBuilder_.dispose(); + networksBuilder_ = null; + networks_ = other.networks_; + bitField1_ = (bitField1_ & ~0x00800000); + networksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNetworksFieldBuilder() + : null; + } else { + networksBuilder_.addAllMessages(other.networks_); + } + } + } if (dataRetentionDeletionEventsBuilder_ == null) { if (!other.dataRetentionDeletionEvents_.isEmpty()) { if (dataRetentionDeletionEvents_.isEmpty()) { dataRetentionDeletionEvents_ = other.dataRetentionDeletionEvents_; - bitField1_ = (bitField1_ & ~0x00200000); + bitField1_ = (bitField1_ & ~0x01000000); } else { ensureDataRetentionDeletionEventsIsMutable(); dataRetentionDeletionEvents_.addAll(other.dataRetentionDeletionEvents_); @@ -10178,7 +10812,7 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v2.Finding other) { dataRetentionDeletionEventsBuilder_.dispose(); dataRetentionDeletionEventsBuilder_ = null; dataRetentionDeletionEvents_ = other.dataRetentionDeletionEvents_; - bitField1_ = (bitField1_ & ~0x00200000); + bitField1_ = (bitField1_ & ~0x01000000); dataRetentionDeletionEventsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDataRetentionDeletionEventsFieldBuilder() @@ -10188,6 +10822,18 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v2.Finding other) { } } } + if (other.hasAffectedResources()) { + mergeAffectedResources(other.getAffectedResources()); + } + if (other.hasAiModel()) { + mergeAiModel(other.getAiModel()); + } + if (other.hasChokepoint()) { + mergeChokepoint(other.getChokepoint()); + } + if (other.hasVertexAi()) { + mergeVertexAi(other.getVertexAi()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -10528,23 +11174,35 @@ public Builder mergeFrom( } break; } // case 346 + case 354: + { + input.readMessage(getJobFieldBuilder().getBuilder(), extensionRegistry); + bitField1_ |= 0x00000200; + break; + } // case 354 case 362: { input.readMessage(getApplicationFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000200; + bitField1_ |= 0x00000400; break; } // case 362 + case 370: + { + input.readMessage(getIpRulesFieldBuilder().getBuilder(), extensionRegistry); + bitField1_ |= 0x00000800; + break; + } // case 370 case 378: { input.readMessage( getBackupDisasterRecoveryFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000400; + bitField1_ |= 0x00001000; break; } // case 378 case 386: { input.readMessage(getSecurityPostureFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000800; + bitField1_ |= 0x00002000; break; } // case 386 case 394: @@ -10577,7 +11235,7 @@ public Builder mergeFrom( case 410: { input.readMessage(getCloudArmorFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00004000; + bitField1_ |= 0x00010000; break; } // case 410 case 426: @@ -10589,14 +11247,14 @@ public Builder mergeFrom( case 442: { input.readMessage(getNotebookFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00008000; + bitField1_ |= 0x00020000; break; } // case 442 case 450: { input.readMessage( getToxicCombinationFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00010000; + bitField1_ |= 0x00040000; break; } // case 450 case 458: @@ -10616,7 +11274,7 @@ public Builder mergeFrom( case 466: { input.readMessage(getDiskFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00040000; + bitField1_ |= 0x00100000; break; } // case 466 case 490: @@ -10647,6 +11305,19 @@ public Builder mergeFrom( } break; } // case 498 + case 506: + { + com.google.cloud.securitycenter.v2.Network m = + input.readMessage( + com.google.cloud.securitycenter.v2.Network.parser(), extensionRegistry); + if (networksBuilder_ == null) { + ensureNetworksIsMutable(); + networks_.add(m); + } else { + networksBuilder_.addMessage(m); + } + break; + } // case 506 case 514: { com.google.cloud.securitycenter.v2.DataRetentionDeletionEvent m = @@ -10661,6 +11332,31 @@ public Builder mergeFrom( } break; } // case 514 + case 522: + { + input.readMessage( + getAffectedResourcesFieldBuilder().getBuilder(), extensionRegistry); + bitField1_ |= 0x02000000; + break; + } // case 522 + case 530: + { + input.readMessage(getAiModelFieldBuilder().getBuilder(), extensionRegistry); + bitField1_ |= 0x04000000; + break; + } // case 530 + case 554: + { + input.readMessage(getChokepointFieldBuilder().getBuilder(), extensionRegistry); + bitField1_ |= 0x08000000; + break; + } // case 554 + case 578: + { + input.readMessage(getVertexAiFieldBuilder().getBuilder(), extensionRegistry); + bitField1_ |= 0x10000000; + break; + } // case 578 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -10687,7 +11383,7 @@ public Builder mergeFrom( * * *
      -     * The [relative resource
      +     * Identifier. The [relative resource
            * name](https://cloud.google.com/apis/design/resource_names#relative_resource_name)
            * of the finding. The following list shows some examples:
            *
      @@ -10703,7 +11399,7 @@ public Builder mergeFrom(
            * `projects/{project_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}`
            * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -10723,7 +11419,7 @@ public java.lang.String getName() { * * *
      -     * The [relative resource
      +     * Identifier. The [relative resource
            * name](https://cloud.google.com/apis/design/resource_names#relative_resource_name)
            * of the finding. The following list shows some examples:
            *
      @@ -10739,7 +11435,7 @@ public java.lang.String getName() {
            * `projects/{project_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}`
            * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -10759,7 +11455,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
      -     * The [relative resource
      +     * Identifier. The [relative resource
            * name](https://cloud.google.com/apis/design/resource_names#relative_resource_name)
            * of the finding. The following list shows some examples:
            *
      @@ -10775,7 +11471,7 @@ public com.google.protobuf.ByteString getNameBytes() {
            * `projects/{project_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}`
            * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -10794,7 +11490,7 @@ public Builder setName(java.lang.String value) { * * *
      -     * The [relative resource
      +     * Identifier. The [relative resource
            * name](https://cloud.google.com/apis/design/resource_names#relative_resource_name)
            * of the finding. The following list shows some examples:
            *
      @@ -10810,7 +11506,7 @@ public Builder setName(java.lang.String value) {
            * `projects/{project_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}`
            * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -10825,7 +11521,7 @@ public Builder clearName() { * * *
      -     * The [relative resource
      +     * Identifier. The [relative resource
            * name](https://cloud.google.com/apis/design/resource_names#relative_resource_name)
            * of the finding. The following list shows some examples:
            *
      @@ -10841,7 +11537,7 @@ public Builder clearName() {
            * `projects/{project_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}`
            * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. @@ -19480,6 +20176,196 @@ public com.google.cloud.securitycenter.v2.OrgPolicy.Builder addOrgPoliciesBuilde return orgPoliciesBuilder_; } + private com.google.cloud.securitycenter.v2.Job job_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v2.Job, + com.google.cloud.securitycenter.v2.Job.Builder, + com.google.cloud.securitycenter.v2.JobOrBuilder> + jobBuilder_; + + /** + * + * + *
      +     * Job associated with the finding.
      +     * 
      + * + * .google.cloud.securitycenter.v2.Job job = 44; + * + * @return Whether the job field is set. + */ + public boolean hasJob() { + return ((bitField1_ & 0x00000200) != 0); + } + + /** + * + * + *
      +     * Job associated with the finding.
      +     * 
      + * + * .google.cloud.securitycenter.v2.Job job = 44; + * + * @return The job. + */ + public com.google.cloud.securitycenter.v2.Job getJob() { + if (jobBuilder_ == null) { + return job_ == null ? com.google.cloud.securitycenter.v2.Job.getDefaultInstance() : job_; + } else { + return jobBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Job associated with the finding.
      +     * 
      + * + * .google.cloud.securitycenter.v2.Job job = 44; + */ + public Builder setJob(com.google.cloud.securitycenter.v2.Job value) { + if (jobBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + job_ = value; + } else { + jobBuilder_.setMessage(value); + } + bitField1_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Job associated with the finding.
      +     * 
      + * + * .google.cloud.securitycenter.v2.Job job = 44; + */ + public Builder setJob(com.google.cloud.securitycenter.v2.Job.Builder builderForValue) { + if (jobBuilder_ == null) { + job_ = builderForValue.build(); + } else { + jobBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Job associated with the finding.
      +     * 
      + * + * .google.cloud.securitycenter.v2.Job job = 44; + */ + public Builder mergeJob(com.google.cloud.securitycenter.v2.Job value) { + if (jobBuilder_ == null) { + if (((bitField1_ & 0x00000200) != 0) + && job_ != null + && job_ != com.google.cloud.securitycenter.v2.Job.getDefaultInstance()) { + getJobBuilder().mergeFrom(value); + } else { + job_ = value; + } + } else { + jobBuilder_.mergeFrom(value); + } + if (job_ != null) { + bitField1_ |= 0x00000200; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Job associated with the finding.
      +     * 
      + * + * .google.cloud.securitycenter.v2.Job job = 44; + */ + public Builder clearJob() { + bitField1_ = (bitField1_ & ~0x00000200); + job_ = null; + if (jobBuilder_ != null) { + jobBuilder_.dispose(); + jobBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Job associated with the finding.
      +     * 
      + * + * .google.cloud.securitycenter.v2.Job job = 44; + */ + public com.google.cloud.securitycenter.v2.Job.Builder getJobBuilder() { + bitField1_ |= 0x00000200; + onChanged(); + return getJobFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Job associated with the finding.
      +     * 
      + * + * .google.cloud.securitycenter.v2.Job job = 44; + */ + public com.google.cloud.securitycenter.v2.JobOrBuilder getJobOrBuilder() { + if (jobBuilder_ != null) { + return jobBuilder_.getMessageOrBuilder(); + } else { + return job_ == null ? com.google.cloud.securitycenter.v2.Job.getDefaultInstance() : job_; + } + } + + /** + * + * + *
      +     * Job associated with the finding.
      +     * 
      + * + * .google.cloud.securitycenter.v2.Job job = 44; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v2.Job, + com.google.cloud.securitycenter.v2.Job.Builder, + com.google.cloud.securitycenter.v2.JobOrBuilder> + getJobFieldBuilder() { + if (jobBuilder_ == null) { + jobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v2.Job, + com.google.cloud.securitycenter.v2.Job.Builder, + com.google.cloud.securitycenter.v2.JobOrBuilder>( + getJob(), getParentForChildren(), isClean()); + job_ = null; + } + return jobBuilder_; + } + private com.google.cloud.securitycenter.v2.Application application_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v2.Application, @@ -19499,7 +20385,7 @@ public com.google.cloud.securitycenter.v2.OrgPolicy.Builder addOrgPoliciesBuilde * @return Whether the application field is set. */ public boolean hasApplication() { - return ((bitField1_ & 0x00000200) != 0); + return ((bitField1_ & 0x00000400) != 0); } /** @@ -19541,7 +20427,7 @@ public Builder setApplication(com.google.cloud.securitycenter.v2.Application val } else { applicationBuilder_.setMessage(value); } - bitField1_ |= 0x00000200; + bitField1_ |= 0x00000400; onChanged(); return this; } @@ -19562,7 +20448,7 @@ public Builder setApplication( } else { applicationBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00000200; + bitField1_ |= 0x00000400; onChanged(); return this; } @@ -19578,7 +20464,7 @@ public Builder setApplication( */ public Builder mergeApplication(com.google.cloud.securitycenter.v2.Application value) { if (applicationBuilder_ == null) { - if (((bitField1_ & 0x00000200) != 0) + if (((bitField1_ & 0x00000400) != 0) && application_ != null && application_ != com.google.cloud.securitycenter.v2.Application.getDefaultInstance()) { @@ -19590,7 +20476,7 @@ public Builder mergeApplication(com.google.cloud.securitycenter.v2.Application v applicationBuilder_.mergeFrom(value); } if (application_ != null) { - bitField1_ |= 0x00000200; + bitField1_ |= 0x00000400; onChanged(); } return this; @@ -19606,7 +20492,7 @@ public Builder mergeApplication(com.google.cloud.securitycenter.v2.Application v * .google.cloud.securitycenter.v2.Application application = 45; */ public Builder clearApplication() { - bitField1_ = (bitField1_ & ~0x00000200); + bitField1_ = (bitField1_ & ~0x00000400); application_ = null; if (applicationBuilder_ != null) { applicationBuilder_.dispose(); @@ -19626,7 +20512,7 @@ public Builder clearApplication() { * .google.cloud.securitycenter.v2.Application application = 45; */ public com.google.cloud.securitycenter.v2.Application.Builder getApplicationBuilder() { - bitField1_ |= 0x00000200; + bitField1_ |= 0x00000400; onChanged(); return getApplicationFieldBuilder().getBuilder(); } @@ -19676,48 +20562,46 @@ public com.google.cloud.securitycenter.v2.ApplicationOrBuilder getApplicationOrB return applicationBuilder_; } - private com.google.cloud.securitycenter.v2.BackupDisasterRecovery backupDisasterRecovery_; + private com.google.cloud.securitycenter.v2.IpRules ipRules_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v2.BackupDisasterRecovery, - com.google.cloud.securitycenter.v2.BackupDisasterRecovery.Builder, - com.google.cloud.securitycenter.v2.BackupDisasterRecoveryOrBuilder> - backupDisasterRecoveryBuilder_; + com.google.cloud.securitycenter.v2.IpRules, + com.google.cloud.securitycenter.v2.IpRules.Builder, + com.google.cloud.securitycenter.v2.IpRulesOrBuilder> + ipRulesBuilder_; /** * * *
      -     * Fields related to Backup and DR findings.
      +     * IP rules associated with the finding.
            * 
      * - * .google.cloud.securitycenter.v2.BackupDisasterRecovery backup_disaster_recovery = 47; - * + * .google.cloud.securitycenter.v2.IpRules ip_rules = 46; * - * @return Whether the backupDisasterRecovery field is set. + * @return Whether the ipRules field is set. */ - public boolean hasBackupDisasterRecovery() { - return ((bitField1_ & 0x00000400) != 0); + public boolean hasIpRules() { + return ((bitField1_ & 0x00000800) != 0); } /** * * *
      -     * Fields related to Backup and DR findings.
      +     * IP rules associated with the finding.
            * 
      * - * .google.cloud.securitycenter.v2.BackupDisasterRecovery backup_disaster_recovery = 47; - * + * .google.cloud.securitycenter.v2.IpRules ip_rules = 46; * - * @return The backupDisasterRecovery. + * @return The ipRules. */ - public com.google.cloud.securitycenter.v2.BackupDisasterRecovery getBackupDisasterRecovery() { - if (backupDisasterRecoveryBuilder_ == null) { - return backupDisasterRecovery_ == null - ? com.google.cloud.securitycenter.v2.BackupDisasterRecovery.getDefaultInstance() - : backupDisasterRecovery_; + public com.google.cloud.securitycenter.v2.IpRules getIpRules() { + if (ipRulesBuilder_ == null) { + return ipRules_ == null + ? com.google.cloud.securitycenter.v2.IpRules.getDefaultInstance() + : ipRules_; } else { - return backupDisasterRecoveryBuilder_.getMessage(); + return ipRulesBuilder_.getMessage(); } } @@ -19725,10 +20609,206 @@ public com.google.cloud.securitycenter.v2.BackupDisasterRecovery getBackupDisast * * *
      -     * Fields related to Backup and DR findings.
      +     * IP rules associated with the finding.
            * 
      * - * .google.cloud.securitycenter.v2.BackupDisasterRecovery backup_disaster_recovery = 47; + * .google.cloud.securitycenter.v2.IpRules ip_rules = 46; + */ + public Builder setIpRules(com.google.cloud.securitycenter.v2.IpRules value) { + if (ipRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ipRules_ = value; + } else { + ipRulesBuilder_.setMessage(value); + } + bitField1_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
      +     * IP rules associated with the finding.
      +     * 
      + * + * .google.cloud.securitycenter.v2.IpRules ip_rules = 46; + */ + public Builder setIpRules(com.google.cloud.securitycenter.v2.IpRules.Builder builderForValue) { + if (ipRulesBuilder_ == null) { + ipRules_ = builderForValue.build(); + } else { + ipRulesBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
      +     * IP rules associated with the finding.
      +     * 
      + * + * .google.cloud.securitycenter.v2.IpRules ip_rules = 46; + */ + public Builder mergeIpRules(com.google.cloud.securitycenter.v2.IpRules value) { + if (ipRulesBuilder_ == null) { + if (((bitField1_ & 0x00000800) != 0) + && ipRules_ != null + && ipRules_ != com.google.cloud.securitycenter.v2.IpRules.getDefaultInstance()) { + getIpRulesBuilder().mergeFrom(value); + } else { + ipRules_ = value; + } + } else { + ipRulesBuilder_.mergeFrom(value); + } + if (ipRules_ != null) { + bitField1_ |= 0x00000800; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * IP rules associated with the finding.
      +     * 
      + * + * .google.cloud.securitycenter.v2.IpRules ip_rules = 46; + */ + public Builder clearIpRules() { + bitField1_ = (bitField1_ & ~0x00000800); + ipRules_ = null; + if (ipRulesBuilder_ != null) { + ipRulesBuilder_.dispose(); + ipRulesBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * IP rules associated with the finding.
      +     * 
      + * + * .google.cloud.securitycenter.v2.IpRules ip_rules = 46; + */ + public com.google.cloud.securitycenter.v2.IpRules.Builder getIpRulesBuilder() { + bitField1_ |= 0x00000800; + onChanged(); + return getIpRulesFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * IP rules associated with the finding.
      +     * 
      + * + * .google.cloud.securitycenter.v2.IpRules ip_rules = 46; + */ + public com.google.cloud.securitycenter.v2.IpRulesOrBuilder getIpRulesOrBuilder() { + if (ipRulesBuilder_ != null) { + return ipRulesBuilder_.getMessageOrBuilder(); + } else { + return ipRules_ == null + ? com.google.cloud.securitycenter.v2.IpRules.getDefaultInstance() + : ipRules_; + } + } + + /** + * + * + *
      +     * IP rules associated with the finding.
      +     * 
      + * + * .google.cloud.securitycenter.v2.IpRules ip_rules = 46; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v2.IpRules, + com.google.cloud.securitycenter.v2.IpRules.Builder, + com.google.cloud.securitycenter.v2.IpRulesOrBuilder> + getIpRulesFieldBuilder() { + if (ipRulesBuilder_ == null) { + ipRulesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v2.IpRules, + com.google.cloud.securitycenter.v2.IpRules.Builder, + com.google.cloud.securitycenter.v2.IpRulesOrBuilder>( + getIpRules(), getParentForChildren(), isClean()); + ipRules_ = null; + } + return ipRulesBuilder_; + } + + private com.google.cloud.securitycenter.v2.BackupDisasterRecovery backupDisasterRecovery_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v2.BackupDisasterRecovery, + com.google.cloud.securitycenter.v2.BackupDisasterRecovery.Builder, + com.google.cloud.securitycenter.v2.BackupDisasterRecoveryOrBuilder> + backupDisasterRecoveryBuilder_; + + /** + * + * + *
      +     * Fields related to Backup and DR findings.
      +     * 
      + * + * .google.cloud.securitycenter.v2.BackupDisasterRecovery backup_disaster_recovery = 47; + * + * + * @return Whether the backupDisasterRecovery field is set. + */ + public boolean hasBackupDisasterRecovery() { + return ((bitField1_ & 0x00001000) != 0); + } + + /** + * + * + *
      +     * Fields related to Backup and DR findings.
      +     * 
      + * + * .google.cloud.securitycenter.v2.BackupDisasterRecovery backup_disaster_recovery = 47; + * + * + * @return The backupDisasterRecovery. + */ + public com.google.cloud.securitycenter.v2.BackupDisasterRecovery getBackupDisasterRecovery() { + if (backupDisasterRecoveryBuilder_ == null) { + return backupDisasterRecovery_ == null + ? com.google.cloud.securitycenter.v2.BackupDisasterRecovery.getDefaultInstance() + : backupDisasterRecovery_; + } else { + return backupDisasterRecoveryBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Fields related to Backup and DR findings.
      +     * 
      + * + * .google.cloud.securitycenter.v2.BackupDisasterRecovery backup_disaster_recovery = 47; * */ public Builder setBackupDisasterRecovery( @@ -19741,7 +20821,7 @@ public Builder setBackupDisasterRecovery( } else { backupDisasterRecoveryBuilder_.setMessage(value); } - bitField1_ |= 0x00000400; + bitField1_ |= 0x00001000; onChanged(); return this; } @@ -19763,7 +20843,7 @@ public Builder setBackupDisasterRecovery( } else { backupDisasterRecoveryBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00000400; + bitField1_ |= 0x00001000; onChanged(); return this; } @@ -19781,7 +20861,7 @@ public Builder setBackupDisasterRecovery( public Builder mergeBackupDisasterRecovery( com.google.cloud.securitycenter.v2.BackupDisasterRecovery value) { if (backupDisasterRecoveryBuilder_ == null) { - if (((bitField1_ & 0x00000400) != 0) + if (((bitField1_ & 0x00001000) != 0) && backupDisasterRecovery_ != null && backupDisasterRecovery_ != com.google.cloud.securitycenter.v2.BackupDisasterRecovery.getDefaultInstance()) { @@ -19793,7 +20873,7 @@ public Builder mergeBackupDisasterRecovery( backupDisasterRecoveryBuilder_.mergeFrom(value); } if (backupDisasterRecovery_ != null) { - bitField1_ |= 0x00000400; + bitField1_ |= 0x00001000; onChanged(); } return this; @@ -19810,7 +20890,7 @@ public Builder mergeBackupDisasterRecovery( *
      */ public Builder clearBackupDisasterRecovery() { - bitField1_ = (bitField1_ & ~0x00000400); + bitField1_ = (bitField1_ & ~0x00001000); backupDisasterRecovery_ = null; if (backupDisasterRecoveryBuilder_ != null) { backupDisasterRecoveryBuilder_.dispose(); @@ -19832,7 +20912,7 @@ public Builder clearBackupDisasterRecovery() { */ public com.google.cloud.securitycenter.v2.BackupDisasterRecovery.Builder getBackupDisasterRecoveryBuilder() { - bitField1_ |= 0x00000400; + bitField1_ |= 0x00001000; onChanged(); return getBackupDisasterRecoveryFieldBuilder().getBuilder(); } @@ -19904,7 +20984,7 @@ public Builder clearBackupDisasterRecovery() { * @return Whether the securityPosture field is set. */ public boolean hasSecurityPosture() { - return ((bitField1_ & 0x00000800) != 0); + return ((bitField1_ & 0x00002000) != 0); } /** @@ -19946,7 +21026,7 @@ public Builder setSecurityPosture(com.google.cloud.securitycenter.v2.SecurityPos } else { securityPostureBuilder_.setMessage(value); } - bitField1_ |= 0x00000800; + bitField1_ |= 0x00002000; onChanged(); return this; } @@ -19967,7 +21047,7 @@ public Builder setSecurityPosture( } else { securityPostureBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00000800; + bitField1_ |= 0x00002000; onChanged(); return this; } @@ -19983,7 +21063,7 @@ public Builder setSecurityPosture( */ public Builder mergeSecurityPosture(com.google.cloud.securitycenter.v2.SecurityPosture value) { if (securityPostureBuilder_ == null) { - if (((bitField1_ & 0x00000800) != 0) + if (((bitField1_ & 0x00002000) != 0) && securityPosture_ != null && securityPosture_ != com.google.cloud.securitycenter.v2.SecurityPosture.getDefaultInstance()) { @@ -19995,7 +21075,7 @@ public Builder mergeSecurityPosture(com.google.cloud.securitycenter.v2.SecurityP securityPostureBuilder_.mergeFrom(value); } if (securityPosture_ != null) { - bitField1_ |= 0x00000800; + bitField1_ |= 0x00002000; onChanged(); } return this; @@ -20011,7 +21091,7 @@ public Builder mergeSecurityPosture(com.google.cloud.securitycenter.v2.SecurityP * .google.cloud.securitycenter.v2.SecurityPosture security_posture = 48; */ public Builder clearSecurityPosture() { - bitField1_ = (bitField1_ & ~0x00000800); + bitField1_ = (bitField1_ & ~0x00002000); securityPosture_ = null; if (securityPostureBuilder_ != null) { securityPostureBuilder_.dispose(); @@ -20031,7 +21111,7 @@ public Builder clearSecurityPosture() { * .google.cloud.securitycenter.v2.SecurityPosture security_posture = 48; */ public com.google.cloud.securitycenter.v2.SecurityPosture.Builder getSecurityPostureBuilder() { - bitField1_ |= 0x00000800; + bitField1_ |= 0x00002000; onChanged(); return getSecurityPostureFieldBuilder().getBuilder(); } @@ -20086,10 +21166,10 @@ public com.google.cloud.securitycenter.v2.SecurityPosture.Builder getSecurityPos java.util.Collections.emptyList(); private void ensureLogEntriesIsMutable() { - if (!((bitField1_ & 0x00001000) != 0)) { + if (!((bitField1_ & 0x00004000) != 0)) { logEntries_ = new java.util.ArrayList(logEntries_); - bitField1_ |= 0x00001000; + bitField1_ |= 0x00004000; } } @@ -20315,7 +21395,7 @@ public Builder addAllLogEntries( public Builder clearLogEntries() { if (logEntriesBuilder_ == null) { logEntries_ = java.util.Collections.emptyList(); - bitField1_ = (bitField1_ & ~0x00001000); + bitField1_ = (bitField1_ & ~0x00004000); onChanged(); } else { logEntriesBuilder_.clear(); @@ -20444,7 +21524,7 @@ public com.google.cloud.securitycenter.v2.LogEntry.Builder addLogEntriesBuilder( com.google.cloud.securitycenter.v2.LogEntry, com.google.cloud.securitycenter.v2.LogEntry.Builder, com.google.cloud.securitycenter.v2.LogEntryOrBuilder>( - logEntries_, ((bitField1_ & 0x00001000) != 0), getParentForChildren(), isClean()); + logEntries_, ((bitField1_ & 0x00004000) != 0), getParentForChildren(), isClean()); logEntries_ = null; } return logEntriesBuilder_; @@ -20454,11 +21534,11 @@ public com.google.cloud.securitycenter.v2.LogEntry.Builder addLogEntriesBuilder( java.util.Collections.emptyList(); private void ensureLoadBalancersIsMutable() { - if (!((bitField1_ & 0x00002000) != 0)) { + if (!((bitField1_ & 0x00008000) != 0)) { loadBalancers_ = new java.util.ArrayList( loadBalancers_); - bitField1_ |= 0x00002000; + bitField1_ |= 0x00008000; } } @@ -20686,7 +21766,7 @@ public Builder addAllLoadBalancers( public Builder clearLoadBalancers() { if (loadBalancersBuilder_ == null) { loadBalancers_ = java.util.Collections.emptyList(); - bitField1_ = (bitField1_ & ~0x00002000); + bitField1_ = (bitField1_ & ~0x00008000); onChanged(); } else { loadBalancersBuilder_.clear(); @@ -20819,7 +21899,7 @@ public com.google.cloud.securitycenter.v2.LoadBalancer.Builder addLoadBalancersB com.google.cloud.securitycenter.v2.LoadBalancer.Builder, com.google.cloud.securitycenter.v2.LoadBalancerOrBuilder>( loadBalancers_, - ((bitField1_ & 0x00002000) != 0), + ((bitField1_ & 0x00008000) != 0), getParentForChildren(), isClean()); loadBalancers_ = null; @@ -20846,7 +21926,7 @@ public com.google.cloud.securitycenter.v2.LoadBalancer.Builder addLoadBalancersB * @return Whether the cloudArmor field is set. */ public boolean hasCloudArmor() { - return ((bitField1_ & 0x00004000) != 0); + return ((bitField1_ & 0x00010000) != 0); } /** @@ -20888,7 +21968,7 @@ public Builder setCloudArmor(com.google.cloud.securitycenter.v2.CloudArmor value } else { cloudArmorBuilder_.setMessage(value); } - bitField1_ |= 0x00004000; + bitField1_ |= 0x00010000; onChanged(); return this; } @@ -20909,7 +21989,7 @@ public Builder setCloudArmor( } else { cloudArmorBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00004000; + bitField1_ |= 0x00010000; onChanged(); return this; } @@ -20925,7 +22005,7 @@ public Builder setCloudArmor( */ public Builder mergeCloudArmor(com.google.cloud.securitycenter.v2.CloudArmor value) { if (cloudArmorBuilder_ == null) { - if (((bitField1_ & 0x00004000) != 0) + if (((bitField1_ & 0x00010000) != 0) && cloudArmor_ != null && cloudArmor_ != com.google.cloud.securitycenter.v2.CloudArmor.getDefaultInstance()) { getCloudArmorBuilder().mergeFrom(value); @@ -20936,7 +22016,7 @@ public Builder mergeCloudArmor(com.google.cloud.securitycenter.v2.CloudArmor val cloudArmorBuilder_.mergeFrom(value); } if (cloudArmor_ != null) { - bitField1_ |= 0x00004000; + bitField1_ |= 0x00010000; onChanged(); } return this; @@ -20952,7 +22032,7 @@ public Builder mergeCloudArmor(com.google.cloud.securitycenter.v2.CloudArmor val * .google.cloud.securitycenter.v2.CloudArmor cloud_armor = 51; */ public Builder clearCloudArmor() { - bitField1_ = (bitField1_ & ~0x00004000); + bitField1_ = (bitField1_ & ~0x00010000); cloudArmor_ = null; if (cloudArmorBuilder_ != null) { cloudArmorBuilder_.dispose(); @@ -20972,7 +22052,7 @@ public Builder clearCloudArmor() { * .google.cloud.securitycenter.v2.CloudArmor cloud_armor = 51; */ public com.google.cloud.securitycenter.v2.CloudArmor.Builder getCloudArmorBuilder() { - bitField1_ |= 0x00004000; + bitField1_ |= 0x00010000; onChanged(); return getCloudArmorFieldBuilder().getBuilder(); } @@ -21041,7 +22121,7 @@ public com.google.cloud.securitycenter.v2.CloudArmorOrBuilder getCloudArmorOrBui * @return Whether the notebook field is set. */ public boolean hasNotebook() { - return ((bitField1_ & 0x00008000) != 0); + return ((bitField1_ & 0x00020000) != 0); } /** @@ -21083,7 +22163,7 @@ public Builder setNotebook(com.google.cloud.securitycenter.v2.Notebook value) { } else { notebookBuilder_.setMessage(value); } - bitField1_ |= 0x00008000; + bitField1_ |= 0x00020000; onChanged(); return this; } @@ -21104,7 +22184,7 @@ public Builder setNotebook( } else { notebookBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00008000; + bitField1_ |= 0x00020000; onChanged(); return this; } @@ -21120,7 +22200,7 @@ public Builder setNotebook( */ public Builder mergeNotebook(com.google.cloud.securitycenter.v2.Notebook value) { if (notebookBuilder_ == null) { - if (((bitField1_ & 0x00008000) != 0) + if (((bitField1_ & 0x00020000) != 0) && notebook_ != null && notebook_ != com.google.cloud.securitycenter.v2.Notebook.getDefaultInstance()) { getNotebookBuilder().mergeFrom(value); @@ -21131,7 +22211,7 @@ public Builder mergeNotebook(com.google.cloud.securitycenter.v2.Notebook value) notebookBuilder_.mergeFrom(value); } if (notebook_ != null) { - bitField1_ |= 0x00008000; + bitField1_ |= 0x00020000; onChanged(); } return this; @@ -21147,7 +22227,7 @@ public Builder mergeNotebook(com.google.cloud.securitycenter.v2.Notebook value) * .google.cloud.securitycenter.v2.Notebook notebook = 55; */ public Builder clearNotebook() { - bitField1_ = (bitField1_ & ~0x00008000); + bitField1_ = (bitField1_ & ~0x00020000); notebook_ = null; if (notebookBuilder_ != null) { notebookBuilder_.dispose(); @@ -21167,7 +22247,7 @@ public Builder clearNotebook() { * .google.cloud.securitycenter.v2.Notebook notebook = 55; */ public com.google.cloud.securitycenter.v2.Notebook.Builder getNotebookBuilder() { - bitField1_ |= 0x00008000; + bitField1_ |= 0x00020000; onChanged(); return getNotebookFieldBuilder().getBuilder(); } @@ -21240,7 +22320,7 @@ public com.google.cloud.securitycenter.v2.NotebookOrBuilder getNotebookOrBuilder * @return Whether the toxicCombination field is set. */ public boolean hasToxicCombination() { - return ((bitField1_ & 0x00010000) != 0); + return ((bitField1_ & 0x00040000) != 0); } /** @@ -21290,7 +22370,7 @@ public Builder setToxicCombination(com.google.cloud.securitycenter.v2.ToxicCombi } else { toxicCombinationBuilder_.setMessage(value); } - bitField1_ |= 0x00010000; + bitField1_ |= 0x00040000; onChanged(); return this; } @@ -21315,7 +22395,7 @@ public Builder setToxicCombination( } else { toxicCombinationBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00010000; + bitField1_ |= 0x00040000; onChanged(); return this; } @@ -21336,7 +22416,7 @@ public Builder setToxicCombination( public Builder mergeToxicCombination( com.google.cloud.securitycenter.v2.ToxicCombination value) { if (toxicCombinationBuilder_ == null) { - if (((bitField1_ & 0x00010000) != 0) + if (((bitField1_ & 0x00040000) != 0) && toxicCombination_ != null && toxicCombination_ != com.google.cloud.securitycenter.v2.ToxicCombination.getDefaultInstance()) { @@ -21348,7 +22428,7 @@ public Builder mergeToxicCombination( toxicCombinationBuilder_.mergeFrom(value); } if (toxicCombination_ != null) { - bitField1_ |= 0x00010000; + bitField1_ |= 0x00040000; onChanged(); } return this; @@ -21368,7 +22448,7 @@ public Builder mergeToxicCombination( * .google.cloud.securitycenter.v2.ToxicCombination toxic_combination = 56; */ public Builder clearToxicCombination() { - bitField1_ = (bitField1_ & ~0x00010000); + bitField1_ = (bitField1_ & ~0x00040000); toxicCombination_ = null; if (toxicCombinationBuilder_ != null) { toxicCombinationBuilder_.dispose(); @@ -21393,7 +22473,7 @@ public Builder clearToxicCombination() { */ public com.google.cloud.securitycenter.v2.ToxicCombination.Builder getToxicCombinationBuilder() { - bitField1_ |= 0x00010000; + bitField1_ |= 0x00040000; onChanged(); return getToxicCombinationFieldBuilder().getBuilder(); } @@ -21456,11 +22536,11 @@ public Builder clearToxicCombination() { java.util.Collections.emptyList(); private void ensureGroupMembershipsIsMutable() { - if (!((bitField1_ & 0x00020000) != 0)) { + if (!((bitField1_ & 0x00080000) != 0)) { groupMemberships_ = new java.util.ArrayList( groupMemberships_); - bitField1_ |= 0x00020000; + bitField1_ |= 0x00080000; } } @@ -21711,7 +22791,7 @@ public Builder addAllGroupMemberships( public Builder clearGroupMemberships() { if (groupMembershipsBuilder_ == null) { groupMemberships_ = java.util.Collections.emptyList(); - bitField1_ = (bitField1_ & ~0x00020000); + bitField1_ = (bitField1_ & ~0x00080000); onChanged(); } else { groupMembershipsBuilder_.clear(); @@ -21859,7 +22939,7 @@ public com.google.cloud.securitycenter.v2.GroupMembership.Builder addGroupMember com.google.cloud.securitycenter.v2.GroupMembership.Builder, com.google.cloud.securitycenter.v2.GroupMembershipOrBuilder>( groupMemberships_, - ((bitField1_ & 0x00020000) != 0), + ((bitField1_ & 0x00080000) != 0), getParentForChildren(), isClean()); groupMemberships_ = null; @@ -21886,7 +22966,7 @@ public com.google.cloud.securitycenter.v2.GroupMembership.Builder addGroupMember * @return Whether the disk field is set. */ public boolean hasDisk() { - return ((bitField1_ & 0x00040000) != 0); + return ((bitField1_ & 0x00100000) != 0); } /** @@ -21926,7 +23006,7 @@ public Builder setDisk(com.google.cloud.securitycenter.v2.Disk value) { } else { diskBuilder_.setMessage(value); } - bitField1_ |= 0x00040000; + bitField1_ |= 0x00100000; onChanged(); return this; } @@ -21946,7 +23026,7 @@ public Builder setDisk(com.google.cloud.securitycenter.v2.Disk.Builder builderFo } else { diskBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00040000; + bitField1_ |= 0x00100000; onChanged(); return this; } @@ -21962,7 +23042,7 @@ public Builder setDisk(com.google.cloud.securitycenter.v2.Disk.Builder builderFo */ public Builder mergeDisk(com.google.cloud.securitycenter.v2.Disk value) { if (diskBuilder_ == null) { - if (((bitField1_ & 0x00040000) != 0) + if (((bitField1_ & 0x00100000) != 0) && disk_ != null && disk_ != com.google.cloud.securitycenter.v2.Disk.getDefaultInstance()) { getDiskBuilder().mergeFrom(value); @@ -21973,7 +23053,7 @@ public Builder mergeDisk(com.google.cloud.securitycenter.v2.Disk value) { diskBuilder_.mergeFrom(value); } if (disk_ != null) { - bitField1_ |= 0x00040000; + bitField1_ |= 0x00100000; onChanged(); } return this; @@ -21989,7 +23069,7 @@ public Builder mergeDisk(com.google.cloud.securitycenter.v2.Disk value) { * .google.cloud.securitycenter.v2.Disk disk = 58; */ public Builder clearDisk() { - bitField1_ = (bitField1_ & ~0x00040000); + bitField1_ = (bitField1_ & ~0x00100000); disk_ = null; if (diskBuilder_ != null) { diskBuilder_.dispose(); @@ -22009,7 +23089,7 @@ public Builder clearDisk() { * .google.cloud.securitycenter.v2.Disk disk = 58; */ public com.google.cloud.securitycenter.v2.Disk.Builder getDiskBuilder() { - bitField1_ |= 0x00040000; + bitField1_ |= 0x00100000; onChanged(); return getDiskFieldBuilder().getBuilder(); } @@ -22061,11 +23141,11 @@ public com.google.cloud.securitycenter.v2.DiskOrBuilder getDiskOrBuilder() { java.util.Collections.emptyList(); private void ensureDataAccessEventsIsMutable() { - if (!((bitField1_ & 0x00080000) != 0)) { + if (!((bitField1_ & 0x00200000) != 0)) { dataAccessEvents_ = new java.util.ArrayList( dataAccessEvents_); - bitField1_ |= 0x00080000; + bitField1_ |= 0x00200000; } } @@ -22305,7 +23385,7 @@ public Builder addAllDataAccessEvents( public Builder clearDataAccessEvents() { if (dataAccessEventsBuilder_ == null) { dataAccessEvents_ = java.util.Collections.emptyList(); - bitField1_ = (bitField1_ & ~0x00080000); + bitField1_ = (bitField1_ & ~0x00200000); onChanged(); } else { dataAccessEventsBuilder_.clear(); @@ -22446,7 +23526,7 @@ public com.google.cloud.securitycenter.v2.DataAccessEvent.Builder addDataAccessE com.google.cloud.securitycenter.v2.DataAccessEvent.Builder, com.google.cloud.securitycenter.v2.DataAccessEventOrBuilder>( dataAccessEvents_, - ((bitField1_ & 0x00080000) != 0), + ((bitField1_ & 0x00200000) != 0), getParentForChildren(), isClean()); dataAccessEvents_ = null; @@ -22458,11 +23538,11 @@ public com.google.cloud.securitycenter.v2.DataAccessEvent.Builder addDataAccessE java.util.Collections.emptyList(); private void ensureDataFlowEventsIsMutable() { - if (!((bitField1_ & 0x00100000) != 0)) { + if (!((bitField1_ & 0x00400000) != 0)) { dataFlowEvents_ = new java.util.ArrayList( dataFlowEvents_); - bitField1_ |= 0x00100000; + bitField1_ |= 0x00400000; } } @@ -22691,7 +23771,7 @@ public Builder addAllDataFlowEvents( public Builder clearDataFlowEvents() { if (dataFlowEventsBuilder_ == null) { dataFlowEvents_ = java.util.Collections.emptyList(); - bitField1_ = (bitField1_ & ~0x00100000); + bitField1_ = (bitField1_ & ~0x00400000); onChanged(); } else { dataFlowEventsBuilder_.clear(); @@ -22824,7 +23904,7 @@ public com.google.cloud.securitycenter.v2.DataFlowEvent.Builder addDataFlowEvent com.google.cloud.securitycenter.v2.DataFlowEvent.Builder, com.google.cloud.securitycenter.v2.DataFlowEventOrBuilder>( dataFlowEvents_, - ((bitField1_ & 0x00100000) != 0), + ((bitField1_ & 0x00400000) != 0), getParentForChildren(), isClean()); dataFlowEvents_ = null; @@ -22832,41 +23912,36 @@ public com.google.cloud.securitycenter.v2.DataFlowEvent.Builder addDataFlowEvent return dataFlowEventsBuilder_; } - private java.util.List - dataRetentionDeletionEvents_ = java.util.Collections.emptyList(); + private java.util.List networks_ = + java.util.Collections.emptyList(); - private void ensureDataRetentionDeletionEventsIsMutable() { - if (!((bitField1_ & 0x00200000) != 0)) { - dataRetentionDeletionEvents_ = - new java.util.ArrayList( - dataRetentionDeletionEvents_); - bitField1_ |= 0x00200000; + private void ensureNetworksIsMutable() { + if (!((bitField1_ & 0x00800000) != 0)) { + networks_ = new java.util.ArrayList(networks_); + bitField1_ |= 0x00800000; } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v2.DataRetentionDeletionEvent, - com.google.cloud.securitycenter.v2.DataRetentionDeletionEvent.Builder, - com.google.cloud.securitycenter.v2.DataRetentionDeletionEventOrBuilder> - dataRetentionDeletionEventsBuilder_; + com.google.cloud.securitycenter.v2.Network, + com.google.cloud.securitycenter.v2.Network.Builder, + com.google.cloud.securitycenter.v2.NetworkOrBuilder> + networksBuilder_; /** * * *
      -     * Data retention deletion events associated with the finding.
      +     * Represents the VPC networks that the resource is attached to.
            * 
      * - * - * repeated .google.cloud.securitycenter.v2.DataRetentionDeletionEvent data_retention_deletion_events = 64; - * + * repeated .google.cloud.securitycenter.v2.Network networks = 63; */ - public java.util.List - getDataRetentionDeletionEventsList() { - if (dataRetentionDeletionEventsBuilder_ == null) { - return java.util.Collections.unmodifiableList(dataRetentionDeletionEvents_); + public java.util.List getNetworksList() { + if (networksBuilder_ == null) { + return java.util.Collections.unmodifiableList(networks_); } else { - return dataRetentionDeletionEventsBuilder_.getMessageList(); + return networksBuilder_.getMessageList(); } } @@ -22874,18 +23949,16 @@ private void ensureDataRetentionDeletionEventsIsMutable() { * * *
      -     * Data retention deletion events associated with the finding.
      +     * Represents the VPC networks that the resource is attached to.
            * 
      * - * - * repeated .google.cloud.securitycenter.v2.DataRetentionDeletionEvent data_retention_deletion_events = 64; - * + * repeated .google.cloud.securitycenter.v2.Network networks = 63; */ - public int getDataRetentionDeletionEventsCount() { - if (dataRetentionDeletionEventsBuilder_ == null) { - return dataRetentionDeletionEvents_.size(); + public int getNetworksCount() { + if (networksBuilder_ == null) { + return networks_.size(); } else { - return dataRetentionDeletionEventsBuilder_.getCount(); + return networksBuilder_.getCount(); } } @@ -22893,19 +23966,16 @@ public int getDataRetentionDeletionEventsCount() { * * *
      -     * Data retention deletion events associated with the finding.
      +     * Represents the VPC networks that the resource is attached to.
            * 
      * - * - * repeated .google.cloud.securitycenter.v2.DataRetentionDeletionEvent data_retention_deletion_events = 64; - * + * repeated .google.cloud.securitycenter.v2.Network networks = 63; */ - public com.google.cloud.securitycenter.v2.DataRetentionDeletionEvent - getDataRetentionDeletionEvents(int index) { - if (dataRetentionDeletionEventsBuilder_ == null) { - return dataRetentionDeletionEvents_.get(index); + public com.google.cloud.securitycenter.v2.Network getNetworks(int index) { + if (networksBuilder_ == null) { + return networks_.get(index); } else { - return dataRetentionDeletionEventsBuilder_.getMessage(index); + return networksBuilder_.getMessage(index); } } @@ -22913,24 +23983,21 @@ public int getDataRetentionDeletionEventsCount() { * * *
      -     * Data retention deletion events associated with the finding.
      +     * Represents the VPC networks that the resource is attached to.
            * 
      * - * - * repeated .google.cloud.securitycenter.v2.DataRetentionDeletionEvent data_retention_deletion_events = 64; - * + * repeated .google.cloud.securitycenter.v2.Network networks = 63; */ - public Builder setDataRetentionDeletionEvents( - int index, com.google.cloud.securitycenter.v2.DataRetentionDeletionEvent value) { - if (dataRetentionDeletionEventsBuilder_ == null) { + public Builder setNetworks(int index, com.google.cloud.securitycenter.v2.Network value) { + if (networksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureDataRetentionDeletionEventsIsMutable(); - dataRetentionDeletionEvents_.set(index, value); + ensureNetworksIsMutable(); + networks_.set(index, value); onChanged(); } else { - dataRetentionDeletionEventsBuilder_.setMessage(index, value); + networksBuilder_.setMessage(index, value); } return this; } @@ -22939,22 +24006,19 @@ public Builder setDataRetentionDeletionEvents( * * *
      -     * Data retention deletion events associated with the finding.
      +     * Represents the VPC networks that the resource is attached to.
            * 
      * - * - * repeated .google.cloud.securitycenter.v2.DataRetentionDeletionEvent data_retention_deletion_events = 64; - * + * repeated .google.cloud.securitycenter.v2.Network networks = 63; */ - public Builder setDataRetentionDeletionEvents( - int index, - com.google.cloud.securitycenter.v2.DataRetentionDeletionEvent.Builder builderForValue) { - if (dataRetentionDeletionEventsBuilder_ == null) { - ensureDataRetentionDeletionEventsIsMutable(); - dataRetentionDeletionEvents_.set(index, builderForValue.build()); + public Builder setNetworks( + int index, com.google.cloud.securitycenter.v2.Network.Builder builderForValue) { + if (networksBuilder_ == null) { + ensureNetworksIsMutable(); + networks_.set(index, builderForValue.build()); onChanged(); } else { - dataRetentionDeletionEventsBuilder_.setMessage(index, builderForValue.build()); + networksBuilder_.setMessage(index, builderForValue.build()); } return this; } @@ -22963,24 +24027,21 @@ public Builder setDataRetentionDeletionEvents( * * *
      -     * Data retention deletion events associated with the finding.
      +     * Represents the VPC networks that the resource is attached to.
            * 
      * - * - * repeated .google.cloud.securitycenter.v2.DataRetentionDeletionEvent data_retention_deletion_events = 64; - * + * repeated .google.cloud.securitycenter.v2.Network networks = 63; */ - public Builder addDataRetentionDeletionEvents( - com.google.cloud.securitycenter.v2.DataRetentionDeletionEvent value) { - if (dataRetentionDeletionEventsBuilder_ == null) { + public Builder addNetworks(com.google.cloud.securitycenter.v2.Network value) { + if (networksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureDataRetentionDeletionEventsIsMutable(); - dataRetentionDeletionEvents_.add(value); + ensureNetworksIsMutable(); + networks_.add(value); onChanged(); } else { - dataRetentionDeletionEventsBuilder_.addMessage(value); + networksBuilder_.addMessage(value); } return this; } @@ -22989,24 +24050,21 @@ public Builder addDataRetentionDeletionEvents( * * *
      -     * Data retention deletion events associated with the finding.
      +     * Represents the VPC networks that the resource is attached to.
            * 
      * - * - * repeated .google.cloud.securitycenter.v2.DataRetentionDeletionEvent data_retention_deletion_events = 64; - * + * repeated .google.cloud.securitycenter.v2.Network networks = 63; */ - public Builder addDataRetentionDeletionEvents( - int index, com.google.cloud.securitycenter.v2.DataRetentionDeletionEvent value) { - if (dataRetentionDeletionEventsBuilder_ == null) { + public Builder addNetworks(int index, com.google.cloud.securitycenter.v2.Network value) { + if (networksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureDataRetentionDeletionEventsIsMutable(); - dataRetentionDeletionEvents_.add(index, value); + ensureNetworksIsMutable(); + networks_.add(index, value); onChanged(); } else { - dataRetentionDeletionEventsBuilder_.addMessage(index, value); + networksBuilder_.addMessage(index, value); } return this; } @@ -23015,21 +24073,18 @@ public Builder addDataRetentionDeletionEvents( * * *
      -     * Data retention deletion events associated with the finding.
      +     * Represents the VPC networks that the resource is attached to.
            * 
      * - * - * repeated .google.cloud.securitycenter.v2.DataRetentionDeletionEvent data_retention_deletion_events = 64; - * + * repeated .google.cloud.securitycenter.v2.Network networks = 63; */ - public Builder addDataRetentionDeletionEvents( - com.google.cloud.securitycenter.v2.DataRetentionDeletionEvent.Builder builderForValue) { - if (dataRetentionDeletionEventsBuilder_ == null) { - ensureDataRetentionDeletionEventsIsMutable(); - dataRetentionDeletionEvents_.add(builderForValue.build()); + public Builder addNetworks(com.google.cloud.securitycenter.v2.Network.Builder builderForValue) { + if (networksBuilder_ == null) { + ensureNetworksIsMutable(); + networks_.add(builderForValue.build()); onChanged(); } else { - dataRetentionDeletionEventsBuilder_.addMessage(builderForValue.build()); + networksBuilder_.addMessage(builderForValue.build()); } return this; } @@ -23038,22 +24093,19 @@ public Builder addDataRetentionDeletionEvents( * * *
      -     * Data retention deletion events associated with the finding.
      +     * Represents the VPC networks that the resource is attached to.
            * 
      * - * - * repeated .google.cloud.securitycenter.v2.DataRetentionDeletionEvent data_retention_deletion_events = 64; - * + * repeated .google.cloud.securitycenter.v2.Network networks = 63; */ - public Builder addDataRetentionDeletionEvents( - int index, - com.google.cloud.securitycenter.v2.DataRetentionDeletionEvent.Builder builderForValue) { - if (dataRetentionDeletionEventsBuilder_ == null) { - ensureDataRetentionDeletionEventsIsMutable(); - dataRetentionDeletionEvents_.add(index, builderForValue.build()); + public Builder addNetworks( + int index, com.google.cloud.securitycenter.v2.Network.Builder builderForValue) { + if (networksBuilder_ == null) { + ensureNetworksIsMutable(); + networks_.add(index, builderForValue.build()); onChanged(); } else { - dataRetentionDeletionEventsBuilder_.addMessage(index, builderForValue.build()); + networksBuilder_.addMessage(index, builderForValue.build()); } return this; } @@ -23062,23 +24114,19 @@ public Builder addDataRetentionDeletionEvents( * * *
      -     * Data retention deletion events associated with the finding.
      +     * Represents the VPC networks that the resource is attached to.
            * 
      * - * - * repeated .google.cloud.securitycenter.v2.DataRetentionDeletionEvent data_retention_deletion_events = 64; - * + * repeated .google.cloud.securitycenter.v2.Network networks = 63; */ - public Builder addAllDataRetentionDeletionEvents( - java.lang.Iterable - values) { - if (dataRetentionDeletionEventsBuilder_ == null) { - ensureDataRetentionDeletionEventsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, dataRetentionDeletionEvents_); + public Builder addAllNetworks( + java.lang.Iterable values) { + if (networksBuilder_ == null) { + ensureNetworksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networks_); onChanged(); } else { - dataRetentionDeletionEventsBuilder_.addAllMessages(values); + networksBuilder_.addAllMessages(values); } return this; } @@ -23087,24 +24135,167 @@ public Builder addAllDataRetentionDeletionEvents( * * *
      -     * Data retention deletion events associated with the finding.
      +     * Represents the VPC networks that the resource is attached to.
            * 
      * - * - * repeated .google.cloud.securitycenter.v2.DataRetentionDeletionEvent data_retention_deletion_events = 64; - * + * repeated .google.cloud.securitycenter.v2.Network networks = 63; */ - public Builder clearDataRetentionDeletionEvents() { - if (dataRetentionDeletionEventsBuilder_ == null) { - dataRetentionDeletionEvents_ = java.util.Collections.emptyList(); - bitField1_ = (bitField1_ & ~0x00200000); + public Builder clearNetworks() { + if (networksBuilder_ == null) { + networks_ = java.util.Collections.emptyList(); + bitField1_ = (bitField1_ & ~0x00800000); onChanged(); } else { - dataRetentionDeletionEventsBuilder_.clear(); + networksBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Represents the VPC networks that the resource is attached to.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.Network networks = 63; + */ + public Builder removeNetworks(int index) { + if (networksBuilder_ == null) { + ensureNetworksIsMutable(); + networks_.remove(index); + onChanged(); + } else { + networksBuilder_.remove(index); } return this; } + /** + * + * + *
      +     * Represents the VPC networks that the resource is attached to.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.Network networks = 63; + */ + public com.google.cloud.securitycenter.v2.Network.Builder getNetworksBuilder(int index) { + return getNetworksFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * Represents the VPC networks that the resource is attached to.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.Network networks = 63; + */ + public com.google.cloud.securitycenter.v2.NetworkOrBuilder getNetworksOrBuilder(int index) { + if (networksBuilder_ == null) { + return networks_.get(index); + } else { + return networksBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * Represents the VPC networks that the resource is attached to.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.Network networks = 63; + */ + public java.util.List + getNetworksOrBuilderList() { + if (networksBuilder_ != null) { + return networksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(networks_); + } + } + + /** + * + * + *
      +     * Represents the VPC networks that the resource is attached to.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.Network networks = 63; + */ + public com.google.cloud.securitycenter.v2.Network.Builder addNetworksBuilder() { + return getNetworksFieldBuilder() + .addBuilder(com.google.cloud.securitycenter.v2.Network.getDefaultInstance()); + } + + /** + * + * + *
      +     * Represents the VPC networks that the resource is attached to.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.Network networks = 63; + */ + public com.google.cloud.securitycenter.v2.Network.Builder addNetworksBuilder(int index) { + return getNetworksFieldBuilder() + .addBuilder(index, com.google.cloud.securitycenter.v2.Network.getDefaultInstance()); + } + + /** + * + * + *
      +     * Represents the VPC networks that the resource is attached to.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.Network networks = 63; + */ + public java.util.List + getNetworksBuilderList() { + return getNetworksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v2.Network, + com.google.cloud.securitycenter.v2.Network.Builder, + com.google.cloud.securitycenter.v2.NetworkOrBuilder> + getNetworksFieldBuilder() { + if (networksBuilder_ == null) { + networksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v2.Network, + com.google.cloud.securitycenter.v2.Network.Builder, + com.google.cloud.securitycenter.v2.NetworkOrBuilder>( + networks_, ((bitField1_ & 0x00800000) != 0), getParentForChildren(), isClean()); + networks_ = null; + } + return networksBuilder_; + } + + private java.util.List + dataRetentionDeletionEvents_ = java.util.Collections.emptyList(); + + private void ensureDataRetentionDeletionEventsIsMutable() { + if (!((bitField1_ & 0x01000000) != 0)) { + dataRetentionDeletionEvents_ = + new java.util.ArrayList( + dataRetentionDeletionEvents_); + bitField1_ |= 0x01000000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v2.DataRetentionDeletionEvent, + com.google.cloud.securitycenter.v2.DataRetentionDeletionEvent.Builder, + com.google.cloud.securitycenter.v2.DataRetentionDeletionEventOrBuilder> + dataRetentionDeletionEventsBuilder_; + /** * * @@ -23116,15 +24307,13 @@ public Builder clearDataRetentionDeletionEvents() { * repeated .google.cloud.securitycenter.v2.DataRetentionDeletionEvent data_retention_deletion_events = 64; *
      */ - public Builder removeDataRetentionDeletionEvents(int index) { + public java.util.List + getDataRetentionDeletionEventsList() { if (dataRetentionDeletionEventsBuilder_ == null) { - ensureDataRetentionDeletionEventsIsMutable(); - dataRetentionDeletionEvents_.remove(index); - onChanged(); + return java.util.Collections.unmodifiableList(dataRetentionDeletionEvents_); } else { - dataRetentionDeletionEventsBuilder_.remove(index); + return dataRetentionDeletionEventsBuilder_.getMessageList(); } - return this; } /** @@ -23138,9 +24327,12 @@ public Builder removeDataRetentionDeletionEvents(int index) { * repeated .google.cloud.securitycenter.v2.DataRetentionDeletionEvent data_retention_deletion_events = 64; * */ - public com.google.cloud.securitycenter.v2.DataRetentionDeletionEvent.Builder - getDataRetentionDeletionEventsBuilder(int index) { - return getDataRetentionDeletionEventsFieldBuilder().getBuilder(index); + public int getDataRetentionDeletionEventsCount() { + if (dataRetentionDeletionEventsBuilder_ == null) { + return dataRetentionDeletionEvents_.size(); + } else { + return dataRetentionDeletionEventsBuilder_.getCount(); + } } /** @@ -23154,12 +24346,12 @@ public Builder removeDataRetentionDeletionEvents(int index) { * repeated .google.cloud.securitycenter.v2.DataRetentionDeletionEvent data_retention_deletion_events = 64; * */ - public com.google.cloud.securitycenter.v2.DataRetentionDeletionEventOrBuilder - getDataRetentionDeletionEventsOrBuilder(int index) { + public com.google.cloud.securitycenter.v2.DataRetentionDeletionEvent + getDataRetentionDeletionEvents(int index) { if (dataRetentionDeletionEventsBuilder_ == null) { return dataRetentionDeletionEvents_.get(index); } else { - return dataRetentionDeletionEventsBuilder_.getMessageOrBuilder(index); + return dataRetentionDeletionEventsBuilder_.getMessage(index); } } @@ -23174,14 +24366,19 @@ public Builder removeDataRetentionDeletionEvents(int index) { * repeated .google.cloud.securitycenter.v2.DataRetentionDeletionEvent data_retention_deletion_events = 64; * */ - public java.util.List< - ? extends com.google.cloud.securitycenter.v2.DataRetentionDeletionEventOrBuilder> - getDataRetentionDeletionEventsOrBuilderList() { - if (dataRetentionDeletionEventsBuilder_ != null) { - return dataRetentionDeletionEventsBuilder_.getMessageOrBuilderList(); + public Builder setDataRetentionDeletionEvents( + int index, com.google.cloud.securitycenter.v2.DataRetentionDeletionEvent value) { + if (dataRetentionDeletionEventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataRetentionDeletionEventsIsMutable(); + dataRetentionDeletionEvents_.set(index, value); + onChanged(); } else { - return java.util.Collections.unmodifiableList(dataRetentionDeletionEvents_); + dataRetentionDeletionEventsBuilder_.setMessage(index, value); } + return this; } /** @@ -23195,11 +24392,17 @@ public Builder removeDataRetentionDeletionEvents(int index) { * repeated .google.cloud.securitycenter.v2.DataRetentionDeletionEvent data_retention_deletion_events = 64; * */ - public com.google.cloud.securitycenter.v2.DataRetentionDeletionEvent.Builder - addDataRetentionDeletionEventsBuilder() { - return getDataRetentionDeletionEventsFieldBuilder() - .addBuilder( - com.google.cloud.securitycenter.v2.DataRetentionDeletionEvent.getDefaultInstance()); + public Builder setDataRetentionDeletionEvents( + int index, + com.google.cloud.securitycenter.v2.DataRetentionDeletionEvent.Builder builderForValue) { + if (dataRetentionDeletionEventsBuilder_ == null) { + ensureDataRetentionDeletionEventsIsMutable(); + dataRetentionDeletionEvents_.set(index, builderForValue.build()); + onChanged(); + } else { + dataRetentionDeletionEventsBuilder_.setMessage(index, builderForValue.build()); + } + return this; } /** @@ -23213,12 +24416,19 @@ public Builder removeDataRetentionDeletionEvents(int index) { * repeated .google.cloud.securitycenter.v2.DataRetentionDeletionEvent data_retention_deletion_events = 64; * */ - public com.google.cloud.securitycenter.v2.DataRetentionDeletionEvent.Builder - addDataRetentionDeletionEventsBuilder(int index) { - return getDataRetentionDeletionEventsFieldBuilder() - .addBuilder( - index, - com.google.cloud.securitycenter.v2.DataRetentionDeletionEvent.getDefaultInstance()); + public Builder addDataRetentionDeletionEvents( + com.google.cloud.securitycenter.v2.DataRetentionDeletionEvent value) { + if (dataRetentionDeletionEventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataRetentionDeletionEventsIsMutable(); + dataRetentionDeletionEvents_.add(value); + onChanged(); + } else { + dataRetentionDeletionEventsBuilder_.addMessage(value); + } + return this; } /** @@ -23232,14 +24442,250 @@ public Builder removeDataRetentionDeletionEvents(int index) { * repeated .google.cloud.securitycenter.v2.DataRetentionDeletionEvent data_retention_deletion_events = 64; * */ - public java.util.List - getDataRetentionDeletionEventsBuilderList() { - return getDataRetentionDeletionEventsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v2.DataRetentionDeletionEvent, - com.google.cloud.securitycenter.v2.DataRetentionDeletionEvent.Builder, + public Builder addDataRetentionDeletionEvents( + int index, com.google.cloud.securitycenter.v2.DataRetentionDeletionEvent value) { + if (dataRetentionDeletionEventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataRetentionDeletionEventsIsMutable(); + dataRetentionDeletionEvents_.add(index, value); + onChanged(); + } else { + dataRetentionDeletionEventsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Data retention deletion events associated with the finding.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.DataRetentionDeletionEvent data_retention_deletion_events = 64; + * + */ + public Builder addDataRetentionDeletionEvents( + com.google.cloud.securitycenter.v2.DataRetentionDeletionEvent.Builder builderForValue) { + if (dataRetentionDeletionEventsBuilder_ == null) { + ensureDataRetentionDeletionEventsIsMutable(); + dataRetentionDeletionEvents_.add(builderForValue.build()); + onChanged(); + } else { + dataRetentionDeletionEventsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Data retention deletion events associated with the finding.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.DataRetentionDeletionEvent data_retention_deletion_events = 64; + * + */ + public Builder addDataRetentionDeletionEvents( + int index, + com.google.cloud.securitycenter.v2.DataRetentionDeletionEvent.Builder builderForValue) { + if (dataRetentionDeletionEventsBuilder_ == null) { + ensureDataRetentionDeletionEventsIsMutable(); + dataRetentionDeletionEvents_.add(index, builderForValue.build()); + onChanged(); + } else { + dataRetentionDeletionEventsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Data retention deletion events associated with the finding.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.DataRetentionDeletionEvent data_retention_deletion_events = 64; + * + */ + public Builder addAllDataRetentionDeletionEvents( + java.lang.Iterable + values) { + if (dataRetentionDeletionEventsBuilder_ == null) { + ensureDataRetentionDeletionEventsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dataRetentionDeletionEvents_); + onChanged(); + } else { + dataRetentionDeletionEventsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * Data retention deletion events associated with the finding.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.DataRetentionDeletionEvent data_retention_deletion_events = 64; + * + */ + public Builder clearDataRetentionDeletionEvents() { + if (dataRetentionDeletionEventsBuilder_ == null) { + dataRetentionDeletionEvents_ = java.util.Collections.emptyList(); + bitField1_ = (bitField1_ & ~0x01000000); + onChanged(); + } else { + dataRetentionDeletionEventsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Data retention deletion events associated with the finding.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.DataRetentionDeletionEvent data_retention_deletion_events = 64; + * + */ + public Builder removeDataRetentionDeletionEvents(int index) { + if (dataRetentionDeletionEventsBuilder_ == null) { + ensureDataRetentionDeletionEventsIsMutable(); + dataRetentionDeletionEvents_.remove(index); + onChanged(); + } else { + dataRetentionDeletionEventsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * Data retention deletion events associated with the finding.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.DataRetentionDeletionEvent data_retention_deletion_events = 64; + * + */ + public com.google.cloud.securitycenter.v2.DataRetentionDeletionEvent.Builder + getDataRetentionDeletionEventsBuilder(int index) { + return getDataRetentionDeletionEventsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * Data retention deletion events associated with the finding.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.DataRetentionDeletionEvent data_retention_deletion_events = 64; + * + */ + public com.google.cloud.securitycenter.v2.DataRetentionDeletionEventOrBuilder + getDataRetentionDeletionEventsOrBuilder(int index) { + if (dataRetentionDeletionEventsBuilder_ == null) { + return dataRetentionDeletionEvents_.get(index); + } else { + return dataRetentionDeletionEventsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * Data retention deletion events associated with the finding.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.DataRetentionDeletionEvent data_retention_deletion_events = 64; + * + */ + public java.util.List< + ? extends com.google.cloud.securitycenter.v2.DataRetentionDeletionEventOrBuilder> + getDataRetentionDeletionEventsOrBuilderList() { + if (dataRetentionDeletionEventsBuilder_ != null) { + return dataRetentionDeletionEventsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dataRetentionDeletionEvents_); + } + } + + /** + * + * + *
      +     * Data retention deletion events associated with the finding.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.DataRetentionDeletionEvent data_retention_deletion_events = 64; + * + */ + public com.google.cloud.securitycenter.v2.DataRetentionDeletionEvent.Builder + addDataRetentionDeletionEventsBuilder() { + return getDataRetentionDeletionEventsFieldBuilder() + .addBuilder( + com.google.cloud.securitycenter.v2.DataRetentionDeletionEvent.getDefaultInstance()); + } + + /** + * + * + *
      +     * Data retention deletion events associated with the finding.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.DataRetentionDeletionEvent data_retention_deletion_events = 64; + * + */ + public com.google.cloud.securitycenter.v2.DataRetentionDeletionEvent.Builder + addDataRetentionDeletionEventsBuilder(int index) { + return getDataRetentionDeletionEventsFieldBuilder() + .addBuilder( + index, + com.google.cloud.securitycenter.v2.DataRetentionDeletionEvent.getDefaultInstance()); + } + + /** + * + * + *
      +     * Data retention deletion events associated with the finding.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.DataRetentionDeletionEvent data_retention_deletion_events = 64; + * + */ + public java.util.List + getDataRetentionDeletionEventsBuilderList() { + return getDataRetentionDeletionEventsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v2.DataRetentionDeletionEvent, + com.google.cloud.securitycenter.v2.DataRetentionDeletionEvent.Builder, com.google.cloud.securitycenter.v2.DataRetentionDeletionEventOrBuilder> getDataRetentionDeletionEventsFieldBuilder() { if (dataRetentionDeletionEventsBuilder_ == null) { @@ -23249,7 +24695,7 @@ public Builder removeDataRetentionDeletionEvents(int index) { com.google.cloud.securitycenter.v2.DataRetentionDeletionEvent.Builder, com.google.cloud.securitycenter.v2.DataRetentionDeletionEventOrBuilder>( dataRetentionDeletionEvents_, - ((bitField1_ & 0x00200000) != 0), + ((bitField1_ & 0x01000000) != 0), getParentForChildren(), isClean()); dataRetentionDeletionEvents_ = null; @@ -23257,6 +24703,817 @@ public Builder removeDataRetentionDeletionEvents(int index) { return dataRetentionDeletionEventsBuilder_; } + private com.google.cloud.securitycenter.v2.AffectedResources affectedResources_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v2.AffectedResources, + com.google.cloud.securitycenter.v2.AffectedResources.Builder, + com.google.cloud.securitycenter.v2.AffectedResourcesOrBuilder> + affectedResourcesBuilder_; + + /** + * + * + *
      +     * AffectedResources associated with the finding.
      +     * 
      + * + * .google.cloud.securitycenter.v2.AffectedResources affected_resources = 65; + * + * @return Whether the affectedResources field is set. + */ + public boolean hasAffectedResources() { + return ((bitField1_ & 0x02000000) != 0); + } + + /** + * + * + *
      +     * AffectedResources associated with the finding.
      +     * 
      + * + * .google.cloud.securitycenter.v2.AffectedResources affected_resources = 65; + * + * @return The affectedResources. + */ + public com.google.cloud.securitycenter.v2.AffectedResources getAffectedResources() { + if (affectedResourcesBuilder_ == null) { + return affectedResources_ == null + ? com.google.cloud.securitycenter.v2.AffectedResources.getDefaultInstance() + : affectedResources_; + } else { + return affectedResourcesBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * AffectedResources associated with the finding.
      +     * 
      + * + * .google.cloud.securitycenter.v2.AffectedResources affected_resources = 65; + */ + public Builder setAffectedResources( + com.google.cloud.securitycenter.v2.AffectedResources value) { + if (affectedResourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + affectedResources_ = value; + } else { + affectedResourcesBuilder_.setMessage(value); + } + bitField1_ |= 0x02000000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * AffectedResources associated with the finding.
      +     * 
      + * + * .google.cloud.securitycenter.v2.AffectedResources affected_resources = 65; + */ + public Builder setAffectedResources( + com.google.cloud.securitycenter.v2.AffectedResources.Builder builderForValue) { + if (affectedResourcesBuilder_ == null) { + affectedResources_ = builderForValue.build(); + } else { + affectedResourcesBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x02000000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * AffectedResources associated with the finding.
      +     * 
      + * + * .google.cloud.securitycenter.v2.AffectedResources affected_resources = 65; + */ + public Builder mergeAffectedResources( + com.google.cloud.securitycenter.v2.AffectedResources value) { + if (affectedResourcesBuilder_ == null) { + if (((bitField1_ & 0x02000000) != 0) + && affectedResources_ != null + && affectedResources_ + != com.google.cloud.securitycenter.v2.AffectedResources.getDefaultInstance()) { + getAffectedResourcesBuilder().mergeFrom(value); + } else { + affectedResources_ = value; + } + } else { + affectedResourcesBuilder_.mergeFrom(value); + } + if (affectedResources_ != null) { + bitField1_ |= 0x02000000; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * AffectedResources associated with the finding.
      +     * 
      + * + * .google.cloud.securitycenter.v2.AffectedResources affected_resources = 65; + */ + public Builder clearAffectedResources() { + bitField1_ = (bitField1_ & ~0x02000000); + affectedResources_ = null; + if (affectedResourcesBuilder_ != null) { + affectedResourcesBuilder_.dispose(); + affectedResourcesBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * AffectedResources associated with the finding.
      +     * 
      + * + * .google.cloud.securitycenter.v2.AffectedResources affected_resources = 65; + */ + public com.google.cloud.securitycenter.v2.AffectedResources.Builder + getAffectedResourcesBuilder() { + bitField1_ |= 0x02000000; + onChanged(); + return getAffectedResourcesFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * AffectedResources associated with the finding.
      +     * 
      + * + * .google.cloud.securitycenter.v2.AffectedResources affected_resources = 65; + */ + public com.google.cloud.securitycenter.v2.AffectedResourcesOrBuilder + getAffectedResourcesOrBuilder() { + if (affectedResourcesBuilder_ != null) { + return affectedResourcesBuilder_.getMessageOrBuilder(); + } else { + return affectedResources_ == null + ? com.google.cloud.securitycenter.v2.AffectedResources.getDefaultInstance() + : affectedResources_; + } + } + + /** + * + * + *
      +     * AffectedResources associated with the finding.
      +     * 
      + * + * .google.cloud.securitycenter.v2.AffectedResources affected_resources = 65; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v2.AffectedResources, + com.google.cloud.securitycenter.v2.AffectedResources.Builder, + com.google.cloud.securitycenter.v2.AffectedResourcesOrBuilder> + getAffectedResourcesFieldBuilder() { + if (affectedResourcesBuilder_ == null) { + affectedResourcesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v2.AffectedResources, + com.google.cloud.securitycenter.v2.AffectedResources.Builder, + com.google.cloud.securitycenter.v2.AffectedResourcesOrBuilder>( + getAffectedResources(), getParentForChildren(), isClean()); + affectedResources_ = null; + } + return affectedResourcesBuilder_; + } + + private com.google.cloud.securitycenter.v2.AiModel aiModel_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v2.AiModel, + com.google.cloud.securitycenter.v2.AiModel.Builder, + com.google.cloud.securitycenter.v2.AiModelOrBuilder> + aiModelBuilder_; + + /** + * + * + *
      +     * The AI model associated with the finding.
      +     * 
      + * + * .google.cloud.securitycenter.v2.AiModel ai_model = 66; + * + * @return Whether the aiModel field is set. + */ + public boolean hasAiModel() { + return ((bitField1_ & 0x04000000) != 0); + } + + /** + * + * + *
      +     * The AI model associated with the finding.
      +     * 
      + * + * .google.cloud.securitycenter.v2.AiModel ai_model = 66; + * + * @return The aiModel. + */ + public com.google.cloud.securitycenter.v2.AiModel getAiModel() { + if (aiModelBuilder_ == null) { + return aiModel_ == null + ? com.google.cloud.securitycenter.v2.AiModel.getDefaultInstance() + : aiModel_; + } else { + return aiModelBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * The AI model associated with the finding.
      +     * 
      + * + * .google.cloud.securitycenter.v2.AiModel ai_model = 66; + */ + public Builder setAiModel(com.google.cloud.securitycenter.v2.AiModel value) { + if (aiModelBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + aiModel_ = value; + } else { + aiModelBuilder_.setMessage(value); + } + bitField1_ |= 0x04000000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The AI model associated with the finding.
      +     * 
      + * + * .google.cloud.securitycenter.v2.AiModel ai_model = 66; + */ + public Builder setAiModel(com.google.cloud.securitycenter.v2.AiModel.Builder builderForValue) { + if (aiModelBuilder_ == null) { + aiModel_ = builderForValue.build(); + } else { + aiModelBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x04000000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The AI model associated with the finding.
      +     * 
      + * + * .google.cloud.securitycenter.v2.AiModel ai_model = 66; + */ + public Builder mergeAiModel(com.google.cloud.securitycenter.v2.AiModel value) { + if (aiModelBuilder_ == null) { + if (((bitField1_ & 0x04000000) != 0) + && aiModel_ != null + && aiModel_ != com.google.cloud.securitycenter.v2.AiModel.getDefaultInstance()) { + getAiModelBuilder().mergeFrom(value); + } else { + aiModel_ = value; + } + } else { + aiModelBuilder_.mergeFrom(value); + } + if (aiModel_ != null) { + bitField1_ |= 0x04000000; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * The AI model associated with the finding.
      +     * 
      + * + * .google.cloud.securitycenter.v2.AiModel ai_model = 66; + */ + public Builder clearAiModel() { + bitField1_ = (bitField1_ & ~0x04000000); + aiModel_ = null; + if (aiModelBuilder_ != null) { + aiModelBuilder_.dispose(); + aiModelBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * The AI model associated with the finding.
      +     * 
      + * + * .google.cloud.securitycenter.v2.AiModel ai_model = 66; + */ + public com.google.cloud.securitycenter.v2.AiModel.Builder getAiModelBuilder() { + bitField1_ |= 0x04000000; + onChanged(); + return getAiModelFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * The AI model associated with the finding.
      +     * 
      + * + * .google.cloud.securitycenter.v2.AiModel ai_model = 66; + */ + public com.google.cloud.securitycenter.v2.AiModelOrBuilder getAiModelOrBuilder() { + if (aiModelBuilder_ != null) { + return aiModelBuilder_.getMessageOrBuilder(); + } else { + return aiModel_ == null + ? com.google.cloud.securitycenter.v2.AiModel.getDefaultInstance() + : aiModel_; + } + } + + /** + * + * + *
      +     * The AI model associated with the finding.
      +     * 
      + * + * .google.cloud.securitycenter.v2.AiModel ai_model = 66; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v2.AiModel, + com.google.cloud.securitycenter.v2.AiModel.Builder, + com.google.cloud.securitycenter.v2.AiModelOrBuilder> + getAiModelFieldBuilder() { + if (aiModelBuilder_ == null) { + aiModelBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v2.AiModel, + com.google.cloud.securitycenter.v2.AiModel.Builder, + com.google.cloud.securitycenter.v2.AiModelOrBuilder>( + getAiModel(), getParentForChildren(), isClean()); + aiModel_ = null; + } + return aiModelBuilder_; + } + + private com.google.cloud.securitycenter.v2.Chokepoint chokepoint_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v2.Chokepoint, + com.google.cloud.securitycenter.v2.Chokepoint.Builder, + com.google.cloud.securitycenter.v2.ChokepointOrBuilder> + chokepointBuilder_; + + /** + * + * + *
      +     * Contains details about a chokepoint, which is a resource or resource group
      +     * where high-risk attack paths converge, based on [attack path simulations]
      +     * (https://cloud.google.com/security-command-center/docs/attack-exposure-learn#attack_path_simulations).
      +     * This field cannot be updated. Its value is ignored in all update requests.
      +     * 
      + * + * .google.cloud.securitycenter.v2.Chokepoint chokepoint = 69; + * + * @return Whether the chokepoint field is set. + */ + public boolean hasChokepoint() { + return ((bitField1_ & 0x08000000) != 0); + } + + /** + * + * + *
      +     * Contains details about a chokepoint, which is a resource or resource group
      +     * where high-risk attack paths converge, based on [attack path simulations]
      +     * (https://cloud.google.com/security-command-center/docs/attack-exposure-learn#attack_path_simulations).
      +     * This field cannot be updated. Its value is ignored in all update requests.
      +     * 
      + * + * .google.cloud.securitycenter.v2.Chokepoint chokepoint = 69; + * + * @return The chokepoint. + */ + public com.google.cloud.securitycenter.v2.Chokepoint getChokepoint() { + if (chokepointBuilder_ == null) { + return chokepoint_ == null + ? com.google.cloud.securitycenter.v2.Chokepoint.getDefaultInstance() + : chokepoint_; + } else { + return chokepointBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Contains details about a chokepoint, which is a resource or resource group
      +     * where high-risk attack paths converge, based on [attack path simulations]
      +     * (https://cloud.google.com/security-command-center/docs/attack-exposure-learn#attack_path_simulations).
      +     * This field cannot be updated. Its value is ignored in all update requests.
      +     * 
      + * + * .google.cloud.securitycenter.v2.Chokepoint chokepoint = 69; + */ + public Builder setChokepoint(com.google.cloud.securitycenter.v2.Chokepoint value) { + if (chokepointBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + chokepoint_ = value; + } else { + chokepointBuilder_.setMessage(value); + } + bitField1_ |= 0x08000000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Contains details about a chokepoint, which is a resource or resource group
      +     * where high-risk attack paths converge, based on [attack path simulations]
      +     * (https://cloud.google.com/security-command-center/docs/attack-exposure-learn#attack_path_simulations).
      +     * This field cannot be updated. Its value is ignored in all update requests.
      +     * 
      + * + * .google.cloud.securitycenter.v2.Chokepoint chokepoint = 69; + */ + public Builder setChokepoint( + com.google.cloud.securitycenter.v2.Chokepoint.Builder builderForValue) { + if (chokepointBuilder_ == null) { + chokepoint_ = builderForValue.build(); + } else { + chokepointBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x08000000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Contains details about a chokepoint, which is a resource or resource group
      +     * where high-risk attack paths converge, based on [attack path simulations]
      +     * (https://cloud.google.com/security-command-center/docs/attack-exposure-learn#attack_path_simulations).
      +     * This field cannot be updated. Its value is ignored in all update requests.
      +     * 
      + * + * .google.cloud.securitycenter.v2.Chokepoint chokepoint = 69; + */ + public Builder mergeChokepoint(com.google.cloud.securitycenter.v2.Chokepoint value) { + if (chokepointBuilder_ == null) { + if (((bitField1_ & 0x08000000) != 0) + && chokepoint_ != null + && chokepoint_ != com.google.cloud.securitycenter.v2.Chokepoint.getDefaultInstance()) { + getChokepointBuilder().mergeFrom(value); + } else { + chokepoint_ = value; + } + } else { + chokepointBuilder_.mergeFrom(value); + } + if (chokepoint_ != null) { + bitField1_ |= 0x08000000; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Contains details about a chokepoint, which is a resource or resource group
      +     * where high-risk attack paths converge, based on [attack path simulations]
      +     * (https://cloud.google.com/security-command-center/docs/attack-exposure-learn#attack_path_simulations).
      +     * This field cannot be updated. Its value is ignored in all update requests.
      +     * 
      + * + * .google.cloud.securitycenter.v2.Chokepoint chokepoint = 69; + */ + public Builder clearChokepoint() { + bitField1_ = (bitField1_ & ~0x08000000); + chokepoint_ = null; + if (chokepointBuilder_ != null) { + chokepointBuilder_.dispose(); + chokepointBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Contains details about a chokepoint, which is a resource or resource group
      +     * where high-risk attack paths converge, based on [attack path simulations]
      +     * (https://cloud.google.com/security-command-center/docs/attack-exposure-learn#attack_path_simulations).
      +     * This field cannot be updated. Its value is ignored in all update requests.
      +     * 
      + * + * .google.cloud.securitycenter.v2.Chokepoint chokepoint = 69; + */ + public com.google.cloud.securitycenter.v2.Chokepoint.Builder getChokepointBuilder() { + bitField1_ |= 0x08000000; + onChanged(); + return getChokepointFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Contains details about a chokepoint, which is a resource or resource group
      +     * where high-risk attack paths converge, based on [attack path simulations]
      +     * (https://cloud.google.com/security-command-center/docs/attack-exposure-learn#attack_path_simulations).
      +     * This field cannot be updated. Its value is ignored in all update requests.
      +     * 
      + * + * .google.cloud.securitycenter.v2.Chokepoint chokepoint = 69; + */ + public com.google.cloud.securitycenter.v2.ChokepointOrBuilder getChokepointOrBuilder() { + if (chokepointBuilder_ != null) { + return chokepointBuilder_.getMessageOrBuilder(); + } else { + return chokepoint_ == null + ? com.google.cloud.securitycenter.v2.Chokepoint.getDefaultInstance() + : chokepoint_; + } + } + + /** + * + * + *
      +     * Contains details about a chokepoint, which is a resource or resource group
      +     * where high-risk attack paths converge, based on [attack path simulations]
      +     * (https://cloud.google.com/security-command-center/docs/attack-exposure-learn#attack_path_simulations).
      +     * This field cannot be updated. Its value is ignored in all update requests.
      +     * 
      + * + * .google.cloud.securitycenter.v2.Chokepoint chokepoint = 69; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v2.Chokepoint, + com.google.cloud.securitycenter.v2.Chokepoint.Builder, + com.google.cloud.securitycenter.v2.ChokepointOrBuilder> + getChokepointFieldBuilder() { + if (chokepointBuilder_ == null) { + chokepointBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v2.Chokepoint, + com.google.cloud.securitycenter.v2.Chokepoint.Builder, + com.google.cloud.securitycenter.v2.ChokepointOrBuilder>( + getChokepoint(), getParentForChildren(), isClean()); + chokepoint_ = null; + } + return chokepointBuilder_; + } + + private com.google.cloud.securitycenter.v2.VertexAi vertexAi_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v2.VertexAi, + com.google.cloud.securitycenter.v2.VertexAi.Builder, + com.google.cloud.securitycenter.v2.VertexAiOrBuilder> + vertexAiBuilder_; + + /** + * + * + *
      +     * VertexAi associated with the finding.
      +     * 
      + * + * .google.cloud.securitycenter.v2.VertexAi vertex_ai = 72; + * + * @return Whether the vertexAi field is set. + */ + public boolean hasVertexAi() { + return ((bitField1_ & 0x10000000) != 0); + } + + /** + * + * + *
      +     * VertexAi associated with the finding.
      +     * 
      + * + * .google.cloud.securitycenter.v2.VertexAi vertex_ai = 72; + * + * @return The vertexAi. + */ + public com.google.cloud.securitycenter.v2.VertexAi getVertexAi() { + if (vertexAiBuilder_ == null) { + return vertexAi_ == null + ? com.google.cloud.securitycenter.v2.VertexAi.getDefaultInstance() + : vertexAi_; + } else { + return vertexAiBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * VertexAi associated with the finding.
      +     * 
      + * + * .google.cloud.securitycenter.v2.VertexAi vertex_ai = 72; + */ + public Builder setVertexAi(com.google.cloud.securitycenter.v2.VertexAi value) { + if (vertexAiBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + vertexAi_ = value; + } else { + vertexAiBuilder_.setMessage(value); + } + bitField1_ |= 0x10000000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * VertexAi associated with the finding.
      +     * 
      + * + * .google.cloud.securitycenter.v2.VertexAi vertex_ai = 72; + */ + public Builder setVertexAi( + com.google.cloud.securitycenter.v2.VertexAi.Builder builderForValue) { + if (vertexAiBuilder_ == null) { + vertexAi_ = builderForValue.build(); + } else { + vertexAiBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x10000000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * VertexAi associated with the finding.
      +     * 
      + * + * .google.cloud.securitycenter.v2.VertexAi vertex_ai = 72; + */ + public Builder mergeVertexAi(com.google.cloud.securitycenter.v2.VertexAi value) { + if (vertexAiBuilder_ == null) { + if (((bitField1_ & 0x10000000) != 0) + && vertexAi_ != null + && vertexAi_ != com.google.cloud.securitycenter.v2.VertexAi.getDefaultInstance()) { + getVertexAiBuilder().mergeFrom(value); + } else { + vertexAi_ = value; + } + } else { + vertexAiBuilder_.mergeFrom(value); + } + if (vertexAi_ != null) { + bitField1_ |= 0x10000000; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * VertexAi associated with the finding.
      +     * 
      + * + * .google.cloud.securitycenter.v2.VertexAi vertex_ai = 72; + */ + public Builder clearVertexAi() { + bitField1_ = (bitField1_ & ~0x10000000); + vertexAi_ = null; + if (vertexAiBuilder_ != null) { + vertexAiBuilder_.dispose(); + vertexAiBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * VertexAi associated with the finding.
      +     * 
      + * + * .google.cloud.securitycenter.v2.VertexAi vertex_ai = 72; + */ + public com.google.cloud.securitycenter.v2.VertexAi.Builder getVertexAiBuilder() { + bitField1_ |= 0x10000000; + onChanged(); + return getVertexAiFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * VertexAi associated with the finding.
      +     * 
      + * + * .google.cloud.securitycenter.v2.VertexAi vertex_ai = 72; + */ + public com.google.cloud.securitycenter.v2.VertexAiOrBuilder getVertexAiOrBuilder() { + if (vertexAiBuilder_ != null) { + return vertexAiBuilder_.getMessageOrBuilder(); + } else { + return vertexAi_ == null + ? com.google.cloud.securitycenter.v2.VertexAi.getDefaultInstance() + : vertexAi_; + } + } + + /** + * + * + *
      +     * VertexAi associated with the finding.
      +     * 
      + * + * .google.cloud.securitycenter.v2.VertexAi vertex_ai = 72; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v2.VertexAi, + com.google.cloud.securitycenter.v2.VertexAi.Builder, + com.google.cloud.securitycenter.v2.VertexAiOrBuilder> + getVertexAiFieldBuilder() { + if (vertexAiBuilder_ == null) { + vertexAiBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v2.VertexAi, + com.google.cloud.securitycenter.v2.VertexAi.Builder, + com.google.cloud.securitycenter.v2.VertexAiOrBuilder>( + getVertexAi(), getParentForChildren(), isClean()); + vertexAi_ = null; + } + return vertexAiBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/FindingOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/FindingOrBuilder.java index 1801bbb8c580..c2f85f7caa5f 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/FindingOrBuilder.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/FindingOrBuilder.java @@ -28,7 +28,7 @@ public interface FindingOrBuilder * * *
      -   * The [relative resource
      +   * Identifier. The [relative resource
          * name](https://cloud.google.com/apis/design/resource_names#relative_resource_name)
          * of the finding. The following list shows some examples:
          *
      @@ -44,7 +44,7 @@ public interface FindingOrBuilder
          * `projects/{project_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}`
          * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -54,7 +54,7 @@ public interface FindingOrBuilder * * *
      -   * The [relative resource
      +   * Identifier. The [relative resource
          * name](https://cloud.google.com/apis/design/resource_names#relative_resource_name)
          * of the finding. The following list shows some examples:
          *
      @@ -70,7 +70,7 @@ public interface FindingOrBuilder
          * `projects/{project_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}`
          * 
      * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1911,6 +1911,43 @@ com.google.cloud.securitycenter.v2.ContactDetails getContactsOrDefault( */ com.google.cloud.securitycenter.v2.OrgPolicyOrBuilder getOrgPoliciesOrBuilder(int index); + /** + * + * + *
      +   * Job associated with the finding.
      +   * 
      + * + * .google.cloud.securitycenter.v2.Job job = 44; + * + * @return Whether the job field is set. + */ + boolean hasJob(); + + /** + * + * + *
      +   * Job associated with the finding.
      +   * 
      + * + * .google.cloud.securitycenter.v2.Job job = 44; + * + * @return The job. + */ + com.google.cloud.securitycenter.v2.Job getJob(); + + /** + * + * + *
      +   * Job associated with the finding.
      +   * 
      + * + * .google.cloud.securitycenter.v2.Job job = 44; + */ + com.google.cloud.securitycenter.v2.JobOrBuilder getJobOrBuilder(); + /** * * @@ -1948,6 +1985,43 @@ com.google.cloud.securitycenter.v2.ContactDetails getContactsOrDefault( */ com.google.cloud.securitycenter.v2.ApplicationOrBuilder getApplicationOrBuilder(); + /** + * + * + *
      +   * IP rules associated with the finding.
      +   * 
      + * + * .google.cloud.securitycenter.v2.IpRules ip_rules = 46; + * + * @return Whether the ipRules field is set. + */ + boolean hasIpRules(); + + /** + * + * + *
      +   * IP rules associated with the finding.
      +   * 
      + * + * .google.cloud.securitycenter.v2.IpRules ip_rules = 46; + * + * @return The ipRules. + */ + com.google.cloud.securitycenter.v2.IpRules getIpRules(); + + /** + * + * + *
      +   * IP rules associated with the finding.
      +   * 
      + * + * .google.cloud.securitycenter.v2.IpRules ip_rules = 46; + */ + com.google.cloud.securitycenter.v2.IpRulesOrBuilder getIpRulesOrBuilder(); + /** * * @@ -2478,6 +2552,62 @@ com.google.cloud.securitycenter.v2.DataAccessEventOrBuilder getDataAccessEventsO */ com.google.cloud.securitycenter.v2.DataFlowEventOrBuilder getDataFlowEventsOrBuilder(int index); + /** + * + * + *
      +   * Represents the VPC networks that the resource is attached to.
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.Network networks = 63; + */ + java.util.List getNetworksList(); + + /** + * + * + *
      +   * Represents the VPC networks that the resource is attached to.
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.Network networks = 63; + */ + com.google.cloud.securitycenter.v2.Network getNetworks(int index); + + /** + * + * + *
      +   * Represents the VPC networks that the resource is attached to.
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.Network networks = 63; + */ + int getNetworksCount(); + + /** + * + * + *
      +   * Represents the VPC networks that the resource is attached to.
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.Network networks = 63; + */ + java.util.List + getNetworksOrBuilderList(); + + /** + * + * + *
      +   * Represents the VPC networks that the resource is attached to.
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.Network networks = 63; + */ + com.google.cloud.securitycenter.v2.NetworkOrBuilder getNetworksOrBuilder(int index); + /** * * @@ -2546,4 +2676,161 @@ com.google.cloud.securitycenter.v2.DataRetentionDeletionEvent getDataRetentionDe */ com.google.cloud.securitycenter.v2.DataRetentionDeletionEventOrBuilder getDataRetentionDeletionEventsOrBuilder(int index); + + /** + * + * + *
      +   * AffectedResources associated with the finding.
      +   * 
      + * + * .google.cloud.securitycenter.v2.AffectedResources affected_resources = 65; + * + * @return Whether the affectedResources field is set. + */ + boolean hasAffectedResources(); + + /** + * + * + *
      +   * AffectedResources associated with the finding.
      +   * 
      + * + * .google.cloud.securitycenter.v2.AffectedResources affected_resources = 65; + * + * @return The affectedResources. + */ + com.google.cloud.securitycenter.v2.AffectedResources getAffectedResources(); + + /** + * + * + *
      +   * AffectedResources associated with the finding.
      +   * 
      + * + * .google.cloud.securitycenter.v2.AffectedResources affected_resources = 65; + */ + com.google.cloud.securitycenter.v2.AffectedResourcesOrBuilder getAffectedResourcesOrBuilder(); + + /** + * + * + *
      +   * The AI model associated with the finding.
      +   * 
      + * + * .google.cloud.securitycenter.v2.AiModel ai_model = 66; + * + * @return Whether the aiModel field is set. + */ + boolean hasAiModel(); + + /** + * + * + *
      +   * The AI model associated with the finding.
      +   * 
      + * + * .google.cloud.securitycenter.v2.AiModel ai_model = 66; + * + * @return The aiModel. + */ + com.google.cloud.securitycenter.v2.AiModel getAiModel(); + + /** + * + * + *
      +   * The AI model associated with the finding.
      +   * 
      + * + * .google.cloud.securitycenter.v2.AiModel ai_model = 66; + */ + com.google.cloud.securitycenter.v2.AiModelOrBuilder getAiModelOrBuilder(); + + /** + * + * + *
      +   * Contains details about a chokepoint, which is a resource or resource group
      +   * where high-risk attack paths converge, based on [attack path simulations]
      +   * (https://cloud.google.com/security-command-center/docs/attack-exposure-learn#attack_path_simulations).
      +   * This field cannot be updated. Its value is ignored in all update requests.
      +   * 
      + * + * .google.cloud.securitycenter.v2.Chokepoint chokepoint = 69; + * + * @return Whether the chokepoint field is set. + */ + boolean hasChokepoint(); + + /** + * + * + *
      +   * Contains details about a chokepoint, which is a resource or resource group
      +   * where high-risk attack paths converge, based on [attack path simulations]
      +   * (https://cloud.google.com/security-command-center/docs/attack-exposure-learn#attack_path_simulations).
      +   * This field cannot be updated. Its value is ignored in all update requests.
      +   * 
      + * + * .google.cloud.securitycenter.v2.Chokepoint chokepoint = 69; + * + * @return The chokepoint. + */ + com.google.cloud.securitycenter.v2.Chokepoint getChokepoint(); + + /** + * + * + *
      +   * Contains details about a chokepoint, which is a resource or resource group
      +   * where high-risk attack paths converge, based on [attack path simulations]
      +   * (https://cloud.google.com/security-command-center/docs/attack-exposure-learn#attack_path_simulations).
      +   * This field cannot be updated. Its value is ignored in all update requests.
      +   * 
      + * + * .google.cloud.securitycenter.v2.Chokepoint chokepoint = 69; + */ + com.google.cloud.securitycenter.v2.ChokepointOrBuilder getChokepointOrBuilder(); + + /** + * + * + *
      +   * VertexAi associated with the finding.
      +   * 
      + * + * .google.cloud.securitycenter.v2.VertexAi vertex_ai = 72; + * + * @return Whether the vertexAi field is set. + */ + boolean hasVertexAi(); + + /** + * + * + *
      +   * VertexAi associated with the finding.
      +   * 
      + * + * .google.cloud.securitycenter.v2.VertexAi vertex_ai = 72; + * + * @return The vertexAi. + */ + com.google.cloud.securitycenter.v2.VertexAi getVertexAi(); + + /** + * + * + *
      +   * VertexAi associated with the finding.
      +   * 
      + * + * .google.cloud.securitycenter.v2.VertexAi vertex_ai = 72; + */ + com.google.cloud.securitycenter.v2.VertexAiOrBuilder getVertexAiOrBuilder(); } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/FindingProto.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/FindingProto.java index 694035c74b56..748672b7a68f 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/FindingProto.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/FindingProto.java @@ -69,71 +69,75 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ",google/cloud/securitycenter/v2/finding" + ".proto\022\036google.cloud.securitycenter.v2\032\037" + "google/api/field_behavior.proto\032\031google/" - + "api/resource.proto\032+google/cloud/securitycenter/v2/access.proto\0320google/cloud/se" - + "curitycenter/v2/application.proto\0324google/cloud/securitycenter/v2/attack_exposur" - + "e.proto\032=google/cloud/securitycenter/v2/backup_disaster_recovery.proto\0320google/c" - + "loud/securitycenter/v2/cloud_armor.proto\032;google/cloud/securitycenter/v2/cloud_d" - + "lp_data_profile.proto\0329google/cloud/securitycenter/v2/cloud_dlp_inspection.proto" - + "\032/google/cloud/securitycenter/v2/compliance.proto\032/google/cloud/securitycenter/v" - + "2/connection.proto\0324google/cloud/securitycenter/v2/contact_details.proto\032.google" - + "/cloud/securitycenter/v2/container.proto\0326google/cloud/securitycenter/v2/data_ac" - + "cess_event.proto\0324google/cloud/securitycenter/v2/data_flow_event.proto\032Bgoogle/c" - + "loud/securitycenter/v2/data_retention_deletion_event.proto\032-google/cloud/securit" - + "ycenter/v2/database.proto\032)google/cloud/securitycenter/v2/disk.proto\0321google/clo" - + "ud/securitycenter/v2/exfiltration.proto\0324google/cloud/securitycenter/v2/external" - + "_system.proto\032)google/cloud/securitycenter/v2/file.proto\0325google/cloud/securityc" - + "enter/v2/group_membership.proto\0320google/cloud/securitycenter/v2/iam_binding.prot" - + "o\032.google/cloud/securitycenter/v2/indicator.proto\0323google/cloud/securitycenter/v" - + "2/kernel_rootkit.proto\032/google/cloud/securitycenter/v2/kubernetes.proto\0322google/" - + "cloud/securitycenter/v2/load_balancer.proto\032.google/cloud/securitycenter/v2/log_" - + "entry.proto\0321google/cloud/securitycenter/v2/mitre_attack.proto\032-google/cloud/sec" - + "uritycenter/v2/notebook.proto\032/google/cloud/securitycenter/v2/org_policy.proto\032," - + "google/cloud/securitycenter/v2/process.proto\0323google/cloud/securitycenter/v2/sec" - + "urity_marks.proto\0325google/cloud/securitycenter/v2/security_posture.proto\0326google" - + "/cloud/securitycenter/v2/toxic_combination.proto\0322google/cloud/securitycenter/v2" - + "/vulnerability.proto\032\034google/protobuf/st" - + "ruct.proto\032\037google/protobuf/timestamp.proto\"\332%\n" - + "\007Finding\022\014\n" - + "\004name\030\001 \001(\t\022\033\n" + + "api/resource.proto\032+google/cloud/securitycenter/v2/access.proto\0327google/cloud/se" + + "curitycenter/v2/affected_resources.proto\032-google/cloud/securitycenter/v2/ai_mode" + + "l.proto\0320google/cloud/securitycenter/v2/application.proto\0324google/cloud/security" + + "center/v2/attack_exposure.proto\032=google/cloud/securitycenter/v2/backup_disaster_" + + "recovery.proto\032/google/cloud/securitycenter/v2/chokepoint.proto\0320google/cloud/se" + + "curitycenter/v2/cloud_armor.proto\032;google/cloud/securitycenter/v2/cloud_dlp_data" + + "_profile.proto\0329google/cloud/securitycenter/v2/cloud_dlp_inspection.proto\032/googl" + + "e/cloud/securitycenter/v2/compliance.proto\032/google/cloud/securitycenter/v2/conne" + + "ction.proto\0324google/cloud/securitycenter/v2/contact_details.proto\032.google/cloud/" + + "securitycenter/v2/container.proto\0326google/cloud/securitycenter/v2/data_access_ev" + + "ent.proto\0324google/cloud/securitycenter/v2/data_flow_event.proto\032Bgoogle/cloud/se" + + "curitycenter/v2/data_retention_deletion_event.proto\032-google/cloud/securitycenter" + + "/v2/database.proto\032)google/cloud/securitycenter/v2/disk.proto\0321google/cloud/secu" + + "ritycenter/v2/exfiltration.proto\0324google/cloud/securitycenter/v2/external_system" + + ".proto\032)google/cloud/securitycenter/v2/file.proto\0325google/cloud/securitycenter/v" + + "2/group_membership.proto\0320google/cloud/securitycenter/v2/iam_binding.proto\032.goog" + + "le/cloud/securitycenter/v2/indicator.proto\032-google/cloud/securitycenter/v2/ip_ru" + + "les.proto\032(google/cloud/securitycenter/v2/job.proto\0323google/cloud/securitycenter" + + "/v2/kernel_rootkit.proto\032/google/cloud/securitycenter/v2/kubernetes.proto\0322googl" + + "e/cloud/securitycenter/v2/load_balancer.proto\032.google/cloud/securitycenter/v2/lo" + + "g_entry.proto\0321google/cloud/securitycenter/v2/mitre_attack.proto\032,google/cloud/s" + + "ecuritycenter/v2/network.proto\032-google/cloud/securitycenter/v2/notebook.proto\032/g" + + "oogle/cloud/securitycenter/v2/org_policy.proto\032,google/cloud/securitycenter/v2/p" + + "rocess.proto\0323google/cloud/securitycenter/v2/security_marks.proto\0325google/cloud/" + + "securitycenter/v2/security_posture.proto\0326google/cloud/securitycenter/v2/toxic_c" + + "ombination.proto\032.google/cloud/securitycenter/v2/vertex_ai.proto\0322google/cloud/s" + + "ecuritycenter/v2/vulnerability.proto\032\034go" + + "ogle/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\236)\n" + + "\007Finding\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\033\n" + "\016canonical_name\030\002 \001(\tB\003\340A\003\022\016\n" + "\006parent\030\003 \001(\t\022\032\n\r" + "resource_name\030\004 \001(\tB\003\340A\005\022A\n" - + "\005state\030\006 \001(\0162-." - + "google.cloud.securitycenter.v2.Finding.StateB\003\340A\003\022\025\n" + + "\005state\030\006" + + " \001(\0162-.google.cloud.securitycenter.v2.Finding.StateB\003\340A\003\022\025\n" + "\010category\030\007 \001(\tB\003\340A\005\022\024\n" + "\014external_uri\030\010 \001(\t\022X\n" - + "\021source_properties\030\t \003(" - + "\0132=.google.cloud.securitycenter.v2.Finding.SourcePropertiesEntry\022J\n" + + "\021source_properties\030\t \003(\0132=.google.cloud.se" + + "curitycenter.v2.Finding.SourcePropertiesEntry\022J\n" + "\016security_marks\030\n" + " \001(\0132-.google.cloud.securitycenter.v2.SecurityMarksB\003\340A\003\022.\n\n" + "event_time\030\013 \001(\0132\032.google.protobuf.Timestamp\0224\n" + "\013create_time\030\014 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022B\n" - + "\010severity\030\016" - + " \001(\01620.google.cloud.securitycenter.v2.Finding.Severity\022:\n" + + "\010severity\030\016 \001(" + + "\01620.google.cloud.securitycenter.v2.Finding.Severity\022:\n" + "\004mute\030\017 \001(\0162,.google.cloud.securitycenter.v2.Finding.Mute\022H\n" - + "\tmute_info\0305 \001(\01320.google.c" - + "loud.securitycenter.v2.Finding.MuteInfoB\003\340A\003\022K\n\r" - + "finding_class\030\020 \001(\01624.google.clo" - + "ud.securitycenter.v2.Finding.FindingClass\022<\n" + + "\tmute_info\0305" + + " \001(\01320.google.cloud.securitycenter.v2.Finding.MuteInfoB\003\340A\003\022K\n\r" + + "finding_class\030\020" + + " \001(\01624.google.cloud.securitycenter.v2.Finding.FindingClass\022<\n" + "\tindicator\030\021 \001(\0132).google.cloud.securitycenter.v2.Indicator\022D\n\r" + "vulnerability\030\022 \001(\0132-.google.cloud.securitycenter.v2.Vulnerability\0229\n" + "\020mute_update_time\030\023" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022[\n" - + "\020external_systems\030\024 \003(\0132<.google.cloud.securi" - + "tycenter.v2.Finding.ExternalSystemsEntryB\003\340A\003\022A\n" + + "\020external_systems\030\024 \003(\0132" + + "<.google.cloud.securitycenter.v2.Finding.ExternalSystemsEntryB\003\340A\003\022A\n" + "\014mitre_attack\030\025 \001(\0132+.google.cloud.securitycenter.v2.MitreAttack\0226\n" + "\006access\030\026 \001(\0132&.google.cloud.securitycenter.v2.Access\022?\n" + "\013connections\030\027" + " \003(\0132*.google.cloud.securitycenter.v2.Connection\022\026\n" + "\016mute_initiator\030\030 \001(\t\022:\n" + "\tprocesses\030\031 \003(\0132\'.google.cloud.securitycenter.v2.Process\022L\n" - + "\010contacts\030\032" - + " \003(\01325.google.cloud.securitycenter.v2.Finding.ContactsEntryB\003\340A\003\022?\n" + + "\010contacts\030\032 \003(\01325.g" + + "oogle.cloud.securitycenter.v2.Finding.ContactsEntryB\003\340A\003\022?\n" + "\013compliances\030\033 \003(\0132*.google.cloud.securitycenter.v2.Compliance\022 \n" + "\023parent_display_name\030\035 \001(\tB\003\340A\003\022\023\n" + "\013description\030\036 \001(\t\022B\n" - + "\014exfiltration\030\037" - + " \001(\0132,.google.cloud.securitycenter.v2.Exfiltration\022@\n" + + "\014exfiltration\030\037 \001(\0132," + + ".google.cloud.securitycenter.v2.Exfiltration\022@\n" + "\014iam_bindings\030 " + " \003(\0132*.google.cloud.securitycenter.v2.IamBinding\022\022\n\n" + "next_steps\030! \001(\t\022\023\n" @@ -141,17 +145,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "containers\030# \003(\0132).google.cloud.securitycenter.v2.Container\022>\n\n" + "kubernetes\030$ \001(\0132*.google.cloud.securitycenter.v2.Kubernetes\022:\n" + "\010database\030% \001(\0132(.google.cloud.securitycenter.v2.Database\022G\n" - + "\017attack_exposure\030&" - + " \001(\0132..google.cloud.securitycenter.v2.AttackExposure\0223\n" + + "\017attack_exposure\030& " + + "\001(\0132..google.cloud.securitycenter.v2.AttackExposure\0223\n" + "\005files\030\' \003(\0132$.google.cloud.securitycenter.v2.File\022P\n" - + "\024cloud_dlp_inspection\030( \001(\01322.goog" - + "le.cloud.securitycenter.v2.CloudDlpInspection\022S\n" - + "\026cloud_dlp_data_profile\030) \001(\01323." - + "google.cloud.securitycenter.v2.CloudDlpDataProfile\022E\n" - + "\016kernel_rootkit\030* \001(\0132-.goo" - + "gle.cloud.securitycenter.v2.KernelRootkit\022?\n" - + "\014org_policies\030+ \003(\0132).google.cloud.securitycenter.v2.OrgPolicy\022@\n" - + "\013application\030- \001(\0132+.google.cloud.securitycenter.v2.Application\022X\n" + + "\024cloud_dlp_inspection\030(" + + " \001(\01322.google.cloud.securitycenter.v2.CloudDlpInspection\022S\n" + + "\026cloud_dlp_data_profile\030)" + + " \001(\01323.google.cloud.securitycenter.v2.CloudDlpDataProfile\022E\n" + + "\016kernel_rootkit\030*" + + " \001(\0132-.google.cloud.securitycenter.v2.KernelRootkit\022?\n" + + "\014org_policies\030+ \003(\0132).google.cloud.securitycenter.v2.OrgPolicy\0220\n" + + "\003job\030, \001(\0132#.google.cloud.securitycenter.v2.Job\022@\n" + + "\013application\030- \001(\0132+.google.cloud.securitycenter.v2.Application\0229\n" + + "\010ip_rules\030. \001(\0132\'.google.cloud.securitycenter.v2.IpRules\022X\n" + "\030backup_disaster_recovery\030/" + " \001(\01326.google.cloud.securitycenter.v2.BackupDisasterRecovery\022I\n" + "\020security_posture\0300" @@ -160,22 +166,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016load_balancers\0302 \003(\0132,.google.cloud.securitycenter.v2.LoadBalancer\022?\n" + "\013cloud_armor\0303 \001(\0132*.google.cloud.securitycenter.v2.CloudArmor\022:\n" + "\010notebook\0307 \001(\0132(.google.cloud.securitycenter.v2.Notebook\022K\n" - + "\021toxic_combination\0308" - + " \001(\01320.google.cloud.securitycenter.v2.ToxicCombination\022J\n" - + "\021group_memberships\0309" - + " \003(\0132/.google.cloud.securitycenter.v2.GroupMembership\0222\n" + + "\021toxic_combination\0308 \001(\01320.googl" + + "e.cloud.securitycenter.v2.ToxicCombination\022J\n" + + "\021group_memberships\0309 \003(\0132/.google.c" + + "loud.securitycenter.v2.GroupMembership\0222\n" + "\004disk\030: \001(\0132$.google.cloud.securitycenter.v2.Disk\022K\n" - + "\022data_access_events\030=" - + " \003(\0132/.google.cloud.securitycenter.v2.DataAccessEvent\022G\n" - + "\020data_flow_events\030>" - + " \003(\0132-.google.cloud.securitycenter.v2.DataFlowEvent\022b\n" - + "\036data_retention_deletion_events\030@ \003(\0132:.google." - + "cloud.securitycenter.v2.DataRetentionDeletionEvent\032\223\003\n" + + "\022data_access_events\030= \003(\0132/" + + ".google.cloud.securitycenter.v2.DataAccessEvent\022G\n" + + "\020data_flow_events\030> \003(\0132-.goog" + + "le.cloud.securitycenter.v2.DataFlowEvent\0229\n" + + "\010networks\030? \003(\0132\'.google.cloud.securitycenter.v2.Network\022b\n" + + "\036data_retention_deletion_events\030@ \003(\0132:.google.cloud.secur" + + "itycenter.v2.DataRetentionDeletionEvent\022M\n" + + "\022affected_resources\030A \001(\01321.google.clo" + + "ud.securitycenter.v2.AffectedResources\0229\n" + + "\010ai_model\030B \001(\0132\'.google.cloud.securitycenter.v2.AiModel\022>\n\n" + + "chokepoint\030E \001(\0132*.google.cloud.securitycenter.v2.Chokepoint\022;\n" + + "\tvertex_ai\030H \001(\0132(.google.cloud.securitycenter.v2.VertexAi\032\223\003\n" + "\010MuteInfo\022P\n" + "\013static_mute\030\001" + " \001(\0132;.google.cloud.securitycenter.v2.Finding.MuteInfo.StaticMute\022`\n" - + "\024dynamic_mute_records\030\002 \003(\0132B.google.cloud.securityc" - + "enter.v2.Finding.MuteInfo.DynamicMuteRecord\032y\n\n" + + "\024dynamic_mute_records\030\002 \003(\0132B.google.clo" + + "ud.securitycenter.v2.Finding.MuteInfo.DynamicMuteRecord\032y\n\n" + "StaticMute\022;\n" + "\005state\030\001 \001(\0162,.google.cloud.securitycenter.v2.Finding.Mute\022.\n\n" + "apply_time\030\002 \001(\0132\032.google.protobuf.Timestamp\032X\n" @@ -187,8 +199,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005value\030\002 \001(\0132\026.google.protobuf.Value:\0028\001\032f\n" + "\024ExternalSystemsEntry\022\013\n" + "\003key\030\001 \001(\t\022=\n" - + "\005value\030\002 \001(\0132..google.c" - + "loud.securitycenter.v2.ExternalSystem:\0028\001\032_\n\r" + + "\005value\030\002 \001(" + + "\0132..google.cloud.securitycenter.v2.ExternalSystem:\0028\001\032_\n\r" + "ContactsEntry\022\013\n" + "\003key\030\001 \001(\t\022=\n" + "\005value\030\002" @@ -207,27 +219,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020MUTE_UNSPECIFIED\020\000\022\t\n" + "\005MUTED\020\001\022\013\n" + "\007UNMUTED\020\002\022\r\n" - + "\tUNDEFINED\020\003\"\311\001\n" + + "\tUNDEFINED\020\003\"\331\001\n" + "\014FindingClass\022\035\n" + "\031FINDING_CLASS_UNSPECIFIED\020\000\022\n\n" + "\006THREAT\020\001\022\021\n\r" + "VULNERABILITY\020\002\022\024\n" + "\020MISCONFIGURATION\020\003\022\017\n" - + "\013OBSERVATION\020\004\022\r\n" + + "\013OBSERVATION\020\004\022\r" + + "\n" + "\tSCC_ERROR\020\005\022\025\n" + "\021POSTURE_VIOLATION\020\006\022\025\n" + "\021TOXIC_COMBINATION\020\007\022\027\n" - + "\023SENSITIVE_DATA_RISK\020\010:\335\003\352A\331\003\n" - + "%securitycenter.googleapis.com/Finding\022@organizations/{organization}/sources/{so" - + "urce}/findings/{finding}\022Uorganizations/{organization}/sources/{source}/location" - + "s/{location}/findings/{finding}\0224folders/{folder}/sources/{source}/findings/{fin" - + "ding}\022Ifolders/{folder}/sources/{source}/locations/{location}/findings/{finding}" - + "\0226projects/{project}/sources/{source}/findings/{finding}\022Kprojects/{project}/sou" - + "rces/{source}/locations/{location}/findings/{finding}*\010findings2\007findingB\346\001\n" - + "\"com.google.cloud.securitycenter.v2B\014Finding" - + "ProtoP\001ZJcloud.google.com/go/securitycenter/apiv2/securitycenterpb;securitycente" - + "rpb\252\002\036Google.Cloud.SecurityCenter.V2\312\002\036G" - + "oogle\\Cloud\\SecurityCenter\\V2\352\002!Google::Cloud::SecurityCenter::V2b\006proto3" + + "\023SENSITIVE_DATA_RISK\020\010\022\016\n\n" + + "CHOKEPOINT\020\t:\335\003\352A\331\003\n" + + "%securitycenter.googleapis.com/Finding\022@organization" + + "s/{organization}/sources/{source}/findings/{finding}\022Uorganizations/{organizatio" + + "n}/sources/{source}/locations/{location}/findings/{finding}\0224folders/{folder}/so" + + "urces/{source}/findings/{finding}\022Ifolders/{folder}/sources/{source}/locations/{" + + "location}/findings/{finding}\0226projects/{project}/sources/{source}/findings/{find" + + "ing}\022Kprojects/{project}/sources/{source" + + "}/locations/{location}/findings/{finding}*\010findings2\007findingB\346\001\n" + + "\"com.google.cloud.securitycenter.v2B\014FindingProtoP\001ZJclo" + + "ud.google.com/go/securitycenter/apiv2/se" + + "curitycenterpb;securitycenterpb\252\002\036Google" + + ".Cloud.SecurityCenter.V2\312\002\036Google\\Cloud\\" + + "SecurityCenter\\V2\352\002!Google::Cloud::SecurityCenter::V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -236,9 +252,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.securitycenter.v2.AccessProto.getDescriptor(), + com.google.cloud.securitycenter.v2.AffectedResourcesProto.getDescriptor(), + com.google.cloud.securitycenter.v2.AiModelProto.getDescriptor(), com.google.cloud.securitycenter.v2.ApplicationProto.getDescriptor(), com.google.cloud.securitycenter.v2.AttackExposureProto.getDescriptor(), com.google.cloud.securitycenter.v2.BackupDisasterRecoveryProto.getDescriptor(), + com.google.cloud.securitycenter.v2.ChokepointProto.getDescriptor(), com.google.cloud.securitycenter.v2.CloudArmorProto.getDescriptor(), com.google.cloud.securitycenter.v2.CloudDlpDataProfileProto.getDescriptor(), com.google.cloud.securitycenter.v2.CloudDlpInspectionProto.getDescriptor(), @@ -257,17 +276,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.securitycenter.v2.GroupMembershipProto.getDescriptor(), com.google.cloud.securitycenter.v2.IamBindingProto.getDescriptor(), com.google.cloud.securitycenter.v2.IndicatorProto.getDescriptor(), + com.google.cloud.securitycenter.v2.IpRulesProto.getDescriptor(), + com.google.cloud.securitycenter.v2.JobProto.getDescriptor(), com.google.cloud.securitycenter.v2.KernelRootkitProto.getDescriptor(), com.google.cloud.securitycenter.v2.KubernetesProto.getDescriptor(), com.google.cloud.securitycenter.v2.LoadBalancerProto.getDescriptor(), com.google.cloud.securitycenter.v2.LogEntryProto.getDescriptor(), com.google.cloud.securitycenter.v2.MitreAttackProto.getDescriptor(), + com.google.cloud.securitycenter.v2.NetworkProto.getDescriptor(), com.google.cloud.securitycenter.v2.NotebookProto.getDescriptor(), com.google.cloud.securitycenter.v2.OrgPolicyProto.getDescriptor(), com.google.cloud.securitycenter.v2.ProcessProto.getDescriptor(), com.google.cloud.securitycenter.v2.SecurityMarksProto.getDescriptor(), com.google.cloud.securitycenter.v2.SecurityPostureProto.getDescriptor(), com.google.cloud.securitycenter.v2.ToxicCombinationProto.getDescriptor(), + com.google.cloud.securitycenter.v2.VertexAiProto.getDescriptor(), com.google.cloud.securitycenter.v2.VulnerabilityProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), @@ -319,7 +342,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CloudDlpDataProfile", "KernelRootkit", "OrgPolicies", + "Job", "Application", + "IpRules", "BackupDisasterRecovery", "SecurityPosture", "LogEntries", @@ -331,7 +356,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Disk", "DataAccessEvents", "DataFlowEvents", + "Networks", "DataRetentionDeletionEvents", + "AffectedResources", + "AiModel", + "Chokepoint", + "VertexAi", }); internal_static_google_cloud_securitycenter_v2_Finding_MuteInfo_descriptor = internal_static_google_cloud_securitycenter_v2_Finding_descriptor.getNestedTypes().get(0); @@ -394,9 +424,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.securitycenter.v2.AccessProto.getDescriptor(); + com.google.cloud.securitycenter.v2.AffectedResourcesProto.getDescriptor(); + com.google.cloud.securitycenter.v2.AiModelProto.getDescriptor(); com.google.cloud.securitycenter.v2.ApplicationProto.getDescriptor(); com.google.cloud.securitycenter.v2.AttackExposureProto.getDescriptor(); com.google.cloud.securitycenter.v2.BackupDisasterRecoveryProto.getDescriptor(); + com.google.cloud.securitycenter.v2.ChokepointProto.getDescriptor(); com.google.cloud.securitycenter.v2.CloudArmorProto.getDescriptor(); com.google.cloud.securitycenter.v2.CloudDlpDataProfileProto.getDescriptor(); com.google.cloud.securitycenter.v2.CloudDlpInspectionProto.getDescriptor(); @@ -415,17 +448,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.securitycenter.v2.GroupMembershipProto.getDescriptor(); com.google.cloud.securitycenter.v2.IamBindingProto.getDescriptor(); com.google.cloud.securitycenter.v2.IndicatorProto.getDescriptor(); + com.google.cloud.securitycenter.v2.IpRulesProto.getDescriptor(); + com.google.cloud.securitycenter.v2.JobProto.getDescriptor(); com.google.cloud.securitycenter.v2.KernelRootkitProto.getDescriptor(); com.google.cloud.securitycenter.v2.KubernetesProto.getDescriptor(); com.google.cloud.securitycenter.v2.LoadBalancerProto.getDescriptor(); com.google.cloud.securitycenter.v2.LogEntryProto.getDescriptor(); com.google.cloud.securitycenter.v2.MitreAttackProto.getDescriptor(); + com.google.cloud.securitycenter.v2.NetworkProto.getDescriptor(); com.google.cloud.securitycenter.v2.NotebookProto.getDescriptor(); com.google.cloud.securitycenter.v2.OrgPolicyProto.getDescriptor(); com.google.cloud.securitycenter.v2.ProcessProto.getDescriptor(); com.google.cloud.securitycenter.v2.SecurityMarksProto.getDescriptor(); com.google.cloud.securitycenter.v2.SecurityPostureProto.getDescriptor(); com.google.cloud.securitycenter.v2.ToxicCombinationProto.getDescriptor(); + com.google.cloud.securitycenter.v2.VertexAiProto.getDescriptor(); com.google.cloud.securitycenter.v2.VulnerabilityProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/GcpMetadata.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/GcpMetadata.java index 0559550f7d24..d20832e8eeef 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/GcpMetadata.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/GcpMetadata.java @@ -23,8 +23,8 @@ * * *
      - * GCP metadata associated with the resource, only applicable if the finding's
      - * cloud provider is Google Cloud Platform.
      + * Google Cloud metadata associated with the resource. Only applicable if the
      + * finding's cloud provider is Google Cloud.
        * 
      * * Protobuf type {@code google.cloud.securitycenter.v2.GcpMetadata} @@ -642,8 +642,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
      -   * GCP metadata associated with the resource, only applicable if the finding's
      -   * cloud provider is Google Cloud Platform.
      +   * Google Cloud metadata associated with the resource. Only applicable if the
      +   * finding's cloud provider is Google Cloud.
          * 
      * * Protobuf type {@code google.cloud.securitycenter.v2.GcpMetadata} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/GroupMembership.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/GroupMembership.java index 42e45e119780..48af5579f228 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/GroupMembership.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/GroupMembership.java @@ -96,6 +96,16 @@ public enum GroupType implements com.google.protobuf.ProtocolMessageEnum { * GROUP_TYPE_TOXIC_COMBINATION = 1; */ GROUP_TYPE_TOXIC_COMBINATION(1), + /** + * + * + *
      +     * Group represents a chokepoint.
      +     * 
      + * + * GROUP_TYPE_CHOKEPOINT = 3; + */ + GROUP_TYPE_CHOKEPOINT(3), UNRECOGNIZED(-1), ; @@ -121,6 +131,17 @@ public enum GroupType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int GROUP_TYPE_TOXIC_COMBINATION_VALUE = 1; + /** + * + * + *
      +     * Group represents a chokepoint.
      +     * 
      + * + * GROUP_TYPE_CHOKEPOINT = 3; + */ + public static final int GROUP_TYPE_CHOKEPOINT_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -149,6 +170,8 @@ public static GroupType forNumber(int value) { return GROUP_TYPE_UNSPECIFIED; case 1: return GROUP_TYPE_TOXIC_COMBINATION; + case 3: + return GROUP_TYPE_CHOKEPOINT; default: return null; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/GroupMembershipProto.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/GroupMembershipProto.java index 84adde5971b6..f24b8bec4d76 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/GroupMembershipProto.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/GroupMembershipProto.java @@ -43,18 +43,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n5google/cloud/securitycenter/v2/group_m" + "embership.proto\022\036google.cloud.securityce" - + "nter.v2\"\275\001\n\017GroupMembership\022M\n\ngroup_typ" + + "nter.v2\"\330\001\n\017GroupMembership\022M\n\ngroup_typ" + "e\030\001 \001(\01629.google.cloud.securitycenter.v2" + ".GroupMembership.GroupType\022\020\n\010group_id\030\002" - + " \001(\t\"I\n\tGroupType\022\032\n\026GROUP_TYPE_UNSPECIF" - + "IED\020\000\022 \n\034GROUP_TYPE_TOXIC_COMBINATION\020\001B" - + "\356\001\n\"com.google.cloud.securitycenter.v2B\024" - + "GroupMembershipProtoP\001ZJcloud.google.com" - + "/go/securitycenter/apiv2/securitycenterp" - + "b;securitycenterpb\252\002\036Google.Cloud.Securi" - + "tyCenter.V2\312\002\036Google\\Cloud\\SecurityCente" - + "r\\V2\352\002!Google::Cloud::SecurityCenter::V2" - + "b\006proto3" + + " \001(\t\"d\n\tGroupType\022\032\n\026GROUP_TYPE_UNSPECIF" + + "IED\020\000\022 \n\034GROUP_TYPE_TOXIC_COMBINATION\020\001\022" + + "\031\n\025GROUP_TYPE_CHOKEPOINT\020\003B\356\001\n\"com.googl" + + "e.cloud.securitycenter.v2B\024GroupMembersh" + + "ipProtoP\001ZJcloud.google.com/go/securityc" + + "enter/apiv2/securitycenterpb;securitycen" + + "terpb\252\002\036Google.Cloud.SecurityCenter.V2\312\002" + + "\036Google\\Cloud\\SecurityCenter\\V2\352\002!Google" + + "::Cloud::SecurityCenter::V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/IpRule.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/IpRule.java new file mode 100644 index 000000000000..cae32e6d57c7 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/IpRule.java @@ -0,0 +1,1927 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v2/ip_rules.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.securitycenter.v2; + +/** + * + * + *
      + * IP rule information.
      + * 
      + * + * Protobuf type {@code google.cloud.securitycenter.v2.IpRule} + */ +public final class IpRule extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v2.IpRule) + IpRuleOrBuilder { + private static final long serialVersionUID = 0L; + + // Use IpRule.newBuilder() to construct. + private IpRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IpRule() { + protocol_ = ""; + portRanges_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IpRule(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v2.IpRulesProto + .internal_static_google_cloud_securitycenter_v2_IpRule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v2.IpRulesProto + .internal_static_google_cloud_securitycenter_v2_IpRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v2.IpRule.class, + com.google.cloud.securitycenter.v2.IpRule.Builder.class); + } + + public interface PortRangeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v2.IpRule.PortRange) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Minimum port value.
      +     * 
      + * + * int64 min = 1; + * + * @return The min. + */ + long getMin(); + + /** + * + * + *
      +     * Maximum port value.
      +     * 
      + * + * int64 max = 2; + * + * @return The max. + */ + long getMax(); + } + + /** + * + * + *
      +   * A port range which is inclusive of the min and max values.
      +   * Values are between 0 and 2^16-1. The max can be equal / must be not smaller
      +   * than the min value. If min and max are equal this indicates that it is a
      +   * single port.
      +   * 
      + * + * Protobuf type {@code google.cloud.securitycenter.v2.IpRule.PortRange} + */ + public static final class PortRange extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v2.IpRule.PortRange) + PortRangeOrBuilder { + private static final long serialVersionUID = 0L; + + // Use PortRange.newBuilder() to construct. + private PortRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PortRange() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PortRange(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v2.IpRulesProto + .internal_static_google_cloud_securitycenter_v2_IpRule_PortRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v2.IpRulesProto + .internal_static_google_cloud_securitycenter_v2_IpRule_PortRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v2.IpRule.PortRange.class, + com.google.cloud.securitycenter.v2.IpRule.PortRange.Builder.class); + } + + public static final int MIN_FIELD_NUMBER = 1; + private long min_ = 0L; + + /** + * + * + *
      +     * Minimum port value.
      +     * 
      + * + * int64 min = 1; + * + * @return The min. + */ + @java.lang.Override + public long getMin() { + return min_; + } + + public static final int MAX_FIELD_NUMBER = 2; + private long max_ = 0L; + + /** + * + * + *
      +     * Maximum port value.
      +     * 
      + * + * int64 max = 2; + * + * @return The max. + */ + @java.lang.Override + public long getMax() { + return max_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (min_ != 0L) { + output.writeInt64(1, min_); + } + if (max_ != 0L) { + output.writeInt64(2, max_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (min_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, min_); + } + if (max_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, max_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycenter.v2.IpRule.PortRange)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v2.IpRule.PortRange other = + (com.google.cloud.securitycenter.v2.IpRule.PortRange) obj; + + if (getMin() != other.getMin()) return false; + if (getMax() != other.getMax()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MIN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMin()); + hash = (37 * hash) + MAX_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMax()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v2.IpRule.PortRange parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.IpRule.PortRange parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.IpRule.PortRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.IpRule.PortRange parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.IpRule.PortRange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.IpRule.PortRange parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.IpRule.PortRange parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.IpRule.PortRange parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.IpRule.PortRange parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.IpRule.PortRange parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.IpRule.PortRange parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.IpRule.PortRange parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.securitycenter.v2.IpRule.PortRange prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * A port range which is inclusive of the min and max values.
      +     * Values are between 0 and 2^16-1. The max can be equal / must be not smaller
      +     * than the min value. If min and max are equal this indicates that it is a
      +     * single port.
      +     * 
      + * + * Protobuf type {@code google.cloud.securitycenter.v2.IpRule.PortRange} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v2.IpRule.PortRange) + com.google.cloud.securitycenter.v2.IpRule.PortRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v2.IpRulesProto + .internal_static_google_cloud_securitycenter_v2_IpRule_PortRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v2.IpRulesProto + .internal_static_google_cloud_securitycenter_v2_IpRule_PortRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v2.IpRule.PortRange.class, + com.google.cloud.securitycenter.v2.IpRule.PortRange.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v2.IpRule.PortRange.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + min_ = 0L; + max_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v2.IpRulesProto + .internal_static_google_cloud_securitycenter_v2_IpRule_PortRange_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.IpRule.PortRange getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v2.IpRule.PortRange.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.IpRule.PortRange build() { + com.google.cloud.securitycenter.v2.IpRule.PortRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.IpRule.PortRange buildPartial() { + com.google.cloud.securitycenter.v2.IpRule.PortRange result = + new com.google.cloud.securitycenter.v2.IpRule.PortRange(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.securitycenter.v2.IpRule.PortRange result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.min_ = min_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.max_ = max_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v2.IpRule.PortRange) { + return mergeFrom((com.google.cloud.securitycenter.v2.IpRule.PortRange) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v2.IpRule.PortRange other) { + if (other == com.google.cloud.securitycenter.v2.IpRule.PortRange.getDefaultInstance()) + return this; + if (other.getMin() != 0L) { + setMin(other.getMin()); + } + if (other.getMax() != 0L) { + setMax(other.getMax()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + min_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + max_ = 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 min_; + + /** + * + * + *
      +       * Minimum port value.
      +       * 
      + * + * int64 min = 1; + * + * @return The min. + */ + @java.lang.Override + public long getMin() { + return min_; + } + + /** + * + * + *
      +       * Minimum port value.
      +       * 
      + * + * int64 min = 1; + * + * @param value The min to set. + * @return This builder for chaining. + */ + public Builder setMin(long value) { + + min_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Minimum port value.
      +       * 
      + * + * int64 min = 1; + * + * @return This builder for chaining. + */ + public Builder clearMin() { + bitField0_ = (bitField0_ & ~0x00000001); + min_ = 0L; + onChanged(); + return this; + } + + private long max_; + + /** + * + * + *
      +       * Maximum port value.
      +       * 
      + * + * int64 max = 2; + * + * @return The max. + */ + @java.lang.Override + public long getMax() { + return max_; + } + + /** + * + * + *
      +       * Maximum port value.
      +       * 
      + * + * int64 max = 2; + * + * @param value The max to set. + * @return This builder for chaining. + */ + public Builder setMax(long value) { + + max_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Maximum port value.
      +       * 
      + * + * int64 max = 2; + * + * @return This builder for chaining. + */ + public Builder clearMax() { + bitField0_ = (bitField0_ & ~0x00000002); + max_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v2.IpRule.PortRange) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v2.IpRule.PortRange) + private static final com.google.cloud.securitycenter.v2.IpRule.PortRange DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v2.IpRule.PortRange(); + } + + public static com.google.cloud.securitycenter.v2.IpRule.PortRange getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PortRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.IpRule.PortRange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int PROTOCOL_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object protocol_ = ""; + + /** + * + * + *
      +   * The IP protocol this rule applies to. This value can either be one of the
      +   * following well known protocol strings (TCP, UDP, ICMP, ESP, AH, IPIP,
      +   * SCTP) or a string representation of the integer value.
      +   * 
      + * + * string protocol = 1; + * + * @return The protocol. + */ + @java.lang.Override + public java.lang.String getProtocol() { + java.lang.Object ref = protocol_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + protocol_ = s; + return s; + } + } + + /** + * + * + *
      +   * The IP protocol this rule applies to. This value can either be one of the
      +   * following well known protocol strings (TCP, UDP, ICMP, ESP, AH, IPIP,
      +   * SCTP) or a string representation of the integer value.
      +   * 
      + * + * string protocol = 1; + * + * @return The bytes for protocol. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProtocolBytes() { + java.lang.Object ref = protocol_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + protocol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PORT_RANGES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List portRanges_; + + /** + * + * + *
      +   * Optional. An optional list of ports to which this rule applies. This field
      +   * is only applicable for the UDP or (S)TCP protocols. Each entry must be
      +   * either an integer or a range including a min and max port number.
      +   * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule.PortRange port_ranges = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getPortRangesList() { + return portRanges_; + } + + /** + * + * + *
      +   * Optional. An optional list of ports to which this rule applies. This field
      +   * is only applicable for the UDP or (S)TCP protocols. Each entry must be
      +   * either an integer or a range including a min and max port number.
      +   * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule.PortRange port_ranges = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getPortRangesOrBuilderList() { + return portRanges_; + } + + /** + * + * + *
      +   * Optional. An optional list of ports to which this rule applies. This field
      +   * is only applicable for the UDP or (S)TCP protocols. Each entry must be
      +   * either an integer or a range including a min and max port number.
      +   * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule.PortRange port_ranges = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getPortRangesCount() { + return portRanges_.size(); + } + + /** + * + * + *
      +   * Optional. An optional list of ports to which this rule applies. This field
      +   * is only applicable for the UDP or (S)TCP protocols. Each entry must be
      +   * either an integer or a range including a min and max port number.
      +   * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule.PortRange port_ranges = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.IpRule.PortRange getPortRanges(int index) { + return portRanges_.get(index); + } + + /** + * + * + *
      +   * Optional. An optional list of ports to which this rule applies. This field
      +   * is only applicable for the UDP or (S)TCP protocols. Each entry must be
      +   * either an integer or a range including a min and max port number.
      +   * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule.PortRange port_ranges = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.IpRule.PortRangeOrBuilder getPortRangesOrBuilder( + int index) { + return portRanges_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(protocol_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, protocol_); + } + for (int i = 0; i < portRanges_.size(); i++) { + output.writeMessage(2, portRanges_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(protocol_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, protocol_); + } + for (int i = 0; i < portRanges_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, portRanges_.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.cloud.securitycenter.v2.IpRule)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v2.IpRule other = + (com.google.cloud.securitycenter.v2.IpRule) obj; + + if (!getProtocol().equals(other.getProtocol())) return false; + if (!getPortRangesList().equals(other.getPortRangesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROTOCOL_FIELD_NUMBER; + hash = (53 * hash) + getProtocol().hashCode(); + if (getPortRangesCount() > 0) { + hash = (37 * hash) + PORT_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getPortRangesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v2.IpRule parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.IpRule parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.IpRule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.IpRule parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.IpRule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.IpRule parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.IpRule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.IpRule parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.IpRule parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.IpRule parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.IpRule parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.IpRule parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.securitycenter.v2.IpRule prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * IP rule information.
      +   * 
      + * + * Protobuf type {@code google.cloud.securitycenter.v2.IpRule} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v2.IpRule) + com.google.cloud.securitycenter.v2.IpRuleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v2.IpRulesProto + .internal_static_google_cloud_securitycenter_v2_IpRule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v2.IpRulesProto + .internal_static_google_cloud_securitycenter_v2_IpRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v2.IpRule.class, + com.google.cloud.securitycenter.v2.IpRule.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v2.IpRule.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + protocol_ = ""; + if (portRangesBuilder_ == null) { + portRanges_ = java.util.Collections.emptyList(); + } else { + portRanges_ = null; + portRangesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v2.IpRulesProto + .internal_static_google_cloud_securitycenter_v2_IpRule_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.IpRule getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v2.IpRule.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.IpRule build() { + com.google.cloud.securitycenter.v2.IpRule result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.IpRule buildPartial() { + com.google.cloud.securitycenter.v2.IpRule result = + new com.google.cloud.securitycenter.v2.IpRule(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.securitycenter.v2.IpRule result) { + if (portRangesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + portRanges_ = java.util.Collections.unmodifiableList(portRanges_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.portRanges_ = portRanges_; + } else { + result.portRanges_ = portRangesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.securitycenter.v2.IpRule result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.protocol_ = protocol_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v2.IpRule) { + return mergeFrom((com.google.cloud.securitycenter.v2.IpRule) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v2.IpRule other) { + if (other == com.google.cloud.securitycenter.v2.IpRule.getDefaultInstance()) return this; + if (!other.getProtocol().isEmpty()) { + protocol_ = other.protocol_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (portRangesBuilder_ == null) { + if (!other.portRanges_.isEmpty()) { + if (portRanges_.isEmpty()) { + portRanges_ = other.portRanges_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensurePortRangesIsMutable(); + portRanges_.addAll(other.portRanges_); + } + onChanged(); + } + } else { + if (!other.portRanges_.isEmpty()) { + if (portRangesBuilder_.isEmpty()) { + portRangesBuilder_.dispose(); + portRangesBuilder_ = null; + portRanges_ = other.portRanges_; + bitField0_ = (bitField0_ & ~0x00000002); + portRangesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPortRangesFieldBuilder() + : null; + } else { + portRangesBuilder_.addAllMessages(other.portRanges_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + protocol_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.securitycenter.v2.IpRule.PortRange m = + input.readMessage( + com.google.cloud.securitycenter.v2.IpRule.PortRange.parser(), + extensionRegistry); + if (portRangesBuilder_ == null) { + ensurePortRangesIsMutable(); + portRanges_.add(m); + } else { + portRangesBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object protocol_ = ""; + + /** + * + * + *
      +     * The IP protocol this rule applies to. This value can either be one of the
      +     * following well known protocol strings (TCP, UDP, ICMP, ESP, AH, IPIP,
      +     * SCTP) or a string representation of the integer value.
      +     * 
      + * + * string protocol = 1; + * + * @return The protocol. + */ + public java.lang.String getProtocol() { + java.lang.Object ref = protocol_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + protocol_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * The IP protocol this rule applies to. This value can either be one of the
      +     * following well known protocol strings (TCP, UDP, ICMP, ESP, AH, IPIP,
      +     * SCTP) or a string representation of the integer value.
      +     * 
      + * + * string protocol = 1; + * + * @return The bytes for protocol. + */ + public com.google.protobuf.ByteString getProtocolBytes() { + java.lang.Object ref = protocol_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + protocol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * The IP protocol this rule applies to. This value can either be one of the
      +     * following well known protocol strings (TCP, UDP, ICMP, ESP, AH, IPIP,
      +     * SCTP) or a string representation of the integer value.
      +     * 
      + * + * string protocol = 1; + * + * @param value The protocol to set. + * @return This builder for chaining. + */ + public Builder setProtocol(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + protocol_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The IP protocol this rule applies to. This value can either be one of the
      +     * following well known protocol strings (TCP, UDP, ICMP, ESP, AH, IPIP,
      +     * SCTP) or a string representation of the integer value.
      +     * 
      + * + * string protocol = 1; + * + * @return This builder for chaining. + */ + public Builder clearProtocol() { + protocol_ = getDefaultInstance().getProtocol(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * The IP protocol this rule applies to. This value can either be one of the
      +     * following well known protocol strings (TCP, UDP, ICMP, ESP, AH, IPIP,
      +     * SCTP) or a string representation of the integer value.
      +     * 
      + * + * string protocol = 1; + * + * @param value The bytes for protocol to set. + * @return This builder for chaining. + */ + public Builder setProtocolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + protocol_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List portRanges_ = + java.util.Collections.emptyList(); + + private void ensurePortRangesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + portRanges_ = + new java.util.ArrayList( + portRanges_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v2.IpRule.PortRange, + com.google.cloud.securitycenter.v2.IpRule.PortRange.Builder, + com.google.cloud.securitycenter.v2.IpRule.PortRangeOrBuilder> + portRangesBuilder_; + + /** + * + * + *
      +     * Optional. An optional list of ports to which this rule applies. This field
      +     * is only applicable for the UDP or (S)TCP protocols. Each entry must be
      +     * either an integer or a range including a min and max port number.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule.PortRange port_ranges = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getPortRangesList() { + if (portRangesBuilder_ == null) { + return java.util.Collections.unmodifiableList(portRanges_); + } else { + return portRangesBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * Optional. An optional list of ports to which this rule applies. This field
      +     * is only applicable for the UDP or (S)TCP protocols. Each entry must be
      +     * either an integer or a range including a min and max port number.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule.PortRange port_ranges = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getPortRangesCount() { + if (portRangesBuilder_ == null) { + return portRanges_.size(); + } else { + return portRangesBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * Optional. An optional list of ports to which this rule applies. This field
      +     * is only applicable for the UDP or (S)TCP protocols. Each entry must be
      +     * either an integer or a range including a min and max port number.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule.PortRange port_ranges = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.securitycenter.v2.IpRule.PortRange getPortRanges(int index) { + if (portRangesBuilder_ == null) { + return portRanges_.get(index); + } else { + return portRangesBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * Optional. An optional list of ports to which this rule applies. This field
      +     * is only applicable for the UDP or (S)TCP protocols. Each entry must be
      +     * either an integer or a range including a min and max port number.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule.PortRange port_ranges = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPortRanges( + int index, com.google.cloud.securitycenter.v2.IpRule.PortRange value) { + if (portRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePortRangesIsMutable(); + portRanges_.set(index, value); + onChanged(); + } else { + portRangesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. An optional list of ports to which this rule applies. This field
      +     * is only applicable for the UDP or (S)TCP protocols. Each entry must be
      +     * either an integer or a range including a min and max port number.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule.PortRange port_ranges = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPortRanges( + int index, com.google.cloud.securitycenter.v2.IpRule.PortRange.Builder builderForValue) { + if (portRangesBuilder_ == null) { + ensurePortRangesIsMutable(); + portRanges_.set(index, builderForValue.build()); + onChanged(); + } else { + portRangesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. An optional list of ports to which this rule applies. This field
      +     * is only applicable for the UDP or (S)TCP protocols. Each entry must be
      +     * either an integer or a range including a min and max port number.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule.PortRange port_ranges = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPortRanges(com.google.cloud.securitycenter.v2.IpRule.PortRange value) { + if (portRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePortRangesIsMutable(); + portRanges_.add(value); + onChanged(); + } else { + portRangesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * Optional. An optional list of ports to which this rule applies. This field
      +     * is only applicable for the UDP or (S)TCP protocols. Each entry must be
      +     * either an integer or a range including a min and max port number.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule.PortRange port_ranges = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPortRanges( + int index, com.google.cloud.securitycenter.v2.IpRule.PortRange value) { + if (portRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePortRangesIsMutable(); + portRanges_.add(index, value); + onChanged(); + } else { + portRangesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. An optional list of ports to which this rule applies. This field
      +     * is only applicable for the UDP or (S)TCP protocols. Each entry must be
      +     * either an integer or a range including a min and max port number.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule.PortRange port_ranges = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPortRanges( + com.google.cloud.securitycenter.v2.IpRule.PortRange.Builder builderForValue) { + if (portRangesBuilder_ == null) { + ensurePortRangesIsMutable(); + portRanges_.add(builderForValue.build()); + onChanged(); + } else { + portRangesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. An optional list of ports to which this rule applies. This field
      +     * is only applicable for the UDP or (S)TCP protocols. Each entry must be
      +     * either an integer or a range including a min and max port number.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule.PortRange port_ranges = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPortRanges( + int index, com.google.cloud.securitycenter.v2.IpRule.PortRange.Builder builderForValue) { + if (portRangesBuilder_ == null) { + ensurePortRangesIsMutable(); + portRanges_.add(index, builderForValue.build()); + onChanged(); + } else { + portRangesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. An optional list of ports to which this rule applies. This field
      +     * is only applicable for the UDP or (S)TCP protocols. Each entry must be
      +     * either an integer or a range including a min and max port number.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule.PortRange port_ranges = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllPortRanges( + java.lang.Iterable values) { + if (portRangesBuilder_ == null) { + ensurePortRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, portRanges_); + onChanged(); + } else { + portRangesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * Optional. An optional list of ports to which this rule applies. This field
      +     * is only applicable for the UDP or (S)TCP protocols. Each entry must be
      +     * either an integer or a range including a min and max port number.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule.PortRange port_ranges = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPortRanges() { + if (portRangesBuilder_ == null) { + portRanges_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + portRangesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. An optional list of ports to which this rule applies. This field
      +     * is only applicable for the UDP or (S)TCP protocols. Each entry must be
      +     * either an integer or a range including a min and max port number.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule.PortRange port_ranges = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removePortRanges(int index) { + if (portRangesBuilder_ == null) { + ensurePortRangesIsMutable(); + portRanges_.remove(index); + onChanged(); + } else { + portRangesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * Optional. An optional list of ports to which this rule applies. This field
      +     * is only applicable for the UDP or (S)TCP protocols. Each entry must be
      +     * either an integer or a range including a min and max port number.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule.PortRange port_ranges = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.securitycenter.v2.IpRule.PortRange.Builder getPortRangesBuilder( + int index) { + return getPortRangesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * Optional. An optional list of ports to which this rule applies. This field
      +     * is only applicable for the UDP or (S)TCP protocols. Each entry must be
      +     * either an integer or a range including a min and max port number.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule.PortRange port_ranges = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.securitycenter.v2.IpRule.PortRangeOrBuilder getPortRangesOrBuilder( + int index) { + if (portRangesBuilder_ == null) { + return portRanges_.get(index); + } else { + return portRangesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * Optional. An optional list of ports to which this rule applies. This field
      +     * is only applicable for the UDP or (S)TCP protocols. Each entry must be
      +     * either an integer or a range including a min and max port number.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule.PortRange port_ranges = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getPortRangesOrBuilderList() { + if (portRangesBuilder_ != null) { + return portRangesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(portRanges_); + } + } + + /** + * + * + *
      +     * Optional. An optional list of ports to which this rule applies. This field
      +     * is only applicable for the UDP or (S)TCP protocols. Each entry must be
      +     * either an integer or a range including a min and max port number.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule.PortRange port_ranges = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.securitycenter.v2.IpRule.PortRange.Builder addPortRangesBuilder() { + return getPortRangesFieldBuilder() + .addBuilder(com.google.cloud.securitycenter.v2.IpRule.PortRange.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. An optional list of ports to which this rule applies. This field
      +     * is only applicable for the UDP or (S)TCP protocols. Each entry must be
      +     * either an integer or a range including a min and max port number.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule.PortRange port_ranges = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.securitycenter.v2.IpRule.PortRange.Builder addPortRangesBuilder( + int index) { + return getPortRangesFieldBuilder() + .addBuilder( + index, com.google.cloud.securitycenter.v2.IpRule.PortRange.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. An optional list of ports to which this rule applies. This field
      +     * is only applicable for the UDP or (S)TCP protocols. Each entry must be
      +     * either an integer or a range including a min and max port number.
      +     * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule.PortRange port_ranges = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getPortRangesBuilderList() { + return getPortRangesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v2.IpRule.PortRange, + com.google.cloud.securitycenter.v2.IpRule.PortRange.Builder, + com.google.cloud.securitycenter.v2.IpRule.PortRangeOrBuilder> + getPortRangesFieldBuilder() { + if (portRangesBuilder_ == null) { + portRangesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v2.IpRule.PortRange, + com.google.cloud.securitycenter.v2.IpRule.PortRange.Builder, + com.google.cloud.securitycenter.v2.IpRule.PortRangeOrBuilder>( + portRanges_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + portRanges_ = null; + } + return portRangesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v2.IpRule) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v2.IpRule) + private static final com.google.cloud.securitycenter.v2.IpRule DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v2.IpRule(); + } + + public static com.google.cloud.securitycenter.v2.IpRule getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IpRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.IpRule getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/IpRuleOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/IpRuleOrBuilder.java new file mode 100644 index 000000000000..57ea2eaec7f8 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/IpRuleOrBuilder.java @@ -0,0 +1,132 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v2/ip_rules.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.securitycenter.v2; + +public interface IpRuleOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v2.IpRule) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * The IP protocol this rule applies to. This value can either be one of the
      +   * following well known protocol strings (TCP, UDP, ICMP, ESP, AH, IPIP,
      +   * SCTP) or a string representation of the integer value.
      +   * 
      + * + * string protocol = 1; + * + * @return The protocol. + */ + java.lang.String getProtocol(); + + /** + * + * + *
      +   * The IP protocol this rule applies to. This value can either be one of the
      +   * following well known protocol strings (TCP, UDP, ICMP, ESP, AH, IPIP,
      +   * SCTP) or a string representation of the integer value.
      +   * 
      + * + * string protocol = 1; + * + * @return The bytes for protocol. + */ + com.google.protobuf.ByteString getProtocolBytes(); + + /** + * + * + *
      +   * Optional. An optional list of ports to which this rule applies. This field
      +   * is only applicable for the UDP or (S)TCP protocols. Each entry must be
      +   * either an integer or a range including a min and max port number.
      +   * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule.PortRange port_ranges = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getPortRangesList(); + + /** + * + * + *
      +   * Optional. An optional list of ports to which this rule applies. This field
      +   * is only applicable for the UDP or (S)TCP protocols. Each entry must be
      +   * either an integer or a range including a min and max port number.
      +   * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule.PortRange port_ranges = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.securitycenter.v2.IpRule.PortRange getPortRanges(int index); + + /** + * + * + *
      +   * Optional. An optional list of ports to which this rule applies. This field
      +   * is only applicable for the UDP or (S)TCP protocols. Each entry must be
      +   * either an integer or a range including a min and max port number.
      +   * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule.PortRange port_ranges = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getPortRangesCount(); + + /** + * + * + *
      +   * Optional. An optional list of ports to which this rule applies. This field
      +   * is only applicable for the UDP or (S)TCP protocols. Each entry must be
      +   * either an integer or a range including a min and max port number.
      +   * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule.PortRange port_ranges = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getPortRangesOrBuilderList(); + + /** + * + * + *
      +   * Optional. An optional list of ports to which this rule applies. This field
      +   * is only applicable for the UDP or (S)TCP protocols. Each entry must be
      +   * either an integer or a range including a min and max port number.
      +   * 
      + * + * + * repeated .google.cloud.securitycenter.v2.IpRule.PortRange port_ranges = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.securitycenter.v2.IpRule.PortRangeOrBuilder getPortRangesOrBuilder(int index); +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/IpRules.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/IpRules.java new file mode 100644 index 000000000000..5fda13b34bc3 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/IpRules.java @@ -0,0 +1,2406 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v2/ip_rules.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.securitycenter.v2; + +/** + * + * + *
      + * IP rules associated with the finding.
      + * 
      + * + * Protobuf type {@code google.cloud.securitycenter.v2.IpRules} + */ +public final class IpRules extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v2.IpRules) + IpRulesOrBuilder { + private static final long serialVersionUID = 0L; + + // Use IpRules.newBuilder() to construct. + private IpRules(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IpRules() { + direction_ = 0; + sourceIpRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + destinationIpRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + exposedServices_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IpRules(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v2.IpRulesProto + .internal_static_google_cloud_securitycenter_v2_IpRules_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v2.IpRulesProto + .internal_static_google_cloud_securitycenter_v2_IpRules_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v2.IpRules.class, + com.google.cloud.securitycenter.v2.IpRules.Builder.class); + } + + /** + * + * + *
      +   * The type of direction that the rule is applicable to, one of ingress or
      +   * egress. Not applicable to OPEN_X_PORT findings.
      +   * 
      + * + * Protobuf enum {@code google.cloud.securitycenter.v2.IpRules.Direction} + */ + public enum Direction implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +     * Unspecified direction value.
      +     * 
      + * + * DIRECTION_UNSPECIFIED = 0; + */ + DIRECTION_UNSPECIFIED(0), + /** + * + * + *
      +     * Ingress direction value.
      +     * 
      + * + * INGRESS = 1; + */ + INGRESS(1), + /** + * + * + *
      +     * Egress direction value.
      +     * 
      + * + * EGRESS = 2; + */ + EGRESS(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
      +     * Unspecified direction value.
      +     * 
      + * + * DIRECTION_UNSPECIFIED = 0; + */ + public static final int DIRECTION_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +     * Ingress direction value.
      +     * 
      + * + * INGRESS = 1; + */ + public static final int INGRESS_VALUE = 1; + + /** + * + * + *
      +     * Egress direction value.
      +     * 
      + * + * EGRESS = 2; + */ + public static final int EGRESS_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 Direction 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 Direction forNumber(int value) { + switch (value) { + case 0: + return DIRECTION_UNSPECIFIED; + case 1: + return INGRESS; + case 2: + return EGRESS; + 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 Direction findValueByNumber(int number) { + return Direction.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.securitycenter.v2.IpRules.getDescriptor().getEnumTypes().get(0); + } + + private static final Direction[] VALUES = values(); + + public static Direction 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 Direction(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.securitycenter.v2.IpRules.Direction) + } + + private int rulesCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object rules_; + + public enum RulesCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + ALLOWED(2), + DENIED(3), + RULES_NOT_SET(0); + private final int value; + + private RulesCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static RulesCase valueOf(int value) { + return forNumber(value); + } + + public static RulesCase forNumber(int value) { + switch (value) { + case 2: + return ALLOWED; + case 3: + return DENIED; + case 0: + return RULES_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public RulesCase getRulesCase() { + return RulesCase.forNumber(rulesCase_); + } + + public static final int DIRECTION_FIELD_NUMBER = 1; + private int direction_ = 0; + + /** + * + * + *
      +   * The direction that the rule is applicable to, one of ingress or egress.
      +   * 
      + * + * .google.cloud.securitycenter.v2.IpRules.Direction direction = 1; + * + * @return The enum numeric value on the wire for direction. + */ + @java.lang.Override + public int getDirectionValue() { + return direction_; + } + + /** + * + * + *
      +   * The direction that the rule is applicable to, one of ingress or egress.
      +   * 
      + * + * .google.cloud.securitycenter.v2.IpRules.Direction direction = 1; + * + * @return The direction. + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.IpRules.Direction getDirection() { + com.google.cloud.securitycenter.v2.IpRules.Direction result = + com.google.cloud.securitycenter.v2.IpRules.Direction.forNumber(direction_); + return result == null + ? com.google.cloud.securitycenter.v2.IpRules.Direction.UNRECOGNIZED + : result; + } + + public static final int ALLOWED_FIELD_NUMBER = 2; + + /** + * + * + *
      +   * Tuple with allowed rules.
      +   * 
      + * + * .google.cloud.securitycenter.v2.Allowed allowed = 2; + * + * @return Whether the allowed field is set. + */ + @java.lang.Override + public boolean hasAllowed() { + return rulesCase_ == 2; + } + + /** + * + * + *
      +   * Tuple with allowed rules.
      +   * 
      + * + * .google.cloud.securitycenter.v2.Allowed allowed = 2; + * + * @return The allowed. + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.Allowed getAllowed() { + if (rulesCase_ == 2) { + return (com.google.cloud.securitycenter.v2.Allowed) rules_; + } + return com.google.cloud.securitycenter.v2.Allowed.getDefaultInstance(); + } + + /** + * + * + *
      +   * Tuple with allowed rules.
      +   * 
      + * + * .google.cloud.securitycenter.v2.Allowed allowed = 2; + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.AllowedOrBuilder getAllowedOrBuilder() { + if (rulesCase_ == 2) { + return (com.google.cloud.securitycenter.v2.Allowed) rules_; + } + return com.google.cloud.securitycenter.v2.Allowed.getDefaultInstance(); + } + + public static final int DENIED_FIELD_NUMBER = 3; + + /** + * + * + *
      +   * Tuple with denied rules.
      +   * 
      + * + * .google.cloud.securitycenter.v2.Denied denied = 3; + * + * @return Whether the denied field is set. + */ + @java.lang.Override + public boolean hasDenied() { + return rulesCase_ == 3; + } + + /** + * + * + *
      +   * Tuple with denied rules.
      +   * 
      + * + * .google.cloud.securitycenter.v2.Denied denied = 3; + * + * @return The denied. + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.Denied getDenied() { + if (rulesCase_ == 3) { + return (com.google.cloud.securitycenter.v2.Denied) rules_; + } + return com.google.cloud.securitycenter.v2.Denied.getDefaultInstance(); + } + + /** + * + * + *
      +   * Tuple with denied rules.
      +   * 
      + * + * .google.cloud.securitycenter.v2.Denied denied = 3; + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.DeniedOrBuilder getDeniedOrBuilder() { + if (rulesCase_ == 3) { + return (com.google.cloud.securitycenter.v2.Denied) rules_; + } + return com.google.cloud.securitycenter.v2.Denied.getDefaultInstance(); + } + + public static final int SOURCE_IP_RANGES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList sourceIpRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
      +   * If source IP ranges are specified, the firewall rule applies only to
      +   * traffic that has a source IP address in these ranges. These ranges must be
      +   * expressed in CIDR format. Only supports IPv4.
      +   * 
      + * + * repeated string source_ip_ranges = 4; + * + * @return A list containing the sourceIpRanges. + */ + public com.google.protobuf.ProtocolStringList getSourceIpRangesList() { + return sourceIpRanges_; + } + + /** + * + * + *
      +   * If source IP ranges are specified, the firewall rule applies only to
      +   * traffic that has a source IP address in these ranges. These ranges must be
      +   * expressed in CIDR format. Only supports IPv4.
      +   * 
      + * + * repeated string source_ip_ranges = 4; + * + * @return The count of sourceIpRanges. + */ + public int getSourceIpRangesCount() { + return sourceIpRanges_.size(); + } + + /** + * + * + *
      +   * If source IP ranges are specified, the firewall rule applies only to
      +   * traffic that has a source IP address in these ranges. These ranges must be
      +   * expressed in CIDR format. Only supports IPv4.
      +   * 
      + * + * repeated string source_ip_ranges = 4; + * + * @param index The index of the element to return. + * @return The sourceIpRanges at the given index. + */ + public java.lang.String getSourceIpRanges(int index) { + return sourceIpRanges_.get(index); + } + + /** + * + * + *
      +   * If source IP ranges are specified, the firewall rule applies only to
      +   * traffic that has a source IP address in these ranges. These ranges must be
      +   * expressed in CIDR format. Only supports IPv4.
      +   * 
      + * + * repeated string source_ip_ranges = 4; + * + * @param index The index of the value to return. + * @return The bytes of the sourceIpRanges at the given index. + */ + public com.google.protobuf.ByteString getSourceIpRangesBytes(int index) { + return sourceIpRanges_.getByteString(index); + } + + public static final int DESTINATION_IP_RANGES_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList destinationIpRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
      +   * If destination IP ranges are specified, the firewall rule applies only to
      +   * traffic that has a destination IP address in these ranges. These ranges
      +   * must be expressed in CIDR format. Only supports IPv4.
      +   * 
      + * + * repeated string destination_ip_ranges = 5; + * + * @return A list containing the destinationIpRanges. + */ + public com.google.protobuf.ProtocolStringList getDestinationIpRangesList() { + return destinationIpRanges_; + } + + /** + * + * + *
      +   * If destination IP ranges are specified, the firewall rule applies only to
      +   * traffic that has a destination IP address in these ranges. These ranges
      +   * must be expressed in CIDR format. Only supports IPv4.
      +   * 
      + * + * repeated string destination_ip_ranges = 5; + * + * @return The count of destinationIpRanges. + */ + public int getDestinationIpRangesCount() { + return destinationIpRanges_.size(); + } + + /** + * + * + *
      +   * If destination IP ranges are specified, the firewall rule applies only to
      +   * traffic that has a destination IP address in these ranges. These ranges
      +   * must be expressed in CIDR format. Only supports IPv4.
      +   * 
      + * + * repeated string destination_ip_ranges = 5; + * + * @param index The index of the element to return. + * @return The destinationIpRanges at the given index. + */ + public java.lang.String getDestinationIpRanges(int index) { + return destinationIpRanges_.get(index); + } + + /** + * + * + *
      +   * If destination IP ranges are specified, the firewall rule applies only to
      +   * traffic that has a destination IP address in these ranges. These ranges
      +   * must be expressed in CIDR format. Only supports IPv4.
      +   * 
      + * + * repeated string destination_ip_ranges = 5; + * + * @param index The index of the value to return. + * @return The bytes of the destinationIpRanges at the given index. + */ + public com.google.protobuf.ByteString getDestinationIpRangesBytes(int index) { + return destinationIpRanges_.getByteString(index); + } + + public static final int EXPOSED_SERVICES_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList exposedServices_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
      +   * Name of the network protocol service, such as FTP, that is exposed by the
      +   * open port. Follows the naming convention available at:
      +   * https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml.
      +   * 
      + * + * repeated string exposed_services = 6; + * + * @return A list containing the exposedServices. + */ + public com.google.protobuf.ProtocolStringList getExposedServicesList() { + return exposedServices_; + } + + /** + * + * + *
      +   * Name of the network protocol service, such as FTP, that is exposed by the
      +   * open port. Follows the naming convention available at:
      +   * https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml.
      +   * 
      + * + * repeated string exposed_services = 6; + * + * @return The count of exposedServices. + */ + public int getExposedServicesCount() { + return exposedServices_.size(); + } + + /** + * + * + *
      +   * Name of the network protocol service, such as FTP, that is exposed by the
      +   * open port. Follows the naming convention available at:
      +   * https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml.
      +   * 
      + * + * repeated string exposed_services = 6; + * + * @param index The index of the element to return. + * @return The exposedServices at the given index. + */ + public java.lang.String getExposedServices(int index) { + return exposedServices_.get(index); + } + + /** + * + * + *
      +   * Name of the network protocol service, such as FTP, that is exposed by the
      +   * open port. Follows the naming convention available at:
      +   * https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml.
      +   * 
      + * + * repeated string exposed_services = 6; + * + * @param index The index of the value to return. + * @return The bytes of the exposedServices at the given index. + */ + public com.google.protobuf.ByteString getExposedServicesBytes(int index) { + return exposedServices_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (direction_ + != com.google.cloud.securitycenter.v2.IpRules.Direction.DIRECTION_UNSPECIFIED.getNumber()) { + output.writeEnum(1, direction_); + } + if (rulesCase_ == 2) { + output.writeMessage(2, (com.google.cloud.securitycenter.v2.Allowed) rules_); + } + if (rulesCase_ == 3) { + output.writeMessage(3, (com.google.cloud.securitycenter.v2.Denied) rules_); + } + for (int i = 0; i < sourceIpRanges_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, sourceIpRanges_.getRaw(i)); + } + for (int i = 0; i < destinationIpRanges_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, destinationIpRanges_.getRaw(i)); + } + for (int i = 0; i < exposedServices_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, exposedServices_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (direction_ + != com.google.cloud.securitycenter.v2.IpRules.Direction.DIRECTION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, direction_); + } + if (rulesCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.securitycenter.v2.Allowed) rules_); + } + if (rulesCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.securitycenter.v2.Denied) rules_); + } + { + int dataSize = 0; + for (int i = 0; i < sourceIpRanges_.size(); i++) { + dataSize += computeStringSizeNoTag(sourceIpRanges_.getRaw(i)); + } + size += dataSize; + size += 1 * getSourceIpRangesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < destinationIpRanges_.size(); i++) { + dataSize += computeStringSizeNoTag(destinationIpRanges_.getRaw(i)); + } + size += dataSize; + size += 1 * getDestinationIpRangesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < exposedServices_.size(); i++) { + dataSize += computeStringSizeNoTag(exposedServices_.getRaw(i)); + } + size += dataSize; + size += 1 * getExposedServicesList().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.cloud.securitycenter.v2.IpRules)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v2.IpRules other = + (com.google.cloud.securitycenter.v2.IpRules) obj; + + if (direction_ != other.direction_) return false; + if (!getSourceIpRangesList().equals(other.getSourceIpRangesList())) return false; + if (!getDestinationIpRangesList().equals(other.getDestinationIpRangesList())) return false; + if (!getExposedServicesList().equals(other.getExposedServicesList())) return false; + if (!getRulesCase().equals(other.getRulesCase())) return false; + switch (rulesCase_) { + case 2: + if (!getAllowed().equals(other.getAllowed())) return false; + break; + case 3: + if (!getDenied().equals(other.getDenied())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DIRECTION_FIELD_NUMBER; + hash = (53 * hash) + direction_; + if (getSourceIpRangesCount() > 0) { + hash = (37 * hash) + SOURCE_IP_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getSourceIpRangesList().hashCode(); + } + if (getDestinationIpRangesCount() > 0) { + hash = (37 * hash) + DESTINATION_IP_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getDestinationIpRangesList().hashCode(); + } + if (getExposedServicesCount() > 0) { + hash = (37 * hash) + EXPOSED_SERVICES_FIELD_NUMBER; + hash = (53 * hash) + getExposedServicesList().hashCode(); + } + switch (rulesCase_) { + case 2: + hash = (37 * hash) + ALLOWED_FIELD_NUMBER; + hash = (53 * hash) + getAllowed().hashCode(); + break; + case 3: + hash = (37 * hash) + DENIED_FIELD_NUMBER; + hash = (53 * hash) + getDenied().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v2.IpRules parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.IpRules parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.IpRules parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.IpRules parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.IpRules parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.IpRules parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.IpRules parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.IpRules parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.IpRules parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.IpRules parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.IpRules parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.IpRules parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.securitycenter.v2.IpRules prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * IP rules associated with the finding.
      +   * 
      + * + * Protobuf type {@code google.cloud.securitycenter.v2.IpRules} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v2.IpRules) + com.google.cloud.securitycenter.v2.IpRulesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v2.IpRulesProto + .internal_static_google_cloud_securitycenter_v2_IpRules_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v2.IpRulesProto + .internal_static_google_cloud_securitycenter_v2_IpRules_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v2.IpRules.class, + com.google.cloud.securitycenter.v2.IpRules.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v2.IpRules.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + direction_ = 0; + if (allowedBuilder_ != null) { + allowedBuilder_.clear(); + } + if (deniedBuilder_ != null) { + deniedBuilder_.clear(); + } + sourceIpRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + destinationIpRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + exposedServices_ = com.google.protobuf.LazyStringArrayList.emptyList(); + rulesCase_ = 0; + rules_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v2.IpRulesProto + .internal_static_google_cloud_securitycenter_v2_IpRules_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.IpRules getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v2.IpRules.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.IpRules build() { + com.google.cloud.securitycenter.v2.IpRules result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.IpRules buildPartial() { + com.google.cloud.securitycenter.v2.IpRules result = + new com.google.cloud.securitycenter.v2.IpRules(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.securitycenter.v2.IpRules result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.direction_ = direction_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + sourceIpRanges_.makeImmutable(); + result.sourceIpRanges_ = sourceIpRanges_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + destinationIpRanges_.makeImmutable(); + result.destinationIpRanges_ = destinationIpRanges_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + exposedServices_.makeImmutable(); + result.exposedServices_ = exposedServices_; + } + } + + private void buildPartialOneofs(com.google.cloud.securitycenter.v2.IpRules result) { + result.rulesCase_ = rulesCase_; + result.rules_ = this.rules_; + if (rulesCase_ == 2 && allowedBuilder_ != null) { + result.rules_ = allowedBuilder_.build(); + } + if (rulesCase_ == 3 && deniedBuilder_ != null) { + result.rules_ = deniedBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v2.IpRules) { + return mergeFrom((com.google.cloud.securitycenter.v2.IpRules) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v2.IpRules other) { + if (other == com.google.cloud.securitycenter.v2.IpRules.getDefaultInstance()) return this; + if (other.direction_ != 0) { + setDirectionValue(other.getDirectionValue()); + } + if (!other.sourceIpRanges_.isEmpty()) { + if (sourceIpRanges_.isEmpty()) { + sourceIpRanges_ = other.sourceIpRanges_; + bitField0_ |= 0x00000008; + } else { + ensureSourceIpRangesIsMutable(); + sourceIpRanges_.addAll(other.sourceIpRanges_); + } + onChanged(); + } + if (!other.destinationIpRanges_.isEmpty()) { + if (destinationIpRanges_.isEmpty()) { + destinationIpRanges_ = other.destinationIpRanges_; + bitField0_ |= 0x00000010; + } else { + ensureDestinationIpRangesIsMutable(); + destinationIpRanges_.addAll(other.destinationIpRanges_); + } + onChanged(); + } + if (!other.exposedServices_.isEmpty()) { + if (exposedServices_.isEmpty()) { + exposedServices_ = other.exposedServices_; + bitField0_ |= 0x00000020; + } else { + ensureExposedServicesIsMutable(); + exposedServices_.addAll(other.exposedServices_); + } + onChanged(); + } + switch (other.getRulesCase()) { + case ALLOWED: + { + mergeAllowed(other.getAllowed()); + break; + } + case DENIED: + { + mergeDenied(other.getDenied()); + break; + } + case RULES_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + direction_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage(getAllowedFieldBuilder().getBuilder(), extensionRegistry); + rulesCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getDeniedFieldBuilder().getBuilder(), extensionRegistry); + rulesCase_ = 3; + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureSourceIpRangesIsMutable(); + sourceIpRanges_.add(s); + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureDestinationIpRangesIsMutable(); + destinationIpRanges_.add(s); + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureExposedServicesIsMutable(); + exposedServices_.add(s); + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int rulesCase_ = 0; + private java.lang.Object rules_; + + public RulesCase getRulesCase() { + return RulesCase.forNumber(rulesCase_); + } + + public Builder clearRules() { + rulesCase_ = 0; + rules_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private int direction_ = 0; + + /** + * + * + *
      +     * The direction that the rule is applicable to, one of ingress or egress.
      +     * 
      + * + * .google.cloud.securitycenter.v2.IpRules.Direction direction = 1; + * + * @return The enum numeric value on the wire for direction. + */ + @java.lang.Override + public int getDirectionValue() { + return direction_; + } + + /** + * + * + *
      +     * The direction that the rule is applicable to, one of ingress or egress.
      +     * 
      + * + * .google.cloud.securitycenter.v2.IpRules.Direction direction = 1; + * + * @param value The enum numeric value on the wire for direction to set. + * @return This builder for chaining. + */ + public Builder setDirectionValue(int value) { + direction_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The direction that the rule is applicable to, one of ingress or egress.
      +     * 
      + * + * .google.cloud.securitycenter.v2.IpRules.Direction direction = 1; + * + * @return The direction. + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.IpRules.Direction getDirection() { + com.google.cloud.securitycenter.v2.IpRules.Direction result = + com.google.cloud.securitycenter.v2.IpRules.Direction.forNumber(direction_); + return result == null + ? com.google.cloud.securitycenter.v2.IpRules.Direction.UNRECOGNIZED + : result; + } + + /** + * + * + *
      +     * The direction that the rule is applicable to, one of ingress or egress.
      +     * 
      + * + * .google.cloud.securitycenter.v2.IpRules.Direction direction = 1; + * + * @param value The direction to set. + * @return This builder for chaining. + */ + public Builder setDirection(com.google.cloud.securitycenter.v2.IpRules.Direction value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + direction_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * The direction that the rule is applicable to, one of ingress or egress.
      +     * 
      + * + * .google.cloud.securitycenter.v2.IpRules.Direction direction = 1; + * + * @return This builder for chaining. + */ + public Builder clearDirection() { + bitField0_ = (bitField0_ & ~0x00000001); + direction_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v2.Allowed, + com.google.cloud.securitycenter.v2.Allowed.Builder, + com.google.cloud.securitycenter.v2.AllowedOrBuilder> + allowedBuilder_; + + /** + * + * + *
      +     * Tuple with allowed rules.
      +     * 
      + * + * .google.cloud.securitycenter.v2.Allowed allowed = 2; + * + * @return Whether the allowed field is set. + */ + @java.lang.Override + public boolean hasAllowed() { + return rulesCase_ == 2; + } + + /** + * + * + *
      +     * Tuple with allowed rules.
      +     * 
      + * + * .google.cloud.securitycenter.v2.Allowed allowed = 2; + * + * @return The allowed. + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.Allowed getAllowed() { + if (allowedBuilder_ == null) { + if (rulesCase_ == 2) { + return (com.google.cloud.securitycenter.v2.Allowed) rules_; + } + return com.google.cloud.securitycenter.v2.Allowed.getDefaultInstance(); + } else { + if (rulesCase_ == 2) { + return allowedBuilder_.getMessage(); + } + return com.google.cloud.securitycenter.v2.Allowed.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Tuple with allowed rules.
      +     * 
      + * + * .google.cloud.securitycenter.v2.Allowed allowed = 2; + */ + public Builder setAllowed(com.google.cloud.securitycenter.v2.Allowed value) { + if (allowedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rules_ = value; + onChanged(); + } else { + allowedBuilder_.setMessage(value); + } + rulesCase_ = 2; + return this; + } + + /** + * + * + *
      +     * Tuple with allowed rules.
      +     * 
      + * + * .google.cloud.securitycenter.v2.Allowed allowed = 2; + */ + public Builder setAllowed(com.google.cloud.securitycenter.v2.Allowed.Builder builderForValue) { + if (allowedBuilder_ == null) { + rules_ = builderForValue.build(); + onChanged(); + } else { + allowedBuilder_.setMessage(builderForValue.build()); + } + rulesCase_ = 2; + return this; + } + + /** + * + * + *
      +     * Tuple with allowed rules.
      +     * 
      + * + * .google.cloud.securitycenter.v2.Allowed allowed = 2; + */ + public Builder mergeAllowed(com.google.cloud.securitycenter.v2.Allowed value) { + if (allowedBuilder_ == null) { + if (rulesCase_ == 2 + && rules_ != com.google.cloud.securitycenter.v2.Allowed.getDefaultInstance()) { + rules_ = + com.google.cloud.securitycenter.v2.Allowed.newBuilder( + (com.google.cloud.securitycenter.v2.Allowed) rules_) + .mergeFrom(value) + .buildPartial(); + } else { + rules_ = value; + } + onChanged(); + } else { + if (rulesCase_ == 2) { + allowedBuilder_.mergeFrom(value); + } else { + allowedBuilder_.setMessage(value); + } + } + rulesCase_ = 2; + return this; + } + + /** + * + * + *
      +     * Tuple with allowed rules.
      +     * 
      + * + * .google.cloud.securitycenter.v2.Allowed allowed = 2; + */ + public Builder clearAllowed() { + if (allowedBuilder_ == null) { + if (rulesCase_ == 2) { + rulesCase_ = 0; + rules_ = null; + onChanged(); + } + } else { + if (rulesCase_ == 2) { + rulesCase_ = 0; + rules_ = null; + } + allowedBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Tuple with allowed rules.
      +     * 
      + * + * .google.cloud.securitycenter.v2.Allowed allowed = 2; + */ + public com.google.cloud.securitycenter.v2.Allowed.Builder getAllowedBuilder() { + return getAllowedFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Tuple with allowed rules.
      +     * 
      + * + * .google.cloud.securitycenter.v2.Allowed allowed = 2; + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.AllowedOrBuilder getAllowedOrBuilder() { + if ((rulesCase_ == 2) && (allowedBuilder_ != null)) { + return allowedBuilder_.getMessageOrBuilder(); + } else { + if (rulesCase_ == 2) { + return (com.google.cloud.securitycenter.v2.Allowed) rules_; + } + return com.google.cloud.securitycenter.v2.Allowed.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Tuple with allowed rules.
      +     * 
      + * + * .google.cloud.securitycenter.v2.Allowed allowed = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v2.Allowed, + com.google.cloud.securitycenter.v2.Allowed.Builder, + com.google.cloud.securitycenter.v2.AllowedOrBuilder> + getAllowedFieldBuilder() { + if (allowedBuilder_ == null) { + if (!(rulesCase_ == 2)) { + rules_ = com.google.cloud.securitycenter.v2.Allowed.getDefaultInstance(); + } + allowedBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v2.Allowed, + com.google.cloud.securitycenter.v2.Allowed.Builder, + com.google.cloud.securitycenter.v2.AllowedOrBuilder>( + (com.google.cloud.securitycenter.v2.Allowed) rules_, + getParentForChildren(), + isClean()); + rules_ = null; + } + rulesCase_ = 2; + onChanged(); + return allowedBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v2.Denied, + com.google.cloud.securitycenter.v2.Denied.Builder, + com.google.cloud.securitycenter.v2.DeniedOrBuilder> + deniedBuilder_; + + /** + * + * + *
      +     * Tuple with denied rules.
      +     * 
      + * + * .google.cloud.securitycenter.v2.Denied denied = 3; + * + * @return Whether the denied field is set. + */ + @java.lang.Override + public boolean hasDenied() { + return rulesCase_ == 3; + } + + /** + * + * + *
      +     * Tuple with denied rules.
      +     * 
      + * + * .google.cloud.securitycenter.v2.Denied denied = 3; + * + * @return The denied. + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.Denied getDenied() { + if (deniedBuilder_ == null) { + if (rulesCase_ == 3) { + return (com.google.cloud.securitycenter.v2.Denied) rules_; + } + return com.google.cloud.securitycenter.v2.Denied.getDefaultInstance(); + } else { + if (rulesCase_ == 3) { + return deniedBuilder_.getMessage(); + } + return com.google.cloud.securitycenter.v2.Denied.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Tuple with denied rules.
      +     * 
      + * + * .google.cloud.securitycenter.v2.Denied denied = 3; + */ + public Builder setDenied(com.google.cloud.securitycenter.v2.Denied value) { + if (deniedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rules_ = value; + onChanged(); + } else { + deniedBuilder_.setMessage(value); + } + rulesCase_ = 3; + return this; + } + + /** + * + * + *
      +     * Tuple with denied rules.
      +     * 
      + * + * .google.cloud.securitycenter.v2.Denied denied = 3; + */ + public Builder setDenied(com.google.cloud.securitycenter.v2.Denied.Builder builderForValue) { + if (deniedBuilder_ == null) { + rules_ = builderForValue.build(); + onChanged(); + } else { + deniedBuilder_.setMessage(builderForValue.build()); + } + rulesCase_ = 3; + return this; + } + + /** + * + * + *
      +     * Tuple with denied rules.
      +     * 
      + * + * .google.cloud.securitycenter.v2.Denied denied = 3; + */ + public Builder mergeDenied(com.google.cloud.securitycenter.v2.Denied value) { + if (deniedBuilder_ == null) { + if (rulesCase_ == 3 + && rules_ != com.google.cloud.securitycenter.v2.Denied.getDefaultInstance()) { + rules_ = + com.google.cloud.securitycenter.v2.Denied.newBuilder( + (com.google.cloud.securitycenter.v2.Denied) rules_) + .mergeFrom(value) + .buildPartial(); + } else { + rules_ = value; + } + onChanged(); + } else { + if (rulesCase_ == 3) { + deniedBuilder_.mergeFrom(value); + } else { + deniedBuilder_.setMessage(value); + } + } + rulesCase_ = 3; + return this; + } + + /** + * + * + *
      +     * Tuple with denied rules.
      +     * 
      + * + * .google.cloud.securitycenter.v2.Denied denied = 3; + */ + public Builder clearDenied() { + if (deniedBuilder_ == null) { + if (rulesCase_ == 3) { + rulesCase_ = 0; + rules_ = null; + onChanged(); + } + } else { + if (rulesCase_ == 3) { + rulesCase_ = 0; + rules_ = null; + } + deniedBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Tuple with denied rules.
      +     * 
      + * + * .google.cloud.securitycenter.v2.Denied denied = 3; + */ + public com.google.cloud.securitycenter.v2.Denied.Builder getDeniedBuilder() { + return getDeniedFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Tuple with denied rules.
      +     * 
      + * + * .google.cloud.securitycenter.v2.Denied denied = 3; + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.DeniedOrBuilder getDeniedOrBuilder() { + if ((rulesCase_ == 3) && (deniedBuilder_ != null)) { + return deniedBuilder_.getMessageOrBuilder(); + } else { + if (rulesCase_ == 3) { + return (com.google.cloud.securitycenter.v2.Denied) rules_; + } + return com.google.cloud.securitycenter.v2.Denied.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Tuple with denied rules.
      +     * 
      + * + * .google.cloud.securitycenter.v2.Denied denied = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v2.Denied, + com.google.cloud.securitycenter.v2.Denied.Builder, + com.google.cloud.securitycenter.v2.DeniedOrBuilder> + getDeniedFieldBuilder() { + if (deniedBuilder_ == null) { + if (!(rulesCase_ == 3)) { + rules_ = com.google.cloud.securitycenter.v2.Denied.getDefaultInstance(); + } + deniedBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v2.Denied, + com.google.cloud.securitycenter.v2.Denied.Builder, + com.google.cloud.securitycenter.v2.DeniedOrBuilder>( + (com.google.cloud.securitycenter.v2.Denied) rules_, + getParentForChildren(), + isClean()); + rules_ = null; + } + rulesCase_ = 3; + onChanged(); + return deniedBuilder_; + } + + private com.google.protobuf.LazyStringArrayList sourceIpRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureSourceIpRangesIsMutable() { + if (!sourceIpRanges_.isModifiable()) { + sourceIpRanges_ = new com.google.protobuf.LazyStringArrayList(sourceIpRanges_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
      +     * If source IP ranges are specified, the firewall rule applies only to
      +     * traffic that has a source IP address in these ranges. These ranges must be
      +     * expressed in CIDR format. Only supports IPv4.
      +     * 
      + * + * repeated string source_ip_ranges = 4; + * + * @return A list containing the sourceIpRanges. + */ + public com.google.protobuf.ProtocolStringList getSourceIpRangesList() { + sourceIpRanges_.makeImmutable(); + return sourceIpRanges_; + } + + /** + * + * + *
      +     * If source IP ranges are specified, the firewall rule applies only to
      +     * traffic that has a source IP address in these ranges. These ranges must be
      +     * expressed in CIDR format. Only supports IPv4.
      +     * 
      + * + * repeated string source_ip_ranges = 4; + * + * @return The count of sourceIpRanges. + */ + public int getSourceIpRangesCount() { + return sourceIpRanges_.size(); + } + + /** + * + * + *
      +     * If source IP ranges are specified, the firewall rule applies only to
      +     * traffic that has a source IP address in these ranges. These ranges must be
      +     * expressed in CIDR format. Only supports IPv4.
      +     * 
      + * + * repeated string source_ip_ranges = 4; + * + * @param index The index of the element to return. + * @return The sourceIpRanges at the given index. + */ + public java.lang.String getSourceIpRanges(int index) { + return sourceIpRanges_.get(index); + } + + /** + * + * + *
      +     * If source IP ranges are specified, the firewall rule applies only to
      +     * traffic that has a source IP address in these ranges. These ranges must be
      +     * expressed in CIDR format. Only supports IPv4.
      +     * 
      + * + * repeated string source_ip_ranges = 4; + * + * @param index The index of the value to return. + * @return The bytes of the sourceIpRanges at the given index. + */ + public com.google.protobuf.ByteString getSourceIpRangesBytes(int index) { + return sourceIpRanges_.getByteString(index); + } + + /** + * + * + *
      +     * If source IP ranges are specified, the firewall rule applies only to
      +     * traffic that has a source IP address in these ranges. These ranges must be
      +     * expressed in CIDR format. Only supports IPv4.
      +     * 
      + * + * repeated string source_ip_ranges = 4; + * + * @param index The index to set the value at. + * @param value The sourceIpRanges to set. + * @return This builder for chaining. + */ + public Builder setSourceIpRanges(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourceIpRangesIsMutable(); + sourceIpRanges_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * If source IP ranges are specified, the firewall rule applies only to
      +     * traffic that has a source IP address in these ranges. These ranges must be
      +     * expressed in CIDR format. Only supports IPv4.
      +     * 
      + * + * repeated string source_ip_ranges = 4; + * + * @param value The sourceIpRanges to add. + * @return This builder for chaining. + */ + public Builder addSourceIpRanges(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourceIpRangesIsMutable(); + sourceIpRanges_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * If source IP ranges are specified, the firewall rule applies only to
      +     * traffic that has a source IP address in these ranges. These ranges must be
      +     * expressed in CIDR format. Only supports IPv4.
      +     * 
      + * + * repeated string source_ip_ranges = 4; + * + * @param values The sourceIpRanges to add. + * @return This builder for chaining. + */ + public Builder addAllSourceIpRanges(java.lang.Iterable values) { + ensureSourceIpRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sourceIpRanges_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * If source IP ranges are specified, the firewall rule applies only to
      +     * traffic that has a source IP address in these ranges. These ranges must be
      +     * expressed in CIDR format. Only supports IPv4.
      +     * 
      + * + * repeated string source_ip_ranges = 4; + * + * @return This builder for chaining. + */ + public Builder clearSourceIpRanges() { + sourceIpRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + + /** + * + * + *
      +     * If source IP ranges are specified, the firewall rule applies only to
      +     * traffic that has a source IP address in these ranges. These ranges must be
      +     * expressed in CIDR format. Only supports IPv4.
      +     * 
      + * + * repeated string source_ip_ranges = 4; + * + * @param value The bytes of the sourceIpRanges to add. + * @return This builder for chaining. + */ + public Builder addSourceIpRangesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSourceIpRangesIsMutable(); + sourceIpRanges_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList destinationIpRanges_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureDestinationIpRangesIsMutable() { + if (!destinationIpRanges_.isModifiable()) { + destinationIpRanges_ = new com.google.protobuf.LazyStringArrayList(destinationIpRanges_); + } + bitField0_ |= 0x00000010; + } + + /** + * + * + *
      +     * If destination IP ranges are specified, the firewall rule applies only to
      +     * traffic that has a destination IP address in these ranges. These ranges
      +     * must be expressed in CIDR format. Only supports IPv4.
      +     * 
      + * + * repeated string destination_ip_ranges = 5; + * + * @return A list containing the destinationIpRanges. + */ + public com.google.protobuf.ProtocolStringList getDestinationIpRangesList() { + destinationIpRanges_.makeImmutable(); + return destinationIpRanges_; + } + + /** + * + * + *
      +     * If destination IP ranges are specified, the firewall rule applies only to
      +     * traffic that has a destination IP address in these ranges. These ranges
      +     * must be expressed in CIDR format. Only supports IPv4.
      +     * 
      + * + * repeated string destination_ip_ranges = 5; + * + * @return The count of destinationIpRanges. + */ + public int getDestinationIpRangesCount() { + return destinationIpRanges_.size(); + } + + /** + * + * + *
      +     * If destination IP ranges are specified, the firewall rule applies only to
      +     * traffic that has a destination IP address in these ranges. These ranges
      +     * must be expressed in CIDR format. Only supports IPv4.
      +     * 
      + * + * repeated string destination_ip_ranges = 5; + * + * @param index The index of the element to return. + * @return The destinationIpRanges at the given index. + */ + public java.lang.String getDestinationIpRanges(int index) { + return destinationIpRanges_.get(index); + } + + /** + * + * + *
      +     * If destination IP ranges are specified, the firewall rule applies only to
      +     * traffic that has a destination IP address in these ranges. These ranges
      +     * must be expressed in CIDR format. Only supports IPv4.
      +     * 
      + * + * repeated string destination_ip_ranges = 5; + * + * @param index The index of the value to return. + * @return The bytes of the destinationIpRanges at the given index. + */ + public com.google.protobuf.ByteString getDestinationIpRangesBytes(int index) { + return destinationIpRanges_.getByteString(index); + } + + /** + * + * + *
      +     * If destination IP ranges are specified, the firewall rule applies only to
      +     * traffic that has a destination IP address in these ranges. These ranges
      +     * must be expressed in CIDR format. Only supports IPv4.
      +     * 
      + * + * repeated string destination_ip_ranges = 5; + * + * @param index The index to set the value at. + * @param value The destinationIpRanges to set. + * @return This builder for chaining. + */ + public Builder setDestinationIpRanges(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDestinationIpRangesIsMutable(); + destinationIpRanges_.set(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * If destination IP ranges are specified, the firewall rule applies only to
      +     * traffic that has a destination IP address in these ranges. These ranges
      +     * must be expressed in CIDR format. Only supports IPv4.
      +     * 
      + * + * repeated string destination_ip_ranges = 5; + * + * @param value The destinationIpRanges to add. + * @return This builder for chaining. + */ + public Builder addDestinationIpRanges(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDestinationIpRangesIsMutable(); + destinationIpRanges_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * If destination IP ranges are specified, the firewall rule applies only to
      +     * traffic that has a destination IP address in these ranges. These ranges
      +     * must be expressed in CIDR format. Only supports IPv4.
      +     * 
      + * + * repeated string destination_ip_ranges = 5; + * + * @param values The destinationIpRanges to add. + * @return This builder for chaining. + */ + public Builder addAllDestinationIpRanges(java.lang.Iterable values) { + ensureDestinationIpRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, destinationIpRanges_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * If destination IP ranges are specified, the firewall rule applies only to
      +     * traffic that has a destination IP address in these ranges. These ranges
      +     * must be expressed in CIDR format. Only supports IPv4.
      +     * 
      + * + * repeated string destination_ip_ranges = 5; + * + * @return This builder for chaining. + */ + public Builder clearDestinationIpRanges() { + destinationIpRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + ; + onChanged(); + return this; + } + + /** + * + * + *
      +     * If destination IP ranges are specified, the firewall rule applies only to
      +     * traffic that has a destination IP address in these ranges. These ranges
      +     * must be expressed in CIDR format. Only supports IPv4.
      +     * 
      + * + * repeated string destination_ip_ranges = 5; + * + * @param value The bytes of the destinationIpRanges to add. + * @return This builder for chaining. + */ + public Builder addDestinationIpRangesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureDestinationIpRangesIsMutable(); + destinationIpRanges_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList exposedServices_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureExposedServicesIsMutable() { + if (!exposedServices_.isModifiable()) { + exposedServices_ = new com.google.protobuf.LazyStringArrayList(exposedServices_); + } + bitField0_ |= 0x00000020; + } + + /** + * + * + *
      +     * Name of the network protocol service, such as FTP, that is exposed by the
      +     * open port. Follows the naming convention available at:
      +     * https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml.
      +     * 
      + * + * repeated string exposed_services = 6; + * + * @return A list containing the exposedServices. + */ + public com.google.protobuf.ProtocolStringList getExposedServicesList() { + exposedServices_.makeImmutable(); + return exposedServices_; + } + + /** + * + * + *
      +     * Name of the network protocol service, such as FTP, that is exposed by the
      +     * open port. Follows the naming convention available at:
      +     * https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml.
      +     * 
      + * + * repeated string exposed_services = 6; + * + * @return The count of exposedServices. + */ + public int getExposedServicesCount() { + return exposedServices_.size(); + } + + /** + * + * + *
      +     * Name of the network protocol service, such as FTP, that is exposed by the
      +     * open port. Follows the naming convention available at:
      +     * https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml.
      +     * 
      + * + * repeated string exposed_services = 6; + * + * @param index The index of the element to return. + * @return The exposedServices at the given index. + */ + public java.lang.String getExposedServices(int index) { + return exposedServices_.get(index); + } + + /** + * + * + *
      +     * Name of the network protocol service, such as FTP, that is exposed by the
      +     * open port. Follows the naming convention available at:
      +     * https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml.
      +     * 
      + * + * repeated string exposed_services = 6; + * + * @param index The index of the value to return. + * @return The bytes of the exposedServices at the given index. + */ + public com.google.protobuf.ByteString getExposedServicesBytes(int index) { + return exposedServices_.getByteString(index); + } + + /** + * + * + *
      +     * Name of the network protocol service, such as FTP, that is exposed by the
      +     * open port. Follows the naming convention available at:
      +     * https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml.
      +     * 
      + * + * repeated string exposed_services = 6; + * + * @param index The index to set the value at. + * @param value The exposedServices to set. + * @return This builder for chaining. + */ + public Builder setExposedServices(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExposedServicesIsMutable(); + exposedServices_.set(index, value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Name of the network protocol service, such as FTP, that is exposed by the
      +     * open port. Follows the naming convention available at:
      +     * https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml.
      +     * 
      + * + * repeated string exposed_services = 6; + * + * @param value The exposedServices to add. + * @return This builder for chaining. + */ + public Builder addExposedServices(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExposedServicesIsMutable(); + exposedServices_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Name of the network protocol service, such as FTP, that is exposed by the
      +     * open port. Follows the naming convention available at:
      +     * https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml.
      +     * 
      + * + * repeated string exposed_services = 6; + * + * @param values The exposedServices to add. + * @return This builder for chaining. + */ + public Builder addAllExposedServices(java.lang.Iterable values) { + ensureExposedServicesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exposedServices_); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Name of the network protocol service, such as FTP, that is exposed by the
      +     * open port. Follows the naming convention available at:
      +     * https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml.
      +     * 
      + * + * repeated string exposed_services = 6; + * + * @return This builder for chaining. + */ + public Builder clearExposedServices() { + exposedServices_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + ; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Name of the network protocol service, such as FTP, that is exposed by the
      +     * open port. Follows the naming convention available at:
      +     * https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml.
      +     * 
      + * + * repeated string exposed_services = 6; + * + * @param value The bytes of the exposedServices to add. + * @return This builder for chaining. + */ + public Builder addExposedServicesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureExposedServicesIsMutable(); + exposedServices_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v2.IpRules) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v2.IpRules) + private static final com.google.cloud.securitycenter.v2.IpRules DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v2.IpRules(); + } + + public static com.google.cloud.securitycenter.v2.IpRules getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IpRules parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.IpRules getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/IpRulesOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/IpRulesOrBuilder.java new file mode 100644 index 000000000000..eeb35c8b52b2 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/IpRulesOrBuilder.java @@ -0,0 +1,314 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v2/ip_rules.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.securitycenter.v2; + +public interface IpRulesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v2.IpRules) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * The direction that the rule is applicable to, one of ingress or egress.
      +   * 
      + * + * .google.cloud.securitycenter.v2.IpRules.Direction direction = 1; + * + * @return The enum numeric value on the wire for direction. + */ + int getDirectionValue(); + + /** + * + * + *
      +   * The direction that the rule is applicable to, one of ingress or egress.
      +   * 
      + * + * .google.cloud.securitycenter.v2.IpRules.Direction direction = 1; + * + * @return The direction. + */ + com.google.cloud.securitycenter.v2.IpRules.Direction getDirection(); + + /** + * + * + *
      +   * Tuple with allowed rules.
      +   * 
      + * + * .google.cloud.securitycenter.v2.Allowed allowed = 2; + * + * @return Whether the allowed field is set. + */ + boolean hasAllowed(); + + /** + * + * + *
      +   * Tuple with allowed rules.
      +   * 
      + * + * .google.cloud.securitycenter.v2.Allowed allowed = 2; + * + * @return The allowed. + */ + com.google.cloud.securitycenter.v2.Allowed getAllowed(); + + /** + * + * + *
      +   * Tuple with allowed rules.
      +   * 
      + * + * .google.cloud.securitycenter.v2.Allowed allowed = 2; + */ + com.google.cloud.securitycenter.v2.AllowedOrBuilder getAllowedOrBuilder(); + + /** + * + * + *
      +   * Tuple with denied rules.
      +   * 
      + * + * .google.cloud.securitycenter.v2.Denied denied = 3; + * + * @return Whether the denied field is set. + */ + boolean hasDenied(); + + /** + * + * + *
      +   * Tuple with denied rules.
      +   * 
      + * + * .google.cloud.securitycenter.v2.Denied denied = 3; + * + * @return The denied. + */ + com.google.cloud.securitycenter.v2.Denied getDenied(); + + /** + * + * + *
      +   * Tuple with denied rules.
      +   * 
      + * + * .google.cloud.securitycenter.v2.Denied denied = 3; + */ + com.google.cloud.securitycenter.v2.DeniedOrBuilder getDeniedOrBuilder(); + + /** + * + * + *
      +   * If source IP ranges are specified, the firewall rule applies only to
      +   * traffic that has a source IP address in these ranges. These ranges must be
      +   * expressed in CIDR format. Only supports IPv4.
      +   * 
      + * + * repeated string source_ip_ranges = 4; + * + * @return A list containing the sourceIpRanges. + */ + java.util.List getSourceIpRangesList(); + + /** + * + * + *
      +   * If source IP ranges are specified, the firewall rule applies only to
      +   * traffic that has a source IP address in these ranges. These ranges must be
      +   * expressed in CIDR format. Only supports IPv4.
      +   * 
      + * + * repeated string source_ip_ranges = 4; + * + * @return The count of sourceIpRanges. + */ + int getSourceIpRangesCount(); + + /** + * + * + *
      +   * If source IP ranges are specified, the firewall rule applies only to
      +   * traffic that has a source IP address in these ranges. These ranges must be
      +   * expressed in CIDR format. Only supports IPv4.
      +   * 
      + * + * repeated string source_ip_ranges = 4; + * + * @param index The index of the element to return. + * @return The sourceIpRanges at the given index. + */ + java.lang.String getSourceIpRanges(int index); + + /** + * + * + *
      +   * If source IP ranges are specified, the firewall rule applies only to
      +   * traffic that has a source IP address in these ranges. These ranges must be
      +   * expressed in CIDR format. Only supports IPv4.
      +   * 
      + * + * repeated string source_ip_ranges = 4; + * + * @param index The index of the value to return. + * @return The bytes of the sourceIpRanges at the given index. + */ + com.google.protobuf.ByteString getSourceIpRangesBytes(int index); + + /** + * + * + *
      +   * If destination IP ranges are specified, the firewall rule applies only to
      +   * traffic that has a destination IP address in these ranges. These ranges
      +   * must be expressed in CIDR format. Only supports IPv4.
      +   * 
      + * + * repeated string destination_ip_ranges = 5; + * + * @return A list containing the destinationIpRanges. + */ + java.util.List getDestinationIpRangesList(); + + /** + * + * + *
      +   * If destination IP ranges are specified, the firewall rule applies only to
      +   * traffic that has a destination IP address in these ranges. These ranges
      +   * must be expressed in CIDR format. Only supports IPv4.
      +   * 
      + * + * repeated string destination_ip_ranges = 5; + * + * @return The count of destinationIpRanges. + */ + int getDestinationIpRangesCount(); + + /** + * + * + *
      +   * If destination IP ranges are specified, the firewall rule applies only to
      +   * traffic that has a destination IP address in these ranges. These ranges
      +   * must be expressed in CIDR format. Only supports IPv4.
      +   * 
      + * + * repeated string destination_ip_ranges = 5; + * + * @param index The index of the element to return. + * @return The destinationIpRanges at the given index. + */ + java.lang.String getDestinationIpRanges(int index); + + /** + * + * + *
      +   * If destination IP ranges are specified, the firewall rule applies only to
      +   * traffic that has a destination IP address in these ranges. These ranges
      +   * must be expressed in CIDR format. Only supports IPv4.
      +   * 
      + * + * repeated string destination_ip_ranges = 5; + * + * @param index The index of the value to return. + * @return The bytes of the destinationIpRanges at the given index. + */ + com.google.protobuf.ByteString getDestinationIpRangesBytes(int index); + + /** + * + * + *
      +   * Name of the network protocol service, such as FTP, that is exposed by the
      +   * open port. Follows the naming convention available at:
      +   * https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml.
      +   * 
      + * + * repeated string exposed_services = 6; + * + * @return A list containing the exposedServices. + */ + java.util.List getExposedServicesList(); + + /** + * + * + *
      +   * Name of the network protocol service, such as FTP, that is exposed by the
      +   * open port. Follows the naming convention available at:
      +   * https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml.
      +   * 
      + * + * repeated string exposed_services = 6; + * + * @return The count of exposedServices. + */ + int getExposedServicesCount(); + + /** + * + * + *
      +   * Name of the network protocol service, such as FTP, that is exposed by the
      +   * open port. Follows the naming convention available at:
      +   * https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml.
      +   * 
      + * + * repeated string exposed_services = 6; + * + * @param index The index of the element to return. + * @return The exposedServices at the given index. + */ + java.lang.String getExposedServices(int index); + + /** + * + * + *
      +   * Name of the network protocol service, such as FTP, that is exposed by the
      +   * open port. Follows the naming convention available at:
      +   * https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml.
      +   * 
      + * + * repeated string exposed_services = 6; + * + * @param index The index of the value to return. + * @return The bytes of the exposedServices at the given index. + */ + com.google.protobuf.ByteString getExposedServicesBytes(int index); + + com.google.cloud.securitycenter.v2.IpRules.RulesCase getRulesCase(); +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/IpRulesProto.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/IpRulesProto.java new file mode 100644 index 000000000000..923f77af81ce --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/IpRulesProto.java @@ -0,0 +1,148 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v2/ip_rules.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.securitycenter.v2; + +public final class IpRulesProto { + private IpRulesProto() {} + + 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_cloud_securitycenter_v2_IpRules_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v2_IpRules_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v2_IpRule_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v2_IpRule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v2_IpRule_PortRange_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v2_IpRule_PortRange_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v2_Allowed_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v2_Allowed_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v2_Denied_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v2_Denied_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/cloud/securitycenter/v2/ip_rule" + + "s.proto\022\036google.cloud.securitycenter.v2\032" + + "\037google/api/field_behavior.proto\"\342\002\n\007IpR" + + "ules\022D\n\tdirection\030\001 \001(\01621.google.cloud.s" + + "ecuritycenter.v2.IpRules.Direction\022:\n\007al" + + "lowed\030\002 \001(\0132\'.google.cloud.securitycente" + + "r.v2.AllowedH\000\0228\n\006denied\030\003 \001(\0132&.google." + + "cloud.securitycenter.v2.DeniedH\000\022\030\n\020sour" + + "ce_ip_ranges\030\004 \003(\t\022\035\n\025destination_ip_ran" + + "ges\030\005 \003(\t\022\030\n\020exposed_services\030\006 \003(\t\"?\n\tD" + + "irection\022\031\n\025DIRECTION_UNSPECIFIED\020\000\022\013\n\007I" + + "NGRESS\020\001\022\n\n\006EGRESS\020\002B\007\n\005rules\"\215\001\n\006IpRule" + + "\022\020\n\010protocol\030\001 \001(\t\022J\n\013port_ranges\030\002 \003(\0132" + + "0.google.cloud.securitycenter.v2.IpRule." + + "PortRangeB\003\340A\001\032%\n\tPortRange\022\013\n\003min\030\001 \001(\003" + + "\022\013\n\003max\030\002 \001(\003\"H\n\007Allowed\022=\n\010ip_rules\030\001 \003" + + "(\0132&.google.cloud.securitycenter.v2.IpRu" + + "leB\003\340A\001\"G\n\006Denied\022=\n\010ip_rules\030\001 \003(\0132&.go" + + "ogle.cloud.securitycenter.v2.IpRuleB\003\340A\001" + + "B\346\001\n\"com.google.cloud.securitycenter.v2B" + + "\014IpRulesProtoP\001ZJcloud.google.com/go/sec" + + "uritycenter/apiv2/securitycenterpb;secur" + + "itycenterpb\252\002\036Google.Cloud.SecurityCente" + + "r.V2\312\002\036Google\\Cloud\\SecurityCenter\\V2\352\002!" + + "Google::Cloud::SecurityCenter::V2b\006proto" + + "3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v2_IpRules_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v2_IpRules_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v2_IpRules_descriptor, + new java.lang.String[] { + "Direction", + "Allowed", + "Denied", + "SourceIpRanges", + "DestinationIpRanges", + "ExposedServices", + "Rules", + }); + internal_static_google_cloud_securitycenter_v2_IpRule_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_securitycenter_v2_IpRule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v2_IpRule_descriptor, + new java.lang.String[] { + "Protocol", "PortRanges", + }); + internal_static_google_cloud_securitycenter_v2_IpRule_PortRange_descriptor = + internal_static_google_cloud_securitycenter_v2_IpRule_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_securitycenter_v2_IpRule_PortRange_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v2_IpRule_PortRange_descriptor, + new java.lang.String[] { + "Min", "Max", + }); + internal_static_google_cloud_securitycenter_v2_Allowed_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_securitycenter_v2_Allowed_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v2_Allowed_descriptor, + new java.lang.String[] { + "IpRules", + }); + internal_static_google_cloud_securitycenter_v2_Denied_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_securitycenter_v2_Denied_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v2_Denied_descriptor, + new java.lang.String[] { + "IpRules", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/Job.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/Job.java new file mode 100644 index 000000000000..ba6bd7b11c97 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/Job.java @@ -0,0 +1,1105 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v2/job.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.securitycenter.v2; + +/** + * + * + *
      + * Describes a job
      + * 
      + * + * Protobuf type {@code google.cloud.securitycenter.v2.Job} + */ +public final class Job extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v2.Job) + JobOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Job.newBuilder() to construct. + private Job(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Job() { + name_ = ""; + state_ = 0; + location_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Job(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v2.JobProto + .internal_static_google_cloud_securitycenter_v2_Job_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v2.JobProto + .internal_static_google_cloud_securitycenter_v2_Job_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v2.Job.class, + com.google.cloud.securitycenter.v2.Job.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * The fully-qualified name for a job.
      +   * e.g. `projects/<project_id>/jobs/<job_id>`
      +   * 
      + * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +   * The fully-qualified name for a job.
      +   * e.g. `projects/<project_id>/jobs/<job_id>`
      +   * 
      + * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 2; + private int state_ = 0; + + /** + * + * + *
      +   * Output only. State of the job, such as `RUNNING` or `PENDING`.
      +   * 
      + * + * + * .google.cloud.securitycenter.v2.JobState state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
      +   * Output only. State of the job, such as `RUNNING` or `PENDING`.
      +   * 
      + * + * + * .google.cloud.securitycenter.v2.JobState state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.JobState getState() { + com.google.cloud.securitycenter.v2.JobState result = + com.google.cloud.securitycenter.v2.JobState.forNumber(state_); + return result == null ? com.google.cloud.securitycenter.v2.JobState.UNRECOGNIZED : result; + } + + public static final int ERROR_CODE_FIELD_NUMBER = 3; + private int errorCode_ = 0; + + /** + * + * + *
      +   * Optional. If the job did not complete successfully, this field describes
      +   * why.
      +   * 
      + * + * int32 error_code = 3; + * + * @return The errorCode. + */ + @java.lang.Override + public int getErrorCode() { + return errorCode_; + } + + public static final int LOCATION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object location_ = ""; + + /** + * + * + *
      +   * Optional. Gives the location where the job ran, such as `US` or
      +   * `europe-west1`
      +   * 
      + * + * string location = 4; + * + * @return The location. + */ + @java.lang.Override + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. Gives the location where the job ran, such as `US` or
      +   * `europe-west1`
      +   * 
      + * + * string location = 4; + * + * @return The bytes for location. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (state_ != com.google.cloud.securitycenter.v2.JobState.JOB_STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, state_); + } + if (errorCode_ != 0) { + output.writeInt32(3, errorCode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, location_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (state_ != com.google.cloud.securitycenter.v2.JobState.JOB_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + } + if (errorCode_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, errorCode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, location_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycenter.v2.Job)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v2.Job other = (com.google.cloud.securitycenter.v2.Job) obj; + + if (!getName().equals(other.getName())) return false; + if (state_ != other.state_) return false; + if (getErrorCode() != other.getErrorCode()) return false; + if (!getLocation().equals(other.getLocation())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + ERROR_CODE_FIELD_NUMBER; + hash = (53 * hash) + getErrorCode(); + hash = (37 * hash) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v2.Job parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.Job parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.Job parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.Job parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.Job parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.Job parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.Job parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.Job parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.Job parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.Job parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.Job parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.Job parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.securitycenter.v2.Job prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Describes a job
      +   * 
      + * + * Protobuf type {@code google.cloud.securitycenter.v2.Job} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v2.Job) + com.google.cloud.securitycenter.v2.JobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v2.JobProto + .internal_static_google_cloud_securitycenter_v2_Job_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v2.JobProto + .internal_static_google_cloud_securitycenter_v2_Job_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v2.Job.class, + com.google.cloud.securitycenter.v2.Job.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v2.Job.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + state_ = 0; + errorCode_ = 0; + location_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v2.JobProto + .internal_static_google_cloud_securitycenter_v2_Job_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.Job getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v2.Job.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.Job build() { + com.google.cloud.securitycenter.v2.Job result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.Job buildPartial() { + com.google.cloud.securitycenter.v2.Job result = + new com.google.cloud.securitycenter.v2.Job(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.securitycenter.v2.Job result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.errorCode_ = errorCode_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.location_ = location_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v2.Job) { + return mergeFrom((com.google.cloud.securitycenter.v2.Job) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v2.Job other) { + if (other == com.google.cloud.securitycenter.v2.Job.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.getErrorCode() != 0) { + setErrorCode(other.getErrorCode()); + } + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + errorCode_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + location_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * The fully-qualified name for a job.
      +     * e.g. `projects/<project_id>/jobs/<job_id>`
      +     * 
      + * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * The fully-qualified name for a job.
      +     * e.g. `projects/<project_id>/jobs/<job_id>`
      +     * 
      + * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * The fully-qualified name for a job.
      +     * e.g. `projects/<project_id>/jobs/<job_id>`
      +     * 
      + * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The fully-qualified name for a job.
      +     * e.g. `projects/<project_id>/jobs/<job_id>`
      +     * 
      + * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * The fully-qualified name for a job.
      +     * e.g. `projects/<project_id>/jobs/<job_id>`
      +     * 
      + * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
      +     * Output only. State of the job, such as `RUNNING` or `PENDING`.
      +     * 
      + * + * + * .google.cloud.securitycenter.v2.JobState state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
      +     * Output only. State of the job, such as `RUNNING` or `PENDING`.
      +     * 
      + * + * + * .google.cloud.securitycenter.v2.JobState state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. State of the job, such as `RUNNING` or `PENDING`.
      +     * 
      + * + * + * .google.cloud.securitycenter.v2.JobState state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.JobState getState() { + com.google.cloud.securitycenter.v2.JobState result = + com.google.cloud.securitycenter.v2.JobState.forNumber(state_); + return result == null ? com.google.cloud.securitycenter.v2.JobState.UNRECOGNIZED : result; + } + + /** + * + * + *
      +     * Output only. State of the job, such as `RUNNING` or `PENDING`.
      +     * 
      + * + * + * .google.cloud.securitycenter.v2.JobState state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.securitycenter.v2.JobState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. State of the job, such as `RUNNING` or `PENDING`.
      +     * 
      + * + * + * .google.cloud.securitycenter.v2.JobState state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000002); + state_ = 0; + onChanged(); + return this; + } + + private int errorCode_; + + /** + * + * + *
      +     * Optional. If the job did not complete successfully, this field describes
      +     * why.
      +     * 
      + * + * int32 error_code = 3; + * + * @return The errorCode. + */ + @java.lang.Override + public int getErrorCode() { + return errorCode_; + } + + /** + * + * + *
      +     * Optional. If the job did not complete successfully, this field describes
      +     * why.
      +     * 
      + * + * int32 error_code = 3; + * + * @param value The errorCode to set. + * @return This builder for chaining. + */ + public Builder setErrorCode(int value) { + + errorCode_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. If the job did not complete successfully, this field describes
      +     * why.
      +     * 
      + * + * int32 error_code = 3; + * + * @return This builder for chaining. + */ + public Builder clearErrorCode() { + bitField0_ = (bitField0_ & ~0x00000004); + errorCode_ = 0; + onChanged(); + return this; + } + + private java.lang.Object location_ = ""; + + /** + * + * + *
      +     * Optional. Gives the location where the job ran, such as `US` or
      +     * `europe-west1`
      +     * 
      + * + * string location = 4; + * + * @return The location. + */ + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. Gives the location where the job ran, such as `US` or
      +     * `europe-west1`
      +     * 
      + * + * string location = 4; + * + * @return The bytes for location. + */ + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. Gives the location where the job ran, such as `US` or
      +     * `europe-west1`
      +     * 
      + * + * string location = 4; + * + * @param value The location to set. + * @return This builder for chaining. + */ + public Builder setLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + location_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Gives the location where the job ran, such as `US` or
      +     * `europe-west1`
      +     * 
      + * + * string location = 4; + * + * @return This builder for chaining. + */ + public Builder clearLocation() { + location_ = getDefaultInstance().getLocation(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Gives the location where the job ran, such as `US` or
      +     * `europe-west1`
      +     * 
      + * + * string location = 4; + * + * @param value The bytes for location to set. + * @return This builder for chaining. + */ + public Builder setLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + location_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v2.Job) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v2.Job) + private static final com.google.cloud.securitycenter.v2.Job DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v2.Job(); + } + + public static com.google.cloud.securitycenter.v2.Job getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Job parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.Job getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/JobOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/JobOrBuilder.java new file mode 100644 index 000000000000..f4f38f73e978 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/JobOrBuilder.java @@ -0,0 +1,126 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v2/job.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.securitycenter.v2; + +public interface JobOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v2.Job) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * The fully-qualified name for a job.
      +   * e.g. `projects/<project_id>/jobs/<job_id>`
      +   * 
      + * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * The fully-qualified name for a job.
      +   * e.g. `projects/<project_id>/jobs/<job_id>`
      +   * 
      + * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +   * Output only. State of the job, such as `RUNNING` or `PENDING`.
      +   * 
      + * + * + * .google.cloud.securitycenter.v2.JobState state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
      +   * Output only. State of the job, such as `RUNNING` or `PENDING`.
      +   * 
      + * + * + * .google.cloud.securitycenter.v2.JobState state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.securitycenter.v2.JobState getState(); + + /** + * + * + *
      +   * Optional. If the job did not complete successfully, this field describes
      +   * why.
      +   * 
      + * + * int32 error_code = 3; + * + * @return The errorCode. + */ + int getErrorCode(); + + /** + * + * + *
      +   * Optional. Gives the location where the job ran, such as `US` or
      +   * `europe-west1`
      +   * 
      + * + * string location = 4; + * + * @return The location. + */ + java.lang.String getLocation(); + + /** + * + * + *
      +   * Optional. Gives the location where the job ran, such as `US` or
      +   * `europe-west1`
      +   * 
      + * + * string location = 4; + * + * @return The bytes for location. + */ + com.google.protobuf.ByteString getLocationBytes(); +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/JobProto.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/JobProto.java new file mode 100644 index 000000000000..a3d0b39e40e8 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/JobProto.java @@ -0,0 +1,82 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v2/job.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.securitycenter.v2; + +public final class JobProto { + private JobProto() {} + + 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_cloud_securitycenter_v2_Job_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v2_Job_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/cloud/securitycenter/v2/job.pro" + + "to\022\036google.cloud.securitycenter.v2\032\037goog" + + "le/api/field_behavior.proto\"w\n\003Job\022\014\n\004na" + + "me\030\001 \001(\t\022<\n\005state\030\002 \001(\0162(.google.cloud.s" + + "ecuritycenter.v2.JobStateB\003\340A\003\022\022\n\nerror_" + + "code\030\003 \001(\005\022\020\n\010location\030\004 \001(\t*Z\n\010JobState" + + "\022\031\n\025JOB_STATE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001" + + "\022\013\n\007RUNNING\020\002\022\r\n\tSUCCEEDED\020\003\022\n\n\006FAILED\020\004" + + "B\342\001\n\"com.google.cloud.securitycenter.v2B" + + "\010JobProtoP\001ZJcloud.google.com/go/securit" + + "ycenter/apiv2/securitycenterpb;securityc" + + "enterpb\252\002\036Google.Cloud.SecurityCenter.V2" + + "\312\002\036Google\\Cloud\\SecurityCenter\\V2\352\002!Goog" + + "le::Cloud::SecurityCenter::V2b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v2_Job_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v2_Job_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v2_Job_descriptor, + new java.lang.String[] { + "Name", "State", "ErrorCode", "Location", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/JobState.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/JobState.java new file mode 100644 index 000000000000..bb7af06b2cd7 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/JobState.java @@ -0,0 +1,225 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v2/job.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.securitycenter.v2; + +/** + * + * + *
      + * JobState represents the state of the job.
      + * 
      + * + * Protobuf enum {@code google.cloud.securitycenter.v2.JobState} + */ +public enum JobState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +   * Unspecified represents an unknown state and should not be used.
      +   * 
      + * + * JOB_STATE_UNSPECIFIED = 0; + */ + JOB_STATE_UNSPECIFIED(0), + /** + * + * + *
      +   * Job is scheduled and pending for run
      +   * 
      + * + * PENDING = 1; + */ + PENDING(1), + /** + * + * + *
      +   * Job in progress
      +   * 
      + * + * RUNNING = 2; + */ + RUNNING(2), + /** + * + * + *
      +   * Job has completed with success
      +   * 
      + * + * SUCCEEDED = 3; + */ + SUCCEEDED(3), + /** + * + * + *
      +   * Job has completed but with failure
      +   * 
      + * + * FAILED = 4; + */ + FAILED(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
      +   * Unspecified represents an unknown state and should not be used.
      +   * 
      + * + * JOB_STATE_UNSPECIFIED = 0; + */ + public static final int JOB_STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +   * Job is scheduled and pending for run
      +   * 
      + * + * PENDING = 1; + */ + public static final int PENDING_VALUE = 1; + + /** + * + * + *
      +   * Job in progress
      +   * 
      + * + * RUNNING = 2; + */ + public static final int RUNNING_VALUE = 2; + + /** + * + * + *
      +   * Job has completed with success
      +   * 
      + * + * SUCCEEDED = 3; + */ + public static final int SUCCEEDED_VALUE = 3; + + /** + * + * + *
      +   * Job has completed but with failure
      +   * 
      + * + * FAILED = 4; + */ + public static final int FAILED_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static JobState 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 JobState forNumber(int value) { + switch (value) { + case 0: + return JOB_STATE_UNSPECIFIED; + case 1: + return PENDING; + case 2: + return RUNNING; + case 3: + return SUCCEEDED; + case 4: + return FAILED; + 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 JobState findValueByNumber(int number) { + return JobState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.securitycenter.v2.JobProto.getDescriptor().getEnumTypes().get(0); + } + + private static final JobState[] VALUES = values(); + + public static JobState 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 JobState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.securitycenter.v2.JobState) +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/MitreAttack.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/MitreAttack.java index bf55839be31c..eacf883b7902 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/MitreAttack.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/MitreAttack.java @@ -509,8 +509,8 @@ private Tactic(int value) { * * *
      -   * MITRE ATT&CK techniques that can be referenced by SCC findings.
      -   * See: https://attack.mitre.org/techniques/enterprise/
      +   * MITRE ATT&CK techniques that can be referenced by Security Command Center
      +   * findings. See: https://attack.mitre.org/techniques/enterprise/
          * 
      * * Protobuf enum {@code google.cloud.securitycenter.v2.MitreAttack.Technique} @@ -526,6 +526,136 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { * TECHNIQUE_UNSPECIFIED = 0; */ TECHNIQUE_UNSPECIFIED(0), + /** + * + * + *
      +     * T1001
      +     * 
      + * + * DATA_OBFUSCATION = 70; + */ + DATA_OBFUSCATION(70), + /** + * + * + *
      +     * T1001.002
      +     * 
      + * + * DATA_OBFUSCATION_STEGANOGRAPHY = 71; + */ + DATA_OBFUSCATION_STEGANOGRAPHY(71), + /** + * + * + *
      +     * T1003
      +     * 
      + * + * OS_CREDENTIAL_DUMPING = 114; + */ + OS_CREDENTIAL_DUMPING(114), + /** + * + * + *
      +     * T1003.007
      +     * 
      + * + * OS_CREDENTIAL_DUMPING_PROC_FILESYSTEM = 115; + */ + OS_CREDENTIAL_DUMPING_PROC_FILESYSTEM(115), + /** + * + * + *
      +     * T1003.008
      +     * 
      + * + * OS_CREDENTIAL_DUMPING_ETC_PASSWORD_AND_ETC_SHADOW = 122; + */ + OS_CREDENTIAL_DUMPING_ETC_PASSWORD_AND_ETC_SHADOW(122), + /** + * + * + *
      +     * T1005
      +     * 
      + * + * DATA_FROM_LOCAL_SYSTEM = 117; + */ + DATA_FROM_LOCAL_SYSTEM(117), + /** + * + * + *
      +     * T1020
      +     * 
      + * + * AUTOMATED_EXFILTRATION = 68; + */ + AUTOMATED_EXFILTRATION(68), + /** + * + * + *
      +     * T1027
      +     * 
      + * + * OBFUSCATED_FILES_OR_INFO = 72; + */ + OBFUSCATED_FILES_OR_INFO(72), + /** + * + * + *
      +     * T1027.003
      +     * 
      + * + * STEGANOGRAPHY = 73; + */ + STEGANOGRAPHY(73), + /** + * + * + *
      +     * T1027.004
      +     * 
      + * + * COMPILE_AFTER_DELIVERY = 74; + */ + COMPILE_AFTER_DELIVERY(74), + /** + * + * + *
      +     * T1027.010
      +     * 
      + * + * COMMAND_OBFUSCATION = 75; + */ + COMMAND_OBFUSCATION(75), + /** + * + * + *
      +     * T1029
      +     * 
      + * + * SCHEDULED_TRANSFER = 120; + */ + SCHEDULED_TRANSFER(120), + /** + * + * + *
      +     * T1033
      +     * 
      + * + * SYSTEM_OWNER_USER_DISCOVERY = 118; + */ + SYSTEM_OWNER_USER_DISCOVERY(118), /** * * @@ -576,6 +706,66 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { * NETWORK_SERVICE_DISCOVERY = 32; */ NETWORK_SERVICE_DISCOVERY(32), + /** + * + * + *
      +     * T1053
      +     * 
      + * + * SCHEDULED_TASK_JOB = 89; + */ + SCHEDULED_TASK_JOB(89), + /** + * + * + *
      +     * T1053.003
      +     * 
      + * + * SCHEDULED_TASK_JOB_CRON = 119; + */ + SCHEDULED_TASK_JOB_CRON(119), + /** + * + * + *
      +     * T1053.007
      +     * 
      + * + * CONTAINER_ORCHESTRATION_JOB = 90; + */ + CONTAINER_ORCHESTRATION_JOB(90), + /** + * + * + *
      +     * T1055
      +     * 
      + * + * PROCESS_INJECTION = 93; + */ + PROCESS_INJECTION(93), + /** + * + * + *
      +     * T1056
      +     * 
      + * + * INPUT_CAPTURE = 103; + */ + INPUT_CAPTURE(103), + /** + * + * + *
      +     * T1056.001
      +     * 
      + * + * INPUT_CAPTURE_KEYLOGGING = 104; + */ + INPUT_CAPTURE_KEYLOGGING(104), /** * * @@ -646,6 +836,36 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { * CLOUD_GROUPS = 19; */ CLOUD_GROUPS(19), + /** + * + * + *
      +     * T1070
      +     * 
      + * + * INDICATOR_REMOVAL = 123; + */ + INDICATOR_REMOVAL(123), + /** + * + * + *
      +     * T1070.002
      +     * 
      + * + * INDICATOR_REMOVAL_CLEAR_LINUX_OR_MAC_SYSTEM_LOGS = 124; + */ + INDICATOR_REMOVAL_CLEAR_LINUX_OR_MAC_SYSTEM_LOGS(124), + /** + * + * + *
      +     * T1070.003
      +     * 
      + * + * INDICATOR_REMOVAL_CLEAR_COMMAND_HISTORY = 125; + */ + INDICATOR_REMOVAL_CLEAR_COMMAND_HISTORY(125), /** * * @@ -656,6 +876,26 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { * INDICATOR_REMOVAL_FILE_DELETION = 64; */ INDICATOR_REMOVAL_FILE_DELETION(64), + /** + * + * + *
      +     * T1070.006
      +     * 
      + * + * INDICATOR_REMOVAL_TIMESTOMP = 128; + */ + INDICATOR_REMOVAL_TIMESTOMP(128), + /** + * + * + *
      +     * T1070.008
      +     * 
      + * + * INDICATOR_REMOVAL_CLEAR_MAILBOX_DATA = 126; + */ + INDICATOR_REMOVAL_CLEAR_MAILBOX_DATA(126), /** * * @@ -726,6 +966,26 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { * CLOUD_ACCOUNTS = 16; */ CLOUD_ACCOUNTS(16), + /** + * + * + *
      +     * T1083
      +     * 
      + * + * FILE_AND_DIRECTORY_DISCOVERY = 121; + */ + FILE_AND_DIRECTORY_DISCOVERY(121), + /** + * + * + *
      +     * T1087.001
      +     * 
      + * + * ACCOUNT_DISCOVERY_LOCAL_ACCOUNT = 116; + */ + ACCOUNT_DISCOVERY_LOCAL_ACCOUNT(116), /** * * @@ -776,6 +1036,16 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { * ADDITIONAL_CLOUD_CREDENTIALS = 40; */ ADDITIONAL_CLOUD_CREDENTIALS(40), + /** + * + * + *
      +     * T1098.003
      +     * 
      + * + * ADDITIONAL_CLOUD_ROLES = 67; + */ + ADDITIONAL_CLOUD_ROLES(67), /** * * @@ -796,6 +1066,16 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { * ADDITIONAL_CONTAINER_CLUSTER_ROLES = 58; */ ADDITIONAL_CONTAINER_CLUSTER_ROLES(58), + /** + * + * + *
      +     * T1104
      +     * 
      + * + * MULTI_STAGE_CHANNELS = 76; + */ + MULTI_STAGE_CHANNELS(76), /** * * @@ -830,936 +1110,2037 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { * * *
      -     * T1129
      +     * T1119
            * 
      * - * SHARED_MODULES = 5; + * AUTOMATED_COLLECTION = 94; */ - SHARED_MODULES(5), + AUTOMATED_COLLECTION(94), /** * * *
      -     * T1134
      +     * T1129
            * 
      * - * ACCESS_TOKEN_MANIPULATION = 33; + * SHARED_MODULES = 5; */ - ACCESS_TOKEN_MANIPULATION(33), + SHARED_MODULES(5), /** * * *
      -     * T1134.001
      +     * T1132
            * 
      * - * TOKEN_IMPERSONATION_OR_THEFT = 39; + * DATA_ENCODING = 77; */ - TOKEN_IMPERSONATION_OR_THEFT(39), + DATA_ENCODING(77), /** * * *
      -     * T1190
      +     * T1132.001
            * 
      * - * EXPLOIT_PUBLIC_FACING_APPLICATION = 27; + * STANDARD_ENCODING = 78; */ - EXPLOIT_PUBLIC_FACING_APPLICATION(27), + STANDARD_ENCODING(78), /** * * *
      -     * T1484
      +     * T1134
            * 
      * - * DOMAIN_POLICY_MODIFICATION = 30; + * ACCESS_TOKEN_MANIPULATION = 33; */ - DOMAIN_POLICY_MODIFICATION(30), + ACCESS_TOKEN_MANIPULATION(33), /** * * *
      -     * T1485
      +     * T1134.001
            * 
      * - * DATA_DESTRUCTION = 29; + * TOKEN_IMPERSONATION_OR_THEFT = 39; */ - DATA_DESTRUCTION(29), + TOKEN_IMPERSONATION_OR_THEFT(39), /** * * *
      -     * T1489
      +     * T1136
            * 
      * - * SERVICE_STOP = 52; + * CREATE_ACCOUNT = 79; */ - SERVICE_STOP(52), + CREATE_ACCOUNT(79), /** * * *
      -     * T1490
      +     * T1136.001
            * 
      * - * INHIBIT_SYSTEM_RECOVERY = 36; + * LOCAL_ACCOUNT = 80; */ - INHIBIT_SYSTEM_RECOVERY(36), + LOCAL_ACCOUNT(80), /** * * *
      -     * T1496
      +     * T1140
            * 
      * - * RESOURCE_HIJACKING = 8; + * DEOBFUSCATE_DECODE_FILES_OR_INFO = 95; */ - RESOURCE_HIJACKING(8), + DEOBFUSCATE_DECODE_FILES_OR_INFO(95), /** * * *
      -     * T1498
      +     * T1190
            * 
      * - * NETWORK_DENIAL_OF_SERVICE = 17; + * EXPLOIT_PUBLIC_FACING_APPLICATION = 27; */ - NETWORK_DENIAL_OF_SERVICE(17), + EXPLOIT_PUBLIC_FACING_APPLICATION(27), /** * * *
      -     * T1526
      +     * T1195
            * 
      * - * CLOUD_SERVICE_DISCOVERY = 48; + * SUPPLY_CHAIN_COMPROMISE = 129; */ - CLOUD_SERVICE_DISCOVERY(48), + SUPPLY_CHAIN_COMPROMISE(129), /** * * *
      -     * T1528
      +     * T1195.001
            * 
      * - * STEAL_APPLICATION_ACCESS_TOKEN = 42; + * COMPROMISE_SOFTWARE_DEPENDENCIES_AND_DEVELOPMENT_TOOLS = 130; */ - STEAL_APPLICATION_ACCESS_TOKEN(42), + COMPROMISE_SOFTWARE_DEPENDENCIES_AND_DEVELOPMENT_TOOLS(130), /** * * *
      -     * T1531
      +     * T1203
            * 
      * - * ACCOUNT_ACCESS_REMOVAL = 51; + * EXPLOITATION_FOR_CLIENT_EXECUTION = 134; */ - ACCOUNT_ACCESS_REMOVAL(51), + EXPLOITATION_FOR_CLIENT_EXECUTION(134), /** * * *
      -     * T1539
      +     * T1204
            * 
      * - * STEAL_WEB_SESSION_COOKIE = 25; + * USER_EXECUTION = 69; */ - STEAL_WEB_SESSION_COOKIE(25), + USER_EXECUTION(69), /** * * *
      -     * T1543
      +     * T1222.002
            * 
      * - * CREATE_OR_MODIFY_SYSTEM_PROCESS = 24; + * LINUX_AND_MAC_FILE_AND_DIRECTORY_PERMISSIONS_MODIFICATION = 135; */ - CREATE_OR_MODIFY_SYSTEM_PROCESS(24), + LINUX_AND_MAC_FILE_AND_DIRECTORY_PERMISSIONS_MODIFICATION(135), /** * * *
      -     * T1546
      +     * T1484
            * 
      * - * EVENT_TRIGGERED_EXECUTION = 65; + * DOMAIN_POLICY_MODIFICATION = 30; + */ + DOMAIN_POLICY_MODIFICATION(30), + /** + * + * + *
      +     * T1485
      +     * 
      + * + * DATA_DESTRUCTION = 29; + */ + DATA_DESTRUCTION(29), + /** + * + * + *
      +     * T1486
      +     * 
      + * + * DATA_ENCRYPTED_FOR_IMPACT = 132; + */ + DATA_ENCRYPTED_FOR_IMPACT(132), + /** + * + * + *
      +     * T1489
      +     * 
      + * + * SERVICE_STOP = 52; + */ + SERVICE_STOP(52), + /** + * + * + *
      +     * T1490
      +     * 
      + * + * INHIBIT_SYSTEM_RECOVERY = 36; + */ + INHIBIT_SYSTEM_RECOVERY(36), + /** + * + * + *
      +     * T1495
      +     * 
      + * + * FIRMWARE_CORRUPTION = 81; + */ + FIRMWARE_CORRUPTION(81), + /** + * + * + *
      +     * T1496
      +     * 
      + * + * RESOURCE_HIJACKING = 8; + */ + RESOURCE_HIJACKING(8), + /** + * + * + *
      +     * T1498
      +     * 
      + * + * NETWORK_DENIAL_OF_SERVICE = 17; + */ + NETWORK_DENIAL_OF_SERVICE(17), + /** + * + * + *
      +     * T1526
      +     * 
      + * + * CLOUD_SERVICE_DISCOVERY = 48; + */ + CLOUD_SERVICE_DISCOVERY(48), + /** + * + * + *
      +     * T1528
      +     * 
      + * + * STEAL_APPLICATION_ACCESS_TOKEN = 42; + */ + STEAL_APPLICATION_ACCESS_TOKEN(42), + /** + * + * + *
      +     * T1531
      +     * 
      + * + * ACCOUNT_ACCESS_REMOVAL = 51; + */ + ACCOUNT_ACCESS_REMOVAL(51), + /** + * + * + *
      +     * T1537
      +     * 
      + * + * TRANSFER_DATA_TO_CLOUD_ACCOUNT = 91; + */ + TRANSFER_DATA_TO_CLOUD_ACCOUNT(91), + /** + * + * + *
      +     * T1539
      +     * 
      + * + * STEAL_WEB_SESSION_COOKIE = 25; + */ + STEAL_WEB_SESSION_COOKIE(25), + /** + * + * + *
      +     * T1543
      +     * 
      + * + * CREATE_OR_MODIFY_SYSTEM_PROCESS = 24; + */ + CREATE_OR_MODIFY_SYSTEM_PROCESS(24), + /** + * + * + *
      +     * T1546
      +     * 
      + * + * EVENT_TRIGGERED_EXECUTION = 65; + */ + EVENT_TRIGGERED_EXECUTION(65), + /** + * + * + *
      +     * T1547
      +     * 
      + * + * BOOT_OR_LOGON_AUTOSTART_EXECUTION = 82; + */ + BOOT_OR_LOGON_AUTOSTART_EXECUTION(82), + /** + * + * + *
      +     * T1547.006
      +     * 
      + * + * KERNEL_MODULES_AND_EXTENSIONS = 83; + */ + KERNEL_MODULES_AND_EXTENSIONS(83), + /** + * + * + *
      +     * T1547.009
      +     * 
      + * + * SHORTCUT_MODIFICATION = 127; + */ + SHORTCUT_MODIFICATION(127), + /** + * + * + *
      +     * T1548
      +     * 
      + * + * ABUSE_ELEVATION_CONTROL_MECHANISM = 34; + */ + ABUSE_ELEVATION_CONTROL_MECHANISM(34), + /** + * + * + *
      +     * T1548.001
      +     * 
      + * + * ABUSE_ELEVATION_CONTROL_MECHANISM_SETUID_AND_SETGID = 136; + */ + ABUSE_ELEVATION_CONTROL_MECHANISM_SETUID_AND_SETGID(136), + /** + * + * + *
      +     * T1548.003
      +     * 
      + * + * ABUSE_ELEVATION_CONTROL_MECHANISM_SUDO_AND_SUDO_CACHING = 109; + */ + ABUSE_ELEVATION_CONTROL_MECHANISM_SUDO_AND_SUDO_CACHING(109), + /** + * + * + *
      +     * T1552
      +     * 
      + * + * UNSECURED_CREDENTIALS = 13; + */ + UNSECURED_CREDENTIALS(13), + /** + * + * + *
      +     * T1552.001
      +     * 
      + * + * CREDENTIALS_IN_FILES = 105; + */ + CREDENTIALS_IN_FILES(105), + /** + * + * + *
      +     * T1552.003
      +     * 
      + * + * BASH_HISTORY = 96; + */ + BASH_HISTORY(96), + /** + * + * + *
      +     * T1552.004
      +     * 
      + * + * PRIVATE_KEYS = 97; + */ + PRIVATE_KEYS(97), + /** + * + * + *
      +     * T1553
      +     * 
      + * + * SUBVERT_TRUST_CONTROL = 106; + */ + SUBVERT_TRUST_CONTROL(106), + /** + * + * + *
      +     * T1553.004
      +     * 
      + * + * INSTALL_ROOT_CERTIFICATE = 107; + */ + INSTALL_ROOT_CERTIFICATE(107), + /** + * + * + *
      +     * T1554
      +     * 
      + * + * COMPROMISE_HOST_SOFTWARE_BINARY = 84; + */ + COMPROMISE_HOST_SOFTWARE_BINARY(84), + /** + * + * + *
      +     * T1555
      +     * 
      + * + * CREDENTIALS_FROM_PASSWORD_STORES = 98; + */ + CREDENTIALS_FROM_PASSWORD_STORES(98), + /** + * + * + *
      +     * T1556
      +     * 
      + * + * MODIFY_AUTHENTICATION_PROCESS = 28; + */ + MODIFY_AUTHENTICATION_PROCESS(28), + /** + * + * + *
      +     * T1556.003
      +     * 
      + * + * PLUGGABLE_AUTHENTICATION_MODULES = 108; + */ + PLUGGABLE_AUTHENTICATION_MODULES(108), + /** + * + * + *
      +     * T1556.006
      +     * 
      + * + * MULTI_FACTOR_AUTHENTICATION = 137; + */ + MULTI_FACTOR_AUTHENTICATION(137), + /** + * + * + *
      +     * T1562
      +     * 
      + * + * IMPAIR_DEFENSES = 31; + */ + IMPAIR_DEFENSES(31), + /** + * + * + *
      +     * T1562.001
      +     * 
      + * + * DISABLE_OR_MODIFY_TOOLS = 55; + */ + DISABLE_OR_MODIFY_TOOLS(55), + /** + * + * + *
      +     * T1562.006
      +     * 
      + * + * INDICATOR_BLOCKING = 110; + */ + INDICATOR_BLOCKING(110), + /** + * + * + *
      +     * T1562.012
      +     * 
      + * + * DISABLE_OR_MODIFY_LINUX_AUDIT_SYSTEM = 111; + */ + DISABLE_OR_MODIFY_LINUX_AUDIT_SYSTEM(111), + /** + * + * + *
      +     * T1564
      +     * 
      + * + * HIDE_ARTIFACTS = 85; + */ + HIDE_ARTIFACTS(85), + /** + * + * + *
      +     * T1564.001
      +     * 
      + * + * HIDDEN_FILES_AND_DIRECTORIES = 86; + */ + HIDDEN_FILES_AND_DIRECTORIES(86), + /** + * + * + *
      +     * T1564.002
      +     * 
      + * + * HIDDEN_USERS = 87; + */ + HIDDEN_USERS(87), + /** + * + * + *
      +     * T1567
      +     * 
      + * + * EXFILTRATION_OVER_WEB_SERVICE = 20; + */ + EXFILTRATION_OVER_WEB_SERVICE(20), + /** + * + * + *
      +     * T1567.002
      +     * 
      + * + * EXFILTRATION_TO_CLOUD_STORAGE = 21; + */ + EXFILTRATION_TO_CLOUD_STORAGE(21), + /** + * + * + *
      +     * T1568
      +     * 
      + * + * DYNAMIC_RESOLUTION = 12; + */ + DYNAMIC_RESOLUTION(12), + /** + * + * + *
      +     * T1570
      +     * 
      + * + * LATERAL_TOOL_TRANSFER = 41; + */ + LATERAL_TOOL_TRANSFER(41), + /** + * + * + *
      +     * T1574
      +     * 
      + * + * HIJACK_EXECUTION_FLOW = 112; + */ + HIJACK_EXECUTION_FLOW(112), + /** + * + * + *
      +     * T1574.006
      +     * 
      + * + * HIJACK_EXECUTION_FLOW_DYNAMIC_LINKER_HIJACKING = 113; + */ + HIJACK_EXECUTION_FLOW_DYNAMIC_LINKER_HIJACKING(113), + /** + * + * + *
      +     * T1578
      +     * 
      + * + * MODIFY_CLOUD_COMPUTE_INFRASTRUCTURE = 26; + */ + MODIFY_CLOUD_COMPUTE_INFRASTRUCTURE(26), + /** + * + * + *
      +     * T1578.001
      +     * 
      + * + * CREATE_SNAPSHOT = 54; + */ + CREATE_SNAPSHOT(54), + /** + * + * + *
      +     * T1580
      +     * 
      + * + * CLOUD_INFRASTRUCTURE_DISCOVERY = 53; + */ + CLOUD_INFRASTRUCTURE_DISCOVERY(53), + /** + * + * + *
      +     * T1587
      +     * 
      + * + * DEVELOP_CAPABILITIES = 99; + */ + DEVELOP_CAPABILITIES(99), + /** + * + * + *
      +     * T1587.001
      +     * 
      + * + * DEVELOP_CAPABILITIES_MALWARE = 100; + */ + DEVELOP_CAPABILITIES_MALWARE(100), + /** + * + * + *
      +     * T1588
      +     * 
      + * + * OBTAIN_CAPABILITIES = 43; + */ + OBTAIN_CAPABILITIES(43), + /** + * + * + *
      +     * T1588.001
      +     * 
      + * + * OBTAIN_CAPABILITIES_MALWARE = 101; + */ + OBTAIN_CAPABILITIES_MALWARE(101), + /** + * + * + *
      +     * T1588.006
      +     * 
      + * + * OBTAIN_CAPABILITIES_VULNERABILITIES = 133; + */ + OBTAIN_CAPABILITIES_VULNERABILITIES(133), + /** + * + * + *
      +     * T1595
      +     * 
      + * + * ACTIVE_SCANNING = 1; + */ + ACTIVE_SCANNING(1), + /** + * + * + *
      +     * T1595.001
      +     * 
      + * + * SCANNING_IP_BLOCKS = 2; + */ + SCANNING_IP_BLOCKS(2), + /** + * + * + *
      +     * T1608
      +     * 
      + * + * STAGE_CAPABILITIES = 88; + */ + STAGE_CAPABILITIES(88), + /** + * + * + *
      +     * T1608.001
      +     * 
      + * + * UPLOAD_MALWARE = 102; + */ + UPLOAD_MALWARE(102), + /** + * + * + *
      +     * T1609
      +     * 
      + * + * CONTAINER_ADMINISTRATION_COMMAND = 60; + */ + CONTAINER_ADMINISTRATION_COMMAND(60), + /** + * + * + *
      +     * T1610
      +     * 
      + * + * DEPLOY_CONTAINER = 66; + */ + DEPLOY_CONTAINER(66), + /** + * + * + *
      +     * T1611
      +     * 
      + * + * ESCAPE_TO_HOST = 61; + */ + ESCAPE_TO_HOST(61), + /** + * + * + *
      +     * T1613
      +     * 
      + * + * CONTAINER_AND_RESOURCE_DISCOVERY = 57; + */ + CONTAINER_AND_RESOURCE_DISCOVERY(57), + /** + * + * + *
      +     * T1620
      +     * 
      + * + * REFLECTIVE_CODE_LOADING = 92; + */ + REFLECTIVE_CODE_LOADING(92), + /** + * + * + *
      +     * T1649
      +     * 
      + * + * STEAL_OR_FORGE_AUTHENTICATION_CERTIFICATES = 62; + */ + STEAL_OR_FORGE_AUTHENTICATION_CERTIFICATES(62), + /** + * + * + *
      +     * T1657
      +     * 
      + * + * FINANCIAL_THEFT = 131; + */ + FINANCIAL_THEFT(131), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
      +     * Unspecified value.
      +     * 
      + * + * TECHNIQUE_UNSPECIFIED = 0; + */ + public static final int TECHNIQUE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +     * T1001
      +     * 
      + * + * DATA_OBFUSCATION = 70; + */ + public static final int DATA_OBFUSCATION_VALUE = 70; + + /** + * + * + *
      +     * T1001.002
      +     * 
      + * + * DATA_OBFUSCATION_STEGANOGRAPHY = 71; + */ + public static final int DATA_OBFUSCATION_STEGANOGRAPHY_VALUE = 71; + + /** + * + * + *
      +     * T1003
      +     * 
      + * + * OS_CREDENTIAL_DUMPING = 114; + */ + public static final int OS_CREDENTIAL_DUMPING_VALUE = 114; + + /** + * + * + *
      +     * T1003.007
      +     * 
      + * + * OS_CREDENTIAL_DUMPING_PROC_FILESYSTEM = 115; + */ + public static final int OS_CREDENTIAL_DUMPING_PROC_FILESYSTEM_VALUE = 115; + + /** + * + * + *
      +     * T1003.008
      +     * 
      + * + * OS_CREDENTIAL_DUMPING_ETC_PASSWORD_AND_ETC_SHADOW = 122; + */ + public static final int OS_CREDENTIAL_DUMPING_ETC_PASSWORD_AND_ETC_SHADOW_VALUE = 122; + + /** + * + * + *
      +     * T1005
      +     * 
      + * + * DATA_FROM_LOCAL_SYSTEM = 117; + */ + public static final int DATA_FROM_LOCAL_SYSTEM_VALUE = 117; + + /** + * + * + *
      +     * T1020
      +     * 
      + * + * AUTOMATED_EXFILTRATION = 68; + */ + public static final int AUTOMATED_EXFILTRATION_VALUE = 68; + + /** + * + * + *
      +     * T1027
      +     * 
      + * + * OBFUSCATED_FILES_OR_INFO = 72; + */ + public static final int OBFUSCATED_FILES_OR_INFO_VALUE = 72; + + /** + * + * + *
      +     * T1027.003
      +     * 
      + * + * STEGANOGRAPHY = 73; + */ + public static final int STEGANOGRAPHY_VALUE = 73; + + /** + * + * + *
      +     * T1027.004
      +     * 
      + * + * COMPILE_AFTER_DELIVERY = 74; + */ + public static final int COMPILE_AFTER_DELIVERY_VALUE = 74; + + /** + * + * + *
      +     * T1027.010
      +     * 
      + * + * COMMAND_OBFUSCATION = 75; + */ + public static final int COMMAND_OBFUSCATION_VALUE = 75; + + /** + * + * + *
      +     * T1029
      +     * 
      + * + * SCHEDULED_TRANSFER = 120; + */ + public static final int SCHEDULED_TRANSFER_VALUE = 120; + + /** + * + * + *
      +     * T1033
      +     * 
      + * + * SYSTEM_OWNER_USER_DISCOVERY = 118; + */ + public static final int SYSTEM_OWNER_USER_DISCOVERY_VALUE = 118; + + /** + * + * + *
      +     * T1036
      +     * 
      + * + * MASQUERADING = 49; + */ + public static final int MASQUERADING_VALUE = 49; + + /** + * + * + *
      +     * T1036.005
      +     * 
      + * + * MATCH_LEGITIMATE_NAME_OR_LOCATION = 50; + */ + public static final int MATCH_LEGITIMATE_NAME_OR_LOCATION_VALUE = 50; + + /** + * + * + *
      +     * T1037
      +     * 
      + * + * BOOT_OR_LOGON_INITIALIZATION_SCRIPTS = 37; + */ + public static final int BOOT_OR_LOGON_INITIALIZATION_SCRIPTS_VALUE = 37; + + /** + * + * + *
      +     * T1037.005
      +     * 
      + * + * STARTUP_ITEMS = 38; + */ + public static final int STARTUP_ITEMS_VALUE = 38; + + /** + * + * + *
      +     * T1046
      +     * 
      + * + * NETWORK_SERVICE_DISCOVERY = 32; + */ + public static final int NETWORK_SERVICE_DISCOVERY_VALUE = 32; + + /** + * + * + *
      +     * T1053
      +     * 
      + * + * SCHEDULED_TASK_JOB = 89; + */ + public static final int SCHEDULED_TASK_JOB_VALUE = 89; + + /** + * + * + *
      +     * T1053.003
      +     * 
      + * + * SCHEDULED_TASK_JOB_CRON = 119; + */ + public static final int SCHEDULED_TASK_JOB_CRON_VALUE = 119; + + /** + * + * + *
      +     * T1053.007
      +     * 
      + * + * CONTAINER_ORCHESTRATION_JOB = 90; + */ + public static final int CONTAINER_ORCHESTRATION_JOB_VALUE = 90; + + /** + * + * + *
      +     * T1055
      +     * 
      + * + * PROCESS_INJECTION = 93; + */ + public static final int PROCESS_INJECTION_VALUE = 93; + + /** + * + * + *
      +     * T1056
      +     * 
      + * + * INPUT_CAPTURE = 103; + */ + public static final int INPUT_CAPTURE_VALUE = 103; + + /** + * + * + *
      +     * T1056.001
      +     * 
      + * + * INPUT_CAPTURE_KEYLOGGING = 104; + */ + public static final int INPUT_CAPTURE_KEYLOGGING_VALUE = 104; + + /** + * + * + *
      +     * T1057
      +     * 
      + * + * PROCESS_DISCOVERY = 56; + */ + public static final int PROCESS_DISCOVERY_VALUE = 56; + + /** + * + * + *
      +     * T1059
      +     * 
      + * + * COMMAND_AND_SCRIPTING_INTERPRETER = 6; + */ + public static final int COMMAND_AND_SCRIPTING_INTERPRETER_VALUE = 6; + + /** + * + * + *
      +     * T1059.004
      +     * 
      + * + * UNIX_SHELL = 7; + */ + public static final int UNIX_SHELL_VALUE = 7; + + /** + * + * + *
      +     * T1059.006
      +     * 
      + * + * PYTHON = 59; + */ + public static final int PYTHON_VALUE = 59; + + /** + * + * + *
      +     * T1068
      +     * 
      + * + * EXPLOITATION_FOR_PRIVILEGE_ESCALATION = 63; + */ + public static final int EXPLOITATION_FOR_PRIVILEGE_ESCALATION_VALUE = 63; + + /** + * + * + *
      +     * T1069
      +     * 
      + * + * PERMISSION_GROUPS_DISCOVERY = 18; + */ + public static final int PERMISSION_GROUPS_DISCOVERY_VALUE = 18; + + /** + * + * + *
      +     * T1069.003
      +     * 
      + * + * CLOUD_GROUPS = 19; */ - EVENT_TRIGGERED_EXECUTION(65), + public static final int CLOUD_GROUPS_VALUE = 19; + /** * * *
      -     * T1548
      +     * T1070
            * 
      * - * ABUSE_ELEVATION_CONTROL_MECHANISM = 34; + * INDICATOR_REMOVAL = 123; */ - ABUSE_ELEVATION_CONTROL_MECHANISM(34), + public static final int INDICATOR_REMOVAL_VALUE = 123; + /** * * *
      -     * T1552
      +     * T1070.002
            * 
      * - * UNSECURED_CREDENTIALS = 13; + * INDICATOR_REMOVAL_CLEAR_LINUX_OR_MAC_SYSTEM_LOGS = 124; */ - UNSECURED_CREDENTIALS(13), + public static final int INDICATOR_REMOVAL_CLEAR_LINUX_OR_MAC_SYSTEM_LOGS_VALUE = 124; + /** * * *
      -     * T1556
      +     * T1070.003
            * 
      * - * MODIFY_AUTHENTICATION_PROCESS = 28; + * INDICATOR_REMOVAL_CLEAR_COMMAND_HISTORY = 125; */ - MODIFY_AUTHENTICATION_PROCESS(28), + public static final int INDICATOR_REMOVAL_CLEAR_COMMAND_HISTORY_VALUE = 125; + /** * * *
      -     * T1562
      +     * T1070.004
            * 
      * - * IMPAIR_DEFENSES = 31; + * INDICATOR_REMOVAL_FILE_DELETION = 64; */ - IMPAIR_DEFENSES(31), + public static final int INDICATOR_REMOVAL_FILE_DELETION_VALUE = 64; + /** * * *
      -     * T1562.001
      +     * T1070.006
            * 
      * - * DISABLE_OR_MODIFY_TOOLS = 55; + * INDICATOR_REMOVAL_TIMESTOMP = 128; */ - DISABLE_OR_MODIFY_TOOLS(55), + public static final int INDICATOR_REMOVAL_TIMESTOMP_VALUE = 128; + /** * * *
      -     * T1567
      +     * T1070.008
            * 
      * - * EXFILTRATION_OVER_WEB_SERVICE = 20; + * INDICATOR_REMOVAL_CLEAR_MAILBOX_DATA = 126; */ - EXFILTRATION_OVER_WEB_SERVICE(20), + public static final int INDICATOR_REMOVAL_CLEAR_MAILBOX_DATA_VALUE = 126; + /** * * *
      -     * T1567.002
      +     * T1071
            * 
      * - * EXFILTRATION_TO_CLOUD_STORAGE = 21; + * APPLICATION_LAYER_PROTOCOL = 45; */ - EXFILTRATION_TO_CLOUD_STORAGE(21), + public static final int APPLICATION_LAYER_PROTOCOL_VALUE = 45; + /** * * *
      -     * T1568
      +     * T1071.004
            * 
      * - * DYNAMIC_RESOLUTION = 12; + * DNS = 46; */ - DYNAMIC_RESOLUTION(12), + public static final int DNS_VALUE = 46; + /** * * *
      -     * T1570
      +     * T1072
            * 
      * - * LATERAL_TOOL_TRANSFER = 41; + * SOFTWARE_DEPLOYMENT_TOOLS = 47; */ - LATERAL_TOOL_TRANSFER(41), + public static final int SOFTWARE_DEPLOYMENT_TOOLS_VALUE = 47; + /** * * *
      -     * T1578
      +     * T1078
            * 
      * - * MODIFY_CLOUD_COMPUTE_INFRASTRUCTURE = 26; + * VALID_ACCOUNTS = 14; */ - MODIFY_CLOUD_COMPUTE_INFRASTRUCTURE(26), + public static final int VALID_ACCOUNTS_VALUE = 14; + /** * * *
      -     * T1578.001
      +     * T1078.001
            * 
      * - * CREATE_SNAPSHOT = 54; + * DEFAULT_ACCOUNTS = 35; */ - CREATE_SNAPSHOT(54), + public static final int DEFAULT_ACCOUNTS_VALUE = 35; + /** * * *
      -     * T1580
      +     * T1078.003
            * 
      * - * CLOUD_INFRASTRUCTURE_DISCOVERY = 53; + * LOCAL_ACCOUNTS = 15; */ - CLOUD_INFRASTRUCTURE_DISCOVERY(53), + public static final int LOCAL_ACCOUNTS_VALUE = 15; + /** * * *
      -     * T1588
      +     * T1078.004
            * 
      * - * OBTAIN_CAPABILITIES = 43; + * CLOUD_ACCOUNTS = 16; */ - OBTAIN_CAPABILITIES(43), + public static final int CLOUD_ACCOUNTS_VALUE = 16; + /** * * *
      -     * T1595
      +     * T1083
            * 
      * - * ACTIVE_SCANNING = 1; + * FILE_AND_DIRECTORY_DISCOVERY = 121; */ - ACTIVE_SCANNING(1), + public static final int FILE_AND_DIRECTORY_DISCOVERY_VALUE = 121; + /** * * *
      -     * T1595.001
      +     * T1087.001
            * 
      * - * SCANNING_IP_BLOCKS = 2; + * ACCOUNT_DISCOVERY_LOCAL_ACCOUNT = 116; */ - SCANNING_IP_BLOCKS(2), + public static final int ACCOUNT_DISCOVERY_LOCAL_ACCOUNT_VALUE = 116; + /** * * *
      -     * T1609
      +     * T1090
            * 
      * - * CONTAINER_ADMINISTRATION_COMMAND = 60; + * PROXY = 9; */ - CONTAINER_ADMINISTRATION_COMMAND(60), + public static final int PROXY_VALUE = 9; + /** * * *
      -     * T1610
      +     * T1090.002
            * 
      * - * DEPLOY_CONTAINER = 66; + * EXTERNAL_PROXY = 10; */ - DEPLOY_CONTAINER(66), + public static final int EXTERNAL_PROXY_VALUE = 10; + /** * * *
      -     * T1611
      +     * T1090.003
            * 
      * - * ESCAPE_TO_HOST = 61; + * MULTI_HOP_PROXY = 11; */ - ESCAPE_TO_HOST(61), + public static final int MULTI_HOP_PROXY_VALUE = 11; + /** * * *
      -     * T1613
      +     * T1098
            * 
      * - * CONTAINER_AND_RESOURCE_DISCOVERY = 57; + * ACCOUNT_MANIPULATION = 22; */ - CONTAINER_AND_RESOURCE_DISCOVERY(57), + public static final int ACCOUNT_MANIPULATION_VALUE = 22; + /** * * *
      -     * T1649
      +     * T1098.001
            * 
      * - * STEAL_OR_FORGE_AUTHENTICATION_CERTIFICATES = 62; + * ADDITIONAL_CLOUD_CREDENTIALS = 40; */ - STEAL_OR_FORGE_AUTHENTICATION_CERTIFICATES(62), - UNRECOGNIZED(-1), - ; + public static final int ADDITIONAL_CLOUD_CREDENTIALS_VALUE = 40; /** * * *
      -     * Unspecified value.
      +     * T1098.003
            * 
      * - * TECHNIQUE_UNSPECIFIED = 0; + * ADDITIONAL_CLOUD_ROLES = 67; */ - public static final int TECHNIQUE_UNSPECIFIED_VALUE = 0; + public static final int ADDITIONAL_CLOUD_ROLES_VALUE = 67; /** * * *
      -     * T1036
      +     * T1098.004
            * 
      * - * MASQUERADING = 49; + * SSH_AUTHORIZED_KEYS = 23; */ - public static final int MASQUERADING_VALUE = 49; + public static final int SSH_AUTHORIZED_KEYS_VALUE = 23; /** * * *
      -     * T1036.005
      +     * T1098.006
            * 
      * - * MATCH_LEGITIMATE_NAME_OR_LOCATION = 50; + * ADDITIONAL_CONTAINER_CLUSTER_ROLES = 58; */ - public static final int MATCH_LEGITIMATE_NAME_OR_LOCATION_VALUE = 50; + public static final int ADDITIONAL_CONTAINER_CLUSTER_ROLES_VALUE = 58; /** * * *
      -     * T1037
      +     * T1104
            * 
      * - * BOOT_OR_LOGON_INITIALIZATION_SCRIPTS = 37; + * MULTI_STAGE_CHANNELS = 76; */ - public static final int BOOT_OR_LOGON_INITIALIZATION_SCRIPTS_VALUE = 37; + public static final int MULTI_STAGE_CHANNELS_VALUE = 76; /** * * *
      -     * T1037.005
      +     * T1105
            * 
      * - * STARTUP_ITEMS = 38; + * INGRESS_TOOL_TRANSFER = 3; */ - public static final int STARTUP_ITEMS_VALUE = 38; + public static final int INGRESS_TOOL_TRANSFER_VALUE = 3; /** * * *
      -     * T1046
      +     * T1106
            * 
      * - * NETWORK_SERVICE_DISCOVERY = 32; + * NATIVE_API = 4; */ - public static final int NETWORK_SERVICE_DISCOVERY_VALUE = 32; + public static final int NATIVE_API_VALUE = 4; /** * * *
      -     * T1057
      +     * T1110
            * 
      * - * PROCESS_DISCOVERY = 56; + * BRUTE_FORCE = 44; */ - public static final int PROCESS_DISCOVERY_VALUE = 56; + public static final int BRUTE_FORCE_VALUE = 44; /** * * *
      -     * T1059
      +     * T1119
            * 
      * - * COMMAND_AND_SCRIPTING_INTERPRETER = 6; + * AUTOMATED_COLLECTION = 94; */ - public static final int COMMAND_AND_SCRIPTING_INTERPRETER_VALUE = 6; + public static final int AUTOMATED_COLLECTION_VALUE = 94; /** * * *
      -     * T1059.004
      +     * T1129
            * 
      * - * UNIX_SHELL = 7; + * SHARED_MODULES = 5; */ - public static final int UNIX_SHELL_VALUE = 7; + public static final int SHARED_MODULES_VALUE = 5; /** * * *
      -     * T1059.006
      +     * T1132
            * 
      * - * PYTHON = 59; + * DATA_ENCODING = 77; */ - public static final int PYTHON_VALUE = 59; + public static final int DATA_ENCODING_VALUE = 77; /** * * *
      -     * T1068
      +     * T1132.001
      +     * 
      + * + * STANDARD_ENCODING = 78; + */ + public static final int STANDARD_ENCODING_VALUE = 78; + + /** + * + * + *
      +     * T1134
      +     * 
      + * + * ACCESS_TOKEN_MANIPULATION = 33; + */ + public static final int ACCESS_TOKEN_MANIPULATION_VALUE = 33; + + /** + * + * + *
      +     * T1134.001
      +     * 
      + * + * TOKEN_IMPERSONATION_OR_THEFT = 39; + */ + public static final int TOKEN_IMPERSONATION_OR_THEFT_VALUE = 39; + + /** + * + * + *
      +     * T1136
      +     * 
      + * + * CREATE_ACCOUNT = 79; + */ + public static final int CREATE_ACCOUNT_VALUE = 79; + + /** + * + * + *
      +     * T1136.001
      +     * 
      + * + * LOCAL_ACCOUNT = 80; + */ + public static final int LOCAL_ACCOUNT_VALUE = 80; + + /** + * + * + *
      +     * T1140
      +     * 
      + * + * DEOBFUSCATE_DECODE_FILES_OR_INFO = 95; + */ + public static final int DEOBFUSCATE_DECODE_FILES_OR_INFO_VALUE = 95; + + /** + * + * + *
      +     * T1190
      +     * 
      + * + * EXPLOIT_PUBLIC_FACING_APPLICATION = 27; + */ + public static final int EXPLOIT_PUBLIC_FACING_APPLICATION_VALUE = 27; + + /** + * + * + *
      +     * T1195
      +     * 
      + * + * SUPPLY_CHAIN_COMPROMISE = 129; + */ + public static final int SUPPLY_CHAIN_COMPROMISE_VALUE = 129; + + /** + * + * + *
      +     * T1195.001
      +     * 
      + * + * COMPROMISE_SOFTWARE_DEPENDENCIES_AND_DEVELOPMENT_TOOLS = 130; + */ + public static final int COMPROMISE_SOFTWARE_DEPENDENCIES_AND_DEVELOPMENT_TOOLS_VALUE = 130; + + /** + * + * + *
      +     * T1203
            * 
      * - * EXPLOITATION_FOR_PRIVILEGE_ESCALATION = 63; + * EXPLOITATION_FOR_CLIENT_EXECUTION = 134; */ - public static final int EXPLOITATION_FOR_PRIVILEGE_ESCALATION_VALUE = 63; + public static final int EXPLOITATION_FOR_CLIENT_EXECUTION_VALUE = 134; /** * * *
      -     * T1069
      +     * T1204
            * 
      * - * PERMISSION_GROUPS_DISCOVERY = 18; + * USER_EXECUTION = 69; */ - public static final int PERMISSION_GROUPS_DISCOVERY_VALUE = 18; + public static final int USER_EXECUTION_VALUE = 69; /** * * *
      -     * T1069.003
      +     * T1222.002
            * 
      * - * CLOUD_GROUPS = 19; + * LINUX_AND_MAC_FILE_AND_DIRECTORY_PERMISSIONS_MODIFICATION = 135; */ - public static final int CLOUD_GROUPS_VALUE = 19; + public static final int LINUX_AND_MAC_FILE_AND_DIRECTORY_PERMISSIONS_MODIFICATION_VALUE = 135; /** * * *
      -     * T1070.004
      +     * T1484
            * 
      * - * INDICATOR_REMOVAL_FILE_DELETION = 64; + * DOMAIN_POLICY_MODIFICATION = 30; */ - public static final int INDICATOR_REMOVAL_FILE_DELETION_VALUE = 64; + public static final int DOMAIN_POLICY_MODIFICATION_VALUE = 30; /** * * *
      -     * T1071
      +     * T1485
            * 
      * - * APPLICATION_LAYER_PROTOCOL = 45; + * DATA_DESTRUCTION = 29; */ - public static final int APPLICATION_LAYER_PROTOCOL_VALUE = 45; + public static final int DATA_DESTRUCTION_VALUE = 29; /** * * *
      -     * T1071.004
      +     * T1486
            * 
      * - * DNS = 46; + * DATA_ENCRYPTED_FOR_IMPACT = 132; */ - public static final int DNS_VALUE = 46; + public static final int DATA_ENCRYPTED_FOR_IMPACT_VALUE = 132; /** * * *
      -     * T1072
      +     * T1489
            * 
      * - * SOFTWARE_DEPLOYMENT_TOOLS = 47; + * SERVICE_STOP = 52; */ - public static final int SOFTWARE_DEPLOYMENT_TOOLS_VALUE = 47; + public static final int SERVICE_STOP_VALUE = 52; /** * * *
      -     * T1078
      +     * T1490
            * 
      * - * VALID_ACCOUNTS = 14; + * INHIBIT_SYSTEM_RECOVERY = 36; */ - public static final int VALID_ACCOUNTS_VALUE = 14; + public static final int INHIBIT_SYSTEM_RECOVERY_VALUE = 36; /** * * *
      -     * T1078.001
      +     * T1495
            * 
      * - * DEFAULT_ACCOUNTS = 35; + * FIRMWARE_CORRUPTION = 81; */ - public static final int DEFAULT_ACCOUNTS_VALUE = 35; + public static final int FIRMWARE_CORRUPTION_VALUE = 81; /** * * *
      -     * T1078.003
      +     * T1496
            * 
      * - * LOCAL_ACCOUNTS = 15; + * RESOURCE_HIJACKING = 8; */ - public static final int LOCAL_ACCOUNTS_VALUE = 15; + public static final int RESOURCE_HIJACKING_VALUE = 8; /** * * *
      -     * T1078.004
      +     * T1498
            * 
      * - * CLOUD_ACCOUNTS = 16; + * NETWORK_DENIAL_OF_SERVICE = 17; */ - public static final int CLOUD_ACCOUNTS_VALUE = 16; + public static final int NETWORK_DENIAL_OF_SERVICE_VALUE = 17; /** * * *
      -     * T1090
      +     * T1526
            * 
      * - * PROXY = 9; + * CLOUD_SERVICE_DISCOVERY = 48; */ - public static final int PROXY_VALUE = 9; + public static final int CLOUD_SERVICE_DISCOVERY_VALUE = 48; /** * * *
      -     * T1090.002
      +     * T1528
            * 
      * - * EXTERNAL_PROXY = 10; + * STEAL_APPLICATION_ACCESS_TOKEN = 42; */ - public static final int EXTERNAL_PROXY_VALUE = 10; + public static final int STEAL_APPLICATION_ACCESS_TOKEN_VALUE = 42; /** * * *
      -     * T1090.003
      +     * T1531
            * 
      * - * MULTI_HOP_PROXY = 11; + * ACCOUNT_ACCESS_REMOVAL = 51; */ - public static final int MULTI_HOP_PROXY_VALUE = 11; + public static final int ACCOUNT_ACCESS_REMOVAL_VALUE = 51; /** * * *
      -     * T1098
      +     * T1537
            * 
      * - * ACCOUNT_MANIPULATION = 22; + * TRANSFER_DATA_TO_CLOUD_ACCOUNT = 91; */ - public static final int ACCOUNT_MANIPULATION_VALUE = 22; + public static final int TRANSFER_DATA_TO_CLOUD_ACCOUNT_VALUE = 91; /** * * *
      -     * T1098.001
      +     * T1539
            * 
      * - * ADDITIONAL_CLOUD_CREDENTIALS = 40; + * STEAL_WEB_SESSION_COOKIE = 25; */ - public static final int ADDITIONAL_CLOUD_CREDENTIALS_VALUE = 40; + public static final int STEAL_WEB_SESSION_COOKIE_VALUE = 25; /** * * *
      -     * T1098.004
      +     * T1543
            * 
      * - * SSH_AUTHORIZED_KEYS = 23; + * CREATE_OR_MODIFY_SYSTEM_PROCESS = 24; */ - public static final int SSH_AUTHORIZED_KEYS_VALUE = 23; + public static final int CREATE_OR_MODIFY_SYSTEM_PROCESS_VALUE = 24; /** * * *
      -     * T1098.006
      +     * T1546
            * 
      * - * ADDITIONAL_CONTAINER_CLUSTER_ROLES = 58; + * EVENT_TRIGGERED_EXECUTION = 65; */ - public static final int ADDITIONAL_CONTAINER_CLUSTER_ROLES_VALUE = 58; + public static final int EVENT_TRIGGERED_EXECUTION_VALUE = 65; /** * * *
      -     * T1105
      +     * T1547
            * 
      * - * INGRESS_TOOL_TRANSFER = 3; + * BOOT_OR_LOGON_AUTOSTART_EXECUTION = 82; */ - public static final int INGRESS_TOOL_TRANSFER_VALUE = 3; + public static final int BOOT_OR_LOGON_AUTOSTART_EXECUTION_VALUE = 82; /** * * *
      -     * T1106
      +     * T1547.006
            * 
      * - * NATIVE_API = 4; + * KERNEL_MODULES_AND_EXTENSIONS = 83; */ - public static final int NATIVE_API_VALUE = 4; + public static final int KERNEL_MODULES_AND_EXTENSIONS_VALUE = 83; /** * * *
      -     * T1110
      +     * T1547.009
            * 
      * - * BRUTE_FORCE = 44; + * SHORTCUT_MODIFICATION = 127; */ - public static final int BRUTE_FORCE_VALUE = 44; + public static final int SHORTCUT_MODIFICATION_VALUE = 127; /** * * *
      -     * T1129
      +     * T1548
            * 
      * - * SHARED_MODULES = 5; + * ABUSE_ELEVATION_CONTROL_MECHANISM = 34; */ - public static final int SHARED_MODULES_VALUE = 5; + public static final int ABUSE_ELEVATION_CONTROL_MECHANISM_VALUE = 34; /** * * *
      -     * T1134
      +     * T1548.001
            * 
      * - * ACCESS_TOKEN_MANIPULATION = 33; + * ABUSE_ELEVATION_CONTROL_MECHANISM_SETUID_AND_SETGID = 136; */ - public static final int ACCESS_TOKEN_MANIPULATION_VALUE = 33; + public static final int ABUSE_ELEVATION_CONTROL_MECHANISM_SETUID_AND_SETGID_VALUE = 136; /** * * *
      -     * T1134.001
      +     * T1548.003
            * 
      * - * TOKEN_IMPERSONATION_OR_THEFT = 39; + * ABUSE_ELEVATION_CONTROL_MECHANISM_SUDO_AND_SUDO_CACHING = 109; */ - public static final int TOKEN_IMPERSONATION_OR_THEFT_VALUE = 39; + public static final int ABUSE_ELEVATION_CONTROL_MECHANISM_SUDO_AND_SUDO_CACHING_VALUE = 109; /** * * *
      -     * T1190
      +     * T1552
            * 
      * - * EXPLOIT_PUBLIC_FACING_APPLICATION = 27; + * UNSECURED_CREDENTIALS = 13; */ - public static final int EXPLOIT_PUBLIC_FACING_APPLICATION_VALUE = 27; + public static final int UNSECURED_CREDENTIALS_VALUE = 13; /** * * *
      -     * T1484
      +     * T1552.001
            * 
      * - * DOMAIN_POLICY_MODIFICATION = 30; + * CREDENTIALS_IN_FILES = 105; */ - public static final int DOMAIN_POLICY_MODIFICATION_VALUE = 30; + public static final int CREDENTIALS_IN_FILES_VALUE = 105; /** * * *
      -     * T1485
      +     * T1552.003
            * 
      * - * DATA_DESTRUCTION = 29; + * BASH_HISTORY = 96; */ - public static final int DATA_DESTRUCTION_VALUE = 29; + public static final int BASH_HISTORY_VALUE = 96; /** * * *
      -     * T1489
      +     * T1552.004
            * 
      * - * SERVICE_STOP = 52; + * PRIVATE_KEYS = 97; */ - public static final int SERVICE_STOP_VALUE = 52; + public static final int PRIVATE_KEYS_VALUE = 97; /** * * *
      -     * T1490
      +     * T1553
            * 
      * - * INHIBIT_SYSTEM_RECOVERY = 36; + * SUBVERT_TRUST_CONTROL = 106; */ - public static final int INHIBIT_SYSTEM_RECOVERY_VALUE = 36; + public static final int SUBVERT_TRUST_CONTROL_VALUE = 106; /** * * *
      -     * T1496
      +     * T1553.004
            * 
      * - * RESOURCE_HIJACKING = 8; + * INSTALL_ROOT_CERTIFICATE = 107; */ - public static final int RESOURCE_HIJACKING_VALUE = 8; + public static final int INSTALL_ROOT_CERTIFICATE_VALUE = 107; /** * * *
      -     * T1498
      +     * T1554
            * 
      * - * NETWORK_DENIAL_OF_SERVICE = 17; + * COMPROMISE_HOST_SOFTWARE_BINARY = 84; */ - public static final int NETWORK_DENIAL_OF_SERVICE_VALUE = 17; + public static final int COMPROMISE_HOST_SOFTWARE_BINARY_VALUE = 84; /** * * *
      -     * T1526
      +     * T1555
            * 
      * - * CLOUD_SERVICE_DISCOVERY = 48; + * CREDENTIALS_FROM_PASSWORD_STORES = 98; */ - public static final int CLOUD_SERVICE_DISCOVERY_VALUE = 48; + public static final int CREDENTIALS_FROM_PASSWORD_STORES_VALUE = 98; /** * * *
      -     * T1528
      +     * T1556
            * 
      * - * STEAL_APPLICATION_ACCESS_TOKEN = 42; + * MODIFY_AUTHENTICATION_PROCESS = 28; */ - public static final int STEAL_APPLICATION_ACCESS_TOKEN_VALUE = 42; + public static final int MODIFY_AUTHENTICATION_PROCESS_VALUE = 28; /** * * *
      -     * T1531
      +     * T1556.003
            * 
      * - * ACCOUNT_ACCESS_REMOVAL = 51; + * PLUGGABLE_AUTHENTICATION_MODULES = 108; */ - public static final int ACCOUNT_ACCESS_REMOVAL_VALUE = 51; + public static final int PLUGGABLE_AUTHENTICATION_MODULES_VALUE = 108; /** * * *
      -     * T1539
      +     * T1556.006
            * 
      * - * STEAL_WEB_SESSION_COOKIE = 25; + * MULTI_FACTOR_AUTHENTICATION = 137; */ - public static final int STEAL_WEB_SESSION_COOKIE_VALUE = 25; + public static final int MULTI_FACTOR_AUTHENTICATION_VALUE = 137; /** * * *
      -     * T1543
      +     * T1562
            * 
      * - * CREATE_OR_MODIFY_SYSTEM_PROCESS = 24; + * IMPAIR_DEFENSES = 31; */ - public static final int CREATE_OR_MODIFY_SYSTEM_PROCESS_VALUE = 24; + public static final int IMPAIR_DEFENSES_VALUE = 31; /** * * *
      -     * T1546
      +     * T1562.001
            * 
      * - * EVENT_TRIGGERED_EXECUTION = 65; + * DISABLE_OR_MODIFY_TOOLS = 55; */ - public static final int EVENT_TRIGGERED_EXECUTION_VALUE = 65; + public static final int DISABLE_OR_MODIFY_TOOLS_VALUE = 55; /** * * *
      -     * T1548
      +     * T1562.006
            * 
      * - * ABUSE_ELEVATION_CONTROL_MECHANISM = 34; + * INDICATOR_BLOCKING = 110; */ - public static final int ABUSE_ELEVATION_CONTROL_MECHANISM_VALUE = 34; + public static final int INDICATOR_BLOCKING_VALUE = 110; /** * * *
      -     * T1552
      +     * T1562.012
            * 
      * - * UNSECURED_CREDENTIALS = 13; + * DISABLE_OR_MODIFY_LINUX_AUDIT_SYSTEM = 111; */ - public static final int UNSECURED_CREDENTIALS_VALUE = 13; + public static final int DISABLE_OR_MODIFY_LINUX_AUDIT_SYSTEM_VALUE = 111; /** * * *
      -     * T1556
      +     * T1564
            * 
      * - * MODIFY_AUTHENTICATION_PROCESS = 28; + * HIDE_ARTIFACTS = 85; */ - public static final int MODIFY_AUTHENTICATION_PROCESS_VALUE = 28; + public static final int HIDE_ARTIFACTS_VALUE = 85; /** * * *
      -     * T1562
      +     * T1564.001
            * 
      * - * IMPAIR_DEFENSES = 31; + * HIDDEN_FILES_AND_DIRECTORIES = 86; */ - public static final int IMPAIR_DEFENSES_VALUE = 31; + public static final int HIDDEN_FILES_AND_DIRECTORIES_VALUE = 86; /** * * *
      -     * T1562.001
      +     * T1564.002
            * 
      * - * DISABLE_OR_MODIFY_TOOLS = 55; + * HIDDEN_USERS = 87; */ - public static final int DISABLE_OR_MODIFY_TOOLS_VALUE = 55; + public static final int HIDDEN_USERS_VALUE = 87; /** * @@ -1805,6 +3186,28 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LATERAL_TOOL_TRANSFER_VALUE = 41; + /** + * + * + *
      +     * T1574
      +     * 
      + * + * HIJACK_EXECUTION_FLOW = 112; + */ + public static final int HIJACK_EXECUTION_FLOW_VALUE = 112; + + /** + * + * + *
      +     * T1574.006
      +     * 
      + * + * HIJACK_EXECUTION_FLOW_DYNAMIC_LINKER_HIJACKING = 113; + */ + public static final int HIJACK_EXECUTION_FLOW_DYNAMIC_LINKER_HIJACKING_VALUE = 113; + /** * * @@ -1838,6 +3241,28 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CLOUD_INFRASTRUCTURE_DISCOVERY_VALUE = 53; + /** + * + * + *
      +     * T1587
      +     * 
      + * + * DEVELOP_CAPABILITIES = 99; + */ + public static final int DEVELOP_CAPABILITIES_VALUE = 99; + + /** + * + * + *
      +     * T1587.001
      +     * 
      + * + * DEVELOP_CAPABILITIES_MALWARE = 100; + */ + public static final int DEVELOP_CAPABILITIES_MALWARE_VALUE = 100; + /** * * @@ -1849,6 +3274,28 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ public static final int OBTAIN_CAPABILITIES_VALUE = 43; + /** + * + * + *
      +     * T1588.001
      +     * 
      + * + * OBTAIN_CAPABILITIES_MALWARE = 101; + */ + public static final int OBTAIN_CAPABILITIES_MALWARE_VALUE = 101; + + /** + * + * + *
      +     * T1588.006
      +     * 
      + * + * OBTAIN_CAPABILITIES_VULNERABILITIES = 133; + */ + public static final int OBTAIN_CAPABILITIES_VULNERABILITIES_VALUE = 133; + /** * * @@ -1871,6 +3318,28 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SCANNING_IP_BLOCKS_VALUE = 2; + /** + * + * + *
      +     * T1608
      +     * 
      + * + * STAGE_CAPABILITIES = 88; + */ + public static final int STAGE_CAPABILITIES_VALUE = 88; + + /** + * + * + *
      +     * T1608.001
      +     * 
      + * + * UPLOAD_MALWARE = 102; + */ + public static final int UPLOAD_MALWARE_VALUE = 102; + /** * * @@ -1915,6 +3384,17 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CONTAINER_AND_RESOURCE_DISCOVERY_VALUE = 57; + /** + * + * + *
      +     * T1620
      +     * 
      + * + * REFLECTIVE_CODE_LOADING = 92; + */ + public static final int REFLECTIVE_CODE_LOADING_VALUE = 92; + /** * * @@ -1926,6 +3406,17 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STEAL_OR_FORGE_AUTHENTICATION_CERTIFICATES_VALUE = 62; + /** + * + * + *
      +     * T1657
      +     * 
      + * + * FINANCIAL_THEFT = 131; + */ + public static final int FINANCIAL_THEFT_VALUE = 131; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1952,6 +3443,32 @@ public static Technique forNumber(int value) { switch (value) { case 0: return TECHNIQUE_UNSPECIFIED; + case 70: + return DATA_OBFUSCATION; + case 71: + return DATA_OBFUSCATION_STEGANOGRAPHY; + case 114: + return OS_CREDENTIAL_DUMPING; + case 115: + return OS_CREDENTIAL_DUMPING_PROC_FILESYSTEM; + case 122: + return OS_CREDENTIAL_DUMPING_ETC_PASSWORD_AND_ETC_SHADOW; + case 117: + return DATA_FROM_LOCAL_SYSTEM; + case 68: + return AUTOMATED_EXFILTRATION; + case 72: + return OBFUSCATED_FILES_OR_INFO; + case 73: + return STEGANOGRAPHY; + case 74: + return COMPILE_AFTER_DELIVERY; + case 75: + return COMMAND_OBFUSCATION; + case 120: + return SCHEDULED_TRANSFER; + case 118: + return SYSTEM_OWNER_USER_DISCOVERY; case 49: return MASQUERADING; case 50: @@ -1962,6 +3479,18 @@ public static Technique forNumber(int value) { return STARTUP_ITEMS; case 32: return NETWORK_SERVICE_DISCOVERY; + case 89: + return SCHEDULED_TASK_JOB; + case 119: + return SCHEDULED_TASK_JOB_CRON; + case 90: + return CONTAINER_ORCHESTRATION_JOB; + case 93: + return PROCESS_INJECTION; + case 103: + return INPUT_CAPTURE; + case 104: + return INPUT_CAPTURE_KEYLOGGING; case 56: return PROCESS_DISCOVERY; case 6: @@ -1976,8 +3505,18 @@ public static Technique forNumber(int value) { return PERMISSION_GROUPS_DISCOVERY; case 19: return CLOUD_GROUPS; + case 123: + return INDICATOR_REMOVAL; + case 124: + return INDICATOR_REMOVAL_CLEAR_LINUX_OR_MAC_SYSTEM_LOGS; + case 125: + return INDICATOR_REMOVAL_CLEAR_COMMAND_HISTORY; case 64: return INDICATOR_REMOVAL_FILE_DELETION; + case 128: + return INDICATOR_REMOVAL_TIMESTOMP; + case 126: + return INDICATOR_REMOVAL_CLEAR_MAILBOX_DATA; case 45: return APPLICATION_LAYER_PROTOCOL; case 46: @@ -1992,6 +3531,10 @@ public static Technique forNumber(int value) { return LOCAL_ACCOUNTS; case 16: return CLOUD_ACCOUNTS; + case 121: + return FILE_AND_DIRECTORY_DISCOVERY; + case 116: + return ACCOUNT_DISCOVERY_LOCAL_ACCOUNT; case 9: return PROXY; case 10: @@ -2002,32 +3545,62 @@ public static Technique forNumber(int value) { return ACCOUNT_MANIPULATION; case 40: return ADDITIONAL_CLOUD_CREDENTIALS; + case 67: + return ADDITIONAL_CLOUD_ROLES; case 23: return SSH_AUTHORIZED_KEYS; case 58: return ADDITIONAL_CONTAINER_CLUSTER_ROLES; + case 76: + return MULTI_STAGE_CHANNELS; case 3: return INGRESS_TOOL_TRANSFER; case 4: return NATIVE_API; case 44: return BRUTE_FORCE; + case 94: + return AUTOMATED_COLLECTION; case 5: return SHARED_MODULES; + case 77: + return DATA_ENCODING; + case 78: + return STANDARD_ENCODING; case 33: return ACCESS_TOKEN_MANIPULATION; case 39: return TOKEN_IMPERSONATION_OR_THEFT; + case 79: + return CREATE_ACCOUNT; + case 80: + return LOCAL_ACCOUNT; + case 95: + return DEOBFUSCATE_DECODE_FILES_OR_INFO; case 27: return EXPLOIT_PUBLIC_FACING_APPLICATION; + case 129: + return SUPPLY_CHAIN_COMPROMISE; + case 130: + return COMPROMISE_SOFTWARE_DEPENDENCIES_AND_DEVELOPMENT_TOOLS; + case 134: + return EXPLOITATION_FOR_CLIENT_EXECUTION; + case 69: + return USER_EXECUTION; + case 135: + return LINUX_AND_MAC_FILE_AND_DIRECTORY_PERMISSIONS_MODIFICATION; case 30: return DOMAIN_POLICY_MODIFICATION; case 29: return DATA_DESTRUCTION; + case 132: + return DATA_ENCRYPTED_FOR_IMPACT; case 52: return SERVICE_STOP; case 36: return INHIBIT_SYSTEM_RECOVERY; + case 81: + return FIRMWARE_CORRUPTION; case 8: return RESOURCE_HIJACKING; case 17: @@ -2038,22 +3611,62 @@ public static Technique forNumber(int value) { return STEAL_APPLICATION_ACCESS_TOKEN; case 51: return ACCOUNT_ACCESS_REMOVAL; + case 91: + return TRANSFER_DATA_TO_CLOUD_ACCOUNT; case 25: return STEAL_WEB_SESSION_COOKIE; case 24: return CREATE_OR_MODIFY_SYSTEM_PROCESS; case 65: return EVENT_TRIGGERED_EXECUTION; + case 82: + return BOOT_OR_LOGON_AUTOSTART_EXECUTION; + case 83: + return KERNEL_MODULES_AND_EXTENSIONS; + case 127: + return SHORTCUT_MODIFICATION; case 34: return ABUSE_ELEVATION_CONTROL_MECHANISM; + case 136: + return ABUSE_ELEVATION_CONTROL_MECHANISM_SETUID_AND_SETGID; + case 109: + return ABUSE_ELEVATION_CONTROL_MECHANISM_SUDO_AND_SUDO_CACHING; case 13: return UNSECURED_CREDENTIALS; + case 105: + return CREDENTIALS_IN_FILES; + case 96: + return BASH_HISTORY; + case 97: + return PRIVATE_KEYS; + case 106: + return SUBVERT_TRUST_CONTROL; + case 107: + return INSTALL_ROOT_CERTIFICATE; + case 84: + return COMPROMISE_HOST_SOFTWARE_BINARY; + case 98: + return CREDENTIALS_FROM_PASSWORD_STORES; case 28: return MODIFY_AUTHENTICATION_PROCESS; + case 108: + return PLUGGABLE_AUTHENTICATION_MODULES; + case 137: + return MULTI_FACTOR_AUTHENTICATION; case 31: return IMPAIR_DEFENSES; case 55: return DISABLE_OR_MODIFY_TOOLS; + case 110: + return INDICATOR_BLOCKING; + case 111: + return DISABLE_OR_MODIFY_LINUX_AUDIT_SYSTEM; + case 85: + return HIDE_ARTIFACTS; + case 86: + return HIDDEN_FILES_AND_DIRECTORIES; + case 87: + return HIDDEN_USERS; case 20: return EXFILTRATION_OVER_WEB_SERVICE; case 21: @@ -2062,18 +3675,34 @@ public static Technique forNumber(int value) { return DYNAMIC_RESOLUTION; case 41: return LATERAL_TOOL_TRANSFER; + case 112: + return HIJACK_EXECUTION_FLOW; + case 113: + return HIJACK_EXECUTION_FLOW_DYNAMIC_LINKER_HIJACKING; case 26: return MODIFY_CLOUD_COMPUTE_INFRASTRUCTURE; case 54: return CREATE_SNAPSHOT; case 53: return CLOUD_INFRASTRUCTURE_DISCOVERY; + case 99: + return DEVELOP_CAPABILITIES; + case 100: + return DEVELOP_CAPABILITIES_MALWARE; case 43: return OBTAIN_CAPABILITIES; + case 101: + return OBTAIN_CAPABILITIES_MALWARE; + case 133: + return OBTAIN_CAPABILITIES_VULNERABILITIES; case 1: return ACTIVE_SCANNING; case 2: return SCANNING_IP_BLOCKS; + case 88: + return STAGE_CAPABILITIES; + case 102: + return UPLOAD_MALWARE; case 60: return CONTAINER_ADMINISTRATION_COMMAND; case 66: @@ -2082,8 +3711,12 @@ public static Technique forNumber(int value) { return ESCAPE_TO_HOST; case 57: return CONTAINER_AND_RESOURCE_DISCOVERY; + case 92: + return REFLECTIVE_CODE_LOADING; case 62: return STEAL_OR_FORGE_AUTHENTICATION_CERTIFICATES; + case 131: + return FINANCIAL_THEFT; default: return null; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/MitreAttackProto.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/MitreAttackProto.java index 48527b534546..85014361e460 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/MitreAttackProto.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/MitreAttackProto.java @@ -43,7 +43,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n1google/cloud/securitycenter/v2/mitre_a" + "ttack.proto\022\036google.cloud.securitycenter" - + ".v2\"\361\023\n\013MitreAttack\022J\n\016primary_tactic\030\001 " + + ".v2\"\312%\n\013MitreAttack\022J\n\016primary_tactic\030\001 " + "\001(\01622.google.cloud.securitycenter.v2.Mit" + "reAttack.Tactic\022Q\n\022primary_techniques\030\002 " + "\003(\01625.google.cloud.securitycenter.v2.Mit" @@ -59,60 +59,117 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022\023\n\017DEFENSE_EVASION\020\007\022\025\n\021CREDENTIAL_ACCE" + "SS\020\t\022\r\n\tDISCOVERY\020\n\022\024\n\020LATERAL_MOVEMENT\020" + "\013\022\016\n\nCOLLECTION\020\014\022\027\n\023COMMAND_AND_CONTROL" - + "\020\004\022\020\n\014EXFILTRATION\020\r\022\n\n\006IMPACT\020\016\"\324\016\n\tTec" - + "hnique\022\031\n\025TECHNIQUE_UNSPECIFIED\020\000\022\020\n\014MAS" - + "QUERADING\0201\022%\n!MATCH_LEGITIMATE_NAME_OR_" - + "LOCATION\0202\022(\n$BOOT_OR_LOGON_INITIALIZATI" - + "ON_SCRIPTS\020%\022\021\n\rSTARTUP_ITEMS\020&\022\035\n\031NETWO" - + "RK_SERVICE_DISCOVERY\020 \022\025\n\021PROCESS_DISCOV" - + "ERY\0208\022%\n!COMMAND_AND_SCRIPTING_INTERPRET" - + "ER\020\006\022\016\n\nUNIX_SHELL\020\007\022\n\n\006PYTHON\020;\022)\n%EXPL" - + "OITATION_FOR_PRIVILEGE_ESCALATION\020?\022\037\n\033P" - + "ERMISSION_GROUPS_DISCOVERY\020\022\022\020\n\014CLOUD_GR" - + "OUPS\020\023\022#\n\037INDICATOR_REMOVAL_FILE_DELETIO" - + "N\020@\022\036\n\032APPLICATION_LAYER_PROTOCOL\020-\022\007\n\003D" - + "NS\020.\022\035\n\031SOFTWARE_DEPLOYMENT_TOOLS\020/\022\022\n\016V" - + "ALID_ACCOUNTS\020\016\022\024\n\020DEFAULT_ACCOUNTS\020#\022\022\n" - + "\016LOCAL_ACCOUNTS\020\017\022\022\n\016CLOUD_ACCOUNTS\020\020\022\t\n" - + "\005PROXY\020\t\022\022\n\016EXTERNAL_PROXY\020\n\022\023\n\017MULTI_HO" - + "P_PROXY\020\013\022\030\n\024ACCOUNT_MANIPULATION\020\026\022 \n\034A" - + "DDITIONAL_CLOUD_CREDENTIALS\020(\022\027\n\023SSH_AUT" - + "HORIZED_KEYS\020\027\022&\n\"ADDITIONAL_CONTAINER_C" - + "LUSTER_ROLES\020:\022\031\n\025INGRESS_TOOL_TRANSFER\020" - + "\003\022\016\n\nNATIVE_API\020\004\022\017\n\013BRUTE_FORCE\020,\022\022\n\016SH" - + "ARED_MODULES\020\005\022\035\n\031ACCESS_TOKEN_MANIPULAT" - + "ION\020!\022 \n\034TOKEN_IMPERSONATION_OR_THEFT\020\'\022" - + "%\n!EXPLOIT_PUBLIC_FACING_APPLICATION\020\033\022\036" - + "\n\032DOMAIN_POLICY_MODIFICATION\020\036\022\024\n\020DATA_D" - + "ESTRUCTION\020\035\022\020\n\014SERVICE_STOP\0204\022\033\n\027INHIBI" - + "T_SYSTEM_RECOVERY\020$\022\026\n\022RESOURCE_HIJACKIN" - + "G\020\010\022\035\n\031NETWORK_DENIAL_OF_SERVICE\020\021\022\033\n\027CL" - + "OUD_SERVICE_DISCOVERY\0200\022\"\n\036STEAL_APPLICA" - + "TION_ACCESS_TOKEN\020*\022\032\n\026ACCOUNT_ACCESS_RE" - + "MOVAL\0203\022\034\n\030STEAL_WEB_SESSION_COOKIE\020\031\022#\n" - + "\037CREATE_OR_MODIFY_SYSTEM_PROCESS\020\030\022\035\n\031EV" - + "ENT_TRIGGERED_EXECUTION\020A\022%\n!ABUSE_ELEVA" - + "TION_CONTROL_MECHANISM\020\"\022\031\n\025UNSECURED_CR" - + "EDENTIALS\020\r\022!\n\035MODIFY_AUTHENTICATION_PRO" - + "CESS\020\034\022\023\n\017IMPAIR_DEFENSES\020\037\022\033\n\027DISABLE_O" - + "R_MODIFY_TOOLS\0207\022!\n\035EXFILTRATION_OVER_WE" - + "B_SERVICE\020\024\022!\n\035EXFILTRATION_TO_CLOUD_STO" - + "RAGE\020\025\022\026\n\022DYNAMIC_RESOLUTION\020\014\022\031\n\025LATERA" - + "L_TOOL_TRANSFER\020)\022\'\n#MODIFY_CLOUD_COMPUT" - + "E_INFRASTRUCTURE\020\032\022\023\n\017CREATE_SNAPSHOT\0206\022" - + "\"\n\036CLOUD_INFRASTRUCTURE_DISCOVERY\0205\022\027\n\023O" - + "BTAIN_CAPABILITIES\020+\022\023\n\017ACTIVE_SCANNING\020" - + "\001\022\026\n\022SCANNING_IP_BLOCKS\020\002\022$\n CONTAINER_A" - + "DMINISTRATION_COMMAND\020<\022\024\n\020DEPLOY_CONTAI" - + "NER\020B\022\022\n\016ESCAPE_TO_HOST\020=\022$\n CONTAINER_A" - + "ND_RESOURCE_DISCOVERY\0209\022.\n*STEAL_OR_FORG" - + "E_AUTHENTICATION_CERTIFICATES\020>B\352\001\n\"com." - + "google.cloud.securitycenter.v2B\020MitreAtt" - + "ackProtoP\001ZJcloud.google.com/go/security" - + "center/apiv2/securitycenterpb;securityce" - + "nterpb\252\002\036Google.Cloud.SecurityCenter.V2\312" - + "\002\036Google\\Cloud\\SecurityCenter\\V2\352\002!Googl" - + "e::Cloud::SecurityCenter::V2b\006proto3" + + "\020\004\022\020\n\014EXFILTRATION\020\r\022\n\n\006IMPACT\020\016\"\255 \n\tTec" + + "hnique\022\031\n\025TECHNIQUE_UNSPECIFIED\020\000\022\024\n\020DAT" + + "A_OBFUSCATION\020F\022\"\n\036DATA_OBFUSCATION_STEG" + + "ANOGRAPHY\020G\022\031\n\025OS_CREDENTIAL_DUMPING\020r\022)" + + "\n%OS_CREDENTIAL_DUMPING_PROC_FILESYSTEM\020" + + "s\0225\n1OS_CREDENTIAL_DUMPING_ETC_PASSWORD_" + + "AND_ETC_SHADOW\020z\022\032\n\026DATA_FROM_LOCAL_SYST" + + "EM\020u\022\032\n\026AUTOMATED_EXFILTRATION\020D\022\034\n\030OBFU" + + "SCATED_FILES_OR_INFO\020H\022\021\n\rSTEGANOGRAPHY\020" + + "I\022\032\n\026COMPILE_AFTER_DELIVERY\020J\022\027\n\023COMMAND" + + "_OBFUSCATION\020K\022\026\n\022SCHEDULED_TRANSFER\020x\022\037" + + "\n\033SYSTEM_OWNER_USER_DISCOVERY\020v\022\020\n\014MASQU" + + "ERADING\0201\022%\n!MATCH_LEGITIMATE_NAME_OR_LO" + + "CATION\0202\022(\n$BOOT_OR_LOGON_INITIALIZATION" + + "_SCRIPTS\020%\022\021\n\rSTARTUP_ITEMS\020&\022\035\n\031NETWORK" + + "_SERVICE_DISCOVERY\020 \022\026\n\022SCHEDULED_TASK_J" + + "OB\020Y\022\033\n\027SCHEDULED_TASK_JOB_CRON\020w\022\037\n\033CON" + + "TAINER_ORCHESTRATION_JOB\020Z\022\025\n\021PROCESS_IN" + + "JECTION\020]\022\021\n\rINPUT_CAPTURE\020g\022\034\n\030INPUT_CA" + + "PTURE_KEYLOGGING\020h\022\025\n\021PROCESS_DISCOVERY\020" + + "8\022%\n!COMMAND_AND_SCRIPTING_INTERPRETER\020\006" + + "\022\016\n\nUNIX_SHELL\020\007\022\n\n\006PYTHON\020;\022)\n%EXPLOITA" + + "TION_FOR_PRIVILEGE_ESCALATION\020?\022\037\n\033PERMI" + + "SSION_GROUPS_DISCOVERY\020\022\022\020\n\014CLOUD_GROUPS" + + "\020\023\022\025\n\021INDICATOR_REMOVAL\020{\0224\n0INDICATOR_R" + + "EMOVAL_CLEAR_LINUX_OR_MAC_SYSTEM_LOGS\020|\022" + + "+\n\'INDICATOR_REMOVAL_CLEAR_COMMAND_HISTO" + + "RY\020}\022#\n\037INDICATOR_REMOVAL_FILE_DELETION\020" + + "@\022 \n\033INDICATOR_REMOVAL_TIMESTOMP\020\200\001\022(\n$I" + + "NDICATOR_REMOVAL_CLEAR_MAILBOX_DATA\020~\022\036\n" + + "\032APPLICATION_LAYER_PROTOCOL\020-\022\007\n\003DNS\020.\022\035" + + "\n\031SOFTWARE_DEPLOYMENT_TOOLS\020/\022\022\n\016VALID_A" + + "CCOUNTS\020\016\022\024\n\020DEFAULT_ACCOUNTS\020#\022\022\n\016LOCAL" + + "_ACCOUNTS\020\017\022\022\n\016CLOUD_ACCOUNTS\020\020\022 \n\034FILE_" + + "AND_DIRECTORY_DISCOVERY\020y\022#\n\037ACCOUNT_DIS" + + "COVERY_LOCAL_ACCOUNT\020t\022\t\n\005PROXY\020\t\022\022\n\016EXT" + + "ERNAL_PROXY\020\n\022\023\n\017MULTI_HOP_PROXY\020\013\022\030\n\024AC" + + "COUNT_MANIPULATION\020\026\022 \n\034ADDITIONAL_CLOUD" + + "_CREDENTIALS\020(\022\032\n\026ADDITIONAL_CLOUD_ROLES" + + "\020C\022\027\n\023SSH_AUTHORIZED_KEYS\020\027\022&\n\"ADDITIONA" + + "L_CONTAINER_CLUSTER_ROLES\020:\022\030\n\024MULTI_STA" + + "GE_CHANNELS\020L\022\031\n\025INGRESS_TOOL_TRANSFER\020\003" + + "\022\016\n\nNATIVE_API\020\004\022\017\n\013BRUTE_FORCE\020,\022\030\n\024AUT" + + "OMATED_COLLECTION\020^\022\022\n\016SHARED_MODULES\020\005\022" + + "\021\n\rDATA_ENCODING\020M\022\025\n\021STANDARD_ENCODING\020" + + "N\022\035\n\031ACCESS_TOKEN_MANIPULATION\020!\022 \n\034TOKE" + + "N_IMPERSONATION_OR_THEFT\020\'\022\022\n\016CREATE_ACC" + + "OUNT\020O\022\021\n\rLOCAL_ACCOUNT\020P\022$\n DEOBFUSCATE" + + "_DECODE_FILES_OR_INFO\020_\022%\n!EXPLOIT_PUBLI" + + "C_FACING_APPLICATION\020\033\022\034\n\027SUPPLY_CHAIN_C" + + "OMPROMISE\020\201\001\022;\n6COMPROMISE_SOFTWARE_DEPE" + + "NDENCIES_AND_DEVELOPMENT_TOOLS\020\202\001\022&\n!EXP" + + "LOITATION_FOR_CLIENT_EXECUTION\020\206\001\022\022\n\016USE" + + "R_EXECUTION\020E\022>\n9LINUX_AND_MAC_FILE_AND_" + + "DIRECTORY_PERMISSIONS_MODIFICATION\020\207\001\022\036\n" + + "\032DOMAIN_POLICY_MODIFICATION\020\036\022\024\n\020DATA_DE" + + "STRUCTION\020\035\022\036\n\031DATA_ENCRYPTED_FOR_IMPACT" + + "\020\204\001\022\020\n\014SERVICE_STOP\0204\022\033\n\027INHIBIT_SYSTEM_" + + "RECOVERY\020$\022\027\n\023FIRMWARE_CORRUPTION\020Q\022\026\n\022R" + + "ESOURCE_HIJACKING\020\010\022\035\n\031NETWORK_DENIAL_OF" + + "_SERVICE\020\021\022\033\n\027CLOUD_SERVICE_DISCOVERY\0200\022" + + "\"\n\036STEAL_APPLICATION_ACCESS_TOKEN\020*\022\032\n\026A" + + "CCOUNT_ACCESS_REMOVAL\0203\022\"\n\036TRANSFER_DATA" + + "_TO_CLOUD_ACCOUNT\020[\022\034\n\030STEAL_WEB_SESSION" + + "_COOKIE\020\031\022#\n\037CREATE_OR_MODIFY_SYSTEM_PRO" + + "CESS\020\030\022\035\n\031EVENT_TRIGGERED_EXECUTION\020A\022%\n" + + "!BOOT_OR_LOGON_AUTOSTART_EXECUTION\020R\022!\n\035" + + "KERNEL_MODULES_AND_EXTENSIONS\020S\022\031\n\025SHORT" + + "CUT_MODIFICATION\020\177\022%\n!ABUSE_ELEVATION_CO" + + "NTROL_MECHANISM\020\"\0228\n3ABUSE_ELEVATION_CON" + + "TROL_MECHANISM_SETUID_AND_SETGID\020\210\001\022;\n7A" + + "BUSE_ELEVATION_CONTROL_MECHANISM_SUDO_AN" + + "D_SUDO_CACHING\020m\022\031\n\025UNSECURED_CREDENTIAL" + + "S\020\r\022\030\n\024CREDENTIALS_IN_FILES\020i\022\020\n\014BASH_HI" + + "STORY\020`\022\020\n\014PRIVATE_KEYS\020a\022\031\n\025SUBVERT_TRU" + + "ST_CONTROL\020j\022\034\n\030INSTALL_ROOT_CERTIFICATE" + + "\020k\022#\n\037COMPROMISE_HOST_SOFTWARE_BINARY\020T\022" + + "$\n CREDENTIALS_FROM_PASSWORD_STORES\020b\022!\n" + + "\035MODIFY_AUTHENTICATION_PROCESS\020\034\022$\n PLUG" + + "GABLE_AUTHENTICATION_MODULES\020l\022 \n\033MULTI_" + + "FACTOR_AUTHENTICATION\020\211\001\022\023\n\017IMPAIR_DEFEN" + + "SES\020\037\022\033\n\027DISABLE_OR_MODIFY_TOOLS\0207\022\026\n\022IN" + + "DICATOR_BLOCKING\020n\022(\n$DISABLE_OR_MODIFY_" + + "LINUX_AUDIT_SYSTEM\020o\022\022\n\016HIDE_ARTIFACTS\020U" + + "\022 \n\034HIDDEN_FILES_AND_DIRECTORIES\020V\022\020\n\014HI" + + "DDEN_USERS\020W\022!\n\035EXFILTRATION_OVER_WEB_SE" + + "RVICE\020\024\022!\n\035EXFILTRATION_TO_CLOUD_STORAGE" + + "\020\025\022\026\n\022DYNAMIC_RESOLUTION\020\014\022\031\n\025LATERAL_TO" + + "OL_TRANSFER\020)\022\031\n\025HIJACK_EXECUTION_FLOW\020p" + + "\0222\n.HIJACK_EXECUTION_FLOW_DYNAMIC_LINKER" + + "_HIJACKING\020q\022\'\n#MODIFY_CLOUD_COMPUTE_INF" + + "RASTRUCTURE\020\032\022\023\n\017CREATE_SNAPSHOT\0206\022\"\n\036CL" + + "OUD_INFRASTRUCTURE_DISCOVERY\0205\022\030\n\024DEVELO" + + "P_CAPABILITIES\020c\022 \n\034DEVELOP_CAPABILITIES" + + "_MALWARE\020d\022\027\n\023OBTAIN_CAPABILITIES\020+\022\037\n\033O" + + "BTAIN_CAPABILITIES_MALWARE\020e\022(\n#OBTAIN_C" + + "APABILITIES_VULNERABILITIES\020\205\001\022\023\n\017ACTIVE" + + "_SCANNING\020\001\022\026\n\022SCANNING_IP_BLOCKS\020\002\022\026\n\022S" + + "TAGE_CAPABILITIES\020X\022\022\n\016UPLOAD_MALWARE\020f\022" + + "$\n CONTAINER_ADMINISTRATION_COMMAND\020<\022\024\n" + + "\020DEPLOY_CONTAINER\020B\022\022\n\016ESCAPE_TO_HOST\020=\022" + + "$\n CONTAINER_AND_RESOURCE_DISCOVERY\0209\022\033\n" + + "\027REFLECTIVE_CODE_LOADING\020\\\022.\n*STEAL_OR_F" + + "ORGE_AUTHENTICATION_CERTIFICATES\020>\022\024\n\017FI" + + "NANCIAL_THEFT\020\203\001B\352\001\n\"com.google.cloud.se" + + "curitycenter.v2B\020MitreAttackProtoP\001ZJclo" + + "ud.google.com/go/securitycenter/apiv2/se" + + "curitycenterpb;securitycenterpb\252\002\036Google" + + ".Cloud.SecurityCenter.V2\312\002\036Google\\Cloud\\" + + "SecurityCenter\\V2\352\002!Google::Cloud::Secur" + + "ityCenter::V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/Network.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/Network.java new file mode 100644 index 000000000000..512278f71d6f --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/Network.java @@ -0,0 +1,640 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v2/network.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.securitycenter.v2; + +/** + * + * + *
      + * Contains information about a VPC network associated with the finding.
      + * 
      + * + * Protobuf type {@code google.cloud.securitycenter.v2.Network} + */ +public final class Network extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v2.Network) + NetworkOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Network.newBuilder() to construct. + private Network(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Network() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Network(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v2.NetworkProto + .internal_static_google_cloud_securitycenter_v2_Network_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v2.NetworkProto + .internal_static_google_cloud_securitycenter_v2_Network_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v2.Network.class, + com.google.cloud.securitycenter.v2.Network.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * The name of the VPC network resource, for example,
      +   * `//compute.googleapis.com/projects/my-project/global/networks/my-network`.
      +   * 
      + * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +   * The name of the VPC network resource, for example,
      +   * `//compute.googleapis.com/projects/my-project/global/networks/my-network`.
      +   * 
      + * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycenter.v2.Network)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v2.Network other = + (com.google.cloud.securitycenter.v2.Network) 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.cloud.securitycenter.v2.Network parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.Network parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.Network parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.Network parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.Network parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.Network parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.Network parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.Network parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.Network parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.Network parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.Network parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.Network parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.securitycenter.v2.Network prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Contains information about a VPC network associated with the finding.
      +   * 
      + * + * Protobuf type {@code google.cloud.securitycenter.v2.Network} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v2.Network) + com.google.cloud.securitycenter.v2.NetworkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v2.NetworkProto + .internal_static_google_cloud_securitycenter_v2_Network_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v2.NetworkProto + .internal_static_google_cloud_securitycenter_v2_Network_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v2.Network.class, + com.google.cloud.securitycenter.v2.Network.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v2.Network.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v2.NetworkProto + .internal_static_google_cloud_securitycenter_v2_Network_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.Network getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v2.Network.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.Network build() { + com.google.cloud.securitycenter.v2.Network result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.Network buildPartial() { + com.google.cloud.securitycenter.v2.Network result = + new com.google.cloud.securitycenter.v2.Network(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.securitycenter.v2.Network result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v2.Network) { + return mergeFrom((com.google.cloud.securitycenter.v2.Network) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v2.Network other) { + if (other == com.google.cloud.securitycenter.v2.Network.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_ = ""; + + /** + * + * + *
      +     * The name of the VPC network resource, for example,
      +     * `//compute.googleapis.com/projects/my-project/global/networks/my-network`.
      +     * 
      + * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * The name of the VPC network resource, for example,
      +     * `//compute.googleapis.com/projects/my-project/global/networks/my-network`.
      +     * 
      + * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * The name of the VPC network resource, for example,
      +     * `//compute.googleapis.com/projects/my-project/global/networks/my-network`.
      +     * 
      + * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The name of the VPC network resource, for example,
      +     * `//compute.googleapis.com/projects/my-project/global/networks/my-network`.
      +     * 
      + * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * The name of the VPC network resource, for example,
      +     * `//compute.googleapis.com/projects/my-project/global/networks/my-network`.
      +     * 
      + * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v2.Network) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v2.Network) + private static final com.google.cloud.securitycenter.v2.Network DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v2.Network(); + } + + public static com.google.cloud.securitycenter.v2.Network getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Network parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.Network getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/NetworkOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/NetworkOrBuilder.java new file mode 100644 index 000000000000..ac114cc3a4fc --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/NetworkOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v2/network.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.securitycenter.v2; + +public interface NetworkOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v2.Network) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * The name of the VPC network resource, for example,
      +   * `//compute.googleapis.com/projects/my-project/global/networks/my-network`.
      +   * 
      + * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * The name of the VPC network resource, for example,
      +   * `//compute.googleapis.com/projects/my-project/global/networks/my-network`.
      +   * 
      + * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/NetworkProto.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/NetworkProto.java new file mode 100644 index 000000000000..3ac67b021290 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/NetworkProto.java @@ -0,0 +1,68 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v2/network.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.securitycenter.v2; + +public final class NetworkProto { + private NetworkProto() {} + + 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_cloud_securitycenter_v2_Network_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v2_Network_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/cloud/securitycenter/v2/network" + + ".proto\022\036google.cloud.securitycenter.v2\"\027" + + "\n\007Network\022\014\n\004name\030\001 \001(\tB\346\001\n\"com.google.c" + + "loud.securitycenter.v2B\014NetworkProtoP\001ZJ" + + "cloud.google.com/go/securitycenter/apiv2" + + "/securitycenterpb;securitycenterpb\252\002\036Goo" + + "gle.Cloud.SecurityCenter.V2\312\002\036Google\\Clo" + + "ud\\SecurityCenter\\V2\352\002!Google::Cloud::Se" + + "curityCenter::V2b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_cloud_securitycenter_v2_Network_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v2_Network_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v2_Network_descriptor, + new java.lang.String[] { + "Name", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/NotificationConfig.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/NotificationConfig.java index b5322d6be69b..38dc4f95fbb5 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/NotificationConfig.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/NotificationConfig.java @@ -920,6 +920,7 @@ public com.google.protobuf.Parser getParserForType() { } } + private int bitField0_; private int notifyConfigCase_ = 0; @SuppressWarnings("serial") @@ -1260,6 +1261,61 @@ public boolean hasStreamingConfig() { .getDefaultInstance(); } + public static final int UPDATE_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
      +   * Output only. The timestamp of when the notification config was last
      +   * 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_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Output only. The timestamp of when the notification config was last
      +   * 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 timestamp of when the notification config was last
      +   * 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_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1290,6 +1346,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 5, (com.google.cloud.securitycenter.v2.NotificationConfig.StreamingConfig) notifyConfig_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(7, getUpdateTime()); + } getUnknownFields().writeTo(output); } @@ -1318,6 +1377,9 @@ public int getSerializedSize() { (com.google.cloud.securitycenter.v2.NotificationConfig.StreamingConfig) notifyConfig_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1338,6 +1400,10 @@ public boolean equals(final java.lang.Object obj) { if (!getDescription().equals(other.getDescription())) return false; if (!getPubsubTopic().equals(other.getPubsubTopic())) return false; if (!getServiceAccount().equals(other.getServiceAccount())) return false; + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } if (!getNotifyConfigCase().equals(other.getNotifyConfigCase())) return false; switch (notifyConfigCase_) { case 5: @@ -1365,6 +1431,10 @@ public int hashCode() { hash = (53 * hash) + getPubsubTopic().hashCode(); hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; hash = (53 * hash) + getServiceAccount().hashCode(); + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } switch (notifyConfigCase_) { case 5: hash = (37 * hash) + STREAMING_CONFIG_FIELD_NUMBER; @@ -1507,10 +1577,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.securitycenter.v2.NotificationConfig.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getUpdateTimeFieldBuilder(); + } } @java.lang.Override @@ -1524,6 +1603,11 @@ public Builder clear() { if (streamingConfigBuilder_ != null) { streamingConfigBuilder_.clear(); } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } notifyConfigCase_ = 0; notifyConfig_ = null; return this; @@ -1575,6 +1659,12 @@ private void buildPartial0(com.google.cloud.securitycenter.v2.NotificationConfig if (((from_bitField0_ & 0x00000008) != 0)) { result.serviceAccount_ = serviceAccount_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.google.cloud.securitycenter.v2.NotificationConfig result) { @@ -1651,6 +1741,9 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v2.NotificationConfig o bitField0_ |= 0x00000008; onChanged(); } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } switch (other.getNotifyConfigCase()) { case STREAMING_CONFIG: { @@ -1718,6 +1811,12 @@ public Builder mergeFrom( notifyConfigCase_ = 5; break; } // case 42 + case 58: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2498,6 +2597,227 @@ public Builder clearStreamingConfig() { return streamingConfigBuilder_; } + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
      +     * Output only. The timestamp of when the notification config was last
      +     * 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_ & 0x00000020) != 0); + } + + /** + * + * + *
      +     * Output only. The timestamp of when the notification config was last
      +     * 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 timestamp of when the notification config was last
      +     * 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_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The timestamp of when the notification config was last
      +     * 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_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The timestamp of when the notification config was last
      +     * 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_ & 0x00000020) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Output only. The timestamp of when the notification config was last
      +     * updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000020); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The timestamp of when the notification config was last
      +     * updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Output only. The timestamp of when the notification config was last
      +     * 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 timestamp of when the notification config was last
      +     * updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/NotificationConfigOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/NotificationConfigOrBuilder.java index bf29f082c0dc..9799d1aef1d0 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/NotificationConfigOrBuilder.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/NotificationConfigOrBuilder.java @@ -189,5 +189,48 @@ public interface NotificationConfigOrBuilder com.google.cloud.securitycenter.v2.NotificationConfig.StreamingConfigOrBuilder getStreamingConfigOrBuilder(); + /** + * + * + *
      +   * Output only. The timestamp of when the notification config was last
      +   * 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 timestamp of when the notification config was last
      +   * updated.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
      +   * Output only. The timestamp of when the notification config was last
      +   * updated.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + com.google.cloud.securitycenter.v2.NotificationConfig.NotifyConfigCase getNotifyConfigCase(); } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/NotificationConfigProto.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/NotificationConfigProto.java index 5489168c8b0e..eae4472e1a47 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/NotificationConfigProto.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/NotificationConfigProto.java @@ -48,32 +48,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n8google/cloud/securitycenter/v2/notific" + "ation_config.proto\022\036google.cloud.securit" + "ycenter.v2\032\037google/api/field_behavior.pr" - + "oto\032\031google/api/resource.proto\"\211\005\n\022Notif" - + "icationConfig\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\023\n\013desc" - + "ription\030\002 \001(\t\0226\n\014pubsub_topic\030\003 \001(\tB \372A\035" - + "\n\033pubsub.googleapis.com/Topic\022\034\n\017service" - + "_account\030\004 \001(\tB\003\340A\003\022^\n\020streaming_config\030" - + "\005 \001(\0132B.google.cloud.securitycenter.v2.N" - + "otificationConfig.StreamingConfigH\000\032!\n\017S" - + "treamingConfig\022\016\n\006filter\030\001 \001(\t:\340\002\352A\334\002\n0s" - + "ecuritycenter.googleapis.com/Notificatio" - + "nConfig\022[organizations/{organization}/lo" - + "cations/{location}/notificationConfigs/{" - + "notification_config}\022Ofolders/{folder}/l" - + "ocations/{location}/notificationConfigs/" - + "{notification_config}\022Qprojects/{project" - + "}/locations/{location}/notificationConfi" - + "gs/{notification_config}*\023notificationCo" - + "nfigs2\022notificationConfigB\017\n\rnotify_conf" - + "igB\264\002\n\"com.google.cloud.securitycenter.v" - + "2B\027NotificationConfigProtoP\001ZJcloud.goog" - + "le.com/go/securitycenter/apiv2/securityc" - + "enterpb;securitycenterpb\252\002\036Google.Cloud." - + "SecurityCenter.V2\312\002\036Google\\Cloud\\Securit" - + "yCenter\\V2\352\002!Google::Cloud::SecurityCent" - + "er::V2\352A@\n\033pubsub.googleapis.com/Topic\022!" - + "projects/{project}/topics/{topic}b\006proto" - + "3" + + "oto\032\031google/api/resource.proto\032\037google/p" + + "rotobuf/timestamp.proto\"\277\005\n\022Notification" + + "Config\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\023\n\013description" + + "\030\002 \001(\t\0226\n\014pubsub_topic\030\003 \001(\tB \372A\035\n\033pubsu" + + "b.googleapis.com/Topic\022\034\n\017service_accoun" + + "t\030\004 \001(\tB\003\340A\003\022^\n\020streaming_config\030\005 \001(\0132B" + + ".google.cloud.securitycenter.v2.Notifica" + + "tionConfig.StreamingConfigH\000\0224\n\013update_t" + + "ime\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340" + + "A\003\032!\n\017StreamingConfig\022\016\n\006filter\030\001 \001(\t:\340\002" + + "\352A\334\002\n0securitycenter.googleapis.com/Noti" + + "ficationConfig\022[organizations/{organizat" + + "ion}/locations/{location}/notificationCo" + + "nfigs/{notification_config}\022Ofolders/{fo" + + "lder}/locations/{location}/notificationC" + + "onfigs/{notification_config}\022Qprojects/{" + + "project}/locations/{location}/notificati" + + "onConfigs/{notification_config}*\023notific" + + "ationConfigs2\022notificationConfigB\017\n\rnoti" + + "fy_configB\264\002\n\"com.google.cloud.securityc" + + "enter.v2B\027NotificationConfigProtoP\001ZJclo" + + "ud.google.com/go/securitycenter/apiv2/se" + + "curitycenterpb;securitycenterpb\252\002\036Google" + + ".Cloud.SecurityCenter.V2\312\002\036Google\\Cloud\\" + + "SecurityCenter\\V2\352\002!Google::Cloud::Secur" + + "ityCenter::V2\352A@\n\033pubsub.googleapis.com/" + + "Topic\022!projects/{project}/topics/{topic}" + + "b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -81,6 +83,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_cloud_securitycenter_v2_NotificationConfig_descriptor = getDescriptor().getMessageTypes().get(0); @@ -93,6 +96,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PubsubTopic", "ServiceAccount", "StreamingConfig", + "UpdateTime", "NotifyConfig", }); internal_static_google_cloud_securitycenter_v2_NotificationConfig_StreamingConfig_descriptor = @@ -115,6 +119,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { descriptor, registry); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/Process.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/Process.java index 9be0bf38c128..33cbf6792d35 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/Process.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/Process.java @@ -527,6 +527,26 @@ public long getParentPid() { return parentPid_; } + public static final int USER_ID_FIELD_NUMBER = 11; + private long userId_ = 0L; + + /** + * + * + *
      +   * The ID of the user that executed the process. E.g. If this is the root user
      +   * this will always be 0.
      +   * 
      + * + * int64 user_id = 11; + * + * @return The userId. + */ + @java.lang.Override + public long getUserId() { + return userId_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -571,6 +591,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (parentPid_ != 0L) { output.writeInt64(10, parentPid_); } + if (userId_ != 0L) { + output.writeInt64(11, userId_); + } getUnknownFields().writeTo(output); } @@ -615,6 +638,9 @@ public int getSerializedSize() { if (parentPid_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(10, parentPid_); } + if (userId_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(11, userId_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -647,6 +673,7 @@ public boolean equals(final java.lang.Object obj) { if (getEnvVariablesTruncated() != other.getEnvVariablesTruncated()) return false; if (getPid() != other.getPid()) return false; if (getParentPid() != other.getParentPid()) return false; + if (getUserId() != other.getUserId()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -688,6 +715,8 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPid()); hash = (37 * hash) + PARENT_PID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getParentPid()); + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUserId()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -870,6 +899,7 @@ public Builder clear() { envVariablesTruncated_ = false; pid_ = 0L; parentPid_ = 0L; + userId_ = 0L; return this; } @@ -956,6 +986,9 @@ private void buildPartial0(com.google.cloud.securitycenter.v2.Process result) { if (((from_bitField0_ & 0x00000200) != 0)) { result.parentPid_ = parentPid_; } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.userId_ = userId_; + } result.bitField0_ |= to_bitField0_; } @@ -1091,6 +1124,9 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v2.Process other) { if (other.getParentPid() != 0L) { setParentPid(other.getParentPid()); } + if (other.getUserId() != 0L) { + setUserId(other.getUserId()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1193,6 +1229,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000200; break; } // case 80 + case 88: + { + userId_ = input.readInt64(); + bitField0_ |= 0x00000400; + break; + } // case 88 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2889,6 +2931,65 @@ public Builder clearParentPid() { return this; } + private long userId_; + + /** + * + * + *
      +     * The ID of the user that executed the process. E.g. If this is the root user
      +     * this will always be 0.
      +     * 
      + * + * int64 user_id = 11; + * + * @return The userId. + */ + @java.lang.Override + public long getUserId() { + return userId_; + } + + /** + * + * + *
      +     * The ID of the user that executed the process. E.g. If this is the root user
      +     * this will always be 0.
      +     * 
      + * + * int64 user_id = 11; + * + * @param value The userId to set. + * @return This builder for chaining. + */ + public Builder setUserId(long value) { + + userId_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The ID of the user that executed the process. E.g. If this is the root user
      +     * this will always be 0.
      +     * 
      + * + * int64 user_id = 11; + * + * @return This builder for chaining. + */ + public Builder clearUserId() { + bitField0_ = (bitField0_ & ~0x00000400); + userId_ = 0L; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ProcessOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ProcessOrBuilder.java index 78b89e380bd3..6213a04632d2 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ProcessOrBuilder.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ProcessOrBuilder.java @@ -352,4 +352,18 @@ com.google.cloud.securitycenter.v2.EnvironmentVariableOrBuilder getEnvVariablesO * @return The parentPid. */ long getParentPid(); + + /** + * + * + *
      +   * The ID of the user that executed the process. E.g. If this is the root user
      +   * this will always be 0.
      +   * 
      + * + * int64 user_id = 11; + * + * @return The userId. + */ + long getUserId(); } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ProcessProto.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ProcessProto.java index 576f0ec6e845..a64ec34d1d85 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ProcessProto.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ProcessProto.java @@ -45,32 +45,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n" - + ",google/cloud/securitycenter/v2/process" + "\n,google/cloud/securitycenter/v2/process" + ".proto\022\036google.cloud.securitycenter.v2\032)" - + "google/cloud/securitycenter/v2/file.proto\"\365\002\n" - + "\007Process\022\014\n" - + "\004name\030\001 \001(\t\0224\n" - + "\006binary\030\002 \001(\0132$.google.cloud.securitycenter.v2.File\0227\n" - + "\tlibraries\030\003 \003(\0132$.google.cloud.securitycenter.v2.File\0224\n" - + "\006script\030\004 \001(\0132$.google.cloud.securitycenter.v2.File\022\014\n" - + "\004args\030\005 \003(\t\022\033\n" - + "\023arguments_truncated\030\006 \001(\010\022J\n\r" - + "env_variables\030\007" - + " \003(\01323.google.cloud.securitycenter.v2.EnvironmentVariable\022\037\n" - + "\027env_variables_truncated\030\010 \001(\010\022\013\n" - + "\003pid\030\t \001(\003\022\022\n" - + "\n" - + "parent_pid\030\n" - + " \001(\003\"0\n" - + "\023EnvironmentVariable\022\014\n" - + "\004name\030\001 \001(\t\022\013\n" - + "\003val\030\002 \001(\tB\346\001\n" - + "\"com.google.cloud.securitycenter.v2B\014ProcessProto" - + "P\001ZJcloud.google.com/go/securitycenter/a" - + "piv2/securitycenterpb;securitycenterpb\252\002" - + "\036Google.Cloud.SecurityCenter.V2\312\002\036Google" - + "\\Cloud\\SecurityCenter\\V2\352\002!Google::Cloud::SecurityCenter::V2b\006proto3" + + "google/cloud/securitycenter/v2/file.prot" + + "o\"\206\003\n\007Process\022\014\n\004name\030\001 \001(\t\0224\n\006binary\030\002 " + + "\001(\0132$.google.cloud.securitycenter.v2.Fil" + + "e\0227\n\tlibraries\030\003 \003(\0132$.google.cloud.secu" + + "ritycenter.v2.File\0224\n\006script\030\004 \001(\0132$.goo" + + "gle.cloud.securitycenter.v2.File\022\014\n\004args" + + "\030\005 \003(\t\022\033\n\023arguments_truncated\030\006 \001(\010\022J\n\re" + + "nv_variables\030\007 \003(\01323.google.cloud.securi" + + "tycenter.v2.EnvironmentVariable\022\037\n\027env_v" + + "ariables_truncated\030\010 \001(\010\022\013\n\003pid\030\t \001(\003\022\022\n" + + "\nparent_pid\030\n \001(\003\022\017\n\007user_id\030\013 \001(\003\"0\n\023En" + + "vironmentVariable\022\014\n\004name\030\001 \001(\t\022\013\n\003val\030\002" + + " \001(\tB\346\001\n\"com.google.cloud.securitycenter" + + ".v2B\014ProcessProtoP\001ZJcloud.google.com/go" + + "/securitycenter/apiv2/securitycenterpb;s" + + "ecuritycenterpb\252\002\036Google.Cloud.SecurityC" + + "enter.V2\312\002\036Google\\Cloud\\SecurityCenter\\V" + + "2\352\002!Google::Cloud::SecurityCenter::V2b\006p" + + "roto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -94,6 +89,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EnvVariablesTruncated", "Pid", "ParentPid", + "UserId", }); internal_static_google_cloud_securitycenter_v2_EnvironmentVariable_descriptor = getDescriptor().getMessageTypes().get(1); diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ResourceProto.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ResourceProto.java index 348b9356c040..01c922852884 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ResourceProto.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ResourceProto.java @@ -89,80 +89,110 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n-google/cloud/securitycenter/v2/resourc" + "\n" + + "-google/cloud/securitycenter/v2/resourc" + "e.proto\022\036google.cloud.securitycenter.v2\032" - + "\037google/api/field_behavior.proto\032+google" - + "/cloud/securitycenter/v2/folder.proto\"\367\003" - + "\n\010Resource\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name" - + "\030\002 \001(\t\022\014\n\004type\030\003 \001(\t\022E\n\016cloud_provider\030\004" - + " \001(\0162-.google.cloud.securitycenter.v2.Cl" - + "oudProvider\022\017\n\007service\030\005 \001(\t\022\020\n\010location" - + "\030\006 \001(\t\022C\n\014gcp_metadata\030\007 \001(\0132+.google.cl" - + "oud.securitycenter.v2.GcpMetadataH\000\022C\n\014a" - + "ws_metadata\030\010 \001(\0132+.google.cloud.securit" - + "ycenter.v2.AwsMetadataH\000\022G\n\016azure_metada" - + "ta\030\t \001(\0132-.google.cloud.securitycenter.v" - + "2.AzureMetadataH\000\022C\n\rresource_path\030\n \001(\013" - + "2,.google.cloud.securitycenter.v2.Resour" - + "cePath\022\034\n\024resource_path_string\030\013 \001(\tB\031\n\027" - + "cloud_provider_metadata\"\275\001\n\013GcpMetadata\022" - + "\017\n\007project\030\001 \001(\t\022\034\n\024project_display_name" - + "\030\002 \001(\t\022\016\n\006parent\030\003 \001(\t\022\033\n\023parent_display" - + "_name\030\004 \001(\t\022<\n\007folders\030\005 \003(\0132&.google.cl" - + "oud.securitycenter.v2.FolderB\003\340A\003\022\024\n\014org" - + "anization\030\006 \001(\t\"\204\003\n\013AwsMetadata\022Q\n\014organ" - + "ization\030\001 \001(\0132;.google.cloud.securitycen" - + "ter.v2.AwsMetadata.AwsOrganization\022_\n\024or" - + "ganizational_units\030\002 \003(\0132A.google.cloud." - + "securitycenter.v2.AwsMetadata.AwsOrganiz" - + "ationalUnit\022G\n\007account\030\003 \001(\01326.google.cl" - + "oud.securitycenter.v2.AwsMetadata.AwsAcc" - + "ount\032\035\n\017AwsOrganization\022\n\n\002id\030\001 \001(\t\0321\n\025A" - + "wsOrganizationalUnit\022\n\n\002id\030\001 \001(\t\022\014\n\004name" - + "\030\002 \001(\t\032&\n\nAwsAccount\022\n\n\002id\030\001 \001(\t\022\014\n\004name" - + "\030\002 \001(\t\"\274\004\n\rAzureMetadata\022]\n\021management_g" - + "roups\030\001 \003(\0132B.google.cloud.securitycente" - + "r.v2.AzureMetadata.AzureManagementGroup\022" - + "U\n\014subscription\030\002 \001(\0132?.google.cloud.sec" - + "uritycenter.v2.AzureMetadata.AzureSubscr" - + "iption\022X\n\016resource_group\030\003 \001(\0132@.google." - + "cloud.securitycenter.v2.AzureMetadata.Az" - + "ureResourceGroup\022I\n\006tenant\030\007 \001(\01329.googl" - + "e.cloud.securitycenter.v2.AzureMetadata." - + "AzureTenant\0328\n\024AzureManagementGroup\022\n\n\002i" - + "d\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\0325\n\021AzureSu" - + "bscription\022\n\n\002id\030\001 \001(\t\022\024\n\014display_name\030\002" - + " \001(\t\032.\n\022AzureResourceGroup\022\n\n\002id\030\002 \001(\t\022\014" - + "\n\004name\030\001 \001(\t\032/\n\013AzureTenant\022\n\n\002id\030\001 \001(\t\022" - + "\024\n\014display_name\030\002 \001(\t\"\364\003\n\014ResourcePath\022L" - + "\n\005nodes\030\001 \003(\0132=.google.cloud.securitycen" - + "ter.v2.ResourcePath.ResourcePathNode\032\212\001\n" - + "\020ResourcePathNode\022T\n\tnode_type\030\001 \001(\0162A.g" - + "oogle.cloud.securitycenter.v2.ResourcePa" - + "th.ResourcePathNodeType\022\n\n\002id\030\002 \001(\t\022\024\n\014d" - + "isplay_name\030\003 \001(\t\"\210\002\n\024ResourcePathNodeTy" - + "pe\022\'\n#RESOURCE_PATH_NODE_TYPE_UNSPECIFIE" - + "D\020\000\022\024\n\020GCP_ORGANIZATION\020\001\022\016\n\nGCP_FOLDER\020" - + "\002\022\017\n\013GCP_PROJECT\020\003\022\024\n\020AWS_ORGANIZATION\020\004" - + "\022\033\n\027AWS_ORGANIZATIONAL_UNIT\020\005\022\017\n\013AWS_ACC" - + "OUNT\020\006\022\032\n\026AZURE_MANAGEMENT_GROUP\020\007\022\026\n\022AZ" - + "URE_SUBSCRIPTION\020\010\022\030\n\024AZURE_RESOURCE_GRO" - + "UP\020\t*x\n\rCloudProvider\022\036\n\032CLOUD_PROVIDER_" - + "UNSPECIFIED\020\000\022\031\n\025GOOGLE_CLOUD_PLATFORM\020\001" - + "\022\027\n\023AMAZON_WEB_SERVICES\020\002\022\023\n\017MICROSOFT_A" - + "ZURE\020\003B\347\001\n\"com.google.cloud.securitycent" - + "er.v2B\rResourceProtoP\001ZJcloud.google.com" - + "/go/securitycenter/apiv2/securitycenterp" - + "b;securitycenterpb\252\002\036Google.Cloud.Securi" - + "tyCenter.V2\312\002\036Google\\Cloud\\SecurityCente" - + "r\\V2\352\002!Google::Cloud::SecurityCenter::V2" - + "b\006proto3" + + "\037google/api/field_behavior.proto\032\031google" + + "/api/resource.proto\032+google/cloud/securitycenter/v2/folder.proto\"\367\003\n" + + "\010Resource\022\014\n" + + "\004name\030\001 \001(\t\022\024\n" + + "\014display_name\030\002 \001(\t\022\014\n" + + "\004type\030\003 \001(\t\022E\n" + + "\016cloud_provider\030\004 \001(\0162-.google" + + ".cloud.securitycenter.v2.CloudProvider\022\017\n" + + "\007service\030\005 \001(\t\022\020\n" + + "\010location\030\006 \001(\t\022C\n" + + "\014gcp_metadata\030\007" + + " \001(\0132+.google.cloud.securitycenter.v2.GcpMetadataH\000\022C\n" + + "\014aws_metadata\030\010" + + " \001(\0132+.google.cloud.securitycenter.v2.AwsMetadataH\000\022G\n" + + "\016azure_metadata\030\t \001(\0132-.go" + + "ogle.cloud.securitycenter.v2.AzureMetadataH\000\022C\n\r" + + "resource_path\030\n" + + " \001(\0132,.google.cloud.securitycenter.v2.ResourcePath\022\034\n" + + "\024resource_path_string\030\013 \001(\tB\031\n" + + "\027cloud_provider_metadata\"\275\001\n" + + "\013GcpMetadata\022\017\n" + + "\007project\030\001 \001(\t\022\034\n" + + "\024project_display_name\030\002 \001(\t\022\016\n" + + "\006parent\030\003 \001(\t\022\033\n" + + "\023parent_display_name\030\004 \001(\t\022<\n" + + "\007folders\030\005" + + " \003(\0132&.google.cloud.securitycenter.v2.FolderB\003\340A\003\022\024\n" + + "\014organization\030\006 \001(\t\"\204\003\n" + + "\013AwsMetadata\022Q\n" + + "\014organization\030\001 \001(\013" + + "2;.google.cloud.securitycenter.v2.AwsMetadata.AwsOrganization\022_\n" + + "\024organizational_units\030\002 \003(\0132A.google.cloud.securitycente" + + "r.v2.AwsMetadata.AwsOrganizationalUnit\022G\n" + + "\007account\030\003" + + " \001(\01326.google.cloud.securitycenter.v2.AwsMetadata.AwsAccount\032\035\n" + + "\017AwsOrganization\022\n\n" + + "\002id\030\001 \001(\t\0321\n" + + "\025AwsOrganizationalUnit\022\n\n" + + "\002id\030\001 \001(\t\022\014\n" + + "\004name\030\002 \001(\t\032&\n\n" + + "AwsAccount\022\n\n" + + "\002id\030\001 \001(\t\022\014\n" + + "\004name\030\002 \001(\t\"\274\004\n\r" + + "AzureMetadata\022]\n" + + "\021management_groups\030\001 \003(\0132B" + + ".google.cloud.securitycenter.v2.AzureMetadata.AzureManagementGroup\022U\n" + + "\014subscription\030\002" + + " \001(\0132?.google.cloud.securitycenter.v2.AzureMetadata.AzureSubscription\022X\n" + + "\016resource_group\030\003 \001(\0132@.google.cloud.securit" + + "ycenter.v2.AzureMetadata.AzureResourceGroup\022I\n" + + "\006tenant\030\007 \001(\01329.google.cloud.secur" + + "itycenter.v2.AzureMetadata.AzureTenant\0328\n" + + "\024AzureManagementGroup\022\n\n" + + "\002id\030\001 \001(\t\022\024\n" + + "\014display_name\030\002 \001(\t\0325\n" + + "\021AzureSubscription\022\n\n" + + "\002id\030\001 \001(\t\022\024\n" + + "\014display_name\030\002 \001(\t\032.\n" + + "\022AzureResourceGroup\022\n\n" + + "\002id\030\002 \001(\t\022\014\n" + + "\004name\030\001 \001(\t\032/\n" + + "\013AzureTenant\022\n\n" + + "\002id\030\001 \001(\t\022\024\n" + + "\014display_name\030\002 \001(\t\"\364\003\n" + + "\014ResourcePath\022L\n" + + "\005nodes\030\001 \003(\013" + + "2=.google.cloud.securitycenter.v2.ResourcePath.ResourcePathNode\032\212\001\n" + + "\020ResourcePathNode\022T\n" + + "\tnode_type\030\001 \001(\0162A.google.cloud.s" + + "ecuritycenter.v2.ResourcePath.ResourcePathNodeType\022\n\n" + + "\002id\030\002 \001(\t\022\024\n" + + "\014display_name\030\003 \001(\t\"\210\002\n" + + "\024ResourcePathNodeType\022\'\n" + + "#RESOURCE_PATH_NODE_TYPE_UNSPECIFIED\020\000\022\024\n" + + "\020GCP_ORGANIZATION\020\001\022\016\n\n" + + "GCP_FOLDER\020\002\022\017\n" + + "\013GCP_PROJECT\020\003\022\024\n" + + "\020AWS_ORGANIZATION\020\004\022\033\n" + + "\027AWS_ORGANIZATIONAL_UNIT\020\005\022\017\n" + + "\013AWS_ACCOUNT\020\006\022\032\n" + + "\026AZURE_MANAGEMENT_GROUP\020\007\022\026\n" + + "\022AZURE_SUBSCRIPTION\020\010\022\030\n" + + "\024AZURE_RESOURCE_GROUP\020\t*x\n\r" + + "CloudProvider\022\036\n" + + "\032CLOUD_PROVIDER_UNSPECIFIED\020\000\022\031\n" + + "\025GOOGLE_CLOUD_PLATFORM\020\001\022\027\n" + + "\023AMAZON_WEB_SERVICES\020\002\022\023\n" + + "\017MICROSOFT_AZURE\020\003B\347\001\n" + + "\"com.google.cloud.securitycenter.v2B\r" + + "ResourceProtoP\001ZJcloud.google.com/go/securityc" + + "enter/apiv2/securitycenterpb;securitycen" + + "terpb\252\002\036Google.Cloud.SecurityCenter.V2\312\002" + + "\036Google\\Cloud\\SecurityCenter\\V2\352\002!Google" + + "::Cloud::SecurityCenter::V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), com.google.cloud.securitycenter.v2.FolderProto.getDescriptor(), }); internal_static_google_cloud_securitycenter_v2_Resource_descriptor = @@ -307,6 +337,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); com.google.cloud.securitycenter.v2.FolderProto.getDescriptor(); } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/SecuritycenterServiceProto.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/SecuritycenterServiceProto.java index bc30ec268859..77a7f9899866 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/SecuritycenterServiceProto.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/SecuritycenterServiceProto.java @@ -84,6 +84,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_securitycenter_v2_DeleteResourceValueConfigRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_securitycenter_v2_DeleteResourceValueConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v2_BigQueryDestination_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v2_BigQueryDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v2_ExportFindingsMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v2_ExportFindingsMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v2_ExportFindingsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v2_ExportFindingsResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_securitycenter_v2_GetBigQueryExportRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -266,31 +278,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "resource.proto\032\036google/iam/v1/iam_policy" + ".proto\032\032google/iam/v1/policy.proto\032#goog" + "le/longrunning/operations.proto\032\033google/protobuf/empty.proto\032" - + " google/protobuf/field_mask.proto\032\034google/protobuf/struct.proto\"\314\001\n" + + " google/protobuf/field_mask.proto\032\034google/protobuf/struct.p" + + "roto\032\037google/protobuf/timestamp.proto\"\314\001\n" + "&BatchCreateResourceValueConfigsRequest\022I\n" - + "\006parent\030\001 \001(\tB9\340A\002\372A3\0221securit" - + "ycenter.googleapis.com/ResourceValueConfig\022W\n" - + "\010requests\030\002 \003(\0132@.google.cloud.secu" - + "ritycenter.v2.CreateResourceValueConfigRequestB\003\340A\002\"~\n" + + "\006parent\030\001 \001(" + + "\tB9\340A\002\372A3\0221securitycenter.googleapis.com/ResourceValueConfig\022W\n" + + "\010requests\030\002 \003(\0132@.google.cloud.securitycen" + + "ter.v2.CreateResourceValueConfigRequestB\003\340A\002\"~\n" + "\'BatchCreateResourceValueConfigsResponse\022S\n" - + "\026resource_value_configs\030\001" - + " \003(\01323.google.cloud.securitycenter.v2.ResourceValueConfig\"\343\001\n" + + "\026resource_value_configs\030\001 \003(\0132" + + "3.google.cloud.securitycenter.v2.ResourceValueConfig\"\343\001\n" + "\027BulkMuteFindingsRequest\022\031\n" + "\006parent\030\001 \001(\tB\t\340A\002\372A\003\n" + "\001*\022\016\n" + "\006filter\030\002 \001(\t\022Z\n\n" - + "mute_state\030\003 \001(\0162A.google." - + "cloud.securitycenter.v2.BulkMuteFindingsRequest.MuteStateB\003\340A\001\"A\n" + + "mute_state\030\003 \001(\0162A.google.cloud.s" + + "ecuritycenter.v2.BulkMuteFindingsRequest.MuteStateB\003\340A\001\"A\n" + "\tMuteState\022\032\n" + "\026MUTE_STATE_UNSPECIFIED\020\000\022\t\n" + "\005MUTED\020\001\022\r\n" + "\tUNDEFINED\020\002\"\032\n" + "\030BulkMuteFindingsResponse\"\324\001\n" + "\033CreateBigQueryExportRequest\022D\n" - + "\006parent\030\001 \001(" - + "\tB4\340A\002\372A.\022,securitycenter.googleapis.com/BigQueryExport\022M\n" - + "\020big_query_export\030\002" - + " \001(\0132..google.cloud.securitycenter.v2.BigQueryExportB\003\340A\002\022 \n" + + "\006parent\030\001 \001(\tB4" + + "\340A\002\372A.\022,securitycenter.googleapis.com/BigQueryExport\022M\n" + + "\020big_query_export\030\002 \001(\0132." + + ".google.cloud.securitycenter.v2.BigQueryExportB\003\340A\002\022 \n" + "\023big_query_export_id\030\003 \001(\tB\003\340A\002\"\254\001\n" + "\024CreateFindingRequest\022<\n" + "\006parent\030\001 \001(\tB,\340A\002\372A&\n" @@ -299,27 +312,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007finding\030\003" + " \001(\0132\'.google.cloud.securitycenter.v2.FindingB\003\340A\002\"\276\001\n" + "\027CreateMuteConfigRequest\022@\n" - + "\006parent\030\001 \001(\tB0\340A\002\372A*\022" - + "(securitycenter.googleapis.com/MuteConfig\022D\n" + + "\006parent\030\001 \001(" + + "\tB0\340A\002\372A*\022(securitycenter.googleapis.com/MuteConfig\022D\n" + "\013mute_config\030\002" + " \001(\0132*.google.cloud.securitycenter.v2.MuteConfigB\003\340A\002\022\033\n" + "\016mute_config_id\030\003 \001(\tB\003\340A\002\"\331\001\n" + "\037CreateNotificationConfigRequest\022H\n" - + "\006parent\030\001 \001(\tB8\340A\002\372A2" - + "\0220securitycenter.googleapis.com/NotificationConfig\022\026\n" + + "\006parent\030\001 \001(\tB8\340A\002\372A2\0220secur" + + "itycenter.googleapis.com/NotificationConfig\022\026\n" + "\tconfig_id\030\002 \001(\tB\003\340A\002\022T\n" - + "\023notification_config\030\003 \001(\01322.google.cloud.s" - + "ecuritycenter.v2.NotificationConfigB\003\340A\002\"\306\001\n" + + "\023notification_config\030\003" + + " \001(\01322.google.cloud.securitycenter.v2.NotificationConfigB\003\340A\002\"\306\001\n" + " CreateResourceValueConfigRequest\022I\n" + "\006parent\030\001 \001(" + "\tB9\340A\002\372A3\0221securitycenter.googleapis.com/ResourceValueConfig\022W\n" - + "\025resource_value_config\030\002 \001(\01323.google.cloud.s" - + "ecuritycenter.v2.ResourceValueConfigB\003\340A\002\"\234\001\n" + + "\025resource_value_config\030\002" + + " \001(\01323.google.cloud.securitycenter.v2.ResourceValueConfigB\003\340A\002\"\234\001\n" + "\023CreateSourceRequest\022H\n" + "\006parent\030\001 \001(\tB8\340A\002\372A2\n" + "0cloudresourcemanager.googleapis.com/Organization\022;\n" - + "\006source\030\002 \001(\0132&.go" - + "ogle.cloud.securitycenter.v2.SourceB\003\340A\002\"a\n" + + "\006source\030\002" + + " \001(\0132&.google.cloud.securitycenter.v2.SourceB\003\340A\002\"a\n" + "\033DeleteBigQueryExportRequest\022B\n" + "\004name\030\001 \001(\tB4\340A\002\372A.\n" + ",securitycenter.googleapis.com/BigQueryExport\"Y\n" @@ -331,7 +344,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "0securitycenter.googleapis.com/NotificationConfig\"k\n" + " DeleteResourceValueConfigRequest\022G\n" + "\004name\030\001 \001(\tB9\340A\002\372A3\n" - + "1securitycenter.googleapis.com/ResourceValueConfig\"^\n" + + "1securitycenter.googleapis.com/ResourceValueConfig\"+\n" + + "\023BigQueryDestination\022\024\n" + + "\007dataset\030\001 \001(\tB\003\340A\002\"\276\001\n" + + "\026ExportFindingsMetadata\022:\n" + + "\021export_start_time\030\001" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001\022Y\n" + + "\025big_query_destination\030\002 \001" + + "(\01323.google.cloud.securitycenter.v2.BigQueryDestinationB\003\340A\002H\000B\r\n" + + "\013destination\"\030\n" + + "\026ExportFindingsResponse\"^\n" + "\030GetBigQueryExportRequest\022B\n" + "\004name\030\001 \001(\tB4\340A\002\372A.\n" + ",securitycenter.googleapis.com/BigQueryExport\"V\n" @@ -355,20 +377,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "page_token\030\007 \001(\t\022\021\n" + "\tpage_size\030\010 \001(\005\"\213\001\n" + "\025GroupFindingsResponse\022E\n" - + "\020group_by_results\030\001" - + " \003(\0132+.google.cloud.securitycenter.v2.GroupResult\022\027\n" + + "\020group_by_results\030\001 \003(\0132+.goo" + + "gle.cloud.securitycenter.v2.GroupResult\022\027\n" + "\017next_page_token\030\003 \001(\t\022\022\n\n" + "total_size\030\004 \001(\005\"\270\001\n" + "\013GroupResult\022O\n\n" - + "properties\030\001 \003(\0132;.google.cloud.s" - + "ecuritycenter.v2.GroupResult.PropertiesEntry\022\r\n" + + "properties\030\001 \003(\013" + + "2;.google.cloud.securitycenter.v2.GroupResult.PropertiesEntry\022\r\n" + "\005count\030\002 \001(\003\032I\n" + "\017PropertiesEntry\022\013\n" + "\003key\030\001 \001(\t\022%\n" + "\005value\030\002 \001(\0132\026.google.protobuf.Value:\0028\001\"\221\001\n" + "\026ListAttackPathsRequest\022@\n" - + "\006parent\030\001 \001(" - + "\tB0\340A\002\372A*\022(securitycenter.googleapis.com/AttackPath\022\016\n" + + "\006parent\030\001 \001(\tB0\340A\002\372" + + "A*\022(securitycenter.googleapis.com/AttackPath\022\016\n" + "\006filter\030\002 \001(\t\022\022\n\n" + "page_token\030\003 \001(\t\022\021\n" + "\tpage_size\030\004 \001(\005\"t\n" @@ -383,13 +405,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB4\340A\002\372A.\n" + ",securitycenter.googleapis.com/ValuedResource\"\211\001\n" + "\032ListBigQueryExportsRequest\022D\n" - + "\006parent\030\001 \001(\tB4\340A\002\372A.\022" - + ",securitycenter.googleapis.com/BigQueryExport\022\021\n" + + "\006parent\030\001 \001(" + + "\tB4\340A\002\372A.\022,securitycenter.googleapis.com/BigQueryExport\022\021\n" + "\tpage_size\030\002 \001(\005\022\022\n\n" + "page_token\030\003 \001(\t\"\201\001\n" + "\033ListBigQueryExportsResponse\022I\n" - + "\021big_query_exports\030\001" - + " \003(\0132..google.cloud.securitycenter.v2.BigQueryExport\022\027\n" + + "\021big_query_exports\030\001 \003(\013" + + "2..google.cloud.securitycenter.v2.BigQueryExport\022\027\n" + "\017next_page_token\030\002 \001(\t\"\314\001\n" + "\023ListFindingsRequest\022<\n" + "\006parent\030\001 \001(\tB,\340A\002\372A&\n" @@ -400,14 +422,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "page_token\030\010 \001(\t\022\021\n" + "\tpage_size\030\t \001(\005\"\337\006\n" + "\024ListFindingsResponse\022f\n" - + "\025list_findings_results\030\001 \003(\0132" - + "G.google.cloud.securitycenter.v2.ListFindingsResponse.ListFindingsResult\022\027\n" + + "\025list_findings_results\030\001 \003(\0132G.google.cloud.security" + + "center.v2.ListFindingsResponse.ListFindingsResult\022\027\n" + "\017next_page_token\030\003 \001(\t\022\022\n\n" + "total_size\030\004 \001(\005\032\261\005\n" + "\022ListFindingsResult\0228\n" + "\007finding\030\001 \001(\0132\'.google.cloud.securitycenter.v2.Finding\022g\n" - + "\010resource\030\003 \001(\0132P.google.cloud.security" - + "center.v2.ListFindingsResponse.ListFindingsResult.ResourceB\003\340A\003\032\367\003\n" + + "\010resource\030\003 \001(\0132P.google.cloud.securitycenter.v2.ListFindingsR" + + "esponse.ListFindingsResult.ResourceB\003\340A\003\032\367\003\n" + "\010Resource\022\014\n" + "\004name\030\001 \001(\t\022\024\n" + "\014display_name\030\002 \001(\t\022\014\n" @@ -416,19 +438,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0162-.google.cloud.securitycenter.v2.CloudProvider\022\017\n" + "\007service\030\005 \001(\t\022\020\n" + "\010location\030\006 \001(\t\022C\n" - + "\014gcp_metadata\030\007" - + " \001(\0132+.google.cloud.securitycenter.v2.GcpMetadataH\000\022C\n" - + "\014aws_metadata\030\010 " - + "\001(\0132+.google.cloud.securitycenter.v2.AwsMetadataH\000\022G\n" - + "\016azure_metadata\030\t \001(\0132-.goo" - + "gle.cloud.securitycenter.v2.AzureMetadataH\000\022C\n\r" + + "\014gcp_metadata\030\007 \001(\0132+.google" + + ".cloud.securitycenter.v2.GcpMetadataH\000\022C\n" + + "\014aws_metadata\030\010" + + " \001(\0132+.google.cloud.securitycenter.v2.AwsMetadataH\000\022G\n" + + "\016azure_metadata\030\t" + + " \001(\0132-.google.cloud.securitycenter.v2.AzureMetadataH\000\022C\n\r" + "resource_path\030\n" + " \001(\0132,.google.cloud.securitycenter.v2.ResourcePath\022\034\n" + "\024resource_path_string\030\013 \001(\tB\031\n" + "\027cloud_provider_metadata\"\201\001\n" + "\026ListMuteConfigsRequest\022@\n" - + "\006parent\030\001 \001(" - + "\tB0\340A\002\372A*\022(securitycenter.googleapis.com/MuteConfig\022\021\n" + + "\006parent\030\001 \001(\tB0\340A\002\372A*\022(s" + + "ecuritycenter.googleapis.com/MuteConfig\022\021\n" + "\tpage_size\030\002 \001(\005\022\022\n\n" + "page_token\030\003 \001(\t\"t\n" + "\027ListMuteConfigsResponse\022@\n" @@ -436,22 +458,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\0132*.google.cloud.securitycenter.v2.MuteConfig\022\027\n" + "\017next_page_token\030\002 \001(\t\"\221\001\n" + "\036ListNotificationConfigsRequest\022H\n" - + "\006parent\030\001 \001(\tB8\340A\002\372A2\0220" - + "securitycenter.googleapis.com/NotificationConfig\022\022\n\n" + + "\006parent\030\001 \001(" + + "\tB8\340A\002\372A2\0220securitycenter.googleapis.com/NotificationConfig\022\022\n\n" + "page_token\030\002 \001(\t\022\021\n" + "\tpage_size\030\003 \001(\005\"\214\001\n" + "\037ListNotificationConfigsResponse\022P\n" - + "\024notification_configs\030\001 \003(\01322.goog" - + "le.cloud.securitycenter.v2.NotificationConfig\022\027\n" + + "\024notification_configs\030\001" + + " \003(\01322.google.cloud.securitycenter.v2.NotificationConfig\022\027\n" + "\017next_page_token\030\002 \001(\t\"\223\001\n" + "\037ListResourceValueConfigsRequest\022I\n" - + "\006parent\030\001 \001(" - + "\tB9\340A\002\372A3\0221securitycenter.googleapis.com/ResourceValueConfig\022\021\n" + + "\006parent\030\001 \001(\tB9\340A\002\372A3\0221securitycen" + + "ter.googleapis.com/ResourceValueConfig\022\021\n" + "\tpage_size\030\002 \001(\005\022\022\n\n" + "page_token\030\003 \001(\t\"\220\001\n" + " ListResourceValueConfigsResponse\022S\n" - + "\026resource_value_configs\030\001" - + " \003(\01323.google.cloud.securitycenter.v2.ResourceValueConfig\022\027\n" + + "\026resource_value_configs\030\001 \003(\01323.google.clou" + + "d.securitycenter.v2.ResourceValueConfig\022\027\n" + "\017next_page_token\030\002 \001(\t\"y\n" + "\022ListSourcesRequest\022<\n" + "\006parent\030\001 \001(" @@ -469,439 +491,438 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tpage_size\030\004 \001(\005\022\025\n" + "\010order_by\030\005 \001(\tB\003\340A\001\"\224\001\n" + "\033ListValuedResourcesResponse\022H\n" - + "\020valued_resources\030\001 \003(\0132..googl" - + "e.cloud.securitycenter.v2.ValuedResource\022\027\n" + + "\020valued_resources\030\001" + + " \003(\0132..google.cloud.securitycenter.v2.ValuedResource\022\027\n" + "\017next_page_token\030\002 \001(\t\022\022\n\n" + "total_size\030\003 \001(\005\"\230\001\n" + "\026SetFindingStateRequest\022;\n" + "\004name\030\001 \001(\tB-\340A\002\372A\'\n" + "%securitycenter.googleapis.com/Finding\022A\n" - + "\005state\030\002 \001(\0162-.google.cl" - + "oud.securitycenter.v2.Finding.StateB\003\340A\002\"\216\001\n" + + "\005state\030\002" + + " \001(\0162-.google.cloud.securitycenter.v2.Finding.StateB\003\340A\002\"\216\001\n" + "\016SetMuteRequest\022;\n" + "\004name\030\001 \001(\tB-\340A\002\372A\'\n" + "%securitycenter.googleapis.com/Finding\022?\n" - + "\004mute\030\002" - + " \001(\0162,.google.cloud.securitycenter.v2.Finding.MuteB\003\340A\002\"\235\001\n" + + "\004mute\030\002 \001(\0162,.google" + + ".cloud.securitycenter.v2.Finding.MuteB\003\340A\002\"\235\001\n" + "\033UpdateBigQueryExportRequest\022M\n" - + "\020big_query_export\030\001 " - + "\001(\0132..google.cloud.securitycenter.v2.BigQueryExportB\003\340A\002\022/\n" + + "\020big_query_export\030\001" + + " \001(\0132..google.cloud.securitycenter.v2.BigQueryExportB\003\340A\002\022/\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"\234\001\n" + "\033UpdateExternalSystemRequest\022L\n" - + "\017external_system\030\001 \001" - + "(\0132..google.cloud.securitycenter.v2.ExternalSystemB\003\340A\002\022/\n" + + "\017external_system\030\001" + + " \001(\0132..google.cloud.securitycenter.v2.ExternalSystemB\003\340A\002\022/\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"\206\001\n" + "\024UpdateFindingRequest\022=\n" - + "\007finding\030\001" - + " \001(\0132\'.google.cloud.securitycenter.v2.FindingB\003\340A\002\022/\n" + + "\007finding\030\001 " + + "\001(\0132\'.google.cloud.securitycenter.v2.FindingB\003\340A\002\022/\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"\220\001\n" + "\027UpdateMuteConfigRequest\022D\n" + "\013mute_config\030\001" + " \001(\0132*.google.cloud.securitycenter.v2.MuteConfigB\003\340A\002\022/\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"\250\001\n" + "\037UpdateNotificationConfigRequest\022T\n" - + "\023notification_config\030\001" - + " \001(\01322.google.cloud.securitycenter.v2.NotificationConfigB\003\340A\002\022/\n" + + "\023notification_config\030\001 \001(\01322.google." + + "cloud.securitycenter.v2.NotificationConfigB\003\340A\002\022/\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"\254\001\n" + " UpdateResourceValueConfigRequest\022W\n" - + "\025resource_value_config\030\001 \001(\01323.google.clo" - + "ud.securitycenter.v2.ResourceValueConfigB\003\340A\002\022/\n" + + "\025resource_value_config\030\001" + + " \001(\01323.google.cloud.securitycenter.v2.ResourceValueConfigB\003\340A\002\022/\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"\231\001\n" + "\032UpdateSecurityMarksRequest\022J\n" - + "\016security_marks\030\001 \001(\0132-.google.c" - + "loud.securitycenter.v2.SecurityMarksB\003\340A\002\022/\n" + + "\016security_marks\030\001" + + " \001(\0132-.google.cloud.securitycenter.v2.SecurityMarksB\003\340A\002\022/\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"\203\001\n" + "\023UpdateSourceRequest\022;\n" + "\006source\030\001" + " \001(\0132&.google.cloud.securitycenter.v2.SourceB\003\340A\002\022/\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMask2\342\201\001\n" + "\016SecurityCenter\022\340\002\n" - + "\037BatchCreateResourceValueConfigs\022F.google.cloud.securitycenter.v2.BatchC" - + "reateResourceValueConfigsRequest\032G.google.cloud.securitycenter.v2.BatchCreateRes" - + "ourceValueConfigsResponse\"\253\001\332A\017parent,re" - + "quests\202\323\344\223\002\222\001\"=/v2/{parent=organizations" - + "/*}/resourceValueConfigs:batchCreate:\001*ZN\"I/v2/{parent=organizations/*/locations" - + "/*}/resourceValueConfigs:batchCreate:\001*\022\232\004\n" - + "\020BulkMuteFindings\0227.google.cloud.secu" - + "ritycenter.v2.BulkMuteFindingsRequest\032\035.google.longrunning.Operation\"\255\003\312AP\n" - + "7google.cloud.securitycenter.v2.BulkMuteFindi" - + "ngsResponse\022\025google.protobuf.Empty\332A\006par" - + "ent\202\323\344\223\002\312\002\"./v2/{parent=organizations/*}" - + "/findings:bulkMute:\001*Z?\":/v2/{parent=organizations/*/locations/*}/findings:bulkM" - + "ute:\001*Z-\"(/v2/{parent=folders/*}/finding" - + "s:bulkMute:\001*Z9\"4/v2/{parent=folders/*/l" - + "ocations/*}/findings:bulkMute:\001*Z.\")/v2/" - + "{parent=projects/*}/findings:bulkMute:\001*" - + "Z:\"5/v2/{parent=projects/*/locations/*}/findings:bulkMute:\001*\022\230\003\n" - + "\024CreateBigQueryExport\022;.google.cloud.securitycenter.v2.C" - + "reateBigQueryExportRequest\032..google.clou" - + "d.securitycenter.v2.BigQueryExport\"\222\002\332A+" - + "parent,big_query_export,big_query_export" - + "_id\202\323\344\223\002\335\001\"8/v2/{parent=organizations/*/" - + "locations/*}/bigQueryExports:\020big_query_exportZF\"2/v2/{parent=folders/*/location" - + "s/*}/bigQueryExports:\020big_query_exportZG" - + "\"3/v2/{parent=projects/*/locations/*}/bigQueryExports:\020big_query_export\022\226\002\n\r" - + "CreateFinding\0224.google.cloud.securitycenter." - + "v2.CreateFindingRequest\032\'.google.cloud.s" - + "ecuritycenter.v2.Finding\"\245\001\332A\031parent,fin" - + "ding,finding_id\202\323\344\223\002\202\001\";/v2/{parent=orga" - + "nizations/*/sources/*/locations/*}/findi" - + "ngs:\007findingZ:\"//v2/{parent=organizations/*/sources/*}/findings:\007finding\022\231\005\n" - + "\020CreateMuteConfig\0227.google.cloud.securitycen" - + "ter.v2.CreateMuteConfigRequest\032*.google." - + "cloud.securitycenter.v2.MuteConfig\"\237\004\332A!" - + "parent,mute_config,mute_config_id\202\323\344\223\002\342\002" - + "\"4/v2/{parent=organizations/*/locations/*}/muteConfigs:\013mute_configZ=\"./v2/{pare" - + "nt=folders/*/locations/*}/muteConfigs:\013mute_configZ>\"//v2/{parent=projects/*/loc" - + "ations/*}/muteConfigs:\013mute_configZ7\"(/v" - + "2/{parent=organizations/*}/muteConfigs:\013mute_configZ1\"\"/v2/{parent=folders/*}/mu" - + "teConfigs:\013mute_configZ2\"#/v2/{parent=pr" - + "ojects/*}/muteConfigs:\013mute_config\212\323\344\223\002\213\001\022+\n" + + "\037BatchCreateResourceValueConfigs\022F.google.cloud.securit" + + "ycenter.v2.BatchCreateResourceValueConfigsRequest\032G.google.cloud.securitycenter." + + "v2.BatchCreateResourceValueConfigsRespon" + + "se\"\253\001\332A\017parent,requests\202\323\344\223\002\222\001\"=/v2/{par" + + "ent=organizations/*}/resourceValueConfigs:batchCreate:\001*ZN\"I/v2/{parent=organiza" + + "tions/*/locations/*}/resourceValueConfigs:batchCreate:\001*\022\232\004\n" + + "\020BulkMuteFindings\0227.google.cloud.securitycenter.v2.BulkMuteF" + + "indingsRequest\032\035.google.longrunning.Operation\"\255\003\312AP\n" + + "7google.cloud.securitycenter.v2.BulkMuteFindingsResponse\022\025google.pro" + + "tobuf.Empty\332A\006parent\202\323\344\223\002\312\002\"./v2/{parent" + + "=organizations/*}/findings:bulkMute:\001*Z?\":/v2/{parent=organizations/*/locations/" + + "*}/findings:bulkMute:\001*Z-\"(/v2/{parent=f" + + "olders/*}/findings:bulkMute:\001*Z9\"4/v2/{parent=folders/*/locations/*}/findings:bu" + + "lkMute:\001*Z.\")/v2/{parent=projects/*}/fin" + + "dings:bulkMute:\001*Z:\"5/v2/{parent=project" + + "s/*/locations/*}/findings:bulkMute:\001*\022\230\003\n" + + "\024CreateBigQueryExport\022;.google.cloud.securitycenter.v2.CreateBigQueryExportRequ" + + "est\032..google.cloud.securitycenter.v2.Big" + + "QueryExport\"\222\002\332A+parent,big_query_export" + + ",big_query_export_id\202\323\344\223\002\335\001\"8/v2/{parent" + + "=organizations/*/locations/*}/bigQueryExports:\020big_query_exportZF\"2/v2/{parent=f" + + "olders/*/locations/*}/bigQueryExports:\020big_query_exportZG\"3/v2/{parent=projects/" + + "*/locations/*}/bigQueryExports:\020big_query_export\022\226\002\n\r" + + "CreateFinding\0224.google.cloud.securitycenter.v2.CreateFindingRequest" + + "\032\'.google.cloud.securitycenter.v2.Findin" + + "g\"\245\001\332A\031parent,finding,finding_id\202\323\344\223\002\202\001\"" + + ";/v2/{parent=organizations/*/sources/*/locations/*}/findings:\007findingZ:\"//v2/{pa" + + "rent=organizations/*/sources/*}/findings:\007finding\022\231\005\n" + + "\020CreateMuteConfig\0227.google.cloud.securitycenter.v2.CreateMuteConfig" + + "Request\032*.google.cloud.securitycenter.v2" + + ".MuteConfig\"\237\004\332A!parent,mute_config,mute" + + "_config_id\202\323\344\223\002\342\002\"4/v2/{parent=organizat" + + "ions/*/locations/*}/muteConfigs:\013mute_configZ=\"./v2/{parent=folders/*/locations/" + + "*}/muteConfigs:\013mute_configZ>\"//v2/{pare" + + "nt=projects/*/locations/*}/muteConfigs:\013mute_configZ7\"(/v2/{parent=organizations" + + "/*}/muteConfigs:\013mute_configZ1\"\"/v2/{par" + + "ent=folders/*}/muteConfigs:\013mute_configZ" + + "2\"#/v2/{parent=projects/*}/muteConfigs:\013mute_config\212\323\344\223\002\213\001\022+\n" + "\006parent\022!projects/*/locations/{location=*}\0220\n" + "\006parent\022&organizations/*/locations/{location=*}\022*\n" + "\006parent\022 folders/*/locations/{location=*}\022\262\003\n" - + "\030CreateNotificationConfig\022?.google.cloud.securitycenter." - + "v2.CreateNotificationConfigRequest\0322.google.cloud.securitycenter.v2.Notification" - + "Config\"\240\002\332A$parent,notification_config,c" - + "onfig_id\202\323\344\223\002\362\001\".go" - + "ogle.cloud.securitycenter.v2.ListNotific" - + "ationConfigsRequest\032?.google.cloud.secur" - + "itycenter.v2.ListNotificationConfigsResp" - + "onse\"\303\001\332A\006parent\202\323\344\223\002\263\001\022/v2/" - + "{name=folders/*/sources/*/locations/*/fi" - + "ndings/*}:setState:\001*Z8\"3/v2/{name=proje" - + "cts/*/sources/*/findings/*}:setState:\001*Z" - + "D\"?/v2/{name=projects/*/sources/*/locati" - + "ons/*/findings/*}:setState:\001*\022\235\001\n\014SetIam" - + "Policy\022\".google.iam.v1.SetIamPolicyReque" - + "st\032\025.google.iam.v1.Policy\"R\332A\017resource,p" - + "olicy\202\323\344\223\002:\"5/v2/{resource=organizations" - + "/*/sources/*}:setIamPolicy:\001*\022\370\003\n\007SetMut" - + "e\022..google.cloud.securitycenter.v2.SetMu" - + "teRequest\032\'.google.cloud.securitycenter." - + "v2.Finding\"\223\003\332A\tname,mute\202\323\344\223\002\200\003\"7/v2/{n" - + "ame=organizations/*/sources/*/findings/*" - + "}:setMute:\001*ZH\"C/v2/{name=organizations/" - + "*/sources/*/locations/*/findings/*}:setM" - + "ute:\001*Z6\"1/v2/{name=folders/*/sources/*/" - + "findings/*}:setMute:\001*ZB\"=/v2/{name=fold" - + "ers/*/sources/*/locations/*/findings/*}:" - + "setMute:\001*Z7\"2/v2/{name=projects/*/sourc" - + "es/*/findings/*}:setMute:\001*ZC\">/v2/{name" - + "=projects/*/sources/*/locations/*/findin" - + "gs/*}:setMute:\001*\022\310\001\n\022TestIamPermissions\022" - + "(.google.iam.v1.TestIamPermissionsReques" - + "t\032).google.iam.v1.TestIamPermissionsResp" - + "onse\"]\332A\024resource,permissions\202\323\344\223\002@\";/v2" - + "/{resource=organizations/*/sources/*}:te" - + "stIamPermissions:\001*\022\274\003\n\024UpdateBigQueryEx" - + "port\022;.google.cloud.securitycenter.v2.Up" - + "dateBigQueryExportRequest\032..google.cloud" - + ".securitycenter.v2.BigQueryExport\"\266\002\332A\034b" - + "ig_query_export,update_mask\202\323\344\223\002\220\0022I/v2/" - + "{big_query_export.name=organizations/*/l" - + "ocations/*/bigQueryExports/*}:\020big_query" - + "_exportZW2C/v2/{big_query_export.name=fo" - + "lders/*/locations/*/bigQueryExports/*}:\020" - + "big_query_exportZX2D/v2/{big_query_expor" - + "t.name=projects/*/locations/*/bigQueryEx" - + "ports/*}:\020big_query_export\022\233\006\n\024UpdateExt" - + "ernalSystem\022;.google.cloud.securitycente" - + "r.v2.UpdateExternalSystemRequest\032..googl" - + "e.cloud.securitycenter.v2.ExternalSystem" - + "\"\225\005\332A\033external_system,update_mask\202\323\344\223\002\360\004" - + "2Q/v2/{external_system.name=organization" - + "s/*/sources/*/findings/*/externalSystems" - + "/*}:\017external_systemZp2]/v2/{external_sy" - + "stem.name=organizations/*/sources/*/loca" - + "tions/*/findings/*/externalSystems/*}:\017e" - + "xternal_systemZ^2K/v2/{external_system.n" - + "ame=folders/*/sources/*/findings/*/exter" - + "nalSystems/*}:\017external_systemZj2W/v2/{e" - + "xternal_system.name=folders/*/sources/*/" - + "locations/*/findings/*/externalSystems/*" - + "}:\017external_systemZ_2L/v2/{external_syst" - + "em.name=projects/*/sources/*/findings/*/" - + "externalSystems/*}:\017external_systemZk2X/" + + "\025GetNotificationConfig\022<.google.cloud.securitycenter.v2.GetNo" + + "tificationConfigRequest\0322.google.cloud.s" + + "ecuritycenter.v2.NotificationConfig\"\301\001\332A" + + "\004name\202\323\344\223\002\263\001\022.google.cloud.securitycent" + + "er.v2.ListNotificationConfigsRequest\032?.g" + + "oogle.cloud.securitycenter.v2.ListNotifi" + + "cationConfigsResponse\"\303\001\332A\006parent\202\323\344\223\002\263\001" + + "\022/v2/{name=folders/*/sources" + + "/*/locations/*/findings/*}:setState:\001*Z8" + + "\"3/v2/{name=projects/*/sources/*/finding" + + "s/*}:setState:\001*ZD\"?/v2/{name=projects/*" + + "/sources/*/locations/*/findings/*}:setSt" + + "ate:\001*\022\235\001\n\014SetIamPolicy\022\".google.iam.v1." + + "SetIamPolicyRequest\032\025.google.iam.v1.Poli" + + "cy\"R\332A\017resource,policy\202\323\344\223\002:\"5/v2/{resou" + + "rce=organizations/*/sources/*}:setIamPol" + + "icy:\001*\022\370\003\n\007SetMute\022..google.cloud.securi" + + "tycenter.v2.SetMuteRequest\032\'.google.clou" + + "d.securitycenter.v2.Finding\"\223\003\332A\tname,mu" + + "te\202\323\344\223\002\200\003\"7/v2/{name=organizations/*/sou" + + "rces/*/findings/*}:setMute:\001*ZH\"C/v2/{na" + + "me=organizations/*/sources/*/locations/*" + + "/findings/*}:setMute:\001*Z6\"1/v2/{name=fol" + + "ders/*/sources/*/findings/*}:setMute:\001*Z" + + "B\"=/v2/{name=folders/*/sources/*/locatio" + + "ns/*/findings/*}:setMute:\001*Z7\"2/v2/{name" + + "=projects/*/sources/*/findings/*}:setMut" + + "e:\001*ZC\">/v2/{name=projects/*/sources/*/l" + + "ocations/*/findings/*}:setMute:\001*\022\310\001\n\022Te" + + "stIamPermissions\022(.google.iam.v1.TestIam" + + "PermissionsRequest\032).google.iam.v1.TestI" + + "amPermissionsResponse\"]\332A\024resource,permi" + + "ssions\202\323\344\223\002@\";/v2/{resource=organization" + + "s/*/sources/*}:testIamPermissions:\001*\022\274\003\n" + + "\024UpdateBigQueryExport\022;.google.cloud.sec" + + "uritycenter.v2.UpdateBigQueryExportReque" + + "st\032..google.cloud.securitycenter.v2.BigQ" + + "ueryExport\"\266\002\332A\034big_query_export,update_" + + "mask\202\323\344\223\002\220\0022I/v2/{big_query_export.name=" + + "organizations/*/locations/*/bigQueryExpo" + + "rts/*}:\020big_query_exportZW2C/v2/{big_que" + + "ry_export.name=folders/*/locations/*/big" + + "QueryExports/*}:\020big_query_exportZX2D/v2" + + "/{big_query_export.name=projects/*/locat" + + "ions/*/bigQueryExports/*}:\020big_query_exp" + + "ort\022\233\006\n\024UpdateExternalSystem\022;.google.cl" + + "oud.securitycenter.v2.UpdateExternalSyst" + + "emRequest\032..google.cloud.securitycenter." + + "v2.ExternalSystem\"\225\005\332A\033external_system,u" + + "pdate_mask\202\323\344\223\002\360\0042Q/v2/{external_system." + + "name=organizations/*/sources/*/findings/" + + "*/externalSystems/*}:\017external_systemZp2" + + "]/v2/{external_system.name=organizations" + + "/*/sources/*/locations/*/findings/*/exte" + + "rnalSystems/*}:\017external_systemZ^2K/v2/{" + + "external_system.name=folders/*/sources/*" + + "/findings/*/externalSystems/*}:\017external" + + "_systemZj2W/v2/{external_system.name=fol" + + "ders/*/sources/*/locations/*/findings/*/" + + "externalSystems/*}:\017external_systemZ_2L/" + "v2/{external_system.name=projects/*/sour" - + "ces/*/locations/*/findings/*/externalSys" - + "tems/*}:\017external_system\022\262\004\n\rUpdateFindi" - + "ng\0224.google.cloud.securitycenter.v2.Upda" - + "teFindingRequest\032\'.google.cloud.security" - + "center.v2.Finding\"\301\003\332A\023finding,update_ma" - + "sk\202\323\344\223\002\244\00327/v2/{finding.name=organizatio" - + "ns/*/sources/*/findings/*}:\007findingZN2C/" - + "v2/{finding.name=organizations/*/sources" - + "/*/locations/*/findings/*}:\007findingZ<21/" - + "v2/{finding.name=folders/*/sources/*/fin" - + "dings/*}:\007findingZH2=/v2/{finding.name=f" - + "olders/*/sources/*/locations/*/findings/" - + "*}:\007findingZ=22/v2/{finding.name=project" - + "s/*/sources/*/findings/*}:\007findingZI2>/v" - + "2/{finding.name=projects/*/sources/*/loc" - + "ations/*/findings/*}:\007finding\022\237\006\n\020Update" - + "MuteConfig\0227.google.cloud.securitycenter" - + ".v2.UpdateMuteConfigRequest\032*.google.clo" - + "ud.securitycenter.v2.MuteConfig\"\245\005\332A\027mut" - + "e_config,update_mask\202\323\344\223\002\252\00324/v2/{mute_c" - + "onfig.name=organizations/*/muteConfigs/*" - + "}:\013mute_configZO2@/v2/{mute_config.name=" - + "organizations/*/locations/*/muteConfigs/" - + "*}:\013mute_configZ=2./v2/{mute_config.name" - + "=folders/*/muteConfigs/*}:\013mute_configZI" - + "2:/v2/{mute_config.name=folders/*/locati" - + "ons/*/muteConfigs/*}:\013mute_configZ>2//v2" - + "/{mute_config.name=projects/*/muteConfig" - + "s/*}:\013mute_configZJ2;/v2/{mute_config.na" - + "me=projects/*/locations/*/muteConfigs/*}" - + ":\013mute_config\212\323\344\223\002\323\001\022C\n\020mute_config.name" - + "\022/projects/*/locations/{location=*}/mute" - + "Configs/*\022H\n\020mute_config.name\0224organizat" - + "ions/*/locations/{location=*}/muteConfig" - + "s/*\022B\n\020mute_config.name\022.folders/*/locat" - + "ions/{location=*}/muteConfigs/*\022\351\003\n\030Upda" - + "teNotificationConfig\022?.google.cloud.secu" - + "ritycenter.v2.UpdateNotificationConfigRe" - + "quest\0322.google.cloud.securitycenter.v2.N" - + "otificationConfig\"\327\002\332A\037notification_conf" - + "ig,update_mask\202\323\344\223\002\256\0022P/v2/{notification" - + "_config.name=organizations/*/locations/*" - + "/notificationConfigs/*}:\023notification_co" - + "nfigZa2J/v2/{notification_config.name=fo" - + "lders/*/locations/*/notificationConfigs/" - + "*}:\023notification_configZb2K/v2/{notifica" - + "tion_config.name=projects/*/locations/*/" - + "notificationConfigs/*}:\023notification_con" - + "fig\022\216\003\n\031UpdateResourceValueConfig\022@.goog" - + "le.cloud.securitycenter.v2.UpdateResourc" - + "eValueConfigRequest\0323.google.cloud.secur" - + "itycenter.v2.ResourceValueConfig\"\371\001\332A!re" - + "source_value_config,update_mask\202\323\344\223\002\316\0012G" - + "/v2/{resource_value_config.name=organiza" - + "tions/*/resourceValueConfigs/*}:\025resourc" - + "e_value_configZl2S/v2/{resource_value_co" - + "nfig.name=organizations/*/locations/*/re" - + "sourceValueConfigs/*}:\025resource_value_co" - + "nfig\022\344\007\n\023UpdateSecurityMarks\022:.google.cl" - + "oud.securitycenter.v2.UpdateSecurityMark" - + "sRequest\032-.google.cloud.securitycenter.v" - + "2.SecurityMarks\"\341\006\332A\032security_marks,upda" - + "te_mask\202\323\344\223\002\275\0062L/v2/{security_marks.name" - + "=organizations/*/sources/*/findings/*/se" - + "curityMarks}:\016security_marksZR2@/v2/{sec" - + "urity_marks.name=organizations/*/assets/" - + "*/securityMarks}:\016security_marksZj2X/v2/" - + "{security_marks.name=organizations/*/sou" + + "ces/*/findings/*/externalSystems/*}:\017ext" + + "ernal_systemZk2X/v2/{external_system.nam" + + "e=projects/*/sources/*/locations/*/findi" + + "ngs/*/externalSystems/*}:\017external_syste" + + "m\022\262\004\n\rUpdateFinding\0224.google.cloud.secur" + + "itycenter.v2.UpdateFindingRequest\032\'.goog" + + "le.cloud.securitycenter.v2.Finding\"\301\003\332A\023" + + "finding,update_mask\202\323\344\223\002\244\00327/v2/{finding" + + ".name=organizations/*/sources/*/findings" + + "/*}:\007findingZN2C/v2/{finding.name=organi" + + "zations/*/sources/*/locations/*/findings" + + "/*}:\007findingZ<21/v2/{finding.name=folder" + + "s/*/sources/*/findings/*}:\007findingZH2=/v" + + "2/{finding.name=folders/*/sources/*/loca" + + "tions/*/findings/*}:\007findingZ=22/v2/{fin" + + "ding.name=projects/*/sources/*/findings/" + + "*}:\007findingZI2>/v2/{finding.name=project" + + "s/*/sources/*/locations/*/findings/*}:\007f" + + "inding\022\237\006\n\020UpdateMuteConfig\0227.google.clo" + + "ud.securitycenter.v2.UpdateMuteConfigReq" + + "uest\032*.google.cloud.securitycenter.v2.Mu" + + "teConfig\"\245\005\332A\027mute_config,update_mask\202\323\344" + + "\223\002\252\00324/v2/{mute_config.name=organization" + + "s/*/muteConfigs/*}:\013mute_configZO2@/v2/{" + + "mute_config.name=organizations/*/locatio" + + "ns/*/muteConfigs/*}:\013mute_configZ=2./v2/" + + "{mute_config.name=folders/*/muteConfigs/" + + "*}:\013mute_configZI2:/v2/{mute_config.name" + + "=folders/*/locations/*/muteConfigs/*}:\013m" + + "ute_configZ>2//v2/{mute_config.name=proj" + + "ects/*/muteConfigs/*}:\013mute_configZJ2;/v" + + "2/{mute_config.name=projects/*/locations" + + "/*/muteConfigs/*}:\013mute_config\212\323\344\223\002\323\001\022C\n" + + "\020mute_config.name\022/projects/*/locations/" + + "{location=*}/muteConfigs/*\022H\n\020mute_confi" + + "g.name\0224organizations/*/locations/{locat" + + "ion=*}/muteConfigs/*\022B\n\020mute_config.name" + + "\022.folders/*/locations/{location=*}/muteC" + + "onfigs/*\022\351\003\n\030UpdateNotificationConfig\022?." + + "google.cloud.securitycenter.v2.UpdateNot" + + "ificationConfigRequest\0322.google.cloud.se" + + "curitycenter.v2.NotificationConfig\"\327\002\332A\037" + + "notification_config,update_mask\202\323\344\223\002\256\0022P" + + "/v2/{notification_config.name=organizati" + + "ons/*/locations/*/notificationConfigs/*}" + + ":\023notification_configZa2J/v2/{notificati" + + "on_config.name=folders/*/locations/*/not" + + "ificationConfigs/*}:\023notification_config" + + "Zb2K/v2/{notification_config.name=projec" + + "ts/*/locations/*/notificationConfigs/*}:" + + "\023notification_config\022\216\003\n\031UpdateResourceV" + + "alueConfig\022@.google.cloud.securitycenter" + + ".v2.UpdateResourceValueConfigRequest\0323.g" + + "oogle.cloud.securitycenter.v2.ResourceVa" + + "lueConfig\"\371\001\332A!resource_value_config,upd" + + "ate_mask\202\323\344\223\002\316\0012G/v2/{resource_value_con" + + "fig.name=organizations/*/resourceValueCo" + + "nfigs/*}:\025resource_value_configZl2S/v2/{" + + "resource_value_config.name=organizations" + + "/*/locations/*/resourceValueConfigs/*}:\025" + + "resource_value_config\022\344\007\n\023UpdateSecurity" + + "Marks\022:.google.cloud.securitycenter.v2.U" + + "pdateSecurityMarksRequest\032-.google.cloud" + + ".securitycenter.v2.SecurityMarks\"\341\006\332A\032se" + + "curity_marks,update_mask\202\323\344\223\002\275\0062L/v2/{se" + + "curity_marks.name=organizations/*/source" + + "s/*/findings/*/securityMarks}:\016security_" + + "marksZR2@/v2/{security_marks.name=organi" + + "zations/*/assets/*/securityMarks}:\016secur" + + "ity_marksZj2X/v2/{security_marks.name=or" + + "ganizations/*/sources/*/locations/*/find" + + "ings/*/securityMarks}:\016security_marksZX2" + + "F/v2/{security_marks.name=folders/*/sour" + + "ces/*/findings/*/securityMarks}:\016securit" + + "y_marksZL2:/v2/{security_marks.name=fold" + + "ers/*/assets/*/securityMarks}:\016security_" + + "marksZd2R/v2/{security_marks.name=folder" + + "s/*/sources/*/locations/*/findings/*/sec" + + "urityMarks}:\016security_marksZY2G/v2/{secu" + + "rity_marks.name=projects/*/sources/*/fin" + + "dings/*/securityMarks}:\016security_marksZM" + + "2;/v2/{security_marks.name=projects/*/as" + + "sets/*/securityMarks}:\016security_marksZe2" + + "S/v2/{security_marks.name=projects/*/sou" + "rces/*/locations/*/findings/*/securityMa" - + "rks}:\016security_marksZX2F/v2/{security_ma" - + "rks.name=folders/*/sources/*/findings/*/" - + "securityMarks}:\016security_marksZL2:/v2/{s" - + "ecurity_marks.name=folders/*/assets/*/se" - + "curityMarks}:\016security_marksZd2R/v2/{sec" - + "urity_marks.name=folders/*/sources/*/loc" - + "ations/*/findings/*/securityMarks}:\016secu" - + "rity_marksZY2G/v2/{security_marks.name=p" - + "rojects/*/sources/*/findings/*/securityM" - + "arks}:\016security_marksZM2;/v2/{security_m" - + "arks.name=projects/*/assets/*/securityMa" - + "rks}:\016security_marksZe2S/v2/{security_ma" - + "rks.name=projects/*/sources/*/locations/" - + "*/findings/*/securityMarks}:\016security_ma" - + "rks\022\275\001\n\014UpdateSource\0223.google.cloud.secu" - + "ritycenter.v2.UpdateSourceRequest\032&.goog" - + "le.cloud.securitycenter.v2.Source\"P\332A\022so" - + "urce,update_mask\202\323\344\223\00252+/v2/{source.name" - + "=organizations/*/sources/*}:\006source\032Q\312A\035" - + "securitycenter.googleapis.com\322A.https://" - + "www.googleapis.com/auth/cloud-platformB\342" - + "\004\n\"com.google.cloud.securitycenter.v2B\032S" - + "ecuritycenterServiceProtoP\001ZJcloud.googl" - + "e.com/go/securitycenter/apiv2/securityce" - + "nterpb;securitycenterpb\252\002\036Google.Cloud.S" - + "ecurityCenter.V2\312\002\036Google\\Cloud\\Security" - + "Center\\V2\352\002!Google::Cloud::SecurityCente" - + "r::V2\352Ag\n2securitycenter.googleapis.com/" - + "OrganizationLocation\0221organizations/{org" - + "anization}/locations/{location}\352AU\n,secu" - + "ritycenter.googleapis.com/FolderLocation" - + "\022%folders/{folder}/locations/{location}\352" - + "A\250\001\n8securitycenter.googleapis.com/Organ" - + "izationValuedResource\022lorganizations/{or" - + "ganization}/locations/{location}/simulat" - + "ions/{simulation}/valuedResources/{value" - + "d_resource}b\006proto3" + + "rks}:\016security_marks\022\275\001\n\014UpdateSource\0223." + + "google.cloud.securitycenter.v2.UpdateSou" + + "rceRequest\032&.google.cloud.securitycenter" + + ".v2.Source\"P\332A\022source,update_mask\202\323\344\223\00252" + + "+/v2/{source.name=organizations/*/source" + + "s/*}:\006source\032Q\312A\035securitycenter.googleap" + + "is.com\322A.https://www.googleapis.com/auth" + + "/cloud-platformB\342\004\n\"com.google.cloud.sec" + + "uritycenter.v2B\032SecuritycenterServicePro" + + "toP\001ZJcloud.google.com/go/securitycenter" + + "/apiv2/securitycenterpb;securitycenterpb" + + "\252\002\036Google.Cloud.SecurityCenter.V2\312\002\036Goog" + + "le\\Cloud\\SecurityCenter\\V2\352\002!Google::Clo" + + "ud::SecurityCenter::V2\352Ag\n2securitycente" + + "r.googleapis.com/OrganizationLocation\0221o" + + "rganizations/{organization}/locations/{l" + + "ocation}\352AU\n,securitycenter.googleapis.c" + + "om/FolderLocation\022%folders/{folder}/loca" + + "tions/{location}\352A\250\001\n8securitycenter.goo" + + "gleapis.com/OrganizationValuedResource\022l" + + "organizations/{organization}/locations/{" + + "location}/simulations/{simulation}/value" + + "dResources/{valued_resource}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -930,6 +951,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_cloud_securitycenter_v2_BatchCreateResourceValueConfigsRequest_descriptor = getDescriptor().getMessageTypes().get(0); @@ -1041,8 +1063,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", }); - internal_static_google_cloud_securitycenter_v2_GetBigQueryExportRequest_descriptor = + internal_static_google_cloud_securitycenter_v2_BigQueryDestination_descriptor = getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_securitycenter_v2_BigQueryDestination_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v2_BigQueryDestination_descriptor, + new java.lang.String[] { + "Dataset", + }); + internal_static_google_cloud_securitycenter_v2_ExportFindingsMetadata_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_securitycenter_v2_ExportFindingsMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v2_ExportFindingsMetadata_descriptor, + new java.lang.String[] { + "ExportStartTime", "BigQueryDestination", "Destination", + }); + internal_static_google_cloud_securitycenter_v2_ExportFindingsResponse_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_securitycenter_v2_ExportFindingsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v2_ExportFindingsResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_securitycenter_v2_GetBigQueryExportRequest_descriptor = + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_securitycenter_v2_GetBigQueryExportRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v2_GetBigQueryExportRequest_descriptor, @@ -1050,7 +1094,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_securitycenter_v2_GetMuteConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_securitycenter_v2_GetMuteConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v2_GetMuteConfigRequest_descriptor, @@ -1058,7 +1102,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_securitycenter_v2_GetNotificationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_securitycenter_v2_GetNotificationConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v2_GetNotificationConfigRequest_descriptor, @@ -1066,7 +1110,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_securitycenter_v2_GetResourceValueConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_securitycenter_v2_GetResourceValueConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v2_GetResourceValueConfigRequest_descriptor, @@ -1074,7 +1118,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_securitycenter_v2_GetSourceRequest_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_securitycenter_v2_GetSourceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v2_GetSourceRequest_descriptor, @@ -1082,7 +1126,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_securitycenter_v2_GroupFindingsRequest_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_securitycenter_v2_GroupFindingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v2_GroupFindingsRequest_descriptor, @@ -1090,7 +1134,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Filter", "GroupBy", "PageToken", "PageSize", }); internal_static_google_cloud_securitycenter_v2_GroupFindingsResponse_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_securitycenter_v2_GroupFindingsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v2_GroupFindingsResponse_descriptor, @@ -1098,7 +1142,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GroupByResults", "NextPageToken", "TotalSize", }); internal_static_google_cloud_securitycenter_v2_GroupResult_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_securitycenter_v2_GroupResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v2_GroupResult_descriptor, @@ -1116,7 +1160,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_securitycenter_v2_ListAttackPathsRequest_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_securitycenter_v2_ListAttackPathsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v2_ListAttackPathsRequest_descriptor, @@ -1124,7 +1168,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Filter", "PageToken", "PageSize", }); internal_static_google_cloud_securitycenter_v2_ListAttackPathsResponse_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_securitycenter_v2_ListAttackPathsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v2_ListAttackPathsResponse_descriptor, @@ -1132,7 +1176,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AttackPaths", "NextPageToken", }); internal_static_google_cloud_securitycenter_v2_GetSimulationRequest_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_securitycenter_v2_GetSimulationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v2_GetSimulationRequest_descriptor, @@ -1140,7 +1184,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_securitycenter_v2_GetValuedResourceRequest_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_securitycenter_v2_GetValuedResourceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v2_GetValuedResourceRequest_descriptor, @@ -1148,7 +1192,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_securitycenter_v2_ListBigQueryExportsRequest_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(29); internal_static_google_cloud_securitycenter_v2_ListBigQueryExportsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v2_ListBigQueryExportsRequest_descriptor, @@ -1156,7 +1200,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_securitycenter_v2_ListBigQueryExportsResponse_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(30); internal_static_google_cloud_securitycenter_v2_ListBigQueryExportsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v2_ListBigQueryExportsResponse_descriptor, @@ -1164,7 +1208,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BigQueryExports", "NextPageToken", }); internal_static_google_cloud_securitycenter_v2_ListFindingsRequest_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(31); internal_static_google_cloud_securitycenter_v2_ListFindingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v2_ListFindingsRequest_descriptor, @@ -1172,7 +1216,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Filter", "OrderBy", "FieldMask", "PageToken", "PageSize", }); internal_static_google_cloud_securitycenter_v2_ListFindingsResponse_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(32); internal_static_google_cloud_securitycenter_v2_ListFindingsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v2_ListFindingsResponse_descriptor, @@ -1211,7 +1255,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CloudProviderMetadata", }); internal_static_google_cloud_securitycenter_v2_ListMuteConfigsRequest_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(33); internal_static_google_cloud_securitycenter_v2_ListMuteConfigsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v2_ListMuteConfigsRequest_descriptor, @@ -1219,7 +1263,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_securitycenter_v2_ListMuteConfigsResponse_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(34); internal_static_google_cloud_securitycenter_v2_ListMuteConfigsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v2_ListMuteConfigsResponse_descriptor, @@ -1227,7 +1271,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MuteConfigs", "NextPageToken", }); internal_static_google_cloud_securitycenter_v2_ListNotificationConfigsRequest_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(35); internal_static_google_cloud_securitycenter_v2_ListNotificationConfigsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v2_ListNotificationConfigsRequest_descriptor, @@ -1235,7 +1279,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageToken", "PageSize", }); internal_static_google_cloud_securitycenter_v2_ListNotificationConfigsResponse_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(36); internal_static_google_cloud_securitycenter_v2_ListNotificationConfigsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v2_ListNotificationConfigsResponse_descriptor, @@ -1243,7 +1287,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NotificationConfigs", "NextPageToken", }); internal_static_google_cloud_securitycenter_v2_ListResourceValueConfigsRequest_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(37); internal_static_google_cloud_securitycenter_v2_ListResourceValueConfigsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v2_ListResourceValueConfigsRequest_descriptor, @@ -1251,7 +1295,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_securitycenter_v2_ListResourceValueConfigsResponse_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(38); internal_static_google_cloud_securitycenter_v2_ListResourceValueConfigsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v2_ListResourceValueConfigsResponse_descriptor, @@ -1259,7 +1303,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ResourceValueConfigs", "NextPageToken", }); internal_static_google_cloud_securitycenter_v2_ListSourcesRequest_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(39); internal_static_google_cloud_securitycenter_v2_ListSourcesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v2_ListSourcesRequest_descriptor, @@ -1267,7 +1311,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageToken", "PageSize", }); internal_static_google_cloud_securitycenter_v2_ListSourcesResponse_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(40); internal_static_google_cloud_securitycenter_v2_ListSourcesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v2_ListSourcesResponse_descriptor, @@ -1275,7 +1319,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Sources", "NextPageToken", }); internal_static_google_cloud_securitycenter_v2_ListValuedResourcesRequest_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(41); internal_static_google_cloud_securitycenter_v2_ListValuedResourcesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v2_ListValuedResourcesRequest_descriptor, @@ -1283,7 +1327,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Filter", "PageToken", "PageSize", "OrderBy", }); internal_static_google_cloud_securitycenter_v2_ListValuedResourcesResponse_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(42); internal_static_google_cloud_securitycenter_v2_ListValuedResourcesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v2_ListValuedResourcesResponse_descriptor, @@ -1291,7 +1335,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ValuedResources", "NextPageToken", "TotalSize", }); internal_static_google_cloud_securitycenter_v2_SetFindingStateRequest_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(43); internal_static_google_cloud_securitycenter_v2_SetFindingStateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v2_SetFindingStateRequest_descriptor, @@ -1299,7 +1343,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "State", }); internal_static_google_cloud_securitycenter_v2_SetMuteRequest_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(44); internal_static_google_cloud_securitycenter_v2_SetMuteRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v2_SetMuteRequest_descriptor, @@ -1307,7 +1351,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Mute", }); internal_static_google_cloud_securitycenter_v2_UpdateBigQueryExportRequest_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageTypes().get(45); internal_static_google_cloud_securitycenter_v2_UpdateBigQueryExportRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v2_UpdateBigQueryExportRequest_descriptor, @@ -1315,7 +1359,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BigQueryExport", "UpdateMask", }); internal_static_google_cloud_securitycenter_v2_UpdateExternalSystemRequest_descriptor = - getDescriptor().getMessageTypes().get(43); + getDescriptor().getMessageTypes().get(46); internal_static_google_cloud_securitycenter_v2_UpdateExternalSystemRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v2_UpdateExternalSystemRequest_descriptor, @@ -1323,7 +1367,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExternalSystem", "UpdateMask", }); internal_static_google_cloud_securitycenter_v2_UpdateFindingRequest_descriptor = - getDescriptor().getMessageTypes().get(44); + getDescriptor().getMessageTypes().get(47); internal_static_google_cloud_securitycenter_v2_UpdateFindingRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v2_UpdateFindingRequest_descriptor, @@ -1331,7 +1375,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Finding", "UpdateMask", }); internal_static_google_cloud_securitycenter_v2_UpdateMuteConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(45); + getDescriptor().getMessageTypes().get(48); internal_static_google_cloud_securitycenter_v2_UpdateMuteConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v2_UpdateMuteConfigRequest_descriptor, @@ -1339,7 +1383,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MuteConfig", "UpdateMask", }); internal_static_google_cloud_securitycenter_v2_UpdateNotificationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(46); + getDescriptor().getMessageTypes().get(49); internal_static_google_cloud_securitycenter_v2_UpdateNotificationConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v2_UpdateNotificationConfigRequest_descriptor, @@ -1347,7 +1391,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NotificationConfig", "UpdateMask", }); internal_static_google_cloud_securitycenter_v2_UpdateResourceValueConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(47); + getDescriptor().getMessageTypes().get(50); internal_static_google_cloud_securitycenter_v2_UpdateResourceValueConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v2_UpdateResourceValueConfigRequest_descriptor, @@ -1355,7 +1399,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ResourceValueConfig", "UpdateMask", }); internal_static_google_cloud_securitycenter_v2_UpdateSecurityMarksRequest_descriptor = - getDescriptor().getMessageTypes().get(48); + getDescriptor().getMessageTypes().get(51); internal_static_google_cloud_securitycenter_v2_UpdateSecurityMarksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v2_UpdateSecurityMarksRequest_descriptor, @@ -1363,7 +1407,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SecurityMarks", "UpdateMask", }); internal_static_google_cloud_securitycenter_v2_UpdateSourceRequest_descriptor = - getDescriptor().getMessageTypes().get(49); + getDescriptor().getMessageTypes().get(52); internal_static_google_cloud_securitycenter_v2_UpdateSourceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v2_UpdateSourceRequest_descriptor, @@ -1406,6 +1450,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/VertexAi.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/VertexAi.java new file mode 100644 index 000000000000..544fe1823c2f --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/VertexAi.java @@ -0,0 +1,3467 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v2/vertex_ai.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.securitycenter.v2; + +/** + * + * + *
      + * Vertex AI-related information associated with the finding.
      + * 
      + * + * Protobuf type {@code google.cloud.securitycenter.v2.VertexAi} + */ +public final class VertexAi extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v2.VertexAi) + VertexAiOrBuilder { + private static final long serialVersionUID = 0L; + + // Use VertexAi.newBuilder() to construct. + private VertexAi(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private VertexAi() { + datasets_ = java.util.Collections.emptyList(); + pipelines_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VertexAi(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v2.VertexAiProto + .internal_static_google_cloud_securitycenter_v2_VertexAi_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v2.VertexAiProto + .internal_static_google_cloud_securitycenter_v2_VertexAi_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v2.VertexAi.class, + com.google.cloud.securitycenter.v2.VertexAi.Builder.class); + } + + public interface DatasetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v2.VertexAi.Dataset) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Resource name of the dataset, e.g.
      +     * projects/{project}/locations/{location}/datasets/2094040236064505856
      +     * 
      + * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +     * Resource name of the dataset, e.g.
      +     * projects/{project}/locations/{location}/datasets/2094040236064505856
      +     * 
      + * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +     * The user defined display name of dataset, e.g. plants-dataset
      +     * 
      + * + * string display_name = 2; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
      +     * The user defined display name of dataset, e.g. plants-dataset
      +     * 
      + * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
      +     * Data source, such as a BigQuery source URI, e.g.
      +     * bq://scc-nexus-test.AIPPtest.gsod
      +     * 
      + * + * string source = 3; + * + * @return The source. + */ + java.lang.String getSource(); + + /** + * + * + *
      +     * Data source, such as a BigQuery source URI, e.g.
      +     * bq://scc-nexus-test.AIPPtest.gsod
      +     * 
      + * + * string source = 3; + * + * @return The bytes for source. + */ + com.google.protobuf.ByteString getSourceBytes(); + } + + /** + * + * + *
      +   * Vertex AI dataset associated with the finding.
      +   * 
      + * + * Protobuf type {@code google.cloud.securitycenter.v2.VertexAi.Dataset} + */ + public static final class Dataset extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v2.VertexAi.Dataset) + DatasetOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Dataset.newBuilder() to construct. + private Dataset(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Dataset() { + name_ = ""; + displayName_ = ""; + source_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Dataset(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v2.VertexAiProto + .internal_static_google_cloud_securitycenter_v2_VertexAi_Dataset_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v2.VertexAiProto + .internal_static_google_cloud_securitycenter_v2_VertexAi_Dataset_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v2.VertexAi.Dataset.class, + com.google.cloud.securitycenter.v2.VertexAi.Dataset.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Resource name of the dataset, e.g.
      +     * projects/{project}/locations/{location}/datasets/2094040236064505856
      +     * 
      + * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +     * Resource name of the dataset, e.g.
      +     * projects/{project}/locations/{location}/datasets/2094040236064505856
      +     * 
      + * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
      +     * The user defined display name of dataset, e.g. plants-dataset
      +     * 
      + * + * string display_name = 2; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
      +     * The user defined display name of dataset, e.g. plants-dataset
      +     * 
      + * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object source_ = ""; + + /** + * + * + *
      +     * Data source, such as a BigQuery source URI, e.g.
      +     * bq://scc-nexus-test.AIPPtest.gsod
      +     * 
      + * + * string source = 3; + * + * @return The source. + */ + @java.lang.Override + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + source_ = s; + return s; + } + } + + /** + * + * + *
      +     * Data source, such as a BigQuery source URI, e.g.
      +     * bq://scc-nexus-test.AIPPtest.gsod
      +     * 
      + * + * string source = 3; + * + * @return The bytes for source. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(source_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, source_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(source_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, source_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycenter.v2.VertexAi.Dataset)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v2.VertexAi.Dataset other = + (com.google.cloud.securitycenter.v2.VertexAi.Dataset) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getSource().equals(other.getSource())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSource().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v2.VertexAi.Dataset parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.VertexAi.Dataset parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.VertexAi.Dataset parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.VertexAi.Dataset parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.VertexAi.Dataset parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.VertexAi.Dataset parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.VertexAi.Dataset parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.VertexAi.Dataset parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.VertexAi.Dataset parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.VertexAi.Dataset parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.VertexAi.Dataset parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.VertexAi.Dataset parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.securitycenter.v2.VertexAi.Dataset prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * Vertex AI dataset associated with the finding.
      +     * 
      + * + * Protobuf type {@code google.cloud.securitycenter.v2.VertexAi.Dataset} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v2.VertexAi.Dataset) + com.google.cloud.securitycenter.v2.VertexAi.DatasetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v2.VertexAiProto + .internal_static_google_cloud_securitycenter_v2_VertexAi_Dataset_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v2.VertexAiProto + .internal_static_google_cloud_securitycenter_v2_VertexAi_Dataset_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v2.VertexAi.Dataset.class, + com.google.cloud.securitycenter.v2.VertexAi.Dataset.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v2.VertexAi.Dataset.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + source_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v2.VertexAiProto + .internal_static_google_cloud_securitycenter_v2_VertexAi_Dataset_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.VertexAi.Dataset getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v2.VertexAi.Dataset.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.VertexAi.Dataset build() { + com.google.cloud.securitycenter.v2.VertexAi.Dataset result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.VertexAi.Dataset buildPartial() { + com.google.cloud.securitycenter.v2.VertexAi.Dataset result = + new com.google.cloud.securitycenter.v2.VertexAi.Dataset(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.securitycenter.v2.VertexAi.Dataset result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.source_ = source_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v2.VertexAi.Dataset) { + return mergeFrom((com.google.cloud.securitycenter.v2.VertexAi.Dataset) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v2.VertexAi.Dataset other) { + if (other == com.google.cloud.securitycenter.v2.VertexAi.Dataset.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getSource().isEmpty()) { + source_ = other.source_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + source_ = 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_ = ""; + + /** + * + * + *
      +       * Resource name of the dataset, e.g.
      +       * projects/{project}/locations/{location}/datasets/2094040236064505856
      +       * 
      + * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +       * Resource name of the dataset, e.g.
      +       * projects/{project}/locations/{location}/datasets/2094040236064505856
      +       * 
      + * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +       * Resource name of the dataset, e.g.
      +       * projects/{project}/locations/{location}/datasets/2094040236064505856
      +       * 
      + * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Resource name of the dataset, e.g.
      +       * projects/{project}/locations/{location}/datasets/2094040236064505856
      +       * 
      + * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +       * Resource name of the dataset, e.g.
      +       * projects/{project}/locations/{location}/datasets/2094040236064505856
      +       * 
      + * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
      +       * The user defined display name of dataset, e.g. plants-dataset
      +       * 
      + * + * string display_name = 2; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +       * The user defined display name of dataset, e.g. plants-dataset
      +       * 
      + * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +       * The user defined display name of dataset, e.g. plants-dataset
      +       * 
      + * + * string display_name = 2; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +       * The user defined display name of dataset, e.g. plants-dataset
      +       * 
      + * + * string display_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +       * The user defined display name of dataset, e.g. plants-dataset
      +       * 
      + * + * string display_name = 2; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object source_ = ""; + + /** + * + * + *
      +       * Data source, such as a BigQuery source URI, e.g.
      +       * bq://scc-nexus-test.AIPPtest.gsod
      +       * 
      + * + * string source = 3; + * + * @return The source. + */ + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + source_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +       * Data source, such as a BigQuery source URI, e.g.
      +       * bq://scc-nexus-test.AIPPtest.gsod
      +       * 
      + * + * string source = 3; + * + * @return The bytes for source. + */ + public com.google.protobuf.ByteString getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +       * Data source, such as a BigQuery source URI, e.g.
      +       * bq://scc-nexus-test.AIPPtest.gsod
      +       * 
      + * + * string source = 3; + * + * @param value The source to set. + * @return This builder for chaining. + */ + public Builder setSource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Data source, such as a BigQuery source URI, e.g.
      +       * bq://scc-nexus-test.AIPPtest.gsod
      +       * 
      + * + * string source = 3; + * + * @return This builder for chaining. + */ + public Builder clearSource() { + source_ = getDefaultInstance().getSource(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +       * Data source, such as a BigQuery source URI, e.g.
      +       * bq://scc-nexus-test.AIPPtest.gsod
      +       * 
      + * + * string source = 3; + * + * @param value The bytes for source to set. + * @return This builder for chaining. + */ + public Builder setSourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + source_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v2.VertexAi.Dataset) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v2.VertexAi.Dataset) + private static final com.google.cloud.securitycenter.v2.VertexAi.Dataset DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v2.VertexAi.Dataset(); + } + + public static com.google.cloud.securitycenter.v2.VertexAi.Dataset getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Dataset parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.VertexAi.Dataset getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface PipelineOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v2.VertexAi.Pipeline) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Resource name of the pipeline, e.g.
      +     * projects/{project}/locations/{location}/trainingPipelines/5253428229225578496
      +     * 
      + * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +     * Resource name of the pipeline, e.g.
      +     * projects/{project}/locations/{location}/trainingPipelines/5253428229225578496
      +     * 
      + * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +     * The user-defined display name of pipeline, e.g. plants-classification
      +     * 
      + * + * string display_name = 2; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
      +     * The user-defined display name of pipeline, e.g. plants-classification
      +     * 
      + * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + } + + /** + * + * + *
      +   * Vertex AI training pipeline associated with the finding.
      +   * 
      + * + * Protobuf type {@code google.cloud.securitycenter.v2.VertexAi.Pipeline} + */ + public static final class Pipeline extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v2.VertexAi.Pipeline) + PipelineOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Pipeline.newBuilder() to construct. + private Pipeline(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Pipeline() { + name_ = ""; + displayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Pipeline(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v2.VertexAiProto + .internal_static_google_cloud_securitycenter_v2_VertexAi_Pipeline_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v2.VertexAiProto + .internal_static_google_cloud_securitycenter_v2_VertexAi_Pipeline_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v2.VertexAi.Pipeline.class, + com.google.cloud.securitycenter.v2.VertexAi.Pipeline.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Resource name of the pipeline, e.g.
      +     * projects/{project}/locations/{location}/trainingPipelines/5253428229225578496
      +     * 
      + * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +     * Resource name of the pipeline, e.g.
      +     * projects/{project}/locations/{location}/trainingPipelines/5253428229225578496
      +     * 
      + * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
      +     * The user-defined display name of pipeline, e.g. plants-classification
      +     * 
      + * + * string display_name = 2; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
      +     * The user-defined display name of pipeline, e.g. plants-classification
      +     * 
      + * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycenter.v2.VertexAi.Pipeline)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v2.VertexAi.Pipeline other = + (com.google.cloud.securitycenter.v2.VertexAi.Pipeline) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v2.VertexAi.Pipeline parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.VertexAi.Pipeline parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.VertexAi.Pipeline parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.VertexAi.Pipeline parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.VertexAi.Pipeline parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.VertexAi.Pipeline parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.VertexAi.Pipeline parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.VertexAi.Pipeline parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.VertexAi.Pipeline parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.VertexAi.Pipeline parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.VertexAi.Pipeline parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.VertexAi.Pipeline parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.securitycenter.v2.VertexAi.Pipeline prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * Vertex AI training pipeline associated with the finding.
      +     * 
      + * + * Protobuf type {@code google.cloud.securitycenter.v2.VertexAi.Pipeline} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v2.VertexAi.Pipeline) + com.google.cloud.securitycenter.v2.VertexAi.PipelineOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v2.VertexAiProto + .internal_static_google_cloud_securitycenter_v2_VertexAi_Pipeline_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v2.VertexAiProto + .internal_static_google_cloud_securitycenter_v2_VertexAi_Pipeline_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v2.VertexAi.Pipeline.class, + com.google.cloud.securitycenter.v2.VertexAi.Pipeline.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v2.VertexAi.Pipeline.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v2.VertexAiProto + .internal_static_google_cloud_securitycenter_v2_VertexAi_Pipeline_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.VertexAi.Pipeline getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v2.VertexAi.Pipeline.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.VertexAi.Pipeline build() { + com.google.cloud.securitycenter.v2.VertexAi.Pipeline result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.VertexAi.Pipeline buildPartial() { + com.google.cloud.securitycenter.v2.VertexAi.Pipeline result = + new com.google.cloud.securitycenter.v2.VertexAi.Pipeline(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.securitycenter.v2.VertexAi.Pipeline result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v2.VertexAi.Pipeline) { + return mergeFrom((com.google.cloud.securitycenter.v2.VertexAi.Pipeline) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v2.VertexAi.Pipeline other) { + if (other == com.google.cloud.securitycenter.v2.VertexAi.Pipeline.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +       * Resource name of the pipeline, e.g.
      +       * projects/{project}/locations/{location}/trainingPipelines/5253428229225578496
      +       * 
      + * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +       * Resource name of the pipeline, e.g.
      +       * projects/{project}/locations/{location}/trainingPipelines/5253428229225578496
      +       * 
      + * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +       * Resource name of the pipeline, e.g.
      +       * projects/{project}/locations/{location}/trainingPipelines/5253428229225578496
      +       * 
      + * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Resource name of the pipeline, e.g.
      +       * projects/{project}/locations/{location}/trainingPipelines/5253428229225578496
      +       * 
      + * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +       * Resource name of the pipeline, e.g.
      +       * projects/{project}/locations/{location}/trainingPipelines/5253428229225578496
      +       * 
      + * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
      +       * The user-defined display name of pipeline, e.g. plants-classification
      +       * 
      + * + * string display_name = 2; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +       * The user-defined display name of pipeline, e.g. plants-classification
      +       * 
      + * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +       * The user-defined display name of pipeline, e.g. plants-classification
      +       * 
      + * + * string display_name = 2; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +       * The user-defined display name of pipeline, e.g. plants-classification
      +       * 
      + * + * string display_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +       * The user-defined display name of pipeline, e.g. plants-classification
      +       * 
      + * + * string display_name = 2; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v2.VertexAi.Pipeline) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v2.VertexAi.Pipeline) + private static final com.google.cloud.securitycenter.v2.VertexAi.Pipeline DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v2.VertexAi.Pipeline(); + } + + public static com.google.cloud.securitycenter.v2.VertexAi.Pipeline getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Pipeline parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.VertexAi.Pipeline getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int DATASETS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List datasets_; + + /** + * + * + *
      +   * Datasets associated with the finding.
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Dataset datasets = 1; + */ + @java.lang.Override + public java.util.List getDatasetsList() { + return datasets_; + } + + /** + * + * + *
      +   * Datasets associated with the finding.
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Dataset datasets = 1; + */ + @java.lang.Override + public java.util.List + getDatasetsOrBuilderList() { + return datasets_; + } + + /** + * + * + *
      +   * Datasets associated with the finding.
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Dataset datasets = 1; + */ + @java.lang.Override + public int getDatasetsCount() { + return datasets_.size(); + } + + /** + * + * + *
      +   * Datasets associated with the finding.
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Dataset datasets = 1; + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.VertexAi.Dataset getDatasets(int index) { + return datasets_.get(index); + } + + /** + * + * + *
      +   * Datasets associated with the finding.
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Dataset datasets = 1; + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.VertexAi.DatasetOrBuilder getDatasetsOrBuilder( + int index) { + return datasets_.get(index); + } + + public static final int PIPELINES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List pipelines_; + + /** + * + * + *
      +   * Pipelines associated with the finding.
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Pipeline pipelines = 2; + */ + @java.lang.Override + public java.util.List getPipelinesList() { + return pipelines_; + } + + /** + * + * + *
      +   * Pipelines associated with the finding.
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Pipeline pipelines = 2; + */ + @java.lang.Override + public java.util.List + getPipelinesOrBuilderList() { + return pipelines_; + } + + /** + * + * + *
      +   * Pipelines associated with the finding.
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Pipeline pipelines = 2; + */ + @java.lang.Override + public int getPipelinesCount() { + return pipelines_.size(); + } + + /** + * + * + *
      +   * Pipelines associated with the finding.
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Pipeline pipelines = 2; + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.VertexAi.Pipeline getPipelines(int index) { + return pipelines_.get(index); + } + + /** + * + * + *
      +   * Pipelines associated with the finding.
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Pipeline pipelines = 2; + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.VertexAi.PipelineOrBuilder getPipelinesOrBuilder( + int index) { + return pipelines_.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 < datasets_.size(); i++) { + output.writeMessage(1, datasets_.get(i)); + } + for (int i = 0; i < pipelines_.size(); i++) { + output.writeMessage(2, pipelines_.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 < datasets_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, datasets_.get(i)); + } + for (int i = 0; i < pipelines_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, pipelines_.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.cloud.securitycenter.v2.VertexAi)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v2.VertexAi other = + (com.google.cloud.securitycenter.v2.VertexAi) obj; + + if (!getDatasetsList().equals(other.getDatasetsList())) return false; + if (!getPipelinesList().equals(other.getPipelinesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDatasetsCount() > 0) { + hash = (37 * hash) + DATASETS_FIELD_NUMBER; + hash = (53 * hash) + getDatasetsList().hashCode(); + } + if (getPipelinesCount() > 0) { + hash = (37 * hash) + PIPELINES_FIELD_NUMBER; + hash = (53 * hash) + getPipelinesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v2.VertexAi parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.VertexAi parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.VertexAi parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.VertexAi parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.VertexAi parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.VertexAi parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.VertexAi parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.VertexAi parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.VertexAi parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.VertexAi parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.VertexAi parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.VertexAi parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.securitycenter.v2.VertexAi prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Vertex AI-related information associated with the finding.
      +   * 
      + * + * Protobuf type {@code google.cloud.securitycenter.v2.VertexAi} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v2.VertexAi) + com.google.cloud.securitycenter.v2.VertexAiOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v2.VertexAiProto + .internal_static_google_cloud_securitycenter_v2_VertexAi_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v2.VertexAiProto + .internal_static_google_cloud_securitycenter_v2_VertexAi_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v2.VertexAi.class, + com.google.cloud.securitycenter.v2.VertexAi.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v2.VertexAi.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (datasetsBuilder_ == null) { + datasets_ = java.util.Collections.emptyList(); + } else { + datasets_ = null; + datasetsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (pipelinesBuilder_ == null) { + pipelines_ = java.util.Collections.emptyList(); + } else { + pipelines_ = null; + pipelinesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v2.VertexAiProto + .internal_static_google_cloud_securitycenter_v2_VertexAi_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.VertexAi getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v2.VertexAi.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.VertexAi build() { + com.google.cloud.securitycenter.v2.VertexAi result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.VertexAi buildPartial() { + com.google.cloud.securitycenter.v2.VertexAi result = + new com.google.cloud.securitycenter.v2.VertexAi(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.securitycenter.v2.VertexAi result) { + if (datasetsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + datasets_ = java.util.Collections.unmodifiableList(datasets_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.datasets_ = datasets_; + } else { + result.datasets_ = datasetsBuilder_.build(); + } + if (pipelinesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + pipelines_ = java.util.Collections.unmodifiableList(pipelines_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.pipelines_ = pipelines_; + } else { + result.pipelines_ = pipelinesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.securitycenter.v2.VertexAi result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v2.VertexAi) { + return mergeFrom((com.google.cloud.securitycenter.v2.VertexAi) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v2.VertexAi other) { + if (other == com.google.cloud.securitycenter.v2.VertexAi.getDefaultInstance()) return this; + if (datasetsBuilder_ == null) { + if (!other.datasets_.isEmpty()) { + if (datasets_.isEmpty()) { + datasets_ = other.datasets_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDatasetsIsMutable(); + datasets_.addAll(other.datasets_); + } + onChanged(); + } + } else { + if (!other.datasets_.isEmpty()) { + if (datasetsBuilder_.isEmpty()) { + datasetsBuilder_.dispose(); + datasetsBuilder_ = null; + datasets_ = other.datasets_; + bitField0_ = (bitField0_ & ~0x00000001); + datasetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDatasetsFieldBuilder() + : null; + } else { + datasetsBuilder_.addAllMessages(other.datasets_); + } + } + } + if (pipelinesBuilder_ == null) { + if (!other.pipelines_.isEmpty()) { + if (pipelines_.isEmpty()) { + pipelines_ = other.pipelines_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensurePipelinesIsMutable(); + pipelines_.addAll(other.pipelines_); + } + onChanged(); + } + } else { + if (!other.pipelines_.isEmpty()) { + if (pipelinesBuilder_.isEmpty()) { + pipelinesBuilder_.dispose(); + pipelinesBuilder_ = null; + pipelines_ = other.pipelines_; + bitField0_ = (bitField0_ & ~0x00000002); + pipelinesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPipelinesFieldBuilder() + : null; + } else { + pipelinesBuilder_.addAllMessages(other.pipelines_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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.cloud.securitycenter.v2.VertexAi.Dataset m = + input.readMessage( + com.google.cloud.securitycenter.v2.VertexAi.Dataset.parser(), + extensionRegistry); + if (datasetsBuilder_ == null) { + ensureDatasetsIsMutable(); + datasets_.add(m); + } else { + datasetsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.cloud.securitycenter.v2.VertexAi.Pipeline m = + input.readMessage( + com.google.cloud.securitycenter.v2.VertexAi.Pipeline.parser(), + extensionRegistry); + if (pipelinesBuilder_ == null) { + ensurePipelinesIsMutable(); + pipelines_.add(m); + } else { + pipelinesBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List datasets_ = + java.util.Collections.emptyList(); + + private void ensureDatasetsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + datasets_ = + new java.util.ArrayList(datasets_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v2.VertexAi.Dataset, + com.google.cloud.securitycenter.v2.VertexAi.Dataset.Builder, + com.google.cloud.securitycenter.v2.VertexAi.DatasetOrBuilder> + datasetsBuilder_; + + /** + * + * + *
      +     * Datasets associated with the finding.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Dataset datasets = 1; + */ + public java.util.List getDatasetsList() { + if (datasetsBuilder_ == null) { + return java.util.Collections.unmodifiableList(datasets_); + } else { + return datasetsBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * Datasets associated with the finding.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Dataset datasets = 1; + */ + public int getDatasetsCount() { + if (datasetsBuilder_ == null) { + return datasets_.size(); + } else { + return datasetsBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * Datasets associated with the finding.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Dataset datasets = 1; + */ + public com.google.cloud.securitycenter.v2.VertexAi.Dataset getDatasets(int index) { + if (datasetsBuilder_ == null) { + return datasets_.get(index); + } else { + return datasetsBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * Datasets associated with the finding.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Dataset datasets = 1; + */ + public Builder setDatasets( + int index, com.google.cloud.securitycenter.v2.VertexAi.Dataset value) { + if (datasetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDatasetsIsMutable(); + datasets_.set(index, value); + onChanged(); + } else { + datasetsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Datasets associated with the finding.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Dataset datasets = 1; + */ + public Builder setDatasets( + int index, com.google.cloud.securitycenter.v2.VertexAi.Dataset.Builder builderForValue) { + if (datasetsBuilder_ == null) { + ensureDatasetsIsMutable(); + datasets_.set(index, builderForValue.build()); + onChanged(); + } else { + datasetsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Datasets associated with the finding.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Dataset datasets = 1; + */ + public Builder addDatasets(com.google.cloud.securitycenter.v2.VertexAi.Dataset value) { + if (datasetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDatasetsIsMutable(); + datasets_.add(value); + onChanged(); + } else { + datasetsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * Datasets associated with the finding.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Dataset datasets = 1; + */ + public Builder addDatasets( + int index, com.google.cloud.securitycenter.v2.VertexAi.Dataset value) { + if (datasetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDatasetsIsMutable(); + datasets_.add(index, value); + onChanged(); + } else { + datasetsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Datasets associated with the finding.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Dataset datasets = 1; + */ + public Builder addDatasets( + com.google.cloud.securitycenter.v2.VertexAi.Dataset.Builder builderForValue) { + if (datasetsBuilder_ == null) { + ensureDatasetsIsMutable(); + datasets_.add(builderForValue.build()); + onChanged(); + } else { + datasetsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Datasets associated with the finding.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Dataset datasets = 1; + */ + public Builder addDatasets( + int index, com.google.cloud.securitycenter.v2.VertexAi.Dataset.Builder builderForValue) { + if (datasetsBuilder_ == null) { + ensureDatasetsIsMutable(); + datasets_.add(index, builderForValue.build()); + onChanged(); + } else { + datasetsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Datasets associated with the finding.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Dataset datasets = 1; + */ + public Builder addAllDatasets( + java.lang.Iterable values) { + if (datasetsBuilder_ == null) { + ensureDatasetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, datasets_); + onChanged(); + } else { + datasetsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * Datasets associated with the finding.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Dataset datasets = 1; + */ + public Builder clearDatasets() { + if (datasetsBuilder_ == null) { + datasets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + datasetsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Datasets associated with the finding.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Dataset datasets = 1; + */ + public Builder removeDatasets(int index) { + if (datasetsBuilder_ == null) { + ensureDatasetsIsMutable(); + datasets_.remove(index); + onChanged(); + } else { + datasetsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * Datasets associated with the finding.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Dataset datasets = 1; + */ + public com.google.cloud.securitycenter.v2.VertexAi.Dataset.Builder getDatasetsBuilder( + int index) { + return getDatasetsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * Datasets associated with the finding.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Dataset datasets = 1; + */ + public com.google.cloud.securitycenter.v2.VertexAi.DatasetOrBuilder getDatasetsOrBuilder( + int index) { + if (datasetsBuilder_ == null) { + return datasets_.get(index); + } else { + return datasetsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * Datasets associated with the finding.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Dataset datasets = 1; + */ + public java.util.List + getDatasetsOrBuilderList() { + if (datasetsBuilder_ != null) { + return datasetsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(datasets_); + } + } + + /** + * + * + *
      +     * Datasets associated with the finding.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Dataset datasets = 1; + */ + public com.google.cloud.securitycenter.v2.VertexAi.Dataset.Builder addDatasetsBuilder() { + return getDatasetsFieldBuilder() + .addBuilder(com.google.cloud.securitycenter.v2.VertexAi.Dataset.getDefaultInstance()); + } + + /** + * + * + *
      +     * Datasets associated with the finding.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Dataset datasets = 1; + */ + public com.google.cloud.securitycenter.v2.VertexAi.Dataset.Builder addDatasetsBuilder( + int index) { + return getDatasetsFieldBuilder() + .addBuilder( + index, com.google.cloud.securitycenter.v2.VertexAi.Dataset.getDefaultInstance()); + } + + /** + * + * + *
      +     * Datasets associated with the finding.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Dataset datasets = 1; + */ + public java.util.List + getDatasetsBuilderList() { + return getDatasetsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v2.VertexAi.Dataset, + com.google.cloud.securitycenter.v2.VertexAi.Dataset.Builder, + com.google.cloud.securitycenter.v2.VertexAi.DatasetOrBuilder> + getDatasetsFieldBuilder() { + if (datasetsBuilder_ == null) { + datasetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v2.VertexAi.Dataset, + com.google.cloud.securitycenter.v2.VertexAi.Dataset.Builder, + com.google.cloud.securitycenter.v2.VertexAi.DatasetOrBuilder>( + datasets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + datasets_ = null; + } + return datasetsBuilder_; + } + + private java.util.List pipelines_ = + java.util.Collections.emptyList(); + + private void ensurePipelinesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + pipelines_ = + new java.util.ArrayList( + pipelines_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v2.VertexAi.Pipeline, + com.google.cloud.securitycenter.v2.VertexAi.Pipeline.Builder, + com.google.cloud.securitycenter.v2.VertexAi.PipelineOrBuilder> + pipelinesBuilder_; + + /** + * + * + *
      +     * Pipelines associated with the finding.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Pipeline pipelines = 2; + */ + public java.util.List getPipelinesList() { + if (pipelinesBuilder_ == null) { + return java.util.Collections.unmodifiableList(pipelines_); + } else { + return pipelinesBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * Pipelines associated with the finding.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Pipeline pipelines = 2; + */ + public int getPipelinesCount() { + if (pipelinesBuilder_ == null) { + return pipelines_.size(); + } else { + return pipelinesBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * Pipelines associated with the finding.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Pipeline pipelines = 2; + */ + public com.google.cloud.securitycenter.v2.VertexAi.Pipeline getPipelines(int index) { + if (pipelinesBuilder_ == null) { + return pipelines_.get(index); + } else { + return pipelinesBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * Pipelines associated with the finding.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Pipeline pipelines = 2; + */ + public Builder setPipelines( + int index, com.google.cloud.securitycenter.v2.VertexAi.Pipeline value) { + if (pipelinesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePipelinesIsMutable(); + pipelines_.set(index, value); + onChanged(); + } else { + pipelinesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Pipelines associated with the finding.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Pipeline pipelines = 2; + */ + public Builder setPipelines( + int index, com.google.cloud.securitycenter.v2.VertexAi.Pipeline.Builder builderForValue) { + if (pipelinesBuilder_ == null) { + ensurePipelinesIsMutable(); + pipelines_.set(index, builderForValue.build()); + onChanged(); + } else { + pipelinesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Pipelines associated with the finding.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Pipeline pipelines = 2; + */ + public Builder addPipelines(com.google.cloud.securitycenter.v2.VertexAi.Pipeline value) { + if (pipelinesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePipelinesIsMutable(); + pipelines_.add(value); + onChanged(); + } else { + pipelinesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * Pipelines associated with the finding.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Pipeline pipelines = 2; + */ + public Builder addPipelines( + int index, com.google.cloud.securitycenter.v2.VertexAi.Pipeline value) { + if (pipelinesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePipelinesIsMutable(); + pipelines_.add(index, value); + onChanged(); + } else { + pipelinesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Pipelines associated with the finding.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Pipeline pipelines = 2; + */ + public Builder addPipelines( + com.google.cloud.securitycenter.v2.VertexAi.Pipeline.Builder builderForValue) { + if (pipelinesBuilder_ == null) { + ensurePipelinesIsMutable(); + pipelines_.add(builderForValue.build()); + onChanged(); + } else { + pipelinesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Pipelines associated with the finding.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Pipeline pipelines = 2; + */ + public Builder addPipelines( + int index, com.google.cloud.securitycenter.v2.VertexAi.Pipeline.Builder builderForValue) { + if (pipelinesBuilder_ == null) { + ensurePipelinesIsMutable(); + pipelines_.add(index, builderForValue.build()); + onChanged(); + } else { + pipelinesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Pipelines associated with the finding.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Pipeline pipelines = 2; + */ + public Builder addAllPipelines( + java.lang.Iterable values) { + if (pipelinesBuilder_ == null) { + ensurePipelinesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pipelines_); + onChanged(); + } else { + pipelinesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * Pipelines associated with the finding.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Pipeline pipelines = 2; + */ + public Builder clearPipelines() { + if (pipelinesBuilder_ == null) { + pipelines_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + pipelinesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Pipelines associated with the finding.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Pipeline pipelines = 2; + */ + public Builder removePipelines(int index) { + if (pipelinesBuilder_ == null) { + ensurePipelinesIsMutable(); + pipelines_.remove(index); + onChanged(); + } else { + pipelinesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * Pipelines associated with the finding.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Pipeline pipelines = 2; + */ + public com.google.cloud.securitycenter.v2.VertexAi.Pipeline.Builder getPipelinesBuilder( + int index) { + return getPipelinesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * Pipelines associated with the finding.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Pipeline pipelines = 2; + */ + public com.google.cloud.securitycenter.v2.VertexAi.PipelineOrBuilder getPipelinesOrBuilder( + int index) { + if (pipelinesBuilder_ == null) { + return pipelines_.get(index); + } else { + return pipelinesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * Pipelines associated with the finding.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Pipeline pipelines = 2; + */ + public java.util.List + getPipelinesOrBuilderList() { + if (pipelinesBuilder_ != null) { + return pipelinesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(pipelines_); + } + } + + /** + * + * + *
      +     * Pipelines associated with the finding.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Pipeline pipelines = 2; + */ + public com.google.cloud.securitycenter.v2.VertexAi.Pipeline.Builder addPipelinesBuilder() { + return getPipelinesFieldBuilder() + .addBuilder(com.google.cloud.securitycenter.v2.VertexAi.Pipeline.getDefaultInstance()); + } + + /** + * + * + *
      +     * Pipelines associated with the finding.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Pipeline pipelines = 2; + */ + public com.google.cloud.securitycenter.v2.VertexAi.Pipeline.Builder addPipelinesBuilder( + int index) { + return getPipelinesFieldBuilder() + .addBuilder( + index, com.google.cloud.securitycenter.v2.VertexAi.Pipeline.getDefaultInstance()); + } + + /** + * + * + *
      +     * Pipelines associated with the finding.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Pipeline pipelines = 2; + */ + public java.util.List + getPipelinesBuilderList() { + return getPipelinesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v2.VertexAi.Pipeline, + com.google.cloud.securitycenter.v2.VertexAi.Pipeline.Builder, + com.google.cloud.securitycenter.v2.VertexAi.PipelineOrBuilder> + getPipelinesFieldBuilder() { + if (pipelinesBuilder_ == null) { + pipelinesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v2.VertexAi.Pipeline, + com.google.cloud.securitycenter.v2.VertexAi.Pipeline.Builder, + com.google.cloud.securitycenter.v2.VertexAi.PipelineOrBuilder>( + pipelines_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + pipelines_ = null; + } + return pipelinesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v2.VertexAi) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v2.VertexAi) + private static final com.google.cloud.securitycenter.v2.VertexAi DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v2.VertexAi(); + } + + public static com.google.cloud.securitycenter.v2.VertexAi getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VertexAi parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.VertexAi getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/VertexAiOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/VertexAiOrBuilder.java new file mode 100644 index 000000000000..b5d29df1894b --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/VertexAiOrBuilder.java @@ -0,0 +1,138 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v2/vertex_ai.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.securitycenter.v2; + +public interface VertexAiOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v2.VertexAi) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Datasets associated with the finding.
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Dataset datasets = 1; + */ + java.util.List getDatasetsList(); + + /** + * + * + *
      +   * Datasets associated with the finding.
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Dataset datasets = 1; + */ + com.google.cloud.securitycenter.v2.VertexAi.Dataset getDatasets(int index); + + /** + * + * + *
      +   * Datasets associated with the finding.
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Dataset datasets = 1; + */ + int getDatasetsCount(); + + /** + * + * + *
      +   * Datasets associated with the finding.
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Dataset datasets = 1; + */ + java.util.List + getDatasetsOrBuilderList(); + + /** + * + * + *
      +   * Datasets associated with the finding.
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Dataset datasets = 1; + */ + com.google.cloud.securitycenter.v2.VertexAi.DatasetOrBuilder getDatasetsOrBuilder(int index); + + /** + * + * + *
      +   * Pipelines associated with the finding.
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Pipeline pipelines = 2; + */ + java.util.List getPipelinesList(); + + /** + * + * + *
      +   * Pipelines associated with the finding.
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Pipeline pipelines = 2; + */ + com.google.cloud.securitycenter.v2.VertexAi.Pipeline getPipelines(int index); + + /** + * + * + *
      +   * Pipelines associated with the finding.
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Pipeline pipelines = 2; + */ + int getPipelinesCount(); + + /** + * + * + *
      +   * Pipelines associated with the finding.
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Pipeline pipelines = 2; + */ + java.util.List + getPipelinesOrBuilderList(); + + /** + * + * + *
      +   * Pipelines associated with the finding.
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.VertexAi.Pipeline pipelines = 2; + */ + com.google.cloud.securitycenter.v2.VertexAi.PipelineOrBuilder getPipelinesOrBuilder(int index); +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/VertexAiProto.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/VertexAiProto.java new file mode 100644 index 000000000000..d05f4c5aa6f5 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/VertexAiProto.java @@ -0,0 +1,98 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v2/vertex_ai.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.securitycenter.v2; + +public final class VertexAiProto { + private VertexAiProto() {} + + 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_cloud_securitycenter_v2_VertexAi_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v2_VertexAi_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v2_VertexAi_Dataset_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v2_VertexAi_Dataset_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v2_VertexAi_Pipeline_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v2_VertexAi_Pipeline_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/cloud/securitycenter/v2/vertex_" + + "ai.proto\022\036google.cloud.securitycenter.v2" + + "\"\203\002\n\010VertexAi\022B\n\010datasets\030\001 \003(\01320.google" + + ".cloud.securitycenter.v2.VertexAi.Datase" + + "t\022D\n\tpipelines\030\002 \003(\01321.google.cloud.secu" + + "ritycenter.v2.VertexAi.Pipeline\032=\n\007Datas" + + "et\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022\016" + + "\n\006source\030\003 \001(\t\032.\n\010Pipeline\022\014\n\004name\030\001 \001(\t" + + "\022\024\n\014display_name\030\002 \001(\tB\347\001\n\"com.google.cl" + + "oud.securitycenter.v2B\rVertexAiProtoP\001ZJ" + + "cloud.google.com/go/securitycenter/apiv2" + + "/securitycenterpb;securitycenterpb\252\002\036Goo" + + "gle.Cloud.SecurityCenter.V2\312\002\036Google\\Clo" + + "ud\\SecurityCenter\\V2\352\002!Google::Cloud::Se" + + "curityCenter::V2b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_cloud_securitycenter_v2_VertexAi_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v2_VertexAi_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v2_VertexAi_descriptor, + new java.lang.String[] { + "Datasets", "Pipelines", + }); + internal_static_google_cloud_securitycenter_v2_VertexAi_Dataset_descriptor = + internal_static_google_cloud_securitycenter_v2_VertexAi_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_securitycenter_v2_VertexAi_Dataset_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v2_VertexAi_Dataset_descriptor, + new java.lang.String[] { + "Name", "DisplayName", "Source", + }); + internal_static_google_cloud_securitycenter_v2_VertexAi_Pipeline_descriptor = + internal_static_google_cloud_securitycenter_v2_VertexAi_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_securitycenter_v2_VertexAi_Pipeline_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v2_VertexAi_Pipeline_descriptor, + new java.lang.String[] { + "Name", "DisplayName", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/Vulnerability.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/Vulnerability.java index 2d8efd1c3a22..4e9961e2ac21 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/Vulnerability.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/Vulnerability.java @@ -39,7 +39,9 @@ private Vulnerability(com.google.protobuf.GeneratedMessageV3.Builder builder) super(builder); } - private Vulnerability() {} + private Vulnerability() { + cwes_ = java.util.Collections.emptyList(); + } @java.lang.Override @SuppressWarnings({"unused"}) @@ -275,6 +277,127 @@ public com.google.cloud.securitycenter.v2.SecurityBulletin getSecurityBulletin() : securityBulletin_; } + public static final int PROVIDER_RISK_SCORE_FIELD_NUMBER = 5; + private long providerRiskScore_ = 0L; + + /** + * + * + *
      +   * Provider provided risk_score based on multiple factors. The higher the risk
      +   * score, the more risky the vulnerability is.
      +   * 
      + * + * int64 provider_risk_score = 5; + * + * @return The providerRiskScore. + */ + @java.lang.Override + public long getProviderRiskScore() { + return providerRiskScore_; + } + + public static final int REACHABLE_FIELD_NUMBER = 6; + private boolean reachable_ = false; + + /** + * + * + *
      +   * Represents whether the vulnerability is reachable (detected via static
      +   * analysis)
      +   * 
      + * + * bool reachable = 6; + * + * @return The reachable. + */ + @java.lang.Override + public boolean getReachable() { + return reachable_; + } + + public static final int CWES_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private java.util.List cwes_; + + /** + * + * + *
      +   * Represents one or more Common Weakness Enumeration (CWE) information on
      +   * this vulnerability.
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.Cwe cwes = 7; + */ + @java.lang.Override + public java.util.List getCwesList() { + return cwes_; + } + + /** + * + * + *
      +   * Represents one or more Common Weakness Enumeration (CWE) information on
      +   * this vulnerability.
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.Cwe cwes = 7; + */ + @java.lang.Override + public java.util.List + getCwesOrBuilderList() { + return cwes_; + } + + /** + * + * + *
      +   * Represents one or more Common Weakness Enumeration (CWE) information on
      +   * this vulnerability.
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.Cwe cwes = 7; + */ + @java.lang.Override + public int getCwesCount() { + return cwes_.size(); + } + + /** + * + * + *
      +   * Represents one or more Common Weakness Enumeration (CWE) information on
      +   * this vulnerability.
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.Cwe cwes = 7; + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.Cwe getCwes(int index) { + return cwes_.get(index); + } + + /** + * + * + *
      +   * Represents one or more Common Weakness Enumeration (CWE) information on
      +   * this vulnerability.
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.Cwe cwes = 7; + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.CweOrBuilder getCwesOrBuilder(int index) { + return cwes_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -301,6 +424,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(4, getSecurityBulletin()); } + if (providerRiskScore_ != 0L) { + output.writeInt64(5, providerRiskScore_); + } + if (reachable_ != false) { + output.writeBool(6, reachable_); + } + for (int i = 0; i < cwes_.size(); i++) { + output.writeMessage(7, cwes_.get(i)); + } getUnknownFields().writeTo(output); } @@ -322,6 +454,15 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSecurityBulletin()); } + if (providerRiskScore_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, providerRiskScore_); + } + if (reachable_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, reachable_); + } + for (int i = 0; i < cwes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, cwes_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -354,6 +495,9 @@ public boolean equals(final java.lang.Object obj) { if (hasSecurityBulletin()) { if (!getSecurityBulletin().equals(other.getSecurityBulletin())) return false; } + if (getProviderRiskScore() != other.getProviderRiskScore()) return false; + if (getReachable() != other.getReachable()) return false; + if (!getCwesList().equals(other.getCwesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -381,6 +525,14 @@ public int hashCode() { hash = (37 * hash) + SECURITY_BULLETIN_FIELD_NUMBER; hash = (53 * hash) + getSecurityBulletin().hashCode(); } + hash = (37 * hash) + PROVIDER_RISK_SCORE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getProviderRiskScore()); + hash = (37 * hash) + REACHABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReachable()); + if (getCwesCount() > 0) { + hash = (37 * hash) + CWES_FIELD_NUMBER; + hash = (53 * hash) + getCwesList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -526,6 +678,7 @@ private void maybeForceBuilderInitialization() { getOffendingPackageFieldBuilder(); getFixedPackageFieldBuilder(); getSecurityBulletinFieldBuilder(); + getCwesFieldBuilder(); } } @@ -553,6 +706,15 @@ public Builder clear() { securityBulletinBuilder_.dispose(); securityBulletinBuilder_ = null; } + providerRiskScore_ = 0L; + reachable_ = false; + if (cwesBuilder_ == null) { + cwes_ = java.util.Collections.emptyList(); + } else { + cwes_ = null; + cwesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); return this; } @@ -580,6 +742,7 @@ public com.google.cloud.securitycenter.v2.Vulnerability build() { public com.google.cloud.securitycenter.v2.Vulnerability buildPartial() { com.google.cloud.securitycenter.v2.Vulnerability result = new com.google.cloud.securitycenter.v2.Vulnerability(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -587,6 +750,19 @@ public com.google.cloud.securitycenter.v2.Vulnerability buildPartial() { return result; } + private void buildPartialRepeatedFields( + com.google.cloud.securitycenter.v2.Vulnerability result) { + if (cwesBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + cwes_ = java.util.Collections.unmodifiableList(cwes_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.cwes_ = cwes_; + } else { + result.cwes_ = cwesBuilder_.build(); + } + } + private void buildPartial0(com.google.cloud.securitycenter.v2.Vulnerability result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; @@ -609,6 +785,12 @@ private void buildPartial0(com.google.cloud.securitycenter.v2.Vulnerability resu securityBulletinBuilder_ == null ? securityBulletin_ : securityBulletinBuilder_.build(); to_bitField0_ |= 0x00000008; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.providerRiskScore_ = providerRiskScore_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.reachable_ = reachable_; + } result.bitField0_ |= to_bitField0_; } @@ -670,6 +852,39 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v2.Vulnerability other) if (other.hasSecurityBulletin()) { mergeSecurityBulletin(other.getSecurityBulletin()); } + if (other.getProviderRiskScore() != 0L) { + setProviderRiskScore(other.getProviderRiskScore()); + } + if (other.getReachable() != false) { + setReachable(other.getReachable()); + } + if (cwesBuilder_ == null) { + if (!other.cwes_.isEmpty()) { + if (cwes_.isEmpty()) { + cwes_ = other.cwes_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureCwesIsMutable(); + cwes_.addAll(other.cwes_); + } + onChanged(); + } + } else { + if (!other.cwes_.isEmpty()) { + if (cwesBuilder_.isEmpty()) { + cwesBuilder_.dispose(); + cwesBuilder_ = null; + cwes_ = other.cwes_; + bitField0_ = (bitField0_ & ~0x00000040); + cwesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCwesFieldBuilder() + : null; + } else { + cwesBuilder_.addAllMessages(other.cwes_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -722,6 +937,31 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 34 + case 40: + { + providerRiskScore_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + reachable_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + com.google.cloud.securitycenter.v2.Cwe m = + input.readMessage( + com.google.cloud.securitycenter.v2.Cwe.parser(), extensionRegistry); + if (cwesBuilder_ == null) { + ensureCwesIsMutable(); + cwes_.add(m); + } else { + cwesBuilder_.addMessage(m); + } + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1530,6 +1770,507 @@ public Builder clearSecurityBulletin() { return securityBulletinBuilder_; } + private long providerRiskScore_; + + /** + * + * + *
      +     * Provider provided risk_score based on multiple factors. The higher the risk
      +     * score, the more risky the vulnerability is.
      +     * 
      + * + * int64 provider_risk_score = 5; + * + * @return The providerRiskScore. + */ + @java.lang.Override + public long getProviderRiskScore() { + return providerRiskScore_; + } + + /** + * + * + *
      +     * Provider provided risk_score based on multiple factors. The higher the risk
      +     * score, the more risky the vulnerability is.
      +     * 
      + * + * int64 provider_risk_score = 5; + * + * @param value The providerRiskScore to set. + * @return This builder for chaining. + */ + public Builder setProviderRiskScore(long value) { + + providerRiskScore_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Provider provided risk_score based on multiple factors. The higher the risk
      +     * score, the more risky the vulnerability is.
      +     * 
      + * + * int64 provider_risk_score = 5; + * + * @return This builder for chaining. + */ + public Builder clearProviderRiskScore() { + bitField0_ = (bitField0_ & ~0x00000010); + providerRiskScore_ = 0L; + onChanged(); + return this; + } + + private boolean reachable_; + + /** + * + * + *
      +     * Represents whether the vulnerability is reachable (detected via static
      +     * analysis)
      +     * 
      + * + * bool reachable = 6; + * + * @return The reachable. + */ + @java.lang.Override + public boolean getReachable() { + return reachable_; + } + + /** + * + * + *
      +     * Represents whether the vulnerability is reachable (detected via static
      +     * analysis)
      +     * 
      + * + * bool reachable = 6; + * + * @param value The reachable to set. + * @return This builder for chaining. + */ + public Builder setReachable(boolean value) { + + reachable_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Represents whether the vulnerability is reachable (detected via static
      +     * analysis)
      +     * 
      + * + * bool reachable = 6; + * + * @return This builder for chaining. + */ + public Builder clearReachable() { + bitField0_ = (bitField0_ & ~0x00000020); + reachable_ = false; + onChanged(); + return this; + } + + private java.util.List cwes_ = + java.util.Collections.emptyList(); + + private void ensureCwesIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + cwes_ = new java.util.ArrayList(cwes_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v2.Cwe, + com.google.cloud.securitycenter.v2.Cwe.Builder, + com.google.cloud.securitycenter.v2.CweOrBuilder> + cwesBuilder_; + + /** + * + * + *
      +     * Represents one or more Common Weakness Enumeration (CWE) information on
      +     * this vulnerability.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.Cwe cwes = 7; + */ + public java.util.List getCwesList() { + if (cwesBuilder_ == null) { + return java.util.Collections.unmodifiableList(cwes_); + } else { + return cwesBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * Represents one or more Common Weakness Enumeration (CWE) information on
      +     * this vulnerability.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.Cwe cwes = 7; + */ + public int getCwesCount() { + if (cwesBuilder_ == null) { + return cwes_.size(); + } else { + return cwesBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * Represents one or more Common Weakness Enumeration (CWE) information on
      +     * this vulnerability.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.Cwe cwes = 7; + */ + public com.google.cloud.securitycenter.v2.Cwe getCwes(int index) { + if (cwesBuilder_ == null) { + return cwes_.get(index); + } else { + return cwesBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * Represents one or more Common Weakness Enumeration (CWE) information on
      +     * this vulnerability.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.Cwe cwes = 7; + */ + public Builder setCwes(int index, com.google.cloud.securitycenter.v2.Cwe value) { + if (cwesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCwesIsMutable(); + cwes_.set(index, value); + onChanged(); + } else { + cwesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Represents one or more Common Weakness Enumeration (CWE) information on
      +     * this vulnerability.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.Cwe cwes = 7; + */ + public Builder setCwes( + int index, com.google.cloud.securitycenter.v2.Cwe.Builder builderForValue) { + if (cwesBuilder_ == null) { + ensureCwesIsMutable(); + cwes_.set(index, builderForValue.build()); + onChanged(); + } else { + cwesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Represents one or more Common Weakness Enumeration (CWE) information on
      +     * this vulnerability.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.Cwe cwes = 7; + */ + public Builder addCwes(com.google.cloud.securitycenter.v2.Cwe value) { + if (cwesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCwesIsMutable(); + cwes_.add(value); + onChanged(); + } else { + cwesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * Represents one or more Common Weakness Enumeration (CWE) information on
      +     * this vulnerability.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.Cwe cwes = 7; + */ + public Builder addCwes(int index, com.google.cloud.securitycenter.v2.Cwe value) { + if (cwesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCwesIsMutable(); + cwes_.add(index, value); + onChanged(); + } else { + cwesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Represents one or more Common Weakness Enumeration (CWE) information on
      +     * this vulnerability.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.Cwe cwes = 7; + */ + public Builder addCwes(com.google.cloud.securitycenter.v2.Cwe.Builder builderForValue) { + if (cwesBuilder_ == null) { + ensureCwesIsMutable(); + cwes_.add(builderForValue.build()); + onChanged(); + } else { + cwesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Represents one or more Common Weakness Enumeration (CWE) information on
      +     * this vulnerability.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.Cwe cwes = 7; + */ + public Builder addCwes( + int index, com.google.cloud.securitycenter.v2.Cwe.Builder builderForValue) { + if (cwesBuilder_ == null) { + ensureCwesIsMutable(); + cwes_.add(index, builderForValue.build()); + onChanged(); + } else { + cwesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Represents one or more Common Weakness Enumeration (CWE) information on
      +     * this vulnerability.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.Cwe cwes = 7; + */ + public Builder addAllCwes( + java.lang.Iterable values) { + if (cwesBuilder_ == null) { + ensureCwesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cwes_); + onChanged(); + } else { + cwesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * Represents one or more Common Weakness Enumeration (CWE) information on
      +     * this vulnerability.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.Cwe cwes = 7; + */ + public Builder clearCwes() { + if (cwesBuilder_ == null) { + cwes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + cwesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Represents one or more Common Weakness Enumeration (CWE) information on
      +     * this vulnerability.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.Cwe cwes = 7; + */ + public Builder removeCwes(int index) { + if (cwesBuilder_ == null) { + ensureCwesIsMutable(); + cwes_.remove(index); + onChanged(); + } else { + cwesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * Represents one or more Common Weakness Enumeration (CWE) information on
      +     * this vulnerability.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.Cwe cwes = 7; + */ + public com.google.cloud.securitycenter.v2.Cwe.Builder getCwesBuilder(int index) { + return getCwesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * Represents one or more Common Weakness Enumeration (CWE) information on
      +     * this vulnerability.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.Cwe cwes = 7; + */ + public com.google.cloud.securitycenter.v2.CweOrBuilder getCwesOrBuilder(int index) { + if (cwesBuilder_ == null) { + return cwes_.get(index); + } else { + return cwesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * Represents one or more Common Weakness Enumeration (CWE) information on
      +     * this vulnerability.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.Cwe cwes = 7; + */ + public java.util.List + getCwesOrBuilderList() { + if (cwesBuilder_ != null) { + return cwesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(cwes_); + } + } + + /** + * + * + *
      +     * Represents one or more Common Weakness Enumeration (CWE) information on
      +     * this vulnerability.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.Cwe cwes = 7; + */ + public com.google.cloud.securitycenter.v2.Cwe.Builder addCwesBuilder() { + return getCwesFieldBuilder() + .addBuilder(com.google.cloud.securitycenter.v2.Cwe.getDefaultInstance()); + } + + /** + * + * + *
      +     * Represents one or more Common Weakness Enumeration (CWE) information on
      +     * this vulnerability.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.Cwe cwes = 7; + */ + public com.google.cloud.securitycenter.v2.Cwe.Builder addCwesBuilder(int index) { + return getCwesFieldBuilder() + .addBuilder(index, com.google.cloud.securitycenter.v2.Cwe.getDefaultInstance()); + } + + /** + * + * + *
      +     * Represents one or more Common Weakness Enumeration (CWE) information on
      +     * this vulnerability.
      +     * 
      + * + * repeated .google.cloud.securitycenter.v2.Cwe cwes = 7; + */ + public java.util.List getCwesBuilderList() { + return getCwesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v2.Cwe, + com.google.cloud.securitycenter.v2.Cwe.Builder, + com.google.cloud.securitycenter.v2.CweOrBuilder> + getCwesFieldBuilder() { + if (cwesBuilder_ == null) { + cwesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v2.Cwe, + com.google.cloud.securitycenter.v2.Cwe.Builder, + com.google.cloud.securitycenter.v2.CweOrBuilder>( + cwes_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); + cwes_ = null; + } + return cwesBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/VulnerabilityOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/VulnerabilityOrBuilder.java index a458127ced2d..cfa9e04d5640 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/VulnerabilityOrBuilder.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/VulnerabilityOrBuilder.java @@ -174,4 +174,92 @@ public interface VulnerabilityOrBuilder * .google.cloud.securitycenter.v2.SecurityBulletin security_bulletin = 4; */ com.google.cloud.securitycenter.v2.SecurityBulletinOrBuilder getSecurityBulletinOrBuilder(); + + /** + * + * + *
      +   * Provider provided risk_score based on multiple factors. The higher the risk
      +   * score, the more risky the vulnerability is.
      +   * 
      + * + * int64 provider_risk_score = 5; + * + * @return The providerRiskScore. + */ + long getProviderRiskScore(); + + /** + * + * + *
      +   * Represents whether the vulnerability is reachable (detected via static
      +   * analysis)
      +   * 
      + * + * bool reachable = 6; + * + * @return The reachable. + */ + boolean getReachable(); + + /** + * + * + *
      +   * Represents one or more Common Weakness Enumeration (CWE) information on
      +   * this vulnerability.
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.Cwe cwes = 7; + */ + java.util.List getCwesList(); + + /** + * + * + *
      +   * Represents one or more Common Weakness Enumeration (CWE) information on
      +   * this vulnerability.
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.Cwe cwes = 7; + */ + com.google.cloud.securitycenter.v2.Cwe getCwes(int index); + + /** + * + * + *
      +   * Represents one or more Common Weakness Enumeration (CWE) information on
      +   * this vulnerability.
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.Cwe cwes = 7; + */ + int getCwesCount(); + + /** + * + * + *
      +   * Represents one or more Common Weakness Enumeration (CWE) information on
      +   * this vulnerability.
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.Cwe cwes = 7; + */ + java.util.List getCwesOrBuilderList(); + + /** + * + * + *
      +   * Represents one or more Common Weakness Enumeration (CWE) information on
      +   * this vulnerability.
      +   * 
      + * + * repeated .google.cloud.securitycenter.v2.Cwe cwes = 7; + */ + com.google.cloud.securitycenter.v2.CweOrBuilder getCwesOrBuilder(int index); } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/VulnerabilityProto.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/VulnerabilityProto.java index 2cdab0c1f5ef..0c41723a2b3f 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/VulnerabilityProto.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/VulnerabilityProto.java @@ -52,6 +52,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_securitycenter_v2_SecurityBulletin_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_securitycenter_v2_SecurityBulletin_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v2_Cwe_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v2_Cwe_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -63,22 +67,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n" + "2google/cloud/securitycenter/v2/vulnerability.proto\022\036google.cloud.securitycente" - + "r.v2\032\037google/protobuf/timestamp.proto\"\222\002\n\r" + + "r.v2\032\037google/protobuf/timestamp.proto\"\365\002\n\r" + "Vulnerability\0220\n" + "\003cve\030\001 \001(\0132#.google.cloud.securitycenter.v2.Cve\022B\n" + "\021offending_package\030\002" + " \001(\0132\'.google.cloud.securitycenter.v2.Package\022>\n\r" + "fixed_package\030\003 \001(\0132\'.google.cloud.securitycenter.v2.Package\022K\n" + "\021security_bulletin\030\004" - + " \001(\01320.google.cloud.securitycenter.v2.SecurityBulletin\"\307\005\n" + + " \001(\01320.google.cloud.securitycenter.v2.SecurityBulletin\022\033\n" + + "\023provider_risk_score\030\005 \001(\003\022\021\n" + + "\treachable\030\006 \001(\010\0221\n" + + "\004cwes\030\007 \003(\0132#.google.cloud.securitycenter.v2.Cwe\"\307\005\n" + "\003Cve\022\n\n" + "\002id\030\001 \001(\t\022=\n\n" + "references\030\002 \003(\0132).google.cloud.securitycenter.v2.Reference\0226\n" + "\006cvssv3\030\003 \001(\0132&.google.cloud.securitycenter.v2.Cvssv3\022\036\n" + "\026upstream_fix_available\030\004 \001(\010\022>\n" + "\006impact\030\005 \001(\0162..google.cloud.securitycenter.v2.Cve.RiskRating\022W\n" - + "\025exploitation_activity\030\006 \001(\01628.google.cloud.secu" - + "ritycenter.v2.Cve.ExploitationActivity\022\034\n" + + "\025exploitation_activity\030\006 \001(\0162" + + "8.google.cloud.securitycenter.v2.Cve.ExploitationActivity\022\034\n" + "\024observed_in_the_wild\030\007 \001(\010\022\020\n" + "\010zero_day\030\010 \001(\010\0228\n" + "\024exploit_release_date\030\t \001(\0132\032.google.protobuf.Timestamp\022;\n" @@ -104,19 +111,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "base_score\030\001 \001(\001\022J\n\r" + "attack_vector\030\002" + " \001(\01623.google.cloud.securitycenter.v2.Cvssv3.AttackVector\022R\n" - + "\021attack_complexity\030\003" - + " \001(\01627.google.cloud.securitycenter.v2.Cvssv3.AttackComplexity\022V\n" - + "\023privileges_required\030\004" - + " \001(\01629.google.cloud.securitycenter.v2.Cvssv3.PrivilegesRequired\022P\n" - + "\020user_interaction\030\005" - + " \001(\01626.google.cloud.securitycenter.v2.Cvssv3.UserInteraction\022;\n" + + "\021attack_complexity\030\003 \001(\01627.google.cloud.s" + + "ecuritycenter.v2.Cvssv3.AttackComplexity\022V\n" + + "\023privileges_required\030\004 \001(\01629.google.c" + + "loud.securitycenter.v2.Cvssv3.PrivilegesRequired\022P\n" + + "\020user_interaction\030\005 \001(\01626.goo" + + "gle.cloud.securitycenter.v2.Cvssv3.UserInteraction\022;\n" + "\005scope\030\006 \001(\0162,.google.cloud.securitycenter.v2.Cvssv3.Scope\022M\n" + "\026confidentiality_impact\030\007" + " \001(\0162-.google.cloud.securitycenter.v2.Cvssv3.Impact\022G\n" - + "\020integrity_impact\030\010 \001(\0162-." - + "google.cloud.securitycenter.v2.Cvssv3.Impact\022J\n" - + "\023availability_impact\030\t \001(\0162-.goog" - + "le.cloud.securitycenter.v2.Cvssv3.Impact\"\231\001\n" + + "\020integrity_impact\030\010" + + " \001(\0162-.google.cloud.securitycenter.v2.Cvssv3.Impact\022J\n" + + "\023availability_impact\030\t" + + " \001(\0162-.google.cloud.securitycenter.v2.Cvssv3.Impact\"\231\001\n" + "\014AttackVector\022\035\n" + "\031ATTACK_VECTOR_UNSPECIFIED\020\000\022\031\n" + "\025ATTACK_VECTOR_NETWORK\020\001\022\032\n" @@ -153,12 +160,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020SecurityBulletin\022\023\n" + "\013bulletin_id\030\001 \001(\t\0223\n" + "\017submission_time\030\002 \001(\0132\032.google.protobuf.Timestamp\022!\n" - + "\031suggested_upgrade_version\030\003 \001(\tB\354\001\n" - + "\"com.google.cloud.securitycenter.v2B\022Vulnerabili" - + "tyProtoP\001ZJcloud.google.com/go/securitycenter/apiv2/securitycenterpb;securitycen" - + "terpb\252\002\036Google.Cloud.SecurityCenter.V2\312\002" - + "\036Google\\Cloud\\SecurityCenter\\V2\352\002!Google" - + "::Cloud::SecurityCenter::V2b\006proto3" + + "\031suggested_upgrade_version\030\003 \001(\t\"P\n" + + "\003Cwe\022\n\n" + + "\002id\030\001 \001(\t\022=\n\n" + + "references\030\002 \003(\0132).google.cloud.securitycenter.v2.ReferenceB\354\001\n" + + "\"com.google.cloud.securitycenter.v2B\022VulnerabilityProtoP\001ZJcloud.go" + + "ogle.com/go/securitycenter/apiv2/securit" + + "ycenterpb;securitycenterpb\252\002\036Google.Clou" + + "d.SecurityCenter.V2\312\002\036Google\\Cloud\\Secur" + + "ityCenter\\V2\352\002!Google::Cloud::SecurityCenter::V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -172,7 +182,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v2_Vulnerability_descriptor, new java.lang.String[] { - "Cve", "OffendingPackage", "FixedPackage", "SecurityBulletin", + "Cve", + "OffendingPackage", + "FixedPackage", + "SecurityBulletin", + "ProviderRiskScore", + "Reachable", + "Cwes", }); internal_static_google_cloud_securitycenter_v2_Cve_descriptor = getDescriptor().getMessageTypes().get(1); @@ -231,6 +247,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "BulletinId", "SubmissionTime", "SuggestedUpgradeVersion", }); + internal_static_google_cloud_securitycenter_v2_Cwe_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_securitycenter_v2_Cwe_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v2_Cwe_descriptor, + new java.lang.String[] { + "Id", "References", + }); com.google.protobuf.TimestampProto.getDescriptor(); } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/affected_resources.proto b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/affected_resources.proto new file mode 100644 index 000000000000..030c229ce90f --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/affected_resources.proto @@ -0,0 +1,31 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.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.cloud.securitycenter.v2; + +option csharp_namespace = "Google.Cloud.SecurityCenter.V2"; +option go_package = "cloud.google.com/go/securitycenter/apiv2/securitycenterpb;securitycenterpb"; +option java_multiple_files = true; +option java_outer_classname = "AffectedResourcesProto"; +option java_package = "com.google.cloud.securitycenter.v2"; +option php_namespace = "Google\\Cloud\\SecurityCenter\\V2"; +option ruby_package = "Google::Cloud::SecurityCenter::V2"; + +// Details about resources affected by this finding. +message AffectedResources { + // The count of resources affected by the finding. + int64 count = 1; +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/ai_model.proto b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/ai_model.proto new file mode 100644 index 000000000000..4977635d34d5 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/ai_model.proto @@ -0,0 +1,61 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.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.cloud.securitycenter.v2; + +option csharp_namespace = "Google.Cloud.SecurityCenter.V2"; +option go_package = "cloud.google.com/go/securitycenter/apiv2/securitycenterpb;securitycenterpb"; +option java_multiple_files = true; +option java_outer_classname = "AiModelProto"; +option java_package = "com.google.cloud.securitycenter.v2"; +option php_namespace = "Google\\Cloud\\SecurityCenter\\V2"; +option ruby_package = "Google::Cloud::SecurityCenter::V2"; + +// Contains information about the AI model associated with the finding. +message AiModel { + // The platform on which the model is deployed. + enum DeploymentPlatform { + // Unspecified deployment platform. + DEPLOYMENT_PLATFORM_UNSPECIFIED = 0; + + // Vertex AI. + VERTEX_AI = 1; + + // Google Kubernetes Engine. + GKE = 2; + } + + // The name of the AI model, for example, "gemini:1.0.0". + string name = 1; + + // The domain of the model, for example, “image-classification”. + string domain = 2; + + // The name of the model library, for example, “transformers”. + string library = 3; + + // The region in which the model is used, for example, “us-central1”. + string location = 4; + + // The publisher of the model, for example, “google” or “nvidia”. + string publisher = 5; + + // The platform on which the model is deployed. + DeploymentPlatform deployment_platform = 6; + + // The user defined display name of model. Ex. baseline-classification-model + string display_name = 7; +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/chokepoint.proto b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/chokepoint.proto new file mode 100644 index 000000000000..4018fb214e2e --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/chokepoint.proto @@ -0,0 +1,35 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.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.cloud.securitycenter.v2; + +option csharp_namespace = "Google.Cloud.SecurityCenter.V2"; +option go_package = "cloud.google.com/go/securitycenter/apiv2/securitycenterpb;securitycenterpb"; +option java_multiple_files = true; +option java_outer_classname = "ChokepointProto"; +option java_package = "com.google.cloud.securitycenter.v2"; +option php_namespace = "Google\\Cloud\\SecurityCenter\\V2"; +option ruby_package = "Google::Cloud::SecurityCenter::V2"; + +// Contains details about a chokepoint, which is a resource or resource group +// where high-risk attack paths converge, based on [attack path simulations] +// (https://cloud.google.com/security-command-center/docs/attack-exposure-learn#attack_path_simulations). +message Chokepoint { + // List of resource names of findings associated with this chokepoint. + // For example, organizations/123/sources/456/findings/789. + // This list will have at most 100 findings. + repeated string related_findings = 1; +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/disk.proto b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/disk.proto index aa1f81b67e19..304f1ace5850 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/disk.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/disk.proto @@ -27,6 +27,6 @@ option ruby_package = "Google::Cloud::SecurityCenter::V2"; // Contains information about the disk associated with the finding. message Disk { // The name of the disk, for example, - // `https://www.googleapis.com/compute/v1/projects/{project-id}/zones/{zone-id}/disks/{disk-id}`. + // "https://www.googleapis.com/compute/v1/projects/{project-id}/zones/{zone-id}/disks/{disk-id}". string name = 1; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/file.proto b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/file.proto index 263fe7e9626b..7a6ccf410d75 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/file.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/file.proto @@ -38,6 +38,33 @@ message File { string relative_path = 2; } + // Operation(s) performed on a file. + message FileOperation { + // The type of the operation + enum OperationType { + // The operation is unspecified. + OPERATION_TYPE_UNSPECIFIED = 0; + + // Represents an open operation. + OPEN = 1; + + // Represents a read operation. + READ = 2; + + // Represents a rename operation. + RENAME = 3; + + // Represents a write operation. + WRITE = 4; + + // Represents an execute operation. + EXECUTE = 5; + } + + // The type of the operation + OperationType type = 1; + } + // Absolute path of the file as a JSON encoded string. string path = 1; @@ -62,4 +89,7 @@ message File { // Path of the file in terms of underlying disk/partition identifiers. DiskPath disk_path = 7; + + // Operation(s) performed on a file. + repeated FileOperation operations = 8; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/finding.proto b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/finding.proto index 858021a795ad..73be5a018363 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/finding.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/finding.proto @@ -19,9 +19,12 @@ package google.cloud.securitycenter.v2; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/securitycenter/v2/access.proto"; +import "google/cloud/securitycenter/v2/affected_resources.proto"; +import "google/cloud/securitycenter/v2/ai_model.proto"; import "google/cloud/securitycenter/v2/application.proto"; import "google/cloud/securitycenter/v2/attack_exposure.proto"; import "google/cloud/securitycenter/v2/backup_disaster_recovery.proto"; +import "google/cloud/securitycenter/v2/chokepoint.proto"; import "google/cloud/securitycenter/v2/cloud_armor.proto"; import "google/cloud/securitycenter/v2/cloud_dlp_data_profile.proto"; import "google/cloud/securitycenter/v2/cloud_dlp_inspection.proto"; @@ -40,17 +43,21 @@ import "google/cloud/securitycenter/v2/file.proto"; import "google/cloud/securitycenter/v2/group_membership.proto"; import "google/cloud/securitycenter/v2/iam_binding.proto"; import "google/cloud/securitycenter/v2/indicator.proto"; +import "google/cloud/securitycenter/v2/ip_rules.proto"; +import "google/cloud/securitycenter/v2/job.proto"; import "google/cloud/securitycenter/v2/kernel_rootkit.proto"; import "google/cloud/securitycenter/v2/kubernetes.proto"; import "google/cloud/securitycenter/v2/load_balancer.proto"; import "google/cloud/securitycenter/v2/log_entry.proto"; import "google/cloud/securitycenter/v2/mitre_attack.proto"; +import "google/cloud/securitycenter/v2/network.proto"; import "google/cloud/securitycenter/v2/notebook.proto"; import "google/cloud/securitycenter/v2/org_policy.proto"; import "google/cloud/securitycenter/v2/process.proto"; import "google/cloud/securitycenter/v2/security_marks.proto"; import "google/cloud/securitycenter/v2/security_posture.proto"; import "google/cloud/securitycenter/v2/toxic_combination.proto"; +import "google/cloud/securitycenter/v2/vertex_ai.proto"; import "google/cloud/securitycenter/v2/vulnerability.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; @@ -239,9 +246,13 @@ message Finding { // Describes a potential security risk to data assets that contain sensitive // data. SENSITIVE_DATA_RISK = 8; + + // Describes a resource or resource group where high risk attack paths + // converge, based on attack path simulations (APS). + CHOKEPOINT = 9; } - // The [relative resource + // Identifier. The [relative resource // name](https://cloud.google.com/apis/design/resource_names#relative_resource_name) // of the finding. The following list shows some examples: // @@ -255,7 +266,7 @@ message Finding { // + `projects/{project_id}/sources/{source_id}/findings/{finding_id}` // + // `projects/{project_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}` - string name = 1; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Output only. The canonical name of the finding. The following list shows // some examples: @@ -464,9 +475,15 @@ message Finding { // Contains information about the org policies associated with the finding. repeated OrgPolicy org_policies = 43; + // Job associated with the finding. + Job job = 44; + // Represents an application associated with the finding. Application application = 45; + // IP rules associated with the finding. + IpRules ip_rules = 46; + // Fields related to Backup and DR findings. BackupDisasterRecovery backup_disaster_recovery = 47; @@ -506,6 +523,24 @@ message Finding { // Data flow events associated with the finding. repeated DataFlowEvent data_flow_events = 62; + // Represents the VPC networks that the resource is attached to. + repeated Network networks = 63; + // Data retention deletion events associated with the finding. repeated DataRetentionDeletionEvent data_retention_deletion_events = 64; + + // AffectedResources associated with the finding. + AffectedResources affected_resources = 65; + + // The AI model associated with the finding. + AiModel ai_model = 66; + + // Contains details about a chokepoint, which is a resource or resource group + // where high-risk attack paths converge, based on [attack path simulations] + // (https://cloud.google.com/security-command-center/docs/attack-exposure-learn#attack_path_simulations). + // This field cannot be updated. Its value is ignored in all update requests. + Chokepoint chokepoint = 69; + + // VertexAi associated with the finding. + VertexAi vertex_ai = 72; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/group_membership.proto b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/group_membership.proto index e99944ae466d..9a3e2bd4326b 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/group_membership.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/group_membership.proto @@ -34,6 +34,9 @@ message GroupMembership { // Group represents a toxic combination. GROUP_TYPE_TOXIC_COMBINATION = 1; + + // Group represents a chokepoint. + GROUP_TYPE_CHOKEPOINT = 3; } // Type of group. diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/indicator.proto b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/indicator.proto index 54f90f9de543..11f3adf3c07a 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/indicator.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/indicator.proto @@ -71,6 +71,7 @@ message Indicator { SIGNATURE_TYPE_FILE = 2; } + // The signature. oneof signature { // Signature indicating that a binary family was matched. MemoryHashSignature memory_hash_signature = 6; diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/ip_rules.proto b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/ip_rules.proto new file mode 100644 index 000000000000..8c70386f371b --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/ip_rules.proto @@ -0,0 +1,108 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.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.cloud.securitycenter.v2; + +import "google/api/field_behavior.proto"; + +option csharp_namespace = "Google.Cloud.SecurityCenter.V2"; +option go_package = "cloud.google.com/go/securitycenter/apiv2/securitycenterpb;securitycenterpb"; +option java_multiple_files = true; +option java_outer_classname = "IpRulesProto"; +option java_package = "com.google.cloud.securitycenter.v2"; +option php_namespace = "Google\\Cloud\\SecurityCenter\\V2"; +option ruby_package = "Google::Cloud::SecurityCenter::V2"; + +// IP rules associated with the finding. +message IpRules { + // The type of direction that the rule is applicable to, one of ingress or + // egress. Not applicable to OPEN_X_PORT findings. + enum Direction { + // Unspecified direction value. + DIRECTION_UNSPECIFIED = 0; + + // Ingress direction value. + INGRESS = 1; + + // Egress direction value. + EGRESS = 2; + } + + // The direction that the rule is applicable to, one of ingress or egress. + Direction direction = 1; + + // The list of allow rules specified by this firewall. Each rule specifies a + // protocol and port-range tuple that describes a permitted connection. + oneof rules { + // Tuple with allowed rules. + Allowed allowed = 2; + + // Tuple with denied rules. + Denied denied = 3; + } + + // If source IP ranges are specified, the firewall rule applies only to + // traffic that has a source IP address in these ranges. These ranges must be + // expressed in CIDR format. Only supports IPv4. + repeated string source_ip_ranges = 4; + + // If destination IP ranges are specified, the firewall rule applies only to + // traffic that has a destination IP address in these ranges. These ranges + // must be expressed in CIDR format. Only supports IPv4. + repeated string destination_ip_ranges = 5; + + // Name of the network protocol service, such as FTP, that is exposed by the + // open port. Follows the naming convention available at: + // https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml. + repeated string exposed_services = 6; +} + +// IP rule information. +message IpRule { + // A port range which is inclusive of the min and max values. + // Values are between 0 and 2^16-1. The max can be equal / must be not smaller + // than the min value. If min and max are equal this indicates that it is a + // single port. + message PortRange { + // Minimum port value. + int64 min = 1; + + // Maximum port value. + int64 max = 2; + } + + // The IP protocol this rule applies to. This value can either be one of the + // following well known protocol strings (TCP, UDP, ICMP, ESP, AH, IPIP, + // SCTP) or a string representation of the integer value. + string protocol = 1; + + // Optional. An optional list of ports to which this rule applies. This field + // is only applicable for the UDP or (S)TCP protocols. Each entry must be + // either an integer or a range including a min and max port number. + repeated PortRange port_ranges = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Allowed IP rule. +message Allowed { + // Optional. Optional list of allowed IP rules. + repeated IpRule ip_rules = 1 [(google.api.field_behavior) = OPTIONAL]; +} + +// Denied IP rule. +message Denied { + // Optional. Optional list of denied IP rules. + repeated IpRule ip_rules = 1 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/job.proto b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/job.proto new file mode 100644 index 000000000000..bb7938543d7a --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/job.proto @@ -0,0 +1,63 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.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.cloud.securitycenter.v2; + +import "google/api/field_behavior.proto"; + +option csharp_namespace = "Google.Cloud.SecurityCenter.V2"; +option go_package = "cloud.google.com/go/securitycenter/apiv2/securitycenterpb;securitycenterpb"; +option java_multiple_files = true; +option java_outer_classname = "JobProto"; +option java_package = "com.google.cloud.securitycenter.v2"; +option php_namespace = "Google\\Cloud\\SecurityCenter\\V2"; +option ruby_package = "Google::Cloud::SecurityCenter::V2"; + +// Describes a job +message Job { + // The fully-qualified name for a job. + // e.g. `projects//jobs/` + string name = 1; + + // Output only. State of the job, such as `RUNNING` or `PENDING`. + JobState state = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. If the job did not complete successfully, this field describes + // why. + int32 error_code = 3; + + // Optional. Gives the location where the job ran, such as `US` or + // `europe-west1` + string location = 4; +} + +// JobState represents the state of the job. +enum JobState { + // Unspecified represents an unknown state and should not be used. + JOB_STATE_UNSPECIFIED = 0; + + // Job is scheduled and pending for run + PENDING = 1; + + // Job in progress + RUNNING = 2; + + // Job has completed with success + SUCCEEDED = 3; + + // Job has completed but with failure + FAILED = 4; +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/log_entry.proto b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/log_entry.proto index 9463f67e728b..ac179a5bc479 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/log_entry.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/log_entry.proto @@ -28,6 +28,7 @@ option ruby_package = "Google::Cloud::SecurityCenter::V2"; // An individual entry in a log. message LogEntry { + // The log entry. oneof log_entry { // An individual entry in a log stored in Cloud Logging. CloudLoggingEntry cloud_logging_entry = 1; diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/mitre_attack.proto b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/mitre_attack.proto index 25063c5db7c5..5283d271b840 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/mitre_attack.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/mitre_attack.proto @@ -76,12 +76,51 @@ message MitreAttack { IMPACT = 14; } - // MITRE ATT&CK techniques that can be referenced by SCC findings. - // See: https://attack.mitre.org/techniques/enterprise/ + // MITRE ATT&CK techniques that can be referenced by Security Command Center + // findings. See: https://attack.mitre.org/techniques/enterprise/ enum Technique { // Unspecified value. TECHNIQUE_UNSPECIFIED = 0; + // T1001 + DATA_OBFUSCATION = 70; + + // T1001.002 + DATA_OBFUSCATION_STEGANOGRAPHY = 71; + + // T1003 + OS_CREDENTIAL_DUMPING = 114; + + // T1003.007 + OS_CREDENTIAL_DUMPING_PROC_FILESYSTEM = 115; + + // T1003.008 + OS_CREDENTIAL_DUMPING_ETC_PASSWORD_AND_ETC_SHADOW = 122; + + // T1005 + DATA_FROM_LOCAL_SYSTEM = 117; + + // T1020 + AUTOMATED_EXFILTRATION = 68; + + // T1027 + OBFUSCATED_FILES_OR_INFO = 72; + + // T1027.003 + STEGANOGRAPHY = 73; + + // T1027.004 + COMPILE_AFTER_DELIVERY = 74; + + // T1027.010 + COMMAND_OBFUSCATION = 75; + + // T1029 + SCHEDULED_TRANSFER = 120; + + // T1033 + SYSTEM_OWNER_USER_DISCOVERY = 118; + // T1036 MASQUERADING = 49; @@ -97,6 +136,24 @@ message MitreAttack { // T1046 NETWORK_SERVICE_DISCOVERY = 32; + // T1053 + SCHEDULED_TASK_JOB = 89; + + // T1053.003 + SCHEDULED_TASK_JOB_CRON = 119; + + // T1053.007 + CONTAINER_ORCHESTRATION_JOB = 90; + + // T1055 + PROCESS_INJECTION = 93; + + // T1056 + INPUT_CAPTURE = 103; + + // T1056.001 + INPUT_CAPTURE_KEYLOGGING = 104; + // T1057 PROCESS_DISCOVERY = 56; @@ -118,9 +175,24 @@ message MitreAttack { // T1069.003 CLOUD_GROUPS = 19; + // T1070 + INDICATOR_REMOVAL = 123; + + // T1070.002 + INDICATOR_REMOVAL_CLEAR_LINUX_OR_MAC_SYSTEM_LOGS = 124; + + // T1070.003 + INDICATOR_REMOVAL_CLEAR_COMMAND_HISTORY = 125; + // T1070.004 INDICATOR_REMOVAL_FILE_DELETION = 64; + // T1070.006 + INDICATOR_REMOVAL_TIMESTOMP = 128; + + // T1070.008 + INDICATOR_REMOVAL_CLEAR_MAILBOX_DATA = 126; + // T1071 APPLICATION_LAYER_PROTOCOL = 45; @@ -142,6 +214,12 @@ message MitreAttack { // T1078.004 CLOUD_ACCOUNTS = 16; + // T1083 + FILE_AND_DIRECTORY_DISCOVERY = 121; + + // T1087.001 + ACCOUNT_DISCOVERY_LOCAL_ACCOUNT = 116; + // T1090 PROXY = 9; @@ -157,12 +235,18 @@ message MitreAttack { // T1098.001 ADDITIONAL_CLOUD_CREDENTIALS = 40; + // T1098.003 + ADDITIONAL_CLOUD_ROLES = 67; + // T1098.004 SSH_AUTHORIZED_KEYS = 23; // T1098.006 ADDITIONAL_CONTAINER_CLUSTER_ROLES = 58; + // T1104 + MULTI_STAGE_CHANNELS = 76; + // T1105 INGRESS_TOOL_TRANSFER = 3; @@ -172,30 +256,69 @@ message MitreAttack { // T1110 BRUTE_FORCE = 44; + // T1119 + AUTOMATED_COLLECTION = 94; + // T1129 SHARED_MODULES = 5; + // T1132 + DATA_ENCODING = 77; + + // T1132.001 + STANDARD_ENCODING = 78; + // T1134 ACCESS_TOKEN_MANIPULATION = 33; // T1134.001 TOKEN_IMPERSONATION_OR_THEFT = 39; + // T1136 + CREATE_ACCOUNT = 79; + + // T1136.001 + LOCAL_ACCOUNT = 80; + + // T1140 + DEOBFUSCATE_DECODE_FILES_OR_INFO = 95; + // T1190 EXPLOIT_PUBLIC_FACING_APPLICATION = 27; + // T1195 + SUPPLY_CHAIN_COMPROMISE = 129; + + // T1195.001 + COMPROMISE_SOFTWARE_DEPENDENCIES_AND_DEVELOPMENT_TOOLS = 130; + + // T1203 + EXPLOITATION_FOR_CLIENT_EXECUTION = 134; + + // T1204 + USER_EXECUTION = 69; + + // T1222.002 + LINUX_AND_MAC_FILE_AND_DIRECTORY_PERMISSIONS_MODIFICATION = 135; + // T1484 DOMAIN_POLICY_MODIFICATION = 30; // T1485 DATA_DESTRUCTION = 29; + // T1486 + DATA_ENCRYPTED_FOR_IMPACT = 132; + // T1489 SERVICE_STOP = 52; // T1490 INHIBIT_SYSTEM_RECOVERY = 36; + // T1495 + FIRMWARE_CORRUPTION = 81; + // T1496 RESOURCE_HIJACKING = 8; @@ -211,6 +334,9 @@ message MitreAttack { // T1531 ACCOUNT_ACCESS_REMOVAL = 51; + // T1537 + TRANSFER_DATA_TO_CLOUD_ACCOUNT = 91; + // T1539 STEAL_WEB_SESSION_COOKIE = 25; @@ -220,21 +346,78 @@ message MitreAttack { // T1546 EVENT_TRIGGERED_EXECUTION = 65; + // T1547 + BOOT_OR_LOGON_AUTOSTART_EXECUTION = 82; + + // T1547.006 + KERNEL_MODULES_AND_EXTENSIONS = 83; + + // T1547.009 + SHORTCUT_MODIFICATION = 127; + // T1548 ABUSE_ELEVATION_CONTROL_MECHANISM = 34; + // T1548.001 + ABUSE_ELEVATION_CONTROL_MECHANISM_SETUID_AND_SETGID = 136; + + // T1548.003 + ABUSE_ELEVATION_CONTROL_MECHANISM_SUDO_AND_SUDO_CACHING = 109; + // T1552 UNSECURED_CREDENTIALS = 13; + // T1552.001 + CREDENTIALS_IN_FILES = 105; + + // T1552.003 + BASH_HISTORY = 96; + + // T1552.004 + PRIVATE_KEYS = 97; + + // T1553 + SUBVERT_TRUST_CONTROL = 106; + + // T1553.004 + INSTALL_ROOT_CERTIFICATE = 107; + + // T1554 + COMPROMISE_HOST_SOFTWARE_BINARY = 84; + + // T1555 + CREDENTIALS_FROM_PASSWORD_STORES = 98; + // T1556 MODIFY_AUTHENTICATION_PROCESS = 28; + // T1556.003 + PLUGGABLE_AUTHENTICATION_MODULES = 108; + + // T1556.006 + MULTI_FACTOR_AUTHENTICATION = 137; + // T1562 IMPAIR_DEFENSES = 31; // T1562.001 DISABLE_OR_MODIFY_TOOLS = 55; + // T1562.006 + INDICATOR_BLOCKING = 110; + + // T1562.012 + DISABLE_OR_MODIFY_LINUX_AUDIT_SYSTEM = 111; + + // T1564 + HIDE_ARTIFACTS = 85; + + // T1564.001 + HIDDEN_FILES_AND_DIRECTORIES = 86; + + // T1564.002 + HIDDEN_USERS = 87; + // T1567 EXFILTRATION_OVER_WEB_SERVICE = 20; @@ -247,6 +430,12 @@ message MitreAttack { // T1570 LATERAL_TOOL_TRANSFER = 41; + // T1574 + HIJACK_EXECUTION_FLOW = 112; + + // T1574.006 + HIJACK_EXECUTION_FLOW_DYNAMIC_LINKER_HIJACKING = 113; + // T1578 MODIFY_CLOUD_COMPUTE_INFRASTRUCTURE = 26; @@ -256,15 +445,33 @@ message MitreAttack { // T1580 CLOUD_INFRASTRUCTURE_DISCOVERY = 53; + // T1587 + DEVELOP_CAPABILITIES = 99; + + // T1587.001 + DEVELOP_CAPABILITIES_MALWARE = 100; + // T1588 OBTAIN_CAPABILITIES = 43; + // T1588.001 + OBTAIN_CAPABILITIES_MALWARE = 101; + + // T1588.006 + OBTAIN_CAPABILITIES_VULNERABILITIES = 133; + // T1595 ACTIVE_SCANNING = 1; // T1595.001 SCANNING_IP_BLOCKS = 2; + // T1608 + STAGE_CAPABILITIES = 88; + + // T1608.001 + UPLOAD_MALWARE = 102; + // T1609 CONTAINER_ADMINISTRATION_COMMAND = 60; @@ -277,8 +484,14 @@ message MitreAttack { // T1613 CONTAINER_AND_RESOURCE_DISCOVERY = 57; + // T1620 + REFLECTIVE_CODE_LOADING = 92; + // T1649 STEAL_OR_FORGE_AUTHENTICATION_CERTIFICATES = 62; + + // T1657 + FINANCIAL_THEFT = 131; } // The MITRE ATT&CK tactic most closely represented by this finding, if any. diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/network.proto b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/network.proto new file mode 100644 index 000000000000..bff3c6eb520a --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/network.proto @@ -0,0 +1,32 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.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.cloud.securitycenter.v2; + +option csharp_namespace = "Google.Cloud.SecurityCenter.V2"; +option go_package = "cloud.google.com/go/securitycenter/apiv2/securitycenterpb;securitycenterpb"; +option java_multiple_files = true; +option java_outer_classname = "NetworkProto"; +option java_package = "com.google.cloud.securitycenter.v2"; +option php_namespace = "Google\\Cloud\\SecurityCenter\\V2"; +option ruby_package = "Google::Cloud::SecurityCenter::V2"; + +// Contains information about a VPC network associated with the finding. +message Network { + // The name of the VPC network resource, for example, + // `//compute.googleapis.com/projects/my-project/global/networks/my-network`. + string name = 1; +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/notification_config.proto b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/notification_config.proto index bab2ac9220af..f83d79254b78 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/notification_config.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/notification_config.proto @@ -18,6 +18,7 @@ package google.cloud.securitycenter.v2; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.SecurityCenter.V2"; option go_package = "cloud.google.com/go/securitycenter/apiv2/securitycenterpb;securitycenterpb"; @@ -101,4 +102,9 @@ message NotificationConfig { // The config for triggering streaming-based notifications. StreamingConfig streaming_config = 5; } + + // Output only. The timestamp of when the notification config was last + // updated. + google.protobuf.Timestamp update_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/process.proto b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/process.proto index dad1893aebff..decd87b106f0 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/process.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/process.proto @@ -61,6 +61,10 @@ message Process { // The parent process ID. int64 parent_pid = 10; + + // The ID of the user that executed the process. E.g. If this is the root user + // this will always be 0. + int64 user_id = 11; } // A name-value pair representing an environment variable used in an operating diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/resource.proto b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/resource.proto index 58cb844d29c2..8dcbb8b4d631 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/resource.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/resource.proto @@ -17,6 +17,7 @@ syntax = "proto3"; package google.cloud.securitycenter.v2; import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; import "google/cloud/securitycenter/v2/folder.proto"; option csharp_namespace = "Google.Cloud.SecurityCenter.V2"; @@ -48,6 +49,7 @@ message Resource { // The region or location of the service (if applicable). string location = 6; + // The metadata associated with the cloud provider. oneof cloud_provider_metadata { // The GCP metadata associated with the finding. GcpMetadata gcp_metadata = 7; @@ -80,7 +82,7 @@ enum CloudProvider { // The cloud provider is unspecified. CLOUD_PROVIDER_UNSPECIFIED = 0; - // The cloud provider is Google Cloud Platform. + // The cloud provider is Google Cloud. GOOGLE_CLOUD_PLATFORM = 1; // The cloud provider is Amazon Web Services. @@ -90,8 +92,8 @@ enum CloudProvider { MICROSOFT_AZURE = 3; } -// GCP metadata associated with the resource, only applicable if the finding's -// cloud provider is Google Cloud Platform. +// Google Cloud metadata associated with the resource. Only applicable if the +// finding's cloud provider is Google Cloud. message GcpMetadata { // The full resource name of project that the resource belongs to. string project = 1; diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/securitycenter_service.proto b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/securitycenter_service.proto index 65744efe6c01..fd9206aedb15 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/securitycenter_service.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/securitycenter_service.proto @@ -39,6 +39,7 @@ import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.SecurityCenter.V2"; option go_package = "cloud.google.com/go/securitycenter/apiv2/securitycenterpb;securitycenterpb"; @@ -1187,6 +1188,30 @@ message DeleteResourceValueConfigRequest { ]; } +// The destination big query dataset to export findings to. +message BigQueryDestination { + // Required. The relative resource name of the destination dataset, in the + // form projects/{projectId}/datasets/{datasetId}. + string dataset = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// The LRO metadata for a ExportFindings request. +message ExportFindingsMetadata { + // Optional. Timestamp at which export was started + google.protobuf.Timestamp export_start_time = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // The destination to export findings to. + oneof destination { + // Required. The destination big query dataset to export findings to. + BigQueryDestination big_query_destination = 2 + [(google.api.field_behavior) = REQUIRED]; + } +} + +// The response to a ExportFindings request. Contains the LRO information. +message ExportFindingsResponse {} + // Request message for retrieving a BigQuery export. message GetBigQueryExportRequest { // Required. Name of the BigQuery export to retrieve. The following list shows @@ -1637,6 +1662,7 @@ message ListFindingsResponse { // The region or location of the service (if applicable). string location = 6; + // The metadata associated with the cloud provider. oneof cloud_provider_metadata { // The GCP metadata associated with the finding. GcpMetadata gcp_metadata = 7; diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/vertex_ai.proto b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/vertex_ai.proto new file mode 100644 index 000000000000..93628aaee43e --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/vertex_ai.proto @@ -0,0 +1,58 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.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.cloud.securitycenter.v2; + +option csharp_namespace = "Google.Cloud.SecurityCenter.V2"; +option go_package = "cloud.google.com/go/securitycenter/apiv2/securitycenterpb;securitycenterpb"; +option java_multiple_files = true; +option java_outer_classname = "VertexAiProto"; +option java_package = "com.google.cloud.securitycenter.v2"; +option php_namespace = "Google\\Cloud\\SecurityCenter\\V2"; +option ruby_package = "Google::Cloud::SecurityCenter::V2"; + +// Vertex AI-related information associated with the finding. +message VertexAi { + // Vertex AI dataset associated with the finding. + message Dataset { + // Resource name of the dataset, e.g. + // projects/{project}/locations/{location}/datasets/2094040236064505856 + string name = 1; + + // The user defined display name of dataset, e.g. plants-dataset + string display_name = 2; + + // Data source, such as a BigQuery source URI, e.g. + // bq://scc-nexus-test.AIPPtest.gsod + string source = 3; + } + + // Vertex AI training pipeline associated with the finding. + message Pipeline { + // Resource name of the pipeline, e.g. + // projects/{project}/locations/{location}/trainingPipelines/5253428229225578496 + string name = 1; + + // The user-defined display name of pipeline, e.g. plants-classification + string display_name = 2; + } + + // Datasets associated with the finding. + repeated Dataset datasets = 1; + + // Pipelines associated with the finding. + repeated Pipeline pipelines = 2; +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/vulnerability.proto b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/vulnerability.proto index cc7b59ef353d..ffb3d390c137 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/vulnerability.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/vulnerability.proto @@ -40,6 +40,18 @@ message Vulnerability { // The security bulletin is relevant to this finding. SecurityBulletin security_bulletin = 4; + + // Provider provided risk_score based on multiple factors. The higher the risk + // score, the more risky the vulnerability is. + int64 provider_risk_score = 5; + + // Represents whether the vulnerability is reachable (detected via static + // analysis) + bool reachable = 6; + + // Represents one or more Common Weakness Enumeration (CWE) information on + // this vulnerability. + repeated Cwe cwes = 7; } // CVE stands for Common Vulnerabilities and Exposures. @@ -320,3 +332,14 @@ message SecurityBulletin { // should be upgraded to, based on its current version. For example, 1.15.0 string suggested_upgrade_version = 3; } + +// CWE stands for Common Weakness Enumeration. Information about this weakness, +// as described by [CWE](https://cwe.mitre.org/). +message Cwe { + // The CWE identifier, e.g. CWE-94 + string id = 1; + + // Any reference to the details on the CWE, for example, + // https://cwe.mitre.org/data/definitions/94.html + repeated Reference references = 2; +} diff --git a/java-securitycentermanagement/CHANGELOG.md b/java-securitycentermanagement/CHANGELOG.md index b334f772f208..cf58ae8ede17 100644 --- a/java-securitycentermanagement/CHANGELOG.md +++ b/java-securitycentermanagement/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.36.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.35.0 (2025-06-25) ### Dependencies diff --git a/java-securitycentermanagement/README.md b/java-securitycentermanagement/README.md index 6f3065ad6f17..bfcaa001a67f 100644 --- a/java-securitycentermanagement/README.md +++ b/java-securitycentermanagement/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-securitycentermanagement - 0.34.0 + 0.35.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securitycentermanagement:0.34.0' +implementation 'com.google.cloud:google-cloud-securitycentermanagement:0.35.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securitycentermanagement" % "0.34.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securitycentermanagement" % "0.35.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.34.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycentermanagement/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-securitycentermanagement/google-cloud-securitycentermanagement-bom/pom.xml b/java-securitycentermanagement/google-cloud-securitycentermanagement-bom/pom.xml index acbef1712745..7d0b183e1b1a 100644 --- a/java-securitycentermanagement/google-cloud-securitycentermanagement-bom/pom.xml +++ b/java-securitycentermanagement/google-cloud-securitycentermanagement-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-securitycentermanagement-bom - 0.35.0 + 0.36.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-securitycentermanagement - 0.35.0 + 0.36.0 com.google.api.grpc grpc-google-cloud-securitycentermanagement-v1 - 0.35.0 + 0.36.0 com.google.api.grpc proto-google-cloud-securitycentermanagement-v1 - 0.35.0 + 0.36.0
      diff --git a/java-securitycentermanagement/google-cloud-securitycentermanagement/pom.xml b/java-securitycentermanagement/google-cloud-securitycentermanagement/pom.xml index c38ea405a801..93c520b8e19c 100644 --- a/java-securitycentermanagement/google-cloud-securitycentermanagement/pom.xml +++ b/java-securitycentermanagement/google-cloud-securitycentermanagement/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-securitycentermanagement - 0.35.0 + 0.36.0 jar Google Security Center Management API Security Center Management API Security Center Management API com.google.cloud google-cloud-securitycentermanagement-parent - 0.35.0 + 0.36.0 google-cloud-securitycentermanagement diff --git a/java-securitycentermanagement/grpc-google-cloud-securitycentermanagement-v1/pom.xml b/java-securitycentermanagement/grpc-google-cloud-securitycentermanagement-v1/pom.xml index b17d1fd7934c..84efd6844831 100644 --- a/java-securitycentermanagement/grpc-google-cloud-securitycentermanagement-v1/pom.xml +++ b/java-securitycentermanagement/grpc-google-cloud-securitycentermanagement-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-securitycentermanagement-v1 - 0.35.0 + 0.36.0 grpc-google-cloud-securitycentermanagement-v1 GRPC library for google-cloud-securitycentermanagement com.google.cloud google-cloud-securitycentermanagement-parent - 0.35.0 + 0.36.0 diff --git a/java-securitycentermanagement/pom.xml b/java-securitycentermanagement/pom.xml index ad5504bf5304..985a3a137b24 100644 --- a/java-securitycentermanagement/pom.xml +++ b/java-securitycentermanagement/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-securitycentermanagement-parent pom - 0.35.0 + 0.36.0 Google Security Center Management API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-securitycentermanagement - 0.35.0 + 0.36.0 com.google.api.grpc grpc-google-cloud-securitycentermanagement-v1 - 0.35.0 + 0.36.0 com.google.api.grpc proto-google-cloud-securitycentermanagement-v1 - 0.35.0 + 0.36.0 diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/pom.xml b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/pom.xml index 4c4362e711fb..6574c6f96fca 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/pom.xml +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-securitycentermanagement-v1 - 0.35.0 + 0.36.0 proto-google-cloud-securitycentermanagement-v1 Proto library for google-cloud-securitycentermanagement com.google.cloud google-cloud-securitycentermanagement-parent - 0.35.0 + 0.36.0 diff --git a/java-securityposture/CHANGELOG.md b/java-securityposture/CHANGELOG.md index 220bd1853c96..a75ff95739c5 100644 --- a/java-securityposture/CHANGELOG.md +++ b/java-securityposture/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.33.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.32.0 (2025-06-25) ### Dependencies diff --git a/java-securityposture/README.md b/java-securityposture/README.md index 36cf20af737b..f6280f553515 100644 --- a/java-securityposture/README.md +++ b/java-securityposture/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-securityposture - 0.31.0 + 0.32.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securityposture:0.31.0' +implementation 'com.google.cloud:google-cloud-securityposture:0.32.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securityposture" % "0.31.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securityposture" % "0.32.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.31.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securityposture/0.32.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/google-cloud-securityposture-bom/pom.xml b/java-securityposture/google-cloud-securityposture-bom/pom.xml index e41ffc363147..c51c396ef45f 100644 --- a/java-securityposture/google-cloud-securityposture-bom/pom.xml +++ b/java-securityposture/google-cloud-securityposture-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-securityposture-bom - 0.32.0 + 0.33.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-securityposture - 0.32.0 + 0.33.0 com.google.api.grpc grpc-google-cloud-securityposture-v1 - 0.32.0 + 0.33.0 com.google.api.grpc proto-google-cloud-securityposture-v1 - 0.32.0 + 0.33.0 diff --git a/java-securityposture/google-cloud-securityposture/pom.xml b/java-securityposture/google-cloud-securityposture/pom.xml index 916533fa5938..34f0d8924c6e 100644 --- a/java-securityposture/google-cloud-securityposture/pom.xml +++ b/java-securityposture/google-cloud-securityposture/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-securityposture - 0.32.0 + 0.33.0 jar Google Security Posture API Security Posture API 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. com.google.cloud google-cloud-securityposture-parent - 0.32.0 + 0.33.0 google-cloud-securityposture diff --git a/java-securityposture/grpc-google-cloud-securityposture-v1/pom.xml b/java-securityposture/grpc-google-cloud-securityposture-v1/pom.xml index 7c69ebe127f4..75eee81603f7 100644 --- a/java-securityposture/grpc-google-cloud-securityposture-v1/pom.xml +++ b/java-securityposture/grpc-google-cloud-securityposture-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-securityposture-v1 - 0.32.0 + 0.33.0 grpc-google-cloud-securityposture-v1 GRPC library for google-cloud-securityposture com.google.cloud google-cloud-securityposture-parent - 0.32.0 + 0.33.0 diff --git a/java-securityposture/pom.xml b/java-securityposture/pom.xml index 6b76925fa6e1..b5bedba69745 100644 --- a/java-securityposture/pom.xml +++ b/java-securityposture/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-securityposture-parent pom - 0.32.0 + 0.33.0 Google Security Posture API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-securityposture - 0.32.0 + 0.33.0 com.google.api.grpc grpc-google-cloud-securityposture-v1 - 0.32.0 + 0.33.0 com.google.api.grpc proto-google-cloud-securityposture-v1 - 0.32.0 + 0.33.0 diff --git a/java-securityposture/proto-google-cloud-securityposture-v1/pom.xml b/java-securityposture/proto-google-cloud-securityposture-v1/pom.xml index c561606ec302..1fdd2f934f9e 100644 --- a/java-securityposture/proto-google-cloud-securityposture-v1/pom.xml +++ b/java-securityposture/proto-google-cloud-securityposture-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-securityposture-v1 - 0.32.0 + 0.33.0 proto-google-cloud-securityposture-v1 Proto library for google-cloud-securityposture com.google.cloud google-cloud-securityposture-parent - 0.32.0 + 0.33.0 diff --git a/java-service-control/CHANGELOG.md b/java-service-control/CHANGELOG.md index 59f66c8d39fc..6bc09ea2cc38 100644 --- a/java-service-control/CHANGELOG.md +++ b/java-service-control/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 1.68.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 1.67.0 (2025-06-25) ### Dependencies diff --git a/java-service-control/README.md b/java-service-control/README.md index 50009c1f84b6..47c149d236a3 100644 --- a/java-service-control/README.md +++ b/java-service-control/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-service-control - 1.66.0 + 1.67.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-service-control:1.66.0' +implementation 'com.google.cloud:google-cloud-service-control:1.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-service-control" % "1.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-service-control" % "1.67.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-control/1.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-service-control/google-cloud-service-control-bom/pom.xml b/java-service-control/google-cloud-service-control-bom/pom.xml index 68a62f52be20..68d946c9b05e 100644 --- a/java-service-control/google-cloud-service-control-bom/pom.xml +++ b/java-service-control/google-cloud-service-control-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-service-control-bom - 1.67.0 + 1.68.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-service-control - 1.67.0 + 1.68.0 com.google.api.grpc grpc-google-cloud-service-control-v1 - 1.67.0 + 1.68.0 com.google.api.grpc grpc-google-cloud-service-control-v2 - 1.67.0 + 1.68.0 com.google.api.grpc proto-google-cloud-service-control-v1 - 1.67.0 + 1.68.0 com.google.api.grpc proto-google-cloud-service-control-v2 - 1.67.0 + 1.68.0 diff --git a/java-service-control/google-cloud-service-control/pom.xml b/java-service-control/google-cloud-service-control/pom.xml index 83c012906baa..9d00f0a8357a 100644 --- a/java-service-control/google-cloud-service-control/pom.xml +++ b/java-service-control/google-cloud-service-control/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-service-control - 1.67.0 + 1.68.0 jar Google Service Control API Service Control API 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. com.google.cloud google-cloud-service-control-parent - 1.67.0 + 1.68.0 google-cloud-service-control diff --git a/java-service-control/grpc-google-cloud-service-control-v1/pom.xml b/java-service-control/grpc-google-cloud-service-control-v1/pom.xml index 6c6d97d2a500..9437a78ff2a0 100644 --- a/java-service-control/grpc-google-cloud-service-control-v1/pom.xml +++ b/java-service-control/grpc-google-cloud-service-control-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-service-control-v1 - 1.67.0 + 1.68.0 grpc-google-cloud-service-control-v1 GRPC library for google-cloud-service-control com.google.cloud google-cloud-service-control-parent - 1.67.0 + 1.68.0 diff --git a/java-service-control/grpc-google-cloud-service-control-v2/pom.xml b/java-service-control/grpc-google-cloud-service-control-v2/pom.xml index 0df63f3c678f..7b33d62211a3 100644 --- a/java-service-control/grpc-google-cloud-service-control-v2/pom.xml +++ b/java-service-control/grpc-google-cloud-service-control-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-service-control-v2 - 1.67.0 + 1.68.0 grpc-google-cloud-service-control-v2 GRPC library for google-cloud-service-control com.google.cloud google-cloud-service-control-parent - 1.67.0 + 1.68.0 diff --git a/java-service-control/pom.xml b/java-service-control/pom.xml index d8ade00e7815..ad080f95ca34 100644 --- a/java-service-control/pom.xml +++ b/java-service-control/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-service-control-parent pom - 1.67.0 + 1.68.0 Google Service Control API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-service-control - 1.67.0 + 1.68.0 com.google.api.grpc proto-google-cloud-service-control-v2 - 1.67.0 + 1.68.0 com.google.api.grpc grpc-google-cloud-service-control-v2 - 1.67.0 + 1.68.0 com.google.api.grpc grpc-google-cloud-service-control-v1 - 1.67.0 + 1.68.0 com.google.api.grpc proto-google-cloud-service-control-v1 - 1.67.0 + 1.68.0 diff --git a/java-service-control/proto-google-cloud-service-control-v1/pom.xml b/java-service-control/proto-google-cloud-service-control-v1/pom.xml index d6f3bf74e770..8c18ad249f00 100644 --- a/java-service-control/proto-google-cloud-service-control-v1/pom.xml +++ b/java-service-control/proto-google-cloud-service-control-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-service-control-v1 - 1.67.0 + 1.68.0 proto-google-cloud-service-control-v1 Proto library for google-cloud-service-control com.google.cloud google-cloud-service-control-parent - 1.67.0 + 1.68.0 diff --git a/java-service-control/proto-google-cloud-service-control-v2/pom.xml b/java-service-control/proto-google-cloud-service-control-v2/pom.xml index f9d05a2abc6e..0051a2d1ea50 100644 --- a/java-service-control/proto-google-cloud-service-control-v2/pom.xml +++ b/java-service-control/proto-google-cloud-service-control-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-service-control-v2 - 1.67.0 + 1.68.0 proto-google-cloud-service-control-v2 Proto library for google-cloud-service-control com.google.cloud google-cloud-service-control-parent - 1.67.0 + 1.68.0 diff --git a/java-service-management/CHANGELOG.md b/java-service-management/CHANGELOG.md index 31a50f4851ac..0c7a50b6bd41 100644 --- a/java-service-management/CHANGELOG.md +++ b/java-service-management/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 3.66.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 3.65.0 (2025-06-25) ### Dependencies diff --git a/java-service-management/README.md b/java-service-management/README.md index 6835f19559c8..9fdc0355012e 100644 --- a/java-service-management/README.md +++ b/java-service-management/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-service-management - 3.64.0 + 3.65.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-service-management:3.64.0' +implementation 'com.google.cloud:google-cloud-service-management:3.65.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-service-management" % "3.64.0" +libraryDependencies += "com.google.cloud" % "google-cloud-service-management" % "3.65.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.64.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-management/3.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-service-management/google-cloud-service-management-bom/pom.xml b/java-service-management/google-cloud-service-management-bom/pom.xml index b1fba9c6cd5b..0078bef7e351 100644 --- a/java-service-management/google-cloud-service-management-bom/pom.xml +++ b/java-service-management/google-cloud-service-management-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-service-management-bom - 3.65.0 + 3.66.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-service-management - 3.65.0 + 3.66.0 com.google.api.grpc grpc-google-cloud-service-management-v1 - 3.65.0 + 3.66.0 com.google.api.grpc proto-google-cloud-service-management-v1 - 3.65.0 + 3.66.0 diff --git a/java-service-management/google-cloud-service-management/pom.xml b/java-service-management/google-cloud-service-management/pom.xml index 4c051c102715..c754b56fb016 100644 --- a/java-service-management/google-cloud-service-management/pom.xml +++ b/java-service-management/google-cloud-service-management/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-service-management - 3.65.0 + 3.66.0 jar Google Service Management API 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. com.google.cloud google-cloud-service-management-parent - 3.65.0 + 3.66.0 google-cloud-service-management diff --git a/java-service-management/grpc-google-cloud-service-management-v1/pom.xml b/java-service-management/grpc-google-cloud-service-management-v1/pom.xml index 85717c505391..0a16730005dd 100644 --- a/java-service-management/grpc-google-cloud-service-management-v1/pom.xml +++ b/java-service-management/grpc-google-cloud-service-management-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-service-management-v1 - 3.65.0 + 3.66.0 grpc-google-cloud-service-management-v1 GRPC library for google-cloud-service-management com.google.cloud google-cloud-service-management-parent - 3.65.0 + 3.66.0 diff --git a/java-service-management/pom.xml b/java-service-management/pom.xml index c2ec112188bc..4f63673a4988 100644 --- a/java-service-management/pom.xml +++ b/java-service-management/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-service-management-parent pom - 3.65.0 + 3.66.0 Google Service Management API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-service-management - 3.65.0 + 3.66.0 com.google.api.grpc proto-google-cloud-service-management-v1 - 3.65.0 + 3.66.0 com.google.api.grpc grpc-google-cloud-service-management-v1 - 3.65.0 + 3.66.0 diff --git a/java-service-management/proto-google-cloud-service-management-v1/pom.xml b/java-service-management/proto-google-cloud-service-management-v1/pom.xml index 1c41d8ea378b..8e9c730b930b 100644 --- a/java-service-management/proto-google-cloud-service-management-v1/pom.xml +++ b/java-service-management/proto-google-cloud-service-management-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-service-management-v1 - 3.65.0 + 3.66.0 proto-google-cloud-service-management-v1 Proto library for google-cloud-service-management com.google.cloud google-cloud-service-management-parent - 3.65.0 + 3.66.0 diff --git a/java-service-usage/CHANGELOG.md b/java-service-usage/CHANGELOG.md index 7a120a4973ae..70bd516c7bed 100644 --- a/java-service-usage/CHANGELOG.md +++ b/java-service-usage/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.68.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.67.0 (2025-06-25) ### Dependencies diff --git a/java-service-usage/README.md b/java-service-usage/README.md index 68de4cd2c9ea..70d97fefbd3d 100644 --- a/java-service-usage/README.md +++ b/java-service-usage/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-service-usage - 2.66.0 + 2.67.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-service-usage:2.66.0' +implementation 'com.google.cloud:google-cloud-service-usage:2.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-service-usage" % "2.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-service-usage" % "2.67.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-usage/2.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-service-usage/google-cloud-service-usage-bom/pom.xml b/java-service-usage/google-cloud-service-usage-bom/pom.xml index f02aaa09d3a8..0a6c6c57e15b 100644 --- a/java-service-usage/google-cloud-service-usage-bom/pom.xml +++ b/java-service-usage/google-cloud-service-usage-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-service-usage-bom - 2.67.0 + 2.68.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-service-usage - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-service-usage-v1beta1 - 0.71.0 + 0.72.0 com.google.api.grpc grpc-google-cloud-service-usage-v1 - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-cloud-service-usage-v1 - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-cloud-service-usage-v1beta1 - 0.71.0 + 0.72.0 diff --git a/java-service-usage/google-cloud-service-usage/pom.xml b/java-service-usage/google-cloud-service-usage/pom.xml index 848fe0cb48e0..2ac59e4392c8 100644 --- a/java-service-usage/google-cloud-service-usage/pom.xml +++ b/java-service-usage/google-cloud-service-usage/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-service-usage - 2.67.0 + 2.68.0 jar Google Service Usage Service Usage is an infrastructure service of Google Cloud that lets you list and manage other APIs and services in your Cloud projects. com.google.cloud google-cloud-service-usage-parent - 2.67.0 + 2.68.0 google-cloud-service-usage diff --git a/java-service-usage/grpc-google-cloud-service-usage-v1/pom.xml b/java-service-usage/grpc-google-cloud-service-usage-v1/pom.xml index b0c1e5f1ef72..4884a0bdbca9 100644 --- a/java-service-usage/grpc-google-cloud-service-usage-v1/pom.xml +++ b/java-service-usage/grpc-google-cloud-service-usage-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-service-usage-v1 - 2.67.0 + 2.68.0 grpc-google-cloud-service-usage-v1 GRPC library for google-cloud-service-usage com.google.cloud google-cloud-service-usage-parent - 2.67.0 + 2.68.0 diff --git a/java-service-usage/grpc-google-cloud-service-usage-v1beta1/pom.xml b/java-service-usage/grpc-google-cloud-service-usage-v1beta1/pom.xml index c067e47bdd5c..db660b1b9902 100644 --- a/java-service-usage/grpc-google-cloud-service-usage-v1beta1/pom.xml +++ b/java-service-usage/grpc-google-cloud-service-usage-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-service-usage-v1beta1 - 0.71.0 + 0.72.0 grpc-google-cloud-service-usage-v1beta1 GRPC library for google-cloud-service-usage com.google.cloud google-cloud-service-usage-parent - 2.67.0 + 2.68.0 diff --git a/java-service-usage/pom.xml b/java-service-usage/pom.xml index 32021f54730b..dbc207ec355e 100644 --- a/java-service-usage/pom.xml +++ b/java-service-usage/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-service-usage-parent pom - 2.67.0 + 2.68.0 Google Service Usage Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-service-usage - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-service-usage-v1beta1 - 0.71.0 + 0.72.0 com.google.api.grpc grpc-google-cloud-service-usage-v1 - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-cloud-service-usage-v1 - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-cloud-service-usage-v1beta1 - 0.71.0 + 0.72.0 diff --git a/java-service-usage/proto-google-cloud-service-usage-v1/pom.xml b/java-service-usage/proto-google-cloud-service-usage-v1/pom.xml index 648c730748c6..78b3e986249e 100644 --- a/java-service-usage/proto-google-cloud-service-usage-v1/pom.xml +++ b/java-service-usage/proto-google-cloud-service-usage-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-service-usage-v1 - 2.67.0 + 2.68.0 proto-google-cloud-service-usage-v1 Proto library for google-cloud-service-usage com.google.cloud google-cloud-service-usage-parent - 2.67.0 + 2.68.0 diff --git a/java-service-usage/proto-google-cloud-service-usage-v1beta1/pom.xml b/java-service-usage/proto-google-cloud-service-usage-v1beta1/pom.xml index 3f27c3b750b8..b3c0db5356cb 100644 --- a/java-service-usage/proto-google-cloud-service-usage-v1beta1/pom.xml +++ b/java-service-usage/proto-google-cloud-service-usage-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-service-usage-v1beta1 - 0.71.0 + 0.72.0 proto-google-cloud-service-usage-v1beta1 Proto library for google-cloud-service-usage com.google.cloud google-cloud-service-usage-parent - 2.67.0 + 2.68.0 diff --git a/java-servicedirectory/CHANGELOG.md b/java-servicedirectory/CHANGELOG.md index 326d37d19bf9..cbc541aa1391 100644 --- a/java-servicedirectory/CHANGELOG.md +++ b/java-servicedirectory/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.69.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.68.0 (2025-06-25) ### Dependencies diff --git a/java-servicedirectory/README.md b/java-servicedirectory/README.md index 6459cf9f611c..f73acb809971 100644 --- a/java-servicedirectory/README.md +++ b/java-servicedirectory/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-servicedirectory - 2.67.0 + 2.68.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-servicedirectory:2.67.0' +implementation 'com.google.cloud:google-cloud-servicedirectory:2.68.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-servicedirectory" % "2.67.0" +libraryDependencies += "com.google.cloud" % "google-cloud-servicedirectory" % "2.68.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.67.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicedirectory/2.68.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/google-cloud-servicedirectory-bom/pom.xml b/java-servicedirectory/google-cloud-servicedirectory-bom/pom.xml index e65e5d5dc8a9..44b0556e3476 100644 --- a/java-servicedirectory/google-cloud-servicedirectory-bom/pom.xml +++ b/java-servicedirectory/google-cloud-servicedirectory-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-servicedirectory-bom - 2.68.0 + 2.69.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-servicedirectory - 2.68.0 + 2.69.0 com.google.api.grpc grpc-google-cloud-servicedirectory-v1beta1 - 0.76.0 + 0.77.0 com.google.api.grpc grpc-google-cloud-servicedirectory-v1 - 2.68.0 + 2.69.0 com.google.api.grpc proto-google-cloud-servicedirectory-v1beta1 - 0.76.0 + 0.77.0 com.google.api.grpc proto-google-cloud-servicedirectory-v1 - 2.68.0 + 2.69.0 diff --git a/java-servicedirectory/google-cloud-servicedirectory/pom.xml b/java-servicedirectory/google-cloud-servicedirectory/pom.xml index ce06418136be..e889bc587022 100644 --- a/java-servicedirectory/google-cloud-servicedirectory/pom.xml +++ b/java-servicedirectory/google-cloud-servicedirectory/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-servicedirectory - 2.68.0 + 2.69.0 jar Google Cloud Service Directory Java idiomatic client for Google Cloud Service Directory com.google.cloud google-cloud-servicedirectory-parent - 2.68.0 + 2.69.0 google-cloud-servicedirectory diff --git a/java-servicedirectory/grpc-google-cloud-servicedirectory-v1/pom.xml b/java-servicedirectory/grpc-google-cloud-servicedirectory-v1/pom.xml index 7f8073f482da..8473617e80ff 100644 --- a/java-servicedirectory/grpc-google-cloud-servicedirectory-v1/pom.xml +++ b/java-servicedirectory/grpc-google-cloud-servicedirectory-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-servicedirectory-v1 - 2.68.0 + 2.69.0 grpc-google-cloud-servicedirectory-v1 GRPC library for grpc-google-cloud-servicedirectory-v1 com.google.cloud google-cloud-servicedirectory-parent - 2.68.0 + 2.69.0 diff --git a/java-servicedirectory/grpc-google-cloud-servicedirectory-v1beta1/pom.xml b/java-servicedirectory/grpc-google-cloud-servicedirectory-v1beta1/pom.xml index b4c4b5d5ff55..fbb51ff3c1d6 100644 --- a/java-servicedirectory/grpc-google-cloud-servicedirectory-v1beta1/pom.xml +++ b/java-servicedirectory/grpc-google-cloud-servicedirectory-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-servicedirectory-v1beta1 - 0.76.0 + 0.77.0 grpc-google-cloud-servicedirectory-v1beta1 GRPC library for grpc-google-cloud-servicedirectory-v1beta1 com.google.cloud google-cloud-servicedirectory-parent - 2.68.0 + 2.69.0 diff --git a/java-servicedirectory/pom.xml b/java-servicedirectory/pom.xml index 47e99fe8832b..b17481352b03 100644 --- a/java-servicedirectory/pom.xml +++ b/java-servicedirectory/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-servicedirectory-parent pom - 2.68.0 + 2.69.0 Google Cloud Service Directory Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-servicedirectory-v1beta1 - 0.76.0 + 0.77.0 com.google.api.grpc proto-google-cloud-servicedirectory-v1 - 2.68.0 + 2.69.0 com.google.api.grpc grpc-google-cloud-servicedirectory-v1beta1 - 0.76.0 + 0.77.0 com.google.api.grpc grpc-google-cloud-servicedirectory-v1 - 2.68.0 + 2.69.0 com.google.cloud google-cloud-servicedirectory - 2.68.0 + 2.69.0 diff --git a/java-servicedirectory/proto-google-cloud-servicedirectory-v1/pom.xml b/java-servicedirectory/proto-google-cloud-servicedirectory-v1/pom.xml index 1a1de3f83d8e..04fc632e179c 100644 --- a/java-servicedirectory/proto-google-cloud-servicedirectory-v1/pom.xml +++ b/java-servicedirectory/proto-google-cloud-servicedirectory-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-servicedirectory-v1 - 2.68.0 + 2.69.0 proto-google-cloud-servicedirectory-v1 PROTO library for proto-google-cloud-servicedirectory-v1 com.google.cloud google-cloud-servicedirectory-parent - 2.68.0 + 2.69.0 diff --git a/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/pom.xml b/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/pom.xml index 0d7aee478fff..9041509fc903 100644 --- a/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/pom.xml +++ b/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-servicedirectory-v1beta1 - 0.76.0 + 0.77.0 proto-google-cloud-servicedirectory-v1beta1 PROTO library for proto-google-cloud-servicedirectory-v1beta1 com.google.cloud google-cloud-servicedirectory-parent - 2.68.0 + 2.69.0 diff --git a/java-servicehealth/CHANGELOG.md b/java-servicehealth/CHANGELOG.md index 764f65c69190..4e199c1652aa 100644 --- a/java-servicehealth/CHANGELOG.md +++ b/java-servicehealth/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.35.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.34.0 (2025-06-25) ### Dependencies diff --git a/java-servicehealth/README.md b/java-servicehealth/README.md index 9fbbd312e160..8eb1093f044c 100644 --- a/java-servicehealth/README.md +++ b/java-servicehealth/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-servicehealth - 0.33.0 + 0.34.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-servicehealth:0.33.0' +implementation 'com.google.cloud:google-cloud-servicehealth:0.34.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-servicehealth" % "0.33.0" +libraryDependencies += "com.google.cloud" % "google-cloud-servicehealth" % "0.34.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-servicehealth.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicehealth/0.33.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicehealth/0.34.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/google-cloud-servicehealth-bom/pom.xml b/java-servicehealth/google-cloud-servicehealth-bom/pom.xml index 3c188e28f358..ca869be97d2e 100644 --- a/java-servicehealth/google-cloud-servicehealth-bom/pom.xml +++ b/java-servicehealth/google-cloud-servicehealth-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-servicehealth-bom - 0.34.0 + 0.35.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-servicehealth - 0.34.0 + 0.35.0 com.google.api.grpc grpc-google-cloud-servicehealth-v1 - 0.34.0 + 0.35.0 com.google.api.grpc proto-google-cloud-servicehealth-v1 - 0.34.0 + 0.35.0 diff --git a/java-servicehealth/google-cloud-servicehealth/pom.xml b/java-servicehealth/google-cloud-servicehealth/pom.xml index edddff40bd47..378b2e890103 100644 --- a/java-servicehealth/google-cloud-servicehealth/pom.xml +++ b/java-servicehealth/google-cloud-servicehealth/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-servicehealth - 0.34.0 + 0.35.0 jar Google Service Health API Service Health API Personalized Service Health helps you gain visibility into disruptive events impacting Google Cloud products. com.google.cloud google-cloud-servicehealth-parent - 0.34.0 + 0.35.0 google-cloud-servicehealth diff --git a/java-servicehealth/grpc-google-cloud-servicehealth-v1/pom.xml b/java-servicehealth/grpc-google-cloud-servicehealth-v1/pom.xml index f1c85b5970bc..44d600479ebf 100644 --- a/java-servicehealth/grpc-google-cloud-servicehealth-v1/pom.xml +++ b/java-servicehealth/grpc-google-cloud-servicehealth-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-servicehealth-v1 - 0.34.0 + 0.35.0 grpc-google-cloud-servicehealth-v1 GRPC library for google-cloud-servicehealth com.google.cloud google-cloud-servicehealth-parent - 0.34.0 + 0.35.0 diff --git a/java-servicehealth/pom.xml b/java-servicehealth/pom.xml index d051f5497eed..6a4629f1698e 100644 --- a/java-servicehealth/pom.xml +++ b/java-servicehealth/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-servicehealth-parent pom - 0.34.0 + 0.35.0 Google Service Health API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-servicehealth - 0.34.0 + 0.35.0 com.google.api.grpc grpc-google-cloud-servicehealth-v1 - 0.34.0 + 0.35.0 com.google.api.grpc proto-google-cloud-servicehealth-v1 - 0.34.0 + 0.35.0 diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/pom.xml b/java-servicehealth/proto-google-cloud-servicehealth-v1/pom.xml index 384166c7117d..15901a31b4c6 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/pom.xml +++ b/java-servicehealth/proto-google-cloud-servicehealth-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-servicehealth-v1 - 0.34.0 + 0.35.0 proto-google-cloud-servicehealth-v1 Proto library for google-cloud-servicehealth com.google.cloud google-cloud-servicehealth-parent - 0.34.0 + 0.35.0 diff --git a/java-shell/CHANGELOG.md b/java-shell/CHANGELOG.md index d94dfd8680a5..884005c376bd 100644 --- a/java-shell/CHANGELOG.md +++ b/java-shell/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.67.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.66.0 (2025-06-25) ### Dependencies diff --git a/java-shell/README.md b/java-shell/README.md index ceb3ca16aa11..70f4c55546b8 100644 --- a/java-shell/README.md +++ b/java-shell/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-shell - 2.65.0 + 2.66.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-shell:2.65.0' +implementation 'com.google.cloud:google-cloud-shell:2.66.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-shell" % "2.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-shell" % "2.66.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.65.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-shell/2.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-shell/google-cloud-shell-bom/pom.xml b/java-shell/google-cloud-shell-bom/pom.xml index 1b2dcecccc95..1d12b612a7d5 100644 --- a/java-shell/google-cloud-shell-bom/pom.xml +++ b/java-shell/google-cloud-shell-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-shell-bom - 2.66.0 + 2.67.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-shell - 2.66.0 + 2.67.0 com.google.api.grpc grpc-google-cloud-shell-v1 - 2.66.0 + 2.67.0 com.google.api.grpc proto-google-cloud-shell-v1 - 2.66.0 + 2.67.0 diff --git a/java-shell/google-cloud-shell/pom.xml b/java-shell/google-cloud-shell/pom.xml index 9bb62089b753..71cadac7e4ba 100644 --- a/java-shell/google-cloud-shell/pom.xml +++ b/java-shell/google-cloud-shell/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-shell - 2.66.0 + 2.67.0 jar Google Cloud Shell Cloud Shell 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. com.google.cloud google-cloud-shell-parent - 2.66.0 + 2.67.0 google-cloud-shell diff --git a/java-shell/grpc-google-cloud-shell-v1/pom.xml b/java-shell/grpc-google-cloud-shell-v1/pom.xml index 1c179c7d27c6..4e359fd587f5 100644 --- a/java-shell/grpc-google-cloud-shell-v1/pom.xml +++ b/java-shell/grpc-google-cloud-shell-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-shell-v1 - 2.66.0 + 2.67.0 grpc-google-cloud-shell-v1 GRPC library for google-cloud-shell com.google.cloud google-cloud-shell-parent - 2.66.0 + 2.67.0 diff --git a/java-shell/pom.xml b/java-shell/pom.xml index def44dbeb6ea..4280b7a3886b 100644 --- a/java-shell/pom.xml +++ b/java-shell/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-shell-parent pom - 2.66.0 + 2.67.0 Google Cloud Shell Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-shell - 2.66.0 + 2.67.0 com.google.api.grpc grpc-google-cloud-shell-v1 - 2.66.0 + 2.67.0 com.google.api.grpc proto-google-cloud-shell-v1 - 2.66.0 + 2.67.0 diff --git a/java-shell/proto-google-cloud-shell-v1/pom.xml b/java-shell/proto-google-cloud-shell-v1/pom.xml index 27cba7072eb1..4c3e4ae45069 100644 --- a/java-shell/proto-google-cloud-shell-v1/pom.xml +++ b/java-shell/proto-google-cloud-shell-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-shell-v1 - 2.66.0 + 2.67.0 proto-google-cloud-shell-v1 Proto library for google-cloud-shell com.google.cloud google-cloud-shell-parent - 2.66.0 + 2.67.0 diff --git a/java-shopping-css/CHANGELOG.md b/java-shopping-css/CHANGELOG.md index 433f3dc9d09d..24f7f854f896 100644 --- a/java-shopping-css/CHANGELOG.md +++ b/java-shopping-css/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.36.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.35.0 (2025-06-25) ### Dependencies diff --git a/java-shopping-css/README.md b/java-shopping-css/README.md index 0fb70a953d6f..537aaa744089 100644 --- a/java-shopping-css/README.md +++ b/java-shopping-css/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-css - 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-css:0.34.0' +implementation 'com.google.shopping:google-shopping-css:0.35.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-css" % "0.34.0" +libraryDependencies += "com.google.shopping" % "google-shopping-css" % "0.35.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-css.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-css/0.34.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-css/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-css/google-shopping-css-bom/pom.xml b/java-shopping-css/google-shopping-css-bom/pom.xml index feb0cca3d803..9958373e5527 100644 --- a/java-shopping-css/google-shopping-css-bom/pom.xml +++ b/java-shopping-css/google-shopping-css-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.shopping google-shopping-css-bom - 0.35.0 + 0.36.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.shopping google-shopping-css - 0.35.0 + 0.36.0 com.google.shopping.api.grpc grpc-google-shopping-css-v1 - 0.35.0 + 0.36.0 com.google.shopping.api.grpc proto-google-shopping-css-v1 - 0.35.0 + 0.36.0 diff --git a/java-shopping-css/google-shopping-css/pom.xml b/java-shopping-css/google-shopping-css/pom.xml index 5db785ae025b..ecea3ea8ee4b 100644 --- a/java-shopping-css/google-shopping-css/pom.xml +++ b/java-shopping-css/google-shopping-css/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-css - 0.35.0 + 0.36.0 jar Google CSS API CSS API The CSS API is used to manage your CSS and control your CSS Products portfolio com.google.shopping google-shopping-css-parent - 0.35.0 + 0.36.0 google-shopping-css diff --git a/java-shopping-css/grpc-google-shopping-css-v1/pom.xml b/java-shopping-css/grpc-google-shopping-css-v1/pom.xml index eecf5d8c9b07..625fb57a4a9f 100644 --- a/java-shopping-css/grpc-google-shopping-css-v1/pom.xml +++ b/java-shopping-css/grpc-google-shopping-css-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-css-v1 - 0.35.0 + 0.36.0 grpc-google-shopping-css-v1 GRPC library for google-shopping-css com.google.shopping google-shopping-css-parent - 0.35.0 + 0.36.0 diff --git a/java-shopping-css/pom.xml b/java-shopping-css/pom.xml index 74f79037c6f5..4ac32c184753 100644 --- a/java-shopping-css/pom.xml +++ b/java-shopping-css/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-css-parent pom - 0.35.0 + 0.36.0 Google CSS API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.shopping google-shopping-css - 0.35.0 + 0.36.0 com.google.shopping.api.grpc grpc-google-shopping-css-v1 - 0.35.0 + 0.36.0 com.google.shopping.api.grpc proto-google-shopping-css-v1 - 0.35.0 + 0.36.0 diff --git a/java-shopping-css/proto-google-shopping-css-v1/pom.xml b/java-shopping-css/proto-google-shopping-css-v1/pom.xml index 8624ad96464e..3a7b49a54179 100644 --- a/java-shopping-css/proto-google-shopping-css-v1/pom.xml +++ b/java-shopping-css/proto-google-shopping-css-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-css-v1 - 0.35.0 + 0.36.0 proto-google-shopping-css-v1 Proto library for google-shopping-css com.google.shopping google-shopping-css-parent - 0.35.0 + 0.36.0 diff --git a/java-shopping-merchant-accounts/CHANGELOG.md b/java-shopping-merchant-accounts/CHANGELOG.md index c86abd56eced..9853bd5e96d6 100644 --- a/java-shopping-merchant-accounts/CHANGELOG.md +++ b/java-shopping-merchant-accounts/CHANGELOG.md @@ -1,5 +1,16 @@ # Changelog +## 0.24.0 (2025-07-11) + +### Features + +* new module for merchant-reports-v1alpha ([#11672](https://github.com/googleapis/google-cloud-java/issues/11672)) ([e611ec2](https://github.com/googleapis/google-cloud-java/commit/e611ec22adb990a3ca6b2785b183618231309b92)) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.23.0 (2025-06-25) ### Dependencies diff --git a/java-shopping-merchant-accounts/README.md b/java-shopping-merchant-accounts/README.md index 5aca63558b78..08c00c4e3f47 100644 --- a/java-shopping-merchant-accounts/README.md +++ b/java-shopping-merchant-accounts/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-accounts - 0.22.0 + 0.23.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-accounts:0.22.0' +implementation 'com.google.shopping:google-shopping-merchant-accounts:0.23.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-accounts" % "0.22.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-accounts" % "0.23.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-accounts.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-accounts/0.22.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-accounts/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-shopping-merchant-accounts/google-shopping-merchant-accounts-bom/pom.xml b/java-shopping-merchant-accounts/google-shopping-merchant-accounts-bom/pom.xml index d94f8c9f6347..282a3f6f9db3 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts-bom/pom.xml +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-accounts-bom - 0.23.0 + 0.24.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.shopping google-shopping-merchant-accounts - 0.23.0 + 0.24.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-accounts-v1beta - 0.23.0 + 0.24.0 com.google.shopping.api.grpc proto-google-shopping-merchant-accounts-v1beta - 0.23.0 + 0.24.0 diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/pom.xml b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/pom.xml index 81f5ecdef789..84c29b9561b3 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/pom.xml +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-accounts - 0.23.0 + 0.24.0 jar Google Merchant API Merchant API Programmatically manage your Merchant Center accounts. com.google.shopping google-shopping-merchant-accounts-parent - 0.23.0 + 0.24.0 google-shopping-merchant-accounts diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/CheckoutSettingsServiceClient.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/CheckoutSettingsServiceClient.java new file mode 100644 index 000000000000..8b2f20138411 --- /dev/null +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/CheckoutSettingsServiceClient.java @@ -0,0 +1,749 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.accounts.v1beta; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.shopping.merchant.accounts.v1beta.stub.CheckoutSettingsServiceStub; +import com.google.shopping.merchant.accounts.v1beta.stub.CheckoutSettingsServiceStubSettings; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service for supporting [checkout + * settings](https://support.google.com/merchants/answer/13945960). + * + *

      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 (CheckoutSettingsServiceClient checkoutSettingsServiceClient =
      + *     CheckoutSettingsServiceClient.create()) {
      + *   CheckoutSettingsName name = CheckoutSettingsName.of("[ACCOUNT]", "[PROGRAM]");
      + *   CheckoutSettings response = checkoutSettingsServiceClient.getCheckoutSettings(name);
      + * }
      + * }
      + * + *

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

      GetCheckoutSettings

      Gets `CheckoutSettings` for the given merchant. This includes information about review state, enrollment state and URL settings.

      + *

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

      + *
        + *
      • getCheckoutSettings(GetCheckoutSettingsRequest request) + *

      + *

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

      + *
        + *
      • getCheckoutSettings(CheckoutSettingsName name) + *

      • getCheckoutSettings(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.

      + *
        + *
      • getCheckoutSettingsCallable() + *

      + *

      CreateCheckoutSettings

      Creates `CheckoutSettings` for the given merchant.

      + *

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

      + *
        + *
      • createCheckoutSettings(CreateCheckoutSettingsRequest request) + *

      + *

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

      + *
        + *
      • createCheckoutSettings(ProgramName parent, CheckoutSettings checkoutSettings) + *

      • createCheckoutSettings(String parent, CheckoutSettings checkoutSettings) + *

      + *

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

      + *
        + *
      • createCheckoutSettingsCallable() + *

      + *

      UpdateCheckoutSettings

      Updates `CheckoutSettings` for the given merchant.

      + *

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

      + *
        + *
      • updateCheckoutSettings(UpdateCheckoutSettingsRequest request) + *

      + *

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

      + *
        + *
      • updateCheckoutSettings(CheckoutSettings checkoutSettings, FieldMask updateMask) + *

      + *

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

      + *
        + *
      • updateCheckoutSettingsCallable() + *

      + *

      DeleteCheckoutSettings

      Deletes `CheckoutSettings` and unenrolls merchant from `Checkout` program.

      + *

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

      + *
        + *
      • deleteCheckoutSettings(DeleteCheckoutSettingsRequest request) + *

      + *

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

      + *
        + *
      • deleteCheckoutSettings(CheckoutSettingsName name) + *

      • deleteCheckoutSettings(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.

      + *
        + *
      • deleteCheckoutSettingsCallable() + *

      + *
      + * + *

      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 + * CheckoutSettingsServiceSettings 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
      + * CheckoutSettingsServiceSettings checkoutSettingsServiceSettings =
      + *     CheckoutSettingsServiceSettings.newBuilder()
      + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
      + *         .build();
      + * CheckoutSettingsServiceClient checkoutSettingsServiceClient =
      + *     CheckoutSettingsServiceClient.create(checkoutSettingsServiceSettings);
      + * }
      + * + *

      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
      + * CheckoutSettingsServiceSettings checkoutSettingsServiceSettings =
      + *     CheckoutSettingsServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
      + * CheckoutSettingsServiceClient checkoutSettingsServiceClient =
      + *     CheckoutSettingsServiceClient.create(checkoutSettingsServiceSettings);
      + * }
      + * + *

      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
      + * CheckoutSettingsServiceSettings checkoutSettingsServiceSettings =
      + *     CheckoutSettingsServiceSettings.newHttpJsonBuilder().build();
      + * CheckoutSettingsServiceClient checkoutSettingsServiceClient =
      + *     CheckoutSettingsServiceClient.create(checkoutSettingsServiceSettings);
      + * }
      + * + *

      Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class CheckoutSettingsServiceClient implements BackgroundResource { + private final CheckoutSettingsServiceSettings settings; + private final CheckoutSettingsServiceStub stub; + + /** Constructs an instance of CheckoutSettingsServiceClient with default settings. */ + public static final CheckoutSettingsServiceClient create() throws IOException { + return create(CheckoutSettingsServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of CheckoutSettingsServiceClient, 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 CheckoutSettingsServiceClient create(CheckoutSettingsServiceSettings settings) + throws IOException { + return new CheckoutSettingsServiceClient(settings); + } + + /** + * Constructs an instance of CheckoutSettingsServiceClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(CheckoutSettingsServiceSettings). + */ + public static final CheckoutSettingsServiceClient create(CheckoutSettingsServiceStub stub) { + return new CheckoutSettingsServiceClient(stub); + } + + /** + * Constructs an instance of CheckoutSettingsServiceClient, 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 CheckoutSettingsServiceClient(CheckoutSettingsServiceSettings settings) + throws IOException { + this.settings = settings; + this.stub = ((CheckoutSettingsServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected CheckoutSettingsServiceClient(CheckoutSettingsServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final CheckoutSettingsServiceSettings getSettings() { + return settings; + } + + public CheckoutSettingsServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets `CheckoutSettings` for the given merchant. This includes information about review state, + * enrollment state and URL settings. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (CheckoutSettingsServiceClient checkoutSettingsServiceClient =
      +   *     CheckoutSettingsServiceClient.create()) {
      +   *   CheckoutSettingsName name = CheckoutSettingsName.of("[ACCOUNT]", "[PROGRAM]");
      +   *   CheckoutSettings response = checkoutSettingsServiceClient.getCheckoutSettings(name);
      +   * }
      +   * }
      + * + * @param name Required. The name/identifier of the merchant account. Format: + * `accounts/{account}/programs/{program}/checkoutSettings` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CheckoutSettings getCheckoutSettings(CheckoutSettingsName name) { + GetCheckoutSettingsRequest request = + GetCheckoutSettingsRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getCheckoutSettings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets `CheckoutSettings` for the given merchant. This includes information about review state, + * enrollment state and URL settings. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (CheckoutSettingsServiceClient checkoutSettingsServiceClient =
      +   *     CheckoutSettingsServiceClient.create()) {
      +   *   String name = CheckoutSettingsName.of("[ACCOUNT]", "[PROGRAM]").toString();
      +   *   CheckoutSettings response = checkoutSettingsServiceClient.getCheckoutSettings(name);
      +   * }
      +   * }
      + * + * @param name Required. The name/identifier of the merchant account. Format: + * `accounts/{account}/programs/{program}/checkoutSettings` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CheckoutSettings getCheckoutSettings(String name) { + GetCheckoutSettingsRequest request = + GetCheckoutSettingsRequest.newBuilder().setName(name).build(); + return getCheckoutSettings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets `CheckoutSettings` for the given merchant. This includes information about review state, + * enrollment state and URL settings. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (CheckoutSettingsServiceClient checkoutSettingsServiceClient =
      +   *     CheckoutSettingsServiceClient.create()) {
      +   *   GetCheckoutSettingsRequest request =
      +   *       GetCheckoutSettingsRequest.newBuilder()
      +   *           .setName(CheckoutSettingsName.of("[ACCOUNT]", "[PROGRAM]").toString())
      +   *           .build();
      +   *   CheckoutSettings response = checkoutSettingsServiceClient.getCheckoutSettings(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 CheckoutSettings getCheckoutSettings(GetCheckoutSettingsRequest request) { + return getCheckoutSettingsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets `CheckoutSettings` for the given merchant. This includes information about review state, + * enrollment state and URL settings. + * + *

      Sample code: + * + *

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

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (CheckoutSettingsServiceClient checkoutSettingsServiceClient =
      +   *     CheckoutSettingsServiceClient.create()) {
      +   *   ProgramName parent = ProgramName.of("[ACCOUNT]", "[PROGRAM]");
      +   *   CheckoutSettings checkoutSettings = CheckoutSettings.newBuilder().build();
      +   *   CheckoutSettings response =
      +   *       checkoutSettingsServiceClient.createCheckoutSettings(parent, checkoutSettings);
      +   * }
      +   * }
      + * + * @param parent Required. The merchant account for which the `CheckoutSettings` will be created. + * @param checkoutSettings Required. The `CheckoutSettings` object to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CheckoutSettings createCheckoutSettings( + ProgramName parent, CheckoutSettings checkoutSettings) { + CreateCheckoutSettingsRequest request = + CreateCheckoutSettingsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setCheckoutSettings(checkoutSettings) + .build(); + return createCheckoutSettings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates `CheckoutSettings` for the given merchant. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (CheckoutSettingsServiceClient checkoutSettingsServiceClient =
      +   *     CheckoutSettingsServiceClient.create()) {
      +   *   String parent = ProgramName.of("[ACCOUNT]", "[PROGRAM]").toString();
      +   *   CheckoutSettings checkoutSettings = CheckoutSettings.newBuilder().build();
      +   *   CheckoutSettings response =
      +   *       checkoutSettingsServiceClient.createCheckoutSettings(parent, checkoutSettings);
      +   * }
      +   * }
      + * + * @param parent Required. The merchant account for which the `CheckoutSettings` will be created. + * @param checkoutSettings Required. The `CheckoutSettings` object to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CheckoutSettings createCheckoutSettings( + String parent, CheckoutSettings checkoutSettings) { + CreateCheckoutSettingsRequest request = + CreateCheckoutSettingsRequest.newBuilder() + .setParent(parent) + .setCheckoutSettings(checkoutSettings) + .build(); + return createCheckoutSettings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates `CheckoutSettings` for the given merchant. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (CheckoutSettingsServiceClient checkoutSettingsServiceClient =
      +   *     CheckoutSettingsServiceClient.create()) {
      +   *   CreateCheckoutSettingsRequest request =
      +   *       CreateCheckoutSettingsRequest.newBuilder()
      +   *           .setParent(ProgramName.of("[ACCOUNT]", "[PROGRAM]").toString())
      +   *           .setCheckoutSettings(CheckoutSettings.newBuilder().build())
      +   *           .build();
      +   *   CheckoutSettings response = checkoutSettingsServiceClient.createCheckoutSettings(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 CheckoutSettings createCheckoutSettings(CreateCheckoutSettingsRequest request) { + return createCheckoutSettingsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates `CheckoutSettings` for the given merchant. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (CheckoutSettingsServiceClient checkoutSettingsServiceClient =
      +   *     CheckoutSettingsServiceClient.create()) {
      +   *   CreateCheckoutSettingsRequest request =
      +   *       CreateCheckoutSettingsRequest.newBuilder()
      +   *           .setParent(ProgramName.of("[ACCOUNT]", "[PROGRAM]").toString())
      +   *           .setCheckoutSettings(CheckoutSettings.newBuilder().build())
      +   *           .build();
      +   *   ApiFuture future =
      +   *       checkoutSettingsServiceClient.createCheckoutSettingsCallable().futureCall(request);
      +   *   // Do something.
      +   *   CheckoutSettings response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable + createCheckoutSettingsCallable() { + return stub.createCheckoutSettingsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates `CheckoutSettings` for the given merchant. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (CheckoutSettingsServiceClient checkoutSettingsServiceClient =
      +   *     CheckoutSettingsServiceClient.create()) {
      +   *   CheckoutSettings checkoutSettings = CheckoutSettings.newBuilder().build();
      +   *   FieldMask updateMask = FieldMask.newBuilder().build();
      +   *   CheckoutSettings response =
      +   *       checkoutSettingsServiceClient.updateCheckoutSettings(checkoutSettings, updateMask);
      +   * }
      +   * }
      + * + * @param checkoutSettings Required. The updated version of the `CheckoutSettings`. The `name` + * field is used to identify the `CheckoutSettings`. Format: + * `accounts/{account}/programs/{program}/checkoutSettings` + * @param updateMask Required. List of fields being updated. The following fields are supported + * (in both `snake_case` and `lowerCamelCase`): + *

      - `eligible_destinations` - `uri_settings` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CheckoutSettings updateCheckoutSettings( + CheckoutSettings checkoutSettings, FieldMask updateMask) { + UpdateCheckoutSettingsRequest request = + UpdateCheckoutSettingsRequest.newBuilder() + .setCheckoutSettings(checkoutSettings) + .setUpdateMask(updateMask) + .build(); + return updateCheckoutSettings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates `CheckoutSettings` for the given merchant. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (CheckoutSettingsServiceClient checkoutSettingsServiceClient =
      +   *     CheckoutSettingsServiceClient.create()) {
      +   *   UpdateCheckoutSettingsRequest request =
      +   *       UpdateCheckoutSettingsRequest.newBuilder()
      +   *           .setCheckoutSettings(CheckoutSettings.newBuilder().build())
      +   *           .setUpdateMask(FieldMask.newBuilder().build())
      +   *           .build();
      +   *   CheckoutSettings response = checkoutSettingsServiceClient.updateCheckoutSettings(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 CheckoutSettings updateCheckoutSettings(UpdateCheckoutSettingsRequest request) { + return updateCheckoutSettingsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates `CheckoutSettings` for the given merchant. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (CheckoutSettingsServiceClient checkoutSettingsServiceClient =
      +   *     CheckoutSettingsServiceClient.create()) {
      +   *   UpdateCheckoutSettingsRequest request =
      +   *       UpdateCheckoutSettingsRequest.newBuilder()
      +   *           .setCheckoutSettings(CheckoutSettings.newBuilder().build())
      +   *           .setUpdateMask(FieldMask.newBuilder().build())
      +   *           .build();
      +   *   ApiFuture future =
      +   *       checkoutSettingsServiceClient.updateCheckoutSettingsCallable().futureCall(request);
      +   *   // Do something.
      +   *   CheckoutSettings response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable + updateCheckoutSettingsCallable() { + return stub.updateCheckoutSettingsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes `CheckoutSettings` and unenrolls merchant from `Checkout` program. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (CheckoutSettingsServiceClient checkoutSettingsServiceClient =
      +   *     CheckoutSettingsServiceClient.create()) {
      +   *   CheckoutSettingsName name = CheckoutSettingsName.of("[ACCOUNT]", "[PROGRAM]");
      +   *   checkoutSettingsServiceClient.deleteCheckoutSettings(name);
      +   * }
      +   * }
      + * + * @param name Required. The name/identifier of the merchant account. Format: + * `accounts/{account}/programs/{program}/checkoutSettings` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteCheckoutSettings(CheckoutSettingsName name) { + DeleteCheckoutSettingsRequest request = + DeleteCheckoutSettingsRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteCheckoutSettings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes `CheckoutSettings` and unenrolls merchant from `Checkout` program. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (CheckoutSettingsServiceClient checkoutSettingsServiceClient =
      +   *     CheckoutSettingsServiceClient.create()) {
      +   *   String name = CheckoutSettingsName.of("[ACCOUNT]", "[PROGRAM]").toString();
      +   *   checkoutSettingsServiceClient.deleteCheckoutSettings(name);
      +   * }
      +   * }
      + * + * @param name Required. The name/identifier of the merchant account. Format: + * `accounts/{account}/programs/{program}/checkoutSettings` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteCheckoutSettings(String name) { + DeleteCheckoutSettingsRequest request = + DeleteCheckoutSettingsRequest.newBuilder().setName(name).build(); + deleteCheckoutSettings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes `CheckoutSettings` and unenrolls merchant from `Checkout` program. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (CheckoutSettingsServiceClient checkoutSettingsServiceClient =
      +   *     CheckoutSettingsServiceClient.create()) {
      +   *   DeleteCheckoutSettingsRequest request =
      +   *       DeleteCheckoutSettingsRequest.newBuilder()
      +   *           .setName(CheckoutSettingsName.of("[ACCOUNT]", "[PROGRAM]").toString())
      +   *           .build();
      +   *   checkoutSettingsServiceClient.deleteCheckoutSettings(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteCheckoutSettings(DeleteCheckoutSettingsRequest request) { + deleteCheckoutSettingsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes `CheckoutSettings` and unenrolls merchant from `Checkout` program. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (CheckoutSettingsServiceClient checkoutSettingsServiceClient =
      +   *     CheckoutSettingsServiceClient.create()) {
      +   *   DeleteCheckoutSettingsRequest request =
      +   *       DeleteCheckoutSettingsRequest.newBuilder()
      +   *           .setName(CheckoutSettingsName.of("[ACCOUNT]", "[PROGRAM]").toString())
      +   *           .build();
      +   *   ApiFuture future =
      +   *       checkoutSettingsServiceClient.deleteCheckoutSettingsCallable().futureCall(request);
      +   *   // Do something.
      +   *   future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable + deleteCheckoutSettingsCallable() { + return stub.deleteCheckoutSettingsCallable(); + } + + @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); + } +} diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/CheckoutSettingsServiceSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/CheckoutSettingsServiceSettings.java new file mode 100644 index 000000000000..b29e2d0ee457 --- /dev/null +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/CheckoutSettingsServiceSettings.java @@ -0,0 +1,260 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.accounts.v1beta; + +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.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.protobuf.Empty; +import com.google.shopping.merchant.accounts.v1beta.stub.CheckoutSettingsServiceStubSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link CheckoutSettingsServiceClient}. + * + *

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

        + *
      • The default service address (merchantapi.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 getCheckoutSettings: + * + *

      {@code
      + * // This snippet has been automatically generated and should be regarded as a code template only.
      + * // It will require modifications to work:
      + * // - It may require correct/in-range values for request initialization.
      + * // - It may require specifying regional endpoints when creating the service client as shown in
      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      + * CheckoutSettingsServiceSettings.Builder checkoutSettingsServiceSettingsBuilder =
      + *     CheckoutSettingsServiceSettings.newBuilder();
      + * checkoutSettingsServiceSettingsBuilder
      + *     .getCheckoutSettingsSettings()
      + *     .setRetrySettings(
      + *         checkoutSettingsServiceSettingsBuilder
      + *             .getCheckoutSettingsSettings()
      + *             .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());
      + * CheckoutSettingsServiceSettings checkoutSettingsServiceSettings =
      + *     checkoutSettingsServiceSettingsBuilder.build();
      + * }
      + * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class CheckoutSettingsServiceSettings + extends ClientSettings { + + /** Returns the object with the settings used for calls to getCheckoutSettings. */ + public UnaryCallSettings + getCheckoutSettingsSettings() { + return ((CheckoutSettingsServiceStubSettings) getStubSettings()).getCheckoutSettingsSettings(); + } + + /** Returns the object with the settings used for calls to createCheckoutSettings. */ + public UnaryCallSettings + createCheckoutSettingsSettings() { + return ((CheckoutSettingsServiceStubSettings) getStubSettings()) + .createCheckoutSettingsSettings(); + } + + /** Returns the object with the settings used for calls to updateCheckoutSettings. */ + public UnaryCallSettings + updateCheckoutSettingsSettings() { + return ((CheckoutSettingsServiceStubSettings) getStubSettings()) + .updateCheckoutSettingsSettings(); + } + + /** Returns the object with the settings used for calls to deleteCheckoutSettings. */ + public UnaryCallSettings deleteCheckoutSettingsSettings() { + return ((CheckoutSettingsServiceStubSettings) getStubSettings()) + .deleteCheckoutSettingsSettings(); + } + + public static final CheckoutSettingsServiceSettings create( + CheckoutSettingsServiceStubSettings stub) throws IOException { + return new CheckoutSettingsServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return CheckoutSettingsServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return CheckoutSettingsServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return CheckoutSettingsServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return CheckoutSettingsServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return CheckoutSettingsServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return CheckoutSettingsServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return CheckoutSettingsServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return CheckoutSettingsServiceStubSettings.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(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 CheckoutSettingsServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for CheckoutSettingsServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(CheckoutSettingsServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(CheckoutSettingsServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(CheckoutSettingsServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(CheckoutSettingsServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(CheckoutSettingsServiceStubSettings.newHttpJsonBuilder()); + } + + public CheckoutSettingsServiceStubSettings.Builder getStubSettingsBuilder() { + return ((CheckoutSettingsServiceStubSettings.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 getCheckoutSettings. */ + public UnaryCallSettings.Builder + getCheckoutSettingsSettings() { + return getStubSettingsBuilder().getCheckoutSettingsSettings(); + } + + /** Returns the builder for the settings used for calls to createCheckoutSettings. */ + public UnaryCallSettings.Builder + createCheckoutSettingsSettings() { + return getStubSettingsBuilder().createCheckoutSettingsSettings(); + } + + /** Returns the builder for the settings used for calls to updateCheckoutSettings. */ + public UnaryCallSettings.Builder + updateCheckoutSettingsSettings() { + return getStubSettingsBuilder().updateCheckoutSettingsSettings(); + } + + /** Returns the builder for the settings used for calls to deleteCheckoutSettings. */ + public UnaryCallSettings.Builder + deleteCheckoutSettingsSettings() { + return getStubSettingsBuilder().deleteCheckoutSettingsSettings(); + } + + @Override + public CheckoutSettingsServiceSettings build() throws IOException { + return new CheckoutSettingsServiceSettings(this); + } + } +} diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/gapic_metadata.json b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/gapic_metadata.json index 71f3b99e9b2d..739ccde686c0 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/gapic_metadata.json +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/gapic_metadata.json @@ -122,6 +122,27 @@ } } }, + "CheckoutSettingsService": { + "clients": { + "grpc": { + "libraryClient": "CheckoutSettingsServiceClient", + "rpcs": { + "CreateCheckoutSettings": { + "methods": ["createCheckoutSettings", "createCheckoutSettings", "createCheckoutSettings", "createCheckoutSettingsCallable"] + }, + "DeleteCheckoutSettings": { + "methods": ["deleteCheckoutSettings", "deleteCheckoutSettings", "deleteCheckoutSettings", "deleteCheckoutSettingsCallable"] + }, + "GetCheckoutSettings": { + "methods": ["getCheckoutSettings", "getCheckoutSettings", "getCheckoutSettings", "getCheckoutSettingsCallable"] + }, + "UpdateCheckoutSettings": { + "methods": ["updateCheckoutSettings", "updateCheckoutSettings", "updateCheckoutSettingsCallable"] + } + } + } + } + }, "EmailPreferencesService": { "clients": { "grpc": { diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/package-info.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/package-info.java index 9698242f8a2c..b18d6c5e4324 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/package-info.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/package-info.java @@ -160,6 +160,26 @@ * } * } * + *

      ======================= CheckoutSettingsServiceClient ======================= + * + *

      Service Description: Service for supporting [checkout + * settings](https://support.google.com/merchants/answer/13945960). + * + *

      Sample for CheckoutSettingsServiceClient: + * + *

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

      ======================= EmailPreferencesServiceClient ======================= * *

      Service Description: Service to support the `EmailPreferences` API. diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/CheckoutSettingsServiceStub.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/CheckoutSettingsServiceStub.java new file mode 100644 index 000000000000..dd8fb4a2173b --- /dev/null +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/CheckoutSettingsServiceStub.java @@ -0,0 +1,60 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.accounts.v1beta.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.protobuf.Empty; +import com.google.shopping.merchant.accounts.v1beta.CheckoutSettings; +import com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest; +import com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest; +import com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest; +import com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the CheckoutSettingsService service API. + * + *

      This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class CheckoutSettingsServiceStub implements BackgroundResource { + + public UnaryCallable getCheckoutSettingsCallable() { + throw new UnsupportedOperationException("Not implemented: getCheckoutSettingsCallable()"); + } + + public UnaryCallable + createCheckoutSettingsCallable() { + throw new UnsupportedOperationException("Not implemented: createCheckoutSettingsCallable()"); + } + + public UnaryCallable + updateCheckoutSettingsCallable() { + throw new UnsupportedOperationException("Not implemented: updateCheckoutSettingsCallable()"); + } + + public UnaryCallable deleteCheckoutSettingsCallable() { + throw new UnsupportedOperationException("Not implemented: deleteCheckoutSettingsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/CheckoutSettingsServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/CheckoutSettingsServiceStubSettings.java new file mode 100644 index 000000000000..bd565907bbee --- /dev/null +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/CheckoutSettingsServiceStubSettings.java @@ -0,0 +1,433 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.accounts.v1beta.stub; + +import com.google.api.core.ApiFunction; +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.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +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.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import com.google.shopping.merchant.accounts.v1beta.CheckoutSettings; +import com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest; +import com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest; +import com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest; +import com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link CheckoutSettingsServiceStub}. + * + *

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

        + *
      • The default service address (merchantapi.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 getCheckoutSettings: + * + *

      {@code
      + * // This snippet has been automatically generated and should be regarded as a code template only.
      + * // It will require modifications to work:
      + * // - It may require correct/in-range values for request initialization.
      + * // - It may require specifying regional endpoints when creating the service client as shown in
      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      + * CheckoutSettingsServiceStubSettings.Builder checkoutSettingsServiceSettingsBuilder =
      + *     CheckoutSettingsServiceStubSettings.newBuilder();
      + * checkoutSettingsServiceSettingsBuilder
      + *     .getCheckoutSettingsSettings()
      + *     .setRetrySettings(
      + *         checkoutSettingsServiceSettingsBuilder
      + *             .getCheckoutSettingsSettings()
      + *             .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());
      + * CheckoutSettingsServiceStubSettings checkoutSettingsServiceSettings =
      + *     checkoutSettingsServiceSettingsBuilder.build();
      + * }
      + * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class CheckoutSettingsServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/content").build(); + + private final UnaryCallSettings + getCheckoutSettingsSettings; + private final UnaryCallSettings + createCheckoutSettingsSettings; + private final UnaryCallSettings + updateCheckoutSettingsSettings; + private final UnaryCallSettings + deleteCheckoutSettingsSettings; + + /** Returns the object with the settings used for calls to getCheckoutSettings. */ + public UnaryCallSettings + getCheckoutSettingsSettings() { + return getCheckoutSettingsSettings; + } + + /** Returns the object with the settings used for calls to createCheckoutSettings. */ + public UnaryCallSettings + createCheckoutSettingsSettings() { + return createCheckoutSettingsSettings; + } + + /** Returns the object with the settings used for calls to updateCheckoutSettings. */ + public UnaryCallSettings + updateCheckoutSettingsSettings() { + return updateCheckoutSettingsSettings; + } + + /** Returns the object with the settings used for calls to deleteCheckoutSettings. */ + public UnaryCallSettings deleteCheckoutSettingsSettings() { + return deleteCheckoutSettingsSettings; + } + + public CheckoutSettingsServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcCheckoutSettingsServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonCheckoutSettingsServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "merchantapi"; + } + + /** 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 "merchantapi.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "merchantapi.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(CheckoutSettingsServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(CheckoutSettingsServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return CheckoutSettingsServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected CheckoutSettingsServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getCheckoutSettingsSettings = settingsBuilder.getCheckoutSettingsSettings().build(); + createCheckoutSettingsSettings = settingsBuilder.createCheckoutSettingsSettings().build(); + updateCheckoutSettingsSettings = settingsBuilder.updateCheckoutSettingsSettings().build(); + deleteCheckoutSettingsSettings = settingsBuilder.deleteCheckoutSettingsSettings().build(); + } + + /** Builder for CheckoutSettingsServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + getCheckoutSettingsSettings; + private final UnaryCallSettings.Builder + createCheckoutSettingsSettings; + private final UnaryCallSettings.Builder + updateCheckoutSettingsSettings; + private final UnaryCallSettings.Builder + deleteCheckoutSettingsSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + 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(ClientContext clientContext) { + super(clientContext); + + getCheckoutSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createCheckoutSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateCheckoutSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteCheckoutSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getCheckoutSettingsSettings, + createCheckoutSettingsSettings, + updateCheckoutSettingsSettings, + deleteCheckoutSettingsSettings); + initDefaults(this); + } + + protected Builder(CheckoutSettingsServiceStubSettings settings) { + super(settings); + + getCheckoutSettingsSettings = settings.getCheckoutSettingsSettings.toBuilder(); + createCheckoutSettingsSettings = settings.createCheckoutSettingsSettings.toBuilder(); + updateCheckoutSettingsSettings = settings.updateCheckoutSettingsSettings.toBuilder(); + deleteCheckoutSettingsSettings = settings.deleteCheckoutSettingsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getCheckoutSettingsSettings, + createCheckoutSettingsSettings, + updateCheckoutSettingsSettings, + deleteCheckoutSettingsSettings); + } + + 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 + .getCheckoutSettingsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createCheckoutSettingsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateCheckoutSettingsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteCheckoutSettingsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

      Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getCheckoutSettings. */ + public UnaryCallSettings.Builder + getCheckoutSettingsSettings() { + return getCheckoutSettingsSettings; + } + + /** Returns the builder for the settings used for calls to createCheckoutSettings. */ + public UnaryCallSettings.Builder + createCheckoutSettingsSettings() { + return createCheckoutSettingsSettings; + } + + /** Returns the builder for the settings used for calls to updateCheckoutSettings. */ + public UnaryCallSettings.Builder + updateCheckoutSettingsSettings() { + return updateCheckoutSettingsSettings; + } + + /** Returns the builder for the settings used for calls to deleteCheckoutSettings. */ + public UnaryCallSettings.Builder + deleteCheckoutSettingsSettings() { + return deleteCheckoutSettingsSettings; + } + + @Override + public CheckoutSettingsServiceStubSettings build() throws IOException { + return new CheckoutSettingsServiceStubSettings(this); + } + } +} diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/GrpcCheckoutSettingsServiceCallableFactory.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/GrpcCheckoutSettingsServiceCallableFactory.java new file mode 100644 index 000000000000..674d966ff529 --- /dev/null +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/GrpcCheckoutSettingsServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.accounts.v1beta.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the CheckoutSettingsService service API. + * + *

      This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcCheckoutSettingsServiceCallableFactory 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-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/GrpcCheckoutSettingsServiceStub.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/GrpcCheckoutSettingsServiceStub.java new file mode 100644 index 000000000000..4b12a220f119 --- /dev/null +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/GrpcCheckoutSettingsServiceStub.java @@ -0,0 +1,278 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.accounts.v1beta.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +import com.google.shopping.merchant.accounts.v1beta.CheckoutSettings; +import com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest; +import com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest; +import com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest; +import com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the CheckoutSettingsService service API. + * + *

      This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcCheckoutSettingsServiceStub extends CheckoutSettingsServiceStub { + private static final MethodDescriptor + getCheckoutSettingsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.shopping.merchant.accounts.v1beta.CheckoutSettingsService/GetCheckoutSettings") + .setRequestMarshaller( + ProtoUtils.marshaller(GetCheckoutSettingsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(CheckoutSettings.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createCheckoutSettingsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.shopping.merchant.accounts.v1beta.CheckoutSettingsService/CreateCheckoutSettings") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateCheckoutSettingsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(CheckoutSettings.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateCheckoutSettingsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.shopping.merchant.accounts.v1beta.CheckoutSettingsService/UpdateCheckoutSettings") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateCheckoutSettingsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(CheckoutSettings.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteCheckoutSettingsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.shopping.merchant.accounts.v1beta.CheckoutSettingsService/DeleteCheckoutSettings") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteCheckoutSettingsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private final UnaryCallable + getCheckoutSettingsCallable; + private final UnaryCallable + createCheckoutSettingsCallable; + private final UnaryCallable + updateCheckoutSettingsCallable; + private final UnaryCallable deleteCheckoutSettingsCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcCheckoutSettingsServiceStub create( + CheckoutSettingsServiceStubSettings settings) throws IOException { + return new GrpcCheckoutSettingsServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcCheckoutSettingsServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcCheckoutSettingsServiceStub( + CheckoutSettingsServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcCheckoutSettingsServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcCheckoutSettingsServiceStub( + CheckoutSettingsServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcCheckoutSettingsServiceStub, 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 GrpcCheckoutSettingsServiceStub( + CheckoutSettingsServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcCheckoutSettingsServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcCheckoutSettingsServiceStub, 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 GrpcCheckoutSettingsServiceStub( + CheckoutSettingsServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + getCheckoutSettingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getCheckoutSettingsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + createCheckoutSettingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createCheckoutSettingsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateCheckoutSettingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateCheckoutSettingsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "checkout_settings.name", + String.valueOf(request.getCheckoutSettings().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteCheckoutSettingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteCheckoutSettingsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.getCheckoutSettingsCallable = + callableFactory.createUnaryCallable( + getCheckoutSettingsTransportSettings, + settings.getCheckoutSettingsSettings(), + clientContext); + this.createCheckoutSettingsCallable = + callableFactory.createUnaryCallable( + createCheckoutSettingsTransportSettings, + settings.createCheckoutSettingsSettings(), + clientContext); + this.updateCheckoutSettingsCallable = + callableFactory.createUnaryCallable( + updateCheckoutSettingsTransportSettings, + settings.updateCheckoutSettingsSettings(), + clientContext); + this.deleteCheckoutSettingsCallable = + callableFactory.createUnaryCallable( + deleteCheckoutSettingsTransportSettings, + settings.deleteCheckoutSettingsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable getCheckoutSettingsCallable() { + return getCheckoutSettingsCallable; + } + + @Override + public UnaryCallable + createCheckoutSettingsCallable() { + return createCheckoutSettingsCallable; + } + + @Override + public UnaryCallable + updateCheckoutSettingsCallable() { + return updateCheckoutSettingsCallable; + } + + @Override + public UnaryCallable deleteCheckoutSettingsCallable() { + return deleteCheckoutSettingsCallable; + } + + @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-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/HttpJsonCheckoutSettingsServiceCallableFactory.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/HttpJsonCheckoutSettingsServiceCallableFactory.java new file mode 100644 index 000000000000..92cd87e52b0c --- /dev/null +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/HttpJsonCheckoutSettingsServiceCallableFactory.java @@ -0,0 +1,103 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.accounts.v1beta.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the CheckoutSettingsService service API. + * + *

      This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonCheckoutSettingsServiceCallableFactory + 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-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/HttpJsonCheckoutSettingsServiceStub.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/HttpJsonCheckoutSettingsServiceStub.java new file mode 100644 index 000000000000..28e1138bc7d8 --- /dev/null +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/HttpJsonCheckoutSettingsServiceStub.java @@ -0,0 +1,404 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.accounts.v1beta.stub; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import com.google.shopping.merchant.accounts.v1beta.CheckoutSettings; +import com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest; +import com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest; +import com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest; +import com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the CheckoutSettingsService service API. + * + *

      This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonCheckoutSettingsServiceStub extends CheckoutSettingsServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + getCheckoutSettingsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.shopping.merchant.accounts.v1beta.CheckoutSettingsService/GetCheckoutSettings") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/accounts/v1beta/{name=accounts/*/programs/*/checkoutSettings}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CheckoutSettings.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createCheckoutSettingsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.shopping.merchant.accounts.v1beta.CheckoutSettingsService/CreateCheckoutSettings") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/accounts/v1beta/{parent=accounts/*/programs/*}/checkoutSettings", + 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("checkoutSettings", request.getCheckoutSettings(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CheckoutSettings.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateCheckoutSettingsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.shopping.merchant.accounts.v1beta.CheckoutSettingsService/UpdateCheckoutSettings") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/accounts/v1beta/{checkoutSettings.name=accounts/*/programs/*/checkoutSettings}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "checkoutSettings.name", + request.getCheckoutSettings().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("checkoutSettings", request.getCheckoutSettings(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CheckoutSettings.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteCheckoutSettingsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.shopping.merchant.accounts.v1beta.CheckoutSettingsService/DeleteCheckoutSettings") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/accounts/v1beta/{name=accounts/*/programs/*/checkoutSettings}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable + getCheckoutSettingsCallable; + private final UnaryCallable + createCheckoutSettingsCallable; + private final UnaryCallable + updateCheckoutSettingsCallable; + private final UnaryCallable deleteCheckoutSettingsCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonCheckoutSettingsServiceStub create( + CheckoutSettingsServiceStubSettings settings) throws IOException { + return new HttpJsonCheckoutSettingsServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonCheckoutSettingsServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonCheckoutSettingsServiceStub( + CheckoutSettingsServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonCheckoutSettingsServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonCheckoutSettingsServiceStub( + CheckoutSettingsServiceStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonCheckoutSettingsServiceStub, 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 HttpJsonCheckoutSettingsServiceStub( + CheckoutSettingsServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonCheckoutSettingsServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonCheckoutSettingsServiceStub, 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 HttpJsonCheckoutSettingsServiceStub( + CheckoutSettingsServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + getCheckoutSettingsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getCheckoutSettingsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + createCheckoutSettingsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createCheckoutSettingsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + updateCheckoutSettingsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateCheckoutSettingsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "checkout_settings.name", + String.valueOf(request.getCheckoutSettings().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + deleteCheckoutSettingsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteCheckoutSettingsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.getCheckoutSettingsCallable = + callableFactory.createUnaryCallable( + getCheckoutSettingsTransportSettings, + settings.getCheckoutSettingsSettings(), + clientContext); + this.createCheckoutSettingsCallable = + callableFactory.createUnaryCallable( + createCheckoutSettingsTransportSettings, + settings.createCheckoutSettingsSettings(), + clientContext); + this.updateCheckoutSettingsCallable = + callableFactory.createUnaryCallable( + updateCheckoutSettingsTransportSettings, + settings.updateCheckoutSettingsSettings(), + clientContext); + this.deleteCheckoutSettingsCallable = + callableFactory.createUnaryCallable( + deleteCheckoutSettingsTransportSettings, + settings.deleteCheckoutSettingsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getCheckoutSettingsMethodDescriptor); + methodDescriptors.add(createCheckoutSettingsMethodDescriptor); + methodDescriptors.add(updateCheckoutSettingsMethodDescriptor); + methodDescriptors.add(deleteCheckoutSettingsMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable getCheckoutSettingsCallable() { + return getCheckoutSettingsCallable; + } + + @Override + public UnaryCallable + createCheckoutSettingsCallable() { + return createCheckoutSettingsCallable; + } + + @Override + public UnaryCallable + updateCheckoutSettingsCallable() { + return updateCheckoutSettingsCallable; + } + + @Override + public UnaryCallable deleteCheckoutSettingsCallable() { + return deleteCheckoutSettingsCallable; + } + + @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-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/resources/META-INF/native-image/com.google.shopping.merchant.accounts.v1beta/reflect-config.json b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/resources/META-INF/native-image/com.google.shopping.merchant.accounts.v1beta/reflect-config.json index 2c154dd49d68..51eaa4c95cbb 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/resources/META-INF/native-image/com.google.shopping.merchant.accounts.v1beta/reflect-config.json +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/resources/META-INF/native-image/com.google.shopping.merchant.accounts.v1beta/reflect-config.json @@ -1817,6 +1817,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.shopping.merchant.accounts.v1beta.CheckoutSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.accounts.v1beta.CheckoutSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.accounts.v1beta.CheckoutSettings$CheckoutEnrollmentState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.accounts.v1beta.CheckoutSettings$CheckoutReviewState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.shopping.merchant.accounts.v1beta.ClaimHomepageRequest", "queryAllDeclaredConstructors": true, @@ -1889,6 +1925,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.shopping.merchant.accounts.v1beta.CreateOmnichannelSettingRequest", "queryAllDeclaredConstructors": true, @@ -2015,6 +2069,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.shopping.merchant.accounts.v1beta.DeleteOnlineReturnPolicyRequest", "queryAllDeclaredConstructors": true, @@ -2348,6 +2420,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.shopping.merchant.accounts.v1beta.GetEmailPreferencesRequest", "queryAllDeclaredConstructors": true, @@ -4049,6 +4139,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.shopping.merchant.accounts.v1beta.UpdateEmailPreferencesRequest", "queryAllDeclaredConstructors": true, @@ -4157,6 +4265,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.shopping.merchant.accounts.v1beta.UriSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.accounts.v1beta.UriSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.shopping.merchant.accounts.v1beta.User", "queryAllDeclaredConstructors": true, diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/test/java/com/google/shopping/merchant/accounts/v1beta/CheckoutSettingsServiceClientHttpJsonTest.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/test/java/com/google/shopping/merchant/accounts/v1beta/CheckoutSettingsServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..5060e3cea6aa --- /dev/null +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/test/java/com/google/shopping/merchant/accounts/v1beta/CheckoutSettingsServiceClientHttpJsonTest.java @@ -0,0 +1,410 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.accounts.v1beta; + +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.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.shopping.merchant.accounts.v1beta.stub.HttpJsonCheckoutSettingsServiceStub; +import com.google.shopping.type.Destination; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class CheckoutSettingsServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static CheckoutSettingsServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonCheckoutSettingsServiceStub.getMethodDescriptors(), + CheckoutSettingsServiceSettings.getDefaultEndpoint()); + CheckoutSettingsServiceSettings settings = + CheckoutSettingsServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + CheckoutSettingsServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = CheckoutSettingsServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getCheckoutSettingsTest() throws Exception { + CheckoutSettings expectedResponse = + CheckoutSettings.newBuilder() + .setName(CheckoutSettingsName.of("[ACCOUNT]", "[PROGRAM]").toString()) + .setUriSettings(UriSettings.newBuilder().build()) + .addAllEligibleDestinations(new ArrayList()) + .setEffectiveUriSettings(UriSettings.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + CheckoutSettingsName name = CheckoutSettingsName.of("[ACCOUNT]", "[PROGRAM]"); + + CheckoutSettings actualResponse = client.getCheckoutSettings(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 getCheckoutSettingsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CheckoutSettingsName name = CheckoutSettingsName.of("[ACCOUNT]", "[PROGRAM]"); + client.getCheckoutSettings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCheckoutSettingsTest2() throws Exception { + CheckoutSettings expectedResponse = + CheckoutSettings.newBuilder() + .setName(CheckoutSettingsName.of("[ACCOUNT]", "[PROGRAM]").toString()) + .setUriSettings(UriSettings.newBuilder().build()) + .addAllEligibleDestinations(new ArrayList()) + .setEffectiveUriSettings(UriSettings.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "accounts/account-4747/programs/program-4747/checkoutSettings"; + + CheckoutSettings actualResponse = client.getCheckoutSettings(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 getCheckoutSettingsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "accounts/account-4747/programs/program-4747/checkoutSettings"; + client.getCheckoutSettings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createCheckoutSettingsTest() throws Exception { + CheckoutSettings expectedResponse = + CheckoutSettings.newBuilder() + .setName(CheckoutSettingsName.of("[ACCOUNT]", "[PROGRAM]").toString()) + .setUriSettings(UriSettings.newBuilder().build()) + .addAllEligibleDestinations(new ArrayList()) + .setEffectiveUriSettings(UriSettings.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + ProgramName parent = ProgramName.of("[ACCOUNT]", "[PROGRAM]"); + CheckoutSettings checkoutSettings = CheckoutSettings.newBuilder().build(); + + CheckoutSettings actualResponse = client.createCheckoutSettings(parent, checkoutSettings); + 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 createCheckoutSettingsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProgramName parent = ProgramName.of("[ACCOUNT]", "[PROGRAM]"); + CheckoutSettings checkoutSettings = CheckoutSettings.newBuilder().build(); + client.createCheckoutSettings(parent, checkoutSettings); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createCheckoutSettingsTest2() throws Exception { + CheckoutSettings expectedResponse = + CheckoutSettings.newBuilder() + .setName(CheckoutSettingsName.of("[ACCOUNT]", "[PROGRAM]").toString()) + .setUriSettings(UriSettings.newBuilder().build()) + .addAllEligibleDestinations(new ArrayList()) + .setEffectiveUriSettings(UriSettings.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "accounts/account-7358/programs/program-7358"; + CheckoutSettings checkoutSettings = CheckoutSettings.newBuilder().build(); + + CheckoutSettings actualResponse = client.createCheckoutSettings(parent, checkoutSettings); + 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 createCheckoutSettingsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "accounts/account-7358/programs/program-7358"; + CheckoutSettings checkoutSettings = CheckoutSettings.newBuilder().build(); + client.createCheckoutSettings(parent, checkoutSettings); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateCheckoutSettingsTest() throws Exception { + CheckoutSettings expectedResponse = + CheckoutSettings.newBuilder() + .setName(CheckoutSettingsName.of("[ACCOUNT]", "[PROGRAM]").toString()) + .setUriSettings(UriSettings.newBuilder().build()) + .addAllEligibleDestinations(new ArrayList()) + .setEffectiveUriSettings(UriSettings.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + CheckoutSettings checkoutSettings = + CheckoutSettings.newBuilder() + .setName(CheckoutSettingsName.of("[ACCOUNT]", "[PROGRAM]").toString()) + .setUriSettings(UriSettings.newBuilder().build()) + .addAllEligibleDestinations(new ArrayList()) + .setEffectiveUriSettings(UriSettings.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + CheckoutSettings actualResponse = client.updateCheckoutSettings(checkoutSettings, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateCheckoutSettingsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CheckoutSettings checkoutSettings = + CheckoutSettings.newBuilder() + .setName(CheckoutSettingsName.of("[ACCOUNT]", "[PROGRAM]").toString()) + .setUriSettings(UriSettings.newBuilder().build()) + .addAllEligibleDestinations(new ArrayList()) + .setEffectiveUriSettings(UriSettings.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateCheckoutSettings(checkoutSettings, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteCheckoutSettingsTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + CheckoutSettingsName name = CheckoutSettingsName.of("[ACCOUNT]", "[PROGRAM]"); + + client.deleteCheckoutSettings(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteCheckoutSettingsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CheckoutSettingsName name = CheckoutSettingsName.of("[ACCOUNT]", "[PROGRAM]"); + client.deleteCheckoutSettings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteCheckoutSettingsTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "accounts/account-4747/programs/program-4747/checkoutSettings"; + + client.deleteCheckoutSettings(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteCheckoutSettingsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "accounts/account-4747/programs/program-4747/checkoutSettings"; + client.deleteCheckoutSettings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/test/java/com/google/shopping/merchant/accounts/v1beta/CheckoutSettingsServiceClientTest.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/test/java/com/google/shopping/merchant/accounts/v1beta/CheckoutSettingsServiceClientTest.java new file mode 100644 index 000000000000..7136e5944416 --- /dev/null +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/test/java/com/google/shopping/merchant/accounts/v1beta/CheckoutSettingsServiceClientTest.java @@ -0,0 +1,369 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.accounts.v1beta; + +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.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.shopping.type.Destination; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class CheckoutSettingsServiceClientTest { + private static MockCheckoutSettingsService mockCheckoutSettingsService; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private CheckoutSettingsServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockCheckoutSettingsService = new MockCheckoutSettingsService(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockCheckoutSettingsService)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + CheckoutSettingsServiceSettings settings = + CheckoutSettingsServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = CheckoutSettingsServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void getCheckoutSettingsTest() throws Exception { + CheckoutSettings expectedResponse = + CheckoutSettings.newBuilder() + .setName(CheckoutSettingsName.of("[ACCOUNT]", "[PROGRAM]").toString()) + .setUriSettings(UriSettings.newBuilder().build()) + .addAllEligibleDestinations(new ArrayList()) + .setEffectiveUriSettings(UriSettings.newBuilder().build()) + .build(); + mockCheckoutSettingsService.addResponse(expectedResponse); + + CheckoutSettingsName name = CheckoutSettingsName.of("[ACCOUNT]", "[PROGRAM]"); + + CheckoutSettings actualResponse = client.getCheckoutSettings(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCheckoutSettingsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetCheckoutSettingsRequest actualRequest = ((GetCheckoutSettingsRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getCheckoutSettingsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCheckoutSettingsService.addException(exception); + + try { + CheckoutSettingsName name = CheckoutSettingsName.of("[ACCOUNT]", "[PROGRAM]"); + client.getCheckoutSettings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCheckoutSettingsTest2() throws Exception { + CheckoutSettings expectedResponse = + CheckoutSettings.newBuilder() + .setName(CheckoutSettingsName.of("[ACCOUNT]", "[PROGRAM]").toString()) + .setUriSettings(UriSettings.newBuilder().build()) + .addAllEligibleDestinations(new ArrayList()) + .setEffectiveUriSettings(UriSettings.newBuilder().build()) + .build(); + mockCheckoutSettingsService.addResponse(expectedResponse); + + String name = "name3373707"; + + CheckoutSettings actualResponse = client.getCheckoutSettings(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCheckoutSettingsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetCheckoutSettingsRequest actualRequest = ((GetCheckoutSettingsRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getCheckoutSettingsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCheckoutSettingsService.addException(exception); + + try { + String name = "name3373707"; + client.getCheckoutSettings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createCheckoutSettingsTest() throws Exception { + CheckoutSettings expectedResponse = + CheckoutSettings.newBuilder() + .setName(CheckoutSettingsName.of("[ACCOUNT]", "[PROGRAM]").toString()) + .setUriSettings(UriSettings.newBuilder().build()) + .addAllEligibleDestinations(new ArrayList()) + .setEffectiveUriSettings(UriSettings.newBuilder().build()) + .build(); + mockCheckoutSettingsService.addResponse(expectedResponse); + + ProgramName parent = ProgramName.of("[ACCOUNT]", "[PROGRAM]"); + CheckoutSettings checkoutSettings = CheckoutSettings.newBuilder().build(); + + CheckoutSettings actualResponse = client.createCheckoutSettings(parent, checkoutSettings); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCheckoutSettingsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateCheckoutSettingsRequest actualRequest = + ((CreateCheckoutSettingsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(checkoutSettings, actualRequest.getCheckoutSettings()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createCheckoutSettingsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCheckoutSettingsService.addException(exception); + + try { + ProgramName parent = ProgramName.of("[ACCOUNT]", "[PROGRAM]"); + CheckoutSettings checkoutSettings = CheckoutSettings.newBuilder().build(); + client.createCheckoutSettings(parent, checkoutSettings); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createCheckoutSettingsTest2() throws Exception { + CheckoutSettings expectedResponse = + CheckoutSettings.newBuilder() + .setName(CheckoutSettingsName.of("[ACCOUNT]", "[PROGRAM]").toString()) + .setUriSettings(UriSettings.newBuilder().build()) + .addAllEligibleDestinations(new ArrayList()) + .setEffectiveUriSettings(UriSettings.newBuilder().build()) + .build(); + mockCheckoutSettingsService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + CheckoutSettings checkoutSettings = CheckoutSettings.newBuilder().build(); + + CheckoutSettings actualResponse = client.createCheckoutSettings(parent, checkoutSettings); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCheckoutSettingsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateCheckoutSettingsRequest actualRequest = + ((CreateCheckoutSettingsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(checkoutSettings, actualRequest.getCheckoutSettings()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createCheckoutSettingsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCheckoutSettingsService.addException(exception); + + try { + String parent = "parent-995424086"; + CheckoutSettings checkoutSettings = CheckoutSettings.newBuilder().build(); + client.createCheckoutSettings(parent, checkoutSettings); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateCheckoutSettingsTest() throws Exception { + CheckoutSettings expectedResponse = + CheckoutSettings.newBuilder() + .setName(CheckoutSettingsName.of("[ACCOUNT]", "[PROGRAM]").toString()) + .setUriSettings(UriSettings.newBuilder().build()) + .addAllEligibleDestinations(new ArrayList()) + .setEffectiveUriSettings(UriSettings.newBuilder().build()) + .build(); + mockCheckoutSettingsService.addResponse(expectedResponse); + + CheckoutSettings checkoutSettings = CheckoutSettings.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + CheckoutSettings actualResponse = client.updateCheckoutSettings(checkoutSettings, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCheckoutSettingsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateCheckoutSettingsRequest actualRequest = + ((UpdateCheckoutSettingsRequest) actualRequests.get(0)); + + Assert.assertEquals(checkoutSettings, actualRequest.getCheckoutSettings()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateCheckoutSettingsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCheckoutSettingsService.addException(exception); + + try { + CheckoutSettings checkoutSettings = CheckoutSettings.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateCheckoutSettings(checkoutSettings, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteCheckoutSettingsTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockCheckoutSettingsService.addResponse(expectedResponse); + + CheckoutSettingsName name = CheckoutSettingsName.of("[ACCOUNT]", "[PROGRAM]"); + + client.deleteCheckoutSettings(name); + + List actualRequests = mockCheckoutSettingsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteCheckoutSettingsRequest actualRequest = + ((DeleteCheckoutSettingsRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteCheckoutSettingsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCheckoutSettingsService.addException(exception); + + try { + CheckoutSettingsName name = CheckoutSettingsName.of("[ACCOUNT]", "[PROGRAM]"); + client.deleteCheckoutSettings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteCheckoutSettingsTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockCheckoutSettingsService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteCheckoutSettings(name); + + List actualRequests = mockCheckoutSettingsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteCheckoutSettingsRequest actualRequest = + ((DeleteCheckoutSettingsRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteCheckoutSettingsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCheckoutSettingsService.addException(exception); + + try { + String name = "name3373707"; + client.deleteCheckoutSettings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/test/java/com/google/shopping/merchant/accounts/v1beta/MockCheckoutSettingsService.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/test/java/com/google/shopping/merchant/accounts/v1beta/MockCheckoutSettingsService.java new file mode 100644 index 000000000000..e590c3ea2818 --- /dev/null +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/test/java/com/google/shopping/merchant/accounts/v1beta/MockCheckoutSettingsService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.accounts.v1beta; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockCheckoutSettingsService implements MockGrpcService { + private final MockCheckoutSettingsServiceImpl serviceImpl; + + public MockCheckoutSettingsService() { + serviceImpl = new MockCheckoutSettingsServiceImpl(); + } + + @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-shopping-merchant-accounts/google-shopping-merchant-accounts/src/test/java/com/google/shopping/merchant/accounts/v1beta/MockCheckoutSettingsServiceImpl.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/test/java/com/google/shopping/merchant/accounts/v1beta/MockCheckoutSettingsServiceImpl.java new file mode 100644 index 000000000000..42f4b1a89a26 --- /dev/null +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/test/java/com/google/shopping/merchant/accounts/v1beta/MockCheckoutSettingsServiceImpl.java @@ -0,0 +1,148 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.accounts.v1beta; + +import com.google.api.core.BetaApi; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import com.google.shopping.merchant.accounts.v1beta.CheckoutSettingsServiceGrpc.CheckoutSettingsServiceImplBase; +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 MockCheckoutSettingsServiceImpl extends CheckoutSettingsServiceImplBase { + private List requests; + private Queue responses; + + public MockCheckoutSettingsServiceImpl() { + 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 getCheckoutSettings( + GetCheckoutSettingsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof CheckoutSettings) { + requests.add(request); + responseObserver.onNext(((CheckoutSettings) 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 GetCheckoutSettings, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + CheckoutSettings.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createCheckoutSettings( + CreateCheckoutSettingsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof CheckoutSettings) { + requests.add(request); + responseObserver.onNext(((CheckoutSettings) 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 CreateCheckoutSettings, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + CheckoutSettings.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateCheckoutSettings( + UpdateCheckoutSettingsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof CheckoutSettings) { + requests.add(request); + responseObserver.onNext(((CheckoutSettings) 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 UpdateCheckoutSettings, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + CheckoutSettings.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteCheckoutSettings( + DeleteCheckoutSettingsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteCheckoutSettings, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/pom.xml b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/pom.xml index 85bfbbf8bcea..1092af8ade11 100644 --- a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/pom.xml +++ b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-accounts-v1beta - 0.23.0 + 0.24.0 grpc-google-shopping-merchant-accounts-v1beta GRPC library for google-shopping-merchant-accounts com.google.shopping google-shopping-merchant-accounts-parent - 0.23.0 + 0.24.0 diff --git a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/CheckoutSettingsServiceGrpc.java b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/CheckoutSettingsServiceGrpc.java new file mode 100644 index 000000000000..3b582f75e3d9 --- /dev/null +++ b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/CheckoutSettingsServiceGrpc.java @@ -0,0 +1,876 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.accounts.v1beta; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
      + * Service for supporting [checkout
      + * settings](https://support.google.com/merchants/answer/13945960).
      + * 
      + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/shopping/merchant/accounts/v1beta/checkoutsettings.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class CheckoutSettingsServiceGrpc { + + private CheckoutSettingsServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.shopping.merchant.accounts.v1beta.CheckoutSettingsService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest, + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings> + getGetCheckoutSettingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCheckoutSettings", + requestType = com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest.class, + responseType = com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest, + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings> + getGetCheckoutSettingsMethod() { + io.grpc.MethodDescriptor< + com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest, + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings> + getGetCheckoutSettingsMethod; + if ((getGetCheckoutSettingsMethod = CheckoutSettingsServiceGrpc.getGetCheckoutSettingsMethod) + == null) { + synchronized (CheckoutSettingsServiceGrpc.class) { + if ((getGetCheckoutSettingsMethod = + CheckoutSettingsServiceGrpc.getGetCheckoutSettingsMethod) + == null) { + CheckoutSettingsServiceGrpc.getGetCheckoutSettingsMethod = + getGetCheckoutSettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetCheckoutSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.shopping.merchant.accounts.v1beta + .GetCheckoutSettingsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings + .getDefaultInstance())) + .setSchemaDescriptor( + new CheckoutSettingsServiceMethodDescriptorSupplier( + "GetCheckoutSettings")) + .build(); + } + } + } + return getGetCheckoutSettingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest, + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings> + getCreateCheckoutSettingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCheckoutSettings", + requestType = + com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest.class, + responseType = com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest, + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings> + getCreateCheckoutSettingsMethod() { + io.grpc.MethodDescriptor< + com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest, + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings> + getCreateCheckoutSettingsMethod; + if ((getCreateCheckoutSettingsMethod = + CheckoutSettingsServiceGrpc.getCreateCheckoutSettingsMethod) + == null) { + synchronized (CheckoutSettingsServiceGrpc.class) { + if ((getCreateCheckoutSettingsMethod = + CheckoutSettingsServiceGrpc.getCreateCheckoutSettingsMethod) + == null) { + CheckoutSettingsServiceGrpc.getCreateCheckoutSettingsMethod = + getCreateCheckoutSettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateCheckoutSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.shopping.merchant.accounts.v1beta + .CreateCheckoutSettingsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings + .getDefaultInstance())) + .setSchemaDescriptor( + new CheckoutSettingsServiceMethodDescriptorSupplier( + "CreateCheckoutSettings")) + .build(); + } + } + } + return getCreateCheckoutSettingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest, + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings> + getUpdateCheckoutSettingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCheckoutSettings", + requestType = + com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest.class, + responseType = com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest, + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings> + getUpdateCheckoutSettingsMethod() { + io.grpc.MethodDescriptor< + com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest, + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings> + getUpdateCheckoutSettingsMethod; + if ((getUpdateCheckoutSettingsMethod = + CheckoutSettingsServiceGrpc.getUpdateCheckoutSettingsMethod) + == null) { + synchronized (CheckoutSettingsServiceGrpc.class) { + if ((getUpdateCheckoutSettingsMethod = + CheckoutSettingsServiceGrpc.getUpdateCheckoutSettingsMethod) + == null) { + CheckoutSettingsServiceGrpc.getUpdateCheckoutSettingsMethod = + getUpdateCheckoutSettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateCheckoutSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.shopping.merchant.accounts.v1beta + .UpdateCheckoutSettingsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings + .getDefaultInstance())) + .setSchemaDescriptor( + new CheckoutSettingsServiceMethodDescriptorSupplier( + "UpdateCheckoutSettings")) + .build(); + } + } + } + return getUpdateCheckoutSettingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest, + com.google.protobuf.Empty> + getDeleteCheckoutSettingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteCheckoutSettings", + requestType = + com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest, + com.google.protobuf.Empty> + getDeleteCheckoutSettingsMethod() { + io.grpc.MethodDescriptor< + com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest, + com.google.protobuf.Empty> + getDeleteCheckoutSettingsMethod; + if ((getDeleteCheckoutSettingsMethod = + CheckoutSettingsServiceGrpc.getDeleteCheckoutSettingsMethod) + == null) { + synchronized (CheckoutSettingsServiceGrpc.class) { + if ((getDeleteCheckoutSettingsMethod = + CheckoutSettingsServiceGrpc.getDeleteCheckoutSettingsMethod) + == null) { + CheckoutSettingsServiceGrpc.getDeleteCheckoutSettingsMethod = + getDeleteCheckoutSettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteCheckoutSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.shopping.merchant.accounts.v1beta + .DeleteCheckoutSettingsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new CheckoutSettingsServiceMethodDescriptorSupplier( + "DeleteCheckoutSettings")) + .build(); + } + } + } + return getDeleteCheckoutSettingsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static CheckoutSettingsServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CheckoutSettingsServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CheckoutSettingsServiceStub(channel, callOptions); + } + }; + return CheckoutSettingsServiceStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static CheckoutSettingsServiceBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CheckoutSettingsServiceBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CheckoutSettingsServiceBlockingV2Stub(channel, callOptions); + } + }; + return CheckoutSettingsServiceBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static CheckoutSettingsServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CheckoutSettingsServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CheckoutSettingsServiceBlockingStub(channel, callOptions); + } + }; + return CheckoutSettingsServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static CheckoutSettingsServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CheckoutSettingsServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CheckoutSettingsServiceFutureStub(channel, callOptions); + } + }; + return CheckoutSettingsServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
      +   * Service for supporting [checkout
      +   * settings](https://support.google.com/merchants/answer/13945960).
      +   * 
      + */ + public interface AsyncService { + + /** + * + * + *
      +     * Gets `CheckoutSettings` for the given merchant. This includes
      +     * information about review state, enrollment state and URL settings.
      +     * 
      + */ + default void getCheckoutSettings( + com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetCheckoutSettingsMethod(), responseObserver); + } + + /** + * + * + *
      +     * Creates `CheckoutSettings` for the given merchant.
      +     * 
      + */ + default void createCheckoutSettings( + com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateCheckoutSettingsMethod(), responseObserver); + } + + /** + * + * + *
      +     * Updates `CheckoutSettings` for the given merchant.
      +     * 
      + */ + default void updateCheckoutSettings( + com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateCheckoutSettingsMethod(), responseObserver); + } + + /** + * + * + *
      +     * Deletes `CheckoutSettings` and unenrolls merchant from
      +     * `Checkout` program.
      +     * 
      + */ + default void deleteCheckoutSettings( + com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteCheckoutSettingsMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service CheckoutSettingsService. + * + *
      +   * Service for supporting [checkout
      +   * settings](https://support.google.com/merchants/answer/13945960).
      +   * 
      + */ + public abstract static class CheckoutSettingsServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return CheckoutSettingsServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service CheckoutSettingsService. + * + *
      +   * Service for supporting [checkout
      +   * settings](https://support.google.com/merchants/answer/13945960).
      +   * 
      + */ + public static final class CheckoutSettingsServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private CheckoutSettingsServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CheckoutSettingsServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CheckoutSettingsServiceStub(channel, callOptions); + } + + /** + * + * + *
      +     * Gets `CheckoutSettings` for the given merchant. This includes
      +     * information about review state, enrollment state and URL settings.
      +     * 
      + */ + public void getCheckoutSettings( + com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCheckoutSettingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Creates `CheckoutSettings` for the given merchant.
      +     * 
      + */ + public void createCheckoutSettings( + com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateCheckoutSettingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Updates `CheckoutSettings` for the given merchant.
      +     * 
      + */ + public void updateCheckoutSettings( + com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateCheckoutSettingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Deletes `CheckoutSettings` and unenrolls merchant from
      +     * `Checkout` program.
      +     * 
      + */ + public void deleteCheckoutSettings( + com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteCheckoutSettingsMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service CheckoutSettingsService. + * + *
      +   * Service for supporting [checkout
      +   * settings](https://support.google.com/merchants/answer/13945960).
      +   * 
      + */ + public static final class CheckoutSettingsServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private CheckoutSettingsServiceBlockingV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CheckoutSettingsServiceBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CheckoutSettingsServiceBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
      +     * Gets `CheckoutSettings` for the given merchant. This includes
      +     * information about review state, enrollment state and URL settings.
      +     * 
      + */ + public com.google.shopping.merchant.accounts.v1beta.CheckoutSettings getCheckoutSettings( + com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCheckoutSettingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Creates `CheckoutSettings` for the given merchant.
      +     * 
      + */ + public com.google.shopping.merchant.accounts.v1beta.CheckoutSettings createCheckoutSettings( + com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCheckoutSettingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Updates `CheckoutSettings` for the given merchant.
      +     * 
      + */ + public com.google.shopping.merchant.accounts.v1beta.CheckoutSettings updateCheckoutSettings( + com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateCheckoutSettingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Deletes `CheckoutSettings` and unenrolls merchant from
      +     * `Checkout` program.
      +     * 
      + */ + public com.google.protobuf.Empty deleteCheckoutSettings( + com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteCheckoutSettingsMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service CheckoutSettingsService. + * + *
      +   * Service for supporting [checkout
      +   * settings](https://support.google.com/merchants/answer/13945960).
      +   * 
      + */ + public static final class CheckoutSettingsServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private CheckoutSettingsServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CheckoutSettingsServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CheckoutSettingsServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
      +     * Gets `CheckoutSettings` for the given merchant. This includes
      +     * information about review state, enrollment state and URL settings.
      +     * 
      + */ + public com.google.shopping.merchant.accounts.v1beta.CheckoutSettings getCheckoutSettings( + com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCheckoutSettingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Creates `CheckoutSettings` for the given merchant.
      +     * 
      + */ + public com.google.shopping.merchant.accounts.v1beta.CheckoutSettings createCheckoutSettings( + com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCheckoutSettingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Updates `CheckoutSettings` for the given merchant.
      +     * 
      + */ + public com.google.shopping.merchant.accounts.v1beta.CheckoutSettings updateCheckoutSettings( + com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateCheckoutSettingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Deletes `CheckoutSettings` and unenrolls merchant from
      +     * `Checkout` program.
      +     * 
      + */ + public com.google.protobuf.Empty deleteCheckoutSettings( + com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteCheckoutSettingsMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service + * CheckoutSettingsService. + * + *
      +   * Service for supporting [checkout
      +   * settings](https://support.google.com/merchants/answer/13945960).
      +   * 
      + */ + public static final class CheckoutSettingsServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private CheckoutSettingsServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CheckoutSettingsServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CheckoutSettingsServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
      +     * Gets `CheckoutSettings` for the given merchant. This includes
      +     * information about review state, enrollment state and URL settings.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings> + getCheckoutSettings( + com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetCheckoutSettingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Creates `CheckoutSettings` for the given merchant.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings> + createCheckoutSettings( + com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateCheckoutSettingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Updates `CheckoutSettings` for the given merchant.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings> + updateCheckoutSettings( + com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateCheckoutSettingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Deletes `CheckoutSettings` and unenrolls merchant from
      +     * `Checkout` program.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + deleteCheckoutSettings( + com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteCheckoutSettingsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_CHECKOUT_SETTINGS = 0; + private static final int METHODID_CREATE_CHECKOUT_SETTINGS = 1; + private static final int METHODID_UPDATE_CHECKOUT_SETTINGS = 2; + private static final int METHODID_DELETE_CHECKOUT_SETTINGS = 3; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_GET_CHECKOUT_SETTINGS: + serviceImpl.getCheckoutSettings( + (com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings>) + responseObserver); + break; + case METHODID_CREATE_CHECKOUT_SETTINGS: + serviceImpl.createCheckoutSettings( + (com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings>) + responseObserver); + break; + case METHODID_UPDATE_CHECKOUT_SETTINGS: + serviceImpl.updateCheckoutSettings( + (com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings>) + responseObserver); + break; + case METHODID_DELETE_CHECKOUT_SETTINGS: + serviceImpl.deleteCheckoutSettings( + (com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest) 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( + getGetCheckoutSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest, + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings>( + service, METHODID_GET_CHECKOUT_SETTINGS))) + .addMethod( + getCreateCheckoutSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest, + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings>( + service, METHODID_CREATE_CHECKOUT_SETTINGS))) + .addMethod( + getUpdateCheckoutSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest, + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings>( + service, METHODID_UPDATE_CHECKOUT_SETTINGS))) + .addMethod( + getDeleteCheckoutSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_CHECKOUT_SETTINGS))) + .build(); + } + + private abstract static class CheckoutSettingsServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + CheckoutSettingsServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.shopping.merchant.accounts.v1beta.CheckoutsettingsProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("CheckoutSettingsService"); + } + } + + private static final class CheckoutSettingsServiceFileDescriptorSupplier + extends CheckoutSettingsServiceBaseDescriptorSupplier { + CheckoutSettingsServiceFileDescriptorSupplier() {} + } + + private static final class CheckoutSettingsServiceMethodDescriptorSupplier + extends CheckoutSettingsServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + CheckoutSettingsServiceMethodDescriptorSupplier(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 (CheckoutSettingsServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new CheckoutSettingsServiceFileDescriptorSupplier()) + .addMethod(getGetCheckoutSettingsMethod()) + .addMethod(getCreateCheckoutSettingsMethod()) + .addMethod(getUpdateCheckoutSettingsMethod()) + .addMethod(getDeleteCheckoutSettingsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-shopping-merchant-accounts/pom.xml b/java-shopping-merchant-accounts/pom.xml index ec4174c3184e..6ca311c4d9d6 100644 --- a/java-shopping-merchant-accounts/pom.xml +++ b/java-shopping-merchant-accounts/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-accounts-parent pom - 0.23.0 + 0.24.0 Google Merchant API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.shopping google-shopping-merchant-accounts - 0.23.0 + 0.24.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-accounts-v1beta - 0.23.0 + 0.24.0 com.google.shopping.api.grpc proto-google-shopping-merchant-accounts-v1beta - 0.23.0 + 0.24.0
      diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/pom.xml b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/pom.xml index 0998a771bc30..cdf00f1a9e28 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/pom.xml +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-accounts-v1beta - 0.23.0 + 0.24.0 proto-google-shopping-merchant-accounts-v1beta Proto library for google-shopping-merchant-accounts com.google.shopping google-shopping-merchant-accounts-parent - 0.23.0 + 0.24.0 diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/CheckoutSettings.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/CheckoutSettings.java new file mode 100644 index 000000000000..93ea0ecc000e --- /dev/null +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/CheckoutSettings.java @@ -0,0 +1,3151 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/accounts/v1beta/checkoutsettings.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.accounts.v1beta; + +/** + * + * + *
      + * [CheckoutSettings](https://support.google.com/merchants/answer/13945960) for
      + * a specific merchant.
      + * 
      + * + * Protobuf type {@code google.shopping.merchant.accounts.v1beta.CheckoutSettings} + */ +public final class CheckoutSettings extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.accounts.v1beta.CheckoutSettings) + CheckoutSettingsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CheckoutSettings.newBuilder() to construct. + private CheckoutSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CheckoutSettings() { + name_ = ""; + eligibleDestinations_ = java.util.Collections.emptyList(); + enrollmentState_ = 0; + reviewState_ = 0; + effectiveEnrollmentState_ = 0; + effectiveReviewState_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CheckoutSettings(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.accounts.v1beta.CheckoutsettingsProto + .internal_static_google_shopping_merchant_accounts_v1beta_CheckoutSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.accounts.v1beta.CheckoutsettingsProto + .internal_static_google_shopping_merchant_accounts_v1beta_CheckoutSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.class, + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.Builder.class); + } + + /** + * + * + *
      +   * Enum indicating the enrollment state of merchant in `Checkout`
      +   * program.
      +   * 
      + * + * Protobuf enum {@code + * google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState} + */ + public enum CheckoutEnrollmentState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +     * Default enrollment state when enrollment state is not specified.
      +     * 
      + * + * CHECKOUT_ENROLLMENT_STATE_UNSPECIFIED = 0; + */ + CHECKOUT_ENROLLMENT_STATE_UNSPECIFIED(0), + /** + * + * + *
      +     * Merchant has not enrolled into the program.
      +     * 
      + * + * INACTIVE = 1; + */ + INACTIVE(1), + /** + * + * + *
      +     * Merchant has enrolled into the program by providing either an
      +     * account level URL or checkout URLs as part of their feed.
      +     * 
      + * + * ENROLLED = 2; + */ + ENROLLED(2), + /** + * + * + *
      +     * Merchant has previously enrolled but opted out of the program.
      +     * 
      + * + * OPTED_OUT = 3; + */ + OPTED_OUT(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
      +     * Default enrollment state when enrollment state is not specified.
      +     * 
      + * + * CHECKOUT_ENROLLMENT_STATE_UNSPECIFIED = 0; + */ + public static final int CHECKOUT_ENROLLMENT_STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +     * Merchant has not enrolled into the program.
      +     * 
      + * + * INACTIVE = 1; + */ + public static final int INACTIVE_VALUE = 1; + + /** + * + * + *
      +     * Merchant has enrolled into the program by providing either an
      +     * account level URL or checkout URLs as part of their feed.
      +     * 
      + * + * ENROLLED = 2; + */ + public static final int ENROLLED_VALUE = 2; + + /** + * + * + *
      +     * Merchant has previously enrolled but opted out of the program.
      +     * 
      + * + * OPTED_OUT = 3; + */ + public static final int OPTED_OUT_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static CheckoutEnrollmentState 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 CheckoutEnrollmentState forNumber(int value) { + switch (value) { + case 0: + return CHECKOUT_ENROLLMENT_STATE_UNSPECIFIED; + case 1: + return INACTIVE; + case 2: + return ENROLLED; + case 3: + return OPTED_OUT; + 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 CheckoutEnrollmentState findValueByNumber(int number) { + return CheckoutEnrollmentState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final CheckoutEnrollmentState[] VALUES = values(); + + public static CheckoutEnrollmentState 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 CheckoutEnrollmentState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState) + } + + /** + * + * + *
      +   * Enum indicating the review state of merchant in `Checkout`
      +   * program.
      +   * 
      + * + * Protobuf enum {@code + * google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState} + */ + public enum CheckoutReviewState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +     * Default review state when review state is not specified.
      +     * 
      + * + * CHECKOUT_REVIEW_STATE_UNSPECIFIED = 0; + */ + CHECKOUT_REVIEW_STATE_UNSPECIFIED(0), + /** + * + * + *
      +     * Merchant provided URLs are being reviewed for data quality issues.
      +     * 
      + * + * IN_REVIEW = 1; + */ + IN_REVIEW(1), + /** + * + * + *
      +     * Merchant account has been approved. Indicates the data quality checks
      +     * have passed.
      +     * 
      + * + * APPROVED = 2; + */ + APPROVED(2), + /** + * + * + *
      +     * Merchant account has been disapproved due to data quality issues.
      +     * 
      + * + * DISAPPROVED = 3; + */ + DISAPPROVED(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
      +     * Default review state when review state is not specified.
      +     * 
      + * + * CHECKOUT_REVIEW_STATE_UNSPECIFIED = 0; + */ + public static final int CHECKOUT_REVIEW_STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +     * Merchant provided URLs are being reviewed for data quality issues.
      +     * 
      + * + * IN_REVIEW = 1; + */ + public static final int IN_REVIEW_VALUE = 1; + + /** + * + * + *
      +     * Merchant account has been approved. Indicates the data quality checks
      +     * have passed.
      +     * 
      + * + * APPROVED = 2; + */ + public static final int APPROVED_VALUE = 2; + + /** + * + * + *
      +     * Merchant account has been disapproved due to data quality issues.
      +     * 
      + * + * DISAPPROVED = 3; + */ + public static final int DISAPPROVED_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static CheckoutReviewState 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 CheckoutReviewState forNumber(int value) { + switch (value) { + case 0: + return CHECKOUT_REVIEW_STATE_UNSPECIFIED; + case 1: + return IN_REVIEW; + case 2: + return APPROVED; + case 3: + return DISAPPROVED; + 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 CheckoutReviewState findValueByNumber(int number) { + return CheckoutReviewState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final CheckoutReviewState[] VALUES = values(); + + public static CheckoutReviewState 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 CheckoutReviewState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState) + } + + 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 program configuration settings.
      +   * Format: `accounts/{account}/programs/{program}/checkoutSettings`
      +   * 
      + * + * 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 program configuration settings.
      +   * Format: `accounts/{account}/programs/{program}/checkoutSettings`
      +   * 
      + * + * 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 URI_SETTINGS_FIELD_NUMBER = 2; + private com.google.shopping.merchant.accounts.v1beta.UriSettings uriSettings_; + + /** + * + * + *
      +   * URI settings for cart or checkout URL.
      +   * 
      + * + * optional .google.shopping.merchant.accounts.v1beta.UriSettings uri_settings = 2; + * + * @return Whether the uriSettings field is set. + */ + @java.lang.Override + public boolean hasUriSettings() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * URI settings for cart or checkout URL.
      +   * 
      + * + * optional .google.shopping.merchant.accounts.v1beta.UriSettings uri_settings = 2; + * + * @return The uriSettings. + */ + @java.lang.Override + public com.google.shopping.merchant.accounts.v1beta.UriSettings getUriSettings() { + return uriSettings_ == null + ? com.google.shopping.merchant.accounts.v1beta.UriSettings.getDefaultInstance() + : uriSettings_; + } + + /** + * + * + *
      +   * URI settings for cart or checkout URL.
      +   * 
      + * + * optional .google.shopping.merchant.accounts.v1beta.UriSettings uri_settings = 2; + */ + @java.lang.Override + public com.google.shopping.merchant.accounts.v1beta.UriSettingsOrBuilder + getUriSettingsOrBuilder() { + return uriSettings_ == null + ? com.google.shopping.merchant.accounts.v1beta.UriSettings.getDefaultInstance() + : uriSettings_; + } + + public static final int ELIGIBLE_DESTINATIONS_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private java.util.List eligibleDestinations_; + + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.shopping.type.Destination.DestinationEnum> + eligibleDestinations_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.shopping.type.Destination.DestinationEnum>() { + public com.google.shopping.type.Destination.DestinationEnum convert( + java.lang.Integer from) { + com.google.shopping.type.Destination.DestinationEnum result = + com.google.shopping.type.Destination.DestinationEnum.forNumber(from); + return result == null + ? com.google.shopping.type.Destination.DestinationEnum.UNRECOGNIZED + : result; + } + }; + + /** + * + * + *
      +   * Optional. The destinations to which the checkout program applies, valid
      +   * destination values are `SHOPPING_ADS`, `FREE_LISTINGS`
      +   * 
      + * + * + * repeated .google.shopping.type.Destination.DestinationEnum eligible_destinations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the eligibleDestinations. + */ + @java.lang.Override + public java.util.List + getEligibleDestinationsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.shopping.type.Destination.DestinationEnum>( + eligibleDestinations_, eligibleDestinations_converter_); + } + + /** + * + * + *
      +   * Optional. The destinations to which the checkout program applies, valid
      +   * destination values are `SHOPPING_ADS`, `FREE_LISTINGS`
      +   * 
      + * + * + * repeated .google.shopping.type.Destination.DestinationEnum eligible_destinations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of eligibleDestinations. + */ + @java.lang.Override + public int getEligibleDestinationsCount() { + return eligibleDestinations_.size(); + } + + /** + * + * + *
      +   * Optional. The destinations to which the checkout program applies, valid
      +   * destination values are `SHOPPING_ADS`, `FREE_LISTINGS`
      +   * 
      + * + * + * repeated .google.shopping.type.Destination.DestinationEnum eligible_destinations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The eligibleDestinations at the given index. + */ + @java.lang.Override + public com.google.shopping.type.Destination.DestinationEnum getEligibleDestinations(int index) { + return eligibleDestinations_converter_.convert(eligibleDestinations_.get(index)); + } + + /** + * + * + *
      +   * Optional. The destinations to which the checkout program applies, valid
      +   * destination values are `SHOPPING_ADS`, `FREE_LISTINGS`
      +   * 
      + * + * + * repeated .google.shopping.type.Destination.DestinationEnum eligible_destinations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for eligibleDestinations. + */ + @java.lang.Override + public java.util.List getEligibleDestinationsValueList() { + return eligibleDestinations_; + } + + /** + * + * + *
      +   * Optional. The destinations to which the checkout program applies, valid
      +   * destination values are `SHOPPING_ADS`, `FREE_LISTINGS`
      +   * 
      + * + * + * repeated .google.shopping.type.Destination.DestinationEnum eligible_destinations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of eligibleDestinations at the given index. + */ + @java.lang.Override + public int getEligibleDestinationsValue(int index) { + return eligibleDestinations_.get(index); + } + + private int eligibleDestinationsMemoizedSerializedSize; + + public static final int ENROLLMENT_STATE_FIELD_NUMBER = 3; + private int enrollmentState_ = 0; + + /** + * + * + *
      +   * Output only. Reflects the merchant enrollment state in `Checkout` program.
      +   * 
      + * + * + * optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState enrollment_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the enrollmentState field is set. + */ + @java.lang.Override + public boolean hasEnrollmentState() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * Output only. Reflects the merchant enrollment state in `Checkout` program.
      +   * 
      + * + * + * optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState enrollment_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for enrollmentState. + */ + @java.lang.Override + public int getEnrollmentStateValue() { + return enrollmentState_; + } + + /** + * + * + *
      +   * Output only. Reflects the merchant enrollment state in `Checkout` program.
      +   * 
      + * + * + * optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState enrollment_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enrollmentState. + */ + @java.lang.Override + public com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState + getEnrollmentState() { + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState result = + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState + .forNumber(enrollmentState_); + return result == null + ? com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState + .UNRECOGNIZED + : result; + } + + public static final int REVIEW_STATE_FIELD_NUMBER = 4; + private int reviewState_ = 0; + + /** + * + * + *
      +   * Output only. Reflects the merchant review state in `Checkout` program.
      +   * This is set based on the data quality reviews of the URL provided by
      +   * the merchant.
      +   * A merchant with enrollment state
      +   * as `ENROLLED` can be in the following review states: `IN_REVIEW`,
      +   * `APPROVED` or `DISAPPROVED`. A merchant must be in an `enrollment_state` of
      +   * `ENROLLED` before a review can begin for the merchant.For more details,
      +   * check the help center doc.
      +   * 
      + * + * + * optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState review_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the reviewState field is set. + */ + @java.lang.Override + public boolean hasReviewState() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +   * Output only. Reflects the merchant review state in `Checkout` program.
      +   * This is set based on the data quality reviews of the URL provided by
      +   * the merchant.
      +   * A merchant with enrollment state
      +   * as `ENROLLED` can be in the following review states: `IN_REVIEW`,
      +   * `APPROVED` or `DISAPPROVED`. A merchant must be in an `enrollment_state` of
      +   * `ENROLLED` before a review can begin for the merchant.For more details,
      +   * check the help center doc.
      +   * 
      + * + * + * optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState review_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for reviewState. + */ + @java.lang.Override + public int getReviewStateValue() { + return reviewState_; + } + + /** + * + * + *
      +   * Output only. Reflects the merchant review state in `Checkout` program.
      +   * This is set based on the data quality reviews of the URL provided by
      +   * the merchant.
      +   * A merchant with enrollment state
      +   * as `ENROLLED` can be in the following review states: `IN_REVIEW`,
      +   * `APPROVED` or `DISAPPROVED`. A merchant must be in an `enrollment_state` of
      +   * `ENROLLED` before a review can begin for the merchant.For more details,
      +   * check the help center doc.
      +   * 
      + * + * + * optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState review_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The reviewState. + */ + @java.lang.Override + public com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState + getReviewState() { + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState result = + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState.forNumber( + reviewState_); + return result == null + ? com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState + .UNRECOGNIZED + : result; + } + + public static final int EFFECTIVE_URI_SETTINGS_FIELD_NUMBER = 5; + private com.google.shopping.merchant.accounts.v1beta.UriSettings effectiveUriSettings_; + + /** + * + * + *
      +   * Output only. The effective value of `uri_settings` for a given merchant. If
      +   * account level settings are present then this value will be a copy of url
      +   * settings. Otherwise, it will have the value of the parent account (for only
      +   * marketplace sellers).
      +   * 
      + * + * + * .google.shopping.merchant.accounts.v1beta.UriSettings effective_uri_settings = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the effectiveUriSettings field is set. + */ + @java.lang.Override + public boolean hasEffectiveUriSettings() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +   * Output only. The effective value of `uri_settings` for a given merchant. If
      +   * account level settings are present then this value will be a copy of url
      +   * settings. Otherwise, it will have the value of the parent account (for only
      +   * marketplace sellers).
      +   * 
      + * + * + * .google.shopping.merchant.accounts.v1beta.UriSettings effective_uri_settings = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The effectiveUriSettings. + */ + @java.lang.Override + public com.google.shopping.merchant.accounts.v1beta.UriSettings getEffectiveUriSettings() { + return effectiveUriSettings_ == null + ? com.google.shopping.merchant.accounts.v1beta.UriSettings.getDefaultInstance() + : effectiveUriSettings_; + } + + /** + * + * + *
      +   * Output only. The effective value of `uri_settings` for a given merchant. If
      +   * account level settings are present then this value will be a copy of url
      +   * settings. Otherwise, it will have the value of the parent account (for only
      +   * marketplace sellers).
      +   * 
      + * + * + * .google.shopping.merchant.accounts.v1beta.UriSettings effective_uri_settings = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.shopping.merchant.accounts.v1beta.UriSettingsOrBuilder + getEffectiveUriSettingsOrBuilder() { + return effectiveUriSettings_ == null + ? com.google.shopping.merchant.accounts.v1beta.UriSettings.getDefaultInstance() + : effectiveUriSettings_; + } + + public static final int EFFECTIVE_ENROLLMENT_STATE_FIELD_NUMBER = 6; + private int effectiveEnrollmentState_ = 0; + + /** + * + * + *
      +   * Output only. The effective value of enrollment_state for a given merchant
      +   * ID. If account level settings are present then this value will be a copy of
      +   * the account level settings. Otherwise, it will have the value of the parent
      +   * account (for only marketplace sellers).
      +   * 
      + * + * + * optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState effective_enrollment_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the effectiveEnrollmentState field is set. + */ + @java.lang.Override + public boolean hasEffectiveEnrollmentState() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
      +   * Output only. The effective value of enrollment_state for a given merchant
      +   * ID. If account level settings are present then this value will be a copy of
      +   * the account level settings. Otherwise, it will have the value of the parent
      +   * account (for only marketplace sellers).
      +   * 
      + * + * + * optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState effective_enrollment_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for effectiveEnrollmentState. + */ + @java.lang.Override + public int getEffectiveEnrollmentStateValue() { + return effectiveEnrollmentState_; + } + + /** + * + * + *
      +   * Output only. The effective value of enrollment_state for a given merchant
      +   * ID. If account level settings are present then this value will be a copy of
      +   * the account level settings. Otherwise, it will have the value of the parent
      +   * account (for only marketplace sellers).
      +   * 
      + * + * + * optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState effective_enrollment_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The effectiveEnrollmentState. + */ + @java.lang.Override + public com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState + getEffectiveEnrollmentState() { + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState result = + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState + .forNumber(effectiveEnrollmentState_); + return result == null + ? com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState + .UNRECOGNIZED + : result; + } + + public static final int EFFECTIVE_REVIEW_STATE_FIELD_NUMBER = 7; + private int effectiveReviewState_ = 0; + + /** + * + * + *
      +   * Output only. The effective value of `review_state` for a given merchant ID.
      +   * If account level settings are present then this value will be a copy of the
      +   * account level settings. Otherwise, it will have the value of the parent
      +   * account (for only marketplace sellers).
      +   * 
      + * + * + * optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState effective_review_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the effectiveReviewState field is set. + */ + @java.lang.Override + public boolean hasEffectiveReviewState() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
      +   * Output only. The effective value of `review_state` for a given merchant ID.
      +   * If account level settings are present then this value will be a copy of the
      +   * account level settings. Otherwise, it will have the value of the parent
      +   * account (for only marketplace sellers).
      +   * 
      + * + * + * optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState effective_review_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for effectiveReviewState. + */ + @java.lang.Override + public int getEffectiveReviewStateValue() { + return effectiveReviewState_; + } + + /** + * + * + *
      +   * Output only. The effective value of `review_state` for a given merchant ID.
      +   * If account level settings are present then this value will be a copy of the
      +   * account level settings. Otherwise, it will have the value of the parent
      +   * account (for only marketplace sellers).
      +   * 
      + * + * + * optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState effective_review_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The effectiveReviewState. + */ + @java.lang.Override + public com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState + getEffectiveReviewState() { + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState result = + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState.forNumber( + effectiveReviewState_); + return result == null + ? com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState + .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 { + getSerializedSize(); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getUriSettings()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(3, enrollmentState_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeEnum(4, reviewState_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(5, getEffectiveUriSettings()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeEnum(6, effectiveEnrollmentState_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeEnum(7, effectiveReviewState_); + } + if (getEligibleDestinationsList().size() > 0) { + output.writeUInt32NoTag(66); + output.writeUInt32NoTag(eligibleDestinationsMemoizedSerializedSize); + } + for (int i = 0; i < eligibleDestinations_.size(); i++) { + output.writeEnumNoTag(eligibleDestinations_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUriSettings()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, enrollmentState_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, reviewState_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEffectiveUriSettings()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, effectiveEnrollmentState_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, effectiveReviewState_); + } + { + int dataSize = 0; + for (int i = 0; i < eligibleDestinations_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag( + eligibleDestinations_.get(i)); + } + size += dataSize; + if (!getEligibleDestinationsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + eligibleDestinationsMemoizedSerializedSize = dataSize; + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.shopping.merchant.accounts.v1beta.CheckoutSettings)) { + return super.equals(obj); + } + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings other = + (com.google.shopping.merchant.accounts.v1beta.CheckoutSettings) obj; + + if (!getName().equals(other.getName())) return false; + if (hasUriSettings() != other.hasUriSettings()) return false; + if (hasUriSettings()) { + if (!getUriSettings().equals(other.getUriSettings())) return false; + } + if (!eligibleDestinations_.equals(other.eligibleDestinations_)) return false; + if (hasEnrollmentState() != other.hasEnrollmentState()) return false; + if (hasEnrollmentState()) { + if (enrollmentState_ != other.enrollmentState_) return false; + } + if (hasReviewState() != other.hasReviewState()) return false; + if (hasReviewState()) { + if (reviewState_ != other.reviewState_) return false; + } + if (hasEffectiveUriSettings() != other.hasEffectiveUriSettings()) return false; + if (hasEffectiveUriSettings()) { + if (!getEffectiveUriSettings().equals(other.getEffectiveUriSettings())) return false; + } + if (hasEffectiveEnrollmentState() != other.hasEffectiveEnrollmentState()) return false; + if (hasEffectiveEnrollmentState()) { + if (effectiveEnrollmentState_ != other.effectiveEnrollmentState_) return false; + } + if (hasEffectiveReviewState() != other.hasEffectiveReviewState()) return false; + if (hasEffectiveReviewState()) { + if (effectiveReviewState_ != other.effectiveReviewState_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasUriSettings()) { + hash = (37 * hash) + URI_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getUriSettings().hashCode(); + } + if (getEligibleDestinationsCount() > 0) { + hash = (37 * hash) + ELIGIBLE_DESTINATIONS_FIELD_NUMBER; + hash = (53 * hash) + eligibleDestinations_.hashCode(); + } + if (hasEnrollmentState()) { + hash = (37 * hash) + ENROLLMENT_STATE_FIELD_NUMBER; + hash = (53 * hash) + enrollmentState_; + } + if (hasReviewState()) { + hash = (37 * hash) + REVIEW_STATE_FIELD_NUMBER; + hash = (53 * hash) + reviewState_; + } + if (hasEffectiveUriSettings()) { + hash = (37 * hash) + EFFECTIVE_URI_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getEffectiveUriSettings().hashCode(); + } + if (hasEffectiveEnrollmentState()) { + hash = (37 * hash) + EFFECTIVE_ENROLLMENT_STATE_FIELD_NUMBER; + hash = (53 * hash) + effectiveEnrollmentState_; + } + if (hasEffectiveReviewState()) { + hash = (37 * hash) + EFFECTIVE_REVIEW_STATE_FIELD_NUMBER; + hash = (53 * hash) + effectiveReviewState_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.shopping.merchant.accounts.v1beta.CheckoutSettings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.accounts.v1beta.CheckoutSettings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1beta.CheckoutSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.accounts.v1beta.CheckoutSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1beta.CheckoutSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.accounts.v1beta.CheckoutSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1beta.CheckoutSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.accounts.v1beta.CheckoutSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1beta.CheckoutSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.accounts.v1beta.CheckoutSettings parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1beta.CheckoutSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.accounts.v1beta.CheckoutSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * [CheckoutSettings](https://support.google.com/merchants/answer/13945960) for
      +   * a specific merchant.
      +   * 
      + * + * Protobuf type {@code google.shopping.merchant.accounts.v1beta.CheckoutSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.accounts.v1beta.CheckoutSettings) + com.google.shopping.merchant.accounts.v1beta.CheckoutSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.accounts.v1beta.CheckoutsettingsProto + .internal_static_google_shopping_merchant_accounts_v1beta_CheckoutSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.accounts.v1beta.CheckoutsettingsProto + .internal_static_google_shopping_merchant_accounts_v1beta_CheckoutSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.class, + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.Builder.class); + } + + // Construct using com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getUriSettingsFieldBuilder(); + getEffectiveUriSettingsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + uriSettings_ = null; + if (uriSettingsBuilder_ != null) { + uriSettingsBuilder_.dispose(); + uriSettingsBuilder_ = null; + } + eligibleDestinations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + enrollmentState_ = 0; + reviewState_ = 0; + effectiveUriSettings_ = null; + if (effectiveUriSettingsBuilder_ != null) { + effectiveUriSettingsBuilder_.dispose(); + effectiveUriSettingsBuilder_ = null; + } + effectiveEnrollmentState_ = 0; + effectiveReviewState_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.accounts.v1beta.CheckoutsettingsProto + .internal_static_google_shopping_merchant_accounts_v1beta_CheckoutSettings_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.accounts.v1beta.CheckoutSettings + getDefaultInstanceForType() { + return com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.accounts.v1beta.CheckoutSettings build() { + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.accounts.v1beta.CheckoutSettings buildPartial() { + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings result = + new com.google.shopping.merchant.accounts.v1beta.CheckoutSettings(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings result) { + if (((bitField0_ & 0x00000004) != 0)) { + eligibleDestinations_ = java.util.Collections.unmodifiableList(eligibleDestinations_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.eligibleDestinations_ = eligibleDestinations_; + } + + private void buildPartial0( + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.uriSettings_ = + uriSettingsBuilder_ == null ? uriSettings_ : uriSettingsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.enrollmentState_ = enrollmentState_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.reviewState_ = reviewState_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.effectiveUriSettings_ = + effectiveUriSettingsBuilder_ == null + ? effectiveUriSettings_ + : effectiveUriSettingsBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.effectiveEnrollmentState_ = effectiveEnrollmentState_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.effectiveReviewState_ = effectiveReviewState_; + to_bitField0_ |= 0x00000020; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.shopping.merchant.accounts.v1beta.CheckoutSettings) { + return mergeFrom((com.google.shopping.merchant.accounts.v1beta.CheckoutSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.shopping.merchant.accounts.v1beta.CheckoutSettings other) { + if (other + == com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasUriSettings()) { + mergeUriSettings(other.getUriSettings()); + } + if (!other.eligibleDestinations_.isEmpty()) { + if (eligibleDestinations_.isEmpty()) { + eligibleDestinations_ = other.eligibleDestinations_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureEligibleDestinationsIsMutable(); + eligibleDestinations_.addAll(other.eligibleDestinations_); + } + onChanged(); + } + if (other.hasEnrollmentState()) { + setEnrollmentState(other.getEnrollmentState()); + } + if (other.hasReviewState()) { + setReviewState(other.getReviewState()); + } + if (other.hasEffectiveUriSettings()) { + mergeEffectiveUriSettings(other.getEffectiveUriSettings()); + } + if (other.hasEffectiveEnrollmentState()) { + setEffectiveEnrollmentState(other.getEffectiveEnrollmentState()); + } + if (other.hasEffectiveReviewState()) { + setEffectiveReviewState(other.getEffectiveReviewState()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUriSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + enrollmentState_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 24 + case 32: + { + reviewState_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 32 + case 42: + { + input.readMessage( + getEffectiveUriSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 42 + case 48: + { + effectiveEnrollmentState_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 48 + case 56: + { + effectiveReviewState_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 56 + case 64: + { + int tmpRaw = input.readEnum(); + ensureEligibleDestinationsIsMutable(); + eligibleDestinations_.add(tmpRaw); + break; + } // case 64 + case 66: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureEligibleDestinationsIsMutable(); + eligibleDestinations_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Identifier. The resource name of the program configuration settings.
      +     * Format: `accounts/{account}/programs/{program}/checkoutSettings`
      +     * 
      + * + * 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 program configuration settings.
      +     * Format: `accounts/{account}/programs/{program}/checkoutSettings`
      +     * 
      + * + * 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 program configuration settings.
      +     * Format: `accounts/{account}/programs/{program}/checkoutSettings`
      +     * 
      + * + * 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 program configuration settings.
      +     * Format: `accounts/{account}/programs/{program}/checkoutSettings`
      +     * 
      + * + * 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 program configuration settings.
      +     * Format: `accounts/{account}/programs/{program}/checkoutSettings`
      +     * 
      + * + * 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 com.google.shopping.merchant.accounts.v1beta.UriSettings uriSettings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.accounts.v1beta.UriSettings, + com.google.shopping.merchant.accounts.v1beta.UriSettings.Builder, + com.google.shopping.merchant.accounts.v1beta.UriSettingsOrBuilder> + uriSettingsBuilder_; + + /** + * + * + *
      +     * URI settings for cart or checkout URL.
      +     * 
      + * + * optional .google.shopping.merchant.accounts.v1beta.UriSettings uri_settings = 2; + * + * @return Whether the uriSettings field is set. + */ + public boolean hasUriSettings() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +     * URI settings for cart or checkout URL.
      +     * 
      + * + * optional .google.shopping.merchant.accounts.v1beta.UriSettings uri_settings = 2; + * + * @return The uriSettings. + */ + public com.google.shopping.merchant.accounts.v1beta.UriSettings getUriSettings() { + if (uriSettingsBuilder_ == null) { + return uriSettings_ == null + ? com.google.shopping.merchant.accounts.v1beta.UriSettings.getDefaultInstance() + : uriSettings_; + } else { + return uriSettingsBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * URI settings for cart or checkout URL.
      +     * 
      + * + * optional .google.shopping.merchant.accounts.v1beta.UriSettings uri_settings = 2; + */ + public Builder setUriSettings(com.google.shopping.merchant.accounts.v1beta.UriSettings value) { + if (uriSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + uriSettings_ = value; + } else { + uriSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * URI settings for cart or checkout URL.
      +     * 
      + * + * optional .google.shopping.merchant.accounts.v1beta.UriSettings uri_settings = 2; + */ + public Builder setUriSettings( + com.google.shopping.merchant.accounts.v1beta.UriSettings.Builder builderForValue) { + if (uriSettingsBuilder_ == null) { + uriSettings_ = builderForValue.build(); + } else { + uriSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * URI settings for cart or checkout URL.
      +     * 
      + * + * optional .google.shopping.merchant.accounts.v1beta.UriSettings uri_settings = 2; + */ + public Builder mergeUriSettings( + com.google.shopping.merchant.accounts.v1beta.UriSettings value) { + if (uriSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && uriSettings_ != null + && uriSettings_ + != com.google.shopping.merchant.accounts.v1beta.UriSettings.getDefaultInstance()) { + getUriSettingsBuilder().mergeFrom(value); + } else { + uriSettings_ = value; + } + } else { + uriSettingsBuilder_.mergeFrom(value); + } + if (uriSettings_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * URI settings for cart or checkout URL.
      +     * 
      + * + * optional .google.shopping.merchant.accounts.v1beta.UriSettings uri_settings = 2; + */ + public Builder clearUriSettings() { + bitField0_ = (bitField0_ & ~0x00000002); + uriSettings_ = null; + if (uriSettingsBuilder_ != null) { + uriSettingsBuilder_.dispose(); + uriSettingsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * URI settings for cart or checkout URL.
      +     * 
      + * + * optional .google.shopping.merchant.accounts.v1beta.UriSettings uri_settings = 2; + */ + public com.google.shopping.merchant.accounts.v1beta.UriSettings.Builder + getUriSettingsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUriSettingsFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * URI settings for cart or checkout URL.
      +     * 
      + * + * optional .google.shopping.merchant.accounts.v1beta.UriSettings uri_settings = 2; + */ + public com.google.shopping.merchant.accounts.v1beta.UriSettingsOrBuilder + getUriSettingsOrBuilder() { + if (uriSettingsBuilder_ != null) { + return uriSettingsBuilder_.getMessageOrBuilder(); + } else { + return uriSettings_ == null + ? com.google.shopping.merchant.accounts.v1beta.UriSettings.getDefaultInstance() + : uriSettings_; + } + } + + /** + * + * + *
      +     * URI settings for cart or checkout URL.
      +     * 
      + * + * optional .google.shopping.merchant.accounts.v1beta.UriSettings uri_settings = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.accounts.v1beta.UriSettings, + com.google.shopping.merchant.accounts.v1beta.UriSettings.Builder, + com.google.shopping.merchant.accounts.v1beta.UriSettingsOrBuilder> + getUriSettingsFieldBuilder() { + if (uriSettingsBuilder_ == null) { + uriSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.accounts.v1beta.UriSettings, + com.google.shopping.merchant.accounts.v1beta.UriSettings.Builder, + com.google.shopping.merchant.accounts.v1beta.UriSettingsOrBuilder>( + getUriSettings(), getParentForChildren(), isClean()); + uriSettings_ = null; + } + return uriSettingsBuilder_; + } + + private java.util.List eligibleDestinations_ = + java.util.Collections.emptyList(); + + private void ensureEligibleDestinationsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + eligibleDestinations_ = new java.util.ArrayList(eligibleDestinations_); + bitField0_ |= 0x00000004; + } + } + + /** + * + * + *
      +     * Optional. The destinations to which the checkout program applies, valid
      +     * destination values are `SHOPPING_ADS`, `FREE_LISTINGS`
      +     * 
      + * + * + * repeated .google.shopping.type.Destination.DestinationEnum eligible_destinations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the eligibleDestinations. + */ + public java.util.List + getEligibleDestinationsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.shopping.type.Destination.DestinationEnum>( + eligibleDestinations_, eligibleDestinations_converter_); + } + + /** + * + * + *
      +     * Optional. The destinations to which the checkout program applies, valid
      +     * destination values are `SHOPPING_ADS`, `FREE_LISTINGS`
      +     * 
      + * + * + * repeated .google.shopping.type.Destination.DestinationEnum eligible_destinations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of eligibleDestinations. + */ + public int getEligibleDestinationsCount() { + return eligibleDestinations_.size(); + } + + /** + * + * + *
      +     * Optional. The destinations to which the checkout program applies, valid
      +     * destination values are `SHOPPING_ADS`, `FREE_LISTINGS`
      +     * 
      + * + * + * repeated .google.shopping.type.Destination.DestinationEnum eligible_destinations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The eligibleDestinations at the given index. + */ + public com.google.shopping.type.Destination.DestinationEnum getEligibleDestinations(int index) { + return eligibleDestinations_converter_.convert(eligibleDestinations_.get(index)); + } + + /** + * + * + *
      +     * Optional. The destinations to which the checkout program applies, valid
      +     * destination values are `SHOPPING_ADS`, `FREE_LISTINGS`
      +     * 
      + * + * + * repeated .google.shopping.type.Destination.DestinationEnum eligible_destinations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The eligibleDestinations to set. + * @return This builder for chaining. + */ + public Builder setEligibleDestinations( + int index, com.google.shopping.type.Destination.DestinationEnum value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEligibleDestinationsIsMutable(); + eligibleDestinations_.set(index, value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The destinations to which the checkout program applies, valid
      +     * destination values are `SHOPPING_ADS`, `FREE_LISTINGS`
      +     * 
      + * + * + * repeated .google.shopping.type.Destination.DestinationEnum eligible_destinations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The eligibleDestinations to add. + * @return This builder for chaining. + */ + public Builder addEligibleDestinations( + com.google.shopping.type.Destination.DestinationEnum value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEligibleDestinationsIsMutable(); + eligibleDestinations_.add(value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The destinations to which the checkout program applies, valid
      +     * destination values are `SHOPPING_ADS`, `FREE_LISTINGS`
      +     * 
      + * + * + * repeated .google.shopping.type.Destination.DestinationEnum eligible_destinations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The eligibleDestinations to add. + * @return This builder for chaining. + */ + public Builder addAllEligibleDestinations( + java.lang.Iterable values) { + ensureEligibleDestinationsIsMutable(); + for (com.google.shopping.type.Destination.DestinationEnum value : values) { + eligibleDestinations_.add(value.getNumber()); + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The destinations to which the checkout program applies, valid
      +     * destination values are `SHOPPING_ADS`, `FREE_LISTINGS`
      +     * 
      + * + * + * repeated .google.shopping.type.Destination.DestinationEnum eligible_destinations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearEligibleDestinations() { + eligibleDestinations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The destinations to which the checkout program applies, valid
      +     * destination values are `SHOPPING_ADS`, `FREE_LISTINGS`
      +     * 
      + * + * + * repeated .google.shopping.type.Destination.DestinationEnum eligible_destinations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for eligibleDestinations. + */ + public java.util.List getEligibleDestinationsValueList() { + return java.util.Collections.unmodifiableList(eligibleDestinations_); + } + + /** + * + * + *
      +     * Optional. The destinations to which the checkout program applies, valid
      +     * destination values are `SHOPPING_ADS`, `FREE_LISTINGS`
      +     * 
      + * + * + * repeated .google.shopping.type.Destination.DestinationEnum eligible_destinations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of eligibleDestinations at the given index. + */ + public int getEligibleDestinationsValue(int index) { + return eligibleDestinations_.get(index); + } + + /** + * + * + *
      +     * Optional. The destinations to which the checkout program applies, valid
      +     * destination values are `SHOPPING_ADS`, `FREE_LISTINGS`
      +     * 
      + * + * + * repeated .google.shopping.type.Destination.DestinationEnum eligible_destinations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for eligibleDestinations to set. + * @return This builder for chaining. + */ + public Builder setEligibleDestinationsValue(int index, int value) { + ensureEligibleDestinationsIsMutable(); + eligibleDestinations_.set(index, value); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The destinations to which the checkout program applies, valid
      +     * destination values are `SHOPPING_ADS`, `FREE_LISTINGS`
      +     * 
      + * + * + * repeated .google.shopping.type.Destination.DestinationEnum eligible_destinations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for eligibleDestinations to add. + * @return This builder for chaining. + */ + public Builder addEligibleDestinationsValue(int value) { + ensureEligibleDestinationsIsMutable(); + eligibleDestinations_.add(value); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The destinations to which the checkout program applies, valid
      +     * destination values are `SHOPPING_ADS`, `FREE_LISTINGS`
      +     * 
      + * + * + * repeated .google.shopping.type.Destination.DestinationEnum eligible_destinations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The enum numeric values on the wire for eligibleDestinations to add. + * @return This builder for chaining. + */ + public Builder addAllEligibleDestinationsValue(java.lang.Iterable values) { + ensureEligibleDestinationsIsMutable(); + for (int value : values) { + eligibleDestinations_.add(value); + } + onChanged(); + return this; + } + + private int enrollmentState_ = 0; + + /** + * + * + *
      +     * Output only. Reflects the merchant enrollment state in `Checkout` program.
      +     * 
      + * + * + * optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState enrollment_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the enrollmentState field is set. + */ + @java.lang.Override + public boolean hasEnrollmentState() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +     * Output only. Reflects the merchant enrollment state in `Checkout` program.
      +     * 
      + * + * + * optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState enrollment_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for enrollmentState. + */ + @java.lang.Override + public int getEnrollmentStateValue() { + return enrollmentState_; + } + + /** + * + * + *
      +     * Output only. Reflects the merchant enrollment state in `Checkout` program.
      +     * 
      + * + * + * optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState enrollment_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for enrollmentState to set. + * @return This builder for chaining. + */ + public Builder setEnrollmentStateValue(int value) { + enrollmentState_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Reflects the merchant enrollment state in `Checkout` program.
      +     * 
      + * + * + * optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState enrollment_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enrollmentState. + */ + @java.lang.Override + public com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState + getEnrollmentState() { + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState result = + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState + .forNumber(enrollmentState_); + return result == null + ? com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState + .UNRECOGNIZED + : result; + } + + /** + * + * + *
      +     * Output only. Reflects the merchant enrollment state in `Checkout` program.
      +     * 
      + * + * + * optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState enrollment_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enrollmentState to set. + * @return This builder for chaining. + */ + public Builder setEnrollmentState( + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + enrollmentState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Reflects the merchant enrollment state in `Checkout` program.
      +     * 
      + * + * + * optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState enrollment_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearEnrollmentState() { + bitField0_ = (bitField0_ & ~0x00000008); + enrollmentState_ = 0; + onChanged(); + return this; + } + + private int reviewState_ = 0; + + /** + * + * + *
      +     * Output only. Reflects the merchant review state in `Checkout` program.
      +     * This is set based on the data quality reviews of the URL provided by
      +     * the merchant.
      +     * A merchant with enrollment state
      +     * as `ENROLLED` can be in the following review states: `IN_REVIEW`,
      +     * `APPROVED` or `DISAPPROVED`. A merchant must be in an `enrollment_state` of
      +     * `ENROLLED` before a review can begin for the merchant.For more details,
      +     * check the help center doc.
      +     * 
      + * + * + * optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState review_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the reviewState field is set. + */ + @java.lang.Override + public boolean hasReviewState() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
      +     * Output only. Reflects the merchant review state in `Checkout` program.
      +     * This is set based on the data quality reviews of the URL provided by
      +     * the merchant.
      +     * A merchant with enrollment state
      +     * as `ENROLLED` can be in the following review states: `IN_REVIEW`,
      +     * `APPROVED` or `DISAPPROVED`. A merchant must be in an `enrollment_state` of
      +     * `ENROLLED` before a review can begin for the merchant.For more details,
      +     * check the help center doc.
      +     * 
      + * + * + * optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState review_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for reviewState. + */ + @java.lang.Override + public int getReviewStateValue() { + return reviewState_; + } + + /** + * + * + *
      +     * Output only. Reflects the merchant review state in `Checkout` program.
      +     * This is set based on the data quality reviews of the URL provided by
      +     * the merchant.
      +     * A merchant with enrollment state
      +     * as `ENROLLED` can be in the following review states: `IN_REVIEW`,
      +     * `APPROVED` or `DISAPPROVED`. A merchant must be in an `enrollment_state` of
      +     * `ENROLLED` before a review can begin for the merchant.For more details,
      +     * check the help center doc.
      +     * 
      + * + * + * optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState review_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for reviewState to set. + * @return This builder for chaining. + */ + public Builder setReviewStateValue(int value) { + reviewState_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Reflects the merchant review state in `Checkout` program.
      +     * This is set based on the data quality reviews of the URL provided by
      +     * the merchant.
      +     * A merchant with enrollment state
      +     * as `ENROLLED` can be in the following review states: `IN_REVIEW`,
      +     * `APPROVED` or `DISAPPROVED`. A merchant must be in an `enrollment_state` of
      +     * `ENROLLED` before a review can begin for the merchant.For more details,
      +     * check the help center doc.
      +     * 
      + * + * + * optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState review_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The reviewState. + */ + @java.lang.Override + public com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState + getReviewState() { + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState result = + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState + .forNumber(reviewState_); + return result == null + ? com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState + .UNRECOGNIZED + : result; + } + + /** + * + * + *
      +     * Output only. Reflects the merchant review state in `Checkout` program.
      +     * This is set based on the data quality reviews of the URL provided by
      +     * the merchant.
      +     * A merchant with enrollment state
      +     * as `ENROLLED` can be in the following review states: `IN_REVIEW`,
      +     * `APPROVED` or `DISAPPROVED`. A merchant must be in an `enrollment_state` of
      +     * `ENROLLED` before a review can begin for the merchant.For more details,
      +     * check the help center doc.
      +     * 
      + * + * + * optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState review_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The reviewState to set. + * @return This builder for chaining. + */ + public Builder setReviewState( + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + reviewState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Reflects the merchant review state in `Checkout` program.
      +     * This is set based on the data quality reviews of the URL provided by
      +     * the merchant.
      +     * A merchant with enrollment state
      +     * as `ENROLLED` can be in the following review states: `IN_REVIEW`,
      +     * `APPROVED` or `DISAPPROVED`. A merchant must be in an `enrollment_state` of
      +     * `ENROLLED` before a review can begin for the merchant.For more details,
      +     * check the help center doc.
      +     * 
      + * + * + * optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState review_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearReviewState() { + bitField0_ = (bitField0_ & ~0x00000010); + reviewState_ = 0; + onChanged(); + return this; + } + + private com.google.shopping.merchant.accounts.v1beta.UriSettings effectiveUriSettings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.accounts.v1beta.UriSettings, + com.google.shopping.merchant.accounts.v1beta.UriSettings.Builder, + com.google.shopping.merchant.accounts.v1beta.UriSettingsOrBuilder> + effectiveUriSettingsBuilder_; + + /** + * + * + *
      +     * Output only. The effective value of `uri_settings` for a given merchant. If
      +     * account level settings are present then this value will be a copy of url
      +     * settings. Otherwise, it will have the value of the parent account (for only
      +     * marketplace sellers).
      +     * 
      + * + * + * .google.shopping.merchant.accounts.v1beta.UriSettings effective_uri_settings = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the effectiveUriSettings field is set. + */ + public boolean hasEffectiveUriSettings() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
      +     * Output only. The effective value of `uri_settings` for a given merchant. If
      +     * account level settings are present then this value will be a copy of url
      +     * settings. Otherwise, it will have the value of the parent account (for only
      +     * marketplace sellers).
      +     * 
      + * + * + * .google.shopping.merchant.accounts.v1beta.UriSettings effective_uri_settings = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The effectiveUriSettings. + */ + public com.google.shopping.merchant.accounts.v1beta.UriSettings getEffectiveUriSettings() { + if (effectiveUriSettingsBuilder_ == null) { + return effectiveUriSettings_ == null + ? com.google.shopping.merchant.accounts.v1beta.UriSettings.getDefaultInstance() + : effectiveUriSettings_; + } else { + return effectiveUriSettingsBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Output only. The effective value of `uri_settings` for a given merchant. If
      +     * account level settings are present then this value will be a copy of url
      +     * settings. Otherwise, it will have the value of the parent account (for only
      +     * marketplace sellers).
      +     * 
      + * + * + * .google.shopping.merchant.accounts.v1beta.UriSettings effective_uri_settings = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEffectiveUriSettings( + com.google.shopping.merchant.accounts.v1beta.UriSettings value) { + if (effectiveUriSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + effectiveUriSettings_ = value; + } else { + effectiveUriSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The effective value of `uri_settings` for a given merchant. If
      +     * account level settings are present then this value will be a copy of url
      +     * settings. Otherwise, it will have the value of the parent account (for only
      +     * marketplace sellers).
      +     * 
      + * + * + * .google.shopping.merchant.accounts.v1beta.UriSettings effective_uri_settings = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEffectiveUriSettings( + com.google.shopping.merchant.accounts.v1beta.UriSettings.Builder builderForValue) { + if (effectiveUriSettingsBuilder_ == null) { + effectiveUriSettings_ = builderForValue.build(); + } else { + effectiveUriSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The effective value of `uri_settings` for a given merchant. If
      +     * account level settings are present then this value will be a copy of url
      +     * settings. Otherwise, it will have the value of the parent account (for only
      +     * marketplace sellers).
      +     * 
      + * + * + * .google.shopping.merchant.accounts.v1beta.UriSettings effective_uri_settings = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEffectiveUriSettings( + com.google.shopping.merchant.accounts.v1beta.UriSettings value) { + if (effectiveUriSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && effectiveUriSettings_ != null + && effectiveUriSettings_ + != com.google.shopping.merchant.accounts.v1beta.UriSettings.getDefaultInstance()) { + getEffectiveUriSettingsBuilder().mergeFrom(value); + } else { + effectiveUriSettings_ = value; + } + } else { + effectiveUriSettingsBuilder_.mergeFrom(value); + } + if (effectiveUriSettings_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Output only. The effective value of `uri_settings` for a given merchant. If
      +     * account level settings are present then this value will be a copy of url
      +     * settings. Otherwise, it will have the value of the parent account (for only
      +     * marketplace sellers).
      +     * 
      + * + * + * .google.shopping.merchant.accounts.v1beta.UriSettings effective_uri_settings = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEffectiveUriSettings() { + bitField0_ = (bitField0_ & ~0x00000020); + effectiveUriSettings_ = null; + if (effectiveUriSettingsBuilder_ != null) { + effectiveUriSettingsBuilder_.dispose(); + effectiveUriSettingsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The effective value of `uri_settings` for a given merchant. If
      +     * account level settings are present then this value will be a copy of url
      +     * settings. Otherwise, it will have the value of the parent account (for only
      +     * marketplace sellers).
      +     * 
      + * + * + * .google.shopping.merchant.accounts.v1beta.UriSettings effective_uri_settings = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.shopping.merchant.accounts.v1beta.UriSettings.Builder + getEffectiveUriSettingsBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getEffectiveUriSettingsFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Output only. The effective value of `uri_settings` for a given merchant. If
      +     * account level settings are present then this value will be a copy of url
      +     * settings. Otherwise, it will have the value of the parent account (for only
      +     * marketplace sellers).
      +     * 
      + * + * + * .google.shopping.merchant.accounts.v1beta.UriSettings effective_uri_settings = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.shopping.merchant.accounts.v1beta.UriSettingsOrBuilder + getEffectiveUriSettingsOrBuilder() { + if (effectiveUriSettingsBuilder_ != null) { + return effectiveUriSettingsBuilder_.getMessageOrBuilder(); + } else { + return effectiveUriSettings_ == null + ? com.google.shopping.merchant.accounts.v1beta.UriSettings.getDefaultInstance() + : effectiveUriSettings_; + } + } + + /** + * + * + *
      +     * Output only. The effective value of `uri_settings` for a given merchant. If
      +     * account level settings are present then this value will be a copy of url
      +     * settings. Otherwise, it will have the value of the parent account (for only
      +     * marketplace sellers).
      +     * 
      + * + * + * .google.shopping.merchant.accounts.v1beta.UriSettings effective_uri_settings = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.accounts.v1beta.UriSettings, + com.google.shopping.merchant.accounts.v1beta.UriSettings.Builder, + com.google.shopping.merchant.accounts.v1beta.UriSettingsOrBuilder> + getEffectiveUriSettingsFieldBuilder() { + if (effectiveUriSettingsBuilder_ == null) { + effectiveUriSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.accounts.v1beta.UriSettings, + com.google.shopping.merchant.accounts.v1beta.UriSettings.Builder, + com.google.shopping.merchant.accounts.v1beta.UriSettingsOrBuilder>( + getEffectiveUriSettings(), getParentForChildren(), isClean()); + effectiveUriSettings_ = null; + } + return effectiveUriSettingsBuilder_; + } + + private int effectiveEnrollmentState_ = 0; + + /** + * + * + *
      +     * Output only. The effective value of enrollment_state for a given merchant
      +     * ID. If account level settings are present then this value will be a copy of
      +     * the account level settings. Otherwise, it will have the value of the parent
      +     * account (for only marketplace sellers).
      +     * 
      + * + * + * optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState effective_enrollment_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the effectiveEnrollmentState field is set. + */ + @java.lang.Override + public boolean hasEffectiveEnrollmentState() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
      +     * Output only. The effective value of enrollment_state for a given merchant
      +     * ID. If account level settings are present then this value will be a copy of
      +     * the account level settings. Otherwise, it will have the value of the parent
      +     * account (for only marketplace sellers).
      +     * 
      + * + * + * optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState effective_enrollment_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for effectiveEnrollmentState. + */ + @java.lang.Override + public int getEffectiveEnrollmentStateValue() { + return effectiveEnrollmentState_; + } + + /** + * + * + *
      +     * Output only. The effective value of enrollment_state for a given merchant
      +     * ID. If account level settings are present then this value will be a copy of
      +     * the account level settings. Otherwise, it will have the value of the parent
      +     * account (for only marketplace sellers).
      +     * 
      + * + * + * optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState effective_enrollment_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for effectiveEnrollmentState to set. + * @return This builder for chaining. + */ + public Builder setEffectiveEnrollmentStateValue(int value) { + effectiveEnrollmentState_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The effective value of enrollment_state for a given merchant
      +     * ID. If account level settings are present then this value will be a copy of
      +     * the account level settings. Otherwise, it will have the value of the parent
      +     * account (for only marketplace sellers).
      +     * 
      + * + * + * optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState effective_enrollment_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The effectiveEnrollmentState. + */ + @java.lang.Override + public com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState + getEffectiveEnrollmentState() { + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState result = + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState + .forNumber(effectiveEnrollmentState_); + return result == null + ? com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState + .UNRECOGNIZED + : result; + } + + /** + * + * + *
      +     * Output only. The effective value of enrollment_state for a given merchant
      +     * ID. If account level settings are present then this value will be a copy of
      +     * the account level settings. Otherwise, it will have the value of the parent
      +     * account (for only marketplace sellers).
      +     * 
      + * + * + * optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState effective_enrollment_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The effectiveEnrollmentState to set. + * @return This builder for chaining. + */ + public Builder setEffectiveEnrollmentState( + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + effectiveEnrollmentState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The effective value of enrollment_state for a given merchant
      +     * ID. If account level settings are present then this value will be a copy of
      +     * the account level settings. Otherwise, it will have the value of the parent
      +     * account (for only marketplace sellers).
      +     * 
      + * + * + * optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState effective_enrollment_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearEffectiveEnrollmentState() { + bitField0_ = (bitField0_ & ~0x00000040); + effectiveEnrollmentState_ = 0; + onChanged(); + return this; + } + + private int effectiveReviewState_ = 0; + + /** + * + * + *
      +     * Output only. The effective value of `review_state` for a given merchant ID.
      +     * If account level settings are present then this value will be a copy of the
      +     * account level settings. Otherwise, it will have the value of the parent
      +     * account (for only marketplace sellers).
      +     * 
      + * + * + * optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState effective_review_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the effectiveReviewState field is set. + */ + @java.lang.Override + public boolean hasEffectiveReviewState() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
      +     * Output only. The effective value of `review_state` for a given merchant ID.
      +     * If account level settings are present then this value will be a copy of the
      +     * account level settings. Otherwise, it will have the value of the parent
      +     * account (for only marketplace sellers).
      +     * 
      + * + * + * optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState effective_review_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for effectiveReviewState. + */ + @java.lang.Override + public int getEffectiveReviewStateValue() { + return effectiveReviewState_; + } + + /** + * + * + *
      +     * Output only. The effective value of `review_state` for a given merchant ID.
      +     * If account level settings are present then this value will be a copy of the
      +     * account level settings. Otherwise, it will have the value of the parent
      +     * account (for only marketplace sellers).
      +     * 
      + * + * + * optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState effective_review_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for effectiveReviewState to set. + * @return This builder for chaining. + */ + public Builder setEffectiveReviewStateValue(int value) { + effectiveReviewState_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The effective value of `review_state` for a given merchant ID.
      +     * If account level settings are present then this value will be a copy of the
      +     * account level settings. Otherwise, it will have the value of the parent
      +     * account (for only marketplace sellers).
      +     * 
      + * + * + * optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState effective_review_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The effectiveReviewState. + */ + @java.lang.Override + public com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState + getEffectiveReviewState() { + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState result = + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState + .forNumber(effectiveReviewState_); + return result == null + ? com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState + .UNRECOGNIZED + : result; + } + + /** + * + * + *
      +     * Output only. The effective value of `review_state` for a given merchant ID.
      +     * If account level settings are present then this value will be a copy of the
      +     * account level settings. Otherwise, it will have the value of the parent
      +     * account (for only marketplace sellers).
      +     * 
      + * + * + * optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState effective_review_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The effectiveReviewState to set. + * @return This builder for chaining. + */ + public Builder setEffectiveReviewState( + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + effectiveReviewState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The effective value of `review_state` for a given merchant ID.
      +     * If account level settings are present then this value will be a copy of the
      +     * account level settings. Otherwise, it will have the value of the parent
      +     * account (for only marketplace sellers).
      +     * 
      + * + * + * optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState effective_review_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearEffectiveReviewState() { + bitField0_ = (bitField0_ & ~0x00000080); + effectiveReviewState_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.accounts.v1beta.CheckoutSettings) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.accounts.v1beta.CheckoutSettings) + private static final com.google.shopping.merchant.accounts.v1beta.CheckoutSettings + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.shopping.merchant.accounts.v1beta.CheckoutSettings(); + } + + public static com.google.shopping.merchant.accounts.v1beta.CheckoutSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CheckoutSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.shopping.merchant.accounts.v1beta.CheckoutSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/CheckoutSettingsName.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/CheckoutSettingsName.java new file mode 100644 index 000000000000..521266d4d1bb --- /dev/null +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/CheckoutSettingsName.java @@ -0,0 +1,193 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.accounts.v1beta; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class CheckoutSettingsName implements ResourceName { + private static final PathTemplate ACCOUNT_PROGRAM = + PathTemplate.createWithoutUrlEncoding( + "accounts/{account}/programs/{program}/checkoutSettings"); + private volatile Map fieldValuesMap; + private final String account; + private final String program; + + @Deprecated + protected CheckoutSettingsName() { + account = null; + program = null; + } + + private CheckoutSettingsName(Builder builder) { + account = Preconditions.checkNotNull(builder.getAccount()); + program = Preconditions.checkNotNull(builder.getProgram()); + } + + public String getAccount() { + return account; + } + + public String getProgram() { + return program; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static CheckoutSettingsName of(String account, String program) { + return newBuilder().setAccount(account).setProgram(program).build(); + } + + public static String format(String account, String program) { + return newBuilder().setAccount(account).setProgram(program).build().toString(); + } + + public static CheckoutSettingsName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + ACCOUNT_PROGRAM.validatedMatch( + formattedString, "CheckoutSettingsName.parse: formattedString not in valid format"); + return of(matchMap.get("account"), matchMap.get("program")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (CheckoutSettingsName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return ACCOUNT_PROGRAM.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (account != null) { + fieldMapBuilder.put("account", account); + } + if (program != null) { + fieldMapBuilder.put("program", program); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return ACCOUNT_PROGRAM.instantiate("account", account, "program", program); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + CheckoutSettingsName that = ((CheckoutSettingsName) o); + return Objects.equals(this.account, that.account) + && Objects.equals(this.program, that.program); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(account); + h *= 1000003; + h ^= Objects.hashCode(program); + return h; + } + + /** Builder for accounts/{account}/programs/{program}/checkoutSettings. */ + public static class Builder { + private String account; + private String program; + + protected Builder() {} + + public String getAccount() { + return account; + } + + public String getProgram() { + return program; + } + + public Builder setAccount(String account) { + this.account = account; + return this; + } + + public Builder setProgram(String program) { + this.program = program; + return this; + } + + private Builder(CheckoutSettingsName checkoutSettingsName) { + this.account = checkoutSettingsName.account; + this.program = checkoutSettingsName.program; + } + + public CheckoutSettingsName build() { + return new CheckoutSettingsName(this); + } + } +} diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/CheckoutSettingsOrBuilder.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/CheckoutSettingsOrBuilder.java new file mode 100644 index 000000000000..ee31ae77398d --- /dev/null +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/CheckoutSettingsOrBuilder.java @@ -0,0 +1,450 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/accounts/v1beta/checkoutsettings.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.accounts.v1beta; + +public interface CheckoutSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.accounts.v1beta.CheckoutSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Identifier. The resource name of the program configuration settings.
      +   * Format: `accounts/{account}/programs/{program}/checkoutSettings`
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Identifier. The resource name of the program configuration settings.
      +   * Format: `accounts/{account}/programs/{program}/checkoutSettings`
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +   * URI settings for cart or checkout URL.
      +   * 
      + * + * optional .google.shopping.merchant.accounts.v1beta.UriSettings uri_settings = 2; + * + * @return Whether the uriSettings field is set. + */ + boolean hasUriSettings(); + + /** + * + * + *
      +   * URI settings for cart or checkout URL.
      +   * 
      + * + * optional .google.shopping.merchant.accounts.v1beta.UriSettings uri_settings = 2; + * + * @return The uriSettings. + */ + com.google.shopping.merchant.accounts.v1beta.UriSettings getUriSettings(); + + /** + * + * + *
      +   * URI settings for cart or checkout URL.
      +   * 
      + * + * optional .google.shopping.merchant.accounts.v1beta.UriSettings uri_settings = 2; + */ + com.google.shopping.merchant.accounts.v1beta.UriSettingsOrBuilder getUriSettingsOrBuilder(); + + /** + * + * + *
      +   * Optional. The destinations to which the checkout program applies, valid
      +   * destination values are `SHOPPING_ADS`, `FREE_LISTINGS`
      +   * 
      + * + * + * repeated .google.shopping.type.Destination.DestinationEnum eligible_destinations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the eligibleDestinations. + */ + java.util.List + getEligibleDestinationsList(); + + /** + * + * + *
      +   * Optional. The destinations to which the checkout program applies, valid
      +   * destination values are `SHOPPING_ADS`, `FREE_LISTINGS`
      +   * 
      + * + * + * repeated .google.shopping.type.Destination.DestinationEnum eligible_destinations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of eligibleDestinations. + */ + int getEligibleDestinationsCount(); + + /** + * + * + *
      +   * Optional. The destinations to which the checkout program applies, valid
      +   * destination values are `SHOPPING_ADS`, `FREE_LISTINGS`
      +   * 
      + * + * + * repeated .google.shopping.type.Destination.DestinationEnum eligible_destinations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The eligibleDestinations at the given index. + */ + com.google.shopping.type.Destination.DestinationEnum getEligibleDestinations(int index); + + /** + * + * + *
      +   * Optional. The destinations to which the checkout program applies, valid
      +   * destination values are `SHOPPING_ADS`, `FREE_LISTINGS`
      +   * 
      + * + * + * repeated .google.shopping.type.Destination.DestinationEnum eligible_destinations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for eligibleDestinations. + */ + java.util.List getEligibleDestinationsValueList(); + + /** + * + * + *
      +   * Optional. The destinations to which the checkout program applies, valid
      +   * destination values are `SHOPPING_ADS`, `FREE_LISTINGS`
      +   * 
      + * + * + * repeated .google.shopping.type.Destination.DestinationEnum eligible_destinations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of eligibleDestinations at the given index. + */ + int getEligibleDestinationsValue(int index); + + /** + * + * + *
      +   * Output only. Reflects the merchant enrollment state in `Checkout` program.
      +   * 
      + * + * + * optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState enrollment_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the enrollmentState field is set. + */ + boolean hasEnrollmentState(); + + /** + * + * + *
      +   * Output only. Reflects the merchant enrollment state in `Checkout` program.
      +   * 
      + * + * + * optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState enrollment_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for enrollmentState. + */ + int getEnrollmentStateValue(); + + /** + * + * + *
      +   * Output only. Reflects the merchant enrollment state in `Checkout` program.
      +   * 
      + * + * + * optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState enrollment_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enrollmentState. + */ + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState + getEnrollmentState(); + + /** + * + * + *
      +   * Output only. Reflects the merchant review state in `Checkout` program.
      +   * This is set based on the data quality reviews of the URL provided by
      +   * the merchant.
      +   * A merchant with enrollment state
      +   * as `ENROLLED` can be in the following review states: `IN_REVIEW`,
      +   * `APPROVED` or `DISAPPROVED`. A merchant must be in an `enrollment_state` of
      +   * `ENROLLED` before a review can begin for the merchant.For more details,
      +   * check the help center doc.
      +   * 
      + * + * + * optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState review_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the reviewState field is set. + */ + boolean hasReviewState(); + + /** + * + * + *
      +   * Output only. Reflects the merchant review state in `Checkout` program.
      +   * This is set based on the data quality reviews of the URL provided by
      +   * the merchant.
      +   * A merchant with enrollment state
      +   * as `ENROLLED` can be in the following review states: `IN_REVIEW`,
      +   * `APPROVED` or `DISAPPROVED`. A merchant must be in an `enrollment_state` of
      +   * `ENROLLED` before a review can begin for the merchant.For more details,
      +   * check the help center doc.
      +   * 
      + * + * + * optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState review_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for reviewState. + */ + int getReviewStateValue(); + + /** + * + * + *
      +   * Output only. Reflects the merchant review state in `Checkout` program.
      +   * This is set based on the data quality reviews of the URL provided by
      +   * the merchant.
      +   * A merchant with enrollment state
      +   * as `ENROLLED` can be in the following review states: `IN_REVIEW`,
      +   * `APPROVED` or `DISAPPROVED`. A merchant must be in an `enrollment_state` of
      +   * `ENROLLED` before a review can begin for the merchant.For more details,
      +   * check the help center doc.
      +   * 
      + * + * + * optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState review_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The reviewState. + */ + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState + getReviewState(); + + /** + * + * + *
      +   * Output only. The effective value of `uri_settings` for a given merchant. If
      +   * account level settings are present then this value will be a copy of url
      +   * settings. Otherwise, it will have the value of the parent account (for only
      +   * marketplace sellers).
      +   * 
      + * + * + * .google.shopping.merchant.accounts.v1beta.UriSettings effective_uri_settings = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the effectiveUriSettings field is set. + */ + boolean hasEffectiveUriSettings(); + + /** + * + * + *
      +   * Output only. The effective value of `uri_settings` for a given merchant. If
      +   * account level settings are present then this value will be a copy of url
      +   * settings. Otherwise, it will have the value of the parent account (for only
      +   * marketplace sellers).
      +   * 
      + * + * + * .google.shopping.merchant.accounts.v1beta.UriSettings effective_uri_settings = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The effectiveUriSettings. + */ + com.google.shopping.merchant.accounts.v1beta.UriSettings getEffectiveUriSettings(); + + /** + * + * + *
      +   * Output only. The effective value of `uri_settings` for a given merchant. If
      +   * account level settings are present then this value will be a copy of url
      +   * settings. Otherwise, it will have the value of the parent account (for only
      +   * marketplace sellers).
      +   * 
      + * + * + * .google.shopping.merchant.accounts.v1beta.UriSettings effective_uri_settings = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.shopping.merchant.accounts.v1beta.UriSettingsOrBuilder + getEffectiveUriSettingsOrBuilder(); + + /** + * + * + *
      +   * Output only. The effective value of enrollment_state for a given merchant
      +   * ID. If account level settings are present then this value will be a copy of
      +   * the account level settings. Otherwise, it will have the value of the parent
      +   * account (for only marketplace sellers).
      +   * 
      + * + * + * optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState effective_enrollment_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the effectiveEnrollmentState field is set. + */ + boolean hasEffectiveEnrollmentState(); + + /** + * + * + *
      +   * Output only. The effective value of enrollment_state for a given merchant
      +   * ID. If account level settings are present then this value will be a copy of
      +   * the account level settings. Otherwise, it will have the value of the parent
      +   * account (for only marketplace sellers).
      +   * 
      + * + * + * optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState effective_enrollment_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for effectiveEnrollmentState. + */ + int getEffectiveEnrollmentStateValue(); + + /** + * + * + *
      +   * Output only. The effective value of enrollment_state for a given merchant
      +   * ID. If account level settings are present then this value will be a copy of
      +   * the account level settings. Otherwise, it will have the value of the parent
      +   * account (for only marketplace sellers).
      +   * 
      + * + * + * optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState effective_enrollment_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The effectiveEnrollmentState. + */ + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState + getEffectiveEnrollmentState(); + + /** + * + * + *
      +   * Output only. The effective value of `review_state` for a given merchant ID.
      +   * If account level settings are present then this value will be a copy of the
      +   * account level settings. Otherwise, it will have the value of the parent
      +   * account (for only marketplace sellers).
      +   * 
      + * + * + * optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState effective_review_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the effectiveReviewState field is set. + */ + boolean hasEffectiveReviewState(); + + /** + * + * + *
      +   * Output only. The effective value of `review_state` for a given merchant ID.
      +   * If account level settings are present then this value will be a copy of the
      +   * account level settings. Otherwise, it will have the value of the parent
      +   * account (for only marketplace sellers).
      +   * 
      + * + * + * optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState effective_review_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for effectiveReviewState. + */ + int getEffectiveReviewStateValue(); + + /** + * + * + *
      +   * Output only. The effective value of `review_state` for a given merchant ID.
      +   * If account level settings are present then this value will be a copy of the
      +   * account level settings. Otherwise, it will have the value of the parent
      +   * account (for only marketplace sellers).
      +   * 
      + * + * + * optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState effective_review_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The effectiveReviewState. + */ + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState + getEffectiveReviewState(); +} diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/CheckoutsettingsProto.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/CheckoutsettingsProto.java new file mode 100644 index 000000000000..9895a8c6e608 --- /dev/null +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/CheckoutsettingsProto.java @@ -0,0 +1,242 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/accounts/v1beta/checkoutsettings.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.accounts.v1beta; + +public final class CheckoutsettingsProto { + private CheckoutsettingsProto() {} + + 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_shopping_merchant_accounts_v1beta_GetCheckoutSettingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_accounts_v1beta_GetCheckoutSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_accounts_v1beta_CreateCheckoutSettingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_accounts_v1beta_CreateCheckoutSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_accounts_v1beta_UpdateCheckoutSettingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_accounts_v1beta_UpdateCheckoutSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_accounts_v1beta_DeleteCheckoutSettingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_accounts_v1beta_DeleteCheckoutSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_accounts_v1beta_CheckoutSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_accounts_v1beta_CheckoutSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_accounts_v1beta_UriSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_accounts_v1beta_UriSettings_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/shopping/merchant/accounts/v1be" + + "ta/checkoutsettings.proto\022(google.shoppi" + + "ng.merchant.accounts.v1beta\032\034google/api/" + + "annotations.proto\032\027google/api/client.pro" + + "to\032\037google/api/field_behavior.proto\032\031goo" + + "gle/api/resource.proto\032\033google/protobuf/" + + "empty.proto\032 google/protobuf/field_mask." + + "proto\032 google/shopping/type/types.proto\"" + + "_\n\032GetCheckoutSettingsRequest\022A\n\004name\030\001 " + + "\001(\tB3\340A\002\372A-\n+merchantapi.googleapis.com/" + + "CheckoutSettings\"\300\001\n\035CreateCheckoutSetti" + + "ngsRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+merc" + + "hantapi.googleapis.com/CheckoutSettings\022" + + "Z\n\021checkout_settings\030\002 \001(\0132:.google.shop" + + "ping.merchant.accounts.v1beta.CheckoutSe" + + "ttingsB\003\340A\002\"\261\001\n\035UpdateCheckoutSettingsRe" + + "quest\022Z\n\021checkout_settings\030\001 \001(\0132:.googl" + + "e.shopping.merchant.accounts.v1beta.Chec" + + "koutSettingsB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032" + + ".google.protobuf.FieldMaskB\003\340A\002\"b\n\035Delet" + + "eCheckoutSettingsRequest\022A\n\004name\030\001 \001(\tB3" + + "\340A\002\372A-\n+merchantapi.googleapis.com/Check" + + "outSettings\"\345\t\n\020CheckoutSettings\022\021\n\004name" + + "\030\001 \001(\tB\003\340A\010\022P\n\014uri_settings\030\002 \001(\01325.goog" + + "le.shopping.merchant.accounts.v1beta.Uri" + + "SettingsH\000\210\001\001\022U\n\025eligible_destinations\030\010" + + " \003(\01621.google.shopping.type.Destination." + + "DestinationEnumB\003\340A\001\022v\n\020enrollment_state" + + "\030\003 \001(\0162R.google.shopping.merchant.accoun" + + "ts.v1beta.CheckoutSettings.CheckoutEnrol" + + "lmentStateB\003\340A\003H\001\210\001\001\022n\n\014review_state\030\004 \001" + + "(\0162N.google.shopping.merchant.accounts.v" + + "1beta.CheckoutSettings.CheckoutReviewSta" + + "teB\003\340A\003H\002\210\001\001\022Z\n\026effective_uri_settings\030\005" + + " \001(\01325.google.shopping.merchant.accounts" + + ".v1beta.UriSettingsB\003\340A\003\022\200\001\n\032effective_e" + + "nrollment_state\030\006 \001(\0162R.google.shopping." + + "merchant.accounts.v1beta.CheckoutSetting" + + "s.CheckoutEnrollmentStateB\003\340A\003H\003\210\001\001\022x\n\026e" + + "ffective_review_state\030\007 \001(\0162N.google.sho" + + "pping.merchant.accounts.v1beta.CheckoutS" + + "ettings.CheckoutReviewStateB\003\340A\003H\004\210\001\001\"o\n" + + "\027CheckoutEnrollmentState\022)\n%CHECKOUT_ENR" + + "OLLMENT_STATE_UNSPECIFIED\020\000\022\014\n\010INACTIVE\020" + + "\001\022\014\n\010ENROLLED\020\002\022\r\n\tOPTED_OUT\020\003\"j\n\023Checko" + + "utReviewState\022%\n!CHECKOUT_REVIEW_STATE_U" + + "NSPECIFIED\020\000\022\r\n\tIN_REVIEW\020\001\022\014\n\010APPROVED\020" + + "\002\022\017\n\013DISAPPROVED\020\003:\205\001\352A\201\001\n+merchantapi.g" + + "oogleapis.com/CheckoutSettings\0226accounts" + + "/{account}/programs/{program}/checkoutSe" + + "ttings*\010settings2\020checkoutSettingsB\017\n\r_u" + + "ri_settingsB\023\n\021_enrollment_stateB\017\n\r_rev" + + "iew_stateB\035\n\033_effective_enrollment_state" + + "B\031\n\027_effective_review_state\"[\n\013UriSettin" + + "gs\022\037\n\025checkout_uri_template\030\001 \001(\tH\000\022\033\n\021c" + + "art_uri_template\030\002 \001(\tH\000B\016\n\014uri_template" + + "2\334\010\n\027CheckoutSettingsService\022\346\001\n\023GetChec" + + "koutSettings\022D.google.shopping.merchant." + + "accounts.v1beta.GetCheckoutSettingsReque" + + "st\032:.google.shopping.merchant.accounts.v" + + "1beta.CheckoutSettings\"M\332A\004name\202\323\344\223\002@\022>/" + + "accounts/v1beta/{name=accounts/*/program" + + "s/*/checkoutSettings}\022\225\002\n\026CreateCheckout" + + "Settings\022G.google.shopping.merchant.acco" + + "unts.v1beta.CreateCheckoutSettingsReques" + + "t\032:.google.shopping.merchant.accounts.v1" + + "beta.CheckoutSettings\"v\332A\030parent,checkou" + + "t_settings\202\323\344\223\002U\"@/accounts/v1beta/{pare" + + "nt=accounts/*/programs/*}/checkoutSettin" + + "gs:\021checkout_settings\022\253\002\n\026UpdateCheckout" + + "Settings\022G.google.shopping.merchant.acco" + + "unts.v1beta.UpdateCheckoutSettingsReques" + + "t\032:.google.shopping.merchant.accounts.v1" + + "beta.CheckoutSettings\"\213\001\332A\035checkout_sett" + + "ings,update_mask\202\323\344\223\002e2P/accounts/v1beta" + + "/{checkout_settings.name=accounts/*/prog" + + "rams/*/checkoutSettings}:\021checkout_setti" + + "ngs\022\310\001\n\026DeleteCheckoutSettings\022G.google." + + "shopping.merchant.accounts.v1beta.Delete" + + "CheckoutSettingsRequest\032\026.google.protobu" + + "f.Empty\"M\332A\004name\202\323\344\223\002@*>/accounts/v1beta" + + "/{name=accounts/*/programs/*/checkoutSet" + + "tings}\032G\312A\032merchantapi.googleapis.com\322A\'" + + "https://www.googleapis.com/auth/contentB" + + "\227\001\n,com.google.shopping.merchant.account" + + "s.v1betaB\025CheckoutsettingsProtoP\001ZNcloud" + + ".google.com/go/shopping/merchant/account" + + "s/apiv1beta/accountspb;accountspbb\006proto" + + "3" + }; + 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.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.shopping.type.TypesProto.getDescriptor(), + }); + internal_static_google_shopping_merchant_accounts_v1beta_GetCheckoutSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_shopping_merchant_accounts_v1beta_GetCheckoutSettingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_accounts_v1beta_GetCheckoutSettingsRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_shopping_merchant_accounts_v1beta_CreateCheckoutSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_shopping_merchant_accounts_v1beta_CreateCheckoutSettingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_accounts_v1beta_CreateCheckoutSettingsRequest_descriptor, + new java.lang.String[] { + "Parent", "CheckoutSettings", + }); + internal_static_google_shopping_merchant_accounts_v1beta_UpdateCheckoutSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_shopping_merchant_accounts_v1beta_UpdateCheckoutSettingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_accounts_v1beta_UpdateCheckoutSettingsRequest_descriptor, + new java.lang.String[] { + "CheckoutSettings", "UpdateMask", + }); + internal_static_google_shopping_merchant_accounts_v1beta_DeleteCheckoutSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_shopping_merchant_accounts_v1beta_DeleteCheckoutSettingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_accounts_v1beta_DeleteCheckoutSettingsRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_shopping_merchant_accounts_v1beta_CheckoutSettings_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_shopping_merchant_accounts_v1beta_CheckoutSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_accounts_v1beta_CheckoutSettings_descriptor, + new java.lang.String[] { + "Name", + "UriSettings", + "EligibleDestinations", + "EnrollmentState", + "ReviewState", + "EffectiveUriSettings", + "EffectiveEnrollmentState", + "EffectiveReviewState", + }); + internal_static_google_shopping_merchant_accounts_v1beta_UriSettings_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_shopping_merchant_accounts_v1beta_UriSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_accounts_v1beta_UriSettings_descriptor, + new java.lang.String[] { + "CheckoutUriTemplate", "CartUriTemplate", "UriTemplate", + }); + 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.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.shopping.type.TypesProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/CreateCheckoutSettingsRequest.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/CreateCheckoutSettingsRequest.java new file mode 100644 index 000000000000..4efc2ff750f9 --- /dev/null +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/CreateCheckoutSettingsRequest.java @@ -0,0 +1,1004 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/accounts/v1beta/checkoutsettings.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.accounts.v1beta; + +/** + * + * + *
      + * Request message for the `CreateCheckoutSettings` method.
      + * 
      + * + * Protobuf type {@code google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest} + */ +public final class CreateCheckoutSettingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest) + CreateCheckoutSettingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CreateCheckoutSettingsRequest.newBuilder() to construct. + private CreateCheckoutSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateCheckoutSettingsRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateCheckoutSettingsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.accounts.v1beta.CheckoutsettingsProto + .internal_static_google_shopping_merchant_accounts_v1beta_CreateCheckoutSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.accounts.v1beta.CheckoutsettingsProto + .internal_static_google_shopping_merchant_accounts_v1beta_CreateCheckoutSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest.class, + com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest.Builder + .class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
      +   * Required. The merchant account for which the `CheckoutSettings` will be
      +   * created.
      +   * 
      + * + * + * 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 merchant account for which the `CheckoutSettings` will be
      +   * created.
      +   * 
      + * + * + * 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 CHECKOUT_SETTINGS_FIELD_NUMBER = 2; + private com.google.shopping.merchant.accounts.v1beta.CheckoutSettings checkoutSettings_; + + /** + * + * + *
      +   * Required. The `CheckoutSettings` object to create.
      +   * 
      + * + * + * .google.shopping.merchant.accounts.v1beta.CheckoutSettings checkout_settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the checkoutSettings field is set. + */ + @java.lang.Override + public boolean hasCheckoutSettings() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Required. The `CheckoutSettings` object to create.
      +   * 
      + * + * + * .google.shopping.merchant.accounts.v1beta.CheckoutSettings checkout_settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The checkoutSettings. + */ + @java.lang.Override + public com.google.shopping.merchant.accounts.v1beta.CheckoutSettings getCheckoutSettings() { + return checkoutSettings_ == null + ? com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.getDefaultInstance() + : checkoutSettings_; + } + + /** + * + * + *
      +   * Required. The `CheckoutSettings` object to create.
      +   * 
      + * + * + * .google.shopping.merchant.accounts.v1beta.CheckoutSettings checkout_settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.shopping.merchant.accounts.v1beta.CheckoutSettingsOrBuilder + getCheckoutSettingsOrBuilder() { + return checkoutSettings_ == null + ? com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.getDefaultInstance() + : checkoutSettings_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getCheckoutSettings()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCheckoutSettings()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest)) { + return super.equals(obj); + } + com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest other = + (com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasCheckoutSettings() != other.hasCheckoutSettings()) return false; + if (hasCheckoutSettings()) { + if (!getCheckoutSettings().equals(other.getCheckoutSettings())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasCheckoutSettings()) { + hash = (37 * hash) + CHECKOUT_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getCheckoutSettings().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for the `CreateCheckoutSettings` method.
      +   * 
      + * + * Protobuf type {@code google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest) + com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.accounts.v1beta.CheckoutsettingsProto + .internal_static_google_shopping_merchant_accounts_v1beta_CreateCheckoutSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.accounts.v1beta.CheckoutsettingsProto + .internal_static_google_shopping_merchant_accounts_v1beta_CreateCheckoutSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest.class, + com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest.Builder + .class); + } + + // Construct using + // com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCheckoutSettingsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + checkoutSettings_ = null; + if (checkoutSettingsBuilder_ != null) { + checkoutSettingsBuilder_.dispose(); + checkoutSettingsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.accounts.v1beta.CheckoutsettingsProto + .internal_static_google_shopping_merchant_accounts_v1beta_CreateCheckoutSettingsRequest_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest + getDefaultInstanceForType() { + return com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest build() { + com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest + buildPartial() { + com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest result = + new com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.checkoutSettings_ = + checkoutSettingsBuilder_ == null ? checkoutSettings_ : checkoutSettingsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest) { + return mergeFrom( + (com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest other) { + if (other + == com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCheckoutSettings()) { + mergeCheckoutSettings(other.getCheckoutSettings()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getCheckoutSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
      +     * Required. The merchant account for which the `CheckoutSettings` will be
      +     * created.
      +     * 
      + * + * + * 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 merchant account for which the `CheckoutSettings` will be
      +     * created.
      +     * 
      + * + * + * 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 merchant account for which the `CheckoutSettings` will be
      +     * created.
      +     * 
      + * + * + * 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 merchant account for which the `CheckoutSettings` will be
      +     * created.
      +     * 
      + * + * + * 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 merchant account for which the `CheckoutSettings` will be
      +     * created.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.shopping.merchant.accounts.v1beta.CheckoutSettings checkoutSettings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings, + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.Builder, + com.google.shopping.merchant.accounts.v1beta.CheckoutSettingsOrBuilder> + checkoutSettingsBuilder_; + + /** + * + * + *
      +     * Required. The `CheckoutSettings` object to create.
      +     * 
      + * + * + * .google.shopping.merchant.accounts.v1beta.CheckoutSettings checkout_settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the checkoutSettings field is set. + */ + public boolean hasCheckoutSettings() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +     * Required. The `CheckoutSettings` object to create.
      +     * 
      + * + * + * .google.shopping.merchant.accounts.v1beta.CheckoutSettings checkout_settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The checkoutSettings. + */ + public com.google.shopping.merchant.accounts.v1beta.CheckoutSettings getCheckoutSettings() { + if (checkoutSettingsBuilder_ == null) { + return checkoutSettings_ == null + ? com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.getDefaultInstance() + : checkoutSettings_; + } else { + return checkoutSettingsBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Required. The `CheckoutSettings` object to create.
      +     * 
      + * + * + * .google.shopping.merchant.accounts.v1beta.CheckoutSettings checkout_settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCheckoutSettings( + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings value) { + if (checkoutSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + checkoutSettings_ = value; + } else { + checkoutSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The `CheckoutSettings` object to create.
      +     * 
      + * + * + * .google.shopping.merchant.accounts.v1beta.CheckoutSettings checkout_settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCheckoutSettings( + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.Builder builderForValue) { + if (checkoutSettingsBuilder_ == null) { + checkoutSettings_ = builderForValue.build(); + } else { + checkoutSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The `CheckoutSettings` object to create.
      +     * 
      + * + * + * .google.shopping.merchant.accounts.v1beta.CheckoutSettings checkout_settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeCheckoutSettings( + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings value) { + if (checkoutSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && checkoutSettings_ != null + && checkoutSettings_ + != com.google.shopping.merchant.accounts.v1beta.CheckoutSettings + .getDefaultInstance()) { + getCheckoutSettingsBuilder().mergeFrom(value); + } else { + checkoutSettings_ = value; + } + } else { + checkoutSettingsBuilder_.mergeFrom(value); + } + if (checkoutSettings_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Required. The `CheckoutSettings` object to create.
      +     * 
      + * + * + * .google.shopping.merchant.accounts.v1beta.CheckoutSettings checkout_settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearCheckoutSettings() { + bitField0_ = (bitField0_ & ~0x00000002); + checkoutSettings_ = null; + if (checkoutSettingsBuilder_ != null) { + checkoutSettingsBuilder_.dispose(); + checkoutSettingsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The `CheckoutSettings` object to create.
      +     * 
      + * + * + * .google.shopping.merchant.accounts.v1beta.CheckoutSettings checkout_settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.Builder + getCheckoutSettingsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getCheckoutSettingsFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Required. The `CheckoutSettings` object to create.
      +     * 
      + * + * + * .google.shopping.merchant.accounts.v1beta.CheckoutSettings checkout_settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.shopping.merchant.accounts.v1beta.CheckoutSettingsOrBuilder + getCheckoutSettingsOrBuilder() { + if (checkoutSettingsBuilder_ != null) { + return checkoutSettingsBuilder_.getMessageOrBuilder(); + } else { + return checkoutSettings_ == null + ? com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.getDefaultInstance() + : checkoutSettings_; + } + } + + /** + * + * + *
      +     * Required. The `CheckoutSettings` object to create.
      +     * 
      + * + * + * .google.shopping.merchant.accounts.v1beta.CheckoutSettings checkout_settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings, + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.Builder, + com.google.shopping.merchant.accounts.v1beta.CheckoutSettingsOrBuilder> + getCheckoutSettingsFieldBuilder() { + if (checkoutSettingsBuilder_ == null) { + checkoutSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings, + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.Builder, + com.google.shopping.merchant.accounts.v1beta.CheckoutSettingsOrBuilder>( + getCheckoutSettings(), getParentForChildren(), isClean()); + checkoutSettings_ = null; + } + return checkoutSettingsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest) + private static final com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest(); + } + + public static com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCheckoutSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/CreateCheckoutSettingsRequestOrBuilder.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/CreateCheckoutSettingsRequestOrBuilder.java new file mode 100644 index 000000000000..8c8130b016d1 --- /dev/null +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/CreateCheckoutSettingsRequestOrBuilder.java @@ -0,0 +1,102 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/accounts/v1beta/checkoutsettings.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.accounts.v1beta; + +public interface CreateCheckoutSettingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The merchant account for which the `CheckoutSettings` will be
      +   * created.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
      +   * Required. The merchant account for which the `CheckoutSettings` will be
      +   * created.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
      +   * Required. The `CheckoutSettings` object to create.
      +   * 
      + * + * + * .google.shopping.merchant.accounts.v1beta.CheckoutSettings checkout_settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the checkoutSettings field is set. + */ + boolean hasCheckoutSettings(); + + /** + * + * + *
      +   * Required. The `CheckoutSettings` object to create.
      +   * 
      + * + * + * .google.shopping.merchant.accounts.v1beta.CheckoutSettings checkout_settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The checkoutSettings. + */ + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings getCheckoutSettings(); + + /** + * + * + *
      +   * Required. The `CheckoutSettings` object to create.
      +   * 
      + * + * + * .google.shopping.merchant.accounts.v1beta.CheckoutSettings checkout_settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.shopping.merchant.accounts.v1beta.CheckoutSettingsOrBuilder + getCheckoutSettingsOrBuilder(); +} diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/DeleteCheckoutSettingsRequest.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/DeleteCheckoutSettingsRequest.java new file mode 100644 index 000000000000..b9d00c4b2b90 --- /dev/null +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/DeleteCheckoutSettingsRequest.java @@ -0,0 +1,679 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/accounts/v1beta/checkoutsettings.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.accounts.v1beta; + +/** + * + * + *
      + * Request message for the `DeleteCheckoutSettings` method.
      + * 
      + * + * Protobuf type {@code google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest} + */ +public final class DeleteCheckoutSettingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest) + DeleteCheckoutSettingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DeleteCheckoutSettingsRequest.newBuilder() to construct. + private DeleteCheckoutSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteCheckoutSettingsRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteCheckoutSettingsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.accounts.v1beta.CheckoutsettingsProto + .internal_static_google_shopping_merchant_accounts_v1beta_DeleteCheckoutSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.accounts.v1beta.CheckoutsettingsProto + .internal_static_google_shopping_merchant_accounts_v1beta_DeleteCheckoutSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest.class, + com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * Required. The name/identifier of the merchant account.
      +   * Format: `accounts/{account}/programs/{program}/checkoutSettings`
      +   * 
      + * + * + * 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/identifier of the merchant account.
      +   * Format: `accounts/{account}/programs/{program}/checkoutSettings`
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest)) { + return super.equals(obj); + } + com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest other = + (com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest) 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.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for the `DeleteCheckoutSettings` method.
      +   * 
      + * + * Protobuf type {@code google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest) + com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.accounts.v1beta.CheckoutsettingsProto + .internal_static_google_shopping_merchant_accounts_v1beta_DeleteCheckoutSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.accounts.v1beta.CheckoutsettingsProto + .internal_static_google_shopping_merchant_accounts_v1beta_DeleteCheckoutSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest.class, + com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest.Builder + .class); + } + + // Construct using + // com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.accounts.v1beta.CheckoutsettingsProto + .internal_static_google_shopping_merchant_accounts_v1beta_DeleteCheckoutSettingsRequest_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest + getDefaultInstanceForType() { + return com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest build() { + com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest + buildPartial() { + com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest result = + new com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest) { + return mergeFrom( + (com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest other) { + if (other + == com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest + .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/identifier of the merchant account.
      +     * Format: `accounts/{account}/programs/{program}/checkoutSettings`
      +     * 
      + * + * + * 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/identifier of the merchant account.
      +     * Format: `accounts/{account}/programs/{program}/checkoutSettings`
      +     * 
      + * + * + * 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/identifier of the merchant account.
      +     * Format: `accounts/{account}/programs/{program}/checkoutSettings`
      +     * 
      + * + * + * 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/identifier of the merchant account.
      +     * Format: `accounts/{account}/programs/{program}/checkoutSettings`
      +     * 
      + * + * + * 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/identifier of the merchant account.
      +     * Format: `accounts/{account}/programs/{program}/checkoutSettings`
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest) + private static final com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest(); + } + + public static com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteCheckoutSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/DeleteCheckoutSettingsRequestOrBuilder.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/DeleteCheckoutSettingsRequestOrBuilder.java new file mode 100644 index 000000000000..d524243c6fd8 --- /dev/null +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/DeleteCheckoutSettingsRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/accounts/v1beta/checkoutsettings.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.accounts.v1beta; + +public interface DeleteCheckoutSettingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The name/identifier of the merchant account.
      +   * Format: `accounts/{account}/programs/{program}/checkoutSettings`
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Required. The name/identifier of the merchant account.
      +   * Format: `accounts/{account}/programs/{program}/checkoutSettings`
      +   * 
      + * + * + * 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-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/GetCheckoutSettingsRequest.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/GetCheckoutSettingsRequest.java new file mode 100644 index 000000000000..b7cab6f92f72 --- /dev/null +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/GetCheckoutSettingsRequest.java @@ -0,0 +1,671 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/accounts/v1beta/checkoutsettings.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.accounts.v1beta; + +/** + * + * + *
      + * Request message for `GetCheckoutSettings` method.
      + * 
      + * + * Protobuf type {@code google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest} + */ +public final class GetCheckoutSettingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest) + GetCheckoutSettingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetCheckoutSettingsRequest.newBuilder() to construct. + private GetCheckoutSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetCheckoutSettingsRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetCheckoutSettingsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.accounts.v1beta.CheckoutsettingsProto + .internal_static_google_shopping_merchant_accounts_v1beta_GetCheckoutSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.accounts.v1beta.CheckoutsettingsProto + .internal_static_google_shopping_merchant_accounts_v1beta_GetCheckoutSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest.class, + com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * Required. The name/identifier of the merchant account.
      +   * Format: `accounts/{account}/programs/{program}/checkoutSettings`
      +   * 
      + * + * + * 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/identifier of the merchant account.
      +   * Format: `accounts/{account}/programs/{program}/checkoutSettings`
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest)) { + return super.equals(obj); + } + com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest other = + (com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest) 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.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for `GetCheckoutSettings` method.
      +   * 
      + * + * Protobuf type {@code google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest) + com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.accounts.v1beta.CheckoutsettingsProto + .internal_static_google_shopping_merchant_accounts_v1beta_GetCheckoutSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.accounts.v1beta.CheckoutsettingsProto + .internal_static_google_shopping_merchant_accounts_v1beta_GetCheckoutSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest.class, + com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest.Builder + .class); + } + + // Construct using + // com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.accounts.v1beta.CheckoutsettingsProto + .internal_static_google_shopping_merchant_accounts_v1beta_GetCheckoutSettingsRequest_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest + getDefaultInstanceForType() { + return com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest build() { + com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest buildPartial() { + com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest result = + new com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest) { + return mergeFrom( + (com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest other) { + if (other + == com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest + .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/identifier of the merchant account.
      +     * Format: `accounts/{account}/programs/{program}/checkoutSettings`
      +     * 
      + * + * + * 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/identifier of the merchant account.
      +     * Format: `accounts/{account}/programs/{program}/checkoutSettings`
      +     * 
      + * + * + * 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/identifier of the merchant account.
      +     * Format: `accounts/{account}/programs/{program}/checkoutSettings`
      +     * 
      + * + * + * 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/identifier of the merchant account.
      +     * Format: `accounts/{account}/programs/{program}/checkoutSettings`
      +     * 
      + * + * + * 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/identifier of the merchant account.
      +     * Format: `accounts/{account}/programs/{program}/checkoutSettings`
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest) + private static final com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest(); + } + + public static com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCheckoutSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/GetCheckoutSettingsRequestOrBuilder.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/GetCheckoutSettingsRequestOrBuilder.java new file mode 100644 index 000000000000..a809bfc741d9 --- /dev/null +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/GetCheckoutSettingsRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/accounts/v1beta/checkoutsettings.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.accounts.v1beta; + +public interface GetCheckoutSettingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The name/identifier of the merchant account.
      +   * Format: `accounts/{account}/programs/{program}/checkoutSettings`
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Required. The name/identifier of the merchant account.
      +   * Format: `accounts/{account}/programs/{program}/checkoutSettings`
      +   * 
      + * + * + * 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-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/UpdateCheckoutSettingsRequest.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/UpdateCheckoutSettingsRequest.java new file mode 100644 index 000000000000..f016b3016b06 --- /dev/null +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/UpdateCheckoutSettingsRequest.java @@ -0,0 +1,1165 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/accounts/v1beta/checkoutsettings.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.accounts.v1beta; + +/** + * + * + *
      + * Request message for the `UpdateCheckoutSettings` method.
      + * 
      + * + * Protobuf type {@code google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest} + */ +public final class UpdateCheckoutSettingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest) + UpdateCheckoutSettingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UpdateCheckoutSettingsRequest.newBuilder() to construct. + private UpdateCheckoutSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateCheckoutSettingsRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateCheckoutSettingsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.accounts.v1beta.CheckoutsettingsProto + .internal_static_google_shopping_merchant_accounts_v1beta_UpdateCheckoutSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.accounts.v1beta.CheckoutsettingsProto + .internal_static_google_shopping_merchant_accounts_v1beta_UpdateCheckoutSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest.class, + com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest.Builder + .class); + } + + private int bitField0_; + public static final int CHECKOUT_SETTINGS_FIELD_NUMBER = 1; + private com.google.shopping.merchant.accounts.v1beta.CheckoutSettings checkoutSettings_; + + /** + * + * + *
      +   * Required. The updated version of the `CheckoutSettings`.
      +   * The `name` field is used to identify the `CheckoutSettings`.
      +   * Format: `accounts/{account}/programs/{program}/checkoutSettings`
      +   * 
      + * + * + * .google.shopping.merchant.accounts.v1beta.CheckoutSettings checkout_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the checkoutSettings field is set. + */ + @java.lang.Override + public boolean hasCheckoutSettings() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Required. The updated version of the `CheckoutSettings`.
      +   * The `name` field is used to identify the `CheckoutSettings`.
      +   * Format: `accounts/{account}/programs/{program}/checkoutSettings`
      +   * 
      + * + * + * .google.shopping.merchant.accounts.v1beta.CheckoutSettings checkout_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The checkoutSettings. + */ + @java.lang.Override + public com.google.shopping.merchant.accounts.v1beta.CheckoutSettings getCheckoutSettings() { + return checkoutSettings_ == null + ? com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.getDefaultInstance() + : checkoutSettings_; + } + + /** + * + * + *
      +   * Required. The updated version of the `CheckoutSettings`.
      +   * The `name` field is used to identify the `CheckoutSettings`.
      +   * Format: `accounts/{account}/programs/{program}/checkoutSettings`
      +   * 
      + * + * + * .google.shopping.merchant.accounts.v1beta.CheckoutSettings checkout_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.shopping.merchant.accounts.v1beta.CheckoutSettingsOrBuilder + getCheckoutSettingsOrBuilder() { + return checkoutSettings_ == null + ? com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.getDefaultInstance() + : checkoutSettings_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
      +   * Required. List of fields being updated.
      +   * The following fields are supported (in both `snake_case` and
      +   * `lowerCamelCase`):
      +   *
      +   * - `eligible_destinations`
      +   * - `uri_settings`
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * Required. List of fields being updated.
      +   * The following fields are supported (in both `snake_case` and
      +   * `lowerCamelCase`):
      +   *
      +   * - `eligible_destinations`
      +   * - `uri_settings`
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
      +   * Required. List of fields being updated.
      +   * The following fields are supported (in both `snake_case` and
      +   * `lowerCamelCase`):
      +   *
      +   * - `eligible_destinations`
      +   * - `uri_settings`
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getCheckoutSettings()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + 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, getCheckoutSettings()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest)) { + return super.equals(obj); + } + com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest other = + (com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest) obj; + + if (hasCheckoutSettings() != other.hasCheckoutSettings()) return false; + if (hasCheckoutSettings()) { + if (!getCheckoutSettings().equals(other.getCheckoutSettings())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCheckoutSettings()) { + hash = (37 * hash) + CHECKOUT_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getCheckoutSettings().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for the `UpdateCheckoutSettings` method.
      +   * 
      + * + * Protobuf type {@code google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest) + com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.accounts.v1beta.CheckoutsettingsProto + .internal_static_google_shopping_merchant_accounts_v1beta_UpdateCheckoutSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.accounts.v1beta.CheckoutsettingsProto + .internal_static_google_shopping_merchant_accounts_v1beta_UpdateCheckoutSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest.class, + com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest.Builder + .class); + } + + // Construct using + // com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCheckoutSettingsFieldBuilder(); + getUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + checkoutSettings_ = null; + if (checkoutSettingsBuilder_ != null) { + checkoutSettingsBuilder_.dispose(); + checkoutSettingsBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.accounts.v1beta.CheckoutsettingsProto + .internal_static_google_shopping_merchant_accounts_v1beta_UpdateCheckoutSettingsRequest_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest + getDefaultInstanceForType() { + return com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest build() { + com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest + buildPartial() { + com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest result = + new com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.checkoutSettings_ = + checkoutSettingsBuilder_ == null ? checkoutSettings_ : checkoutSettingsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest) { + return mergeFrom( + (com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest other) { + if (other + == com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest + .getDefaultInstance()) return this; + if (other.hasCheckoutSettings()) { + mergeCheckoutSettings(other.getCheckoutSettings()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getCheckoutSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.shopping.merchant.accounts.v1beta.CheckoutSettings checkoutSettings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings, + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.Builder, + com.google.shopping.merchant.accounts.v1beta.CheckoutSettingsOrBuilder> + checkoutSettingsBuilder_; + + /** + * + * + *
      +     * Required. The updated version of the `CheckoutSettings`.
      +     * The `name` field is used to identify the `CheckoutSettings`.
      +     * Format: `accounts/{account}/programs/{program}/checkoutSettings`
      +     * 
      + * + * + * .google.shopping.merchant.accounts.v1beta.CheckoutSettings checkout_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the checkoutSettings field is set. + */ + public boolean hasCheckoutSettings() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +     * Required. The updated version of the `CheckoutSettings`.
      +     * The `name` field is used to identify the `CheckoutSettings`.
      +     * Format: `accounts/{account}/programs/{program}/checkoutSettings`
      +     * 
      + * + * + * .google.shopping.merchant.accounts.v1beta.CheckoutSettings checkout_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The checkoutSettings. + */ + public com.google.shopping.merchant.accounts.v1beta.CheckoutSettings getCheckoutSettings() { + if (checkoutSettingsBuilder_ == null) { + return checkoutSettings_ == null + ? com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.getDefaultInstance() + : checkoutSettings_; + } else { + return checkoutSettingsBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Required. The updated version of the `CheckoutSettings`.
      +     * The `name` field is used to identify the `CheckoutSettings`.
      +     * Format: `accounts/{account}/programs/{program}/checkoutSettings`
      +     * 
      + * + * + * .google.shopping.merchant.accounts.v1beta.CheckoutSettings checkout_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCheckoutSettings( + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings value) { + if (checkoutSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + checkoutSettings_ = value; + } else { + checkoutSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The updated version of the `CheckoutSettings`.
      +     * The `name` field is used to identify the `CheckoutSettings`.
      +     * Format: `accounts/{account}/programs/{program}/checkoutSettings`
      +     * 
      + * + * + * .google.shopping.merchant.accounts.v1beta.CheckoutSettings checkout_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCheckoutSettings( + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.Builder builderForValue) { + if (checkoutSettingsBuilder_ == null) { + checkoutSettings_ = builderForValue.build(); + } else { + checkoutSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The updated version of the `CheckoutSettings`.
      +     * The `name` field is used to identify the `CheckoutSettings`.
      +     * Format: `accounts/{account}/programs/{program}/checkoutSettings`
      +     * 
      + * + * + * .google.shopping.merchant.accounts.v1beta.CheckoutSettings checkout_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeCheckoutSettings( + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings value) { + if (checkoutSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && checkoutSettings_ != null + && checkoutSettings_ + != com.google.shopping.merchant.accounts.v1beta.CheckoutSettings + .getDefaultInstance()) { + getCheckoutSettingsBuilder().mergeFrom(value); + } else { + checkoutSettings_ = value; + } + } else { + checkoutSettingsBuilder_.mergeFrom(value); + } + if (checkoutSettings_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Required. The updated version of the `CheckoutSettings`.
      +     * The `name` field is used to identify the `CheckoutSettings`.
      +     * Format: `accounts/{account}/programs/{program}/checkoutSettings`
      +     * 
      + * + * + * .google.shopping.merchant.accounts.v1beta.CheckoutSettings checkout_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearCheckoutSettings() { + bitField0_ = (bitField0_ & ~0x00000001); + checkoutSettings_ = null; + if (checkoutSettingsBuilder_ != null) { + checkoutSettingsBuilder_.dispose(); + checkoutSettingsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The updated version of the `CheckoutSettings`.
      +     * The `name` field is used to identify the `CheckoutSettings`.
      +     * Format: `accounts/{account}/programs/{program}/checkoutSettings`
      +     * 
      + * + * + * .google.shopping.merchant.accounts.v1beta.CheckoutSettings checkout_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.Builder + getCheckoutSettingsBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCheckoutSettingsFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Required. The updated version of the `CheckoutSettings`.
      +     * The `name` field is used to identify the `CheckoutSettings`.
      +     * Format: `accounts/{account}/programs/{program}/checkoutSettings`
      +     * 
      + * + * + * .google.shopping.merchant.accounts.v1beta.CheckoutSettings checkout_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.shopping.merchant.accounts.v1beta.CheckoutSettingsOrBuilder + getCheckoutSettingsOrBuilder() { + if (checkoutSettingsBuilder_ != null) { + return checkoutSettingsBuilder_.getMessageOrBuilder(); + } else { + return checkoutSettings_ == null + ? com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.getDefaultInstance() + : checkoutSettings_; + } + } + + /** + * + * + *
      +     * Required. The updated version of the `CheckoutSettings`.
      +     * The `name` field is used to identify the `CheckoutSettings`.
      +     * Format: `accounts/{account}/programs/{program}/checkoutSettings`
      +     * 
      + * + * + * .google.shopping.merchant.accounts.v1beta.CheckoutSettings checkout_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings, + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.Builder, + com.google.shopping.merchant.accounts.v1beta.CheckoutSettingsOrBuilder> + getCheckoutSettingsFieldBuilder() { + if (checkoutSettingsBuilder_ == null) { + checkoutSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings, + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings.Builder, + com.google.shopping.merchant.accounts.v1beta.CheckoutSettingsOrBuilder>( + getCheckoutSettings(), getParentForChildren(), isClean()); + checkoutSettings_ = null; + } + return checkoutSettingsBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
      +     * Required. List of fields being updated.
      +     * The following fields are supported (in both `snake_case` and
      +     * `lowerCamelCase`):
      +     *
      +     * - `eligible_destinations`
      +     * - `uri_settings`
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +     * Required. List of fields being updated.
      +     * The following fields are supported (in both `snake_case` and
      +     * `lowerCamelCase`):
      +     *
      +     * - `eligible_destinations`
      +     * - `uri_settings`
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Required. List of fields being updated.
      +     * The following fields are supported (in both `snake_case` and
      +     * `lowerCamelCase`):
      +     *
      +     * - `eligible_destinations`
      +     * - `uri_settings`
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. List of fields being updated.
      +     * The following fields are supported (in both `snake_case` and
      +     * `lowerCamelCase`):
      +     *
      +     * - `eligible_destinations`
      +     * - `uri_settings`
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. List of fields being updated.
      +     * The following fields are supported (in both `snake_case` and
      +     * `lowerCamelCase`):
      +     *
      +     * - `eligible_destinations`
      +     * - `uri_settings`
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Required. List of fields being updated.
      +     * The following fields are supported (in both `snake_case` and
      +     * `lowerCamelCase`):
      +     *
      +     * - `eligible_destinations`
      +     * - `uri_settings`
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. List of fields being updated.
      +     * The following fields are supported (in both `snake_case` and
      +     * `lowerCamelCase`):
      +     *
      +     * - `eligible_destinations`
      +     * - `uri_settings`
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Required. List of fields being updated.
      +     * The following fields are supported (in both `snake_case` and
      +     * `lowerCamelCase`):
      +     *
      +     * - `eligible_destinations`
      +     * - `uri_settings`
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
      +     * Required. List of fields being updated.
      +     * The following fields are supported (in both `snake_case` and
      +     * `lowerCamelCase`):
      +     *
      +     * - `eligible_destinations`
      +     * - `uri_settings`
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest) + private static final com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest(); + } + + public static com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCheckoutSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/UpdateCheckoutSettingsRequestOrBuilder.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/UpdateCheckoutSettingsRequestOrBuilder.java new file mode 100644 index 000000000000..5a1e7243c37c --- /dev/null +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/UpdateCheckoutSettingsRequestOrBuilder.java @@ -0,0 +1,131 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/accounts/v1beta/checkoutsettings.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.accounts.v1beta; + +public interface UpdateCheckoutSettingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The updated version of the `CheckoutSettings`.
      +   * The `name` field is used to identify the `CheckoutSettings`.
      +   * Format: `accounts/{account}/programs/{program}/checkoutSettings`
      +   * 
      + * + * + * .google.shopping.merchant.accounts.v1beta.CheckoutSettings checkout_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the checkoutSettings field is set. + */ + boolean hasCheckoutSettings(); + + /** + * + * + *
      +   * Required. The updated version of the `CheckoutSettings`.
      +   * The `name` field is used to identify the `CheckoutSettings`.
      +   * Format: `accounts/{account}/programs/{program}/checkoutSettings`
      +   * 
      + * + * + * .google.shopping.merchant.accounts.v1beta.CheckoutSettings checkout_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The checkoutSettings. + */ + com.google.shopping.merchant.accounts.v1beta.CheckoutSettings getCheckoutSettings(); + + /** + * + * + *
      +   * Required. The updated version of the `CheckoutSettings`.
      +   * The `name` field is used to identify the `CheckoutSettings`.
      +   * Format: `accounts/{account}/programs/{program}/checkoutSettings`
      +   * 
      + * + * + * .google.shopping.merchant.accounts.v1beta.CheckoutSettings checkout_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.shopping.merchant.accounts.v1beta.CheckoutSettingsOrBuilder + getCheckoutSettingsOrBuilder(); + + /** + * + * + *
      +   * Required. List of fields being updated.
      +   * The following fields are supported (in both `snake_case` and
      +   * `lowerCamelCase`):
      +   *
      +   * - `eligible_destinations`
      +   * - `uri_settings`
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
      +   * Required. List of fields being updated.
      +   * The following fields are supported (in both `snake_case` and
      +   * `lowerCamelCase`):
      +   *
      +   * - `eligible_destinations`
      +   * - `uri_settings`
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
      +   * Required. List of fields being updated.
      +   * The following fields are supported (in both `snake_case` and
      +   * `lowerCamelCase`):
      +   *
      +   * - `eligible_destinations`
      +   * - `uri_settings`
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/UriSettings.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/UriSettings.java new file mode 100644 index 000000000000..148540fea085 --- /dev/null +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/UriSettings.java @@ -0,0 +1,1065 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/accounts/v1beta/checkoutsettings.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.accounts.v1beta; + +/** + * + * + *
      + * URL settings for cart or checkout URL.
      + * 
      + * + * Protobuf type {@code google.shopping.merchant.accounts.v1beta.UriSettings} + */ +public final class UriSettings extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.accounts.v1beta.UriSettings) + UriSettingsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UriSettings.newBuilder() to construct. + private UriSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UriSettings() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UriSettings(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.accounts.v1beta.CheckoutsettingsProto + .internal_static_google_shopping_merchant_accounts_v1beta_UriSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.accounts.v1beta.CheckoutsettingsProto + .internal_static_google_shopping_merchant_accounts_v1beta_UriSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.accounts.v1beta.UriSettings.class, + com.google.shopping.merchant.accounts.v1beta.UriSettings.Builder.class); + } + + private int uriTemplateCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object uriTemplate_; + + public enum UriTemplateCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CHECKOUT_URI_TEMPLATE(1), + CART_URI_TEMPLATE(2), + URITEMPLATE_NOT_SET(0); + private final int value; + + private UriTemplateCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static UriTemplateCase valueOf(int value) { + return forNumber(value); + } + + public static UriTemplateCase forNumber(int value) { + switch (value) { + case 1: + return CHECKOUT_URI_TEMPLATE; + case 2: + return CART_URI_TEMPLATE; + case 0: + return URITEMPLATE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public UriTemplateCase getUriTemplateCase() { + return UriTemplateCase.forNumber(uriTemplateCase_); + } + + public static final int CHECKOUT_URI_TEMPLATE_FIELD_NUMBER = 1; + + /** + * + * + *
      +   * Checkout URL template. When the placeholders are expanded will redirect
      +   * the buyer to the merchant checkout page with the item in the cart. For
      +   * more details, check the [help center
      +   * doc](https://support.google.com/merchants/answer/13945960#method1&zippy=%2Cproduct-level-url-formatting%2Caccount-level-url-formatting)
      +   * 
      + * + * string checkout_uri_template = 1; + * + * @return Whether the checkoutUriTemplate field is set. + */ + public boolean hasCheckoutUriTemplate() { + return uriTemplateCase_ == 1; + } + + /** + * + * + *
      +   * Checkout URL template. When the placeholders are expanded will redirect
      +   * the buyer to the merchant checkout page with the item in the cart. For
      +   * more details, check the [help center
      +   * doc](https://support.google.com/merchants/answer/13945960#method1&zippy=%2Cproduct-level-url-formatting%2Caccount-level-url-formatting)
      +   * 
      + * + * string checkout_uri_template = 1; + * + * @return The checkoutUriTemplate. + */ + public java.lang.String getCheckoutUriTemplate() { + java.lang.Object ref = ""; + if (uriTemplateCase_ == 1) { + ref = uriTemplate_; + } + if (ref instanceof java.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 (uriTemplateCase_ == 1) { + uriTemplate_ = s; + } + return s; + } + } + + /** + * + * + *
      +   * Checkout URL template. When the placeholders are expanded will redirect
      +   * the buyer to the merchant checkout page with the item in the cart. For
      +   * more details, check the [help center
      +   * doc](https://support.google.com/merchants/answer/13945960#method1&zippy=%2Cproduct-level-url-formatting%2Caccount-level-url-formatting)
      +   * 
      + * + * string checkout_uri_template = 1; + * + * @return The bytes for checkoutUriTemplate. + */ + public com.google.protobuf.ByteString getCheckoutUriTemplateBytes() { + java.lang.Object ref = ""; + if (uriTemplateCase_ == 1) { + ref = uriTemplate_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (uriTemplateCase_ == 1) { + uriTemplate_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CART_URI_TEMPLATE_FIELD_NUMBER = 2; + + /** + * + * + *
      +   * Cart URL template. When the placeholders are expanded will redirect the
      +   * buyer to the cart page on the merchant website with the selected
      +   * item in cart. For more details, check the [help center
      +   * doc](https://support.google.com/merchants/answer/13945960#method1&zippy=%2Cproduct-level-url-formatting%2Caccount-level-url-formatting)
      +   * 
      + * + * string cart_uri_template = 2; + * + * @return Whether the cartUriTemplate field is set. + */ + public boolean hasCartUriTemplate() { + return uriTemplateCase_ == 2; + } + + /** + * + * + *
      +   * Cart URL template. When the placeholders are expanded will redirect the
      +   * buyer to the cart page on the merchant website with the selected
      +   * item in cart. For more details, check the [help center
      +   * doc](https://support.google.com/merchants/answer/13945960#method1&zippy=%2Cproduct-level-url-formatting%2Caccount-level-url-formatting)
      +   * 
      + * + * string cart_uri_template = 2; + * + * @return The cartUriTemplate. + */ + public java.lang.String getCartUriTemplate() { + java.lang.Object ref = ""; + if (uriTemplateCase_ == 2) { + ref = uriTemplate_; + } + if (ref instanceof java.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 (uriTemplateCase_ == 2) { + uriTemplate_ = s; + } + return s; + } + } + + /** + * + * + *
      +   * Cart URL template. When the placeholders are expanded will redirect the
      +   * buyer to the cart page on the merchant website with the selected
      +   * item in cart. For more details, check the [help center
      +   * doc](https://support.google.com/merchants/answer/13945960#method1&zippy=%2Cproduct-level-url-formatting%2Caccount-level-url-formatting)
      +   * 
      + * + * string cart_uri_template = 2; + * + * @return The bytes for cartUriTemplate. + */ + public com.google.protobuf.ByteString getCartUriTemplateBytes() { + java.lang.Object ref = ""; + if (uriTemplateCase_ == 2) { + ref = uriTemplate_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (uriTemplateCase_ == 2) { + uriTemplate_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (uriTemplateCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uriTemplate_); + } + if (uriTemplateCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uriTemplate_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (uriTemplateCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uriTemplate_); + } + if (uriTemplateCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uriTemplate_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.shopping.merchant.accounts.v1beta.UriSettings)) { + return super.equals(obj); + } + com.google.shopping.merchant.accounts.v1beta.UriSettings other = + (com.google.shopping.merchant.accounts.v1beta.UriSettings) obj; + + if (!getUriTemplateCase().equals(other.getUriTemplateCase())) return false; + switch (uriTemplateCase_) { + case 1: + if (!getCheckoutUriTemplate().equals(other.getCheckoutUriTemplate())) return false; + break; + case 2: + if (!getCartUriTemplate().equals(other.getCartUriTemplate())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (uriTemplateCase_) { + case 1: + hash = (37 * hash) + CHECKOUT_URI_TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getCheckoutUriTemplate().hashCode(); + break; + case 2: + hash = (37 * hash) + CART_URI_TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getCartUriTemplate().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.shopping.merchant.accounts.v1beta.UriSettings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.accounts.v1beta.UriSettings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1beta.UriSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.accounts.v1beta.UriSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1beta.UriSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.accounts.v1beta.UriSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1beta.UriSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.accounts.v1beta.UriSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1beta.UriSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.accounts.v1beta.UriSettings parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1beta.UriSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.accounts.v1beta.UriSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.shopping.merchant.accounts.v1beta.UriSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * URL settings for cart or checkout URL.
      +   * 
      + * + * Protobuf type {@code google.shopping.merchant.accounts.v1beta.UriSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.accounts.v1beta.UriSettings) + com.google.shopping.merchant.accounts.v1beta.UriSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.accounts.v1beta.CheckoutsettingsProto + .internal_static_google_shopping_merchant_accounts_v1beta_UriSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.accounts.v1beta.CheckoutsettingsProto + .internal_static_google_shopping_merchant_accounts_v1beta_UriSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.accounts.v1beta.UriSettings.class, + com.google.shopping.merchant.accounts.v1beta.UriSettings.Builder.class); + } + + // Construct using com.google.shopping.merchant.accounts.v1beta.UriSettings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uriTemplateCase_ = 0; + uriTemplate_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.accounts.v1beta.CheckoutsettingsProto + .internal_static_google_shopping_merchant_accounts_v1beta_UriSettings_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.accounts.v1beta.UriSettings getDefaultInstanceForType() { + return com.google.shopping.merchant.accounts.v1beta.UriSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.accounts.v1beta.UriSettings build() { + com.google.shopping.merchant.accounts.v1beta.UriSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.accounts.v1beta.UriSettings buildPartial() { + com.google.shopping.merchant.accounts.v1beta.UriSettings result = + new com.google.shopping.merchant.accounts.v1beta.UriSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.shopping.merchant.accounts.v1beta.UriSettings result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.shopping.merchant.accounts.v1beta.UriSettings result) { + result.uriTemplateCase_ = uriTemplateCase_; + result.uriTemplate_ = this.uriTemplate_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.shopping.merchant.accounts.v1beta.UriSettings) { + return mergeFrom((com.google.shopping.merchant.accounts.v1beta.UriSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.shopping.merchant.accounts.v1beta.UriSettings other) { + if (other == com.google.shopping.merchant.accounts.v1beta.UriSettings.getDefaultInstance()) + return this; + switch (other.getUriTemplateCase()) { + case CHECKOUT_URI_TEMPLATE: + { + uriTemplateCase_ = 1; + uriTemplate_ = other.uriTemplate_; + onChanged(); + break; + } + case CART_URI_TEMPLATE: + { + uriTemplateCase_ = 2; + uriTemplate_ = other.uriTemplate_; + onChanged(); + break; + } + case URITEMPLATE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + uriTemplateCase_ = 1; + uriTemplate_ = s; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + uriTemplateCase_ = 2; + uriTemplate_ = 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 uriTemplateCase_ = 0; + private java.lang.Object uriTemplate_; + + public UriTemplateCase getUriTemplateCase() { + return UriTemplateCase.forNumber(uriTemplateCase_); + } + + public Builder clearUriTemplate() { + uriTemplateCase_ = 0; + uriTemplate_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
      +     * Checkout URL template. When the placeholders are expanded will redirect
      +     * the buyer to the merchant checkout page with the item in the cart. For
      +     * more details, check the [help center
      +     * doc](https://support.google.com/merchants/answer/13945960#method1&zippy=%2Cproduct-level-url-formatting%2Caccount-level-url-formatting)
      +     * 
      + * + * string checkout_uri_template = 1; + * + * @return Whether the checkoutUriTemplate field is set. + */ + @java.lang.Override + public boolean hasCheckoutUriTemplate() { + return uriTemplateCase_ == 1; + } + + /** + * + * + *
      +     * Checkout URL template. When the placeholders are expanded will redirect
      +     * the buyer to the merchant checkout page with the item in the cart. For
      +     * more details, check the [help center
      +     * doc](https://support.google.com/merchants/answer/13945960#method1&zippy=%2Cproduct-level-url-formatting%2Caccount-level-url-formatting)
      +     * 
      + * + * string checkout_uri_template = 1; + * + * @return The checkoutUriTemplate. + */ + @java.lang.Override + public java.lang.String getCheckoutUriTemplate() { + java.lang.Object ref = ""; + if (uriTemplateCase_ == 1) { + ref = uriTemplate_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (uriTemplateCase_ == 1) { + uriTemplate_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Checkout URL template. When the placeholders are expanded will redirect
      +     * the buyer to the merchant checkout page with the item in the cart. For
      +     * more details, check the [help center
      +     * doc](https://support.google.com/merchants/answer/13945960#method1&zippy=%2Cproduct-level-url-formatting%2Caccount-level-url-formatting)
      +     * 
      + * + * string checkout_uri_template = 1; + * + * @return The bytes for checkoutUriTemplate. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCheckoutUriTemplateBytes() { + java.lang.Object ref = ""; + if (uriTemplateCase_ == 1) { + ref = uriTemplate_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (uriTemplateCase_ == 1) { + uriTemplate_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Checkout URL template. When the placeholders are expanded will redirect
      +     * the buyer to the merchant checkout page with the item in the cart. For
      +     * more details, check the [help center
      +     * doc](https://support.google.com/merchants/answer/13945960#method1&zippy=%2Cproduct-level-url-formatting%2Caccount-level-url-formatting)
      +     * 
      + * + * string checkout_uri_template = 1; + * + * @param value The checkoutUriTemplate to set. + * @return This builder for chaining. + */ + public Builder setCheckoutUriTemplate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uriTemplateCase_ = 1; + uriTemplate_ = value; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Checkout URL template. When the placeholders are expanded will redirect
      +     * the buyer to the merchant checkout page with the item in the cart. For
      +     * more details, check the [help center
      +     * doc](https://support.google.com/merchants/answer/13945960#method1&zippy=%2Cproduct-level-url-formatting%2Caccount-level-url-formatting)
      +     * 
      + * + * string checkout_uri_template = 1; + * + * @return This builder for chaining. + */ + public Builder clearCheckoutUriTemplate() { + if (uriTemplateCase_ == 1) { + uriTemplateCase_ = 0; + uriTemplate_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Checkout URL template. When the placeholders are expanded will redirect
      +     * the buyer to the merchant checkout page with the item in the cart. For
      +     * more details, check the [help center
      +     * doc](https://support.google.com/merchants/answer/13945960#method1&zippy=%2Cproduct-level-url-formatting%2Caccount-level-url-formatting)
      +     * 
      + * + * string checkout_uri_template = 1; + * + * @param value The bytes for checkoutUriTemplate to set. + * @return This builder for chaining. + */ + public Builder setCheckoutUriTemplateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uriTemplateCase_ = 1; + uriTemplate_ = value; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Cart URL template. When the placeholders are expanded will redirect the
      +     * buyer to the cart page on the merchant website with the selected
      +     * item in cart. For more details, check the [help center
      +     * doc](https://support.google.com/merchants/answer/13945960#method1&zippy=%2Cproduct-level-url-formatting%2Caccount-level-url-formatting)
      +     * 
      + * + * string cart_uri_template = 2; + * + * @return Whether the cartUriTemplate field is set. + */ + @java.lang.Override + public boolean hasCartUriTemplate() { + return uriTemplateCase_ == 2; + } + + /** + * + * + *
      +     * Cart URL template. When the placeholders are expanded will redirect the
      +     * buyer to the cart page on the merchant website with the selected
      +     * item in cart. For more details, check the [help center
      +     * doc](https://support.google.com/merchants/answer/13945960#method1&zippy=%2Cproduct-level-url-formatting%2Caccount-level-url-formatting)
      +     * 
      + * + * string cart_uri_template = 2; + * + * @return The cartUriTemplate. + */ + @java.lang.Override + public java.lang.String getCartUriTemplate() { + java.lang.Object ref = ""; + if (uriTemplateCase_ == 2) { + ref = uriTemplate_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (uriTemplateCase_ == 2) { + uriTemplate_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Cart URL template. When the placeholders are expanded will redirect the
      +     * buyer to the cart page on the merchant website with the selected
      +     * item in cart. For more details, check the [help center
      +     * doc](https://support.google.com/merchants/answer/13945960#method1&zippy=%2Cproduct-level-url-formatting%2Caccount-level-url-formatting)
      +     * 
      + * + * string cart_uri_template = 2; + * + * @return The bytes for cartUriTemplate. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCartUriTemplateBytes() { + java.lang.Object ref = ""; + if (uriTemplateCase_ == 2) { + ref = uriTemplate_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (uriTemplateCase_ == 2) { + uriTemplate_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Cart URL template. When the placeholders are expanded will redirect the
      +     * buyer to the cart page on the merchant website with the selected
      +     * item in cart. For more details, check the [help center
      +     * doc](https://support.google.com/merchants/answer/13945960#method1&zippy=%2Cproduct-level-url-formatting%2Caccount-level-url-formatting)
      +     * 
      + * + * string cart_uri_template = 2; + * + * @param value The cartUriTemplate to set. + * @return This builder for chaining. + */ + public Builder setCartUriTemplate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uriTemplateCase_ = 2; + uriTemplate_ = value; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Cart URL template. When the placeholders are expanded will redirect the
      +     * buyer to the cart page on the merchant website with the selected
      +     * item in cart. For more details, check the [help center
      +     * doc](https://support.google.com/merchants/answer/13945960#method1&zippy=%2Cproduct-level-url-formatting%2Caccount-level-url-formatting)
      +     * 
      + * + * string cart_uri_template = 2; + * + * @return This builder for chaining. + */ + public Builder clearCartUriTemplate() { + if (uriTemplateCase_ == 2) { + uriTemplateCase_ = 0; + uriTemplate_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Cart URL template. When the placeholders are expanded will redirect the
      +     * buyer to the cart page on the merchant website with the selected
      +     * item in cart. For more details, check the [help center
      +     * doc](https://support.google.com/merchants/answer/13945960#method1&zippy=%2Cproduct-level-url-formatting%2Caccount-level-url-formatting)
      +     * 
      + * + * string cart_uri_template = 2; + * + * @param value The bytes for cartUriTemplate to set. + * @return This builder for chaining. + */ + public Builder setCartUriTemplateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uriTemplateCase_ = 2; + uriTemplate_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.accounts.v1beta.UriSettings) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.accounts.v1beta.UriSettings) + private static final com.google.shopping.merchant.accounts.v1beta.UriSettings DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.shopping.merchant.accounts.v1beta.UriSettings(); + } + + public static com.google.shopping.merchant.accounts.v1beta.UriSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UriSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.shopping.merchant.accounts.v1beta.UriSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/UriSettingsOrBuilder.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/UriSettingsOrBuilder.java new file mode 100644 index 000000000000..51f96cfadffd --- /dev/null +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/UriSettingsOrBuilder.java @@ -0,0 +1,124 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/accounts/v1beta/checkoutsettings.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.accounts.v1beta; + +public interface UriSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.accounts.v1beta.UriSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Checkout URL template. When the placeholders are expanded will redirect
      +   * the buyer to the merchant checkout page with the item in the cart. For
      +   * more details, check the [help center
      +   * doc](https://support.google.com/merchants/answer/13945960#method1&zippy=%2Cproduct-level-url-formatting%2Caccount-level-url-formatting)
      +   * 
      + * + * string checkout_uri_template = 1; + * + * @return Whether the checkoutUriTemplate field is set. + */ + boolean hasCheckoutUriTemplate(); + + /** + * + * + *
      +   * Checkout URL template. When the placeholders are expanded will redirect
      +   * the buyer to the merchant checkout page with the item in the cart. For
      +   * more details, check the [help center
      +   * doc](https://support.google.com/merchants/answer/13945960#method1&zippy=%2Cproduct-level-url-formatting%2Caccount-level-url-formatting)
      +   * 
      + * + * string checkout_uri_template = 1; + * + * @return The checkoutUriTemplate. + */ + java.lang.String getCheckoutUriTemplate(); + + /** + * + * + *
      +   * Checkout URL template. When the placeholders are expanded will redirect
      +   * the buyer to the merchant checkout page with the item in the cart. For
      +   * more details, check the [help center
      +   * doc](https://support.google.com/merchants/answer/13945960#method1&zippy=%2Cproduct-level-url-formatting%2Caccount-level-url-formatting)
      +   * 
      + * + * string checkout_uri_template = 1; + * + * @return The bytes for checkoutUriTemplate. + */ + com.google.protobuf.ByteString getCheckoutUriTemplateBytes(); + + /** + * + * + *
      +   * Cart URL template. When the placeholders are expanded will redirect the
      +   * buyer to the cart page on the merchant website with the selected
      +   * item in cart. For more details, check the [help center
      +   * doc](https://support.google.com/merchants/answer/13945960#method1&zippy=%2Cproduct-level-url-formatting%2Caccount-level-url-formatting)
      +   * 
      + * + * string cart_uri_template = 2; + * + * @return Whether the cartUriTemplate field is set. + */ + boolean hasCartUriTemplate(); + + /** + * + * + *
      +   * Cart URL template. When the placeholders are expanded will redirect the
      +   * buyer to the cart page on the merchant website with the selected
      +   * item in cart. For more details, check the [help center
      +   * doc](https://support.google.com/merchants/answer/13945960#method1&zippy=%2Cproduct-level-url-formatting%2Caccount-level-url-formatting)
      +   * 
      + * + * string cart_uri_template = 2; + * + * @return The cartUriTemplate. + */ + java.lang.String getCartUriTemplate(); + + /** + * + * + *
      +   * Cart URL template. When the placeholders are expanded will redirect the
      +   * buyer to the cart page on the merchant website with the selected
      +   * item in cart. For more details, check the [help center
      +   * doc](https://support.google.com/merchants/answer/13945960#method1&zippy=%2Cproduct-level-url-formatting%2Caccount-level-url-formatting)
      +   * 
      + * + * string cart_uri_template = 2; + * + * @return The bytes for cartUriTemplate. + */ + com.google.protobuf.ByteString getCartUriTemplateBytes(); + + com.google.shopping.merchant.accounts.v1beta.UriSettings.UriTemplateCase getUriTemplateCase(); +} diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/proto/google/shopping/merchant/accounts/v1beta/checkoutsettings.proto b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/proto/google/shopping/merchant/accounts/v1beta/checkoutsettings.proto new file mode 100644 index 000000000000..7d387f13b1ad --- /dev/null +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/proto/google/shopping/merchant/accounts/v1beta/checkoutsettings.proto @@ -0,0 +1,250 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.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.shopping.merchant.accounts.v1beta; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; +import "google/shopping/type/types.proto"; + +option go_package = "cloud.google.com/go/shopping/merchant/accounts/apiv1beta/accountspb;accountspb"; +option java_multiple_files = true; +option java_outer_classname = "CheckoutsettingsProto"; +option java_package = "com.google.shopping.merchant.accounts.v1beta"; + +// Service for supporting [checkout +// settings](https://support.google.com/merchants/answer/13945960). +service CheckoutSettingsService { + option (google.api.default_host) = "merchantapi.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/content"; + + // Gets `CheckoutSettings` for the given merchant. This includes + // information about review state, enrollment state and URL settings. + rpc GetCheckoutSettings(GetCheckoutSettingsRequest) + returns (CheckoutSettings) { + option (google.api.http) = { + get: "/accounts/v1beta/{name=accounts/*/programs/*/checkoutSettings}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates `CheckoutSettings` for the given merchant. + rpc CreateCheckoutSettings(CreateCheckoutSettingsRequest) + returns (CheckoutSettings) { + option (google.api.http) = { + post: "/accounts/v1beta/{parent=accounts/*/programs/*}/checkoutSettings" + body: "checkout_settings" + }; + option (google.api.method_signature) = "parent,checkout_settings"; + } + + // Updates `CheckoutSettings` for the given merchant. + rpc UpdateCheckoutSettings(UpdateCheckoutSettingsRequest) + returns (CheckoutSettings) { + option (google.api.http) = { + patch: "/accounts/v1beta/{checkout_settings.name=accounts/*/programs/*/checkoutSettings}" + body: "checkout_settings" + }; + option (google.api.method_signature) = "checkout_settings,update_mask"; + } + + // Deletes `CheckoutSettings` and unenrolls merchant from + // `Checkout` program. + rpc DeleteCheckoutSettings(DeleteCheckoutSettingsRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/accounts/v1beta/{name=accounts/*/programs/*/checkoutSettings}" + }; + option (google.api.method_signature) = "name"; + } +} + +// Request message for `GetCheckoutSettings` method. +message GetCheckoutSettingsRequest { + // Required. The name/identifier of the merchant account. + // Format: `accounts/{account}/programs/{program}/checkoutSettings` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "merchantapi.googleapis.com/CheckoutSettings" + } + ]; +} + +// Request message for the `CreateCheckoutSettings` method. +message CreateCheckoutSettingsRequest { + // Required. The merchant account for which the `CheckoutSettings` will be + // created. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "merchantapi.googleapis.com/CheckoutSettings" + } + ]; + + // Required. The `CheckoutSettings` object to create. + CheckoutSettings checkout_settings = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for the `UpdateCheckoutSettings` method. +message UpdateCheckoutSettingsRequest { + // Required. The updated version of the `CheckoutSettings`. + // The `name` field is used to identify the `CheckoutSettings`. + // Format: `accounts/{account}/programs/{program}/checkoutSettings` + CheckoutSettings checkout_settings = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. List of fields being updated. + // The following fields are supported (in both `snake_case` and + // `lowerCamelCase`): + // + // - `eligible_destinations` + // - `uri_settings` + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for the `DeleteCheckoutSettings` method. +message DeleteCheckoutSettingsRequest { + // Required. The name/identifier of the merchant account. + // Format: `accounts/{account}/programs/{program}/checkoutSettings` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "merchantapi.googleapis.com/CheckoutSettings" + } + ]; +} + +// [CheckoutSettings](https://support.google.com/merchants/answer/13945960) for +// a specific merchant. +message CheckoutSettings { + option (google.api.resource) = { + type: "merchantapi.googleapis.com/CheckoutSettings" + pattern: "accounts/{account}/programs/{program}/checkoutSettings" + plural: "settings" + singular: "checkoutSettings" + }; + + // Enum indicating the enrollment state of merchant in `Checkout` + // program. + enum CheckoutEnrollmentState { + // Default enrollment state when enrollment state is not specified. + CHECKOUT_ENROLLMENT_STATE_UNSPECIFIED = 0; + + // Merchant has not enrolled into the program. + INACTIVE = 1; + + // Merchant has enrolled into the program by providing either an + // account level URL or checkout URLs as part of their feed. + ENROLLED = 2; + + // Merchant has previously enrolled but opted out of the program. + OPTED_OUT = 3; + } + + // Enum indicating the review state of merchant in `Checkout` + // program. + enum CheckoutReviewState { + // Default review state when review state is not specified. + CHECKOUT_REVIEW_STATE_UNSPECIFIED = 0; + + // Merchant provided URLs are being reviewed for data quality issues. + IN_REVIEW = 1; + + // Merchant account has been approved. Indicates the data quality checks + // have passed. + APPROVED = 2; + + // Merchant account has been disapproved due to data quality issues. + DISAPPROVED = 3; + } + + // Identifier. The resource name of the program configuration settings. + // Format: `accounts/{account}/programs/{program}/checkoutSettings` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // URI settings for cart or checkout URL. + optional UriSettings uri_settings = 2; + + // Optional. The destinations to which the checkout program applies, valid + // destination values are `SHOPPING_ADS`, `FREE_LISTINGS` + repeated google.shopping.type.Destination.DestinationEnum + eligible_destinations = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Reflects the merchant enrollment state in `Checkout` program. + optional CheckoutEnrollmentState enrollment_state = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reflects the merchant review state in `Checkout` program. + // This is set based on the data quality reviews of the URL provided by + // the merchant. + // A merchant with enrollment state + // as `ENROLLED` can be in the following review states: `IN_REVIEW`, + // `APPROVED` or `DISAPPROVED`. A merchant must be in an `enrollment_state` of + // `ENROLLED` before a review can begin for the merchant.For more details, + // check the help center doc. + optional CheckoutReviewState review_state = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The effective value of `uri_settings` for a given merchant. If + // account level settings are present then this value will be a copy of url + // settings. Otherwise, it will have the value of the parent account (for only + // marketplace sellers). + UriSettings effective_uri_settings = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The effective value of enrollment_state for a given merchant + // ID. If account level settings are present then this value will be a copy of + // the account level settings. Otherwise, it will have the value of the parent + // account (for only marketplace sellers). + optional CheckoutEnrollmentState effective_enrollment_state = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The effective value of `review_state` for a given merchant ID. + // If account level settings are present then this value will be a copy of the + // account level settings. Otherwise, it will have the value of the parent + // account (for only marketplace sellers). + optional CheckoutReviewState effective_review_state = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// URL settings for cart or checkout URL. +message UriSettings { + // Specifications related to the `Checkout` URL. The `UriTemplate` is + // of the form `https://www.mystore.com/checkout?item_id={id}` + // where `{id}` will be automatically replaced with [offer_id] + // (https://developers.google.com/shopping-content/reference/rest/v2.1/products#Product.FIELDS.offer_id) + // attribute from the merchant account + oneof uri_template { + // Checkout URL template. When the placeholders are expanded will redirect + // the buyer to the merchant checkout page with the item in the cart. For + // more details, check the [help center + // doc](https://support.google.com/merchants/answer/13945960#method1&zippy=%2Cproduct-level-url-formatting%2Caccount-level-url-formatting) + string checkout_uri_template = 1; + + // Cart URL template. When the placeholders are expanded will redirect the + // buyer to the cart page on the merchant website with the selected + // item in cart. For more details, check the [help center + // doc](https://support.google.com/merchants/answer/13945960#method1&zippy=%2Cproduct-level-url-formatting%2Caccount-level-url-formatting) + string cart_uri_template = 2; + } +} diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/create/SyncCreateSetCredentialsProvider.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..675c901b0ffa --- /dev/null +++ b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.accounts.v1beta.samples; + +// [START merchantapi_v1beta_generated_CheckoutSettingsService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.shopping.merchant.accounts.v1beta.CheckoutSettingsServiceClient; +import com.google.shopping.merchant.accounts.v1beta.CheckoutSettingsServiceSettings; +import com.google.shopping.merchant.accounts.v1beta.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() 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 + CheckoutSettingsServiceSettings checkoutSettingsServiceSettings = + CheckoutSettingsServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + CheckoutSettingsServiceClient checkoutSettingsServiceClient = + CheckoutSettingsServiceClient.create(checkoutSettingsServiceSettings); + } +} +// [END merchantapi_v1beta_generated_CheckoutSettingsService_Create_SetCredentialsProvider_sync] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/create/SyncCreateSetEndpoint.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..c6d0273485f2 --- /dev/null +++ b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.accounts.v1beta.samples; + +// [START merchantapi_v1beta_generated_CheckoutSettingsService_Create_SetEndpoint_sync] +import com.google.shopping.merchant.accounts.v1beta.CheckoutSettingsServiceClient; +import com.google.shopping.merchant.accounts.v1beta.CheckoutSettingsServiceSettings; +import com.google.shopping.merchant.accounts.v1beta.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() 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 + CheckoutSettingsServiceSettings checkoutSettingsServiceSettings = + CheckoutSettingsServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + CheckoutSettingsServiceClient checkoutSettingsServiceClient = + CheckoutSettingsServiceClient.create(checkoutSettingsServiceSettings); + } +} +// [END merchantapi_v1beta_generated_CheckoutSettingsService_Create_SetEndpoint_sync] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/create/SyncCreateUseHttpJsonTransport.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..a4f41a988052 --- /dev/null +++ b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.accounts.v1beta.samples; + +// [START merchantapi_v1beta_generated_CheckoutSettingsService_Create_UseHttpJsonTransport_sync] +import com.google.shopping.merchant.accounts.v1beta.CheckoutSettingsServiceClient; +import com.google.shopping.merchant.accounts.v1beta.CheckoutSettingsServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() 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 + CheckoutSettingsServiceSettings checkoutSettingsServiceSettings = + CheckoutSettingsServiceSettings.newHttpJsonBuilder().build(); + CheckoutSettingsServiceClient checkoutSettingsServiceClient = + CheckoutSettingsServiceClient.create(checkoutSettingsServiceSettings); + } +} +// [END merchantapi_v1beta_generated_CheckoutSettingsService_Create_UseHttpJsonTransport_sync] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/createcheckoutsettings/AsyncCreateCheckoutSettings.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/createcheckoutsettings/AsyncCreateCheckoutSettings.java new file mode 100644 index 000000000000..50d0ecb15c7f --- /dev/null +++ b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/createcheckoutsettings/AsyncCreateCheckoutSettings.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.accounts.v1beta.samples; + +// [START merchantapi_v1beta_generated_CheckoutSettingsService_CreateCheckoutSettings_async] +import com.google.api.core.ApiFuture; +import com.google.shopping.merchant.accounts.v1beta.CheckoutSettings; +import com.google.shopping.merchant.accounts.v1beta.CheckoutSettingsServiceClient; +import com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest; +import com.google.shopping.merchant.accounts.v1beta.ProgramName; + +public class AsyncCreateCheckoutSettings { + + public static void main(String[] args) throws Exception { + asyncCreateCheckoutSettings(); + } + + public static void asyncCreateCheckoutSettings() 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 (CheckoutSettingsServiceClient checkoutSettingsServiceClient = + CheckoutSettingsServiceClient.create()) { + CreateCheckoutSettingsRequest request = + CreateCheckoutSettingsRequest.newBuilder() + .setParent(ProgramName.of("[ACCOUNT]", "[PROGRAM]").toString()) + .setCheckoutSettings(CheckoutSettings.newBuilder().build()) + .build(); + ApiFuture future = + checkoutSettingsServiceClient.createCheckoutSettingsCallable().futureCall(request); + // Do something. + CheckoutSettings response = future.get(); + } + } +} +// [END merchantapi_v1beta_generated_CheckoutSettingsService_CreateCheckoutSettings_async] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/createcheckoutsettings/SyncCreateCheckoutSettings.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/createcheckoutsettings/SyncCreateCheckoutSettings.java new file mode 100644 index 000000000000..2ec334ac3163 --- /dev/null +++ b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/createcheckoutsettings/SyncCreateCheckoutSettings.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.accounts.v1beta.samples; + +// [START merchantapi_v1beta_generated_CheckoutSettingsService_CreateCheckoutSettings_sync] +import com.google.shopping.merchant.accounts.v1beta.CheckoutSettings; +import com.google.shopping.merchant.accounts.v1beta.CheckoutSettingsServiceClient; +import com.google.shopping.merchant.accounts.v1beta.CreateCheckoutSettingsRequest; +import com.google.shopping.merchant.accounts.v1beta.ProgramName; + +public class SyncCreateCheckoutSettings { + + public static void main(String[] args) throws Exception { + syncCreateCheckoutSettings(); + } + + public static void syncCreateCheckoutSettings() 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 (CheckoutSettingsServiceClient checkoutSettingsServiceClient = + CheckoutSettingsServiceClient.create()) { + CreateCheckoutSettingsRequest request = + CreateCheckoutSettingsRequest.newBuilder() + .setParent(ProgramName.of("[ACCOUNT]", "[PROGRAM]").toString()) + .setCheckoutSettings(CheckoutSettings.newBuilder().build()) + .build(); + CheckoutSettings response = checkoutSettingsServiceClient.createCheckoutSettings(request); + } + } +} +// [END merchantapi_v1beta_generated_CheckoutSettingsService_CreateCheckoutSettings_sync] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/createcheckoutsettings/SyncCreateCheckoutSettingsProgramnameCheckoutsettings.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/createcheckoutsettings/SyncCreateCheckoutSettingsProgramnameCheckoutsettings.java new file mode 100644 index 000000000000..da533b367a61 --- /dev/null +++ b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/createcheckoutsettings/SyncCreateCheckoutSettingsProgramnameCheckoutsettings.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.accounts.v1beta.samples; + +// [START merchantapi_v1beta_generated_CheckoutSettingsService_CreateCheckoutSettings_ProgramnameCheckoutsettings_sync] +import com.google.shopping.merchant.accounts.v1beta.CheckoutSettings; +import com.google.shopping.merchant.accounts.v1beta.CheckoutSettingsServiceClient; +import com.google.shopping.merchant.accounts.v1beta.ProgramName; + +public class SyncCreateCheckoutSettingsProgramnameCheckoutsettings { + + public static void main(String[] args) throws Exception { + syncCreateCheckoutSettingsProgramnameCheckoutsettings(); + } + + public static void syncCreateCheckoutSettingsProgramnameCheckoutsettings() 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 (CheckoutSettingsServiceClient checkoutSettingsServiceClient = + CheckoutSettingsServiceClient.create()) { + ProgramName parent = ProgramName.of("[ACCOUNT]", "[PROGRAM]"); + CheckoutSettings checkoutSettings = CheckoutSettings.newBuilder().build(); + CheckoutSettings response = + checkoutSettingsServiceClient.createCheckoutSettings(parent, checkoutSettings); + } + } +} +// [END merchantapi_v1beta_generated_CheckoutSettingsService_CreateCheckoutSettings_ProgramnameCheckoutsettings_sync] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/createcheckoutsettings/SyncCreateCheckoutSettingsStringCheckoutsettings.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/createcheckoutsettings/SyncCreateCheckoutSettingsStringCheckoutsettings.java new file mode 100644 index 000000000000..f59c87af9b30 --- /dev/null +++ b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/createcheckoutsettings/SyncCreateCheckoutSettingsStringCheckoutsettings.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.accounts.v1beta.samples; + +// [START merchantapi_v1beta_generated_CheckoutSettingsService_CreateCheckoutSettings_StringCheckoutsettings_sync] +import com.google.shopping.merchant.accounts.v1beta.CheckoutSettings; +import com.google.shopping.merchant.accounts.v1beta.CheckoutSettingsServiceClient; +import com.google.shopping.merchant.accounts.v1beta.ProgramName; + +public class SyncCreateCheckoutSettingsStringCheckoutsettings { + + public static void main(String[] args) throws Exception { + syncCreateCheckoutSettingsStringCheckoutsettings(); + } + + public static void syncCreateCheckoutSettingsStringCheckoutsettings() 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 (CheckoutSettingsServiceClient checkoutSettingsServiceClient = + CheckoutSettingsServiceClient.create()) { + String parent = ProgramName.of("[ACCOUNT]", "[PROGRAM]").toString(); + CheckoutSettings checkoutSettings = CheckoutSettings.newBuilder().build(); + CheckoutSettings response = + checkoutSettingsServiceClient.createCheckoutSettings(parent, checkoutSettings); + } + } +} +// [END merchantapi_v1beta_generated_CheckoutSettingsService_CreateCheckoutSettings_StringCheckoutsettings_sync] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/deletecheckoutsettings/AsyncDeleteCheckoutSettings.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/deletecheckoutsettings/AsyncDeleteCheckoutSettings.java new file mode 100644 index 000000000000..eb49bd98153e --- /dev/null +++ b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/deletecheckoutsettings/AsyncDeleteCheckoutSettings.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.accounts.v1beta.samples; + +// [START merchantapi_v1beta_generated_CheckoutSettingsService_DeleteCheckoutSettings_async] +import com.google.api.core.ApiFuture; +import com.google.protobuf.Empty; +import com.google.shopping.merchant.accounts.v1beta.CheckoutSettingsName; +import com.google.shopping.merchant.accounts.v1beta.CheckoutSettingsServiceClient; +import com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest; + +public class AsyncDeleteCheckoutSettings { + + public static void main(String[] args) throws Exception { + asyncDeleteCheckoutSettings(); + } + + public static void asyncDeleteCheckoutSettings() 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 (CheckoutSettingsServiceClient checkoutSettingsServiceClient = + CheckoutSettingsServiceClient.create()) { + DeleteCheckoutSettingsRequest request = + DeleteCheckoutSettingsRequest.newBuilder() + .setName(CheckoutSettingsName.of("[ACCOUNT]", "[PROGRAM]").toString()) + .build(); + ApiFuture future = + checkoutSettingsServiceClient.deleteCheckoutSettingsCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END merchantapi_v1beta_generated_CheckoutSettingsService_DeleteCheckoutSettings_async] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/deletecheckoutsettings/SyncDeleteCheckoutSettings.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/deletecheckoutsettings/SyncDeleteCheckoutSettings.java new file mode 100644 index 000000000000..a2cb1cf91064 --- /dev/null +++ b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/deletecheckoutsettings/SyncDeleteCheckoutSettings.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.accounts.v1beta.samples; + +// [START merchantapi_v1beta_generated_CheckoutSettingsService_DeleteCheckoutSettings_sync] +import com.google.protobuf.Empty; +import com.google.shopping.merchant.accounts.v1beta.CheckoutSettingsName; +import com.google.shopping.merchant.accounts.v1beta.CheckoutSettingsServiceClient; +import com.google.shopping.merchant.accounts.v1beta.DeleteCheckoutSettingsRequest; + +public class SyncDeleteCheckoutSettings { + + public static void main(String[] args) throws Exception { + syncDeleteCheckoutSettings(); + } + + public static void syncDeleteCheckoutSettings() 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 (CheckoutSettingsServiceClient checkoutSettingsServiceClient = + CheckoutSettingsServiceClient.create()) { + DeleteCheckoutSettingsRequest request = + DeleteCheckoutSettingsRequest.newBuilder() + .setName(CheckoutSettingsName.of("[ACCOUNT]", "[PROGRAM]").toString()) + .build(); + checkoutSettingsServiceClient.deleteCheckoutSettings(request); + } + } +} +// [END merchantapi_v1beta_generated_CheckoutSettingsService_DeleteCheckoutSettings_sync] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/deletecheckoutsettings/SyncDeleteCheckoutSettingsCheckoutsettingsname.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/deletecheckoutsettings/SyncDeleteCheckoutSettingsCheckoutsettingsname.java new file mode 100644 index 000000000000..61c3ce0f5efb --- /dev/null +++ b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/deletecheckoutsettings/SyncDeleteCheckoutSettingsCheckoutsettingsname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.accounts.v1beta.samples; + +// [START merchantapi_v1beta_generated_CheckoutSettingsService_DeleteCheckoutSettings_Checkoutsettingsname_sync] +import com.google.protobuf.Empty; +import com.google.shopping.merchant.accounts.v1beta.CheckoutSettingsName; +import com.google.shopping.merchant.accounts.v1beta.CheckoutSettingsServiceClient; + +public class SyncDeleteCheckoutSettingsCheckoutsettingsname { + + public static void main(String[] args) throws Exception { + syncDeleteCheckoutSettingsCheckoutsettingsname(); + } + + public static void syncDeleteCheckoutSettingsCheckoutsettingsname() 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 (CheckoutSettingsServiceClient checkoutSettingsServiceClient = + CheckoutSettingsServiceClient.create()) { + CheckoutSettingsName name = CheckoutSettingsName.of("[ACCOUNT]", "[PROGRAM]"); + checkoutSettingsServiceClient.deleteCheckoutSettings(name); + } + } +} +// [END merchantapi_v1beta_generated_CheckoutSettingsService_DeleteCheckoutSettings_Checkoutsettingsname_sync] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/deletecheckoutsettings/SyncDeleteCheckoutSettingsString.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/deletecheckoutsettings/SyncDeleteCheckoutSettingsString.java new file mode 100644 index 000000000000..7edc5da416ca --- /dev/null +++ b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/deletecheckoutsettings/SyncDeleteCheckoutSettingsString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.accounts.v1beta.samples; + +// [START merchantapi_v1beta_generated_CheckoutSettingsService_DeleteCheckoutSettings_String_sync] +import com.google.protobuf.Empty; +import com.google.shopping.merchant.accounts.v1beta.CheckoutSettingsName; +import com.google.shopping.merchant.accounts.v1beta.CheckoutSettingsServiceClient; + +public class SyncDeleteCheckoutSettingsString { + + public static void main(String[] args) throws Exception { + syncDeleteCheckoutSettingsString(); + } + + public static void syncDeleteCheckoutSettingsString() 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 (CheckoutSettingsServiceClient checkoutSettingsServiceClient = + CheckoutSettingsServiceClient.create()) { + String name = CheckoutSettingsName.of("[ACCOUNT]", "[PROGRAM]").toString(); + checkoutSettingsServiceClient.deleteCheckoutSettings(name); + } + } +} +// [END merchantapi_v1beta_generated_CheckoutSettingsService_DeleteCheckoutSettings_String_sync] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/getcheckoutsettings/AsyncGetCheckoutSettings.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/getcheckoutsettings/AsyncGetCheckoutSettings.java new file mode 100644 index 000000000000..cee95353ca45 --- /dev/null +++ b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/getcheckoutsettings/AsyncGetCheckoutSettings.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.accounts.v1beta.samples; + +// [START merchantapi_v1beta_generated_CheckoutSettingsService_GetCheckoutSettings_async] +import com.google.api.core.ApiFuture; +import com.google.shopping.merchant.accounts.v1beta.CheckoutSettings; +import com.google.shopping.merchant.accounts.v1beta.CheckoutSettingsName; +import com.google.shopping.merchant.accounts.v1beta.CheckoutSettingsServiceClient; +import com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest; + +public class AsyncGetCheckoutSettings { + + public static void main(String[] args) throws Exception { + asyncGetCheckoutSettings(); + } + + public static void asyncGetCheckoutSettings() 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 (CheckoutSettingsServiceClient checkoutSettingsServiceClient = + CheckoutSettingsServiceClient.create()) { + GetCheckoutSettingsRequest request = + GetCheckoutSettingsRequest.newBuilder() + .setName(CheckoutSettingsName.of("[ACCOUNT]", "[PROGRAM]").toString()) + .build(); + ApiFuture future = + checkoutSettingsServiceClient.getCheckoutSettingsCallable().futureCall(request); + // Do something. + CheckoutSettings response = future.get(); + } + } +} +// [END merchantapi_v1beta_generated_CheckoutSettingsService_GetCheckoutSettings_async] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/getcheckoutsettings/SyncGetCheckoutSettings.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/getcheckoutsettings/SyncGetCheckoutSettings.java new file mode 100644 index 000000000000..d20d8b88e4a8 --- /dev/null +++ b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/getcheckoutsettings/SyncGetCheckoutSettings.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.accounts.v1beta.samples; + +// [START merchantapi_v1beta_generated_CheckoutSettingsService_GetCheckoutSettings_sync] +import com.google.shopping.merchant.accounts.v1beta.CheckoutSettings; +import com.google.shopping.merchant.accounts.v1beta.CheckoutSettingsName; +import com.google.shopping.merchant.accounts.v1beta.CheckoutSettingsServiceClient; +import com.google.shopping.merchant.accounts.v1beta.GetCheckoutSettingsRequest; + +public class SyncGetCheckoutSettings { + + public static void main(String[] args) throws Exception { + syncGetCheckoutSettings(); + } + + public static void syncGetCheckoutSettings() 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 (CheckoutSettingsServiceClient checkoutSettingsServiceClient = + CheckoutSettingsServiceClient.create()) { + GetCheckoutSettingsRequest request = + GetCheckoutSettingsRequest.newBuilder() + .setName(CheckoutSettingsName.of("[ACCOUNT]", "[PROGRAM]").toString()) + .build(); + CheckoutSettings response = checkoutSettingsServiceClient.getCheckoutSettings(request); + } + } +} +// [END merchantapi_v1beta_generated_CheckoutSettingsService_GetCheckoutSettings_sync] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/getcheckoutsettings/SyncGetCheckoutSettingsCheckoutsettingsname.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/getcheckoutsettings/SyncGetCheckoutSettingsCheckoutsettingsname.java new file mode 100644 index 000000000000..26f734dfd3cc --- /dev/null +++ b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/getcheckoutsettings/SyncGetCheckoutSettingsCheckoutsettingsname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.accounts.v1beta.samples; + +// [START merchantapi_v1beta_generated_CheckoutSettingsService_GetCheckoutSettings_Checkoutsettingsname_sync] +import com.google.shopping.merchant.accounts.v1beta.CheckoutSettings; +import com.google.shopping.merchant.accounts.v1beta.CheckoutSettingsName; +import com.google.shopping.merchant.accounts.v1beta.CheckoutSettingsServiceClient; + +public class SyncGetCheckoutSettingsCheckoutsettingsname { + + public static void main(String[] args) throws Exception { + syncGetCheckoutSettingsCheckoutsettingsname(); + } + + public static void syncGetCheckoutSettingsCheckoutsettingsname() 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 (CheckoutSettingsServiceClient checkoutSettingsServiceClient = + CheckoutSettingsServiceClient.create()) { + CheckoutSettingsName name = CheckoutSettingsName.of("[ACCOUNT]", "[PROGRAM]"); + CheckoutSettings response = checkoutSettingsServiceClient.getCheckoutSettings(name); + } + } +} +// [END merchantapi_v1beta_generated_CheckoutSettingsService_GetCheckoutSettings_Checkoutsettingsname_sync] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/getcheckoutsettings/SyncGetCheckoutSettingsString.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/getcheckoutsettings/SyncGetCheckoutSettingsString.java new file mode 100644 index 000000000000..24f08ba38a18 --- /dev/null +++ b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/getcheckoutsettings/SyncGetCheckoutSettingsString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.accounts.v1beta.samples; + +// [START merchantapi_v1beta_generated_CheckoutSettingsService_GetCheckoutSettings_String_sync] +import com.google.shopping.merchant.accounts.v1beta.CheckoutSettings; +import com.google.shopping.merchant.accounts.v1beta.CheckoutSettingsName; +import com.google.shopping.merchant.accounts.v1beta.CheckoutSettingsServiceClient; + +public class SyncGetCheckoutSettingsString { + + public static void main(String[] args) throws Exception { + syncGetCheckoutSettingsString(); + } + + public static void syncGetCheckoutSettingsString() 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 (CheckoutSettingsServiceClient checkoutSettingsServiceClient = + CheckoutSettingsServiceClient.create()) { + String name = CheckoutSettingsName.of("[ACCOUNT]", "[PROGRAM]").toString(); + CheckoutSettings response = checkoutSettingsServiceClient.getCheckoutSettings(name); + } + } +} +// [END merchantapi_v1beta_generated_CheckoutSettingsService_GetCheckoutSettings_String_sync] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/updatecheckoutsettings/AsyncUpdateCheckoutSettings.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/updatecheckoutsettings/AsyncUpdateCheckoutSettings.java new file mode 100644 index 000000000000..becdfb5fd83b --- /dev/null +++ b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/updatecheckoutsettings/AsyncUpdateCheckoutSettings.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.accounts.v1beta.samples; + +// [START merchantapi_v1beta_generated_CheckoutSettingsService_UpdateCheckoutSettings_async] +import com.google.api.core.ApiFuture; +import com.google.protobuf.FieldMask; +import com.google.shopping.merchant.accounts.v1beta.CheckoutSettings; +import com.google.shopping.merchant.accounts.v1beta.CheckoutSettingsServiceClient; +import com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest; + +public class AsyncUpdateCheckoutSettings { + + public static void main(String[] args) throws Exception { + asyncUpdateCheckoutSettings(); + } + + public static void asyncUpdateCheckoutSettings() 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 (CheckoutSettingsServiceClient checkoutSettingsServiceClient = + CheckoutSettingsServiceClient.create()) { + UpdateCheckoutSettingsRequest request = + UpdateCheckoutSettingsRequest.newBuilder() + .setCheckoutSettings(CheckoutSettings.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + checkoutSettingsServiceClient.updateCheckoutSettingsCallable().futureCall(request); + // Do something. + CheckoutSettings response = future.get(); + } + } +} +// [END merchantapi_v1beta_generated_CheckoutSettingsService_UpdateCheckoutSettings_async] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/updatecheckoutsettings/SyncUpdateCheckoutSettings.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/updatecheckoutsettings/SyncUpdateCheckoutSettings.java new file mode 100644 index 000000000000..ed88aecd3dc9 --- /dev/null +++ b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/updatecheckoutsettings/SyncUpdateCheckoutSettings.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.accounts.v1beta.samples; + +// [START merchantapi_v1beta_generated_CheckoutSettingsService_UpdateCheckoutSettings_sync] +import com.google.protobuf.FieldMask; +import com.google.shopping.merchant.accounts.v1beta.CheckoutSettings; +import com.google.shopping.merchant.accounts.v1beta.CheckoutSettingsServiceClient; +import com.google.shopping.merchant.accounts.v1beta.UpdateCheckoutSettingsRequest; + +public class SyncUpdateCheckoutSettings { + + public static void main(String[] args) throws Exception { + syncUpdateCheckoutSettings(); + } + + public static void syncUpdateCheckoutSettings() 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 (CheckoutSettingsServiceClient checkoutSettingsServiceClient = + CheckoutSettingsServiceClient.create()) { + UpdateCheckoutSettingsRequest request = + UpdateCheckoutSettingsRequest.newBuilder() + .setCheckoutSettings(CheckoutSettings.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + CheckoutSettings response = checkoutSettingsServiceClient.updateCheckoutSettings(request); + } + } +} +// [END merchantapi_v1beta_generated_CheckoutSettingsService_UpdateCheckoutSettings_sync] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/updatecheckoutsettings/SyncUpdateCheckoutSettingsCheckoutsettingsFieldmask.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/updatecheckoutsettings/SyncUpdateCheckoutSettingsCheckoutsettingsFieldmask.java new file mode 100644 index 000000000000..9da2fd3a20a4 --- /dev/null +++ b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservice/updatecheckoutsettings/SyncUpdateCheckoutSettingsCheckoutsettingsFieldmask.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.accounts.v1beta.samples; + +// [START merchantapi_v1beta_generated_CheckoutSettingsService_UpdateCheckoutSettings_CheckoutsettingsFieldmask_sync] +import com.google.protobuf.FieldMask; +import com.google.shopping.merchant.accounts.v1beta.CheckoutSettings; +import com.google.shopping.merchant.accounts.v1beta.CheckoutSettingsServiceClient; + +public class SyncUpdateCheckoutSettingsCheckoutsettingsFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateCheckoutSettingsCheckoutsettingsFieldmask(); + } + + public static void syncUpdateCheckoutSettingsCheckoutsettingsFieldmask() 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 (CheckoutSettingsServiceClient checkoutSettingsServiceClient = + CheckoutSettingsServiceClient.create()) { + CheckoutSettings checkoutSettings = CheckoutSettings.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + CheckoutSettings response = + checkoutSettingsServiceClient.updateCheckoutSettings(checkoutSettings, updateMask); + } + } +} +// [END merchantapi_v1beta_generated_CheckoutSettingsService_UpdateCheckoutSettings_CheckoutsettingsFieldmask_sync] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservicesettings/getcheckoutsettings/SyncGetCheckoutSettings.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservicesettings/getcheckoutsettings/SyncGetCheckoutSettings.java new file mode 100644 index 000000000000..f75bce0adabe --- /dev/null +++ b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/checkoutsettingsservicesettings/getcheckoutsettings/SyncGetCheckoutSettings.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.accounts.v1beta.samples; + +// [START merchantapi_v1beta_generated_CheckoutSettingsServiceSettings_GetCheckoutSettings_sync] +import com.google.shopping.merchant.accounts.v1beta.CheckoutSettingsServiceSettings; +import java.time.Duration; + +public class SyncGetCheckoutSettings { + + public static void main(String[] args) throws Exception { + syncGetCheckoutSettings(); + } + + public static void syncGetCheckoutSettings() 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 + CheckoutSettingsServiceSettings.Builder checkoutSettingsServiceSettingsBuilder = + CheckoutSettingsServiceSettings.newBuilder(); + checkoutSettingsServiceSettingsBuilder + .getCheckoutSettingsSettings() + .setRetrySettings( + checkoutSettingsServiceSettingsBuilder + .getCheckoutSettingsSettings() + .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()); + CheckoutSettingsServiceSettings checkoutSettingsServiceSettings = + checkoutSettingsServiceSettingsBuilder.build(); + } +} +// [END merchantapi_v1beta_generated_CheckoutSettingsServiceSettings_GetCheckoutSettings_sync] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/stub/checkoutsettingsservicestubsettings/getcheckoutsettings/SyncGetCheckoutSettings.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/stub/checkoutsettingsservicestubsettings/getcheckoutsettings/SyncGetCheckoutSettings.java new file mode 100644 index 000000000000..d853f4c9f0cf --- /dev/null +++ b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1beta/stub/checkoutsettingsservicestubsettings/getcheckoutsettings/SyncGetCheckoutSettings.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.accounts.v1beta.stub.samples; + +// [START merchantapi_v1beta_generated_CheckoutSettingsServiceStubSettings_GetCheckoutSettings_sync] +import com.google.shopping.merchant.accounts.v1beta.stub.CheckoutSettingsServiceStubSettings; +import java.time.Duration; + +public class SyncGetCheckoutSettings { + + public static void main(String[] args) throws Exception { + syncGetCheckoutSettings(); + } + + public static void syncGetCheckoutSettings() 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 + CheckoutSettingsServiceStubSettings.Builder checkoutSettingsServiceSettingsBuilder = + CheckoutSettingsServiceStubSettings.newBuilder(); + checkoutSettingsServiceSettingsBuilder + .getCheckoutSettingsSettings() + .setRetrySettings( + checkoutSettingsServiceSettingsBuilder + .getCheckoutSettingsSettings() + .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()); + CheckoutSettingsServiceStubSettings checkoutSettingsServiceSettings = + checkoutSettingsServiceSettingsBuilder.build(); + } +} +// [END merchantapi_v1beta_generated_CheckoutSettingsServiceStubSettings_GetCheckoutSettings_sync] diff --git a/java-shopping-merchant-conversions/CHANGELOG.md b/java-shopping-merchant-conversions/CHANGELOG.md index d13fc926fa89..bba2831aaeaa 100644 --- a/java-shopping-merchant-conversions/CHANGELOG.md +++ b/java-shopping-merchant-conversions/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.27.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.26.0 (2025-06-25) ### Dependencies diff --git a/java-shopping-merchant-conversions/README.md b/java-shopping-merchant-conversions/README.md index d82eeba1cf87..64bbdf3f7417 100644 --- a/java-shopping-merchant-conversions/README.md +++ b/java-shopping-merchant-conversions/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-conversions - 0.25.0 + 0.26.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-conversions:0.25.0' +implementation 'com.google.shopping:google-shopping-merchant-conversions:0.26.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-conversions" % "0.25.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-conversions" % "0.26.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-conversions.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-conversions/0.25.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-conversions/0.26.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/google-shopping-merchant-conversions-bom/pom.xml b/java-shopping-merchant-conversions/google-shopping-merchant-conversions-bom/pom.xml index 4c1780904f07..cf8542b0f3e5 100644 --- a/java-shopping-merchant-conversions/google-shopping-merchant-conversions-bom/pom.xml +++ b/java-shopping-merchant-conversions/google-shopping-merchant-conversions-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-conversions-bom - 0.26.0 + 0.27.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.shopping google-shopping-merchant-conversions - 0.26.0 + 0.27.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-conversions-v1beta - 0.26.0 + 0.27.0 com.google.shopping.api.grpc proto-google-shopping-merchant-conversions-v1beta - 0.26.0 + 0.27.0
      diff --git a/java-shopping-merchant-conversions/google-shopping-merchant-conversions/pom.xml b/java-shopping-merchant-conversions/google-shopping-merchant-conversions/pom.xml index e29c78b0b680..ef90a581a8e1 100644 --- a/java-shopping-merchant-conversions/google-shopping-merchant-conversions/pom.xml +++ b/java-shopping-merchant-conversions/google-shopping-merchant-conversions/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-conversions - 0.26.0 + 0.27.0 jar Google Merchant Conversions API Merchant Conversions API Programmatically manage your Merchant Center accounts. com.google.shopping google-shopping-merchant-conversions-parent - 0.26.0 + 0.27.0 google-shopping-merchant-conversions diff --git a/java-shopping-merchant-conversions/grpc-google-shopping-merchant-conversions-v1beta/pom.xml b/java-shopping-merchant-conversions/grpc-google-shopping-merchant-conversions-v1beta/pom.xml index 2fa0319f33f1..bbb4e4695324 100644 --- a/java-shopping-merchant-conversions/grpc-google-shopping-merchant-conversions-v1beta/pom.xml +++ b/java-shopping-merchant-conversions/grpc-google-shopping-merchant-conversions-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-conversions-v1beta - 0.26.0 + 0.27.0 grpc-google-shopping-merchant-conversions-v1beta GRPC library for google-shopping-merchant-conversions com.google.shopping google-shopping-merchant-conversions-parent - 0.26.0 + 0.27.0 diff --git a/java-shopping-merchant-conversions/pom.xml b/java-shopping-merchant-conversions/pom.xml index f5936e78939f..8beec9fbed48 100644 --- a/java-shopping-merchant-conversions/pom.xml +++ b/java-shopping-merchant-conversions/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-conversions-parent pom - 0.26.0 + 0.27.0 Google Merchant Conversions API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.shopping google-shopping-merchant-conversions - 0.26.0 + 0.27.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-conversions-v1beta - 0.26.0 + 0.27.0 com.google.shopping.api.grpc proto-google-shopping-merchant-conversions-v1beta - 0.26.0 + 0.27.0 diff --git a/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1beta/pom.xml b/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1beta/pom.xml index d7463e8dfa15..9b8868567477 100644 --- a/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1beta/pom.xml +++ b/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-conversions-v1beta - 0.26.0 + 0.27.0 proto-google-shopping-merchant-conversions-v1beta Proto library for google-shopping-merchant-conversions com.google.shopping google-shopping-merchant-conversions-parent - 0.26.0 + 0.27.0 diff --git a/java-shopping-merchant-datasources/CHANGELOG.md b/java-shopping-merchant-datasources/CHANGELOG.md index c86abd56eced..33bb7ffbb059 100644 --- a/java-shopping-merchant-datasources/CHANGELOG.md +++ b/java-shopping-merchant-datasources/CHANGELOG.md @@ -1,5 +1,20 @@ # Changelog +## 0.24.0 (2025-07-11) + +### Features + +* new module for merchant-reports-v1alpha ([#11672](https://github.com/googleapis/google-cloud-java/issues/11672)) ([e611ec2](https://github.com/googleapis/google-cloud-java/commit/e611ec22adb990a3ca6b2785b183618231309b92)) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.23.0 (2025-06-25) ### Dependencies diff --git a/java-shopping-merchant-datasources/README.md b/java-shopping-merchant-datasources/README.md index e5ef83bf949c..88375d38b60a 100644 --- a/java-shopping-merchant-datasources/README.md +++ b/java-shopping-merchant-datasources/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-datasources - 0.22.0 + 0.23.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-datasources:0.22.0' +implementation 'com.google.shopping:google-shopping-merchant-datasources:0.23.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-datasources" % "0.22.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-datasources" % "0.23.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-datasources.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-datasources/0.22.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-datasources/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-shopping-merchant-datasources/google-shopping-merchant-datasources-bom/pom.xml b/java-shopping-merchant-datasources/google-shopping-merchant-datasources-bom/pom.xml index bbda3cac9a8c..04e260acc162 100644 --- a/java-shopping-merchant-datasources/google-shopping-merchant-datasources-bom/pom.xml +++ b/java-shopping-merchant-datasources/google-shopping-merchant-datasources-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-datasources-bom - 0.23.0 + 0.24.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.shopping google-shopping-merchant-datasources - 0.23.0 + 0.24.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-datasources-v1beta - 0.23.0 + 0.24.0 com.google.shopping.api.grpc proto-google-shopping-merchant-datasources-v1beta - 0.23.0 + 0.24.0 diff --git a/java-shopping-merchant-datasources/google-shopping-merchant-datasources/pom.xml b/java-shopping-merchant-datasources/google-shopping-merchant-datasources/pom.xml index 0ca900d53d5e..d5e67bcbc95b 100644 --- a/java-shopping-merchant-datasources/google-shopping-merchant-datasources/pom.xml +++ b/java-shopping-merchant-datasources/google-shopping-merchant-datasources/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-datasources - 0.23.0 + 0.24.0 jar Google Merchant API Merchant API Programmatically manage your Merchant Center accounts. com.google.shopping google-shopping-merchant-datasources-parent - 0.23.0 + 0.24.0 google-shopping-merchant-datasources diff --git a/java-shopping-merchant-datasources/grpc-google-shopping-merchant-datasources-v1beta/pom.xml b/java-shopping-merchant-datasources/grpc-google-shopping-merchant-datasources-v1beta/pom.xml index 050e4231308e..e8258ea6dc86 100644 --- a/java-shopping-merchant-datasources/grpc-google-shopping-merchant-datasources-v1beta/pom.xml +++ b/java-shopping-merchant-datasources/grpc-google-shopping-merchant-datasources-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-datasources-v1beta - 0.23.0 + 0.24.0 grpc-google-shopping-merchant-datasources-v1beta GRPC library for google-shopping-merchant-datasources com.google.shopping google-shopping-merchant-datasources-parent - 0.23.0 + 0.24.0 diff --git a/java-shopping-merchant-datasources/pom.xml b/java-shopping-merchant-datasources/pom.xml index a6dd2bbbca75..cb98085614a5 100644 --- a/java-shopping-merchant-datasources/pom.xml +++ b/java-shopping-merchant-datasources/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-datasources-parent pom - 0.23.0 + 0.24.0 Google Merchant API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.shopping google-shopping-merchant-datasources - 0.23.0 + 0.24.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-datasources-v1beta - 0.23.0 + 0.24.0 com.google.shopping.api.grpc proto-google-shopping-merchant-datasources-v1beta - 0.23.0 + 0.24.0 diff --git a/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/pom.xml b/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/pom.xml index 57d8a0381905..7adebbeacb54 100644 --- a/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/pom.xml +++ b/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-datasources-v1beta - 0.23.0 + 0.24.0 proto-google-shopping-merchant-datasources-v1beta Proto library for google-shopping-merchant-datasources com.google.shopping google-shopping-merchant-datasources-parent - 0.23.0 + 0.24.0 diff --git a/java-shopping-merchant-inventories/CHANGELOG.md b/java-shopping-merchant-inventories/CHANGELOG.md index e78f81116142..eb026b5deb5d 100644 --- a/java-shopping-merchant-inventories/CHANGELOG.md +++ b/java-shopping-merchant-inventories/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## 0.44.0 (2025-07-11) + +### Features + +* new module for merchant-reports-v1alpha ([#11672](https://github.com/googleapis/google-cloud-java/issues/11672)) ([e611ec2](https://github.com/googleapis/google-cloud-java/commit/e611ec22adb990a3ca6b2785b183618231309b92)) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.43.0 (2025-06-25) ### Dependencies diff --git a/java-shopping-merchant-inventories/README.md b/java-shopping-merchant-inventories/README.md index 0f5d85f55d39..e68a2cafb190 100644 --- a/java-shopping-merchant-inventories/README.md +++ b/java-shopping-merchant-inventories/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-inventories - 0.42.0 + 0.43.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-inventories:0.42.0' +implementation 'com.google.shopping:google-shopping-merchant-inventories:0.43.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-inventories" % "0.42.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-inventories" % "0.43.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-inventories.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-inventories/0.42.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-inventories/0.43.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/google-shopping-merchant-inventories-bom/pom.xml b/java-shopping-merchant-inventories/google-shopping-merchant-inventories-bom/pom.xml index 866b74aa31fc..16682125b0a7 100644 --- a/java-shopping-merchant-inventories/google-shopping-merchant-inventories-bom/pom.xml +++ b/java-shopping-merchant-inventories/google-shopping-merchant-inventories-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.shopping google-shopping-merchant-inventories-bom - 0.43.0 + 0.44.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.shopping google-shopping-merchant-inventories - 0.43.0 + 0.44.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-inventories-v1beta - 0.43.0 + 0.44.0 com.google.shopping.api.grpc proto-google-shopping-merchant-inventories-v1beta - 0.43.0 + 0.44.0 diff --git a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/pom.xml b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/pom.xml index 95017365cbb9..2014279596d5 100644 --- a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/pom.xml +++ b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-inventories - 0.43.0 + 0.44.0 jar Google Merchant API Merchant API Programmatically manage your Merchant Center accounts. com.google.shopping google-shopping-merchant-inventories-parent - 0.43.0 + 0.44.0 google-shopping-merchant-inventories diff --git a/java-shopping-merchant-inventories/grpc-google-shopping-merchant-inventories-v1beta/pom.xml b/java-shopping-merchant-inventories/grpc-google-shopping-merchant-inventories-v1beta/pom.xml index 6022615ed453..3a12f836bae5 100644 --- a/java-shopping-merchant-inventories/grpc-google-shopping-merchant-inventories-v1beta/pom.xml +++ b/java-shopping-merchant-inventories/grpc-google-shopping-merchant-inventories-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-inventories-v1beta - 0.43.0 + 0.44.0 grpc-google-shopping-merchant-inventories-v1beta GRPC library for google-shopping-merchant-inventories com.google.shopping google-shopping-merchant-inventories-parent - 0.43.0 + 0.44.0 diff --git a/java-shopping-merchant-inventories/pom.xml b/java-shopping-merchant-inventories/pom.xml index b2ef66418184..cea7e90abb15 100644 --- a/java-shopping-merchant-inventories/pom.xml +++ b/java-shopping-merchant-inventories/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-inventories-parent pom - 0.43.0 + 0.44.0 Google Merchant API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.shopping google-shopping-merchant-inventories - 0.43.0 + 0.44.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-inventories-v1beta - 0.43.0 + 0.44.0 com.google.shopping.api.grpc proto-google-shopping-merchant-inventories-v1beta - 0.43.0 + 0.44.0 diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/pom.xml b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/pom.xml index c4b0732a433a..7b81f102aa26 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/pom.xml +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-inventories-v1beta - 0.43.0 + 0.44.0 proto-google-shopping-merchant-inventories-v1beta Proto library for google-shopping-merchant-inventories com.google.shopping google-shopping-merchant-inventories-parent - 0.43.0 + 0.44.0 diff --git a/java-shopping-merchant-lfp/CHANGELOG.md b/java-shopping-merchant-lfp/CHANGELOG.md index 752edba82a31..3a4aa2deecd3 100644 --- a/java-shopping-merchant-lfp/CHANGELOG.md +++ b/java-shopping-merchant-lfp/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.27.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.26.0 (2025-06-25) ### Dependencies diff --git a/java-shopping-merchant-lfp/README.md b/java-shopping-merchant-lfp/README.md index 56ad7b0f735e..8dd774467e12 100644 --- a/java-shopping-merchant-lfp/README.md +++ b/java-shopping-merchant-lfp/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-lfp - 0.25.0 + 0.26.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-lfp:0.25.0' +implementation 'com.google.shopping:google-shopping-merchant-lfp:0.26.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-lfp" % "0.25.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-lfp" % "0.26.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-lfp.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-lfp/0.25.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-lfp/0.26.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/google-shopping-merchant-lfp-bom/pom.xml b/java-shopping-merchant-lfp/google-shopping-merchant-lfp-bom/pom.xml index af0c4675a643..6373078dd908 100644 --- a/java-shopping-merchant-lfp/google-shopping-merchant-lfp-bom/pom.xml +++ b/java-shopping-merchant-lfp/google-shopping-merchant-lfp-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-lfp-bom - 0.26.0 + 0.27.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.shopping google-shopping-merchant-lfp - 0.26.0 + 0.27.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-lfp-v1beta - 0.26.0 + 0.27.0 com.google.shopping.api.grpc proto-google-shopping-merchant-lfp-v1beta - 0.26.0 + 0.27.0 diff --git a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/pom.xml b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/pom.xml index 840fb051061d..c2a8afc906f4 100644 --- a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/pom.xml +++ b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-lfp - 0.26.0 + 0.27.0 jar Google Merchant LFP API Merchant LFP API Programmatically manage your Merchant Center accounts. com.google.shopping google-shopping-merchant-lfp-parent - 0.26.0 + 0.27.0 google-shopping-merchant-lfp diff --git a/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1beta/pom.xml b/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1beta/pom.xml index 1f72aa2c2bda..0c1cc5c2a791 100644 --- a/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1beta/pom.xml +++ b/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-lfp-v1beta - 0.26.0 + 0.27.0 grpc-google-shopping-merchant-lfp-v1beta GRPC library for google-shopping-merchant-lfp com.google.shopping google-shopping-merchant-lfp-parent - 0.26.0 + 0.27.0 diff --git a/java-shopping-merchant-lfp/pom.xml b/java-shopping-merchant-lfp/pom.xml index 72db3dfc51ea..58a9dd12be9a 100644 --- a/java-shopping-merchant-lfp/pom.xml +++ b/java-shopping-merchant-lfp/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-lfp-parent pom - 0.26.0 + 0.27.0 Google Merchant LFP API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.shopping google-shopping-merchant-lfp - 0.26.0 + 0.27.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-lfp-v1beta - 0.26.0 + 0.27.0 com.google.shopping.api.grpc proto-google-shopping-merchant-lfp-v1beta - 0.26.0 + 0.27.0 diff --git a/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/pom.xml b/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/pom.xml index cffb27f9813e..c9b34bee7122 100644 --- a/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/pom.xml +++ b/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-lfp-v1beta - 0.26.0 + 0.27.0 proto-google-shopping-merchant-lfp-v1beta Proto library for google-shopping-merchant-lfp com.google.shopping google-shopping-merchant-lfp-parent - 0.26.0 + 0.27.0 diff --git a/java-shopping-merchant-notifications/CHANGELOG.md b/java-shopping-merchant-notifications/CHANGELOG.md index 990faec26141..a10e571ef22c 100644 --- a/java-shopping-merchant-notifications/CHANGELOG.md +++ b/java-shopping-merchant-notifications/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.27.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.26.0 (2025-06-25) ### Dependencies diff --git a/java-shopping-merchant-notifications/README.md b/java-shopping-merchant-notifications/README.md index 9c6de04f687e..933e3cbb5d2a 100644 --- a/java-shopping-merchant-notifications/README.md +++ b/java-shopping-merchant-notifications/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-notifications - 0.26.0 + 0.27.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-notifications:0.26.0' +implementation 'com.google.shopping:google-shopping-merchant-notifications:0.27.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-notifications" % "0.26.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-notifications" % "0.27.0" ``` diff --git a/java-shopping-merchant-notifications/google-shopping-merchant-notifications-bom/pom.xml b/java-shopping-merchant-notifications/google-shopping-merchant-notifications-bom/pom.xml index 8043f262d85d..d9e3350a7f13 100644 --- a/java-shopping-merchant-notifications/google-shopping-merchant-notifications-bom/pom.xml +++ b/java-shopping-merchant-notifications/google-shopping-merchant-notifications-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-notifications-bom - 0.26.0 + 0.27.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.shopping google-shopping-merchant-notifications - 0.26.0 + 0.27.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-notifications-v1beta - 0.26.0 + 0.27.0 com.google.shopping.api.grpc proto-google-shopping-merchant-notifications-v1beta - 0.26.0 + 0.27.0 diff --git a/java-shopping-merchant-notifications/google-shopping-merchant-notifications/pom.xml b/java-shopping-merchant-notifications/google-shopping-merchant-notifications/pom.xml index 6143b4fafbc7..14e8417e2b63 100644 --- a/java-shopping-merchant-notifications/google-shopping-merchant-notifications/pom.xml +++ b/java-shopping-merchant-notifications/google-shopping-merchant-notifications/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-notifications - 0.26.0 + 0.27.0 jar Google Merchant Notifications API Merchant Notifications API Programmatically manage your Merchant Center accounts. com.google.shopping google-shopping-merchant-notifications-parent - 0.26.0 + 0.27.0 google-shopping-merchant-notifications diff --git a/java-shopping-merchant-notifications/grpc-google-shopping-merchant-notifications-v1beta/pom.xml b/java-shopping-merchant-notifications/grpc-google-shopping-merchant-notifications-v1beta/pom.xml index b5cea4d9a0eb..a9267b419588 100644 --- a/java-shopping-merchant-notifications/grpc-google-shopping-merchant-notifications-v1beta/pom.xml +++ b/java-shopping-merchant-notifications/grpc-google-shopping-merchant-notifications-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-notifications-v1beta - 0.26.0 + 0.27.0 grpc-google-shopping-merchant-notifications-v1beta GRPC library for google-shopping-merchant-notifications com.google.shopping google-shopping-merchant-notifications-parent - 0.26.0 + 0.27.0 diff --git a/java-shopping-merchant-notifications/pom.xml b/java-shopping-merchant-notifications/pom.xml index 20328b1148dc..443b9b6a1193 100644 --- a/java-shopping-merchant-notifications/pom.xml +++ b/java-shopping-merchant-notifications/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-notifications-parent pom - 0.26.0 + 0.27.0 Google Merchant Notifications API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.shopping google-shopping-merchant-notifications - 0.26.0 + 0.27.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-notifications-v1beta - 0.26.0 + 0.27.0 com.google.shopping.api.grpc proto-google-shopping-merchant-notifications-v1beta - 0.26.0 + 0.27.0 diff --git a/java-shopping-merchant-notifications/proto-google-shopping-merchant-notifications-v1beta/pom.xml b/java-shopping-merchant-notifications/proto-google-shopping-merchant-notifications-v1beta/pom.xml index 626e9ec416b8..bf4bd6a6b82f 100644 --- a/java-shopping-merchant-notifications/proto-google-shopping-merchant-notifications-v1beta/pom.xml +++ b/java-shopping-merchant-notifications/proto-google-shopping-merchant-notifications-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-notifications-v1beta - 0.26.0 + 0.27.0 proto-google-shopping-merchant-notifications-v1beta Proto library for google-shopping-merchant-notifications com.google.shopping google-shopping-merchant-notifications-parent - 0.26.0 + 0.27.0 diff --git a/java-shopping-merchant-product-studio/CHANGELOG.md b/java-shopping-merchant-product-studio/CHANGELOG.md index ee60fecce738..70b81839af3f 100644 --- a/java-shopping-merchant-product-studio/CHANGELOG.md +++ b/java-shopping-merchant-product-studio/CHANGELOG.md @@ -1,5 +1,22 @@ # Changelog +## 0.8.0 (2025-07-11) + +### Features + +* new module for merchant-reports-v1alpha ([#11672](https://github.com/googleapis/google-cloud-java/issues/11672)) ([e611ec2](https://github.com/googleapis/google-cloud-java/commit/e611ec22adb990a3ca6b2785b183618231309b92)) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.7.0 (2025-06-25) ### Dependencies diff --git a/java-shopping-merchant-product-studio/README.md b/java-shopping-merchant-product-studio/README.md index 4292986361e4..83a4001c4339 100644 --- a/java-shopping-merchant-product-studio/README.md +++ b/java-shopping-merchant-product-studio/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-productstudio - 0.6.0 + 0.7.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-productstudio:0.6.0' +implementation 'com.google.shopping:google-shopping-merchant-productstudio:0.7.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-productstudio" % "0.6.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-productstudio" % "0.7.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-productstudio.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-productstudio/0.6.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-productstudio/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-shopping-merchant-product-studio/google-shopping-merchant-productstudio-bom/pom.xml b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio-bom/pom.xml index 6a896ab31c9b..d93add26c618 100644 --- a/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio-bom/pom.xml +++ b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-productstudio-bom - 0.7.0 + 0.8.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.shopping google-shopping-merchant-productstudio - 0.7.0 + 0.8.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-productstudio-v1alpha - 0.7.0 + 0.8.0 com.google.shopping.api.grpc proto-google-shopping-merchant-productstudio-v1alpha - 0.7.0 + 0.8.0 diff --git a/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/pom.xml b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/pom.xml index 9c842f955017..40b6d48f93c7 100644 --- a/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/pom.xml +++ b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-productstudio - 0.7.0 + 0.8.0 jar Google Merchant API Merchant API Programmatically manage your products. com.google.shopping google-shopping-merchant-productstudio-parent - 0.7.0 + 0.8.0 google-shopping-merchant-productstudio diff --git a/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/ImageServiceClient.java b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/ImageServiceClient.java new file mode 100644 index 000000000000..268f86250d5c --- /dev/null +++ b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/ImageServiceClient.java @@ -0,0 +1,534 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.productstudio.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.shopping.merchant.productstudio.v1alpha.stub.ImageServiceStub; +import com.google.shopping.merchant.productstudio.v1alpha.stub.ImageServiceStubSettings; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service that exposes Generative AI (GenAI) endpoints for creating and + * enhancing product image content. + * + *

      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 (ImageServiceClient imageServiceClient = ImageServiceClient.create()) {
      + *   String name = "name3373707";
      + *   GenerateProductImageBackgroundResponse response =
      + *       imageServiceClient.generateProductImageBackground(name);
      + * }
      + * }
      + * + *

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

      GenerateProductImageBackground

      GenerateProductImageBackground generates a new image where the background of the original image is replaced by an AI generated scene based on provided product information and a text prompt.

      + *

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

      + *
        + *
      • generateProductImageBackground(GenerateProductImageBackgroundRequest request) + *

      + *

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

      + *
        + *
      • generateProductImageBackground(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.

      + *
        + *
      • generateProductImageBackgroundCallable() + *

      + *

      RemoveProductImageBackground

      RemoveProductImageBackground generates a new image where the background of the original image is removed.

      + *

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

      + *
        + *
      • removeProductImageBackground(RemoveProductImageBackgroundRequest request) + *

      + *

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

      + *
        + *
      • removeProductImageBackground(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.

      + *
        + *
      • removeProductImageBackgroundCallable() + *

      + *

      UpscaleProductImage

      UpscaleProductImage generates a new image where the resolution of the original image is enhanced.

      + *

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

      + *
        + *
      • upscaleProductImage(UpscaleProductImageRequest request) + *

      + *

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

      + *
        + *
      • upscaleProductImage(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.

      + *
        + *
      • upscaleProductImageCallable() + *

      + *
      + * + *

      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 ImageServiceSettings 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
      + * ImageServiceSettings imageServiceSettings =
      + *     ImageServiceSettings.newBuilder()
      + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
      + *         .build();
      + * ImageServiceClient imageServiceClient = ImageServiceClient.create(imageServiceSettings);
      + * }
      + * + *

      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
      + * ImageServiceSettings imageServiceSettings =
      + *     ImageServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
      + * ImageServiceClient imageServiceClient = ImageServiceClient.create(imageServiceSettings);
      + * }
      + * + *

      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
      + * ImageServiceSettings imageServiceSettings = ImageServiceSettings.newHttpJsonBuilder().build();
      + * ImageServiceClient imageServiceClient = ImageServiceClient.create(imageServiceSettings);
      + * }
      + * + *

      Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class ImageServiceClient implements BackgroundResource { + private final ImageServiceSettings settings; + private final ImageServiceStub stub; + + /** Constructs an instance of ImageServiceClient with default settings. */ + public static final ImageServiceClient create() throws IOException { + return create(ImageServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of ImageServiceClient, 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 ImageServiceClient create(ImageServiceSettings settings) throws IOException { + return new ImageServiceClient(settings); + } + + /** + * Constructs an instance of ImageServiceClient, using the given stub for making calls. This is + * for advanced usage - prefer using create(ImageServiceSettings). + */ + public static final ImageServiceClient create(ImageServiceStub stub) { + return new ImageServiceClient(stub); + } + + /** + * Constructs an instance of ImageServiceClient, 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 ImageServiceClient(ImageServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((ImageServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected ImageServiceClient(ImageServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final ImageServiceSettings getSettings() { + return settings; + } + + public ImageServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * GenerateProductImageBackground generates a new image where the background of the original image + * is replaced by an AI generated scene based on provided product information and a text prompt. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (ImageServiceClient imageServiceClient = ImageServiceClient.create()) {
      +   *   String name = "name3373707";
      +   *   GenerateProductImageBackgroundResponse response =
      +   *       imageServiceClient.generateProductImageBackground(name);
      +   * }
      +   * }
      + * + * @param name Required. The account for which to generate an image. This acts as a container for + * the request and does not affect the generation itself. Format: accounts/{account} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final GenerateProductImageBackgroundResponse generateProductImageBackground(String name) { + GenerateProductImageBackgroundRequest request = + GenerateProductImageBackgroundRequest.newBuilder().setName(name).build(); + return generateProductImageBackground(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * GenerateProductImageBackground generates a new image where the background of the original image + * is replaced by an AI generated scene based on provided product information and a text prompt. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (ImageServiceClient imageServiceClient = ImageServiceClient.create()) {
      +   *   GenerateProductImageBackgroundRequest request =
      +   *       GenerateProductImageBackgroundRequest.newBuilder()
      +   *           .setName("name3373707")
      +   *           .setOutputConfig(OutputImageConfig.newBuilder().build())
      +   *           .setInputImage(InputImage.newBuilder().build())
      +   *           .setConfig(GenerateImageBackgroundConfig.newBuilder().build())
      +   *           .build();
      +   *   GenerateProductImageBackgroundResponse response =
      +   *       imageServiceClient.generateProductImageBackground(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 GenerateProductImageBackgroundResponse generateProductImageBackground( + GenerateProductImageBackgroundRequest request) { + return generateProductImageBackgroundCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * GenerateProductImageBackground generates a new image where the background of the original image + * is replaced by an AI generated scene based on provided product information and a text prompt. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (ImageServiceClient imageServiceClient = ImageServiceClient.create()) {
      +   *   GenerateProductImageBackgroundRequest request =
      +   *       GenerateProductImageBackgroundRequest.newBuilder()
      +   *           .setName("name3373707")
      +   *           .setOutputConfig(OutputImageConfig.newBuilder().build())
      +   *           .setInputImage(InputImage.newBuilder().build())
      +   *           .setConfig(GenerateImageBackgroundConfig.newBuilder().build())
      +   *           .build();
      +   *   ApiFuture future =
      +   *       imageServiceClient.generateProductImageBackgroundCallable().futureCall(request);
      +   *   // Do something.
      +   *   GenerateProductImageBackgroundResponse response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable< + GenerateProductImageBackgroundRequest, GenerateProductImageBackgroundResponse> + generateProductImageBackgroundCallable() { + return stub.generateProductImageBackgroundCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * RemoveProductImageBackground generates a new image where the background of the original image + * is removed. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (ImageServiceClient imageServiceClient = ImageServiceClient.create()) {
      +   *   String name = "name3373707";
      +   *   RemoveProductImageBackgroundResponse response =
      +   *       imageServiceClient.removeProductImageBackground(name);
      +   * }
      +   * }
      + * + * @param name Required. The account for which to generate an image. This acts as a container for + * the request and does not affect the generation itself. Format: accounts/{account} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final RemoveProductImageBackgroundResponse removeProductImageBackground(String name) { + RemoveProductImageBackgroundRequest request = + RemoveProductImageBackgroundRequest.newBuilder().setName(name).build(); + return removeProductImageBackground(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * RemoveProductImageBackground generates a new image where the background of the original image + * is removed. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (ImageServiceClient imageServiceClient = ImageServiceClient.create()) {
      +   *   RemoveProductImageBackgroundRequest request =
      +   *       RemoveProductImageBackgroundRequest.newBuilder()
      +   *           .setName("name3373707")
      +   *           .setOutputConfig(OutputImageConfig.newBuilder().build())
      +   *           .setInputImage(InputImage.newBuilder().build())
      +   *           .setConfig(RemoveImageBackgroundConfig.newBuilder().build())
      +   *           .build();
      +   *   RemoveProductImageBackgroundResponse response =
      +   *       imageServiceClient.removeProductImageBackground(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 RemoveProductImageBackgroundResponse removeProductImageBackground( + RemoveProductImageBackgroundRequest request) { + return removeProductImageBackgroundCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * RemoveProductImageBackground generates a new image where the background of the original image + * is removed. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (ImageServiceClient imageServiceClient = ImageServiceClient.create()) {
      +   *   RemoveProductImageBackgroundRequest request =
      +   *       RemoveProductImageBackgroundRequest.newBuilder()
      +   *           .setName("name3373707")
      +   *           .setOutputConfig(OutputImageConfig.newBuilder().build())
      +   *           .setInputImage(InputImage.newBuilder().build())
      +   *           .setConfig(RemoveImageBackgroundConfig.newBuilder().build())
      +   *           .build();
      +   *   ApiFuture future =
      +   *       imageServiceClient.removeProductImageBackgroundCallable().futureCall(request);
      +   *   // Do something.
      +   *   RemoveProductImageBackgroundResponse response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable< + RemoveProductImageBackgroundRequest, RemoveProductImageBackgroundResponse> + removeProductImageBackgroundCallable() { + return stub.removeProductImageBackgroundCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * UpscaleProductImage generates a new image where the resolution of the original image is + * enhanced. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (ImageServiceClient imageServiceClient = ImageServiceClient.create()) {
      +   *   String name = "name3373707";
      +   *   UpscaleProductImageResponse response = imageServiceClient.upscaleProductImage(name);
      +   * }
      +   * }
      + * + * @param name Required. The account for which to generate an image. This acts as a container for + * the request and does not affect the generation itself. Format: accounts/{account} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final UpscaleProductImageResponse upscaleProductImage(String name) { + UpscaleProductImageRequest request = + UpscaleProductImageRequest.newBuilder().setName(name).build(); + return upscaleProductImage(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * UpscaleProductImage generates a new image where the resolution of the original image is + * enhanced. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (ImageServiceClient imageServiceClient = ImageServiceClient.create()) {
      +   *   UpscaleProductImageRequest request =
      +   *       UpscaleProductImageRequest.newBuilder()
      +   *           .setName("name3373707")
      +   *           .setOutputConfig(OutputImageConfig.newBuilder().build())
      +   *           .setInputImage(InputImage.newBuilder().build())
      +   *           .build();
      +   *   UpscaleProductImageResponse response = imageServiceClient.upscaleProductImage(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 UpscaleProductImageResponse upscaleProductImage(UpscaleProductImageRequest request) { + return upscaleProductImageCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * UpscaleProductImage generates a new image where the resolution of the original image is + * enhanced. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (ImageServiceClient imageServiceClient = ImageServiceClient.create()) {
      +   *   UpscaleProductImageRequest request =
      +   *       UpscaleProductImageRequest.newBuilder()
      +   *           .setName("name3373707")
      +   *           .setOutputConfig(OutputImageConfig.newBuilder().build())
      +   *           .setInputImage(InputImage.newBuilder().build())
      +   *           .build();
      +   *   ApiFuture future =
      +   *       imageServiceClient.upscaleProductImageCallable().futureCall(request);
      +   *   // Do something.
      +   *   UpscaleProductImageResponse response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable + upscaleProductImageCallable() { + return stub.upscaleProductImageCallable(); + } + + @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); + } +} diff --git a/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/ImageServiceSettings.java b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/ImageServiceSettings.java new file mode 100644 index 000000000000..1b9f8bd96249 --- /dev/null +++ b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/ImageServiceSettings.java @@ -0,0 +1,245 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.productstudio.v1alpha; + +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.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.shopping.merchant.productstudio.v1alpha.stub.ImageServiceStubSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link ImageServiceClient}. + * + *

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

        + *
      • The default service address (merchantapi.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 generateProductImageBackground: + * + *

      {@code
      + * // This snippet has been automatically generated and should be regarded as a code template only.
      + * // It will require modifications to work:
      + * // - It may require correct/in-range values for request initialization.
      + * // - It may require specifying regional endpoints when creating the service client as shown in
      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      + * ImageServiceSettings.Builder imageServiceSettingsBuilder = ImageServiceSettings.newBuilder();
      + * imageServiceSettingsBuilder
      + *     .generateProductImageBackgroundSettings()
      + *     .setRetrySettings(
      + *         imageServiceSettingsBuilder
      + *             .generateProductImageBackgroundSettings()
      + *             .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());
      + * ImageServiceSettings imageServiceSettings = imageServiceSettingsBuilder.build();
      + * }
      + * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class ImageServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to generateProductImageBackground. */ + public UnaryCallSettings< + GenerateProductImageBackgroundRequest, GenerateProductImageBackgroundResponse> + generateProductImageBackgroundSettings() { + return ((ImageServiceStubSettings) getStubSettings()).generateProductImageBackgroundSettings(); + } + + /** Returns the object with the settings used for calls to removeProductImageBackground. */ + public UnaryCallSettings< + RemoveProductImageBackgroundRequest, RemoveProductImageBackgroundResponse> + removeProductImageBackgroundSettings() { + return ((ImageServiceStubSettings) getStubSettings()).removeProductImageBackgroundSettings(); + } + + /** Returns the object with the settings used for calls to upscaleProductImage. */ + public UnaryCallSettings + upscaleProductImageSettings() { + return ((ImageServiceStubSettings) getStubSettings()).upscaleProductImageSettings(); + } + + public static final ImageServiceSettings create(ImageServiceStubSettings stub) + throws IOException { + return new ImageServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return ImageServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return ImageServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return ImageServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return ImageServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return ImageServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return ImageServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return ImageServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ImageServiceStubSettings.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(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 ImageServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for ImageServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(ImageServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(ImageServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(ImageServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(ImageServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(ImageServiceStubSettings.newHttpJsonBuilder()); + } + + public ImageServiceStubSettings.Builder getStubSettingsBuilder() { + return ((ImageServiceStubSettings.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 generateProductImageBackground. */ + public UnaryCallSettings.Builder< + GenerateProductImageBackgroundRequest, GenerateProductImageBackgroundResponse> + generateProductImageBackgroundSettings() { + return getStubSettingsBuilder().generateProductImageBackgroundSettings(); + } + + /** Returns the builder for the settings used for calls to removeProductImageBackground. */ + public UnaryCallSettings.Builder< + RemoveProductImageBackgroundRequest, RemoveProductImageBackgroundResponse> + removeProductImageBackgroundSettings() { + return getStubSettingsBuilder().removeProductImageBackgroundSettings(); + } + + /** Returns the builder for the settings used for calls to upscaleProductImage. */ + public UnaryCallSettings.Builder + upscaleProductImageSettings() { + return getStubSettingsBuilder().upscaleProductImageSettings(); + } + + @Override + public ImageServiceSettings build() throws IOException { + return new ImageServiceSettings(this); + } + } +} diff --git a/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/gapic_metadata.json b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/gapic_metadata.json index 5a4fdce0deb9..8cde90fbb961 100644 --- a/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/gapic_metadata.json +++ b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/gapic_metadata.json @@ -5,6 +5,24 @@ "protoPackage": "google.shopping.merchant.productstudio.v1alpha", "libraryPackage": "com.google.shopping.merchant.productstudio.v1alpha", "services": { + "ImageService": { + "clients": { + "grpc": { + "libraryClient": "ImageServiceClient", + "rpcs": { + "GenerateProductImageBackground": { + "methods": ["generateProductImageBackground", "generateProductImageBackground", "generateProductImageBackgroundCallable"] + }, + "RemoveProductImageBackground": { + "methods": ["removeProductImageBackground", "removeProductImageBackground", "removeProductImageBackgroundCallable"] + }, + "UpscaleProductImage": { + "methods": ["upscaleProductImage", "upscaleProductImage", "upscaleProductImageCallable"] + } + } + } + } + }, "TextSuggestionsService": { "clients": { "grpc": { diff --git a/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/package-info.java b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/package-info.java index a3ef574f16c2..7dec274a74ab 100644 --- a/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/package-info.java +++ b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/package-info.java @@ -19,6 +19,26 @@ * *

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

      ======================= ImageServiceClient ======================= + * + *

      Service Description: Service that exposes Generative AI (GenAI) endpoints for creating and + * enhancing product image content. + * + *

      Sample for ImageServiceClient: + * + *

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

      ======================= TextSuggestionsServiceClient ======================= * *

      Service Description: Service that exposes Generative AI (GenAI) endpoints for creating and diff --git a/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/stub/GrpcImageServiceCallableFactory.java b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/stub/GrpcImageServiceCallableFactory.java new file mode 100644 index 000000000000..a758c2777799 --- /dev/null +++ b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/stub/GrpcImageServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.productstudio.v1alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the ImageService service API. + * + *

      This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcImageServiceCallableFactory 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-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/stub/GrpcImageServiceStub.java b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/stub/GrpcImageServiceStub.java new file mode 100644 index 000000000000..331ce00b3ee5 --- /dev/null +++ b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/stub/GrpcImageServiceStub.java @@ -0,0 +1,259 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.productstudio.v1alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundRequest; +import com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundResponse; +import com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundRequest; +import com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundResponse; +import com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest; +import com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the ImageService service API. + * + *

      This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcImageServiceStub extends ImageServiceStub { + private static final MethodDescriptor< + GenerateProductImageBackgroundRequest, GenerateProductImageBackgroundResponse> + generateProductImageBackgroundMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.shopping.merchant.productstudio.v1alpha.ImageService/GenerateProductImageBackground") + .setRequestMarshaller( + ProtoUtils.marshaller(GenerateProductImageBackgroundRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + GenerateProductImageBackgroundResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + RemoveProductImageBackgroundRequest, RemoveProductImageBackgroundResponse> + removeProductImageBackgroundMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.shopping.merchant.productstudio.v1alpha.ImageService/RemoveProductImageBackground") + .setRequestMarshaller( + ProtoUtils.marshaller(RemoveProductImageBackgroundRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(RemoveProductImageBackgroundResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + upscaleProductImageMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.shopping.merchant.productstudio.v1alpha.ImageService/UpscaleProductImage") + .setRequestMarshaller( + ProtoUtils.marshaller(UpscaleProductImageRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(UpscaleProductImageResponse.getDefaultInstance())) + .build(); + + private final UnaryCallable< + GenerateProductImageBackgroundRequest, GenerateProductImageBackgroundResponse> + generateProductImageBackgroundCallable; + private final UnaryCallable< + RemoveProductImageBackgroundRequest, RemoveProductImageBackgroundResponse> + removeProductImageBackgroundCallable; + private final UnaryCallable + upscaleProductImageCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcImageServiceStub create(ImageServiceStubSettings settings) + throws IOException { + return new GrpcImageServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcImageServiceStub create(ClientContext clientContext) throws IOException { + return new GrpcImageServiceStub(ImageServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcImageServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcImageServiceStub( + ImageServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcImageServiceStub, 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 GrpcImageServiceStub(ImageServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcImageServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcImageServiceStub, 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 GrpcImageServiceStub( + ImageServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + generateProductImageBackgroundTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(generateProductImageBackgroundMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + removeProductImageBackgroundTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(removeProductImageBackgroundMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + upscaleProductImageTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(upscaleProductImageMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.generateProductImageBackgroundCallable = + callableFactory.createUnaryCallable( + generateProductImageBackgroundTransportSettings, + settings.generateProductImageBackgroundSettings(), + clientContext); + this.removeProductImageBackgroundCallable = + callableFactory.createUnaryCallable( + removeProductImageBackgroundTransportSettings, + settings.removeProductImageBackgroundSettings(), + clientContext); + this.upscaleProductImageCallable = + callableFactory.createUnaryCallable( + upscaleProductImageTransportSettings, + settings.upscaleProductImageSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable< + GenerateProductImageBackgroundRequest, GenerateProductImageBackgroundResponse> + generateProductImageBackgroundCallable() { + return generateProductImageBackgroundCallable; + } + + @Override + public UnaryCallable + removeProductImageBackgroundCallable() { + return removeProductImageBackgroundCallable; + } + + @Override + public UnaryCallable + upscaleProductImageCallable() { + return upscaleProductImageCallable; + } + + @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-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/stub/HttpJsonImageServiceCallableFactory.java b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/stub/HttpJsonImageServiceCallableFactory.java new file mode 100644 index 000000000000..59e8f87c7b42 --- /dev/null +++ b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/stub/HttpJsonImageServiceCallableFactory.java @@ -0,0 +1,103 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.productstudio.v1alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the ImageService service API. + * + *

      This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonImageServiceCallableFactory + 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-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/stub/HttpJsonImageServiceStub.java b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/stub/HttpJsonImageServiceStub.java new file mode 100644 index 000000000000..214b92ea9348 --- /dev/null +++ b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/stub/HttpJsonImageServiceStub.java @@ -0,0 +1,356 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.productstudio.v1alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.protobuf.TypeRegistry; +import com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundRequest; +import com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundResponse; +import com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundRequest; +import com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundResponse; +import com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest; +import com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the ImageService service API. + * + *

      This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonImageServiceStub extends ImageServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor< + GenerateProductImageBackgroundRequest, GenerateProductImageBackgroundResponse> + generateProductImageBackgroundMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.shopping.merchant.productstudio.v1alpha.ImageService/GenerateProductImageBackground") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/productstudio/v1alpha/{name=accounts/*}/generatedImages:generateProductImageBackground", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance( + GenerateProductImageBackgroundResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + RemoveProductImageBackgroundRequest, RemoveProductImageBackgroundResponse> + removeProductImageBackgroundMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.shopping.merchant.productstudio.v1alpha.ImageService/RemoveProductImageBackground") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/productstudio/v1alpha/{name=accounts/*}/generatedImages:removeProductImageBackground", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(RemoveProductImageBackgroundResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + upscaleProductImageMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.shopping.merchant.productstudio.v1alpha.ImageService/UpscaleProductImage") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/productstudio/v1alpha/{name=accounts/*}/generatedImages:upscaleProductImage", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(UpscaleProductImageResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable< + GenerateProductImageBackgroundRequest, GenerateProductImageBackgroundResponse> + generateProductImageBackgroundCallable; + private final UnaryCallable< + RemoveProductImageBackgroundRequest, RemoveProductImageBackgroundResponse> + removeProductImageBackgroundCallable; + private final UnaryCallable + upscaleProductImageCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonImageServiceStub create(ImageServiceStubSettings settings) + throws IOException { + return new HttpJsonImageServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonImageServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonImageServiceStub( + ImageServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonImageServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonImageServiceStub( + ImageServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonImageServiceStub, 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 HttpJsonImageServiceStub(ImageServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonImageServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonImageServiceStub, 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 HttpJsonImageServiceStub( + ImageServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings< + GenerateProductImageBackgroundRequest, GenerateProductImageBackgroundResponse> + generateProductImageBackgroundTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(generateProductImageBackgroundMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + removeProductImageBackgroundTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(removeProductImageBackgroundMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + upscaleProductImageTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(upscaleProductImageMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.generateProductImageBackgroundCallable = + callableFactory.createUnaryCallable( + generateProductImageBackgroundTransportSettings, + settings.generateProductImageBackgroundSettings(), + clientContext); + this.removeProductImageBackgroundCallable = + callableFactory.createUnaryCallable( + removeProductImageBackgroundTransportSettings, + settings.removeProductImageBackgroundSettings(), + clientContext); + this.upscaleProductImageCallable = + callableFactory.createUnaryCallable( + upscaleProductImageTransportSettings, + settings.upscaleProductImageSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(generateProductImageBackgroundMethodDescriptor); + methodDescriptors.add(removeProductImageBackgroundMethodDescriptor); + methodDescriptors.add(upscaleProductImageMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable< + GenerateProductImageBackgroundRequest, GenerateProductImageBackgroundResponse> + generateProductImageBackgroundCallable() { + return generateProductImageBackgroundCallable; + } + + @Override + public UnaryCallable + removeProductImageBackgroundCallable() { + return removeProductImageBackgroundCallable; + } + + @Override + public UnaryCallable + upscaleProductImageCallable() { + return upscaleProductImageCallable; + } + + @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-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/stub/ImageServiceStub.java b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/stub/ImageServiceStub.java new file mode 100644 index 000000000000..8a532e186773 --- /dev/null +++ b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/stub/ImageServiceStub.java @@ -0,0 +1,60 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.productstudio.v1alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundRequest; +import com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundResponse; +import com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundRequest; +import com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundResponse; +import com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest; +import com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the ImageService service API. + * + *

      This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class ImageServiceStub implements BackgroundResource { + + public UnaryCallable< + GenerateProductImageBackgroundRequest, GenerateProductImageBackgroundResponse> + generateProductImageBackgroundCallable() { + throw new UnsupportedOperationException( + "Not implemented: generateProductImageBackgroundCallable()"); + } + + public UnaryCallable + removeProductImageBackgroundCallable() { + throw new UnsupportedOperationException( + "Not implemented: removeProductImageBackgroundCallable()"); + } + + public UnaryCallable + upscaleProductImageCallable() { + throw new UnsupportedOperationException("Not implemented: upscaleProductImageCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/stub/ImageServiceStubSettings.java b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/stub/ImageServiceStubSettings.java new file mode 100644 index 000000000000..f28956b13a27 --- /dev/null +++ b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/stub/ImageServiceStubSettings.java @@ -0,0 +1,417 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.productstudio.v1alpha.stub; + +import com.google.api.core.ApiFunction; +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.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +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.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundRequest; +import com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundResponse; +import com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundRequest; +import com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundResponse; +import com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest; +import com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link ImageServiceStub}. + * + *

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

        + *
      • The default service address (merchantapi.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 generateProductImageBackground: + * + *

      {@code
      + * // This snippet has been automatically generated and should be regarded as a code template only.
      + * // It will require modifications to work:
      + * // - It may require correct/in-range values for request initialization.
      + * // - It may require specifying regional endpoints when creating the service client as shown in
      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      + * ImageServiceStubSettings.Builder imageServiceSettingsBuilder =
      + *     ImageServiceStubSettings.newBuilder();
      + * imageServiceSettingsBuilder
      + *     .generateProductImageBackgroundSettings()
      + *     .setRetrySettings(
      + *         imageServiceSettingsBuilder
      + *             .generateProductImageBackgroundSettings()
      + *             .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());
      + * ImageServiceStubSettings imageServiceSettings = imageServiceSettingsBuilder.build();
      + * }
      + * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class ImageServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/content").build(); + + private final UnaryCallSettings< + GenerateProductImageBackgroundRequest, GenerateProductImageBackgroundResponse> + generateProductImageBackgroundSettings; + private final UnaryCallSettings< + RemoveProductImageBackgroundRequest, RemoveProductImageBackgroundResponse> + removeProductImageBackgroundSettings; + private final UnaryCallSettings + upscaleProductImageSettings; + + /** Returns the object with the settings used for calls to generateProductImageBackground. */ + public UnaryCallSettings< + GenerateProductImageBackgroundRequest, GenerateProductImageBackgroundResponse> + generateProductImageBackgroundSettings() { + return generateProductImageBackgroundSettings; + } + + /** Returns the object with the settings used for calls to removeProductImageBackground. */ + public UnaryCallSettings< + RemoveProductImageBackgroundRequest, RemoveProductImageBackgroundResponse> + removeProductImageBackgroundSettings() { + return removeProductImageBackgroundSettings; + } + + /** Returns the object with the settings used for calls to upscaleProductImage. */ + public UnaryCallSettings + upscaleProductImageSettings() { + return upscaleProductImageSettings; + } + + public ImageServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcImageServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonImageServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "merchantapi"; + } + + /** 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 "merchantapi.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "merchantapi.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(ImageServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(ImageServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ImageServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected ImageServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + generateProductImageBackgroundSettings = + settingsBuilder.generateProductImageBackgroundSettings().build(); + removeProductImageBackgroundSettings = + settingsBuilder.removeProductImageBackgroundSettings().build(); + upscaleProductImageSettings = settingsBuilder.upscaleProductImageSettings().build(); + } + + /** Builder for ImageServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder< + GenerateProductImageBackgroundRequest, GenerateProductImageBackgroundResponse> + generateProductImageBackgroundSettings; + private final UnaryCallSettings.Builder< + RemoveProductImageBackgroundRequest, RemoveProductImageBackgroundResponse> + removeProductImageBackgroundSettings; + private final UnaryCallSettings.Builder + upscaleProductImageSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + 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(ClientContext clientContext) { + super(clientContext); + + generateProductImageBackgroundSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + removeProductImageBackgroundSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + upscaleProductImageSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + generateProductImageBackgroundSettings, + removeProductImageBackgroundSettings, + upscaleProductImageSettings); + initDefaults(this); + } + + protected Builder(ImageServiceStubSettings settings) { + super(settings); + + generateProductImageBackgroundSettings = + settings.generateProductImageBackgroundSettings.toBuilder(); + removeProductImageBackgroundSettings = + settings.removeProductImageBackgroundSettings.toBuilder(); + upscaleProductImageSettings = settings.upscaleProductImageSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + generateProductImageBackgroundSettings, + removeProductImageBackgroundSettings, + upscaleProductImageSettings); + } + + 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 + .generateProductImageBackgroundSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .removeProductImageBackgroundSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .upscaleProductImageSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

      Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to generateProductImageBackground. */ + public UnaryCallSettings.Builder< + GenerateProductImageBackgroundRequest, GenerateProductImageBackgroundResponse> + generateProductImageBackgroundSettings() { + return generateProductImageBackgroundSettings; + } + + /** Returns the builder for the settings used for calls to removeProductImageBackground. */ + public UnaryCallSettings.Builder< + RemoveProductImageBackgroundRequest, RemoveProductImageBackgroundResponse> + removeProductImageBackgroundSettings() { + return removeProductImageBackgroundSettings; + } + + /** Returns the builder for the settings used for calls to upscaleProductImage. */ + public UnaryCallSettings.Builder + upscaleProductImageSettings() { + return upscaleProductImageSettings; + } + + @Override + public ImageServiceStubSettings build() throws IOException { + return new ImageServiceStubSettings(this); + } + } +} diff --git a/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/resources/META-INF/native-image/com.google.shopping.merchant.productstudio.v1alpha/reflect-config.json b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/resources/META-INF/native-image/com.google.shopping.merchant.productstudio.v1alpha/reflect-config.json index b7684e2816ff..57d9999fdf34 100644 --- a/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/resources/META-INF/native-image/com.google.shopping.merchant.productstudio.v1alpha/reflect-config.json +++ b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/resources/META-INF/native-image/com.google.shopping.merchant.productstudio.v1alpha/reflect-config.json @@ -1205,6 +1205,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.protobuf.Timestamp", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.Value", "queryAllDeclaredConstructors": true, @@ -1223,6 +1241,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.shopping.merchant.productstudio.v1alpha.GenerateProductTextSuggestionsRequest", "queryAllDeclaredConstructors": true, @@ -1259,6 +1331,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.shopping.merchant.productstudio.v1alpha.Image", "queryAllDeclaredConstructors": true, @@ -1277,6 +1367,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.shopping.merchant.productstudio.v1alpha.InputImage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.productstudio.v1alpha.InputImage$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.shopping.merchant.productstudio.v1alpha.OutputSpec", "queryAllDeclaredConstructors": true, @@ -1349,6 +1475,78 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.productstudio.v1alpha.RgbColor", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.productstudio.v1alpha.RgbColor$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.shopping.merchant.productstudio.v1alpha.TitleExample", "queryAllDeclaredConstructors": true, @@ -1366,5 +1564,41 @@ "allPublicMethods": true, "allDeclaredClasses": true, "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true } ] \ No newline at end of file diff --git a/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/test/java/com/google/shopping/merchant/productstudio/v1alpha/ImageServiceClientHttpJsonTest.java b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/test/java/com/google/shopping/merchant/productstudio/v1alpha/ImageServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..b7f44dd0c8e9 --- /dev/null +++ b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/test/java/com/google/shopping/merchant/productstudio/v1alpha/ImageServiceClientHttpJsonTest.java @@ -0,0 +1,206 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.productstudio.v1alpha; + +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.shopping.merchant.productstudio.v1alpha.stub.HttpJsonImageServiceStub; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class ImageServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static ImageServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonImageServiceStub.getMethodDescriptors(), + ImageServiceSettings.getDefaultEndpoint()); + ImageServiceSettings settings = + ImageServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + ImageServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ImageServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void generateProductImageBackgroundTest() throws Exception { + GenerateProductImageBackgroundResponse expectedResponse = + GenerateProductImageBackgroundResponse.newBuilder() + .setGeneratedImage(GeneratedImage.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "accounts/account-3500"; + + GenerateProductImageBackgroundResponse actualResponse = + client.generateProductImageBackground(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 generateProductImageBackgroundExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "accounts/account-3500"; + client.generateProductImageBackground(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void removeProductImageBackgroundTest() throws Exception { + RemoveProductImageBackgroundResponse expectedResponse = + RemoveProductImageBackgroundResponse.newBuilder() + .setGeneratedImage(GeneratedImage.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "accounts/account-3500"; + + RemoveProductImageBackgroundResponse actualResponse = client.removeProductImageBackground(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 removeProductImageBackgroundExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "accounts/account-3500"; + client.removeProductImageBackground(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void upscaleProductImageTest() throws Exception { + UpscaleProductImageResponse expectedResponse = + UpscaleProductImageResponse.newBuilder() + .setGeneratedImage(GeneratedImage.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "accounts/account-3500"; + + UpscaleProductImageResponse actualResponse = client.upscaleProductImage(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 upscaleProductImageExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "accounts/account-3500"; + client.upscaleProductImage(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/test/java/com/google/shopping/merchant/productstudio/v1alpha/ImageServiceClientTest.java b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/test/java/com/google/shopping/merchant/productstudio/v1alpha/ImageServiceClientTest.java new file mode 100644 index 000000000000..1e124b64bf62 --- /dev/null +++ b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/test/java/com/google/shopping/merchant/productstudio/v1alpha/ImageServiceClientTest.java @@ -0,0 +1,194 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.productstudio.v1alpha; + +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.protobuf.AbstractMessage; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class ImageServiceClientTest { + private static MockImageService mockImageService; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private ImageServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockImageService = new MockImageService(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockImageService)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + ImageServiceSettings settings = + ImageServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ImageServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void generateProductImageBackgroundTest() throws Exception { + GenerateProductImageBackgroundResponse expectedResponse = + GenerateProductImageBackgroundResponse.newBuilder() + .setGeneratedImage(GeneratedImage.newBuilder().build()) + .build(); + mockImageService.addResponse(expectedResponse); + + String name = "name3373707"; + + GenerateProductImageBackgroundResponse actualResponse = + client.generateProductImageBackground(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockImageService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GenerateProductImageBackgroundRequest actualRequest = + ((GenerateProductImageBackgroundRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void generateProductImageBackgroundExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockImageService.addException(exception); + + try { + String name = "name3373707"; + client.generateProductImageBackground(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void removeProductImageBackgroundTest() throws Exception { + RemoveProductImageBackgroundResponse expectedResponse = + RemoveProductImageBackgroundResponse.newBuilder() + .setGeneratedImage(GeneratedImage.newBuilder().build()) + .build(); + mockImageService.addResponse(expectedResponse); + + String name = "name3373707"; + + RemoveProductImageBackgroundResponse actualResponse = client.removeProductImageBackground(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockImageService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RemoveProductImageBackgroundRequest actualRequest = + ((RemoveProductImageBackgroundRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void removeProductImageBackgroundExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockImageService.addException(exception); + + try { + String name = "name3373707"; + client.removeProductImageBackground(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void upscaleProductImageTest() throws Exception { + UpscaleProductImageResponse expectedResponse = + UpscaleProductImageResponse.newBuilder() + .setGeneratedImage(GeneratedImage.newBuilder().build()) + .build(); + mockImageService.addResponse(expectedResponse); + + String name = "name3373707"; + + UpscaleProductImageResponse actualResponse = client.upscaleProductImage(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockImageService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpscaleProductImageRequest actualRequest = ((UpscaleProductImageRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void upscaleProductImageExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockImageService.addException(exception); + + try { + String name = "name3373707"; + client.upscaleProductImage(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/test/java/com/google/shopping/merchant/productstudio/v1alpha/MockImageService.java b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/test/java/com/google/shopping/merchant/productstudio/v1alpha/MockImageService.java new file mode 100644 index 000000000000..47e581ffbe48 --- /dev/null +++ b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/test/java/com/google/shopping/merchant/productstudio/v1alpha/MockImageService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.productstudio.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockImageService implements MockGrpcService { + private final MockImageServiceImpl serviceImpl; + + public MockImageService() { + serviceImpl = new MockImageServiceImpl(); + } + + @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-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/test/java/com/google/shopping/merchant/productstudio/v1alpha/MockImageServiceImpl.java b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/test/java/com/google/shopping/merchant/productstudio/v1alpha/MockImageServiceImpl.java new file mode 100644 index 000000000000..90fa8f5095bc --- /dev/null +++ b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/test/java/com/google/shopping/merchant/productstudio/v1alpha/MockImageServiceImpl.java @@ -0,0 +1,128 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.productstudio.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.protobuf.AbstractMessage; +import com.google.shopping.merchant.productstudio.v1alpha.ImageServiceGrpc.ImageServiceImplBase; +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 MockImageServiceImpl extends ImageServiceImplBase { + private List requests; + private Queue responses; + + public MockImageServiceImpl() { + 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 generateProductImageBackground( + GenerateProductImageBackgroundRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof GenerateProductImageBackgroundResponse) { + requests.add(request); + responseObserver.onNext(((GenerateProductImageBackgroundResponse) 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 GenerateProductImageBackground," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + GenerateProductImageBackgroundResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void removeProductImageBackground( + RemoveProductImageBackgroundRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof RemoveProductImageBackgroundResponse) { + requests.add(request); + responseObserver.onNext(((RemoveProductImageBackgroundResponse) 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 RemoveProductImageBackground, expected" + + " %s or %s", + response == null ? "null" : response.getClass().getName(), + RemoveProductImageBackgroundResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void upscaleProductImage( + UpscaleProductImageRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof UpscaleProductImageResponse) { + requests.add(request); + responseObserver.onNext(((UpscaleProductImageResponse) 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 UpscaleProductImage, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + UpscaleProductImageResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-shopping-merchant-product-studio/grpc-google-shopping-merchant-productstudio-v1alpha/pom.xml b/java-shopping-merchant-product-studio/grpc-google-shopping-merchant-productstudio-v1alpha/pom.xml index d5aed5cb55f2..5c415848c03e 100644 --- a/java-shopping-merchant-product-studio/grpc-google-shopping-merchant-productstudio-v1alpha/pom.xml +++ b/java-shopping-merchant-product-studio/grpc-google-shopping-merchant-productstudio-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-productstudio-v1alpha - 0.7.0 + 0.8.0 grpc-google-shopping-merchant-productstudio-v1alpha GRPC library for google-shopping-merchant-productstudio com.google.shopping google-shopping-merchant-productstudio-parent - 0.7.0 + 0.8.0 diff --git a/java-shopping-merchant-product-studio/grpc-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/ImageServiceGrpc.java b/java-shopping-merchant-product-studio/grpc-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/ImageServiceGrpc.java new file mode 100644 index 000000000000..ee1283a07c8b --- /dev/null +++ b/java-shopping-merchant-product-studio/grpc-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/ImageServiceGrpc.java @@ -0,0 +1,797 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.productstudio.v1alpha; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
      + * Service that exposes Generative AI (GenAI) endpoints for creating and
      + * enhancing product image content.
      + * 
      + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/shopping/merchant/productstudio/v1alpha/image.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class ImageServiceGrpc { + + private ImageServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.shopping.merchant.productstudio.v1alpha.ImageService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundRequest, + com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundResponse> + getGenerateProductImageBackgroundMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GenerateProductImageBackground", + requestType = + com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundRequest + .class, + responseType = + com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundResponse + .class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundRequest, + com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundResponse> + getGenerateProductImageBackgroundMethod() { + io.grpc.MethodDescriptor< + com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundRequest, + com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundResponse> + getGenerateProductImageBackgroundMethod; + if ((getGenerateProductImageBackgroundMethod = + ImageServiceGrpc.getGenerateProductImageBackgroundMethod) + == null) { + synchronized (ImageServiceGrpc.class) { + if ((getGenerateProductImageBackgroundMethod = + ImageServiceGrpc.getGenerateProductImageBackgroundMethod) + == null) { + ImageServiceGrpc.getGenerateProductImageBackgroundMethod = + getGenerateProductImageBackgroundMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GenerateProductImageBackground")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundResponse.getDefaultInstance())) + .setSchemaDescriptor( + new ImageServiceMethodDescriptorSupplier( + "GenerateProductImageBackground")) + .build(); + } + } + } + return getGenerateProductImageBackgroundMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundRequest, + com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundResponse> + getRemoveProductImageBackgroundMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RemoveProductImageBackground", + requestType = + com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundRequest + .class, + responseType = + com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundResponse + .class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundRequest, + com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundResponse> + getRemoveProductImageBackgroundMethod() { + io.grpc.MethodDescriptor< + com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundRequest, + com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundResponse> + getRemoveProductImageBackgroundMethod; + if ((getRemoveProductImageBackgroundMethod = + ImageServiceGrpc.getRemoveProductImageBackgroundMethod) + == null) { + synchronized (ImageServiceGrpc.class) { + if ((getRemoveProductImageBackgroundMethod = + ImageServiceGrpc.getRemoveProductImageBackgroundMethod) + == null) { + ImageServiceGrpc.getRemoveProductImageBackgroundMethod = + getRemoveProductImageBackgroundMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "RemoveProductImageBackground")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.shopping.merchant.productstudio.v1alpha + .RemoveProductImageBackgroundRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.shopping.merchant.productstudio.v1alpha + .RemoveProductImageBackgroundResponse.getDefaultInstance())) + .setSchemaDescriptor( + new ImageServiceMethodDescriptorSupplier("RemoveProductImageBackground")) + .build(); + } + } + } + return getRemoveProductImageBackgroundMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest, + com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse> + getUpscaleProductImageMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpscaleProductImage", + requestType = + com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest.class, + responseType = + com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest, + com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse> + getUpscaleProductImageMethod() { + io.grpc.MethodDescriptor< + com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest, + com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse> + getUpscaleProductImageMethod; + if ((getUpscaleProductImageMethod = ImageServiceGrpc.getUpscaleProductImageMethod) == null) { + synchronized (ImageServiceGrpc.class) { + if ((getUpscaleProductImageMethod = ImageServiceGrpc.getUpscaleProductImageMethod) + == null) { + ImageServiceGrpc.getUpscaleProductImageMethod = + getUpscaleProductImageMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpscaleProductImage")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.shopping.merchant.productstudio.v1alpha + .UpscaleProductImageRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.shopping.merchant.productstudio.v1alpha + .UpscaleProductImageResponse.getDefaultInstance())) + .setSchemaDescriptor( + new ImageServiceMethodDescriptorSupplier("UpscaleProductImage")) + .build(); + } + } + } + return getUpscaleProductImageMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static ImageServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ImageServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ImageServiceStub(channel, callOptions); + } + }; + return ImageServiceStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static ImageServiceBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ImageServiceBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ImageServiceBlockingV2Stub(channel, callOptions); + } + }; + return ImageServiceBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ImageServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ImageServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ImageServiceBlockingStub(channel, callOptions); + } + }; + return ImageServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static ImageServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ImageServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ImageServiceFutureStub(channel, callOptions); + } + }; + return ImageServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
      +   * Service that exposes Generative AI (GenAI) endpoints for creating and
      +   * enhancing product image content.
      +   * 
      + */ + public interface AsyncService { + + /** + * + * + *
      +     * GenerateProductImageBackground generates a new image where the background
      +     * of the original image is replaced by an AI generated scene based on
      +     * provided product information and a text prompt.
      +     * 
      + */ + default void generateProductImageBackground( + com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundRequest + request, + io.grpc.stub.StreamObserver< + com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGenerateProductImageBackgroundMethod(), responseObserver); + } + + /** + * + * + *
      +     * RemoveProductImageBackground generates a new image where the background of
      +     * the original image is removed.
      +     * 
      + */ + default void removeProductImageBackground( + com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundRequest + request, + io.grpc.stub.StreamObserver< + com.google.shopping.merchant.productstudio.v1alpha + .RemoveProductImageBackgroundResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRemoveProductImageBackgroundMethod(), responseObserver); + } + + /** + * + * + *
      +     * UpscaleProductImage generates a new image where the resolution of the
      +     * original image is enhanced.
      +     * 
      + */ + default void upscaleProductImage( + com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest request, + io.grpc.stub.StreamObserver< + com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpscaleProductImageMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service ImageService. + * + *
      +   * Service that exposes Generative AI (GenAI) endpoints for creating and
      +   * enhancing product image content.
      +   * 
      + */ + public abstract static class ImageServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return ImageServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service ImageService. + * + *
      +   * Service that exposes Generative AI (GenAI) endpoints for creating and
      +   * enhancing product image content.
      +   * 
      + */ + public static final class ImageServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private ImageServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ImageServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ImageServiceStub(channel, callOptions); + } + + /** + * + * + *
      +     * GenerateProductImageBackground generates a new image where the background
      +     * of the original image is replaced by an AI generated scene based on
      +     * provided product information and a text prompt.
      +     * 
      + */ + public void generateProductImageBackground( + com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundRequest + request, + io.grpc.stub.StreamObserver< + com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateProductImageBackgroundMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * RemoveProductImageBackground generates a new image where the background of
      +     * the original image is removed.
      +     * 
      + */ + public void removeProductImageBackground( + com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundRequest + request, + io.grpc.stub.StreamObserver< + com.google.shopping.merchant.productstudio.v1alpha + .RemoveProductImageBackgroundResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRemoveProductImageBackgroundMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * UpscaleProductImage generates a new image where the resolution of the
      +     * original image is enhanced.
      +     * 
      + */ + public void upscaleProductImage( + com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest request, + io.grpc.stub.StreamObserver< + com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpscaleProductImageMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service ImageService. + * + *
      +   * Service that exposes Generative AI (GenAI) endpoints for creating and
      +   * enhancing product image content.
      +   * 
      + */ + public static final class ImageServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private ImageServiceBlockingV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ImageServiceBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ImageServiceBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
      +     * GenerateProductImageBackground generates a new image where the background
      +     * of the original image is replaced by an AI generated scene based on
      +     * provided product information and a text prompt.
      +     * 
      + */ + public com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundResponse + generateProductImageBackground( + com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateProductImageBackgroundMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * RemoveProductImageBackground generates a new image where the background of
      +     * the original image is removed.
      +     * 
      + */ + public com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundResponse + removeProductImageBackground( + com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRemoveProductImageBackgroundMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * UpscaleProductImage generates a new image where the resolution of the
      +     * original image is enhanced.
      +     * 
      + */ + public com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse + upscaleProductImage( + com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpscaleProductImageMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service ImageService. + * + *
      +   * Service that exposes Generative AI (GenAI) endpoints for creating and
      +   * enhancing product image content.
      +   * 
      + */ + public static final class ImageServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ImageServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ImageServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ImageServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
      +     * GenerateProductImageBackground generates a new image where the background
      +     * of the original image is replaced by an AI generated scene based on
      +     * provided product information and a text prompt.
      +     * 
      + */ + public com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundResponse + generateProductImageBackground( + com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateProductImageBackgroundMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * RemoveProductImageBackground generates a new image where the background of
      +     * the original image is removed.
      +     * 
      + */ + public com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundResponse + removeProductImageBackground( + com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRemoveProductImageBackgroundMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * UpscaleProductImage generates a new image where the resolution of the
      +     * original image is enhanced.
      +     * 
      + */ + public com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse + upscaleProductImage( + com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpscaleProductImageMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service ImageService. + * + *
      +   * Service that exposes Generative AI (GenAI) endpoints for creating and
      +   * enhancing product image content.
      +   * 
      + */ + public static final class ImageServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ImageServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ImageServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ImageServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
      +     * GenerateProductImageBackground generates a new image where the background
      +     * of the original image is replaced by an AI generated scene based on
      +     * provided product information and a text prompt.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundResponse> + generateProductImageBackground( + com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateProductImageBackgroundMethod(), getCallOptions()), + request); + } + + /** + * + * + *
      +     * RemoveProductImageBackground generates a new image where the background of
      +     * the original image is removed.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundResponse> + removeProductImageBackground( + com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRemoveProductImageBackgroundMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * UpscaleProductImage generates a new image where the resolution of the
      +     * original image is enhanced.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse> + upscaleProductImage( + com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpscaleProductImageMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GENERATE_PRODUCT_IMAGE_BACKGROUND = 0; + private static final int METHODID_REMOVE_PRODUCT_IMAGE_BACKGROUND = 1; + private static final int METHODID_UPSCALE_PRODUCT_IMAGE = 2; + + 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_GENERATE_PRODUCT_IMAGE_BACKGROUND: + serviceImpl.generateProductImageBackground( + (com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundResponse>) + responseObserver); + break; + case METHODID_REMOVE_PRODUCT_IMAGE_BACKGROUND: + serviceImpl.removeProductImageBackground( + (com.google.shopping.merchant.productstudio.v1alpha + .RemoveProductImageBackgroundRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.shopping.merchant.productstudio.v1alpha + .RemoveProductImageBackgroundResponse>) + responseObserver); + break; + case METHODID_UPSCALE_PRODUCT_IMAGE: + serviceImpl.upscaleProductImage( + (com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.shopping.merchant.productstudio.v1alpha + .UpscaleProductImageResponse>) + 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( + getGenerateProductImageBackgroundMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundRequest, + com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundResponse>( + service, METHODID_GENERATE_PRODUCT_IMAGE_BACKGROUND))) + .addMethod( + getRemoveProductImageBackgroundMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.shopping.merchant.productstudio.v1alpha + .RemoveProductImageBackgroundRequest, + com.google.shopping.merchant.productstudio.v1alpha + .RemoveProductImageBackgroundResponse>( + service, METHODID_REMOVE_PRODUCT_IMAGE_BACKGROUND))) + .addMethod( + getUpscaleProductImageMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest, + com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse>( + service, METHODID_UPSCALE_PRODUCT_IMAGE))) + .build(); + } + + private abstract static class ImageServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ImageServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("ImageService"); + } + } + + private static final class ImageServiceFileDescriptorSupplier + extends ImageServiceBaseDescriptorSupplier { + ImageServiceFileDescriptorSupplier() {} + } + + private static final class ImageServiceMethodDescriptorSupplier + extends ImageServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + ImageServiceMethodDescriptorSupplier(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 (ImageServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ImageServiceFileDescriptorSupplier()) + .addMethod(getGenerateProductImageBackgroundMethod()) + .addMethod(getRemoveProductImageBackgroundMethod()) + .addMethod(getUpscaleProductImageMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-shopping-merchant-product-studio/pom.xml b/java-shopping-merchant-product-studio/pom.xml index 7a8ba28cdf72..05b86b6025fc 100644 --- a/java-shopping-merchant-product-studio/pom.xml +++ b/java-shopping-merchant-product-studio/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-productstudio-parent pom - 0.7.0 + 0.8.0 Google Merchant API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.shopping google-shopping-merchant-productstudio - 0.7.0 + 0.8.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-productstudio-v1alpha - 0.7.0 + 0.8.0 com.google.shopping.api.grpc proto-google-shopping-merchant-productstudio-v1alpha - 0.7.0 + 0.8.0
      diff --git a/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/pom.xml b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/pom.xml index 6ea8e947bca1..c685d9afe296 100644 --- a/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/pom.xml +++ b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-productstudio-v1alpha - 0.7.0 + 0.8.0 proto-google-shopping-merchant-productstudio-v1alpha Proto library for google-shopping-merchant-productstudio com.google.shopping google-shopping-merchant-productstudio-parent - 0.7.0 + 0.8.0 diff --git a/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/GenerateImageBackgroundConfig.java b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/GenerateImageBackgroundConfig.java new file mode 100644 index 000000000000..4db20822dc82 --- /dev/null +++ b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/GenerateImageBackgroundConfig.java @@ -0,0 +1,884 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/productstudio/v1alpha/image.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.productstudio.v1alpha; + +/** + * + * + *
      + * Client provided input configuration for generating the background.
      + * 
      + * + * Protobuf type {@code + * google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig} + */ +public final class GenerateImageBackgroundConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig) + GenerateImageBackgroundConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GenerateImageBackgroundConfig.newBuilder() to construct. + private GenerateImageBackgroundConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GenerateImageBackgroundConfig() { + productDescription_ = ""; + backgroundDescription_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GenerateImageBackgroundConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_GenerateImageBackgroundConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_GenerateImageBackgroundConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig.class, + com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig.Builder + .class); + } + + public static final int PRODUCT_DESCRIPTION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object productDescription_ = ""; + + /** + * + * + *
      +   * Required. Example: "Hat on a baseball field"
      +   * "Hat" = product description
      +   * Description of product.
      +   * 
      + * + * string product_description = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The productDescription. + */ + @java.lang.Override + public java.lang.String getProductDescription() { + java.lang.Object ref = productDescription_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + productDescription_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. Example: "Hat on a baseball field"
      +   * "Hat" = product description
      +   * Description of product.
      +   * 
      + * + * string product_description = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for productDescription. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProductDescriptionBytes() { + java.lang.Object ref = productDescription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + productDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BACKGROUND_DESCRIPTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object backgroundDescription_ = ""; + + /** + * + * + *
      +   * Required. Example: "Hat on a baseball field"
      +   * "on a baseball field" = background description
      +   * Description of wanted background.
      +   * 
      + * + * string background_description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The backgroundDescription. + */ + @java.lang.Override + public java.lang.String getBackgroundDescription() { + java.lang.Object ref = backgroundDescription_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + backgroundDescription_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. Example: "Hat on a baseball field"
      +   * "on a baseball field" = background description
      +   * Description of wanted background.
      +   * 
      + * + * string background_description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for backgroundDescription. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBackgroundDescriptionBytes() { + java.lang.Object ref = backgroundDescription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backgroundDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(productDescription_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, productDescription_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backgroundDescription_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, backgroundDescription_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(productDescription_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, productDescription_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backgroundDescription_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, backgroundDescription_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig)) { + return super.equals(obj); + } + com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig other = + (com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig) obj; + + if (!getProductDescription().equals(other.getProductDescription())) return false; + if (!getBackgroundDescription().equals(other.getBackgroundDescription())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PRODUCT_DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getProductDescription().hashCode(); + hash = (37 * hash) + BACKGROUND_DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getBackgroundDescription().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Client provided input configuration for generating the background.
      +   * 
      + * + * Protobuf type {@code + * google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig) + com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_GenerateImageBackgroundConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_GenerateImageBackgroundConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig + .class, + com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig + .Builder.class); + } + + // Construct using + // com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + productDescription_ = ""; + backgroundDescription_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_GenerateImageBackgroundConfig_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig + getDefaultInstanceForType() { + return com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig + build() { + com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig + buildPartial() { + com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig result = + new com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.productDescription_ = productDescription_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.backgroundDescription_ = backgroundDescription_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig) { + return mergeFrom( + (com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig other) { + if (other + == com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig + .getDefaultInstance()) return this; + if (!other.getProductDescription().isEmpty()) { + productDescription_ = other.productDescription_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getBackgroundDescription().isEmpty()) { + backgroundDescription_ = other.backgroundDescription_; + 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: + { + productDescription_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + backgroundDescription_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object productDescription_ = ""; + + /** + * + * + *
      +     * Required. Example: "Hat on a baseball field"
      +     * "Hat" = product description
      +     * Description of product.
      +     * 
      + * + * string product_description = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The productDescription. + */ + public java.lang.String getProductDescription() { + java.lang.Object ref = productDescription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + productDescription_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. Example: "Hat on a baseball field"
      +     * "Hat" = product description
      +     * Description of product.
      +     * 
      + * + * string product_description = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for productDescription. + */ + public com.google.protobuf.ByteString getProductDescriptionBytes() { + java.lang.Object ref = productDescription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + productDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. Example: "Hat on a baseball field"
      +     * "Hat" = product description
      +     * Description of product.
      +     * 
      + * + * string product_description = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The productDescription to set. + * @return This builder for chaining. + */ + public Builder setProductDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + productDescription_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. Example: "Hat on a baseball field"
      +     * "Hat" = product description
      +     * Description of product.
      +     * 
      + * + * string product_description = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProductDescription() { + productDescription_ = getDefaultInstance().getProductDescription(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. Example: "Hat on a baseball field"
      +     * "Hat" = product description
      +     * Description of product.
      +     * 
      + * + * string product_description = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for productDescription to set. + * @return This builder for chaining. + */ + public Builder setProductDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + productDescription_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object backgroundDescription_ = ""; + + /** + * + * + *
      +     * Required. Example: "Hat on a baseball field"
      +     * "on a baseball field" = background description
      +     * Description of wanted background.
      +     * 
      + * + * string background_description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The backgroundDescription. + */ + public java.lang.String getBackgroundDescription() { + java.lang.Object ref = backgroundDescription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + backgroundDescription_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. Example: "Hat on a baseball field"
      +     * "on a baseball field" = background description
      +     * Description of wanted background.
      +     * 
      + * + * string background_description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for backgroundDescription. + */ + public com.google.protobuf.ByteString getBackgroundDescriptionBytes() { + java.lang.Object ref = backgroundDescription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backgroundDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. Example: "Hat on a baseball field"
      +     * "on a baseball field" = background description
      +     * Description of wanted background.
      +     * 
      + * + * string background_description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The backgroundDescription to set. + * @return This builder for chaining. + */ + public Builder setBackgroundDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + backgroundDescription_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. Example: "Hat on a baseball field"
      +     * "on a baseball field" = background description
      +     * Description of wanted background.
      +     * 
      + * + * string background_description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearBackgroundDescription() { + backgroundDescription_ = getDefaultInstance().getBackgroundDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. Example: "Hat on a baseball field"
      +     * "on a baseball field" = background description
      +     * Description of wanted background.
      +     * 
      + * + * string background_description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for backgroundDescription to set. + * @return This builder for chaining. + */ + public Builder setBackgroundDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + backgroundDescription_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig) + private static final com.google.shopping.merchant.productstudio.v1alpha + .GenerateImageBackgroundConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig(); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateImageBackgroundConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/GenerateImageBackgroundConfigOrBuilder.java b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/GenerateImageBackgroundConfigOrBuilder.java new file mode 100644 index 000000000000..6f5c998f4b09 --- /dev/null +++ b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/GenerateImageBackgroundConfigOrBuilder.java @@ -0,0 +1,86 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/productstudio/v1alpha/image.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.productstudio.v1alpha; + +public interface GenerateImageBackgroundConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. Example: "Hat on a baseball field"
      +   * "Hat" = product description
      +   * Description of product.
      +   * 
      + * + * string product_description = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The productDescription. + */ + java.lang.String getProductDescription(); + + /** + * + * + *
      +   * Required. Example: "Hat on a baseball field"
      +   * "Hat" = product description
      +   * Description of product.
      +   * 
      + * + * string product_description = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for productDescription. + */ + com.google.protobuf.ByteString getProductDescriptionBytes(); + + /** + * + * + *
      +   * Required. Example: "Hat on a baseball field"
      +   * "on a baseball field" = background description
      +   * Description of wanted background.
      +   * 
      + * + * string background_description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The backgroundDescription. + */ + java.lang.String getBackgroundDescription(); + + /** + * + * + *
      +   * Required. Example: "Hat on a baseball field"
      +   * "on a baseball field" = background description
      +   * Description of wanted background.
      +   * 
      + * + * string background_description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for backgroundDescription. + */ + com.google.protobuf.ByteString getBackgroundDescriptionBytes(); +} diff --git a/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/GenerateProductImageBackgroundRequest.java b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/GenerateProductImageBackgroundRequest.java new file mode 100644 index 000000000000..49c982493a13 --- /dev/null +++ b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/GenerateProductImageBackgroundRequest.java @@ -0,0 +1,1671 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/productstudio/v1alpha/image.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.productstudio.v1alpha; + +/** + * + * + *
      + * Request message for the GenerateProductImageBackground method.
      + * 
      + * + * Protobuf type {@code + * google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundRequest} + */ +public final class GenerateProductImageBackgroundRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundRequest) + GenerateProductImageBackgroundRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GenerateProductImageBackgroundRequest.newBuilder() to construct. + private GenerateProductImageBackgroundRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GenerateProductImageBackgroundRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GenerateProductImageBackgroundRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_GenerateProductImageBackgroundRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_GenerateProductImageBackgroundRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundRequest + .class, + com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundRequest + .Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * Required. The account for which to generate an image. This acts as a
      +   * container for the request and does not affect the generation itself.
      +   * Format: accounts/{account}
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.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 account for which to generate an image. This acts as a
      +   * container for the request and does not affect the generation itself.
      +   * Format: accounts/{account}
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.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 OUTPUT_CONFIG_FIELD_NUMBER = 2; + private com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig outputConfig_; + + /** + * + * + *
      +   * Optional. Configuration for how the output image should be returned.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.OutputImageConfig output_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the outputConfig field is set. + */ + @java.lang.Override + public boolean hasOutputConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Optional. Configuration for how the output image should be returned.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.OutputImageConfig output_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The outputConfig. + */ + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig getOutputConfig() { + return outputConfig_ == null + ? com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig.getDefaultInstance() + : outputConfig_; + } + + /** + * + * + *
      +   * Optional. Configuration for how the output image should be returned.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.OutputImageConfig output_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfigOrBuilder + getOutputConfigOrBuilder() { + return outputConfig_ == null + ? com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig.getDefaultInstance() + : outputConfig_; + } + + public static final int INPUT_IMAGE_FIELD_NUMBER = 3; + private com.google.shopping.merchant.productstudio.v1alpha.InputImage inputImage_; + + /** + * + * + *
      +   * Required. The input image.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.InputImage input_image = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the inputImage field is set. + */ + @java.lang.Override + public boolean hasInputImage() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * Required. The input image.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.InputImage input_image = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The inputImage. + */ + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.InputImage getInputImage() { + return inputImage_ == null + ? com.google.shopping.merchant.productstudio.v1alpha.InputImage.getDefaultInstance() + : inputImage_; + } + + /** + * + * + *
      +   * Required. The input image.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.InputImage input_image = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.InputImageOrBuilder + getInputImageOrBuilder() { + return inputImage_ == null + ? com.google.shopping.merchant.productstudio.v1alpha.InputImage.getDefaultInstance() + : inputImage_; + } + + public static final int CONFIG_FIELD_NUMBER = 4; + private com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig config_; + + /** + * + * + *
      +   * Required. Configuration parameters for the generation of the background.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the config field is set. + */ + @java.lang.Override + public boolean hasConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +   * Required. Configuration parameters for the generation of the background.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The config. + */ + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig + getConfig() { + return config_ == null + ? com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig + .getDefaultInstance() + : config_; + } + + /** + * + * + *
      +   * Required. Configuration parameters for the generation of the background.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfigOrBuilder + getConfigOrBuilder() { + return config_ == null + ? com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig + .getDefaultInstance() + : config_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getOutputConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getInputImage()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(4, getConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOutputConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInputImage()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundRequest)) { + return super.equals(obj); + } + com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundRequest other = + (com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundRequest) + obj; + + if (!getName().equals(other.getName())) return false; + if (hasOutputConfig() != other.hasOutputConfig()) return false; + if (hasOutputConfig()) { + if (!getOutputConfig().equals(other.getOutputConfig())) return false; + } + if (hasInputImage() != other.hasInputImage()) return false; + if (hasInputImage()) { + if (!getInputImage().equals(other.getInputImage())) return false; + } + if (hasConfig() != other.hasConfig()) return false; + if (hasConfig()) { + if (!getConfig().equals(other.getConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasOutputConfig()) { + hash = (37 * hash) + OUTPUT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getOutputConfig().hashCode(); + } + if (hasInputImage()) { + hash = (37 * hash) + INPUT_IMAGE_FIELD_NUMBER; + hash = (53 * hash) + getInputImage().hashCode(); + } + if (hasConfig()) { + hash = (37 * hash) + CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundRequest + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for the GenerateProductImageBackground method.
      +   * 
      + * + * Protobuf type {@code + * google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundRequest) + com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_GenerateProductImageBackgroundRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_GenerateProductImageBackgroundRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundRequest.class, + com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundRequest.Builder.class); + } + + // Construct using + // com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getOutputConfigFieldBuilder(); + getInputImageFieldBuilder(); + getConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + outputConfig_ = null; + if (outputConfigBuilder_ != null) { + outputConfigBuilder_.dispose(); + outputConfigBuilder_ = null; + } + inputImage_ = null; + if (inputImageBuilder_ != null) { + inputImageBuilder_.dispose(); + inputImageBuilder_ = null; + } + config_ = null; + if (configBuilder_ != null) { + configBuilder_.dispose(); + configBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_GenerateProductImageBackgroundRequest_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundRequest + getDefaultInstanceForType() { + return com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundRequest + build() { + com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundRequest + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundRequest + buildPartial() { + com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundRequest + result = + new com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundRequest + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.outputConfig_ = + outputConfigBuilder_ == null ? outputConfig_ : outputConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.inputImage_ = inputImageBuilder_ == null ? inputImage_ : inputImageBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.config_ = configBuilder_ == null ? config_ : configBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundRequest) { + return mergeFrom( + (com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundRequest + other) { + if (other + == com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasOutputConfig()) { + mergeOutputConfig(other.getOutputConfig()); + } + if (other.hasInputImage()) { + mergeInputImage(other.getInputImage()); + } + if (other.hasConfig()) { + mergeConfig(other.getConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getInputImageFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Required. The account for which to generate an image. This acts as a
      +     * container for the request and does not affect the generation itself.
      +     * Format: accounts/{account}
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.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 account for which to generate an image. This acts as a
      +     * container for the request and does not affect the generation itself.
      +     * Format: accounts/{account}
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.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 account for which to generate an image. This acts as a
      +     * container for the request and does not affect the generation itself.
      +     * Format: accounts/{account}
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value 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 account for which to generate an image. This acts as a
      +     * container for the request and does not affect the generation itself.
      +     * Format: accounts/{account}
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The account for which to generate an image. This acts as a
      +     * container for the request and does not affect the generation itself.
      +     * Format: accounts/{account}
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig outputConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig, + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig.Builder, + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfigOrBuilder> + outputConfigBuilder_; + + /** + * + * + *
      +     * Optional. Configuration for how the output image should be returned.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.OutputImageConfig output_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the outputConfig field is set. + */ + public boolean hasOutputConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +     * Optional. Configuration for how the output image should be returned.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.OutputImageConfig output_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The outputConfig. + */ + public com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig getOutputConfig() { + if (outputConfigBuilder_ == null) { + return outputConfig_ == null + ? com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig + .getDefaultInstance() + : outputConfig_; + } else { + return outputConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. Configuration for how the output image should be returned.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.OutputImageConfig output_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOutputConfig( + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig value) { + if (outputConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputConfig_ = value; + } else { + outputConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Configuration for how the output image should be returned.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.OutputImageConfig output_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOutputConfig( + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig.Builder + builderForValue) { + if (outputConfigBuilder_ == null) { + outputConfig_ = builderForValue.build(); + } else { + outputConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Configuration for how the output image should be returned.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.OutputImageConfig output_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeOutputConfig( + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig value) { + if (outputConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && outputConfig_ != null + && outputConfig_ + != com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig + .getDefaultInstance()) { + getOutputConfigBuilder().mergeFrom(value); + } else { + outputConfig_ = value; + } + } else { + outputConfigBuilder_.mergeFrom(value); + } + if (outputConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Configuration for how the output image should be returned.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.OutputImageConfig output_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearOutputConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + outputConfig_ = null; + if (outputConfigBuilder_ != null) { + outputConfigBuilder_.dispose(); + outputConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Configuration for how the output image should be returned.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.OutputImageConfig output_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig.Builder + getOutputConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getOutputConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Configuration for how the output image should be returned.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.OutputImageConfig output_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfigOrBuilder + getOutputConfigOrBuilder() { + if (outputConfigBuilder_ != null) { + return outputConfigBuilder_.getMessageOrBuilder(); + } else { + return outputConfig_ == null + ? com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig + .getDefaultInstance() + : outputConfig_; + } + } + + /** + * + * + *
      +     * Optional. Configuration for how the output image should be returned.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.OutputImageConfig output_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig, + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig.Builder, + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfigOrBuilder> + getOutputConfigFieldBuilder() { + if (outputConfigBuilder_ == null) { + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig, + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig.Builder, + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); + outputConfig_ = null; + } + return outputConfigBuilder_; + } + + private com.google.shopping.merchant.productstudio.v1alpha.InputImage inputImage_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.productstudio.v1alpha.InputImage, + com.google.shopping.merchant.productstudio.v1alpha.InputImage.Builder, + com.google.shopping.merchant.productstudio.v1alpha.InputImageOrBuilder> + inputImageBuilder_; + + /** + * + * + *
      +     * Required. The input image.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.InputImage input_image = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the inputImage field is set. + */ + public boolean hasInputImage() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +     * Required. The input image.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.InputImage input_image = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The inputImage. + */ + public com.google.shopping.merchant.productstudio.v1alpha.InputImage getInputImage() { + if (inputImageBuilder_ == null) { + return inputImage_ == null + ? com.google.shopping.merchant.productstudio.v1alpha.InputImage.getDefaultInstance() + : inputImage_; + } else { + return inputImageBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Required. The input image.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.InputImage input_image = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInputImage( + com.google.shopping.merchant.productstudio.v1alpha.InputImage value) { + if (inputImageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputImage_ = value; + } else { + inputImageBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The input image.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.InputImage input_image = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInputImage( + com.google.shopping.merchant.productstudio.v1alpha.InputImage.Builder builderForValue) { + if (inputImageBuilder_ == null) { + inputImage_ = builderForValue.build(); + } else { + inputImageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The input image.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.InputImage input_image = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeInputImage( + com.google.shopping.merchant.productstudio.v1alpha.InputImage value) { + if (inputImageBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && inputImage_ != null + && inputImage_ + != com.google.shopping.merchant.productstudio.v1alpha.InputImage + .getDefaultInstance()) { + getInputImageBuilder().mergeFrom(value); + } else { + inputImage_ = value; + } + } else { + inputImageBuilder_.mergeFrom(value); + } + if (inputImage_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Required. The input image.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.InputImage input_image = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearInputImage() { + bitField0_ = (bitField0_ & ~0x00000004); + inputImage_ = null; + if (inputImageBuilder_ != null) { + inputImageBuilder_.dispose(); + inputImageBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The input image.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.InputImage input_image = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.shopping.merchant.productstudio.v1alpha.InputImage.Builder + getInputImageBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getInputImageFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Required. The input image.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.InputImage input_image = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.shopping.merchant.productstudio.v1alpha.InputImageOrBuilder + getInputImageOrBuilder() { + if (inputImageBuilder_ != null) { + return inputImageBuilder_.getMessageOrBuilder(); + } else { + return inputImage_ == null + ? com.google.shopping.merchant.productstudio.v1alpha.InputImage.getDefaultInstance() + : inputImage_; + } + } + + /** + * + * + *
      +     * Required. The input image.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.InputImage input_image = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.productstudio.v1alpha.InputImage, + com.google.shopping.merchant.productstudio.v1alpha.InputImage.Builder, + com.google.shopping.merchant.productstudio.v1alpha.InputImageOrBuilder> + getInputImageFieldBuilder() { + if (inputImageBuilder_ == null) { + inputImageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.productstudio.v1alpha.InputImage, + com.google.shopping.merchant.productstudio.v1alpha.InputImage.Builder, + com.google.shopping.merchant.productstudio.v1alpha.InputImageOrBuilder>( + getInputImage(), getParentForChildren(), isClean()); + inputImage_ = null; + } + return inputImageBuilder_; + } + + private com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig + config_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig, + com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig + .Builder, + com.google.shopping.merchant.productstudio.v1alpha + .GenerateImageBackgroundConfigOrBuilder> + configBuilder_; + + /** + * + * + *
      +     * Required. Configuration parameters for the generation of the background.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the config field is set. + */ + public boolean hasConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +     * Required. Configuration parameters for the generation of the background.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The config. + */ + public com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig + getConfig() { + if (configBuilder_ == null) { + return config_ == null + ? com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig + .getDefaultInstance() + : config_; + } else { + return configBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Required. Configuration parameters for the generation of the background.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConfig( + com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig value) { + if (configBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + config_ = value; + } else { + configBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. Configuration parameters for the generation of the background.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConfig( + com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig.Builder + builderForValue) { + if (configBuilder_ == null) { + config_ = builderForValue.build(); + } else { + configBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. Configuration parameters for the generation of the background.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeConfig( + com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig value) { + if (configBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && config_ != null + && config_ + != com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig + .getDefaultInstance()) { + getConfigBuilder().mergeFrom(value); + } else { + config_ = value; + } + } else { + configBuilder_.mergeFrom(value); + } + if (config_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Required. Configuration parameters for the generation of the background.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearConfig() { + bitField0_ = (bitField0_ & ~0x00000008); + config_ = null; + if (configBuilder_ != null) { + configBuilder_.dispose(); + configBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. Configuration parameters for the generation of the background.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig.Builder + getConfigBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Required. Configuration parameters for the generation of the background.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfigOrBuilder + getConfigOrBuilder() { + if (configBuilder_ != null) { + return configBuilder_.getMessageOrBuilder(); + } else { + return config_ == null + ? com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig + .getDefaultInstance() + : config_; + } + } + + /** + * + * + *
      +     * Required. Configuration parameters for the generation of the background.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig, + com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig + .Builder, + com.google.shopping.merchant.productstudio.v1alpha + .GenerateImageBackgroundConfigOrBuilder> + getConfigFieldBuilder() { + if (configBuilder_ == null) { + configBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig, + com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig + .Builder, + com.google.shopping.merchant.productstudio.v1alpha + .GenerateImageBackgroundConfigOrBuilder>( + getConfig(), getParentForChildren(), isClean()); + config_ = null; + } + return configBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundRequest) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundRequest) + private static final com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundRequest(); + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateProductImageBackgroundRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/GenerateProductImageBackgroundRequestOrBuilder.java b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/GenerateProductImageBackgroundRequestOrBuilder.java new file mode 100644 index 000000000000..e8a8d5383574 --- /dev/null +++ b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/GenerateProductImageBackgroundRequestOrBuilder.java @@ -0,0 +1,187 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/productstudio/v1alpha/image.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.productstudio.v1alpha; + +public interface GenerateProductImageBackgroundRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The account for which to generate an image. This acts as a
      +   * container for the request and does not affect the generation itself.
      +   * Format: accounts/{account}
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Required. The account for which to generate an image. This acts as a
      +   * container for the request and does not affect the generation itself.
      +   * Format: accounts/{account}
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +   * Optional. Configuration for how the output image should be returned.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.OutputImageConfig output_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the outputConfig field is set. + */ + boolean hasOutputConfig(); + + /** + * + * + *
      +   * Optional. Configuration for how the output image should be returned.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.OutputImageConfig output_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The outputConfig. + */ + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig getOutputConfig(); + + /** + * + * + *
      +   * Optional. Configuration for how the output image should be returned.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.OutputImageConfig output_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfigOrBuilder + getOutputConfigOrBuilder(); + + /** + * + * + *
      +   * Required. The input image.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.InputImage input_image = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the inputImage field is set. + */ + boolean hasInputImage(); + + /** + * + * + *
      +   * Required. The input image.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.InputImage input_image = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The inputImage. + */ + com.google.shopping.merchant.productstudio.v1alpha.InputImage getInputImage(); + + /** + * + * + *
      +   * Required. The input image.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.InputImage input_image = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.shopping.merchant.productstudio.v1alpha.InputImageOrBuilder getInputImageOrBuilder(); + + /** + * + * + *
      +   * Required. Configuration parameters for the generation of the background.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the config field is set. + */ + boolean hasConfig(); + + /** + * + * + *
      +   * Required. Configuration parameters for the generation of the background.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The config. + */ + com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig getConfig(); + + /** + * + * + *
      +   * Required. Configuration parameters for the generation of the background.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfigOrBuilder + getConfigOrBuilder(); +} diff --git a/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/GenerateProductImageBackgroundResponse.java b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/GenerateProductImageBackgroundResponse.java new file mode 100644 index 000000000000..c5dddfb3f5e5 --- /dev/null +++ b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/GenerateProductImageBackgroundResponse.java @@ -0,0 +1,817 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/productstudio/v1alpha/image.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.productstudio.v1alpha; + +/** + * + * + *
      + * Response message for the GenerateProductImageBackground method.
      + * 
      + * + * Protobuf type {@code + * google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundResponse} + */ +public final class GenerateProductImageBackgroundResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundResponse) + GenerateProductImageBackgroundResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GenerateProductImageBackgroundResponse.newBuilder() to construct. + private GenerateProductImageBackgroundResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GenerateProductImageBackgroundResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GenerateProductImageBackgroundResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_GenerateProductImageBackgroundResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_GenerateProductImageBackgroundResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundResponse.class, + com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundResponse.Builder.class); + } + + private int bitField0_; + public static final int GENERATED_IMAGE_FIELD_NUMBER = 1; + private com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage generatedImage_; + + /** + * + * + *
      +   * The generated output image.
      +   * 
      + * + * .google.shopping.merchant.productstudio.v1alpha.GeneratedImage generated_image = 1; + * + * + * @return Whether the generatedImage field is set. + */ + @java.lang.Override + public boolean hasGeneratedImage() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * The generated output image.
      +   * 
      + * + * .google.shopping.merchant.productstudio.v1alpha.GeneratedImage generated_image = 1; + * + * + * @return The generatedImage. + */ + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage getGeneratedImage() { + return generatedImage_ == null + ? com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage.getDefaultInstance() + : generatedImage_; + } + + /** + * + * + *
      +   * The generated output image.
      +   * 
      + * + * .google.shopping.merchant.productstudio.v1alpha.GeneratedImage generated_image = 1; + * + */ + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.GeneratedImageOrBuilder + getGeneratedImageOrBuilder() { + return generatedImage_ == null + ? com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage.getDefaultInstance() + : generatedImage_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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, getGeneratedImage()); + } + 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, getGeneratedImage()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundResponse)) { + return super.equals(obj); + } + com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundResponse + other = + (com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundResponse) + obj; + + if (hasGeneratedImage() != other.hasGeneratedImage()) return false; + if (hasGeneratedImage()) { + if (!getGeneratedImage().equals(other.getGeneratedImage())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasGeneratedImage()) { + hash = (37 * hash) + GENERATED_IMAGE_FIELD_NUMBER; + hash = (53 * hash) + getGeneratedImage().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundResponse + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundResponse + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Response message for the GenerateProductImageBackground method.
      +   * 
      + * + * Protobuf type {@code + * google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundResponse) + com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_GenerateProductImageBackgroundResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_GenerateProductImageBackgroundResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundResponse.class, + com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundResponse.Builder.class); + } + + // Construct using + // com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getGeneratedImageFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + generatedImage_ = null; + if (generatedImageBuilder_ != null) { + generatedImageBuilder_.dispose(); + generatedImageBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_GenerateProductImageBackgroundResponse_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundResponse + getDefaultInstanceForType() { + return com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundResponse + build() { + com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundResponse + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundResponse + buildPartial() { + com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundResponse + result = + new com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundResponse + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.generatedImage_ = + generatedImageBuilder_ == null ? generatedImage_ : generatedImageBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundResponse) { + return mergeFrom( + (com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundResponse) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundResponse + other) { + if (other + == com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundResponse.getDefaultInstance()) return this; + if (other.hasGeneratedImage()) { + mergeGeneratedImage(other.getGeneratedImage()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(getGeneratedImageFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage generatedImage_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage, + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage.Builder, + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImageOrBuilder> + generatedImageBuilder_; + + /** + * + * + *
      +     * The generated output image.
      +     * 
      + * + * .google.shopping.merchant.productstudio.v1alpha.GeneratedImage generated_image = 1; + * + * + * @return Whether the generatedImage field is set. + */ + public boolean hasGeneratedImage() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +     * The generated output image.
      +     * 
      + * + * .google.shopping.merchant.productstudio.v1alpha.GeneratedImage generated_image = 1; + * + * + * @return The generatedImage. + */ + public com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage getGeneratedImage() { + if (generatedImageBuilder_ == null) { + return generatedImage_ == null + ? com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage.getDefaultInstance() + : generatedImage_; + } else { + return generatedImageBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * The generated output image.
      +     * 
      + * + * .google.shopping.merchant.productstudio.v1alpha.GeneratedImage generated_image = 1; + * + */ + public Builder setGeneratedImage( + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage value) { + if (generatedImageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + generatedImage_ = value; + } else { + generatedImageBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The generated output image.
      +     * 
      + * + * .google.shopping.merchant.productstudio.v1alpha.GeneratedImage generated_image = 1; + * + */ + public Builder setGeneratedImage( + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage.Builder builderForValue) { + if (generatedImageBuilder_ == null) { + generatedImage_ = builderForValue.build(); + } else { + generatedImageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The generated output image.
      +     * 
      + * + * .google.shopping.merchant.productstudio.v1alpha.GeneratedImage generated_image = 1; + * + */ + public Builder mergeGeneratedImage( + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage value) { + if (generatedImageBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && generatedImage_ != null + && generatedImage_ + != com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage + .getDefaultInstance()) { + getGeneratedImageBuilder().mergeFrom(value); + } else { + generatedImage_ = value; + } + } else { + generatedImageBuilder_.mergeFrom(value); + } + if (generatedImage_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * The generated output image.
      +     * 
      + * + * .google.shopping.merchant.productstudio.v1alpha.GeneratedImage generated_image = 1; + * + */ + public Builder clearGeneratedImage() { + bitField0_ = (bitField0_ & ~0x00000001); + generatedImage_ = null; + if (generatedImageBuilder_ != null) { + generatedImageBuilder_.dispose(); + generatedImageBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * The generated output image.
      +     * 
      + * + * .google.shopping.merchant.productstudio.v1alpha.GeneratedImage generated_image = 1; + * + */ + public com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage.Builder + getGeneratedImageBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getGeneratedImageFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * The generated output image.
      +     * 
      + * + * .google.shopping.merchant.productstudio.v1alpha.GeneratedImage generated_image = 1; + * + */ + public com.google.shopping.merchant.productstudio.v1alpha.GeneratedImageOrBuilder + getGeneratedImageOrBuilder() { + if (generatedImageBuilder_ != null) { + return generatedImageBuilder_.getMessageOrBuilder(); + } else { + return generatedImage_ == null + ? com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage.getDefaultInstance() + : generatedImage_; + } + } + + /** + * + * + *
      +     * The generated output image.
      +     * 
      + * + * .google.shopping.merchant.productstudio.v1alpha.GeneratedImage generated_image = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage, + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage.Builder, + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImageOrBuilder> + getGeneratedImageFieldBuilder() { + if (generatedImageBuilder_ == null) { + generatedImageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage, + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage.Builder, + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImageOrBuilder>( + getGeneratedImage(), getParentForChildren(), isClean()); + generatedImage_ = null; + } + return generatedImageBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundResponse) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundResponse) + private static final com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundResponse(); + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .GenerateProductImageBackgroundResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateProductImageBackgroundResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/GenerateProductImageBackgroundResponseOrBuilder.java b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/GenerateProductImageBackgroundResponseOrBuilder.java new file mode 100644 index 000000000000..422bc0424c40 --- /dev/null +++ b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/GenerateProductImageBackgroundResponseOrBuilder.java @@ -0,0 +1,67 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/productstudio/v1alpha/image.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.productstudio.v1alpha; + +public interface GenerateProductImageBackgroundResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * The generated output image.
      +   * 
      + * + * .google.shopping.merchant.productstudio.v1alpha.GeneratedImage generated_image = 1; + * + * + * @return Whether the generatedImage field is set. + */ + boolean hasGeneratedImage(); + + /** + * + * + *
      +   * The generated output image.
      +   * 
      + * + * .google.shopping.merchant.productstudio.v1alpha.GeneratedImage generated_image = 1; + * + * + * @return The generatedImage. + */ + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage getGeneratedImage(); + + /** + * + * + *
      +   * The generated output image.
      +   * 
      + * + * .google.shopping.merchant.productstudio.v1alpha.GeneratedImage generated_image = 1; + * + */ + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImageOrBuilder + getGeneratedImageOrBuilder(); +} diff --git a/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/GeneratedImage.java b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/GeneratedImage.java new file mode 100644 index 000000000000..0be58074696f --- /dev/null +++ b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/GeneratedImage.java @@ -0,0 +1,1428 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/productstudio/v1alpha/image.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.productstudio.v1alpha; + +/** + * + * + *
      + * Represents a generated image object.
      + * 
      + * + * Protobuf type {@code google.shopping.merchant.productstudio.v1alpha.GeneratedImage} + */ +public final class GeneratedImage extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.productstudio.v1alpha.GeneratedImage) + GeneratedImageOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GeneratedImage.newBuilder() to construct. + private GeneratedImage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GeneratedImage() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GeneratedImage(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_GeneratedImage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_GeneratedImage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage.class, + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage.Builder.class); + } + + private int bitField0_; + private int imageCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object image_; + + public enum ImageCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + URI(2), + IMAGE_BYTES(3), + IMAGE_NOT_SET(0); + private final int value; + + private ImageCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ImageCase valueOf(int value) { + return forNumber(value); + } + + public static ImageCase forNumber(int value) { + switch (value) { + case 2: + return URI; + case 3: + return IMAGE_BYTES; + case 0: + return IMAGE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ImageCase getImageCase() { + return ImageCase.forNumber(imageCase_); + } + + public static final int URI_FIELD_NUMBER = 2; + + /** + * + * + *
      +   * Generally web-requestable URI of the generated image. This is a temporary
      +   * URI and will expire after 6 months. A URI may not be populated
      +   * immediately after generation. Use get or list api using image_id to get
      +   * the URI.
      +   * 
      + * + * string uri = 2; + * + * @return Whether the uri field is set. + */ + public boolean hasUri() { + return imageCase_ == 2; + } + + /** + * + * + *
      +   * Generally web-requestable URI of the generated image. This is a temporary
      +   * URI and will expire after 6 months. A URI may not be populated
      +   * immediately after generation. Use get or list api using image_id to get
      +   * the URI.
      +   * 
      + * + * string uri = 2; + * + * @return The uri. + */ + public java.lang.String getUri() { + java.lang.Object ref = ""; + if (imageCase_ == 2) { + ref = image_; + } + if (ref instanceof java.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 (imageCase_ == 2) { + image_ = s; + } + return s; + } + } + + /** + * + * + *
      +   * Generally web-requestable URI of the generated image. This is a temporary
      +   * URI and will expire after 6 months. A URI may not be populated
      +   * immediately after generation. Use get or list api using image_id to get
      +   * the URI.
      +   * 
      + * + * string uri = 2; + * + * @return The bytes for uri. + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = ""; + if (imageCase_ == 2) { + ref = image_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (imageCase_ == 2) { + image_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IMAGE_BYTES_FIELD_NUMBER = 3; + + /** + * + * + *
      +   * Raw bytes for the image.
      +   * 
      + * + * bytes image_bytes = 3; + * + * @return Whether the imageBytes field is set. + */ + @java.lang.Override + public boolean hasImageBytes() { + return imageCase_ == 3; + } + + /** + * + * + *
      +   * Raw bytes for the image.
      +   * 
      + * + * bytes image_bytes = 3; + * + * @return The imageBytes. + */ + @java.lang.Override + public com.google.protobuf.ByteString getImageBytes() { + if (imageCase_ == 3) { + return (com.google.protobuf.ByteString) image_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * Identifier. The unique key for the image.
      +   * 
      + * + * 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 unique key for the image.
      +   * 
      + * + * 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 GENERATION_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp generationTime_; + + /** + * + * + *
      +   * The timestamp when the image was generated.
      +   * 
      + * + * .google.protobuf.Timestamp generation_time = 4; + * + * @return Whether the generationTime field is set. + */ + @java.lang.Override + public boolean hasGenerationTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * The timestamp when the image was generated.
      +   * 
      + * + * .google.protobuf.Timestamp generation_time = 4; + * + * @return The generationTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getGenerationTime() { + return generationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : generationTime_; + } + + /** + * + * + *
      +   * The timestamp when the image was generated.
      +   * 
      + * + * .google.protobuf.Timestamp generation_time = 4; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getGenerationTimeOrBuilder() { + return generationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : generationTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (imageCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, image_); + } + if (imageCase_ == 3) { + output.writeBytes(3, (com.google.protobuf.ByteString) image_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getGenerationTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (imageCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, image_); + } + if (imageCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeBytesSize( + 3, (com.google.protobuf.ByteString) image_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getGenerationTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage)) { + return super.equals(obj); + } + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage other = + (com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage) obj; + + if (!getName().equals(other.getName())) return false; + if (hasGenerationTime() != other.hasGenerationTime()) return false; + if (hasGenerationTime()) { + if (!getGenerationTime().equals(other.getGenerationTime())) return false; + } + if (!getImageCase().equals(other.getImageCase())) return false; + switch (imageCase_) { + case 2: + if (!getUri().equals(other.getUri())) return false; + break; + case 3: + if (!getImageBytes().equals(other.getImageBytes())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasGenerationTime()) { + hash = (37 * hash) + GENERATION_TIME_FIELD_NUMBER; + hash = (53 * hash) + getGenerationTime().hashCode(); + } + switch (imageCase_) { + case 2: + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + break; + case 3: + hash = (37 * hash) + IMAGE_BYTES_FIELD_NUMBER; + hash = (53 * hash) + getImageBytes().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Represents a generated image object.
      +   * 
      + * + * Protobuf type {@code google.shopping.merchant.productstudio.v1alpha.GeneratedImage} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.productstudio.v1alpha.GeneratedImage) + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_GeneratedImage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_GeneratedImage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage.class, + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage.Builder.class); + } + + // Construct using + // com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getGenerationTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + generationTime_ = null; + if (generationTimeBuilder_ != null) { + generationTimeBuilder_.dispose(); + generationTimeBuilder_ = null; + } + imageCase_ = 0; + image_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_GeneratedImage_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage + getDefaultInstanceForType() { + return com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage.getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage build() { + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage buildPartial() { + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage result = + new com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.generationTime_ = + generationTimeBuilder_ == null ? generationTime_ : generationTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage result) { + result.imageCase_ = imageCase_; + result.image_ = this.image_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage) { + return mergeFrom((com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage other) { + if (other + == com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasGenerationTime()) { + mergeGenerationTime(other.getGenerationTime()); + } + switch (other.getImageCase()) { + case URI: + { + imageCase_ = 2; + image_ = other.image_; + onChanged(); + break; + } + case IMAGE_BYTES: + { + setImageBytes(other.getImageBytes()); + break; + } + case IMAGE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + imageCase_ = 2; + image_ = s; + break; + } // case 18 + case 26: + { + image_ = input.readBytes(); + imageCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(getGenerationTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int imageCase_ = 0; + private java.lang.Object image_; + + public ImageCase getImageCase() { + return ImageCase.forNumber(imageCase_); + } + + public Builder clearImage() { + imageCase_ = 0; + image_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
      +     * Generally web-requestable URI of the generated image. This is a temporary
      +     * URI and will expire after 6 months. A URI may not be populated
      +     * immediately after generation. Use get or list api using image_id to get
      +     * the URI.
      +     * 
      + * + * string uri = 2; + * + * @return Whether the uri field is set. + */ + @java.lang.Override + public boolean hasUri() { + return imageCase_ == 2; + } + + /** + * + * + *
      +     * Generally web-requestable URI of the generated image. This is a temporary
      +     * URI and will expire after 6 months. A URI may not be populated
      +     * immediately after generation. Use get or list api using image_id to get
      +     * the URI.
      +     * 
      + * + * string uri = 2; + * + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = ""; + if (imageCase_ == 2) { + ref = image_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (imageCase_ == 2) { + image_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Generally web-requestable URI of the generated image. This is a temporary
      +     * URI and will expire after 6 months. A URI may not be populated
      +     * immediately after generation. Use get or list api using image_id to get
      +     * the URI.
      +     * 
      + * + * string uri = 2; + * + * @return The bytes for uri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = ""; + if (imageCase_ == 2) { + ref = image_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (imageCase_ == 2) { + image_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Generally web-requestable URI of the generated image. This is a temporary
      +     * URI and will expire after 6 months. A URI may not be populated
      +     * immediately after generation. Use get or list api using image_id to get
      +     * the URI.
      +     * 
      + * + * string uri = 2; + * + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + imageCase_ = 2; + image_ = value; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Generally web-requestable URI of the generated image. This is a temporary
      +     * URI and will expire after 6 months. A URI may not be populated
      +     * immediately after generation. Use get or list api using image_id to get
      +     * the URI.
      +     * 
      + * + * string uri = 2; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + if (imageCase_ == 2) { + imageCase_ = 0; + image_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Generally web-requestable URI of the generated image. This is a temporary
      +     * URI and will expire after 6 months. A URI may not be populated
      +     * immediately after generation. Use get or list api using image_id to get
      +     * the URI.
      +     * 
      + * + * string uri = 2; + * + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + imageCase_ = 2; + image_ = value; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Raw bytes for the image.
      +     * 
      + * + * bytes image_bytes = 3; + * + * @return Whether the imageBytes field is set. + */ + public boolean hasImageBytes() { + return imageCase_ == 3; + } + + /** + * + * + *
      +     * Raw bytes for the image.
      +     * 
      + * + * bytes image_bytes = 3; + * + * @return The imageBytes. + */ + public com.google.protobuf.ByteString getImageBytes() { + if (imageCase_ == 3) { + return (com.google.protobuf.ByteString) image_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + /** + * + * + *
      +     * Raw bytes for the image.
      +     * 
      + * + * bytes image_bytes = 3; + * + * @param value The imageBytes to set. + * @return This builder for chaining. + */ + public Builder setImageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + imageCase_ = 3; + image_ = value; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Raw bytes for the image.
      +     * 
      + * + * bytes image_bytes = 3; + * + * @return This builder for chaining. + */ + public Builder clearImageBytes() { + if (imageCase_ == 3) { + imageCase_ = 0; + image_ = null; + onChanged(); + } + return this; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Identifier. The unique key for the image.
      +     * 
      + * + * 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 unique key for the image.
      +     * 
      + * + * 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 unique key for the image.
      +     * 
      + * + * 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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Identifier. The unique key for the image.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Identifier. The unique key for the image.
      +     * 
      + * + * 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_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp generationTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + generationTimeBuilder_; + + /** + * + * + *
      +     * The timestamp when the image was generated.
      +     * 
      + * + * .google.protobuf.Timestamp generation_time = 4; + * + * @return Whether the generationTime field is set. + */ + public boolean hasGenerationTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +     * The timestamp when the image was generated.
      +     * 
      + * + * .google.protobuf.Timestamp generation_time = 4; + * + * @return The generationTime. + */ + public com.google.protobuf.Timestamp getGenerationTime() { + if (generationTimeBuilder_ == null) { + return generationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : generationTime_; + } else { + return generationTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * The timestamp when the image was generated.
      +     * 
      + * + * .google.protobuf.Timestamp generation_time = 4; + */ + public Builder setGenerationTime(com.google.protobuf.Timestamp value) { + if (generationTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + generationTime_ = value; + } else { + generationTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The timestamp when the image was generated.
      +     * 
      + * + * .google.protobuf.Timestamp generation_time = 4; + */ + public Builder setGenerationTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (generationTimeBuilder_ == null) { + generationTime_ = builderForValue.build(); + } else { + generationTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The timestamp when the image was generated.
      +     * 
      + * + * .google.protobuf.Timestamp generation_time = 4; + */ + public Builder mergeGenerationTime(com.google.protobuf.Timestamp value) { + if (generationTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && generationTime_ != null + && generationTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getGenerationTimeBuilder().mergeFrom(value); + } else { + generationTime_ = value; + } + } else { + generationTimeBuilder_.mergeFrom(value); + } + if (generationTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * The timestamp when the image was generated.
      +     * 
      + * + * .google.protobuf.Timestamp generation_time = 4; + */ + public Builder clearGenerationTime() { + bitField0_ = (bitField0_ & ~0x00000008); + generationTime_ = null; + if (generationTimeBuilder_ != null) { + generationTimeBuilder_.dispose(); + generationTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * The timestamp when the image was generated.
      +     * 
      + * + * .google.protobuf.Timestamp generation_time = 4; + */ + public com.google.protobuf.Timestamp.Builder getGenerationTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getGenerationTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * The timestamp when the image was generated.
      +     * 
      + * + * .google.protobuf.Timestamp generation_time = 4; + */ + public com.google.protobuf.TimestampOrBuilder getGenerationTimeOrBuilder() { + if (generationTimeBuilder_ != null) { + return generationTimeBuilder_.getMessageOrBuilder(); + } else { + return generationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : generationTime_; + } + } + + /** + * + * + *
      +     * The timestamp when the image was generated.
      +     * 
      + * + * .google.protobuf.Timestamp generation_time = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getGenerationTimeFieldBuilder() { + if (generationTimeBuilder_ == null) { + generationTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getGenerationTime(), getParentForChildren(), isClean()); + generationTime_ = null; + } + return generationTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.productstudio.v1alpha.GeneratedImage) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.productstudio.v1alpha.GeneratedImage) + private static final com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage(); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GeneratedImage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/GeneratedImageOrBuilder.java b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/GeneratedImageOrBuilder.java new file mode 100644 index 000000000000..571b3932ab78 --- /dev/null +++ b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/GeneratedImageOrBuilder.java @@ -0,0 +1,165 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/productstudio/v1alpha/image.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.productstudio.v1alpha; + +public interface GeneratedImageOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.productstudio.v1alpha.GeneratedImage) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Generally web-requestable URI of the generated image. This is a temporary
      +   * URI and will expire after 6 months. A URI may not be populated
      +   * immediately after generation. Use get or list api using image_id to get
      +   * the URI.
      +   * 
      + * + * string uri = 2; + * + * @return Whether the uri field is set. + */ + boolean hasUri(); + + /** + * + * + *
      +   * Generally web-requestable URI of the generated image. This is a temporary
      +   * URI and will expire after 6 months. A URI may not be populated
      +   * immediately after generation. Use get or list api using image_id to get
      +   * the URI.
      +   * 
      + * + * string uri = 2; + * + * @return The uri. + */ + java.lang.String getUri(); + + /** + * + * + *
      +   * Generally web-requestable URI of the generated image. This is a temporary
      +   * URI and will expire after 6 months. A URI may not be populated
      +   * immediately after generation. Use get or list api using image_id to get
      +   * the URI.
      +   * 
      + * + * string uri = 2; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
      +   * Raw bytes for the image.
      +   * 
      + * + * bytes image_bytes = 3; + * + * @return Whether the imageBytes field is set. + */ + boolean hasImageBytes(); + + /** + * + * + *
      +   * Raw bytes for the image.
      +   * 
      + * + * bytes image_bytes = 3; + * + * @return The imageBytes. + */ + com.google.protobuf.ByteString getImageBytes(); + + /** + * + * + *
      +   * Identifier. The unique key for the image.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Identifier. The unique key for the image.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +   * The timestamp when the image was generated.
      +   * 
      + * + * .google.protobuf.Timestamp generation_time = 4; + * + * @return Whether the generationTime field is set. + */ + boolean hasGenerationTime(); + + /** + * + * + *
      +   * The timestamp when the image was generated.
      +   * 
      + * + * .google.protobuf.Timestamp generation_time = 4; + * + * @return The generationTime. + */ + com.google.protobuf.Timestamp getGenerationTime(); + + /** + * + * + *
      +   * The timestamp when the image was generated.
      +   * 
      + * + * .google.protobuf.Timestamp generation_time = 4; + */ + com.google.protobuf.TimestampOrBuilder getGenerationTimeOrBuilder(); + + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage.ImageCase getImageCase(); +} diff --git a/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/ImageProto.java b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/ImageProto.java new file mode 100644 index 000000000000..6939b674fa46 --- /dev/null +++ b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/ImageProto.java @@ -0,0 +1,285 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/productstudio/v1alpha/image.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.productstudio.v1alpha; + +public final class ImageProto { + private ImageProto() {} + + 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_shopping_merchant_productstudio_v1alpha_GenerateProductImageBackgroundRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_productstudio_v1alpha_GenerateProductImageBackgroundRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_productstudio_v1alpha_GenerateProductImageBackgroundResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_productstudio_v1alpha_GenerateProductImageBackgroundResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_productstudio_v1alpha_RemoveProductImageBackgroundRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_productstudio_v1alpha_RemoveProductImageBackgroundRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_productstudio_v1alpha_RemoveProductImageBackgroundResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_productstudio_v1alpha_RemoveProductImageBackgroundResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_productstudio_v1alpha_UpscaleProductImageRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_productstudio_v1alpha_UpscaleProductImageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_productstudio_v1alpha_UpscaleProductImageResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_productstudio_v1alpha_UpscaleProductImageResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_productstudio_v1alpha_GeneratedImage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_productstudio_v1alpha_GeneratedImage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_productstudio_v1alpha_OutputImageConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_productstudio_v1alpha_OutputImageConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_productstudio_v1alpha_GenerateImageBackgroundConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_productstudio_v1alpha_GenerateImageBackgroundConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_productstudio_v1alpha_RemoveImageBackgroundConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_productstudio_v1alpha_RemoveImageBackgroundConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_productstudio_v1alpha_RgbColor_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_productstudio_v1alpha_RgbColor_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/shopping/merchant/productstudio/v1alpha/image.proto\022.google.shopping.me" + + "rchant.productstudio.v1alpha\032\034google/api" + + "/annotations.proto\032\027google/api/client.pr" + + "oto\032\037google/api/field_behavior.proto\032\031go" + + "ogle/api/resource.proto\032\037google/protobuf" + + "/timestamp.proto\032Igoogle/shopping/mercha" + + "nt/productstudio/v1alpha/productstudio_common.proto\"\323\002\n" + + "%GenerateProductImageBackgroundRequest\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\002\022]\n\r" + + "output_config\030\002 \001(\0132A.google.shopping.mercha" + + "nt.productstudio.v1alpha.OutputImageConfigB\003\340A\001\022T\n" + + "\013input_image\030\003 \001(\0132:.google.sh" + + "opping.merchant.productstudio.v1alpha.InputImageB\003\340A\002\022b\n" + + "\006config\030\004 \001(\0132M.google.s" + + "hopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfigB\003\340A\002\"\201\001\n" + + "&GenerateProductImageBackgroundResponse\022W\n" + + "\017generated_image\030\001 \001(\0132>.google.shopping." + + "merchant.productstudio.v1alpha.GeneratedImage\"\317\002\n" + + "#RemoveProductImageBackgroundRequest\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\002\022]\n\r" + + "output_config\030\002 \001(\0132A.google.shopping.merchant.produ" + + "ctstudio.v1alpha.OutputImageConfigB\003\340A\001\022T\n" + + "\013input_image\030\003 \001(\0132:.google.shopping.m" + + "erchant.productstudio.v1alpha.InputImageB\003\340A\002\022`\n" + + "\006config\030\004 \001(\0132K.google.shopping." + + "merchant.productstudio.v1alpha.RemoveImageBackgroundConfigB\003\340A\001\"\177\n" + + "$RemoveProductImageBackgroundResponse\022W\n" + + "\017generated_image\030\001" + + " \001(\0132>.google.shopping.merchant.productstudio.v1alpha.GeneratedImage\"\344\001\n" + + "\032UpscaleProductImageRequest\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\002\022]\n\r" + + "output_config\030\002 \001(\0132A.google.shopp" + + "ing.merchant.productstudio.v1alpha.OutputImageConfigB\003\340A\001\022T\n" + + "\013input_image\030\003 \001(\0132:" + + ".google.shopping.merchant.productstudio.v1alpha.InputImageB\003\340A\002\"v\n" + + "\033UpscaleProductImageResponse\022W\n" + + "\017generated_image\030\001 \001(\0132" + + ">.google.shopping.merchant.productstudio.v1alpha.GeneratedImage\"\220\002\n" + + "\016GeneratedImage\022\r\n" + + "\003uri\030\002 \001(\tH\000\022\025\n" + + "\013image_bytes\030\003 \001(\014H\000\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\0223\n" + + "\017generation_time\030\004" + + " \001(\0132\032.google.protobuf.Timestamp:\206\001\352A\202\001\n" + + ")merchantapi.googleapis.com/GeneratedImage\0224accounts/{account}/generatedImages/{" + + "generated_image}*\017generatedImages2\016generatedImageB\007\n" + + "\005image\"2\n" + + "\021OutputImageConfig\022\035\n" + + "\020return_image_uri\030\001 \001(\010B\003\340A\001\"f\n" + + "\035GenerateImageBackgroundConfig\022 \n" + + "\023product_description\030\001 \001(\tB\003\340A\002\022#\n" + + "\026background_description\030\002 \001(\tB\003\340A\002\"v\n" + + "\033RemoveImageBackgroundConfig\022W\n" + + "\020background_color\030\001 \001(\01328.google" + + ".shopping.merchant.productstudio.v1alpha.RgbColorB\003\340A\001\"C\n" + + "\010RgbColor\022\020\n" + + "\003red\030\001 \001(\005B\003\340A\001\022\022\n" + + "\005green\030\002 \001(\005B\003\340A\001\022\021\n" + + "\004blue\030\003 \001(\005B\003\340A\0012\332\007\n" + + "\014ImageService\022\272\002\n" + + "\036GenerateProductImageBackground\022U.google.shopping.mercha" + + "nt.productstudio.v1alpha.GenerateProductImageBackgroundRequest\032V.google.shopping" + + ".merchant.productstudio.v1alpha.Generate" + + "ProductImageBackgroundResponse\"i\332A\004name\202" + + "\323\344\223\002\\\"W/productstudio/v1alpha/{name=acco" + + "unts/*}/generatedImages:generateProductImageBackground:\001*\022\262\002\n" + + "\034RemoveProductImageBackground\022S.google.shopping.merchant.pr" + + "oductstudio.v1alpha.RemoveProductImageBackgroundRequest\032T.google.shopping.mercha" + + "nt.productstudio.v1alpha.RemoveProductIm" + + "ageBackgroundResponse\"g\332A\004name\202\323\344\223\002Z\"U/p" + + "roductstudio/v1alpha/{name=accounts/*}/g" + + "eneratedImages:removeProductImageBackground:\001*\022\216\002\n" + + "\023UpscaleProductImage\022J.google.shopping.merchant.productstudio.v1alpha." + + "UpscaleProductImageRequest\032K.google.shopping.merchant.productstudio.v1alpha.Upsc" + + "aleProductImageResponse\"^\332A\004name\202\323\344\223\002Q\"L" + + "/productstudio/v1alpha/{name=accounts/*}/generatedImages:upscaleProductImage:\001*\032" + + "G\312A\032merchantapi.googleapis.com\322A\'https://www.googleapis.com/auth/contentB\242\001\n" + + "2com.google.shopping.merchant.productstudio.v1alphaB\n" + + "ImageProtoP\001Z^cloud.google.com/go/shopping/merchant/productstudio/apiv1" + + "alpha/productstudiopb;productstudiopbb\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.protobuf.TimestampProto.getDescriptor(), + com.google.shopping.merchant.productstudio.v1alpha.ProductStudioCommonProto + .getDescriptor(), + }); + internal_static_google_shopping_merchant_productstudio_v1alpha_GenerateProductImageBackgroundRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_shopping_merchant_productstudio_v1alpha_GenerateProductImageBackgroundRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_productstudio_v1alpha_GenerateProductImageBackgroundRequest_descriptor, + new java.lang.String[] { + "Name", "OutputConfig", "InputImage", "Config", + }); + internal_static_google_shopping_merchant_productstudio_v1alpha_GenerateProductImageBackgroundResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_shopping_merchant_productstudio_v1alpha_GenerateProductImageBackgroundResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_productstudio_v1alpha_GenerateProductImageBackgroundResponse_descriptor, + new java.lang.String[] { + "GeneratedImage", + }); + internal_static_google_shopping_merchant_productstudio_v1alpha_RemoveProductImageBackgroundRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_shopping_merchant_productstudio_v1alpha_RemoveProductImageBackgroundRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_productstudio_v1alpha_RemoveProductImageBackgroundRequest_descriptor, + new java.lang.String[] { + "Name", "OutputConfig", "InputImage", "Config", + }); + internal_static_google_shopping_merchant_productstudio_v1alpha_RemoveProductImageBackgroundResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_shopping_merchant_productstudio_v1alpha_RemoveProductImageBackgroundResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_productstudio_v1alpha_RemoveProductImageBackgroundResponse_descriptor, + new java.lang.String[] { + "GeneratedImage", + }); + internal_static_google_shopping_merchant_productstudio_v1alpha_UpscaleProductImageRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_shopping_merchant_productstudio_v1alpha_UpscaleProductImageRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_productstudio_v1alpha_UpscaleProductImageRequest_descriptor, + new java.lang.String[] { + "Name", "OutputConfig", "InputImage", + }); + internal_static_google_shopping_merchant_productstudio_v1alpha_UpscaleProductImageResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_shopping_merchant_productstudio_v1alpha_UpscaleProductImageResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_productstudio_v1alpha_UpscaleProductImageResponse_descriptor, + new java.lang.String[] { + "GeneratedImage", + }); + internal_static_google_shopping_merchant_productstudio_v1alpha_GeneratedImage_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_shopping_merchant_productstudio_v1alpha_GeneratedImage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_productstudio_v1alpha_GeneratedImage_descriptor, + new java.lang.String[] { + "Uri", "ImageBytes", "Name", "GenerationTime", "Image", + }); + internal_static_google_shopping_merchant_productstudio_v1alpha_OutputImageConfig_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_shopping_merchant_productstudio_v1alpha_OutputImageConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_productstudio_v1alpha_OutputImageConfig_descriptor, + new java.lang.String[] { + "ReturnImageUri", + }); + internal_static_google_shopping_merchant_productstudio_v1alpha_GenerateImageBackgroundConfig_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_shopping_merchant_productstudio_v1alpha_GenerateImageBackgroundConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_productstudio_v1alpha_GenerateImageBackgroundConfig_descriptor, + new java.lang.String[] { + "ProductDescription", "BackgroundDescription", + }); + internal_static_google_shopping_merchant_productstudio_v1alpha_RemoveImageBackgroundConfig_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_shopping_merchant_productstudio_v1alpha_RemoveImageBackgroundConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_productstudio_v1alpha_RemoveImageBackgroundConfig_descriptor, + new java.lang.String[] { + "BackgroundColor", + }); + internal_static_google_shopping_merchant_productstudio_v1alpha_RgbColor_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_shopping_merchant_productstudio_v1alpha_RgbColor_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_productstudio_v1alpha_RgbColor_descriptor, + new java.lang.String[] { + "Red", "Green", "Blue", + }); + 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.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.shopping.merchant.productstudio.v1alpha.ProductStudioCommonProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/InputImage.java b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/InputImage.java new file mode 100644 index 000000000000..d81e62cce2e3 --- /dev/null +++ b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/InputImage.java @@ -0,0 +1,914 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/productstudio/v1alpha/productstudio_common.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.productstudio.v1alpha; + +/** + * + * + *
      + * Represents an input image.
      + * 
      + * + * Protobuf type {@code google.shopping.merchant.productstudio.v1alpha.InputImage} + */ +public final class InputImage extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.productstudio.v1alpha.InputImage) + InputImageOrBuilder { + private static final long serialVersionUID = 0L; + + // Use InputImage.newBuilder() to construct. + private InputImage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private InputImage() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new InputImage(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.productstudio.v1alpha.ProductStudioCommonProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_InputImage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.productstudio.v1alpha.ProductStudioCommonProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_InputImage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.productstudio.v1alpha.InputImage.class, + com.google.shopping.merchant.productstudio.v1alpha.InputImage.Builder.class); + } + + private int imageCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object image_; + + public enum ImageCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + IMAGE_URI(1), + IMAGE_BYTES(2), + IMAGE_NOT_SET(0); + private final int value; + + private ImageCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ImageCase valueOf(int value) { + return forNumber(value); + } + + public static ImageCase forNumber(int value) { + switch (value) { + case 1: + return IMAGE_URI; + case 2: + return IMAGE_BYTES; + case 0: + return IMAGE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ImageCase getImageCase() { + return ImageCase.forNumber(imageCase_); + } + + public static final int IMAGE_URI_FIELD_NUMBER = 1; + + /** + * + * + *
      +   * Public uri of the image.
      +   * 
      + * + * string image_uri = 1; + * + * @return Whether the imageUri field is set. + */ + public boolean hasImageUri() { + return imageCase_ == 1; + } + + /** + * + * + *
      +   * Public uri of the image.
      +   * 
      + * + * string image_uri = 1; + * + * @return The imageUri. + */ + public java.lang.String getImageUri() { + java.lang.Object ref = ""; + if (imageCase_ == 1) { + ref = image_; + } + if (ref instanceof java.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 (imageCase_ == 1) { + image_ = s; + } + return s; + } + } + + /** + * + * + *
      +   * Public uri of the image.
      +   * 
      + * + * string image_uri = 1; + * + * @return The bytes for imageUri. + */ + public com.google.protobuf.ByteString getImageUriBytes() { + java.lang.Object ref = ""; + if (imageCase_ == 1) { + ref = image_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (imageCase_ == 1) { + image_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IMAGE_BYTES_FIELD_NUMBER = 2; + + /** + * + * + *
      +   * Raw image bytes.
      +   * 
      + * + * bytes image_bytes = 2; + * + * @return Whether the imageBytes field is set. + */ + @java.lang.Override + public boolean hasImageBytes() { + return imageCase_ == 2; + } + + /** + * + * + *
      +   * Raw image bytes.
      +   * 
      + * + * bytes image_bytes = 2; + * + * @return The imageBytes. + */ + @java.lang.Override + public com.google.protobuf.ByteString getImageBytes() { + if (imageCase_ == 2) { + return (com.google.protobuf.ByteString) image_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (imageCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, image_); + } + if (imageCase_ == 2) { + output.writeBytes(2, (com.google.protobuf.ByteString) image_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (imageCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, image_); + } + if (imageCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeBytesSize( + 2, (com.google.protobuf.ByteString) image_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.shopping.merchant.productstudio.v1alpha.InputImage)) { + return super.equals(obj); + } + com.google.shopping.merchant.productstudio.v1alpha.InputImage other = + (com.google.shopping.merchant.productstudio.v1alpha.InputImage) obj; + + if (!getImageCase().equals(other.getImageCase())) return false; + switch (imageCase_) { + case 1: + if (!getImageUri().equals(other.getImageUri())) return false; + break; + case 2: + if (!getImageBytes().equals(other.getImageBytes())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (imageCase_) { + case 1: + hash = (37 * hash) + IMAGE_URI_FIELD_NUMBER; + hash = (53 * hash) + getImageUri().hashCode(); + break; + case 2: + hash = (37 * hash) + IMAGE_BYTES_FIELD_NUMBER; + hash = (53 * hash) + getImageBytes().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.shopping.merchant.productstudio.v1alpha.InputImage parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.InputImage parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.InputImage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.InputImage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.InputImage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.InputImage parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.InputImage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.InputImage parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.InputImage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.InputImage parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.InputImage parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.InputImage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.shopping.merchant.productstudio.v1alpha.InputImage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Represents an input image.
      +   * 
      + * + * Protobuf type {@code google.shopping.merchant.productstudio.v1alpha.InputImage} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.productstudio.v1alpha.InputImage) + com.google.shopping.merchant.productstudio.v1alpha.InputImageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.productstudio.v1alpha.ProductStudioCommonProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_InputImage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.productstudio.v1alpha.ProductStudioCommonProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_InputImage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.productstudio.v1alpha.InputImage.class, + com.google.shopping.merchant.productstudio.v1alpha.InputImage.Builder.class); + } + + // Construct using com.google.shopping.merchant.productstudio.v1alpha.InputImage.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + imageCase_ = 0; + image_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.productstudio.v1alpha.ProductStudioCommonProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_InputImage_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.InputImage + getDefaultInstanceForType() { + return com.google.shopping.merchant.productstudio.v1alpha.InputImage.getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.InputImage build() { + com.google.shopping.merchant.productstudio.v1alpha.InputImage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.InputImage buildPartial() { + com.google.shopping.merchant.productstudio.v1alpha.InputImage result = + new com.google.shopping.merchant.productstudio.v1alpha.InputImage(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.shopping.merchant.productstudio.v1alpha.InputImage result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.shopping.merchant.productstudio.v1alpha.InputImage result) { + result.imageCase_ = imageCase_; + result.image_ = this.image_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.shopping.merchant.productstudio.v1alpha.InputImage) { + return mergeFrom((com.google.shopping.merchant.productstudio.v1alpha.InputImage) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.shopping.merchant.productstudio.v1alpha.InputImage other) { + if (other + == com.google.shopping.merchant.productstudio.v1alpha.InputImage.getDefaultInstance()) + return this; + switch (other.getImageCase()) { + case IMAGE_URI: + { + imageCase_ = 1; + image_ = other.image_; + onChanged(); + break; + } + case IMAGE_BYTES: + { + setImageBytes(other.getImageBytes()); + break; + } + case IMAGE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + imageCase_ = 1; + image_ = s; + break; + } // case 10 + case 18: + { + image_ = input.readBytes(); + imageCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int imageCase_ = 0; + private java.lang.Object image_; + + public ImageCase getImageCase() { + return ImageCase.forNumber(imageCase_); + } + + public Builder clearImage() { + imageCase_ = 0; + image_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
      +     * Public uri of the image.
      +     * 
      + * + * string image_uri = 1; + * + * @return Whether the imageUri field is set. + */ + @java.lang.Override + public boolean hasImageUri() { + return imageCase_ == 1; + } + + /** + * + * + *
      +     * Public uri of the image.
      +     * 
      + * + * string image_uri = 1; + * + * @return The imageUri. + */ + @java.lang.Override + public java.lang.String getImageUri() { + java.lang.Object ref = ""; + if (imageCase_ == 1) { + ref = image_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (imageCase_ == 1) { + image_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Public uri of the image.
      +     * 
      + * + * string image_uri = 1; + * + * @return The bytes for imageUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getImageUriBytes() { + java.lang.Object ref = ""; + if (imageCase_ == 1) { + ref = image_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (imageCase_ == 1) { + image_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Public uri of the image.
      +     * 
      + * + * string image_uri = 1; + * + * @param value The imageUri to set. + * @return This builder for chaining. + */ + public Builder setImageUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + imageCase_ = 1; + image_ = value; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Public uri of the image.
      +     * 
      + * + * string image_uri = 1; + * + * @return This builder for chaining. + */ + public Builder clearImageUri() { + if (imageCase_ == 1) { + imageCase_ = 0; + image_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Public uri of the image.
      +     * 
      + * + * string image_uri = 1; + * + * @param value The bytes for imageUri to set. + * @return This builder for chaining. + */ + public Builder setImageUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + imageCase_ = 1; + image_ = value; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Raw image bytes.
      +     * 
      + * + * bytes image_bytes = 2; + * + * @return Whether the imageBytes field is set. + */ + public boolean hasImageBytes() { + return imageCase_ == 2; + } + + /** + * + * + *
      +     * Raw image bytes.
      +     * 
      + * + * bytes image_bytes = 2; + * + * @return The imageBytes. + */ + public com.google.protobuf.ByteString getImageBytes() { + if (imageCase_ == 2) { + return (com.google.protobuf.ByteString) image_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + /** + * + * + *
      +     * Raw image bytes.
      +     * 
      + * + * bytes image_bytes = 2; + * + * @param value The imageBytes to set. + * @return This builder for chaining. + */ + public Builder setImageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + imageCase_ = 2; + image_ = value; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Raw image bytes.
      +     * 
      + * + * bytes image_bytes = 2; + * + * @return This builder for chaining. + */ + public Builder clearImageBytes() { + if (imageCase_ == 2) { + imageCase_ = 0; + image_ = null; + onChanged(); + } + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.productstudio.v1alpha.InputImage) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.productstudio.v1alpha.InputImage) + private static final com.google.shopping.merchant.productstudio.v1alpha.InputImage + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.shopping.merchant.productstudio.v1alpha.InputImage(); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.InputImage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InputImage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.InputImage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/InputImageOrBuilder.java b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/InputImageOrBuilder.java new file mode 100644 index 000000000000..a67cb4a7ff2a --- /dev/null +++ b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/InputImageOrBuilder.java @@ -0,0 +1,93 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/productstudio/v1alpha/productstudio_common.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.productstudio.v1alpha; + +public interface InputImageOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.productstudio.v1alpha.InputImage) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Public uri of the image.
      +   * 
      + * + * string image_uri = 1; + * + * @return Whether the imageUri field is set. + */ + boolean hasImageUri(); + + /** + * + * + *
      +   * Public uri of the image.
      +   * 
      + * + * string image_uri = 1; + * + * @return The imageUri. + */ + java.lang.String getImageUri(); + + /** + * + * + *
      +   * Public uri of the image.
      +   * 
      + * + * string image_uri = 1; + * + * @return The bytes for imageUri. + */ + com.google.protobuf.ByteString getImageUriBytes(); + + /** + * + * + *
      +   * Raw image bytes.
      +   * 
      + * + * bytes image_bytes = 2; + * + * @return Whether the imageBytes field is set. + */ + boolean hasImageBytes(); + + /** + * + * + *
      +   * Raw image bytes.
      +   * 
      + * + * bytes image_bytes = 2; + * + * @return The imageBytes. + */ + com.google.protobuf.ByteString getImageBytes(); + + com.google.shopping.merchant.productstudio.v1alpha.InputImage.ImageCase getImageCase(); +} diff --git a/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/OutputImageConfig.java b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/OutputImageConfig.java new file mode 100644 index 000000000000..82e4ccaa273b --- /dev/null +++ b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/OutputImageConfig.java @@ -0,0 +1,557 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/productstudio/v1alpha/image.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.productstudio.v1alpha; + +/** + * + * + *
      + * Configuration for how the output image should be returned.
      + * 
      + * + * Protobuf type {@code google.shopping.merchant.productstudio.v1alpha.OutputImageConfig} + */ +public final class OutputImageConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.productstudio.v1alpha.OutputImageConfig) + OutputImageConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use OutputImageConfig.newBuilder() to construct. + private OutputImageConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private OutputImageConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OutputImageConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_OutputImageConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_OutputImageConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig.class, + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig.Builder.class); + } + + public static final int RETURN_IMAGE_URI_FIELD_NUMBER = 1; + private boolean returnImageUri_ = false; + + /** + * + * + *
      +   * Optional. If true, returns the output images as serving uris instead of
      +   * bytes.
      +   * 
      + * + * bool return_image_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The returnImageUri. + */ + @java.lang.Override + public boolean getReturnImageUri() { + return returnImageUri_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (returnImageUri_ != false) { + output.writeBool(1, returnImageUri_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (returnImageUri_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, returnImageUri_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig)) { + return super.equals(obj); + } + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig other = + (com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig) obj; + + if (getReturnImageUri() != other.getReturnImageUri()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RETURN_IMAGE_URI_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnImageUri()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Configuration for how the output image should be returned.
      +   * 
      + * + * Protobuf type {@code google.shopping.merchant.productstudio.v1alpha.OutputImageConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.productstudio.v1alpha.OutputImageConfig) + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_OutputImageConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_OutputImageConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig.class, + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig.Builder.class); + } + + // Construct using + // com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + returnImageUri_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_OutputImageConfig_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig + getDefaultInstanceForType() { + return com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig build() { + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig buildPartial() { + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig result = + new com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.returnImageUri_ = returnImageUri_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig) { + return mergeFrom( + (com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig other) { + if (other + == com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig + .getDefaultInstance()) return this; + if (other.getReturnImageUri() != false) { + setReturnImageUri(other.getReturnImageUri()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + returnImageUri_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean returnImageUri_; + + /** + * + * + *
      +     * Optional. If true, returns the output images as serving uris instead of
      +     * bytes.
      +     * 
      + * + * bool return_image_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The returnImageUri. + */ + @java.lang.Override + public boolean getReturnImageUri() { + return returnImageUri_; + } + + /** + * + * + *
      +     * Optional. If true, returns the output images as serving uris instead of
      +     * bytes.
      +     * 
      + * + * bool return_image_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The returnImageUri to set. + * @return This builder for chaining. + */ + public Builder setReturnImageUri(boolean value) { + + returnImageUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. If true, returns the output images as serving uris instead of
      +     * bytes.
      +     * 
      + * + * bool return_image_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearReturnImageUri() { + bitField0_ = (bitField0_ & ~0x00000001); + returnImageUri_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.productstudio.v1alpha.OutputImageConfig) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.productstudio.v1alpha.OutputImageConfig) + private static final com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig(); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OutputImageConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/OutputImageConfigOrBuilder.java b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/OutputImageConfigOrBuilder.java new file mode 100644 index 000000000000..32ca0dedbfaf --- /dev/null +++ b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/OutputImageConfigOrBuilder.java @@ -0,0 +1,40 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/productstudio/v1alpha/image.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.productstudio.v1alpha; + +public interface OutputImageConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.productstudio.v1alpha.OutputImageConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Optional. If true, returns the output images as serving uris instead of
      +   * bytes.
      +   * 
      + * + * bool return_image_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The returnImageUri. + */ + boolean getReturnImageUri(); +} diff --git a/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/ProductStudioCommonProto.java b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/ProductStudioCommonProto.java new file mode 100644 index 000000000000..b7e90debcbe2 --- /dev/null +++ b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/ProductStudioCommonProto.java @@ -0,0 +1,69 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/productstudio/v1alpha/productstudio_common.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.productstudio.v1alpha; + +public final class ProductStudioCommonProto { + private ProductStudioCommonProto() {} + + 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_shopping_merchant_productstudio_v1alpha_InputImage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_productstudio_v1alpha_InputImage_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nIgoogle/shopping/merchant/productstudio" + + "/v1alpha/productstudio_common.proto\022.goo" + + "gle.shopping.merchant.productstudio.v1al" + + "pha\"A\n\nInputImage\022\023\n\timage_uri\030\001 \001(\tH\000\022\025" + + "\n\013image_bytes\030\002 \001(\014H\000B\007\n\005imageB\260\001\n2com.g" + + "oogle.shopping.merchant.productstudio.v1" + + "alphaB\030ProductStudioCommonProtoP\001Z^cloud" + + ".google.com/go/shopping/merchant/product" + + "studio/apiv1alpha/productstudiopb;produc" + + "tstudiopbb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_shopping_merchant_productstudio_v1alpha_InputImage_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_shopping_merchant_productstudio_v1alpha_InputImage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_productstudio_v1alpha_InputImage_descriptor, + new java.lang.String[] { + "ImageUri", "ImageBytes", "Image", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/RemoveImageBackgroundConfig.java b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/RemoveImageBackgroundConfig.java new file mode 100644 index 000000000000..e4e1110a9ff1 --- /dev/null +++ b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/RemoveImageBackgroundConfig.java @@ -0,0 +1,820 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/productstudio/v1alpha/image.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.productstudio.v1alpha; + +/** + * + * + *
      + * Client provided input configuration for removing the background.
      + * 
      + * + * Protobuf type {@code google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig} + */ +public final class RemoveImageBackgroundConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig) + RemoveImageBackgroundConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use RemoveImageBackgroundConfig.newBuilder() to construct. + private RemoveImageBackgroundConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RemoveImageBackgroundConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RemoveImageBackgroundConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_RemoveImageBackgroundConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_RemoveImageBackgroundConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig.class, + com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig.Builder + .class); + } + + private int bitField0_; + public static final int BACKGROUND_COLOR_FIELD_NUMBER = 1; + private com.google.shopping.merchant.productstudio.v1alpha.RgbColor backgroundColor_; + + /** + * + * + *
      +   * Optional. If set, the result of background removal will be an RGB image
      +   * with this given color as the background, instead of an RGBA 4-channel
      +   * transparent image.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.RgbColor background_color = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the backgroundColor field is set. + */ + @java.lang.Override + public boolean hasBackgroundColor() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Optional. If set, the result of background removal will be an RGB image
      +   * with this given color as the background, instead of an RGBA 4-channel
      +   * transparent image.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.RgbColor background_color = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The backgroundColor. + */ + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.RgbColor getBackgroundColor() { + return backgroundColor_ == null + ? com.google.shopping.merchant.productstudio.v1alpha.RgbColor.getDefaultInstance() + : backgroundColor_; + } + + /** + * + * + *
      +   * Optional. If set, the result of background removal will be an RGB image
      +   * with this given color as the background, instead of an RGBA 4-channel
      +   * transparent image.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.RgbColor background_color = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.RgbColorOrBuilder + getBackgroundColorOrBuilder() { + return backgroundColor_ == null + ? com.google.shopping.merchant.productstudio.v1alpha.RgbColor.getDefaultInstance() + : backgroundColor_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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, getBackgroundColor()); + } + 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, getBackgroundColor()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig)) { + return super.equals(obj); + } + com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig other = + (com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig) obj; + + if (hasBackgroundColor() != other.hasBackgroundColor()) return false; + if (hasBackgroundColor()) { + if (!getBackgroundColor().equals(other.getBackgroundColor())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasBackgroundColor()) { + hash = (37 * hash) + BACKGROUND_COLOR_FIELD_NUMBER; + hash = (53 * hash) + getBackgroundColor().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Client provided input configuration for removing the background.
      +   * 
      + * + * Protobuf type {@code + * google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig) + com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_RemoveImageBackgroundConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_RemoveImageBackgroundConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig.class, + com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig.Builder + .class); + } + + // Construct using + // com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getBackgroundColorFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + backgroundColor_ = null; + if (backgroundColorBuilder_ != null) { + backgroundColorBuilder_.dispose(); + backgroundColorBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_RemoveImageBackgroundConfig_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig + getDefaultInstanceForType() { + return com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig build() { + com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig + buildPartial() { + com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig result = + new com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.backgroundColor_ = + backgroundColorBuilder_ == null ? backgroundColor_ : backgroundColorBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig) { + return mergeFrom( + (com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig other) { + if (other + == com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig + .getDefaultInstance()) return this; + if (other.hasBackgroundColor()) { + mergeBackgroundColor(other.getBackgroundColor()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(getBackgroundColorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.shopping.merchant.productstudio.v1alpha.RgbColor backgroundColor_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.productstudio.v1alpha.RgbColor, + com.google.shopping.merchant.productstudio.v1alpha.RgbColor.Builder, + com.google.shopping.merchant.productstudio.v1alpha.RgbColorOrBuilder> + backgroundColorBuilder_; + + /** + * + * + *
      +     * Optional. If set, the result of background removal will be an RGB image
      +     * with this given color as the background, instead of an RGBA 4-channel
      +     * transparent image.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.RgbColor background_color = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the backgroundColor field is set. + */ + public boolean hasBackgroundColor() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +     * Optional. If set, the result of background removal will be an RGB image
      +     * with this given color as the background, instead of an RGBA 4-channel
      +     * transparent image.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.RgbColor background_color = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The backgroundColor. + */ + public com.google.shopping.merchant.productstudio.v1alpha.RgbColor getBackgroundColor() { + if (backgroundColorBuilder_ == null) { + return backgroundColor_ == null + ? com.google.shopping.merchant.productstudio.v1alpha.RgbColor.getDefaultInstance() + : backgroundColor_; + } else { + return backgroundColorBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. If set, the result of background removal will be an RGB image
      +     * with this given color as the background, instead of an RGBA 4-channel
      +     * transparent image.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.RgbColor background_color = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBackgroundColor( + com.google.shopping.merchant.productstudio.v1alpha.RgbColor value) { + if (backgroundColorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + backgroundColor_ = value; + } else { + backgroundColorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. If set, the result of background removal will be an RGB image
      +     * with this given color as the background, instead of an RGBA 4-channel
      +     * transparent image.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.RgbColor background_color = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBackgroundColor( + com.google.shopping.merchant.productstudio.v1alpha.RgbColor.Builder builderForValue) { + if (backgroundColorBuilder_ == null) { + backgroundColor_ = builderForValue.build(); + } else { + backgroundColorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. If set, the result of background removal will be an RGB image
      +     * with this given color as the background, instead of an RGBA 4-channel
      +     * transparent image.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.RgbColor background_color = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeBackgroundColor( + com.google.shopping.merchant.productstudio.v1alpha.RgbColor value) { + if (backgroundColorBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && backgroundColor_ != null + && backgroundColor_ + != com.google.shopping.merchant.productstudio.v1alpha.RgbColor + .getDefaultInstance()) { + getBackgroundColorBuilder().mergeFrom(value); + } else { + backgroundColor_ = value; + } + } else { + backgroundColorBuilder_.mergeFrom(value); + } + if (backgroundColor_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. If set, the result of background removal will be an RGB image
      +     * with this given color as the background, instead of an RGBA 4-channel
      +     * transparent image.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.RgbColor background_color = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearBackgroundColor() { + bitField0_ = (bitField0_ & ~0x00000001); + backgroundColor_ = null; + if (backgroundColorBuilder_ != null) { + backgroundColorBuilder_.dispose(); + backgroundColorBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. If set, the result of background removal will be an RGB image
      +     * with this given color as the background, instead of an RGBA 4-channel
      +     * transparent image.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.RgbColor background_color = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.shopping.merchant.productstudio.v1alpha.RgbColor.Builder + getBackgroundColorBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getBackgroundColorFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. If set, the result of background removal will be an RGB image
      +     * with this given color as the background, instead of an RGBA 4-channel
      +     * transparent image.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.RgbColor background_color = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.shopping.merchant.productstudio.v1alpha.RgbColorOrBuilder + getBackgroundColorOrBuilder() { + if (backgroundColorBuilder_ != null) { + return backgroundColorBuilder_.getMessageOrBuilder(); + } else { + return backgroundColor_ == null + ? com.google.shopping.merchant.productstudio.v1alpha.RgbColor.getDefaultInstance() + : backgroundColor_; + } + } + + /** + * + * + *
      +     * Optional. If set, the result of background removal will be an RGB image
      +     * with this given color as the background, instead of an RGBA 4-channel
      +     * transparent image.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.RgbColor background_color = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.productstudio.v1alpha.RgbColor, + com.google.shopping.merchant.productstudio.v1alpha.RgbColor.Builder, + com.google.shopping.merchant.productstudio.v1alpha.RgbColorOrBuilder> + getBackgroundColorFieldBuilder() { + if (backgroundColorBuilder_ == null) { + backgroundColorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.productstudio.v1alpha.RgbColor, + com.google.shopping.merchant.productstudio.v1alpha.RgbColor.Builder, + com.google.shopping.merchant.productstudio.v1alpha.RgbColorOrBuilder>( + getBackgroundColor(), getParentForChildren(), isClean()); + backgroundColor_ = null; + } + return backgroundColorBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig) + private static final com.google.shopping.merchant.productstudio.v1alpha + .RemoveImageBackgroundConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig(); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RemoveImageBackgroundConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/RemoveImageBackgroundConfigOrBuilder.java b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/RemoveImageBackgroundConfigOrBuilder.java new file mode 100644 index 000000000000..ffd7054ec052 --- /dev/null +++ b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/RemoveImageBackgroundConfigOrBuilder.java @@ -0,0 +1,76 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/productstudio/v1alpha/image.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.productstudio.v1alpha; + +public interface RemoveImageBackgroundConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Optional. If set, the result of background removal will be an RGB image
      +   * with this given color as the background, instead of an RGBA 4-channel
      +   * transparent image.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.RgbColor background_color = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the backgroundColor field is set. + */ + boolean hasBackgroundColor(); + + /** + * + * + *
      +   * Optional. If set, the result of background removal will be an RGB image
      +   * with this given color as the background, instead of an RGBA 4-channel
      +   * transparent image.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.RgbColor background_color = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The backgroundColor. + */ + com.google.shopping.merchant.productstudio.v1alpha.RgbColor getBackgroundColor(); + + /** + * + * + *
      +   * Optional. If set, the result of background removal will be an RGB image
      +   * with this given color as the background, instead of an RGBA 4-channel
      +   * transparent image.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.RgbColor background_color = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.shopping.merchant.productstudio.v1alpha.RgbColorOrBuilder + getBackgroundColorOrBuilder(); +} diff --git a/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/RemoveProductImageBackgroundRequest.java b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/RemoveProductImageBackgroundRequest.java new file mode 100644 index 000000000000..a656f170f456 --- /dev/null +++ b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/RemoveProductImageBackgroundRequest.java @@ -0,0 +1,1664 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/productstudio/v1alpha/image.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.productstudio.v1alpha; + +/** + * + * + *
      + * Request message for the RemoveProductImageBackground method.
      + * 
      + * + * Protobuf type {@code + * google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundRequest} + */ +public final class RemoveProductImageBackgroundRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundRequest) + RemoveProductImageBackgroundRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use RemoveProductImageBackgroundRequest.newBuilder() to construct. + private RemoveProductImageBackgroundRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RemoveProductImageBackgroundRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RemoveProductImageBackgroundRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_RemoveProductImageBackgroundRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_RemoveProductImageBackgroundRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundRequest + .class, + com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundRequest + .Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * Required. The account for which to generate an image. This acts as a
      +   * container for the request and does not affect the generation itself.
      +   * Format: accounts/{account}
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.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 account for which to generate an image. This acts as a
      +   * container for the request and does not affect the generation itself.
      +   * Format: accounts/{account}
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.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 OUTPUT_CONFIG_FIELD_NUMBER = 2; + private com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig outputConfig_; + + /** + * + * + *
      +   * Optional. Configuration for how the output image should be returned.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.OutputImageConfig output_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the outputConfig field is set. + */ + @java.lang.Override + public boolean hasOutputConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Optional. Configuration for how the output image should be returned.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.OutputImageConfig output_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The outputConfig. + */ + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig getOutputConfig() { + return outputConfig_ == null + ? com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig.getDefaultInstance() + : outputConfig_; + } + + /** + * + * + *
      +   * Optional. Configuration for how the output image should be returned.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.OutputImageConfig output_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfigOrBuilder + getOutputConfigOrBuilder() { + return outputConfig_ == null + ? com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig.getDefaultInstance() + : outputConfig_; + } + + public static final int INPUT_IMAGE_FIELD_NUMBER = 3; + private com.google.shopping.merchant.productstudio.v1alpha.InputImage inputImage_; + + /** + * + * + *
      +   * Required. The input image.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.InputImage input_image = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the inputImage field is set. + */ + @java.lang.Override + public boolean hasInputImage() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * Required. The input image.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.InputImage input_image = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The inputImage. + */ + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.InputImage getInputImage() { + return inputImage_ == null + ? com.google.shopping.merchant.productstudio.v1alpha.InputImage.getDefaultInstance() + : inputImage_; + } + + /** + * + * + *
      +   * Required. The input image.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.InputImage input_image = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.InputImageOrBuilder + getInputImageOrBuilder() { + return inputImage_ == null + ? com.google.shopping.merchant.productstudio.v1alpha.InputImage.getDefaultInstance() + : inputImage_; + } + + public static final int CONFIG_FIELD_NUMBER = 4; + private com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig config_; + + /** + * + * + *
      +   * Optional. Configuration parameters for the removal of the background.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the config field is set. + */ + @java.lang.Override + public boolean hasConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +   * Optional. Configuration parameters for the removal of the background.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The config. + */ + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig + getConfig() { + return config_ == null + ? com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig + .getDefaultInstance() + : config_; + } + + /** + * + * + *
      +   * Optional. Configuration parameters for the removal of the background.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfigOrBuilder + getConfigOrBuilder() { + return config_ == null + ? com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig + .getDefaultInstance() + : config_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getOutputConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getInputImage()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(4, getConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOutputConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInputImage()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundRequest)) { + return super.equals(obj); + } + com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundRequest other = + (com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundRequest) + obj; + + if (!getName().equals(other.getName())) return false; + if (hasOutputConfig() != other.hasOutputConfig()) return false; + if (hasOutputConfig()) { + if (!getOutputConfig().equals(other.getOutputConfig())) return false; + } + if (hasInputImage() != other.hasInputImage()) return false; + if (hasInputImage()) { + if (!getInputImage().equals(other.getInputImage())) return false; + } + if (hasConfig() != other.hasConfig()) return false; + if (hasConfig()) { + if (!getConfig().equals(other.getConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasOutputConfig()) { + hash = (37 * hash) + OUTPUT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getOutputConfig().hashCode(); + } + if (hasInputImage()) { + hash = (37 * hash) + INPUT_IMAGE_FIELD_NUMBER; + hash = (53 * hash) + getInputImage().hashCode(); + } + if (hasConfig()) { + hash = (37 * hash) + CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .RemoveProductImageBackgroundRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .RemoveProductImageBackgroundRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .RemoveProductImageBackgroundRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .RemoveProductImageBackgroundRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .RemoveProductImageBackgroundRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .RemoveProductImageBackgroundRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .RemoveProductImageBackgroundRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .RemoveProductImageBackgroundRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .RemoveProductImageBackgroundRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .RemoveProductImageBackgroundRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .RemoveProductImageBackgroundRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .RemoveProductImageBackgroundRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundRequest + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for the RemoveProductImageBackground method.
      +   * 
      + * + * Protobuf type {@code + * google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundRequest) + com.google.shopping.merchant.productstudio.v1alpha + .RemoveProductImageBackgroundRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_RemoveProductImageBackgroundRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_RemoveProductImageBackgroundRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundRequest + .class, + com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundRequest + .Builder.class); + } + + // Construct using + // com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getOutputConfigFieldBuilder(); + getInputImageFieldBuilder(); + getConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + outputConfig_ = null; + if (outputConfigBuilder_ != null) { + outputConfigBuilder_.dispose(); + outputConfigBuilder_ = null; + } + inputImage_ = null; + if (inputImageBuilder_ != null) { + inputImageBuilder_.dispose(); + inputImageBuilder_ = null; + } + config_ = null; + if (configBuilder_ != null) { + configBuilder_.dispose(); + configBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_RemoveProductImageBackgroundRequest_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundRequest + getDefaultInstanceForType() { + return com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundRequest + build() { + com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundRequest + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundRequest + buildPartial() { + com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundRequest + result = + new com.google.shopping.merchant.productstudio.v1alpha + .RemoveProductImageBackgroundRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundRequest + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.outputConfig_ = + outputConfigBuilder_ == null ? outputConfig_ : outputConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.inputImage_ = inputImageBuilder_ == null ? inputImage_ : inputImageBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.config_ = configBuilder_ == null ? config_ : configBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundRequest) { + return mergeFrom( + (com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundRequest + other) { + if (other + == com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasOutputConfig()) { + mergeOutputConfig(other.getOutputConfig()); + } + if (other.hasInputImage()) { + mergeInputImage(other.getInputImage()); + } + if (other.hasConfig()) { + mergeConfig(other.getConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getInputImageFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Required. The account for which to generate an image. This acts as a
      +     * container for the request and does not affect the generation itself.
      +     * Format: accounts/{account}
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.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 account for which to generate an image. This acts as a
      +     * container for the request and does not affect the generation itself.
      +     * Format: accounts/{account}
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.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 account for which to generate an image. This acts as a
      +     * container for the request and does not affect the generation itself.
      +     * Format: accounts/{account}
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value 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 account for which to generate an image. This acts as a
      +     * container for the request and does not affect the generation itself.
      +     * Format: accounts/{account}
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The account for which to generate an image. This acts as a
      +     * container for the request and does not affect the generation itself.
      +     * Format: accounts/{account}
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig outputConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig, + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig.Builder, + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfigOrBuilder> + outputConfigBuilder_; + + /** + * + * + *
      +     * Optional. Configuration for how the output image should be returned.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.OutputImageConfig output_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the outputConfig field is set. + */ + public boolean hasOutputConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +     * Optional. Configuration for how the output image should be returned.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.OutputImageConfig output_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The outputConfig. + */ + public com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig getOutputConfig() { + if (outputConfigBuilder_ == null) { + return outputConfig_ == null + ? com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig + .getDefaultInstance() + : outputConfig_; + } else { + return outputConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. Configuration for how the output image should be returned.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.OutputImageConfig output_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOutputConfig( + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig value) { + if (outputConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputConfig_ = value; + } else { + outputConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Configuration for how the output image should be returned.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.OutputImageConfig output_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOutputConfig( + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig.Builder + builderForValue) { + if (outputConfigBuilder_ == null) { + outputConfig_ = builderForValue.build(); + } else { + outputConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Configuration for how the output image should be returned.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.OutputImageConfig output_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeOutputConfig( + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig value) { + if (outputConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && outputConfig_ != null + && outputConfig_ + != com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig + .getDefaultInstance()) { + getOutputConfigBuilder().mergeFrom(value); + } else { + outputConfig_ = value; + } + } else { + outputConfigBuilder_.mergeFrom(value); + } + if (outputConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Configuration for how the output image should be returned.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.OutputImageConfig output_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearOutputConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + outputConfig_ = null; + if (outputConfigBuilder_ != null) { + outputConfigBuilder_.dispose(); + outputConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Configuration for how the output image should be returned.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.OutputImageConfig output_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig.Builder + getOutputConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getOutputConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Configuration for how the output image should be returned.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.OutputImageConfig output_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfigOrBuilder + getOutputConfigOrBuilder() { + if (outputConfigBuilder_ != null) { + return outputConfigBuilder_.getMessageOrBuilder(); + } else { + return outputConfig_ == null + ? com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig + .getDefaultInstance() + : outputConfig_; + } + } + + /** + * + * + *
      +     * Optional. Configuration for how the output image should be returned.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.OutputImageConfig output_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig, + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig.Builder, + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfigOrBuilder> + getOutputConfigFieldBuilder() { + if (outputConfigBuilder_ == null) { + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig, + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig.Builder, + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); + outputConfig_ = null; + } + return outputConfigBuilder_; + } + + private com.google.shopping.merchant.productstudio.v1alpha.InputImage inputImage_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.productstudio.v1alpha.InputImage, + com.google.shopping.merchant.productstudio.v1alpha.InputImage.Builder, + com.google.shopping.merchant.productstudio.v1alpha.InputImageOrBuilder> + inputImageBuilder_; + + /** + * + * + *
      +     * Required. The input image.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.InputImage input_image = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the inputImage field is set. + */ + public boolean hasInputImage() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +     * Required. The input image.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.InputImage input_image = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The inputImage. + */ + public com.google.shopping.merchant.productstudio.v1alpha.InputImage getInputImage() { + if (inputImageBuilder_ == null) { + return inputImage_ == null + ? com.google.shopping.merchant.productstudio.v1alpha.InputImage.getDefaultInstance() + : inputImage_; + } else { + return inputImageBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Required. The input image.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.InputImage input_image = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInputImage( + com.google.shopping.merchant.productstudio.v1alpha.InputImage value) { + if (inputImageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputImage_ = value; + } else { + inputImageBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The input image.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.InputImage input_image = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInputImage( + com.google.shopping.merchant.productstudio.v1alpha.InputImage.Builder builderForValue) { + if (inputImageBuilder_ == null) { + inputImage_ = builderForValue.build(); + } else { + inputImageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The input image.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.InputImage input_image = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeInputImage( + com.google.shopping.merchant.productstudio.v1alpha.InputImage value) { + if (inputImageBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && inputImage_ != null + && inputImage_ + != com.google.shopping.merchant.productstudio.v1alpha.InputImage + .getDefaultInstance()) { + getInputImageBuilder().mergeFrom(value); + } else { + inputImage_ = value; + } + } else { + inputImageBuilder_.mergeFrom(value); + } + if (inputImage_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Required. The input image.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.InputImage input_image = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearInputImage() { + bitField0_ = (bitField0_ & ~0x00000004); + inputImage_ = null; + if (inputImageBuilder_ != null) { + inputImageBuilder_.dispose(); + inputImageBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The input image.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.InputImage input_image = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.shopping.merchant.productstudio.v1alpha.InputImage.Builder + getInputImageBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getInputImageFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Required. The input image.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.InputImage input_image = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.shopping.merchant.productstudio.v1alpha.InputImageOrBuilder + getInputImageOrBuilder() { + if (inputImageBuilder_ != null) { + return inputImageBuilder_.getMessageOrBuilder(); + } else { + return inputImage_ == null + ? com.google.shopping.merchant.productstudio.v1alpha.InputImage.getDefaultInstance() + : inputImage_; + } + } + + /** + * + * + *
      +     * Required. The input image.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.InputImage input_image = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.productstudio.v1alpha.InputImage, + com.google.shopping.merchant.productstudio.v1alpha.InputImage.Builder, + com.google.shopping.merchant.productstudio.v1alpha.InputImageOrBuilder> + getInputImageFieldBuilder() { + if (inputImageBuilder_ == null) { + inputImageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.productstudio.v1alpha.InputImage, + com.google.shopping.merchant.productstudio.v1alpha.InputImage.Builder, + com.google.shopping.merchant.productstudio.v1alpha.InputImageOrBuilder>( + getInputImage(), getParentForChildren(), isClean()); + inputImage_ = null; + } + return inputImageBuilder_; + } + + private com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig config_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig, + com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig.Builder, + com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfigOrBuilder> + configBuilder_; + + /** + * + * + *
      +     * Optional. Configuration parameters for the removal of the background.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the config field is set. + */ + public boolean hasConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +     * Optional. Configuration parameters for the removal of the background.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The config. + */ + public com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig + getConfig() { + if (configBuilder_ == null) { + return config_ == null + ? com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig + .getDefaultInstance() + : config_; + } else { + return configBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. Configuration parameters for the removal of the background.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setConfig( + com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig value) { + if (configBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + config_ = value; + } else { + configBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Configuration parameters for the removal of the background.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setConfig( + com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig.Builder + builderForValue) { + if (configBuilder_ == null) { + config_ = builderForValue.build(); + } else { + configBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Configuration parameters for the removal of the background.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeConfig( + com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig value) { + if (configBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && config_ != null + && config_ + != com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig + .getDefaultInstance()) { + getConfigBuilder().mergeFrom(value); + } else { + config_ = value; + } + } else { + configBuilder_.mergeFrom(value); + } + if (config_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Configuration parameters for the removal of the background.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearConfig() { + bitField0_ = (bitField0_ & ~0x00000008); + config_ = null; + if (configBuilder_ != null) { + configBuilder_.dispose(); + configBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Configuration parameters for the removal of the background.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig.Builder + getConfigBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Configuration parameters for the removal of the background.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfigOrBuilder + getConfigOrBuilder() { + if (configBuilder_ != null) { + return configBuilder_.getMessageOrBuilder(); + } else { + return config_ == null + ? com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig + .getDefaultInstance() + : config_; + } + } + + /** + * + * + *
      +     * Optional. Configuration parameters for the removal of the background.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig, + com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig.Builder, + com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfigOrBuilder> + getConfigFieldBuilder() { + if (configBuilder_ == null) { + configBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig, + com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig + .Builder, + com.google.shopping.merchant.productstudio.v1alpha + .RemoveImageBackgroundConfigOrBuilder>( + getConfig(), getParentForChildren(), isClean()); + config_ = null; + } + return configBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundRequest) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundRequest) + private static final com.google.shopping.merchant.productstudio.v1alpha + .RemoveProductImageBackgroundRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.shopping.merchant.productstudio.v1alpha + .RemoveProductImageBackgroundRequest(); + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .RemoveProductImageBackgroundRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RemoveProductImageBackgroundRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/RemoveProductImageBackgroundRequestOrBuilder.java b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/RemoveProductImageBackgroundRequestOrBuilder.java new file mode 100644 index 000000000000..7ee38c26c736 --- /dev/null +++ b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/RemoveProductImageBackgroundRequestOrBuilder.java @@ -0,0 +1,187 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/productstudio/v1alpha/image.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.productstudio.v1alpha; + +public interface RemoveProductImageBackgroundRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The account for which to generate an image. This acts as a
      +   * container for the request and does not affect the generation itself.
      +   * Format: accounts/{account}
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Required. The account for which to generate an image. This acts as a
      +   * container for the request and does not affect the generation itself.
      +   * Format: accounts/{account}
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +   * Optional. Configuration for how the output image should be returned.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.OutputImageConfig output_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the outputConfig field is set. + */ + boolean hasOutputConfig(); + + /** + * + * + *
      +   * Optional. Configuration for how the output image should be returned.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.OutputImageConfig output_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The outputConfig. + */ + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig getOutputConfig(); + + /** + * + * + *
      +   * Optional. Configuration for how the output image should be returned.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.OutputImageConfig output_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfigOrBuilder + getOutputConfigOrBuilder(); + + /** + * + * + *
      +   * Required. The input image.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.InputImage input_image = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the inputImage field is set. + */ + boolean hasInputImage(); + + /** + * + * + *
      +   * Required. The input image.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.InputImage input_image = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The inputImage. + */ + com.google.shopping.merchant.productstudio.v1alpha.InputImage getInputImage(); + + /** + * + * + *
      +   * Required. The input image.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.InputImage input_image = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.shopping.merchant.productstudio.v1alpha.InputImageOrBuilder getInputImageOrBuilder(); + + /** + * + * + *
      +   * Optional. Configuration parameters for the removal of the background.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the config field is set. + */ + boolean hasConfig(); + + /** + * + * + *
      +   * Optional. Configuration parameters for the removal of the background.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The config. + */ + com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig getConfig(); + + /** + * + * + *
      +   * Optional. Configuration parameters for the removal of the background.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfigOrBuilder + getConfigOrBuilder(); +} diff --git a/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/RemoveProductImageBackgroundResponse.java b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/RemoveProductImageBackgroundResponse.java new file mode 100644 index 000000000000..280753d8e93a --- /dev/null +++ b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/RemoveProductImageBackgroundResponse.java @@ -0,0 +1,813 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/productstudio/v1alpha/image.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.productstudio.v1alpha; + +/** + * + * + *
      + * Response message for the RemoveProductImageBackground method.
      + * 
      + * + * Protobuf type {@code + * google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundResponse} + */ +public final class RemoveProductImageBackgroundResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundResponse) + RemoveProductImageBackgroundResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use RemoveProductImageBackgroundResponse.newBuilder() to construct. + private RemoveProductImageBackgroundResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RemoveProductImageBackgroundResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RemoveProductImageBackgroundResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_RemoveProductImageBackgroundResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_RemoveProductImageBackgroundResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundResponse + .class, + com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundResponse + .Builder.class); + } + + private int bitField0_; + public static final int GENERATED_IMAGE_FIELD_NUMBER = 1; + private com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage generatedImage_; + + /** + * + * + *
      +   * The generated output image.
      +   * 
      + * + * .google.shopping.merchant.productstudio.v1alpha.GeneratedImage generated_image = 1; + * + * + * @return Whether the generatedImage field is set. + */ + @java.lang.Override + public boolean hasGeneratedImage() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * The generated output image.
      +   * 
      + * + * .google.shopping.merchant.productstudio.v1alpha.GeneratedImage generated_image = 1; + * + * + * @return The generatedImage. + */ + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage getGeneratedImage() { + return generatedImage_ == null + ? com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage.getDefaultInstance() + : generatedImage_; + } + + /** + * + * + *
      +   * The generated output image.
      +   * 
      + * + * .google.shopping.merchant.productstudio.v1alpha.GeneratedImage generated_image = 1; + * + */ + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.GeneratedImageOrBuilder + getGeneratedImageOrBuilder() { + return generatedImage_ == null + ? com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage.getDefaultInstance() + : generatedImage_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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, getGeneratedImage()); + } + 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, getGeneratedImage()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundResponse)) { + return super.equals(obj); + } + com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundResponse other = + (com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundResponse) + obj; + + if (hasGeneratedImage() != other.hasGeneratedImage()) return false; + if (hasGeneratedImage()) { + if (!getGeneratedImage().equals(other.getGeneratedImage())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasGeneratedImage()) { + hash = (37 * hash) + GENERATED_IMAGE_FIELD_NUMBER; + hash = (53 * hash) + getGeneratedImage().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .RemoveProductImageBackgroundResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .RemoveProductImageBackgroundResponse + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .RemoveProductImageBackgroundResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .RemoveProductImageBackgroundResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .RemoveProductImageBackgroundResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .RemoveProductImageBackgroundResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .RemoveProductImageBackgroundResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .RemoveProductImageBackgroundResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .RemoveProductImageBackgroundResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .RemoveProductImageBackgroundResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .RemoveProductImageBackgroundResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .RemoveProductImageBackgroundResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundResponse + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Response message for the RemoveProductImageBackground method.
      +   * 
      + * + * Protobuf type {@code + * google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundResponse) + com.google.shopping.merchant.productstudio.v1alpha + .RemoveProductImageBackgroundResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_RemoveProductImageBackgroundResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_RemoveProductImageBackgroundResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.productstudio.v1alpha + .RemoveProductImageBackgroundResponse.class, + com.google.shopping.merchant.productstudio.v1alpha + .RemoveProductImageBackgroundResponse.Builder.class); + } + + // Construct using + // com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getGeneratedImageFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + generatedImage_ = null; + if (generatedImageBuilder_ != null) { + generatedImageBuilder_.dispose(); + generatedImageBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_RemoveProductImageBackgroundResponse_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundResponse + getDefaultInstanceForType() { + return com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundResponse + build() { + com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundResponse + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundResponse + buildPartial() { + com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundResponse + result = + new com.google.shopping.merchant.productstudio.v1alpha + .RemoveProductImageBackgroundResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundResponse + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.generatedImage_ = + generatedImageBuilder_ == null ? generatedImage_ : generatedImageBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundResponse) { + return mergeFrom( + (com.google.shopping.merchant.productstudio.v1alpha + .RemoveProductImageBackgroundResponse) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundResponse + other) { + if (other + == com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundResponse + .getDefaultInstance()) return this; + if (other.hasGeneratedImage()) { + mergeGeneratedImage(other.getGeneratedImage()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(getGeneratedImageFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage generatedImage_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage, + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage.Builder, + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImageOrBuilder> + generatedImageBuilder_; + + /** + * + * + *
      +     * The generated output image.
      +     * 
      + * + * .google.shopping.merchant.productstudio.v1alpha.GeneratedImage generated_image = 1; + * + * + * @return Whether the generatedImage field is set. + */ + public boolean hasGeneratedImage() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +     * The generated output image.
      +     * 
      + * + * .google.shopping.merchant.productstudio.v1alpha.GeneratedImage generated_image = 1; + * + * + * @return The generatedImage. + */ + public com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage getGeneratedImage() { + if (generatedImageBuilder_ == null) { + return generatedImage_ == null + ? com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage.getDefaultInstance() + : generatedImage_; + } else { + return generatedImageBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * The generated output image.
      +     * 
      + * + * .google.shopping.merchant.productstudio.v1alpha.GeneratedImage generated_image = 1; + * + */ + public Builder setGeneratedImage( + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage value) { + if (generatedImageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + generatedImage_ = value; + } else { + generatedImageBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The generated output image.
      +     * 
      + * + * .google.shopping.merchant.productstudio.v1alpha.GeneratedImage generated_image = 1; + * + */ + public Builder setGeneratedImage( + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage.Builder builderForValue) { + if (generatedImageBuilder_ == null) { + generatedImage_ = builderForValue.build(); + } else { + generatedImageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The generated output image.
      +     * 
      + * + * .google.shopping.merchant.productstudio.v1alpha.GeneratedImage generated_image = 1; + * + */ + public Builder mergeGeneratedImage( + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage value) { + if (generatedImageBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && generatedImage_ != null + && generatedImage_ + != com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage + .getDefaultInstance()) { + getGeneratedImageBuilder().mergeFrom(value); + } else { + generatedImage_ = value; + } + } else { + generatedImageBuilder_.mergeFrom(value); + } + if (generatedImage_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * The generated output image.
      +     * 
      + * + * .google.shopping.merchant.productstudio.v1alpha.GeneratedImage generated_image = 1; + * + */ + public Builder clearGeneratedImage() { + bitField0_ = (bitField0_ & ~0x00000001); + generatedImage_ = null; + if (generatedImageBuilder_ != null) { + generatedImageBuilder_.dispose(); + generatedImageBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * The generated output image.
      +     * 
      + * + * .google.shopping.merchant.productstudio.v1alpha.GeneratedImage generated_image = 1; + * + */ + public com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage.Builder + getGeneratedImageBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getGeneratedImageFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * The generated output image.
      +     * 
      + * + * .google.shopping.merchant.productstudio.v1alpha.GeneratedImage generated_image = 1; + * + */ + public com.google.shopping.merchant.productstudio.v1alpha.GeneratedImageOrBuilder + getGeneratedImageOrBuilder() { + if (generatedImageBuilder_ != null) { + return generatedImageBuilder_.getMessageOrBuilder(); + } else { + return generatedImage_ == null + ? com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage.getDefaultInstance() + : generatedImage_; + } + } + + /** + * + * + *
      +     * The generated output image.
      +     * 
      + * + * .google.shopping.merchant.productstudio.v1alpha.GeneratedImage generated_image = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage, + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage.Builder, + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImageOrBuilder> + getGeneratedImageFieldBuilder() { + if (generatedImageBuilder_ == null) { + generatedImageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage, + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage.Builder, + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImageOrBuilder>( + getGeneratedImage(), getParentForChildren(), isClean()); + generatedImage_ = null; + } + return generatedImageBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundResponse) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundResponse) + private static final com.google.shopping.merchant.productstudio.v1alpha + .RemoveProductImageBackgroundResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.shopping.merchant.productstudio.v1alpha + .RemoveProductImageBackgroundResponse(); + } + + public static com.google.shopping.merchant.productstudio.v1alpha + .RemoveProductImageBackgroundResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RemoveProductImageBackgroundResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/RemoveProductImageBackgroundResponseOrBuilder.java b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/RemoveProductImageBackgroundResponseOrBuilder.java new file mode 100644 index 000000000000..6f7ba49de64b --- /dev/null +++ b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/RemoveProductImageBackgroundResponseOrBuilder.java @@ -0,0 +1,67 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/productstudio/v1alpha/image.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.productstudio.v1alpha; + +public interface RemoveProductImageBackgroundResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * The generated output image.
      +   * 
      + * + * .google.shopping.merchant.productstudio.v1alpha.GeneratedImage generated_image = 1; + * + * + * @return Whether the generatedImage field is set. + */ + boolean hasGeneratedImage(); + + /** + * + * + *
      +   * The generated output image.
      +   * 
      + * + * .google.shopping.merchant.productstudio.v1alpha.GeneratedImage generated_image = 1; + * + * + * @return The generatedImage. + */ + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage getGeneratedImage(); + + /** + * + * + *
      +   * The generated output image.
      +   * 
      + * + * .google.shopping.merchant.productstudio.v1alpha.GeneratedImage generated_image = 1; + * + */ + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImageOrBuilder + getGeneratedImageOrBuilder(); +} diff --git a/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/RgbColor.java b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/RgbColor.java new file mode 100644 index 000000000000..9ecf7f9db577 --- /dev/null +++ b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/RgbColor.java @@ -0,0 +1,736 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/productstudio/v1alpha/image.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.productstudio.v1alpha; + +/** + * + * + *
      + * Represents a color in RGB format.
      + * 
      + * + * Protobuf type {@code google.shopping.merchant.productstudio.v1alpha.RgbColor} + */ +public final class RgbColor extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.productstudio.v1alpha.RgbColor) + RgbColorOrBuilder { + private static final long serialVersionUID = 0L; + + // Use RgbColor.newBuilder() to construct. + private RgbColor(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RgbColor() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RgbColor(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_RgbColor_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_RgbColor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.productstudio.v1alpha.RgbColor.class, + com.google.shopping.merchant.productstudio.v1alpha.RgbColor.Builder.class); + } + + public static final int RED_FIELD_NUMBER = 1; + private int red_ = 0; + + /** + * + * + *
      +   * Optional. Values in [0, 255].
      +   * 
      + * + * int32 red = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The red. + */ + @java.lang.Override + public int getRed() { + return red_; + } + + public static final int GREEN_FIELD_NUMBER = 2; + private int green_ = 0; + + /** + * + * + *
      +   * Optional. Values in [0, 255].
      +   * 
      + * + * int32 green = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The green. + */ + @java.lang.Override + public int getGreen() { + return green_; + } + + public static final int BLUE_FIELD_NUMBER = 3; + private int blue_ = 0; + + /** + * + * + *
      +   * Optional. Values in [0, 255].
      +   * 
      + * + * int32 blue = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The blue. + */ + @java.lang.Override + public int getBlue() { + return blue_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (red_ != 0) { + output.writeInt32(1, red_); + } + if (green_ != 0) { + output.writeInt32(2, green_); + } + if (blue_ != 0) { + output.writeInt32(3, blue_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (red_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, red_); + } + if (green_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, green_); + } + if (blue_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, blue_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.shopping.merchant.productstudio.v1alpha.RgbColor)) { + return super.equals(obj); + } + com.google.shopping.merchant.productstudio.v1alpha.RgbColor other = + (com.google.shopping.merchant.productstudio.v1alpha.RgbColor) obj; + + if (getRed() != other.getRed()) return false; + if (getGreen() != other.getGreen()) return false; + if (getBlue() != other.getBlue()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RED_FIELD_NUMBER; + hash = (53 * hash) + getRed(); + hash = (37 * hash) + GREEN_FIELD_NUMBER; + hash = (53 * hash) + getGreen(); + hash = (37 * hash) + BLUE_FIELD_NUMBER; + hash = (53 * hash) + getBlue(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.shopping.merchant.productstudio.v1alpha.RgbColor parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.RgbColor parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.RgbColor parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.RgbColor parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.RgbColor parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.RgbColor parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.RgbColor parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.RgbColor parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.RgbColor parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.RgbColor parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.RgbColor parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.RgbColor parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.shopping.merchant.productstudio.v1alpha.RgbColor prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Represents a color in RGB format.
      +   * 
      + * + * Protobuf type {@code google.shopping.merchant.productstudio.v1alpha.RgbColor} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.productstudio.v1alpha.RgbColor) + com.google.shopping.merchant.productstudio.v1alpha.RgbColorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_RgbColor_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_RgbColor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.productstudio.v1alpha.RgbColor.class, + com.google.shopping.merchant.productstudio.v1alpha.RgbColor.Builder.class); + } + + // Construct using com.google.shopping.merchant.productstudio.v1alpha.RgbColor.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + red_ = 0; + green_ = 0; + blue_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_RgbColor_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.RgbColor getDefaultInstanceForType() { + return com.google.shopping.merchant.productstudio.v1alpha.RgbColor.getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.RgbColor build() { + com.google.shopping.merchant.productstudio.v1alpha.RgbColor result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.RgbColor buildPartial() { + com.google.shopping.merchant.productstudio.v1alpha.RgbColor result = + new com.google.shopping.merchant.productstudio.v1alpha.RgbColor(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.shopping.merchant.productstudio.v1alpha.RgbColor result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.red_ = red_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.green_ = green_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.blue_ = blue_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.shopping.merchant.productstudio.v1alpha.RgbColor) { + return mergeFrom((com.google.shopping.merchant.productstudio.v1alpha.RgbColor) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.shopping.merchant.productstudio.v1alpha.RgbColor other) { + if (other == com.google.shopping.merchant.productstudio.v1alpha.RgbColor.getDefaultInstance()) + return this; + if (other.getRed() != 0) { + setRed(other.getRed()); + } + if (other.getGreen() != 0) { + setGreen(other.getGreen()); + } + if (other.getBlue() != 0) { + setBlue(other.getBlue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + red_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + green_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + blue_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int red_; + + /** + * + * + *
      +     * Optional. Values in [0, 255].
      +     * 
      + * + * int32 red = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The red. + */ + @java.lang.Override + public int getRed() { + return red_; + } + + /** + * + * + *
      +     * Optional. Values in [0, 255].
      +     * 
      + * + * int32 red = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The red to set. + * @return This builder for chaining. + */ + public Builder setRed(int value) { + + red_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Values in [0, 255].
      +     * 
      + * + * int32 red = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRed() { + bitField0_ = (bitField0_ & ~0x00000001); + red_ = 0; + onChanged(); + return this; + } + + private int green_; + + /** + * + * + *
      +     * Optional. Values in [0, 255].
      +     * 
      + * + * int32 green = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The green. + */ + @java.lang.Override + public int getGreen() { + return green_; + } + + /** + * + * + *
      +     * Optional. Values in [0, 255].
      +     * 
      + * + * int32 green = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The green to set. + * @return This builder for chaining. + */ + public Builder setGreen(int value) { + + green_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Values in [0, 255].
      +     * 
      + * + * int32 green = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearGreen() { + bitField0_ = (bitField0_ & ~0x00000002); + green_ = 0; + onChanged(); + return this; + } + + private int blue_; + + /** + * + * + *
      +     * Optional. Values in [0, 255].
      +     * 
      + * + * int32 blue = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The blue. + */ + @java.lang.Override + public int getBlue() { + return blue_; + } + + /** + * + * + *
      +     * Optional. Values in [0, 255].
      +     * 
      + * + * int32 blue = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The blue to set. + * @return This builder for chaining. + */ + public Builder setBlue(int value) { + + blue_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Values in [0, 255].
      +     * 
      + * + * int32 blue = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearBlue() { + bitField0_ = (bitField0_ & ~0x00000004); + blue_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.productstudio.v1alpha.RgbColor) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.productstudio.v1alpha.RgbColor) + private static final com.google.shopping.merchant.productstudio.v1alpha.RgbColor DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.shopping.merchant.productstudio.v1alpha.RgbColor(); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.RgbColor getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RgbColor parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.RgbColor getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/RgbColorOrBuilder.java b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/RgbColorOrBuilder.java new file mode 100644 index 000000000000..ccc96700af3a --- /dev/null +++ b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/RgbColorOrBuilder.java @@ -0,0 +1,65 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/productstudio/v1alpha/image.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.productstudio.v1alpha; + +public interface RgbColorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.productstudio.v1alpha.RgbColor) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Optional. Values in [0, 255].
      +   * 
      + * + * int32 red = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The red. + */ + int getRed(); + + /** + * + * + *
      +   * Optional. Values in [0, 255].
      +   * 
      + * + * int32 green = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The green. + */ + int getGreen(); + + /** + * + * + *
      +   * Optional. Values in [0, 255].
      +   * 
      + * + * int32 blue = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The blue. + */ + int getBlue(); +} diff --git a/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/UpscaleProductImageRequest.java b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/UpscaleProductImageRequest.java new file mode 100644 index 000000000000..0c95f8fa45cf --- /dev/null +++ b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/UpscaleProductImageRequest.java @@ -0,0 +1,1312 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/productstudio/v1alpha/image.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.productstudio.v1alpha; + +/** + * + * + *
      + * Request message for the UpscaleProductImage method.
      + * 
      + * + * Protobuf type {@code google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest} + */ +public final class UpscaleProductImageRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest) + UpscaleProductImageRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UpscaleProductImageRequest.newBuilder() to construct. + private UpscaleProductImageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpscaleProductImageRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpscaleProductImageRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_UpscaleProductImageRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_UpscaleProductImageRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest.class, + com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest.Builder + .class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * Required. The account for which to generate an image. This acts as a
      +   * container for the request and does not affect the generation itself.
      +   * Format: accounts/{account}
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.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 account for which to generate an image. This acts as a
      +   * container for the request and does not affect the generation itself.
      +   * Format: accounts/{account}
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.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 OUTPUT_CONFIG_FIELD_NUMBER = 2; + private com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig outputConfig_; + + /** + * + * + *
      +   * Optional. Configuration for how the output image should be returned.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.OutputImageConfig output_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the outputConfig field is set. + */ + @java.lang.Override + public boolean hasOutputConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Optional. Configuration for how the output image should be returned.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.OutputImageConfig output_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The outputConfig. + */ + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig getOutputConfig() { + return outputConfig_ == null + ? com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig.getDefaultInstance() + : outputConfig_; + } + + /** + * + * + *
      +   * Optional. Configuration for how the output image should be returned.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.OutputImageConfig output_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfigOrBuilder + getOutputConfigOrBuilder() { + return outputConfig_ == null + ? com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig.getDefaultInstance() + : outputConfig_; + } + + public static final int INPUT_IMAGE_FIELD_NUMBER = 3; + private com.google.shopping.merchant.productstudio.v1alpha.InputImage inputImage_; + + /** + * + * + *
      +   * Required. The input image.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.InputImage input_image = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the inputImage field is set. + */ + @java.lang.Override + public boolean hasInputImage() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * Required. The input image.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.InputImage input_image = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The inputImage. + */ + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.InputImage getInputImage() { + return inputImage_ == null + ? com.google.shopping.merchant.productstudio.v1alpha.InputImage.getDefaultInstance() + : inputImage_; + } + + /** + * + * + *
      +   * Required. The input image.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.InputImage input_image = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.InputImageOrBuilder + getInputImageOrBuilder() { + return inputImage_ == null + ? com.google.shopping.merchant.productstudio.v1alpha.InputImage.getDefaultInstance() + : inputImage_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getOutputConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getInputImage()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOutputConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInputImage()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest)) { + return super.equals(obj); + } + com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest other = + (com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (hasOutputConfig() != other.hasOutputConfig()) return false; + if (hasOutputConfig()) { + if (!getOutputConfig().equals(other.getOutputConfig())) return false; + } + if (hasInputImage() != other.hasInputImage()) return false; + if (hasInputImage()) { + if (!getInputImage().equals(other.getInputImage())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasOutputConfig()) { + hash = (37 * hash) + OUTPUT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getOutputConfig().hashCode(); + } + if (hasInputImage()) { + hash = (37 * hash) + INPUT_IMAGE_FIELD_NUMBER; + hash = (53 * hash) + getInputImage().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for the UpscaleProductImage method.
      +   * 
      + * + * Protobuf type {@code google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest) + com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_UpscaleProductImageRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_UpscaleProductImageRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest.class, + com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest.Builder + .class); + } + + // Construct using + // com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getOutputConfigFieldBuilder(); + getInputImageFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + outputConfig_ = null; + if (outputConfigBuilder_ != null) { + outputConfigBuilder_.dispose(); + outputConfigBuilder_ = null; + } + inputImage_ = null; + if (inputImageBuilder_ != null) { + inputImageBuilder_.dispose(); + inputImageBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_UpscaleProductImageRequest_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest + getDefaultInstanceForType() { + return com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest build() { + com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest + buildPartial() { + com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest result = + new com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.outputConfig_ = + outputConfigBuilder_ == null ? outputConfig_ : outputConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.inputImage_ = inputImageBuilder_ == null ? inputImage_ : inputImageBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest) { + return mergeFrom( + (com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest other) { + if (other + == com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasOutputConfig()) { + mergeOutputConfig(other.getOutputConfig()); + } + if (other.hasInputImage()) { + mergeInputImage(other.getInputImage()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getInputImageFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Required. The account for which to generate an image. This acts as a
      +     * container for the request and does not affect the generation itself.
      +     * Format: accounts/{account}
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.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 account for which to generate an image. This acts as a
      +     * container for the request and does not affect the generation itself.
      +     * Format: accounts/{account}
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.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 account for which to generate an image. This acts as a
      +     * container for the request and does not affect the generation itself.
      +     * Format: accounts/{account}
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value 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 account for which to generate an image. This acts as a
      +     * container for the request and does not affect the generation itself.
      +     * Format: accounts/{account}
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The account for which to generate an image. This acts as a
      +     * container for the request and does not affect the generation itself.
      +     * Format: accounts/{account}
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig outputConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig, + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig.Builder, + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfigOrBuilder> + outputConfigBuilder_; + + /** + * + * + *
      +     * Optional. Configuration for how the output image should be returned.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.OutputImageConfig output_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the outputConfig field is set. + */ + public boolean hasOutputConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +     * Optional. Configuration for how the output image should be returned.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.OutputImageConfig output_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The outputConfig. + */ + public com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig getOutputConfig() { + if (outputConfigBuilder_ == null) { + return outputConfig_ == null + ? com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig + .getDefaultInstance() + : outputConfig_; + } else { + return outputConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. Configuration for how the output image should be returned.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.OutputImageConfig output_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOutputConfig( + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig value) { + if (outputConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputConfig_ = value; + } else { + outputConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Configuration for how the output image should be returned.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.OutputImageConfig output_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOutputConfig( + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig.Builder + builderForValue) { + if (outputConfigBuilder_ == null) { + outputConfig_ = builderForValue.build(); + } else { + outputConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Configuration for how the output image should be returned.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.OutputImageConfig output_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeOutputConfig( + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig value) { + if (outputConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && outputConfig_ != null + && outputConfig_ + != com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig + .getDefaultInstance()) { + getOutputConfigBuilder().mergeFrom(value); + } else { + outputConfig_ = value; + } + } else { + outputConfigBuilder_.mergeFrom(value); + } + if (outputConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Configuration for how the output image should be returned.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.OutputImageConfig output_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearOutputConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + outputConfig_ = null; + if (outputConfigBuilder_ != null) { + outputConfigBuilder_.dispose(); + outputConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Configuration for how the output image should be returned.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.OutputImageConfig output_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig.Builder + getOutputConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getOutputConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Configuration for how the output image should be returned.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.OutputImageConfig output_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfigOrBuilder + getOutputConfigOrBuilder() { + if (outputConfigBuilder_ != null) { + return outputConfigBuilder_.getMessageOrBuilder(); + } else { + return outputConfig_ == null + ? com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig + .getDefaultInstance() + : outputConfig_; + } + } + + /** + * + * + *
      +     * Optional. Configuration for how the output image should be returned.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.OutputImageConfig output_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig, + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig.Builder, + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfigOrBuilder> + getOutputConfigFieldBuilder() { + if (outputConfigBuilder_ == null) { + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig, + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig.Builder, + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); + outputConfig_ = null; + } + return outputConfigBuilder_; + } + + private com.google.shopping.merchant.productstudio.v1alpha.InputImage inputImage_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.productstudio.v1alpha.InputImage, + com.google.shopping.merchant.productstudio.v1alpha.InputImage.Builder, + com.google.shopping.merchant.productstudio.v1alpha.InputImageOrBuilder> + inputImageBuilder_; + + /** + * + * + *
      +     * Required. The input image.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.InputImage input_image = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the inputImage field is set. + */ + public boolean hasInputImage() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +     * Required. The input image.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.InputImage input_image = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The inputImage. + */ + public com.google.shopping.merchant.productstudio.v1alpha.InputImage getInputImage() { + if (inputImageBuilder_ == null) { + return inputImage_ == null + ? com.google.shopping.merchant.productstudio.v1alpha.InputImage.getDefaultInstance() + : inputImage_; + } else { + return inputImageBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Required. The input image.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.InputImage input_image = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInputImage( + com.google.shopping.merchant.productstudio.v1alpha.InputImage value) { + if (inputImageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputImage_ = value; + } else { + inputImageBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The input image.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.InputImage input_image = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInputImage( + com.google.shopping.merchant.productstudio.v1alpha.InputImage.Builder builderForValue) { + if (inputImageBuilder_ == null) { + inputImage_ = builderForValue.build(); + } else { + inputImageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The input image.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.InputImage input_image = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeInputImage( + com.google.shopping.merchant.productstudio.v1alpha.InputImage value) { + if (inputImageBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && inputImage_ != null + && inputImage_ + != com.google.shopping.merchant.productstudio.v1alpha.InputImage + .getDefaultInstance()) { + getInputImageBuilder().mergeFrom(value); + } else { + inputImage_ = value; + } + } else { + inputImageBuilder_.mergeFrom(value); + } + if (inputImage_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Required. The input image.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.InputImage input_image = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearInputImage() { + bitField0_ = (bitField0_ & ~0x00000004); + inputImage_ = null; + if (inputImageBuilder_ != null) { + inputImageBuilder_.dispose(); + inputImageBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The input image.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.InputImage input_image = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.shopping.merchant.productstudio.v1alpha.InputImage.Builder + getInputImageBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getInputImageFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Required. The input image.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.InputImage input_image = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.shopping.merchant.productstudio.v1alpha.InputImageOrBuilder + getInputImageOrBuilder() { + if (inputImageBuilder_ != null) { + return inputImageBuilder_.getMessageOrBuilder(); + } else { + return inputImage_ == null + ? com.google.shopping.merchant.productstudio.v1alpha.InputImage.getDefaultInstance() + : inputImage_; + } + } + + /** + * + * + *
      +     * Required. The input image.
      +     * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.InputImage input_image = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.productstudio.v1alpha.InputImage, + com.google.shopping.merchant.productstudio.v1alpha.InputImage.Builder, + com.google.shopping.merchant.productstudio.v1alpha.InputImageOrBuilder> + getInputImageFieldBuilder() { + if (inputImageBuilder_ == null) { + inputImageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.productstudio.v1alpha.InputImage, + com.google.shopping.merchant.productstudio.v1alpha.InputImage.Builder, + com.google.shopping.merchant.productstudio.v1alpha.InputImageOrBuilder>( + getInputImage(), getParentForChildren(), isClean()); + inputImage_ = null; + } + return inputImageBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest) + private static final com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest(); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpscaleProductImageRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/UpscaleProductImageRequestOrBuilder.java b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/UpscaleProductImageRequestOrBuilder.java new file mode 100644 index 000000000000..0c0aeaa687db --- /dev/null +++ b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/UpscaleProductImageRequestOrBuilder.java @@ -0,0 +1,143 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/productstudio/v1alpha/image.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.productstudio.v1alpha; + +public interface UpscaleProductImageRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The account for which to generate an image. This acts as a
      +   * container for the request and does not affect the generation itself.
      +   * Format: accounts/{account}
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Required. The account for which to generate an image. This acts as a
      +   * container for the request and does not affect the generation itself.
      +   * Format: accounts/{account}
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +   * Optional. Configuration for how the output image should be returned.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.OutputImageConfig output_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the outputConfig field is set. + */ + boolean hasOutputConfig(); + + /** + * + * + *
      +   * Optional. Configuration for how the output image should be returned.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.OutputImageConfig output_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The outputConfig. + */ + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig getOutputConfig(); + + /** + * + * + *
      +   * Optional. Configuration for how the output image should be returned.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.OutputImageConfig output_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfigOrBuilder + getOutputConfigOrBuilder(); + + /** + * + * + *
      +   * Required. The input image.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.InputImage input_image = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the inputImage field is set. + */ + boolean hasInputImage(); + + /** + * + * + *
      +   * Required. The input image.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.InputImage input_image = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The inputImage. + */ + com.google.shopping.merchant.productstudio.v1alpha.InputImage getInputImage(); + + /** + * + * + *
      +   * Required. The input image.
      +   * 
      + * + * + * .google.shopping.merchant.productstudio.v1alpha.InputImage input_image = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.shopping.merchant.productstudio.v1alpha.InputImageOrBuilder getInputImageOrBuilder(); +} diff --git a/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/UpscaleProductImageResponse.java b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/UpscaleProductImageResponse.java new file mode 100644 index 000000000000..16197de577c3 --- /dev/null +++ b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/UpscaleProductImageResponse.java @@ -0,0 +1,784 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/productstudio/v1alpha/image.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.productstudio.v1alpha; + +/** + * + * + *
      + * Response message for the UpscaleProductImage method.
      + * 
      + * + * Protobuf type {@code google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse} + */ +public final class UpscaleProductImageResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse) + UpscaleProductImageResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UpscaleProductImageResponse.newBuilder() to construct. + private UpscaleProductImageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpscaleProductImageResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpscaleProductImageResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_UpscaleProductImageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_UpscaleProductImageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse.class, + com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse.Builder + .class); + } + + private int bitField0_; + public static final int GENERATED_IMAGE_FIELD_NUMBER = 1; + private com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage generatedImage_; + + /** + * + * + *
      +   * The generated output image.
      +   * 
      + * + * .google.shopping.merchant.productstudio.v1alpha.GeneratedImage generated_image = 1; + * + * + * @return Whether the generatedImage field is set. + */ + @java.lang.Override + public boolean hasGeneratedImage() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * The generated output image.
      +   * 
      + * + * .google.shopping.merchant.productstudio.v1alpha.GeneratedImage generated_image = 1; + * + * + * @return The generatedImage. + */ + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage getGeneratedImage() { + return generatedImage_ == null + ? com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage.getDefaultInstance() + : generatedImage_; + } + + /** + * + * + *
      +   * The generated output image.
      +   * 
      + * + * .google.shopping.merchant.productstudio.v1alpha.GeneratedImage generated_image = 1; + * + */ + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.GeneratedImageOrBuilder + getGeneratedImageOrBuilder() { + return generatedImage_ == null + ? com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage.getDefaultInstance() + : generatedImage_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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, getGeneratedImage()); + } + 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, getGeneratedImage()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse)) { + return super.equals(obj); + } + com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse other = + (com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse) obj; + + if (hasGeneratedImage() != other.hasGeneratedImage()) return false; + if (hasGeneratedImage()) { + if (!getGeneratedImage().equals(other.getGeneratedImage())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasGeneratedImage()) { + hash = (37 * hash) + GENERATED_IMAGE_FIELD_NUMBER; + hash = (53 * hash) + getGeneratedImage().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Response message for the UpscaleProductImage method.
      +   * 
      + * + * Protobuf type {@code + * google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse) + com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_UpscaleProductImageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_UpscaleProductImageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse.class, + com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse.Builder + .class); + } + + // Construct using + // com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getGeneratedImageFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + generatedImage_ = null; + if (generatedImageBuilder_ != null) { + generatedImageBuilder_.dispose(); + generatedImageBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.productstudio.v1alpha.ImageProto + .internal_static_google_shopping_merchant_productstudio_v1alpha_UpscaleProductImageResponse_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse + getDefaultInstanceForType() { + return com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse build() { + com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse + buildPartial() { + com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse result = + new com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.generatedImage_ = + generatedImageBuilder_ == null ? generatedImage_ : generatedImageBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse) { + return mergeFrom( + (com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse other) { + if (other + == com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse + .getDefaultInstance()) return this; + if (other.hasGeneratedImage()) { + mergeGeneratedImage(other.getGeneratedImage()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(getGeneratedImageFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage generatedImage_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage, + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage.Builder, + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImageOrBuilder> + generatedImageBuilder_; + + /** + * + * + *
      +     * The generated output image.
      +     * 
      + * + * .google.shopping.merchant.productstudio.v1alpha.GeneratedImage generated_image = 1; + * + * + * @return Whether the generatedImage field is set. + */ + public boolean hasGeneratedImage() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +     * The generated output image.
      +     * 
      + * + * .google.shopping.merchant.productstudio.v1alpha.GeneratedImage generated_image = 1; + * + * + * @return The generatedImage. + */ + public com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage getGeneratedImage() { + if (generatedImageBuilder_ == null) { + return generatedImage_ == null + ? com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage.getDefaultInstance() + : generatedImage_; + } else { + return generatedImageBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * The generated output image.
      +     * 
      + * + * .google.shopping.merchant.productstudio.v1alpha.GeneratedImage generated_image = 1; + * + */ + public Builder setGeneratedImage( + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage value) { + if (generatedImageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + generatedImage_ = value; + } else { + generatedImageBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The generated output image.
      +     * 
      + * + * .google.shopping.merchant.productstudio.v1alpha.GeneratedImage generated_image = 1; + * + */ + public Builder setGeneratedImage( + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage.Builder builderForValue) { + if (generatedImageBuilder_ == null) { + generatedImage_ = builderForValue.build(); + } else { + generatedImageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The generated output image.
      +     * 
      + * + * .google.shopping.merchant.productstudio.v1alpha.GeneratedImage generated_image = 1; + * + */ + public Builder mergeGeneratedImage( + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage value) { + if (generatedImageBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && generatedImage_ != null + && generatedImage_ + != com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage + .getDefaultInstance()) { + getGeneratedImageBuilder().mergeFrom(value); + } else { + generatedImage_ = value; + } + } else { + generatedImageBuilder_.mergeFrom(value); + } + if (generatedImage_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * The generated output image.
      +     * 
      + * + * .google.shopping.merchant.productstudio.v1alpha.GeneratedImage generated_image = 1; + * + */ + public Builder clearGeneratedImage() { + bitField0_ = (bitField0_ & ~0x00000001); + generatedImage_ = null; + if (generatedImageBuilder_ != null) { + generatedImageBuilder_.dispose(); + generatedImageBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * The generated output image.
      +     * 
      + * + * .google.shopping.merchant.productstudio.v1alpha.GeneratedImage generated_image = 1; + * + */ + public com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage.Builder + getGeneratedImageBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getGeneratedImageFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * The generated output image.
      +     * 
      + * + * .google.shopping.merchant.productstudio.v1alpha.GeneratedImage generated_image = 1; + * + */ + public com.google.shopping.merchant.productstudio.v1alpha.GeneratedImageOrBuilder + getGeneratedImageOrBuilder() { + if (generatedImageBuilder_ != null) { + return generatedImageBuilder_.getMessageOrBuilder(); + } else { + return generatedImage_ == null + ? com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage.getDefaultInstance() + : generatedImage_; + } + } + + /** + * + * + *
      +     * The generated output image.
      +     * 
      + * + * .google.shopping.merchant.productstudio.v1alpha.GeneratedImage generated_image = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage, + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage.Builder, + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImageOrBuilder> + getGeneratedImageFieldBuilder() { + if (generatedImageBuilder_ == null) { + generatedImageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage, + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage.Builder, + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImageOrBuilder>( + getGeneratedImage(), getParentForChildren(), isClean()); + generatedImage_ = null; + } + return generatedImageBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse) + private static final com.google.shopping.merchant.productstudio.v1alpha + .UpscaleProductImageResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse(); + } + + public static com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpscaleProductImageResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/UpscaleProductImageResponseOrBuilder.java b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/UpscaleProductImageResponseOrBuilder.java new file mode 100644 index 000000000000..3fdc6ce59197 --- /dev/null +++ b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/UpscaleProductImageResponseOrBuilder.java @@ -0,0 +1,67 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/productstudio/v1alpha/image.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.productstudio.v1alpha; + +public interface UpscaleProductImageResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * The generated output image.
      +   * 
      + * + * .google.shopping.merchant.productstudio.v1alpha.GeneratedImage generated_image = 1; + * + * + * @return Whether the generatedImage field is set. + */ + boolean hasGeneratedImage(); + + /** + * + * + *
      +   * The generated output image.
      +   * 
      + * + * .google.shopping.merchant.productstudio.v1alpha.GeneratedImage generated_image = 1; + * + * + * @return The generatedImage. + */ + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImage getGeneratedImage(); + + /** + * + * + *
      +   * The generated output image.
      +   * 
      + * + * .google.shopping.merchant.productstudio.v1alpha.GeneratedImage generated_image = 1; + * + */ + com.google.shopping.merchant.productstudio.v1alpha.GeneratedImageOrBuilder + getGeneratedImageOrBuilder(); +} diff --git a/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/proto/google/shopping/merchant/productstudio/v1alpha/image.proto b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/proto/google/shopping/merchant/productstudio/v1alpha/image.proto new file mode 100644 index 000000000000..a4d556a312d0 --- /dev/null +++ b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/proto/google/shopping/merchant/productstudio/v1alpha/image.proto @@ -0,0 +1,206 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.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.shopping.merchant.productstudio.v1alpha; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; +import "google/shopping/merchant/productstudio/v1alpha/productstudio_common.proto"; + +option go_package = "cloud.google.com/go/shopping/merchant/productstudio/apiv1alpha/productstudiopb;productstudiopb"; +option java_multiple_files = true; +option java_outer_classname = "ImageProto"; +option java_package = "com.google.shopping.merchant.productstudio.v1alpha"; + +// Service that exposes Generative AI (GenAI) endpoints for creating and +// enhancing product image content. +service ImageService { + option (google.api.default_host) = "merchantapi.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/content"; + + // GenerateProductImageBackground generates a new image where the background + // of the original image is replaced by an AI generated scene based on + // provided product information and a text prompt. + rpc GenerateProductImageBackground(GenerateProductImageBackgroundRequest) + returns (GenerateProductImageBackgroundResponse) { + option (google.api.http) = { + post: "/productstudio/v1alpha/{name=accounts/*}/generatedImages:generateProductImageBackground" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // RemoveProductImageBackground generates a new image where the background of + // the original image is removed. + rpc RemoveProductImageBackground(RemoveProductImageBackgroundRequest) + returns (RemoveProductImageBackgroundResponse) { + option (google.api.http) = { + post: "/productstudio/v1alpha/{name=accounts/*}/generatedImages:removeProductImageBackground" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // UpscaleProductImage generates a new image where the resolution of the + // original image is enhanced. + rpc UpscaleProductImage(UpscaleProductImageRequest) + returns (UpscaleProductImageResponse) { + option (google.api.http) = { + post: "/productstudio/v1alpha/{name=accounts/*}/generatedImages:upscaleProductImage" + body: "*" + }; + option (google.api.method_signature) = "name"; + } +} + +// Request message for the GenerateProductImageBackground method. +message GenerateProductImageBackgroundRequest { + // Required. The account for which to generate an image. This acts as a + // container for the request and does not affect the generation itself. + // Format: accounts/{account} + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Configuration for how the output image should be returned. + OutputImageConfig output_config = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The input image. + InputImage input_image = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. Configuration parameters for the generation of the background. + GenerateImageBackgroundConfig config = 4 + [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for the GenerateProductImageBackground method. +message GenerateProductImageBackgroundResponse { + // The generated output image. + GeneratedImage generated_image = 1; +} + +// Request message for the RemoveProductImageBackground method. +message RemoveProductImageBackgroundRequest { + // Required. The account for which to generate an image. This acts as a + // container for the request and does not affect the generation itself. + // Format: accounts/{account} + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Configuration for how the output image should be returned. + OutputImageConfig output_config = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The input image. + InputImage input_image = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Configuration parameters for the removal of the background. + RemoveImageBackgroundConfig config = 4 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for the RemoveProductImageBackground method. +message RemoveProductImageBackgroundResponse { + // The generated output image. + GeneratedImage generated_image = 1; +} + +// Request message for the UpscaleProductImage method. +message UpscaleProductImageRequest { + // Required. The account for which to generate an image. This acts as a + // container for the request and does not affect the generation itself. + // Format: accounts/{account} + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Configuration for how the output image should be returned. + OutputImageConfig output_config = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The input image. + InputImage input_image = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for the UpscaleProductImage method. +message UpscaleProductImageResponse { + // The generated output image. + GeneratedImage generated_image = 1; +} + +// Represents a generated image object. +message GeneratedImage { + option (google.api.resource) = { + type: "merchantapi.googleapis.com/GeneratedImage" + pattern: "accounts/{account}/generatedImages/{generated_image}" + plural: "generatedImages" + singular: "generatedImage" + }; + + // The generated image. + oneof image { + // Generally web-requestable URI of the generated image. This is a temporary + // URI and will expire after 6 months. A URI may not be populated + // immediately after generation. Use get or list api using image_id to get + // the URI. + string uri = 2; + + // Raw bytes for the image. + bytes image_bytes = 3; + } + + // Identifier. The unique key for the image. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // The timestamp when the image was generated. + google.protobuf.Timestamp generation_time = 4; +} + +// Configuration for how the output image should be returned. +message OutputImageConfig { + // Optional. If true, returns the output images as serving uris instead of + // bytes. + bool return_image_uri = 1 [(google.api.field_behavior) = OPTIONAL]; +} + +// Client provided input configuration for generating the background. +message GenerateImageBackgroundConfig { + // Required. Example: "Hat on a baseball field" + // "Hat" = product description + // Description of product. + string product_description = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Example: "Hat on a baseball field" + // "on a baseball field" = background description + // Description of wanted background. + string background_description = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Client provided input configuration for removing the background. +message RemoveImageBackgroundConfig { + // Optional. If set, the result of background removal will be an RGB image + // with this given color as the background, instead of an RGBA 4-channel + // transparent image. + RgbColor background_color = 1 [(google.api.field_behavior) = OPTIONAL]; +} + +// Represents a color in RGB format. +message RgbColor { + // Optional. Values in [0, 255]. + int32 red = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Values in [0, 255]. + int32 green = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Values in [0, 255]. + int32 blue = 3 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/proto/google/shopping/merchant/productstudio/v1alpha/productstudio_common.proto b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/proto/google/shopping/merchant/productstudio/v1alpha/productstudio_common.proto new file mode 100644 index 000000000000..cad247d6a655 --- /dev/null +++ b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/src/main/proto/google/shopping/merchant/productstudio/v1alpha/productstudio_common.proto @@ -0,0 +1,34 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.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.shopping.merchant.productstudio.v1alpha; + +option go_package = "cloud.google.com/go/shopping/merchant/productstudio/apiv1alpha/productstudiopb;productstudiopb"; +option java_multiple_files = true; +option java_outer_classname = "ProductStudioCommonProto"; +option java_package = "com.google.shopping.merchant.productstudio.v1alpha"; + +// Represents an input image. +message InputImage { + // The input image. + oneof image { + // Public uri of the image. + string image_uri = 1; + + // Raw image bytes. + bytes image_bytes = 2; + } +} diff --git a/java-shopping-merchant-product-studio/samples/snippets/generated/com/google/shopping/merchant/productstudio/v1alpha/imageservice/create/SyncCreateSetCredentialsProvider.java b/java-shopping-merchant-product-studio/samples/snippets/generated/com/google/shopping/merchant/productstudio/v1alpha/imageservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..9c0fce5e369c --- /dev/null +++ b/java-shopping-merchant-product-studio/samples/snippets/generated/com/google/shopping/merchant/productstudio/v1alpha/imageservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.productstudio.v1alpha.samples; + +// [START merchantapi_v1alpha_generated_ImageService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.shopping.merchant.productstudio.v1alpha.ImageServiceClient; +import com.google.shopping.merchant.productstudio.v1alpha.ImageServiceSettings; +import com.google.shopping.merchant.productstudio.v1alpha.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() 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 + ImageServiceSettings imageServiceSettings = + ImageServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + ImageServiceClient imageServiceClient = ImageServiceClient.create(imageServiceSettings); + } +} +// [END merchantapi_v1alpha_generated_ImageService_Create_SetCredentialsProvider_sync] diff --git a/java-shopping-merchant-product-studio/samples/snippets/generated/com/google/shopping/merchant/productstudio/v1alpha/imageservice/create/SyncCreateSetEndpoint.java b/java-shopping-merchant-product-studio/samples/snippets/generated/com/google/shopping/merchant/productstudio/v1alpha/imageservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..68e0f7ac2cac --- /dev/null +++ b/java-shopping-merchant-product-studio/samples/snippets/generated/com/google/shopping/merchant/productstudio/v1alpha/imageservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,41 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.productstudio.v1alpha.samples; + +// [START merchantapi_v1alpha_generated_ImageService_Create_SetEndpoint_sync] +import com.google.shopping.merchant.productstudio.v1alpha.ImageServiceClient; +import com.google.shopping.merchant.productstudio.v1alpha.ImageServiceSettings; +import com.google.shopping.merchant.productstudio.v1alpha.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() 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 + ImageServiceSettings imageServiceSettings = + ImageServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + ImageServiceClient imageServiceClient = ImageServiceClient.create(imageServiceSettings); + } +} +// [END merchantapi_v1alpha_generated_ImageService_Create_SetEndpoint_sync] diff --git a/java-shopping-merchant-product-studio/samples/snippets/generated/com/google/shopping/merchant/productstudio/v1alpha/imageservice/create/SyncCreateUseHttpJsonTransport.java b/java-shopping-merchant-product-studio/samples/snippets/generated/com/google/shopping/merchant/productstudio/v1alpha/imageservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..b6172404e697 --- /dev/null +++ b/java-shopping-merchant-product-studio/samples/snippets/generated/com/google/shopping/merchant/productstudio/v1alpha/imageservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.productstudio.v1alpha.samples; + +// [START merchantapi_v1alpha_generated_ImageService_Create_UseHttpJsonTransport_sync] +import com.google.shopping.merchant.productstudio.v1alpha.ImageServiceClient; +import com.google.shopping.merchant.productstudio.v1alpha.ImageServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() 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 + ImageServiceSettings imageServiceSettings = ImageServiceSettings.newHttpJsonBuilder().build(); + ImageServiceClient imageServiceClient = ImageServiceClient.create(imageServiceSettings); + } +} +// [END merchantapi_v1alpha_generated_ImageService_Create_UseHttpJsonTransport_sync] diff --git a/java-shopping-merchant-product-studio/samples/snippets/generated/com/google/shopping/merchant/productstudio/v1alpha/imageservice/generateproductimagebackground/AsyncGenerateProductImageBackground.java b/java-shopping-merchant-product-studio/samples/snippets/generated/com/google/shopping/merchant/productstudio/v1alpha/imageservice/generateproductimagebackground/AsyncGenerateProductImageBackground.java new file mode 100644 index 000000000000..c3783f95546a --- /dev/null +++ b/java-shopping-merchant-product-studio/samples/snippets/generated/com/google/shopping/merchant/productstudio/v1alpha/imageservice/generateproductimagebackground/AsyncGenerateProductImageBackground.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.productstudio.v1alpha.samples; + +// [START merchantapi_v1alpha_generated_ImageService_GenerateProductImageBackground_async] +import com.google.api.core.ApiFuture; +import com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig; +import com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundRequest; +import com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundResponse; +import com.google.shopping.merchant.productstudio.v1alpha.ImageServiceClient; +import com.google.shopping.merchant.productstudio.v1alpha.InputImage; +import com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig; + +public class AsyncGenerateProductImageBackground { + + public static void main(String[] args) throws Exception { + asyncGenerateProductImageBackground(); + } + + public static void asyncGenerateProductImageBackground() 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 (ImageServiceClient imageServiceClient = ImageServiceClient.create()) { + GenerateProductImageBackgroundRequest request = + GenerateProductImageBackgroundRequest.newBuilder() + .setName("name3373707") + .setOutputConfig(OutputImageConfig.newBuilder().build()) + .setInputImage(InputImage.newBuilder().build()) + .setConfig(GenerateImageBackgroundConfig.newBuilder().build()) + .build(); + ApiFuture future = + imageServiceClient.generateProductImageBackgroundCallable().futureCall(request); + // Do something. + GenerateProductImageBackgroundResponse response = future.get(); + } + } +} +// [END merchantapi_v1alpha_generated_ImageService_GenerateProductImageBackground_async] diff --git a/java-shopping-merchant-product-studio/samples/snippets/generated/com/google/shopping/merchant/productstudio/v1alpha/imageservice/generateproductimagebackground/SyncGenerateProductImageBackground.java b/java-shopping-merchant-product-studio/samples/snippets/generated/com/google/shopping/merchant/productstudio/v1alpha/imageservice/generateproductimagebackground/SyncGenerateProductImageBackground.java new file mode 100644 index 000000000000..93ce94b7c7da --- /dev/null +++ b/java-shopping-merchant-product-studio/samples/snippets/generated/com/google/shopping/merchant/productstudio/v1alpha/imageservice/generateproductimagebackground/SyncGenerateProductImageBackground.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.productstudio.v1alpha.samples; + +// [START merchantapi_v1alpha_generated_ImageService_GenerateProductImageBackground_sync] +import com.google.shopping.merchant.productstudio.v1alpha.GenerateImageBackgroundConfig; +import com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundRequest; +import com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundResponse; +import com.google.shopping.merchant.productstudio.v1alpha.ImageServiceClient; +import com.google.shopping.merchant.productstudio.v1alpha.InputImage; +import com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig; + +public class SyncGenerateProductImageBackground { + + public static void main(String[] args) throws Exception { + syncGenerateProductImageBackground(); + } + + public static void syncGenerateProductImageBackground() 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 (ImageServiceClient imageServiceClient = ImageServiceClient.create()) { + GenerateProductImageBackgroundRequest request = + GenerateProductImageBackgroundRequest.newBuilder() + .setName("name3373707") + .setOutputConfig(OutputImageConfig.newBuilder().build()) + .setInputImage(InputImage.newBuilder().build()) + .setConfig(GenerateImageBackgroundConfig.newBuilder().build()) + .build(); + GenerateProductImageBackgroundResponse response = + imageServiceClient.generateProductImageBackground(request); + } + } +} +// [END merchantapi_v1alpha_generated_ImageService_GenerateProductImageBackground_sync] diff --git a/java-shopping-merchant-product-studio/samples/snippets/generated/com/google/shopping/merchant/productstudio/v1alpha/imageservice/generateproductimagebackground/SyncGenerateProductImageBackgroundString.java b/java-shopping-merchant-product-studio/samples/snippets/generated/com/google/shopping/merchant/productstudio/v1alpha/imageservice/generateproductimagebackground/SyncGenerateProductImageBackgroundString.java new file mode 100644 index 000000000000..24b88b68af6e --- /dev/null +++ b/java-shopping-merchant-product-studio/samples/snippets/generated/com/google/shopping/merchant/productstudio/v1alpha/imageservice/generateproductimagebackground/SyncGenerateProductImageBackgroundString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.productstudio.v1alpha.samples; + +// [START merchantapi_v1alpha_generated_ImageService_GenerateProductImageBackground_String_sync] +import com.google.shopping.merchant.productstudio.v1alpha.GenerateProductImageBackgroundResponse; +import com.google.shopping.merchant.productstudio.v1alpha.ImageServiceClient; + +public class SyncGenerateProductImageBackgroundString { + + public static void main(String[] args) throws Exception { + syncGenerateProductImageBackgroundString(); + } + + public static void syncGenerateProductImageBackgroundString() 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 (ImageServiceClient imageServiceClient = ImageServiceClient.create()) { + String name = "name3373707"; + GenerateProductImageBackgroundResponse response = + imageServiceClient.generateProductImageBackground(name); + } + } +} +// [END merchantapi_v1alpha_generated_ImageService_GenerateProductImageBackground_String_sync] diff --git a/java-shopping-merchant-product-studio/samples/snippets/generated/com/google/shopping/merchant/productstudio/v1alpha/imageservice/removeproductimagebackground/AsyncRemoveProductImageBackground.java b/java-shopping-merchant-product-studio/samples/snippets/generated/com/google/shopping/merchant/productstudio/v1alpha/imageservice/removeproductimagebackground/AsyncRemoveProductImageBackground.java new file mode 100644 index 000000000000..6656343fa834 --- /dev/null +++ b/java-shopping-merchant-product-studio/samples/snippets/generated/com/google/shopping/merchant/productstudio/v1alpha/imageservice/removeproductimagebackground/AsyncRemoveProductImageBackground.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.productstudio.v1alpha.samples; + +// [START merchantapi_v1alpha_generated_ImageService_RemoveProductImageBackground_async] +import com.google.api.core.ApiFuture; +import com.google.shopping.merchant.productstudio.v1alpha.ImageServiceClient; +import com.google.shopping.merchant.productstudio.v1alpha.InputImage; +import com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig; +import com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig; +import com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundRequest; +import com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundResponse; + +public class AsyncRemoveProductImageBackground { + + public static void main(String[] args) throws Exception { + asyncRemoveProductImageBackground(); + } + + public static void asyncRemoveProductImageBackground() 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 (ImageServiceClient imageServiceClient = ImageServiceClient.create()) { + RemoveProductImageBackgroundRequest request = + RemoveProductImageBackgroundRequest.newBuilder() + .setName("name3373707") + .setOutputConfig(OutputImageConfig.newBuilder().build()) + .setInputImage(InputImage.newBuilder().build()) + .setConfig(RemoveImageBackgroundConfig.newBuilder().build()) + .build(); + ApiFuture future = + imageServiceClient.removeProductImageBackgroundCallable().futureCall(request); + // Do something. + RemoveProductImageBackgroundResponse response = future.get(); + } + } +} +// [END merchantapi_v1alpha_generated_ImageService_RemoveProductImageBackground_async] diff --git a/java-shopping-merchant-product-studio/samples/snippets/generated/com/google/shopping/merchant/productstudio/v1alpha/imageservice/removeproductimagebackground/SyncRemoveProductImageBackground.java b/java-shopping-merchant-product-studio/samples/snippets/generated/com/google/shopping/merchant/productstudio/v1alpha/imageservice/removeproductimagebackground/SyncRemoveProductImageBackground.java new file mode 100644 index 000000000000..bbf9b5038108 --- /dev/null +++ b/java-shopping-merchant-product-studio/samples/snippets/generated/com/google/shopping/merchant/productstudio/v1alpha/imageservice/removeproductimagebackground/SyncRemoveProductImageBackground.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.productstudio.v1alpha.samples; + +// [START merchantapi_v1alpha_generated_ImageService_RemoveProductImageBackground_sync] +import com.google.shopping.merchant.productstudio.v1alpha.ImageServiceClient; +import com.google.shopping.merchant.productstudio.v1alpha.InputImage; +import com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig; +import com.google.shopping.merchant.productstudio.v1alpha.RemoveImageBackgroundConfig; +import com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundRequest; +import com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundResponse; + +public class SyncRemoveProductImageBackground { + + public static void main(String[] args) throws Exception { + syncRemoveProductImageBackground(); + } + + public static void syncRemoveProductImageBackground() 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 (ImageServiceClient imageServiceClient = ImageServiceClient.create()) { + RemoveProductImageBackgroundRequest request = + RemoveProductImageBackgroundRequest.newBuilder() + .setName("name3373707") + .setOutputConfig(OutputImageConfig.newBuilder().build()) + .setInputImage(InputImage.newBuilder().build()) + .setConfig(RemoveImageBackgroundConfig.newBuilder().build()) + .build(); + RemoveProductImageBackgroundResponse response = + imageServiceClient.removeProductImageBackground(request); + } + } +} +// [END merchantapi_v1alpha_generated_ImageService_RemoveProductImageBackground_sync] diff --git a/java-shopping-merchant-product-studio/samples/snippets/generated/com/google/shopping/merchant/productstudio/v1alpha/imageservice/removeproductimagebackground/SyncRemoveProductImageBackgroundString.java b/java-shopping-merchant-product-studio/samples/snippets/generated/com/google/shopping/merchant/productstudio/v1alpha/imageservice/removeproductimagebackground/SyncRemoveProductImageBackgroundString.java new file mode 100644 index 000000000000..c23d20d09574 --- /dev/null +++ b/java-shopping-merchant-product-studio/samples/snippets/generated/com/google/shopping/merchant/productstudio/v1alpha/imageservice/removeproductimagebackground/SyncRemoveProductImageBackgroundString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.productstudio.v1alpha.samples; + +// [START merchantapi_v1alpha_generated_ImageService_RemoveProductImageBackground_String_sync] +import com.google.shopping.merchant.productstudio.v1alpha.ImageServiceClient; +import com.google.shopping.merchant.productstudio.v1alpha.RemoveProductImageBackgroundResponse; + +public class SyncRemoveProductImageBackgroundString { + + public static void main(String[] args) throws Exception { + syncRemoveProductImageBackgroundString(); + } + + public static void syncRemoveProductImageBackgroundString() 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 (ImageServiceClient imageServiceClient = ImageServiceClient.create()) { + String name = "name3373707"; + RemoveProductImageBackgroundResponse response = + imageServiceClient.removeProductImageBackground(name); + } + } +} +// [END merchantapi_v1alpha_generated_ImageService_RemoveProductImageBackground_String_sync] diff --git a/java-shopping-merchant-product-studio/samples/snippets/generated/com/google/shopping/merchant/productstudio/v1alpha/imageservice/upscaleproductimage/AsyncUpscaleProductImage.java b/java-shopping-merchant-product-studio/samples/snippets/generated/com/google/shopping/merchant/productstudio/v1alpha/imageservice/upscaleproductimage/AsyncUpscaleProductImage.java new file mode 100644 index 000000000000..be0efff31582 --- /dev/null +++ b/java-shopping-merchant-product-studio/samples/snippets/generated/com/google/shopping/merchant/productstudio/v1alpha/imageservice/upscaleproductimage/AsyncUpscaleProductImage.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.productstudio.v1alpha.samples; + +// [START merchantapi_v1alpha_generated_ImageService_UpscaleProductImage_async] +import com.google.api.core.ApiFuture; +import com.google.shopping.merchant.productstudio.v1alpha.ImageServiceClient; +import com.google.shopping.merchant.productstudio.v1alpha.InputImage; +import com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig; +import com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest; +import com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse; + +public class AsyncUpscaleProductImage { + + public static void main(String[] args) throws Exception { + asyncUpscaleProductImage(); + } + + public static void asyncUpscaleProductImage() 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 (ImageServiceClient imageServiceClient = ImageServiceClient.create()) { + UpscaleProductImageRequest request = + UpscaleProductImageRequest.newBuilder() + .setName("name3373707") + .setOutputConfig(OutputImageConfig.newBuilder().build()) + .setInputImage(InputImage.newBuilder().build()) + .build(); + ApiFuture future = + imageServiceClient.upscaleProductImageCallable().futureCall(request); + // Do something. + UpscaleProductImageResponse response = future.get(); + } + } +} +// [END merchantapi_v1alpha_generated_ImageService_UpscaleProductImage_async] diff --git a/java-shopping-merchant-product-studio/samples/snippets/generated/com/google/shopping/merchant/productstudio/v1alpha/imageservice/upscaleproductimage/SyncUpscaleProductImage.java b/java-shopping-merchant-product-studio/samples/snippets/generated/com/google/shopping/merchant/productstudio/v1alpha/imageservice/upscaleproductimage/SyncUpscaleProductImage.java new file mode 100644 index 000000000000..8811dce0c5c9 --- /dev/null +++ b/java-shopping-merchant-product-studio/samples/snippets/generated/com/google/shopping/merchant/productstudio/v1alpha/imageservice/upscaleproductimage/SyncUpscaleProductImage.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.productstudio.v1alpha.samples; + +// [START merchantapi_v1alpha_generated_ImageService_UpscaleProductImage_sync] +import com.google.shopping.merchant.productstudio.v1alpha.ImageServiceClient; +import com.google.shopping.merchant.productstudio.v1alpha.InputImage; +import com.google.shopping.merchant.productstudio.v1alpha.OutputImageConfig; +import com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageRequest; +import com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse; + +public class SyncUpscaleProductImage { + + public static void main(String[] args) throws Exception { + syncUpscaleProductImage(); + } + + public static void syncUpscaleProductImage() 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 (ImageServiceClient imageServiceClient = ImageServiceClient.create()) { + UpscaleProductImageRequest request = + UpscaleProductImageRequest.newBuilder() + .setName("name3373707") + .setOutputConfig(OutputImageConfig.newBuilder().build()) + .setInputImage(InputImage.newBuilder().build()) + .build(); + UpscaleProductImageResponse response = imageServiceClient.upscaleProductImage(request); + } + } +} +// [END merchantapi_v1alpha_generated_ImageService_UpscaleProductImage_sync] diff --git a/java-shopping-merchant-product-studio/samples/snippets/generated/com/google/shopping/merchant/productstudio/v1alpha/imageservice/upscaleproductimage/SyncUpscaleProductImageString.java b/java-shopping-merchant-product-studio/samples/snippets/generated/com/google/shopping/merchant/productstudio/v1alpha/imageservice/upscaleproductimage/SyncUpscaleProductImageString.java new file mode 100644 index 000000000000..14a01222f3e8 --- /dev/null +++ b/java-shopping-merchant-product-studio/samples/snippets/generated/com/google/shopping/merchant/productstudio/v1alpha/imageservice/upscaleproductimage/SyncUpscaleProductImageString.java @@ -0,0 +1,41 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.productstudio.v1alpha.samples; + +// [START merchantapi_v1alpha_generated_ImageService_UpscaleProductImage_String_sync] +import com.google.shopping.merchant.productstudio.v1alpha.ImageServiceClient; +import com.google.shopping.merchant.productstudio.v1alpha.UpscaleProductImageResponse; + +public class SyncUpscaleProductImageString { + + public static void main(String[] args) throws Exception { + syncUpscaleProductImageString(); + } + + public static void syncUpscaleProductImageString() 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 (ImageServiceClient imageServiceClient = ImageServiceClient.create()) { + String name = "name3373707"; + UpscaleProductImageResponse response = imageServiceClient.upscaleProductImage(name); + } + } +} +// [END merchantapi_v1alpha_generated_ImageService_UpscaleProductImage_String_sync] diff --git a/java-shopping-merchant-product-studio/samples/snippets/generated/com/google/shopping/merchant/productstudio/v1alpha/imageservicesettings/generateproductimagebackground/SyncGenerateProductImageBackground.java b/java-shopping-merchant-product-studio/samples/snippets/generated/com/google/shopping/merchant/productstudio/v1alpha/imageservicesettings/generateproductimagebackground/SyncGenerateProductImageBackground.java new file mode 100644 index 000000000000..b90af73231ca --- /dev/null +++ b/java-shopping-merchant-product-studio/samples/snippets/generated/com/google/shopping/merchant/productstudio/v1alpha/imageservicesettings/generateproductimagebackground/SyncGenerateProductImageBackground.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.productstudio.v1alpha.samples; + +// [START merchantapi_v1alpha_generated_ImageServiceSettings_GenerateProductImageBackground_sync] +import com.google.shopping.merchant.productstudio.v1alpha.ImageServiceSettings; +import java.time.Duration; + +public class SyncGenerateProductImageBackground { + + public static void main(String[] args) throws Exception { + syncGenerateProductImageBackground(); + } + + public static void syncGenerateProductImageBackground() 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 + ImageServiceSettings.Builder imageServiceSettingsBuilder = ImageServiceSettings.newBuilder(); + imageServiceSettingsBuilder + .generateProductImageBackgroundSettings() + .setRetrySettings( + imageServiceSettingsBuilder + .generateProductImageBackgroundSettings() + .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()); + ImageServiceSettings imageServiceSettings = imageServiceSettingsBuilder.build(); + } +} +// [END merchantapi_v1alpha_generated_ImageServiceSettings_GenerateProductImageBackground_sync] diff --git a/java-shopping-merchant-product-studio/samples/snippets/generated/com/google/shopping/merchant/productstudio/v1alpha/stub/imageservicestubsettings/generateproductimagebackground/SyncGenerateProductImageBackground.java b/java-shopping-merchant-product-studio/samples/snippets/generated/com/google/shopping/merchant/productstudio/v1alpha/stub/imageservicestubsettings/generateproductimagebackground/SyncGenerateProductImageBackground.java new file mode 100644 index 000000000000..84b851e1e772 --- /dev/null +++ b/java-shopping-merchant-product-studio/samples/snippets/generated/com/google/shopping/merchant/productstudio/v1alpha/stub/imageservicestubsettings/generateproductimagebackground/SyncGenerateProductImageBackground.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.productstudio.v1alpha.stub.samples; + +// [START merchantapi_v1alpha_generated_ImageServiceStubSettings_GenerateProductImageBackground_sync] +import com.google.shopping.merchant.productstudio.v1alpha.stub.ImageServiceStubSettings; +import java.time.Duration; + +public class SyncGenerateProductImageBackground { + + public static void main(String[] args) throws Exception { + syncGenerateProductImageBackground(); + } + + public static void syncGenerateProductImageBackground() 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 + ImageServiceStubSettings.Builder imageServiceSettingsBuilder = + ImageServiceStubSettings.newBuilder(); + imageServiceSettingsBuilder + .generateProductImageBackgroundSettings() + .setRetrySettings( + imageServiceSettingsBuilder + .generateProductImageBackgroundSettings() + .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()); + ImageServiceStubSettings imageServiceSettings = imageServiceSettingsBuilder.build(); + } +} +// [END merchantapi_v1alpha_generated_ImageServiceStubSettings_GenerateProductImageBackground_sync] diff --git a/java-shopping-merchant-products/CHANGELOG.md b/java-shopping-merchant-products/CHANGELOG.md index c86abd56eced..d7552f999639 100644 --- a/java-shopping-merchant-products/CHANGELOG.md +++ b/java-shopping-merchant-products/CHANGELOG.md @@ -1,5 +1,21 @@ # Changelog +## 0.24.0 (2025-07-11) + +### Features + +* new module for merchant-reports-v1alpha ([#11672](https://github.com/googleapis/google-cloud-java/issues/11672)) ([e611ec2](https://github.com/googleapis/google-cloud-java/commit/e611ec22adb990a3ca6b2785b183618231309b92)) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.23.0 (2025-06-25) ### Dependencies diff --git a/java-shopping-merchant-products/README.md b/java-shopping-merchant-products/README.md index be7d2401377e..b1f689adf8e4 100644 --- a/java-shopping-merchant-products/README.md +++ b/java-shopping-merchant-products/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-products - 0.22.0 + 0.23.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-products:0.22.0' +implementation 'com.google.shopping:google-shopping-merchant-products:0.23.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-products" % "0.22.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-products" % "0.23.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-products.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-products/0.22.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-products/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-shopping-merchant-products/google-shopping-merchant-products-bom/pom.xml b/java-shopping-merchant-products/google-shopping-merchant-products-bom/pom.xml index edf7da6df2e4..564612ae0a47 100644 --- a/java-shopping-merchant-products/google-shopping-merchant-products-bom/pom.xml +++ b/java-shopping-merchant-products/google-shopping-merchant-products-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-products-bom - 0.23.0 + 0.24.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.shopping google-shopping-merchant-products - 0.23.0 + 0.24.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-products-v1beta - 0.23.0 + 0.24.0 com.google.shopping.api.grpc proto-google-shopping-merchant-products-v1beta - 0.23.0 + 0.24.0
      diff --git a/java-shopping-merchant-products/google-shopping-merchant-products/pom.xml b/java-shopping-merchant-products/google-shopping-merchant-products/pom.xml index 2b6b9c3bf57d..05c3ddc05dd8 100644 --- a/java-shopping-merchant-products/google-shopping-merchant-products/pom.xml +++ b/java-shopping-merchant-products/google-shopping-merchant-products/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-products - 0.23.0 + 0.24.0 jar Google Merchant API Merchant API Programmatically manage your Merchant Center accounts. com.google.shopping google-shopping-merchant-products-parent - 0.23.0 + 0.24.0 google-shopping-merchant-products diff --git a/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1beta/ProductInputsServiceClient.java b/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1beta/ProductInputsServiceClient.java index 8c2d38b91707..e027379ae96b 100644 --- a/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1beta/ProductInputsServiceClient.java +++ b/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1beta/ProductInputsServiceClient.java @@ -66,7 +66,8 @@ * * *

      InsertProductInput - *

      Uploads a product input to your Merchant Center account. If an input with the same contentLanguage, offerId, and dataSource already exists, this method replaces that entry. + *

      [Uploads a product input to your Merchant Center account](/merchant/api/guides/products/overview#upload-product-input). You must have a products data source to be able to insert a product. The unique identifier of the data source is passed as a query parameter in the request URL. + *

      If an input with the same contentLanguage, offerId, and dataSource already exists, this method replaces that entry. *

      After inserting, updating, or deleting a product input, it may take several minutes before the processed product can be retrieved. * *

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

      @@ -229,8 +230,13 @@ public ProductInputsServiceStub getStub() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Uploads a product input to your Merchant Center account. If an input with the same - * contentLanguage, offerId, and dataSource already exists, this method replaces that entry. + * [Uploads a product input to your Merchant Center + * account](/merchant/api/guides/products/overview#upload-product-input). You must have a products + * data source to be able to insert a product. The unique identifier of the data source is passed + * as a query parameter in the request URL. + * + *

      If an input with the same contentLanguage, offerId, and dataSource already exists, this + * method replaces that entry. * *

      After inserting, updating, or deleting a product input, it may take several minutes before * the processed product can be retrieved. @@ -264,8 +270,13 @@ public final ProductInput insertProductInput(InsertProductInputRequest request) // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Uploads a product input to your Merchant Center account. If an input with the same - * contentLanguage, offerId, and dataSource already exists, this method replaces that entry. + * [Uploads a product input to your Merchant Center + * account](/merchant/api/guides/products/overview#upload-product-input). You must have a products + * data source to be able to insert a product. The unique identifier of the data source is passed + * as a query parameter in the request URL. + * + *

      If an input with the same contentLanguage, offerId, and dataSource already exists, this + * method replaces that entry. * *

      After inserting, updating, or deleting a product input, it may take several minutes before * the processed product can be retrieved. @@ -435,9 +446,9 @@ public final UnaryCallable updateProduc * } * * @param name Required. The name of the product input resource to delete. Format: - * accounts/{account}/productInputs/{product} where the last section `product` consists of 4 - * parts: channel~content_language~feed_label~offer_id example for product name is - * "accounts/123/productInputs/online~en~US~sku123" + * `accounts/{account}/productInputs/{product}` where the last section `product` consists of 4 + * parts: `channel~content_language~feed_label~offer_id` example for product name is + * `accounts/123/productInputs/online~en~US~sku123`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteProductInput(ProductInputName name) { @@ -471,9 +482,9 @@ public final void deleteProductInput(ProductInputName name) { * } * * @param name Required. The name of the product input resource to delete. Format: - * accounts/{account}/productInputs/{product} where the last section `product` consists of 4 - * parts: channel~content_language~feed_label~offer_id example for product name is - * "accounts/123/productInputs/online~en~US~sku123" + * `accounts/{account}/productInputs/{product}` where the last section `product` consists of 4 + * parts: `channel~content_language~feed_label~offer_id` example for product name is + * `accounts/123/productInputs/online~en~US~sku123`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteProductInput(String name) { diff --git a/java-shopping-merchant-products/grpc-google-shopping-merchant-products-v1beta/pom.xml b/java-shopping-merchant-products/grpc-google-shopping-merchant-products-v1beta/pom.xml index 2b51ed2f935e..94403b850c32 100644 --- a/java-shopping-merchant-products/grpc-google-shopping-merchant-products-v1beta/pom.xml +++ b/java-shopping-merchant-products/grpc-google-shopping-merchant-products-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-products-v1beta - 0.23.0 + 0.24.0 grpc-google-shopping-merchant-products-v1beta GRPC library for google-shopping-merchant-products com.google.shopping google-shopping-merchant-products-parent - 0.23.0 + 0.24.0 diff --git a/java-shopping-merchant-products/grpc-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductInputsServiceGrpc.java b/java-shopping-merchant-products/grpc-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductInputsServiceGrpc.java index fab911bf9b90..4aaaa086aae9 100644 --- a/java-shopping-merchant-products/grpc-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductInputsServiceGrpc.java +++ b/java-shopping-merchant-products/grpc-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductInputsServiceGrpc.java @@ -251,9 +251,13 @@ public interface AsyncService { * * *

      -     * Uploads a product input to your Merchant Center account. If an input
      -     * with the same contentLanguage, offerId, and dataSource already exists,
      -     * this method replaces that entry.
      +     * [Uploads a product input to your Merchant Center
      +     * account](/merchant/api/guides/products/overview#upload-product-input). You
      +     * must have a products data source to be able to insert a product. The unique
      +     * identifier of the data source is passed as a query parameter in the request
      +     * URL.
      +     * If an input with the same contentLanguage, offerId, and dataSource already
      +     * exists, this method replaces that entry.
            * After inserting, updating, or deleting a product input, it may take several
            * minutes before the processed product can be retrieved.
            * 
      @@ -341,9 +345,13 @@ protected ProductInputsServiceStub build( * * *
      -     * Uploads a product input to your Merchant Center account. If an input
      -     * with the same contentLanguage, offerId, and dataSource already exists,
      -     * this method replaces that entry.
      +     * [Uploads a product input to your Merchant Center
      +     * account](/merchant/api/guides/products/overview#upload-product-input). You
      +     * must have a products data source to be able to insert a product. The unique
      +     * identifier of the data source is passed as a query parameter in the request
      +     * URL.
      +     * If an input with the same contentLanguage, offerId, and dataSource already
      +     * exists, this method replaces that entry.
            * After inserting, updating, or deleting a product input, it may take several
            * minutes before the processed product can be retrieved.
            * 
      @@ -421,9 +429,13 @@ protected ProductInputsServiceBlockingV2Stub build( * * *
      -     * Uploads a product input to your Merchant Center account. If an input
      -     * with the same contentLanguage, offerId, and dataSource already exists,
      -     * this method replaces that entry.
      +     * [Uploads a product input to your Merchant Center
      +     * account](/merchant/api/guides/products/overview#upload-product-input). You
      +     * must have a products data source to be able to insert a product. The unique
      +     * identifier of the data source is passed as a query parameter in the request
      +     * URL.
      +     * If an input with the same contentLanguage, offerId, and dataSource already
      +     * exists, this method replaces that entry.
            * After inserting, updating, or deleting a product input, it may take several
            * minutes before the processed product can be retrieved.
            * 
      @@ -490,9 +502,13 @@ protected ProductInputsServiceBlockingStub build( * * *
      -     * Uploads a product input to your Merchant Center account. If an input
      -     * with the same contentLanguage, offerId, and dataSource already exists,
      -     * this method replaces that entry.
      +     * [Uploads a product input to your Merchant Center
      +     * account](/merchant/api/guides/products/overview#upload-product-input). You
      +     * must have a products data source to be able to insert a product. The unique
      +     * identifier of the data source is passed as a query parameter in the request
      +     * URL.
      +     * If an input with the same contentLanguage, offerId, and dataSource already
      +     * exists, this method replaces that entry.
            * After inserting, updating, or deleting a product input, it may take several
            * minutes before the processed product can be retrieved.
            * 
      @@ -559,9 +575,13 @@ protected ProductInputsServiceFutureStub build( * * *
      -     * Uploads a product input to your Merchant Center account. If an input
      -     * with the same contentLanguage, offerId, and dataSource already exists,
      -     * this method replaces that entry.
      +     * [Uploads a product input to your Merchant Center
      +     * account](/merchant/api/guides/products/overview#upload-product-input). You
      +     * must have a products data source to be able to insert a product. The unique
      +     * identifier of the data source is passed as a query parameter in the request
      +     * URL.
      +     * If an input with the same contentLanguage, offerId, and dataSource already
      +     * exists, this method replaces that entry.
            * After inserting, updating, or deleting a product input, it may take several
            * minutes before the processed product can be retrieved.
            * 
      diff --git a/java-shopping-merchant-products/pom.xml b/java-shopping-merchant-products/pom.xml index 999f5d0bc00b..ac92d6879542 100644 --- a/java-shopping-merchant-products/pom.xml +++ b/java-shopping-merchant-products/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-products-parent pom - 0.23.0 + 0.24.0 Google Merchant API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.shopping google-shopping-merchant-products - 0.23.0 + 0.24.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-products-v1beta - 0.23.0 + 0.24.0 com.google.shopping.api.grpc proto-google-shopping-merchant-products-v1beta - 0.23.0 + 0.24.0 diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/pom.xml b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/pom.xml index f539d025c679..103ce1729e8c 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/pom.xml +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-products-v1beta - 0.23.0 + 0.24.0 proto-google-shopping-merchant-products-v1beta Proto library for google-shopping-merchant-products com.google.shopping google-shopping-merchant-products-parent - 0.23.0 + 0.24.0 diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/Attributes.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/Attributes.java index 93cc7779a721..217e986ea7f5 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/Attributes.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/Attributes.java @@ -55,6 +55,7 @@ private Attributes() { gender_ = ""; googleProductCategory_ = ""; gtin_ = com.google.protobuf.LazyStringArrayList.emptyList(); + gtins_ = com.google.protobuf.LazyStringArrayList.emptyList(); itemGroupId_ = ""; material_ = ""; mpn_ = ""; @@ -174,8 +175,9 @@ public boolean getIdentifierExists() { * * *
      -   * Whether the item is a merchant-defined bundle. A bundle is a custom
      -   * grouping of different products sold by a merchant for a single price.
      +   * Whether the item is a business-defined sub-API. A [sub-API]
      +   * (https://support.google.com/merchants/answer/6324449) is a custom
      +   * grouping of different products sold by a business for a single price.
          * 
      * * optional bool is_bundle = 5; @@ -191,8 +193,9 @@ public boolean hasIsBundle() { * * *
      -   * Whether the item is a merchant-defined bundle. A bundle is a custom
      -   * grouping of different products sold by a merchant for a single price.
      +   * Whether the item is a business-defined sub-API. A [sub-API]
      +   * (https://support.google.com/merchants/answer/6324449) is a custom
      +   * grouping of different products sold by a business for a single price.
          * 
      * * optional bool is_bundle = 5; @@ -763,8 +766,9 @@ public com.google.protobuf.TimestampOrBuilder getExpirationDateOrBuilder() { *
          * The date time when an offer becomes visible in search results across
          * Google’s YouTube surfaces, in [ISO
      -   * 8601](http://en.wikipedia.org/wiki/ISO_8601) format. See [Disclosure date](
      -   * https://support.google.com/merchants/answer/13034208) for more information.
      +   * 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
      +   * See [Disclosure date](https://support.google.com/merchants/answer/13034208)
      +   * for more information.
          * 
      * * .google.protobuf.Timestamp disclosure_date = 79; @@ -782,8 +786,9 @@ public boolean hasDisclosureDate() { *
          * The date time when an offer becomes visible in search results across
          * Google’s YouTube surfaces, in [ISO
      -   * 8601](http://en.wikipedia.org/wiki/ISO_8601) format. See [Disclosure date](
      -   * https://support.google.com/merchants/answer/13034208) for more information.
      +   * 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
      +   * See [Disclosure date](https://support.google.com/merchants/answer/13034208)
      +   * for more information.
          * 
      * * .google.protobuf.Timestamp disclosure_date = 79; @@ -803,8 +808,9 @@ public com.google.protobuf.Timestamp getDisclosureDate() { *
          * The date time when an offer becomes visible in search results across
          * Google’s YouTube surfaces, in [ISO
      -   * 8601](http://en.wikipedia.org/wiki/ISO_8601) format. See [Disclosure date](
      -   * https://support.google.com/merchants/answer/13034208) for more information.
      +   * 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
      +   * See [Disclosure date](https://support.google.com/merchants/answer/13034208)
      +   * for more information.
          * 
      * * .google.protobuf.Timestamp disclosure_date = 79; @@ -932,7 +938,8 @@ public com.google.protobuf.ByteString getAgeGroupBytes() { * * *
      -   * Availability status of the item.
      +   * [Availability](https://support.google.com/merchants/answer/6324448) status
      +   * of the item. For example, "in_stock" or "out_of_stock".
          * 
      * * optional string availability = 19; @@ -948,7 +955,8 @@ public boolean hasAvailability() { * * *
      -   * Availability status of the item.
      +   * [Availability](https://support.google.com/merchants/answer/6324448) status
      +   * of the item. For example, "in_stock" or "out_of_stock".
          * 
      * * optional string availability = 19; @@ -972,7 +980,8 @@ public java.lang.String getAvailability() { * * *
      -   * Availability status of the item.
      +   * [Availability](https://support.google.com/merchants/answer/6324448) status
      +   * of the item. For example, "in_stock" or "out_of_stock".
          * 
      * * optional string availability = 19; @@ -1057,7 +1066,8 @@ public com.google.protobuf.TimestampOrBuilder getAvailabilityDateOrBuilder() { * * *
      -   * Brand of the item.
      +   * [Brand](https://support.google.com/merchants/answer/6324351) of the item.
      +   * For example, "Google".
          * 
      * * optional string brand = 21; @@ -1073,7 +1083,8 @@ public boolean hasBrand() { * * *
      -   * Brand of the item.
      +   * [Brand](https://support.google.com/merchants/answer/6324351) of the item.
      +   * For example, "Google".
          * 
      * * optional string brand = 21; @@ -1097,7 +1108,8 @@ public java.lang.String getBrand() { * * *
      -   * Brand of the item.
      +   * [Brand](https://support.google.com/merchants/answer/6324351) of the item.
      +   * For example, "Google".
          * 
      * * optional string brand = 21; @@ -1126,7 +1138,8 @@ public com.google.protobuf.ByteString getBrandBytes() { * * *
      -   * Color of the item.
      +   * [Color](https://support.google.com/merchants/answer/6324487) of the item.
      +   * For example, "red".
          * 
      * * optional string color = 22; @@ -1142,7 +1155,8 @@ public boolean hasColor() { * * *
      -   * Color of the item.
      +   * [Color](https://support.google.com/merchants/answer/6324487) of the item.
      +   * For example, "red".
          * 
      * * optional string color = 22; @@ -1166,7 +1180,8 @@ public java.lang.String getColor() { * * *
      -   * Color of the item.
      +   * [Color](https://support.google.com/merchants/answer/6324487) of the item.
      +   * For example, "red".
          * 
      * * optional string color = 22; @@ -1195,7 +1210,8 @@ public com.google.protobuf.ByteString getColorBytes() { * * *
      -   * Condition or state of the item.
      +   * [Condition](https://support.google.com/merchants/answer/6324469) or state
      +   * of the item. For example, "new" or "used".
          * 
      * * optional string condition = 23; @@ -1211,7 +1227,8 @@ public boolean hasCondition() { * * *
      -   * Condition or state of the item.
      +   * [Condition](https://support.google.com/merchants/answer/6324469) or state
      +   * of the item. For example, "new" or "used".
          * 
      * * optional string condition = 23; @@ -1235,7 +1252,8 @@ public java.lang.String getCondition() { * * *
      -   * Condition or state of the item.
      +   * [Condition](https://support.google.com/merchants/answer/6324469) or state
      +   * of the item. For example, "new" or "used".
          * 
      * * optional string condition = 23; @@ -1264,7 +1282,8 @@ public com.google.protobuf.ByteString getConditionBytes() { * * *
      -   * Target gender of the item.
      +   * Target [gender](https://support.google.com/merchants/answer/6324479) of the
      +   * item. For example, "male" or "female".
          * 
      * * optional string gender = 24; @@ -1280,7 +1299,8 @@ public boolean hasGender() { * * *
      -   * Target gender of the item.
      +   * Target [gender](https://support.google.com/merchants/answer/6324479) of the
      +   * item. For example, "male" or "female".
          * 
      * * optional string gender = 24; @@ -1304,7 +1324,8 @@ public java.lang.String getGender() { * * *
      -   * Target gender of the item.
      +   * Target [gender](https://support.google.com/merchants/answer/6324479) of the
      +   * item. For example, "male" or "female".
          * 
      * * optional string gender = 24; @@ -1419,12 +1440,17 @@ public com.google.protobuf.ByteString getGoogleProductCategoryBytes() { * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the * item. * You can provide up to 10 GTINs. + * + * Deprecated: Use `gtins` instead. * * - * repeated string gtin = 26; + * repeated string gtin = 26 [deprecated = true]; * + * @deprecated google.shopping.merchant.products.v1beta.Attributes.gtin is deprecated. See + * google/shopping/merchant/products/v1beta/products_common.proto;l=132 * @return A list containing the gtin. */ + @java.lang.Deprecated public com.google.protobuf.ProtocolStringList getGtinList() { return gtin_; } @@ -1437,12 +1463,17 @@ public com.google.protobuf.ProtocolStringList getGtinList() { * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the * item. * You can provide up to 10 GTINs. + * + * Deprecated: Use `gtins` instead. * * - * repeated string gtin = 26; + * repeated string gtin = 26 [deprecated = true]; * + * @deprecated google.shopping.merchant.products.v1beta.Attributes.gtin is deprecated. See + * google/shopping/merchant/products/v1beta/products_common.proto;l=132 * @return The count of gtin. */ + @java.lang.Deprecated public int getGtinCount() { return gtin_.size(); } @@ -1455,13 +1486,18 @@ public int getGtinCount() { * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the * item. * You can provide up to 10 GTINs. + * + * Deprecated: Use `gtins` instead. * * - * repeated string gtin = 26; + * repeated string gtin = 26 [deprecated = true]; * + * @deprecated google.shopping.merchant.products.v1beta.Attributes.gtin is deprecated. See + * google/shopping/merchant/products/v1beta/products_common.proto;l=132 * @param index The index of the element to return. * @return The gtin at the given index. */ + @java.lang.Deprecated public java.lang.String getGtin(int index) { return gtin_.get(index); } @@ -1474,17 +1510,102 @@ public java.lang.String getGtin(int index) { * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the * item. * You can provide up to 10 GTINs. + * + * Deprecated: Use `gtins` instead. * * - * repeated string gtin = 26; + * repeated string gtin = 26 [deprecated = true]; * + * @deprecated google.shopping.merchant.products.v1beta.Attributes.gtin is deprecated. See + * google/shopping/merchant/products/v1beta/products_common.proto;l=132 * @param index The index of the value to return. * @return The bytes of the gtin at the given index. */ + @java.lang.Deprecated public com.google.protobuf.ByteString getGtinBytes(int index) { return gtin_.getByteString(index); } + public static final int GTINS_FIELD_NUMBER = 140; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList gtins_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
      +   * Global Trade Item Numbers
      +   * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
      +   * item.
      +   * You can provide up to 10 GTINs.
      +   * 
      + * + * repeated string gtins = 140; + * + * @return A list containing the gtins. + */ + public com.google.protobuf.ProtocolStringList getGtinsList() { + return gtins_; + } + + /** + * + * + *
      +   * Global Trade Item Numbers
      +   * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
      +   * item.
      +   * You can provide up to 10 GTINs.
      +   * 
      + * + * repeated string gtins = 140; + * + * @return The count of gtins. + */ + public int getGtinsCount() { + return gtins_.size(); + } + + /** + * + * + *
      +   * Global Trade Item Numbers
      +   * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
      +   * item.
      +   * You can provide up to 10 GTINs.
      +   * 
      + * + * repeated string gtins = 140; + * + * @param index The index of the element to return. + * @return The gtins at the given index. + */ + public java.lang.String getGtins(int index) { + return gtins_.get(index); + } + + /** + * + * + *
      +   * Global Trade Item Numbers
      +   * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
      +   * item.
      +   * You can provide up to 10 GTINs.
      +   * 
      + * + * repeated string gtins = 140; + * + * @param index The index of the value to return. + * @return The bytes of the gtins at the given index. + */ + public com.google.protobuf.ByteString getGtinsBytes(int index) { + return gtins_.getByteString(index); + } + public static final int ITEM_GROUP_ID_FIELD_NUMBER = 27; @SuppressWarnings("serial") @@ -1563,7 +1684,8 @@ public com.google.protobuf.ByteString getItemGroupIdBytes() { * * *
      -   * The material of which the item is made.
      +   * The [material](https://support.google.com/merchants/answer/6324410) of
      +   * which the item is made. For example, "Leather" or "Cotton".
          * 
      * * optional string material = 28; @@ -1579,7 +1701,8 @@ public boolean hasMaterial() { * * *
      -   * The material of which the item is made.
      +   * The [material](https://support.google.com/merchants/answer/6324410) of
      +   * which the item is made. For example, "Leather" or "Cotton".
          * 
      * * optional string material = 28; @@ -1603,7 +1726,8 @@ public java.lang.String getMaterial() { * * *
      -   * The material of which the item is made.
      +   * The [material](https://support.google.com/merchants/answer/6324410) of
      +   * which the item is made. For example, "Leather" or "Cotton".
          * 
      * * optional string material = 28; @@ -1707,7 +1831,8 @@ public com.google.protobuf.ByteString getMpnBytes() { * * *
      -   * The item's pattern (for example, polka dots).
      +   * The item's [pattern](https://support.google.com/merchants/answer/6324483).
      +   * For example, polka dots.
          * 
      * * optional string pattern = 30; @@ -1723,7 +1848,8 @@ public boolean hasPattern() { * * *
      -   * The item's pattern (for example, polka dots).
      +   * The item's [pattern](https://support.google.com/merchants/answer/6324483).
      +   * For example, polka dots.
          * 
      * * optional string pattern = 30; @@ -1747,7 +1873,8 @@ public java.lang.String getPattern() { * * *
      -   * The item's pattern (for example, polka dots).
      +   * The item's [pattern](https://support.google.com/merchants/answer/6324483).
      +   * For example, polka dots.
          * 
      * * optional string pattern = 30; @@ -1816,6 +1943,59 @@ public com.google.shopping.type.PriceOrBuilder getPriceOrBuilder() { return price_ == null ? com.google.shopping.type.Price.getDefaultInstance() : price_; } + public static final int MAXIMUM_RETAIL_PRICE_FIELD_NUMBER = 139; + private com.google.shopping.type.Price maximumRetailPrice_; + + /** + * + * + *
      +   * Maximum retail price (MRP) of the item. Applicable to India only.
      +   * 
      + * + * .google.shopping.type.Price maximum_retail_price = 139; + * + * @return Whether the maximumRetailPrice field is set. + */ + @java.lang.Override + public boolean hasMaximumRetailPrice() { + return ((bitField0_ & 0x01000000) != 0); + } + + /** + * + * + *
      +   * Maximum retail price (MRP) of the item. Applicable to India only.
      +   * 
      + * + * .google.shopping.type.Price maximum_retail_price = 139; + * + * @return The maximumRetailPrice. + */ + @java.lang.Override + public com.google.shopping.type.Price getMaximumRetailPrice() { + return maximumRetailPrice_ == null + ? com.google.shopping.type.Price.getDefaultInstance() + : maximumRetailPrice_; + } + + /** + * + * + *
      +   * Maximum retail price (MRP) of the item. Applicable to India only.
      +   * 
      + * + * .google.shopping.type.Price maximum_retail_price = 139; + */ + @java.lang.Override + public com.google.shopping.type.PriceOrBuilder getMaximumRetailPriceOrBuilder() { + return maximumRetailPrice_ == null + ? com.google.shopping.type.Price.getDefaultInstance() + : maximumRetailPrice_; + } + public static final int INSTALLMENT_FIELD_NUMBER = 32; private com.google.shopping.merchant.products.v1beta.Installment installment_; @@ -1832,7 +2012,7 @@ public com.google.shopping.type.PriceOrBuilder getPriceOrBuilder() { */ @java.lang.Override public boolean hasInstallment() { - return ((bitField0_ & 0x01000000) != 0); + return ((bitField0_ & 0x02000000) != 0); } /** @@ -1887,7 +2067,7 @@ public com.google.shopping.merchant.products.v1beta.Installment getInstallment() */ @java.lang.Override public boolean hasSubscriptionCost() { - return ((bitField0_ & 0x02000000) != 0); + return ((bitField0_ & 0x04000000) != 0); } /** @@ -1943,7 +2123,7 @@ public com.google.shopping.merchant.products.v1beta.SubscriptionCost getSubscrip */ @java.lang.Override public boolean hasLoyaltyPoints() { - return ((bitField0_ & 0x04000000) != 0); + return ((bitField0_ & 0x08000000) != 0); } /** @@ -2087,7 +2267,7 @@ public com.google.shopping.merchant.products.v1beta.LoyaltyProgram getLoyaltyPro * *
          * Categories of the item (formatted as in [product data
      -   * specification](https://support.google.com/merchants/answer/188494#product_type)).
      +   * specification](https://support.google.com/merchants/answer/7052112#product_category)).
          * 
      * * repeated string product_types = 35; @@ -2103,7 +2283,7 @@ public com.google.protobuf.ProtocolStringList getProductTypesList() { * *
          * Categories of the item (formatted as in [product data
      -   * specification](https://support.google.com/merchants/answer/188494#product_type)).
      +   * specification](https://support.google.com/merchants/answer/7052112#product_category)).
          * 
      * * repeated string product_types = 35; @@ -2119,7 +2299,7 @@ public int getProductTypesCount() { * *
          * Categories of the item (formatted as in [product data
      -   * specification](https://support.google.com/merchants/answer/188494#product_type)).
      +   * specification](https://support.google.com/merchants/answer/7052112#product_category)).
          * 
      * * repeated string product_types = 35; @@ -2136,7 +2316,7 @@ public java.lang.String getProductTypes(int index) { * *
          * Categories of the item (formatted as in [product data
      -   * specification](https://support.google.com/merchants/answer/188494#product_type)).
      +   * specification](https://support.google.com/merchants/answer/7052112#product_category)).
          * 
      * * repeated string product_types = 35; @@ -2164,7 +2344,7 @@ public com.google.protobuf.ByteString getProductTypesBytes(int index) { */ @java.lang.Override public boolean hasSalePrice() { - return ((bitField0_ & 0x08000000) != 0); + return ((bitField0_ & 0x10000000) != 0); } /** @@ -2204,8 +2384,8 @@ public com.google.shopping.type.PriceOrBuilder getSalePriceOrBuilder() { * * *
      -   * Date range during which the item is on sale (see [product data
      -   * specification](https://support.google.com/merchants/answer/188494#sale_price_effective_date)).
      +   * Date range during which the item is on sale, see [product data
      +   * specification](https://support.google.com/merchants/answer/7052112#price_and_availability).
          * 
      * * .google.type.Interval sale_price_effective_date = 37; @@ -2214,15 +2394,15 @@ public com.google.shopping.type.PriceOrBuilder getSalePriceOrBuilder() { */ @java.lang.Override public boolean hasSalePriceEffectiveDate() { - return ((bitField0_ & 0x10000000) != 0); + return ((bitField0_ & 0x20000000) != 0); } /** * * *
      -   * Date range during which the item is on sale (see [product data
      -   * specification](https://support.google.com/merchants/answer/188494#sale_price_effective_date)).
      +   * Date range during which the item is on sale, see [product data
      +   * specification](https://support.google.com/merchants/answer/7052112#price_and_availability).
          * 
      * * .google.type.Interval sale_price_effective_date = 37; @@ -2240,8 +2420,8 @@ public com.google.type.Interval getSalePriceEffectiveDate() { * * *
      -   * Date range during which the item is on sale (see [product data
      -   * specification](https://support.google.com/merchants/answer/188494#sale_price_effective_date)).
      +   * Date range during which the item is on sale, see [product data
      +   * specification](https://support.google.com/merchants/answer/7052112#price_and_availability).
          * 
      * * .google.type.Interval sale_price_effective_date = 37; @@ -2270,7 +2450,7 @@ public com.google.type.IntervalOrBuilder getSalePriceEffectiveDateOrBuilder() { */ @java.lang.Override public boolean hasSellOnGoogleQuantity() { - return ((bitField0_ & 0x20000000) != 0); + return ((bitField0_ & 0x40000000) != 0); } /** @@ -2308,7 +2488,7 @@ public long getSellOnGoogleQuantity() { */ @java.lang.Override public boolean hasProductHeight() { - return ((bitField0_ & 0x40000000) != 0); + return ((bitField0_ & 0x80000000) != 0); } /** @@ -2367,7 +2547,7 @@ public com.google.shopping.merchant.products.v1beta.ProductDimension getProductH */ @java.lang.Override public boolean hasProductLength() { - return ((bitField0_ & 0x80000000) != 0); + return ((bitField1_ & 0x00000001) != 0); } /** @@ -2424,7 +2604,7 @@ public com.google.shopping.merchant.products.v1beta.ProductDimension getProductL */ @java.lang.Override public boolean hasProductWidth() { - return ((bitField1_ & 0x00000001) != 0); + return ((bitField1_ & 0x00000002) != 0); } /** @@ -2481,7 +2661,7 @@ public com.google.shopping.merchant.products.v1beta.ProductDimension getProductW */ @java.lang.Override public boolean hasProductWeight() { - return ((bitField1_ & 0x00000002) != 0); + return ((bitField1_ & 0x00000004) != 0); } /** @@ -2705,7 +2885,7 @@ public int getFreeShippingThresholdCount() { */ @java.lang.Override public boolean hasShippingWeight() { - return ((bitField1_ & 0x00000004) != 0); + return ((bitField1_ & 0x00000008) != 0); } /** @@ -2759,7 +2939,7 @@ public com.google.shopping.merchant.products.v1beta.ShippingWeight getShippingWe */ @java.lang.Override public boolean hasShippingLength() { - return ((bitField1_ & 0x00000008) != 0); + return ((bitField1_ & 0x00000010) != 0); } /** @@ -2813,7 +2993,7 @@ public com.google.shopping.merchant.products.v1beta.ShippingDimension getShippin */ @java.lang.Override public boolean hasShippingWidth() { - return ((bitField1_ & 0x00000010) != 0); + return ((bitField1_ & 0x00000020) != 0); } /** @@ -2867,7 +3047,7 @@ public com.google.shopping.merchant.products.v1beta.ShippingDimension getShippin */ @java.lang.Override public boolean hasShippingHeight() { - return ((bitField1_ & 0x00000020) != 0); + return ((bitField1_ & 0x00000040) != 0); } /** @@ -2921,7 +3101,7 @@ public com.google.shopping.merchant.products.v1beta.ShippingDimension getShippin */ @java.lang.Override public boolean hasMaxHandlingTime() { - return ((bitField1_ & 0x00000040) != 0); + return ((bitField1_ & 0x00000080) != 0); } /** @@ -2956,7 +3136,7 @@ public long getMaxHandlingTime() { */ @java.lang.Override public boolean hasMinHandlingTime() { - return ((bitField1_ & 0x00000080) != 0); + return ((bitField1_ & 0x00000100) != 0); } /** @@ -2994,7 +3174,7 @@ public long getMinHandlingTime() { */ @java.lang.Override public boolean hasShippingLabel() { - return ((bitField1_ & 0x00000100) != 0); + return ((bitField1_ & 0x00000200) != 0); } /** @@ -3066,7 +3246,7 @@ public com.google.protobuf.ByteString getShippingLabelBytes() { */ @java.lang.Override public boolean hasTransitTimeLabel() { - return ((bitField1_ & 0x00000200) != 0); + return ((bitField1_ & 0x00000400) != 0); } /** @@ -3130,8 +3310,8 @@ public com.google.protobuf.ByteString getTransitTimeLabelBytes() { *
          * Size of the item. Only one value is allowed. For variants with different
          * sizes, insert a separate product for each size with the same
      -   * `itemGroupId` value (see
      -   * [https://support.google.com/merchants/answer/6324492](size definition)).
      +   * `itemGroupId` value, see
      +   * [Size](https://support.google.com/merchants/answer/6324492).
          * 
      * * optional string size = 48; @@ -3140,7 +3320,7 @@ public com.google.protobuf.ByteString getTransitTimeLabelBytes() { */ @java.lang.Override public boolean hasSize() { - return ((bitField1_ & 0x00000400) != 0); + return ((bitField1_ & 0x00000800) != 0); } /** @@ -3149,8 +3329,8 @@ public boolean hasSize() { *
          * Size of the item. Only one value is allowed. For variants with different
          * sizes, insert a separate product for each size with the same
      -   * `itemGroupId` value (see
      -   * [https://support.google.com/merchants/answer/6324492](size definition)).
      +   * `itemGroupId` value, see
      +   * [Size](https://support.google.com/merchants/answer/6324492).
          * 
      * * optional string size = 48; @@ -3176,8 +3356,8 @@ public java.lang.String getSize() { *
          * Size of the item. Only one value is allowed. For variants with different
          * sizes, insert a separate product for each size with the same
      -   * `itemGroupId` value (see
      -   * [https://support.google.com/merchants/answer/6324492](size definition)).
      +   * `itemGroupId` value, see
      +   * [Size](https://support.google.com/merchants/answer/6324492).
          * 
      * * optional string size = 48; @@ -3207,6 +3387,9 @@ public com.google.protobuf.ByteString getSizeBytes() { * *
          * System in which the size is specified. Recommended for apparel items.
      +   * For example, "US", "UK", "DE".
      +   * For more information, see
      +   * [Size system](https://support.google.com/merchants/answer/6324502).
          * 
      * * optional string size_system = 49; @@ -3215,7 +3398,7 @@ public com.google.protobuf.ByteString getSizeBytes() { */ @java.lang.Override public boolean hasSizeSystem() { - return ((bitField1_ & 0x00000800) != 0); + return ((bitField1_ & 0x00001000) != 0); } /** @@ -3223,6 +3406,9 @@ public boolean hasSizeSystem() { * *
          * System in which the size is specified. Recommended for apparel items.
      +   * For example, "US", "UK", "DE".
      +   * For more information, see
      +   * [Size system](https://support.google.com/merchants/answer/6324502).
          * 
      * * optional string size_system = 49; @@ -3247,6 +3433,9 @@ public java.lang.String getSizeSystem() { * *
          * System in which the size is specified. Recommended for apparel items.
      +   * For example, "US", "UK", "DE".
      +   * For more information, see
      +   * [Size system](https://support.google.com/merchants/answer/6324502).
          * 
      * * optional string size_system = 49; @@ -3277,8 +3466,9 @@ public com.google.protobuf.ByteString getSizeSystemBytes() { * *
          * The cut of the item. It can be used to represent combined size types for
      -   * apparel items. Maximum two of size types can be provided (see
      -   * [https://support.google.com/merchants/answer/6324497](size type)).
      +   * apparel items. Maximum two of size types can be provided, see
      +   * [Size type](https://support.google.com/merchants/answer/6324497).
      +   * For example, "petite", "plus size".
          * 
      * * repeated string size_types = 50; @@ -3294,8 +3484,9 @@ public com.google.protobuf.ProtocolStringList getSizeTypesList() { * *
          * The cut of the item. It can be used to represent combined size types for
      -   * apparel items. Maximum two of size types can be provided (see
      -   * [https://support.google.com/merchants/answer/6324497](size type)).
      +   * apparel items. Maximum two of size types can be provided, see
      +   * [Size type](https://support.google.com/merchants/answer/6324497).
      +   * For example, "petite", "plus size".
          * 
      * * repeated string size_types = 50; @@ -3311,8 +3502,9 @@ public int getSizeTypesCount() { * *
          * The cut of the item. It can be used to represent combined size types for
      -   * apparel items. Maximum two of size types can be provided (see
      -   * [https://support.google.com/merchants/answer/6324497](size type)).
      +   * apparel items. Maximum two of size types can be provided, see
      +   * [Size type](https://support.google.com/merchants/answer/6324497).
      +   * For example, "petite", "plus size".
          * 
      * * repeated string size_types = 50; @@ -3329,8 +3521,9 @@ public java.lang.String getSizeTypes(int index) { * *
          * The cut of the item. It can be used to represent combined size types for
      -   * apparel items. Maximum two of size types can be provided (see
      -   * [https://support.google.com/merchants/answer/6324497](size type)).
      +   * apparel items. Maximum two of size types can be provided, see
      +   * [Size type](https://support.google.com/merchants/answer/6324497).
      +   * For example, "petite", "plus size".
          * 
      * * repeated string size_types = 50; @@ -3354,9 +3547,11 @@ public com.google.protobuf.ByteString getSizeTypesBytes(int index) { * Tax information. * * - * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51; + * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51 [deprecated = true]; + * */ @java.lang.Override + @java.lang.Deprecated public java.util.List getTaxesList() { return taxes_; } @@ -3368,9 +3563,11 @@ public java.util.List getTaxes * Tax information. * * - * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51; + * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51 [deprecated = true]; + * */ @java.lang.Override + @java.lang.Deprecated public java.util.List getTaxesOrBuilderList() { return taxes_; @@ -3383,9 +3580,11 @@ public java.util.List getTaxes * Tax information. * * - * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51; + * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51 [deprecated = true]; + * */ @java.lang.Override + @java.lang.Deprecated public int getTaxesCount() { return taxes_.size(); } @@ -3397,9 +3596,11 @@ public int getTaxesCount() { * Tax information. * * - * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51; + * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51 [deprecated = true]; + * */ @java.lang.Override + @java.lang.Deprecated public com.google.shopping.merchant.products.v1beta.Tax getTaxes(int index) { return taxes_.get(index); } @@ -3411,9 +3612,11 @@ public com.google.shopping.merchant.products.v1beta.Tax getTaxes(int index) { * Tax information. * * - * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51; + * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51 [deprecated = true]; + * */ @java.lang.Override + @java.lang.Deprecated public com.google.shopping.merchant.products.v1beta.TaxOrBuilder getTaxesOrBuilder(int index) { return taxes_.get(index); } @@ -3427,30 +3630,38 @@ public com.google.shopping.merchant.products.v1beta.TaxOrBuilder getTaxesOrBuild * * *
      -   * The tax category of the product.
      +   * The [tax category](https://support.google.com/merchants/answer/7569847) of
      +   * the product.
          * 
      * - * optional string tax_category = 52; + * optional string tax_category = 52 [deprecated = true]; * + * @deprecated google.shopping.merchant.products.v1beta.Attributes.tax_category is deprecated. See + * google/shopping/merchant/products/v1beta/products_common.proto;l=264 * @return Whether the taxCategory field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasTaxCategory() { - return ((bitField1_ & 0x00001000) != 0); + return ((bitField1_ & 0x00002000) != 0); } /** * * *
      -   * The tax category of the product.
      +   * The [tax category](https://support.google.com/merchants/answer/7569847) of
      +   * the product.
          * 
      * - * optional string tax_category = 52; + * optional string tax_category = 52 [deprecated = true]; * + * @deprecated google.shopping.merchant.products.v1beta.Attributes.tax_category is deprecated. See + * google/shopping/merchant/products/v1beta/products_common.proto;l=264 * @return The taxCategory. */ @java.lang.Override + @java.lang.Deprecated public java.lang.String getTaxCategory() { java.lang.Object ref = taxCategory_; if (ref instanceof java.lang.String) { @@ -3467,14 +3678,18 @@ public java.lang.String getTaxCategory() { * * *
      -   * The tax category of the product.
      +   * The [tax category](https://support.google.com/merchants/answer/7569847) of
      +   * the product.
          * 
      * - * optional string tax_category = 52; + * optional string tax_category = 52 [deprecated = true]; * + * @deprecated google.shopping.merchant.products.v1beta.Attributes.tax_category is deprecated. See + * google/shopping/merchant/products/v1beta/products_common.proto;l=264 * @return The bytes for taxCategory. */ @java.lang.Override + @java.lang.Deprecated public com.google.protobuf.ByteString getTaxCategoryBytes() { java.lang.Object ref = taxCategory_; if (ref instanceof java.lang.String) { @@ -3505,7 +3720,7 @@ public com.google.protobuf.ByteString getTaxCategoryBytes() { */ @java.lang.Override public boolean hasEnergyEfficiencyClass() { - return ((bitField1_ & 0x00002000) != 0); + return ((bitField1_ & 0x00004000) != 0); } /** @@ -3574,7 +3789,7 @@ public com.google.protobuf.ByteString getEnergyEfficiencyClassBytes() { */ @java.lang.Override public boolean hasMinEnergyEfficiencyClass() { - return ((bitField1_ & 0x00004000) != 0); + return ((bitField1_ & 0x00008000) != 0); } /** @@ -3643,7 +3858,7 @@ public com.google.protobuf.ByteString getMinEnergyEfficiencyClassBytes() { */ @java.lang.Override public boolean hasMaxEnergyEfficiencyClass() { - return ((bitField1_ & 0x00008000) != 0); + return ((bitField1_ & 0x00010000) != 0); } /** @@ -3711,7 +3926,7 @@ public com.google.protobuf.ByteString getMaxEnergyEfficiencyClassBytes() { */ @java.lang.Override public boolean hasUnitPricingMeasure() { - return ((bitField1_ & 0x00010000) != 0); + return ((bitField1_ & 0x00020000) != 0); } /** @@ -3770,7 +3985,7 @@ public com.google.shopping.merchant.products.v1beta.UnitPricingMeasure getUnitPr */ @java.lang.Override public boolean hasUnitPricingBaseMeasure() { - return ((bitField1_ & 0x00020000) != 0); + return ((bitField1_ & 0x00040000) != 0); } /** @@ -3820,7 +4035,7 @@ public boolean hasUnitPricingBaseMeasure() { * * *
      -   * The number of identical products in a merchant-defined multipack.
      +   * The number of identical products in a business-defined multipack.
          * 
      * * optional int64 multipack = 58; @@ -3829,14 +4044,14 @@ public boolean hasUnitPricingBaseMeasure() { */ @java.lang.Override public boolean hasMultipack() { - return ((bitField1_ & 0x00040000) != 0); + return ((bitField1_ & 0x00080000) != 0); } /** * * *
      -   * The number of identical products in a merchant-defined multipack.
      +   * The number of identical products in a business-defined multipack.
          * 
      * * optional int64 multipack = 58; @@ -3858,7 +4073,9 @@ public long getMultipack() { * *
          * Used to group items in an arbitrary way. Only for CPA%, discouraged
      -   * otherwise.
      +   * otherwise. For more information, see
      +   * [Display ads
      +   * attribute](https://support.google.com/merchants/answer/6069387).
          * 
      * * optional string ads_grouping = 59; @@ -3867,7 +4084,7 @@ public long getMultipack() { */ @java.lang.Override public boolean hasAdsGrouping() { - return ((bitField1_ & 0x00080000) != 0); + return ((bitField1_ & 0x00100000) != 0); } /** @@ -3875,7 +4092,9 @@ public boolean hasAdsGrouping() { * *
          * Used to group items in an arbitrary way. Only for CPA%, discouraged
      -   * otherwise.
      +   * otherwise. For more information, see
      +   * [Display ads
      +   * attribute](https://support.google.com/merchants/answer/6069387).
          * 
      * * optional string ads_grouping = 59; @@ -3900,7 +4119,9 @@ public java.lang.String getAdsGrouping() { * *
          * Used to group items in an arbitrary way. Only for CPA%, discouraged
      -   * otherwise.
      +   * otherwise. For more information, see
      +   * [Display ads
      +   * attribute](https://support.google.com/merchants/answer/6069387).
          * 
      * * optional string ads_grouping = 59; @@ -4007,7 +4228,7 @@ public com.google.protobuf.ByteString getAdsLabelsBytes(int index) { */ @java.lang.Override public boolean hasAdsRedirect() { - return ((bitField1_ & 0x00100000) != 0); + return ((bitField1_ & 0x00200000) != 0); } /** @@ -4076,7 +4297,7 @@ public com.google.protobuf.ByteString getAdsRedirectBytes() { */ @java.lang.Override public boolean hasCostOfGoodsSold() { - return ((bitField1_ & 0x00200000) != 0); + return ((bitField1_ & 0x00400000) != 0); } /** @@ -4208,7 +4429,8 @@ public com.google.shopping.merchant.products.v1beta.ProductDetail getProductDeta * * *
      -   * Bullet points describing the most relevant highlights of a product.
      +   * Bullet points describing the most relevant [product
      +   * highlights](https://support.google.com/merchants/answer/9216100).
          * 
      * * repeated string product_highlights = 64; @@ -4223,7 +4445,8 @@ public com.google.protobuf.ProtocolStringList getProductHighlightsList() { * * *
      -   * Bullet points describing the most relevant highlights of a product.
      +   * Bullet points describing the most relevant [product
      +   * highlights](https://support.google.com/merchants/answer/9216100).
          * 
      * * repeated string product_highlights = 64; @@ -4238,7 +4461,8 @@ public int getProductHighlightsCount() { * * *
      -   * Bullet points describing the most relevant highlights of a product.
      +   * Bullet points describing the most relevant [product
      +   * highlights](https://support.google.com/merchants/answer/9216100).
          * 
      * * repeated string product_highlights = 64; @@ -4254,7 +4478,8 @@ public java.lang.String getProductHighlights(int index) { * * *
      -   * Bullet points describing the most relevant highlights of a product.
      +   * Bullet points describing the most relevant [product
      +   * highlights](https://support.google.com/merchants/answer/9216100).
          * 
      * * repeated string product_highlights = 64; @@ -4284,7 +4509,7 @@ public com.google.protobuf.ByteString getProductHighlightsBytes(int index) { */ @java.lang.Override public boolean hasDisplayAdsId() { - return ((bitField1_ & 0x00400000) != 0); + return ((bitField1_ & 0x00800000) != 0); } /** @@ -4345,7 +4570,9 @@ public com.google.protobuf.ByteString getDisplayAdsIdBytes() { * * *
      -   * Advertiser-specified recommendations.
      +   * Advertiser-specified recommendations. For more information, see
      +   * [Display ads attribute
      +   * specification](https://support.google.com/merchants/answer/6069387).
          * 
      * * repeated string display_ads_similar_ids = 66; @@ -4360,7 +4587,9 @@ public com.google.protobuf.ProtocolStringList getDisplayAdsSimilarIdsList() { * * *
      -   * Advertiser-specified recommendations.
      +   * Advertiser-specified recommendations. For more information, see
      +   * [Display ads attribute
      +   * specification](https://support.google.com/merchants/answer/6069387).
          * 
      * * repeated string display_ads_similar_ids = 66; @@ -4375,7 +4604,9 @@ public int getDisplayAdsSimilarIdsCount() { * * *
      -   * Advertiser-specified recommendations.
      +   * Advertiser-specified recommendations. For more information, see
      +   * [Display ads attribute
      +   * specification](https://support.google.com/merchants/answer/6069387).
          * 
      * * repeated string display_ads_similar_ids = 66; @@ -4391,7 +4622,9 @@ public java.lang.String getDisplayAdsSimilarIds(int index) { * * *
      -   * Advertiser-specified recommendations.
      +   * Advertiser-specified recommendations. For more information, see
      +   * [Display ads attribute
      +   * specification](https://support.google.com/merchants/answer/6069387).
          * 
      * * repeated string display_ads_similar_ids = 66; @@ -4421,7 +4654,7 @@ public com.google.protobuf.ByteString getDisplayAdsSimilarIdsBytes(int index) { */ @java.lang.Override public boolean hasDisplayAdsTitle() { - return ((bitField1_ & 0x00800000) != 0); + return ((bitField1_ & 0x01000000) != 0); } /** @@ -4491,7 +4724,7 @@ public com.google.protobuf.ByteString getDisplayAdsTitleBytes() { */ @java.lang.Override public boolean hasDisplayAdsLink() { - return ((bitField1_ & 0x01000000) != 0); + return ((bitField1_ & 0x02000000) != 0); } /** @@ -4551,7 +4784,9 @@ public com.google.protobuf.ByteString getDisplayAdsLinkBytes() { * * *
      -   * Offer margin for dynamic remarketing campaigns.
      +   * Offer margin for dynamic remarketing campaigns. For more information, see
      +   * [Display ads
      +   * attribute](https://support.google.com/merchants/answer/6069387).
          * 
      * * optional double display_ads_value = 69; @@ -4560,14 +4795,16 @@ public com.google.protobuf.ByteString getDisplayAdsLinkBytes() { */ @java.lang.Override public boolean hasDisplayAdsValue() { - return ((bitField1_ & 0x02000000) != 0); + return ((bitField1_ & 0x04000000) != 0); } /** * * *
      -   * Offer margin for dynamic remarketing campaigns.
      +   * Offer margin for dynamic remarketing campaigns. For more information, see
      +   * [Display ads
      +   * attribute](https://support.google.com/merchants/answer/6069387).
          * 
      * * optional double display_ads_value = 69; @@ -4656,7 +4893,8 @@ public com.google.protobuf.ByteString getPromotionIdsBytes(int index) { * * *
      -   * The pick up option for the item.
      +   * The [pickup](https://support.google.com/merchants/answer/14634021) option
      +   * for the item.
          * 
      * * optional string pickup_method = 80; @@ -4665,14 +4903,15 @@ public com.google.protobuf.ByteString getPromotionIdsBytes(int index) { */ @java.lang.Override public boolean hasPickupMethod() { - return ((bitField1_ & 0x04000000) != 0); + return ((bitField1_ & 0x08000000) != 0); } /** * * *
      -   * The pick up option for the item.
      +   * The [pickup](https://support.google.com/merchants/answer/14634021) option
      +   * for the item.
          * 
      * * optional string pickup_method = 80; @@ -4696,7 +4935,8 @@ public java.lang.String getPickupMethod() { * * *
      -   * The pick up option for the item.
      +   * The [pickup](https://support.google.com/merchants/answer/14634021) option
      +   * for the item.
          * 
      * * optional string pickup_method = 80; @@ -4725,7 +4965,8 @@ public com.google.protobuf.ByteString getPickupMethodBytes() { * * *
      -   * Item store pickup timeline.
      +   * Item store pickup timeline. For more information, see
      +   * [Pickup SLA](https://support.google.com/merchants/answer/14635400).
          * 
      * * optional string pickup_sla = 81; @@ -4734,14 +4975,15 @@ public com.google.protobuf.ByteString getPickupMethodBytes() { */ @java.lang.Override public boolean hasPickupSla() { - return ((bitField1_ & 0x08000000) != 0); + return ((bitField1_ & 0x10000000) != 0); } /** * * *
      -   * Item store pickup timeline.
      +   * Item store pickup timeline. For more information, see
      +   * [Pickup SLA](https://support.google.com/merchants/answer/14635400).
          * 
      * * optional string pickup_sla = 81; @@ -4765,7 +5007,8 @@ public java.lang.String getPickupSla() { * * *
      -   * Item store pickup timeline.
      +   * Item store pickup timeline. For more information, see
      +   * [Pickup SLA](https://support.google.com/merchants/answer/14635400).
          * 
      * * optional string pickup_sla = 81; @@ -4794,7 +5037,8 @@ public com.google.protobuf.ByteString getPickupSlaBytes() { * * *
      -   * Link template for merchant hosted local storefront.
      +   * [Link template](https://support.google.com/merchants/answer/13871172) for
      +   * business hosted local storefront.
          * 
      * * optional string link_template = 82; @@ -4803,14 +5047,15 @@ public com.google.protobuf.ByteString getPickupSlaBytes() { */ @java.lang.Override public boolean hasLinkTemplate() { - return ((bitField1_ & 0x10000000) != 0); + return ((bitField1_ & 0x20000000) != 0); } /** * * *
      -   * Link template for merchant hosted local storefront.
      +   * [Link template](https://support.google.com/merchants/answer/13871172) for
      +   * business hosted local storefront.
          * 
      * * optional string link_template = 82; @@ -4834,7 +5079,8 @@ public java.lang.String getLinkTemplate() { * * *
      -   * Link template for merchant hosted local storefront.
      +   * [Link template](https://support.google.com/merchants/answer/13871172) for
      +   * business hosted local storefront.
          * 
      * * optional string link_template = 82; @@ -4863,7 +5109,8 @@ public com.google.protobuf.ByteString getLinkTemplateBytes() { * * *
      -   * Link template for merchant hosted local storefront optimized for mobile
      +   * [Link template](https://support.google.com/merchants/answer/13870216) for
      +   * business hosted local storefront optimized for mobile
          * devices.
          * 
      * @@ -4873,14 +5120,15 @@ public com.google.protobuf.ByteString getLinkTemplateBytes() { */ @java.lang.Override public boolean hasMobileLinkTemplate() { - return ((bitField1_ & 0x20000000) != 0); + return ((bitField1_ & 0x40000000) != 0); } /** * * *
      -   * Link template for merchant hosted local storefront optimized for mobile
      +   * [Link template](https://support.google.com/merchants/answer/13870216) for
      +   * business hosted local storefront optimized for mobile
          * devices.
          * 
      * @@ -4905,7 +5153,8 @@ public java.lang.String getMobileLinkTemplate() { * * *
      -   * Link template for merchant hosted local storefront optimized for mobile
      +   * [Link template](https://support.google.com/merchants/answer/13870216) for
      +   * business hosted local storefront optimized for mobile
          * devices.
          * 
      * @@ -4935,7 +5184,8 @@ public com.google.protobuf.ByteString getMobileLinkTemplateBytes() { * * *
      -   * Custom label 0 for custom grouping of items in a Shopping campaign.
      +   * [Custom label 0](https://support.google.com/merchants/answer/6324473) for
      +   * custom grouping of items in a Shopping campaign.
          * 
      * * optional string custom_label_0 = 71; @@ -4944,14 +5194,15 @@ public com.google.protobuf.ByteString getMobileLinkTemplateBytes() { */ @java.lang.Override public boolean hasCustomLabel0() { - return ((bitField1_ & 0x40000000) != 0); + return ((bitField1_ & 0x80000000) != 0); } /** * * *
      -   * Custom label 0 for custom grouping of items in a Shopping campaign.
      +   * [Custom label 0](https://support.google.com/merchants/answer/6324473) for
      +   * custom grouping of items in a Shopping campaign.
          * 
      * * optional string custom_label_0 = 71; @@ -4975,7 +5226,8 @@ public java.lang.String getCustomLabel0() { * * *
      -   * Custom label 0 for custom grouping of items in a Shopping campaign.
      +   * [Custom label 0](https://support.google.com/merchants/answer/6324473) for
      +   * custom grouping of items in a Shopping campaign.
          * 
      * * optional string custom_label_0 = 71; @@ -5004,7 +5256,8 @@ public com.google.protobuf.ByteString getCustomLabel0Bytes() { * * *
      -   * Custom label 1 for custom grouping of items in a Shopping campaign.
      +   * [Custom label 1](https://support.google.com/merchants/answer/6324473)
      +   * for custom grouping of items in a Shopping campaign.
          * 
      * * optional string custom_label_1 = 72; @@ -5013,14 +5266,15 @@ public com.google.protobuf.ByteString getCustomLabel0Bytes() { */ @java.lang.Override public boolean hasCustomLabel1() { - return ((bitField1_ & 0x80000000) != 0); + return ((bitField2_ & 0x00000001) != 0); } /** * * *
      -   * Custom label 1 for custom grouping of items in a Shopping campaign.
      +   * [Custom label 1](https://support.google.com/merchants/answer/6324473)
      +   * for custom grouping of items in a Shopping campaign.
          * 
      * * optional string custom_label_1 = 72; @@ -5044,7 +5298,8 @@ public java.lang.String getCustomLabel1() { * * *
      -   * Custom label 1 for custom grouping of items in a Shopping campaign.
      +   * [Custom label 1](https://support.google.com/merchants/answer/6324473)
      +   * for custom grouping of items in a Shopping campaign.
          * 
      * * optional string custom_label_1 = 72; @@ -5073,7 +5328,8 @@ public com.google.protobuf.ByteString getCustomLabel1Bytes() { * * *
      -   * Custom label 2 for custom grouping of items in a Shopping campaign.
      +   * [Custom label 2](https://support.google.com/merchants/answer/6324473)
      +   * for custom grouping of items in a Shopping campaign.
          * 
      * * optional string custom_label_2 = 73; @@ -5082,14 +5338,15 @@ public com.google.protobuf.ByteString getCustomLabel1Bytes() { */ @java.lang.Override public boolean hasCustomLabel2() { - return ((bitField2_ & 0x00000001) != 0); + return ((bitField2_ & 0x00000002) != 0); } /** * * *
      -   * Custom label 2 for custom grouping of items in a Shopping campaign.
      +   * [Custom label 2](https://support.google.com/merchants/answer/6324473)
      +   * for custom grouping of items in a Shopping campaign.
          * 
      * * optional string custom_label_2 = 73; @@ -5113,7 +5370,8 @@ public java.lang.String getCustomLabel2() { * * *
      -   * Custom label 2 for custom grouping of items in a Shopping campaign.
      +   * [Custom label 2](https://support.google.com/merchants/answer/6324473)
      +   * for custom grouping of items in a Shopping campaign.
          * 
      * * optional string custom_label_2 = 73; @@ -5142,7 +5400,8 @@ public com.google.protobuf.ByteString getCustomLabel2Bytes() { * * *
      -   * Custom label 3 for custom grouping of items in a Shopping campaign.
      +   * [Custom label 3](https://support.google.com/merchants/answer/6324473)
      +   * for custom grouping of items in a Shopping campaign.
          * 
      * * optional string custom_label_3 = 74; @@ -5151,14 +5410,15 @@ public com.google.protobuf.ByteString getCustomLabel2Bytes() { */ @java.lang.Override public boolean hasCustomLabel3() { - return ((bitField2_ & 0x00000002) != 0); + return ((bitField2_ & 0x00000004) != 0); } /** * * *
      -   * Custom label 3 for custom grouping of items in a Shopping campaign.
      +   * [Custom label 3](https://support.google.com/merchants/answer/6324473)
      +   * for custom grouping of items in a Shopping campaign.
          * 
      * * optional string custom_label_3 = 74; @@ -5182,7 +5442,8 @@ public java.lang.String getCustomLabel3() { * * *
      -   * Custom label 3 for custom grouping of items in a Shopping campaign.
      +   * [Custom label 3](https://support.google.com/merchants/answer/6324473)
      +   * for custom grouping of items in a Shopping campaign.
          * 
      * * optional string custom_label_3 = 74; @@ -5211,7 +5472,8 @@ public com.google.protobuf.ByteString getCustomLabel3Bytes() { * * *
      -   * Custom label 4 for custom grouping of items in a Shopping campaign.
      +   * [Custom label 4](https://support.google.com/merchants/answer/6324473) for
      +   * custom grouping of items in a Shopping campaign.
          * 
      * * optional string custom_label_4 = 75; @@ -5220,14 +5482,15 @@ public com.google.protobuf.ByteString getCustomLabel3Bytes() { */ @java.lang.Override public boolean hasCustomLabel4() { - return ((bitField2_ & 0x00000004) != 0); + return ((bitField2_ & 0x00000008) != 0); } /** * * *
      -   * Custom label 4 for custom grouping of items in a Shopping campaign.
      +   * [Custom label 4](https://support.google.com/merchants/answer/6324473) for
      +   * custom grouping of items in a Shopping campaign.
          * 
      * * optional string custom_label_4 = 75; @@ -5251,7 +5514,8 @@ public java.lang.String getCustomLabel4() { * * *
      -   * Custom label 4 for custom grouping of items in a Shopping campaign.
      +   * [Custom label 4](https://support.google.com/merchants/answer/6324473) for
      +   * custom grouping of items in a Shopping campaign.
          * 
      * * optional string custom_label_4 = 75; @@ -5284,6 +5548,13 @@ public com.google.protobuf.ByteString getCustomLabel4Bytes() { * The list of destinations to include for this target (corresponds to * checked check boxes in Merchant Center). Default destinations are always * included unless provided in `excludedDestinations`. + * + * For more information, see + * [Included + * destination](https://support.google.com/merchants/answer/7501026). + * + * Note: We recommend setting destinations on datasources level for most use + * cases. Use this field within products to only setup exceptions. * * * repeated string included_destinations = 76; @@ -5301,6 +5572,13 @@ public com.google.protobuf.ProtocolStringList getIncludedDestinationsList() { * The list of destinations to include for this target (corresponds to * checked check boxes in Merchant Center). Default destinations are always * included unless provided in `excludedDestinations`. + * + * For more information, see + * [Included + * destination](https://support.google.com/merchants/answer/7501026). + * + * Note: We recommend setting destinations on datasources level for most use + * cases. Use this field within products to only setup exceptions. * * * repeated string included_destinations = 76; @@ -5318,6 +5596,13 @@ public int getIncludedDestinationsCount() { * The list of destinations to include for this target (corresponds to * checked check boxes in Merchant Center). Default destinations are always * included unless provided in `excludedDestinations`. + * + * For more information, see + * [Included + * destination](https://support.google.com/merchants/answer/7501026). + * + * Note: We recommend setting destinations on datasources level for most use + * cases. Use this field within products to only setup exceptions. * * * repeated string included_destinations = 76; @@ -5336,6 +5621,13 @@ public java.lang.String getIncludedDestinations(int index) { * The list of destinations to include for this target (corresponds to * checked check boxes in Merchant Center). Default destinations are always * included unless provided in `excludedDestinations`. + * + * For more information, see + * [Included + * destination](https://support.google.com/merchants/answer/7501026). + * + * Note: We recommend setting destinations on datasources level for most use + * cases. Use this field within products to only setup exceptions. * * * repeated string included_destinations = 76; @@ -5359,6 +5651,13 @@ public com.google.protobuf.ByteString getIncludedDestinationsBytes(int index) { *
          * The list of destinations to exclude for this target (corresponds to
          * unchecked check boxes in Merchant Center).
      +   *
      +   * For more information, see
      +   * [Excluded
      +   * destination](https://support.google.com/merchants/answer/6324486).
      +   *
      +   * Note: We recommend setting destinations on datasources level for most use
      +   * cases. Use this field within products to only setup exceptions.
          * 
      * * repeated string excluded_destinations = 77; @@ -5375,6 +5674,13 @@ public com.google.protobuf.ProtocolStringList getExcludedDestinationsList() { *
          * The list of destinations to exclude for this target (corresponds to
          * unchecked check boxes in Merchant Center).
      +   *
      +   * For more information, see
      +   * [Excluded
      +   * destination](https://support.google.com/merchants/answer/6324486).
      +   *
      +   * Note: We recommend setting destinations on datasources level for most use
      +   * cases. Use this field within products to only setup exceptions.
          * 
      * * repeated string excluded_destinations = 77; @@ -5391,6 +5697,13 @@ public int getExcludedDestinationsCount() { *
          * The list of destinations to exclude for this target (corresponds to
          * unchecked check boxes in Merchant Center).
      +   *
      +   * For more information, see
      +   * [Excluded
      +   * destination](https://support.google.com/merchants/answer/6324486).
      +   *
      +   * Note: We recommend setting destinations on datasources level for most use
      +   * cases. Use this field within products to only setup exceptions.
          * 
      * * repeated string excluded_destinations = 77; @@ -5408,6 +5721,13 @@ public java.lang.String getExcludedDestinations(int index) { *
          * The list of destinations to exclude for this target (corresponds to
          * unchecked check boxes in Merchant Center).
      +   *
      +   * For more information, see
      +   * [Excluded
      +   * destination](https://support.google.com/merchants/answer/6324486).
      +   *
      +   * Note: We recommend setting destinations on datasources level for most use
      +   * cases. Use this field within products to only setup exceptions.
          * 
      * * repeated string excluded_destinations = 77; @@ -5429,10 +5749,10 @@ public com.google.protobuf.ByteString getExcludedDestinationsBytes(int index) { * * *
      -   * List of country codes (ISO 3166-1 alpha-2) to exclude the offer from
      -   * Shopping Ads destination.
      -   * Countries from this list are removed from countries configured
      -   * in data source settings.
      +   * List of country codes [(ISO 3166-1
      +   * alpha-2)](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) to exclude the
      +   * offer from Shopping Ads destination. Countries from this list are removed
      +   * from countries configured in data source settings.
          * 
      * * repeated string shopping_ads_excluded_countries = 78; @@ -5447,10 +5767,10 @@ public com.google.protobuf.ProtocolStringList getShoppingAdsExcludedCountriesLis * * *
      -   * List of country codes (ISO 3166-1 alpha-2) to exclude the offer from
      -   * Shopping Ads destination.
      -   * Countries from this list are removed from countries configured
      -   * in data source settings.
      +   * List of country codes [(ISO 3166-1
      +   * alpha-2)](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) to exclude the
      +   * offer from Shopping Ads destination. Countries from this list are removed
      +   * from countries configured in data source settings.
          * 
      * * repeated string shopping_ads_excluded_countries = 78; @@ -5465,10 +5785,10 @@ public int getShoppingAdsExcludedCountriesCount() { * * *
      -   * List of country codes (ISO 3166-1 alpha-2) to exclude the offer from
      -   * Shopping Ads destination.
      -   * Countries from this list are removed from countries configured
      -   * in data source settings.
      +   * List of country codes [(ISO 3166-1
      +   * alpha-2)](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) to exclude the
      +   * offer from Shopping Ads destination. Countries from this list are removed
      +   * from countries configured in data source settings.
          * 
      * * repeated string shopping_ads_excluded_countries = 78; @@ -5484,10 +5804,10 @@ public java.lang.String getShoppingAdsExcludedCountries(int index) { * * *
      -   * List of country codes (ISO 3166-1 alpha-2) to exclude the offer from
      -   * Shopping Ads destination.
      -   * Countries from this list are removed from countries configured
      -   * in data source settings.
      +   * List of country codes [(ISO 3166-1
      +   * alpha-2)](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) to exclude the
      +   * offer from Shopping Ads destination. Countries from this list are removed
      +   * from countries configured in data source settings.
          * 
      * * repeated string shopping_ads_excluded_countries = 78; @@ -5519,7 +5839,7 @@ public com.google.protobuf.ByteString getShoppingAdsExcludedCountriesBytes(int i */ @java.lang.Override public boolean hasExternalSellerId() { - return ((bitField2_ & 0x00000008) != 0); + return ((bitField2_ & 0x00000010) != 0); } /** @@ -5593,7 +5913,7 @@ public com.google.protobuf.ByteString getExternalSellerIdBytes() { */ @java.lang.Override public boolean hasPause() { - return ((bitField2_ & 0x00000010) != 0); + return ((bitField2_ & 0x00000020) != 0); } /** @@ -5840,7 +6160,7 @@ public int getCloudExportAdditionalPropertiesCount() { */ @java.lang.Override public boolean hasVirtualModelLink() { - return ((bitField2_ & 0x00000020) != 0); + return ((bitField2_ & 0x00000040) != 0); } /** @@ -6018,7 +6338,7 @@ public com.google.shopping.merchant.products.v1beta.Certification getCertificati */ @java.lang.Override public boolean hasStructuredTitle() { - return ((bitField2_ & 0x00000040) != 0); + return ((bitField2_ & 0x00000080) != 0); } /** @@ -6079,7 +6399,7 @@ public com.google.shopping.merchant.products.v1beta.ProductStructuredTitle getSt */ @java.lang.Override public boolean hasStructuredDescription() { - return ((bitField2_ & 0x00000080) != 0); + return ((bitField2_ & 0x00000100) != 0); } /** @@ -6131,11 +6451,11 @@ public boolean hasStructuredDescription() { * * *
      -   * A safeguard in the "Automated Discounts"
      +   * A safeguard in the [automated discounts]
          * (https://support.google.com/merchants/answer/10295759) and
          * "Dynamic Promotions"
          * (https://support.google.com/merchants/answer/13949249) projects,
      -   * ensuring that discounts on merchants' offers do not fall below this value,
      +   * ensuring that discounts on business offers do not fall below this value,
          * thereby preserving the offer's value and profitability.
          * 
      * @@ -6145,18 +6465,18 @@ public boolean hasStructuredDescription() { */ @java.lang.Override public boolean hasAutoPricingMinPrice() { - return ((bitField2_ & 0x00000100) != 0); + return ((bitField2_ & 0x00000200) != 0); } /** * * *
      -   * A safeguard in the "Automated Discounts"
      +   * A safeguard in the [automated discounts]
          * (https://support.google.com/merchants/answer/10295759) and
          * "Dynamic Promotions"
          * (https://support.google.com/merchants/answer/13949249) projects,
      -   * ensuring that discounts on merchants' offers do not fall below this value,
      +   * ensuring that discounts on business offers do not fall below this value,
          * thereby preserving the offer's value and profitability.
          * 
      * @@ -6175,11 +6495,11 @@ public com.google.shopping.type.Price getAutoPricingMinPrice() { * * *
      -   * A safeguard in the "Automated Discounts"
      +   * A safeguard in the [automated discounts]
          * (https://support.google.com/merchants/answer/10295759) and
          * "Dynamic Promotions"
          * (https://support.google.com/merchants/answer/13949249) projects,
      -   * ensuring that discounts on merchants' offers do not fall below this value,
      +   * ensuring that discounts on business offers do not fall below this value,
          * thereby preserving the offer's value and profitability.
          * 
      * @@ -6299,7 +6619,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField2_ & 0x00000008) != 0)) { + if (((bitField2_ & 0x00000010) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, externalSellerId_); } if (((bitField0_ & 0x00000001) != 0)) { @@ -6330,7 +6650,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString( output, 12, additionalImageLinks_.getRaw(i)); } - if (((bitField2_ & 0x00000010) != 0)) { + if (((bitField2_ & 0x00000020) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, pause_); } for (int i = 0; i < lifestyleImageLinks_.size(); i++) { @@ -6385,58 +6705,58 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00800000) != 0)) { output.writeMessage(31, getPrice()); } - if (((bitField0_ & 0x01000000) != 0)) { + if (((bitField0_ & 0x02000000) != 0)) { output.writeMessage(32, getInstallment()); } - if (((bitField0_ & 0x02000000) != 0)) { + if (((bitField0_ & 0x04000000) != 0)) { output.writeMessage(33, getSubscriptionCost()); } - if (((bitField0_ & 0x04000000) != 0)) { + if (((bitField0_ & 0x08000000) != 0)) { output.writeMessage(34, getLoyaltyPoints()); } for (int i = 0; i < productTypes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 35, productTypes_.getRaw(i)); } - if (((bitField0_ & 0x08000000) != 0)) { + if (((bitField0_ & 0x10000000) != 0)) { output.writeMessage(36, getSalePrice()); } - if (((bitField0_ & 0x10000000) != 0)) { + if (((bitField0_ & 0x20000000) != 0)) { output.writeMessage(37, getSalePriceEffectiveDate()); } - if (((bitField0_ & 0x20000000) != 0)) { + if (((bitField0_ & 0x40000000) != 0)) { output.writeInt64(38, sellOnGoogleQuantity_); } for (int i = 0; i < shipping_.size(); i++) { output.writeMessage(39, shipping_.get(i)); } - if (((bitField1_ & 0x00000004) != 0)) { + if (((bitField1_ & 0x00000008) != 0)) { output.writeMessage(40, getShippingWeight()); } - if (((bitField1_ & 0x00000008) != 0)) { + if (((bitField1_ & 0x00000010) != 0)) { output.writeMessage(41, getShippingLength()); } - if (((bitField1_ & 0x00000010) != 0)) { + if (((bitField1_ & 0x00000020) != 0)) { output.writeMessage(42, getShippingWidth()); } - if (((bitField1_ & 0x00000020) != 0)) { + if (((bitField1_ & 0x00000040) != 0)) { output.writeMessage(43, getShippingHeight()); } - if (((bitField1_ & 0x00000040) != 0)) { + if (((bitField1_ & 0x00000080) != 0)) { output.writeInt64(44, maxHandlingTime_); } - if (((bitField1_ & 0x00000080) != 0)) { + if (((bitField1_ & 0x00000100) != 0)) { output.writeInt64(45, minHandlingTime_); } - if (((bitField1_ & 0x00000100) != 0)) { + if (((bitField1_ & 0x00000200) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 46, shippingLabel_); } - if (((bitField1_ & 0x00000200) != 0)) { + if (((bitField1_ & 0x00000400) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 47, transitTimeLabel_); } - if (((bitField1_ & 0x00000400) != 0)) { + if (((bitField1_ & 0x00000800) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 48, size_); } - if (((bitField1_ & 0x00000800) != 0)) { + if (((bitField1_ & 0x00001000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 49, sizeSystem_); } for (int i = 0; i < sizeTypes_.size(); i++) { @@ -6445,37 +6765,37 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < taxes_.size(); i++) { output.writeMessage(51, taxes_.get(i)); } - if (((bitField1_ & 0x00001000) != 0)) { + if (((bitField1_ & 0x00002000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 52, taxCategory_); } - if (((bitField1_ & 0x00002000) != 0)) { + if (((bitField1_ & 0x00004000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 53, energyEfficiencyClass_); } - if (((bitField1_ & 0x00004000) != 0)) { + if (((bitField1_ & 0x00008000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 54, minEnergyEfficiencyClass_); } - if (((bitField1_ & 0x00008000) != 0)) { + if (((bitField1_ & 0x00010000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 55, maxEnergyEfficiencyClass_); } - if (((bitField1_ & 0x00010000) != 0)) { + if (((bitField1_ & 0x00020000) != 0)) { output.writeMessage(56, getUnitPricingMeasure()); } - if (((bitField1_ & 0x00020000) != 0)) { + if (((bitField1_ & 0x00040000) != 0)) { output.writeMessage(57, getUnitPricingBaseMeasure()); } - if (((bitField1_ & 0x00040000) != 0)) { + if (((bitField1_ & 0x00080000) != 0)) { output.writeInt64(58, multipack_); } - if (((bitField1_ & 0x00080000) != 0)) { + if (((bitField1_ & 0x00100000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 59, adsGrouping_); } for (int i = 0; i < adsLabels_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 60, adsLabels_.getRaw(i)); } - if (((bitField1_ & 0x00100000) != 0)) { + if (((bitField1_ & 0x00200000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 61, adsRedirect_); } - if (((bitField1_ & 0x00200000) != 0)) { + if (((bitField1_ & 0x00400000) != 0)) { output.writeMessage(62, getCostOfGoodsSold()); } for (int i = 0; i < productDetails_.size(); i++) { @@ -6484,38 +6804,38 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < productHighlights_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 64, productHighlights_.getRaw(i)); } - if (((bitField1_ & 0x00400000) != 0)) { + if (((bitField1_ & 0x00800000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 65, displayAdsId_); } for (int i = 0; i < displayAdsSimilarIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString( output, 66, displayAdsSimilarIds_.getRaw(i)); } - if (((bitField1_ & 0x00800000) != 0)) { + if (((bitField1_ & 0x01000000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 67, displayAdsTitle_); } - if (((bitField1_ & 0x01000000) != 0)) { + if (((bitField1_ & 0x02000000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 68, displayAdsLink_); } - if (((bitField1_ & 0x02000000) != 0)) { + if (((bitField1_ & 0x04000000) != 0)) { output.writeDouble(69, displayAdsValue_); } for (int i = 0; i < promotionIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 70, promotionIds_.getRaw(i)); } - if (((bitField1_ & 0x40000000) != 0)) { + if (((bitField1_ & 0x80000000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 71, customLabel0_); } - if (((bitField1_ & 0x80000000) != 0)) { + if (((bitField2_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 72, customLabel1_); } - if (((bitField2_ & 0x00000001) != 0)) { + if (((bitField2_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 73, customLabel2_); } - if (((bitField2_ & 0x00000002) != 0)) { + if (((bitField2_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 74, customLabel3_); } - if (((bitField2_ & 0x00000004) != 0)) { + if (((bitField2_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 75, customLabel4_); } for (int i = 0; i < includedDestinations_.size(); i++) { @@ -6533,46 +6853,46 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000200) != 0)) { output.writeMessage(79, getDisclosureDate()); } - if (((bitField1_ & 0x04000000) != 0)) { + if (((bitField1_ & 0x08000000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 80, pickupMethod_); } - if (((bitField1_ & 0x08000000) != 0)) { + if (((bitField1_ & 0x10000000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 81, pickupSla_); } - if (((bitField1_ & 0x10000000) != 0)) { + if (((bitField1_ & 0x20000000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 82, linkTemplate_); } - if (((bitField1_ & 0x20000000) != 0)) { + if (((bitField1_ & 0x40000000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 83, mobileLinkTemplate_); } for (int i = 0; i < cloudExportAdditionalProperties_.size(); i++) { output.writeMessage(84, cloudExportAdditionalProperties_.get(i)); } - if (((bitField0_ & 0x40000000) != 0)) { + if (((bitField0_ & 0x80000000) != 0)) { output.writeMessage(119, getProductHeight()); } - if (((bitField0_ & 0x80000000) != 0)) { + if (((bitField1_ & 0x00000001) != 0)) { output.writeMessage(120, getProductLength()); } - if (((bitField1_ & 0x00000001) != 0)) { + if (((bitField1_ & 0x00000002) != 0)) { output.writeMessage(121, getProductWidth()); } - if (((bitField1_ & 0x00000002) != 0)) { + if (((bitField1_ & 0x00000004) != 0)) { output.writeMessage(122, getProductWeight()); } for (int i = 0; i < certifications_.size(); i++) { output.writeMessage(123, certifications_.get(i)); } - if (((bitField2_ & 0x00000100) != 0)) { + if (((bitField2_ & 0x00000200) != 0)) { output.writeMessage(124, getAutoPricingMinPrice()); } - if (((bitField2_ & 0x00000020) != 0)) { + if (((bitField2_ & 0x00000040) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 130, virtualModelLink_); } - if (((bitField2_ & 0x00000040) != 0)) { + if (((bitField2_ & 0x00000080) != 0)) { output.writeMessage(132, getStructuredTitle()); } - if (((bitField2_ & 0x00000080) != 0)) { + if (((bitField2_ & 0x00000100) != 0)) { output.writeMessage(133, getStructuredDescription()); } for (int i = 0; i < freeShippingThreshold_.size(); i++) { @@ -6584,6 +6904,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < sustainabilityIncentives_.size(); i++) { output.writeMessage(138, sustainabilityIncentives_.get(i)); } + if (((bitField0_ & 0x01000000) != 0)) { + output.writeMessage(139, getMaximumRetailPrice()); + } + for (int i = 0; i < gtins_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 140, gtins_.getRaw(i)); + } getUnknownFields().writeTo(output); } @@ -6593,7 +6919,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (((bitField2_ & 0x00000008) != 0)) { + if (((bitField2_ & 0x00000010) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, externalSellerId_); } if (((bitField0_ & 0x00000001) != 0)) { @@ -6628,7 +6954,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getAdditionalImageLinksList().size(); } - if (((bitField2_ & 0x00000010) != 0)) { + if (((bitField2_ & 0x00000020) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, pause_); } { @@ -6692,13 +7018,13 @@ public int getSerializedSize() { if (((bitField0_ & 0x00800000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(31, getPrice()); } - if (((bitField0_ & 0x01000000) != 0)) { + if (((bitField0_ & 0x02000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(32, getInstallment()); } - if (((bitField0_ & 0x02000000) != 0)) { + if (((bitField0_ & 0x04000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(33, getSubscriptionCost()); } - if (((bitField0_ & 0x04000000) != 0)) { + if (((bitField0_ & 0x08000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(34, getLoyaltyPoints()); } { @@ -6709,47 +7035,47 @@ public int getSerializedSize() { size += dataSize; size += 2 * getProductTypesList().size(); } - if (((bitField0_ & 0x08000000) != 0)) { + if (((bitField0_ & 0x10000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(36, getSalePrice()); } - if (((bitField0_ & 0x10000000) != 0)) { + if (((bitField0_ & 0x20000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(37, getSalePriceEffectiveDate()); } - if (((bitField0_ & 0x20000000) != 0)) { + if (((bitField0_ & 0x40000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(38, sellOnGoogleQuantity_); } for (int i = 0; i < shipping_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(39, shipping_.get(i)); } - if (((bitField1_ & 0x00000004) != 0)) { + if (((bitField1_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(40, getShippingWeight()); } - if (((bitField1_ & 0x00000008) != 0)) { + if (((bitField1_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(41, getShippingLength()); } - if (((bitField1_ & 0x00000010) != 0)) { + if (((bitField1_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(42, getShippingWidth()); } - if (((bitField1_ & 0x00000020) != 0)) { + if (((bitField1_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(43, getShippingHeight()); } - if (((bitField1_ & 0x00000040) != 0)) { + if (((bitField1_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(44, maxHandlingTime_); } - if (((bitField1_ & 0x00000080) != 0)) { + if (((bitField1_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(45, minHandlingTime_); } - if (((bitField1_ & 0x00000100) != 0)) { + if (((bitField1_ & 0x00000200) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(46, shippingLabel_); } - if (((bitField1_ & 0x00000200) != 0)) { + if (((bitField1_ & 0x00000400) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(47, transitTimeLabel_); } - if (((bitField1_ & 0x00000400) != 0)) { + if (((bitField1_ & 0x00000800) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(48, size_); } - if (((bitField1_ & 0x00000800) != 0)) { + if (((bitField1_ & 0x00001000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(49, sizeSystem_); } { @@ -6763,31 +7089,31 @@ public int getSerializedSize() { for (int i = 0; i < taxes_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(51, taxes_.get(i)); } - if (((bitField1_ & 0x00001000) != 0)) { + if (((bitField1_ & 0x00002000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(52, taxCategory_); } - if (((bitField1_ & 0x00002000) != 0)) { + if (((bitField1_ & 0x00004000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(53, energyEfficiencyClass_); } - if (((bitField1_ & 0x00004000) != 0)) { + if (((bitField1_ & 0x00008000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(54, minEnergyEfficiencyClass_); } - if (((bitField1_ & 0x00008000) != 0)) { + if (((bitField1_ & 0x00010000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(55, maxEnergyEfficiencyClass_); } - if (((bitField1_ & 0x00010000) != 0)) { + if (((bitField1_ & 0x00020000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(56, getUnitPricingMeasure()); } - if (((bitField1_ & 0x00020000) != 0)) { + if (((bitField1_ & 0x00040000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(57, getUnitPricingBaseMeasure()); } - if (((bitField1_ & 0x00040000) != 0)) { + if (((bitField1_ & 0x00080000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(58, multipack_); } - if (((bitField1_ & 0x00080000) != 0)) { + if (((bitField1_ & 0x00100000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(59, adsGrouping_); } { @@ -6798,10 +7124,10 @@ public int getSerializedSize() { size += dataSize; size += 2 * getAdsLabelsList().size(); } - if (((bitField1_ & 0x00100000) != 0)) { + if (((bitField1_ & 0x00200000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(61, adsRedirect_); } - if (((bitField1_ & 0x00200000) != 0)) { + if (((bitField1_ & 0x00400000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(62, getCostOfGoodsSold()); } for (int i = 0; i < productDetails_.size(); i++) { @@ -6815,7 +7141,7 @@ public int getSerializedSize() { size += dataSize; size += 2 * getProductHighlightsList().size(); } - if (((bitField1_ & 0x00400000) != 0)) { + if (((bitField1_ & 0x00800000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(65, displayAdsId_); } { @@ -6826,13 +7152,13 @@ public int getSerializedSize() { size += dataSize; size += 2 * getDisplayAdsSimilarIdsList().size(); } - if (((bitField1_ & 0x00800000) != 0)) { + if (((bitField1_ & 0x01000000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(67, displayAdsTitle_); } - if (((bitField1_ & 0x01000000) != 0)) { + if (((bitField1_ & 0x02000000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(68, displayAdsLink_); } - if (((bitField1_ & 0x02000000) != 0)) { + if (((bitField1_ & 0x04000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(69, displayAdsValue_); } { @@ -6843,19 +7169,19 @@ public int getSerializedSize() { size += dataSize; size += 2 * getPromotionIdsList().size(); } - if (((bitField1_ & 0x40000000) != 0)) { + if (((bitField1_ & 0x80000000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(71, customLabel0_); } - if (((bitField1_ & 0x80000000) != 0)) { + if (((bitField2_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(72, customLabel1_); } - if (((bitField2_ & 0x00000001) != 0)) { + if (((bitField2_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(73, customLabel2_); } - if (((bitField2_ & 0x00000002) != 0)) { + if (((bitField2_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(74, customLabel3_); } - if (((bitField2_ & 0x00000004) != 0)) { + if (((bitField2_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(75, customLabel4_); } { @@ -6885,16 +7211,16 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(79, getDisclosureDate()); } - if (((bitField1_ & 0x04000000) != 0)) { + if (((bitField1_ & 0x08000000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(80, pickupMethod_); } - if (((bitField1_ & 0x08000000) != 0)) { + if (((bitField1_ & 0x10000000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(81, pickupSla_); } - if (((bitField1_ & 0x10000000) != 0)) { + if (((bitField1_ & 0x20000000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(82, linkTemplate_); } - if (((bitField1_ & 0x20000000) != 0)) { + if (((bitField1_ & 0x40000000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(83, mobileLinkTemplate_); } for (int i = 0; i < cloudExportAdditionalProperties_.size(); i++) { @@ -6902,32 +7228,32 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 84, cloudExportAdditionalProperties_.get(i)); } - if (((bitField0_ & 0x40000000) != 0)) { + if (((bitField0_ & 0x80000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(119, getProductHeight()); } - if (((bitField0_ & 0x80000000) != 0)) { + if (((bitField1_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(120, getProductLength()); } - if (((bitField1_ & 0x00000001) != 0)) { + if (((bitField1_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(121, getProductWidth()); } - if (((bitField1_ & 0x00000002) != 0)) { + if (((bitField1_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(122, getProductWeight()); } for (int i = 0; i < certifications_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(123, certifications_.get(i)); } - if (((bitField2_ & 0x00000100) != 0)) { + if (((bitField2_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(124, getAutoPricingMinPrice()); } - if (((bitField2_ & 0x00000020) != 0)) { + if (((bitField2_ & 0x00000040) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(130, virtualModelLink_); } - if (((bitField2_ & 0x00000040) != 0)) { + if (((bitField2_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(132, getStructuredTitle()); } - if (((bitField2_ & 0x00000080) != 0)) { + if (((bitField2_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(133, getStructuredDescription()); } @@ -6945,6 +7271,18 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 138, sustainabilityIncentives_.get(i)); } + if (((bitField0_ & 0x01000000) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(139, getMaximumRetailPrice()); + } + { + int dataSize = 0; + for (int i = 0; i < gtins_.size(); i++) { + dataSize += computeStringSizeNoTag(gtins_.getRaw(i)); + } + size += dataSize; + size += 2 * getGtinsList().size(); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -7039,6 +7377,7 @@ public boolean equals(final java.lang.Object obj) { if (!getGoogleProductCategory().equals(other.getGoogleProductCategory())) return false; } if (!getGtinList().equals(other.getGtinList())) return false; + if (!getGtinsList().equals(other.getGtinsList())) return false; if (hasItemGroupId() != other.hasItemGroupId()) return false; if (hasItemGroupId()) { if (!getItemGroupId().equals(other.getItemGroupId())) return false; @@ -7059,6 +7398,10 @@ public boolean equals(final java.lang.Object obj) { if (hasPrice()) { if (!getPrice().equals(other.getPrice())) return false; } + if (hasMaximumRetailPrice() != other.hasMaximumRetailPrice()) return false; + if (hasMaximumRetailPrice()) { + if (!getMaximumRetailPrice().equals(other.getMaximumRetailPrice())) return false; + } if (hasInstallment() != other.hasInstallment()) return false; if (hasInstallment()) { if (!getInstallment().equals(other.getInstallment())) return false; @@ -7372,6 +7715,10 @@ public int hashCode() { hash = (37 * hash) + GTIN_FIELD_NUMBER; hash = (53 * hash) + getGtinList().hashCode(); } + if (getGtinsCount() > 0) { + hash = (37 * hash) + GTINS_FIELD_NUMBER; + hash = (53 * hash) + getGtinsList().hashCode(); + } if (hasItemGroupId()) { hash = (37 * hash) + ITEM_GROUP_ID_FIELD_NUMBER; hash = (53 * hash) + getItemGroupId().hashCode(); @@ -7392,6 +7739,10 @@ public int hashCode() { hash = (37 * hash) + PRICE_FIELD_NUMBER; hash = (53 * hash) + getPrice().hashCode(); } + if (hasMaximumRetailPrice()) { + hash = (37 * hash) + MAXIMUM_RETAIL_PRICE_FIELD_NUMBER; + hash = (53 * hash) + getMaximumRetailPrice().hashCode(); + } if (hasInstallment()) { hash = (37 * hash) + INSTALLMENT_FIELD_NUMBER; hash = (53 * hash) + getInstallment().hashCode(); @@ -7809,6 +8160,7 @@ private void maybeForceBuilderInitialization() { getDisclosureDateFieldBuilder(); getAvailabilityDateFieldBuilder(); getPriceFieldBuilder(); + getMaximumRetailPriceFieldBuilder(); getInstallmentFieldBuilder(); getSubscriptionCostFieldBuilder(); getLoyaltyPointsFieldBuilder(); @@ -7878,6 +8230,7 @@ public Builder clear() { gender_ = ""; googleProductCategory_ = ""; gtin_ = com.google.protobuf.LazyStringArrayList.emptyList(); + gtins_ = com.google.protobuf.LazyStringArrayList.emptyList(); itemGroupId_ = ""; material_ = ""; mpn_ = ""; @@ -7887,6 +8240,11 @@ public Builder clear() { priceBuilder_.dispose(); priceBuilder_ = null; } + maximumRetailPrice_ = null; + if (maximumRetailPriceBuilder_ != null) { + maximumRetailPriceBuilder_.dispose(); + maximumRetailPriceBuilder_ = null; + } installment_ = null; if (installmentBuilder_ != null) { installmentBuilder_.dispose(); @@ -7908,7 +8266,7 @@ public Builder clear() { loyaltyPrograms_ = null; loyaltyProgramsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x20000000); + bitField0_ = (bitField0_ & ~0x80000000); productTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); salePrice_ = null; if (salePriceBuilder_ != null) { @@ -7947,14 +8305,14 @@ public Builder clear() { shipping_ = null; shippingBuilder_.clear(); } - bitField1_ = (bitField1_ & ~0x00000040); + bitField1_ = (bitField1_ & ~0x00000100); if (freeShippingThresholdBuilder_ == null) { freeShippingThreshold_ = java.util.Collections.emptyList(); } else { freeShippingThreshold_ = null; freeShippingThresholdBuilder_.clear(); } - bitField1_ = (bitField1_ & ~0x00000080); + bitField1_ = (bitField1_ & ~0x00000200); shippingWeight_ = null; if (shippingWeightBuilder_ != null) { shippingWeightBuilder_.dispose(); @@ -7988,7 +8346,7 @@ public Builder clear() { taxes_ = null; taxesBuilder_.clear(); } - bitField1_ = (bitField1_ & ~0x00080000); + bitField1_ = (bitField1_ & ~0x00200000); taxCategory_ = ""; energyEfficiencyClass_ = ""; minEnergyEfficiencyClass_ = ""; @@ -8018,7 +8376,7 @@ public Builder clear() { productDetails_ = null; productDetailsBuilder_.clear(); } - bitField1_ = (bitField1_ & ~0x80000000); + bitField2_ = (bitField2_ & ~0x00000002); productHighlights_ = com.google.protobuf.LazyStringArrayList.emptyList(); displayAdsId_ = ""; displayAdsSimilarIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); @@ -8047,7 +8405,7 @@ public Builder clear() { cloudExportAdditionalProperties_ = null; cloudExportAdditionalPropertiesBuilder_.clear(); } - bitField2_ = (bitField2_ & ~0x00400000); + bitField2_ = (bitField2_ & ~0x01000000); virtualModelLink_ = ""; if (certificationsBuilder_ == null) { certifications_ = java.util.Collections.emptyList(); @@ -8055,7 +8413,7 @@ public Builder clear() { certifications_ = null; certificationsBuilder_.clear(); } - bitField2_ = (bitField2_ & ~0x01000000); + bitField2_ = (bitField2_ & ~0x04000000); structuredTitle_ = null; if (structuredTitleBuilder_ != null) { structuredTitleBuilder_.dispose(); @@ -8077,7 +8435,7 @@ public Builder clear() { sustainabilityIncentives_ = null; sustainabilityIncentivesBuilder_.clear(); } - bitField2_ = (bitField2_ & ~0x10000000); + bitField2_ = (bitField2_ & ~0x40000000); return this; } @@ -8122,74 +8480,74 @@ public com.google.shopping.merchant.products.v1beta.Attributes buildPartial() { private void buildPartialRepeatedFields( com.google.shopping.merchant.products.v1beta.Attributes result) { if (loyaltyProgramsBuilder_ == null) { - if (((bitField0_ & 0x20000000) != 0)) { + if (((bitField0_ & 0x80000000) != 0)) { loyaltyPrograms_ = java.util.Collections.unmodifiableList(loyaltyPrograms_); - bitField0_ = (bitField0_ & ~0x20000000); + bitField0_ = (bitField0_ & ~0x80000000); } result.loyaltyPrograms_ = loyaltyPrograms_; } else { result.loyaltyPrograms_ = loyaltyProgramsBuilder_.build(); } if (shippingBuilder_ == null) { - if (((bitField1_ & 0x00000040) != 0)) { + if (((bitField1_ & 0x00000100) != 0)) { shipping_ = java.util.Collections.unmodifiableList(shipping_); - bitField1_ = (bitField1_ & ~0x00000040); + bitField1_ = (bitField1_ & ~0x00000100); } result.shipping_ = shipping_; } else { result.shipping_ = shippingBuilder_.build(); } if (freeShippingThresholdBuilder_ == null) { - if (((bitField1_ & 0x00000080) != 0)) { + if (((bitField1_ & 0x00000200) != 0)) { freeShippingThreshold_ = java.util.Collections.unmodifiableList(freeShippingThreshold_); - bitField1_ = (bitField1_ & ~0x00000080); + bitField1_ = (bitField1_ & ~0x00000200); } result.freeShippingThreshold_ = freeShippingThreshold_; } else { result.freeShippingThreshold_ = freeShippingThresholdBuilder_.build(); } if (taxesBuilder_ == null) { - if (((bitField1_ & 0x00080000) != 0)) { + if (((bitField1_ & 0x00200000) != 0)) { taxes_ = java.util.Collections.unmodifiableList(taxes_); - bitField1_ = (bitField1_ & ~0x00080000); + bitField1_ = (bitField1_ & ~0x00200000); } result.taxes_ = taxes_; } else { result.taxes_ = taxesBuilder_.build(); } if (productDetailsBuilder_ == null) { - if (((bitField1_ & 0x80000000) != 0)) { + if (((bitField2_ & 0x00000002) != 0)) { productDetails_ = java.util.Collections.unmodifiableList(productDetails_); - bitField1_ = (bitField1_ & ~0x80000000); + bitField2_ = (bitField2_ & ~0x00000002); } result.productDetails_ = productDetails_; } else { result.productDetails_ = productDetailsBuilder_.build(); } if (cloudExportAdditionalPropertiesBuilder_ == null) { - if (((bitField2_ & 0x00400000) != 0)) { + if (((bitField2_ & 0x01000000) != 0)) { cloudExportAdditionalProperties_ = java.util.Collections.unmodifiableList(cloudExportAdditionalProperties_); - bitField2_ = (bitField2_ & ~0x00400000); + bitField2_ = (bitField2_ & ~0x01000000); } result.cloudExportAdditionalProperties_ = cloudExportAdditionalProperties_; } else { result.cloudExportAdditionalProperties_ = cloudExportAdditionalPropertiesBuilder_.build(); } if (certificationsBuilder_ == null) { - if (((bitField2_ & 0x01000000) != 0)) { + if (((bitField2_ & 0x04000000) != 0)) { certifications_ = java.util.Collections.unmodifiableList(certifications_); - bitField2_ = (bitField2_ & ~0x01000000); + bitField2_ = (bitField2_ & ~0x04000000); } result.certifications_ = certifications_; } else { result.certifications_ = certificationsBuilder_.build(); } if (sustainabilityIncentivesBuilder_ == null) { - if (((bitField2_ & 0x10000000) != 0)) { + if (((bitField2_ & 0x40000000) != 0)) { sustainabilityIncentives_ = java.util.Collections.unmodifiableList(sustainabilityIncentives_); - bitField2_ = (bitField2_ & ~0x10000000); + bitField2_ = (bitField2_ & ~0x40000000); } result.sustainabilityIncentives_ = sustainabilityIncentives_; } else { @@ -8288,46 +8646,49 @@ private void buildPartial0(com.google.shopping.merchant.products.v1beta.Attribut result.gtin_ = gtin_; } if (((from_bitField0_ & 0x00200000) != 0)) { + gtins_.makeImmutable(); + result.gtins_ = gtins_; + } + if (((from_bitField0_ & 0x00400000) != 0)) { result.itemGroupId_ = itemGroupId_; to_bitField0_ |= 0x00080000; } - if (((from_bitField0_ & 0x00400000) != 0)) { + if (((from_bitField0_ & 0x00800000) != 0)) { result.material_ = material_; to_bitField0_ |= 0x00100000; } - if (((from_bitField0_ & 0x00800000) != 0)) { + if (((from_bitField0_ & 0x01000000) != 0)) { result.mpn_ = mpn_; to_bitField0_ |= 0x00200000; } - if (((from_bitField0_ & 0x01000000) != 0)) { + if (((from_bitField0_ & 0x02000000) != 0)) { result.pattern_ = pattern_; to_bitField0_ |= 0x00400000; } - if (((from_bitField0_ & 0x02000000) != 0)) { + if (((from_bitField0_ & 0x04000000) != 0)) { result.price_ = priceBuilder_ == null ? price_ : priceBuilder_.build(); to_bitField0_ |= 0x00800000; } - if (((from_bitField0_ & 0x04000000) != 0)) { + if (((from_bitField0_ & 0x08000000) != 0)) { + result.maximumRetailPrice_ = + maximumRetailPriceBuilder_ == null + ? maximumRetailPrice_ + : maximumRetailPriceBuilder_.build(); + to_bitField0_ |= 0x01000000; + } + if (((from_bitField0_ & 0x10000000) != 0)) { result.installment_ = installmentBuilder_ == null ? installment_ : installmentBuilder_.build(); - to_bitField0_ |= 0x01000000; + to_bitField0_ |= 0x02000000; } - if (((from_bitField0_ & 0x08000000) != 0)) { + if (((from_bitField0_ & 0x20000000) != 0)) { result.subscriptionCost_ = subscriptionCostBuilder_ == null ? subscriptionCost_ : subscriptionCostBuilder_.build(); - to_bitField0_ |= 0x02000000; - } - if (((from_bitField0_ & 0x10000000) != 0)) { - result.loyaltyPoints_ = - loyaltyPointsBuilder_ == null ? loyaltyPoints_ : loyaltyPointsBuilder_.build(); to_bitField0_ |= 0x04000000; } if (((from_bitField0_ & 0x40000000) != 0)) { - productTypes_.makeImmutable(); - result.productTypes_ = productTypes_; - } - if (((from_bitField0_ & 0x80000000) != 0)) { - result.salePrice_ = salePriceBuilder_ == null ? salePrice_ : salePriceBuilder_.build(); + result.loyaltyPoints_ = + loyaltyPointsBuilder_ == null ? loyaltyPoints_ : loyaltyPointsBuilder_.build(); to_bitField0_ |= 0x08000000; } result.bitField0_ |= to_bitField0_; @@ -8335,136 +8696,139 @@ private void buildPartial0(com.google.shopping.merchant.products.v1beta.Attribut private void buildPartial1(com.google.shopping.merchant.products.v1beta.Attributes result) { int from_bitField1_ = bitField1_; - int to_bitField0_ = 0; if (((from_bitField1_ & 0x00000001) != 0)) { + productTypes_.makeImmutable(); + result.productTypes_ = productTypes_; + } + int to_bitField0_ = 0; + if (((from_bitField1_ & 0x00000002) != 0)) { + result.salePrice_ = salePriceBuilder_ == null ? salePrice_ : salePriceBuilder_.build(); + to_bitField0_ |= 0x10000000; + } + if (((from_bitField1_ & 0x00000004) != 0)) { result.salePriceEffectiveDate_ = salePriceEffectiveDateBuilder_ == null ? salePriceEffectiveDate_ : salePriceEffectiveDateBuilder_.build(); - to_bitField0_ |= 0x10000000; + to_bitField0_ |= 0x20000000; } - if (((from_bitField1_ & 0x00000002) != 0)) { + if (((from_bitField1_ & 0x00000008) != 0)) { result.sellOnGoogleQuantity_ = sellOnGoogleQuantity_; - to_bitField0_ |= 0x20000000; + to_bitField0_ |= 0x40000000; } - if (((from_bitField1_ & 0x00000004) != 0)) { + if (((from_bitField1_ & 0x00000010) != 0)) { result.productHeight_ = productHeightBuilder_ == null ? productHeight_ : productHeightBuilder_.build(); - to_bitField0_ |= 0x40000000; + to_bitField0_ |= 0x80000000; } - if (((from_bitField1_ & 0x00000008) != 0)) { + int to_bitField1_ = 0; + if (((from_bitField1_ & 0x00000020) != 0)) { result.productLength_ = productLengthBuilder_ == null ? productLength_ : productLengthBuilder_.build(); - to_bitField0_ |= 0x80000000; + to_bitField1_ |= 0x00000001; } - int to_bitField1_ = 0; - if (((from_bitField1_ & 0x00000010) != 0)) { + if (((from_bitField1_ & 0x00000040) != 0)) { result.productWidth_ = productWidthBuilder_ == null ? productWidth_ : productWidthBuilder_.build(); - to_bitField1_ |= 0x00000001; + to_bitField1_ |= 0x00000002; } - if (((from_bitField1_ & 0x00000020) != 0)) { + if (((from_bitField1_ & 0x00000080) != 0)) { result.productWeight_ = productWeightBuilder_ == null ? productWeight_ : productWeightBuilder_.build(); - to_bitField1_ |= 0x00000002; + to_bitField1_ |= 0x00000004; } - if (((from_bitField1_ & 0x00000100) != 0)) { + if (((from_bitField1_ & 0x00000400) != 0)) { result.shippingWeight_ = shippingWeightBuilder_ == null ? shippingWeight_ : shippingWeightBuilder_.build(); - to_bitField1_ |= 0x00000004; + to_bitField1_ |= 0x00000008; } - if (((from_bitField1_ & 0x00000200) != 0)) { + if (((from_bitField1_ & 0x00000800) != 0)) { result.shippingLength_ = shippingLengthBuilder_ == null ? shippingLength_ : shippingLengthBuilder_.build(); - to_bitField1_ |= 0x00000008; + to_bitField1_ |= 0x00000010; } - if (((from_bitField1_ & 0x00000400) != 0)) { + if (((from_bitField1_ & 0x00001000) != 0)) { result.shippingWidth_ = shippingWidthBuilder_ == null ? shippingWidth_ : shippingWidthBuilder_.build(); - to_bitField1_ |= 0x00000010; + to_bitField1_ |= 0x00000020; } - if (((from_bitField1_ & 0x00000800) != 0)) { + if (((from_bitField1_ & 0x00002000) != 0)) { result.shippingHeight_ = shippingHeightBuilder_ == null ? shippingHeight_ : shippingHeightBuilder_.build(); - to_bitField1_ |= 0x00000020; + to_bitField1_ |= 0x00000040; } - if (((from_bitField1_ & 0x00001000) != 0)) { + if (((from_bitField1_ & 0x00004000) != 0)) { result.maxHandlingTime_ = maxHandlingTime_; - to_bitField1_ |= 0x00000040; + to_bitField1_ |= 0x00000080; } - if (((from_bitField1_ & 0x00002000) != 0)) { + if (((from_bitField1_ & 0x00008000) != 0)) { result.minHandlingTime_ = minHandlingTime_; - to_bitField1_ |= 0x00000080; + to_bitField1_ |= 0x00000100; } - if (((from_bitField1_ & 0x00004000) != 0)) { + if (((from_bitField1_ & 0x00010000) != 0)) { result.shippingLabel_ = shippingLabel_; - to_bitField1_ |= 0x00000100; + to_bitField1_ |= 0x00000200; } - if (((from_bitField1_ & 0x00008000) != 0)) { + if (((from_bitField1_ & 0x00020000) != 0)) { result.transitTimeLabel_ = transitTimeLabel_; - to_bitField1_ |= 0x00000200; + to_bitField1_ |= 0x00000400; } - if (((from_bitField1_ & 0x00010000) != 0)) { + if (((from_bitField1_ & 0x00040000) != 0)) { result.size_ = size_; - to_bitField1_ |= 0x00000400; + to_bitField1_ |= 0x00000800; } - if (((from_bitField1_ & 0x00020000) != 0)) { + if (((from_bitField1_ & 0x00080000) != 0)) { result.sizeSystem_ = sizeSystem_; - to_bitField1_ |= 0x00000800; + to_bitField1_ |= 0x00001000; } - if (((from_bitField1_ & 0x00040000) != 0)) { + if (((from_bitField1_ & 0x00100000) != 0)) { sizeTypes_.makeImmutable(); result.sizeTypes_ = sizeTypes_; } - if (((from_bitField1_ & 0x00100000) != 0)) { + if (((from_bitField1_ & 0x00400000) != 0)) { result.taxCategory_ = taxCategory_; - to_bitField1_ |= 0x00001000; + to_bitField1_ |= 0x00002000; } - if (((from_bitField1_ & 0x00200000) != 0)) { + if (((from_bitField1_ & 0x00800000) != 0)) { result.energyEfficiencyClass_ = energyEfficiencyClass_; - to_bitField1_ |= 0x00002000; + to_bitField1_ |= 0x00004000; } - if (((from_bitField1_ & 0x00400000) != 0)) { + if (((from_bitField1_ & 0x01000000) != 0)) { result.minEnergyEfficiencyClass_ = minEnergyEfficiencyClass_; - to_bitField1_ |= 0x00004000; + to_bitField1_ |= 0x00008000; } - if (((from_bitField1_ & 0x00800000) != 0)) { + if (((from_bitField1_ & 0x02000000) != 0)) { result.maxEnergyEfficiencyClass_ = maxEnergyEfficiencyClass_; - to_bitField1_ |= 0x00008000; + to_bitField1_ |= 0x00010000; } - if (((from_bitField1_ & 0x01000000) != 0)) { + if (((from_bitField1_ & 0x04000000) != 0)) { result.unitPricingMeasure_ = unitPricingMeasureBuilder_ == null ? unitPricingMeasure_ : unitPricingMeasureBuilder_.build(); - to_bitField1_ |= 0x00010000; + to_bitField1_ |= 0x00020000; } - if (((from_bitField1_ & 0x02000000) != 0)) { + if (((from_bitField1_ & 0x08000000) != 0)) { result.unitPricingBaseMeasure_ = unitPricingBaseMeasureBuilder_ == null ? unitPricingBaseMeasure_ : unitPricingBaseMeasureBuilder_.build(); - to_bitField1_ |= 0x00020000; + to_bitField1_ |= 0x00040000; } - if (((from_bitField1_ & 0x04000000) != 0)) { + if (((from_bitField1_ & 0x10000000) != 0)) { result.multipack_ = multipack_; - to_bitField1_ |= 0x00040000; + to_bitField1_ |= 0x00080000; } - if (((from_bitField1_ & 0x08000000) != 0)) { + if (((from_bitField1_ & 0x20000000) != 0)) { result.adsGrouping_ = adsGrouping_; - to_bitField1_ |= 0x00080000; + to_bitField1_ |= 0x00100000; } - if (((from_bitField1_ & 0x10000000) != 0)) { + if (((from_bitField1_ & 0x40000000) != 0)) { adsLabels_.makeImmutable(); result.adsLabels_ = adsLabels_; } - if (((from_bitField1_ & 0x20000000) != 0)) { + if (((from_bitField1_ & 0x80000000) != 0)) { result.adsRedirect_ = adsRedirect_; - to_bitField1_ |= 0x00100000; - } - if (((from_bitField1_ & 0x40000000) != 0)) { - result.costOfGoodsSold_ = - costOfGoodsSoldBuilder_ == null ? costOfGoodsSold_ : costOfGoodsSoldBuilder_.build(); to_bitField1_ |= 0x00200000; } result.bitField0_ |= to_bitField0_; @@ -8473,118 +8837,123 @@ private void buildPartial1(com.google.shopping.merchant.products.v1beta.Attribut private void buildPartial2(com.google.shopping.merchant.products.v1beta.Attributes result) { int from_bitField2_ = bitField2_; + int to_bitField1_ = 0; if (((from_bitField2_ & 0x00000001) != 0)) { + result.costOfGoodsSold_ = + costOfGoodsSoldBuilder_ == null ? costOfGoodsSold_ : costOfGoodsSoldBuilder_.build(); + to_bitField1_ |= 0x00400000; + } + if (((from_bitField2_ & 0x00000004) != 0)) { productHighlights_.makeImmutable(); result.productHighlights_ = productHighlights_; } - int to_bitField1_ = 0; - if (((from_bitField2_ & 0x00000002) != 0)) { + if (((from_bitField2_ & 0x00000008) != 0)) { result.displayAdsId_ = displayAdsId_; - to_bitField1_ |= 0x00400000; + to_bitField1_ |= 0x00800000; } - if (((from_bitField2_ & 0x00000004) != 0)) { + if (((from_bitField2_ & 0x00000010) != 0)) { displayAdsSimilarIds_.makeImmutable(); result.displayAdsSimilarIds_ = displayAdsSimilarIds_; } - if (((from_bitField2_ & 0x00000008) != 0)) { + if (((from_bitField2_ & 0x00000020) != 0)) { result.displayAdsTitle_ = displayAdsTitle_; - to_bitField1_ |= 0x00800000; + to_bitField1_ |= 0x01000000; } - if (((from_bitField2_ & 0x00000010) != 0)) { + if (((from_bitField2_ & 0x00000040) != 0)) { result.displayAdsLink_ = displayAdsLink_; - to_bitField1_ |= 0x01000000; + to_bitField1_ |= 0x02000000; } - if (((from_bitField2_ & 0x00000020) != 0)) { + if (((from_bitField2_ & 0x00000080) != 0)) { result.displayAdsValue_ = displayAdsValue_; - to_bitField1_ |= 0x02000000; + to_bitField1_ |= 0x04000000; } - if (((from_bitField2_ & 0x00000040) != 0)) { + if (((from_bitField2_ & 0x00000100) != 0)) { promotionIds_.makeImmutable(); result.promotionIds_ = promotionIds_; } - if (((from_bitField2_ & 0x00000080) != 0)) { + if (((from_bitField2_ & 0x00000200) != 0)) { result.pickupMethod_ = pickupMethod_; - to_bitField1_ |= 0x04000000; - } - if (((from_bitField2_ & 0x00000100) != 0)) { - result.pickupSla_ = pickupSla_; to_bitField1_ |= 0x08000000; } - if (((from_bitField2_ & 0x00000200) != 0)) { - result.linkTemplate_ = linkTemplate_; + if (((from_bitField2_ & 0x00000400) != 0)) { + result.pickupSla_ = pickupSla_; to_bitField1_ |= 0x10000000; } - if (((from_bitField2_ & 0x00000400) != 0)) { - result.mobileLinkTemplate_ = mobileLinkTemplate_; + if (((from_bitField2_ & 0x00000800) != 0)) { + result.linkTemplate_ = linkTemplate_; to_bitField1_ |= 0x20000000; } - if (((from_bitField2_ & 0x00000800) != 0)) { - result.customLabel0_ = customLabel0_; + if (((from_bitField2_ & 0x00001000) != 0)) { + result.mobileLinkTemplate_ = mobileLinkTemplate_; to_bitField1_ |= 0x40000000; } - if (((from_bitField2_ & 0x00001000) != 0)) { - result.customLabel1_ = customLabel1_; + if (((from_bitField2_ & 0x00002000) != 0)) { + result.customLabel0_ = customLabel0_; to_bitField1_ |= 0x80000000; } int to_bitField2_ = 0; - if (((from_bitField2_ & 0x00002000) != 0)) { - result.customLabel2_ = customLabel2_; + if (((from_bitField2_ & 0x00004000) != 0)) { + result.customLabel1_ = customLabel1_; to_bitField2_ |= 0x00000001; } - if (((from_bitField2_ & 0x00004000) != 0)) { - result.customLabel3_ = customLabel3_; + if (((from_bitField2_ & 0x00008000) != 0)) { + result.customLabel2_ = customLabel2_; to_bitField2_ |= 0x00000002; } - if (((from_bitField2_ & 0x00008000) != 0)) { - result.customLabel4_ = customLabel4_; + if (((from_bitField2_ & 0x00010000) != 0)) { + result.customLabel3_ = customLabel3_; to_bitField2_ |= 0x00000004; } - if (((from_bitField2_ & 0x00010000) != 0)) { + if (((from_bitField2_ & 0x00020000) != 0)) { + result.customLabel4_ = customLabel4_; + to_bitField2_ |= 0x00000008; + } + if (((from_bitField2_ & 0x00040000) != 0)) { includedDestinations_.makeImmutable(); result.includedDestinations_ = includedDestinations_; } - if (((from_bitField2_ & 0x00020000) != 0)) { + if (((from_bitField2_ & 0x00080000) != 0)) { excludedDestinations_.makeImmutable(); result.excludedDestinations_ = excludedDestinations_; } - if (((from_bitField2_ & 0x00040000) != 0)) { + if (((from_bitField2_ & 0x00100000) != 0)) { shoppingAdsExcludedCountries_.makeImmutable(); result.shoppingAdsExcludedCountries_ = shoppingAdsExcludedCountries_; } - if (((from_bitField2_ & 0x00080000) != 0)) { + if (((from_bitField2_ & 0x00200000) != 0)) { result.externalSellerId_ = externalSellerId_; - to_bitField2_ |= 0x00000008; + to_bitField2_ |= 0x00000010; } - if (((from_bitField2_ & 0x00100000) != 0)) { + if (((from_bitField2_ & 0x00400000) != 0)) { result.pause_ = pause_; - to_bitField2_ |= 0x00000010; + to_bitField2_ |= 0x00000020; } - if (((from_bitField2_ & 0x00200000) != 0)) { + if (((from_bitField2_ & 0x00800000) != 0)) { lifestyleImageLinks_.makeImmutable(); result.lifestyleImageLinks_ = lifestyleImageLinks_; } - if (((from_bitField2_ & 0x00800000) != 0)) { + if (((from_bitField2_ & 0x02000000) != 0)) { result.virtualModelLink_ = virtualModelLink_; - to_bitField2_ |= 0x00000020; + to_bitField2_ |= 0x00000040; } - if (((from_bitField2_ & 0x02000000) != 0)) { + if (((from_bitField2_ & 0x08000000) != 0)) { result.structuredTitle_ = structuredTitleBuilder_ == null ? structuredTitle_ : structuredTitleBuilder_.build(); - to_bitField2_ |= 0x00000040; + to_bitField2_ |= 0x00000080; } - if (((from_bitField2_ & 0x04000000) != 0)) { + if (((from_bitField2_ & 0x10000000) != 0)) { result.structuredDescription_ = structuredDescriptionBuilder_ == null ? structuredDescription_ : structuredDescriptionBuilder_.build(); - to_bitField2_ |= 0x00000080; + to_bitField2_ |= 0x00000100; } - if (((from_bitField2_ & 0x08000000) != 0)) { + if (((from_bitField2_ & 0x20000000) != 0)) { result.autoPricingMinPrice_ = autoPricingMinPriceBuilder_ == null ? autoPricingMinPrice_ : autoPricingMinPriceBuilder_.build(); - to_bitField2_ |= 0x00000100; + to_bitField2_ |= 0x00000200; } result.bitField1_ |= to_bitField1_; result.bitField2_ |= to_bitField2_; @@ -8739,29 +9108,42 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1beta.Attributes } onChanged(); } + if (!other.gtins_.isEmpty()) { + if (gtins_.isEmpty()) { + gtins_ = other.gtins_; + bitField0_ |= 0x00200000; + } else { + ensureGtinsIsMutable(); + gtins_.addAll(other.gtins_); + } + onChanged(); + } if (other.hasItemGroupId()) { itemGroupId_ = other.itemGroupId_; - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); } if (other.hasMaterial()) { material_ = other.material_; - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); } if (other.hasMpn()) { mpn_ = other.mpn_; - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); } if (other.hasPattern()) { pattern_ = other.pattern_; - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; onChanged(); } if (other.hasPrice()) { mergePrice(other.getPrice()); } + if (other.hasMaximumRetailPrice()) { + mergeMaximumRetailPrice(other.getMaximumRetailPrice()); + } if (other.hasInstallment()) { mergeInstallment(other.getInstallment()); } @@ -8775,7 +9157,7 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1beta.Attributes if (!other.loyaltyPrograms_.isEmpty()) { if (loyaltyPrograms_.isEmpty()) { loyaltyPrograms_ = other.loyaltyPrograms_; - bitField0_ = (bitField0_ & ~0x20000000); + bitField0_ = (bitField0_ & ~0x80000000); } else { ensureLoyaltyProgramsIsMutable(); loyaltyPrograms_.addAll(other.loyaltyPrograms_); @@ -8788,7 +9170,7 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1beta.Attributes loyaltyProgramsBuilder_.dispose(); loyaltyProgramsBuilder_ = null; loyaltyPrograms_ = other.loyaltyPrograms_; - bitField0_ = (bitField0_ & ~0x20000000); + bitField0_ = (bitField0_ & ~0x80000000); loyaltyProgramsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLoyaltyProgramsFieldBuilder() @@ -8801,7 +9183,7 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1beta.Attributes if (!other.productTypes_.isEmpty()) { if (productTypes_.isEmpty()) { productTypes_ = other.productTypes_; - bitField0_ |= 0x40000000; + bitField1_ |= 0x00000001; } else { ensureProductTypesIsMutable(); productTypes_.addAll(other.productTypes_); @@ -8833,7 +9215,7 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1beta.Attributes if (!other.shipping_.isEmpty()) { if (shipping_.isEmpty()) { shipping_ = other.shipping_; - bitField1_ = (bitField1_ & ~0x00000040); + bitField1_ = (bitField1_ & ~0x00000100); } else { ensureShippingIsMutable(); shipping_.addAll(other.shipping_); @@ -8846,7 +9228,7 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1beta.Attributes shippingBuilder_.dispose(); shippingBuilder_ = null; shipping_ = other.shipping_; - bitField1_ = (bitField1_ & ~0x00000040); + bitField1_ = (bitField1_ & ~0x00000100); shippingBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getShippingFieldBuilder() @@ -8860,7 +9242,7 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1beta.Attributes if (!other.freeShippingThreshold_.isEmpty()) { if (freeShippingThreshold_.isEmpty()) { freeShippingThreshold_ = other.freeShippingThreshold_; - bitField1_ = (bitField1_ & ~0x00000080); + bitField1_ = (bitField1_ & ~0x00000200); } else { ensureFreeShippingThresholdIsMutable(); freeShippingThreshold_.addAll(other.freeShippingThreshold_); @@ -8873,7 +9255,7 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1beta.Attributes freeShippingThresholdBuilder_.dispose(); freeShippingThresholdBuilder_ = null; freeShippingThreshold_ = other.freeShippingThreshold_; - bitField1_ = (bitField1_ & ~0x00000080); + bitField1_ = (bitField1_ & ~0x00000200); freeShippingThresholdBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFreeShippingThresholdFieldBuilder() @@ -8903,28 +9285,28 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1beta.Attributes } if (other.hasShippingLabel()) { shippingLabel_ = other.shippingLabel_; - bitField1_ |= 0x00004000; + bitField1_ |= 0x00010000; onChanged(); } if (other.hasTransitTimeLabel()) { transitTimeLabel_ = other.transitTimeLabel_; - bitField1_ |= 0x00008000; + bitField1_ |= 0x00020000; onChanged(); } if (other.hasSize()) { size_ = other.size_; - bitField1_ |= 0x00010000; + bitField1_ |= 0x00040000; onChanged(); } if (other.hasSizeSystem()) { sizeSystem_ = other.sizeSystem_; - bitField1_ |= 0x00020000; + bitField1_ |= 0x00080000; onChanged(); } if (!other.sizeTypes_.isEmpty()) { if (sizeTypes_.isEmpty()) { sizeTypes_ = other.sizeTypes_; - bitField1_ |= 0x00040000; + bitField1_ |= 0x00100000; } else { ensureSizeTypesIsMutable(); sizeTypes_.addAll(other.sizeTypes_); @@ -8935,7 +9317,7 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1beta.Attributes if (!other.taxes_.isEmpty()) { if (taxes_.isEmpty()) { taxes_ = other.taxes_; - bitField1_ = (bitField1_ & ~0x00080000); + bitField1_ = (bitField1_ & ~0x00200000); } else { ensureTaxesIsMutable(); taxes_.addAll(other.taxes_); @@ -8948,7 +9330,7 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1beta.Attributes taxesBuilder_.dispose(); taxesBuilder_ = null; taxes_ = other.taxes_; - bitField1_ = (bitField1_ & ~0x00080000); + bitField1_ = (bitField1_ & ~0x00200000); taxesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTaxesFieldBuilder() @@ -8960,22 +9342,22 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1beta.Attributes } if (other.hasTaxCategory()) { taxCategory_ = other.taxCategory_; - bitField1_ |= 0x00100000; + bitField1_ |= 0x00400000; onChanged(); } if (other.hasEnergyEfficiencyClass()) { energyEfficiencyClass_ = other.energyEfficiencyClass_; - bitField1_ |= 0x00200000; + bitField1_ |= 0x00800000; onChanged(); } if (other.hasMinEnergyEfficiencyClass()) { minEnergyEfficiencyClass_ = other.minEnergyEfficiencyClass_; - bitField1_ |= 0x00400000; + bitField1_ |= 0x01000000; onChanged(); } if (other.hasMaxEnergyEfficiencyClass()) { maxEnergyEfficiencyClass_ = other.maxEnergyEfficiencyClass_; - bitField1_ |= 0x00800000; + bitField1_ |= 0x02000000; onChanged(); } if (other.hasUnitPricingMeasure()) { @@ -8989,13 +9371,13 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1beta.Attributes } if (other.hasAdsGrouping()) { adsGrouping_ = other.adsGrouping_; - bitField1_ |= 0x08000000; + bitField1_ |= 0x20000000; onChanged(); } if (!other.adsLabels_.isEmpty()) { if (adsLabels_.isEmpty()) { adsLabels_ = other.adsLabels_; - bitField1_ |= 0x10000000; + bitField1_ |= 0x40000000; } else { ensureAdsLabelsIsMutable(); adsLabels_.addAll(other.adsLabels_); @@ -9004,7 +9386,7 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1beta.Attributes } if (other.hasAdsRedirect()) { adsRedirect_ = other.adsRedirect_; - bitField1_ |= 0x20000000; + bitField1_ |= 0x80000000; onChanged(); } if (other.hasCostOfGoodsSold()) { @@ -9014,7 +9396,7 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1beta.Attributes if (!other.productDetails_.isEmpty()) { if (productDetails_.isEmpty()) { productDetails_ = other.productDetails_; - bitField1_ = (bitField1_ & ~0x80000000); + bitField2_ = (bitField2_ & ~0x00000002); } else { ensureProductDetailsIsMutable(); productDetails_.addAll(other.productDetails_); @@ -9027,7 +9409,7 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1beta.Attributes productDetailsBuilder_.dispose(); productDetailsBuilder_ = null; productDetails_ = other.productDetails_; - bitField1_ = (bitField1_ & ~0x80000000); + bitField2_ = (bitField2_ & ~0x00000002); productDetailsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getProductDetailsFieldBuilder() @@ -9040,7 +9422,7 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1beta.Attributes if (!other.productHighlights_.isEmpty()) { if (productHighlights_.isEmpty()) { productHighlights_ = other.productHighlights_; - bitField2_ |= 0x00000001; + bitField2_ |= 0x00000004; } else { ensureProductHighlightsIsMutable(); productHighlights_.addAll(other.productHighlights_); @@ -9049,13 +9431,13 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1beta.Attributes } if (other.hasDisplayAdsId()) { displayAdsId_ = other.displayAdsId_; - bitField2_ |= 0x00000002; + bitField2_ |= 0x00000008; onChanged(); } if (!other.displayAdsSimilarIds_.isEmpty()) { if (displayAdsSimilarIds_.isEmpty()) { displayAdsSimilarIds_ = other.displayAdsSimilarIds_; - bitField2_ |= 0x00000004; + bitField2_ |= 0x00000010; } else { ensureDisplayAdsSimilarIdsIsMutable(); displayAdsSimilarIds_.addAll(other.displayAdsSimilarIds_); @@ -9064,12 +9446,12 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1beta.Attributes } if (other.hasDisplayAdsTitle()) { displayAdsTitle_ = other.displayAdsTitle_; - bitField2_ |= 0x00000008; + bitField2_ |= 0x00000020; onChanged(); } if (other.hasDisplayAdsLink()) { displayAdsLink_ = other.displayAdsLink_; - bitField2_ |= 0x00000010; + bitField2_ |= 0x00000040; onChanged(); } if (other.hasDisplayAdsValue()) { @@ -9078,7 +9460,7 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1beta.Attributes if (!other.promotionIds_.isEmpty()) { if (promotionIds_.isEmpty()) { promotionIds_ = other.promotionIds_; - bitField2_ |= 0x00000040; + bitField2_ |= 0x00000100; } else { ensurePromotionIdsIsMutable(); promotionIds_.addAll(other.promotionIds_); @@ -9087,53 +9469,53 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1beta.Attributes } if (other.hasPickupMethod()) { pickupMethod_ = other.pickupMethod_; - bitField2_ |= 0x00000080; + bitField2_ |= 0x00000200; onChanged(); } if (other.hasPickupSla()) { pickupSla_ = other.pickupSla_; - bitField2_ |= 0x00000100; + bitField2_ |= 0x00000400; onChanged(); } if (other.hasLinkTemplate()) { linkTemplate_ = other.linkTemplate_; - bitField2_ |= 0x00000200; + bitField2_ |= 0x00000800; onChanged(); } if (other.hasMobileLinkTemplate()) { mobileLinkTemplate_ = other.mobileLinkTemplate_; - bitField2_ |= 0x00000400; + bitField2_ |= 0x00001000; onChanged(); } if (other.hasCustomLabel0()) { customLabel0_ = other.customLabel0_; - bitField2_ |= 0x00000800; + bitField2_ |= 0x00002000; onChanged(); } if (other.hasCustomLabel1()) { customLabel1_ = other.customLabel1_; - bitField2_ |= 0x00001000; + bitField2_ |= 0x00004000; onChanged(); } if (other.hasCustomLabel2()) { customLabel2_ = other.customLabel2_; - bitField2_ |= 0x00002000; + bitField2_ |= 0x00008000; onChanged(); } if (other.hasCustomLabel3()) { customLabel3_ = other.customLabel3_; - bitField2_ |= 0x00004000; + bitField2_ |= 0x00010000; onChanged(); } if (other.hasCustomLabel4()) { customLabel4_ = other.customLabel4_; - bitField2_ |= 0x00008000; + bitField2_ |= 0x00020000; onChanged(); } if (!other.includedDestinations_.isEmpty()) { if (includedDestinations_.isEmpty()) { includedDestinations_ = other.includedDestinations_; - bitField2_ |= 0x00010000; + bitField2_ |= 0x00040000; } else { ensureIncludedDestinationsIsMutable(); includedDestinations_.addAll(other.includedDestinations_); @@ -9143,7 +9525,7 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1beta.Attributes if (!other.excludedDestinations_.isEmpty()) { if (excludedDestinations_.isEmpty()) { excludedDestinations_ = other.excludedDestinations_; - bitField2_ |= 0x00020000; + bitField2_ |= 0x00080000; } else { ensureExcludedDestinationsIsMutable(); excludedDestinations_.addAll(other.excludedDestinations_); @@ -9153,7 +9535,7 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1beta.Attributes if (!other.shoppingAdsExcludedCountries_.isEmpty()) { if (shoppingAdsExcludedCountries_.isEmpty()) { shoppingAdsExcludedCountries_ = other.shoppingAdsExcludedCountries_; - bitField2_ |= 0x00040000; + bitField2_ |= 0x00100000; } else { ensureShoppingAdsExcludedCountriesIsMutable(); shoppingAdsExcludedCountries_.addAll(other.shoppingAdsExcludedCountries_); @@ -9162,18 +9544,18 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1beta.Attributes } if (other.hasExternalSellerId()) { externalSellerId_ = other.externalSellerId_; - bitField2_ |= 0x00080000; + bitField2_ |= 0x00200000; onChanged(); } if (other.hasPause()) { pause_ = other.pause_; - bitField2_ |= 0x00100000; + bitField2_ |= 0x00400000; onChanged(); } if (!other.lifestyleImageLinks_.isEmpty()) { if (lifestyleImageLinks_.isEmpty()) { lifestyleImageLinks_ = other.lifestyleImageLinks_; - bitField2_ |= 0x00200000; + bitField2_ |= 0x00800000; } else { ensureLifestyleImageLinksIsMutable(); lifestyleImageLinks_.addAll(other.lifestyleImageLinks_); @@ -9184,7 +9566,7 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1beta.Attributes if (!other.cloudExportAdditionalProperties_.isEmpty()) { if (cloudExportAdditionalProperties_.isEmpty()) { cloudExportAdditionalProperties_ = other.cloudExportAdditionalProperties_; - bitField2_ = (bitField2_ & ~0x00400000); + bitField2_ = (bitField2_ & ~0x01000000); } else { ensureCloudExportAdditionalPropertiesIsMutable(); cloudExportAdditionalProperties_.addAll(other.cloudExportAdditionalProperties_); @@ -9197,7 +9579,7 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1beta.Attributes cloudExportAdditionalPropertiesBuilder_.dispose(); cloudExportAdditionalPropertiesBuilder_ = null; cloudExportAdditionalProperties_ = other.cloudExportAdditionalProperties_; - bitField2_ = (bitField2_ & ~0x00400000); + bitField2_ = (bitField2_ & ~0x01000000); cloudExportAdditionalPropertiesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCloudExportAdditionalPropertiesFieldBuilder() @@ -9210,14 +9592,14 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1beta.Attributes } if (other.hasVirtualModelLink()) { virtualModelLink_ = other.virtualModelLink_; - bitField2_ |= 0x00800000; + bitField2_ |= 0x02000000; onChanged(); } if (certificationsBuilder_ == null) { if (!other.certifications_.isEmpty()) { if (certifications_.isEmpty()) { certifications_ = other.certifications_; - bitField2_ = (bitField2_ & ~0x01000000); + bitField2_ = (bitField2_ & ~0x04000000); } else { ensureCertificationsIsMutable(); certifications_.addAll(other.certifications_); @@ -9230,7 +9612,7 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1beta.Attributes certificationsBuilder_.dispose(); certificationsBuilder_ = null; certifications_ = other.certifications_; - bitField2_ = (bitField2_ & ~0x01000000); + bitField2_ = (bitField2_ & ~0x04000000); certificationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCertificationsFieldBuilder() @@ -9253,7 +9635,7 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1beta.Attributes if (!other.sustainabilityIncentives_.isEmpty()) { if (sustainabilityIncentives_.isEmpty()) { sustainabilityIncentives_ = other.sustainabilityIncentives_; - bitField2_ = (bitField2_ & ~0x10000000); + bitField2_ = (bitField2_ & ~0x40000000); } else { ensureSustainabilityIncentivesIsMutable(); sustainabilityIncentives_.addAll(other.sustainabilityIncentives_); @@ -9266,7 +9648,7 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1beta.Attributes sustainabilityIncentivesBuilder_.dispose(); sustainabilityIncentivesBuilder_ = null; sustainabilityIncentives_ = other.sustainabilityIncentives_; - bitField2_ = (bitField2_ & ~0x10000000); + bitField2_ = (bitField2_ & ~0x40000000); sustainabilityIncentivesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSustainabilityIncentivesFieldBuilder() @@ -9305,7 +9687,7 @@ public Builder mergeFrom( case 10: { externalSellerId_ = input.readStringRequireUtf8(); - bitField2_ |= 0x00080000; + bitField2_ |= 0x00200000; break; } // case 10 case 32: @@ -9366,7 +9748,7 @@ public Builder mergeFrom( case 106: { pause_ = input.readStringRequireUtf8(); - bitField2_ |= 0x00100000; + bitField2_ |= 0x00400000; break; } // case 106 case 114: @@ -9447,50 +9829,50 @@ public Builder mergeFrom( case 218: { itemGroupId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; break; } // case 218 case 226: { material_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; break; } // case 226 case 234: { mpn_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; break; } // case 234 case 242: { pattern_ = input.readStringRequireUtf8(); - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; break; } // case 242 case 250: { input.readMessage(getPriceFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; break; } // case 250 case 258: { input.readMessage(getInstallmentFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x04000000; + bitField0_ |= 0x10000000; break; } // case 258 case 266: { input.readMessage( getSubscriptionCostFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x08000000; + bitField0_ |= 0x20000000; break; } // case 266 case 274: { input.readMessage(getLoyaltyPointsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; break; } // case 274 case 282: @@ -9503,20 +9885,20 @@ public Builder mergeFrom( case 290: { input.readMessage(getSalePriceFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000002; break; } // case 290 case 298: { input.readMessage( getSalePriceEffectiveDateFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000004; break; } // case 298 case 304: { sellOnGoogleQuantity_ = input.readInt64(); - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000008; break; } // case 304 case 314: @@ -9536,61 +9918,61 @@ public Builder mergeFrom( case 322: { input.readMessage(getShippingWeightFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000100; + bitField1_ |= 0x00000400; break; } // case 322 case 330: { input.readMessage(getShippingLengthFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000200; + bitField1_ |= 0x00000800; break; } // case 330 case 338: { input.readMessage(getShippingWidthFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000400; + bitField1_ |= 0x00001000; break; } // case 338 case 346: { input.readMessage(getShippingHeightFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000800; + bitField1_ |= 0x00002000; break; } // case 346 case 352: { maxHandlingTime_ = input.readInt64(); - bitField1_ |= 0x00001000; + bitField1_ |= 0x00004000; break; } // case 352 case 360: { minHandlingTime_ = input.readInt64(); - bitField1_ |= 0x00002000; + bitField1_ |= 0x00008000; break; } // case 360 case 370: { shippingLabel_ = input.readStringRequireUtf8(); - bitField1_ |= 0x00004000; + bitField1_ |= 0x00010000; break; } // case 370 case 378: { transitTimeLabel_ = input.readStringRequireUtf8(); - bitField1_ |= 0x00008000; + bitField1_ |= 0x00020000; break; } // case 378 case 386: { size_ = input.readStringRequireUtf8(); - bitField1_ |= 0x00010000; + bitField1_ |= 0x00040000; break; } // case 386 case 394: { sizeSystem_ = input.readStringRequireUtf8(); - bitField1_ |= 0x00020000; + bitField1_ |= 0x00080000; break; } // case 394 case 402: @@ -9617,51 +9999,51 @@ public Builder mergeFrom( case 418: { taxCategory_ = input.readStringRequireUtf8(); - bitField1_ |= 0x00100000; + bitField1_ |= 0x00400000; break; } // case 418 case 426: { energyEfficiencyClass_ = input.readStringRequireUtf8(); - bitField1_ |= 0x00200000; + bitField1_ |= 0x00800000; break; } // case 426 case 434: { minEnergyEfficiencyClass_ = input.readStringRequireUtf8(); - bitField1_ |= 0x00400000; + bitField1_ |= 0x01000000; break; } // case 434 case 442: { maxEnergyEfficiencyClass_ = input.readStringRequireUtf8(); - bitField1_ |= 0x00800000; + bitField1_ |= 0x02000000; break; } // case 442 case 450: { input.readMessage( getUnitPricingMeasureFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x01000000; + bitField1_ |= 0x04000000; break; } // case 450 case 458: { input.readMessage( getUnitPricingBaseMeasureFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x02000000; + bitField1_ |= 0x08000000; break; } // case 458 case 464: { multipack_ = input.readInt64(); - bitField1_ |= 0x04000000; + bitField1_ |= 0x10000000; break; } // case 464 case 474: { adsGrouping_ = input.readStringRequireUtf8(); - bitField1_ |= 0x08000000; + bitField1_ |= 0x20000000; break; } // case 474 case 482: @@ -9674,13 +10056,13 @@ public Builder mergeFrom( case 490: { adsRedirect_ = input.readStringRequireUtf8(); - bitField1_ |= 0x20000000; + bitField1_ |= 0x80000000; break; } // case 490 case 498: { input.readMessage(getCostOfGoodsSoldFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x40000000; + bitField2_ |= 0x00000001; break; } // case 498 case 506: @@ -9707,7 +10089,7 @@ public Builder mergeFrom( case 522: { displayAdsId_ = input.readStringRequireUtf8(); - bitField2_ |= 0x00000002; + bitField2_ |= 0x00000008; break; } // case 522 case 530: @@ -9720,19 +10102,19 @@ public Builder mergeFrom( case 538: { displayAdsTitle_ = input.readStringRequireUtf8(); - bitField2_ |= 0x00000008; + bitField2_ |= 0x00000020; break; } // case 538 case 546: { displayAdsLink_ = input.readStringRequireUtf8(); - bitField2_ |= 0x00000010; + bitField2_ |= 0x00000040; break; } // case 546 case 553: { displayAdsValue_ = input.readDouble(); - bitField2_ |= 0x00000020; + bitField2_ |= 0x00000080; break; } // case 553 case 562: @@ -9745,31 +10127,31 @@ public Builder mergeFrom( case 570: { customLabel0_ = input.readStringRequireUtf8(); - bitField2_ |= 0x00000800; + bitField2_ |= 0x00002000; break; } // case 570 case 578: { customLabel1_ = input.readStringRequireUtf8(); - bitField2_ |= 0x00001000; + bitField2_ |= 0x00004000; break; } // case 578 case 586: { customLabel2_ = input.readStringRequireUtf8(); - bitField2_ |= 0x00002000; + bitField2_ |= 0x00008000; break; } // case 586 case 594: { customLabel3_ = input.readStringRequireUtf8(); - bitField2_ |= 0x00004000; + bitField2_ |= 0x00010000; break; } // case 594 case 602: { customLabel4_ = input.readStringRequireUtf8(); - bitField2_ |= 0x00008000; + bitField2_ |= 0x00020000; break; } // case 602 case 610: @@ -9802,25 +10184,25 @@ public Builder mergeFrom( case 642: { pickupMethod_ = input.readStringRequireUtf8(); - bitField2_ |= 0x00000080; + bitField2_ |= 0x00000200; break; } // case 642 case 650: { pickupSla_ = input.readStringRequireUtf8(); - bitField2_ |= 0x00000100; + bitField2_ |= 0x00000400; break; } // case 650 case 658: { linkTemplate_ = input.readStringRequireUtf8(); - bitField2_ |= 0x00000200; + bitField2_ |= 0x00000800; break; } // case 658 case 666: { mobileLinkTemplate_ = input.readStringRequireUtf8(); - bitField2_ |= 0x00000400; + bitField2_ |= 0x00001000; break; } // case 666 case 674: @@ -9841,25 +10223,25 @@ public Builder mergeFrom( case 954: { input.readMessage(getProductHeightFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000010; break; } // case 954 case 962: { input.readMessage(getProductLengthFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000008; + bitField1_ |= 0x00000020; break; } // case 962 case 970: { input.readMessage(getProductWidthFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000010; + bitField1_ |= 0x00000040; break; } // case 970 case 978: { input.readMessage(getProductWeightFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000020; + bitField1_ |= 0x00000080; break; } // case 978 case 986: @@ -9880,26 +10262,26 @@ public Builder mergeFrom( { input.readMessage( getAutoPricingMinPriceFieldBuilder().getBuilder(), extensionRegistry); - bitField2_ |= 0x08000000; + bitField2_ |= 0x20000000; break; } // case 994 case 1042: { virtualModelLink_ = input.readStringRequireUtf8(); - bitField2_ |= 0x00800000; + bitField2_ |= 0x02000000; break; } // case 1042 case 1058: { input.readMessage(getStructuredTitleFieldBuilder().getBuilder(), extensionRegistry); - bitField2_ |= 0x02000000; + bitField2_ |= 0x08000000; break; } // case 1058 case 1066: { input.readMessage( getStructuredDescriptionFieldBuilder().getBuilder(), extensionRegistry); - bitField2_ |= 0x04000000; + bitField2_ |= 0x10000000; break; } // case 1066 case 1082: @@ -9945,6 +10327,20 @@ public Builder mergeFrom( } break; } // case 1106 + case 1114: + { + input.readMessage( + getMaximumRetailPriceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x08000000; + break; + } // case 1114 + case 1122: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureGtinsIsMutable(); + gtins_.add(s); + break; + } // case 1122 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -10052,8 +10448,9 @@ public Builder clearIdentifierExists() { * * *
      -     * Whether the item is a merchant-defined bundle. A bundle is a custom
      -     * grouping of different products sold by a merchant for a single price.
      +     * Whether the item is a business-defined sub-API. A [sub-API]
      +     * (https://support.google.com/merchants/answer/6324449) is a custom
      +     * grouping of different products sold by a business for a single price.
            * 
      * * optional bool is_bundle = 5; @@ -10069,8 +10466,9 @@ public boolean hasIsBundle() { * * *
      -     * Whether the item is a merchant-defined bundle. A bundle is a custom
      -     * grouping of different products sold by a merchant for a single price.
      +     * Whether the item is a business-defined sub-API. A [sub-API]
      +     * (https://support.google.com/merchants/answer/6324449) is a custom
      +     * grouping of different products sold by a business for a single price.
            * 
      * * optional bool is_bundle = 5; @@ -10086,8 +10484,9 @@ public boolean getIsBundle() { * * *
      -     * Whether the item is a merchant-defined bundle. A bundle is a custom
      -     * grouping of different products sold by a merchant for a single price.
      +     * Whether the item is a business-defined sub-API. A [sub-API]
      +     * (https://support.google.com/merchants/answer/6324449) is a custom
      +     * grouping of different products sold by a business for a single price.
            * 
      * * optional bool is_bundle = 5; @@ -10107,8 +10506,9 @@ public Builder setIsBundle(boolean value) { * * *
      -     * Whether the item is a merchant-defined bundle. A bundle is a custom
      -     * grouping of different products sold by a merchant for a single price.
      +     * Whether the item is a business-defined sub-API. A [sub-API]
      +     * (https://support.google.com/merchants/answer/6324449) is a custom
      +     * grouping of different products sold by a business for a single price.
            * 
      * * optional bool is_bundle = 5; @@ -11313,8 +11713,9 @@ public com.google.protobuf.TimestampOrBuilder getExpirationDateOrBuilder() { *
            * The date time when an offer becomes visible in search results across
            * Google’s YouTube surfaces, in [ISO
      -     * 8601](http://en.wikipedia.org/wiki/ISO_8601) format. See [Disclosure date](
      -     * https://support.google.com/merchants/answer/13034208) for more information.
      +     * 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
      +     * See [Disclosure date](https://support.google.com/merchants/answer/13034208)
      +     * for more information.
            * 
      * * .google.protobuf.Timestamp disclosure_date = 79; @@ -11331,8 +11732,9 @@ public boolean hasDisclosureDate() { *
            * The date time when an offer becomes visible in search results across
            * Google’s YouTube surfaces, in [ISO
      -     * 8601](http://en.wikipedia.org/wiki/ISO_8601) format. See [Disclosure date](
      -     * https://support.google.com/merchants/answer/13034208) for more information.
      +     * 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
      +     * See [Disclosure date](https://support.google.com/merchants/answer/13034208)
      +     * for more information.
            * 
      * * .google.protobuf.Timestamp disclosure_date = 79; @@ -11355,8 +11757,9 @@ public com.google.protobuf.Timestamp getDisclosureDate() { *
            * The date time when an offer becomes visible in search results across
            * Google’s YouTube surfaces, in [ISO
      -     * 8601](http://en.wikipedia.org/wiki/ISO_8601) format. See [Disclosure date](
      -     * https://support.google.com/merchants/answer/13034208) for more information.
      +     * 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
      +     * See [Disclosure date](https://support.google.com/merchants/answer/13034208)
      +     * for more information.
            * 
      * * .google.protobuf.Timestamp disclosure_date = 79; @@ -11381,8 +11784,9 @@ public Builder setDisclosureDate(com.google.protobuf.Timestamp value) { *
            * The date time when an offer becomes visible in search results across
            * Google’s YouTube surfaces, in [ISO
      -     * 8601](http://en.wikipedia.org/wiki/ISO_8601) format. See [Disclosure date](
      -     * https://support.google.com/merchants/answer/13034208) for more information.
      +     * 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
      +     * See [Disclosure date](https://support.google.com/merchants/answer/13034208)
      +     * for more information.
            * 
      * * .google.protobuf.Timestamp disclosure_date = 79; @@ -11404,8 +11808,9 @@ public Builder setDisclosureDate(com.google.protobuf.Timestamp.Builder builderFo *
            * The date time when an offer becomes visible in search results across
            * Google’s YouTube surfaces, in [ISO
      -     * 8601](http://en.wikipedia.org/wiki/ISO_8601) format. See [Disclosure date](
      -     * https://support.google.com/merchants/answer/13034208) for more information.
      +     * 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
      +     * See [Disclosure date](https://support.google.com/merchants/answer/13034208)
      +     * for more information.
            * 
      * * .google.protobuf.Timestamp disclosure_date = 79; @@ -11435,8 +11840,9 @@ public Builder mergeDisclosureDate(com.google.protobuf.Timestamp value) { *
            * The date time when an offer becomes visible in search results across
            * Google’s YouTube surfaces, in [ISO
      -     * 8601](http://en.wikipedia.org/wiki/ISO_8601) format. See [Disclosure date](
      -     * https://support.google.com/merchants/answer/13034208) for more information.
      +     * 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
      +     * See [Disclosure date](https://support.google.com/merchants/answer/13034208)
      +     * for more information.
            * 
      * * .google.protobuf.Timestamp disclosure_date = 79; @@ -11458,8 +11864,9 @@ public Builder clearDisclosureDate() { *
            * The date time when an offer becomes visible in search results across
            * Google’s YouTube surfaces, in [ISO
      -     * 8601](http://en.wikipedia.org/wiki/ISO_8601) format. See [Disclosure date](
      -     * https://support.google.com/merchants/answer/13034208) for more information.
      +     * 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
      +     * See [Disclosure date](https://support.google.com/merchants/answer/13034208)
      +     * for more information.
            * 
      * * .google.protobuf.Timestamp disclosure_date = 79; @@ -11476,8 +11883,9 @@ public com.google.protobuf.Timestamp.Builder getDisclosureDateBuilder() { *
            * The date time when an offer becomes visible in search results across
            * Google’s YouTube surfaces, in [ISO
      -     * 8601](http://en.wikipedia.org/wiki/ISO_8601) format. See [Disclosure date](
      -     * https://support.google.com/merchants/answer/13034208) for more information.
      +     * 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
      +     * See [Disclosure date](https://support.google.com/merchants/answer/13034208)
      +     * for more information.
            * 
      * * .google.protobuf.Timestamp disclosure_date = 79; @@ -11498,8 +11906,9 @@ public com.google.protobuf.TimestampOrBuilder getDisclosureDateOrBuilder() { *
            * The date time when an offer becomes visible in search results across
            * Google’s YouTube surfaces, in [ISO
      -     * 8601](http://en.wikipedia.org/wiki/ISO_8601) format. See [Disclosure date](
      -     * https://support.google.com/merchants/answer/13034208) for more information.
      +     * 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
      +     * See [Disclosure date](https://support.google.com/merchants/answer/13034208)
      +     * for more information.
            * 
      * * .google.protobuf.Timestamp disclosure_date = 79; @@ -11731,7 +12140,8 @@ public Builder setAgeGroupBytes(com.google.protobuf.ByteString value) { * * *
      -     * Availability status of the item.
      +     * [Availability](https://support.google.com/merchants/answer/6324448) status
      +     * of the item. For example, "in_stock" or "out_of_stock".
            * 
      * * optional string availability = 19; @@ -11746,7 +12156,8 @@ public boolean hasAvailability() { * * *
      -     * Availability status of the item.
      +     * [Availability](https://support.google.com/merchants/answer/6324448) status
      +     * of the item. For example, "in_stock" or "out_of_stock".
            * 
      * * optional string availability = 19; @@ -11769,7 +12180,8 @@ public java.lang.String getAvailability() { * * *
      -     * Availability status of the item.
      +     * [Availability](https://support.google.com/merchants/answer/6324448) status
      +     * of the item. For example, "in_stock" or "out_of_stock".
            * 
      * * optional string availability = 19; @@ -11792,7 +12204,8 @@ public com.google.protobuf.ByteString getAvailabilityBytes() { * * *
      -     * Availability status of the item.
      +     * [Availability](https://support.google.com/merchants/answer/6324448) status
      +     * of the item. For example, "in_stock" or "out_of_stock".
            * 
      * * optional string availability = 19; @@ -11814,7 +12227,8 @@ public Builder setAvailability(java.lang.String value) { * * *
      -     * Availability status of the item.
      +     * [Availability](https://support.google.com/merchants/answer/6324448) status
      +     * of the item. For example, "in_stock" or "out_of_stock".
            * 
      * * optional string availability = 19; @@ -11832,7 +12246,8 @@ public Builder clearAvailability() { * * *
      -     * Availability status of the item.
      +     * [Availability](https://support.google.com/merchants/answer/6324448) status
      +     * of the item. For example, "in_stock" or "out_of_stock".
            * 
      * * optional string availability = 19; @@ -12060,7 +12475,8 @@ public com.google.protobuf.TimestampOrBuilder getAvailabilityDateOrBuilder() { * * *
      -     * Brand of the item.
      +     * [Brand](https://support.google.com/merchants/answer/6324351) of the item.
      +     * For example, "Google".
            * 
      * * optional string brand = 21; @@ -12075,7 +12491,8 @@ public boolean hasBrand() { * * *
      -     * Brand of the item.
      +     * [Brand](https://support.google.com/merchants/answer/6324351) of the item.
      +     * For example, "Google".
            * 
      * * optional string brand = 21; @@ -12098,7 +12515,8 @@ public java.lang.String getBrand() { * * *
      -     * Brand of the item.
      +     * [Brand](https://support.google.com/merchants/answer/6324351) of the item.
      +     * For example, "Google".
            * 
      * * optional string brand = 21; @@ -12121,7 +12539,8 @@ public com.google.protobuf.ByteString getBrandBytes() { * * *
      -     * Brand of the item.
      +     * [Brand](https://support.google.com/merchants/answer/6324351) of the item.
      +     * For example, "Google".
            * 
      * * optional string brand = 21; @@ -12143,7 +12562,8 @@ public Builder setBrand(java.lang.String value) { * * *
      -     * Brand of the item.
      +     * [Brand](https://support.google.com/merchants/answer/6324351) of the item.
      +     * For example, "Google".
            * 
      * * optional string brand = 21; @@ -12161,7 +12581,8 @@ public Builder clearBrand() { * * *
      -     * Brand of the item.
      +     * [Brand](https://support.google.com/merchants/answer/6324351) of the item.
      +     * For example, "Google".
            * 
      * * optional string brand = 21; @@ -12186,7 +12607,8 @@ public Builder setBrandBytes(com.google.protobuf.ByteString value) { * * *
      -     * Color of the item.
      +     * [Color](https://support.google.com/merchants/answer/6324487) of the item.
      +     * For example, "red".
            * 
      * * optional string color = 22; @@ -12201,7 +12623,8 @@ public boolean hasColor() { * * *
      -     * Color of the item.
      +     * [Color](https://support.google.com/merchants/answer/6324487) of the item.
      +     * For example, "red".
            * 
      * * optional string color = 22; @@ -12224,7 +12647,8 @@ public java.lang.String getColor() { * * *
      -     * Color of the item.
      +     * [Color](https://support.google.com/merchants/answer/6324487) of the item.
      +     * For example, "red".
            * 
      * * optional string color = 22; @@ -12247,7 +12671,8 @@ public com.google.protobuf.ByteString getColorBytes() { * * *
      -     * Color of the item.
      +     * [Color](https://support.google.com/merchants/answer/6324487) of the item.
      +     * For example, "red".
            * 
      * * optional string color = 22; @@ -12269,7 +12694,8 @@ public Builder setColor(java.lang.String value) { * * *
      -     * Color of the item.
      +     * [Color](https://support.google.com/merchants/answer/6324487) of the item.
      +     * For example, "red".
            * 
      * * optional string color = 22; @@ -12287,7 +12713,8 @@ public Builder clearColor() { * * *
      -     * Color of the item.
      +     * [Color](https://support.google.com/merchants/answer/6324487) of the item.
      +     * For example, "red".
            * 
      * * optional string color = 22; @@ -12312,7 +12739,8 @@ public Builder setColorBytes(com.google.protobuf.ByteString value) { * * *
      -     * Condition or state of the item.
      +     * [Condition](https://support.google.com/merchants/answer/6324469) or state
      +     * of the item. For example, "new" or "used".
            * 
      * * optional string condition = 23; @@ -12327,7 +12755,8 @@ public boolean hasCondition() { * * *
      -     * Condition or state of the item.
      +     * [Condition](https://support.google.com/merchants/answer/6324469) or state
      +     * of the item. For example, "new" or "used".
            * 
      * * optional string condition = 23; @@ -12350,7 +12779,8 @@ public java.lang.String getCondition() { * * *
      -     * Condition or state of the item.
      +     * [Condition](https://support.google.com/merchants/answer/6324469) or state
      +     * of the item. For example, "new" or "used".
            * 
      * * optional string condition = 23; @@ -12373,7 +12803,8 @@ public com.google.protobuf.ByteString getConditionBytes() { * * *
      -     * Condition or state of the item.
      +     * [Condition](https://support.google.com/merchants/answer/6324469) or state
      +     * of the item. For example, "new" or "used".
            * 
      * * optional string condition = 23; @@ -12395,7 +12826,8 @@ public Builder setCondition(java.lang.String value) { * * *
      -     * Condition or state of the item.
      +     * [Condition](https://support.google.com/merchants/answer/6324469) or state
      +     * of the item. For example, "new" or "used".
            * 
      * * optional string condition = 23; @@ -12413,7 +12845,8 @@ public Builder clearCondition() { * * *
      -     * Condition or state of the item.
      +     * [Condition](https://support.google.com/merchants/answer/6324469) or state
      +     * of the item. For example, "new" or "used".
            * 
      * * optional string condition = 23; @@ -12438,7 +12871,8 @@ public Builder setConditionBytes(com.google.protobuf.ByteString value) { * * *
      -     * Target gender of the item.
      +     * Target [gender](https://support.google.com/merchants/answer/6324479) of the
      +     * item. For example, "male" or "female".
            * 
      * * optional string gender = 24; @@ -12453,7 +12887,8 @@ public boolean hasGender() { * * *
      -     * Target gender of the item.
      +     * Target [gender](https://support.google.com/merchants/answer/6324479) of the
      +     * item. For example, "male" or "female".
            * 
      * * optional string gender = 24; @@ -12476,7 +12911,8 @@ public java.lang.String getGender() { * * *
      -     * Target gender of the item.
      +     * Target [gender](https://support.google.com/merchants/answer/6324479) of the
      +     * item. For example, "male" or "female".
            * 
      * * optional string gender = 24; @@ -12499,7 +12935,8 @@ public com.google.protobuf.ByteString getGenderBytes() { * * *
      -     * Target gender of the item.
      +     * Target [gender](https://support.google.com/merchants/answer/6324479) of the
      +     * item. For example, "male" or "female".
            * 
      * * optional string gender = 24; @@ -12521,7 +12958,8 @@ public Builder setGender(java.lang.String value) { * * *
      -     * Target gender of the item.
      +     * Target [gender](https://support.google.com/merchants/answer/6324479) of the
      +     * item. For example, "male" or "female".
            * 
      * * optional string gender = 24; @@ -12539,7 +12977,8 @@ public Builder clearGender() { * * *
      -     * Target gender of the item.
      +     * Target [gender](https://support.google.com/merchants/answer/6324479) of the
      +     * item. For example, "male" or "female".
            * 
      * * optional string gender = 24; @@ -12726,12 +13165,17 @@ private void ensureGtinIsMutable() { * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the * item. * You can provide up to 10 GTINs. + * + * Deprecated: Use `gtins` instead. * * - * repeated string gtin = 26; + * repeated string gtin = 26 [deprecated = true]; * + * @deprecated google.shopping.merchant.products.v1beta.Attributes.gtin is deprecated. See + * google/shopping/merchant/products/v1beta/products_common.proto;l=132 * @return A list containing the gtin. */ + @java.lang.Deprecated public com.google.protobuf.ProtocolStringList getGtinList() { gtin_.makeImmutable(); return gtin_; @@ -12745,12 +13189,17 @@ public com.google.protobuf.ProtocolStringList getGtinList() { * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the * item. * You can provide up to 10 GTINs. + * + * Deprecated: Use `gtins` instead. * * - * repeated string gtin = 26; + * repeated string gtin = 26 [deprecated = true]; * + * @deprecated google.shopping.merchant.products.v1beta.Attributes.gtin is deprecated. See + * google/shopping/merchant/products/v1beta/products_common.proto;l=132 * @return The count of gtin. */ + @java.lang.Deprecated public int getGtinCount() { return gtin_.size(); } @@ -12763,13 +13212,18 @@ public int getGtinCount() { * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the * item. * You can provide up to 10 GTINs. + * + * Deprecated: Use `gtins` instead. * * - * repeated string gtin = 26; + * repeated string gtin = 26 [deprecated = true]; * + * @deprecated google.shopping.merchant.products.v1beta.Attributes.gtin is deprecated. See + * google/shopping/merchant/products/v1beta/products_common.proto;l=132 * @param index The index of the element to return. * @return The gtin at the given index. */ + @java.lang.Deprecated public java.lang.String getGtin(int index) { return gtin_.get(index); } @@ -12782,13 +13236,18 @@ public java.lang.String getGtin(int index) { * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the * item. * You can provide up to 10 GTINs. + * + * Deprecated: Use `gtins` instead. * * - * repeated string gtin = 26; + * repeated string gtin = 26 [deprecated = true]; * + * @deprecated google.shopping.merchant.products.v1beta.Attributes.gtin is deprecated. See + * google/shopping/merchant/products/v1beta/products_common.proto;l=132 * @param index The index of the value to return. * @return The bytes of the gtin at the given index. */ + @java.lang.Deprecated public com.google.protobuf.ByteString getGtinBytes(int index) { return gtin_.getByteString(index); } @@ -12801,14 +13260,19 @@ public com.google.protobuf.ByteString getGtinBytes(int index) { * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the * item. * You can provide up to 10 GTINs. + * + * Deprecated: Use `gtins` instead. * * - * repeated string gtin = 26; + * repeated string gtin = 26 [deprecated = true]; * + * @deprecated google.shopping.merchant.products.v1beta.Attributes.gtin is deprecated. See + * google/shopping/merchant/products/v1beta/products_common.proto;l=132 * @param index The index to set the value at. * @param value The gtin to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setGtin(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -12828,13 +13292,18 @@ public Builder setGtin(int index, java.lang.String value) { * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the * item. * You can provide up to 10 GTINs. + * + * Deprecated: Use `gtins` instead. * * - * repeated string gtin = 26; + * repeated string gtin = 26 [deprecated = true]; * + * @deprecated google.shopping.merchant.products.v1beta.Attributes.gtin is deprecated. See + * google/shopping/merchant/products/v1beta/products_common.proto;l=132 * @param value The gtin to add. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder addGtin(java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -12854,13 +13323,18 @@ public Builder addGtin(java.lang.String value) { * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the * item. * You can provide up to 10 GTINs. + * + * Deprecated: Use `gtins` instead. * * - * repeated string gtin = 26; + * repeated string gtin = 26 [deprecated = true]; * + * @deprecated google.shopping.merchant.products.v1beta.Attributes.gtin is deprecated. See + * google/shopping/merchant/products/v1beta/products_common.proto;l=132 * @param values The gtin to add. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder addAllGtin(java.lang.Iterable values) { ensureGtinIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, gtin_); @@ -12877,12 +13351,17 @@ public Builder addAllGtin(java.lang.Iterable values) { * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the * item. * You can provide up to 10 GTINs. + * + * Deprecated: Use `gtins` instead. * * - * repeated string gtin = 26; + * repeated string gtin = 26 [deprecated = true]; * + * @deprecated google.shopping.merchant.products.v1beta.Attributes.gtin is deprecated. See + * google/shopping/merchant/products/v1beta/products_common.proto;l=132 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearGtin() { gtin_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00100000); @@ -12899,13 +13378,18 @@ public Builder clearGtin() { * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the * item. * You can provide up to 10 GTINs. + * + * Deprecated: Use `gtins` instead. * * - * repeated string gtin = 26; + * repeated string gtin = 26 [deprecated = true]; * + * @deprecated google.shopping.merchant.products.v1beta.Attributes.gtin is deprecated. See + * google/shopping/merchant/products/v1beta/products_common.proto;l=132 * @param value The bytes of the gtin to add. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder addGtinBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -12918,6 +13402,216 @@ public Builder addGtinBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.LazyStringArrayList gtins_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureGtinsIsMutable() { + if (!gtins_.isModifiable()) { + gtins_ = new com.google.protobuf.LazyStringArrayList(gtins_); + } + bitField0_ |= 0x00200000; + } + + /** + * + * + *
      +     * Global Trade Item Numbers
      +     * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
      +     * item.
      +     * You can provide up to 10 GTINs.
      +     * 
      + * + * repeated string gtins = 140; + * + * @return A list containing the gtins. + */ + public com.google.protobuf.ProtocolStringList getGtinsList() { + gtins_.makeImmutable(); + return gtins_; + } + + /** + * + * + *
      +     * Global Trade Item Numbers
      +     * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
      +     * item.
      +     * You can provide up to 10 GTINs.
      +     * 
      + * + * repeated string gtins = 140; + * + * @return The count of gtins. + */ + public int getGtinsCount() { + return gtins_.size(); + } + + /** + * + * + *
      +     * Global Trade Item Numbers
      +     * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
      +     * item.
      +     * You can provide up to 10 GTINs.
      +     * 
      + * + * repeated string gtins = 140; + * + * @param index The index of the element to return. + * @return The gtins at the given index. + */ + public java.lang.String getGtins(int index) { + return gtins_.get(index); + } + + /** + * + * + *
      +     * Global Trade Item Numbers
      +     * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
      +     * item.
      +     * You can provide up to 10 GTINs.
      +     * 
      + * + * repeated string gtins = 140; + * + * @param index The index of the value to return. + * @return The bytes of the gtins at the given index. + */ + public com.google.protobuf.ByteString getGtinsBytes(int index) { + return gtins_.getByteString(index); + } + + /** + * + * + *
      +     * Global Trade Item Numbers
      +     * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
      +     * item.
      +     * You can provide up to 10 GTINs.
      +     * 
      + * + * repeated string gtins = 140; + * + * @param index The index to set the value at. + * @param value The gtins to set. + * @return This builder for chaining. + */ + public Builder setGtins(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureGtinsIsMutable(); + gtins_.set(index, value); + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Global Trade Item Numbers
      +     * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
      +     * item.
      +     * You can provide up to 10 GTINs.
      +     * 
      + * + * repeated string gtins = 140; + * + * @param value The gtins to add. + * @return This builder for chaining. + */ + public Builder addGtins(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureGtinsIsMutable(); + gtins_.add(value); + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Global Trade Item Numbers
      +     * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
      +     * item.
      +     * You can provide up to 10 GTINs.
      +     * 
      + * + * repeated string gtins = 140; + * + * @param values The gtins to add. + * @return This builder for chaining. + */ + public Builder addAllGtins(java.lang.Iterable values) { + ensureGtinsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, gtins_); + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Global Trade Item Numbers
      +     * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
      +     * item.
      +     * You can provide up to 10 GTINs.
      +     * 
      + * + * repeated string gtins = 140; + * + * @return This builder for chaining. + */ + public Builder clearGtins() { + gtins_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00200000); + ; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Global Trade Item Numbers
      +     * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
      +     * item.
      +     * You can provide up to 10 GTINs.
      +     * 
      + * + * repeated string gtins = 140; + * + * @param value The bytes of the gtins to add. + * @return This builder for chaining. + */ + public Builder addGtinsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureGtinsIsMutable(); + gtins_.add(value); + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + private java.lang.Object itemGroupId_ = ""; /** @@ -12932,7 +13626,7 @@ public Builder addGtinBytes(com.google.protobuf.ByteString value) { * @return Whether the itemGroupId field is set. */ public boolean hasItemGroupId() { - return ((bitField0_ & 0x00200000) != 0); + return ((bitField0_ & 0x00400000) != 0); } /** @@ -12998,7 +13692,7 @@ public Builder setItemGroupId(java.lang.String value) { throw new NullPointerException(); } itemGroupId_ = value; - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -13016,7 +13710,7 @@ public Builder setItemGroupId(java.lang.String value) { */ public Builder clearItemGroupId() { itemGroupId_ = getDefaultInstance().getItemGroupId(); - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x00400000); onChanged(); return this; } @@ -13039,7 +13733,7 @@ public Builder setItemGroupIdBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); itemGroupId_ = value; - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -13050,7 +13744,8 @@ public Builder setItemGroupIdBytes(com.google.protobuf.ByteString value) { * * *
      -     * The material of which the item is made.
      +     * The [material](https://support.google.com/merchants/answer/6324410) of
      +     * which the item is made. For example, "Leather" or "Cotton".
            * 
      * * optional string material = 28; @@ -13058,14 +13753,15 @@ public Builder setItemGroupIdBytes(com.google.protobuf.ByteString value) { * @return Whether the material field is set. */ public boolean hasMaterial() { - return ((bitField0_ & 0x00400000) != 0); + return ((bitField0_ & 0x00800000) != 0); } /** * * *
      -     * The material of which the item is made.
      +     * The [material](https://support.google.com/merchants/answer/6324410) of
      +     * which the item is made. For example, "Leather" or "Cotton".
            * 
      * * optional string material = 28; @@ -13088,7 +13784,8 @@ public java.lang.String getMaterial() { * * *
      -     * The material of which the item is made.
      +     * The [material](https://support.google.com/merchants/answer/6324410) of
      +     * which the item is made. For example, "Leather" or "Cotton".
            * 
      * * optional string material = 28; @@ -13111,7 +13808,8 @@ public com.google.protobuf.ByteString getMaterialBytes() { * * *
      -     * The material of which the item is made.
      +     * The [material](https://support.google.com/merchants/answer/6324410) of
      +     * which the item is made. For example, "Leather" or "Cotton".
            * 
      * * optional string material = 28; @@ -13124,7 +13822,7 @@ public Builder setMaterial(java.lang.String value) { throw new NullPointerException(); } material_ = value; - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -13133,7 +13831,8 @@ public Builder setMaterial(java.lang.String value) { * * *
      -     * The material of which the item is made.
      +     * The [material](https://support.google.com/merchants/answer/6324410) of
      +     * which the item is made. For example, "Leather" or "Cotton".
            * 
      * * optional string material = 28; @@ -13142,7 +13841,7 @@ public Builder setMaterial(java.lang.String value) { */ public Builder clearMaterial() { material_ = getDefaultInstance().getMaterial(); - bitField0_ = (bitField0_ & ~0x00400000); + bitField0_ = (bitField0_ & ~0x00800000); onChanged(); return this; } @@ -13151,7 +13850,8 @@ public Builder clearMaterial() { * * *
      -     * The material of which the item is made.
      +     * The [material](https://support.google.com/merchants/answer/6324410) of
      +     * which the item is made. For example, "Leather" or "Cotton".
            * 
      * * optional string material = 28; @@ -13165,7 +13865,7 @@ public Builder setMaterialBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); material_ = value; - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -13186,7 +13886,7 @@ public Builder setMaterialBytes(com.google.protobuf.ByteString value) { * @return Whether the mpn field is set. */ public boolean hasMpn() { - return ((bitField0_ & 0x00800000) != 0); + return ((bitField0_ & 0x01000000) != 0); } /** @@ -13258,7 +13958,7 @@ public Builder setMpn(java.lang.String value) { throw new NullPointerException(); } mpn_ = value; - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); return this; } @@ -13278,7 +13978,7 @@ public Builder setMpn(java.lang.String value) { */ public Builder clearMpn() { mpn_ = getDefaultInstance().getMpn(); - bitField0_ = (bitField0_ & ~0x00800000); + bitField0_ = (bitField0_ & ~0x01000000); onChanged(); return this; } @@ -13303,7 +14003,7 @@ public Builder setMpnBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); mpn_ = value; - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); return this; } @@ -13314,7 +14014,8 @@ public Builder setMpnBytes(com.google.protobuf.ByteString value) { * * *
      -     * The item's pattern (for example, polka dots).
      +     * The item's [pattern](https://support.google.com/merchants/answer/6324483).
      +     * For example, polka dots.
            * 
      * * optional string pattern = 30; @@ -13322,14 +14023,15 @@ public Builder setMpnBytes(com.google.protobuf.ByteString value) { * @return Whether the pattern field is set. */ public boolean hasPattern() { - return ((bitField0_ & 0x01000000) != 0); + return ((bitField0_ & 0x02000000) != 0); } /** * * *
      -     * The item's pattern (for example, polka dots).
      +     * The item's [pattern](https://support.google.com/merchants/answer/6324483).
      +     * For example, polka dots.
            * 
      * * optional string pattern = 30; @@ -13352,7 +14054,8 @@ public java.lang.String getPattern() { * * *
      -     * The item's pattern (for example, polka dots).
      +     * The item's [pattern](https://support.google.com/merchants/answer/6324483).
      +     * For example, polka dots.
            * 
      * * optional string pattern = 30; @@ -13375,7 +14078,8 @@ public com.google.protobuf.ByteString getPatternBytes() { * * *
      -     * The item's pattern (for example, polka dots).
      +     * The item's [pattern](https://support.google.com/merchants/answer/6324483).
      +     * For example, polka dots.
            * 
      * * optional string pattern = 30; @@ -13388,7 +14092,7 @@ public Builder setPattern(java.lang.String value) { throw new NullPointerException(); } pattern_ = value; - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; onChanged(); return this; } @@ -13397,7 +14101,8 @@ public Builder setPattern(java.lang.String value) { * * *
      -     * The item's pattern (for example, polka dots).
      +     * The item's [pattern](https://support.google.com/merchants/answer/6324483).
      +     * For example, polka dots.
            * 
      * * optional string pattern = 30; @@ -13406,7 +14111,7 @@ public Builder setPattern(java.lang.String value) { */ public Builder clearPattern() { pattern_ = getDefaultInstance().getPattern(); - bitField0_ = (bitField0_ & ~0x01000000); + bitField0_ = (bitField0_ & ~0x02000000); onChanged(); return this; } @@ -13415,7 +14120,8 @@ public Builder clearPattern() { * * *
      -     * The item's pattern (for example, polka dots).
      +     * The item's [pattern](https://support.google.com/merchants/answer/6324483).
      +     * For example, polka dots.
            * 
      * * optional string pattern = 30; @@ -13429,7 +14135,7 @@ public Builder setPatternBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); pattern_ = value; - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; onChanged(); return this; } @@ -13453,7 +14159,7 @@ public Builder setPatternBytes(com.google.protobuf.ByteString value) { * @return Whether the price field is set. */ public boolean hasPrice() { - return ((bitField0_ & 0x02000000) != 0); + return ((bitField0_ & 0x04000000) != 0); } /** @@ -13493,7 +14199,7 @@ public Builder setPrice(com.google.shopping.type.Price value) { } else { priceBuilder_.setMessage(value); } - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; onChanged(); return this; } @@ -13513,7 +14219,7 @@ public Builder setPrice(com.google.shopping.type.Price.Builder builderForValue) } else { priceBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; onChanged(); return this; } @@ -13529,7 +14235,7 @@ public Builder setPrice(com.google.shopping.type.Price.Builder builderForValue) */ public Builder mergePrice(com.google.shopping.type.Price value) { if (priceBuilder_ == null) { - if (((bitField0_ & 0x02000000) != 0) + if (((bitField0_ & 0x04000000) != 0) && price_ != null && price_ != com.google.shopping.type.Price.getDefaultInstance()) { getPriceBuilder().mergeFrom(value); @@ -13540,7 +14246,7 @@ public Builder mergePrice(com.google.shopping.type.Price value) { priceBuilder_.mergeFrom(value); } if (price_ != null) { - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; onChanged(); } return this; @@ -13556,7 +14262,7 @@ public Builder mergePrice(com.google.shopping.type.Price value) { * .google.shopping.type.Price price = 31; */ public Builder clearPrice() { - bitField0_ = (bitField0_ & ~0x02000000); + bitField0_ = (bitField0_ & ~0x04000000); price_ = null; if (priceBuilder_ != null) { priceBuilder_.dispose(); @@ -13576,7 +14282,7 @@ public Builder clearPrice() { * .google.shopping.type.Price price = 31; */ public com.google.shopping.type.Price.Builder getPriceBuilder() { - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; onChanged(); return getPriceFieldBuilder().getBuilder(); } @@ -13624,6 +14330,200 @@ public com.google.shopping.type.PriceOrBuilder getPriceOrBuilder() { return priceBuilder_; } + private com.google.shopping.type.Price maximumRetailPrice_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> + maximumRetailPriceBuilder_; + + /** + * + * + *
      +     * Maximum retail price (MRP) of the item. Applicable to India only.
      +     * 
      + * + * .google.shopping.type.Price maximum_retail_price = 139; + * + * @return Whether the maximumRetailPrice field is set. + */ + public boolean hasMaximumRetailPrice() { + return ((bitField0_ & 0x08000000) != 0); + } + + /** + * + * + *
      +     * Maximum retail price (MRP) of the item. Applicable to India only.
      +     * 
      + * + * .google.shopping.type.Price maximum_retail_price = 139; + * + * @return The maximumRetailPrice. + */ + public com.google.shopping.type.Price getMaximumRetailPrice() { + if (maximumRetailPriceBuilder_ == null) { + return maximumRetailPrice_ == null + ? com.google.shopping.type.Price.getDefaultInstance() + : maximumRetailPrice_; + } else { + return maximumRetailPriceBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Maximum retail price (MRP) of the item. Applicable to India only.
      +     * 
      + * + * .google.shopping.type.Price maximum_retail_price = 139; + */ + public Builder setMaximumRetailPrice(com.google.shopping.type.Price value) { + if (maximumRetailPriceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + maximumRetailPrice_ = value; + } else { + maximumRetailPriceBuilder_.setMessage(value); + } + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Maximum retail price (MRP) of the item. Applicable to India only.
      +     * 
      + * + * .google.shopping.type.Price maximum_retail_price = 139; + */ + public Builder setMaximumRetailPrice(com.google.shopping.type.Price.Builder builderForValue) { + if (maximumRetailPriceBuilder_ == null) { + maximumRetailPrice_ = builderForValue.build(); + } else { + maximumRetailPriceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Maximum retail price (MRP) of the item. Applicable to India only.
      +     * 
      + * + * .google.shopping.type.Price maximum_retail_price = 139; + */ + public Builder mergeMaximumRetailPrice(com.google.shopping.type.Price value) { + if (maximumRetailPriceBuilder_ == null) { + if (((bitField0_ & 0x08000000) != 0) + && maximumRetailPrice_ != null + && maximumRetailPrice_ != com.google.shopping.type.Price.getDefaultInstance()) { + getMaximumRetailPriceBuilder().mergeFrom(value); + } else { + maximumRetailPrice_ = value; + } + } else { + maximumRetailPriceBuilder_.mergeFrom(value); + } + if (maximumRetailPrice_ != null) { + bitField0_ |= 0x08000000; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Maximum retail price (MRP) of the item. Applicable to India only.
      +     * 
      + * + * .google.shopping.type.Price maximum_retail_price = 139; + */ + public Builder clearMaximumRetailPrice() { + bitField0_ = (bitField0_ & ~0x08000000); + maximumRetailPrice_ = null; + if (maximumRetailPriceBuilder_ != null) { + maximumRetailPriceBuilder_.dispose(); + maximumRetailPriceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Maximum retail price (MRP) of the item. Applicable to India only.
      +     * 
      + * + * .google.shopping.type.Price maximum_retail_price = 139; + */ + public com.google.shopping.type.Price.Builder getMaximumRetailPriceBuilder() { + bitField0_ |= 0x08000000; + onChanged(); + return getMaximumRetailPriceFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Maximum retail price (MRP) of the item. Applicable to India only.
      +     * 
      + * + * .google.shopping.type.Price maximum_retail_price = 139; + */ + public com.google.shopping.type.PriceOrBuilder getMaximumRetailPriceOrBuilder() { + if (maximumRetailPriceBuilder_ != null) { + return maximumRetailPriceBuilder_.getMessageOrBuilder(); + } else { + return maximumRetailPrice_ == null + ? com.google.shopping.type.Price.getDefaultInstance() + : maximumRetailPrice_; + } + } + + /** + * + * + *
      +     * Maximum retail price (MRP) of the item. Applicable to India only.
      +     * 
      + * + * .google.shopping.type.Price maximum_retail_price = 139; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> + getMaximumRetailPriceFieldBuilder() { + if (maximumRetailPriceBuilder_ == null) { + maximumRetailPriceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder>( + getMaximumRetailPrice(), getParentForChildren(), isClean()); + maximumRetailPrice_ = null; + } + return maximumRetailPriceBuilder_; + } + private com.google.shopping.merchant.products.v1beta.Installment installment_; private com.google.protobuf.SingleFieldBuilderV3< com.google.shopping.merchant.products.v1beta.Installment, @@ -13643,7 +14543,7 @@ public com.google.shopping.type.PriceOrBuilder getPriceOrBuilder() { * @return Whether the installment field is set. */ public boolean hasInstallment() { - return ((bitField0_ & 0x04000000) != 0); + return ((bitField0_ & 0x10000000) != 0); } /** @@ -13685,7 +14585,7 @@ public Builder setInstallment(com.google.shopping.merchant.products.v1beta.Insta } else { installmentBuilder_.setMessage(value); } - bitField0_ |= 0x04000000; + bitField0_ |= 0x10000000; onChanged(); return this; } @@ -13706,7 +14606,7 @@ public Builder setInstallment( } else { installmentBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x04000000; + bitField0_ |= 0x10000000; onChanged(); return this; } @@ -13723,7 +14623,7 @@ public Builder setInstallment( public Builder mergeInstallment( com.google.shopping.merchant.products.v1beta.Installment value) { if (installmentBuilder_ == null) { - if (((bitField0_ & 0x04000000) != 0) + if (((bitField0_ & 0x10000000) != 0) && installment_ != null && installment_ != com.google.shopping.merchant.products.v1beta.Installment.getDefaultInstance()) { @@ -13735,7 +14635,7 @@ public Builder mergeInstallment( installmentBuilder_.mergeFrom(value); } if (installment_ != null) { - bitField0_ |= 0x04000000; + bitField0_ |= 0x10000000; onChanged(); } return this; @@ -13751,7 +14651,7 @@ public Builder mergeInstallment( * .google.shopping.merchant.products.v1beta.Installment installment = 32; */ public Builder clearInstallment() { - bitField0_ = (bitField0_ & ~0x04000000); + bitField0_ = (bitField0_ & ~0x10000000); installment_ = null; if (installmentBuilder_ != null) { installmentBuilder_.dispose(); @@ -13772,7 +14672,7 @@ public Builder clearInstallment() { */ public com.google.shopping.merchant.products.v1beta.Installment.Builder getInstallmentBuilder() { - bitField0_ |= 0x04000000; + bitField0_ |= 0x10000000; onChanged(); return getInstallmentFieldBuilder().getBuilder(); } @@ -13844,7 +14744,7 @@ public Builder clearInstallment() { * @return Whether the subscriptionCost field is set. */ public boolean hasSubscriptionCost() { - return ((bitField0_ & 0x08000000) != 0); + return ((bitField0_ & 0x20000000) != 0); } /** @@ -13891,7 +14791,7 @@ public Builder setSubscriptionCost( } else { subscriptionCostBuilder_.setMessage(value); } - bitField0_ |= 0x08000000; + bitField0_ |= 0x20000000; onChanged(); return this; } @@ -13914,7 +14814,7 @@ public Builder setSubscriptionCost( } else { subscriptionCostBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x08000000; + bitField0_ |= 0x20000000; onChanged(); return this; } @@ -13933,7 +14833,7 @@ public Builder setSubscriptionCost( public Builder mergeSubscriptionCost( com.google.shopping.merchant.products.v1beta.SubscriptionCost value) { if (subscriptionCostBuilder_ == null) { - if (((bitField0_ & 0x08000000) != 0) + if (((bitField0_ & 0x20000000) != 0) && subscriptionCost_ != null && subscriptionCost_ != com.google.shopping.merchant.products.v1beta.SubscriptionCost @@ -13946,7 +14846,7 @@ public Builder mergeSubscriptionCost( subscriptionCostBuilder_.mergeFrom(value); } if (subscriptionCost_ != null) { - bitField0_ |= 0x08000000; + bitField0_ |= 0x20000000; onChanged(); } return this; @@ -13964,7 +14864,7 @@ public Builder mergeSubscriptionCost( * */ public Builder clearSubscriptionCost() { - bitField0_ = (bitField0_ & ~0x08000000); + bitField0_ = (bitField0_ & ~0x20000000); subscriptionCost_ = null; if (subscriptionCostBuilder_ != null) { subscriptionCostBuilder_.dispose(); @@ -13987,7 +14887,7 @@ public Builder clearSubscriptionCost() { */ public com.google.shopping.merchant.products.v1beta.SubscriptionCost.Builder getSubscriptionCostBuilder() { - bitField0_ |= 0x08000000; + bitField0_ |= 0x20000000; onChanged(); return getSubscriptionCostFieldBuilder().getBuilder(); } @@ -14061,7 +14961,7 @@ public Builder clearSubscriptionCost() { * @return Whether the loyaltyPoints field is set. */ public boolean hasLoyaltyPoints() { - return ((bitField0_ & 0x10000000) != 0); + return ((bitField0_ & 0x40000000) != 0); } /** @@ -14104,7 +15004,7 @@ public Builder setLoyaltyPoints( } else { loyaltyPointsBuilder_.setMessage(value); } - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; onChanged(); return this; } @@ -14125,7 +15025,7 @@ public Builder setLoyaltyPoints( } else { loyaltyPointsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; onChanged(); return this; } @@ -14142,7 +15042,7 @@ public Builder setLoyaltyPoints( public Builder mergeLoyaltyPoints( com.google.shopping.merchant.products.v1beta.LoyaltyPoints value) { if (loyaltyPointsBuilder_ == null) { - if (((bitField0_ & 0x10000000) != 0) + if (((bitField0_ & 0x40000000) != 0) && loyaltyPoints_ != null && loyaltyPoints_ != com.google.shopping.merchant.products.v1beta.LoyaltyPoints @@ -14155,7 +15055,7 @@ public Builder mergeLoyaltyPoints( loyaltyPointsBuilder_.mergeFrom(value); } if (loyaltyPoints_ != null) { - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; onChanged(); } return this; @@ -14171,7 +15071,7 @@ public Builder mergeLoyaltyPoints( * .google.shopping.merchant.products.v1beta.LoyaltyPoints loyalty_points = 34; */ public Builder clearLoyaltyPoints() { - bitField0_ = (bitField0_ & ~0x10000000); + bitField0_ = (bitField0_ & ~0x40000000); loyaltyPoints_ = null; if (loyaltyPointsBuilder_ != null) { loyaltyPointsBuilder_.dispose(); @@ -14192,7 +15092,7 @@ public Builder clearLoyaltyPoints() { */ public com.google.shopping.merchant.products.v1beta.LoyaltyPoints.Builder getLoyaltyPointsBuilder() { - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; onChanged(); return getLoyaltyPointsFieldBuilder().getBuilder(); } @@ -14247,11 +15147,11 @@ public Builder clearLoyaltyPoints() { loyaltyPrograms_ = java.util.Collections.emptyList(); private void ensureLoyaltyProgramsIsMutable() { - if (!((bitField0_ & 0x20000000) != 0)) { + if (!((bitField0_ & 0x80000000) != 0)) { loyaltyPrograms_ = new java.util.ArrayList( loyaltyPrograms_); - bitField0_ |= 0x20000000; + bitField0_ |= 0x80000000; } } @@ -14529,7 +15429,7 @@ public Builder addAllLoyaltyPrograms( public Builder clearLoyaltyPrograms() { if (loyaltyProgramsBuilder_ == null) { loyaltyPrograms_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x20000000); + bitField0_ = (bitField0_ & ~0x80000000); onChanged(); } else { loyaltyProgramsBuilder_.clear(); @@ -14695,7 +15595,7 @@ public Builder removeLoyaltyPrograms(int index) { com.google.shopping.merchant.products.v1beta.LoyaltyProgram.Builder, com.google.shopping.merchant.products.v1beta.LoyaltyProgramOrBuilder>( loyaltyPrograms_, - ((bitField0_ & 0x20000000) != 0), + ((bitField0_ & 0x80000000) != 0), getParentForChildren(), isClean()); loyaltyPrograms_ = null; @@ -14710,7 +15610,7 @@ private void ensureProductTypesIsMutable() { if (!productTypes_.isModifiable()) { productTypes_ = new com.google.protobuf.LazyStringArrayList(productTypes_); } - bitField0_ |= 0x40000000; + bitField1_ |= 0x00000001; } /** @@ -14718,7 +15618,7 @@ private void ensureProductTypesIsMutable() { * *
            * Categories of the item (formatted as in [product data
      -     * specification](https://support.google.com/merchants/answer/188494#product_type)).
      +     * specification](https://support.google.com/merchants/answer/7052112#product_category)).
            * 
      * * repeated string product_types = 35; @@ -14735,7 +15635,7 @@ public com.google.protobuf.ProtocolStringList getProductTypesList() { * *
            * Categories of the item (formatted as in [product data
      -     * specification](https://support.google.com/merchants/answer/188494#product_type)).
      +     * specification](https://support.google.com/merchants/answer/7052112#product_category)).
            * 
      * * repeated string product_types = 35; @@ -14751,7 +15651,7 @@ public int getProductTypesCount() { * *
            * Categories of the item (formatted as in [product data
      -     * specification](https://support.google.com/merchants/answer/188494#product_type)).
      +     * specification](https://support.google.com/merchants/answer/7052112#product_category)).
            * 
      * * repeated string product_types = 35; @@ -14768,7 +15668,7 @@ public java.lang.String getProductTypes(int index) { * *
            * Categories of the item (formatted as in [product data
      -     * specification](https://support.google.com/merchants/answer/188494#product_type)).
      +     * specification](https://support.google.com/merchants/answer/7052112#product_category)).
            * 
      * * repeated string product_types = 35; @@ -14785,7 +15685,7 @@ public com.google.protobuf.ByteString getProductTypesBytes(int index) { * *
            * Categories of the item (formatted as in [product data
      -     * specification](https://support.google.com/merchants/answer/188494#product_type)).
      +     * specification](https://support.google.com/merchants/answer/7052112#product_category)).
            * 
      * * repeated string product_types = 35; @@ -14800,7 +15700,7 @@ public Builder setProductTypes(int index, java.lang.String value) { } ensureProductTypesIsMutable(); productTypes_.set(index, value); - bitField0_ |= 0x40000000; + bitField1_ |= 0x00000001; onChanged(); return this; } @@ -14810,7 +15710,7 @@ public Builder setProductTypes(int index, java.lang.String value) { * *
            * Categories of the item (formatted as in [product data
      -     * specification](https://support.google.com/merchants/answer/188494#product_type)).
      +     * specification](https://support.google.com/merchants/answer/7052112#product_category)).
            * 
      * * repeated string product_types = 35; @@ -14824,7 +15724,7 @@ public Builder addProductTypes(java.lang.String value) { } ensureProductTypesIsMutable(); productTypes_.add(value); - bitField0_ |= 0x40000000; + bitField1_ |= 0x00000001; onChanged(); return this; } @@ -14834,7 +15734,7 @@ public Builder addProductTypes(java.lang.String value) { * *
            * Categories of the item (formatted as in [product data
      -     * specification](https://support.google.com/merchants/answer/188494#product_type)).
      +     * specification](https://support.google.com/merchants/answer/7052112#product_category)).
            * 
      * * repeated string product_types = 35; @@ -14845,7 +15745,7 @@ public Builder addProductTypes(java.lang.String value) { public Builder addAllProductTypes(java.lang.Iterable values) { ensureProductTypesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, productTypes_); - bitField0_ |= 0x40000000; + bitField1_ |= 0x00000001; onChanged(); return this; } @@ -14855,7 +15755,7 @@ public Builder addAllProductTypes(java.lang.Iterable values) { * *
            * Categories of the item (formatted as in [product data
      -     * specification](https://support.google.com/merchants/answer/188494#product_type)).
      +     * specification](https://support.google.com/merchants/answer/7052112#product_category)).
            * 
      * * repeated string product_types = 35; @@ -14864,7 +15764,7 @@ public Builder addAllProductTypes(java.lang.Iterable values) { */ public Builder clearProductTypes() { productTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x40000000); + bitField1_ = (bitField1_ & ~0x00000001); ; onChanged(); return this; @@ -14875,7 +15775,7 @@ public Builder clearProductTypes() { * *
            * Categories of the item (formatted as in [product data
      -     * specification](https://support.google.com/merchants/answer/188494#product_type)).
      +     * specification](https://support.google.com/merchants/answer/7052112#product_category)).
            * 
      * * repeated string product_types = 35; @@ -14890,7 +15790,7 @@ public Builder addProductTypesBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureProductTypesIsMutable(); productTypes_.add(value); - bitField0_ |= 0x40000000; + bitField1_ |= 0x00000001; onChanged(); return this; } @@ -14914,7 +15814,7 @@ public Builder addProductTypesBytes(com.google.protobuf.ByteString value) { * @return Whether the salePrice field is set. */ public boolean hasSalePrice() { - return ((bitField0_ & 0x80000000) != 0); + return ((bitField1_ & 0x00000002) != 0); } /** @@ -14956,7 +15856,7 @@ public Builder setSalePrice(com.google.shopping.type.Price value) { } else { salePriceBuilder_.setMessage(value); } - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000002; onChanged(); return this; } @@ -14976,7 +15876,7 @@ public Builder setSalePrice(com.google.shopping.type.Price.Builder builderForVal } else { salePriceBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000002; onChanged(); return this; } @@ -14992,7 +15892,7 @@ public Builder setSalePrice(com.google.shopping.type.Price.Builder builderForVal */ public Builder mergeSalePrice(com.google.shopping.type.Price value) { if (salePriceBuilder_ == null) { - if (((bitField0_ & 0x80000000) != 0) + if (((bitField1_ & 0x00000002) != 0) && salePrice_ != null && salePrice_ != com.google.shopping.type.Price.getDefaultInstance()) { getSalePriceBuilder().mergeFrom(value); @@ -15003,7 +15903,7 @@ public Builder mergeSalePrice(com.google.shopping.type.Price value) { salePriceBuilder_.mergeFrom(value); } if (salePrice_ != null) { - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000002; onChanged(); } return this; @@ -15019,7 +15919,7 @@ public Builder mergeSalePrice(com.google.shopping.type.Price value) { * .google.shopping.type.Price sale_price = 36; */ public Builder clearSalePrice() { - bitField0_ = (bitField0_ & ~0x80000000); + bitField1_ = (bitField1_ & ~0x00000002); salePrice_ = null; if (salePriceBuilder_ != null) { salePriceBuilder_.dispose(); @@ -15039,7 +15939,7 @@ public Builder clearSalePrice() { * .google.shopping.type.Price sale_price = 36; */ public com.google.shopping.type.Price.Builder getSalePriceBuilder() { - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000002; onChanged(); return getSalePriceFieldBuilder().getBuilder(); } @@ -15100,8 +16000,8 @@ public com.google.shopping.type.PriceOrBuilder getSalePriceOrBuilder() { * * *
      -     * Date range during which the item is on sale (see [product data
      -     * specification](https://support.google.com/merchants/answer/188494#sale_price_effective_date)).
      +     * Date range during which the item is on sale, see [product data
      +     * specification](https://support.google.com/merchants/answer/7052112#price_and_availability).
            * 
      * * .google.type.Interval sale_price_effective_date = 37; @@ -15109,15 +16009,15 @@ public com.google.shopping.type.PriceOrBuilder getSalePriceOrBuilder() { * @return Whether the salePriceEffectiveDate field is set. */ public boolean hasSalePriceEffectiveDate() { - return ((bitField1_ & 0x00000001) != 0); + return ((bitField1_ & 0x00000004) != 0); } /** * * *
      -     * Date range during which the item is on sale (see [product data
      -     * specification](https://support.google.com/merchants/answer/188494#sale_price_effective_date)).
      +     * Date range during which the item is on sale, see [product data
      +     * specification](https://support.google.com/merchants/answer/7052112#price_and_availability).
            * 
      * * .google.type.Interval sale_price_effective_date = 37; @@ -15138,8 +16038,8 @@ public com.google.type.Interval getSalePriceEffectiveDate() { * * *
      -     * Date range during which the item is on sale (see [product data
      -     * specification](https://support.google.com/merchants/answer/188494#sale_price_effective_date)).
      +     * Date range during which the item is on sale, see [product data
      +     * specification](https://support.google.com/merchants/answer/7052112#price_and_availability).
            * 
      * * .google.type.Interval sale_price_effective_date = 37; @@ -15153,7 +16053,7 @@ public Builder setSalePriceEffectiveDate(com.google.type.Interval value) { } else { salePriceEffectiveDateBuilder_.setMessage(value); } - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000004; onChanged(); return this; } @@ -15162,8 +16062,8 @@ public Builder setSalePriceEffectiveDate(com.google.type.Interval value) { * * *
      -     * Date range during which the item is on sale (see [product data
      -     * specification](https://support.google.com/merchants/answer/188494#sale_price_effective_date)).
      +     * Date range during which the item is on sale, see [product data
      +     * specification](https://support.google.com/merchants/answer/7052112#price_and_availability).
            * 
      * * .google.type.Interval sale_price_effective_date = 37; @@ -15174,7 +16074,7 @@ public Builder setSalePriceEffectiveDate(com.google.type.Interval.Builder builde } else { salePriceEffectiveDateBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000004; onChanged(); return this; } @@ -15183,15 +16083,15 @@ public Builder setSalePriceEffectiveDate(com.google.type.Interval.Builder builde * * *
      -     * Date range during which the item is on sale (see [product data
      -     * specification](https://support.google.com/merchants/answer/188494#sale_price_effective_date)).
      +     * Date range during which the item is on sale, see [product data
      +     * specification](https://support.google.com/merchants/answer/7052112#price_and_availability).
            * 
      * * .google.type.Interval sale_price_effective_date = 37; */ public Builder mergeSalePriceEffectiveDate(com.google.type.Interval value) { if (salePriceEffectiveDateBuilder_ == null) { - if (((bitField1_ & 0x00000001) != 0) + if (((bitField1_ & 0x00000004) != 0) && salePriceEffectiveDate_ != null && salePriceEffectiveDate_ != com.google.type.Interval.getDefaultInstance()) { getSalePriceEffectiveDateBuilder().mergeFrom(value); @@ -15202,7 +16102,7 @@ public Builder mergeSalePriceEffectiveDate(com.google.type.Interval value) { salePriceEffectiveDateBuilder_.mergeFrom(value); } if (salePriceEffectiveDate_ != null) { - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000004; onChanged(); } return this; @@ -15212,14 +16112,14 @@ public Builder mergeSalePriceEffectiveDate(com.google.type.Interval value) { * * *
      -     * Date range during which the item is on sale (see [product data
      -     * specification](https://support.google.com/merchants/answer/188494#sale_price_effective_date)).
      +     * Date range during which the item is on sale, see [product data
      +     * specification](https://support.google.com/merchants/answer/7052112#price_and_availability).
            * 
      * * .google.type.Interval sale_price_effective_date = 37; */ public Builder clearSalePriceEffectiveDate() { - bitField1_ = (bitField1_ & ~0x00000001); + bitField1_ = (bitField1_ & ~0x00000004); salePriceEffectiveDate_ = null; if (salePriceEffectiveDateBuilder_ != null) { salePriceEffectiveDateBuilder_.dispose(); @@ -15233,14 +16133,14 @@ public Builder clearSalePriceEffectiveDate() { * * *
      -     * Date range during which the item is on sale (see [product data
      -     * specification](https://support.google.com/merchants/answer/188494#sale_price_effective_date)).
      +     * Date range during which the item is on sale, see [product data
      +     * specification](https://support.google.com/merchants/answer/7052112#price_and_availability).
            * 
      * * .google.type.Interval sale_price_effective_date = 37; */ public com.google.type.Interval.Builder getSalePriceEffectiveDateBuilder() { - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000004; onChanged(); return getSalePriceEffectiveDateFieldBuilder().getBuilder(); } @@ -15249,8 +16149,8 @@ public com.google.type.Interval.Builder getSalePriceEffectiveDateBuilder() { * * *
      -     * Date range during which the item is on sale (see [product data
      -     * specification](https://support.google.com/merchants/answer/188494#sale_price_effective_date)).
      +     * Date range during which the item is on sale, see [product data
      +     * specification](https://support.google.com/merchants/answer/7052112#price_and_availability).
            * 
      * * .google.type.Interval sale_price_effective_date = 37; @@ -15269,8 +16169,8 @@ public com.google.type.IntervalOrBuilder getSalePriceEffectiveDateOrBuilder() { * * *
      -     * Date range during which the item is on sale (see [product data
      -     * specification](https://support.google.com/merchants/answer/188494#sale_price_effective_date)).
      +     * Date range during which the item is on sale, see [product data
      +     * specification](https://support.google.com/merchants/answer/7052112#price_and_availability).
            * 
      * * .google.type.Interval sale_price_effective_date = 37; @@ -15308,7 +16208,7 @@ public com.google.type.IntervalOrBuilder getSalePriceEffectiveDateOrBuilder() { */ @java.lang.Override public boolean hasSellOnGoogleQuantity() { - return ((bitField1_ & 0x00000002) != 0); + return ((bitField1_ & 0x00000008) != 0); } /** @@ -15344,7 +16244,7 @@ public long getSellOnGoogleQuantity() { public Builder setSellOnGoogleQuantity(long value) { sellOnGoogleQuantity_ = value; - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000008; onChanged(); return this; } @@ -15362,7 +16262,7 @@ public Builder setSellOnGoogleQuantity(long value) { * @return This builder for chaining. */ public Builder clearSellOnGoogleQuantity() { - bitField1_ = (bitField1_ & ~0x00000002); + bitField1_ = (bitField1_ & ~0x00000008); sellOnGoogleQuantity_ = 0L; onChanged(); return this; @@ -15389,7 +16289,7 @@ public Builder clearSellOnGoogleQuantity() { * @return Whether the productHeight field is set. */ public boolean hasProductHeight() { - return ((bitField1_ & 0x00000004) != 0); + return ((bitField1_ & 0x00000010) != 0); } /** @@ -15436,7 +16336,7 @@ public Builder setProductHeight( } else { productHeightBuilder_.setMessage(value); } - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000010; onChanged(); return this; } @@ -15459,7 +16359,7 @@ public Builder setProductHeight( } else { productHeightBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000010; onChanged(); return this; } @@ -15478,7 +16378,7 @@ public Builder setProductHeight( public Builder mergeProductHeight( com.google.shopping.merchant.products.v1beta.ProductDimension value) { if (productHeightBuilder_ == null) { - if (((bitField1_ & 0x00000004) != 0) + if (((bitField1_ & 0x00000010) != 0) && productHeight_ != null && productHeight_ != com.google.shopping.merchant.products.v1beta.ProductDimension @@ -15491,7 +16391,7 @@ public Builder mergeProductHeight( productHeightBuilder_.mergeFrom(value); } if (productHeight_ != null) { - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000010; onChanged(); } return this; @@ -15509,7 +16409,7 @@ public Builder mergeProductHeight( * .google.shopping.merchant.products.v1beta.ProductDimension product_height = 119; */ public Builder clearProductHeight() { - bitField1_ = (bitField1_ & ~0x00000004); + bitField1_ = (bitField1_ & ~0x00000010); productHeight_ = null; if (productHeightBuilder_ != null) { productHeightBuilder_.dispose(); @@ -15532,7 +16432,7 @@ public Builder clearProductHeight() { */ public com.google.shopping.merchant.products.v1beta.ProductDimension.Builder getProductHeightBuilder() { - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000010; onChanged(); return getProductHeightFieldBuilder().getBuilder(); } @@ -15607,7 +16507,7 @@ public Builder clearProductHeight() { * @return Whether the productLength field is set. */ public boolean hasProductLength() { - return ((bitField1_ & 0x00000008) != 0); + return ((bitField1_ & 0x00000020) != 0); } /** @@ -15652,7 +16552,7 @@ public Builder setProductLength( } else { productLengthBuilder_.setMessage(value); } - bitField1_ |= 0x00000008; + bitField1_ |= 0x00000020; onChanged(); return this; } @@ -15674,7 +16574,7 @@ public Builder setProductLength( } else { productLengthBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00000008; + bitField1_ |= 0x00000020; onChanged(); return this; } @@ -15692,7 +16592,7 @@ public Builder setProductLength( public Builder mergeProductLength( com.google.shopping.merchant.products.v1beta.ProductDimension value) { if (productLengthBuilder_ == null) { - if (((bitField1_ & 0x00000008) != 0) + if (((bitField1_ & 0x00000020) != 0) && productLength_ != null && productLength_ != com.google.shopping.merchant.products.v1beta.ProductDimension @@ -15705,7 +16605,7 @@ public Builder mergeProductLength( productLengthBuilder_.mergeFrom(value); } if (productLength_ != null) { - bitField1_ |= 0x00000008; + bitField1_ |= 0x00000020; onChanged(); } return this; @@ -15722,7 +16622,7 @@ public Builder mergeProductLength( * .google.shopping.merchant.products.v1beta.ProductDimension product_length = 120; */ public Builder clearProductLength() { - bitField1_ = (bitField1_ & ~0x00000008); + bitField1_ = (bitField1_ & ~0x00000020); productLength_ = null; if (productLengthBuilder_ != null) { productLengthBuilder_.dispose(); @@ -15744,7 +16644,7 @@ public Builder clearProductLength() { */ public com.google.shopping.merchant.products.v1beta.ProductDimension.Builder getProductLengthBuilder() { - bitField1_ |= 0x00000008; + bitField1_ |= 0x00000020; onChanged(); return getProductLengthFieldBuilder().getBuilder(); } @@ -15817,7 +16717,7 @@ public Builder clearProductLength() { * @return Whether the productWidth field is set. */ public boolean hasProductWidth() { - return ((bitField1_ & 0x00000010) != 0); + return ((bitField1_ & 0x00000040) != 0); } /** @@ -15862,7 +16762,7 @@ public Builder setProductWidth( } else { productWidthBuilder_.setMessage(value); } - bitField1_ |= 0x00000010; + bitField1_ |= 0x00000040; onChanged(); return this; } @@ -15884,7 +16784,7 @@ public Builder setProductWidth( } else { productWidthBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00000010; + bitField1_ |= 0x00000040; onChanged(); return this; } @@ -15902,7 +16802,7 @@ public Builder setProductWidth( public Builder mergeProductWidth( com.google.shopping.merchant.products.v1beta.ProductDimension value) { if (productWidthBuilder_ == null) { - if (((bitField1_ & 0x00000010) != 0) + if (((bitField1_ & 0x00000040) != 0) && productWidth_ != null && productWidth_ != com.google.shopping.merchant.products.v1beta.ProductDimension @@ -15915,7 +16815,7 @@ public Builder mergeProductWidth( productWidthBuilder_.mergeFrom(value); } if (productWidth_ != null) { - bitField1_ |= 0x00000010; + bitField1_ |= 0x00000040; onChanged(); } return this; @@ -15932,7 +16832,7 @@ public Builder mergeProductWidth( * .google.shopping.merchant.products.v1beta.ProductDimension product_width = 121; */ public Builder clearProductWidth() { - bitField1_ = (bitField1_ & ~0x00000010); + bitField1_ = (bitField1_ & ~0x00000040); productWidth_ = null; if (productWidthBuilder_ != null) { productWidthBuilder_.dispose(); @@ -15954,7 +16854,7 @@ public Builder clearProductWidth() { */ public com.google.shopping.merchant.products.v1beta.ProductDimension.Builder getProductWidthBuilder() { - bitField1_ |= 0x00000010; + bitField1_ |= 0x00000040; onChanged(); return getProductWidthFieldBuilder().getBuilder(); } @@ -16027,7 +16927,7 @@ public Builder clearProductWidth() { * @return Whether the productWeight field is set. */ public boolean hasProductWeight() { - return ((bitField1_ & 0x00000020) != 0); + return ((bitField1_ & 0x00000080) != 0); } /** @@ -16072,7 +16972,7 @@ public Builder setProductWeight( } else { productWeightBuilder_.setMessage(value); } - bitField1_ |= 0x00000020; + bitField1_ |= 0x00000080; onChanged(); return this; } @@ -16094,7 +16994,7 @@ public Builder setProductWeight( } else { productWeightBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00000020; + bitField1_ |= 0x00000080; onChanged(); return this; } @@ -16112,7 +17012,7 @@ public Builder setProductWeight( public Builder mergeProductWeight( com.google.shopping.merchant.products.v1beta.ProductWeight value) { if (productWeightBuilder_ == null) { - if (((bitField1_ & 0x00000020) != 0) + if (((bitField1_ & 0x00000080) != 0) && productWeight_ != null && productWeight_ != com.google.shopping.merchant.products.v1beta.ProductWeight @@ -16125,7 +17025,7 @@ public Builder mergeProductWeight( productWeightBuilder_.mergeFrom(value); } if (productWeight_ != null) { - bitField1_ |= 0x00000020; + bitField1_ |= 0x00000080; onChanged(); } return this; @@ -16142,7 +17042,7 @@ public Builder mergeProductWeight( * .google.shopping.merchant.products.v1beta.ProductWeight product_weight = 122; */ public Builder clearProductWeight() { - bitField1_ = (bitField1_ & ~0x00000020); + bitField1_ = (bitField1_ & ~0x00000080); productWeight_ = null; if (productWeightBuilder_ != null) { productWeightBuilder_.dispose(); @@ -16164,7 +17064,7 @@ public Builder clearProductWeight() { */ public com.google.shopping.merchant.products.v1beta.ProductWeight.Builder getProductWeightBuilder() { - bitField1_ |= 0x00000020; + bitField1_ |= 0x00000080; onChanged(); return getProductWeightFieldBuilder().getBuilder(); } @@ -16221,11 +17121,11 @@ public Builder clearProductWeight() { java.util.Collections.emptyList(); private void ensureShippingIsMutable() { - if (!((bitField1_ & 0x00000040) != 0)) { + if (!((bitField1_ & 0x00000100) != 0)) { shipping_ = new java.util.ArrayList( shipping_); - bitField1_ |= 0x00000040; + bitField1_ |= 0x00000100; } } @@ -16454,7 +17354,7 @@ public Builder addAllShipping( public Builder clearShipping() { if (shippingBuilder_ == null) { shipping_ = java.util.Collections.emptyList(); - bitField1_ = (bitField1_ & ~0x00000040); + bitField1_ = (bitField1_ & ~0x00000100); onChanged(); } else { shippingBuilder_.clear(); @@ -16587,7 +17487,7 @@ public com.google.shopping.merchant.products.v1beta.Shipping.Builder addShipping com.google.shopping.merchant.products.v1beta.Shipping, com.google.shopping.merchant.products.v1beta.Shipping.Builder, com.google.shopping.merchant.products.v1beta.ShippingOrBuilder>( - shipping_, ((bitField1_ & 0x00000040) != 0), getParentForChildren(), isClean()); + shipping_, ((bitField1_ & 0x00000100) != 0), getParentForChildren(), isClean()); shipping_ = null; } return shippingBuilder_; @@ -16597,12 +17497,12 @@ public com.google.shopping.merchant.products.v1beta.Shipping.Builder addShipping freeShippingThreshold_ = java.util.Collections.emptyList(); private void ensureFreeShippingThresholdIsMutable() { - if (!((bitField1_ & 0x00000080) != 0)) { + if (!((bitField1_ & 0x00000200) != 0)) { freeShippingThreshold_ = new java.util.ArrayList< com.google.shopping.merchant.products.v1beta.FreeShippingThreshold>( freeShippingThreshold_); - bitField1_ |= 0x00000080; + bitField1_ |= 0x00000200; } } @@ -16862,7 +17762,7 @@ public Builder addAllFreeShippingThreshold( public Builder clearFreeShippingThreshold() { if (freeShippingThresholdBuilder_ == null) { freeShippingThreshold_ = java.util.Collections.emptyList(); - bitField1_ = (bitField1_ & ~0x00000080); + bitField1_ = (bitField1_ & ~0x00000200); onChanged(); } else { freeShippingThresholdBuilder_.clear(); @@ -17017,7 +17917,7 @@ public Builder removeFreeShippingThreshold(int index) { com.google.shopping.merchant.products.v1beta.FreeShippingThreshold.Builder, com.google.shopping.merchant.products.v1beta.FreeShippingThresholdOrBuilder>( freeShippingThreshold_, - ((bitField1_ & 0x00000080) != 0), + ((bitField1_ & 0x00000200) != 0), getParentForChildren(), isClean()); freeShippingThreshold_ = null; @@ -17044,7 +17944,7 @@ public Builder removeFreeShippingThreshold(int index) { * @return Whether the shippingWeight field is set. */ public boolean hasShippingWeight() { - return ((bitField1_ & 0x00000100) != 0); + return ((bitField1_ & 0x00000400) != 0); } /** @@ -17087,7 +17987,7 @@ public Builder setShippingWeight( } else { shippingWeightBuilder_.setMessage(value); } - bitField1_ |= 0x00000100; + bitField1_ |= 0x00000400; onChanged(); return this; } @@ -17108,7 +18008,7 @@ public Builder setShippingWeight( } else { shippingWeightBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00000100; + bitField1_ |= 0x00000400; onChanged(); return this; } @@ -17125,7 +18025,7 @@ public Builder setShippingWeight( public Builder mergeShippingWeight( com.google.shopping.merchant.products.v1beta.ShippingWeight value) { if (shippingWeightBuilder_ == null) { - if (((bitField1_ & 0x00000100) != 0) + if (((bitField1_ & 0x00000400) != 0) && shippingWeight_ != null && shippingWeight_ != com.google.shopping.merchant.products.v1beta.ShippingWeight @@ -17138,7 +18038,7 @@ public Builder mergeShippingWeight( shippingWeightBuilder_.mergeFrom(value); } if (shippingWeight_ != null) { - bitField1_ |= 0x00000100; + bitField1_ |= 0x00000400; onChanged(); } return this; @@ -17154,7 +18054,7 @@ public Builder mergeShippingWeight( * .google.shopping.merchant.products.v1beta.ShippingWeight shipping_weight = 40; */ public Builder clearShippingWeight() { - bitField1_ = (bitField1_ & ~0x00000100); + bitField1_ = (bitField1_ & ~0x00000400); shippingWeight_ = null; if (shippingWeightBuilder_ != null) { shippingWeightBuilder_.dispose(); @@ -17175,7 +18075,7 @@ public Builder clearShippingWeight() { */ public com.google.shopping.merchant.products.v1beta.ShippingWeight.Builder getShippingWeightBuilder() { - bitField1_ |= 0x00000100; + bitField1_ |= 0x00000400; onChanged(); return getShippingWeightFieldBuilder().getBuilder(); } @@ -17246,7 +18146,7 @@ public Builder clearShippingWeight() { * @return Whether the shippingLength field is set. */ public boolean hasShippingLength() { - return ((bitField1_ & 0x00000200) != 0); + return ((bitField1_ & 0x00000800) != 0); } /** @@ -17291,7 +18191,7 @@ public Builder setShippingLength( } else { shippingLengthBuilder_.setMessage(value); } - bitField1_ |= 0x00000200; + bitField1_ |= 0x00000800; onChanged(); return this; } @@ -17313,7 +18213,7 @@ public Builder setShippingLength( } else { shippingLengthBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00000200; + bitField1_ |= 0x00000800; onChanged(); return this; } @@ -17331,7 +18231,7 @@ public Builder setShippingLength( public Builder mergeShippingLength( com.google.shopping.merchant.products.v1beta.ShippingDimension value) { if (shippingLengthBuilder_ == null) { - if (((bitField1_ & 0x00000200) != 0) + if (((bitField1_ & 0x00000800) != 0) && shippingLength_ != null && shippingLength_ != com.google.shopping.merchant.products.v1beta.ShippingDimension @@ -17344,7 +18244,7 @@ public Builder mergeShippingLength( shippingLengthBuilder_.mergeFrom(value); } if (shippingLength_ != null) { - bitField1_ |= 0x00000200; + bitField1_ |= 0x00000800; onChanged(); } return this; @@ -17361,7 +18261,7 @@ public Builder mergeShippingLength( * */ public Builder clearShippingLength() { - bitField1_ = (bitField1_ & ~0x00000200); + bitField1_ = (bitField1_ & ~0x00000800); shippingLength_ = null; if (shippingLengthBuilder_ != null) { shippingLengthBuilder_.dispose(); @@ -17383,7 +18283,7 @@ public Builder clearShippingLength() { */ public com.google.shopping.merchant.products.v1beta.ShippingDimension.Builder getShippingLengthBuilder() { - bitField1_ |= 0x00000200; + bitField1_ |= 0x00000800; onChanged(); return getShippingLengthFieldBuilder().getBuilder(); } @@ -17455,7 +18355,7 @@ public Builder clearShippingLength() { * @return Whether the shippingWidth field is set. */ public boolean hasShippingWidth() { - return ((bitField1_ & 0x00000400) != 0); + return ((bitField1_ & 0x00001000) != 0); } /** @@ -17498,7 +18398,7 @@ public Builder setShippingWidth( } else { shippingWidthBuilder_.setMessage(value); } - bitField1_ |= 0x00000400; + bitField1_ |= 0x00001000; onChanged(); return this; } @@ -17519,7 +18419,7 @@ public Builder setShippingWidth( } else { shippingWidthBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00000400; + bitField1_ |= 0x00001000; onChanged(); return this; } @@ -17536,7 +18436,7 @@ public Builder setShippingWidth( public Builder mergeShippingWidth( com.google.shopping.merchant.products.v1beta.ShippingDimension value) { if (shippingWidthBuilder_ == null) { - if (((bitField1_ & 0x00000400) != 0) + if (((bitField1_ & 0x00001000) != 0) && shippingWidth_ != null && shippingWidth_ != com.google.shopping.merchant.products.v1beta.ShippingDimension @@ -17549,7 +18449,7 @@ public Builder mergeShippingWidth( shippingWidthBuilder_.mergeFrom(value); } if (shippingWidth_ != null) { - bitField1_ |= 0x00000400; + bitField1_ |= 0x00001000; onChanged(); } return this; @@ -17565,7 +18465,7 @@ public Builder mergeShippingWidth( * .google.shopping.merchant.products.v1beta.ShippingDimension shipping_width = 42; */ public Builder clearShippingWidth() { - bitField1_ = (bitField1_ & ~0x00000400); + bitField1_ = (bitField1_ & ~0x00001000); shippingWidth_ = null; if (shippingWidthBuilder_ != null) { shippingWidthBuilder_.dispose(); @@ -17586,7 +18486,7 @@ public Builder clearShippingWidth() { */ public com.google.shopping.merchant.products.v1beta.ShippingDimension.Builder getShippingWidthBuilder() { - bitField1_ |= 0x00000400; + bitField1_ |= 0x00001000; onChanged(); return getShippingWidthFieldBuilder().getBuilder(); } @@ -17657,7 +18557,7 @@ public Builder clearShippingWidth() { * @return Whether the shippingHeight field is set. */ public boolean hasShippingHeight() { - return ((bitField1_ & 0x00000800) != 0); + return ((bitField1_ & 0x00002000) != 0); } /** @@ -17702,7 +18602,7 @@ public Builder setShippingHeight( } else { shippingHeightBuilder_.setMessage(value); } - bitField1_ |= 0x00000800; + bitField1_ |= 0x00002000; onChanged(); return this; } @@ -17724,7 +18624,7 @@ public Builder setShippingHeight( } else { shippingHeightBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00000800; + bitField1_ |= 0x00002000; onChanged(); return this; } @@ -17742,7 +18642,7 @@ public Builder setShippingHeight( public Builder mergeShippingHeight( com.google.shopping.merchant.products.v1beta.ShippingDimension value) { if (shippingHeightBuilder_ == null) { - if (((bitField1_ & 0x00000800) != 0) + if (((bitField1_ & 0x00002000) != 0) && shippingHeight_ != null && shippingHeight_ != com.google.shopping.merchant.products.v1beta.ShippingDimension @@ -17755,7 +18655,7 @@ public Builder mergeShippingHeight( shippingHeightBuilder_.mergeFrom(value); } if (shippingHeight_ != null) { - bitField1_ |= 0x00000800; + bitField1_ |= 0x00002000; onChanged(); } return this; @@ -17772,7 +18672,7 @@ public Builder mergeShippingHeight( * */ public Builder clearShippingHeight() { - bitField1_ = (bitField1_ & ~0x00000800); + bitField1_ = (bitField1_ & ~0x00002000); shippingHeight_ = null; if (shippingHeightBuilder_ != null) { shippingHeightBuilder_.dispose(); @@ -17794,7 +18694,7 @@ public Builder clearShippingHeight() { */ public com.google.shopping.merchant.products.v1beta.ShippingDimension.Builder getShippingHeightBuilder() { - bitField1_ |= 0x00000800; + bitField1_ |= 0x00002000; onChanged(); return getShippingHeightFieldBuilder().getBuilder(); } @@ -17862,7 +18762,7 @@ public Builder clearShippingHeight() { */ @java.lang.Override public boolean hasMaxHandlingTime() { - return ((bitField1_ & 0x00001000) != 0); + return ((bitField1_ & 0x00004000) != 0); } /** @@ -17896,7 +18796,7 @@ public long getMaxHandlingTime() { public Builder setMaxHandlingTime(long value) { maxHandlingTime_ = value; - bitField1_ |= 0x00001000; + bitField1_ |= 0x00004000; onChanged(); return this; } @@ -17913,7 +18813,7 @@ public Builder setMaxHandlingTime(long value) { * @return This builder for chaining. */ public Builder clearMaxHandlingTime() { - bitField1_ = (bitField1_ & ~0x00001000); + bitField1_ = (bitField1_ & ~0x00004000); maxHandlingTime_ = 0L; onChanged(); return this; @@ -17934,7 +18834,7 @@ public Builder clearMaxHandlingTime() { */ @java.lang.Override public boolean hasMinHandlingTime() { - return ((bitField1_ & 0x00002000) != 0); + return ((bitField1_ & 0x00008000) != 0); } /** @@ -17968,7 +18868,7 @@ public long getMinHandlingTime() { public Builder setMinHandlingTime(long value) { minHandlingTime_ = value; - bitField1_ |= 0x00002000; + bitField1_ |= 0x00008000; onChanged(); return this; } @@ -17985,7 +18885,7 @@ public Builder setMinHandlingTime(long value) { * @return This builder for chaining. */ public Builder clearMinHandlingTime() { - bitField1_ = (bitField1_ & ~0x00002000); + bitField1_ = (bitField1_ & ~0x00008000); minHandlingTime_ = 0L; onChanged(); return this; @@ -18006,7 +18906,7 @@ public Builder clearMinHandlingTime() { * @return Whether the shippingLabel field is set. */ public boolean hasShippingLabel() { - return ((bitField1_ & 0x00004000) != 0); + return ((bitField1_ & 0x00010000) != 0); } /** @@ -18075,7 +18975,7 @@ public Builder setShippingLabel(java.lang.String value) { throw new NullPointerException(); } shippingLabel_ = value; - bitField1_ |= 0x00004000; + bitField1_ |= 0x00010000; onChanged(); return this; } @@ -18094,7 +18994,7 @@ public Builder setShippingLabel(java.lang.String value) { */ public Builder clearShippingLabel() { shippingLabel_ = getDefaultInstance().getShippingLabel(); - bitField1_ = (bitField1_ & ~0x00004000); + bitField1_ = (bitField1_ & ~0x00010000); onChanged(); return this; } @@ -18118,7 +19018,7 @@ public Builder setShippingLabelBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); shippingLabel_ = value; - bitField1_ |= 0x00004000; + bitField1_ |= 0x00010000; onChanged(); return this; } @@ -18138,7 +19038,7 @@ public Builder setShippingLabelBytes(com.google.protobuf.ByteString value) { * @return Whether the transitTimeLabel field is set. */ public boolean hasTransitTimeLabel() { - return ((bitField1_ & 0x00008000) != 0); + return ((bitField1_ & 0x00020000) != 0); } /** @@ -18207,7 +19107,7 @@ public Builder setTransitTimeLabel(java.lang.String value) { throw new NullPointerException(); } transitTimeLabel_ = value; - bitField1_ |= 0x00008000; + bitField1_ |= 0x00020000; onChanged(); return this; } @@ -18226,7 +19126,7 @@ public Builder setTransitTimeLabel(java.lang.String value) { */ public Builder clearTransitTimeLabel() { transitTimeLabel_ = getDefaultInstance().getTransitTimeLabel(); - bitField1_ = (bitField1_ & ~0x00008000); + bitField1_ = (bitField1_ & ~0x00020000); onChanged(); return this; } @@ -18250,7 +19150,7 @@ public Builder setTransitTimeLabelBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); transitTimeLabel_ = value; - bitField1_ |= 0x00008000; + bitField1_ |= 0x00020000; onChanged(); return this; } @@ -18263,8 +19163,8 @@ public Builder setTransitTimeLabelBytes(com.google.protobuf.ByteString value) { *
            * Size of the item. Only one value is allowed. For variants with different
            * sizes, insert a separate product for each size with the same
      -     * `itemGroupId` value (see
      -     * [https://support.google.com/merchants/answer/6324492](size definition)).
      +     * `itemGroupId` value, see
      +     * [Size](https://support.google.com/merchants/answer/6324492).
            * 
      * * optional string size = 48; @@ -18272,7 +19172,7 @@ public Builder setTransitTimeLabelBytes(com.google.protobuf.ByteString value) { * @return Whether the size field is set. */ public boolean hasSize() { - return ((bitField1_ & 0x00010000) != 0); + return ((bitField1_ & 0x00040000) != 0); } /** @@ -18281,8 +19181,8 @@ public boolean hasSize() { *
            * Size of the item. Only one value is allowed. For variants with different
            * sizes, insert a separate product for each size with the same
      -     * `itemGroupId` value (see
      -     * [https://support.google.com/merchants/answer/6324492](size definition)).
      +     * `itemGroupId` value, see
      +     * [Size](https://support.google.com/merchants/answer/6324492).
            * 
      * * optional string size = 48; @@ -18307,8 +19207,8 @@ public java.lang.String getSize() { *
            * Size of the item. Only one value is allowed. For variants with different
            * sizes, insert a separate product for each size with the same
      -     * `itemGroupId` value (see
      -     * [https://support.google.com/merchants/answer/6324492](size definition)).
      +     * `itemGroupId` value, see
      +     * [Size](https://support.google.com/merchants/answer/6324492).
            * 
      * * optional string size = 48; @@ -18333,8 +19233,8 @@ public com.google.protobuf.ByteString getSizeBytes() { *
            * Size of the item. Only one value is allowed. For variants with different
            * sizes, insert a separate product for each size with the same
      -     * `itemGroupId` value (see
      -     * [https://support.google.com/merchants/answer/6324492](size definition)).
      +     * `itemGroupId` value, see
      +     * [Size](https://support.google.com/merchants/answer/6324492).
            * 
      * * optional string size = 48; @@ -18347,7 +19247,7 @@ public Builder setSize(java.lang.String value) { throw new NullPointerException(); } size_ = value; - bitField1_ |= 0x00010000; + bitField1_ |= 0x00040000; onChanged(); return this; } @@ -18358,8 +19258,8 @@ public Builder setSize(java.lang.String value) { *
            * Size of the item. Only one value is allowed. For variants with different
            * sizes, insert a separate product for each size with the same
      -     * `itemGroupId` value (see
      -     * [https://support.google.com/merchants/answer/6324492](size definition)).
      +     * `itemGroupId` value, see
      +     * [Size](https://support.google.com/merchants/answer/6324492).
            * 
      * * optional string size = 48; @@ -18368,7 +19268,7 @@ public Builder setSize(java.lang.String value) { */ public Builder clearSize() { size_ = getDefaultInstance().getSize(); - bitField1_ = (bitField1_ & ~0x00010000); + bitField1_ = (bitField1_ & ~0x00040000); onChanged(); return this; } @@ -18379,8 +19279,8 @@ public Builder clearSize() { *
            * Size of the item. Only one value is allowed. For variants with different
            * sizes, insert a separate product for each size with the same
      -     * `itemGroupId` value (see
      -     * [https://support.google.com/merchants/answer/6324492](size definition)).
      +     * `itemGroupId` value, see
      +     * [Size](https://support.google.com/merchants/answer/6324492).
            * 
      * * optional string size = 48; @@ -18394,7 +19294,7 @@ public Builder setSizeBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); size_ = value; - bitField1_ |= 0x00010000; + bitField1_ |= 0x00040000; onChanged(); return this; } @@ -18406,6 +19306,9 @@ public Builder setSizeBytes(com.google.protobuf.ByteString value) { * *
            * System in which the size is specified. Recommended for apparel items.
      +     * For example, "US", "UK", "DE".
      +     * For more information, see
      +     * [Size system](https://support.google.com/merchants/answer/6324502).
            * 
      * * optional string size_system = 49; @@ -18413,7 +19316,7 @@ public Builder setSizeBytes(com.google.protobuf.ByteString value) { * @return Whether the sizeSystem field is set. */ public boolean hasSizeSystem() { - return ((bitField1_ & 0x00020000) != 0); + return ((bitField1_ & 0x00080000) != 0); } /** @@ -18421,6 +19324,9 @@ public boolean hasSizeSystem() { * *
            * System in which the size is specified. Recommended for apparel items.
      +     * For example, "US", "UK", "DE".
      +     * For more information, see
      +     * [Size system](https://support.google.com/merchants/answer/6324502).
            * 
      * * optional string size_system = 49; @@ -18444,6 +19350,9 @@ public java.lang.String getSizeSystem() { * *
            * System in which the size is specified. Recommended for apparel items.
      +     * For example, "US", "UK", "DE".
      +     * For more information, see
      +     * [Size system](https://support.google.com/merchants/answer/6324502).
            * 
      * * optional string size_system = 49; @@ -18467,6 +19376,9 @@ public com.google.protobuf.ByteString getSizeSystemBytes() { * *
            * System in which the size is specified. Recommended for apparel items.
      +     * For example, "US", "UK", "DE".
      +     * For more information, see
      +     * [Size system](https://support.google.com/merchants/answer/6324502).
            * 
      * * optional string size_system = 49; @@ -18479,7 +19391,7 @@ public Builder setSizeSystem(java.lang.String value) { throw new NullPointerException(); } sizeSystem_ = value; - bitField1_ |= 0x00020000; + bitField1_ |= 0x00080000; onChanged(); return this; } @@ -18489,6 +19401,9 @@ public Builder setSizeSystem(java.lang.String value) { * *
            * System in which the size is specified. Recommended for apparel items.
      +     * For example, "US", "UK", "DE".
      +     * For more information, see
      +     * [Size system](https://support.google.com/merchants/answer/6324502).
            * 
      * * optional string size_system = 49; @@ -18497,7 +19412,7 @@ public Builder setSizeSystem(java.lang.String value) { */ public Builder clearSizeSystem() { sizeSystem_ = getDefaultInstance().getSizeSystem(); - bitField1_ = (bitField1_ & ~0x00020000); + bitField1_ = (bitField1_ & ~0x00080000); onChanged(); return this; } @@ -18507,6 +19422,9 @@ public Builder clearSizeSystem() { * *
            * System in which the size is specified. Recommended for apparel items.
      +     * For example, "US", "UK", "DE".
      +     * For more information, see
      +     * [Size system](https://support.google.com/merchants/answer/6324502).
            * 
      * * optional string size_system = 49; @@ -18520,7 +19438,7 @@ public Builder setSizeSystemBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); sizeSystem_ = value; - bitField1_ |= 0x00020000; + bitField1_ |= 0x00080000; onChanged(); return this; } @@ -18532,7 +19450,7 @@ private void ensureSizeTypesIsMutable() { if (!sizeTypes_.isModifiable()) { sizeTypes_ = new com.google.protobuf.LazyStringArrayList(sizeTypes_); } - bitField1_ |= 0x00040000; + bitField1_ |= 0x00100000; } /** @@ -18540,8 +19458,9 @@ private void ensureSizeTypesIsMutable() { * *
            * The cut of the item. It can be used to represent combined size types for
      -     * apparel items. Maximum two of size types can be provided (see
      -     * [https://support.google.com/merchants/answer/6324497](size type)).
      +     * apparel items. Maximum two of size types can be provided, see
      +     * [Size type](https://support.google.com/merchants/answer/6324497).
      +     * For example, "petite", "plus size".
            * 
      * * repeated string size_types = 50; @@ -18558,8 +19477,9 @@ public com.google.protobuf.ProtocolStringList getSizeTypesList() { * *
            * The cut of the item. It can be used to represent combined size types for
      -     * apparel items. Maximum two of size types can be provided (see
      -     * [https://support.google.com/merchants/answer/6324497](size type)).
      +     * apparel items. Maximum two of size types can be provided, see
      +     * [Size type](https://support.google.com/merchants/answer/6324497).
      +     * For example, "petite", "plus size".
            * 
      * * repeated string size_types = 50; @@ -18575,8 +19495,9 @@ public int getSizeTypesCount() { * *
            * The cut of the item. It can be used to represent combined size types for
      -     * apparel items. Maximum two of size types can be provided (see
      -     * [https://support.google.com/merchants/answer/6324497](size type)).
      +     * apparel items. Maximum two of size types can be provided, see
      +     * [Size type](https://support.google.com/merchants/answer/6324497).
      +     * For example, "petite", "plus size".
            * 
      * * repeated string size_types = 50; @@ -18593,8 +19514,9 @@ public java.lang.String getSizeTypes(int index) { * *
            * The cut of the item. It can be used to represent combined size types for
      -     * apparel items. Maximum two of size types can be provided (see
      -     * [https://support.google.com/merchants/answer/6324497](size type)).
      +     * apparel items. Maximum two of size types can be provided, see
      +     * [Size type](https://support.google.com/merchants/answer/6324497).
      +     * For example, "petite", "plus size".
            * 
      * * repeated string size_types = 50; @@ -18611,8 +19533,9 @@ public com.google.protobuf.ByteString getSizeTypesBytes(int index) { * *
            * The cut of the item. It can be used to represent combined size types for
      -     * apparel items. Maximum two of size types can be provided (see
      -     * [https://support.google.com/merchants/answer/6324497](size type)).
      +     * apparel items. Maximum two of size types can be provided, see
      +     * [Size type](https://support.google.com/merchants/answer/6324497).
      +     * For example, "petite", "plus size".
            * 
      * * repeated string size_types = 50; @@ -18627,7 +19550,7 @@ public Builder setSizeTypes(int index, java.lang.String value) { } ensureSizeTypesIsMutable(); sizeTypes_.set(index, value); - bitField1_ |= 0x00040000; + bitField1_ |= 0x00100000; onChanged(); return this; } @@ -18637,8 +19560,9 @@ public Builder setSizeTypes(int index, java.lang.String value) { * *
            * The cut of the item. It can be used to represent combined size types for
      -     * apparel items. Maximum two of size types can be provided (see
      -     * [https://support.google.com/merchants/answer/6324497](size type)).
      +     * apparel items. Maximum two of size types can be provided, see
      +     * [Size type](https://support.google.com/merchants/answer/6324497).
      +     * For example, "petite", "plus size".
            * 
      * * repeated string size_types = 50; @@ -18652,7 +19576,7 @@ public Builder addSizeTypes(java.lang.String value) { } ensureSizeTypesIsMutable(); sizeTypes_.add(value); - bitField1_ |= 0x00040000; + bitField1_ |= 0x00100000; onChanged(); return this; } @@ -18662,8 +19586,9 @@ public Builder addSizeTypes(java.lang.String value) { * *
            * The cut of the item. It can be used to represent combined size types for
      -     * apparel items. Maximum two of size types can be provided (see
      -     * [https://support.google.com/merchants/answer/6324497](size type)).
      +     * apparel items. Maximum two of size types can be provided, see
      +     * [Size type](https://support.google.com/merchants/answer/6324497).
      +     * For example, "petite", "plus size".
            * 
      * * repeated string size_types = 50; @@ -18674,7 +19599,7 @@ public Builder addSizeTypes(java.lang.String value) { public Builder addAllSizeTypes(java.lang.Iterable values) { ensureSizeTypesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sizeTypes_); - bitField1_ |= 0x00040000; + bitField1_ |= 0x00100000; onChanged(); return this; } @@ -18684,8 +19609,9 @@ public Builder addAllSizeTypes(java.lang.Iterable values) { * *
            * The cut of the item. It can be used to represent combined size types for
      -     * apparel items. Maximum two of size types can be provided (see
      -     * [https://support.google.com/merchants/answer/6324497](size type)).
      +     * apparel items. Maximum two of size types can be provided, see
      +     * [Size type](https://support.google.com/merchants/answer/6324497).
      +     * For example, "petite", "plus size".
            * 
      * * repeated string size_types = 50; @@ -18694,7 +19620,7 @@ public Builder addAllSizeTypes(java.lang.Iterable values) { */ public Builder clearSizeTypes() { sizeTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField1_ = (bitField1_ & ~0x00040000); + bitField1_ = (bitField1_ & ~0x00100000); ; onChanged(); return this; @@ -18705,8 +19631,9 @@ public Builder clearSizeTypes() { * *
            * The cut of the item. It can be used to represent combined size types for
      -     * apparel items. Maximum two of size types can be provided (see
      -     * [https://support.google.com/merchants/answer/6324497](size type)).
      +     * apparel items. Maximum two of size types can be provided, see
      +     * [Size type](https://support.google.com/merchants/answer/6324497).
      +     * For example, "petite", "plus size".
            * 
      * * repeated string size_types = 50; @@ -18721,7 +19648,7 @@ public Builder addSizeTypesBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureSizeTypesIsMutable(); sizeTypes_.add(value); - bitField1_ |= 0x00040000; + bitField1_ |= 0x00100000; onChanged(); return this; } @@ -18730,9 +19657,9 @@ public Builder addSizeTypesBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureTaxesIsMutable() { - if (!((bitField1_ & 0x00080000) != 0)) { + if (!((bitField1_ & 0x00200000) != 0)) { taxes_ = new java.util.ArrayList(taxes_); - bitField1_ |= 0x00080000; + bitField1_ |= 0x00200000; } } @@ -18749,8 +19676,10 @@ private void ensureTaxesIsMutable() { * Tax information. * * - * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51; + * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51 [deprecated = true]; + * */ + @java.lang.Deprecated public java.util.List getTaxesList() { if (taxesBuilder_ == null) { return java.util.Collections.unmodifiableList(taxes_); @@ -18766,8 +19695,10 @@ public java.util.List getTaxes * Tax information. * * - * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51; + * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51 [deprecated = true]; + * */ + @java.lang.Deprecated public int getTaxesCount() { if (taxesBuilder_ == null) { return taxes_.size(); @@ -18783,8 +19714,10 @@ public int getTaxesCount() { * Tax information. * * - * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51; + * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51 [deprecated = true]; + * */ + @java.lang.Deprecated public com.google.shopping.merchant.products.v1beta.Tax getTaxes(int index) { if (taxesBuilder_ == null) { return taxes_.get(index); @@ -18800,8 +19733,10 @@ public com.google.shopping.merchant.products.v1beta.Tax getTaxes(int index) { * Tax information. * * - * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51; + * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder setTaxes(int index, com.google.shopping.merchant.products.v1beta.Tax value) { if (taxesBuilder_ == null) { if (value == null) { @@ -18823,8 +19758,10 @@ public Builder setTaxes(int index, com.google.shopping.merchant.products.v1beta. * Tax information. * * - * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51; + * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder setTaxes( int index, com.google.shopping.merchant.products.v1beta.Tax.Builder builderForValue) { if (taxesBuilder_ == null) { @@ -18844,8 +19781,10 @@ public Builder setTaxes( * Tax information. * * - * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51; + * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder addTaxes(com.google.shopping.merchant.products.v1beta.Tax value) { if (taxesBuilder_ == null) { if (value == null) { @@ -18867,8 +19806,10 @@ public Builder addTaxes(com.google.shopping.merchant.products.v1beta.Tax value) * Tax information. * * - * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51; + * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder addTaxes(int index, com.google.shopping.merchant.products.v1beta.Tax value) { if (taxesBuilder_ == null) { if (value == null) { @@ -18890,8 +19831,10 @@ public Builder addTaxes(int index, com.google.shopping.merchant.products.v1beta. * Tax information. * * - * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51; + * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder addTaxes( com.google.shopping.merchant.products.v1beta.Tax.Builder builderForValue) { if (taxesBuilder_ == null) { @@ -18911,8 +19854,10 @@ public Builder addTaxes( * Tax information. * * - * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51; + * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder addTaxes( int index, com.google.shopping.merchant.products.v1beta.Tax.Builder builderForValue) { if (taxesBuilder_ == null) { @@ -18932,8 +19877,10 @@ public Builder addTaxes( * Tax information. * * - * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51; + * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder addAllTaxes( java.lang.Iterable values) { if (taxesBuilder_ == null) { @@ -18953,12 +19900,14 @@ public Builder addAllTaxes( * Tax information. * * - * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51; + * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder clearTaxes() { if (taxesBuilder_ == null) { taxes_ = java.util.Collections.emptyList(); - bitField1_ = (bitField1_ & ~0x00080000); + bitField1_ = (bitField1_ & ~0x00200000); onChanged(); } else { taxesBuilder_.clear(); @@ -18973,8 +19922,10 @@ public Builder clearTaxes() { * Tax information. * * - * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51; + * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder removeTaxes(int index) { if (taxesBuilder_ == null) { ensureTaxesIsMutable(); @@ -18993,8 +19944,10 @@ public Builder removeTaxes(int index) { * Tax information. * * - * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51; + * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51 [deprecated = true]; + * */ + @java.lang.Deprecated public com.google.shopping.merchant.products.v1beta.Tax.Builder getTaxesBuilder(int index) { return getTaxesFieldBuilder().getBuilder(index); } @@ -19006,8 +19959,10 @@ public com.google.shopping.merchant.products.v1beta.Tax.Builder getTaxesBuilder( * Tax information. * * - * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51; + * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51 [deprecated = true]; + * */ + @java.lang.Deprecated public com.google.shopping.merchant.products.v1beta.TaxOrBuilder getTaxesOrBuilder(int index) { if (taxesBuilder_ == null) { return taxes_.get(index); @@ -19023,8 +19978,10 @@ public com.google.shopping.merchant.products.v1beta.TaxOrBuilder getTaxesOrBuild * Tax information. * * - * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51; + * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51 [deprecated = true]; + * */ + @java.lang.Deprecated public java.util.List getTaxesOrBuilderList() { if (taxesBuilder_ != null) { @@ -19041,8 +19998,10 @@ public com.google.shopping.merchant.products.v1beta.TaxOrBuilder getTaxesOrBuild * Tax information. * * - * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51; + * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51 [deprecated = true]; + * */ + @java.lang.Deprecated public com.google.shopping.merchant.products.v1beta.Tax.Builder addTaxesBuilder() { return getTaxesFieldBuilder() .addBuilder(com.google.shopping.merchant.products.v1beta.Tax.getDefaultInstance()); @@ -19055,8 +20014,10 @@ public com.google.shopping.merchant.products.v1beta.Tax.Builder addTaxesBuilder( * Tax information. * * - * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51; + * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51 [deprecated = true]; + * */ + @java.lang.Deprecated public com.google.shopping.merchant.products.v1beta.Tax.Builder addTaxesBuilder(int index) { return getTaxesFieldBuilder() .addBuilder(index, com.google.shopping.merchant.products.v1beta.Tax.getDefaultInstance()); @@ -19069,8 +20030,10 @@ public com.google.shopping.merchant.products.v1beta.Tax.Builder addTaxesBuilder( * Tax information. * * - * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51; + * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51 [deprecated = true]; + * */ + @java.lang.Deprecated public java.util.List getTaxesBuilderList() { return getTaxesFieldBuilder().getBuilderList(); @@ -19087,7 +20050,7 @@ public com.google.shopping.merchant.products.v1beta.Tax.Builder addTaxesBuilder( com.google.shopping.merchant.products.v1beta.Tax, com.google.shopping.merchant.products.v1beta.Tax.Builder, com.google.shopping.merchant.products.v1beta.TaxOrBuilder>( - taxes_, ((bitField1_ & 0x00080000) != 0), getParentForChildren(), isClean()); + taxes_, ((bitField1_ & 0x00200000) != 0), getParentForChildren(), isClean()); taxes_ = null; } return taxesBuilder_; @@ -19099,28 +20062,36 @@ public com.google.shopping.merchant.products.v1beta.Tax.Builder addTaxesBuilder( * * *
      -     * The tax category of the product.
      +     * The [tax category](https://support.google.com/merchants/answer/7569847) of
      +     * the product.
            * 
      * - * optional string tax_category = 52; + * optional string tax_category = 52 [deprecated = true]; * + * @deprecated google.shopping.merchant.products.v1beta.Attributes.tax_category is deprecated. + * See google/shopping/merchant/products/v1beta/products_common.proto;l=264 * @return Whether the taxCategory field is set. */ + @java.lang.Deprecated public boolean hasTaxCategory() { - return ((bitField1_ & 0x00100000) != 0); + return ((bitField1_ & 0x00400000) != 0); } /** * * *
      -     * The tax category of the product.
      +     * The [tax category](https://support.google.com/merchants/answer/7569847) of
      +     * the product.
            * 
      * - * optional string tax_category = 52; + * optional string tax_category = 52 [deprecated = true]; * + * @deprecated google.shopping.merchant.products.v1beta.Attributes.tax_category is deprecated. + * See google/shopping/merchant/products/v1beta/products_common.proto;l=264 * @return The taxCategory. */ + @java.lang.Deprecated public java.lang.String getTaxCategory() { java.lang.Object ref = taxCategory_; if (!(ref instanceof java.lang.String)) { @@ -19137,13 +20108,17 @@ public java.lang.String getTaxCategory() { * * *
      -     * The tax category of the product.
      +     * The [tax category](https://support.google.com/merchants/answer/7569847) of
      +     * the product.
            * 
      * - * optional string tax_category = 52; + * optional string tax_category = 52 [deprecated = true]; * + * @deprecated google.shopping.merchant.products.v1beta.Attributes.tax_category is deprecated. + * See google/shopping/merchant/products/v1beta/products_common.proto;l=264 * @return The bytes for taxCategory. */ + @java.lang.Deprecated public com.google.protobuf.ByteString getTaxCategoryBytes() { java.lang.Object ref = taxCategory_; if (ref instanceof String) { @@ -19160,20 +20135,24 @@ public com.google.protobuf.ByteString getTaxCategoryBytes() { * * *
      -     * The tax category of the product.
      +     * The [tax category](https://support.google.com/merchants/answer/7569847) of
      +     * the product.
            * 
      * - * optional string tax_category = 52; + * optional string tax_category = 52 [deprecated = true]; * + * @deprecated google.shopping.merchant.products.v1beta.Attributes.tax_category is deprecated. + * See google/shopping/merchant/products/v1beta/products_common.proto;l=264 * @param value The taxCategory to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setTaxCategory(java.lang.String value) { if (value == null) { throw new NullPointerException(); } taxCategory_ = value; - bitField1_ |= 0x00100000; + bitField1_ |= 0x00400000; onChanged(); return this; } @@ -19182,16 +20161,20 @@ public Builder setTaxCategory(java.lang.String value) { * * *
      -     * The tax category of the product.
      +     * The [tax category](https://support.google.com/merchants/answer/7569847) of
      +     * the product.
            * 
      * - * optional string tax_category = 52; + * optional string tax_category = 52 [deprecated = true]; * + * @deprecated google.shopping.merchant.products.v1beta.Attributes.tax_category is deprecated. + * See google/shopping/merchant/products/v1beta/products_common.proto;l=264 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearTaxCategory() { taxCategory_ = getDefaultInstance().getTaxCategory(); - bitField1_ = (bitField1_ & ~0x00100000); + bitField1_ = (bitField1_ & ~0x00400000); onChanged(); return this; } @@ -19200,21 +20183,25 @@ public Builder clearTaxCategory() { * * *
      -     * The tax category of the product.
      +     * The [tax category](https://support.google.com/merchants/answer/7569847) of
      +     * the product.
            * 
      * - * optional string tax_category = 52; + * optional string tax_category = 52 [deprecated = true]; * + * @deprecated google.shopping.merchant.products.v1beta.Attributes.tax_category is deprecated. + * See google/shopping/merchant/products/v1beta/products_common.proto;l=264 * @param value The bytes for taxCategory to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setTaxCategoryBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); taxCategory_ = value; - bitField1_ |= 0x00100000; + bitField1_ |= 0x00400000; onChanged(); return this; } @@ -19233,7 +20220,7 @@ public Builder setTaxCategoryBytes(com.google.protobuf.ByteString value) { * @return Whether the energyEfficiencyClass field is set. */ public boolean hasEnergyEfficiencyClass() { - return ((bitField1_ & 0x00200000) != 0); + return ((bitField1_ & 0x00800000) != 0); } /** @@ -19299,7 +20286,7 @@ public Builder setEnergyEfficiencyClass(java.lang.String value) { throw new NullPointerException(); } energyEfficiencyClass_ = value; - bitField1_ |= 0x00200000; + bitField1_ |= 0x00800000; onChanged(); return this; } @@ -19317,7 +20304,7 @@ public Builder setEnergyEfficiencyClass(java.lang.String value) { */ public Builder clearEnergyEfficiencyClass() { energyEfficiencyClass_ = getDefaultInstance().getEnergyEfficiencyClass(); - bitField1_ = (bitField1_ & ~0x00200000); + bitField1_ = (bitField1_ & ~0x00800000); onChanged(); return this; } @@ -19340,7 +20327,7 @@ public Builder setEnergyEfficiencyClassBytes(com.google.protobuf.ByteString valu } checkByteStringIsUtf8(value); energyEfficiencyClass_ = value; - bitField1_ |= 0x00200000; + bitField1_ |= 0x00800000; onChanged(); return this; } @@ -19359,7 +20346,7 @@ public Builder setEnergyEfficiencyClassBytes(com.google.protobuf.ByteString valu * @return Whether the minEnergyEfficiencyClass field is set. */ public boolean hasMinEnergyEfficiencyClass() { - return ((bitField1_ & 0x00400000) != 0); + return ((bitField1_ & 0x01000000) != 0); } /** @@ -19425,7 +20412,7 @@ public Builder setMinEnergyEfficiencyClass(java.lang.String value) { throw new NullPointerException(); } minEnergyEfficiencyClass_ = value; - bitField1_ |= 0x00400000; + bitField1_ |= 0x01000000; onChanged(); return this; } @@ -19443,7 +20430,7 @@ public Builder setMinEnergyEfficiencyClass(java.lang.String value) { */ public Builder clearMinEnergyEfficiencyClass() { minEnergyEfficiencyClass_ = getDefaultInstance().getMinEnergyEfficiencyClass(); - bitField1_ = (bitField1_ & ~0x00400000); + bitField1_ = (bitField1_ & ~0x01000000); onChanged(); return this; } @@ -19466,7 +20453,7 @@ public Builder setMinEnergyEfficiencyClassBytes(com.google.protobuf.ByteString v } checkByteStringIsUtf8(value); minEnergyEfficiencyClass_ = value; - bitField1_ |= 0x00400000; + bitField1_ |= 0x01000000; onChanged(); return this; } @@ -19485,7 +20472,7 @@ public Builder setMinEnergyEfficiencyClassBytes(com.google.protobuf.ByteString v * @return Whether the maxEnergyEfficiencyClass field is set. */ public boolean hasMaxEnergyEfficiencyClass() { - return ((bitField1_ & 0x00800000) != 0); + return ((bitField1_ & 0x02000000) != 0); } /** @@ -19551,7 +20538,7 @@ public Builder setMaxEnergyEfficiencyClass(java.lang.String value) { throw new NullPointerException(); } maxEnergyEfficiencyClass_ = value; - bitField1_ |= 0x00800000; + bitField1_ |= 0x02000000; onChanged(); return this; } @@ -19569,7 +20556,7 @@ public Builder setMaxEnergyEfficiencyClass(java.lang.String value) { */ public Builder clearMaxEnergyEfficiencyClass() { maxEnergyEfficiencyClass_ = getDefaultInstance().getMaxEnergyEfficiencyClass(); - bitField1_ = (bitField1_ & ~0x00800000); + bitField1_ = (bitField1_ & ~0x02000000); onChanged(); return this; } @@ -19592,7 +20579,7 @@ public Builder setMaxEnergyEfficiencyClassBytes(com.google.protobuf.ByteString v } checkByteStringIsUtf8(value); maxEnergyEfficiencyClass_ = value; - bitField1_ |= 0x00800000; + bitField1_ |= 0x02000000; onChanged(); return this; } @@ -19617,7 +20604,7 @@ public Builder setMaxEnergyEfficiencyClassBytes(com.google.protobuf.ByteString v * @return Whether the unitPricingMeasure field is set. */ public boolean hasUnitPricingMeasure() { - return ((bitField1_ & 0x01000000) != 0); + return ((bitField1_ & 0x04000000) != 0); } /** @@ -19662,7 +20649,7 @@ public Builder setUnitPricingMeasure( } else { unitPricingMeasureBuilder_.setMessage(value); } - bitField1_ |= 0x01000000; + bitField1_ |= 0x04000000; onChanged(); return this; } @@ -19684,7 +20671,7 @@ public Builder setUnitPricingMeasure( } else { unitPricingMeasureBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x01000000; + bitField1_ |= 0x04000000; onChanged(); return this; } @@ -19702,7 +20689,7 @@ public Builder setUnitPricingMeasure( public Builder mergeUnitPricingMeasure( com.google.shopping.merchant.products.v1beta.UnitPricingMeasure value) { if (unitPricingMeasureBuilder_ == null) { - if (((bitField1_ & 0x01000000) != 0) + if (((bitField1_ & 0x04000000) != 0) && unitPricingMeasure_ != null && unitPricingMeasure_ != com.google.shopping.merchant.products.v1beta.UnitPricingMeasure @@ -19715,7 +20702,7 @@ public Builder mergeUnitPricingMeasure( unitPricingMeasureBuilder_.mergeFrom(value); } if (unitPricingMeasure_ != null) { - bitField1_ |= 0x01000000; + bitField1_ |= 0x04000000; onChanged(); } return this; @@ -19732,7 +20719,7 @@ public Builder mergeUnitPricingMeasure( * */ public Builder clearUnitPricingMeasure() { - bitField1_ = (bitField1_ & ~0x01000000); + bitField1_ = (bitField1_ & ~0x04000000); unitPricingMeasure_ = null; if (unitPricingMeasureBuilder_ != null) { unitPricingMeasureBuilder_.dispose(); @@ -19754,7 +20741,7 @@ public Builder clearUnitPricingMeasure() { */ public com.google.shopping.merchant.products.v1beta.UnitPricingMeasure.Builder getUnitPricingMeasureBuilder() { - bitField1_ |= 0x01000000; + bitField1_ |= 0x04000000; onChanged(); return getUnitPricingMeasureFieldBuilder().getBuilder(); } @@ -19829,7 +20816,7 @@ public Builder clearUnitPricingMeasure() { * @return Whether the unitPricingBaseMeasure field is set. */ public boolean hasUnitPricingBaseMeasure() { - return ((bitField1_ & 0x02000000) != 0); + return ((bitField1_ & 0x08000000) != 0); } /** @@ -19878,7 +20865,7 @@ public Builder setUnitPricingBaseMeasure( } else { unitPricingBaseMeasureBuilder_.setMessage(value); } - bitField1_ |= 0x02000000; + bitField1_ |= 0x08000000; onChanged(); return this; } @@ -19902,7 +20889,7 @@ public Builder setUnitPricingBaseMeasure( } else { unitPricingBaseMeasureBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x02000000; + bitField1_ |= 0x08000000; onChanged(); return this; } @@ -19921,7 +20908,7 @@ public Builder setUnitPricingBaseMeasure( public Builder mergeUnitPricingBaseMeasure( com.google.shopping.merchant.products.v1beta.UnitPricingBaseMeasure value) { if (unitPricingBaseMeasureBuilder_ == null) { - if (((bitField1_ & 0x02000000) != 0) + if (((bitField1_ & 0x08000000) != 0) && unitPricingBaseMeasure_ != null && unitPricingBaseMeasure_ != com.google.shopping.merchant.products.v1beta.UnitPricingBaseMeasure @@ -19934,7 +20921,7 @@ public Builder mergeUnitPricingBaseMeasure( unitPricingBaseMeasureBuilder_.mergeFrom(value); } if (unitPricingBaseMeasure_ != null) { - bitField1_ |= 0x02000000; + bitField1_ |= 0x08000000; onChanged(); } return this; @@ -19952,7 +20939,7 @@ public Builder mergeUnitPricingBaseMeasure( * */ public Builder clearUnitPricingBaseMeasure() { - bitField1_ = (bitField1_ & ~0x02000000); + bitField1_ = (bitField1_ & ~0x08000000); unitPricingBaseMeasure_ = null; if (unitPricingBaseMeasureBuilder_ != null) { unitPricingBaseMeasureBuilder_.dispose(); @@ -19975,7 +20962,7 @@ public Builder clearUnitPricingBaseMeasure() { */ public com.google.shopping.merchant.products.v1beta.UnitPricingBaseMeasure.Builder getUnitPricingBaseMeasureBuilder() { - bitField1_ |= 0x02000000; + bitField1_ |= 0x08000000; onChanged(); return getUnitPricingBaseMeasureFieldBuilder().getBuilder(); } @@ -20037,7 +21024,7 @@ public Builder clearUnitPricingBaseMeasure() { * * *
      -     * The number of identical products in a merchant-defined multipack.
      +     * The number of identical products in a business-defined multipack.
            * 
      * * optional int64 multipack = 58; @@ -20046,14 +21033,14 @@ public Builder clearUnitPricingBaseMeasure() { */ @java.lang.Override public boolean hasMultipack() { - return ((bitField1_ & 0x04000000) != 0); + return ((bitField1_ & 0x10000000) != 0); } /** * * *
      -     * The number of identical products in a merchant-defined multipack.
      +     * The number of identical products in a business-defined multipack.
            * 
      * * optional int64 multipack = 58; @@ -20069,7 +21056,7 @@ public long getMultipack() { * * *
      -     * The number of identical products in a merchant-defined multipack.
      +     * The number of identical products in a business-defined multipack.
            * 
      * * optional int64 multipack = 58; @@ -20080,7 +21067,7 @@ public long getMultipack() { public Builder setMultipack(long value) { multipack_ = value; - bitField1_ |= 0x04000000; + bitField1_ |= 0x10000000; onChanged(); return this; } @@ -20089,7 +21076,7 @@ public Builder setMultipack(long value) { * * *
      -     * The number of identical products in a merchant-defined multipack.
      +     * The number of identical products in a business-defined multipack.
            * 
      * * optional int64 multipack = 58; @@ -20097,7 +21084,7 @@ public Builder setMultipack(long value) { * @return This builder for chaining. */ public Builder clearMultipack() { - bitField1_ = (bitField1_ & ~0x04000000); + bitField1_ = (bitField1_ & ~0x10000000); multipack_ = 0L; onChanged(); return this; @@ -20110,7 +21097,9 @@ public Builder clearMultipack() { * *
            * Used to group items in an arbitrary way. Only for CPA%, discouraged
      -     * otherwise.
      +     * otherwise. For more information, see
      +     * [Display ads
      +     * attribute](https://support.google.com/merchants/answer/6069387).
            * 
      * * optional string ads_grouping = 59; @@ -20118,7 +21107,7 @@ public Builder clearMultipack() { * @return Whether the adsGrouping field is set. */ public boolean hasAdsGrouping() { - return ((bitField1_ & 0x08000000) != 0); + return ((bitField1_ & 0x20000000) != 0); } /** @@ -20126,7 +21115,9 @@ public boolean hasAdsGrouping() { * *
            * Used to group items in an arbitrary way. Only for CPA%, discouraged
      -     * otherwise.
      +     * otherwise. For more information, see
      +     * [Display ads
      +     * attribute](https://support.google.com/merchants/answer/6069387).
            * 
      * * optional string ads_grouping = 59; @@ -20150,7 +21141,9 @@ public java.lang.String getAdsGrouping() { * *
            * Used to group items in an arbitrary way. Only for CPA%, discouraged
      -     * otherwise.
      +     * otherwise. For more information, see
      +     * [Display ads
      +     * attribute](https://support.google.com/merchants/answer/6069387).
            * 
      * * optional string ads_grouping = 59; @@ -20174,7 +21167,9 @@ public com.google.protobuf.ByteString getAdsGroupingBytes() { * *
            * Used to group items in an arbitrary way. Only for CPA%, discouraged
      -     * otherwise.
      +     * otherwise. For more information, see
      +     * [Display ads
      +     * attribute](https://support.google.com/merchants/answer/6069387).
            * 
      * * optional string ads_grouping = 59; @@ -20187,7 +21182,7 @@ public Builder setAdsGrouping(java.lang.String value) { throw new NullPointerException(); } adsGrouping_ = value; - bitField1_ |= 0x08000000; + bitField1_ |= 0x20000000; onChanged(); return this; } @@ -20197,7 +21192,9 @@ public Builder setAdsGrouping(java.lang.String value) { * *
            * Used to group items in an arbitrary way. Only for CPA%, discouraged
      -     * otherwise.
      +     * otherwise. For more information, see
      +     * [Display ads
      +     * attribute](https://support.google.com/merchants/answer/6069387).
            * 
      * * optional string ads_grouping = 59; @@ -20206,7 +21203,7 @@ public Builder setAdsGrouping(java.lang.String value) { */ public Builder clearAdsGrouping() { adsGrouping_ = getDefaultInstance().getAdsGrouping(); - bitField1_ = (bitField1_ & ~0x08000000); + bitField1_ = (bitField1_ & ~0x20000000); onChanged(); return this; } @@ -20216,7 +21213,9 @@ public Builder clearAdsGrouping() { * *
            * Used to group items in an arbitrary way. Only for CPA%, discouraged
      -     * otherwise.
      +     * otherwise. For more information, see
      +     * [Display ads
      +     * attribute](https://support.google.com/merchants/answer/6069387).
            * 
      * * optional string ads_grouping = 59; @@ -20230,7 +21229,7 @@ public Builder setAdsGroupingBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); adsGrouping_ = value; - bitField1_ |= 0x08000000; + bitField1_ |= 0x20000000; onChanged(); return this; } @@ -20242,7 +21241,7 @@ private void ensureAdsLabelsIsMutable() { if (!adsLabels_.isModifiable()) { adsLabels_ = new com.google.protobuf.LazyStringArrayList(adsLabels_); } - bitField1_ |= 0x10000000; + bitField1_ |= 0x40000000; } /** @@ -20327,7 +21326,7 @@ public Builder setAdsLabels(int index, java.lang.String value) { } ensureAdsLabelsIsMutable(); adsLabels_.set(index, value); - bitField1_ |= 0x10000000; + bitField1_ |= 0x40000000; onChanged(); return this; } @@ -20350,7 +21349,7 @@ public Builder addAdsLabels(java.lang.String value) { } ensureAdsLabelsIsMutable(); adsLabels_.add(value); - bitField1_ |= 0x10000000; + bitField1_ |= 0x40000000; onChanged(); return this; } @@ -20370,7 +21369,7 @@ public Builder addAdsLabels(java.lang.String value) { public Builder addAllAdsLabels(java.lang.Iterable values) { ensureAdsLabelsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, adsLabels_); - bitField1_ |= 0x10000000; + bitField1_ |= 0x40000000; onChanged(); return this; } @@ -20388,7 +21387,7 @@ public Builder addAllAdsLabels(java.lang.Iterable values) { */ public Builder clearAdsLabels() { adsLabels_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField1_ = (bitField1_ & ~0x10000000); + bitField1_ = (bitField1_ & ~0x40000000); ; onChanged(); return this; @@ -20413,7 +21412,7 @@ public Builder addAdsLabelsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureAdsLabelsIsMutable(); adsLabels_.add(value); - bitField1_ |= 0x10000000; + bitField1_ |= 0x40000000; onChanged(); return this; } @@ -20433,7 +21432,7 @@ public Builder addAdsLabelsBytes(com.google.protobuf.ByteString value) { * @return Whether the adsRedirect field is set. */ public boolean hasAdsRedirect() { - return ((bitField1_ & 0x20000000) != 0); + return ((bitField1_ & 0x80000000) != 0); } /** @@ -20502,7 +21501,7 @@ public Builder setAdsRedirect(java.lang.String value) { throw new NullPointerException(); } adsRedirect_ = value; - bitField1_ |= 0x20000000; + bitField1_ |= 0x80000000; onChanged(); return this; } @@ -20521,7 +21520,7 @@ public Builder setAdsRedirect(java.lang.String value) { */ public Builder clearAdsRedirect() { adsRedirect_ = getDefaultInstance().getAdsRedirect(); - bitField1_ = (bitField1_ & ~0x20000000); + bitField1_ = (bitField1_ & ~0x80000000); onChanged(); return this; } @@ -20545,7 +21544,7 @@ public Builder setAdsRedirectBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); adsRedirect_ = value; - bitField1_ |= 0x20000000; + bitField1_ |= 0x80000000; onChanged(); return this; } @@ -20569,7 +21568,7 @@ public Builder setAdsRedirectBytes(com.google.protobuf.ByteString value) { * @return Whether the costOfGoodsSold field is set. */ public boolean hasCostOfGoodsSold() { - return ((bitField1_ & 0x40000000) != 0); + return ((bitField2_ & 0x00000001) != 0); } /** @@ -20611,7 +21610,7 @@ public Builder setCostOfGoodsSold(com.google.shopping.type.Price value) { } else { costOfGoodsSoldBuilder_.setMessage(value); } - bitField1_ |= 0x40000000; + bitField2_ |= 0x00000001; onChanged(); return this; } @@ -20631,7 +21630,7 @@ public Builder setCostOfGoodsSold(com.google.shopping.type.Price.Builder builder } else { costOfGoodsSoldBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x40000000; + bitField2_ |= 0x00000001; onChanged(); return this; } @@ -20647,7 +21646,7 @@ public Builder setCostOfGoodsSold(com.google.shopping.type.Price.Builder builder */ public Builder mergeCostOfGoodsSold(com.google.shopping.type.Price value) { if (costOfGoodsSoldBuilder_ == null) { - if (((bitField1_ & 0x40000000) != 0) + if (((bitField2_ & 0x00000001) != 0) && costOfGoodsSold_ != null && costOfGoodsSold_ != com.google.shopping.type.Price.getDefaultInstance()) { getCostOfGoodsSoldBuilder().mergeFrom(value); @@ -20658,7 +21657,7 @@ public Builder mergeCostOfGoodsSold(com.google.shopping.type.Price value) { costOfGoodsSoldBuilder_.mergeFrom(value); } if (costOfGoodsSold_ != null) { - bitField1_ |= 0x40000000; + bitField2_ |= 0x00000001; onChanged(); } return this; @@ -20674,7 +21673,7 @@ public Builder mergeCostOfGoodsSold(com.google.shopping.type.Price value) { * .google.shopping.type.Price cost_of_goods_sold = 62; */ public Builder clearCostOfGoodsSold() { - bitField1_ = (bitField1_ & ~0x40000000); + bitField2_ = (bitField2_ & ~0x00000001); costOfGoodsSold_ = null; if (costOfGoodsSoldBuilder_ != null) { costOfGoodsSoldBuilder_.dispose(); @@ -20694,7 +21693,7 @@ public Builder clearCostOfGoodsSold() { * .google.shopping.type.Price cost_of_goods_sold = 62; */ public com.google.shopping.type.Price.Builder getCostOfGoodsSoldBuilder() { - bitField1_ |= 0x40000000; + bitField2_ |= 0x00000001; onChanged(); return getCostOfGoodsSoldFieldBuilder().getBuilder(); } @@ -20748,11 +21747,11 @@ public com.google.shopping.type.PriceOrBuilder getCostOfGoodsSoldOrBuilder() { productDetails_ = java.util.Collections.emptyList(); private void ensureProductDetailsIsMutable() { - if (!((bitField1_ & 0x80000000) != 0)) { + if (!((bitField2_ & 0x00000002) != 0)) { productDetails_ = new java.util.ArrayList( productDetails_); - bitField1_ |= 0x80000000; + bitField2_ |= 0x00000002; } } @@ -20996,7 +21995,7 @@ public Builder addAllProductDetails( public Builder clearProductDetails() { if (productDetailsBuilder_ == null) { productDetails_ = java.util.Collections.emptyList(); - bitField1_ = (bitField1_ & ~0x80000000); + bitField2_ = (bitField2_ & ~0x00000002); onChanged(); } else { productDetailsBuilder_.clear(); @@ -21141,7 +22140,7 @@ public Builder removeProductDetails(int index) { com.google.shopping.merchant.products.v1beta.ProductDetail.Builder, com.google.shopping.merchant.products.v1beta.ProductDetailOrBuilder>( productDetails_, - ((bitField1_ & 0x80000000) != 0), + ((bitField2_ & 0x00000002) != 0), getParentForChildren(), isClean()); productDetails_ = null; @@ -21156,14 +22155,15 @@ private void ensureProductHighlightsIsMutable() { if (!productHighlights_.isModifiable()) { productHighlights_ = new com.google.protobuf.LazyStringArrayList(productHighlights_); } - bitField2_ |= 0x00000001; + bitField2_ |= 0x00000004; } /** * * *
      -     * Bullet points describing the most relevant highlights of a product.
      +     * Bullet points describing the most relevant [product
      +     * highlights](https://support.google.com/merchants/answer/9216100).
            * 
      * * repeated string product_highlights = 64; @@ -21179,7 +22179,8 @@ public com.google.protobuf.ProtocolStringList getProductHighlightsList() { * * *
      -     * Bullet points describing the most relevant highlights of a product.
      +     * Bullet points describing the most relevant [product
      +     * highlights](https://support.google.com/merchants/answer/9216100).
            * 
      * * repeated string product_highlights = 64; @@ -21194,7 +22195,8 @@ public int getProductHighlightsCount() { * * *
      -     * Bullet points describing the most relevant highlights of a product.
      +     * Bullet points describing the most relevant [product
      +     * highlights](https://support.google.com/merchants/answer/9216100).
            * 
      * * repeated string product_highlights = 64; @@ -21210,7 +22212,8 @@ public java.lang.String getProductHighlights(int index) { * * *
      -     * Bullet points describing the most relevant highlights of a product.
      +     * Bullet points describing the most relevant [product
      +     * highlights](https://support.google.com/merchants/answer/9216100).
            * 
      * * repeated string product_highlights = 64; @@ -21226,7 +22229,8 @@ public com.google.protobuf.ByteString getProductHighlightsBytes(int index) { * * *
      -     * Bullet points describing the most relevant highlights of a product.
      +     * Bullet points describing the most relevant [product
      +     * highlights](https://support.google.com/merchants/answer/9216100).
            * 
      * * repeated string product_highlights = 64; @@ -21241,7 +22245,7 @@ public Builder setProductHighlights(int index, java.lang.String value) { } ensureProductHighlightsIsMutable(); productHighlights_.set(index, value); - bitField2_ |= 0x00000001; + bitField2_ |= 0x00000004; onChanged(); return this; } @@ -21250,7 +22254,8 @@ public Builder setProductHighlights(int index, java.lang.String value) { * * *
      -     * Bullet points describing the most relevant highlights of a product.
      +     * Bullet points describing the most relevant [product
      +     * highlights](https://support.google.com/merchants/answer/9216100).
            * 
      * * repeated string product_highlights = 64; @@ -21264,7 +22269,7 @@ public Builder addProductHighlights(java.lang.String value) { } ensureProductHighlightsIsMutable(); productHighlights_.add(value); - bitField2_ |= 0x00000001; + bitField2_ |= 0x00000004; onChanged(); return this; } @@ -21273,7 +22278,8 @@ public Builder addProductHighlights(java.lang.String value) { * * *
      -     * Bullet points describing the most relevant highlights of a product.
      +     * Bullet points describing the most relevant [product
      +     * highlights](https://support.google.com/merchants/answer/9216100).
            * 
      * * repeated string product_highlights = 64; @@ -21284,7 +22290,7 @@ public Builder addProductHighlights(java.lang.String value) { public Builder addAllProductHighlights(java.lang.Iterable values) { ensureProductHighlightsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, productHighlights_); - bitField2_ |= 0x00000001; + bitField2_ |= 0x00000004; onChanged(); return this; } @@ -21293,7 +22299,8 @@ public Builder addAllProductHighlights(java.lang.Iterable valu * * *
      -     * Bullet points describing the most relevant highlights of a product.
      +     * Bullet points describing the most relevant [product
      +     * highlights](https://support.google.com/merchants/answer/9216100).
            * 
      * * repeated string product_highlights = 64; @@ -21302,7 +22309,7 @@ public Builder addAllProductHighlights(java.lang.Iterable valu */ public Builder clearProductHighlights() { productHighlights_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField2_ = (bitField2_ & ~0x00000001); + bitField2_ = (bitField2_ & ~0x00000004); ; onChanged(); return this; @@ -21312,7 +22319,8 @@ public Builder clearProductHighlights() { * * *
      -     * Bullet points describing the most relevant highlights of a product.
      +     * Bullet points describing the most relevant [product
      +     * highlights](https://support.google.com/merchants/answer/9216100).
            * 
      * * repeated string product_highlights = 64; @@ -21327,7 +22335,7 @@ public Builder addProductHighlightsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureProductHighlightsIsMutable(); productHighlights_.add(value); - bitField2_ |= 0x00000001; + bitField2_ |= 0x00000004; onChanged(); return this; } @@ -21346,7 +22354,7 @@ public Builder addProductHighlightsBytes(com.google.protobuf.ByteString value) { * @return Whether the displayAdsId field is set. */ public boolean hasDisplayAdsId() { - return ((bitField2_ & 0x00000002) != 0); + return ((bitField2_ & 0x00000008) != 0); } /** @@ -21412,7 +22420,7 @@ public Builder setDisplayAdsId(java.lang.String value) { throw new NullPointerException(); } displayAdsId_ = value; - bitField2_ |= 0x00000002; + bitField2_ |= 0x00000008; onChanged(); return this; } @@ -21430,7 +22438,7 @@ public Builder setDisplayAdsId(java.lang.String value) { */ public Builder clearDisplayAdsId() { displayAdsId_ = getDefaultInstance().getDisplayAdsId(); - bitField2_ = (bitField2_ & ~0x00000002); + bitField2_ = (bitField2_ & ~0x00000008); onChanged(); return this; } @@ -21453,7 +22461,7 @@ public Builder setDisplayAdsIdBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); displayAdsId_ = value; - bitField2_ |= 0x00000002; + bitField2_ |= 0x00000008; onChanged(); return this; } @@ -21465,14 +22473,16 @@ private void ensureDisplayAdsSimilarIdsIsMutable() { if (!displayAdsSimilarIds_.isModifiable()) { displayAdsSimilarIds_ = new com.google.protobuf.LazyStringArrayList(displayAdsSimilarIds_); } - bitField2_ |= 0x00000004; + bitField2_ |= 0x00000010; } /** * * *
      -     * Advertiser-specified recommendations.
      +     * Advertiser-specified recommendations. For more information, see
      +     * [Display ads attribute
      +     * specification](https://support.google.com/merchants/answer/6069387).
            * 
      * * repeated string display_ads_similar_ids = 66; @@ -21488,7 +22498,9 @@ public com.google.protobuf.ProtocolStringList getDisplayAdsSimilarIdsList() { * * *
      -     * Advertiser-specified recommendations.
      +     * Advertiser-specified recommendations. For more information, see
      +     * [Display ads attribute
      +     * specification](https://support.google.com/merchants/answer/6069387).
            * 
      * * repeated string display_ads_similar_ids = 66; @@ -21503,7 +22515,9 @@ public int getDisplayAdsSimilarIdsCount() { * * *
      -     * Advertiser-specified recommendations.
      +     * Advertiser-specified recommendations. For more information, see
      +     * [Display ads attribute
      +     * specification](https://support.google.com/merchants/answer/6069387).
            * 
      * * repeated string display_ads_similar_ids = 66; @@ -21519,7 +22533,9 @@ public java.lang.String getDisplayAdsSimilarIds(int index) { * * *
      -     * Advertiser-specified recommendations.
      +     * Advertiser-specified recommendations. For more information, see
      +     * [Display ads attribute
      +     * specification](https://support.google.com/merchants/answer/6069387).
            * 
      * * repeated string display_ads_similar_ids = 66; @@ -21535,7 +22551,9 @@ public com.google.protobuf.ByteString getDisplayAdsSimilarIdsBytes(int index) { * * *
      -     * Advertiser-specified recommendations.
      +     * Advertiser-specified recommendations. For more information, see
      +     * [Display ads attribute
      +     * specification](https://support.google.com/merchants/answer/6069387).
            * 
      * * repeated string display_ads_similar_ids = 66; @@ -21550,7 +22568,7 @@ public Builder setDisplayAdsSimilarIds(int index, java.lang.String value) { } ensureDisplayAdsSimilarIdsIsMutable(); displayAdsSimilarIds_.set(index, value); - bitField2_ |= 0x00000004; + bitField2_ |= 0x00000010; onChanged(); return this; } @@ -21559,7 +22577,9 @@ public Builder setDisplayAdsSimilarIds(int index, java.lang.String value) { * * *
      -     * Advertiser-specified recommendations.
      +     * Advertiser-specified recommendations. For more information, see
      +     * [Display ads attribute
      +     * specification](https://support.google.com/merchants/answer/6069387).
            * 
      * * repeated string display_ads_similar_ids = 66; @@ -21573,7 +22593,7 @@ public Builder addDisplayAdsSimilarIds(java.lang.String value) { } ensureDisplayAdsSimilarIdsIsMutable(); displayAdsSimilarIds_.add(value); - bitField2_ |= 0x00000004; + bitField2_ |= 0x00000010; onChanged(); return this; } @@ -21582,7 +22602,9 @@ public Builder addDisplayAdsSimilarIds(java.lang.String value) { * * *
      -     * Advertiser-specified recommendations.
      +     * Advertiser-specified recommendations. For more information, see
      +     * [Display ads attribute
      +     * specification](https://support.google.com/merchants/answer/6069387).
            * 
      * * repeated string display_ads_similar_ids = 66; @@ -21593,7 +22615,7 @@ public Builder addDisplayAdsSimilarIds(java.lang.String value) { public Builder addAllDisplayAdsSimilarIds(java.lang.Iterable values) { ensureDisplayAdsSimilarIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, displayAdsSimilarIds_); - bitField2_ |= 0x00000004; + bitField2_ |= 0x00000010; onChanged(); return this; } @@ -21602,7 +22624,9 @@ public Builder addAllDisplayAdsSimilarIds(java.lang.Iterable v * * *
      -     * Advertiser-specified recommendations.
      +     * Advertiser-specified recommendations. For more information, see
      +     * [Display ads attribute
      +     * specification](https://support.google.com/merchants/answer/6069387).
            * 
      * * repeated string display_ads_similar_ids = 66; @@ -21611,7 +22635,7 @@ public Builder addAllDisplayAdsSimilarIds(java.lang.Iterable v */ public Builder clearDisplayAdsSimilarIds() { displayAdsSimilarIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField2_ = (bitField2_ & ~0x00000004); + bitField2_ = (bitField2_ & ~0x00000010); ; onChanged(); return this; @@ -21621,7 +22645,9 @@ public Builder clearDisplayAdsSimilarIds() { * * *
      -     * Advertiser-specified recommendations.
      +     * Advertiser-specified recommendations. For more information, see
      +     * [Display ads attribute
      +     * specification](https://support.google.com/merchants/answer/6069387).
            * 
      * * repeated string display_ads_similar_ids = 66; @@ -21636,7 +22662,7 @@ public Builder addDisplayAdsSimilarIdsBytes(com.google.protobuf.ByteString value checkByteStringIsUtf8(value); ensureDisplayAdsSimilarIdsIsMutable(); displayAdsSimilarIds_.add(value); - bitField2_ |= 0x00000004; + bitField2_ |= 0x00000010; onChanged(); return this; } @@ -21655,7 +22681,7 @@ public Builder addDisplayAdsSimilarIdsBytes(com.google.protobuf.ByteString value * @return Whether the displayAdsTitle field is set. */ public boolean hasDisplayAdsTitle() { - return ((bitField2_ & 0x00000008) != 0); + return ((bitField2_ & 0x00000020) != 0); } /** @@ -21721,7 +22747,7 @@ public Builder setDisplayAdsTitle(java.lang.String value) { throw new NullPointerException(); } displayAdsTitle_ = value; - bitField2_ |= 0x00000008; + bitField2_ |= 0x00000020; onChanged(); return this; } @@ -21739,7 +22765,7 @@ public Builder setDisplayAdsTitle(java.lang.String value) { */ public Builder clearDisplayAdsTitle() { displayAdsTitle_ = getDefaultInstance().getDisplayAdsTitle(); - bitField2_ = (bitField2_ & ~0x00000008); + bitField2_ = (bitField2_ & ~0x00000020); onChanged(); return this; } @@ -21762,7 +22788,7 @@ public Builder setDisplayAdsTitleBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); displayAdsTitle_ = value; - bitField2_ |= 0x00000008; + bitField2_ |= 0x00000020; onChanged(); return this; } @@ -21782,7 +22808,7 @@ public Builder setDisplayAdsTitleBytes(com.google.protobuf.ByteString value) { * @return Whether the displayAdsLink field is set. */ public boolean hasDisplayAdsLink() { - return ((bitField2_ & 0x00000010) != 0); + return ((bitField2_ & 0x00000040) != 0); } /** @@ -21851,7 +22877,7 @@ public Builder setDisplayAdsLink(java.lang.String value) { throw new NullPointerException(); } displayAdsLink_ = value; - bitField2_ |= 0x00000010; + bitField2_ |= 0x00000040; onChanged(); return this; } @@ -21870,7 +22896,7 @@ public Builder setDisplayAdsLink(java.lang.String value) { */ public Builder clearDisplayAdsLink() { displayAdsLink_ = getDefaultInstance().getDisplayAdsLink(); - bitField2_ = (bitField2_ & ~0x00000010); + bitField2_ = (bitField2_ & ~0x00000040); onChanged(); return this; } @@ -21894,7 +22920,7 @@ public Builder setDisplayAdsLinkBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); displayAdsLink_ = value; - bitField2_ |= 0x00000010; + bitField2_ |= 0x00000040; onChanged(); return this; } @@ -21905,7 +22931,9 @@ public Builder setDisplayAdsLinkBytes(com.google.protobuf.ByteString value) { * * *
      -     * Offer margin for dynamic remarketing campaigns.
      +     * Offer margin for dynamic remarketing campaigns. For more information, see
      +     * [Display ads
      +     * attribute](https://support.google.com/merchants/answer/6069387).
            * 
      * * optional double display_ads_value = 69; @@ -21914,14 +22942,16 @@ public Builder setDisplayAdsLinkBytes(com.google.protobuf.ByteString value) { */ @java.lang.Override public boolean hasDisplayAdsValue() { - return ((bitField2_ & 0x00000020) != 0); + return ((bitField2_ & 0x00000080) != 0); } /** * * *
      -     * Offer margin for dynamic remarketing campaigns.
      +     * Offer margin for dynamic remarketing campaigns. For more information, see
      +     * [Display ads
      +     * attribute](https://support.google.com/merchants/answer/6069387).
            * 
      * * optional double display_ads_value = 69; @@ -21937,7 +22967,9 @@ public double getDisplayAdsValue() { * * *
      -     * Offer margin for dynamic remarketing campaigns.
      +     * Offer margin for dynamic remarketing campaigns. For more information, see
      +     * [Display ads
      +     * attribute](https://support.google.com/merchants/answer/6069387).
            * 
      * * optional double display_ads_value = 69; @@ -21948,7 +22980,7 @@ public double getDisplayAdsValue() { public Builder setDisplayAdsValue(double value) { displayAdsValue_ = value; - bitField2_ |= 0x00000020; + bitField2_ |= 0x00000080; onChanged(); return this; } @@ -21957,7 +22989,9 @@ public Builder setDisplayAdsValue(double value) { * * *
      -     * Offer margin for dynamic remarketing campaigns.
      +     * Offer margin for dynamic remarketing campaigns. For more information, see
      +     * [Display ads
      +     * attribute](https://support.google.com/merchants/answer/6069387).
            * 
      * * optional double display_ads_value = 69; @@ -21965,7 +22999,7 @@ public Builder setDisplayAdsValue(double value) { * @return This builder for chaining. */ public Builder clearDisplayAdsValue() { - bitField2_ = (bitField2_ & ~0x00000020); + bitField2_ = (bitField2_ & ~0x00000080); displayAdsValue_ = 0D; onChanged(); return this; @@ -21978,7 +23012,7 @@ private void ensurePromotionIdsIsMutable() { if (!promotionIds_.isModifiable()) { promotionIds_ = new com.google.protobuf.LazyStringArrayList(promotionIds_); } - bitField2_ |= 0x00000040; + bitField2_ |= 0x00000100; } /** @@ -22063,7 +23097,7 @@ public Builder setPromotionIds(int index, java.lang.String value) { } ensurePromotionIdsIsMutable(); promotionIds_.set(index, value); - bitField2_ |= 0x00000040; + bitField2_ |= 0x00000100; onChanged(); return this; } @@ -22086,7 +23120,7 @@ public Builder addPromotionIds(java.lang.String value) { } ensurePromotionIdsIsMutable(); promotionIds_.add(value); - bitField2_ |= 0x00000040; + bitField2_ |= 0x00000100; onChanged(); return this; } @@ -22106,7 +23140,7 @@ public Builder addPromotionIds(java.lang.String value) { public Builder addAllPromotionIds(java.lang.Iterable values) { ensurePromotionIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, promotionIds_); - bitField2_ |= 0x00000040; + bitField2_ |= 0x00000100; onChanged(); return this; } @@ -22124,7 +23158,7 @@ public Builder addAllPromotionIds(java.lang.Iterable values) { */ public Builder clearPromotionIds() { promotionIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField2_ = (bitField2_ & ~0x00000040); + bitField2_ = (bitField2_ & ~0x00000100); ; onChanged(); return this; @@ -22149,7 +23183,7 @@ public Builder addPromotionIdsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensurePromotionIdsIsMutable(); promotionIds_.add(value); - bitField2_ |= 0x00000040; + bitField2_ |= 0x00000100; onChanged(); return this; } @@ -22160,7 +23194,8 @@ public Builder addPromotionIdsBytes(com.google.protobuf.ByteString value) { * * *
      -     * The pick up option for the item.
      +     * The [pickup](https://support.google.com/merchants/answer/14634021) option
      +     * for the item.
            * 
      * * optional string pickup_method = 80; @@ -22168,14 +23203,15 @@ public Builder addPromotionIdsBytes(com.google.protobuf.ByteString value) { * @return Whether the pickupMethod field is set. */ public boolean hasPickupMethod() { - return ((bitField2_ & 0x00000080) != 0); + return ((bitField2_ & 0x00000200) != 0); } /** * * *
      -     * The pick up option for the item.
      +     * The [pickup](https://support.google.com/merchants/answer/14634021) option
      +     * for the item.
            * 
      * * optional string pickup_method = 80; @@ -22198,7 +23234,8 @@ public java.lang.String getPickupMethod() { * * *
      -     * The pick up option for the item.
      +     * The [pickup](https://support.google.com/merchants/answer/14634021) option
      +     * for the item.
            * 
      * * optional string pickup_method = 80; @@ -22221,7 +23258,8 @@ public com.google.protobuf.ByteString getPickupMethodBytes() { * * *
      -     * The pick up option for the item.
      +     * The [pickup](https://support.google.com/merchants/answer/14634021) option
      +     * for the item.
            * 
      * * optional string pickup_method = 80; @@ -22234,7 +23272,7 @@ public Builder setPickupMethod(java.lang.String value) { throw new NullPointerException(); } pickupMethod_ = value; - bitField2_ |= 0x00000080; + bitField2_ |= 0x00000200; onChanged(); return this; } @@ -22243,7 +23281,8 @@ public Builder setPickupMethod(java.lang.String value) { * * *
      -     * The pick up option for the item.
      +     * The [pickup](https://support.google.com/merchants/answer/14634021) option
      +     * for the item.
            * 
      * * optional string pickup_method = 80; @@ -22252,7 +23291,7 @@ public Builder setPickupMethod(java.lang.String value) { */ public Builder clearPickupMethod() { pickupMethod_ = getDefaultInstance().getPickupMethod(); - bitField2_ = (bitField2_ & ~0x00000080); + bitField2_ = (bitField2_ & ~0x00000200); onChanged(); return this; } @@ -22261,7 +23300,8 @@ public Builder clearPickupMethod() { * * *
      -     * The pick up option for the item.
      +     * The [pickup](https://support.google.com/merchants/answer/14634021) option
      +     * for the item.
            * 
      * * optional string pickup_method = 80; @@ -22275,7 +23315,7 @@ public Builder setPickupMethodBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); pickupMethod_ = value; - bitField2_ |= 0x00000080; + bitField2_ |= 0x00000200; onChanged(); return this; } @@ -22286,7 +23326,8 @@ public Builder setPickupMethodBytes(com.google.protobuf.ByteString value) { * * *
      -     * Item store pickup timeline.
      +     * Item store pickup timeline. For more information, see
      +     * [Pickup SLA](https://support.google.com/merchants/answer/14635400).
            * 
      * * optional string pickup_sla = 81; @@ -22294,14 +23335,15 @@ public Builder setPickupMethodBytes(com.google.protobuf.ByteString value) { * @return Whether the pickupSla field is set. */ public boolean hasPickupSla() { - return ((bitField2_ & 0x00000100) != 0); + return ((bitField2_ & 0x00000400) != 0); } /** * * *
      -     * Item store pickup timeline.
      +     * Item store pickup timeline. For more information, see
      +     * [Pickup SLA](https://support.google.com/merchants/answer/14635400).
            * 
      * * optional string pickup_sla = 81; @@ -22324,7 +23366,8 @@ public java.lang.String getPickupSla() { * * *
      -     * Item store pickup timeline.
      +     * Item store pickup timeline. For more information, see
      +     * [Pickup SLA](https://support.google.com/merchants/answer/14635400).
            * 
      * * optional string pickup_sla = 81; @@ -22347,7 +23390,8 @@ public com.google.protobuf.ByteString getPickupSlaBytes() { * * *
      -     * Item store pickup timeline.
      +     * Item store pickup timeline. For more information, see
      +     * [Pickup SLA](https://support.google.com/merchants/answer/14635400).
            * 
      * * optional string pickup_sla = 81; @@ -22360,7 +23404,7 @@ public Builder setPickupSla(java.lang.String value) { throw new NullPointerException(); } pickupSla_ = value; - bitField2_ |= 0x00000100; + bitField2_ |= 0x00000400; onChanged(); return this; } @@ -22369,7 +23413,8 @@ public Builder setPickupSla(java.lang.String value) { * * *
      -     * Item store pickup timeline.
      +     * Item store pickup timeline. For more information, see
      +     * [Pickup SLA](https://support.google.com/merchants/answer/14635400).
            * 
      * * optional string pickup_sla = 81; @@ -22378,7 +23423,7 @@ public Builder setPickupSla(java.lang.String value) { */ public Builder clearPickupSla() { pickupSla_ = getDefaultInstance().getPickupSla(); - bitField2_ = (bitField2_ & ~0x00000100); + bitField2_ = (bitField2_ & ~0x00000400); onChanged(); return this; } @@ -22387,7 +23432,8 @@ public Builder clearPickupSla() { * * *
      -     * Item store pickup timeline.
      +     * Item store pickup timeline. For more information, see
      +     * [Pickup SLA](https://support.google.com/merchants/answer/14635400).
            * 
      * * optional string pickup_sla = 81; @@ -22401,7 +23447,7 @@ public Builder setPickupSlaBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); pickupSla_ = value; - bitField2_ |= 0x00000100; + bitField2_ |= 0x00000400; onChanged(); return this; } @@ -22412,7 +23458,8 @@ public Builder setPickupSlaBytes(com.google.protobuf.ByteString value) { * * *
      -     * Link template for merchant hosted local storefront.
      +     * [Link template](https://support.google.com/merchants/answer/13871172) for
      +     * business hosted local storefront.
            * 
      * * optional string link_template = 82; @@ -22420,14 +23467,15 @@ public Builder setPickupSlaBytes(com.google.protobuf.ByteString value) { * @return Whether the linkTemplate field is set. */ public boolean hasLinkTemplate() { - return ((bitField2_ & 0x00000200) != 0); + return ((bitField2_ & 0x00000800) != 0); } /** * * *
      -     * Link template for merchant hosted local storefront.
      +     * [Link template](https://support.google.com/merchants/answer/13871172) for
      +     * business hosted local storefront.
            * 
      * * optional string link_template = 82; @@ -22450,7 +23498,8 @@ public java.lang.String getLinkTemplate() { * * *
      -     * Link template for merchant hosted local storefront.
      +     * [Link template](https://support.google.com/merchants/answer/13871172) for
      +     * business hosted local storefront.
            * 
      * * optional string link_template = 82; @@ -22473,7 +23522,8 @@ public com.google.protobuf.ByteString getLinkTemplateBytes() { * * *
      -     * Link template for merchant hosted local storefront.
      +     * [Link template](https://support.google.com/merchants/answer/13871172) for
      +     * business hosted local storefront.
            * 
      * * optional string link_template = 82; @@ -22486,7 +23536,7 @@ public Builder setLinkTemplate(java.lang.String value) { throw new NullPointerException(); } linkTemplate_ = value; - bitField2_ |= 0x00000200; + bitField2_ |= 0x00000800; onChanged(); return this; } @@ -22495,7 +23545,8 @@ public Builder setLinkTemplate(java.lang.String value) { * * *
      -     * Link template for merchant hosted local storefront.
      +     * [Link template](https://support.google.com/merchants/answer/13871172) for
      +     * business hosted local storefront.
            * 
      * * optional string link_template = 82; @@ -22504,7 +23555,7 @@ public Builder setLinkTemplate(java.lang.String value) { */ public Builder clearLinkTemplate() { linkTemplate_ = getDefaultInstance().getLinkTemplate(); - bitField2_ = (bitField2_ & ~0x00000200); + bitField2_ = (bitField2_ & ~0x00000800); onChanged(); return this; } @@ -22513,7 +23564,8 @@ public Builder clearLinkTemplate() { * * *
      -     * Link template for merchant hosted local storefront.
      +     * [Link template](https://support.google.com/merchants/answer/13871172) for
      +     * business hosted local storefront.
            * 
      * * optional string link_template = 82; @@ -22527,7 +23579,7 @@ public Builder setLinkTemplateBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); linkTemplate_ = value; - bitField2_ |= 0x00000200; + bitField2_ |= 0x00000800; onChanged(); return this; } @@ -22538,7 +23590,8 @@ public Builder setLinkTemplateBytes(com.google.protobuf.ByteString value) { * * *
      -     * Link template for merchant hosted local storefront optimized for mobile
      +     * [Link template](https://support.google.com/merchants/answer/13870216) for
      +     * business hosted local storefront optimized for mobile
            * devices.
            * 
      * @@ -22547,14 +23600,15 @@ public Builder setLinkTemplateBytes(com.google.protobuf.ByteString value) { * @return Whether the mobileLinkTemplate field is set. */ public boolean hasMobileLinkTemplate() { - return ((bitField2_ & 0x00000400) != 0); + return ((bitField2_ & 0x00001000) != 0); } /** * * *
      -     * Link template for merchant hosted local storefront optimized for mobile
      +     * [Link template](https://support.google.com/merchants/answer/13870216) for
      +     * business hosted local storefront optimized for mobile
            * devices.
            * 
      * @@ -22578,7 +23632,8 @@ public java.lang.String getMobileLinkTemplate() { * * *
      -     * Link template for merchant hosted local storefront optimized for mobile
      +     * [Link template](https://support.google.com/merchants/answer/13870216) for
      +     * business hosted local storefront optimized for mobile
            * devices.
            * 
      * @@ -22602,7 +23657,8 @@ public com.google.protobuf.ByteString getMobileLinkTemplateBytes() { * * *
      -     * Link template for merchant hosted local storefront optimized for mobile
      +     * [Link template](https://support.google.com/merchants/answer/13870216) for
      +     * business hosted local storefront optimized for mobile
            * devices.
            * 
      * @@ -22616,7 +23672,7 @@ public Builder setMobileLinkTemplate(java.lang.String value) { throw new NullPointerException(); } mobileLinkTemplate_ = value; - bitField2_ |= 0x00000400; + bitField2_ |= 0x00001000; onChanged(); return this; } @@ -22625,7 +23681,8 @@ public Builder setMobileLinkTemplate(java.lang.String value) { * * *
      -     * Link template for merchant hosted local storefront optimized for mobile
      +     * [Link template](https://support.google.com/merchants/answer/13870216) for
      +     * business hosted local storefront optimized for mobile
            * devices.
            * 
      * @@ -22635,7 +23692,7 @@ public Builder setMobileLinkTemplate(java.lang.String value) { */ public Builder clearMobileLinkTemplate() { mobileLinkTemplate_ = getDefaultInstance().getMobileLinkTemplate(); - bitField2_ = (bitField2_ & ~0x00000400); + bitField2_ = (bitField2_ & ~0x00001000); onChanged(); return this; } @@ -22644,7 +23701,8 @@ public Builder clearMobileLinkTemplate() { * * *
      -     * Link template for merchant hosted local storefront optimized for mobile
      +     * [Link template](https://support.google.com/merchants/answer/13870216) for
      +     * business hosted local storefront optimized for mobile
            * devices.
            * 
      * @@ -22659,7 +23717,7 @@ public Builder setMobileLinkTemplateBytes(com.google.protobuf.ByteString value) } checkByteStringIsUtf8(value); mobileLinkTemplate_ = value; - bitField2_ |= 0x00000400; + bitField2_ |= 0x00001000; onChanged(); return this; } @@ -22670,7 +23728,8 @@ public Builder setMobileLinkTemplateBytes(com.google.protobuf.ByteString value) * * *
      -     * Custom label 0 for custom grouping of items in a Shopping campaign.
      +     * [Custom label 0](https://support.google.com/merchants/answer/6324473) for
      +     * custom grouping of items in a Shopping campaign.
            * 
      * * optional string custom_label_0 = 71; @@ -22678,14 +23737,15 @@ public Builder setMobileLinkTemplateBytes(com.google.protobuf.ByteString value) * @return Whether the customLabel0 field is set. */ public boolean hasCustomLabel0() { - return ((bitField2_ & 0x00000800) != 0); + return ((bitField2_ & 0x00002000) != 0); } /** * * *
      -     * Custom label 0 for custom grouping of items in a Shopping campaign.
      +     * [Custom label 0](https://support.google.com/merchants/answer/6324473) for
      +     * custom grouping of items in a Shopping campaign.
            * 
      * * optional string custom_label_0 = 71; @@ -22708,7 +23768,8 @@ public java.lang.String getCustomLabel0() { * * *
      -     * Custom label 0 for custom grouping of items in a Shopping campaign.
      +     * [Custom label 0](https://support.google.com/merchants/answer/6324473) for
      +     * custom grouping of items in a Shopping campaign.
            * 
      * * optional string custom_label_0 = 71; @@ -22731,7 +23792,8 @@ public com.google.protobuf.ByteString getCustomLabel0Bytes() { * * *
      -     * Custom label 0 for custom grouping of items in a Shopping campaign.
      +     * [Custom label 0](https://support.google.com/merchants/answer/6324473) for
      +     * custom grouping of items in a Shopping campaign.
            * 
      * * optional string custom_label_0 = 71; @@ -22744,7 +23806,7 @@ public Builder setCustomLabel0(java.lang.String value) { throw new NullPointerException(); } customLabel0_ = value; - bitField2_ |= 0x00000800; + bitField2_ |= 0x00002000; onChanged(); return this; } @@ -22753,7 +23815,8 @@ public Builder setCustomLabel0(java.lang.String value) { * * *
      -     * Custom label 0 for custom grouping of items in a Shopping campaign.
      +     * [Custom label 0](https://support.google.com/merchants/answer/6324473) for
      +     * custom grouping of items in a Shopping campaign.
            * 
      * * optional string custom_label_0 = 71; @@ -22762,7 +23825,7 @@ public Builder setCustomLabel0(java.lang.String value) { */ public Builder clearCustomLabel0() { customLabel0_ = getDefaultInstance().getCustomLabel0(); - bitField2_ = (bitField2_ & ~0x00000800); + bitField2_ = (bitField2_ & ~0x00002000); onChanged(); return this; } @@ -22771,7 +23834,8 @@ public Builder clearCustomLabel0() { * * *
      -     * Custom label 0 for custom grouping of items in a Shopping campaign.
      +     * [Custom label 0](https://support.google.com/merchants/answer/6324473) for
      +     * custom grouping of items in a Shopping campaign.
            * 
      * * optional string custom_label_0 = 71; @@ -22785,7 +23849,7 @@ public Builder setCustomLabel0Bytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); customLabel0_ = value; - bitField2_ |= 0x00000800; + bitField2_ |= 0x00002000; onChanged(); return this; } @@ -22796,7 +23860,8 @@ public Builder setCustomLabel0Bytes(com.google.protobuf.ByteString value) { * * *
      -     * Custom label 1 for custom grouping of items in a Shopping campaign.
      +     * [Custom label 1](https://support.google.com/merchants/answer/6324473)
      +     * for custom grouping of items in a Shopping campaign.
            * 
      * * optional string custom_label_1 = 72; @@ -22804,14 +23869,15 @@ public Builder setCustomLabel0Bytes(com.google.protobuf.ByteString value) { * @return Whether the customLabel1 field is set. */ public boolean hasCustomLabel1() { - return ((bitField2_ & 0x00001000) != 0); + return ((bitField2_ & 0x00004000) != 0); } /** * * *
      -     * Custom label 1 for custom grouping of items in a Shopping campaign.
      +     * [Custom label 1](https://support.google.com/merchants/answer/6324473)
      +     * for custom grouping of items in a Shopping campaign.
            * 
      * * optional string custom_label_1 = 72; @@ -22834,7 +23900,8 @@ public java.lang.String getCustomLabel1() { * * *
      -     * Custom label 1 for custom grouping of items in a Shopping campaign.
      +     * [Custom label 1](https://support.google.com/merchants/answer/6324473)
      +     * for custom grouping of items in a Shopping campaign.
            * 
      * * optional string custom_label_1 = 72; @@ -22857,7 +23924,8 @@ public com.google.protobuf.ByteString getCustomLabel1Bytes() { * * *
      -     * Custom label 1 for custom grouping of items in a Shopping campaign.
      +     * [Custom label 1](https://support.google.com/merchants/answer/6324473)
      +     * for custom grouping of items in a Shopping campaign.
            * 
      * * optional string custom_label_1 = 72; @@ -22870,7 +23938,7 @@ public Builder setCustomLabel1(java.lang.String value) { throw new NullPointerException(); } customLabel1_ = value; - bitField2_ |= 0x00001000; + bitField2_ |= 0x00004000; onChanged(); return this; } @@ -22879,7 +23947,8 @@ public Builder setCustomLabel1(java.lang.String value) { * * *
      -     * Custom label 1 for custom grouping of items in a Shopping campaign.
      +     * [Custom label 1](https://support.google.com/merchants/answer/6324473)
      +     * for custom grouping of items in a Shopping campaign.
            * 
      * * optional string custom_label_1 = 72; @@ -22888,7 +23957,7 @@ public Builder setCustomLabel1(java.lang.String value) { */ public Builder clearCustomLabel1() { customLabel1_ = getDefaultInstance().getCustomLabel1(); - bitField2_ = (bitField2_ & ~0x00001000); + bitField2_ = (bitField2_ & ~0x00004000); onChanged(); return this; } @@ -22897,7 +23966,8 @@ public Builder clearCustomLabel1() { * * *
      -     * Custom label 1 for custom grouping of items in a Shopping campaign.
      +     * [Custom label 1](https://support.google.com/merchants/answer/6324473)
      +     * for custom grouping of items in a Shopping campaign.
            * 
      * * optional string custom_label_1 = 72; @@ -22911,7 +23981,7 @@ public Builder setCustomLabel1Bytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); customLabel1_ = value; - bitField2_ |= 0x00001000; + bitField2_ |= 0x00004000; onChanged(); return this; } @@ -22922,7 +23992,8 @@ public Builder setCustomLabel1Bytes(com.google.protobuf.ByteString value) { * * *
      -     * Custom label 2 for custom grouping of items in a Shopping campaign.
      +     * [Custom label 2](https://support.google.com/merchants/answer/6324473)
      +     * for custom grouping of items in a Shopping campaign.
            * 
      * * optional string custom_label_2 = 73; @@ -22930,14 +24001,15 @@ public Builder setCustomLabel1Bytes(com.google.protobuf.ByteString value) { * @return Whether the customLabel2 field is set. */ public boolean hasCustomLabel2() { - return ((bitField2_ & 0x00002000) != 0); + return ((bitField2_ & 0x00008000) != 0); } /** * * *
      -     * Custom label 2 for custom grouping of items in a Shopping campaign.
      +     * [Custom label 2](https://support.google.com/merchants/answer/6324473)
      +     * for custom grouping of items in a Shopping campaign.
            * 
      * * optional string custom_label_2 = 73; @@ -22960,7 +24032,8 @@ public java.lang.String getCustomLabel2() { * * *
      -     * Custom label 2 for custom grouping of items in a Shopping campaign.
      +     * [Custom label 2](https://support.google.com/merchants/answer/6324473)
      +     * for custom grouping of items in a Shopping campaign.
            * 
      * * optional string custom_label_2 = 73; @@ -22983,7 +24056,8 @@ public com.google.protobuf.ByteString getCustomLabel2Bytes() { * * *
      -     * Custom label 2 for custom grouping of items in a Shopping campaign.
      +     * [Custom label 2](https://support.google.com/merchants/answer/6324473)
      +     * for custom grouping of items in a Shopping campaign.
            * 
      * * optional string custom_label_2 = 73; @@ -22996,7 +24070,7 @@ public Builder setCustomLabel2(java.lang.String value) { throw new NullPointerException(); } customLabel2_ = value; - bitField2_ |= 0x00002000; + bitField2_ |= 0x00008000; onChanged(); return this; } @@ -23005,7 +24079,8 @@ public Builder setCustomLabel2(java.lang.String value) { * * *
      -     * Custom label 2 for custom grouping of items in a Shopping campaign.
      +     * [Custom label 2](https://support.google.com/merchants/answer/6324473)
      +     * for custom grouping of items in a Shopping campaign.
            * 
      * * optional string custom_label_2 = 73; @@ -23014,7 +24089,7 @@ public Builder setCustomLabel2(java.lang.String value) { */ public Builder clearCustomLabel2() { customLabel2_ = getDefaultInstance().getCustomLabel2(); - bitField2_ = (bitField2_ & ~0x00002000); + bitField2_ = (bitField2_ & ~0x00008000); onChanged(); return this; } @@ -23023,7 +24098,8 @@ public Builder clearCustomLabel2() { * * *
      -     * Custom label 2 for custom grouping of items in a Shopping campaign.
      +     * [Custom label 2](https://support.google.com/merchants/answer/6324473)
      +     * for custom grouping of items in a Shopping campaign.
            * 
      * * optional string custom_label_2 = 73; @@ -23037,7 +24113,7 @@ public Builder setCustomLabel2Bytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); customLabel2_ = value; - bitField2_ |= 0x00002000; + bitField2_ |= 0x00008000; onChanged(); return this; } @@ -23048,7 +24124,8 @@ public Builder setCustomLabel2Bytes(com.google.protobuf.ByteString value) { * * *
      -     * Custom label 3 for custom grouping of items in a Shopping campaign.
      +     * [Custom label 3](https://support.google.com/merchants/answer/6324473)
      +     * for custom grouping of items in a Shopping campaign.
            * 
      * * optional string custom_label_3 = 74; @@ -23056,14 +24133,15 @@ public Builder setCustomLabel2Bytes(com.google.protobuf.ByteString value) { * @return Whether the customLabel3 field is set. */ public boolean hasCustomLabel3() { - return ((bitField2_ & 0x00004000) != 0); + return ((bitField2_ & 0x00010000) != 0); } /** * * *
      -     * Custom label 3 for custom grouping of items in a Shopping campaign.
      +     * [Custom label 3](https://support.google.com/merchants/answer/6324473)
      +     * for custom grouping of items in a Shopping campaign.
            * 
      * * optional string custom_label_3 = 74; @@ -23086,7 +24164,8 @@ public java.lang.String getCustomLabel3() { * * *
      -     * Custom label 3 for custom grouping of items in a Shopping campaign.
      +     * [Custom label 3](https://support.google.com/merchants/answer/6324473)
      +     * for custom grouping of items in a Shopping campaign.
            * 
      * * optional string custom_label_3 = 74; @@ -23109,7 +24188,8 @@ public com.google.protobuf.ByteString getCustomLabel3Bytes() { * * *
      -     * Custom label 3 for custom grouping of items in a Shopping campaign.
      +     * [Custom label 3](https://support.google.com/merchants/answer/6324473)
      +     * for custom grouping of items in a Shopping campaign.
            * 
      * * optional string custom_label_3 = 74; @@ -23122,7 +24202,7 @@ public Builder setCustomLabel3(java.lang.String value) { throw new NullPointerException(); } customLabel3_ = value; - bitField2_ |= 0x00004000; + bitField2_ |= 0x00010000; onChanged(); return this; } @@ -23131,7 +24211,8 @@ public Builder setCustomLabel3(java.lang.String value) { * * *
      -     * Custom label 3 for custom grouping of items in a Shopping campaign.
      +     * [Custom label 3](https://support.google.com/merchants/answer/6324473)
      +     * for custom grouping of items in a Shopping campaign.
            * 
      * * optional string custom_label_3 = 74; @@ -23140,7 +24221,7 @@ public Builder setCustomLabel3(java.lang.String value) { */ public Builder clearCustomLabel3() { customLabel3_ = getDefaultInstance().getCustomLabel3(); - bitField2_ = (bitField2_ & ~0x00004000); + bitField2_ = (bitField2_ & ~0x00010000); onChanged(); return this; } @@ -23149,7 +24230,8 @@ public Builder clearCustomLabel3() { * * *
      -     * Custom label 3 for custom grouping of items in a Shopping campaign.
      +     * [Custom label 3](https://support.google.com/merchants/answer/6324473)
      +     * for custom grouping of items in a Shopping campaign.
            * 
      * * optional string custom_label_3 = 74; @@ -23163,7 +24245,7 @@ public Builder setCustomLabel3Bytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); customLabel3_ = value; - bitField2_ |= 0x00004000; + bitField2_ |= 0x00010000; onChanged(); return this; } @@ -23174,7 +24256,8 @@ public Builder setCustomLabel3Bytes(com.google.protobuf.ByteString value) { * * *
      -     * Custom label 4 for custom grouping of items in a Shopping campaign.
      +     * [Custom label 4](https://support.google.com/merchants/answer/6324473) for
      +     * custom grouping of items in a Shopping campaign.
            * 
      * * optional string custom_label_4 = 75; @@ -23182,14 +24265,15 @@ public Builder setCustomLabel3Bytes(com.google.protobuf.ByteString value) { * @return Whether the customLabel4 field is set. */ public boolean hasCustomLabel4() { - return ((bitField2_ & 0x00008000) != 0); + return ((bitField2_ & 0x00020000) != 0); } /** * * *
      -     * Custom label 4 for custom grouping of items in a Shopping campaign.
      +     * [Custom label 4](https://support.google.com/merchants/answer/6324473) for
      +     * custom grouping of items in a Shopping campaign.
            * 
      * * optional string custom_label_4 = 75; @@ -23212,7 +24296,8 @@ public java.lang.String getCustomLabel4() { * * *
      -     * Custom label 4 for custom grouping of items in a Shopping campaign.
      +     * [Custom label 4](https://support.google.com/merchants/answer/6324473) for
      +     * custom grouping of items in a Shopping campaign.
            * 
      * * optional string custom_label_4 = 75; @@ -23235,7 +24320,8 @@ public com.google.protobuf.ByteString getCustomLabel4Bytes() { * * *
      -     * Custom label 4 for custom grouping of items in a Shopping campaign.
      +     * [Custom label 4](https://support.google.com/merchants/answer/6324473) for
      +     * custom grouping of items in a Shopping campaign.
            * 
      * * optional string custom_label_4 = 75; @@ -23248,7 +24334,7 @@ public Builder setCustomLabel4(java.lang.String value) { throw new NullPointerException(); } customLabel4_ = value; - bitField2_ |= 0x00008000; + bitField2_ |= 0x00020000; onChanged(); return this; } @@ -23257,7 +24343,8 @@ public Builder setCustomLabel4(java.lang.String value) { * * *
      -     * Custom label 4 for custom grouping of items in a Shopping campaign.
      +     * [Custom label 4](https://support.google.com/merchants/answer/6324473) for
      +     * custom grouping of items in a Shopping campaign.
            * 
      * * optional string custom_label_4 = 75; @@ -23266,7 +24353,7 @@ public Builder setCustomLabel4(java.lang.String value) { */ public Builder clearCustomLabel4() { customLabel4_ = getDefaultInstance().getCustomLabel4(); - bitField2_ = (bitField2_ & ~0x00008000); + bitField2_ = (bitField2_ & ~0x00020000); onChanged(); return this; } @@ -23275,7 +24362,8 @@ public Builder clearCustomLabel4() { * * *
      -     * Custom label 4 for custom grouping of items in a Shopping campaign.
      +     * [Custom label 4](https://support.google.com/merchants/answer/6324473) for
      +     * custom grouping of items in a Shopping campaign.
            * 
      * * optional string custom_label_4 = 75; @@ -23289,7 +24377,7 @@ public Builder setCustomLabel4Bytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); customLabel4_ = value; - bitField2_ |= 0x00008000; + bitField2_ |= 0x00020000; onChanged(); return this; } @@ -23301,7 +24389,7 @@ private void ensureIncludedDestinationsIsMutable() { if (!includedDestinations_.isModifiable()) { includedDestinations_ = new com.google.protobuf.LazyStringArrayList(includedDestinations_); } - bitField2_ |= 0x00010000; + bitField2_ |= 0x00040000; } /** @@ -23311,6 +24399,13 @@ private void ensureIncludedDestinationsIsMutable() { * The list of destinations to include for this target (corresponds to * checked check boxes in Merchant Center). Default destinations are always * included unless provided in `excludedDestinations`. + * + * For more information, see + * [Included + * destination](https://support.google.com/merchants/answer/7501026). + * + * Note: We recommend setting destinations on datasources level for most use + * cases. Use this field within products to only setup exceptions. * * * repeated string included_destinations = 76; @@ -23329,6 +24424,13 @@ public com.google.protobuf.ProtocolStringList getIncludedDestinationsList() { * The list of destinations to include for this target (corresponds to * checked check boxes in Merchant Center). Default destinations are always * included unless provided in `excludedDestinations`. + * + * For more information, see + * [Included + * destination](https://support.google.com/merchants/answer/7501026). + * + * Note: We recommend setting destinations on datasources level for most use + * cases. Use this field within products to only setup exceptions. * * * repeated string included_destinations = 76; @@ -23346,6 +24448,13 @@ public int getIncludedDestinationsCount() { * The list of destinations to include for this target (corresponds to * checked check boxes in Merchant Center). Default destinations are always * included unless provided in `excludedDestinations`. + * + * For more information, see + * [Included + * destination](https://support.google.com/merchants/answer/7501026). + * + * Note: We recommend setting destinations on datasources level for most use + * cases. Use this field within products to only setup exceptions. * * * repeated string included_destinations = 76; @@ -23364,6 +24473,13 @@ public java.lang.String getIncludedDestinations(int index) { * The list of destinations to include for this target (corresponds to * checked check boxes in Merchant Center). Default destinations are always * included unless provided in `excludedDestinations`. + * + * For more information, see + * [Included + * destination](https://support.google.com/merchants/answer/7501026). + * + * Note: We recommend setting destinations on datasources level for most use + * cases. Use this field within products to only setup exceptions. * * * repeated string included_destinations = 76; @@ -23382,6 +24498,13 @@ public com.google.protobuf.ByteString getIncludedDestinationsBytes(int index) { * The list of destinations to include for this target (corresponds to * checked check boxes in Merchant Center). Default destinations are always * included unless provided in `excludedDestinations`. + * + * For more information, see + * [Included + * destination](https://support.google.com/merchants/answer/7501026). + * + * Note: We recommend setting destinations on datasources level for most use + * cases. Use this field within products to only setup exceptions. * * * repeated string included_destinations = 76; @@ -23396,7 +24519,7 @@ public Builder setIncludedDestinations(int index, java.lang.String value) { } ensureIncludedDestinationsIsMutable(); includedDestinations_.set(index, value); - bitField2_ |= 0x00010000; + bitField2_ |= 0x00040000; onChanged(); return this; } @@ -23408,6 +24531,13 @@ public Builder setIncludedDestinations(int index, java.lang.String value) { * The list of destinations to include for this target (corresponds to * checked check boxes in Merchant Center). Default destinations are always * included unless provided in `excludedDestinations`. + * + * For more information, see + * [Included + * destination](https://support.google.com/merchants/answer/7501026). + * + * Note: We recommend setting destinations on datasources level for most use + * cases. Use this field within products to only setup exceptions. * * * repeated string included_destinations = 76; @@ -23421,7 +24551,7 @@ public Builder addIncludedDestinations(java.lang.String value) { } ensureIncludedDestinationsIsMutable(); includedDestinations_.add(value); - bitField2_ |= 0x00010000; + bitField2_ |= 0x00040000; onChanged(); return this; } @@ -23433,6 +24563,13 @@ public Builder addIncludedDestinations(java.lang.String value) { * The list of destinations to include for this target (corresponds to * checked check boxes in Merchant Center). Default destinations are always * included unless provided in `excludedDestinations`. + * + * For more information, see + * [Included + * destination](https://support.google.com/merchants/answer/7501026). + * + * Note: We recommend setting destinations on datasources level for most use + * cases. Use this field within products to only setup exceptions. * * * repeated string included_destinations = 76; @@ -23443,7 +24580,7 @@ public Builder addIncludedDestinations(java.lang.String value) { public Builder addAllIncludedDestinations(java.lang.Iterable values) { ensureIncludedDestinationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, includedDestinations_); - bitField2_ |= 0x00010000; + bitField2_ |= 0x00040000; onChanged(); return this; } @@ -23455,6 +24592,13 @@ public Builder addAllIncludedDestinations(java.lang.Iterable v * The list of destinations to include for this target (corresponds to * checked check boxes in Merchant Center). Default destinations are always * included unless provided in `excludedDestinations`. + * + * For more information, see + * [Included + * destination](https://support.google.com/merchants/answer/7501026). + * + * Note: We recommend setting destinations on datasources level for most use + * cases. Use this field within products to only setup exceptions. * * * repeated string included_destinations = 76; @@ -23463,7 +24607,7 @@ public Builder addAllIncludedDestinations(java.lang.Iterable v */ public Builder clearIncludedDestinations() { includedDestinations_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField2_ = (bitField2_ & ~0x00010000); + bitField2_ = (bitField2_ & ~0x00040000); ; onChanged(); return this; @@ -23476,6 +24620,13 @@ public Builder clearIncludedDestinations() { * The list of destinations to include for this target (corresponds to * checked check boxes in Merchant Center). Default destinations are always * included unless provided in `excludedDestinations`. + * + * For more information, see + * [Included + * destination](https://support.google.com/merchants/answer/7501026). + * + * Note: We recommend setting destinations on datasources level for most use + * cases. Use this field within products to only setup exceptions. * * * repeated string included_destinations = 76; @@ -23490,7 +24641,7 @@ public Builder addIncludedDestinationsBytes(com.google.protobuf.ByteString value checkByteStringIsUtf8(value); ensureIncludedDestinationsIsMutable(); includedDestinations_.add(value); - bitField2_ |= 0x00010000; + bitField2_ |= 0x00040000; onChanged(); return this; } @@ -23502,7 +24653,7 @@ private void ensureExcludedDestinationsIsMutable() { if (!excludedDestinations_.isModifiable()) { excludedDestinations_ = new com.google.protobuf.LazyStringArrayList(excludedDestinations_); } - bitField2_ |= 0x00020000; + bitField2_ |= 0x00080000; } /** @@ -23511,6 +24662,13 @@ private void ensureExcludedDestinationsIsMutable() { *
            * The list of destinations to exclude for this target (corresponds to
            * unchecked check boxes in Merchant Center).
      +     *
      +     * For more information, see
      +     * [Excluded
      +     * destination](https://support.google.com/merchants/answer/6324486).
      +     *
      +     * Note: We recommend setting destinations on datasources level for most use
      +     * cases. Use this field within products to only setup exceptions.
            * 
      * * repeated string excluded_destinations = 77; @@ -23528,6 +24686,13 @@ public com.google.protobuf.ProtocolStringList getExcludedDestinationsList() { *
            * The list of destinations to exclude for this target (corresponds to
            * unchecked check boxes in Merchant Center).
      +     *
      +     * For more information, see
      +     * [Excluded
      +     * destination](https://support.google.com/merchants/answer/6324486).
      +     *
      +     * Note: We recommend setting destinations on datasources level for most use
      +     * cases. Use this field within products to only setup exceptions.
            * 
      * * repeated string excluded_destinations = 77; @@ -23544,6 +24709,13 @@ public int getExcludedDestinationsCount() { *
            * The list of destinations to exclude for this target (corresponds to
            * unchecked check boxes in Merchant Center).
      +     *
      +     * For more information, see
      +     * [Excluded
      +     * destination](https://support.google.com/merchants/answer/6324486).
      +     *
      +     * Note: We recommend setting destinations on datasources level for most use
      +     * cases. Use this field within products to only setup exceptions.
            * 
      * * repeated string excluded_destinations = 77; @@ -23561,6 +24733,13 @@ public java.lang.String getExcludedDestinations(int index) { *
            * The list of destinations to exclude for this target (corresponds to
            * unchecked check boxes in Merchant Center).
      +     *
      +     * For more information, see
      +     * [Excluded
      +     * destination](https://support.google.com/merchants/answer/6324486).
      +     *
      +     * Note: We recommend setting destinations on datasources level for most use
      +     * cases. Use this field within products to only setup exceptions.
            * 
      * * repeated string excluded_destinations = 77; @@ -23578,6 +24757,13 @@ public com.google.protobuf.ByteString getExcludedDestinationsBytes(int index) { *
            * The list of destinations to exclude for this target (corresponds to
            * unchecked check boxes in Merchant Center).
      +     *
      +     * For more information, see
      +     * [Excluded
      +     * destination](https://support.google.com/merchants/answer/6324486).
      +     *
      +     * Note: We recommend setting destinations on datasources level for most use
      +     * cases. Use this field within products to only setup exceptions.
            * 
      * * repeated string excluded_destinations = 77; @@ -23592,7 +24778,7 @@ public Builder setExcludedDestinations(int index, java.lang.String value) { } ensureExcludedDestinationsIsMutable(); excludedDestinations_.set(index, value); - bitField2_ |= 0x00020000; + bitField2_ |= 0x00080000; onChanged(); return this; } @@ -23603,6 +24789,13 @@ public Builder setExcludedDestinations(int index, java.lang.String value) { *
            * The list of destinations to exclude for this target (corresponds to
            * unchecked check boxes in Merchant Center).
      +     *
      +     * For more information, see
      +     * [Excluded
      +     * destination](https://support.google.com/merchants/answer/6324486).
      +     *
      +     * Note: We recommend setting destinations on datasources level for most use
      +     * cases. Use this field within products to only setup exceptions.
            * 
      * * repeated string excluded_destinations = 77; @@ -23616,7 +24809,7 @@ public Builder addExcludedDestinations(java.lang.String value) { } ensureExcludedDestinationsIsMutable(); excludedDestinations_.add(value); - bitField2_ |= 0x00020000; + bitField2_ |= 0x00080000; onChanged(); return this; } @@ -23627,6 +24820,13 @@ public Builder addExcludedDestinations(java.lang.String value) { *
            * The list of destinations to exclude for this target (corresponds to
            * unchecked check boxes in Merchant Center).
      +     *
      +     * For more information, see
      +     * [Excluded
      +     * destination](https://support.google.com/merchants/answer/6324486).
      +     *
      +     * Note: We recommend setting destinations on datasources level for most use
      +     * cases. Use this field within products to only setup exceptions.
            * 
      * * repeated string excluded_destinations = 77; @@ -23637,7 +24837,7 @@ public Builder addExcludedDestinations(java.lang.String value) { public Builder addAllExcludedDestinations(java.lang.Iterable values) { ensureExcludedDestinationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, excludedDestinations_); - bitField2_ |= 0x00020000; + bitField2_ |= 0x00080000; onChanged(); return this; } @@ -23648,6 +24848,13 @@ public Builder addAllExcludedDestinations(java.lang.Iterable v *
            * The list of destinations to exclude for this target (corresponds to
            * unchecked check boxes in Merchant Center).
      +     *
      +     * For more information, see
      +     * [Excluded
      +     * destination](https://support.google.com/merchants/answer/6324486).
      +     *
      +     * Note: We recommend setting destinations on datasources level for most use
      +     * cases. Use this field within products to only setup exceptions.
            * 
      * * repeated string excluded_destinations = 77; @@ -23656,7 +24863,7 @@ public Builder addAllExcludedDestinations(java.lang.Iterable v */ public Builder clearExcludedDestinations() { excludedDestinations_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField2_ = (bitField2_ & ~0x00020000); + bitField2_ = (bitField2_ & ~0x00080000); ; onChanged(); return this; @@ -23668,6 +24875,13 @@ public Builder clearExcludedDestinations() { *
            * The list of destinations to exclude for this target (corresponds to
            * unchecked check boxes in Merchant Center).
      +     *
      +     * For more information, see
      +     * [Excluded
      +     * destination](https://support.google.com/merchants/answer/6324486).
      +     *
      +     * Note: We recommend setting destinations on datasources level for most use
      +     * cases. Use this field within products to only setup exceptions.
            * 
      * * repeated string excluded_destinations = 77; @@ -23682,7 +24896,7 @@ public Builder addExcludedDestinationsBytes(com.google.protobuf.ByteString value checkByteStringIsUtf8(value); ensureExcludedDestinationsIsMutable(); excludedDestinations_.add(value); - bitField2_ |= 0x00020000; + bitField2_ |= 0x00080000; onChanged(); return this; } @@ -23695,17 +24909,17 @@ private void ensureShoppingAdsExcludedCountriesIsMutable() { shoppingAdsExcludedCountries_ = new com.google.protobuf.LazyStringArrayList(shoppingAdsExcludedCountries_); } - bitField2_ |= 0x00040000; + bitField2_ |= 0x00100000; } /** * * *
      -     * List of country codes (ISO 3166-1 alpha-2) to exclude the offer from
      -     * Shopping Ads destination.
      -     * Countries from this list are removed from countries configured
      -     * in data source settings.
      +     * List of country codes [(ISO 3166-1
      +     * alpha-2)](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) to exclude the
      +     * offer from Shopping Ads destination. Countries from this list are removed
      +     * from countries configured in data source settings.
            * 
      * * repeated string shopping_ads_excluded_countries = 78; @@ -23721,10 +24935,10 @@ public com.google.protobuf.ProtocolStringList getShoppingAdsExcludedCountriesLis * * *
      -     * List of country codes (ISO 3166-1 alpha-2) to exclude the offer from
      -     * Shopping Ads destination.
      -     * Countries from this list are removed from countries configured
      -     * in data source settings.
      +     * List of country codes [(ISO 3166-1
      +     * alpha-2)](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) to exclude the
      +     * offer from Shopping Ads destination. Countries from this list are removed
      +     * from countries configured in data source settings.
            * 
      * * repeated string shopping_ads_excluded_countries = 78; @@ -23739,10 +24953,10 @@ public int getShoppingAdsExcludedCountriesCount() { * * *
      -     * List of country codes (ISO 3166-1 alpha-2) to exclude the offer from
      -     * Shopping Ads destination.
      -     * Countries from this list are removed from countries configured
      -     * in data source settings.
      +     * List of country codes [(ISO 3166-1
      +     * alpha-2)](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) to exclude the
      +     * offer from Shopping Ads destination. Countries from this list are removed
      +     * from countries configured in data source settings.
            * 
      * * repeated string shopping_ads_excluded_countries = 78; @@ -23758,10 +24972,10 @@ public java.lang.String getShoppingAdsExcludedCountries(int index) { * * *
      -     * List of country codes (ISO 3166-1 alpha-2) to exclude the offer from
      -     * Shopping Ads destination.
      -     * Countries from this list are removed from countries configured
      -     * in data source settings.
      +     * List of country codes [(ISO 3166-1
      +     * alpha-2)](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) to exclude the
      +     * offer from Shopping Ads destination. Countries from this list are removed
      +     * from countries configured in data source settings.
            * 
      * * repeated string shopping_ads_excluded_countries = 78; @@ -23777,10 +24991,10 @@ public com.google.protobuf.ByteString getShoppingAdsExcludedCountriesBytes(int i * * *
      -     * List of country codes (ISO 3166-1 alpha-2) to exclude the offer from
      -     * Shopping Ads destination.
      -     * Countries from this list are removed from countries configured
      -     * in data source settings.
      +     * List of country codes [(ISO 3166-1
      +     * alpha-2)](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) to exclude the
      +     * offer from Shopping Ads destination. Countries from this list are removed
      +     * from countries configured in data source settings.
            * 
      * * repeated string shopping_ads_excluded_countries = 78; @@ -23795,7 +25009,7 @@ public Builder setShoppingAdsExcludedCountries(int index, java.lang.String value } ensureShoppingAdsExcludedCountriesIsMutable(); shoppingAdsExcludedCountries_.set(index, value); - bitField2_ |= 0x00040000; + bitField2_ |= 0x00100000; onChanged(); return this; } @@ -23804,10 +25018,10 @@ public Builder setShoppingAdsExcludedCountries(int index, java.lang.String value * * *
      -     * List of country codes (ISO 3166-1 alpha-2) to exclude the offer from
      -     * Shopping Ads destination.
      -     * Countries from this list are removed from countries configured
      -     * in data source settings.
      +     * List of country codes [(ISO 3166-1
      +     * alpha-2)](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) to exclude the
      +     * offer from Shopping Ads destination. Countries from this list are removed
      +     * from countries configured in data source settings.
            * 
      * * repeated string shopping_ads_excluded_countries = 78; @@ -23821,7 +25035,7 @@ public Builder addShoppingAdsExcludedCountries(java.lang.String value) { } ensureShoppingAdsExcludedCountriesIsMutable(); shoppingAdsExcludedCountries_.add(value); - bitField2_ |= 0x00040000; + bitField2_ |= 0x00100000; onChanged(); return this; } @@ -23830,10 +25044,10 @@ public Builder addShoppingAdsExcludedCountries(java.lang.String value) { * * *
      -     * List of country codes (ISO 3166-1 alpha-2) to exclude the offer from
      -     * Shopping Ads destination.
      -     * Countries from this list are removed from countries configured
      -     * in data source settings.
      +     * List of country codes [(ISO 3166-1
      +     * alpha-2)](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) to exclude the
      +     * offer from Shopping Ads destination. Countries from this list are removed
      +     * from countries configured in data source settings.
            * 
      * * repeated string shopping_ads_excluded_countries = 78; @@ -23844,7 +25058,7 @@ public Builder addShoppingAdsExcludedCountries(java.lang.String value) { public Builder addAllShoppingAdsExcludedCountries(java.lang.Iterable values) { ensureShoppingAdsExcludedCountriesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, shoppingAdsExcludedCountries_); - bitField2_ |= 0x00040000; + bitField2_ |= 0x00100000; onChanged(); return this; } @@ -23853,10 +25067,10 @@ public Builder addAllShoppingAdsExcludedCountries(java.lang.Iterable - * List of country codes (ISO 3166-1 alpha-2) to exclude the offer from - * Shopping Ads destination. - * Countries from this list are removed from countries configured - * in data source settings. + * List of country codes [(ISO 3166-1 + * alpha-2)](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) to exclude the + * offer from Shopping Ads destination. Countries from this list are removed + * from countries configured in data source settings. * * * repeated string shopping_ads_excluded_countries = 78; @@ -23865,7 +25079,7 @@ public Builder addAllShoppingAdsExcludedCountries(java.lang.Iterable - * List of country codes (ISO 3166-1 alpha-2) to exclude the offer from - * Shopping Ads destination. - * Countries from this list are removed from countries configured - * in data source settings. + * List of country codes [(ISO 3166-1 + * alpha-2)](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) to exclude the + * offer from Shopping Ads destination. Countries from this list are removed + * from countries configured in data source settings. * * * repeated string shopping_ads_excluded_countries = 78; @@ -23893,7 +25107,7 @@ public Builder addShoppingAdsExcludedCountriesBytes(com.google.protobuf.ByteStri checkByteStringIsUtf8(value); ensureShoppingAdsExcludedCountriesIsMutable(); shoppingAdsExcludedCountries_.add(value); - bitField2_ |= 0x00040000; + bitField2_ |= 0x00100000; onChanged(); return this; } @@ -23914,7 +25128,7 @@ public Builder addShoppingAdsExcludedCountriesBytes(com.google.protobuf.ByteStri * @return Whether the externalSellerId field is set. */ public boolean hasExternalSellerId() { - return ((bitField2_ & 0x00080000) != 0); + return ((bitField2_ & 0x00200000) != 0); } /** @@ -23986,7 +25200,7 @@ public Builder setExternalSellerId(java.lang.String value) { throw new NullPointerException(); } externalSellerId_ = value; - bitField2_ |= 0x00080000; + bitField2_ |= 0x00200000; onChanged(); return this; } @@ -24006,7 +25220,7 @@ public Builder setExternalSellerId(java.lang.String value) { */ public Builder clearExternalSellerId() { externalSellerId_ = getDefaultInstance().getExternalSellerId(); - bitField2_ = (bitField2_ & ~0x00080000); + bitField2_ = (bitField2_ & ~0x00200000); onChanged(); return this; } @@ -24031,7 +25245,7 @@ public Builder setExternalSellerIdBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); externalSellerId_ = value; - bitField2_ |= 0x00080000; + bitField2_ |= 0x00200000; onChanged(); return this; } @@ -24051,7 +25265,7 @@ public Builder setExternalSellerIdBytes(com.google.protobuf.ByteString value) { * @return Whether the pause field is set. */ public boolean hasPause() { - return ((bitField2_ & 0x00100000) != 0); + return ((bitField2_ & 0x00400000) != 0); } /** @@ -24120,7 +25334,7 @@ public Builder setPause(java.lang.String value) { throw new NullPointerException(); } pause_ = value; - bitField2_ |= 0x00100000; + bitField2_ |= 0x00400000; onChanged(); return this; } @@ -24139,7 +25353,7 @@ public Builder setPause(java.lang.String value) { */ public Builder clearPause() { pause_ = getDefaultInstance().getPause(); - bitField2_ = (bitField2_ & ~0x00100000); + bitField2_ = (bitField2_ & ~0x00400000); onChanged(); return this; } @@ -24163,7 +25377,7 @@ public Builder setPauseBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); pause_ = value; - bitField2_ |= 0x00100000; + bitField2_ |= 0x00400000; onChanged(); return this; } @@ -24175,7 +25389,7 @@ private void ensureLifestyleImageLinksIsMutable() { if (!lifestyleImageLinks_.isModifiable()) { lifestyleImageLinks_ = new com.google.protobuf.LazyStringArrayList(lifestyleImageLinks_); } - bitField2_ |= 0x00200000; + bitField2_ |= 0x00800000; } /** @@ -24275,7 +25489,7 @@ public Builder setLifestyleImageLinks(int index, java.lang.String value) { } ensureLifestyleImageLinksIsMutable(); lifestyleImageLinks_.set(index, value); - bitField2_ |= 0x00200000; + bitField2_ |= 0x00800000; onChanged(); return this; } @@ -24301,7 +25515,7 @@ public Builder addLifestyleImageLinks(java.lang.String value) { } ensureLifestyleImageLinksIsMutable(); lifestyleImageLinks_.add(value); - bitField2_ |= 0x00200000; + bitField2_ |= 0x00800000; onChanged(); return this; } @@ -24324,7 +25538,7 @@ public Builder addLifestyleImageLinks(java.lang.String value) { public Builder addAllLifestyleImageLinks(java.lang.Iterable values) { ensureLifestyleImageLinksIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, lifestyleImageLinks_); - bitField2_ |= 0x00200000; + bitField2_ |= 0x00800000; onChanged(); return this; } @@ -24345,7 +25559,7 @@ public Builder addAllLifestyleImageLinks(java.lang.Iterable va */ public Builder clearLifestyleImageLinks() { lifestyleImageLinks_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField2_ = (bitField2_ & ~0x00200000); + bitField2_ = (bitField2_ & ~0x00800000); ; onChanged(); return this; @@ -24373,7 +25587,7 @@ public Builder addLifestyleImageLinksBytes(com.google.protobuf.ByteString value) checkByteStringIsUtf8(value); ensureLifestyleImageLinksIsMutable(); lifestyleImageLinks_.add(value); - bitField2_ |= 0x00200000; + bitField2_ |= 0x00800000; onChanged(); return this; } @@ -24383,12 +25597,12 @@ public Builder addLifestyleImageLinksBytes(com.google.protobuf.ByteString value) cloudExportAdditionalProperties_ = java.util.Collections.emptyList(); private void ensureCloudExportAdditionalPropertiesIsMutable() { - if (!((bitField2_ & 0x00400000) != 0)) { + if (!((bitField2_ & 0x01000000) != 0)) { cloudExportAdditionalProperties_ = new java.util.ArrayList< com.google.shopping.merchant.products.v1beta.CloudExportAdditionalProperties>( cloudExportAdditionalProperties_); - bitField2_ |= 0x00400000; + bitField2_ |= 0x01000000; } } @@ -24653,7 +25867,7 @@ public Builder addAllCloudExportAdditionalProperties( public Builder clearCloudExportAdditionalProperties() { if (cloudExportAdditionalPropertiesBuilder_ == null) { cloudExportAdditionalProperties_ = java.util.Collections.emptyList(); - bitField2_ = (bitField2_ & ~0x00400000); + bitField2_ = (bitField2_ & ~0x01000000); onChanged(); } else { cloudExportAdditionalPropertiesBuilder_.clear(); @@ -24812,7 +26026,7 @@ public Builder removeCloudExportAdditionalProperties(int index) { com.google.shopping.merchant.products.v1beta .CloudExportAdditionalPropertiesOrBuilder>( cloudExportAdditionalProperties_, - ((bitField2_ & 0x00400000) != 0), + ((bitField2_ & 0x01000000) != 0), getParentForChildren(), isClean()); cloudExportAdditionalProperties_ = null; @@ -24836,7 +26050,7 @@ public Builder removeCloudExportAdditionalProperties(int index) { * @return Whether the virtualModelLink field is set. */ public boolean hasVirtualModelLink() { - return ((bitField2_ & 0x00800000) != 0); + return ((bitField2_ & 0x02000000) != 0); } /** @@ -24908,7 +26122,7 @@ public Builder setVirtualModelLink(java.lang.String value) { throw new NullPointerException(); } virtualModelLink_ = value; - bitField2_ |= 0x00800000; + bitField2_ |= 0x02000000; onChanged(); return this; } @@ -24928,7 +26142,7 @@ public Builder setVirtualModelLink(java.lang.String value) { */ public Builder clearVirtualModelLink() { virtualModelLink_ = getDefaultInstance().getVirtualModelLink(); - bitField2_ = (bitField2_ & ~0x00800000); + bitField2_ = (bitField2_ & ~0x02000000); onChanged(); return this; } @@ -24953,7 +26167,7 @@ public Builder setVirtualModelLinkBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); virtualModelLink_ = value; - bitField2_ |= 0x00800000; + bitField2_ |= 0x02000000; onChanged(); return this; } @@ -24962,11 +26176,11 @@ public Builder setVirtualModelLinkBytes(com.google.protobuf.ByteString value) { certifications_ = java.util.Collections.emptyList(); private void ensureCertificationsIsMutable() { - if (!((bitField2_ & 0x01000000) != 0)) { + if (!((bitField2_ & 0x04000000) != 0)) { certifications_ = new java.util.ArrayList( certifications_); - bitField2_ |= 0x01000000; + bitField2_ |= 0x04000000; } } @@ -25254,7 +26468,7 @@ public Builder addAllCertifications( public Builder clearCertifications() { if (certificationsBuilder_ == null) { certifications_ = java.util.Collections.emptyList(); - bitField2_ = (bitField2_ & ~0x01000000); + bitField2_ = (bitField2_ & ~0x04000000); onChanged(); } else { certificationsBuilder_.clear(); @@ -25427,7 +26641,7 @@ public Builder removeCertifications(int index) { com.google.shopping.merchant.products.v1beta.Certification.Builder, com.google.shopping.merchant.products.v1beta.CertificationOrBuilder>( certifications_, - ((bitField2_ & 0x01000000) != 0), + ((bitField2_ & 0x04000000) != 0), getParentForChildren(), isClean()); certifications_ = null; @@ -25456,7 +26670,7 @@ public Builder removeCertifications(int index) { * @return Whether the structuredTitle field is set. */ public boolean hasStructuredTitle() { - return ((bitField2_ & 0x02000000) != 0); + return ((bitField2_ & 0x08000000) != 0); } /** @@ -25505,7 +26719,7 @@ public Builder setStructuredTitle( } else { structuredTitleBuilder_.setMessage(value); } - bitField2_ |= 0x02000000; + bitField2_ |= 0x08000000; onChanged(); return this; } @@ -25529,7 +26743,7 @@ public Builder setStructuredTitle( } else { structuredTitleBuilder_.setMessage(builderForValue.build()); } - bitField2_ |= 0x02000000; + bitField2_ |= 0x08000000; onChanged(); return this; } @@ -25548,7 +26762,7 @@ public Builder setStructuredTitle( public Builder mergeStructuredTitle( com.google.shopping.merchant.products.v1beta.ProductStructuredTitle value) { if (structuredTitleBuilder_ == null) { - if (((bitField2_ & 0x02000000) != 0) + if (((bitField2_ & 0x08000000) != 0) && structuredTitle_ != null && structuredTitle_ != com.google.shopping.merchant.products.v1beta.ProductStructuredTitle @@ -25561,7 +26775,7 @@ public Builder mergeStructuredTitle( structuredTitleBuilder_.mergeFrom(value); } if (structuredTitle_ != null) { - bitField2_ |= 0x02000000; + bitField2_ |= 0x08000000; onChanged(); } return this; @@ -25579,7 +26793,7 @@ public Builder mergeStructuredTitle( * */ public Builder clearStructuredTitle() { - bitField2_ = (bitField2_ & ~0x02000000); + bitField2_ = (bitField2_ & ~0x08000000); structuredTitle_ = null; if (structuredTitleBuilder_ != null) { structuredTitleBuilder_.dispose(); @@ -25602,7 +26816,7 @@ public Builder clearStructuredTitle() { */ public com.google.shopping.merchant.products.v1beta.ProductStructuredTitle.Builder getStructuredTitleBuilder() { - bitField2_ |= 0x02000000; + bitField2_ |= 0x08000000; onChanged(); return getStructuredTitleFieldBuilder().getBuilder(); } @@ -25680,7 +26894,7 @@ public Builder clearStructuredTitle() { * @return Whether the structuredDescription field is set. */ public boolean hasStructuredDescription() { - return ((bitField2_ & 0x04000000) != 0); + return ((bitField2_ & 0x10000000) != 0); } /** @@ -25729,7 +26943,7 @@ public Builder setStructuredDescription( } else { structuredDescriptionBuilder_.setMessage(value); } - bitField2_ |= 0x04000000; + bitField2_ |= 0x10000000; onChanged(); return this; } @@ -25753,7 +26967,7 @@ public Builder setStructuredDescription( } else { structuredDescriptionBuilder_.setMessage(builderForValue.build()); } - bitField2_ |= 0x04000000; + bitField2_ |= 0x10000000; onChanged(); return this; } @@ -25772,7 +26986,7 @@ public Builder setStructuredDescription( public Builder mergeStructuredDescription( com.google.shopping.merchant.products.v1beta.ProductStructuredDescription value) { if (structuredDescriptionBuilder_ == null) { - if (((bitField2_ & 0x04000000) != 0) + if (((bitField2_ & 0x10000000) != 0) && structuredDescription_ != null && structuredDescription_ != com.google.shopping.merchant.products.v1beta.ProductStructuredDescription @@ -25785,7 +26999,7 @@ public Builder mergeStructuredDescription( structuredDescriptionBuilder_.mergeFrom(value); } if (structuredDescription_ != null) { - bitField2_ |= 0x04000000; + bitField2_ |= 0x10000000; onChanged(); } return this; @@ -25803,7 +27017,7 @@ public Builder mergeStructuredDescription( * */ public Builder clearStructuredDescription() { - bitField2_ = (bitField2_ & ~0x04000000); + bitField2_ = (bitField2_ & ~0x10000000); structuredDescription_ = null; if (structuredDescriptionBuilder_ != null) { structuredDescriptionBuilder_.dispose(); @@ -25826,7 +27040,7 @@ public Builder clearStructuredDescription() { */ public com.google.shopping.merchant.products.v1beta.ProductStructuredDescription.Builder getStructuredDescriptionBuilder() { - bitField2_ |= 0x04000000; + bitField2_ |= 0x10000000; onChanged(); return getStructuredDescriptionFieldBuilder().getBuilder(); } @@ -25893,11 +27107,11 @@ public Builder clearStructuredDescription() { * * *
      -     * A safeguard in the "Automated Discounts"
      +     * A safeguard in the [automated discounts]
            * (https://support.google.com/merchants/answer/10295759) and
            * "Dynamic Promotions"
            * (https://support.google.com/merchants/answer/13949249) projects,
      -     * ensuring that discounts on merchants' offers do not fall below this value,
      +     * ensuring that discounts on business offers do not fall below this value,
            * thereby preserving the offer's value and profitability.
            * 
      * @@ -25906,18 +27120,18 @@ public Builder clearStructuredDescription() { * @return Whether the autoPricingMinPrice field is set. */ public boolean hasAutoPricingMinPrice() { - return ((bitField2_ & 0x08000000) != 0); + return ((bitField2_ & 0x20000000) != 0); } /** * * *
      -     * A safeguard in the "Automated Discounts"
      +     * A safeguard in the [automated discounts]
            * (https://support.google.com/merchants/answer/10295759) and
            * "Dynamic Promotions"
            * (https://support.google.com/merchants/answer/13949249) projects,
      -     * ensuring that discounts on merchants' offers do not fall below this value,
      +     * ensuring that discounts on business offers do not fall below this value,
            * thereby preserving the offer's value and profitability.
            * 
      * @@ -25939,11 +27153,11 @@ public com.google.shopping.type.Price getAutoPricingMinPrice() { * * *
      -     * A safeguard in the "Automated Discounts"
      +     * A safeguard in the [automated discounts]
            * (https://support.google.com/merchants/answer/10295759) and
            * "Dynamic Promotions"
            * (https://support.google.com/merchants/answer/13949249) projects,
      -     * ensuring that discounts on merchants' offers do not fall below this value,
      +     * ensuring that discounts on business offers do not fall below this value,
            * thereby preserving the offer's value and profitability.
            * 
      * @@ -25958,7 +27172,7 @@ public Builder setAutoPricingMinPrice(com.google.shopping.type.Price value) { } else { autoPricingMinPriceBuilder_.setMessage(value); } - bitField2_ |= 0x08000000; + bitField2_ |= 0x20000000; onChanged(); return this; } @@ -25967,11 +27181,11 @@ public Builder setAutoPricingMinPrice(com.google.shopping.type.Price value) { * * *
      -     * A safeguard in the "Automated Discounts"
      +     * A safeguard in the [automated discounts]
            * (https://support.google.com/merchants/answer/10295759) and
            * "Dynamic Promotions"
            * (https://support.google.com/merchants/answer/13949249) projects,
      -     * ensuring that discounts on merchants' offers do not fall below this value,
      +     * ensuring that discounts on business offers do not fall below this value,
            * thereby preserving the offer's value and profitability.
            * 
      * @@ -25983,7 +27197,7 @@ public Builder setAutoPricingMinPrice(com.google.shopping.type.Price.Builder bui } else { autoPricingMinPriceBuilder_.setMessage(builderForValue.build()); } - bitField2_ |= 0x08000000; + bitField2_ |= 0x20000000; onChanged(); return this; } @@ -25992,11 +27206,11 @@ public Builder setAutoPricingMinPrice(com.google.shopping.type.Price.Builder bui * * *
      -     * A safeguard in the "Automated Discounts"
      +     * A safeguard in the [automated discounts]
            * (https://support.google.com/merchants/answer/10295759) and
            * "Dynamic Promotions"
            * (https://support.google.com/merchants/answer/13949249) projects,
      -     * ensuring that discounts on merchants' offers do not fall below this value,
      +     * ensuring that discounts on business offers do not fall below this value,
            * thereby preserving the offer's value and profitability.
            * 
      * @@ -26004,7 +27218,7 @@ public Builder setAutoPricingMinPrice(com.google.shopping.type.Price.Builder bui */ public Builder mergeAutoPricingMinPrice(com.google.shopping.type.Price value) { if (autoPricingMinPriceBuilder_ == null) { - if (((bitField2_ & 0x08000000) != 0) + if (((bitField2_ & 0x20000000) != 0) && autoPricingMinPrice_ != null && autoPricingMinPrice_ != com.google.shopping.type.Price.getDefaultInstance()) { getAutoPricingMinPriceBuilder().mergeFrom(value); @@ -26015,7 +27229,7 @@ public Builder mergeAutoPricingMinPrice(com.google.shopping.type.Price value) { autoPricingMinPriceBuilder_.mergeFrom(value); } if (autoPricingMinPrice_ != null) { - bitField2_ |= 0x08000000; + bitField2_ |= 0x20000000; onChanged(); } return this; @@ -26025,18 +27239,18 @@ public Builder mergeAutoPricingMinPrice(com.google.shopping.type.Price value) { * * *
      -     * A safeguard in the "Automated Discounts"
      +     * A safeguard in the [automated discounts]
            * (https://support.google.com/merchants/answer/10295759) and
            * "Dynamic Promotions"
            * (https://support.google.com/merchants/answer/13949249) projects,
      -     * ensuring that discounts on merchants' offers do not fall below this value,
      +     * ensuring that discounts on business offers do not fall below this value,
            * thereby preserving the offer's value and profitability.
            * 
      * * .google.shopping.type.Price auto_pricing_min_price = 124; */ public Builder clearAutoPricingMinPrice() { - bitField2_ = (bitField2_ & ~0x08000000); + bitField2_ = (bitField2_ & ~0x20000000); autoPricingMinPrice_ = null; if (autoPricingMinPriceBuilder_ != null) { autoPricingMinPriceBuilder_.dispose(); @@ -26050,18 +27264,18 @@ public Builder clearAutoPricingMinPrice() { * * *
      -     * A safeguard in the "Automated Discounts"
      +     * A safeguard in the [automated discounts]
            * (https://support.google.com/merchants/answer/10295759) and
            * "Dynamic Promotions"
            * (https://support.google.com/merchants/answer/13949249) projects,
      -     * ensuring that discounts on merchants' offers do not fall below this value,
      +     * ensuring that discounts on business offers do not fall below this value,
            * thereby preserving the offer's value and profitability.
            * 
      * * .google.shopping.type.Price auto_pricing_min_price = 124; */ public com.google.shopping.type.Price.Builder getAutoPricingMinPriceBuilder() { - bitField2_ |= 0x08000000; + bitField2_ |= 0x20000000; onChanged(); return getAutoPricingMinPriceFieldBuilder().getBuilder(); } @@ -26070,11 +27284,11 @@ public com.google.shopping.type.Price.Builder getAutoPricingMinPriceBuilder() { * * *
      -     * A safeguard in the "Automated Discounts"
      +     * A safeguard in the [automated discounts]
            * (https://support.google.com/merchants/answer/10295759) and
            * "Dynamic Promotions"
            * (https://support.google.com/merchants/answer/13949249) projects,
      -     * ensuring that discounts on merchants' offers do not fall below this value,
      +     * ensuring that discounts on business offers do not fall below this value,
            * thereby preserving the offer's value and profitability.
            * 
      * @@ -26094,11 +27308,11 @@ public com.google.shopping.type.PriceOrBuilder getAutoPricingMinPriceOrBuilder() * * *
      -     * A safeguard in the "Automated Discounts"
      +     * A safeguard in the [automated discounts]
            * (https://support.google.com/merchants/answer/10295759) and
            * "Dynamic Promotions"
            * (https://support.google.com/merchants/answer/13949249) projects,
      -     * ensuring that discounts on merchants' offers do not fall below this value,
      +     * ensuring that discounts on business offers do not fall below this value,
            * thereby preserving the offer's value and profitability.
            * 
      * @@ -26126,12 +27340,12 @@ public com.google.shopping.type.PriceOrBuilder getAutoPricingMinPriceOrBuilder() sustainabilityIncentives_ = java.util.Collections.emptyList(); private void ensureSustainabilityIncentivesIsMutable() { - if (!((bitField2_ & 0x10000000) != 0)) { + if (!((bitField2_ & 0x40000000) != 0)) { sustainabilityIncentives_ = new java.util.ArrayList< com.google.shopping.merchant.products.v1beta.ProductSustainabilityIncentive>( sustainabilityIncentives_); - bitField2_ |= 0x10000000; + bitField2_ |= 0x40000000; } } @@ -26395,7 +27609,7 @@ public Builder addAllSustainabilityIncentives( public Builder clearSustainabilityIncentives() { if (sustainabilityIncentivesBuilder_ == null) { sustainabilityIncentives_ = java.util.Collections.emptyList(); - bitField2_ = (bitField2_ & ~0x10000000); + bitField2_ = (bitField2_ & ~0x40000000); onChanged(); } else { sustainabilityIncentivesBuilder_.clear(); @@ -26553,7 +27767,7 @@ public Builder removeSustainabilityIncentives(int index) { com.google.shopping.merchant.products.v1beta .ProductSustainabilityIncentiveOrBuilder>( sustainabilityIncentives_, - ((bitField2_ & 0x10000000) != 0), + ((bitField2_ & 0x40000000) != 0), getParentForChildren(), isClean()); sustainabilityIncentives_ = null; diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/AttributesOrBuilder.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/AttributesOrBuilder.java index 9a997cd8b3b7..a21512025ce1 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/AttributesOrBuilder.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/AttributesOrBuilder.java @@ -58,8 +58,9 @@ public interface AttributesOrBuilder * * *
      -   * Whether the item is a merchant-defined bundle. A bundle is a custom
      -   * grouping of different products sold by a merchant for a single price.
      +   * Whether the item is a business-defined sub-API. A [sub-API]
      +   * (https://support.google.com/merchants/answer/6324449) is a custom
      +   * grouping of different products sold by a business for a single price.
          * 
      * * optional bool is_bundle = 5; @@ -72,8 +73,9 @@ public interface AttributesOrBuilder * * *
      -   * Whether the item is a merchant-defined bundle. A bundle is a custom
      -   * grouping of different products sold by a merchant for a single price.
      +   * Whether the item is a business-defined sub-API. A [sub-API]
      +   * (https://support.google.com/merchants/answer/6324449) is a custom
      +   * grouping of different products sold by a business for a single price.
          * 
      * * optional bool is_bundle = 5; @@ -428,8 +430,9 @@ public interface AttributesOrBuilder *
          * The date time when an offer becomes visible in search results across
          * Google’s YouTube surfaces, in [ISO
      -   * 8601](http://en.wikipedia.org/wiki/ISO_8601) format. See [Disclosure date](
      -   * https://support.google.com/merchants/answer/13034208) for more information.
      +   * 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
      +   * See [Disclosure date](https://support.google.com/merchants/answer/13034208)
      +   * for more information.
          * 
      * * .google.protobuf.Timestamp disclosure_date = 79; @@ -444,8 +447,9 @@ public interface AttributesOrBuilder *
          * The date time when an offer becomes visible in search results across
          * Google’s YouTube surfaces, in [ISO
      -   * 8601](http://en.wikipedia.org/wiki/ISO_8601) format. See [Disclosure date](
      -   * https://support.google.com/merchants/answer/13034208) for more information.
      +   * 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
      +   * See [Disclosure date](https://support.google.com/merchants/answer/13034208)
      +   * for more information.
          * 
      * * .google.protobuf.Timestamp disclosure_date = 79; @@ -460,8 +464,9 @@ public interface AttributesOrBuilder *
          * The date time when an offer becomes visible in search results across
          * Google’s YouTube surfaces, in [ISO
      -   * 8601](http://en.wikipedia.org/wiki/ISO_8601) format. See [Disclosure date](
      -   * https://support.google.com/merchants/answer/13034208) for more information.
      +   * 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
      +   * See [Disclosure date](https://support.google.com/merchants/answer/13034208)
      +   * for more information.
          * 
      * * .google.protobuf.Timestamp disclosure_date = 79; @@ -540,7 +545,8 @@ public interface AttributesOrBuilder * * *
      -   * Availability status of the item.
      +   * [Availability](https://support.google.com/merchants/answer/6324448) status
      +   * of the item. For example, "in_stock" or "out_of_stock".
          * 
      * * optional string availability = 19; @@ -553,7 +559,8 @@ public interface AttributesOrBuilder * * *
      -   * Availability status of the item.
      +   * [Availability](https://support.google.com/merchants/answer/6324448) status
      +   * of the item. For example, "in_stock" or "out_of_stock".
          * 
      * * optional string availability = 19; @@ -566,7 +573,8 @@ public interface AttributesOrBuilder * * *
      -   * Availability status of the item.
      +   * [Availability](https://support.google.com/merchants/answer/6324448) status
      +   * of the item. For example, "in_stock" or "out_of_stock".
          * 
      * * optional string availability = 19; @@ -619,7 +627,8 @@ public interface AttributesOrBuilder * * *
      -   * Brand of the item.
      +   * [Brand](https://support.google.com/merchants/answer/6324351) of the item.
      +   * For example, "Google".
          * 
      * * optional string brand = 21; @@ -632,7 +641,8 @@ public interface AttributesOrBuilder * * *
      -   * Brand of the item.
      +   * [Brand](https://support.google.com/merchants/answer/6324351) of the item.
      +   * For example, "Google".
          * 
      * * optional string brand = 21; @@ -645,7 +655,8 @@ public interface AttributesOrBuilder * * *
      -   * Brand of the item.
      +   * [Brand](https://support.google.com/merchants/answer/6324351) of the item.
      +   * For example, "Google".
          * 
      * * optional string brand = 21; @@ -658,7 +669,8 @@ public interface AttributesOrBuilder * * *
      -   * Color of the item.
      +   * [Color](https://support.google.com/merchants/answer/6324487) of the item.
      +   * For example, "red".
          * 
      * * optional string color = 22; @@ -671,7 +683,8 @@ public interface AttributesOrBuilder * * *
      -   * Color of the item.
      +   * [Color](https://support.google.com/merchants/answer/6324487) of the item.
      +   * For example, "red".
          * 
      * * optional string color = 22; @@ -684,7 +697,8 @@ public interface AttributesOrBuilder * * *
      -   * Color of the item.
      +   * [Color](https://support.google.com/merchants/answer/6324487) of the item.
      +   * For example, "red".
          * 
      * * optional string color = 22; @@ -697,7 +711,8 @@ public interface AttributesOrBuilder * * *
      -   * Condition or state of the item.
      +   * [Condition](https://support.google.com/merchants/answer/6324469) or state
      +   * of the item. For example, "new" or "used".
          * 
      * * optional string condition = 23; @@ -710,7 +725,8 @@ public interface AttributesOrBuilder * * *
      -   * Condition or state of the item.
      +   * [Condition](https://support.google.com/merchants/answer/6324469) or state
      +   * of the item. For example, "new" or "used".
          * 
      * * optional string condition = 23; @@ -723,7 +739,8 @@ public interface AttributesOrBuilder * * *
      -   * Condition or state of the item.
      +   * [Condition](https://support.google.com/merchants/answer/6324469) or state
      +   * of the item. For example, "new" or "used".
          * 
      * * optional string condition = 23; @@ -736,7 +753,8 @@ public interface AttributesOrBuilder * * *
      -   * Target gender of the item.
      +   * Target [gender](https://support.google.com/merchants/answer/6324479) of the
      +   * item. For example, "male" or "female".
          * 
      * * optional string gender = 24; @@ -749,7 +767,8 @@ public interface AttributesOrBuilder * * *
      -   * Target gender of the item.
      +   * Target [gender](https://support.google.com/merchants/answer/6324479) of the
      +   * item. For example, "male" or "female".
          * 
      * * optional string gender = 24; @@ -762,7 +781,8 @@ public interface AttributesOrBuilder * * *
      -   * Target gender of the item.
      +   * Target [gender](https://support.google.com/merchants/answer/6324479) of the
      +   * item. For example, "male" or "female".
          * 
      * * optional string gender = 24; @@ -830,12 +850,17 @@ public interface AttributesOrBuilder * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the * item. * You can provide up to 10 GTINs. + * + * Deprecated: Use `gtins` instead. * * - * repeated string gtin = 26; + * repeated string gtin = 26 [deprecated = true]; * + * @deprecated google.shopping.merchant.products.v1beta.Attributes.gtin is deprecated. See + * google/shopping/merchant/products/v1beta/products_common.proto;l=132 * @return A list containing the gtin. */ + @java.lang.Deprecated java.util.List getGtinList(); /** @@ -846,12 +871,17 @@ public interface AttributesOrBuilder * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the * item. * You can provide up to 10 GTINs. + * + * Deprecated: Use `gtins` instead. * * - * repeated string gtin = 26; + * repeated string gtin = 26 [deprecated = true]; * + * @deprecated google.shopping.merchant.products.v1beta.Attributes.gtin is deprecated. See + * google/shopping/merchant/products/v1beta/products_common.proto;l=132 * @return The count of gtin. */ + @java.lang.Deprecated int getGtinCount(); /** @@ -862,13 +892,18 @@ public interface AttributesOrBuilder * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the * item. * You can provide up to 10 GTINs. + * + * Deprecated: Use `gtins` instead. * * - * repeated string gtin = 26; + * repeated string gtin = 26 [deprecated = true]; * + * @deprecated google.shopping.merchant.products.v1beta.Attributes.gtin is deprecated. See + * google/shopping/merchant/products/v1beta/products_common.proto;l=132 * @param index The index of the element to return. * @return The gtin at the given index. */ + @java.lang.Deprecated java.lang.String getGtin(int index); /** @@ -879,15 +914,86 @@ public interface AttributesOrBuilder * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the * item. * You can provide up to 10 GTINs. + * + * Deprecated: Use `gtins` instead. * * - * repeated string gtin = 26; + * repeated string gtin = 26 [deprecated = true]; * + * @deprecated google.shopping.merchant.products.v1beta.Attributes.gtin is deprecated. See + * google/shopping/merchant/products/v1beta/products_common.proto;l=132 * @param index The index of the value to return. * @return The bytes of the gtin at the given index. */ + @java.lang.Deprecated com.google.protobuf.ByteString getGtinBytes(int index); + /** + * + * + *
      +   * Global Trade Item Numbers
      +   * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
      +   * item.
      +   * You can provide up to 10 GTINs.
      +   * 
      + * + * repeated string gtins = 140; + * + * @return A list containing the gtins. + */ + java.util.List getGtinsList(); + + /** + * + * + *
      +   * Global Trade Item Numbers
      +   * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
      +   * item.
      +   * You can provide up to 10 GTINs.
      +   * 
      + * + * repeated string gtins = 140; + * + * @return The count of gtins. + */ + int getGtinsCount(); + + /** + * + * + *
      +   * Global Trade Item Numbers
      +   * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
      +   * item.
      +   * You can provide up to 10 GTINs.
      +   * 
      + * + * repeated string gtins = 140; + * + * @param index The index of the element to return. + * @return The gtins at the given index. + */ + java.lang.String getGtins(int index); + + /** + * + * + *
      +   * Global Trade Item Numbers
      +   * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
      +   * item.
      +   * You can provide up to 10 GTINs.
      +   * 
      + * + * repeated string gtins = 140; + * + * @param index The index of the value to return. + * @return The bytes of the gtins at the given index. + */ + com.google.protobuf.ByteString getGtinsBytes(int index); + /** * * @@ -931,7 +1037,8 @@ public interface AttributesOrBuilder * * *
      -   * The material of which the item is made.
      +   * The [material](https://support.google.com/merchants/answer/6324410) of
      +   * which the item is made. For example, "Leather" or "Cotton".
          * 
      * * optional string material = 28; @@ -944,7 +1051,8 @@ public interface AttributesOrBuilder * * *
      -   * The material of which the item is made.
      +   * The [material](https://support.google.com/merchants/answer/6324410) of
      +   * which the item is made. For example, "Leather" or "Cotton".
          * 
      * * optional string material = 28; @@ -957,7 +1065,8 @@ public interface AttributesOrBuilder * * *
      -   * The material of which the item is made.
      +   * The [material](https://support.google.com/merchants/answer/6324410) of
      +   * which the item is made. For example, "Leather" or "Cotton".
          * 
      * * optional string material = 28; @@ -1015,7 +1124,8 @@ public interface AttributesOrBuilder * * *
      -   * The item's pattern (for example, polka dots).
      +   * The item's [pattern](https://support.google.com/merchants/answer/6324483).
      +   * For example, polka dots.
          * 
      * * optional string pattern = 30; @@ -1028,7 +1138,8 @@ public interface AttributesOrBuilder * * *
      -   * The item's pattern (for example, polka dots).
      +   * The item's [pattern](https://support.google.com/merchants/answer/6324483).
      +   * For example, polka dots.
          * 
      * * optional string pattern = 30; @@ -1041,7 +1152,8 @@ public interface AttributesOrBuilder * * *
      -   * The item's pattern (for example, polka dots).
      +   * The item's [pattern](https://support.google.com/merchants/answer/6324483).
      +   * For example, polka dots.
          * 
      * * optional string pattern = 30; @@ -1087,6 +1199,43 @@ public interface AttributesOrBuilder */ com.google.shopping.type.PriceOrBuilder getPriceOrBuilder(); + /** + * + * + *
      +   * Maximum retail price (MRP) of the item. Applicable to India only.
      +   * 
      + * + * .google.shopping.type.Price maximum_retail_price = 139; + * + * @return Whether the maximumRetailPrice field is set. + */ + boolean hasMaximumRetailPrice(); + + /** + * + * + *
      +   * Maximum retail price (MRP) of the item. Applicable to India only.
      +   * 
      + * + * .google.shopping.type.Price maximum_retail_price = 139; + * + * @return The maximumRetailPrice. + */ + com.google.shopping.type.Price getMaximumRetailPrice(); + + /** + * + * + *
      +   * Maximum retail price (MRP) of the item. Applicable to India only.
      +   * 
      + * + * .google.shopping.type.Price maximum_retail_price = 139; + */ + com.google.shopping.type.PriceOrBuilder getMaximumRetailPriceOrBuilder(); + /** * * @@ -1280,7 +1429,7 @@ com.google.shopping.merchant.products.v1beta.LoyaltyProgramOrBuilder getLoyaltyP * *
          * Categories of the item (formatted as in [product data
      -   * specification](https://support.google.com/merchants/answer/188494#product_type)).
      +   * specification](https://support.google.com/merchants/answer/7052112#product_category)).
          * 
      * * repeated string product_types = 35; @@ -1294,7 +1443,7 @@ com.google.shopping.merchant.products.v1beta.LoyaltyProgramOrBuilder getLoyaltyP * *
          * Categories of the item (formatted as in [product data
      -   * specification](https://support.google.com/merchants/answer/188494#product_type)).
      +   * specification](https://support.google.com/merchants/answer/7052112#product_category)).
          * 
      * * repeated string product_types = 35; @@ -1308,7 +1457,7 @@ com.google.shopping.merchant.products.v1beta.LoyaltyProgramOrBuilder getLoyaltyP * *
          * Categories of the item (formatted as in [product data
      -   * specification](https://support.google.com/merchants/answer/188494#product_type)).
      +   * specification](https://support.google.com/merchants/answer/7052112#product_category)).
          * 
      * * repeated string product_types = 35; @@ -1323,7 +1472,7 @@ com.google.shopping.merchant.products.v1beta.LoyaltyProgramOrBuilder getLoyaltyP * *
          * Categories of the item (formatted as in [product data
      -   * specification](https://support.google.com/merchants/answer/188494#product_type)).
      +   * specification](https://support.google.com/merchants/answer/7052112#product_category)).
          * 
      * * repeated string product_types = 35; @@ -1374,8 +1523,8 @@ com.google.shopping.merchant.products.v1beta.LoyaltyProgramOrBuilder getLoyaltyP * * *
      -   * Date range during which the item is on sale (see [product data
      -   * specification](https://support.google.com/merchants/answer/188494#sale_price_effective_date)).
      +   * Date range during which the item is on sale, see [product data
      +   * specification](https://support.google.com/merchants/answer/7052112#price_and_availability).
          * 
      * * .google.type.Interval sale_price_effective_date = 37; @@ -1388,8 +1537,8 @@ com.google.shopping.merchant.products.v1beta.LoyaltyProgramOrBuilder getLoyaltyP * * *
      -   * Date range during which the item is on sale (see [product data
      -   * specification](https://support.google.com/merchants/answer/188494#sale_price_effective_date)).
      +   * Date range during which the item is on sale, see [product data
      +   * specification](https://support.google.com/merchants/answer/7052112#price_and_availability).
          * 
      * * .google.type.Interval sale_price_effective_date = 37; @@ -1402,8 +1551,8 @@ com.google.shopping.merchant.products.v1beta.LoyaltyProgramOrBuilder getLoyaltyP * * *
      -   * Date range during which the item is on sale (see [product data
      -   * specification](https://support.google.com/merchants/answer/188494#sale_price_effective_date)).
      +   * Date range during which the item is on sale, see [product data
      +   * specification](https://support.google.com/merchants/answer/7052112#price_and_availability).
          * 
      * * .google.type.Interval sale_price_effective_date = 37; @@ -2022,8 +2171,8 @@ com.google.shopping.merchant.products.v1beta.FreeShippingThreshold getFreeShippi *
          * Size of the item. Only one value is allowed. For variants with different
          * sizes, insert a separate product for each size with the same
      -   * `itemGroupId` value (see
      -   * [https://support.google.com/merchants/answer/6324492](size definition)).
      +   * `itemGroupId` value, see
      +   * [Size](https://support.google.com/merchants/answer/6324492).
          * 
      * * optional string size = 48; @@ -2038,8 +2187,8 @@ com.google.shopping.merchant.products.v1beta.FreeShippingThreshold getFreeShippi *
          * Size of the item. Only one value is allowed. For variants with different
          * sizes, insert a separate product for each size with the same
      -   * `itemGroupId` value (see
      -   * [https://support.google.com/merchants/answer/6324492](size definition)).
      +   * `itemGroupId` value, see
      +   * [Size](https://support.google.com/merchants/answer/6324492).
          * 
      * * optional string size = 48; @@ -2054,8 +2203,8 @@ com.google.shopping.merchant.products.v1beta.FreeShippingThreshold getFreeShippi *
          * Size of the item. Only one value is allowed. For variants with different
          * sizes, insert a separate product for each size with the same
      -   * `itemGroupId` value (see
      -   * [https://support.google.com/merchants/answer/6324492](size definition)).
      +   * `itemGroupId` value, see
      +   * [Size](https://support.google.com/merchants/answer/6324492).
          * 
      * * optional string size = 48; @@ -2069,6 +2218,9 @@ com.google.shopping.merchant.products.v1beta.FreeShippingThreshold getFreeShippi * *
          * System in which the size is specified. Recommended for apparel items.
      +   * For example, "US", "UK", "DE".
      +   * For more information, see
      +   * [Size system](https://support.google.com/merchants/answer/6324502).
          * 
      * * optional string size_system = 49; @@ -2082,6 +2234,9 @@ com.google.shopping.merchant.products.v1beta.FreeShippingThreshold getFreeShippi * *
          * System in which the size is specified. Recommended for apparel items.
      +   * For example, "US", "UK", "DE".
      +   * For more information, see
      +   * [Size system](https://support.google.com/merchants/answer/6324502).
          * 
      * * optional string size_system = 49; @@ -2095,6 +2250,9 @@ com.google.shopping.merchant.products.v1beta.FreeShippingThreshold getFreeShippi * *
          * System in which the size is specified. Recommended for apparel items.
      +   * For example, "US", "UK", "DE".
      +   * For more information, see
      +   * [Size system](https://support.google.com/merchants/answer/6324502).
          * 
      * * optional string size_system = 49; @@ -2108,8 +2266,9 @@ com.google.shopping.merchant.products.v1beta.FreeShippingThreshold getFreeShippi * *
          * The cut of the item. It can be used to represent combined size types for
      -   * apparel items. Maximum two of size types can be provided (see
      -   * [https://support.google.com/merchants/answer/6324497](size type)).
      +   * apparel items. Maximum two of size types can be provided, see
      +   * [Size type](https://support.google.com/merchants/answer/6324497).
      +   * For example, "petite", "plus size".
          * 
      * * repeated string size_types = 50; @@ -2123,8 +2282,9 @@ com.google.shopping.merchant.products.v1beta.FreeShippingThreshold getFreeShippi * *
          * The cut of the item. It can be used to represent combined size types for
      -   * apparel items. Maximum two of size types can be provided (see
      -   * [https://support.google.com/merchants/answer/6324497](size type)).
      +   * apparel items. Maximum two of size types can be provided, see
      +   * [Size type](https://support.google.com/merchants/answer/6324497).
      +   * For example, "petite", "plus size".
          * 
      * * repeated string size_types = 50; @@ -2138,8 +2298,9 @@ com.google.shopping.merchant.products.v1beta.FreeShippingThreshold getFreeShippi * *
          * The cut of the item. It can be used to represent combined size types for
      -   * apparel items. Maximum two of size types can be provided (see
      -   * [https://support.google.com/merchants/answer/6324497](size type)).
      +   * apparel items. Maximum two of size types can be provided, see
      +   * [Size type](https://support.google.com/merchants/answer/6324497).
      +   * For example, "petite", "plus size".
          * 
      * * repeated string size_types = 50; @@ -2154,8 +2315,9 @@ com.google.shopping.merchant.products.v1beta.FreeShippingThreshold getFreeShippi * *
          * The cut of the item. It can be used to represent combined size types for
      -   * apparel items. Maximum two of size types can be provided (see
      -   * [https://support.google.com/merchants/answer/6324497](size type)).
      +   * apparel items. Maximum two of size types can be provided, see
      +   * [Size type](https://support.google.com/merchants/answer/6324497).
      +   * For example, "petite", "plus size".
          * 
      * * repeated string size_types = 50; @@ -2172,8 +2334,10 @@ com.google.shopping.merchant.products.v1beta.FreeShippingThreshold getFreeShippi * Tax information. * * - * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51; + * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51 [deprecated = true]; + * */ + @java.lang.Deprecated java.util.List getTaxesList(); /** @@ -2183,8 +2347,10 @@ com.google.shopping.merchant.products.v1beta.FreeShippingThreshold getFreeShippi * Tax information. * * - * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51; + * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51 [deprecated = true]; + * */ + @java.lang.Deprecated com.google.shopping.merchant.products.v1beta.Tax getTaxes(int index); /** @@ -2194,8 +2360,10 @@ com.google.shopping.merchant.products.v1beta.FreeShippingThreshold getFreeShippi * Tax information. * * - * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51; + * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51 [deprecated = true]; + * */ + @java.lang.Deprecated int getTaxesCount(); /** @@ -2205,8 +2373,10 @@ com.google.shopping.merchant.products.v1beta.FreeShippingThreshold getFreeShippi * Tax information. * * - * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51; + * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51 [deprecated = true]; + * */ + @java.lang.Deprecated java.util.List getTaxesOrBuilderList(); @@ -2217,47 +2387,61 @@ com.google.shopping.merchant.products.v1beta.FreeShippingThreshold getFreeShippi * Tax information. * * - * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51; + * repeated .google.shopping.merchant.products.v1beta.Tax taxes = 51 [deprecated = true]; + * */ + @java.lang.Deprecated com.google.shopping.merchant.products.v1beta.TaxOrBuilder getTaxesOrBuilder(int index); /** * * *
      -   * The tax category of the product.
      +   * The [tax category](https://support.google.com/merchants/answer/7569847) of
      +   * the product.
          * 
      * - * optional string tax_category = 52; + * optional string tax_category = 52 [deprecated = true]; * + * @deprecated google.shopping.merchant.products.v1beta.Attributes.tax_category is deprecated. See + * google/shopping/merchant/products/v1beta/products_common.proto;l=264 * @return Whether the taxCategory field is set. */ + @java.lang.Deprecated boolean hasTaxCategory(); /** * * *
      -   * The tax category of the product.
      +   * The [tax category](https://support.google.com/merchants/answer/7569847) of
      +   * the product.
          * 
      * - * optional string tax_category = 52; + * optional string tax_category = 52 [deprecated = true]; * + * @deprecated google.shopping.merchant.products.v1beta.Attributes.tax_category is deprecated. See + * google/shopping/merchant/products/v1beta/products_common.proto;l=264 * @return The taxCategory. */ + @java.lang.Deprecated java.lang.String getTaxCategory(); /** * * *
      -   * The tax category of the product.
      +   * The [tax category](https://support.google.com/merchants/answer/7569847) of
      +   * the product.
          * 
      * - * optional string tax_category = 52; + * optional string tax_category = 52 [deprecated = true]; * + * @deprecated google.shopping.merchant.products.v1beta.Attributes.tax_category is deprecated. See + * google/shopping/merchant/products/v1beta/products_common.proto;l=264 * @return The bytes for taxCategory. */ + @java.lang.Deprecated com.google.protobuf.ByteString getTaxCategoryBytes(); /** @@ -2466,7 +2650,7 @@ com.google.shopping.merchant.products.v1beta.FreeShippingThreshold getFreeShippi * * *
      -   * The number of identical products in a merchant-defined multipack.
      +   * The number of identical products in a business-defined multipack.
          * 
      * * optional int64 multipack = 58; @@ -2479,7 +2663,7 @@ com.google.shopping.merchant.products.v1beta.FreeShippingThreshold getFreeShippi * * *
      -   * The number of identical products in a merchant-defined multipack.
      +   * The number of identical products in a business-defined multipack.
          * 
      * * optional int64 multipack = 58; @@ -2493,7 +2677,9 @@ com.google.shopping.merchant.products.v1beta.FreeShippingThreshold getFreeShippi * *
          * Used to group items in an arbitrary way. Only for CPA%, discouraged
      -   * otherwise.
      +   * otherwise. For more information, see
      +   * [Display ads
      +   * attribute](https://support.google.com/merchants/answer/6069387).
          * 
      * * optional string ads_grouping = 59; @@ -2507,7 +2693,9 @@ com.google.shopping.merchant.products.v1beta.FreeShippingThreshold getFreeShippi * *
          * Used to group items in an arbitrary way. Only for CPA%, discouraged
      -   * otherwise.
      +   * otherwise. For more information, see
      +   * [Display ads
      +   * attribute](https://support.google.com/merchants/answer/6069387).
          * 
      * * optional string ads_grouping = 59; @@ -2521,7 +2709,9 @@ com.google.shopping.merchant.products.v1beta.FreeShippingThreshold getFreeShippi * *
          * Used to group items in an arbitrary way. Only for CPA%, discouraged
      -   * otherwise.
      +   * otherwise. For more information, see
      +   * [Display ads
      +   * attribute](https://support.google.com/merchants/answer/6069387).
          * 
      * * optional string ads_grouping = 59; @@ -2730,7 +2920,8 @@ com.google.shopping.merchant.products.v1beta.ProductDetailOrBuilder getProductDe * * *
      -   * Bullet points describing the most relevant highlights of a product.
      +   * Bullet points describing the most relevant [product
      +   * highlights](https://support.google.com/merchants/answer/9216100).
          * 
      * * repeated string product_highlights = 64; @@ -2743,7 +2934,8 @@ com.google.shopping.merchant.products.v1beta.ProductDetailOrBuilder getProductDe * * *
      -   * Bullet points describing the most relevant highlights of a product.
      +   * Bullet points describing the most relevant [product
      +   * highlights](https://support.google.com/merchants/answer/9216100).
          * 
      * * repeated string product_highlights = 64; @@ -2756,7 +2948,8 @@ com.google.shopping.merchant.products.v1beta.ProductDetailOrBuilder getProductDe * * *
      -   * Bullet points describing the most relevant highlights of a product.
      +   * Bullet points describing the most relevant [product
      +   * highlights](https://support.google.com/merchants/answer/9216100).
          * 
      * * repeated string product_highlights = 64; @@ -2770,7 +2963,8 @@ com.google.shopping.merchant.products.v1beta.ProductDetailOrBuilder getProductDe * * *
      -   * Bullet points describing the most relevant highlights of a product.
      +   * Bullet points describing the most relevant [product
      +   * highlights](https://support.google.com/merchants/answer/9216100).
          * 
      * * repeated string product_highlights = 64; @@ -2823,7 +3017,9 @@ com.google.shopping.merchant.products.v1beta.ProductDetailOrBuilder getProductDe * * *
      -   * Advertiser-specified recommendations.
      +   * Advertiser-specified recommendations. For more information, see
      +   * [Display ads attribute
      +   * specification](https://support.google.com/merchants/answer/6069387).
          * 
      * * repeated string display_ads_similar_ids = 66; @@ -2836,7 +3032,9 @@ com.google.shopping.merchant.products.v1beta.ProductDetailOrBuilder getProductDe * * *
      -   * Advertiser-specified recommendations.
      +   * Advertiser-specified recommendations. For more information, see
      +   * [Display ads attribute
      +   * specification](https://support.google.com/merchants/answer/6069387).
          * 
      * * repeated string display_ads_similar_ids = 66; @@ -2849,7 +3047,9 @@ com.google.shopping.merchant.products.v1beta.ProductDetailOrBuilder getProductDe * * *
      -   * Advertiser-specified recommendations.
      +   * Advertiser-specified recommendations. For more information, see
      +   * [Display ads attribute
      +   * specification](https://support.google.com/merchants/answer/6069387).
          * 
      * * repeated string display_ads_similar_ids = 66; @@ -2863,7 +3063,9 @@ com.google.shopping.merchant.products.v1beta.ProductDetailOrBuilder getProductDe * * *
      -   * Advertiser-specified recommendations.
      +   * Advertiser-specified recommendations. For more information, see
      +   * [Display ads attribute
      +   * specification](https://support.google.com/merchants/answer/6069387).
          * 
      * * repeated string display_ads_similar_ids = 66; @@ -2958,7 +3160,9 @@ com.google.shopping.merchant.products.v1beta.ProductDetailOrBuilder getProductDe * * *
      -   * Offer margin for dynamic remarketing campaigns.
      +   * Offer margin for dynamic remarketing campaigns. For more information, see
      +   * [Display ads
      +   * attribute](https://support.google.com/merchants/answer/6069387).
          * 
      * * optional double display_ads_value = 69; @@ -2971,7 +3175,9 @@ com.google.shopping.merchant.products.v1beta.ProductDetailOrBuilder getProductDe * * *
      -   * Offer margin for dynamic remarketing campaigns.
      +   * Offer margin for dynamic remarketing campaigns. For more information, see
      +   * [Display ads
      +   * attribute](https://support.google.com/merchants/answer/6069387).
          * 
      * * optional double display_ads_value = 69; @@ -3038,7 +3244,8 @@ com.google.shopping.merchant.products.v1beta.ProductDetailOrBuilder getProductDe * * *
      -   * The pick up option for the item.
      +   * The [pickup](https://support.google.com/merchants/answer/14634021) option
      +   * for the item.
          * 
      * * optional string pickup_method = 80; @@ -3051,7 +3258,8 @@ com.google.shopping.merchant.products.v1beta.ProductDetailOrBuilder getProductDe * * *
      -   * The pick up option for the item.
      +   * The [pickup](https://support.google.com/merchants/answer/14634021) option
      +   * for the item.
          * 
      * * optional string pickup_method = 80; @@ -3064,7 +3272,8 @@ com.google.shopping.merchant.products.v1beta.ProductDetailOrBuilder getProductDe * * *
      -   * The pick up option for the item.
      +   * The [pickup](https://support.google.com/merchants/answer/14634021) option
      +   * for the item.
          * 
      * * optional string pickup_method = 80; @@ -3077,7 +3286,8 @@ com.google.shopping.merchant.products.v1beta.ProductDetailOrBuilder getProductDe * * *
      -   * Item store pickup timeline.
      +   * Item store pickup timeline. For more information, see
      +   * [Pickup SLA](https://support.google.com/merchants/answer/14635400).
          * 
      * * optional string pickup_sla = 81; @@ -3090,7 +3300,8 @@ com.google.shopping.merchant.products.v1beta.ProductDetailOrBuilder getProductDe * * *
      -   * Item store pickup timeline.
      +   * Item store pickup timeline. For more information, see
      +   * [Pickup SLA](https://support.google.com/merchants/answer/14635400).
          * 
      * * optional string pickup_sla = 81; @@ -3103,7 +3314,8 @@ com.google.shopping.merchant.products.v1beta.ProductDetailOrBuilder getProductDe * * *
      -   * Item store pickup timeline.
      +   * Item store pickup timeline. For more information, see
      +   * [Pickup SLA](https://support.google.com/merchants/answer/14635400).
          * 
      * * optional string pickup_sla = 81; @@ -3116,7 +3328,8 @@ com.google.shopping.merchant.products.v1beta.ProductDetailOrBuilder getProductDe * * *
      -   * Link template for merchant hosted local storefront.
      +   * [Link template](https://support.google.com/merchants/answer/13871172) for
      +   * business hosted local storefront.
          * 
      * * optional string link_template = 82; @@ -3129,7 +3342,8 @@ com.google.shopping.merchant.products.v1beta.ProductDetailOrBuilder getProductDe * * *
      -   * Link template for merchant hosted local storefront.
      +   * [Link template](https://support.google.com/merchants/answer/13871172) for
      +   * business hosted local storefront.
          * 
      * * optional string link_template = 82; @@ -3142,7 +3356,8 @@ com.google.shopping.merchant.products.v1beta.ProductDetailOrBuilder getProductDe * * *
      -   * Link template for merchant hosted local storefront.
      +   * [Link template](https://support.google.com/merchants/answer/13871172) for
      +   * business hosted local storefront.
          * 
      * * optional string link_template = 82; @@ -3155,7 +3370,8 @@ com.google.shopping.merchant.products.v1beta.ProductDetailOrBuilder getProductDe * * *
      -   * Link template for merchant hosted local storefront optimized for mobile
      +   * [Link template](https://support.google.com/merchants/answer/13870216) for
      +   * business hosted local storefront optimized for mobile
          * devices.
          * 
      * @@ -3169,7 +3385,8 @@ com.google.shopping.merchant.products.v1beta.ProductDetailOrBuilder getProductDe * * *
      -   * Link template for merchant hosted local storefront optimized for mobile
      +   * [Link template](https://support.google.com/merchants/answer/13870216) for
      +   * business hosted local storefront optimized for mobile
          * devices.
          * 
      * @@ -3183,7 +3400,8 @@ com.google.shopping.merchant.products.v1beta.ProductDetailOrBuilder getProductDe * * *
      -   * Link template for merchant hosted local storefront optimized for mobile
      +   * [Link template](https://support.google.com/merchants/answer/13870216) for
      +   * business hosted local storefront optimized for mobile
          * devices.
          * 
      * @@ -3197,7 +3415,8 @@ com.google.shopping.merchant.products.v1beta.ProductDetailOrBuilder getProductDe * * *
      -   * Custom label 0 for custom grouping of items in a Shopping campaign.
      +   * [Custom label 0](https://support.google.com/merchants/answer/6324473) for
      +   * custom grouping of items in a Shopping campaign.
          * 
      * * optional string custom_label_0 = 71; @@ -3210,7 +3429,8 @@ com.google.shopping.merchant.products.v1beta.ProductDetailOrBuilder getProductDe * * *
      -   * Custom label 0 for custom grouping of items in a Shopping campaign.
      +   * [Custom label 0](https://support.google.com/merchants/answer/6324473) for
      +   * custom grouping of items in a Shopping campaign.
          * 
      * * optional string custom_label_0 = 71; @@ -3223,7 +3443,8 @@ com.google.shopping.merchant.products.v1beta.ProductDetailOrBuilder getProductDe * * *
      -   * Custom label 0 for custom grouping of items in a Shopping campaign.
      +   * [Custom label 0](https://support.google.com/merchants/answer/6324473) for
      +   * custom grouping of items in a Shopping campaign.
          * 
      * * optional string custom_label_0 = 71; @@ -3236,7 +3457,8 @@ com.google.shopping.merchant.products.v1beta.ProductDetailOrBuilder getProductDe * * *
      -   * Custom label 1 for custom grouping of items in a Shopping campaign.
      +   * [Custom label 1](https://support.google.com/merchants/answer/6324473)
      +   * for custom grouping of items in a Shopping campaign.
          * 
      * * optional string custom_label_1 = 72; @@ -3249,7 +3471,8 @@ com.google.shopping.merchant.products.v1beta.ProductDetailOrBuilder getProductDe * * *
      -   * Custom label 1 for custom grouping of items in a Shopping campaign.
      +   * [Custom label 1](https://support.google.com/merchants/answer/6324473)
      +   * for custom grouping of items in a Shopping campaign.
          * 
      * * optional string custom_label_1 = 72; @@ -3262,7 +3485,8 @@ com.google.shopping.merchant.products.v1beta.ProductDetailOrBuilder getProductDe * * *
      -   * Custom label 1 for custom grouping of items in a Shopping campaign.
      +   * [Custom label 1](https://support.google.com/merchants/answer/6324473)
      +   * for custom grouping of items in a Shopping campaign.
          * 
      * * optional string custom_label_1 = 72; @@ -3275,7 +3499,8 @@ com.google.shopping.merchant.products.v1beta.ProductDetailOrBuilder getProductDe * * *
      -   * Custom label 2 for custom grouping of items in a Shopping campaign.
      +   * [Custom label 2](https://support.google.com/merchants/answer/6324473)
      +   * for custom grouping of items in a Shopping campaign.
          * 
      * * optional string custom_label_2 = 73; @@ -3288,7 +3513,8 @@ com.google.shopping.merchant.products.v1beta.ProductDetailOrBuilder getProductDe * * *
      -   * Custom label 2 for custom grouping of items in a Shopping campaign.
      +   * [Custom label 2](https://support.google.com/merchants/answer/6324473)
      +   * for custom grouping of items in a Shopping campaign.
          * 
      * * optional string custom_label_2 = 73; @@ -3301,7 +3527,8 @@ com.google.shopping.merchant.products.v1beta.ProductDetailOrBuilder getProductDe * * *
      -   * Custom label 2 for custom grouping of items in a Shopping campaign.
      +   * [Custom label 2](https://support.google.com/merchants/answer/6324473)
      +   * for custom grouping of items in a Shopping campaign.
          * 
      * * optional string custom_label_2 = 73; @@ -3314,7 +3541,8 @@ com.google.shopping.merchant.products.v1beta.ProductDetailOrBuilder getProductDe * * *
      -   * Custom label 3 for custom grouping of items in a Shopping campaign.
      +   * [Custom label 3](https://support.google.com/merchants/answer/6324473)
      +   * for custom grouping of items in a Shopping campaign.
          * 
      * * optional string custom_label_3 = 74; @@ -3327,7 +3555,8 @@ com.google.shopping.merchant.products.v1beta.ProductDetailOrBuilder getProductDe * * *
      -   * Custom label 3 for custom grouping of items in a Shopping campaign.
      +   * [Custom label 3](https://support.google.com/merchants/answer/6324473)
      +   * for custom grouping of items in a Shopping campaign.
          * 
      * * optional string custom_label_3 = 74; @@ -3340,7 +3569,8 @@ com.google.shopping.merchant.products.v1beta.ProductDetailOrBuilder getProductDe * * *
      -   * Custom label 3 for custom grouping of items in a Shopping campaign.
      +   * [Custom label 3](https://support.google.com/merchants/answer/6324473)
      +   * for custom grouping of items in a Shopping campaign.
          * 
      * * optional string custom_label_3 = 74; @@ -3353,7 +3583,8 @@ com.google.shopping.merchant.products.v1beta.ProductDetailOrBuilder getProductDe * * *
      -   * Custom label 4 for custom grouping of items in a Shopping campaign.
      +   * [Custom label 4](https://support.google.com/merchants/answer/6324473) for
      +   * custom grouping of items in a Shopping campaign.
          * 
      * * optional string custom_label_4 = 75; @@ -3366,7 +3597,8 @@ com.google.shopping.merchant.products.v1beta.ProductDetailOrBuilder getProductDe * * *
      -   * Custom label 4 for custom grouping of items in a Shopping campaign.
      +   * [Custom label 4](https://support.google.com/merchants/answer/6324473) for
      +   * custom grouping of items in a Shopping campaign.
          * 
      * * optional string custom_label_4 = 75; @@ -3379,7 +3611,8 @@ com.google.shopping.merchant.products.v1beta.ProductDetailOrBuilder getProductDe * * *
      -   * Custom label 4 for custom grouping of items in a Shopping campaign.
      +   * [Custom label 4](https://support.google.com/merchants/answer/6324473) for
      +   * custom grouping of items in a Shopping campaign.
          * 
      * * optional string custom_label_4 = 75; @@ -3395,6 +3628,13 @@ com.google.shopping.merchant.products.v1beta.ProductDetailOrBuilder getProductDe * The list of destinations to include for this target (corresponds to * checked check boxes in Merchant Center). Default destinations are always * included unless provided in `excludedDestinations`. + * + * For more information, see + * [Included + * destination](https://support.google.com/merchants/answer/7501026). + * + * Note: We recommend setting destinations on datasources level for most use + * cases. Use this field within products to only setup exceptions. * * * repeated string included_destinations = 76; @@ -3410,6 +3650,13 @@ com.google.shopping.merchant.products.v1beta.ProductDetailOrBuilder getProductDe * The list of destinations to include for this target (corresponds to * checked check boxes in Merchant Center). Default destinations are always * included unless provided in `excludedDestinations`. + * + * For more information, see + * [Included + * destination](https://support.google.com/merchants/answer/7501026). + * + * Note: We recommend setting destinations on datasources level for most use + * cases. Use this field within products to only setup exceptions. * * * repeated string included_destinations = 76; @@ -3425,6 +3672,13 @@ com.google.shopping.merchant.products.v1beta.ProductDetailOrBuilder getProductDe * The list of destinations to include for this target (corresponds to * checked check boxes in Merchant Center). Default destinations are always * included unless provided in `excludedDestinations`. + * + * For more information, see + * [Included + * destination](https://support.google.com/merchants/answer/7501026). + * + * Note: We recommend setting destinations on datasources level for most use + * cases. Use this field within products to only setup exceptions. * * * repeated string included_destinations = 76; @@ -3441,6 +3695,13 @@ com.google.shopping.merchant.products.v1beta.ProductDetailOrBuilder getProductDe * The list of destinations to include for this target (corresponds to * checked check boxes in Merchant Center). Default destinations are always * included unless provided in `excludedDestinations`. + * + * For more information, see + * [Included + * destination](https://support.google.com/merchants/answer/7501026). + * + * Note: We recommend setting destinations on datasources level for most use + * cases. Use this field within products to only setup exceptions. * * * repeated string included_destinations = 76; @@ -3456,6 +3717,13 @@ com.google.shopping.merchant.products.v1beta.ProductDetailOrBuilder getProductDe *
          * The list of destinations to exclude for this target (corresponds to
          * unchecked check boxes in Merchant Center).
      +   *
      +   * For more information, see
      +   * [Excluded
      +   * destination](https://support.google.com/merchants/answer/6324486).
      +   *
      +   * Note: We recommend setting destinations on datasources level for most use
      +   * cases. Use this field within products to only setup exceptions.
          * 
      * * repeated string excluded_destinations = 77; @@ -3470,6 +3738,13 @@ com.google.shopping.merchant.products.v1beta.ProductDetailOrBuilder getProductDe *
          * The list of destinations to exclude for this target (corresponds to
          * unchecked check boxes in Merchant Center).
      +   *
      +   * For more information, see
      +   * [Excluded
      +   * destination](https://support.google.com/merchants/answer/6324486).
      +   *
      +   * Note: We recommend setting destinations on datasources level for most use
      +   * cases. Use this field within products to only setup exceptions.
          * 
      * * repeated string excluded_destinations = 77; @@ -3484,6 +3759,13 @@ com.google.shopping.merchant.products.v1beta.ProductDetailOrBuilder getProductDe *
          * The list of destinations to exclude for this target (corresponds to
          * unchecked check boxes in Merchant Center).
      +   *
      +   * For more information, see
      +   * [Excluded
      +   * destination](https://support.google.com/merchants/answer/6324486).
      +   *
      +   * Note: We recommend setting destinations on datasources level for most use
      +   * cases. Use this field within products to only setup exceptions.
          * 
      * * repeated string excluded_destinations = 77; @@ -3499,6 +3781,13 @@ com.google.shopping.merchant.products.v1beta.ProductDetailOrBuilder getProductDe *
          * The list of destinations to exclude for this target (corresponds to
          * unchecked check boxes in Merchant Center).
      +   *
      +   * For more information, see
      +   * [Excluded
      +   * destination](https://support.google.com/merchants/answer/6324486).
      +   *
      +   * Note: We recommend setting destinations on datasources level for most use
      +   * cases. Use this field within products to only setup exceptions.
          * 
      * * repeated string excluded_destinations = 77; @@ -3512,10 +3801,10 @@ com.google.shopping.merchant.products.v1beta.ProductDetailOrBuilder getProductDe * * *
      -   * List of country codes (ISO 3166-1 alpha-2) to exclude the offer from
      -   * Shopping Ads destination.
      -   * Countries from this list are removed from countries configured
      -   * in data source settings.
      +   * List of country codes [(ISO 3166-1
      +   * alpha-2)](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) to exclude the
      +   * offer from Shopping Ads destination. Countries from this list are removed
      +   * from countries configured in data source settings.
          * 
      * * repeated string shopping_ads_excluded_countries = 78; @@ -3528,10 +3817,10 @@ com.google.shopping.merchant.products.v1beta.ProductDetailOrBuilder getProductDe * * *
      -   * List of country codes (ISO 3166-1 alpha-2) to exclude the offer from
      -   * Shopping Ads destination.
      -   * Countries from this list are removed from countries configured
      -   * in data source settings.
      +   * List of country codes [(ISO 3166-1
      +   * alpha-2)](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) to exclude the
      +   * offer from Shopping Ads destination. Countries from this list are removed
      +   * from countries configured in data source settings.
          * 
      * * repeated string shopping_ads_excluded_countries = 78; @@ -3544,10 +3833,10 @@ com.google.shopping.merchant.products.v1beta.ProductDetailOrBuilder getProductDe * * *
      -   * List of country codes (ISO 3166-1 alpha-2) to exclude the offer from
      -   * Shopping Ads destination.
      -   * Countries from this list are removed from countries configured
      -   * in data source settings.
      +   * List of country codes [(ISO 3166-1
      +   * alpha-2)](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) to exclude the
      +   * offer from Shopping Ads destination. Countries from this list are removed
      +   * from countries configured in data source settings.
          * 
      * * repeated string shopping_ads_excluded_countries = 78; @@ -3561,10 +3850,10 @@ com.google.shopping.merchant.products.v1beta.ProductDetailOrBuilder getProductDe * * *
      -   * List of country codes (ISO 3166-1 alpha-2) to exclude the offer from
      -   * Shopping Ads destination.
      -   * Countries from this list are removed from countries configured
      -   * in data source settings.
      +   * List of country codes [(ISO 3166-1
      +   * alpha-2)](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) to exclude the
      +   * offer from Shopping Ads destination. Countries from this list are removed
      +   * from countries configured in data source settings.
          * 
      * * repeated string shopping_ads_excluded_countries = 78; @@ -4019,11 +4308,11 @@ com.google.shopping.merchant.products.v1beta.CertificationOrBuilder getCertifica * * *
      -   * A safeguard in the "Automated Discounts"
      +   * A safeguard in the [automated discounts]
          * (https://support.google.com/merchants/answer/10295759) and
          * "Dynamic Promotions"
          * (https://support.google.com/merchants/answer/13949249) projects,
      -   * ensuring that discounts on merchants' offers do not fall below this value,
      +   * ensuring that discounts on business offers do not fall below this value,
          * thereby preserving the offer's value and profitability.
          * 
      * @@ -4037,11 +4326,11 @@ com.google.shopping.merchant.products.v1beta.CertificationOrBuilder getCertifica * * *
      -   * A safeguard in the "Automated Discounts"
      +   * A safeguard in the [automated discounts]
          * (https://support.google.com/merchants/answer/10295759) and
          * "Dynamic Promotions"
          * (https://support.google.com/merchants/answer/13949249) projects,
      -   * ensuring that discounts on merchants' offers do not fall below this value,
      +   * ensuring that discounts on business offers do not fall below this value,
          * thereby preserving the offer's value and profitability.
          * 
      * @@ -4055,11 +4344,11 @@ com.google.shopping.merchant.products.v1beta.CertificationOrBuilder getCertifica * * *
      -   * A safeguard in the "Automated Discounts"
      +   * A safeguard in the [automated discounts]
          * (https://support.google.com/merchants/answer/10295759) and
          * "Dynamic Promotions"
          * (https://support.google.com/merchants/answer/13949249) projects,
      -   * ensuring that discounts on merchants' offers do not fall below this value,
      +   * ensuring that discounts on business offers do not fall below this value,
          * thereby preserving the offer's value and profitability.
          * 
      * diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/DeleteProductInputRequest.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/DeleteProductInputRequest.java index dce0ce0e86d2..972be9f5593b 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/DeleteProductInputRequest.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/DeleteProductInputRequest.java @@ -75,11 +75,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
          * Required. The name of the product input resource to delete.
      -   * Format: accounts/{account}/productInputs/{product}
      +   * Format: `accounts/{account}/productInputs/{product}`
          * where the last section `product` consists of 4 parts:
      -   * channel~content_language~feed_label~offer_id
      +   * `channel~content_language~feed_label~offer_id`
          * example for product name is
      -   * "accounts/123/productInputs/online~en~US~sku123"
      +   * `accounts/123/productInputs/online~en~US~sku123`.
          * 
      * * @@ -106,11 +106,11 @@ public java.lang.String getName() { * *
          * Required. The name of the product input resource to delete.
      -   * Format: accounts/{account}/productInputs/{product}
      +   * Format: `accounts/{account}/productInputs/{product}`
          * where the last section `product` consists of 4 parts:
      -   * channel~content_language~feed_label~offer_id
      +   * `channel~content_language~feed_label~offer_id`
          * example for product name is
      -   * "accounts/123/productInputs/online~en~US~sku123"
      +   * `accounts/123/productInputs/online~en~US~sku123`.
          * 
      * * @@ -143,7 +143,8 @@ public com.google.protobuf.ByteString getNameBytes() { *
          * Required. The primary or supplemental data source from which the product
          * input should be deleted. Format:
      -   * `accounts/{account}/dataSources/{datasource}`.
      +   * `accounts/{account}/dataSources/{datasource}`. For example,
      +   * `accounts/123456/dataSources/104628`.
          * 
      * * string data_source = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -169,7 +170,8 @@ public java.lang.String getDataSource() { *
          * Required. The primary or supplemental data source from which the product
          * input should be deleted. Format:
      -   * `accounts/{account}/dataSources/{datasource}`.
      +   * `accounts/{account}/dataSources/{datasource}`. For example,
      +   * `accounts/123456/dataSources/104628`.
          * 
      * * string data_source = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -573,11 +575,11 @@ public Builder mergeFrom( * *
            * Required. The name of the product input resource to delete.
      -     * Format: accounts/{account}/productInputs/{product}
      +     * Format: `accounts/{account}/productInputs/{product}`
            * where the last section `product` consists of 4 parts:
      -     * channel~content_language~feed_label~offer_id
      +     * `channel~content_language~feed_label~offer_id`
            * example for product name is
      -     * "accounts/123/productInputs/online~en~US~sku123"
      +     * `accounts/123/productInputs/online~en~US~sku123`.
            * 
      * * @@ -603,11 +605,11 @@ public java.lang.String getName() { * *
            * Required. The name of the product input resource to delete.
      -     * Format: accounts/{account}/productInputs/{product}
      +     * Format: `accounts/{account}/productInputs/{product}`
            * where the last section `product` consists of 4 parts:
      -     * channel~content_language~feed_label~offer_id
      +     * `channel~content_language~feed_label~offer_id`
            * example for product name is
      -     * "accounts/123/productInputs/online~en~US~sku123"
      +     * `accounts/123/productInputs/online~en~US~sku123`.
            * 
      * * @@ -633,11 +635,11 @@ public com.google.protobuf.ByteString getNameBytes() { * *
            * Required. The name of the product input resource to delete.
      -     * Format: accounts/{account}/productInputs/{product}
      +     * Format: `accounts/{account}/productInputs/{product}`
            * where the last section `product` consists of 4 parts:
      -     * channel~content_language~feed_label~offer_id
      +     * `channel~content_language~feed_label~offer_id`
            * example for product name is
      -     * "accounts/123/productInputs/online~en~US~sku123"
      +     * `accounts/123/productInputs/online~en~US~sku123`.
            * 
      * * @@ -662,11 +664,11 @@ public Builder setName(java.lang.String value) { * *
            * Required. The name of the product input resource to delete.
      -     * Format: accounts/{account}/productInputs/{product}
      +     * Format: `accounts/{account}/productInputs/{product}`
            * where the last section `product` consists of 4 parts:
      -     * channel~content_language~feed_label~offer_id
      +     * `channel~content_language~feed_label~offer_id`
            * example for product name is
      -     * "accounts/123/productInputs/online~en~US~sku123"
      +     * `accounts/123/productInputs/online~en~US~sku123`.
            * 
      * * @@ -687,11 +689,11 @@ public Builder clearName() { * *
            * Required. The name of the product input resource to delete.
      -     * Format: accounts/{account}/productInputs/{product}
      +     * Format: `accounts/{account}/productInputs/{product}`
            * where the last section `product` consists of 4 parts:
      -     * channel~content_language~feed_label~offer_id
      +     * `channel~content_language~feed_label~offer_id`
            * example for product name is
      -     * "accounts/123/productInputs/online~en~US~sku123"
      +     * `accounts/123/productInputs/online~en~US~sku123`.
            * 
      * * @@ -720,7 +722,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { *
            * Required. The primary or supplemental data source from which the product
            * input should be deleted. Format:
      -     * `accounts/{account}/dataSources/{datasource}`.
      +     * `accounts/{account}/dataSources/{datasource}`. For example,
      +     * `accounts/123456/dataSources/104628`.
            * 
      * * string data_source = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -745,7 +748,8 @@ public java.lang.String getDataSource() { *
            * Required. The primary or supplemental data source from which the product
            * input should be deleted. Format:
      -     * `accounts/{account}/dataSources/{datasource}`.
      +     * `accounts/{account}/dataSources/{datasource}`. For example,
      +     * `accounts/123456/dataSources/104628`.
            * 
      * * string data_source = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -770,7 +774,8 @@ public com.google.protobuf.ByteString getDataSourceBytes() { *
            * Required. The primary or supplemental data source from which the product
            * input should be deleted. Format:
      -     * `accounts/{account}/dataSources/{datasource}`.
      +     * `accounts/{account}/dataSources/{datasource}`. For example,
      +     * `accounts/123456/dataSources/104628`.
            * 
      * * string data_source = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -794,7 +799,8 @@ public Builder setDataSource(java.lang.String value) { *
            * Required. The primary or supplemental data source from which the product
            * input should be deleted. Format:
      -     * `accounts/{account}/dataSources/{datasource}`.
      +     * `accounts/{account}/dataSources/{datasource}`. For example,
      +     * `accounts/123456/dataSources/104628`.
            * 
      * * string data_source = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -814,7 +820,8 @@ public Builder clearDataSource() { *
            * Required. The primary or supplemental data source from which the product
            * input should be deleted. Format:
      -     * `accounts/{account}/dataSources/{datasource}`.
      +     * `accounts/{account}/dataSources/{datasource}`. For example,
      +     * `accounts/123456/dataSources/104628`.
            * 
      * * string data_source = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/DeleteProductInputRequestOrBuilder.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/DeleteProductInputRequestOrBuilder.java index 23970c582fa4..7dd645832da8 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/DeleteProductInputRequestOrBuilder.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/DeleteProductInputRequestOrBuilder.java @@ -29,11 +29,11 @@ public interface DeleteProductInputRequestOrBuilder * *
          * Required. The name of the product input resource to delete.
      -   * Format: accounts/{account}/productInputs/{product}
      +   * Format: `accounts/{account}/productInputs/{product}`
          * where the last section `product` consists of 4 parts:
      -   * channel~content_language~feed_label~offer_id
      +   * `channel~content_language~feed_label~offer_id`
          * example for product name is
      -   * "accounts/123/productInputs/online~en~US~sku123"
      +   * `accounts/123/productInputs/online~en~US~sku123`.
          * 
      * * @@ -49,11 +49,11 @@ public interface DeleteProductInputRequestOrBuilder * *
          * Required. The name of the product input resource to delete.
      -   * Format: accounts/{account}/productInputs/{product}
      +   * Format: `accounts/{account}/productInputs/{product}`
          * where the last section `product` consists of 4 parts:
      -   * channel~content_language~feed_label~offer_id
      +   * `channel~content_language~feed_label~offer_id`
          * example for product name is
      -   * "accounts/123/productInputs/online~en~US~sku123"
      +   * `accounts/123/productInputs/online~en~US~sku123`.
          * 
      * * @@ -70,7 +70,8 @@ public interface DeleteProductInputRequestOrBuilder *
          * Required. The primary or supplemental data source from which the product
          * input should be deleted. Format:
      -   * `accounts/{account}/dataSources/{datasource}`.
      +   * `accounts/{account}/dataSources/{datasource}`. For example,
      +   * `accounts/123456/dataSources/104628`.
          * 
      * * string data_source = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -85,7 +86,8 @@ public interface DeleteProductInputRequestOrBuilder *
          * Required. The primary or supplemental data source from which the product
          * input should be deleted. Format:
      -   * `accounts/{account}/dataSources/{datasource}`.
      +   * `accounts/{account}/dataSources/{datasource}`. For example,
      +   * `accounts/123456/dataSources/104628`.
          * 
      * * string data_source = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/InsertProductInputRequest.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/InsertProductInputRequest.java index 292b817f8eb5..f7366ad4512d 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/InsertProductInputRequest.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/InsertProductInputRequest.java @@ -76,7 +76,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
          * Required. The account where this product will be inserted.
      -   * Format: accounts/{account}
      +   * Format: `accounts/{account}`
          * 
      * * @@ -103,7 +103,7 @@ public java.lang.String getParent() { * *
          * Required. The account where this product will be inserted.
      -   * Format: accounts/{account}
      +   * Format: `accounts/{account}`
          * 
      * * @@ -196,11 +196,14 @@ public com.google.shopping.merchant.products.v1beta.ProductInput getProductInput *
          * Required. The primary or supplemental product data source name. If the
          * product already exists and data source provided is different, then the
      -   * product will be moved to a new data source.
      +   * product will be moved to a new data source. For more information, see
      +   * [Overview of Data sources
      +   * sub-API](/merchant/api/guides/data-sources/overview).
          *
          * Only API data sources are supported.
          *
      -   * Format: `accounts/{account}/dataSources/{datasource}`.
      +   * Format: `accounts/{account}/dataSources/{datasource}`. For example,
      +   * `accounts/123456/dataSources/104628`.
          * 
      * * string data_source = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -226,11 +229,14 @@ public java.lang.String getDataSource() { *
          * Required. The primary or supplemental product data source name. If the
          * product already exists and data source provided is different, then the
      -   * product will be moved to a new data source.
      +   * product will be moved to a new data source. For more information, see
      +   * [Overview of Data sources
      +   * sub-API](/merchant/api/guides/data-sources/overview).
          *
          * Only API data sources are supported.
          *
      -   * Format: `accounts/{account}/dataSources/{datasource}`.
      +   * Format: `accounts/{account}/dataSources/{datasource}`. For example,
      +   * `accounts/123456/dataSources/104628`.
          * 
      * * string data_source = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -678,7 +684,7 @@ public Builder mergeFrom( * *
            * Required. The account where this product will be inserted.
      -     * Format: accounts/{account}
      +     * Format: `accounts/{account}`
            * 
      * * @@ -704,7 +710,7 @@ public java.lang.String getParent() { * *
            * Required. The account where this product will be inserted.
      -     * Format: accounts/{account}
      +     * Format: `accounts/{account}`
            * 
      * * @@ -730,7 +736,7 @@ public com.google.protobuf.ByteString getParentBytes() { * *
            * Required. The account where this product will be inserted.
      -     * Format: accounts/{account}
      +     * Format: `accounts/{account}`
            * 
      * * @@ -755,7 +761,7 @@ public Builder setParent(java.lang.String value) { * *
            * Required. The account where this product will be inserted.
      -     * Format: accounts/{account}
      +     * Format: `accounts/{account}`
            * 
      * * @@ -776,7 +782,7 @@ public Builder clearParent() { * *
            * Required. The account where this product will be inserted.
      -     * Format: accounts/{account}
      +     * Format: `accounts/{account}`
            * 
      * * @@ -1023,11 +1029,14 @@ public Builder clearProductInput() { *
            * Required. The primary or supplemental product data source name. If the
            * product already exists and data source provided is different, then the
      -     * product will be moved to a new data source.
      +     * product will be moved to a new data source. For more information, see
      +     * [Overview of Data sources
      +     * sub-API](/merchant/api/guides/data-sources/overview).
            *
            * Only API data sources are supported.
            *
      -     * Format: `accounts/{account}/dataSources/{datasource}`.
      +     * Format: `accounts/{account}/dataSources/{datasource}`. For example,
      +     * `accounts/123456/dataSources/104628`.
            * 
      * * string data_source = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1052,11 +1061,14 @@ public java.lang.String getDataSource() { *
            * Required. The primary or supplemental product data source name. If the
            * product already exists and data source provided is different, then the
      -     * product will be moved to a new data source.
      +     * product will be moved to a new data source. For more information, see
      +     * [Overview of Data sources
      +     * sub-API](/merchant/api/guides/data-sources/overview).
            *
            * Only API data sources are supported.
            *
      -     * Format: `accounts/{account}/dataSources/{datasource}`.
      +     * Format: `accounts/{account}/dataSources/{datasource}`. For example,
      +     * `accounts/123456/dataSources/104628`.
            * 
      * * string data_source = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1081,11 +1093,14 @@ public com.google.protobuf.ByteString getDataSourceBytes() { *
            * Required. The primary or supplemental product data source name. If the
            * product already exists and data source provided is different, then the
      -     * product will be moved to a new data source.
      +     * product will be moved to a new data source. For more information, see
      +     * [Overview of Data sources
      +     * sub-API](/merchant/api/guides/data-sources/overview).
            *
            * Only API data sources are supported.
            *
      -     * Format: `accounts/{account}/dataSources/{datasource}`.
      +     * Format: `accounts/{account}/dataSources/{datasource}`. For example,
      +     * `accounts/123456/dataSources/104628`.
            * 
      * * string data_source = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1109,11 +1124,14 @@ public Builder setDataSource(java.lang.String value) { *
            * Required. The primary or supplemental product data source name. If the
            * product already exists and data source provided is different, then the
      -     * product will be moved to a new data source.
      +     * product will be moved to a new data source. For more information, see
      +     * [Overview of Data sources
      +     * sub-API](/merchant/api/guides/data-sources/overview).
            *
            * Only API data sources are supported.
            *
      -     * Format: `accounts/{account}/dataSources/{datasource}`.
      +     * Format: `accounts/{account}/dataSources/{datasource}`. For example,
      +     * `accounts/123456/dataSources/104628`.
            * 
      * * string data_source = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1133,11 +1151,14 @@ public Builder clearDataSource() { *
            * Required. The primary or supplemental product data source name. If the
            * product already exists and data source provided is different, then the
      -     * product will be moved to a new data source.
      +     * product will be moved to a new data source. For more information, see
      +     * [Overview of Data sources
      +     * sub-API](/merchant/api/guides/data-sources/overview).
            *
            * Only API data sources are supported.
            *
      -     * Format: `accounts/{account}/dataSources/{datasource}`.
      +     * Format: `accounts/{account}/dataSources/{datasource}`. For example,
      +     * `accounts/123456/dataSources/104628`.
            * 
      * * string data_source = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/InsertProductInputRequestOrBuilder.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/InsertProductInputRequestOrBuilder.java index 9254488f8855..e449da9dd052 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/InsertProductInputRequestOrBuilder.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/InsertProductInputRequestOrBuilder.java @@ -29,7 +29,7 @@ public interface InsertProductInputRequestOrBuilder * *
          * Required. The account where this product will be inserted.
      -   * Format: accounts/{account}
      +   * Format: `accounts/{account}`
          * 
      * * @@ -45,7 +45,7 @@ public interface InsertProductInputRequestOrBuilder * *
          * Required. The account where this product will be inserted.
      -   * Format: accounts/{account}
      +   * Format: `accounts/{account}`
          * 
      * * @@ -105,11 +105,14 @@ public interface InsertProductInputRequestOrBuilder *
          * Required. The primary or supplemental product data source name. If the
          * product already exists and data source provided is different, then the
      -   * product will be moved to a new data source.
      +   * product will be moved to a new data source. For more information, see
      +   * [Overview of Data sources
      +   * sub-API](/merchant/api/guides/data-sources/overview).
          *
          * Only API data sources are supported.
          *
      -   * Format: `accounts/{account}/dataSources/{datasource}`.
      +   * Format: `accounts/{account}/dataSources/{datasource}`. For example,
      +   * `accounts/123456/dataSources/104628`.
          * 
      * * string data_source = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -124,11 +127,14 @@ public interface InsertProductInputRequestOrBuilder *
          * Required. The primary or supplemental product data source name. If the
          * product already exists and data source provided is different, then the
      -   * product will be moved to a new data source.
      +   * product will be moved to a new data source. For more information, see
      +   * [Overview of Data sources
      +   * sub-API](/merchant/api/guides/data-sources/overview).
          *
          * Only API data sources are supported.
          *
      -   * Format: `accounts/{account}/dataSources/{datasource}`.
      +   * Format: `accounts/{account}/dataSources/{datasource}`. For example,
      +   * `accounts/123456/dataSources/104628`.
          * 
      * * string data_source = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ListProductsRequest.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ListProductsRequest.java index e581e4dd42b4..39fc6879d4bb 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ListProductsRequest.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ListProductsRequest.java @@ -133,7 +133,7 @@ public com.google.protobuf.ByteString getParentBytes() { *
          * The maximum number of products to return. The service may return fewer than
          * this value.
      -   * The maximum value is 250; values above 250 will be coerced to 250.
      +   * The maximum value is 1000; values above 1000 will be coerced to 1000.
          * If unspecified, the maximum number of products will be returned.
          * 
      * @@ -735,7 +735,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { *
            * The maximum number of products to return. The service may return fewer than
            * this value.
      -     * The maximum value is 250; values above 250 will be coerced to 250.
      +     * The maximum value is 1000; values above 1000 will be coerced to 1000.
            * If unspecified, the maximum number of products will be returned.
            * 
      * @@ -754,7 +754,7 @@ public int getPageSize() { *
            * The maximum number of products to return. The service may return fewer than
            * this value.
      -     * The maximum value is 250; values above 250 will be coerced to 250.
      +     * The maximum value is 1000; values above 1000 will be coerced to 1000.
            * If unspecified, the maximum number of products will be returned.
            * 
      * @@ -777,7 +777,7 @@ public Builder setPageSize(int value) { *
            * The maximum number of products to return. The service may return fewer than
            * this value.
      -     * The maximum value is 250; values above 250 will be coerced to 250.
      +     * The maximum value is 1000; values above 1000 will be coerced to 1000.
            * If unspecified, the maximum number of products will be returned.
            * 
      * diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ListProductsRequestOrBuilder.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ListProductsRequestOrBuilder.java index 26a036227ab8..4490e0e7f7cc 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ListProductsRequestOrBuilder.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ListProductsRequestOrBuilder.java @@ -62,7 +62,7 @@ public interface ListProductsRequestOrBuilder *
          * The maximum number of products to return. The service may return fewer than
          * this value.
      -   * The maximum value is 250; values above 250 will be coerced to 250.
      +   * The maximum value is 1000; values above 1000 will be coerced to 1000.
          * If unspecified, the maximum number of products will be returned.
          * 
      * diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/LoyaltyProgram.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/LoyaltyProgram.java index e92418909e3d..84a8381e7027 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/LoyaltyProgram.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/LoyaltyProgram.java @@ -77,10 +77,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
          * The label of the loyalty program. This is an internal label that uniquely
      -   * identifies the relationship between a merchant entity and a loyalty
      +   * identifies the relationship between a business entity and a loyalty
          * program entity. The label must be provided so that the system can associate
      -   * the assets below (for example, price and points) with a merchant. The
      -   * corresponding program must be linked to the merchant account.
      +   * the assets below (for example, price and points) with a business. The
      +   * corresponding program must be linked to the Merchant Center account.
          * 
      * * optional string program_label = 1; @@ -97,10 +97,10 @@ public boolean hasProgramLabel() { * *
          * The label of the loyalty program. This is an internal label that uniquely
      -   * identifies the relationship between a merchant entity and a loyalty
      +   * identifies the relationship between a business entity and a loyalty
          * program entity. The label must be provided so that the system can associate
      -   * the assets below (for example, price and points) with a merchant. The
      -   * corresponding program must be linked to the merchant account.
      +   * the assets below (for example, price and points) with a business. The
      +   * corresponding program must be linked to the Merchant Center account.
          * 
      * * optional string program_label = 1; @@ -125,10 +125,10 @@ public java.lang.String getProgramLabel() { * *
          * The label of the loyalty program. This is an internal label that uniquely
      -   * identifies the relationship between a merchant entity and a loyalty
      +   * identifies the relationship between a business entity and a loyalty
          * program entity. The label must be provided so that the system can associate
      -   * the assets below (for example, price and points) with a merchant. The
      -   * corresponding program must be linked to the merchant account.
      +   * the assets below (for example, price and points) with a business. The
      +   * corresponding program must be linked to the Merchant Center account.
          * 
      * * optional string program_label = 1; @@ -1062,10 +1062,10 @@ public Builder mergeFrom( * *
            * The label of the loyalty program. This is an internal label that uniquely
      -     * identifies the relationship between a merchant entity and a loyalty
      +     * identifies the relationship between a business entity and a loyalty
            * program entity. The label must be provided so that the system can associate
      -     * the assets below (for example, price and points) with a merchant. The
      -     * corresponding program must be linked to the merchant account.
      +     * the assets below (for example, price and points) with a business. The
      +     * corresponding program must be linked to the Merchant Center account.
            * 
      * * optional string program_label = 1; @@ -1081,10 +1081,10 @@ public boolean hasProgramLabel() { * *
            * The label of the loyalty program. This is an internal label that uniquely
      -     * identifies the relationship between a merchant entity and a loyalty
      +     * identifies the relationship between a business entity and a loyalty
            * program entity. The label must be provided so that the system can associate
      -     * the assets below (for example, price and points) with a merchant. The
      -     * corresponding program must be linked to the merchant account.
      +     * the assets below (for example, price and points) with a business. The
      +     * corresponding program must be linked to the Merchant Center account.
            * 
      * * optional string program_label = 1; @@ -1108,10 +1108,10 @@ public java.lang.String getProgramLabel() { * *
            * The label of the loyalty program. This is an internal label that uniquely
      -     * identifies the relationship between a merchant entity and a loyalty
      +     * identifies the relationship between a business entity and a loyalty
            * program entity. The label must be provided so that the system can associate
      -     * the assets below (for example, price and points) with a merchant. The
      -     * corresponding program must be linked to the merchant account.
      +     * the assets below (for example, price and points) with a business. The
      +     * corresponding program must be linked to the Merchant Center account.
            * 
      * * optional string program_label = 1; @@ -1135,10 +1135,10 @@ public com.google.protobuf.ByteString getProgramLabelBytes() { * *
            * The label of the loyalty program. This is an internal label that uniquely
      -     * identifies the relationship between a merchant entity and a loyalty
      +     * identifies the relationship between a business entity and a loyalty
            * program entity. The label must be provided so that the system can associate
      -     * the assets below (for example, price and points) with a merchant. The
      -     * corresponding program must be linked to the merchant account.
      +     * the assets below (for example, price and points) with a business. The
      +     * corresponding program must be linked to the Merchant Center account.
            * 
      * * optional string program_label = 1; @@ -1161,10 +1161,10 @@ public Builder setProgramLabel(java.lang.String value) { * *
            * The label of the loyalty program. This is an internal label that uniquely
      -     * identifies the relationship between a merchant entity and a loyalty
      +     * identifies the relationship between a business entity and a loyalty
            * program entity. The label must be provided so that the system can associate
      -     * the assets below (for example, price and points) with a merchant. The
      -     * corresponding program must be linked to the merchant account.
      +     * the assets below (for example, price and points) with a business. The
      +     * corresponding program must be linked to the Merchant Center account.
            * 
      * * optional string program_label = 1; @@ -1183,10 +1183,10 @@ public Builder clearProgramLabel() { * *
            * The label of the loyalty program. This is an internal label that uniquely
      -     * identifies the relationship between a merchant entity and a loyalty
      +     * identifies the relationship between a business entity and a loyalty
            * program entity. The label must be provided so that the system can associate
      -     * the assets below (for example, price and points) with a merchant. The
      -     * corresponding program must be linked to the merchant account.
      +     * the assets below (for example, price and points) with a business. The
      +     * corresponding program must be linked to the Merchant Center account.
            * 
      * * optional string program_label = 1; diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/LoyaltyProgramOrBuilder.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/LoyaltyProgramOrBuilder.java index 1b3fb4e4bb25..40062612f504 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/LoyaltyProgramOrBuilder.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/LoyaltyProgramOrBuilder.java @@ -29,10 +29,10 @@ public interface LoyaltyProgramOrBuilder * *
          * The label of the loyalty program. This is an internal label that uniquely
      -   * identifies the relationship between a merchant entity and a loyalty
      +   * identifies the relationship between a business entity and a loyalty
          * program entity. The label must be provided so that the system can associate
      -   * the assets below (for example, price and points) with a merchant. The
      -   * corresponding program must be linked to the merchant account.
      +   * the assets below (for example, price and points) with a business. The
      +   * corresponding program must be linked to the Merchant Center account.
          * 
      * * optional string program_label = 1; @@ -46,10 +46,10 @@ public interface LoyaltyProgramOrBuilder * *
          * The label of the loyalty program. This is an internal label that uniquely
      -   * identifies the relationship between a merchant entity and a loyalty
      +   * identifies the relationship between a business entity and a loyalty
          * program entity. The label must be provided so that the system can associate
      -   * the assets below (for example, price and points) with a merchant. The
      -   * corresponding program must be linked to the merchant account.
      +   * the assets below (for example, price and points) with a business. The
      +   * corresponding program must be linked to the Merchant Center account.
          * 
      * * optional string program_label = 1; @@ -63,10 +63,10 @@ public interface LoyaltyProgramOrBuilder * *
          * The label of the loyalty program. This is an internal label that uniquely
      -   * identifies the relationship between a merchant entity and a loyalty
      +   * identifies the relationship between a business entity and a loyalty
          * program entity. The label must be provided so that the system can associate
      -   * the assets below (for example, price and points) with a merchant. The
      -   * corresponding program must be linked to the merchant account.
      +   * the assets below (for example, price and points) with a business. The
      +   * corresponding program must be linked to the Merchant Center account.
          * 
      * * optional string program_label = 1; diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/Product.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/Product.java index 4dfaad0189ac..cac0e4b7b2fa 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/Product.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/Product.java @@ -320,7 +320,11 @@ public com.google.protobuf.ByteString getContentLanguageBytes() { * * *
      -   * Output only. The feed label for the product.
      +   * Output only. The feed label lets you categorize and identify your products.
      +   * The maximum allowed characters is 20 and the supported characters are`A-Z`,
      +   * `0-9`, hyphen and underscore. The feed label must not include any spaces.
      +   * For more information, see [Using feed
      +   * labels](//support.google.com/merchants/answer/14994087)
          * 
      * * string feed_label = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -344,7 +348,11 @@ public java.lang.String getFeedLabel() { * * *
      -   * Output only. The feed label for the product.
      +   * Output only. The feed label lets you categorize and identify your products.
      +   * The maximum allowed characters is 20 and the supported characters are`A-Z`,
      +   * `0-9`, hyphen and underscore. The feed label must not include any spaces.
      +   * For more information, see [Using feed
      +   * labels](//support.google.com/merchants/answer/14994087)
          * 
      * * string feed_label = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1973,7 +1981,11 @@ public Builder setContentLanguageBytes(com.google.protobuf.ByteString value) { * * *
      -     * Output only. The feed label for the product.
      +     * Output only. The feed label lets you categorize and identify your products.
      +     * The maximum allowed characters is 20 and the supported characters are`A-Z`,
      +     * `0-9`, hyphen and underscore. The feed label must not include any spaces.
      +     * For more information, see [Using feed
      +     * labels](//support.google.com/merchants/answer/14994087)
            * 
      * * string feed_label = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1996,7 +2008,11 @@ public java.lang.String getFeedLabel() { * * *
      -     * Output only. The feed label for the product.
      +     * Output only. The feed label lets you categorize and identify your products.
      +     * The maximum allowed characters is 20 and the supported characters are`A-Z`,
      +     * `0-9`, hyphen and underscore. The feed label must not include any spaces.
      +     * For more information, see [Using feed
      +     * labels](//support.google.com/merchants/answer/14994087)
            * 
      * * string feed_label = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2019,7 +2035,11 @@ public com.google.protobuf.ByteString getFeedLabelBytes() { * * *
      -     * Output only. The feed label for the product.
      +     * Output only. The feed label lets you categorize and identify your products.
      +     * The maximum allowed characters is 20 and the supported characters are`A-Z`,
      +     * `0-9`, hyphen and underscore. The feed label must not include any spaces.
      +     * For more information, see [Using feed
      +     * labels](//support.google.com/merchants/answer/14994087)
            * 
      * * string feed_label = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2041,7 +2061,11 @@ public Builder setFeedLabel(java.lang.String value) { * * *
      -     * Output only. The feed label for the product.
      +     * Output only. The feed label lets you categorize and identify your products.
      +     * The maximum allowed characters is 20 and the supported characters are`A-Z`,
      +     * `0-9`, hyphen and underscore. The feed label must not include any spaces.
      +     * For more information, see [Using feed
      +     * labels](//support.google.com/merchants/answer/14994087)
            * 
      * * string feed_label = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2059,7 +2083,11 @@ public Builder clearFeedLabel() { * * *
      -     * Output only. The feed label for the product.
      +     * Output only. The feed label lets you categorize and identify your products.
      +     * The maximum allowed characters is 20 and the supported characters are`A-Z`,
      +     * `0-9`, hyphen and underscore. The feed label must not include any spaces.
      +     * For more information, see [Using feed
      +     * labels](//support.google.com/merchants/answer/14994087)
            * 
      * * string feed_label = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductInput.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductInput.java index 5c9614430222..4f6e4203d034 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductInput.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductInput.java @@ -27,7 +27,8 @@ * processed product that you see in Merchant Center, in Shopping ads, or * across Google surfaces. Product inputs, rules and supplemental data source * data are combined to create the processed - * [Product][google.shopping.merchant.products.v1beta.Product]. + * [Product][google.shopping.merchant.products.v1beta.Product]. For more + * information, see [Manage products](/merchant/api/guides/products/overview). * * Required product input attributes to pass data validation checks are * primarily defined in the [Products Data @@ -42,8 +43,12 @@ * minutes before the processed product can be retrieved. * * All fields in the product input and its sub-messages match the English name - * of their corresponding attribute in the vertical spec with [some - * exceptions](https://support.google.com/merchants/answer/7052112). + * of their corresponding attribute in the [Products Data + * Specification](https://support.google.com/merchants/answer/188494) with + * [some exceptions](https://support.google.com/merchants/answer/7052112). + * The following reference documentation lists the field names in the + * **camelCase** casing style while the Products Data Specification lists the + * names in the **snake_case** casing style. * * * Protobuf type {@code google.shopping.merchant.products.v1beta.ProductInput} @@ -101,11 +106,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
          * Identifier. The name of the product input.
      -   * Format: accounts/{account}/productInputs/{productinput}
      +   * Format: `accounts/{account}/productInputs/{productinput}`
          * where the last section `productinput` consists of 4 parts:
      -   * channel~content_language~feed_label~offer_id
      +   * `channel~content_language~feed_label~offer_id`
          * example for product input name is
      -   * "accounts/123/productInputs/online~en~US~sku123"
      +   * `accounts/123/productInputs/online~en~US~sku123`
          * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -130,11 +135,11 @@ public java.lang.String getName() { * *
          * Identifier. The name of the product input.
      -   * Format: accounts/{account}/productInputs/{productinput}
      +   * Format: `accounts/{account}/productInputs/{productinput}`
          * where the last section `productinput` consists of 4 parts:
      -   * channel~content_language~feed_label~offer_id
      +   * `channel~content_language~feed_label~offer_id`
          * example for product input name is
      -   * "accounts/123/productInputs/online~en~US~sku123"
      +   * `accounts/123/productInputs/online~en~US~sku123`
          * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -164,8 +169,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
          * Output only. The name of the processed product.
      -   * Format:
      -   * `"{product.name=accounts/{account}/products/{product}}"`
      +   * Format: `accounts/{account}/products/{product}`
          * 
      * * string product = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -190,8 +194,7 @@ public java.lang.String getProduct() { * *
          * Output only. The name of the processed product.
      -   * Format:
      -   * `"{product.name=accounts/{account}/products/{product}}"`
      +   * Format: `accounts/{account}/products/{product}`
          * 
      * * string product = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -393,9 +396,11 @@ public com.google.protobuf.ByteString getContentLanguageBytes() { * * *
      -   * Required. Immutable. The [feed
      -   * label](https://developers.google.com/shopping-content/guides/products/feed-labels)
      -   * for the product.
      +   * Required. Immutable. The label that lets you categorize and identify your
      +   * products. The maximum allowed characters are 20, and the supported
      +   * characters are `A-Z`, `0-9`, hyphen, and underscore. The feed label must
      +   * not include any spaces. For more information, see [Using feed
      +   * labels](//support.google.com/merchants/answer/14994087).
          * 
      * * @@ -421,9 +426,11 @@ public java.lang.String getFeedLabel() { * * *
      -   * Required. Immutable. The [feed
      -   * label](https://developers.google.com/shopping-content/guides/products/feed-labels)
      -   * for the product.
      +   * Required. Immutable. The label that lets you categorize and identify your
      +   * products. The maximum allowed characters are 20, and the supported
      +   * characters are `A-Z`, `0-9`, hyphen, and underscore. The feed label must
      +   * not include any spaces. For more information, see [Using feed
      +   * labels](//support.google.com/merchants/answer/14994087).
          * 
      * * @@ -452,9 +459,9 @@ public com.google.protobuf.ByteString getFeedLabelBytes() { * * *
      -   * Optional. Represents the existing version (freshness) of the product, which
      -   * can be used to preserve the right order when multiple updates are done at
      -   * the same time.
      +   * Optional. Immutable. Represents the existing version (freshness) of the
      +   * product, which can be used to preserve the right order when multiple
      +   * updates are done at the same time.
          *
          * If set, the insertion is prevented when version number is lower than
          * the current version number of the existing product. Re-insertion (for
      @@ -462,12 +469,16 @@ public com.google.protobuf.ByteString getFeedLabelBytes() {
          * `version_number`.
          *
          * Only supported for insertions into primary data sources.
      +   * Do not set this field for updates.
      +   * Do not set this field for insertions into supplemental data sources.
          *
          * If the operation is prevented, the aborted exception will be
          * thrown.
          * 
      * - * optional int64 version_number = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional int64 version_number = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * * * @return Whether the versionNumber field is set. */ @@ -480,9 +491,9 @@ public boolean hasVersionNumber() { * * *
      -   * Optional. Represents the existing version (freshness) of the product, which
      -   * can be used to preserve the right order when multiple updates are done at
      -   * the same time.
      +   * Optional. Immutable. Represents the existing version (freshness) of the
      +   * product, which can be used to preserve the right order when multiple
      +   * updates are done at the same time.
          *
          * If set, the insertion is prevented when version number is lower than
          * the current version number of the existing product. Re-insertion (for
      @@ -490,12 +501,16 @@ public boolean hasVersionNumber() {
          * `version_number`.
          *
          * Only supported for insertions into primary data sources.
      +   * Do not set this field for updates.
      +   * Do not set this field for insertions into supplemental data sources.
          *
          * If the operation is prevented, the aborted exception will be
          * thrown.
          * 
      * - * optional int64 version_number = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional int64 version_number = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * * * @return The versionNumber. */ @@ -577,7 +592,7 @@ public com.google.shopping.merchant.products.v1beta.AttributesOrBuilder getAttri * form (for example, * `{ "name": "size type", "value": "regular" }`). * This is useful for submitting attributes not explicitly exposed by the - * API, such as additional attributes used for Buy on Google. + * API. * Maximum allowed number of characters for each * custom attribute is 10240 (represents sum of characters for name and * value). Maximum 2500 custom attributes can be set per product, with total @@ -603,7 +618,7 @@ public java.util.List getCustomAttribu * form (for example, * `{ "name": "size type", "value": "regular" }`). * This is useful for submitting attributes not explicitly exposed by the - * API, such as additional attributes used for Buy on Google. + * API. * Maximum allowed number of characters for each * custom attribute is 10240 (represents sum of characters for name and * value). Maximum 2500 custom attributes can be set per product, with total @@ -630,7 +645,7 @@ public java.util.List getCustomAttribu * form (for example, * `{ "name": "size type", "value": "regular" }`). * This is useful for submitting attributes not explicitly exposed by the - * API, such as additional attributes used for Buy on Google. + * API. * Maximum allowed number of characters for each * custom attribute is 10240 (represents sum of characters for name and * value). Maximum 2500 custom attributes can be set per product, with total @@ -656,7 +671,7 @@ public int getCustomAttributesCount() { * form (for example, * `{ "name": "size type", "value": "regular" }`). * This is useful for submitting attributes not explicitly exposed by the - * API, such as additional attributes used for Buy on Google. + * API. * Maximum allowed number of characters for each * custom attribute is 10240 (represents sum of characters for name and * value). Maximum 2500 custom attributes can be set per product, with total @@ -682,7 +697,7 @@ public com.google.shopping.type.CustomAttribute getCustomAttributes(int index) { * form (for example, * `{ "name": "size type", "value": "regular" }`). * This is useful for submitting attributes not explicitly exposed by the - * API, such as additional attributes used for Buy on Google. + * API. * Maximum allowed number of characters for each * custom attribute is 10240 (represents sum of characters for name and * value). Maximum 2500 custom attributes can be set per product, with total @@ -954,7 +969,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * processed product that you see in Merchant Center, in Shopping ads, or * across Google surfaces. Product inputs, rules and supplemental data source * data are combined to create the processed - * [Product][google.shopping.merchant.products.v1beta.Product]. + * [Product][google.shopping.merchant.products.v1beta.Product]. For more + * information, see [Manage products](/merchant/api/guides/products/overview). * * Required product input attributes to pass data validation checks are * primarily defined in the [Products Data @@ -969,8 +985,12 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * minutes before the processed product can be retrieved. * * All fields in the product input and its sub-messages match the English name - * of their corresponding attribute in the vertical spec with [some - * exceptions](https://support.google.com/merchants/answer/7052112). + * of their corresponding attribute in the [Products Data + * Specification](https://support.google.com/merchants/answer/188494) with + * [some exceptions](https://support.google.com/merchants/answer/7052112). + * The following reference documentation lists the field names in the + * **camelCase** casing style while the Products Data Specification lists the + * names in the **snake_case** casing style. * * * Protobuf type {@code google.shopping.merchant.products.v1beta.ProductInput} @@ -1334,11 +1354,11 @@ public Builder mergeFrom( * *
            * Identifier. The name of the product input.
      -     * Format: accounts/{account}/productInputs/{productinput}
      +     * Format: `accounts/{account}/productInputs/{productinput}`
            * where the last section `productinput` consists of 4 parts:
      -     * channel~content_language~feed_label~offer_id
      +     * `channel~content_language~feed_label~offer_id`
            * example for product input name is
      -     * "accounts/123/productInputs/online~en~US~sku123"
      +     * `accounts/123/productInputs/online~en~US~sku123`
            * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1362,11 +1382,11 @@ public java.lang.String getName() { * *
            * Identifier. The name of the product input.
      -     * Format: accounts/{account}/productInputs/{productinput}
      +     * Format: `accounts/{account}/productInputs/{productinput}`
            * where the last section `productinput` consists of 4 parts:
      -     * channel~content_language~feed_label~offer_id
      +     * `channel~content_language~feed_label~offer_id`
            * example for product input name is
      -     * "accounts/123/productInputs/online~en~US~sku123"
      +     * `accounts/123/productInputs/online~en~US~sku123`
            * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1390,11 +1410,11 @@ public com.google.protobuf.ByteString getNameBytes() { * *
            * Identifier. The name of the product input.
      -     * Format: accounts/{account}/productInputs/{productinput}
      +     * Format: `accounts/{account}/productInputs/{productinput}`
            * where the last section `productinput` consists of 4 parts:
      -     * channel~content_language~feed_label~offer_id
      +     * `channel~content_language~feed_label~offer_id`
            * example for product input name is
      -     * "accounts/123/productInputs/online~en~US~sku123"
      +     * `accounts/123/productInputs/online~en~US~sku123`
            * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1417,11 +1437,11 @@ public Builder setName(java.lang.String value) { * *
            * Identifier. The name of the product input.
      -     * Format: accounts/{account}/productInputs/{productinput}
      +     * Format: `accounts/{account}/productInputs/{productinput}`
            * where the last section `productinput` consists of 4 parts:
      -     * channel~content_language~feed_label~offer_id
      +     * `channel~content_language~feed_label~offer_id`
            * example for product input name is
      -     * "accounts/123/productInputs/online~en~US~sku123"
      +     * `accounts/123/productInputs/online~en~US~sku123`
            * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1440,11 +1460,11 @@ public Builder clearName() { * *
            * Identifier. The name of the product input.
      -     * Format: accounts/{account}/productInputs/{productinput}
      +     * Format: `accounts/{account}/productInputs/{productinput}`
            * where the last section `productinput` consists of 4 parts:
      -     * channel~content_language~feed_label~offer_id
      +     * `channel~content_language~feed_label~offer_id`
            * example for product input name is
      -     * "accounts/123/productInputs/online~en~US~sku123"
      +     * `accounts/123/productInputs/online~en~US~sku123`
            * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1470,8 +1490,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * *
            * Output only. The name of the processed product.
      -     * Format:
      -     * `"{product.name=accounts/{account}/products/{product}}"`
      +     * Format: `accounts/{account}/products/{product}`
            * 
      * * string product = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1495,8 +1514,7 @@ public java.lang.String getProduct() { * *
            * Output only. The name of the processed product.
      -     * Format:
      -     * `"{product.name=accounts/{account}/products/{product}}"`
      +     * Format: `accounts/{account}/products/{product}`
            * 
      * * string product = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1520,8 +1538,7 @@ public com.google.protobuf.ByteString getProductBytes() { * *
            * Output only. The name of the processed product.
      -     * Format:
      -     * `"{product.name=accounts/{account}/products/{product}}"`
      +     * Format: `accounts/{account}/products/{product}`
            * 
      * * string product = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1544,8 +1561,7 @@ public Builder setProduct(java.lang.String value) { * *
            * Output only. The name of the processed product.
      -     * Format:
      -     * `"{product.name=accounts/{account}/products/{product}}"`
      +     * Format: `accounts/{account}/products/{product}`
            * 
      * * string product = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1564,8 +1580,7 @@ public Builder clearProduct() { * *
            * Output only. The name of the processed product.
      -     * Format:
      -     * `"{product.name=accounts/{account}/products/{product}}"`
      +     * Format: `accounts/{account}/products/{product}`
            * 
      * * string product = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1982,9 +1997,11 @@ public Builder setContentLanguageBytes(com.google.protobuf.ByteString value) { * * *
      -     * Required. Immutable. The [feed
      -     * label](https://developers.google.com/shopping-content/guides/products/feed-labels)
      -     * for the product.
      +     * Required. Immutable. The label that lets you categorize and identify your
      +     * products. The maximum allowed characters are 20, and the supported
      +     * characters are `A-Z`, `0-9`, hyphen, and underscore. The feed label must
      +     * not include any spaces. For more information, see [Using feed
      +     * labels](//support.google.com/merchants/answer/14994087).
            * 
      * * @@ -2009,9 +2026,11 @@ public java.lang.String getFeedLabel() { * * *
      -     * Required. Immutable. The [feed
      -     * label](https://developers.google.com/shopping-content/guides/products/feed-labels)
      -     * for the product.
      +     * Required. Immutable. The label that lets you categorize and identify your
      +     * products. The maximum allowed characters are 20, and the supported
      +     * characters are `A-Z`, `0-9`, hyphen, and underscore. The feed label must
      +     * not include any spaces. For more information, see [Using feed
      +     * labels](//support.google.com/merchants/answer/14994087).
            * 
      * * @@ -2036,9 +2055,11 @@ public com.google.protobuf.ByteString getFeedLabelBytes() { * * *
      -     * Required. Immutable. The [feed
      -     * label](https://developers.google.com/shopping-content/guides/products/feed-labels)
      -     * for the product.
      +     * Required. Immutable. The label that lets you categorize and identify your
      +     * products. The maximum allowed characters are 20, and the supported
      +     * characters are `A-Z`, `0-9`, hyphen, and underscore. The feed label must
      +     * not include any spaces. For more information, see [Using feed
      +     * labels](//support.google.com/merchants/answer/14994087).
            * 
      * * @@ -2062,9 +2083,11 @@ public Builder setFeedLabel(java.lang.String value) { * * *
      -     * Required. Immutable. The [feed
      -     * label](https://developers.google.com/shopping-content/guides/products/feed-labels)
      -     * for the product.
      +     * Required. Immutable. The label that lets you categorize and identify your
      +     * products. The maximum allowed characters are 20, and the supported
      +     * characters are `A-Z`, `0-9`, hyphen, and underscore. The feed label must
      +     * not include any spaces. For more information, see [Using feed
      +     * labels](//support.google.com/merchants/answer/14994087).
            * 
      * * @@ -2084,9 +2107,11 @@ public Builder clearFeedLabel() { * * *
      -     * Required. Immutable. The [feed
      -     * label](https://developers.google.com/shopping-content/guides/products/feed-labels)
      -     * for the product.
      +     * Required. Immutable. The label that lets you categorize and identify your
      +     * products. The maximum allowed characters are 20, and the supported
      +     * characters are `A-Z`, `0-9`, hyphen, and underscore. The feed label must
      +     * not include any spaces. For more information, see [Using feed
      +     * labels](//support.google.com/merchants/answer/14994087).
            * 
      * * @@ -2113,9 +2138,9 @@ public Builder setFeedLabelBytes(com.google.protobuf.ByteString value) { * * *
      -     * Optional. Represents the existing version (freshness) of the product, which
      -     * can be used to preserve the right order when multiple updates are done at
      -     * the same time.
      +     * Optional. Immutable. Represents the existing version (freshness) of the
      +     * product, which can be used to preserve the right order when multiple
      +     * updates are done at the same time.
            *
            * If set, the insertion is prevented when version number is lower than
            * the current version number of the existing product. Re-insertion (for
      @@ -2123,12 +2148,16 @@ public Builder setFeedLabelBytes(com.google.protobuf.ByteString value) {
            * `version_number`.
            *
            * Only supported for insertions into primary data sources.
      +     * Do not set this field for updates.
      +     * Do not set this field for insertions into supplemental data sources.
            *
            * If the operation is prevented, the aborted exception will be
            * thrown.
            * 
      * - * optional int64 version_number = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional int64 version_number = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * * * @return Whether the versionNumber field is set. */ @@ -2141,9 +2170,9 @@ public boolean hasVersionNumber() { * * *
      -     * Optional. Represents the existing version (freshness) of the product, which
      -     * can be used to preserve the right order when multiple updates are done at
      -     * the same time.
      +     * Optional. Immutable. Represents the existing version (freshness) of the
      +     * product, which can be used to preserve the right order when multiple
      +     * updates are done at the same time.
            *
            * If set, the insertion is prevented when version number is lower than
            * the current version number of the existing product. Re-insertion (for
      @@ -2151,12 +2180,16 @@ public boolean hasVersionNumber() {
            * `version_number`.
            *
            * Only supported for insertions into primary data sources.
      +     * Do not set this field for updates.
      +     * Do not set this field for insertions into supplemental data sources.
            *
            * If the operation is prevented, the aborted exception will be
            * thrown.
            * 
      * - * optional int64 version_number = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional int64 version_number = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * * * @return The versionNumber. */ @@ -2169,9 +2202,9 @@ public long getVersionNumber() { * * *
      -     * Optional. Represents the existing version (freshness) of the product, which
      -     * can be used to preserve the right order when multiple updates are done at
      -     * the same time.
      +     * Optional. Immutable. Represents the existing version (freshness) of the
      +     * product, which can be used to preserve the right order when multiple
      +     * updates are done at the same time.
            *
            * If set, the insertion is prevented when version number is lower than
            * the current version number of the existing product. Re-insertion (for
      @@ -2179,12 +2212,16 @@ public long getVersionNumber() {
            * `version_number`.
            *
            * Only supported for insertions into primary data sources.
      +     * Do not set this field for updates.
      +     * Do not set this field for insertions into supplemental data sources.
            *
            * If the operation is prevented, the aborted exception will be
            * thrown.
            * 
      * - * optional int64 version_number = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional int64 version_number = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * * * @param value The versionNumber to set. * @return This builder for chaining. @@ -2201,9 +2238,9 @@ public Builder setVersionNumber(long value) { * * *
      -     * Optional. Represents the existing version (freshness) of the product, which
      -     * can be used to preserve the right order when multiple updates are done at
      -     * the same time.
      +     * Optional. Immutable. Represents the existing version (freshness) of the
      +     * product, which can be used to preserve the right order when multiple
      +     * updates are done at the same time.
            *
            * If set, the insertion is prevented when version number is lower than
            * the current version number of the existing product. Re-insertion (for
      @@ -2211,12 +2248,16 @@ public Builder setVersionNumber(long value) {
            * `version_number`.
            *
            * Only supported for insertions into primary data sources.
      +     * Do not set this field for updates.
      +     * Do not set this field for insertions into supplemental data sources.
            *
            * If the operation is prevented, the aborted exception will be
            * thrown.
            * 
      * - * optional int64 version_number = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional int64 version_number = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * * * @return This builder for chaining. */ @@ -2468,7 +2509,7 @@ private void ensureCustomAttributesIsMutable() { * form (for example, * `{ "name": "size type", "value": "regular" }`). * This is useful for submitting attributes not explicitly exposed by the - * API, such as additional attributes used for Buy on Google. + * API. * Maximum allowed number of characters for each * custom attribute is 10240 (represents sum of characters for name and * value). Maximum 2500 custom attributes can be set per product, with total @@ -2497,7 +2538,7 @@ public java.util.List getCustomAttribu * form (for example, * `{ "name": "size type", "value": "regular" }`). * This is useful for submitting attributes not explicitly exposed by the - * API, such as additional attributes used for Buy on Google. + * API. * Maximum allowed number of characters for each * custom attribute is 10240 (represents sum of characters for name and * value). Maximum 2500 custom attributes can be set per product, with total @@ -2526,7 +2567,7 @@ public int getCustomAttributesCount() { * form (for example, * `{ "name": "size type", "value": "regular" }`). * This is useful for submitting attributes not explicitly exposed by the - * API, such as additional attributes used for Buy on Google. + * API. * Maximum allowed number of characters for each * custom attribute is 10240 (represents sum of characters for name and * value). Maximum 2500 custom attributes can be set per product, with total @@ -2555,7 +2596,7 @@ public com.google.shopping.type.CustomAttribute getCustomAttributes(int index) { * form (for example, * `{ "name": "size type", "value": "regular" }`). * This is useful for submitting attributes not explicitly exposed by the - * API, such as additional attributes used for Buy on Google. + * API. * Maximum allowed number of characters for each * custom attribute is 10240 (represents sum of characters for name and * value). Maximum 2500 custom attributes can be set per product, with total @@ -2590,7 +2631,7 @@ public Builder setCustomAttributes(int index, com.google.shopping.type.CustomAtt * form (for example, * `{ "name": "size type", "value": "regular" }`). * This is useful for submitting attributes not explicitly exposed by the - * API, such as additional attributes used for Buy on Google. + * API. * Maximum allowed number of characters for each * custom attribute is 10240 (represents sum of characters for name and * value). Maximum 2500 custom attributes can be set per product, with total @@ -2623,7 +2664,7 @@ public Builder setCustomAttributes( * form (for example, * `{ "name": "size type", "value": "regular" }`). * This is useful for submitting attributes not explicitly exposed by the - * API, such as additional attributes used for Buy on Google. + * API. * Maximum allowed number of characters for each * custom attribute is 10240 (represents sum of characters for name and * value). Maximum 2500 custom attributes can be set per product, with total @@ -2658,7 +2699,7 @@ public Builder addCustomAttributes(com.google.shopping.type.CustomAttribute valu * form (for example, * `{ "name": "size type", "value": "regular" }`). * This is useful for submitting attributes not explicitly exposed by the - * API, such as additional attributes used for Buy on Google. + * API. * Maximum allowed number of characters for each * custom attribute is 10240 (represents sum of characters for name and * value). Maximum 2500 custom attributes can be set per product, with total @@ -2693,7 +2734,7 @@ public Builder addCustomAttributes(int index, com.google.shopping.type.CustomAtt * form (for example, * `{ "name": "size type", "value": "regular" }`). * This is useful for submitting attributes not explicitly exposed by the - * API, such as additional attributes used for Buy on Google. + * API. * Maximum allowed number of characters for each * custom attribute is 10240 (represents sum of characters for name and * value). Maximum 2500 custom attributes can be set per product, with total @@ -2726,7 +2767,7 @@ public Builder addCustomAttributes( * form (for example, * `{ "name": "size type", "value": "regular" }`). * This is useful for submitting attributes not explicitly exposed by the - * API, such as additional attributes used for Buy on Google. + * API. * Maximum allowed number of characters for each * custom attribute is 10240 (represents sum of characters for name and * value). Maximum 2500 custom attributes can be set per product, with total @@ -2759,7 +2800,7 @@ public Builder addCustomAttributes( * form (for example, * `{ "name": "size type", "value": "regular" }`). * This is useful for submitting attributes not explicitly exposed by the - * API, such as additional attributes used for Buy on Google. + * API. * Maximum allowed number of characters for each * custom attribute is 10240 (represents sum of characters for name and * value). Maximum 2500 custom attributes can be set per product, with total @@ -2792,7 +2833,7 @@ public Builder addAllCustomAttributes( * form (for example, * `{ "name": "size type", "value": "regular" }`). * This is useful for submitting attributes not explicitly exposed by the - * API, such as additional attributes used for Buy on Google. + * API. * Maximum allowed number of characters for each * custom attribute is 10240 (represents sum of characters for name and * value). Maximum 2500 custom attributes can be set per product, with total @@ -2824,7 +2865,7 @@ public Builder clearCustomAttributes() { * form (for example, * `{ "name": "size type", "value": "regular" }`). * This is useful for submitting attributes not explicitly exposed by the - * API, such as additional attributes used for Buy on Google. + * API. * Maximum allowed number of characters for each * custom attribute is 10240 (represents sum of characters for name and * value). Maximum 2500 custom attributes can be set per product, with total @@ -2856,7 +2897,7 @@ public Builder removeCustomAttributes(int index) { * form (for example, * `{ "name": "size type", "value": "regular" }`). * This is useful for submitting attributes not explicitly exposed by the - * API, such as additional attributes used for Buy on Google. + * API. * Maximum allowed number of characters for each * custom attribute is 10240 (represents sum of characters for name and * value). Maximum 2500 custom attributes can be set per product, with total @@ -2881,7 +2922,7 @@ public com.google.shopping.type.CustomAttribute.Builder getCustomAttributesBuild * form (for example, * `{ "name": "size type", "value": "regular" }`). * This is useful for submitting attributes not explicitly exposed by the - * API, such as additional attributes used for Buy on Google. + * API. * Maximum allowed number of characters for each * custom attribute is 10240 (represents sum of characters for name and * value). Maximum 2500 custom attributes can be set per product, with total @@ -2911,7 +2952,7 @@ public com.google.shopping.type.CustomAttributeOrBuilder getCustomAttributesOrBu * form (for example, * `{ "name": "size type", "value": "regular" }`). * This is useful for submitting attributes not explicitly exposed by the - * API, such as additional attributes used for Buy on Google. + * API. * Maximum allowed number of characters for each * custom attribute is 10240 (represents sum of characters for name and * value). Maximum 2500 custom attributes can be set per product, with total @@ -2941,7 +2982,7 @@ public com.google.shopping.type.CustomAttributeOrBuilder getCustomAttributesOrBu * form (for example, * `{ "name": "size type", "value": "regular" }`). * This is useful for submitting attributes not explicitly exposed by the - * API, such as additional attributes used for Buy on Google. + * API. * Maximum allowed number of characters for each * custom attribute is 10240 (represents sum of characters for name and * value). Maximum 2500 custom attributes can be set per product, with total @@ -2967,7 +3008,7 @@ public com.google.shopping.type.CustomAttribute.Builder addCustomAttributesBuild * form (for example, * `{ "name": "size type", "value": "regular" }`). * This is useful for submitting attributes not explicitly exposed by the - * API, such as additional attributes used for Buy on Google. + * API. * Maximum allowed number of characters for each * custom attribute is 10240 (represents sum of characters for name and * value). Maximum 2500 custom attributes can be set per product, with total @@ -2993,7 +3034,7 @@ public com.google.shopping.type.CustomAttribute.Builder addCustomAttributesBuild * form (for example, * `{ "name": "size type", "value": "regular" }`). * This is useful for submitting attributes not explicitly exposed by the - * API, such as additional attributes used for Buy on Google. + * API. * Maximum allowed number of characters for each * custom attribute is 10240 (represents sum of characters for name and * value). Maximum 2500 custom attributes can be set per product, with total diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductInputOrBuilder.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductInputOrBuilder.java index 491348520ce3..c77293239872 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductInputOrBuilder.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductInputOrBuilder.java @@ -29,11 +29,11 @@ public interface ProductInputOrBuilder * *
          * Identifier. The name of the product input.
      -   * Format: accounts/{account}/productInputs/{productinput}
      +   * Format: `accounts/{account}/productInputs/{productinput}`
          * where the last section `productinput` consists of 4 parts:
      -   * channel~content_language~feed_label~offer_id
      +   * `channel~content_language~feed_label~offer_id`
          * example for product input name is
      -   * "accounts/123/productInputs/online~en~US~sku123"
      +   * `accounts/123/productInputs/online~en~US~sku123`
          * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -47,11 +47,11 @@ public interface ProductInputOrBuilder * *
          * Identifier. The name of the product input.
      -   * Format: accounts/{account}/productInputs/{productinput}
      +   * Format: `accounts/{account}/productInputs/{productinput}`
          * where the last section `productinput` consists of 4 parts:
      -   * channel~content_language~feed_label~offer_id
      +   * `channel~content_language~feed_label~offer_id`
          * example for product input name is
      -   * "accounts/123/productInputs/online~en~US~sku123"
      +   * `accounts/123/productInputs/online~en~US~sku123`
          * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -65,8 +65,7 @@ public interface ProductInputOrBuilder * *
          * Output only. The name of the processed product.
      -   * Format:
      -   * `"{product.name=accounts/{account}/products/{product}}"`
      +   * Format: `accounts/{account}/products/{product}`
          * 
      * * string product = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -80,8 +79,7 @@ public interface ProductInputOrBuilder * *
          * Output only. The name of the processed product.
      -   * Format:
      -   * `"{product.name=accounts/{account}/products/{product}}"`
      +   * Format: `accounts/{account}/products/{product}`
          * 
      * * string product = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -202,9 +200,11 @@ public interface ProductInputOrBuilder * * *
      -   * Required. Immutable. The [feed
      -   * label](https://developers.google.com/shopping-content/guides/products/feed-labels)
      -   * for the product.
      +   * Required. Immutable. The label that lets you categorize and identify your
      +   * products. The maximum allowed characters are 20, and the supported
      +   * characters are `A-Z`, `0-9`, hyphen, and underscore. The feed label must
      +   * not include any spaces. For more information, see [Using feed
      +   * labels](//support.google.com/merchants/answer/14994087).
          * 
      * * @@ -219,9 +219,11 @@ public interface ProductInputOrBuilder * * *
      -   * Required. Immutable. The [feed
      -   * label](https://developers.google.com/shopping-content/guides/products/feed-labels)
      -   * for the product.
      +   * Required. Immutable. The label that lets you categorize and identify your
      +   * products. The maximum allowed characters are 20, and the supported
      +   * characters are `A-Z`, `0-9`, hyphen, and underscore. The feed label must
      +   * not include any spaces. For more information, see [Using feed
      +   * labels](//support.google.com/merchants/answer/14994087).
          * 
      * * @@ -236,9 +238,9 @@ public interface ProductInputOrBuilder * * *
      -   * Optional. Represents the existing version (freshness) of the product, which
      -   * can be used to preserve the right order when multiple updates are done at
      -   * the same time.
      +   * Optional. Immutable. Represents the existing version (freshness) of the
      +   * product, which can be used to preserve the right order when multiple
      +   * updates are done at the same time.
          *
          * If set, the insertion is prevented when version number is lower than
          * the current version number of the existing product. Re-insertion (for
      @@ -246,12 +248,16 @@ public interface ProductInputOrBuilder
          * `version_number`.
          *
          * Only supported for insertions into primary data sources.
      +   * Do not set this field for updates.
      +   * Do not set this field for insertions into supplemental data sources.
          *
          * If the operation is prevented, the aborted exception will be
          * thrown.
          * 
      * - * optional int64 version_number = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional int64 version_number = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * * * @return Whether the versionNumber field is set. */ @@ -261,9 +267,9 @@ public interface ProductInputOrBuilder * * *
      -   * Optional. Represents the existing version (freshness) of the product, which
      -   * can be used to preserve the right order when multiple updates are done at
      -   * the same time.
      +   * Optional. Immutable. Represents the existing version (freshness) of the
      +   * product, which can be used to preserve the right order when multiple
      +   * updates are done at the same time.
          *
          * If set, the insertion is prevented when version number is lower than
          * the current version number of the existing product. Re-insertion (for
      @@ -271,12 +277,16 @@ public interface ProductInputOrBuilder
          * `version_number`.
          *
          * Only supported for insertions into primary data sources.
      +   * Do not set this field for updates.
      +   * Do not set this field for insertions into supplemental data sources.
          *
          * If the operation is prevented, the aborted exception will be
          * thrown.
          * 
      * - * optional int64 version_number = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional int64 version_number = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * * * @return The versionNumber. */ @@ -334,7 +344,7 @@ public interface ProductInputOrBuilder * form (for example, * `{ "name": "size type", "value": "regular" }`). * This is useful for submitting attributes not explicitly exposed by the - * API, such as additional attributes used for Buy on Google. + * API. * Maximum allowed number of characters for each * custom attribute is 10240 (represents sum of characters for name and * value). Maximum 2500 custom attributes can be set per product, with total @@ -357,7 +367,7 @@ public interface ProductInputOrBuilder * form (for example, * `{ "name": "size type", "value": "regular" }`). * This is useful for submitting attributes not explicitly exposed by the - * API, such as additional attributes used for Buy on Google. + * API. * Maximum allowed number of characters for each * custom attribute is 10240 (represents sum of characters for name and * value). Maximum 2500 custom attributes can be set per product, with total @@ -380,7 +390,7 @@ public interface ProductInputOrBuilder * form (for example, * `{ "name": "size type", "value": "regular" }`). * This is useful for submitting attributes not explicitly exposed by the - * API, such as additional attributes used for Buy on Google. + * API. * Maximum allowed number of characters for each * custom attribute is 10240 (represents sum of characters for name and * value). Maximum 2500 custom attributes can be set per product, with total @@ -403,7 +413,7 @@ public interface ProductInputOrBuilder * form (for example, * `{ "name": "size type", "value": "regular" }`). * This is useful for submitting attributes not explicitly exposed by the - * API, such as additional attributes used for Buy on Google. + * API. * Maximum allowed number of characters for each * custom attribute is 10240 (represents sum of characters for name and * value). Maximum 2500 custom attributes can be set per product, with total @@ -427,7 +437,7 @@ public interface ProductInputOrBuilder * form (for example, * `{ "name": "size type", "value": "regular" }`). * This is useful for submitting attributes not explicitly exposed by the - * API, such as additional attributes used for Buy on Google. + * API. * Maximum allowed number of characters for each * custom attribute is 10240 (represents sum of characters for name and * value). Maximum 2500 custom attributes can be set per product, with total diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductInputsProto.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductInputsProto.java index 9056a8b85ab7..082271c987c6 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductInputsProto.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductInputsProto.java @@ -61,7 +61,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/api/resource.proto\032\033google/protobuf/empty.proto\032" + " google/protobuf/field_mask.pro" + "to\032>google/shopping/merchant/products/v1beta/products_common.proto\032" - + " google/shopping/type/types.proto\"\227\004\n" + + " google/shopping/type/types.proto\"\232\004\n" + "\014ProductInput\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\024\n" + "\007product\030\002 \001(\tB\003\340A\003\022?\n" @@ -69,21 +69,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0162).google.shopping.type.Channel.ChannelEnumB\003\340A\005\022\030\n" + "\010offer_id\030\004 \001(\tB\006\340A\002\340A\005\022 \n" + "\020content_language\030\005 \001(\tB\006\340A\002\340A\005\022\032\n\n" - + "feed_label\030\006 \001(\tB\006\340A\002\340A\005\022 \n" - + "\016version_number\030\007 \001(\003B\003\340A\001H\000\210\001\001\022M\n\n" + + "feed_label\030\006 \001(\tB\006\340A\002\340A\005\022#\n" + + "\016version_number\030\007 \001(\003B\006\340A\001\340A\005H\000\210\001\001\022M\n\n" + "attributes\030\010" + " \001(\01324.google.shopping.merchant.products.v1beta.AttributesB\003\340A\001\022E\n" + "\021custom_attributes\030\t" + " \003(\0132%.google.shopping.type.CustomAttributeB\003\340A\001:z\352Aw\n" - + "\'merchantapi.google" - + "apis.com/ProductInput\022/accounts/{account}/productInputs/{productinput}*\r" + + "\'merchantapi.goo" + + "gleapis.com/ProductInput\022/accounts/{account}/productInputs/{productinput}*\r" + "productInputs2\014productInputB\021\n" + "\017_version_number\"\305\001\n" + "\031InsertProductInputRequest\022:\n" + "\006parent\030\001 \001(" + "\tB*\340A\002\372A$\022\"merchantapi.googleapis.com/Product\022R\n\r" - + "product_input\030\002 \001(\01326.google" - + ".shopping.merchant.products.v1beta.ProductInputB\003\340A\002\022\030\n" + + "product_input\030\002 \001(\01326.goo" + + "gle.shopping.merchant.products.v1beta.ProductInputB\003\340A\002\022\030\n" + "\013data_source\030\003 \001(\tB\003\340A\002\"\277\001\n" + "\031UpdateProductInputRequest\022R\n\r" + "product_input\030\001" @@ -96,25 +96,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\'merchantapi.googleapis.com/ProductInput\022\030\n" + "\013data_source\030\002 \001(\tB\003\340A\0022\205\006\n" + "\024ProductInputsService\022\343\001\n" - + "\022InsertProductInput\022C.google.shopping.merchant.products.v1bet" - + "a.InsertProductInputRequest\0326.google.shopping.merchant.products.v1beta.ProductIn" - + "put\"P\202\323\344\223\002J\"9/products/v1beta/{parent=accounts/*}/productInputs:insert:\r" + + "\022InsertProductInput\022C.google.shopping.merchant.products.v1" + + "beta.InsertProductInputRequest\0326.google.shopping.merchant.products.v1beta.Produc" + + "tInput\"P\202\323\344\223\002J\"9/products/v1beta/{parent=accounts/*}/productInputs:insert:\r" + "product_input\022\206\002\n" - + "\022UpdateProductInput\022C.google.shopping.merchant.products.v1beta.UpdatePr" - + "oductInputRequest\0326.google.shopping.merc" - + "hant.products.v1beta.ProductInput\"s\332A\031pr" - + "oduct_input,update_mask\202\323\344\223\002Q2@/products" - + "/v1beta/{product_input.name=accounts/*/productInputs/*}:\r" + + "\022UpdateProductInput\022C.google.shopping.merchant.products.v1beta.Updat" + + "eProductInputRequest\0326.google.shopping.m" + + "erchant.products.v1beta.ProductInput\"s\332A" + + "\031product_input,update_mask\202\323\344\223\002Q2@/produ" + + "cts/v1beta/{product_input.name=accounts/*/productInputs/*}:\r" + "product_input\022\264\001\n" - + "\022DeleteProductInput\022C.google.shopping.merchant" - + ".products.v1beta.DeleteProductInputReque" - + "st\032\026.google.protobuf.Empty\"A\332A\004name\202\323\344\223\002" - + "4*2/products/v1beta/{name=accounts/*/pro" - + "ductInputs/*}\032G\312A\032merchantapi.googleapis" - + ".com\322A\'https://www.googleapis.com/auth/contentB\224\001\n" - + ",com.google.shopping.merchant.products.v1betaB\022ProductInputsProtoP\001ZNc" - + "loud.google.com/go/shopping/merchant/products/apiv1beta/productspb;productspbb\006p" - + "roto3" + + "\022DeleteProductInput\022C.google.shopping.merch" + + "ant.products.v1beta.DeleteProductInputRe" + + "quest\032\026.google.protobuf.Empty\"A\332A\004name\202\323" + + "\344\223\0024*2/products/v1beta/{name=accounts/*/" + + "productInputs/*}\032G\312A\032merchantapi.googlea" + + "pis.com\322A\'https://www.googleapis.com/auth/contentB\224\001\n" + + ",com.google.shopping.merchant.products.v1betaB\022ProductInputsProtoP\001" + + "ZNcloud.google.com/go/shopping/merchant/products/apiv1beta/productspb;productspb" + + "b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductOrBuilder.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductOrBuilder.java index a6b2b7c17a1d..1672e4e28bd5 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductOrBuilder.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductOrBuilder.java @@ -164,7 +164,11 @@ public interface ProductOrBuilder * * *
      -   * Output only. The feed label for the product.
      +   * Output only. The feed label lets you categorize and identify your products.
      +   * The maximum allowed characters is 20 and the supported characters are`A-Z`,
      +   * `0-9`, hyphen and underscore. The feed label must not include any spaces.
      +   * For more information, see [Using feed
      +   * labels](//support.google.com/merchants/answer/14994087)
          * 
      * * string feed_label = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -177,7 +181,11 @@ public interface ProductOrBuilder * * *
      -   * Output only. The feed label for the product.
      +   * Output only. The feed label lets you categorize and identify your products.
      +   * The maximum allowed characters is 20 and the supported characters are`A-Z`,
      +   * `0-9`, hyphen and underscore. The feed label must not include any spaces.
      +   * For more information, see [Using feed
      +   * labels](//support.google.com/merchants/answer/14994087)
          * 
      * * string feed_label = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductStatus.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductStatus.java index e82b6fa417f3..5da53ae1ffd3 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductStatus.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductStatus.java @@ -1868,7 +1868,7 @@ public interface ItemLevelIssueOrBuilder * * *
      -     * Whether the issue can be resolved by the merchant.
      +     * Whether the issue can be resolved by the business.
            * 
      * * string resolution = 3; @@ -1881,7 +1881,7 @@ public interface ItemLevelIssueOrBuilder * * *
      -     * Whether the issue can be resolved by the merchant.
      +     * Whether the issue can be resolved by the business.
            * 
      * * string resolution = 3; @@ -2433,7 +2433,7 @@ public int getSeverityValue() { * * *
      -     * Whether the issue can be resolved by the merchant.
      +     * Whether the issue can be resolved by the business.
            * 
      * * string resolution = 3; @@ -2457,7 +2457,7 @@ public java.lang.String getResolution() { * * *
      -     * Whether the issue can be resolved by the merchant.
      +     * Whether the issue can be resolved by the business.
            * 
      * * string resolution = 3; @@ -3613,7 +3613,7 @@ public Builder clearSeverity() { * * *
      -       * Whether the issue can be resolved by the merchant.
      +       * Whether the issue can be resolved by the business.
              * 
      * * string resolution = 3; @@ -3636,7 +3636,7 @@ public java.lang.String getResolution() { * * *
      -       * Whether the issue can be resolved by the merchant.
      +       * Whether the issue can be resolved by the business.
              * 
      * * string resolution = 3; @@ -3659,7 +3659,7 @@ public com.google.protobuf.ByteString getResolutionBytes() { * * *
      -       * Whether the issue can be resolved by the merchant.
      +       * Whether the issue can be resolved by the business.
              * 
      * * string resolution = 3; @@ -3681,7 +3681,7 @@ public Builder setResolution(java.lang.String value) { * * *
      -       * Whether the issue can be resolved by the merchant.
      +       * Whether the issue can be resolved by the business.
              * 
      * * string resolution = 3; @@ -3699,7 +3699,7 @@ public Builder clearResolution() { * * *
      -       * Whether the issue can be resolved by the merchant.
      +       * Whether the issue can be resolved by the business.
              * 
      * * string resolution = 3; diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductsCommonProto.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductsCommonProto.java index 1f18c8a96494..49142366b19f 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductsCommonProto.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductsCommonProto.java @@ -137,7 +137,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ">google/shopping/merchant/products/v1beta/products_common.proto\022(google.shoppin" + "g.merchant.products.v1beta\032\037google/api/f" + "ield_behavior.proto\032\037google/protobuf/timestamp.proto\032" - + " google/shopping/type/types.proto\032\032google/type/interval.proto\"\211(\n\n" + + " google/shopping/type/types.proto\032\032google/type/interval.proto\"\341(\n\n" + "Attributes\022\036\n" + "\021identifier_exists\030\004 \001(\010H\000\210\001\001\022\026\n" + "\tis_bundle\030\005 \001(\010H\001\210\001\001\022\022\n" @@ -161,13 +161,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tcondition\030\027 \001(\tH\r" + "\210\001\001\022\023\n" + "\006gender\030\030 \001(\tH\016\210\001\001\022$\n" - + "\027google_product_category\030\031 \001(\tH\017\210\001\001\022\014\n" - + "\004gtin\030\032 \003(\t\022\032\n\r" + + "\027google_product_category\030\031 \001(\tH\017\210\001\001\022\020\n" + + "\004gtin\030\032 \003(\tB\002\030\001\022\016\n" + + "\005gtins\030\214\001 \003(\t\022\032\n\r" + "item_group_id\030\033 \001(\tH\020\210\001\001\022\025\n" + "\010material\030\034 \001(\tH\021\210\001\001\022\020\n" + "\003mpn\030\035 \001(\tH\022\210\001\001\022\024\n" + "\007pattern\030\036 \001(\tH\023\210\001\001\022*\n" - + "\005price\030\037 \001(\0132\033.google.shopping.type.Price\022J\n" + + "\005price\030\037 \001(\0132\033.google.shopping.type.Price\022:\n" + + "\024maximum_retail_price\030\213\001 \001(\0132\033.google.shopping.type.Price\022J\n" + "\013installment\030 " + " \001(\01325.google.shopping.merchant.products.v1beta.Installment\022U\n" + "\021subscription_cost\030!" @@ -206,23 +208,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022transit_time_label\030/ \001(\tH\030\210\001\001\022\021\n" + "\004size\0300 \001(\tH\031\210\001\001\022\030\n" + "\013size_system\0301 \001(\tH\032\210\001\001\022\022\n\n" - + "size_types\0302 \003(\t\022<\n" - + "\005taxes\0303 \003(\0132-.google.shopping.merchant.products.v1beta.Tax\022\031\n" - + "\014tax_category\0304 \001(\tH\033\210\001\001\022$\n" + + "size_types\0302 \003(\t\022@\n" + + "\005taxes\0303" + + " \003(\0132-.google.shopping.merchant.products.v1beta.TaxB\002\030\001\022\035\n" + + "\014tax_category\0304 \001(\tB\002\030\001H\033\210\001\001\022$\n" + "\027energy_efficiency_class\0305 \001(\tH\034\210\001\001\022(\n" + "\033min_energy_efficiency_class\0306 \001(\tH\035\210\001\001\022(\n" + "\033max_energy_efficiency_class\0307 \001(\tH\036\210\001\001\022Z\n" - + "\024unit_pricing_measure\0308 \001(\0132<.g" - + "oogle.shopping.merchant.products.v1beta.UnitPricingMeasure\022c\n" - + "\031unit_pricing_base_measure\0309 \001(\0132@.google.shopping.merchant" - + ".products.v1beta.UnitPricingBaseMeasure\022\026\n" + + "\024unit_pricing_measure\0308" + + " \001(\0132<.google.shopping.merchant.products.v1beta.UnitPricingMeasure\022c\n" + + "\031unit_pricing_base_measure\0309 \001(\0132@.google.shopping." + + "merchant.products.v1beta.UnitPricingBaseMeasure\022\026\n" + "\tmultipack\030: \001(\003H\037\210\001\001\022\031\n" + "\014ads_grouping\030; \001(\tH \210\001\001\022\022\n\n" + "ads_labels\030< \003(\t\022\031\n" + "\014ads_redirect\030= \001(\tH!\210\001\001\0227\n" + "\022cost_of_goods_sold\030> \001(\0132\033.google.shopping.type.Price\022P\n" - + "\017product_details\030?" - + " \003(\01327.google.shopping.merchant.products.v1beta.ProductDetail\022\032\n" + + "\017product_details\030? \003(\01327.google.sho" + + "pping.merchant.products.v1beta.ProductDetail\022\032\n" + "\022product_highlights\030@ \003(\t\022\033\n" + "\016display_ads_id\030A \001(\tH\"\210\001\001\022\037\n" + "\027display_ads_similar_ids\030B \003(\t\022\036\n" @@ -246,18 +249,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005pause\030\r" + " \001(\tH0\210\001\001\022\035\n" + "\025lifestyle_image_links\030\016 \003(\t\022u\n" - + "\"cloud_export_additional_properties\030T \003(\0132I.google.shopping.merch" - + "ant.products.v1beta.CloudExportAdditionalProperties\022 \n" + + "\"cloud_export_additional_properties\030T \003(\0132I.google.shoppi" + + "ng.merchant.products.v1beta.CloudExportAdditionalProperties\022 \n" + "\022virtual_model_link\030\202\001 \001(\tH1\210\001\001\022O\n" - + "\016certifications\030{ \003(\01327.google.s" - + "hopping.merchant.products.v1beta.Certification\022`\n" - + "\020structured_title\030\204\001 \001(\0132@.goog" - + "le.shopping.merchant.products.v1beta.ProductStructuredTitleH2\210\001\001\022l\n" - + "\026structured_description\030\205\001 \001(\0132F.google.shopping.merc" - + "hant.products.v1beta.ProductStructuredDescriptionH3\210\001\001\022;\n" + + "\016certifications\030{ \003(\01327." + + "google.shopping.merchant.products.v1beta.Certification\022`\n" + + "\020structured_title\030\204\001 \001(" + + "\0132@.google.shopping.merchant.products.v1beta.ProductStructuredTitleH2\210\001\001\022l\n" + + "\026structured_description\030\205\001 \001(\0132F.google.shopp" + + "ing.merchant.products.v1beta.ProductStructuredDescriptionH3\210\001\001\022;\n" + "\026auto_pricing_min_price\030| \001(\0132\033.google.shopping.type.Price\022l\n" - + "\031sustainability_incentives\030\212\001 \003(\0132H.google" - + ".shopping.merchant.products.v1beta.ProductSustainabilityIncentiveB\024\n" + + "\031sustainability_incentives\030\212\001 \003(\0132" + + "H.google.shopping.merchant.products.v1beta.ProductSustainabilityIncentiveB\024\n" + "\022_identifier_existsB\014\n\n" + "_is_bundleB\010\n" + "\006_titleB\016\n" @@ -330,8 +333,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005value\030\001 \001(\001\022\014\n" + "\004unit\030\002 \001(\t\"\244\001\n" + "\020SubscriptionCost\022L\n" - + "\006period\030\001 \001(\016" - + "2<.google.shopping.merchant.products.v1beta.SubscriptionPeriod\022\025\n\r" + + "\006period\030\001" + + " \001(\0162<.google.shopping.merchant.products.v1beta.SubscriptionPeriod\022\025\n\r" + "period_length\030\002 \001(\003\022+\n" + "\006amount\030\003 \001(\0132\033.google.shopping.type.Price\"\273\001\n" + "\013Installment\022\016\n" @@ -414,30 +417,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004unit\030\002 \001(\tB\003\340A\002\"6\n\r" + "ProductWeight\022\022\n" + "\005value\030\001 \001(\001B\003\340A\002\022\021\n" - + "\004unit\030\002 \001(\tB\003\340A\002\"\367\007\n\r" + + "\004unit\030\002 \001(\tB\003\340A\002\"\367\007\n" + + "\r" + "ProductStatus\022g\n" - + "\024destination_statuses\030\003 \003(\0132I.g" - + "oogle.shopping.merchant.products.v1beta.ProductStatus.DestinationStatus\022a\n" - + "\021item_level_issues\030\004 \003(\0132F.google.shopping.mer" - + "chant.products.v1beta.ProductStatus.ItemLevelIssue\0221\n\r" + + "\024destination_statuses\030\003 \003(\0132I.google.shopping.merchant.products" + + ".v1beta.ProductStatus.DestinationStatus\022a\n" + + "\021item_level_issues\030\004 \003(\0132F.google.shop" + + "ping.merchant.products.v1beta.ProductStatus.ItemLevelIssue\0221\n\r" + "creation_date\030\005 \001(\0132\032.google.protobuf.Timestamp\0224\n" + "\020last_update_date\030\006 \001(\0132\032.google.protobuf.Timestamp\022:\n" + "\026google_expiration_date\030\007" + " \001(\0132\032.google.protobuf.Timestamp\032\301\001\n" + "\021DestinationStatus\022V\n" - + "\021reporting_context\030\001 \001(\0162;.google.shoppi" - + "ng.type.ReportingContext.ReportingContextEnum\022\032\n" + + "\021reporting_context\030\001 \001(\0162;.googl" + + "e.shopping.type.ReportingContext.ReportingContextEnum\022\032\n" + "\022approved_countries\030\002 \003(\t\022\031\n" + "\021pending_countries\030\003 \003(\t\022\035\n" + "\025disapproved_countries\030\004 \003(\t\032\260\003\n" + "\016ItemLevelIssue\022\014\n" + "\004code\030\001 \001(\t\022a\n" - + "\010severity\030\002 \001(\0162O.google.shopping" - + ".merchant.products.v1beta.ProductStatus.ItemLevelIssue.Severity\022\022\n\n" + + "\010severity\030\002 \001(\0162O.google." + + "shopping.merchant.products.v1beta.ProductStatus.ItemLevelIssue.Severity\022\022\n\n" + "resolution\030\003 \001(\t\022\021\n" + "\tattribute\030\004 \001(\t\022V\n" - + "\021reporting_context\030\005" - + " \001(\0162;.google.shopping.type.ReportingContext.ReportingContextEnum\022\023\n" + + "\021reporting_context\030\005 \001(\0162;.google.shopping.type" + + ".ReportingContext.ReportingContextEnum\022\023\n" + "\013description\030\006 \001(\t\022\016\n" + "\006detail\030\007 \001(\t\022\025\n\r" + "documentation\030\010 \001(\t\022\034\n" @@ -464,8 +468,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036ProductSustainabilityIncentive\022-\n" + "\006amount\030\002 \001(\0132\033.google.shopping.type.PriceH\000\022\024\n\n" + "percentage\030\003 \001(\001H\000\022`\n" - + "\004type\030\001 \001(\0162M.google.shopping.m" - + "erchant.products.v1beta.ProductSustainabilityIncentive.TypeH\001\210\001\001\"F\n" + + "\004type\030\001 \001(\0162M.google.sh" + + "opping.merchant.products.v1beta.ProductSustainabilityIncentive.TypeH\001\210\001\001\"F\n" + "\004Type\022\024\n" + "\020TYPE_UNSPECIFIED\020\000\022\021\n\r" + "EV_TAX_CREDIT\020\001\022\025\n" @@ -480,9 +484,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037SUBSCRIPTION_PERIOD_UNSPECIFIED\020\000\022\t\n" + "\005MONTH\020\001\022\010\n" + "\004YEAR\020\002B\225\001\n" - + ",com.google.shopping.merchant.products.v1betaB\023ProductsComm" - + "onProtoP\001ZNcloud.google.com/go/shopping/merchant/products/apiv1beta/productspb;p" - + "roductspbb\006proto3" + + ",com.google.shopping.merchant.products.v1betaB\023Prod" + + "uctsCommonProtoP\001ZNcloud.google.com/go/shopping/merchant/products/apiv1beta/prod" + + "uctspb;productspbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -520,11 +524,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Gender", "GoogleProductCategory", "Gtin", + "Gtins", "ItemGroupId", "Material", "Mpn", "Pattern", "Price", + "MaximumRetailPrice", "Installment", "SubscriptionCost", "LoyaltyPoints", diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/UpdateProductInputRequest.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/UpdateProductInputRequest.java index f48f65502631..858abb31c15f 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/UpdateProductInputRequest.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/UpdateProductInputRequest.java @@ -239,7 +239,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * Only API data sources are supported. * - * Format: `accounts/{account}/dataSources/{datasource}`. + * Format: `accounts/{account}/dataSources/{datasource}`. For example, + * `accounts/123456/dataSources/104628`. * * * string data_source = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -268,7 +269,8 @@ public java.lang.String getDataSource() { * * Only API data sources are supported. * - * Format: `accounts/{account}/dataSources/{datasource}`. + * Format: `accounts/{account}/dataSources/{datasource}`. For example, + * `accounts/123456/dataSources/104628`. * * * string data_source = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1288,7 +1290,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * Only API data sources are supported. * - * Format: `accounts/{account}/dataSources/{datasource}`. + * Format: `accounts/{account}/dataSources/{datasource}`. For example, + * `accounts/123456/dataSources/104628`. * * * string data_source = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1316,7 +1319,8 @@ public java.lang.String getDataSource() { * * Only API data sources are supported. * - * Format: `accounts/{account}/dataSources/{datasource}`. + * Format: `accounts/{account}/dataSources/{datasource}`. For example, + * `accounts/123456/dataSources/104628`. * * * string data_source = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1344,7 +1348,8 @@ public com.google.protobuf.ByteString getDataSourceBytes() { * * Only API data sources are supported. * - * Format: `accounts/{account}/dataSources/{datasource}`. + * Format: `accounts/{account}/dataSources/{datasource}`. For example, + * `accounts/123456/dataSources/104628`. * * * string data_source = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1371,7 +1376,8 @@ public Builder setDataSource(java.lang.String value) { * * Only API data sources are supported. * - * Format: `accounts/{account}/dataSources/{datasource}`. + * Format: `accounts/{account}/dataSources/{datasource}`. For example, + * `accounts/123456/dataSources/104628`. * * * string data_source = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1394,7 +1400,8 @@ public Builder clearDataSource() { * * Only API data sources are supported. * - * Format: `accounts/{account}/dataSources/{datasource}`. + * Format: `accounts/{account}/dataSources/{datasource}`. For example, + * `accounts/123456/dataSources/104628`. * * * string data_source = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/UpdateProductInputRequestOrBuilder.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/UpdateProductInputRequestOrBuilder.java index bb519cf35f9d..5f8330921166 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/UpdateProductInputRequestOrBuilder.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/UpdateProductInputRequestOrBuilder.java @@ -161,7 +161,8 @@ public interface UpdateProductInputRequestOrBuilder * * Only API data sources are supported. * - * Format: `accounts/{account}/dataSources/{datasource}`. + * Format: `accounts/{account}/dataSources/{datasource}`. For example, + * `accounts/123456/dataSources/104628`. * * * string data_source = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -179,7 +180,8 @@ public interface UpdateProductInputRequestOrBuilder * * Only API data sources are supported. * - * Format: `accounts/{account}/dataSources/{datasource}`. + * Format: `accounts/{account}/dataSources/{datasource}`. For example, + * `accounts/123456/dataSources/104628`. * * * string data_source = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/proto/google/shopping/merchant/products/v1beta/productinputs.proto b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/proto/google/shopping/merchant/products/v1beta/productinputs.proto index ff0acd814996..ddabee70437e 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/proto/google/shopping/merchant/products/v1beta/productinputs.proto +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/proto/google/shopping/merchant/products/v1beta/productinputs.proto @@ -36,9 +36,14 @@ service ProductInputsService { option (google.api.default_host) = "merchantapi.googleapis.com"; option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/content"; - // Uploads a product input to your Merchant Center account. If an input - // with the same contentLanguage, offerId, and dataSource already exists, - // this method replaces that entry. + // [Uploads a product input to your Merchant Center + // account](/merchant/api/guides/products/overview#upload-product-input). You + // must have a products data source to be able to insert a product. The unique + // identifier of the data source is passed as a query parameter in the request + // URL. + // + // If an input with the same contentLanguage, offerId, and dataSource already + // exists, this method replaces that entry. // // After inserting, updating, or deleting a product input, it may take several // minutes before the processed product can be retrieved. @@ -78,7 +83,8 @@ service ProductInputsService { // processed product that you see in Merchant Center, in Shopping ads, or // across Google surfaces. Product inputs, rules and supplemental data source // data are combined to create the processed -// [Product][google.shopping.merchant.products.v1beta.Product]. +// [Product][google.shopping.merchant.products.v1beta.Product]. For more +// information, see [Manage products](/merchant/api/guides/products/overview). // // Required product input attributes to pass data validation checks are // primarily defined in the [Products Data @@ -93,8 +99,12 @@ service ProductInputsService { // minutes before the processed product can be retrieved. // // All fields in the product input and its sub-messages match the English name -// of their corresponding attribute in the vertical spec with [some -// exceptions](https://support.google.com/merchants/answer/7052112). +// of their corresponding attribute in the [Products Data +// Specification](https://support.google.com/merchants/answer/188494) with +// [some exceptions](https://support.google.com/merchants/answer/7052112). +// The following reference documentation lists the field names in the +// **camelCase** casing style while the Products Data Specification lists the +// names in the **snake_case** casing style. message ProductInput { option (google.api.resource) = { type: "merchantapi.googleapis.com/ProductInput" @@ -104,16 +114,15 @@ message ProductInput { }; // Identifier. The name of the product input. - // Format: accounts/{account}/productInputs/{productinput} + // Format: `accounts/{account}/productInputs/{productinput}` // where the last section `productinput` consists of 4 parts: - // channel~content_language~feed_label~offer_id + // `channel~content_language~feed_label~offer_id` // example for product input name is - // "accounts/123/productInputs/online~en~US~sku123" + // `accounts/123/productInputs/online~en~US~sku123` string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Output only. The name of the processed product. - // Format: - // `"{product.name=accounts/{account}/products/{product}}"` + // Format: `accounts/{account}/products/{product}` string product = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Immutable. The @@ -141,17 +150,19 @@ message ProductInput { (google.api.field_behavior) = IMMUTABLE ]; - // Required. Immutable. The [feed - // label](https://developers.google.com/shopping-content/guides/products/feed-labels) - // for the product. + // Required. Immutable. The label that lets you categorize and identify your + // products. The maximum allowed characters are 20, and the supported + // characters are `A-Z`, `0-9`, hyphen, and underscore. The feed label must + // not include any spaces. For more information, see [Using feed + // labels](//support.google.com/merchants/answer/14994087). string feed_label = 6 [ (google.api.field_behavior) = REQUIRED, (google.api.field_behavior) = IMMUTABLE ]; - // Optional. Represents the existing version (freshness) of the product, which - // can be used to preserve the right order when multiple updates are done at - // the same time. + // Optional. Immutable. Represents the existing version (freshness) of the + // product, which can be used to preserve the right order when multiple + // updates are done at the same time. // // If set, the insertion is prevented when version number is lower than // the current version number of the existing product. Re-insertion (for @@ -159,10 +170,15 @@ message ProductInput { // `version_number`. // // Only supported for insertions into primary data sources. + // Do not set this field for updates. + // Do not set this field for insertions into supplemental data sources. // // If the operation is prevented, the aborted exception will be // thrown. - optional int64 version_number = 7 [(google.api.field_behavior) = OPTIONAL]; + optional int64 version_number = 7 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = IMMUTABLE + ]; // Optional. A list of product attributes. Attributes attributes = 8 [(google.api.field_behavior) = OPTIONAL]; @@ -172,7 +188,7 @@ message ProductInput { // form (for example, // `{ "name": "size type", "value": "regular" }`). // This is useful for submitting attributes not explicitly exposed by the - // API, such as additional attributes used for Buy on Google. + // API. // Maximum allowed number of characters for each // custom attribute is 10240 (represents sum of characters for name and // value). Maximum 2500 custom attributes can be set per product, with total @@ -185,7 +201,7 @@ message ProductInput { // Request message for the InsertProductInput method. message InsertProductInputRequest { // Required. The account where this product will be inserted. - // Format: accounts/{account} + // Format: `accounts/{account}` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -198,11 +214,14 @@ message InsertProductInputRequest { // Required. The primary or supplemental product data source name. If the // product already exists and data source provided is different, then the - // product will be moved to a new data source. + // product will be moved to a new data source. For more information, see + // [Overview of Data sources + // sub-API](/merchant/api/guides/data-sources/overview). // // Only API data sources are supported. // - // Format: `accounts/{account}/dataSources/{datasource}`. + // Format: `accounts/{account}/dataSources/{datasource}`. For example, + // `accounts/123456/dataSources/104628`. string data_source = 3 [(google.api.field_behavior) = REQUIRED]; } @@ -238,18 +257,19 @@ message UpdateProductInputRequest { // // Only API data sources are supported. // - // Format: `accounts/{account}/dataSources/{datasource}`. + // Format: `accounts/{account}/dataSources/{datasource}`. For example, + // `accounts/123456/dataSources/104628`. string data_source = 3 [(google.api.field_behavior) = REQUIRED]; } // Request message for the DeleteProductInput method. message DeleteProductInputRequest { // Required. The name of the product input resource to delete. - // Format: accounts/{account}/productInputs/{product} + // Format: `accounts/{account}/productInputs/{product}` // where the last section `product` consists of 4 parts: - // channel~content_language~feed_label~offer_id + // `channel~content_language~feed_label~offer_id` // example for product name is - // "accounts/123/productInputs/online~en~US~sku123" + // `accounts/123/productInputs/online~en~US~sku123`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -259,6 +279,7 @@ message DeleteProductInputRequest { // Required. The primary or supplemental data source from which the product // input should be deleted. Format: - // `accounts/{account}/dataSources/{datasource}`. + // `accounts/{account}/dataSources/{datasource}`. For example, + // `accounts/123456/dataSources/104628`. string data_source = 2 [(google.api.field_behavior) = REQUIRED]; } diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/proto/google/shopping/merchant/products/v1beta/products.proto b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/proto/google/shopping/merchant/products/v1beta/products.proto index d6aec77ae90c..fb0851cba3ef 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/proto/google/shopping/merchant/products/v1beta/products.proto +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/proto/google/shopping/merchant/products/v1beta/products.proto @@ -108,7 +108,11 @@ message Product { // product. string content_language = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The feed label for the product. + // Output only. The feed label lets you categorize and identify your products. + // The maximum allowed characters is 20 and the supported characters are`A-Z`, + // `0-9`, hyphen and underscore. The feed label must not include any spaces. + // For more information, see [Using feed + // labels](//support.google.com/merchants/answer/14994087) string feed_label = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The primary data source of the product. @@ -179,7 +183,7 @@ message ListProductsRequest { // The maximum number of products to return. The service may return fewer than // this value. - // The maximum value is 250; values above 250 will be coerced to 250. + // The maximum value is 1000; values above 1000 will be coerced to 1000. // If unspecified, the maximum number of products will be returned. int32 page_size = 2; diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/proto/google/shopping/merchant/products/v1beta/products_common.proto b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/proto/google/shopping/merchant/products/v1beta/products_common.proto index 5f48861ca7c5..8ab70e333d82 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/proto/google/shopping/merchant/products/v1beta/products_common.proto +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/proto/google/shopping/merchant/products/v1beta/products_common.proto @@ -45,8 +45,9 @@ message Attributes { // Defaults to true, if not provided. optional bool identifier_exists = 4; - // Whether the item is a merchant-defined bundle. A bundle is a custom - // grouping of different products sold by a merchant for a single price. + // Whether the item is a business-defined sub-API. A [sub-API] + // (https://support.google.com/merchants/answer/6324449) is a custom + // grouping of different products sold by a business for a single price. optional bool is_bundle = 5; // Title of the item. @@ -80,8 +81,9 @@ message Attributes { // The date time when an offer becomes visible in search results across // Google’s YouTube surfaces, in [ISO - // 8601](http://en.wikipedia.org/wiki/ISO_8601) format. See [Disclosure date]( - // https://support.google.com/merchants/answer/13034208) for more information. + // 8601](http://en.wikipedia.org/wiki/ISO_8601) format. + // See [Disclosure date](https://support.google.com/merchants/answer/13034208) + // for more information. google.protobuf.Timestamp disclosure_date = 79; // Set to true if the item is targeted towards adults. @@ -91,23 +93,28 @@ message Attributes { // the item. optional string age_group = 18; - // Availability status of the item. + // [Availability](https://support.google.com/merchants/answer/6324448) status + // of the item. For example, "in_stock" or "out_of_stock". optional string availability = 19; // The day a pre-ordered product becomes available for delivery, in [ISO // 8601](http://en.wikipedia.org/wiki/ISO_8601) format. google.protobuf.Timestamp availability_date = 20; - // Brand of the item. + // [Brand](https://support.google.com/merchants/answer/6324351) of the item. + // For example, "Google". optional string brand = 21; - // Color of the item. + // [Color](https://support.google.com/merchants/answer/6324487) of the item. + // For example, "red". optional string color = 22; - // Condition or state of the item. + // [Condition](https://support.google.com/merchants/answer/6324469) or state + // of the item. For example, "new" or "used". optional string condition = 23; - // Target gender of the item. + // Target [gender](https://support.google.com/merchants/answer/6324479) of the + // item. For example, "male" or "female". optional string gender = 24; // Google's category of the item (see [Google product @@ -121,12 +128,21 @@ message Attributes { // ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the // item. // You can provide up to 10 GTINs. - repeated string gtin = 26; + // + // Deprecated: Use `gtins` instead. + repeated string gtin = 26 [deprecated = true]; + + // Global Trade Item Numbers + // ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the + // item. + // You can provide up to 10 GTINs. + repeated string gtins = 140; // Shared identifier for all variants of the same product. optional string item_group_id = 27; - // The material of which the item is made. + // The [material](https://support.google.com/merchants/answer/6324410) of + // which the item is made. For example, "Leather" or "Cotton". optional string material = 28; // Manufacturer Part Number @@ -134,12 +150,16 @@ message Attributes { // item. optional string mpn = 29; - // The item's pattern (for example, polka dots). + // The item's [pattern](https://support.google.com/merchants/answer/6324483). + // For example, polka dots. optional string pattern = 30; // Price of the item. google.shopping.type.Price price = 31; + // Maximum retail price (MRP) of the item. Applicable to India only. + google.shopping.type.Price maximum_retail_price = 139; + // Number and amount of installments to pay for an item. Installment installment = 32; @@ -156,14 +176,14 @@ message Attributes { repeated LoyaltyProgram loyalty_programs = 136; // Categories of the item (formatted as in [product data - // specification](https://support.google.com/merchants/answer/188494#product_type)). + // specification](https://support.google.com/merchants/answer/7052112#product_category)). repeated string product_types = 35; // Advertised sale price of the item. google.shopping.type.Price sale_price = 36; - // Date range during which the item is on sale (see [product data - // specification](https://support.google.com/merchants/answer/188494#sale_price_effective_date)). + // Date range during which the item is on sale, see [product data + // specification](https://support.google.com/merchants/answer/7052112#price_and_availability). google.type.Interval sale_price_effective_date = 37; // The quantity of the product that is available for selling on Google. @@ -221,23 +241,28 @@ message Attributes { // Size of the item. Only one value is allowed. For variants with different // sizes, insert a separate product for each size with the same - // `itemGroupId` value (see - // [https://support.google.com/merchants/answer/6324492](size definition)). + // `itemGroupId` value, see + // [Size](https://support.google.com/merchants/answer/6324492). optional string size = 48; // System in which the size is specified. Recommended for apparel items. + // For example, "US", "UK", "DE". + // For more information, see + // [Size system](https://support.google.com/merchants/answer/6324502). optional string size_system = 49; // The cut of the item. It can be used to represent combined size types for - // apparel items. Maximum two of size types can be provided (see - // [https://support.google.com/merchants/answer/6324497](size type)). + // apparel items. Maximum two of size types can be provided, see + // [Size type](https://support.google.com/merchants/answer/6324497). + // For example, "petite", "plus size". repeated string size_types = 50; // Tax information. - repeated Tax taxes = 51; + repeated Tax taxes = 51 [deprecated = true]; - // The tax category of the product. - optional string tax_category = 52; + // The [tax category](https://support.google.com/merchants/answer/7569847) of + // the product. + optional string tax_category = 52 [deprecated = true]; // The energy efficiency class as defined in EU directive 2010/30/EU. optional string energy_efficiency_class = 53; @@ -254,11 +279,13 @@ message Attributes { // The preference of the denominator of the unit price. UnitPricingBaseMeasure unit_pricing_base_measure = 57; - // The number of identical products in a merchant-defined multipack. + // The number of identical products in a business-defined multipack. optional int64 multipack = 58; // Used to group items in an arbitrary way. Only for CPA%, discouraged - // otherwise. + // otherwise. For more information, see + // [Display ads + // attribute](https://support.google.com/merchants/answer/6069387). optional string ads_grouping = 59; // Similar to ads_grouping, but only works on CPC. @@ -274,13 +301,16 @@ message Attributes { // Technical specification or additional product details. repeated ProductDetail product_details = 63; - // Bullet points describing the most relevant highlights of a product. + // Bullet points describing the most relevant [product + // highlights](https://support.google.com/merchants/answer/9216100). repeated string product_highlights = 64; // An identifier for an item for dynamic remarketing campaigns. optional string display_ads_id = 65; - // Advertiser-specified recommendations. + // Advertiser-specified recommendations. For more information, see + // [Display ads attribute + // specification](https://support.google.com/merchants/answer/6069387). repeated string display_ads_similar_ids = 66; // Title of an item for dynamic remarketing campaigns. @@ -290,53 +320,78 @@ message Attributes { // campaigns. optional string display_ads_link = 68; - // Offer margin for dynamic remarketing campaigns. + // Offer margin for dynamic remarketing campaigns. For more information, see + // [Display ads + // attribute](https://support.google.com/merchants/answer/6069387). optional double display_ads_value = 69; // The unique ID of a promotion. repeated string promotion_ids = 70; - // The pick up option for the item. + // The [pickup](https://support.google.com/merchants/answer/14634021) option + // for the item. optional string pickup_method = 80; - // Item store pickup timeline. + // Item store pickup timeline. For more information, see + // [Pickup SLA](https://support.google.com/merchants/answer/14635400). optional string pickup_sla = 81; - // Link template for merchant hosted local storefront. + // [Link template](https://support.google.com/merchants/answer/13871172) for + // business hosted local storefront. optional string link_template = 82; - // Link template for merchant hosted local storefront optimized for mobile + // [Link template](https://support.google.com/merchants/answer/13870216) for + // business hosted local storefront optimized for mobile // devices. optional string mobile_link_template = 83; - // Custom label 0 for custom grouping of items in a Shopping campaign. + // [Custom label 0](https://support.google.com/merchants/answer/6324473) for + // custom grouping of items in a Shopping campaign. optional string custom_label_0 = 71; - // Custom label 1 for custom grouping of items in a Shopping campaign. + // [Custom label 1](https://support.google.com/merchants/answer/6324473) + // for custom grouping of items in a Shopping campaign. optional string custom_label_1 = 72; - // Custom label 2 for custom grouping of items in a Shopping campaign. + // [Custom label 2](https://support.google.com/merchants/answer/6324473) + // for custom grouping of items in a Shopping campaign. optional string custom_label_2 = 73; - // Custom label 3 for custom grouping of items in a Shopping campaign. + // [Custom label 3](https://support.google.com/merchants/answer/6324473) + // for custom grouping of items in a Shopping campaign. optional string custom_label_3 = 74; - // Custom label 4 for custom grouping of items in a Shopping campaign. + // [Custom label 4](https://support.google.com/merchants/answer/6324473) for + // custom grouping of items in a Shopping campaign. optional string custom_label_4 = 75; // The list of destinations to include for this target (corresponds to // checked check boxes in Merchant Center). Default destinations are always // included unless provided in `excludedDestinations`. + // + // For more information, see + // [Included + // destination](https://support.google.com/merchants/answer/7501026). + // + // Note: We recommend setting destinations on datasources level for most use + // cases. Use this field within products to only setup exceptions. repeated string included_destinations = 76; // The list of destinations to exclude for this target (corresponds to // unchecked check boxes in Merchant Center). + // + // For more information, see + // [Excluded + // destination](https://support.google.com/merchants/answer/6324486). + // + // Note: We recommend setting destinations on datasources level for most use + // cases. Use this field within products to only setup exceptions. repeated string excluded_destinations = 77; - // List of country codes (ISO 3166-1 alpha-2) to exclude the offer from - // Shopping Ads destination. - // Countries from this list are removed from countries configured - // in data source settings. + // List of country codes [(ISO 3166-1 + // alpha-2)](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) to exclude the + // offer from Shopping Ads destination. Countries from this list are removed + // from countries configured in data source settings. repeated string shopping_ads_excluded_countries = 78; // Required for multi-seller accounts. Use this attribute if you're a @@ -376,11 +431,11 @@ message Attributes { // Structured description, for algorithmically (AI)-generated descriptions. optional ProductStructuredDescription structured_description = 133; - // A safeguard in the "Automated Discounts" + // A safeguard in the [automated discounts] // (https://support.google.com/merchants/answer/10295759) and // "Dynamic Promotions" // (https://support.google.com/merchants/answer/13949249) projects, - // ensuring that discounts on merchants' offers do not fall below this value, + // ensuring that discounts on business offers do not fall below this value, // thereby preserving the offer's value and profitability. google.shopping.type.Price auto_pricing_min_price = 124; @@ -505,10 +560,10 @@ message LoyaltyPoints { // A message that represents loyalty program. message LoyaltyProgram { // The label of the loyalty program. This is an internal label that uniquely - // identifies the relationship between a merchant entity and a loyalty + // identifies the relationship between a business entity and a loyalty // program entity. The label must be provided so that the system can associate - // the assets below (for example, price and points) with a merchant. The - // corresponding program must be linked to the merchant account. + // the assets below (for example, price and points) with a business. The + // corresponding program must be linked to the Merchant Center account. optional string program_label = 1; // The label of the tier within the loyalty program. @@ -763,7 +818,7 @@ message ProductStatus { // How this issue affects serving of the offer. Severity severity = 2; - // Whether the issue can be resolved by the merchant. + // Whether the issue can be resolved by the business. string resolution = 3; // The attribute's name, if the issue is caused by a single attribute. diff --git a/java-shopping-merchant-promotions/CHANGELOG.md b/java-shopping-merchant-promotions/CHANGELOG.md index c86abd56eced..8461d0851316 100644 --- a/java-shopping-merchant-promotions/CHANGELOG.md +++ b/java-shopping-merchant-promotions/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## 0.24.0 (2025-07-11) + +### Features + +* new module for merchant-reports-v1alpha ([#11672](https://github.com/googleapis/google-cloud-java/issues/11672)) ([e611ec2](https://github.com/googleapis/google-cloud-java/commit/e611ec22adb990a3ca6b2785b183618231309b92)) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.23.0 (2025-06-25) ### Dependencies diff --git a/java-shopping-merchant-promotions/README.md b/java-shopping-merchant-promotions/README.md index ed200317b000..a8bd5d0b3136 100644 --- a/java-shopping-merchant-promotions/README.md +++ b/java-shopping-merchant-promotions/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-promotions - 0.22.0 + 0.23.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-promotions:0.22.0' +implementation 'com.google.shopping:google-shopping-merchant-promotions:0.23.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-promotions" % "0.22.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-promotions" % "0.23.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-promotions.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-promotions/0.22.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-promotions/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-shopping-merchant-promotions/google-shopping-merchant-promotions-bom/pom.xml b/java-shopping-merchant-promotions/google-shopping-merchant-promotions-bom/pom.xml index 01006f0f93a8..9130fbbe0d1c 100644 --- a/java-shopping-merchant-promotions/google-shopping-merchant-promotions-bom/pom.xml +++ b/java-shopping-merchant-promotions/google-shopping-merchant-promotions-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-promotions-bom - 0.23.0 + 0.24.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.shopping google-shopping-merchant-promotions - 0.23.0 + 0.24.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-promotions-v1beta - 0.23.0 + 0.24.0 com.google.shopping.api.grpc proto-google-shopping-merchant-promotions-v1beta - 0.23.0 + 0.24.0
      diff --git a/java-shopping-merchant-promotions/google-shopping-merchant-promotions/pom.xml b/java-shopping-merchant-promotions/google-shopping-merchant-promotions/pom.xml index 8a8562ccacf1..49b01cdae6d1 100644 --- a/java-shopping-merchant-promotions/google-shopping-merchant-promotions/pom.xml +++ b/java-shopping-merchant-promotions/google-shopping-merchant-promotions/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-promotions - 0.23.0 + 0.24.0 jar Google Merchant API Merchant API Programmatically manage your Merchant Center accounts. com.google.shopping google-shopping-merchant-promotions-parent - 0.23.0 + 0.24.0 google-shopping-merchant-promotions diff --git a/java-shopping-merchant-promotions/grpc-google-shopping-merchant-promotions-v1beta/pom.xml b/java-shopping-merchant-promotions/grpc-google-shopping-merchant-promotions-v1beta/pom.xml index bbac3ec5768e..577fecbc0b24 100644 --- a/java-shopping-merchant-promotions/grpc-google-shopping-merchant-promotions-v1beta/pom.xml +++ b/java-shopping-merchant-promotions/grpc-google-shopping-merchant-promotions-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-promotions-v1beta - 0.23.0 + 0.24.0 grpc-google-shopping-merchant-promotions-v1beta GRPC library for google-shopping-merchant-promotions com.google.shopping google-shopping-merchant-promotions-parent - 0.23.0 + 0.24.0 diff --git a/java-shopping-merchant-promotions/pom.xml b/java-shopping-merchant-promotions/pom.xml index acd31d2adf39..c35f5d048cc4 100644 --- a/java-shopping-merchant-promotions/pom.xml +++ b/java-shopping-merchant-promotions/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-promotions-parent pom - 0.23.0 + 0.24.0 Google Merchant API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.shopping google-shopping-merchant-promotions - 0.23.0 + 0.24.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-promotions-v1beta - 0.23.0 + 0.24.0 com.google.shopping.api.grpc proto-google-shopping-merchant-promotions-v1beta - 0.23.0 + 0.24.0 diff --git a/java-shopping-merchant-promotions/proto-google-shopping-merchant-promotions-v1beta/pom.xml b/java-shopping-merchant-promotions/proto-google-shopping-merchant-promotions-v1beta/pom.xml index 58cc18cb4d3e..8a8fc9072459 100644 --- a/java-shopping-merchant-promotions/proto-google-shopping-merchant-promotions-v1beta/pom.xml +++ b/java-shopping-merchant-promotions/proto-google-shopping-merchant-promotions-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-promotions-v1beta - 0.23.0 + 0.24.0 proto-google-shopping-merchant-promotions-v1beta Proto library for google-shopping-merchant-promotions com.google.shopping google-shopping-merchant-promotions-parent - 0.23.0 + 0.24.0 diff --git a/java-shopping-merchant-quota/CHANGELOG.md b/java-shopping-merchant-quota/CHANGELOG.md index 1e76e6db011b..ba0307d68001 100644 --- a/java-shopping-merchant-quota/CHANGELOG.md +++ b/java-shopping-merchant-quota/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.31.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.30.0 (2025-06-25) ### Dependencies diff --git a/java-shopping-merchant-quota/README.md b/java-shopping-merchant-quota/README.md index 915896d334db..812a00558a4f 100644 --- a/java-shopping-merchant-quota/README.md +++ b/java-shopping-merchant-quota/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-quota - 0.29.0 + 0.30.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-quota:0.29.0' +implementation 'com.google.shopping:google-shopping-merchant-quota:0.30.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-quota" % "0.29.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-quota" % "0.30.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-quota.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-quota/0.29.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-quota/0.30.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/google-shopping-merchant-quota-bom/pom.xml b/java-shopping-merchant-quota/google-shopping-merchant-quota-bom/pom.xml index 6376a25392ab..9ffd65c22871 100644 --- a/java-shopping-merchant-quota/google-shopping-merchant-quota-bom/pom.xml +++ b/java-shopping-merchant-quota/google-shopping-merchant-quota-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-quota-bom - 0.30.0 + 0.31.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.shopping google-shopping-merchant-quota - 0.30.0 + 0.31.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-quota-v1beta - 0.30.0 + 0.31.0 com.google.shopping.api.grpc proto-google-shopping-merchant-quota-v1beta - 0.30.0 + 0.31.0 diff --git a/java-shopping-merchant-quota/google-shopping-merchant-quota/pom.xml b/java-shopping-merchant-quota/google-shopping-merchant-quota/pom.xml index 9fed546a92aa..3c8e27ff0161 100644 --- a/java-shopping-merchant-quota/google-shopping-merchant-quota/pom.xml +++ b/java-shopping-merchant-quota/google-shopping-merchant-quota/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-quota - 0.30.0 + 0.31.0 jar Google Merchant Quota API Merchant Quota API Programmatically manage your Merchant Center accounts. com.google.shopping google-shopping-merchant-quota-parent - 0.30.0 + 0.31.0 google-shopping-merchant-quota diff --git a/java-shopping-merchant-quota/grpc-google-shopping-merchant-quota-v1beta/pom.xml b/java-shopping-merchant-quota/grpc-google-shopping-merchant-quota-v1beta/pom.xml index d9bc6a265d1e..414a3ef72391 100644 --- a/java-shopping-merchant-quota/grpc-google-shopping-merchant-quota-v1beta/pom.xml +++ b/java-shopping-merchant-quota/grpc-google-shopping-merchant-quota-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-quota-v1beta - 0.30.0 + 0.31.0 grpc-google-shopping-merchant-quota-v1beta GRPC library for google-shopping-merchant-quota com.google.shopping google-shopping-merchant-quota-parent - 0.30.0 + 0.31.0 diff --git a/java-shopping-merchant-quota/pom.xml b/java-shopping-merchant-quota/pom.xml index 399f4f48b6ea..d602515a2133 100644 --- a/java-shopping-merchant-quota/pom.xml +++ b/java-shopping-merchant-quota/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-quota-parent pom - 0.30.0 + 0.31.0 Google Merchant Quota API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.shopping google-shopping-merchant-quota - 0.30.0 + 0.31.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-quota-v1beta - 0.30.0 + 0.31.0 com.google.shopping.api.grpc proto-google-shopping-merchant-quota-v1beta - 0.30.0 + 0.31.0 diff --git a/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1beta/pom.xml b/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1beta/pom.xml index 14480cb79223..74c0bc4a49d3 100644 --- a/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1beta/pom.xml +++ b/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-quota-v1beta - 0.30.0 + 0.31.0 proto-google-shopping-merchant-quota-v1beta Proto library for google-shopping-merchant-quota com.google.shopping google-shopping-merchant-quota-parent - 0.30.0 + 0.31.0 diff --git a/java-shopping-merchant-reports/CHANGELOG.md b/java-shopping-merchant-reports/CHANGELOG.md index e78f81116142..ebd85093c96d 100644 --- a/java-shopping-merchant-reports/CHANGELOG.md +++ b/java-shopping-merchant-reports/CHANGELOG.md @@ -1,5 +1,23 @@ # Changelog +## 0.44.0 (2025-07-11) + +### Features + +* new module for merchant-reports-v1alpha ([#11672](https://github.com/googleapis/google-cloud-java/issues/11672)) ([e611ec2](https://github.com/googleapis/google-cloud-java/commit/e611ec22adb990a3ca6b2785b183618231309b92)) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.43.0 (2025-06-25) ### Dependencies diff --git a/java-shopping-merchant-reports/README.md b/java-shopping-merchant-reports/README.md index f0a03af2b4a3..b8fb53fc3d4e 100644 --- a/java-shopping-merchant-reports/README.md +++ b/java-shopping-merchant-reports/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-reports - 0.42.0 + 0.43.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-reports:0.42.0' +implementation 'com.google.shopping:google-shopping-merchant-reports:0.43.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-reports" % "0.42.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-reports" % "0.43.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-reports.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reports/0.42.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reports/0.43.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/google-shopping-merchant-reports-bom/pom.xml b/java-shopping-merchant-reports/google-shopping-merchant-reports-bom/pom.xml index 80e3e57d9f61..d34dbd694466 100644 --- a/java-shopping-merchant-reports/google-shopping-merchant-reports-bom/pom.xml +++ b/java-shopping-merchant-reports/google-shopping-merchant-reports-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.shopping google-shopping-merchant-reports-bom - 0.43.0 + 0.44.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,27 @@ com.google.shopping google-shopping-merchant-reports - 0.43.0 + 0.44.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-reports-v1beta - 0.43.0 + 0.44.0 + + + com.google.shopping.api.grpc + grpc-google-shopping-merchant-reports-v1alpha + 0.44.0 com.google.shopping.api.grpc proto-google-shopping-merchant-reports-v1beta - 0.43.0 + 0.44.0 + + + com.google.shopping.api.grpc + proto-google-shopping-merchant-reports-v1alpha + 0.44.0 diff --git a/java-shopping-merchant-reports/google-shopping-merchant-reports/pom.xml b/java-shopping-merchant-reports/google-shopping-merchant-reports/pom.xml index 07c8af6c27de..69afbb06bc03 100644 --- a/java-shopping-merchant-reports/google-shopping-merchant-reports/pom.xml +++ b/java-shopping-merchant-reports/google-shopping-merchant-reports/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-reports - 0.43.0 + 0.44.0 jar Google Merchant API Merchant API Programmatically manage your Merchant Center accounts. com.google.shopping google-shopping-merchant-reports-parent - 0.43.0 + 0.44.0 google-shopping-merchant-reports @@ -41,6 +41,10 @@ proto-google-common-protos + + com.google.shopping.api.grpc + proto-google-shopping-merchant-reports-v1alpha + com.google.shopping.api.grpc proto-google-shopping-merchant-reports-v1beta @@ -66,6 +70,11 @@ grpc-google-common-protos test + + com.google.shopping.api.grpc + grpc-google-shopping-merchant-reports-v1alpha + test + com.google.api.grpc proto-google-iam-v1 diff --git a/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1alpha/ReportServiceClient.java b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1alpha/ReportServiceClient.java new file mode 100644 index 000000000000..5e6cdb3a07b5 --- /dev/null +++ b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1alpha/ReportServiceClient.java @@ -0,0 +1,426 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.reports.v1alpha; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.shopping.merchant.reports.v1alpha.stub.ReportServiceStub; +import com.google.shopping.merchant.reports.v1alpha.stub.ReportServiceStubSettings; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service for retrieving reports and insights about your products, their + * performance, and their competitive environment on Google. + * + *

      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 (ReportServiceClient reportServiceClient = ReportServiceClient.create()) {
      + *   String parent = "parent-995424086";
      + *   for (ReportRow element : reportServiceClient.search(parent).iterateAll()) {
      + *     // doThingsWith(element);
      + *   }
      + * }
      + * }
      + * + *

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

      Search

      Retrieves a report defined by a search query. The response might contain fewer rows than specified by `page_size`. Rely on `next_page_token` to determine if there are more rows to be requested.

      + *

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

      + *
        + *
      • search(SearchRequest request) + *

      + *

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

      + *
        + *
      • search(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.

      + *
        + *
      • searchPagedCallable() + *

      • searchCallable() + *

      + *
      + * + *

      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 ReportServiceSettings 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
      + * ReportServiceSettings reportServiceSettings =
      + *     ReportServiceSettings.newBuilder()
      + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
      + *         .build();
      + * ReportServiceClient reportServiceClient = ReportServiceClient.create(reportServiceSettings);
      + * }
      + * + *

      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
      + * ReportServiceSettings reportServiceSettings =
      + *     ReportServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
      + * ReportServiceClient reportServiceClient = ReportServiceClient.create(reportServiceSettings);
      + * }
      + * + *

      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
      + * ReportServiceSettings reportServiceSettings =
      + *     ReportServiceSettings.newHttpJsonBuilder().build();
      + * ReportServiceClient reportServiceClient = ReportServiceClient.create(reportServiceSettings);
      + * }
      + * + *

      Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class ReportServiceClient implements BackgroundResource { + private final ReportServiceSettings settings; + private final ReportServiceStub stub; + + /** Constructs an instance of ReportServiceClient with default settings. */ + public static final ReportServiceClient create() throws IOException { + return create(ReportServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of ReportServiceClient, 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 ReportServiceClient create(ReportServiceSettings settings) + throws IOException { + return new ReportServiceClient(settings); + } + + /** + * Constructs an instance of ReportServiceClient, using the given stub for making calls. This is + * for advanced usage - prefer using create(ReportServiceSettings). + */ + public static final ReportServiceClient create(ReportServiceStub stub) { + return new ReportServiceClient(stub); + } + + /** + * Constructs an instance of ReportServiceClient, 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 ReportServiceClient(ReportServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((ReportServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected ReportServiceClient(ReportServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final ReportServiceSettings getSettings() { + return settings; + } + + public ReportServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a report defined by a search query. The response might contain fewer rows than + * specified by `page_size`. Rely on `next_page_token` to determine if there are more rows to be + * requested. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (ReportServiceClient reportServiceClient = ReportServiceClient.create()) {
      +   *   String parent = "parent-995424086";
      +   *   for (ReportRow element : reportServiceClient.search(parent).iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + * + * @param parent Required. Id of the account making the call. Must be a standalone account or an + * MCA subaccount. Format: accounts/{account} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchPagedResponse search(String parent) { + SearchRequest request = SearchRequest.newBuilder().setParent(parent).build(); + return search(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a report defined by a search query. The response might contain fewer rows than + * specified by `page_size`. Rely on `next_page_token` to determine if there are more rows to be + * requested. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (ReportServiceClient reportServiceClient = ReportServiceClient.create()) {
      +   *   SearchRequest request =
      +   *       SearchRequest.newBuilder()
      +   *           .setParent("parent-995424086")
      +   *           .setQuery("query107944136")
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .build();
      +   *   for (ReportRow element : reportServiceClient.search(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 SearchPagedResponse search(SearchRequest request) { + return searchPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a report defined by a search query. The response might contain fewer rows than + * specified by `page_size`. Rely on `next_page_token` to determine if there are more rows to be + * requested. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (ReportServiceClient reportServiceClient = ReportServiceClient.create()) {
      +   *   SearchRequest request =
      +   *       SearchRequest.newBuilder()
      +   *           .setParent("parent-995424086")
      +   *           .setQuery("query107944136")
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .build();
      +   *   ApiFuture future = reportServiceClient.searchPagedCallable().futureCall(request);
      +   *   // Do something.
      +   *   for (ReportRow element : future.get().iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + */ + public final UnaryCallable searchPagedCallable() { + return stub.searchPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a report defined by a search query. The response might contain fewer rows than + * specified by `page_size`. Rely on `next_page_token` to determine if there are more rows to be + * requested. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (ReportServiceClient reportServiceClient = ReportServiceClient.create()) {
      +   *   SearchRequest request =
      +   *       SearchRequest.newBuilder()
      +   *           .setParent("parent-995424086")
      +   *           .setQuery("query107944136")
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .build();
      +   *   while (true) {
      +   *     SearchResponse response = reportServiceClient.searchCallable().call(request);
      +   *     for (ReportRow element : response.getResultsList()) {
      +   *       // doThingsWith(element);
      +   *     }
      +   *     String nextPageToken = response.getNextPageToken();
      +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
      +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
      +   *     } else {
      +   *       break;
      +   *     }
      +   *   }
      +   * }
      +   * }
      + */ + public final UnaryCallable searchCallable() { + return stub.searchCallable(); + } + + @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 SearchPagedResponse + extends AbstractPagedListResponse< + SearchRequest, SearchResponse, ReportRow, SearchPage, SearchFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + SearchPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new SearchPagedResponse(input), MoreExecutors.directExecutor()); + } + + private SearchPagedResponse(SearchPage page) { + super(page, SearchFixedSizeCollection.createEmptyCollection()); + } + } + + public static class SearchPage + extends AbstractPage { + + private SearchPage( + PageContext context, SearchResponse response) { + super(context, response); + } + + private static SearchPage createEmptyPage() { + return new SearchPage(null, null); + } + + @Override + protected SearchPage createPage( + PageContext context, SearchResponse response) { + return new SearchPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class SearchFixedSizeCollection + extends AbstractFixedSizeCollection< + SearchRequest, SearchResponse, ReportRow, SearchPage, SearchFixedSizeCollection> { + + private SearchFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static SearchFixedSizeCollection createEmptyCollection() { + return new SearchFixedSizeCollection(null, 0); + } + + @Override + protected SearchFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new SearchFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1alpha/ReportServiceSettings.java b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1alpha/ReportServiceSettings.java new file mode 100644 index 000000000000..840776f0e583 --- /dev/null +++ b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1alpha/ReportServiceSettings.java @@ -0,0 +1,219 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.reports.v1alpha; + +import static com.google.shopping.merchant.reports.v1alpha.ReportServiceClient.SearchPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.shopping.merchant.reports.v1alpha.stub.ReportServiceStubSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link ReportServiceClient}. + * + *

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

        + *
      • The default service address (merchantapi.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 search: + * + *

      {@code
      + * // This snippet has been automatically generated and should be regarded as a code template only.
      + * // It will require modifications to work:
      + * // - It may require correct/in-range values for request initialization.
      + * // - It may require specifying regional endpoints when creating the service client as shown in
      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      + * ReportServiceSettings.Builder reportServiceSettingsBuilder = ReportServiceSettings.newBuilder();
      + * reportServiceSettingsBuilder
      + *     .searchSettings()
      + *     .setRetrySettings(
      + *         reportServiceSettingsBuilder
      + *             .searchSettings()
      + *             .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());
      + * ReportServiceSettings reportServiceSettings = reportServiceSettingsBuilder.build();
      + * }
      + * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class ReportServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to search. */ + public PagedCallSettings searchSettings() { + return ((ReportServiceStubSettings) getStubSettings()).searchSettings(); + } + + public static final ReportServiceSettings create(ReportServiceStubSettings stub) + throws IOException { + return new ReportServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return ReportServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return ReportServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return ReportServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return ReportServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return ReportServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return ReportServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return ReportServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ReportServiceStubSettings.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(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 ReportServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for ReportServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(ReportServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(ReportServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(ReportServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(ReportServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(ReportServiceStubSettings.newHttpJsonBuilder()); + } + + public ReportServiceStubSettings.Builder getStubSettingsBuilder() { + return ((ReportServiceStubSettings.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 search. */ + public PagedCallSettings.Builder + searchSettings() { + return getStubSettingsBuilder().searchSettings(); + } + + @Override + public ReportServiceSettings build() throws IOException { + return new ReportServiceSettings(this); + } + } +} diff --git a/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1alpha/gapic_metadata.json b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1alpha/gapic_metadata.json new file mode 100644 index 000000000000..f738325f2976 --- /dev/null +++ b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1alpha/gapic_metadata.json @@ -0,0 +1,21 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "java", + "protoPackage": "google.shopping.merchant.reports.v1alpha", + "libraryPackage": "com.google.shopping.merchant.reports.v1alpha", + "services": { + "ReportService": { + "clients": { + "grpc": { + "libraryClient": "ReportServiceClient", + "rpcs": { + "Search": { + "methods": ["search", "search", "searchPagedCallable", "searchCallable"] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1alpha/package-info.java b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1alpha/package-info.java new file mode 100644 index 000000000000..e4b301c8828d --- /dev/null +++ b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1alpha/package-info.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * A client to Merchant API + * + *

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

      ======================= ReportServiceClient ======================= + * + *

      Service Description: Service for retrieving reports and insights about your products, their + * performance, and their competitive environment on Google. + * + *

      Sample for ReportServiceClient: + * + *

      {@code
      + * // This snippet has been automatically generated and should be regarded as a code template only.
      + * // It will require modifications to work:
      + * // - It may require correct/in-range values for request initialization.
      + * // - It may require specifying regional endpoints when creating the service client as shown in
      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      + * try (ReportServiceClient reportServiceClient = ReportServiceClient.create()) {
      + *   String parent = "parent-995424086";
      + *   for (ReportRow element : reportServiceClient.search(parent).iterateAll()) {
      + *     // doThingsWith(element);
      + *   }
      + * }
      + * }
      + */ +@Generated("by gapic-generator-java") +package com.google.shopping.merchant.reports.v1alpha; + +import javax.annotation.Generated; diff --git a/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1alpha/stub/GrpcReportServiceCallableFactory.java b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1alpha/stub/GrpcReportServiceCallableFactory.java new file mode 100644 index 000000000000..45368b1c9207 --- /dev/null +++ b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1alpha/stub/GrpcReportServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.reports.v1alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the ReportService service API. + * + *

      This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcReportServiceCallableFactory 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-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1alpha/stub/GrpcReportServiceStub.java b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1alpha/stub/GrpcReportServiceStub.java new file mode 100644 index 000000000000..fdece084db9d --- /dev/null +++ b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1alpha/stub/GrpcReportServiceStub.java @@ -0,0 +1,171 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.reports.v1alpha.stub; + +import static com.google.shopping.merchant.reports.v1alpha.ReportServiceClient.SearchPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.shopping.merchant.reports.v1alpha.SearchRequest; +import com.google.shopping.merchant.reports.v1alpha.SearchResponse; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the ReportService service API. + * + *

      This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcReportServiceStub extends ReportServiceStub { + private static final MethodDescriptor searchMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.shopping.merchant.reports.v1alpha.ReportService/Search") + .setRequestMarshaller(ProtoUtils.marshaller(SearchRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(SearchResponse.getDefaultInstance())) + .build(); + + private final UnaryCallable searchCallable; + private final UnaryCallable searchPagedCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcReportServiceStub create(ReportServiceStubSettings settings) + throws IOException { + return new GrpcReportServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcReportServiceStub create(ClientContext clientContext) throws IOException { + return new GrpcReportServiceStub(ReportServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcReportServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcReportServiceStub( + ReportServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcReportServiceStub, 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 GrpcReportServiceStub(ReportServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcReportServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcReportServiceStub, 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 GrpcReportServiceStub( + ReportServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings searchTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(searchMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + + this.searchCallable = + callableFactory.createUnaryCallable( + searchTransportSettings, settings.searchSettings(), clientContext); + this.searchPagedCallable = + callableFactory.createPagedCallable( + searchTransportSettings, settings.searchSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable searchCallable() { + return searchCallable; + } + + @Override + public UnaryCallable searchPagedCallable() { + return searchPagedCallable; + } + + @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-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1alpha/stub/HttpJsonReportServiceCallableFactory.java b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1alpha/stub/HttpJsonReportServiceCallableFactory.java new file mode 100644 index 000000000000..eb04ca263469 --- /dev/null +++ b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1alpha/stub/HttpJsonReportServiceCallableFactory.java @@ -0,0 +1,103 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.reports.v1alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the ReportService service API. + * + *

      This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonReportServiceCallableFactory + 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-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1alpha/stub/HttpJsonReportServiceStub.java b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1alpha/stub/HttpJsonReportServiceStub.java new file mode 100644 index 000000000000..bb9b81e5909c --- /dev/null +++ b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1alpha/stub/HttpJsonReportServiceStub.java @@ -0,0 +1,212 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.reports.v1alpha.stub; + +import static com.google.shopping.merchant.reports.v1alpha.ReportServiceClient.SearchPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.protobuf.TypeRegistry; +import com.google.shopping.merchant.reports.v1alpha.SearchRequest; +import com.google.shopping.merchant.reports.v1alpha.SearchResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the ReportService service API. + * + *

      This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonReportServiceStub extends ReportServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor searchMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.shopping.merchant.reports.v1alpha.ReportService/Search") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/reports/v1alpha/{parent=accounts/*}/reports: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(SearchResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable searchCallable; + private final UnaryCallable searchPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonReportServiceStub create(ReportServiceStubSettings settings) + throws IOException { + return new HttpJsonReportServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonReportServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonReportServiceStub( + ReportServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonReportServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonReportServiceStub( + ReportServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonReportServiceStub, 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 HttpJsonReportServiceStub( + ReportServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonReportServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonReportServiceStub, 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 HttpJsonReportServiceStub( + ReportServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings searchTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(searchMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + + this.searchCallable = + callableFactory.createUnaryCallable( + searchTransportSettings, settings.searchSettings(), clientContext); + this.searchPagedCallable = + callableFactory.createPagedCallable( + searchTransportSettings, settings.searchSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(searchMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable searchCallable() { + return searchCallable; + } + + @Override + public UnaryCallable searchPagedCallable() { + return searchPagedCallable; + } + + @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-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1alpha/stub/ReportServiceStub.java b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1alpha/stub/ReportServiceStub.java new file mode 100644 index 000000000000..08969d53b2a7 --- /dev/null +++ b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1alpha/stub/ReportServiceStub.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.reports.v1alpha.stub; + +import static com.google.shopping.merchant.reports.v1alpha.ReportServiceClient.SearchPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.shopping.merchant.reports.v1alpha.SearchRequest; +import com.google.shopping.merchant.reports.v1alpha.SearchResponse; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the ReportService service API. + * + *

      This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class ReportServiceStub implements BackgroundResource { + + public UnaryCallable searchPagedCallable() { + throw new UnsupportedOperationException("Not implemented: searchPagedCallable()"); + } + + public UnaryCallable searchCallable() { + throw new UnsupportedOperationException("Not implemented: searchCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1alpha/stub/ReportServiceStubSettings.java b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1alpha/stub/ReportServiceStubSettings.java new file mode 100644 index 000000000000..8ce8f1dd7d31 --- /dev/null +++ b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1alpha/stub/ReportServiceStubSettings.java @@ -0,0 +1,405 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.reports.v1alpha.stub; + +import static com.google.shopping.merchant.reports.v1alpha.ReportServiceClient.SearchPagedResponse; + +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.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.shopping.merchant.reports.v1alpha.ReportRow; +import com.google.shopping.merchant.reports.v1alpha.SearchRequest; +import com.google.shopping.merchant.reports.v1alpha.SearchResponse; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link ReportServiceStub}. + * + *

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

        + *
      • The default service address (merchantapi.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 search: + * + *

      {@code
      + * // This snippet has been automatically generated and should be regarded as a code template only.
      + * // It will require modifications to work:
      + * // - It may require correct/in-range values for request initialization.
      + * // - It may require specifying regional endpoints when creating the service client as shown in
      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      + * ReportServiceStubSettings.Builder reportServiceSettingsBuilder =
      + *     ReportServiceStubSettings.newBuilder();
      + * reportServiceSettingsBuilder
      + *     .searchSettings()
      + *     .setRetrySettings(
      + *         reportServiceSettingsBuilder
      + *             .searchSettings()
      + *             .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());
      + * ReportServiceStubSettings reportServiceSettings = reportServiceSettingsBuilder.build();
      + * }
      + * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class ReportServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/content").build(); + + private final PagedCallSettings + searchSettings; + + private static final PagedListDescriptor + SEARCH_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public SearchRequest injectToken(SearchRequest payload, String token) { + return SearchRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public SearchRequest injectPageSize(SearchRequest payload, int pageSize) { + return SearchRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(SearchRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(SearchResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(SearchResponse payload) { + return payload.getResultsList(); + } + }; + + private static final PagedListResponseFactory + SEARCH_PAGE_STR_FACT = + new PagedListResponseFactory() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + SearchRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, SEARCH_PAGE_STR_DESC, request, context); + return SearchPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to search. */ + public PagedCallSettings searchSettings() { + return searchSettings; + } + + public ReportServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcReportServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonReportServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "merchantapi"; + } + + /** 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 "merchantapi.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "merchantapi.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(ReportServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(ReportServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ReportServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected ReportServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + searchSettings = settingsBuilder.searchSettings().build(); + } + + /** Builder for ReportServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final PagedCallSettings.Builder + searchSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + 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(ClientContext clientContext) { + super(clientContext); + + searchSettings = PagedCallSettings.newBuilder(SEARCH_PAGE_STR_FACT); + + unaryMethodSettingsBuilders = + ImmutableList.>of(searchSettings); + initDefaults(this); + } + + protected Builder(ReportServiceStubSettings settings) { + super(settings); + + searchSettings = settings.searchSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of(searchSettings); + } + + 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 + .searchSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

      Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to search. */ + public PagedCallSettings.Builder + searchSettings() { + return searchSettings; + } + + @Override + public ReportServiceStubSettings build() throws IOException { + return new ReportServiceStubSettings(this); + } + } +} diff --git a/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/resources/META-INF/native-image/com.google.shopping.merchant.reports.v1alpha/reflect-config.json b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/resources/META-INF/native-image/com.google.shopping.merchant.reports.v1alpha/reflect-config.json new file mode 100644 index 000000000000..ba814d891c31 --- /dev/null +++ b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/resources/META-INF/native-image/com.google.shopping.merchant.reports.v1alpha/reflect-config.json @@ -0,0 +1,1892 @@ +[ + { + "name": "com.google.api.ClientLibraryDestination", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibraryOrganization", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldBehavior", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.LaunchStage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$ExperimentalFeatures", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$ExperimentalFeatures$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$History", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Style", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$Edition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$VerificationState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$EnumType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$FieldPresence", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$JsonFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$MessageEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$RepeatedFieldEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Utf8Validation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Label", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$CType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$JSType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionRetention", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionTargetType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$OptimizeMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Semantic", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$IdempotencyLevel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView$InventoryStatus", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.MarketingMethod", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.MarketingMethod$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.MarketingMethod$MarketingMethodEnum", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView$Effectiveness", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.ProductView", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.ProductView$AggregatedReportingContextStatus", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.ProductView$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.ProductView$ClickPotential", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.ProductView$ItemIssue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.ProductView$ItemIssue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.ProductView$ItemIssue$ItemIssueResolution", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.ProductView$ItemIssue$ItemIssueSeverity", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.ProductView$ItemIssue$ItemIssueSeverity$AggregatedIssueSeverity", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.ProductView$ItemIssue$ItemIssueSeverity$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.ProductView$ItemIssue$ItemIssueSeverity$IssueSeverityPerReportingContext", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.ProductView$ItemIssue$ItemIssueSeverity$IssueSeverityPerReportingContext$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.ProductView$ItemIssue$ItemIssueType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.ProductView$ItemIssue$ItemIssueType$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.RelativeDemand", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.RelativeDemand$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.RelativeDemand$RelativeDemandEnum", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType$RelativeDemandChangeTypeEnum", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.ReportGranularity", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.ReportGranularity$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.ReportGranularity$ReportGranularityEnum", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.ReportRow", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.ReportRow$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.SearchRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.SearchRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.SearchResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.SearchResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.TrafficSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.TrafficSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.TrafficSource$TrafficSourceEnum", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.type.Channel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.type.Channel$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.type.Channel$ChannelEnum", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.type.CustomAttribute", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.type.CustomAttribute$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.type.Destination", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.type.Destination$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.type.Destination$DestinationEnum", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.type.Price", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.type.Price$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.type.ReportingContext", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.type.ReportingContext$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.type.ReportingContext$ReportingContextEnum", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.type.Weight", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.type.Weight$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.type.Weight$WeightUnit", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.Date", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.Date$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + } +] \ No newline at end of file diff --git a/java-shopping-merchant-reports/google-shopping-merchant-reports/src/test/java/com/google/shopping/merchant/reports/v1alpha/MockReportService.java b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/test/java/com/google/shopping/merchant/reports/v1alpha/MockReportService.java new file mode 100644 index 000000000000..6bb0c2610ed8 --- /dev/null +++ b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/test/java/com/google/shopping/merchant/reports/v1alpha/MockReportService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.reports.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockReportService implements MockGrpcService { + private final MockReportServiceImpl serviceImpl; + + public MockReportService() { + serviceImpl = new MockReportServiceImpl(); + } + + @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-shopping-merchant-reports/google-shopping-merchant-reports/src/test/java/com/google/shopping/merchant/reports/v1alpha/MockReportServiceImpl.java b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/test/java/com/google/shopping/merchant/reports/v1alpha/MockReportServiceImpl.java new file mode 100644 index 000000000000..21d3e5b7a234 --- /dev/null +++ b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/test/java/com/google/shopping/merchant/reports/v1alpha/MockReportServiceImpl.java @@ -0,0 +1,80 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.reports.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.protobuf.AbstractMessage; +import com.google.shopping.merchant.reports.v1alpha.ReportServiceGrpc.ReportServiceImplBase; +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 MockReportServiceImpl extends ReportServiceImplBase { + private List requests; + private Queue responses; + + public MockReportServiceImpl() { + 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 search(SearchRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SearchResponse) { + requests.add(request); + responseObserver.onNext(((SearchResponse) 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 Search, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SearchResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-shopping-merchant-reports/google-shopping-merchant-reports/src/test/java/com/google/shopping/merchant/reports/v1alpha/ReportServiceClientHttpJsonTest.java b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/test/java/com/google/shopping/merchant/reports/v1alpha/ReportServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..b4f4331a0f14 --- /dev/null +++ b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/test/java/com/google/shopping/merchant/reports/v1alpha/ReportServiceClientHttpJsonTest.java @@ -0,0 +1,127 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.reports.v1alpha; + +import static com.google.shopping.merchant.reports.v1alpha.ReportServiceClient.SearchPagedResponse; + +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.shopping.merchant.reports.v1alpha.stub.HttpJsonReportServiceStub; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class ReportServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static ReportServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonReportServiceStub.getMethodDescriptors(), + ReportServiceSettings.getDefaultEndpoint()); + ReportServiceSettings settings = + ReportServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + ReportServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ReportServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void searchTest() throws Exception { + ReportRow responsesElement = ReportRow.newBuilder().build(); + SearchResponse expectedResponse = + SearchResponse.newBuilder() + .setNextPageToken("") + .addAllResults(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "accounts/account-4811"; + + SearchPagedResponse pagedListResponse = client.search(parent); + + 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 searchExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "accounts/account-4811"; + client.search(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-shopping-merchant-reports/google-shopping-merchant-reports/src/test/java/com/google/shopping/merchant/reports/v1alpha/ReportServiceClientTest.java b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/test/java/com/google/shopping/merchant/reports/v1alpha/ReportServiceClientTest.java new file mode 100644 index 000000000000..41d2adfdcb3f --- /dev/null +++ b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/test/java/com/google/shopping/merchant/reports/v1alpha/ReportServiceClientTest.java @@ -0,0 +1,124 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.reports.v1alpha; + +import static com.google.shopping.merchant.reports.v1alpha.ReportServiceClient.SearchPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.common.collect.Lists; +import com.google.protobuf.AbstractMessage; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class ReportServiceClientTest { + private static MockReportService mockReportService; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private ReportServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockReportService = new MockReportService(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockReportService)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + ReportServiceSettings settings = + ReportServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ReportServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void searchTest() throws Exception { + ReportRow responsesElement = ReportRow.newBuilder().build(); + SearchResponse expectedResponse = + SearchResponse.newBuilder() + .setNextPageToken("") + .addAllResults(Arrays.asList(responsesElement)) + .build(); + mockReportService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + SearchPagedResponse pagedListResponse = client.search(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getResultsList().get(0), resources.get(0)); + + List actualRequests = mockReportService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SearchRequest actualRequest = ((SearchRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void searchExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockReportService.addException(exception); + + try { + String parent = "parent-995424086"; + client.search(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1alpha/pom.xml b/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1alpha/pom.xml new file mode 100644 index 000000000000..3bba1bc18911 --- /dev/null +++ b/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1alpha/pom.xml @@ -0,0 +1,45 @@ + + 4.0.0 + com.google.shopping.api.grpc + grpc-google-shopping-merchant-reports-v1alpha + 0.44.0 + grpc-google-shopping-merchant-reports-v1alpha + GRPC library for google-shopping-merchant-reports + + com.google.shopping + google-shopping-merchant-reports-parent + 0.44.0 + + + + io.grpc + grpc-api + + + io.grpc + grpc-stub + + + io.grpc + grpc-protobuf + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-common-protos + + + com.google.shopping.api.grpc + proto-google-shopping-merchant-reports-v1alpha + + + com.google.guava + guava + + + diff --git a/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/ReportServiceGrpc.java b/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/ReportServiceGrpc.java new file mode 100644 index 000000000000..399c344a32ce --- /dev/null +++ b/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/ReportServiceGrpc.java @@ -0,0 +1,439 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.reports.v1alpha; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
      + * Service for retrieving reports and insights about your products, their
      + * performance, and their competitive environment on Google.
      + * 
      + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/shopping/merchant/reports/v1alpha/reports.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class ReportServiceGrpc { + + private ReportServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.shopping.merchant.reports.v1alpha.ReportService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.shopping.merchant.reports.v1alpha.SearchRequest, + com.google.shopping.merchant.reports.v1alpha.SearchResponse> + getSearchMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "Search", + requestType = com.google.shopping.merchant.reports.v1alpha.SearchRequest.class, + responseType = com.google.shopping.merchant.reports.v1alpha.SearchResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.shopping.merchant.reports.v1alpha.SearchRequest, + com.google.shopping.merchant.reports.v1alpha.SearchResponse> + getSearchMethod() { + io.grpc.MethodDescriptor< + com.google.shopping.merchant.reports.v1alpha.SearchRequest, + com.google.shopping.merchant.reports.v1alpha.SearchResponse> + getSearchMethod; + if ((getSearchMethod = ReportServiceGrpc.getSearchMethod) == null) { + synchronized (ReportServiceGrpc.class) { + if ((getSearchMethod = ReportServiceGrpc.getSearchMethod) == null) { + ReportServiceGrpc.getSearchMethod = + getSearchMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Search")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.shopping.merchant.reports.v1alpha.SearchRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.shopping.merchant.reports.v1alpha.SearchResponse + .getDefaultInstance())) + .setSchemaDescriptor(new ReportServiceMethodDescriptorSupplier("Search")) + .build(); + } + } + } + return getSearchMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static ReportServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ReportServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ReportServiceStub(channel, callOptions); + } + }; + return ReportServiceStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static ReportServiceBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ReportServiceBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ReportServiceBlockingV2Stub(channel, callOptions); + } + }; + return ReportServiceBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ReportServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ReportServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ReportServiceBlockingStub(channel, callOptions); + } + }; + return ReportServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static ReportServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ReportServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ReportServiceFutureStub(channel, callOptions); + } + }; + return ReportServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
      +   * Service for retrieving reports and insights about your products, their
      +   * performance, and their competitive environment on Google.
      +   * 
      + */ + public interface AsyncService { + + /** + * + * + *
      +     * Retrieves a report defined by a search query. The response might contain
      +     * fewer rows than specified by `page_size`. Rely on `next_page_token` to
      +     * determine if there are more rows to be requested.
      +     * 
      + */ + default void search( + com.google.shopping.merchant.reports.v1alpha.SearchRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSearchMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service ReportService. + * + *
      +   * Service for retrieving reports and insights about your products, their
      +   * performance, and their competitive environment on Google.
      +   * 
      + */ + public abstract static class ReportServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return ReportServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service ReportService. + * + *
      +   * Service for retrieving reports and insights about your products, their
      +   * performance, and their competitive environment on Google.
      +   * 
      + */ + public static final class ReportServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private ReportServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ReportServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ReportServiceStub(channel, callOptions); + } + + /** + * + * + *
      +     * Retrieves a report defined by a search query. The response might contain
      +     * fewer rows than specified by `page_size`. Rely on `next_page_token` to
      +     * determine if there are more rows to be requested.
      +     * 
      + */ + public void search( + com.google.shopping.merchant.reports.v1alpha.SearchRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSearchMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service ReportService. + * + *
      +   * Service for retrieving reports and insights about your products, their
      +   * performance, and their competitive environment on Google.
      +   * 
      + */ + public static final class ReportServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private ReportServiceBlockingV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ReportServiceBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ReportServiceBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
      +     * Retrieves a report defined by a search query. The response might contain
      +     * fewer rows than specified by `page_size`. Rely on `next_page_token` to
      +     * determine if there are more rows to be requested.
      +     * 
      + */ + public com.google.shopping.merchant.reports.v1alpha.SearchResponse search( + com.google.shopping.merchant.reports.v1alpha.SearchRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSearchMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service ReportService. + * + *
      +   * Service for retrieving reports and insights about your products, their
      +   * performance, and their competitive environment on Google.
      +   * 
      + */ + public static final class ReportServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ReportServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ReportServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ReportServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
      +     * Retrieves a report defined by a search query. The response might contain
      +     * fewer rows than specified by `page_size`. Rely on `next_page_token` to
      +     * determine if there are more rows to be requested.
      +     * 
      + */ + public com.google.shopping.merchant.reports.v1alpha.SearchResponse search( + com.google.shopping.merchant.reports.v1alpha.SearchRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSearchMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service ReportService. + * + *
      +   * Service for retrieving reports and insights about your products, their
      +   * performance, and their competitive environment on Google.
      +   * 
      + */ + public static final class ReportServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ReportServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ReportServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ReportServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
      +     * Retrieves a report defined by a search query. The response might contain
      +     * fewer rows than specified by `page_size`. Rely on `next_page_token` to
      +     * determine if there are more rows to be requested.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.shopping.merchant.reports.v1alpha.SearchResponse> + search(com.google.shopping.merchant.reports.v1alpha.SearchRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSearchMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_SEARCH = 0; + + 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_SEARCH: + serviceImpl.search( + (com.google.shopping.merchant.reports.v1alpha.SearchRequest) request, + (io.grpc.stub.StreamObserver< + com.google.shopping.merchant.reports.v1alpha.SearchResponse>) + 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( + getSearchMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.shopping.merchant.reports.v1alpha.SearchRequest, + com.google.shopping.merchant.reports.v1alpha.SearchResponse>( + service, METHODID_SEARCH))) + .build(); + } + + private abstract static class ReportServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ReportServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("ReportService"); + } + } + + private static final class ReportServiceFileDescriptorSupplier + extends ReportServiceBaseDescriptorSupplier { + ReportServiceFileDescriptorSupplier() {} + } + + private static final class ReportServiceMethodDescriptorSupplier + extends ReportServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + ReportServiceMethodDescriptorSupplier(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 (ReportServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ReportServiceFileDescriptorSupplier()) + .addMethod(getSearchMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1beta/pom.xml b/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1beta/pom.xml index 9d951f3bf54d..dd407ee42109 100644 --- a/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1beta/pom.xml +++ b/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-reports-v1beta - 0.43.0 + 0.44.0 grpc-google-shopping-merchant-reports-v1beta GRPC library for google-shopping-merchant-reports com.google.shopping google-shopping-merchant-reports-parent - 0.43.0 + 0.44.0 diff --git a/java-shopping-merchant-reports/pom.xml b/java-shopping-merchant-reports/pom.xml index b3cdc486d123..701af39ab4a1 100644 --- a/java-shopping-merchant-reports/pom.xml +++ b/java-shopping-merchant-reports/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-reports-parent pom - 0.43.0 + 0.44.0 Google Merchant API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,27 @@ com.google.shopping google-shopping-merchant-reports - 0.43.0 + 0.44.0 + + + com.google.shopping.api.grpc + proto-google-shopping-merchant-reports-v1alpha + 0.44.0 + + + com.google.shopping.api.grpc + grpc-google-shopping-merchant-reports-v1alpha + 0.44.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-reports-v1beta - 0.43.0 + 0.44.0 com.google.shopping.api.grpc proto-google-shopping-merchant-reports-v1beta - 0.43.0 + 0.44.0 @@ -47,7 +57,9 @@ google-shopping-merchant-reports grpc-google-shopping-merchant-reports-v1beta + grpc-google-shopping-merchant-reports-v1alpha proto-google-shopping-merchant-reports-v1beta + proto-google-shopping-merchant-reports-v1alpha google-shopping-merchant-reports-bom diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/clirr-ignored-differences.xml b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/clirr-ignored-differences.xml new file mode 100644 index 000000000000..6bb874419da3 --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/clirr-ignored-differences.xml @@ -0,0 +1,80 @@ + + + + + 7012 + com/google/shopping/merchant/reports/v1alpha/*OrBuilder + * get*(*) + + + 7012 + com/google/shopping/merchant/reports/v1alpha/*OrBuilder + boolean contains*(*) + + + 7012 + com/google/shopping/merchant/reports/v1alpha/*OrBuilder + boolean has*(*) + + + + 7006 + com/google/shopping/merchant/reports/v1alpha/** + * getDefaultInstanceForType() + ** + + + 7006 + com/google/shopping/merchant/reports/v1alpha/** + * addRepeatedField(*) + ** + + + 7006 + com/google/shopping/merchant/reports/v1alpha/** + * clear() + ** + + + 7006 + com/google/shopping/merchant/reports/v1alpha/** + * clearField(*) + ** + + + 7006 + com/google/shopping/merchant/reports/v1alpha/** + * clearOneof(*) + ** + + + 7006 + com/google/shopping/merchant/reports/v1alpha/** + * clone() + ** + + + 7006 + com/google/shopping/merchant/reports/v1alpha/** + * mergeUnknownFields(*) + ** + + + 7006 + com/google/shopping/merchant/reports/v1alpha/** + * setField(*) + ** + + + 7006 + com/google/shopping/merchant/reports/v1alpha/** + * setRepeatedField(*) + ** + + + 7006 + com/google/shopping/merchant/reports/v1alpha/** + * setUnknownFields(*) + ** + + diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/pom.xml b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/pom.xml new file mode 100644 index 000000000000..91c62044c0a2 --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/pom.xml @@ -0,0 +1,37 @@ + + 4.0.0 + com.google.shopping.api.grpc + proto-google-shopping-merchant-reports-v1alpha + 0.44.0 + proto-google-shopping-merchant-reports-v1alpha + Proto library for google-shopping-merchant-reports + + com.google.shopping + google-shopping-merchant-reports-parent + 0.44.0 + + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-common-protos + + + com.google.api.grpc + proto-google-iam-v1 + + + com.google.api + api-common + + + com.google.guava + guava + + + diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/BestSellersBrandView.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/BestSellersBrandView.java new file mode 100644 index 000000000000..d25230eb1069 --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/BestSellersBrandView.java @@ -0,0 +1,2714 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/reports/v1alpha/reports.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.reports.v1alpha; + +/** + * + * + *
      + * Fields available for query in `best_sellers_brand_view` table.
      + *
      + * [Best sellers](https://support.google.com/merchants/answer/9488679) report
      + * with top brands.
      + *
      + * Values are only set for fields requested explicitly in the request's search
      + * query.
      + * 
      + * + * Protobuf type {@code google.shopping.merchant.reports.v1alpha.BestSellersBrandView} + */ +public final class BestSellersBrandView extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.reports.v1alpha.BestSellersBrandView) + BestSellersBrandViewOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BestSellersBrandView.newBuilder() to construct. + private BestSellersBrandView(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BestSellersBrandView() { + reportGranularity_ = 0; + reportCountryCode_ = ""; + brand_ = ""; + relativeDemand_ = 0; + previousRelativeDemand_ = 0; + relativeDemandChange_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BestSellersBrandView(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_BestSellersBrandView_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_BestSellersBrandView_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView.class, + com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView.Builder.class); + } + + private int bitField0_; + public static final int REPORT_DATE_FIELD_NUMBER = 1; + private com.google.type.Date reportDate_; + + /** + * + * + *
      +   * Report date. The value of this field can only be one of the following:
      +   *
      +   * *   The first day of the week (Monday) for weekly reports,
      +   * *   The first day of the month for monthly reports.
      +   *
      +   * Required in the `SELECT` clause. If a `WHERE` condition on `report_date` is
      +   * not specified in the query, the latest available weekly or monthly report
      +   * is returned.
      +   * 
      + * + * .google.type.Date report_date = 1; + * + * @return Whether the reportDate field is set. + */ + @java.lang.Override + public boolean hasReportDate() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Report date. The value of this field can only be one of the following:
      +   *
      +   * *   The first day of the week (Monday) for weekly reports,
      +   * *   The first day of the month for monthly reports.
      +   *
      +   * Required in the `SELECT` clause. If a `WHERE` condition on `report_date` is
      +   * not specified in the query, the latest available weekly or monthly report
      +   * is returned.
      +   * 
      + * + * .google.type.Date report_date = 1; + * + * @return The reportDate. + */ + @java.lang.Override + public com.google.type.Date getReportDate() { + return reportDate_ == null ? com.google.type.Date.getDefaultInstance() : reportDate_; + } + + /** + * + * + *
      +   * Report date. The value of this field can only be one of the following:
      +   *
      +   * *   The first day of the week (Monday) for weekly reports,
      +   * *   The first day of the month for monthly reports.
      +   *
      +   * Required in the `SELECT` clause. If a `WHERE` condition on `report_date` is
      +   * not specified in the query, the latest available weekly or monthly report
      +   * is returned.
      +   * 
      + * + * .google.type.Date report_date = 1; + */ + @java.lang.Override + public com.google.type.DateOrBuilder getReportDateOrBuilder() { + return reportDate_ == null ? com.google.type.Date.getDefaultInstance() : reportDate_; + } + + public static final int REPORT_GRANULARITY_FIELD_NUMBER = 2; + private int reportGranularity_ = 0; + + /** + * + * + *
      +   * Granularity of the report. The ranking can be done over a week or a month
      +   * timeframe.
      +   *
      +   * Required in the `SELECT` clause. Condition on `report_granularity` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ReportGranularity.ReportGranularityEnum report_granularity = 2; + * + * + * @return Whether the reportGranularity field is set. + */ + @java.lang.Override + public boolean hasReportGranularity() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * Granularity of the report. The ranking can be done over a week or a month
      +   * timeframe.
      +   *
      +   * Required in the `SELECT` clause. Condition on `report_granularity` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ReportGranularity.ReportGranularityEnum report_granularity = 2; + * + * + * @return The enum numeric value on the wire for reportGranularity. + */ + @java.lang.Override + public int getReportGranularityValue() { + return reportGranularity_; + } + + /** + * + * + *
      +   * Granularity of the report. The ranking can be done over a week or a month
      +   * timeframe.
      +   *
      +   * Required in the `SELECT` clause. Condition on `report_granularity` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ReportGranularity.ReportGranularityEnum report_granularity = 2; + * + * + * @return The reportGranularity. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ReportGranularity.ReportGranularityEnum + getReportGranularity() { + com.google.shopping.merchant.reports.v1alpha.ReportGranularity.ReportGranularityEnum result = + com.google.shopping.merchant.reports.v1alpha.ReportGranularity.ReportGranularityEnum + .forNumber(reportGranularity_); + return result == null + ? com.google.shopping.merchant.reports.v1alpha.ReportGranularity.ReportGranularityEnum + .UNRECOGNIZED + : result; + } + + public static final int REPORT_COUNTRY_CODE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object reportCountryCode_ = ""; + + /** + * + * + *
      +   * Country where the ranking is calculated. Represented in the ISO 3166
      +   * format.
      +   *
      +   * Required in the `SELECT` clause. Condition on `report_country_code` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * optional string report_country_code = 3; + * + * @return Whether the reportCountryCode field is set. + */ + @java.lang.Override + public boolean hasReportCountryCode() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +   * Country where the ranking is calculated. Represented in the ISO 3166
      +   * format.
      +   *
      +   * Required in the `SELECT` clause. Condition on `report_country_code` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * optional string report_country_code = 3; + * + * @return The reportCountryCode. + */ + @java.lang.Override + public java.lang.String getReportCountryCode() { + java.lang.Object ref = reportCountryCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reportCountryCode_ = s; + return s; + } + } + + /** + * + * + *
      +   * Country where the ranking is calculated. Represented in the ISO 3166
      +   * format.
      +   *
      +   * Required in the `SELECT` clause. Condition on `report_country_code` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * optional string report_country_code = 3; + * + * @return The bytes for reportCountryCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getReportCountryCodeBytes() { + java.lang.Object ref = reportCountryCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + reportCountryCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REPORT_CATEGORY_ID_FIELD_NUMBER = 4; + private long reportCategoryId_ = 0L; + + /** + * + * + *
      +   * Google product category ID to calculate the ranking for, represented in
      +   * [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   *
      +   * Required in the `SELECT` clause. If a `WHERE` condition on
      +   * `report_category_id` is not specified in the query, rankings for all
      +   * top-level categories are returned.
      +   * 
      + * + * optional int64 report_category_id = 4; + * + * @return Whether the reportCategoryId field is set. + */ + @java.lang.Override + public boolean hasReportCategoryId() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +   * Google product category ID to calculate the ranking for, represented in
      +   * [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   *
      +   * Required in the `SELECT` clause. If a `WHERE` condition on
      +   * `report_category_id` is not specified in the query, rankings for all
      +   * top-level categories are returned.
      +   * 
      + * + * optional int64 report_category_id = 4; + * + * @return The reportCategoryId. + */ + @java.lang.Override + public long getReportCategoryId() { + return reportCategoryId_; + } + + public static final int BRAND_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object brand_ = ""; + + /** + * + * + *
      +   * Name of the brand.
      +   * 
      + * + * optional string brand = 6; + * + * @return Whether the brand field is set. + */ + @java.lang.Override + public boolean hasBrand() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
      +   * Name of the brand.
      +   * 
      + * + * optional string brand = 6; + * + * @return The brand. + */ + @java.lang.Override + public java.lang.String getBrand() { + java.lang.Object ref = brand_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + brand_ = s; + return s; + } + } + + /** + * + * + *
      +   * Name of the brand.
      +   * 
      + * + * optional string brand = 6; + * + * @return The bytes for brand. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBrandBytes() { + java.lang.Object ref = brand_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + brand_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RANK_FIELD_NUMBER = 7; + private long rank_ = 0L; + + /** + * + * + *
      +   * Popularity of the brand on Ads and organic surfaces, in the selected
      +   * category and country, based on the estimated number of units sold.
      +   * 
      + * + * optional int64 rank = 7; + * + * @return Whether the rank field is set. + */ + @java.lang.Override + public boolean hasRank() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
      +   * Popularity of the brand on Ads and organic surfaces, in the selected
      +   * category and country, based on the estimated number of units sold.
      +   * 
      + * + * optional int64 rank = 7; + * + * @return The rank. + */ + @java.lang.Override + public long getRank() { + return rank_; + } + + public static final int PREVIOUS_RANK_FIELD_NUMBER = 8; + private long previousRank_ = 0L; + + /** + * + * + *
      +   * Popularity rank in the previous week or month.
      +   * 
      + * + * optional int64 previous_rank = 8; + * + * @return Whether the previousRank field is set. + */ + @java.lang.Override + public boolean hasPreviousRank() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
      +   * Popularity rank in the previous week or month.
      +   * 
      + * + * optional int64 previous_rank = 8; + * + * @return The previousRank. + */ + @java.lang.Override + public long getPreviousRank() { + return previousRank_; + } + + public static final int RELATIVE_DEMAND_FIELD_NUMBER = 9; + private int relativeDemand_ = 0; + + /** + * + * + *
      +   * Estimated demand in relation to the brand with the highest popularity rank
      +   * in the same category and country.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum relative_demand = 9; + * + * + * @return Whether the relativeDemand field is set. + */ + @java.lang.Override + public boolean hasRelativeDemand() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
      +   * Estimated demand in relation to the brand with the highest popularity rank
      +   * in the same category and country.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum relative_demand = 9; + * + * + * @return The enum numeric value on the wire for relativeDemand. + */ + @java.lang.Override + public int getRelativeDemandValue() { + return relativeDemand_; + } + + /** + * + * + *
      +   * Estimated demand in relation to the brand with the highest popularity rank
      +   * in the same category and country.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum relative_demand = 9; + * + * + * @return The relativeDemand. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum + getRelativeDemand() { + com.google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum result = + com.google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum.forNumber( + relativeDemand_); + return result == null + ? com.google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum + .UNRECOGNIZED + : result; + } + + public static final int PREVIOUS_RELATIVE_DEMAND_FIELD_NUMBER = 10; + private int previousRelativeDemand_ = 0; + + /** + * + * + *
      +   * Estimated demand in relation to the brand with the highest popularity rank
      +   * in the same category and country in the previous week or month.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum previous_relative_demand = 10; + * + * + * @return Whether the previousRelativeDemand field is set. + */ + @java.lang.Override + public boolean hasPreviousRelativeDemand() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
      +   * Estimated demand in relation to the brand with the highest popularity rank
      +   * in the same category and country in the previous week or month.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum previous_relative_demand = 10; + * + * + * @return The enum numeric value on the wire for previousRelativeDemand. + */ + @java.lang.Override + public int getPreviousRelativeDemandValue() { + return previousRelativeDemand_; + } + + /** + * + * + *
      +   * Estimated demand in relation to the brand with the highest popularity rank
      +   * in the same category and country in the previous week or month.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum previous_relative_demand = 10; + * + * + * @return The previousRelativeDemand. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum + getPreviousRelativeDemand() { + com.google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum result = + com.google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum.forNumber( + previousRelativeDemand_); + return result == null + ? com.google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum + .UNRECOGNIZED + : result; + } + + public static final int RELATIVE_DEMAND_CHANGE_FIELD_NUMBER = 11; + private int relativeDemandChange_ = 0; + + /** + * + * + *
      +   * Change in the estimated demand. Whether it rose, sank or remained flat.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 11; + * + * + * @return Whether the relativeDemandChange field is set. + */ + @java.lang.Override + public boolean hasRelativeDemandChange() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
      +   * Change in the estimated demand. Whether it rose, sank or remained flat.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 11; + * + * + * @return The enum numeric value on the wire for relativeDemandChange. + */ + @java.lang.Override + public int getRelativeDemandChangeValue() { + return relativeDemandChange_; + } + + /** + * + * + *
      +   * Change in the estimated demand. Whether it rose, sank or remained flat.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 11; + * + * + * @return The relativeDemandChange. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType + .RelativeDemandChangeTypeEnum + getRelativeDemandChange() { + com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType + .RelativeDemandChangeTypeEnum + result = + com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType + .RelativeDemandChangeTypeEnum.forNumber(relativeDemandChange_); + return result == null + ? com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType + .RelativeDemandChangeTypeEnum.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, getReportDate()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(2, reportGranularity_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, reportCountryCode_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeInt64(4, reportCategoryId_); + } + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, brand_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeInt64(7, rank_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeInt64(8, previousRank_); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeEnum(9, relativeDemand_); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeEnum(10, previousRelativeDemand_); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeEnum(11, relativeDemandChange_); + } + 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, getReportDate()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, reportGranularity_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, reportCountryCode_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, reportCategoryId_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, brand_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, rank_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, previousRank_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, relativeDemand_); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, previousRelativeDemand_); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, relativeDemandChange_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView)) { + return super.equals(obj); + } + com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView other = + (com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView) obj; + + if (hasReportDate() != other.hasReportDate()) return false; + if (hasReportDate()) { + if (!getReportDate().equals(other.getReportDate())) return false; + } + if (hasReportGranularity() != other.hasReportGranularity()) return false; + if (hasReportGranularity()) { + if (reportGranularity_ != other.reportGranularity_) return false; + } + if (hasReportCountryCode() != other.hasReportCountryCode()) return false; + if (hasReportCountryCode()) { + if (!getReportCountryCode().equals(other.getReportCountryCode())) return false; + } + if (hasReportCategoryId() != other.hasReportCategoryId()) return false; + if (hasReportCategoryId()) { + if (getReportCategoryId() != other.getReportCategoryId()) return false; + } + if (hasBrand() != other.hasBrand()) return false; + if (hasBrand()) { + if (!getBrand().equals(other.getBrand())) return false; + } + if (hasRank() != other.hasRank()) return false; + if (hasRank()) { + if (getRank() != other.getRank()) return false; + } + if (hasPreviousRank() != other.hasPreviousRank()) return false; + if (hasPreviousRank()) { + if (getPreviousRank() != other.getPreviousRank()) return false; + } + if (hasRelativeDemand() != other.hasRelativeDemand()) return false; + if (hasRelativeDemand()) { + if (relativeDemand_ != other.relativeDemand_) return false; + } + if (hasPreviousRelativeDemand() != other.hasPreviousRelativeDemand()) return false; + if (hasPreviousRelativeDemand()) { + if (previousRelativeDemand_ != other.previousRelativeDemand_) return false; + } + if (hasRelativeDemandChange() != other.hasRelativeDemandChange()) return false; + if (hasRelativeDemandChange()) { + if (relativeDemandChange_ != other.relativeDemandChange_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasReportDate()) { + hash = (37 * hash) + REPORT_DATE_FIELD_NUMBER; + hash = (53 * hash) + getReportDate().hashCode(); + } + if (hasReportGranularity()) { + hash = (37 * hash) + REPORT_GRANULARITY_FIELD_NUMBER; + hash = (53 * hash) + reportGranularity_; + } + if (hasReportCountryCode()) { + hash = (37 * hash) + REPORT_COUNTRY_CODE_FIELD_NUMBER; + hash = (53 * hash) + getReportCountryCode().hashCode(); + } + if (hasReportCategoryId()) { + hash = (37 * hash) + REPORT_CATEGORY_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getReportCategoryId()); + } + if (hasBrand()) { + hash = (37 * hash) + BRAND_FIELD_NUMBER; + hash = (53 * hash) + getBrand().hashCode(); + } + if (hasRank()) { + hash = (37 * hash) + RANK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRank()); + } + if (hasPreviousRank()) { + hash = (37 * hash) + PREVIOUS_RANK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPreviousRank()); + } + if (hasRelativeDemand()) { + hash = (37 * hash) + RELATIVE_DEMAND_FIELD_NUMBER; + hash = (53 * hash) + relativeDemand_; + } + if (hasPreviousRelativeDemand()) { + hash = (37 * hash) + PREVIOUS_RELATIVE_DEMAND_FIELD_NUMBER; + hash = (53 * hash) + previousRelativeDemand_; + } + if (hasRelativeDemandChange()) { + hash = (37 * hash) + RELATIVE_DEMAND_CHANGE_FIELD_NUMBER; + hash = (53 * hash) + relativeDemandChange_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Fields available for query in `best_sellers_brand_view` table.
      +   *
      +   * [Best sellers](https://support.google.com/merchants/answer/9488679) report
      +   * with top brands.
      +   *
      +   * Values are only set for fields requested explicitly in the request's search
      +   * query.
      +   * 
      + * + * Protobuf type {@code google.shopping.merchant.reports.v1alpha.BestSellersBrandView} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.reports.v1alpha.BestSellersBrandView) + com.google.shopping.merchant.reports.v1alpha.BestSellersBrandViewOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_BestSellersBrandView_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_BestSellersBrandView_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView.class, + com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView.Builder.class); + } + + // Construct using + // com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getReportDateFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + reportDate_ = null; + if (reportDateBuilder_ != null) { + reportDateBuilder_.dispose(); + reportDateBuilder_ = null; + } + reportGranularity_ = 0; + reportCountryCode_ = ""; + reportCategoryId_ = 0L; + brand_ = ""; + rank_ = 0L; + previousRank_ = 0L; + relativeDemand_ = 0; + previousRelativeDemand_ = 0; + relativeDemandChange_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_BestSellersBrandView_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView + getDefaultInstanceForType() { + return com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView.getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView build() { + com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView buildPartial() { + com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView result = + new com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.reportDate_ = reportDateBuilder_ == null ? reportDate_ : reportDateBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.reportGranularity_ = reportGranularity_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.reportCountryCode_ = reportCountryCode_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.reportCategoryId_ = reportCategoryId_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.brand_ = brand_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.rank_ = rank_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.previousRank_ = previousRank_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.relativeDemand_ = relativeDemand_; + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.previousRelativeDemand_ = previousRelativeDemand_; + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.relativeDemandChange_ = relativeDemandChange_; + to_bitField0_ |= 0x00000200; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView) { + return mergeFrom((com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView other) { + if (other + == com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView.getDefaultInstance()) + return this; + if (other.hasReportDate()) { + mergeReportDate(other.getReportDate()); + } + if (other.hasReportGranularity()) { + setReportGranularity(other.getReportGranularity()); + } + if (other.hasReportCountryCode()) { + reportCountryCode_ = other.reportCountryCode_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasReportCategoryId()) { + setReportCategoryId(other.getReportCategoryId()); + } + if (other.hasBrand()) { + brand_ = other.brand_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasRank()) { + setRank(other.getRank()); + } + if (other.hasPreviousRank()) { + setPreviousRank(other.getPreviousRank()); + } + if (other.hasRelativeDemand()) { + setRelativeDemand(other.getRelativeDemand()); + } + if (other.hasPreviousRelativeDemand()) { + setPreviousRelativeDemand(other.getPreviousRelativeDemand()); + } + if (other.hasRelativeDemandChange()) { + setRelativeDemandChange(other.getRelativeDemandChange()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(getReportDateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + reportGranularity_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + reportCountryCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + reportCategoryId_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 50: + { + brand_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + case 56: + { + rank_ = input.readInt64(); + bitField0_ |= 0x00000020; + break; + } // case 56 + case 64: + { + previousRank_ = input.readInt64(); + bitField0_ |= 0x00000040; + break; + } // case 64 + case 72: + { + relativeDemand_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 72 + case 80: + { + previousRelativeDemand_ = input.readEnum(); + bitField0_ |= 0x00000100; + break; + } // case 80 + case 88: + { + relativeDemandChange_ = input.readEnum(); + bitField0_ |= 0x00000200; + break; + } // case 88 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.type.Date reportDate_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + reportDateBuilder_; + + /** + * + * + *
      +     * Report date. The value of this field can only be one of the following:
      +     *
      +     * *   The first day of the week (Monday) for weekly reports,
      +     * *   The first day of the month for monthly reports.
      +     *
      +     * Required in the `SELECT` clause. If a `WHERE` condition on `report_date` is
      +     * not specified in the query, the latest available weekly or monthly report
      +     * is returned.
      +     * 
      + * + * .google.type.Date report_date = 1; + * + * @return Whether the reportDate field is set. + */ + public boolean hasReportDate() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +     * Report date. The value of this field can only be one of the following:
      +     *
      +     * *   The first day of the week (Monday) for weekly reports,
      +     * *   The first day of the month for monthly reports.
      +     *
      +     * Required in the `SELECT` clause. If a `WHERE` condition on `report_date` is
      +     * not specified in the query, the latest available weekly or monthly report
      +     * is returned.
      +     * 
      + * + * .google.type.Date report_date = 1; + * + * @return The reportDate. + */ + public com.google.type.Date getReportDate() { + if (reportDateBuilder_ == null) { + return reportDate_ == null ? com.google.type.Date.getDefaultInstance() : reportDate_; + } else { + return reportDateBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Report date. The value of this field can only be one of the following:
      +     *
      +     * *   The first day of the week (Monday) for weekly reports,
      +     * *   The first day of the month for monthly reports.
      +     *
      +     * Required in the `SELECT` clause. If a `WHERE` condition on `report_date` is
      +     * not specified in the query, the latest available weekly or monthly report
      +     * is returned.
      +     * 
      + * + * .google.type.Date report_date = 1; + */ + public Builder setReportDate(com.google.type.Date value) { + if (reportDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reportDate_ = value; + } else { + reportDateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Report date. The value of this field can only be one of the following:
      +     *
      +     * *   The first day of the week (Monday) for weekly reports,
      +     * *   The first day of the month for monthly reports.
      +     *
      +     * Required in the `SELECT` clause. If a `WHERE` condition on `report_date` is
      +     * not specified in the query, the latest available weekly or monthly report
      +     * is returned.
      +     * 
      + * + * .google.type.Date report_date = 1; + */ + public Builder setReportDate(com.google.type.Date.Builder builderForValue) { + if (reportDateBuilder_ == null) { + reportDate_ = builderForValue.build(); + } else { + reportDateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Report date. The value of this field can only be one of the following:
      +     *
      +     * *   The first day of the week (Monday) for weekly reports,
      +     * *   The first day of the month for monthly reports.
      +     *
      +     * Required in the `SELECT` clause. If a `WHERE` condition on `report_date` is
      +     * not specified in the query, the latest available weekly or monthly report
      +     * is returned.
      +     * 
      + * + * .google.type.Date report_date = 1; + */ + public Builder mergeReportDate(com.google.type.Date value) { + if (reportDateBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && reportDate_ != null + && reportDate_ != com.google.type.Date.getDefaultInstance()) { + getReportDateBuilder().mergeFrom(value); + } else { + reportDate_ = value; + } + } else { + reportDateBuilder_.mergeFrom(value); + } + if (reportDate_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Report date. The value of this field can only be one of the following:
      +     *
      +     * *   The first day of the week (Monday) for weekly reports,
      +     * *   The first day of the month for monthly reports.
      +     *
      +     * Required in the `SELECT` clause. If a `WHERE` condition on `report_date` is
      +     * not specified in the query, the latest available weekly or monthly report
      +     * is returned.
      +     * 
      + * + * .google.type.Date report_date = 1; + */ + public Builder clearReportDate() { + bitField0_ = (bitField0_ & ~0x00000001); + reportDate_ = null; + if (reportDateBuilder_ != null) { + reportDateBuilder_.dispose(); + reportDateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Report date. The value of this field can only be one of the following:
      +     *
      +     * *   The first day of the week (Monday) for weekly reports,
      +     * *   The first day of the month for monthly reports.
      +     *
      +     * Required in the `SELECT` clause. If a `WHERE` condition on `report_date` is
      +     * not specified in the query, the latest available weekly or monthly report
      +     * is returned.
      +     * 
      + * + * .google.type.Date report_date = 1; + */ + public com.google.type.Date.Builder getReportDateBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getReportDateFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Report date. The value of this field can only be one of the following:
      +     *
      +     * *   The first day of the week (Monday) for weekly reports,
      +     * *   The first day of the month for monthly reports.
      +     *
      +     * Required in the `SELECT` clause. If a `WHERE` condition on `report_date` is
      +     * not specified in the query, the latest available weekly or monthly report
      +     * is returned.
      +     * 
      + * + * .google.type.Date report_date = 1; + */ + public com.google.type.DateOrBuilder getReportDateOrBuilder() { + if (reportDateBuilder_ != null) { + return reportDateBuilder_.getMessageOrBuilder(); + } else { + return reportDate_ == null ? com.google.type.Date.getDefaultInstance() : reportDate_; + } + } + + /** + * + * + *
      +     * Report date. The value of this field can only be one of the following:
      +     *
      +     * *   The first day of the week (Monday) for weekly reports,
      +     * *   The first day of the month for monthly reports.
      +     *
      +     * Required in the `SELECT` clause. If a `WHERE` condition on `report_date` is
      +     * not specified in the query, the latest available weekly or monthly report
      +     * is returned.
      +     * 
      + * + * .google.type.Date report_date = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getReportDateFieldBuilder() { + if (reportDateBuilder_ == null) { + reportDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getReportDate(), getParentForChildren(), isClean()); + reportDate_ = null; + } + return reportDateBuilder_; + } + + private int reportGranularity_ = 0; + + /** + * + * + *
      +     * Granularity of the report. The ranking can be done over a week or a month
      +     * timeframe.
      +     *
      +     * Required in the `SELECT` clause. Condition on `report_granularity` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ReportGranularity.ReportGranularityEnum report_granularity = 2; + * + * + * @return Whether the reportGranularity field is set. + */ + @java.lang.Override + public boolean hasReportGranularity() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +     * Granularity of the report. The ranking can be done over a week or a month
      +     * timeframe.
      +     *
      +     * Required in the `SELECT` clause. Condition on `report_granularity` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ReportGranularity.ReportGranularityEnum report_granularity = 2; + * + * + * @return The enum numeric value on the wire for reportGranularity. + */ + @java.lang.Override + public int getReportGranularityValue() { + return reportGranularity_; + } + + /** + * + * + *
      +     * Granularity of the report. The ranking can be done over a week or a month
      +     * timeframe.
      +     *
      +     * Required in the `SELECT` clause. Condition on `report_granularity` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ReportGranularity.ReportGranularityEnum report_granularity = 2; + * + * + * @param value The enum numeric value on the wire for reportGranularity to set. + * @return This builder for chaining. + */ + public Builder setReportGranularityValue(int value) { + reportGranularity_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Granularity of the report. The ranking can be done over a week or a month
      +     * timeframe.
      +     *
      +     * Required in the `SELECT` clause. Condition on `report_granularity` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ReportGranularity.ReportGranularityEnum report_granularity = 2; + * + * + * @return The reportGranularity. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ReportGranularity.ReportGranularityEnum + getReportGranularity() { + com.google.shopping.merchant.reports.v1alpha.ReportGranularity.ReportGranularityEnum result = + com.google.shopping.merchant.reports.v1alpha.ReportGranularity.ReportGranularityEnum + .forNumber(reportGranularity_); + return result == null + ? com.google.shopping.merchant.reports.v1alpha.ReportGranularity.ReportGranularityEnum + .UNRECOGNIZED + : result; + } + + /** + * + * + *
      +     * Granularity of the report. The ranking can be done over a week or a month
      +     * timeframe.
      +     *
      +     * Required in the `SELECT` clause. Condition on `report_granularity` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ReportGranularity.ReportGranularityEnum report_granularity = 2; + * + * + * @param value The reportGranularity to set. + * @return This builder for chaining. + */ + public Builder setReportGranularity( + com.google.shopping.merchant.reports.v1alpha.ReportGranularity.ReportGranularityEnum + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + reportGranularity_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Granularity of the report. The ranking can be done over a week or a month
      +     * timeframe.
      +     *
      +     * Required in the `SELECT` clause. Condition on `report_granularity` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ReportGranularity.ReportGranularityEnum report_granularity = 2; + * + * + * @return This builder for chaining. + */ + public Builder clearReportGranularity() { + bitField0_ = (bitField0_ & ~0x00000002); + reportGranularity_ = 0; + onChanged(); + return this; + } + + private java.lang.Object reportCountryCode_ = ""; + + /** + * + * + *
      +     * Country where the ranking is calculated. Represented in the ISO 3166
      +     * format.
      +     *
      +     * Required in the `SELECT` clause. Condition on `report_country_code` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * optional string report_country_code = 3; + * + * @return Whether the reportCountryCode field is set. + */ + public boolean hasReportCountryCode() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +     * Country where the ranking is calculated. Represented in the ISO 3166
      +     * format.
      +     *
      +     * Required in the `SELECT` clause. Condition on `report_country_code` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * optional string report_country_code = 3; + * + * @return The reportCountryCode. + */ + public java.lang.String getReportCountryCode() { + java.lang.Object ref = reportCountryCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reportCountryCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Country where the ranking is calculated. Represented in the ISO 3166
      +     * format.
      +     *
      +     * Required in the `SELECT` clause. Condition on `report_country_code` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * optional string report_country_code = 3; + * + * @return The bytes for reportCountryCode. + */ + public com.google.protobuf.ByteString getReportCountryCodeBytes() { + java.lang.Object ref = reportCountryCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + reportCountryCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Country where the ranking is calculated. Represented in the ISO 3166
      +     * format.
      +     *
      +     * Required in the `SELECT` clause. Condition on `report_country_code` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * optional string report_country_code = 3; + * + * @param value The reportCountryCode to set. + * @return This builder for chaining. + */ + public Builder setReportCountryCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + reportCountryCode_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Country where the ranking is calculated. Represented in the ISO 3166
      +     * format.
      +     *
      +     * Required in the `SELECT` clause. Condition on `report_country_code` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * optional string report_country_code = 3; + * + * @return This builder for chaining. + */ + public Builder clearReportCountryCode() { + reportCountryCode_ = getDefaultInstance().getReportCountryCode(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Country where the ranking is calculated. Represented in the ISO 3166
      +     * format.
      +     *
      +     * Required in the `SELECT` clause. Condition on `report_country_code` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * optional string report_country_code = 3; + * + * @param value The bytes for reportCountryCode to set. + * @return This builder for chaining. + */ + public Builder setReportCountryCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + reportCountryCode_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private long reportCategoryId_; + + /** + * + * + *
      +     * Google product category ID to calculate the ranking for, represented in
      +     * [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     *
      +     * Required in the `SELECT` clause. If a `WHERE` condition on
      +     * `report_category_id` is not specified in the query, rankings for all
      +     * top-level categories are returned.
      +     * 
      + * + * optional int64 report_category_id = 4; + * + * @return Whether the reportCategoryId field is set. + */ + @java.lang.Override + public boolean hasReportCategoryId() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +     * Google product category ID to calculate the ranking for, represented in
      +     * [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     *
      +     * Required in the `SELECT` clause. If a `WHERE` condition on
      +     * `report_category_id` is not specified in the query, rankings for all
      +     * top-level categories are returned.
      +     * 
      + * + * optional int64 report_category_id = 4; + * + * @return The reportCategoryId. + */ + @java.lang.Override + public long getReportCategoryId() { + return reportCategoryId_; + } + + /** + * + * + *
      +     * Google product category ID to calculate the ranking for, represented in
      +     * [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     *
      +     * Required in the `SELECT` clause. If a `WHERE` condition on
      +     * `report_category_id` is not specified in the query, rankings for all
      +     * top-level categories are returned.
      +     * 
      + * + * optional int64 report_category_id = 4; + * + * @param value The reportCategoryId to set. + * @return This builder for chaining. + */ + public Builder setReportCategoryId(long value) { + + reportCategoryId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Google product category ID to calculate the ranking for, represented in
      +     * [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     *
      +     * Required in the `SELECT` clause. If a `WHERE` condition on
      +     * `report_category_id` is not specified in the query, rankings for all
      +     * top-level categories are returned.
      +     * 
      + * + * optional int64 report_category_id = 4; + * + * @return This builder for chaining. + */ + public Builder clearReportCategoryId() { + bitField0_ = (bitField0_ & ~0x00000008); + reportCategoryId_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object brand_ = ""; + + /** + * + * + *
      +     * Name of the brand.
      +     * 
      + * + * optional string brand = 6; + * + * @return Whether the brand field is set. + */ + public boolean hasBrand() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
      +     * Name of the brand.
      +     * 
      + * + * optional string brand = 6; + * + * @return The brand. + */ + public java.lang.String getBrand() { + java.lang.Object ref = brand_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + brand_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Name of the brand.
      +     * 
      + * + * optional string brand = 6; + * + * @return The bytes for brand. + */ + public com.google.protobuf.ByteString getBrandBytes() { + java.lang.Object ref = brand_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + brand_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Name of the brand.
      +     * 
      + * + * optional string brand = 6; + * + * @param value The brand to set. + * @return This builder for chaining. + */ + public Builder setBrand(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + brand_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Name of the brand.
      +     * 
      + * + * optional string brand = 6; + * + * @return This builder for chaining. + */ + public Builder clearBrand() { + brand_ = getDefaultInstance().getBrand(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Name of the brand.
      +     * 
      + * + * optional string brand = 6; + * + * @param value The bytes for brand to set. + * @return This builder for chaining. + */ + public Builder setBrandBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + brand_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private long rank_; + + /** + * + * + *
      +     * Popularity of the brand on Ads and organic surfaces, in the selected
      +     * category and country, based on the estimated number of units sold.
      +     * 
      + * + * optional int64 rank = 7; + * + * @return Whether the rank field is set. + */ + @java.lang.Override + public boolean hasRank() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
      +     * Popularity of the brand on Ads and organic surfaces, in the selected
      +     * category and country, based on the estimated number of units sold.
      +     * 
      + * + * optional int64 rank = 7; + * + * @return The rank. + */ + @java.lang.Override + public long getRank() { + return rank_; + } + + /** + * + * + *
      +     * Popularity of the brand on Ads and organic surfaces, in the selected
      +     * category and country, based on the estimated number of units sold.
      +     * 
      + * + * optional int64 rank = 7; + * + * @param value The rank to set. + * @return This builder for chaining. + */ + public Builder setRank(long value) { + + rank_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Popularity of the brand on Ads and organic surfaces, in the selected
      +     * category and country, based on the estimated number of units sold.
      +     * 
      + * + * optional int64 rank = 7; + * + * @return This builder for chaining. + */ + public Builder clearRank() { + bitField0_ = (bitField0_ & ~0x00000020); + rank_ = 0L; + onChanged(); + return this; + } + + private long previousRank_; + + /** + * + * + *
      +     * Popularity rank in the previous week or month.
      +     * 
      + * + * optional int64 previous_rank = 8; + * + * @return Whether the previousRank field is set. + */ + @java.lang.Override + public boolean hasPreviousRank() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
      +     * Popularity rank in the previous week or month.
      +     * 
      + * + * optional int64 previous_rank = 8; + * + * @return The previousRank. + */ + @java.lang.Override + public long getPreviousRank() { + return previousRank_; + } + + /** + * + * + *
      +     * Popularity rank in the previous week or month.
      +     * 
      + * + * optional int64 previous_rank = 8; + * + * @param value The previousRank to set. + * @return This builder for chaining. + */ + public Builder setPreviousRank(long value) { + + previousRank_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Popularity rank in the previous week or month.
      +     * 
      + * + * optional int64 previous_rank = 8; + * + * @return This builder for chaining. + */ + public Builder clearPreviousRank() { + bitField0_ = (bitField0_ & ~0x00000040); + previousRank_ = 0L; + onChanged(); + return this; + } + + private int relativeDemand_ = 0; + + /** + * + * + *
      +     * Estimated demand in relation to the brand with the highest popularity rank
      +     * in the same category and country.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum relative_demand = 9; + * + * + * @return Whether the relativeDemand field is set. + */ + @java.lang.Override + public boolean hasRelativeDemand() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
      +     * Estimated demand in relation to the brand with the highest popularity rank
      +     * in the same category and country.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum relative_demand = 9; + * + * + * @return The enum numeric value on the wire for relativeDemand. + */ + @java.lang.Override + public int getRelativeDemandValue() { + return relativeDemand_; + } + + /** + * + * + *
      +     * Estimated demand in relation to the brand with the highest popularity rank
      +     * in the same category and country.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum relative_demand = 9; + * + * + * @param value The enum numeric value on the wire for relativeDemand to set. + * @return This builder for chaining. + */ + public Builder setRelativeDemandValue(int value) { + relativeDemand_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Estimated demand in relation to the brand with the highest popularity rank
      +     * in the same category and country.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum relative_demand = 9; + * + * + * @return The relativeDemand. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum + getRelativeDemand() { + com.google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum result = + com.google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum.forNumber( + relativeDemand_); + return result == null + ? com.google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum + .UNRECOGNIZED + : result; + } + + /** + * + * + *
      +     * Estimated demand in relation to the brand with the highest popularity rank
      +     * in the same category and country.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum relative_demand = 9; + * + * + * @param value The relativeDemand to set. + * @return This builder for chaining. + */ + public Builder setRelativeDemand( + com.google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + relativeDemand_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Estimated demand in relation to the brand with the highest popularity rank
      +     * in the same category and country.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum relative_demand = 9; + * + * + * @return This builder for chaining. + */ + public Builder clearRelativeDemand() { + bitField0_ = (bitField0_ & ~0x00000080); + relativeDemand_ = 0; + onChanged(); + return this; + } + + private int previousRelativeDemand_ = 0; + + /** + * + * + *
      +     * Estimated demand in relation to the brand with the highest popularity rank
      +     * in the same category and country in the previous week or month.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum previous_relative_demand = 10; + * + * + * @return Whether the previousRelativeDemand field is set. + */ + @java.lang.Override + public boolean hasPreviousRelativeDemand() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
      +     * Estimated demand in relation to the brand with the highest popularity rank
      +     * in the same category and country in the previous week or month.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum previous_relative_demand = 10; + * + * + * @return The enum numeric value on the wire for previousRelativeDemand. + */ + @java.lang.Override + public int getPreviousRelativeDemandValue() { + return previousRelativeDemand_; + } + + /** + * + * + *
      +     * Estimated demand in relation to the brand with the highest popularity rank
      +     * in the same category and country in the previous week or month.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum previous_relative_demand = 10; + * + * + * @param value The enum numeric value on the wire for previousRelativeDemand to set. + * @return This builder for chaining. + */ + public Builder setPreviousRelativeDemandValue(int value) { + previousRelativeDemand_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Estimated demand in relation to the brand with the highest popularity rank
      +     * in the same category and country in the previous week or month.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum previous_relative_demand = 10; + * + * + * @return The previousRelativeDemand. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum + getPreviousRelativeDemand() { + com.google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum result = + com.google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum.forNumber( + previousRelativeDemand_); + return result == null + ? com.google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum + .UNRECOGNIZED + : result; + } + + /** + * + * + *
      +     * Estimated demand in relation to the brand with the highest popularity rank
      +     * in the same category and country in the previous week or month.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum previous_relative_demand = 10; + * + * + * @param value The previousRelativeDemand to set. + * @return This builder for chaining. + */ + public Builder setPreviousRelativeDemand( + com.google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000100; + previousRelativeDemand_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Estimated demand in relation to the brand with the highest popularity rank
      +     * in the same category and country in the previous week or month.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum previous_relative_demand = 10; + * + * + * @return This builder for chaining. + */ + public Builder clearPreviousRelativeDemand() { + bitField0_ = (bitField0_ & ~0x00000100); + previousRelativeDemand_ = 0; + onChanged(); + return this; + } + + private int relativeDemandChange_ = 0; + + /** + * + * + *
      +     * Change in the estimated demand. Whether it rose, sank or remained flat.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 11; + * + * + * @return Whether the relativeDemandChange field is set. + */ + @java.lang.Override + public boolean hasRelativeDemandChange() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
      +     * Change in the estimated demand. Whether it rose, sank or remained flat.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 11; + * + * + * @return The enum numeric value on the wire for relativeDemandChange. + */ + @java.lang.Override + public int getRelativeDemandChangeValue() { + return relativeDemandChange_; + } + + /** + * + * + *
      +     * Change in the estimated demand. Whether it rose, sank or remained flat.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 11; + * + * + * @param value The enum numeric value on the wire for relativeDemandChange to set. + * @return This builder for chaining. + */ + public Builder setRelativeDemandChangeValue(int value) { + relativeDemandChange_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Change in the estimated demand. Whether it rose, sank or remained flat.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 11; + * + * + * @return The relativeDemandChange. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType + .RelativeDemandChangeTypeEnum + getRelativeDemandChange() { + com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType + .RelativeDemandChangeTypeEnum + result = + com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType + .RelativeDemandChangeTypeEnum.forNumber(relativeDemandChange_); + return result == null + ? com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType + .RelativeDemandChangeTypeEnum.UNRECOGNIZED + : result; + } + + /** + * + * + *
      +     * Change in the estimated demand. Whether it rose, sank or remained flat.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 11; + * + * + * @param value The relativeDemandChange to set. + * @return This builder for chaining. + */ + public Builder setRelativeDemandChange( + com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType + .RelativeDemandChangeTypeEnum + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; + relativeDemandChange_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Change in the estimated demand. Whether it rose, sank or remained flat.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 11; + * + * + * @return This builder for chaining. + */ + public Builder clearRelativeDemandChange() { + bitField0_ = (bitField0_ & ~0x00000200); + relativeDemandChange_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.reports.v1alpha.BestSellersBrandView) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.reports.v1alpha.BestSellersBrandView) + private static final com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView(); + } + + public static com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BestSellersBrandView parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/BestSellersBrandViewOrBuilder.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/BestSellersBrandViewOrBuilder.java new file mode 100644 index 000000000000..d1dc3afa6853 --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/BestSellersBrandViewOrBuilder.java @@ -0,0 +1,468 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/reports/v1alpha/reports.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.reports.v1alpha; + +public interface BestSellersBrandViewOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.reports.v1alpha.BestSellersBrandView) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Report date. The value of this field can only be one of the following:
      +   *
      +   * *   The first day of the week (Monday) for weekly reports,
      +   * *   The first day of the month for monthly reports.
      +   *
      +   * Required in the `SELECT` clause. If a `WHERE` condition on `report_date` is
      +   * not specified in the query, the latest available weekly or monthly report
      +   * is returned.
      +   * 
      + * + * .google.type.Date report_date = 1; + * + * @return Whether the reportDate field is set. + */ + boolean hasReportDate(); + + /** + * + * + *
      +   * Report date. The value of this field can only be one of the following:
      +   *
      +   * *   The first day of the week (Monday) for weekly reports,
      +   * *   The first day of the month for monthly reports.
      +   *
      +   * Required in the `SELECT` clause. If a `WHERE` condition on `report_date` is
      +   * not specified in the query, the latest available weekly or monthly report
      +   * is returned.
      +   * 
      + * + * .google.type.Date report_date = 1; + * + * @return The reportDate. + */ + com.google.type.Date getReportDate(); + + /** + * + * + *
      +   * Report date. The value of this field can only be one of the following:
      +   *
      +   * *   The first day of the week (Monday) for weekly reports,
      +   * *   The first day of the month for monthly reports.
      +   *
      +   * Required in the `SELECT` clause. If a `WHERE` condition on `report_date` is
      +   * not specified in the query, the latest available weekly or monthly report
      +   * is returned.
      +   * 
      + * + * .google.type.Date report_date = 1; + */ + com.google.type.DateOrBuilder getReportDateOrBuilder(); + + /** + * + * + *
      +   * Granularity of the report. The ranking can be done over a week or a month
      +   * timeframe.
      +   *
      +   * Required in the `SELECT` clause. Condition on `report_granularity` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ReportGranularity.ReportGranularityEnum report_granularity = 2; + * + * + * @return Whether the reportGranularity field is set. + */ + boolean hasReportGranularity(); + + /** + * + * + *
      +   * Granularity of the report. The ranking can be done over a week or a month
      +   * timeframe.
      +   *
      +   * Required in the `SELECT` clause. Condition on `report_granularity` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ReportGranularity.ReportGranularityEnum report_granularity = 2; + * + * + * @return The enum numeric value on the wire for reportGranularity. + */ + int getReportGranularityValue(); + + /** + * + * + *
      +   * Granularity of the report. The ranking can be done over a week or a month
      +   * timeframe.
      +   *
      +   * Required in the `SELECT` clause. Condition on `report_granularity` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ReportGranularity.ReportGranularityEnum report_granularity = 2; + * + * + * @return The reportGranularity. + */ + com.google.shopping.merchant.reports.v1alpha.ReportGranularity.ReportGranularityEnum + getReportGranularity(); + + /** + * + * + *
      +   * Country where the ranking is calculated. Represented in the ISO 3166
      +   * format.
      +   *
      +   * Required in the `SELECT` clause. Condition on `report_country_code` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * optional string report_country_code = 3; + * + * @return Whether the reportCountryCode field is set. + */ + boolean hasReportCountryCode(); + + /** + * + * + *
      +   * Country where the ranking is calculated. Represented in the ISO 3166
      +   * format.
      +   *
      +   * Required in the `SELECT` clause. Condition on `report_country_code` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * optional string report_country_code = 3; + * + * @return The reportCountryCode. + */ + java.lang.String getReportCountryCode(); + + /** + * + * + *
      +   * Country where the ranking is calculated. Represented in the ISO 3166
      +   * format.
      +   *
      +   * Required in the `SELECT` clause. Condition on `report_country_code` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * optional string report_country_code = 3; + * + * @return The bytes for reportCountryCode. + */ + com.google.protobuf.ByteString getReportCountryCodeBytes(); + + /** + * + * + *
      +   * Google product category ID to calculate the ranking for, represented in
      +   * [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   *
      +   * Required in the `SELECT` clause. If a `WHERE` condition on
      +   * `report_category_id` is not specified in the query, rankings for all
      +   * top-level categories are returned.
      +   * 
      + * + * optional int64 report_category_id = 4; + * + * @return Whether the reportCategoryId field is set. + */ + boolean hasReportCategoryId(); + + /** + * + * + *
      +   * Google product category ID to calculate the ranking for, represented in
      +   * [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   *
      +   * Required in the `SELECT` clause. If a `WHERE` condition on
      +   * `report_category_id` is not specified in the query, rankings for all
      +   * top-level categories are returned.
      +   * 
      + * + * optional int64 report_category_id = 4; + * + * @return The reportCategoryId. + */ + long getReportCategoryId(); + + /** + * + * + *
      +   * Name of the brand.
      +   * 
      + * + * optional string brand = 6; + * + * @return Whether the brand field is set. + */ + boolean hasBrand(); + + /** + * + * + *
      +   * Name of the brand.
      +   * 
      + * + * optional string brand = 6; + * + * @return The brand. + */ + java.lang.String getBrand(); + + /** + * + * + *
      +   * Name of the brand.
      +   * 
      + * + * optional string brand = 6; + * + * @return The bytes for brand. + */ + com.google.protobuf.ByteString getBrandBytes(); + + /** + * + * + *
      +   * Popularity of the brand on Ads and organic surfaces, in the selected
      +   * category and country, based on the estimated number of units sold.
      +   * 
      + * + * optional int64 rank = 7; + * + * @return Whether the rank field is set. + */ + boolean hasRank(); + + /** + * + * + *
      +   * Popularity of the brand on Ads and organic surfaces, in the selected
      +   * category and country, based on the estimated number of units sold.
      +   * 
      + * + * optional int64 rank = 7; + * + * @return The rank. + */ + long getRank(); + + /** + * + * + *
      +   * Popularity rank in the previous week or month.
      +   * 
      + * + * optional int64 previous_rank = 8; + * + * @return Whether the previousRank field is set. + */ + boolean hasPreviousRank(); + + /** + * + * + *
      +   * Popularity rank in the previous week or month.
      +   * 
      + * + * optional int64 previous_rank = 8; + * + * @return The previousRank. + */ + long getPreviousRank(); + + /** + * + * + *
      +   * Estimated demand in relation to the brand with the highest popularity rank
      +   * in the same category and country.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum relative_demand = 9; + * + * + * @return Whether the relativeDemand field is set. + */ + boolean hasRelativeDemand(); + + /** + * + * + *
      +   * Estimated demand in relation to the brand with the highest popularity rank
      +   * in the same category and country.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum relative_demand = 9; + * + * + * @return The enum numeric value on the wire for relativeDemand. + */ + int getRelativeDemandValue(); + + /** + * + * + *
      +   * Estimated demand in relation to the brand with the highest popularity rank
      +   * in the same category and country.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum relative_demand = 9; + * + * + * @return The relativeDemand. + */ + com.google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum + getRelativeDemand(); + + /** + * + * + *
      +   * Estimated demand in relation to the brand with the highest popularity rank
      +   * in the same category and country in the previous week or month.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum previous_relative_demand = 10; + * + * + * @return Whether the previousRelativeDemand field is set. + */ + boolean hasPreviousRelativeDemand(); + + /** + * + * + *
      +   * Estimated demand in relation to the brand with the highest popularity rank
      +   * in the same category and country in the previous week or month.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum previous_relative_demand = 10; + * + * + * @return The enum numeric value on the wire for previousRelativeDemand. + */ + int getPreviousRelativeDemandValue(); + + /** + * + * + *
      +   * Estimated demand in relation to the brand with the highest popularity rank
      +   * in the same category and country in the previous week or month.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum previous_relative_demand = 10; + * + * + * @return The previousRelativeDemand. + */ + com.google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum + getPreviousRelativeDemand(); + + /** + * + * + *
      +   * Change in the estimated demand. Whether it rose, sank or remained flat.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 11; + * + * + * @return Whether the relativeDemandChange field is set. + */ + boolean hasRelativeDemandChange(); + + /** + * + * + *
      +   * Change in the estimated demand. Whether it rose, sank or remained flat.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 11; + * + * + * @return The enum numeric value on the wire for relativeDemandChange. + */ + int getRelativeDemandChangeValue(); + + /** + * + * + *
      +   * Change in the estimated demand. Whether it rose, sank or remained flat.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 11; + * + * + * @return The relativeDemandChange. + */ + com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType.RelativeDemandChangeTypeEnum + getRelativeDemandChange(); +} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/BestSellersProductClusterView.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/BestSellersProductClusterView.java new file mode 100644 index 000000000000..d9d2bd30c9ef --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/BestSellersProductClusterView.java @@ -0,0 +1,5200 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/reports/v1alpha/reports.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.reports.v1alpha; + +/** + * + * + *
      + * Fields available for query in `best_sellers_product_cluster_view` table.
      + *
      + * [Best sellers](https://support.google.com/merchants/answer/9488679) report
      + * with top product clusters. A product cluster is a grouping for different
      + * offers and variants that represent the same product, for example, Google
      + * Pixel 7.
      + *
      + * Values are only set for fields requested explicitly in the request's search
      + * query.
      + * 
      + * + * Protobuf type {@code google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView} + */ +public final class BestSellersProductClusterView extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView) + BestSellersProductClusterViewOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BestSellersProductClusterView.newBuilder() to construct. + private BestSellersProductClusterView(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BestSellersProductClusterView() { + reportGranularity_ = 0; + reportCountryCode_ = ""; + title_ = ""; + brand_ = ""; + categoryL1_ = ""; + categoryL2_ = ""; + categoryL3_ = ""; + categoryL4_ = ""; + categoryL5_ = ""; + variantGtins_ = com.google.protobuf.LazyStringArrayList.emptyList(); + inventoryStatus_ = 0; + brandInventoryStatus_ = 0; + relativeDemand_ = 0; + previousRelativeDemand_ = 0; + relativeDemandChange_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BestSellersProductClusterView(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_BestSellersProductClusterView_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_BestSellersProductClusterView_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView.class, + com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView.Builder + .class); + } + + /** + * + * + *
      +   * Status of the product cluster or brand in your inventory.
      +   * 
      + * + * Protobuf enum {@code + * google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView.InventoryStatus} + */ + public enum InventoryStatus implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +     * Not specified.
      +     * 
      + * + * INVENTORY_STATUS_UNSPECIFIED = 0; + */ + INVENTORY_STATUS_UNSPECIFIED(0), + /** + * + * + *
      +     * You have a product for this product cluster or brand in stock.
      +     * 
      + * + * IN_STOCK = 1; + */ + IN_STOCK(1), + /** + * + * + *
      +     * You have a product for this product cluster or brand in inventory but it
      +     * is currently out of stock.
      +     * 
      + * + * OUT_OF_STOCK = 2; + */ + OUT_OF_STOCK(2), + /** + * + * + *
      +     * You do not have a product for this product cluster or brand in inventory.
      +     * 
      + * + * NOT_IN_INVENTORY = 3; + */ + NOT_IN_INVENTORY(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
      +     * Not specified.
      +     * 
      + * + * INVENTORY_STATUS_UNSPECIFIED = 0; + */ + public static final int INVENTORY_STATUS_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +     * You have a product for this product cluster or brand in stock.
      +     * 
      + * + * IN_STOCK = 1; + */ + public static final int IN_STOCK_VALUE = 1; + + /** + * + * + *
      +     * You have a product for this product cluster or brand in inventory but it
      +     * is currently out of stock.
      +     * 
      + * + * OUT_OF_STOCK = 2; + */ + public static final int OUT_OF_STOCK_VALUE = 2; + + /** + * + * + *
      +     * You do not have a product for this product cluster or brand in inventory.
      +     * 
      + * + * NOT_IN_INVENTORY = 3; + */ + public static final int NOT_IN_INVENTORY_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static InventoryStatus 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 InventoryStatus forNumber(int value) { + switch (value) { + case 0: + return INVENTORY_STATUS_UNSPECIFIED; + case 1: + return IN_STOCK; + case 2: + return OUT_OF_STOCK; + case 3: + return NOT_IN_INVENTORY; + 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 InventoryStatus findValueByNumber(int number) { + return InventoryStatus.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final InventoryStatus[] VALUES = values(); + + public static InventoryStatus 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 InventoryStatus(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView.InventoryStatus) + } + + private int bitField0_; + public static final int REPORT_DATE_FIELD_NUMBER = 1; + private com.google.type.Date reportDate_; + + /** + * + * + *
      +   * Report date. The value of this field can only be one of the following:
      +   *
      +   * *   The first day of the week (Monday) for weekly reports,
      +   * *   The first day of the month for monthly reports.
      +   *
      +   * Required in the `SELECT` clause. If a `WHERE` condition on `report_date` is
      +   * not specified in the query, the latest available weekly or monthly report
      +   * is returned.
      +   * 
      + * + * .google.type.Date report_date = 1; + * + * @return Whether the reportDate field is set. + */ + @java.lang.Override + public boolean hasReportDate() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Report date. The value of this field can only be one of the following:
      +   *
      +   * *   The first day of the week (Monday) for weekly reports,
      +   * *   The first day of the month for monthly reports.
      +   *
      +   * Required in the `SELECT` clause. If a `WHERE` condition on `report_date` is
      +   * not specified in the query, the latest available weekly or monthly report
      +   * is returned.
      +   * 
      + * + * .google.type.Date report_date = 1; + * + * @return The reportDate. + */ + @java.lang.Override + public com.google.type.Date getReportDate() { + return reportDate_ == null ? com.google.type.Date.getDefaultInstance() : reportDate_; + } + + /** + * + * + *
      +   * Report date. The value of this field can only be one of the following:
      +   *
      +   * *   The first day of the week (Monday) for weekly reports,
      +   * *   The first day of the month for monthly reports.
      +   *
      +   * Required in the `SELECT` clause. If a `WHERE` condition on `report_date` is
      +   * not specified in the query, the latest available weekly or monthly report
      +   * is returned.
      +   * 
      + * + * .google.type.Date report_date = 1; + */ + @java.lang.Override + public com.google.type.DateOrBuilder getReportDateOrBuilder() { + return reportDate_ == null ? com.google.type.Date.getDefaultInstance() : reportDate_; + } + + public static final int REPORT_GRANULARITY_FIELD_NUMBER = 2; + private int reportGranularity_ = 0; + + /** + * + * + *
      +   * Granularity of the report. The ranking can be done over a week or a month
      +   * timeframe.
      +   *
      +   * Required in the `SELECT` clause. Condition on `report_granularity` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ReportGranularity.ReportGranularityEnum report_granularity = 2; + * + * + * @return Whether the reportGranularity field is set. + */ + @java.lang.Override + public boolean hasReportGranularity() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * Granularity of the report. The ranking can be done over a week or a month
      +   * timeframe.
      +   *
      +   * Required in the `SELECT` clause. Condition on `report_granularity` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ReportGranularity.ReportGranularityEnum report_granularity = 2; + * + * + * @return The enum numeric value on the wire for reportGranularity. + */ + @java.lang.Override + public int getReportGranularityValue() { + return reportGranularity_; + } + + /** + * + * + *
      +   * Granularity of the report. The ranking can be done over a week or a month
      +   * timeframe.
      +   *
      +   * Required in the `SELECT` clause. Condition on `report_granularity` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ReportGranularity.ReportGranularityEnum report_granularity = 2; + * + * + * @return The reportGranularity. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ReportGranularity.ReportGranularityEnum + getReportGranularity() { + com.google.shopping.merchant.reports.v1alpha.ReportGranularity.ReportGranularityEnum result = + com.google.shopping.merchant.reports.v1alpha.ReportGranularity.ReportGranularityEnum + .forNumber(reportGranularity_); + return result == null + ? com.google.shopping.merchant.reports.v1alpha.ReportGranularity.ReportGranularityEnum + .UNRECOGNIZED + : result; + } + + public static final int REPORT_COUNTRY_CODE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object reportCountryCode_ = ""; + + /** + * + * + *
      +   * Country where the ranking is calculated. Represented in the ISO 3166
      +   * format.
      +   *
      +   * Required in the `SELECT` clause. Condition on `report_country_code` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * optional string report_country_code = 3; + * + * @return Whether the reportCountryCode field is set. + */ + @java.lang.Override + public boolean hasReportCountryCode() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +   * Country where the ranking is calculated. Represented in the ISO 3166
      +   * format.
      +   *
      +   * Required in the `SELECT` clause. Condition on `report_country_code` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * optional string report_country_code = 3; + * + * @return The reportCountryCode. + */ + @java.lang.Override + public java.lang.String getReportCountryCode() { + java.lang.Object ref = reportCountryCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reportCountryCode_ = s; + return s; + } + } + + /** + * + * + *
      +   * Country where the ranking is calculated. Represented in the ISO 3166
      +   * format.
      +   *
      +   * Required in the `SELECT` clause. Condition on `report_country_code` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * optional string report_country_code = 3; + * + * @return The bytes for reportCountryCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getReportCountryCodeBytes() { + java.lang.Object ref = reportCountryCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + reportCountryCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REPORT_CATEGORY_ID_FIELD_NUMBER = 4; + private long reportCategoryId_ = 0L; + + /** + * + * + *
      +   * Google product category ID to calculate the ranking for, represented in
      +   * [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   *
      +   * Required in the `SELECT` clause. If a `WHERE` condition on
      +   * `report_category_id` is not specified in the query, rankings for all
      +   * top-level categories are returned.
      +   * 
      + * + * optional int64 report_category_id = 4; + * + * @return Whether the reportCategoryId field is set. + */ + @java.lang.Override + public boolean hasReportCategoryId() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +   * Google product category ID to calculate the ranking for, represented in
      +   * [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   *
      +   * Required in the `SELECT` clause. If a `WHERE` condition on
      +   * `report_category_id` is not specified in the query, rankings for all
      +   * top-level categories are returned.
      +   * 
      + * + * optional int64 report_category_id = 4; + * + * @return The reportCategoryId. + */ + @java.lang.Override + public long getReportCategoryId() { + return reportCategoryId_; + } + + public static final int TITLE_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + + /** + * + * + *
      +   * Title of the product cluster.
      +   * 
      + * + * optional string title = 6; + * + * @return Whether the title field is set. + */ + @java.lang.Override + public boolean hasTitle() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
      +   * Title of the product cluster.
      +   * 
      + * + * optional string title = 6; + * + * @return The title. + */ + @java.lang.Override + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } + } + + /** + * + * + *
      +   * Title of the product cluster.
      +   * 
      + * + * optional string title = 6; + * + * @return The bytes for title. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BRAND_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object brand_ = ""; + + /** + * + * + *
      +   * Brand of the product cluster.
      +   * 
      + * + * optional string brand = 7; + * + * @return Whether the brand field is set. + */ + @java.lang.Override + public boolean hasBrand() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
      +   * Brand of the product cluster.
      +   * 
      + * + * optional string brand = 7; + * + * @return The brand. + */ + @java.lang.Override + public java.lang.String getBrand() { + java.lang.Object ref = brand_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + brand_ = s; + return s; + } + } + + /** + * + * + *
      +   * Brand of the product cluster.
      +   * 
      + * + * optional string brand = 7; + * + * @return The bytes for brand. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBrandBytes() { + java.lang.Object ref = brand_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + brand_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CATEGORY_L1_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object categoryL1_ = ""; + + /** + * + * + *
      +   * Product category (1st level) of the product cluster, represented in
      +   * [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l1 = 8; + * + * @return Whether the categoryL1 field is set. + */ + @java.lang.Override + public boolean hasCategoryL1() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
      +   * Product category (1st level) of the product cluster, represented in
      +   * [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l1 = 8; + * + * @return The categoryL1. + */ + @java.lang.Override + public java.lang.String getCategoryL1() { + java.lang.Object ref = categoryL1_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + categoryL1_ = s; + return s; + } + } + + /** + * + * + *
      +   * Product category (1st level) of the product cluster, represented in
      +   * [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l1 = 8; + * + * @return The bytes for categoryL1. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCategoryL1Bytes() { + java.lang.Object ref = categoryL1_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + categoryL1_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CATEGORY_L2_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object categoryL2_ = ""; + + /** + * + * + *
      +   * Product category (2nd level) of the product cluster, represented in
      +   * [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l2 = 9; + * + * @return Whether the categoryL2 field is set. + */ + @java.lang.Override + public boolean hasCategoryL2() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
      +   * Product category (2nd level) of the product cluster, represented in
      +   * [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l2 = 9; + * + * @return The categoryL2. + */ + @java.lang.Override + public java.lang.String getCategoryL2() { + java.lang.Object ref = categoryL2_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + categoryL2_ = s; + return s; + } + } + + /** + * + * + *
      +   * Product category (2nd level) of the product cluster, represented in
      +   * [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l2 = 9; + * + * @return The bytes for categoryL2. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCategoryL2Bytes() { + java.lang.Object ref = categoryL2_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + categoryL2_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CATEGORY_L3_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object categoryL3_ = ""; + + /** + * + * + *
      +   * Product category (3rd level) of the product cluster, represented in
      +   * [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l3 = 10; + * + * @return Whether the categoryL3 field is set. + */ + @java.lang.Override + public boolean hasCategoryL3() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
      +   * Product category (3rd level) of the product cluster, represented in
      +   * [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l3 = 10; + * + * @return The categoryL3. + */ + @java.lang.Override + public java.lang.String getCategoryL3() { + java.lang.Object ref = categoryL3_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + categoryL3_ = s; + return s; + } + } + + /** + * + * + *
      +   * Product category (3rd level) of the product cluster, represented in
      +   * [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l3 = 10; + * + * @return The bytes for categoryL3. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCategoryL3Bytes() { + java.lang.Object ref = categoryL3_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + categoryL3_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CATEGORY_L4_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object categoryL4_ = ""; + + /** + * + * + *
      +   * Product category (4th level) of the product cluster, represented in
      +   * [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l4 = 11; + * + * @return Whether the categoryL4 field is set. + */ + @java.lang.Override + public boolean hasCategoryL4() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
      +   * Product category (4th level) of the product cluster, represented in
      +   * [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l4 = 11; + * + * @return The categoryL4. + */ + @java.lang.Override + public java.lang.String getCategoryL4() { + java.lang.Object ref = categoryL4_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + categoryL4_ = s; + return s; + } + } + + /** + * + * + *
      +   * Product category (4th level) of the product cluster, represented in
      +   * [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l4 = 11; + * + * @return The bytes for categoryL4. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCategoryL4Bytes() { + java.lang.Object ref = categoryL4_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + categoryL4_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CATEGORY_L5_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private volatile java.lang.Object categoryL5_ = ""; + + /** + * + * + *
      +   * Product category (5th level) of the product cluster, represented in
      +   * [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l5 = 12; + * + * @return Whether the categoryL5 field is set. + */ + @java.lang.Override + public boolean hasCategoryL5() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
      +   * Product category (5th level) of the product cluster, represented in
      +   * [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l5 = 12; + * + * @return The categoryL5. + */ + @java.lang.Override + public java.lang.String getCategoryL5() { + java.lang.Object ref = categoryL5_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + categoryL5_ = s; + return s; + } + } + + /** + * + * + *
      +   * Product category (5th level) of the product cluster, represented in
      +   * [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l5 = 12; + * + * @return The bytes for categoryL5. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCategoryL5Bytes() { + java.lang.Object ref = categoryL5_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + categoryL5_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VARIANT_GTINS_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList variantGtins_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
      +   * GTINs of example variants of the product cluster.
      +   * 
      + * + * repeated string variant_gtins = 13; + * + * @return A list containing the variantGtins. + */ + public com.google.protobuf.ProtocolStringList getVariantGtinsList() { + return variantGtins_; + } + + /** + * + * + *
      +   * GTINs of example variants of the product cluster.
      +   * 
      + * + * repeated string variant_gtins = 13; + * + * @return The count of variantGtins. + */ + public int getVariantGtinsCount() { + return variantGtins_.size(); + } + + /** + * + * + *
      +   * GTINs of example variants of the product cluster.
      +   * 
      + * + * repeated string variant_gtins = 13; + * + * @param index The index of the element to return. + * @return The variantGtins at the given index. + */ + public java.lang.String getVariantGtins(int index) { + return variantGtins_.get(index); + } + + /** + * + * + *
      +   * GTINs of example variants of the product cluster.
      +   * 
      + * + * repeated string variant_gtins = 13; + * + * @param index The index of the value to return. + * @return The bytes of the variantGtins at the given index. + */ + public com.google.protobuf.ByteString getVariantGtinsBytes(int index) { + return variantGtins_.getByteString(index); + } + + public static final int INVENTORY_STATUS_FIELD_NUMBER = 14; + private int inventoryStatus_ = 0; + + /** + * + * + *
      +   * Whether the product cluster is `IN_STOCK` in your product data source in at
      +   * least one of the countries, `OUT_OF_STOCK` in your product data source in
      +   * all countries, or `NOT_IN_INVENTORY` at all.
      +   *
      +   * The field doesn't take the Best sellers report country filter into account.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView.InventoryStatus inventory_status = 14; + * + * + * @return Whether the inventoryStatus field is set. + */ + @java.lang.Override + public boolean hasInventoryStatus() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
      +   * Whether the product cluster is `IN_STOCK` in your product data source in at
      +   * least one of the countries, `OUT_OF_STOCK` in your product data source in
      +   * all countries, or `NOT_IN_INVENTORY` at all.
      +   *
      +   * The field doesn't take the Best sellers report country filter into account.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView.InventoryStatus inventory_status = 14; + * + * + * @return The enum numeric value on the wire for inventoryStatus. + */ + @java.lang.Override + public int getInventoryStatusValue() { + return inventoryStatus_; + } + + /** + * + * + *
      +   * Whether the product cluster is `IN_STOCK` in your product data source in at
      +   * least one of the countries, `OUT_OF_STOCK` in your product data source in
      +   * all countries, or `NOT_IN_INVENTORY` at all.
      +   *
      +   * The field doesn't take the Best sellers report country filter into account.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView.InventoryStatus inventory_status = 14; + * + * + * @return The inventoryStatus. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView.InventoryStatus + getInventoryStatus() { + com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView.InventoryStatus + result = + com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView + .InventoryStatus.forNumber(inventoryStatus_); + return result == null + ? com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView.InventoryStatus + .UNRECOGNIZED + : result; + } + + public static final int BRAND_INVENTORY_STATUS_FIELD_NUMBER = 15; + private int brandInventoryStatus_ = 0; + + /** + * + * + *
      +   * Whether there is at least one product of the brand currently `IN_STOCK` in
      +   * your product data source in at least one of the countries, all products are
      +   * `OUT_OF_STOCK` in your product data source in all countries, or
      +   * `NOT_IN_INVENTORY`.
      +   *
      +   * The field doesn't take the Best sellers report country filter into account.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView.InventoryStatus brand_inventory_status = 15; + * + * + * @return Whether the brandInventoryStatus field is set. + */ + @java.lang.Override + public boolean hasBrandInventoryStatus() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
      +   * Whether there is at least one product of the brand currently `IN_STOCK` in
      +   * your product data source in at least one of the countries, all products are
      +   * `OUT_OF_STOCK` in your product data source in all countries, or
      +   * `NOT_IN_INVENTORY`.
      +   *
      +   * The field doesn't take the Best sellers report country filter into account.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView.InventoryStatus brand_inventory_status = 15; + * + * + * @return The enum numeric value on the wire for brandInventoryStatus. + */ + @java.lang.Override + public int getBrandInventoryStatusValue() { + return brandInventoryStatus_; + } + + /** + * + * + *
      +   * Whether there is at least one product of the brand currently `IN_STOCK` in
      +   * your product data source in at least one of the countries, all products are
      +   * `OUT_OF_STOCK` in your product data source in all countries, or
      +   * `NOT_IN_INVENTORY`.
      +   *
      +   * The field doesn't take the Best sellers report country filter into account.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView.InventoryStatus brand_inventory_status = 15; + * + * + * @return The brandInventoryStatus. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView.InventoryStatus + getBrandInventoryStatus() { + com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView.InventoryStatus + result = + com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView + .InventoryStatus.forNumber(brandInventoryStatus_); + return result == null + ? com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView.InventoryStatus + .UNRECOGNIZED + : result; + } + + public static final int RANK_FIELD_NUMBER = 16; + private long rank_ = 0L; + + /** + * + * + *
      +   * Popularity of the product cluster on Ads and organic surfaces, in the
      +   * selected category and country, based on the estimated number of units sold.
      +   * 
      + * + * optional int64 rank = 16; + * + * @return Whether the rank field is set. + */ + @java.lang.Override + public boolean hasRank() { + return ((bitField0_ & 0x00002000) != 0); + } + + /** + * + * + *
      +   * Popularity of the product cluster on Ads and organic surfaces, in the
      +   * selected category and country, based on the estimated number of units sold.
      +   * 
      + * + * optional int64 rank = 16; + * + * @return The rank. + */ + @java.lang.Override + public long getRank() { + return rank_; + } + + public static final int PREVIOUS_RANK_FIELD_NUMBER = 17; + private long previousRank_ = 0L; + + /** + * + * + *
      +   * Popularity rank in the previous week or month.
      +   * 
      + * + * optional int64 previous_rank = 17; + * + * @return Whether the previousRank field is set. + */ + @java.lang.Override + public boolean hasPreviousRank() { + return ((bitField0_ & 0x00004000) != 0); + } + + /** + * + * + *
      +   * Popularity rank in the previous week or month.
      +   * 
      + * + * optional int64 previous_rank = 17; + * + * @return The previousRank. + */ + @java.lang.Override + public long getPreviousRank() { + return previousRank_; + } + + public static final int RELATIVE_DEMAND_FIELD_NUMBER = 18; + private int relativeDemand_ = 0; + + /** + * + * + *
      +   * Estimated demand in relation to the product cluster with the highest
      +   * popularity rank in the same category and country.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum relative_demand = 18; + * + * + * @return Whether the relativeDemand field is set. + */ + @java.lang.Override + public boolean hasRelativeDemand() { + return ((bitField0_ & 0x00008000) != 0); + } + + /** + * + * + *
      +   * Estimated demand in relation to the product cluster with the highest
      +   * popularity rank in the same category and country.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum relative_demand = 18; + * + * + * @return The enum numeric value on the wire for relativeDemand. + */ + @java.lang.Override + public int getRelativeDemandValue() { + return relativeDemand_; + } + + /** + * + * + *
      +   * Estimated demand in relation to the product cluster with the highest
      +   * popularity rank in the same category and country.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum relative_demand = 18; + * + * + * @return The relativeDemand. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum + getRelativeDemand() { + com.google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum result = + com.google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum.forNumber( + relativeDemand_); + return result == null + ? com.google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum + .UNRECOGNIZED + : result; + } + + public static final int PREVIOUS_RELATIVE_DEMAND_FIELD_NUMBER = 19; + private int previousRelativeDemand_ = 0; + + /** + * + * + *
      +   * Estimated demand in relation to the product cluster with the highest
      +   * popularity rank in the same category and country in the previous week or
      +   * month.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum previous_relative_demand = 19; + * + * + * @return Whether the previousRelativeDemand field is set. + */ + @java.lang.Override + public boolean hasPreviousRelativeDemand() { + return ((bitField0_ & 0x00010000) != 0); + } + + /** + * + * + *
      +   * Estimated demand in relation to the product cluster with the highest
      +   * popularity rank in the same category and country in the previous week or
      +   * month.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum previous_relative_demand = 19; + * + * + * @return The enum numeric value on the wire for previousRelativeDemand. + */ + @java.lang.Override + public int getPreviousRelativeDemandValue() { + return previousRelativeDemand_; + } + + /** + * + * + *
      +   * Estimated demand in relation to the product cluster with the highest
      +   * popularity rank in the same category and country in the previous week or
      +   * month.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum previous_relative_demand = 19; + * + * + * @return The previousRelativeDemand. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum + getPreviousRelativeDemand() { + com.google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum result = + com.google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum.forNumber( + previousRelativeDemand_); + return result == null + ? com.google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum + .UNRECOGNIZED + : result; + } + + public static final int RELATIVE_DEMAND_CHANGE_FIELD_NUMBER = 20; + private int relativeDemandChange_ = 0; + + /** + * + * + *
      +   * Change in the estimated demand. Whether it rose, sank or remained flat.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 20; + * + * + * @return Whether the relativeDemandChange field is set. + */ + @java.lang.Override + public boolean hasRelativeDemandChange() { + return ((bitField0_ & 0x00020000) != 0); + } + + /** + * + * + *
      +   * Change in the estimated demand. Whether it rose, sank or remained flat.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 20; + * + * + * @return The enum numeric value on the wire for relativeDemandChange. + */ + @java.lang.Override + public int getRelativeDemandChangeValue() { + return relativeDemandChange_; + } + + /** + * + * + *
      +   * Change in the estimated demand. Whether it rose, sank or remained flat.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 20; + * + * + * @return The relativeDemandChange. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType + .RelativeDemandChangeTypeEnum + getRelativeDemandChange() { + com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType + .RelativeDemandChangeTypeEnum + result = + com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType + .RelativeDemandChangeTypeEnum.forNumber(relativeDemandChange_); + return result == null + ? com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType + .RelativeDemandChangeTypeEnum.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, getReportDate()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(2, reportGranularity_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, reportCountryCode_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeInt64(4, reportCategoryId_); + } + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, title_); + } + if (((bitField0_ & 0x00000020) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, brand_); + } + if (((bitField0_ & 0x00000040) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, categoryL1_); + } + if (((bitField0_ & 0x00000080) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, categoryL2_); + } + if (((bitField0_ & 0x00000100) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, categoryL3_); + } + if (((bitField0_ & 0x00000200) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, categoryL4_); + } + if (((bitField0_ & 0x00000400) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, categoryL5_); + } + for (int i = 0; i < variantGtins_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, variantGtins_.getRaw(i)); + } + if (((bitField0_ & 0x00000800) != 0)) { + output.writeEnum(14, inventoryStatus_); + } + if (((bitField0_ & 0x00001000) != 0)) { + output.writeEnum(15, brandInventoryStatus_); + } + if (((bitField0_ & 0x00002000) != 0)) { + output.writeInt64(16, rank_); + } + if (((bitField0_ & 0x00004000) != 0)) { + output.writeInt64(17, previousRank_); + } + if (((bitField0_ & 0x00008000) != 0)) { + output.writeEnum(18, relativeDemand_); + } + if (((bitField0_ & 0x00010000) != 0)) { + output.writeEnum(19, previousRelativeDemand_); + } + if (((bitField0_ & 0x00020000) != 0)) { + output.writeEnum(20, relativeDemandChange_); + } + 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, getReportDate()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, reportGranularity_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, reportCountryCode_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, reportCategoryId_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, title_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, brand_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, categoryL1_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, categoryL2_); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, categoryL3_); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, categoryL4_); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, categoryL5_); + } + { + int dataSize = 0; + for (int i = 0; i < variantGtins_.size(); i++) { + dataSize += computeStringSizeNoTag(variantGtins_.getRaw(i)); + } + size += dataSize; + size += 1 * getVariantGtinsList().size(); + } + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(14, inventoryStatus_); + } + if (((bitField0_ & 0x00001000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, brandInventoryStatus_); + } + if (((bitField0_ & 0x00002000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(16, rank_); + } + if (((bitField0_ & 0x00004000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(17, previousRank_); + } + if (((bitField0_ & 0x00008000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(18, relativeDemand_); + } + if (((bitField0_ & 0x00010000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(19, previousRelativeDemand_); + } + if (((bitField0_ & 0x00020000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(20, relativeDemandChange_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView)) { + return super.equals(obj); + } + com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView other = + (com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView) obj; + + if (hasReportDate() != other.hasReportDate()) return false; + if (hasReportDate()) { + if (!getReportDate().equals(other.getReportDate())) return false; + } + if (hasReportGranularity() != other.hasReportGranularity()) return false; + if (hasReportGranularity()) { + if (reportGranularity_ != other.reportGranularity_) return false; + } + if (hasReportCountryCode() != other.hasReportCountryCode()) return false; + if (hasReportCountryCode()) { + if (!getReportCountryCode().equals(other.getReportCountryCode())) return false; + } + if (hasReportCategoryId() != other.hasReportCategoryId()) return false; + if (hasReportCategoryId()) { + if (getReportCategoryId() != other.getReportCategoryId()) return false; + } + if (hasTitle() != other.hasTitle()) return false; + if (hasTitle()) { + if (!getTitle().equals(other.getTitle())) return false; + } + if (hasBrand() != other.hasBrand()) return false; + if (hasBrand()) { + if (!getBrand().equals(other.getBrand())) return false; + } + if (hasCategoryL1() != other.hasCategoryL1()) return false; + if (hasCategoryL1()) { + if (!getCategoryL1().equals(other.getCategoryL1())) return false; + } + if (hasCategoryL2() != other.hasCategoryL2()) return false; + if (hasCategoryL2()) { + if (!getCategoryL2().equals(other.getCategoryL2())) return false; + } + if (hasCategoryL3() != other.hasCategoryL3()) return false; + if (hasCategoryL3()) { + if (!getCategoryL3().equals(other.getCategoryL3())) return false; + } + if (hasCategoryL4() != other.hasCategoryL4()) return false; + if (hasCategoryL4()) { + if (!getCategoryL4().equals(other.getCategoryL4())) return false; + } + if (hasCategoryL5() != other.hasCategoryL5()) return false; + if (hasCategoryL5()) { + if (!getCategoryL5().equals(other.getCategoryL5())) return false; + } + if (!getVariantGtinsList().equals(other.getVariantGtinsList())) return false; + if (hasInventoryStatus() != other.hasInventoryStatus()) return false; + if (hasInventoryStatus()) { + if (inventoryStatus_ != other.inventoryStatus_) return false; + } + if (hasBrandInventoryStatus() != other.hasBrandInventoryStatus()) return false; + if (hasBrandInventoryStatus()) { + if (brandInventoryStatus_ != other.brandInventoryStatus_) return false; + } + if (hasRank() != other.hasRank()) return false; + if (hasRank()) { + if (getRank() != other.getRank()) return false; + } + if (hasPreviousRank() != other.hasPreviousRank()) return false; + if (hasPreviousRank()) { + if (getPreviousRank() != other.getPreviousRank()) return false; + } + if (hasRelativeDemand() != other.hasRelativeDemand()) return false; + if (hasRelativeDemand()) { + if (relativeDemand_ != other.relativeDemand_) return false; + } + if (hasPreviousRelativeDemand() != other.hasPreviousRelativeDemand()) return false; + if (hasPreviousRelativeDemand()) { + if (previousRelativeDemand_ != other.previousRelativeDemand_) return false; + } + if (hasRelativeDemandChange() != other.hasRelativeDemandChange()) return false; + if (hasRelativeDemandChange()) { + if (relativeDemandChange_ != other.relativeDemandChange_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasReportDate()) { + hash = (37 * hash) + REPORT_DATE_FIELD_NUMBER; + hash = (53 * hash) + getReportDate().hashCode(); + } + if (hasReportGranularity()) { + hash = (37 * hash) + REPORT_GRANULARITY_FIELD_NUMBER; + hash = (53 * hash) + reportGranularity_; + } + if (hasReportCountryCode()) { + hash = (37 * hash) + REPORT_COUNTRY_CODE_FIELD_NUMBER; + hash = (53 * hash) + getReportCountryCode().hashCode(); + } + if (hasReportCategoryId()) { + hash = (37 * hash) + REPORT_CATEGORY_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getReportCategoryId()); + } + if (hasTitle()) { + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + } + if (hasBrand()) { + hash = (37 * hash) + BRAND_FIELD_NUMBER; + hash = (53 * hash) + getBrand().hashCode(); + } + if (hasCategoryL1()) { + hash = (37 * hash) + CATEGORY_L1_FIELD_NUMBER; + hash = (53 * hash) + getCategoryL1().hashCode(); + } + if (hasCategoryL2()) { + hash = (37 * hash) + CATEGORY_L2_FIELD_NUMBER; + hash = (53 * hash) + getCategoryL2().hashCode(); + } + if (hasCategoryL3()) { + hash = (37 * hash) + CATEGORY_L3_FIELD_NUMBER; + hash = (53 * hash) + getCategoryL3().hashCode(); + } + if (hasCategoryL4()) { + hash = (37 * hash) + CATEGORY_L4_FIELD_NUMBER; + hash = (53 * hash) + getCategoryL4().hashCode(); + } + if (hasCategoryL5()) { + hash = (37 * hash) + CATEGORY_L5_FIELD_NUMBER; + hash = (53 * hash) + getCategoryL5().hashCode(); + } + if (getVariantGtinsCount() > 0) { + hash = (37 * hash) + VARIANT_GTINS_FIELD_NUMBER; + hash = (53 * hash) + getVariantGtinsList().hashCode(); + } + if (hasInventoryStatus()) { + hash = (37 * hash) + INVENTORY_STATUS_FIELD_NUMBER; + hash = (53 * hash) + inventoryStatus_; + } + if (hasBrandInventoryStatus()) { + hash = (37 * hash) + BRAND_INVENTORY_STATUS_FIELD_NUMBER; + hash = (53 * hash) + brandInventoryStatus_; + } + if (hasRank()) { + hash = (37 * hash) + RANK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRank()); + } + if (hasPreviousRank()) { + hash = (37 * hash) + PREVIOUS_RANK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPreviousRank()); + } + if (hasRelativeDemand()) { + hash = (37 * hash) + RELATIVE_DEMAND_FIELD_NUMBER; + hash = (53 * hash) + relativeDemand_; + } + if (hasPreviousRelativeDemand()) { + hash = (37 * hash) + PREVIOUS_RELATIVE_DEMAND_FIELD_NUMBER; + hash = (53 * hash) + previousRelativeDemand_; + } + if (hasRelativeDemandChange()) { + hash = (37 * hash) + RELATIVE_DEMAND_CHANGE_FIELD_NUMBER; + hash = (53 * hash) + relativeDemandChange_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Fields available for query in `best_sellers_product_cluster_view` table.
      +   *
      +   * [Best sellers](https://support.google.com/merchants/answer/9488679) report
      +   * with top product clusters. A product cluster is a grouping for different
      +   * offers and variants that represent the same product, for example, Google
      +   * Pixel 7.
      +   *
      +   * Values are only set for fields requested explicitly in the request's search
      +   * query.
      +   * 
      + * + * Protobuf type {@code google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView) + com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterViewOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_BestSellersProductClusterView_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_BestSellersProductClusterView_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView.class, + com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView.Builder + .class); + } + + // Construct using + // com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getReportDateFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + reportDate_ = null; + if (reportDateBuilder_ != null) { + reportDateBuilder_.dispose(); + reportDateBuilder_ = null; + } + reportGranularity_ = 0; + reportCountryCode_ = ""; + reportCategoryId_ = 0L; + title_ = ""; + brand_ = ""; + categoryL1_ = ""; + categoryL2_ = ""; + categoryL3_ = ""; + categoryL4_ = ""; + categoryL5_ = ""; + variantGtins_ = com.google.protobuf.LazyStringArrayList.emptyList(); + inventoryStatus_ = 0; + brandInventoryStatus_ = 0; + rank_ = 0L; + previousRank_ = 0L; + relativeDemand_ = 0; + previousRelativeDemand_ = 0; + relativeDemandChange_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_BestSellersProductClusterView_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView + getDefaultInstanceForType() { + return com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView build() { + com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView + buildPartial() { + com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView result = + new com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.reportDate_ = reportDateBuilder_ == null ? reportDate_ : reportDateBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.reportGranularity_ = reportGranularity_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.reportCountryCode_ = reportCountryCode_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.reportCategoryId_ = reportCategoryId_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.title_ = title_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.brand_ = brand_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.categoryL1_ = categoryL1_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.categoryL2_ = categoryL2_; + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.categoryL3_ = categoryL3_; + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.categoryL4_ = categoryL4_; + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.categoryL5_ = categoryL5_; + to_bitField0_ |= 0x00000400; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + variantGtins_.makeImmutable(); + result.variantGtins_ = variantGtins_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.inventoryStatus_ = inventoryStatus_; + to_bitField0_ |= 0x00000800; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.brandInventoryStatus_ = brandInventoryStatus_; + to_bitField0_ |= 0x00001000; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.rank_ = rank_; + to_bitField0_ |= 0x00002000; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.previousRank_ = previousRank_; + to_bitField0_ |= 0x00004000; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.relativeDemand_ = relativeDemand_; + to_bitField0_ |= 0x00008000; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.previousRelativeDemand_ = previousRelativeDemand_; + to_bitField0_ |= 0x00010000; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.relativeDemandChange_ = relativeDemandChange_; + to_bitField0_ |= 0x00020000; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView) { + return mergeFrom( + (com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView other) { + if (other + == com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView + .getDefaultInstance()) return this; + if (other.hasReportDate()) { + mergeReportDate(other.getReportDate()); + } + if (other.hasReportGranularity()) { + setReportGranularity(other.getReportGranularity()); + } + if (other.hasReportCountryCode()) { + reportCountryCode_ = other.reportCountryCode_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasReportCategoryId()) { + setReportCategoryId(other.getReportCategoryId()); + } + if (other.hasTitle()) { + title_ = other.title_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasBrand()) { + brand_ = other.brand_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasCategoryL1()) { + categoryL1_ = other.categoryL1_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.hasCategoryL2()) { + categoryL2_ = other.categoryL2_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (other.hasCategoryL3()) { + categoryL3_ = other.categoryL3_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.hasCategoryL4()) { + categoryL4_ = other.categoryL4_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (other.hasCategoryL5()) { + categoryL5_ = other.categoryL5_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (!other.variantGtins_.isEmpty()) { + if (variantGtins_.isEmpty()) { + variantGtins_ = other.variantGtins_; + bitField0_ |= 0x00000800; + } else { + ensureVariantGtinsIsMutable(); + variantGtins_.addAll(other.variantGtins_); + } + onChanged(); + } + if (other.hasInventoryStatus()) { + setInventoryStatus(other.getInventoryStatus()); + } + if (other.hasBrandInventoryStatus()) { + setBrandInventoryStatus(other.getBrandInventoryStatus()); + } + if (other.hasRank()) { + setRank(other.getRank()); + } + if (other.hasPreviousRank()) { + setPreviousRank(other.getPreviousRank()); + } + if (other.hasRelativeDemand()) { + setRelativeDemand(other.getRelativeDemand()); + } + if (other.hasPreviousRelativeDemand()) { + setPreviousRelativeDemand(other.getPreviousRelativeDemand()); + } + if (other.hasRelativeDemandChange()) { + setRelativeDemandChange(other.getRelativeDemandChange()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(getReportDateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + reportGranularity_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + reportCountryCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + reportCategoryId_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 50: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + case 58: + { + brand_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: + { + categoryL1_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 74: + { + categoryL2_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 74 + case 82: + { + categoryL3_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 82 + case 90: + { + categoryL4_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 90 + case 98: + { + categoryL5_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 98 + case 106: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureVariantGtinsIsMutable(); + variantGtins_.add(s); + break; + } // case 106 + case 112: + { + inventoryStatus_ = input.readEnum(); + bitField0_ |= 0x00001000; + break; + } // case 112 + case 120: + { + brandInventoryStatus_ = input.readEnum(); + bitField0_ |= 0x00002000; + break; + } // case 120 + case 128: + { + rank_ = input.readInt64(); + bitField0_ |= 0x00004000; + break; + } // case 128 + case 136: + { + previousRank_ = input.readInt64(); + bitField0_ |= 0x00008000; + break; + } // case 136 + case 144: + { + relativeDemand_ = input.readEnum(); + bitField0_ |= 0x00010000; + break; + } // case 144 + case 152: + { + previousRelativeDemand_ = input.readEnum(); + bitField0_ |= 0x00020000; + break; + } // case 152 + case 160: + { + relativeDemandChange_ = input.readEnum(); + bitField0_ |= 0x00040000; + break; + } // case 160 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + 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.type.Date reportDate_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + reportDateBuilder_; + + /** + * + * + *
      +     * Report date. The value of this field can only be one of the following:
      +     *
      +     * *   The first day of the week (Monday) for weekly reports,
      +     * *   The first day of the month for monthly reports.
      +     *
      +     * Required in the `SELECT` clause. If a `WHERE` condition on `report_date` is
      +     * not specified in the query, the latest available weekly or monthly report
      +     * is returned.
      +     * 
      + * + * .google.type.Date report_date = 1; + * + * @return Whether the reportDate field is set. + */ + public boolean hasReportDate() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +     * Report date. The value of this field can only be one of the following:
      +     *
      +     * *   The first day of the week (Monday) for weekly reports,
      +     * *   The first day of the month for monthly reports.
      +     *
      +     * Required in the `SELECT` clause. If a `WHERE` condition on `report_date` is
      +     * not specified in the query, the latest available weekly or monthly report
      +     * is returned.
      +     * 
      + * + * .google.type.Date report_date = 1; + * + * @return The reportDate. + */ + public com.google.type.Date getReportDate() { + if (reportDateBuilder_ == null) { + return reportDate_ == null ? com.google.type.Date.getDefaultInstance() : reportDate_; + } else { + return reportDateBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Report date. The value of this field can only be one of the following:
      +     *
      +     * *   The first day of the week (Monday) for weekly reports,
      +     * *   The first day of the month for monthly reports.
      +     *
      +     * Required in the `SELECT` clause. If a `WHERE` condition on `report_date` is
      +     * not specified in the query, the latest available weekly or monthly report
      +     * is returned.
      +     * 
      + * + * .google.type.Date report_date = 1; + */ + public Builder setReportDate(com.google.type.Date value) { + if (reportDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reportDate_ = value; + } else { + reportDateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Report date. The value of this field can only be one of the following:
      +     *
      +     * *   The first day of the week (Monday) for weekly reports,
      +     * *   The first day of the month for monthly reports.
      +     *
      +     * Required in the `SELECT` clause. If a `WHERE` condition on `report_date` is
      +     * not specified in the query, the latest available weekly or monthly report
      +     * is returned.
      +     * 
      + * + * .google.type.Date report_date = 1; + */ + public Builder setReportDate(com.google.type.Date.Builder builderForValue) { + if (reportDateBuilder_ == null) { + reportDate_ = builderForValue.build(); + } else { + reportDateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Report date. The value of this field can only be one of the following:
      +     *
      +     * *   The first day of the week (Monday) for weekly reports,
      +     * *   The first day of the month for monthly reports.
      +     *
      +     * Required in the `SELECT` clause. If a `WHERE` condition on `report_date` is
      +     * not specified in the query, the latest available weekly or monthly report
      +     * is returned.
      +     * 
      + * + * .google.type.Date report_date = 1; + */ + public Builder mergeReportDate(com.google.type.Date value) { + if (reportDateBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && reportDate_ != null + && reportDate_ != com.google.type.Date.getDefaultInstance()) { + getReportDateBuilder().mergeFrom(value); + } else { + reportDate_ = value; + } + } else { + reportDateBuilder_.mergeFrom(value); + } + if (reportDate_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Report date. The value of this field can only be one of the following:
      +     *
      +     * *   The first day of the week (Monday) for weekly reports,
      +     * *   The first day of the month for monthly reports.
      +     *
      +     * Required in the `SELECT` clause. If a `WHERE` condition on `report_date` is
      +     * not specified in the query, the latest available weekly or monthly report
      +     * is returned.
      +     * 
      + * + * .google.type.Date report_date = 1; + */ + public Builder clearReportDate() { + bitField0_ = (bitField0_ & ~0x00000001); + reportDate_ = null; + if (reportDateBuilder_ != null) { + reportDateBuilder_.dispose(); + reportDateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Report date. The value of this field can only be one of the following:
      +     *
      +     * *   The first day of the week (Monday) for weekly reports,
      +     * *   The first day of the month for monthly reports.
      +     *
      +     * Required in the `SELECT` clause. If a `WHERE` condition on `report_date` is
      +     * not specified in the query, the latest available weekly or monthly report
      +     * is returned.
      +     * 
      + * + * .google.type.Date report_date = 1; + */ + public com.google.type.Date.Builder getReportDateBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getReportDateFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Report date. The value of this field can only be one of the following:
      +     *
      +     * *   The first day of the week (Monday) for weekly reports,
      +     * *   The first day of the month for monthly reports.
      +     *
      +     * Required in the `SELECT` clause. If a `WHERE` condition on `report_date` is
      +     * not specified in the query, the latest available weekly or monthly report
      +     * is returned.
      +     * 
      + * + * .google.type.Date report_date = 1; + */ + public com.google.type.DateOrBuilder getReportDateOrBuilder() { + if (reportDateBuilder_ != null) { + return reportDateBuilder_.getMessageOrBuilder(); + } else { + return reportDate_ == null ? com.google.type.Date.getDefaultInstance() : reportDate_; + } + } + + /** + * + * + *
      +     * Report date. The value of this field can only be one of the following:
      +     *
      +     * *   The first day of the week (Monday) for weekly reports,
      +     * *   The first day of the month for monthly reports.
      +     *
      +     * Required in the `SELECT` clause. If a `WHERE` condition on `report_date` is
      +     * not specified in the query, the latest available weekly or monthly report
      +     * is returned.
      +     * 
      + * + * .google.type.Date report_date = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getReportDateFieldBuilder() { + if (reportDateBuilder_ == null) { + reportDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getReportDate(), getParentForChildren(), isClean()); + reportDate_ = null; + } + return reportDateBuilder_; + } + + private int reportGranularity_ = 0; + + /** + * + * + *
      +     * Granularity of the report. The ranking can be done over a week or a month
      +     * timeframe.
      +     *
      +     * Required in the `SELECT` clause. Condition on `report_granularity` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ReportGranularity.ReportGranularityEnum report_granularity = 2; + * + * + * @return Whether the reportGranularity field is set. + */ + @java.lang.Override + public boolean hasReportGranularity() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +     * Granularity of the report. The ranking can be done over a week or a month
      +     * timeframe.
      +     *
      +     * Required in the `SELECT` clause. Condition on `report_granularity` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ReportGranularity.ReportGranularityEnum report_granularity = 2; + * + * + * @return The enum numeric value on the wire for reportGranularity. + */ + @java.lang.Override + public int getReportGranularityValue() { + return reportGranularity_; + } + + /** + * + * + *
      +     * Granularity of the report. The ranking can be done over a week or a month
      +     * timeframe.
      +     *
      +     * Required in the `SELECT` clause. Condition on `report_granularity` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ReportGranularity.ReportGranularityEnum report_granularity = 2; + * + * + * @param value The enum numeric value on the wire for reportGranularity to set. + * @return This builder for chaining. + */ + public Builder setReportGranularityValue(int value) { + reportGranularity_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Granularity of the report. The ranking can be done over a week or a month
      +     * timeframe.
      +     *
      +     * Required in the `SELECT` clause. Condition on `report_granularity` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ReportGranularity.ReportGranularityEnum report_granularity = 2; + * + * + * @return The reportGranularity. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ReportGranularity.ReportGranularityEnum + getReportGranularity() { + com.google.shopping.merchant.reports.v1alpha.ReportGranularity.ReportGranularityEnum result = + com.google.shopping.merchant.reports.v1alpha.ReportGranularity.ReportGranularityEnum + .forNumber(reportGranularity_); + return result == null + ? com.google.shopping.merchant.reports.v1alpha.ReportGranularity.ReportGranularityEnum + .UNRECOGNIZED + : result; + } + + /** + * + * + *
      +     * Granularity of the report. The ranking can be done over a week or a month
      +     * timeframe.
      +     *
      +     * Required in the `SELECT` clause. Condition on `report_granularity` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ReportGranularity.ReportGranularityEnum report_granularity = 2; + * + * + * @param value The reportGranularity to set. + * @return This builder for chaining. + */ + public Builder setReportGranularity( + com.google.shopping.merchant.reports.v1alpha.ReportGranularity.ReportGranularityEnum + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + reportGranularity_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Granularity of the report. The ranking can be done over a week or a month
      +     * timeframe.
      +     *
      +     * Required in the `SELECT` clause. Condition on `report_granularity` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ReportGranularity.ReportGranularityEnum report_granularity = 2; + * + * + * @return This builder for chaining. + */ + public Builder clearReportGranularity() { + bitField0_ = (bitField0_ & ~0x00000002); + reportGranularity_ = 0; + onChanged(); + return this; + } + + private java.lang.Object reportCountryCode_ = ""; + + /** + * + * + *
      +     * Country where the ranking is calculated. Represented in the ISO 3166
      +     * format.
      +     *
      +     * Required in the `SELECT` clause. Condition on `report_country_code` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * optional string report_country_code = 3; + * + * @return Whether the reportCountryCode field is set. + */ + public boolean hasReportCountryCode() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +     * Country where the ranking is calculated. Represented in the ISO 3166
      +     * format.
      +     *
      +     * Required in the `SELECT` clause. Condition on `report_country_code` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * optional string report_country_code = 3; + * + * @return The reportCountryCode. + */ + public java.lang.String getReportCountryCode() { + java.lang.Object ref = reportCountryCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reportCountryCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Country where the ranking is calculated. Represented in the ISO 3166
      +     * format.
      +     *
      +     * Required in the `SELECT` clause. Condition on `report_country_code` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * optional string report_country_code = 3; + * + * @return The bytes for reportCountryCode. + */ + public com.google.protobuf.ByteString getReportCountryCodeBytes() { + java.lang.Object ref = reportCountryCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + reportCountryCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Country where the ranking is calculated. Represented in the ISO 3166
      +     * format.
      +     *
      +     * Required in the `SELECT` clause. Condition on `report_country_code` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * optional string report_country_code = 3; + * + * @param value The reportCountryCode to set. + * @return This builder for chaining. + */ + public Builder setReportCountryCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + reportCountryCode_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Country where the ranking is calculated. Represented in the ISO 3166
      +     * format.
      +     *
      +     * Required in the `SELECT` clause. Condition on `report_country_code` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * optional string report_country_code = 3; + * + * @return This builder for chaining. + */ + public Builder clearReportCountryCode() { + reportCountryCode_ = getDefaultInstance().getReportCountryCode(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Country where the ranking is calculated. Represented in the ISO 3166
      +     * format.
      +     *
      +     * Required in the `SELECT` clause. Condition on `report_country_code` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * optional string report_country_code = 3; + * + * @param value The bytes for reportCountryCode to set. + * @return This builder for chaining. + */ + public Builder setReportCountryCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + reportCountryCode_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private long reportCategoryId_; + + /** + * + * + *
      +     * Google product category ID to calculate the ranking for, represented in
      +     * [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     *
      +     * Required in the `SELECT` clause. If a `WHERE` condition on
      +     * `report_category_id` is not specified in the query, rankings for all
      +     * top-level categories are returned.
      +     * 
      + * + * optional int64 report_category_id = 4; + * + * @return Whether the reportCategoryId field is set. + */ + @java.lang.Override + public boolean hasReportCategoryId() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +     * Google product category ID to calculate the ranking for, represented in
      +     * [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     *
      +     * Required in the `SELECT` clause. If a `WHERE` condition on
      +     * `report_category_id` is not specified in the query, rankings for all
      +     * top-level categories are returned.
      +     * 
      + * + * optional int64 report_category_id = 4; + * + * @return The reportCategoryId. + */ + @java.lang.Override + public long getReportCategoryId() { + return reportCategoryId_; + } + + /** + * + * + *
      +     * Google product category ID to calculate the ranking for, represented in
      +     * [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     *
      +     * Required in the `SELECT` clause. If a `WHERE` condition on
      +     * `report_category_id` is not specified in the query, rankings for all
      +     * top-level categories are returned.
      +     * 
      + * + * optional int64 report_category_id = 4; + * + * @param value The reportCategoryId to set. + * @return This builder for chaining. + */ + public Builder setReportCategoryId(long value) { + + reportCategoryId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Google product category ID to calculate the ranking for, represented in
      +     * [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     *
      +     * Required in the `SELECT` clause. If a `WHERE` condition on
      +     * `report_category_id` is not specified in the query, rankings for all
      +     * top-level categories are returned.
      +     * 
      + * + * optional int64 report_category_id = 4; + * + * @return This builder for chaining. + */ + public Builder clearReportCategoryId() { + bitField0_ = (bitField0_ & ~0x00000008); + reportCategoryId_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object title_ = ""; + + /** + * + * + *
      +     * Title of the product cluster.
      +     * 
      + * + * optional string title = 6; + * + * @return Whether the title field is set. + */ + public boolean hasTitle() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
      +     * Title of the product cluster.
      +     * 
      + * + * optional string title = 6; + * + * @return The title. + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Title of the product cluster.
      +     * 
      + * + * optional string title = 6; + * + * @return The bytes for title. + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Title of the product cluster.
      +     * 
      + * + * optional string title = 6; + * + * @param value The title to set. + * @return This builder for chaining. + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + title_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Title of the product cluster.
      +     * 
      + * + * optional string title = 6; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Title of the product cluster.
      +     * 
      + * + * optional string title = 6; + * + * @param value The bytes for title to set. + * @return This builder for chaining. + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + title_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object brand_ = ""; + + /** + * + * + *
      +     * Brand of the product cluster.
      +     * 
      + * + * optional string brand = 7; + * + * @return Whether the brand field is set. + */ + public boolean hasBrand() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
      +     * Brand of the product cluster.
      +     * 
      + * + * optional string brand = 7; + * + * @return The brand. + */ + public java.lang.String getBrand() { + java.lang.Object ref = brand_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + brand_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Brand of the product cluster.
      +     * 
      + * + * optional string brand = 7; + * + * @return The bytes for brand. + */ + public com.google.protobuf.ByteString getBrandBytes() { + java.lang.Object ref = brand_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + brand_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Brand of the product cluster.
      +     * 
      + * + * optional string brand = 7; + * + * @param value The brand to set. + * @return This builder for chaining. + */ + public Builder setBrand(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + brand_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Brand of the product cluster.
      +     * 
      + * + * optional string brand = 7; + * + * @return This builder for chaining. + */ + public Builder clearBrand() { + brand_ = getDefaultInstance().getBrand(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Brand of the product cluster.
      +     * 
      + * + * optional string brand = 7; + * + * @param value The bytes for brand to set. + * @return This builder for chaining. + */ + public Builder setBrandBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + brand_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object categoryL1_ = ""; + + /** + * + * + *
      +     * Product category (1st level) of the product cluster, represented in
      +     * [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l1 = 8; + * + * @return Whether the categoryL1 field is set. + */ + public boolean hasCategoryL1() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
      +     * Product category (1st level) of the product cluster, represented in
      +     * [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l1 = 8; + * + * @return The categoryL1. + */ + public java.lang.String getCategoryL1() { + java.lang.Object ref = categoryL1_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + categoryL1_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Product category (1st level) of the product cluster, represented in
      +     * [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l1 = 8; + * + * @return The bytes for categoryL1. + */ + public com.google.protobuf.ByteString getCategoryL1Bytes() { + java.lang.Object ref = categoryL1_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + categoryL1_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Product category (1st level) of the product cluster, represented in
      +     * [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l1 = 8; + * + * @param value The categoryL1 to set. + * @return This builder for chaining. + */ + public Builder setCategoryL1(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + categoryL1_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product category (1st level) of the product cluster, represented in
      +     * [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l1 = 8; + * + * @return This builder for chaining. + */ + public Builder clearCategoryL1() { + categoryL1_ = getDefaultInstance().getCategoryL1(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product category (1st level) of the product cluster, represented in
      +     * [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l1 = 8; + * + * @param value The bytes for categoryL1 to set. + * @return This builder for chaining. + */ + public Builder setCategoryL1Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + categoryL1_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object categoryL2_ = ""; + + /** + * + * + *
      +     * Product category (2nd level) of the product cluster, represented in
      +     * [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l2 = 9; + * + * @return Whether the categoryL2 field is set. + */ + public boolean hasCategoryL2() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
      +     * Product category (2nd level) of the product cluster, represented in
      +     * [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l2 = 9; + * + * @return The categoryL2. + */ + public java.lang.String getCategoryL2() { + java.lang.Object ref = categoryL2_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + categoryL2_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Product category (2nd level) of the product cluster, represented in
      +     * [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l2 = 9; + * + * @return The bytes for categoryL2. + */ + public com.google.protobuf.ByteString getCategoryL2Bytes() { + java.lang.Object ref = categoryL2_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + categoryL2_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Product category (2nd level) of the product cluster, represented in
      +     * [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l2 = 9; + * + * @param value The categoryL2 to set. + * @return This builder for chaining. + */ + public Builder setCategoryL2(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + categoryL2_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product category (2nd level) of the product cluster, represented in
      +     * [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l2 = 9; + * + * @return This builder for chaining. + */ + public Builder clearCategoryL2() { + categoryL2_ = getDefaultInstance().getCategoryL2(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product category (2nd level) of the product cluster, represented in
      +     * [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l2 = 9; + * + * @param value The bytes for categoryL2 to set. + * @return This builder for chaining. + */ + public Builder setCategoryL2Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + categoryL2_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object categoryL3_ = ""; + + /** + * + * + *
      +     * Product category (3rd level) of the product cluster, represented in
      +     * [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l3 = 10; + * + * @return Whether the categoryL3 field is set. + */ + public boolean hasCategoryL3() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
      +     * Product category (3rd level) of the product cluster, represented in
      +     * [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l3 = 10; + * + * @return The categoryL3. + */ + public java.lang.String getCategoryL3() { + java.lang.Object ref = categoryL3_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + categoryL3_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Product category (3rd level) of the product cluster, represented in
      +     * [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l3 = 10; + * + * @return The bytes for categoryL3. + */ + public com.google.protobuf.ByteString getCategoryL3Bytes() { + java.lang.Object ref = categoryL3_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + categoryL3_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Product category (3rd level) of the product cluster, represented in
      +     * [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l3 = 10; + * + * @param value The categoryL3 to set. + * @return This builder for chaining. + */ + public Builder setCategoryL3(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + categoryL3_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product category (3rd level) of the product cluster, represented in
      +     * [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l3 = 10; + * + * @return This builder for chaining. + */ + public Builder clearCategoryL3() { + categoryL3_ = getDefaultInstance().getCategoryL3(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product category (3rd level) of the product cluster, represented in
      +     * [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l3 = 10; + * + * @param value The bytes for categoryL3 to set. + * @return This builder for chaining. + */ + public Builder setCategoryL3Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + categoryL3_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private java.lang.Object categoryL4_ = ""; + + /** + * + * + *
      +     * Product category (4th level) of the product cluster, represented in
      +     * [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l4 = 11; + * + * @return Whether the categoryL4 field is set. + */ + public boolean hasCategoryL4() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
      +     * Product category (4th level) of the product cluster, represented in
      +     * [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l4 = 11; + * + * @return The categoryL4. + */ + public java.lang.String getCategoryL4() { + java.lang.Object ref = categoryL4_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + categoryL4_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Product category (4th level) of the product cluster, represented in
      +     * [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l4 = 11; + * + * @return The bytes for categoryL4. + */ + public com.google.protobuf.ByteString getCategoryL4Bytes() { + java.lang.Object ref = categoryL4_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + categoryL4_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Product category (4th level) of the product cluster, represented in
      +     * [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l4 = 11; + * + * @param value The categoryL4 to set. + * @return This builder for chaining. + */ + public Builder setCategoryL4(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + categoryL4_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product category (4th level) of the product cluster, represented in
      +     * [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l4 = 11; + * + * @return This builder for chaining. + */ + public Builder clearCategoryL4() { + categoryL4_ = getDefaultInstance().getCategoryL4(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product category (4th level) of the product cluster, represented in
      +     * [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l4 = 11; + * + * @param value The bytes for categoryL4 to set. + * @return This builder for chaining. + */ + public Builder setCategoryL4Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + categoryL4_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private java.lang.Object categoryL5_ = ""; + + /** + * + * + *
      +     * Product category (5th level) of the product cluster, represented in
      +     * [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l5 = 12; + * + * @return Whether the categoryL5 field is set. + */ + public boolean hasCategoryL5() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
      +     * Product category (5th level) of the product cluster, represented in
      +     * [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l5 = 12; + * + * @return The categoryL5. + */ + public java.lang.String getCategoryL5() { + java.lang.Object ref = categoryL5_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + categoryL5_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Product category (5th level) of the product cluster, represented in
      +     * [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l5 = 12; + * + * @return The bytes for categoryL5. + */ + public com.google.protobuf.ByteString getCategoryL5Bytes() { + java.lang.Object ref = categoryL5_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + categoryL5_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Product category (5th level) of the product cluster, represented in
      +     * [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l5 = 12; + * + * @param value The categoryL5 to set. + * @return This builder for chaining. + */ + public Builder setCategoryL5(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + categoryL5_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product category (5th level) of the product cluster, represented in
      +     * [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l5 = 12; + * + * @return This builder for chaining. + */ + public Builder clearCategoryL5() { + categoryL5_ = getDefaultInstance().getCategoryL5(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product category (5th level) of the product cluster, represented in
      +     * [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l5 = 12; + * + * @param value The bytes for categoryL5 to set. + * @return This builder for chaining. + */ + public Builder setCategoryL5Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + categoryL5_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList variantGtins_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureVariantGtinsIsMutable() { + if (!variantGtins_.isModifiable()) { + variantGtins_ = new com.google.protobuf.LazyStringArrayList(variantGtins_); + } + bitField0_ |= 0x00000800; + } + + /** + * + * + *
      +     * GTINs of example variants of the product cluster.
      +     * 
      + * + * repeated string variant_gtins = 13; + * + * @return A list containing the variantGtins. + */ + public com.google.protobuf.ProtocolStringList getVariantGtinsList() { + variantGtins_.makeImmutable(); + return variantGtins_; + } + + /** + * + * + *
      +     * GTINs of example variants of the product cluster.
      +     * 
      + * + * repeated string variant_gtins = 13; + * + * @return The count of variantGtins. + */ + public int getVariantGtinsCount() { + return variantGtins_.size(); + } + + /** + * + * + *
      +     * GTINs of example variants of the product cluster.
      +     * 
      + * + * repeated string variant_gtins = 13; + * + * @param index The index of the element to return. + * @return The variantGtins at the given index. + */ + public java.lang.String getVariantGtins(int index) { + return variantGtins_.get(index); + } + + /** + * + * + *
      +     * GTINs of example variants of the product cluster.
      +     * 
      + * + * repeated string variant_gtins = 13; + * + * @param index The index of the value to return. + * @return The bytes of the variantGtins at the given index. + */ + public com.google.protobuf.ByteString getVariantGtinsBytes(int index) { + return variantGtins_.getByteString(index); + } + + /** + * + * + *
      +     * GTINs of example variants of the product cluster.
      +     * 
      + * + * repeated string variant_gtins = 13; + * + * @param index The index to set the value at. + * @param value The variantGtins to set. + * @return This builder for chaining. + */ + public Builder setVariantGtins(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureVariantGtinsIsMutable(); + variantGtins_.set(index, value); + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
      +     * GTINs of example variants of the product cluster.
      +     * 
      + * + * repeated string variant_gtins = 13; + * + * @param value The variantGtins to add. + * @return This builder for chaining. + */ + public Builder addVariantGtins(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureVariantGtinsIsMutable(); + variantGtins_.add(value); + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
      +     * GTINs of example variants of the product cluster.
      +     * 
      + * + * repeated string variant_gtins = 13; + * + * @param values The variantGtins to add. + * @return This builder for chaining. + */ + public Builder addAllVariantGtins(java.lang.Iterable values) { + ensureVariantGtinsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, variantGtins_); + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
      +     * GTINs of example variants of the product cluster.
      +     * 
      + * + * repeated string variant_gtins = 13; + * + * @return This builder for chaining. + */ + public Builder clearVariantGtins() { + variantGtins_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000800); + ; + onChanged(); + return this; + } + + /** + * + * + *
      +     * GTINs of example variants of the product cluster.
      +     * 
      + * + * repeated string variant_gtins = 13; + * + * @param value The bytes of the variantGtins to add. + * @return This builder for chaining. + */ + public Builder addVariantGtinsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureVariantGtinsIsMutable(); + variantGtins_.add(value); + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + private int inventoryStatus_ = 0; + + /** + * + * + *
      +     * Whether the product cluster is `IN_STOCK` in your product data source in at
      +     * least one of the countries, `OUT_OF_STOCK` in your product data source in
      +     * all countries, or `NOT_IN_INVENTORY` at all.
      +     *
      +     * The field doesn't take the Best sellers report country filter into account.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView.InventoryStatus inventory_status = 14; + * + * + * @return Whether the inventoryStatus field is set. + */ + @java.lang.Override + public boolean hasInventoryStatus() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
      +     * Whether the product cluster is `IN_STOCK` in your product data source in at
      +     * least one of the countries, `OUT_OF_STOCK` in your product data source in
      +     * all countries, or `NOT_IN_INVENTORY` at all.
      +     *
      +     * The field doesn't take the Best sellers report country filter into account.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView.InventoryStatus inventory_status = 14; + * + * + * @return The enum numeric value on the wire for inventoryStatus. + */ + @java.lang.Override + public int getInventoryStatusValue() { + return inventoryStatus_; + } + + /** + * + * + *
      +     * Whether the product cluster is `IN_STOCK` in your product data source in at
      +     * least one of the countries, `OUT_OF_STOCK` in your product data source in
      +     * all countries, or `NOT_IN_INVENTORY` at all.
      +     *
      +     * The field doesn't take the Best sellers report country filter into account.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView.InventoryStatus inventory_status = 14; + * + * + * @param value The enum numeric value on the wire for inventoryStatus to set. + * @return This builder for chaining. + */ + public Builder setInventoryStatusValue(int value) { + inventoryStatus_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Whether the product cluster is `IN_STOCK` in your product data source in at
      +     * least one of the countries, `OUT_OF_STOCK` in your product data source in
      +     * all countries, or `NOT_IN_INVENTORY` at all.
      +     *
      +     * The field doesn't take the Best sellers report country filter into account.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView.InventoryStatus inventory_status = 14; + * + * + * @return The inventoryStatus. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView + .InventoryStatus + getInventoryStatus() { + com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView.InventoryStatus + result = + com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView + .InventoryStatus.forNumber(inventoryStatus_); + return result == null + ? com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView + .InventoryStatus.UNRECOGNIZED + : result; + } + + /** + * + * + *
      +     * Whether the product cluster is `IN_STOCK` in your product data source in at
      +     * least one of the countries, `OUT_OF_STOCK` in your product data source in
      +     * all countries, or `NOT_IN_INVENTORY` at all.
      +     *
      +     * The field doesn't take the Best sellers report country filter into account.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView.InventoryStatus inventory_status = 14; + * + * + * @param value The inventoryStatus to set. + * @return This builder for chaining. + */ + public Builder setInventoryStatus( + com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView.InventoryStatus + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00001000; + inventoryStatus_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Whether the product cluster is `IN_STOCK` in your product data source in at
      +     * least one of the countries, `OUT_OF_STOCK` in your product data source in
      +     * all countries, or `NOT_IN_INVENTORY` at all.
      +     *
      +     * The field doesn't take the Best sellers report country filter into account.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView.InventoryStatus inventory_status = 14; + * + * + * @return This builder for chaining. + */ + public Builder clearInventoryStatus() { + bitField0_ = (bitField0_ & ~0x00001000); + inventoryStatus_ = 0; + onChanged(); + return this; + } + + private int brandInventoryStatus_ = 0; + + /** + * + * + *
      +     * Whether there is at least one product of the brand currently `IN_STOCK` in
      +     * your product data source in at least one of the countries, all products are
      +     * `OUT_OF_STOCK` in your product data source in all countries, or
      +     * `NOT_IN_INVENTORY`.
      +     *
      +     * The field doesn't take the Best sellers report country filter into account.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView.InventoryStatus brand_inventory_status = 15; + * + * + * @return Whether the brandInventoryStatus field is set. + */ + @java.lang.Override + public boolean hasBrandInventoryStatus() { + return ((bitField0_ & 0x00002000) != 0); + } + + /** + * + * + *
      +     * Whether there is at least one product of the brand currently `IN_STOCK` in
      +     * your product data source in at least one of the countries, all products are
      +     * `OUT_OF_STOCK` in your product data source in all countries, or
      +     * `NOT_IN_INVENTORY`.
      +     *
      +     * The field doesn't take the Best sellers report country filter into account.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView.InventoryStatus brand_inventory_status = 15; + * + * + * @return The enum numeric value on the wire for brandInventoryStatus. + */ + @java.lang.Override + public int getBrandInventoryStatusValue() { + return brandInventoryStatus_; + } + + /** + * + * + *
      +     * Whether there is at least one product of the brand currently `IN_STOCK` in
      +     * your product data source in at least one of the countries, all products are
      +     * `OUT_OF_STOCK` in your product data source in all countries, or
      +     * `NOT_IN_INVENTORY`.
      +     *
      +     * The field doesn't take the Best sellers report country filter into account.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView.InventoryStatus brand_inventory_status = 15; + * + * + * @param value The enum numeric value on the wire for brandInventoryStatus to set. + * @return This builder for chaining. + */ + public Builder setBrandInventoryStatusValue(int value) { + brandInventoryStatus_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Whether there is at least one product of the brand currently `IN_STOCK` in
      +     * your product data source in at least one of the countries, all products are
      +     * `OUT_OF_STOCK` in your product data source in all countries, or
      +     * `NOT_IN_INVENTORY`.
      +     *
      +     * The field doesn't take the Best sellers report country filter into account.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView.InventoryStatus brand_inventory_status = 15; + * + * + * @return The brandInventoryStatus. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView + .InventoryStatus + getBrandInventoryStatus() { + com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView.InventoryStatus + result = + com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView + .InventoryStatus.forNumber(brandInventoryStatus_); + return result == null + ? com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView + .InventoryStatus.UNRECOGNIZED + : result; + } + + /** + * + * + *
      +     * Whether there is at least one product of the brand currently `IN_STOCK` in
      +     * your product data source in at least one of the countries, all products are
      +     * `OUT_OF_STOCK` in your product data source in all countries, or
      +     * `NOT_IN_INVENTORY`.
      +     *
      +     * The field doesn't take the Best sellers report country filter into account.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView.InventoryStatus brand_inventory_status = 15; + * + * + * @param value The brandInventoryStatus to set. + * @return This builder for chaining. + */ + public Builder setBrandInventoryStatus( + com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView.InventoryStatus + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00002000; + brandInventoryStatus_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Whether there is at least one product of the brand currently `IN_STOCK` in
      +     * your product data source in at least one of the countries, all products are
      +     * `OUT_OF_STOCK` in your product data source in all countries, or
      +     * `NOT_IN_INVENTORY`.
      +     *
      +     * The field doesn't take the Best sellers report country filter into account.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView.InventoryStatus brand_inventory_status = 15; + * + * + * @return This builder for chaining. + */ + public Builder clearBrandInventoryStatus() { + bitField0_ = (bitField0_ & ~0x00002000); + brandInventoryStatus_ = 0; + onChanged(); + return this; + } + + private long rank_; + + /** + * + * + *
      +     * Popularity of the product cluster on Ads and organic surfaces, in the
      +     * selected category and country, based on the estimated number of units sold.
      +     * 
      + * + * optional int64 rank = 16; + * + * @return Whether the rank field is set. + */ + @java.lang.Override + public boolean hasRank() { + return ((bitField0_ & 0x00004000) != 0); + } + + /** + * + * + *
      +     * Popularity of the product cluster on Ads and organic surfaces, in the
      +     * selected category and country, based on the estimated number of units sold.
      +     * 
      + * + * optional int64 rank = 16; + * + * @return The rank. + */ + @java.lang.Override + public long getRank() { + return rank_; + } + + /** + * + * + *
      +     * Popularity of the product cluster on Ads and organic surfaces, in the
      +     * selected category and country, based on the estimated number of units sold.
      +     * 
      + * + * optional int64 rank = 16; + * + * @param value The rank to set. + * @return This builder for chaining. + */ + public Builder setRank(long value) { + + rank_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Popularity of the product cluster on Ads and organic surfaces, in the
      +     * selected category and country, based on the estimated number of units sold.
      +     * 
      + * + * optional int64 rank = 16; + * + * @return This builder for chaining. + */ + public Builder clearRank() { + bitField0_ = (bitField0_ & ~0x00004000); + rank_ = 0L; + onChanged(); + return this; + } + + private long previousRank_; + + /** + * + * + *
      +     * Popularity rank in the previous week or month.
      +     * 
      + * + * optional int64 previous_rank = 17; + * + * @return Whether the previousRank field is set. + */ + @java.lang.Override + public boolean hasPreviousRank() { + return ((bitField0_ & 0x00008000) != 0); + } + + /** + * + * + *
      +     * Popularity rank in the previous week or month.
      +     * 
      + * + * optional int64 previous_rank = 17; + * + * @return The previousRank. + */ + @java.lang.Override + public long getPreviousRank() { + return previousRank_; + } + + /** + * + * + *
      +     * Popularity rank in the previous week or month.
      +     * 
      + * + * optional int64 previous_rank = 17; + * + * @param value The previousRank to set. + * @return This builder for chaining. + */ + public Builder setPreviousRank(long value) { + + previousRank_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Popularity rank in the previous week or month.
      +     * 
      + * + * optional int64 previous_rank = 17; + * + * @return This builder for chaining. + */ + public Builder clearPreviousRank() { + bitField0_ = (bitField0_ & ~0x00008000); + previousRank_ = 0L; + onChanged(); + return this; + } + + private int relativeDemand_ = 0; + + /** + * + * + *
      +     * Estimated demand in relation to the product cluster with the highest
      +     * popularity rank in the same category and country.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum relative_demand = 18; + * + * + * @return Whether the relativeDemand field is set. + */ + @java.lang.Override + public boolean hasRelativeDemand() { + return ((bitField0_ & 0x00010000) != 0); + } + + /** + * + * + *
      +     * Estimated demand in relation to the product cluster with the highest
      +     * popularity rank in the same category and country.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum relative_demand = 18; + * + * + * @return The enum numeric value on the wire for relativeDemand. + */ + @java.lang.Override + public int getRelativeDemandValue() { + return relativeDemand_; + } + + /** + * + * + *
      +     * Estimated demand in relation to the product cluster with the highest
      +     * popularity rank in the same category and country.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum relative_demand = 18; + * + * + * @param value The enum numeric value on the wire for relativeDemand to set. + * @return This builder for chaining. + */ + public Builder setRelativeDemandValue(int value) { + relativeDemand_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Estimated demand in relation to the product cluster with the highest
      +     * popularity rank in the same category and country.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum relative_demand = 18; + * + * + * @return The relativeDemand. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum + getRelativeDemand() { + com.google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum result = + com.google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum.forNumber( + relativeDemand_); + return result == null + ? com.google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum + .UNRECOGNIZED + : result; + } + + /** + * + * + *
      +     * Estimated demand in relation to the product cluster with the highest
      +     * popularity rank in the same category and country.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum relative_demand = 18; + * + * + * @param value The relativeDemand to set. + * @return This builder for chaining. + */ + public Builder setRelativeDemand( + com.google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00010000; + relativeDemand_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Estimated demand in relation to the product cluster with the highest
      +     * popularity rank in the same category and country.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum relative_demand = 18; + * + * + * @return This builder for chaining. + */ + public Builder clearRelativeDemand() { + bitField0_ = (bitField0_ & ~0x00010000); + relativeDemand_ = 0; + onChanged(); + return this; + } + + private int previousRelativeDemand_ = 0; + + /** + * + * + *
      +     * Estimated demand in relation to the product cluster with the highest
      +     * popularity rank in the same category and country in the previous week or
      +     * month.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum previous_relative_demand = 19; + * + * + * @return Whether the previousRelativeDemand field is set. + */ + @java.lang.Override + public boolean hasPreviousRelativeDemand() { + return ((bitField0_ & 0x00020000) != 0); + } + + /** + * + * + *
      +     * Estimated demand in relation to the product cluster with the highest
      +     * popularity rank in the same category and country in the previous week or
      +     * month.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum previous_relative_demand = 19; + * + * + * @return The enum numeric value on the wire for previousRelativeDemand. + */ + @java.lang.Override + public int getPreviousRelativeDemandValue() { + return previousRelativeDemand_; + } + + /** + * + * + *
      +     * Estimated demand in relation to the product cluster with the highest
      +     * popularity rank in the same category and country in the previous week or
      +     * month.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum previous_relative_demand = 19; + * + * + * @param value The enum numeric value on the wire for previousRelativeDemand to set. + * @return This builder for chaining. + */ + public Builder setPreviousRelativeDemandValue(int value) { + previousRelativeDemand_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Estimated demand in relation to the product cluster with the highest
      +     * popularity rank in the same category and country in the previous week or
      +     * month.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum previous_relative_demand = 19; + * + * + * @return The previousRelativeDemand. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum + getPreviousRelativeDemand() { + com.google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum result = + com.google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum.forNumber( + previousRelativeDemand_); + return result == null + ? com.google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum + .UNRECOGNIZED + : result; + } + + /** + * + * + *
      +     * Estimated demand in relation to the product cluster with the highest
      +     * popularity rank in the same category and country in the previous week or
      +     * month.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum previous_relative_demand = 19; + * + * + * @param value The previousRelativeDemand to set. + * @return This builder for chaining. + */ + public Builder setPreviousRelativeDemand( + com.google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00020000; + previousRelativeDemand_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Estimated demand in relation to the product cluster with the highest
      +     * popularity rank in the same category and country in the previous week or
      +     * month.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum previous_relative_demand = 19; + * + * + * @return This builder for chaining. + */ + public Builder clearPreviousRelativeDemand() { + bitField0_ = (bitField0_ & ~0x00020000); + previousRelativeDemand_ = 0; + onChanged(); + return this; + } + + private int relativeDemandChange_ = 0; + + /** + * + * + *
      +     * Change in the estimated demand. Whether it rose, sank or remained flat.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 20; + * + * + * @return Whether the relativeDemandChange field is set. + */ + @java.lang.Override + public boolean hasRelativeDemandChange() { + return ((bitField0_ & 0x00040000) != 0); + } + + /** + * + * + *
      +     * Change in the estimated demand. Whether it rose, sank or remained flat.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 20; + * + * + * @return The enum numeric value on the wire for relativeDemandChange. + */ + @java.lang.Override + public int getRelativeDemandChangeValue() { + return relativeDemandChange_; + } + + /** + * + * + *
      +     * Change in the estimated demand. Whether it rose, sank or remained flat.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 20; + * + * + * @param value The enum numeric value on the wire for relativeDemandChange to set. + * @return This builder for chaining. + */ + public Builder setRelativeDemandChangeValue(int value) { + relativeDemandChange_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Change in the estimated demand. Whether it rose, sank or remained flat.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 20; + * + * + * @return The relativeDemandChange. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType + .RelativeDemandChangeTypeEnum + getRelativeDemandChange() { + com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType + .RelativeDemandChangeTypeEnum + result = + com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType + .RelativeDemandChangeTypeEnum.forNumber(relativeDemandChange_); + return result == null + ? com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType + .RelativeDemandChangeTypeEnum.UNRECOGNIZED + : result; + } + + /** + * + * + *
      +     * Change in the estimated demand. Whether it rose, sank or remained flat.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 20; + * + * + * @param value The relativeDemandChange to set. + * @return This builder for chaining. + */ + public Builder setRelativeDemandChange( + com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType + .RelativeDemandChangeTypeEnum + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00040000; + relativeDemandChange_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Change in the estimated demand. Whether it rose, sank or remained flat.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 20; + * + * + * @return This builder for chaining. + */ + public Builder clearRelativeDemandChange() { + bitField0_ = (bitField0_ & ~0x00040000); + relativeDemandChange_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView) + private static final com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView(); + } + + public static com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BestSellersProductClusterView parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/BestSellersProductClusterViewOrBuilder.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/BestSellersProductClusterViewOrBuilder.java new file mode 100644 index 000000000000..0e234405cac7 --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/BestSellersProductClusterViewOrBuilder.java @@ -0,0 +1,908 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/reports/v1alpha/reports.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.reports.v1alpha; + +public interface BestSellersProductClusterViewOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Report date. The value of this field can only be one of the following:
      +   *
      +   * *   The first day of the week (Monday) for weekly reports,
      +   * *   The first day of the month for monthly reports.
      +   *
      +   * Required in the `SELECT` clause. If a `WHERE` condition on `report_date` is
      +   * not specified in the query, the latest available weekly or monthly report
      +   * is returned.
      +   * 
      + * + * .google.type.Date report_date = 1; + * + * @return Whether the reportDate field is set. + */ + boolean hasReportDate(); + + /** + * + * + *
      +   * Report date. The value of this field can only be one of the following:
      +   *
      +   * *   The first day of the week (Monday) for weekly reports,
      +   * *   The first day of the month for monthly reports.
      +   *
      +   * Required in the `SELECT` clause. If a `WHERE` condition on `report_date` is
      +   * not specified in the query, the latest available weekly or monthly report
      +   * is returned.
      +   * 
      + * + * .google.type.Date report_date = 1; + * + * @return The reportDate. + */ + com.google.type.Date getReportDate(); + + /** + * + * + *
      +   * Report date. The value of this field can only be one of the following:
      +   *
      +   * *   The first day of the week (Monday) for weekly reports,
      +   * *   The first day of the month for monthly reports.
      +   *
      +   * Required in the `SELECT` clause. If a `WHERE` condition on `report_date` is
      +   * not specified in the query, the latest available weekly or monthly report
      +   * is returned.
      +   * 
      + * + * .google.type.Date report_date = 1; + */ + com.google.type.DateOrBuilder getReportDateOrBuilder(); + + /** + * + * + *
      +   * Granularity of the report. The ranking can be done over a week or a month
      +   * timeframe.
      +   *
      +   * Required in the `SELECT` clause. Condition on `report_granularity` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ReportGranularity.ReportGranularityEnum report_granularity = 2; + * + * + * @return Whether the reportGranularity field is set. + */ + boolean hasReportGranularity(); + + /** + * + * + *
      +   * Granularity of the report. The ranking can be done over a week or a month
      +   * timeframe.
      +   *
      +   * Required in the `SELECT` clause. Condition on `report_granularity` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ReportGranularity.ReportGranularityEnum report_granularity = 2; + * + * + * @return The enum numeric value on the wire for reportGranularity. + */ + int getReportGranularityValue(); + + /** + * + * + *
      +   * Granularity of the report. The ranking can be done over a week or a month
      +   * timeframe.
      +   *
      +   * Required in the `SELECT` clause. Condition on `report_granularity` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ReportGranularity.ReportGranularityEnum report_granularity = 2; + * + * + * @return The reportGranularity. + */ + com.google.shopping.merchant.reports.v1alpha.ReportGranularity.ReportGranularityEnum + getReportGranularity(); + + /** + * + * + *
      +   * Country where the ranking is calculated. Represented in the ISO 3166
      +   * format.
      +   *
      +   * Required in the `SELECT` clause. Condition on `report_country_code` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * optional string report_country_code = 3; + * + * @return Whether the reportCountryCode field is set. + */ + boolean hasReportCountryCode(); + + /** + * + * + *
      +   * Country where the ranking is calculated. Represented in the ISO 3166
      +   * format.
      +   *
      +   * Required in the `SELECT` clause. Condition on `report_country_code` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * optional string report_country_code = 3; + * + * @return The reportCountryCode. + */ + java.lang.String getReportCountryCode(); + + /** + * + * + *
      +   * Country where the ranking is calculated. Represented in the ISO 3166
      +   * format.
      +   *
      +   * Required in the `SELECT` clause. Condition on `report_country_code` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * optional string report_country_code = 3; + * + * @return The bytes for reportCountryCode. + */ + com.google.protobuf.ByteString getReportCountryCodeBytes(); + + /** + * + * + *
      +   * Google product category ID to calculate the ranking for, represented in
      +   * [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   *
      +   * Required in the `SELECT` clause. If a `WHERE` condition on
      +   * `report_category_id` is not specified in the query, rankings for all
      +   * top-level categories are returned.
      +   * 
      + * + * optional int64 report_category_id = 4; + * + * @return Whether the reportCategoryId field is set. + */ + boolean hasReportCategoryId(); + + /** + * + * + *
      +   * Google product category ID to calculate the ranking for, represented in
      +   * [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   *
      +   * Required in the `SELECT` clause. If a `WHERE` condition on
      +   * `report_category_id` is not specified in the query, rankings for all
      +   * top-level categories are returned.
      +   * 
      + * + * optional int64 report_category_id = 4; + * + * @return The reportCategoryId. + */ + long getReportCategoryId(); + + /** + * + * + *
      +   * Title of the product cluster.
      +   * 
      + * + * optional string title = 6; + * + * @return Whether the title field is set. + */ + boolean hasTitle(); + + /** + * + * + *
      +   * Title of the product cluster.
      +   * 
      + * + * optional string title = 6; + * + * @return The title. + */ + java.lang.String getTitle(); + + /** + * + * + *
      +   * Title of the product cluster.
      +   * 
      + * + * optional string title = 6; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
      +   * Brand of the product cluster.
      +   * 
      + * + * optional string brand = 7; + * + * @return Whether the brand field is set. + */ + boolean hasBrand(); + + /** + * + * + *
      +   * Brand of the product cluster.
      +   * 
      + * + * optional string brand = 7; + * + * @return The brand. + */ + java.lang.String getBrand(); + + /** + * + * + *
      +   * Brand of the product cluster.
      +   * 
      + * + * optional string brand = 7; + * + * @return The bytes for brand. + */ + com.google.protobuf.ByteString getBrandBytes(); + + /** + * + * + *
      +   * Product category (1st level) of the product cluster, represented in
      +   * [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l1 = 8; + * + * @return Whether the categoryL1 field is set. + */ + boolean hasCategoryL1(); + + /** + * + * + *
      +   * Product category (1st level) of the product cluster, represented in
      +   * [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l1 = 8; + * + * @return The categoryL1. + */ + java.lang.String getCategoryL1(); + + /** + * + * + *
      +   * Product category (1st level) of the product cluster, represented in
      +   * [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l1 = 8; + * + * @return The bytes for categoryL1. + */ + com.google.protobuf.ByteString getCategoryL1Bytes(); + + /** + * + * + *
      +   * Product category (2nd level) of the product cluster, represented in
      +   * [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l2 = 9; + * + * @return Whether the categoryL2 field is set. + */ + boolean hasCategoryL2(); + + /** + * + * + *
      +   * Product category (2nd level) of the product cluster, represented in
      +   * [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l2 = 9; + * + * @return The categoryL2. + */ + java.lang.String getCategoryL2(); + + /** + * + * + *
      +   * Product category (2nd level) of the product cluster, represented in
      +   * [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l2 = 9; + * + * @return The bytes for categoryL2. + */ + com.google.protobuf.ByteString getCategoryL2Bytes(); + + /** + * + * + *
      +   * Product category (3rd level) of the product cluster, represented in
      +   * [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l3 = 10; + * + * @return Whether the categoryL3 field is set. + */ + boolean hasCategoryL3(); + + /** + * + * + *
      +   * Product category (3rd level) of the product cluster, represented in
      +   * [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l3 = 10; + * + * @return The categoryL3. + */ + java.lang.String getCategoryL3(); + + /** + * + * + *
      +   * Product category (3rd level) of the product cluster, represented in
      +   * [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l3 = 10; + * + * @return The bytes for categoryL3. + */ + com.google.protobuf.ByteString getCategoryL3Bytes(); + + /** + * + * + *
      +   * Product category (4th level) of the product cluster, represented in
      +   * [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l4 = 11; + * + * @return Whether the categoryL4 field is set. + */ + boolean hasCategoryL4(); + + /** + * + * + *
      +   * Product category (4th level) of the product cluster, represented in
      +   * [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l4 = 11; + * + * @return The categoryL4. + */ + java.lang.String getCategoryL4(); + + /** + * + * + *
      +   * Product category (4th level) of the product cluster, represented in
      +   * [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l4 = 11; + * + * @return The bytes for categoryL4. + */ + com.google.protobuf.ByteString getCategoryL4Bytes(); + + /** + * + * + *
      +   * Product category (5th level) of the product cluster, represented in
      +   * [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l5 = 12; + * + * @return Whether the categoryL5 field is set. + */ + boolean hasCategoryL5(); + + /** + * + * + *
      +   * Product category (5th level) of the product cluster, represented in
      +   * [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l5 = 12; + * + * @return The categoryL5. + */ + java.lang.String getCategoryL5(); + + /** + * + * + *
      +   * Product category (5th level) of the product cluster, represented in
      +   * [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l5 = 12; + * + * @return The bytes for categoryL5. + */ + com.google.protobuf.ByteString getCategoryL5Bytes(); + + /** + * + * + *
      +   * GTINs of example variants of the product cluster.
      +   * 
      + * + * repeated string variant_gtins = 13; + * + * @return A list containing the variantGtins. + */ + java.util.List getVariantGtinsList(); + + /** + * + * + *
      +   * GTINs of example variants of the product cluster.
      +   * 
      + * + * repeated string variant_gtins = 13; + * + * @return The count of variantGtins. + */ + int getVariantGtinsCount(); + + /** + * + * + *
      +   * GTINs of example variants of the product cluster.
      +   * 
      + * + * repeated string variant_gtins = 13; + * + * @param index The index of the element to return. + * @return The variantGtins at the given index. + */ + java.lang.String getVariantGtins(int index); + + /** + * + * + *
      +   * GTINs of example variants of the product cluster.
      +   * 
      + * + * repeated string variant_gtins = 13; + * + * @param index The index of the value to return. + * @return The bytes of the variantGtins at the given index. + */ + com.google.protobuf.ByteString getVariantGtinsBytes(int index); + + /** + * + * + *
      +   * Whether the product cluster is `IN_STOCK` in your product data source in at
      +   * least one of the countries, `OUT_OF_STOCK` in your product data source in
      +   * all countries, or `NOT_IN_INVENTORY` at all.
      +   *
      +   * The field doesn't take the Best sellers report country filter into account.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView.InventoryStatus inventory_status = 14; + * + * + * @return Whether the inventoryStatus field is set. + */ + boolean hasInventoryStatus(); + + /** + * + * + *
      +   * Whether the product cluster is `IN_STOCK` in your product data source in at
      +   * least one of the countries, `OUT_OF_STOCK` in your product data source in
      +   * all countries, or `NOT_IN_INVENTORY` at all.
      +   *
      +   * The field doesn't take the Best sellers report country filter into account.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView.InventoryStatus inventory_status = 14; + * + * + * @return The enum numeric value on the wire for inventoryStatus. + */ + int getInventoryStatusValue(); + + /** + * + * + *
      +   * Whether the product cluster is `IN_STOCK` in your product data source in at
      +   * least one of the countries, `OUT_OF_STOCK` in your product data source in
      +   * all countries, or `NOT_IN_INVENTORY` at all.
      +   *
      +   * The field doesn't take the Best sellers report country filter into account.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView.InventoryStatus inventory_status = 14; + * + * + * @return The inventoryStatus. + */ + com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView.InventoryStatus + getInventoryStatus(); + + /** + * + * + *
      +   * Whether there is at least one product of the brand currently `IN_STOCK` in
      +   * your product data source in at least one of the countries, all products are
      +   * `OUT_OF_STOCK` in your product data source in all countries, or
      +   * `NOT_IN_INVENTORY`.
      +   *
      +   * The field doesn't take the Best sellers report country filter into account.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView.InventoryStatus brand_inventory_status = 15; + * + * + * @return Whether the brandInventoryStatus field is set. + */ + boolean hasBrandInventoryStatus(); + + /** + * + * + *
      +   * Whether there is at least one product of the brand currently `IN_STOCK` in
      +   * your product data source in at least one of the countries, all products are
      +   * `OUT_OF_STOCK` in your product data source in all countries, or
      +   * `NOT_IN_INVENTORY`.
      +   *
      +   * The field doesn't take the Best sellers report country filter into account.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView.InventoryStatus brand_inventory_status = 15; + * + * + * @return The enum numeric value on the wire for brandInventoryStatus. + */ + int getBrandInventoryStatusValue(); + + /** + * + * + *
      +   * Whether there is at least one product of the brand currently `IN_STOCK` in
      +   * your product data source in at least one of the countries, all products are
      +   * `OUT_OF_STOCK` in your product data source in all countries, or
      +   * `NOT_IN_INVENTORY`.
      +   *
      +   * The field doesn't take the Best sellers report country filter into account.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView.InventoryStatus brand_inventory_status = 15; + * + * + * @return The brandInventoryStatus. + */ + com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView.InventoryStatus + getBrandInventoryStatus(); + + /** + * + * + *
      +   * Popularity of the product cluster on Ads and organic surfaces, in the
      +   * selected category and country, based on the estimated number of units sold.
      +   * 
      + * + * optional int64 rank = 16; + * + * @return Whether the rank field is set. + */ + boolean hasRank(); + + /** + * + * + *
      +   * Popularity of the product cluster on Ads and organic surfaces, in the
      +   * selected category and country, based on the estimated number of units sold.
      +   * 
      + * + * optional int64 rank = 16; + * + * @return The rank. + */ + long getRank(); + + /** + * + * + *
      +   * Popularity rank in the previous week or month.
      +   * 
      + * + * optional int64 previous_rank = 17; + * + * @return Whether the previousRank field is set. + */ + boolean hasPreviousRank(); + + /** + * + * + *
      +   * Popularity rank in the previous week or month.
      +   * 
      + * + * optional int64 previous_rank = 17; + * + * @return The previousRank. + */ + long getPreviousRank(); + + /** + * + * + *
      +   * Estimated demand in relation to the product cluster with the highest
      +   * popularity rank in the same category and country.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum relative_demand = 18; + * + * + * @return Whether the relativeDemand field is set. + */ + boolean hasRelativeDemand(); + + /** + * + * + *
      +   * Estimated demand in relation to the product cluster with the highest
      +   * popularity rank in the same category and country.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum relative_demand = 18; + * + * + * @return The enum numeric value on the wire for relativeDemand. + */ + int getRelativeDemandValue(); + + /** + * + * + *
      +   * Estimated demand in relation to the product cluster with the highest
      +   * popularity rank in the same category and country.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum relative_demand = 18; + * + * + * @return The relativeDemand. + */ + com.google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum + getRelativeDemand(); + + /** + * + * + *
      +   * Estimated demand in relation to the product cluster with the highest
      +   * popularity rank in the same category and country in the previous week or
      +   * month.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum previous_relative_demand = 19; + * + * + * @return Whether the previousRelativeDemand field is set. + */ + boolean hasPreviousRelativeDemand(); + + /** + * + * + *
      +   * Estimated demand in relation to the product cluster with the highest
      +   * popularity rank in the same category and country in the previous week or
      +   * month.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum previous_relative_demand = 19; + * + * + * @return The enum numeric value on the wire for previousRelativeDemand. + */ + int getPreviousRelativeDemandValue(); + + /** + * + * + *
      +   * Estimated demand in relation to the product cluster with the highest
      +   * popularity rank in the same category and country in the previous week or
      +   * month.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum previous_relative_demand = 19; + * + * + * @return The previousRelativeDemand. + */ + com.google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum + getPreviousRelativeDemand(); + + /** + * + * + *
      +   * Change in the estimated demand. Whether it rose, sank or remained flat.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 20; + * + * + * @return Whether the relativeDemandChange field is set. + */ + boolean hasRelativeDemandChange(); + + /** + * + * + *
      +   * Change in the estimated demand. Whether it rose, sank or remained flat.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 20; + * + * + * @return The enum numeric value on the wire for relativeDemandChange. + */ + int getRelativeDemandChangeValue(); + + /** + * + * + *
      +   * Change in the estimated demand. Whether it rose, sank or remained flat.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 20; + * + * + * @return The relativeDemandChange. + */ + com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType.RelativeDemandChangeTypeEnum + getRelativeDemandChange(); +} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/CompetitiveVisibilityBenchmarkView.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/CompetitiveVisibilityBenchmarkView.java new file mode 100644 index 000000000000..0f1309a2301a --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/CompetitiveVisibilityBenchmarkView.java @@ -0,0 +1,1796 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/reports/v1alpha/reports.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.reports.v1alpha; + +/** + * + * + *
      + * Fields available for query in `competitive_visibility_benchmark_view` table.
      + *
      + * [Competitive
      + * visibility](https://support.google.com/merchants/answer/11366442) report with
      + * the category benchmark.
      + *
      + * Values are only set for fields requested explicitly in the request's search
      + * query.
      + * 
      + * + * Protobuf type {@code google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView} + */ +public final class CompetitiveVisibilityBenchmarkView extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView) + CompetitiveVisibilityBenchmarkViewOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CompetitiveVisibilityBenchmarkView.newBuilder() to construct. + private CompetitiveVisibilityBenchmarkView( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CompetitiveVisibilityBenchmarkView() { + reportCountryCode_ = ""; + trafficSource_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CompetitiveVisibilityBenchmarkView(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_CompetitiveVisibilityBenchmarkView_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_CompetitiveVisibilityBenchmarkView_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView.class, + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView.Builder + .class); + } + + private int bitField0_; + public static final int DATE_FIELD_NUMBER = 1; + private com.google.type.Date date_; + + /** + * + * + *
      +   * Date of this row.
      +   *
      +   * Required in the `SELECT` clause. A condition on `date` is required in the
      +   * `WHERE` clause.
      +   * 
      + * + * .google.type.Date date = 1; + * + * @return Whether the date field is set. + */ + @java.lang.Override + public boolean hasDate() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Date of this row.
      +   *
      +   * Required in the `SELECT` clause. A condition on `date` is required in the
      +   * `WHERE` clause.
      +   * 
      + * + * .google.type.Date date = 1; + * + * @return The date. + */ + @java.lang.Override + public com.google.type.Date getDate() { + return date_ == null ? com.google.type.Date.getDefaultInstance() : date_; + } + + /** + * + * + *
      +   * Date of this row.
      +   *
      +   * Required in the `SELECT` clause. A condition on `date` is required in the
      +   * `WHERE` clause.
      +   * 
      + * + * .google.type.Date date = 1; + */ + @java.lang.Override + public com.google.type.DateOrBuilder getDateOrBuilder() { + return date_ == null ? com.google.type.Date.getDefaultInstance() : date_; + } + + public static final int REPORT_COUNTRY_CODE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object reportCountryCode_ = ""; + + /** + * + * + *
      +   * Country where impressions appeared.
      +   *
      +   * Required in the `SELECT` clause. A condition on `report_country_code` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * optional string report_country_code = 2; + * + * @return Whether the reportCountryCode field is set. + */ + @java.lang.Override + public boolean hasReportCountryCode() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * Country where impressions appeared.
      +   *
      +   * Required in the `SELECT` clause. A condition on `report_country_code` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * optional string report_country_code = 2; + * + * @return The reportCountryCode. + */ + @java.lang.Override + public java.lang.String getReportCountryCode() { + java.lang.Object ref = reportCountryCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reportCountryCode_ = s; + return s; + } + } + + /** + * + * + *
      +   * Country where impressions appeared.
      +   *
      +   * Required in the `SELECT` clause. A condition on `report_country_code` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * optional string report_country_code = 2; + * + * @return The bytes for reportCountryCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getReportCountryCodeBytes() { + java.lang.Object ref = reportCountryCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + reportCountryCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REPORT_CATEGORY_ID_FIELD_NUMBER = 3; + private long reportCategoryId_ = 0L; + + /** + * + * + *
      +   * Google product category ID to calculate the report for, represented in
      +   * [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   *
      +   * Required in the `SELECT` clause. A condition on `report_category_id` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * optional int64 report_category_id = 3; + * + * @return Whether the reportCategoryId field is set. + */ + @java.lang.Override + public boolean hasReportCategoryId() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +   * Google product category ID to calculate the report for, represented in
      +   * [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   *
      +   * Required in the `SELECT` clause. A condition on `report_category_id` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * optional int64 report_category_id = 3; + * + * @return The reportCategoryId. + */ + @java.lang.Override + public long getReportCategoryId() { + return reportCategoryId_; + } + + public static final int TRAFFIC_SOURCE_FIELD_NUMBER = 4; + private int trafficSource_ = 0; + + /** + * + * + *
      +   * Traffic source of impressions.
      +   *
      +   * Required in the `SELECT` clause.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum traffic_source = 4; + * + * + * @return Whether the trafficSource field is set. + */ + @java.lang.Override + public boolean hasTrafficSource() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +   * Traffic source of impressions.
      +   *
      +   * Required in the `SELECT` clause.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum traffic_source = 4; + * + * + * @return The enum numeric value on the wire for trafficSource. + */ + @java.lang.Override + public int getTrafficSourceValue() { + return trafficSource_; + } + + /** + * + * + *
      +   * Traffic source of impressions.
      +   *
      +   * Required in the `SELECT` clause.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum traffic_source = 4; + * + * + * @return The trafficSource. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum + getTrafficSource() { + com.google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum result = + com.google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum.forNumber( + trafficSource_); + return result == null + ? com.google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum.UNRECOGNIZED + : result; + } + + public static final int YOUR_DOMAIN_VISIBILITY_TREND_FIELD_NUMBER = 5; + private double yourDomainVisibilityTrend_ = 0D; + + /** + * + * + *
      +   * Change in visibility based on impressions for your domain with respect to
      +   * the start of the selected time range (or first day with non-zero
      +   * impressions).
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional double your_domain_visibility_trend = 5; + * + * @return Whether the yourDomainVisibilityTrend field is set. + */ + @java.lang.Override + public boolean hasYourDomainVisibilityTrend() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
      +   * Change in visibility based on impressions for your domain with respect to
      +   * the start of the selected time range (or first day with non-zero
      +   * impressions).
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional double your_domain_visibility_trend = 5; + * + * @return The yourDomainVisibilityTrend. + */ + @java.lang.Override + public double getYourDomainVisibilityTrend() { + return yourDomainVisibilityTrend_; + } + + public static final int CATEGORY_BENCHMARK_VISIBILITY_TREND_FIELD_NUMBER = 6; + private double categoryBenchmarkVisibilityTrend_ = 0D; + + /** + * + * + *
      +   * Change in visibility based on impressions with respect to the start of the
      +   * selected time range (or first day with non-zero impressions) for a
      +   * combined set of merchants with highest visibility approximating the
      +   * market.
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional double category_benchmark_visibility_trend = 6; + * + * @return Whether the categoryBenchmarkVisibilityTrend field is set. + */ + @java.lang.Override + public boolean hasCategoryBenchmarkVisibilityTrend() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
      +   * Change in visibility based on impressions with respect to the start of the
      +   * selected time range (or first day with non-zero impressions) for a
      +   * combined set of merchants with highest visibility approximating the
      +   * market.
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional double category_benchmark_visibility_trend = 6; + * + * @return The categoryBenchmarkVisibilityTrend. + */ + @java.lang.Override + public double getCategoryBenchmarkVisibilityTrend() { + return categoryBenchmarkVisibilityTrend_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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, getDate()); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, reportCountryCode_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeInt64(3, reportCategoryId_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeEnum(4, trafficSource_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeDouble(5, yourDomainVisibilityTrend_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeDouble(6, categoryBenchmarkVisibilityTrend_); + } + 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, getDate()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, reportCountryCode_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, reportCategoryId_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, trafficSource_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeDoubleSize(5, yourDomainVisibilityTrend_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeDoubleSize( + 6, categoryBenchmarkVisibilityTrend_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView)) { + return super.equals(obj); + } + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView other = + (com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView) obj; + + if (hasDate() != other.hasDate()) return false; + if (hasDate()) { + if (!getDate().equals(other.getDate())) return false; + } + if (hasReportCountryCode() != other.hasReportCountryCode()) return false; + if (hasReportCountryCode()) { + if (!getReportCountryCode().equals(other.getReportCountryCode())) return false; + } + if (hasReportCategoryId() != other.hasReportCategoryId()) return false; + if (hasReportCategoryId()) { + if (getReportCategoryId() != other.getReportCategoryId()) return false; + } + if (hasTrafficSource() != other.hasTrafficSource()) return false; + if (hasTrafficSource()) { + if (trafficSource_ != other.trafficSource_) return false; + } + if (hasYourDomainVisibilityTrend() != other.hasYourDomainVisibilityTrend()) return false; + if (hasYourDomainVisibilityTrend()) { + if (java.lang.Double.doubleToLongBits(getYourDomainVisibilityTrend()) + != java.lang.Double.doubleToLongBits(other.getYourDomainVisibilityTrend())) return false; + } + if (hasCategoryBenchmarkVisibilityTrend() != other.hasCategoryBenchmarkVisibilityTrend()) + return false; + if (hasCategoryBenchmarkVisibilityTrend()) { + if (java.lang.Double.doubleToLongBits(getCategoryBenchmarkVisibilityTrend()) + != java.lang.Double.doubleToLongBits(other.getCategoryBenchmarkVisibilityTrend())) + return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDate()) { + hash = (37 * hash) + DATE_FIELD_NUMBER; + hash = (53 * hash) + getDate().hashCode(); + } + if (hasReportCountryCode()) { + hash = (37 * hash) + REPORT_COUNTRY_CODE_FIELD_NUMBER; + hash = (53 * hash) + getReportCountryCode().hashCode(); + } + if (hasReportCategoryId()) { + hash = (37 * hash) + REPORT_CATEGORY_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getReportCategoryId()); + } + if (hasTrafficSource()) { + hash = (37 * hash) + TRAFFIC_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + trafficSource_; + } + if (hasYourDomainVisibilityTrend()) { + hash = (37 * hash) + YOUR_DOMAIN_VISIBILITY_TREND_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getYourDomainVisibilityTrend())); + } + if (hasCategoryBenchmarkVisibilityTrend()) { + hash = (37 * hash) + CATEGORY_BENCHMARK_VISIBILITY_TREND_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getCategoryBenchmarkVisibilityTrend())); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Fields available for query in `competitive_visibility_benchmark_view` table.
      +   *
      +   * [Competitive
      +   * visibility](https://support.google.com/merchants/answer/11366442) report with
      +   * the category benchmark.
      +   *
      +   * Values are only set for fields requested explicitly in the request's search
      +   * query.
      +   * 
      + * + * Protobuf type {@code + * google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView) + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkViewOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_CompetitiveVisibilityBenchmarkView_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_CompetitiveVisibilityBenchmarkView_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView.class, + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView + .Builder.class); + } + + // Construct using + // com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDateFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + date_ = null; + if (dateBuilder_ != null) { + dateBuilder_.dispose(); + dateBuilder_ = null; + } + reportCountryCode_ = ""; + reportCategoryId_ = 0L; + trafficSource_ = 0; + yourDomainVisibilityTrend_ = 0D; + categoryBenchmarkVisibilityTrend_ = 0D; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_CompetitiveVisibilityBenchmarkView_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView + getDefaultInstanceForType() { + return com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView build() { + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView + buildPartial() { + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView result = + new com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.date_ = dateBuilder_ == null ? date_ : dateBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.reportCountryCode_ = reportCountryCode_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.reportCategoryId_ = reportCategoryId_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.trafficSource_ = trafficSource_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.yourDomainVisibilityTrend_ = yourDomainVisibilityTrend_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.categoryBenchmarkVisibilityTrend_ = categoryBenchmarkVisibilityTrend_; + to_bitField0_ |= 0x00000020; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView) { + return mergeFrom( + (com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView other) { + if (other + == com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView + .getDefaultInstance()) return this; + if (other.hasDate()) { + mergeDate(other.getDate()); + } + if (other.hasReportCountryCode()) { + reportCountryCode_ = other.reportCountryCode_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasReportCategoryId()) { + setReportCategoryId(other.getReportCategoryId()); + } + if (other.hasTrafficSource()) { + setTrafficSource(other.getTrafficSource()); + } + if (other.hasYourDomainVisibilityTrend()) { + setYourDomainVisibilityTrend(other.getYourDomainVisibilityTrend()); + } + if (other.hasCategoryBenchmarkVisibilityTrend()) { + setCategoryBenchmarkVisibilityTrend(other.getCategoryBenchmarkVisibilityTrend()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(getDateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + reportCountryCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + reportCategoryId_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + trafficSource_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 41: + { + yourDomainVisibilityTrend_ = input.readDouble(); + bitField0_ |= 0x00000010; + break; + } // case 41 + case 49: + { + categoryBenchmarkVisibilityTrend_ = input.readDouble(); + bitField0_ |= 0x00000020; + break; + } // case 49 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + 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.type.Date date_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + dateBuilder_; + + /** + * + * + *
      +     * Date of this row.
      +     *
      +     * Required in the `SELECT` clause. A condition on `date` is required in the
      +     * `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + * + * @return Whether the date field is set. + */ + public boolean hasDate() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +     * Date of this row.
      +     *
      +     * Required in the `SELECT` clause. A condition on `date` is required in the
      +     * `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + * + * @return The date. + */ + public com.google.type.Date getDate() { + if (dateBuilder_ == null) { + return date_ == null ? com.google.type.Date.getDefaultInstance() : date_; + } else { + return dateBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Date of this row.
      +     *
      +     * Required in the `SELECT` clause. A condition on `date` is required in the
      +     * `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + */ + public Builder setDate(com.google.type.Date value) { + if (dateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + date_ = value; + } else { + dateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Date of this row.
      +     *
      +     * Required in the `SELECT` clause. A condition on `date` is required in the
      +     * `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + */ + public Builder setDate(com.google.type.Date.Builder builderForValue) { + if (dateBuilder_ == null) { + date_ = builderForValue.build(); + } else { + dateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Date of this row.
      +     *
      +     * Required in the `SELECT` clause. A condition on `date` is required in the
      +     * `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + */ + public Builder mergeDate(com.google.type.Date value) { + if (dateBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && date_ != null + && date_ != com.google.type.Date.getDefaultInstance()) { + getDateBuilder().mergeFrom(value); + } else { + date_ = value; + } + } else { + dateBuilder_.mergeFrom(value); + } + if (date_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Date of this row.
      +     *
      +     * Required in the `SELECT` clause. A condition on `date` is required in the
      +     * `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + */ + public Builder clearDate() { + bitField0_ = (bitField0_ & ~0x00000001); + date_ = null; + if (dateBuilder_ != null) { + dateBuilder_.dispose(); + dateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Date of this row.
      +     *
      +     * Required in the `SELECT` clause. A condition on `date` is required in the
      +     * `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + */ + public com.google.type.Date.Builder getDateBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getDateFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Date of this row.
      +     *
      +     * Required in the `SELECT` clause. A condition on `date` is required in the
      +     * `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + */ + public com.google.type.DateOrBuilder getDateOrBuilder() { + if (dateBuilder_ != null) { + return dateBuilder_.getMessageOrBuilder(); + } else { + return date_ == null ? com.google.type.Date.getDefaultInstance() : date_; + } + } + + /** + * + * + *
      +     * Date of this row.
      +     *
      +     * Required in the `SELECT` clause. A condition on `date` is required in the
      +     * `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getDateFieldBuilder() { + if (dateBuilder_ == null) { + dateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getDate(), getParentForChildren(), isClean()); + date_ = null; + } + return dateBuilder_; + } + + private java.lang.Object reportCountryCode_ = ""; + + /** + * + * + *
      +     * Country where impressions appeared.
      +     *
      +     * Required in the `SELECT` clause. A condition on `report_country_code` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * optional string report_country_code = 2; + * + * @return Whether the reportCountryCode field is set. + */ + public boolean hasReportCountryCode() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +     * Country where impressions appeared.
      +     *
      +     * Required in the `SELECT` clause. A condition on `report_country_code` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * optional string report_country_code = 2; + * + * @return The reportCountryCode. + */ + public java.lang.String getReportCountryCode() { + java.lang.Object ref = reportCountryCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reportCountryCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Country where impressions appeared.
      +     *
      +     * Required in the `SELECT` clause. A condition on `report_country_code` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * optional string report_country_code = 2; + * + * @return The bytes for reportCountryCode. + */ + public com.google.protobuf.ByteString getReportCountryCodeBytes() { + java.lang.Object ref = reportCountryCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + reportCountryCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Country where impressions appeared.
      +     *
      +     * Required in the `SELECT` clause. A condition on `report_country_code` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * optional string report_country_code = 2; + * + * @param value The reportCountryCode to set. + * @return This builder for chaining. + */ + public Builder setReportCountryCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + reportCountryCode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Country where impressions appeared.
      +     *
      +     * Required in the `SELECT` clause. A condition on `report_country_code` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * optional string report_country_code = 2; + * + * @return This builder for chaining. + */ + public Builder clearReportCountryCode() { + reportCountryCode_ = getDefaultInstance().getReportCountryCode(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Country where impressions appeared.
      +     *
      +     * Required in the `SELECT` clause. A condition on `report_country_code` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * optional string report_country_code = 2; + * + * @param value The bytes for reportCountryCode to set. + * @return This builder for chaining. + */ + public Builder setReportCountryCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + reportCountryCode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private long reportCategoryId_; + + /** + * + * + *
      +     * Google product category ID to calculate the report for, represented in
      +     * [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     *
      +     * Required in the `SELECT` clause. A condition on `report_category_id` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * optional int64 report_category_id = 3; + * + * @return Whether the reportCategoryId field is set. + */ + @java.lang.Override + public boolean hasReportCategoryId() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +     * Google product category ID to calculate the report for, represented in
      +     * [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     *
      +     * Required in the `SELECT` clause. A condition on `report_category_id` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * optional int64 report_category_id = 3; + * + * @return The reportCategoryId. + */ + @java.lang.Override + public long getReportCategoryId() { + return reportCategoryId_; + } + + /** + * + * + *
      +     * Google product category ID to calculate the report for, represented in
      +     * [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     *
      +     * Required in the `SELECT` clause. A condition on `report_category_id` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * optional int64 report_category_id = 3; + * + * @param value The reportCategoryId to set. + * @return This builder for chaining. + */ + public Builder setReportCategoryId(long value) { + + reportCategoryId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Google product category ID to calculate the report for, represented in
      +     * [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     *
      +     * Required in the `SELECT` clause. A condition on `report_category_id` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * optional int64 report_category_id = 3; + * + * @return This builder for chaining. + */ + public Builder clearReportCategoryId() { + bitField0_ = (bitField0_ & ~0x00000004); + reportCategoryId_ = 0L; + onChanged(); + return this; + } + + private int trafficSource_ = 0; + + /** + * + * + *
      +     * Traffic source of impressions.
      +     *
      +     * Required in the `SELECT` clause.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum traffic_source = 4; + * + * + * @return Whether the trafficSource field is set. + */ + @java.lang.Override + public boolean hasTrafficSource() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +     * Traffic source of impressions.
      +     *
      +     * Required in the `SELECT` clause.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum traffic_source = 4; + * + * + * @return The enum numeric value on the wire for trafficSource. + */ + @java.lang.Override + public int getTrafficSourceValue() { + return trafficSource_; + } + + /** + * + * + *
      +     * Traffic source of impressions.
      +     *
      +     * Required in the `SELECT` clause.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum traffic_source = 4; + * + * + * @param value The enum numeric value on the wire for trafficSource to set. + * @return This builder for chaining. + */ + public Builder setTrafficSourceValue(int value) { + trafficSource_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Traffic source of impressions.
      +     *
      +     * Required in the `SELECT` clause.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum traffic_source = 4; + * + * + * @return The trafficSource. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum + getTrafficSource() { + com.google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum result = + com.google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum.forNumber( + trafficSource_); + return result == null + ? com.google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum + .UNRECOGNIZED + : result; + } + + /** + * + * + *
      +     * Traffic source of impressions.
      +     *
      +     * Required in the `SELECT` clause.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum traffic_source = 4; + * + * + * @param value The trafficSource to set. + * @return This builder for chaining. + */ + public Builder setTrafficSource( + com.google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + trafficSource_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Traffic source of impressions.
      +     *
      +     * Required in the `SELECT` clause.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum traffic_source = 4; + * + * + * @return This builder for chaining. + */ + public Builder clearTrafficSource() { + bitField0_ = (bitField0_ & ~0x00000008); + trafficSource_ = 0; + onChanged(); + return this; + } + + private double yourDomainVisibilityTrend_; + + /** + * + * + *
      +     * Change in visibility based on impressions for your domain with respect to
      +     * the start of the selected time range (or first day with non-zero
      +     * impressions).
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional double your_domain_visibility_trend = 5; + * + * @return Whether the yourDomainVisibilityTrend field is set. + */ + @java.lang.Override + public boolean hasYourDomainVisibilityTrend() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
      +     * Change in visibility based on impressions for your domain with respect to
      +     * the start of the selected time range (or first day with non-zero
      +     * impressions).
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional double your_domain_visibility_trend = 5; + * + * @return The yourDomainVisibilityTrend. + */ + @java.lang.Override + public double getYourDomainVisibilityTrend() { + return yourDomainVisibilityTrend_; + } + + /** + * + * + *
      +     * Change in visibility based on impressions for your domain with respect to
      +     * the start of the selected time range (or first day with non-zero
      +     * impressions).
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional double your_domain_visibility_trend = 5; + * + * @param value The yourDomainVisibilityTrend to set. + * @return This builder for chaining. + */ + public Builder setYourDomainVisibilityTrend(double value) { + + yourDomainVisibilityTrend_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Change in visibility based on impressions for your domain with respect to
      +     * the start of the selected time range (or first day with non-zero
      +     * impressions).
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional double your_domain_visibility_trend = 5; + * + * @return This builder for chaining. + */ + public Builder clearYourDomainVisibilityTrend() { + bitField0_ = (bitField0_ & ~0x00000010); + yourDomainVisibilityTrend_ = 0D; + onChanged(); + return this; + } + + private double categoryBenchmarkVisibilityTrend_; + + /** + * + * + *
      +     * Change in visibility based on impressions with respect to the start of the
      +     * selected time range (or first day with non-zero impressions) for a
      +     * combined set of merchants with highest visibility approximating the
      +     * market.
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional double category_benchmark_visibility_trend = 6; + * + * @return Whether the categoryBenchmarkVisibilityTrend field is set. + */ + @java.lang.Override + public boolean hasCategoryBenchmarkVisibilityTrend() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
      +     * Change in visibility based on impressions with respect to the start of the
      +     * selected time range (or first day with non-zero impressions) for a
      +     * combined set of merchants with highest visibility approximating the
      +     * market.
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional double category_benchmark_visibility_trend = 6; + * + * @return The categoryBenchmarkVisibilityTrend. + */ + @java.lang.Override + public double getCategoryBenchmarkVisibilityTrend() { + return categoryBenchmarkVisibilityTrend_; + } + + /** + * + * + *
      +     * Change in visibility based on impressions with respect to the start of the
      +     * selected time range (or first day with non-zero impressions) for a
      +     * combined set of merchants with highest visibility approximating the
      +     * market.
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional double category_benchmark_visibility_trend = 6; + * + * @param value The categoryBenchmarkVisibilityTrend to set. + * @return This builder for chaining. + */ + public Builder setCategoryBenchmarkVisibilityTrend(double value) { + + categoryBenchmarkVisibilityTrend_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Change in visibility based on impressions with respect to the start of the
      +     * selected time range (or first day with non-zero impressions) for a
      +     * combined set of merchants with highest visibility approximating the
      +     * market.
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional double category_benchmark_visibility_trend = 6; + * + * @return This builder for chaining. + */ + public Builder clearCategoryBenchmarkVisibilityTrend() { + bitField0_ = (bitField0_ & ~0x00000020); + categoryBenchmarkVisibilityTrend_ = 0D; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView) + private static final com.google.shopping.merchant.reports.v1alpha + .CompetitiveVisibilityBenchmarkView + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView(); + } + + public static com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompetitiveVisibilityBenchmarkView parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/CompetitiveVisibilityBenchmarkViewOrBuilder.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/CompetitiveVisibilityBenchmarkViewOrBuilder.java new file mode 100644 index 000000000000..50254c9c18fb --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/CompetitiveVisibilityBenchmarkViewOrBuilder.java @@ -0,0 +1,277 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/reports/v1alpha/reports.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.reports.v1alpha; + +public interface CompetitiveVisibilityBenchmarkViewOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Date of this row.
      +   *
      +   * Required in the `SELECT` clause. A condition on `date` is required in the
      +   * `WHERE` clause.
      +   * 
      + * + * .google.type.Date date = 1; + * + * @return Whether the date field is set. + */ + boolean hasDate(); + + /** + * + * + *
      +   * Date of this row.
      +   *
      +   * Required in the `SELECT` clause. A condition on `date` is required in the
      +   * `WHERE` clause.
      +   * 
      + * + * .google.type.Date date = 1; + * + * @return The date. + */ + com.google.type.Date getDate(); + + /** + * + * + *
      +   * Date of this row.
      +   *
      +   * Required in the `SELECT` clause. A condition on `date` is required in the
      +   * `WHERE` clause.
      +   * 
      + * + * .google.type.Date date = 1; + */ + com.google.type.DateOrBuilder getDateOrBuilder(); + + /** + * + * + *
      +   * Country where impressions appeared.
      +   *
      +   * Required in the `SELECT` clause. A condition on `report_country_code` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * optional string report_country_code = 2; + * + * @return Whether the reportCountryCode field is set. + */ + boolean hasReportCountryCode(); + + /** + * + * + *
      +   * Country where impressions appeared.
      +   *
      +   * Required in the `SELECT` clause. A condition on `report_country_code` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * optional string report_country_code = 2; + * + * @return The reportCountryCode. + */ + java.lang.String getReportCountryCode(); + + /** + * + * + *
      +   * Country where impressions appeared.
      +   *
      +   * Required in the `SELECT` clause. A condition on `report_country_code` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * optional string report_country_code = 2; + * + * @return The bytes for reportCountryCode. + */ + com.google.protobuf.ByteString getReportCountryCodeBytes(); + + /** + * + * + *
      +   * Google product category ID to calculate the report for, represented in
      +   * [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   *
      +   * Required in the `SELECT` clause. A condition on `report_category_id` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * optional int64 report_category_id = 3; + * + * @return Whether the reportCategoryId field is set. + */ + boolean hasReportCategoryId(); + + /** + * + * + *
      +   * Google product category ID to calculate the report for, represented in
      +   * [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   *
      +   * Required in the `SELECT` clause. A condition on `report_category_id` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * optional int64 report_category_id = 3; + * + * @return The reportCategoryId. + */ + long getReportCategoryId(); + + /** + * + * + *
      +   * Traffic source of impressions.
      +   *
      +   * Required in the `SELECT` clause.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum traffic_source = 4; + * + * + * @return Whether the trafficSource field is set. + */ + boolean hasTrafficSource(); + + /** + * + * + *
      +   * Traffic source of impressions.
      +   *
      +   * Required in the `SELECT` clause.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum traffic_source = 4; + * + * + * @return The enum numeric value on the wire for trafficSource. + */ + int getTrafficSourceValue(); + + /** + * + * + *
      +   * Traffic source of impressions.
      +   *
      +   * Required in the `SELECT` clause.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum traffic_source = 4; + * + * + * @return The trafficSource. + */ + com.google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum getTrafficSource(); + + /** + * + * + *
      +   * Change in visibility based on impressions for your domain with respect to
      +   * the start of the selected time range (or first day with non-zero
      +   * impressions).
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional double your_domain_visibility_trend = 5; + * + * @return Whether the yourDomainVisibilityTrend field is set. + */ + boolean hasYourDomainVisibilityTrend(); + + /** + * + * + *
      +   * Change in visibility based on impressions for your domain with respect to
      +   * the start of the selected time range (or first day with non-zero
      +   * impressions).
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional double your_domain_visibility_trend = 5; + * + * @return The yourDomainVisibilityTrend. + */ + double getYourDomainVisibilityTrend(); + + /** + * + * + *
      +   * Change in visibility based on impressions with respect to the start of the
      +   * selected time range (or first day with non-zero impressions) for a
      +   * combined set of merchants with highest visibility approximating the
      +   * market.
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional double category_benchmark_visibility_trend = 6; + * + * @return Whether the categoryBenchmarkVisibilityTrend field is set. + */ + boolean hasCategoryBenchmarkVisibilityTrend(); + + /** + * + * + *
      +   * Change in visibility based on impressions with respect to the start of the
      +   * selected time range (or first day with non-zero impressions) for a
      +   * combined set of merchants with highest visibility approximating the
      +   * market.
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional double category_benchmark_visibility_trend = 6; + * + * @return The categoryBenchmarkVisibilityTrend. + */ + double getCategoryBenchmarkVisibilityTrend(); +} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/CompetitiveVisibilityCompetitorView.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/CompetitiveVisibilityCompetitorView.java new file mode 100644 index 000000000000..116717d1683c --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/CompetitiveVisibilityCompetitorView.java @@ -0,0 +1,2699 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/reports/v1alpha/reports.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.reports.v1alpha; + +/** + * + * + *
      + * Fields available for query in `competitive_visibility_competitor_view` table.
      + *
      + * [Competitive
      + * visibility](https://support.google.com/merchants/answer/11366442) report with
      + * businesses with similar visibility.
      + *
      + * Values are only set for fields requested explicitly in the request's search
      + * query.
      + * 
      + * + * Protobuf type {@code + * google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView} + */ +public final class CompetitiveVisibilityCompetitorView + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView) + CompetitiveVisibilityCompetitorViewOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CompetitiveVisibilityCompetitorView.newBuilder() to construct. + private CompetitiveVisibilityCompetitorView( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CompetitiveVisibilityCompetitorView() { + domain_ = ""; + reportCountryCode_ = ""; + trafficSource_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CompetitiveVisibilityCompetitorView(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_CompetitiveVisibilityCompetitorView_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_CompetitiveVisibilityCompetitorView_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView.class, + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView.Builder + .class); + } + + private int bitField0_; + public static final int DATE_FIELD_NUMBER = 1; + private com.google.type.Date date_; + + /** + * + * + *
      +   * Date of this row.
      +   *
      +   * A condition on `date` is required in the `WHERE` clause.
      +   * 
      + * + * .google.type.Date date = 1; + * + * @return Whether the date field is set. + */ + @java.lang.Override + public boolean hasDate() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Date of this row.
      +   *
      +   * A condition on `date` is required in the `WHERE` clause.
      +   * 
      + * + * .google.type.Date date = 1; + * + * @return The date. + */ + @java.lang.Override + public com.google.type.Date getDate() { + return date_ == null ? com.google.type.Date.getDefaultInstance() : date_; + } + + /** + * + * + *
      +   * Date of this row.
      +   *
      +   * A condition on `date` is required in the `WHERE` clause.
      +   * 
      + * + * .google.type.Date date = 1; + */ + @java.lang.Override + public com.google.type.DateOrBuilder getDateOrBuilder() { + return date_ == null ? com.google.type.Date.getDefaultInstance() : date_; + } + + public static final int DOMAIN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object domain_ = ""; + + /** + * + * + *
      +   * Domain of your competitor or your domain, if 'is_your_domain' is true.
      +   *
      +   * Required in the `SELECT` clause. Cannot be filtered on in the 'WHERE'
      +   * clause.
      +   * 
      + * + * optional string domain = 2; + * + * @return Whether the domain field is set. + */ + @java.lang.Override + public boolean hasDomain() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * Domain of your competitor or your domain, if 'is_your_domain' is true.
      +   *
      +   * Required in the `SELECT` clause. Cannot be filtered on in the 'WHERE'
      +   * clause.
      +   * 
      + * + * optional string domain = 2; + * + * @return The domain. + */ + @java.lang.Override + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } + } + + /** + * + * + *
      +   * Domain of your competitor or your domain, if 'is_your_domain' is true.
      +   *
      +   * Required in the `SELECT` clause. Cannot be filtered on in the 'WHERE'
      +   * clause.
      +   * 
      + * + * optional string domain = 2; + * + * @return The bytes for domain. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IS_YOUR_DOMAIN_FIELD_NUMBER = 3; + private boolean isYourDomain_ = false; + + /** + * + * + *
      +   * True if this row contains data for your domain.
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional bool is_your_domain = 3; + * + * @return Whether the isYourDomain field is set. + */ + @java.lang.Override + public boolean hasIsYourDomain() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +   * True if this row contains data for your domain.
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional bool is_your_domain = 3; + * + * @return The isYourDomain. + */ + @java.lang.Override + public boolean getIsYourDomain() { + return isYourDomain_; + } + + public static final int REPORT_COUNTRY_CODE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object reportCountryCode_ = ""; + + /** + * + * + *
      +   * Country where impressions appeared.
      +   *
      +   * Required in the `SELECT` clause. A condition on `report_country_code` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * optional string report_country_code = 4; + * + * @return Whether the reportCountryCode field is set. + */ + @java.lang.Override + public boolean hasReportCountryCode() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +   * Country where impressions appeared.
      +   *
      +   * Required in the `SELECT` clause. A condition on `report_country_code` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * optional string report_country_code = 4; + * + * @return The reportCountryCode. + */ + @java.lang.Override + public java.lang.String getReportCountryCode() { + java.lang.Object ref = reportCountryCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reportCountryCode_ = s; + return s; + } + } + + /** + * + * + *
      +   * Country where impressions appeared.
      +   *
      +   * Required in the `SELECT` clause. A condition on `report_country_code` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * optional string report_country_code = 4; + * + * @return The bytes for reportCountryCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getReportCountryCodeBytes() { + java.lang.Object ref = reportCountryCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + reportCountryCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REPORT_CATEGORY_ID_FIELD_NUMBER = 5; + private long reportCategoryId_ = 0L; + + /** + * + * + *
      +   * Google product category ID to calculate the report for, represented in
      +   * [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   *
      +   * Required in the `SELECT` clause. A condition on `report_category_id` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * optional int64 report_category_id = 5; + * + * @return Whether the reportCategoryId field is set. + */ + @java.lang.Override + public boolean hasReportCategoryId() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
      +   * Google product category ID to calculate the report for, represented in
      +   * [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   *
      +   * Required in the `SELECT` clause. A condition on `report_category_id` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * optional int64 report_category_id = 5; + * + * @return The reportCategoryId. + */ + @java.lang.Override + public long getReportCategoryId() { + return reportCategoryId_; + } + + public static final int TRAFFIC_SOURCE_FIELD_NUMBER = 6; + private int trafficSource_ = 0; + + /** + * + * + *
      +   * Traffic source of impressions.
      +   *
      +   * Required in the `SELECT` clause.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum traffic_source = 6; + * + * + * @return Whether the trafficSource field is set. + */ + @java.lang.Override + public boolean hasTrafficSource() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
      +   * Traffic source of impressions.
      +   *
      +   * Required in the `SELECT` clause.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum traffic_source = 6; + * + * + * @return The enum numeric value on the wire for trafficSource. + */ + @java.lang.Override + public int getTrafficSourceValue() { + return trafficSource_; + } + + /** + * + * + *
      +   * Traffic source of impressions.
      +   *
      +   * Required in the `SELECT` clause.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum traffic_source = 6; + * + * + * @return The trafficSource. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum + getTrafficSource() { + com.google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum result = + com.google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum.forNumber( + trafficSource_); + return result == null + ? com.google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum.UNRECOGNIZED + : result; + } + + public static final int RANK_FIELD_NUMBER = 7; + private long rank_ = 0L; + + /** + * + * + *
      +   * Position of the domain in the similar businesses ranking for the selected
      +   * keys (`date`, `report_category_id`, `report_country_code`,
      +   * `traffic_source`) based on impressions. 1 is the highest.
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional int64 rank = 7; + * + * @return Whether the rank field is set. + */ + @java.lang.Override + public boolean hasRank() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
      +   * Position of the domain in the similar businesses ranking for the selected
      +   * keys (`date`, `report_category_id`, `report_country_code`,
      +   * `traffic_source`) based on impressions. 1 is the highest.
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional int64 rank = 7; + * + * @return The rank. + */ + @java.lang.Override + public long getRank() { + return rank_; + } + + public static final int ADS_ORGANIC_RATIO_FIELD_NUMBER = 8; + private double adsOrganicRatio_ = 0D; + + /** + * + * + *
      +   * [Ads / organic ratio]
      +   * (https://support.google.com/merchants/answer/11366442#zippy=%2Cads-free-ratio)
      +   * shows how often the domain receives impressions from Shopping ads compared
      +   * to organic traffic. The number is rounded and bucketed.
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional double ads_organic_ratio = 8; + * + * @return Whether the adsOrganicRatio field is set. + */ + @java.lang.Override + public boolean hasAdsOrganicRatio() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
      +   * [Ads / organic ratio]
      +   * (https://support.google.com/merchants/answer/11366442#zippy=%2Cads-free-ratio)
      +   * shows how often the domain receives impressions from Shopping ads compared
      +   * to organic traffic. The number is rounded and bucketed.
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional double ads_organic_ratio = 8; + * + * @return The adsOrganicRatio. + */ + @java.lang.Override + public double getAdsOrganicRatio() { + return adsOrganicRatio_; + } + + public static final int PAGE_OVERLAP_RATE_FIELD_NUMBER = 9; + private double pageOverlapRate_ = 0D; + + /** + * + * + *
      +   * [Page overlap rate]
      +   * (https://support.google.com/merchants/answer/11366442#zippy=%2Cpage-overlap-rate)
      +   * shows how frequently competing retailers’ offers are shown together with
      +   * your offers on the same page.
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional double page_overlap_rate = 9; + * + * @return Whether the pageOverlapRate field is set. + */ + @java.lang.Override + public boolean hasPageOverlapRate() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
      +   * [Page overlap rate]
      +   * (https://support.google.com/merchants/answer/11366442#zippy=%2Cpage-overlap-rate)
      +   * shows how frequently competing retailers’ offers are shown together with
      +   * your offers on the same page.
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional double page_overlap_rate = 9; + * + * @return The pageOverlapRate. + */ + @java.lang.Override + public double getPageOverlapRate() { + return pageOverlapRate_; + } + + public static final int HIGHER_POSITION_RATE_FIELD_NUMBER = 10; + private double higherPositionRate_ = 0D; + + /** + * + * + *
      +   * [Higher position rate]
      +   * (https://support.google.com/merchants/answer/11366442#zippy=%2Chigher-position-rate)
      +   * shows how often a competitor’s offer got placed in a higher position on the
      +   * page than your offer.
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional double higher_position_rate = 10; + * + * @return Whether the higherPositionRate field is set. + */ + @java.lang.Override + public boolean hasHigherPositionRate() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
      +   * [Higher position rate]
      +   * (https://support.google.com/merchants/answer/11366442#zippy=%2Chigher-position-rate)
      +   * shows how often a competitor’s offer got placed in a higher position on the
      +   * page than your offer.
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional double higher_position_rate = 10; + * + * @return The higherPositionRate. + */ + @java.lang.Override + public double getHigherPositionRate() { + return higherPositionRate_; + } + + public static final int RELATIVE_VISIBILITY_FIELD_NUMBER = 11; + private double relativeVisibility_ = 0D; + + /** + * + * + *
      +   * [Relative visibility]
      +   * (https://support.google.com/merchants/answer/11366442#zippy=%2Crelative-visibility)
      +   * shows how often your competitors’ offers are shown compared to your offers.
      +   * In other words, this is the number of displayed impressions of a competitor
      +   * retailer divided by the number of your displayed impressions during a
      +   * selected time range for a selected product category and country.
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional double relative_visibility = 11; + * + * @return Whether the relativeVisibility field is set. + */ + @java.lang.Override + public boolean hasRelativeVisibility() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
      +   * [Relative visibility]
      +   * (https://support.google.com/merchants/answer/11366442#zippy=%2Crelative-visibility)
      +   * shows how often your competitors’ offers are shown compared to your offers.
      +   * In other words, this is the number of displayed impressions of a competitor
      +   * retailer divided by the number of your displayed impressions during a
      +   * selected time range for a selected product category and country.
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional double relative_visibility = 11; + * + * @return The relativeVisibility. + */ + @java.lang.Override + public double getRelativeVisibility() { + return relativeVisibility_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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, getDate()); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeBool(3, isYourDomain_); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, reportCountryCode_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeInt64(5, reportCategoryId_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeEnum(6, trafficSource_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeInt64(7, rank_); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeDouble(8, adsOrganicRatio_); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeDouble(9, pageOverlapRate_); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeDouble(10, higherPositionRate_); + } + if (((bitField0_ & 0x00000400) != 0)) { + output.writeDouble(11, relativeVisibility_); + } + 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, getDate()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, isYourDomain_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, reportCountryCode_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, reportCategoryId_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, trafficSource_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, rank_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(8, adsOrganicRatio_); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(9, pageOverlapRate_); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(10, higherPositionRate_); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(11, relativeVisibility_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView)) { + return super.equals(obj); + } + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView other = + (com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView) obj; + + if (hasDate() != other.hasDate()) return false; + if (hasDate()) { + if (!getDate().equals(other.getDate())) return false; + } + if (hasDomain() != other.hasDomain()) return false; + if (hasDomain()) { + if (!getDomain().equals(other.getDomain())) return false; + } + if (hasIsYourDomain() != other.hasIsYourDomain()) return false; + if (hasIsYourDomain()) { + if (getIsYourDomain() != other.getIsYourDomain()) return false; + } + if (hasReportCountryCode() != other.hasReportCountryCode()) return false; + if (hasReportCountryCode()) { + if (!getReportCountryCode().equals(other.getReportCountryCode())) return false; + } + if (hasReportCategoryId() != other.hasReportCategoryId()) return false; + if (hasReportCategoryId()) { + if (getReportCategoryId() != other.getReportCategoryId()) return false; + } + if (hasTrafficSource() != other.hasTrafficSource()) return false; + if (hasTrafficSource()) { + if (trafficSource_ != other.trafficSource_) return false; + } + if (hasRank() != other.hasRank()) return false; + if (hasRank()) { + if (getRank() != other.getRank()) return false; + } + if (hasAdsOrganicRatio() != other.hasAdsOrganicRatio()) return false; + if (hasAdsOrganicRatio()) { + if (java.lang.Double.doubleToLongBits(getAdsOrganicRatio()) + != java.lang.Double.doubleToLongBits(other.getAdsOrganicRatio())) return false; + } + if (hasPageOverlapRate() != other.hasPageOverlapRate()) return false; + if (hasPageOverlapRate()) { + if (java.lang.Double.doubleToLongBits(getPageOverlapRate()) + != java.lang.Double.doubleToLongBits(other.getPageOverlapRate())) return false; + } + if (hasHigherPositionRate() != other.hasHigherPositionRate()) return false; + if (hasHigherPositionRate()) { + if (java.lang.Double.doubleToLongBits(getHigherPositionRate()) + != java.lang.Double.doubleToLongBits(other.getHigherPositionRate())) return false; + } + if (hasRelativeVisibility() != other.hasRelativeVisibility()) return false; + if (hasRelativeVisibility()) { + if (java.lang.Double.doubleToLongBits(getRelativeVisibility()) + != java.lang.Double.doubleToLongBits(other.getRelativeVisibility())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDate()) { + hash = (37 * hash) + DATE_FIELD_NUMBER; + hash = (53 * hash) + getDate().hashCode(); + } + if (hasDomain()) { + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + } + if (hasIsYourDomain()) { + hash = (37 * hash) + IS_YOUR_DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsYourDomain()); + } + if (hasReportCountryCode()) { + hash = (37 * hash) + REPORT_COUNTRY_CODE_FIELD_NUMBER; + hash = (53 * hash) + getReportCountryCode().hashCode(); + } + if (hasReportCategoryId()) { + hash = (37 * hash) + REPORT_CATEGORY_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getReportCategoryId()); + } + if (hasTrafficSource()) { + hash = (37 * hash) + TRAFFIC_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + trafficSource_; + } + if (hasRank()) { + hash = (37 * hash) + RANK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRank()); + } + if (hasAdsOrganicRatio()) { + hash = (37 * hash) + ADS_ORGANIC_RATIO_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getAdsOrganicRatio())); + } + if (hasPageOverlapRate()) { + hash = (37 * hash) + PAGE_OVERLAP_RATE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getPageOverlapRate())); + } + if (hasHigherPositionRate()) { + hash = (37 * hash) + HIGHER_POSITION_RATE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getHigherPositionRate())); + } + if (hasRelativeVisibility()) { + hash = (37 * hash) + RELATIVE_VISIBILITY_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getRelativeVisibility())); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Fields available for query in `competitive_visibility_competitor_view` table.
      +   *
      +   * [Competitive
      +   * visibility](https://support.google.com/merchants/answer/11366442) report with
      +   * businesses with similar visibility.
      +   *
      +   * Values are only set for fields requested explicitly in the request's search
      +   * query.
      +   * 
      + * + * Protobuf type {@code + * google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView) + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorViewOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_CompetitiveVisibilityCompetitorView_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_CompetitiveVisibilityCompetitorView_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView + .class, + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView + .Builder.class); + } + + // Construct using + // com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDateFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + date_ = null; + if (dateBuilder_ != null) { + dateBuilder_.dispose(); + dateBuilder_ = null; + } + domain_ = ""; + isYourDomain_ = false; + reportCountryCode_ = ""; + reportCategoryId_ = 0L; + trafficSource_ = 0; + rank_ = 0L; + adsOrganicRatio_ = 0D; + pageOverlapRate_ = 0D; + higherPositionRate_ = 0D; + relativeVisibility_ = 0D; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_CompetitiveVisibilityCompetitorView_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView + getDefaultInstanceForType() { + return com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView + build() { + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView + buildPartial() { + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView result = + new com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.date_ = dateBuilder_ == null ? date_ : dateBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.domain_ = domain_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.isYourDomain_ = isYourDomain_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.reportCountryCode_ = reportCountryCode_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.reportCategoryId_ = reportCategoryId_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.trafficSource_ = trafficSource_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.rank_ = rank_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.adsOrganicRatio_ = adsOrganicRatio_; + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.pageOverlapRate_ = pageOverlapRate_; + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.higherPositionRate_ = higherPositionRate_; + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.relativeVisibility_ = relativeVisibility_; + to_bitField0_ |= 0x00000400; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView) { + return mergeFrom( + (com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView other) { + if (other + == com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView + .getDefaultInstance()) return this; + if (other.hasDate()) { + mergeDate(other.getDate()); + } + if (other.hasDomain()) { + domain_ = other.domain_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasIsYourDomain()) { + setIsYourDomain(other.getIsYourDomain()); + } + if (other.hasReportCountryCode()) { + reportCountryCode_ = other.reportCountryCode_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasReportCategoryId()) { + setReportCategoryId(other.getReportCategoryId()); + } + if (other.hasTrafficSource()) { + setTrafficSource(other.getTrafficSource()); + } + if (other.hasRank()) { + setRank(other.getRank()); + } + if (other.hasAdsOrganicRatio()) { + setAdsOrganicRatio(other.getAdsOrganicRatio()); + } + if (other.hasPageOverlapRate()) { + setPageOverlapRate(other.getPageOverlapRate()); + } + if (other.hasHigherPositionRate()) { + setHigherPositionRate(other.getHigherPositionRate()); + } + if (other.hasRelativeVisibility()) { + setRelativeVisibility(other.getRelativeVisibility()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(getDateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + domain_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + isYourDomain_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + reportCountryCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + reportCategoryId_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + trafficSource_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: + { + rank_ = input.readInt64(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 65: + { + adsOrganicRatio_ = input.readDouble(); + bitField0_ |= 0x00000080; + break; + } // case 65 + case 73: + { + pageOverlapRate_ = input.readDouble(); + bitField0_ |= 0x00000100; + break; + } // case 73 + case 81: + { + higherPositionRate_ = input.readDouble(); + bitField0_ |= 0x00000200; + break; + } // case 81 + case 89: + { + relativeVisibility_ = input.readDouble(); + bitField0_ |= 0x00000400; + break; + } // case 89 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + 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.type.Date date_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + dateBuilder_; + + /** + * + * + *
      +     * Date of this row.
      +     *
      +     * A condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + * + * @return Whether the date field is set. + */ + public boolean hasDate() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +     * Date of this row.
      +     *
      +     * A condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + * + * @return The date. + */ + public com.google.type.Date getDate() { + if (dateBuilder_ == null) { + return date_ == null ? com.google.type.Date.getDefaultInstance() : date_; + } else { + return dateBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Date of this row.
      +     *
      +     * A condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + */ + public Builder setDate(com.google.type.Date value) { + if (dateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + date_ = value; + } else { + dateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Date of this row.
      +     *
      +     * A condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + */ + public Builder setDate(com.google.type.Date.Builder builderForValue) { + if (dateBuilder_ == null) { + date_ = builderForValue.build(); + } else { + dateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Date of this row.
      +     *
      +     * A condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + */ + public Builder mergeDate(com.google.type.Date value) { + if (dateBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && date_ != null + && date_ != com.google.type.Date.getDefaultInstance()) { + getDateBuilder().mergeFrom(value); + } else { + date_ = value; + } + } else { + dateBuilder_.mergeFrom(value); + } + if (date_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Date of this row.
      +     *
      +     * A condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + */ + public Builder clearDate() { + bitField0_ = (bitField0_ & ~0x00000001); + date_ = null; + if (dateBuilder_ != null) { + dateBuilder_.dispose(); + dateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Date of this row.
      +     *
      +     * A condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + */ + public com.google.type.Date.Builder getDateBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getDateFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Date of this row.
      +     *
      +     * A condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + */ + public com.google.type.DateOrBuilder getDateOrBuilder() { + if (dateBuilder_ != null) { + return dateBuilder_.getMessageOrBuilder(); + } else { + return date_ == null ? com.google.type.Date.getDefaultInstance() : date_; + } + } + + /** + * + * + *
      +     * Date of this row.
      +     *
      +     * A condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getDateFieldBuilder() { + if (dateBuilder_ == null) { + dateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getDate(), getParentForChildren(), isClean()); + date_ = null; + } + return dateBuilder_; + } + + private java.lang.Object domain_ = ""; + + /** + * + * + *
      +     * Domain of your competitor or your domain, if 'is_your_domain' is true.
      +     *
      +     * Required in the `SELECT` clause. Cannot be filtered on in the 'WHERE'
      +     * clause.
      +     * 
      + * + * optional string domain = 2; + * + * @return Whether the domain field is set. + */ + public boolean hasDomain() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +     * Domain of your competitor or your domain, if 'is_your_domain' is true.
      +     *
      +     * Required in the `SELECT` clause. Cannot be filtered on in the 'WHERE'
      +     * clause.
      +     * 
      + * + * optional string domain = 2; + * + * @return The domain. + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Domain of your competitor or your domain, if 'is_your_domain' is true.
      +     *
      +     * Required in the `SELECT` clause. Cannot be filtered on in the 'WHERE'
      +     * clause.
      +     * 
      + * + * optional string domain = 2; + * + * @return The bytes for domain. + */ + public com.google.protobuf.ByteString getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Domain of your competitor or your domain, if 'is_your_domain' is true.
      +     *
      +     * Required in the `SELECT` clause. Cannot be filtered on in the 'WHERE'
      +     * clause.
      +     * 
      + * + * optional string domain = 2; + * + * @param value The domain to set. + * @return This builder for chaining. + */ + public Builder setDomain(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + domain_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Domain of your competitor or your domain, if 'is_your_domain' is true.
      +     *
      +     * Required in the `SELECT` clause. Cannot be filtered on in the 'WHERE'
      +     * clause.
      +     * 
      + * + * optional string domain = 2; + * + * @return This builder for chaining. + */ + public Builder clearDomain() { + domain_ = getDefaultInstance().getDomain(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Domain of your competitor or your domain, if 'is_your_domain' is true.
      +     *
      +     * Required in the `SELECT` clause. Cannot be filtered on in the 'WHERE'
      +     * clause.
      +     * 
      + * + * optional string domain = 2; + * + * @param value The bytes for domain to set. + * @return This builder for chaining. + */ + public Builder setDomainBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + domain_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean isYourDomain_; + + /** + * + * + *
      +     * True if this row contains data for your domain.
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional bool is_your_domain = 3; + * + * @return Whether the isYourDomain field is set. + */ + @java.lang.Override + public boolean hasIsYourDomain() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +     * True if this row contains data for your domain.
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional bool is_your_domain = 3; + * + * @return The isYourDomain. + */ + @java.lang.Override + public boolean getIsYourDomain() { + return isYourDomain_; + } + + /** + * + * + *
      +     * True if this row contains data for your domain.
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional bool is_your_domain = 3; + * + * @param value The isYourDomain to set. + * @return This builder for chaining. + */ + public Builder setIsYourDomain(boolean value) { + + isYourDomain_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * True if this row contains data for your domain.
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional bool is_your_domain = 3; + * + * @return This builder for chaining. + */ + public Builder clearIsYourDomain() { + bitField0_ = (bitField0_ & ~0x00000004); + isYourDomain_ = false; + onChanged(); + return this; + } + + private java.lang.Object reportCountryCode_ = ""; + + /** + * + * + *
      +     * Country where impressions appeared.
      +     *
      +     * Required in the `SELECT` clause. A condition on `report_country_code` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * optional string report_country_code = 4; + * + * @return Whether the reportCountryCode field is set. + */ + public boolean hasReportCountryCode() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +     * Country where impressions appeared.
      +     *
      +     * Required in the `SELECT` clause. A condition on `report_country_code` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * optional string report_country_code = 4; + * + * @return The reportCountryCode. + */ + public java.lang.String getReportCountryCode() { + java.lang.Object ref = reportCountryCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reportCountryCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Country where impressions appeared.
      +     *
      +     * Required in the `SELECT` clause. A condition on `report_country_code` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * optional string report_country_code = 4; + * + * @return The bytes for reportCountryCode. + */ + public com.google.protobuf.ByteString getReportCountryCodeBytes() { + java.lang.Object ref = reportCountryCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + reportCountryCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Country where impressions appeared.
      +     *
      +     * Required in the `SELECT` clause. A condition on `report_country_code` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * optional string report_country_code = 4; + * + * @param value The reportCountryCode to set. + * @return This builder for chaining. + */ + public Builder setReportCountryCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + reportCountryCode_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Country where impressions appeared.
      +     *
      +     * Required in the `SELECT` clause. A condition on `report_country_code` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * optional string report_country_code = 4; + * + * @return This builder for chaining. + */ + public Builder clearReportCountryCode() { + reportCountryCode_ = getDefaultInstance().getReportCountryCode(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Country where impressions appeared.
      +     *
      +     * Required in the `SELECT` clause. A condition on `report_country_code` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * optional string report_country_code = 4; + * + * @param value The bytes for reportCountryCode to set. + * @return This builder for chaining. + */ + public Builder setReportCountryCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + reportCountryCode_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private long reportCategoryId_; + + /** + * + * + *
      +     * Google product category ID to calculate the report for, represented in
      +     * [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     *
      +     * Required in the `SELECT` clause. A condition on `report_category_id` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * optional int64 report_category_id = 5; + * + * @return Whether the reportCategoryId field is set. + */ + @java.lang.Override + public boolean hasReportCategoryId() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
      +     * Google product category ID to calculate the report for, represented in
      +     * [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     *
      +     * Required in the `SELECT` clause. A condition on `report_category_id` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * optional int64 report_category_id = 5; + * + * @return The reportCategoryId. + */ + @java.lang.Override + public long getReportCategoryId() { + return reportCategoryId_; + } + + /** + * + * + *
      +     * Google product category ID to calculate the report for, represented in
      +     * [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     *
      +     * Required in the `SELECT` clause. A condition on `report_category_id` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * optional int64 report_category_id = 5; + * + * @param value The reportCategoryId to set. + * @return This builder for chaining. + */ + public Builder setReportCategoryId(long value) { + + reportCategoryId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Google product category ID to calculate the report for, represented in
      +     * [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     *
      +     * Required in the `SELECT` clause. A condition on `report_category_id` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * optional int64 report_category_id = 5; + * + * @return This builder for chaining. + */ + public Builder clearReportCategoryId() { + bitField0_ = (bitField0_ & ~0x00000010); + reportCategoryId_ = 0L; + onChanged(); + return this; + } + + private int trafficSource_ = 0; + + /** + * + * + *
      +     * Traffic source of impressions.
      +     *
      +     * Required in the `SELECT` clause.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum traffic_source = 6; + * + * + * @return Whether the trafficSource field is set. + */ + @java.lang.Override + public boolean hasTrafficSource() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
      +     * Traffic source of impressions.
      +     *
      +     * Required in the `SELECT` clause.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum traffic_source = 6; + * + * + * @return The enum numeric value on the wire for trafficSource. + */ + @java.lang.Override + public int getTrafficSourceValue() { + return trafficSource_; + } + + /** + * + * + *
      +     * Traffic source of impressions.
      +     *
      +     * Required in the `SELECT` clause.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum traffic_source = 6; + * + * + * @param value The enum numeric value on the wire for trafficSource to set. + * @return This builder for chaining. + */ + public Builder setTrafficSourceValue(int value) { + trafficSource_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Traffic source of impressions.
      +     *
      +     * Required in the `SELECT` clause.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum traffic_source = 6; + * + * + * @return The trafficSource. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum + getTrafficSource() { + com.google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum result = + com.google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum.forNumber( + trafficSource_); + return result == null + ? com.google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum + .UNRECOGNIZED + : result; + } + + /** + * + * + *
      +     * Traffic source of impressions.
      +     *
      +     * Required in the `SELECT` clause.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum traffic_source = 6; + * + * + * @param value The trafficSource to set. + * @return This builder for chaining. + */ + public Builder setTrafficSource( + com.google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + trafficSource_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Traffic source of impressions.
      +     *
      +     * Required in the `SELECT` clause.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum traffic_source = 6; + * + * + * @return This builder for chaining. + */ + public Builder clearTrafficSource() { + bitField0_ = (bitField0_ & ~0x00000020); + trafficSource_ = 0; + onChanged(); + return this; + } + + private long rank_; + + /** + * + * + *
      +     * Position of the domain in the similar businesses ranking for the selected
      +     * keys (`date`, `report_category_id`, `report_country_code`,
      +     * `traffic_source`) based on impressions. 1 is the highest.
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional int64 rank = 7; + * + * @return Whether the rank field is set. + */ + @java.lang.Override + public boolean hasRank() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
      +     * Position of the domain in the similar businesses ranking for the selected
      +     * keys (`date`, `report_category_id`, `report_country_code`,
      +     * `traffic_source`) based on impressions. 1 is the highest.
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional int64 rank = 7; + * + * @return The rank. + */ + @java.lang.Override + public long getRank() { + return rank_; + } + + /** + * + * + *
      +     * Position of the domain in the similar businesses ranking for the selected
      +     * keys (`date`, `report_category_id`, `report_country_code`,
      +     * `traffic_source`) based on impressions. 1 is the highest.
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional int64 rank = 7; + * + * @param value The rank to set. + * @return This builder for chaining. + */ + public Builder setRank(long value) { + + rank_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Position of the domain in the similar businesses ranking for the selected
      +     * keys (`date`, `report_category_id`, `report_country_code`,
      +     * `traffic_source`) based on impressions. 1 is the highest.
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional int64 rank = 7; + * + * @return This builder for chaining. + */ + public Builder clearRank() { + bitField0_ = (bitField0_ & ~0x00000040); + rank_ = 0L; + onChanged(); + return this; + } + + private double adsOrganicRatio_; + + /** + * + * + *
      +     * [Ads / organic ratio]
      +     * (https://support.google.com/merchants/answer/11366442#zippy=%2Cads-free-ratio)
      +     * shows how often the domain receives impressions from Shopping ads compared
      +     * to organic traffic. The number is rounded and bucketed.
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional double ads_organic_ratio = 8; + * + * @return Whether the adsOrganicRatio field is set. + */ + @java.lang.Override + public boolean hasAdsOrganicRatio() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
      +     * [Ads / organic ratio]
      +     * (https://support.google.com/merchants/answer/11366442#zippy=%2Cads-free-ratio)
      +     * shows how often the domain receives impressions from Shopping ads compared
      +     * to organic traffic. The number is rounded and bucketed.
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional double ads_organic_ratio = 8; + * + * @return The adsOrganicRatio. + */ + @java.lang.Override + public double getAdsOrganicRatio() { + return adsOrganicRatio_; + } + + /** + * + * + *
      +     * [Ads / organic ratio]
      +     * (https://support.google.com/merchants/answer/11366442#zippy=%2Cads-free-ratio)
      +     * shows how often the domain receives impressions from Shopping ads compared
      +     * to organic traffic. The number is rounded and bucketed.
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional double ads_organic_ratio = 8; + * + * @param value The adsOrganicRatio to set. + * @return This builder for chaining. + */ + public Builder setAdsOrganicRatio(double value) { + + adsOrganicRatio_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
      +     * [Ads / organic ratio]
      +     * (https://support.google.com/merchants/answer/11366442#zippy=%2Cads-free-ratio)
      +     * shows how often the domain receives impressions from Shopping ads compared
      +     * to organic traffic. The number is rounded and bucketed.
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional double ads_organic_ratio = 8; + * + * @return This builder for chaining. + */ + public Builder clearAdsOrganicRatio() { + bitField0_ = (bitField0_ & ~0x00000080); + adsOrganicRatio_ = 0D; + onChanged(); + return this; + } + + private double pageOverlapRate_; + + /** + * + * + *
      +     * [Page overlap rate]
      +     * (https://support.google.com/merchants/answer/11366442#zippy=%2Cpage-overlap-rate)
      +     * shows how frequently competing retailers’ offers are shown together with
      +     * your offers on the same page.
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional double page_overlap_rate = 9; + * + * @return Whether the pageOverlapRate field is set. + */ + @java.lang.Override + public boolean hasPageOverlapRate() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
      +     * [Page overlap rate]
      +     * (https://support.google.com/merchants/answer/11366442#zippy=%2Cpage-overlap-rate)
      +     * shows how frequently competing retailers’ offers are shown together with
      +     * your offers on the same page.
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional double page_overlap_rate = 9; + * + * @return The pageOverlapRate. + */ + @java.lang.Override + public double getPageOverlapRate() { + return pageOverlapRate_; + } + + /** + * + * + *
      +     * [Page overlap rate]
      +     * (https://support.google.com/merchants/answer/11366442#zippy=%2Cpage-overlap-rate)
      +     * shows how frequently competing retailers’ offers are shown together with
      +     * your offers on the same page.
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional double page_overlap_rate = 9; + * + * @param value The pageOverlapRate to set. + * @return This builder for chaining. + */ + public Builder setPageOverlapRate(double value) { + + pageOverlapRate_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
      +     * [Page overlap rate]
      +     * (https://support.google.com/merchants/answer/11366442#zippy=%2Cpage-overlap-rate)
      +     * shows how frequently competing retailers’ offers are shown together with
      +     * your offers on the same page.
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional double page_overlap_rate = 9; + * + * @return This builder for chaining. + */ + public Builder clearPageOverlapRate() { + bitField0_ = (bitField0_ & ~0x00000100); + pageOverlapRate_ = 0D; + onChanged(); + return this; + } + + private double higherPositionRate_; + + /** + * + * + *
      +     * [Higher position rate]
      +     * (https://support.google.com/merchants/answer/11366442#zippy=%2Chigher-position-rate)
      +     * shows how often a competitor’s offer got placed in a higher position on the
      +     * page than your offer.
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional double higher_position_rate = 10; + * + * @return Whether the higherPositionRate field is set. + */ + @java.lang.Override + public boolean hasHigherPositionRate() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
      +     * [Higher position rate]
      +     * (https://support.google.com/merchants/answer/11366442#zippy=%2Chigher-position-rate)
      +     * shows how often a competitor’s offer got placed in a higher position on the
      +     * page than your offer.
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional double higher_position_rate = 10; + * + * @return The higherPositionRate. + */ + @java.lang.Override + public double getHigherPositionRate() { + return higherPositionRate_; + } + + /** + * + * + *
      +     * [Higher position rate]
      +     * (https://support.google.com/merchants/answer/11366442#zippy=%2Chigher-position-rate)
      +     * shows how often a competitor’s offer got placed in a higher position on the
      +     * page than your offer.
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional double higher_position_rate = 10; + * + * @param value The higherPositionRate to set. + * @return This builder for chaining. + */ + public Builder setHigherPositionRate(double value) { + + higherPositionRate_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
      +     * [Higher position rate]
      +     * (https://support.google.com/merchants/answer/11366442#zippy=%2Chigher-position-rate)
      +     * shows how often a competitor’s offer got placed in a higher position on the
      +     * page than your offer.
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional double higher_position_rate = 10; + * + * @return This builder for chaining. + */ + public Builder clearHigherPositionRate() { + bitField0_ = (bitField0_ & ~0x00000200); + higherPositionRate_ = 0D; + onChanged(); + return this; + } + + private double relativeVisibility_; + + /** + * + * + *
      +     * [Relative visibility]
      +     * (https://support.google.com/merchants/answer/11366442#zippy=%2Crelative-visibility)
      +     * shows how often your competitors’ offers are shown compared to your offers.
      +     * In other words, this is the number of displayed impressions of a competitor
      +     * retailer divided by the number of your displayed impressions during a
      +     * selected time range for a selected product category and country.
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional double relative_visibility = 11; + * + * @return Whether the relativeVisibility field is set. + */ + @java.lang.Override + public boolean hasRelativeVisibility() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
      +     * [Relative visibility]
      +     * (https://support.google.com/merchants/answer/11366442#zippy=%2Crelative-visibility)
      +     * shows how often your competitors’ offers are shown compared to your offers.
      +     * In other words, this is the number of displayed impressions of a competitor
      +     * retailer divided by the number of your displayed impressions during a
      +     * selected time range for a selected product category and country.
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional double relative_visibility = 11; + * + * @return The relativeVisibility. + */ + @java.lang.Override + public double getRelativeVisibility() { + return relativeVisibility_; + } + + /** + * + * + *
      +     * [Relative visibility]
      +     * (https://support.google.com/merchants/answer/11366442#zippy=%2Crelative-visibility)
      +     * shows how often your competitors’ offers are shown compared to your offers.
      +     * In other words, this is the number of displayed impressions of a competitor
      +     * retailer divided by the number of your displayed impressions during a
      +     * selected time range for a selected product category and country.
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional double relative_visibility = 11; + * + * @param value The relativeVisibility to set. + * @return This builder for chaining. + */ + public Builder setRelativeVisibility(double value) { + + relativeVisibility_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
      +     * [Relative visibility]
      +     * (https://support.google.com/merchants/answer/11366442#zippy=%2Crelative-visibility)
      +     * shows how often your competitors’ offers are shown compared to your offers.
      +     * In other words, this is the number of displayed impressions of a competitor
      +     * retailer divided by the number of your displayed impressions during a
      +     * selected time range for a selected product category and country.
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional double relative_visibility = 11; + * + * @return This builder for chaining. + */ + public Builder clearRelativeVisibility() { + bitField0_ = (bitField0_ & ~0x00000400); + relativeVisibility_ = 0D; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView) + private static final com.google.shopping.merchant.reports.v1alpha + .CompetitiveVisibilityCompetitorView + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView(); + } + + public static com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompetitiveVisibilityCompetitorView parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/CompetitiveVisibilityCompetitorViewOrBuilder.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/CompetitiveVisibilityCompetitorViewOrBuilder.java new file mode 100644 index 000000000000..4fd085e0ffcb --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/CompetitiveVisibilityCompetitorViewOrBuilder.java @@ -0,0 +1,464 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/reports/v1alpha/reports.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.reports.v1alpha; + +public interface CompetitiveVisibilityCompetitorViewOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Date of this row.
      +   *
      +   * A condition on `date` is required in the `WHERE` clause.
      +   * 
      + * + * .google.type.Date date = 1; + * + * @return Whether the date field is set. + */ + boolean hasDate(); + + /** + * + * + *
      +   * Date of this row.
      +   *
      +   * A condition on `date` is required in the `WHERE` clause.
      +   * 
      + * + * .google.type.Date date = 1; + * + * @return The date. + */ + com.google.type.Date getDate(); + + /** + * + * + *
      +   * Date of this row.
      +   *
      +   * A condition on `date` is required in the `WHERE` clause.
      +   * 
      + * + * .google.type.Date date = 1; + */ + com.google.type.DateOrBuilder getDateOrBuilder(); + + /** + * + * + *
      +   * Domain of your competitor or your domain, if 'is_your_domain' is true.
      +   *
      +   * Required in the `SELECT` clause. Cannot be filtered on in the 'WHERE'
      +   * clause.
      +   * 
      + * + * optional string domain = 2; + * + * @return Whether the domain field is set. + */ + boolean hasDomain(); + + /** + * + * + *
      +   * Domain of your competitor or your domain, if 'is_your_domain' is true.
      +   *
      +   * Required in the `SELECT` clause. Cannot be filtered on in the 'WHERE'
      +   * clause.
      +   * 
      + * + * optional string domain = 2; + * + * @return The domain. + */ + java.lang.String getDomain(); + + /** + * + * + *
      +   * Domain of your competitor or your domain, if 'is_your_domain' is true.
      +   *
      +   * Required in the `SELECT` clause. Cannot be filtered on in the 'WHERE'
      +   * clause.
      +   * 
      + * + * optional string domain = 2; + * + * @return The bytes for domain. + */ + com.google.protobuf.ByteString getDomainBytes(); + + /** + * + * + *
      +   * True if this row contains data for your domain.
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional bool is_your_domain = 3; + * + * @return Whether the isYourDomain field is set. + */ + boolean hasIsYourDomain(); + + /** + * + * + *
      +   * True if this row contains data for your domain.
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional bool is_your_domain = 3; + * + * @return The isYourDomain. + */ + boolean getIsYourDomain(); + + /** + * + * + *
      +   * Country where impressions appeared.
      +   *
      +   * Required in the `SELECT` clause. A condition on `report_country_code` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * optional string report_country_code = 4; + * + * @return Whether the reportCountryCode field is set. + */ + boolean hasReportCountryCode(); + + /** + * + * + *
      +   * Country where impressions appeared.
      +   *
      +   * Required in the `SELECT` clause. A condition on `report_country_code` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * optional string report_country_code = 4; + * + * @return The reportCountryCode. + */ + java.lang.String getReportCountryCode(); + + /** + * + * + *
      +   * Country where impressions appeared.
      +   *
      +   * Required in the `SELECT` clause. A condition on `report_country_code` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * optional string report_country_code = 4; + * + * @return The bytes for reportCountryCode. + */ + com.google.protobuf.ByteString getReportCountryCodeBytes(); + + /** + * + * + *
      +   * Google product category ID to calculate the report for, represented in
      +   * [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   *
      +   * Required in the `SELECT` clause. A condition on `report_category_id` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * optional int64 report_category_id = 5; + * + * @return Whether the reportCategoryId field is set. + */ + boolean hasReportCategoryId(); + + /** + * + * + *
      +   * Google product category ID to calculate the report for, represented in
      +   * [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   *
      +   * Required in the `SELECT` clause. A condition on `report_category_id` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * optional int64 report_category_id = 5; + * + * @return The reportCategoryId. + */ + long getReportCategoryId(); + + /** + * + * + *
      +   * Traffic source of impressions.
      +   *
      +   * Required in the `SELECT` clause.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum traffic_source = 6; + * + * + * @return Whether the trafficSource field is set. + */ + boolean hasTrafficSource(); + + /** + * + * + *
      +   * Traffic source of impressions.
      +   *
      +   * Required in the `SELECT` clause.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum traffic_source = 6; + * + * + * @return The enum numeric value on the wire for trafficSource. + */ + int getTrafficSourceValue(); + + /** + * + * + *
      +   * Traffic source of impressions.
      +   *
      +   * Required in the `SELECT` clause.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum traffic_source = 6; + * + * + * @return The trafficSource. + */ + com.google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum getTrafficSource(); + + /** + * + * + *
      +   * Position of the domain in the similar businesses ranking for the selected
      +   * keys (`date`, `report_category_id`, `report_country_code`,
      +   * `traffic_source`) based on impressions. 1 is the highest.
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional int64 rank = 7; + * + * @return Whether the rank field is set. + */ + boolean hasRank(); + + /** + * + * + *
      +   * Position of the domain in the similar businesses ranking for the selected
      +   * keys (`date`, `report_category_id`, `report_country_code`,
      +   * `traffic_source`) based on impressions. 1 is the highest.
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional int64 rank = 7; + * + * @return The rank. + */ + long getRank(); + + /** + * + * + *
      +   * [Ads / organic ratio]
      +   * (https://support.google.com/merchants/answer/11366442#zippy=%2Cads-free-ratio)
      +   * shows how often the domain receives impressions from Shopping ads compared
      +   * to organic traffic. The number is rounded and bucketed.
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional double ads_organic_ratio = 8; + * + * @return Whether the adsOrganicRatio field is set. + */ + boolean hasAdsOrganicRatio(); + + /** + * + * + *
      +   * [Ads / organic ratio]
      +   * (https://support.google.com/merchants/answer/11366442#zippy=%2Cads-free-ratio)
      +   * shows how often the domain receives impressions from Shopping ads compared
      +   * to organic traffic. The number is rounded and bucketed.
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional double ads_organic_ratio = 8; + * + * @return The adsOrganicRatio. + */ + double getAdsOrganicRatio(); + + /** + * + * + *
      +   * [Page overlap rate]
      +   * (https://support.google.com/merchants/answer/11366442#zippy=%2Cpage-overlap-rate)
      +   * shows how frequently competing retailers’ offers are shown together with
      +   * your offers on the same page.
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional double page_overlap_rate = 9; + * + * @return Whether the pageOverlapRate field is set. + */ + boolean hasPageOverlapRate(); + + /** + * + * + *
      +   * [Page overlap rate]
      +   * (https://support.google.com/merchants/answer/11366442#zippy=%2Cpage-overlap-rate)
      +   * shows how frequently competing retailers’ offers are shown together with
      +   * your offers on the same page.
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional double page_overlap_rate = 9; + * + * @return The pageOverlapRate. + */ + double getPageOverlapRate(); + + /** + * + * + *
      +   * [Higher position rate]
      +   * (https://support.google.com/merchants/answer/11366442#zippy=%2Chigher-position-rate)
      +   * shows how often a competitor’s offer got placed in a higher position on the
      +   * page than your offer.
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional double higher_position_rate = 10; + * + * @return Whether the higherPositionRate field is set. + */ + boolean hasHigherPositionRate(); + + /** + * + * + *
      +   * [Higher position rate]
      +   * (https://support.google.com/merchants/answer/11366442#zippy=%2Chigher-position-rate)
      +   * shows how often a competitor’s offer got placed in a higher position on the
      +   * page than your offer.
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional double higher_position_rate = 10; + * + * @return The higherPositionRate. + */ + double getHigherPositionRate(); + + /** + * + * + *
      +   * [Relative visibility]
      +   * (https://support.google.com/merchants/answer/11366442#zippy=%2Crelative-visibility)
      +   * shows how often your competitors’ offers are shown compared to your offers.
      +   * In other words, this is the number of displayed impressions of a competitor
      +   * retailer divided by the number of your displayed impressions during a
      +   * selected time range for a selected product category and country.
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional double relative_visibility = 11; + * + * @return Whether the relativeVisibility field is set. + */ + boolean hasRelativeVisibility(); + + /** + * + * + *
      +   * [Relative visibility]
      +   * (https://support.google.com/merchants/answer/11366442#zippy=%2Crelative-visibility)
      +   * shows how often your competitors’ offers are shown compared to your offers.
      +   * In other words, this is the number of displayed impressions of a competitor
      +   * retailer divided by the number of your displayed impressions during a
      +   * selected time range for a selected product category and country.
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional double relative_visibility = 11; + * + * @return The relativeVisibility. + */ + double getRelativeVisibility(); +} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/CompetitiveVisibilityTopMerchantView.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/CompetitiveVisibilityTopMerchantView.java new file mode 100644 index 000000000000..cdc5aede265c --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/CompetitiveVisibilityTopMerchantView.java @@ -0,0 +1,2532 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/reports/v1alpha/reports.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.reports.v1alpha; + +/** + * + * + *
      + * Fields available for query in `competitive_visibility_top_merchant_view`
      + * table.
      + *
      + * [Competitive
      + * visibility](https://support.google.com/merchants/answer/11366442) report with
      + * business with highest visibility.
      + *
      + * Values are only set for fields requested explicitly in the request's search
      + * query.
      + * 
      + * + * Protobuf type {@code + * google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView} + */ +public final class CompetitiveVisibilityTopMerchantView + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView) + CompetitiveVisibilityTopMerchantViewOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CompetitiveVisibilityTopMerchantView.newBuilder() to construct. + private CompetitiveVisibilityTopMerchantView( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CompetitiveVisibilityTopMerchantView() { + domain_ = ""; + reportCountryCode_ = ""; + trafficSource_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CompetitiveVisibilityTopMerchantView(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_CompetitiveVisibilityTopMerchantView_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_CompetitiveVisibilityTopMerchantView_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView.class, + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView + .Builder.class); + } + + private int bitField0_; + public static final int DATE_FIELD_NUMBER = 1; + private com.google.type.Date date_; + + /** + * + * + *
      +   * Date of this row.
      +   *
      +   * Cannot be selected in the `SELECT` clause. A condition on `date` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * .google.type.Date date = 1; + * + * @return Whether the date field is set. + */ + @java.lang.Override + public boolean hasDate() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Date of this row.
      +   *
      +   * Cannot be selected in the `SELECT` clause. A condition on `date` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * .google.type.Date date = 1; + * + * @return The date. + */ + @java.lang.Override + public com.google.type.Date getDate() { + return date_ == null ? com.google.type.Date.getDefaultInstance() : date_; + } + + /** + * + * + *
      +   * Date of this row.
      +   *
      +   * Cannot be selected in the `SELECT` clause. A condition on `date` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * .google.type.Date date = 1; + */ + @java.lang.Override + public com.google.type.DateOrBuilder getDateOrBuilder() { + return date_ == null ? com.google.type.Date.getDefaultInstance() : date_; + } + + public static final int DOMAIN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object domain_ = ""; + + /** + * + * + *
      +   * Domain of your competitor or your domain, if 'is_your_domain' is true.
      +   *
      +   * Required in the `SELECT` clause. Cannot be filtered on in the 'WHERE'
      +   * clause.
      +   * 
      + * + * optional string domain = 2; + * + * @return Whether the domain field is set. + */ + @java.lang.Override + public boolean hasDomain() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * Domain of your competitor or your domain, if 'is_your_domain' is true.
      +   *
      +   * Required in the `SELECT` clause. Cannot be filtered on in the 'WHERE'
      +   * clause.
      +   * 
      + * + * optional string domain = 2; + * + * @return The domain. + */ + @java.lang.Override + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } + } + + /** + * + * + *
      +   * Domain of your competitor or your domain, if 'is_your_domain' is true.
      +   *
      +   * Required in the `SELECT` clause. Cannot be filtered on in the 'WHERE'
      +   * clause.
      +   * 
      + * + * optional string domain = 2; + * + * @return The bytes for domain. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IS_YOUR_DOMAIN_FIELD_NUMBER = 3; + private boolean isYourDomain_ = false; + + /** + * + * + *
      +   * True if this row contains data for your domain.
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional bool is_your_domain = 3; + * + * @return Whether the isYourDomain field is set. + */ + @java.lang.Override + public boolean hasIsYourDomain() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +   * True if this row contains data for your domain.
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional bool is_your_domain = 3; + * + * @return The isYourDomain. + */ + @java.lang.Override + public boolean getIsYourDomain() { + return isYourDomain_; + } + + public static final int REPORT_COUNTRY_CODE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object reportCountryCode_ = ""; + + /** + * + * + *
      +   * Country where impressions appeared.
      +   *
      +   * Required in the `SELECT` clause. A condition on `report_country_code` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * optional string report_country_code = 4; + * + * @return Whether the reportCountryCode field is set. + */ + @java.lang.Override + public boolean hasReportCountryCode() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +   * Country where impressions appeared.
      +   *
      +   * Required in the `SELECT` clause. A condition on `report_country_code` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * optional string report_country_code = 4; + * + * @return The reportCountryCode. + */ + @java.lang.Override + public java.lang.String getReportCountryCode() { + java.lang.Object ref = reportCountryCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reportCountryCode_ = s; + return s; + } + } + + /** + * + * + *
      +   * Country where impressions appeared.
      +   *
      +   * Required in the `SELECT` clause. A condition on `report_country_code` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * optional string report_country_code = 4; + * + * @return The bytes for reportCountryCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getReportCountryCodeBytes() { + java.lang.Object ref = reportCountryCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + reportCountryCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REPORT_CATEGORY_ID_FIELD_NUMBER = 5; + private long reportCategoryId_ = 0L; + + /** + * + * + *
      +   * Google product category ID to calculate the report for, represented in
      +   * [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   *
      +   * Required in the `SELECT` clause. A condition on `report_category_id` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * optional int64 report_category_id = 5; + * + * @return Whether the reportCategoryId field is set. + */ + @java.lang.Override + public boolean hasReportCategoryId() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
      +   * Google product category ID to calculate the report for, represented in
      +   * [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   *
      +   * Required in the `SELECT` clause. A condition on `report_category_id` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * optional int64 report_category_id = 5; + * + * @return The reportCategoryId. + */ + @java.lang.Override + public long getReportCategoryId() { + return reportCategoryId_; + } + + public static final int TRAFFIC_SOURCE_FIELD_NUMBER = 6; + private int trafficSource_ = 0; + + /** + * + * + *
      +   * Traffic source of impressions.
      +   *
      +   * Required in the `SELECT` clause.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum traffic_source = 6; + * + * + * @return Whether the trafficSource field is set. + */ + @java.lang.Override + public boolean hasTrafficSource() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
      +   * Traffic source of impressions.
      +   *
      +   * Required in the `SELECT` clause.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum traffic_source = 6; + * + * + * @return The enum numeric value on the wire for trafficSource. + */ + @java.lang.Override + public int getTrafficSourceValue() { + return trafficSource_; + } + + /** + * + * + *
      +   * Traffic source of impressions.
      +   *
      +   * Required in the `SELECT` clause.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum traffic_source = 6; + * + * + * @return The trafficSource. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum + getTrafficSource() { + com.google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum result = + com.google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum.forNumber( + trafficSource_); + return result == null + ? com.google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum.UNRECOGNIZED + : result; + } + + public static final int RANK_FIELD_NUMBER = 7; + private long rank_ = 0L; + + /** + * + * + *
      +   * Position of the domain in the top merchants ranking for the selected keys
      +   * (`date`, `report_category_id`, `report_country_code`, `traffic_source`)
      +   * based on impressions. 1 is the highest.
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional int64 rank = 7; + * + * @return Whether the rank field is set. + */ + @java.lang.Override + public boolean hasRank() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
      +   * Position of the domain in the top merchants ranking for the selected keys
      +   * (`date`, `report_category_id`, `report_country_code`, `traffic_source`)
      +   * based on impressions. 1 is the highest.
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional int64 rank = 7; + * + * @return The rank. + */ + @java.lang.Override + public long getRank() { + return rank_; + } + + public static final int ADS_ORGANIC_RATIO_FIELD_NUMBER = 8; + private double adsOrganicRatio_ = 0D; + + /** + * + * + *
      +   * [Ads / organic ratio]
      +   * (https://support.google.com/merchants/answer/11366442#zippy=%2Cads-free-ratio)
      +   * shows how often the domain receives impressions from Shopping ads compared
      +   * to organic traffic. The number is rounded and bucketed.
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional double ads_organic_ratio = 8; + * + * @return Whether the adsOrganicRatio field is set. + */ + @java.lang.Override + public boolean hasAdsOrganicRatio() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
      +   * [Ads / organic ratio]
      +   * (https://support.google.com/merchants/answer/11366442#zippy=%2Cads-free-ratio)
      +   * shows how often the domain receives impressions from Shopping ads compared
      +   * to organic traffic. The number is rounded and bucketed.
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional double ads_organic_ratio = 8; + * + * @return The adsOrganicRatio. + */ + @java.lang.Override + public double getAdsOrganicRatio() { + return adsOrganicRatio_; + } + + public static final int PAGE_OVERLAP_RATE_FIELD_NUMBER = 9; + private double pageOverlapRate_ = 0D; + + /** + * + * + *
      +   * [Page overlap rate]
      +   * (https://support.google.com/merchants/answer/11366442#zippy=%2Cpage-overlap-rate)
      +   * shows how frequently competing retailers’ offers are shown together with
      +   * your offers on the same page.
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional double page_overlap_rate = 9; + * + * @return Whether the pageOverlapRate field is set. + */ + @java.lang.Override + public boolean hasPageOverlapRate() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
      +   * [Page overlap rate]
      +   * (https://support.google.com/merchants/answer/11366442#zippy=%2Cpage-overlap-rate)
      +   * shows how frequently competing retailers’ offers are shown together with
      +   * your offers on the same page.
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional double page_overlap_rate = 9; + * + * @return The pageOverlapRate. + */ + @java.lang.Override + public double getPageOverlapRate() { + return pageOverlapRate_; + } + + public static final int HIGHER_POSITION_RATE_FIELD_NUMBER = 10; + private double higherPositionRate_ = 0D; + + /** + * + * + *
      +   * [Higher position rate]
      +   * (https://support.google.com/merchants/answer/11366442#zippy=%2Chigher-position-rate)
      +   * shows how often a competitor’s offer got placed in a higher position on the
      +   * page than your offer.
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional double higher_position_rate = 10; + * + * @return Whether the higherPositionRate field is set. + */ + @java.lang.Override + public boolean hasHigherPositionRate() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
      +   * [Higher position rate]
      +   * (https://support.google.com/merchants/answer/11366442#zippy=%2Chigher-position-rate)
      +   * shows how often a competitor’s offer got placed in a higher position on the
      +   * page than your offer.
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional double higher_position_rate = 10; + * + * @return The higherPositionRate. + */ + @java.lang.Override + public double getHigherPositionRate() { + return higherPositionRate_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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, getDate()); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeBool(3, isYourDomain_); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, reportCountryCode_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeInt64(5, reportCategoryId_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeEnum(6, trafficSource_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeInt64(7, rank_); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeDouble(8, adsOrganicRatio_); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeDouble(9, pageOverlapRate_); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeDouble(10, higherPositionRate_); + } + 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, getDate()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, isYourDomain_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, reportCountryCode_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, reportCategoryId_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, trafficSource_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, rank_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(8, adsOrganicRatio_); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(9, pageOverlapRate_); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(10, higherPositionRate_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView)) { + return super.equals(obj); + } + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView other = + (com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView) obj; + + if (hasDate() != other.hasDate()) return false; + if (hasDate()) { + if (!getDate().equals(other.getDate())) return false; + } + if (hasDomain() != other.hasDomain()) return false; + if (hasDomain()) { + if (!getDomain().equals(other.getDomain())) return false; + } + if (hasIsYourDomain() != other.hasIsYourDomain()) return false; + if (hasIsYourDomain()) { + if (getIsYourDomain() != other.getIsYourDomain()) return false; + } + if (hasReportCountryCode() != other.hasReportCountryCode()) return false; + if (hasReportCountryCode()) { + if (!getReportCountryCode().equals(other.getReportCountryCode())) return false; + } + if (hasReportCategoryId() != other.hasReportCategoryId()) return false; + if (hasReportCategoryId()) { + if (getReportCategoryId() != other.getReportCategoryId()) return false; + } + if (hasTrafficSource() != other.hasTrafficSource()) return false; + if (hasTrafficSource()) { + if (trafficSource_ != other.trafficSource_) return false; + } + if (hasRank() != other.hasRank()) return false; + if (hasRank()) { + if (getRank() != other.getRank()) return false; + } + if (hasAdsOrganicRatio() != other.hasAdsOrganicRatio()) return false; + if (hasAdsOrganicRatio()) { + if (java.lang.Double.doubleToLongBits(getAdsOrganicRatio()) + != java.lang.Double.doubleToLongBits(other.getAdsOrganicRatio())) return false; + } + if (hasPageOverlapRate() != other.hasPageOverlapRate()) return false; + if (hasPageOverlapRate()) { + if (java.lang.Double.doubleToLongBits(getPageOverlapRate()) + != java.lang.Double.doubleToLongBits(other.getPageOverlapRate())) return false; + } + if (hasHigherPositionRate() != other.hasHigherPositionRate()) return false; + if (hasHigherPositionRate()) { + if (java.lang.Double.doubleToLongBits(getHigherPositionRate()) + != java.lang.Double.doubleToLongBits(other.getHigherPositionRate())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDate()) { + hash = (37 * hash) + DATE_FIELD_NUMBER; + hash = (53 * hash) + getDate().hashCode(); + } + if (hasDomain()) { + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + } + if (hasIsYourDomain()) { + hash = (37 * hash) + IS_YOUR_DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsYourDomain()); + } + if (hasReportCountryCode()) { + hash = (37 * hash) + REPORT_COUNTRY_CODE_FIELD_NUMBER; + hash = (53 * hash) + getReportCountryCode().hashCode(); + } + if (hasReportCategoryId()) { + hash = (37 * hash) + REPORT_CATEGORY_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getReportCategoryId()); + } + if (hasTrafficSource()) { + hash = (37 * hash) + TRAFFIC_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + trafficSource_; + } + if (hasRank()) { + hash = (37 * hash) + RANK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRank()); + } + if (hasAdsOrganicRatio()) { + hash = (37 * hash) + ADS_ORGANIC_RATIO_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getAdsOrganicRatio())); + } + if (hasPageOverlapRate()) { + hash = (37 * hash) + PAGE_OVERLAP_RATE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getPageOverlapRate())); + } + if (hasHigherPositionRate()) { + hash = (37 * hash) + HIGHER_POSITION_RATE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getHigherPositionRate())); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Fields available for query in `competitive_visibility_top_merchant_view`
      +   * table.
      +   *
      +   * [Competitive
      +   * visibility](https://support.google.com/merchants/answer/11366442) report with
      +   * business with highest visibility.
      +   *
      +   * Values are only set for fields requested explicitly in the request's search
      +   * query.
      +   * 
      + * + * Protobuf type {@code + * google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView) + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantViewOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_CompetitiveVisibilityTopMerchantView_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_CompetitiveVisibilityTopMerchantView_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView + .class, + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView + .Builder.class); + } + + // Construct using + // com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDateFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + date_ = null; + if (dateBuilder_ != null) { + dateBuilder_.dispose(); + dateBuilder_ = null; + } + domain_ = ""; + isYourDomain_ = false; + reportCountryCode_ = ""; + reportCategoryId_ = 0L; + trafficSource_ = 0; + rank_ = 0L; + adsOrganicRatio_ = 0D; + pageOverlapRate_ = 0D; + higherPositionRate_ = 0D; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_CompetitiveVisibilityTopMerchantView_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView + getDefaultInstanceForType() { + return com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView + build() { + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView + buildPartial() { + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView result = + new com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.date_ = dateBuilder_ == null ? date_ : dateBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.domain_ = domain_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.isYourDomain_ = isYourDomain_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.reportCountryCode_ = reportCountryCode_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.reportCategoryId_ = reportCategoryId_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.trafficSource_ = trafficSource_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.rank_ = rank_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.adsOrganicRatio_ = adsOrganicRatio_; + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.pageOverlapRate_ = pageOverlapRate_; + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.higherPositionRate_ = higherPositionRate_; + to_bitField0_ |= 0x00000200; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView) { + return mergeFrom( + (com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView other) { + if (other + == com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView + .getDefaultInstance()) return this; + if (other.hasDate()) { + mergeDate(other.getDate()); + } + if (other.hasDomain()) { + domain_ = other.domain_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasIsYourDomain()) { + setIsYourDomain(other.getIsYourDomain()); + } + if (other.hasReportCountryCode()) { + reportCountryCode_ = other.reportCountryCode_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasReportCategoryId()) { + setReportCategoryId(other.getReportCategoryId()); + } + if (other.hasTrafficSource()) { + setTrafficSource(other.getTrafficSource()); + } + if (other.hasRank()) { + setRank(other.getRank()); + } + if (other.hasAdsOrganicRatio()) { + setAdsOrganicRatio(other.getAdsOrganicRatio()); + } + if (other.hasPageOverlapRate()) { + setPageOverlapRate(other.getPageOverlapRate()); + } + if (other.hasHigherPositionRate()) { + setHigherPositionRate(other.getHigherPositionRate()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(getDateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + domain_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + isYourDomain_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + reportCountryCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + reportCategoryId_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + trafficSource_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: + { + rank_ = input.readInt64(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 65: + { + adsOrganicRatio_ = input.readDouble(); + bitField0_ |= 0x00000080; + break; + } // case 65 + case 73: + { + pageOverlapRate_ = input.readDouble(); + bitField0_ |= 0x00000100; + break; + } // case 73 + case 81: + { + higherPositionRate_ = input.readDouble(); + bitField0_ |= 0x00000200; + break; + } // case 81 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + 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.type.Date date_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + dateBuilder_; + + /** + * + * + *
      +     * Date of this row.
      +     *
      +     * Cannot be selected in the `SELECT` clause. A condition on `date` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + * + * @return Whether the date field is set. + */ + public boolean hasDate() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +     * Date of this row.
      +     *
      +     * Cannot be selected in the `SELECT` clause. A condition on `date` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + * + * @return The date. + */ + public com.google.type.Date getDate() { + if (dateBuilder_ == null) { + return date_ == null ? com.google.type.Date.getDefaultInstance() : date_; + } else { + return dateBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Date of this row.
      +     *
      +     * Cannot be selected in the `SELECT` clause. A condition on `date` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + */ + public Builder setDate(com.google.type.Date value) { + if (dateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + date_ = value; + } else { + dateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Date of this row.
      +     *
      +     * Cannot be selected in the `SELECT` clause. A condition on `date` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + */ + public Builder setDate(com.google.type.Date.Builder builderForValue) { + if (dateBuilder_ == null) { + date_ = builderForValue.build(); + } else { + dateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Date of this row.
      +     *
      +     * Cannot be selected in the `SELECT` clause. A condition on `date` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + */ + public Builder mergeDate(com.google.type.Date value) { + if (dateBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && date_ != null + && date_ != com.google.type.Date.getDefaultInstance()) { + getDateBuilder().mergeFrom(value); + } else { + date_ = value; + } + } else { + dateBuilder_.mergeFrom(value); + } + if (date_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Date of this row.
      +     *
      +     * Cannot be selected in the `SELECT` clause. A condition on `date` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + */ + public Builder clearDate() { + bitField0_ = (bitField0_ & ~0x00000001); + date_ = null; + if (dateBuilder_ != null) { + dateBuilder_.dispose(); + dateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Date of this row.
      +     *
      +     * Cannot be selected in the `SELECT` clause. A condition on `date` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + */ + public com.google.type.Date.Builder getDateBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getDateFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Date of this row.
      +     *
      +     * Cannot be selected in the `SELECT` clause. A condition on `date` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + */ + public com.google.type.DateOrBuilder getDateOrBuilder() { + if (dateBuilder_ != null) { + return dateBuilder_.getMessageOrBuilder(); + } else { + return date_ == null ? com.google.type.Date.getDefaultInstance() : date_; + } + } + + /** + * + * + *
      +     * Date of this row.
      +     *
      +     * Cannot be selected in the `SELECT` clause. A condition on `date` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getDateFieldBuilder() { + if (dateBuilder_ == null) { + dateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getDate(), getParentForChildren(), isClean()); + date_ = null; + } + return dateBuilder_; + } + + private java.lang.Object domain_ = ""; + + /** + * + * + *
      +     * Domain of your competitor or your domain, if 'is_your_domain' is true.
      +     *
      +     * Required in the `SELECT` clause. Cannot be filtered on in the 'WHERE'
      +     * clause.
      +     * 
      + * + * optional string domain = 2; + * + * @return Whether the domain field is set. + */ + public boolean hasDomain() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +     * Domain of your competitor or your domain, if 'is_your_domain' is true.
      +     *
      +     * Required in the `SELECT` clause. Cannot be filtered on in the 'WHERE'
      +     * clause.
      +     * 
      + * + * optional string domain = 2; + * + * @return The domain. + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Domain of your competitor or your domain, if 'is_your_domain' is true.
      +     *
      +     * Required in the `SELECT` clause. Cannot be filtered on in the 'WHERE'
      +     * clause.
      +     * 
      + * + * optional string domain = 2; + * + * @return The bytes for domain. + */ + public com.google.protobuf.ByteString getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Domain of your competitor or your domain, if 'is_your_domain' is true.
      +     *
      +     * Required in the `SELECT` clause. Cannot be filtered on in the 'WHERE'
      +     * clause.
      +     * 
      + * + * optional string domain = 2; + * + * @param value The domain to set. + * @return This builder for chaining. + */ + public Builder setDomain(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + domain_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Domain of your competitor or your domain, if 'is_your_domain' is true.
      +     *
      +     * Required in the `SELECT` clause. Cannot be filtered on in the 'WHERE'
      +     * clause.
      +     * 
      + * + * optional string domain = 2; + * + * @return This builder for chaining. + */ + public Builder clearDomain() { + domain_ = getDefaultInstance().getDomain(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Domain of your competitor or your domain, if 'is_your_domain' is true.
      +     *
      +     * Required in the `SELECT` clause. Cannot be filtered on in the 'WHERE'
      +     * clause.
      +     * 
      + * + * optional string domain = 2; + * + * @param value The bytes for domain to set. + * @return This builder for chaining. + */ + public Builder setDomainBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + domain_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean isYourDomain_; + + /** + * + * + *
      +     * True if this row contains data for your domain.
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional bool is_your_domain = 3; + * + * @return Whether the isYourDomain field is set. + */ + @java.lang.Override + public boolean hasIsYourDomain() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +     * True if this row contains data for your domain.
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional bool is_your_domain = 3; + * + * @return The isYourDomain. + */ + @java.lang.Override + public boolean getIsYourDomain() { + return isYourDomain_; + } + + /** + * + * + *
      +     * True if this row contains data for your domain.
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional bool is_your_domain = 3; + * + * @param value The isYourDomain to set. + * @return This builder for chaining. + */ + public Builder setIsYourDomain(boolean value) { + + isYourDomain_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * True if this row contains data for your domain.
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional bool is_your_domain = 3; + * + * @return This builder for chaining. + */ + public Builder clearIsYourDomain() { + bitField0_ = (bitField0_ & ~0x00000004); + isYourDomain_ = false; + onChanged(); + return this; + } + + private java.lang.Object reportCountryCode_ = ""; + + /** + * + * + *
      +     * Country where impressions appeared.
      +     *
      +     * Required in the `SELECT` clause. A condition on `report_country_code` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * optional string report_country_code = 4; + * + * @return Whether the reportCountryCode field is set. + */ + public boolean hasReportCountryCode() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +     * Country where impressions appeared.
      +     *
      +     * Required in the `SELECT` clause. A condition on `report_country_code` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * optional string report_country_code = 4; + * + * @return The reportCountryCode. + */ + public java.lang.String getReportCountryCode() { + java.lang.Object ref = reportCountryCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reportCountryCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Country where impressions appeared.
      +     *
      +     * Required in the `SELECT` clause. A condition on `report_country_code` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * optional string report_country_code = 4; + * + * @return The bytes for reportCountryCode. + */ + public com.google.protobuf.ByteString getReportCountryCodeBytes() { + java.lang.Object ref = reportCountryCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + reportCountryCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Country where impressions appeared.
      +     *
      +     * Required in the `SELECT` clause. A condition on `report_country_code` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * optional string report_country_code = 4; + * + * @param value The reportCountryCode to set. + * @return This builder for chaining. + */ + public Builder setReportCountryCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + reportCountryCode_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Country where impressions appeared.
      +     *
      +     * Required in the `SELECT` clause. A condition on `report_country_code` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * optional string report_country_code = 4; + * + * @return This builder for chaining. + */ + public Builder clearReportCountryCode() { + reportCountryCode_ = getDefaultInstance().getReportCountryCode(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Country where impressions appeared.
      +     *
      +     * Required in the `SELECT` clause. A condition on `report_country_code` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * optional string report_country_code = 4; + * + * @param value The bytes for reportCountryCode to set. + * @return This builder for chaining. + */ + public Builder setReportCountryCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + reportCountryCode_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private long reportCategoryId_; + + /** + * + * + *
      +     * Google product category ID to calculate the report for, represented in
      +     * [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     *
      +     * Required in the `SELECT` clause. A condition on `report_category_id` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * optional int64 report_category_id = 5; + * + * @return Whether the reportCategoryId field is set. + */ + @java.lang.Override + public boolean hasReportCategoryId() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
      +     * Google product category ID to calculate the report for, represented in
      +     * [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     *
      +     * Required in the `SELECT` clause. A condition on `report_category_id` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * optional int64 report_category_id = 5; + * + * @return The reportCategoryId. + */ + @java.lang.Override + public long getReportCategoryId() { + return reportCategoryId_; + } + + /** + * + * + *
      +     * Google product category ID to calculate the report for, represented in
      +     * [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     *
      +     * Required in the `SELECT` clause. A condition on `report_category_id` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * optional int64 report_category_id = 5; + * + * @param value The reportCategoryId to set. + * @return This builder for chaining. + */ + public Builder setReportCategoryId(long value) { + + reportCategoryId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Google product category ID to calculate the report for, represented in
      +     * [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     *
      +     * Required in the `SELECT` clause. A condition on `report_category_id` is
      +     * required in the `WHERE` clause.
      +     * 
      + * + * optional int64 report_category_id = 5; + * + * @return This builder for chaining. + */ + public Builder clearReportCategoryId() { + bitField0_ = (bitField0_ & ~0x00000010); + reportCategoryId_ = 0L; + onChanged(); + return this; + } + + private int trafficSource_ = 0; + + /** + * + * + *
      +     * Traffic source of impressions.
      +     *
      +     * Required in the `SELECT` clause.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum traffic_source = 6; + * + * + * @return Whether the trafficSource field is set. + */ + @java.lang.Override + public boolean hasTrafficSource() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
      +     * Traffic source of impressions.
      +     *
      +     * Required in the `SELECT` clause.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum traffic_source = 6; + * + * + * @return The enum numeric value on the wire for trafficSource. + */ + @java.lang.Override + public int getTrafficSourceValue() { + return trafficSource_; + } + + /** + * + * + *
      +     * Traffic source of impressions.
      +     *
      +     * Required in the `SELECT` clause.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum traffic_source = 6; + * + * + * @param value The enum numeric value on the wire for trafficSource to set. + * @return This builder for chaining. + */ + public Builder setTrafficSourceValue(int value) { + trafficSource_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Traffic source of impressions.
      +     *
      +     * Required in the `SELECT` clause.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum traffic_source = 6; + * + * + * @return The trafficSource. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum + getTrafficSource() { + com.google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum result = + com.google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum.forNumber( + trafficSource_); + return result == null + ? com.google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum + .UNRECOGNIZED + : result; + } + + /** + * + * + *
      +     * Traffic source of impressions.
      +     *
      +     * Required in the `SELECT` clause.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum traffic_source = 6; + * + * + * @param value The trafficSource to set. + * @return This builder for chaining. + */ + public Builder setTrafficSource( + com.google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + trafficSource_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Traffic source of impressions.
      +     *
      +     * Required in the `SELECT` clause.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum traffic_source = 6; + * + * + * @return This builder for chaining. + */ + public Builder clearTrafficSource() { + bitField0_ = (bitField0_ & ~0x00000020); + trafficSource_ = 0; + onChanged(); + return this; + } + + private long rank_; + + /** + * + * + *
      +     * Position of the domain in the top merchants ranking for the selected keys
      +     * (`date`, `report_category_id`, `report_country_code`, `traffic_source`)
      +     * based on impressions. 1 is the highest.
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional int64 rank = 7; + * + * @return Whether the rank field is set. + */ + @java.lang.Override + public boolean hasRank() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
      +     * Position of the domain in the top merchants ranking for the selected keys
      +     * (`date`, `report_category_id`, `report_country_code`, `traffic_source`)
      +     * based on impressions. 1 is the highest.
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional int64 rank = 7; + * + * @return The rank. + */ + @java.lang.Override + public long getRank() { + return rank_; + } + + /** + * + * + *
      +     * Position of the domain in the top merchants ranking for the selected keys
      +     * (`date`, `report_category_id`, `report_country_code`, `traffic_source`)
      +     * based on impressions. 1 is the highest.
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional int64 rank = 7; + * + * @param value The rank to set. + * @return This builder for chaining. + */ + public Builder setRank(long value) { + + rank_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Position of the domain in the top merchants ranking for the selected keys
      +     * (`date`, `report_category_id`, `report_country_code`, `traffic_source`)
      +     * based on impressions. 1 is the highest.
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional int64 rank = 7; + * + * @return This builder for chaining. + */ + public Builder clearRank() { + bitField0_ = (bitField0_ & ~0x00000040); + rank_ = 0L; + onChanged(); + return this; + } + + private double adsOrganicRatio_; + + /** + * + * + *
      +     * [Ads / organic ratio]
      +     * (https://support.google.com/merchants/answer/11366442#zippy=%2Cads-free-ratio)
      +     * shows how often the domain receives impressions from Shopping ads compared
      +     * to organic traffic. The number is rounded and bucketed.
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional double ads_organic_ratio = 8; + * + * @return Whether the adsOrganicRatio field is set. + */ + @java.lang.Override + public boolean hasAdsOrganicRatio() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
      +     * [Ads / organic ratio]
      +     * (https://support.google.com/merchants/answer/11366442#zippy=%2Cads-free-ratio)
      +     * shows how often the domain receives impressions from Shopping ads compared
      +     * to organic traffic. The number is rounded and bucketed.
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional double ads_organic_ratio = 8; + * + * @return The adsOrganicRatio. + */ + @java.lang.Override + public double getAdsOrganicRatio() { + return adsOrganicRatio_; + } + + /** + * + * + *
      +     * [Ads / organic ratio]
      +     * (https://support.google.com/merchants/answer/11366442#zippy=%2Cads-free-ratio)
      +     * shows how often the domain receives impressions from Shopping ads compared
      +     * to organic traffic. The number is rounded and bucketed.
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional double ads_organic_ratio = 8; + * + * @param value The adsOrganicRatio to set. + * @return This builder for chaining. + */ + public Builder setAdsOrganicRatio(double value) { + + adsOrganicRatio_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
      +     * [Ads / organic ratio]
      +     * (https://support.google.com/merchants/answer/11366442#zippy=%2Cads-free-ratio)
      +     * shows how often the domain receives impressions from Shopping ads compared
      +     * to organic traffic. The number is rounded and bucketed.
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional double ads_organic_ratio = 8; + * + * @return This builder for chaining. + */ + public Builder clearAdsOrganicRatio() { + bitField0_ = (bitField0_ & ~0x00000080); + adsOrganicRatio_ = 0D; + onChanged(); + return this; + } + + private double pageOverlapRate_; + + /** + * + * + *
      +     * [Page overlap rate]
      +     * (https://support.google.com/merchants/answer/11366442#zippy=%2Cpage-overlap-rate)
      +     * shows how frequently competing retailers’ offers are shown together with
      +     * your offers on the same page.
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional double page_overlap_rate = 9; + * + * @return Whether the pageOverlapRate field is set. + */ + @java.lang.Override + public boolean hasPageOverlapRate() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
      +     * [Page overlap rate]
      +     * (https://support.google.com/merchants/answer/11366442#zippy=%2Cpage-overlap-rate)
      +     * shows how frequently competing retailers’ offers are shown together with
      +     * your offers on the same page.
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional double page_overlap_rate = 9; + * + * @return The pageOverlapRate. + */ + @java.lang.Override + public double getPageOverlapRate() { + return pageOverlapRate_; + } + + /** + * + * + *
      +     * [Page overlap rate]
      +     * (https://support.google.com/merchants/answer/11366442#zippy=%2Cpage-overlap-rate)
      +     * shows how frequently competing retailers’ offers are shown together with
      +     * your offers on the same page.
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional double page_overlap_rate = 9; + * + * @param value The pageOverlapRate to set. + * @return This builder for chaining. + */ + public Builder setPageOverlapRate(double value) { + + pageOverlapRate_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
      +     * [Page overlap rate]
      +     * (https://support.google.com/merchants/answer/11366442#zippy=%2Cpage-overlap-rate)
      +     * shows how frequently competing retailers’ offers are shown together with
      +     * your offers on the same page.
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional double page_overlap_rate = 9; + * + * @return This builder for chaining. + */ + public Builder clearPageOverlapRate() { + bitField0_ = (bitField0_ & ~0x00000100); + pageOverlapRate_ = 0D; + onChanged(); + return this; + } + + private double higherPositionRate_; + + /** + * + * + *
      +     * [Higher position rate]
      +     * (https://support.google.com/merchants/answer/11366442#zippy=%2Chigher-position-rate)
      +     * shows how often a competitor’s offer got placed in a higher position on the
      +     * page than your offer.
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional double higher_position_rate = 10; + * + * @return Whether the higherPositionRate field is set. + */ + @java.lang.Override + public boolean hasHigherPositionRate() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
      +     * [Higher position rate]
      +     * (https://support.google.com/merchants/answer/11366442#zippy=%2Chigher-position-rate)
      +     * shows how often a competitor’s offer got placed in a higher position on the
      +     * page than your offer.
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional double higher_position_rate = 10; + * + * @return The higherPositionRate. + */ + @java.lang.Override + public double getHigherPositionRate() { + return higherPositionRate_; + } + + /** + * + * + *
      +     * [Higher position rate]
      +     * (https://support.google.com/merchants/answer/11366442#zippy=%2Chigher-position-rate)
      +     * shows how often a competitor’s offer got placed in a higher position on the
      +     * page than your offer.
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional double higher_position_rate = 10; + * + * @param value The higherPositionRate to set. + * @return This builder for chaining. + */ + public Builder setHigherPositionRate(double value) { + + higherPositionRate_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
      +     * [Higher position rate]
      +     * (https://support.google.com/merchants/answer/11366442#zippy=%2Chigher-position-rate)
      +     * shows how often a competitor’s offer got placed in a higher position on the
      +     * page than your offer.
      +     *
      +     * Cannot be filtered on in the 'WHERE' clause.
      +     * 
      + * + * optional double higher_position_rate = 10; + * + * @return This builder for chaining. + */ + public Builder clearHigherPositionRate() { + bitField0_ = (bitField0_ & ~0x00000200); + higherPositionRate_ = 0D; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView) + private static final com.google.shopping.merchant.reports.v1alpha + .CompetitiveVisibilityTopMerchantView + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView(); + } + + public static com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompetitiveVisibilityTopMerchantView parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/CompetitiveVisibilityTopMerchantViewOrBuilder.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/CompetitiveVisibilityTopMerchantViewOrBuilder.java new file mode 100644 index 000000000000..5b7fb0ee27e8 --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/CompetitiveVisibilityTopMerchantViewOrBuilder.java @@ -0,0 +1,427 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/reports/v1alpha/reports.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.reports.v1alpha; + +public interface CompetitiveVisibilityTopMerchantViewOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Date of this row.
      +   *
      +   * Cannot be selected in the `SELECT` clause. A condition on `date` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * .google.type.Date date = 1; + * + * @return Whether the date field is set. + */ + boolean hasDate(); + + /** + * + * + *
      +   * Date of this row.
      +   *
      +   * Cannot be selected in the `SELECT` clause. A condition on `date` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * .google.type.Date date = 1; + * + * @return The date. + */ + com.google.type.Date getDate(); + + /** + * + * + *
      +   * Date of this row.
      +   *
      +   * Cannot be selected in the `SELECT` clause. A condition on `date` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * .google.type.Date date = 1; + */ + com.google.type.DateOrBuilder getDateOrBuilder(); + + /** + * + * + *
      +   * Domain of your competitor or your domain, if 'is_your_domain' is true.
      +   *
      +   * Required in the `SELECT` clause. Cannot be filtered on in the 'WHERE'
      +   * clause.
      +   * 
      + * + * optional string domain = 2; + * + * @return Whether the domain field is set. + */ + boolean hasDomain(); + + /** + * + * + *
      +   * Domain of your competitor or your domain, if 'is_your_domain' is true.
      +   *
      +   * Required in the `SELECT` clause. Cannot be filtered on in the 'WHERE'
      +   * clause.
      +   * 
      + * + * optional string domain = 2; + * + * @return The domain. + */ + java.lang.String getDomain(); + + /** + * + * + *
      +   * Domain of your competitor or your domain, if 'is_your_domain' is true.
      +   *
      +   * Required in the `SELECT` clause. Cannot be filtered on in the 'WHERE'
      +   * clause.
      +   * 
      + * + * optional string domain = 2; + * + * @return The bytes for domain. + */ + com.google.protobuf.ByteString getDomainBytes(); + + /** + * + * + *
      +   * True if this row contains data for your domain.
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional bool is_your_domain = 3; + * + * @return Whether the isYourDomain field is set. + */ + boolean hasIsYourDomain(); + + /** + * + * + *
      +   * True if this row contains data for your domain.
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional bool is_your_domain = 3; + * + * @return The isYourDomain. + */ + boolean getIsYourDomain(); + + /** + * + * + *
      +   * Country where impressions appeared.
      +   *
      +   * Required in the `SELECT` clause. A condition on `report_country_code` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * optional string report_country_code = 4; + * + * @return Whether the reportCountryCode field is set. + */ + boolean hasReportCountryCode(); + + /** + * + * + *
      +   * Country where impressions appeared.
      +   *
      +   * Required in the `SELECT` clause. A condition on `report_country_code` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * optional string report_country_code = 4; + * + * @return The reportCountryCode. + */ + java.lang.String getReportCountryCode(); + + /** + * + * + *
      +   * Country where impressions appeared.
      +   *
      +   * Required in the `SELECT` clause. A condition on `report_country_code` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * optional string report_country_code = 4; + * + * @return The bytes for reportCountryCode. + */ + com.google.protobuf.ByteString getReportCountryCodeBytes(); + + /** + * + * + *
      +   * Google product category ID to calculate the report for, represented in
      +   * [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   *
      +   * Required in the `SELECT` clause. A condition on `report_category_id` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * optional int64 report_category_id = 5; + * + * @return Whether the reportCategoryId field is set. + */ + boolean hasReportCategoryId(); + + /** + * + * + *
      +   * Google product category ID to calculate the report for, represented in
      +   * [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   *
      +   * Required in the `SELECT` clause. A condition on `report_category_id` is
      +   * required in the `WHERE` clause.
      +   * 
      + * + * optional int64 report_category_id = 5; + * + * @return The reportCategoryId. + */ + long getReportCategoryId(); + + /** + * + * + *
      +   * Traffic source of impressions.
      +   *
      +   * Required in the `SELECT` clause.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum traffic_source = 6; + * + * + * @return Whether the trafficSource field is set. + */ + boolean hasTrafficSource(); + + /** + * + * + *
      +   * Traffic source of impressions.
      +   *
      +   * Required in the `SELECT` clause.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum traffic_source = 6; + * + * + * @return The enum numeric value on the wire for trafficSource. + */ + int getTrafficSourceValue(); + + /** + * + * + *
      +   * Traffic source of impressions.
      +   *
      +   * Required in the `SELECT` clause.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum traffic_source = 6; + * + * + * @return The trafficSource. + */ + com.google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum getTrafficSource(); + + /** + * + * + *
      +   * Position of the domain in the top merchants ranking for the selected keys
      +   * (`date`, `report_category_id`, `report_country_code`, `traffic_source`)
      +   * based on impressions. 1 is the highest.
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional int64 rank = 7; + * + * @return Whether the rank field is set. + */ + boolean hasRank(); + + /** + * + * + *
      +   * Position of the domain in the top merchants ranking for the selected keys
      +   * (`date`, `report_category_id`, `report_country_code`, `traffic_source`)
      +   * based on impressions. 1 is the highest.
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional int64 rank = 7; + * + * @return The rank. + */ + long getRank(); + + /** + * + * + *
      +   * [Ads / organic ratio]
      +   * (https://support.google.com/merchants/answer/11366442#zippy=%2Cads-free-ratio)
      +   * shows how often the domain receives impressions from Shopping ads compared
      +   * to organic traffic. The number is rounded and bucketed.
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional double ads_organic_ratio = 8; + * + * @return Whether the adsOrganicRatio field is set. + */ + boolean hasAdsOrganicRatio(); + + /** + * + * + *
      +   * [Ads / organic ratio]
      +   * (https://support.google.com/merchants/answer/11366442#zippy=%2Cads-free-ratio)
      +   * shows how often the domain receives impressions from Shopping ads compared
      +   * to organic traffic. The number is rounded and bucketed.
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional double ads_organic_ratio = 8; + * + * @return The adsOrganicRatio. + */ + double getAdsOrganicRatio(); + + /** + * + * + *
      +   * [Page overlap rate]
      +   * (https://support.google.com/merchants/answer/11366442#zippy=%2Cpage-overlap-rate)
      +   * shows how frequently competing retailers’ offers are shown together with
      +   * your offers on the same page.
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional double page_overlap_rate = 9; + * + * @return Whether the pageOverlapRate field is set. + */ + boolean hasPageOverlapRate(); + + /** + * + * + *
      +   * [Page overlap rate]
      +   * (https://support.google.com/merchants/answer/11366442#zippy=%2Cpage-overlap-rate)
      +   * shows how frequently competing retailers’ offers are shown together with
      +   * your offers on the same page.
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional double page_overlap_rate = 9; + * + * @return The pageOverlapRate. + */ + double getPageOverlapRate(); + + /** + * + * + *
      +   * [Higher position rate]
      +   * (https://support.google.com/merchants/answer/11366442#zippy=%2Chigher-position-rate)
      +   * shows how often a competitor’s offer got placed in a higher position on the
      +   * page than your offer.
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional double higher_position_rate = 10; + * + * @return Whether the higherPositionRate field is set. + */ + boolean hasHigherPositionRate(); + + /** + * + * + *
      +   * [Higher position rate]
      +   * (https://support.google.com/merchants/answer/11366442#zippy=%2Chigher-position-rate)
      +   * shows how often a competitor’s offer got placed in a higher position on the
      +   * page than your offer.
      +   *
      +   * Cannot be filtered on in the 'WHERE' clause.
      +   * 
      + * + * optional double higher_position_rate = 10; + * + * @return The higherPositionRate. + */ + double getHigherPositionRate(); +} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/MarketingMethod.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/MarketingMethod.java new file mode 100644 index 000000000000..2151a63a8793 --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/MarketingMethod.java @@ -0,0 +1,605 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/reports/v1alpha/reports.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.reports.v1alpha; + +/** + * + * + *
      + * Marketing method used to promote your products on Google (organic versus
      + * ads).
      + * 
      + * + * Protobuf type {@code google.shopping.merchant.reports.v1alpha.MarketingMethod} + */ +public final class MarketingMethod extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.reports.v1alpha.MarketingMethod) + MarketingMethodOrBuilder { + private static final long serialVersionUID = 0L; + + // Use MarketingMethod.newBuilder() to construct. + private MarketingMethod(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MarketingMethod() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MarketingMethod(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_MarketingMethod_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_MarketingMethod_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1alpha.MarketingMethod.class, + com.google.shopping.merchant.reports.v1alpha.MarketingMethod.Builder.class); + } + + /** + * + * + *
      +   * Marketing method values.
      +   * 
      + * + * Protobuf enum {@code + * google.shopping.merchant.reports.v1alpha.MarketingMethod.MarketingMethodEnum} + */ + public enum MarketingMethodEnum implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +     * Not specified.
      +     * 
      + * + * MARKETING_METHOD_ENUM_UNSPECIFIED = 0; + */ + MARKETING_METHOD_ENUM_UNSPECIFIED(0), + /** + * + * + *
      +     * Organic marketing.
      +     * 
      + * + * ORGANIC = 1; + */ + ORGANIC(1), + /** + * + * + *
      +     * Ads-based marketing.
      +     * 
      + * + * ADS = 2; + */ + ADS(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
      +     * Not specified.
      +     * 
      + * + * MARKETING_METHOD_ENUM_UNSPECIFIED = 0; + */ + public static final int MARKETING_METHOD_ENUM_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +     * Organic marketing.
      +     * 
      + * + * ORGANIC = 1; + */ + public static final int ORGANIC_VALUE = 1; + + /** + * + * + *
      +     * Ads-based marketing.
      +     * 
      + * + * ADS = 2; + */ + public static final int ADS_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 MarketingMethodEnum 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 MarketingMethodEnum forNumber(int value) { + switch (value) { + case 0: + return MARKETING_METHOD_ENUM_UNSPECIFIED; + case 1: + return ORGANIC; + case 2: + return ADS; + 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 MarketingMethodEnum findValueByNumber(int number) { + return MarketingMethodEnum.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.MarketingMethod.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final MarketingMethodEnum[] VALUES = values(); + + public static MarketingMethodEnum 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 MarketingMethodEnum(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.shopping.merchant.reports.v1alpha.MarketingMethod.MarketingMethodEnum) + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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.shopping.merchant.reports.v1alpha.MarketingMethod)) { + return super.equals(obj); + } + com.google.shopping.merchant.reports.v1alpha.MarketingMethod other = + (com.google.shopping.merchant.reports.v1alpha.MarketingMethod) 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.shopping.merchant.reports.v1alpha.MarketingMethod parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.MarketingMethod parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.MarketingMethod parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.MarketingMethod parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.MarketingMethod parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.MarketingMethod parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.MarketingMethod parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.MarketingMethod parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.MarketingMethod parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.MarketingMethod parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.MarketingMethod parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.MarketingMethod parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.shopping.merchant.reports.v1alpha.MarketingMethod prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Marketing method used to promote your products on Google (organic versus
      +   * ads).
      +   * 
      + * + * Protobuf type {@code google.shopping.merchant.reports.v1alpha.MarketingMethod} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.reports.v1alpha.MarketingMethod) + com.google.shopping.merchant.reports.v1alpha.MarketingMethodOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_MarketingMethod_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_MarketingMethod_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1alpha.MarketingMethod.class, + com.google.shopping.merchant.reports.v1alpha.MarketingMethod.Builder.class); + } + + // Construct using com.google.shopping.merchant.reports.v1alpha.MarketingMethod.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_MarketingMethod_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.MarketingMethod + getDefaultInstanceForType() { + return com.google.shopping.merchant.reports.v1alpha.MarketingMethod.getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.MarketingMethod build() { + com.google.shopping.merchant.reports.v1alpha.MarketingMethod result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.MarketingMethod buildPartial() { + com.google.shopping.merchant.reports.v1alpha.MarketingMethod result = + new com.google.shopping.merchant.reports.v1alpha.MarketingMethod(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.shopping.merchant.reports.v1alpha.MarketingMethod) { + return mergeFrom((com.google.shopping.merchant.reports.v1alpha.MarketingMethod) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.shopping.merchant.reports.v1alpha.MarketingMethod other) { + if (other + == com.google.shopping.merchant.reports.v1alpha.MarketingMethod.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.reports.v1alpha.MarketingMethod) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.reports.v1alpha.MarketingMethod) + private static final com.google.shopping.merchant.reports.v1alpha.MarketingMethod + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.shopping.merchant.reports.v1alpha.MarketingMethod(); + } + + public static com.google.shopping.merchant.reports.v1alpha.MarketingMethod getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MarketingMethod parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.MarketingMethod getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/MarketingMethodOrBuilder.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/MarketingMethodOrBuilder.java new file mode 100644 index 000000000000..9370728c4cbd --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/MarketingMethodOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/reports/v1alpha/reports.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.reports.v1alpha; + +public interface MarketingMethodOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.reports.v1alpha.MarketingMethod) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/NonProductPerformanceView.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/NonProductPerformanceView.java new file mode 100644 index 000000000000..767e4c1707a2 --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/NonProductPerformanceView.java @@ -0,0 +1,1491 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/reports/v1alpha/reports.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.reports.v1alpha; + +/** + * + * + *
      + * Fields available for query in `non_product_performance_view` table.
      + *
      + * Performance data on images and online store links leading to your non-product
      + * pages. This includes performance metrics (for example, `clicks`)
      + * and dimensions according to which performance metrics are segmented (for
      + * example, `date`).
      + *
      + * Segment fields cannot be selected in queries without also selecting at least
      + * one metric field.
      + *
      + * Values are only set for fields requested explicitly in the request's search
      + * query.
      + * 
      + * + * Protobuf type {@code google.shopping.merchant.reports.v1alpha.NonProductPerformanceView} + */ +public final class NonProductPerformanceView extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.reports.v1alpha.NonProductPerformanceView) + NonProductPerformanceViewOrBuilder { + private static final long serialVersionUID = 0L; + + // Use NonProductPerformanceView.newBuilder() to construct. + private NonProductPerformanceView(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NonProductPerformanceView() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NonProductPerformanceView(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_NonProductPerformanceView_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_NonProductPerformanceView_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView.class, + com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView.Builder.class); + } + + private int bitField0_; + public static final int DATE_FIELD_NUMBER = 1; + private com.google.type.Date date_; + + /** + * + * + *
      +   * Date in the merchant timezone to which metrics apply. Segment.
      +   *
      +   * Condition on `date` is required in the `WHERE` clause.
      +   * 
      + * + * .google.type.Date date = 1; + * + * @return Whether the date field is set. + */ + @java.lang.Override + public boolean hasDate() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Date in the merchant timezone to which metrics apply. Segment.
      +   *
      +   * Condition on `date` is required in the `WHERE` clause.
      +   * 
      + * + * .google.type.Date date = 1; + * + * @return The date. + */ + @java.lang.Override + public com.google.type.Date getDate() { + return date_ == null ? com.google.type.Date.getDefaultInstance() : date_; + } + + /** + * + * + *
      +   * Date in the merchant timezone to which metrics apply. Segment.
      +   *
      +   * Condition on `date` is required in the `WHERE` clause.
      +   * 
      + * + * .google.type.Date date = 1; + */ + @java.lang.Override + public com.google.type.DateOrBuilder getDateOrBuilder() { + return date_ == null ? com.google.type.Date.getDefaultInstance() : date_; + } + + public static final int WEEK_FIELD_NUMBER = 2; + private com.google.type.Date week_; + + /** + * + * + *
      +   * First day of the week (Monday) of the metrics date in the merchant
      +   * timezone. Segment.
      +   * 
      + * + * .google.type.Date week = 2; + * + * @return Whether the week field is set. + */ + @java.lang.Override + public boolean hasWeek() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * First day of the week (Monday) of the metrics date in the merchant
      +   * timezone. Segment.
      +   * 
      + * + * .google.type.Date week = 2; + * + * @return The week. + */ + @java.lang.Override + public com.google.type.Date getWeek() { + return week_ == null ? com.google.type.Date.getDefaultInstance() : week_; + } + + /** + * + * + *
      +   * First day of the week (Monday) of the metrics date in the merchant
      +   * timezone. Segment.
      +   * 
      + * + * .google.type.Date week = 2; + */ + @java.lang.Override + public com.google.type.DateOrBuilder getWeekOrBuilder() { + return week_ == null ? com.google.type.Date.getDefaultInstance() : week_; + } + + public static final int CLICKS_FIELD_NUMBER = 3; + private long clicks_ = 0L; + + /** + * + * + *
      +   * Number of clicks on images and online store links leading to your
      +   * non-product pages. Metric.
      +   * 
      + * + * optional int64 clicks = 3; + * + * @return Whether the clicks field is set. + */ + @java.lang.Override + public boolean hasClicks() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +   * Number of clicks on images and online store links leading to your
      +   * non-product pages. Metric.
      +   * 
      + * + * optional int64 clicks = 3; + * + * @return The clicks. + */ + @java.lang.Override + public long getClicks() { + return clicks_; + } + + public static final int IMPRESSIONS_FIELD_NUMBER = 4; + private long impressions_ = 0L; + + /** + * + * + *
      +   * Number of times images and online store links leading to your non-product
      +   * pages were shown. Metric.
      +   * 
      + * + * optional int64 impressions = 4; + * + * @return Whether the impressions field is set. + */ + @java.lang.Override + public boolean hasImpressions() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +   * Number of times images and online store links leading to your non-product
      +   * pages were shown. Metric.
      +   * 
      + * + * optional int64 impressions = 4; + * + * @return The impressions. + */ + @java.lang.Override + public long getImpressions() { + return impressions_; + } + + public static final int CLICK_THROUGH_RATE_FIELD_NUMBER = 5; + private double clickThroughRate_ = 0D; + + /** + * + * + *
      +   * Click-through rate - the number of clicks (`clicks`) divided by the number
      +   * of impressions (`impressions`) of images and online store links leading to
      +   * your non-product pages. Metric.
      +   * 
      + * + * optional double click_through_rate = 5; + * + * @return Whether the clickThroughRate field is set. + */ + @java.lang.Override + public boolean hasClickThroughRate() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
      +   * Click-through rate - the number of clicks (`clicks`) divided by the number
      +   * of impressions (`impressions`) of images and online store links leading to
      +   * your non-product pages. Metric.
      +   * 
      + * + * optional double click_through_rate = 5; + * + * @return The clickThroughRate. + */ + @java.lang.Override + public double getClickThroughRate() { + return clickThroughRate_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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, getDate()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getWeek()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeInt64(3, clicks_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeInt64(4, impressions_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeDouble(5, clickThroughRate_); + } + 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, getDate()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getWeek()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, clicks_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, impressions_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(5, clickThroughRate_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView)) { + return super.equals(obj); + } + com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView other = + (com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView) obj; + + if (hasDate() != other.hasDate()) return false; + if (hasDate()) { + if (!getDate().equals(other.getDate())) return false; + } + if (hasWeek() != other.hasWeek()) return false; + if (hasWeek()) { + if (!getWeek().equals(other.getWeek())) return false; + } + if (hasClicks() != other.hasClicks()) return false; + if (hasClicks()) { + if (getClicks() != other.getClicks()) return false; + } + if (hasImpressions() != other.hasImpressions()) return false; + if (hasImpressions()) { + if (getImpressions() != other.getImpressions()) return false; + } + if (hasClickThroughRate() != other.hasClickThroughRate()) return false; + if (hasClickThroughRate()) { + if (java.lang.Double.doubleToLongBits(getClickThroughRate()) + != java.lang.Double.doubleToLongBits(other.getClickThroughRate())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDate()) { + hash = (37 * hash) + DATE_FIELD_NUMBER; + hash = (53 * hash) + getDate().hashCode(); + } + if (hasWeek()) { + hash = (37 * hash) + WEEK_FIELD_NUMBER; + hash = (53 * hash) + getWeek().hashCode(); + } + if (hasClicks()) { + hash = (37 * hash) + CLICKS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getClicks()); + } + if (hasImpressions()) { + hash = (37 * hash) + IMPRESSIONS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getImpressions()); + } + if (hasClickThroughRate()) { + hash = (37 * hash) + CLICK_THROUGH_RATE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getClickThroughRate())); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Fields available for query in `non_product_performance_view` table.
      +   *
      +   * Performance data on images and online store links leading to your non-product
      +   * pages. This includes performance metrics (for example, `clicks`)
      +   * and dimensions according to which performance metrics are segmented (for
      +   * example, `date`).
      +   *
      +   * Segment fields cannot be selected in queries without also selecting at least
      +   * one metric field.
      +   *
      +   * Values are only set for fields requested explicitly in the request's search
      +   * query.
      +   * 
      + * + * Protobuf type {@code google.shopping.merchant.reports.v1alpha.NonProductPerformanceView} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.reports.v1alpha.NonProductPerformanceView) + com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceViewOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_NonProductPerformanceView_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_NonProductPerformanceView_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView.class, + com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView.Builder.class); + } + + // Construct using + // com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDateFieldBuilder(); + getWeekFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + date_ = null; + if (dateBuilder_ != null) { + dateBuilder_.dispose(); + dateBuilder_ = null; + } + week_ = null; + if (weekBuilder_ != null) { + weekBuilder_.dispose(); + weekBuilder_ = null; + } + clicks_ = 0L; + impressions_ = 0L; + clickThroughRate_ = 0D; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_NonProductPerformanceView_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView + getDefaultInstanceForType() { + return com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView build() { + com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView buildPartial() { + com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView result = + new com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.date_ = dateBuilder_ == null ? date_ : dateBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.week_ = weekBuilder_ == null ? week_ : weekBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clicks_ = clicks_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.impressions_ = impressions_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.clickThroughRate_ = clickThroughRate_; + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView) { + return mergeFrom( + (com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView other) { + if (other + == com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView + .getDefaultInstance()) return this; + if (other.hasDate()) { + mergeDate(other.getDate()); + } + if (other.hasWeek()) { + mergeWeek(other.getWeek()); + } + if (other.hasClicks()) { + setClicks(other.getClicks()); + } + if (other.hasImpressions()) { + setImpressions(other.getImpressions()); + } + if (other.hasClickThroughRate()) { + setClickThroughRate(other.getClickThroughRate()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(getDateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getWeekFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + clicks_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + impressions_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 41: + { + clickThroughRate_ = input.readDouble(); + bitField0_ |= 0x00000010; + break; + } // case 41 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.type.Date date_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + dateBuilder_; + + /** + * + * + *
      +     * Date in the merchant timezone to which metrics apply. Segment.
      +     *
      +     * Condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + * + * @return Whether the date field is set. + */ + public boolean hasDate() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +     * Date in the merchant timezone to which metrics apply. Segment.
      +     *
      +     * Condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + * + * @return The date. + */ + public com.google.type.Date getDate() { + if (dateBuilder_ == null) { + return date_ == null ? com.google.type.Date.getDefaultInstance() : date_; + } else { + return dateBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Date in the merchant timezone to which metrics apply. Segment.
      +     *
      +     * Condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + */ + public Builder setDate(com.google.type.Date value) { + if (dateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + date_ = value; + } else { + dateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Date in the merchant timezone to which metrics apply. Segment.
      +     *
      +     * Condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + */ + public Builder setDate(com.google.type.Date.Builder builderForValue) { + if (dateBuilder_ == null) { + date_ = builderForValue.build(); + } else { + dateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Date in the merchant timezone to which metrics apply. Segment.
      +     *
      +     * Condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + */ + public Builder mergeDate(com.google.type.Date value) { + if (dateBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && date_ != null + && date_ != com.google.type.Date.getDefaultInstance()) { + getDateBuilder().mergeFrom(value); + } else { + date_ = value; + } + } else { + dateBuilder_.mergeFrom(value); + } + if (date_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Date in the merchant timezone to which metrics apply. Segment.
      +     *
      +     * Condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + */ + public Builder clearDate() { + bitField0_ = (bitField0_ & ~0x00000001); + date_ = null; + if (dateBuilder_ != null) { + dateBuilder_.dispose(); + dateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Date in the merchant timezone to which metrics apply. Segment.
      +     *
      +     * Condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + */ + public com.google.type.Date.Builder getDateBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getDateFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Date in the merchant timezone to which metrics apply. Segment.
      +     *
      +     * Condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + */ + public com.google.type.DateOrBuilder getDateOrBuilder() { + if (dateBuilder_ != null) { + return dateBuilder_.getMessageOrBuilder(); + } else { + return date_ == null ? com.google.type.Date.getDefaultInstance() : date_; + } + } + + /** + * + * + *
      +     * Date in the merchant timezone to which metrics apply. Segment.
      +     *
      +     * Condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getDateFieldBuilder() { + if (dateBuilder_ == null) { + dateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getDate(), getParentForChildren(), isClean()); + date_ = null; + } + return dateBuilder_; + } + + private com.google.type.Date week_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + weekBuilder_; + + /** + * + * + *
      +     * First day of the week (Monday) of the metrics date in the merchant
      +     * timezone. Segment.
      +     * 
      + * + * .google.type.Date week = 2; + * + * @return Whether the week field is set. + */ + public boolean hasWeek() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +     * First day of the week (Monday) of the metrics date in the merchant
      +     * timezone. Segment.
      +     * 
      + * + * .google.type.Date week = 2; + * + * @return The week. + */ + public com.google.type.Date getWeek() { + if (weekBuilder_ == null) { + return week_ == null ? com.google.type.Date.getDefaultInstance() : week_; + } else { + return weekBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * First day of the week (Monday) of the metrics date in the merchant
      +     * timezone. Segment.
      +     * 
      + * + * .google.type.Date week = 2; + */ + public Builder setWeek(com.google.type.Date value) { + if (weekBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + week_ = value; + } else { + weekBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * First day of the week (Monday) of the metrics date in the merchant
      +     * timezone. Segment.
      +     * 
      + * + * .google.type.Date week = 2; + */ + public Builder setWeek(com.google.type.Date.Builder builderForValue) { + if (weekBuilder_ == null) { + week_ = builderForValue.build(); + } else { + weekBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * First day of the week (Monday) of the metrics date in the merchant
      +     * timezone. Segment.
      +     * 
      + * + * .google.type.Date week = 2; + */ + public Builder mergeWeek(com.google.type.Date value) { + if (weekBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && week_ != null + && week_ != com.google.type.Date.getDefaultInstance()) { + getWeekBuilder().mergeFrom(value); + } else { + week_ = value; + } + } else { + weekBuilder_.mergeFrom(value); + } + if (week_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * First day of the week (Monday) of the metrics date in the merchant
      +     * timezone. Segment.
      +     * 
      + * + * .google.type.Date week = 2; + */ + public Builder clearWeek() { + bitField0_ = (bitField0_ & ~0x00000002); + week_ = null; + if (weekBuilder_ != null) { + weekBuilder_.dispose(); + weekBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * First day of the week (Monday) of the metrics date in the merchant
      +     * timezone. Segment.
      +     * 
      + * + * .google.type.Date week = 2; + */ + public com.google.type.Date.Builder getWeekBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getWeekFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * First day of the week (Monday) of the metrics date in the merchant
      +     * timezone. Segment.
      +     * 
      + * + * .google.type.Date week = 2; + */ + public com.google.type.DateOrBuilder getWeekOrBuilder() { + if (weekBuilder_ != null) { + return weekBuilder_.getMessageOrBuilder(); + } else { + return week_ == null ? com.google.type.Date.getDefaultInstance() : week_; + } + } + + /** + * + * + *
      +     * First day of the week (Monday) of the metrics date in the merchant
      +     * timezone. Segment.
      +     * 
      + * + * .google.type.Date week = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getWeekFieldBuilder() { + if (weekBuilder_ == null) { + weekBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getWeek(), getParentForChildren(), isClean()); + week_ = null; + } + return weekBuilder_; + } + + private long clicks_; + + /** + * + * + *
      +     * Number of clicks on images and online store links leading to your
      +     * non-product pages. Metric.
      +     * 
      + * + * optional int64 clicks = 3; + * + * @return Whether the clicks field is set. + */ + @java.lang.Override + public boolean hasClicks() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +     * Number of clicks on images and online store links leading to your
      +     * non-product pages. Metric.
      +     * 
      + * + * optional int64 clicks = 3; + * + * @return The clicks. + */ + @java.lang.Override + public long getClicks() { + return clicks_; + } + + /** + * + * + *
      +     * Number of clicks on images and online store links leading to your
      +     * non-product pages. Metric.
      +     * 
      + * + * optional int64 clicks = 3; + * + * @param value The clicks to set. + * @return This builder for chaining. + */ + public Builder setClicks(long value) { + + clicks_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Number of clicks on images and online store links leading to your
      +     * non-product pages. Metric.
      +     * 
      + * + * optional int64 clicks = 3; + * + * @return This builder for chaining. + */ + public Builder clearClicks() { + bitField0_ = (bitField0_ & ~0x00000004); + clicks_ = 0L; + onChanged(); + return this; + } + + private long impressions_; + + /** + * + * + *
      +     * Number of times images and online store links leading to your non-product
      +     * pages were shown. Metric.
      +     * 
      + * + * optional int64 impressions = 4; + * + * @return Whether the impressions field is set. + */ + @java.lang.Override + public boolean hasImpressions() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +     * Number of times images and online store links leading to your non-product
      +     * pages were shown. Metric.
      +     * 
      + * + * optional int64 impressions = 4; + * + * @return The impressions. + */ + @java.lang.Override + public long getImpressions() { + return impressions_; + } + + /** + * + * + *
      +     * Number of times images and online store links leading to your non-product
      +     * pages were shown. Metric.
      +     * 
      + * + * optional int64 impressions = 4; + * + * @param value The impressions to set. + * @return This builder for chaining. + */ + public Builder setImpressions(long value) { + + impressions_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Number of times images and online store links leading to your non-product
      +     * pages were shown. Metric.
      +     * 
      + * + * optional int64 impressions = 4; + * + * @return This builder for chaining. + */ + public Builder clearImpressions() { + bitField0_ = (bitField0_ & ~0x00000008); + impressions_ = 0L; + onChanged(); + return this; + } + + private double clickThroughRate_; + + /** + * + * + *
      +     * Click-through rate - the number of clicks (`clicks`) divided by the number
      +     * of impressions (`impressions`) of images and online store links leading to
      +     * your non-product pages. Metric.
      +     * 
      + * + * optional double click_through_rate = 5; + * + * @return Whether the clickThroughRate field is set. + */ + @java.lang.Override + public boolean hasClickThroughRate() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
      +     * Click-through rate - the number of clicks (`clicks`) divided by the number
      +     * of impressions (`impressions`) of images and online store links leading to
      +     * your non-product pages. Metric.
      +     * 
      + * + * optional double click_through_rate = 5; + * + * @return The clickThroughRate. + */ + @java.lang.Override + public double getClickThroughRate() { + return clickThroughRate_; + } + + /** + * + * + *
      +     * Click-through rate - the number of clicks (`clicks`) divided by the number
      +     * of impressions (`impressions`) of images and online store links leading to
      +     * your non-product pages. Metric.
      +     * 
      + * + * optional double click_through_rate = 5; + * + * @param value The clickThroughRate to set. + * @return This builder for chaining. + */ + public Builder setClickThroughRate(double value) { + + clickThroughRate_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Click-through rate - the number of clicks (`clicks`) divided by the number
      +     * of impressions (`impressions`) of images and online store links leading to
      +     * your non-product pages. Metric.
      +     * 
      + * + * optional double click_through_rate = 5; + * + * @return This builder for chaining. + */ + public Builder clearClickThroughRate() { + bitField0_ = (bitField0_ & ~0x00000010); + clickThroughRate_ = 0D; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.reports.v1alpha.NonProductPerformanceView) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.reports.v1alpha.NonProductPerformanceView) + private static final com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView(); + } + + public static com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NonProductPerformanceView parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/NonProductPerformanceViewOrBuilder.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/NonProductPerformanceViewOrBuilder.java new file mode 100644 index 000000000000..1eeb9267f878 --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/NonProductPerformanceViewOrBuilder.java @@ -0,0 +1,195 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/reports/v1alpha/reports.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.reports.v1alpha; + +public interface NonProductPerformanceViewOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.reports.v1alpha.NonProductPerformanceView) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Date in the merchant timezone to which metrics apply. Segment.
      +   *
      +   * Condition on `date` is required in the `WHERE` clause.
      +   * 
      + * + * .google.type.Date date = 1; + * + * @return Whether the date field is set. + */ + boolean hasDate(); + + /** + * + * + *
      +   * Date in the merchant timezone to which metrics apply. Segment.
      +   *
      +   * Condition on `date` is required in the `WHERE` clause.
      +   * 
      + * + * .google.type.Date date = 1; + * + * @return The date. + */ + com.google.type.Date getDate(); + + /** + * + * + *
      +   * Date in the merchant timezone to which metrics apply. Segment.
      +   *
      +   * Condition on `date` is required in the `WHERE` clause.
      +   * 
      + * + * .google.type.Date date = 1; + */ + com.google.type.DateOrBuilder getDateOrBuilder(); + + /** + * + * + *
      +   * First day of the week (Monday) of the metrics date in the merchant
      +   * timezone. Segment.
      +   * 
      + * + * .google.type.Date week = 2; + * + * @return Whether the week field is set. + */ + boolean hasWeek(); + + /** + * + * + *
      +   * First day of the week (Monday) of the metrics date in the merchant
      +   * timezone. Segment.
      +   * 
      + * + * .google.type.Date week = 2; + * + * @return The week. + */ + com.google.type.Date getWeek(); + + /** + * + * + *
      +   * First day of the week (Monday) of the metrics date in the merchant
      +   * timezone. Segment.
      +   * 
      + * + * .google.type.Date week = 2; + */ + com.google.type.DateOrBuilder getWeekOrBuilder(); + + /** + * + * + *
      +   * Number of clicks on images and online store links leading to your
      +   * non-product pages. Metric.
      +   * 
      + * + * optional int64 clicks = 3; + * + * @return Whether the clicks field is set. + */ + boolean hasClicks(); + + /** + * + * + *
      +   * Number of clicks on images and online store links leading to your
      +   * non-product pages. Metric.
      +   * 
      + * + * optional int64 clicks = 3; + * + * @return The clicks. + */ + long getClicks(); + + /** + * + * + *
      +   * Number of times images and online store links leading to your non-product
      +   * pages were shown. Metric.
      +   * 
      + * + * optional int64 impressions = 4; + * + * @return Whether the impressions field is set. + */ + boolean hasImpressions(); + + /** + * + * + *
      +   * Number of times images and online store links leading to your non-product
      +   * pages were shown. Metric.
      +   * 
      + * + * optional int64 impressions = 4; + * + * @return The impressions. + */ + long getImpressions(); + + /** + * + * + *
      +   * Click-through rate - the number of clicks (`clicks`) divided by the number
      +   * of impressions (`impressions`) of images and online store links leading to
      +   * your non-product pages. Metric.
      +   * 
      + * + * optional double click_through_rate = 5; + * + * @return Whether the clickThroughRate field is set. + */ + boolean hasClickThroughRate(); + + /** + * + * + *
      +   * Click-through rate - the number of clicks (`clicks`) divided by the number
      +   * of impressions (`impressions`) of images and online store links leading to
      +   * your non-product pages. Metric.
      +   * 
      + * + * optional double click_through_rate = 5; + * + * @return The clickThroughRate. + */ + double getClickThroughRate(); +} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/PriceCompetitivenessProductView.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/PriceCompetitivenessProductView.java new file mode 100644 index 000000000000..924f22e13e37 --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/PriceCompetitivenessProductView.java @@ -0,0 +1,4592 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/reports/v1alpha/reports.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.reports.v1alpha; + +/** + * + * + *
      + * Fields available for query in `price_competitiveness_product_view` table.
      + *
      + * [Price competitiveness](https://support.google.com/merchants/answer/9626903)
      + * report.
      + *
      + * Values are only set for fields requested explicitly in the request's search
      + * query.
      + * 
      + * + * Protobuf type {@code google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView} + */ +public final class PriceCompetitivenessProductView extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView) + PriceCompetitivenessProductViewOrBuilder { + private static final long serialVersionUID = 0L; + + // Use PriceCompetitivenessProductView.newBuilder() to construct. + private PriceCompetitivenessProductView( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PriceCompetitivenessProductView() { + reportCountryCode_ = ""; + id_ = ""; + offerId_ = ""; + title_ = ""; + brand_ = ""; + categoryL1_ = ""; + categoryL2_ = ""; + categoryL3_ = ""; + categoryL4_ = ""; + categoryL5_ = ""; + productTypeL1_ = ""; + productTypeL2_ = ""; + productTypeL3_ = ""; + productTypeL4_ = ""; + productTypeL5_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PriceCompetitivenessProductView(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_PriceCompetitivenessProductView_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_PriceCompetitivenessProductView_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView.class, + com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView.Builder + .class); + } + + private int bitField0_; + public static final int REPORT_COUNTRY_CODE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object reportCountryCode_ = ""; + + /** + * + * + *
      +   * Country of the price benchmark. Represented in the ISO 3166 format.
      +   *
      +   * Required in the `SELECT` clause.
      +   * 
      + * + * optional string report_country_code = 1; + * + * @return Whether the reportCountryCode field is set. + */ + @java.lang.Override + public boolean hasReportCountryCode() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Country of the price benchmark. Represented in the ISO 3166 format.
      +   *
      +   * Required in the `SELECT` clause.
      +   * 
      + * + * optional string report_country_code = 1; + * + * @return The reportCountryCode. + */ + @java.lang.Override + public java.lang.String getReportCountryCode() { + java.lang.Object ref = reportCountryCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reportCountryCode_ = s; + return s; + } + } + + /** + * + * + *
      +   * Country of the price benchmark. Represented in the ISO 3166 format.
      +   *
      +   * Required in the `SELECT` clause.
      +   * 
      + * + * optional string report_country_code = 1; + * + * @return The bytes for reportCountryCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getReportCountryCodeBytes() { + java.lang.Object ref = reportCountryCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + reportCountryCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + + /** + * + * + *
      +   * REST ID of the product, in the form of
      +   * `channel~languageCode~feedLabel~offerId`. Can be used to join data with the
      +   * `product_view` table.
      +   *
      +   * Required in the `SELECT` clause.
      +   * 
      + * + * optional string id = 2; + * + * @return Whether the id field is set. + */ + @java.lang.Override + public boolean hasId() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * REST ID of the product, in the form of
      +   * `channel~languageCode~feedLabel~offerId`. Can be used to join data with the
      +   * `product_view` table.
      +   *
      +   * Required in the `SELECT` clause.
      +   * 
      + * + * optional string id = 2; + * + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + + /** + * + * + *
      +   * REST ID of the product, in the form of
      +   * `channel~languageCode~feedLabel~offerId`. Can be used to join data with the
      +   * `product_view` table.
      +   *
      +   * Required in the `SELECT` clause.
      +   * 
      + * + * optional string id = 2; + * + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OFFER_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object offerId_ = ""; + + /** + * + * + *
      +   * Merchant-provided id of the product.
      +   * 
      + * + * optional string offer_id = 3; + * + * @return Whether the offerId field is set. + */ + @java.lang.Override + public boolean hasOfferId() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +   * Merchant-provided id of the product.
      +   * 
      + * + * optional string offer_id = 3; + * + * @return The offerId. + */ + @java.lang.Override + public java.lang.String getOfferId() { + java.lang.Object ref = offerId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + offerId_ = s; + return s; + } + } + + /** + * + * + *
      +   * Merchant-provided id of the product.
      +   * 
      + * + * optional string offer_id = 3; + * + * @return The bytes for offerId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOfferIdBytes() { + java.lang.Object ref = offerId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + offerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TITLE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + + /** + * + * + *
      +   * Title of the product.
      +   * 
      + * + * optional string title = 4; + * + * @return Whether the title field is set. + */ + @java.lang.Override + public boolean hasTitle() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +   * Title of the product.
      +   * 
      + * + * optional string title = 4; + * + * @return The title. + */ + @java.lang.Override + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } + } + + /** + * + * + *
      +   * Title of the product.
      +   * 
      + * + * optional string title = 4; + * + * @return The bytes for title. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BRAND_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object brand_ = ""; + + /** + * + * + *
      +   * Brand of the product.
      +   * 
      + * + * optional string brand = 5; + * + * @return Whether the brand field is set. + */ + @java.lang.Override + public boolean hasBrand() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
      +   * Brand of the product.
      +   * 
      + * + * optional string brand = 5; + * + * @return The brand. + */ + @java.lang.Override + public java.lang.String getBrand() { + java.lang.Object ref = brand_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + brand_ = s; + return s; + } + } + + /** + * + * + *
      +   * Brand of the product.
      +   * 
      + * + * optional string brand = 5; + * + * @return The bytes for brand. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBrandBytes() { + java.lang.Object ref = brand_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + brand_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CATEGORY_L1_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object categoryL1_ = ""; + + /** + * + * + *
      +   * Product category (1st level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l1 = 6; + * + * @return Whether the categoryL1 field is set. + */ + @java.lang.Override + public boolean hasCategoryL1() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
      +   * Product category (1st level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l1 = 6; + * + * @return The categoryL1. + */ + @java.lang.Override + public java.lang.String getCategoryL1() { + java.lang.Object ref = categoryL1_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + categoryL1_ = s; + return s; + } + } + + /** + * + * + *
      +   * Product category (1st level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l1 = 6; + * + * @return The bytes for categoryL1. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCategoryL1Bytes() { + java.lang.Object ref = categoryL1_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + categoryL1_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CATEGORY_L2_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object categoryL2_ = ""; + + /** + * + * + *
      +   * Product category (2nd level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l2 = 7; + * + * @return Whether the categoryL2 field is set. + */ + @java.lang.Override + public boolean hasCategoryL2() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
      +   * Product category (2nd level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l2 = 7; + * + * @return The categoryL2. + */ + @java.lang.Override + public java.lang.String getCategoryL2() { + java.lang.Object ref = categoryL2_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + categoryL2_ = s; + return s; + } + } + + /** + * + * + *
      +   * Product category (2nd level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l2 = 7; + * + * @return The bytes for categoryL2. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCategoryL2Bytes() { + java.lang.Object ref = categoryL2_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + categoryL2_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CATEGORY_L3_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object categoryL3_ = ""; + + /** + * + * + *
      +   * Product category (3rd level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l3 = 8; + * + * @return Whether the categoryL3 field is set. + */ + @java.lang.Override + public boolean hasCategoryL3() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
      +   * Product category (3rd level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l3 = 8; + * + * @return The categoryL3. + */ + @java.lang.Override + public java.lang.String getCategoryL3() { + java.lang.Object ref = categoryL3_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + categoryL3_ = s; + return s; + } + } + + /** + * + * + *
      +   * Product category (3rd level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l3 = 8; + * + * @return The bytes for categoryL3. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCategoryL3Bytes() { + java.lang.Object ref = categoryL3_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + categoryL3_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CATEGORY_L4_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object categoryL4_ = ""; + + /** + * + * + *
      +   * Product category (4th level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l4 = 9; + * + * @return Whether the categoryL4 field is set. + */ + @java.lang.Override + public boolean hasCategoryL4() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
      +   * Product category (4th level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l4 = 9; + * + * @return The categoryL4. + */ + @java.lang.Override + public java.lang.String getCategoryL4() { + java.lang.Object ref = categoryL4_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + categoryL4_ = s; + return s; + } + } + + /** + * + * + *
      +   * Product category (4th level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l4 = 9; + * + * @return The bytes for categoryL4. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCategoryL4Bytes() { + java.lang.Object ref = categoryL4_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + categoryL4_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CATEGORY_L5_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object categoryL5_ = ""; + + /** + * + * + *
      +   * Product category (5th level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l5 = 10; + * + * @return Whether the categoryL5 field is set. + */ + @java.lang.Override + public boolean hasCategoryL5() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
      +   * Product category (5th level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l5 = 10; + * + * @return The categoryL5. + */ + @java.lang.Override + public java.lang.String getCategoryL5() { + java.lang.Object ref = categoryL5_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + categoryL5_ = s; + return s; + } + } + + /** + * + * + *
      +   * Product category (5th level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l5 = 10; + * + * @return The bytes for categoryL5. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCategoryL5Bytes() { + java.lang.Object ref = categoryL5_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + categoryL5_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRODUCT_TYPE_L1_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object productTypeL1_ = ""; + + /** + * + * + *
      +   * Product type (1st level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l1 = 11; + * + * @return Whether the productTypeL1 field is set. + */ + @java.lang.Override + public boolean hasProductTypeL1() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
      +   * Product type (1st level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l1 = 11; + * + * @return The productTypeL1. + */ + @java.lang.Override + public java.lang.String getProductTypeL1() { + java.lang.Object ref = productTypeL1_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + productTypeL1_ = s; + return s; + } + } + + /** + * + * + *
      +   * Product type (1st level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l1 = 11; + * + * @return The bytes for productTypeL1. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProductTypeL1Bytes() { + java.lang.Object ref = productTypeL1_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + productTypeL1_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRODUCT_TYPE_L2_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private volatile java.lang.Object productTypeL2_ = ""; + + /** + * + * + *
      +   * Product type (2nd level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l2 = 12; + * + * @return Whether the productTypeL2 field is set. + */ + @java.lang.Override + public boolean hasProductTypeL2() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
      +   * Product type (2nd level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l2 = 12; + * + * @return The productTypeL2. + */ + @java.lang.Override + public java.lang.String getProductTypeL2() { + java.lang.Object ref = productTypeL2_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + productTypeL2_ = s; + return s; + } + } + + /** + * + * + *
      +   * Product type (2nd level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l2 = 12; + * + * @return The bytes for productTypeL2. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProductTypeL2Bytes() { + java.lang.Object ref = productTypeL2_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + productTypeL2_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRODUCT_TYPE_L3_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private volatile java.lang.Object productTypeL3_ = ""; + + /** + * + * + *
      +   * Product type (3rd level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l3 = 13; + * + * @return Whether the productTypeL3 field is set. + */ + @java.lang.Override + public boolean hasProductTypeL3() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
      +   * Product type (3rd level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l3 = 13; + * + * @return The productTypeL3. + */ + @java.lang.Override + public java.lang.String getProductTypeL3() { + java.lang.Object ref = productTypeL3_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + productTypeL3_ = s; + return s; + } + } + + /** + * + * + *
      +   * Product type (3rd level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l3 = 13; + * + * @return The bytes for productTypeL3. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProductTypeL3Bytes() { + java.lang.Object ref = productTypeL3_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + productTypeL3_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRODUCT_TYPE_L4_FIELD_NUMBER = 14; + + @SuppressWarnings("serial") + private volatile java.lang.Object productTypeL4_ = ""; + + /** + * + * + *
      +   * Product type (4th level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l4 = 14; + * + * @return Whether the productTypeL4 field is set. + */ + @java.lang.Override + public boolean hasProductTypeL4() { + return ((bitField0_ & 0x00002000) != 0); + } + + /** + * + * + *
      +   * Product type (4th level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l4 = 14; + * + * @return The productTypeL4. + */ + @java.lang.Override + public java.lang.String getProductTypeL4() { + java.lang.Object ref = productTypeL4_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + productTypeL4_ = s; + return s; + } + } + + /** + * + * + *
      +   * Product type (4th level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l4 = 14; + * + * @return The bytes for productTypeL4. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProductTypeL4Bytes() { + java.lang.Object ref = productTypeL4_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + productTypeL4_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRODUCT_TYPE_L5_FIELD_NUMBER = 15; + + @SuppressWarnings("serial") + private volatile java.lang.Object productTypeL5_ = ""; + + /** + * + * + *
      +   * Product type (5th level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l5 = 15; + * + * @return Whether the productTypeL5 field is set. + */ + @java.lang.Override + public boolean hasProductTypeL5() { + return ((bitField0_ & 0x00004000) != 0); + } + + /** + * + * + *
      +   * Product type (5th level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l5 = 15; + * + * @return The productTypeL5. + */ + @java.lang.Override + public java.lang.String getProductTypeL5() { + java.lang.Object ref = productTypeL5_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + productTypeL5_ = s; + return s; + } + } + + /** + * + * + *
      +   * Product type (5th level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l5 = 15; + * + * @return The bytes for productTypeL5. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProductTypeL5Bytes() { + java.lang.Object ref = productTypeL5_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + productTypeL5_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRICE_FIELD_NUMBER = 16; + private com.google.shopping.type.Price price_; + + /** + * + * + *
      +   * Current price of the product.
      +   * 
      + * + * .google.shopping.type.Price price = 16; + * + * @return Whether the price field is set. + */ + @java.lang.Override + public boolean hasPrice() { + return ((bitField0_ & 0x00008000) != 0); + } + + /** + * + * + *
      +   * Current price of the product.
      +   * 
      + * + * .google.shopping.type.Price price = 16; + * + * @return The price. + */ + @java.lang.Override + public com.google.shopping.type.Price getPrice() { + return price_ == null ? com.google.shopping.type.Price.getDefaultInstance() : price_; + } + + /** + * + * + *
      +   * Current price of the product.
      +   * 
      + * + * .google.shopping.type.Price price = 16; + */ + @java.lang.Override + public com.google.shopping.type.PriceOrBuilder getPriceOrBuilder() { + return price_ == null ? com.google.shopping.type.Price.getDefaultInstance() : price_; + } + + public static final int BENCHMARK_PRICE_FIELD_NUMBER = 17; + private com.google.shopping.type.Price benchmarkPrice_; + + /** + * + * + *
      +   * Latest available price benchmark for the product's catalog in the benchmark
      +   * country.
      +   * 
      + * + * .google.shopping.type.Price benchmark_price = 17; + * + * @return Whether the benchmarkPrice field is set. + */ + @java.lang.Override + public boolean hasBenchmarkPrice() { + return ((bitField0_ & 0x00010000) != 0); + } + + /** + * + * + *
      +   * Latest available price benchmark for the product's catalog in the benchmark
      +   * country.
      +   * 
      + * + * .google.shopping.type.Price benchmark_price = 17; + * + * @return The benchmarkPrice. + */ + @java.lang.Override + public com.google.shopping.type.Price getBenchmarkPrice() { + return benchmarkPrice_ == null + ? com.google.shopping.type.Price.getDefaultInstance() + : benchmarkPrice_; + } + + /** + * + * + *
      +   * Latest available price benchmark for the product's catalog in the benchmark
      +   * country.
      +   * 
      + * + * .google.shopping.type.Price benchmark_price = 17; + */ + @java.lang.Override + public com.google.shopping.type.PriceOrBuilder getBenchmarkPriceOrBuilder() { + return benchmarkPrice_ == null + ? com.google.shopping.type.Price.getDefaultInstance() + : benchmarkPrice_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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.GeneratedMessageV3.writeString(output, 1, reportCountryCode_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, offerId_); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, title_); + } + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, brand_); + } + if (((bitField0_ & 0x00000020) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, categoryL1_); + } + if (((bitField0_ & 0x00000040) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, categoryL2_); + } + if (((bitField0_ & 0x00000080) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, categoryL3_); + } + if (((bitField0_ & 0x00000100) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, categoryL4_); + } + if (((bitField0_ & 0x00000200) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, categoryL5_); + } + if (((bitField0_ & 0x00000400) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, productTypeL1_); + } + if (((bitField0_ & 0x00000800) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, productTypeL2_); + } + if (((bitField0_ & 0x00001000) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, productTypeL3_); + } + if (((bitField0_ & 0x00002000) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, productTypeL4_); + } + if (((bitField0_ & 0x00004000) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 15, productTypeL5_); + } + if (((bitField0_ & 0x00008000) != 0)) { + output.writeMessage(16, getPrice()); + } + if (((bitField0_ & 0x00010000) != 0)) { + output.writeMessage(17, getBenchmarkPrice()); + } + 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.GeneratedMessageV3.computeStringSize(1, reportCountryCode_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, offerId_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, title_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, brand_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, categoryL1_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, categoryL2_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, categoryL3_); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, categoryL4_); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, categoryL5_); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, productTypeL1_); + } + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, productTypeL2_); + } + if (((bitField0_ & 0x00001000) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, productTypeL3_); + } + if (((bitField0_ & 0x00002000) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, productTypeL4_); + } + if (((bitField0_ & 0x00004000) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, productTypeL5_); + } + if (((bitField0_ & 0x00008000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getPrice()); + } + if (((bitField0_ & 0x00010000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getBenchmarkPrice()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView)) { + return super.equals(obj); + } + com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView other = + (com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView) obj; + + if (hasReportCountryCode() != other.hasReportCountryCode()) return false; + if (hasReportCountryCode()) { + if (!getReportCountryCode().equals(other.getReportCountryCode())) return false; + } + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId().equals(other.getId())) return false; + } + if (hasOfferId() != other.hasOfferId()) return false; + if (hasOfferId()) { + if (!getOfferId().equals(other.getOfferId())) return false; + } + if (hasTitle() != other.hasTitle()) return false; + if (hasTitle()) { + if (!getTitle().equals(other.getTitle())) return false; + } + if (hasBrand() != other.hasBrand()) return false; + if (hasBrand()) { + if (!getBrand().equals(other.getBrand())) return false; + } + if (hasCategoryL1() != other.hasCategoryL1()) return false; + if (hasCategoryL1()) { + if (!getCategoryL1().equals(other.getCategoryL1())) return false; + } + if (hasCategoryL2() != other.hasCategoryL2()) return false; + if (hasCategoryL2()) { + if (!getCategoryL2().equals(other.getCategoryL2())) return false; + } + if (hasCategoryL3() != other.hasCategoryL3()) return false; + if (hasCategoryL3()) { + if (!getCategoryL3().equals(other.getCategoryL3())) return false; + } + if (hasCategoryL4() != other.hasCategoryL4()) return false; + if (hasCategoryL4()) { + if (!getCategoryL4().equals(other.getCategoryL4())) return false; + } + if (hasCategoryL5() != other.hasCategoryL5()) return false; + if (hasCategoryL5()) { + if (!getCategoryL5().equals(other.getCategoryL5())) return false; + } + if (hasProductTypeL1() != other.hasProductTypeL1()) return false; + if (hasProductTypeL1()) { + if (!getProductTypeL1().equals(other.getProductTypeL1())) return false; + } + if (hasProductTypeL2() != other.hasProductTypeL2()) return false; + if (hasProductTypeL2()) { + if (!getProductTypeL2().equals(other.getProductTypeL2())) return false; + } + if (hasProductTypeL3() != other.hasProductTypeL3()) return false; + if (hasProductTypeL3()) { + if (!getProductTypeL3().equals(other.getProductTypeL3())) return false; + } + if (hasProductTypeL4() != other.hasProductTypeL4()) return false; + if (hasProductTypeL4()) { + if (!getProductTypeL4().equals(other.getProductTypeL4())) return false; + } + if (hasProductTypeL5() != other.hasProductTypeL5()) return false; + if (hasProductTypeL5()) { + if (!getProductTypeL5().equals(other.getProductTypeL5())) return false; + } + if (hasPrice() != other.hasPrice()) return false; + if (hasPrice()) { + if (!getPrice().equals(other.getPrice())) return false; + } + if (hasBenchmarkPrice() != other.hasBenchmarkPrice()) return false; + if (hasBenchmarkPrice()) { + if (!getBenchmarkPrice().equals(other.getBenchmarkPrice())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasReportCountryCode()) { + hash = (37 * hash) + REPORT_COUNTRY_CODE_FIELD_NUMBER; + hash = (53 * hash) + getReportCountryCode().hashCode(); + } + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + if (hasOfferId()) { + hash = (37 * hash) + OFFER_ID_FIELD_NUMBER; + hash = (53 * hash) + getOfferId().hashCode(); + } + if (hasTitle()) { + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + } + if (hasBrand()) { + hash = (37 * hash) + BRAND_FIELD_NUMBER; + hash = (53 * hash) + getBrand().hashCode(); + } + if (hasCategoryL1()) { + hash = (37 * hash) + CATEGORY_L1_FIELD_NUMBER; + hash = (53 * hash) + getCategoryL1().hashCode(); + } + if (hasCategoryL2()) { + hash = (37 * hash) + CATEGORY_L2_FIELD_NUMBER; + hash = (53 * hash) + getCategoryL2().hashCode(); + } + if (hasCategoryL3()) { + hash = (37 * hash) + CATEGORY_L3_FIELD_NUMBER; + hash = (53 * hash) + getCategoryL3().hashCode(); + } + if (hasCategoryL4()) { + hash = (37 * hash) + CATEGORY_L4_FIELD_NUMBER; + hash = (53 * hash) + getCategoryL4().hashCode(); + } + if (hasCategoryL5()) { + hash = (37 * hash) + CATEGORY_L5_FIELD_NUMBER; + hash = (53 * hash) + getCategoryL5().hashCode(); + } + if (hasProductTypeL1()) { + hash = (37 * hash) + PRODUCT_TYPE_L1_FIELD_NUMBER; + hash = (53 * hash) + getProductTypeL1().hashCode(); + } + if (hasProductTypeL2()) { + hash = (37 * hash) + PRODUCT_TYPE_L2_FIELD_NUMBER; + hash = (53 * hash) + getProductTypeL2().hashCode(); + } + if (hasProductTypeL3()) { + hash = (37 * hash) + PRODUCT_TYPE_L3_FIELD_NUMBER; + hash = (53 * hash) + getProductTypeL3().hashCode(); + } + if (hasProductTypeL4()) { + hash = (37 * hash) + PRODUCT_TYPE_L4_FIELD_NUMBER; + hash = (53 * hash) + getProductTypeL4().hashCode(); + } + if (hasProductTypeL5()) { + hash = (37 * hash) + PRODUCT_TYPE_L5_FIELD_NUMBER; + hash = (53 * hash) + getProductTypeL5().hashCode(); + } + if (hasPrice()) { + hash = (37 * hash) + PRICE_FIELD_NUMBER; + hash = (53 * hash) + getPrice().hashCode(); + } + if (hasBenchmarkPrice()) { + hash = (37 * hash) + BENCHMARK_PRICE_FIELD_NUMBER; + hash = (53 * hash) + getBenchmarkPrice().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Fields available for query in `price_competitiveness_product_view` table.
      +   *
      +   * [Price competitiveness](https://support.google.com/merchants/answer/9626903)
      +   * report.
      +   *
      +   * Values are only set for fields requested explicitly in the request's search
      +   * query.
      +   * 
      + * + * Protobuf type {@code google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView) + com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductViewOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_PriceCompetitivenessProductView_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_PriceCompetitivenessProductView_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView.class, + com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView.Builder + .class); + } + + // Construct using + // com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPriceFieldBuilder(); + getBenchmarkPriceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + reportCountryCode_ = ""; + id_ = ""; + offerId_ = ""; + title_ = ""; + brand_ = ""; + categoryL1_ = ""; + categoryL2_ = ""; + categoryL3_ = ""; + categoryL4_ = ""; + categoryL5_ = ""; + productTypeL1_ = ""; + productTypeL2_ = ""; + productTypeL3_ = ""; + productTypeL4_ = ""; + productTypeL5_ = ""; + price_ = null; + if (priceBuilder_ != null) { + priceBuilder_.dispose(); + priceBuilder_ = null; + } + benchmarkPrice_ = null; + if (benchmarkPriceBuilder_ != null) { + benchmarkPriceBuilder_.dispose(); + benchmarkPriceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_PriceCompetitivenessProductView_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView + getDefaultInstanceForType() { + return com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView build() { + com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView + buildPartial() { + com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView result = + new com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.reportCountryCode_ = reportCountryCode_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.id_ = id_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.offerId_ = offerId_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.title_ = title_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.brand_ = brand_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.categoryL1_ = categoryL1_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.categoryL2_ = categoryL2_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.categoryL3_ = categoryL3_; + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.categoryL4_ = categoryL4_; + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.categoryL5_ = categoryL5_; + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.productTypeL1_ = productTypeL1_; + to_bitField0_ |= 0x00000400; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.productTypeL2_ = productTypeL2_; + to_bitField0_ |= 0x00000800; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.productTypeL3_ = productTypeL3_; + to_bitField0_ |= 0x00001000; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.productTypeL4_ = productTypeL4_; + to_bitField0_ |= 0x00002000; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.productTypeL5_ = productTypeL5_; + to_bitField0_ |= 0x00004000; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.price_ = priceBuilder_ == null ? price_ : priceBuilder_.build(); + to_bitField0_ |= 0x00008000; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.benchmarkPrice_ = + benchmarkPriceBuilder_ == null ? benchmarkPrice_ : benchmarkPriceBuilder_.build(); + to_bitField0_ |= 0x00010000; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView) { + return mergeFrom( + (com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView other) { + if (other + == com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView + .getDefaultInstance()) return this; + if (other.hasReportCountryCode()) { + reportCountryCode_ = other.reportCountryCode_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasId()) { + id_ = other.id_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasOfferId()) { + offerId_ = other.offerId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasTitle()) { + title_ = other.title_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasBrand()) { + brand_ = other.brand_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasCategoryL1()) { + categoryL1_ = other.categoryL1_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasCategoryL2()) { + categoryL2_ = other.categoryL2_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.hasCategoryL3()) { + categoryL3_ = other.categoryL3_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (other.hasCategoryL4()) { + categoryL4_ = other.categoryL4_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.hasCategoryL5()) { + categoryL5_ = other.categoryL5_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (other.hasProductTypeL1()) { + productTypeL1_ = other.productTypeL1_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (other.hasProductTypeL2()) { + productTypeL2_ = other.productTypeL2_; + bitField0_ |= 0x00000800; + onChanged(); + } + if (other.hasProductTypeL3()) { + productTypeL3_ = other.productTypeL3_; + bitField0_ |= 0x00001000; + onChanged(); + } + if (other.hasProductTypeL4()) { + productTypeL4_ = other.productTypeL4_; + bitField0_ |= 0x00002000; + onChanged(); + } + if (other.hasProductTypeL5()) { + productTypeL5_ = other.productTypeL5_; + bitField0_ |= 0x00004000; + onChanged(); + } + if (other.hasPrice()) { + mergePrice(other.getPrice()); + } + if (other.hasBenchmarkPrice()) { + mergeBenchmarkPrice(other.getBenchmarkPrice()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + reportCountryCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + offerId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + brand_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + categoryL1_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + categoryL2_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + categoryL3_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: + { + categoryL4_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + categoryL5_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: + { + productTypeL1_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: + { + productTypeL2_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 106: + { + productTypeL3_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 106 + case 114: + { + productTypeL4_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00002000; + break; + } // case 114 + case 122: + { + productTypeL5_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00004000; + break; + } // case 122 + case 130: + { + input.readMessage(getPriceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00008000; + break; + } // case 130 + case 138: + { + input.readMessage(getBenchmarkPriceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00010000; + break; + } // case 138 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object reportCountryCode_ = ""; + + /** + * + * + *
      +     * Country of the price benchmark. Represented in the ISO 3166 format.
      +     *
      +     * Required in the `SELECT` clause.
      +     * 
      + * + * optional string report_country_code = 1; + * + * @return Whether the reportCountryCode field is set. + */ + public boolean hasReportCountryCode() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +     * Country of the price benchmark. Represented in the ISO 3166 format.
      +     *
      +     * Required in the `SELECT` clause.
      +     * 
      + * + * optional string report_country_code = 1; + * + * @return The reportCountryCode. + */ + public java.lang.String getReportCountryCode() { + java.lang.Object ref = reportCountryCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reportCountryCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Country of the price benchmark. Represented in the ISO 3166 format.
      +     *
      +     * Required in the `SELECT` clause.
      +     * 
      + * + * optional string report_country_code = 1; + * + * @return The bytes for reportCountryCode. + */ + public com.google.protobuf.ByteString getReportCountryCodeBytes() { + java.lang.Object ref = reportCountryCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + reportCountryCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Country of the price benchmark. Represented in the ISO 3166 format.
      +     *
      +     * Required in the `SELECT` clause.
      +     * 
      + * + * optional string report_country_code = 1; + * + * @param value The reportCountryCode to set. + * @return This builder for chaining. + */ + public Builder setReportCountryCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + reportCountryCode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Country of the price benchmark. Represented in the ISO 3166 format.
      +     *
      +     * Required in the `SELECT` clause.
      +     * 
      + * + * optional string report_country_code = 1; + * + * @return This builder for chaining. + */ + public Builder clearReportCountryCode() { + reportCountryCode_ = getDefaultInstance().getReportCountryCode(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Country of the price benchmark. Represented in the ISO 3166 format.
      +     *
      +     * Required in the `SELECT` clause.
      +     * 
      + * + * optional string report_country_code = 1; + * + * @param value The bytes for reportCountryCode to set. + * @return This builder for chaining. + */ + public Builder setReportCountryCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + reportCountryCode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object id_ = ""; + + /** + * + * + *
      +     * REST ID of the product, in the form of
      +     * `channel~languageCode~feedLabel~offerId`. Can be used to join data with the
      +     * `product_view` table.
      +     *
      +     * Required in the `SELECT` clause.
      +     * 
      + * + * optional string id = 2; + * + * @return Whether the id field is set. + */ + public boolean hasId() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +     * REST ID of the product, in the form of
      +     * `channel~languageCode~feedLabel~offerId`. Can be used to join data with the
      +     * `product_view` table.
      +     *
      +     * Required in the `SELECT` clause.
      +     * 
      + * + * optional string id = 2; + * + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * REST ID of the product, in the form of
      +     * `channel~languageCode~feedLabel~offerId`. Can be used to join data with the
      +     * `product_view` table.
      +     *
      +     * Required in the `SELECT` clause.
      +     * 
      + * + * optional string id = 2; + * + * @return The bytes for id. + */ + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * REST ID of the product, in the form of
      +     * `channel~languageCode~feedLabel~offerId`. Can be used to join data with the
      +     * `product_view` table.
      +     *
      +     * Required in the `SELECT` clause.
      +     * 
      + * + * optional string id = 2; + * + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * REST ID of the product, in the form of
      +     * `channel~languageCode~feedLabel~offerId`. Can be used to join data with the
      +     * `product_view` table.
      +     *
      +     * Required in the `SELECT` clause.
      +     * 
      + * + * optional string id = 2; + * + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * REST ID of the product, in the form of
      +     * `channel~languageCode~feedLabel~offerId`. Can be used to join data with the
      +     * `product_view` table.
      +     *
      +     * Required in the `SELECT` clause.
      +     * 
      + * + * optional string id = 2; + * + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object offerId_ = ""; + + /** + * + * + *
      +     * Merchant-provided id of the product.
      +     * 
      + * + * optional string offer_id = 3; + * + * @return Whether the offerId field is set. + */ + public boolean hasOfferId() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +     * Merchant-provided id of the product.
      +     * 
      + * + * optional string offer_id = 3; + * + * @return The offerId. + */ + public java.lang.String getOfferId() { + java.lang.Object ref = offerId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + offerId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Merchant-provided id of the product.
      +     * 
      + * + * optional string offer_id = 3; + * + * @return The bytes for offerId. + */ + public com.google.protobuf.ByteString getOfferIdBytes() { + java.lang.Object ref = offerId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + offerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Merchant-provided id of the product.
      +     * 
      + * + * optional string offer_id = 3; + * + * @param value The offerId to set. + * @return This builder for chaining. + */ + public Builder setOfferId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + offerId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Merchant-provided id of the product.
      +     * 
      + * + * optional string offer_id = 3; + * + * @return This builder for chaining. + */ + public Builder clearOfferId() { + offerId_ = getDefaultInstance().getOfferId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Merchant-provided id of the product.
      +     * 
      + * + * optional string offer_id = 3; + * + * @param value The bytes for offerId to set. + * @return This builder for chaining. + */ + public Builder setOfferIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + offerId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object title_ = ""; + + /** + * + * + *
      +     * Title of the product.
      +     * 
      + * + * optional string title = 4; + * + * @return Whether the title field is set. + */ + public boolean hasTitle() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +     * Title of the product.
      +     * 
      + * + * optional string title = 4; + * + * @return The title. + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Title of the product.
      +     * 
      + * + * optional string title = 4; + * + * @return The bytes for title. + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Title of the product.
      +     * 
      + * + * optional string title = 4; + * + * @param value The title to set. + * @return This builder for chaining. + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + title_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Title of the product.
      +     * 
      + * + * optional string title = 4; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Title of the product.
      +     * 
      + * + * optional string title = 4; + * + * @param value The bytes for title to set. + * @return This builder for chaining. + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + title_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object brand_ = ""; + + /** + * + * + *
      +     * Brand of the product.
      +     * 
      + * + * optional string brand = 5; + * + * @return Whether the brand field is set. + */ + public boolean hasBrand() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
      +     * Brand of the product.
      +     * 
      + * + * optional string brand = 5; + * + * @return The brand. + */ + public java.lang.String getBrand() { + java.lang.Object ref = brand_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + brand_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Brand of the product.
      +     * 
      + * + * optional string brand = 5; + * + * @return The bytes for brand. + */ + public com.google.protobuf.ByteString getBrandBytes() { + java.lang.Object ref = brand_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + brand_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Brand of the product.
      +     * 
      + * + * optional string brand = 5; + * + * @param value The brand to set. + * @return This builder for chaining. + */ + public Builder setBrand(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + brand_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Brand of the product.
      +     * 
      + * + * optional string brand = 5; + * + * @return This builder for chaining. + */ + public Builder clearBrand() { + brand_ = getDefaultInstance().getBrand(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Brand of the product.
      +     * 
      + * + * optional string brand = 5; + * + * @param value The bytes for brand to set. + * @return This builder for chaining. + */ + public Builder setBrandBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + brand_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object categoryL1_ = ""; + + /** + * + * + *
      +     * Product category (1st level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l1 = 6; + * + * @return Whether the categoryL1 field is set. + */ + public boolean hasCategoryL1() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
      +     * Product category (1st level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l1 = 6; + * + * @return The categoryL1. + */ + public java.lang.String getCategoryL1() { + java.lang.Object ref = categoryL1_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + categoryL1_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Product category (1st level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l1 = 6; + * + * @return The bytes for categoryL1. + */ + public com.google.protobuf.ByteString getCategoryL1Bytes() { + java.lang.Object ref = categoryL1_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + categoryL1_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Product category (1st level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l1 = 6; + * + * @param value The categoryL1 to set. + * @return This builder for chaining. + */ + public Builder setCategoryL1(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + categoryL1_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product category (1st level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l1 = 6; + * + * @return This builder for chaining. + */ + public Builder clearCategoryL1() { + categoryL1_ = getDefaultInstance().getCategoryL1(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product category (1st level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l1 = 6; + * + * @param value The bytes for categoryL1 to set. + * @return This builder for chaining. + */ + public Builder setCategoryL1Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + categoryL1_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object categoryL2_ = ""; + + /** + * + * + *
      +     * Product category (2nd level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l2 = 7; + * + * @return Whether the categoryL2 field is set. + */ + public boolean hasCategoryL2() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
      +     * Product category (2nd level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l2 = 7; + * + * @return The categoryL2. + */ + public java.lang.String getCategoryL2() { + java.lang.Object ref = categoryL2_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + categoryL2_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Product category (2nd level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l2 = 7; + * + * @return The bytes for categoryL2. + */ + public com.google.protobuf.ByteString getCategoryL2Bytes() { + java.lang.Object ref = categoryL2_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + categoryL2_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Product category (2nd level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l2 = 7; + * + * @param value The categoryL2 to set. + * @return This builder for chaining. + */ + public Builder setCategoryL2(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + categoryL2_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product category (2nd level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l2 = 7; + * + * @return This builder for chaining. + */ + public Builder clearCategoryL2() { + categoryL2_ = getDefaultInstance().getCategoryL2(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product category (2nd level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l2 = 7; + * + * @param value The bytes for categoryL2 to set. + * @return This builder for chaining. + */ + public Builder setCategoryL2Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + categoryL2_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object categoryL3_ = ""; + + /** + * + * + *
      +     * Product category (3rd level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l3 = 8; + * + * @return Whether the categoryL3 field is set. + */ + public boolean hasCategoryL3() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
      +     * Product category (3rd level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l3 = 8; + * + * @return The categoryL3. + */ + public java.lang.String getCategoryL3() { + java.lang.Object ref = categoryL3_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + categoryL3_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Product category (3rd level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l3 = 8; + * + * @return The bytes for categoryL3. + */ + public com.google.protobuf.ByteString getCategoryL3Bytes() { + java.lang.Object ref = categoryL3_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + categoryL3_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Product category (3rd level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l3 = 8; + * + * @param value The categoryL3 to set. + * @return This builder for chaining. + */ + public Builder setCategoryL3(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + categoryL3_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product category (3rd level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l3 = 8; + * + * @return This builder for chaining. + */ + public Builder clearCategoryL3() { + categoryL3_ = getDefaultInstance().getCategoryL3(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product category (3rd level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l3 = 8; + * + * @param value The bytes for categoryL3 to set. + * @return This builder for chaining. + */ + public Builder setCategoryL3Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + categoryL3_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object categoryL4_ = ""; + + /** + * + * + *
      +     * Product category (4th level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l4 = 9; + * + * @return Whether the categoryL4 field is set. + */ + public boolean hasCategoryL4() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
      +     * Product category (4th level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l4 = 9; + * + * @return The categoryL4. + */ + public java.lang.String getCategoryL4() { + java.lang.Object ref = categoryL4_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + categoryL4_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Product category (4th level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l4 = 9; + * + * @return The bytes for categoryL4. + */ + public com.google.protobuf.ByteString getCategoryL4Bytes() { + java.lang.Object ref = categoryL4_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + categoryL4_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Product category (4th level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l4 = 9; + * + * @param value The categoryL4 to set. + * @return This builder for chaining. + */ + public Builder setCategoryL4(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + categoryL4_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product category (4th level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l4 = 9; + * + * @return This builder for chaining. + */ + public Builder clearCategoryL4() { + categoryL4_ = getDefaultInstance().getCategoryL4(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product category (4th level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l4 = 9; + * + * @param value The bytes for categoryL4 to set. + * @return This builder for chaining. + */ + public Builder setCategoryL4Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + categoryL4_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private java.lang.Object categoryL5_ = ""; + + /** + * + * + *
      +     * Product category (5th level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l5 = 10; + * + * @return Whether the categoryL5 field is set. + */ + public boolean hasCategoryL5() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
      +     * Product category (5th level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l5 = 10; + * + * @return The categoryL5. + */ + public java.lang.String getCategoryL5() { + java.lang.Object ref = categoryL5_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + categoryL5_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Product category (5th level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l5 = 10; + * + * @return The bytes for categoryL5. + */ + public com.google.protobuf.ByteString getCategoryL5Bytes() { + java.lang.Object ref = categoryL5_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + categoryL5_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Product category (5th level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l5 = 10; + * + * @param value The categoryL5 to set. + * @return This builder for chaining. + */ + public Builder setCategoryL5(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + categoryL5_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product category (5th level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l5 = 10; + * + * @return This builder for chaining. + */ + public Builder clearCategoryL5() { + categoryL5_ = getDefaultInstance().getCategoryL5(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product category (5th level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l5 = 10; + * + * @param value The bytes for categoryL5 to set. + * @return This builder for chaining. + */ + public Builder setCategoryL5Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + categoryL5_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private java.lang.Object productTypeL1_ = ""; + + /** + * + * + *
      +     * Product type (1st level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l1 = 11; + * + * @return Whether the productTypeL1 field is set. + */ + public boolean hasProductTypeL1() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
      +     * Product type (1st level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l1 = 11; + * + * @return The productTypeL1. + */ + public java.lang.String getProductTypeL1() { + java.lang.Object ref = productTypeL1_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + productTypeL1_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Product type (1st level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l1 = 11; + * + * @return The bytes for productTypeL1. + */ + public com.google.protobuf.ByteString getProductTypeL1Bytes() { + java.lang.Object ref = productTypeL1_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + productTypeL1_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Product type (1st level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l1 = 11; + * + * @param value The productTypeL1 to set. + * @return This builder for chaining. + */ + public Builder setProductTypeL1(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + productTypeL1_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product type (1st level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l1 = 11; + * + * @return This builder for chaining. + */ + public Builder clearProductTypeL1() { + productTypeL1_ = getDefaultInstance().getProductTypeL1(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product type (1st level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l1 = 11; + * + * @param value The bytes for productTypeL1 to set. + * @return This builder for chaining. + */ + public Builder setProductTypeL1Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + productTypeL1_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + private java.lang.Object productTypeL2_ = ""; + + /** + * + * + *
      +     * Product type (2nd level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l2 = 12; + * + * @return Whether the productTypeL2 field is set. + */ + public boolean hasProductTypeL2() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
      +     * Product type (2nd level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l2 = 12; + * + * @return The productTypeL2. + */ + public java.lang.String getProductTypeL2() { + java.lang.Object ref = productTypeL2_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + productTypeL2_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Product type (2nd level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l2 = 12; + * + * @return The bytes for productTypeL2. + */ + public com.google.protobuf.ByteString getProductTypeL2Bytes() { + java.lang.Object ref = productTypeL2_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + productTypeL2_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Product type (2nd level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l2 = 12; + * + * @param value The productTypeL2 to set. + * @return This builder for chaining. + */ + public Builder setProductTypeL2(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + productTypeL2_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product type (2nd level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l2 = 12; + * + * @return This builder for chaining. + */ + public Builder clearProductTypeL2() { + productTypeL2_ = getDefaultInstance().getProductTypeL2(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product type (2nd level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l2 = 12; + * + * @param value The bytes for productTypeL2 to set. + * @return This builder for chaining. + */ + public Builder setProductTypeL2Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + productTypeL2_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + private java.lang.Object productTypeL3_ = ""; + + /** + * + * + *
      +     * Product type (3rd level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l3 = 13; + * + * @return Whether the productTypeL3 field is set. + */ + public boolean hasProductTypeL3() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
      +     * Product type (3rd level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l3 = 13; + * + * @return The productTypeL3. + */ + public java.lang.String getProductTypeL3() { + java.lang.Object ref = productTypeL3_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + productTypeL3_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Product type (3rd level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l3 = 13; + * + * @return The bytes for productTypeL3. + */ + public com.google.protobuf.ByteString getProductTypeL3Bytes() { + java.lang.Object ref = productTypeL3_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + productTypeL3_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Product type (3rd level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l3 = 13; + * + * @param value The productTypeL3 to set. + * @return This builder for chaining. + */ + public Builder setProductTypeL3(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + productTypeL3_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product type (3rd level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l3 = 13; + * + * @return This builder for chaining. + */ + public Builder clearProductTypeL3() { + productTypeL3_ = getDefaultInstance().getProductTypeL3(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product type (3rd level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l3 = 13; + * + * @param value The bytes for productTypeL3 to set. + * @return This builder for chaining. + */ + public Builder setProductTypeL3Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + productTypeL3_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + private java.lang.Object productTypeL4_ = ""; + + /** + * + * + *
      +     * Product type (4th level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l4 = 14; + * + * @return Whether the productTypeL4 field is set. + */ + public boolean hasProductTypeL4() { + return ((bitField0_ & 0x00002000) != 0); + } + + /** + * + * + *
      +     * Product type (4th level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l4 = 14; + * + * @return The productTypeL4. + */ + public java.lang.String getProductTypeL4() { + java.lang.Object ref = productTypeL4_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + productTypeL4_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Product type (4th level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l4 = 14; + * + * @return The bytes for productTypeL4. + */ + public com.google.protobuf.ByteString getProductTypeL4Bytes() { + java.lang.Object ref = productTypeL4_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + productTypeL4_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Product type (4th level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l4 = 14; + * + * @param value The productTypeL4 to set. + * @return This builder for chaining. + */ + public Builder setProductTypeL4(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + productTypeL4_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product type (4th level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l4 = 14; + * + * @return This builder for chaining. + */ + public Builder clearProductTypeL4() { + productTypeL4_ = getDefaultInstance().getProductTypeL4(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product type (4th level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l4 = 14; + * + * @param value The bytes for productTypeL4 to set. + * @return This builder for chaining. + */ + public Builder setProductTypeL4Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + productTypeL4_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + private java.lang.Object productTypeL5_ = ""; + + /** + * + * + *
      +     * Product type (5th level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l5 = 15; + * + * @return Whether the productTypeL5 field is set. + */ + public boolean hasProductTypeL5() { + return ((bitField0_ & 0x00004000) != 0); + } + + /** + * + * + *
      +     * Product type (5th level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l5 = 15; + * + * @return The productTypeL5. + */ + public java.lang.String getProductTypeL5() { + java.lang.Object ref = productTypeL5_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + productTypeL5_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Product type (5th level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l5 = 15; + * + * @return The bytes for productTypeL5. + */ + public com.google.protobuf.ByteString getProductTypeL5Bytes() { + java.lang.Object ref = productTypeL5_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + productTypeL5_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Product type (5th level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l5 = 15; + * + * @param value The productTypeL5 to set. + * @return This builder for chaining. + */ + public Builder setProductTypeL5(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + productTypeL5_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product type (5th level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l5 = 15; + * + * @return This builder for chaining. + */ + public Builder clearProductTypeL5() { + productTypeL5_ = getDefaultInstance().getProductTypeL5(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product type (5th level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l5 = 15; + * + * @param value The bytes for productTypeL5 to set. + * @return This builder for chaining. + */ + public Builder setProductTypeL5Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + productTypeL5_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + private com.google.shopping.type.Price price_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> + priceBuilder_; + + /** + * + * + *
      +     * Current price of the product.
      +     * 
      + * + * .google.shopping.type.Price price = 16; + * + * @return Whether the price field is set. + */ + public boolean hasPrice() { + return ((bitField0_ & 0x00008000) != 0); + } + + /** + * + * + *
      +     * Current price of the product.
      +     * 
      + * + * .google.shopping.type.Price price = 16; + * + * @return The price. + */ + public com.google.shopping.type.Price getPrice() { + if (priceBuilder_ == null) { + return price_ == null ? com.google.shopping.type.Price.getDefaultInstance() : price_; + } else { + return priceBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Current price of the product.
      +     * 
      + * + * .google.shopping.type.Price price = 16; + */ + public Builder setPrice(com.google.shopping.type.Price value) { + if (priceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + price_ = value; + } else { + priceBuilder_.setMessage(value); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Current price of the product.
      +     * 
      + * + * .google.shopping.type.Price price = 16; + */ + public Builder setPrice(com.google.shopping.type.Price.Builder builderForValue) { + if (priceBuilder_ == null) { + price_ = builderForValue.build(); + } else { + priceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Current price of the product.
      +     * 
      + * + * .google.shopping.type.Price price = 16; + */ + public Builder mergePrice(com.google.shopping.type.Price value) { + if (priceBuilder_ == null) { + if (((bitField0_ & 0x00008000) != 0) + && price_ != null + && price_ != com.google.shopping.type.Price.getDefaultInstance()) { + getPriceBuilder().mergeFrom(value); + } else { + price_ = value; + } + } else { + priceBuilder_.mergeFrom(value); + } + if (price_ != null) { + bitField0_ |= 0x00008000; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Current price of the product.
      +     * 
      + * + * .google.shopping.type.Price price = 16; + */ + public Builder clearPrice() { + bitField0_ = (bitField0_ & ~0x00008000); + price_ = null; + if (priceBuilder_ != null) { + priceBuilder_.dispose(); + priceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Current price of the product.
      +     * 
      + * + * .google.shopping.type.Price price = 16; + */ + public com.google.shopping.type.Price.Builder getPriceBuilder() { + bitField0_ |= 0x00008000; + onChanged(); + return getPriceFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Current price of the product.
      +     * 
      + * + * .google.shopping.type.Price price = 16; + */ + public com.google.shopping.type.PriceOrBuilder getPriceOrBuilder() { + if (priceBuilder_ != null) { + return priceBuilder_.getMessageOrBuilder(); + } else { + return price_ == null ? com.google.shopping.type.Price.getDefaultInstance() : price_; + } + } + + /** + * + * + *
      +     * Current price of the product.
      +     * 
      + * + * .google.shopping.type.Price price = 16; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> + getPriceFieldBuilder() { + if (priceBuilder_ == null) { + priceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder>( + getPrice(), getParentForChildren(), isClean()); + price_ = null; + } + return priceBuilder_; + } + + private com.google.shopping.type.Price benchmarkPrice_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> + benchmarkPriceBuilder_; + + /** + * + * + *
      +     * Latest available price benchmark for the product's catalog in the benchmark
      +     * country.
      +     * 
      + * + * .google.shopping.type.Price benchmark_price = 17; + * + * @return Whether the benchmarkPrice field is set. + */ + public boolean hasBenchmarkPrice() { + return ((bitField0_ & 0x00010000) != 0); + } + + /** + * + * + *
      +     * Latest available price benchmark for the product's catalog in the benchmark
      +     * country.
      +     * 
      + * + * .google.shopping.type.Price benchmark_price = 17; + * + * @return The benchmarkPrice. + */ + public com.google.shopping.type.Price getBenchmarkPrice() { + if (benchmarkPriceBuilder_ == null) { + return benchmarkPrice_ == null + ? com.google.shopping.type.Price.getDefaultInstance() + : benchmarkPrice_; + } else { + return benchmarkPriceBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Latest available price benchmark for the product's catalog in the benchmark
      +     * country.
      +     * 
      + * + * .google.shopping.type.Price benchmark_price = 17; + */ + public Builder setBenchmarkPrice(com.google.shopping.type.Price value) { + if (benchmarkPriceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + benchmarkPrice_ = value; + } else { + benchmarkPriceBuilder_.setMessage(value); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Latest available price benchmark for the product's catalog in the benchmark
      +     * country.
      +     * 
      + * + * .google.shopping.type.Price benchmark_price = 17; + */ + public Builder setBenchmarkPrice(com.google.shopping.type.Price.Builder builderForValue) { + if (benchmarkPriceBuilder_ == null) { + benchmarkPrice_ = builderForValue.build(); + } else { + benchmarkPriceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Latest available price benchmark for the product's catalog in the benchmark
      +     * country.
      +     * 
      + * + * .google.shopping.type.Price benchmark_price = 17; + */ + public Builder mergeBenchmarkPrice(com.google.shopping.type.Price value) { + if (benchmarkPriceBuilder_ == null) { + if (((bitField0_ & 0x00010000) != 0) + && benchmarkPrice_ != null + && benchmarkPrice_ != com.google.shopping.type.Price.getDefaultInstance()) { + getBenchmarkPriceBuilder().mergeFrom(value); + } else { + benchmarkPrice_ = value; + } + } else { + benchmarkPriceBuilder_.mergeFrom(value); + } + if (benchmarkPrice_ != null) { + bitField0_ |= 0x00010000; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Latest available price benchmark for the product's catalog in the benchmark
      +     * country.
      +     * 
      + * + * .google.shopping.type.Price benchmark_price = 17; + */ + public Builder clearBenchmarkPrice() { + bitField0_ = (bitField0_ & ~0x00010000); + benchmarkPrice_ = null; + if (benchmarkPriceBuilder_ != null) { + benchmarkPriceBuilder_.dispose(); + benchmarkPriceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Latest available price benchmark for the product's catalog in the benchmark
      +     * country.
      +     * 
      + * + * .google.shopping.type.Price benchmark_price = 17; + */ + public com.google.shopping.type.Price.Builder getBenchmarkPriceBuilder() { + bitField0_ |= 0x00010000; + onChanged(); + return getBenchmarkPriceFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Latest available price benchmark for the product's catalog in the benchmark
      +     * country.
      +     * 
      + * + * .google.shopping.type.Price benchmark_price = 17; + */ + public com.google.shopping.type.PriceOrBuilder getBenchmarkPriceOrBuilder() { + if (benchmarkPriceBuilder_ != null) { + return benchmarkPriceBuilder_.getMessageOrBuilder(); + } else { + return benchmarkPrice_ == null + ? com.google.shopping.type.Price.getDefaultInstance() + : benchmarkPrice_; + } + } + + /** + * + * + *
      +     * Latest available price benchmark for the product's catalog in the benchmark
      +     * country.
      +     * 
      + * + * .google.shopping.type.Price benchmark_price = 17; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> + getBenchmarkPriceFieldBuilder() { + if (benchmarkPriceBuilder_ == null) { + benchmarkPriceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder>( + getBenchmarkPrice(), getParentForChildren(), isClean()); + benchmarkPrice_ = null; + } + return benchmarkPriceBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView) + private static final com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView(); + } + + public static com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PriceCompetitivenessProductView parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/PriceCompetitivenessProductViewOrBuilder.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/PriceCompetitivenessProductViewOrBuilder.java new file mode 100644 index 000000000000..a27baead8bdd --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/PriceCompetitivenessProductViewOrBuilder.java @@ -0,0 +1,736 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/reports/v1alpha/reports.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.reports.v1alpha; + +public interface PriceCompetitivenessProductViewOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Country of the price benchmark. Represented in the ISO 3166 format.
      +   *
      +   * Required in the `SELECT` clause.
      +   * 
      + * + * optional string report_country_code = 1; + * + * @return Whether the reportCountryCode field is set. + */ + boolean hasReportCountryCode(); + + /** + * + * + *
      +   * Country of the price benchmark. Represented in the ISO 3166 format.
      +   *
      +   * Required in the `SELECT` clause.
      +   * 
      + * + * optional string report_country_code = 1; + * + * @return The reportCountryCode. + */ + java.lang.String getReportCountryCode(); + + /** + * + * + *
      +   * Country of the price benchmark. Represented in the ISO 3166 format.
      +   *
      +   * Required in the `SELECT` clause.
      +   * 
      + * + * optional string report_country_code = 1; + * + * @return The bytes for reportCountryCode. + */ + com.google.protobuf.ByteString getReportCountryCodeBytes(); + + /** + * + * + *
      +   * REST ID of the product, in the form of
      +   * `channel~languageCode~feedLabel~offerId`. Can be used to join data with the
      +   * `product_view` table.
      +   *
      +   * Required in the `SELECT` clause.
      +   * 
      + * + * optional string id = 2; + * + * @return Whether the id field is set. + */ + boolean hasId(); + + /** + * + * + *
      +   * REST ID of the product, in the form of
      +   * `channel~languageCode~feedLabel~offerId`. Can be used to join data with the
      +   * `product_view` table.
      +   *
      +   * Required in the `SELECT` clause.
      +   * 
      + * + * optional string id = 2; + * + * @return The id. + */ + java.lang.String getId(); + + /** + * + * + *
      +   * REST ID of the product, in the form of
      +   * `channel~languageCode~feedLabel~offerId`. Can be used to join data with the
      +   * `product_view` table.
      +   *
      +   * Required in the `SELECT` clause.
      +   * 
      + * + * optional string id = 2; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
      +   * Merchant-provided id of the product.
      +   * 
      + * + * optional string offer_id = 3; + * + * @return Whether the offerId field is set. + */ + boolean hasOfferId(); + + /** + * + * + *
      +   * Merchant-provided id of the product.
      +   * 
      + * + * optional string offer_id = 3; + * + * @return The offerId. + */ + java.lang.String getOfferId(); + + /** + * + * + *
      +   * Merchant-provided id of the product.
      +   * 
      + * + * optional string offer_id = 3; + * + * @return The bytes for offerId. + */ + com.google.protobuf.ByteString getOfferIdBytes(); + + /** + * + * + *
      +   * Title of the product.
      +   * 
      + * + * optional string title = 4; + * + * @return Whether the title field is set. + */ + boolean hasTitle(); + + /** + * + * + *
      +   * Title of the product.
      +   * 
      + * + * optional string title = 4; + * + * @return The title. + */ + java.lang.String getTitle(); + + /** + * + * + *
      +   * Title of the product.
      +   * 
      + * + * optional string title = 4; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
      +   * Brand of the product.
      +   * 
      + * + * optional string brand = 5; + * + * @return Whether the brand field is set. + */ + boolean hasBrand(); + + /** + * + * + *
      +   * Brand of the product.
      +   * 
      + * + * optional string brand = 5; + * + * @return The brand. + */ + java.lang.String getBrand(); + + /** + * + * + *
      +   * Brand of the product.
      +   * 
      + * + * optional string brand = 5; + * + * @return The bytes for brand. + */ + com.google.protobuf.ByteString getBrandBytes(); + + /** + * + * + *
      +   * Product category (1st level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l1 = 6; + * + * @return Whether the categoryL1 field is set. + */ + boolean hasCategoryL1(); + + /** + * + * + *
      +   * Product category (1st level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l1 = 6; + * + * @return The categoryL1. + */ + java.lang.String getCategoryL1(); + + /** + * + * + *
      +   * Product category (1st level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l1 = 6; + * + * @return The bytes for categoryL1. + */ + com.google.protobuf.ByteString getCategoryL1Bytes(); + + /** + * + * + *
      +   * Product category (2nd level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l2 = 7; + * + * @return Whether the categoryL2 field is set. + */ + boolean hasCategoryL2(); + + /** + * + * + *
      +   * Product category (2nd level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l2 = 7; + * + * @return The categoryL2. + */ + java.lang.String getCategoryL2(); + + /** + * + * + *
      +   * Product category (2nd level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l2 = 7; + * + * @return The bytes for categoryL2. + */ + com.google.protobuf.ByteString getCategoryL2Bytes(); + + /** + * + * + *
      +   * Product category (3rd level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l3 = 8; + * + * @return Whether the categoryL3 field is set. + */ + boolean hasCategoryL3(); + + /** + * + * + *
      +   * Product category (3rd level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l3 = 8; + * + * @return The categoryL3. + */ + java.lang.String getCategoryL3(); + + /** + * + * + *
      +   * Product category (3rd level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l3 = 8; + * + * @return The bytes for categoryL3. + */ + com.google.protobuf.ByteString getCategoryL3Bytes(); + + /** + * + * + *
      +   * Product category (4th level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l4 = 9; + * + * @return Whether the categoryL4 field is set. + */ + boolean hasCategoryL4(); + + /** + * + * + *
      +   * Product category (4th level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l4 = 9; + * + * @return The categoryL4. + */ + java.lang.String getCategoryL4(); + + /** + * + * + *
      +   * Product category (4th level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l4 = 9; + * + * @return The bytes for categoryL4. + */ + com.google.protobuf.ByteString getCategoryL4Bytes(); + + /** + * + * + *
      +   * Product category (5th level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l5 = 10; + * + * @return Whether the categoryL5 field is set. + */ + boolean hasCategoryL5(); + + /** + * + * + *
      +   * Product category (5th level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l5 = 10; + * + * @return The categoryL5. + */ + java.lang.String getCategoryL5(); + + /** + * + * + *
      +   * Product category (5th level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l5 = 10; + * + * @return The bytes for categoryL5. + */ + com.google.protobuf.ByteString getCategoryL5Bytes(); + + /** + * + * + *
      +   * Product type (1st level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l1 = 11; + * + * @return Whether the productTypeL1 field is set. + */ + boolean hasProductTypeL1(); + + /** + * + * + *
      +   * Product type (1st level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l1 = 11; + * + * @return The productTypeL1. + */ + java.lang.String getProductTypeL1(); + + /** + * + * + *
      +   * Product type (1st level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l1 = 11; + * + * @return The bytes for productTypeL1. + */ + com.google.protobuf.ByteString getProductTypeL1Bytes(); + + /** + * + * + *
      +   * Product type (2nd level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l2 = 12; + * + * @return Whether the productTypeL2 field is set. + */ + boolean hasProductTypeL2(); + + /** + * + * + *
      +   * Product type (2nd level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l2 = 12; + * + * @return The productTypeL2. + */ + java.lang.String getProductTypeL2(); + + /** + * + * + *
      +   * Product type (2nd level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l2 = 12; + * + * @return The bytes for productTypeL2. + */ + com.google.protobuf.ByteString getProductTypeL2Bytes(); + + /** + * + * + *
      +   * Product type (3rd level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l3 = 13; + * + * @return Whether the productTypeL3 field is set. + */ + boolean hasProductTypeL3(); + + /** + * + * + *
      +   * Product type (3rd level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l3 = 13; + * + * @return The productTypeL3. + */ + java.lang.String getProductTypeL3(); + + /** + * + * + *
      +   * Product type (3rd level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l3 = 13; + * + * @return The bytes for productTypeL3. + */ + com.google.protobuf.ByteString getProductTypeL3Bytes(); + + /** + * + * + *
      +   * Product type (4th level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l4 = 14; + * + * @return Whether the productTypeL4 field is set. + */ + boolean hasProductTypeL4(); + + /** + * + * + *
      +   * Product type (4th level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l4 = 14; + * + * @return The productTypeL4. + */ + java.lang.String getProductTypeL4(); + + /** + * + * + *
      +   * Product type (4th level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l4 = 14; + * + * @return The bytes for productTypeL4. + */ + com.google.protobuf.ByteString getProductTypeL4Bytes(); + + /** + * + * + *
      +   * Product type (5th level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l5 = 15; + * + * @return Whether the productTypeL5 field is set. + */ + boolean hasProductTypeL5(); + + /** + * + * + *
      +   * Product type (5th level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l5 = 15; + * + * @return The productTypeL5. + */ + java.lang.String getProductTypeL5(); + + /** + * + * + *
      +   * Product type (5th level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l5 = 15; + * + * @return The bytes for productTypeL5. + */ + com.google.protobuf.ByteString getProductTypeL5Bytes(); + + /** + * + * + *
      +   * Current price of the product.
      +   * 
      + * + * .google.shopping.type.Price price = 16; + * + * @return Whether the price field is set. + */ + boolean hasPrice(); + + /** + * + * + *
      +   * Current price of the product.
      +   * 
      + * + * .google.shopping.type.Price price = 16; + * + * @return The price. + */ + com.google.shopping.type.Price getPrice(); + + /** + * + * + *
      +   * Current price of the product.
      +   * 
      + * + * .google.shopping.type.Price price = 16; + */ + com.google.shopping.type.PriceOrBuilder getPriceOrBuilder(); + + /** + * + * + *
      +   * Latest available price benchmark for the product's catalog in the benchmark
      +   * country.
      +   * 
      + * + * .google.shopping.type.Price benchmark_price = 17; + * + * @return Whether the benchmarkPrice field is set. + */ + boolean hasBenchmarkPrice(); + + /** + * + * + *
      +   * Latest available price benchmark for the product's catalog in the benchmark
      +   * country.
      +   * 
      + * + * .google.shopping.type.Price benchmark_price = 17; + * + * @return The benchmarkPrice. + */ + com.google.shopping.type.Price getBenchmarkPrice(); + + /** + * + * + *
      +   * Latest available price benchmark for the product's catalog in the benchmark
      +   * country.
      +   * 
      + * + * .google.shopping.type.Price benchmark_price = 17; + */ + com.google.shopping.type.PriceOrBuilder getBenchmarkPriceOrBuilder(); +} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/PriceInsightsProductView.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/PriceInsightsProductView.java new file mode 100644 index 000000000000..8e98ee223565 --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/PriceInsightsProductView.java @@ -0,0 +1,5165 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/reports/v1alpha/reports.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.reports.v1alpha; + +/** + * + * + *
      + * Fields available for query in `price_insights_product_view` table.
      + *
      + * [Price insights](https://support.google.com/merchants/answer/11916926)
      + * report.
      + *
      + * Values are only set for fields requested explicitly in the request's search
      + * query.
      + * 
      + * + * Protobuf type {@code google.shopping.merchant.reports.v1alpha.PriceInsightsProductView} + */ +public final class PriceInsightsProductView extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.reports.v1alpha.PriceInsightsProductView) + PriceInsightsProductViewOrBuilder { + private static final long serialVersionUID = 0L; + + // Use PriceInsightsProductView.newBuilder() to construct. + private PriceInsightsProductView(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PriceInsightsProductView() { + id_ = ""; + offerId_ = ""; + title_ = ""; + brand_ = ""; + categoryL1_ = ""; + categoryL2_ = ""; + categoryL3_ = ""; + categoryL4_ = ""; + categoryL5_ = ""; + productTypeL1_ = ""; + productTypeL2_ = ""; + productTypeL3_ = ""; + productTypeL4_ = ""; + productTypeL5_ = ""; + effectiveness_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PriceInsightsProductView(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_PriceInsightsProductView_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_PriceInsightsProductView_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView.class, + com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView.Builder.class); + } + + /** + * + * + *
      +   * Predicted effectiveness bucket.
      +   *
      +   * Effectiveness indicates which products would benefit most from price
      +   * changes. This rating takes into consideration the performance boost
      +   * predicted by adjusting the sale price and the difference between your
      +   * current price and the suggested price. Price suggestions with `HIGH`
      +   * effectiveness are predicted to drive the largest increase in performance.
      +   * 
      + * + * Protobuf enum {@code + * google.shopping.merchant.reports.v1alpha.PriceInsightsProductView.Effectiveness} + */ + public enum Effectiveness implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +     * Effectiveness is unknown.
      +     * 
      + * + * EFFECTIVENESS_UNSPECIFIED = 0; + */ + EFFECTIVENESS_UNSPECIFIED(0), + /** + * + * + *
      +     * Effectiveness is low.
      +     * 
      + * + * LOW = 1; + */ + LOW(1), + /** + * + * + *
      +     * Effectiveness is medium.
      +     * 
      + * + * MEDIUM = 2; + */ + MEDIUM(2), + /** + * + * + *
      +     * Effectiveness is high.
      +     * 
      + * + * HIGH = 3; + */ + HIGH(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
      +     * Effectiveness is unknown.
      +     * 
      + * + * EFFECTIVENESS_UNSPECIFIED = 0; + */ + public static final int EFFECTIVENESS_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +     * Effectiveness is low.
      +     * 
      + * + * LOW = 1; + */ + public static final int LOW_VALUE = 1; + + /** + * + * + *
      +     * Effectiveness is medium.
      +     * 
      + * + * MEDIUM = 2; + */ + public static final int MEDIUM_VALUE = 2; + + /** + * + * + *
      +     * Effectiveness is high.
      +     * 
      + * + * HIGH = 3; + */ + public static final int HIGH_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Effectiveness 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 Effectiveness forNumber(int value) { + switch (value) { + case 0: + return EFFECTIVENESS_UNSPECIFIED; + case 1: + return LOW; + case 2: + return MEDIUM; + case 3: + return HIGH; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Effectiveness findValueByNumber(int number) { + return Effectiveness.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Effectiveness[] VALUES = values(); + + public static Effectiveness 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 Effectiveness(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.shopping.merchant.reports.v1alpha.PriceInsightsProductView.Effectiveness) + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + + /** + * + * + *
      +   * REST ID of the product, in the form of
      +   * `channel~languageCode~feedLabel~offerId`. Can be used to join data with the
      +   * `product_view` table.
      +   *
      +   * Required in the `SELECT` clause.
      +   * 
      + * + * optional string id = 1; + * + * @return Whether the id field is set. + */ + @java.lang.Override + public boolean hasId() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * REST ID of the product, in the form of
      +   * `channel~languageCode~feedLabel~offerId`. Can be used to join data with the
      +   * `product_view` table.
      +   *
      +   * Required in the `SELECT` clause.
      +   * 
      + * + * optional string id = 1; + * + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + + /** + * + * + *
      +   * REST ID of the product, in the form of
      +   * `channel~languageCode~feedLabel~offerId`. Can be used to join data with the
      +   * `product_view` table.
      +   *
      +   * Required in the `SELECT` clause.
      +   * 
      + * + * optional string id = 1; + * + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OFFER_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object offerId_ = ""; + + /** + * + * + *
      +   * Merchant-provided id of the product.
      +   * 
      + * + * optional string offer_id = 2; + * + * @return Whether the offerId field is set. + */ + @java.lang.Override + public boolean hasOfferId() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * Merchant-provided id of the product.
      +   * 
      + * + * optional string offer_id = 2; + * + * @return The offerId. + */ + @java.lang.Override + public java.lang.String getOfferId() { + java.lang.Object ref = offerId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + offerId_ = s; + return s; + } + } + + /** + * + * + *
      +   * Merchant-provided id of the product.
      +   * 
      + * + * optional string offer_id = 2; + * + * @return The bytes for offerId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOfferIdBytes() { + java.lang.Object ref = offerId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + offerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TITLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + + /** + * + * + *
      +   * Title of the product.
      +   * 
      + * + * optional string title = 3; + * + * @return Whether the title field is set. + */ + @java.lang.Override + public boolean hasTitle() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +   * Title of the product.
      +   * 
      + * + * optional string title = 3; + * + * @return The title. + */ + @java.lang.Override + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } + } + + /** + * + * + *
      +   * Title of the product.
      +   * 
      + * + * optional string title = 3; + * + * @return The bytes for title. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BRAND_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object brand_ = ""; + + /** + * + * + *
      +   * Brand of the product.
      +   * 
      + * + * optional string brand = 4; + * + * @return Whether the brand field is set. + */ + @java.lang.Override + public boolean hasBrand() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +   * Brand of the product.
      +   * 
      + * + * optional string brand = 4; + * + * @return The brand. + */ + @java.lang.Override + public java.lang.String getBrand() { + java.lang.Object ref = brand_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + brand_ = s; + return s; + } + } + + /** + * + * + *
      +   * Brand of the product.
      +   * 
      + * + * optional string brand = 4; + * + * @return The bytes for brand. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBrandBytes() { + java.lang.Object ref = brand_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + brand_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CATEGORY_L1_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object categoryL1_ = ""; + + /** + * + * + *
      +   * Product category (1st level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l1 = 5; + * + * @return Whether the categoryL1 field is set. + */ + @java.lang.Override + public boolean hasCategoryL1() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
      +   * Product category (1st level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l1 = 5; + * + * @return The categoryL1. + */ + @java.lang.Override + public java.lang.String getCategoryL1() { + java.lang.Object ref = categoryL1_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + categoryL1_ = s; + return s; + } + } + + /** + * + * + *
      +   * Product category (1st level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l1 = 5; + * + * @return The bytes for categoryL1. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCategoryL1Bytes() { + java.lang.Object ref = categoryL1_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + categoryL1_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CATEGORY_L2_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object categoryL2_ = ""; + + /** + * + * + *
      +   * Product category (2nd level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l2 = 6; + * + * @return Whether the categoryL2 field is set. + */ + @java.lang.Override + public boolean hasCategoryL2() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
      +   * Product category (2nd level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l2 = 6; + * + * @return The categoryL2. + */ + @java.lang.Override + public java.lang.String getCategoryL2() { + java.lang.Object ref = categoryL2_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + categoryL2_ = s; + return s; + } + } + + /** + * + * + *
      +   * Product category (2nd level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l2 = 6; + * + * @return The bytes for categoryL2. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCategoryL2Bytes() { + java.lang.Object ref = categoryL2_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + categoryL2_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CATEGORY_L3_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object categoryL3_ = ""; + + /** + * + * + *
      +   * Product category (3rd level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l3 = 7; + * + * @return Whether the categoryL3 field is set. + */ + @java.lang.Override + public boolean hasCategoryL3() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
      +   * Product category (3rd level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l3 = 7; + * + * @return The categoryL3. + */ + @java.lang.Override + public java.lang.String getCategoryL3() { + java.lang.Object ref = categoryL3_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + categoryL3_ = s; + return s; + } + } + + /** + * + * + *
      +   * Product category (3rd level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l3 = 7; + * + * @return The bytes for categoryL3. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCategoryL3Bytes() { + java.lang.Object ref = categoryL3_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + categoryL3_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CATEGORY_L4_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object categoryL4_ = ""; + + /** + * + * + *
      +   * Product category (4th level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l4 = 8; + * + * @return Whether the categoryL4 field is set. + */ + @java.lang.Override + public boolean hasCategoryL4() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
      +   * Product category (4th level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l4 = 8; + * + * @return The categoryL4. + */ + @java.lang.Override + public java.lang.String getCategoryL4() { + java.lang.Object ref = categoryL4_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + categoryL4_ = s; + return s; + } + } + + /** + * + * + *
      +   * Product category (4th level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l4 = 8; + * + * @return The bytes for categoryL4. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCategoryL4Bytes() { + java.lang.Object ref = categoryL4_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + categoryL4_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CATEGORY_L5_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object categoryL5_ = ""; + + /** + * + * + *
      +   * Product category (5th level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l5 = 9; + * + * @return Whether the categoryL5 field is set. + */ + @java.lang.Override + public boolean hasCategoryL5() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
      +   * Product category (5th level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l5 = 9; + * + * @return The categoryL5. + */ + @java.lang.Override + public java.lang.String getCategoryL5() { + java.lang.Object ref = categoryL5_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + categoryL5_ = s; + return s; + } + } + + /** + * + * + *
      +   * Product category (5th level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l5 = 9; + * + * @return The bytes for categoryL5. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCategoryL5Bytes() { + java.lang.Object ref = categoryL5_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + categoryL5_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRODUCT_TYPE_L1_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object productTypeL1_ = ""; + + /** + * + * + *
      +   * Product type (1st level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l1 = 10; + * + * @return Whether the productTypeL1 field is set. + */ + @java.lang.Override + public boolean hasProductTypeL1() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
      +   * Product type (1st level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l1 = 10; + * + * @return The productTypeL1. + */ + @java.lang.Override + public java.lang.String getProductTypeL1() { + java.lang.Object ref = productTypeL1_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + productTypeL1_ = s; + return s; + } + } + + /** + * + * + *
      +   * Product type (1st level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l1 = 10; + * + * @return The bytes for productTypeL1. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProductTypeL1Bytes() { + java.lang.Object ref = productTypeL1_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + productTypeL1_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRODUCT_TYPE_L2_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object productTypeL2_ = ""; + + /** + * + * + *
      +   * Product type (2nd level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l2 = 11; + * + * @return Whether the productTypeL2 field is set. + */ + @java.lang.Override + public boolean hasProductTypeL2() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
      +   * Product type (2nd level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l2 = 11; + * + * @return The productTypeL2. + */ + @java.lang.Override + public java.lang.String getProductTypeL2() { + java.lang.Object ref = productTypeL2_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + productTypeL2_ = s; + return s; + } + } + + /** + * + * + *
      +   * Product type (2nd level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l2 = 11; + * + * @return The bytes for productTypeL2. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProductTypeL2Bytes() { + java.lang.Object ref = productTypeL2_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + productTypeL2_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRODUCT_TYPE_L3_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private volatile java.lang.Object productTypeL3_ = ""; + + /** + * + * + *
      +   * Product type (3rd level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l3 = 12; + * + * @return Whether the productTypeL3 field is set. + */ + @java.lang.Override + public boolean hasProductTypeL3() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
      +   * Product type (3rd level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l3 = 12; + * + * @return The productTypeL3. + */ + @java.lang.Override + public java.lang.String getProductTypeL3() { + java.lang.Object ref = productTypeL3_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + productTypeL3_ = s; + return s; + } + } + + /** + * + * + *
      +   * Product type (3rd level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l3 = 12; + * + * @return The bytes for productTypeL3. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProductTypeL3Bytes() { + java.lang.Object ref = productTypeL3_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + productTypeL3_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRODUCT_TYPE_L4_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private volatile java.lang.Object productTypeL4_ = ""; + + /** + * + * + *
      +   * Product type (4th level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l4 = 13; + * + * @return Whether the productTypeL4 field is set. + */ + @java.lang.Override + public boolean hasProductTypeL4() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
      +   * Product type (4th level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l4 = 13; + * + * @return The productTypeL4. + */ + @java.lang.Override + public java.lang.String getProductTypeL4() { + java.lang.Object ref = productTypeL4_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + productTypeL4_ = s; + return s; + } + } + + /** + * + * + *
      +   * Product type (4th level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l4 = 13; + * + * @return The bytes for productTypeL4. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProductTypeL4Bytes() { + java.lang.Object ref = productTypeL4_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + productTypeL4_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRODUCT_TYPE_L5_FIELD_NUMBER = 14; + + @SuppressWarnings("serial") + private volatile java.lang.Object productTypeL5_ = ""; + + /** + * + * + *
      +   * Product type (5th level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l5 = 14; + * + * @return Whether the productTypeL5 field is set. + */ + @java.lang.Override + public boolean hasProductTypeL5() { + return ((bitField0_ & 0x00002000) != 0); + } + + /** + * + * + *
      +   * Product type (5th level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l5 = 14; + * + * @return The productTypeL5. + */ + @java.lang.Override + public java.lang.String getProductTypeL5() { + java.lang.Object ref = productTypeL5_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + productTypeL5_ = s; + return s; + } + } + + /** + * + * + *
      +   * Product type (5th level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l5 = 14; + * + * @return The bytes for productTypeL5. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProductTypeL5Bytes() { + java.lang.Object ref = productTypeL5_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + productTypeL5_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRICE_FIELD_NUMBER = 15; + private com.google.shopping.type.Price price_; + + /** + * + * + *
      +   * Current price of the product.
      +   * 
      + * + * .google.shopping.type.Price price = 15; + * + * @return Whether the price field is set. + */ + @java.lang.Override + public boolean hasPrice() { + return ((bitField0_ & 0x00004000) != 0); + } + + /** + * + * + *
      +   * Current price of the product.
      +   * 
      + * + * .google.shopping.type.Price price = 15; + * + * @return The price. + */ + @java.lang.Override + public com.google.shopping.type.Price getPrice() { + return price_ == null ? com.google.shopping.type.Price.getDefaultInstance() : price_; + } + + /** + * + * + *
      +   * Current price of the product.
      +   * 
      + * + * .google.shopping.type.Price price = 15; + */ + @java.lang.Override + public com.google.shopping.type.PriceOrBuilder getPriceOrBuilder() { + return price_ == null ? com.google.shopping.type.Price.getDefaultInstance() : price_; + } + + public static final int SUGGESTED_PRICE_FIELD_NUMBER = 16; + private com.google.shopping.type.Price suggestedPrice_; + + /** + * + * + *
      +   * Latest suggested price for the product.
      +   * 
      + * + * .google.shopping.type.Price suggested_price = 16; + * + * @return Whether the suggestedPrice field is set. + */ + @java.lang.Override + public boolean hasSuggestedPrice() { + return ((bitField0_ & 0x00008000) != 0); + } + + /** + * + * + *
      +   * Latest suggested price for the product.
      +   * 
      + * + * .google.shopping.type.Price suggested_price = 16; + * + * @return The suggestedPrice. + */ + @java.lang.Override + public com.google.shopping.type.Price getSuggestedPrice() { + return suggestedPrice_ == null + ? com.google.shopping.type.Price.getDefaultInstance() + : suggestedPrice_; + } + + /** + * + * + *
      +   * Latest suggested price for the product.
      +   * 
      + * + * .google.shopping.type.Price suggested_price = 16; + */ + @java.lang.Override + public com.google.shopping.type.PriceOrBuilder getSuggestedPriceOrBuilder() { + return suggestedPrice_ == null + ? com.google.shopping.type.Price.getDefaultInstance() + : suggestedPrice_; + } + + public static final int PREDICTED_IMPRESSIONS_CHANGE_FRACTION_FIELD_NUMBER = 17; + private double predictedImpressionsChangeFraction_ = 0D; + + /** + * + * + *
      +   * Predicted change in impressions as a fraction after introducing the
      +   * suggested price compared to current active price. For example, 0.05 is a 5%
      +   * predicted increase in impressions.
      +   * 
      + * + * optional double predicted_impressions_change_fraction = 17; + * + * @return Whether the predictedImpressionsChangeFraction field is set. + */ + @java.lang.Override + public boolean hasPredictedImpressionsChangeFraction() { + return ((bitField0_ & 0x00010000) != 0); + } + + /** + * + * + *
      +   * Predicted change in impressions as a fraction after introducing the
      +   * suggested price compared to current active price. For example, 0.05 is a 5%
      +   * predicted increase in impressions.
      +   * 
      + * + * optional double predicted_impressions_change_fraction = 17; + * + * @return The predictedImpressionsChangeFraction. + */ + @java.lang.Override + public double getPredictedImpressionsChangeFraction() { + return predictedImpressionsChangeFraction_; + } + + public static final int PREDICTED_CLICKS_CHANGE_FRACTION_FIELD_NUMBER = 18; + private double predictedClicksChangeFraction_ = 0D; + + /** + * + * + *
      +   * Predicted change in clicks as a fraction after introducing the
      +   * suggested price compared to current active price. For example, 0.05 is a 5%
      +   * predicted increase in clicks.
      +   * 
      + * + * optional double predicted_clicks_change_fraction = 18; + * + * @return Whether the predictedClicksChangeFraction field is set. + */ + @java.lang.Override + public boolean hasPredictedClicksChangeFraction() { + return ((bitField0_ & 0x00020000) != 0); + } + + /** + * + * + *
      +   * Predicted change in clicks as a fraction after introducing the
      +   * suggested price compared to current active price. For example, 0.05 is a 5%
      +   * predicted increase in clicks.
      +   * 
      + * + * optional double predicted_clicks_change_fraction = 18; + * + * @return The predictedClicksChangeFraction. + */ + @java.lang.Override + public double getPredictedClicksChangeFraction() { + return predictedClicksChangeFraction_; + } + + public static final int PREDICTED_CONVERSIONS_CHANGE_FRACTION_FIELD_NUMBER = 19; + private double predictedConversionsChangeFraction_ = 0D; + + /** + * + * + *
      +   * Predicted change in conversions as a fraction after introducing the
      +   * suggested price compared to current active price. For example, 0.05 is a 5%
      +   * predicted increase in conversions).
      +   * 
      + * + * optional double predicted_conversions_change_fraction = 19; + * + * @return Whether the predictedConversionsChangeFraction field is set. + */ + @java.lang.Override + public boolean hasPredictedConversionsChangeFraction() { + return ((bitField0_ & 0x00040000) != 0); + } + + /** + * + * + *
      +   * Predicted change in conversions as a fraction after introducing the
      +   * suggested price compared to current active price. For example, 0.05 is a 5%
      +   * predicted increase in conversions).
      +   * 
      + * + * optional double predicted_conversions_change_fraction = 19; + * + * @return The predictedConversionsChangeFraction. + */ + @java.lang.Override + public double getPredictedConversionsChangeFraction() { + return predictedConversionsChangeFraction_; + } + + public static final int EFFECTIVENESS_FIELD_NUMBER = 22; + private int effectiveness_ = 0; + + /** + * + * + *
      +   * The predicted effectiveness of applying the price suggestion, bucketed.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.PriceInsightsProductView.Effectiveness effectiveness = 22; + * + * + * @return The enum numeric value on the wire for effectiveness. + */ + @java.lang.Override + public int getEffectivenessValue() { + return effectiveness_; + } + + /** + * + * + *
      +   * The predicted effectiveness of applying the price suggestion, bucketed.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.PriceInsightsProductView.Effectiveness effectiveness = 22; + * + * + * @return The effectiveness. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView.Effectiveness + getEffectiveness() { + com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView.Effectiveness result = + com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView.Effectiveness + .forNumber(effectiveness_); + return result == null + ? com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView.Effectiveness + .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)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, offerId_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, title_); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, brand_); + } + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, categoryL1_); + } + if (((bitField0_ & 0x00000020) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, categoryL2_); + } + if (((bitField0_ & 0x00000040) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, categoryL3_); + } + if (((bitField0_ & 0x00000080) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, categoryL4_); + } + if (((bitField0_ & 0x00000100) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, categoryL5_); + } + if (((bitField0_ & 0x00000200) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, productTypeL1_); + } + if (((bitField0_ & 0x00000400) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, productTypeL2_); + } + if (((bitField0_ & 0x00000800) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, productTypeL3_); + } + if (((bitField0_ & 0x00001000) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, productTypeL4_); + } + if (((bitField0_ & 0x00002000) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, productTypeL5_); + } + if (((bitField0_ & 0x00004000) != 0)) { + output.writeMessage(15, getPrice()); + } + if (((bitField0_ & 0x00008000) != 0)) { + output.writeMessage(16, getSuggestedPrice()); + } + if (((bitField0_ & 0x00010000) != 0)) { + output.writeDouble(17, predictedImpressionsChangeFraction_); + } + if (((bitField0_ & 0x00020000) != 0)) { + output.writeDouble(18, predictedClicksChangeFraction_); + } + if (((bitField0_ & 0x00040000) != 0)) { + output.writeDouble(19, predictedConversionsChangeFraction_); + } + if (effectiveness_ + != com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView.Effectiveness + .EFFECTIVENESS_UNSPECIFIED + .getNumber()) { + output.writeEnum(22, effectiveness_); + } + 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.GeneratedMessageV3.computeStringSize(1, id_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, offerId_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, title_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, brand_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, categoryL1_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, categoryL2_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, categoryL3_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, categoryL4_); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, categoryL5_); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, productTypeL1_); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, productTypeL2_); + } + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, productTypeL3_); + } + if (((bitField0_ & 0x00001000) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, productTypeL4_); + } + if (((bitField0_ & 0x00002000) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, productTypeL5_); + } + if (((bitField0_ & 0x00004000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getPrice()); + } + if (((bitField0_ & 0x00008000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getSuggestedPrice()); + } + if (((bitField0_ & 0x00010000) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeDoubleSize( + 17, predictedImpressionsChangeFraction_); + } + if (((bitField0_ & 0x00020000) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeDoubleSize( + 18, predictedClicksChangeFraction_); + } + if (((bitField0_ & 0x00040000) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeDoubleSize( + 19, predictedConversionsChangeFraction_); + } + if (effectiveness_ + != com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView.Effectiveness + .EFFECTIVENESS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(22, effectiveness_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView)) { + return super.equals(obj); + } + com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView other = + (com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId().equals(other.getId())) return false; + } + if (hasOfferId() != other.hasOfferId()) return false; + if (hasOfferId()) { + if (!getOfferId().equals(other.getOfferId())) return false; + } + if (hasTitle() != other.hasTitle()) return false; + if (hasTitle()) { + if (!getTitle().equals(other.getTitle())) return false; + } + if (hasBrand() != other.hasBrand()) return false; + if (hasBrand()) { + if (!getBrand().equals(other.getBrand())) return false; + } + if (hasCategoryL1() != other.hasCategoryL1()) return false; + if (hasCategoryL1()) { + if (!getCategoryL1().equals(other.getCategoryL1())) return false; + } + if (hasCategoryL2() != other.hasCategoryL2()) return false; + if (hasCategoryL2()) { + if (!getCategoryL2().equals(other.getCategoryL2())) return false; + } + if (hasCategoryL3() != other.hasCategoryL3()) return false; + if (hasCategoryL3()) { + if (!getCategoryL3().equals(other.getCategoryL3())) return false; + } + if (hasCategoryL4() != other.hasCategoryL4()) return false; + if (hasCategoryL4()) { + if (!getCategoryL4().equals(other.getCategoryL4())) return false; + } + if (hasCategoryL5() != other.hasCategoryL5()) return false; + if (hasCategoryL5()) { + if (!getCategoryL5().equals(other.getCategoryL5())) return false; + } + if (hasProductTypeL1() != other.hasProductTypeL1()) return false; + if (hasProductTypeL1()) { + if (!getProductTypeL1().equals(other.getProductTypeL1())) return false; + } + if (hasProductTypeL2() != other.hasProductTypeL2()) return false; + if (hasProductTypeL2()) { + if (!getProductTypeL2().equals(other.getProductTypeL2())) return false; + } + if (hasProductTypeL3() != other.hasProductTypeL3()) return false; + if (hasProductTypeL3()) { + if (!getProductTypeL3().equals(other.getProductTypeL3())) return false; + } + if (hasProductTypeL4() != other.hasProductTypeL4()) return false; + if (hasProductTypeL4()) { + if (!getProductTypeL4().equals(other.getProductTypeL4())) return false; + } + if (hasProductTypeL5() != other.hasProductTypeL5()) return false; + if (hasProductTypeL5()) { + if (!getProductTypeL5().equals(other.getProductTypeL5())) return false; + } + if (hasPrice() != other.hasPrice()) return false; + if (hasPrice()) { + if (!getPrice().equals(other.getPrice())) return false; + } + if (hasSuggestedPrice() != other.hasSuggestedPrice()) return false; + if (hasSuggestedPrice()) { + if (!getSuggestedPrice().equals(other.getSuggestedPrice())) return false; + } + if (hasPredictedImpressionsChangeFraction() != other.hasPredictedImpressionsChangeFraction()) + return false; + if (hasPredictedImpressionsChangeFraction()) { + if (java.lang.Double.doubleToLongBits(getPredictedImpressionsChangeFraction()) + != java.lang.Double.doubleToLongBits(other.getPredictedImpressionsChangeFraction())) + return false; + } + if (hasPredictedClicksChangeFraction() != other.hasPredictedClicksChangeFraction()) + return false; + if (hasPredictedClicksChangeFraction()) { + if (java.lang.Double.doubleToLongBits(getPredictedClicksChangeFraction()) + != java.lang.Double.doubleToLongBits(other.getPredictedClicksChangeFraction())) + return false; + } + if (hasPredictedConversionsChangeFraction() != other.hasPredictedConversionsChangeFraction()) + return false; + if (hasPredictedConversionsChangeFraction()) { + if (java.lang.Double.doubleToLongBits(getPredictedConversionsChangeFraction()) + != java.lang.Double.doubleToLongBits(other.getPredictedConversionsChangeFraction())) + return false; + } + if (effectiveness_ != other.effectiveness_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + if (hasOfferId()) { + hash = (37 * hash) + OFFER_ID_FIELD_NUMBER; + hash = (53 * hash) + getOfferId().hashCode(); + } + if (hasTitle()) { + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + } + if (hasBrand()) { + hash = (37 * hash) + BRAND_FIELD_NUMBER; + hash = (53 * hash) + getBrand().hashCode(); + } + if (hasCategoryL1()) { + hash = (37 * hash) + CATEGORY_L1_FIELD_NUMBER; + hash = (53 * hash) + getCategoryL1().hashCode(); + } + if (hasCategoryL2()) { + hash = (37 * hash) + CATEGORY_L2_FIELD_NUMBER; + hash = (53 * hash) + getCategoryL2().hashCode(); + } + if (hasCategoryL3()) { + hash = (37 * hash) + CATEGORY_L3_FIELD_NUMBER; + hash = (53 * hash) + getCategoryL3().hashCode(); + } + if (hasCategoryL4()) { + hash = (37 * hash) + CATEGORY_L4_FIELD_NUMBER; + hash = (53 * hash) + getCategoryL4().hashCode(); + } + if (hasCategoryL5()) { + hash = (37 * hash) + CATEGORY_L5_FIELD_NUMBER; + hash = (53 * hash) + getCategoryL5().hashCode(); + } + if (hasProductTypeL1()) { + hash = (37 * hash) + PRODUCT_TYPE_L1_FIELD_NUMBER; + hash = (53 * hash) + getProductTypeL1().hashCode(); + } + if (hasProductTypeL2()) { + hash = (37 * hash) + PRODUCT_TYPE_L2_FIELD_NUMBER; + hash = (53 * hash) + getProductTypeL2().hashCode(); + } + if (hasProductTypeL3()) { + hash = (37 * hash) + PRODUCT_TYPE_L3_FIELD_NUMBER; + hash = (53 * hash) + getProductTypeL3().hashCode(); + } + if (hasProductTypeL4()) { + hash = (37 * hash) + PRODUCT_TYPE_L4_FIELD_NUMBER; + hash = (53 * hash) + getProductTypeL4().hashCode(); + } + if (hasProductTypeL5()) { + hash = (37 * hash) + PRODUCT_TYPE_L5_FIELD_NUMBER; + hash = (53 * hash) + getProductTypeL5().hashCode(); + } + if (hasPrice()) { + hash = (37 * hash) + PRICE_FIELD_NUMBER; + hash = (53 * hash) + getPrice().hashCode(); + } + if (hasSuggestedPrice()) { + hash = (37 * hash) + SUGGESTED_PRICE_FIELD_NUMBER; + hash = (53 * hash) + getSuggestedPrice().hashCode(); + } + if (hasPredictedImpressionsChangeFraction()) { + hash = (37 * hash) + PREDICTED_IMPRESSIONS_CHANGE_FRACTION_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getPredictedImpressionsChangeFraction())); + } + if (hasPredictedClicksChangeFraction()) { + hash = (37 * hash) + PREDICTED_CLICKS_CHANGE_FRACTION_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getPredictedClicksChangeFraction())); + } + if (hasPredictedConversionsChangeFraction()) { + hash = (37 * hash) + PREDICTED_CONVERSIONS_CHANGE_FRACTION_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getPredictedConversionsChangeFraction())); + } + hash = (37 * hash) + EFFECTIVENESS_FIELD_NUMBER; + hash = (53 * hash) + effectiveness_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Fields available for query in `price_insights_product_view` table.
      +   *
      +   * [Price insights](https://support.google.com/merchants/answer/11916926)
      +   * report.
      +   *
      +   * Values are only set for fields requested explicitly in the request's search
      +   * query.
      +   * 
      + * + * Protobuf type {@code google.shopping.merchant.reports.v1alpha.PriceInsightsProductView} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.reports.v1alpha.PriceInsightsProductView) + com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductViewOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_PriceInsightsProductView_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_PriceInsightsProductView_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView.class, + com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView.Builder.class); + } + + // Construct using + // com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPriceFieldBuilder(); + getSuggestedPriceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + offerId_ = ""; + title_ = ""; + brand_ = ""; + categoryL1_ = ""; + categoryL2_ = ""; + categoryL3_ = ""; + categoryL4_ = ""; + categoryL5_ = ""; + productTypeL1_ = ""; + productTypeL2_ = ""; + productTypeL3_ = ""; + productTypeL4_ = ""; + productTypeL5_ = ""; + price_ = null; + if (priceBuilder_ != null) { + priceBuilder_.dispose(); + priceBuilder_ = null; + } + suggestedPrice_ = null; + if (suggestedPriceBuilder_ != null) { + suggestedPriceBuilder_.dispose(); + suggestedPriceBuilder_ = null; + } + predictedImpressionsChangeFraction_ = 0D; + predictedClicksChangeFraction_ = 0D; + predictedConversionsChangeFraction_ = 0D; + effectiveness_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_PriceInsightsProductView_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView + getDefaultInstanceForType() { + return com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView build() { + com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView buildPartial() { + com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView result = + new com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.offerId_ = offerId_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.title_ = title_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.brand_ = brand_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.categoryL1_ = categoryL1_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.categoryL2_ = categoryL2_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.categoryL3_ = categoryL3_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.categoryL4_ = categoryL4_; + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.categoryL5_ = categoryL5_; + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.productTypeL1_ = productTypeL1_; + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.productTypeL2_ = productTypeL2_; + to_bitField0_ |= 0x00000400; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.productTypeL3_ = productTypeL3_; + to_bitField0_ |= 0x00000800; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.productTypeL4_ = productTypeL4_; + to_bitField0_ |= 0x00001000; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.productTypeL5_ = productTypeL5_; + to_bitField0_ |= 0x00002000; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.price_ = priceBuilder_ == null ? price_ : priceBuilder_.build(); + to_bitField0_ |= 0x00004000; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.suggestedPrice_ = + suggestedPriceBuilder_ == null ? suggestedPrice_ : suggestedPriceBuilder_.build(); + to_bitField0_ |= 0x00008000; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.predictedImpressionsChangeFraction_ = predictedImpressionsChangeFraction_; + to_bitField0_ |= 0x00010000; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.predictedClicksChangeFraction_ = predictedClicksChangeFraction_; + to_bitField0_ |= 0x00020000; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.predictedConversionsChangeFraction_ = predictedConversionsChangeFraction_; + to_bitField0_ |= 0x00040000; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.effectiveness_ = effectiveness_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView) { + return mergeFrom( + (com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView other) { + if (other + == com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView + .getDefaultInstance()) return this; + if (other.hasId()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasOfferId()) { + offerId_ = other.offerId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasTitle()) { + title_ = other.title_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasBrand()) { + brand_ = other.brand_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasCategoryL1()) { + categoryL1_ = other.categoryL1_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasCategoryL2()) { + categoryL2_ = other.categoryL2_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasCategoryL3()) { + categoryL3_ = other.categoryL3_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.hasCategoryL4()) { + categoryL4_ = other.categoryL4_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (other.hasCategoryL5()) { + categoryL5_ = other.categoryL5_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.hasProductTypeL1()) { + productTypeL1_ = other.productTypeL1_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (other.hasProductTypeL2()) { + productTypeL2_ = other.productTypeL2_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (other.hasProductTypeL3()) { + productTypeL3_ = other.productTypeL3_; + bitField0_ |= 0x00000800; + onChanged(); + } + if (other.hasProductTypeL4()) { + productTypeL4_ = other.productTypeL4_; + bitField0_ |= 0x00001000; + onChanged(); + } + if (other.hasProductTypeL5()) { + productTypeL5_ = other.productTypeL5_; + bitField0_ |= 0x00002000; + onChanged(); + } + if (other.hasPrice()) { + mergePrice(other.getPrice()); + } + if (other.hasSuggestedPrice()) { + mergeSuggestedPrice(other.getSuggestedPrice()); + } + if (other.hasPredictedImpressionsChangeFraction()) { + setPredictedImpressionsChangeFraction(other.getPredictedImpressionsChangeFraction()); + } + if (other.hasPredictedClicksChangeFraction()) { + setPredictedClicksChangeFraction(other.getPredictedClicksChangeFraction()); + } + if (other.hasPredictedConversionsChangeFraction()) { + setPredictedConversionsChangeFraction(other.getPredictedConversionsChangeFraction()); + } + if (other.effectiveness_ != 0) { + setEffectivenessValue(other.getEffectivenessValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + offerId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + brand_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + categoryL1_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + categoryL2_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + categoryL3_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + categoryL4_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: + { + categoryL5_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + productTypeL1_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: + { + productTypeL2_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: + { + productTypeL3_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 106: + { + productTypeL4_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 106 + case 114: + { + productTypeL5_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00002000; + break; + } // case 114 + case 122: + { + input.readMessage(getPriceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 122 + case 130: + { + input.readMessage(getSuggestedPriceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00008000; + break; + } // case 130 + case 137: + { + predictedImpressionsChangeFraction_ = input.readDouble(); + bitField0_ |= 0x00010000; + break; + } // case 137 + case 145: + { + predictedClicksChangeFraction_ = input.readDouble(); + bitField0_ |= 0x00020000; + break; + } // case 145 + case 153: + { + predictedConversionsChangeFraction_ = input.readDouble(); + bitField0_ |= 0x00040000; + break; + } // case 153 + case 176: + { + effectiveness_ = input.readEnum(); + bitField0_ |= 0x00080000; + break; + } // case 176 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object id_ = ""; + + /** + * + * + *
      +     * REST ID of the product, in the form of
      +     * `channel~languageCode~feedLabel~offerId`. Can be used to join data with the
      +     * `product_view` table.
      +     *
      +     * Required in the `SELECT` clause.
      +     * 
      + * + * optional string id = 1; + * + * @return Whether the id field is set. + */ + public boolean hasId() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +     * REST ID of the product, in the form of
      +     * `channel~languageCode~feedLabel~offerId`. Can be used to join data with the
      +     * `product_view` table.
      +     *
      +     * Required in the `SELECT` clause.
      +     * 
      + * + * optional string id = 1; + * + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * REST ID of the product, in the form of
      +     * `channel~languageCode~feedLabel~offerId`. Can be used to join data with the
      +     * `product_view` table.
      +     *
      +     * Required in the `SELECT` clause.
      +     * 
      + * + * optional string id = 1; + * + * @return The bytes for id. + */ + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * REST ID of the product, in the form of
      +     * `channel~languageCode~feedLabel~offerId`. Can be used to join data with the
      +     * `product_view` table.
      +     *
      +     * Required in the `SELECT` clause.
      +     * 
      + * + * optional string id = 1; + * + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * REST ID of the product, in the form of
      +     * `channel~languageCode~feedLabel~offerId`. Can be used to join data with the
      +     * `product_view` table.
      +     *
      +     * Required in the `SELECT` clause.
      +     * 
      + * + * optional string id = 1; + * + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * REST ID of the product, in the form of
      +     * `channel~languageCode~feedLabel~offerId`. Can be used to join data with the
      +     * `product_view` table.
      +     *
      +     * Required in the `SELECT` clause.
      +     * 
      + * + * optional string id = 1; + * + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object offerId_ = ""; + + /** + * + * + *
      +     * Merchant-provided id of the product.
      +     * 
      + * + * optional string offer_id = 2; + * + * @return Whether the offerId field is set. + */ + public boolean hasOfferId() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +     * Merchant-provided id of the product.
      +     * 
      + * + * optional string offer_id = 2; + * + * @return The offerId. + */ + public java.lang.String getOfferId() { + java.lang.Object ref = offerId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + offerId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Merchant-provided id of the product.
      +     * 
      + * + * optional string offer_id = 2; + * + * @return The bytes for offerId. + */ + public com.google.protobuf.ByteString getOfferIdBytes() { + java.lang.Object ref = offerId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + offerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Merchant-provided id of the product.
      +     * 
      + * + * optional string offer_id = 2; + * + * @param value The offerId to set. + * @return This builder for chaining. + */ + public Builder setOfferId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + offerId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Merchant-provided id of the product.
      +     * 
      + * + * optional string offer_id = 2; + * + * @return This builder for chaining. + */ + public Builder clearOfferId() { + offerId_ = getDefaultInstance().getOfferId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Merchant-provided id of the product.
      +     * 
      + * + * optional string offer_id = 2; + * + * @param value The bytes for offerId to set. + * @return This builder for chaining. + */ + public Builder setOfferIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + offerId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object title_ = ""; + + /** + * + * + *
      +     * Title of the product.
      +     * 
      + * + * optional string title = 3; + * + * @return Whether the title field is set. + */ + public boolean hasTitle() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +     * Title of the product.
      +     * 
      + * + * optional string title = 3; + * + * @return The title. + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Title of the product.
      +     * 
      + * + * optional string title = 3; + * + * @return The bytes for title. + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Title of the product.
      +     * 
      + * + * optional string title = 3; + * + * @param value The title to set. + * @return This builder for chaining. + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + title_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Title of the product.
      +     * 
      + * + * optional string title = 3; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Title of the product.
      +     * 
      + * + * optional string title = 3; + * + * @param value The bytes for title to set. + * @return This builder for chaining. + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + title_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object brand_ = ""; + + /** + * + * + *
      +     * Brand of the product.
      +     * 
      + * + * optional string brand = 4; + * + * @return Whether the brand field is set. + */ + public boolean hasBrand() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +     * Brand of the product.
      +     * 
      + * + * optional string brand = 4; + * + * @return The brand. + */ + public java.lang.String getBrand() { + java.lang.Object ref = brand_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + brand_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Brand of the product.
      +     * 
      + * + * optional string brand = 4; + * + * @return The bytes for brand. + */ + public com.google.protobuf.ByteString getBrandBytes() { + java.lang.Object ref = brand_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + brand_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Brand of the product.
      +     * 
      + * + * optional string brand = 4; + * + * @param value The brand to set. + * @return This builder for chaining. + */ + public Builder setBrand(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + brand_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Brand of the product.
      +     * 
      + * + * optional string brand = 4; + * + * @return This builder for chaining. + */ + public Builder clearBrand() { + brand_ = getDefaultInstance().getBrand(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Brand of the product.
      +     * 
      + * + * optional string brand = 4; + * + * @param value The bytes for brand to set. + * @return This builder for chaining. + */ + public Builder setBrandBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + brand_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object categoryL1_ = ""; + + /** + * + * + *
      +     * Product category (1st level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l1 = 5; + * + * @return Whether the categoryL1 field is set. + */ + public boolean hasCategoryL1() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
      +     * Product category (1st level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l1 = 5; + * + * @return The categoryL1. + */ + public java.lang.String getCategoryL1() { + java.lang.Object ref = categoryL1_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + categoryL1_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Product category (1st level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l1 = 5; + * + * @return The bytes for categoryL1. + */ + public com.google.protobuf.ByteString getCategoryL1Bytes() { + java.lang.Object ref = categoryL1_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + categoryL1_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Product category (1st level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l1 = 5; + * + * @param value The categoryL1 to set. + * @return This builder for chaining. + */ + public Builder setCategoryL1(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + categoryL1_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product category (1st level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l1 = 5; + * + * @return This builder for chaining. + */ + public Builder clearCategoryL1() { + categoryL1_ = getDefaultInstance().getCategoryL1(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product category (1st level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l1 = 5; + * + * @param value The bytes for categoryL1 to set. + * @return This builder for chaining. + */ + public Builder setCategoryL1Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + categoryL1_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object categoryL2_ = ""; + + /** + * + * + *
      +     * Product category (2nd level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l2 = 6; + * + * @return Whether the categoryL2 field is set. + */ + public boolean hasCategoryL2() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
      +     * Product category (2nd level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l2 = 6; + * + * @return The categoryL2. + */ + public java.lang.String getCategoryL2() { + java.lang.Object ref = categoryL2_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + categoryL2_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Product category (2nd level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l2 = 6; + * + * @return The bytes for categoryL2. + */ + public com.google.protobuf.ByteString getCategoryL2Bytes() { + java.lang.Object ref = categoryL2_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + categoryL2_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Product category (2nd level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l2 = 6; + * + * @param value The categoryL2 to set. + * @return This builder for chaining. + */ + public Builder setCategoryL2(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + categoryL2_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product category (2nd level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l2 = 6; + * + * @return This builder for chaining. + */ + public Builder clearCategoryL2() { + categoryL2_ = getDefaultInstance().getCategoryL2(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product category (2nd level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l2 = 6; + * + * @param value The bytes for categoryL2 to set. + * @return This builder for chaining. + */ + public Builder setCategoryL2Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + categoryL2_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object categoryL3_ = ""; + + /** + * + * + *
      +     * Product category (3rd level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l3 = 7; + * + * @return Whether the categoryL3 field is set. + */ + public boolean hasCategoryL3() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
      +     * Product category (3rd level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l3 = 7; + * + * @return The categoryL3. + */ + public java.lang.String getCategoryL3() { + java.lang.Object ref = categoryL3_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + categoryL3_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Product category (3rd level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l3 = 7; + * + * @return The bytes for categoryL3. + */ + public com.google.protobuf.ByteString getCategoryL3Bytes() { + java.lang.Object ref = categoryL3_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + categoryL3_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Product category (3rd level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l3 = 7; + * + * @param value The categoryL3 to set. + * @return This builder for chaining. + */ + public Builder setCategoryL3(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + categoryL3_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product category (3rd level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l3 = 7; + * + * @return This builder for chaining. + */ + public Builder clearCategoryL3() { + categoryL3_ = getDefaultInstance().getCategoryL3(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product category (3rd level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l3 = 7; + * + * @param value The bytes for categoryL3 to set. + * @return This builder for chaining. + */ + public Builder setCategoryL3Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + categoryL3_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object categoryL4_ = ""; + + /** + * + * + *
      +     * Product category (4th level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l4 = 8; + * + * @return Whether the categoryL4 field is set. + */ + public boolean hasCategoryL4() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
      +     * Product category (4th level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l4 = 8; + * + * @return The categoryL4. + */ + public java.lang.String getCategoryL4() { + java.lang.Object ref = categoryL4_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + categoryL4_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Product category (4th level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l4 = 8; + * + * @return The bytes for categoryL4. + */ + public com.google.protobuf.ByteString getCategoryL4Bytes() { + java.lang.Object ref = categoryL4_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + categoryL4_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Product category (4th level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l4 = 8; + * + * @param value The categoryL4 to set. + * @return This builder for chaining. + */ + public Builder setCategoryL4(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + categoryL4_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product category (4th level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l4 = 8; + * + * @return This builder for chaining. + */ + public Builder clearCategoryL4() { + categoryL4_ = getDefaultInstance().getCategoryL4(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product category (4th level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l4 = 8; + * + * @param value The bytes for categoryL4 to set. + * @return This builder for chaining. + */ + public Builder setCategoryL4Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + categoryL4_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object categoryL5_ = ""; + + /** + * + * + *
      +     * Product category (5th level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l5 = 9; + * + * @return Whether the categoryL5 field is set. + */ + public boolean hasCategoryL5() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
      +     * Product category (5th level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l5 = 9; + * + * @return The categoryL5. + */ + public java.lang.String getCategoryL5() { + java.lang.Object ref = categoryL5_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + categoryL5_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Product category (5th level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l5 = 9; + * + * @return The bytes for categoryL5. + */ + public com.google.protobuf.ByteString getCategoryL5Bytes() { + java.lang.Object ref = categoryL5_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + categoryL5_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Product category (5th level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l5 = 9; + * + * @param value The categoryL5 to set. + * @return This builder for chaining. + */ + public Builder setCategoryL5(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + categoryL5_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product category (5th level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l5 = 9; + * + * @return This builder for chaining. + */ + public Builder clearCategoryL5() { + categoryL5_ = getDefaultInstance().getCategoryL5(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product category (5th level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l5 = 9; + * + * @param value The bytes for categoryL5 to set. + * @return This builder for chaining. + */ + public Builder setCategoryL5Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + categoryL5_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private java.lang.Object productTypeL1_ = ""; + + /** + * + * + *
      +     * Product type (1st level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l1 = 10; + * + * @return Whether the productTypeL1 field is set. + */ + public boolean hasProductTypeL1() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
      +     * Product type (1st level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l1 = 10; + * + * @return The productTypeL1. + */ + public java.lang.String getProductTypeL1() { + java.lang.Object ref = productTypeL1_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + productTypeL1_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Product type (1st level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l1 = 10; + * + * @return The bytes for productTypeL1. + */ + public com.google.protobuf.ByteString getProductTypeL1Bytes() { + java.lang.Object ref = productTypeL1_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + productTypeL1_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Product type (1st level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l1 = 10; + * + * @param value The productTypeL1 to set. + * @return This builder for chaining. + */ + public Builder setProductTypeL1(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + productTypeL1_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product type (1st level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l1 = 10; + * + * @return This builder for chaining. + */ + public Builder clearProductTypeL1() { + productTypeL1_ = getDefaultInstance().getProductTypeL1(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product type (1st level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l1 = 10; + * + * @param value The bytes for productTypeL1 to set. + * @return This builder for chaining. + */ + public Builder setProductTypeL1Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + productTypeL1_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private java.lang.Object productTypeL2_ = ""; + + /** + * + * + *
      +     * Product type (2nd level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l2 = 11; + * + * @return Whether the productTypeL2 field is set. + */ + public boolean hasProductTypeL2() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
      +     * Product type (2nd level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l2 = 11; + * + * @return The productTypeL2. + */ + public java.lang.String getProductTypeL2() { + java.lang.Object ref = productTypeL2_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + productTypeL2_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Product type (2nd level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l2 = 11; + * + * @return The bytes for productTypeL2. + */ + public com.google.protobuf.ByteString getProductTypeL2Bytes() { + java.lang.Object ref = productTypeL2_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + productTypeL2_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Product type (2nd level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l2 = 11; + * + * @param value The productTypeL2 to set. + * @return This builder for chaining. + */ + public Builder setProductTypeL2(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + productTypeL2_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product type (2nd level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l2 = 11; + * + * @return This builder for chaining. + */ + public Builder clearProductTypeL2() { + productTypeL2_ = getDefaultInstance().getProductTypeL2(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product type (2nd level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l2 = 11; + * + * @param value The bytes for productTypeL2 to set. + * @return This builder for chaining. + */ + public Builder setProductTypeL2Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + productTypeL2_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + private java.lang.Object productTypeL3_ = ""; + + /** + * + * + *
      +     * Product type (3rd level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l3 = 12; + * + * @return Whether the productTypeL3 field is set. + */ + public boolean hasProductTypeL3() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
      +     * Product type (3rd level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l3 = 12; + * + * @return The productTypeL3. + */ + public java.lang.String getProductTypeL3() { + java.lang.Object ref = productTypeL3_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + productTypeL3_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Product type (3rd level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l3 = 12; + * + * @return The bytes for productTypeL3. + */ + public com.google.protobuf.ByteString getProductTypeL3Bytes() { + java.lang.Object ref = productTypeL3_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + productTypeL3_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Product type (3rd level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l3 = 12; + * + * @param value The productTypeL3 to set. + * @return This builder for chaining. + */ + public Builder setProductTypeL3(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + productTypeL3_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product type (3rd level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l3 = 12; + * + * @return This builder for chaining. + */ + public Builder clearProductTypeL3() { + productTypeL3_ = getDefaultInstance().getProductTypeL3(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product type (3rd level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l3 = 12; + * + * @param value The bytes for productTypeL3 to set. + * @return This builder for chaining. + */ + public Builder setProductTypeL3Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + productTypeL3_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + private java.lang.Object productTypeL4_ = ""; + + /** + * + * + *
      +     * Product type (4th level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l4 = 13; + * + * @return Whether the productTypeL4 field is set. + */ + public boolean hasProductTypeL4() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
      +     * Product type (4th level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l4 = 13; + * + * @return The productTypeL4. + */ + public java.lang.String getProductTypeL4() { + java.lang.Object ref = productTypeL4_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + productTypeL4_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Product type (4th level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l4 = 13; + * + * @return The bytes for productTypeL4. + */ + public com.google.protobuf.ByteString getProductTypeL4Bytes() { + java.lang.Object ref = productTypeL4_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + productTypeL4_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Product type (4th level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l4 = 13; + * + * @param value The productTypeL4 to set. + * @return This builder for chaining. + */ + public Builder setProductTypeL4(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + productTypeL4_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product type (4th level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l4 = 13; + * + * @return This builder for chaining. + */ + public Builder clearProductTypeL4() { + productTypeL4_ = getDefaultInstance().getProductTypeL4(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product type (4th level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l4 = 13; + * + * @param value The bytes for productTypeL4 to set. + * @return This builder for chaining. + */ + public Builder setProductTypeL4Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + productTypeL4_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + private java.lang.Object productTypeL5_ = ""; + + /** + * + * + *
      +     * Product type (5th level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l5 = 14; + * + * @return Whether the productTypeL5 field is set. + */ + public boolean hasProductTypeL5() { + return ((bitField0_ & 0x00002000) != 0); + } + + /** + * + * + *
      +     * Product type (5th level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l5 = 14; + * + * @return The productTypeL5. + */ + public java.lang.String getProductTypeL5() { + java.lang.Object ref = productTypeL5_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + productTypeL5_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Product type (5th level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l5 = 14; + * + * @return The bytes for productTypeL5. + */ + public com.google.protobuf.ByteString getProductTypeL5Bytes() { + java.lang.Object ref = productTypeL5_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + productTypeL5_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Product type (5th level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l5 = 14; + * + * @param value The productTypeL5 to set. + * @return This builder for chaining. + */ + public Builder setProductTypeL5(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + productTypeL5_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product type (5th level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l5 = 14; + * + * @return This builder for chaining. + */ + public Builder clearProductTypeL5() { + productTypeL5_ = getDefaultInstance().getProductTypeL5(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product type (5th level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l5 = 14; + * + * @param value The bytes for productTypeL5 to set. + * @return This builder for chaining. + */ + public Builder setProductTypeL5Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + productTypeL5_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + private com.google.shopping.type.Price price_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> + priceBuilder_; + + /** + * + * + *
      +     * Current price of the product.
      +     * 
      + * + * .google.shopping.type.Price price = 15; + * + * @return Whether the price field is set. + */ + public boolean hasPrice() { + return ((bitField0_ & 0x00004000) != 0); + } + + /** + * + * + *
      +     * Current price of the product.
      +     * 
      + * + * .google.shopping.type.Price price = 15; + * + * @return The price. + */ + public com.google.shopping.type.Price getPrice() { + if (priceBuilder_ == null) { + return price_ == null ? com.google.shopping.type.Price.getDefaultInstance() : price_; + } else { + return priceBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Current price of the product.
      +     * 
      + * + * .google.shopping.type.Price price = 15; + */ + public Builder setPrice(com.google.shopping.type.Price value) { + if (priceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + price_ = value; + } else { + priceBuilder_.setMessage(value); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Current price of the product.
      +     * 
      + * + * .google.shopping.type.Price price = 15; + */ + public Builder setPrice(com.google.shopping.type.Price.Builder builderForValue) { + if (priceBuilder_ == null) { + price_ = builderForValue.build(); + } else { + priceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Current price of the product.
      +     * 
      + * + * .google.shopping.type.Price price = 15; + */ + public Builder mergePrice(com.google.shopping.type.Price value) { + if (priceBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0) + && price_ != null + && price_ != com.google.shopping.type.Price.getDefaultInstance()) { + getPriceBuilder().mergeFrom(value); + } else { + price_ = value; + } + } else { + priceBuilder_.mergeFrom(value); + } + if (price_ != null) { + bitField0_ |= 0x00004000; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Current price of the product.
      +     * 
      + * + * .google.shopping.type.Price price = 15; + */ + public Builder clearPrice() { + bitField0_ = (bitField0_ & ~0x00004000); + price_ = null; + if (priceBuilder_ != null) { + priceBuilder_.dispose(); + priceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Current price of the product.
      +     * 
      + * + * .google.shopping.type.Price price = 15; + */ + public com.google.shopping.type.Price.Builder getPriceBuilder() { + bitField0_ |= 0x00004000; + onChanged(); + return getPriceFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Current price of the product.
      +     * 
      + * + * .google.shopping.type.Price price = 15; + */ + public com.google.shopping.type.PriceOrBuilder getPriceOrBuilder() { + if (priceBuilder_ != null) { + return priceBuilder_.getMessageOrBuilder(); + } else { + return price_ == null ? com.google.shopping.type.Price.getDefaultInstance() : price_; + } + } + + /** + * + * + *
      +     * Current price of the product.
      +     * 
      + * + * .google.shopping.type.Price price = 15; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> + getPriceFieldBuilder() { + if (priceBuilder_ == null) { + priceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder>( + getPrice(), getParentForChildren(), isClean()); + price_ = null; + } + return priceBuilder_; + } + + private com.google.shopping.type.Price suggestedPrice_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> + suggestedPriceBuilder_; + + /** + * + * + *
      +     * Latest suggested price for the product.
      +     * 
      + * + * .google.shopping.type.Price suggested_price = 16; + * + * @return Whether the suggestedPrice field is set. + */ + public boolean hasSuggestedPrice() { + return ((bitField0_ & 0x00008000) != 0); + } + + /** + * + * + *
      +     * Latest suggested price for the product.
      +     * 
      + * + * .google.shopping.type.Price suggested_price = 16; + * + * @return The suggestedPrice. + */ + public com.google.shopping.type.Price getSuggestedPrice() { + if (suggestedPriceBuilder_ == null) { + return suggestedPrice_ == null + ? com.google.shopping.type.Price.getDefaultInstance() + : suggestedPrice_; + } else { + return suggestedPriceBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Latest suggested price for the product.
      +     * 
      + * + * .google.shopping.type.Price suggested_price = 16; + */ + public Builder setSuggestedPrice(com.google.shopping.type.Price value) { + if (suggestedPriceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + suggestedPrice_ = value; + } else { + suggestedPriceBuilder_.setMessage(value); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Latest suggested price for the product.
      +     * 
      + * + * .google.shopping.type.Price suggested_price = 16; + */ + public Builder setSuggestedPrice(com.google.shopping.type.Price.Builder builderForValue) { + if (suggestedPriceBuilder_ == null) { + suggestedPrice_ = builderForValue.build(); + } else { + suggestedPriceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Latest suggested price for the product.
      +     * 
      + * + * .google.shopping.type.Price suggested_price = 16; + */ + public Builder mergeSuggestedPrice(com.google.shopping.type.Price value) { + if (suggestedPriceBuilder_ == null) { + if (((bitField0_ & 0x00008000) != 0) + && suggestedPrice_ != null + && suggestedPrice_ != com.google.shopping.type.Price.getDefaultInstance()) { + getSuggestedPriceBuilder().mergeFrom(value); + } else { + suggestedPrice_ = value; + } + } else { + suggestedPriceBuilder_.mergeFrom(value); + } + if (suggestedPrice_ != null) { + bitField0_ |= 0x00008000; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Latest suggested price for the product.
      +     * 
      + * + * .google.shopping.type.Price suggested_price = 16; + */ + public Builder clearSuggestedPrice() { + bitField0_ = (bitField0_ & ~0x00008000); + suggestedPrice_ = null; + if (suggestedPriceBuilder_ != null) { + suggestedPriceBuilder_.dispose(); + suggestedPriceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Latest suggested price for the product.
      +     * 
      + * + * .google.shopping.type.Price suggested_price = 16; + */ + public com.google.shopping.type.Price.Builder getSuggestedPriceBuilder() { + bitField0_ |= 0x00008000; + onChanged(); + return getSuggestedPriceFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Latest suggested price for the product.
      +     * 
      + * + * .google.shopping.type.Price suggested_price = 16; + */ + public com.google.shopping.type.PriceOrBuilder getSuggestedPriceOrBuilder() { + if (suggestedPriceBuilder_ != null) { + return suggestedPriceBuilder_.getMessageOrBuilder(); + } else { + return suggestedPrice_ == null + ? com.google.shopping.type.Price.getDefaultInstance() + : suggestedPrice_; + } + } + + /** + * + * + *
      +     * Latest suggested price for the product.
      +     * 
      + * + * .google.shopping.type.Price suggested_price = 16; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> + getSuggestedPriceFieldBuilder() { + if (suggestedPriceBuilder_ == null) { + suggestedPriceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder>( + getSuggestedPrice(), getParentForChildren(), isClean()); + suggestedPrice_ = null; + } + return suggestedPriceBuilder_; + } + + private double predictedImpressionsChangeFraction_; + + /** + * + * + *
      +     * Predicted change in impressions as a fraction after introducing the
      +     * suggested price compared to current active price. For example, 0.05 is a 5%
      +     * predicted increase in impressions.
      +     * 
      + * + * optional double predicted_impressions_change_fraction = 17; + * + * @return Whether the predictedImpressionsChangeFraction field is set. + */ + @java.lang.Override + public boolean hasPredictedImpressionsChangeFraction() { + return ((bitField0_ & 0x00010000) != 0); + } + + /** + * + * + *
      +     * Predicted change in impressions as a fraction after introducing the
      +     * suggested price compared to current active price. For example, 0.05 is a 5%
      +     * predicted increase in impressions.
      +     * 
      + * + * optional double predicted_impressions_change_fraction = 17; + * + * @return The predictedImpressionsChangeFraction. + */ + @java.lang.Override + public double getPredictedImpressionsChangeFraction() { + return predictedImpressionsChangeFraction_; + } + + /** + * + * + *
      +     * Predicted change in impressions as a fraction after introducing the
      +     * suggested price compared to current active price. For example, 0.05 is a 5%
      +     * predicted increase in impressions.
      +     * 
      + * + * optional double predicted_impressions_change_fraction = 17; + * + * @param value The predictedImpressionsChangeFraction to set. + * @return This builder for chaining. + */ + public Builder setPredictedImpressionsChangeFraction(double value) { + + predictedImpressionsChangeFraction_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Predicted change in impressions as a fraction after introducing the
      +     * suggested price compared to current active price. For example, 0.05 is a 5%
      +     * predicted increase in impressions.
      +     * 
      + * + * optional double predicted_impressions_change_fraction = 17; + * + * @return This builder for chaining. + */ + public Builder clearPredictedImpressionsChangeFraction() { + bitField0_ = (bitField0_ & ~0x00010000); + predictedImpressionsChangeFraction_ = 0D; + onChanged(); + return this; + } + + private double predictedClicksChangeFraction_; + + /** + * + * + *
      +     * Predicted change in clicks as a fraction after introducing the
      +     * suggested price compared to current active price. For example, 0.05 is a 5%
      +     * predicted increase in clicks.
      +     * 
      + * + * optional double predicted_clicks_change_fraction = 18; + * + * @return Whether the predictedClicksChangeFraction field is set. + */ + @java.lang.Override + public boolean hasPredictedClicksChangeFraction() { + return ((bitField0_ & 0x00020000) != 0); + } + + /** + * + * + *
      +     * Predicted change in clicks as a fraction after introducing the
      +     * suggested price compared to current active price. For example, 0.05 is a 5%
      +     * predicted increase in clicks.
      +     * 
      + * + * optional double predicted_clicks_change_fraction = 18; + * + * @return The predictedClicksChangeFraction. + */ + @java.lang.Override + public double getPredictedClicksChangeFraction() { + return predictedClicksChangeFraction_; + } + + /** + * + * + *
      +     * Predicted change in clicks as a fraction after introducing the
      +     * suggested price compared to current active price. For example, 0.05 is a 5%
      +     * predicted increase in clicks.
      +     * 
      + * + * optional double predicted_clicks_change_fraction = 18; + * + * @param value The predictedClicksChangeFraction to set. + * @return This builder for chaining. + */ + public Builder setPredictedClicksChangeFraction(double value) { + + predictedClicksChangeFraction_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Predicted change in clicks as a fraction after introducing the
      +     * suggested price compared to current active price. For example, 0.05 is a 5%
      +     * predicted increase in clicks.
      +     * 
      + * + * optional double predicted_clicks_change_fraction = 18; + * + * @return This builder for chaining. + */ + public Builder clearPredictedClicksChangeFraction() { + bitField0_ = (bitField0_ & ~0x00020000); + predictedClicksChangeFraction_ = 0D; + onChanged(); + return this; + } + + private double predictedConversionsChangeFraction_; + + /** + * + * + *
      +     * Predicted change in conversions as a fraction after introducing the
      +     * suggested price compared to current active price. For example, 0.05 is a 5%
      +     * predicted increase in conversions).
      +     * 
      + * + * optional double predicted_conversions_change_fraction = 19; + * + * @return Whether the predictedConversionsChangeFraction field is set. + */ + @java.lang.Override + public boolean hasPredictedConversionsChangeFraction() { + return ((bitField0_ & 0x00040000) != 0); + } + + /** + * + * + *
      +     * Predicted change in conversions as a fraction after introducing the
      +     * suggested price compared to current active price. For example, 0.05 is a 5%
      +     * predicted increase in conversions).
      +     * 
      + * + * optional double predicted_conversions_change_fraction = 19; + * + * @return The predictedConversionsChangeFraction. + */ + @java.lang.Override + public double getPredictedConversionsChangeFraction() { + return predictedConversionsChangeFraction_; + } + + /** + * + * + *
      +     * Predicted change in conversions as a fraction after introducing the
      +     * suggested price compared to current active price. For example, 0.05 is a 5%
      +     * predicted increase in conversions).
      +     * 
      + * + * optional double predicted_conversions_change_fraction = 19; + * + * @param value The predictedConversionsChangeFraction to set. + * @return This builder for chaining. + */ + public Builder setPredictedConversionsChangeFraction(double value) { + + predictedConversionsChangeFraction_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Predicted change in conversions as a fraction after introducing the
      +     * suggested price compared to current active price. For example, 0.05 is a 5%
      +     * predicted increase in conversions).
      +     * 
      + * + * optional double predicted_conversions_change_fraction = 19; + * + * @return This builder for chaining. + */ + public Builder clearPredictedConversionsChangeFraction() { + bitField0_ = (bitField0_ & ~0x00040000); + predictedConversionsChangeFraction_ = 0D; + onChanged(); + return this; + } + + private int effectiveness_ = 0; + + /** + * + * + *
      +     * The predicted effectiveness of applying the price suggestion, bucketed.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.PriceInsightsProductView.Effectiveness effectiveness = 22; + * + * + * @return The enum numeric value on the wire for effectiveness. + */ + @java.lang.Override + public int getEffectivenessValue() { + return effectiveness_; + } + + /** + * + * + *
      +     * The predicted effectiveness of applying the price suggestion, bucketed.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.PriceInsightsProductView.Effectiveness effectiveness = 22; + * + * + * @param value The enum numeric value on the wire for effectiveness to set. + * @return This builder for chaining. + */ + public Builder setEffectivenessValue(int value) { + effectiveness_ = value; + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The predicted effectiveness of applying the price suggestion, bucketed.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.PriceInsightsProductView.Effectiveness effectiveness = 22; + * + * + * @return The effectiveness. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView.Effectiveness + getEffectiveness() { + com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView.Effectiveness result = + com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView.Effectiveness + .forNumber(effectiveness_); + return result == null + ? com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView.Effectiveness + .UNRECOGNIZED + : result; + } + + /** + * + * + *
      +     * The predicted effectiveness of applying the price suggestion, bucketed.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.PriceInsightsProductView.Effectiveness effectiveness = 22; + * + * + * @param value The effectiveness to set. + * @return This builder for chaining. + */ + public Builder setEffectiveness( + com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView.Effectiveness value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00080000; + effectiveness_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * The predicted effectiveness of applying the price suggestion, bucketed.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.PriceInsightsProductView.Effectiveness effectiveness = 22; + * + * + * @return This builder for chaining. + */ + public Builder clearEffectiveness() { + bitField0_ = (bitField0_ & ~0x00080000); + effectiveness_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.reports.v1alpha.PriceInsightsProductView) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.reports.v1alpha.PriceInsightsProductView) + private static final com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView(); + } + + public static com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PriceInsightsProductView parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/PriceInsightsProductViewOrBuilder.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/PriceInsightsProductViewOrBuilder.java new file mode 100644 index 000000000000..ded29092899c --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/PriceInsightsProductViewOrBuilder.java @@ -0,0 +1,809 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/reports/v1alpha/reports.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.reports.v1alpha; + +public interface PriceInsightsProductViewOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.reports.v1alpha.PriceInsightsProductView) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * REST ID of the product, in the form of
      +   * `channel~languageCode~feedLabel~offerId`. Can be used to join data with the
      +   * `product_view` table.
      +   *
      +   * Required in the `SELECT` clause.
      +   * 
      + * + * optional string id = 1; + * + * @return Whether the id field is set. + */ + boolean hasId(); + + /** + * + * + *
      +   * REST ID of the product, in the form of
      +   * `channel~languageCode~feedLabel~offerId`. Can be used to join data with the
      +   * `product_view` table.
      +   *
      +   * Required in the `SELECT` clause.
      +   * 
      + * + * optional string id = 1; + * + * @return The id. + */ + java.lang.String getId(); + + /** + * + * + *
      +   * REST ID of the product, in the form of
      +   * `channel~languageCode~feedLabel~offerId`. Can be used to join data with the
      +   * `product_view` table.
      +   *
      +   * Required in the `SELECT` clause.
      +   * 
      + * + * optional string id = 1; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
      +   * Merchant-provided id of the product.
      +   * 
      + * + * optional string offer_id = 2; + * + * @return Whether the offerId field is set. + */ + boolean hasOfferId(); + + /** + * + * + *
      +   * Merchant-provided id of the product.
      +   * 
      + * + * optional string offer_id = 2; + * + * @return The offerId. + */ + java.lang.String getOfferId(); + + /** + * + * + *
      +   * Merchant-provided id of the product.
      +   * 
      + * + * optional string offer_id = 2; + * + * @return The bytes for offerId. + */ + com.google.protobuf.ByteString getOfferIdBytes(); + + /** + * + * + *
      +   * Title of the product.
      +   * 
      + * + * optional string title = 3; + * + * @return Whether the title field is set. + */ + boolean hasTitle(); + + /** + * + * + *
      +   * Title of the product.
      +   * 
      + * + * optional string title = 3; + * + * @return The title. + */ + java.lang.String getTitle(); + + /** + * + * + *
      +   * Title of the product.
      +   * 
      + * + * optional string title = 3; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
      +   * Brand of the product.
      +   * 
      + * + * optional string brand = 4; + * + * @return Whether the brand field is set. + */ + boolean hasBrand(); + + /** + * + * + *
      +   * Brand of the product.
      +   * 
      + * + * optional string brand = 4; + * + * @return The brand. + */ + java.lang.String getBrand(); + + /** + * + * + *
      +   * Brand of the product.
      +   * 
      + * + * optional string brand = 4; + * + * @return The bytes for brand. + */ + com.google.protobuf.ByteString getBrandBytes(); + + /** + * + * + *
      +   * Product category (1st level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l1 = 5; + * + * @return Whether the categoryL1 field is set. + */ + boolean hasCategoryL1(); + + /** + * + * + *
      +   * Product category (1st level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l1 = 5; + * + * @return The categoryL1. + */ + java.lang.String getCategoryL1(); + + /** + * + * + *
      +   * Product category (1st level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l1 = 5; + * + * @return The bytes for categoryL1. + */ + com.google.protobuf.ByteString getCategoryL1Bytes(); + + /** + * + * + *
      +   * Product category (2nd level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l2 = 6; + * + * @return Whether the categoryL2 field is set. + */ + boolean hasCategoryL2(); + + /** + * + * + *
      +   * Product category (2nd level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l2 = 6; + * + * @return The categoryL2. + */ + java.lang.String getCategoryL2(); + + /** + * + * + *
      +   * Product category (2nd level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l2 = 6; + * + * @return The bytes for categoryL2. + */ + com.google.protobuf.ByteString getCategoryL2Bytes(); + + /** + * + * + *
      +   * Product category (3rd level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l3 = 7; + * + * @return Whether the categoryL3 field is set. + */ + boolean hasCategoryL3(); + + /** + * + * + *
      +   * Product category (3rd level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l3 = 7; + * + * @return The categoryL3. + */ + java.lang.String getCategoryL3(); + + /** + * + * + *
      +   * Product category (3rd level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l3 = 7; + * + * @return The bytes for categoryL3. + */ + com.google.protobuf.ByteString getCategoryL3Bytes(); + + /** + * + * + *
      +   * Product category (4th level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l4 = 8; + * + * @return Whether the categoryL4 field is set. + */ + boolean hasCategoryL4(); + + /** + * + * + *
      +   * Product category (4th level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l4 = 8; + * + * @return The categoryL4. + */ + java.lang.String getCategoryL4(); + + /** + * + * + *
      +   * Product category (4th level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l4 = 8; + * + * @return The bytes for categoryL4. + */ + com.google.protobuf.ByteString getCategoryL4Bytes(); + + /** + * + * + *
      +   * Product category (5th level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l5 = 9; + * + * @return Whether the categoryL5 field is set. + */ + boolean hasCategoryL5(); + + /** + * + * + *
      +   * Product category (5th level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l5 = 9; + * + * @return The categoryL5. + */ + java.lang.String getCategoryL5(); + + /** + * + * + *
      +   * Product category (5th level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l5 = 9; + * + * @return The bytes for categoryL5. + */ + com.google.protobuf.ByteString getCategoryL5Bytes(); + + /** + * + * + *
      +   * Product type (1st level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l1 = 10; + * + * @return Whether the productTypeL1 field is set. + */ + boolean hasProductTypeL1(); + + /** + * + * + *
      +   * Product type (1st level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l1 = 10; + * + * @return The productTypeL1. + */ + java.lang.String getProductTypeL1(); + + /** + * + * + *
      +   * Product type (1st level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l1 = 10; + * + * @return The bytes for productTypeL1. + */ + com.google.protobuf.ByteString getProductTypeL1Bytes(); + + /** + * + * + *
      +   * Product type (2nd level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l2 = 11; + * + * @return Whether the productTypeL2 field is set. + */ + boolean hasProductTypeL2(); + + /** + * + * + *
      +   * Product type (2nd level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l2 = 11; + * + * @return The productTypeL2. + */ + java.lang.String getProductTypeL2(); + + /** + * + * + *
      +   * Product type (2nd level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l2 = 11; + * + * @return The bytes for productTypeL2. + */ + com.google.protobuf.ByteString getProductTypeL2Bytes(); + + /** + * + * + *
      +   * Product type (3rd level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l3 = 12; + * + * @return Whether the productTypeL3 field is set. + */ + boolean hasProductTypeL3(); + + /** + * + * + *
      +   * Product type (3rd level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l3 = 12; + * + * @return The productTypeL3. + */ + java.lang.String getProductTypeL3(); + + /** + * + * + *
      +   * Product type (3rd level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l3 = 12; + * + * @return The bytes for productTypeL3. + */ + com.google.protobuf.ByteString getProductTypeL3Bytes(); + + /** + * + * + *
      +   * Product type (4th level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l4 = 13; + * + * @return Whether the productTypeL4 field is set. + */ + boolean hasProductTypeL4(); + + /** + * + * + *
      +   * Product type (4th level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l4 = 13; + * + * @return The productTypeL4. + */ + java.lang.String getProductTypeL4(); + + /** + * + * + *
      +   * Product type (4th level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l4 = 13; + * + * @return The bytes for productTypeL4. + */ + com.google.protobuf.ByteString getProductTypeL4Bytes(); + + /** + * + * + *
      +   * Product type (5th level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l5 = 14; + * + * @return Whether the productTypeL5 field is set. + */ + boolean hasProductTypeL5(); + + /** + * + * + *
      +   * Product type (5th level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l5 = 14; + * + * @return The productTypeL5. + */ + java.lang.String getProductTypeL5(); + + /** + * + * + *
      +   * Product type (5th level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l5 = 14; + * + * @return The bytes for productTypeL5. + */ + com.google.protobuf.ByteString getProductTypeL5Bytes(); + + /** + * + * + *
      +   * Current price of the product.
      +   * 
      + * + * .google.shopping.type.Price price = 15; + * + * @return Whether the price field is set. + */ + boolean hasPrice(); + + /** + * + * + *
      +   * Current price of the product.
      +   * 
      + * + * .google.shopping.type.Price price = 15; + * + * @return The price. + */ + com.google.shopping.type.Price getPrice(); + + /** + * + * + *
      +   * Current price of the product.
      +   * 
      + * + * .google.shopping.type.Price price = 15; + */ + com.google.shopping.type.PriceOrBuilder getPriceOrBuilder(); + + /** + * + * + *
      +   * Latest suggested price for the product.
      +   * 
      + * + * .google.shopping.type.Price suggested_price = 16; + * + * @return Whether the suggestedPrice field is set. + */ + boolean hasSuggestedPrice(); + + /** + * + * + *
      +   * Latest suggested price for the product.
      +   * 
      + * + * .google.shopping.type.Price suggested_price = 16; + * + * @return The suggestedPrice. + */ + com.google.shopping.type.Price getSuggestedPrice(); + + /** + * + * + *
      +   * Latest suggested price for the product.
      +   * 
      + * + * .google.shopping.type.Price suggested_price = 16; + */ + com.google.shopping.type.PriceOrBuilder getSuggestedPriceOrBuilder(); + + /** + * + * + *
      +   * Predicted change in impressions as a fraction after introducing the
      +   * suggested price compared to current active price. For example, 0.05 is a 5%
      +   * predicted increase in impressions.
      +   * 
      + * + * optional double predicted_impressions_change_fraction = 17; + * + * @return Whether the predictedImpressionsChangeFraction field is set. + */ + boolean hasPredictedImpressionsChangeFraction(); + + /** + * + * + *
      +   * Predicted change in impressions as a fraction after introducing the
      +   * suggested price compared to current active price. For example, 0.05 is a 5%
      +   * predicted increase in impressions.
      +   * 
      + * + * optional double predicted_impressions_change_fraction = 17; + * + * @return The predictedImpressionsChangeFraction. + */ + double getPredictedImpressionsChangeFraction(); + + /** + * + * + *
      +   * Predicted change in clicks as a fraction after introducing the
      +   * suggested price compared to current active price. For example, 0.05 is a 5%
      +   * predicted increase in clicks.
      +   * 
      + * + * optional double predicted_clicks_change_fraction = 18; + * + * @return Whether the predictedClicksChangeFraction field is set. + */ + boolean hasPredictedClicksChangeFraction(); + + /** + * + * + *
      +   * Predicted change in clicks as a fraction after introducing the
      +   * suggested price compared to current active price. For example, 0.05 is a 5%
      +   * predicted increase in clicks.
      +   * 
      + * + * optional double predicted_clicks_change_fraction = 18; + * + * @return The predictedClicksChangeFraction. + */ + double getPredictedClicksChangeFraction(); + + /** + * + * + *
      +   * Predicted change in conversions as a fraction after introducing the
      +   * suggested price compared to current active price. For example, 0.05 is a 5%
      +   * predicted increase in conversions).
      +   * 
      + * + * optional double predicted_conversions_change_fraction = 19; + * + * @return Whether the predictedConversionsChangeFraction field is set. + */ + boolean hasPredictedConversionsChangeFraction(); + + /** + * + * + *
      +   * Predicted change in conversions as a fraction after introducing the
      +   * suggested price compared to current active price. For example, 0.05 is a 5%
      +   * predicted increase in conversions).
      +   * 
      + * + * optional double predicted_conversions_change_fraction = 19; + * + * @return The predictedConversionsChangeFraction. + */ + double getPredictedConversionsChangeFraction(); + + /** + * + * + *
      +   * The predicted effectiveness of applying the price suggestion, bucketed.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.PriceInsightsProductView.Effectiveness effectiveness = 22; + * + * + * @return The enum numeric value on the wire for effectiveness. + */ + int getEffectivenessValue(); + + /** + * + * + *
      +   * The predicted effectiveness of applying the price suggestion, bucketed.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.PriceInsightsProductView.Effectiveness effectiveness = 22; + * + * + * @return The effectiveness. + */ + com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView.Effectiveness + getEffectiveness(); +} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/ProductPerformanceView.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/ProductPerformanceView.java new file mode 100644 index 000000000000..3527fb35256a --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/ProductPerformanceView.java @@ -0,0 +1,6854 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/reports/v1alpha/reports.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.reports.v1alpha; + +/** + * + * + *
      + * Fields available for query in `product_performance_view` table.
      + *
      + * Product performance data for your account, including performance metrics (for
      + * example, `clicks`) and dimensions according to which performance metrics are
      + * segmented (for example, `offer_id`). Values of product dimensions, such as
      + * `offer_id`, reflect the state of a product at the time of the impression.
      + *
      + * Segment fields cannot be selected in queries without also selecting at least
      + * one metric field.
      + *
      + * Values are only set for fields requested explicitly in the request's search
      + * query.
      + * 
      + * + * Protobuf type {@code google.shopping.merchant.reports.v1alpha.ProductPerformanceView} + */ +public final class ProductPerformanceView extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.reports.v1alpha.ProductPerformanceView) + ProductPerformanceViewOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ProductPerformanceView.newBuilder() to construct. + private ProductPerformanceView(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ProductPerformanceView() { + marketingMethod_ = 0; + customerCountryCode_ = ""; + offerId_ = ""; + title_ = ""; + brand_ = ""; + categoryL1_ = ""; + categoryL2_ = ""; + categoryL3_ = ""; + categoryL4_ = ""; + categoryL5_ = ""; + productTypeL1_ = ""; + productTypeL2_ = ""; + productTypeL3_ = ""; + productTypeL4_ = ""; + productTypeL5_ = ""; + customLabel0_ = ""; + customLabel1_ = ""; + customLabel2_ = ""; + customLabel3_ = ""; + customLabel4_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ProductPerformanceView(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_ProductPerformanceView_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_ProductPerformanceView_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView.class, + com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView.Builder.class); + } + + private int bitField0_; + public static final int MARKETING_METHOD_FIELD_NUMBER = 1; + private int marketingMethod_ = 0; + + /** + * + * + *
      +   * Marketing method to which metrics apply. Segment.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.MarketingMethod.MarketingMethodEnum marketing_method = 1; + * + * + * @return Whether the marketingMethod field is set. + */ + @java.lang.Override + public boolean hasMarketingMethod() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Marketing method to which metrics apply. Segment.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.MarketingMethod.MarketingMethodEnum marketing_method = 1; + * + * + * @return The enum numeric value on the wire for marketingMethod. + */ + @java.lang.Override + public int getMarketingMethodValue() { + return marketingMethod_; + } + + /** + * + * + *
      +   * Marketing method to which metrics apply. Segment.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.MarketingMethod.MarketingMethodEnum marketing_method = 1; + * + * + * @return The marketingMethod. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.MarketingMethod.MarketingMethodEnum + getMarketingMethod() { + com.google.shopping.merchant.reports.v1alpha.MarketingMethod.MarketingMethodEnum result = + com.google.shopping.merchant.reports.v1alpha.MarketingMethod.MarketingMethodEnum.forNumber( + marketingMethod_); + return result == null + ? com.google.shopping.merchant.reports.v1alpha.MarketingMethod.MarketingMethodEnum + .UNRECOGNIZED + : result; + } + + public static final int DATE_FIELD_NUMBER = 2; + private com.google.type.Date date_; + + /** + * + * + *
      +   * Date in the merchant timezone to which metrics apply. Segment.
      +   *
      +   * Condition on `date` is required in the `WHERE` clause.
      +   * 
      + * + * .google.type.Date date = 2; + * + * @return Whether the date field is set. + */ + @java.lang.Override + public boolean hasDate() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * Date in the merchant timezone to which metrics apply. Segment.
      +   *
      +   * Condition on `date` is required in the `WHERE` clause.
      +   * 
      + * + * .google.type.Date date = 2; + * + * @return The date. + */ + @java.lang.Override + public com.google.type.Date getDate() { + return date_ == null ? com.google.type.Date.getDefaultInstance() : date_; + } + + /** + * + * + *
      +   * Date in the merchant timezone to which metrics apply. Segment.
      +   *
      +   * Condition on `date` is required in the `WHERE` clause.
      +   * 
      + * + * .google.type.Date date = 2; + */ + @java.lang.Override + public com.google.type.DateOrBuilder getDateOrBuilder() { + return date_ == null ? com.google.type.Date.getDefaultInstance() : date_; + } + + public static final int WEEK_FIELD_NUMBER = 3; + private com.google.type.Date week_; + + /** + * + * + *
      +   * First day of the week (Monday) of the metrics date in the merchant
      +   * timezone. Segment.
      +   * 
      + * + * .google.type.Date week = 3; + * + * @return Whether the week field is set. + */ + @java.lang.Override + public boolean hasWeek() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +   * First day of the week (Monday) of the metrics date in the merchant
      +   * timezone. Segment.
      +   * 
      + * + * .google.type.Date week = 3; + * + * @return The week. + */ + @java.lang.Override + public com.google.type.Date getWeek() { + return week_ == null ? com.google.type.Date.getDefaultInstance() : week_; + } + + /** + * + * + *
      +   * First day of the week (Monday) of the metrics date in the merchant
      +   * timezone. Segment.
      +   * 
      + * + * .google.type.Date week = 3; + */ + @java.lang.Override + public com.google.type.DateOrBuilder getWeekOrBuilder() { + return week_ == null ? com.google.type.Date.getDefaultInstance() : week_; + } + + public static final int CUSTOMER_COUNTRY_CODE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object customerCountryCode_ = ""; + + /** + * + * + *
      +   * Code of the country where the customer is located at the time of the event.
      +   * Represented in the ISO 3166 format. Segment.
      +   *
      +   * If the customer country cannot be determined, a special 'ZZ' code is
      +   * returned.
      +   * 
      + * + * optional string customer_country_code = 4; + * + * @return Whether the customerCountryCode field is set. + */ + @java.lang.Override + public boolean hasCustomerCountryCode() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +   * Code of the country where the customer is located at the time of the event.
      +   * Represented in the ISO 3166 format. Segment.
      +   *
      +   * If the customer country cannot be determined, a special 'ZZ' code is
      +   * returned.
      +   * 
      + * + * optional string customer_country_code = 4; + * + * @return The customerCountryCode. + */ + @java.lang.Override + public java.lang.String getCustomerCountryCode() { + java.lang.Object ref = customerCountryCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customerCountryCode_ = s; + return s; + } + } + + /** + * + * + *
      +   * Code of the country where the customer is located at the time of the event.
      +   * Represented in the ISO 3166 format. Segment.
      +   *
      +   * If the customer country cannot be determined, a special 'ZZ' code is
      +   * returned.
      +   * 
      + * + * optional string customer_country_code = 4; + * + * @return The bytes for customerCountryCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCustomerCountryCodeBytes() { + java.lang.Object ref = customerCountryCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customerCountryCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OFFER_ID_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object offerId_ = ""; + + /** + * + * + *
      +   * Merchant-provided id of the product. Segment.
      +   * 
      + * + * optional string offer_id = 5; + * + * @return Whether the offerId field is set. + */ + @java.lang.Override + public boolean hasOfferId() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
      +   * Merchant-provided id of the product. Segment.
      +   * 
      + * + * optional string offer_id = 5; + * + * @return The offerId. + */ + @java.lang.Override + public java.lang.String getOfferId() { + java.lang.Object ref = offerId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + offerId_ = s; + return s; + } + } + + /** + * + * + *
      +   * Merchant-provided id of the product. Segment.
      +   * 
      + * + * optional string offer_id = 5; + * + * @return The bytes for offerId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOfferIdBytes() { + java.lang.Object ref = offerId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + offerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TITLE_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + + /** + * + * + *
      +   * Title of the product. Segment.
      +   * 
      + * + * optional string title = 6; + * + * @return Whether the title field is set. + */ + @java.lang.Override + public boolean hasTitle() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
      +   * Title of the product. Segment.
      +   * 
      + * + * optional string title = 6; + * + * @return The title. + */ + @java.lang.Override + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } + } + + /** + * + * + *
      +   * Title of the product. Segment.
      +   * 
      + * + * optional string title = 6; + * + * @return The bytes for title. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BRAND_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object brand_ = ""; + + /** + * + * + *
      +   * Brand of the product. Segment.
      +   * 
      + * + * optional string brand = 7; + * + * @return Whether the brand field is set. + */ + @java.lang.Override + public boolean hasBrand() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
      +   * Brand of the product. Segment.
      +   * 
      + * + * optional string brand = 7; + * + * @return The brand. + */ + @java.lang.Override + public java.lang.String getBrand() { + java.lang.Object ref = brand_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + brand_ = s; + return s; + } + } + + /** + * + * + *
      +   * Brand of the product. Segment.
      +   * 
      + * + * optional string brand = 7; + * + * @return The bytes for brand. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBrandBytes() { + java.lang.Object ref = brand_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + brand_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CATEGORY_L1_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object categoryL1_ = ""; + + /** + * + * + *
      +   * [Product category (1st
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in Google's product taxonomy. Segment.
      +   * 
      + * + * optional string category_l1 = 8; + * + * @return Whether the categoryL1 field is set. + */ + @java.lang.Override + public boolean hasCategoryL1() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
      +   * [Product category (1st
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in Google's product taxonomy. Segment.
      +   * 
      + * + * optional string category_l1 = 8; + * + * @return The categoryL1. + */ + @java.lang.Override + public java.lang.String getCategoryL1() { + java.lang.Object ref = categoryL1_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + categoryL1_ = s; + return s; + } + } + + /** + * + * + *
      +   * [Product category (1st
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in Google's product taxonomy. Segment.
      +   * 
      + * + * optional string category_l1 = 8; + * + * @return The bytes for categoryL1. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCategoryL1Bytes() { + java.lang.Object ref = categoryL1_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + categoryL1_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CATEGORY_L2_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object categoryL2_ = ""; + + /** + * + * + *
      +   * [Product category (2nd
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in Google's product taxonomy. Segment.
      +   * 
      + * + * optional string category_l2 = 9; + * + * @return Whether the categoryL2 field is set. + */ + @java.lang.Override + public boolean hasCategoryL2() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
      +   * [Product category (2nd
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in Google's product taxonomy. Segment.
      +   * 
      + * + * optional string category_l2 = 9; + * + * @return The categoryL2. + */ + @java.lang.Override + public java.lang.String getCategoryL2() { + java.lang.Object ref = categoryL2_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + categoryL2_ = s; + return s; + } + } + + /** + * + * + *
      +   * [Product category (2nd
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in Google's product taxonomy. Segment.
      +   * 
      + * + * optional string category_l2 = 9; + * + * @return The bytes for categoryL2. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCategoryL2Bytes() { + java.lang.Object ref = categoryL2_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + categoryL2_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CATEGORY_L3_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object categoryL3_ = ""; + + /** + * + * + *
      +   * [Product category (3rd
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in Google's product taxonomy. Segment.
      +   * 
      + * + * optional string category_l3 = 10; + * + * @return Whether the categoryL3 field is set. + */ + @java.lang.Override + public boolean hasCategoryL3() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
      +   * [Product category (3rd
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in Google's product taxonomy. Segment.
      +   * 
      + * + * optional string category_l3 = 10; + * + * @return The categoryL3. + */ + @java.lang.Override + public java.lang.String getCategoryL3() { + java.lang.Object ref = categoryL3_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + categoryL3_ = s; + return s; + } + } + + /** + * + * + *
      +   * [Product category (3rd
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in Google's product taxonomy. Segment.
      +   * 
      + * + * optional string category_l3 = 10; + * + * @return The bytes for categoryL3. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCategoryL3Bytes() { + java.lang.Object ref = categoryL3_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + categoryL3_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CATEGORY_L4_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object categoryL4_ = ""; + + /** + * + * + *
      +   * [Product category (4th
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in Google's product taxonomy. Segment.
      +   * 
      + * + * optional string category_l4 = 11; + * + * @return Whether the categoryL4 field is set. + */ + @java.lang.Override + public boolean hasCategoryL4() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
      +   * [Product category (4th
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in Google's product taxonomy. Segment.
      +   * 
      + * + * optional string category_l4 = 11; + * + * @return The categoryL4. + */ + @java.lang.Override + public java.lang.String getCategoryL4() { + java.lang.Object ref = categoryL4_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + categoryL4_ = s; + return s; + } + } + + /** + * + * + *
      +   * [Product category (4th
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in Google's product taxonomy. Segment.
      +   * 
      + * + * optional string category_l4 = 11; + * + * @return The bytes for categoryL4. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCategoryL4Bytes() { + java.lang.Object ref = categoryL4_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + categoryL4_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CATEGORY_L5_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private volatile java.lang.Object categoryL5_ = ""; + + /** + * + * + *
      +   * [Product category (5th
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in Google's product taxonomy. Segment.
      +   * 
      + * + * optional string category_l5 = 12; + * + * @return Whether the categoryL5 field is set. + */ + @java.lang.Override + public boolean hasCategoryL5() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
      +   * [Product category (5th
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in Google's product taxonomy. Segment.
      +   * 
      + * + * optional string category_l5 = 12; + * + * @return The categoryL5. + */ + @java.lang.Override + public java.lang.String getCategoryL5() { + java.lang.Object ref = categoryL5_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + categoryL5_ = s; + return s; + } + } + + /** + * + * + *
      +   * [Product category (5th
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in Google's product taxonomy. Segment.
      +   * 
      + * + * optional string category_l5 = 12; + * + * @return The bytes for categoryL5. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCategoryL5Bytes() { + java.lang.Object ref = categoryL5_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + categoryL5_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRODUCT_TYPE_L1_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private volatile java.lang.Object productTypeL1_ = ""; + + /** + * + * + *
      +   * [Product type (1st
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in merchant's own product taxonomy. Segment.
      +   * 
      + * + * optional string product_type_l1 = 13; + * + * @return Whether the productTypeL1 field is set. + */ + @java.lang.Override + public boolean hasProductTypeL1() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
      +   * [Product type (1st
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in merchant's own product taxonomy. Segment.
      +   * 
      + * + * optional string product_type_l1 = 13; + * + * @return The productTypeL1. + */ + @java.lang.Override + public java.lang.String getProductTypeL1() { + java.lang.Object ref = productTypeL1_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + productTypeL1_ = s; + return s; + } + } + + /** + * + * + *
      +   * [Product type (1st
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in merchant's own product taxonomy. Segment.
      +   * 
      + * + * optional string product_type_l1 = 13; + * + * @return The bytes for productTypeL1. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProductTypeL1Bytes() { + java.lang.Object ref = productTypeL1_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + productTypeL1_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRODUCT_TYPE_L2_FIELD_NUMBER = 14; + + @SuppressWarnings("serial") + private volatile java.lang.Object productTypeL2_ = ""; + + /** + * + * + *
      +   * [Product type (2nd
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in merchant's own product taxonomy. Segment.
      +   * 
      + * + * optional string product_type_l2 = 14; + * + * @return Whether the productTypeL2 field is set. + */ + @java.lang.Override + public boolean hasProductTypeL2() { + return ((bitField0_ & 0x00002000) != 0); + } + + /** + * + * + *
      +   * [Product type (2nd
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in merchant's own product taxonomy. Segment.
      +   * 
      + * + * optional string product_type_l2 = 14; + * + * @return The productTypeL2. + */ + @java.lang.Override + public java.lang.String getProductTypeL2() { + java.lang.Object ref = productTypeL2_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + productTypeL2_ = s; + return s; + } + } + + /** + * + * + *
      +   * [Product type (2nd
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in merchant's own product taxonomy. Segment.
      +   * 
      + * + * optional string product_type_l2 = 14; + * + * @return The bytes for productTypeL2. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProductTypeL2Bytes() { + java.lang.Object ref = productTypeL2_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + productTypeL2_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRODUCT_TYPE_L3_FIELD_NUMBER = 15; + + @SuppressWarnings("serial") + private volatile java.lang.Object productTypeL3_ = ""; + + /** + * + * + *
      +   * [Product type (3rd
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in merchant's own product taxonomy. Segment.
      +   * 
      + * + * optional string product_type_l3 = 15; + * + * @return Whether the productTypeL3 field is set. + */ + @java.lang.Override + public boolean hasProductTypeL3() { + return ((bitField0_ & 0x00004000) != 0); + } + + /** + * + * + *
      +   * [Product type (3rd
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in merchant's own product taxonomy. Segment.
      +   * 
      + * + * optional string product_type_l3 = 15; + * + * @return The productTypeL3. + */ + @java.lang.Override + public java.lang.String getProductTypeL3() { + java.lang.Object ref = productTypeL3_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + productTypeL3_ = s; + return s; + } + } + + /** + * + * + *
      +   * [Product type (3rd
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in merchant's own product taxonomy. Segment.
      +   * 
      + * + * optional string product_type_l3 = 15; + * + * @return The bytes for productTypeL3. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProductTypeL3Bytes() { + java.lang.Object ref = productTypeL3_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + productTypeL3_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRODUCT_TYPE_L4_FIELD_NUMBER = 16; + + @SuppressWarnings("serial") + private volatile java.lang.Object productTypeL4_ = ""; + + /** + * + * + *
      +   * [Product type (4th
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in merchant's own product taxonomy. Segment.
      +   * 
      + * + * optional string product_type_l4 = 16; + * + * @return Whether the productTypeL4 field is set. + */ + @java.lang.Override + public boolean hasProductTypeL4() { + return ((bitField0_ & 0x00008000) != 0); + } + + /** + * + * + *
      +   * [Product type (4th
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in merchant's own product taxonomy. Segment.
      +   * 
      + * + * optional string product_type_l4 = 16; + * + * @return The productTypeL4. + */ + @java.lang.Override + public java.lang.String getProductTypeL4() { + java.lang.Object ref = productTypeL4_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + productTypeL4_ = s; + return s; + } + } + + /** + * + * + *
      +   * [Product type (4th
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in merchant's own product taxonomy. Segment.
      +   * 
      + * + * optional string product_type_l4 = 16; + * + * @return The bytes for productTypeL4. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProductTypeL4Bytes() { + java.lang.Object ref = productTypeL4_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + productTypeL4_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRODUCT_TYPE_L5_FIELD_NUMBER = 17; + + @SuppressWarnings("serial") + private volatile java.lang.Object productTypeL5_ = ""; + + /** + * + * + *
      +   * [Product type (5th
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in merchant's own product taxonomy. Segment.
      +   * 
      + * + * optional string product_type_l5 = 17; + * + * @return Whether the productTypeL5 field is set. + */ + @java.lang.Override + public boolean hasProductTypeL5() { + return ((bitField0_ & 0x00010000) != 0); + } + + /** + * + * + *
      +   * [Product type (5th
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in merchant's own product taxonomy. Segment.
      +   * 
      + * + * optional string product_type_l5 = 17; + * + * @return The productTypeL5. + */ + @java.lang.Override + public java.lang.String getProductTypeL5() { + java.lang.Object ref = productTypeL5_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + productTypeL5_ = s; + return s; + } + } + + /** + * + * + *
      +   * [Product type (5th
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in merchant's own product taxonomy. Segment.
      +   * 
      + * + * optional string product_type_l5 = 17; + * + * @return The bytes for productTypeL5. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProductTypeL5Bytes() { + java.lang.Object ref = productTypeL5_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + productTypeL5_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CUSTOM_LABEL0_FIELD_NUMBER = 18; + + @SuppressWarnings("serial") + private volatile java.lang.Object customLabel0_ = ""; + + /** + * + * + *
      +   * Custom label 0 for custom grouping of products. Segment.
      +   * 
      + * + * optional string custom_label0 = 18; + * + * @return Whether the customLabel0 field is set. + */ + @java.lang.Override + public boolean hasCustomLabel0() { + return ((bitField0_ & 0x00020000) != 0); + } + + /** + * + * + *
      +   * Custom label 0 for custom grouping of products. Segment.
      +   * 
      + * + * optional string custom_label0 = 18; + * + * @return The customLabel0. + */ + @java.lang.Override + public java.lang.String getCustomLabel0() { + java.lang.Object ref = customLabel0_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customLabel0_ = s; + return s; + } + } + + /** + * + * + *
      +   * Custom label 0 for custom grouping of products. Segment.
      +   * 
      + * + * optional string custom_label0 = 18; + * + * @return The bytes for customLabel0. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCustomLabel0Bytes() { + java.lang.Object ref = customLabel0_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customLabel0_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CUSTOM_LABEL1_FIELD_NUMBER = 19; + + @SuppressWarnings("serial") + private volatile java.lang.Object customLabel1_ = ""; + + /** + * + * + *
      +   * Custom label 1 for custom grouping of products. Segment.
      +   * 
      + * + * optional string custom_label1 = 19; + * + * @return Whether the customLabel1 field is set. + */ + @java.lang.Override + public boolean hasCustomLabel1() { + return ((bitField0_ & 0x00040000) != 0); + } + + /** + * + * + *
      +   * Custom label 1 for custom grouping of products. Segment.
      +   * 
      + * + * optional string custom_label1 = 19; + * + * @return The customLabel1. + */ + @java.lang.Override + public java.lang.String getCustomLabel1() { + java.lang.Object ref = customLabel1_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customLabel1_ = s; + return s; + } + } + + /** + * + * + *
      +   * Custom label 1 for custom grouping of products. Segment.
      +   * 
      + * + * optional string custom_label1 = 19; + * + * @return The bytes for customLabel1. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCustomLabel1Bytes() { + java.lang.Object ref = customLabel1_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customLabel1_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CUSTOM_LABEL2_FIELD_NUMBER = 20; + + @SuppressWarnings("serial") + private volatile java.lang.Object customLabel2_ = ""; + + /** + * + * + *
      +   * Custom label 2 for custom grouping of products. Segment.
      +   * 
      + * + * optional string custom_label2 = 20; + * + * @return Whether the customLabel2 field is set. + */ + @java.lang.Override + public boolean hasCustomLabel2() { + return ((bitField0_ & 0x00080000) != 0); + } + + /** + * + * + *
      +   * Custom label 2 for custom grouping of products. Segment.
      +   * 
      + * + * optional string custom_label2 = 20; + * + * @return The customLabel2. + */ + @java.lang.Override + public java.lang.String getCustomLabel2() { + java.lang.Object ref = customLabel2_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customLabel2_ = s; + return s; + } + } + + /** + * + * + *
      +   * Custom label 2 for custom grouping of products. Segment.
      +   * 
      + * + * optional string custom_label2 = 20; + * + * @return The bytes for customLabel2. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCustomLabel2Bytes() { + java.lang.Object ref = customLabel2_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customLabel2_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CUSTOM_LABEL3_FIELD_NUMBER = 21; + + @SuppressWarnings("serial") + private volatile java.lang.Object customLabel3_ = ""; + + /** + * + * + *
      +   * Custom label 3 for custom grouping of products. Segment.
      +   * 
      + * + * optional string custom_label3 = 21; + * + * @return Whether the customLabel3 field is set. + */ + @java.lang.Override + public boolean hasCustomLabel3() { + return ((bitField0_ & 0x00100000) != 0); + } + + /** + * + * + *
      +   * Custom label 3 for custom grouping of products. Segment.
      +   * 
      + * + * optional string custom_label3 = 21; + * + * @return The customLabel3. + */ + @java.lang.Override + public java.lang.String getCustomLabel3() { + java.lang.Object ref = customLabel3_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customLabel3_ = s; + return s; + } + } + + /** + * + * + *
      +   * Custom label 3 for custom grouping of products. Segment.
      +   * 
      + * + * optional string custom_label3 = 21; + * + * @return The bytes for customLabel3. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCustomLabel3Bytes() { + java.lang.Object ref = customLabel3_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customLabel3_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CUSTOM_LABEL4_FIELD_NUMBER = 22; + + @SuppressWarnings("serial") + private volatile java.lang.Object customLabel4_ = ""; + + /** + * + * + *
      +   * Custom label 4 for custom grouping of products. Segment.
      +   * 
      + * + * optional string custom_label4 = 22; + * + * @return Whether the customLabel4 field is set. + */ + @java.lang.Override + public boolean hasCustomLabel4() { + return ((bitField0_ & 0x00200000) != 0); + } + + /** + * + * + *
      +   * Custom label 4 for custom grouping of products. Segment.
      +   * 
      + * + * optional string custom_label4 = 22; + * + * @return The customLabel4. + */ + @java.lang.Override + public java.lang.String getCustomLabel4() { + java.lang.Object ref = customLabel4_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customLabel4_ = s; + return s; + } + } + + /** + * + * + *
      +   * Custom label 4 for custom grouping of products. Segment.
      +   * 
      + * + * optional string custom_label4 = 22; + * + * @return The bytes for customLabel4. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCustomLabel4Bytes() { + java.lang.Object ref = customLabel4_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customLabel4_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLICKS_FIELD_NUMBER = 23; + private long clicks_ = 0L; + + /** + * + * + *
      +   * Number of clicks. Metric.
      +   * 
      + * + * optional int64 clicks = 23; + * + * @return Whether the clicks field is set. + */ + @java.lang.Override + public boolean hasClicks() { + return ((bitField0_ & 0x00400000) != 0); + } + + /** + * + * + *
      +   * Number of clicks. Metric.
      +   * 
      + * + * optional int64 clicks = 23; + * + * @return The clicks. + */ + @java.lang.Override + public long getClicks() { + return clicks_; + } + + public static final int IMPRESSIONS_FIELD_NUMBER = 24; + private long impressions_ = 0L; + + /** + * + * + *
      +   * Number of times merchant's products are shown. Metric.
      +   * 
      + * + * optional int64 impressions = 24; + * + * @return Whether the impressions field is set. + */ + @java.lang.Override + public boolean hasImpressions() { + return ((bitField0_ & 0x00800000) != 0); + } + + /** + * + * + *
      +   * Number of times merchant's products are shown. Metric.
      +   * 
      + * + * optional int64 impressions = 24; + * + * @return The impressions. + */ + @java.lang.Override + public long getImpressions() { + return impressions_; + } + + public static final int CLICK_THROUGH_RATE_FIELD_NUMBER = 25; + private double clickThroughRate_ = 0D; + + /** + * + * + *
      +   * Click-through rate - the number of clicks merchant's products receive
      +   * (clicks) divided by the number of times the products are shown
      +   * (impressions). Metric.
      +   * 
      + * + * optional double click_through_rate = 25; + * + * @return Whether the clickThroughRate field is set. + */ + @java.lang.Override + public boolean hasClickThroughRate() { + return ((bitField0_ & 0x01000000) != 0); + } + + /** + * + * + *
      +   * Click-through rate - the number of clicks merchant's products receive
      +   * (clicks) divided by the number of times the products are shown
      +   * (impressions). Metric.
      +   * 
      + * + * optional double click_through_rate = 25; + * + * @return The clickThroughRate. + */ + @java.lang.Override + public double getClickThroughRate() { + return clickThroughRate_; + } + + public static final int CONVERSIONS_FIELD_NUMBER = 26; + private double conversions_ = 0D; + + /** + * + * + *
      +   * Number of conversions attributed to the product, reported on the conversion
      +   * date. Depending on the attribution model, a conversion might be distributed
      +   * across multiple clicks, where each click gets its own credit assigned. This
      +   * metric is a sum of all such credits. Metric.
      +   *
      +   * Available only for the `FREE` traffic source.
      +   * 
      + * + * optional double conversions = 26; + * + * @return Whether the conversions field is set. + */ + @java.lang.Override + public boolean hasConversions() { + return ((bitField0_ & 0x02000000) != 0); + } + + /** + * + * + *
      +   * Number of conversions attributed to the product, reported on the conversion
      +   * date. Depending on the attribution model, a conversion might be distributed
      +   * across multiple clicks, where each click gets its own credit assigned. This
      +   * metric is a sum of all such credits. Metric.
      +   *
      +   * Available only for the `FREE` traffic source.
      +   * 
      + * + * optional double conversions = 26; + * + * @return The conversions. + */ + @java.lang.Override + public double getConversions() { + return conversions_; + } + + public static final int CONVERSION_VALUE_FIELD_NUMBER = 27; + private com.google.shopping.type.Price conversionValue_; + + /** + * + * + *
      +   * Value of conversions attributed to the product, reported on the conversion
      +   * date. Metric.
      +   *
      +   * Available only for the `FREE` traffic source.
      +   * 
      + * + * .google.shopping.type.Price conversion_value = 27; + * + * @return Whether the conversionValue field is set. + */ + @java.lang.Override + public boolean hasConversionValue() { + return ((bitField0_ & 0x04000000) != 0); + } + + /** + * + * + *
      +   * Value of conversions attributed to the product, reported on the conversion
      +   * date. Metric.
      +   *
      +   * Available only for the `FREE` traffic source.
      +   * 
      + * + * .google.shopping.type.Price conversion_value = 27; + * + * @return The conversionValue. + */ + @java.lang.Override + public com.google.shopping.type.Price getConversionValue() { + return conversionValue_ == null + ? com.google.shopping.type.Price.getDefaultInstance() + : conversionValue_; + } + + /** + * + * + *
      +   * Value of conversions attributed to the product, reported on the conversion
      +   * date. Metric.
      +   *
      +   * Available only for the `FREE` traffic source.
      +   * 
      + * + * .google.shopping.type.Price conversion_value = 27; + */ + @java.lang.Override + public com.google.shopping.type.PriceOrBuilder getConversionValueOrBuilder() { + return conversionValue_ == null + ? com.google.shopping.type.Price.getDefaultInstance() + : conversionValue_; + } + + public static final int CONVERSION_RATE_FIELD_NUMBER = 28; + private double conversionRate_ = 0D; + + /** + * + * + *
      +   * Number of conversions divided by the number of clicks, reported on the
      +   * impression date. Metric.
      +   *
      +   * Available only for the `FREE` traffic source.
      +   * 
      + * + * optional double conversion_rate = 28; + * + * @return Whether the conversionRate field is set. + */ + @java.lang.Override + public boolean hasConversionRate() { + return ((bitField0_ & 0x08000000) != 0); + } + + /** + * + * + *
      +   * Number of conversions divided by the number of clicks, reported on the
      +   * impression date. Metric.
      +   *
      +   * Available only for the `FREE` traffic source.
      +   * 
      + * + * optional double conversion_rate = 28; + * + * @return The conversionRate. + */ + @java.lang.Override + public double getConversionRate() { + return conversionRate_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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.writeEnum(1, marketingMethod_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getDate()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getWeek()); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, customerCountryCode_); + } + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, offerId_); + } + if (((bitField0_ & 0x00000020) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, title_); + } + if (((bitField0_ & 0x00000040) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, brand_); + } + if (((bitField0_ & 0x00000080) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, categoryL1_); + } + if (((bitField0_ & 0x00000100) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, categoryL2_); + } + if (((bitField0_ & 0x00000200) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, categoryL3_); + } + if (((bitField0_ & 0x00000400) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, categoryL4_); + } + if (((bitField0_ & 0x00000800) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, categoryL5_); + } + if (((bitField0_ & 0x00001000) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, productTypeL1_); + } + if (((bitField0_ & 0x00002000) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, productTypeL2_); + } + if (((bitField0_ & 0x00004000) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 15, productTypeL3_); + } + if (((bitField0_ & 0x00008000) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 16, productTypeL4_); + } + if (((bitField0_ & 0x00010000) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 17, productTypeL5_); + } + if (((bitField0_ & 0x00020000) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 18, customLabel0_); + } + if (((bitField0_ & 0x00040000) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 19, customLabel1_); + } + if (((bitField0_ & 0x00080000) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 20, customLabel2_); + } + if (((bitField0_ & 0x00100000) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 21, customLabel3_); + } + if (((bitField0_ & 0x00200000) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 22, customLabel4_); + } + if (((bitField0_ & 0x00400000) != 0)) { + output.writeInt64(23, clicks_); + } + if (((bitField0_ & 0x00800000) != 0)) { + output.writeInt64(24, impressions_); + } + if (((bitField0_ & 0x01000000) != 0)) { + output.writeDouble(25, clickThroughRate_); + } + if (((bitField0_ & 0x02000000) != 0)) { + output.writeDouble(26, conversions_); + } + if (((bitField0_ & 0x04000000) != 0)) { + output.writeMessage(27, getConversionValue()); + } + if (((bitField0_ & 0x08000000) != 0)) { + output.writeDouble(28, conversionRate_); + } + 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.computeEnumSize(1, marketingMethod_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDate()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getWeek()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, customerCountryCode_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, offerId_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, title_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, brand_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, categoryL1_); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, categoryL2_); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, categoryL3_); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, categoryL4_); + } + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, categoryL5_); + } + if (((bitField0_ & 0x00001000) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, productTypeL1_); + } + if (((bitField0_ & 0x00002000) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, productTypeL2_); + } + if (((bitField0_ & 0x00004000) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, productTypeL3_); + } + if (((bitField0_ & 0x00008000) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, productTypeL4_); + } + if (((bitField0_ & 0x00010000) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, productTypeL5_); + } + if (((bitField0_ & 0x00020000) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, customLabel0_); + } + if (((bitField0_ & 0x00040000) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, customLabel1_); + } + if (((bitField0_ & 0x00080000) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, customLabel2_); + } + if (((bitField0_ & 0x00100000) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, customLabel3_); + } + if (((bitField0_ & 0x00200000) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, customLabel4_); + } + if (((bitField0_ & 0x00400000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(23, clicks_); + } + if (((bitField0_ & 0x00800000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(24, impressions_); + } + if (((bitField0_ & 0x01000000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(25, clickThroughRate_); + } + if (((bitField0_ & 0x02000000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(26, conversions_); + } + if (((bitField0_ & 0x04000000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(27, getConversionValue()); + } + if (((bitField0_ & 0x08000000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(28, conversionRate_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView)) { + return super.equals(obj); + } + com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView other = + (com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView) obj; + + if (hasMarketingMethod() != other.hasMarketingMethod()) return false; + if (hasMarketingMethod()) { + if (marketingMethod_ != other.marketingMethod_) return false; + } + if (hasDate() != other.hasDate()) return false; + if (hasDate()) { + if (!getDate().equals(other.getDate())) return false; + } + if (hasWeek() != other.hasWeek()) return false; + if (hasWeek()) { + if (!getWeek().equals(other.getWeek())) return false; + } + if (hasCustomerCountryCode() != other.hasCustomerCountryCode()) return false; + if (hasCustomerCountryCode()) { + if (!getCustomerCountryCode().equals(other.getCustomerCountryCode())) return false; + } + if (hasOfferId() != other.hasOfferId()) return false; + if (hasOfferId()) { + if (!getOfferId().equals(other.getOfferId())) return false; + } + if (hasTitle() != other.hasTitle()) return false; + if (hasTitle()) { + if (!getTitle().equals(other.getTitle())) return false; + } + if (hasBrand() != other.hasBrand()) return false; + if (hasBrand()) { + if (!getBrand().equals(other.getBrand())) return false; + } + if (hasCategoryL1() != other.hasCategoryL1()) return false; + if (hasCategoryL1()) { + if (!getCategoryL1().equals(other.getCategoryL1())) return false; + } + if (hasCategoryL2() != other.hasCategoryL2()) return false; + if (hasCategoryL2()) { + if (!getCategoryL2().equals(other.getCategoryL2())) return false; + } + if (hasCategoryL3() != other.hasCategoryL3()) return false; + if (hasCategoryL3()) { + if (!getCategoryL3().equals(other.getCategoryL3())) return false; + } + if (hasCategoryL4() != other.hasCategoryL4()) return false; + if (hasCategoryL4()) { + if (!getCategoryL4().equals(other.getCategoryL4())) return false; + } + if (hasCategoryL5() != other.hasCategoryL5()) return false; + if (hasCategoryL5()) { + if (!getCategoryL5().equals(other.getCategoryL5())) return false; + } + if (hasProductTypeL1() != other.hasProductTypeL1()) return false; + if (hasProductTypeL1()) { + if (!getProductTypeL1().equals(other.getProductTypeL1())) return false; + } + if (hasProductTypeL2() != other.hasProductTypeL2()) return false; + if (hasProductTypeL2()) { + if (!getProductTypeL2().equals(other.getProductTypeL2())) return false; + } + if (hasProductTypeL3() != other.hasProductTypeL3()) return false; + if (hasProductTypeL3()) { + if (!getProductTypeL3().equals(other.getProductTypeL3())) return false; + } + if (hasProductTypeL4() != other.hasProductTypeL4()) return false; + if (hasProductTypeL4()) { + if (!getProductTypeL4().equals(other.getProductTypeL4())) return false; + } + if (hasProductTypeL5() != other.hasProductTypeL5()) return false; + if (hasProductTypeL5()) { + if (!getProductTypeL5().equals(other.getProductTypeL5())) return false; + } + if (hasCustomLabel0() != other.hasCustomLabel0()) return false; + if (hasCustomLabel0()) { + if (!getCustomLabel0().equals(other.getCustomLabel0())) return false; + } + if (hasCustomLabel1() != other.hasCustomLabel1()) return false; + if (hasCustomLabel1()) { + if (!getCustomLabel1().equals(other.getCustomLabel1())) return false; + } + if (hasCustomLabel2() != other.hasCustomLabel2()) return false; + if (hasCustomLabel2()) { + if (!getCustomLabel2().equals(other.getCustomLabel2())) return false; + } + if (hasCustomLabel3() != other.hasCustomLabel3()) return false; + if (hasCustomLabel3()) { + if (!getCustomLabel3().equals(other.getCustomLabel3())) return false; + } + if (hasCustomLabel4() != other.hasCustomLabel4()) return false; + if (hasCustomLabel4()) { + if (!getCustomLabel4().equals(other.getCustomLabel4())) return false; + } + if (hasClicks() != other.hasClicks()) return false; + if (hasClicks()) { + if (getClicks() != other.getClicks()) return false; + } + if (hasImpressions() != other.hasImpressions()) return false; + if (hasImpressions()) { + if (getImpressions() != other.getImpressions()) return false; + } + if (hasClickThroughRate() != other.hasClickThroughRate()) return false; + if (hasClickThroughRate()) { + if (java.lang.Double.doubleToLongBits(getClickThroughRate()) + != java.lang.Double.doubleToLongBits(other.getClickThroughRate())) return false; + } + if (hasConversions() != other.hasConversions()) return false; + if (hasConversions()) { + if (java.lang.Double.doubleToLongBits(getConversions()) + != java.lang.Double.doubleToLongBits(other.getConversions())) return false; + } + if (hasConversionValue() != other.hasConversionValue()) return false; + if (hasConversionValue()) { + if (!getConversionValue().equals(other.getConversionValue())) return false; + } + if (hasConversionRate() != other.hasConversionRate()) return false; + if (hasConversionRate()) { + if (java.lang.Double.doubleToLongBits(getConversionRate()) + != java.lang.Double.doubleToLongBits(other.getConversionRate())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMarketingMethod()) { + hash = (37 * hash) + MARKETING_METHOD_FIELD_NUMBER; + hash = (53 * hash) + marketingMethod_; + } + if (hasDate()) { + hash = (37 * hash) + DATE_FIELD_NUMBER; + hash = (53 * hash) + getDate().hashCode(); + } + if (hasWeek()) { + hash = (37 * hash) + WEEK_FIELD_NUMBER; + hash = (53 * hash) + getWeek().hashCode(); + } + if (hasCustomerCountryCode()) { + hash = (37 * hash) + CUSTOMER_COUNTRY_CODE_FIELD_NUMBER; + hash = (53 * hash) + getCustomerCountryCode().hashCode(); + } + if (hasOfferId()) { + hash = (37 * hash) + OFFER_ID_FIELD_NUMBER; + hash = (53 * hash) + getOfferId().hashCode(); + } + if (hasTitle()) { + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + } + if (hasBrand()) { + hash = (37 * hash) + BRAND_FIELD_NUMBER; + hash = (53 * hash) + getBrand().hashCode(); + } + if (hasCategoryL1()) { + hash = (37 * hash) + CATEGORY_L1_FIELD_NUMBER; + hash = (53 * hash) + getCategoryL1().hashCode(); + } + if (hasCategoryL2()) { + hash = (37 * hash) + CATEGORY_L2_FIELD_NUMBER; + hash = (53 * hash) + getCategoryL2().hashCode(); + } + if (hasCategoryL3()) { + hash = (37 * hash) + CATEGORY_L3_FIELD_NUMBER; + hash = (53 * hash) + getCategoryL3().hashCode(); + } + if (hasCategoryL4()) { + hash = (37 * hash) + CATEGORY_L4_FIELD_NUMBER; + hash = (53 * hash) + getCategoryL4().hashCode(); + } + if (hasCategoryL5()) { + hash = (37 * hash) + CATEGORY_L5_FIELD_NUMBER; + hash = (53 * hash) + getCategoryL5().hashCode(); + } + if (hasProductTypeL1()) { + hash = (37 * hash) + PRODUCT_TYPE_L1_FIELD_NUMBER; + hash = (53 * hash) + getProductTypeL1().hashCode(); + } + if (hasProductTypeL2()) { + hash = (37 * hash) + PRODUCT_TYPE_L2_FIELD_NUMBER; + hash = (53 * hash) + getProductTypeL2().hashCode(); + } + if (hasProductTypeL3()) { + hash = (37 * hash) + PRODUCT_TYPE_L3_FIELD_NUMBER; + hash = (53 * hash) + getProductTypeL3().hashCode(); + } + if (hasProductTypeL4()) { + hash = (37 * hash) + PRODUCT_TYPE_L4_FIELD_NUMBER; + hash = (53 * hash) + getProductTypeL4().hashCode(); + } + if (hasProductTypeL5()) { + hash = (37 * hash) + PRODUCT_TYPE_L5_FIELD_NUMBER; + hash = (53 * hash) + getProductTypeL5().hashCode(); + } + if (hasCustomLabel0()) { + hash = (37 * hash) + CUSTOM_LABEL0_FIELD_NUMBER; + hash = (53 * hash) + getCustomLabel0().hashCode(); + } + if (hasCustomLabel1()) { + hash = (37 * hash) + CUSTOM_LABEL1_FIELD_NUMBER; + hash = (53 * hash) + getCustomLabel1().hashCode(); + } + if (hasCustomLabel2()) { + hash = (37 * hash) + CUSTOM_LABEL2_FIELD_NUMBER; + hash = (53 * hash) + getCustomLabel2().hashCode(); + } + if (hasCustomLabel3()) { + hash = (37 * hash) + CUSTOM_LABEL3_FIELD_NUMBER; + hash = (53 * hash) + getCustomLabel3().hashCode(); + } + if (hasCustomLabel4()) { + hash = (37 * hash) + CUSTOM_LABEL4_FIELD_NUMBER; + hash = (53 * hash) + getCustomLabel4().hashCode(); + } + if (hasClicks()) { + hash = (37 * hash) + CLICKS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getClicks()); + } + if (hasImpressions()) { + hash = (37 * hash) + IMPRESSIONS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getImpressions()); + } + if (hasClickThroughRate()) { + hash = (37 * hash) + CLICK_THROUGH_RATE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getClickThroughRate())); + } + if (hasConversions()) { + hash = (37 * hash) + CONVERSIONS_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getConversions())); + } + if (hasConversionValue()) { + hash = (37 * hash) + CONVERSION_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getConversionValue().hashCode(); + } + if (hasConversionRate()) { + hash = (37 * hash) + CONVERSION_RATE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getConversionRate())); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Fields available for query in `product_performance_view` table.
      +   *
      +   * Product performance data for your account, including performance metrics (for
      +   * example, `clicks`) and dimensions according to which performance metrics are
      +   * segmented (for example, `offer_id`). Values of product dimensions, such as
      +   * `offer_id`, reflect the state of a product at the time of the impression.
      +   *
      +   * Segment fields cannot be selected in queries without also selecting at least
      +   * one metric field.
      +   *
      +   * Values are only set for fields requested explicitly in the request's search
      +   * query.
      +   * 
      + * + * Protobuf type {@code google.shopping.merchant.reports.v1alpha.ProductPerformanceView} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.reports.v1alpha.ProductPerformanceView) + com.google.shopping.merchant.reports.v1alpha.ProductPerformanceViewOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_ProductPerformanceView_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_ProductPerformanceView_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView.class, + com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView.Builder.class); + } + + // Construct using + // com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDateFieldBuilder(); + getWeekFieldBuilder(); + getConversionValueFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + marketingMethod_ = 0; + date_ = null; + if (dateBuilder_ != null) { + dateBuilder_.dispose(); + dateBuilder_ = null; + } + week_ = null; + if (weekBuilder_ != null) { + weekBuilder_.dispose(); + weekBuilder_ = null; + } + customerCountryCode_ = ""; + offerId_ = ""; + title_ = ""; + brand_ = ""; + categoryL1_ = ""; + categoryL2_ = ""; + categoryL3_ = ""; + categoryL4_ = ""; + categoryL5_ = ""; + productTypeL1_ = ""; + productTypeL2_ = ""; + productTypeL3_ = ""; + productTypeL4_ = ""; + productTypeL5_ = ""; + customLabel0_ = ""; + customLabel1_ = ""; + customLabel2_ = ""; + customLabel3_ = ""; + customLabel4_ = ""; + clicks_ = 0L; + impressions_ = 0L; + clickThroughRate_ = 0D; + conversions_ = 0D; + conversionValue_ = null; + if (conversionValueBuilder_ != null) { + conversionValueBuilder_.dispose(); + conversionValueBuilder_ = null; + } + conversionRate_ = 0D; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_ProductPerformanceView_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView + getDefaultInstanceForType() { + return com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView build() { + com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView buildPartial() { + com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView result = + new com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.marketingMethod_ = marketingMethod_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.date_ = dateBuilder_ == null ? date_ : dateBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.week_ = weekBuilder_ == null ? week_ : weekBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.customerCountryCode_ = customerCountryCode_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.offerId_ = offerId_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.title_ = title_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.brand_ = brand_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.categoryL1_ = categoryL1_; + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.categoryL2_ = categoryL2_; + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.categoryL3_ = categoryL3_; + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.categoryL4_ = categoryL4_; + to_bitField0_ |= 0x00000400; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.categoryL5_ = categoryL5_; + to_bitField0_ |= 0x00000800; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.productTypeL1_ = productTypeL1_; + to_bitField0_ |= 0x00001000; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.productTypeL2_ = productTypeL2_; + to_bitField0_ |= 0x00002000; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.productTypeL3_ = productTypeL3_; + to_bitField0_ |= 0x00004000; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.productTypeL4_ = productTypeL4_; + to_bitField0_ |= 0x00008000; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.productTypeL5_ = productTypeL5_; + to_bitField0_ |= 0x00010000; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.customLabel0_ = customLabel0_; + to_bitField0_ |= 0x00020000; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.customLabel1_ = customLabel1_; + to_bitField0_ |= 0x00040000; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.customLabel2_ = customLabel2_; + to_bitField0_ |= 0x00080000; + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.customLabel3_ = customLabel3_; + to_bitField0_ |= 0x00100000; + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.customLabel4_ = customLabel4_; + to_bitField0_ |= 0x00200000; + } + if (((from_bitField0_ & 0x00400000) != 0)) { + result.clicks_ = clicks_; + to_bitField0_ |= 0x00400000; + } + if (((from_bitField0_ & 0x00800000) != 0)) { + result.impressions_ = impressions_; + to_bitField0_ |= 0x00800000; + } + if (((from_bitField0_ & 0x01000000) != 0)) { + result.clickThroughRate_ = clickThroughRate_; + to_bitField0_ |= 0x01000000; + } + if (((from_bitField0_ & 0x02000000) != 0)) { + result.conversions_ = conversions_; + to_bitField0_ |= 0x02000000; + } + if (((from_bitField0_ & 0x04000000) != 0)) { + result.conversionValue_ = + conversionValueBuilder_ == null ? conversionValue_ : conversionValueBuilder_.build(); + to_bitField0_ |= 0x04000000; + } + if (((from_bitField0_ & 0x08000000) != 0)) { + result.conversionRate_ = conversionRate_; + to_bitField0_ |= 0x08000000; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView) { + return mergeFrom( + (com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView other) { + if (other + == com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView + .getDefaultInstance()) return this; + if (other.hasMarketingMethod()) { + setMarketingMethod(other.getMarketingMethod()); + } + if (other.hasDate()) { + mergeDate(other.getDate()); + } + if (other.hasWeek()) { + mergeWeek(other.getWeek()); + } + if (other.hasCustomerCountryCode()) { + customerCountryCode_ = other.customerCountryCode_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasOfferId()) { + offerId_ = other.offerId_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasTitle()) { + title_ = other.title_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasBrand()) { + brand_ = other.brand_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.hasCategoryL1()) { + categoryL1_ = other.categoryL1_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (other.hasCategoryL2()) { + categoryL2_ = other.categoryL2_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.hasCategoryL3()) { + categoryL3_ = other.categoryL3_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (other.hasCategoryL4()) { + categoryL4_ = other.categoryL4_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (other.hasCategoryL5()) { + categoryL5_ = other.categoryL5_; + bitField0_ |= 0x00000800; + onChanged(); + } + if (other.hasProductTypeL1()) { + productTypeL1_ = other.productTypeL1_; + bitField0_ |= 0x00001000; + onChanged(); + } + if (other.hasProductTypeL2()) { + productTypeL2_ = other.productTypeL2_; + bitField0_ |= 0x00002000; + onChanged(); + } + if (other.hasProductTypeL3()) { + productTypeL3_ = other.productTypeL3_; + bitField0_ |= 0x00004000; + onChanged(); + } + if (other.hasProductTypeL4()) { + productTypeL4_ = other.productTypeL4_; + bitField0_ |= 0x00008000; + onChanged(); + } + if (other.hasProductTypeL5()) { + productTypeL5_ = other.productTypeL5_; + bitField0_ |= 0x00010000; + onChanged(); + } + if (other.hasCustomLabel0()) { + customLabel0_ = other.customLabel0_; + bitField0_ |= 0x00020000; + onChanged(); + } + if (other.hasCustomLabel1()) { + customLabel1_ = other.customLabel1_; + bitField0_ |= 0x00040000; + onChanged(); + } + if (other.hasCustomLabel2()) { + customLabel2_ = other.customLabel2_; + bitField0_ |= 0x00080000; + onChanged(); + } + if (other.hasCustomLabel3()) { + customLabel3_ = other.customLabel3_; + bitField0_ |= 0x00100000; + onChanged(); + } + if (other.hasCustomLabel4()) { + customLabel4_ = other.customLabel4_; + bitField0_ |= 0x00200000; + onChanged(); + } + if (other.hasClicks()) { + setClicks(other.getClicks()); + } + if (other.hasImpressions()) { + setImpressions(other.getImpressions()); + } + if (other.hasClickThroughRate()) { + setClickThroughRate(other.getClickThroughRate()); + } + if (other.hasConversions()) { + setConversions(other.getConversions()); + } + if (other.hasConversionValue()) { + mergeConversionValue(other.getConversionValue()); + } + if (other.hasConversionRate()) { + setConversionRate(other.getConversionRate()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + marketingMethod_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage(getDateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getWeekFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + customerCountryCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + offerId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + brand_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + categoryL1_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: + { + categoryL2_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + categoryL3_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: + { + categoryL4_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: + { + categoryL5_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 106: + { + productTypeL1_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 106 + case 114: + { + productTypeL2_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00002000; + break; + } // case 114 + case 122: + { + productTypeL3_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00004000; + break; + } // case 122 + case 130: + { + productTypeL4_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00008000; + break; + } // case 130 + case 138: + { + productTypeL5_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00010000; + break; + } // case 138 + case 146: + { + customLabel0_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00020000; + break; + } // case 146 + case 154: + { + customLabel1_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00040000; + break; + } // case 154 + case 162: + { + customLabel2_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00080000; + break; + } // case 162 + case 170: + { + customLabel3_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00100000; + break; + } // case 170 + case 178: + { + customLabel4_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00200000; + break; + } // case 178 + case 184: + { + clicks_ = input.readInt64(); + bitField0_ |= 0x00400000; + break; + } // case 184 + case 192: + { + impressions_ = input.readInt64(); + bitField0_ |= 0x00800000; + break; + } // case 192 + case 201: + { + clickThroughRate_ = input.readDouble(); + bitField0_ |= 0x01000000; + break; + } // case 201 + case 209: + { + conversions_ = input.readDouble(); + bitField0_ |= 0x02000000; + break; + } // case 209 + case 218: + { + input.readMessage(getConversionValueFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x04000000; + break; + } // case 218 + case 225: + { + conversionRate_ = input.readDouble(); + bitField0_ |= 0x08000000; + break; + } // case 225 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + 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 marketingMethod_ = 0; + + /** + * + * + *
      +     * Marketing method to which metrics apply. Segment.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.MarketingMethod.MarketingMethodEnum marketing_method = 1; + * + * + * @return Whether the marketingMethod field is set. + */ + @java.lang.Override + public boolean hasMarketingMethod() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +     * Marketing method to which metrics apply. Segment.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.MarketingMethod.MarketingMethodEnum marketing_method = 1; + * + * + * @return The enum numeric value on the wire for marketingMethod. + */ + @java.lang.Override + public int getMarketingMethodValue() { + return marketingMethod_; + } + + /** + * + * + *
      +     * Marketing method to which metrics apply. Segment.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.MarketingMethod.MarketingMethodEnum marketing_method = 1; + * + * + * @param value The enum numeric value on the wire for marketingMethod to set. + * @return This builder for chaining. + */ + public Builder setMarketingMethodValue(int value) { + marketingMethod_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Marketing method to which metrics apply. Segment.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.MarketingMethod.MarketingMethodEnum marketing_method = 1; + * + * + * @return The marketingMethod. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.MarketingMethod.MarketingMethodEnum + getMarketingMethod() { + com.google.shopping.merchant.reports.v1alpha.MarketingMethod.MarketingMethodEnum result = + com.google.shopping.merchant.reports.v1alpha.MarketingMethod.MarketingMethodEnum + .forNumber(marketingMethod_); + return result == null + ? com.google.shopping.merchant.reports.v1alpha.MarketingMethod.MarketingMethodEnum + .UNRECOGNIZED + : result; + } + + /** + * + * + *
      +     * Marketing method to which metrics apply. Segment.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.MarketingMethod.MarketingMethodEnum marketing_method = 1; + * + * + * @param value The marketingMethod to set. + * @return This builder for chaining. + */ + public Builder setMarketingMethod( + com.google.shopping.merchant.reports.v1alpha.MarketingMethod.MarketingMethodEnum value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + marketingMethod_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Marketing method to which metrics apply. Segment.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.MarketingMethod.MarketingMethodEnum marketing_method = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearMarketingMethod() { + bitField0_ = (bitField0_ & ~0x00000001); + marketingMethod_ = 0; + onChanged(); + return this; + } + + private com.google.type.Date date_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + dateBuilder_; + + /** + * + * + *
      +     * Date in the merchant timezone to which metrics apply. Segment.
      +     *
      +     * Condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 2; + * + * @return Whether the date field is set. + */ + public boolean hasDate() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +     * Date in the merchant timezone to which metrics apply. Segment.
      +     *
      +     * Condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 2; + * + * @return The date. + */ + public com.google.type.Date getDate() { + if (dateBuilder_ == null) { + return date_ == null ? com.google.type.Date.getDefaultInstance() : date_; + } else { + return dateBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Date in the merchant timezone to which metrics apply. Segment.
      +     *
      +     * Condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 2; + */ + public Builder setDate(com.google.type.Date value) { + if (dateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + date_ = value; + } else { + dateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Date in the merchant timezone to which metrics apply. Segment.
      +     *
      +     * Condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 2; + */ + public Builder setDate(com.google.type.Date.Builder builderForValue) { + if (dateBuilder_ == null) { + date_ = builderForValue.build(); + } else { + dateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Date in the merchant timezone to which metrics apply. Segment.
      +     *
      +     * Condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 2; + */ + public Builder mergeDate(com.google.type.Date value) { + if (dateBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && date_ != null + && date_ != com.google.type.Date.getDefaultInstance()) { + getDateBuilder().mergeFrom(value); + } else { + date_ = value; + } + } else { + dateBuilder_.mergeFrom(value); + } + if (date_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Date in the merchant timezone to which metrics apply. Segment.
      +     *
      +     * Condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 2; + */ + public Builder clearDate() { + bitField0_ = (bitField0_ & ~0x00000002); + date_ = null; + if (dateBuilder_ != null) { + dateBuilder_.dispose(); + dateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Date in the merchant timezone to which metrics apply. Segment.
      +     *
      +     * Condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 2; + */ + public com.google.type.Date.Builder getDateBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getDateFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Date in the merchant timezone to which metrics apply. Segment.
      +     *
      +     * Condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 2; + */ + public com.google.type.DateOrBuilder getDateOrBuilder() { + if (dateBuilder_ != null) { + return dateBuilder_.getMessageOrBuilder(); + } else { + return date_ == null ? com.google.type.Date.getDefaultInstance() : date_; + } + } + + /** + * + * + *
      +     * Date in the merchant timezone to which metrics apply. Segment.
      +     *
      +     * Condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getDateFieldBuilder() { + if (dateBuilder_ == null) { + dateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getDate(), getParentForChildren(), isClean()); + date_ = null; + } + return dateBuilder_; + } + + private com.google.type.Date week_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + weekBuilder_; + + /** + * + * + *
      +     * First day of the week (Monday) of the metrics date in the merchant
      +     * timezone. Segment.
      +     * 
      + * + * .google.type.Date week = 3; + * + * @return Whether the week field is set. + */ + public boolean hasWeek() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +     * First day of the week (Monday) of the metrics date in the merchant
      +     * timezone. Segment.
      +     * 
      + * + * .google.type.Date week = 3; + * + * @return The week. + */ + public com.google.type.Date getWeek() { + if (weekBuilder_ == null) { + return week_ == null ? com.google.type.Date.getDefaultInstance() : week_; + } else { + return weekBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * First day of the week (Monday) of the metrics date in the merchant
      +     * timezone. Segment.
      +     * 
      + * + * .google.type.Date week = 3; + */ + public Builder setWeek(com.google.type.Date value) { + if (weekBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + week_ = value; + } else { + weekBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * First day of the week (Monday) of the metrics date in the merchant
      +     * timezone. Segment.
      +     * 
      + * + * .google.type.Date week = 3; + */ + public Builder setWeek(com.google.type.Date.Builder builderForValue) { + if (weekBuilder_ == null) { + week_ = builderForValue.build(); + } else { + weekBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * First day of the week (Monday) of the metrics date in the merchant
      +     * timezone. Segment.
      +     * 
      + * + * .google.type.Date week = 3; + */ + public Builder mergeWeek(com.google.type.Date value) { + if (weekBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && week_ != null + && week_ != com.google.type.Date.getDefaultInstance()) { + getWeekBuilder().mergeFrom(value); + } else { + week_ = value; + } + } else { + weekBuilder_.mergeFrom(value); + } + if (week_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * First day of the week (Monday) of the metrics date in the merchant
      +     * timezone. Segment.
      +     * 
      + * + * .google.type.Date week = 3; + */ + public Builder clearWeek() { + bitField0_ = (bitField0_ & ~0x00000004); + week_ = null; + if (weekBuilder_ != null) { + weekBuilder_.dispose(); + weekBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * First day of the week (Monday) of the metrics date in the merchant
      +     * timezone. Segment.
      +     * 
      + * + * .google.type.Date week = 3; + */ + public com.google.type.Date.Builder getWeekBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getWeekFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * First day of the week (Monday) of the metrics date in the merchant
      +     * timezone. Segment.
      +     * 
      + * + * .google.type.Date week = 3; + */ + public com.google.type.DateOrBuilder getWeekOrBuilder() { + if (weekBuilder_ != null) { + return weekBuilder_.getMessageOrBuilder(); + } else { + return week_ == null ? com.google.type.Date.getDefaultInstance() : week_; + } + } + + /** + * + * + *
      +     * First day of the week (Monday) of the metrics date in the merchant
      +     * timezone. Segment.
      +     * 
      + * + * .google.type.Date week = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getWeekFieldBuilder() { + if (weekBuilder_ == null) { + weekBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getWeek(), getParentForChildren(), isClean()); + week_ = null; + } + return weekBuilder_; + } + + private java.lang.Object customerCountryCode_ = ""; + + /** + * + * + *
      +     * Code of the country where the customer is located at the time of the event.
      +     * Represented in the ISO 3166 format. Segment.
      +     *
      +     * If the customer country cannot be determined, a special 'ZZ' code is
      +     * returned.
      +     * 
      + * + * optional string customer_country_code = 4; + * + * @return Whether the customerCountryCode field is set. + */ + public boolean hasCustomerCountryCode() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +     * Code of the country where the customer is located at the time of the event.
      +     * Represented in the ISO 3166 format. Segment.
      +     *
      +     * If the customer country cannot be determined, a special 'ZZ' code is
      +     * returned.
      +     * 
      + * + * optional string customer_country_code = 4; + * + * @return The customerCountryCode. + */ + public java.lang.String getCustomerCountryCode() { + java.lang.Object ref = customerCountryCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customerCountryCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Code of the country where the customer is located at the time of the event.
      +     * Represented in the ISO 3166 format. Segment.
      +     *
      +     * If the customer country cannot be determined, a special 'ZZ' code is
      +     * returned.
      +     * 
      + * + * optional string customer_country_code = 4; + * + * @return The bytes for customerCountryCode. + */ + public com.google.protobuf.ByteString getCustomerCountryCodeBytes() { + java.lang.Object ref = customerCountryCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customerCountryCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Code of the country where the customer is located at the time of the event.
      +     * Represented in the ISO 3166 format. Segment.
      +     *
      +     * If the customer country cannot be determined, a special 'ZZ' code is
      +     * returned.
      +     * 
      + * + * optional string customer_country_code = 4; + * + * @param value The customerCountryCode to set. + * @return This builder for chaining. + */ + public Builder setCustomerCountryCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + customerCountryCode_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Code of the country where the customer is located at the time of the event.
      +     * Represented in the ISO 3166 format. Segment.
      +     *
      +     * If the customer country cannot be determined, a special 'ZZ' code is
      +     * returned.
      +     * 
      + * + * optional string customer_country_code = 4; + * + * @return This builder for chaining. + */ + public Builder clearCustomerCountryCode() { + customerCountryCode_ = getDefaultInstance().getCustomerCountryCode(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Code of the country where the customer is located at the time of the event.
      +     * Represented in the ISO 3166 format. Segment.
      +     *
      +     * If the customer country cannot be determined, a special 'ZZ' code is
      +     * returned.
      +     * 
      + * + * optional string customer_country_code = 4; + * + * @param value The bytes for customerCountryCode to set. + * @return This builder for chaining. + */ + public Builder setCustomerCountryCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customerCountryCode_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object offerId_ = ""; + + /** + * + * + *
      +     * Merchant-provided id of the product. Segment.
      +     * 
      + * + * optional string offer_id = 5; + * + * @return Whether the offerId field is set. + */ + public boolean hasOfferId() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
      +     * Merchant-provided id of the product. Segment.
      +     * 
      + * + * optional string offer_id = 5; + * + * @return The offerId. + */ + public java.lang.String getOfferId() { + java.lang.Object ref = offerId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + offerId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Merchant-provided id of the product. Segment.
      +     * 
      + * + * optional string offer_id = 5; + * + * @return The bytes for offerId. + */ + public com.google.protobuf.ByteString getOfferIdBytes() { + java.lang.Object ref = offerId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + offerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Merchant-provided id of the product. Segment.
      +     * 
      + * + * optional string offer_id = 5; + * + * @param value The offerId to set. + * @return This builder for chaining. + */ + public Builder setOfferId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + offerId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Merchant-provided id of the product. Segment.
      +     * 
      + * + * optional string offer_id = 5; + * + * @return This builder for chaining. + */ + public Builder clearOfferId() { + offerId_ = getDefaultInstance().getOfferId(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Merchant-provided id of the product. Segment.
      +     * 
      + * + * optional string offer_id = 5; + * + * @param value The bytes for offerId to set. + * @return This builder for chaining. + */ + public Builder setOfferIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + offerId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object title_ = ""; + + /** + * + * + *
      +     * Title of the product. Segment.
      +     * 
      + * + * optional string title = 6; + * + * @return Whether the title field is set. + */ + public boolean hasTitle() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
      +     * Title of the product. Segment.
      +     * 
      + * + * optional string title = 6; + * + * @return The title. + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Title of the product. Segment.
      +     * 
      + * + * optional string title = 6; + * + * @return The bytes for title. + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Title of the product. Segment.
      +     * 
      + * + * optional string title = 6; + * + * @param value The title to set. + * @return This builder for chaining. + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + title_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Title of the product. Segment.
      +     * 
      + * + * optional string title = 6; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Title of the product. Segment.
      +     * 
      + * + * optional string title = 6; + * + * @param value The bytes for title to set. + * @return This builder for chaining. + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + title_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object brand_ = ""; + + /** + * + * + *
      +     * Brand of the product. Segment.
      +     * 
      + * + * optional string brand = 7; + * + * @return Whether the brand field is set. + */ + public boolean hasBrand() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
      +     * Brand of the product. Segment.
      +     * 
      + * + * optional string brand = 7; + * + * @return The brand. + */ + public java.lang.String getBrand() { + java.lang.Object ref = brand_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + brand_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Brand of the product. Segment.
      +     * 
      + * + * optional string brand = 7; + * + * @return The bytes for brand. + */ + public com.google.protobuf.ByteString getBrandBytes() { + java.lang.Object ref = brand_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + brand_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Brand of the product. Segment.
      +     * 
      + * + * optional string brand = 7; + * + * @param value The brand to set. + * @return This builder for chaining. + */ + public Builder setBrand(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + brand_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Brand of the product. Segment.
      +     * 
      + * + * optional string brand = 7; + * + * @return This builder for chaining. + */ + public Builder clearBrand() { + brand_ = getDefaultInstance().getBrand(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Brand of the product. Segment.
      +     * 
      + * + * optional string brand = 7; + * + * @param value The bytes for brand to set. + * @return This builder for chaining. + */ + public Builder setBrandBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + brand_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object categoryL1_ = ""; + + /** + * + * + *
      +     * [Product category (1st
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in Google's product taxonomy. Segment.
      +     * 
      + * + * optional string category_l1 = 8; + * + * @return Whether the categoryL1 field is set. + */ + public boolean hasCategoryL1() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
      +     * [Product category (1st
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in Google's product taxonomy. Segment.
      +     * 
      + * + * optional string category_l1 = 8; + * + * @return The categoryL1. + */ + public java.lang.String getCategoryL1() { + java.lang.Object ref = categoryL1_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + categoryL1_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * [Product category (1st
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in Google's product taxonomy. Segment.
      +     * 
      + * + * optional string category_l1 = 8; + * + * @return The bytes for categoryL1. + */ + public com.google.protobuf.ByteString getCategoryL1Bytes() { + java.lang.Object ref = categoryL1_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + categoryL1_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * [Product category (1st
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in Google's product taxonomy. Segment.
      +     * 
      + * + * optional string category_l1 = 8; + * + * @param value The categoryL1 to set. + * @return This builder for chaining. + */ + public Builder setCategoryL1(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + categoryL1_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
      +     * [Product category (1st
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in Google's product taxonomy. Segment.
      +     * 
      + * + * optional string category_l1 = 8; + * + * @return This builder for chaining. + */ + public Builder clearCategoryL1() { + categoryL1_ = getDefaultInstance().getCategoryL1(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
      +     * [Product category (1st
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in Google's product taxonomy. Segment.
      +     * 
      + * + * optional string category_l1 = 8; + * + * @param value The bytes for categoryL1 to set. + * @return This builder for chaining. + */ + public Builder setCategoryL1Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + categoryL1_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object categoryL2_ = ""; + + /** + * + * + *
      +     * [Product category (2nd
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in Google's product taxonomy. Segment.
      +     * 
      + * + * optional string category_l2 = 9; + * + * @return Whether the categoryL2 field is set. + */ + public boolean hasCategoryL2() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
      +     * [Product category (2nd
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in Google's product taxonomy. Segment.
      +     * 
      + * + * optional string category_l2 = 9; + * + * @return The categoryL2. + */ + public java.lang.String getCategoryL2() { + java.lang.Object ref = categoryL2_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + categoryL2_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * [Product category (2nd
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in Google's product taxonomy. Segment.
      +     * 
      + * + * optional string category_l2 = 9; + * + * @return The bytes for categoryL2. + */ + public com.google.protobuf.ByteString getCategoryL2Bytes() { + java.lang.Object ref = categoryL2_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + categoryL2_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * [Product category (2nd
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in Google's product taxonomy. Segment.
      +     * 
      + * + * optional string category_l2 = 9; + * + * @param value The categoryL2 to set. + * @return This builder for chaining. + */ + public Builder setCategoryL2(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + categoryL2_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
      +     * [Product category (2nd
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in Google's product taxonomy. Segment.
      +     * 
      + * + * optional string category_l2 = 9; + * + * @return This builder for chaining. + */ + public Builder clearCategoryL2() { + categoryL2_ = getDefaultInstance().getCategoryL2(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
      +     * [Product category (2nd
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in Google's product taxonomy. Segment.
      +     * 
      + * + * optional string category_l2 = 9; + * + * @param value The bytes for categoryL2 to set. + * @return This builder for chaining. + */ + public Builder setCategoryL2Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + categoryL2_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private java.lang.Object categoryL3_ = ""; + + /** + * + * + *
      +     * [Product category (3rd
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in Google's product taxonomy. Segment.
      +     * 
      + * + * optional string category_l3 = 10; + * + * @return Whether the categoryL3 field is set. + */ + public boolean hasCategoryL3() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
      +     * [Product category (3rd
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in Google's product taxonomy. Segment.
      +     * 
      + * + * optional string category_l3 = 10; + * + * @return The categoryL3. + */ + public java.lang.String getCategoryL3() { + java.lang.Object ref = categoryL3_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + categoryL3_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * [Product category (3rd
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in Google's product taxonomy. Segment.
      +     * 
      + * + * optional string category_l3 = 10; + * + * @return The bytes for categoryL3. + */ + public com.google.protobuf.ByteString getCategoryL3Bytes() { + java.lang.Object ref = categoryL3_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + categoryL3_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * [Product category (3rd
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in Google's product taxonomy. Segment.
      +     * 
      + * + * optional string category_l3 = 10; + * + * @param value The categoryL3 to set. + * @return This builder for chaining. + */ + public Builder setCategoryL3(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + categoryL3_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
      +     * [Product category (3rd
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in Google's product taxonomy. Segment.
      +     * 
      + * + * optional string category_l3 = 10; + * + * @return This builder for chaining. + */ + public Builder clearCategoryL3() { + categoryL3_ = getDefaultInstance().getCategoryL3(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + + /** + * + * + *
      +     * [Product category (3rd
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in Google's product taxonomy. Segment.
      +     * 
      + * + * optional string category_l3 = 10; + * + * @param value The bytes for categoryL3 to set. + * @return This builder for chaining. + */ + public Builder setCategoryL3Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + categoryL3_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private java.lang.Object categoryL4_ = ""; + + /** + * + * + *
      +     * [Product category (4th
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in Google's product taxonomy. Segment.
      +     * 
      + * + * optional string category_l4 = 11; + * + * @return Whether the categoryL4 field is set. + */ + public boolean hasCategoryL4() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
      +     * [Product category (4th
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in Google's product taxonomy. Segment.
      +     * 
      + * + * optional string category_l4 = 11; + * + * @return The categoryL4. + */ + public java.lang.String getCategoryL4() { + java.lang.Object ref = categoryL4_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + categoryL4_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * [Product category (4th
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in Google's product taxonomy. Segment.
      +     * 
      + * + * optional string category_l4 = 11; + * + * @return The bytes for categoryL4. + */ + public com.google.protobuf.ByteString getCategoryL4Bytes() { + java.lang.Object ref = categoryL4_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + categoryL4_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * [Product category (4th
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in Google's product taxonomy. Segment.
      +     * 
      + * + * optional string category_l4 = 11; + * + * @param value The categoryL4 to set. + * @return This builder for chaining. + */ + public Builder setCategoryL4(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + categoryL4_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
      +     * [Product category (4th
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in Google's product taxonomy. Segment.
      +     * 
      + * + * optional string category_l4 = 11; + * + * @return This builder for chaining. + */ + public Builder clearCategoryL4() { + categoryL4_ = getDefaultInstance().getCategoryL4(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + + /** + * + * + *
      +     * [Product category (4th
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in Google's product taxonomy. Segment.
      +     * 
      + * + * optional string category_l4 = 11; + * + * @param value The bytes for categoryL4 to set. + * @return This builder for chaining. + */ + public Builder setCategoryL4Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + categoryL4_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + private java.lang.Object categoryL5_ = ""; + + /** + * + * + *
      +     * [Product category (5th
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in Google's product taxonomy. Segment.
      +     * 
      + * + * optional string category_l5 = 12; + * + * @return Whether the categoryL5 field is set. + */ + public boolean hasCategoryL5() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
      +     * [Product category (5th
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in Google's product taxonomy. Segment.
      +     * 
      + * + * optional string category_l5 = 12; + * + * @return The categoryL5. + */ + public java.lang.String getCategoryL5() { + java.lang.Object ref = categoryL5_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + categoryL5_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * [Product category (5th
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in Google's product taxonomy. Segment.
      +     * 
      + * + * optional string category_l5 = 12; + * + * @return The bytes for categoryL5. + */ + public com.google.protobuf.ByteString getCategoryL5Bytes() { + java.lang.Object ref = categoryL5_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + categoryL5_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * [Product category (5th
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in Google's product taxonomy. Segment.
      +     * 
      + * + * optional string category_l5 = 12; + * + * @param value The categoryL5 to set. + * @return This builder for chaining. + */ + public Builder setCategoryL5(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + categoryL5_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
      +     * [Product category (5th
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in Google's product taxonomy. Segment.
      +     * 
      + * + * optional string category_l5 = 12; + * + * @return This builder for chaining. + */ + public Builder clearCategoryL5() { + categoryL5_ = getDefaultInstance().getCategoryL5(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; + } + + /** + * + * + *
      +     * [Product category (5th
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in Google's product taxonomy. Segment.
      +     * 
      + * + * optional string category_l5 = 12; + * + * @param value The bytes for categoryL5 to set. + * @return This builder for chaining. + */ + public Builder setCategoryL5Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + categoryL5_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + private java.lang.Object productTypeL1_ = ""; + + /** + * + * + *
      +     * [Product type (1st
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in merchant's own product taxonomy. Segment.
      +     * 
      + * + * optional string product_type_l1 = 13; + * + * @return Whether the productTypeL1 field is set. + */ + public boolean hasProductTypeL1() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
      +     * [Product type (1st
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in merchant's own product taxonomy. Segment.
      +     * 
      + * + * optional string product_type_l1 = 13; + * + * @return The productTypeL1. + */ + public java.lang.String getProductTypeL1() { + java.lang.Object ref = productTypeL1_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + productTypeL1_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * [Product type (1st
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in merchant's own product taxonomy. Segment.
      +     * 
      + * + * optional string product_type_l1 = 13; + * + * @return The bytes for productTypeL1. + */ + public com.google.protobuf.ByteString getProductTypeL1Bytes() { + java.lang.Object ref = productTypeL1_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + productTypeL1_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * [Product type (1st
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in merchant's own product taxonomy. Segment.
      +     * 
      + * + * optional string product_type_l1 = 13; + * + * @param value The productTypeL1 to set. + * @return This builder for chaining. + */ + public Builder setProductTypeL1(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + productTypeL1_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * [Product type (1st
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in merchant's own product taxonomy. Segment.
      +     * 
      + * + * optional string product_type_l1 = 13; + * + * @return This builder for chaining. + */ + public Builder clearProductTypeL1() { + productTypeL1_ = getDefaultInstance().getProductTypeL1(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; + } + + /** + * + * + *
      +     * [Product type (1st
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in merchant's own product taxonomy. Segment.
      +     * 
      + * + * optional string product_type_l1 = 13; + * + * @param value The bytes for productTypeL1 to set. + * @return This builder for chaining. + */ + public Builder setProductTypeL1Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + productTypeL1_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + private java.lang.Object productTypeL2_ = ""; + + /** + * + * + *
      +     * [Product type (2nd
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in merchant's own product taxonomy. Segment.
      +     * 
      + * + * optional string product_type_l2 = 14; + * + * @return Whether the productTypeL2 field is set. + */ + public boolean hasProductTypeL2() { + return ((bitField0_ & 0x00002000) != 0); + } + + /** + * + * + *
      +     * [Product type (2nd
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in merchant's own product taxonomy. Segment.
      +     * 
      + * + * optional string product_type_l2 = 14; + * + * @return The productTypeL2. + */ + public java.lang.String getProductTypeL2() { + java.lang.Object ref = productTypeL2_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + productTypeL2_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * [Product type (2nd
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in merchant's own product taxonomy. Segment.
      +     * 
      + * + * optional string product_type_l2 = 14; + * + * @return The bytes for productTypeL2. + */ + public com.google.protobuf.ByteString getProductTypeL2Bytes() { + java.lang.Object ref = productTypeL2_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + productTypeL2_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * [Product type (2nd
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in merchant's own product taxonomy. Segment.
      +     * 
      + * + * optional string product_type_l2 = 14; + * + * @param value The productTypeL2 to set. + * @return This builder for chaining. + */ + public Builder setProductTypeL2(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + productTypeL2_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * [Product type (2nd
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in merchant's own product taxonomy. Segment.
      +     * 
      + * + * optional string product_type_l2 = 14; + * + * @return This builder for chaining. + */ + public Builder clearProductTypeL2() { + productTypeL2_ = getDefaultInstance().getProductTypeL2(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + return this; + } + + /** + * + * + *
      +     * [Product type (2nd
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in merchant's own product taxonomy. Segment.
      +     * 
      + * + * optional string product_type_l2 = 14; + * + * @param value The bytes for productTypeL2 to set. + * @return This builder for chaining. + */ + public Builder setProductTypeL2Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + productTypeL2_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + private java.lang.Object productTypeL3_ = ""; + + /** + * + * + *
      +     * [Product type (3rd
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in merchant's own product taxonomy. Segment.
      +     * 
      + * + * optional string product_type_l3 = 15; + * + * @return Whether the productTypeL3 field is set. + */ + public boolean hasProductTypeL3() { + return ((bitField0_ & 0x00004000) != 0); + } + + /** + * + * + *
      +     * [Product type (3rd
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in merchant's own product taxonomy. Segment.
      +     * 
      + * + * optional string product_type_l3 = 15; + * + * @return The productTypeL3. + */ + public java.lang.String getProductTypeL3() { + java.lang.Object ref = productTypeL3_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + productTypeL3_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * [Product type (3rd
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in merchant's own product taxonomy. Segment.
      +     * 
      + * + * optional string product_type_l3 = 15; + * + * @return The bytes for productTypeL3. + */ + public com.google.protobuf.ByteString getProductTypeL3Bytes() { + java.lang.Object ref = productTypeL3_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + productTypeL3_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * [Product type (3rd
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in merchant's own product taxonomy. Segment.
      +     * 
      + * + * optional string product_type_l3 = 15; + * + * @param value The productTypeL3 to set. + * @return This builder for chaining. + */ + public Builder setProductTypeL3(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + productTypeL3_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * [Product type (3rd
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in merchant's own product taxonomy. Segment.
      +     * 
      + * + * optional string product_type_l3 = 15; + * + * @return This builder for chaining. + */ + public Builder clearProductTypeL3() { + productTypeL3_ = getDefaultInstance().getProductTypeL3(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + return this; + } + + /** + * + * + *
      +     * [Product type (3rd
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in merchant's own product taxonomy. Segment.
      +     * 
      + * + * optional string product_type_l3 = 15; + * + * @param value The bytes for productTypeL3 to set. + * @return This builder for chaining. + */ + public Builder setProductTypeL3Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + productTypeL3_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + private java.lang.Object productTypeL4_ = ""; + + /** + * + * + *
      +     * [Product type (4th
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in merchant's own product taxonomy. Segment.
      +     * 
      + * + * optional string product_type_l4 = 16; + * + * @return Whether the productTypeL4 field is set. + */ + public boolean hasProductTypeL4() { + return ((bitField0_ & 0x00008000) != 0); + } + + /** + * + * + *
      +     * [Product type (4th
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in merchant's own product taxonomy. Segment.
      +     * 
      + * + * optional string product_type_l4 = 16; + * + * @return The productTypeL4. + */ + public java.lang.String getProductTypeL4() { + java.lang.Object ref = productTypeL4_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + productTypeL4_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * [Product type (4th
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in merchant's own product taxonomy. Segment.
      +     * 
      + * + * optional string product_type_l4 = 16; + * + * @return The bytes for productTypeL4. + */ + public com.google.protobuf.ByteString getProductTypeL4Bytes() { + java.lang.Object ref = productTypeL4_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + productTypeL4_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * [Product type (4th
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in merchant's own product taxonomy. Segment.
      +     * 
      + * + * optional string product_type_l4 = 16; + * + * @param value The productTypeL4 to set. + * @return This builder for chaining. + */ + public Builder setProductTypeL4(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + productTypeL4_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * [Product type (4th
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in merchant's own product taxonomy. Segment.
      +     * 
      + * + * optional string product_type_l4 = 16; + * + * @return This builder for chaining. + */ + public Builder clearProductTypeL4() { + productTypeL4_ = getDefaultInstance().getProductTypeL4(); + bitField0_ = (bitField0_ & ~0x00008000); + onChanged(); + return this; + } + + /** + * + * + *
      +     * [Product type (4th
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in merchant's own product taxonomy. Segment.
      +     * 
      + * + * optional string product_type_l4 = 16; + * + * @param value The bytes for productTypeL4 to set. + * @return This builder for chaining. + */ + public Builder setProductTypeL4Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + productTypeL4_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + private java.lang.Object productTypeL5_ = ""; + + /** + * + * + *
      +     * [Product type (5th
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in merchant's own product taxonomy. Segment.
      +     * 
      + * + * optional string product_type_l5 = 17; + * + * @return Whether the productTypeL5 field is set. + */ + public boolean hasProductTypeL5() { + return ((bitField0_ & 0x00010000) != 0); + } + + /** + * + * + *
      +     * [Product type (5th
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in merchant's own product taxonomy. Segment.
      +     * 
      + * + * optional string product_type_l5 = 17; + * + * @return The productTypeL5. + */ + public java.lang.String getProductTypeL5() { + java.lang.Object ref = productTypeL5_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + productTypeL5_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * [Product type (5th
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in merchant's own product taxonomy. Segment.
      +     * 
      + * + * optional string product_type_l5 = 17; + * + * @return The bytes for productTypeL5. + */ + public com.google.protobuf.ByteString getProductTypeL5Bytes() { + java.lang.Object ref = productTypeL5_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + productTypeL5_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * [Product type (5th
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in merchant's own product taxonomy. Segment.
      +     * 
      + * + * optional string product_type_l5 = 17; + * + * @param value The productTypeL5 to set. + * @return This builder for chaining. + */ + public Builder setProductTypeL5(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + productTypeL5_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * [Product type (5th
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in merchant's own product taxonomy. Segment.
      +     * 
      + * + * optional string product_type_l5 = 17; + * + * @return This builder for chaining. + */ + public Builder clearProductTypeL5() { + productTypeL5_ = getDefaultInstance().getProductTypeL5(); + bitField0_ = (bitField0_ & ~0x00010000); + onChanged(); + return this; + } + + /** + * + * + *
      +     * [Product type (5th
      +     * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +     * in merchant's own product taxonomy. Segment.
      +     * 
      + * + * optional string product_type_l5 = 17; + * + * @param value The bytes for productTypeL5 to set. + * @return This builder for chaining. + */ + public Builder setProductTypeL5Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + productTypeL5_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + private java.lang.Object customLabel0_ = ""; + + /** + * + * + *
      +     * Custom label 0 for custom grouping of products. Segment.
      +     * 
      + * + * optional string custom_label0 = 18; + * + * @return Whether the customLabel0 field is set. + */ + public boolean hasCustomLabel0() { + return ((bitField0_ & 0x00020000) != 0); + } + + /** + * + * + *
      +     * Custom label 0 for custom grouping of products. Segment.
      +     * 
      + * + * optional string custom_label0 = 18; + * + * @return The customLabel0. + */ + public java.lang.String getCustomLabel0() { + java.lang.Object ref = customLabel0_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customLabel0_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Custom label 0 for custom grouping of products. Segment.
      +     * 
      + * + * optional string custom_label0 = 18; + * + * @return The bytes for customLabel0. + */ + public com.google.protobuf.ByteString getCustomLabel0Bytes() { + java.lang.Object ref = customLabel0_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customLabel0_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Custom label 0 for custom grouping of products. Segment.
      +     * 
      + * + * optional string custom_label0 = 18; + * + * @param value The customLabel0 to set. + * @return This builder for chaining. + */ + public Builder setCustomLabel0(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + customLabel0_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Custom label 0 for custom grouping of products. Segment.
      +     * 
      + * + * optional string custom_label0 = 18; + * + * @return This builder for chaining. + */ + public Builder clearCustomLabel0() { + customLabel0_ = getDefaultInstance().getCustomLabel0(); + bitField0_ = (bitField0_ & ~0x00020000); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Custom label 0 for custom grouping of products. Segment.
      +     * 
      + * + * optional string custom_label0 = 18; + * + * @param value The bytes for customLabel0 to set. + * @return This builder for chaining. + */ + public Builder setCustomLabel0Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customLabel0_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + private java.lang.Object customLabel1_ = ""; + + /** + * + * + *
      +     * Custom label 1 for custom grouping of products. Segment.
      +     * 
      + * + * optional string custom_label1 = 19; + * + * @return Whether the customLabel1 field is set. + */ + public boolean hasCustomLabel1() { + return ((bitField0_ & 0x00040000) != 0); + } + + /** + * + * + *
      +     * Custom label 1 for custom grouping of products. Segment.
      +     * 
      + * + * optional string custom_label1 = 19; + * + * @return The customLabel1. + */ + public java.lang.String getCustomLabel1() { + java.lang.Object ref = customLabel1_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customLabel1_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Custom label 1 for custom grouping of products. Segment.
      +     * 
      + * + * optional string custom_label1 = 19; + * + * @return The bytes for customLabel1. + */ + public com.google.protobuf.ByteString getCustomLabel1Bytes() { + java.lang.Object ref = customLabel1_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customLabel1_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Custom label 1 for custom grouping of products. Segment.
      +     * 
      + * + * optional string custom_label1 = 19; + * + * @param value The customLabel1 to set. + * @return This builder for chaining. + */ + public Builder setCustomLabel1(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + customLabel1_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Custom label 1 for custom grouping of products. Segment.
      +     * 
      + * + * optional string custom_label1 = 19; + * + * @return This builder for chaining. + */ + public Builder clearCustomLabel1() { + customLabel1_ = getDefaultInstance().getCustomLabel1(); + bitField0_ = (bitField0_ & ~0x00040000); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Custom label 1 for custom grouping of products. Segment.
      +     * 
      + * + * optional string custom_label1 = 19; + * + * @param value The bytes for customLabel1 to set. + * @return This builder for chaining. + */ + public Builder setCustomLabel1Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customLabel1_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + + private java.lang.Object customLabel2_ = ""; + + /** + * + * + *
      +     * Custom label 2 for custom grouping of products. Segment.
      +     * 
      + * + * optional string custom_label2 = 20; + * + * @return Whether the customLabel2 field is set. + */ + public boolean hasCustomLabel2() { + return ((bitField0_ & 0x00080000) != 0); + } + + /** + * + * + *
      +     * Custom label 2 for custom grouping of products. Segment.
      +     * 
      + * + * optional string custom_label2 = 20; + * + * @return The customLabel2. + */ + public java.lang.String getCustomLabel2() { + java.lang.Object ref = customLabel2_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customLabel2_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Custom label 2 for custom grouping of products. Segment.
      +     * 
      + * + * optional string custom_label2 = 20; + * + * @return The bytes for customLabel2. + */ + public com.google.protobuf.ByteString getCustomLabel2Bytes() { + java.lang.Object ref = customLabel2_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customLabel2_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Custom label 2 for custom grouping of products. Segment.
      +     * 
      + * + * optional string custom_label2 = 20; + * + * @param value The customLabel2 to set. + * @return This builder for chaining. + */ + public Builder setCustomLabel2(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + customLabel2_ = value; + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Custom label 2 for custom grouping of products. Segment.
      +     * 
      + * + * optional string custom_label2 = 20; + * + * @return This builder for chaining. + */ + public Builder clearCustomLabel2() { + customLabel2_ = getDefaultInstance().getCustomLabel2(); + bitField0_ = (bitField0_ & ~0x00080000); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Custom label 2 for custom grouping of products. Segment.
      +     * 
      + * + * optional string custom_label2 = 20; + * + * @param value The bytes for customLabel2 to set. + * @return This builder for chaining. + */ + public Builder setCustomLabel2Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customLabel2_ = value; + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + + private java.lang.Object customLabel3_ = ""; + + /** + * + * + *
      +     * Custom label 3 for custom grouping of products. Segment.
      +     * 
      + * + * optional string custom_label3 = 21; + * + * @return Whether the customLabel3 field is set. + */ + public boolean hasCustomLabel3() { + return ((bitField0_ & 0x00100000) != 0); + } + + /** + * + * + *
      +     * Custom label 3 for custom grouping of products. Segment.
      +     * 
      + * + * optional string custom_label3 = 21; + * + * @return The customLabel3. + */ + public java.lang.String getCustomLabel3() { + java.lang.Object ref = customLabel3_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customLabel3_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Custom label 3 for custom grouping of products. Segment.
      +     * 
      + * + * optional string custom_label3 = 21; + * + * @return The bytes for customLabel3. + */ + public com.google.protobuf.ByteString getCustomLabel3Bytes() { + java.lang.Object ref = customLabel3_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customLabel3_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Custom label 3 for custom grouping of products. Segment.
      +     * 
      + * + * optional string custom_label3 = 21; + * + * @param value The customLabel3 to set. + * @return This builder for chaining. + */ + public Builder setCustomLabel3(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + customLabel3_ = value; + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Custom label 3 for custom grouping of products. Segment.
      +     * 
      + * + * optional string custom_label3 = 21; + * + * @return This builder for chaining. + */ + public Builder clearCustomLabel3() { + customLabel3_ = getDefaultInstance().getCustomLabel3(); + bitField0_ = (bitField0_ & ~0x00100000); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Custom label 3 for custom grouping of products. Segment.
      +     * 
      + * + * optional string custom_label3 = 21; + * + * @param value The bytes for customLabel3 to set. + * @return This builder for chaining. + */ + public Builder setCustomLabel3Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customLabel3_ = value; + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + + private java.lang.Object customLabel4_ = ""; + + /** + * + * + *
      +     * Custom label 4 for custom grouping of products. Segment.
      +     * 
      + * + * optional string custom_label4 = 22; + * + * @return Whether the customLabel4 field is set. + */ + public boolean hasCustomLabel4() { + return ((bitField0_ & 0x00200000) != 0); + } + + /** + * + * + *
      +     * Custom label 4 for custom grouping of products. Segment.
      +     * 
      + * + * optional string custom_label4 = 22; + * + * @return The customLabel4. + */ + public java.lang.String getCustomLabel4() { + java.lang.Object ref = customLabel4_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customLabel4_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Custom label 4 for custom grouping of products. Segment.
      +     * 
      + * + * optional string custom_label4 = 22; + * + * @return The bytes for customLabel4. + */ + public com.google.protobuf.ByteString getCustomLabel4Bytes() { + java.lang.Object ref = customLabel4_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customLabel4_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Custom label 4 for custom grouping of products. Segment.
      +     * 
      + * + * optional string custom_label4 = 22; + * + * @param value The customLabel4 to set. + * @return This builder for chaining. + */ + public Builder setCustomLabel4(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + customLabel4_ = value; + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Custom label 4 for custom grouping of products. Segment.
      +     * 
      + * + * optional string custom_label4 = 22; + * + * @return This builder for chaining. + */ + public Builder clearCustomLabel4() { + customLabel4_ = getDefaultInstance().getCustomLabel4(); + bitField0_ = (bitField0_ & ~0x00200000); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Custom label 4 for custom grouping of products. Segment.
      +     * 
      + * + * optional string custom_label4 = 22; + * + * @param value The bytes for customLabel4 to set. + * @return This builder for chaining. + */ + public Builder setCustomLabel4Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customLabel4_ = value; + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + + private long clicks_; + + /** + * + * + *
      +     * Number of clicks. Metric.
      +     * 
      + * + * optional int64 clicks = 23; + * + * @return Whether the clicks field is set. + */ + @java.lang.Override + public boolean hasClicks() { + return ((bitField0_ & 0x00400000) != 0); + } + + /** + * + * + *
      +     * Number of clicks. Metric.
      +     * 
      + * + * optional int64 clicks = 23; + * + * @return The clicks. + */ + @java.lang.Override + public long getClicks() { + return clicks_; + } + + /** + * + * + *
      +     * Number of clicks. Metric.
      +     * 
      + * + * optional int64 clicks = 23; + * + * @param value The clicks to set. + * @return This builder for chaining. + */ + public Builder setClicks(long value) { + + clicks_ = value; + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Number of clicks. Metric.
      +     * 
      + * + * optional int64 clicks = 23; + * + * @return This builder for chaining. + */ + public Builder clearClicks() { + bitField0_ = (bitField0_ & ~0x00400000); + clicks_ = 0L; + onChanged(); + return this; + } + + private long impressions_; + + /** + * + * + *
      +     * Number of times merchant's products are shown. Metric.
      +     * 
      + * + * optional int64 impressions = 24; + * + * @return Whether the impressions field is set. + */ + @java.lang.Override + public boolean hasImpressions() { + return ((bitField0_ & 0x00800000) != 0); + } + + /** + * + * + *
      +     * Number of times merchant's products are shown. Metric.
      +     * 
      + * + * optional int64 impressions = 24; + * + * @return The impressions. + */ + @java.lang.Override + public long getImpressions() { + return impressions_; + } + + /** + * + * + *
      +     * Number of times merchant's products are shown. Metric.
      +     * 
      + * + * optional int64 impressions = 24; + * + * @param value The impressions to set. + * @return This builder for chaining. + */ + public Builder setImpressions(long value) { + + impressions_ = value; + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Number of times merchant's products are shown. Metric.
      +     * 
      + * + * optional int64 impressions = 24; + * + * @return This builder for chaining. + */ + public Builder clearImpressions() { + bitField0_ = (bitField0_ & ~0x00800000); + impressions_ = 0L; + onChanged(); + return this; + } + + private double clickThroughRate_; + + /** + * + * + *
      +     * Click-through rate - the number of clicks merchant's products receive
      +     * (clicks) divided by the number of times the products are shown
      +     * (impressions). Metric.
      +     * 
      + * + * optional double click_through_rate = 25; + * + * @return Whether the clickThroughRate field is set. + */ + @java.lang.Override + public boolean hasClickThroughRate() { + return ((bitField0_ & 0x01000000) != 0); + } + + /** + * + * + *
      +     * Click-through rate - the number of clicks merchant's products receive
      +     * (clicks) divided by the number of times the products are shown
      +     * (impressions). Metric.
      +     * 
      + * + * optional double click_through_rate = 25; + * + * @return The clickThroughRate. + */ + @java.lang.Override + public double getClickThroughRate() { + return clickThroughRate_; + } + + /** + * + * + *
      +     * Click-through rate - the number of clicks merchant's products receive
      +     * (clicks) divided by the number of times the products are shown
      +     * (impressions). Metric.
      +     * 
      + * + * optional double click_through_rate = 25; + * + * @param value The clickThroughRate to set. + * @return This builder for chaining. + */ + public Builder setClickThroughRate(double value) { + + clickThroughRate_ = value; + bitField0_ |= 0x01000000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Click-through rate - the number of clicks merchant's products receive
      +     * (clicks) divided by the number of times the products are shown
      +     * (impressions). Metric.
      +     * 
      + * + * optional double click_through_rate = 25; + * + * @return This builder for chaining. + */ + public Builder clearClickThroughRate() { + bitField0_ = (bitField0_ & ~0x01000000); + clickThroughRate_ = 0D; + onChanged(); + return this; + } + + private double conversions_; + + /** + * + * + *
      +     * Number of conversions attributed to the product, reported on the conversion
      +     * date. Depending on the attribution model, a conversion might be distributed
      +     * across multiple clicks, where each click gets its own credit assigned. This
      +     * metric is a sum of all such credits. Metric.
      +     *
      +     * Available only for the `FREE` traffic source.
      +     * 
      + * + * optional double conversions = 26; + * + * @return Whether the conversions field is set. + */ + @java.lang.Override + public boolean hasConversions() { + return ((bitField0_ & 0x02000000) != 0); + } + + /** + * + * + *
      +     * Number of conversions attributed to the product, reported on the conversion
      +     * date. Depending on the attribution model, a conversion might be distributed
      +     * across multiple clicks, where each click gets its own credit assigned. This
      +     * metric is a sum of all such credits. Metric.
      +     *
      +     * Available only for the `FREE` traffic source.
      +     * 
      + * + * optional double conversions = 26; + * + * @return The conversions. + */ + @java.lang.Override + public double getConversions() { + return conversions_; + } + + /** + * + * + *
      +     * Number of conversions attributed to the product, reported on the conversion
      +     * date. Depending on the attribution model, a conversion might be distributed
      +     * across multiple clicks, where each click gets its own credit assigned. This
      +     * metric is a sum of all such credits. Metric.
      +     *
      +     * Available only for the `FREE` traffic source.
      +     * 
      + * + * optional double conversions = 26; + * + * @param value The conversions to set. + * @return This builder for chaining. + */ + public Builder setConversions(double value) { + + conversions_ = value; + bitField0_ |= 0x02000000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Number of conversions attributed to the product, reported on the conversion
      +     * date. Depending on the attribution model, a conversion might be distributed
      +     * across multiple clicks, where each click gets its own credit assigned. This
      +     * metric is a sum of all such credits. Metric.
      +     *
      +     * Available only for the `FREE` traffic source.
      +     * 
      + * + * optional double conversions = 26; + * + * @return This builder for chaining. + */ + public Builder clearConversions() { + bitField0_ = (bitField0_ & ~0x02000000); + conversions_ = 0D; + onChanged(); + return this; + } + + private com.google.shopping.type.Price conversionValue_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> + conversionValueBuilder_; + + /** + * + * + *
      +     * Value of conversions attributed to the product, reported on the conversion
      +     * date. Metric.
      +     *
      +     * Available only for the `FREE` traffic source.
      +     * 
      + * + * .google.shopping.type.Price conversion_value = 27; + * + * @return Whether the conversionValue field is set. + */ + public boolean hasConversionValue() { + return ((bitField0_ & 0x04000000) != 0); + } + + /** + * + * + *
      +     * Value of conversions attributed to the product, reported on the conversion
      +     * date. Metric.
      +     *
      +     * Available only for the `FREE` traffic source.
      +     * 
      + * + * .google.shopping.type.Price conversion_value = 27; + * + * @return The conversionValue. + */ + public com.google.shopping.type.Price getConversionValue() { + if (conversionValueBuilder_ == null) { + return conversionValue_ == null + ? com.google.shopping.type.Price.getDefaultInstance() + : conversionValue_; + } else { + return conversionValueBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Value of conversions attributed to the product, reported on the conversion
      +     * date. Metric.
      +     *
      +     * Available only for the `FREE` traffic source.
      +     * 
      + * + * .google.shopping.type.Price conversion_value = 27; + */ + public Builder setConversionValue(com.google.shopping.type.Price value) { + if (conversionValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + conversionValue_ = value; + } else { + conversionValueBuilder_.setMessage(value); + } + bitField0_ |= 0x04000000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Value of conversions attributed to the product, reported on the conversion
      +     * date. Metric.
      +     *
      +     * Available only for the `FREE` traffic source.
      +     * 
      + * + * .google.shopping.type.Price conversion_value = 27; + */ + public Builder setConversionValue(com.google.shopping.type.Price.Builder builderForValue) { + if (conversionValueBuilder_ == null) { + conversionValue_ = builderForValue.build(); + } else { + conversionValueBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x04000000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Value of conversions attributed to the product, reported on the conversion
      +     * date. Metric.
      +     *
      +     * Available only for the `FREE` traffic source.
      +     * 
      + * + * .google.shopping.type.Price conversion_value = 27; + */ + public Builder mergeConversionValue(com.google.shopping.type.Price value) { + if (conversionValueBuilder_ == null) { + if (((bitField0_ & 0x04000000) != 0) + && conversionValue_ != null + && conversionValue_ != com.google.shopping.type.Price.getDefaultInstance()) { + getConversionValueBuilder().mergeFrom(value); + } else { + conversionValue_ = value; + } + } else { + conversionValueBuilder_.mergeFrom(value); + } + if (conversionValue_ != null) { + bitField0_ |= 0x04000000; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Value of conversions attributed to the product, reported on the conversion
      +     * date. Metric.
      +     *
      +     * Available only for the `FREE` traffic source.
      +     * 
      + * + * .google.shopping.type.Price conversion_value = 27; + */ + public Builder clearConversionValue() { + bitField0_ = (bitField0_ & ~0x04000000); + conversionValue_ = null; + if (conversionValueBuilder_ != null) { + conversionValueBuilder_.dispose(); + conversionValueBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Value of conversions attributed to the product, reported on the conversion
      +     * date. Metric.
      +     *
      +     * Available only for the `FREE` traffic source.
      +     * 
      + * + * .google.shopping.type.Price conversion_value = 27; + */ + public com.google.shopping.type.Price.Builder getConversionValueBuilder() { + bitField0_ |= 0x04000000; + onChanged(); + return getConversionValueFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Value of conversions attributed to the product, reported on the conversion
      +     * date. Metric.
      +     *
      +     * Available only for the `FREE` traffic source.
      +     * 
      + * + * .google.shopping.type.Price conversion_value = 27; + */ + public com.google.shopping.type.PriceOrBuilder getConversionValueOrBuilder() { + if (conversionValueBuilder_ != null) { + return conversionValueBuilder_.getMessageOrBuilder(); + } else { + return conversionValue_ == null + ? com.google.shopping.type.Price.getDefaultInstance() + : conversionValue_; + } + } + + /** + * + * + *
      +     * Value of conversions attributed to the product, reported on the conversion
      +     * date. Metric.
      +     *
      +     * Available only for the `FREE` traffic source.
      +     * 
      + * + * .google.shopping.type.Price conversion_value = 27; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> + getConversionValueFieldBuilder() { + if (conversionValueBuilder_ == null) { + conversionValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder>( + getConversionValue(), getParentForChildren(), isClean()); + conversionValue_ = null; + } + return conversionValueBuilder_; + } + + private double conversionRate_; + + /** + * + * + *
      +     * Number of conversions divided by the number of clicks, reported on the
      +     * impression date. Metric.
      +     *
      +     * Available only for the `FREE` traffic source.
      +     * 
      + * + * optional double conversion_rate = 28; + * + * @return Whether the conversionRate field is set. + */ + @java.lang.Override + public boolean hasConversionRate() { + return ((bitField0_ & 0x08000000) != 0); + } + + /** + * + * + *
      +     * Number of conversions divided by the number of clicks, reported on the
      +     * impression date. Metric.
      +     *
      +     * Available only for the `FREE` traffic source.
      +     * 
      + * + * optional double conversion_rate = 28; + * + * @return The conversionRate. + */ + @java.lang.Override + public double getConversionRate() { + return conversionRate_; + } + + /** + * + * + *
      +     * Number of conversions divided by the number of clicks, reported on the
      +     * impression date. Metric.
      +     *
      +     * Available only for the `FREE` traffic source.
      +     * 
      + * + * optional double conversion_rate = 28; + * + * @param value The conversionRate to set. + * @return This builder for chaining. + */ + public Builder setConversionRate(double value) { + + conversionRate_ = value; + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Number of conversions divided by the number of clicks, reported on the
      +     * impression date. Metric.
      +     *
      +     * Available only for the `FREE` traffic source.
      +     * 
      + * + * optional double conversion_rate = 28; + * + * @return This builder for chaining. + */ + public Builder clearConversionRate() { + bitField0_ = (bitField0_ & ~0x08000000); + conversionRate_ = 0D; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.reports.v1alpha.ProductPerformanceView) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.reports.v1alpha.ProductPerformanceView) + private static final com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView(); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProductPerformanceView parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/ProductPerformanceViewOrBuilder.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/ProductPerformanceViewOrBuilder.java new file mode 100644 index 000000000000..0896b2c784f6 --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/ProductPerformanceViewOrBuilder.java @@ -0,0 +1,1164 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/reports/v1alpha/reports.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.reports.v1alpha; + +public interface ProductPerformanceViewOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.reports.v1alpha.ProductPerformanceView) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Marketing method to which metrics apply. Segment.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.MarketingMethod.MarketingMethodEnum marketing_method = 1; + * + * + * @return Whether the marketingMethod field is set. + */ + boolean hasMarketingMethod(); + + /** + * + * + *
      +   * Marketing method to which metrics apply. Segment.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.MarketingMethod.MarketingMethodEnum marketing_method = 1; + * + * + * @return The enum numeric value on the wire for marketingMethod. + */ + int getMarketingMethodValue(); + + /** + * + * + *
      +   * Marketing method to which metrics apply. Segment.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.MarketingMethod.MarketingMethodEnum marketing_method = 1; + * + * + * @return The marketingMethod. + */ + com.google.shopping.merchant.reports.v1alpha.MarketingMethod.MarketingMethodEnum + getMarketingMethod(); + + /** + * + * + *
      +   * Date in the merchant timezone to which metrics apply. Segment.
      +   *
      +   * Condition on `date` is required in the `WHERE` clause.
      +   * 
      + * + * .google.type.Date date = 2; + * + * @return Whether the date field is set. + */ + boolean hasDate(); + + /** + * + * + *
      +   * Date in the merchant timezone to which metrics apply. Segment.
      +   *
      +   * Condition on `date` is required in the `WHERE` clause.
      +   * 
      + * + * .google.type.Date date = 2; + * + * @return The date. + */ + com.google.type.Date getDate(); + + /** + * + * + *
      +   * Date in the merchant timezone to which metrics apply. Segment.
      +   *
      +   * Condition on `date` is required in the `WHERE` clause.
      +   * 
      + * + * .google.type.Date date = 2; + */ + com.google.type.DateOrBuilder getDateOrBuilder(); + + /** + * + * + *
      +   * First day of the week (Monday) of the metrics date in the merchant
      +   * timezone. Segment.
      +   * 
      + * + * .google.type.Date week = 3; + * + * @return Whether the week field is set. + */ + boolean hasWeek(); + + /** + * + * + *
      +   * First day of the week (Monday) of the metrics date in the merchant
      +   * timezone. Segment.
      +   * 
      + * + * .google.type.Date week = 3; + * + * @return The week. + */ + com.google.type.Date getWeek(); + + /** + * + * + *
      +   * First day of the week (Monday) of the metrics date in the merchant
      +   * timezone. Segment.
      +   * 
      + * + * .google.type.Date week = 3; + */ + com.google.type.DateOrBuilder getWeekOrBuilder(); + + /** + * + * + *
      +   * Code of the country where the customer is located at the time of the event.
      +   * Represented in the ISO 3166 format. Segment.
      +   *
      +   * If the customer country cannot be determined, a special 'ZZ' code is
      +   * returned.
      +   * 
      + * + * optional string customer_country_code = 4; + * + * @return Whether the customerCountryCode field is set. + */ + boolean hasCustomerCountryCode(); + + /** + * + * + *
      +   * Code of the country where the customer is located at the time of the event.
      +   * Represented in the ISO 3166 format. Segment.
      +   *
      +   * If the customer country cannot be determined, a special 'ZZ' code is
      +   * returned.
      +   * 
      + * + * optional string customer_country_code = 4; + * + * @return The customerCountryCode. + */ + java.lang.String getCustomerCountryCode(); + + /** + * + * + *
      +   * Code of the country where the customer is located at the time of the event.
      +   * Represented in the ISO 3166 format. Segment.
      +   *
      +   * If the customer country cannot be determined, a special 'ZZ' code is
      +   * returned.
      +   * 
      + * + * optional string customer_country_code = 4; + * + * @return The bytes for customerCountryCode. + */ + com.google.protobuf.ByteString getCustomerCountryCodeBytes(); + + /** + * + * + *
      +   * Merchant-provided id of the product. Segment.
      +   * 
      + * + * optional string offer_id = 5; + * + * @return Whether the offerId field is set. + */ + boolean hasOfferId(); + + /** + * + * + *
      +   * Merchant-provided id of the product. Segment.
      +   * 
      + * + * optional string offer_id = 5; + * + * @return The offerId. + */ + java.lang.String getOfferId(); + + /** + * + * + *
      +   * Merchant-provided id of the product. Segment.
      +   * 
      + * + * optional string offer_id = 5; + * + * @return The bytes for offerId. + */ + com.google.protobuf.ByteString getOfferIdBytes(); + + /** + * + * + *
      +   * Title of the product. Segment.
      +   * 
      + * + * optional string title = 6; + * + * @return Whether the title field is set. + */ + boolean hasTitle(); + + /** + * + * + *
      +   * Title of the product. Segment.
      +   * 
      + * + * optional string title = 6; + * + * @return The title. + */ + java.lang.String getTitle(); + + /** + * + * + *
      +   * Title of the product. Segment.
      +   * 
      + * + * optional string title = 6; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
      +   * Brand of the product. Segment.
      +   * 
      + * + * optional string brand = 7; + * + * @return Whether the brand field is set. + */ + boolean hasBrand(); + + /** + * + * + *
      +   * Brand of the product. Segment.
      +   * 
      + * + * optional string brand = 7; + * + * @return The brand. + */ + java.lang.String getBrand(); + + /** + * + * + *
      +   * Brand of the product. Segment.
      +   * 
      + * + * optional string brand = 7; + * + * @return The bytes for brand. + */ + com.google.protobuf.ByteString getBrandBytes(); + + /** + * + * + *
      +   * [Product category (1st
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in Google's product taxonomy. Segment.
      +   * 
      + * + * optional string category_l1 = 8; + * + * @return Whether the categoryL1 field is set. + */ + boolean hasCategoryL1(); + + /** + * + * + *
      +   * [Product category (1st
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in Google's product taxonomy. Segment.
      +   * 
      + * + * optional string category_l1 = 8; + * + * @return The categoryL1. + */ + java.lang.String getCategoryL1(); + + /** + * + * + *
      +   * [Product category (1st
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in Google's product taxonomy. Segment.
      +   * 
      + * + * optional string category_l1 = 8; + * + * @return The bytes for categoryL1. + */ + com.google.protobuf.ByteString getCategoryL1Bytes(); + + /** + * + * + *
      +   * [Product category (2nd
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in Google's product taxonomy. Segment.
      +   * 
      + * + * optional string category_l2 = 9; + * + * @return Whether the categoryL2 field is set. + */ + boolean hasCategoryL2(); + + /** + * + * + *
      +   * [Product category (2nd
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in Google's product taxonomy. Segment.
      +   * 
      + * + * optional string category_l2 = 9; + * + * @return The categoryL2. + */ + java.lang.String getCategoryL2(); + + /** + * + * + *
      +   * [Product category (2nd
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in Google's product taxonomy. Segment.
      +   * 
      + * + * optional string category_l2 = 9; + * + * @return The bytes for categoryL2. + */ + com.google.protobuf.ByteString getCategoryL2Bytes(); + + /** + * + * + *
      +   * [Product category (3rd
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in Google's product taxonomy. Segment.
      +   * 
      + * + * optional string category_l3 = 10; + * + * @return Whether the categoryL3 field is set. + */ + boolean hasCategoryL3(); + + /** + * + * + *
      +   * [Product category (3rd
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in Google's product taxonomy. Segment.
      +   * 
      + * + * optional string category_l3 = 10; + * + * @return The categoryL3. + */ + java.lang.String getCategoryL3(); + + /** + * + * + *
      +   * [Product category (3rd
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in Google's product taxonomy. Segment.
      +   * 
      + * + * optional string category_l3 = 10; + * + * @return The bytes for categoryL3. + */ + com.google.protobuf.ByteString getCategoryL3Bytes(); + + /** + * + * + *
      +   * [Product category (4th
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in Google's product taxonomy. Segment.
      +   * 
      + * + * optional string category_l4 = 11; + * + * @return Whether the categoryL4 field is set. + */ + boolean hasCategoryL4(); + + /** + * + * + *
      +   * [Product category (4th
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in Google's product taxonomy. Segment.
      +   * 
      + * + * optional string category_l4 = 11; + * + * @return The categoryL4. + */ + java.lang.String getCategoryL4(); + + /** + * + * + *
      +   * [Product category (4th
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in Google's product taxonomy. Segment.
      +   * 
      + * + * optional string category_l4 = 11; + * + * @return The bytes for categoryL4. + */ + com.google.protobuf.ByteString getCategoryL4Bytes(); + + /** + * + * + *
      +   * [Product category (5th
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in Google's product taxonomy. Segment.
      +   * 
      + * + * optional string category_l5 = 12; + * + * @return Whether the categoryL5 field is set. + */ + boolean hasCategoryL5(); + + /** + * + * + *
      +   * [Product category (5th
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in Google's product taxonomy. Segment.
      +   * 
      + * + * optional string category_l5 = 12; + * + * @return The categoryL5. + */ + java.lang.String getCategoryL5(); + + /** + * + * + *
      +   * [Product category (5th
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in Google's product taxonomy. Segment.
      +   * 
      + * + * optional string category_l5 = 12; + * + * @return The bytes for categoryL5. + */ + com.google.protobuf.ByteString getCategoryL5Bytes(); + + /** + * + * + *
      +   * [Product type (1st
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in merchant's own product taxonomy. Segment.
      +   * 
      + * + * optional string product_type_l1 = 13; + * + * @return Whether the productTypeL1 field is set. + */ + boolean hasProductTypeL1(); + + /** + * + * + *
      +   * [Product type (1st
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in merchant's own product taxonomy. Segment.
      +   * 
      + * + * optional string product_type_l1 = 13; + * + * @return The productTypeL1. + */ + java.lang.String getProductTypeL1(); + + /** + * + * + *
      +   * [Product type (1st
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in merchant's own product taxonomy. Segment.
      +   * 
      + * + * optional string product_type_l1 = 13; + * + * @return The bytes for productTypeL1. + */ + com.google.protobuf.ByteString getProductTypeL1Bytes(); + + /** + * + * + *
      +   * [Product type (2nd
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in merchant's own product taxonomy. Segment.
      +   * 
      + * + * optional string product_type_l2 = 14; + * + * @return Whether the productTypeL2 field is set. + */ + boolean hasProductTypeL2(); + + /** + * + * + *
      +   * [Product type (2nd
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in merchant's own product taxonomy. Segment.
      +   * 
      + * + * optional string product_type_l2 = 14; + * + * @return The productTypeL2. + */ + java.lang.String getProductTypeL2(); + + /** + * + * + *
      +   * [Product type (2nd
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in merchant's own product taxonomy. Segment.
      +   * 
      + * + * optional string product_type_l2 = 14; + * + * @return The bytes for productTypeL2. + */ + com.google.protobuf.ByteString getProductTypeL2Bytes(); + + /** + * + * + *
      +   * [Product type (3rd
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in merchant's own product taxonomy. Segment.
      +   * 
      + * + * optional string product_type_l3 = 15; + * + * @return Whether the productTypeL3 field is set. + */ + boolean hasProductTypeL3(); + + /** + * + * + *
      +   * [Product type (3rd
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in merchant's own product taxonomy. Segment.
      +   * 
      + * + * optional string product_type_l3 = 15; + * + * @return The productTypeL3. + */ + java.lang.String getProductTypeL3(); + + /** + * + * + *
      +   * [Product type (3rd
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in merchant's own product taxonomy. Segment.
      +   * 
      + * + * optional string product_type_l3 = 15; + * + * @return The bytes for productTypeL3. + */ + com.google.protobuf.ByteString getProductTypeL3Bytes(); + + /** + * + * + *
      +   * [Product type (4th
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in merchant's own product taxonomy. Segment.
      +   * 
      + * + * optional string product_type_l4 = 16; + * + * @return Whether the productTypeL4 field is set. + */ + boolean hasProductTypeL4(); + + /** + * + * + *
      +   * [Product type (4th
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in merchant's own product taxonomy. Segment.
      +   * 
      + * + * optional string product_type_l4 = 16; + * + * @return The productTypeL4. + */ + java.lang.String getProductTypeL4(); + + /** + * + * + *
      +   * [Product type (4th
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in merchant's own product taxonomy. Segment.
      +   * 
      + * + * optional string product_type_l4 = 16; + * + * @return The bytes for productTypeL4. + */ + com.google.protobuf.ByteString getProductTypeL4Bytes(); + + /** + * + * + *
      +   * [Product type (5th
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in merchant's own product taxonomy. Segment.
      +   * 
      + * + * optional string product_type_l5 = 17; + * + * @return Whether the productTypeL5 field is set. + */ + boolean hasProductTypeL5(); + + /** + * + * + *
      +   * [Product type (5th
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in merchant's own product taxonomy. Segment.
      +   * 
      + * + * optional string product_type_l5 = 17; + * + * @return The productTypeL5. + */ + java.lang.String getProductTypeL5(); + + /** + * + * + *
      +   * [Product type (5th
      +   * level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
      +   * in merchant's own product taxonomy. Segment.
      +   * 
      + * + * optional string product_type_l5 = 17; + * + * @return The bytes for productTypeL5. + */ + com.google.protobuf.ByteString getProductTypeL5Bytes(); + + /** + * + * + *
      +   * Custom label 0 for custom grouping of products. Segment.
      +   * 
      + * + * optional string custom_label0 = 18; + * + * @return Whether the customLabel0 field is set. + */ + boolean hasCustomLabel0(); + + /** + * + * + *
      +   * Custom label 0 for custom grouping of products. Segment.
      +   * 
      + * + * optional string custom_label0 = 18; + * + * @return The customLabel0. + */ + java.lang.String getCustomLabel0(); + + /** + * + * + *
      +   * Custom label 0 for custom grouping of products. Segment.
      +   * 
      + * + * optional string custom_label0 = 18; + * + * @return The bytes for customLabel0. + */ + com.google.protobuf.ByteString getCustomLabel0Bytes(); + + /** + * + * + *
      +   * Custom label 1 for custom grouping of products. Segment.
      +   * 
      + * + * optional string custom_label1 = 19; + * + * @return Whether the customLabel1 field is set. + */ + boolean hasCustomLabel1(); + + /** + * + * + *
      +   * Custom label 1 for custom grouping of products. Segment.
      +   * 
      + * + * optional string custom_label1 = 19; + * + * @return The customLabel1. + */ + java.lang.String getCustomLabel1(); + + /** + * + * + *
      +   * Custom label 1 for custom grouping of products. Segment.
      +   * 
      + * + * optional string custom_label1 = 19; + * + * @return The bytes for customLabel1. + */ + com.google.protobuf.ByteString getCustomLabel1Bytes(); + + /** + * + * + *
      +   * Custom label 2 for custom grouping of products. Segment.
      +   * 
      + * + * optional string custom_label2 = 20; + * + * @return Whether the customLabel2 field is set. + */ + boolean hasCustomLabel2(); + + /** + * + * + *
      +   * Custom label 2 for custom grouping of products. Segment.
      +   * 
      + * + * optional string custom_label2 = 20; + * + * @return The customLabel2. + */ + java.lang.String getCustomLabel2(); + + /** + * + * + *
      +   * Custom label 2 for custom grouping of products. Segment.
      +   * 
      + * + * optional string custom_label2 = 20; + * + * @return The bytes for customLabel2. + */ + com.google.protobuf.ByteString getCustomLabel2Bytes(); + + /** + * + * + *
      +   * Custom label 3 for custom grouping of products. Segment.
      +   * 
      + * + * optional string custom_label3 = 21; + * + * @return Whether the customLabel3 field is set. + */ + boolean hasCustomLabel3(); + + /** + * + * + *
      +   * Custom label 3 for custom grouping of products. Segment.
      +   * 
      + * + * optional string custom_label3 = 21; + * + * @return The customLabel3. + */ + java.lang.String getCustomLabel3(); + + /** + * + * + *
      +   * Custom label 3 for custom grouping of products. Segment.
      +   * 
      + * + * optional string custom_label3 = 21; + * + * @return The bytes for customLabel3. + */ + com.google.protobuf.ByteString getCustomLabel3Bytes(); + + /** + * + * + *
      +   * Custom label 4 for custom grouping of products. Segment.
      +   * 
      + * + * optional string custom_label4 = 22; + * + * @return Whether the customLabel4 field is set. + */ + boolean hasCustomLabel4(); + + /** + * + * + *
      +   * Custom label 4 for custom grouping of products. Segment.
      +   * 
      + * + * optional string custom_label4 = 22; + * + * @return The customLabel4. + */ + java.lang.String getCustomLabel4(); + + /** + * + * + *
      +   * Custom label 4 for custom grouping of products. Segment.
      +   * 
      + * + * optional string custom_label4 = 22; + * + * @return The bytes for customLabel4. + */ + com.google.protobuf.ByteString getCustomLabel4Bytes(); + + /** + * + * + *
      +   * Number of clicks. Metric.
      +   * 
      + * + * optional int64 clicks = 23; + * + * @return Whether the clicks field is set. + */ + boolean hasClicks(); + + /** + * + * + *
      +   * Number of clicks. Metric.
      +   * 
      + * + * optional int64 clicks = 23; + * + * @return The clicks. + */ + long getClicks(); + + /** + * + * + *
      +   * Number of times merchant's products are shown. Metric.
      +   * 
      + * + * optional int64 impressions = 24; + * + * @return Whether the impressions field is set. + */ + boolean hasImpressions(); + + /** + * + * + *
      +   * Number of times merchant's products are shown. Metric.
      +   * 
      + * + * optional int64 impressions = 24; + * + * @return The impressions. + */ + long getImpressions(); + + /** + * + * + *
      +   * Click-through rate - the number of clicks merchant's products receive
      +   * (clicks) divided by the number of times the products are shown
      +   * (impressions). Metric.
      +   * 
      + * + * optional double click_through_rate = 25; + * + * @return Whether the clickThroughRate field is set. + */ + boolean hasClickThroughRate(); + + /** + * + * + *
      +   * Click-through rate - the number of clicks merchant's products receive
      +   * (clicks) divided by the number of times the products are shown
      +   * (impressions). Metric.
      +   * 
      + * + * optional double click_through_rate = 25; + * + * @return The clickThroughRate. + */ + double getClickThroughRate(); + + /** + * + * + *
      +   * Number of conversions attributed to the product, reported on the conversion
      +   * date. Depending on the attribution model, a conversion might be distributed
      +   * across multiple clicks, where each click gets its own credit assigned. This
      +   * metric is a sum of all such credits. Metric.
      +   *
      +   * Available only for the `FREE` traffic source.
      +   * 
      + * + * optional double conversions = 26; + * + * @return Whether the conversions field is set. + */ + boolean hasConversions(); + + /** + * + * + *
      +   * Number of conversions attributed to the product, reported on the conversion
      +   * date. Depending on the attribution model, a conversion might be distributed
      +   * across multiple clicks, where each click gets its own credit assigned. This
      +   * metric is a sum of all such credits. Metric.
      +   *
      +   * Available only for the `FREE` traffic source.
      +   * 
      + * + * optional double conversions = 26; + * + * @return The conversions. + */ + double getConversions(); + + /** + * + * + *
      +   * Value of conversions attributed to the product, reported on the conversion
      +   * date. Metric.
      +   *
      +   * Available only for the `FREE` traffic source.
      +   * 
      + * + * .google.shopping.type.Price conversion_value = 27; + * + * @return Whether the conversionValue field is set. + */ + boolean hasConversionValue(); + + /** + * + * + *
      +   * Value of conversions attributed to the product, reported on the conversion
      +   * date. Metric.
      +   *
      +   * Available only for the `FREE` traffic source.
      +   * 
      + * + * .google.shopping.type.Price conversion_value = 27; + * + * @return The conversionValue. + */ + com.google.shopping.type.Price getConversionValue(); + + /** + * + * + *
      +   * Value of conversions attributed to the product, reported on the conversion
      +   * date. Metric.
      +   *
      +   * Available only for the `FREE` traffic source.
      +   * 
      + * + * .google.shopping.type.Price conversion_value = 27; + */ + com.google.shopping.type.PriceOrBuilder getConversionValueOrBuilder(); + + /** + * + * + *
      +   * Number of conversions divided by the number of clicks, reported on the
      +   * impression date. Metric.
      +   *
      +   * Available only for the `FREE` traffic source.
      +   * 
      + * + * optional double conversion_rate = 28; + * + * @return Whether the conversionRate field is set. + */ + boolean hasConversionRate(); + + /** + * + * + *
      +   * Number of conversions divided by the number of clicks, reported on the
      +   * impression date. Metric.
      +   *
      +   * Available only for the `FREE` traffic source.
      +   * 
      + * + * optional double conversion_rate = 28; + * + * @return The conversionRate. + */ + double getConversionRate(); +} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/ProductView.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/ProductView.java new file mode 100644 index 000000000000..8cd8acf30045 --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/ProductView.java @@ -0,0 +1,14317 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/reports/v1alpha/reports.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.reports.v1alpha; + +/** + * + * + *
      + * Fields available for query in `product_view` table.
      + *
      + * Products in the current inventory. Products in this table are the same as in
      + * Products sub-API but not all product attributes from Products sub-API are
      + * available for query in this table. In contrast to Products sub-API, this
      + * table allows to filter the returned list of products by product attributes.
      + * To retrieve a single product by `id` or list all products, Products sub-API
      + * should be used.
      + *
      + * Values are only set for fields requested explicitly in the request's search
      + * query.
      + * 
      + * + * Protobuf type {@code google.shopping.merchant.reports.v1alpha.ProductView} + */ +public final class ProductView extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.reports.v1alpha.ProductView) + ProductViewOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ProductView.newBuilder() to construct. + private ProductView(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ProductView() { + id_ = ""; + channel_ = 0; + languageCode_ = ""; + feedLabel_ = ""; + offerId_ = ""; + title_ = ""; + brand_ = ""; + categoryL1_ = ""; + categoryL2_ = ""; + categoryL3_ = ""; + categoryL4_ = ""; + categoryL5_ = ""; + productTypeL1_ = ""; + productTypeL2_ = ""; + productTypeL3_ = ""; + productTypeL4_ = ""; + productTypeL5_ = ""; + condition_ = ""; + availability_ = ""; + shippingLabel_ = ""; + gtin_ = com.google.protobuf.LazyStringArrayList.emptyList(); + itemGroupId_ = ""; + thumbnailLink_ = ""; + aggregatedReportingContextStatus_ = 0; + itemIssues_ = java.util.Collections.emptyList(); + clickPotential_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ProductView(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_ProductView_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_ProductView_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1alpha.ProductView.class, + com.google.shopping.merchant.reports.v1alpha.ProductView.Builder.class); + } + + /** + * + * + *
      +   * Status of the product aggregated for all reporting contexts.
      +   *
      +   * Here's an example of how the aggregated status is computed:
      +   *
      +   * Free listings | Shopping ads | Status
      +   * --------------|--------------|------------------------------
      +   * Approved      | Approved     | ELIGIBLE
      +   * Approved      | Pending      | ELIGIBLE
      +   * Approved      | Disapproved  | ELIGIBLE_LIMITED
      +   * Pending       | Pending      | PENDING
      +   * Disapproved   | Disapproved  | NOT_ELIGIBLE_OR_DISAPPROVED
      +   * 
      + * + * Protobuf enum {@code + * google.shopping.merchant.reports.v1alpha.ProductView.AggregatedReportingContextStatus} + */ + public enum AggregatedReportingContextStatus implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +     * Not specified.
      +     * 
      + * + * AGGREGATED_REPORTING_CONTEXT_STATUS_UNSPECIFIED = 0; + */ + AGGREGATED_REPORTING_CONTEXT_STATUS_UNSPECIFIED(0), + /** + * + * + *
      +     * Product is not eligible or is disapproved for all reporting contexts.
      +     * 
      + * + * NOT_ELIGIBLE_OR_DISAPPROVED = 1; + */ + NOT_ELIGIBLE_OR_DISAPPROVED(1), + /** + * + * + *
      +     * Product's status is pending in all reporting contexts.
      +     * 
      + * + * PENDING = 2; + */ + PENDING(2), + /** + * + * + *
      +     * Product is eligible for some (but not all) reporting contexts.
      +     * 
      + * + * ELIGIBLE_LIMITED = 3; + */ + ELIGIBLE_LIMITED(3), + /** + * + * + *
      +     * Product is eligible for all reporting contexts.
      +     * 
      + * + * ELIGIBLE = 4; + */ + ELIGIBLE(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
      +     * Not specified.
      +     * 
      + * + * AGGREGATED_REPORTING_CONTEXT_STATUS_UNSPECIFIED = 0; + */ + public static final int AGGREGATED_REPORTING_CONTEXT_STATUS_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +     * Product is not eligible or is disapproved for all reporting contexts.
      +     * 
      + * + * NOT_ELIGIBLE_OR_DISAPPROVED = 1; + */ + public static final int NOT_ELIGIBLE_OR_DISAPPROVED_VALUE = 1; + + /** + * + * + *
      +     * Product's status is pending in all reporting contexts.
      +     * 
      + * + * PENDING = 2; + */ + public static final int PENDING_VALUE = 2; + + /** + * + * + *
      +     * Product is eligible for some (but not all) reporting contexts.
      +     * 
      + * + * ELIGIBLE_LIMITED = 3; + */ + public static final int ELIGIBLE_LIMITED_VALUE = 3; + + /** + * + * + *
      +     * Product is eligible for all reporting contexts.
      +     * 
      + * + * ELIGIBLE = 4; + */ + public static final int ELIGIBLE_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static AggregatedReportingContextStatus 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 AggregatedReportingContextStatus forNumber(int value) { + switch (value) { + case 0: + return AGGREGATED_REPORTING_CONTEXT_STATUS_UNSPECIFIED; + case 1: + return NOT_ELIGIBLE_OR_DISAPPROVED; + case 2: + return PENDING; + case 3: + return ELIGIBLE_LIMITED; + case 4: + return ELIGIBLE; + 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 AggregatedReportingContextStatus findValueByNumber(int number) { + return AggregatedReportingContextStatus.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ProductView.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final AggregatedReportingContextStatus[] VALUES = values(); + + public static AggregatedReportingContextStatus 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 AggregatedReportingContextStatus(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.shopping.merchant.reports.v1alpha.ProductView.AggregatedReportingContextStatus) + } + + /** + * + * + *
      +   * A product's [click
      +   * potential](https://support.google.com/merchants/answer/188488) estimates
      +   * its performance potential compared to highest performing products of the
      +   * merchant. Click potential of a product helps merchants to prioritize which
      +   * products to fix and helps them understand how products are performing
      +   * against their potential.
      +   * 
      + * + * Protobuf enum {@code google.shopping.merchant.reports.v1alpha.ProductView.ClickPotential} + */ + public enum ClickPotential implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +     * Unknown predicted clicks impact.
      +     * 
      + * + * CLICK_POTENTIAL_UNSPECIFIED = 0; + */ + CLICK_POTENTIAL_UNSPECIFIED(0), + /** + * + * + *
      +     * Potential to receive a low number of clicks compared to the highest
      +     * performing products of the merchant.
      +     * 
      + * + * LOW = 1; + */ + LOW(1), + /** + * + * + *
      +     * Potential to receive a moderate number of clicks compared to the highest
      +     * performing products of the merchant.
      +     * 
      + * + * MEDIUM = 2; + */ + MEDIUM(2), + /** + * + * + *
      +     * Potential to receive a similar number of clicks as the highest performing
      +     * products of the merchant.
      +     * 
      + * + * HIGH = 3; + */ + HIGH(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
      +     * Unknown predicted clicks impact.
      +     * 
      + * + * CLICK_POTENTIAL_UNSPECIFIED = 0; + */ + public static final int CLICK_POTENTIAL_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +     * Potential to receive a low number of clicks compared to the highest
      +     * performing products of the merchant.
      +     * 
      + * + * LOW = 1; + */ + public static final int LOW_VALUE = 1; + + /** + * + * + *
      +     * Potential to receive a moderate number of clicks compared to the highest
      +     * performing products of the merchant.
      +     * 
      + * + * MEDIUM = 2; + */ + public static final int MEDIUM_VALUE = 2; + + /** + * + * + *
      +     * Potential to receive a similar number of clicks as the highest performing
      +     * products of the merchant.
      +     * 
      + * + * HIGH = 3; + */ + public static final int HIGH_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ClickPotential 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 ClickPotential forNumber(int value) { + switch (value) { + case 0: + return CLICK_POTENTIAL_UNSPECIFIED; + case 1: + return LOW; + case 2: + return MEDIUM; + case 3: + return HIGH; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ClickPotential findValueByNumber(int number) { + return ClickPotential.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ProductView.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final ClickPotential[] VALUES = values(); + + public static ClickPotential 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 ClickPotential(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.shopping.merchant.reports.v1alpha.ProductView.ClickPotential) + } + + public interface ItemIssueOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Item issue type.
      +     * 
      + * + * .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType type = 1; + * + * + * @return Whether the type field is set. + */ + boolean hasType(); + + /** + * + * + *
      +     * Item issue type.
      +     * 
      + * + * .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType type = 1; + * + * + * @return The type. + */ + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType getType(); + + /** + * + * + *
      +     * Item issue type.
      +     * 
      + * + * .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType type = 1; + * + */ + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueTypeOrBuilder + getTypeOrBuilder(); + + /** + * + * + *
      +     * Item issue severity.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity severity = 2; + * + * + * @return Whether the severity field is set. + */ + boolean hasSeverity(); + + /** + * + * + *
      +     * Item issue severity.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity severity = 2; + * + * + * @return The severity. + */ + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + getSeverity(); + + /** + * + * + *
      +     * Item issue severity.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity severity = 2; + * + */ + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverityOrBuilder + getSeverityOrBuilder(); + + /** + * + * + *
      +     * Item issue resolution.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueResolution resolution = 3; + * + * + * @return Whether the resolution field is set. + */ + boolean hasResolution(); + + /** + * + * + *
      +     * Item issue resolution.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueResolution resolution = 3; + * + * + * @return The enum numeric value on the wire for resolution. + */ + int getResolutionValue(); + + /** + * + * + *
      +     * Item issue resolution.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueResolution resolution = 3; + * + * + * @return The resolution. + */ + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueResolution + getResolution(); + } + + /** + * + * + *
      +   * Item issue associated with the product.
      +   * 
      + * + * Protobuf type {@code google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue} + */ + public static final class ItemIssue extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue) + ItemIssueOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ItemIssue.newBuilder() to construct. + private ItemIssue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ItemIssue() { + resolution_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ItemIssue(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_ProductView_ItemIssue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_ProductView_ItemIssue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.class, + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.Builder.class); + } + + /** + * + * + *
      +     * How to resolve the issue.
      +     * 
      + * + * Protobuf enum {@code + * google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueResolution} + */ + public enum ItemIssueResolution implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +       * Not specified.
      +       * 
      + * + * ITEM_ISSUE_RESOLUTION_UNSPECIFIED = 0; + */ + ITEM_ISSUE_RESOLUTION_UNSPECIFIED(0), + /** + * + * + *
      +       * The merchant has to fix the issue.
      +       * 
      + * + * MERCHANT_ACTION = 1; + */ + MERCHANT_ACTION(1), + /** + * + * + *
      +       * The issue will be resolved automatically (for example, image crawl) or
      +       * through a Google review. No merchant action is required now. Resolution
      +       * might lead to another issue (for example, if crawl fails).
      +       * 
      + * + * PENDING_PROCESSING = 2; + */ + PENDING_PROCESSING(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
      +       * Not specified.
      +       * 
      + * + * ITEM_ISSUE_RESOLUTION_UNSPECIFIED = 0; + */ + public static final int ITEM_ISSUE_RESOLUTION_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +       * The merchant has to fix the issue.
      +       * 
      + * + * MERCHANT_ACTION = 1; + */ + public static final int MERCHANT_ACTION_VALUE = 1; + + /** + * + * + *
      +       * The issue will be resolved automatically (for example, image crawl) or
      +       * through a Google review. No merchant action is required now. Resolution
      +       * might lead to another issue (for example, if crawl fails).
      +       * 
      + * + * PENDING_PROCESSING = 2; + */ + public static final int PENDING_PROCESSING_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 ItemIssueResolution 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 ItemIssueResolution forNumber(int value) { + switch (value) { + case 0: + return ITEM_ISSUE_RESOLUTION_UNSPECIFIED; + case 1: + return MERCHANT_ACTION; + case 2: + return PENDING_PROCESSING; + 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 ItemIssueResolution findValueByNumber(int number) { + return ItemIssueResolution.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ItemIssueResolution[] VALUES = values(); + + public static ItemIssueResolution 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 ItemIssueResolution(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueResolution) + } + + public interface ItemIssueTypeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +       * Error code of the issue, equivalent to the `code` of [Product
      +       * issues](https://developers.google.com/shopping-content/guides/product-issues).
      +       * 
      + * + * optional string code = 1; + * + * @return Whether the code field is set. + */ + boolean hasCode(); + + /** + * + * + *
      +       * Error code of the issue, equivalent to the `code` of [Product
      +       * issues](https://developers.google.com/shopping-content/guides/product-issues).
      +       * 
      + * + * optional string code = 1; + * + * @return The code. + */ + java.lang.String getCode(); + + /** + * + * + *
      +       * Error code of the issue, equivalent to the `code` of [Product
      +       * issues](https://developers.google.com/shopping-content/guides/product-issues).
      +       * 
      + * + * optional string code = 1; + * + * @return The bytes for code. + */ + com.google.protobuf.ByteString getCodeBytes(); + + /** + * + * + *
      +       * Canonical attribute name for attribute-specific issues.
      +       * 
      + * + * optional string canonical_attribute = 2; + * + * @return Whether the canonicalAttribute field is set. + */ + boolean hasCanonicalAttribute(); + + /** + * + * + *
      +       * Canonical attribute name for attribute-specific issues.
      +       * 
      + * + * optional string canonical_attribute = 2; + * + * @return The canonicalAttribute. + */ + java.lang.String getCanonicalAttribute(); + + /** + * + * + *
      +       * Canonical attribute name for attribute-specific issues.
      +       * 
      + * + * optional string canonical_attribute = 2; + * + * @return The bytes for canonicalAttribute. + */ + com.google.protobuf.ByteString getCanonicalAttributeBytes(); + } + + /** + * + * + *
      +     * Issue type.
      +     * 
      + * + * Protobuf type {@code + * google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType} + */ + public static final class ItemIssueType extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType) + ItemIssueTypeOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ItemIssueType.newBuilder() to construct. + private ItemIssueType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ItemIssueType() { + code_ = ""; + canonicalAttribute_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ItemIssueType(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_ProductView_ItemIssue_ItemIssueType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_ProductView_ItemIssue_ItemIssueType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType + .class, + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType + .Builder.class); + } + + private int bitField0_; + public static final int CODE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object code_ = ""; + + /** + * + * + *
      +       * Error code of the issue, equivalent to the `code` of [Product
      +       * issues](https://developers.google.com/shopping-content/guides/product-issues).
      +       * 
      + * + * optional string code = 1; + * + * @return Whether the code field is set. + */ + @java.lang.Override + public boolean hasCode() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +       * Error code of the issue, equivalent to the `code` of [Product
      +       * issues](https://developers.google.com/shopping-content/guides/product-issues).
      +       * 
      + * + * optional string code = 1; + * + * @return The code. + */ + @java.lang.Override + public java.lang.String getCode() { + java.lang.Object ref = code_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + code_ = s; + return s; + } + } + + /** + * + * + *
      +       * Error code of the issue, equivalent to the `code` of [Product
      +       * issues](https://developers.google.com/shopping-content/guides/product-issues).
      +       * 
      + * + * optional string code = 1; + * + * @return The bytes for code. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CANONICAL_ATTRIBUTE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object canonicalAttribute_ = ""; + + /** + * + * + *
      +       * Canonical attribute name for attribute-specific issues.
      +       * 
      + * + * optional string canonical_attribute = 2; + * + * @return Whether the canonicalAttribute field is set. + */ + @java.lang.Override + public boolean hasCanonicalAttribute() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +       * Canonical attribute name for attribute-specific issues.
      +       * 
      + * + * optional string canonical_attribute = 2; + * + * @return The canonicalAttribute. + */ + @java.lang.Override + public java.lang.String getCanonicalAttribute() { + java.lang.Object ref = canonicalAttribute_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + canonicalAttribute_ = s; + return s; + } + } + + /** + * + * + *
      +       * Canonical attribute name for attribute-specific issues.
      +       * 
      + * + * optional string canonical_attribute = 2; + * + * @return The bytes for canonicalAttribute. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCanonicalAttributeBytes() { + java.lang.Object ref = canonicalAttribute_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + canonicalAttribute_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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.GeneratedMessageV3.writeString(output, 1, code_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, canonicalAttribute_); + } + 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.GeneratedMessageV3.computeStringSize(1, code_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, canonicalAttribute_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType)) { + return super.equals(obj); + } + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType other = + (com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType) obj; + + if (hasCode() != other.hasCode()) return false; + if (hasCode()) { + if (!getCode().equals(other.getCode())) return false; + } + if (hasCanonicalAttribute() != other.hasCanonicalAttribute()) return false; + if (hasCanonicalAttribute()) { + if (!getCanonicalAttribute().equals(other.getCanonicalAttribute())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCode()) { + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + getCode().hashCode(); + } + if (hasCanonicalAttribute()) { + hash = (37 * hash) + CANONICAL_ATTRIBUTE_FIELD_NUMBER; + hash = (53 * hash) + getCanonicalAttribute().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +       * Issue type.
      +       * 
      + * + * Protobuf type {@code + * google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType) + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueTypeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_ProductView_ItemIssue_ItemIssueType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_ProductView_ItemIssue_ItemIssueType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType + .class, + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType + .Builder.class); + } + + // Construct using + // com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + code_ = ""; + canonicalAttribute_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_ProductView_ItemIssue_ItemIssueType_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType + getDefaultInstanceForType() { + return com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType + build() { + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType + buildPartial() { + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType result = + new com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.code_ = code_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.canonicalAttribute_ = canonicalAttribute_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType) { + return mergeFrom( + (com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType + other) { + if (other + == com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType + .getDefaultInstance()) return this; + if (other.hasCode()) { + code_ = other.code_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCanonicalAttribute()) { + canonicalAttribute_ = other.canonicalAttribute_; + 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: + { + code_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + canonicalAttribute_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object code_ = ""; + + /** + * + * + *
      +         * Error code of the issue, equivalent to the `code` of [Product
      +         * issues](https://developers.google.com/shopping-content/guides/product-issues).
      +         * 
      + * + * optional string code = 1; + * + * @return Whether the code field is set. + */ + public boolean hasCode() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +         * Error code of the issue, equivalent to the `code` of [Product
      +         * issues](https://developers.google.com/shopping-content/guides/product-issues).
      +         * 
      + * + * optional string code = 1; + * + * @return The code. + */ + public java.lang.String getCode() { + java.lang.Object ref = code_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + code_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +         * Error code of the issue, equivalent to the `code` of [Product
      +         * issues](https://developers.google.com/shopping-content/guides/product-issues).
      +         * 
      + * + * optional string code = 1; + * + * @return The bytes for code. + */ + public com.google.protobuf.ByteString getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +         * Error code of the issue, equivalent to the `code` of [Product
      +         * issues](https://developers.google.com/shopping-content/guides/product-issues).
      +         * 
      + * + * optional string code = 1; + * + * @param value The code to set. + * @return This builder for chaining. + */ + public Builder setCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + code_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +         * Error code of the issue, equivalent to the `code` of [Product
      +         * issues](https://developers.google.com/shopping-content/guides/product-issues).
      +         * 
      + * + * optional string code = 1; + * + * @return This builder for chaining. + */ + public Builder clearCode() { + code_ = getDefaultInstance().getCode(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +         * Error code of the issue, equivalent to the `code` of [Product
      +         * issues](https://developers.google.com/shopping-content/guides/product-issues).
      +         * 
      + * + * optional string code = 1; + * + * @param value The bytes for code to set. + * @return This builder for chaining. + */ + public Builder setCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + code_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object canonicalAttribute_ = ""; + + /** + * + * + *
      +         * Canonical attribute name for attribute-specific issues.
      +         * 
      + * + * optional string canonical_attribute = 2; + * + * @return Whether the canonicalAttribute field is set. + */ + public boolean hasCanonicalAttribute() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +         * Canonical attribute name for attribute-specific issues.
      +         * 
      + * + * optional string canonical_attribute = 2; + * + * @return The canonicalAttribute. + */ + public java.lang.String getCanonicalAttribute() { + java.lang.Object ref = canonicalAttribute_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + canonicalAttribute_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +         * Canonical attribute name for attribute-specific issues.
      +         * 
      + * + * optional string canonical_attribute = 2; + * + * @return The bytes for canonicalAttribute. + */ + public com.google.protobuf.ByteString getCanonicalAttributeBytes() { + java.lang.Object ref = canonicalAttribute_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + canonicalAttribute_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +         * Canonical attribute name for attribute-specific issues.
      +         * 
      + * + * optional string canonical_attribute = 2; + * + * @param value The canonicalAttribute to set. + * @return This builder for chaining. + */ + public Builder setCanonicalAttribute(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + canonicalAttribute_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +         * Canonical attribute name for attribute-specific issues.
      +         * 
      + * + * optional string canonical_attribute = 2; + * + * @return This builder for chaining. + */ + public Builder clearCanonicalAttribute() { + canonicalAttribute_ = getDefaultInstance().getCanonicalAttribute(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +         * Canonical attribute name for attribute-specific issues.
      +         * 
      + * + * optional string canonical_attribute = 2; + * + * @param value The bytes for canonicalAttribute to set. + * @return This builder for chaining. + */ + public Builder setCanonicalAttributeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + canonicalAttribute_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType) + private static final com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueType + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType(); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ItemIssueType parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ItemIssueSeverityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +       * Issue severity per reporting context.
      +       * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; + * + */ + java.util.List< + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .IssueSeverityPerReportingContext> + getSeverityPerReportingContextList(); + + /** + * + * + *
      +       * Issue severity per reporting context.
      +       * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; + * + */ + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .IssueSeverityPerReportingContext + getSeverityPerReportingContext(int index); + + /** + * + * + *
      +       * Issue severity per reporting context.
      +       * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; + * + */ + int getSeverityPerReportingContextCount(); + + /** + * + * + *
      +       * Issue severity per reporting context.
      +       * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; + * + */ + java.util.List< + ? extends + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity.IssueSeverityPerReportingContextOrBuilder> + getSeverityPerReportingContextOrBuilderList(); + + /** + * + * + *
      +       * Issue severity per reporting context.
      +       * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; + * + */ + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .IssueSeverityPerReportingContextOrBuilder + getSeverityPerReportingContextOrBuilder(int index); + + /** + * + * + *
      +       * Aggregated severity of the issue for all reporting contexts it affects.
      +       *
      +       * **This field can be used for filtering the results.**
      +       * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.AggregatedIssueSeverity aggregated_severity = 2; + * + * + * @return Whether the aggregatedSeverity field is set. + */ + boolean hasAggregatedSeverity(); + + /** + * + * + *
      +       * Aggregated severity of the issue for all reporting contexts it affects.
      +       *
      +       * **This field can be used for filtering the results.**
      +       * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.AggregatedIssueSeverity aggregated_severity = 2; + * + * + * @return The enum numeric value on the wire for aggregatedSeverity. + */ + int getAggregatedSeverityValue(); + + /** + * + * + *
      +       * Aggregated severity of the issue for all reporting contexts it affects.
      +       *
      +       * **This field can be used for filtering the results.**
      +       * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.AggregatedIssueSeverity aggregated_severity = 2; + * + * + * @return The aggregatedSeverity. + */ + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .AggregatedIssueSeverity + getAggregatedSeverity(); + } + + /** + * + * + *
      +     * How the issue affects the serving of the product.
      +     * 
      + * + * Protobuf type {@code + * google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity} + */ + public static final class ItemIssueSeverity extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity) + ItemIssueSeverityOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ItemIssueSeverity.newBuilder() to construct. + private ItemIssueSeverity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ItemIssueSeverity() { + severityPerReportingContext_ = java.util.Collections.emptyList(); + aggregatedSeverity_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ItemIssueSeverity(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_ProductView_ItemIssue_ItemIssueSeverity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_ProductView_ItemIssue_ItemIssueSeverity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .class, + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .Builder.class); + } + + /** + * + * + *
      +       * Issue severity aggregated for all reporting contexts.
      +       * 
      + * + * Protobuf enum {@code + * google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.AggregatedIssueSeverity} + */ + public enum AggregatedIssueSeverity implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +         * Not specified.
      +         * 
      + * + * AGGREGATED_ISSUE_SEVERITY_UNSPECIFIED = 0; + */ + AGGREGATED_ISSUE_SEVERITY_UNSPECIFIED(0), + /** + * + * + *
      +         * Issue disapproves the product in at least one reporting context.
      +         * 
      + * + * DISAPPROVED = 1; + */ + DISAPPROVED(1), + /** + * + * + *
      +         * Issue demotes the product in all reporting contexts it affects.
      +         * 
      + * + * DEMOTED = 2; + */ + DEMOTED(2), + /** + * + * + *
      +         * Issue resolution is `PENDING_PROCESSING`.
      +         * 
      + * + * PENDING = 3; + */ + PENDING(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
      +         * Not specified.
      +         * 
      + * + * AGGREGATED_ISSUE_SEVERITY_UNSPECIFIED = 0; + */ + public static final int AGGREGATED_ISSUE_SEVERITY_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +         * Issue disapproves the product in at least one reporting context.
      +         * 
      + * + * DISAPPROVED = 1; + */ + public static final int DISAPPROVED_VALUE = 1; + + /** + * + * + *
      +         * Issue demotes the product in all reporting contexts it affects.
      +         * 
      + * + * DEMOTED = 2; + */ + public static final int DEMOTED_VALUE = 2; + + /** + * + * + *
      +         * Issue resolution is `PENDING_PROCESSING`.
      +         * 
      + * + * PENDING = 3; + */ + public static final int PENDING_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static AggregatedIssueSeverity 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 AggregatedIssueSeverity forNumber(int value) { + switch (value) { + case 0: + return AGGREGATED_ISSUE_SEVERITY_UNSPECIFIED; + case 1: + return DISAPPROVED; + case 2: + return DEMOTED; + case 3: + return PENDING; + 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 AggregatedIssueSeverity findValueByNumber(int number) { + return AggregatedIssueSeverity.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final AggregatedIssueSeverity[] VALUES = values(); + + public static AggregatedIssueSeverity 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 AggregatedIssueSeverity(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.AggregatedIssueSeverity) + } + + public interface IssueSeverityPerReportingContextOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +         * Reporting context the issue applies to.
      +         * 
      + * + * + * optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1; + * + * + * @return Whether the reportingContext field is set. + */ + boolean hasReportingContext(); + + /** + * + * + *
      +         * Reporting context the issue applies to.
      +         * 
      + * + * + * optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1; + * + * + * @return The enum numeric value on the wire for reportingContext. + */ + int getReportingContextValue(); + + /** + * + * + *
      +         * Reporting context the issue applies to.
      +         * 
      + * + * + * optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1; + * + * + * @return The reportingContext. + */ + com.google.shopping.type.ReportingContext.ReportingContextEnum getReportingContext(); + + /** + * + * + *
      +         * List of disapproved countries in the reporting context, represented
      +         * in ISO 3166 format.
      +         * 
      + * + * repeated string disapproved_countries = 2; + * + * @return A list containing the disapprovedCountries. + */ + java.util.List getDisapprovedCountriesList(); + + /** + * + * + *
      +         * List of disapproved countries in the reporting context, represented
      +         * in ISO 3166 format.
      +         * 
      + * + * repeated string disapproved_countries = 2; + * + * @return The count of disapprovedCountries. + */ + int getDisapprovedCountriesCount(); + + /** + * + * + *
      +         * List of disapproved countries in the reporting context, represented
      +         * in ISO 3166 format.
      +         * 
      + * + * repeated string disapproved_countries = 2; + * + * @param index The index of the element to return. + * @return The disapprovedCountries at the given index. + */ + java.lang.String getDisapprovedCountries(int index); + + /** + * + * + *
      +         * List of disapproved countries in the reporting context, represented
      +         * in ISO 3166 format.
      +         * 
      + * + * repeated string disapproved_countries = 2; + * + * @param index The index of the value to return. + * @return The bytes of the disapprovedCountries at the given index. + */ + com.google.protobuf.ByteString getDisapprovedCountriesBytes(int index); + + /** + * + * + *
      +         * List of demoted countries in the reporting context, represented in
      +         * ISO 3166 format.
      +         * 
      + * + * repeated string demoted_countries = 3; + * + * @return A list containing the demotedCountries. + */ + java.util.List getDemotedCountriesList(); + + /** + * + * + *
      +         * List of demoted countries in the reporting context, represented in
      +         * ISO 3166 format.
      +         * 
      + * + * repeated string demoted_countries = 3; + * + * @return The count of demotedCountries. + */ + int getDemotedCountriesCount(); + + /** + * + * + *
      +         * List of demoted countries in the reporting context, represented in
      +         * ISO 3166 format.
      +         * 
      + * + * repeated string demoted_countries = 3; + * + * @param index The index of the element to return. + * @return The demotedCountries at the given index. + */ + java.lang.String getDemotedCountries(int index); + + /** + * + * + *
      +         * List of demoted countries in the reporting context, represented in
      +         * ISO 3166 format.
      +         * 
      + * + * repeated string demoted_countries = 3; + * + * @param index The index of the value to return. + * @return The bytes of the demotedCountries at the given index. + */ + com.google.protobuf.ByteString getDemotedCountriesBytes(int index); + } + + /** + * + * + *
      +       * Issue severity per reporting context.
      +       * 
      + * + * Protobuf type {@code + * google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext} + */ + public static final class IssueSeverityPerReportingContext + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext) + IssueSeverityPerReportingContextOrBuilder { + private static final long serialVersionUID = 0L; + + // Use IssueSeverityPerReportingContext.newBuilder() to construct. + private IssueSeverityPerReportingContext( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IssueSeverityPerReportingContext() { + reportingContext_ = 0; + disapprovedCountries_ = com.google.protobuf.LazyStringArrayList.emptyList(); + demotedCountries_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IssueSeverityPerReportingContext(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerReportingContext_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerReportingContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity.IssueSeverityPerReportingContext.class, + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity.IssueSeverityPerReportingContext.Builder.class); + } + + private int bitField0_; + public static final int REPORTING_CONTEXT_FIELD_NUMBER = 1; + private int reportingContext_ = 0; + + /** + * + * + *
      +         * Reporting context the issue applies to.
      +         * 
      + * + * + * optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1; + * + * + * @return Whether the reportingContext field is set. + */ + @java.lang.Override + public boolean hasReportingContext() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +         * Reporting context the issue applies to.
      +         * 
      + * + * + * optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1; + * + * + * @return The enum numeric value on the wire for reportingContext. + */ + @java.lang.Override + public int getReportingContextValue() { + return reportingContext_; + } + + /** + * + * + *
      +         * Reporting context the issue applies to.
      +         * 
      + * + * + * optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1; + * + * + * @return The reportingContext. + */ + @java.lang.Override + public com.google.shopping.type.ReportingContext.ReportingContextEnum + getReportingContext() { + com.google.shopping.type.ReportingContext.ReportingContextEnum result = + com.google.shopping.type.ReportingContext.ReportingContextEnum.forNumber( + reportingContext_); + return result == null + ? com.google.shopping.type.ReportingContext.ReportingContextEnum.UNRECOGNIZED + : result; + } + + public static final int DISAPPROVED_COUNTRIES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList disapprovedCountries_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
      +         * List of disapproved countries in the reporting context, represented
      +         * in ISO 3166 format.
      +         * 
      + * + * repeated string disapproved_countries = 2; + * + * @return A list containing the disapprovedCountries. + */ + public com.google.protobuf.ProtocolStringList getDisapprovedCountriesList() { + return disapprovedCountries_; + } + + /** + * + * + *
      +         * List of disapproved countries in the reporting context, represented
      +         * in ISO 3166 format.
      +         * 
      + * + * repeated string disapproved_countries = 2; + * + * @return The count of disapprovedCountries. + */ + public int getDisapprovedCountriesCount() { + return disapprovedCountries_.size(); + } + + /** + * + * + *
      +         * List of disapproved countries in the reporting context, represented
      +         * in ISO 3166 format.
      +         * 
      + * + * repeated string disapproved_countries = 2; + * + * @param index The index of the element to return. + * @return The disapprovedCountries at the given index. + */ + public java.lang.String getDisapprovedCountries(int index) { + return disapprovedCountries_.get(index); + } + + /** + * + * + *
      +         * List of disapproved countries in the reporting context, represented
      +         * in ISO 3166 format.
      +         * 
      + * + * repeated string disapproved_countries = 2; + * + * @param index The index of the value to return. + * @return The bytes of the disapprovedCountries at the given index. + */ + public com.google.protobuf.ByteString getDisapprovedCountriesBytes(int index) { + return disapprovedCountries_.getByteString(index); + } + + public static final int DEMOTED_COUNTRIES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList demotedCountries_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
      +         * List of demoted countries in the reporting context, represented in
      +         * ISO 3166 format.
      +         * 
      + * + * repeated string demoted_countries = 3; + * + * @return A list containing the demotedCountries. + */ + public com.google.protobuf.ProtocolStringList getDemotedCountriesList() { + return demotedCountries_; + } + + /** + * + * + *
      +         * List of demoted countries in the reporting context, represented in
      +         * ISO 3166 format.
      +         * 
      + * + * repeated string demoted_countries = 3; + * + * @return The count of demotedCountries. + */ + public int getDemotedCountriesCount() { + return demotedCountries_.size(); + } + + /** + * + * + *
      +         * List of demoted countries in the reporting context, represented in
      +         * ISO 3166 format.
      +         * 
      + * + * repeated string demoted_countries = 3; + * + * @param index The index of the element to return. + * @return The demotedCountries at the given index. + */ + public java.lang.String getDemotedCountries(int index) { + return demotedCountries_.get(index); + } + + /** + * + * + *
      +         * List of demoted countries in the reporting context, represented in
      +         * ISO 3166 format.
      +         * 
      + * + * repeated string demoted_countries = 3; + * + * @param index The index of the value to return. + * @return The bytes of the demotedCountries at the given index. + */ + public com.google.protobuf.ByteString getDemotedCountriesBytes(int index) { + return demotedCountries_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, reportingContext_); + } + for (int i = 0; i < disapprovedCountries_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 2, disapprovedCountries_.getRaw(i)); + } + for (int i = 0; i < demotedCountries_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 3, demotedCountries_.getRaw(i)); + } + 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.computeEnumSize(1, reportingContext_); + } + { + int dataSize = 0; + for (int i = 0; i < disapprovedCountries_.size(); i++) { + dataSize += computeStringSizeNoTag(disapprovedCountries_.getRaw(i)); + } + size += dataSize; + size += 1 * getDisapprovedCountriesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < demotedCountries_.size(); i++) { + dataSize += computeStringSizeNoTag(demotedCountries_.getRaw(i)); + } + size += dataSize; + size += 1 * getDemotedCountriesList().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.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .IssueSeverityPerReportingContext)) { + return super.equals(obj); + } + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .IssueSeverityPerReportingContext + other = + (com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity.IssueSeverityPerReportingContext) + obj; + + if (hasReportingContext() != other.hasReportingContext()) return false; + if (hasReportingContext()) { + if (reportingContext_ != other.reportingContext_) return false; + } + if (!getDisapprovedCountriesList().equals(other.getDisapprovedCountriesList())) + return false; + if (!getDemotedCountriesList().equals(other.getDemotedCountriesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasReportingContext()) { + hash = (37 * hash) + REPORTING_CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + reportingContext_; + } + if (getDisapprovedCountriesCount() > 0) { + hash = (37 * hash) + DISAPPROVED_COUNTRIES_FIELD_NUMBER; + hash = (53 * hash) + getDisapprovedCountriesList().hashCode(); + } + if (getDemotedCountriesCount() > 0) { + hash = (37 * hash) + DEMOTED_COUNTRIES_FIELD_NUMBER; + hash = (53 * hash) + getDemotedCountriesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity.IssueSeverityPerReportingContext + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity.IssueSeverityPerReportingContext + parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity.IssueSeverityPerReportingContext + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity.IssueSeverityPerReportingContext + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity.IssueSeverityPerReportingContext + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity.IssueSeverityPerReportingContext + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity.IssueSeverityPerReportingContext + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity.IssueSeverityPerReportingContext + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity.IssueSeverityPerReportingContext + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity.IssueSeverityPerReportingContext + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity.IssueSeverityPerReportingContext + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity.IssueSeverityPerReportingContext + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .IssueSeverityPerReportingContext + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +         * Issue severity per reporting context.
      +         * 
      + * + * Protobuf type {@code + * google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext) + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .IssueSeverityPerReportingContextOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerReportingContext_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerReportingContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity.IssueSeverityPerReportingContext.class, + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity.IssueSeverityPerReportingContext.Builder.class); + } + + // Construct using + // com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + reportingContext_ = 0; + disapprovedCountries_ = com.google.protobuf.LazyStringArrayList.emptyList(); + demotedCountries_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerReportingContext_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity.IssueSeverityPerReportingContext + getDefaultInstanceForType() { + return com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity.IssueSeverityPerReportingContext.getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity.IssueSeverityPerReportingContext + build() { + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .IssueSeverityPerReportingContext + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity.IssueSeverityPerReportingContext + buildPartial() { + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .IssueSeverityPerReportingContext + result = + new com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity.IssueSeverityPerReportingContext(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .IssueSeverityPerReportingContext + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.reportingContext_ = reportingContext_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + disapprovedCountries_.makeImmutable(); + result.disapprovedCountries_ = disapprovedCountries_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + demotedCountries_.makeImmutable(); + result.demotedCountries_ = demotedCountries_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .IssueSeverityPerReportingContext) { + return mergeFrom( + (com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity.IssueSeverityPerReportingContext) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .IssueSeverityPerReportingContext + other) { + if (other + == com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity.IssueSeverityPerReportingContext.getDefaultInstance()) + return this; + if (other.hasReportingContext()) { + setReportingContext(other.getReportingContext()); + } + if (!other.disapprovedCountries_.isEmpty()) { + if (disapprovedCountries_.isEmpty()) { + disapprovedCountries_ = other.disapprovedCountries_; + bitField0_ |= 0x00000002; + } else { + ensureDisapprovedCountriesIsMutable(); + disapprovedCountries_.addAll(other.disapprovedCountries_); + } + onChanged(); + } + if (!other.demotedCountries_.isEmpty()) { + if (demotedCountries_.isEmpty()) { + demotedCountries_ = other.demotedCountries_; + bitField0_ |= 0x00000004; + } else { + ensureDemotedCountriesIsMutable(); + demotedCountries_.addAll(other.demotedCountries_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + reportingContext_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureDisapprovedCountriesIsMutable(); + disapprovedCountries_.add(s); + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureDemotedCountriesIsMutable(); + demotedCountries_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int reportingContext_ = 0; + + /** + * + * + *
      +           * Reporting context the issue applies to.
      +           * 
      + * + * + * optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1; + * + * + * @return Whether the reportingContext field is set. + */ + @java.lang.Override + public boolean hasReportingContext() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +           * Reporting context the issue applies to.
      +           * 
      + * + * + * optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1; + * + * + * @return The enum numeric value on the wire for reportingContext. + */ + @java.lang.Override + public int getReportingContextValue() { + return reportingContext_; + } + + /** + * + * + *
      +           * Reporting context the issue applies to.
      +           * 
      + * + * + * optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1; + * + * + * @param value The enum numeric value on the wire for reportingContext to set. + * @return This builder for chaining. + */ + public Builder setReportingContextValue(int value) { + reportingContext_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +           * Reporting context the issue applies to.
      +           * 
      + * + * + * optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1; + * + * + * @return The reportingContext. + */ + @java.lang.Override + public com.google.shopping.type.ReportingContext.ReportingContextEnum + getReportingContext() { + com.google.shopping.type.ReportingContext.ReportingContextEnum result = + com.google.shopping.type.ReportingContext.ReportingContextEnum.forNumber( + reportingContext_); + return result == null + ? com.google.shopping.type.ReportingContext.ReportingContextEnum.UNRECOGNIZED + : result; + } + + /** + * + * + *
      +           * Reporting context the issue applies to.
      +           * 
      + * + * + * optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1; + * + * + * @param value The reportingContext to set. + * @return This builder for chaining. + */ + public Builder setReportingContext( + com.google.shopping.type.ReportingContext.ReportingContextEnum value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + reportingContext_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +           * Reporting context the issue applies to.
      +           * 
      + * + * + * optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearReportingContext() { + bitField0_ = (bitField0_ & ~0x00000001); + reportingContext_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList disapprovedCountries_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureDisapprovedCountriesIsMutable() { + if (!disapprovedCountries_.isModifiable()) { + disapprovedCountries_ = + new com.google.protobuf.LazyStringArrayList(disapprovedCountries_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
      +           * List of disapproved countries in the reporting context, represented
      +           * in ISO 3166 format.
      +           * 
      + * + * repeated string disapproved_countries = 2; + * + * @return A list containing the disapprovedCountries. + */ + public com.google.protobuf.ProtocolStringList getDisapprovedCountriesList() { + disapprovedCountries_.makeImmutable(); + return disapprovedCountries_; + } + + /** + * + * + *
      +           * List of disapproved countries in the reporting context, represented
      +           * in ISO 3166 format.
      +           * 
      + * + * repeated string disapproved_countries = 2; + * + * @return The count of disapprovedCountries. + */ + public int getDisapprovedCountriesCount() { + return disapprovedCountries_.size(); + } + + /** + * + * + *
      +           * List of disapproved countries in the reporting context, represented
      +           * in ISO 3166 format.
      +           * 
      + * + * repeated string disapproved_countries = 2; + * + * @param index The index of the element to return. + * @return The disapprovedCountries at the given index. + */ + public java.lang.String getDisapprovedCountries(int index) { + return disapprovedCountries_.get(index); + } + + /** + * + * + *
      +           * List of disapproved countries in the reporting context, represented
      +           * in ISO 3166 format.
      +           * 
      + * + * repeated string disapproved_countries = 2; + * + * @param index The index of the value to return. + * @return The bytes of the disapprovedCountries at the given index. + */ + public com.google.protobuf.ByteString getDisapprovedCountriesBytes(int index) { + return disapprovedCountries_.getByteString(index); + } + + /** + * + * + *
      +           * List of disapproved countries in the reporting context, represented
      +           * in ISO 3166 format.
      +           * 
      + * + * repeated string disapproved_countries = 2; + * + * @param index The index to set the value at. + * @param value The disapprovedCountries to set. + * @return This builder for chaining. + */ + public Builder setDisapprovedCountries(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDisapprovedCountriesIsMutable(); + disapprovedCountries_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +           * List of disapproved countries in the reporting context, represented
      +           * in ISO 3166 format.
      +           * 
      + * + * repeated string disapproved_countries = 2; + * + * @param value The disapprovedCountries to add. + * @return This builder for chaining. + */ + public Builder addDisapprovedCountries(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDisapprovedCountriesIsMutable(); + disapprovedCountries_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +           * List of disapproved countries in the reporting context, represented
      +           * in ISO 3166 format.
      +           * 
      + * + * repeated string disapproved_countries = 2; + * + * @param values The disapprovedCountries to add. + * @return This builder for chaining. + */ + public Builder addAllDisapprovedCountries(java.lang.Iterable values) { + ensureDisapprovedCountriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, disapprovedCountries_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +           * List of disapproved countries in the reporting context, represented
      +           * in ISO 3166 format.
      +           * 
      + * + * repeated string disapproved_countries = 2; + * + * @return This builder for chaining. + */ + public Builder clearDisapprovedCountries() { + disapprovedCountries_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
      +           * List of disapproved countries in the reporting context, represented
      +           * in ISO 3166 format.
      +           * 
      + * + * repeated string disapproved_countries = 2; + * + * @param value The bytes of the disapprovedCountries to add. + * @return This builder for chaining. + */ + public Builder addDisapprovedCountriesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureDisapprovedCountriesIsMutable(); + disapprovedCountries_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList demotedCountries_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureDemotedCountriesIsMutable() { + if (!demotedCountries_.isModifiable()) { + demotedCountries_ = new com.google.protobuf.LazyStringArrayList(demotedCountries_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
      +           * List of demoted countries in the reporting context, represented in
      +           * ISO 3166 format.
      +           * 
      + * + * repeated string demoted_countries = 3; + * + * @return A list containing the demotedCountries. + */ + public com.google.protobuf.ProtocolStringList getDemotedCountriesList() { + demotedCountries_.makeImmutable(); + return demotedCountries_; + } + + /** + * + * + *
      +           * List of demoted countries in the reporting context, represented in
      +           * ISO 3166 format.
      +           * 
      + * + * repeated string demoted_countries = 3; + * + * @return The count of demotedCountries. + */ + public int getDemotedCountriesCount() { + return demotedCountries_.size(); + } + + /** + * + * + *
      +           * List of demoted countries in the reporting context, represented in
      +           * ISO 3166 format.
      +           * 
      + * + * repeated string demoted_countries = 3; + * + * @param index The index of the element to return. + * @return The demotedCountries at the given index. + */ + public java.lang.String getDemotedCountries(int index) { + return demotedCountries_.get(index); + } + + /** + * + * + *
      +           * List of demoted countries in the reporting context, represented in
      +           * ISO 3166 format.
      +           * 
      + * + * repeated string demoted_countries = 3; + * + * @param index The index of the value to return. + * @return The bytes of the demotedCountries at the given index. + */ + public com.google.protobuf.ByteString getDemotedCountriesBytes(int index) { + return demotedCountries_.getByteString(index); + } + + /** + * + * + *
      +           * List of demoted countries in the reporting context, represented in
      +           * ISO 3166 format.
      +           * 
      + * + * repeated string demoted_countries = 3; + * + * @param index The index to set the value at. + * @param value The demotedCountries to set. + * @return This builder for chaining. + */ + public Builder setDemotedCountries(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDemotedCountriesIsMutable(); + demotedCountries_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +           * List of demoted countries in the reporting context, represented in
      +           * ISO 3166 format.
      +           * 
      + * + * repeated string demoted_countries = 3; + * + * @param value The demotedCountries to add. + * @return This builder for chaining. + */ + public Builder addDemotedCountries(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDemotedCountriesIsMutable(); + demotedCountries_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +           * List of demoted countries in the reporting context, represented in
      +           * ISO 3166 format.
      +           * 
      + * + * repeated string demoted_countries = 3; + * + * @param values The demotedCountries to add. + * @return This builder for chaining. + */ + public Builder addAllDemotedCountries(java.lang.Iterable values) { + ensureDemotedCountriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, demotedCountries_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +           * List of demoted countries in the reporting context, represented in
      +           * ISO 3166 format.
      +           * 
      + * + * repeated string demoted_countries = 3; + * + * @return This builder for chaining. + */ + public Builder clearDemotedCountries() { + demotedCountries_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
      +           * List of demoted countries in the reporting context, represented in
      +           * ISO 3166 format.
      +           * 
      + * + * repeated string demoted_countries = 3; + * + * @param value The bytes of the demotedCountries to add. + * @return This builder for chaining. + */ + public Builder addDemotedCountriesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureDemotedCountriesIsMutable(); + demotedCountries_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext) + private static final com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity.IssueSeverityPerReportingContext + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity.IssueSeverityPerReportingContext(); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity.IssueSeverityPerReportingContext + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IssueSeverityPerReportingContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .IssueSeverityPerReportingContext + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int SEVERITY_PER_REPORTING_CONTEXT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .IssueSeverityPerReportingContext> + severityPerReportingContext_; + + /** + * + * + *
      +       * Issue severity per reporting context.
      +       * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .IssueSeverityPerReportingContext> + getSeverityPerReportingContextList() { + return severityPerReportingContext_; + } + + /** + * + * + *
      +       * Issue severity per reporting context.
      +       * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity.IssueSeverityPerReportingContextOrBuilder> + getSeverityPerReportingContextOrBuilderList() { + return severityPerReportingContext_; + } + + /** + * + * + *
      +       * Issue severity per reporting context.
      +       * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; + * + */ + @java.lang.Override + public int getSeverityPerReportingContextCount() { + return severityPerReportingContext_.size(); + } + + /** + * + * + *
      +       * Issue severity per reporting context.
      +       * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; + * + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .IssueSeverityPerReportingContext + getSeverityPerReportingContext(int index) { + return severityPerReportingContext_.get(index); + } + + /** + * + * + *
      +       * Issue severity per reporting context.
      +       * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; + * + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .IssueSeverityPerReportingContextOrBuilder + getSeverityPerReportingContextOrBuilder(int index) { + return severityPerReportingContext_.get(index); + } + + public static final int AGGREGATED_SEVERITY_FIELD_NUMBER = 2; + private int aggregatedSeverity_ = 0; + + /** + * + * + *
      +       * Aggregated severity of the issue for all reporting contexts it affects.
      +       *
      +       * **This field can be used for filtering the results.**
      +       * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.AggregatedIssueSeverity aggregated_severity = 2; + * + * + * @return Whether the aggregatedSeverity field is set. + */ + @java.lang.Override + public boolean hasAggregatedSeverity() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +       * Aggregated severity of the issue for all reporting contexts it affects.
      +       *
      +       * **This field can be used for filtering the results.**
      +       * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.AggregatedIssueSeverity aggregated_severity = 2; + * + * + * @return The enum numeric value on the wire for aggregatedSeverity. + */ + @java.lang.Override + public int getAggregatedSeverityValue() { + return aggregatedSeverity_; + } + + /** + * + * + *
      +       * Aggregated severity of the issue for all reporting contexts it affects.
      +       *
      +       * **This field can be used for filtering the results.**
      +       * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.AggregatedIssueSeverity aggregated_severity = 2; + * + * + * @return The aggregatedSeverity. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .AggregatedIssueSeverity + getAggregatedSeverity() { + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .AggregatedIssueSeverity + result = + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .AggregatedIssueSeverity.forNumber(aggregatedSeverity_); + return result == null + ? com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .AggregatedIssueSeverity.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 { + for (int i = 0; i < severityPerReportingContext_.size(); i++) { + output.writeMessage(1, severityPerReportingContext_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(2, aggregatedSeverity_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < severityPerReportingContext_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, severityPerReportingContext_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, aggregatedSeverity_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity)) { + return super.equals(obj); + } + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity other = + (com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity) + obj; + + if (!getSeverityPerReportingContextList() + .equals(other.getSeverityPerReportingContextList())) return false; + if (hasAggregatedSeverity() != other.hasAggregatedSeverity()) return false; + if (hasAggregatedSeverity()) { + if (aggregatedSeverity_ != other.aggregatedSeverity_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSeverityPerReportingContextCount() > 0) { + hash = (37 * hash) + SEVERITY_PER_REPORTING_CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + getSeverityPerReportingContextList().hashCode(); + } + if (hasAggregatedSeverity()) { + hash = (37 * hash) + AGGREGATED_SEVERITY_FIELD_NUMBER; + hash = (53 * hash) + aggregatedSeverity_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +       * How the issue affects the serving of the product.
      +       * 
      + * + * Protobuf type {@code + * google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity) + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_ProductView_ItemIssue_ItemIssueSeverity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_ProductView_ItemIssue_ItemIssueSeverity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity.class, + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity.Builder.class); + } + + // Construct using + // com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (severityPerReportingContextBuilder_ == null) { + severityPerReportingContext_ = java.util.Collections.emptyList(); + } else { + severityPerReportingContext_ = null; + severityPerReportingContextBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + aggregatedSeverity_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_ProductView_ItemIssue_ItemIssueSeverity_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + getDefaultInstanceForType() { + return com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity.getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + build() { + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + buildPartial() { + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + result = + new com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + result) { + if (severityPerReportingContextBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + severityPerReportingContext_ = + java.util.Collections.unmodifiableList(severityPerReportingContext_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.severityPerReportingContext_ = severityPerReportingContext_; + } else { + result.severityPerReportingContext_ = severityPerReportingContextBuilder_.build(); + } + } + + private void buildPartial0( + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.aggregatedSeverity_ = aggregatedSeverity_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity) { + return mergeFrom( + (com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + other) { + if (other + == com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity.getDefaultInstance()) return this; + if (severityPerReportingContextBuilder_ == null) { + if (!other.severityPerReportingContext_.isEmpty()) { + if (severityPerReportingContext_.isEmpty()) { + severityPerReportingContext_ = other.severityPerReportingContext_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSeverityPerReportingContextIsMutable(); + severityPerReportingContext_.addAll(other.severityPerReportingContext_); + } + onChanged(); + } + } else { + if (!other.severityPerReportingContext_.isEmpty()) { + if (severityPerReportingContextBuilder_.isEmpty()) { + severityPerReportingContextBuilder_.dispose(); + severityPerReportingContextBuilder_ = null; + severityPerReportingContext_ = other.severityPerReportingContext_; + bitField0_ = (bitField0_ & ~0x00000001); + severityPerReportingContextBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSeverityPerReportingContextFieldBuilder() + : null; + } else { + severityPerReportingContextBuilder_.addAllMessages( + other.severityPerReportingContext_); + } + } + } + if (other.hasAggregatedSeverity()) { + setAggregatedSeverity(other.getAggregatedSeverity()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity.IssueSeverityPerReportingContext + m = + input.readMessage( + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity.IssueSeverityPerReportingContext.parser(), + extensionRegistry); + if (severityPerReportingContextBuilder_ == null) { + ensureSeverityPerReportingContextIsMutable(); + severityPerReportingContext_.add(m); + } else { + severityPerReportingContextBuilder_.addMessage(m); + } + break; + } // case 10 + case 16: + { + aggregatedSeverity_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List< + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .IssueSeverityPerReportingContext> + severityPerReportingContext_ = java.util.Collections.emptyList(); + + private void ensureSeverityPerReportingContextIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + severityPerReportingContext_ = + new java.util.ArrayList< + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity.IssueSeverityPerReportingContext>( + severityPerReportingContext_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .IssueSeverityPerReportingContext, + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .IssueSeverityPerReportingContext.Builder, + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .IssueSeverityPerReportingContextOrBuilder> + severityPerReportingContextBuilder_; + + /** + * + * + *
      +         * Issue severity per reporting context.
      +         * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; + * + */ + public java.util.List< + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .IssueSeverityPerReportingContext> + getSeverityPerReportingContextList() { + if (severityPerReportingContextBuilder_ == null) { + return java.util.Collections.unmodifiableList(severityPerReportingContext_); + } else { + return severityPerReportingContextBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +         * Issue severity per reporting context.
      +         * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; + * + */ + public int getSeverityPerReportingContextCount() { + if (severityPerReportingContextBuilder_ == null) { + return severityPerReportingContext_.size(); + } else { + return severityPerReportingContextBuilder_.getCount(); + } + } + + /** + * + * + *
      +         * Issue severity per reporting context.
      +         * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; + * + */ + public com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .IssueSeverityPerReportingContext + getSeverityPerReportingContext(int index) { + if (severityPerReportingContextBuilder_ == null) { + return severityPerReportingContext_.get(index); + } else { + return severityPerReportingContextBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +         * Issue severity per reporting context.
      +         * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; + * + */ + public Builder setSeverityPerReportingContext( + int index, + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .IssueSeverityPerReportingContext + value) { + if (severityPerReportingContextBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSeverityPerReportingContextIsMutable(); + severityPerReportingContext_.set(index, value); + onChanged(); + } else { + severityPerReportingContextBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +         * Issue severity per reporting context.
      +         * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; + * + */ + public Builder setSeverityPerReportingContext( + int index, + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .IssueSeverityPerReportingContext.Builder + builderForValue) { + if (severityPerReportingContextBuilder_ == null) { + ensureSeverityPerReportingContextIsMutable(); + severityPerReportingContext_.set(index, builderForValue.build()); + onChanged(); + } else { + severityPerReportingContextBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +         * Issue severity per reporting context.
      +         * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; + * + */ + public Builder addSeverityPerReportingContext( + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .IssueSeverityPerReportingContext + value) { + if (severityPerReportingContextBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSeverityPerReportingContextIsMutable(); + severityPerReportingContext_.add(value); + onChanged(); + } else { + severityPerReportingContextBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +         * Issue severity per reporting context.
      +         * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; + * + */ + public Builder addSeverityPerReportingContext( + int index, + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .IssueSeverityPerReportingContext + value) { + if (severityPerReportingContextBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSeverityPerReportingContextIsMutable(); + severityPerReportingContext_.add(index, value); + onChanged(); + } else { + severityPerReportingContextBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +         * Issue severity per reporting context.
      +         * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; + * + */ + public Builder addSeverityPerReportingContext( + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .IssueSeverityPerReportingContext.Builder + builderForValue) { + if (severityPerReportingContextBuilder_ == null) { + ensureSeverityPerReportingContextIsMutable(); + severityPerReportingContext_.add(builderForValue.build()); + onChanged(); + } else { + severityPerReportingContextBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +         * Issue severity per reporting context.
      +         * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; + * + */ + public Builder addSeverityPerReportingContext( + int index, + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .IssueSeverityPerReportingContext.Builder + builderForValue) { + if (severityPerReportingContextBuilder_ == null) { + ensureSeverityPerReportingContextIsMutable(); + severityPerReportingContext_.add(index, builderForValue.build()); + onChanged(); + } else { + severityPerReportingContextBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +         * Issue severity per reporting context.
      +         * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; + * + */ + public Builder addAllSeverityPerReportingContext( + java.lang.Iterable< + ? extends + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity.IssueSeverityPerReportingContext> + values) { + if (severityPerReportingContextBuilder_ == null) { + ensureSeverityPerReportingContextIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, severityPerReportingContext_); + onChanged(); + } else { + severityPerReportingContextBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +         * Issue severity per reporting context.
      +         * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; + * + */ + public Builder clearSeverityPerReportingContext() { + if (severityPerReportingContextBuilder_ == null) { + severityPerReportingContext_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + severityPerReportingContextBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +         * Issue severity per reporting context.
      +         * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; + * + */ + public Builder removeSeverityPerReportingContext(int index) { + if (severityPerReportingContextBuilder_ == null) { + ensureSeverityPerReportingContextIsMutable(); + severityPerReportingContext_.remove(index); + onChanged(); + } else { + severityPerReportingContextBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +         * Issue severity per reporting context.
      +         * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; + * + */ + public com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .IssueSeverityPerReportingContext.Builder + getSeverityPerReportingContextBuilder(int index) { + return getSeverityPerReportingContextFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +         * Issue severity per reporting context.
      +         * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; + * + */ + public com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .IssueSeverityPerReportingContextOrBuilder + getSeverityPerReportingContextOrBuilder(int index) { + if (severityPerReportingContextBuilder_ == null) { + return severityPerReportingContext_.get(index); + } else { + return severityPerReportingContextBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +         * Issue severity per reporting context.
      +         * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; + * + */ + public java.util.List< + ? extends + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity.IssueSeverityPerReportingContextOrBuilder> + getSeverityPerReportingContextOrBuilderList() { + if (severityPerReportingContextBuilder_ != null) { + return severityPerReportingContextBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(severityPerReportingContext_); + } + } + + /** + * + * + *
      +         * Issue severity per reporting context.
      +         * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; + * + */ + public com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .IssueSeverityPerReportingContext.Builder + addSeverityPerReportingContextBuilder() { + return getSeverityPerReportingContextFieldBuilder() + .addBuilder( + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity.IssueSeverityPerReportingContext.getDefaultInstance()); + } + + /** + * + * + *
      +         * Issue severity per reporting context.
      +         * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; + * + */ + public com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .IssueSeverityPerReportingContext.Builder + addSeverityPerReportingContextBuilder(int index) { + return getSeverityPerReportingContextFieldBuilder() + .addBuilder( + index, + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity.IssueSeverityPerReportingContext.getDefaultInstance()); + } + + /** + * + * + *
      +         * Issue severity per reporting context.
      +         * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext severity_per_reporting_context = 1; + * + */ + public java.util.List< + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .IssueSeverityPerReportingContext.Builder> + getSeverityPerReportingContextBuilderList() { + return getSeverityPerReportingContextFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .IssueSeverityPerReportingContext, + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .IssueSeverityPerReportingContext.Builder, + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .IssueSeverityPerReportingContextOrBuilder> + getSeverityPerReportingContextFieldBuilder() { + if (severityPerReportingContextBuilder_ == null) { + severityPerReportingContextBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity.IssueSeverityPerReportingContext, + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity.IssueSeverityPerReportingContext.Builder, + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity.IssueSeverityPerReportingContextOrBuilder>( + severityPerReportingContext_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + severityPerReportingContext_ = null; + } + return severityPerReportingContextBuilder_; + } + + private int aggregatedSeverity_ = 0; + + /** + * + * + *
      +         * Aggregated severity of the issue for all reporting contexts it affects.
      +         *
      +         * **This field can be used for filtering the results.**
      +         * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.AggregatedIssueSeverity aggregated_severity = 2; + * + * + * @return Whether the aggregatedSeverity field is set. + */ + @java.lang.Override + public boolean hasAggregatedSeverity() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +         * Aggregated severity of the issue for all reporting contexts it affects.
      +         *
      +         * **This field can be used for filtering the results.**
      +         * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.AggregatedIssueSeverity aggregated_severity = 2; + * + * + * @return The enum numeric value on the wire for aggregatedSeverity. + */ + @java.lang.Override + public int getAggregatedSeverityValue() { + return aggregatedSeverity_; + } + + /** + * + * + *
      +         * Aggregated severity of the issue for all reporting contexts it affects.
      +         *
      +         * **This field can be used for filtering the results.**
      +         * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.AggregatedIssueSeverity aggregated_severity = 2; + * + * + * @param value The enum numeric value on the wire for aggregatedSeverity to set. + * @return This builder for chaining. + */ + public Builder setAggregatedSeverityValue(int value) { + aggregatedSeverity_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +         * Aggregated severity of the issue for all reporting contexts it affects.
      +         *
      +         * **This field can be used for filtering the results.**
      +         * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.AggregatedIssueSeverity aggregated_severity = 2; + * + * + * @return The aggregatedSeverity. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .AggregatedIssueSeverity + getAggregatedSeverity() { + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .AggregatedIssueSeverity + result = + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity.AggregatedIssueSeverity.forNumber(aggregatedSeverity_); + return result == null + ? com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .AggregatedIssueSeverity.UNRECOGNIZED + : result; + } + + /** + * + * + *
      +         * Aggregated severity of the issue for all reporting contexts it affects.
      +         *
      +         * **This field can be used for filtering the results.**
      +         * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.AggregatedIssueSeverity aggregated_severity = 2; + * + * + * @param value The aggregatedSeverity to set. + * @return This builder for chaining. + */ + public Builder setAggregatedSeverity( + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .AggregatedIssueSeverity + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + aggregatedSeverity_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +         * Aggregated severity of the issue for all reporting contexts it affects.
      +         *
      +         * **This field can be used for filtering the results.**
      +         * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity.AggregatedIssueSeverity aggregated_severity = 2; + * + * + * @return This builder for chaining. + */ + public Builder clearAggregatedSeverity() { + bitField0_ = (bitField0_ & ~0x00000002); + aggregatedSeverity_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity) + private static final com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity(); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ItemIssueSeverity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int TYPE_FIELD_NUMBER = 1; + private com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType type_; + + /** + * + * + *
      +     * Item issue type.
      +     * 
      + * + * .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType type = 1; + * + * + * @return Whether the type field is set. + */ + @java.lang.Override + public boolean hasType() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +     * Item issue type.
      +     * 
      + * + * .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType type = 1; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType + getType() { + return type_ == null + ? com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType + .getDefaultInstance() + : type_; + } + + /** + * + * + *
      +     * Item issue type.
      +     * 
      + * + * .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType type = 1; + * + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueTypeOrBuilder + getTypeOrBuilder() { + return type_ == null + ? com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType + .getDefaultInstance() + : type_; + } + + public static final int SEVERITY_FIELD_NUMBER = 2; + private com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + severity_; + + /** + * + * + *
      +     * Item issue severity.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity severity = 2; + * + * + * @return Whether the severity field is set. + */ + @java.lang.Override + public boolean hasSeverity() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +     * Item issue severity.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity severity = 2; + * + * + * @return The severity. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + getSeverity() { + return severity_ == null + ? com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .getDefaultInstance() + : severity_; + } + + /** + * + * + *
      +     * Item issue severity.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity severity = 2; + * + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverityOrBuilder + getSeverityOrBuilder() { + return severity_ == null + ? com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .getDefaultInstance() + : severity_; + } + + public static final int RESOLUTION_FIELD_NUMBER = 3; + private int resolution_ = 0; + + /** + * + * + *
      +     * Item issue resolution.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueResolution resolution = 3; + * + * + * @return Whether the resolution field is set. + */ + @java.lang.Override + public boolean hasResolution() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +     * Item issue resolution.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueResolution resolution = 3; + * + * + * @return The enum numeric value on the wire for resolution. + */ + @java.lang.Override + public int getResolutionValue() { + return resolution_; + } + + /** + * + * + *
      +     * Item issue resolution.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueResolution resolution = 3; + * + * + * @return The resolution. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueResolution + getResolution() { + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueResolution + result = + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueResolution + .forNumber(resolution_); + return result == null + ? com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueResolution + .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, getType()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getSeverity()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeEnum(3, resolution_); + } + 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, getType()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSeverity()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, resolution_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue)) { + return super.equals(obj); + } + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue other = + (com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue) obj; + + if (hasType() != other.hasType()) return false; + if (hasType()) { + if (!getType().equals(other.getType())) return false; + } + if (hasSeverity() != other.hasSeverity()) return false; + if (hasSeverity()) { + if (!getSeverity().equals(other.getSeverity())) return false; + } + if (hasResolution() != other.hasResolution()) return false; + if (hasResolution()) { + if (resolution_ != other.resolution_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + } + if (hasSeverity()) { + hash = (37 * hash) + SEVERITY_FIELD_NUMBER; + hash = (53 * hash) + getSeverity().hashCode(); + } + if (hasResolution()) { + hash = (37 * hash) + RESOLUTION_FIELD_NUMBER; + hash = (53 * hash) + resolution_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * Item issue associated with the product.
      +     * 
      + * + * Protobuf type {@code google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue) + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_ProductView_ItemIssue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_ProductView_ItemIssue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.class, + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.Builder.class); + } + + // Construct using + // com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTypeFieldBuilder(); + getSeverityFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + type_ = null; + if (typeBuilder_ != null) { + typeBuilder_.dispose(); + typeBuilder_ = null; + } + severity_ = null; + if (severityBuilder_ != null) { + severityBuilder_.dispose(); + severityBuilder_ = null; + } + resolution_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_ProductView_ItemIssue_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + getDefaultInstanceForType() { + return com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue build() { + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue buildPartial() { + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue result = + new com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.type_ = typeBuilder_ == null ? type_ : typeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.severity_ = severityBuilder_ == null ? severity_ : severityBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.resolution_ = resolution_; + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue) { + return mergeFrom( + (com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue other) { + if (other + == com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .getDefaultInstance()) return this; + if (other.hasType()) { + mergeType(other.getType()); + } + if (other.hasSeverity()) { + mergeSeverity(other.getSeverity()); + } + if (other.hasResolution()) { + setResolution(other.getResolution()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(getTypeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getSeverityFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + resolution_ = 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 com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType + type_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType, + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType + .Builder, + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueTypeOrBuilder> + typeBuilder_; + + /** + * + * + *
      +       * Item issue type.
      +       * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType type = 1; + * + * + * @return Whether the type field is set. + */ + public boolean hasType() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +       * Item issue type.
      +       * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType type = 1; + * + * + * @return The type. + */ + public com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType + getType() { + if (typeBuilder_ == null) { + return type_ == null + ? com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType + .getDefaultInstance() + : type_; + } else { + return typeBuilder_.getMessage(); + } + } + + /** + * + * + *
      +       * Item issue type.
      +       * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType type = 1; + * + */ + public Builder setType( + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType value) { + if (typeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + } else { + typeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Item issue type.
      +       * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType type = 1; + * + */ + public Builder setType( + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType.Builder + builderForValue) { + if (typeBuilder_ == null) { + type_ = builderForValue.build(); + } else { + typeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Item issue type.
      +       * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType type = 1; + * + */ + public Builder mergeType( + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType value) { + if (typeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && type_ != null + && type_ + != com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueType.getDefaultInstance()) { + getTypeBuilder().mergeFrom(value); + } else { + type_ = value; + } + } else { + typeBuilder_.mergeFrom(value); + } + if (type_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
      +       * Item issue type.
      +       * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType type = 1; + * + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000001); + type_ = null; + if (typeBuilder_ != null) { + typeBuilder_.dispose(); + typeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +       * Item issue type.
      +       * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType type = 1; + * + */ + public com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType + .Builder + getTypeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getTypeFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +       * Item issue type.
      +       * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType type = 1; + * + */ + public com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueTypeOrBuilder + getTypeOrBuilder() { + if (typeBuilder_ != null) { + return typeBuilder_.getMessageOrBuilder(); + } else { + return type_ == null + ? com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType + .getDefaultInstance() + : type_; + } + } + + /** + * + * + *
      +       * Item issue type.
      +       * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType type = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType, + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType + .Builder, + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueTypeOrBuilder> + getTypeFieldBuilder() { + if (typeBuilder_ == null) { + typeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType, + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType + .Builder, + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueTypeOrBuilder>(getType(), getParentForChildren(), isClean()); + type_ = null; + } + return typeBuilder_; + } + + private com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + severity_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity, + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .Builder, + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverityOrBuilder> + severityBuilder_; + + /** + * + * + *
      +       * Item issue severity.
      +       * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity severity = 2; + * + * + * @return Whether the severity field is set. + */ + public boolean hasSeverity() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +       * Item issue severity.
      +       * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity severity = 2; + * + * + * @return The severity. + */ + public com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + getSeverity() { + if (severityBuilder_ == null) { + return severity_ == null + ? com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .getDefaultInstance() + : severity_; + } else { + return severityBuilder_.getMessage(); + } + } + + /** + * + * + *
      +       * Item issue severity.
      +       * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity severity = 2; + * + */ + public Builder setSeverity( + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + value) { + if (severityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + severity_ = value; + } else { + severityBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Item issue severity.
      +       * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity severity = 2; + * + */ + public Builder setSeverity( + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .Builder + builderForValue) { + if (severityBuilder_ == null) { + severity_ = builderForValue.build(); + } else { + severityBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Item issue severity.
      +       * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity severity = 2; + * + */ + public Builder mergeSeverity( + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + value) { + if (severityBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && severity_ != null + && severity_ + != com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity.getDefaultInstance()) { + getSeverityBuilder().mergeFrom(value); + } else { + severity_ = value; + } + } else { + severityBuilder_.mergeFrom(value); + } + if (severity_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
      +       * Item issue severity.
      +       * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity severity = 2; + * + */ + public Builder clearSeverity() { + bitField0_ = (bitField0_ & ~0x00000002); + severity_ = null; + if (severityBuilder_ != null) { + severityBuilder_.dispose(); + severityBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +       * Item issue severity.
      +       * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity severity = 2; + * + */ + public com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .Builder + getSeverityBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getSeverityFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +       * Item issue severity.
      +       * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity severity = 2; + * + */ + public com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverityOrBuilder + getSeverityOrBuilder() { + if (severityBuilder_ != null) { + return severityBuilder_.getMessageOrBuilder(); + } else { + return severity_ == null + ? com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .getDefaultInstance() + : severity_; + } + } + + /** + * + * + *
      +       * Item issue severity.
      +       * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity severity = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity, + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity + .Builder, + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverityOrBuilder> + getSeverityFieldBuilder() { + if (severityBuilder_ == null) { + severityBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity, + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverity.Builder, + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueSeverityOrBuilder>( + getSeverity(), getParentForChildren(), isClean()); + severity_ = null; + } + return severityBuilder_; + } + + private int resolution_ = 0; + + /** + * + * + *
      +       * Item issue resolution.
      +       * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueResolution resolution = 3; + * + * + * @return Whether the resolution field is set. + */ + @java.lang.Override + public boolean hasResolution() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +       * Item issue resolution.
      +       * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueResolution resolution = 3; + * + * + * @return The enum numeric value on the wire for resolution. + */ + @java.lang.Override + public int getResolutionValue() { + return resolution_; + } + + /** + * + * + *
      +       * Item issue resolution.
      +       * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueResolution resolution = 3; + * + * + * @param value The enum numeric value on the wire for resolution to set. + * @return This builder for chaining. + */ + public Builder setResolutionValue(int value) { + resolution_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Item issue resolution.
      +       * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueResolution resolution = 3; + * + * + * @return The resolution. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueResolution + getResolution() { + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueResolution + result = + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .ItemIssueResolution.forNumber(resolution_); + return result == null + ? com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueResolution + .UNRECOGNIZED + : result; + } + + /** + * + * + *
      +       * Item issue resolution.
      +       * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueResolution resolution = 3; + * + * + * @param value The resolution to set. + * @return This builder for chaining. + */ + public Builder setResolution( + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueResolution + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + resolution_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +       * Item issue resolution.
      +       * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueResolution resolution = 3; + * + * + * @return This builder for chaining. + */ + public Builder clearResolution() { + bitField0_ = (bitField0_ & ~0x00000004); + resolution_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue) + private static final com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue(); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ItemIssue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + + /** + * + * + *
      +   * REST ID of the product, in the form of
      +   * `channel~languageCode~feedLabel~offerId`. Merchant API methods that operate
      +   * on products take this as their `name` parameter.
      +   *
      +   * Required in the `SELECT` clause.
      +   * 
      + * + * optional string id = 1; + * + * @return Whether the id field is set. + */ + @java.lang.Override + public boolean hasId() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * REST ID of the product, in the form of
      +   * `channel~languageCode~feedLabel~offerId`. Merchant API methods that operate
      +   * on products take this as their `name` parameter.
      +   *
      +   * Required in the `SELECT` clause.
      +   * 
      + * + * optional string id = 1; + * + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + + /** + * + * + *
      +   * REST ID of the product, in the form of
      +   * `channel~languageCode~feedLabel~offerId`. Merchant API methods that operate
      +   * on products take this as their `name` parameter.
      +   *
      +   * Required in the `SELECT` clause.
      +   * 
      + * + * optional string id = 1; + * + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CHANNEL_FIELD_NUMBER = 28; + private int channel_ = 0; + + /** + * + * + *
      +   * Channel of the product. Can be `ONLINE` or `LOCAL`.
      +   * 
      + * + * optional .google.shopping.type.Channel.ChannelEnum channel = 28; + * + * @return Whether the channel field is set. + */ + @java.lang.Override + public boolean hasChannel() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * Channel of the product. Can be `ONLINE` or `LOCAL`.
      +   * 
      + * + * optional .google.shopping.type.Channel.ChannelEnum channel = 28; + * + * @return The enum numeric value on the wire for channel. + */ + @java.lang.Override + public int getChannelValue() { + return channel_; + } + + /** + * + * + *
      +   * Channel of the product. Can be `ONLINE` or `LOCAL`.
      +   * 
      + * + * optional .google.shopping.type.Channel.ChannelEnum channel = 28; + * + * @return The channel. + */ + @java.lang.Override + public com.google.shopping.type.Channel.ChannelEnum getChannel() { + com.google.shopping.type.Channel.ChannelEnum result = + com.google.shopping.type.Channel.ChannelEnum.forNumber(channel_); + return result == null ? com.google.shopping.type.Channel.ChannelEnum.UNRECOGNIZED : result; + } + + public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; + + /** + * + * + *
      +   * Language code of the product in BCP 47 format.
      +   * 
      + * + * optional string language_code = 2; + * + * @return Whether the languageCode field is set. + */ + @java.lang.Override + public boolean hasLanguageCode() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +   * Language code of the product in BCP 47 format.
      +   * 
      + * + * optional string language_code = 2; + * + * @return The languageCode. + */ + @java.lang.Override + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } + } + + /** + * + * + *
      +   * Language code of the product in BCP 47 format.
      +   * 
      + * + * optional string language_code = 2; + * + * @return The bytes for languageCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FEED_LABEL_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object feedLabel_ = ""; + + /** + * + * + *
      +   * Feed label of the product.
      +   * 
      + * + * optional string feed_label = 3; + * + * @return Whether the feedLabel field is set. + */ + @java.lang.Override + public boolean hasFeedLabel() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +   * Feed label of the product.
      +   * 
      + * + * optional string feed_label = 3; + * + * @return The feedLabel. + */ + @java.lang.Override + public java.lang.String getFeedLabel() { + java.lang.Object ref = feedLabel_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + feedLabel_ = s; + return s; + } + } + + /** + * + * + *
      +   * Feed label of the product.
      +   * 
      + * + * optional string feed_label = 3; + * + * @return The bytes for feedLabel. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFeedLabelBytes() { + java.lang.Object ref = feedLabel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + feedLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OFFER_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object offerId_ = ""; + + /** + * + * + *
      +   * Merchant-provided id of the product.
      +   * 
      + * + * optional string offer_id = 4; + * + * @return Whether the offerId field is set. + */ + @java.lang.Override + public boolean hasOfferId() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
      +   * Merchant-provided id of the product.
      +   * 
      + * + * optional string offer_id = 4; + * + * @return The offerId. + */ + @java.lang.Override + public java.lang.String getOfferId() { + java.lang.Object ref = offerId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + offerId_ = s; + return s; + } + } + + /** + * + * + *
      +   * Merchant-provided id of the product.
      +   * 
      + * + * optional string offer_id = 4; + * + * @return The bytes for offerId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOfferIdBytes() { + java.lang.Object ref = offerId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + offerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TITLE_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + + /** + * + * + *
      +   * Title of the product.
      +   * 
      + * + * optional string title = 5; + * + * @return Whether the title field is set. + */ + @java.lang.Override + public boolean hasTitle() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
      +   * Title of the product.
      +   * 
      + * + * optional string title = 5; + * + * @return The title. + */ + @java.lang.Override + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } + } + + /** + * + * + *
      +   * Title of the product.
      +   * 
      + * + * optional string title = 5; + * + * @return The bytes for title. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BRAND_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object brand_ = ""; + + /** + * + * + *
      +   * Brand of the product.
      +   * 
      + * + * optional string brand = 6; + * + * @return Whether the brand field is set. + */ + @java.lang.Override + public boolean hasBrand() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
      +   * Brand of the product.
      +   * 
      + * + * optional string brand = 6; + * + * @return The brand. + */ + @java.lang.Override + public java.lang.String getBrand() { + java.lang.Object ref = brand_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + brand_ = s; + return s; + } + } + + /** + * + * + *
      +   * Brand of the product.
      +   * 
      + * + * optional string brand = 6; + * + * @return The bytes for brand. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBrandBytes() { + java.lang.Object ref = brand_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + brand_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CATEGORY_L1_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object categoryL1_ = ""; + + /** + * + * + *
      +   * Product category (1st level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l1 = 7; + * + * @return Whether the categoryL1 field is set. + */ + @java.lang.Override + public boolean hasCategoryL1() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
      +   * Product category (1st level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l1 = 7; + * + * @return The categoryL1. + */ + @java.lang.Override + public java.lang.String getCategoryL1() { + java.lang.Object ref = categoryL1_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + categoryL1_ = s; + return s; + } + } + + /** + * + * + *
      +   * Product category (1st level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l1 = 7; + * + * @return The bytes for categoryL1. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCategoryL1Bytes() { + java.lang.Object ref = categoryL1_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + categoryL1_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CATEGORY_L2_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object categoryL2_ = ""; + + /** + * + * + *
      +   * Product category (2nd level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l2 = 8; + * + * @return Whether the categoryL2 field is set. + */ + @java.lang.Override + public boolean hasCategoryL2() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
      +   * Product category (2nd level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l2 = 8; + * + * @return The categoryL2. + */ + @java.lang.Override + public java.lang.String getCategoryL2() { + java.lang.Object ref = categoryL2_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + categoryL2_ = s; + return s; + } + } + + /** + * + * + *
      +   * Product category (2nd level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l2 = 8; + * + * @return The bytes for categoryL2. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCategoryL2Bytes() { + java.lang.Object ref = categoryL2_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + categoryL2_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CATEGORY_L3_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object categoryL3_ = ""; + + /** + * + * + *
      +   * Product category (3rd level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l3 = 9; + * + * @return Whether the categoryL3 field is set. + */ + @java.lang.Override + public boolean hasCategoryL3() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
      +   * Product category (3rd level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l3 = 9; + * + * @return The categoryL3. + */ + @java.lang.Override + public java.lang.String getCategoryL3() { + java.lang.Object ref = categoryL3_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + categoryL3_ = s; + return s; + } + } + + /** + * + * + *
      +   * Product category (3rd level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l3 = 9; + * + * @return The bytes for categoryL3. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCategoryL3Bytes() { + java.lang.Object ref = categoryL3_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + categoryL3_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CATEGORY_L4_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object categoryL4_ = ""; + + /** + * + * + *
      +   * Product category (4th level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l4 = 10; + * + * @return Whether the categoryL4 field is set. + */ + @java.lang.Override + public boolean hasCategoryL4() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
      +   * Product category (4th level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l4 = 10; + * + * @return The categoryL4. + */ + @java.lang.Override + public java.lang.String getCategoryL4() { + java.lang.Object ref = categoryL4_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + categoryL4_ = s; + return s; + } + } + + /** + * + * + *
      +   * Product category (4th level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l4 = 10; + * + * @return The bytes for categoryL4. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCategoryL4Bytes() { + java.lang.Object ref = categoryL4_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + categoryL4_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CATEGORY_L5_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object categoryL5_ = ""; + + /** + * + * + *
      +   * Product category (5th level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l5 = 11; + * + * @return Whether the categoryL5 field is set. + */ + @java.lang.Override + public boolean hasCategoryL5() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
      +   * Product category (5th level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l5 = 11; + * + * @return The categoryL5. + */ + @java.lang.Override + public java.lang.String getCategoryL5() { + java.lang.Object ref = categoryL5_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + categoryL5_ = s; + return s; + } + } + + /** + * + * + *
      +   * Product category (5th level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l5 = 11; + * + * @return The bytes for categoryL5. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCategoryL5Bytes() { + java.lang.Object ref = categoryL5_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + categoryL5_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRODUCT_TYPE_L1_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private volatile java.lang.Object productTypeL1_ = ""; + + /** + * + * + *
      +   * Product type (1st level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l1 = 12; + * + * @return Whether the productTypeL1 field is set. + */ + @java.lang.Override + public boolean hasProductTypeL1() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
      +   * Product type (1st level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l1 = 12; + * + * @return The productTypeL1. + */ + @java.lang.Override + public java.lang.String getProductTypeL1() { + java.lang.Object ref = productTypeL1_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + productTypeL1_ = s; + return s; + } + } + + /** + * + * + *
      +   * Product type (1st level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l1 = 12; + * + * @return The bytes for productTypeL1. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProductTypeL1Bytes() { + java.lang.Object ref = productTypeL1_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + productTypeL1_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRODUCT_TYPE_L2_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private volatile java.lang.Object productTypeL2_ = ""; + + /** + * + * + *
      +   * Product type (2nd level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l2 = 13; + * + * @return Whether the productTypeL2 field is set. + */ + @java.lang.Override + public boolean hasProductTypeL2() { + return ((bitField0_ & 0x00002000) != 0); + } + + /** + * + * + *
      +   * Product type (2nd level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l2 = 13; + * + * @return The productTypeL2. + */ + @java.lang.Override + public java.lang.String getProductTypeL2() { + java.lang.Object ref = productTypeL2_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + productTypeL2_ = s; + return s; + } + } + + /** + * + * + *
      +   * Product type (2nd level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l2 = 13; + * + * @return The bytes for productTypeL2. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProductTypeL2Bytes() { + java.lang.Object ref = productTypeL2_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + productTypeL2_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRODUCT_TYPE_L3_FIELD_NUMBER = 14; + + @SuppressWarnings("serial") + private volatile java.lang.Object productTypeL3_ = ""; + + /** + * + * + *
      +   * Product type (3rd level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l3 = 14; + * + * @return Whether the productTypeL3 field is set. + */ + @java.lang.Override + public boolean hasProductTypeL3() { + return ((bitField0_ & 0x00004000) != 0); + } + + /** + * + * + *
      +   * Product type (3rd level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l3 = 14; + * + * @return The productTypeL3. + */ + @java.lang.Override + public java.lang.String getProductTypeL3() { + java.lang.Object ref = productTypeL3_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + productTypeL3_ = s; + return s; + } + } + + /** + * + * + *
      +   * Product type (3rd level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l3 = 14; + * + * @return The bytes for productTypeL3. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProductTypeL3Bytes() { + java.lang.Object ref = productTypeL3_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + productTypeL3_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRODUCT_TYPE_L4_FIELD_NUMBER = 15; + + @SuppressWarnings("serial") + private volatile java.lang.Object productTypeL4_ = ""; + + /** + * + * + *
      +   * Product type (4th level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l4 = 15; + * + * @return Whether the productTypeL4 field is set. + */ + @java.lang.Override + public boolean hasProductTypeL4() { + return ((bitField0_ & 0x00008000) != 0); + } + + /** + * + * + *
      +   * Product type (4th level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l4 = 15; + * + * @return The productTypeL4. + */ + @java.lang.Override + public java.lang.String getProductTypeL4() { + java.lang.Object ref = productTypeL4_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + productTypeL4_ = s; + return s; + } + } + + /** + * + * + *
      +   * Product type (4th level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l4 = 15; + * + * @return The bytes for productTypeL4. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProductTypeL4Bytes() { + java.lang.Object ref = productTypeL4_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + productTypeL4_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRODUCT_TYPE_L5_FIELD_NUMBER = 16; + + @SuppressWarnings("serial") + private volatile java.lang.Object productTypeL5_ = ""; + + /** + * + * + *
      +   * Product type (5th level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l5 = 16; + * + * @return Whether the productTypeL5 field is set. + */ + @java.lang.Override + public boolean hasProductTypeL5() { + return ((bitField0_ & 0x00010000) != 0); + } + + /** + * + * + *
      +   * Product type (5th level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l5 = 16; + * + * @return The productTypeL5. + */ + @java.lang.Override + public java.lang.String getProductTypeL5() { + java.lang.Object ref = productTypeL5_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + productTypeL5_ = s; + return s; + } + } + + /** + * + * + *
      +   * Product type (5th level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l5 = 16; + * + * @return The bytes for productTypeL5. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProductTypeL5Bytes() { + java.lang.Object ref = productTypeL5_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + productTypeL5_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRICE_FIELD_NUMBER = 17; + private com.google.shopping.type.Price price_; + + /** + * + * + *
      +   * Product price. Absent if the information about the price of the product is
      +   * not available.
      +   * 
      + * + * .google.shopping.type.Price price = 17; + * + * @return Whether the price field is set. + */ + @java.lang.Override + public boolean hasPrice() { + return ((bitField0_ & 0x00020000) != 0); + } + + /** + * + * + *
      +   * Product price. Absent if the information about the price of the product is
      +   * not available.
      +   * 
      + * + * .google.shopping.type.Price price = 17; + * + * @return The price. + */ + @java.lang.Override + public com.google.shopping.type.Price getPrice() { + return price_ == null ? com.google.shopping.type.Price.getDefaultInstance() : price_; + } + + /** + * + * + *
      +   * Product price. Absent if the information about the price of the product is
      +   * not available.
      +   * 
      + * + * .google.shopping.type.Price price = 17; + */ + @java.lang.Override + public com.google.shopping.type.PriceOrBuilder getPriceOrBuilder() { + return price_ == null ? com.google.shopping.type.Price.getDefaultInstance() : price_; + } + + public static final int CONDITION_FIELD_NUMBER = 18; + + @SuppressWarnings("serial") + private volatile java.lang.Object condition_ = ""; + + /** + * + * + *
      +   * [Condition](https://support.google.com/merchants/answer/6324469) of the
      +   * product.
      +   * 
      + * + * optional string condition = 18; + * + * @return Whether the condition field is set. + */ + @java.lang.Override + public boolean hasCondition() { + return ((bitField0_ & 0x00040000) != 0); + } + + /** + * + * + *
      +   * [Condition](https://support.google.com/merchants/answer/6324469) of the
      +   * product.
      +   * 
      + * + * optional string condition = 18; + * + * @return The condition. + */ + @java.lang.Override + public java.lang.String getCondition() { + java.lang.Object ref = condition_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + condition_ = s; + return s; + } + } + + /** + * + * + *
      +   * [Condition](https://support.google.com/merchants/answer/6324469) of the
      +   * product.
      +   * 
      + * + * optional string condition = 18; + * + * @return The bytes for condition. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConditionBytes() { + java.lang.Object ref = condition_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + condition_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AVAILABILITY_FIELD_NUMBER = 19; + + @SuppressWarnings("serial") + private volatile java.lang.Object availability_ = ""; + + /** + * + * + *
      +   * [Availability](https://support.google.com/merchants/answer/6324448) of the
      +   * product.
      +   * 
      + * + * optional string availability = 19; + * + * @return Whether the availability field is set. + */ + @java.lang.Override + public boolean hasAvailability() { + return ((bitField0_ & 0x00080000) != 0); + } + + /** + * + * + *
      +   * [Availability](https://support.google.com/merchants/answer/6324448) of the
      +   * product.
      +   * 
      + * + * optional string availability = 19; + * + * @return The availability. + */ + @java.lang.Override + public java.lang.String getAvailability() { + java.lang.Object ref = availability_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + availability_ = s; + return s; + } + } + + /** + * + * + *
      +   * [Availability](https://support.google.com/merchants/answer/6324448) of the
      +   * product.
      +   * 
      + * + * optional string availability = 19; + * + * @return The bytes for availability. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAvailabilityBytes() { + java.lang.Object ref = availability_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + availability_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SHIPPING_LABEL_FIELD_NUMBER = 20; + + @SuppressWarnings("serial") + private volatile java.lang.Object shippingLabel_ = ""; + + /** + * + * + *
      +   * Normalized [shipping
      +   * label](https://support.google.com/merchants/answer/6324504) specified in
      +   * the data source.
      +   * 
      + * + * optional string shipping_label = 20; + * + * @return Whether the shippingLabel field is set. + */ + @java.lang.Override + public boolean hasShippingLabel() { + return ((bitField0_ & 0x00100000) != 0); + } + + /** + * + * + *
      +   * Normalized [shipping
      +   * label](https://support.google.com/merchants/answer/6324504) specified in
      +   * the data source.
      +   * 
      + * + * optional string shipping_label = 20; + * + * @return The shippingLabel. + */ + @java.lang.Override + public java.lang.String getShippingLabel() { + java.lang.Object ref = shippingLabel_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + shippingLabel_ = s; + return s; + } + } + + /** + * + * + *
      +   * Normalized [shipping
      +   * label](https://support.google.com/merchants/answer/6324504) specified in
      +   * the data source.
      +   * 
      + * + * optional string shipping_label = 20; + * + * @return The bytes for shippingLabel. + */ + @java.lang.Override + public com.google.protobuf.ByteString getShippingLabelBytes() { + java.lang.Object ref = shippingLabel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + shippingLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GTIN_FIELD_NUMBER = 21; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList gtin_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
      +   * List of Global Trade Item Numbers (GTINs) of the product.
      +   * 
      + * + * repeated string gtin = 21; + * + * @return A list containing the gtin. + */ + public com.google.protobuf.ProtocolStringList getGtinList() { + return gtin_; + } + + /** + * + * + *
      +   * List of Global Trade Item Numbers (GTINs) of the product.
      +   * 
      + * + * repeated string gtin = 21; + * + * @return The count of gtin. + */ + public int getGtinCount() { + return gtin_.size(); + } + + /** + * + * + *
      +   * List of Global Trade Item Numbers (GTINs) of the product.
      +   * 
      + * + * repeated string gtin = 21; + * + * @param index The index of the element to return. + * @return The gtin at the given index. + */ + public java.lang.String getGtin(int index) { + return gtin_.get(index); + } + + /** + * + * + *
      +   * List of Global Trade Item Numbers (GTINs) of the product.
      +   * 
      + * + * repeated string gtin = 21; + * + * @param index The index of the value to return. + * @return The bytes of the gtin at the given index. + */ + public com.google.protobuf.ByteString getGtinBytes(int index) { + return gtin_.getByteString(index); + } + + public static final int ITEM_GROUP_ID_FIELD_NUMBER = 22; + + @SuppressWarnings("serial") + private volatile java.lang.Object itemGroupId_ = ""; + + /** + * + * + *
      +   * Item group id provided by the merchant for grouping variants together.
      +   * 
      + * + * optional string item_group_id = 22; + * + * @return Whether the itemGroupId field is set. + */ + @java.lang.Override + public boolean hasItemGroupId() { + return ((bitField0_ & 0x00200000) != 0); + } + + /** + * + * + *
      +   * Item group id provided by the merchant for grouping variants together.
      +   * 
      + * + * optional string item_group_id = 22; + * + * @return The itemGroupId. + */ + @java.lang.Override + public java.lang.String getItemGroupId() { + java.lang.Object ref = itemGroupId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + itemGroupId_ = s; + return s; + } + } + + /** + * + * + *
      +   * Item group id provided by the merchant for grouping variants together.
      +   * 
      + * + * optional string item_group_id = 22; + * + * @return The bytes for itemGroupId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getItemGroupIdBytes() { + java.lang.Object ref = itemGroupId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + itemGroupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int THUMBNAIL_LINK_FIELD_NUMBER = 23; + + @SuppressWarnings("serial") + private volatile java.lang.Object thumbnailLink_ = ""; + + /** + * + * + *
      +   * Link to the processed image of the product, hosted on the Google
      +   * infrastructure.
      +   * 
      + * + * optional string thumbnail_link = 23; + * + * @return Whether the thumbnailLink field is set. + */ + @java.lang.Override + public boolean hasThumbnailLink() { + return ((bitField0_ & 0x00400000) != 0); + } + + /** + * + * + *
      +   * Link to the processed image of the product, hosted on the Google
      +   * infrastructure.
      +   * 
      + * + * optional string thumbnail_link = 23; + * + * @return The thumbnailLink. + */ + @java.lang.Override + public java.lang.String getThumbnailLink() { + java.lang.Object ref = thumbnailLink_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + thumbnailLink_ = s; + return s; + } + } + + /** + * + * + *
      +   * Link to the processed image of the product, hosted on the Google
      +   * infrastructure.
      +   * 
      + * + * optional string thumbnail_link = 23; + * + * @return The bytes for thumbnailLink. + */ + @java.lang.Override + public com.google.protobuf.ByteString getThumbnailLinkBytes() { + java.lang.Object ref = thumbnailLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + thumbnailLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATION_TIME_FIELD_NUMBER = 24; + private com.google.protobuf.Timestamp creationTime_; + + /** + * + * + *
      +   * The time the merchant created the product in timestamp seconds.
      +   * 
      + * + * .google.protobuf.Timestamp creation_time = 24; + * + * @return Whether the creationTime field is set. + */ + @java.lang.Override + public boolean hasCreationTime() { + return ((bitField0_ & 0x00800000) != 0); + } + + /** + * + * + *
      +   * The time the merchant created the product in timestamp seconds.
      +   * 
      + * + * .google.protobuf.Timestamp creation_time = 24; + * + * @return The creationTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreationTime() { + return creationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : creationTime_; + } + + /** + * + * + *
      +   * The time the merchant created the product in timestamp seconds.
      +   * 
      + * + * .google.protobuf.Timestamp creation_time = 24; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder() { + return creationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : creationTime_; + } + + public static final int EXPIRATION_DATE_FIELD_NUMBER = 25; + private com.google.type.Date expirationDate_; + + /** + * + * + *
      +   * Expiration date for the product, specified on insertion.
      +   * 
      + * + * .google.type.Date expiration_date = 25; + * + * @return Whether the expirationDate field is set. + */ + @java.lang.Override + public boolean hasExpirationDate() { + return ((bitField0_ & 0x01000000) != 0); + } + + /** + * + * + *
      +   * Expiration date for the product, specified on insertion.
      +   * 
      + * + * .google.type.Date expiration_date = 25; + * + * @return The expirationDate. + */ + @java.lang.Override + public com.google.type.Date getExpirationDate() { + return expirationDate_ == null ? com.google.type.Date.getDefaultInstance() : expirationDate_; + } + + /** + * + * + *
      +   * Expiration date for the product, specified on insertion.
      +   * 
      + * + * .google.type.Date expiration_date = 25; + */ + @java.lang.Override + public com.google.type.DateOrBuilder getExpirationDateOrBuilder() { + return expirationDate_ == null ? com.google.type.Date.getDefaultInstance() : expirationDate_; + } + + public static final int AGGREGATED_REPORTING_CONTEXT_STATUS_FIELD_NUMBER = 26; + private int aggregatedReportingContextStatus_ = 0; + + /** + * + * + *
      +   * Aggregated status.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ProductView.AggregatedReportingContextStatus aggregated_reporting_context_status = 26; + * + * + * @return Whether the aggregatedReportingContextStatus field is set. + */ + @java.lang.Override + public boolean hasAggregatedReportingContextStatus() { + return ((bitField0_ & 0x02000000) != 0); + } + + /** + * + * + *
      +   * Aggregated status.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ProductView.AggregatedReportingContextStatus aggregated_reporting_context_status = 26; + * + * + * @return The enum numeric value on the wire for aggregatedReportingContextStatus. + */ + @java.lang.Override + public int getAggregatedReportingContextStatusValue() { + return aggregatedReportingContextStatus_; + } + + /** + * + * + *
      +   * Aggregated status.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ProductView.AggregatedReportingContextStatus aggregated_reporting_context_status = 26; + * + * + * @return The aggregatedReportingContextStatus. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ProductView.AggregatedReportingContextStatus + getAggregatedReportingContextStatus() { + com.google.shopping.merchant.reports.v1alpha.ProductView.AggregatedReportingContextStatus + result = + com.google.shopping.merchant.reports.v1alpha.ProductView + .AggregatedReportingContextStatus.forNumber(aggregatedReportingContextStatus_); + return result == null + ? com.google.shopping.merchant.reports.v1alpha.ProductView.AggregatedReportingContextStatus + .UNRECOGNIZED + : result; + } + + public static final int ITEM_ISSUES_FIELD_NUMBER = 27; + + @SuppressWarnings("serial") + private java.util.List + itemIssues_; + + /** + * + * + *
      +   * List of item issues for the product.
      +   *
      +   * **This field cannot be used for sorting the results.**
      +   *
      +   * **Only selected attributes of this field (for example,
      +   * `item_issues.severity.aggregated_severity`) can be used for filtering the
      +   * results.**
      +   * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue item_issues = 27; + * + */ + @java.lang.Override + public java.util.List + getItemIssuesList() { + return itemIssues_; + } + + /** + * + * + *
      +   * List of item issues for the product.
      +   *
      +   * **This field cannot be used for sorting the results.**
      +   *
      +   * **Only selected attributes of this field (for example,
      +   * `item_issues.severity.aggregated_severity`) can be used for filtering the
      +   * results.**
      +   * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue item_issues = 27; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssueOrBuilder> + getItemIssuesOrBuilderList() { + return itemIssues_; + } + + /** + * + * + *
      +   * List of item issues for the product.
      +   *
      +   * **This field cannot be used for sorting the results.**
      +   *
      +   * **Only selected attributes of this field (for example,
      +   * `item_issues.severity.aggregated_severity`) can be used for filtering the
      +   * results.**
      +   * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue item_issues = 27; + * + */ + @java.lang.Override + public int getItemIssuesCount() { + return itemIssues_.size(); + } + + /** + * + * + *
      +   * List of item issues for the product.
      +   *
      +   * **This field cannot be used for sorting the results.**
      +   *
      +   * **Only selected attributes of this field (for example,
      +   * `item_issues.severity.aggregated_severity`) can be used for filtering the
      +   * results.**
      +   * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue item_issues = 27; + * + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue getItemIssues( + int index) { + return itemIssues_.get(index); + } + + /** + * + * + *
      +   * List of item issues for the product.
      +   *
      +   * **This field cannot be used for sorting the results.**
      +   *
      +   * **Only selected attributes of this field (for example,
      +   * `item_issues.severity.aggregated_severity`) can be used for filtering the
      +   * results.**
      +   * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue item_issues = 27; + * + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssueOrBuilder + getItemIssuesOrBuilder(int index) { + return itemIssues_.get(index); + } + + public static final int CLICK_POTENTIAL_FIELD_NUMBER = 29; + private int clickPotential_ = 0; + + /** + * + * + *
      +   * Estimated performance potential compared to highest performing products of
      +   * the merchant.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.ProductView.ClickPotential click_potential = 29; + * + * + * @return The enum numeric value on the wire for clickPotential. + */ + @java.lang.Override + public int getClickPotentialValue() { + return clickPotential_; + } + + /** + * + * + *
      +   * Estimated performance potential compared to highest performing products of
      +   * the merchant.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.ProductView.ClickPotential click_potential = 29; + * + * + * @return The clickPotential. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ProductView.ClickPotential + getClickPotential() { + com.google.shopping.merchant.reports.v1alpha.ProductView.ClickPotential result = + com.google.shopping.merchant.reports.v1alpha.ProductView.ClickPotential.forNumber( + clickPotential_); + return result == null + ? com.google.shopping.merchant.reports.v1alpha.ProductView.ClickPotential.UNRECOGNIZED + : result; + } + + public static final int CLICK_POTENTIAL_RANK_FIELD_NUMBER = 30; + private long clickPotentialRank_ = 0L; + + /** + * + * + *
      +   * Rank of the product based on its click potential. A product with
      +   * `click_potential_rank` 1 has the highest click potential among the
      +   * merchant's products that fulfill the search query conditions.
      +   * 
      + * + * optional int64 click_potential_rank = 30; + * + * @return Whether the clickPotentialRank field is set. + */ + @java.lang.Override + public boolean hasClickPotentialRank() { + return ((bitField0_ & 0x04000000) != 0); + } + + /** + * + * + *
      +   * Rank of the product based on its click potential. A product with
      +   * `click_potential_rank` 1 has the highest click potential among the
      +   * merchant's products that fulfill the search query conditions.
      +   * 
      + * + * optional int64 click_potential_rank = 30; + * + * @return The clickPotentialRank. + */ + @java.lang.Override + public long getClickPotentialRank() { + return clickPotentialRank_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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.GeneratedMessageV3.writeString(output, 1, id_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, languageCode_); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, feedLabel_); + } + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, offerId_); + } + if (((bitField0_ & 0x00000020) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, title_); + } + if (((bitField0_ & 0x00000040) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, brand_); + } + if (((bitField0_ & 0x00000080) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, categoryL1_); + } + if (((bitField0_ & 0x00000100) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, categoryL2_); + } + if (((bitField0_ & 0x00000200) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, categoryL3_); + } + if (((bitField0_ & 0x00000400) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, categoryL4_); + } + if (((bitField0_ & 0x00000800) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, categoryL5_); + } + if (((bitField0_ & 0x00001000) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, productTypeL1_); + } + if (((bitField0_ & 0x00002000) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, productTypeL2_); + } + if (((bitField0_ & 0x00004000) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, productTypeL3_); + } + if (((bitField0_ & 0x00008000) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 15, productTypeL4_); + } + if (((bitField0_ & 0x00010000) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 16, productTypeL5_); + } + if (((bitField0_ & 0x00020000) != 0)) { + output.writeMessage(17, getPrice()); + } + if (((bitField0_ & 0x00040000) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 18, condition_); + } + if (((bitField0_ & 0x00080000) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 19, availability_); + } + if (((bitField0_ & 0x00100000) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 20, shippingLabel_); + } + for (int i = 0; i < gtin_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 21, gtin_.getRaw(i)); + } + if (((bitField0_ & 0x00200000) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 22, itemGroupId_); + } + if (((bitField0_ & 0x00400000) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 23, thumbnailLink_); + } + if (((bitField0_ & 0x00800000) != 0)) { + output.writeMessage(24, getCreationTime()); + } + if (((bitField0_ & 0x01000000) != 0)) { + output.writeMessage(25, getExpirationDate()); + } + if (((bitField0_ & 0x02000000) != 0)) { + output.writeEnum(26, aggregatedReportingContextStatus_); + } + for (int i = 0; i < itemIssues_.size(); i++) { + output.writeMessage(27, itemIssues_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(28, channel_); + } + if (clickPotential_ + != com.google.shopping.merchant.reports.v1alpha.ProductView.ClickPotential + .CLICK_POTENTIAL_UNSPECIFIED + .getNumber()) { + output.writeEnum(29, clickPotential_); + } + if (((bitField0_ & 0x04000000) != 0)) { + output.writeInt64(30, clickPotentialRank_); + } + 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.GeneratedMessageV3.computeStringSize(1, id_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, languageCode_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, feedLabel_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, offerId_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, title_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, brand_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, categoryL1_); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, categoryL2_); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, categoryL3_); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, categoryL4_); + } + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, categoryL5_); + } + if (((bitField0_ & 0x00001000) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, productTypeL1_); + } + if (((bitField0_ & 0x00002000) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, productTypeL2_); + } + if (((bitField0_ & 0x00004000) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, productTypeL3_); + } + if (((bitField0_ & 0x00008000) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, productTypeL4_); + } + if (((bitField0_ & 0x00010000) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, productTypeL5_); + } + if (((bitField0_ & 0x00020000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getPrice()); + } + if (((bitField0_ & 0x00040000) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, condition_); + } + if (((bitField0_ & 0x00080000) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, availability_); + } + if (((bitField0_ & 0x00100000) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, shippingLabel_); + } + { + int dataSize = 0; + for (int i = 0; i < gtin_.size(); i++) { + dataSize += computeStringSizeNoTag(gtin_.getRaw(i)); + } + size += dataSize; + size += 2 * getGtinList().size(); + } + if (((bitField0_ & 0x00200000) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, itemGroupId_); + } + if (((bitField0_ & 0x00400000) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, thumbnailLink_); + } + if (((bitField0_ & 0x00800000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, getCreationTime()); + } + if (((bitField0_ & 0x01000000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, getExpirationDate()); + } + if (((bitField0_ & 0x02000000) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 26, aggregatedReportingContextStatus_); + } + for (int i = 0; i < itemIssues_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(27, itemIssues_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(28, channel_); + } + if (clickPotential_ + != com.google.shopping.merchant.reports.v1alpha.ProductView.ClickPotential + .CLICK_POTENTIAL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(29, clickPotential_); + } + if (((bitField0_ & 0x04000000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(30, clickPotentialRank_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.shopping.merchant.reports.v1alpha.ProductView)) { + return super.equals(obj); + } + com.google.shopping.merchant.reports.v1alpha.ProductView other = + (com.google.shopping.merchant.reports.v1alpha.ProductView) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId().equals(other.getId())) return false; + } + if (hasChannel() != other.hasChannel()) return false; + if (hasChannel()) { + if (channel_ != other.channel_) return false; + } + if (hasLanguageCode() != other.hasLanguageCode()) return false; + if (hasLanguageCode()) { + if (!getLanguageCode().equals(other.getLanguageCode())) return false; + } + if (hasFeedLabel() != other.hasFeedLabel()) return false; + if (hasFeedLabel()) { + if (!getFeedLabel().equals(other.getFeedLabel())) return false; + } + if (hasOfferId() != other.hasOfferId()) return false; + if (hasOfferId()) { + if (!getOfferId().equals(other.getOfferId())) return false; + } + if (hasTitle() != other.hasTitle()) return false; + if (hasTitle()) { + if (!getTitle().equals(other.getTitle())) return false; + } + if (hasBrand() != other.hasBrand()) return false; + if (hasBrand()) { + if (!getBrand().equals(other.getBrand())) return false; + } + if (hasCategoryL1() != other.hasCategoryL1()) return false; + if (hasCategoryL1()) { + if (!getCategoryL1().equals(other.getCategoryL1())) return false; + } + if (hasCategoryL2() != other.hasCategoryL2()) return false; + if (hasCategoryL2()) { + if (!getCategoryL2().equals(other.getCategoryL2())) return false; + } + if (hasCategoryL3() != other.hasCategoryL3()) return false; + if (hasCategoryL3()) { + if (!getCategoryL3().equals(other.getCategoryL3())) return false; + } + if (hasCategoryL4() != other.hasCategoryL4()) return false; + if (hasCategoryL4()) { + if (!getCategoryL4().equals(other.getCategoryL4())) return false; + } + if (hasCategoryL5() != other.hasCategoryL5()) return false; + if (hasCategoryL5()) { + if (!getCategoryL5().equals(other.getCategoryL5())) return false; + } + if (hasProductTypeL1() != other.hasProductTypeL1()) return false; + if (hasProductTypeL1()) { + if (!getProductTypeL1().equals(other.getProductTypeL1())) return false; + } + if (hasProductTypeL2() != other.hasProductTypeL2()) return false; + if (hasProductTypeL2()) { + if (!getProductTypeL2().equals(other.getProductTypeL2())) return false; + } + if (hasProductTypeL3() != other.hasProductTypeL3()) return false; + if (hasProductTypeL3()) { + if (!getProductTypeL3().equals(other.getProductTypeL3())) return false; + } + if (hasProductTypeL4() != other.hasProductTypeL4()) return false; + if (hasProductTypeL4()) { + if (!getProductTypeL4().equals(other.getProductTypeL4())) return false; + } + if (hasProductTypeL5() != other.hasProductTypeL5()) return false; + if (hasProductTypeL5()) { + if (!getProductTypeL5().equals(other.getProductTypeL5())) return false; + } + if (hasPrice() != other.hasPrice()) return false; + if (hasPrice()) { + if (!getPrice().equals(other.getPrice())) return false; + } + if (hasCondition() != other.hasCondition()) return false; + if (hasCondition()) { + if (!getCondition().equals(other.getCondition())) return false; + } + if (hasAvailability() != other.hasAvailability()) return false; + if (hasAvailability()) { + if (!getAvailability().equals(other.getAvailability())) return false; + } + if (hasShippingLabel() != other.hasShippingLabel()) return false; + if (hasShippingLabel()) { + if (!getShippingLabel().equals(other.getShippingLabel())) return false; + } + if (!getGtinList().equals(other.getGtinList())) return false; + if (hasItemGroupId() != other.hasItemGroupId()) return false; + if (hasItemGroupId()) { + if (!getItemGroupId().equals(other.getItemGroupId())) return false; + } + if (hasThumbnailLink() != other.hasThumbnailLink()) return false; + if (hasThumbnailLink()) { + if (!getThumbnailLink().equals(other.getThumbnailLink())) return false; + } + if (hasCreationTime() != other.hasCreationTime()) return false; + if (hasCreationTime()) { + if (!getCreationTime().equals(other.getCreationTime())) return false; + } + if (hasExpirationDate() != other.hasExpirationDate()) return false; + if (hasExpirationDate()) { + if (!getExpirationDate().equals(other.getExpirationDate())) return false; + } + if (hasAggregatedReportingContextStatus() != other.hasAggregatedReportingContextStatus()) + return false; + if (hasAggregatedReportingContextStatus()) { + if (aggregatedReportingContextStatus_ != other.aggregatedReportingContextStatus_) + return false; + } + if (!getItemIssuesList().equals(other.getItemIssuesList())) return false; + if (clickPotential_ != other.clickPotential_) return false; + if (hasClickPotentialRank() != other.hasClickPotentialRank()) return false; + if (hasClickPotentialRank()) { + if (getClickPotentialRank() != other.getClickPotentialRank()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + if (hasChannel()) { + hash = (37 * hash) + CHANNEL_FIELD_NUMBER; + hash = (53 * hash) + channel_; + } + if (hasLanguageCode()) { + hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getLanguageCode().hashCode(); + } + if (hasFeedLabel()) { + hash = (37 * hash) + FEED_LABEL_FIELD_NUMBER; + hash = (53 * hash) + getFeedLabel().hashCode(); + } + if (hasOfferId()) { + hash = (37 * hash) + OFFER_ID_FIELD_NUMBER; + hash = (53 * hash) + getOfferId().hashCode(); + } + if (hasTitle()) { + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + } + if (hasBrand()) { + hash = (37 * hash) + BRAND_FIELD_NUMBER; + hash = (53 * hash) + getBrand().hashCode(); + } + if (hasCategoryL1()) { + hash = (37 * hash) + CATEGORY_L1_FIELD_NUMBER; + hash = (53 * hash) + getCategoryL1().hashCode(); + } + if (hasCategoryL2()) { + hash = (37 * hash) + CATEGORY_L2_FIELD_NUMBER; + hash = (53 * hash) + getCategoryL2().hashCode(); + } + if (hasCategoryL3()) { + hash = (37 * hash) + CATEGORY_L3_FIELD_NUMBER; + hash = (53 * hash) + getCategoryL3().hashCode(); + } + if (hasCategoryL4()) { + hash = (37 * hash) + CATEGORY_L4_FIELD_NUMBER; + hash = (53 * hash) + getCategoryL4().hashCode(); + } + if (hasCategoryL5()) { + hash = (37 * hash) + CATEGORY_L5_FIELD_NUMBER; + hash = (53 * hash) + getCategoryL5().hashCode(); + } + if (hasProductTypeL1()) { + hash = (37 * hash) + PRODUCT_TYPE_L1_FIELD_NUMBER; + hash = (53 * hash) + getProductTypeL1().hashCode(); + } + if (hasProductTypeL2()) { + hash = (37 * hash) + PRODUCT_TYPE_L2_FIELD_NUMBER; + hash = (53 * hash) + getProductTypeL2().hashCode(); + } + if (hasProductTypeL3()) { + hash = (37 * hash) + PRODUCT_TYPE_L3_FIELD_NUMBER; + hash = (53 * hash) + getProductTypeL3().hashCode(); + } + if (hasProductTypeL4()) { + hash = (37 * hash) + PRODUCT_TYPE_L4_FIELD_NUMBER; + hash = (53 * hash) + getProductTypeL4().hashCode(); + } + if (hasProductTypeL5()) { + hash = (37 * hash) + PRODUCT_TYPE_L5_FIELD_NUMBER; + hash = (53 * hash) + getProductTypeL5().hashCode(); + } + if (hasPrice()) { + hash = (37 * hash) + PRICE_FIELD_NUMBER; + hash = (53 * hash) + getPrice().hashCode(); + } + if (hasCondition()) { + hash = (37 * hash) + CONDITION_FIELD_NUMBER; + hash = (53 * hash) + getCondition().hashCode(); + } + if (hasAvailability()) { + hash = (37 * hash) + AVAILABILITY_FIELD_NUMBER; + hash = (53 * hash) + getAvailability().hashCode(); + } + if (hasShippingLabel()) { + hash = (37 * hash) + SHIPPING_LABEL_FIELD_NUMBER; + hash = (53 * hash) + getShippingLabel().hashCode(); + } + if (getGtinCount() > 0) { + hash = (37 * hash) + GTIN_FIELD_NUMBER; + hash = (53 * hash) + getGtinList().hashCode(); + } + if (hasItemGroupId()) { + hash = (37 * hash) + ITEM_GROUP_ID_FIELD_NUMBER; + hash = (53 * hash) + getItemGroupId().hashCode(); + } + if (hasThumbnailLink()) { + hash = (37 * hash) + THUMBNAIL_LINK_FIELD_NUMBER; + hash = (53 * hash) + getThumbnailLink().hashCode(); + } + if (hasCreationTime()) { + hash = (37 * hash) + CREATION_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreationTime().hashCode(); + } + if (hasExpirationDate()) { + hash = (37 * hash) + EXPIRATION_DATE_FIELD_NUMBER; + hash = (53 * hash) + getExpirationDate().hashCode(); + } + if (hasAggregatedReportingContextStatus()) { + hash = (37 * hash) + AGGREGATED_REPORTING_CONTEXT_STATUS_FIELD_NUMBER; + hash = (53 * hash) + aggregatedReportingContextStatus_; + } + if (getItemIssuesCount() > 0) { + hash = (37 * hash) + ITEM_ISSUES_FIELD_NUMBER; + hash = (53 * hash) + getItemIssuesList().hashCode(); + } + hash = (37 * hash) + CLICK_POTENTIAL_FIELD_NUMBER; + hash = (53 * hash) + clickPotential_; + if (hasClickPotentialRank()) { + hash = (37 * hash) + CLICK_POTENTIAL_RANK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getClickPotentialRank()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.shopping.merchant.reports.v1alpha.ProductView prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Fields available for query in `product_view` table.
      +   *
      +   * Products in the current inventory. Products in this table are the same as in
      +   * Products sub-API but not all product attributes from Products sub-API are
      +   * available for query in this table. In contrast to Products sub-API, this
      +   * table allows to filter the returned list of products by product attributes.
      +   * To retrieve a single product by `id` or list all products, Products sub-API
      +   * should be used.
      +   *
      +   * Values are only set for fields requested explicitly in the request's search
      +   * query.
      +   * 
      + * + * Protobuf type {@code google.shopping.merchant.reports.v1alpha.ProductView} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.reports.v1alpha.ProductView) + com.google.shopping.merchant.reports.v1alpha.ProductViewOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_ProductView_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_ProductView_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1alpha.ProductView.class, + com.google.shopping.merchant.reports.v1alpha.ProductView.Builder.class); + } + + // Construct using com.google.shopping.merchant.reports.v1alpha.ProductView.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPriceFieldBuilder(); + getCreationTimeFieldBuilder(); + getExpirationDateFieldBuilder(); + getItemIssuesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + channel_ = 0; + languageCode_ = ""; + feedLabel_ = ""; + offerId_ = ""; + title_ = ""; + brand_ = ""; + categoryL1_ = ""; + categoryL2_ = ""; + categoryL3_ = ""; + categoryL4_ = ""; + categoryL5_ = ""; + productTypeL1_ = ""; + productTypeL2_ = ""; + productTypeL3_ = ""; + productTypeL4_ = ""; + productTypeL5_ = ""; + price_ = null; + if (priceBuilder_ != null) { + priceBuilder_.dispose(); + priceBuilder_ = null; + } + condition_ = ""; + availability_ = ""; + shippingLabel_ = ""; + gtin_ = com.google.protobuf.LazyStringArrayList.emptyList(); + itemGroupId_ = ""; + thumbnailLink_ = ""; + creationTime_ = null; + if (creationTimeBuilder_ != null) { + creationTimeBuilder_.dispose(); + creationTimeBuilder_ = null; + } + expirationDate_ = null; + if (expirationDateBuilder_ != null) { + expirationDateBuilder_.dispose(); + expirationDateBuilder_ = null; + } + aggregatedReportingContextStatus_ = 0; + if (itemIssuesBuilder_ == null) { + itemIssues_ = java.util.Collections.emptyList(); + } else { + itemIssues_ = null; + itemIssuesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x08000000); + clickPotential_ = 0; + clickPotentialRank_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_ProductView_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ProductView getDefaultInstanceForType() { + return com.google.shopping.merchant.reports.v1alpha.ProductView.getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ProductView build() { + com.google.shopping.merchant.reports.v1alpha.ProductView result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ProductView buildPartial() { + com.google.shopping.merchant.reports.v1alpha.ProductView result = + new com.google.shopping.merchant.reports.v1alpha.ProductView(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.shopping.merchant.reports.v1alpha.ProductView result) { + if (itemIssuesBuilder_ == null) { + if (((bitField0_ & 0x08000000) != 0)) { + itemIssues_ = java.util.Collections.unmodifiableList(itemIssues_); + bitField0_ = (bitField0_ & ~0x08000000); + } + result.itemIssues_ = itemIssues_; + } else { + result.itemIssues_ = itemIssuesBuilder_.build(); + } + } + + private void buildPartial0(com.google.shopping.merchant.reports.v1alpha.ProductView result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.channel_ = channel_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.languageCode_ = languageCode_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.feedLabel_ = feedLabel_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.offerId_ = offerId_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.title_ = title_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.brand_ = brand_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.categoryL1_ = categoryL1_; + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.categoryL2_ = categoryL2_; + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.categoryL3_ = categoryL3_; + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.categoryL4_ = categoryL4_; + to_bitField0_ |= 0x00000400; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.categoryL5_ = categoryL5_; + to_bitField0_ |= 0x00000800; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.productTypeL1_ = productTypeL1_; + to_bitField0_ |= 0x00001000; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.productTypeL2_ = productTypeL2_; + to_bitField0_ |= 0x00002000; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.productTypeL3_ = productTypeL3_; + to_bitField0_ |= 0x00004000; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.productTypeL4_ = productTypeL4_; + to_bitField0_ |= 0x00008000; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.productTypeL5_ = productTypeL5_; + to_bitField0_ |= 0x00010000; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.price_ = priceBuilder_ == null ? price_ : priceBuilder_.build(); + to_bitField0_ |= 0x00020000; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.condition_ = condition_; + to_bitField0_ |= 0x00040000; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.availability_ = availability_; + to_bitField0_ |= 0x00080000; + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.shippingLabel_ = shippingLabel_; + to_bitField0_ |= 0x00100000; + } + if (((from_bitField0_ & 0x00200000) != 0)) { + gtin_.makeImmutable(); + result.gtin_ = gtin_; + } + if (((from_bitField0_ & 0x00400000) != 0)) { + result.itemGroupId_ = itemGroupId_; + to_bitField0_ |= 0x00200000; + } + if (((from_bitField0_ & 0x00800000) != 0)) { + result.thumbnailLink_ = thumbnailLink_; + to_bitField0_ |= 0x00400000; + } + if (((from_bitField0_ & 0x01000000) != 0)) { + result.creationTime_ = + creationTimeBuilder_ == null ? creationTime_ : creationTimeBuilder_.build(); + to_bitField0_ |= 0x00800000; + } + if (((from_bitField0_ & 0x02000000) != 0)) { + result.expirationDate_ = + expirationDateBuilder_ == null ? expirationDate_ : expirationDateBuilder_.build(); + to_bitField0_ |= 0x01000000; + } + if (((from_bitField0_ & 0x04000000) != 0)) { + result.aggregatedReportingContextStatus_ = aggregatedReportingContextStatus_; + to_bitField0_ |= 0x02000000; + } + if (((from_bitField0_ & 0x10000000) != 0)) { + result.clickPotential_ = clickPotential_; + } + if (((from_bitField0_ & 0x20000000) != 0)) { + result.clickPotentialRank_ = clickPotentialRank_; + to_bitField0_ |= 0x04000000; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.shopping.merchant.reports.v1alpha.ProductView) { + return mergeFrom((com.google.shopping.merchant.reports.v1alpha.ProductView) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.shopping.merchant.reports.v1alpha.ProductView other) { + if (other == com.google.shopping.merchant.reports.v1alpha.ProductView.getDefaultInstance()) + return this; + if (other.hasId()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasChannel()) { + setChannel(other.getChannel()); + } + if (other.hasLanguageCode()) { + languageCode_ = other.languageCode_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasFeedLabel()) { + feedLabel_ = other.feedLabel_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasOfferId()) { + offerId_ = other.offerId_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasTitle()) { + title_ = other.title_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasBrand()) { + brand_ = other.brand_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.hasCategoryL1()) { + categoryL1_ = other.categoryL1_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (other.hasCategoryL2()) { + categoryL2_ = other.categoryL2_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.hasCategoryL3()) { + categoryL3_ = other.categoryL3_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (other.hasCategoryL4()) { + categoryL4_ = other.categoryL4_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (other.hasCategoryL5()) { + categoryL5_ = other.categoryL5_; + bitField0_ |= 0x00000800; + onChanged(); + } + if (other.hasProductTypeL1()) { + productTypeL1_ = other.productTypeL1_; + bitField0_ |= 0x00001000; + onChanged(); + } + if (other.hasProductTypeL2()) { + productTypeL2_ = other.productTypeL2_; + bitField0_ |= 0x00002000; + onChanged(); + } + if (other.hasProductTypeL3()) { + productTypeL3_ = other.productTypeL3_; + bitField0_ |= 0x00004000; + onChanged(); + } + if (other.hasProductTypeL4()) { + productTypeL4_ = other.productTypeL4_; + bitField0_ |= 0x00008000; + onChanged(); + } + if (other.hasProductTypeL5()) { + productTypeL5_ = other.productTypeL5_; + bitField0_ |= 0x00010000; + onChanged(); + } + if (other.hasPrice()) { + mergePrice(other.getPrice()); + } + if (other.hasCondition()) { + condition_ = other.condition_; + bitField0_ |= 0x00040000; + onChanged(); + } + if (other.hasAvailability()) { + availability_ = other.availability_; + bitField0_ |= 0x00080000; + onChanged(); + } + if (other.hasShippingLabel()) { + shippingLabel_ = other.shippingLabel_; + bitField0_ |= 0x00100000; + onChanged(); + } + if (!other.gtin_.isEmpty()) { + if (gtin_.isEmpty()) { + gtin_ = other.gtin_; + bitField0_ |= 0x00200000; + } else { + ensureGtinIsMutable(); + gtin_.addAll(other.gtin_); + } + onChanged(); + } + if (other.hasItemGroupId()) { + itemGroupId_ = other.itemGroupId_; + bitField0_ |= 0x00400000; + onChanged(); + } + if (other.hasThumbnailLink()) { + thumbnailLink_ = other.thumbnailLink_; + bitField0_ |= 0x00800000; + onChanged(); + } + if (other.hasCreationTime()) { + mergeCreationTime(other.getCreationTime()); + } + if (other.hasExpirationDate()) { + mergeExpirationDate(other.getExpirationDate()); + } + if (other.hasAggregatedReportingContextStatus()) { + setAggregatedReportingContextStatus(other.getAggregatedReportingContextStatus()); + } + if (itemIssuesBuilder_ == null) { + if (!other.itemIssues_.isEmpty()) { + if (itemIssues_.isEmpty()) { + itemIssues_ = other.itemIssues_; + bitField0_ = (bitField0_ & ~0x08000000); + } else { + ensureItemIssuesIsMutable(); + itemIssues_.addAll(other.itemIssues_); + } + onChanged(); + } + } else { + if (!other.itemIssues_.isEmpty()) { + if (itemIssuesBuilder_.isEmpty()) { + itemIssuesBuilder_.dispose(); + itemIssuesBuilder_ = null; + itemIssues_ = other.itemIssues_; + bitField0_ = (bitField0_ & ~0x08000000); + itemIssuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getItemIssuesFieldBuilder() + : null; + } else { + itemIssuesBuilder_.addAllMessages(other.itemIssues_); + } + } + } + if (other.clickPotential_ != 0) { + setClickPotentialValue(other.getClickPotentialValue()); + } + if (other.hasClickPotentialRank()) { + setClickPotentialRank(other.getClickPotentialRank()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + languageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: + { + feedLabel_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + offerId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 42: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 42 + case 50: + { + brand_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 58: + { + categoryL1_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 58 + case 66: + { + categoryL2_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 66 + case 74: + { + categoryL3_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 74 + case 82: + { + categoryL4_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 82 + case 90: + { + categoryL5_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 90 + case 98: + { + productTypeL1_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 98 + case 106: + { + productTypeL2_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00002000; + break; + } // case 106 + case 114: + { + productTypeL3_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00004000; + break; + } // case 114 + case 122: + { + productTypeL4_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00008000; + break; + } // case 122 + case 130: + { + productTypeL5_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00010000; + break; + } // case 130 + case 138: + { + input.readMessage(getPriceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00020000; + break; + } // case 138 + case 146: + { + condition_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00040000; + break; + } // case 146 + case 154: + { + availability_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00080000; + break; + } // case 154 + case 162: + { + shippingLabel_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00100000; + break; + } // case 162 + case 170: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureGtinIsMutable(); + gtin_.add(s); + break; + } // case 170 + case 178: + { + itemGroupId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00400000; + break; + } // case 178 + case 186: + { + thumbnailLink_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00800000; + break; + } // case 186 + case 194: + { + input.readMessage(getCreationTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x01000000; + break; + } // case 194 + case 202: + { + input.readMessage(getExpirationDateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x02000000; + break; + } // case 202 + case 208: + { + aggregatedReportingContextStatus_ = input.readEnum(); + bitField0_ |= 0x04000000; + break; + } // case 208 + case 218: + { + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue m = + input.readMessage( + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.parser(), + extensionRegistry); + if (itemIssuesBuilder_ == null) { + ensureItemIssuesIsMutable(); + itemIssues_.add(m); + } else { + itemIssuesBuilder_.addMessage(m); + } + break; + } // case 218 + case 224: + { + channel_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 224 + case 232: + { + clickPotential_ = input.readEnum(); + bitField0_ |= 0x10000000; + break; + } // case 232 + case 240: + { + clickPotentialRank_ = input.readInt64(); + bitField0_ |= 0x20000000; + break; + } // case 240 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object id_ = ""; + + /** + * + * + *
      +     * REST ID of the product, in the form of
      +     * `channel~languageCode~feedLabel~offerId`. Merchant API methods that operate
      +     * on products take this as their `name` parameter.
      +     *
      +     * Required in the `SELECT` clause.
      +     * 
      + * + * optional string id = 1; + * + * @return Whether the id field is set. + */ + public boolean hasId() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +     * REST ID of the product, in the form of
      +     * `channel~languageCode~feedLabel~offerId`. Merchant API methods that operate
      +     * on products take this as their `name` parameter.
      +     *
      +     * Required in the `SELECT` clause.
      +     * 
      + * + * optional string id = 1; + * + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * REST ID of the product, in the form of
      +     * `channel~languageCode~feedLabel~offerId`. Merchant API methods that operate
      +     * on products take this as their `name` parameter.
      +     *
      +     * Required in the `SELECT` clause.
      +     * 
      + * + * optional string id = 1; + * + * @return The bytes for id. + */ + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * REST ID of the product, in the form of
      +     * `channel~languageCode~feedLabel~offerId`. Merchant API methods that operate
      +     * on products take this as their `name` parameter.
      +     *
      +     * Required in the `SELECT` clause.
      +     * 
      + * + * optional string id = 1; + * + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * REST ID of the product, in the form of
      +     * `channel~languageCode~feedLabel~offerId`. Merchant API methods that operate
      +     * on products take this as their `name` parameter.
      +     *
      +     * Required in the `SELECT` clause.
      +     * 
      + * + * optional string id = 1; + * + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * REST ID of the product, in the form of
      +     * `channel~languageCode~feedLabel~offerId`. Merchant API methods that operate
      +     * on products take this as their `name` parameter.
      +     *
      +     * Required in the `SELECT` clause.
      +     * 
      + * + * optional string id = 1; + * + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int channel_ = 0; + + /** + * + * + *
      +     * Channel of the product. Can be `ONLINE` or `LOCAL`.
      +     * 
      + * + * optional .google.shopping.type.Channel.ChannelEnum channel = 28; + * + * @return Whether the channel field is set. + */ + @java.lang.Override + public boolean hasChannel() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +     * Channel of the product. Can be `ONLINE` or `LOCAL`.
      +     * 
      + * + * optional .google.shopping.type.Channel.ChannelEnum channel = 28; + * + * @return The enum numeric value on the wire for channel. + */ + @java.lang.Override + public int getChannelValue() { + return channel_; + } + + /** + * + * + *
      +     * Channel of the product. Can be `ONLINE` or `LOCAL`.
      +     * 
      + * + * optional .google.shopping.type.Channel.ChannelEnum channel = 28; + * + * @param value The enum numeric value on the wire for channel to set. + * @return This builder for chaining. + */ + public Builder setChannelValue(int value) { + channel_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Channel of the product. Can be `ONLINE` or `LOCAL`.
      +     * 
      + * + * optional .google.shopping.type.Channel.ChannelEnum channel = 28; + * + * @return The channel. + */ + @java.lang.Override + public com.google.shopping.type.Channel.ChannelEnum getChannel() { + com.google.shopping.type.Channel.ChannelEnum result = + com.google.shopping.type.Channel.ChannelEnum.forNumber(channel_); + return result == null ? com.google.shopping.type.Channel.ChannelEnum.UNRECOGNIZED : result; + } + + /** + * + * + *
      +     * Channel of the product. Can be `ONLINE` or `LOCAL`.
      +     * 
      + * + * optional .google.shopping.type.Channel.ChannelEnum channel = 28; + * + * @param value The channel to set. + * @return This builder for chaining. + */ + public Builder setChannel(com.google.shopping.type.Channel.ChannelEnum value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + channel_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Channel of the product. Can be `ONLINE` or `LOCAL`.
      +     * 
      + * + * optional .google.shopping.type.Channel.ChannelEnum channel = 28; + * + * @return This builder for chaining. + */ + public Builder clearChannel() { + bitField0_ = (bitField0_ & ~0x00000002); + channel_ = 0; + onChanged(); + return this; + } + + private java.lang.Object languageCode_ = ""; + + /** + * + * + *
      +     * Language code of the product in BCP 47 format.
      +     * 
      + * + * optional string language_code = 2; + * + * @return Whether the languageCode field is set. + */ + public boolean hasLanguageCode() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +     * Language code of the product in BCP 47 format.
      +     * 
      + * + * optional string language_code = 2; + * + * @return The languageCode. + */ + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Language code of the product in BCP 47 format.
      +     * 
      + * + * optional string language_code = 2; + * + * @return The bytes for languageCode. + */ + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Language code of the product in BCP 47 format.
      +     * 
      + * + * optional string language_code = 2; + * + * @param value The languageCode to set. + * @return This builder for chaining. + */ + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + languageCode_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Language code of the product in BCP 47 format.
      +     * 
      + * + * optional string language_code = 2; + * + * @return This builder for chaining. + */ + public Builder clearLanguageCode() { + languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Language code of the product in BCP 47 format.
      +     * 
      + * + * optional string language_code = 2; + * + * @param value The bytes for languageCode to set. + * @return This builder for chaining. + */ + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object feedLabel_ = ""; + + /** + * + * + *
      +     * Feed label of the product.
      +     * 
      + * + * optional string feed_label = 3; + * + * @return Whether the feedLabel field is set. + */ + public boolean hasFeedLabel() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +     * Feed label of the product.
      +     * 
      + * + * optional string feed_label = 3; + * + * @return The feedLabel. + */ + public java.lang.String getFeedLabel() { + java.lang.Object ref = feedLabel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + feedLabel_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Feed label of the product.
      +     * 
      + * + * optional string feed_label = 3; + * + * @return The bytes for feedLabel. + */ + public com.google.protobuf.ByteString getFeedLabelBytes() { + java.lang.Object ref = feedLabel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + feedLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Feed label of the product.
      +     * 
      + * + * optional string feed_label = 3; + * + * @param value The feedLabel to set. + * @return This builder for chaining. + */ + public Builder setFeedLabel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + feedLabel_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Feed label of the product.
      +     * 
      + * + * optional string feed_label = 3; + * + * @return This builder for chaining. + */ + public Builder clearFeedLabel() { + feedLabel_ = getDefaultInstance().getFeedLabel(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Feed label of the product.
      +     * 
      + * + * optional string feed_label = 3; + * + * @param value The bytes for feedLabel to set. + * @return This builder for chaining. + */ + public Builder setFeedLabelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + feedLabel_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object offerId_ = ""; + + /** + * + * + *
      +     * Merchant-provided id of the product.
      +     * 
      + * + * optional string offer_id = 4; + * + * @return Whether the offerId field is set. + */ + public boolean hasOfferId() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
      +     * Merchant-provided id of the product.
      +     * 
      + * + * optional string offer_id = 4; + * + * @return The offerId. + */ + public java.lang.String getOfferId() { + java.lang.Object ref = offerId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + offerId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Merchant-provided id of the product.
      +     * 
      + * + * optional string offer_id = 4; + * + * @return The bytes for offerId. + */ + public com.google.protobuf.ByteString getOfferIdBytes() { + java.lang.Object ref = offerId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + offerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Merchant-provided id of the product.
      +     * 
      + * + * optional string offer_id = 4; + * + * @param value The offerId to set. + * @return This builder for chaining. + */ + public Builder setOfferId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + offerId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Merchant-provided id of the product.
      +     * 
      + * + * optional string offer_id = 4; + * + * @return This builder for chaining. + */ + public Builder clearOfferId() { + offerId_ = getDefaultInstance().getOfferId(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Merchant-provided id of the product.
      +     * 
      + * + * optional string offer_id = 4; + * + * @param value The bytes for offerId to set. + * @return This builder for chaining. + */ + public Builder setOfferIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + offerId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object title_ = ""; + + /** + * + * + *
      +     * Title of the product.
      +     * 
      + * + * optional string title = 5; + * + * @return Whether the title field is set. + */ + public boolean hasTitle() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
      +     * Title of the product.
      +     * 
      + * + * optional string title = 5; + * + * @return The title. + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Title of the product.
      +     * 
      + * + * optional string title = 5; + * + * @return The bytes for title. + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Title of the product.
      +     * 
      + * + * optional string title = 5; + * + * @param value The title to set. + * @return This builder for chaining. + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + title_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Title of the product.
      +     * 
      + * + * optional string title = 5; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Title of the product.
      +     * 
      + * + * optional string title = 5; + * + * @param value The bytes for title to set. + * @return This builder for chaining. + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + title_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object brand_ = ""; + + /** + * + * + *
      +     * Brand of the product.
      +     * 
      + * + * optional string brand = 6; + * + * @return Whether the brand field is set. + */ + public boolean hasBrand() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
      +     * Brand of the product.
      +     * 
      + * + * optional string brand = 6; + * + * @return The brand. + */ + public java.lang.String getBrand() { + java.lang.Object ref = brand_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + brand_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Brand of the product.
      +     * 
      + * + * optional string brand = 6; + * + * @return The bytes for brand. + */ + public com.google.protobuf.ByteString getBrandBytes() { + java.lang.Object ref = brand_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + brand_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Brand of the product.
      +     * 
      + * + * optional string brand = 6; + * + * @param value The brand to set. + * @return This builder for chaining. + */ + public Builder setBrand(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + brand_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Brand of the product.
      +     * 
      + * + * optional string brand = 6; + * + * @return This builder for chaining. + */ + public Builder clearBrand() { + brand_ = getDefaultInstance().getBrand(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Brand of the product.
      +     * 
      + * + * optional string brand = 6; + * + * @param value The bytes for brand to set. + * @return This builder for chaining. + */ + public Builder setBrandBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + brand_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object categoryL1_ = ""; + + /** + * + * + *
      +     * Product category (1st level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l1 = 7; + * + * @return Whether the categoryL1 field is set. + */ + public boolean hasCategoryL1() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
      +     * Product category (1st level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l1 = 7; + * + * @return The categoryL1. + */ + public java.lang.String getCategoryL1() { + java.lang.Object ref = categoryL1_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + categoryL1_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Product category (1st level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l1 = 7; + * + * @return The bytes for categoryL1. + */ + public com.google.protobuf.ByteString getCategoryL1Bytes() { + java.lang.Object ref = categoryL1_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + categoryL1_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Product category (1st level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l1 = 7; + * + * @param value The categoryL1 to set. + * @return This builder for chaining. + */ + public Builder setCategoryL1(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + categoryL1_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product category (1st level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l1 = 7; + * + * @return This builder for chaining. + */ + public Builder clearCategoryL1() { + categoryL1_ = getDefaultInstance().getCategoryL1(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product category (1st level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l1 = 7; + * + * @param value The bytes for categoryL1 to set. + * @return This builder for chaining. + */ + public Builder setCategoryL1Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + categoryL1_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object categoryL2_ = ""; + + /** + * + * + *
      +     * Product category (2nd level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l2 = 8; + * + * @return Whether the categoryL2 field is set. + */ + public boolean hasCategoryL2() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
      +     * Product category (2nd level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l2 = 8; + * + * @return The categoryL2. + */ + public java.lang.String getCategoryL2() { + java.lang.Object ref = categoryL2_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + categoryL2_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Product category (2nd level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l2 = 8; + * + * @return The bytes for categoryL2. + */ + public com.google.protobuf.ByteString getCategoryL2Bytes() { + java.lang.Object ref = categoryL2_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + categoryL2_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Product category (2nd level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l2 = 8; + * + * @param value The categoryL2 to set. + * @return This builder for chaining. + */ + public Builder setCategoryL2(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + categoryL2_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product category (2nd level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l2 = 8; + * + * @return This builder for chaining. + */ + public Builder clearCategoryL2() { + categoryL2_ = getDefaultInstance().getCategoryL2(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product category (2nd level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l2 = 8; + * + * @param value The bytes for categoryL2 to set. + * @return This builder for chaining. + */ + public Builder setCategoryL2Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + categoryL2_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private java.lang.Object categoryL3_ = ""; + + /** + * + * + *
      +     * Product category (3rd level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l3 = 9; + * + * @return Whether the categoryL3 field is set. + */ + public boolean hasCategoryL3() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
      +     * Product category (3rd level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l3 = 9; + * + * @return The categoryL3. + */ + public java.lang.String getCategoryL3() { + java.lang.Object ref = categoryL3_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + categoryL3_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Product category (3rd level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l3 = 9; + * + * @return The bytes for categoryL3. + */ + public com.google.protobuf.ByteString getCategoryL3Bytes() { + java.lang.Object ref = categoryL3_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + categoryL3_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Product category (3rd level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l3 = 9; + * + * @param value The categoryL3 to set. + * @return This builder for chaining. + */ + public Builder setCategoryL3(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + categoryL3_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product category (3rd level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l3 = 9; + * + * @return This builder for chaining. + */ + public Builder clearCategoryL3() { + categoryL3_ = getDefaultInstance().getCategoryL3(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product category (3rd level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l3 = 9; + * + * @param value The bytes for categoryL3 to set. + * @return This builder for chaining. + */ + public Builder setCategoryL3Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + categoryL3_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private java.lang.Object categoryL4_ = ""; + + /** + * + * + *
      +     * Product category (4th level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l4 = 10; + * + * @return Whether the categoryL4 field is set. + */ + public boolean hasCategoryL4() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
      +     * Product category (4th level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l4 = 10; + * + * @return The categoryL4. + */ + public java.lang.String getCategoryL4() { + java.lang.Object ref = categoryL4_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + categoryL4_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Product category (4th level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l4 = 10; + * + * @return The bytes for categoryL4. + */ + public com.google.protobuf.ByteString getCategoryL4Bytes() { + java.lang.Object ref = categoryL4_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + categoryL4_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Product category (4th level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l4 = 10; + * + * @param value The categoryL4 to set. + * @return This builder for chaining. + */ + public Builder setCategoryL4(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + categoryL4_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product category (4th level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l4 = 10; + * + * @return This builder for chaining. + */ + public Builder clearCategoryL4() { + categoryL4_ = getDefaultInstance().getCategoryL4(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product category (4th level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l4 = 10; + * + * @param value The bytes for categoryL4 to set. + * @return This builder for chaining. + */ + public Builder setCategoryL4Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + categoryL4_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + private java.lang.Object categoryL5_ = ""; + + /** + * + * + *
      +     * Product category (5th level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l5 = 11; + * + * @return Whether the categoryL5 field is set. + */ + public boolean hasCategoryL5() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
      +     * Product category (5th level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l5 = 11; + * + * @return The categoryL5. + */ + public java.lang.String getCategoryL5() { + java.lang.Object ref = categoryL5_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + categoryL5_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Product category (5th level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l5 = 11; + * + * @return The bytes for categoryL5. + */ + public com.google.protobuf.ByteString getCategoryL5Bytes() { + java.lang.Object ref = categoryL5_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + categoryL5_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Product category (5th level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l5 = 11; + * + * @param value The categoryL5 to set. + * @return This builder for chaining. + */ + public Builder setCategoryL5(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + categoryL5_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product category (5th level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l5 = 11; + * + * @return This builder for chaining. + */ + public Builder clearCategoryL5() { + categoryL5_ = getDefaultInstance().getCategoryL5(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product category (5th level) in [Google's product
      +     * taxonomy](https://support.google.com/merchants/answer/6324436).
      +     * 
      + * + * optional string category_l5 = 11; + * + * @param value The bytes for categoryL5 to set. + * @return This builder for chaining. + */ + public Builder setCategoryL5Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + categoryL5_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + private java.lang.Object productTypeL1_ = ""; + + /** + * + * + *
      +     * Product type (1st level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l1 = 12; + * + * @return Whether the productTypeL1 field is set. + */ + public boolean hasProductTypeL1() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
      +     * Product type (1st level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l1 = 12; + * + * @return The productTypeL1. + */ + public java.lang.String getProductTypeL1() { + java.lang.Object ref = productTypeL1_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + productTypeL1_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Product type (1st level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l1 = 12; + * + * @return The bytes for productTypeL1. + */ + public com.google.protobuf.ByteString getProductTypeL1Bytes() { + java.lang.Object ref = productTypeL1_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + productTypeL1_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Product type (1st level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l1 = 12; + * + * @param value The productTypeL1 to set. + * @return This builder for chaining. + */ + public Builder setProductTypeL1(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + productTypeL1_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product type (1st level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l1 = 12; + * + * @return This builder for chaining. + */ + public Builder clearProductTypeL1() { + productTypeL1_ = getDefaultInstance().getProductTypeL1(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product type (1st level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l1 = 12; + * + * @param value The bytes for productTypeL1 to set. + * @return This builder for chaining. + */ + public Builder setProductTypeL1Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + productTypeL1_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + private java.lang.Object productTypeL2_ = ""; + + /** + * + * + *
      +     * Product type (2nd level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l2 = 13; + * + * @return Whether the productTypeL2 field is set. + */ + public boolean hasProductTypeL2() { + return ((bitField0_ & 0x00002000) != 0); + } + + /** + * + * + *
      +     * Product type (2nd level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l2 = 13; + * + * @return The productTypeL2. + */ + public java.lang.String getProductTypeL2() { + java.lang.Object ref = productTypeL2_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + productTypeL2_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Product type (2nd level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l2 = 13; + * + * @return The bytes for productTypeL2. + */ + public com.google.protobuf.ByteString getProductTypeL2Bytes() { + java.lang.Object ref = productTypeL2_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + productTypeL2_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Product type (2nd level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l2 = 13; + * + * @param value The productTypeL2 to set. + * @return This builder for chaining. + */ + public Builder setProductTypeL2(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + productTypeL2_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product type (2nd level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l2 = 13; + * + * @return This builder for chaining. + */ + public Builder clearProductTypeL2() { + productTypeL2_ = getDefaultInstance().getProductTypeL2(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product type (2nd level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l2 = 13; + * + * @param value The bytes for productTypeL2 to set. + * @return This builder for chaining. + */ + public Builder setProductTypeL2Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + productTypeL2_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + private java.lang.Object productTypeL3_ = ""; + + /** + * + * + *
      +     * Product type (3rd level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l3 = 14; + * + * @return Whether the productTypeL3 field is set. + */ + public boolean hasProductTypeL3() { + return ((bitField0_ & 0x00004000) != 0); + } + + /** + * + * + *
      +     * Product type (3rd level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l3 = 14; + * + * @return The productTypeL3. + */ + public java.lang.String getProductTypeL3() { + java.lang.Object ref = productTypeL3_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + productTypeL3_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Product type (3rd level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l3 = 14; + * + * @return The bytes for productTypeL3. + */ + public com.google.protobuf.ByteString getProductTypeL3Bytes() { + java.lang.Object ref = productTypeL3_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + productTypeL3_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Product type (3rd level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l3 = 14; + * + * @param value The productTypeL3 to set. + * @return This builder for chaining. + */ + public Builder setProductTypeL3(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + productTypeL3_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product type (3rd level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l3 = 14; + * + * @return This builder for chaining. + */ + public Builder clearProductTypeL3() { + productTypeL3_ = getDefaultInstance().getProductTypeL3(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product type (3rd level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l3 = 14; + * + * @param value The bytes for productTypeL3 to set. + * @return This builder for chaining. + */ + public Builder setProductTypeL3Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + productTypeL3_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + private java.lang.Object productTypeL4_ = ""; + + /** + * + * + *
      +     * Product type (4th level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l4 = 15; + * + * @return Whether the productTypeL4 field is set. + */ + public boolean hasProductTypeL4() { + return ((bitField0_ & 0x00008000) != 0); + } + + /** + * + * + *
      +     * Product type (4th level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l4 = 15; + * + * @return The productTypeL4. + */ + public java.lang.String getProductTypeL4() { + java.lang.Object ref = productTypeL4_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + productTypeL4_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Product type (4th level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l4 = 15; + * + * @return The bytes for productTypeL4. + */ + public com.google.protobuf.ByteString getProductTypeL4Bytes() { + java.lang.Object ref = productTypeL4_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + productTypeL4_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Product type (4th level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l4 = 15; + * + * @param value The productTypeL4 to set. + * @return This builder for chaining. + */ + public Builder setProductTypeL4(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + productTypeL4_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product type (4th level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l4 = 15; + * + * @return This builder for chaining. + */ + public Builder clearProductTypeL4() { + productTypeL4_ = getDefaultInstance().getProductTypeL4(); + bitField0_ = (bitField0_ & ~0x00008000); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product type (4th level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l4 = 15; + * + * @param value The bytes for productTypeL4 to set. + * @return This builder for chaining. + */ + public Builder setProductTypeL4Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + productTypeL4_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + private java.lang.Object productTypeL5_ = ""; + + /** + * + * + *
      +     * Product type (5th level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l5 = 16; + * + * @return Whether the productTypeL5 field is set. + */ + public boolean hasProductTypeL5() { + return ((bitField0_ & 0x00010000) != 0); + } + + /** + * + * + *
      +     * Product type (5th level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l5 = 16; + * + * @return The productTypeL5. + */ + public java.lang.String getProductTypeL5() { + java.lang.Object ref = productTypeL5_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + productTypeL5_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Product type (5th level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l5 = 16; + * + * @return The bytes for productTypeL5. + */ + public com.google.protobuf.ByteString getProductTypeL5Bytes() { + java.lang.Object ref = productTypeL5_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + productTypeL5_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Product type (5th level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l5 = 16; + * + * @param value The productTypeL5 to set. + * @return This builder for chaining. + */ + public Builder setProductTypeL5(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + productTypeL5_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product type (5th level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l5 = 16; + * + * @return This builder for chaining. + */ + public Builder clearProductTypeL5() { + productTypeL5_ = getDefaultInstance().getProductTypeL5(); + bitField0_ = (bitField0_ & ~0x00010000); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product type (5th level) in merchant's own [product
      +     * taxonomy](https://support.google.com/merchants/answer/6324406).
      +     * 
      + * + * optional string product_type_l5 = 16; + * + * @param value The bytes for productTypeL5 to set. + * @return This builder for chaining. + */ + public Builder setProductTypeL5Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + productTypeL5_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + private com.google.shopping.type.Price price_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> + priceBuilder_; + + /** + * + * + *
      +     * Product price. Absent if the information about the price of the product is
      +     * not available.
      +     * 
      + * + * .google.shopping.type.Price price = 17; + * + * @return Whether the price field is set. + */ + public boolean hasPrice() { + return ((bitField0_ & 0x00020000) != 0); + } + + /** + * + * + *
      +     * Product price. Absent if the information about the price of the product is
      +     * not available.
      +     * 
      + * + * .google.shopping.type.Price price = 17; + * + * @return The price. + */ + public com.google.shopping.type.Price getPrice() { + if (priceBuilder_ == null) { + return price_ == null ? com.google.shopping.type.Price.getDefaultInstance() : price_; + } else { + return priceBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Product price. Absent if the information about the price of the product is
      +     * not available.
      +     * 
      + * + * .google.shopping.type.Price price = 17; + */ + public Builder setPrice(com.google.shopping.type.Price value) { + if (priceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + price_ = value; + } else { + priceBuilder_.setMessage(value); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product price. Absent if the information about the price of the product is
      +     * not available.
      +     * 
      + * + * .google.shopping.type.Price price = 17; + */ + public Builder setPrice(com.google.shopping.type.Price.Builder builderForValue) { + if (priceBuilder_ == null) { + price_ = builderForValue.build(); + } else { + priceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product price. Absent if the information about the price of the product is
      +     * not available.
      +     * 
      + * + * .google.shopping.type.Price price = 17; + */ + public Builder mergePrice(com.google.shopping.type.Price value) { + if (priceBuilder_ == null) { + if (((bitField0_ & 0x00020000) != 0) + && price_ != null + && price_ != com.google.shopping.type.Price.getDefaultInstance()) { + getPriceBuilder().mergeFrom(value); + } else { + price_ = value; + } + } else { + priceBuilder_.mergeFrom(value); + } + if (price_ != null) { + bitField0_ |= 0x00020000; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Product price. Absent if the information about the price of the product is
      +     * not available.
      +     * 
      + * + * .google.shopping.type.Price price = 17; + */ + public Builder clearPrice() { + bitField0_ = (bitField0_ & ~0x00020000); + price_ = null; + if (priceBuilder_ != null) { + priceBuilder_.dispose(); + priceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Product price. Absent if the information about the price of the product is
      +     * not available.
      +     * 
      + * + * .google.shopping.type.Price price = 17; + */ + public com.google.shopping.type.Price.Builder getPriceBuilder() { + bitField0_ |= 0x00020000; + onChanged(); + return getPriceFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Product price. Absent if the information about the price of the product is
      +     * not available.
      +     * 
      + * + * .google.shopping.type.Price price = 17; + */ + public com.google.shopping.type.PriceOrBuilder getPriceOrBuilder() { + if (priceBuilder_ != null) { + return priceBuilder_.getMessageOrBuilder(); + } else { + return price_ == null ? com.google.shopping.type.Price.getDefaultInstance() : price_; + } + } + + /** + * + * + *
      +     * Product price. Absent if the information about the price of the product is
      +     * not available.
      +     * 
      + * + * .google.shopping.type.Price price = 17; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> + getPriceFieldBuilder() { + if (priceBuilder_ == null) { + priceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder>( + getPrice(), getParentForChildren(), isClean()); + price_ = null; + } + return priceBuilder_; + } + + private java.lang.Object condition_ = ""; + + /** + * + * + *
      +     * [Condition](https://support.google.com/merchants/answer/6324469) of the
      +     * product.
      +     * 
      + * + * optional string condition = 18; + * + * @return Whether the condition field is set. + */ + public boolean hasCondition() { + return ((bitField0_ & 0x00040000) != 0); + } + + /** + * + * + *
      +     * [Condition](https://support.google.com/merchants/answer/6324469) of the
      +     * product.
      +     * 
      + * + * optional string condition = 18; + * + * @return The condition. + */ + public java.lang.String getCondition() { + java.lang.Object ref = condition_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + condition_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * [Condition](https://support.google.com/merchants/answer/6324469) of the
      +     * product.
      +     * 
      + * + * optional string condition = 18; + * + * @return The bytes for condition. + */ + public com.google.protobuf.ByteString getConditionBytes() { + java.lang.Object ref = condition_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + condition_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * [Condition](https://support.google.com/merchants/answer/6324469) of the
      +     * product.
      +     * 
      + * + * optional string condition = 18; + * + * @param value The condition to set. + * @return This builder for chaining. + */ + public Builder setCondition(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + condition_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * [Condition](https://support.google.com/merchants/answer/6324469) of the
      +     * product.
      +     * 
      + * + * optional string condition = 18; + * + * @return This builder for chaining. + */ + public Builder clearCondition() { + condition_ = getDefaultInstance().getCondition(); + bitField0_ = (bitField0_ & ~0x00040000); + onChanged(); + return this; + } + + /** + * + * + *
      +     * [Condition](https://support.google.com/merchants/answer/6324469) of the
      +     * product.
      +     * 
      + * + * optional string condition = 18; + * + * @param value The bytes for condition to set. + * @return This builder for chaining. + */ + public Builder setConditionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + condition_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + + private java.lang.Object availability_ = ""; + + /** + * + * + *
      +     * [Availability](https://support.google.com/merchants/answer/6324448) of the
      +     * product.
      +     * 
      + * + * optional string availability = 19; + * + * @return Whether the availability field is set. + */ + public boolean hasAvailability() { + return ((bitField0_ & 0x00080000) != 0); + } + + /** + * + * + *
      +     * [Availability](https://support.google.com/merchants/answer/6324448) of the
      +     * product.
      +     * 
      + * + * optional string availability = 19; + * + * @return The availability. + */ + public java.lang.String getAvailability() { + java.lang.Object ref = availability_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + availability_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * [Availability](https://support.google.com/merchants/answer/6324448) of the
      +     * product.
      +     * 
      + * + * optional string availability = 19; + * + * @return The bytes for availability. + */ + public com.google.protobuf.ByteString getAvailabilityBytes() { + java.lang.Object ref = availability_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + availability_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * [Availability](https://support.google.com/merchants/answer/6324448) of the
      +     * product.
      +     * 
      + * + * optional string availability = 19; + * + * @param value The availability to set. + * @return This builder for chaining. + */ + public Builder setAvailability(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + availability_ = value; + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * [Availability](https://support.google.com/merchants/answer/6324448) of the
      +     * product.
      +     * 
      + * + * optional string availability = 19; + * + * @return This builder for chaining. + */ + public Builder clearAvailability() { + availability_ = getDefaultInstance().getAvailability(); + bitField0_ = (bitField0_ & ~0x00080000); + onChanged(); + return this; + } + + /** + * + * + *
      +     * [Availability](https://support.google.com/merchants/answer/6324448) of the
      +     * product.
      +     * 
      + * + * optional string availability = 19; + * + * @param value The bytes for availability to set. + * @return This builder for chaining. + */ + public Builder setAvailabilityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + availability_ = value; + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + + private java.lang.Object shippingLabel_ = ""; + + /** + * + * + *
      +     * Normalized [shipping
      +     * label](https://support.google.com/merchants/answer/6324504) specified in
      +     * the data source.
      +     * 
      + * + * optional string shipping_label = 20; + * + * @return Whether the shippingLabel field is set. + */ + public boolean hasShippingLabel() { + return ((bitField0_ & 0x00100000) != 0); + } + + /** + * + * + *
      +     * Normalized [shipping
      +     * label](https://support.google.com/merchants/answer/6324504) specified in
      +     * the data source.
      +     * 
      + * + * optional string shipping_label = 20; + * + * @return The shippingLabel. + */ + public java.lang.String getShippingLabel() { + java.lang.Object ref = shippingLabel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + shippingLabel_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Normalized [shipping
      +     * label](https://support.google.com/merchants/answer/6324504) specified in
      +     * the data source.
      +     * 
      + * + * optional string shipping_label = 20; + * + * @return The bytes for shippingLabel. + */ + public com.google.protobuf.ByteString getShippingLabelBytes() { + java.lang.Object ref = shippingLabel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + shippingLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Normalized [shipping
      +     * label](https://support.google.com/merchants/answer/6324504) specified in
      +     * the data source.
      +     * 
      + * + * optional string shipping_label = 20; + * + * @param value The shippingLabel to set. + * @return This builder for chaining. + */ + public Builder setShippingLabel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + shippingLabel_ = value; + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Normalized [shipping
      +     * label](https://support.google.com/merchants/answer/6324504) specified in
      +     * the data source.
      +     * 
      + * + * optional string shipping_label = 20; + * + * @return This builder for chaining. + */ + public Builder clearShippingLabel() { + shippingLabel_ = getDefaultInstance().getShippingLabel(); + bitField0_ = (bitField0_ & ~0x00100000); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Normalized [shipping
      +     * label](https://support.google.com/merchants/answer/6324504) specified in
      +     * the data source.
      +     * 
      + * + * optional string shipping_label = 20; + * + * @param value The bytes for shippingLabel to set. + * @return This builder for chaining. + */ + public Builder setShippingLabelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + shippingLabel_ = value; + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList gtin_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureGtinIsMutable() { + if (!gtin_.isModifiable()) { + gtin_ = new com.google.protobuf.LazyStringArrayList(gtin_); + } + bitField0_ |= 0x00200000; + } + + /** + * + * + *
      +     * List of Global Trade Item Numbers (GTINs) of the product.
      +     * 
      + * + * repeated string gtin = 21; + * + * @return A list containing the gtin. + */ + public com.google.protobuf.ProtocolStringList getGtinList() { + gtin_.makeImmutable(); + return gtin_; + } + + /** + * + * + *
      +     * List of Global Trade Item Numbers (GTINs) of the product.
      +     * 
      + * + * repeated string gtin = 21; + * + * @return The count of gtin. + */ + public int getGtinCount() { + return gtin_.size(); + } + + /** + * + * + *
      +     * List of Global Trade Item Numbers (GTINs) of the product.
      +     * 
      + * + * repeated string gtin = 21; + * + * @param index The index of the element to return. + * @return The gtin at the given index. + */ + public java.lang.String getGtin(int index) { + return gtin_.get(index); + } + + /** + * + * + *
      +     * List of Global Trade Item Numbers (GTINs) of the product.
      +     * 
      + * + * repeated string gtin = 21; + * + * @param index The index of the value to return. + * @return The bytes of the gtin at the given index. + */ + public com.google.protobuf.ByteString getGtinBytes(int index) { + return gtin_.getByteString(index); + } + + /** + * + * + *
      +     * List of Global Trade Item Numbers (GTINs) of the product.
      +     * 
      + * + * repeated string gtin = 21; + * + * @param index The index to set the value at. + * @param value The gtin to set. + * @return This builder for chaining. + */ + public Builder setGtin(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureGtinIsMutable(); + gtin_.set(index, value); + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * List of Global Trade Item Numbers (GTINs) of the product.
      +     * 
      + * + * repeated string gtin = 21; + * + * @param value The gtin to add. + * @return This builder for chaining. + */ + public Builder addGtin(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureGtinIsMutable(); + gtin_.add(value); + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * List of Global Trade Item Numbers (GTINs) of the product.
      +     * 
      + * + * repeated string gtin = 21; + * + * @param values The gtin to add. + * @return This builder for chaining. + */ + public Builder addAllGtin(java.lang.Iterable values) { + ensureGtinIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, gtin_); + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * List of Global Trade Item Numbers (GTINs) of the product.
      +     * 
      + * + * repeated string gtin = 21; + * + * @return This builder for chaining. + */ + public Builder clearGtin() { + gtin_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00200000); + ; + onChanged(); + return this; + } + + /** + * + * + *
      +     * List of Global Trade Item Numbers (GTINs) of the product.
      +     * 
      + * + * repeated string gtin = 21; + * + * @param value The bytes of the gtin to add. + * @return This builder for chaining. + */ + public Builder addGtinBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureGtinIsMutable(); + gtin_.add(value); + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + + private java.lang.Object itemGroupId_ = ""; + + /** + * + * + *
      +     * Item group id provided by the merchant for grouping variants together.
      +     * 
      + * + * optional string item_group_id = 22; + * + * @return Whether the itemGroupId field is set. + */ + public boolean hasItemGroupId() { + return ((bitField0_ & 0x00400000) != 0); + } + + /** + * + * + *
      +     * Item group id provided by the merchant for grouping variants together.
      +     * 
      + * + * optional string item_group_id = 22; + * + * @return The itemGroupId. + */ + public java.lang.String getItemGroupId() { + java.lang.Object ref = itemGroupId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + itemGroupId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Item group id provided by the merchant for grouping variants together.
      +     * 
      + * + * optional string item_group_id = 22; + * + * @return The bytes for itemGroupId. + */ + public com.google.protobuf.ByteString getItemGroupIdBytes() { + java.lang.Object ref = itemGroupId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + itemGroupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Item group id provided by the merchant for grouping variants together.
      +     * 
      + * + * optional string item_group_id = 22; + * + * @param value The itemGroupId to set. + * @return This builder for chaining. + */ + public Builder setItemGroupId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + itemGroupId_ = value; + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Item group id provided by the merchant for grouping variants together.
      +     * 
      + * + * optional string item_group_id = 22; + * + * @return This builder for chaining. + */ + public Builder clearItemGroupId() { + itemGroupId_ = getDefaultInstance().getItemGroupId(); + bitField0_ = (bitField0_ & ~0x00400000); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Item group id provided by the merchant for grouping variants together.
      +     * 
      + * + * optional string item_group_id = 22; + * + * @param value The bytes for itemGroupId to set. + * @return This builder for chaining. + */ + public Builder setItemGroupIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + itemGroupId_ = value; + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + + private java.lang.Object thumbnailLink_ = ""; + + /** + * + * + *
      +     * Link to the processed image of the product, hosted on the Google
      +     * infrastructure.
      +     * 
      + * + * optional string thumbnail_link = 23; + * + * @return Whether the thumbnailLink field is set. + */ + public boolean hasThumbnailLink() { + return ((bitField0_ & 0x00800000) != 0); + } + + /** + * + * + *
      +     * Link to the processed image of the product, hosted on the Google
      +     * infrastructure.
      +     * 
      + * + * optional string thumbnail_link = 23; + * + * @return The thumbnailLink. + */ + public java.lang.String getThumbnailLink() { + java.lang.Object ref = thumbnailLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + thumbnailLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Link to the processed image of the product, hosted on the Google
      +     * infrastructure.
      +     * 
      + * + * optional string thumbnail_link = 23; + * + * @return The bytes for thumbnailLink. + */ + public com.google.protobuf.ByteString getThumbnailLinkBytes() { + java.lang.Object ref = thumbnailLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + thumbnailLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Link to the processed image of the product, hosted on the Google
      +     * infrastructure.
      +     * 
      + * + * optional string thumbnail_link = 23; + * + * @param value The thumbnailLink to set. + * @return This builder for chaining. + */ + public Builder setThumbnailLink(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + thumbnailLink_ = value; + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Link to the processed image of the product, hosted on the Google
      +     * infrastructure.
      +     * 
      + * + * optional string thumbnail_link = 23; + * + * @return This builder for chaining. + */ + public Builder clearThumbnailLink() { + thumbnailLink_ = getDefaultInstance().getThumbnailLink(); + bitField0_ = (bitField0_ & ~0x00800000); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Link to the processed image of the product, hosted on the Google
      +     * infrastructure.
      +     * 
      + * + * optional string thumbnail_link = 23; + * + * @param value The bytes for thumbnailLink to set. + * @return This builder for chaining. + */ + public Builder setThumbnailLinkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + thumbnailLink_ = value; + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp creationTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + creationTimeBuilder_; + + /** + * + * + *
      +     * The time the merchant created the product in timestamp seconds.
      +     * 
      + * + * .google.protobuf.Timestamp creation_time = 24; + * + * @return Whether the creationTime field is set. + */ + public boolean hasCreationTime() { + return ((bitField0_ & 0x01000000) != 0); + } + + /** + * + * + *
      +     * The time the merchant created the product in timestamp seconds.
      +     * 
      + * + * .google.protobuf.Timestamp creation_time = 24; + * + * @return The creationTime. + */ + public com.google.protobuf.Timestamp getCreationTime() { + if (creationTimeBuilder_ == null) { + return creationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : creationTime_; + } else { + return creationTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * The time the merchant created the product in timestamp seconds.
      +     * 
      + * + * .google.protobuf.Timestamp creation_time = 24; + */ + public Builder setCreationTime(com.google.protobuf.Timestamp value) { + if (creationTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + creationTime_ = value; + } else { + creationTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x01000000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The time the merchant created the product in timestamp seconds.
      +     * 
      + * + * .google.protobuf.Timestamp creation_time = 24; + */ + public Builder setCreationTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (creationTimeBuilder_ == null) { + creationTime_ = builderForValue.build(); + } else { + creationTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x01000000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The time the merchant created the product in timestamp seconds.
      +     * 
      + * + * .google.protobuf.Timestamp creation_time = 24; + */ + public Builder mergeCreationTime(com.google.protobuf.Timestamp value) { + if (creationTimeBuilder_ == null) { + if (((bitField0_ & 0x01000000) != 0) + && creationTime_ != null + && creationTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreationTimeBuilder().mergeFrom(value); + } else { + creationTime_ = value; + } + } else { + creationTimeBuilder_.mergeFrom(value); + } + if (creationTime_ != null) { + bitField0_ |= 0x01000000; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * The time the merchant created the product in timestamp seconds.
      +     * 
      + * + * .google.protobuf.Timestamp creation_time = 24; + */ + public Builder clearCreationTime() { + bitField0_ = (bitField0_ & ~0x01000000); + creationTime_ = null; + if (creationTimeBuilder_ != null) { + creationTimeBuilder_.dispose(); + creationTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * The time the merchant created the product in timestamp seconds.
      +     * 
      + * + * .google.protobuf.Timestamp creation_time = 24; + */ + public com.google.protobuf.Timestamp.Builder getCreationTimeBuilder() { + bitField0_ |= 0x01000000; + onChanged(); + return getCreationTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * The time the merchant created the product in timestamp seconds.
      +     * 
      + * + * .google.protobuf.Timestamp creation_time = 24; + */ + public com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder() { + if (creationTimeBuilder_ != null) { + return creationTimeBuilder_.getMessageOrBuilder(); + } else { + return creationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : creationTime_; + } + } + + /** + * + * + *
      +     * The time the merchant created the product in timestamp seconds.
      +     * 
      + * + * .google.protobuf.Timestamp creation_time = 24; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreationTimeFieldBuilder() { + if (creationTimeBuilder_ == null) { + creationTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreationTime(), getParentForChildren(), isClean()); + creationTime_ = null; + } + return creationTimeBuilder_; + } + + private com.google.type.Date expirationDate_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + expirationDateBuilder_; + + /** + * + * + *
      +     * Expiration date for the product, specified on insertion.
      +     * 
      + * + * .google.type.Date expiration_date = 25; + * + * @return Whether the expirationDate field is set. + */ + public boolean hasExpirationDate() { + return ((bitField0_ & 0x02000000) != 0); + } + + /** + * + * + *
      +     * Expiration date for the product, specified on insertion.
      +     * 
      + * + * .google.type.Date expiration_date = 25; + * + * @return The expirationDate. + */ + public com.google.type.Date getExpirationDate() { + if (expirationDateBuilder_ == null) { + return expirationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : expirationDate_; + } else { + return expirationDateBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Expiration date for the product, specified on insertion.
      +     * 
      + * + * .google.type.Date expiration_date = 25; + */ + public Builder setExpirationDate(com.google.type.Date value) { + if (expirationDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expirationDate_ = value; + } else { + expirationDateBuilder_.setMessage(value); + } + bitField0_ |= 0x02000000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Expiration date for the product, specified on insertion.
      +     * 
      + * + * .google.type.Date expiration_date = 25; + */ + public Builder setExpirationDate(com.google.type.Date.Builder builderForValue) { + if (expirationDateBuilder_ == null) { + expirationDate_ = builderForValue.build(); + } else { + expirationDateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x02000000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Expiration date for the product, specified on insertion.
      +     * 
      + * + * .google.type.Date expiration_date = 25; + */ + public Builder mergeExpirationDate(com.google.type.Date value) { + if (expirationDateBuilder_ == null) { + if (((bitField0_ & 0x02000000) != 0) + && expirationDate_ != null + && expirationDate_ != com.google.type.Date.getDefaultInstance()) { + getExpirationDateBuilder().mergeFrom(value); + } else { + expirationDate_ = value; + } + } else { + expirationDateBuilder_.mergeFrom(value); + } + if (expirationDate_ != null) { + bitField0_ |= 0x02000000; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Expiration date for the product, specified on insertion.
      +     * 
      + * + * .google.type.Date expiration_date = 25; + */ + public Builder clearExpirationDate() { + bitField0_ = (bitField0_ & ~0x02000000); + expirationDate_ = null; + if (expirationDateBuilder_ != null) { + expirationDateBuilder_.dispose(); + expirationDateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Expiration date for the product, specified on insertion.
      +     * 
      + * + * .google.type.Date expiration_date = 25; + */ + public com.google.type.Date.Builder getExpirationDateBuilder() { + bitField0_ |= 0x02000000; + onChanged(); + return getExpirationDateFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Expiration date for the product, specified on insertion.
      +     * 
      + * + * .google.type.Date expiration_date = 25; + */ + public com.google.type.DateOrBuilder getExpirationDateOrBuilder() { + if (expirationDateBuilder_ != null) { + return expirationDateBuilder_.getMessageOrBuilder(); + } else { + return expirationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : expirationDate_; + } + } + + /** + * + * + *
      +     * Expiration date for the product, specified on insertion.
      +     * 
      + * + * .google.type.Date expiration_date = 25; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getExpirationDateFieldBuilder() { + if (expirationDateBuilder_ == null) { + expirationDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getExpirationDate(), getParentForChildren(), isClean()); + expirationDate_ = null; + } + return expirationDateBuilder_; + } + + private int aggregatedReportingContextStatus_ = 0; + + /** + * + * + *
      +     * Aggregated status.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ProductView.AggregatedReportingContextStatus aggregated_reporting_context_status = 26; + * + * + * @return Whether the aggregatedReportingContextStatus field is set. + */ + @java.lang.Override + public boolean hasAggregatedReportingContextStatus() { + return ((bitField0_ & 0x04000000) != 0); + } + + /** + * + * + *
      +     * Aggregated status.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ProductView.AggregatedReportingContextStatus aggregated_reporting_context_status = 26; + * + * + * @return The enum numeric value on the wire for aggregatedReportingContextStatus. + */ + @java.lang.Override + public int getAggregatedReportingContextStatusValue() { + return aggregatedReportingContextStatus_; + } + + /** + * + * + *
      +     * Aggregated status.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ProductView.AggregatedReportingContextStatus aggregated_reporting_context_status = 26; + * + * + * @param value The enum numeric value on the wire for aggregatedReportingContextStatus to set. + * @return This builder for chaining. + */ + public Builder setAggregatedReportingContextStatusValue(int value) { + aggregatedReportingContextStatus_ = value; + bitField0_ |= 0x04000000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Aggregated status.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ProductView.AggregatedReportingContextStatus aggregated_reporting_context_status = 26; + * + * + * @return The aggregatedReportingContextStatus. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ProductView.AggregatedReportingContextStatus + getAggregatedReportingContextStatus() { + com.google.shopping.merchant.reports.v1alpha.ProductView.AggregatedReportingContextStatus + result = + com.google.shopping.merchant.reports.v1alpha.ProductView + .AggregatedReportingContextStatus.forNumber(aggregatedReportingContextStatus_); + return result == null + ? com.google.shopping.merchant.reports.v1alpha.ProductView + .AggregatedReportingContextStatus.UNRECOGNIZED + : result; + } + + /** + * + * + *
      +     * Aggregated status.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ProductView.AggregatedReportingContextStatus aggregated_reporting_context_status = 26; + * + * + * @param value The aggregatedReportingContextStatus to set. + * @return This builder for chaining. + */ + public Builder setAggregatedReportingContextStatus( + com.google.shopping.merchant.reports.v1alpha.ProductView.AggregatedReportingContextStatus + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x04000000; + aggregatedReportingContextStatus_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Aggregated status.
      +     * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ProductView.AggregatedReportingContextStatus aggregated_reporting_context_status = 26; + * + * + * @return This builder for chaining. + */ + public Builder clearAggregatedReportingContextStatus() { + bitField0_ = (bitField0_ & ~0x04000000); + aggregatedReportingContextStatus_ = 0; + onChanged(); + return this; + } + + private java.util.List + itemIssues_ = java.util.Collections.emptyList(); + + private void ensureItemIssuesIsMutable() { + if (!((bitField0_ & 0x08000000) != 0)) { + itemIssues_ = + new java.util.ArrayList< + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue>(itemIssues_); + bitField0_ |= 0x08000000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue, + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.Builder, + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssueOrBuilder> + itemIssuesBuilder_; + + /** + * + * + *
      +     * List of item issues for the product.
      +     *
      +     * **This field cannot be used for sorting the results.**
      +     *
      +     * **Only selected attributes of this field (for example,
      +     * `item_issues.severity.aggregated_severity`) can be used for filtering the
      +     * results.**
      +     * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue item_issues = 27; + * + */ + public java.util.List + getItemIssuesList() { + if (itemIssuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(itemIssues_); + } else { + return itemIssuesBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * List of item issues for the product.
      +     *
      +     * **This field cannot be used for sorting the results.**
      +     *
      +     * **Only selected attributes of this field (for example,
      +     * `item_issues.severity.aggregated_severity`) can be used for filtering the
      +     * results.**
      +     * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue item_issues = 27; + * + */ + public int getItemIssuesCount() { + if (itemIssuesBuilder_ == null) { + return itemIssues_.size(); + } else { + return itemIssuesBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * List of item issues for the product.
      +     *
      +     * **This field cannot be used for sorting the results.**
      +     *
      +     * **Only selected attributes of this field (for example,
      +     * `item_issues.severity.aggregated_severity`) can be used for filtering the
      +     * results.**
      +     * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue item_issues = 27; + * + */ + public com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue getItemIssues( + int index) { + if (itemIssuesBuilder_ == null) { + return itemIssues_.get(index); + } else { + return itemIssuesBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * List of item issues for the product.
      +     *
      +     * **This field cannot be used for sorting the results.**
      +     *
      +     * **Only selected attributes of this field (for example,
      +     * `item_issues.severity.aggregated_severity`) can be used for filtering the
      +     * results.**
      +     * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue item_issues = 27; + * + */ + public Builder setItemIssues( + int index, com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue value) { + if (itemIssuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemIssuesIsMutable(); + itemIssues_.set(index, value); + onChanged(); + } else { + itemIssuesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * List of item issues for the product.
      +     *
      +     * **This field cannot be used for sorting the results.**
      +     *
      +     * **Only selected attributes of this field (for example,
      +     * `item_issues.severity.aggregated_severity`) can be used for filtering the
      +     * results.**
      +     * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue item_issues = 27; + * + */ + public Builder setItemIssues( + int index, + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.Builder + builderForValue) { + if (itemIssuesBuilder_ == null) { + ensureItemIssuesIsMutable(); + itemIssues_.set(index, builderForValue.build()); + onChanged(); + } else { + itemIssuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * List of item issues for the product.
      +     *
      +     * **This field cannot be used for sorting the results.**
      +     *
      +     * **Only selected attributes of this field (for example,
      +     * `item_issues.severity.aggregated_severity`) can be used for filtering the
      +     * results.**
      +     * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue item_issues = 27; + * + */ + public Builder addItemIssues( + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue value) { + if (itemIssuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemIssuesIsMutable(); + itemIssues_.add(value); + onChanged(); + } else { + itemIssuesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * List of item issues for the product.
      +     *
      +     * **This field cannot be used for sorting the results.**
      +     *
      +     * **Only selected attributes of this field (for example,
      +     * `item_issues.severity.aggregated_severity`) can be used for filtering the
      +     * results.**
      +     * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue item_issues = 27; + * + */ + public Builder addItemIssues( + int index, com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue value) { + if (itemIssuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemIssuesIsMutable(); + itemIssues_.add(index, value); + onChanged(); + } else { + itemIssuesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * List of item issues for the product.
      +     *
      +     * **This field cannot be used for sorting the results.**
      +     *
      +     * **Only selected attributes of this field (for example,
      +     * `item_issues.severity.aggregated_severity`) can be used for filtering the
      +     * results.**
      +     * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue item_issues = 27; + * + */ + public Builder addItemIssues( + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.Builder + builderForValue) { + if (itemIssuesBuilder_ == null) { + ensureItemIssuesIsMutable(); + itemIssues_.add(builderForValue.build()); + onChanged(); + } else { + itemIssuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * List of item issues for the product.
      +     *
      +     * **This field cannot be used for sorting the results.**
      +     *
      +     * **Only selected attributes of this field (for example,
      +     * `item_issues.severity.aggregated_severity`) can be used for filtering the
      +     * results.**
      +     * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue item_issues = 27; + * + */ + public Builder addItemIssues( + int index, + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.Builder + builderForValue) { + if (itemIssuesBuilder_ == null) { + ensureItemIssuesIsMutable(); + itemIssues_.add(index, builderForValue.build()); + onChanged(); + } else { + itemIssuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * List of item issues for the product.
      +     *
      +     * **This field cannot be used for sorting the results.**
      +     *
      +     * **Only selected attributes of this field (for example,
      +     * `item_issues.severity.aggregated_severity`) can be used for filtering the
      +     * results.**
      +     * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue item_issues = 27; + * + */ + public Builder addAllItemIssues( + java.lang.Iterable< + ? extends com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue> + values) { + if (itemIssuesBuilder_ == null) { + ensureItemIssuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, itemIssues_); + onChanged(); + } else { + itemIssuesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * List of item issues for the product.
      +     *
      +     * **This field cannot be used for sorting the results.**
      +     *
      +     * **Only selected attributes of this field (for example,
      +     * `item_issues.severity.aggregated_severity`) can be used for filtering the
      +     * results.**
      +     * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue item_issues = 27; + * + */ + public Builder clearItemIssues() { + if (itemIssuesBuilder_ == null) { + itemIssues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x08000000); + onChanged(); + } else { + itemIssuesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * List of item issues for the product.
      +     *
      +     * **This field cannot be used for sorting the results.**
      +     *
      +     * **Only selected attributes of this field (for example,
      +     * `item_issues.severity.aggregated_severity`) can be used for filtering the
      +     * results.**
      +     * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue item_issues = 27; + * + */ + public Builder removeItemIssues(int index) { + if (itemIssuesBuilder_ == null) { + ensureItemIssuesIsMutable(); + itemIssues_.remove(index); + onChanged(); + } else { + itemIssuesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * List of item issues for the product.
      +     *
      +     * **This field cannot be used for sorting the results.**
      +     *
      +     * **Only selected attributes of this field (for example,
      +     * `item_issues.severity.aggregated_severity`) can be used for filtering the
      +     * results.**
      +     * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue item_issues = 27; + * + */ + public com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.Builder + getItemIssuesBuilder(int index) { + return getItemIssuesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * List of item issues for the product.
      +     *
      +     * **This field cannot be used for sorting the results.**
      +     *
      +     * **Only selected attributes of this field (for example,
      +     * `item_issues.severity.aggregated_severity`) can be used for filtering the
      +     * results.**
      +     * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue item_issues = 27; + * + */ + public com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssueOrBuilder + getItemIssuesOrBuilder(int index) { + if (itemIssuesBuilder_ == null) { + return itemIssues_.get(index); + } else { + return itemIssuesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * List of item issues for the product.
      +     *
      +     * **This field cannot be used for sorting the results.**
      +     *
      +     * **Only selected attributes of this field (for example,
      +     * `item_issues.severity.aggregated_severity`) can be used for filtering the
      +     * results.**
      +     * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue item_issues = 27; + * + */ + public java.util.List< + ? extends com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssueOrBuilder> + getItemIssuesOrBuilderList() { + if (itemIssuesBuilder_ != null) { + return itemIssuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(itemIssues_); + } + } + + /** + * + * + *
      +     * List of item issues for the product.
      +     *
      +     * **This field cannot be used for sorting the results.**
      +     *
      +     * **Only selected attributes of this field (for example,
      +     * `item_issues.severity.aggregated_severity`) can be used for filtering the
      +     * results.**
      +     * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue item_issues = 27; + * + */ + public com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.Builder + addItemIssuesBuilder() { + return getItemIssuesFieldBuilder() + .addBuilder( + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .getDefaultInstance()); + } + + /** + * + * + *
      +     * List of item issues for the product.
      +     *
      +     * **This field cannot be used for sorting the results.**
      +     *
      +     * **Only selected attributes of this field (for example,
      +     * `item_issues.severity.aggregated_severity`) can be used for filtering the
      +     * results.**
      +     * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue item_issues = 27; + * + */ + public com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.Builder + addItemIssuesBuilder(int index) { + return getItemIssuesFieldBuilder() + .addBuilder( + index, + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue + .getDefaultInstance()); + } + + /** + * + * + *
      +     * List of item issues for the product.
      +     *
      +     * **This field cannot be used for sorting the results.**
      +     *
      +     * **Only selected attributes of this field (for example,
      +     * `item_issues.severity.aggregated_severity`) can be used for filtering the
      +     * results.**
      +     * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue item_issues = 27; + * + */ + public java.util.List< + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.Builder> + getItemIssuesBuilderList() { + return getItemIssuesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue, + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.Builder, + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssueOrBuilder> + getItemIssuesFieldBuilder() { + if (itemIssuesBuilder_ == null) { + itemIssuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue, + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.Builder, + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssueOrBuilder>( + itemIssues_, ((bitField0_ & 0x08000000) != 0), getParentForChildren(), isClean()); + itemIssues_ = null; + } + return itemIssuesBuilder_; + } + + private int clickPotential_ = 0; + + /** + * + * + *
      +     * Estimated performance potential compared to highest performing products of
      +     * the merchant.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.ProductView.ClickPotential click_potential = 29; + * + * + * @return The enum numeric value on the wire for clickPotential. + */ + @java.lang.Override + public int getClickPotentialValue() { + return clickPotential_; + } + + /** + * + * + *
      +     * Estimated performance potential compared to highest performing products of
      +     * the merchant.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.ProductView.ClickPotential click_potential = 29; + * + * + * @param value The enum numeric value on the wire for clickPotential to set. + * @return This builder for chaining. + */ + public Builder setClickPotentialValue(int value) { + clickPotential_ = value; + bitField0_ |= 0x10000000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Estimated performance potential compared to highest performing products of
      +     * the merchant.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.ProductView.ClickPotential click_potential = 29; + * + * + * @return The clickPotential. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ProductView.ClickPotential + getClickPotential() { + com.google.shopping.merchant.reports.v1alpha.ProductView.ClickPotential result = + com.google.shopping.merchant.reports.v1alpha.ProductView.ClickPotential.forNumber( + clickPotential_); + return result == null + ? com.google.shopping.merchant.reports.v1alpha.ProductView.ClickPotential.UNRECOGNIZED + : result; + } + + /** + * + * + *
      +     * Estimated performance potential compared to highest performing products of
      +     * the merchant.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.ProductView.ClickPotential click_potential = 29; + * + * + * @param value The clickPotential to set. + * @return This builder for chaining. + */ + public Builder setClickPotential( + com.google.shopping.merchant.reports.v1alpha.ProductView.ClickPotential value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x10000000; + clickPotential_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Estimated performance potential compared to highest performing products of
      +     * the merchant.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.ProductView.ClickPotential click_potential = 29; + * + * + * @return This builder for chaining. + */ + public Builder clearClickPotential() { + bitField0_ = (bitField0_ & ~0x10000000); + clickPotential_ = 0; + onChanged(); + return this; + } + + private long clickPotentialRank_; + + /** + * + * + *
      +     * Rank of the product based on its click potential. A product with
      +     * `click_potential_rank` 1 has the highest click potential among the
      +     * merchant's products that fulfill the search query conditions.
      +     * 
      + * + * optional int64 click_potential_rank = 30; + * + * @return Whether the clickPotentialRank field is set. + */ + @java.lang.Override + public boolean hasClickPotentialRank() { + return ((bitField0_ & 0x20000000) != 0); + } + + /** + * + * + *
      +     * Rank of the product based on its click potential. A product with
      +     * `click_potential_rank` 1 has the highest click potential among the
      +     * merchant's products that fulfill the search query conditions.
      +     * 
      + * + * optional int64 click_potential_rank = 30; + * + * @return The clickPotentialRank. + */ + @java.lang.Override + public long getClickPotentialRank() { + return clickPotentialRank_; + } + + /** + * + * + *
      +     * Rank of the product based on its click potential. A product with
      +     * `click_potential_rank` 1 has the highest click potential among the
      +     * merchant's products that fulfill the search query conditions.
      +     * 
      + * + * optional int64 click_potential_rank = 30; + * + * @param value The clickPotentialRank to set. + * @return This builder for chaining. + */ + public Builder setClickPotentialRank(long value) { + + clickPotentialRank_ = value; + bitField0_ |= 0x20000000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Rank of the product based on its click potential. A product with
      +     * `click_potential_rank` 1 has the highest click potential among the
      +     * merchant's products that fulfill the search query conditions.
      +     * 
      + * + * optional int64 click_potential_rank = 30; + * + * @return This builder for chaining. + */ + public Builder clearClickPotentialRank() { + bitField0_ = (bitField0_ & ~0x20000000); + clickPotentialRank_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.reports.v1alpha.ProductView) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.reports.v1alpha.ProductView) + private static final com.google.shopping.merchant.reports.v1alpha.ProductView DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.shopping.merchant.reports.v1alpha.ProductView(); + } + + public static com.google.shopping.merchant.reports.v1alpha.ProductView getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProductView parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ProductView getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/ProductViewOrBuilder.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/ProductViewOrBuilder.java new file mode 100644 index 000000000000..c708ca715632 --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/ProductViewOrBuilder.java @@ -0,0 +1,1316 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/reports/v1alpha/reports.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.reports.v1alpha; + +public interface ProductViewOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.reports.v1alpha.ProductView) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * REST ID of the product, in the form of
      +   * `channel~languageCode~feedLabel~offerId`. Merchant API methods that operate
      +   * on products take this as their `name` parameter.
      +   *
      +   * Required in the `SELECT` clause.
      +   * 
      + * + * optional string id = 1; + * + * @return Whether the id field is set. + */ + boolean hasId(); + + /** + * + * + *
      +   * REST ID of the product, in the form of
      +   * `channel~languageCode~feedLabel~offerId`. Merchant API methods that operate
      +   * on products take this as their `name` parameter.
      +   *
      +   * Required in the `SELECT` clause.
      +   * 
      + * + * optional string id = 1; + * + * @return The id. + */ + java.lang.String getId(); + + /** + * + * + *
      +   * REST ID of the product, in the form of
      +   * `channel~languageCode~feedLabel~offerId`. Merchant API methods that operate
      +   * on products take this as their `name` parameter.
      +   *
      +   * Required in the `SELECT` clause.
      +   * 
      + * + * optional string id = 1; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
      +   * Channel of the product. Can be `ONLINE` or `LOCAL`.
      +   * 
      + * + * optional .google.shopping.type.Channel.ChannelEnum channel = 28; + * + * @return Whether the channel field is set. + */ + boolean hasChannel(); + + /** + * + * + *
      +   * Channel of the product. Can be `ONLINE` or `LOCAL`.
      +   * 
      + * + * optional .google.shopping.type.Channel.ChannelEnum channel = 28; + * + * @return The enum numeric value on the wire for channel. + */ + int getChannelValue(); + + /** + * + * + *
      +   * Channel of the product. Can be `ONLINE` or `LOCAL`.
      +   * 
      + * + * optional .google.shopping.type.Channel.ChannelEnum channel = 28; + * + * @return The channel. + */ + com.google.shopping.type.Channel.ChannelEnum getChannel(); + + /** + * + * + *
      +   * Language code of the product in BCP 47 format.
      +   * 
      + * + * optional string language_code = 2; + * + * @return Whether the languageCode field is set. + */ + boolean hasLanguageCode(); + + /** + * + * + *
      +   * Language code of the product in BCP 47 format.
      +   * 
      + * + * optional string language_code = 2; + * + * @return The languageCode. + */ + java.lang.String getLanguageCode(); + + /** + * + * + *
      +   * Language code of the product in BCP 47 format.
      +   * 
      + * + * optional string language_code = 2; + * + * @return The bytes for languageCode. + */ + com.google.protobuf.ByteString getLanguageCodeBytes(); + + /** + * + * + *
      +   * Feed label of the product.
      +   * 
      + * + * optional string feed_label = 3; + * + * @return Whether the feedLabel field is set. + */ + boolean hasFeedLabel(); + + /** + * + * + *
      +   * Feed label of the product.
      +   * 
      + * + * optional string feed_label = 3; + * + * @return The feedLabel. + */ + java.lang.String getFeedLabel(); + + /** + * + * + *
      +   * Feed label of the product.
      +   * 
      + * + * optional string feed_label = 3; + * + * @return The bytes for feedLabel. + */ + com.google.protobuf.ByteString getFeedLabelBytes(); + + /** + * + * + *
      +   * Merchant-provided id of the product.
      +   * 
      + * + * optional string offer_id = 4; + * + * @return Whether the offerId field is set. + */ + boolean hasOfferId(); + + /** + * + * + *
      +   * Merchant-provided id of the product.
      +   * 
      + * + * optional string offer_id = 4; + * + * @return The offerId. + */ + java.lang.String getOfferId(); + + /** + * + * + *
      +   * Merchant-provided id of the product.
      +   * 
      + * + * optional string offer_id = 4; + * + * @return The bytes for offerId. + */ + com.google.protobuf.ByteString getOfferIdBytes(); + + /** + * + * + *
      +   * Title of the product.
      +   * 
      + * + * optional string title = 5; + * + * @return Whether the title field is set. + */ + boolean hasTitle(); + + /** + * + * + *
      +   * Title of the product.
      +   * 
      + * + * optional string title = 5; + * + * @return The title. + */ + java.lang.String getTitle(); + + /** + * + * + *
      +   * Title of the product.
      +   * 
      + * + * optional string title = 5; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
      +   * Brand of the product.
      +   * 
      + * + * optional string brand = 6; + * + * @return Whether the brand field is set. + */ + boolean hasBrand(); + + /** + * + * + *
      +   * Brand of the product.
      +   * 
      + * + * optional string brand = 6; + * + * @return The brand. + */ + java.lang.String getBrand(); + + /** + * + * + *
      +   * Brand of the product.
      +   * 
      + * + * optional string brand = 6; + * + * @return The bytes for brand. + */ + com.google.protobuf.ByteString getBrandBytes(); + + /** + * + * + *
      +   * Product category (1st level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l1 = 7; + * + * @return Whether the categoryL1 field is set. + */ + boolean hasCategoryL1(); + + /** + * + * + *
      +   * Product category (1st level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l1 = 7; + * + * @return The categoryL1. + */ + java.lang.String getCategoryL1(); + + /** + * + * + *
      +   * Product category (1st level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l1 = 7; + * + * @return The bytes for categoryL1. + */ + com.google.protobuf.ByteString getCategoryL1Bytes(); + + /** + * + * + *
      +   * Product category (2nd level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l2 = 8; + * + * @return Whether the categoryL2 field is set. + */ + boolean hasCategoryL2(); + + /** + * + * + *
      +   * Product category (2nd level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l2 = 8; + * + * @return The categoryL2. + */ + java.lang.String getCategoryL2(); + + /** + * + * + *
      +   * Product category (2nd level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l2 = 8; + * + * @return The bytes for categoryL2. + */ + com.google.protobuf.ByteString getCategoryL2Bytes(); + + /** + * + * + *
      +   * Product category (3rd level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l3 = 9; + * + * @return Whether the categoryL3 field is set. + */ + boolean hasCategoryL3(); + + /** + * + * + *
      +   * Product category (3rd level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l3 = 9; + * + * @return The categoryL3. + */ + java.lang.String getCategoryL3(); + + /** + * + * + *
      +   * Product category (3rd level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l3 = 9; + * + * @return The bytes for categoryL3. + */ + com.google.protobuf.ByteString getCategoryL3Bytes(); + + /** + * + * + *
      +   * Product category (4th level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l4 = 10; + * + * @return Whether the categoryL4 field is set. + */ + boolean hasCategoryL4(); + + /** + * + * + *
      +   * Product category (4th level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l4 = 10; + * + * @return The categoryL4. + */ + java.lang.String getCategoryL4(); + + /** + * + * + *
      +   * Product category (4th level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l4 = 10; + * + * @return The bytes for categoryL4. + */ + com.google.protobuf.ByteString getCategoryL4Bytes(); + + /** + * + * + *
      +   * Product category (5th level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l5 = 11; + * + * @return Whether the categoryL5 field is set. + */ + boolean hasCategoryL5(); + + /** + * + * + *
      +   * Product category (5th level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l5 = 11; + * + * @return The categoryL5. + */ + java.lang.String getCategoryL5(); + + /** + * + * + *
      +   * Product category (5th level) in [Google's product
      +   * taxonomy](https://support.google.com/merchants/answer/6324436).
      +   * 
      + * + * optional string category_l5 = 11; + * + * @return The bytes for categoryL5. + */ + com.google.protobuf.ByteString getCategoryL5Bytes(); + + /** + * + * + *
      +   * Product type (1st level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l1 = 12; + * + * @return Whether the productTypeL1 field is set. + */ + boolean hasProductTypeL1(); + + /** + * + * + *
      +   * Product type (1st level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l1 = 12; + * + * @return The productTypeL1. + */ + java.lang.String getProductTypeL1(); + + /** + * + * + *
      +   * Product type (1st level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l1 = 12; + * + * @return The bytes for productTypeL1. + */ + com.google.protobuf.ByteString getProductTypeL1Bytes(); + + /** + * + * + *
      +   * Product type (2nd level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l2 = 13; + * + * @return Whether the productTypeL2 field is set. + */ + boolean hasProductTypeL2(); + + /** + * + * + *
      +   * Product type (2nd level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l2 = 13; + * + * @return The productTypeL2. + */ + java.lang.String getProductTypeL2(); + + /** + * + * + *
      +   * Product type (2nd level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l2 = 13; + * + * @return The bytes for productTypeL2. + */ + com.google.protobuf.ByteString getProductTypeL2Bytes(); + + /** + * + * + *
      +   * Product type (3rd level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l3 = 14; + * + * @return Whether the productTypeL3 field is set. + */ + boolean hasProductTypeL3(); + + /** + * + * + *
      +   * Product type (3rd level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l3 = 14; + * + * @return The productTypeL3. + */ + java.lang.String getProductTypeL3(); + + /** + * + * + *
      +   * Product type (3rd level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l3 = 14; + * + * @return The bytes for productTypeL3. + */ + com.google.protobuf.ByteString getProductTypeL3Bytes(); + + /** + * + * + *
      +   * Product type (4th level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l4 = 15; + * + * @return Whether the productTypeL4 field is set. + */ + boolean hasProductTypeL4(); + + /** + * + * + *
      +   * Product type (4th level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l4 = 15; + * + * @return The productTypeL4. + */ + java.lang.String getProductTypeL4(); + + /** + * + * + *
      +   * Product type (4th level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l4 = 15; + * + * @return The bytes for productTypeL4. + */ + com.google.protobuf.ByteString getProductTypeL4Bytes(); + + /** + * + * + *
      +   * Product type (5th level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l5 = 16; + * + * @return Whether the productTypeL5 field is set. + */ + boolean hasProductTypeL5(); + + /** + * + * + *
      +   * Product type (5th level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l5 = 16; + * + * @return The productTypeL5. + */ + java.lang.String getProductTypeL5(); + + /** + * + * + *
      +   * Product type (5th level) in merchant's own [product
      +   * taxonomy](https://support.google.com/merchants/answer/6324406).
      +   * 
      + * + * optional string product_type_l5 = 16; + * + * @return The bytes for productTypeL5. + */ + com.google.protobuf.ByteString getProductTypeL5Bytes(); + + /** + * + * + *
      +   * Product price. Absent if the information about the price of the product is
      +   * not available.
      +   * 
      + * + * .google.shopping.type.Price price = 17; + * + * @return Whether the price field is set. + */ + boolean hasPrice(); + + /** + * + * + *
      +   * Product price. Absent if the information about the price of the product is
      +   * not available.
      +   * 
      + * + * .google.shopping.type.Price price = 17; + * + * @return The price. + */ + com.google.shopping.type.Price getPrice(); + + /** + * + * + *
      +   * Product price. Absent if the information about the price of the product is
      +   * not available.
      +   * 
      + * + * .google.shopping.type.Price price = 17; + */ + com.google.shopping.type.PriceOrBuilder getPriceOrBuilder(); + + /** + * + * + *
      +   * [Condition](https://support.google.com/merchants/answer/6324469) of the
      +   * product.
      +   * 
      + * + * optional string condition = 18; + * + * @return Whether the condition field is set. + */ + boolean hasCondition(); + + /** + * + * + *
      +   * [Condition](https://support.google.com/merchants/answer/6324469) of the
      +   * product.
      +   * 
      + * + * optional string condition = 18; + * + * @return The condition. + */ + java.lang.String getCondition(); + + /** + * + * + *
      +   * [Condition](https://support.google.com/merchants/answer/6324469) of the
      +   * product.
      +   * 
      + * + * optional string condition = 18; + * + * @return The bytes for condition. + */ + com.google.protobuf.ByteString getConditionBytes(); + + /** + * + * + *
      +   * [Availability](https://support.google.com/merchants/answer/6324448) of the
      +   * product.
      +   * 
      + * + * optional string availability = 19; + * + * @return Whether the availability field is set. + */ + boolean hasAvailability(); + + /** + * + * + *
      +   * [Availability](https://support.google.com/merchants/answer/6324448) of the
      +   * product.
      +   * 
      + * + * optional string availability = 19; + * + * @return The availability. + */ + java.lang.String getAvailability(); + + /** + * + * + *
      +   * [Availability](https://support.google.com/merchants/answer/6324448) of the
      +   * product.
      +   * 
      + * + * optional string availability = 19; + * + * @return The bytes for availability. + */ + com.google.protobuf.ByteString getAvailabilityBytes(); + + /** + * + * + *
      +   * Normalized [shipping
      +   * label](https://support.google.com/merchants/answer/6324504) specified in
      +   * the data source.
      +   * 
      + * + * optional string shipping_label = 20; + * + * @return Whether the shippingLabel field is set. + */ + boolean hasShippingLabel(); + + /** + * + * + *
      +   * Normalized [shipping
      +   * label](https://support.google.com/merchants/answer/6324504) specified in
      +   * the data source.
      +   * 
      + * + * optional string shipping_label = 20; + * + * @return The shippingLabel. + */ + java.lang.String getShippingLabel(); + + /** + * + * + *
      +   * Normalized [shipping
      +   * label](https://support.google.com/merchants/answer/6324504) specified in
      +   * the data source.
      +   * 
      + * + * optional string shipping_label = 20; + * + * @return The bytes for shippingLabel. + */ + com.google.protobuf.ByteString getShippingLabelBytes(); + + /** + * + * + *
      +   * List of Global Trade Item Numbers (GTINs) of the product.
      +   * 
      + * + * repeated string gtin = 21; + * + * @return A list containing the gtin. + */ + java.util.List getGtinList(); + + /** + * + * + *
      +   * List of Global Trade Item Numbers (GTINs) of the product.
      +   * 
      + * + * repeated string gtin = 21; + * + * @return The count of gtin. + */ + int getGtinCount(); + + /** + * + * + *
      +   * List of Global Trade Item Numbers (GTINs) of the product.
      +   * 
      + * + * repeated string gtin = 21; + * + * @param index The index of the element to return. + * @return The gtin at the given index. + */ + java.lang.String getGtin(int index); + + /** + * + * + *
      +   * List of Global Trade Item Numbers (GTINs) of the product.
      +   * 
      + * + * repeated string gtin = 21; + * + * @param index The index of the value to return. + * @return The bytes of the gtin at the given index. + */ + com.google.protobuf.ByteString getGtinBytes(int index); + + /** + * + * + *
      +   * Item group id provided by the merchant for grouping variants together.
      +   * 
      + * + * optional string item_group_id = 22; + * + * @return Whether the itemGroupId field is set. + */ + boolean hasItemGroupId(); + + /** + * + * + *
      +   * Item group id provided by the merchant for grouping variants together.
      +   * 
      + * + * optional string item_group_id = 22; + * + * @return The itemGroupId. + */ + java.lang.String getItemGroupId(); + + /** + * + * + *
      +   * Item group id provided by the merchant for grouping variants together.
      +   * 
      + * + * optional string item_group_id = 22; + * + * @return The bytes for itemGroupId. + */ + com.google.protobuf.ByteString getItemGroupIdBytes(); + + /** + * + * + *
      +   * Link to the processed image of the product, hosted on the Google
      +   * infrastructure.
      +   * 
      + * + * optional string thumbnail_link = 23; + * + * @return Whether the thumbnailLink field is set. + */ + boolean hasThumbnailLink(); + + /** + * + * + *
      +   * Link to the processed image of the product, hosted on the Google
      +   * infrastructure.
      +   * 
      + * + * optional string thumbnail_link = 23; + * + * @return The thumbnailLink. + */ + java.lang.String getThumbnailLink(); + + /** + * + * + *
      +   * Link to the processed image of the product, hosted on the Google
      +   * infrastructure.
      +   * 
      + * + * optional string thumbnail_link = 23; + * + * @return The bytes for thumbnailLink. + */ + com.google.protobuf.ByteString getThumbnailLinkBytes(); + + /** + * + * + *
      +   * The time the merchant created the product in timestamp seconds.
      +   * 
      + * + * .google.protobuf.Timestamp creation_time = 24; + * + * @return Whether the creationTime field is set. + */ + boolean hasCreationTime(); + + /** + * + * + *
      +   * The time the merchant created the product in timestamp seconds.
      +   * 
      + * + * .google.protobuf.Timestamp creation_time = 24; + * + * @return The creationTime. + */ + com.google.protobuf.Timestamp getCreationTime(); + + /** + * + * + *
      +   * The time the merchant created the product in timestamp seconds.
      +   * 
      + * + * .google.protobuf.Timestamp creation_time = 24; + */ + com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder(); + + /** + * + * + *
      +   * Expiration date for the product, specified on insertion.
      +   * 
      + * + * .google.type.Date expiration_date = 25; + * + * @return Whether the expirationDate field is set. + */ + boolean hasExpirationDate(); + + /** + * + * + *
      +   * Expiration date for the product, specified on insertion.
      +   * 
      + * + * .google.type.Date expiration_date = 25; + * + * @return The expirationDate. + */ + com.google.type.Date getExpirationDate(); + + /** + * + * + *
      +   * Expiration date for the product, specified on insertion.
      +   * 
      + * + * .google.type.Date expiration_date = 25; + */ + com.google.type.DateOrBuilder getExpirationDateOrBuilder(); + + /** + * + * + *
      +   * Aggregated status.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ProductView.AggregatedReportingContextStatus aggregated_reporting_context_status = 26; + * + * + * @return Whether the aggregatedReportingContextStatus field is set. + */ + boolean hasAggregatedReportingContextStatus(); + + /** + * + * + *
      +   * Aggregated status.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ProductView.AggregatedReportingContextStatus aggregated_reporting_context_status = 26; + * + * + * @return The enum numeric value on the wire for aggregatedReportingContextStatus. + */ + int getAggregatedReportingContextStatusValue(); + + /** + * + * + *
      +   * Aggregated status.
      +   * 
      + * + * + * optional .google.shopping.merchant.reports.v1alpha.ProductView.AggregatedReportingContextStatus aggregated_reporting_context_status = 26; + * + * + * @return The aggregatedReportingContextStatus. + */ + com.google.shopping.merchant.reports.v1alpha.ProductView.AggregatedReportingContextStatus + getAggregatedReportingContextStatus(); + + /** + * + * + *
      +   * List of item issues for the product.
      +   *
      +   * **This field cannot be used for sorting the results.**
      +   *
      +   * **Only selected attributes of this field (for example,
      +   * `item_issues.severity.aggregated_severity`) can be used for filtering the
      +   * results.**
      +   * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue item_issues = 27; + * + */ + java.util.List + getItemIssuesList(); + + /** + * + * + *
      +   * List of item issues for the product.
      +   *
      +   * **This field cannot be used for sorting the results.**
      +   *
      +   * **Only selected attributes of this field (for example,
      +   * `item_issues.severity.aggregated_severity`) can be used for filtering the
      +   * results.**
      +   * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue item_issues = 27; + * + */ + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue getItemIssues(int index); + + /** + * + * + *
      +   * List of item issues for the product.
      +   *
      +   * **This field cannot be used for sorting the results.**
      +   *
      +   * **Only selected attributes of this field (for example,
      +   * `item_issues.severity.aggregated_severity`) can be used for filtering the
      +   * results.**
      +   * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue item_issues = 27; + * + */ + int getItemIssuesCount(); + + /** + * + * + *
      +   * List of item issues for the product.
      +   *
      +   * **This field cannot be used for sorting the results.**
      +   *
      +   * **Only selected attributes of this field (for example,
      +   * `item_issues.severity.aggregated_severity`) can be used for filtering the
      +   * results.**
      +   * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue item_issues = 27; + * + */ + java.util.List< + ? extends com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssueOrBuilder> + getItemIssuesOrBuilderList(); + + /** + * + * + *
      +   * List of item issues for the product.
      +   *
      +   * **This field cannot be used for sorting the results.**
      +   *
      +   * **Only selected attributes of this field (for example,
      +   * `item_issues.severity.aggregated_severity`) can be used for filtering the
      +   * results.**
      +   * 
      + * + * + * repeated .google.shopping.merchant.reports.v1alpha.ProductView.ItemIssue item_issues = 27; + * + */ + com.google.shopping.merchant.reports.v1alpha.ProductView.ItemIssueOrBuilder + getItemIssuesOrBuilder(int index); + + /** + * + * + *
      +   * Estimated performance potential compared to highest performing products of
      +   * the merchant.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.ProductView.ClickPotential click_potential = 29; + * + * + * @return The enum numeric value on the wire for clickPotential. + */ + int getClickPotentialValue(); + + /** + * + * + *
      +   * Estimated performance potential compared to highest performing products of
      +   * the merchant.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.ProductView.ClickPotential click_potential = 29; + * + * + * @return The clickPotential. + */ + com.google.shopping.merchant.reports.v1alpha.ProductView.ClickPotential getClickPotential(); + + /** + * + * + *
      +   * Rank of the product based on its click potential. A product with
      +   * `click_potential_rank` 1 has the highest click potential among the
      +   * merchant's products that fulfill the search query conditions.
      +   * 
      + * + * optional int64 click_potential_rank = 30; + * + * @return Whether the clickPotentialRank field is set. + */ + boolean hasClickPotentialRank(); + + /** + * + * + *
      +   * Rank of the product based on its click potential. A product with
      +   * `click_potential_rank` 1 has the highest click potential among the
      +   * merchant's products that fulfill the search query conditions.
      +   * 
      + * + * optional int64 click_potential_rank = 30; + * + * @return The clickPotentialRank. + */ + long getClickPotentialRank(); +} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/RelativeDemand.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/RelativeDemand.java new file mode 100644 index 000000000000..c9ba6e4f2bf5 --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/RelativeDemand.java @@ -0,0 +1,679 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/reports/v1alpha/reports.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.reports.v1alpha; + +/** + * + * + *
      + * Relative demand of a product cluster or brand in the Best sellers report.
      + * 
      + * + * Protobuf type {@code google.shopping.merchant.reports.v1alpha.RelativeDemand} + */ +public final class RelativeDemand extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.reports.v1alpha.RelativeDemand) + RelativeDemandOrBuilder { + private static final long serialVersionUID = 0L; + + // Use RelativeDemand.newBuilder() to construct. + private RelativeDemand(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RelativeDemand() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RelativeDemand(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_RelativeDemand_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_RelativeDemand_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1alpha.RelativeDemand.class, + com.google.shopping.merchant.reports.v1alpha.RelativeDemand.Builder.class); + } + + /** + * + * + *
      +   * Relative demand values.
      +   * 
      + * + * Protobuf enum {@code + * google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum} + */ + public enum RelativeDemandEnum implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +     * Not specified.
      +     * 
      + * + * RELATIVE_DEMAND_ENUM_UNSPECIFIED = 0; + */ + RELATIVE_DEMAND_ENUM_UNSPECIFIED(0), + /** + * + * + *
      +     * Demand is 0-5% of the demand of the highest ranked product cluster or
      +     * brand.
      +     * 
      + * + * VERY_LOW = 10; + */ + VERY_LOW(10), + /** + * + * + *
      +     * Demand is 6-10% of the demand of the highest ranked product cluster or
      +     * brand.
      +     * 
      + * + * LOW = 20; + */ + LOW(20), + /** + * + * + *
      +     * Demand is 11-20% of the demand of the highest ranked product cluster or
      +     * brand.
      +     * 
      + * + * MEDIUM = 30; + */ + MEDIUM(30), + /** + * + * + *
      +     * Demand is 21-50% of the demand of the highest ranked product cluster or
      +     * brand.
      +     * 
      + * + * HIGH = 40; + */ + HIGH(40), + /** + * + * + *
      +     * Demand is 51-100% of the demand of the highest ranked product cluster or
      +     * brand.
      +     * 
      + * + * VERY_HIGH = 50; + */ + VERY_HIGH(50), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
      +     * Not specified.
      +     * 
      + * + * RELATIVE_DEMAND_ENUM_UNSPECIFIED = 0; + */ + public static final int RELATIVE_DEMAND_ENUM_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +     * Demand is 0-5% of the demand of the highest ranked product cluster or
      +     * brand.
      +     * 
      + * + * VERY_LOW = 10; + */ + public static final int VERY_LOW_VALUE = 10; + + /** + * + * + *
      +     * Demand is 6-10% of the demand of the highest ranked product cluster or
      +     * brand.
      +     * 
      + * + * LOW = 20; + */ + public static final int LOW_VALUE = 20; + + /** + * + * + *
      +     * Demand is 11-20% of the demand of the highest ranked product cluster or
      +     * brand.
      +     * 
      + * + * MEDIUM = 30; + */ + public static final int MEDIUM_VALUE = 30; + + /** + * + * + *
      +     * Demand is 21-50% of the demand of the highest ranked product cluster or
      +     * brand.
      +     * 
      + * + * HIGH = 40; + */ + public static final int HIGH_VALUE = 40; + + /** + * + * + *
      +     * Demand is 51-100% of the demand of the highest ranked product cluster or
      +     * brand.
      +     * 
      + * + * VERY_HIGH = 50; + */ + public static final int VERY_HIGH_VALUE = 50; + + 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 RelativeDemandEnum 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 RelativeDemandEnum forNumber(int value) { + switch (value) { + case 0: + return RELATIVE_DEMAND_ENUM_UNSPECIFIED; + case 10: + return VERY_LOW; + case 20: + return LOW; + case 30: + return MEDIUM; + case 40: + return HIGH; + case 50: + return VERY_HIGH; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RelativeDemandEnum findValueByNumber(int number) { + return RelativeDemandEnum.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.RelativeDemand.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final RelativeDemandEnum[] VALUES = values(); + + public static RelativeDemandEnum 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 RelativeDemandEnum(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnum) + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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.shopping.merchant.reports.v1alpha.RelativeDemand)) { + return super.equals(obj); + } + com.google.shopping.merchant.reports.v1alpha.RelativeDemand other = + (com.google.shopping.merchant.reports.v1alpha.RelativeDemand) 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.shopping.merchant.reports.v1alpha.RelativeDemand parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.RelativeDemand parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.RelativeDemand parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.RelativeDemand parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.RelativeDemand parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.RelativeDemand parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.RelativeDemand parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.RelativeDemand parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.RelativeDemand parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.RelativeDemand parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.RelativeDemand parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.RelativeDemand parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.shopping.merchant.reports.v1alpha.RelativeDemand prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Relative demand of a product cluster or brand in the Best sellers report.
      +   * 
      + * + * Protobuf type {@code google.shopping.merchant.reports.v1alpha.RelativeDemand} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.reports.v1alpha.RelativeDemand) + com.google.shopping.merchant.reports.v1alpha.RelativeDemandOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_RelativeDemand_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_RelativeDemand_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1alpha.RelativeDemand.class, + com.google.shopping.merchant.reports.v1alpha.RelativeDemand.Builder.class); + } + + // Construct using com.google.shopping.merchant.reports.v1alpha.RelativeDemand.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_RelativeDemand_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.RelativeDemand getDefaultInstanceForType() { + return com.google.shopping.merchant.reports.v1alpha.RelativeDemand.getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.RelativeDemand build() { + com.google.shopping.merchant.reports.v1alpha.RelativeDemand result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.RelativeDemand buildPartial() { + com.google.shopping.merchant.reports.v1alpha.RelativeDemand result = + new com.google.shopping.merchant.reports.v1alpha.RelativeDemand(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.shopping.merchant.reports.v1alpha.RelativeDemand) { + return mergeFrom((com.google.shopping.merchant.reports.v1alpha.RelativeDemand) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.shopping.merchant.reports.v1alpha.RelativeDemand other) { + if (other == com.google.shopping.merchant.reports.v1alpha.RelativeDemand.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.reports.v1alpha.RelativeDemand) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.reports.v1alpha.RelativeDemand) + private static final com.google.shopping.merchant.reports.v1alpha.RelativeDemand DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.shopping.merchant.reports.v1alpha.RelativeDemand(); + } + + public static com.google.shopping.merchant.reports.v1alpha.RelativeDemand getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RelativeDemand parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.RelativeDemand getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/RelativeDemandChangeType.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/RelativeDemandChangeType.java new file mode 100644 index 000000000000..33f6751a6dae --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/RelativeDemandChangeType.java @@ -0,0 +1,635 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/reports/v1alpha/reports.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.reports.v1alpha; + +/** + * + * + *
      + * Relative demand of a product cluster or brand in the Best sellers report
      + * compared to the previous time period.
      + * 
      + * + * Protobuf type {@code google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType} + */ +public final class RelativeDemandChangeType extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType) + RelativeDemandChangeTypeOrBuilder { + private static final long serialVersionUID = 0L; + + // Use RelativeDemandChangeType.newBuilder() to construct. + private RelativeDemandChangeType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RelativeDemandChangeType() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RelativeDemandChangeType(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_RelativeDemandChangeType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_RelativeDemandChangeType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType.class, + com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType.Builder.class); + } + + /** + * + * + *
      +   * Relative demand change type values.
      +   * 
      + * + * Protobuf enum {@code + * google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType.RelativeDemandChangeTypeEnum} + */ + public enum RelativeDemandChangeTypeEnum implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +     * Not specified.
      +     * 
      + * + * RELATIVE_DEMAND_CHANGE_TYPE_ENUM_UNSPECIFIED = 0; + */ + RELATIVE_DEMAND_CHANGE_TYPE_ENUM_UNSPECIFIED(0), + /** + * + * + *
      +     * Relative demand is lower than the previous time period.
      +     * 
      + * + * SINKER = 1; + */ + SINKER(1), + /** + * + * + *
      +     * Relative demand is equal to the previous time period.
      +     * 
      + * + * FLAT = 2; + */ + FLAT(2), + /** + * + * + *
      +     * Relative demand is higher than the previous time period.
      +     * 
      + * + * RISER = 3; + */ + RISER(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
      +     * Not specified.
      +     * 
      + * + * RELATIVE_DEMAND_CHANGE_TYPE_ENUM_UNSPECIFIED = 0; + */ + public static final int RELATIVE_DEMAND_CHANGE_TYPE_ENUM_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +     * Relative demand is lower than the previous time period.
      +     * 
      + * + * SINKER = 1; + */ + public static final int SINKER_VALUE = 1; + + /** + * + * + *
      +     * Relative demand is equal to the previous time period.
      +     * 
      + * + * FLAT = 2; + */ + public static final int FLAT_VALUE = 2; + + /** + * + * + *
      +     * Relative demand is higher than the previous time period.
      +     * 
      + * + * RISER = 3; + */ + public static final int RISER_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static RelativeDemandChangeTypeEnum 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 RelativeDemandChangeTypeEnum forNumber(int value) { + switch (value) { + case 0: + return RELATIVE_DEMAND_CHANGE_TYPE_ENUM_UNSPECIFIED; + case 1: + return SINKER; + case 2: + return FLAT; + case 3: + return RISER; + 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 RelativeDemandChangeTypeEnum findValueByNumber(int number) { + return RelativeDemandChangeTypeEnum.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final RelativeDemandChangeTypeEnum[] VALUES = values(); + + public static RelativeDemandChangeTypeEnum 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 RelativeDemandChangeTypeEnum(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType.RelativeDemandChangeTypeEnum) + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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.shopping.merchant.reports.v1alpha.RelativeDemandChangeType)) { + return super.equals(obj); + } + com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType other = + (com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType) 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.shopping.merchant.reports.v1alpha.RelativeDemandChangeType parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Relative demand of a product cluster or brand in the Best sellers report
      +   * compared to the previous time period.
      +   * 
      + * + * Protobuf type {@code google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType) + com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeTypeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_RelativeDemandChangeType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_RelativeDemandChangeType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType.class, + com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType.Builder.class); + } + + // Construct using + // com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_RelativeDemandChangeType_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType + getDefaultInstanceForType() { + return com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType build() { + com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType buildPartial() { + com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType result = + new com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType) { + return mergeFrom( + (com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType other) { + if (other + == com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType + .getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType) + private static final com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType(); + } + + public static com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RelativeDemandChangeType parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/RelativeDemandChangeTypeOrBuilder.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/RelativeDemandChangeTypeOrBuilder.java new file mode 100644 index 000000000000..6de216466d48 --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/RelativeDemandChangeTypeOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/reports/v1alpha/reports.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.reports.v1alpha; + +public interface RelativeDemandChangeTypeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.reports.v1alpha.RelativeDemandChangeType) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/RelativeDemandOrBuilder.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/RelativeDemandOrBuilder.java new file mode 100644 index 000000000000..0675d150dd96 --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/RelativeDemandOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/reports/v1alpha/reports.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.reports.v1alpha; + +public interface RelativeDemandOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.reports.v1alpha.RelativeDemand) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/ReportGranularity.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/ReportGranularity.java new file mode 100644 index 000000000000..d797c0bcb24b --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/ReportGranularity.java @@ -0,0 +1,607 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/reports/v1alpha/reports.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.reports.v1alpha; + +/** + * + * + *
      + * Granularity of the Best sellers report. Best sellers reports are computed
      + * over a week and a month timeframe.
      + * 
      + * + * Protobuf type {@code google.shopping.merchant.reports.v1alpha.ReportGranularity} + */ +public final class ReportGranularity extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.reports.v1alpha.ReportGranularity) + ReportGranularityOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReportGranularity.newBuilder() to construct. + private ReportGranularity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReportGranularity() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReportGranularity(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_ReportGranularity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_ReportGranularity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1alpha.ReportGranularity.class, + com.google.shopping.merchant.reports.v1alpha.ReportGranularity.Builder.class); + } + + /** + * + * + *
      +   * Report granularity values.
      +   * 
      + * + * Protobuf enum {@code + * google.shopping.merchant.reports.v1alpha.ReportGranularity.ReportGranularityEnum} + */ + public enum ReportGranularityEnum implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +     * Not specified.
      +     * 
      + * + * REPORT_GRANULARITY_ENUM_UNSPECIFIED = 0; + */ + REPORT_GRANULARITY_ENUM_UNSPECIFIED(0), + /** + * + * + *
      +     * Report is computed over a week timeframe.
      +     * 
      + * + * WEEKLY = 1; + */ + WEEKLY(1), + /** + * + * + *
      +     * Report is computed over a month timeframe.
      +     * 
      + * + * MONTHLY = 2; + */ + MONTHLY(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
      +     * Not specified.
      +     * 
      + * + * REPORT_GRANULARITY_ENUM_UNSPECIFIED = 0; + */ + public static final int REPORT_GRANULARITY_ENUM_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +     * Report is computed over a week timeframe.
      +     * 
      + * + * WEEKLY = 1; + */ + public static final int WEEKLY_VALUE = 1; + + /** + * + * + *
      +     * Report is computed over a month timeframe.
      +     * 
      + * + * MONTHLY = 2; + */ + public static final int MONTHLY_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 ReportGranularityEnum 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 ReportGranularityEnum forNumber(int value) { + switch (value) { + case 0: + return REPORT_GRANULARITY_ENUM_UNSPECIFIED; + case 1: + return WEEKLY; + case 2: + return MONTHLY; + 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 ReportGranularityEnum findValueByNumber(int number) { + return ReportGranularityEnum.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportGranularity.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ReportGranularityEnum[] VALUES = values(); + + public static ReportGranularityEnum 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 ReportGranularityEnum(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.shopping.merchant.reports.v1alpha.ReportGranularity.ReportGranularityEnum) + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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.shopping.merchant.reports.v1alpha.ReportGranularity)) { + return super.equals(obj); + } + com.google.shopping.merchant.reports.v1alpha.ReportGranularity other = + (com.google.shopping.merchant.reports.v1alpha.ReportGranularity) 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.shopping.merchant.reports.v1alpha.ReportGranularity parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.ReportGranularity parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.ReportGranularity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.ReportGranularity parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.ReportGranularity parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.ReportGranularity parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.ReportGranularity parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.ReportGranularity parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.ReportGranularity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.ReportGranularity parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.ReportGranularity parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.ReportGranularity parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.shopping.merchant.reports.v1alpha.ReportGranularity prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Granularity of the Best sellers report. Best sellers reports are computed
      +   * over a week and a month timeframe.
      +   * 
      + * + * Protobuf type {@code google.shopping.merchant.reports.v1alpha.ReportGranularity} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.reports.v1alpha.ReportGranularity) + com.google.shopping.merchant.reports.v1alpha.ReportGranularityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_ReportGranularity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_ReportGranularity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1alpha.ReportGranularity.class, + com.google.shopping.merchant.reports.v1alpha.ReportGranularity.Builder.class); + } + + // Construct using com.google.shopping.merchant.reports.v1alpha.ReportGranularity.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_ReportGranularity_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ReportGranularity + getDefaultInstanceForType() { + return com.google.shopping.merchant.reports.v1alpha.ReportGranularity.getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ReportGranularity build() { + com.google.shopping.merchant.reports.v1alpha.ReportGranularity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ReportGranularity buildPartial() { + com.google.shopping.merchant.reports.v1alpha.ReportGranularity result = + new com.google.shopping.merchant.reports.v1alpha.ReportGranularity(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.shopping.merchant.reports.v1alpha.ReportGranularity) { + return mergeFrom((com.google.shopping.merchant.reports.v1alpha.ReportGranularity) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.shopping.merchant.reports.v1alpha.ReportGranularity other) { + if (other + == com.google.shopping.merchant.reports.v1alpha.ReportGranularity.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.reports.v1alpha.ReportGranularity) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.reports.v1alpha.ReportGranularity) + private static final com.google.shopping.merchant.reports.v1alpha.ReportGranularity + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.shopping.merchant.reports.v1alpha.ReportGranularity(); + } + + public static com.google.shopping.merchant.reports.v1alpha.ReportGranularity + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReportGranularity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ReportGranularity + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/ReportGranularityOrBuilder.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/ReportGranularityOrBuilder.java new file mode 100644 index 000000000000..fd034c2fcb76 --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/ReportGranularityOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/reports/v1alpha/reports.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.reports.v1alpha; + +public interface ReportGranularityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.reports.v1alpha.ReportGranularity) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/ReportRow.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/ReportRow.java new file mode 100644 index 000000000000..1122f2f55770 --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/ReportRow.java @@ -0,0 +1,4742 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/reports/v1alpha/reports.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.reports.v1alpha; + +/** + * + * + *
      + * Result row returned from the search query.
      + *
      + * Only the message corresponding to the queried table is populated in the
      + * response. Within the populated message, only the fields requested explicitly
      + * in the query are populated.
      + * 
      + * + * Protobuf type {@code google.shopping.merchant.reports.v1alpha.ReportRow} + */ +public final class ReportRow extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.reports.v1alpha.ReportRow) + ReportRowOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReportRow.newBuilder() to construct. + private ReportRow(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReportRow() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReportRow(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_ReportRow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_ReportRow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1alpha.ReportRow.class, + com.google.shopping.merchant.reports.v1alpha.ReportRow.Builder.class); + } + + private int bitField0_; + public static final int PRODUCT_PERFORMANCE_VIEW_FIELD_NUMBER = 1; + private com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView + productPerformanceView_; + + /** + * + * + *
      +   * Fields available for query in `product_performance_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.ProductPerformanceView product_performance_view = 1; + * + * + * @return Whether the productPerformanceView field is set. + */ + @java.lang.Override + public boolean hasProductPerformanceView() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Fields available for query in `product_performance_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.ProductPerformanceView product_performance_view = 1; + * + * + * @return The productPerformanceView. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView + getProductPerformanceView() { + return productPerformanceView_ == null + ? com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView.getDefaultInstance() + : productPerformanceView_; + } + + /** + * + * + *
      +   * Fields available for query in `product_performance_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.ProductPerformanceView product_performance_view = 1; + * + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ProductPerformanceViewOrBuilder + getProductPerformanceViewOrBuilder() { + return productPerformanceView_ == null + ? com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView.getDefaultInstance() + : productPerformanceView_; + } + + public static final int NON_PRODUCT_PERFORMANCE_VIEW_FIELD_NUMBER = 7; + private com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView + nonProductPerformanceView_; + + /** + * + * + *
      +   * Fields available for query in `non_product_performance_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.NonProductPerformanceView non_product_performance_view = 7; + * + * + * @return Whether the nonProductPerformanceView field is set. + */ + @java.lang.Override + public boolean hasNonProductPerformanceView() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * Fields available for query in `non_product_performance_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.NonProductPerformanceView non_product_performance_view = 7; + * + * + * @return The nonProductPerformanceView. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView + getNonProductPerformanceView() { + return nonProductPerformanceView_ == null + ? com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView + .getDefaultInstance() + : nonProductPerformanceView_; + } + + /** + * + * + *
      +   * Fields available for query in `non_product_performance_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.NonProductPerformanceView non_product_performance_view = 7; + * + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceViewOrBuilder + getNonProductPerformanceViewOrBuilder() { + return nonProductPerformanceView_ == null + ? com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView + .getDefaultInstance() + : nonProductPerformanceView_; + } + + public static final int PRODUCT_VIEW_FIELD_NUMBER = 2; + private com.google.shopping.merchant.reports.v1alpha.ProductView productView_; + + /** + * + * + *
      +   * Fields available for query in `product_view` table.
      +   * 
      + * + * .google.shopping.merchant.reports.v1alpha.ProductView product_view = 2; + * + * @return Whether the productView field is set. + */ + @java.lang.Override + public boolean hasProductView() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +   * Fields available for query in `product_view` table.
      +   * 
      + * + * .google.shopping.merchant.reports.v1alpha.ProductView product_view = 2; + * + * @return The productView. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ProductView getProductView() { + return productView_ == null + ? com.google.shopping.merchant.reports.v1alpha.ProductView.getDefaultInstance() + : productView_; + } + + /** + * + * + *
      +   * Fields available for query in `product_view` table.
      +   * 
      + * + * .google.shopping.merchant.reports.v1alpha.ProductView product_view = 2; + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ProductViewOrBuilder + getProductViewOrBuilder() { + return productView_ == null + ? com.google.shopping.merchant.reports.v1alpha.ProductView.getDefaultInstance() + : productView_; + } + + public static final int PRICE_COMPETITIVENESS_PRODUCT_VIEW_FIELD_NUMBER = 3; + private com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView + priceCompetitivenessProductView_; + + /** + * + * + *
      +   * Fields available for query in `price_competitiveness_product_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView price_competitiveness_product_view = 3; + * + * + * @return Whether the priceCompetitivenessProductView field is set. + */ + @java.lang.Override + public boolean hasPriceCompetitivenessProductView() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +   * Fields available for query in `price_competitiveness_product_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView price_competitiveness_product_view = 3; + * + * + * @return The priceCompetitivenessProductView. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView + getPriceCompetitivenessProductView() { + return priceCompetitivenessProductView_ == null + ? com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView + .getDefaultInstance() + : priceCompetitivenessProductView_; + } + + /** + * + * + *
      +   * Fields available for query in `price_competitiveness_product_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView price_competitiveness_product_view = 3; + * + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductViewOrBuilder + getPriceCompetitivenessProductViewOrBuilder() { + return priceCompetitivenessProductView_ == null + ? com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView + .getDefaultInstance() + : priceCompetitivenessProductView_; + } + + public static final int PRICE_INSIGHTS_PRODUCT_VIEW_FIELD_NUMBER = 4; + private com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView + priceInsightsProductView_; + + /** + * + * + *
      +   * Fields available for query in `price_insights_product_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.PriceInsightsProductView price_insights_product_view = 4; + * + * + * @return Whether the priceInsightsProductView field is set. + */ + @java.lang.Override + public boolean hasPriceInsightsProductView() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
      +   * Fields available for query in `price_insights_product_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.PriceInsightsProductView price_insights_product_view = 4; + * + * + * @return The priceInsightsProductView. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView + getPriceInsightsProductView() { + return priceInsightsProductView_ == null + ? com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView.getDefaultInstance() + : priceInsightsProductView_; + } + + /** + * + * + *
      +   * Fields available for query in `price_insights_product_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.PriceInsightsProductView price_insights_product_view = 4; + * + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductViewOrBuilder + getPriceInsightsProductViewOrBuilder() { + return priceInsightsProductView_ == null + ? com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView.getDefaultInstance() + : priceInsightsProductView_; + } + + public static final int BEST_SELLERS_PRODUCT_CLUSTER_VIEW_FIELD_NUMBER = 5; + private com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView + bestSellersProductClusterView_; + + /** + * + * + *
      +   * Fields available for query in `best_sellers_product_cluster_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView best_sellers_product_cluster_view = 5; + * + * + * @return Whether the bestSellersProductClusterView field is set. + */ + @java.lang.Override + public boolean hasBestSellersProductClusterView() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
      +   * Fields available for query in `best_sellers_product_cluster_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView best_sellers_product_cluster_view = 5; + * + * + * @return The bestSellersProductClusterView. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView + getBestSellersProductClusterView() { + return bestSellersProductClusterView_ == null + ? com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView + .getDefaultInstance() + : bestSellersProductClusterView_; + } + + /** + * + * + *
      +   * Fields available for query in `best_sellers_product_cluster_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView best_sellers_product_cluster_view = 5; + * + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterViewOrBuilder + getBestSellersProductClusterViewOrBuilder() { + return bestSellersProductClusterView_ == null + ? com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView + .getDefaultInstance() + : bestSellersProductClusterView_; + } + + public static final int BEST_SELLERS_BRAND_VIEW_FIELD_NUMBER = 6; + private com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView bestSellersBrandView_; + + /** + * + * + *
      +   * Fields available for query in `best_sellers_brand_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.BestSellersBrandView best_sellers_brand_view = 6; + * + * + * @return Whether the bestSellersBrandView field is set. + */ + @java.lang.Override + public boolean hasBestSellersBrandView() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
      +   * Fields available for query in `best_sellers_brand_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.BestSellersBrandView best_sellers_brand_view = 6; + * + * + * @return The bestSellersBrandView. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView + getBestSellersBrandView() { + return bestSellersBrandView_ == null + ? com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView.getDefaultInstance() + : bestSellersBrandView_; + } + + /** + * + * + *
      +   * Fields available for query in `best_sellers_brand_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.BestSellersBrandView best_sellers_brand_view = 6; + * + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.BestSellersBrandViewOrBuilder + getBestSellersBrandViewOrBuilder() { + return bestSellersBrandView_ == null + ? com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView.getDefaultInstance() + : bestSellersBrandView_; + } + + public static final int COMPETITIVE_VISIBILITY_COMPETITOR_VIEW_FIELD_NUMBER = 8; + private com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView + competitiveVisibilityCompetitorView_; + + /** + * + * + *
      +   * Fields available for query in `competitive_visibility_competitor_view`
      +   * table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView competitive_visibility_competitor_view = 8; + * + * + * @return Whether the competitiveVisibilityCompetitorView field is set. + */ + @java.lang.Override + public boolean hasCompetitiveVisibilityCompetitorView() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
      +   * Fields available for query in `competitive_visibility_competitor_view`
      +   * table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView competitive_visibility_competitor_view = 8; + * + * + * @return The competitiveVisibilityCompetitorView. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView + getCompetitiveVisibilityCompetitorView() { + return competitiveVisibilityCompetitorView_ == null + ? com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView + .getDefaultInstance() + : competitiveVisibilityCompetitorView_; + } + + /** + * + * + *
      +   * Fields available for query in `competitive_visibility_competitor_view`
      +   * table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView competitive_visibility_competitor_view = 8; + * + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorViewOrBuilder + getCompetitiveVisibilityCompetitorViewOrBuilder() { + return competitiveVisibilityCompetitorView_ == null + ? com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView + .getDefaultInstance() + : competitiveVisibilityCompetitorView_; + } + + public static final int COMPETITIVE_VISIBILITY_TOP_MERCHANT_VIEW_FIELD_NUMBER = 9; + private com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView + competitiveVisibilityTopMerchantView_; + + /** + * + * + *
      +   * Fields available for query in `competitive_visibility_top_merchant_view`
      +   * table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView competitive_visibility_top_merchant_view = 9; + * + * + * @return Whether the competitiveVisibilityTopMerchantView field is set. + */ + @java.lang.Override + public boolean hasCompetitiveVisibilityTopMerchantView() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
      +   * Fields available for query in `competitive_visibility_top_merchant_view`
      +   * table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView competitive_visibility_top_merchant_view = 9; + * + * + * @return The competitiveVisibilityTopMerchantView. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView + getCompetitiveVisibilityTopMerchantView() { + return competitiveVisibilityTopMerchantView_ == null + ? com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView + .getDefaultInstance() + : competitiveVisibilityTopMerchantView_; + } + + /** + * + * + *
      +   * Fields available for query in `competitive_visibility_top_merchant_view`
      +   * table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView competitive_visibility_top_merchant_view = 9; + * + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantViewOrBuilder + getCompetitiveVisibilityTopMerchantViewOrBuilder() { + return competitiveVisibilityTopMerchantView_ == null + ? com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView + .getDefaultInstance() + : competitiveVisibilityTopMerchantView_; + } + + public static final int COMPETITIVE_VISIBILITY_BENCHMARK_VIEW_FIELD_NUMBER = 10; + private com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView + competitiveVisibilityBenchmarkView_; + + /** + * + * + *
      +   * Fields available for query in `competitive_visibility_benchmark_view`
      +   * table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView competitive_visibility_benchmark_view = 10; + * + * + * @return Whether the competitiveVisibilityBenchmarkView field is set. + */ + @java.lang.Override + public boolean hasCompetitiveVisibilityBenchmarkView() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
      +   * Fields available for query in `competitive_visibility_benchmark_view`
      +   * table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView competitive_visibility_benchmark_view = 10; + * + * + * @return The competitiveVisibilityBenchmarkView. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView + getCompetitiveVisibilityBenchmarkView() { + return competitiveVisibilityBenchmarkView_ == null + ? com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView + .getDefaultInstance() + : competitiveVisibilityBenchmarkView_; + } + + /** + * + * + *
      +   * Fields available for query in `competitive_visibility_benchmark_view`
      +   * table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView competitive_visibility_benchmark_view = 10; + * + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkViewOrBuilder + getCompetitiveVisibilityBenchmarkViewOrBuilder() { + return competitiveVisibilityBenchmarkView_ == null + ? com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView + .getDefaultInstance() + : competitiveVisibilityBenchmarkView_; + } + + public static final int YOUTUBE_CREATOR_PERFORMANCE_VIEW_FIELD_NUMBER = 11; + private com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView + youtubeCreatorPerformanceView_; + + /** + * + * + *
      +   * Fields available for query in `youtube_creator_performance_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView youtube_creator_performance_view = 11; + * + * + * @return Whether the youtubeCreatorPerformanceView field is set. + */ + @java.lang.Override + public boolean hasYoutubeCreatorPerformanceView() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
      +   * Fields available for query in `youtube_creator_performance_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView youtube_creator_performance_view = 11; + * + * + * @return The youtubeCreatorPerformanceView. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView + getYoutubeCreatorPerformanceView() { + return youtubeCreatorPerformanceView_ == null + ? com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView + .getDefaultInstance() + : youtubeCreatorPerformanceView_; + } + + /** + * + * + *
      +   * Fields available for query in `youtube_creator_performance_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView youtube_creator_performance_view = 11; + * + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceViewOrBuilder + getYoutubeCreatorPerformanceViewOrBuilder() { + return youtubeCreatorPerformanceView_ == null + ? com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView + .getDefaultInstance() + : youtubeCreatorPerformanceView_; + } + + public static final int YOUTUBE_CONTENT_PERFORMANCE_VIEW_FIELD_NUMBER = 12; + private com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView + youtubeContentPerformanceView_; + + /** + * + * + *
      +   * Fields available for query in `youtube_content_performance_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView youtube_content_performance_view = 12; + * + * + * @return Whether the youtubeContentPerformanceView field is set. + */ + @java.lang.Override + public boolean hasYoutubeContentPerformanceView() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
      +   * Fields available for query in `youtube_content_performance_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView youtube_content_performance_view = 12; + * + * + * @return The youtubeContentPerformanceView. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView + getYoutubeContentPerformanceView() { + return youtubeContentPerformanceView_ == null + ? com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView + .getDefaultInstance() + : youtubeContentPerformanceView_; + } + + /** + * + * + *
      +   * Fields available for query in `youtube_content_performance_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView youtube_content_performance_view = 12; + * + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceViewOrBuilder + getYoutubeContentPerformanceViewOrBuilder() { + return youtubeContentPerformanceView_ == null + ? com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView + .getDefaultInstance() + : youtubeContentPerformanceView_; + } + + public static final int YOUTUBE_PRODUCT_PERFORMANCE_VIEW_FIELD_NUMBER = 13; + private com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView + youtubeProductPerformanceView_; + + /** + * + * + *
      +   * Fields available for query in `youtube_product_performance_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView youtube_product_performance_view = 13; + * + * + * @return Whether the youtubeProductPerformanceView field is set. + */ + @java.lang.Override + public boolean hasYoutubeProductPerformanceView() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
      +   * Fields available for query in `youtube_product_performance_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView youtube_product_performance_view = 13; + * + * + * @return The youtubeProductPerformanceView. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView + getYoutubeProductPerformanceView() { + return youtubeProductPerformanceView_ == null + ? com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView + .getDefaultInstance() + : youtubeProductPerformanceView_; + } + + /** + * + * + *
      +   * Fields available for query in `youtube_product_performance_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView youtube_product_performance_view = 13; + * + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceViewOrBuilder + getYoutubeProductPerformanceViewOrBuilder() { + return youtubeProductPerformanceView_ == null + ? com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView + .getDefaultInstance() + : youtubeProductPerformanceView_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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, getProductPerformanceView()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(2, getProductView()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(3, getPriceCompetitivenessProductView()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(4, getPriceInsightsProductView()); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(5, getBestSellersProductClusterView()); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(6, getBestSellersBrandView()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getNonProductPerformanceView()); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(8, getCompetitiveVisibilityCompetitorView()); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(9, getCompetitiveVisibilityTopMerchantView()); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeMessage(10, getCompetitiveVisibilityBenchmarkView()); + } + if (((bitField0_ & 0x00000400) != 0)) { + output.writeMessage(11, getYoutubeCreatorPerformanceView()); + } + if (((bitField0_ & 0x00000800) != 0)) { + output.writeMessage(12, getYoutubeContentPerformanceView()); + } + if (((bitField0_ & 0x00001000) != 0)) { + output.writeMessage(13, getYoutubeProductPerformanceView()); + } + 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, getProductPerformanceView()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getProductView()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getPriceCompetitivenessProductView()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, getPriceInsightsProductView()); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, getBestSellersProductClusterView()); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(6, getBestSellersBrandView()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, getNonProductPerformanceView()); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, getCompetitiveVisibilityCompetitorView()); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, getCompetitiveVisibilityTopMerchantView()); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, getCompetitiveVisibilityBenchmarkView()); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, getYoutubeCreatorPerformanceView()); + } + if (((bitField0_ & 0x00000800) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, getYoutubeContentPerformanceView()); + } + if (((bitField0_ & 0x00001000) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, getYoutubeProductPerformanceView()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.shopping.merchant.reports.v1alpha.ReportRow)) { + return super.equals(obj); + } + com.google.shopping.merchant.reports.v1alpha.ReportRow other = + (com.google.shopping.merchant.reports.v1alpha.ReportRow) obj; + + if (hasProductPerformanceView() != other.hasProductPerformanceView()) return false; + if (hasProductPerformanceView()) { + if (!getProductPerformanceView().equals(other.getProductPerformanceView())) return false; + } + if (hasNonProductPerformanceView() != other.hasNonProductPerformanceView()) return false; + if (hasNonProductPerformanceView()) { + if (!getNonProductPerformanceView().equals(other.getNonProductPerformanceView())) + return false; + } + if (hasProductView() != other.hasProductView()) return false; + if (hasProductView()) { + if (!getProductView().equals(other.getProductView())) return false; + } + if (hasPriceCompetitivenessProductView() != other.hasPriceCompetitivenessProductView()) + return false; + if (hasPriceCompetitivenessProductView()) { + if (!getPriceCompetitivenessProductView().equals(other.getPriceCompetitivenessProductView())) + return false; + } + if (hasPriceInsightsProductView() != other.hasPriceInsightsProductView()) return false; + if (hasPriceInsightsProductView()) { + if (!getPriceInsightsProductView().equals(other.getPriceInsightsProductView())) return false; + } + if (hasBestSellersProductClusterView() != other.hasBestSellersProductClusterView()) + return false; + if (hasBestSellersProductClusterView()) { + if (!getBestSellersProductClusterView().equals(other.getBestSellersProductClusterView())) + return false; + } + if (hasBestSellersBrandView() != other.hasBestSellersBrandView()) return false; + if (hasBestSellersBrandView()) { + if (!getBestSellersBrandView().equals(other.getBestSellersBrandView())) return false; + } + if (hasCompetitiveVisibilityCompetitorView() != other.hasCompetitiveVisibilityCompetitorView()) + return false; + if (hasCompetitiveVisibilityCompetitorView()) { + if (!getCompetitiveVisibilityCompetitorView() + .equals(other.getCompetitiveVisibilityCompetitorView())) return false; + } + if (hasCompetitiveVisibilityTopMerchantView() + != other.hasCompetitiveVisibilityTopMerchantView()) return false; + if (hasCompetitiveVisibilityTopMerchantView()) { + if (!getCompetitiveVisibilityTopMerchantView() + .equals(other.getCompetitiveVisibilityTopMerchantView())) return false; + } + if (hasCompetitiveVisibilityBenchmarkView() != other.hasCompetitiveVisibilityBenchmarkView()) + return false; + if (hasCompetitiveVisibilityBenchmarkView()) { + if (!getCompetitiveVisibilityBenchmarkView() + .equals(other.getCompetitiveVisibilityBenchmarkView())) return false; + } + if (hasYoutubeCreatorPerformanceView() != other.hasYoutubeCreatorPerformanceView()) + return false; + if (hasYoutubeCreatorPerformanceView()) { + if (!getYoutubeCreatorPerformanceView().equals(other.getYoutubeCreatorPerformanceView())) + return false; + } + if (hasYoutubeContentPerformanceView() != other.hasYoutubeContentPerformanceView()) + return false; + if (hasYoutubeContentPerformanceView()) { + if (!getYoutubeContentPerformanceView().equals(other.getYoutubeContentPerformanceView())) + return false; + } + if (hasYoutubeProductPerformanceView() != other.hasYoutubeProductPerformanceView()) + return false; + if (hasYoutubeProductPerformanceView()) { + if (!getYoutubeProductPerformanceView().equals(other.getYoutubeProductPerformanceView())) + return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasProductPerformanceView()) { + hash = (37 * hash) + PRODUCT_PERFORMANCE_VIEW_FIELD_NUMBER; + hash = (53 * hash) + getProductPerformanceView().hashCode(); + } + if (hasNonProductPerformanceView()) { + hash = (37 * hash) + NON_PRODUCT_PERFORMANCE_VIEW_FIELD_NUMBER; + hash = (53 * hash) + getNonProductPerformanceView().hashCode(); + } + if (hasProductView()) { + hash = (37 * hash) + PRODUCT_VIEW_FIELD_NUMBER; + hash = (53 * hash) + getProductView().hashCode(); + } + if (hasPriceCompetitivenessProductView()) { + hash = (37 * hash) + PRICE_COMPETITIVENESS_PRODUCT_VIEW_FIELD_NUMBER; + hash = (53 * hash) + getPriceCompetitivenessProductView().hashCode(); + } + if (hasPriceInsightsProductView()) { + hash = (37 * hash) + PRICE_INSIGHTS_PRODUCT_VIEW_FIELD_NUMBER; + hash = (53 * hash) + getPriceInsightsProductView().hashCode(); + } + if (hasBestSellersProductClusterView()) { + hash = (37 * hash) + BEST_SELLERS_PRODUCT_CLUSTER_VIEW_FIELD_NUMBER; + hash = (53 * hash) + getBestSellersProductClusterView().hashCode(); + } + if (hasBestSellersBrandView()) { + hash = (37 * hash) + BEST_SELLERS_BRAND_VIEW_FIELD_NUMBER; + hash = (53 * hash) + getBestSellersBrandView().hashCode(); + } + if (hasCompetitiveVisibilityCompetitorView()) { + hash = (37 * hash) + COMPETITIVE_VISIBILITY_COMPETITOR_VIEW_FIELD_NUMBER; + hash = (53 * hash) + getCompetitiveVisibilityCompetitorView().hashCode(); + } + if (hasCompetitiveVisibilityTopMerchantView()) { + hash = (37 * hash) + COMPETITIVE_VISIBILITY_TOP_MERCHANT_VIEW_FIELD_NUMBER; + hash = (53 * hash) + getCompetitiveVisibilityTopMerchantView().hashCode(); + } + if (hasCompetitiveVisibilityBenchmarkView()) { + hash = (37 * hash) + COMPETITIVE_VISIBILITY_BENCHMARK_VIEW_FIELD_NUMBER; + hash = (53 * hash) + getCompetitiveVisibilityBenchmarkView().hashCode(); + } + if (hasYoutubeCreatorPerformanceView()) { + hash = (37 * hash) + YOUTUBE_CREATOR_PERFORMANCE_VIEW_FIELD_NUMBER; + hash = (53 * hash) + getYoutubeCreatorPerformanceView().hashCode(); + } + if (hasYoutubeContentPerformanceView()) { + hash = (37 * hash) + YOUTUBE_CONTENT_PERFORMANCE_VIEW_FIELD_NUMBER; + hash = (53 * hash) + getYoutubeContentPerformanceView().hashCode(); + } + if (hasYoutubeProductPerformanceView()) { + hash = (37 * hash) + YOUTUBE_PRODUCT_PERFORMANCE_VIEW_FIELD_NUMBER; + hash = (53 * hash) + getYoutubeProductPerformanceView().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.shopping.merchant.reports.v1alpha.ReportRow parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.ReportRow parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.ReportRow parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.ReportRow parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.ReportRow parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.ReportRow parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.ReportRow parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.ReportRow parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.ReportRow parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.ReportRow parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.ReportRow parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.ReportRow parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.shopping.merchant.reports.v1alpha.ReportRow prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Result row returned from the search query.
      +   *
      +   * Only the message corresponding to the queried table is populated in the
      +   * response. Within the populated message, only the fields requested explicitly
      +   * in the query are populated.
      +   * 
      + * + * Protobuf type {@code google.shopping.merchant.reports.v1alpha.ReportRow} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.reports.v1alpha.ReportRow) + com.google.shopping.merchant.reports.v1alpha.ReportRowOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_ReportRow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_ReportRow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1alpha.ReportRow.class, + com.google.shopping.merchant.reports.v1alpha.ReportRow.Builder.class); + } + + // Construct using com.google.shopping.merchant.reports.v1alpha.ReportRow.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getProductPerformanceViewFieldBuilder(); + getNonProductPerformanceViewFieldBuilder(); + getProductViewFieldBuilder(); + getPriceCompetitivenessProductViewFieldBuilder(); + getPriceInsightsProductViewFieldBuilder(); + getBestSellersProductClusterViewFieldBuilder(); + getBestSellersBrandViewFieldBuilder(); + getCompetitiveVisibilityCompetitorViewFieldBuilder(); + getCompetitiveVisibilityTopMerchantViewFieldBuilder(); + getCompetitiveVisibilityBenchmarkViewFieldBuilder(); + getYoutubeCreatorPerformanceViewFieldBuilder(); + getYoutubeContentPerformanceViewFieldBuilder(); + getYoutubeProductPerformanceViewFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + productPerformanceView_ = null; + if (productPerformanceViewBuilder_ != null) { + productPerformanceViewBuilder_.dispose(); + productPerformanceViewBuilder_ = null; + } + nonProductPerformanceView_ = null; + if (nonProductPerformanceViewBuilder_ != null) { + nonProductPerformanceViewBuilder_.dispose(); + nonProductPerformanceViewBuilder_ = null; + } + productView_ = null; + if (productViewBuilder_ != null) { + productViewBuilder_.dispose(); + productViewBuilder_ = null; + } + priceCompetitivenessProductView_ = null; + if (priceCompetitivenessProductViewBuilder_ != null) { + priceCompetitivenessProductViewBuilder_.dispose(); + priceCompetitivenessProductViewBuilder_ = null; + } + priceInsightsProductView_ = null; + if (priceInsightsProductViewBuilder_ != null) { + priceInsightsProductViewBuilder_.dispose(); + priceInsightsProductViewBuilder_ = null; + } + bestSellersProductClusterView_ = null; + if (bestSellersProductClusterViewBuilder_ != null) { + bestSellersProductClusterViewBuilder_.dispose(); + bestSellersProductClusterViewBuilder_ = null; + } + bestSellersBrandView_ = null; + if (bestSellersBrandViewBuilder_ != null) { + bestSellersBrandViewBuilder_.dispose(); + bestSellersBrandViewBuilder_ = null; + } + competitiveVisibilityCompetitorView_ = null; + if (competitiveVisibilityCompetitorViewBuilder_ != null) { + competitiveVisibilityCompetitorViewBuilder_.dispose(); + competitiveVisibilityCompetitorViewBuilder_ = null; + } + competitiveVisibilityTopMerchantView_ = null; + if (competitiveVisibilityTopMerchantViewBuilder_ != null) { + competitiveVisibilityTopMerchantViewBuilder_.dispose(); + competitiveVisibilityTopMerchantViewBuilder_ = null; + } + competitiveVisibilityBenchmarkView_ = null; + if (competitiveVisibilityBenchmarkViewBuilder_ != null) { + competitiveVisibilityBenchmarkViewBuilder_.dispose(); + competitiveVisibilityBenchmarkViewBuilder_ = null; + } + youtubeCreatorPerformanceView_ = null; + if (youtubeCreatorPerformanceViewBuilder_ != null) { + youtubeCreatorPerformanceViewBuilder_.dispose(); + youtubeCreatorPerformanceViewBuilder_ = null; + } + youtubeContentPerformanceView_ = null; + if (youtubeContentPerformanceViewBuilder_ != null) { + youtubeContentPerformanceViewBuilder_.dispose(); + youtubeContentPerformanceViewBuilder_ = null; + } + youtubeProductPerformanceView_ = null; + if (youtubeProductPerformanceViewBuilder_ != null) { + youtubeProductPerformanceViewBuilder_.dispose(); + youtubeProductPerformanceViewBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_ReportRow_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ReportRow getDefaultInstanceForType() { + return com.google.shopping.merchant.reports.v1alpha.ReportRow.getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ReportRow build() { + com.google.shopping.merchant.reports.v1alpha.ReportRow result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ReportRow buildPartial() { + com.google.shopping.merchant.reports.v1alpha.ReportRow result = + new com.google.shopping.merchant.reports.v1alpha.ReportRow(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.shopping.merchant.reports.v1alpha.ReportRow result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.productPerformanceView_ = + productPerformanceViewBuilder_ == null + ? productPerformanceView_ + : productPerformanceViewBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nonProductPerformanceView_ = + nonProductPerformanceViewBuilder_ == null + ? nonProductPerformanceView_ + : nonProductPerformanceViewBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.productView_ = + productViewBuilder_ == null ? productView_ : productViewBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.priceCompetitivenessProductView_ = + priceCompetitivenessProductViewBuilder_ == null + ? priceCompetitivenessProductView_ + : priceCompetitivenessProductViewBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.priceInsightsProductView_ = + priceInsightsProductViewBuilder_ == null + ? priceInsightsProductView_ + : priceInsightsProductViewBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.bestSellersProductClusterView_ = + bestSellersProductClusterViewBuilder_ == null + ? bestSellersProductClusterView_ + : bestSellersProductClusterViewBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.bestSellersBrandView_ = + bestSellersBrandViewBuilder_ == null + ? bestSellersBrandView_ + : bestSellersBrandViewBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.competitiveVisibilityCompetitorView_ = + competitiveVisibilityCompetitorViewBuilder_ == null + ? competitiveVisibilityCompetitorView_ + : competitiveVisibilityCompetitorViewBuilder_.build(); + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.competitiveVisibilityTopMerchantView_ = + competitiveVisibilityTopMerchantViewBuilder_ == null + ? competitiveVisibilityTopMerchantView_ + : competitiveVisibilityTopMerchantViewBuilder_.build(); + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.competitiveVisibilityBenchmarkView_ = + competitiveVisibilityBenchmarkViewBuilder_ == null + ? competitiveVisibilityBenchmarkView_ + : competitiveVisibilityBenchmarkViewBuilder_.build(); + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.youtubeCreatorPerformanceView_ = + youtubeCreatorPerformanceViewBuilder_ == null + ? youtubeCreatorPerformanceView_ + : youtubeCreatorPerformanceViewBuilder_.build(); + to_bitField0_ |= 0x00000400; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.youtubeContentPerformanceView_ = + youtubeContentPerformanceViewBuilder_ == null + ? youtubeContentPerformanceView_ + : youtubeContentPerformanceViewBuilder_.build(); + to_bitField0_ |= 0x00000800; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.youtubeProductPerformanceView_ = + youtubeProductPerformanceViewBuilder_ == null + ? youtubeProductPerformanceView_ + : youtubeProductPerformanceViewBuilder_.build(); + to_bitField0_ |= 0x00001000; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.shopping.merchant.reports.v1alpha.ReportRow) { + return mergeFrom((com.google.shopping.merchant.reports.v1alpha.ReportRow) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.shopping.merchant.reports.v1alpha.ReportRow other) { + if (other == com.google.shopping.merchant.reports.v1alpha.ReportRow.getDefaultInstance()) + return this; + if (other.hasProductPerformanceView()) { + mergeProductPerformanceView(other.getProductPerformanceView()); + } + if (other.hasNonProductPerformanceView()) { + mergeNonProductPerformanceView(other.getNonProductPerformanceView()); + } + if (other.hasProductView()) { + mergeProductView(other.getProductView()); + } + if (other.hasPriceCompetitivenessProductView()) { + mergePriceCompetitivenessProductView(other.getPriceCompetitivenessProductView()); + } + if (other.hasPriceInsightsProductView()) { + mergePriceInsightsProductView(other.getPriceInsightsProductView()); + } + if (other.hasBestSellersProductClusterView()) { + mergeBestSellersProductClusterView(other.getBestSellersProductClusterView()); + } + if (other.hasBestSellersBrandView()) { + mergeBestSellersBrandView(other.getBestSellersBrandView()); + } + if (other.hasCompetitiveVisibilityCompetitorView()) { + mergeCompetitiveVisibilityCompetitorView(other.getCompetitiveVisibilityCompetitorView()); + } + if (other.hasCompetitiveVisibilityTopMerchantView()) { + mergeCompetitiveVisibilityTopMerchantView(other.getCompetitiveVisibilityTopMerchantView()); + } + if (other.hasCompetitiveVisibilityBenchmarkView()) { + mergeCompetitiveVisibilityBenchmarkView(other.getCompetitiveVisibilityBenchmarkView()); + } + if (other.hasYoutubeCreatorPerformanceView()) { + mergeYoutubeCreatorPerformanceView(other.getYoutubeCreatorPerformanceView()); + } + if (other.hasYoutubeContentPerformanceView()) { + mergeYoutubeContentPerformanceView(other.getYoutubeContentPerformanceView()); + } + if (other.hasYoutubeProductPerformanceView()) { + mergeYoutubeProductPerformanceView(other.getYoutubeProductPerformanceView()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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( + getProductPerformanceViewFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getProductViewFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: + { + input.readMessage( + getPriceCompetitivenessProductViewFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + input.readMessage( + getPriceInsightsProductViewFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 42: + { + input.readMessage( + getBestSellersProductClusterViewFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 42 + case 50: + { + input.readMessage( + getBestSellersBrandViewFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 58: + { + input.readMessage( + getNonProductPerformanceViewFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 58 + case 66: + { + input.readMessage( + getCompetitiveVisibilityCompetitorViewFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: + { + input.readMessage( + getCompetitiveVisibilityTopMerchantViewFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + input.readMessage( + getCompetitiveVisibilityBenchmarkViewFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: + { + input.readMessage( + getYoutubeCreatorPerformanceViewFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: + { + input.readMessage( + getYoutubeContentPerformanceViewFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 106: + { + input.readMessage( + getYoutubeProductPerformanceViewFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 106 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + 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.shopping.merchant.reports.v1alpha.ProductPerformanceView + productPerformanceView_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView, + com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView.Builder, + com.google.shopping.merchant.reports.v1alpha.ProductPerformanceViewOrBuilder> + productPerformanceViewBuilder_; + + /** + * + * + *
      +     * Fields available for query in `product_performance_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.ProductPerformanceView product_performance_view = 1; + * + * + * @return Whether the productPerformanceView field is set. + */ + public boolean hasProductPerformanceView() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +     * Fields available for query in `product_performance_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.ProductPerformanceView product_performance_view = 1; + * + * + * @return The productPerformanceView. + */ + public com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView + getProductPerformanceView() { + if (productPerformanceViewBuilder_ == null) { + return productPerformanceView_ == null + ? com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView + .getDefaultInstance() + : productPerformanceView_; + } else { + return productPerformanceViewBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Fields available for query in `product_performance_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.ProductPerformanceView product_performance_view = 1; + * + */ + public Builder setProductPerformanceView( + com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView value) { + if (productPerformanceViewBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + productPerformanceView_ = value; + } else { + productPerformanceViewBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Fields available for query in `product_performance_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.ProductPerformanceView product_performance_view = 1; + * + */ + public Builder setProductPerformanceView( + com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView.Builder + builderForValue) { + if (productPerformanceViewBuilder_ == null) { + productPerformanceView_ = builderForValue.build(); + } else { + productPerformanceViewBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Fields available for query in `product_performance_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.ProductPerformanceView product_performance_view = 1; + * + */ + public Builder mergeProductPerformanceView( + com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView value) { + if (productPerformanceViewBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && productPerformanceView_ != null + && productPerformanceView_ + != com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView + .getDefaultInstance()) { + getProductPerformanceViewBuilder().mergeFrom(value); + } else { + productPerformanceView_ = value; + } + } else { + productPerformanceViewBuilder_.mergeFrom(value); + } + if (productPerformanceView_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Fields available for query in `product_performance_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.ProductPerformanceView product_performance_view = 1; + * + */ + public Builder clearProductPerformanceView() { + bitField0_ = (bitField0_ & ~0x00000001); + productPerformanceView_ = null; + if (productPerformanceViewBuilder_ != null) { + productPerformanceViewBuilder_.dispose(); + productPerformanceViewBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Fields available for query in `product_performance_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.ProductPerformanceView product_performance_view = 1; + * + */ + public com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView.Builder + getProductPerformanceViewBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getProductPerformanceViewFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Fields available for query in `product_performance_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.ProductPerformanceView product_performance_view = 1; + * + */ + public com.google.shopping.merchant.reports.v1alpha.ProductPerformanceViewOrBuilder + getProductPerformanceViewOrBuilder() { + if (productPerformanceViewBuilder_ != null) { + return productPerformanceViewBuilder_.getMessageOrBuilder(); + } else { + return productPerformanceView_ == null + ? com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView + .getDefaultInstance() + : productPerformanceView_; + } + } + + /** + * + * + *
      +     * Fields available for query in `product_performance_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.ProductPerformanceView product_performance_view = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView, + com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView.Builder, + com.google.shopping.merchant.reports.v1alpha.ProductPerformanceViewOrBuilder> + getProductPerformanceViewFieldBuilder() { + if (productPerformanceViewBuilder_ == null) { + productPerformanceViewBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView, + com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView.Builder, + com.google.shopping.merchant.reports.v1alpha.ProductPerformanceViewOrBuilder>( + getProductPerformanceView(), getParentForChildren(), isClean()); + productPerformanceView_ = null; + } + return productPerformanceViewBuilder_; + } + + private com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView + nonProductPerformanceView_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView, + com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView.Builder, + com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceViewOrBuilder> + nonProductPerformanceViewBuilder_; + + /** + * + * + *
      +     * Fields available for query in `non_product_performance_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.NonProductPerformanceView non_product_performance_view = 7; + * + * + * @return Whether the nonProductPerformanceView field is set. + */ + public boolean hasNonProductPerformanceView() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +     * Fields available for query in `non_product_performance_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.NonProductPerformanceView non_product_performance_view = 7; + * + * + * @return The nonProductPerformanceView. + */ + public com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView + getNonProductPerformanceView() { + if (nonProductPerformanceViewBuilder_ == null) { + return nonProductPerformanceView_ == null + ? com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView + .getDefaultInstance() + : nonProductPerformanceView_; + } else { + return nonProductPerformanceViewBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Fields available for query in `non_product_performance_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.NonProductPerformanceView non_product_performance_view = 7; + * + */ + public Builder setNonProductPerformanceView( + com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView value) { + if (nonProductPerformanceViewBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nonProductPerformanceView_ = value; + } else { + nonProductPerformanceViewBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Fields available for query in `non_product_performance_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.NonProductPerformanceView non_product_performance_view = 7; + * + */ + public Builder setNonProductPerformanceView( + com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView.Builder + builderForValue) { + if (nonProductPerformanceViewBuilder_ == null) { + nonProductPerformanceView_ = builderForValue.build(); + } else { + nonProductPerformanceViewBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Fields available for query in `non_product_performance_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.NonProductPerformanceView non_product_performance_view = 7; + * + */ + public Builder mergeNonProductPerformanceView( + com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView value) { + if (nonProductPerformanceViewBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && nonProductPerformanceView_ != null + && nonProductPerformanceView_ + != com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView + .getDefaultInstance()) { + getNonProductPerformanceViewBuilder().mergeFrom(value); + } else { + nonProductPerformanceView_ = value; + } + } else { + nonProductPerformanceViewBuilder_.mergeFrom(value); + } + if (nonProductPerformanceView_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Fields available for query in `non_product_performance_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.NonProductPerformanceView non_product_performance_view = 7; + * + */ + public Builder clearNonProductPerformanceView() { + bitField0_ = (bitField0_ & ~0x00000002); + nonProductPerformanceView_ = null; + if (nonProductPerformanceViewBuilder_ != null) { + nonProductPerformanceViewBuilder_.dispose(); + nonProductPerformanceViewBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Fields available for query in `non_product_performance_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.NonProductPerformanceView non_product_performance_view = 7; + * + */ + public com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView.Builder + getNonProductPerformanceViewBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getNonProductPerformanceViewFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Fields available for query in `non_product_performance_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.NonProductPerformanceView non_product_performance_view = 7; + * + */ + public com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceViewOrBuilder + getNonProductPerformanceViewOrBuilder() { + if (nonProductPerformanceViewBuilder_ != null) { + return nonProductPerformanceViewBuilder_.getMessageOrBuilder(); + } else { + return nonProductPerformanceView_ == null + ? com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView + .getDefaultInstance() + : nonProductPerformanceView_; + } + } + + /** + * + * + *
      +     * Fields available for query in `non_product_performance_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.NonProductPerformanceView non_product_performance_view = 7; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView, + com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView.Builder, + com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceViewOrBuilder> + getNonProductPerformanceViewFieldBuilder() { + if (nonProductPerformanceViewBuilder_ == null) { + nonProductPerformanceViewBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView, + com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView.Builder, + com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceViewOrBuilder>( + getNonProductPerformanceView(), getParentForChildren(), isClean()); + nonProductPerformanceView_ = null; + } + return nonProductPerformanceViewBuilder_; + } + + private com.google.shopping.merchant.reports.v1alpha.ProductView productView_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.ProductView, + com.google.shopping.merchant.reports.v1alpha.ProductView.Builder, + com.google.shopping.merchant.reports.v1alpha.ProductViewOrBuilder> + productViewBuilder_; + + /** + * + * + *
      +     * Fields available for query in `product_view` table.
      +     * 
      + * + * .google.shopping.merchant.reports.v1alpha.ProductView product_view = 2; + * + * @return Whether the productView field is set. + */ + public boolean hasProductView() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +     * Fields available for query in `product_view` table.
      +     * 
      + * + * .google.shopping.merchant.reports.v1alpha.ProductView product_view = 2; + * + * @return The productView. + */ + public com.google.shopping.merchant.reports.v1alpha.ProductView getProductView() { + if (productViewBuilder_ == null) { + return productView_ == null + ? com.google.shopping.merchant.reports.v1alpha.ProductView.getDefaultInstance() + : productView_; + } else { + return productViewBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Fields available for query in `product_view` table.
      +     * 
      + * + * .google.shopping.merchant.reports.v1alpha.ProductView product_view = 2; + */ + public Builder setProductView(com.google.shopping.merchant.reports.v1alpha.ProductView value) { + if (productViewBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + productView_ = value; + } else { + productViewBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Fields available for query in `product_view` table.
      +     * 
      + * + * .google.shopping.merchant.reports.v1alpha.ProductView product_view = 2; + */ + public Builder setProductView( + com.google.shopping.merchant.reports.v1alpha.ProductView.Builder builderForValue) { + if (productViewBuilder_ == null) { + productView_ = builderForValue.build(); + } else { + productViewBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Fields available for query in `product_view` table.
      +     * 
      + * + * .google.shopping.merchant.reports.v1alpha.ProductView product_view = 2; + */ + public Builder mergeProductView( + com.google.shopping.merchant.reports.v1alpha.ProductView value) { + if (productViewBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && productView_ != null + && productView_ + != com.google.shopping.merchant.reports.v1alpha.ProductView.getDefaultInstance()) { + getProductViewBuilder().mergeFrom(value); + } else { + productView_ = value; + } + } else { + productViewBuilder_.mergeFrom(value); + } + if (productView_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Fields available for query in `product_view` table.
      +     * 
      + * + * .google.shopping.merchant.reports.v1alpha.ProductView product_view = 2; + */ + public Builder clearProductView() { + bitField0_ = (bitField0_ & ~0x00000004); + productView_ = null; + if (productViewBuilder_ != null) { + productViewBuilder_.dispose(); + productViewBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Fields available for query in `product_view` table.
      +     * 
      + * + * .google.shopping.merchant.reports.v1alpha.ProductView product_view = 2; + */ + public com.google.shopping.merchant.reports.v1alpha.ProductView.Builder + getProductViewBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getProductViewFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Fields available for query in `product_view` table.
      +     * 
      + * + * .google.shopping.merchant.reports.v1alpha.ProductView product_view = 2; + */ + public com.google.shopping.merchant.reports.v1alpha.ProductViewOrBuilder + getProductViewOrBuilder() { + if (productViewBuilder_ != null) { + return productViewBuilder_.getMessageOrBuilder(); + } else { + return productView_ == null + ? com.google.shopping.merchant.reports.v1alpha.ProductView.getDefaultInstance() + : productView_; + } + } + + /** + * + * + *
      +     * Fields available for query in `product_view` table.
      +     * 
      + * + * .google.shopping.merchant.reports.v1alpha.ProductView product_view = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.ProductView, + com.google.shopping.merchant.reports.v1alpha.ProductView.Builder, + com.google.shopping.merchant.reports.v1alpha.ProductViewOrBuilder> + getProductViewFieldBuilder() { + if (productViewBuilder_ == null) { + productViewBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.ProductView, + com.google.shopping.merchant.reports.v1alpha.ProductView.Builder, + com.google.shopping.merchant.reports.v1alpha.ProductViewOrBuilder>( + getProductView(), getParentForChildren(), isClean()); + productView_ = null; + } + return productViewBuilder_; + } + + private com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView + priceCompetitivenessProductView_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView, + com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView.Builder, + com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductViewOrBuilder> + priceCompetitivenessProductViewBuilder_; + + /** + * + * + *
      +     * Fields available for query in `price_competitiveness_product_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView price_competitiveness_product_view = 3; + * + * + * @return Whether the priceCompetitivenessProductView field is set. + */ + public boolean hasPriceCompetitivenessProductView() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +     * Fields available for query in `price_competitiveness_product_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView price_competitiveness_product_view = 3; + * + * + * @return The priceCompetitivenessProductView. + */ + public com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView + getPriceCompetitivenessProductView() { + if (priceCompetitivenessProductViewBuilder_ == null) { + return priceCompetitivenessProductView_ == null + ? com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView + .getDefaultInstance() + : priceCompetitivenessProductView_; + } else { + return priceCompetitivenessProductViewBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Fields available for query in `price_competitiveness_product_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView price_competitiveness_product_view = 3; + * + */ + public Builder setPriceCompetitivenessProductView( + com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView value) { + if (priceCompetitivenessProductViewBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + priceCompetitivenessProductView_ = value; + } else { + priceCompetitivenessProductViewBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Fields available for query in `price_competitiveness_product_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView price_competitiveness_product_view = 3; + * + */ + public Builder setPriceCompetitivenessProductView( + com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView.Builder + builderForValue) { + if (priceCompetitivenessProductViewBuilder_ == null) { + priceCompetitivenessProductView_ = builderForValue.build(); + } else { + priceCompetitivenessProductViewBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Fields available for query in `price_competitiveness_product_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView price_competitiveness_product_view = 3; + * + */ + public Builder mergePriceCompetitivenessProductView( + com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView value) { + if (priceCompetitivenessProductViewBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && priceCompetitivenessProductView_ != null + && priceCompetitivenessProductView_ + != com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView + .getDefaultInstance()) { + getPriceCompetitivenessProductViewBuilder().mergeFrom(value); + } else { + priceCompetitivenessProductView_ = value; + } + } else { + priceCompetitivenessProductViewBuilder_.mergeFrom(value); + } + if (priceCompetitivenessProductView_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Fields available for query in `price_competitiveness_product_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView price_competitiveness_product_view = 3; + * + */ + public Builder clearPriceCompetitivenessProductView() { + bitField0_ = (bitField0_ & ~0x00000008); + priceCompetitivenessProductView_ = null; + if (priceCompetitivenessProductViewBuilder_ != null) { + priceCompetitivenessProductViewBuilder_.dispose(); + priceCompetitivenessProductViewBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Fields available for query in `price_competitiveness_product_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView price_competitiveness_product_view = 3; + * + */ + public com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView.Builder + getPriceCompetitivenessProductViewBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getPriceCompetitivenessProductViewFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Fields available for query in `price_competitiveness_product_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView price_competitiveness_product_view = 3; + * + */ + public com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductViewOrBuilder + getPriceCompetitivenessProductViewOrBuilder() { + if (priceCompetitivenessProductViewBuilder_ != null) { + return priceCompetitivenessProductViewBuilder_.getMessageOrBuilder(); + } else { + return priceCompetitivenessProductView_ == null + ? com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView + .getDefaultInstance() + : priceCompetitivenessProductView_; + } + } + + /** + * + * + *
      +     * Fields available for query in `price_competitiveness_product_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView price_competitiveness_product_view = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView, + com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView.Builder, + com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductViewOrBuilder> + getPriceCompetitivenessProductViewFieldBuilder() { + if (priceCompetitivenessProductViewBuilder_ == null) { + priceCompetitivenessProductViewBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView, + com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView + .Builder, + com.google.shopping.merchant.reports.v1alpha + .PriceCompetitivenessProductViewOrBuilder>( + getPriceCompetitivenessProductView(), getParentForChildren(), isClean()); + priceCompetitivenessProductView_ = null; + } + return priceCompetitivenessProductViewBuilder_; + } + + private com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView + priceInsightsProductView_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView, + com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView.Builder, + com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductViewOrBuilder> + priceInsightsProductViewBuilder_; + + /** + * + * + *
      +     * Fields available for query in `price_insights_product_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.PriceInsightsProductView price_insights_product_view = 4; + * + * + * @return Whether the priceInsightsProductView field is set. + */ + public boolean hasPriceInsightsProductView() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
      +     * Fields available for query in `price_insights_product_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.PriceInsightsProductView price_insights_product_view = 4; + * + * + * @return The priceInsightsProductView. + */ + public com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView + getPriceInsightsProductView() { + if (priceInsightsProductViewBuilder_ == null) { + return priceInsightsProductView_ == null + ? com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView + .getDefaultInstance() + : priceInsightsProductView_; + } else { + return priceInsightsProductViewBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Fields available for query in `price_insights_product_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.PriceInsightsProductView price_insights_product_view = 4; + * + */ + public Builder setPriceInsightsProductView( + com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView value) { + if (priceInsightsProductViewBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + priceInsightsProductView_ = value; + } else { + priceInsightsProductViewBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Fields available for query in `price_insights_product_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.PriceInsightsProductView price_insights_product_view = 4; + * + */ + public Builder setPriceInsightsProductView( + com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView.Builder + builderForValue) { + if (priceInsightsProductViewBuilder_ == null) { + priceInsightsProductView_ = builderForValue.build(); + } else { + priceInsightsProductViewBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Fields available for query in `price_insights_product_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.PriceInsightsProductView price_insights_product_view = 4; + * + */ + public Builder mergePriceInsightsProductView( + com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView value) { + if (priceInsightsProductViewBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && priceInsightsProductView_ != null + && priceInsightsProductView_ + != com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView + .getDefaultInstance()) { + getPriceInsightsProductViewBuilder().mergeFrom(value); + } else { + priceInsightsProductView_ = value; + } + } else { + priceInsightsProductViewBuilder_.mergeFrom(value); + } + if (priceInsightsProductView_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Fields available for query in `price_insights_product_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.PriceInsightsProductView price_insights_product_view = 4; + * + */ + public Builder clearPriceInsightsProductView() { + bitField0_ = (bitField0_ & ~0x00000010); + priceInsightsProductView_ = null; + if (priceInsightsProductViewBuilder_ != null) { + priceInsightsProductViewBuilder_.dispose(); + priceInsightsProductViewBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Fields available for query in `price_insights_product_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.PriceInsightsProductView price_insights_product_view = 4; + * + */ + public com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView.Builder + getPriceInsightsProductViewBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getPriceInsightsProductViewFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Fields available for query in `price_insights_product_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.PriceInsightsProductView price_insights_product_view = 4; + * + */ + public com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductViewOrBuilder + getPriceInsightsProductViewOrBuilder() { + if (priceInsightsProductViewBuilder_ != null) { + return priceInsightsProductViewBuilder_.getMessageOrBuilder(); + } else { + return priceInsightsProductView_ == null + ? com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView + .getDefaultInstance() + : priceInsightsProductView_; + } + } + + /** + * + * + *
      +     * Fields available for query in `price_insights_product_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.PriceInsightsProductView price_insights_product_view = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView, + com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView.Builder, + com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductViewOrBuilder> + getPriceInsightsProductViewFieldBuilder() { + if (priceInsightsProductViewBuilder_ == null) { + priceInsightsProductViewBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView, + com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView.Builder, + com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductViewOrBuilder>( + getPriceInsightsProductView(), getParentForChildren(), isClean()); + priceInsightsProductView_ = null; + } + return priceInsightsProductViewBuilder_; + } + + private com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView + bestSellersProductClusterView_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView, + com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView.Builder, + com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterViewOrBuilder> + bestSellersProductClusterViewBuilder_; + + /** + * + * + *
      +     * Fields available for query in `best_sellers_product_cluster_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView best_sellers_product_cluster_view = 5; + * + * + * @return Whether the bestSellersProductClusterView field is set. + */ + public boolean hasBestSellersProductClusterView() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
      +     * Fields available for query in `best_sellers_product_cluster_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView best_sellers_product_cluster_view = 5; + * + * + * @return The bestSellersProductClusterView. + */ + public com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView + getBestSellersProductClusterView() { + if (bestSellersProductClusterViewBuilder_ == null) { + return bestSellersProductClusterView_ == null + ? com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView + .getDefaultInstance() + : bestSellersProductClusterView_; + } else { + return bestSellersProductClusterViewBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Fields available for query in `best_sellers_product_cluster_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView best_sellers_product_cluster_view = 5; + * + */ + public Builder setBestSellersProductClusterView( + com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView value) { + if (bestSellersProductClusterViewBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + bestSellersProductClusterView_ = value; + } else { + bestSellersProductClusterViewBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Fields available for query in `best_sellers_product_cluster_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView best_sellers_product_cluster_view = 5; + * + */ + public Builder setBestSellersProductClusterView( + com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView.Builder + builderForValue) { + if (bestSellersProductClusterViewBuilder_ == null) { + bestSellersProductClusterView_ = builderForValue.build(); + } else { + bestSellersProductClusterViewBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Fields available for query in `best_sellers_product_cluster_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView best_sellers_product_cluster_view = 5; + * + */ + public Builder mergeBestSellersProductClusterView( + com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView value) { + if (bestSellersProductClusterViewBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && bestSellersProductClusterView_ != null + && bestSellersProductClusterView_ + != com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView + .getDefaultInstance()) { + getBestSellersProductClusterViewBuilder().mergeFrom(value); + } else { + bestSellersProductClusterView_ = value; + } + } else { + bestSellersProductClusterViewBuilder_.mergeFrom(value); + } + if (bestSellersProductClusterView_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Fields available for query in `best_sellers_product_cluster_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView best_sellers_product_cluster_view = 5; + * + */ + public Builder clearBestSellersProductClusterView() { + bitField0_ = (bitField0_ & ~0x00000020); + bestSellersProductClusterView_ = null; + if (bestSellersProductClusterViewBuilder_ != null) { + bestSellersProductClusterViewBuilder_.dispose(); + bestSellersProductClusterViewBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Fields available for query in `best_sellers_product_cluster_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView best_sellers_product_cluster_view = 5; + * + */ + public com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView.Builder + getBestSellersProductClusterViewBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getBestSellersProductClusterViewFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Fields available for query in `best_sellers_product_cluster_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView best_sellers_product_cluster_view = 5; + * + */ + public com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterViewOrBuilder + getBestSellersProductClusterViewOrBuilder() { + if (bestSellersProductClusterViewBuilder_ != null) { + return bestSellersProductClusterViewBuilder_.getMessageOrBuilder(); + } else { + return bestSellersProductClusterView_ == null + ? com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView + .getDefaultInstance() + : bestSellersProductClusterView_; + } + } + + /** + * + * + *
      +     * Fields available for query in `best_sellers_product_cluster_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView best_sellers_product_cluster_view = 5; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView, + com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView.Builder, + com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterViewOrBuilder> + getBestSellersProductClusterViewFieldBuilder() { + if (bestSellersProductClusterViewBuilder_ == null) { + bestSellersProductClusterViewBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView, + com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView.Builder, + com.google.shopping.merchant.reports.v1alpha + .BestSellersProductClusterViewOrBuilder>( + getBestSellersProductClusterView(), getParentForChildren(), isClean()); + bestSellersProductClusterView_ = null; + } + return bestSellersProductClusterViewBuilder_; + } + + private com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView bestSellersBrandView_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView, + com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView.Builder, + com.google.shopping.merchant.reports.v1alpha.BestSellersBrandViewOrBuilder> + bestSellersBrandViewBuilder_; + + /** + * + * + *
      +     * Fields available for query in `best_sellers_brand_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.BestSellersBrandView best_sellers_brand_view = 6; + * + * + * @return Whether the bestSellersBrandView field is set. + */ + public boolean hasBestSellersBrandView() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
      +     * Fields available for query in `best_sellers_brand_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.BestSellersBrandView best_sellers_brand_view = 6; + * + * + * @return The bestSellersBrandView. + */ + public com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView + getBestSellersBrandView() { + if (bestSellersBrandViewBuilder_ == null) { + return bestSellersBrandView_ == null + ? com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView.getDefaultInstance() + : bestSellersBrandView_; + } else { + return bestSellersBrandViewBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Fields available for query in `best_sellers_brand_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.BestSellersBrandView best_sellers_brand_view = 6; + * + */ + public Builder setBestSellersBrandView( + com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView value) { + if (bestSellersBrandViewBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + bestSellersBrandView_ = value; + } else { + bestSellersBrandViewBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Fields available for query in `best_sellers_brand_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.BestSellersBrandView best_sellers_brand_view = 6; + * + */ + public Builder setBestSellersBrandView( + com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView.Builder builderForValue) { + if (bestSellersBrandViewBuilder_ == null) { + bestSellersBrandView_ = builderForValue.build(); + } else { + bestSellersBrandViewBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Fields available for query in `best_sellers_brand_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.BestSellersBrandView best_sellers_brand_view = 6; + * + */ + public Builder mergeBestSellersBrandView( + com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView value) { + if (bestSellersBrandViewBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && bestSellersBrandView_ != null + && bestSellersBrandView_ + != com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView + .getDefaultInstance()) { + getBestSellersBrandViewBuilder().mergeFrom(value); + } else { + bestSellersBrandView_ = value; + } + } else { + bestSellersBrandViewBuilder_.mergeFrom(value); + } + if (bestSellersBrandView_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Fields available for query in `best_sellers_brand_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.BestSellersBrandView best_sellers_brand_view = 6; + * + */ + public Builder clearBestSellersBrandView() { + bitField0_ = (bitField0_ & ~0x00000040); + bestSellersBrandView_ = null; + if (bestSellersBrandViewBuilder_ != null) { + bestSellersBrandViewBuilder_.dispose(); + bestSellersBrandViewBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Fields available for query in `best_sellers_brand_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.BestSellersBrandView best_sellers_brand_view = 6; + * + */ + public com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView.Builder + getBestSellersBrandViewBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getBestSellersBrandViewFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Fields available for query in `best_sellers_brand_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.BestSellersBrandView best_sellers_brand_view = 6; + * + */ + public com.google.shopping.merchant.reports.v1alpha.BestSellersBrandViewOrBuilder + getBestSellersBrandViewOrBuilder() { + if (bestSellersBrandViewBuilder_ != null) { + return bestSellersBrandViewBuilder_.getMessageOrBuilder(); + } else { + return bestSellersBrandView_ == null + ? com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView.getDefaultInstance() + : bestSellersBrandView_; + } + } + + /** + * + * + *
      +     * Fields available for query in `best_sellers_brand_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.BestSellersBrandView best_sellers_brand_view = 6; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView, + com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView.Builder, + com.google.shopping.merchant.reports.v1alpha.BestSellersBrandViewOrBuilder> + getBestSellersBrandViewFieldBuilder() { + if (bestSellersBrandViewBuilder_ == null) { + bestSellersBrandViewBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView, + com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView.Builder, + com.google.shopping.merchant.reports.v1alpha.BestSellersBrandViewOrBuilder>( + getBestSellersBrandView(), getParentForChildren(), isClean()); + bestSellersBrandView_ = null; + } + return bestSellersBrandViewBuilder_; + } + + private com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView + competitiveVisibilityCompetitorView_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView, + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView + .Builder, + com.google.shopping.merchant.reports.v1alpha + .CompetitiveVisibilityCompetitorViewOrBuilder> + competitiveVisibilityCompetitorViewBuilder_; + + /** + * + * + *
      +     * Fields available for query in `competitive_visibility_competitor_view`
      +     * table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView competitive_visibility_competitor_view = 8; + * + * + * @return Whether the competitiveVisibilityCompetitorView field is set. + */ + public boolean hasCompetitiveVisibilityCompetitorView() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
      +     * Fields available for query in `competitive_visibility_competitor_view`
      +     * table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView competitive_visibility_competitor_view = 8; + * + * + * @return The competitiveVisibilityCompetitorView. + */ + public com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView + getCompetitiveVisibilityCompetitorView() { + if (competitiveVisibilityCompetitorViewBuilder_ == null) { + return competitiveVisibilityCompetitorView_ == null + ? com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView + .getDefaultInstance() + : competitiveVisibilityCompetitorView_; + } else { + return competitiveVisibilityCompetitorViewBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Fields available for query in `competitive_visibility_competitor_view`
      +     * table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView competitive_visibility_competitor_view = 8; + * + */ + public Builder setCompetitiveVisibilityCompetitorView( + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView value) { + if (competitiveVisibilityCompetitorViewBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + competitiveVisibilityCompetitorView_ = value; + } else { + competitiveVisibilityCompetitorViewBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Fields available for query in `competitive_visibility_competitor_view`
      +     * table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView competitive_visibility_competitor_view = 8; + * + */ + public Builder setCompetitiveVisibilityCompetitorView( + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView.Builder + builderForValue) { + if (competitiveVisibilityCompetitorViewBuilder_ == null) { + competitiveVisibilityCompetitorView_ = builderForValue.build(); + } else { + competitiveVisibilityCompetitorViewBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Fields available for query in `competitive_visibility_competitor_view`
      +     * table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView competitive_visibility_competitor_view = 8; + * + */ + public Builder mergeCompetitiveVisibilityCompetitorView( + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView value) { + if (competitiveVisibilityCompetitorViewBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && competitiveVisibilityCompetitorView_ != null + && competitiveVisibilityCompetitorView_ + != com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView + .getDefaultInstance()) { + getCompetitiveVisibilityCompetitorViewBuilder().mergeFrom(value); + } else { + competitiveVisibilityCompetitorView_ = value; + } + } else { + competitiveVisibilityCompetitorViewBuilder_.mergeFrom(value); + } + if (competitiveVisibilityCompetitorView_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Fields available for query in `competitive_visibility_competitor_view`
      +     * table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView competitive_visibility_competitor_view = 8; + * + */ + public Builder clearCompetitiveVisibilityCompetitorView() { + bitField0_ = (bitField0_ & ~0x00000080); + competitiveVisibilityCompetitorView_ = null; + if (competitiveVisibilityCompetitorViewBuilder_ != null) { + competitiveVisibilityCompetitorViewBuilder_.dispose(); + competitiveVisibilityCompetitorViewBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Fields available for query in `competitive_visibility_competitor_view`
      +     * table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView competitive_visibility_competitor_view = 8; + * + */ + public com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView.Builder + getCompetitiveVisibilityCompetitorViewBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getCompetitiveVisibilityCompetitorViewFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Fields available for query in `competitive_visibility_competitor_view`
      +     * table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView competitive_visibility_competitor_view = 8; + * + */ + public com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorViewOrBuilder + getCompetitiveVisibilityCompetitorViewOrBuilder() { + if (competitiveVisibilityCompetitorViewBuilder_ != null) { + return competitiveVisibilityCompetitorViewBuilder_.getMessageOrBuilder(); + } else { + return competitiveVisibilityCompetitorView_ == null + ? com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView + .getDefaultInstance() + : competitiveVisibilityCompetitorView_; + } + } + + /** + * + * + *
      +     * Fields available for query in `competitive_visibility_competitor_view`
      +     * table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView competitive_visibility_competitor_view = 8; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView, + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView + .Builder, + com.google.shopping.merchant.reports.v1alpha + .CompetitiveVisibilityCompetitorViewOrBuilder> + getCompetitiveVisibilityCompetitorViewFieldBuilder() { + if (competitiveVisibilityCompetitorViewBuilder_ == null) { + competitiveVisibilityCompetitorViewBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView, + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView + .Builder, + com.google.shopping.merchant.reports.v1alpha + .CompetitiveVisibilityCompetitorViewOrBuilder>( + getCompetitiveVisibilityCompetitorView(), getParentForChildren(), isClean()); + competitiveVisibilityCompetitorView_ = null; + } + return competitiveVisibilityCompetitorViewBuilder_; + } + + private com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView + competitiveVisibilityTopMerchantView_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView, + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView + .Builder, + com.google.shopping.merchant.reports.v1alpha + .CompetitiveVisibilityTopMerchantViewOrBuilder> + competitiveVisibilityTopMerchantViewBuilder_; + + /** + * + * + *
      +     * Fields available for query in `competitive_visibility_top_merchant_view`
      +     * table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView competitive_visibility_top_merchant_view = 9; + * + * + * @return Whether the competitiveVisibilityTopMerchantView field is set. + */ + public boolean hasCompetitiveVisibilityTopMerchantView() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
      +     * Fields available for query in `competitive_visibility_top_merchant_view`
      +     * table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView competitive_visibility_top_merchant_view = 9; + * + * + * @return The competitiveVisibilityTopMerchantView. + */ + public com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView + getCompetitiveVisibilityTopMerchantView() { + if (competitiveVisibilityTopMerchantViewBuilder_ == null) { + return competitiveVisibilityTopMerchantView_ == null + ? com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView + .getDefaultInstance() + : competitiveVisibilityTopMerchantView_; + } else { + return competitiveVisibilityTopMerchantViewBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Fields available for query in `competitive_visibility_top_merchant_view`
      +     * table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView competitive_visibility_top_merchant_view = 9; + * + */ + public Builder setCompetitiveVisibilityTopMerchantView( + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView value) { + if (competitiveVisibilityTopMerchantViewBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + competitiveVisibilityTopMerchantView_ = value; + } else { + competitiveVisibilityTopMerchantViewBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Fields available for query in `competitive_visibility_top_merchant_view`
      +     * table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView competitive_visibility_top_merchant_view = 9; + * + */ + public Builder setCompetitiveVisibilityTopMerchantView( + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView.Builder + builderForValue) { + if (competitiveVisibilityTopMerchantViewBuilder_ == null) { + competitiveVisibilityTopMerchantView_ = builderForValue.build(); + } else { + competitiveVisibilityTopMerchantViewBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Fields available for query in `competitive_visibility_top_merchant_view`
      +     * table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView competitive_visibility_top_merchant_view = 9; + * + */ + public Builder mergeCompetitiveVisibilityTopMerchantView( + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView value) { + if (competitiveVisibilityTopMerchantViewBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && competitiveVisibilityTopMerchantView_ != null + && competitiveVisibilityTopMerchantView_ + != com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView + .getDefaultInstance()) { + getCompetitiveVisibilityTopMerchantViewBuilder().mergeFrom(value); + } else { + competitiveVisibilityTopMerchantView_ = value; + } + } else { + competitiveVisibilityTopMerchantViewBuilder_.mergeFrom(value); + } + if (competitiveVisibilityTopMerchantView_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Fields available for query in `competitive_visibility_top_merchant_view`
      +     * table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView competitive_visibility_top_merchant_view = 9; + * + */ + public Builder clearCompetitiveVisibilityTopMerchantView() { + bitField0_ = (bitField0_ & ~0x00000100); + competitiveVisibilityTopMerchantView_ = null; + if (competitiveVisibilityTopMerchantViewBuilder_ != null) { + competitiveVisibilityTopMerchantViewBuilder_.dispose(); + competitiveVisibilityTopMerchantViewBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Fields available for query in `competitive_visibility_top_merchant_view`
      +     * table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView competitive_visibility_top_merchant_view = 9; + * + */ + public com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView.Builder + getCompetitiveVisibilityTopMerchantViewBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getCompetitiveVisibilityTopMerchantViewFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Fields available for query in `competitive_visibility_top_merchant_view`
      +     * table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView competitive_visibility_top_merchant_view = 9; + * + */ + public com.google.shopping.merchant.reports.v1alpha + .CompetitiveVisibilityTopMerchantViewOrBuilder + getCompetitiveVisibilityTopMerchantViewOrBuilder() { + if (competitiveVisibilityTopMerchantViewBuilder_ != null) { + return competitiveVisibilityTopMerchantViewBuilder_.getMessageOrBuilder(); + } else { + return competitiveVisibilityTopMerchantView_ == null + ? com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView + .getDefaultInstance() + : competitiveVisibilityTopMerchantView_; + } + } + + /** + * + * + *
      +     * Fields available for query in `competitive_visibility_top_merchant_view`
      +     * table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView competitive_visibility_top_merchant_view = 9; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView, + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView + .Builder, + com.google.shopping.merchant.reports.v1alpha + .CompetitiveVisibilityTopMerchantViewOrBuilder> + getCompetitiveVisibilityTopMerchantViewFieldBuilder() { + if (competitiveVisibilityTopMerchantViewBuilder_ == null) { + competitiveVisibilityTopMerchantViewBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView, + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView + .Builder, + com.google.shopping.merchant.reports.v1alpha + .CompetitiveVisibilityTopMerchantViewOrBuilder>( + getCompetitiveVisibilityTopMerchantView(), getParentForChildren(), isClean()); + competitiveVisibilityTopMerchantView_ = null; + } + return competitiveVisibilityTopMerchantViewBuilder_; + } + + private com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView + competitiveVisibilityBenchmarkView_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView, + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView.Builder, + com.google.shopping.merchant.reports.v1alpha + .CompetitiveVisibilityBenchmarkViewOrBuilder> + competitiveVisibilityBenchmarkViewBuilder_; + + /** + * + * + *
      +     * Fields available for query in `competitive_visibility_benchmark_view`
      +     * table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView competitive_visibility_benchmark_view = 10; + * + * + * @return Whether the competitiveVisibilityBenchmarkView field is set. + */ + public boolean hasCompetitiveVisibilityBenchmarkView() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
      +     * Fields available for query in `competitive_visibility_benchmark_view`
      +     * table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView competitive_visibility_benchmark_view = 10; + * + * + * @return The competitiveVisibilityBenchmarkView. + */ + public com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView + getCompetitiveVisibilityBenchmarkView() { + if (competitiveVisibilityBenchmarkViewBuilder_ == null) { + return competitiveVisibilityBenchmarkView_ == null + ? com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView + .getDefaultInstance() + : competitiveVisibilityBenchmarkView_; + } else { + return competitiveVisibilityBenchmarkViewBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Fields available for query in `competitive_visibility_benchmark_view`
      +     * table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView competitive_visibility_benchmark_view = 10; + * + */ + public Builder setCompetitiveVisibilityBenchmarkView( + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView value) { + if (competitiveVisibilityBenchmarkViewBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + competitiveVisibilityBenchmarkView_ = value; + } else { + competitiveVisibilityBenchmarkViewBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Fields available for query in `competitive_visibility_benchmark_view`
      +     * table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView competitive_visibility_benchmark_view = 10; + * + */ + public Builder setCompetitiveVisibilityBenchmarkView( + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView.Builder + builderForValue) { + if (competitiveVisibilityBenchmarkViewBuilder_ == null) { + competitiveVisibilityBenchmarkView_ = builderForValue.build(); + } else { + competitiveVisibilityBenchmarkViewBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Fields available for query in `competitive_visibility_benchmark_view`
      +     * table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView competitive_visibility_benchmark_view = 10; + * + */ + public Builder mergeCompetitiveVisibilityBenchmarkView( + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView value) { + if (competitiveVisibilityBenchmarkViewBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && competitiveVisibilityBenchmarkView_ != null + && competitiveVisibilityBenchmarkView_ + != com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView + .getDefaultInstance()) { + getCompetitiveVisibilityBenchmarkViewBuilder().mergeFrom(value); + } else { + competitiveVisibilityBenchmarkView_ = value; + } + } else { + competitiveVisibilityBenchmarkViewBuilder_.mergeFrom(value); + } + if (competitiveVisibilityBenchmarkView_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Fields available for query in `competitive_visibility_benchmark_view`
      +     * table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView competitive_visibility_benchmark_view = 10; + * + */ + public Builder clearCompetitiveVisibilityBenchmarkView() { + bitField0_ = (bitField0_ & ~0x00000200); + competitiveVisibilityBenchmarkView_ = null; + if (competitiveVisibilityBenchmarkViewBuilder_ != null) { + competitiveVisibilityBenchmarkViewBuilder_.dispose(); + competitiveVisibilityBenchmarkViewBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Fields available for query in `competitive_visibility_benchmark_view`
      +     * table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView competitive_visibility_benchmark_view = 10; + * + */ + public com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView.Builder + getCompetitiveVisibilityBenchmarkViewBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getCompetitiveVisibilityBenchmarkViewFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Fields available for query in `competitive_visibility_benchmark_view`
      +     * table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView competitive_visibility_benchmark_view = 10; + * + */ + public com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkViewOrBuilder + getCompetitiveVisibilityBenchmarkViewOrBuilder() { + if (competitiveVisibilityBenchmarkViewBuilder_ != null) { + return competitiveVisibilityBenchmarkViewBuilder_.getMessageOrBuilder(); + } else { + return competitiveVisibilityBenchmarkView_ == null + ? com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView + .getDefaultInstance() + : competitiveVisibilityBenchmarkView_; + } + } + + /** + * + * + *
      +     * Fields available for query in `competitive_visibility_benchmark_view`
      +     * table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView competitive_visibility_benchmark_view = 10; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView, + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView.Builder, + com.google.shopping.merchant.reports.v1alpha + .CompetitiveVisibilityBenchmarkViewOrBuilder> + getCompetitiveVisibilityBenchmarkViewFieldBuilder() { + if (competitiveVisibilityBenchmarkViewBuilder_ == null) { + competitiveVisibilityBenchmarkViewBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView, + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView + .Builder, + com.google.shopping.merchant.reports.v1alpha + .CompetitiveVisibilityBenchmarkViewOrBuilder>( + getCompetitiveVisibilityBenchmarkView(), getParentForChildren(), isClean()); + competitiveVisibilityBenchmarkView_ = null; + } + return competitiveVisibilityBenchmarkViewBuilder_; + } + + private com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView + youtubeCreatorPerformanceView_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView, + com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView.Builder, + com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceViewOrBuilder> + youtubeCreatorPerformanceViewBuilder_; + + /** + * + * + *
      +     * Fields available for query in `youtube_creator_performance_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView youtube_creator_performance_view = 11; + * + * + * @return Whether the youtubeCreatorPerformanceView field is set. + */ + public boolean hasYoutubeCreatorPerformanceView() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
      +     * Fields available for query in `youtube_creator_performance_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView youtube_creator_performance_view = 11; + * + * + * @return The youtubeCreatorPerformanceView. + */ + public com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView + getYoutubeCreatorPerformanceView() { + if (youtubeCreatorPerformanceViewBuilder_ == null) { + return youtubeCreatorPerformanceView_ == null + ? com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView + .getDefaultInstance() + : youtubeCreatorPerformanceView_; + } else { + return youtubeCreatorPerformanceViewBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Fields available for query in `youtube_creator_performance_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView youtube_creator_performance_view = 11; + * + */ + public Builder setYoutubeCreatorPerformanceView( + com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView value) { + if (youtubeCreatorPerformanceViewBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + youtubeCreatorPerformanceView_ = value; + } else { + youtubeCreatorPerformanceViewBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Fields available for query in `youtube_creator_performance_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView youtube_creator_performance_view = 11; + * + */ + public Builder setYoutubeCreatorPerformanceView( + com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView.Builder + builderForValue) { + if (youtubeCreatorPerformanceViewBuilder_ == null) { + youtubeCreatorPerformanceView_ = builderForValue.build(); + } else { + youtubeCreatorPerformanceViewBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Fields available for query in `youtube_creator_performance_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView youtube_creator_performance_view = 11; + * + */ + public Builder mergeYoutubeCreatorPerformanceView( + com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView value) { + if (youtubeCreatorPerformanceViewBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && youtubeCreatorPerformanceView_ != null + && youtubeCreatorPerformanceView_ + != com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView + .getDefaultInstance()) { + getYoutubeCreatorPerformanceViewBuilder().mergeFrom(value); + } else { + youtubeCreatorPerformanceView_ = value; + } + } else { + youtubeCreatorPerformanceViewBuilder_.mergeFrom(value); + } + if (youtubeCreatorPerformanceView_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Fields available for query in `youtube_creator_performance_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView youtube_creator_performance_view = 11; + * + */ + public Builder clearYoutubeCreatorPerformanceView() { + bitField0_ = (bitField0_ & ~0x00000400); + youtubeCreatorPerformanceView_ = null; + if (youtubeCreatorPerformanceViewBuilder_ != null) { + youtubeCreatorPerformanceViewBuilder_.dispose(); + youtubeCreatorPerformanceViewBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Fields available for query in `youtube_creator_performance_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView youtube_creator_performance_view = 11; + * + */ + public com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView.Builder + getYoutubeCreatorPerformanceViewBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return getYoutubeCreatorPerformanceViewFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Fields available for query in `youtube_creator_performance_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView youtube_creator_performance_view = 11; + * + */ + public com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceViewOrBuilder + getYoutubeCreatorPerformanceViewOrBuilder() { + if (youtubeCreatorPerformanceViewBuilder_ != null) { + return youtubeCreatorPerformanceViewBuilder_.getMessageOrBuilder(); + } else { + return youtubeCreatorPerformanceView_ == null + ? com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView + .getDefaultInstance() + : youtubeCreatorPerformanceView_; + } + } + + /** + * + * + *
      +     * Fields available for query in `youtube_creator_performance_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView youtube_creator_performance_view = 11; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView, + com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView.Builder, + com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceViewOrBuilder> + getYoutubeCreatorPerformanceViewFieldBuilder() { + if (youtubeCreatorPerformanceViewBuilder_ == null) { + youtubeCreatorPerformanceViewBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView, + com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView.Builder, + com.google.shopping.merchant.reports.v1alpha + .YoutubeCreatorPerformanceViewOrBuilder>( + getYoutubeCreatorPerformanceView(), getParentForChildren(), isClean()); + youtubeCreatorPerformanceView_ = null; + } + return youtubeCreatorPerformanceViewBuilder_; + } + + private com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView + youtubeContentPerformanceView_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView, + com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView.Builder, + com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceViewOrBuilder> + youtubeContentPerformanceViewBuilder_; + + /** + * + * + *
      +     * Fields available for query in `youtube_content_performance_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView youtube_content_performance_view = 12; + * + * + * @return Whether the youtubeContentPerformanceView field is set. + */ + public boolean hasYoutubeContentPerformanceView() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
      +     * Fields available for query in `youtube_content_performance_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView youtube_content_performance_view = 12; + * + * + * @return The youtubeContentPerformanceView. + */ + public com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView + getYoutubeContentPerformanceView() { + if (youtubeContentPerformanceViewBuilder_ == null) { + return youtubeContentPerformanceView_ == null + ? com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView + .getDefaultInstance() + : youtubeContentPerformanceView_; + } else { + return youtubeContentPerformanceViewBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Fields available for query in `youtube_content_performance_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView youtube_content_performance_view = 12; + * + */ + public Builder setYoutubeContentPerformanceView( + com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView value) { + if (youtubeContentPerformanceViewBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + youtubeContentPerformanceView_ = value; + } else { + youtubeContentPerformanceViewBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Fields available for query in `youtube_content_performance_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView youtube_content_performance_view = 12; + * + */ + public Builder setYoutubeContentPerformanceView( + com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView.Builder + builderForValue) { + if (youtubeContentPerformanceViewBuilder_ == null) { + youtubeContentPerformanceView_ = builderForValue.build(); + } else { + youtubeContentPerformanceViewBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Fields available for query in `youtube_content_performance_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView youtube_content_performance_view = 12; + * + */ + public Builder mergeYoutubeContentPerformanceView( + com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView value) { + if (youtubeContentPerformanceViewBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) + && youtubeContentPerformanceView_ != null + && youtubeContentPerformanceView_ + != com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView + .getDefaultInstance()) { + getYoutubeContentPerformanceViewBuilder().mergeFrom(value); + } else { + youtubeContentPerformanceView_ = value; + } + } else { + youtubeContentPerformanceViewBuilder_.mergeFrom(value); + } + if (youtubeContentPerformanceView_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Fields available for query in `youtube_content_performance_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView youtube_content_performance_view = 12; + * + */ + public Builder clearYoutubeContentPerformanceView() { + bitField0_ = (bitField0_ & ~0x00000800); + youtubeContentPerformanceView_ = null; + if (youtubeContentPerformanceViewBuilder_ != null) { + youtubeContentPerformanceViewBuilder_.dispose(); + youtubeContentPerformanceViewBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Fields available for query in `youtube_content_performance_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView youtube_content_performance_view = 12; + * + */ + public com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView.Builder + getYoutubeContentPerformanceViewBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return getYoutubeContentPerformanceViewFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Fields available for query in `youtube_content_performance_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView youtube_content_performance_view = 12; + * + */ + public com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceViewOrBuilder + getYoutubeContentPerformanceViewOrBuilder() { + if (youtubeContentPerformanceViewBuilder_ != null) { + return youtubeContentPerformanceViewBuilder_.getMessageOrBuilder(); + } else { + return youtubeContentPerformanceView_ == null + ? com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView + .getDefaultInstance() + : youtubeContentPerformanceView_; + } + } + + /** + * + * + *
      +     * Fields available for query in `youtube_content_performance_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView youtube_content_performance_view = 12; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView, + com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView.Builder, + com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceViewOrBuilder> + getYoutubeContentPerformanceViewFieldBuilder() { + if (youtubeContentPerformanceViewBuilder_ == null) { + youtubeContentPerformanceViewBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView, + com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView.Builder, + com.google.shopping.merchant.reports.v1alpha + .YoutubeContentPerformanceViewOrBuilder>( + getYoutubeContentPerformanceView(), getParentForChildren(), isClean()); + youtubeContentPerformanceView_ = null; + } + return youtubeContentPerformanceViewBuilder_; + } + + private com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView + youtubeProductPerformanceView_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView, + com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView.Builder, + com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceViewOrBuilder> + youtubeProductPerformanceViewBuilder_; + + /** + * + * + *
      +     * Fields available for query in `youtube_product_performance_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView youtube_product_performance_view = 13; + * + * + * @return Whether the youtubeProductPerformanceView field is set. + */ + public boolean hasYoutubeProductPerformanceView() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
      +     * Fields available for query in `youtube_product_performance_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView youtube_product_performance_view = 13; + * + * + * @return The youtubeProductPerformanceView. + */ + public com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView + getYoutubeProductPerformanceView() { + if (youtubeProductPerformanceViewBuilder_ == null) { + return youtubeProductPerformanceView_ == null + ? com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView + .getDefaultInstance() + : youtubeProductPerformanceView_; + } else { + return youtubeProductPerformanceViewBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Fields available for query in `youtube_product_performance_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView youtube_product_performance_view = 13; + * + */ + public Builder setYoutubeProductPerformanceView( + com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView value) { + if (youtubeProductPerformanceViewBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + youtubeProductPerformanceView_ = value; + } else { + youtubeProductPerformanceViewBuilder_.setMessage(value); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Fields available for query in `youtube_product_performance_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView youtube_product_performance_view = 13; + * + */ + public Builder setYoutubeProductPerformanceView( + com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView.Builder + builderForValue) { + if (youtubeProductPerformanceViewBuilder_ == null) { + youtubeProductPerformanceView_ = builderForValue.build(); + } else { + youtubeProductPerformanceViewBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Fields available for query in `youtube_product_performance_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView youtube_product_performance_view = 13; + * + */ + public Builder mergeYoutubeProductPerformanceView( + com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView value) { + if (youtubeProductPerformanceViewBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) + && youtubeProductPerformanceView_ != null + && youtubeProductPerformanceView_ + != com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView + .getDefaultInstance()) { + getYoutubeProductPerformanceViewBuilder().mergeFrom(value); + } else { + youtubeProductPerformanceView_ = value; + } + } else { + youtubeProductPerformanceViewBuilder_.mergeFrom(value); + } + if (youtubeProductPerformanceView_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Fields available for query in `youtube_product_performance_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView youtube_product_performance_view = 13; + * + */ + public Builder clearYoutubeProductPerformanceView() { + bitField0_ = (bitField0_ & ~0x00001000); + youtubeProductPerformanceView_ = null; + if (youtubeProductPerformanceViewBuilder_ != null) { + youtubeProductPerformanceViewBuilder_.dispose(); + youtubeProductPerformanceViewBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Fields available for query in `youtube_product_performance_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView youtube_product_performance_view = 13; + * + */ + public com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView.Builder + getYoutubeProductPerformanceViewBuilder() { + bitField0_ |= 0x00001000; + onChanged(); + return getYoutubeProductPerformanceViewFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Fields available for query in `youtube_product_performance_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView youtube_product_performance_view = 13; + * + */ + public com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceViewOrBuilder + getYoutubeProductPerformanceViewOrBuilder() { + if (youtubeProductPerformanceViewBuilder_ != null) { + return youtubeProductPerformanceViewBuilder_.getMessageOrBuilder(); + } else { + return youtubeProductPerformanceView_ == null + ? com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView + .getDefaultInstance() + : youtubeProductPerformanceView_; + } + } + + /** + * + * + *
      +     * Fields available for query in `youtube_product_performance_view` table.
      +     * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView youtube_product_performance_view = 13; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView, + com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView.Builder, + com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceViewOrBuilder> + getYoutubeProductPerformanceViewFieldBuilder() { + if (youtubeProductPerformanceViewBuilder_ == null) { + youtubeProductPerformanceViewBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView, + com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView.Builder, + com.google.shopping.merchant.reports.v1alpha + .YoutubeProductPerformanceViewOrBuilder>( + getYoutubeProductPerformanceView(), getParentForChildren(), isClean()); + youtubeProductPerformanceView_ = null; + } + return youtubeProductPerformanceViewBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.reports.v1alpha.ReportRow) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.reports.v1alpha.ReportRow) + private static final com.google.shopping.merchant.reports.v1alpha.ReportRow DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.shopping.merchant.reports.v1alpha.ReportRow(); + } + + public static com.google.shopping.merchant.reports.v1alpha.ReportRow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReportRow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ReportRow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/ReportRowOrBuilder.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/ReportRowOrBuilder.java new file mode 100644 index 000000000000..52193aba8217 --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/ReportRowOrBuilder.java @@ -0,0 +1,610 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/reports/v1alpha/reports.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.reports.v1alpha; + +public interface ReportRowOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.reports.v1alpha.ReportRow) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Fields available for query in `product_performance_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.ProductPerformanceView product_performance_view = 1; + * + * + * @return Whether the productPerformanceView field is set. + */ + boolean hasProductPerformanceView(); + + /** + * + * + *
      +   * Fields available for query in `product_performance_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.ProductPerformanceView product_performance_view = 1; + * + * + * @return The productPerformanceView. + */ + com.google.shopping.merchant.reports.v1alpha.ProductPerformanceView getProductPerformanceView(); + + /** + * + * + *
      +   * Fields available for query in `product_performance_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.ProductPerformanceView product_performance_view = 1; + * + */ + com.google.shopping.merchant.reports.v1alpha.ProductPerformanceViewOrBuilder + getProductPerformanceViewOrBuilder(); + + /** + * + * + *
      +   * Fields available for query in `non_product_performance_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.NonProductPerformanceView non_product_performance_view = 7; + * + * + * @return Whether the nonProductPerformanceView field is set. + */ + boolean hasNonProductPerformanceView(); + + /** + * + * + *
      +   * Fields available for query in `non_product_performance_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.NonProductPerformanceView non_product_performance_view = 7; + * + * + * @return The nonProductPerformanceView. + */ + com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceView + getNonProductPerformanceView(); + + /** + * + * + *
      +   * Fields available for query in `non_product_performance_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.NonProductPerformanceView non_product_performance_view = 7; + * + */ + com.google.shopping.merchant.reports.v1alpha.NonProductPerformanceViewOrBuilder + getNonProductPerformanceViewOrBuilder(); + + /** + * + * + *
      +   * Fields available for query in `product_view` table.
      +   * 
      + * + * .google.shopping.merchant.reports.v1alpha.ProductView product_view = 2; + * + * @return Whether the productView field is set. + */ + boolean hasProductView(); + + /** + * + * + *
      +   * Fields available for query in `product_view` table.
      +   * 
      + * + * .google.shopping.merchant.reports.v1alpha.ProductView product_view = 2; + * + * @return The productView. + */ + com.google.shopping.merchant.reports.v1alpha.ProductView getProductView(); + + /** + * + * + *
      +   * Fields available for query in `product_view` table.
      +   * 
      + * + * .google.shopping.merchant.reports.v1alpha.ProductView product_view = 2; + */ + com.google.shopping.merchant.reports.v1alpha.ProductViewOrBuilder getProductViewOrBuilder(); + + /** + * + * + *
      +   * Fields available for query in `price_competitiveness_product_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView price_competitiveness_product_view = 3; + * + * + * @return Whether the priceCompetitivenessProductView field is set. + */ + boolean hasPriceCompetitivenessProductView(); + + /** + * + * + *
      +   * Fields available for query in `price_competitiveness_product_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView price_competitiveness_product_view = 3; + * + * + * @return The priceCompetitivenessProductView. + */ + com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView + getPriceCompetitivenessProductView(); + + /** + * + * + *
      +   * Fields available for query in `price_competitiveness_product_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView price_competitiveness_product_view = 3; + * + */ + com.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductViewOrBuilder + getPriceCompetitivenessProductViewOrBuilder(); + + /** + * + * + *
      +   * Fields available for query in `price_insights_product_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.PriceInsightsProductView price_insights_product_view = 4; + * + * + * @return Whether the priceInsightsProductView field is set. + */ + boolean hasPriceInsightsProductView(); + + /** + * + * + *
      +   * Fields available for query in `price_insights_product_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.PriceInsightsProductView price_insights_product_view = 4; + * + * + * @return The priceInsightsProductView. + */ + com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductView + getPriceInsightsProductView(); + + /** + * + * + *
      +   * Fields available for query in `price_insights_product_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.PriceInsightsProductView price_insights_product_view = 4; + * + */ + com.google.shopping.merchant.reports.v1alpha.PriceInsightsProductViewOrBuilder + getPriceInsightsProductViewOrBuilder(); + + /** + * + * + *
      +   * Fields available for query in `best_sellers_product_cluster_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView best_sellers_product_cluster_view = 5; + * + * + * @return Whether the bestSellersProductClusterView field is set. + */ + boolean hasBestSellersProductClusterView(); + + /** + * + * + *
      +   * Fields available for query in `best_sellers_product_cluster_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView best_sellers_product_cluster_view = 5; + * + * + * @return The bestSellersProductClusterView. + */ + com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView + getBestSellersProductClusterView(); + + /** + * + * + *
      +   * Fields available for query in `best_sellers_product_cluster_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.BestSellersProductClusterView best_sellers_product_cluster_view = 5; + * + */ + com.google.shopping.merchant.reports.v1alpha.BestSellersProductClusterViewOrBuilder + getBestSellersProductClusterViewOrBuilder(); + + /** + * + * + *
      +   * Fields available for query in `best_sellers_brand_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.BestSellersBrandView best_sellers_brand_view = 6; + * + * + * @return Whether the bestSellersBrandView field is set. + */ + boolean hasBestSellersBrandView(); + + /** + * + * + *
      +   * Fields available for query in `best_sellers_brand_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.BestSellersBrandView best_sellers_brand_view = 6; + * + * + * @return The bestSellersBrandView. + */ + com.google.shopping.merchant.reports.v1alpha.BestSellersBrandView getBestSellersBrandView(); + + /** + * + * + *
      +   * Fields available for query in `best_sellers_brand_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.BestSellersBrandView best_sellers_brand_view = 6; + * + */ + com.google.shopping.merchant.reports.v1alpha.BestSellersBrandViewOrBuilder + getBestSellersBrandViewOrBuilder(); + + /** + * + * + *
      +   * Fields available for query in `competitive_visibility_competitor_view`
      +   * table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView competitive_visibility_competitor_view = 8; + * + * + * @return Whether the competitiveVisibilityCompetitorView field is set. + */ + boolean hasCompetitiveVisibilityCompetitorView(); + + /** + * + * + *
      +   * Fields available for query in `competitive_visibility_competitor_view`
      +   * table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView competitive_visibility_competitor_view = 8; + * + * + * @return The competitiveVisibilityCompetitorView. + */ + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView + getCompetitiveVisibilityCompetitorView(); + + /** + * + * + *
      +   * Fields available for query in `competitive_visibility_competitor_view`
      +   * table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorView competitive_visibility_competitor_view = 8; + * + */ + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityCompetitorViewOrBuilder + getCompetitiveVisibilityCompetitorViewOrBuilder(); + + /** + * + * + *
      +   * Fields available for query in `competitive_visibility_top_merchant_view`
      +   * table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView competitive_visibility_top_merchant_view = 9; + * + * + * @return Whether the competitiveVisibilityTopMerchantView field is set. + */ + boolean hasCompetitiveVisibilityTopMerchantView(); + + /** + * + * + *
      +   * Fields available for query in `competitive_visibility_top_merchant_view`
      +   * table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView competitive_visibility_top_merchant_view = 9; + * + * + * @return The competitiveVisibilityTopMerchantView. + */ + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView + getCompetitiveVisibilityTopMerchantView(); + + /** + * + * + *
      +   * Fields available for query in `competitive_visibility_top_merchant_view`
      +   * table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantView competitive_visibility_top_merchant_view = 9; + * + */ + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityTopMerchantViewOrBuilder + getCompetitiveVisibilityTopMerchantViewOrBuilder(); + + /** + * + * + *
      +   * Fields available for query in `competitive_visibility_benchmark_view`
      +   * table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView competitive_visibility_benchmark_view = 10; + * + * + * @return Whether the competitiveVisibilityBenchmarkView field is set. + */ + boolean hasCompetitiveVisibilityBenchmarkView(); + + /** + * + * + *
      +   * Fields available for query in `competitive_visibility_benchmark_view`
      +   * table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView competitive_visibility_benchmark_view = 10; + * + * + * @return The competitiveVisibilityBenchmarkView. + */ + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView + getCompetitiveVisibilityBenchmarkView(); + + /** + * + * + *
      +   * Fields available for query in `competitive_visibility_benchmark_view`
      +   * table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkView competitive_visibility_benchmark_view = 10; + * + */ + com.google.shopping.merchant.reports.v1alpha.CompetitiveVisibilityBenchmarkViewOrBuilder + getCompetitiveVisibilityBenchmarkViewOrBuilder(); + + /** + * + * + *
      +   * Fields available for query in `youtube_creator_performance_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView youtube_creator_performance_view = 11; + * + * + * @return Whether the youtubeCreatorPerformanceView field is set. + */ + boolean hasYoutubeCreatorPerformanceView(); + + /** + * + * + *
      +   * Fields available for query in `youtube_creator_performance_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView youtube_creator_performance_view = 11; + * + * + * @return The youtubeCreatorPerformanceView. + */ + com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView + getYoutubeCreatorPerformanceView(); + + /** + * + * + *
      +   * Fields available for query in `youtube_creator_performance_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView youtube_creator_performance_view = 11; + * + */ + com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceViewOrBuilder + getYoutubeCreatorPerformanceViewOrBuilder(); + + /** + * + * + *
      +   * Fields available for query in `youtube_content_performance_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView youtube_content_performance_view = 12; + * + * + * @return Whether the youtubeContentPerformanceView field is set. + */ + boolean hasYoutubeContentPerformanceView(); + + /** + * + * + *
      +   * Fields available for query in `youtube_content_performance_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView youtube_content_performance_view = 12; + * + * + * @return The youtubeContentPerformanceView. + */ + com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView + getYoutubeContentPerformanceView(); + + /** + * + * + *
      +   * Fields available for query in `youtube_content_performance_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView youtube_content_performance_view = 12; + * + */ + com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceViewOrBuilder + getYoutubeContentPerformanceViewOrBuilder(); + + /** + * + * + *
      +   * Fields available for query in `youtube_product_performance_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView youtube_product_performance_view = 13; + * + * + * @return Whether the youtubeProductPerformanceView field is set. + */ + boolean hasYoutubeProductPerformanceView(); + + /** + * + * + *
      +   * Fields available for query in `youtube_product_performance_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView youtube_product_performance_view = 13; + * + * + * @return The youtubeProductPerformanceView. + */ + com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView + getYoutubeProductPerformanceView(); + + /** + * + * + *
      +   * Fields available for query in `youtube_product_performance_view` table.
      +   * 
      + * + * + * .google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView youtube_product_performance_view = 13; + * + */ + com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceViewOrBuilder + getYoutubeProductPerformanceViewOrBuilder(); +} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/ReportsProto.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/ReportsProto.java new file mode 100644 index 000000000000..368dc71e63b6 --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/ReportsProto.java @@ -0,0 +1,1107 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/reports/v1alpha/reports.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.reports.v1alpha; + +public final class ReportsProto { + private ReportsProto() {} + + 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_shopping_merchant_reports_v1alpha_SearchRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_reports_v1alpha_SearchRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_reports_v1alpha_SearchResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_reports_v1alpha_SearchResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_reports_v1alpha_ReportRow_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_reports_v1alpha_ReportRow_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_reports_v1alpha_ProductPerformanceView_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_reports_v1alpha_ProductPerformanceView_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_reports_v1alpha_ProductView_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_reports_v1alpha_ProductView_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_reports_v1alpha_ProductView_ItemIssue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_reports_v1alpha_ProductView_ItemIssue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_reports_v1alpha_ProductView_ItemIssue_ItemIssueType_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_reports_v1alpha_ProductView_ItemIssue_ItemIssueType_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_reports_v1alpha_ProductView_ItemIssue_ItemIssueSeverity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_reports_v1alpha_ProductView_ItemIssue_ItemIssueSeverity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_reports_v1alpha_ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerReportingContext_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_reports_v1alpha_ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerReportingContext_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_reports_v1alpha_PriceCompetitivenessProductView_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_reports_v1alpha_PriceCompetitivenessProductView_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_reports_v1alpha_PriceInsightsProductView_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_reports_v1alpha_PriceInsightsProductView_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_reports_v1alpha_BestSellersProductClusterView_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_reports_v1alpha_BestSellersProductClusterView_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_reports_v1alpha_BestSellersBrandView_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_reports_v1alpha_BestSellersBrandView_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_reports_v1alpha_NonProductPerformanceView_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_reports_v1alpha_NonProductPerformanceView_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_reports_v1alpha_CompetitiveVisibilityCompetitorView_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_reports_v1alpha_CompetitiveVisibilityCompetitorView_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_reports_v1alpha_CompetitiveVisibilityTopMerchantView_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_reports_v1alpha_CompetitiveVisibilityTopMerchantView_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_reports_v1alpha_CompetitiveVisibilityBenchmarkView_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_reports_v1alpha_CompetitiveVisibilityBenchmarkView_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_reports_v1alpha_MarketingMethod_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_reports_v1alpha_MarketingMethod_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_reports_v1alpha_ReportGranularity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_reports_v1alpha_ReportGranularity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_reports_v1alpha_RelativeDemand_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_reports_v1alpha_RelativeDemand_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_reports_v1alpha_RelativeDemandChangeType_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_reports_v1alpha_RelativeDemandChangeType_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_reports_v1alpha_TrafficSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_reports_v1alpha_TrafficSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_reports_v1alpha_YoutubeCreatorPerformanceView_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_reports_v1alpha_YoutubeCreatorPerformanceView_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_reports_v1alpha_YoutubeContentPerformanceView_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_reports_v1alpha_YoutubeContentPerformanceView_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_reports_v1alpha_YoutubeProductPerformanceView_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_reports_v1alpha_YoutubeProductPerformanceView_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" + + "6google/shopping/merchant/reports/v1alpha/reports.proto\022(google.shopping.mercha" + + "nt.reports.v1alpha\032\034google/api/annotatio" + + "ns.proto\032\027google/api/client.proto\032\037googl" + + "e/api/field_behavior.proto\032\037google/protobuf/timestamp.proto\032" + + " google/shopping/type/types.proto\032\026google/type/date.proto\"i\n" + + "\r" + + "SearchRequest\022\023\n" + + "\006parent\030\001 \001(\tB\003\340A\002\022\022\n" + + "\005query\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\"o\n" + + "\016SearchResponse\022D\n" + + "\007results\030\001" + + " \003(\01323.google.shopping.merchant.reports.v1alpha.ReportRow\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\264\013\n" + + "\tReportRow\022b\n" + + "\030product_performance_view\030\001 \001(\0132@.google.shopp" + + "ing.merchant.reports.v1alpha.ProductPerformanceView\022i\n" + + "\034non_product_performance_view\030\007 \001(\0132C.google.shopping.merchant.rep" + + "orts.v1alpha.NonProductPerformanceView\022K\n" + + "\014product_view\030\002" + + " \001(\01325.google.shopping.merchant.reports.v1alpha.ProductView\022u\n" + + "\"price_competitiveness_product_view\030\003 \001(\0132" + + "I.google.shopping.merchant.reports.v1alpha.PriceCompetitivenessProductView\022g\n" + + "\033price_insights_product_view\030\004 \001(\0132B.google" + + ".shopping.merchant.reports.v1alpha.PriceInsightsProductView\022r\n" + + "!best_sellers_product_cluster_view\030\005 \001(\0132G.google.shopping" + + ".merchant.reports.v1alpha.BestSellersProductClusterView\022_\n" + + "\027best_sellers_brand_view\030\006" + + " \001(\0132>.google.shopping.merchant.reports.v1alpha.BestSellersBrandView\022}\n" + + "&competitive_visibility_competitor_view\030\010 \001(\013" + + "2M.google.shopping.merchant.reports.v1al" + + "pha.CompetitiveVisibilityCompetitorView\022\200\001\n" + + "(competitive_visibility_top_merchant_view\030\t" + + " \001(\0132N.google.shopping.merchant.re" + + "ports.v1alpha.CompetitiveVisibilityTopMerchantView\022{\n" + + "%competitive_visibility_benchmark_view\030\n" + + " \001(\0132L.google.shopping.merc" + + "hant.reports.v1alpha.CompetitiveVisibilityBenchmarkView\022q\n" + + " youtube_creator_performance_view\030\013 \001(\0132G.google.shopping.merc" + + "hant.reports.v1alpha.YoutubeCreatorPerformanceView\022q\n" + + " youtube_content_performance_view\030\014 \001(\0132G.google.shopping.merchant." + + "reports.v1alpha.YoutubeContentPerformanceView\022q\n" + + " youtube_product_performance_view\030\r" + + " \001(\0132G.google.shopping.merchant.repor" + + "ts.v1alpha.YoutubeProductPerformanceView\"\302\n\n" + + "\026ProductPerformanceView\022l\n" + + "\020marketing_method\030\001 \001(\0162M.google.shopping.merchant" + + ".reports.v1alpha.MarketingMethod.MarketingMethodEnumH\000\210\001\001\022\037\n" + + "\004date\030\002 \001(\0132\021.google.type.Date\022\037\n" + + "\004week\030\003 \001(\0132\021.google.type.Date\022\"\n" + + "\025customer_country_code\030\004 \001(\tH\001\210\001\001\022\025\n" + + "\010offer_id\030\005 \001(\tH\002\210\001\001\022\022\n" + + "\005title\030\006 \001(\tH\003\210\001\001\022\022\n" + + "\005brand\030\007 \001(\tH\004\210\001\001\022\030\n" + + "\013category_l1\030\010 \001(\tH\005\210\001\001\022\030\n" + + "\013category_l2\030\t \001(\tH\006\210\001\001\022\030\n" + + "\013category_l3\030\n" + + " \001(\tH\007\210\001\001\022\030\n" + + "\013category_l4\030\013 \001(\tH\010\210\001\001\022\030\n" + + "\013category_l5\030\014 \001(\tH\t\210\001\001\022\034\n" + + "\017product_type_l1\030\r" + + " \001(\tH\n" + + "\210\001\001\022\034\n" + + "\017product_type_l2\030\016 \001(\tH\013\210\001\001\022\034\n" + + "\017product_type_l3\030\017 \001(\tH\014\210\001\001\022\034\n" + + "\017product_type_l4\030\020 \001(\tH\r" + + "\210\001\001\022\034\n" + + "\017product_type_l5\030\021 \001(\tH\016\210\001\001\022\032\n\r" + + "custom_label0\030\022 \001(\tH\017\210\001\001\022\032\n\r" + + "custom_label1\030\023 \001(\tH\020\210\001\001\022\032\n\r" + + "custom_label2\030\024 \001(\tH\021\210\001\001\022\032\n\r" + + "custom_label3\030\025 \001(\tH\022\210\001\001\022\032\n\r" + + "custom_label4\030\026 \001(\tH\023\210\001\001\022\023\n" + + "\006clicks\030\027 \001(\003H\024\210\001\001\022\030\n" + + "\013impressions\030\030 \001(\003H\025\210\001\001\022\037\n" + + "\022click_through_rate\030\031 \001(\001H\026\210\001\001\022\030\n" + + "\013conversions\030\032 \001(\001H\027\210\001\001\0225\n" + + "\020conversion_value\030\033 \001(\0132\033.google.shopping.type.Price\022\034\n" + + "\017conversion_rate\030\034 \001(\001H\030\210\001\001B\023\n" + + "\021_marketing_methodB\030\n" + + "\026_customer_country_codeB\013\n" + + "\t_offer_idB\010\n" + + "\006_titleB\010\n" + + "\006_brandB\016\n" + + "\014_category_l1B\016\n" + + "\014_category_l2B\016\n" + + "\014_category_l3B\016\n" + + "\014_category_l4B\016\n" + + "\014_category_l5B\022\n" + + "\020_product_type_l1B\022\n" + + "\020_product_type_l2B\022\n" + + "\020_product_type_l3B\022\n" + + "\020_product_type_l4B\022\n" + + "\020_product_type_l5B\020\n" + + "\016_custom_label0B\020\n" + + "\016_custom_label1B\020\n" + + "\016_custom_label2B\020\n" + + "\016_custom_label3B\020\n" + + "\016_custom_label4B\t\n" + + "\007_clicksB\016\n" + + "\014_impressionsB\025\n" + + "\023_click_through_rateB\016\n" + + "\014_conversionsB\022\n" + + "\020_conversion_rate\"\312\027\n" + + "\013ProductView\022\017\n" + + "\002id\030\001 \001(\tH\000\210\001\001\022?\n" + + "\007channel\030\034 \001(\0162" + + ").google.shopping.type.Channel.ChannelEnumH\001\210\001\001\022\032\n\r" + + "language_code\030\002 \001(\tH\002\210\001\001\022\027\n\n" + + "feed_label\030\003 \001(\tH\003\210\001\001\022\025\n" + + "\010offer_id\030\004 \001(\tH\004\210\001\001\022\022\n" + + "\005title\030\005 \001(\tH\005\210\001\001\022\022\n" + + "\005brand\030\006 \001(\tH\006\210\001\001\022\030\n" + + "\013category_l1\030\007 \001(\tH\007\210\001\001\022\030\n" + + "\013category_l2\030\010 \001(\tH\010\210\001\001\022\030\n" + + "\013category_l3\030\t \001(\tH\t\210\001\001\022\030\n" + + "\013category_l4\030\n" + + " \001(\tH\n" + + "\210\001\001\022\030\n" + + "\013category_l5\030\013 \001(\tH\013\210\001\001\022\034\n" + + "\017product_type_l1\030\014 \001(\tH\014\210\001\001\022\034\n" + + "\017product_type_l2\030\r" + + " \001(\tH\r" + + "\210\001\001\022\034\n" + + "\017product_type_l3\030\016 \001(\tH\016\210\001\001\022\034\n" + + "\017product_type_l4\030\017 \001(\tH\017\210\001\001\022\034\n" + + "\017product_type_l5\030\020 \001(\tH\020\210\001\001\022*\n" + + "\005price\030\021 \001(\0132\033.google.shopping.type.Price\022\026\n" + + "\tcondition\030\022 \001(\tH\021\210\001\001\022\031\n" + + "\014availability\030\023 \001(\tH\022\210\001\001\022\033\n" + + "\016shipping_label\030\024 \001(\tH\023\210\001\001\022\014\n" + + "\004gtin\030\025 \003(\t\022\032\n\r" + + "item_group_id\030\026 \001(\tH\024\210\001\001\022\033\n" + + "\016thumbnail_link\030\027 \001(\tH\025\210\001\001\0221\n\r" + + "creation_time\030\030 \001(\0132\032.google.protobuf.Timestamp\022*\n" + + "\017expiration_date\030\031 \001(\0132\021.google.type.Date\022\210\001\n" + + "#aggregated_reporting_context_status\030\032 \001(\0162V.google.shopping.me" + + "rchant.reports.v1alpha.ProductView.AggregatedReportingContextStatusH\026\210\001\001\022T\n" + + "\013item_issues\030\033 \003(\0132?.google.shopping.merchant" + + ".reports.v1alpha.ProductView.ItemIssue\022]\n" + + "\017click_potential\030\035 \001(\0162D.google.shoppin" + + "g.merchant.reports.v1alpha.ProductView.ClickPotential\022!\n" + + "\024click_potential_rank\030\036 \001(\003H\027\210\001\001\032\270\t\n" + + "\tItemIssue\022[\n" + + "\004type\030\001 \001(\0132M.g" + + "oogle.shopping.merchant.reports.v1alpha.ProductView.ItemIssue.ItemIssueType\022c\n" + + "\010severity\030\002 \001(\0132Q.google.shopping.merchant" + + ".reports.v1alpha.ProductView.ItemIssue.ItemIssueSeverity\022l\n\n" + + "resolution\030\003 \001(\0162S.google.shopping.merchant.reports.v1alpha." + + "ProductView.ItemIssue.ItemIssueResolutionH\000\210\001\001\032e\n\r" + + "ItemIssueType\022\021\n" + + "\004code\030\001 \001(\tH\000\210\001\001\022 \n" + + "\023canonical_attribute\030\002 \001(\tH\001\210\001\001B\007\n" + + "\005_codeB\026\n" + + "\024_canonical_attribute\032\231\005\n" + + "\021ItemIssueSeverity\022\232\001\n" + + "\036severity_per_reporting_context\030\001 \003(\0132r.google.shopping.merchant." + + "reports.v1alpha.ProductView.ItemIssue.It" + + "emIssueSeverity.IssueSeverityPerReportingContext\022\213\001\n" + + "\023aggregated_severity\030\002 \001(\0162i.google.shopping.merchant.reports.v1alph" + + "a.ProductView.ItemIssue.ItemIssueSeverity.AggregatedIssueSeverityH\000\210\001\001\032\317\001\n" + + " IssueSeverityPerReportingContext\022[\n" + + "\021reporting_context\030\001 \001(\0162;.google.shopping.type.Re" + + "portingContext.ReportingContextEnumH\000\210\001\001\022\035\n" + + "\025disapproved_countries\030\002 \003(\t\022\031\n" + + "\021demoted_countries\030\003 \003(\tB\024\n" + + "\022_reporting_context\"o\n" + + "\027AggregatedIssueSeverity\022)\n" + + "%AGGREGATED_ISSUE_SEVERITY_UNSPECIFIED\020\000\022\017\n" + + "\013DISAPPROVED\020\001\022\013\n" + + "\007DEMOTED\020\002\022\013\n" + + "\007PENDING\020\003B\026\n" + + "\024_aggregated_severity\"i\n" + + "\023ItemIssueResolution\022%\n" + + "!ITEM_ISSUE_RESOLUTION_UNSPECIFIED\020\000\022\023\n" + + "\017MERCHANT_ACTION\020\001\022\026\n" + + "\022PENDING_PROCESSING\020\002B\r\n" + + "\013_resolution\"\251\001\n" + + " AggregatedReportingContextStatus\0223\n" + + "/AGGREGATED_REPORTING_CONTEXT_STATUS_UNSPECIFIED\020\000\022\037\n" + + "\033NOT_ELIGIBLE_OR_DISAPPROVED\020\001\022\013\n" + + "\007PENDING\020\002\022\024\n" + + "\020ELIGIBLE_LIMITED\020\003\022\014\n" + + "\010ELIGIBLE\020\004\"P\n" + + "\016ClickPotential\022\037\n" + + "\033CLICK_POTENTIAL_UNSPECIFIED\020\000\022\007\n" + + "\003LOW\020\001\022\n\n" + + "\006MEDIUM\020\002\022\010\n" + + "\004HIGH\020\003B\005\n" + + "\003_idB\n\n" + + "\010_channelB\020\n" + + "\016_language_codeB\r\n" + + "\013_feed_labelB\013\n" + + "\t_offer_idB\010\n" + + "\006_titleB\010\n" + + "\006_brandB\016\n" + + "\014_category_l1B\016\n" + + "\014_category_l2B\016\n" + + "\014_category_l3B\016\n" + + "\014_category_l4B\016\n" + + "\014_category_l5B\022\n" + + "\020_product_type_l1B\022\n" + + "\020_product_type_l2B\022\n" + + "\020_product_type_l3B\022\n" + + "\020_product_type_l4B\022\n" + + "\020_product_type_l5B\014\n\n" + + "_conditionB\017\n\r" + + "_availabilityB\021\n" + + "\017_shipping_labelB\020\n" + + "\016_item_group_idB\021\n" + + "\017_thumbnail_linkB&\n" + + "$_aggregated_reporting_context_statusB\027\n" + + "\025_click_potential_rank\"\201\006\n" + + "\037PriceCompetitivenessProductView\022 \n" + + "\023report_country_code\030\001 \001(\tH\000\210\001\001\022\017\n" + + "\002id\030\002 \001(\tH\001\210\001\001\022\025\n" + + "\010offer_id\030\003 \001(\tH\002\210\001\001\022\022\n" + + "\005title\030\004 \001(\tH\003\210\001\001\022\022\n" + + "\005brand\030\005 \001(\tH\004\210\001\001\022\030\n" + + "\013category_l1\030\006 \001(\tH\005\210\001\001\022\030\n" + + "\013category_l2\030\007 \001(\tH\006\210\001\001\022\030\n" + + "\013category_l3\030\010 \001(\tH\007\210\001\001\022\030\n" + + "\013category_l4\030\t \001(\tH\010\210\001\001\022\030\n" + + "\013category_l5\030\n" + + " \001(\tH\t\210\001\001\022\034\n" + + "\017product_type_l1\030\013 \001(\tH\n" + + "\210\001\001\022\034\n" + + "\017product_type_l2\030\014 \001(\tH\013\210\001\001\022\034\n" + + "\017product_type_l3\030\r" + + " \001(\tH\014\210\001\001\022\034\n" + + "\017product_type_l4\030\016 \001(\tH\r" + + "\210\001\001\022\034\n" + + "\017product_type_l5\030\017 \001(\tH\016\210\001\001\022*\n" + + "\005price\030\020 \001(\0132\033.google.shopping.type.Price\0224\n" + + "\017benchmark_price\030\021 \001(\0132\033.google.shopping.type.PriceB\026\n" + + "\024_report_country_codeB\005\n" + + "\003_idB\013\n" + + "\t_offer_idB\010\n" + + "\006_titleB\010\n" + + "\006_brandB\016\n" + + "\014_category_l1B\016\n" + + "\014_category_l2B\016\n" + + "\014_category_l3B\016\n" + + "\014_category_l4B\016\n" + + "\014_category_l5B\022\n" + + "\020_product_type_l1B\022\n" + + "\020_product_type_l2B\022\n" + + "\020_product_type_l3B\022\n" + + "\020_product_type_l4B\022\n" + + "\020_product_type_l5\"\210\t\n" + + "\030PriceInsightsProductView\022\017\n" + + "\002id\030\001 \001(\tH\000\210\001\001\022\025\n" + + "\010offer_id\030\002 \001(\tH\001\210\001\001\022\022\n" + + "\005title\030\003 \001(\tH\002\210\001\001\022\022\n" + + "\005brand\030\004 \001(\tH\003\210\001\001\022\030\n" + + "\013category_l1\030\005 \001(\tH\004\210\001\001\022\030\n" + + "\013category_l2\030\006 \001(\tH\005\210\001\001\022\030\n" + + "\013category_l3\030\007 \001(\tH\006\210\001\001\022\030\n" + + "\013category_l4\030\010 \001(\tH\007\210\001\001\022\030\n" + + "\013category_l5\030\t \001(\tH\010\210\001\001\022\034\n" + + "\017product_type_l1\030\n" + + " \001(\tH\t\210\001\001\022\034\n" + + "\017product_type_l2\030\013 \001(\tH\n" + + "\210\001\001\022\034\n" + + "\017product_type_l3\030\014 \001(\tH\013\210\001\001\022\034\n" + + "\017product_type_l4\030\r" + + " \001(\tH\014\210\001\001\022\034\n" + + "\017product_type_l5\030\016 \001(\tH\r" + + "\210\001\001\022*\n" + + "\005price\030\017 \001(\0132\033.google.shopping.type.Price\0224\n" + + "\017suggested_price\030\020 \001(\0132\033.google.shopping.type.Price\0222\n" + + "%predicted_impressions_change_fraction\030\021 \001(\001H\016\210\001\001\022-\n" + + " predicted_clicks_change_fraction\030\022 \001(\001H\017\210\001\001\0222\n" + + "%predicted_conversions_change_fraction\030\023 \001(\001H\020\210\001\001\022g\n\r" + + "effectiveness\030\026 \001(\0162P.google.shopping.merchant.reports.v" + + "1alpha.PriceInsightsProductView.Effectiveness\"M\n\r" + + "Effectiveness\022\035\n" + + "\031EFFECTIVENESS_UNSPECIFIED\020\000\022\007\n" + + "\003LOW\020\001\022\n\n" + + "\006MEDIUM\020\002\022\010\n" + + "\004HIGH\020\003B\005\n" + + "\003_idB\013\n" + + "\t_offer_idB\010\n" + + "\006_titleB\010\n" + + "\006_brandB\016\n" + + "\014_category_l1B\016\n" + + "\014_category_l2B\016\n" + + "\014_category_l3B\016\n" + + "\014_category_l4B\016\n" + + "\014_category_l5B\022\n" + + "\020_product_type_l1B\022\n" + + "\020_product_type_l2B\022\n" + + "\020_product_type_l3B\022\n" + + "\020_product_type_l4B\022\n" + + "\020_product_type_l5B(\n" + + "&_predicted_impressions_change_fractionB#\n" + + "!_predicted_clicks_change_fractionB(\n" + + "&_predicted_conversions_change_fraction\"\366\013\n" + + "\035BestSellersProductClusterView\022&\n" + + "\013report_date\030\001 \001(\0132\021.google.type.Date\022r\n" + + "\022report_granularity\030\002 \001(\0162Q.google.shopping.merchant.repor" + + "ts.v1alpha.ReportGranularity.ReportGranularityEnumH\000\210\001\001\022 \n" + + "\023report_country_code\030\003 \001(\tH\001\210\001\001\022\037\n" + + "\022report_category_id\030\004 \001(\003H\002\210\001\001\022\022\n" + + "\005title\030\006 \001(\tH\003\210\001\001\022\022\n" + + "\005brand\030\007 \001(\tH\004\210\001\001\022\030\n" + + "\013category_l1\030\010 \001(\tH\005\210\001\001\022\030\n" + + "\013category_l2\030\t \001(\tH\006\210\001\001\022\030\n" + + "\013category_l3\030\n" + + " \001(\tH\007\210\001\001\022\030\n" + + "\013category_l4\030\013 \001(\tH\010\210\001\001\022\030\n" + + "\013category_l5\030\014 \001(\tH\t\210\001\001\022\025\n\r" + + "variant_gtins\030\r" + + " \003(\t\022v\n" + + "\020inventory_status\030\016 \001(\0162W.google.shopping." + + "merchant.reports.v1alpha.BestSellersProductClusterView.InventoryStatusH\n" + + "\210\001\001\022|\n" + + "\026brand_inventory_status\030\017 \001(\0162W.google.sho" + + "pping.merchant.reports.v1alpha.BestSelle" + + "rsProductClusterView.InventoryStatusH\013\210\001\001\022\021\n" + + "\004rank\030\020 \001(\003H\014\210\001\001\022\032\n\r" + + "previous_rank\030\021 \001(\003H\r" + + "\210\001\001\022i\n" + + "\017relative_demand\030\022 \001(\0162K.goog" + + "le.shopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnumH\016\210\001\001\022r\n" + + "\030previous_relative_demand\030\023 \001(\0162K.google.s" + + "hopping.merchant.reports.v1alpha.RelativeDemand.RelativeDemandEnumH\017\210\001\001\022\204\001\n" + + "\026relative_demand_change\030\024 \001(\0162_.google.shoppi" + + "ng.merchant.reports.v1alpha.RelativeDema" + + "ndChangeType.RelativeDemandChangeTypeEnumH\020\210\001\001\"i\n" + + "\017InventoryStatus\022 \n" + + "\034INVENTORY_STATUS_UNSPECIFIED\020\000\022\014\n" + + "\010IN_STOCK\020\001\022\020\n" + + "\014OUT_OF_STOCK\020\002\022\024\n" + + "\020NOT_IN_INVENTORY\020\003B\025\n" + + "\023_report_granularityB\026\n" + + "\024_report_country_codeB\025\n" + + "\023_report_category_idB\010\n" + + "\006_titleB\010\n" + + "\006_brandB\016\n" + + "\014_category_l1B\016\n" + + "\014_category_l2B\016\n" + + "\014_category_l3B\016\n" + + "\014_category_l4B\016\n" + + "\014_category_l5B\023\n" + + "\021_inventory_statusB\031\n" + + "\027_brand_inventory_statusB\007\n" + + "\005_rankB\020\n" + + "\016_previous_rankB\022\n" + + "\020_relative_demandB\033\n" + + "\031_previous_relative_demandB\031\n" + + "\027_relative_demand_change\"\325\006\n" + + "\024BestSellersBrandView\022&\n" + + "\013report_date\030\001 \001(\0132\021.google.type.Date\022r\n" + + "\022report_granularity\030\002 \001(\0162Q.google.shopping.merchant.repor" + + "ts.v1alpha.ReportGranularity.ReportGranularityEnumH\000\210\001\001\022 \n" + + "\023report_country_code\030\003 \001(\tH\001\210\001\001\022\037\n" + + "\022report_category_id\030\004 \001(\003H\002\210\001\001\022\022\n" + + "\005brand\030\006 \001(\tH\003\210\001\001\022\021\n" + + "\004rank\030\007 \001(\003H\004\210\001\001\022\032\n\r" + + "previous_rank\030\010 \001(\003H\005\210\001\001\022i\n" + + "\017relative_demand\030\t \001(\0162K.google.shopping.merchan" + + "t.reports.v1alpha.RelativeDemand.RelativeDemandEnumH\006\210\001\001\022r\n" + + "\030previous_relative_demand\030\n" + + " \001(\0162K.google.shopping.merchant.re" + + "ports.v1alpha.RelativeDemand.RelativeDemandEnumH\007\210\001\001\022\204\001\n" + + "\026relative_demand_change\030\013 \001(\0162_.google.shopping.merchant.reports" + + ".v1alpha.RelativeDemandChangeType.RelativeDemandChangeTypeEnumH\010\210\001\001B\025\n" + + "\023_report_granularityB\026\n" + + "\024_report_country_codeB\025\n" + + "\023_report_category_idB\010\n" + + "\006_brandB\007\n" + + "\005_rankB\020\n" + + "\016_previous_rankB\022\n" + + "\020_relative_demandB\033\n" + + "\031_previous_relative_demandB\031\n" + + "\027_relative_demand_change\"\337\001\n" + + "\031NonProductPerformanceView\022\037\n" + + "\004date\030\001 \001(\0132\021.google.type.Date\022\037\n" + + "\004week\030\002 \001(\0132\021.google.type.Date\022\023\n" + + "\006clicks\030\003 \001(\003H\000\210\001\001\022\030\n" + + "\013impressions\030\004 \001(\003H\001\210\001\001\022\037\n" + + "\022click_through_rate\030\005 \001(\001H\002\210\001\001B\t\n" + + "\007_clicksB\016\n" + + "\014_impressionsB\025\n" + + "\023_click_through_rate\"\201\005\n" + + "#CompetitiveVisibilityCompetitorView\022\037\n" + + "\004date\030\001 \001(\0132\021.google.type.Date\022\023\n" + + "\006domain\030\002 \001(\tH\000\210\001\001\022\033\n" + + "\016is_your_domain\030\003 \001(\010H\001\210\001\001\022 \n" + + "\023report_country_code\030\004 \001(\tH\002\210\001\001\022\037\n" + + "\022report_category_id\030\005 \001(\003H\003\210\001\001\022f\n" + + "\016traffic_source\030\006 \001(\0162I.google.shopping.merchant.re" + + "ports.v1alpha.TrafficSource.TrafficSourceEnumH\004\210\001\001\022\021\n" + + "\004rank\030\007 \001(\003H\005\210\001\001\022\036\n" + + "\021ads_organic_ratio\030\010 \001(\001H\006\210\001\001\022\036\n" + + "\021page_overlap_rate\030\t \001(\001H\007\210\001\001\022!\n" + + "\024higher_position_rate\030\n" + + " \001(\001H\010\210\001\001\022 \n" + + "\023relative_visibility\030\013 \001(\001H\t\210\001\001B\t\n" + + "\007_domainB\021\n" + + "\017_is_your_domainB\026\n" + + "\024_report_country_codeB\025\n" + + "\023_report_category_idB\021\n" + + "\017_traffic_sourceB\007\n" + + "\005_rankB\024\n" + + "\022_ads_organic_ratioB\024\n" + + "\022_page_overlap_rateB\027\n" + + "\025_higher_position_rateB\026\n" + + "\024_relative_visibility\"\310\004\n" + + "$CompetitiveVisibilityTopMerchantView\022\037\n" + + "\004date\030\001 \001(\0132\021.google.type.Date\022\023\n" + + "\006domain\030\002 \001(\tH\000\210\001\001\022\033\n" + + "\016is_your_domain\030\003 \001(\010H\001\210\001\001\022 \n" + + "\023report_country_code\030\004 \001(\tH\002\210\001\001\022\037\n" + + "\022report_category_id\030\005 \001(\003H\003\210\001\001\022f\n" + + "\016traffic_source\030\006 \001(\0162I.google.shopping.mercha" + + "nt.reports.v1alpha.TrafficSource.TrafficSourceEnumH\004\210\001\001\022\021\n" + + "\004rank\030\007 \001(\003H\005\210\001\001\022\036\n" + + "\021ads_organic_ratio\030\010 \001(\001H\006\210\001\001\022\036\n" + + "\021page_overlap_rate\030\t \001(\001H\007\210\001\001\022!\n" + + "\024higher_position_rate\030\n" + + " \001(\001H\010\210\001\001B\t\n" + + "\007_domainB\021\n" + + "\017_is_your_domainB\026\n" + + "\024_report_country_codeB\025\n" + + "\023_report_category_idB\021\n" + + "\017_traffic_sourceB\007\n" + + "\005_rankB\024\n" + + "\022_ads_organic_ratioB\024\n" + + "\022_page_overlap_rateB\027\n" + + "\025_higher_position_rate\"\330\003\n" + + "\"CompetitiveVisibilityBenchmarkView\022\037\n" + + "\004date\030\001 \001(\0132\021.google.type.Date\022 \n" + + "\023report_country_code\030\002 \001(\tH\000\210\001\001\022\037\n" + + "\022report_category_id\030\003 \001(\003H\001\210\001\001\022f\n" + + "\016traffic_source\030\004 \001(\0162I.google." + + "shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnumH\002\210\001\001\022)\n" + + "\034your_domain_visibility_trend\030\005 \001(\001H\003\210\001\001\0220\n" + + "#category_benchmark_visibility_trend\030\006 \001(\001H\004\210\001\001B\026\n" + + "\024_report_country_codeB\025\n" + + "\023_report_category_idB\021\n" + + "\017_traffic_sourceB\037\n" + + "\035_your_domain_visibility_trendB&\n" + + "$_category_benchmark_visibility_trend\"e\n" + + "\017MarketingMethod\"R\n" + + "\023MarketingMethodEnum\022%\n" + + "!MARKETING_METHOD_ENUM_UNSPECIFIED\020\000\022\013\n" + + "\007ORGANIC\020\001\022\007\n" + + "\003ADS\020\002\"n\n" + + "\021ReportGranularity\"Y\n" + + "\025ReportGranularityEnum\022\'\n" + + "#REPORT_GRANULARITY_ENUM_UNSPECIFIED\020\000\022\n\n" + + "\006WEEKLY\020\001\022\013\n" + + "\007MONTHLY\020\002\"\210\001\n" + + "\016RelativeDemand\"v\n" + + "\022RelativeDemandEnum\022$\n" + + " RELATIVE_DEMAND_ENUM_UNSPECIFIED\020\000\022\014\n" + + "\010VERY_LOW\020\n" + + "\022\007\n" + + "\003LOW\020\024\022\n\n" + + "\006MEDIUM\020\036\022\010\n" + + "\004HIGH\020(\022\r\n" + + "\tVERY_HIGH\0202\"\215\001\n" + + "\030RelativeDemandChangeType\"q\n" + + "\034RelativeDemandChangeTypeEnum\0220\n" + + ",RELATIVE_DEMAND_CHANGE_TYPE_ENUM_UNSPECIFIED\020\000\022\n\n" + + "\006SINKER\020\001\022\010\n" + + "\004FLAT\020\002\022\t\n" + + "\005RISER\020\003\"h\n\r" + + "TrafficSource\"W\n" + + "\021TrafficSourceEnum\022#\n" + + "\037TRAFFIC_SOURCE_ENUM_UNSPECIFIED\020\000\022\013\n" + + "\007ORGANIC\020\001\022\007\n" + + "\003ADS\020\002\022\007\n" + + "\003ALL\020\003\"\265\003\n" + + "\035YoutubeCreatorPerformanceView\022\037\n" + + "\004date\030\001 \001(\0132\021.google.type.Date\022\022\n" + + "\005title\030\002 \001(\tH\000\210\001\001\022\027\n\n" + + "channel_id\030\003 \001(\tH\001\210\001\001\0225\n" + + "\013gross_sales\030\004" + + " \001(\0132\033.google.shopping.type.PriceH\002\210\001\001\0225\n" + + "\013commissions\030\005" + + " \001(\0132\033.google.shopping.type.PriceH\003\210\001\001\022\023\n" + + "\006orders\030\006 \001(\003H\004\210\001\001\022\022\n" + + "\005views\030\007 \001(\003H\005\210\001\001\022\023\n" + + "\006clicks\030\010 \001(\003H\006\210\001\001\0223\n" + + "\tnet_sales\030\t \001(\0132\033.google.shopping.type.PriceH\007\210\001\001B\010\n" + + "\006_titleB\r\n" + + "\013_channel_idB\016\n" + + "\014_gross_salesB\016\n" + + "\014_commissionsB\t\n" + + "\007_ordersB\010\n" + + "\006_viewsB\t\n" + + "\007_clicksB\014\n\n" + + "_net_sales\"\207\004\n" + + "\035YoutubeContentPerformanceView\022\037\n" + + "\004date\030\001 \001(\0132\021.google.type.Date\022\022\n" + + "\005title\030\002 \001(\tH\000\210\001\001\022\025\n" + + "\010video_id\030\003 \001(\tH\001\210\001\001\022\032\n\r" + + "channel_title\030\004 \001(\tH\002\210\001\001\022\027\n\n" + + "channel_id\030\005 \001(\tH\003\210\001\001\0225\n" + + "\013gross_sales\030\006" + + " \001(\0132\033.google.shopping.type.PriceH\004\210\001\001\0225\n" + + "\013commissions\030\007" + + " \001(\0132\033.google.shopping.type.PriceH\005\210\001\001\022\023\n" + + "\006orders\030\010 \001(\003H\006\210\001\001\022\022\n" + + "\005views\030\t \001(\003H\007\210\001\001\022\023\n" + + "\006clicks\030\n" + + " \001(\003H\010\210\001\001\0223\n" + + "\tnet_sales\030\013 \001(\0132\033.google.shopping.type.PriceH\t\210\001\001B\010\n" + + "\006_titleB\013\n" + + "\t_video_idB\020\n" + + "\016_channel_titleB\r\n" + + "\013_channel_idB\016\n" + + "\014_gross_salesB\016\n" + + "\014_commissionsB\t\n" + + "\007_ordersB\010\n" + + "\006_viewsB\t\n" + + "\007_clicksB\014\n\n" + + "_net_sales\"\255\004\n" + + "\035YoutubeProductPerformanceView\022\037\n" + + "\004date\030\001 \001(\0132\021.google.type.Date\022\022\n" + + "\005title\030\002 \001(\tH\000\210\001\001\022\025\n" + + "\010offer_id\030\003 \001(\tH\001\210\001\001\022!\n" + + "\024distinct_video_count\030\004 \001(\003H\002\210\001\001\022#\n" + + "\026distinct_creator_count\030\005 \001(\003H\003\210\001\001\0225\n" + + "\013gross_sales\030\006" + + " \001(\0132\033.google.shopping.type.PriceH\004\210\001\001\0225\n" + + "\013commissions\030\007" + + " \001(\0132\033.google.shopping.type.PriceH\005\210\001\001\022\023\n" + + "\006orders\030\010 \001(\003H\006\210\001\001\022\022\n" + + "\005views\030\t \001(\003H\007\210\001\001\022\023\n" + + "\006clicks\030\n" + + " \001(\003H\010\210\001\001\0223\n" + + "\tnet_sales\030\013 \001(\0132\033.google.shopping.type.PriceH\t\210\001\001B\010\n" + + "\006_titleB\013\n" + + "\t_offer_idB\027\n" + + "\025_distinct_video_countB\031\n" + + "\027_distinct_creator_countB\016\n" + + "\014_gross_salesB\016\n" + + "\014_commissionsB\t\n" + + "\007_ordersB\010\n" + + "\006_viewsB\t\n" + + "\007_clicksB\014\n\n" + + "_net_sales2\237\002\n\r" + + "ReportService\022\304\001\n" + + "\006Search\0227.google.shopping.merchant.reports.v1alpha.SearchRequest\0328.goo" + + "gle.shopping.merchant.reports.v1alpha.Se" + + "archResponse\"G\332A\006parent\202\323\344\223\0028\"3/reports/" + + "v1alpha/{parent=accounts/*}/reports:sear" + + "ch:\001*\032G\312A\032merchantapi.googleapis.com\322A\'h" + + "ttps://www.googleapis.com/auth/contentB\214\001\n" + + ",com.google.shopping.merchant.reports.v1alphaB\014ReportsProtoP\001ZLcloud.google.co" + + "m/go/shopping/merchant/reports/apiv1alpha/reportspb;reportspbb\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.protobuf.TimestampProto.getDescriptor(), + com.google.shopping.type.TypesProto.getDescriptor(), + com.google.type.DateProto.getDescriptor(), + }); + internal_static_google_shopping_merchant_reports_v1alpha_SearchRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_shopping_merchant_reports_v1alpha_SearchRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_reports_v1alpha_SearchRequest_descriptor, + new java.lang.String[] { + "Parent", "Query", "PageSize", "PageToken", + }); + internal_static_google_shopping_merchant_reports_v1alpha_SearchResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_shopping_merchant_reports_v1alpha_SearchResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_reports_v1alpha_SearchResponse_descriptor, + new java.lang.String[] { + "Results", "NextPageToken", + }); + internal_static_google_shopping_merchant_reports_v1alpha_ReportRow_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_shopping_merchant_reports_v1alpha_ReportRow_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_reports_v1alpha_ReportRow_descriptor, + new java.lang.String[] { + "ProductPerformanceView", + "NonProductPerformanceView", + "ProductView", + "PriceCompetitivenessProductView", + "PriceInsightsProductView", + "BestSellersProductClusterView", + "BestSellersBrandView", + "CompetitiveVisibilityCompetitorView", + "CompetitiveVisibilityTopMerchantView", + "CompetitiveVisibilityBenchmarkView", + "YoutubeCreatorPerformanceView", + "YoutubeContentPerformanceView", + "YoutubeProductPerformanceView", + }); + internal_static_google_shopping_merchant_reports_v1alpha_ProductPerformanceView_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_shopping_merchant_reports_v1alpha_ProductPerformanceView_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_reports_v1alpha_ProductPerformanceView_descriptor, + new java.lang.String[] { + "MarketingMethod", + "Date", + "Week", + "CustomerCountryCode", + "OfferId", + "Title", + "Brand", + "CategoryL1", + "CategoryL2", + "CategoryL3", + "CategoryL4", + "CategoryL5", + "ProductTypeL1", + "ProductTypeL2", + "ProductTypeL3", + "ProductTypeL4", + "ProductTypeL5", + "CustomLabel0", + "CustomLabel1", + "CustomLabel2", + "CustomLabel3", + "CustomLabel4", + "Clicks", + "Impressions", + "ClickThroughRate", + "Conversions", + "ConversionValue", + "ConversionRate", + }); + internal_static_google_shopping_merchant_reports_v1alpha_ProductView_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_shopping_merchant_reports_v1alpha_ProductView_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_reports_v1alpha_ProductView_descriptor, + new java.lang.String[] { + "Id", + "Channel", + "LanguageCode", + "FeedLabel", + "OfferId", + "Title", + "Brand", + "CategoryL1", + "CategoryL2", + "CategoryL3", + "CategoryL4", + "CategoryL5", + "ProductTypeL1", + "ProductTypeL2", + "ProductTypeL3", + "ProductTypeL4", + "ProductTypeL5", + "Price", + "Condition", + "Availability", + "ShippingLabel", + "Gtin", + "ItemGroupId", + "ThumbnailLink", + "CreationTime", + "ExpirationDate", + "AggregatedReportingContextStatus", + "ItemIssues", + "ClickPotential", + "ClickPotentialRank", + }); + internal_static_google_shopping_merchant_reports_v1alpha_ProductView_ItemIssue_descriptor = + internal_static_google_shopping_merchant_reports_v1alpha_ProductView_descriptor + .getNestedTypes() + .get(0); + internal_static_google_shopping_merchant_reports_v1alpha_ProductView_ItemIssue_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_reports_v1alpha_ProductView_ItemIssue_descriptor, + new java.lang.String[] { + "Type", "Severity", "Resolution", + }); + internal_static_google_shopping_merchant_reports_v1alpha_ProductView_ItemIssue_ItemIssueType_descriptor = + internal_static_google_shopping_merchant_reports_v1alpha_ProductView_ItemIssue_descriptor + .getNestedTypes() + .get(0); + internal_static_google_shopping_merchant_reports_v1alpha_ProductView_ItemIssue_ItemIssueType_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_reports_v1alpha_ProductView_ItemIssue_ItemIssueType_descriptor, + new java.lang.String[] { + "Code", "CanonicalAttribute", + }); + internal_static_google_shopping_merchant_reports_v1alpha_ProductView_ItemIssue_ItemIssueSeverity_descriptor = + internal_static_google_shopping_merchant_reports_v1alpha_ProductView_ItemIssue_descriptor + .getNestedTypes() + .get(1); + internal_static_google_shopping_merchant_reports_v1alpha_ProductView_ItemIssue_ItemIssueSeverity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_reports_v1alpha_ProductView_ItemIssue_ItemIssueSeverity_descriptor, + new java.lang.String[] { + "SeverityPerReportingContext", "AggregatedSeverity", + }); + internal_static_google_shopping_merchant_reports_v1alpha_ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerReportingContext_descriptor = + internal_static_google_shopping_merchant_reports_v1alpha_ProductView_ItemIssue_ItemIssueSeverity_descriptor + .getNestedTypes() + .get(0); + internal_static_google_shopping_merchant_reports_v1alpha_ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerReportingContext_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_reports_v1alpha_ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerReportingContext_descriptor, + new java.lang.String[] { + "ReportingContext", "DisapprovedCountries", "DemotedCountries", + }); + internal_static_google_shopping_merchant_reports_v1alpha_PriceCompetitivenessProductView_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_shopping_merchant_reports_v1alpha_PriceCompetitivenessProductView_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_reports_v1alpha_PriceCompetitivenessProductView_descriptor, + new java.lang.String[] { + "ReportCountryCode", + "Id", + "OfferId", + "Title", + "Brand", + "CategoryL1", + "CategoryL2", + "CategoryL3", + "CategoryL4", + "CategoryL5", + "ProductTypeL1", + "ProductTypeL2", + "ProductTypeL3", + "ProductTypeL4", + "ProductTypeL5", + "Price", + "BenchmarkPrice", + }); + internal_static_google_shopping_merchant_reports_v1alpha_PriceInsightsProductView_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_shopping_merchant_reports_v1alpha_PriceInsightsProductView_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_reports_v1alpha_PriceInsightsProductView_descriptor, + new java.lang.String[] { + "Id", + "OfferId", + "Title", + "Brand", + "CategoryL1", + "CategoryL2", + "CategoryL3", + "CategoryL4", + "CategoryL5", + "ProductTypeL1", + "ProductTypeL2", + "ProductTypeL3", + "ProductTypeL4", + "ProductTypeL5", + "Price", + "SuggestedPrice", + "PredictedImpressionsChangeFraction", + "PredictedClicksChangeFraction", + "PredictedConversionsChangeFraction", + "Effectiveness", + }); + internal_static_google_shopping_merchant_reports_v1alpha_BestSellersProductClusterView_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_shopping_merchant_reports_v1alpha_BestSellersProductClusterView_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_reports_v1alpha_BestSellersProductClusterView_descriptor, + new java.lang.String[] { + "ReportDate", + "ReportGranularity", + "ReportCountryCode", + "ReportCategoryId", + "Title", + "Brand", + "CategoryL1", + "CategoryL2", + "CategoryL3", + "CategoryL4", + "CategoryL5", + "VariantGtins", + "InventoryStatus", + "BrandInventoryStatus", + "Rank", + "PreviousRank", + "RelativeDemand", + "PreviousRelativeDemand", + "RelativeDemandChange", + }); + internal_static_google_shopping_merchant_reports_v1alpha_BestSellersBrandView_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_shopping_merchant_reports_v1alpha_BestSellersBrandView_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_reports_v1alpha_BestSellersBrandView_descriptor, + new java.lang.String[] { + "ReportDate", + "ReportGranularity", + "ReportCountryCode", + "ReportCategoryId", + "Brand", + "Rank", + "PreviousRank", + "RelativeDemand", + "PreviousRelativeDemand", + "RelativeDemandChange", + }); + internal_static_google_shopping_merchant_reports_v1alpha_NonProductPerformanceView_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_shopping_merchant_reports_v1alpha_NonProductPerformanceView_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_reports_v1alpha_NonProductPerformanceView_descriptor, + new java.lang.String[] { + "Date", "Week", "Clicks", "Impressions", "ClickThroughRate", + }); + internal_static_google_shopping_merchant_reports_v1alpha_CompetitiveVisibilityCompetitorView_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_shopping_merchant_reports_v1alpha_CompetitiveVisibilityCompetitorView_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_reports_v1alpha_CompetitiveVisibilityCompetitorView_descriptor, + new java.lang.String[] { + "Date", + "Domain", + "IsYourDomain", + "ReportCountryCode", + "ReportCategoryId", + "TrafficSource", + "Rank", + "AdsOrganicRatio", + "PageOverlapRate", + "HigherPositionRate", + "RelativeVisibility", + }); + internal_static_google_shopping_merchant_reports_v1alpha_CompetitiveVisibilityTopMerchantView_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_shopping_merchant_reports_v1alpha_CompetitiveVisibilityTopMerchantView_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_reports_v1alpha_CompetitiveVisibilityTopMerchantView_descriptor, + new java.lang.String[] { + "Date", + "Domain", + "IsYourDomain", + "ReportCountryCode", + "ReportCategoryId", + "TrafficSource", + "Rank", + "AdsOrganicRatio", + "PageOverlapRate", + "HigherPositionRate", + }); + internal_static_google_shopping_merchant_reports_v1alpha_CompetitiveVisibilityBenchmarkView_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_shopping_merchant_reports_v1alpha_CompetitiveVisibilityBenchmarkView_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_reports_v1alpha_CompetitiveVisibilityBenchmarkView_descriptor, + new java.lang.String[] { + "Date", + "ReportCountryCode", + "ReportCategoryId", + "TrafficSource", + "YourDomainVisibilityTrend", + "CategoryBenchmarkVisibilityTrend", + }); + internal_static_google_shopping_merchant_reports_v1alpha_MarketingMethod_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_shopping_merchant_reports_v1alpha_MarketingMethod_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_reports_v1alpha_MarketingMethod_descriptor, + new java.lang.String[] {}); + internal_static_google_shopping_merchant_reports_v1alpha_ReportGranularity_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_shopping_merchant_reports_v1alpha_ReportGranularity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_reports_v1alpha_ReportGranularity_descriptor, + new java.lang.String[] {}); + internal_static_google_shopping_merchant_reports_v1alpha_RelativeDemand_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_shopping_merchant_reports_v1alpha_RelativeDemand_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_reports_v1alpha_RelativeDemand_descriptor, + new java.lang.String[] {}); + internal_static_google_shopping_merchant_reports_v1alpha_RelativeDemandChangeType_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_shopping_merchant_reports_v1alpha_RelativeDemandChangeType_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_reports_v1alpha_RelativeDemandChangeType_descriptor, + new java.lang.String[] {}); + internal_static_google_shopping_merchant_reports_v1alpha_TrafficSource_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_shopping_merchant_reports_v1alpha_TrafficSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_reports_v1alpha_TrafficSource_descriptor, + new java.lang.String[] {}); + internal_static_google_shopping_merchant_reports_v1alpha_YoutubeCreatorPerformanceView_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_shopping_merchant_reports_v1alpha_YoutubeCreatorPerformanceView_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_reports_v1alpha_YoutubeCreatorPerformanceView_descriptor, + new java.lang.String[] { + "Date", + "Title", + "ChannelId", + "GrossSales", + "Commissions", + "Orders", + "Views", + "Clicks", + "NetSales", + }); + internal_static_google_shopping_merchant_reports_v1alpha_YoutubeContentPerformanceView_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_shopping_merchant_reports_v1alpha_YoutubeContentPerformanceView_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_reports_v1alpha_YoutubeContentPerformanceView_descriptor, + new java.lang.String[] { + "Date", + "Title", + "VideoId", + "ChannelTitle", + "ChannelId", + "GrossSales", + "Commissions", + "Orders", + "Views", + "Clicks", + "NetSales", + }); + internal_static_google_shopping_merchant_reports_v1alpha_YoutubeProductPerformanceView_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_shopping_merchant_reports_v1alpha_YoutubeProductPerformanceView_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_reports_v1alpha_YoutubeProductPerformanceView_descriptor, + new java.lang.String[] { + "Date", + "Title", + "OfferId", + "DistinctVideoCount", + "DistinctCreatorCount", + "GrossSales", + "Commissions", + "Orders", + "Views", + "Clicks", + "NetSales", + }); + 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); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.shopping.type.TypesProto.getDescriptor(); + com.google.type.DateProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/SearchRequest.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/SearchRequest.java new file mode 100644 index 000000000000..f38f5dc7e452 --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/SearchRequest.java @@ -0,0 +1,1170 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/reports/v1alpha/reports.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.reports.v1alpha; + +/** + * + * + *
      + * Request message for the `ReportService.Search` method.
      + * 
      + * + * Protobuf type {@code google.shopping.merchant.reports.v1alpha.SearchRequest} + */ +public final class SearchRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.reports.v1alpha.SearchRequest) + SearchRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use SearchRequest.newBuilder() to construct. + private SearchRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchRequest() { + parent_ = ""; + query_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SearchRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_SearchRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_SearchRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1alpha.SearchRequest.class, + com.google.shopping.merchant.reports.v1alpha.SearchRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
      +   * Required. Id of the account making the call. Must be a standalone account
      +   * or an MCA subaccount. Format: accounts/{account}
      +   * 
      + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. Id of the account making the call. Must be a standalone account
      +   * or an MCA subaccount. Format: accounts/{account}
      +   * 
      + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUERY_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object query_ = ""; + + /** + * + * + *
      +   * Required. Query that defines a report to be retrieved.
      +   *
      +   * For details on how to construct your query, see the Query Language
      +   * guide. For the full list of available tables and fields, see the Available
      +   * fields.
      +   * 
      + * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The query. + */ + @java.lang.Override + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. Query that defines a report to be retrieved.
      +   *
      +   * For details on how to construct your query, see the Query Language
      +   * guide. For the full list of available tables and fields, see the Available
      +   * fields.
      +   * 
      + * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for query. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_ = 0; + + /** + * + * + *
      +   * Optional. Number of `ReportRows` to retrieve in a single page. Defaults to
      +   * 1000. Values above 5000 are coerced to 5000.
      +   * 
      + * + * 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. Token of the page to retrieve. If not specified, the first page
      +   * of results is returned. In order to request the next page of results, the
      +   * value obtained from `next_page_token` in the previous response should be
      +   * used.
      +   * 
      + * + * 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. Token of the page to retrieve. If not specified, the first page
      +   * of results is returned. In order to request the next page of results, the
      +   * value obtained from `next_page_token` in the previous response should be
      +   * used.
      +   * 
      + * + * 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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, query_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, query_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, 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.shopping.merchant.reports.v1alpha.SearchRequest)) { + return super.equals(obj); + } + com.google.shopping.merchant.reports.v1alpha.SearchRequest other = + (com.google.shopping.merchant.reports.v1alpha.SearchRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getQuery().equals(other.getQuery())) 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) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().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.shopping.merchant.reports.v1alpha.SearchRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.SearchRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.SearchRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.SearchRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.SearchRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.SearchRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.SearchRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.SearchRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.SearchRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.SearchRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.SearchRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.SearchRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.shopping.merchant.reports.v1alpha.SearchRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for the `ReportService.Search` method.
      +   * 
      + * + * Protobuf type {@code google.shopping.merchant.reports.v1alpha.SearchRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.reports.v1alpha.SearchRequest) + com.google.shopping.merchant.reports.v1alpha.SearchRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_SearchRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_SearchRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1alpha.SearchRequest.class, + com.google.shopping.merchant.reports.v1alpha.SearchRequest.Builder.class); + } + + // Construct using com.google.shopping.merchant.reports.v1alpha.SearchRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + query_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_SearchRequest_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.SearchRequest getDefaultInstanceForType() { + return com.google.shopping.merchant.reports.v1alpha.SearchRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.SearchRequest build() { + com.google.shopping.merchant.reports.v1alpha.SearchRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.SearchRequest buildPartial() { + com.google.shopping.merchant.reports.v1alpha.SearchRequest result = + new com.google.shopping.merchant.reports.v1alpha.SearchRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.shopping.merchant.reports.v1alpha.SearchRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.query_ = query_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.shopping.merchant.reports.v1alpha.SearchRequest) { + return mergeFrom((com.google.shopping.merchant.reports.v1alpha.SearchRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.shopping.merchant.reports.v1alpha.SearchRequest other) { + if (other == com.google.shopping.merchant.reports.v1alpha.SearchRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getQuery().isEmpty()) { + query_ = other.query_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + query_ = 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 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (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. Id of the account making the call. Must be a standalone account
      +     * or an MCA subaccount. Format: accounts/{account}
      +     * 
      + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. Id of the account making the call. Must be a standalone account
      +     * or an MCA subaccount. Format: accounts/{account}
      +     * 
      + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. Id of the account making the call. Must be a standalone account
      +     * or an MCA subaccount. Format: accounts/{account}
      +     * 
      + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. Id of the account making the call. Must be a standalone account
      +     * or an MCA subaccount. Format: accounts/{account}
      +     * 
      + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. Id of the account making the call. Must be a standalone account
      +     * or an MCA subaccount. Format: accounts/{account}
      +     * 
      + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object query_ = ""; + + /** + * + * + *
      +     * Required. Query that defines a report to be retrieved.
      +     *
      +     * For details on how to construct your query, see the Query Language
      +     * guide. For the full list of available tables and fields, see the Available
      +     * fields.
      +     * 
      + * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The query. + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. Query that defines a report to be retrieved.
      +     *
      +     * For details on how to construct your query, see the Query Language
      +     * guide. For the full list of available tables and fields, see the Available
      +     * fields.
      +     * 
      + * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for query. + */ + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. Query that defines a report to be retrieved.
      +     *
      +     * For details on how to construct your query, see the Query Language
      +     * guide. For the full list of available tables and fields, see the Available
      +     * fields.
      +     * 
      + * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The query to set. + * @return This builder for chaining. + */ + public Builder setQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + query_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. Query that defines a report to be retrieved.
      +     *
      +     * For details on how to construct your query, see the Query Language
      +     * guide. For the full list of available tables and fields, see the Available
      +     * fields.
      +     * 
      + * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearQuery() { + query_ = getDefaultInstance().getQuery(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. Query that defines a report to be retrieved.
      +     *
      +     * For details on how to construct your query, see the Query Language
      +     * guide. For the full list of available tables and fields, see the Available
      +     * fields.
      +     * 
      + * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for query to set. + * @return This builder for chaining. + */ + public Builder setQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + query_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
      +     * Optional. Number of `ReportRows` to retrieve in a single page. Defaults to
      +     * 1000. Values above 5000 are coerced to 5000.
      +     * 
      + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
      +     * Optional. Number of `ReportRows` to retrieve in a single page. Defaults to
      +     * 1000. Values above 5000 are coerced to 5000.
      +     * 
      + * + * 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. Number of `ReportRows` to retrieve in a single page. Defaults to
      +     * 1000. Values above 5000 are coerced to 5000.
      +     * 
      + * + * 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. Token of the page to retrieve. If not specified, the first page
      +     * of results is returned. In order to request the next page of results, the
      +     * value obtained from `next_page_token` in the previous response should be
      +     * used.
      +     * 
      + * + * 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. Token of the page to retrieve. If not specified, the first page
      +     * of results is returned. In order to request the next page of results, the
      +     * value obtained from `next_page_token` in the previous response should be
      +     * used.
      +     * 
      + * + * 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. Token of the page to retrieve. If not specified, the first page
      +     * of results is returned. In order to request the next page of results, the
      +     * value obtained from `next_page_token` in the previous response should be
      +     * used.
      +     * 
      + * + * 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. Token of the page to retrieve. If not specified, the first page
      +     * of results is returned. In order to request the next page of results, the
      +     * value obtained from `next_page_token` in the previous response should be
      +     * used.
      +     * 
      + * + * 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. Token of the page to retrieve. If not specified, the first page
      +     * of results is returned. In order to request the next page of results, the
      +     * value obtained from `next_page_token` in the previous response should be
      +     * used.
      +     * 
      + * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.reports.v1alpha.SearchRequest) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.reports.v1alpha.SearchRequest) + private static final com.google.shopping.merchant.reports.v1alpha.SearchRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.shopping.merchant.reports.v1alpha.SearchRequest(); + } + + public static com.google.shopping.merchant.reports.v1alpha.SearchRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.SearchRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/SearchRequestOrBuilder.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/SearchRequestOrBuilder.java new file mode 100644 index 000000000000..e083fe9b3ae4 --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/SearchRequestOrBuilder.java @@ -0,0 +1,134 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/reports/v1alpha/reports.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.reports.v1alpha; + +public interface SearchRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.reports.v1alpha.SearchRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. Id of the account making the call. Must be a standalone account
      +   * or an MCA subaccount. Format: accounts/{account}
      +   * 
      + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
      +   * Required. Id of the account making the call. Must be a standalone account
      +   * or an MCA subaccount. Format: accounts/{account}
      +   * 
      + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
      +   * Required. Query that defines a report to be retrieved.
      +   *
      +   * For details on how to construct your query, see the Query Language
      +   * guide. For the full list of available tables and fields, see the Available
      +   * fields.
      +   * 
      + * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The query. + */ + java.lang.String getQuery(); + + /** + * + * + *
      +   * Required. Query that defines a report to be retrieved.
      +   *
      +   * For details on how to construct your query, see the Query Language
      +   * guide. For the full list of available tables and fields, see the Available
      +   * fields.
      +   * 
      + * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for query. + */ + com.google.protobuf.ByteString getQueryBytes(); + + /** + * + * + *
      +   * Optional. Number of `ReportRows` to retrieve in a single page. Defaults to
      +   * 1000. Values above 5000 are coerced to 5000.
      +   * 
      + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
      +   * Optional. Token of the page to retrieve. If not specified, the first page
      +   * of results is returned. In order to request the next page of results, the
      +   * value obtained from `next_page_token` in the previous response should be
      +   * used.
      +   * 
      + * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
      +   * Optional. Token of the page to retrieve. If not specified, the first page
      +   * of results is returned. In order to request the next page of results, the
      +   * value obtained from `next_page_token` in the previous response should be
      +   * used.
      +   * 
      + * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/SearchResponse.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/SearchResponse.java new file mode 100644 index 000000000000..41fe2845232a --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/SearchResponse.java @@ -0,0 +1,1169 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/reports/v1alpha/reports.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.reports.v1alpha; + +/** + * + * + *
      + * Response message for the `ReportService.Search` method.
      + * 
      + * + * Protobuf type {@code google.shopping.merchant.reports.v1alpha.SearchResponse} + */ +public final class SearchResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.reports.v1alpha.SearchResponse) + SearchResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use SearchResponse.newBuilder() to construct. + private SearchResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchResponse() { + results_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SearchResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_SearchResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_SearchResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1alpha.SearchResponse.class, + com.google.shopping.merchant.reports.v1alpha.SearchResponse.Builder.class); + } + + public static final int RESULTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List results_; + + /** + * + * + *
      +   * Rows that matched the search query.
      +   * 
      + * + * repeated .google.shopping.merchant.reports.v1alpha.ReportRow results = 1; + */ + @java.lang.Override + public java.util.List getResultsList() { + return results_; + } + + /** + * + * + *
      +   * Rows that matched the search query.
      +   * 
      + * + * repeated .google.shopping.merchant.reports.v1alpha.ReportRow results = 1; + */ + @java.lang.Override + public java.util.List + getResultsOrBuilderList() { + return results_; + } + + /** + * + * + *
      +   * Rows that matched the search query.
      +   * 
      + * + * repeated .google.shopping.merchant.reports.v1alpha.ReportRow results = 1; + */ + @java.lang.Override + public int getResultsCount() { + return results_.size(); + } + + /** + * + * + *
      +   * Rows that matched the search query.
      +   * 
      + * + * repeated .google.shopping.merchant.reports.v1alpha.ReportRow results = 1; + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ReportRow getResults(int index) { + return results_.get(index); + } + + /** + * + * + *
      +   * Rows that matched the search query.
      +   * 
      + * + * repeated .google.shopping.merchant.reports.v1alpha.ReportRow results = 1; + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.ReportRowOrBuilder 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_ = ""; + + /** + * + * + *
      +   * Token which can be sent as `page_token` to retrieve the next page. If
      +   * omitted, there are no subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
      +   * Token which can be sent as `page_token` to retrieve the next page. If
      +   * omitted, there are no subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < results_.size(); i++) { + output.writeMessage(1, results_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < results_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, results_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.shopping.merchant.reports.v1alpha.SearchResponse)) { + return super.equals(obj); + } + com.google.shopping.merchant.reports.v1alpha.SearchResponse other = + (com.google.shopping.merchant.reports.v1alpha.SearchResponse) 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.shopping.merchant.reports.v1alpha.SearchResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.SearchResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.SearchResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.SearchResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.SearchResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.SearchResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.SearchResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.SearchResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.SearchResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.SearchResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.SearchResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.SearchResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.shopping.merchant.reports.v1alpha.SearchResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Response message for the `ReportService.Search` method.
      +   * 
      + * + * Protobuf type {@code google.shopping.merchant.reports.v1alpha.SearchResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.reports.v1alpha.SearchResponse) + com.google.shopping.merchant.reports.v1alpha.SearchResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_SearchResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_SearchResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1alpha.SearchResponse.class, + com.google.shopping.merchant.reports.v1alpha.SearchResponse.Builder.class); + } + + // Construct using com.google.shopping.merchant.reports.v1alpha.SearchResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.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.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_SearchResponse_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.SearchResponse getDefaultInstanceForType() { + return com.google.shopping.merchant.reports.v1alpha.SearchResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.SearchResponse build() { + com.google.shopping.merchant.reports.v1alpha.SearchResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.SearchResponse buildPartial() { + com.google.shopping.merchant.reports.v1alpha.SearchResponse result = + new com.google.shopping.merchant.reports.v1alpha.SearchResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.shopping.merchant.reports.v1alpha.SearchResponse 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.shopping.merchant.reports.v1alpha.SearchResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.shopping.merchant.reports.v1alpha.SearchResponse) { + return mergeFrom((com.google.shopping.merchant.reports.v1alpha.SearchResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.shopping.merchant.reports.v1alpha.SearchResponse other) { + if (other == com.google.shopping.merchant.reports.v1alpha.SearchResponse.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.GeneratedMessageV3.alwaysUseFieldBuilders + ? getResultsFieldBuilder() + : 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.shopping.merchant.reports.v1alpha.ReportRow m = + input.readMessage( + com.google.shopping.merchant.reports.v1alpha.ReportRow.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.RepeatedFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.ReportRow, + com.google.shopping.merchant.reports.v1alpha.ReportRow.Builder, + com.google.shopping.merchant.reports.v1alpha.ReportRowOrBuilder> + resultsBuilder_; + + /** + * + * + *
      +     * Rows that matched the search query.
      +     * 
      + * + * repeated .google.shopping.merchant.reports.v1alpha.ReportRow results = 1; + */ + public java.util.List getResultsList() { + if (resultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(results_); + } else { + return resultsBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * Rows that matched the search query.
      +     * 
      + * + * repeated .google.shopping.merchant.reports.v1alpha.ReportRow results = 1; + */ + public int getResultsCount() { + if (resultsBuilder_ == null) { + return results_.size(); + } else { + return resultsBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * Rows that matched the search query.
      +     * 
      + * + * repeated .google.shopping.merchant.reports.v1alpha.ReportRow results = 1; + */ + public com.google.shopping.merchant.reports.v1alpha.ReportRow getResults(int index) { + if (resultsBuilder_ == null) { + return results_.get(index); + } else { + return resultsBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * Rows that matched the search query.
      +     * 
      + * + * repeated .google.shopping.merchant.reports.v1alpha.ReportRow results = 1; + */ + public Builder setResults( + int index, com.google.shopping.merchant.reports.v1alpha.ReportRow value) { + if (resultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultsIsMutable(); + results_.set(index, value); + onChanged(); + } else { + resultsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Rows that matched the search query.
      +     * 
      + * + * repeated .google.shopping.merchant.reports.v1alpha.ReportRow results = 1; + */ + public Builder setResults( + int index, com.google.shopping.merchant.reports.v1alpha.ReportRow.Builder builderForValue) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.set(index, builderForValue.build()); + onChanged(); + } else { + resultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Rows that matched the search query.
      +     * 
      + * + * repeated .google.shopping.merchant.reports.v1alpha.ReportRow results = 1; + */ + public Builder addResults(com.google.shopping.merchant.reports.v1alpha.ReportRow value) { + if (resultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultsIsMutable(); + results_.add(value); + onChanged(); + } else { + resultsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * Rows that matched the search query.
      +     * 
      + * + * repeated .google.shopping.merchant.reports.v1alpha.ReportRow results = 1; + */ + public Builder addResults( + int index, com.google.shopping.merchant.reports.v1alpha.ReportRow value) { + if (resultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultsIsMutable(); + results_.add(index, value); + onChanged(); + } else { + resultsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Rows that matched the search query.
      +     * 
      + * + * repeated .google.shopping.merchant.reports.v1alpha.ReportRow results = 1; + */ + public Builder addResults( + com.google.shopping.merchant.reports.v1alpha.ReportRow.Builder builderForValue) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.add(builderForValue.build()); + onChanged(); + } else { + resultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Rows that matched the search query.
      +     * 
      + * + * repeated .google.shopping.merchant.reports.v1alpha.ReportRow results = 1; + */ + public Builder addResults( + int index, com.google.shopping.merchant.reports.v1alpha.ReportRow.Builder builderForValue) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.add(index, builderForValue.build()); + onChanged(); + } else { + resultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Rows that matched the search query.
      +     * 
      + * + * repeated .google.shopping.merchant.reports.v1alpha.ReportRow 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; + } + + /** + * + * + *
      +     * Rows that matched the search query.
      +     * 
      + * + * repeated .google.shopping.merchant.reports.v1alpha.ReportRow results = 1; + */ + public Builder clearResults() { + if (resultsBuilder_ == null) { + results_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + resultsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Rows that matched the search query.
      +     * 
      + * + * repeated .google.shopping.merchant.reports.v1alpha.ReportRow results = 1; + */ + public Builder removeResults(int index) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.remove(index); + onChanged(); + } else { + resultsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * Rows that matched the search query.
      +     * 
      + * + * repeated .google.shopping.merchant.reports.v1alpha.ReportRow results = 1; + */ + public com.google.shopping.merchant.reports.v1alpha.ReportRow.Builder getResultsBuilder( + int index) { + return getResultsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * Rows that matched the search query.
      +     * 
      + * + * repeated .google.shopping.merchant.reports.v1alpha.ReportRow results = 1; + */ + public com.google.shopping.merchant.reports.v1alpha.ReportRowOrBuilder getResultsOrBuilder( + int index) { + if (resultsBuilder_ == null) { + return results_.get(index); + } else { + return resultsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * Rows that matched the search query.
      +     * 
      + * + * repeated .google.shopping.merchant.reports.v1alpha.ReportRow results = 1; + */ + public java.util.List + getResultsOrBuilderList() { + if (resultsBuilder_ != null) { + return resultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(results_); + } + } + + /** + * + * + *
      +     * Rows that matched the search query.
      +     * 
      + * + * repeated .google.shopping.merchant.reports.v1alpha.ReportRow results = 1; + */ + public com.google.shopping.merchant.reports.v1alpha.ReportRow.Builder addResultsBuilder() { + return getResultsFieldBuilder() + .addBuilder(com.google.shopping.merchant.reports.v1alpha.ReportRow.getDefaultInstance()); + } + + /** + * + * + *
      +     * Rows that matched the search query.
      +     * 
      + * + * repeated .google.shopping.merchant.reports.v1alpha.ReportRow results = 1; + */ + public com.google.shopping.merchant.reports.v1alpha.ReportRow.Builder addResultsBuilder( + int index) { + return getResultsFieldBuilder() + .addBuilder( + index, com.google.shopping.merchant.reports.v1alpha.ReportRow.getDefaultInstance()); + } + + /** + * + * + *
      +     * Rows that matched the search query.
      +     * 
      + * + * repeated .google.shopping.merchant.reports.v1alpha.ReportRow results = 1; + */ + public java.util.List + getResultsBuilderList() { + return getResultsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.ReportRow, + com.google.shopping.merchant.reports.v1alpha.ReportRow.Builder, + com.google.shopping.merchant.reports.v1alpha.ReportRowOrBuilder> + getResultsFieldBuilder() { + if (resultsBuilder_ == null) { + resultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.shopping.merchant.reports.v1alpha.ReportRow, + com.google.shopping.merchant.reports.v1alpha.ReportRow.Builder, + com.google.shopping.merchant.reports.v1alpha.ReportRowOrBuilder>( + results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + results_ = null; + } + return resultsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
      +     * Token which can be sent as `page_token` to retrieve the next page. If
      +     * omitted, there are no subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Token which can be sent as `page_token` to retrieve the next page. If
      +     * omitted, there are no subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Token which can be sent as `page_token` to retrieve the next page. If
      +     * omitted, there are no subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Token which can be sent as `page_token` to retrieve the next page. If
      +     * omitted, there are no subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Token which can be sent as `page_token` to retrieve the next page. If
      +     * omitted, there are no subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.reports.v1alpha.SearchResponse) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.reports.v1alpha.SearchResponse) + private static final com.google.shopping.merchant.reports.v1alpha.SearchResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.shopping.merchant.reports.v1alpha.SearchResponse(); + } + + public static com.google.shopping.merchant.reports.v1alpha.SearchResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.SearchResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/SearchResponseOrBuilder.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/SearchResponseOrBuilder.java new file mode 100644 index 000000000000..a33a185f9a1f --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/SearchResponseOrBuilder.java @@ -0,0 +1,110 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/reports/v1alpha/reports.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.reports.v1alpha; + +public interface SearchResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.reports.v1alpha.SearchResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Rows that matched the search query.
      +   * 
      + * + * repeated .google.shopping.merchant.reports.v1alpha.ReportRow results = 1; + */ + java.util.List getResultsList(); + + /** + * + * + *
      +   * Rows that matched the search query.
      +   * 
      + * + * repeated .google.shopping.merchant.reports.v1alpha.ReportRow results = 1; + */ + com.google.shopping.merchant.reports.v1alpha.ReportRow getResults(int index); + + /** + * + * + *
      +   * Rows that matched the search query.
      +   * 
      + * + * repeated .google.shopping.merchant.reports.v1alpha.ReportRow results = 1; + */ + int getResultsCount(); + + /** + * + * + *
      +   * Rows that matched the search query.
      +   * 
      + * + * repeated .google.shopping.merchant.reports.v1alpha.ReportRow results = 1; + */ + java.util.List + getResultsOrBuilderList(); + + /** + * + * + *
      +   * Rows that matched the search query.
      +   * 
      + * + * repeated .google.shopping.merchant.reports.v1alpha.ReportRow results = 1; + */ + com.google.shopping.merchant.reports.v1alpha.ReportRowOrBuilder getResultsOrBuilder(int index); + + /** + * + * + *
      +   * Token which can be sent as `page_token` to retrieve the next page. If
      +   * omitted, there are no subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
      +   * Token which can be sent as `page_token` to retrieve the next page. If
      +   * omitted, there are no subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/TrafficSource.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/TrafficSource.java new file mode 100644 index 000000000000..d891ec8bdf7f --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/TrafficSource.java @@ -0,0 +1,622 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/reports/v1alpha/reports.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.reports.v1alpha; + +/** + * + * + *
      + * Traffic source of impressions in the Competitive visibility report.
      + * 
      + * + * Protobuf type {@code google.shopping.merchant.reports.v1alpha.TrafficSource} + */ +public final class TrafficSource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.reports.v1alpha.TrafficSource) + TrafficSourceOrBuilder { + private static final long serialVersionUID = 0L; + + // Use TrafficSource.newBuilder() to construct. + private TrafficSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrafficSource() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrafficSource(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_TrafficSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_TrafficSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1alpha.TrafficSource.class, + com.google.shopping.merchant.reports.v1alpha.TrafficSource.Builder.class); + } + + /** + * + * + *
      +   * Traffic source values.
      +   * 
      + * + * Protobuf enum {@code google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum} + */ + public enum TrafficSourceEnum implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +     * Not specified.
      +     * 
      + * + * TRAFFIC_SOURCE_ENUM_UNSPECIFIED = 0; + */ + TRAFFIC_SOURCE_ENUM_UNSPECIFIED(0), + /** + * + * + *
      +     * Organic traffic.
      +     * 
      + * + * ORGANIC = 1; + */ + ORGANIC(1), + /** + * + * + *
      +     * Traffic from ads.
      +     * 
      + * + * ADS = 2; + */ + ADS(2), + /** + * + * + *
      +     * Organic and ads traffic.
      +     * 
      + * + * ALL = 3; + */ + ALL(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
      +     * Not specified.
      +     * 
      + * + * TRAFFIC_SOURCE_ENUM_UNSPECIFIED = 0; + */ + public static final int TRAFFIC_SOURCE_ENUM_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +     * Organic traffic.
      +     * 
      + * + * ORGANIC = 1; + */ + public static final int ORGANIC_VALUE = 1; + + /** + * + * + *
      +     * Traffic from ads.
      +     * 
      + * + * ADS = 2; + */ + public static final int ADS_VALUE = 2; + + /** + * + * + *
      +     * Organic and ads traffic.
      +     * 
      + * + * ALL = 3; + */ + public static final int ALL_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TrafficSourceEnum 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 TrafficSourceEnum forNumber(int value) { + switch (value) { + case 0: + return TRAFFIC_SOURCE_ENUM_UNSPECIFIED; + case 1: + return ORGANIC; + case 2: + return ADS; + case 3: + return ALL; + 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 TrafficSourceEnum findValueByNumber(int number) { + return TrafficSourceEnum.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.TrafficSource.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final TrafficSourceEnum[] VALUES = values(); + + public static TrafficSourceEnum 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 TrafficSourceEnum(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.shopping.merchant.reports.v1alpha.TrafficSource.TrafficSourceEnum) + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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.shopping.merchant.reports.v1alpha.TrafficSource)) { + return super.equals(obj); + } + com.google.shopping.merchant.reports.v1alpha.TrafficSource other = + (com.google.shopping.merchant.reports.v1alpha.TrafficSource) 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.shopping.merchant.reports.v1alpha.TrafficSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.TrafficSource parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.TrafficSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.TrafficSource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.TrafficSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.TrafficSource parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.TrafficSource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.TrafficSource parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.TrafficSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.TrafficSource parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.TrafficSource parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.TrafficSource parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.shopping.merchant.reports.v1alpha.TrafficSource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Traffic source of impressions in the Competitive visibility report.
      +   * 
      + * + * Protobuf type {@code google.shopping.merchant.reports.v1alpha.TrafficSource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.reports.v1alpha.TrafficSource) + com.google.shopping.merchant.reports.v1alpha.TrafficSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_TrafficSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_TrafficSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1alpha.TrafficSource.class, + com.google.shopping.merchant.reports.v1alpha.TrafficSource.Builder.class); + } + + // Construct using com.google.shopping.merchant.reports.v1alpha.TrafficSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_TrafficSource_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.TrafficSource getDefaultInstanceForType() { + return com.google.shopping.merchant.reports.v1alpha.TrafficSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.TrafficSource build() { + com.google.shopping.merchant.reports.v1alpha.TrafficSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.TrafficSource buildPartial() { + com.google.shopping.merchant.reports.v1alpha.TrafficSource result = + new com.google.shopping.merchant.reports.v1alpha.TrafficSource(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.shopping.merchant.reports.v1alpha.TrafficSource) { + return mergeFrom((com.google.shopping.merchant.reports.v1alpha.TrafficSource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.shopping.merchant.reports.v1alpha.TrafficSource other) { + if (other == com.google.shopping.merchant.reports.v1alpha.TrafficSource.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.reports.v1alpha.TrafficSource) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.reports.v1alpha.TrafficSource) + private static final com.google.shopping.merchant.reports.v1alpha.TrafficSource DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.shopping.merchant.reports.v1alpha.TrafficSource(); + } + + public static com.google.shopping.merchant.reports.v1alpha.TrafficSource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrafficSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.TrafficSource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/TrafficSourceOrBuilder.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/TrafficSourceOrBuilder.java new file mode 100644 index 000000000000..85a2c562b4af --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/TrafficSourceOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/reports/v1alpha/reports.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.reports.v1alpha; + +public interface TrafficSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.reports.v1alpha.TrafficSource) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/YoutubeContentPerformanceView.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/YoutubeContentPerformanceView.java new file mode 100644 index 000000000000..67518c4d3086 --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/YoutubeContentPerformanceView.java @@ -0,0 +1,2926 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/reports/v1alpha/reports.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.reports.v1alpha; + +/** + * + * + *
      + * Fields available for query in `youtube_content_performance_view` table.
      + *
      + * [YouTube content performance
      + * data](https://support.google.com/merchants/answer/14947975) for your account.
      + * This data is only available if an account is enrolled in the [YouTube
      + * Shopping Affiliate
      + * program](https://support.google.com/merchants/answer/14815513?hl=en).
      + *
      + * Values are only set for fields requested explicitly in the request's search
      + * query.
      + * 
      + * + * Protobuf type {@code google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView} + */ +public final class YoutubeContentPerformanceView extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView) + YoutubeContentPerformanceViewOrBuilder { + private static final long serialVersionUID = 0L; + + // Use YoutubeContentPerformanceView.newBuilder() to construct. + private YoutubeContentPerformanceView(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private YoutubeContentPerformanceView() { + title_ = ""; + videoId_ = ""; + channelTitle_ = ""; + channelId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new YoutubeContentPerformanceView(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_YoutubeContentPerformanceView_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_YoutubeContentPerformanceView_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView.class, + com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView.Builder + .class); + } + + private int bitField0_; + public static final int DATE_FIELD_NUMBER = 1; + private com.google.type.Date date_; + + /** + * + * + *
      +   * Date in the merchant timezone to which metrics apply. Segment.
      +   *
      +   * Condition on `date` is required in the `WHERE` clause.
      +   * 
      + * + * .google.type.Date date = 1; + * + * @return Whether the date field is set. + */ + @java.lang.Override + public boolean hasDate() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Date in the merchant timezone to which metrics apply. Segment.
      +   *
      +   * Condition on `date` is required in the `WHERE` clause.
      +   * 
      + * + * .google.type.Date date = 1; + * + * @return The date. + */ + @java.lang.Override + public com.google.type.Date getDate() { + return date_ == null ? com.google.type.Date.getDefaultInstance() : date_; + } + + /** + * + * + *
      +   * Date in the merchant timezone to which metrics apply. Segment.
      +   *
      +   * Condition on `date` is required in the `WHERE` clause.
      +   * 
      + * + * .google.type.Date date = 1; + */ + @java.lang.Override + public com.google.type.DateOrBuilder getDateOrBuilder() { + return date_ == null ? com.google.type.Date.getDefaultInstance() : date_; + } + + public static final int TITLE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + + /** + * + * + *
      +   * The video title.
      +   * 
      + * + * optional string title = 2; + * + * @return Whether the title field is set. + */ + @java.lang.Override + public boolean hasTitle() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * The video title.
      +   * 
      + * + * optional string title = 2; + * + * @return The title. + */ + @java.lang.Override + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } + } + + /** + * + * + *
      +   * The video title.
      +   * 
      + * + * optional string title = 2; + * + * @return The bytes for title. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VIDEO_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object videoId_ = ""; + + /** + * + * + *
      +   * The video id.
      +   * 
      + * + * optional string video_id = 3; + * + * @return Whether the videoId field is set. + */ + @java.lang.Override + public boolean hasVideoId() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +   * The video id.
      +   * 
      + * + * optional string video_id = 3; + * + * @return The videoId. + */ + @java.lang.Override + public java.lang.String getVideoId() { + java.lang.Object ref = videoId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + videoId_ = s; + return s; + } + } + + /** + * + * + *
      +   * The video id.
      +   * 
      + * + * optional string video_id = 3; + * + * @return The bytes for videoId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVideoIdBytes() { + java.lang.Object ref = videoId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + videoId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CHANNEL_TITLE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object channelTitle_ = ""; + + /** + * + * + *
      +   * The channel title.
      +   * 
      + * + * optional string channel_title = 4; + * + * @return Whether the channelTitle field is set. + */ + @java.lang.Override + public boolean hasChannelTitle() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +   * The channel title.
      +   * 
      + * + * optional string channel_title = 4; + * + * @return The channelTitle. + */ + @java.lang.Override + public java.lang.String getChannelTitle() { + java.lang.Object ref = channelTitle_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + channelTitle_ = s; + return s; + } + } + + /** + * + * + *
      +   * The channel title.
      +   * 
      + * + * optional string channel_title = 4; + * + * @return The bytes for channelTitle. + */ + @java.lang.Override + public com.google.protobuf.ByteString getChannelTitleBytes() { + java.lang.Object ref = channelTitle_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + channelTitle_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CHANNEL_ID_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object channelId_ = ""; + + /** + * + * + *
      +   * The channel id.
      +   * 
      + * + * optional string channel_id = 5; + * + * @return Whether the channelId field is set. + */ + @java.lang.Override + public boolean hasChannelId() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
      +   * The channel id.
      +   * 
      + * + * optional string channel_id = 5; + * + * @return The channelId. + */ + @java.lang.Override + public java.lang.String getChannelId() { + java.lang.Object ref = channelId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + channelId_ = s; + return s; + } + } + + /** + * + * + *
      +   * The channel id.
      +   * 
      + * + * optional string channel_id = 5; + * + * @return The bytes for channelId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getChannelIdBytes() { + java.lang.Object ref = channelId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + channelId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GROSS_SALES_FIELD_NUMBER = 6; + private com.google.shopping.type.Price grossSales_; + + /** + * + * + *
      +   * The gross sales amount, before refunds.
      +   * 
      + * + * optional .google.shopping.type.Price gross_sales = 6; + * + * @return Whether the grossSales field is set. + */ + @java.lang.Override + public boolean hasGrossSales() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
      +   * The gross sales amount, before refunds.
      +   * 
      + * + * optional .google.shopping.type.Price gross_sales = 6; + * + * @return The grossSales. + */ + @java.lang.Override + public com.google.shopping.type.Price getGrossSales() { + return grossSales_ == null ? com.google.shopping.type.Price.getDefaultInstance() : grossSales_; + } + + /** + * + * + *
      +   * The gross sales amount, before refunds.
      +   * 
      + * + * optional .google.shopping.type.Price gross_sales = 6; + */ + @java.lang.Override + public com.google.shopping.type.PriceOrBuilder getGrossSalesOrBuilder() { + return grossSales_ == null ? com.google.shopping.type.Price.getDefaultInstance() : grossSales_; + } + + public static final int COMMISSIONS_FIELD_NUMBER = 7; + private com.google.shopping.type.Price commissions_; + + /** + * + * + *
      +   * The commissions amount (pending and paid).
      +   * 
      + * + * optional .google.shopping.type.Price commissions = 7; + * + * @return Whether the commissions field is set. + */ + @java.lang.Override + public boolean hasCommissions() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
      +   * The commissions amount (pending and paid).
      +   * 
      + * + * optional .google.shopping.type.Price commissions = 7; + * + * @return The commissions. + */ + @java.lang.Override + public com.google.shopping.type.Price getCommissions() { + return commissions_ == null + ? com.google.shopping.type.Price.getDefaultInstance() + : commissions_; + } + + /** + * + * + *
      +   * The commissions amount (pending and paid).
      +   * 
      + * + * optional .google.shopping.type.Price commissions = 7; + */ + @java.lang.Override + public com.google.shopping.type.PriceOrBuilder getCommissionsOrBuilder() { + return commissions_ == null + ? com.google.shopping.type.Price.getDefaultInstance() + : commissions_; + } + + public static final int ORDERS_FIELD_NUMBER = 8; + private long orders_ = 0L; + + /** + * + * + *
      +   * The number of orders.
      +   * 
      + * + * optional int64 orders = 8; + * + * @return Whether the orders field is set. + */ + @java.lang.Override + public boolean hasOrders() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
      +   * The number of orders.
      +   * 
      + * + * optional int64 orders = 8; + * + * @return The orders. + */ + @java.lang.Override + public long getOrders() { + return orders_; + } + + public static final int VIEWS_FIELD_NUMBER = 9; + private long views_ = 0L; + + /** + * + * + *
      +   * The number of YouTube views.
      +   * 
      + * + * optional int64 views = 9; + * + * @return Whether the views field is set. + */ + @java.lang.Override + public boolean hasViews() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
      +   * The number of YouTube views.
      +   * 
      + * + * optional int64 views = 9; + * + * @return The views. + */ + @java.lang.Override + public long getViews() { + return views_; + } + + public static final int CLICKS_FIELD_NUMBER = 10; + private long clicks_ = 0L; + + /** + * + * + *
      +   * The number of product clicks.
      +   * 
      + * + * optional int64 clicks = 10; + * + * @return Whether the clicks field is set. + */ + @java.lang.Override + public boolean hasClicks() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
      +   * The number of product clicks.
      +   * 
      + * + * optional int64 clicks = 10; + * + * @return The clicks. + */ + @java.lang.Override + public long getClicks() { + return clicks_; + } + + public static final int NET_SALES_FIELD_NUMBER = 11; + private com.google.shopping.type.Price netSales_; + + /** + * + * + *
      +   * The net sales amount (includes both purchase and refunds).
      +   * 
      + * + * optional .google.shopping.type.Price net_sales = 11; + * + * @return Whether the netSales field is set. + */ + @java.lang.Override + public boolean hasNetSales() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
      +   * The net sales amount (includes both purchase and refunds).
      +   * 
      + * + * optional .google.shopping.type.Price net_sales = 11; + * + * @return The netSales. + */ + @java.lang.Override + public com.google.shopping.type.Price getNetSales() { + return netSales_ == null ? com.google.shopping.type.Price.getDefaultInstance() : netSales_; + } + + /** + * + * + *
      +   * The net sales amount (includes both purchase and refunds).
      +   * 
      + * + * optional .google.shopping.type.Price net_sales = 11; + */ + @java.lang.Override + public com.google.shopping.type.PriceOrBuilder getNetSalesOrBuilder() { + return netSales_ == null ? com.google.shopping.type.Price.getDefaultInstance() : netSales_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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, getDate()); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, videoId_); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, channelTitle_); + } + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, channelId_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(6, getGrossSales()); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(7, getCommissions()); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeInt64(8, orders_); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeInt64(9, views_); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeInt64(10, clicks_); + } + if (((bitField0_ & 0x00000400) != 0)) { + output.writeMessage(11, getNetSales()); + } + 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, getDate()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, videoId_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, channelTitle_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, channelId_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getGrossSales()); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCommissions()); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, orders_); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, views_); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(10, clicks_); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getNetSales()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView)) { + return super.equals(obj); + } + com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView other = + (com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView) obj; + + if (hasDate() != other.hasDate()) return false; + if (hasDate()) { + if (!getDate().equals(other.getDate())) return false; + } + if (hasTitle() != other.hasTitle()) return false; + if (hasTitle()) { + if (!getTitle().equals(other.getTitle())) return false; + } + if (hasVideoId() != other.hasVideoId()) return false; + if (hasVideoId()) { + if (!getVideoId().equals(other.getVideoId())) return false; + } + if (hasChannelTitle() != other.hasChannelTitle()) return false; + if (hasChannelTitle()) { + if (!getChannelTitle().equals(other.getChannelTitle())) return false; + } + if (hasChannelId() != other.hasChannelId()) return false; + if (hasChannelId()) { + if (!getChannelId().equals(other.getChannelId())) return false; + } + if (hasGrossSales() != other.hasGrossSales()) return false; + if (hasGrossSales()) { + if (!getGrossSales().equals(other.getGrossSales())) return false; + } + if (hasCommissions() != other.hasCommissions()) return false; + if (hasCommissions()) { + if (!getCommissions().equals(other.getCommissions())) return false; + } + if (hasOrders() != other.hasOrders()) return false; + if (hasOrders()) { + if (getOrders() != other.getOrders()) return false; + } + if (hasViews() != other.hasViews()) return false; + if (hasViews()) { + if (getViews() != other.getViews()) return false; + } + if (hasClicks() != other.hasClicks()) return false; + if (hasClicks()) { + if (getClicks() != other.getClicks()) return false; + } + if (hasNetSales() != other.hasNetSales()) return false; + if (hasNetSales()) { + if (!getNetSales().equals(other.getNetSales())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDate()) { + hash = (37 * hash) + DATE_FIELD_NUMBER; + hash = (53 * hash) + getDate().hashCode(); + } + if (hasTitle()) { + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + } + if (hasVideoId()) { + hash = (37 * hash) + VIDEO_ID_FIELD_NUMBER; + hash = (53 * hash) + getVideoId().hashCode(); + } + if (hasChannelTitle()) { + hash = (37 * hash) + CHANNEL_TITLE_FIELD_NUMBER; + hash = (53 * hash) + getChannelTitle().hashCode(); + } + if (hasChannelId()) { + hash = (37 * hash) + CHANNEL_ID_FIELD_NUMBER; + hash = (53 * hash) + getChannelId().hashCode(); + } + if (hasGrossSales()) { + hash = (37 * hash) + GROSS_SALES_FIELD_NUMBER; + hash = (53 * hash) + getGrossSales().hashCode(); + } + if (hasCommissions()) { + hash = (37 * hash) + COMMISSIONS_FIELD_NUMBER; + hash = (53 * hash) + getCommissions().hashCode(); + } + if (hasOrders()) { + hash = (37 * hash) + ORDERS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getOrders()); + } + if (hasViews()) { + hash = (37 * hash) + VIEWS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getViews()); + } + if (hasClicks()) { + hash = (37 * hash) + CLICKS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getClicks()); + } + if (hasNetSales()) { + hash = (37 * hash) + NET_SALES_FIELD_NUMBER; + hash = (53 * hash) + getNetSales().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Fields available for query in `youtube_content_performance_view` table.
      +   *
      +   * [YouTube content performance
      +   * data](https://support.google.com/merchants/answer/14947975) for your account.
      +   * This data is only available if an account is enrolled in the [YouTube
      +   * Shopping Affiliate
      +   * program](https://support.google.com/merchants/answer/14815513?hl=en).
      +   *
      +   * Values are only set for fields requested explicitly in the request's search
      +   * query.
      +   * 
      + * + * Protobuf type {@code google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView) + com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceViewOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_YoutubeContentPerformanceView_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_YoutubeContentPerformanceView_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView.class, + com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView.Builder + .class); + } + + // Construct using + // com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDateFieldBuilder(); + getGrossSalesFieldBuilder(); + getCommissionsFieldBuilder(); + getNetSalesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + date_ = null; + if (dateBuilder_ != null) { + dateBuilder_.dispose(); + dateBuilder_ = null; + } + title_ = ""; + videoId_ = ""; + channelTitle_ = ""; + channelId_ = ""; + grossSales_ = null; + if (grossSalesBuilder_ != null) { + grossSalesBuilder_.dispose(); + grossSalesBuilder_ = null; + } + commissions_ = null; + if (commissionsBuilder_ != null) { + commissionsBuilder_.dispose(); + commissionsBuilder_ = null; + } + orders_ = 0L; + views_ = 0L; + clicks_ = 0L; + netSales_ = null; + if (netSalesBuilder_ != null) { + netSalesBuilder_.dispose(); + netSalesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_YoutubeContentPerformanceView_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView + getDefaultInstanceForType() { + return com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView build() { + com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView + buildPartial() { + com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView result = + new com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.date_ = dateBuilder_ == null ? date_ : dateBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.title_ = title_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.videoId_ = videoId_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.channelTitle_ = channelTitle_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.channelId_ = channelId_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.grossSales_ = grossSalesBuilder_ == null ? grossSales_ : grossSalesBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.commissions_ = + commissionsBuilder_ == null ? commissions_ : commissionsBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.orders_ = orders_; + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.views_ = views_; + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.clicks_ = clicks_; + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.netSales_ = netSalesBuilder_ == null ? netSales_ : netSalesBuilder_.build(); + to_bitField0_ |= 0x00000400; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView) { + return mergeFrom( + (com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView other) { + if (other + == com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView + .getDefaultInstance()) return this; + if (other.hasDate()) { + mergeDate(other.getDate()); + } + if (other.hasTitle()) { + title_ = other.title_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasVideoId()) { + videoId_ = other.videoId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasChannelTitle()) { + channelTitle_ = other.channelTitle_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasChannelId()) { + channelId_ = other.channelId_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasGrossSales()) { + mergeGrossSales(other.getGrossSales()); + } + if (other.hasCommissions()) { + mergeCommissions(other.getCommissions()); + } + if (other.hasOrders()) { + setOrders(other.getOrders()); + } + if (other.hasViews()) { + setViews(other.getViews()); + } + if (other.hasClicks()) { + setClicks(other.getClicks()); + } + if (other.hasNetSales()) { + mergeNetSales(other.getNetSales()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(getDateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + videoId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + channelTitle_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + channelId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage(getGrossSalesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage(getCommissionsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 64: + { + orders_ = input.readInt64(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: + { + views_ = input.readInt64(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 80: + { + clicks_ = input.readInt64(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 90: + { + input.readMessage(getNetSalesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 90 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.type.Date date_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + dateBuilder_; + + /** + * + * + *
      +     * Date in the merchant timezone to which metrics apply. Segment.
      +     *
      +     * Condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + * + * @return Whether the date field is set. + */ + public boolean hasDate() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +     * Date in the merchant timezone to which metrics apply. Segment.
      +     *
      +     * Condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + * + * @return The date. + */ + public com.google.type.Date getDate() { + if (dateBuilder_ == null) { + return date_ == null ? com.google.type.Date.getDefaultInstance() : date_; + } else { + return dateBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Date in the merchant timezone to which metrics apply. Segment.
      +     *
      +     * Condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + */ + public Builder setDate(com.google.type.Date value) { + if (dateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + date_ = value; + } else { + dateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Date in the merchant timezone to which metrics apply. Segment.
      +     *
      +     * Condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + */ + public Builder setDate(com.google.type.Date.Builder builderForValue) { + if (dateBuilder_ == null) { + date_ = builderForValue.build(); + } else { + dateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Date in the merchant timezone to which metrics apply. Segment.
      +     *
      +     * Condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + */ + public Builder mergeDate(com.google.type.Date value) { + if (dateBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && date_ != null + && date_ != com.google.type.Date.getDefaultInstance()) { + getDateBuilder().mergeFrom(value); + } else { + date_ = value; + } + } else { + dateBuilder_.mergeFrom(value); + } + if (date_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Date in the merchant timezone to which metrics apply. Segment.
      +     *
      +     * Condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + */ + public Builder clearDate() { + bitField0_ = (bitField0_ & ~0x00000001); + date_ = null; + if (dateBuilder_ != null) { + dateBuilder_.dispose(); + dateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Date in the merchant timezone to which metrics apply. Segment.
      +     *
      +     * Condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + */ + public com.google.type.Date.Builder getDateBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getDateFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Date in the merchant timezone to which metrics apply. Segment.
      +     *
      +     * Condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + */ + public com.google.type.DateOrBuilder getDateOrBuilder() { + if (dateBuilder_ != null) { + return dateBuilder_.getMessageOrBuilder(); + } else { + return date_ == null ? com.google.type.Date.getDefaultInstance() : date_; + } + } + + /** + * + * + *
      +     * Date in the merchant timezone to which metrics apply. Segment.
      +     *
      +     * Condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getDateFieldBuilder() { + if (dateBuilder_ == null) { + dateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getDate(), getParentForChildren(), isClean()); + date_ = null; + } + return dateBuilder_; + } + + private java.lang.Object title_ = ""; + + /** + * + * + *
      +     * The video title.
      +     * 
      + * + * optional string title = 2; + * + * @return Whether the title field is set. + */ + public boolean hasTitle() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +     * The video title.
      +     * 
      + * + * optional string title = 2; + * + * @return The title. + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * The video title.
      +     * 
      + * + * optional string title = 2; + * + * @return The bytes for title. + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * The video title.
      +     * 
      + * + * optional string title = 2; + * + * @param value The title to set. + * @return This builder for chaining. + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + title_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The video title.
      +     * 
      + * + * optional string title = 2; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * The video title.
      +     * 
      + * + * optional string title = 2; + * + * @param value The bytes for title to set. + * @return This builder for chaining. + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + title_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object videoId_ = ""; + + /** + * + * + *
      +     * The video id.
      +     * 
      + * + * optional string video_id = 3; + * + * @return Whether the videoId field is set. + */ + public boolean hasVideoId() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +     * The video id.
      +     * 
      + * + * optional string video_id = 3; + * + * @return The videoId. + */ + public java.lang.String getVideoId() { + java.lang.Object ref = videoId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + videoId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * The video id.
      +     * 
      + * + * optional string video_id = 3; + * + * @return The bytes for videoId. + */ + public com.google.protobuf.ByteString getVideoIdBytes() { + java.lang.Object ref = videoId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + videoId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * The video id.
      +     * 
      + * + * optional string video_id = 3; + * + * @param value The videoId to set. + * @return This builder for chaining. + */ + public Builder setVideoId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + videoId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The video id.
      +     * 
      + * + * optional string video_id = 3; + * + * @return This builder for chaining. + */ + public Builder clearVideoId() { + videoId_ = getDefaultInstance().getVideoId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * The video id.
      +     * 
      + * + * optional string video_id = 3; + * + * @param value The bytes for videoId to set. + * @return This builder for chaining. + */ + public Builder setVideoIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + videoId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object channelTitle_ = ""; + + /** + * + * + *
      +     * The channel title.
      +     * 
      + * + * optional string channel_title = 4; + * + * @return Whether the channelTitle field is set. + */ + public boolean hasChannelTitle() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +     * The channel title.
      +     * 
      + * + * optional string channel_title = 4; + * + * @return The channelTitle. + */ + public java.lang.String getChannelTitle() { + java.lang.Object ref = channelTitle_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + channelTitle_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * The channel title.
      +     * 
      + * + * optional string channel_title = 4; + * + * @return The bytes for channelTitle. + */ + public com.google.protobuf.ByteString getChannelTitleBytes() { + java.lang.Object ref = channelTitle_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + channelTitle_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * The channel title.
      +     * 
      + * + * optional string channel_title = 4; + * + * @param value The channelTitle to set. + * @return This builder for chaining. + */ + public Builder setChannelTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + channelTitle_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The channel title.
      +     * 
      + * + * optional string channel_title = 4; + * + * @return This builder for chaining. + */ + public Builder clearChannelTitle() { + channelTitle_ = getDefaultInstance().getChannelTitle(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
      +     * The channel title.
      +     * 
      + * + * optional string channel_title = 4; + * + * @param value The bytes for channelTitle to set. + * @return This builder for chaining. + */ + public Builder setChannelTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + channelTitle_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object channelId_ = ""; + + /** + * + * + *
      +     * The channel id.
      +     * 
      + * + * optional string channel_id = 5; + * + * @return Whether the channelId field is set. + */ + public boolean hasChannelId() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
      +     * The channel id.
      +     * 
      + * + * optional string channel_id = 5; + * + * @return The channelId. + */ + public java.lang.String getChannelId() { + java.lang.Object ref = channelId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + channelId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * The channel id.
      +     * 
      + * + * optional string channel_id = 5; + * + * @return The bytes for channelId. + */ + public com.google.protobuf.ByteString getChannelIdBytes() { + java.lang.Object ref = channelId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + channelId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * The channel id.
      +     * 
      + * + * optional string channel_id = 5; + * + * @param value The channelId to set. + * @return This builder for chaining. + */ + public Builder setChannelId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + channelId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The channel id.
      +     * 
      + * + * optional string channel_id = 5; + * + * @return This builder for chaining. + */ + public Builder clearChannelId() { + channelId_ = getDefaultInstance().getChannelId(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
      +     * The channel id.
      +     * 
      + * + * optional string channel_id = 5; + * + * @param value The bytes for channelId to set. + * @return This builder for chaining. + */ + public Builder setChannelIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + channelId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.shopping.type.Price grossSales_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> + grossSalesBuilder_; + + /** + * + * + *
      +     * The gross sales amount, before refunds.
      +     * 
      + * + * optional .google.shopping.type.Price gross_sales = 6; + * + * @return Whether the grossSales field is set. + */ + public boolean hasGrossSales() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
      +     * The gross sales amount, before refunds.
      +     * 
      + * + * optional .google.shopping.type.Price gross_sales = 6; + * + * @return The grossSales. + */ + public com.google.shopping.type.Price getGrossSales() { + if (grossSalesBuilder_ == null) { + return grossSales_ == null + ? com.google.shopping.type.Price.getDefaultInstance() + : grossSales_; + } else { + return grossSalesBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * The gross sales amount, before refunds.
      +     * 
      + * + * optional .google.shopping.type.Price gross_sales = 6; + */ + public Builder setGrossSales(com.google.shopping.type.Price value) { + if (grossSalesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + grossSales_ = value; + } else { + grossSalesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The gross sales amount, before refunds.
      +     * 
      + * + * optional .google.shopping.type.Price gross_sales = 6; + */ + public Builder setGrossSales(com.google.shopping.type.Price.Builder builderForValue) { + if (grossSalesBuilder_ == null) { + grossSales_ = builderForValue.build(); + } else { + grossSalesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The gross sales amount, before refunds.
      +     * 
      + * + * optional .google.shopping.type.Price gross_sales = 6; + */ + public Builder mergeGrossSales(com.google.shopping.type.Price value) { + if (grossSalesBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && grossSales_ != null + && grossSales_ != com.google.shopping.type.Price.getDefaultInstance()) { + getGrossSalesBuilder().mergeFrom(value); + } else { + grossSales_ = value; + } + } else { + grossSalesBuilder_.mergeFrom(value); + } + if (grossSales_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * The gross sales amount, before refunds.
      +     * 
      + * + * optional .google.shopping.type.Price gross_sales = 6; + */ + public Builder clearGrossSales() { + bitField0_ = (bitField0_ & ~0x00000020); + grossSales_ = null; + if (grossSalesBuilder_ != null) { + grossSalesBuilder_.dispose(); + grossSalesBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * The gross sales amount, before refunds.
      +     * 
      + * + * optional .google.shopping.type.Price gross_sales = 6; + */ + public com.google.shopping.type.Price.Builder getGrossSalesBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getGrossSalesFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * The gross sales amount, before refunds.
      +     * 
      + * + * optional .google.shopping.type.Price gross_sales = 6; + */ + public com.google.shopping.type.PriceOrBuilder getGrossSalesOrBuilder() { + if (grossSalesBuilder_ != null) { + return grossSalesBuilder_.getMessageOrBuilder(); + } else { + return grossSales_ == null + ? com.google.shopping.type.Price.getDefaultInstance() + : grossSales_; + } + } + + /** + * + * + *
      +     * The gross sales amount, before refunds.
      +     * 
      + * + * optional .google.shopping.type.Price gross_sales = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> + getGrossSalesFieldBuilder() { + if (grossSalesBuilder_ == null) { + grossSalesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder>( + getGrossSales(), getParentForChildren(), isClean()); + grossSales_ = null; + } + return grossSalesBuilder_; + } + + private com.google.shopping.type.Price commissions_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> + commissionsBuilder_; + + /** + * + * + *
      +     * The commissions amount (pending and paid).
      +     * 
      + * + * optional .google.shopping.type.Price commissions = 7; + * + * @return Whether the commissions field is set. + */ + public boolean hasCommissions() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
      +     * The commissions amount (pending and paid).
      +     * 
      + * + * optional .google.shopping.type.Price commissions = 7; + * + * @return The commissions. + */ + public com.google.shopping.type.Price getCommissions() { + if (commissionsBuilder_ == null) { + return commissions_ == null + ? com.google.shopping.type.Price.getDefaultInstance() + : commissions_; + } else { + return commissionsBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * The commissions amount (pending and paid).
      +     * 
      + * + * optional .google.shopping.type.Price commissions = 7; + */ + public Builder setCommissions(com.google.shopping.type.Price value) { + if (commissionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + commissions_ = value; + } else { + commissionsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The commissions amount (pending and paid).
      +     * 
      + * + * optional .google.shopping.type.Price commissions = 7; + */ + public Builder setCommissions(com.google.shopping.type.Price.Builder builderForValue) { + if (commissionsBuilder_ == null) { + commissions_ = builderForValue.build(); + } else { + commissionsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The commissions amount (pending and paid).
      +     * 
      + * + * optional .google.shopping.type.Price commissions = 7; + */ + public Builder mergeCommissions(com.google.shopping.type.Price value) { + if (commissionsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && commissions_ != null + && commissions_ != com.google.shopping.type.Price.getDefaultInstance()) { + getCommissionsBuilder().mergeFrom(value); + } else { + commissions_ = value; + } + } else { + commissionsBuilder_.mergeFrom(value); + } + if (commissions_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * The commissions amount (pending and paid).
      +     * 
      + * + * optional .google.shopping.type.Price commissions = 7; + */ + public Builder clearCommissions() { + bitField0_ = (bitField0_ & ~0x00000040); + commissions_ = null; + if (commissionsBuilder_ != null) { + commissionsBuilder_.dispose(); + commissionsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * The commissions amount (pending and paid).
      +     * 
      + * + * optional .google.shopping.type.Price commissions = 7; + */ + public com.google.shopping.type.Price.Builder getCommissionsBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getCommissionsFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * The commissions amount (pending and paid).
      +     * 
      + * + * optional .google.shopping.type.Price commissions = 7; + */ + public com.google.shopping.type.PriceOrBuilder getCommissionsOrBuilder() { + if (commissionsBuilder_ != null) { + return commissionsBuilder_.getMessageOrBuilder(); + } else { + return commissions_ == null + ? com.google.shopping.type.Price.getDefaultInstance() + : commissions_; + } + } + + /** + * + * + *
      +     * The commissions amount (pending and paid).
      +     * 
      + * + * optional .google.shopping.type.Price commissions = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> + getCommissionsFieldBuilder() { + if (commissionsBuilder_ == null) { + commissionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder>( + getCommissions(), getParentForChildren(), isClean()); + commissions_ = null; + } + return commissionsBuilder_; + } + + private long orders_; + + /** + * + * + *
      +     * The number of orders.
      +     * 
      + * + * optional int64 orders = 8; + * + * @return Whether the orders field is set. + */ + @java.lang.Override + public boolean hasOrders() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
      +     * The number of orders.
      +     * 
      + * + * optional int64 orders = 8; + * + * @return The orders. + */ + @java.lang.Override + public long getOrders() { + return orders_; + } + + /** + * + * + *
      +     * The number of orders.
      +     * 
      + * + * optional int64 orders = 8; + * + * @param value The orders to set. + * @return This builder for chaining. + */ + public Builder setOrders(long value) { + + orders_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The number of orders.
      +     * 
      + * + * optional int64 orders = 8; + * + * @return This builder for chaining. + */ + public Builder clearOrders() { + bitField0_ = (bitField0_ & ~0x00000080); + orders_ = 0L; + onChanged(); + return this; + } + + private long views_; + + /** + * + * + *
      +     * The number of YouTube views.
      +     * 
      + * + * optional int64 views = 9; + * + * @return Whether the views field is set. + */ + @java.lang.Override + public boolean hasViews() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
      +     * The number of YouTube views.
      +     * 
      + * + * optional int64 views = 9; + * + * @return The views. + */ + @java.lang.Override + public long getViews() { + return views_; + } + + /** + * + * + *
      +     * The number of YouTube views.
      +     * 
      + * + * optional int64 views = 9; + * + * @param value The views to set. + * @return This builder for chaining. + */ + public Builder setViews(long value) { + + views_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The number of YouTube views.
      +     * 
      + * + * optional int64 views = 9; + * + * @return This builder for chaining. + */ + public Builder clearViews() { + bitField0_ = (bitField0_ & ~0x00000100); + views_ = 0L; + onChanged(); + return this; + } + + private long clicks_; + + /** + * + * + *
      +     * The number of product clicks.
      +     * 
      + * + * optional int64 clicks = 10; + * + * @return Whether the clicks field is set. + */ + @java.lang.Override + public boolean hasClicks() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
      +     * The number of product clicks.
      +     * 
      + * + * optional int64 clicks = 10; + * + * @return The clicks. + */ + @java.lang.Override + public long getClicks() { + return clicks_; + } + + /** + * + * + *
      +     * The number of product clicks.
      +     * 
      + * + * optional int64 clicks = 10; + * + * @param value The clicks to set. + * @return This builder for chaining. + */ + public Builder setClicks(long value) { + + clicks_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The number of product clicks.
      +     * 
      + * + * optional int64 clicks = 10; + * + * @return This builder for chaining. + */ + public Builder clearClicks() { + bitField0_ = (bitField0_ & ~0x00000200); + clicks_ = 0L; + onChanged(); + return this; + } + + private com.google.shopping.type.Price netSales_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> + netSalesBuilder_; + + /** + * + * + *
      +     * The net sales amount (includes both purchase and refunds).
      +     * 
      + * + * optional .google.shopping.type.Price net_sales = 11; + * + * @return Whether the netSales field is set. + */ + public boolean hasNetSales() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
      +     * The net sales amount (includes both purchase and refunds).
      +     * 
      + * + * optional .google.shopping.type.Price net_sales = 11; + * + * @return The netSales. + */ + public com.google.shopping.type.Price getNetSales() { + if (netSalesBuilder_ == null) { + return netSales_ == null ? com.google.shopping.type.Price.getDefaultInstance() : netSales_; + } else { + return netSalesBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * The net sales amount (includes both purchase and refunds).
      +     * 
      + * + * optional .google.shopping.type.Price net_sales = 11; + */ + public Builder setNetSales(com.google.shopping.type.Price value) { + if (netSalesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + netSales_ = value; + } else { + netSalesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The net sales amount (includes both purchase and refunds).
      +     * 
      + * + * optional .google.shopping.type.Price net_sales = 11; + */ + public Builder setNetSales(com.google.shopping.type.Price.Builder builderForValue) { + if (netSalesBuilder_ == null) { + netSales_ = builderForValue.build(); + } else { + netSalesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The net sales amount (includes both purchase and refunds).
      +     * 
      + * + * optional .google.shopping.type.Price net_sales = 11; + */ + public Builder mergeNetSales(com.google.shopping.type.Price value) { + if (netSalesBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && netSales_ != null + && netSales_ != com.google.shopping.type.Price.getDefaultInstance()) { + getNetSalesBuilder().mergeFrom(value); + } else { + netSales_ = value; + } + } else { + netSalesBuilder_.mergeFrom(value); + } + if (netSales_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * The net sales amount (includes both purchase and refunds).
      +     * 
      + * + * optional .google.shopping.type.Price net_sales = 11; + */ + public Builder clearNetSales() { + bitField0_ = (bitField0_ & ~0x00000400); + netSales_ = null; + if (netSalesBuilder_ != null) { + netSalesBuilder_.dispose(); + netSalesBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * The net sales amount (includes both purchase and refunds).
      +     * 
      + * + * optional .google.shopping.type.Price net_sales = 11; + */ + public com.google.shopping.type.Price.Builder getNetSalesBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return getNetSalesFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * The net sales amount (includes both purchase and refunds).
      +     * 
      + * + * optional .google.shopping.type.Price net_sales = 11; + */ + public com.google.shopping.type.PriceOrBuilder getNetSalesOrBuilder() { + if (netSalesBuilder_ != null) { + return netSalesBuilder_.getMessageOrBuilder(); + } else { + return netSales_ == null ? com.google.shopping.type.Price.getDefaultInstance() : netSales_; + } + } + + /** + * + * + *
      +     * The net sales amount (includes both purchase and refunds).
      +     * 
      + * + * optional .google.shopping.type.Price net_sales = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> + getNetSalesFieldBuilder() { + if (netSalesBuilder_ == null) { + netSalesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder>( + getNetSales(), getParentForChildren(), isClean()); + netSales_ = null; + } + return netSalesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView) + private static final com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView(); + } + + public static com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public YoutubeContentPerformanceView parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/YoutubeContentPerformanceViewOrBuilder.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/YoutubeContentPerformanceViewOrBuilder.java new file mode 100644 index 000000000000..a9d7097b6658 --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/YoutubeContentPerformanceViewOrBuilder.java @@ -0,0 +1,414 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/reports/v1alpha/reports.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.reports.v1alpha; + +public interface YoutubeContentPerformanceViewOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.reports.v1alpha.YoutubeContentPerformanceView) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Date in the merchant timezone to which metrics apply. Segment.
      +   *
      +   * Condition on `date` is required in the `WHERE` clause.
      +   * 
      + * + * .google.type.Date date = 1; + * + * @return Whether the date field is set. + */ + boolean hasDate(); + + /** + * + * + *
      +   * Date in the merchant timezone to which metrics apply. Segment.
      +   *
      +   * Condition on `date` is required in the `WHERE` clause.
      +   * 
      + * + * .google.type.Date date = 1; + * + * @return The date. + */ + com.google.type.Date getDate(); + + /** + * + * + *
      +   * Date in the merchant timezone to which metrics apply. Segment.
      +   *
      +   * Condition on `date` is required in the `WHERE` clause.
      +   * 
      + * + * .google.type.Date date = 1; + */ + com.google.type.DateOrBuilder getDateOrBuilder(); + + /** + * + * + *
      +   * The video title.
      +   * 
      + * + * optional string title = 2; + * + * @return Whether the title field is set. + */ + boolean hasTitle(); + + /** + * + * + *
      +   * The video title.
      +   * 
      + * + * optional string title = 2; + * + * @return The title. + */ + java.lang.String getTitle(); + + /** + * + * + *
      +   * The video title.
      +   * 
      + * + * optional string title = 2; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
      +   * The video id.
      +   * 
      + * + * optional string video_id = 3; + * + * @return Whether the videoId field is set. + */ + boolean hasVideoId(); + + /** + * + * + *
      +   * The video id.
      +   * 
      + * + * optional string video_id = 3; + * + * @return The videoId. + */ + java.lang.String getVideoId(); + + /** + * + * + *
      +   * The video id.
      +   * 
      + * + * optional string video_id = 3; + * + * @return The bytes for videoId. + */ + com.google.protobuf.ByteString getVideoIdBytes(); + + /** + * + * + *
      +   * The channel title.
      +   * 
      + * + * optional string channel_title = 4; + * + * @return Whether the channelTitle field is set. + */ + boolean hasChannelTitle(); + + /** + * + * + *
      +   * The channel title.
      +   * 
      + * + * optional string channel_title = 4; + * + * @return The channelTitle. + */ + java.lang.String getChannelTitle(); + + /** + * + * + *
      +   * The channel title.
      +   * 
      + * + * optional string channel_title = 4; + * + * @return The bytes for channelTitle. + */ + com.google.protobuf.ByteString getChannelTitleBytes(); + + /** + * + * + *
      +   * The channel id.
      +   * 
      + * + * optional string channel_id = 5; + * + * @return Whether the channelId field is set. + */ + boolean hasChannelId(); + + /** + * + * + *
      +   * The channel id.
      +   * 
      + * + * optional string channel_id = 5; + * + * @return The channelId. + */ + java.lang.String getChannelId(); + + /** + * + * + *
      +   * The channel id.
      +   * 
      + * + * optional string channel_id = 5; + * + * @return The bytes for channelId. + */ + com.google.protobuf.ByteString getChannelIdBytes(); + + /** + * + * + *
      +   * The gross sales amount, before refunds.
      +   * 
      + * + * optional .google.shopping.type.Price gross_sales = 6; + * + * @return Whether the grossSales field is set. + */ + boolean hasGrossSales(); + + /** + * + * + *
      +   * The gross sales amount, before refunds.
      +   * 
      + * + * optional .google.shopping.type.Price gross_sales = 6; + * + * @return The grossSales. + */ + com.google.shopping.type.Price getGrossSales(); + + /** + * + * + *
      +   * The gross sales amount, before refunds.
      +   * 
      + * + * optional .google.shopping.type.Price gross_sales = 6; + */ + com.google.shopping.type.PriceOrBuilder getGrossSalesOrBuilder(); + + /** + * + * + *
      +   * The commissions amount (pending and paid).
      +   * 
      + * + * optional .google.shopping.type.Price commissions = 7; + * + * @return Whether the commissions field is set. + */ + boolean hasCommissions(); + + /** + * + * + *
      +   * The commissions amount (pending and paid).
      +   * 
      + * + * optional .google.shopping.type.Price commissions = 7; + * + * @return The commissions. + */ + com.google.shopping.type.Price getCommissions(); + + /** + * + * + *
      +   * The commissions amount (pending and paid).
      +   * 
      + * + * optional .google.shopping.type.Price commissions = 7; + */ + com.google.shopping.type.PriceOrBuilder getCommissionsOrBuilder(); + + /** + * + * + *
      +   * The number of orders.
      +   * 
      + * + * optional int64 orders = 8; + * + * @return Whether the orders field is set. + */ + boolean hasOrders(); + + /** + * + * + *
      +   * The number of orders.
      +   * 
      + * + * optional int64 orders = 8; + * + * @return The orders. + */ + long getOrders(); + + /** + * + * + *
      +   * The number of YouTube views.
      +   * 
      + * + * optional int64 views = 9; + * + * @return Whether the views field is set. + */ + boolean hasViews(); + + /** + * + * + *
      +   * The number of YouTube views.
      +   * 
      + * + * optional int64 views = 9; + * + * @return The views. + */ + long getViews(); + + /** + * + * + *
      +   * The number of product clicks.
      +   * 
      + * + * optional int64 clicks = 10; + * + * @return Whether the clicks field is set. + */ + boolean hasClicks(); + + /** + * + * + *
      +   * The number of product clicks.
      +   * 
      + * + * optional int64 clicks = 10; + * + * @return The clicks. + */ + long getClicks(); + + /** + * + * + *
      +   * The net sales amount (includes both purchase and refunds).
      +   * 
      + * + * optional .google.shopping.type.Price net_sales = 11; + * + * @return Whether the netSales field is set. + */ + boolean hasNetSales(); + + /** + * + * + *
      +   * The net sales amount (includes both purchase and refunds).
      +   * 
      + * + * optional .google.shopping.type.Price net_sales = 11; + * + * @return The netSales. + */ + com.google.shopping.type.Price getNetSales(); + + /** + * + * + *
      +   * The net sales amount (includes both purchase and refunds).
      +   * 
      + * + * optional .google.shopping.type.Price net_sales = 11; + */ + com.google.shopping.type.PriceOrBuilder getNetSalesOrBuilder(); +} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/YoutubeCreatorPerformanceView.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/YoutubeCreatorPerformanceView.java new file mode 100644 index 000000000000..480103336b48 --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/YoutubeCreatorPerformanceView.java @@ -0,0 +1,2474 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/reports/v1alpha/reports.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.reports.v1alpha; + +/** + * + * + *
      + * Fields available for query in `youtube_creator_performance_view` table.
      + *
      + * [YouTube creator performance
      + * data](https://support.google.com/merchants/answer/14947975) for your account.
      + * This data is only available if an account is enrolled in the [YouTube
      + * Shopping Affiliate
      + * program](https://support.google.com/merchants/answer/14815513?hl=en).
      + *
      + * Values are only set for fields requested explicitly in the request's search
      + * query.
      + * 
      + * + * Protobuf type {@code google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView} + */ +public final class YoutubeCreatorPerformanceView extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView) + YoutubeCreatorPerformanceViewOrBuilder { + private static final long serialVersionUID = 0L; + + // Use YoutubeCreatorPerformanceView.newBuilder() to construct. + private YoutubeCreatorPerformanceView(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private YoutubeCreatorPerformanceView() { + title_ = ""; + channelId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new YoutubeCreatorPerformanceView(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_YoutubeCreatorPerformanceView_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_YoutubeCreatorPerformanceView_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView.class, + com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView.Builder + .class); + } + + private int bitField0_; + public static final int DATE_FIELD_NUMBER = 1; + private com.google.type.Date date_; + + /** + * + * + *
      +   * Date in the merchant timezone to which metrics apply. Segment.
      +   *
      +   * Condition on `date` is required in the `WHERE` clause.
      +   * 
      + * + * .google.type.Date date = 1; + * + * @return Whether the date field is set. + */ + @java.lang.Override + public boolean hasDate() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Date in the merchant timezone to which metrics apply. Segment.
      +   *
      +   * Condition on `date` is required in the `WHERE` clause.
      +   * 
      + * + * .google.type.Date date = 1; + * + * @return The date. + */ + @java.lang.Override + public com.google.type.Date getDate() { + return date_ == null ? com.google.type.Date.getDefaultInstance() : date_; + } + + /** + * + * + *
      +   * Date in the merchant timezone to which metrics apply. Segment.
      +   *
      +   * Condition on `date` is required in the `WHERE` clause.
      +   * 
      + * + * .google.type.Date date = 1; + */ + @java.lang.Override + public com.google.type.DateOrBuilder getDateOrBuilder() { + return date_ == null ? com.google.type.Date.getDefaultInstance() : date_; + } + + public static final int TITLE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + + /** + * + * + *
      +   * The title of the creator channel.
      +   * 
      + * + * optional string title = 2; + * + * @return Whether the title field is set. + */ + @java.lang.Override + public boolean hasTitle() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * The title of the creator channel.
      +   * 
      + * + * optional string title = 2; + * + * @return The title. + */ + @java.lang.Override + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } + } + + /** + * + * + *
      +   * The title of the creator channel.
      +   * 
      + * + * optional string title = 2; + * + * @return The bytes for title. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CHANNEL_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object channelId_ = ""; + + /** + * + * + *
      +   * The id for the creator channel.
      +   * 
      + * + * optional string channel_id = 3; + * + * @return Whether the channelId field is set. + */ + @java.lang.Override + public boolean hasChannelId() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +   * The id for the creator channel.
      +   * 
      + * + * optional string channel_id = 3; + * + * @return The channelId. + */ + @java.lang.Override + public java.lang.String getChannelId() { + java.lang.Object ref = channelId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + channelId_ = s; + return s; + } + } + + /** + * + * + *
      +   * The id for the creator channel.
      +   * 
      + * + * optional string channel_id = 3; + * + * @return The bytes for channelId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getChannelIdBytes() { + java.lang.Object ref = channelId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + channelId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GROSS_SALES_FIELD_NUMBER = 4; + private com.google.shopping.type.Price grossSales_; + + /** + * + * + *
      +   * The gross sales amount, before refunds.
      +   * 
      + * + * optional .google.shopping.type.Price gross_sales = 4; + * + * @return Whether the grossSales field is set. + */ + @java.lang.Override + public boolean hasGrossSales() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +   * The gross sales amount, before refunds.
      +   * 
      + * + * optional .google.shopping.type.Price gross_sales = 4; + * + * @return The grossSales. + */ + @java.lang.Override + public com.google.shopping.type.Price getGrossSales() { + return grossSales_ == null ? com.google.shopping.type.Price.getDefaultInstance() : grossSales_; + } + + /** + * + * + *
      +   * The gross sales amount, before refunds.
      +   * 
      + * + * optional .google.shopping.type.Price gross_sales = 4; + */ + @java.lang.Override + public com.google.shopping.type.PriceOrBuilder getGrossSalesOrBuilder() { + return grossSales_ == null ? com.google.shopping.type.Price.getDefaultInstance() : grossSales_; + } + + public static final int COMMISSIONS_FIELD_NUMBER = 5; + private com.google.shopping.type.Price commissions_; + + /** + * + * + *
      +   * The commissions amount (pending and paid).
      +   * 
      + * + * optional .google.shopping.type.Price commissions = 5; + * + * @return Whether the commissions field is set. + */ + @java.lang.Override + public boolean hasCommissions() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
      +   * The commissions amount (pending and paid).
      +   * 
      + * + * optional .google.shopping.type.Price commissions = 5; + * + * @return The commissions. + */ + @java.lang.Override + public com.google.shopping.type.Price getCommissions() { + return commissions_ == null + ? com.google.shopping.type.Price.getDefaultInstance() + : commissions_; + } + + /** + * + * + *
      +   * The commissions amount (pending and paid).
      +   * 
      + * + * optional .google.shopping.type.Price commissions = 5; + */ + @java.lang.Override + public com.google.shopping.type.PriceOrBuilder getCommissionsOrBuilder() { + return commissions_ == null + ? com.google.shopping.type.Price.getDefaultInstance() + : commissions_; + } + + public static final int ORDERS_FIELD_NUMBER = 6; + private long orders_ = 0L; + + /** + * + * + *
      +   * The number of orders.
      +   * 
      + * + * optional int64 orders = 6; + * + * @return Whether the orders field is set. + */ + @java.lang.Override + public boolean hasOrders() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
      +   * The number of orders.
      +   * 
      + * + * optional int64 orders = 6; + * + * @return The orders. + */ + @java.lang.Override + public long getOrders() { + return orders_; + } + + public static final int VIEWS_FIELD_NUMBER = 7; + private long views_ = 0L; + + /** + * + * + *
      +   * The number of YouTube views.
      +   * 
      + * + * optional int64 views = 7; + * + * @return Whether the views field is set. + */ + @java.lang.Override + public boolean hasViews() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
      +   * The number of YouTube views.
      +   * 
      + * + * optional int64 views = 7; + * + * @return The views. + */ + @java.lang.Override + public long getViews() { + return views_; + } + + public static final int CLICKS_FIELD_NUMBER = 8; + private long clicks_ = 0L; + + /** + * + * + *
      +   * The number of product clicks.
      +   * 
      + * + * optional int64 clicks = 8; + * + * @return Whether the clicks field is set. + */ + @java.lang.Override + public boolean hasClicks() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
      +   * The number of product clicks.
      +   * 
      + * + * optional int64 clicks = 8; + * + * @return The clicks. + */ + @java.lang.Override + public long getClicks() { + return clicks_; + } + + public static final int NET_SALES_FIELD_NUMBER = 9; + private com.google.shopping.type.Price netSales_; + + /** + * + * + *
      +   * The net sales amount (includes both purchase and refunds).
      +   * 
      + * + * optional .google.shopping.type.Price net_sales = 9; + * + * @return Whether the netSales field is set. + */ + @java.lang.Override + public boolean hasNetSales() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
      +   * The net sales amount (includes both purchase and refunds).
      +   * 
      + * + * optional .google.shopping.type.Price net_sales = 9; + * + * @return The netSales. + */ + @java.lang.Override + public com.google.shopping.type.Price getNetSales() { + return netSales_ == null ? com.google.shopping.type.Price.getDefaultInstance() : netSales_; + } + + /** + * + * + *
      +   * The net sales amount (includes both purchase and refunds).
      +   * 
      + * + * optional .google.shopping.type.Price net_sales = 9; + */ + @java.lang.Override + public com.google.shopping.type.PriceOrBuilder getNetSalesOrBuilder() { + return netSales_ == null ? com.google.shopping.type.Price.getDefaultInstance() : netSales_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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, getDate()); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, channelId_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getGrossSales()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(5, getCommissions()); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeInt64(6, orders_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeInt64(7, views_); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeInt64(8, clicks_); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(9, getNetSales()); + } + 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, getDate()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, channelId_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getGrossSales()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCommissions()); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, orders_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, views_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, clicks_); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getNetSales()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView)) { + return super.equals(obj); + } + com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView other = + (com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView) obj; + + if (hasDate() != other.hasDate()) return false; + if (hasDate()) { + if (!getDate().equals(other.getDate())) return false; + } + if (hasTitle() != other.hasTitle()) return false; + if (hasTitle()) { + if (!getTitle().equals(other.getTitle())) return false; + } + if (hasChannelId() != other.hasChannelId()) return false; + if (hasChannelId()) { + if (!getChannelId().equals(other.getChannelId())) return false; + } + if (hasGrossSales() != other.hasGrossSales()) return false; + if (hasGrossSales()) { + if (!getGrossSales().equals(other.getGrossSales())) return false; + } + if (hasCommissions() != other.hasCommissions()) return false; + if (hasCommissions()) { + if (!getCommissions().equals(other.getCommissions())) return false; + } + if (hasOrders() != other.hasOrders()) return false; + if (hasOrders()) { + if (getOrders() != other.getOrders()) return false; + } + if (hasViews() != other.hasViews()) return false; + if (hasViews()) { + if (getViews() != other.getViews()) return false; + } + if (hasClicks() != other.hasClicks()) return false; + if (hasClicks()) { + if (getClicks() != other.getClicks()) return false; + } + if (hasNetSales() != other.hasNetSales()) return false; + if (hasNetSales()) { + if (!getNetSales().equals(other.getNetSales())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDate()) { + hash = (37 * hash) + DATE_FIELD_NUMBER; + hash = (53 * hash) + getDate().hashCode(); + } + if (hasTitle()) { + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + } + if (hasChannelId()) { + hash = (37 * hash) + CHANNEL_ID_FIELD_NUMBER; + hash = (53 * hash) + getChannelId().hashCode(); + } + if (hasGrossSales()) { + hash = (37 * hash) + GROSS_SALES_FIELD_NUMBER; + hash = (53 * hash) + getGrossSales().hashCode(); + } + if (hasCommissions()) { + hash = (37 * hash) + COMMISSIONS_FIELD_NUMBER; + hash = (53 * hash) + getCommissions().hashCode(); + } + if (hasOrders()) { + hash = (37 * hash) + ORDERS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getOrders()); + } + if (hasViews()) { + hash = (37 * hash) + VIEWS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getViews()); + } + if (hasClicks()) { + hash = (37 * hash) + CLICKS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getClicks()); + } + if (hasNetSales()) { + hash = (37 * hash) + NET_SALES_FIELD_NUMBER; + hash = (53 * hash) + getNetSales().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Fields available for query in `youtube_creator_performance_view` table.
      +   *
      +   * [YouTube creator performance
      +   * data](https://support.google.com/merchants/answer/14947975) for your account.
      +   * This data is only available if an account is enrolled in the [YouTube
      +   * Shopping Affiliate
      +   * program](https://support.google.com/merchants/answer/14815513?hl=en).
      +   *
      +   * Values are only set for fields requested explicitly in the request's search
      +   * query.
      +   * 
      + * + * Protobuf type {@code google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView) + com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceViewOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_YoutubeCreatorPerformanceView_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_YoutubeCreatorPerformanceView_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView.class, + com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView.Builder + .class); + } + + // Construct using + // com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDateFieldBuilder(); + getGrossSalesFieldBuilder(); + getCommissionsFieldBuilder(); + getNetSalesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + date_ = null; + if (dateBuilder_ != null) { + dateBuilder_.dispose(); + dateBuilder_ = null; + } + title_ = ""; + channelId_ = ""; + grossSales_ = null; + if (grossSalesBuilder_ != null) { + grossSalesBuilder_.dispose(); + grossSalesBuilder_ = null; + } + commissions_ = null; + if (commissionsBuilder_ != null) { + commissionsBuilder_.dispose(); + commissionsBuilder_ = null; + } + orders_ = 0L; + views_ = 0L; + clicks_ = 0L; + netSales_ = null; + if (netSalesBuilder_ != null) { + netSalesBuilder_.dispose(); + netSalesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_YoutubeCreatorPerformanceView_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView + getDefaultInstanceForType() { + return com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView build() { + com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView + buildPartial() { + com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView result = + new com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.date_ = dateBuilder_ == null ? date_ : dateBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.title_ = title_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.channelId_ = channelId_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.grossSales_ = grossSalesBuilder_ == null ? grossSales_ : grossSalesBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.commissions_ = + commissionsBuilder_ == null ? commissions_ : commissionsBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.orders_ = orders_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.views_ = views_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.clicks_ = clicks_; + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.netSales_ = netSalesBuilder_ == null ? netSales_ : netSalesBuilder_.build(); + to_bitField0_ |= 0x00000100; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView) { + return mergeFrom( + (com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView other) { + if (other + == com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView + .getDefaultInstance()) return this; + if (other.hasDate()) { + mergeDate(other.getDate()); + } + if (other.hasTitle()) { + title_ = other.title_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasChannelId()) { + channelId_ = other.channelId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasGrossSales()) { + mergeGrossSales(other.getGrossSales()); + } + if (other.hasCommissions()) { + mergeCommissions(other.getCommissions()); + } + if (other.hasOrders()) { + setOrders(other.getOrders()); + } + if (other.hasViews()) { + setViews(other.getViews()); + } + if (other.hasClicks()) { + setClicks(other.getClicks()); + } + if (other.hasNetSales()) { + mergeNetSales(other.getNetSales()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(getDateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + channelId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getGrossSalesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage(getCommissionsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + orders_ = input.readInt64(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: + { + views_ = input.readInt64(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: + { + clicks_ = input.readInt64(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 74: + { + input.readMessage(getNetSalesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 74 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.type.Date date_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + dateBuilder_; + + /** + * + * + *
      +     * Date in the merchant timezone to which metrics apply. Segment.
      +     *
      +     * Condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + * + * @return Whether the date field is set. + */ + public boolean hasDate() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +     * Date in the merchant timezone to which metrics apply. Segment.
      +     *
      +     * Condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + * + * @return The date. + */ + public com.google.type.Date getDate() { + if (dateBuilder_ == null) { + return date_ == null ? com.google.type.Date.getDefaultInstance() : date_; + } else { + return dateBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Date in the merchant timezone to which metrics apply. Segment.
      +     *
      +     * Condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + */ + public Builder setDate(com.google.type.Date value) { + if (dateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + date_ = value; + } else { + dateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Date in the merchant timezone to which metrics apply. Segment.
      +     *
      +     * Condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + */ + public Builder setDate(com.google.type.Date.Builder builderForValue) { + if (dateBuilder_ == null) { + date_ = builderForValue.build(); + } else { + dateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Date in the merchant timezone to which metrics apply. Segment.
      +     *
      +     * Condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + */ + public Builder mergeDate(com.google.type.Date value) { + if (dateBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && date_ != null + && date_ != com.google.type.Date.getDefaultInstance()) { + getDateBuilder().mergeFrom(value); + } else { + date_ = value; + } + } else { + dateBuilder_.mergeFrom(value); + } + if (date_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Date in the merchant timezone to which metrics apply. Segment.
      +     *
      +     * Condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + */ + public Builder clearDate() { + bitField0_ = (bitField0_ & ~0x00000001); + date_ = null; + if (dateBuilder_ != null) { + dateBuilder_.dispose(); + dateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Date in the merchant timezone to which metrics apply. Segment.
      +     *
      +     * Condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + */ + public com.google.type.Date.Builder getDateBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getDateFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Date in the merchant timezone to which metrics apply. Segment.
      +     *
      +     * Condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + */ + public com.google.type.DateOrBuilder getDateOrBuilder() { + if (dateBuilder_ != null) { + return dateBuilder_.getMessageOrBuilder(); + } else { + return date_ == null ? com.google.type.Date.getDefaultInstance() : date_; + } + } + + /** + * + * + *
      +     * Date in the merchant timezone to which metrics apply. Segment.
      +     *
      +     * Condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getDateFieldBuilder() { + if (dateBuilder_ == null) { + dateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getDate(), getParentForChildren(), isClean()); + date_ = null; + } + return dateBuilder_; + } + + private java.lang.Object title_ = ""; + + /** + * + * + *
      +     * The title of the creator channel.
      +     * 
      + * + * optional string title = 2; + * + * @return Whether the title field is set. + */ + public boolean hasTitle() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +     * The title of the creator channel.
      +     * 
      + * + * optional string title = 2; + * + * @return The title. + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * The title of the creator channel.
      +     * 
      + * + * optional string title = 2; + * + * @return The bytes for title. + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * The title of the creator channel.
      +     * 
      + * + * optional string title = 2; + * + * @param value The title to set. + * @return This builder for chaining. + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + title_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The title of the creator channel.
      +     * 
      + * + * optional string title = 2; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * The title of the creator channel.
      +     * 
      + * + * optional string title = 2; + * + * @param value The bytes for title to set. + * @return This builder for chaining. + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + title_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object channelId_ = ""; + + /** + * + * + *
      +     * The id for the creator channel.
      +     * 
      + * + * optional string channel_id = 3; + * + * @return Whether the channelId field is set. + */ + public boolean hasChannelId() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +     * The id for the creator channel.
      +     * 
      + * + * optional string channel_id = 3; + * + * @return The channelId. + */ + public java.lang.String getChannelId() { + java.lang.Object ref = channelId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + channelId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * The id for the creator channel.
      +     * 
      + * + * optional string channel_id = 3; + * + * @return The bytes for channelId. + */ + public com.google.protobuf.ByteString getChannelIdBytes() { + java.lang.Object ref = channelId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + channelId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * The id for the creator channel.
      +     * 
      + * + * optional string channel_id = 3; + * + * @param value The channelId to set. + * @return This builder for chaining. + */ + public Builder setChannelId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + channelId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The id for the creator channel.
      +     * 
      + * + * optional string channel_id = 3; + * + * @return This builder for chaining. + */ + public Builder clearChannelId() { + channelId_ = getDefaultInstance().getChannelId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * The id for the creator channel.
      +     * 
      + * + * optional string channel_id = 3; + * + * @param value The bytes for channelId to set. + * @return This builder for chaining. + */ + public Builder setChannelIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + channelId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.shopping.type.Price grossSales_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> + grossSalesBuilder_; + + /** + * + * + *
      +     * The gross sales amount, before refunds.
      +     * 
      + * + * optional .google.shopping.type.Price gross_sales = 4; + * + * @return Whether the grossSales field is set. + */ + public boolean hasGrossSales() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +     * The gross sales amount, before refunds.
      +     * 
      + * + * optional .google.shopping.type.Price gross_sales = 4; + * + * @return The grossSales. + */ + public com.google.shopping.type.Price getGrossSales() { + if (grossSalesBuilder_ == null) { + return grossSales_ == null + ? com.google.shopping.type.Price.getDefaultInstance() + : grossSales_; + } else { + return grossSalesBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * The gross sales amount, before refunds.
      +     * 
      + * + * optional .google.shopping.type.Price gross_sales = 4; + */ + public Builder setGrossSales(com.google.shopping.type.Price value) { + if (grossSalesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + grossSales_ = value; + } else { + grossSalesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The gross sales amount, before refunds.
      +     * 
      + * + * optional .google.shopping.type.Price gross_sales = 4; + */ + public Builder setGrossSales(com.google.shopping.type.Price.Builder builderForValue) { + if (grossSalesBuilder_ == null) { + grossSales_ = builderForValue.build(); + } else { + grossSalesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The gross sales amount, before refunds.
      +     * 
      + * + * optional .google.shopping.type.Price gross_sales = 4; + */ + public Builder mergeGrossSales(com.google.shopping.type.Price value) { + if (grossSalesBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && grossSales_ != null + && grossSales_ != com.google.shopping.type.Price.getDefaultInstance()) { + getGrossSalesBuilder().mergeFrom(value); + } else { + grossSales_ = value; + } + } else { + grossSalesBuilder_.mergeFrom(value); + } + if (grossSales_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * The gross sales amount, before refunds.
      +     * 
      + * + * optional .google.shopping.type.Price gross_sales = 4; + */ + public Builder clearGrossSales() { + bitField0_ = (bitField0_ & ~0x00000008); + grossSales_ = null; + if (grossSalesBuilder_ != null) { + grossSalesBuilder_.dispose(); + grossSalesBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * The gross sales amount, before refunds.
      +     * 
      + * + * optional .google.shopping.type.Price gross_sales = 4; + */ + public com.google.shopping.type.Price.Builder getGrossSalesBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getGrossSalesFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * The gross sales amount, before refunds.
      +     * 
      + * + * optional .google.shopping.type.Price gross_sales = 4; + */ + public com.google.shopping.type.PriceOrBuilder getGrossSalesOrBuilder() { + if (grossSalesBuilder_ != null) { + return grossSalesBuilder_.getMessageOrBuilder(); + } else { + return grossSales_ == null + ? com.google.shopping.type.Price.getDefaultInstance() + : grossSales_; + } + } + + /** + * + * + *
      +     * The gross sales amount, before refunds.
      +     * 
      + * + * optional .google.shopping.type.Price gross_sales = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> + getGrossSalesFieldBuilder() { + if (grossSalesBuilder_ == null) { + grossSalesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder>( + getGrossSales(), getParentForChildren(), isClean()); + grossSales_ = null; + } + return grossSalesBuilder_; + } + + private com.google.shopping.type.Price commissions_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> + commissionsBuilder_; + + /** + * + * + *
      +     * The commissions amount (pending and paid).
      +     * 
      + * + * optional .google.shopping.type.Price commissions = 5; + * + * @return Whether the commissions field is set. + */ + public boolean hasCommissions() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
      +     * The commissions amount (pending and paid).
      +     * 
      + * + * optional .google.shopping.type.Price commissions = 5; + * + * @return The commissions. + */ + public com.google.shopping.type.Price getCommissions() { + if (commissionsBuilder_ == null) { + return commissions_ == null + ? com.google.shopping.type.Price.getDefaultInstance() + : commissions_; + } else { + return commissionsBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * The commissions amount (pending and paid).
      +     * 
      + * + * optional .google.shopping.type.Price commissions = 5; + */ + public Builder setCommissions(com.google.shopping.type.Price value) { + if (commissionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + commissions_ = value; + } else { + commissionsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The commissions amount (pending and paid).
      +     * 
      + * + * optional .google.shopping.type.Price commissions = 5; + */ + public Builder setCommissions(com.google.shopping.type.Price.Builder builderForValue) { + if (commissionsBuilder_ == null) { + commissions_ = builderForValue.build(); + } else { + commissionsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The commissions amount (pending and paid).
      +     * 
      + * + * optional .google.shopping.type.Price commissions = 5; + */ + public Builder mergeCommissions(com.google.shopping.type.Price value) { + if (commissionsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && commissions_ != null + && commissions_ != com.google.shopping.type.Price.getDefaultInstance()) { + getCommissionsBuilder().mergeFrom(value); + } else { + commissions_ = value; + } + } else { + commissionsBuilder_.mergeFrom(value); + } + if (commissions_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * The commissions amount (pending and paid).
      +     * 
      + * + * optional .google.shopping.type.Price commissions = 5; + */ + public Builder clearCommissions() { + bitField0_ = (bitField0_ & ~0x00000010); + commissions_ = null; + if (commissionsBuilder_ != null) { + commissionsBuilder_.dispose(); + commissionsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * The commissions amount (pending and paid).
      +     * 
      + * + * optional .google.shopping.type.Price commissions = 5; + */ + public com.google.shopping.type.Price.Builder getCommissionsBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getCommissionsFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * The commissions amount (pending and paid).
      +     * 
      + * + * optional .google.shopping.type.Price commissions = 5; + */ + public com.google.shopping.type.PriceOrBuilder getCommissionsOrBuilder() { + if (commissionsBuilder_ != null) { + return commissionsBuilder_.getMessageOrBuilder(); + } else { + return commissions_ == null + ? com.google.shopping.type.Price.getDefaultInstance() + : commissions_; + } + } + + /** + * + * + *
      +     * The commissions amount (pending and paid).
      +     * 
      + * + * optional .google.shopping.type.Price commissions = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> + getCommissionsFieldBuilder() { + if (commissionsBuilder_ == null) { + commissionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder>( + getCommissions(), getParentForChildren(), isClean()); + commissions_ = null; + } + return commissionsBuilder_; + } + + private long orders_; + + /** + * + * + *
      +     * The number of orders.
      +     * 
      + * + * optional int64 orders = 6; + * + * @return Whether the orders field is set. + */ + @java.lang.Override + public boolean hasOrders() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
      +     * The number of orders.
      +     * 
      + * + * optional int64 orders = 6; + * + * @return The orders. + */ + @java.lang.Override + public long getOrders() { + return orders_; + } + + /** + * + * + *
      +     * The number of orders.
      +     * 
      + * + * optional int64 orders = 6; + * + * @param value The orders to set. + * @return This builder for chaining. + */ + public Builder setOrders(long value) { + + orders_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The number of orders.
      +     * 
      + * + * optional int64 orders = 6; + * + * @return This builder for chaining. + */ + public Builder clearOrders() { + bitField0_ = (bitField0_ & ~0x00000020); + orders_ = 0L; + onChanged(); + return this; + } + + private long views_; + + /** + * + * + *
      +     * The number of YouTube views.
      +     * 
      + * + * optional int64 views = 7; + * + * @return Whether the views field is set. + */ + @java.lang.Override + public boolean hasViews() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
      +     * The number of YouTube views.
      +     * 
      + * + * optional int64 views = 7; + * + * @return The views. + */ + @java.lang.Override + public long getViews() { + return views_; + } + + /** + * + * + *
      +     * The number of YouTube views.
      +     * 
      + * + * optional int64 views = 7; + * + * @param value The views to set. + * @return This builder for chaining. + */ + public Builder setViews(long value) { + + views_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The number of YouTube views.
      +     * 
      + * + * optional int64 views = 7; + * + * @return This builder for chaining. + */ + public Builder clearViews() { + bitField0_ = (bitField0_ & ~0x00000040); + views_ = 0L; + onChanged(); + return this; + } + + private long clicks_; + + /** + * + * + *
      +     * The number of product clicks.
      +     * 
      + * + * optional int64 clicks = 8; + * + * @return Whether the clicks field is set. + */ + @java.lang.Override + public boolean hasClicks() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
      +     * The number of product clicks.
      +     * 
      + * + * optional int64 clicks = 8; + * + * @return The clicks. + */ + @java.lang.Override + public long getClicks() { + return clicks_; + } + + /** + * + * + *
      +     * The number of product clicks.
      +     * 
      + * + * optional int64 clicks = 8; + * + * @param value The clicks to set. + * @return This builder for chaining. + */ + public Builder setClicks(long value) { + + clicks_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The number of product clicks.
      +     * 
      + * + * optional int64 clicks = 8; + * + * @return This builder for chaining. + */ + public Builder clearClicks() { + bitField0_ = (bitField0_ & ~0x00000080); + clicks_ = 0L; + onChanged(); + return this; + } + + private com.google.shopping.type.Price netSales_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> + netSalesBuilder_; + + /** + * + * + *
      +     * The net sales amount (includes both purchase and refunds).
      +     * 
      + * + * optional .google.shopping.type.Price net_sales = 9; + * + * @return Whether the netSales field is set. + */ + public boolean hasNetSales() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
      +     * The net sales amount (includes both purchase and refunds).
      +     * 
      + * + * optional .google.shopping.type.Price net_sales = 9; + * + * @return The netSales. + */ + public com.google.shopping.type.Price getNetSales() { + if (netSalesBuilder_ == null) { + return netSales_ == null ? com.google.shopping.type.Price.getDefaultInstance() : netSales_; + } else { + return netSalesBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * The net sales amount (includes both purchase and refunds).
      +     * 
      + * + * optional .google.shopping.type.Price net_sales = 9; + */ + public Builder setNetSales(com.google.shopping.type.Price value) { + if (netSalesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + netSales_ = value; + } else { + netSalesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The net sales amount (includes both purchase and refunds).
      +     * 
      + * + * optional .google.shopping.type.Price net_sales = 9; + */ + public Builder setNetSales(com.google.shopping.type.Price.Builder builderForValue) { + if (netSalesBuilder_ == null) { + netSales_ = builderForValue.build(); + } else { + netSalesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The net sales amount (includes both purchase and refunds).
      +     * 
      + * + * optional .google.shopping.type.Price net_sales = 9; + */ + public Builder mergeNetSales(com.google.shopping.type.Price value) { + if (netSalesBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && netSales_ != null + && netSales_ != com.google.shopping.type.Price.getDefaultInstance()) { + getNetSalesBuilder().mergeFrom(value); + } else { + netSales_ = value; + } + } else { + netSalesBuilder_.mergeFrom(value); + } + if (netSales_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * The net sales amount (includes both purchase and refunds).
      +     * 
      + * + * optional .google.shopping.type.Price net_sales = 9; + */ + public Builder clearNetSales() { + bitField0_ = (bitField0_ & ~0x00000100); + netSales_ = null; + if (netSalesBuilder_ != null) { + netSalesBuilder_.dispose(); + netSalesBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * The net sales amount (includes both purchase and refunds).
      +     * 
      + * + * optional .google.shopping.type.Price net_sales = 9; + */ + public com.google.shopping.type.Price.Builder getNetSalesBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getNetSalesFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * The net sales amount (includes both purchase and refunds).
      +     * 
      + * + * optional .google.shopping.type.Price net_sales = 9; + */ + public com.google.shopping.type.PriceOrBuilder getNetSalesOrBuilder() { + if (netSalesBuilder_ != null) { + return netSalesBuilder_.getMessageOrBuilder(); + } else { + return netSales_ == null ? com.google.shopping.type.Price.getDefaultInstance() : netSales_; + } + } + + /** + * + * + *
      +     * The net sales amount (includes both purchase and refunds).
      +     * 
      + * + * optional .google.shopping.type.Price net_sales = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> + getNetSalesFieldBuilder() { + if (netSalesBuilder_ == null) { + netSalesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder>( + getNetSales(), getParentForChildren(), isClean()); + netSales_ = null; + } + return netSalesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView) + private static final com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView(); + } + + public static com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public YoutubeCreatorPerformanceView parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/YoutubeCreatorPerformanceViewOrBuilder.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/YoutubeCreatorPerformanceViewOrBuilder.java new file mode 100644 index 000000000000..112482391f58 --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/YoutubeCreatorPerformanceViewOrBuilder.java @@ -0,0 +1,336 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/reports/v1alpha/reports.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.reports.v1alpha; + +public interface YoutubeCreatorPerformanceViewOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.reports.v1alpha.YoutubeCreatorPerformanceView) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Date in the merchant timezone to which metrics apply. Segment.
      +   *
      +   * Condition on `date` is required in the `WHERE` clause.
      +   * 
      + * + * .google.type.Date date = 1; + * + * @return Whether the date field is set. + */ + boolean hasDate(); + + /** + * + * + *
      +   * Date in the merchant timezone to which metrics apply. Segment.
      +   *
      +   * Condition on `date` is required in the `WHERE` clause.
      +   * 
      + * + * .google.type.Date date = 1; + * + * @return The date. + */ + com.google.type.Date getDate(); + + /** + * + * + *
      +   * Date in the merchant timezone to which metrics apply. Segment.
      +   *
      +   * Condition on `date` is required in the `WHERE` clause.
      +   * 
      + * + * .google.type.Date date = 1; + */ + com.google.type.DateOrBuilder getDateOrBuilder(); + + /** + * + * + *
      +   * The title of the creator channel.
      +   * 
      + * + * optional string title = 2; + * + * @return Whether the title field is set. + */ + boolean hasTitle(); + + /** + * + * + *
      +   * The title of the creator channel.
      +   * 
      + * + * optional string title = 2; + * + * @return The title. + */ + java.lang.String getTitle(); + + /** + * + * + *
      +   * The title of the creator channel.
      +   * 
      + * + * optional string title = 2; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
      +   * The id for the creator channel.
      +   * 
      + * + * optional string channel_id = 3; + * + * @return Whether the channelId field is set. + */ + boolean hasChannelId(); + + /** + * + * + *
      +   * The id for the creator channel.
      +   * 
      + * + * optional string channel_id = 3; + * + * @return The channelId. + */ + java.lang.String getChannelId(); + + /** + * + * + *
      +   * The id for the creator channel.
      +   * 
      + * + * optional string channel_id = 3; + * + * @return The bytes for channelId. + */ + com.google.protobuf.ByteString getChannelIdBytes(); + + /** + * + * + *
      +   * The gross sales amount, before refunds.
      +   * 
      + * + * optional .google.shopping.type.Price gross_sales = 4; + * + * @return Whether the grossSales field is set. + */ + boolean hasGrossSales(); + + /** + * + * + *
      +   * The gross sales amount, before refunds.
      +   * 
      + * + * optional .google.shopping.type.Price gross_sales = 4; + * + * @return The grossSales. + */ + com.google.shopping.type.Price getGrossSales(); + + /** + * + * + *
      +   * The gross sales amount, before refunds.
      +   * 
      + * + * optional .google.shopping.type.Price gross_sales = 4; + */ + com.google.shopping.type.PriceOrBuilder getGrossSalesOrBuilder(); + + /** + * + * + *
      +   * The commissions amount (pending and paid).
      +   * 
      + * + * optional .google.shopping.type.Price commissions = 5; + * + * @return Whether the commissions field is set. + */ + boolean hasCommissions(); + + /** + * + * + *
      +   * The commissions amount (pending and paid).
      +   * 
      + * + * optional .google.shopping.type.Price commissions = 5; + * + * @return The commissions. + */ + com.google.shopping.type.Price getCommissions(); + + /** + * + * + *
      +   * The commissions amount (pending and paid).
      +   * 
      + * + * optional .google.shopping.type.Price commissions = 5; + */ + com.google.shopping.type.PriceOrBuilder getCommissionsOrBuilder(); + + /** + * + * + *
      +   * The number of orders.
      +   * 
      + * + * optional int64 orders = 6; + * + * @return Whether the orders field is set. + */ + boolean hasOrders(); + + /** + * + * + *
      +   * The number of orders.
      +   * 
      + * + * optional int64 orders = 6; + * + * @return The orders. + */ + long getOrders(); + + /** + * + * + *
      +   * The number of YouTube views.
      +   * 
      + * + * optional int64 views = 7; + * + * @return Whether the views field is set. + */ + boolean hasViews(); + + /** + * + * + *
      +   * The number of YouTube views.
      +   * 
      + * + * optional int64 views = 7; + * + * @return The views. + */ + long getViews(); + + /** + * + * + *
      +   * The number of product clicks.
      +   * 
      + * + * optional int64 clicks = 8; + * + * @return Whether the clicks field is set. + */ + boolean hasClicks(); + + /** + * + * + *
      +   * The number of product clicks.
      +   * 
      + * + * optional int64 clicks = 8; + * + * @return The clicks. + */ + long getClicks(); + + /** + * + * + *
      +   * The net sales amount (includes both purchase and refunds).
      +   * 
      + * + * optional .google.shopping.type.Price net_sales = 9; + * + * @return Whether the netSales field is set. + */ + boolean hasNetSales(); + + /** + * + * + *
      +   * The net sales amount (includes both purchase and refunds).
      +   * 
      + * + * optional .google.shopping.type.Price net_sales = 9; + * + * @return The netSales. + */ + com.google.shopping.type.Price getNetSales(); + + /** + * + * + *
      +   * The net sales amount (includes both purchase and refunds).
      +   * 
      + * + * optional .google.shopping.type.Price net_sales = 9; + */ + com.google.shopping.type.PriceOrBuilder getNetSalesOrBuilder(); +} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/YoutubeProductPerformanceView.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/YoutubeProductPerformanceView.java new file mode 100644 index 000000000000..4f93a05f8869 --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/YoutubeProductPerformanceView.java @@ -0,0 +1,2744 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/reports/v1alpha/reports.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.reports.v1alpha; + +/** + * + * + *
      + * Fields available for query in `youtube_product_performance_view` table.
      + *
      + * [YouTube product performance
      + * data](https://support.google.com/merchants/answer/14947975) for your account.
      + * This data is only available if an account is enrolled in the [YouTube
      + * Shopping Affiliate
      + * program](https://support.google.com/merchants/answer/14815513?hl=en).
      + *
      + * Values are only set for fields requested explicitly in the request's search
      + * query.
      + * 
      + * + * Protobuf type {@code google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView} + */ +public final class YoutubeProductPerformanceView extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView) + YoutubeProductPerformanceViewOrBuilder { + private static final long serialVersionUID = 0L; + + // Use YoutubeProductPerformanceView.newBuilder() to construct. + private YoutubeProductPerformanceView(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private YoutubeProductPerformanceView() { + title_ = ""; + offerId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new YoutubeProductPerformanceView(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_YoutubeProductPerformanceView_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_YoutubeProductPerformanceView_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView.class, + com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView.Builder + .class); + } + + private int bitField0_; + public static final int DATE_FIELD_NUMBER = 1; + private com.google.type.Date date_; + + /** + * + * + *
      +   * Date in the merchant timezone to which metrics apply. Segment.
      +   *
      +   * Condition on `date` is required in the `WHERE` clause.
      +   * 
      + * + * .google.type.Date date = 1; + * + * @return Whether the date field is set. + */ + @java.lang.Override + public boolean hasDate() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Date in the merchant timezone to which metrics apply. Segment.
      +   *
      +   * Condition on `date` is required in the `WHERE` clause.
      +   * 
      + * + * .google.type.Date date = 1; + * + * @return The date. + */ + @java.lang.Override + public com.google.type.Date getDate() { + return date_ == null ? com.google.type.Date.getDefaultInstance() : date_; + } + + /** + * + * + *
      +   * Date in the merchant timezone to which metrics apply. Segment.
      +   *
      +   * Condition on `date` is required in the `WHERE` clause.
      +   * 
      + * + * .google.type.Date date = 1; + */ + @java.lang.Override + public com.google.type.DateOrBuilder getDateOrBuilder() { + return date_ == null ? com.google.type.Date.getDefaultInstance() : date_; + } + + public static final int TITLE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + + /** + * + * + *
      +   * The product title.
      +   * 
      + * + * optional string title = 2; + * + * @return Whether the title field is set. + */ + @java.lang.Override + public boolean hasTitle() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * The product title.
      +   * 
      + * + * optional string title = 2; + * + * @return The title. + */ + @java.lang.Override + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } + } + + /** + * + * + *
      +   * The product title.
      +   * 
      + * + * optional string title = 2; + * + * @return The bytes for title. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OFFER_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object offerId_ = ""; + + /** + * + * + *
      +   * The merchant-provided product id.
      +   * 
      + * + * optional string offer_id = 3; + * + * @return Whether the offerId field is set. + */ + @java.lang.Override + public boolean hasOfferId() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +   * The merchant-provided product id.
      +   * 
      + * + * optional string offer_id = 3; + * + * @return The offerId. + */ + @java.lang.Override + public java.lang.String getOfferId() { + java.lang.Object ref = offerId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + offerId_ = s; + return s; + } + } + + /** + * + * + *
      +   * The merchant-provided product id.
      +   * 
      + * + * optional string offer_id = 3; + * + * @return The bytes for offerId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOfferIdBytes() { + java.lang.Object ref = offerId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + offerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISTINCT_VIDEO_COUNT_FIELD_NUMBER = 4; + private long distinctVideoCount_ = 0L; + + /** + * + * + *
      +   * The number of distinct videos the product was shown on.
      +   * 
      + * + * optional int64 distinct_video_count = 4; + * + * @return Whether the distinctVideoCount field is set. + */ + @java.lang.Override + public boolean hasDistinctVideoCount() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +   * The number of distinct videos the product was shown on.
      +   * 
      + * + * optional int64 distinct_video_count = 4; + * + * @return The distinctVideoCount. + */ + @java.lang.Override + public long getDistinctVideoCount() { + return distinctVideoCount_; + } + + public static final int DISTINCT_CREATOR_COUNT_FIELD_NUMBER = 5; + private long distinctCreatorCount_ = 0L; + + /** + * + * + *
      +   * The number of distinct creator channels the product was shown on.
      +   * 
      + * + * optional int64 distinct_creator_count = 5; + * + * @return Whether the distinctCreatorCount field is set. + */ + @java.lang.Override + public boolean hasDistinctCreatorCount() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
      +   * The number of distinct creator channels the product was shown on.
      +   * 
      + * + * optional int64 distinct_creator_count = 5; + * + * @return The distinctCreatorCount. + */ + @java.lang.Override + public long getDistinctCreatorCount() { + return distinctCreatorCount_; + } + + public static final int GROSS_SALES_FIELD_NUMBER = 6; + private com.google.shopping.type.Price grossSales_; + + /** + * + * + *
      +   * The gross sales amount, before refunds.
      +   * 
      + * + * optional .google.shopping.type.Price gross_sales = 6; + * + * @return Whether the grossSales field is set. + */ + @java.lang.Override + public boolean hasGrossSales() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
      +   * The gross sales amount, before refunds.
      +   * 
      + * + * optional .google.shopping.type.Price gross_sales = 6; + * + * @return The grossSales. + */ + @java.lang.Override + public com.google.shopping.type.Price getGrossSales() { + return grossSales_ == null ? com.google.shopping.type.Price.getDefaultInstance() : grossSales_; + } + + /** + * + * + *
      +   * The gross sales amount, before refunds.
      +   * 
      + * + * optional .google.shopping.type.Price gross_sales = 6; + */ + @java.lang.Override + public com.google.shopping.type.PriceOrBuilder getGrossSalesOrBuilder() { + return grossSales_ == null ? com.google.shopping.type.Price.getDefaultInstance() : grossSales_; + } + + public static final int COMMISSIONS_FIELD_NUMBER = 7; + private com.google.shopping.type.Price commissions_; + + /** + * + * + *
      +   * The commissions amount (pending and paid).
      +   * 
      + * + * optional .google.shopping.type.Price commissions = 7; + * + * @return Whether the commissions field is set. + */ + @java.lang.Override + public boolean hasCommissions() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
      +   * The commissions amount (pending and paid).
      +   * 
      + * + * optional .google.shopping.type.Price commissions = 7; + * + * @return The commissions. + */ + @java.lang.Override + public com.google.shopping.type.Price getCommissions() { + return commissions_ == null + ? com.google.shopping.type.Price.getDefaultInstance() + : commissions_; + } + + /** + * + * + *
      +   * The commissions amount (pending and paid).
      +   * 
      + * + * optional .google.shopping.type.Price commissions = 7; + */ + @java.lang.Override + public com.google.shopping.type.PriceOrBuilder getCommissionsOrBuilder() { + return commissions_ == null + ? com.google.shopping.type.Price.getDefaultInstance() + : commissions_; + } + + public static final int ORDERS_FIELD_NUMBER = 8; + private long orders_ = 0L; + + /** + * + * + *
      +   * The number of orders.
      +   * 
      + * + * optional int64 orders = 8; + * + * @return Whether the orders field is set. + */ + @java.lang.Override + public boolean hasOrders() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
      +   * The number of orders.
      +   * 
      + * + * optional int64 orders = 8; + * + * @return The orders. + */ + @java.lang.Override + public long getOrders() { + return orders_; + } + + public static final int VIEWS_FIELD_NUMBER = 9; + private long views_ = 0L; + + /** + * + * + *
      +   * The number of YouTube views.
      +   * 
      + * + * optional int64 views = 9; + * + * @return Whether the views field is set. + */ + @java.lang.Override + public boolean hasViews() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
      +   * The number of YouTube views.
      +   * 
      + * + * optional int64 views = 9; + * + * @return The views. + */ + @java.lang.Override + public long getViews() { + return views_; + } + + public static final int CLICKS_FIELD_NUMBER = 10; + private long clicks_ = 0L; + + /** + * + * + *
      +   * The number of product clicks.
      +   * 
      + * + * optional int64 clicks = 10; + * + * @return Whether the clicks field is set. + */ + @java.lang.Override + public boolean hasClicks() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
      +   * The number of product clicks.
      +   * 
      + * + * optional int64 clicks = 10; + * + * @return The clicks. + */ + @java.lang.Override + public long getClicks() { + return clicks_; + } + + public static final int NET_SALES_FIELD_NUMBER = 11; + private com.google.shopping.type.Price netSales_; + + /** + * + * + *
      +   * The net sales amount (includes both purchase and refunds).
      +   * 
      + * + * optional .google.shopping.type.Price net_sales = 11; + * + * @return Whether the netSales field is set. + */ + @java.lang.Override + public boolean hasNetSales() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
      +   * The net sales amount (includes both purchase and refunds).
      +   * 
      + * + * optional .google.shopping.type.Price net_sales = 11; + * + * @return The netSales. + */ + @java.lang.Override + public com.google.shopping.type.Price getNetSales() { + return netSales_ == null ? com.google.shopping.type.Price.getDefaultInstance() : netSales_; + } + + /** + * + * + *
      +   * The net sales amount (includes both purchase and refunds).
      +   * 
      + * + * optional .google.shopping.type.Price net_sales = 11; + */ + @java.lang.Override + public com.google.shopping.type.PriceOrBuilder getNetSalesOrBuilder() { + return netSales_ == null ? com.google.shopping.type.Price.getDefaultInstance() : netSales_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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, getDate()); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, offerId_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeInt64(4, distinctVideoCount_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeInt64(5, distinctCreatorCount_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(6, getGrossSales()); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(7, getCommissions()); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeInt64(8, orders_); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeInt64(9, views_); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeInt64(10, clicks_); + } + if (((bitField0_ & 0x00000400) != 0)) { + output.writeMessage(11, getNetSales()); + } + 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, getDate()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, offerId_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, distinctVideoCount_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, distinctCreatorCount_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getGrossSales()); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCommissions()); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, orders_); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, views_); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(10, clicks_); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getNetSales()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView)) { + return super.equals(obj); + } + com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView other = + (com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView) obj; + + if (hasDate() != other.hasDate()) return false; + if (hasDate()) { + if (!getDate().equals(other.getDate())) return false; + } + if (hasTitle() != other.hasTitle()) return false; + if (hasTitle()) { + if (!getTitle().equals(other.getTitle())) return false; + } + if (hasOfferId() != other.hasOfferId()) return false; + if (hasOfferId()) { + if (!getOfferId().equals(other.getOfferId())) return false; + } + if (hasDistinctVideoCount() != other.hasDistinctVideoCount()) return false; + if (hasDistinctVideoCount()) { + if (getDistinctVideoCount() != other.getDistinctVideoCount()) return false; + } + if (hasDistinctCreatorCount() != other.hasDistinctCreatorCount()) return false; + if (hasDistinctCreatorCount()) { + if (getDistinctCreatorCount() != other.getDistinctCreatorCount()) return false; + } + if (hasGrossSales() != other.hasGrossSales()) return false; + if (hasGrossSales()) { + if (!getGrossSales().equals(other.getGrossSales())) return false; + } + if (hasCommissions() != other.hasCommissions()) return false; + if (hasCommissions()) { + if (!getCommissions().equals(other.getCommissions())) return false; + } + if (hasOrders() != other.hasOrders()) return false; + if (hasOrders()) { + if (getOrders() != other.getOrders()) return false; + } + if (hasViews() != other.hasViews()) return false; + if (hasViews()) { + if (getViews() != other.getViews()) return false; + } + if (hasClicks() != other.hasClicks()) return false; + if (hasClicks()) { + if (getClicks() != other.getClicks()) return false; + } + if (hasNetSales() != other.hasNetSales()) return false; + if (hasNetSales()) { + if (!getNetSales().equals(other.getNetSales())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDate()) { + hash = (37 * hash) + DATE_FIELD_NUMBER; + hash = (53 * hash) + getDate().hashCode(); + } + if (hasTitle()) { + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + } + if (hasOfferId()) { + hash = (37 * hash) + OFFER_ID_FIELD_NUMBER; + hash = (53 * hash) + getOfferId().hashCode(); + } + if (hasDistinctVideoCount()) { + hash = (37 * hash) + DISTINCT_VIDEO_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDistinctVideoCount()); + } + if (hasDistinctCreatorCount()) { + hash = (37 * hash) + DISTINCT_CREATOR_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDistinctCreatorCount()); + } + if (hasGrossSales()) { + hash = (37 * hash) + GROSS_SALES_FIELD_NUMBER; + hash = (53 * hash) + getGrossSales().hashCode(); + } + if (hasCommissions()) { + hash = (37 * hash) + COMMISSIONS_FIELD_NUMBER; + hash = (53 * hash) + getCommissions().hashCode(); + } + if (hasOrders()) { + hash = (37 * hash) + ORDERS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getOrders()); + } + if (hasViews()) { + hash = (37 * hash) + VIEWS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getViews()); + } + if (hasClicks()) { + hash = (37 * hash) + CLICKS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getClicks()); + } + if (hasNetSales()) { + hash = (37 * hash) + NET_SALES_FIELD_NUMBER; + hash = (53 * hash) + getNetSales().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Fields available for query in `youtube_product_performance_view` table.
      +   *
      +   * [YouTube product performance
      +   * data](https://support.google.com/merchants/answer/14947975) for your account.
      +   * This data is only available if an account is enrolled in the [YouTube
      +   * Shopping Affiliate
      +   * program](https://support.google.com/merchants/answer/14815513?hl=en).
      +   *
      +   * Values are only set for fields requested explicitly in the request's search
      +   * query.
      +   * 
      + * + * Protobuf type {@code google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView) + com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceViewOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_YoutubeProductPerformanceView_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_YoutubeProductPerformanceView_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView.class, + com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView.Builder + .class); + } + + // Construct using + // com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDateFieldBuilder(); + getGrossSalesFieldBuilder(); + getCommissionsFieldBuilder(); + getNetSalesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + date_ = null; + if (dateBuilder_ != null) { + dateBuilder_.dispose(); + dateBuilder_ = null; + } + title_ = ""; + offerId_ = ""; + distinctVideoCount_ = 0L; + distinctCreatorCount_ = 0L; + grossSales_ = null; + if (grossSalesBuilder_ != null) { + grossSalesBuilder_.dispose(); + grossSalesBuilder_ = null; + } + commissions_ = null; + if (commissionsBuilder_ != null) { + commissionsBuilder_.dispose(); + commissionsBuilder_ = null; + } + orders_ = 0L; + views_ = 0L; + clicks_ = 0L; + netSales_ = null; + if (netSalesBuilder_ != null) { + netSalesBuilder_.dispose(); + netSalesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.reports.v1alpha.ReportsProto + .internal_static_google_shopping_merchant_reports_v1alpha_YoutubeProductPerformanceView_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView + getDefaultInstanceForType() { + return com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView build() { + com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView + buildPartial() { + com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView result = + new com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.date_ = dateBuilder_ == null ? date_ : dateBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.title_ = title_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.offerId_ = offerId_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.distinctVideoCount_ = distinctVideoCount_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.distinctCreatorCount_ = distinctCreatorCount_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.grossSales_ = grossSalesBuilder_ == null ? grossSales_ : grossSalesBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.commissions_ = + commissionsBuilder_ == null ? commissions_ : commissionsBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.orders_ = orders_; + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.views_ = views_; + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.clicks_ = clicks_; + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.netSales_ = netSalesBuilder_ == null ? netSales_ : netSalesBuilder_.build(); + to_bitField0_ |= 0x00000400; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView) { + return mergeFrom( + (com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView other) { + if (other + == com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView + .getDefaultInstance()) return this; + if (other.hasDate()) { + mergeDate(other.getDate()); + } + if (other.hasTitle()) { + title_ = other.title_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasOfferId()) { + offerId_ = other.offerId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasDistinctVideoCount()) { + setDistinctVideoCount(other.getDistinctVideoCount()); + } + if (other.hasDistinctCreatorCount()) { + setDistinctCreatorCount(other.getDistinctCreatorCount()); + } + if (other.hasGrossSales()) { + mergeGrossSales(other.getGrossSales()); + } + if (other.hasCommissions()) { + mergeCommissions(other.getCommissions()); + } + if (other.hasOrders()) { + setOrders(other.getOrders()); + } + if (other.hasViews()) { + setViews(other.getViews()); + } + if (other.hasClicks()) { + setClicks(other.getClicks()); + } + if (other.hasNetSales()) { + mergeNetSales(other.getNetSales()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(getDateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + offerId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + distinctVideoCount_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + distinctCreatorCount_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: + { + input.readMessage(getGrossSalesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage(getCommissionsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 64: + { + orders_ = input.readInt64(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: + { + views_ = input.readInt64(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 80: + { + clicks_ = input.readInt64(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 90: + { + input.readMessage(getNetSalesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 90 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.type.Date date_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + dateBuilder_; + + /** + * + * + *
      +     * Date in the merchant timezone to which metrics apply. Segment.
      +     *
      +     * Condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + * + * @return Whether the date field is set. + */ + public boolean hasDate() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +     * Date in the merchant timezone to which metrics apply. Segment.
      +     *
      +     * Condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + * + * @return The date. + */ + public com.google.type.Date getDate() { + if (dateBuilder_ == null) { + return date_ == null ? com.google.type.Date.getDefaultInstance() : date_; + } else { + return dateBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Date in the merchant timezone to which metrics apply. Segment.
      +     *
      +     * Condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + */ + public Builder setDate(com.google.type.Date value) { + if (dateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + date_ = value; + } else { + dateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Date in the merchant timezone to which metrics apply. Segment.
      +     *
      +     * Condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + */ + public Builder setDate(com.google.type.Date.Builder builderForValue) { + if (dateBuilder_ == null) { + date_ = builderForValue.build(); + } else { + dateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Date in the merchant timezone to which metrics apply. Segment.
      +     *
      +     * Condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + */ + public Builder mergeDate(com.google.type.Date value) { + if (dateBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && date_ != null + && date_ != com.google.type.Date.getDefaultInstance()) { + getDateBuilder().mergeFrom(value); + } else { + date_ = value; + } + } else { + dateBuilder_.mergeFrom(value); + } + if (date_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Date in the merchant timezone to which metrics apply. Segment.
      +     *
      +     * Condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + */ + public Builder clearDate() { + bitField0_ = (bitField0_ & ~0x00000001); + date_ = null; + if (dateBuilder_ != null) { + dateBuilder_.dispose(); + dateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Date in the merchant timezone to which metrics apply. Segment.
      +     *
      +     * Condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + */ + public com.google.type.Date.Builder getDateBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getDateFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Date in the merchant timezone to which metrics apply. Segment.
      +     *
      +     * Condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + */ + public com.google.type.DateOrBuilder getDateOrBuilder() { + if (dateBuilder_ != null) { + return dateBuilder_.getMessageOrBuilder(); + } else { + return date_ == null ? com.google.type.Date.getDefaultInstance() : date_; + } + } + + /** + * + * + *
      +     * Date in the merchant timezone to which metrics apply. Segment.
      +     *
      +     * Condition on `date` is required in the `WHERE` clause.
      +     * 
      + * + * .google.type.Date date = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getDateFieldBuilder() { + if (dateBuilder_ == null) { + dateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getDate(), getParentForChildren(), isClean()); + date_ = null; + } + return dateBuilder_; + } + + private java.lang.Object title_ = ""; + + /** + * + * + *
      +     * The product title.
      +     * 
      + * + * optional string title = 2; + * + * @return Whether the title field is set. + */ + public boolean hasTitle() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +     * The product title.
      +     * 
      + * + * optional string title = 2; + * + * @return The title. + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * The product title.
      +     * 
      + * + * optional string title = 2; + * + * @return The bytes for title. + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * The product title.
      +     * 
      + * + * optional string title = 2; + * + * @param value The title to set. + * @return This builder for chaining. + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + title_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The product title.
      +     * 
      + * + * optional string title = 2; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * The product title.
      +     * 
      + * + * optional string title = 2; + * + * @param value The bytes for title to set. + * @return This builder for chaining. + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + title_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object offerId_ = ""; + + /** + * + * + *
      +     * The merchant-provided product id.
      +     * 
      + * + * optional string offer_id = 3; + * + * @return Whether the offerId field is set. + */ + public boolean hasOfferId() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +     * The merchant-provided product id.
      +     * 
      + * + * optional string offer_id = 3; + * + * @return The offerId. + */ + public java.lang.String getOfferId() { + java.lang.Object ref = offerId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + offerId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * The merchant-provided product id.
      +     * 
      + * + * optional string offer_id = 3; + * + * @return The bytes for offerId. + */ + public com.google.protobuf.ByteString getOfferIdBytes() { + java.lang.Object ref = offerId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + offerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * The merchant-provided product id.
      +     * 
      + * + * optional string offer_id = 3; + * + * @param value The offerId to set. + * @return This builder for chaining. + */ + public Builder setOfferId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + offerId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The merchant-provided product id.
      +     * 
      + * + * optional string offer_id = 3; + * + * @return This builder for chaining. + */ + public Builder clearOfferId() { + offerId_ = getDefaultInstance().getOfferId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * The merchant-provided product id.
      +     * 
      + * + * optional string offer_id = 3; + * + * @param value The bytes for offerId to set. + * @return This builder for chaining. + */ + public Builder setOfferIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + offerId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private long distinctVideoCount_; + + /** + * + * + *
      +     * The number of distinct videos the product was shown on.
      +     * 
      + * + * optional int64 distinct_video_count = 4; + * + * @return Whether the distinctVideoCount field is set. + */ + @java.lang.Override + public boolean hasDistinctVideoCount() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +     * The number of distinct videos the product was shown on.
      +     * 
      + * + * optional int64 distinct_video_count = 4; + * + * @return The distinctVideoCount. + */ + @java.lang.Override + public long getDistinctVideoCount() { + return distinctVideoCount_; + } + + /** + * + * + *
      +     * The number of distinct videos the product was shown on.
      +     * 
      + * + * optional int64 distinct_video_count = 4; + * + * @param value The distinctVideoCount to set. + * @return This builder for chaining. + */ + public Builder setDistinctVideoCount(long value) { + + distinctVideoCount_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The number of distinct videos the product was shown on.
      +     * 
      + * + * optional int64 distinct_video_count = 4; + * + * @return This builder for chaining. + */ + public Builder clearDistinctVideoCount() { + bitField0_ = (bitField0_ & ~0x00000008); + distinctVideoCount_ = 0L; + onChanged(); + return this; + } + + private long distinctCreatorCount_; + + /** + * + * + *
      +     * The number of distinct creator channels the product was shown on.
      +     * 
      + * + * optional int64 distinct_creator_count = 5; + * + * @return Whether the distinctCreatorCount field is set. + */ + @java.lang.Override + public boolean hasDistinctCreatorCount() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
      +     * The number of distinct creator channels the product was shown on.
      +     * 
      + * + * optional int64 distinct_creator_count = 5; + * + * @return The distinctCreatorCount. + */ + @java.lang.Override + public long getDistinctCreatorCount() { + return distinctCreatorCount_; + } + + /** + * + * + *
      +     * The number of distinct creator channels the product was shown on.
      +     * 
      + * + * optional int64 distinct_creator_count = 5; + * + * @param value The distinctCreatorCount to set. + * @return This builder for chaining. + */ + public Builder setDistinctCreatorCount(long value) { + + distinctCreatorCount_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The number of distinct creator channels the product was shown on.
      +     * 
      + * + * optional int64 distinct_creator_count = 5; + * + * @return This builder for chaining. + */ + public Builder clearDistinctCreatorCount() { + bitField0_ = (bitField0_ & ~0x00000010); + distinctCreatorCount_ = 0L; + onChanged(); + return this; + } + + private com.google.shopping.type.Price grossSales_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> + grossSalesBuilder_; + + /** + * + * + *
      +     * The gross sales amount, before refunds.
      +     * 
      + * + * optional .google.shopping.type.Price gross_sales = 6; + * + * @return Whether the grossSales field is set. + */ + public boolean hasGrossSales() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
      +     * The gross sales amount, before refunds.
      +     * 
      + * + * optional .google.shopping.type.Price gross_sales = 6; + * + * @return The grossSales. + */ + public com.google.shopping.type.Price getGrossSales() { + if (grossSalesBuilder_ == null) { + return grossSales_ == null + ? com.google.shopping.type.Price.getDefaultInstance() + : grossSales_; + } else { + return grossSalesBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * The gross sales amount, before refunds.
      +     * 
      + * + * optional .google.shopping.type.Price gross_sales = 6; + */ + public Builder setGrossSales(com.google.shopping.type.Price value) { + if (grossSalesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + grossSales_ = value; + } else { + grossSalesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The gross sales amount, before refunds.
      +     * 
      + * + * optional .google.shopping.type.Price gross_sales = 6; + */ + public Builder setGrossSales(com.google.shopping.type.Price.Builder builderForValue) { + if (grossSalesBuilder_ == null) { + grossSales_ = builderForValue.build(); + } else { + grossSalesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The gross sales amount, before refunds.
      +     * 
      + * + * optional .google.shopping.type.Price gross_sales = 6; + */ + public Builder mergeGrossSales(com.google.shopping.type.Price value) { + if (grossSalesBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && grossSales_ != null + && grossSales_ != com.google.shopping.type.Price.getDefaultInstance()) { + getGrossSalesBuilder().mergeFrom(value); + } else { + grossSales_ = value; + } + } else { + grossSalesBuilder_.mergeFrom(value); + } + if (grossSales_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * The gross sales amount, before refunds.
      +     * 
      + * + * optional .google.shopping.type.Price gross_sales = 6; + */ + public Builder clearGrossSales() { + bitField0_ = (bitField0_ & ~0x00000020); + grossSales_ = null; + if (grossSalesBuilder_ != null) { + grossSalesBuilder_.dispose(); + grossSalesBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * The gross sales amount, before refunds.
      +     * 
      + * + * optional .google.shopping.type.Price gross_sales = 6; + */ + public com.google.shopping.type.Price.Builder getGrossSalesBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getGrossSalesFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * The gross sales amount, before refunds.
      +     * 
      + * + * optional .google.shopping.type.Price gross_sales = 6; + */ + public com.google.shopping.type.PriceOrBuilder getGrossSalesOrBuilder() { + if (grossSalesBuilder_ != null) { + return grossSalesBuilder_.getMessageOrBuilder(); + } else { + return grossSales_ == null + ? com.google.shopping.type.Price.getDefaultInstance() + : grossSales_; + } + } + + /** + * + * + *
      +     * The gross sales amount, before refunds.
      +     * 
      + * + * optional .google.shopping.type.Price gross_sales = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> + getGrossSalesFieldBuilder() { + if (grossSalesBuilder_ == null) { + grossSalesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder>( + getGrossSales(), getParentForChildren(), isClean()); + grossSales_ = null; + } + return grossSalesBuilder_; + } + + private com.google.shopping.type.Price commissions_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> + commissionsBuilder_; + + /** + * + * + *
      +     * The commissions amount (pending and paid).
      +     * 
      + * + * optional .google.shopping.type.Price commissions = 7; + * + * @return Whether the commissions field is set. + */ + public boolean hasCommissions() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
      +     * The commissions amount (pending and paid).
      +     * 
      + * + * optional .google.shopping.type.Price commissions = 7; + * + * @return The commissions. + */ + public com.google.shopping.type.Price getCommissions() { + if (commissionsBuilder_ == null) { + return commissions_ == null + ? com.google.shopping.type.Price.getDefaultInstance() + : commissions_; + } else { + return commissionsBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * The commissions amount (pending and paid).
      +     * 
      + * + * optional .google.shopping.type.Price commissions = 7; + */ + public Builder setCommissions(com.google.shopping.type.Price value) { + if (commissionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + commissions_ = value; + } else { + commissionsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The commissions amount (pending and paid).
      +     * 
      + * + * optional .google.shopping.type.Price commissions = 7; + */ + public Builder setCommissions(com.google.shopping.type.Price.Builder builderForValue) { + if (commissionsBuilder_ == null) { + commissions_ = builderForValue.build(); + } else { + commissionsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The commissions amount (pending and paid).
      +     * 
      + * + * optional .google.shopping.type.Price commissions = 7; + */ + public Builder mergeCommissions(com.google.shopping.type.Price value) { + if (commissionsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && commissions_ != null + && commissions_ != com.google.shopping.type.Price.getDefaultInstance()) { + getCommissionsBuilder().mergeFrom(value); + } else { + commissions_ = value; + } + } else { + commissionsBuilder_.mergeFrom(value); + } + if (commissions_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * The commissions amount (pending and paid).
      +     * 
      + * + * optional .google.shopping.type.Price commissions = 7; + */ + public Builder clearCommissions() { + bitField0_ = (bitField0_ & ~0x00000040); + commissions_ = null; + if (commissionsBuilder_ != null) { + commissionsBuilder_.dispose(); + commissionsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * The commissions amount (pending and paid).
      +     * 
      + * + * optional .google.shopping.type.Price commissions = 7; + */ + public com.google.shopping.type.Price.Builder getCommissionsBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getCommissionsFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * The commissions amount (pending and paid).
      +     * 
      + * + * optional .google.shopping.type.Price commissions = 7; + */ + public com.google.shopping.type.PriceOrBuilder getCommissionsOrBuilder() { + if (commissionsBuilder_ != null) { + return commissionsBuilder_.getMessageOrBuilder(); + } else { + return commissions_ == null + ? com.google.shopping.type.Price.getDefaultInstance() + : commissions_; + } + } + + /** + * + * + *
      +     * The commissions amount (pending and paid).
      +     * 
      + * + * optional .google.shopping.type.Price commissions = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> + getCommissionsFieldBuilder() { + if (commissionsBuilder_ == null) { + commissionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder>( + getCommissions(), getParentForChildren(), isClean()); + commissions_ = null; + } + return commissionsBuilder_; + } + + private long orders_; + + /** + * + * + *
      +     * The number of orders.
      +     * 
      + * + * optional int64 orders = 8; + * + * @return Whether the orders field is set. + */ + @java.lang.Override + public boolean hasOrders() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
      +     * The number of orders.
      +     * 
      + * + * optional int64 orders = 8; + * + * @return The orders. + */ + @java.lang.Override + public long getOrders() { + return orders_; + } + + /** + * + * + *
      +     * The number of orders.
      +     * 
      + * + * optional int64 orders = 8; + * + * @param value The orders to set. + * @return This builder for chaining. + */ + public Builder setOrders(long value) { + + orders_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The number of orders.
      +     * 
      + * + * optional int64 orders = 8; + * + * @return This builder for chaining. + */ + public Builder clearOrders() { + bitField0_ = (bitField0_ & ~0x00000080); + orders_ = 0L; + onChanged(); + return this; + } + + private long views_; + + /** + * + * + *
      +     * The number of YouTube views.
      +     * 
      + * + * optional int64 views = 9; + * + * @return Whether the views field is set. + */ + @java.lang.Override + public boolean hasViews() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
      +     * The number of YouTube views.
      +     * 
      + * + * optional int64 views = 9; + * + * @return The views. + */ + @java.lang.Override + public long getViews() { + return views_; + } + + /** + * + * + *
      +     * The number of YouTube views.
      +     * 
      + * + * optional int64 views = 9; + * + * @param value The views to set. + * @return This builder for chaining. + */ + public Builder setViews(long value) { + + views_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The number of YouTube views.
      +     * 
      + * + * optional int64 views = 9; + * + * @return This builder for chaining. + */ + public Builder clearViews() { + bitField0_ = (bitField0_ & ~0x00000100); + views_ = 0L; + onChanged(); + return this; + } + + private long clicks_; + + /** + * + * + *
      +     * The number of product clicks.
      +     * 
      + * + * optional int64 clicks = 10; + * + * @return Whether the clicks field is set. + */ + @java.lang.Override + public boolean hasClicks() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
      +     * The number of product clicks.
      +     * 
      + * + * optional int64 clicks = 10; + * + * @return The clicks. + */ + @java.lang.Override + public long getClicks() { + return clicks_; + } + + /** + * + * + *
      +     * The number of product clicks.
      +     * 
      + * + * optional int64 clicks = 10; + * + * @param value The clicks to set. + * @return This builder for chaining. + */ + public Builder setClicks(long value) { + + clicks_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The number of product clicks.
      +     * 
      + * + * optional int64 clicks = 10; + * + * @return This builder for chaining. + */ + public Builder clearClicks() { + bitField0_ = (bitField0_ & ~0x00000200); + clicks_ = 0L; + onChanged(); + return this; + } + + private com.google.shopping.type.Price netSales_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> + netSalesBuilder_; + + /** + * + * + *
      +     * The net sales amount (includes both purchase and refunds).
      +     * 
      + * + * optional .google.shopping.type.Price net_sales = 11; + * + * @return Whether the netSales field is set. + */ + public boolean hasNetSales() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
      +     * The net sales amount (includes both purchase and refunds).
      +     * 
      + * + * optional .google.shopping.type.Price net_sales = 11; + * + * @return The netSales. + */ + public com.google.shopping.type.Price getNetSales() { + if (netSalesBuilder_ == null) { + return netSales_ == null ? com.google.shopping.type.Price.getDefaultInstance() : netSales_; + } else { + return netSalesBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * The net sales amount (includes both purchase and refunds).
      +     * 
      + * + * optional .google.shopping.type.Price net_sales = 11; + */ + public Builder setNetSales(com.google.shopping.type.Price value) { + if (netSalesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + netSales_ = value; + } else { + netSalesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The net sales amount (includes both purchase and refunds).
      +     * 
      + * + * optional .google.shopping.type.Price net_sales = 11; + */ + public Builder setNetSales(com.google.shopping.type.Price.Builder builderForValue) { + if (netSalesBuilder_ == null) { + netSales_ = builderForValue.build(); + } else { + netSalesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The net sales amount (includes both purchase and refunds).
      +     * 
      + * + * optional .google.shopping.type.Price net_sales = 11; + */ + public Builder mergeNetSales(com.google.shopping.type.Price value) { + if (netSalesBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && netSales_ != null + && netSales_ != com.google.shopping.type.Price.getDefaultInstance()) { + getNetSalesBuilder().mergeFrom(value); + } else { + netSales_ = value; + } + } else { + netSalesBuilder_.mergeFrom(value); + } + if (netSales_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * The net sales amount (includes both purchase and refunds).
      +     * 
      + * + * optional .google.shopping.type.Price net_sales = 11; + */ + public Builder clearNetSales() { + bitField0_ = (bitField0_ & ~0x00000400); + netSales_ = null; + if (netSalesBuilder_ != null) { + netSalesBuilder_.dispose(); + netSalesBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * The net sales amount (includes both purchase and refunds).
      +     * 
      + * + * optional .google.shopping.type.Price net_sales = 11; + */ + public com.google.shopping.type.Price.Builder getNetSalesBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return getNetSalesFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * The net sales amount (includes both purchase and refunds).
      +     * 
      + * + * optional .google.shopping.type.Price net_sales = 11; + */ + public com.google.shopping.type.PriceOrBuilder getNetSalesOrBuilder() { + if (netSalesBuilder_ != null) { + return netSalesBuilder_.getMessageOrBuilder(); + } else { + return netSales_ == null ? com.google.shopping.type.Price.getDefaultInstance() : netSales_; + } + } + + /** + * + * + *
      +     * The net sales amount (includes both purchase and refunds).
      +     * 
      + * + * optional .google.shopping.type.Price net_sales = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> + getNetSalesFieldBuilder() { + if (netSalesBuilder_ == null) { + netSalesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder>( + getNetSales(), getParentForChildren(), isClean()); + netSales_ = null; + } + return netSalesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView) + private static final com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView(); + } + + public static com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public YoutubeProductPerformanceView parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/YoutubeProductPerformanceViewOrBuilder.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/YoutubeProductPerformanceViewOrBuilder.java new file mode 100644 index 000000000000..6330f979fbe0 --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/java/com/google/shopping/merchant/reports/v1alpha/YoutubeProductPerformanceViewOrBuilder.java @@ -0,0 +1,388 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/reports/v1alpha/reports.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.reports.v1alpha; + +public interface YoutubeProductPerformanceViewOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Date in the merchant timezone to which metrics apply. Segment.
      +   *
      +   * Condition on `date` is required in the `WHERE` clause.
      +   * 
      + * + * .google.type.Date date = 1; + * + * @return Whether the date field is set. + */ + boolean hasDate(); + + /** + * + * + *
      +   * Date in the merchant timezone to which metrics apply. Segment.
      +   *
      +   * Condition on `date` is required in the `WHERE` clause.
      +   * 
      + * + * .google.type.Date date = 1; + * + * @return The date. + */ + com.google.type.Date getDate(); + + /** + * + * + *
      +   * Date in the merchant timezone to which metrics apply. Segment.
      +   *
      +   * Condition on `date` is required in the `WHERE` clause.
      +   * 
      + * + * .google.type.Date date = 1; + */ + com.google.type.DateOrBuilder getDateOrBuilder(); + + /** + * + * + *
      +   * The product title.
      +   * 
      + * + * optional string title = 2; + * + * @return Whether the title field is set. + */ + boolean hasTitle(); + + /** + * + * + *
      +   * The product title.
      +   * 
      + * + * optional string title = 2; + * + * @return The title. + */ + java.lang.String getTitle(); + + /** + * + * + *
      +   * The product title.
      +   * 
      + * + * optional string title = 2; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
      +   * The merchant-provided product id.
      +   * 
      + * + * optional string offer_id = 3; + * + * @return Whether the offerId field is set. + */ + boolean hasOfferId(); + + /** + * + * + *
      +   * The merchant-provided product id.
      +   * 
      + * + * optional string offer_id = 3; + * + * @return The offerId. + */ + java.lang.String getOfferId(); + + /** + * + * + *
      +   * The merchant-provided product id.
      +   * 
      + * + * optional string offer_id = 3; + * + * @return The bytes for offerId. + */ + com.google.protobuf.ByteString getOfferIdBytes(); + + /** + * + * + *
      +   * The number of distinct videos the product was shown on.
      +   * 
      + * + * optional int64 distinct_video_count = 4; + * + * @return Whether the distinctVideoCount field is set. + */ + boolean hasDistinctVideoCount(); + + /** + * + * + *
      +   * The number of distinct videos the product was shown on.
      +   * 
      + * + * optional int64 distinct_video_count = 4; + * + * @return The distinctVideoCount. + */ + long getDistinctVideoCount(); + + /** + * + * + *
      +   * The number of distinct creator channels the product was shown on.
      +   * 
      + * + * optional int64 distinct_creator_count = 5; + * + * @return Whether the distinctCreatorCount field is set. + */ + boolean hasDistinctCreatorCount(); + + /** + * + * + *
      +   * The number of distinct creator channels the product was shown on.
      +   * 
      + * + * optional int64 distinct_creator_count = 5; + * + * @return The distinctCreatorCount. + */ + long getDistinctCreatorCount(); + + /** + * + * + *
      +   * The gross sales amount, before refunds.
      +   * 
      + * + * optional .google.shopping.type.Price gross_sales = 6; + * + * @return Whether the grossSales field is set. + */ + boolean hasGrossSales(); + + /** + * + * + *
      +   * The gross sales amount, before refunds.
      +   * 
      + * + * optional .google.shopping.type.Price gross_sales = 6; + * + * @return The grossSales. + */ + com.google.shopping.type.Price getGrossSales(); + + /** + * + * + *
      +   * The gross sales amount, before refunds.
      +   * 
      + * + * optional .google.shopping.type.Price gross_sales = 6; + */ + com.google.shopping.type.PriceOrBuilder getGrossSalesOrBuilder(); + + /** + * + * + *
      +   * The commissions amount (pending and paid).
      +   * 
      + * + * optional .google.shopping.type.Price commissions = 7; + * + * @return Whether the commissions field is set. + */ + boolean hasCommissions(); + + /** + * + * + *
      +   * The commissions amount (pending and paid).
      +   * 
      + * + * optional .google.shopping.type.Price commissions = 7; + * + * @return The commissions. + */ + com.google.shopping.type.Price getCommissions(); + + /** + * + * + *
      +   * The commissions amount (pending and paid).
      +   * 
      + * + * optional .google.shopping.type.Price commissions = 7; + */ + com.google.shopping.type.PriceOrBuilder getCommissionsOrBuilder(); + + /** + * + * + *
      +   * The number of orders.
      +   * 
      + * + * optional int64 orders = 8; + * + * @return Whether the orders field is set. + */ + boolean hasOrders(); + + /** + * + * + *
      +   * The number of orders.
      +   * 
      + * + * optional int64 orders = 8; + * + * @return The orders. + */ + long getOrders(); + + /** + * + * + *
      +   * The number of YouTube views.
      +   * 
      + * + * optional int64 views = 9; + * + * @return Whether the views field is set. + */ + boolean hasViews(); + + /** + * + * + *
      +   * The number of YouTube views.
      +   * 
      + * + * optional int64 views = 9; + * + * @return The views. + */ + long getViews(); + + /** + * + * + *
      +   * The number of product clicks.
      +   * 
      + * + * optional int64 clicks = 10; + * + * @return Whether the clicks field is set. + */ + boolean hasClicks(); + + /** + * + * + *
      +   * The number of product clicks.
      +   * 
      + * + * optional int64 clicks = 10; + * + * @return The clicks. + */ + long getClicks(); + + /** + * + * + *
      +   * The net sales amount (includes both purchase and refunds).
      +   * 
      + * + * optional .google.shopping.type.Price net_sales = 11; + * + * @return Whether the netSales field is set. + */ + boolean hasNetSales(); + + /** + * + * + *
      +   * The net sales amount (includes both purchase and refunds).
      +   * 
      + * + * optional .google.shopping.type.Price net_sales = 11; + * + * @return The netSales. + */ + com.google.shopping.type.Price getNetSales(); + + /** + * + * + *
      +   * The net sales amount (includes both purchase and refunds).
      +   * 
      + * + * optional .google.shopping.type.Price net_sales = 11; + */ + com.google.shopping.type.PriceOrBuilder getNetSalesOrBuilder(); +} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/proto/google/shopping/merchant/reports/v1alpha/reports.proto b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/proto/google/shopping/merchant/reports/v1alpha/reports.proto new file mode 100644 index 000000000000..f94fda1835df --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/src/main/proto/google/shopping/merchant/reports/v1alpha/reports.proto @@ -0,0 +1,1398 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.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.shopping.merchant.reports.v1alpha; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/protobuf/timestamp.proto"; +import "google/shopping/type/types.proto"; +import "google/type/date.proto"; + +option go_package = "cloud.google.com/go/shopping/merchant/reports/apiv1alpha/reportspb;reportspb"; +option java_multiple_files = true; +option java_outer_classname = "ReportsProto"; +option java_package = "com.google.shopping.merchant.reports.v1alpha"; + +// Service for retrieving reports and insights about your products, their +// performance, and their competitive environment on Google. +service ReportService { + option (google.api.default_host) = "merchantapi.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/content"; + + // Retrieves a report defined by a search query. The response might contain + // fewer rows than specified by `page_size`. Rely on `next_page_token` to + // determine if there are more rows to be requested. + rpc Search(SearchRequest) returns (SearchResponse) { + option (google.api.http) = { + post: "/reports/v1alpha/{parent=accounts/*}/reports:search" + body: "*" + }; + option (google.api.method_signature) = "parent"; + } +} + +// Request message for the `ReportService.Search` method. +message SearchRequest { + // Required. Id of the account making the call. Must be a standalone account + // or an MCA subaccount. Format: accounts/{account} + string parent = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Query that defines a report to be retrieved. + // + // For details on how to construct your query, see the Query Language + // guide. For the full list of available tables and fields, see the Available + // fields. + string query = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Number of `ReportRows` to retrieve in a single page. Defaults to + // 1000. Values above 5000 are coerced to 5000. + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Token of the page to retrieve. If not specified, the first page + // of results is returned. In order to request the next page of results, the + // value obtained from `next_page_token` in the previous response should be + // used. + string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for the `ReportService.Search` method. +message SearchResponse { + // Rows that matched the search query. + repeated ReportRow results = 1; + + // Token which can be sent as `page_token` to retrieve the next page. If + // omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Result row returned from the search query. +// +// Only the message corresponding to the queried table is populated in the +// response. Within the populated message, only the fields requested explicitly +// in the query are populated. +message ReportRow { + // Fields available for query in `product_performance_view` table. + ProductPerformanceView product_performance_view = 1; + + // Fields available for query in `non_product_performance_view` table. + NonProductPerformanceView non_product_performance_view = 7; + + // Fields available for query in `product_view` table. + ProductView product_view = 2; + + // Fields available for query in `price_competitiveness_product_view` table. + PriceCompetitivenessProductView price_competitiveness_product_view = 3; + + // Fields available for query in `price_insights_product_view` table. + PriceInsightsProductView price_insights_product_view = 4; + + // Fields available for query in `best_sellers_product_cluster_view` table. + BestSellersProductClusterView best_sellers_product_cluster_view = 5; + + // Fields available for query in `best_sellers_brand_view` table. + BestSellersBrandView best_sellers_brand_view = 6; + + // Fields available for query in `competitive_visibility_competitor_view` + // table. + CompetitiveVisibilityCompetitorView competitive_visibility_competitor_view = + 8; + + // Fields available for query in `competitive_visibility_top_merchant_view` + // table. + CompetitiveVisibilityTopMerchantView + competitive_visibility_top_merchant_view = 9; + + // Fields available for query in `competitive_visibility_benchmark_view` + // table. + CompetitiveVisibilityBenchmarkView competitive_visibility_benchmark_view = 10; + + // Fields available for query in `youtube_creator_performance_view` table. + YoutubeCreatorPerformanceView youtube_creator_performance_view = 11; + + // Fields available for query in `youtube_content_performance_view` table. + YoutubeContentPerformanceView youtube_content_performance_view = 12; + + // Fields available for query in `youtube_product_performance_view` table. + YoutubeProductPerformanceView youtube_product_performance_view = 13; +} + +// Fields available for query in `product_performance_view` table. +// +// Product performance data for your account, including performance metrics (for +// example, `clicks`) and dimensions according to which performance metrics are +// segmented (for example, `offer_id`). Values of product dimensions, such as +// `offer_id`, reflect the state of a product at the time of the impression. +// +// Segment fields cannot be selected in queries without also selecting at least +// one metric field. +// +// Values are only set for fields requested explicitly in the request's search +// query. +message ProductPerformanceView { + // Marketing method to which metrics apply. Segment. + optional MarketingMethod.MarketingMethodEnum marketing_method = 1; + + // Date in the merchant timezone to which metrics apply. Segment. + // + // Condition on `date` is required in the `WHERE` clause. + google.type.Date date = 2; + + // First day of the week (Monday) of the metrics date in the merchant + // timezone. Segment. + google.type.Date week = 3; + + // Code of the country where the customer is located at the time of the event. + // Represented in the ISO 3166 format. Segment. + // + // If the customer country cannot be determined, a special 'ZZ' code is + // returned. + optional string customer_country_code = 4; + + // Merchant-provided id of the product. Segment. + optional string offer_id = 5; + + // Title of the product. Segment. + optional string title = 6; + + // Brand of the product. Segment. + optional string brand = 7; + + // [Product category (1st + // level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type) + // in Google's product taxonomy. Segment. + optional string category_l1 = 8; + + // [Product category (2nd + // level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type) + // in Google's product taxonomy. Segment. + optional string category_l2 = 9; + + // [Product category (3rd + // level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type) + // in Google's product taxonomy. Segment. + optional string category_l3 = 10; + + // [Product category (4th + // level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type) + // in Google's product taxonomy. Segment. + optional string category_l4 = 11; + + // [Product category (5th + // level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type) + // in Google's product taxonomy. Segment. + optional string category_l5 = 12; + + // [Product type (1st + // level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type) + // in merchant's own product taxonomy. Segment. + optional string product_type_l1 = 13; + + // [Product type (2nd + // level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type) + // in merchant's own product taxonomy. Segment. + optional string product_type_l2 = 14; + + // [Product type (3rd + // level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type) + // in merchant's own product taxonomy. Segment. + optional string product_type_l3 = 15; + + // [Product type (4th + // level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type) + // in merchant's own product taxonomy. Segment. + optional string product_type_l4 = 16; + + // [Product type (5th + // level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type) + // in merchant's own product taxonomy. Segment. + optional string product_type_l5 = 17; + + // Custom label 0 for custom grouping of products. Segment. + optional string custom_label0 = 18; + + // Custom label 1 for custom grouping of products. Segment. + optional string custom_label1 = 19; + + // Custom label 2 for custom grouping of products. Segment. + optional string custom_label2 = 20; + + // Custom label 3 for custom grouping of products. Segment. + optional string custom_label3 = 21; + + // Custom label 4 for custom grouping of products. Segment. + optional string custom_label4 = 22; + + // Number of clicks. Metric. + optional int64 clicks = 23; + + // Number of times merchant's products are shown. Metric. + optional int64 impressions = 24; + + // Click-through rate - the number of clicks merchant's products receive + // (clicks) divided by the number of times the products are shown + // (impressions). Metric. + optional double click_through_rate = 25; + + // Number of conversions attributed to the product, reported on the conversion + // date. Depending on the attribution model, a conversion might be distributed + // across multiple clicks, where each click gets its own credit assigned. This + // metric is a sum of all such credits. Metric. + // + // Available only for the `FREE` traffic source. + optional double conversions = 26; + + // Value of conversions attributed to the product, reported on the conversion + // date. Metric. + // + // Available only for the `FREE` traffic source. + google.shopping.type.Price conversion_value = 27; + + // Number of conversions divided by the number of clicks, reported on the + // impression date. Metric. + // + // Available only for the `FREE` traffic source. + optional double conversion_rate = 28; +} + +// Fields available for query in `product_view` table. +// +// Products in the current inventory. Products in this table are the same as in +// Products sub-API but not all product attributes from Products sub-API are +// available for query in this table. In contrast to Products sub-API, this +// table allows to filter the returned list of products by product attributes. +// To retrieve a single product by `id` or list all products, Products sub-API +// should be used. +// +// Values are only set for fields requested explicitly in the request's search +// query. +// +message ProductView { + // Item issue associated with the product. + message ItemIssue { + // Issue type. + message ItemIssueType { + // Error code of the issue, equivalent to the `code` of [Product + // issues](https://developers.google.com/shopping-content/guides/product-issues). + optional string code = 1; + + // Canonical attribute name for attribute-specific issues. + optional string canonical_attribute = 2; + } + + // How the issue affects the serving of the product. + message ItemIssueSeverity { + // Issue severity per reporting context. + message IssueSeverityPerReportingContext { + // Reporting context the issue applies to. + optional google.shopping.type.ReportingContext.ReportingContextEnum + reporting_context = 1; + + // List of disapproved countries in the reporting context, represented + // in ISO 3166 format. + repeated string disapproved_countries = 2; + + // List of demoted countries in the reporting context, represented in + // ISO 3166 format. + repeated string demoted_countries = 3; + } + + // Issue severity aggregated for all reporting contexts. + enum AggregatedIssueSeverity { + // Not specified. + AGGREGATED_ISSUE_SEVERITY_UNSPECIFIED = 0; + + // Issue disapproves the product in at least one reporting context. + DISAPPROVED = 1; + + // Issue demotes the product in all reporting contexts it affects. + DEMOTED = 2; + + // Issue resolution is `PENDING_PROCESSING`. + PENDING = 3; + } + + // Issue severity per reporting context. + repeated IssueSeverityPerReportingContext severity_per_reporting_context = + 1; + + // Aggregated severity of the issue for all reporting contexts it affects. + // + // **This field can be used for filtering the results.** + optional AggregatedIssueSeverity aggregated_severity = 2; + } + + // How to resolve the issue. + enum ItemIssueResolution { + // Not specified. + ITEM_ISSUE_RESOLUTION_UNSPECIFIED = 0; + + // The merchant has to fix the issue. + MERCHANT_ACTION = 1; + + // The issue will be resolved automatically (for example, image crawl) or + // through a Google review. No merchant action is required now. Resolution + // might lead to another issue (for example, if crawl fails). + PENDING_PROCESSING = 2; + } + + // Item issue type. + ItemIssueType type = 1; + + // Item issue severity. + ItemIssueSeverity severity = 2; + + // Item issue resolution. + optional ItemIssueResolution resolution = 3; + } + + // Status of the product aggregated for all reporting contexts. + // + // Here's an example of how the aggregated status is computed: + // + // Free listings | Shopping ads | Status + // --------------|--------------|------------------------------ + // Approved | Approved | ELIGIBLE + // Approved | Pending | ELIGIBLE + // Approved | Disapproved | ELIGIBLE_LIMITED + // Pending | Pending | PENDING + // Disapproved | Disapproved | NOT_ELIGIBLE_OR_DISAPPROVED + // + // + enum AggregatedReportingContextStatus { + // Not specified. + AGGREGATED_REPORTING_CONTEXT_STATUS_UNSPECIFIED = 0; + + // Product is not eligible or is disapproved for all reporting contexts. + NOT_ELIGIBLE_OR_DISAPPROVED = 1; + + // Product's status is pending in all reporting contexts. + PENDING = 2; + + // Product is eligible for some (but not all) reporting contexts. + ELIGIBLE_LIMITED = 3; + + // Product is eligible for all reporting contexts. + ELIGIBLE = 4; + } + + // A product's [click + // potential](https://support.google.com/merchants/answer/188488) estimates + // its performance potential compared to highest performing products of the + // merchant. Click potential of a product helps merchants to prioritize which + // products to fix and helps them understand how products are performing + // against their potential. + enum ClickPotential { + // Unknown predicted clicks impact. + CLICK_POTENTIAL_UNSPECIFIED = 0; + + // Potential to receive a low number of clicks compared to the highest + // performing products of the merchant. + LOW = 1; + + // Potential to receive a moderate number of clicks compared to the highest + // performing products of the merchant. + MEDIUM = 2; + + // Potential to receive a similar number of clicks as the highest performing + // products of the merchant. + HIGH = 3; + } + + // REST ID of the product, in the form of + // `channel~languageCode~feedLabel~offerId`. Merchant API methods that operate + // on products take this as their `name` parameter. + // + // Required in the `SELECT` clause. + optional string id = 1; + + // Channel of the product. Can be `ONLINE` or `LOCAL`. + optional google.shopping.type.Channel.ChannelEnum channel = 28; + + // Language code of the product in BCP 47 format. + optional string language_code = 2; + + // Feed label of the product. + optional string feed_label = 3; + + // Merchant-provided id of the product. + optional string offer_id = 4; + + // Title of the product. + optional string title = 5; + + // Brand of the product. + optional string brand = 6; + + // Product category (1st level) in [Google's product + // taxonomy](https://support.google.com/merchants/answer/6324436). + optional string category_l1 = 7; + + // Product category (2nd level) in [Google's product + // taxonomy](https://support.google.com/merchants/answer/6324436). + optional string category_l2 = 8; + + // Product category (3rd level) in [Google's product + // taxonomy](https://support.google.com/merchants/answer/6324436). + optional string category_l3 = 9; + + // Product category (4th level) in [Google's product + // taxonomy](https://support.google.com/merchants/answer/6324436). + optional string category_l4 = 10; + + // Product category (5th level) in [Google's product + // taxonomy](https://support.google.com/merchants/answer/6324436). + optional string category_l5 = 11; + + // Product type (1st level) in merchant's own [product + // taxonomy](https://support.google.com/merchants/answer/6324406). + optional string product_type_l1 = 12; + + // Product type (2nd level) in merchant's own [product + // taxonomy](https://support.google.com/merchants/answer/6324406). + optional string product_type_l2 = 13; + + // Product type (3rd level) in merchant's own [product + // taxonomy](https://support.google.com/merchants/answer/6324406). + optional string product_type_l3 = 14; + + // Product type (4th level) in merchant's own [product + // taxonomy](https://support.google.com/merchants/answer/6324406). + optional string product_type_l4 = 15; + + // Product type (5th level) in merchant's own [product + // taxonomy](https://support.google.com/merchants/answer/6324406). + optional string product_type_l5 = 16; + + // Product price. Absent if the information about the price of the product is + // not available. + google.shopping.type.Price price = 17; + + // [Condition](https://support.google.com/merchants/answer/6324469) of the + // product. + optional string condition = 18; + + // [Availability](https://support.google.com/merchants/answer/6324448) of the + // product. + optional string availability = 19; + + // Normalized [shipping + // label](https://support.google.com/merchants/answer/6324504) specified in + // the data source. + optional string shipping_label = 20; + + // List of Global Trade Item Numbers (GTINs) of the product. + repeated string gtin = 21; + + // Item group id provided by the merchant for grouping variants together. + optional string item_group_id = 22; + + // Link to the processed image of the product, hosted on the Google + // infrastructure. + optional string thumbnail_link = 23; + + // The time the merchant created the product in timestamp seconds. + google.protobuf.Timestamp creation_time = 24; + + // Expiration date for the product, specified on insertion. + google.type.Date expiration_date = 25; + + // Aggregated status. + optional AggregatedReportingContextStatus + aggregated_reporting_context_status = 26; + + // List of item issues for the product. + // + // **This field cannot be used for sorting the results.** + // + // **Only selected attributes of this field (for example, + // `item_issues.severity.aggregated_severity`) can be used for filtering the + // results.** + repeated ItemIssue item_issues = 27; + + // Estimated performance potential compared to highest performing products of + // the merchant. + ClickPotential click_potential = 29; + + // Rank of the product based on its click potential. A product with + // `click_potential_rank` 1 has the highest click potential among the + // merchant's products that fulfill the search query conditions. + optional int64 click_potential_rank = 30; +} + +// Fields available for query in `price_competitiveness_product_view` table. +// +// [Price competitiveness](https://support.google.com/merchants/answer/9626903) +// report. +// +// Values are only set for fields requested explicitly in the request's search +// query. +message PriceCompetitivenessProductView { + // Country of the price benchmark. Represented in the ISO 3166 format. + // + // Required in the `SELECT` clause. + optional string report_country_code = 1; + + // REST ID of the product, in the form of + // `channel~languageCode~feedLabel~offerId`. Can be used to join data with the + // `product_view` table. + // + // Required in the `SELECT` clause. + optional string id = 2; + + // Merchant-provided id of the product. + optional string offer_id = 3; + + // Title of the product. + optional string title = 4; + + // Brand of the product. + optional string brand = 5; + + // Product category (1st level) in [Google's product + // taxonomy](https://support.google.com/merchants/answer/6324436). + optional string category_l1 = 6; + + // Product category (2nd level) in [Google's product + // taxonomy](https://support.google.com/merchants/answer/6324436). + optional string category_l2 = 7; + + // Product category (3rd level) in [Google's product + // taxonomy](https://support.google.com/merchants/answer/6324436). + optional string category_l3 = 8; + + // Product category (4th level) in [Google's product + // taxonomy](https://support.google.com/merchants/answer/6324436). + optional string category_l4 = 9; + + // Product category (5th level) in [Google's product + // taxonomy](https://support.google.com/merchants/answer/6324436). + optional string category_l5 = 10; + + // Product type (1st level) in merchant's own [product + // taxonomy](https://support.google.com/merchants/answer/6324406). + optional string product_type_l1 = 11; + + // Product type (2nd level) in merchant's own [product + // taxonomy](https://support.google.com/merchants/answer/6324406). + optional string product_type_l2 = 12; + + // Product type (3rd level) in merchant's own [product + // taxonomy](https://support.google.com/merchants/answer/6324406). + optional string product_type_l3 = 13; + + // Product type (4th level) in merchant's own [product + // taxonomy](https://support.google.com/merchants/answer/6324406). + optional string product_type_l4 = 14; + + // Product type (5th level) in merchant's own [product + // taxonomy](https://support.google.com/merchants/answer/6324406). + optional string product_type_l5 = 15; + + // Current price of the product. + google.shopping.type.Price price = 16; + + // Latest available price benchmark for the product's catalog in the benchmark + // country. + google.shopping.type.Price benchmark_price = 17; +} + +// Fields available for query in `price_insights_product_view` table. +// +// [Price insights](https://support.google.com/merchants/answer/11916926) +// report. +// +// Values are only set for fields requested explicitly in the request's search +// query. +message PriceInsightsProductView { + // Predicted effectiveness bucket. + // + // Effectiveness indicates which products would benefit most from price + // changes. This rating takes into consideration the performance boost + // predicted by adjusting the sale price and the difference between your + // current price and the suggested price. Price suggestions with `HIGH` + // effectiveness are predicted to drive the largest increase in performance. + enum Effectiveness { + // Effectiveness is unknown. + EFFECTIVENESS_UNSPECIFIED = 0; + + // Effectiveness is low. + LOW = 1; + + // Effectiveness is medium. + MEDIUM = 2; + + // Effectiveness is high. + HIGH = 3; + } + + // REST ID of the product, in the form of + // `channel~languageCode~feedLabel~offerId`. Can be used to join data with the + // `product_view` table. + // + // Required in the `SELECT` clause. + optional string id = 1; + + // Merchant-provided id of the product. + optional string offer_id = 2; + + // Title of the product. + optional string title = 3; + + // Brand of the product. + optional string brand = 4; + + // Product category (1st level) in [Google's product + // taxonomy](https://support.google.com/merchants/answer/6324436). + optional string category_l1 = 5; + + // Product category (2nd level) in [Google's product + // taxonomy](https://support.google.com/merchants/answer/6324436). + optional string category_l2 = 6; + + // Product category (3rd level) in [Google's product + // taxonomy](https://support.google.com/merchants/answer/6324436). + optional string category_l3 = 7; + + // Product category (4th level) in [Google's product + // taxonomy](https://support.google.com/merchants/answer/6324436). + optional string category_l4 = 8; + + // Product category (5th level) in [Google's product + // taxonomy](https://support.google.com/merchants/answer/6324436). + optional string category_l5 = 9; + + // Product type (1st level) in merchant's own [product + // taxonomy](https://support.google.com/merchants/answer/6324406). + optional string product_type_l1 = 10; + + // Product type (2nd level) in merchant's own [product + // taxonomy](https://support.google.com/merchants/answer/6324406). + optional string product_type_l2 = 11; + + // Product type (3rd level) in merchant's own [product + // taxonomy](https://support.google.com/merchants/answer/6324406). + optional string product_type_l3 = 12; + + // Product type (4th level) in merchant's own [product + // taxonomy](https://support.google.com/merchants/answer/6324406). + optional string product_type_l4 = 13; + + // Product type (5th level) in merchant's own [product + // taxonomy](https://support.google.com/merchants/answer/6324406). + optional string product_type_l5 = 14; + + // Current price of the product. + google.shopping.type.Price price = 15; + + // Latest suggested price for the product. + google.shopping.type.Price suggested_price = 16; + + // Predicted change in impressions as a fraction after introducing the + // suggested price compared to current active price. For example, 0.05 is a 5% + // predicted increase in impressions. + optional double predicted_impressions_change_fraction = 17; + + // Predicted change in clicks as a fraction after introducing the + // suggested price compared to current active price. For example, 0.05 is a 5% + // predicted increase in clicks. + optional double predicted_clicks_change_fraction = 18; + + // Predicted change in conversions as a fraction after introducing the + // suggested price compared to current active price. For example, 0.05 is a 5% + // predicted increase in conversions). + optional double predicted_conversions_change_fraction = 19; + + // The predicted effectiveness of applying the price suggestion, bucketed. + Effectiveness effectiveness = 22; +} + +// Fields available for query in `best_sellers_product_cluster_view` table. +// +// [Best sellers](https://support.google.com/merchants/answer/9488679) report +// with top product clusters. A product cluster is a grouping for different +// offers and variants that represent the same product, for example, Google +// Pixel 7. +// +// Values are only set for fields requested explicitly in the request's search +// query. +message BestSellersProductClusterView { + // Status of the product cluster or brand in your inventory. + enum InventoryStatus { + // Not specified. + INVENTORY_STATUS_UNSPECIFIED = 0; + + // You have a product for this product cluster or brand in stock. + IN_STOCK = 1; + + // You have a product for this product cluster or brand in inventory but it + // is currently out of stock. + OUT_OF_STOCK = 2; + + // You do not have a product for this product cluster or brand in inventory. + NOT_IN_INVENTORY = 3; + } + + // Report date. The value of this field can only be one of the following: + // + // * The first day of the week (Monday) for weekly reports, + // * The first day of the month for monthly reports. + // + // Required in the `SELECT` clause. If a `WHERE` condition on `report_date` is + // not specified in the query, the latest available weekly or monthly report + // is returned. + google.type.Date report_date = 1; + + // Granularity of the report. The ranking can be done over a week or a month + // timeframe. + // + // Required in the `SELECT` clause. Condition on `report_granularity` is + // required in the `WHERE` clause. + optional ReportGranularity.ReportGranularityEnum report_granularity = 2; + + // Country where the ranking is calculated. Represented in the ISO 3166 + // format. + // + // Required in the `SELECT` clause. Condition on `report_country_code` is + // required in the `WHERE` clause. + optional string report_country_code = 3; + + // Google product category ID to calculate the ranking for, represented in + // [Google's product + // taxonomy](https://support.google.com/merchants/answer/6324436). + // + // Required in the `SELECT` clause. If a `WHERE` condition on + // `report_category_id` is not specified in the query, rankings for all + // top-level categories are returned. + optional int64 report_category_id = 4; + + // Title of the product cluster. + optional string title = 6; + + // Brand of the product cluster. + optional string brand = 7; + + // Product category (1st level) of the product cluster, represented in + // [Google's product + // taxonomy](https://support.google.com/merchants/answer/6324436). + optional string category_l1 = 8; + + // Product category (2nd level) of the product cluster, represented in + // [Google's product + // taxonomy](https://support.google.com/merchants/answer/6324436). + optional string category_l2 = 9; + + // Product category (3rd level) of the product cluster, represented in + // [Google's product + // taxonomy](https://support.google.com/merchants/answer/6324436). + optional string category_l3 = 10; + + // Product category (4th level) of the product cluster, represented in + // [Google's product + // taxonomy](https://support.google.com/merchants/answer/6324436). + optional string category_l4 = 11; + + // Product category (5th level) of the product cluster, represented in + // [Google's product + // taxonomy](https://support.google.com/merchants/answer/6324436). + optional string category_l5 = 12; + + // GTINs of example variants of the product cluster. + repeated string variant_gtins = 13; + + // Whether the product cluster is `IN_STOCK` in your product data source in at + // least one of the countries, `OUT_OF_STOCK` in your product data source in + // all countries, or `NOT_IN_INVENTORY` at all. + // + // The field doesn't take the Best sellers report country filter into account. + optional InventoryStatus inventory_status = 14; + + // Whether there is at least one product of the brand currently `IN_STOCK` in + // your product data source in at least one of the countries, all products are + // `OUT_OF_STOCK` in your product data source in all countries, or + // `NOT_IN_INVENTORY`. + // + // The field doesn't take the Best sellers report country filter into account. + optional InventoryStatus brand_inventory_status = 15; + + // Popularity of the product cluster on Ads and organic surfaces, in the + // selected category and country, based on the estimated number of units sold. + optional int64 rank = 16; + + // Popularity rank in the previous week or month. + optional int64 previous_rank = 17; + + // Estimated demand in relation to the product cluster with the highest + // popularity rank in the same category and country. + optional RelativeDemand.RelativeDemandEnum relative_demand = 18; + + // Estimated demand in relation to the product cluster with the highest + // popularity rank in the same category and country in the previous week or + // month. + optional RelativeDemand.RelativeDemandEnum previous_relative_demand = 19; + + // Change in the estimated demand. Whether it rose, sank or remained flat. + optional RelativeDemandChangeType.RelativeDemandChangeTypeEnum + relative_demand_change = 20; +} + +// Fields available for query in `best_sellers_brand_view` table. +// +// [Best sellers](https://support.google.com/merchants/answer/9488679) report +// with top brands. +// +// Values are only set for fields requested explicitly in the request's search +// query. +message BestSellersBrandView { + // Report date. The value of this field can only be one of the following: + // + // * The first day of the week (Monday) for weekly reports, + // * The first day of the month for monthly reports. + // + // Required in the `SELECT` clause. If a `WHERE` condition on `report_date` is + // not specified in the query, the latest available weekly or monthly report + // is returned. + google.type.Date report_date = 1; + + // Granularity of the report. The ranking can be done over a week or a month + // timeframe. + // + // Required in the `SELECT` clause. Condition on `report_granularity` is + // required in the `WHERE` clause. + optional ReportGranularity.ReportGranularityEnum report_granularity = 2; + + // Country where the ranking is calculated. Represented in the ISO 3166 + // format. + // + // Required in the `SELECT` clause. Condition on `report_country_code` is + // required in the `WHERE` clause. + optional string report_country_code = 3; + + // Google product category ID to calculate the ranking for, represented in + // [Google's product + // taxonomy](https://support.google.com/merchants/answer/6324436). + // + // Required in the `SELECT` clause. If a `WHERE` condition on + // `report_category_id` is not specified in the query, rankings for all + // top-level categories are returned. + optional int64 report_category_id = 4; + + // Name of the brand. + optional string brand = 6; + + // Popularity of the brand on Ads and organic surfaces, in the selected + // category and country, based on the estimated number of units sold. + optional int64 rank = 7; + + // Popularity rank in the previous week or month. + optional int64 previous_rank = 8; + + // Estimated demand in relation to the brand with the highest popularity rank + // in the same category and country. + optional RelativeDemand.RelativeDemandEnum relative_demand = 9; + + // Estimated demand in relation to the brand with the highest popularity rank + // in the same category and country in the previous week or month. + optional RelativeDemand.RelativeDemandEnum previous_relative_demand = 10; + + // Change in the estimated demand. Whether it rose, sank or remained flat. + optional RelativeDemandChangeType.RelativeDemandChangeTypeEnum + relative_demand_change = 11; +} + +// Fields available for query in `non_product_performance_view` table. +// +// Performance data on images and online store links leading to your non-product +// pages. This includes performance metrics (for example, `clicks`) +// and dimensions according to which performance metrics are segmented (for +// example, `date`). +// +// Segment fields cannot be selected in queries without also selecting at least +// one metric field. +// +// Values are only set for fields requested explicitly in the request's search +// query. +message NonProductPerformanceView { + // Date in the merchant timezone to which metrics apply. Segment. + // + // Condition on `date` is required in the `WHERE` clause. + google.type.Date date = 1; + + // First day of the week (Monday) of the metrics date in the merchant + // timezone. Segment. + google.type.Date week = 2; + + // Number of clicks on images and online store links leading to your + // non-product pages. Metric. + optional int64 clicks = 3; + + // Number of times images and online store links leading to your non-product + // pages were shown. Metric. + optional int64 impressions = 4; + + // Click-through rate - the number of clicks (`clicks`) divided by the number + // of impressions (`impressions`) of images and online store links leading to + // your non-product pages. Metric. + optional double click_through_rate = 5; +} + +// Fields available for query in `competitive_visibility_competitor_view` table. +// +// [Competitive +// visibility](https://support.google.com/merchants/answer/11366442) report with +// businesses with similar visibility. +// +// Values are only set for fields requested explicitly in the request's search +// query. +message CompetitiveVisibilityCompetitorView { + // Date of this row. + // + // A condition on `date` is required in the `WHERE` clause. + google.type.Date date = 1; + + // Domain of your competitor or your domain, if 'is_your_domain' is true. + // + // Required in the `SELECT` clause. Cannot be filtered on in the 'WHERE' + // clause. + optional string domain = 2; + + // True if this row contains data for your domain. + // + // Cannot be filtered on in the 'WHERE' clause. + optional bool is_your_domain = 3; + + // Country where impressions appeared. + // + // Required in the `SELECT` clause. A condition on `report_country_code` is + // required in the `WHERE` clause. + optional string report_country_code = 4; + + // Google product category ID to calculate the report for, represented in + // [Google's product + // taxonomy](https://support.google.com/merchants/answer/6324436). + // + // Required in the `SELECT` clause. A condition on `report_category_id` is + // required in the `WHERE` clause. + optional int64 report_category_id = 5; + + // Traffic source of impressions. + // + // Required in the `SELECT` clause. + optional TrafficSource.TrafficSourceEnum traffic_source = 6; + + // Position of the domain in the similar businesses ranking for the selected + // keys (`date`, `report_category_id`, `report_country_code`, + // `traffic_source`) based on impressions. 1 is the highest. + // + // Cannot be filtered on in the 'WHERE' clause. + optional int64 rank = 7; + + // [Ads / organic ratio] + // (https://support.google.com/merchants/answer/11366442#zippy=%2Cads-free-ratio) + // shows how often the domain receives impressions from Shopping ads compared + // to organic traffic. The number is rounded and bucketed. + // + // Cannot be filtered on in the 'WHERE' clause. + optional double ads_organic_ratio = 8; + + // [Page overlap rate] + // (https://support.google.com/merchants/answer/11366442#zippy=%2Cpage-overlap-rate) + // shows how frequently competing retailers’ offers are shown together with + // your offers on the same page. + // + // Cannot be filtered on in the 'WHERE' clause. + optional double page_overlap_rate = 9; + + // [Higher position rate] + // (https://support.google.com/merchants/answer/11366442#zippy=%2Chigher-position-rate) + // shows how often a competitor’s offer got placed in a higher position on the + // page than your offer. + // + // Cannot be filtered on in the 'WHERE' clause. + optional double higher_position_rate = 10; + + // [Relative visibility] + // (https://support.google.com/merchants/answer/11366442#zippy=%2Crelative-visibility) + // shows how often your competitors’ offers are shown compared to your offers. + // In other words, this is the number of displayed impressions of a competitor + // retailer divided by the number of your displayed impressions during a + // selected time range for a selected product category and country. + // + // Cannot be filtered on in the 'WHERE' clause. + optional double relative_visibility = 11; +} + +// Fields available for query in `competitive_visibility_top_merchant_view` +// table. +// +// [Competitive +// visibility](https://support.google.com/merchants/answer/11366442) report with +// business with highest visibility. +// +// Values are only set for fields requested explicitly in the request's search +// query. +message CompetitiveVisibilityTopMerchantView { + // Date of this row. + // + // Cannot be selected in the `SELECT` clause. A condition on `date` is + // required in the `WHERE` clause. + google.type.Date date = 1; + + // Domain of your competitor or your domain, if 'is_your_domain' is true. + // + // Required in the `SELECT` clause. Cannot be filtered on in the 'WHERE' + // clause. + optional string domain = 2; + + // True if this row contains data for your domain. + // + // Cannot be filtered on in the 'WHERE' clause. + optional bool is_your_domain = 3; + + // Country where impressions appeared. + // + // Required in the `SELECT` clause. A condition on `report_country_code` is + // required in the `WHERE` clause. + optional string report_country_code = 4; + + // Google product category ID to calculate the report for, represented in + // [Google's product + // taxonomy](https://support.google.com/merchants/answer/6324436). + // + // Required in the `SELECT` clause. A condition on `report_category_id` is + // required in the `WHERE` clause. + optional int64 report_category_id = 5; + + // Traffic source of impressions. + // + // Required in the `SELECT` clause. + optional TrafficSource.TrafficSourceEnum traffic_source = 6; + + // Position of the domain in the top merchants ranking for the selected keys + // (`date`, `report_category_id`, `report_country_code`, `traffic_source`) + // based on impressions. 1 is the highest. + // + // Cannot be filtered on in the 'WHERE' clause. + optional int64 rank = 7; + + // [Ads / organic ratio] + // (https://support.google.com/merchants/answer/11366442#zippy=%2Cads-free-ratio) + // shows how often the domain receives impressions from Shopping ads compared + // to organic traffic. The number is rounded and bucketed. + // + // Cannot be filtered on in the 'WHERE' clause. + optional double ads_organic_ratio = 8; + + // [Page overlap rate] + // (https://support.google.com/merchants/answer/11366442#zippy=%2Cpage-overlap-rate) + // shows how frequently competing retailers’ offers are shown together with + // your offers on the same page. + // + // Cannot be filtered on in the 'WHERE' clause. + optional double page_overlap_rate = 9; + + // [Higher position rate] + // (https://support.google.com/merchants/answer/11366442#zippy=%2Chigher-position-rate) + // shows how often a competitor’s offer got placed in a higher position on the + // page than your offer. + // + // Cannot be filtered on in the 'WHERE' clause. + optional double higher_position_rate = 10; +} + +// Fields available for query in `competitive_visibility_benchmark_view` table. +// +// [Competitive +// visibility](https://support.google.com/merchants/answer/11366442) report with +// the category benchmark. +// +// Values are only set for fields requested explicitly in the request's search +// query. +message CompetitiveVisibilityBenchmarkView { + // Date of this row. + // + // Required in the `SELECT` clause. A condition on `date` is required in the + // `WHERE` clause. + google.type.Date date = 1; + + // Country where impressions appeared. + // + // Required in the `SELECT` clause. A condition on `report_country_code` is + // required in the `WHERE` clause. + optional string report_country_code = 2; + + // Google product category ID to calculate the report for, represented in + // [Google's product + // taxonomy](https://support.google.com/merchants/answer/6324436). + // + // Required in the `SELECT` clause. A condition on `report_category_id` is + // required in the `WHERE` clause. + optional int64 report_category_id = 3; + + // Traffic source of impressions. + // + // Required in the `SELECT` clause. + optional TrafficSource.TrafficSourceEnum traffic_source = 4; + + // Change in visibility based on impressions for your domain with respect to + // the start of the selected time range (or first day with non-zero + // impressions). + // + // Cannot be filtered on in the 'WHERE' clause. + optional double your_domain_visibility_trend = 5; + + // Change in visibility based on impressions with respect to the start of the + // selected time range (or first day with non-zero impressions) for a + // combined set of merchants with highest visibility approximating the + // market. + // + // Cannot be filtered on in the 'WHERE' clause. + optional double category_benchmark_visibility_trend = 6; +} + +// Marketing method used to promote your products on Google (organic versus +// ads). +message MarketingMethod { + // Marketing method values. + enum MarketingMethodEnum { + // Not specified. + MARKETING_METHOD_ENUM_UNSPECIFIED = 0; + + // Organic marketing. + ORGANIC = 1; + + // Ads-based marketing. + ADS = 2; + } +} + +// Granularity of the Best sellers report. Best sellers reports are computed +// over a week and a month timeframe. +message ReportGranularity { + // Report granularity values. + enum ReportGranularityEnum { + // Not specified. + REPORT_GRANULARITY_ENUM_UNSPECIFIED = 0; + + // Report is computed over a week timeframe. + WEEKLY = 1; + + // Report is computed over a month timeframe. + MONTHLY = 2; + } +} + +// Relative demand of a product cluster or brand in the Best sellers report. +message RelativeDemand { + // Relative demand values. + enum RelativeDemandEnum { + // Not specified. + RELATIVE_DEMAND_ENUM_UNSPECIFIED = 0; + + // Demand is 0-5% of the demand of the highest ranked product cluster or + // brand. + VERY_LOW = 10; + + // Demand is 6-10% of the demand of the highest ranked product cluster or + // brand. + LOW = 20; + + // Demand is 11-20% of the demand of the highest ranked product cluster or + // brand. + MEDIUM = 30; + + // Demand is 21-50% of the demand of the highest ranked product cluster or + // brand. + HIGH = 40; + + // Demand is 51-100% of the demand of the highest ranked product cluster or + // brand. + VERY_HIGH = 50; + } +} + +// Relative demand of a product cluster or brand in the Best sellers report +// compared to the previous time period. +message RelativeDemandChangeType { + // Relative demand change type values. + enum RelativeDemandChangeTypeEnum { + // Not specified. + RELATIVE_DEMAND_CHANGE_TYPE_ENUM_UNSPECIFIED = 0; + + // Relative demand is lower than the previous time period. + SINKER = 1; + + // Relative demand is equal to the previous time period. + FLAT = 2; + + // Relative demand is higher than the previous time period. + RISER = 3; + } +} + +// Traffic source of impressions in the Competitive visibility report. +message TrafficSource { + // Traffic source values. + enum TrafficSourceEnum { + // Not specified. + TRAFFIC_SOURCE_ENUM_UNSPECIFIED = 0; + + // Organic traffic. + ORGANIC = 1; + + // Traffic from ads. + ADS = 2; + + // Organic and ads traffic. + ALL = 3; + } +} + +// Fields available for query in `youtube_creator_performance_view` table. +// +// [YouTube creator performance +// data](https://support.google.com/merchants/answer/14947975) for your account. +// This data is only available if an account is enrolled in the [YouTube +// Shopping Affiliate +// program](https://support.google.com/merchants/answer/14815513?hl=en). +// +// Values are only set for fields requested explicitly in the request's search +// query. +message YoutubeCreatorPerformanceView { + // Date in the merchant timezone to which metrics apply. Segment. + // + // Condition on `date` is required in the `WHERE` clause. + google.type.Date date = 1; + + // The title of the creator channel. + optional string title = 2; + + // The id for the creator channel. + optional string channel_id = 3; + + // The gross sales amount, before refunds. + optional google.shopping.type.Price gross_sales = 4; + + // The commissions amount (pending and paid). + optional google.shopping.type.Price commissions = 5; + + // The number of orders. + optional int64 orders = 6; + + // The number of YouTube views. + optional int64 views = 7; + + // The number of product clicks. + optional int64 clicks = 8; + + // The net sales amount (includes both purchase and refunds). + optional google.shopping.type.Price net_sales = 9; +} + +// Fields available for query in `youtube_content_performance_view` table. +// +// [YouTube content performance +// data](https://support.google.com/merchants/answer/14947975) for your account. +// This data is only available if an account is enrolled in the [YouTube +// Shopping Affiliate +// program](https://support.google.com/merchants/answer/14815513?hl=en). +// +// Values are only set for fields requested explicitly in the request's search +// query. +message YoutubeContentPerformanceView { + // Date in the merchant timezone to which metrics apply. Segment. + // + // Condition on `date` is required in the `WHERE` clause. + google.type.Date date = 1; + + // The video title. + optional string title = 2; + + // The video id. + optional string video_id = 3; + + // The channel title. + optional string channel_title = 4; + + // The channel id. + optional string channel_id = 5; + + // The gross sales amount, before refunds. + optional google.shopping.type.Price gross_sales = 6; + + // The commissions amount (pending and paid). + optional google.shopping.type.Price commissions = 7; + + // The number of orders. + optional int64 orders = 8; + + // The number of YouTube views. + optional int64 views = 9; + + // The number of product clicks. + optional int64 clicks = 10; + + // The net sales amount (includes both purchase and refunds). + optional google.shopping.type.Price net_sales = 11; +} + +// Fields available for query in `youtube_product_performance_view` table. +// +// [YouTube product performance +// data](https://support.google.com/merchants/answer/14947975) for your account. +// This data is only available if an account is enrolled in the [YouTube +// Shopping Affiliate +// program](https://support.google.com/merchants/answer/14815513?hl=en). +// +// Values are only set for fields requested explicitly in the request's search +// query. +message YoutubeProductPerformanceView { + // Date in the merchant timezone to which metrics apply. Segment. + // + // Condition on `date` is required in the `WHERE` clause. + google.type.Date date = 1; + + // The product title. + optional string title = 2; + + // The merchant-provided product id. + optional string offer_id = 3; + + // The number of distinct videos the product was shown on. + optional int64 distinct_video_count = 4; + + // The number of distinct creator channels the product was shown on. + optional int64 distinct_creator_count = 5; + + // The gross sales amount, before refunds. + optional google.shopping.type.Price gross_sales = 6; + + // The commissions amount (pending and paid). + optional google.shopping.type.Price commissions = 7; + + // The number of orders. + optional int64 orders = 8; + + // The number of YouTube views. + optional int64 views = 9; + + // The number of product clicks. + optional int64 clicks = 10; + + // The net sales amount (includes both purchase and refunds). + optional google.shopping.type.Price net_sales = 11; +} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/pom.xml b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/pom.xml index 74f71ae95c69..0d1ef20fab4b 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/pom.xml +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-reports-v1beta - 0.43.0 + 0.44.0 proto-google-shopping-merchant-reports-v1beta Proto library for google-shopping-merchant-reports com.google.shopping google-shopping-merchant-reports-parent - 0.43.0 + 0.44.0 diff --git a/java-shopping-merchant-reports/samples/snippets/generated/com/google/shopping/merchant/reports/v1alpha/reportservice/create/SyncCreateSetCredentialsProvider.java b/java-shopping-merchant-reports/samples/snippets/generated/com/google/shopping/merchant/reports/v1alpha/reportservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..e86d38fc794d --- /dev/null +++ b/java-shopping-merchant-reports/samples/snippets/generated/com/google/shopping/merchant/reports/v1alpha/reportservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.reports.v1alpha.samples; + +// [START merchantapi_v1alpha_generated_ReportService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.shopping.merchant.reports.v1alpha.ReportServiceClient; +import com.google.shopping.merchant.reports.v1alpha.ReportServiceSettings; +import com.google.shopping.merchant.reports.v1alpha.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() 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 + ReportServiceSettings reportServiceSettings = + ReportServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + ReportServiceClient reportServiceClient = ReportServiceClient.create(reportServiceSettings); + } +} +// [END merchantapi_v1alpha_generated_ReportService_Create_SetCredentialsProvider_sync] diff --git a/java-shopping-merchant-reports/samples/snippets/generated/com/google/shopping/merchant/reports/v1alpha/reportservice/create/SyncCreateSetEndpoint.java b/java-shopping-merchant-reports/samples/snippets/generated/com/google/shopping/merchant/reports/v1alpha/reportservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..36044ee3cab6 --- /dev/null +++ b/java-shopping-merchant-reports/samples/snippets/generated/com/google/shopping/merchant/reports/v1alpha/reportservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,41 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.reports.v1alpha.samples; + +// [START merchantapi_v1alpha_generated_ReportService_Create_SetEndpoint_sync] +import com.google.shopping.merchant.reports.v1alpha.ReportServiceClient; +import com.google.shopping.merchant.reports.v1alpha.ReportServiceSettings; +import com.google.shopping.merchant.reports.v1alpha.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() 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 + ReportServiceSettings reportServiceSettings = + ReportServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + ReportServiceClient reportServiceClient = ReportServiceClient.create(reportServiceSettings); + } +} +// [END merchantapi_v1alpha_generated_ReportService_Create_SetEndpoint_sync] diff --git a/java-shopping-merchant-reports/samples/snippets/generated/com/google/shopping/merchant/reports/v1alpha/reportservice/create/SyncCreateUseHttpJsonTransport.java b/java-shopping-merchant-reports/samples/snippets/generated/com/google/shopping/merchant/reports/v1alpha/reportservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..036ed3d61230 --- /dev/null +++ b/java-shopping-merchant-reports/samples/snippets/generated/com/google/shopping/merchant/reports/v1alpha/reportservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.reports.v1alpha.samples; + +// [START merchantapi_v1alpha_generated_ReportService_Create_UseHttpJsonTransport_sync] +import com.google.shopping.merchant.reports.v1alpha.ReportServiceClient; +import com.google.shopping.merchant.reports.v1alpha.ReportServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() 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 + ReportServiceSettings reportServiceSettings = + ReportServiceSettings.newHttpJsonBuilder().build(); + ReportServiceClient reportServiceClient = ReportServiceClient.create(reportServiceSettings); + } +} +// [END merchantapi_v1alpha_generated_ReportService_Create_UseHttpJsonTransport_sync] diff --git a/java-shopping-merchant-reports/samples/snippets/generated/com/google/shopping/merchant/reports/v1alpha/reportservice/search/AsyncSearch.java b/java-shopping-merchant-reports/samples/snippets/generated/com/google/shopping/merchant/reports/v1alpha/reportservice/search/AsyncSearch.java new file mode 100644 index 000000000000..228b1fcda04b --- /dev/null +++ b/java-shopping-merchant-reports/samples/snippets/generated/com/google/shopping/merchant/reports/v1alpha/reportservice/search/AsyncSearch.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.reports.v1alpha.samples; + +// [START merchantapi_v1alpha_generated_ReportService_Search_async] +import com.google.api.core.ApiFuture; +import com.google.shopping.merchant.reports.v1alpha.ReportRow; +import com.google.shopping.merchant.reports.v1alpha.ReportServiceClient; +import com.google.shopping.merchant.reports.v1alpha.SearchRequest; + +public class AsyncSearch { + + public static void main(String[] args) throws Exception { + asyncSearch(); + } + + public static void asyncSearch() 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 (ReportServiceClient reportServiceClient = ReportServiceClient.create()) { + SearchRequest request = + SearchRequest.newBuilder() + .setParent("parent-995424086") + .setQuery("query107944136") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = reportServiceClient.searchPagedCallable().futureCall(request); + // Do something. + for (ReportRow element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END merchantapi_v1alpha_generated_ReportService_Search_async] diff --git a/java-shopping-merchant-reports/samples/snippets/generated/com/google/shopping/merchant/reports/v1alpha/reportservice/search/AsyncSearchPaged.java b/java-shopping-merchant-reports/samples/snippets/generated/com/google/shopping/merchant/reports/v1alpha/reportservice/search/AsyncSearchPaged.java new file mode 100644 index 000000000000..b1a6e9962bec --- /dev/null +++ b/java-shopping-merchant-reports/samples/snippets/generated/com/google/shopping/merchant/reports/v1alpha/reportservice/search/AsyncSearchPaged.java @@ -0,0 +1,61 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.reports.v1alpha.samples; + +// [START merchantapi_v1alpha_generated_ReportService_Search_Paged_async] +import com.google.common.base.Strings; +import com.google.shopping.merchant.reports.v1alpha.ReportRow; +import com.google.shopping.merchant.reports.v1alpha.ReportServiceClient; +import com.google.shopping.merchant.reports.v1alpha.SearchRequest; +import com.google.shopping.merchant.reports.v1alpha.SearchResponse; + +public class AsyncSearchPaged { + + public static void main(String[] args) throws Exception { + asyncSearchPaged(); + } + + public static void asyncSearchPaged() 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 (ReportServiceClient reportServiceClient = ReportServiceClient.create()) { + SearchRequest request = + SearchRequest.newBuilder() + .setParent("parent-995424086") + .setQuery("query107944136") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + SearchResponse response = reportServiceClient.searchCallable().call(request); + for (ReportRow element : response.getResultsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END merchantapi_v1alpha_generated_ReportService_Search_Paged_async] diff --git a/java-shopping-merchant-reports/samples/snippets/generated/com/google/shopping/merchant/reports/v1alpha/reportservice/search/SyncSearch.java b/java-shopping-merchant-reports/samples/snippets/generated/com/google/shopping/merchant/reports/v1alpha/reportservice/search/SyncSearch.java new file mode 100644 index 000000000000..a1dee85d5ff3 --- /dev/null +++ b/java-shopping-merchant-reports/samples/snippets/generated/com/google/shopping/merchant/reports/v1alpha/reportservice/search/SyncSearch.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.reports.v1alpha.samples; + +// [START merchantapi_v1alpha_generated_ReportService_Search_sync] +import com.google.shopping.merchant.reports.v1alpha.ReportRow; +import com.google.shopping.merchant.reports.v1alpha.ReportServiceClient; +import com.google.shopping.merchant.reports.v1alpha.SearchRequest; + +public class SyncSearch { + + public static void main(String[] args) throws Exception { + syncSearch(); + } + + public static void syncSearch() 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 (ReportServiceClient reportServiceClient = ReportServiceClient.create()) { + SearchRequest request = + SearchRequest.newBuilder() + .setParent("parent-995424086") + .setQuery("query107944136") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (ReportRow element : reportServiceClient.search(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END merchantapi_v1alpha_generated_ReportService_Search_sync] diff --git a/java-shopping-merchant-reports/samples/snippets/generated/com/google/shopping/merchant/reports/v1alpha/reportservice/search/SyncSearchString.java b/java-shopping-merchant-reports/samples/snippets/generated/com/google/shopping/merchant/reports/v1alpha/reportservice/search/SyncSearchString.java new file mode 100644 index 000000000000..8c0f3a58ca92 --- /dev/null +++ b/java-shopping-merchant-reports/samples/snippets/generated/com/google/shopping/merchant/reports/v1alpha/reportservice/search/SyncSearchString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.reports.v1alpha.samples; + +// [START merchantapi_v1alpha_generated_ReportService_Search_String_sync] +import com.google.shopping.merchant.reports.v1alpha.ReportRow; +import com.google.shopping.merchant.reports.v1alpha.ReportServiceClient; + +public class SyncSearchString { + + public static void main(String[] args) throws Exception { + syncSearchString(); + } + + public static void syncSearchString() 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 (ReportServiceClient reportServiceClient = ReportServiceClient.create()) { + String parent = "parent-995424086"; + for (ReportRow element : reportServiceClient.search(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END merchantapi_v1alpha_generated_ReportService_Search_String_sync] diff --git a/java-shopping-merchant-reports/samples/snippets/generated/com/google/shopping/merchant/reports/v1alpha/reportservicesettings/search/SyncSearch.java b/java-shopping-merchant-reports/samples/snippets/generated/com/google/shopping/merchant/reports/v1alpha/reportservicesettings/search/SyncSearch.java new file mode 100644 index 000000000000..405c823fbcee --- /dev/null +++ b/java-shopping-merchant-reports/samples/snippets/generated/com/google/shopping/merchant/reports/v1alpha/reportservicesettings/search/SyncSearch.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.reports.v1alpha.samples; + +// [START merchantapi_v1alpha_generated_ReportServiceSettings_Search_sync] +import com.google.shopping.merchant.reports.v1alpha.ReportServiceSettings; +import java.time.Duration; + +public class SyncSearch { + + public static void main(String[] args) throws Exception { + syncSearch(); + } + + public static void syncSearch() 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 + ReportServiceSettings.Builder reportServiceSettingsBuilder = ReportServiceSettings.newBuilder(); + reportServiceSettingsBuilder + .searchSettings() + .setRetrySettings( + reportServiceSettingsBuilder + .searchSettings() + .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()); + ReportServiceSettings reportServiceSettings = reportServiceSettingsBuilder.build(); + } +} +// [END merchantapi_v1alpha_generated_ReportServiceSettings_Search_sync] diff --git a/java-shopping-merchant-reports/samples/snippets/generated/com/google/shopping/merchant/reports/v1alpha/stub/reportservicestubsettings/search/SyncSearch.java b/java-shopping-merchant-reports/samples/snippets/generated/com/google/shopping/merchant/reports/v1alpha/stub/reportservicestubsettings/search/SyncSearch.java new file mode 100644 index 000000000000..0a9674acc65d --- /dev/null +++ b/java-shopping-merchant-reports/samples/snippets/generated/com/google/shopping/merchant/reports/v1alpha/stub/reportservicestubsettings/search/SyncSearch.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.shopping.merchant.reports.v1alpha.stub.samples; + +// [START merchantapi_v1alpha_generated_ReportServiceStubSettings_Search_sync] +import com.google.shopping.merchant.reports.v1alpha.stub.ReportServiceStubSettings; +import java.time.Duration; + +public class SyncSearch { + + public static void main(String[] args) throws Exception { + syncSearch(); + } + + public static void syncSearch() 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 + ReportServiceStubSettings.Builder reportServiceSettingsBuilder = + ReportServiceStubSettings.newBuilder(); + reportServiceSettingsBuilder + .searchSettings() + .setRetrySettings( + reportServiceSettingsBuilder + .searchSettings() + .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()); + ReportServiceStubSettings reportServiceSettings = reportServiceSettingsBuilder.build(); + } +} +// [END merchantapi_v1alpha_generated_ReportServiceStubSettings_Search_sync] diff --git a/java-shopping-merchant-reviews/CHANGELOG.md b/java-shopping-merchant-reviews/CHANGELOG.md index 72b1223f0ab0..ecad9cddb0d5 100644 --- a/java-shopping-merchant-reviews/CHANGELOG.md +++ b/java-shopping-merchant-reviews/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## 0.14.0 (2025-07-11) + +### Features + +* new module for merchant-reports-v1alpha ([#11672](https://github.com/googleapis/google-cloud-java/issues/11672)) ([e611ec2](https://github.com/googleapis/google-cloud-java/commit/e611ec22adb990a3ca6b2785b183618231309b92)) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.13.0 (2025-06-25) ### Dependencies diff --git a/java-shopping-merchant-reviews/README.md b/java-shopping-merchant-reviews/README.md index dec4b6dc738e..c24b953f9110 100644 --- a/java-shopping-merchant-reviews/README.md +++ b/java-shopping-merchant-reviews/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-reviews - 0.12.0 + 0.13.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-reviews:0.12.0' +implementation 'com.google.shopping:google-shopping-merchant-reviews:0.13.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-reviews" % "0.12.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-reviews" % "0.13.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-reviews.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reviews/0.12.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reviews/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-shopping-merchant-reviews/google-shopping-merchant-reviews-bom/pom.xml b/java-shopping-merchant-reviews/google-shopping-merchant-reviews-bom/pom.xml index e465f38f76bb..aa4a3f2d8d53 100644 --- a/java-shopping-merchant-reviews/google-shopping-merchant-reviews-bom/pom.xml +++ b/java-shopping-merchant-reviews/google-shopping-merchant-reviews-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-reviews-bom - 0.13.0 + 0.14.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.shopping google-shopping-merchant-reviews - 0.13.0 + 0.14.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-reviews-v1beta - 0.13.0 + 0.14.0 com.google.shopping.api.grpc proto-google-shopping-merchant-reviews-v1beta - 0.13.0 + 0.14.0 diff --git a/java-shopping-merchant-reviews/google-shopping-merchant-reviews/pom.xml b/java-shopping-merchant-reviews/google-shopping-merchant-reviews/pom.xml index cc2650067012..99b68faa75ed 100644 --- a/java-shopping-merchant-reviews/google-shopping-merchant-reviews/pom.xml +++ b/java-shopping-merchant-reviews/google-shopping-merchant-reviews/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-reviews - 0.13.0 + 0.14.0 jar Google Merchant API Merchant API Programmatically manage your Merchant Center Accounts. com.google.shopping google-shopping-merchant-reviews-parent - 0.13.0 + 0.14.0 google-shopping-merchant-reviews diff --git a/java-shopping-merchant-reviews/grpc-google-shopping-merchant-reviews-v1beta/pom.xml b/java-shopping-merchant-reviews/grpc-google-shopping-merchant-reviews-v1beta/pom.xml index 8fec64cfbb1a..79a696dc9f86 100644 --- a/java-shopping-merchant-reviews/grpc-google-shopping-merchant-reviews-v1beta/pom.xml +++ b/java-shopping-merchant-reviews/grpc-google-shopping-merchant-reviews-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-reviews-v1beta - 0.13.0 + 0.14.0 grpc-google-shopping-merchant-reviews-v1beta GRPC library for google-shopping-merchant-reviews com.google.shopping google-shopping-merchant-reviews-parent - 0.13.0 + 0.14.0 diff --git a/java-shopping-merchant-reviews/pom.xml b/java-shopping-merchant-reviews/pom.xml index 841bdc34bea2..74a6732fe589 100644 --- a/java-shopping-merchant-reviews/pom.xml +++ b/java-shopping-merchant-reviews/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-reviews-parent pom - 0.13.0 + 0.14.0 Google Merchant API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.shopping google-shopping-merchant-reviews - 0.13.0 + 0.14.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-reviews-v1beta - 0.13.0 + 0.14.0 com.google.shopping.api.grpc proto-google-shopping-merchant-reviews-v1beta - 0.13.0 + 0.14.0 diff --git a/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/pom.xml b/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/pom.xml index 4973a9a4249b..cccf23557f0c 100644 --- a/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/pom.xml +++ b/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-reviews-v1beta - 0.13.0 + 0.14.0 proto-google-shopping-merchant-reviews-v1beta Proto library for google-shopping-merchant-reviews com.google.shopping google-shopping-merchant-reviews-parent - 0.13.0 + 0.14.0 diff --git a/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/MerchantReview.java b/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/MerchantReview.java index 3201ee4a07fd..5c111b670d87 100644 --- a/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/MerchantReview.java +++ b/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/MerchantReview.java @@ -251,7 +251,7 @@ public com.google.shopping.merchant.reviews.v1beta.MerchantReviewAttributes getA * * *
      -   * Required. A list of custom (merchant-provided) attributes. It can also be
      +   * Optional. A list of custom (merchant-provided) attributes. It can also be
          * used for submitting any attribute of the data specification in its generic
          * form (for example,
          * `{ "name": "size type", "value": "regular" }`).
      @@ -265,7 +265,7 @@ public com.google.shopping.merchant.reviews.v1beta.MerchantReviewAttributes getA
          * 
      * * - * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -277,7 +277,7 @@ public java.util.List getCustomAttribu * * *
      -   * Required. A list of custom (merchant-provided) attributes. It can also be
      +   * Optional. A list of custom (merchant-provided) attributes. It can also be
          * used for submitting any attribute of the data specification in its generic
          * form (for example,
          * `{ "name": "size type", "value": "regular" }`).
      @@ -291,7 +291,7 @@ public java.util.List getCustomAttribu
          * 
      * * - * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -304,7 +304,7 @@ public java.util.List getCustomAttribu * * *
      -   * Required. A list of custom (merchant-provided) attributes. It can also be
      +   * Optional. A list of custom (merchant-provided) attributes. It can also be
          * used for submitting any attribute of the data specification in its generic
          * form (for example,
          * `{ "name": "size type", "value": "regular" }`).
      @@ -318,7 +318,7 @@ public java.util.List getCustomAttribu
          * 
      * * - * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -330,7 +330,7 @@ public int getCustomAttributesCount() { * * *
      -   * Required. A list of custom (merchant-provided) attributes. It can also be
      +   * Optional. A list of custom (merchant-provided) attributes. It can also be
          * used for submitting any attribute of the data specification in its generic
          * form (for example,
          * `{ "name": "size type", "value": "regular" }`).
      @@ -344,7 +344,7 @@ public int getCustomAttributesCount() {
          * 
      * * - * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -356,7 +356,7 @@ public com.google.shopping.type.CustomAttribute getCustomAttributes(int index) { * * *
      -   * Required. A list of custom (merchant-provided) attributes. It can also be
      +   * Optional. A list of custom (merchant-provided) attributes. It can also be
          * used for submitting any attribute of the data specification in its generic
          * form (for example,
          * `{ "name": "size type", "value": "regular" }`).
      @@ -370,7 +370,7 @@ public com.google.shopping.type.CustomAttribute getCustomAttributes(int index) {
          * 
      * * - * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -1523,7 +1523,7 @@ private void ensureCustomAttributesIsMutable() { * * *
      -     * Required. A list of custom (merchant-provided) attributes. It can also be
      +     * Optional. A list of custom (merchant-provided) attributes. It can also be
            * used for submitting any attribute of the data specification in its generic
            * form (for example,
            * `{ "name": "size type", "value": "regular" }`).
      @@ -1537,7 +1537,7 @@ private void ensureCustomAttributesIsMutable() {
            * 
      * * - * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public java.util.List getCustomAttributesList() { @@ -1552,7 +1552,7 @@ public java.util.List getCustomAttribu * * *
      -     * Required. A list of custom (merchant-provided) attributes. It can also be
      +     * Optional. A list of custom (merchant-provided) attributes. It can also be
            * used for submitting any attribute of the data specification in its generic
            * form (for example,
            * `{ "name": "size type", "value": "regular" }`).
      @@ -1566,7 +1566,7 @@ public java.util.List getCustomAttribu
            * 
      * * - * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public int getCustomAttributesCount() { @@ -1581,7 +1581,7 @@ public int getCustomAttributesCount() { * * *
      -     * Required. A list of custom (merchant-provided) attributes. It can also be
      +     * Optional. A list of custom (merchant-provided) attributes. It can also be
            * used for submitting any attribute of the data specification in its generic
            * form (for example,
            * `{ "name": "size type", "value": "regular" }`).
      @@ -1595,7 +1595,7 @@ public int getCustomAttributesCount() {
            * 
      * * - * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.shopping.type.CustomAttribute getCustomAttributes(int index) { @@ -1610,7 +1610,7 @@ public com.google.shopping.type.CustomAttribute getCustomAttributes(int index) { * * *
      -     * Required. A list of custom (merchant-provided) attributes. It can also be
      +     * Optional. A list of custom (merchant-provided) attributes. It can also be
            * used for submitting any attribute of the data specification in its generic
            * form (for example,
            * `{ "name": "size type", "value": "regular" }`).
      @@ -1624,7 +1624,7 @@ public com.google.shopping.type.CustomAttribute getCustomAttributes(int index) {
            * 
      * * - * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setCustomAttributes(int index, com.google.shopping.type.CustomAttribute value) { @@ -1645,7 +1645,7 @@ public Builder setCustomAttributes(int index, com.google.shopping.type.CustomAtt * * *
      -     * Required. A list of custom (merchant-provided) attributes. It can also be
      +     * Optional. A list of custom (merchant-provided) attributes. It can also be
            * used for submitting any attribute of the data specification in its generic
            * form (for example,
            * `{ "name": "size type", "value": "regular" }`).
      @@ -1659,7 +1659,7 @@ public Builder setCustomAttributes(int index, com.google.shopping.type.CustomAtt
            * 
      * * - * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setCustomAttributes( @@ -1678,7 +1678,7 @@ public Builder setCustomAttributes( * * *
      -     * Required. A list of custom (merchant-provided) attributes. It can also be
      +     * Optional. A list of custom (merchant-provided) attributes. It can also be
            * used for submitting any attribute of the data specification in its generic
            * form (for example,
            * `{ "name": "size type", "value": "regular" }`).
      @@ -1692,7 +1692,7 @@ public Builder setCustomAttributes(
            * 
      * * - * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addCustomAttributes(com.google.shopping.type.CustomAttribute value) { @@ -1713,7 +1713,7 @@ public Builder addCustomAttributes(com.google.shopping.type.CustomAttribute valu * * *
      -     * Required. A list of custom (merchant-provided) attributes. It can also be
      +     * Optional. A list of custom (merchant-provided) attributes. It can also be
            * used for submitting any attribute of the data specification in its generic
            * form (for example,
            * `{ "name": "size type", "value": "regular" }`).
      @@ -1727,7 +1727,7 @@ public Builder addCustomAttributes(com.google.shopping.type.CustomAttribute valu
            * 
      * * - * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addCustomAttributes(int index, com.google.shopping.type.CustomAttribute value) { @@ -1748,7 +1748,7 @@ public Builder addCustomAttributes(int index, com.google.shopping.type.CustomAtt * * *
      -     * Required. A list of custom (merchant-provided) attributes. It can also be
      +     * Optional. A list of custom (merchant-provided) attributes. It can also be
            * used for submitting any attribute of the data specification in its generic
            * form (for example,
            * `{ "name": "size type", "value": "regular" }`).
      @@ -1762,7 +1762,7 @@ public Builder addCustomAttributes(int index, com.google.shopping.type.CustomAtt
            * 
      * * - * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addCustomAttributes( @@ -1781,7 +1781,7 @@ public Builder addCustomAttributes( * * *
      -     * Required. A list of custom (merchant-provided) attributes. It can also be
      +     * Optional. A list of custom (merchant-provided) attributes. It can also be
            * used for submitting any attribute of the data specification in its generic
            * form (for example,
            * `{ "name": "size type", "value": "regular" }`).
      @@ -1795,7 +1795,7 @@ public Builder addCustomAttributes(
            * 
      * * - * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addCustomAttributes( @@ -1814,7 +1814,7 @@ public Builder addCustomAttributes( * * *
      -     * Required. A list of custom (merchant-provided) attributes. It can also be
      +     * Optional. A list of custom (merchant-provided) attributes. It can also be
            * used for submitting any attribute of the data specification in its generic
            * form (for example,
            * `{ "name": "size type", "value": "regular" }`).
      @@ -1828,7 +1828,7 @@ public Builder addCustomAttributes(
            * 
      * * - * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addAllCustomAttributes( @@ -1847,7 +1847,7 @@ public Builder addAllCustomAttributes( * * *
      -     * Required. A list of custom (merchant-provided) attributes. It can also be
      +     * Optional. A list of custom (merchant-provided) attributes. It can also be
            * used for submitting any attribute of the data specification in its generic
            * form (for example,
            * `{ "name": "size type", "value": "regular" }`).
      @@ -1861,7 +1861,7 @@ public Builder addAllCustomAttributes(
            * 
      * * - * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearCustomAttributes() { @@ -1879,7 +1879,7 @@ public Builder clearCustomAttributes() { * * *
      -     * Required. A list of custom (merchant-provided) attributes. It can also be
      +     * Optional. A list of custom (merchant-provided) attributes. It can also be
            * used for submitting any attribute of the data specification in its generic
            * form (for example,
            * `{ "name": "size type", "value": "regular" }`).
      @@ -1893,7 +1893,7 @@ public Builder clearCustomAttributes() {
            * 
      * * - * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder removeCustomAttributes(int index) { @@ -1911,7 +1911,7 @@ public Builder removeCustomAttributes(int index) { * * *
      -     * Required. A list of custom (merchant-provided) attributes. It can also be
      +     * Optional. A list of custom (merchant-provided) attributes. It can also be
            * used for submitting any attribute of the data specification in its generic
            * form (for example,
            * `{ "name": "size type", "value": "regular" }`).
      @@ -1925,7 +1925,7 @@ public Builder removeCustomAttributes(int index) {
            * 
      * * - * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.shopping.type.CustomAttribute.Builder getCustomAttributesBuilder(int index) { @@ -1936,7 +1936,7 @@ public com.google.shopping.type.CustomAttribute.Builder getCustomAttributesBuild * * *
      -     * Required. A list of custom (merchant-provided) attributes. It can also be
      +     * Optional. A list of custom (merchant-provided) attributes. It can also be
            * used for submitting any attribute of the data specification in its generic
            * form (for example,
            * `{ "name": "size type", "value": "regular" }`).
      @@ -1950,7 +1950,7 @@ public com.google.shopping.type.CustomAttribute.Builder getCustomAttributesBuild
            * 
      * * - * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.shopping.type.CustomAttributeOrBuilder getCustomAttributesOrBuilder( @@ -1966,7 +1966,7 @@ public com.google.shopping.type.CustomAttributeOrBuilder getCustomAttributesOrBu * * *
      -     * Required. A list of custom (merchant-provided) attributes. It can also be
      +     * Optional. A list of custom (merchant-provided) attributes. It can also be
            * used for submitting any attribute of the data specification in its generic
            * form (for example,
            * `{ "name": "size type", "value": "regular" }`).
      @@ -1980,7 +1980,7 @@ public com.google.shopping.type.CustomAttributeOrBuilder getCustomAttributesOrBu
            * 
      * * - * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public java.util.List @@ -1996,7 +1996,7 @@ public com.google.shopping.type.CustomAttributeOrBuilder getCustomAttributesOrBu * * *
      -     * Required. A list of custom (merchant-provided) attributes. It can also be
      +     * Optional. A list of custom (merchant-provided) attributes. It can also be
            * used for submitting any attribute of the data specification in its generic
            * form (for example,
            * `{ "name": "size type", "value": "regular" }`).
      @@ -2010,7 +2010,7 @@ public com.google.shopping.type.CustomAttributeOrBuilder getCustomAttributesOrBu
            * 
      * * - * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.shopping.type.CustomAttribute.Builder addCustomAttributesBuilder() { @@ -2022,7 +2022,7 @@ public com.google.shopping.type.CustomAttribute.Builder addCustomAttributesBuild * * *
      -     * Required. A list of custom (merchant-provided) attributes. It can also be
      +     * Optional. A list of custom (merchant-provided) attributes. It can also be
            * used for submitting any attribute of the data specification in its generic
            * form (for example,
            * `{ "name": "size type", "value": "regular" }`).
      @@ -2036,7 +2036,7 @@ public com.google.shopping.type.CustomAttribute.Builder addCustomAttributesBuild
            * 
      * * - * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.shopping.type.CustomAttribute.Builder addCustomAttributesBuilder(int index) { @@ -2048,7 +2048,7 @@ public com.google.shopping.type.CustomAttribute.Builder addCustomAttributesBuild * * *
      -     * Required. A list of custom (merchant-provided) attributes. It can also be
      +     * Optional. A list of custom (merchant-provided) attributes. It can also be
            * used for submitting any attribute of the data specification in its generic
            * form (for example,
            * `{ "name": "size type", "value": "regular" }`).
      @@ -2062,7 +2062,7 @@ public com.google.shopping.type.CustomAttribute.Builder addCustomAttributesBuild
            * 
      * * - * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public java.util.List diff --git a/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/MerchantReviewAttributes.java b/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/MerchantReviewAttributes.java index d54675b12d86..d6cf86f7ac8b 100644 --- a/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/MerchantReviewAttributes.java +++ b/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/MerchantReviewAttributes.java @@ -1128,10 +1128,10 @@ public com.google.protobuf.TimestampOrBuilder getReviewTimeOrBuilder() { * * *
      -   * Required. The language of the review defined by BCP-47 language code.
      +   * Optional. The language of the review defined by BCP-47 language code.
          * 
      * - * optional string review_language = 15 [(.google.api.field_behavior) = REQUIRED]; + * optional string review_language = 15 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the reviewLanguage field is set. */ @@ -1144,10 +1144,10 @@ public boolean hasReviewLanguage() { * * *
      -   * Required. The language of the review defined by BCP-47 language code.
      +   * Optional. The language of the review defined by BCP-47 language code.
          * 
      * - * optional string review_language = 15 [(.google.api.field_behavior) = REQUIRED]; + * optional string review_language = 15 [(.google.api.field_behavior) = OPTIONAL]; * * @return The reviewLanguage. */ @@ -1168,10 +1168,10 @@ public java.lang.String getReviewLanguage() { * * *
      -   * Required. The language of the review defined by BCP-47 language code.
      +   * Optional. The language of the review defined by BCP-47 language code.
          * 
      * - * optional string review_language = 15 [(.google.api.field_behavior) = REQUIRED]; + * optional string review_language = 15 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for reviewLanguage. */ @@ -3805,10 +3805,10 @@ public com.google.protobuf.TimestampOrBuilder getReviewTimeOrBuilder() { * * *
      -     * Required. The language of the review defined by BCP-47 language code.
      +     * Optional. The language of the review defined by BCP-47 language code.
            * 
      * - * optional string review_language = 15 [(.google.api.field_behavior) = REQUIRED]; + * optional string review_language = 15 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the reviewLanguage field is set. */ @@ -3820,10 +3820,10 @@ public boolean hasReviewLanguage() { * * *
      -     * Required. The language of the review defined by BCP-47 language code.
      +     * Optional. The language of the review defined by BCP-47 language code.
            * 
      * - * optional string review_language = 15 [(.google.api.field_behavior) = REQUIRED]; + * optional string review_language = 15 [(.google.api.field_behavior) = OPTIONAL]; * * @return The reviewLanguage. */ @@ -3843,10 +3843,10 @@ public java.lang.String getReviewLanguage() { * * *
      -     * Required. The language of the review defined by BCP-47 language code.
      +     * Optional. The language of the review defined by BCP-47 language code.
            * 
      * - * optional string review_language = 15 [(.google.api.field_behavior) = REQUIRED]; + * optional string review_language = 15 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for reviewLanguage. */ @@ -3866,10 +3866,10 @@ public com.google.protobuf.ByteString getReviewLanguageBytes() { * * *
      -     * Required. The language of the review defined by BCP-47 language code.
      +     * Optional. The language of the review defined by BCP-47 language code.
            * 
      * - * optional string review_language = 15 [(.google.api.field_behavior) = REQUIRED]; + * optional string review_language = 15 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The reviewLanguage to set. * @return This builder for chaining. @@ -3888,10 +3888,10 @@ public Builder setReviewLanguage(java.lang.String value) { * * *
      -     * Required. The language of the review defined by BCP-47 language code.
      +     * Optional. The language of the review defined by BCP-47 language code.
            * 
      * - * optional string review_language = 15 [(.google.api.field_behavior) = REQUIRED]; + * optional string review_language = 15 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -3906,10 +3906,10 @@ public Builder clearReviewLanguage() { * * *
      -     * Required. The language of the review defined by BCP-47 language code.
      +     * Optional. The language of the review defined by BCP-47 language code.
            * 
      * - * optional string review_language = 15 [(.google.api.field_behavior) = REQUIRED]; + * optional string review_language = 15 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for reviewLanguage to set. * @return This builder for chaining. diff --git a/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/MerchantReviewAttributesOrBuilder.java b/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/MerchantReviewAttributesOrBuilder.java index 4fd127b0782e..40424918d55a 100644 --- a/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/MerchantReviewAttributesOrBuilder.java +++ b/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/MerchantReviewAttributesOrBuilder.java @@ -573,10 +573,10 @@ public interface MerchantReviewAttributesOrBuilder * * *
      -   * Required. The language of the review defined by BCP-47 language code.
      +   * Optional. The language of the review defined by BCP-47 language code.
          * 
      * - * optional string review_language = 15 [(.google.api.field_behavior) = REQUIRED]; + * optional string review_language = 15 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the reviewLanguage field is set. */ @@ -586,10 +586,10 @@ public interface MerchantReviewAttributesOrBuilder * * *
      -   * Required. The language of the review defined by BCP-47 language code.
      +   * Optional. The language of the review defined by BCP-47 language code.
          * 
      * - * optional string review_language = 15 [(.google.api.field_behavior) = REQUIRED]; + * optional string review_language = 15 [(.google.api.field_behavior) = OPTIONAL]; * * @return The reviewLanguage. */ @@ -599,10 +599,10 @@ public interface MerchantReviewAttributesOrBuilder * * *
      -   * Required. The language of the review defined by BCP-47 language code.
      +   * Optional. The language of the review defined by BCP-47 language code.
          * 
      * - * optional string review_language = 15 [(.google.api.field_behavior) = REQUIRED]; + * optional string review_language = 15 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for reviewLanguage. */ diff --git a/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/MerchantReviewOrBuilder.java b/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/MerchantReviewOrBuilder.java index 5229ad3ca2d8..99b4f0ed76c3 100644 --- a/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/MerchantReviewOrBuilder.java +++ b/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/MerchantReviewOrBuilder.java @@ -130,7 +130,7 @@ public interface MerchantReviewOrBuilder * * *
      -   * Required. A list of custom (merchant-provided) attributes. It can also be
      +   * Optional. A list of custom (merchant-provided) attributes. It can also be
          * used for submitting any attribute of the data specification in its generic
          * form (for example,
          * `{ "name": "size type", "value": "regular" }`).
      @@ -144,7 +144,7 @@ public interface MerchantReviewOrBuilder
          * 
      * * - * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ java.util.List getCustomAttributesList(); @@ -153,7 +153,7 @@ public interface MerchantReviewOrBuilder * * *
      -   * Required. A list of custom (merchant-provided) attributes. It can also be
      +   * Optional. A list of custom (merchant-provided) attributes. It can also be
          * used for submitting any attribute of the data specification in its generic
          * form (for example,
          * `{ "name": "size type", "value": "regular" }`).
      @@ -167,7 +167,7 @@ public interface MerchantReviewOrBuilder
          * 
      * * - * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.shopping.type.CustomAttribute getCustomAttributes(int index); @@ -176,7 +176,7 @@ public interface MerchantReviewOrBuilder * * *
      -   * Required. A list of custom (merchant-provided) attributes. It can also be
      +   * Optional. A list of custom (merchant-provided) attributes. It can also be
          * used for submitting any attribute of the data specification in its generic
          * form (for example,
          * `{ "name": "size type", "value": "regular" }`).
      @@ -190,7 +190,7 @@ public interface MerchantReviewOrBuilder
          * 
      * * - * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ int getCustomAttributesCount(); @@ -199,7 +199,7 @@ public interface MerchantReviewOrBuilder * * *
      -   * Required. A list of custom (merchant-provided) attributes. It can also be
      +   * Optional. A list of custom (merchant-provided) attributes. It can also be
          * used for submitting any attribute of the data specification in its generic
          * form (for example,
          * `{ "name": "size type", "value": "regular" }`).
      @@ -213,7 +213,7 @@ public interface MerchantReviewOrBuilder
          * 
      * * - * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ java.util.List @@ -223,7 +223,7 @@ public interface MerchantReviewOrBuilder * * *
      -   * Required. A list of custom (merchant-provided) attributes. It can also be
      +   * Optional. A list of custom (merchant-provided) attributes. It can also be
          * used for submitting any attribute of the data specification in its generic
          * form (for example,
          * `{ "name": "size type", "value": "regular" }`).
      @@ -237,7 +237,7 @@ public interface MerchantReviewOrBuilder
          * 
      * * - * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.shopping.type.CustomAttributeOrBuilder getCustomAttributesOrBuilder(int index); diff --git a/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/MerchantReviewsCommonProto.java b/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/MerchantReviewsCommonProto.java index 7f862ed69fde..72e0849e1dac 100644 --- a/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/MerchantReviewsCommonProto.java +++ b/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/MerchantReviewsCommonProto.java @@ -78,7 +78,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "views.v1beta.MerchantReviewAttributes.CollectionMethodB\003\340A\001H\014\210\001\001\0229\n" + "\013review_time\030\016 \001(\0132\032.google.protobuf.TimestampB\003\340A\002H\r" + "\210\001\001\022!\n" - + "\017review_language\030\017 \001(\tB\003\340A\002H\016\210\001\001\022 \n" + + "\017review_language\030\017 \001(\tB\003\340A\001H\016\210\001\001\022 \n" + "\016review_country\030\020 \001(\tB\003\340A\001H\017\210\001\001\"y\n" + "\020CollectionMethod\022!\n" + "\035COLLECTION_METHOD_UNSPECIFIED\020\000\022\030\n" diff --git a/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/MerchantReviewsProto.java b/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/MerchantReviewsProto.java index a83799e2ec6c..303b63e1e5eb 100644 --- a/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/MerchantReviewsProto.java +++ b/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/MerchantReviewsProto.java @@ -91,7 +91,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003 \001(\0132A.google.shopping.merchant.reviews" + ".v1beta.MerchantReviewAttributesB\003\340A\001\022E\n" + "\021custom_attributes\030\004 \003(\0132%.google.shoppi" - + "ng.type.CustomAttributeB\003\340A\002\022\030\n\013data_sou" + + "ng.type.CustomAttributeB\003\340A\001\022\030\n\013data_sou" + "rce\030\005 \001(\tB\003\340A\003\022b\n\026merchant_review_status" + "\030\006 \001(\0132=.google.shopping.merchant.review" + "s.v1beta.MerchantReviewStatusB\003\340A\003:z\352Aw\n" diff --git a/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/ProductReviewAttributes.java b/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/ProductReviewAttributes.java index a06c2c6ebbe8..f0305d1a76d9 100644 --- a/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/ProductReviewAttributes.java +++ b/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/ProductReviewAttributes.java @@ -2099,10 +2099,11 @@ public com.google.protobuf.ByteString getTitleBytes() { * * *
      -   * Required. The content of the review.
      +   * Optional. The content of the review. If empty, the content might still get
      +   * populated from pros and cons.
          * 
      * - * optional string content = 12 [(.google.api.field_behavior) = REQUIRED]; + * optional string content = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the content field is set. */ @@ -2115,10 +2116,11 @@ public boolean hasContent() { * * *
      -   * Required. The content of the review.
      +   * Optional. The content of the review. If empty, the content might still get
      +   * populated from pros and cons.
          * 
      * - * optional string content = 12 [(.google.api.field_behavior) = REQUIRED]; + * optional string content = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @return The content. */ @@ -2139,10 +2141,11 @@ public java.lang.String getContent() { * * *
      -   * Required. The content of the review.
      +   * Optional. The content of the review. If empty, the content might still get
      +   * populated from pros and cons.
          * 
      * - * optional string content = 12 [(.google.api.field_behavior) = REQUIRED]; + * optional string content = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for content. */ @@ -3091,6 +3094,78 @@ public boolean getIsSpam() { return isSpam_; } + public static final int IS_VERIFIED_PURCHASE_FIELD_NUMBER = 30; + private boolean isVerifiedPurchase_ = false; + + /** + * + * + *
      +   * Optional. Indicates whether the reviewer's purchase is verified.
      +   * 
      + * + * optional bool is_verified_purchase = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the isVerifiedPurchase field is set. + */ + @java.lang.Override + public boolean hasIsVerifiedPurchase() { + return ((bitField0_ & 0x00020000) != 0); + } + + /** + * + * + *
      +   * Optional. Indicates whether the reviewer's purchase is verified.
      +   * 
      + * + * optional bool is_verified_purchase = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isVerifiedPurchase. + */ + @java.lang.Override + public boolean getIsVerifiedPurchase() { + return isVerifiedPurchase_; + } + + public static final int IS_INCENTIVIZED_REVIEW_FIELD_NUMBER = 31; + private boolean isIncentivizedReview_ = false; + + /** + * + * + *
      +   * Optional. Indicates whether the review is incentivized.
      +   * 
      + * + * optional bool is_incentivized_review = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the isIncentivizedReview field is set. + */ + @java.lang.Override + public boolean hasIsIncentivizedReview() { + return ((bitField0_ & 0x00040000) != 0); + } + + /** + * + * + *
      +   * Optional. Indicates whether the review is incentivized.
      +   * 
      + * + * optional bool is_incentivized_review = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The isIncentivizedReview. + */ + @java.lang.Override + public boolean getIsIncentivizedReview() { + return isIncentivizedReview_; + } + public static final int COLLECTION_METHOD_FIELD_NUMBER = 28; private int collectionMethod_ = 0; @@ -3298,6 +3373,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(transactionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 29, transactionId_); } + if (((bitField0_ & 0x00020000) != 0)) { + output.writeBool(30, isVerifiedPurchase_); + } + if (((bitField0_ & 0x00040000) != 0)) { + output.writeBool(31, isIncentivizedReview_); + } getUnknownFields().writeTo(output); } @@ -3447,6 +3528,12 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(transactionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(29, transactionId_); } + if (((bitField0_ & 0x00020000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(30, isVerifiedPurchase_); + } + if (((bitField0_ & 0x00040000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(31, isIncentivizedReview_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3542,6 +3629,14 @@ public boolean equals(final java.lang.Object obj) { if (hasIsSpam()) { if (getIsSpam() != other.getIsSpam()) return false; } + if (hasIsVerifiedPurchase() != other.hasIsVerifiedPurchase()) return false; + if (hasIsVerifiedPurchase()) { + if (getIsVerifiedPurchase() != other.getIsVerifiedPurchase()) return false; + } + if (hasIsIncentivizedReview() != other.hasIsIncentivizedReview()) return false; + if (hasIsIncentivizedReview()) { + if (getIsIncentivizedReview() != other.getIsIncentivizedReview()) return false; + } if (collectionMethod_ != other.collectionMethod_) return false; if (!getTransactionId().equals(other.getTransactionId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -3666,6 +3761,14 @@ public int hashCode() { hash = (37 * hash) + IS_SPAM_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsSpam()); } + if (hasIsVerifiedPurchase()) { + hash = (37 * hash) + IS_VERIFIED_PURCHASE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsVerifiedPurchase()); + } + if (hasIsIncentivizedReview()) { + hash = (37 * hash) + IS_INCENTIVIZED_REVIEW_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsIncentivizedReview()); + } hash = (37 * hash) + COLLECTION_METHOD_FIELD_NUMBER; hash = (53 * hash) + collectionMethod_; hash = (37 * hash) + TRANSACTION_ID_FIELD_NUMBER; @@ -3858,6 +3961,8 @@ public Builder clear() { skus_ = com.google.protobuf.LazyStringArrayList.emptyList(); brands_ = com.google.protobuf.LazyStringArrayList.emptyList(); isSpam_ = false; + isVerifiedPurchase_ = false; + isIncentivizedReview_ = false; collectionMethod_ = 0; transactionId_ = ""; return this; @@ -4009,9 +4114,17 @@ private void buildPartial0( to_bitField0_ |= 0x00010000; } if (((from_bitField0_ & 0x08000000) != 0)) { - result.collectionMethod_ = collectionMethod_; + result.isVerifiedPurchase_ = isVerifiedPurchase_; + to_bitField0_ |= 0x00020000; } if (((from_bitField0_ & 0x10000000) != 0)) { + result.isIncentivizedReview_ = isIncentivizedReview_; + to_bitField0_ |= 0x00040000; + } + if (((from_bitField0_ & 0x20000000) != 0)) { + result.collectionMethod_ = collectionMethod_; + } + if (((from_bitField0_ & 0x40000000) != 0)) { result.transactionId_ = transactionId_; } result.bitField0_ |= to_bitField0_; @@ -4237,12 +4350,18 @@ public Builder mergeFrom( if (other.hasIsSpam()) { setIsSpam(other.getIsSpam()); } + if (other.hasIsVerifiedPurchase()) { + setIsVerifiedPurchase(other.getIsVerifiedPurchase()); + } + if (other.hasIsIncentivizedReview()) { + setIsIncentivizedReview(other.getIsIncentivizedReview()); + } if (other.collectionMethod_ != 0) { setCollectionMethodValue(other.getCollectionMethodValue()); } if (!other.getTransactionId().isEmpty()) { transactionId_ = other.transactionId_; - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -4446,15 +4565,27 @@ public Builder mergeFrom( case 224: { collectionMethod_ = input.readEnum(); - bitField0_ |= 0x08000000; + bitField0_ |= 0x20000000; break; } // case 224 case 234: { transactionId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; break; } // case 234 + case 240: + { + isVerifiedPurchase_ = input.readBool(); + bitField0_ |= 0x08000000; + break; + } // case 240 + case 248: + { + isIncentivizedReview_ = input.readBool(); + bitField0_ |= 0x10000000; + break; + } // case 248 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -6001,10 +6132,11 @@ public Builder setTitleBytes(com.google.protobuf.ByteString value) { * * *
      -     * Required. The content of the review.
      +     * Optional. The content of the review. If empty, the content might still get
      +     * populated from pros and cons.
            * 
      * - * optional string content = 12 [(.google.api.field_behavior) = REQUIRED]; + * optional string content = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the content field is set. */ @@ -6016,10 +6148,11 @@ public boolean hasContent() { * * *
      -     * Required. The content of the review.
      +     * Optional. The content of the review. If empty, the content might still get
      +     * populated from pros and cons.
            * 
      * - * optional string content = 12 [(.google.api.field_behavior) = REQUIRED]; + * optional string content = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @return The content. */ @@ -6039,10 +6172,11 @@ public java.lang.String getContent() { * * *
      -     * Required. The content of the review.
      +     * Optional. The content of the review. If empty, the content might still get
      +     * populated from pros and cons.
            * 
      * - * optional string content = 12 [(.google.api.field_behavior) = REQUIRED]; + * optional string content = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for content. */ @@ -6062,10 +6196,11 @@ public com.google.protobuf.ByteString getContentBytes() { * * *
      -     * Required. The content of the review.
      +     * Optional. The content of the review. If empty, the content might still get
      +     * populated from pros and cons.
            * 
      * - * optional string content = 12 [(.google.api.field_behavior) = REQUIRED]; + * optional string content = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The content to set. * @return This builder for chaining. @@ -6084,10 +6219,11 @@ public Builder setContent(java.lang.String value) { * * *
      -     * Required. The content of the review.
      +     * Optional. The content of the review. If empty, the content might still get
      +     * populated from pros and cons.
            * 
      * - * optional string content = 12 [(.google.api.field_behavior) = REQUIRED]; + * optional string content = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -6102,10 +6238,11 @@ public Builder clearContent() { * * *
      -     * Required. The content of the review.
      +     * Optional. The content of the review. If empty, the content might still get
      +     * populated from pros and cons.
            * 
      * - * optional string content = 12 [(.google.api.field_behavior) = REQUIRED]; + * optional string content = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for content to set. * @return This builder for chaining. @@ -8570,6 +8707,158 @@ public Builder clearIsSpam() { return this; } + private boolean isVerifiedPurchase_; + + /** + * + * + *
      +     * Optional. Indicates whether the reviewer's purchase is verified.
      +     * 
      + * + * optional bool is_verified_purchase = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the isVerifiedPurchase field is set. + */ + @java.lang.Override + public boolean hasIsVerifiedPurchase() { + return ((bitField0_ & 0x08000000) != 0); + } + + /** + * + * + *
      +     * Optional. Indicates whether the reviewer's purchase is verified.
      +     * 
      + * + * optional bool is_verified_purchase = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The isVerifiedPurchase. + */ + @java.lang.Override + public boolean getIsVerifiedPurchase() { + return isVerifiedPurchase_; + } + + /** + * + * + *
      +     * Optional. Indicates whether the reviewer's purchase is verified.
      +     * 
      + * + * optional bool is_verified_purchase = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The isVerifiedPurchase to set. + * @return This builder for chaining. + */ + public Builder setIsVerifiedPurchase(boolean value) { + + isVerifiedPurchase_ = value; + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Indicates whether the reviewer's purchase is verified.
      +     * 
      + * + * optional bool is_verified_purchase = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearIsVerifiedPurchase() { + bitField0_ = (bitField0_ & ~0x08000000); + isVerifiedPurchase_ = false; + onChanged(); + return this; + } + + private boolean isIncentivizedReview_; + + /** + * + * + *
      +     * Optional. Indicates whether the review is incentivized.
      +     * 
      + * + * optional bool is_incentivized_review = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the isIncentivizedReview field is set. + */ + @java.lang.Override + public boolean hasIsIncentivizedReview() { + return ((bitField0_ & 0x10000000) != 0); + } + + /** + * + * + *
      +     * Optional. Indicates whether the review is incentivized.
      +     * 
      + * + * optional bool is_incentivized_review = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The isIncentivizedReview. + */ + @java.lang.Override + public boolean getIsIncentivizedReview() { + return isIncentivizedReview_; + } + + /** + * + * + *
      +     * Optional. Indicates whether the review is incentivized.
      +     * 
      + * + * optional bool is_incentivized_review = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The isIncentivizedReview to set. + * @return This builder for chaining. + */ + public Builder setIsIncentivizedReview(boolean value) { + + isIncentivizedReview_ = value; + bitField0_ |= 0x10000000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Indicates whether the review is incentivized.
      +     * 
      + * + * optional bool is_incentivized_review = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearIsIncentivizedReview() { + bitField0_ = (bitField0_ & ~0x10000000); + isIncentivizedReview_ = false; + onChanged(); + return this; + } + private int collectionMethod_ = 0; /** @@ -8606,7 +8895,7 @@ public int getCollectionMethodValue() { */ public Builder setCollectionMethodValue(int value) { collectionMethod_ = value; - bitField0_ |= 0x08000000; + bitField0_ |= 0x20000000; onChanged(); return this; } @@ -8656,7 +8945,7 @@ public Builder setCollectionMethod( if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x08000000; + bitField0_ |= 0x20000000; collectionMethod_ = value.getNumber(); onChanged(); return this; @@ -8676,7 +8965,7 @@ public Builder setCollectionMethod( * @return This builder for chaining. */ public Builder clearCollectionMethod() { - bitField0_ = (bitField0_ & ~0x08000000); + bitField0_ = (bitField0_ & ~0x20000000); collectionMethod_ = 0; onChanged(); return this; @@ -8753,7 +9042,7 @@ public Builder setTransactionId(java.lang.String value) { throw new NullPointerException(); } transactionId_ = value; - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; onChanged(); return this; } @@ -8773,7 +9062,7 @@ public Builder setTransactionId(java.lang.String value) { */ public Builder clearTransactionId() { transactionId_ = getDefaultInstance().getTransactionId(); - bitField0_ = (bitField0_ & ~0x10000000); + bitField0_ = (bitField0_ & ~0x40000000); onChanged(); return this; } @@ -8798,7 +9087,7 @@ public Builder setTransactionIdBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); transactionId_ = value; - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; onChanged(); return this; } diff --git a/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/ProductReviewAttributesOrBuilder.java b/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/ProductReviewAttributesOrBuilder.java index 42e2c79ee506..56e6b6ad3376 100644 --- a/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/ProductReviewAttributesOrBuilder.java +++ b/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/ProductReviewAttributesOrBuilder.java @@ -499,10 +499,11 @@ public interface ProductReviewAttributesOrBuilder * * *
      -   * Required. The content of the review.
      +   * Optional. The content of the review. If empty, the content might still get
      +   * populated from pros and cons.
          * 
      * - * optional string content = 12 [(.google.api.field_behavior) = REQUIRED]; + * optional string content = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the content field is set. */ @@ -512,10 +513,11 @@ public interface ProductReviewAttributesOrBuilder * * *
      -   * Required. The content of the review.
      +   * Optional. The content of the review. If empty, the content might still get
      +   * populated from pros and cons.
          * 
      * - * optional string content = 12 [(.google.api.field_behavior) = REQUIRED]; + * optional string content = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @return The content. */ @@ -525,10 +527,11 @@ public interface ProductReviewAttributesOrBuilder * * *
      -   * Required. The content of the review.
      +   * Optional. The content of the review. If empty, the content might still get
      +   * populated from pros and cons.
          * 
      * - * optional string content = 12 [(.google.api.field_behavior) = REQUIRED]; + * optional string content = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for content. */ @@ -1270,6 +1273,60 @@ public interface ProductReviewAttributesOrBuilder */ boolean getIsSpam(); + /** + * + * + *
      +   * Optional. Indicates whether the reviewer's purchase is verified.
      +   * 
      + * + * optional bool is_verified_purchase = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the isVerifiedPurchase field is set. + */ + boolean hasIsVerifiedPurchase(); + + /** + * + * + *
      +   * Optional. Indicates whether the reviewer's purchase is verified.
      +   * 
      + * + * optional bool is_verified_purchase = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isVerifiedPurchase. + */ + boolean getIsVerifiedPurchase(); + + /** + * + * + *
      +   * Optional. Indicates whether the review is incentivized.
      +   * 
      + * + * optional bool is_incentivized_review = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the isIncentivizedReview field is set. + */ + boolean hasIsIncentivizedReview(); + + /** + * + * + *
      +   * Optional. Indicates whether the review is incentivized.
      +   * 
      + * + * optional bool is_incentivized_review = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The isIncentivizedReview. + */ + boolean getIsIncentivizedReview(); + /** * * diff --git a/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/ProductReviewsCommonProto.java b/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/ProductReviewsCommonProto.java index 79b8adc07835..e97f21c68d26 100644 --- a/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/ProductReviewsCommonProto.java +++ b/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/ProductReviewsCommonProto.java @@ -61,7 +61,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "Cgoogle/shopping/merchant/reviews/v1beta/productreviews_common.proto\022\'google.sh" + "opping.merchant.reviews.v1beta\032\037google/a" + "pi/field_behavior.proto\032\037google/protobuf/timestamp.proto\032" - + " google/shopping/type/types.proto\"\254\014\n" + + " google/shopping/type/types.proto\"\262\r\n" + "\027ProductReviewAttributes\022!\n" + "\017aggregator_name\030\001 \001(\tB\003\340A\001H\000\210\001\001\022 \n" + "\016subclient_name\030\002 \001(\tB\003\340A\001H\001\210\001\001\022 \n" @@ -75,7 +75,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013review_time\030\n" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\002\022\027\n" + "\005title\030\013 \001(\tB\003\340A\001H\t\210\001\001\022\031\n" - + "\007content\030\014 \001(\tB\003\340A\002H\n" + + "\007content\030\014 \001(\tB\003\340A\001H\n" + "\210\001\001\022\021\n" + "\004pros\030\r" + " \003(\tB\003\340A\001\022\021\n" @@ -94,13 +94,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004mpns\030\030 \003(\tB\003\340A\001\022\021\n" + "\004skus\030\031 \003(\tB\003\340A\001\022\023\n" + "\006brands\030\032 \003(\tB\003\340A\001\022\031\n" - + "\007is_spam\030\033 \001(\010B\003\340A\001H\016\210\001\001\022q\n" - + "\021collection_method\030\034 \001(\0162Q.google.shopping.merchant" - + ".reviews.v1beta.ProductReviewAttributes.CollectionMethodB\003\340A\001\022\033\n" + + "\007is_spam\030\033 \001(\010B\003\340A\001H\016\210\001\001\022&\n" + + "\024is_verified_purchase\030\036 \001(\010B\003\340A\001H\017\210\001\001\022(\n" + + "\026is_incentivized_review\030\037 \001(\010B\003\340A\001H\020\210\001\001\022q\n" + + "\021collection_method\030\034 \001(\0162Q.google.shopping.mercha" + + "nt.reviews.v1beta.ProductReviewAttributes.CollectionMethodB\003\340A\001\022\033\n" + "\016transaction_id\030\035 \001(\tB\003\340A\001\032\274\001\n\n" + "ReviewLink\022c\n" - + "\004type\030\001 \001(\0162P.google.shopping.merchant.reviews.v1bet" - + "a.ProductReviewAttributes.ReviewLink.TypeB\003\340A\001\022\021\n" + + "\004type\030\001 \001(\0162P.google.shopping.merchant.reviews.v1b" + + "eta.ProductReviewAttributes.ReviewLink.TypeB\003\340A\001\022\021\n" + "\004link\030\002 \001(\tB\003\340A\001\"6\n" + "\004Type\022\024\n" + "\020TYPE_UNSPECIFIED\020\000\022\r\n" @@ -124,27 +126,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_min_ratingB\r\n" + "\013_max_ratingB\t\n" + "\007_ratingB\n\n" - + "\010_is_spam\"\316\007\n" + + "\010_is_spamB\027\n" + + "\025_is_verified_purchaseB\031\n" + + "\027_is_incentivized_review\"\316\007\n" + "\023ProductReviewStatus\022~\n" - + "\024destination_statuses\030\003 \003(\0132[.google.shopping.merchant.revie" - + "ws.v1beta.ProductReviewStatus.ProductReviewDestinationStatusB\003\340A\003\022x\n" - + "\021item_level_issues\030\004 \003(\0132X.google.shopping.merchant." - + "reviews.v1beta.ProductReviewStatus.ProductReviewItemLevelIssueB\003\340A\003\0224\n" + + "\024destination_statuses\030\003 \003(\0132[.google.shopping." + + "merchant.reviews.v1beta.ProductReviewSta" + + "tus.ProductReviewDestinationStatusB\003\340A\003\022x\n" + + "\021item_level_issues\030\004 \003(\0132X.google.shop" + + "ping.merchant.reviews.v1beta.ProductRevi" + + "ewStatus.ProductReviewItemLevelIssueB\003\340A\003\0224\n" + "\013create_time\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0229\n" + "\020last_update_time\030\006" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\032}\n" + "\036ProductReviewDestinationStatus\022[\n" - + "\021reporting_context\030\001 \001(" - + "\0162;.google.shopping.type.ReportingContext.ReportingContextEnumB\003\340A\003\032\314\003\n" + + "\021reporting_context\030\001 \001(\0162;.google.shopping.type.R" + + "eportingContext.ReportingContextEnumB\003\340A\003\032\314\003\n" + "\033ProductReviewItemLevelIssue\022\021\n" + "\004code\030\001 \001(\tB\003\340A\003\022x\n" - + "\010severity\030\002 \001(\0162a.google.shopping.merch" - + "ant.reviews.v1beta.ProductReviewStatus.P" - + "roductReviewItemLevelIssue.SeverityB\003\340A\003\022\027\n\n" + + "\010severity\030\002 \001(\0162a.google.shopping.merchant.reviews.v1beta.Product" + + "ReviewStatus.ProductReviewItemLevelIssue.SeverityB\003\340A\003\022\027\n\n" + "resolution\030\003 \001(\tB\003\340A\003\022\026\n" + "\tattribute\030\004 \001(\tB\003\340A\003\022[\n" - + "\021reporting_context\030\005 \001(\0162;.g" - + "oogle.shopping.type.ReportingContext.ReportingContextEnumB\003\340A\003\022\030\n" + + "\021reporting_context\030\005" + + " \001(\0162;.google.shopping.type.ReportingContext.ReportingContextEnumB\003\340A\003\022\030\n" + "\013description\030\006 \001(\tB\003\340A\003\022\023\n" + "\006detail\030\007 \001(\tB\003\340A\003\022\032\n\r" + "documentation\030\010 \001(\tB\003\340A\003\"G\n" @@ -152,11 +157,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024SEVERITY_UNSPECIFIED\020\000\022\020\n" + "\014NOT_IMPACTED\020\001\022\017\n" + "\013DISAPPROVED\020\002B\231\002\n" - + "+com.google.shopping.merchant.reviews.v1betaB\031ProductReviewsCommon" - + "ProtoP\001ZKcloud.google.com/go/shopping/merchant/reviews/apiv1beta/reviewspb;revie" - + "wspb\252\002\'Google.Shopping.Merchant.Reviews." - + "V1Beta\312\002\'Google\\Shopping\\Merchant\\Review" - + "s\\V1beta\352\002+Google::Shopping::Merchant::Reviews::V1betab\006proto3" + + "+com.google.shopping.merchant.reviews.v1betaB\031Produc" + + "tReviewsCommonProtoP\001ZKcloud.google.com/go/shopping/merchant/reviews/apiv1beta/r" + + "eviewspb;reviewspb\252\002\'Google.Shopping.Mer" + + "chant.Reviews.V1Beta\312\002\'Google\\Shopping\\M" + + "erchant\\Reviews\\V1beta\352\002+Google::Shoppin" + + "g::Merchant::Reviews::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -199,6 +205,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Skus", "Brands", "IsSpam", + "IsVerifiedPurchase", + "IsIncentivizedReview", "CollectionMethod", "TransactionId", }); diff --git a/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/proto/google/shopping/merchant/reviews/v1beta/merchantreviews.proto b/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/proto/google/shopping/merchant/reviews/v1beta/merchantreviews.proto index 9ace5d36cfcc..a7ddce1ff154 100644 --- a/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/proto/google/shopping/merchant/reviews/v1beta/merchantreviews.proto +++ b/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/proto/google/shopping/merchant/reviews/v1beta/merchantreviews.proto @@ -176,7 +176,7 @@ message MerchantReview { MerchantReviewAttributes attributes = 3 [(google.api.field_behavior) = OPTIONAL]; - // Required. A list of custom (merchant-provided) attributes. It can also be + // Optional. A list of custom (merchant-provided) attributes. It can also be // used for submitting any attribute of the data specification in its generic // form (for example, // `{ "name": "size type", "value": "regular" }`). @@ -188,7 +188,7 @@ message MerchantReview { // size of 102.4kB. Underscores in custom attribute names are replaced by // spaces upon insertion. repeated google.shopping.type.CustomAttribute custom_attributes = 4 - [(google.api.field_behavior) = REQUIRED]; + [(google.api.field_behavior) = OPTIONAL]; // Output only. The primary data source of the merchant review. string data_source = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/proto/google/shopping/merchant/reviews/v1beta/merchantreviews_common.proto b/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/proto/google/shopping/merchant/reviews/v1beta/merchantreviews_common.proto index 551723fc1b51..52d1aa333d85 100644 --- a/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/proto/google/shopping/merchant/reviews/v1beta/merchantreviews_common.proto +++ b/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/proto/google/shopping/merchant/reviews/v1beta/merchantreviews_common.proto @@ -107,8 +107,8 @@ message MerchantReviewAttributes { optional google.protobuf.Timestamp review_time = 14 [(google.api.field_behavior) = REQUIRED]; - // Required. The language of the review defined by BCP-47 language code. - optional string review_language = 15 [(google.api.field_behavior) = REQUIRED]; + // Optional. The language of the review defined by BCP-47 language code. + optional string review_language = 15 [(google.api.field_behavior) = OPTIONAL]; // Optional. The country where the reviewer made the order defined by ISO // 3166-1 Alpha-2 Country Code. diff --git a/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/proto/google/shopping/merchant/reviews/v1beta/productreviews_common.proto b/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/proto/google/shopping/merchant/reviews/v1beta/productreviews_common.proto index fcfe13d43de9..3d5da828cc6e 100644 --- a/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/proto/google/shopping/merchant/reviews/v1beta/productreviews_common.proto +++ b/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/proto/google/shopping/merchant/reviews/v1beta/productreviews_common.proto @@ -121,8 +121,9 @@ message ProductReviewAttributes { // Optional. The title of the review. optional string title = 11 [(google.api.field_behavior) = OPTIONAL]; - // Required. The content of the review. - optional string content = 12 [(google.api.field_behavior) = REQUIRED]; + // Optional. The content of the review. If empty, the content might still get + // populated from pros and cons. + optional string content = 12 [(google.api.field_behavior) = OPTIONAL]; // Optional. Contains the advantages based on the opinion of the reviewer. // Omit boilerplate text like "pro:" unless it was written by the reviewer. @@ -183,6 +184,14 @@ message ProductReviewAttributes { // system. optional bool is_spam = 27 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Indicates whether the reviewer's purchase is verified. + optional bool is_verified_purchase = 30 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Indicates whether the review is incentivized. + optional bool is_incentivized_review = 31 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. The method used to collect the review. CollectionMethod collection_method = 28 [(google.api.field_behavior) = OPTIONAL]; diff --git a/java-spanneradapter/CHANGELOG.md b/java-spanneradapter/CHANGELOG.md index d006308fc16c..4e68a098a8b4 100644 --- a/java-spanneradapter/CHANGELOG.md +++ b/java-spanneradapter/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.4.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.3.0 (2025-06-25) ### Dependencies diff --git a/java-spanneradapter/README.md b/java-spanneradapter/README.md index 6c16662091e5..d644ae91b2e0 100644 --- a/java-spanneradapter/README.md +++ b/java-spanneradapter/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-spanneradapter - 0.2.0 + 0.3.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-spanneradapter:0.2.0' +implementation 'com.google.cloud:google-cloud-spanneradapter:0.3.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-spanneradapter" % "0.2.0" +libraryDependencies += "com.google.cloud" % "google-cloud-spanneradapter" % "0.3.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-spanneradapter.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-spanneradapter/0.2.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-spanneradapter/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-spanneradapter/google-cloud-spanneradapter-bom/pom.xml b/java-spanneradapter/google-cloud-spanneradapter-bom/pom.xml index 546c799cb9d9..6f00661dff00 100644 --- a/java-spanneradapter/google-cloud-spanneradapter-bom/pom.xml +++ b/java-spanneradapter/google-cloud-spanneradapter-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-spanneradapter-bom - 0.3.0 + 0.4.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-spanneradapter - 0.3.0 + 0.4.0 com.google.api.grpc grpc-google-cloud-spanneradapter-v1 - 0.3.0 + 0.4.0 com.google.api.grpc proto-google-cloud-spanneradapter-v1 - 0.3.0 + 0.4.0
      diff --git a/java-spanneradapter/google-cloud-spanneradapter/pom.xml b/java-spanneradapter/google-cloud-spanneradapter/pom.xml index 246d4b28f6f7..bf2a8fee978b 100644 --- a/java-spanneradapter/google-cloud-spanneradapter/pom.xml +++ b/java-spanneradapter/google-cloud-spanneradapter/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-spanneradapter - 0.3.0 + 0.4.0 jar Google Cloud Spanner Adapter API Cloud Spanner Adapter API 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. com.google.cloud google-cloud-spanneradapter-parent - 0.3.0 + 0.4.0 google-cloud-spanneradapter diff --git a/java-spanneradapter/grpc-google-cloud-spanneradapter-v1/pom.xml b/java-spanneradapter/grpc-google-cloud-spanneradapter-v1/pom.xml index 063ad1bd47ed..f861919902dc 100644 --- a/java-spanneradapter/grpc-google-cloud-spanneradapter-v1/pom.xml +++ b/java-spanneradapter/grpc-google-cloud-spanneradapter-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-spanneradapter-v1 - 0.3.0 + 0.4.0 grpc-google-cloud-spanneradapter-v1 GRPC library for google-cloud-spanneradapter com.google.cloud google-cloud-spanneradapter-parent - 0.3.0 + 0.4.0 diff --git a/java-spanneradapter/pom.xml b/java-spanneradapter/pom.xml index 441b9b56bb95..600428205212 100644 --- a/java-spanneradapter/pom.xml +++ b/java-spanneradapter/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-spanneradapter-parent pom - 0.3.0 + 0.4.0 Google Cloud Spanner Adapter API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-spanneradapter - 0.3.0 + 0.4.0 com.google.api.grpc grpc-google-cloud-spanneradapter-v1 - 0.3.0 + 0.4.0 com.google.api.grpc proto-google-cloud-spanneradapter-v1 - 0.3.0 + 0.4.0 diff --git a/java-spanneradapter/proto-google-cloud-spanneradapter-v1/pom.xml b/java-spanneradapter/proto-google-cloud-spanneradapter-v1/pom.xml index 13ff5d9e212a..ad32924f61a6 100644 --- a/java-spanneradapter/proto-google-cloud-spanneradapter-v1/pom.xml +++ b/java-spanneradapter/proto-google-cloud-spanneradapter-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-spanneradapter-v1 - 0.3.0 + 0.4.0 proto-google-cloud-spanneradapter-v1 Proto library for google-cloud-spanneradapter com.google.cloud google-cloud-spanneradapter-parent - 0.3.0 + 0.4.0 diff --git a/java-speech/CHANGELOG.md b/java-speech/CHANGELOG.md index 9c5b66d29a20..222370b913c1 100644 --- a/java-speech/CHANGELOG.md +++ b/java-speech/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 4.63.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 4.62.0 (2025-06-25) ### Dependencies diff --git a/java-speech/README.md b/java-speech/README.md index 6c56c49d0f58..d49a7fa9e988 100644 --- a/java-speech/README.md +++ b/java-speech/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-speech - 4.61.0 + 4.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-speech:4.61.0' +implementation 'com.google.cloud:google-cloud-speech:4.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-speech" % "4.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-speech" % "4.62.0" ``` ## Authentication @@ -230,7 +230,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-speech/4.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-speech/google-cloud-speech-bom/pom.xml b/java-speech/google-cloud-speech-bom/pom.xml index c989d3ff6fc1..41a7e27d7a93 100644 --- a/java-speech/google-cloud-speech-bom/pom.xml +++ b/java-speech/google-cloud-speech-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-speech-bom - 4.62.0 + 4.63.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -23,37 +23,37 @@ com.google.cloud google-cloud-speech - 4.62.0 + 4.63.0 com.google.api.grpc grpc-google-cloud-speech-v1 - 4.62.0 + 4.63.0 com.google.api.grpc grpc-google-cloud-speech-v1p1beta1 - 2.62.0 + 2.63.0 com.google.api.grpc grpc-google-cloud-speech-v2 - 4.62.0 + 4.63.0 com.google.api.grpc proto-google-cloud-speech-v1 - 4.62.0 + 4.63.0 com.google.api.grpc proto-google-cloud-speech-v1p1beta1 - 2.62.0 + 2.63.0 com.google.api.grpc proto-google-cloud-speech-v2 - 4.62.0 + 4.63.0 diff --git a/java-speech/google-cloud-speech/pom.xml b/java-speech/google-cloud-speech/pom.xml index 7331da6787be..9f0485e88b0a 100644 --- a/java-speech/google-cloud-speech/pom.xml +++ b/java-speech/google-cloud-speech/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-speech - 4.62.0 + 4.63.0 jar Google Cloud Speech @@ -12,7 +12,7 @@ com.google.cloud google-cloud-speech-parent - 4.62.0 + 4.63.0 google-cloud-speech diff --git a/java-speech/grpc-google-cloud-speech-v1/pom.xml b/java-speech/grpc-google-cloud-speech-v1/pom.xml index 3e3cd256be92..38e2b5a08ca3 100644 --- a/java-speech/grpc-google-cloud-speech-v1/pom.xml +++ b/java-speech/grpc-google-cloud-speech-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-speech-v1 - 4.62.0 + 4.63.0 grpc-google-cloud-speech-v1 GRPC library for grpc-google-cloud-speech-v1 com.google.cloud google-cloud-speech-parent - 4.62.0 + 4.63.0 diff --git a/java-speech/grpc-google-cloud-speech-v1p1beta1/pom.xml b/java-speech/grpc-google-cloud-speech-v1p1beta1/pom.xml index 98d49648d288..80b6c981641c 100644 --- a/java-speech/grpc-google-cloud-speech-v1p1beta1/pom.xml +++ b/java-speech/grpc-google-cloud-speech-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-speech-v1p1beta1 - 2.62.0 + 2.63.0 grpc-google-cloud-speech-v1p1beta1 GRPC library for grpc-google-cloud-speech-v1p1beta1 com.google.cloud google-cloud-speech-parent - 4.62.0 + 4.63.0 diff --git a/java-speech/grpc-google-cloud-speech-v2/pom.xml b/java-speech/grpc-google-cloud-speech-v2/pom.xml index 2421dc29cf02..4053875f8939 100644 --- a/java-speech/grpc-google-cloud-speech-v2/pom.xml +++ b/java-speech/grpc-google-cloud-speech-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-speech-v2 - 4.62.0 + 4.63.0 grpc-google-cloud-speech-v2 GRPC library for google-cloud-speech com.google.cloud google-cloud-speech-parent - 4.62.0 + 4.63.0 diff --git a/java-speech/pom.xml b/java-speech/pom.xml index d02fa2354219..68717dcc7a2b 100644 --- a/java-speech/pom.xml +++ b/java-speech/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-speech-parent pom - 4.62.0 + 4.63.0 Google Cloud speech Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.api.grpc proto-google-cloud-speech-v1 - 4.62.0 + 4.63.0 com.google.api.grpc proto-google-cloud-speech-v2 - 4.62.0 + 4.63.0 com.google.api.grpc grpc-google-cloud-speech-v2 - 4.62.0 + 4.63.0 com.google.cloud google-cloud-speech - 4.62.0 + 4.63.0 com.google.api.grpc proto-google-cloud-speech-v1p1beta1 - 2.62.0 + 2.63.0 com.google.api.grpc grpc-google-cloud-speech-v1 - 4.62.0 + 4.63.0 com.google.api.grpc grpc-google-cloud-speech-v1p1beta1 - 2.62.0 + 2.63.0 diff --git a/java-speech/proto-google-cloud-speech-v1/pom.xml b/java-speech/proto-google-cloud-speech-v1/pom.xml index 866cd3715b1a..3666ad9c7bce 100644 --- a/java-speech/proto-google-cloud-speech-v1/pom.xml +++ b/java-speech/proto-google-cloud-speech-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-speech-v1 - 4.62.0 + 4.63.0 proto-google-cloud-speech-v1 PROTO library for proto-google-cloud-speech-v1 com.google.cloud google-cloud-speech-parent - 4.62.0 + 4.63.0 diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/pom.xml b/java-speech/proto-google-cloud-speech-v1p1beta1/pom.xml index cef64804567c..818e2e70b78d 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/pom.xml +++ b/java-speech/proto-google-cloud-speech-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-speech-v1p1beta1 - 2.62.0 + 2.63.0 proto-google-cloud-speech-v1p1beta1 PROTO library for proto-google-cloud-speech-v1p1beta1 com.google.cloud google-cloud-speech-parent - 4.62.0 + 4.63.0 diff --git a/java-speech/proto-google-cloud-speech-v2/pom.xml b/java-speech/proto-google-cloud-speech-v2/pom.xml index 243b94f9ade3..7340700cd93f 100644 --- a/java-speech/proto-google-cloud-speech-v2/pom.xml +++ b/java-speech/proto-google-cloud-speech-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-speech-v2 - 4.62.0 + 4.63.0 proto-google-cloud-speech-v2 Proto library for google-cloud-speech com.google.cloud google-cloud-speech-parent - 4.62.0 + 4.63.0 diff --git a/java-storage-transfer/CHANGELOG.md b/java-storage-transfer/CHANGELOG.md index 540fcd0b5b7d..031fe4422247 100644 --- a/java-storage-transfer/CHANGELOG.md +++ b/java-storage-transfer/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 1.68.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 1.67.0 (2025-06-25) ### Dependencies diff --git a/java-storage-transfer/README.md b/java-storage-transfer/README.md index 625a02a9a27f..7d8357425fad 100644 --- a/java-storage-transfer/README.md +++ b/java-storage-transfer/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-storage-transfer - 1.66.0 + 1.67.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-storage-transfer:1.66.0' +implementation 'com.google.cloud:google-cloud-storage-transfer:1.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-storage-transfer" % "1.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-storage-transfer" % "1.67.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storage-transfer/1.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-storage-transfer/google-cloud-storage-transfer-bom/pom.xml b/java-storage-transfer/google-cloud-storage-transfer-bom/pom.xml index d118e5769b92..c597d517bc85 100644 --- a/java-storage-transfer/google-cloud-storage-transfer-bom/pom.xml +++ b/java-storage-transfer/google-cloud-storage-transfer-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-storage-transfer-bom - 1.67.0 + 1.68.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-storage-transfer - 1.67.0 + 1.68.0 com.google.api.grpc grpc-google-cloud-storage-transfer-v1 - 1.67.0 + 1.68.0 com.google.api.grpc proto-google-cloud-storage-transfer-v1 - 1.67.0 + 1.68.0 diff --git a/java-storage-transfer/google-cloud-storage-transfer/pom.xml b/java-storage-transfer/google-cloud-storage-transfer/pom.xml index 7815f30f6074..caf1dccddfbb 100644 --- a/java-storage-transfer/google-cloud-storage-transfer/pom.xml +++ b/java-storage-transfer/google-cloud-storage-transfer/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-storage-transfer - 1.67.0 + 1.68.0 jar Google Storage Transfer Service Storage Transfer Service Secure, low-cost services for transferring data from cloud or on-premises sources. com.google.cloud google-cloud-storage-transfer-parent - 1.67.0 + 1.68.0 google-cloud-storage-transfer diff --git a/java-storage-transfer/grpc-google-cloud-storage-transfer-v1/pom.xml b/java-storage-transfer/grpc-google-cloud-storage-transfer-v1/pom.xml index ed0a7f3a95f7..f0df0826deb6 100644 --- a/java-storage-transfer/grpc-google-cloud-storage-transfer-v1/pom.xml +++ b/java-storage-transfer/grpc-google-cloud-storage-transfer-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-storage-transfer-v1 - 1.67.0 + 1.68.0 grpc-google-cloud-storage-transfer-v1 GRPC library for google-cloud-storage-transfer com.google.cloud google-cloud-storage-transfer-parent - 1.67.0 + 1.68.0 diff --git a/java-storage-transfer/pom.xml b/java-storage-transfer/pom.xml index 1d4679195a80..6dcb79f09e50 100644 --- a/java-storage-transfer/pom.xml +++ b/java-storage-transfer/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-storage-transfer-parent pom - 1.67.0 + 1.68.0 Google Storage Transfer Service Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-storage-transfer - 1.67.0 + 1.68.0 com.google.api.grpc grpc-google-cloud-storage-transfer-v1 - 1.67.0 + 1.68.0 com.google.api.grpc proto-google-cloud-storage-transfer-v1 - 1.67.0 + 1.68.0 diff --git a/java-storage-transfer/proto-google-cloud-storage-transfer-v1/pom.xml b/java-storage-transfer/proto-google-cloud-storage-transfer-v1/pom.xml index 4954b314ef09..9ee2edbae98a 100644 --- a/java-storage-transfer/proto-google-cloud-storage-transfer-v1/pom.xml +++ b/java-storage-transfer/proto-google-cloud-storage-transfer-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-storage-transfer-v1 - 1.67.0 + 1.68.0 proto-google-cloud-storage-transfer-v1 Proto library for google-cloud-storage-transfer com.google.cloud google-cloud-storage-transfer-parent - 1.67.0 + 1.68.0 diff --git a/java-storagebatchoperations/CHANGELOG.md b/java-storagebatchoperations/CHANGELOG.md index 9dc4292597e9..c48da897af03 100644 --- a/java-storagebatchoperations/CHANGELOG.md +++ b/java-storagebatchoperations/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.8.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.7.0 (2025-06-25) ### Dependencies diff --git a/java-storagebatchoperations/README.md b/java-storagebatchoperations/README.md index df28d1b87ba7..0c98990f1da7 100644 --- a/java-storagebatchoperations/README.md +++ b/java-storagebatchoperations/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-storagebatchoperations - 0.6.0 + 0.7.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-storagebatchoperations:0.6.0' +implementation 'com.google.cloud:google-cloud-storagebatchoperations:0.7.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-storagebatchoperations" % "0.6.0" +libraryDependencies += "com.google.cloud" % "google-cloud-storagebatchoperations" % "0.7.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-storagebatchoperations.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storagebatchoperations/0.6.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storagebatchoperations/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-storagebatchoperations/google-cloud-storagebatchoperations-bom/pom.xml b/java-storagebatchoperations/google-cloud-storagebatchoperations-bom/pom.xml index c1a75a77ee7b..242dd52294c0 100644 --- a/java-storagebatchoperations/google-cloud-storagebatchoperations-bom/pom.xml +++ b/java-storagebatchoperations/google-cloud-storagebatchoperations-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-storagebatchoperations-bom - 0.7.0 + 0.8.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-storagebatchoperations - 0.7.0 + 0.8.0 com.google.api.grpc grpc-google-cloud-storagebatchoperations-v1 - 0.7.0 + 0.8.0 com.google.api.grpc proto-google-cloud-storagebatchoperations-v1 - 0.7.0 + 0.8.0 diff --git a/java-storagebatchoperations/google-cloud-storagebatchoperations/pom.xml b/java-storagebatchoperations/google-cloud-storagebatchoperations/pom.xml index db2a2c60bc15..014baad32139 100644 --- a/java-storagebatchoperations/google-cloud-storagebatchoperations/pom.xml +++ b/java-storagebatchoperations/google-cloud-storagebatchoperations/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-storagebatchoperations - 0.7.0 + 0.8.0 jar Google Storage Batch Operations API Storage Batch Operations API Storage batch operations is a Cloud Storage management feature that performs operations on billions of Cloud Storage objects in a serverless manner. com.google.cloud google-cloud-storagebatchoperations-parent - 0.7.0 + 0.8.0 google-cloud-storagebatchoperations diff --git a/java-storagebatchoperations/grpc-google-cloud-storagebatchoperations-v1/pom.xml b/java-storagebatchoperations/grpc-google-cloud-storagebatchoperations-v1/pom.xml index df67d6507627..bc915fe6dc90 100644 --- a/java-storagebatchoperations/grpc-google-cloud-storagebatchoperations-v1/pom.xml +++ b/java-storagebatchoperations/grpc-google-cloud-storagebatchoperations-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-storagebatchoperations-v1 - 0.7.0 + 0.8.0 grpc-google-cloud-storagebatchoperations-v1 GRPC library for google-cloud-storagebatchoperations com.google.cloud google-cloud-storagebatchoperations-parent - 0.7.0 + 0.8.0 diff --git a/java-storagebatchoperations/pom.xml b/java-storagebatchoperations/pom.xml index 3df54c04a147..5bc2c2aaba4e 100644 --- a/java-storagebatchoperations/pom.xml +++ b/java-storagebatchoperations/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-storagebatchoperations-parent pom - 0.7.0 + 0.8.0 Google Storage Batch Operations API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-storagebatchoperations - 0.7.0 + 0.8.0 com.google.api.grpc grpc-google-cloud-storagebatchoperations-v1 - 0.7.0 + 0.8.0 com.google.api.grpc proto-google-cloud-storagebatchoperations-v1 - 0.7.0 + 0.8.0 diff --git a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/pom.xml b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/pom.xml index b0173be1b353..3bdb611a3d50 100644 --- a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/pom.xml +++ b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-storagebatchoperations-v1 - 0.7.0 + 0.8.0 proto-google-cloud-storagebatchoperations-v1 Proto library for google-cloud-storagebatchoperations com.google.cloud google-cloud-storagebatchoperations-parent - 0.7.0 + 0.8.0 diff --git a/java-storageinsights/CHANGELOG.md b/java-storageinsights/CHANGELOG.md index 583dc9b7c78b..7b6d76e615cf 100644 --- a/java-storageinsights/CHANGELOG.md +++ b/java-storageinsights/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.53.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.52.0 (2025-06-25) ### Dependencies diff --git a/java-storageinsights/README.md b/java-storageinsights/README.md index b218cea55b64..893d51856b21 100644 --- a/java-storageinsights/README.md +++ b/java-storageinsights/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-storageinsights - 0.51.0 + 0.52.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-storageinsights:0.51.0' +implementation 'com.google.cloud:google-cloud-storageinsights:0.52.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-storageinsights" % "0.51.0" +libraryDependencies += "com.google.cloud" % "google-cloud-storageinsights" % "0.52.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-storageinsights.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storageinsights/0.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storageinsights/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-storageinsights/google-cloud-storageinsights-bom/pom.xml b/java-storageinsights/google-cloud-storageinsights-bom/pom.xml index 9b1a7f25491d..26e33e2227bf 100644 --- a/java-storageinsights/google-cloud-storageinsights-bom/pom.xml +++ b/java-storageinsights/google-cloud-storageinsights-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-storageinsights-bom - 0.52.0 + 0.53.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-storageinsights - 0.52.0 + 0.53.0 com.google.api.grpc grpc-google-cloud-storageinsights-v1 - 0.52.0 + 0.53.0 com.google.api.grpc proto-google-cloud-storageinsights-v1 - 0.52.0 + 0.53.0 diff --git a/java-storageinsights/google-cloud-storageinsights/pom.xml b/java-storageinsights/google-cloud-storageinsights/pom.xml index 9b377d2027b1..9c201945280c 100644 --- a/java-storageinsights/google-cloud-storageinsights/pom.xml +++ b/java-storageinsights/google-cloud-storageinsights/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-storageinsights - 0.52.0 + 0.53.0 jar Google Storage Insights API Storage Insights API Provides insights capability on Google Cloud Storage com.google.cloud google-cloud-storageinsights-parent - 0.52.0 + 0.53.0 google-cloud-storageinsights diff --git a/java-storageinsights/grpc-google-cloud-storageinsights-v1/pom.xml b/java-storageinsights/grpc-google-cloud-storageinsights-v1/pom.xml index 592f8fbd8720..be2db35b8f09 100644 --- a/java-storageinsights/grpc-google-cloud-storageinsights-v1/pom.xml +++ b/java-storageinsights/grpc-google-cloud-storageinsights-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-storageinsights-v1 - 0.52.0 + 0.53.0 grpc-google-cloud-storageinsights-v1 GRPC library for google-cloud-storageinsights com.google.cloud google-cloud-storageinsights-parent - 0.52.0 + 0.53.0 diff --git a/java-storageinsights/pom.xml b/java-storageinsights/pom.xml index 978a656b2db7..4f455afca0ad 100644 --- a/java-storageinsights/pom.xml +++ b/java-storageinsights/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-storageinsights-parent pom - 0.52.0 + 0.53.0 Google Storage Insights API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-storageinsights - 0.52.0 + 0.53.0 com.google.api.grpc grpc-google-cloud-storageinsights-v1 - 0.52.0 + 0.53.0 com.google.api.grpc proto-google-cloud-storageinsights-v1 - 0.52.0 + 0.53.0 diff --git a/java-storageinsights/proto-google-cloud-storageinsights-v1/pom.xml b/java-storageinsights/proto-google-cloud-storageinsights-v1/pom.xml index cd4a295d8aeb..ece5d7e7ec0f 100644 --- a/java-storageinsights/proto-google-cloud-storageinsights-v1/pom.xml +++ b/java-storageinsights/proto-google-cloud-storageinsights-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-storageinsights-v1 - 0.52.0 + 0.53.0 proto-google-cloud-storageinsights-v1 Proto library for google-cloud-storageinsights com.google.cloud google-cloud-storageinsights-parent - 0.52.0 + 0.53.0 diff --git a/java-talent/CHANGELOG.md b/java-talent/CHANGELOG.md index 4f43ed0d0a34..e27053420c64 100644 --- a/java-talent/CHANGELOG.md +++ b/java-talent/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.69.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.68.0 (2025-06-25) ### Dependencies diff --git a/java-talent/README.md b/java-talent/README.md index 47560ceb8d3f..18c37cd6fe73 100644 --- a/java-talent/README.md +++ b/java-talent/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-talent - 2.67.0 + 2.68.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-talent:2.67.0' +implementation 'com.google.cloud:google-cloud-talent:2.68.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-talent" % "2.67.0" +libraryDependencies += "com.google.cloud" % "google-cloud-talent" % "2.68.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.67.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-talent/2.68.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/google-cloud-talent-bom/pom.xml b/java-talent/google-cloud-talent-bom/pom.xml index 6e3daf28f133..6adda6ee1a15 100644 --- a/java-talent/google-cloud-talent-bom/pom.xml +++ b/java-talent/google-cloud-talent-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-talent-bom - 2.68.0 + 2.69.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-talent - 2.68.0 + 2.69.0 com.google.api.grpc grpc-google-cloud-talent-v4 - 2.68.0 + 2.69.0 com.google.api.grpc grpc-google-cloud-talent-v4beta1 - 0.111.0 + 0.112.0 com.google.api.grpc proto-google-cloud-talent-v4 - 2.68.0 + 2.69.0 com.google.api.grpc proto-google-cloud-talent-v4beta1 - 0.111.0 + 0.112.0 diff --git a/java-talent/google-cloud-talent/pom.xml b/java-talent/google-cloud-talent/pom.xml index 84e18019fbd7..fe0034ed8822 100644 --- a/java-talent/google-cloud-talent/pom.xml +++ b/java-talent/google-cloud-talent/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-talent - 2.68.0 + 2.69.0 jar Google Cloud Talent Solution Java idiomatic client for Google Cloud Talent Solution com.google.cloud google-cloud-talent-parent - 2.68.0 + 2.69.0 google-cloud-talent diff --git a/java-talent/grpc-google-cloud-talent-v4/pom.xml b/java-talent/grpc-google-cloud-talent-v4/pom.xml index 03832dbc3972..cfbb746cee4e 100644 --- a/java-talent/grpc-google-cloud-talent-v4/pom.xml +++ b/java-talent/grpc-google-cloud-talent-v4/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-talent-v4 - 2.68.0 + 2.69.0 grpc-google-cloud-talent-v4 GRPC library for grpc-google-cloud-talent-v4 com.google.cloud google-cloud-talent-parent - 2.68.0 + 2.69.0 diff --git a/java-talent/grpc-google-cloud-talent-v4beta1/pom.xml b/java-talent/grpc-google-cloud-talent-v4beta1/pom.xml index 7ffad01172aa..645fb5768f08 100644 --- a/java-talent/grpc-google-cloud-talent-v4beta1/pom.xml +++ b/java-talent/grpc-google-cloud-talent-v4beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-talent-v4beta1 - 0.111.0 + 0.112.0 grpc-google-cloud-talent-v4beta1 GRPC library for grpc-google-cloud-talent-v4beta1 com.google.cloud google-cloud-talent-parent - 2.68.0 + 2.69.0 diff --git a/java-talent/pom.xml b/java-talent/pom.xml index 83fbb421bf89..be893abcb309 100644 --- a/java-talent/pom.xml +++ b/java-talent/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-talent-parent pom - 2.68.0 + 2.69.0 Google Cloud Talent Solution Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,32 +29,32 @@ com.google.api.grpc proto-google-cloud-talent-v4beta1 - 0.111.0 + 0.112.0 com.google.api.grpc proto-google-cloud-talent-v4 - 2.68.0 + 2.69.0 com.google.api.grpc grpc-google-cloud-talent-v4beta1 - 0.111.0 + 0.112.0 com.google.api.grpc grpc-google-cloud-talent-v4 - 2.68.0 + 2.69.0 com.google.cloud google-cloud-talent - 2.68.0 + 2.69.0 com.google.cloud google-cloud-talent-bom - 2.68.0 + 2.69.0 diff --git a/java-talent/proto-google-cloud-talent-v4/pom.xml b/java-talent/proto-google-cloud-talent-v4/pom.xml index b60c21b16e8a..033b3a1ee29c 100644 --- a/java-talent/proto-google-cloud-talent-v4/pom.xml +++ b/java-talent/proto-google-cloud-talent-v4/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-talent-v4 - 2.68.0 + 2.69.0 proto-google-cloud-talent-v4 PROTO library for proto-google-cloud-talent-v4 com.google.cloud google-cloud-talent-parent - 2.68.0 + 2.69.0 diff --git a/java-talent/proto-google-cloud-talent-v4beta1/pom.xml b/java-talent/proto-google-cloud-talent-v4beta1/pom.xml index f5ed80031ab6..b17f75776e76 100644 --- a/java-talent/proto-google-cloud-talent-v4beta1/pom.xml +++ b/java-talent/proto-google-cloud-talent-v4beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-talent-v4beta1 - 0.111.0 + 0.112.0 proto-google-cloud-talent-v4beta1 PROTO library for proto-google-cloud-talent-v4beta1 com.google.cloud google-cloud-talent-parent - 2.68.0 + 2.69.0 diff --git a/java-tasks/CHANGELOG.md b/java-tasks/CHANGELOG.md index 32319099b9a6..66458129f163 100644 --- a/java-tasks/CHANGELOG.md +++ b/java-tasks/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.68.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.67.0 (2025-06-25) ### Dependencies diff --git a/java-tasks/README.md b/java-tasks/README.md index b1e94361afc9..619da2219db6 100644 --- a/java-tasks/README.md +++ b/java-tasks/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-tasks - 2.66.0 + 2.67.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-tasks:2.66.0' +implementation 'com.google.cloud:google-cloud-tasks:2.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.67.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tasks/2.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-tasks/google-cloud-tasks-bom/pom.xml b/java-tasks/google-cloud-tasks-bom/pom.xml index 4df185e1d278..9e68e1645339 100644 --- a/java-tasks/google-cloud-tasks-bom/pom.xml +++ b/java-tasks/google-cloud-tasks-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.67.0 + 2.68.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -23,37 +23,37 @@ com.google.cloud google-cloud-tasks - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.157.0 + 0.158.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.157.0 + 0.158.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.157.0 + 0.158.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.157.0 + 0.158.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.67.0 + 2.68.0 diff --git a/java-tasks/google-cloud-tasks/pom.xml b/java-tasks/google-cloud-tasks/pom.xml index 648a6ad28a75..df98ee9963c5 100644 --- a/java-tasks/google-cloud-tasks/pom.xml +++ b/java-tasks/google-cloud-tasks/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.67.0 + 2.68.0 jar Google Cloud Tasks Java idiomatic client for Google Cloud Tasks com.google.cloud google-cloud-tasks-parent - 2.67.0 + 2.68.0 google-cloud-tasks diff --git a/java-tasks/grpc-google-cloud-tasks-v2/pom.xml b/java-tasks/grpc-google-cloud-tasks-v2/pom.xml index b06ac70a3913..b0b5d7c80ce8 100644 --- a/java-tasks/grpc-google-cloud-tasks-v2/pom.xml +++ b/java-tasks/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.67.0 + 2.68.0 grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.67.0 + 2.68.0 diff --git a/java-tasks/grpc-google-cloud-tasks-v2beta2/pom.xml b/java-tasks/grpc-google-cloud-tasks-v2beta2/pom.xml index 2b7723d1d319..39066456e741 100644 --- a/java-tasks/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/java-tasks/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.157.0 + 0.158.0 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.67.0 + 2.68.0 diff --git a/java-tasks/grpc-google-cloud-tasks-v2beta3/pom.xml b/java-tasks/grpc-google-cloud-tasks-v2beta3/pom.xml index d43ac202a4ef..793bc4d88af3 100644 --- a/java-tasks/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/java-tasks/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.157.0 + 0.158.0 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.67.0 + 2.68.0 diff --git a/java-tasks/pom.xml b/java-tasks/pom.xml index b85257af3158..8e085605569c 100644 --- a/java-tasks/pom.xml +++ b/java-tasks/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.67.0 + 2.68.0 Google Cloud Tasks Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.157.0 + 0.158.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.157.0 + 0.158.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.157.0 + 0.158.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.157.0 + 0.158.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.67.0 + 2.68.0 com.google.cloud google-cloud-tasks - 2.67.0 + 2.68.0 diff --git a/java-tasks/proto-google-cloud-tasks-v2/pom.xml b/java-tasks/proto-google-cloud-tasks-v2/pom.xml index c5ddc9e64624..494f9c74f16a 100644 --- a/java-tasks/proto-google-cloud-tasks-v2/pom.xml +++ b/java-tasks/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.67.0 + 2.68.0 proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.67.0 + 2.68.0 diff --git a/java-tasks/proto-google-cloud-tasks-v2beta2/pom.xml b/java-tasks/proto-google-cloud-tasks-v2beta2/pom.xml index b54fc71314d1..39575da8c960 100644 --- a/java-tasks/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/java-tasks/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.157.0 + 0.158.0 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.67.0 + 2.68.0 diff --git a/java-tasks/proto-google-cloud-tasks-v2beta3/pom.xml b/java-tasks/proto-google-cloud-tasks-v2beta3/pom.xml index 0aa8c628d9f4..88cb3504267b 100644 --- a/java-tasks/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/java-tasks/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.157.0 + 0.158.0 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.67.0 + 2.68.0 diff --git a/java-telcoautomation/CHANGELOG.md b/java-telcoautomation/CHANGELOG.md index e350cfe39432..6d77de9ce78f 100644 --- a/java-telcoautomation/CHANGELOG.md +++ b/java-telcoautomation/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.38.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.37.0 (2025-06-25) ### Dependencies diff --git a/java-telcoautomation/README.md b/java-telcoautomation/README.md index eafeb93d365c..45fab17b3377 100644 --- a/java-telcoautomation/README.md +++ b/java-telcoautomation/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-telcoautomation - 0.36.0 + 0.37.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-telcoautomation:0.36.0' +implementation 'com.google.cloud:google-cloud-telcoautomation:0.37.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-telcoautomation" % "0.36.0" +libraryDependencies += "com.google.cloud" % "google-cloud-telcoautomation" % "0.37.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.36.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-telcoautomation/0.37.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/google-cloud-telcoautomation-bom/pom.xml b/java-telcoautomation/google-cloud-telcoautomation-bom/pom.xml index 3205d92b260a..423847ebb907 100644 --- a/java-telcoautomation/google-cloud-telcoautomation-bom/pom.xml +++ b/java-telcoautomation/google-cloud-telcoautomation-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-telcoautomation-bom - 0.37.0 + 0.38.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-telcoautomation - 0.37.0 + 0.38.0 com.google.api.grpc grpc-google-cloud-telcoautomation-v1 - 0.37.0 + 0.38.0 com.google.api.grpc grpc-google-cloud-telcoautomation-v1alpha1 - 0.37.0 + 0.38.0 com.google.api.grpc proto-google-cloud-telcoautomation-v1 - 0.37.0 + 0.38.0 com.google.api.grpc proto-google-cloud-telcoautomation-v1alpha1 - 0.37.0 + 0.38.0 diff --git a/java-telcoautomation/google-cloud-telcoautomation/pom.xml b/java-telcoautomation/google-cloud-telcoautomation/pom.xml index c185e9ecdec0..90fecf7c6f42 100644 --- a/java-telcoautomation/google-cloud-telcoautomation/pom.xml +++ b/java-telcoautomation/google-cloud-telcoautomation/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-telcoautomation - 0.37.0 + 0.38.0 jar Google Telco Automation API Telco Automation API APIs to automate 5G deployment and management of cloud infrastructure and network functions. com.google.cloud google-cloud-telcoautomation-parent - 0.37.0 + 0.38.0 google-cloud-telcoautomation diff --git a/java-telcoautomation/grpc-google-cloud-telcoautomation-v1/pom.xml b/java-telcoautomation/grpc-google-cloud-telcoautomation-v1/pom.xml index 621ed95cb9a5..ea10adc65075 100644 --- a/java-telcoautomation/grpc-google-cloud-telcoautomation-v1/pom.xml +++ b/java-telcoautomation/grpc-google-cloud-telcoautomation-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-telcoautomation-v1 - 0.37.0 + 0.38.0 grpc-google-cloud-telcoautomation-v1 GRPC library for google-cloud-telcoautomation com.google.cloud google-cloud-telcoautomation-parent - 0.37.0 + 0.38.0 diff --git a/java-telcoautomation/grpc-google-cloud-telcoautomation-v1alpha1/pom.xml b/java-telcoautomation/grpc-google-cloud-telcoautomation-v1alpha1/pom.xml index b5b9dc5dff23..331c1869c5cd 100644 --- a/java-telcoautomation/grpc-google-cloud-telcoautomation-v1alpha1/pom.xml +++ b/java-telcoautomation/grpc-google-cloud-telcoautomation-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-telcoautomation-v1alpha1 - 0.37.0 + 0.38.0 grpc-google-cloud-telcoautomation-v1alpha1 GRPC library for google-cloud-telcoautomation com.google.cloud google-cloud-telcoautomation-parent - 0.37.0 + 0.38.0 diff --git a/java-telcoautomation/pom.xml b/java-telcoautomation/pom.xml index 01cf97d8a0b6..499ba2a7cb62 100644 --- a/java-telcoautomation/pom.xml +++ b/java-telcoautomation/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-telcoautomation-parent pom - 0.37.0 + 0.38.0 Google Telco Automation API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-telcoautomation - 0.37.0 + 0.38.0 com.google.api.grpc grpc-google-cloud-telcoautomation-v1 - 0.37.0 + 0.38.0 com.google.api.grpc grpc-google-cloud-telcoautomation-v1alpha1 - 0.37.0 + 0.38.0 com.google.api.grpc proto-google-cloud-telcoautomation-v1 - 0.37.0 + 0.38.0 com.google.api.grpc proto-google-cloud-telcoautomation-v1alpha1 - 0.37.0 + 0.38.0 diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/pom.xml b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/pom.xml index 2609e7798914..e4edc65bd633 100644 --- a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/pom.xml +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-telcoautomation-v1 - 0.37.0 + 0.38.0 proto-google-cloud-telcoautomation-v1 Proto library for google-cloud-telcoautomation com.google.cloud google-cloud-telcoautomation-parent - 0.37.0 + 0.38.0 diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/pom.xml b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/pom.xml index 096e267486cb..cf8d33d674bd 100644 --- a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/pom.xml +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-telcoautomation-v1alpha1 - 0.37.0 + 0.38.0 proto-google-cloud-telcoautomation-v1alpha1 Proto library for google-cloud-telcoautomation com.google.cloud google-cloud-telcoautomation-parent - 0.37.0 + 0.38.0 diff --git a/java-texttospeech/CHANGELOG.md b/java-texttospeech/CHANGELOG.md index e88c7dd70bbc..5601c4afee67 100644 --- a/java-texttospeech/CHANGELOG.md +++ b/java-texttospeech/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.69.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.68.0 (2025-06-25) ### Dependencies diff --git a/java-texttospeech/README.md b/java-texttospeech/README.md index 661ec9bafc90..b10f4f117761 100644 --- a/java-texttospeech/README.md +++ b/java-texttospeech/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-texttospeech - 2.67.0 + 2.68.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-texttospeech:2.67.0' +implementation 'com.google.cloud:google-cloud-texttospeech:2.68.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-texttospeech" % "2.67.0" +libraryDependencies += "com.google.cloud" % "google-cloud-texttospeech" % "2.68.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.67.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-texttospeech/2.68.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/google-cloud-texttospeech-bom/pom.xml b/java-texttospeech/google-cloud-texttospeech-bom/pom.xml index c09482a163e7..290e426e02c3 100644 --- a/java-texttospeech/google-cloud-texttospeech-bom/pom.xml +++ b/java-texttospeech/google-cloud-texttospeech-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-texttospeech-bom - 2.68.0 + 2.69.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-texttospeech - 2.68.0 + 2.69.0 com.google.api.grpc grpc-google-cloud-texttospeech-v1beta1 - 0.157.0 + 0.158.0 com.google.api.grpc grpc-google-cloud-texttospeech-v1 - 2.68.0 + 2.69.0 com.google.api.grpc proto-google-cloud-texttospeech-v1 - 2.68.0 + 2.69.0 com.google.api.grpc proto-google-cloud-texttospeech-v1beta1 - 0.157.0 + 0.158.0 diff --git a/java-texttospeech/google-cloud-texttospeech/pom.xml b/java-texttospeech/google-cloud-texttospeech/pom.xml index 3507c72adf8f..8f1f0225d89e 100644 --- a/java-texttospeech/google-cloud-texttospeech/pom.xml +++ b/java-texttospeech/google-cloud-texttospeech/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-texttospeech - 2.68.0 + 2.69.0 jar Google Cloud Text-to-Speech Java idiomatic client for Google Cloud Text-to-Speech com.google.cloud google-cloud-texttospeech-parent - 2.68.0 + 2.69.0 google-cloud-texttospeech diff --git a/java-texttospeech/grpc-google-cloud-texttospeech-v1/pom.xml b/java-texttospeech/grpc-google-cloud-texttospeech-v1/pom.xml index 8bd275c74c11..184a5d267619 100644 --- a/java-texttospeech/grpc-google-cloud-texttospeech-v1/pom.xml +++ b/java-texttospeech/grpc-google-cloud-texttospeech-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-texttospeech-v1 - 2.68.0 + 2.69.0 grpc-google-cloud-texttospeech-v1 GRPC library for grpc-google-cloud-texttospeech-v1 com.google.cloud google-cloud-texttospeech-parent - 2.68.0 + 2.69.0 diff --git a/java-texttospeech/grpc-google-cloud-texttospeech-v1beta1/pom.xml b/java-texttospeech/grpc-google-cloud-texttospeech-v1beta1/pom.xml index 7c779ef880e1..2da172d7fff8 100644 --- a/java-texttospeech/grpc-google-cloud-texttospeech-v1beta1/pom.xml +++ b/java-texttospeech/grpc-google-cloud-texttospeech-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-texttospeech-v1beta1 - 0.157.0 + 0.158.0 grpc-google-cloud-texttospeech-v1beta1 GRPC library for grpc-google-cloud-texttospeech-v1beta1 com.google.cloud google-cloud-texttospeech-parent - 2.68.0 + 2.69.0 diff --git a/java-texttospeech/pom.xml b/java-texttospeech/pom.xml index 02606692e175..e7f50a63e588 100644 --- a/java-texttospeech/pom.xml +++ b/java-texttospeech/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-texttospeech-parent pom - 2.68.0 + 2.69.0 Google Cloud Text-to-Speech Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-texttospeech-v1 - 2.68.0 + 2.69.0 com.google.api.grpc proto-google-cloud-texttospeech-v1beta1 - 0.157.0 + 0.158.0 com.google.api.grpc grpc-google-cloud-texttospeech-v1beta1 - 0.157.0 + 0.158.0 com.google.api.grpc grpc-google-cloud-texttospeech-v1 - 2.68.0 + 2.69.0 com.google.cloud google-cloud-texttospeech - 2.68.0 + 2.69.0 diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1/pom.xml b/java-texttospeech/proto-google-cloud-texttospeech-v1/pom.xml index 64d49eb2509d..077e39d174eb 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1/pom.xml +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-texttospeech-v1 - 2.68.0 + 2.69.0 proto-google-cloud-texttospeech-v1 PROTO library for proto-google-cloud-texttospeech-v1 com.google.cloud google-cloud-texttospeech-parent - 2.68.0 + 2.69.0 diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/pom.xml b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/pom.xml index 8495d6939113..7225604c30ec 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/pom.xml +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-texttospeech-v1beta1 - 0.157.0 + 0.158.0 proto-google-cloud-texttospeech-v1beta1 PROTO library for proto-google-cloud-texttospeech-v1beta1 com.google.cloud google-cloud-texttospeech-parent - 2.68.0 + 2.69.0 diff --git a/java-tpu/CHANGELOG.md b/java-tpu/CHANGELOG.md index b6d814903ba5..5594f07e810b 100644 --- a/java-tpu/CHANGELOG.md +++ b/java-tpu/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.69.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.68.0 (2025-06-25) ### Dependencies diff --git a/java-tpu/README.md b/java-tpu/README.md index 25e1ac7f0eeb..8ac91aa4dcf3 100644 --- a/java-tpu/README.md +++ b/java-tpu/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-tpu - 2.67.0 + 2.68.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-tpu:2.67.0' +implementation 'com.google.cloud:google-cloud-tpu:2.68.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tpu" % "2.67.0" +libraryDependencies += "com.google.cloud" % "google-cloud-tpu" % "2.68.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.67.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tpu/2.68.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/google-cloud-tpu-bom/pom.xml b/java-tpu/google-cloud-tpu-bom/pom.xml index 117ec3214611..e1d4130ec550 100644 --- a/java-tpu/google-cloud-tpu-bom/pom.xml +++ b/java-tpu/google-cloud-tpu-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-tpu-bom - 2.68.0 + 2.69.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,37 +27,37 @@ com.google.cloud google-cloud-tpu - 2.68.0 + 2.69.0 com.google.api.grpc grpc-google-cloud-tpu-v1 - 2.68.0 + 2.69.0 com.google.api.grpc grpc-google-cloud-tpu-v2alpha1 - 2.68.0 + 2.69.0 com.google.api.grpc grpc-google-cloud-tpu-v2 - 2.68.0 + 2.69.0 com.google.api.grpc proto-google-cloud-tpu-v1 - 2.68.0 + 2.69.0 com.google.api.grpc proto-google-cloud-tpu-v2alpha1 - 2.68.0 + 2.69.0 com.google.api.grpc proto-google-cloud-tpu-v2 - 2.68.0 + 2.69.0 diff --git a/java-tpu/google-cloud-tpu/pom.xml b/java-tpu/google-cloud-tpu/pom.xml index b6f22b1ed263..1000de26c99f 100644 --- a/java-tpu/google-cloud-tpu/pom.xml +++ b/java-tpu/google-cloud-tpu/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-tpu - 2.68.0 + 2.69.0 jar Google Cloud TPU Cloud TPU are Google's custom-developed application-specific integrated circuits (ASICs) used to accelerate machine learning workloads. com.google.cloud google-cloud-tpu-parent - 2.68.0 + 2.69.0 google-cloud-tpu diff --git a/java-tpu/grpc-google-cloud-tpu-v1/pom.xml b/java-tpu/grpc-google-cloud-tpu-v1/pom.xml index cab1d94ef921..b8c071f2e780 100644 --- a/java-tpu/grpc-google-cloud-tpu-v1/pom.xml +++ b/java-tpu/grpc-google-cloud-tpu-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tpu-v1 - 2.68.0 + 2.69.0 grpc-google-cloud-tpu-v1 GRPC library for google-cloud-tpu com.google.cloud google-cloud-tpu-parent - 2.68.0 + 2.69.0 diff --git a/java-tpu/grpc-google-cloud-tpu-v2/pom.xml b/java-tpu/grpc-google-cloud-tpu-v2/pom.xml index 08bc5609b3f4..e8d8031be24f 100644 --- a/java-tpu/grpc-google-cloud-tpu-v2/pom.xml +++ b/java-tpu/grpc-google-cloud-tpu-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tpu-v2 - 2.68.0 + 2.69.0 grpc-google-cloud-tpu-v2 GRPC library for google-cloud-tpu com.google.cloud google-cloud-tpu-parent - 2.68.0 + 2.69.0 diff --git a/java-tpu/grpc-google-cloud-tpu-v2alpha1/pom.xml b/java-tpu/grpc-google-cloud-tpu-v2alpha1/pom.xml index 0ad8bf8c94e2..ca390c4828bc 100644 --- a/java-tpu/grpc-google-cloud-tpu-v2alpha1/pom.xml +++ b/java-tpu/grpc-google-cloud-tpu-v2alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tpu-v2alpha1 - 2.68.0 + 2.69.0 grpc-google-cloud-tpu-v2alpha1 GRPC library for google-cloud-tpu com.google.cloud google-cloud-tpu-parent - 2.68.0 + 2.69.0 diff --git a/java-tpu/pom.xml b/java-tpu/pom.xml index fff4454b3b61..08bbadc192e8 100644 --- a/java-tpu/pom.xml +++ b/java-tpu/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tpu-parent pom - 2.68.0 + 2.69.0 Google Cloud TPU Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.cloud google-cloud-tpu - 2.68.0 + 2.69.0 com.google.api.grpc proto-google-cloud-tpu-v2 - 2.68.0 + 2.69.0 com.google.api.grpc grpc-google-cloud-tpu-v2 - 2.68.0 + 2.69.0 com.google.api.grpc proto-google-cloud-tpu-v2alpha1 - 2.68.0 + 2.69.0 com.google.api.grpc grpc-google-cloud-tpu-v2alpha1 - 2.68.0 + 2.69.0 com.google.api.grpc grpc-google-cloud-tpu-v1 - 2.68.0 + 2.69.0 com.google.api.grpc proto-google-cloud-tpu-v1 - 2.68.0 + 2.69.0 diff --git a/java-tpu/proto-google-cloud-tpu-v1/pom.xml b/java-tpu/proto-google-cloud-tpu-v1/pom.xml index 2532e838ccae..6eb00b17a82b 100644 --- a/java-tpu/proto-google-cloud-tpu-v1/pom.xml +++ b/java-tpu/proto-google-cloud-tpu-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tpu-v1 - 2.68.0 + 2.69.0 proto-google-cloud-tpu-v1 Proto library for google-cloud-tpu com.google.cloud google-cloud-tpu-parent - 2.68.0 + 2.69.0 diff --git a/java-tpu/proto-google-cloud-tpu-v2/pom.xml b/java-tpu/proto-google-cloud-tpu-v2/pom.xml index 19e2a88477a1..3a0235db75be 100644 --- a/java-tpu/proto-google-cloud-tpu-v2/pom.xml +++ b/java-tpu/proto-google-cloud-tpu-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tpu-v2 - 2.68.0 + 2.69.0 proto-google-cloud-tpu-v2 Proto library for google-cloud-tpu com.google.cloud google-cloud-tpu-parent - 2.68.0 + 2.69.0 diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/pom.xml b/java-tpu/proto-google-cloud-tpu-v2alpha1/pom.xml index 8f35a61d87ff..8d2ce67944a2 100644 --- a/java-tpu/proto-google-cloud-tpu-v2alpha1/pom.xml +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tpu-v2alpha1 - 2.68.0 + 2.69.0 proto-google-cloud-tpu-v2alpha1 Proto library for google-cloud-tpu com.google.cloud google-cloud-tpu-parent - 2.68.0 + 2.69.0 diff --git a/java-trace/CHANGELOG.md b/java-trace/CHANGELOG.md index da4aa63bf50c..63a906c6176f 100644 --- a/java-trace/CHANGELOG.md +++ b/java-trace/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.68.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.67.0 (2025-06-25) ### Dependencies diff --git a/java-trace/README.md b/java-trace/README.md index bc10780c1035..cbec23c5e425 100644 --- a/java-trace/README.md +++ b/java-trace/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-trace - 2.66.0 + 2.67.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-trace:2.66.0' +implementation 'com.google.cloud:google-cloud-trace:2.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-trace" % "2.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-trace" % "2.67.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-trace/2.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-trace/google-cloud-trace-bom/pom.xml b/java-trace/google-cloud-trace-bom/pom.xml index 34e194cb971a..2415abeee207 100644 --- a/java-trace/google-cloud-trace-bom/pom.xml +++ b/java-trace/google-cloud-trace-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-trace-bom - 2.67.0 + 2.68.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-trace - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-trace-v1 - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-trace-v2 - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-cloud-trace-v1 - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-cloud-trace-v2 - 2.67.0 + 2.68.0 diff --git a/java-trace/google-cloud-trace/pom.xml b/java-trace/google-cloud-trace/pom.xml index 3f86b06ff01f..78c63ae4187d 100644 --- a/java-trace/google-cloud-trace/pom.xml +++ b/java-trace/google-cloud-trace/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-trace - 2.67.0 + 2.68.0 jar Google Cloud Trace @@ -12,7 +12,7 @@ com.google.cloud google-cloud-trace-parent - 2.67.0 + 2.68.0 google-cloud-trace diff --git a/java-trace/grpc-google-cloud-trace-v1/pom.xml b/java-trace/grpc-google-cloud-trace-v1/pom.xml index 7c19fe47238b..2deaecba1b72 100644 --- a/java-trace/grpc-google-cloud-trace-v1/pom.xml +++ b/java-trace/grpc-google-cloud-trace-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-trace-v1 - 2.67.0 + 2.68.0 grpc-google-cloud-trace-v1 GRPC library for grpc-google-cloud-trace-v1 com.google.cloud google-cloud-trace-parent - 2.67.0 + 2.68.0 diff --git a/java-trace/grpc-google-cloud-trace-v2/pom.xml b/java-trace/grpc-google-cloud-trace-v2/pom.xml index 0bac267f13ee..daeaea25689f 100644 --- a/java-trace/grpc-google-cloud-trace-v2/pom.xml +++ b/java-trace/grpc-google-cloud-trace-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-trace-v2 - 2.67.0 + 2.68.0 grpc-google-cloud-trace-v2 GRPC library for grpc-google-cloud-trace-v2 com.google.cloud google-cloud-trace-parent - 2.67.0 + 2.68.0 diff --git a/java-trace/pom.xml b/java-trace/pom.xml index 9ed55b3c3b8d..403c95e6b1b4 100644 --- a/java-trace/pom.xml +++ b/java-trace/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-trace-parent pom - 2.67.0 + 2.68.0 Google Cloud Trace Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-trace-v1 - 2.67.0 + 2.68.0 com.google.cloud google-cloud-trace - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-cloud-trace-v2 - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-trace-v1 - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-trace-v2 - 2.67.0 + 2.68.0 diff --git a/java-trace/proto-google-cloud-trace-v1/pom.xml b/java-trace/proto-google-cloud-trace-v1/pom.xml index 40b8569fd90b..09af68bc3d74 100644 --- a/java-trace/proto-google-cloud-trace-v1/pom.xml +++ b/java-trace/proto-google-cloud-trace-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-trace-v1 - 2.67.0 + 2.68.0 proto-google-cloud-trace-v1 PROTO library for proto-google-cloud-trace-v1 com.google.cloud google-cloud-trace-parent - 2.67.0 + 2.68.0 diff --git a/java-trace/proto-google-cloud-trace-v2/pom.xml b/java-trace/proto-google-cloud-trace-v2/pom.xml index 2decbd454df5..3fd8bb7dafcc 100644 --- a/java-trace/proto-google-cloud-trace-v2/pom.xml +++ b/java-trace/proto-google-cloud-trace-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-trace-v2 - 2.67.0 + 2.68.0 proto-google-cloud-trace-v2 PROTO library for proto-google-cloud-trace-v2 com.google.cloud google-cloud-trace-parent - 2.67.0 + 2.68.0 diff --git a/java-translate/CHANGELOG.md b/java-translate/CHANGELOG.md index 8e7944ecba8c..6a913429964e 100644 --- a/java-translate/CHANGELOG.md +++ b/java-translate/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.68.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.67.0 (2025-06-25) ### Bug Fixes diff --git a/java-translate/README.md b/java-translate/README.md index 9bdb7b72cb00..9b20823d40eb 100644 --- a/java-translate/README.md +++ b/java-translate/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-translate - 2.66.0 + 2.67.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-translate:2.66.0' +implementation 'com.google.cloud:google-cloud-translate:2.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-translate" % "2.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-translate" % "2.67.0" ``` ## Authentication @@ -271,7 +271,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-translate/2.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-translate/google-cloud-translate-bom/pom.xml b/java-translate/google-cloud-translate-bom/pom.xml index 553f25e4060c..50f0c5b27bd6 100644 --- a/java-translate/google-cloud-translate-bom/pom.xml +++ b/java-translate/google-cloud-translate-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-translate-bom - 2.67.0 + 2.68.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-translate - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-translate-v3beta1 - 0.149.0 + 0.150.0 com.google.api.grpc grpc-google-cloud-translate-v3 - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-cloud-translate-v3beta1 - 0.149.0 + 0.150.0 com.google.api.grpc proto-google-cloud-translate-v3 - 2.67.0 + 2.68.0 diff --git a/java-translate/google-cloud-translate/pom.xml b/java-translate/google-cloud-translate/pom.xml index 6c3d8b716d24..274f51317c3f 100644 --- a/java-translate/google-cloud-translate/pom.xml +++ b/java-translate/google-cloud-translate/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-translate - 2.67.0 + 2.68.0 jar Google Cloud Translate Java idiomatic client for Google Cloud Translate com.google.cloud google-cloud-translate-parent - 2.67.0 + 2.68.0 google-cloud-translate diff --git a/java-translate/grpc-google-cloud-translate-v3/pom.xml b/java-translate/grpc-google-cloud-translate-v3/pom.xml index c52a98d4a27f..2b9b26096227 100644 --- a/java-translate/grpc-google-cloud-translate-v3/pom.xml +++ b/java-translate/grpc-google-cloud-translate-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-translate-v3 - 2.67.0 + 2.68.0 grpc-google-cloud-translate-v3 GRPC library for grpc-google-cloud-translate-v3 com.google.cloud google-cloud-translate-parent - 2.67.0 + 2.68.0 diff --git a/java-translate/grpc-google-cloud-translate-v3beta1/pom.xml b/java-translate/grpc-google-cloud-translate-v3beta1/pom.xml index 8eb42d101e31..a6b3467f4191 100644 --- a/java-translate/grpc-google-cloud-translate-v3beta1/pom.xml +++ b/java-translate/grpc-google-cloud-translate-v3beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-translate-v3beta1 - 0.149.0 + 0.150.0 grpc-google-cloud-translate-v3beta1 GRPC library for grpc-google-cloud-translate-v3beta1 com.google.cloud google-cloud-translate-parent - 2.67.0 + 2.68.0 diff --git a/java-translate/pom.xml b/java-translate/pom.xml index 35f40463ea44..42528c469511 100644 --- a/java-translate/pom.xml +++ b/java-translate/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-translate-parent pom - 2.67.0 + 2.68.0 Google Cloud Translate Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-translate-v3beta1 - 0.149.0 + 0.150.0 com.google.api.grpc proto-google-cloud-translate-v3 - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-translate-v3beta1 - 0.149.0 + 0.150.0 com.google.api.grpc grpc-google-cloud-translate-v3 - 2.67.0 + 2.68.0 com.google.cloud google-cloud-translate - 2.67.0 + 2.68.0 diff --git a/java-translate/proto-google-cloud-translate-v3/pom.xml b/java-translate/proto-google-cloud-translate-v3/pom.xml index 94139701798b..4667710d7895 100644 --- a/java-translate/proto-google-cloud-translate-v3/pom.xml +++ b/java-translate/proto-google-cloud-translate-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-translate-v3 - 2.67.0 + 2.68.0 proto-google-cloud-translate-v3 PROTO library for proto-google-cloud-translate-v3 com.google.cloud google-cloud-translate-parent - 2.67.0 + 2.68.0 diff --git a/java-translate/proto-google-cloud-translate-v3beta1/pom.xml b/java-translate/proto-google-cloud-translate-v3beta1/pom.xml index 9e4b228c8d0e..a4050ef9e38b 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/pom.xml +++ b/java-translate/proto-google-cloud-translate-v3beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-translate-v3beta1 - 0.149.0 + 0.150.0 proto-google-cloud-translate-v3beta1 PROTO library for proto-google-cloud-translate-v3beta1 com.google.cloud google-cloud-translate-parent - 2.67.0 + 2.68.0 diff --git a/java-valkey/CHANGELOG.md b/java-valkey/CHANGELOG.md index 3fbf4f902cf1..2214b4b8a59f 100644 --- a/java-valkey/CHANGELOG.md +++ b/java-valkey/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.14.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.13.0 (2025-06-25) ### Dependencies diff --git a/java-valkey/README.md b/java-valkey/README.md index 682e663efb7b..6403e2258307 100644 --- a/java-valkey/README.md +++ b/java-valkey/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-valkey - 0.12.0 + 0.13.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-valkey:0.12.0' +implementation 'com.google.cloud:google-cloud-valkey:0.13.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-valkey" % "0.12.0" +libraryDependencies += "com.google.cloud" % "google-cloud-valkey" % "0.13.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.12.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-valkey/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-valkey/google-cloud-valkey-bom/pom.xml b/java-valkey/google-cloud-valkey-bom/pom.xml index b703de0b14a1..38d6595068cb 100644 --- a/java-valkey/google-cloud-valkey-bom/pom.xml +++ b/java-valkey/google-cloud-valkey-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-valkey-bom - 0.13.0 + 0.14.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-valkey - 0.13.0 + 0.14.0 com.google.api.grpc proto-google-cloud-valkey-v1 - 0.13.0 + 0.14.0 com.google.api.grpc proto-google-cloud-valkey-v1beta - 0.13.0 + 0.14.0 diff --git a/java-valkey/google-cloud-valkey/pom.xml b/java-valkey/google-cloud-valkey/pom.xml index 2b4d60e86788..96b7072491f9 100644 --- a/java-valkey/google-cloud-valkey/pom.xml +++ b/java-valkey/google-cloud-valkey/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-valkey - 0.13.0 + 0.14.0 jar Google Memorystore API Memorystore API Memorystore for Valkey is a fully managed Valkey Cluster service for Google Cloud. com.google.cloud google-cloud-valkey-parent - 0.13.0 + 0.14.0 google-cloud-valkey diff --git a/java-valkey/pom.xml b/java-valkey/pom.xml index d0b3f1dbb631..7d53dd58c21e 100644 --- a/java-valkey/pom.xml +++ b/java-valkey/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-valkey-parent pom - 0.13.0 + 0.14.0 Google Memorystore API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-valkey - 0.13.0 + 0.14.0 com.google.api.grpc proto-google-cloud-valkey-v1 - 0.13.0 + 0.14.0 com.google.api.grpc proto-google-cloud-valkey-v1beta - 0.13.0 + 0.14.0 diff --git a/java-valkey/proto-google-cloud-valkey-v1/pom.xml b/java-valkey/proto-google-cloud-valkey-v1/pom.xml index d9ead9f03fb1..01d8e144abc4 100644 --- a/java-valkey/proto-google-cloud-valkey-v1/pom.xml +++ b/java-valkey/proto-google-cloud-valkey-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-valkey-v1 - 0.13.0 + 0.14.0 proto-google-cloud-valkey-v1 Proto library for google-cloud-valkey com.google.cloud google-cloud-valkey-parent - 0.13.0 + 0.14.0 diff --git a/java-valkey/proto-google-cloud-valkey-v1beta/pom.xml b/java-valkey/proto-google-cloud-valkey-v1beta/pom.xml index 008bfc66fb92..5010c552afa5 100644 --- a/java-valkey/proto-google-cloud-valkey-v1beta/pom.xml +++ b/java-valkey/proto-google-cloud-valkey-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-valkey-v1beta - 0.13.0 + 0.14.0 proto-google-cloud-valkey-v1beta Proto library for google-cloud-valkey com.google.cloud google-cloud-valkey-parent - 0.13.0 + 0.14.0 diff --git a/java-vertexai/CHANGELOG.md b/java-vertexai/CHANGELOG.md index b760a1157566..ad707298ce3f 100644 --- a/java-vertexai/CHANGELOG.md +++ b/java-vertexai/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 1.28.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 1.27.0 (2025-06-25) ### Bug Fixes diff --git a/java-vertexai/README.md b/java-vertexai/README.md index 1247e9cf3e77..7a0e23470011 100644 --- a/java-vertexai/README.md +++ b/java-vertexai/README.md @@ -48,20 +48,20 @@ If you're using Maven without the BOM, add the following to your dependencies: com.google.cloud google-cloud-vertexai - 1.27.0 + 1.28.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vertexai:1.27.0' +implementation 'com.google.cloud:google-cloud-vertexai:1.28.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vertexai" % "1.27.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vertexai" % "1.28.0" ``` diff --git a/java-vertexai/google-cloud-vertexai-bom/pom.xml b/java-vertexai/google-cloud-vertexai-bom/pom.xml index 14417b25e5ac..d6c0a5c6a690 100644 --- a/java-vertexai/google-cloud-vertexai-bom/pom.xml +++ b/java-vertexai/google-cloud-vertexai-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-vertexai-bom - 1.27.0 + 1.28.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-vertexai - 1.27.0 + 1.28.0 com.google.api.grpc grpc-google-cloud-vertexai-v1 - 1.27.0 + 1.28.0 com.google.api.grpc proto-google-cloud-vertexai-v1 - 1.27.0 + 1.28.0 diff --git a/java-vertexai/google-cloud-vertexai/pom.xml b/java-vertexai/google-cloud-vertexai/pom.xml index 59323a51049f..da0c3a7c75e2 100644 --- a/java-vertexai/google-cloud-vertexai/pom.xml +++ b/java-vertexai/google-cloud-vertexai/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-vertexai - 1.27.0 + 1.28.0 jar Google VertexAI API Vertex AI is an integrated suite of machine learning tools and services @@ -25,7 +25,7 @@ com.google.cloud google-cloud-vertexai-parent - 1.27.0 + 1.28.0 google-cloud-vertexai diff --git a/java-vertexai/grpc-google-cloud-vertexai-v1/pom.xml b/java-vertexai/grpc-google-cloud-vertexai-v1/pom.xml index 2c257fbf7da8..7f647e089eff 100644 --- a/java-vertexai/grpc-google-cloud-vertexai-v1/pom.xml +++ b/java-vertexai/grpc-google-cloud-vertexai-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vertexai-v1 - 1.27.0 + 1.28.0 grpc-google-cloud-vertexai-v1 GRPC library for google-cloud-vertexai com.google.cloud google-cloud-vertexai-parent - 1.27.0 + 1.28.0 diff --git a/java-vertexai/pom.xml b/java-vertexai/pom.xml index cb8f8cdf036d..e2b724e39010 100644 --- a/java-vertexai/pom.xml +++ b/java-vertexai/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-vertexai-parent pom - 1.27.0 + 1.28.0 Google VertexAI API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-vertexai - 1.27.0 + 1.28.0 com.google.api.grpc grpc-google-cloud-vertexai-v1 - 1.27.0 + 1.28.0 com.google.api.grpc proto-google-cloud-vertexai-v1 - 1.27.0 + 1.28.0 diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/pom.xml b/java-vertexai/proto-google-cloud-vertexai-v1/pom.xml index 818af260da4e..7a77aedcc504 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/pom.xml +++ b/java-vertexai/proto-google-cloud-vertexai-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vertexai-v1 - 1.27.0 + 1.28.0 proto-google-cloud-vertexai-v1 Proto library for google-cloud-vertexai com.google.cloud google-cloud-vertexai-parent - 1.27.0 + 1.28.0 diff --git a/java-video-intelligence/CHANGELOG.md b/java-video-intelligence/CHANGELOG.md index 2c657ffb214b..a93fd1dd4cfd 100644 --- a/java-video-intelligence/CHANGELOG.md +++ b/java-video-intelligence/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.67.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.66.0 (2025-06-25) ### Dependencies diff --git a/java-video-intelligence/README.md b/java-video-intelligence/README.md index 23f1babe4497..d277b45aabed 100644 --- a/java-video-intelligence/README.md +++ b/java-video-intelligence/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-video-intelligence - 2.65.0 + 2.66.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-video-intelligence:2.65.0' +implementation 'com.google.cloud:google-cloud-video-intelligence:2.66.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-video-intelligence" % "2.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-video-intelligence" % "2.66.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.65.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-intelligence/2.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-video-intelligence/google-cloud-video-intelligence-bom/pom.xml b/java-video-intelligence/google-cloud-video-intelligence-bom/pom.xml index 3edda00b8467..9c1aabf6f9ff 100644 --- a/java-video-intelligence/google-cloud-video-intelligence-bom/pom.xml +++ b/java-video-intelligence/google-cloud-video-intelligence-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-video-intelligence-bom - 2.66.0 + 2.67.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -23,57 +23,57 @@ com.google.cloud google-cloud-video-intelligence - 2.66.0 + 2.67.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p1beta1 - 0.156.0 + 0.157.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1beta2 - 0.156.0 + 0.157.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1 - 2.66.0 + 2.67.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p2beta1 - 0.156.0 + 0.157.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p3beta1 - 0.156.0 + 0.157.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p3beta1 - 0.156.0 + 0.157.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1beta2 - 0.156.0 + 0.157.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p1beta1 - 0.156.0 + 0.157.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1 - 2.66.0 + 2.67.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p2beta1 - 0.156.0 + 0.157.0 diff --git a/java-video-intelligence/google-cloud-video-intelligence/pom.xml b/java-video-intelligence/google-cloud-video-intelligence/pom.xml index 71b32ef3bbc1..ac0cc326002c 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/pom.xml +++ b/java-video-intelligence/google-cloud-video-intelligence/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-video-intelligence - 2.66.0 + 2.67.0 jar Google Cloud Video Intelligence Java idiomatic client for Google Cloud Video Intelligence com.google.cloud google-cloud-video-intelligence-parent - 2.66.0 + 2.67.0 google-cloud-video-intelligence diff --git a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1/pom.xml b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1/pom.xml index 6a7c6f98dd2c..00f2748045d7 100644 --- a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1/pom.xml +++ b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1 - 2.66.0 + 2.67.0 grpc-google-cloud-video-intelligence-v1 GRPC library for grpc-google-cloud-video-intelligence-v1 com.google.cloud google-cloud-video-intelligence-parent - 2.66.0 + 2.67.0 diff --git a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1beta2/pom.xml b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1beta2/pom.xml index da9aad2c2acd..cee90794f81a 100644 --- a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1beta2/pom.xml +++ b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1beta2 - 0.156.0 + 0.157.0 grpc-google-cloud-video-intelligence-v1beta2 GRPC library for grpc-google-cloud-video-intelligence-v1beta2 com.google.cloud google-cloud-video-intelligence-parent - 2.66.0 + 2.67.0 diff --git a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p1beta1/pom.xml b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p1beta1/pom.xml index 37ff1d94aa96..099db1eb345e 100644 --- a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p1beta1/pom.xml +++ b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p1beta1 - 0.156.0 + 0.157.0 grpc-google-cloud-video-intelligence-v1p1beta1 GRPC library for grpc-google-cloud-video-intelligence-v1p1beta1 com.google.cloud google-cloud-video-intelligence-parent - 2.66.0 + 2.67.0 diff --git a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml index ae1325d1da32..e84938bc8fb2 100644 --- a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml +++ b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p2beta1 - 0.156.0 + 0.157.0 grpc-google-cloud-video-intelligence-v1p2beta1 GRPC library for grpc-google-cloud-video-intelligence-v1p2beta1 com.google.cloud google-cloud-video-intelligence-parent - 2.66.0 + 2.67.0 diff --git a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p3beta1/pom.xml b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p3beta1/pom.xml index e6b2e360dde7..c8ae77d1288c 100644 --- a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p3beta1/pom.xml +++ b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p3beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p3beta1 - 0.156.0 + 0.157.0 grpc-google-cloud-video-intelligence-v1p3beta1 GRPC library for grpc-google-cloud-video-intelligence-v1p3beta1 com.google.cloud google-cloud-video-intelligence-parent - 2.66.0 + 2.67.0 diff --git a/java-video-intelligence/pom.xml b/java-video-intelligence/pom.xml index 8f27966bbc15..0ad08a85d5a6 100644 --- a/java-video-intelligence/pom.xml +++ b/java-video-intelligence/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-video-intelligence-parent pom - 2.66.0 + 2.67.0 Google Cloud Video Intelligence Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,62 +29,62 @@ com.google.api.grpc proto-google-cloud-video-intelligence-v1p3beta1 - 0.156.0 + 0.157.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1beta2 - 0.156.0 + 0.157.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p1beta1 - 0.156.0 + 0.157.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1 - 2.66.0 + 2.67.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p2beta1 - 0.156.0 + 0.157.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p1beta1 - 0.156.0 + 0.157.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1beta2 - 0.156.0 + 0.157.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1 - 2.66.0 + 2.67.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p2beta1 - 0.156.0 + 0.157.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p3beta1 - 0.156.0 + 0.157.0 com.google.cloud google-cloud-video-intelligence - 2.66.0 + 2.67.0 com.google.cloud google-cloud-video-intelligence-bom - 2.66.0 + 2.67.0 diff --git a/java-video-intelligence/proto-google-cloud-video-intelligence-v1/pom.xml b/java-video-intelligence/proto-google-cloud-video-intelligence-v1/pom.xml index 5a315582090a..5b227222d3bb 100644 --- a/java-video-intelligence/proto-google-cloud-video-intelligence-v1/pom.xml +++ b/java-video-intelligence/proto-google-cloud-video-intelligence-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1 - 2.66.0 + 2.67.0 proto-google-cloud-video-intelligence-v1 PROTO library for proto-google-cloud-video-intelligence-v1 com.google.cloud google-cloud-video-intelligence-parent - 2.66.0 + 2.67.0 diff --git a/java-video-intelligence/proto-google-cloud-video-intelligence-v1beta2/pom.xml b/java-video-intelligence/proto-google-cloud-video-intelligence-v1beta2/pom.xml index f95c16657288..6264f9fe898a 100644 --- a/java-video-intelligence/proto-google-cloud-video-intelligence-v1beta2/pom.xml +++ b/java-video-intelligence/proto-google-cloud-video-intelligence-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1beta2 - 0.156.0 + 0.157.0 proto-google-cloud-video-intelligence-v1beta2 PROTO library for proto-google-cloud-video-intelligence-v1beta2 com.google.cloud google-cloud-video-intelligence-parent - 2.66.0 + 2.67.0 diff --git a/java-video-intelligence/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml b/java-video-intelligence/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml index 9c08e04aa1e1..bfb94d451b0b 100644 --- a/java-video-intelligence/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml +++ b/java-video-intelligence/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p1beta1 - 0.156.0 + 0.157.0 proto-google-cloud-video-intelligence-v1p1beta1 PROTO library for proto-google-cloud-video-intelligence-v1p1beta1 com.google.cloud google-cloud-video-intelligence-parent - 2.66.0 + 2.67.0 diff --git a/java-video-intelligence/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml b/java-video-intelligence/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml index 6238847c6ed7..f2d141df0129 100644 --- a/java-video-intelligence/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml +++ b/java-video-intelligence/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p2beta1 - 0.156.0 + 0.157.0 proto-google-cloud-video-intelligence-v1p2beta1 PROTO library for proto-google-cloud-video-intelligence-v1p2beta1 com.google.cloud google-cloud-video-intelligence-parent - 2.66.0 + 2.67.0 diff --git a/java-video-intelligence/proto-google-cloud-video-intelligence-v1p3beta1/pom.xml b/java-video-intelligence/proto-google-cloud-video-intelligence-v1p3beta1/pom.xml index 4934a702e625..f63a9ad54a37 100644 --- a/java-video-intelligence/proto-google-cloud-video-intelligence-v1p3beta1/pom.xml +++ b/java-video-intelligence/proto-google-cloud-video-intelligence-v1p3beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p3beta1 - 0.156.0 + 0.157.0 proto-google-cloud-video-intelligence-v1p3beta1 PROTO library for proto-google-cloud-video-intelligence-v1p3beta1 com.google.cloud google-cloud-video-intelligence-parent - 2.66.0 + 2.67.0 diff --git a/java-video-live-stream/CHANGELOG.md b/java-video-live-stream/CHANGELOG.md index 7cae1cd21d87..4196f69fb2ac 100644 --- a/java-video-live-stream/CHANGELOG.md +++ b/java-video-live-stream/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.70.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.69.0 (2025-06-25) ### Dependencies diff --git a/java-video-live-stream/README.md b/java-video-live-stream/README.md index 1fe44caa15c6..0a897e8a5382 100644 --- a/java-video-live-stream/README.md +++ b/java-video-live-stream/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-live-stream - 0.68.0 + 0.69.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-live-stream:0.68.0' +implementation 'com.google.cloud:google-cloud-live-stream:0.69.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-live-stream" % "0.68.0" +libraryDependencies += "com.google.cloud" % "google-cloud-live-stream" % "0.69.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-live-stream.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-live-stream/0.68.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-live-stream/0.69.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/google-cloud-live-stream-bom/pom.xml b/java-video-live-stream/google-cloud-live-stream-bom/pom.xml index 60bbd94d4f41..2f912c9a55b2 100644 --- a/java-video-live-stream/google-cloud-live-stream-bom/pom.xml +++ b/java-video-live-stream/google-cloud-live-stream-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-live-stream-bom - 0.69.0 + 0.70.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-live-stream - 0.69.0 + 0.70.0 com.google.api.grpc grpc-google-cloud-live-stream-v1 - 0.69.0 + 0.70.0 com.google.api.grpc proto-google-cloud-live-stream-v1 - 0.69.0 + 0.70.0 diff --git a/java-video-live-stream/google-cloud-live-stream/pom.xml b/java-video-live-stream/google-cloud-live-stream/pom.xml index 7c6b881eef2f..2a7b8115cc6d 100644 --- a/java-video-live-stream/google-cloud-live-stream/pom.xml +++ b/java-video-live-stream/google-cloud-live-stream/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-live-stream - 0.69.0 + 0.70.0 jar Google Cloud Live Stream Cloud Live Stream 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. com.google.cloud google-cloud-live-stream-parent - 0.69.0 + 0.70.0 google-cloud-live-stream diff --git a/java-video-live-stream/grpc-google-cloud-live-stream-v1/pom.xml b/java-video-live-stream/grpc-google-cloud-live-stream-v1/pom.xml index 9ac40950a9c7..ad01b3495d79 100644 --- a/java-video-live-stream/grpc-google-cloud-live-stream-v1/pom.xml +++ b/java-video-live-stream/grpc-google-cloud-live-stream-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-live-stream-v1 - 0.69.0 + 0.70.0 grpc-google-cloud-live-stream-v1 GRPC library for google-cloud-live-stream com.google.cloud google-cloud-live-stream-parent - 0.69.0 + 0.70.0 diff --git a/java-video-live-stream/pom.xml b/java-video-live-stream/pom.xml index 1041a304babc..0d859a5abf7c 100644 --- a/java-video-live-stream/pom.xml +++ b/java-video-live-stream/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-live-stream-parent pom - 0.69.0 + 0.70.0 Google Cloud Live Stream Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-live-stream - 0.69.0 + 0.70.0 com.google.api.grpc grpc-google-cloud-live-stream-v1 - 0.69.0 + 0.70.0 com.google.api.grpc proto-google-cloud-live-stream-v1 - 0.69.0 + 0.70.0 diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/pom.xml b/java-video-live-stream/proto-google-cloud-live-stream-v1/pom.xml index 2451a48ece5c..019c4e158aab 100644 --- a/java-video-live-stream/proto-google-cloud-live-stream-v1/pom.xml +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-live-stream-v1 - 0.69.0 + 0.70.0 proto-google-cloud-live-stream-v1 Proto library for google-cloud-live-stream com.google.cloud google-cloud-live-stream-parent - 0.69.0 + 0.70.0 diff --git a/java-video-stitcher/CHANGELOG.md b/java-video-stitcher/CHANGELOG.md index 5cb0e5b8889d..24e2a13319b5 100644 --- a/java-video-stitcher/CHANGELOG.md +++ b/java-video-stitcher/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.68.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.67.0 (2025-06-25) ### Dependencies diff --git a/java-video-stitcher/README.md b/java-video-stitcher/README.md index 36ae2be74256..97e19e9d70e0 100644 --- a/java-video-stitcher/README.md +++ b/java-video-stitcher/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-video-stitcher - 0.66.0 + 0.67.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-video-stitcher:0.66.0' +implementation 'com.google.cloud:google-cloud-video-stitcher:0.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-video-stitcher" % "0.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-video-stitcher" % "0.67.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-stitcher/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-video-stitcher/google-cloud-video-stitcher-bom/pom.xml b/java-video-stitcher/google-cloud-video-stitcher-bom/pom.xml index 80d361dfce3b..5e78b30213f4 100644 --- a/java-video-stitcher/google-cloud-video-stitcher-bom/pom.xml +++ b/java-video-stitcher/google-cloud-video-stitcher-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-video-stitcher-bom - 0.67.0 + 0.68.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-video-stitcher - 0.67.0 + 0.68.0 com.google.api.grpc grpc-google-cloud-video-stitcher-v1 - 0.67.0 + 0.68.0 com.google.api.grpc proto-google-cloud-video-stitcher-v1 - 0.67.0 + 0.68.0 diff --git a/java-video-stitcher/google-cloud-video-stitcher/pom.xml b/java-video-stitcher/google-cloud-video-stitcher/pom.xml index 97371066ceec..d27b642ac0c4 100644 --- a/java-video-stitcher/google-cloud-video-stitcher/pom.xml +++ b/java-video-stitcher/google-cloud-video-stitcher/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-video-stitcher - 0.67.0 + 0.68.0 jar Google Video Stitcher API Video Stitcher API allows you to manipulate video content to dynamically insert ads prior to delivery to client devices. com.google.cloud google-cloud-video-stitcher-parent - 0.67.0 + 0.68.0 google-cloud-video-stitcher diff --git a/java-video-stitcher/grpc-google-cloud-video-stitcher-v1/pom.xml b/java-video-stitcher/grpc-google-cloud-video-stitcher-v1/pom.xml index 1a2adc4d1d40..0d4e3ad3fff5 100644 --- a/java-video-stitcher/grpc-google-cloud-video-stitcher-v1/pom.xml +++ b/java-video-stitcher/grpc-google-cloud-video-stitcher-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-video-stitcher-v1 - 0.67.0 + 0.68.0 grpc-google-cloud-video-stitcher-v1 GRPC library for google-cloud-video-stitcher com.google.cloud google-cloud-video-stitcher-parent - 0.67.0 + 0.68.0 diff --git a/java-video-stitcher/pom.xml b/java-video-stitcher/pom.xml index d2f789046b07..0a30a6d9fe69 100644 --- a/java-video-stitcher/pom.xml +++ b/java-video-stitcher/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-video-stitcher-parent pom - 0.67.0 + 0.68.0 Google Video Stitcher API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-video-stitcher - 0.67.0 + 0.68.0 com.google.api.grpc grpc-google-cloud-video-stitcher-v1 - 0.67.0 + 0.68.0 com.google.api.grpc proto-google-cloud-video-stitcher-v1 - 0.67.0 + 0.68.0 diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/pom.xml b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/pom.xml index 7a8770f062c8..d9729aff5706 100644 --- a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/pom.xml +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-video-stitcher-v1 - 0.67.0 + 0.68.0 proto-google-cloud-video-stitcher-v1 Proto library for google-cloud-video-stitcher com.google.cloud google-cloud-video-stitcher-parent - 0.67.0 + 0.68.0 diff --git a/java-video-transcoder/CHANGELOG.md b/java-video-transcoder/CHANGELOG.md index 80fea9a6f31e..c6be69f59bb8 100644 --- a/java-video-transcoder/CHANGELOG.md +++ b/java-video-transcoder/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 1.67.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 1.66.0 (2025-06-25) ### Dependencies diff --git a/java-video-transcoder/README.md b/java-video-transcoder/README.md index b114beb123bd..db45550742a2 100644 --- a/java-video-transcoder/README.md +++ b/java-video-transcoder/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-video-transcoder - 1.65.0 + 1.66.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-video-transcoder:1.65.0' +implementation 'com.google.cloud:google-cloud-video-transcoder:1.66.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-video-transcoder" % "1.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-video-transcoder" % "1.66.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.65.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-transcoder/1.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-video-transcoder/google-cloud-video-transcoder-bom/pom.xml b/java-video-transcoder/google-cloud-video-transcoder-bom/pom.xml index a77dd4e0ad4e..9d339029ee8f 100644 --- a/java-video-transcoder/google-cloud-video-transcoder-bom/pom.xml +++ b/java-video-transcoder/google-cloud-video-transcoder-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-video-transcoder-bom - 1.66.0 + 1.67.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-video-transcoder - 1.66.0 + 1.67.0 com.google.api.grpc grpc-google-cloud-video-transcoder-v1 - 1.66.0 + 1.67.0 com.google.api.grpc proto-google-cloud-video-transcoder-v1 - 1.66.0 + 1.67.0 diff --git a/java-video-transcoder/google-cloud-video-transcoder/pom.xml b/java-video-transcoder/google-cloud-video-transcoder/pom.xml index ad970dced9dc..24286b36f1d1 100644 --- a/java-video-transcoder/google-cloud-video-transcoder/pom.xml +++ b/java-video-transcoder/google-cloud-video-transcoder/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-video-transcoder - 1.66.0 + 1.67.0 jar Google Video Transcoder 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. com.google.cloud google-cloud-video-transcoder-parent - 1.66.0 + 1.67.0 google-cloud-video-transcoder diff --git a/java-video-transcoder/grpc-google-cloud-video-transcoder-v1/pom.xml b/java-video-transcoder/grpc-google-cloud-video-transcoder-v1/pom.xml index 84230b6b24cd..d4429e1f1a72 100644 --- a/java-video-transcoder/grpc-google-cloud-video-transcoder-v1/pom.xml +++ b/java-video-transcoder/grpc-google-cloud-video-transcoder-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-video-transcoder-v1 - 1.66.0 + 1.67.0 grpc-google-cloud-video-transcoder-v1 GRPC library for google-cloud-video-transcoder com.google.cloud google-cloud-video-transcoder-parent - 1.66.0 + 1.67.0 diff --git a/java-video-transcoder/pom.xml b/java-video-transcoder/pom.xml index e506368eeb66..ce50ca16d36a 100644 --- a/java-video-transcoder/pom.xml +++ b/java-video-transcoder/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-video-transcoder-parent pom - 1.66.0 + 1.67.0 Google Video Transcoder Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-video-transcoder - 1.66.0 + 1.67.0 com.google.api.grpc proto-google-cloud-video-transcoder-v1 - 1.66.0 + 1.67.0 com.google.api.grpc grpc-google-cloud-video-transcoder-v1 - 1.66.0 + 1.67.0 diff --git a/java-video-transcoder/proto-google-cloud-video-transcoder-v1/pom.xml b/java-video-transcoder/proto-google-cloud-video-transcoder-v1/pom.xml index e30ea11a9c69..2ca1ff29df18 100644 --- a/java-video-transcoder/proto-google-cloud-video-transcoder-v1/pom.xml +++ b/java-video-transcoder/proto-google-cloud-video-transcoder-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-video-transcoder-v1 - 1.66.0 + 1.67.0 proto-google-cloud-video-transcoder-v1 Proto library for google-cloud-video-transcoder com.google.cloud google-cloud-video-transcoder-parent - 1.66.0 + 1.67.0 diff --git a/java-vision/CHANGELOG.md b/java-vision/CHANGELOG.md index 1e85b998ab8c..f5414723fed7 100644 --- a/java-vision/CHANGELOG.md +++ b/java-vision/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 3.66.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 3.65.0 (2025-06-25) ### Dependencies diff --git a/java-vision/README.md b/java-vision/README.md index 377ab73b5443..d883825e384d 100644 --- a/java-vision/README.md +++ b/java-vision/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-vision - 3.64.0 + 3.65.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vision:3.64.0' +implementation 'com.google.cloud:google-cloud-vision:3.65.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vision" % "3.64.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vision" % "3.65.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.64.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vision/3.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-vision/google-cloud-vision-bom/pom.xml b/java-vision/google-cloud-vision-bom/pom.xml index cb04c35a2b46..8c14aed4b6f1 100644 --- a/java-vision/google-cloud-vision-bom/pom.xml +++ b/java-vision/google-cloud-vision-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-vision-bom - 3.65.0 + 3.66.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -23,57 +23,57 @@ com.google.cloud google-cloud-vision - 3.65.0 + 3.66.0 com.google.api.grpc grpc-google-cloud-vision-v1p3beta1 - 0.154.0 + 0.155.0 com.google.api.grpc grpc-google-cloud-vision-v1p1beta1 - 0.154.0 + 0.155.0 com.google.api.grpc grpc-google-cloud-vision-v1p4beta1 - 0.154.0 + 0.155.0 com.google.api.grpc grpc-google-cloud-vision-v1p2beta1 - 3.65.0 + 3.66.0 com.google.api.grpc grpc-google-cloud-vision-v1 - 3.65.0 + 3.66.0 com.google.api.grpc proto-google-cloud-vision-v1p4beta1 - 0.154.0 + 0.155.0 com.google.api.grpc proto-google-cloud-vision-v1 - 3.65.0 + 3.66.0 com.google.api.grpc proto-google-cloud-vision-v1p1beta1 - 0.154.0 + 0.155.0 com.google.api.grpc proto-google-cloud-vision-v1p3beta1 - 0.154.0 + 0.155.0 com.google.api.grpc proto-google-cloud-vision-v1p2beta1 - 3.65.0 + 3.66.0 diff --git a/java-vision/google-cloud-vision/pom.xml b/java-vision/google-cloud-vision/pom.xml index 6c6e6fcab06a..b74496d69ce8 100644 --- a/java-vision/google-cloud-vision/pom.xml +++ b/java-vision/google-cloud-vision/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-vision - 3.65.0 + 3.66.0 jar Google Cloud Vision Java idiomatic client for Google Cloud Vision com.google.cloud google-cloud-vision-parent - 3.65.0 + 3.66.0 google-cloud-vision diff --git a/java-vision/grpc-google-cloud-vision-v1/pom.xml b/java-vision/grpc-google-cloud-vision-v1/pom.xml index e830aaa26d91..663bf8ba0fdd 100644 --- a/java-vision/grpc-google-cloud-vision-v1/pom.xml +++ b/java-vision/grpc-google-cloud-vision-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vision-v1 - 3.65.0 + 3.66.0 grpc-google-cloud-vision-v1 GRPC library for grpc-google-cloud-vision-v1 com.google.cloud google-cloud-vision-parent - 3.65.0 + 3.66.0 diff --git a/java-vision/grpc-google-cloud-vision-v1p1beta1/pom.xml b/java-vision/grpc-google-cloud-vision-v1p1beta1/pom.xml index 0e5819a45edb..13186f7d0f9a 100644 --- a/java-vision/grpc-google-cloud-vision-v1p1beta1/pom.xml +++ b/java-vision/grpc-google-cloud-vision-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vision-v1p1beta1 - 0.154.0 + 0.155.0 grpc-google-cloud-vision-v1p1beta1 GRPC library for grpc-google-cloud-vision-v1p1beta1 com.google.cloud google-cloud-vision-parent - 3.65.0 + 3.66.0 diff --git a/java-vision/grpc-google-cloud-vision-v1p2beta1/pom.xml b/java-vision/grpc-google-cloud-vision-v1p2beta1/pom.xml index ab7127788a57..cddadb105dfd 100644 --- a/java-vision/grpc-google-cloud-vision-v1p2beta1/pom.xml +++ b/java-vision/grpc-google-cloud-vision-v1p2beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vision-v1p2beta1 - 3.65.0 + 3.66.0 grpc-google-cloud-vision-v1p2beta1 GRPC library for grpc-google-cloud-vision-v1p2beta1 com.google.cloud google-cloud-vision-parent - 3.65.0 + 3.66.0 diff --git a/java-vision/grpc-google-cloud-vision-v1p3beta1/pom.xml b/java-vision/grpc-google-cloud-vision-v1p3beta1/pom.xml index 4b0eddde2fc3..01f69630d0a2 100644 --- a/java-vision/grpc-google-cloud-vision-v1p3beta1/pom.xml +++ b/java-vision/grpc-google-cloud-vision-v1p3beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vision-v1p3beta1 - 0.154.0 + 0.155.0 grpc-google-cloud-vision-v1p3beta1 GRPC library for grpc-google-cloud-vision-v1p3beta1 com.google.cloud google-cloud-vision-parent - 3.65.0 + 3.66.0 diff --git a/java-vision/grpc-google-cloud-vision-v1p4beta1/pom.xml b/java-vision/grpc-google-cloud-vision-v1p4beta1/pom.xml index 316225d59365..f1dd51ae1aaf 100644 --- a/java-vision/grpc-google-cloud-vision-v1p4beta1/pom.xml +++ b/java-vision/grpc-google-cloud-vision-v1p4beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vision-v1p4beta1 - 0.154.0 + 0.155.0 grpc-google-cloud-vision-v1p4beta1 GRPC library for grpc-google-cloud-vision-v1p4beta1 com.google.cloud google-cloud-vision-parent - 3.65.0 + 3.66.0 diff --git a/java-vision/pom.xml b/java-vision/pom.xml index 966733726ef3..b89399c71990 100644 --- a/java-vision/pom.xml +++ b/java-vision/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-vision-parent pom - 3.65.0 + 3.66.0 Google Cloud Vision Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,57 +29,57 @@ com.google.api.grpc proto-google-cloud-vision-v1p4beta1 - 0.154.0 + 0.155.0 com.google.api.grpc proto-google-cloud-vision-v1 - 3.65.0 + 3.66.0 com.google.api.grpc proto-google-cloud-vision-v1p1beta1 - 0.154.0 + 0.155.0 com.google.api.grpc proto-google-cloud-vision-v1p3beta1 - 0.154.0 + 0.155.0 com.google.api.grpc proto-google-cloud-vision-v1p2beta1 - 3.65.0 + 3.66.0 com.google.api.grpc grpc-google-cloud-vision-v1p3beta1 - 0.154.0 + 0.155.0 com.google.api.grpc grpc-google-cloud-vision-v1p1beta1 - 0.154.0 + 0.155.0 com.google.api.grpc grpc-google-cloud-vision-v1p4beta1 - 0.154.0 + 0.155.0 com.google.api.grpc grpc-google-cloud-vision-v1p2beta1 - 3.65.0 + 3.66.0 com.google.api.grpc grpc-google-cloud-vision-v1 - 3.65.0 + 3.66.0 com.google.cloud google-cloud-vision - 3.65.0 + 3.66.0 diff --git a/java-vision/proto-google-cloud-vision-v1/pom.xml b/java-vision/proto-google-cloud-vision-v1/pom.xml index 3f5ffe271526..f35519736e7e 100644 --- a/java-vision/proto-google-cloud-vision-v1/pom.xml +++ b/java-vision/proto-google-cloud-vision-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vision-v1 - 3.65.0 + 3.66.0 proto-google-cloud-vision-v1 PROTO library for proto-google-cloud-vision-v1 com.google.cloud google-cloud-vision-parent - 3.65.0 + 3.66.0 diff --git a/java-vision/proto-google-cloud-vision-v1p1beta1/pom.xml b/java-vision/proto-google-cloud-vision-v1p1beta1/pom.xml index bd50478fdc7f..7cb2b5c62bcd 100644 --- a/java-vision/proto-google-cloud-vision-v1p1beta1/pom.xml +++ b/java-vision/proto-google-cloud-vision-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vision-v1p1beta1 - 0.154.0 + 0.155.0 proto-google-cloud-vision-v1p1beta1 PROTO library for proto-google-cloud-vision-v1p1beta1 com.google.cloud google-cloud-vision-parent - 3.65.0 + 3.66.0 diff --git a/java-vision/proto-google-cloud-vision-v1p2beta1/pom.xml b/java-vision/proto-google-cloud-vision-v1p2beta1/pom.xml index dfe8d3a5c2d9..1770567afd09 100644 --- a/java-vision/proto-google-cloud-vision-v1p2beta1/pom.xml +++ b/java-vision/proto-google-cloud-vision-v1p2beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vision-v1p2beta1 - 3.65.0 + 3.66.0 proto-google-cloud-vision-v1p2beta1 PROTO library for proto-google-cloud-vision-v1p2beta1 com.google.cloud google-cloud-vision-parent - 3.65.0 + 3.66.0 diff --git a/java-vision/proto-google-cloud-vision-v1p3beta1/pom.xml b/java-vision/proto-google-cloud-vision-v1p3beta1/pom.xml index fcc732760a72..b65f7a01a5e4 100644 --- a/java-vision/proto-google-cloud-vision-v1p3beta1/pom.xml +++ b/java-vision/proto-google-cloud-vision-v1p3beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vision-v1p3beta1 - 0.154.0 + 0.155.0 proto-google-cloud-vision-v1p3beta1 PROTO library for proto-google-cloud-vision-v1p3beta1 com.google.cloud google-cloud-vision-parent - 3.65.0 + 3.66.0 diff --git a/java-vision/proto-google-cloud-vision-v1p4beta1/pom.xml b/java-vision/proto-google-cloud-vision-v1p4beta1/pom.xml index fa79c55a03c9..cf6e4c53bc4e 100644 --- a/java-vision/proto-google-cloud-vision-v1p4beta1/pom.xml +++ b/java-vision/proto-google-cloud-vision-v1p4beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vision-v1p4beta1 - 0.154.0 + 0.155.0 proto-google-cloud-vision-v1p4beta1 PROTO library for proto-google-cloud-vision-v1p4beta1 com.google.cloud google-cloud-vision-parent - 3.65.0 + 3.66.0 diff --git a/java-visionai/CHANGELOG.md b/java-visionai/CHANGELOG.md index 4a9cf418aa29..b0275fa770dd 100644 --- a/java-visionai/CHANGELOG.md +++ b/java-visionai/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.25.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.24.0 (2025-06-25) ### Dependencies diff --git a/java-visionai/README.md b/java-visionai/README.md index f139359acdbb..d261636085c4 100644 --- a/java-visionai/README.md +++ b/java-visionai/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-visionai - 0.23.0 + 0.24.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-visionai:0.23.0' +implementation 'com.google.cloud:google-cloud-visionai:0.24.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-visionai" % "0.23.0" +libraryDependencies += "com.google.cloud" % "google-cloud-visionai" % "0.24.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-visionai.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-visionai/0.23.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-visionai/0.24.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/google-cloud-visionai-bom/pom.xml b/java-visionai/google-cloud-visionai-bom/pom.xml index dff70ec142ff..3b9ad5198b0f 100644 --- a/java-visionai/google-cloud-visionai-bom/pom.xml +++ b/java-visionai/google-cloud-visionai-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-visionai-bom - 0.24.0 + 0.25.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-visionai - 0.24.0 + 0.25.0 com.google.api.grpc grpc-google-cloud-visionai-v1 - 0.24.0 + 0.25.0 com.google.api.grpc proto-google-cloud-visionai-v1 - 0.24.0 + 0.25.0 diff --git a/java-visionai/google-cloud-visionai/pom.xml b/java-visionai/google-cloud-visionai/pom.xml index 788b235fa860..2f05ad2a8300 100644 --- a/java-visionai/google-cloud-visionai/pom.xml +++ b/java-visionai/google-cloud-visionai/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-visionai - 0.24.0 + 0.25.0 jar Google Vision AI API Vision AI API Vertex AI Vision is an AI-powered platform to ingest, analyze and store video data. com.google.cloud google-cloud-visionai-parent - 0.24.0 + 0.25.0 google-cloud-visionai diff --git a/java-visionai/grpc-google-cloud-visionai-v1/pom.xml b/java-visionai/grpc-google-cloud-visionai-v1/pom.xml index 41f1076215d1..9eb63e33a8ad 100644 --- a/java-visionai/grpc-google-cloud-visionai-v1/pom.xml +++ b/java-visionai/grpc-google-cloud-visionai-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-visionai-v1 - 0.24.0 + 0.25.0 grpc-google-cloud-visionai-v1 GRPC library for google-cloud-visionai com.google.cloud google-cloud-visionai-parent - 0.24.0 + 0.25.0 diff --git a/java-visionai/pom.xml b/java-visionai/pom.xml index 123d73f8b791..7fa3c5b8f8c4 100644 --- a/java-visionai/pom.xml +++ b/java-visionai/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-visionai-parent pom - 0.24.0 + 0.25.0 Google Vision AI API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-visionai - 0.24.0 + 0.25.0 com.google.api.grpc grpc-google-cloud-visionai-v1 - 0.24.0 + 0.25.0 com.google.api.grpc proto-google-cloud-visionai-v1 - 0.24.0 + 0.25.0 diff --git a/java-visionai/proto-google-cloud-visionai-v1/pom.xml b/java-visionai/proto-google-cloud-visionai-v1/pom.xml index 61072c112007..0cd826f45374 100644 --- a/java-visionai/proto-google-cloud-visionai-v1/pom.xml +++ b/java-visionai/proto-google-cloud-visionai-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-visionai-v1 - 0.24.0 + 0.25.0 proto-google-cloud-visionai-v1 Proto library for google-cloud-visionai com.google.cloud google-cloud-visionai-parent - 0.24.0 + 0.25.0 diff --git a/java-vmmigration/CHANGELOG.md b/java-vmmigration/CHANGELOG.md index 8988853153cc..cb47eda4fd60 100644 --- a/java-vmmigration/CHANGELOG.md +++ b/java-vmmigration/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 1.68.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 1.67.0 (2025-06-25) ### Dependencies diff --git a/java-vmmigration/README.md b/java-vmmigration/README.md index 47a41782bc9c..61d39009cd85 100644 --- a/java-vmmigration/README.md +++ b/java-vmmigration/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-vmmigration - 1.66.0 + 1.67.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vmmigration:1.66.0' +implementation 'com.google.cloud:google-cloud-vmmigration:1.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vmmigration" % "1.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vmmigration" % "1.67.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmmigration/1.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-vmmigration/google-cloud-vmmigration-bom/pom.xml b/java-vmmigration/google-cloud-vmmigration-bom/pom.xml index 4479db3c5cf2..509a9128f1a0 100644 --- a/java-vmmigration/google-cloud-vmmigration-bom/pom.xml +++ b/java-vmmigration/google-cloud-vmmigration-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-vmmigration-bom - 1.67.0 + 1.68.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-vmmigration - 1.67.0 + 1.68.0 com.google.api.grpc grpc-google-cloud-vmmigration-v1 - 1.67.0 + 1.68.0 com.google.api.grpc proto-google-cloud-vmmigration-v1 - 1.67.0 + 1.68.0 diff --git a/java-vmmigration/google-cloud-vmmigration/pom.xml b/java-vmmigration/google-cloud-vmmigration/pom.xml index ce8bc1923e25..e6158f6a9ada 100644 --- a/java-vmmigration/google-cloud-vmmigration/pom.xml +++ b/java-vmmigration/google-cloud-vmmigration/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-vmmigration - 1.67.0 + 1.68.0 jar Google VM Migration VM Migration 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. com.google.cloud google-cloud-vmmigration-parent - 1.67.0 + 1.68.0 google-cloud-vmmigration diff --git a/java-vmmigration/grpc-google-cloud-vmmigration-v1/pom.xml b/java-vmmigration/grpc-google-cloud-vmmigration-v1/pom.xml index 596e30488a5c..70fb2f5b81a6 100644 --- a/java-vmmigration/grpc-google-cloud-vmmigration-v1/pom.xml +++ b/java-vmmigration/grpc-google-cloud-vmmigration-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vmmigration-v1 - 1.67.0 + 1.68.0 grpc-google-cloud-vmmigration-v1 GRPC library for google-cloud-vmmigration com.google.cloud google-cloud-vmmigration-parent - 1.67.0 + 1.68.0 diff --git a/java-vmmigration/pom.xml b/java-vmmigration/pom.xml index 4a5b0cf7a103..c3841b69c484 100644 --- a/java-vmmigration/pom.xml +++ b/java-vmmigration/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-vmmigration-parent pom - 1.67.0 + 1.68.0 Google VM Migration Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-vmmigration - 1.67.0 + 1.68.0 com.google.api.grpc grpc-google-cloud-vmmigration-v1 - 1.67.0 + 1.68.0 com.google.api.grpc proto-google-cloud-vmmigration-v1 - 1.67.0 + 1.68.0 diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/pom.xml b/java-vmmigration/proto-google-cloud-vmmigration-v1/pom.xml index 4291bdac57b7..3adf65916ad0 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/pom.xml +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vmmigration-v1 - 1.67.0 + 1.68.0 proto-google-cloud-vmmigration-v1 Proto library for google-cloud-vmmigration com.google.cloud google-cloud-vmmigration-parent - 1.67.0 + 1.68.0 diff --git a/java-vmwareengine/CHANGELOG.md b/java-vmwareengine/CHANGELOG.md index f3377ddddd51..3bacb0500a8f 100644 --- a/java-vmwareengine/CHANGELOG.md +++ b/java-vmwareengine/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.62.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.61.0 (2025-06-25) ### Dependencies diff --git a/java-vmwareengine/README.md b/java-vmwareengine/README.md index b64cd10f9b7c..b7e0abddc983 100644 --- a/java-vmwareengine/README.md +++ b/java-vmwareengine/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-vmwareengine - 0.60.0 + 0.61.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vmwareengine:0.60.0' +implementation 'com.google.cloud:google-cloud-vmwareengine:0.61.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vmwareengine" % "0.60.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vmwareengine" % "0.61.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-vmwareengine.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmwareengine/0.60.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmwareengine/0.61.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/google-cloud-vmwareengine-bom/pom.xml b/java-vmwareengine/google-cloud-vmwareengine-bom/pom.xml index 1f8996afc1fc..ee15b6011ac5 100644 --- a/java-vmwareengine/google-cloud-vmwareengine-bom/pom.xml +++ b/java-vmwareengine/google-cloud-vmwareengine-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-vmwareengine-bom - 0.61.0 + 0.62.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-vmwareengine - 0.61.0 + 0.62.0 com.google.api.grpc grpc-google-cloud-vmwareengine-v1 - 0.61.0 + 0.62.0 com.google.api.grpc proto-google-cloud-vmwareengine-v1 - 0.61.0 + 0.62.0 diff --git a/java-vmwareengine/google-cloud-vmwareengine/pom.xml b/java-vmwareengine/google-cloud-vmwareengine/pom.xml index 5d87adf27672..7d3773007569 100644 --- a/java-vmwareengine/google-cloud-vmwareengine/pom.xml +++ b/java-vmwareengine/google-cloud-vmwareengine/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-vmwareengine - 0.61.0 + 0.62.0 jar Google Google Cloud VMware Engine Google Cloud VMware Engine Easily lift and shift your VMware-based applications to Google Cloud without changes to your apps, tools, or processes. com.google.cloud google-cloud-vmwareengine-parent - 0.61.0 + 0.62.0 google-cloud-vmwareengine diff --git a/java-vmwareengine/grpc-google-cloud-vmwareengine-v1/pom.xml b/java-vmwareengine/grpc-google-cloud-vmwareengine-v1/pom.xml index 9ec75ac383ae..1d9aa925b40e 100644 --- a/java-vmwareengine/grpc-google-cloud-vmwareengine-v1/pom.xml +++ b/java-vmwareengine/grpc-google-cloud-vmwareengine-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vmwareengine-v1 - 0.61.0 + 0.62.0 grpc-google-cloud-vmwareengine-v1 GRPC library for google-cloud-vmwareengine com.google.cloud google-cloud-vmwareengine-parent - 0.61.0 + 0.62.0 diff --git a/java-vmwareengine/pom.xml b/java-vmwareengine/pom.xml index 347398c92925..08d7454fba03 100644 --- a/java-vmwareengine/pom.xml +++ b/java-vmwareengine/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-vmwareengine-parent pom - 0.61.0 + 0.62.0 Google Google Cloud VMware Engine Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-vmwareengine - 0.61.0 + 0.62.0 com.google.api.grpc grpc-google-cloud-vmwareengine-v1 - 0.61.0 + 0.62.0 com.google.api.grpc proto-google-cloud-vmwareengine-v1 - 0.61.0 + 0.62.0 diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/pom.xml b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/pom.xml index 60989c6a6f25..ca9884825791 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/pom.xml +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vmwareengine-v1 - 0.61.0 + 0.62.0 proto-google-cloud-vmwareengine-v1 Proto library for google-cloud-vmwareengine com.google.cloud google-cloud-vmwareengine-parent - 0.61.0 + 0.62.0 diff --git a/java-vpcaccess/CHANGELOG.md b/java-vpcaccess/CHANGELOG.md index 9f0b0040bae8..fc872493ef46 100644 --- a/java-vpcaccess/CHANGELOG.md +++ b/java-vpcaccess/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.69.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.68.0 (2025-06-25) ### Dependencies diff --git a/java-vpcaccess/README.md b/java-vpcaccess/README.md index 9faea447cced..454e8b633351 100644 --- a/java-vpcaccess/README.md +++ b/java-vpcaccess/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-vpcaccess - 2.67.0 + 2.68.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vpcaccess:2.67.0' +implementation 'com.google.cloud:google-cloud-vpcaccess:2.68.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vpcaccess" % "2.67.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vpcaccess" % "2.68.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.67.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vpcaccess/2.68.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/google-cloud-vpcaccess-bom/pom.xml b/java-vpcaccess/google-cloud-vpcaccess-bom/pom.xml index 1e8f4399120c..c1afaacc6189 100644 --- a/java-vpcaccess/google-cloud-vpcaccess-bom/pom.xml +++ b/java-vpcaccess/google-cloud-vpcaccess-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-vpcaccess-bom - 2.68.0 + 2.69.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-vpcaccess - 2.68.0 + 2.69.0 com.google.api.grpc grpc-google-cloud-vpcaccess-v1 - 2.68.0 + 2.69.0 com.google.api.grpc proto-google-cloud-vpcaccess-v1 - 2.68.0 + 2.69.0 diff --git a/java-vpcaccess/google-cloud-vpcaccess/pom.xml b/java-vpcaccess/google-cloud-vpcaccess/pom.xml index 0eb4b901b609..4f742dcc4862 100644 --- a/java-vpcaccess/google-cloud-vpcaccess/pom.xml +++ b/java-vpcaccess/google-cloud-vpcaccess/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-vpcaccess - 2.68.0 + 2.69.0 jar Google Serverless VPC Access Serverless VPC Access 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. com.google.cloud google-cloud-vpcaccess-parent - 2.68.0 + 2.69.0 google-cloud-vpcaccess diff --git a/java-vpcaccess/grpc-google-cloud-vpcaccess-v1/pom.xml b/java-vpcaccess/grpc-google-cloud-vpcaccess-v1/pom.xml index 1ae6b304d334..c413702a3ccf 100644 --- a/java-vpcaccess/grpc-google-cloud-vpcaccess-v1/pom.xml +++ b/java-vpcaccess/grpc-google-cloud-vpcaccess-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vpcaccess-v1 - 2.68.0 + 2.69.0 grpc-google-cloud-vpcaccess-v1 GRPC library for google-cloud-vpcaccess com.google.cloud google-cloud-vpcaccess-parent - 2.68.0 + 2.69.0 diff --git a/java-vpcaccess/pom.xml b/java-vpcaccess/pom.xml index c76493574e8a..cedea6383f2c 100644 --- a/java-vpcaccess/pom.xml +++ b/java-vpcaccess/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-vpcaccess-parent pom - 2.68.0 + 2.69.0 Google Serverless VPC Access Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-vpcaccess - 2.68.0 + 2.69.0 com.google.api.grpc grpc-google-cloud-vpcaccess-v1 - 2.68.0 + 2.69.0 com.google.api.grpc proto-google-cloud-vpcaccess-v1 - 2.68.0 + 2.69.0 diff --git a/java-vpcaccess/proto-google-cloud-vpcaccess-v1/pom.xml b/java-vpcaccess/proto-google-cloud-vpcaccess-v1/pom.xml index e360e0218259..aec979264a29 100644 --- a/java-vpcaccess/proto-google-cloud-vpcaccess-v1/pom.xml +++ b/java-vpcaccess/proto-google-cloud-vpcaccess-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vpcaccess-v1 - 2.68.0 + 2.69.0 proto-google-cloud-vpcaccess-v1 Proto library for google-cloud-vpcaccess com.google.cloud google-cloud-vpcaccess-parent - 2.68.0 + 2.69.0 diff --git a/java-webrisk/CHANGELOG.md b/java-webrisk/CHANGELOG.md index acca26031aca..332ea2a41942 100644 --- a/java-webrisk/CHANGELOG.md +++ b/java-webrisk/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.67.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.66.0 (2025-06-25) ### Dependencies diff --git a/java-webrisk/README.md b/java-webrisk/README.md index 830129f56600..4b1384f01856 100644 --- a/java-webrisk/README.md +++ b/java-webrisk/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-webrisk - 2.65.0 + 2.66.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-webrisk:2.65.0' +implementation 'com.google.cloud:google-cloud-webrisk:2.66.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-webrisk" % "2.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-webrisk" % "2.66.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.65.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-webrisk/2.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-webrisk/google-cloud-webrisk-bom/pom.xml b/java-webrisk/google-cloud-webrisk-bom/pom.xml index ed2ee0d74c71..4ba58ae0bff4 100644 --- a/java-webrisk/google-cloud-webrisk-bom/pom.xml +++ b/java-webrisk/google-cloud-webrisk-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-webrisk-bom - 2.66.0 + 2.67.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-webrisk - 2.66.0 + 2.67.0 com.google.api.grpc grpc-google-cloud-webrisk-v1 - 2.66.0 + 2.67.0 com.google.api.grpc grpc-google-cloud-webrisk-v1beta1 - 0.103.0 + 0.104.0 com.google.api.grpc proto-google-cloud-webrisk-v1 - 2.66.0 + 2.67.0 com.google.api.grpc proto-google-cloud-webrisk-v1beta1 - 0.103.0 + 0.104.0 diff --git a/java-webrisk/google-cloud-webrisk/pom.xml b/java-webrisk/google-cloud-webrisk/pom.xml index e5b1536d9df0..e2122656b652 100644 --- a/java-webrisk/google-cloud-webrisk/pom.xml +++ b/java-webrisk/google-cloud-webrisk/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-webrisk - 2.66.0 + 2.67.0 jar Google Cloud Web Risk Java idiomatic client for Google Cloud Web Risk com.google.cloud google-cloud-webrisk-parent - 2.66.0 + 2.67.0 google-cloud-webrisk diff --git a/java-webrisk/grpc-google-cloud-webrisk-v1/pom.xml b/java-webrisk/grpc-google-cloud-webrisk-v1/pom.xml index c98bfeaacedf..eabf77ea063a 100644 --- a/java-webrisk/grpc-google-cloud-webrisk-v1/pom.xml +++ b/java-webrisk/grpc-google-cloud-webrisk-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-webrisk-v1 - 2.66.0 + 2.67.0 grpc-google-cloud-webrisk-v1 GRPC library for grpc-google-cloud-webrisk-v1 com.google.cloud google-cloud-webrisk-parent - 2.66.0 + 2.67.0 diff --git a/java-webrisk/grpc-google-cloud-webrisk-v1beta1/pom.xml b/java-webrisk/grpc-google-cloud-webrisk-v1beta1/pom.xml index 29f9805c3d2c..be5c3b5e4b58 100644 --- a/java-webrisk/grpc-google-cloud-webrisk-v1beta1/pom.xml +++ b/java-webrisk/grpc-google-cloud-webrisk-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-webrisk-v1beta1 - 0.103.0 + 0.104.0 grpc-google-cloud-webrisk-v1beta1 GRPC library for grpc-google-cloud-webrisk-v1beta1 com.google.cloud google-cloud-webrisk-parent - 2.66.0 + 2.67.0 diff --git a/java-webrisk/pom.xml b/java-webrisk/pom.xml index fdf481046d24..ed9ce90a4f29 100644 --- a/java-webrisk/pom.xml +++ b/java-webrisk/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-webrisk-parent pom - 2.66.0 + 2.67.0 Google Cloud Web Risk Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-webrisk-v1 - 2.66.0 + 2.67.0 com.google.api.grpc proto-google-cloud-webrisk-v1beta1 - 0.103.0 + 0.104.0 com.google.api.grpc grpc-google-cloud-webrisk-v1 - 2.66.0 + 2.67.0 com.google.api.grpc grpc-google-cloud-webrisk-v1beta1 - 0.103.0 + 0.104.0 com.google.cloud google-cloud-webrisk - 2.66.0 + 2.67.0 diff --git a/java-webrisk/proto-google-cloud-webrisk-v1/pom.xml b/java-webrisk/proto-google-cloud-webrisk-v1/pom.xml index 5be35b3ae2f9..c79df8bdeb21 100644 --- a/java-webrisk/proto-google-cloud-webrisk-v1/pom.xml +++ b/java-webrisk/proto-google-cloud-webrisk-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-webrisk-v1 - 2.66.0 + 2.67.0 proto-google-cloud-webrisk-v1 PROTO library for proto-google-cloud-webrisk-v1 com.google.cloud google-cloud-webrisk-parent - 2.66.0 + 2.67.0 diff --git a/java-webrisk/proto-google-cloud-webrisk-v1beta1/pom.xml b/java-webrisk/proto-google-cloud-webrisk-v1beta1/pom.xml index 97620b0171bc..8d33c249bd85 100644 --- a/java-webrisk/proto-google-cloud-webrisk-v1beta1/pom.xml +++ b/java-webrisk/proto-google-cloud-webrisk-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-webrisk-v1beta1 - 0.103.0 + 0.104.0 proto-google-cloud-webrisk-v1beta1 PROTO library for proto-google-cloud-webrisk-v1beta1 com.google.cloud google-cloud-webrisk-parent - 2.66.0 + 2.67.0 diff --git a/java-websecurityscanner/CHANGELOG.md b/java-websecurityscanner/CHANGELOG.md index 2538faf754e8..62fef807861e 100644 --- a/java-websecurityscanner/CHANGELOG.md +++ b/java-websecurityscanner/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.68.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.67.0 (2025-06-25) ### Dependencies diff --git a/java-websecurityscanner/README.md b/java-websecurityscanner/README.md index c9cf53502088..9c9d8bb51f7c 100644 --- a/java-websecurityscanner/README.md +++ b/java-websecurityscanner/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-websecurityscanner - 2.66.0 + 2.67.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-websecurityscanner:2.66.0' +implementation 'com.google.cloud:google-cloud-websecurityscanner:2.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-websecurityscanner" % "2.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-websecurityscanner" % "2.67.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-websecurityscanner/2.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-websecurityscanner/google-cloud-websecurityscanner-bom/pom.xml b/java-websecurityscanner/google-cloud-websecurityscanner-bom/pom.xml index 5d1e7dbf0acc..ae5f66188e56 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner-bom/pom.xml +++ b/java-websecurityscanner/google-cloud-websecurityscanner-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-websecurityscanner-bom - 2.67.0 + 2.68.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -23,37 +23,37 @@ com.google.cloud google-cloud-websecurityscanner - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1alpha - 0.154.0 + 0.155.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1beta - 0.154.0 + 0.155.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1 - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1alpha - 0.154.0 + 0.155.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1beta - 0.154.0 + 0.155.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1 - 2.67.0 + 2.68.0 diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/pom.xml b/java-websecurityscanner/google-cloud-websecurityscanner/pom.xml index fa1ab9cbbda1..21fd4352adf1 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/pom.xml +++ b/java-websecurityscanner/google-cloud-websecurityscanner/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-websecurityscanner - 2.67.0 + 2.68.0 jar Google Cloud Web Security Scanner Java idiomatic client for Google Cloud Web Security Scanner com.google.cloud google-cloud-websecurityscanner-parent - 2.67.0 + 2.68.0 google-cloud-websecurityscanner diff --git a/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1/pom.xml b/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1/pom.xml index 85ec131083d1..a20a2abb6d91 100644 --- a/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1/pom.xml +++ b/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1 - 2.67.0 + 2.68.0 grpc-google-cloud-websecurityscanner-v1 GRPC library for grpc-google-cloud-websecurityscanner-v1 com.google.cloud google-cloud-websecurityscanner-parent - 2.67.0 + 2.68.0 diff --git a/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml b/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml index 16331863e1c0..f27ee480d624 100644 --- a/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml +++ b/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1alpha - 0.154.0 + 0.155.0 grpc-google-cloud-websecurityscanner-v1alpha GRPC library for grpc-google-cloud-websecurityscanner-v1alpha com.google.cloud google-cloud-websecurityscanner-parent - 2.67.0 + 2.68.0 diff --git a/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1beta/pom.xml b/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1beta/pom.xml index 4ff1d764484b..6cac8b00cb7e 100644 --- a/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1beta/pom.xml +++ b/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1beta - 0.154.0 + 0.155.0 grpc-google-cloud-websecurityscanner-v1beta GRPC library for grpc-google-cloud-websecurityscanner-v1beta com.google.cloud google-cloud-websecurityscanner-parent - 2.67.0 + 2.68.0 diff --git a/java-websecurityscanner/pom.xml b/java-websecurityscanner/pom.xml index 60af53698f2e..68625597bae8 100644 --- a/java-websecurityscanner/pom.xml +++ b/java-websecurityscanner/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-websecurityscanner-parent pom - 2.67.0 + 2.68.0 Google Cloud Web Security Scanner Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.api.grpc proto-google-cloud-websecurityscanner-v1alpha - 0.154.0 + 0.155.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1beta - 0.154.0 + 0.155.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1 - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1alpha - 0.154.0 + 0.155.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1beta - 0.154.0 + 0.155.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1 - 2.67.0 + 2.68.0 com.google.cloud google-cloud-websecurityscanner - 2.67.0 + 2.68.0 diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/pom.xml b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/pom.xml index 2b0eeb2bcdfa..4154244983d2 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/pom.xml +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1 - 2.67.0 + 2.68.0 proto-google-cloud-websecurityscanner-v1 PROTO library for proto-google-cloud-websecurityscanner-v1 com.google.cloud google-cloud-websecurityscanner-parent - 2.67.0 + 2.68.0 diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/pom.xml b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/pom.xml index ffc21776777d..8ff8d7bd76a1 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/pom.xml +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1alpha - 0.154.0 + 0.155.0 proto-google-cloud-websecurityscanner-v1alpha PROTO library for proto-google-cloud-websecurityscanner-v1alpha com.google.cloud google-cloud-websecurityscanner-parent - 2.67.0 + 2.68.0 diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/pom.xml b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/pom.xml index b134dea598fc..7a37f3b5ce48 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/pom.xml +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1beta - 0.154.0 + 0.155.0 proto-google-cloud-websecurityscanner-v1beta PROTO library for proto-google-cloud-websecurityscanner-v1beta com.google.cloud google-cloud-websecurityscanner-parent - 2.67.0 + 2.68.0 diff --git a/java-workflow-executions/CHANGELOG.md b/java-workflow-executions/CHANGELOG.md index 8b08ebae263f..bdb479bc0c9e 100644 --- a/java-workflow-executions/CHANGELOG.md +++ b/java-workflow-executions/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.68.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.67.0 (2025-06-25) ### Dependencies diff --git a/java-workflow-executions/README.md b/java-workflow-executions/README.md index 996944d66dd5..e06bcfeb7d6b 100644 --- a/java-workflow-executions/README.md +++ b/java-workflow-executions/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-workflow-executions - 2.66.0 + 2.67.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workflow-executions:2.66.0' +implementation 'com.google.cloud:google-cloud-workflow-executions:2.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workflow-executions" % "2.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workflow-executions" % "2.67.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflow-executions/2.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-workflow-executions/google-cloud-workflow-executions-bom/pom.xml b/java-workflow-executions/google-cloud-workflow-executions-bom/pom.xml index 01677d66c710..404888301343 100644 --- a/java-workflow-executions/google-cloud-workflow-executions-bom/pom.xml +++ b/java-workflow-executions/google-cloud-workflow-executions-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-workflow-executions-bom - 2.67.0 + 2.68.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-workflow-executions - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-workflow-executions-v1beta - 0.71.0 + 0.72.0 com.google.api.grpc grpc-google-cloud-workflow-executions-v1 - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-cloud-workflow-executions-v1beta - 0.71.0 + 0.72.0 com.google.api.grpc proto-google-cloud-workflow-executions-v1 - 2.67.0 + 2.68.0 diff --git a/java-workflow-executions/google-cloud-workflow-executions/pom.xml b/java-workflow-executions/google-cloud-workflow-executions/pom.xml index badcab87671b..1fcea6a6e123 100644 --- a/java-workflow-executions/google-cloud-workflow-executions/pom.xml +++ b/java-workflow-executions/google-cloud-workflow-executions/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-workflow-executions - 2.67.0 + 2.68.0 jar Google Cloud Workflow Executions allows you to ochestrate and automate Google Cloud and HTTP-based API services with serverless workflows. com.google.cloud google-cloud-workflow-executions-parent - 2.67.0 + 2.68.0 google-cloud-workflow-executions diff --git a/java-workflow-executions/grpc-google-cloud-workflow-executions-v1/pom.xml b/java-workflow-executions/grpc-google-cloud-workflow-executions-v1/pom.xml index fedf0efff269..d625669404fc 100644 --- a/java-workflow-executions/grpc-google-cloud-workflow-executions-v1/pom.xml +++ b/java-workflow-executions/grpc-google-cloud-workflow-executions-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-workflow-executions-v1 - 2.67.0 + 2.68.0 grpc-google-cloud-workflow-executions-v1 GRPC library for google-cloud-workflow-executions com.google.cloud google-cloud-workflow-executions-parent - 2.67.0 + 2.68.0 diff --git a/java-workflow-executions/grpc-google-cloud-workflow-executions-v1beta/pom.xml b/java-workflow-executions/grpc-google-cloud-workflow-executions-v1beta/pom.xml index a264c458306c..62e29ee78944 100644 --- a/java-workflow-executions/grpc-google-cloud-workflow-executions-v1beta/pom.xml +++ b/java-workflow-executions/grpc-google-cloud-workflow-executions-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-workflow-executions-v1beta - 0.71.0 + 0.72.0 grpc-google-cloud-workflow-executions-v1beta GRPC library for google-cloud-workflow-executions com.google.cloud google-cloud-workflow-executions-parent - 2.67.0 + 2.68.0 diff --git a/java-workflow-executions/pom.xml b/java-workflow-executions/pom.xml index d20af0d29cb9..aa294d210f13 100644 --- a/java-workflow-executions/pom.xml +++ b/java-workflow-executions/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-workflow-executions-parent pom - 2.67.0 + 2.68.0 Google Cloud Workflow Executions Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-workflow-executions - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-cloud-workflow-executions-v1 - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-workflow-executions-v1 - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-cloud-workflow-executions-v1beta - 0.71.0 + 0.72.0 com.google.api.grpc grpc-google-cloud-workflow-executions-v1beta - 0.71.0 + 0.72.0 diff --git a/java-workflow-executions/proto-google-cloud-workflow-executions-v1/pom.xml b/java-workflow-executions/proto-google-cloud-workflow-executions-v1/pom.xml index 3c1dd353adb0..36bfdea79d59 100644 --- a/java-workflow-executions/proto-google-cloud-workflow-executions-v1/pom.xml +++ b/java-workflow-executions/proto-google-cloud-workflow-executions-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-workflow-executions-v1 - 2.67.0 + 2.68.0 proto-google-cloud-workflow-executions-v1 Proto library for google-cloud-workflow-executions com.google.cloud google-cloud-workflow-executions-parent - 2.67.0 + 2.68.0 diff --git a/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/pom.xml b/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/pom.xml index 5326301a4cf7..7aeddabe604c 100644 --- a/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/pom.xml +++ b/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-workflow-executions-v1beta - 0.71.0 + 0.72.0 proto-google-cloud-workflow-executions-v1beta Proto library for google-cloud-workflow-executions com.google.cloud google-cloud-workflow-executions-parent - 2.67.0 + 2.68.0 diff --git a/java-workflows/CHANGELOG.md b/java-workflows/CHANGELOG.md index 79037156c716..a71b1ece3314 100644 --- a/java-workflows/CHANGELOG.md +++ b/java-workflows/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.68.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 2.67.0 (2025-06-25) ### Dependencies diff --git a/java-workflows/README.md b/java-workflows/README.md index 56dd35e48621..af247b0a453f 100644 --- a/java-workflows/README.md +++ b/java-workflows/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-workflows - 2.66.0 + 2.67.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workflows:2.66.0' +implementation 'com.google.cloud:google-cloud-workflows:2.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workflows" % "2.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workflows" % "2.67.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflows/2.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-workflows/google-cloud-workflows-bom/pom.xml b/java-workflows/google-cloud-workflows-bom/pom.xml index 8483ec26b8cb..6f1e72d69218 100644 --- a/java-workflows/google-cloud-workflows-bom/pom.xml +++ b/java-workflows/google-cloud-workflows-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-workflows-bom - 2.67.0 + 2.68.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-workflows - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-workflows-v1beta - 0.73.0 + 0.74.0 com.google.api.grpc grpc-google-cloud-workflows-v1 - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-cloud-workflows-v1beta - 0.73.0 + 0.74.0 com.google.api.grpc proto-google-cloud-workflows-v1 - 2.67.0 + 2.68.0 diff --git a/java-workflows/google-cloud-workflows/pom.xml b/java-workflows/google-cloud-workflows/pom.xml index 8c83b54019d5..e3fb95d1b300 100644 --- a/java-workflows/google-cloud-workflows/pom.xml +++ b/java-workflows/google-cloud-workflows/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-workflows - 2.67.0 + 2.68.0 jar Google Cloud Workflows allows you to ochestrate and automate Google Cloud and HTTP-based API services with serverless workflows. com.google.cloud google-cloud-workflows-parent - 2.67.0 + 2.68.0 google-cloud-workflows diff --git a/java-workflows/grpc-google-cloud-workflows-v1/pom.xml b/java-workflows/grpc-google-cloud-workflows-v1/pom.xml index a863c3c05cab..7df8f250dd2f 100644 --- a/java-workflows/grpc-google-cloud-workflows-v1/pom.xml +++ b/java-workflows/grpc-google-cloud-workflows-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-workflows-v1 - 2.67.0 + 2.68.0 grpc-google-cloud-workflows-v1 GRPC library for google-cloud-workflows com.google.cloud google-cloud-workflows-parent - 2.67.0 + 2.68.0 diff --git a/java-workflows/grpc-google-cloud-workflows-v1beta/pom.xml b/java-workflows/grpc-google-cloud-workflows-v1beta/pom.xml index 848064caa14d..a4a5c59d91a5 100644 --- a/java-workflows/grpc-google-cloud-workflows-v1beta/pom.xml +++ b/java-workflows/grpc-google-cloud-workflows-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-workflows-v1beta - 0.73.0 + 0.74.0 grpc-google-cloud-workflows-v1beta GRPC library for google-cloud-workflows com.google.cloud google-cloud-workflows-parent - 2.67.0 + 2.68.0 diff --git a/java-workflows/pom.xml b/java-workflows/pom.xml index 5d5c30ec3c84..90527a6a49e7 100644 --- a/java-workflows/pom.xml +++ b/java-workflows/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-workflows-parent pom - 2.67.0 + 2.68.0 Google Cloud Workflows Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-workflows - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-cloud-workflows-v1 - 2.67.0 + 2.68.0 com.google.api.grpc grpc-google-cloud-workflows-v1 - 2.67.0 + 2.68.0 com.google.api.grpc proto-google-cloud-workflows-v1beta - 0.73.0 + 0.74.0 com.google.api.grpc grpc-google-cloud-workflows-v1beta - 0.73.0 + 0.74.0 diff --git a/java-workflows/proto-google-cloud-workflows-v1/pom.xml b/java-workflows/proto-google-cloud-workflows-v1/pom.xml index c7e17a545047..923d9631d685 100644 --- a/java-workflows/proto-google-cloud-workflows-v1/pom.xml +++ b/java-workflows/proto-google-cloud-workflows-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-workflows-v1 - 2.67.0 + 2.68.0 proto-google-cloud-workflows-v1 Proto library for google-cloud-workflows com.google.cloud google-cloud-workflows-parent - 2.67.0 + 2.68.0 diff --git a/java-workflows/proto-google-cloud-workflows-v1beta/pom.xml b/java-workflows/proto-google-cloud-workflows-v1beta/pom.xml index 59c4622d55ff..2f4cade85907 100644 --- a/java-workflows/proto-google-cloud-workflows-v1beta/pom.xml +++ b/java-workflows/proto-google-cloud-workflows-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-workflows-v1beta - 0.73.0 + 0.74.0 proto-google-cloud-workflows-v1beta Proto library for google-cloud-workflows com.google.cloud google-cloud-workflows-parent - 2.67.0 + 2.68.0 diff --git a/java-workspaceevents/CHANGELOG.md b/java-workspaceevents/CHANGELOG.md index d45ef673851c..146ea226e284 100644 --- a/java-workspaceevents/CHANGELOG.md +++ b/java-workspaceevents/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.32.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.31.0 (2025-06-25) ### Dependencies diff --git a/java-workspaceevents/README.md b/java-workspaceevents/README.md index e50193786203..5f3226e68811 100644 --- a/java-workspaceevents/README.md +++ b/java-workspaceevents/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-workspaceevents - 0.30.0 + 0.31.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workspaceevents:0.30.0' +implementation 'com.google.cloud:google-cloud-workspaceevents:0.31.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workspaceevents" % "0.30.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workspaceevents" % "0.31.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-workspaceevents.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workspaceevents/0.30.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workspaceevents/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-workspaceevents/google-cloud-workspaceevents-bom/pom.xml b/java-workspaceevents/google-cloud-workspaceevents-bom/pom.xml index 1139e79bb551..c4d3df71d33b 100644 --- a/java-workspaceevents/google-cloud-workspaceevents-bom/pom.xml +++ b/java-workspaceevents/google-cloud-workspaceevents-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-workspaceevents-bom - 0.31.0 + 0.32.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-workspaceevents - 0.31.0 + 0.32.0 com.google.api.grpc grpc-google-cloud-workspaceevents-v1 - 0.31.0 + 0.32.0 com.google.api.grpc grpc-google-cloud-workspaceevents-v1beta - 0.31.0 + 0.32.0 com.google.api.grpc proto-google-cloud-workspaceevents-v1 - 0.31.0 + 0.32.0 com.google.api.grpc proto-google-cloud-workspaceevents-v1beta - 0.31.0 + 0.32.0 diff --git a/java-workspaceevents/google-cloud-workspaceevents/pom.xml b/java-workspaceevents/google-cloud-workspaceevents/pom.xml index 6313b8d4e798..6aaf22e80430 100644 --- a/java-workspaceevents/google-cloud-workspaceevents/pom.xml +++ b/java-workspaceevents/google-cloud-workspaceevents/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-workspaceevents - 0.31.0 + 0.32.0 jar Google Google Workspace Events API Google Workspace Events API The Google Workspace Events API lets you subscribe to events and manage change notifications across Google Workspace applications. com.google.cloud google-cloud-workspaceevents-parent - 0.31.0 + 0.32.0 google-cloud-workspaceevents diff --git a/java-workspaceevents/grpc-google-cloud-workspaceevents-v1/pom.xml b/java-workspaceevents/grpc-google-cloud-workspaceevents-v1/pom.xml index 35c8f57ed854..88a501c7ac13 100644 --- a/java-workspaceevents/grpc-google-cloud-workspaceevents-v1/pom.xml +++ b/java-workspaceevents/grpc-google-cloud-workspaceevents-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-workspaceevents-v1 - 0.31.0 + 0.32.0 grpc-google-cloud-workspaceevents-v1 GRPC library for google-cloud-workspaceevents com.google.cloud google-cloud-workspaceevents-parent - 0.31.0 + 0.32.0 diff --git a/java-workspaceevents/grpc-google-cloud-workspaceevents-v1beta/pom.xml b/java-workspaceevents/grpc-google-cloud-workspaceevents-v1beta/pom.xml index a4cd41530069..4958f09f2f82 100644 --- a/java-workspaceevents/grpc-google-cloud-workspaceevents-v1beta/pom.xml +++ b/java-workspaceevents/grpc-google-cloud-workspaceevents-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-workspaceevents-v1beta - 0.31.0 + 0.32.0 grpc-google-cloud-workspaceevents-v1beta GRPC library for google-cloud-workspaceevents com.google.cloud google-cloud-workspaceevents-parent - 0.31.0 + 0.32.0 diff --git a/java-workspaceevents/pom.xml b/java-workspaceevents/pom.xml index 30a84c1cebb5..e874e3dbf5f0 100644 --- a/java-workspaceevents/pom.xml +++ b/java-workspaceevents/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-workspaceevents-parent pom - 0.31.0 + 0.32.0 Google Google Workspace Events API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-workspaceevents - 0.31.0 + 0.32.0 com.google.api.grpc proto-google-cloud-workspaceevents-v1beta - 0.31.0 + 0.32.0 com.google.api.grpc grpc-google-cloud-workspaceevents-v1beta - 0.31.0 + 0.32.0 com.google.api.grpc grpc-google-cloud-workspaceevents-v1 - 0.31.0 + 0.32.0 com.google.api.grpc proto-google-cloud-workspaceevents-v1 - 0.31.0 + 0.32.0 diff --git a/java-workspaceevents/proto-google-cloud-workspaceevents-v1/pom.xml b/java-workspaceevents/proto-google-cloud-workspaceevents-v1/pom.xml index c97eb524e5be..cf0d68f2a14f 100644 --- a/java-workspaceevents/proto-google-cloud-workspaceevents-v1/pom.xml +++ b/java-workspaceevents/proto-google-cloud-workspaceevents-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-workspaceevents-v1 - 0.31.0 + 0.32.0 proto-google-cloud-workspaceevents-v1 Proto library for google-cloud-workspaceevents com.google.cloud google-cloud-workspaceevents-parent - 0.31.0 + 0.32.0 diff --git a/java-workspaceevents/proto-google-cloud-workspaceevents-v1beta/pom.xml b/java-workspaceevents/proto-google-cloud-workspaceevents-v1beta/pom.xml index f8b7f2e1eda8..3fb54cd478e9 100644 --- a/java-workspaceevents/proto-google-cloud-workspaceevents-v1beta/pom.xml +++ b/java-workspaceevents/proto-google-cloud-workspaceevents-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-workspaceevents-v1beta - 0.31.0 + 0.32.0 proto-google-cloud-workspaceevents-v1beta Proto library for google-cloud-workspaceevents com.google.cloud google-cloud-workspaceevents-parent - 0.31.0 + 0.32.0 diff --git a/java-workstations/CHANGELOG.md b/java-workstations/CHANGELOG.md index 4c97ac3f6ce5..a714bd97f5e3 100644 --- a/java-workstations/CHANGELOG.md +++ b/java-workstations/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.56.0 (2025-07-11) + +### Dependencies + +* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) + + ## 0.55.0 (2025-06-25) ### Dependencies diff --git a/java-workstations/README.md b/java-workstations/README.md index 7c7258d773ff..6788ccb3c12e 100644 --- a/java-workstations/README.md +++ b/java-workstations/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-workstations - 0.54.0 + 0.55.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workstations:0.54.0' +implementation 'com.google.cloud:google-cloud-workstations:0.55.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workstations" % "0.54.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workstations" % "0.55.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-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.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workstations/0.55.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/google-cloud-workstations-bom/pom.xml b/java-workstations/google-cloud-workstations-bom/pom.xml index 83f39eca960e..822e23787fcd 100644 --- a/java-workstations/google-cloud-workstations-bom/pom.xml +++ b/java-workstations/google-cloud-workstations-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-workstations-bom - 0.55.0 + 0.56.0 pom com.google.cloud google-cloud-pom-parent - 1.61.0 + 1.62.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-workstations - 0.55.0 + 0.56.0 com.google.api.grpc grpc-google-cloud-workstations-v1beta - 0.55.0 + 0.56.0 com.google.api.grpc grpc-google-cloud-workstations-v1 - 0.55.0 + 0.56.0 com.google.api.grpc proto-google-cloud-workstations-v1beta - 0.55.0 + 0.56.0 com.google.api.grpc proto-google-cloud-workstations-v1 - 0.55.0 + 0.56.0 diff --git a/java-workstations/google-cloud-workstations/pom.xml b/java-workstations/google-cloud-workstations/pom.xml index cc7562449e0b..17c4eafd5e4d 100644 --- a/java-workstations/google-cloud-workstations/pom.xml +++ b/java-workstations/google-cloud-workstations/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-workstations - 0.55.0 + 0.56.0 jar Google Cloud Workstations Cloud Workstations 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. com.google.cloud google-cloud-workstations-parent - 0.55.0 + 0.56.0 google-cloud-workstations diff --git a/java-workstations/grpc-google-cloud-workstations-v1/pom.xml b/java-workstations/grpc-google-cloud-workstations-v1/pom.xml index ac9ff695ab34..9c2982a94ebd 100644 --- a/java-workstations/grpc-google-cloud-workstations-v1/pom.xml +++ b/java-workstations/grpc-google-cloud-workstations-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-workstations-v1 - 0.55.0 + 0.56.0 grpc-google-cloud-workstations-v1 GRPC library for google-cloud-workstations com.google.cloud google-cloud-workstations-parent - 0.55.0 + 0.56.0 diff --git a/java-workstations/grpc-google-cloud-workstations-v1beta/pom.xml b/java-workstations/grpc-google-cloud-workstations-v1beta/pom.xml index 611690717961..f8258c1d3643 100644 --- a/java-workstations/grpc-google-cloud-workstations-v1beta/pom.xml +++ b/java-workstations/grpc-google-cloud-workstations-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-workstations-v1beta - 0.55.0 + 0.56.0 grpc-google-cloud-workstations-v1beta GRPC library for google-cloud-workstations com.google.cloud google-cloud-workstations-parent - 0.55.0 + 0.56.0 diff --git a/java-workstations/pom.xml b/java-workstations/pom.xml index 26c0ad8e34b9..8dff8dc458c2 100644 --- a/java-workstations/pom.xml +++ b/java-workstations/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-workstations-parent pom - 0.55.0 + 0.56.0 Google Cloud Workstations Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.61.0 + 1.62.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-workstations - 0.55.0 + 0.56.0 com.google.api.grpc proto-google-cloud-workstations-v1 - 0.55.0 + 0.56.0 com.google.api.grpc grpc-google-cloud-workstations-v1 - 0.55.0 + 0.56.0 com.google.api.grpc grpc-google-cloud-workstations-v1beta - 0.55.0 + 0.56.0 com.google.api.grpc proto-google-cloud-workstations-v1beta - 0.55.0 + 0.56.0 diff --git a/java-workstations/proto-google-cloud-workstations-v1/pom.xml b/java-workstations/proto-google-cloud-workstations-v1/pom.xml index 2798c1ed97c9..e931af46b650 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/pom.xml +++ b/java-workstations/proto-google-cloud-workstations-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-workstations-v1 - 0.55.0 + 0.56.0 proto-google-cloud-workstations-v1 Proto library for google-cloud-workstations com.google.cloud google-cloud-workstations-parent - 0.55.0 + 0.56.0 diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/pom.xml b/java-workstations/proto-google-cloud-workstations-v1beta/pom.xml index f48f7be6838b..d3790ed913a9 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/pom.xml +++ b/java-workstations/proto-google-cloud-workstations-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-workstations-v1beta - 0.55.0 + 0.56.0 proto-google-cloud-workstations-v1beta Proto library for google-cloud-workstations com.google.cloud google-cloud-workstations-parent - 0.55.0 + 0.56.0 diff --git a/pom.xml b/pom.xml index b2ae795a4441..208f60ef334b 100644 --- a/pom.xml +++ b/pom.xml @@ -121,6 +121,7 @@ java-kms java-kmsinventory java-language + java-licensemanager java-life-sciences java-lustre java-maintenance diff --git a/renovate.json b/renovate.json index 8b17dbb655aa..900ce270fd3b 100644 --- a/renovate.json +++ b/renovate.json @@ -41,8 +41,7 @@ "owl-bot-postprocessor/synthtool/gcp/templates/java-library/.kokoro/presubmit/graalvm-native*.cfg", ".github/workflows/ci.yaml", ".github/workflows/generated_files_sync.yaml", - ".github/workflows/unmanaged_dependency_check.yaml", - ".github/workflows/hermetic_library_generation.yaml" + ".github/workflows/unmanaged_dependency_check.yaml" ], "customManagers": [ { diff --git a/versions.txt b/versions.txt index f678f8b14a55..7ef6f0847788 100644 --- a/versions.txt +++ b/versions.txt @@ -1,869 +1,876 @@ # Format: # module:released-version:current-version -google-cloud-java:1.61.0:1.61.0 -google-cloud-accessapproval:2.68.0:2.68.0 -grpc-google-cloud-accessapproval-v1:2.68.0:2.68.0 -proto-google-cloud-accessapproval-v1:2.68.0:2.68.0 -google-identity-accesscontextmanager:1.68.0:1.68.0 -grpc-google-identity-accesscontextmanager-v1:1.68.0:1.68.0 -proto-google-identity-accesscontextmanager-v1:1.68.0:1.68.0 -proto-google-identity-accesscontextmanager-type:1.68.0:1.68.0 -google-cloud-aiplatform:3.68.0:3.68.0 -grpc-google-cloud-aiplatform-v1:3.68.0:3.68.0 -grpc-google-cloud-aiplatform-v1beta1:0.84.0:0.84.0 -proto-google-cloud-aiplatform-v1:3.68.0:3.68.0 -proto-google-cloud-aiplatform-v1beta1:0.84.0:0.84.0 -google-analytics-admin:0.77.0:0.77.0 -grpc-google-analytics-admin-v1alpha:0.77.0:0.77.0 -proto-google-analytics-admin-v1alpha:0.77.0:0.77.0 -proto-google-analytics-admin-v1beta:0.77.0:0.77.0 -grpc-google-analytics-admin-v1beta:0.77.0:0.77.0 -google-analytics-data:0.78.0:0.78.0 -grpc-google-analytics-data-v1beta:0.78.0:0.78.0 -proto-google-analytics-data-v1beta:0.78.0:0.78.0 -proto-google-analytics-data-v1alpha:0.78.0:0.78.0 -grpc-google-analytics-data-v1alpha:0.78.0:0.78.0 -google-cloud-analyticshub:0.64.0:0.64.0 -proto-google-cloud-analyticshub-v1:0.64.0:0.64.0 -grpc-google-cloud-analyticshub-v1:0.64.0:0.64.0 -google-shopping-merchant-promotions:0.23.0:0.23.0 -proto-google-shopping-merchant-promotions-v1beta:0.23.0:0.23.0 -grpc-google-shopping-merchant-promotions-v1beta:0.23.0:0.23.0 -google-cloud-api-gateway:2.67.0:2.67.0 -grpc-google-cloud-api-gateway-v1:2.67.0:2.67.0 -proto-google-cloud-api-gateway-v1:2.67.0:2.67.0 -google-cloud-apigee-connect:2.67.0:2.67.0 -grpc-google-cloud-apigee-connect-v1:2.67.0:2.67.0 -proto-google-cloud-apigee-connect-v1:2.67.0:2.67.0 -google-cloud-apigee-registry:0.67.0:0.67.0 -proto-google-cloud-apigee-registry-v1:0.67.0:0.67.0 -grpc-google-cloud-apigee-registry-v1:0.67.0:0.67.0 -google-cloud-apikeys:0.65.0:0.65.0 -proto-google-cloud-apikeys-v2:0.65.0:0.65.0 -grpc-google-cloud-apikeys-v2:0.65.0:0.65.0 -google-cloud-appengine-admin:2.67.0:2.67.0 -grpc-google-cloud-appengine-admin-v1:2.67.0:2.67.0 -proto-google-cloud-appengine-admin-v1:2.67.0:2.67.0 -google-area120-tables:0.71.0:0.71.0 -grpc-google-area120-tables-v1alpha1:0.71.0:0.71.0 -proto-google-area120-tables-v1alpha1:0.71.0:0.71.0 -google-cloud-artifact-registry:1.66.0:1.66.0 -grpc-google-cloud-artifact-registry-v1beta2:0.72.0:0.72.0 -grpc-google-cloud-artifact-registry-v1:1.66.0:1.66.0 -proto-google-cloud-artifact-registry-v1beta2:0.72.0:0.72.0 -proto-google-cloud-artifact-registry-v1:1.66.0:1.66.0 -google-cloud-asset:3.71.0:3.71.0 -grpc-google-cloud-asset-v1:3.71.0:3.71.0 -grpc-google-cloud-asset-v1p1beta1:0.171.0:0.171.0 -grpc-google-cloud-asset-v1p2beta1:0.171.0:0.171.0 -grpc-google-cloud-asset-v1p5beta1:0.171.0:0.171.0 -grpc-google-cloud-asset-v1p7beta1:3.71.0:3.71.0 -proto-google-cloud-asset-v1:3.71.0:3.71.0 -proto-google-cloud-asset-v1p1beta1:0.171.0:0.171.0 -proto-google-cloud-asset-v1p2beta1:0.171.0:0.171.0 -proto-google-cloud-asset-v1p5beta1:0.171.0:0.171.0 -proto-google-cloud-asset-v1p7beta1:3.71.0:3.71.0 -google-cloud-assured-workloads:2.67.0:2.67.0 -grpc-google-cloud-assured-workloads-v1beta1:0.79.0:0.79.0 -grpc-google-cloud-assured-workloads-v1:2.67.0:2.67.0 -proto-google-cloud-assured-workloads-v1beta1:0.79.0:0.79.0 -proto-google-cloud-assured-workloads-v1:2.67.0:2.67.0 -google-cloud-automl:2.67.0:2.67.0 -grpc-google-cloud-automl-v1beta1:0.154.0:0.154.0 -grpc-google-cloud-automl-v1:2.67.0:2.67.0 -proto-google-cloud-automl-v1beta1:0.154.0:0.154.0 -proto-google-cloud-automl-v1:2.67.0:2.67.0 -google-cloud-bare-metal-solution:0.67.0:0.67.0 -proto-google-cloud-bare-metal-solution-v2:0.67.0:0.67.0 -grpc-google-cloud-bare-metal-solution-v2:0.67.0:0.67.0 -google-cloud-batch:0.67.0:0.67.0 -proto-google-cloud-batch-v1:0.67.0:0.67.0 -grpc-google-cloud-batch-v1:0.67.0:0.67.0 -proto-google-cloud-batch-v1alpha:0.67.0:0.67.0 -grpc-google-cloud-batch-v1alpha:0.67.0:0.67.0 -google-cloud-beyondcorp-appconnections:0.65.0:0.65.0 -proto-google-cloud-beyondcorp-appconnections-v1:0.65.0:0.65.0 -grpc-google-cloud-beyondcorp-appconnections-v1:0.65.0:0.65.0 -google-cloud-beyondcorp-appconnectors:0.65.0:0.65.0 -proto-google-cloud-beyondcorp-appconnectors-v1:0.65.0:0.65.0 -grpc-google-cloud-beyondcorp-appconnectors-v1:0.65.0:0.65.0 -google-cloud-beyondcorp-appgateways:0.65.0:0.65.0 -proto-google-cloud-beyondcorp-appgateways-v1:0.65.0:0.65.0 -grpc-google-cloud-beyondcorp-appgateways-v1:0.65.0:0.65.0 -google-cloud-beyondcorp-clientconnectorservices:0.65.0:0.65.0 -proto-google-cloud-beyondcorp-clientconnectorservices-v1:0.65.0:0.65.0 -grpc-google-cloud-beyondcorp-clientconnectorservices-v1:0.65.0:0.65.0 -google-cloud-beyondcorp-clientgateways:0.65.0:0.65.0 -proto-google-cloud-beyondcorp-clientgateways-v1:0.65.0:0.65.0 -grpc-google-cloud-beyondcorp-clientgateways-v1:0.65.0:0.65.0 -google-cloud-bigqueryconnection:2.69.0:2.69.0 -grpc-google-cloud-bigqueryconnection-v1:2.69.0:2.69.0 -grpc-google-cloud-bigqueryconnection-v1beta1:0.77.0:0.77.0 -proto-google-cloud-bigqueryconnection-v1:2.69.0:2.69.0 -proto-google-cloud-bigqueryconnection-v1beta1:0.77.0:0.77.0 -google-cloud-bigquery-data-exchange:2.62.0:2.62.0 -proto-google-cloud-bigquery-data-exchange-v1beta1:2.62.0:2.62.0 -grpc-google-cloud-bigquery-data-exchange-v1beta1:2.62.0:2.62.0 -google-cloud-bigquerydatapolicy:0.64.0:0.64.0 -proto-google-cloud-bigquerydatapolicy-v1beta1:0.64.0:0.64.0 -grpc-google-cloud-bigquerydatapolicy-v1beta1:0.64.0:0.64.0 -google-cloud-bigquerydatatransfer:2.67.0:2.67.0 -grpc-google-cloud-bigquerydatatransfer-v1:2.67.0:2.67.0 -proto-google-cloud-bigquerydatatransfer-v1:2.67.0:2.67.0 -google-cloud-bigquerymigration:0.70.0:0.70.0 -grpc-google-cloud-bigquerymigration-v2alpha:0.70.0:0.70.0 -proto-google-cloud-bigquerymigration-v2alpha:0.70.0:0.70.0 -proto-google-cloud-bigquerymigration-v2:0.70.0:0.70.0 -grpc-google-cloud-bigquerymigration-v2:0.70.0:0.70.0 -google-cloud-bigqueryreservation:2.68.0:2.68.0 -grpc-google-cloud-bigqueryreservation-v1:2.68.0:2.68.0 -proto-google-cloud-bigqueryreservation-v1:2.68.0:2.68.0 -google-cloud-billingbudgets:2.67.0:2.67.0 -grpc-google-cloud-billingbudgets-v1beta1:0.76.0:0.76.0 -grpc-google-cloud-billingbudgets-v1:2.67.0:2.67.0 -proto-google-cloud-billingbudgets-v1beta1:0.76.0:0.76.0 -proto-google-cloud-billingbudgets-v1:2.67.0:2.67.0 -google-cloud-billing:2.67.0:2.67.0 -grpc-google-cloud-billing-v1:2.67.0:2.67.0 -proto-google-cloud-billing-v1:2.67.0:2.67.0 -google-cloud-binary-authorization:1.66.0:1.66.0 -grpc-google-cloud-binary-authorization-v1beta1:0.71.0:0.71.0 -grpc-google-cloud-binary-authorization-v1:1.66.0:1.66.0 -proto-google-cloud-binary-authorization-v1beta1:0.71.0:0.71.0 -proto-google-cloud-binary-authorization-v1:1.66.0:1.66.0 -google-cloud-certificate-manager:0.70.0:0.70.0 -proto-google-cloud-certificate-manager-v1:0.70.0:0.70.0 -grpc-google-cloud-certificate-manager-v1:0.70.0:0.70.0 -google-cloud-channel:3.71.0:3.71.0 -grpc-google-cloud-channel-v1:3.71.0:3.71.0 -proto-google-cloud-channel-v1:3.71.0:3.71.0 -google-cloud-build:3.69.0:3.69.0 -grpc-google-cloud-build-v1:3.69.0:3.69.0 -proto-google-cloud-build-v1:3.69.0:3.69.0 -google-cloud-cloudcommerceconsumerprocurement:0.65.0:0.65.0 -proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1:0.65.0:0.65.0 -grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1:0.65.0:0.65.0 -google-cloud-compute:1.77.0:1.77.0 -proto-google-cloud-compute-v1:1.77.0:1.77.0 -google-cloud-contact-center-insights:2.67.0:2.67.0 -grpc-google-cloud-contact-center-insights-v1:2.67.0:2.67.0 -proto-google-cloud-contact-center-insights-v1:2.67.0:2.67.0 -proto-google-cloud-containeranalysis-v1:2.68.0:2.68.0 -proto-google-cloud-containeranalysis-v1beta1:0.158.0:0.158.0 -grpc-google-cloud-containeranalysis-v1beta1:0.158.0:0.158.0 -grpc-google-cloud-containeranalysis-v1:2.68.0:2.68.0 -google-cloud-containeranalysis:2.68.0:2.68.0 -google-cloud-container:2.70.0:2.70.0 -grpc-google-cloud-container-v1:2.70.0:2.70.0 -grpc-google-cloud-container-v1beta1:2.70.0:2.70.0 -proto-google-cloud-container-v1:2.70.0:2.70.0 -proto-google-cloud-container-v1beta1:2.70.0:2.70.0 -google-cloud-contentwarehouse:0.63.0:0.63.0 -proto-google-cloud-contentwarehouse-v1:0.63.0:0.63.0 -grpc-google-cloud-contentwarehouse-v1:0.63.0:0.63.0 -google-cloud-datacatalog:1.73.0:1.73.0 -grpc-google-cloud-datacatalog-v1:1.73.0:1.73.0 -grpc-google-cloud-datacatalog-v1beta1:0.110.0:0.110.0 -proto-google-cloud-datacatalog-v1:1.73.0:1.73.0 -proto-google-cloud-datacatalog-v1beta1:0.110.0:0.110.0 -google-cloud-dataflow:0.71.0:0.71.0 -grpc-google-cloud-dataflow-v1beta3:0.71.0:0.71.0 -proto-google-cloud-dataflow-v1beta3:0.71.0:0.71.0 -google-cloud-dataform:0.66.0:0.66.0 -proto-google-cloud-dataform-v1beta1:0.66.0:0.66.0 -grpc-google-cloud-dataform-v1beta1:0.66.0:0.66.0 -google-cloud-data-fusion:1.67.0:1.67.0 -grpc-google-cloud-data-fusion-v1beta1:0.71.0:0.71.0 -grpc-google-cloud-data-fusion-v1:1.67.0:1.67.0 -proto-google-cloud-data-fusion-v1beta1:0.71.0:0.71.0 -proto-google-cloud-data-fusion-v1:1.67.0:1.67.0 -google-cloud-datalabeling:0.187.0:0.187.0 -grpc-google-cloud-datalabeling-v1beta1:0.152.0:0.152.0 -proto-google-cloud-datalabeling-v1beta1:0.152.0:0.152.0 -google-cloud-dataplex:1.65.0:1.65.0 -proto-google-cloud-dataplex-v1:1.65.0:1.65.0 -grpc-google-cloud-dataplex-v1:1.65.0:1.65.0 -google-cloud-dataproc-metastore:2.68.0:2.68.0 -grpc-google-cloud-dataproc-metastore-v1beta:0.72.0:0.72.0 -grpc-google-cloud-dataproc-metastore-v1alpha:0.72.0:0.72.0 -grpc-google-cloud-dataproc-metastore-v1:2.68.0:2.68.0 -proto-google-cloud-dataproc-metastore-v1beta:0.72.0:0.72.0 -proto-google-cloud-dataproc-metastore-v1alpha:0.72.0:0.72.0 -proto-google-cloud-dataproc-metastore-v1:2.68.0:2.68.0 -google-cloud-dataproc:4.64.0:4.64.0 -grpc-google-cloud-dataproc-v1:4.64.0:4.64.0 -proto-google-cloud-dataproc-v1:4.64.0:4.64.0 -google-cloud-datastream:1.66.0:1.66.0 -grpc-google-cloud-datastream-v1alpha1:0.71.0:0.71.0 -proto-google-cloud-datastream-v1alpha1:0.71.0:0.71.0 -proto-google-cloud-datastream-v1:1.66.0:1.66.0 -grpc-google-cloud-datastream-v1:1.66.0:1.66.0 -proto-google-devtools-source-protos:1.67.0:1.67.0 -google-cloud-deploy:1.65.0:1.65.0 -grpc-google-cloud-deploy-v1:1.65.0:1.65.0 -proto-google-cloud-deploy-v1:1.65.0:1.65.0 -google-cloud-dialogflow-cx:0.78.0:0.78.0 -grpc-google-cloud-dialogflow-cx-v3beta1:0.78.0:0.78.0 -grpc-google-cloud-dialogflow-cx-v3:0.78.0:0.78.0 -proto-google-cloud-dialogflow-cx-v3beta1:0.78.0:0.78.0 -proto-google-cloud-dialogflow-cx-v3:0.78.0:0.78.0 -google-cloud-dialogflow:4.73.0:4.73.0 -grpc-google-cloud-dialogflow-v2beta1:0.171.0:0.171.0 -grpc-google-cloud-dialogflow-v2:4.73.0:4.73.0 -proto-google-cloud-dialogflow-v2:4.73.0:4.73.0 -proto-google-cloud-dialogflow-v2beta1:0.171.0:0.171.0 -google-cloud-discoveryengine:0.63.0:0.63.0 -proto-google-cloud-discoveryengine-v1beta:0.63.0:0.63.0 -grpc-google-cloud-discoveryengine-v1beta:0.63.0:0.63.0 -google-cloud-distributedcloudedge:0.64.0:0.64.0 -proto-google-cloud-distributedcloudedge-v1:0.64.0:0.64.0 -grpc-google-cloud-distributedcloudedge-v1:0.64.0:0.64.0 -google-cloud-dlp:3.71.0:3.71.0 -grpc-google-cloud-dlp-v2:3.71.0:3.71.0 -proto-google-cloud-dlp-v2:3.71.0:3.71.0 -google-cloud-dms:2.66.0:2.66.0 -grpc-google-cloud-dms-v1:2.66.0:2.66.0 -proto-google-cloud-dms-v1:2.66.0:2.66.0 -google-cloud-document-ai:2.71.0:2.71.0 -grpc-google-cloud-document-ai-v1beta3:0.83.0:0.83.0 -grpc-google-cloud-document-ai-v1:2.71.0:2.71.0 -proto-google-cloud-document-ai-v1beta3:0.83.0:0.83.0 -proto-google-cloud-document-ai-v1:2.71.0:2.71.0 -google-cloud-domains:1.64.0:1.64.0 -grpc-google-cloud-domains-v1beta1:0.72.0:0.72.0 -grpc-google-cloud-domains-v1alpha2:0.72.0:0.72.0 -grpc-google-cloud-domains-v1:1.64.0:1.64.0 -proto-google-cloud-domains-v1beta1:0.72.0:0.72.0 -proto-google-cloud-domains-v1alpha2:0.72.0:0.72.0 -proto-google-cloud-domains-v1:1.64.0:1.64.0 -google-cloud-enterpriseknowledgegraph:0.63.0:0.63.0 -proto-google-cloud-enterpriseknowledgegraph-v1:0.63.0:0.63.0 -grpc-google-cloud-enterpriseknowledgegraph-v1:0.63.0:0.63.0 -google-cloud-errorreporting:0.188.0-beta:0.188.0-beta -grpc-google-cloud-error-reporting-v1beta1:0.154.0:0.154.0 -proto-google-cloud-error-reporting-v1beta1:0.154.0:0.154.0 -google-cloud-essential-contacts:2.67.0:2.67.0 -grpc-google-cloud-essential-contacts-v1:2.67.0:2.67.0 -proto-google-cloud-essential-contacts-v1:2.67.0:2.67.0 -google-cloud-eventarc:1.67.0:1.67.0 -grpc-google-cloud-eventarc-v1:1.67.0:1.67.0 -proto-google-cloud-eventarc-v1:1.67.0:1.67.0 -google-cloud-eventarc-publishing:0.67.0:0.67.0 -proto-google-cloud-eventarc-publishing-v1:0.67.0:0.67.0 -grpc-google-cloud-eventarc-publishing-v1:0.67.0:0.67.0 -google-cloud-filestore:1.68.0:1.68.0 -grpc-google-cloud-filestore-v1beta1:0.70.0:0.70.0 -grpc-google-cloud-filestore-v1:1.68.0:1.68.0 -proto-google-cloud-filestore-v1:1.68.0:1.68.0 -proto-google-cloud-filestore-v1beta1:0.70.0:0.70.0 -google-cloud-functions:2.69.0:2.69.0 -grpc-google-cloud-functions-v1:2.69.0:2.69.0 -proto-google-cloud-functions-v1:2.69.0:2.69.0 -proto-google-cloud-functions-v2beta:2.69.0:2.69.0 -proto-google-cloud-functions-v2alpha:2.69.0:2.69.0 -grpc-google-cloud-functions-v2beta:2.69.0:2.69.0 -grpc-google-cloud-functions-v2alpha:2.69.0:2.69.0 -proto-google-cloud-functions-v2:2.69.0:2.69.0 -grpc-google-cloud-functions-v2:2.69.0:2.69.0 -google-cloud-game-servers:2.67.0:2.67.0 -grpc-google-cloud-game-servers-v1:2.67.0:2.67.0 -grpc-google-cloud-game-servers-v1beta:0.92.0:0.92.0 -proto-google-cloud-game-servers-v1:2.67.0:2.67.0 -proto-google-cloud-game-servers-v1beta:0.92.0:0.92.0 -google-cloud-gke-backup:0.66.0:0.66.0 -proto-google-cloud-gke-backup-v1:0.66.0:0.66.0 -grpc-google-cloud-gke-backup-v1:0.66.0:0.66.0 -google-cloud-gke-connect-gateway:0.68.0:0.68.0 -proto-google-cloud-gke-connect-gateway-v1beta1:0.68.0:0.68.0 -google-cloud-gkehub:1.67.0:1.67.0 -grpc-google-cloud-gkehub-v1beta1:0.73.0:0.73.0 -grpc-google-cloud-gkehub-v1:1.67.0:1.67.0 -grpc-google-cloud-gkehub-v1alpha:0.73.0:0.73.0 -grpc-google-cloud-gkehub-v1beta:0.73.0:0.73.0 -proto-google-cloud-gkehub-v1beta1:0.73.0:0.73.0 -proto-google-cloud-gkehub-v1:1.67.0:1.67.0 -proto-google-cloud-gkehub-v1alpha:0.73.0:0.73.0 -proto-google-cloud-gkehub-v1beta:0.73.0:0.73.0 -google-cloud-gke-multi-cloud:0.66.0:0.66.0 -proto-google-cloud-gke-multi-cloud-v1:0.66.0:0.66.0 -grpc-google-cloud-gke-multi-cloud-v1:0.66.0:0.66.0 -grafeas:2.68.0:2.68.0 -google-cloud-gsuite-addons:2.67.0:2.67.0 -grpc-google-cloud-gsuite-addons-v1:2.67.0:2.67.0 -proto-google-cloud-gsuite-addons-v1:2.67.0:2.67.0 -proto-google-apps-script-type-protos:2.67.0:2.67.0 -google-iam-admin:3.62.0:3.62.0 -grpc-google-iam-admin-v1:3.62.0:3.62.0 -proto-google-iam-admin-v1:3.62.0:3.62.0 -google-cloud-iamcredentials:2.67.0:2.67.0 -grpc-google-cloud-iamcredentials-v1:2.67.0:2.67.0 -proto-google-cloud-iamcredentials-v1:2.67.0:2.67.0 -google-cloud-ids:1.66.0:1.66.0 -grpc-google-cloud-ids-v1:1.66.0:1.66.0 -proto-google-cloud-ids-v1:1.66.0:1.66.0 -google-cloud-iot:2.67.0:2.67.0 -grpc-google-cloud-iot-v1:2.67.0:2.67.0 -proto-google-cloud-iot-v1:2.67.0:2.67.0 -google-cloud-kms:2.70.0:2.70.0 -grpc-google-cloud-kms-v1:0.161.0:0.161.0 -proto-google-cloud-kms-v1:0.161.0:0.161.0 -google-cloud-language:2.68.0:2.68.0 -grpc-google-cloud-language-v1:2.68.0:2.68.0 -grpc-google-cloud-language-v1beta2:0.155.0:0.155.0 -proto-google-cloud-language-v1:2.68.0:2.68.0 -proto-google-cloud-language-v1beta2:0.155.0:0.155.0 -google-cloud-life-sciences:0.69.0:0.69.0 -grpc-google-cloud-life-sciences-v2beta:0.69.0:0.69.0 -proto-google-cloud-life-sciences-v2beta:0.69.0:0.69.0 -google-cloud-managed-identities:1.65.0:1.65.0 -grpc-google-cloud-managed-identities-v1:1.65.0:1.65.0 -proto-google-cloud-managed-identities-v1:1.65.0:1.65.0 -google-cloud-mediatranslation:0.73.0:0.73.0 -grpc-google-cloud-mediatranslation-v1beta1:0.73.0:0.73.0 -proto-google-cloud-mediatranslation-v1beta1:0.73.0:0.73.0 -google-cloud-memcache:2.67.0:2.67.0 -grpc-google-cloud-memcache-v1beta2:0.74.0:0.74.0 -grpc-google-cloud-memcache-v1:2.67.0:2.67.0 -proto-google-cloud-memcache-v1beta2:0.74.0:0.74.0 -proto-google-cloud-memcache-v1:2.67.0:2.67.0 -google-cloud-monitoring-dashboard:2.69.0:2.69.0 -grpc-google-cloud-monitoring-dashboard-v1:2.69.0:2.69.0 -proto-google-cloud-monitoring-dashboard-v1:2.69.0:2.69.0 -google-cloud-monitoring:3.68.0:3.68.0 -grpc-google-cloud-monitoring-v3:3.68.0:3.68.0 -proto-google-cloud-monitoring-v3:3.68.0:3.68.0 -google-cloud-networkconnectivity:1.66.0:1.66.0 -grpc-google-cloud-networkconnectivity-v1alpha1:0.72.0:0.72.0 -grpc-google-cloud-networkconnectivity-v1:1.66.0:1.66.0 -proto-google-cloud-networkconnectivity-v1alpha1:0.72.0:0.72.0 -proto-google-cloud-networkconnectivity-v1:1.66.0:1.66.0 -google-cloud-network-management:1.68.0:1.68.0 -grpc-google-cloud-network-management-v1beta1:0.70.0:0.70.0 -grpc-google-cloud-network-management-v1:1.68.0:1.68.0 -proto-google-cloud-network-management-v1beta1:0.70.0:0.70.0 -proto-google-cloud-network-management-v1:1.68.0:1.68.0 -google-cloud-network-security:0.70.0:0.70.0 -grpc-google-cloud-network-security-v1beta1:0.70.0:0.70.0 -proto-google-cloud-network-security-v1beta1:0.70.0:0.70.0 -proto-google-cloud-network-security-v1:0.70.0:0.70.0 -grpc-google-cloud-network-security-v1:0.70.0:0.70.0 -google-cloud-notebooks:1.65.0:1.65.0 -grpc-google-cloud-notebooks-v1beta1:0.72.0:0.72.0 -grpc-google-cloud-notebooks-v1:1.65.0:1.65.0 -proto-google-cloud-notebooks-v1beta1:0.72.0:0.72.0 -proto-google-cloud-notebooks-v1:1.65.0:1.65.0 -google-cloud-notification:0.185.0-beta:0.185.0-beta -google-cloud-optimization:1.65.0:1.65.0 -proto-google-cloud-optimization-v1:1.65.0:1.65.0 -grpc-google-cloud-optimization-v1:1.65.0:1.65.0 -google-cloud-orchestration-airflow:1.67.0:1.67.0 -grpc-google-cloud-orchestration-airflow-v1:1.67.0:1.67.0 -grpc-google-cloud-orchestration-airflow-v1beta1:0.70.0:0.70.0 -proto-google-cloud-orchestration-airflow-v1:1.67.0:1.67.0 -proto-google-cloud-orchestration-airflow-v1beta1:0.70.0:0.70.0 -google-cloud-orgpolicy:2.67.0:2.67.0 -grpc-google-cloud-orgpolicy-v2:2.67.0:2.67.0 -proto-google-cloud-orgpolicy-v1:2.67.0:2.67.0 -proto-google-cloud-orgpolicy-v2:2.67.0:2.67.0 -google-cloud-os-config:2.69.0:2.69.0 -grpc-google-cloud-os-config-v1:2.69.0:2.69.0 -grpc-google-cloud-os-config-v1beta:2.69.0:2.69.0 -grpc-google-cloud-os-config-v1alpha:2.69.0:2.69.0 -proto-google-cloud-os-config-v1:2.69.0:2.69.0 -proto-google-cloud-os-config-v1alpha:2.69.0:2.69.0 -proto-google-cloud-os-config-v1beta:2.69.0:2.69.0 -google-cloud-os-login:2.66.0:2.66.0 -grpc-google-cloud-os-login-v1:2.66.0:2.66.0 -proto-google-cloud-os-login-v1:2.66.0:2.66.0 -google-cloud-phishingprotection:0.98.0:0.98.0 -grpc-google-cloud-phishingprotection-v1beta1:0.98.0:0.98.0 -proto-google-cloud-phishingprotection-v1beta1:0.98.0:0.98.0 -google-cloud-policy-troubleshooter:1.66.0:1.66.0 -grpc-google-cloud-policy-troubleshooter-v1:1.66.0:1.66.0 -proto-google-cloud-policy-troubleshooter-v1:1.66.0:1.66.0 -google-cloud-private-catalog:0.69.0:0.69.0 -grpc-google-cloud-private-catalog-v1beta1:0.69.0:0.69.0 -proto-google-cloud-private-catalog-v1beta1:0.69.0:0.69.0 -google-cloud-profiler:2.67.0:2.67.0 -grpc-google-cloud-profiler-v2:2.67.0:2.67.0 -proto-google-cloud-profiler-v2:2.67.0:2.67.0 -google-cloud-publicca:0.64.0:0.64.0 -proto-google-cloud-publicca-v1beta1:0.64.0:0.64.0 -grpc-google-cloud-publicca-v1beta1:0.64.0:0.64.0 -google-cloud-recaptchaenterprise:3.64.0:3.64.0 -grpc-google-cloud-recaptchaenterprise-v1:3.64.0:3.64.0 -grpc-google-cloud-recaptchaenterprise-v1beta1:0.106.0:0.106.0 -proto-google-cloud-recaptchaenterprise-v1:3.64.0:3.64.0 -proto-google-cloud-recaptchaenterprise-v1beta1:0.106.0:0.106.0 -google-cloud-recommendations-ai:0.74.0:0.74.0 -grpc-google-cloud-recommendations-ai-v1beta1:0.74.0:0.74.0 -proto-google-cloud-recommendations-ai-v1beta1:0.74.0:0.74.0 -google-cloud-recommender:2.69.0:2.69.0 -grpc-google-cloud-recommender-v1:2.69.0:2.69.0 -grpc-google-cloud-recommender-v1beta1:0.81.0:0.81.0 -proto-google-cloud-recommender-v1:2.69.0:2.69.0 -proto-google-cloud-recommender-v1beta1:0.81.0:0.81.0 -google-cloud-redis:2.70.0:2.70.0 -grpc-google-cloud-redis-v1beta1:0.158.0:0.158.0 -grpc-google-cloud-redis-v1:2.70.0:2.70.0 -proto-google-cloud-redis-v1:2.70.0:2.70.0 -proto-google-cloud-redis-v1beta1:0.158.0:0.158.0 -google-cloud-resourcemanager:1.69.0:1.69.0 -grpc-google-cloud-resourcemanager-v3:1.69.0:1.69.0 -proto-google-cloud-resourcemanager-v3:1.69.0:1.69.0 -google-cloud-retail:2.69.0:2.69.0 -grpc-google-cloud-retail-v2:2.69.0:2.69.0 -proto-google-cloud-retail-v2:2.69.0:2.69.0 -proto-google-cloud-retail-v2alpha:2.69.0:2.69.0 -proto-google-cloud-retail-v2beta:2.69.0:2.69.0 -grpc-google-cloud-retail-v2alpha:2.69.0:2.69.0 -grpc-google-cloud-retail-v2beta:2.69.0:2.69.0 -google-cloud-run:0.67.0:0.67.0 -proto-google-cloud-run-v2:0.67.0:0.67.0 -grpc-google-cloud-run-v2:0.67.0:0.67.0 -google-cloud-scheduler:2.67.0:2.67.0 -grpc-google-cloud-scheduler-v1beta1:0.152.0:0.152.0 -grpc-google-cloud-scheduler-v1:2.67.0:2.67.0 -proto-google-cloud-scheduler-v1beta1:0.152.0:0.152.0 -proto-google-cloud-scheduler-v1:2.67.0:2.67.0 -google-cloud-secretmanager:2.67.0:2.67.0 -grpc-google-cloud-secretmanager-v1:2.67.0:2.67.0 -proto-google-cloud-secretmanager-v1:2.67.0:2.67.0 -google-cloud-securitycenter:2.75.0:2.75.0 -grpc-google-cloud-securitycenter-v1:2.75.0:2.75.0 -grpc-google-cloud-securitycenter-v1beta1:0.170.0:0.170.0 -grpc-google-cloud-securitycenter-v1p1beta1:0.170.0:0.170.0 -proto-google-cloud-securitycenter-v1:2.75.0:2.75.0 -proto-google-cloud-securitycenter-v1beta1:0.170.0:0.170.0 -proto-google-cloud-securitycenter-v1p1beta1:0.170.0:0.170.0 -google-cloud-securitycenter-settings:0.70.0:0.70.0 -grpc-google-cloud-securitycenter-settings-v1beta1:0.70.0:0.70.0 -proto-google-cloud-securitycenter-settings-v1beta1:0.70.0:0.70.0 -google-cloud-security-private-ca:2.69.0:2.69.0 -grpc-google-cloud-security-private-ca-v1beta1:0.76.0:0.76.0 -grpc-google-cloud-security-private-ca-v1:2.69.0:2.69.0 -proto-google-cloud-security-private-ca-v1beta1:0.76.0:0.76.0 -proto-google-cloud-security-private-ca-v1:2.69.0:2.69.0 -google-cloud-service-control:1.67.0:1.67.0 -grpc-google-cloud-service-control-v1:1.67.0:1.67.0 -proto-google-cloud-service-control-v1:1.67.0:1.67.0 -proto-google-cloud-service-control-v2:1.67.0:1.67.0 -grpc-google-cloud-service-control-v2:1.67.0:1.67.0 -google-cloud-servicedirectory:2.68.0:2.68.0 -grpc-google-cloud-servicedirectory-v1beta1:0.76.0:0.76.0 -grpc-google-cloud-servicedirectory-v1:2.68.0:2.68.0 -proto-google-cloud-servicedirectory-v1beta1:0.76.0:0.76.0 -proto-google-cloud-servicedirectory-v1:2.68.0:2.68.0 -google-cloud-service-management:3.65.0:3.65.0 -grpc-google-cloud-service-management-v1:3.65.0:3.65.0 -proto-google-cloud-service-management-v1:3.65.0:3.65.0 -google-cloud-service-usage:2.67.0:2.67.0 -grpc-google-cloud-service-usage-v1beta1:0.71.0:0.71.0 -grpc-google-cloud-service-usage-v1:2.67.0:2.67.0 -proto-google-cloud-service-usage-v1:2.67.0:2.67.0 -proto-google-cloud-service-usage-v1beta1:0.71.0:0.71.0 -google-cloud-shell:2.66.0:2.66.0 -grpc-google-cloud-shell-v1:2.66.0:2.66.0 -proto-google-cloud-shell-v1:2.66.0:2.66.0 -google-cloud-speech:4.62.0:4.62.0 -grpc-google-cloud-speech-v1:4.62.0:4.62.0 -grpc-google-cloud-speech-v1p1beta1:2.62.0:2.62.0 -proto-google-cloud-speech-v1:4.62.0:4.62.0 -proto-google-cloud-speech-v1p1beta1:2.62.0:2.62.0 -proto-google-cloud-speech-v2:4.62.0:4.62.0 -grpc-google-cloud-speech-v2:4.62.0:4.62.0 -google-cloud-storage-transfer:1.67.0:1.67.0 -grpc-google-cloud-storage-transfer-v1:1.67.0:1.67.0 -proto-google-cloud-storage-transfer-v1:1.67.0:1.67.0 -google-cloud-talent:2.68.0:2.68.0 -grpc-google-cloud-talent-v4:2.68.0:2.68.0 -grpc-google-cloud-talent-v4beta1:0.111.0:0.111.0 -proto-google-cloud-talent-v4:2.68.0:2.68.0 -proto-google-cloud-talent-v4beta1:0.111.0:0.111.0 -google-cloud-tasks:2.67.0:2.67.0 -grpc-google-cloud-tasks-v2beta3:0.157.0:0.157.0 -grpc-google-cloud-tasks-v2beta2:0.157.0:0.157.0 -grpc-google-cloud-tasks-v2:2.67.0:2.67.0 -proto-google-cloud-tasks-v2beta3:0.157.0:0.157.0 -proto-google-cloud-tasks-v2beta2:0.157.0:0.157.0 -proto-google-cloud-tasks-v2:2.67.0:2.67.0 -google-cloud-texttospeech:2.68.0:2.68.0 -grpc-google-cloud-texttospeech-v1beta1:0.157.0:0.157.0 -grpc-google-cloud-texttospeech-v1:2.68.0:2.68.0 -proto-google-cloud-texttospeech-v1:2.68.0:2.68.0 -proto-google-cloud-texttospeech-v1beta1:0.157.0:0.157.0 -google-cloud-tpu:2.68.0:2.68.0 -grpc-google-cloud-tpu-v1:2.68.0:2.68.0 -grpc-google-cloud-tpu-v2alpha1:2.68.0:2.68.0 -proto-google-cloud-tpu-v1:2.68.0:2.68.0 -proto-google-cloud-tpu-v2alpha1:2.68.0:2.68.0 -google-cloud-trace:2.67.0:2.67.0 -grpc-google-cloud-trace-v1:2.67.0:2.67.0 -grpc-google-cloud-trace-v2:2.67.0:2.67.0 -proto-google-cloud-trace-v1:2.67.0:2.67.0 -proto-google-cloud-trace-v2:2.67.0:2.67.0 -google-cloud-translate:2.67.0:2.67.0 -grpc-google-cloud-translate-v3beta1:0.149.0:0.149.0 -grpc-google-cloud-translate-v3:2.67.0:2.67.0 -proto-google-cloud-translate-v3beta1:0.149.0:0.149.0 -proto-google-cloud-translate-v3:2.67.0:2.67.0 -google-cloud-video-intelligence:2.66.0:2.66.0 -grpc-google-cloud-video-intelligence-v1p1beta1:0.156.0:0.156.0 -grpc-google-cloud-video-intelligence-v1beta2:0.156.0:0.156.0 -grpc-google-cloud-video-intelligence-v1:2.66.0:2.66.0 -grpc-google-cloud-video-intelligence-v1p2beta1:0.156.0:0.156.0 -grpc-google-cloud-video-intelligence-v1p3beta1:0.156.0:0.156.0 -proto-google-cloud-video-intelligence-v1p3beta1:0.156.0:0.156.0 -proto-google-cloud-video-intelligence-v1beta2:0.156.0:0.156.0 -proto-google-cloud-video-intelligence-v1p1beta1:0.156.0:0.156.0 -proto-google-cloud-video-intelligence-v1:2.66.0:2.66.0 -proto-google-cloud-video-intelligence-v1p2beta1:0.156.0:0.156.0 -google-cloud-live-stream:0.69.0:0.69.0 -proto-google-cloud-live-stream-v1:0.69.0:0.69.0 -grpc-google-cloud-live-stream-v1:0.69.0:0.69.0 -google-cloud-video-stitcher:0.67.0:0.67.0 -proto-google-cloud-video-stitcher-v1:0.67.0:0.67.0 -grpc-google-cloud-video-stitcher-v1:0.67.0:0.67.0 -google-cloud-video-transcoder:1.66.0:1.66.0 -grpc-google-cloud-video-transcoder-v1:1.66.0:1.66.0 -proto-google-cloud-video-transcoder-v1:1.66.0:1.66.0 -google-cloud-vision:3.65.0:3.65.0 -grpc-google-cloud-vision-v1p3beta1:0.154.0:0.154.0 -grpc-google-cloud-vision-v1p1beta1:0.154.0:0.154.0 -grpc-google-cloud-vision-v1p4beta1:0.154.0:0.154.0 -grpc-google-cloud-vision-v1p2beta1:3.65.0:3.65.0 -grpc-google-cloud-vision-v1:3.65.0:3.65.0 -proto-google-cloud-vision-v1p4beta1:0.154.0:0.154.0 -proto-google-cloud-vision-v1:3.65.0:3.65.0 -proto-google-cloud-vision-v1p1beta1:0.154.0:0.154.0 -proto-google-cloud-vision-v1p3beta1:0.154.0:0.154.0 -proto-google-cloud-vision-v1p2beta1:3.65.0:3.65.0 -google-cloud-vmmigration:1.67.0:1.67.0 -grpc-google-cloud-vmmigration-v1:1.67.0:1.67.0 -proto-google-cloud-vmmigration-v1:1.67.0:1.67.0 -google-cloud-vpcaccess:2.68.0:2.68.0 -grpc-google-cloud-vpcaccess-v1:2.68.0:2.68.0 -proto-google-cloud-vpcaccess-v1:2.68.0:2.68.0 -google-cloud-webrisk:2.66.0:2.66.0 -grpc-google-cloud-webrisk-v1:2.66.0:2.66.0 -grpc-google-cloud-webrisk-v1beta1:0.103.0:0.103.0 -proto-google-cloud-webrisk-v1:2.66.0:2.66.0 -proto-google-cloud-webrisk-v1beta1:0.103.0:0.103.0 -google-cloud-websecurityscanner:2.67.0:2.67.0 -grpc-google-cloud-websecurityscanner-v1alpha:0.154.0:0.154.0 -grpc-google-cloud-websecurityscanner-v1beta:0.154.0:0.154.0 -grpc-google-cloud-websecurityscanner-v1:2.67.0:2.67.0 -proto-google-cloud-websecurityscanner-v1alpha:0.154.0:0.154.0 -proto-google-cloud-websecurityscanner-v1beta:0.154.0:0.154.0 -proto-google-cloud-websecurityscanner-v1:2.67.0:2.67.0 -google-cloud-workflow-executions:2.67.0:2.67.0 -grpc-google-cloud-workflow-executions-v1beta:0.71.0:0.71.0 -grpc-google-cloud-workflow-executions-v1:2.67.0:2.67.0 -proto-google-cloud-workflow-executions-v1beta:0.71.0:0.71.0 -proto-google-cloud-workflow-executions-v1:2.67.0:2.67.0 -google-cloud-workflows:2.67.0:2.67.0 -grpc-google-cloud-workflows-v1beta:0.73.0:0.73.0 -grpc-google-cloud-workflows-v1:2.67.0:2.67.0 -proto-google-cloud-workflows-v1beta:0.73.0:0.73.0 -proto-google-cloud-workflows-v1:2.67.0:2.67.0 -google-cloud-dns:2.65.0:2.65.0 -google-maps-routing:1.52.0:1.52.0 -proto-google-maps-routing-v2:1.52.0:1.52.0 -grpc-google-maps-routing-v2:1.52.0:1.52.0 -google-cloud-vmwareengine:0.61.0:0.61.0 -proto-google-cloud-vmwareengine-v1:0.61.0:0.61.0 -grpc-google-cloud-vmwareengine-v1:0.61.0:0.61.0 -google-maps-addressvalidation:0.61.0:0.61.0 -proto-google-maps-addressvalidation-v1:0.61.0:0.61.0 -grpc-google-maps-addressvalidation-v1:0.61.0:0.61.0 -proto-google-cloud-bigquerydatapolicy-v1:0.64.0:0.64.0 -grpc-google-cloud-bigquerydatapolicy-v1:0.64.0:0.64.0 -google-cloud-monitoring-metricsscope:0.61.0:0.61.0 -proto-google-cloud-monitoring-metricsscope-v1:0.61.0:0.61.0 -grpc-google-cloud-monitoring-metricsscope-v1:0.61.0:0.61.0 -proto-google-cloud-tpu-v2:2.68.0:2.68.0 -grpc-google-cloud-tpu-v2:2.68.0:2.68.0 -google-cloud-datalineage:0.59.0:0.59.0 -proto-google-cloud-datalineage-v1:0.59.0:0.59.0 -grpc-google-cloud-datalineage-v1:0.59.0:0.59.0 -google-iam-policy:1.65.0:1.65.0 -proto-google-cloud-build-v2:3.69.0:3.69.0 -grpc-google-cloud-build-v2:3.69.0:3.69.0 -google-cloud-advisorynotifications:0.56.0:0.56.0 -proto-google-cloud-advisorynotifications-v1:0.56.0:0.56.0 -grpc-google-cloud-advisorynotifications-v1:0.56.0:0.56.0 -google-maps-mapsplatformdatasets:0.56.0:0.56.0 -google-cloud-kmsinventory:0.56.0:0.56.0 -proto-google-cloud-kmsinventory-v1:0.56.0:0.56.0 -grpc-google-cloud-kmsinventory-v1:0.56.0:0.56.0 -google-cloud-alloydb:0.56.0:0.56.0 -proto-google-cloud-alloydb-v1:0.56.0:0.56.0 -proto-google-cloud-alloydb-v1beta:0.56.0:0.56.0 -proto-google-cloud-alloydb-v1alpha:0.56.0:0.56.0 -grpc-google-cloud-alloydb-v1beta:0.56.0:0.56.0 -grpc-google-cloud-alloydb-v1:0.56.0:0.56.0 -grpc-google-cloud-alloydb-v1alpha:0.56.0:0.56.0 -google-cloud-biglake:0.55.0:0.55.0 -proto-google-cloud-biglake-v1alpha1:0.55.0:0.55.0 -grpc-google-cloud-biglake-v1alpha1:0.55.0:0.55.0 -google-cloud-workstations:0.55.0:0.55.0 -proto-google-cloud-workstations-v1beta:0.55.0:0.55.0 -grpc-google-cloud-workstations-v1beta:0.55.0:0.55.0 -google-cloud-confidentialcomputing:0.53.0:0.53.0 -proto-google-cloud-confidentialcomputing-v1:0.53.0:0.53.0 -proto-google-cloud-confidentialcomputing-v1alpha1:0.53.0:0.53.0 -grpc-google-cloud-confidentialcomputing-v1:0.53.0:0.53.0 -grpc-google-cloud-confidentialcomputing-v1alpha1:0.53.0:0.53.0 -proto-google-cloud-workstations-v1:0.55.0:0.55.0 -grpc-google-cloud-workstations-v1:0.55.0:0.55.0 -proto-google-cloud-biglake-v1:0.55.0:0.55.0 -grpc-google-cloud-biglake-v1:0.55.0:0.55.0 -google-cloud-storageinsights:0.52.0:0.52.0 -proto-google-cloud-storageinsights-v1:0.52.0:0.52.0 -grpc-google-cloud-storageinsights-v1:0.52.0:0.52.0 -google-cloud-cloudsupport:0.51.0:0.51.0 -proto-google-cloud-cloudsupport-v2:0.51.0:0.51.0 -grpc-google-cloud-cloudsupport-v2:0.51.0:0.51.0 -google-cloud-rapidmigrationassessment:0.50.0:0.50.0 -proto-google-cloud-rapidmigrationassessment-v1:0.50.0:0.50.0 -grpc-google-cloud-rapidmigrationassessment-v1:0.50.0:0.50.0 -proto-google-maps-mapsplatformdatasets-v1:0.56.0:0.56.0 -grpc-google-maps-mapsplatformdatasets-v1:0.56.0:0.56.0 -google-shopping-merchant-accounts:0.23.0:0.23.0 -proto-google-shopping-merchant-accounts-v1beta:0.23.0:0.23.0 -grpc-google-shopping-merchant-accounts-v1beta:0.23.0:0.23.0 -proto-google-cloud-discoveryengine-v1:0.63.0:0.63.0 -grpc-google-cloud-discoveryengine-v1:0.63.0:0.63.0 -google-cloud-migrationcenter:0.49.0:0.49.0 -proto-google-cloud-migrationcenter-v1:0.49.0:0.49.0 -grpc-google-cloud-migrationcenter-v1:0.49.0:0.49.0 -google-cloud-policysimulator:0.46.0:0.46.0 -proto-google-cloud-policysimulator-v1:0.46.0:0.46.0 -grpc-google-cloud-policysimulator-v1:0.46.0:0.46.0 -google-cloud-netapp:0.46.0:0.46.0 -proto-google-cloud-netapp-v1beta1:0.46.0:0.46.0 -grpc-google-cloud-netapp-v1beta1:0.46.0:0.46.0 -proto-google-cloud-netapp-v1:0.46.0:0.46.0 -grpc-google-cloud-netapp-v1:0.46.0:0.46.0 -proto-google-cloud-cloudcommerceconsumerprocurement-v1:0.65.0:0.65.0 -grpc-google-cloud-cloudcommerceconsumerprocurement-v1:0.65.0:0.65.0 -google-cloud-java-alloydb-connectors:0.45.0:0.45.0 -proto-google-cloud-java-alloydb-connectors-v1alpha:0.45.0:0.45.0 -google-cloud-alloydb-connectors:0.45.0:0.45.0 -proto-google-cloud-alloydb-connectors-v1alpha:0.45.0:0.45.0 -proto-google-cloud-language-v2:2.68.0:2.68.0 -grpc-google-cloud-language-v2:2.68.0:2.68.0 -google-cloud-infra-manager:0.44.0:0.44.0 -proto-google-cloud-infra-manager-v1:0.44.0:0.44.0 -grpc-google-cloud-infra-manager-v1:0.44.0:0.44.0 -proto-google-cloud-notebooks-v2:1.65.0:1.65.0 -grpc-google-cloud-notebooks-v2:1.65.0:1.65.0 -proto-google-cloud-alloydb-connectors-v1beta:0.45.0:0.45.0 -google-shopping-merchant-inventories:0.43.0:0.43.0 -proto-google-shopping-merchant-inventories-v1beta:0.43.0:0.43.0 -grpc-google-shopping-merchant-inventories-v1beta:0.43.0:0.43.0 -proto-google-cloud-policy-troubleshooter-v3:1.66.0:1.66.0 -grpc-google-cloud-policy-troubleshooter-v3:1.66.0:1.66.0 -google-shopping-merchant-reports:0.43.0:0.43.0 -proto-google-shopping-merchant-reports-v1beta:0.43.0:0.43.0 -grpc-google-shopping-merchant-reports-v1beta:0.43.0:0.43.0 -proto-google-cloud-alloydb-connectors-v1:0.45.0:0.45.0 -proto-google-cloud-discoveryengine-v1alpha:0.63.0:0.63.0 -grpc-google-cloud-discoveryengine-v1alpha:0.63.0:0.63.0 -google-cloud-redis-cluster:0.39.0:0.39.0 -proto-google-cloud-redis-cluster-v1beta1:0.39.0:0.39.0 -proto-google-cloud-redis-cluster-v1:0.39.0:0.39.0 -grpc-google-cloud-redis-cluster-v1:0.39.0:0.39.0 -grpc-google-cloud-redis-cluster-v1beta1:0.39.0:0.39.0 -google-maps-places:0.38.0:0.38.0 -proto-google-maps-places-v1:0.38.0:0.38.0 -grpc-google-maps-places-v1:0.38.0:0.38.0 -google-cloud-telcoautomation:0.37.0:0.37.0 -proto-google-cloud-telcoautomation-v1:0.37.0:0.37.0 -proto-google-cloud-telcoautomation-v1alpha1:0.37.0:0.37.0 -grpc-google-cloud-telcoautomation-v1:0.37.0:0.37.0 -grpc-google-cloud-telcoautomation-v1alpha1:0.37.0:0.37.0 -google-cloud-securesourcemanager:0.37.0:0.37.0 -proto-google-cloud-securesourcemanager-v1:0.37.0:0.37.0 -grpc-google-cloud-securesourcemanager-v1:0.37.0:0.37.0 -google-cloud-vertexai:1.27.0:1.27.0 -proto-google-cloud-vertexai-v1:1.27.0:1.27.0 -proto-google-cloud-vertexai-v1beta1:1.27.0:1.27.0 -grpc-google-cloud-vertexai-v1:1.27.0:1.27.0 -grpc-google-cloud-vertexai-v1beta1:1.27.0:1.27.0 -google-cloud-edgenetwork:0.35.0:0.35.0 -proto-google-cloud-edgenetwork-v1:0.35.0:0.35.0 -grpc-google-cloud-edgenetwork-v1:0.35.0:0.35.0 -google-cloud-cloudquotas:0.35.0:0.35.0 -proto-google-cloud-cloudquotas-v1:0.35.0:0.35.0 -grpc-google-cloud-cloudquotas-v1:0.35.0:0.35.0 -google-cloud-securitycentermanagement:0.35.0:0.35.0 -proto-google-cloud-securitycentermanagement-v1:0.35.0:0.35.0 -grpc-google-cloud-securitycentermanagement-v1:0.35.0:0.35.0 -google-shopping-css:0.35.0:0.35.0 -proto-google-shopping-css-v1:0.35.0:0.35.0 -grpc-google-shopping-css-v1:0.35.0:0.35.0 -google-cloud-meet:0.34.0:0.34.0 -proto-google-cloud-meet-v2beta:0.34.0:0.34.0 -grpc-google-cloud-meet-v2beta:0.34.0:0.34.0 -google-cloud-servicehealth:0.34.0:0.34.0 -proto-google-cloud-servicehealth-v1:0.34.0:0.34.0 -grpc-google-cloud-servicehealth-v1:0.34.0:0.34.0 -proto-google-cloud-meet-v2:0.34.0:0.34.0 -grpc-google-cloud-meet-v2:0.34.0:0.34.0 -google-cloud-securityposture:0.32.0:0.32.0 -proto-google-cloud-securityposture-v1:0.32.0:0.32.0 -grpc-google-cloud-securityposture-v1:0.32.0:0.32.0 -proto-google-cloud-securitycenter-v2:2.75.0:2.75.0 -grpc-google-cloud-securitycenter-v2:2.75.0:2.75.0 -google-cloud-cloudcontrolspartner:0.31.0:0.31.0 -proto-google-cloud-cloudcontrolspartner-v1beta:0.31.0:0.31.0 -proto-google-cloud-cloudcontrolspartner-v1:0.31.0:0.31.0 -grpc-google-cloud-cloudcontrolspartner-v1:0.31.0:0.31.0 -grpc-google-cloud-cloudcontrolspartner-v1beta:0.31.0:0.31.0 -google-cloud-workspaceevents:0.31.0:0.31.0 -proto-google-cloud-workspaceevents-v1:0.31.0:0.31.0 -grpc-google-cloud-workspaceevents-v1:0.31.0:0.31.0 -google-cloud-apphub:0.31.0:0.31.0 -proto-google-cloud-apphub-v1:0.31.0:0.31.0 -grpc-google-cloud-apphub-v1:0.31.0:0.31.0 -google-cloud-chat:0.31.0:0.31.0 -proto-google-cloud-chat-v1:0.31.0:0.31.0 -grpc-google-cloud-chat-v1:0.31.0:0.31.0 -google-shopping-merchant-quota:0.30.0:0.30.0 -proto-google-shopping-merchant-quota-v1beta:0.30.0:0.30.0 -grpc-google-shopping-merchant-quota-v1beta:0.30.0:0.30.0 -proto-google-cloud-secretmanager-v1beta2:2.67.0:2.67.0 -grpc-google-cloud-secretmanager-v1beta2:2.67.0:2.67.0 -google-cloud-parallelstore:0.30.0:0.30.0 -proto-google-cloud-parallelstore-v1beta:0.30.0:0.30.0 -grpc-google-cloud-parallelstore-v1beta:0.30.0:0.30.0 -google-cloud-backupdr:0.26.0:0.26.0 -proto-google-cloud-backupdr-v1:0.26.0:0.26.0 -grpc-google-cloud-backupdr-v1:0.26.0:0.26.0 -google-maps-solar:0.26.0:0.26.0 -proto-google-maps-solar-v1:0.26.0:0.26.0 -grpc-google-maps-solar-v1:0.26.0:0.26.0 -google-shopping-merchant-datasources:0.23.0:0.23.0 -proto-google-shopping-merchant-datasources-v1beta:0.23.0:0.23.0 -grpc-google-shopping-merchant-datasources-v1beta:0.23.0:0.23.0 -google-shopping-merchant-conversions:0.26.0:0.26.0 -proto-google-shopping-merchant-conversions-v1beta:0.26.0:0.26.0 -grpc-google-shopping-merchant-conversions-v1beta:0.26.0:0.26.0 -google-shopping-merchant-lfp:0.26.0:0.26.0 -proto-google-shopping-merchant-lfp-v1beta:0.26.0:0.26.0 -grpc-google-shopping-merchant-lfp-v1beta:0.26.0:0.26.0 -google-shopping-merchant-notifications:0.26.0:0.26.0 -proto-google-shopping-merchant-notifications-v1beta:0.26.0:0.26.0 -grpc-google-shopping-merchant-notifications-v1beta:0.26.0:0.26.0 -ad-manager:0.26.0:0.26.0 -proto-ad-manager-v1:0.26.0:0.26.0 -google-maps-routeoptimization:0.25.0:0.25.0 -proto-google-maps-routeoptimization-v1:0.25.0:0.25.0 -grpc-google-maps-routeoptimization-v1:0.25.0:0.25.0 -proto-google-cloud-publicca-v1:0.64.0:0.64.0 -grpc-google-cloud-publicca-v1:0.64.0:0.64.0 -google-cloud-visionai:0.24.0:0.24.0 -proto-google-cloud-visionai-v1:0.24.0:0.24.0 -grpc-google-cloud-visionai-v1:0.24.0:0.24.0 -google-cloud-developerconnect:0.24.0:0.24.0 -proto-google-cloud-developerconnect-v1:0.24.0:0.24.0 -grpc-google-cloud-developerconnect-v1:0.24.0:0.24.0 -google-cloud-iap:0.23.0:0.23.0 -proto-google-cloud-iap-v1:0.23.0:0.23.0 -grpc-google-cloud-iap-v1:0.23.0:0.23.0 -google-cloud-managedkafka:0.23.0:0.23.0 -proto-google-cloud-managedkafka-v1:0.23.0:0.23.0 -grpc-google-cloud-managedkafka-v1:0.23.0:0.23.0 -google-cloud-networkservices:0.23.0:0.23.0 -proto-google-cloud-networkservices-v1:0.23.0:0.23.0 -grpc-google-cloud-networkservices-v1:0.23.0:0.23.0 -google-shopping-merchant-products:0.23.0:0.23.0 -proto-google-shopping-merchant-products-v1beta:0.23.0:0.23.0 -grpc-google-shopping-merchant-products-v1beta:0.23.0:0.23.0 -google-cloud-gdchardwaremanagement:0.22.0:0.22.0 -proto-google-cloud-gdchardwaremanagement-v1alpha:0.22.0:0.22.0 -grpc-google-cloud-gdchardwaremanagement-v1alpha:0.22.0:0.22.0 -google-cloud-privilegedaccessmanager:0.21.0:0.21.0 -proto-google-cloud-privilegedaccessmanager-v1:0.21.0:0.21.0 -grpc-google-cloud-privilegedaccessmanager-v1:0.21.0:0.21.0 -google-cloud-apihub:0.20.0:0.20.0 -proto-google-cloud-apihub-v1:0.20.0:0.20.0 -grpc-google-cloud-apihub-v1:0.20.0:0.20.0 -google-cloud-connectgateway:0.19.0:0.19.0 -proto-google-cloud-connectgateway-v1:0.19.0:0.19.0 -google-maps-area-insights:0.18.0:0.18.0 -proto-google-maps-area-insights-v1:0.18.0:0.18.0 -grpc-google-maps-area-insights-v1:0.18.0:0.18.0 -admin:0.16.0:0.16.0 -proto-admin-v1alpha:0.16.0:0.16.0 -grpc-admin-v1alpha:0.16.0:0.16.0 -google-cloud-oracledatabase:0.16.0:0.16.0 -proto-google-cloud-oracledatabase-v1:0.16.0:0.16.0 -proto-google-cloud-parallelstore-v1:0.30.0:0.30.0 -grpc-google-cloud-parallelstore-v1:0.30.0:0.30.0 -google-maps-fleetengine:0.14.0:0.14.0 -proto-google-maps-fleetengine-v1:0.14.0:0.14.0 -grpc-google-maps-fleetengine-v1:0.14.0:0.14.0 -google-maps-fleetengine-delivery:0.14.0:0.14.0 -proto-google-maps-fleetengine-delivery-v1:0.14.0:0.14.0 -grpc-google-maps-fleetengine-delivery-v1:0.14.0:0.14.0 -google-shopping-merchant-reviews:0.13.0:0.13.0 -proto-google-shopping-merchant-reviews-v1beta:0.13.0:0.13.0 -grpc-google-shopping-merchant-reviews-v1beta:0.13.0:0.13.0 -google-cloud-valkey:0.13.0:0.13.0 -proto-google-cloud-valkey-v1:0.13.0:0.13.0 -proto-google-cloud-valkey-v1beta:0.13.0:0.13.0 -proto-google-cloud-cloudquotas-v1beta:0.35.0:0.35.0 -grpc-google-cloud-cloudquotas-v1beta:0.35.0:0.35.0 -proto-google-cloud-secretmanager-v1beta1:2.67.0:2.67.0 -grpc-google-cloud-secretmanager-v1beta1:2.67.0:2.67.0 -google-cloud-parametermanager:0.11.0:0.11.0 -proto-google-cloud-parametermanager-v1:0.11.0:0.11.0 -grpc-google-cloud-parametermanager-v1:0.11.0:0.11.0 -google-cloud-modelarmor:0.8.0:0.8.0 -proto-google-cloud-modelarmor-v1:0.8.0:0.8.0 -grpc-google-cloud-modelarmor-v1:0.8.0:0.8.0 -google-cloud-financialservices:0.8.0:0.8.0 -proto-google-cloud-financialservices-v1:0.8.0:0.8.0 -grpc-google-cloud-financialservices-v1:0.8.0:0.8.0 -google-cloud-devicestreaming:0.7.0:0.7.0 -proto-google-cloud-devicestreaming-v1:0.7.0:0.7.0 -grpc-google-cloud-devicestreaming-v1:0.7.0:0.7.0 -google-shopping-merchant-productstudio:0.7.0:0.7.0 -proto-google-shopping-merchant-productstudio-v1alpha:0.7.0:0.7.0 -grpc-google-shopping-merchant-productstudio-v1alpha:0.7.0:0.7.0 -google-cloud-storagebatchoperations:0.7.0:0.7.0 -proto-google-cloud-storagebatchoperations-v1:0.7.0:0.7.0 -grpc-google-cloud-storagebatchoperations-v1:0.7.0:0.7.0 -google-shopping-merchant-issue-resolution:0.7.0:0.7.0 -proto-google-shopping-merchant-issue-resolution-v1beta:0.7.0:0.7.0 -grpc-google-shopping-merchant-issue-resolution-v1beta:0.7.0:0.7.0 -google-cloud-lustre:0.7.0:0.7.0 -proto-google-cloud-lustre-v1:0.7.0:0.7.0 -grpc-google-cloud-lustre-v1:0.7.0:0.7.0 -google-shopping-merchant-order-tracking:0.7.0:0.7.0 -proto-google-shopping-merchant-order-tracking-v1beta:0.7.0:0.7.0 -grpc-google-shopping-merchant-order-tracking-v1beta:0.7.0:0.7.0 -grpc-google-cloud-oracledatabase-v1:0.16.0:0.16.0 -google-cloud-chronicle:0.5.0:0.5.0 -proto-google-cloud-chronicle-v1:0.5.0:0.5.0 -grpc-google-cloud-chronicle-v1:0.5.0:0.5.0 -proto-google-cloud-cloudsupport-v2beta:0.51.0:0.51.0 -grpc-google-cloud-cloudsupport-v2beta:0.51.0:0.51.0 -proto-google-cloud-modelarmor-v1beta:0.8.0:0.8.0 -grpc-google-cloud-modelarmor-v1beta:0.8.0:0.8.0 -proto-google-cloud-dataform-v1:0.66.0:0.66.0 -grpc-google-cloud-dataform-v1:0.66.0:0.66.0 -google-cloud-spanneradapter:0.3.0:0.3.0 -proto-google-cloud-spanneradapter-v1:0.3.0:0.3.0 -grpc-google-cloud-spanneradapter-v1:0.3.0:0.3.0 -proto-google-cloud-workspaceevents-v1beta:0.31.0:0.31.0 -grpc-google-cloud-workspaceevents-v1beta:0.31.0:0.31.0 -google-cloud-maintenance:0.1.0:0.1.0 -proto-google-cloud-maintenance-v1beta:0.1.0:0.1.0 -grpc-google-cloud-maintenance-v1beta:0.1.0:0.1.0 -google-cloud-configdelivery:0.1.0:0.1.0 -proto-google-cloud-configdelivery-v1beta:0.1.0:0.1.0 -grpc-google-cloud-configdelivery-v1beta:0.1.0:0.1.0 +google-cloud-java:1.62.0:1.62.0 +google-cloud-accessapproval:2.69.0:2.69.0 +grpc-google-cloud-accessapproval-v1:2.69.0:2.69.0 +proto-google-cloud-accessapproval-v1:2.69.0:2.69.0 +google-identity-accesscontextmanager:1.69.0:1.69.0 +grpc-google-identity-accesscontextmanager-v1:1.69.0:1.69.0 +proto-google-identity-accesscontextmanager-v1:1.69.0:1.69.0 +proto-google-identity-accesscontextmanager-type:1.69.0:1.69.0 +google-cloud-aiplatform:3.69.0:3.69.0 +grpc-google-cloud-aiplatform-v1:3.69.0:3.69.0 +grpc-google-cloud-aiplatform-v1beta1:0.85.0:0.85.0 +proto-google-cloud-aiplatform-v1:3.69.0:3.69.0 +proto-google-cloud-aiplatform-v1beta1:0.85.0:0.85.0 +google-analytics-admin:0.78.0:0.78.0 +grpc-google-analytics-admin-v1alpha:0.78.0:0.78.0 +proto-google-analytics-admin-v1alpha:0.78.0:0.78.0 +proto-google-analytics-admin-v1beta:0.78.0:0.78.0 +grpc-google-analytics-admin-v1beta:0.78.0:0.78.0 +google-analytics-data:0.79.0:0.79.0 +grpc-google-analytics-data-v1beta:0.79.0:0.79.0 +proto-google-analytics-data-v1beta:0.79.0:0.79.0 +proto-google-analytics-data-v1alpha:0.79.0:0.79.0 +grpc-google-analytics-data-v1alpha:0.79.0:0.79.0 +google-cloud-analyticshub:0.65.0:0.65.0 +proto-google-cloud-analyticshub-v1:0.65.0:0.65.0 +grpc-google-cloud-analyticshub-v1:0.65.0:0.65.0 +google-shopping-merchant-promotions:0.24.0:0.24.0 +proto-google-shopping-merchant-promotions-v1beta:0.24.0:0.24.0 +grpc-google-shopping-merchant-promotions-v1beta:0.24.0:0.24.0 +google-cloud-api-gateway:2.68.0:2.68.0 +grpc-google-cloud-api-gateway-v1:2.68.0:2.68.0 +proto-google-cloud-api-gateway-v1:2.68.0:2.68.0 +google-cloud-apigee-connect:2.68.0:2.68.0 +grpc-google-cloud-apigee-connect-v1:2.68.0:2.68.0 +proto-google-cloud-apigee-connect-v1:2.68.0:2.68.0 +google-cloud-apigee-registry:0.68.0:0.68.0 +proto-google-cloud-apigee-registry-v1:0.68.0:0.68.0 +grpc-google-cloud-apigee-registry-v1:0.68.0:0.68.0 +google-cloud-apikeys:0.66.0:0.66.0 +proto-google-cloud-apikeys-v2:0.66.0:0.66.0 +grpc-google-cloud-apikeys-v2:0.66.0:0.66.0 +google-cloud-appengine-admin:2.68.0:2.68.0 +grpc-google-cloud-appengine-admin-v1:2.68.0:2.68.0 +proto-google-cloud-appengine-admin-v1:2.68.0:2.68.0 +google-area120-tables:0.72.0:0.72.0 +grpc-google-area120-tables-v1alpha1:0.72.0:0.72.0 +proto-google-area120-tables-v1alpha1:0.72.0:0.72.0 +google-cloud-artifact-registry:1.67.0:1.67.0 +grpc-google-cloud-artifact-registry-v1beta2:0.73.0:0.73.0 +grpc-google-cloud-artifact-registry-v1:1.67.0:1.67.0 +proto-google-cloud-artifact-registry-v1beta2:0.73.0:0.73.0 +proto-google-cloud-artifact-registry-v1:1.67.0:1.67.0 +google-cloud-asset:3.72.0:3.72.0 +grpc-google-cloud-asset-v1:3.72.0:3.72.0 +grpc-google-cloud-asset-v1p1beta1:0.172.0:0.172.0 +grpc-google-cloud-asset-v1p2beta1:0.172.0:0.172.0 +grpc-google-cloud-asset-v1p5beta1:0.172.0:0.172.0 +grpc-google-cloud-asset-v1p7beta1:3.72.0:3.72.0 +proto-google-cloud-asset-v1:3.72.0:3.72.0 +proto-google-cloud-asset-v1p1beta1:0.172.0:0.172.0 +proto-google-cloud-asset-v1p2beta1:0.172.0:0.172.0 +proto-google-cloud-asset-v1p5beta1:0.172.0:0.172.0 +proto-google-cloud-asset-v1p7beta1:3.72.0:3.72.0 +google-cloud-assured-workloads:2.68.0:2.68.0 +grpc-google-cloud-assured-workloads-v1beta1:0.80.0:0.80.0 +grpc-google-cloud-assured-workloads-v1:2.68.0:2.68.0 +proto-google-cloud-assured-workloads-v1beta1:0.80.0:0.80.0 +proto-google-cloud-assured-workloads-v1:2.68.0:2.68.0 +google-cloud-automl:2.68.0:2.68.0 +grpc-google-cloud-automl-v1beta1:0.155.0:0.155.0 +grpc-google-cloud-automl-v1:2.68.0:2.68.0 +proto-google-cloud-automl-v1beta1:0.155.0:0.155.0 +proto-google-cloud-automl-v1:2.68.0:2.68.0 +google-cloud-bare-metal-solution:0.68.0:0.68.0 +proto-google-cloud-bare-metal-solution-v2:0.68.0:0.68.0 +grpc-google-cloud-bare-metal-solution-v2:0.68.0:0.68.0 +google-cloud-batch:0.68.0:0.68.0 +proto-google-cloud-batch-v1:0.68.0:0.68.0 +grpc-google-cloud-batch-v1:0.68.0:0.68.0 +proto-google-cloud-batch-v1alpha:0.68.0:0.68.0 +grpc-google-cloud-batch-v1alpha:0.68.0:0.68.0 +google-cloud-beyondcorp-appconnections:0.66.0:0.66.0 +proto-google-cloud-beyondcorp-appconnections-v1:0.66.0:0.66.0 +grpc-google-cloud-beyondcorp-appconnections-v1:0.66.0:0.66.0 +google-cloud-beyondcorp-appconnectors:0.66.0:0.66.0 +proto-google-cloud-beyondcorp-appconnectors-v1:0.66.0:0.66.0 +grpc-google-cloud-beyondcorp-appconnectors-v1:0.66.0:0.66.0 +google-cloud-beyondcorp-appgateways:0.66.0:0.66.0 +proto-google-cloud-beyondcorp-appgateways-v1:0.66.0:0.66.0 +grpc-google-cloud-beyondcorp-appgateways-v1:0.66.0:0.66.0 +google-cloud-beyondcorp-clientconnectorservices:0.66.0:0.66.0 +proto-google-cloud-beyondcorp-clientconnectorservices-v1:0.66.0:0.66.0 +grpc-google-cloud-beyondcorp-clientconnectorservices-v1:0.66.0:0.66.0 +google-cloud-beyondcorp-clientgateways:0.66.0:0.66.0 +proto-google-cloud-beyondcorp-clientgateways-v1:0.66.0:0.66.0 +grpc-google-cloud-beyondcorp-clientgateways-v1:0.66.0:0.66.0 +google-cloud-bigqueryconnection:2.70.0:2.70.0 +grpc-google-cloud-bigqueryconnection-v1:2.70.0:2.70.0 +grpc-google-cloud-bigqueryconnection-v1beta1:0.78.0:0.78.0 +proto-google-cloud-bigqueryconnection-v1:2.70.0:2.70.0 +proto-google-cloud-bigqueryconnection-v1beta1:0.78.0:0.78.0 +google-cloud-bigquery-data-exchange:2.63.0:2.63.0 +proto-google-cloud-bigquery-data-exchange-v1beta1:2.63.0:2.63.0 +grpc-google-cloud-bigquery-data-exchange-v1beta1:2.63.0:2.63.0 +google-cloud-bigquerydatapolicy:0.65.0:0.65.0 +proto-google-cloud-bigquerydatapolicy-v1beta1:0.65.0:0.65.0 +grpc-google-cloud-bigquerydatapolicy-v1beta1:0.65.0:0.65.0 +google-cloud-bigquerydatatransfer:2.68.0:2.68.0 +grpc-google-cloud-bigquerydatatransfer-v1:2.68.0:2.68.0 +proto-google-cloud-bigquerydatatransfer-v1:2.68.0:2.68.0 +google-cloud-bigquerymigration:0.71.0:0.71.0 +grpc-google-cloud-bigquerymigration-v2alpha:0.71.0:0.71.0 +proto-google-cloud-bigquerymigration-v2alpha:0.71.0:0.71.0 +proto-google-cloud-bigquerymigration-v2:0.71.0:0.71.0 +grpc-google-cloud-bigquerymigration-v2:0.71.0:0.71.0 +google-cloud-bigqueryreservation:2.69.0:2.69.0 +grpc-google-cloud-bigqueryreservation-v1:2.69.0:2.69.0 +proto-google-cloud-bigqueryreservation-v1:2.69.0:2.69.0 +google-cloud-billingbudgets:2.68.0:2.68.0 +grpc-google-cloud-billingbudgets-v1beta1:0.77.0:0.77.0 +grpc-google-cloud-billingbudgets-v1:2.68.0:2.68.0 +proto-google-cloud-billingbudgets-v1beta1:0.77.0:0.77.0 +proto-google-cloud-billingbudgets-v1:2.68.0:2.68.0 +google-cloud-billing:2.68.0:2.68.0 +grpc-google-cloud-billing-v1:2.68.0:2.68.0 +proto-google-cloud-billing-v1:2.68.0:2.68.0 +google-cloud-binary-authorization:1.67.0:1.67.0 +grpc-google-cloud-binary-authorization-v1beta1:0.72.0:0.72.0 +grpc-google-cloud-binary-authorization-v1:1.67.0:1.67.0 +proto-google-cloud-binary-authorization-v1beta1:0.72.0:0.72.0 +proto-google-cloud-binary-authorization-v1:1.67.0:1.67.0 +google-cloud-certificate-manager:0.71.0:0.71.0 +proto-google-cloud-certificate-manager-v1:0.71.0:0.71.0 +grpc-google-cloud-certificate-manager-v1:0.71.0:0.71.0 +google-cloud-channel:3.72.0:3.72.0 +grpc-google-cloud-channel-v1:3.72.0:3.72.0 +proto-google-cloud-channel-v1:3.72.0:3.72.0 +google-cloud-build:3.70.0:3.70.0 +grpc-google-cloud-build-v1:3.70.0:3.70.0 +proto-google-cloud-build-v1:3.70.0:3.70.0 +google-cloud-cloudcommerceconsumerprocurement:0.66.0:0.66.0 +proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1:0.66.0:0.66.0 +grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1:0.66.0:0.66.0 +google-cloud-compute:1.78.0:1.78.0 +proto-google-cloud-compute-v1:1.78.0:1.78.0 +google-cloud-contact-center-insights:2.68.0:2.68.0 +grpc-google-cloud-contact-center-insights-v1:2.68.0:2.68.0 +proto-google-cloud-contact-center-insights-v1:2.68.0:2.68.0 +proto-google-cloud-containeranalysis-v1:2.69.0:2.69.0 +proto-google-cloud-containeranalysis-v1beta1:0.159.0:0.159.0 +grpc-google-cloud-containeranalysis-v1beta1:0.159.0:0.159.0 +grpc-google-cloud-containeranalysis-v1:2.69.0:2.69.0 +google-cloud-containeranalysis:2.69.0:2.69.0 +google-cloud-container:2.71.0:2.71.0 +grpc-google-cloud-container-v1:2.71.0:2.71.0 +grpc-google-cloud-container-v1beta1:2.71.0:2.71.0 +proto-google-cloud-container-v1:2.71.0:2.71.0 +proto-google-cloud-container-v1beta1:2.71.0:2.71.0 +google-cloud-contentwarehouse:0.64.0:0.64.0 +proto-google-cloud-contentwarehouse-v1:0.64.0:0.64.0 +grpc-google-cloud-contentwarehouse-v1:0.64.0:0.64.0 +google-cloud-datacatalog:1.74.0:1.74.0 +grpc-google-cloud-datacatalog-v1:1.74.0:1.74.0 +grpc-google-cloud-datacatalog-v1beta1:0.111.0:0.111.0 +proto-google-cloud-datacatalog-v1:1.74.0:1.74.0 +proto-google-cloud-datacatalog-v1beta1:0.111.0:0.111.0 +google-cloud-dataflow:0.72.0:0.72.0 +grpc-google-cloud-dataflow-v1beta3:0.72.0:0.72.0 +proto-google-cloud-dataflow-v1beta3:0.72.0:0.72.0 +google-cloud-dataform:0.67.0:0.67.0 +proto-google-cloud-dataform-v1beta1:0.67.0:0.67.0 +grpc-google-cloud-dataform-v1beta1:0.67.0:0.67.0 +google-cloud-data-fusion:1.68.0:1.68.0 +grpc-google-cloud-data-fusion-v1beta1:0.72.0:0.72.0 +grpc-google-cloud-data-fusion-v1:1.68.0:1.68.0 +proto-google-cloud-data-fusion-v1beta1:0.72.0:0.72.0 +proto-google-cloud-data-fusion-v1:1.68.0:1.68.0 +google-cloud-datalabeling:0.188.0:0.188.0 +grpc-google-cloud-datalabeling-v1beta1:0.153.0:0.153.0 +proto-google-cloud-datalabeling-v1beta1:0.153.0:0.153.0 +google-cloud-dataplex:1.66.0:1.66.0 +proto-google-cloud-dataplex-v1:1.66.0:1.66.0 +grpc-google-cloud-dataplex-v1:1.66.0:1.66.0 +google-cloud-dataproc-metastore:2.69.0:2.69.0 +grpc-google-cloud-dataproc-metastore-v1beta:0.73.0:0.73.0 +grpc-google-cloud-dataproc-metastore-v1alpha:0.73.0:0.73.0 +grpc-google-cloud-dataproc-metastore-v1:2.69.0:2.69.0 +proto-google-cloud-dataproc-metastore-v1beta:0.73.0:0.73.0 +proto-google-cloud-dataproc-metastore-v1alpha:0.73.0:0.73.0 +proto-google-cloud-dataproc-metastore-v1:2.69.0:2.69.0 +google-cloud-dataproc:4.65.0:4.65.0 +grpc-google-cloud-dataproc-v1:4.65.0:4.65.0 +proto-google-cloud-dataproc-v1:4.65.0:4.65.0 +google-cloud-datastream:1.67.0:1.67.0 +grpc-google-cloud-datastream-v1alpha1:0.72.0:0.72.0 +proto-google-cloud-datastream-v1alpha1:0.72.0:0.72.0 +proto-google-cloud-datastream-v1:1.67.0:1.67.0 +grpc-google-cloud-datastream-v1:1.67.0:1.67.0 +proto-google-devtools-source-protos:1.68.0:1.68.0 +google-cloud-deploy:1.66.0:1.66.0 +grpc-google-cloud-deploy-v1:1.66.0:1.66.0 +proto-google-cloud-deploy-v1:1.66.0:1.66.0 +google-cloud-dialogflow-cx:0.79.0:0.79.0 +grpc-google-cloud-dialogflow-cx-v3beta1:0.79.0:0.79.0 +grpc-google-cloud-dialogflow-cx-v3:0.79.0:0.79.0 +proto-google-cloud-dialogflow-cx-v3beta1:0.79.0:0.79.0 +proto-google-cloud-dialogflow-cx-v3:0.79.0:0.79.0 +google-cloud-dialogflow:4.74.0:4.74.0 +grpc-google-cloud-dialogflow-v2beta1:0.172.0:0.172.0 +grpc-google-cloud-dialogflow-v2:4.74.0:4.74.0 +proto-google-cloud-dialogflow-v2:4.74.0:4.74.0 +proto-google-cloud-dialogflow-v2beta1:0.172.0:0.172.0 +google-cloud-discoveryengine:0.64.0:0.64.0 +proto-google-cloud-discoveryengine-v1beta:0.64.0:0.64.0 +grpc-google-cloud-discoveryengine-v1beta:0.64.0:0.64.0 +google-cloud-distributedcloudedge:0.65.0:0.65.0 +proto-google-cloud-distributedcloudedge-v1:0.65.0:0.65.0 +grpc-google-cloud-distributedcloudedge-v1:0.65.0:0.65.0 +google-cloud-dlp:3.72.0:3.72.0 +grpc-google-cloud-dlp-v2:3.72.0:3.72.0 +proto-google-cloud-dlp-v2:3.72.0:3.72.0 +google-cloud-dms:2.67.0:2.67.0 +grpc-google-cloud-dms-v1:2.67.0:2.67.0 +proto-google-cloud-dms-v1:2.67.0:2.67.0 +google-cloud-document-ai:2.72.0:2.72.0 +grpc-google-cloud-document-ai-v1beta3:0.84.0:0.84.0 +grpc-google-cloud-document-ai-v1:2.72.0:2.72.0 +proto-google-cloud-document-ai-v1beta3:0.84.0:0.84.0 +proto-google-cloud-document-ai-v1:2.72.0:2.72.0 +google-cloud-domains:1.65.0:1.65.0 +grpc-google-cloud-domains-v1beta1:0.73.0:0.73.0 +grpc-google-cloud-domains-v1alpha2:0.73.0:0.73.0 +grpc-google-cloud-domains-v1:1.65.0:1.65.0 +proto-google-cloud-domains-v1beta1:0.73.0:0.73.0 +proto-google-cloud-domains-v1alpha2:0.73.0:0.73.0 +proto-google-cloud-domains-v1:1.65.0:1.65.0 +google-cloud-enterpriseknowledgegraph:0.64.0:0.64.0 +proto-google-cloud-enterpriseknowledgegraph-v1:0.64.0:0.64.0 +grpc-google-cloud-enterpriseknowledgegraph-v1:0.64.0:0.64.0 +google-cloud-errorreporting:0.189.0-beta:0.189.0-beta +grpc-google-cloud-error-reporting-v1beta1:0.155.0:0.155.0 +proto-google-cloud-error-reporting-v1beta1:0.155.0:0.155.0 +google-cloud-essential-contacts:2.68.0:2.68.0 +grpc-google-cloud-essential-contacts-v1:2.68.0:2.68.0 +proto-google-cloud-essential-contacts-v1:2.68.0:2.68.0 +google-cloud-eventarc:1.68.0:1.68.0 +grpc-google-cloud-eventarc-v1:1.68.0:1.68.0 +proto-google-cloud-eventarc-v1:1.68.0:1.68.0 +google-cloud-eventarc-publishing:0.68.0:0.68.0 +proto-google-cloud-eventarc-publishing-v1:0.68.0:0.68.0 +grpc-google-cloud-eventarc-publishing-v1:0.68.0:0.68.0 +google-cloud-filestore:1.69.0:1.69.0 +grpc-google-cloud-filestore-v1beta1:0.71.0:0.71.0 +grpc-google-cloud-filestore-v1:1.69.0:1.69.0 +proto-google-cloud-filestore-v1:1.69.0:1.69.0 +proto-google-cloud-filestore-v1beta1:0.71.0:0.71.0 +google-cloud-functions:2.70.0:2.70.0 +grpc-google-cloud-functions-v1:2.70.0:2.70.0 +proto-google-cloud-functions-v1:2.70.0:2.70.0 +proto-google-cloud-functions-v2beta:2.70.0:2.70.0 +proto-google-cloud-functions-v2alpha:2.70.0:2.70.0 +grpc-google-cloud-functions-v2beta:2.70.0:2.70.0 +grpc-google-cloud-functions-v2alpha:2.70.0:2.70.0 +proto-google-cloud-functions-v2:2.70.0:2.70.0 +grpc-google-cloud-functions-v2:2.70.0:2.70.0 +google-cloud-game-servers:2.68.0:2.68.0 +grpc-google-cloud-game-servers-v1:2.68.0:2.68.0 +grpc-google-cloud-game-servers-v1beta:0.93.0:0.93.0 +proto-google-cloud-game-servers-v1:2.68.0:2.68.0 +proto-google-cloud-game-servers-v1beta:0.93.0:0.93.0 +google-cloud-gke-backup:0.67.0:0.67.0 +proto-google-cloud-gke-backup-v1:0.67.0:0.67.0 +grpc-google-cloud-gke-backup-v1:0.67.0:0.67.0 +google-cloud-gke-connect-gateway:0.69.0:0.69.0 +proto-google-cloud-gke-connect-gateway-v1beta1:0.69.0:0.69.0 +google-cloud-gkehub:1.68.0:1.68.0 +grpc-google-cloud-gkehub-v1beta1:0.74.0:0.74.0 +grpc-google-cloud-gkehub-v1:1.68.0:1.68.0 +grpc-google-cloud-gkehub-v1alpha:0.74.0:0.74.0 +grpc-google-cloud-gkehub-v1beta:0.74.0:0.74.0 +proto-google-cloud-gkehub-v1beta1:0.74.0:0.74.0 +proto-google-cloud-gkehub-v1:1.68.0:1.68.0 +proto-google-cloud-gkehub-v1alpha:0.74.0:0.74.0 +proto-google-cloud-gkehub-v1beta:0.74.0:0.74.0 +google-cloud-gke-multi-cloud:0.67.0:0.67.0 +proto-google-cloud-gke-multi-cloud-v1:0.67.0:0.67.0 +grpc-google-cloud-gke-multi-cloud-v1:0.67.0:0.67.0 +grafeas:2.69.0:2.69.0 +google-cloud-gsuite-addons:2.68.0:2.68.0 +grpc-google-cloud-gsuite-addons-v1:2.68.0:2.68.0 +proto-google-cloud-gsuite-addons-v1:2.68.0:2.68.0 +proto-google-apps-script-type-protos:2.68.0:2.68.0 +google-iam-admin:3.63.0:3.63.0 +grpc-google-iam-admin-v1:3.63.0:3.63.0 +proto-google-iam-admin-v1:3.63.0:3.63.0 +google-cloud-iamcredentials:2.68.0:2.68.0 +grpc-google-cloud-iamcredentials-v1:2.68.0:2.68.0 +proto-google-cloud-iamcredentials-v1:2.68.0:2.68.0 +google-cloud-ids:1.67.0:1.67.0 +grpc-google-cloud-ids-v1:1.67.0:1.67.0 +proto-google-cloud-ids-v1:1.67.0:1.67.0 +google-cloud-iot:2.68.0:2.68.0 +grpc-google-cloud-iot-v1:2.68.0:2.68.0 +proto-google-cloud-iot-v1:2.68.0:2.68.0 +google-cloud-kms:2.71.0:2.71.0 +grpc-google-cloud-kms-v1:0.162.0:0.162.0 +proto-google-cloud-kms-v1:0.162.0:0.162.0 +google-cloud-language:2.69.0:2.69.0 +grpc-google-cloud-language-v1:2.69.0:2.69.0 +grpc-google-cloud-language-v1beta2:0.156.0:0.156.0 +proto-google-cloud-language-v1:2.69.0:2.69.0 +proto-google-cloud-language-v1beta2:0.156.0:0.156.0 +google-cloud-life-sciences:0.70.0:0.70.0 +grpc-google-cloud-life-sciences-v2beta:0.70.0:0.70.0 +proto-google-cloud-life-sciences-v2beta:0.70.0:0.70.0 +google-cloud-managed-identities:1.66.0:1.66.0 +grpc-google-cloud-managed-identities-v1:1.66.0:1.66.0 +proto-google-cloud-managed-identities-v1:1.66.0:1.66.0 +google-cloud-mediatranslation:0.74.0:0.74.0 +grpc-google-cloud-mediatranslation-v1beta1:0.74.0:0.74.0 +proto-google-cloud-mediatranslation-v1beta1:0.74.0:0.74.0 +google-cloud-memcache:2.68.0:2.68.0 +grpc-google-cloud-memcache-v1beta2:0.75.0:0.75.0 +grpc-google-cloud-memcache-v1:2.68.0:2.68.0 +proto-google-cloud-memcache-v1beta2:0.75.0:0.75.0 +proto-google-cloud-memcache-v1:2.68.0:2.68.0 +google-cloud-monitoring-dashboard:2.70.0:2.70.0 +grpc-google-cloud-monitoring-dashboard-v1:2.70.0:2.70.0 +proto-google-cloud-monitoring-dashboard-v1:2.70.0:2.70.0 +google-cloud-monitoring:3.69.0:3.69.0 +grpc-google-cloud-monitoring-v3:3.69.0:3.69.0 +proto-google-cloud-monitoring-v3:3.69.0:3.69.0 +google-cloud-networkconnectivity:1.67.0:1.67.0 +grpc-google-cloud-networkconnectivity-v1alpha1:0.73.0:0.73.0 +grpc-google-cloud-networkconnectivity-v1:1.67.0:1.67.0 +proto-google-cloud-networkconnectivity-v1alpha1:0.73.0:0.73.0 +proto-google-cloud-networkconnectivity-v1:1.67.0:1.67.0 +google-cloud-network-management:1.69.0:1.69.0 +grpc-google-cloud-network-management-v1beta1:0.71.0:0.71.0 +grpc-google-cloud-network-management-v1:1.69.0:1.69.0 +proto-google-cloud-network-management-v1beta1:0.71.0:0.71.0 +proto-google-cloud-network-management-v1:1.69.0:1.69.0 +google-cloud-network-security:0.71.0:0.71.0 +grpc-google-cloud-network-security-v1beta1:0.71.0:0.71.0 +proto-google-cloud-network-security-v1beta1:0.71.0:0.71.0 +proto-google-cloud-network-security-v1:0.71.0:0.71.0 +grpc-google-cloud-network-security-v1:0.71.0:0.71.0 +google-cloud-notebooks:1.66.0:1.66.0 +grpc-google-cloud-notebooks-v1beta1:0.73.0:0.73.0 +grpc-google-cloud-notebooks-v1:1.66.0:1.66.0 +proto-google-cloud-notebooks-v1beta1:0.73.0:0.73.0 +proto-google-cloud-notebooks-v1:1.66.0:1.66.0 +google-cloud-notification:0.186.0-beta:0.186.0-beta +google-cloud-optimization:1.66.0:1.66.0 +proto-google-cloud-optimization-v1:1.66.0:1.66.0 +grpc-google-cloud-optimization-v1:1.66.0:1.66.0 +google-cloud-orchestration-airflow:1.68.0:1.68.0 +grpc-google-cloud-orchestration-airflow-v1:1.68.0:1.68.0 +grpc-google-cloud-orchestration-airflow-v1beta1:0.71.0:0.71.0 +proto-google-cloud-orchestration-airflow-v1:1.68.0:1.68.0 +proto-google-cloud-orchestration-airflow-v1beta1:0.71.0:0.71.0 +google-cloud-orgpolicy:2.68.0:2.68.0 +grpc-google-cloud-orgpolicy-v2:2.68.0:2.68.0 +proto-google-cloud-orgpolicy-v1:2.68.0:2.68.0 +proto-google-cloud-orgpolicy-v2:2.68.0:2.68.0 +google-cloud-os-config:2.70.0:2.70.0 +grpc-google-cloud-os-config-v1:2.70.0:2.70.0 +grpc-google-cloud-os-config-v1beta:2.70.0:2.70.0 +grpc-google-cloud-os-config-v1alpha:2.70.0:2.70.0 +proto-google-cloud-os-config-v1:2.70.0:2.70.0 +proto-google-cloud-os-config-v1alpha:2.70.0:2.70.0 +proto-google-cloud-os-config-v1beta:2.70.0:2.70.0 +google-cloud-os-login:2.67.0:2.67.0 +grpc-google-cloud-os-login-v1:2.67.0:2.67.0 +proto-google-cloud-os-login-v1:2.67.0:2.67.0 +google-cloud-phishingprotection:0.99.0:0.99.0 +grpc-google-cloud-phishingprotection-v1beta1:0.99.0:0.99.0 +proto-google-cloud-phishingprotection-v1beta1:0.99.0:0.99.0 +google-cloud-policy-troubleshooter:1.67.0:1.67.0 +grpc-google-cloud-policy-troubleshooter-v1:1.67.0:1.67.0 +proto-google-cloud-policy-troubleshooter-v1:1.67.0:1.67.0 +google-cloud-private-catalog:0.70.0:0.70.0 +grpc-google-cloud-private-catalog-v1beta1:0.70.0:0.70.0 +proto-google-cloud-private-catalog-v1beta1:0.70.0:0.70.0 +google-cloud-profiler:2.68.0:2.68.0 +grpc-google-cloud-profiler-v2:2.68.0:2.68.0 +proto-google-cloud-profiler-v2:2.68.0:2.68.0 +google-cloud-publicca:0.65.0:0.65.0 +proto-google-cloud-publicca-v1beta1:0.65.0:0.65.0 +grpc-google-cloud-publicca-v1beta1:0.65.0:0.65.0 +google-cloud-recaptchaenterprise:3.65.0:3.65.0 +grpc-google-cloud-recaptchaenterprise-v1:3.65.0:3.65.0 +grpc-google-cloud-recaptchaenterprise-v1beta1:0.107.0:0.107.0 +proto-google-cloud-recaptchaenterprise-v1:3.65.0:3.65.0 +proto-google-cloud-recaptchaenterprise-v1beta1:0.107.0:0.107.0 +google-cloud-recommendations-ai:0.75.0:0.75.0 +grpc-google-cloud-recommendations-ai-v1beta1:0.75.0:0.75.0 +proto-google-cloud-recommendations-ai-v1beta1:0.75.0:0.75.0 +google-cloud-recommender:2.70.0:2.70.0 +grpc-google-cloud-recommender-v1:2.70.0:2.70.0 +grpc-google-cloud-recommender-v1beta1:0.82.0:0.82.0 +proto-google-cloud-recommender-v1:2.70.0:2.70.0 +proto-google-cloud-recommender-v1beta1:0.82.0:0.82.0 +google-cloud-redis:2.71.0:2.71.0 +grpc-google-cloud-redis-v1beta1:0.159.0:0.159.0 +grpc-google-cloud-redis-v1:2.71.0:2.71.0 +proto-google-cloud-redis-v1:2.71.0:2.71.0 +proto-google-cloud-redis-v1beta1:0.159.0:0.159.0 +google-cloud-resourcemanager:1.70.0:1.70.0 +grpc-google-cloud-resourcemanager-v3:1.70.0:1.70.0 +proto-google-cloud-resourcemanager-v3:1.70.0:1.70.0 +google-cloud-retail:2.70.0:2.70.0 +grpc-google-cloud-retail-v2:2.70.0:2.70.0 +proto-google-cloud-retail-v2:2.70.0:2.70.0 +proto-google-cloud-retail-v2alpha:2.70.0:2.70.0 +proto-google-cloud-retail-v2beta:2.70.0:2.70.0 +grpc-google-cloud-retail-v2alpha:2.70.0:2.70.0 +grpc-google-cloud-retail-v2beta:2.70.0:2.70.0 +google-cloud-run:0.68.0:0.68.0 +proto-google-cloud-run-v2:0.68.0:0.68.0 +grpc-google-cloud-run-v2:0.68.0:0.68.0 +google-cloud-scheduler:2.68.0:2.68.0 +grpc-google-cloud-scheduler-v1beta1:0.153.0:0.153.0 +grpc-google-cloud-scheduler-v1:2.68.0:2.68.0 +proto-google-cloud-scheduler-v1beta1:0.153.0:0.153.0 +proto-google-cloud-scheduler-v1:2.68.0:2.68.0 +google-cloud-secretmanager:2.68.0:2.68.0 +grpc-google-cloud-secretmanager-v1:2.68.0:2.68.0 +proto-google-cloud-secretmanager-v1:2.68.0:2.68.0 +google-cloud-securitycenter:2.76.0:2.76.0 +grpc-google-cloud-securitycenter-v1:2.76.0:2.76.0 +grpc-google-cloud-securitycenter-v1beta1:0.171.0:0.171.0 +grpc-google-cloud-securitycenter-v1p1beta1:0.171.0:0.171.0 +proto-google-cloud-securitycenter-v1:2.76.0:2.76.0 +proto-google-cloud-securitycenter-v1beta1:0.171.0:0.171.0 +proto-google-cloud-securitycenter-v1p1beta1:0.171.0:0.171.0 +google-cloud-securitycenter-settings:0.71.0:0.71.0 +grpc-google-cloud-securitycenter-settings-v1beta1:0.71.0:0.71.0 +proto-google-cloud-securitycenter-settings-v1beta1:0.71.0:0.71.0 +google-cloud-security-private-ca:2.70.0:2.70.0 +grpc-google-cloud-security-private-ca-v1beta1:0.77.0:0.77.0 +grpc-google-cloud-security-private-ca-v1:2.70.0:2.70.0 +proto-google-cloud-security-private-ca-v1beta1:0.77.0:0.77.0 +proto-google-cloud-security-private-ca-v1:2.70.0:2.70.0 +google-cloud-service-control:1.68.0:1.68.0 +grpc-google-cloud-service-control-v1:1.68.0:1.68.0 +proto-google-cloud-service-control-v1:1.68.0:1.68.0 +proto-google-cloud-service-control-v2:1.68.0:1.68.0 +grpc-google-cloud-service-control-v2:1.68.0:1.68.0 +google-cloud-servicedirectory:2.69.0:2.69.0 +grpc-google-cloud-servicedirectory-v1beta1:0.77.0:0.77.0 +grpc-google-cloud-servicedirectory-v1:2.69.0:2.69.0 +proto-google-cloud-servicedirectory-v1beta1:0.77.0:0.77.0 +proto-google-cloud-servicedirectory-v1:2.69.0:2.69.0 +google-cloud-service-management:3.66.0:3.66.0 +grpc-google-cloud-service-management-v1:3.66.0:3.66.0 +proto-google-cloud-service-management-v1:3.66.0:3.66.0 +google-cloud-service-usage:2.68.0:2.68.0 +grpc-google-cloud-service-usage-v1beta1:0.72.0:0.72.0 +grpc-google-cloud-service-usage-v1:2.68.0:2.68.0 +proto-google-cloud-service-usage-v1:2.68.0:2.68.0 +proto-google-cloud-service-usage-v1beta1:0.72.0:0.72.0 +google-cloud-shell:2.67.0:2.67.0 +grpc-google-cloud-shell-v1:2.67.0:2.67.0 +proto-google-cloud-shell-v1:2.67.0:2.67.0 +google-cloud-speech:4.63.0:4.63.0 +grpc-google-cloud-speech-v1:4.63.0:4.63.0 +grpc-google-cloud-speech-v1p1beta1:2.63.0:2.63.0 +proto-google-cloud-speech-v1:4.63.0:4.63.0 +proto-google-cloud-speech-v1p1beta1:2.63.0:2.63.0 +proto-google-cloud-speech-v2:4.63.0:4.63.0 +grpc-google-cloud-speech-v2:4.63.0:4.63.0 +google-cloud-storage-transfer:1.68.0:1.68.0 +grpc-google-cloud-storage-transfer-v1:1.68.0:1.68.0 +proto-google-cloud-storage-transfer-v1:1.68.0:1.68.0 +google-cloud-talent:2.69.0:2.69.0 +grpc-google-cloud-talent-v4:2.69.0:2.69.0 +grpc-google-cloud-talent-v4beta1:0.112.0:0.112.0 +proto-google-cloud-talent-v4:2.69.0:2.69.0 +proto-google-cloud-talent-v4beta1:0.112.0:0.112.0 +google-cloud-tasks:2.68.0:2.68.0 +grpc-google-cloud-tasks-v2beta3:0.158.0:0.158.0 +grpc-google-cloud-tasks-v2beta2:0.158.0:0.158.0 +grpc-google-cloud-tasks-v2:2.68.0:2.68.0 +proto-google-cloud-tasks-v2beta3:0.158.0:0.158.0 +proto-google-cloud-tasks-v2beta2:0.158.0:0.158.0 +proto-google-cloud-tasks-v2:2.68.0:2.68.0 +google-cloud-texttospeech:2.69.0:2.69.0 +grpc-google-cloud-texttospeech-v1beta1:0.158.0:0.158.0 +grpc-google-cloud-texttospeech-v1:2.69.0:2.69.0 +proto-google-cloud-texttospeech-v1:2.69.0:2.69.0 +proto-google-cloud-texttospeech-v1beta1:0.158.0:0.158.0 +google-cloud-tpu:2.69.0:2.69.0 +grpc-google-cloud-tpu-v1:2.69.0:2.69.0 +grpc-google-cloud-tpu-v2alpha1:2.69.0:2.69.0 +proto-google-cloud-tpu-v1:2.69.0:2.69.0 +proto-google-cloud-tpu-v2alpha1:2.69.0:2.69.0 +google-cloud-trace:2.68.0:2.68.0 +grpc-google-cloud-trace-v1:2.68.0:2.68.0 +grpc-google-cloud-trace-v2:2.68.0:2.68.0 +proto-google-cloud-trace-v1:2.68.0:2.68.0 +proto-google-cloud-trace-v2:2.68.0:2.68.0 +google-cloud-translate:2.68.0:2.68.0 +grpc-google-cloud-translate-v3beta1:0.150.0:0.150.0 +grpc-google-cloud-translate-v3:2.68.0:2.68.0 +proto-google-cloud-translate-v3beta1:0.150.0:0.150.0 +proto-google-cloud-translate-v3:2.68.0:2.68.0 +google-cloud-video-intelligence:2.67.0:2.67.0 +grpc-google-cloud-video-intelligence-v1p1beta1:0.157.0:0.157.0 +grpc-google-cloud-video-intelligence-v1beta2:0.157.0:0.157.0 +grpc-google-cloud-video-intelligence-v1:2.67.0:2.67.0 +grpc-google-cloud-video-intelligence-v1p2beta1:0.157.0:0.157.0 +grpc-google-cloud-video-intelligence-v1p3beta1:0.157.0:0.157.0 +proto-google-cloud-video-intelligence-v1p3beta1:0.157.0:0.157.0 +proto-google-cloud-video-intelligence-v1beta2:0.157.0:0.157.0 +proto-google-cloud-video-intelligence-v1p1beta1:0.157.0:0.157.0 +proto-google-cloud-video-intelligence-v1:2.67.0:2.67.0 +proto-google-cloud-video-intelligence-v1p2beta1:0.157.0:0.157.0 +google-cloud-live-stream:0.70.0:0.70.0 +proto-google-cloud-live-stream-v1:0.70.0:0.70.0 +grpc-google-cloud-live-stream-v1:0.70.0:0.70.0 +google-cloud-video-stitcher:0.68.0:0.68.0 +proto-google-cloud-video-stitcher-v1:0.68.0:0.68.0 +grpc-google-cloud-video-stitcher-v1:0.68.0:0.68.0 +google-cloud-video-transcoder:1.67.0:1.67.0 +grpc-google-cloud-video-transcoder-v1:1.67.0:1.67.0 +proto-google-cloud-video-transcoder-v1:1.67.0:1.67.0 +google-cloud-vision:3.66.0:3.66.0 +grpc-google-cloud-vision-v1p3beta1:0.155.0:0.155.0 +grpc-google-cloud-vision-v1p1beta1:0.155.0:0.155.0 +grpc-google-cloud-vision-v1p4beta1:0.155.0:0.155.0 +grpc-google-cloud-vision-v1p2beta1:3.66.0:3.66.0 +grpc-google-cloud-vision-v1:3.66.0:3.66.0 +proto-google-cloud-vision-v1p4beta1:0.155.0:0.155.0 +proto-google-cloud-vision-v1:3.66.0:3.66.0 +proto-google-cloud-vision-v1p1beta1:0.155.0:0.155.0 +proto-google-cloud-vision-v1p3beta1:0.155.0:0.155.0 +proto-google-cloud-vision-v1p2beta1:3.66.0:3.66.0 +google-cloud-vmmigration:1.68.0:1.68.0 +grpc-google-cloud-vmmigration-v1:1.68.0:1.68.0 +proto-google-cloud-vmmigration-v1:1.68.0:1.68.0 +google-cloud-vpcaccess:2.69.0:2.69.0 +grpc-google-cloud-vpcaccess-v1:2.69.0:2.69.0 +proto-google-cloud-vpcaccess-v1:2.69.0:2.69.0 +google-cloud-webrisk:2.67.0:2.67.0 +grpc-google-cloud-webrisk-v1:2.67.0:2.67.0 +grpc-google-cloud-webrisk-v1beta1:0.104.0:0.104.0 +proto-google-cloud-webrisk-v1:2.67.0:2.67.0 +proto-google-cloud-webrisk-v1beta1:0.104.0:0.104.0 +google-cloud-websecurityscanner:2.68.0:2.68.0 +grpc-google-cloud-websecurityscanner-v1alpha:0.155.0:0.155.0 +grpc-google-cloud-websecurityscanner-v1beta:0.155.0:0.155.0 +grpc-google-cloud-websecurityscanner-v1:2.68.0:2.68.0 +proto-google-cloud-websecurityscanner-v1alpha:0.155.0:0.155.0 +proto-google-cloud-websecurityscanner-v1beta:0.155.0:0.155.0 +proto-google-cloud-websecurityscanner-v1:2.68.0:2.68.0 +google-cloud-workflow-executions:2.68.0:2.68.0 +grpc-google-cloud-workflow-executions-v1beta:0.72.0:0.72.0 +grpc-google-cloud-workflow-executions-v1:2.68.0:2.68.0 +proto-google-cloud-workflow-executions-v1beta:0.72.0:0.72.0 +proto-google-cloud-workflow-executions-v1:2.68.0:2.68.0 +google-cloud-workflows:2.68.0:2.68.0 +grpc-google-cloud-workflows-v1beta:0.74.0:0.74.0 +grpc-google-cloud-workflows-v1:2.68.0:2.68.0 +proto-google-cloud-workflows-v1beta:0.74.0:0.74.0 +proto-google-cloud-workflows-v1:2.68.0:2.68.0 +google-cloud-dns:2.66.0:2.66.0 +google-maps-routing:1.53.0:1.53.0 +proto-google-maps-routing-v2:1.53.0:1.53.0 +grpc-google-maps-routing-v2:1.53.0:1.53.0 +google-cloud-vmwareengine:0.62.0:0.62.0 +proto-google-cloud-vmwareengine-v1:0.62.0:0.62.0 +grpc-google-cloud-vmwareengine-v1:0.62.0:0.62.0 +google-maps-addressvalidation:0.62.0:0.62.0 +proto-google-maps-addressvalidation-v1:0.62.0:0.62.0 +grpc-google-maps-addressvalidation-v1:0.62.0:0.62.0 +proto-google-cloud-bigquerydatapolicy-v1:0.65.0:0.65.0 +grpc-google-cloud-bigquerydatapolicy-v1:0.65.0:0.65.0 +google-cloud-monitoring-metricsscope:0.62.0:0.62.0 +proto-google-cloud-monitoring-metricsscope-v1:0.62.0:0.62.0 +grpc-google-cloud-monitoring-metricsscope-v1:0.62.0:0.62.0 +proto-google-cloud-tpu-v2:2.69.0:2.69.0 +grpc-google-cloud-tpu-v2:2.69.0:2.69.0 +google-cloud-datalineage:0.60.0:0.60.0 +proto-google-cloud-datalineage-v1:0.60.0:0.60.0 +grpc-google-cloud-datalineage-v1:0.60.0:0.60.0 +google-iam-policy:1.66.0:1.66.0 +proto-google-cloud-build-v2:3.70.0:3.70.0 +grpc-google-cloud-build-v2:3.70.0:3.70.0 +google-cloud-advisorynotifications:0.57.0:0.57.0 +proto-google-cloud-advisorynotifications-v1:0.57.0:0.57.0 +grpc-google-cloud-advisorynotifications-v1:0.57.0:0.57.0 +google-maps-mapsplatformdatasets:0.57.0:0.57.0 +google-cloud-kmsinventory:0.57.0:0.57.0 +proto-google-cloud-kmsinventory-v1:0.57.0:0.57.0 +grpc-google-cloud-kmsinventory-v1:0.57.0:0.57.0 +google-cloud-alloydb:0.57.0:0.57.0 +proto-google-cloud-alloydb-v1:0.57.0:0.57.0 +proto-google-cloud-alloydb-v1beta:0.57.0:0.57.0 +proto-google-cloud-alloydb-v1alpha:0.57.0:0.57.0 +grpc-google-cloud-alloydb-v1beta:0.57.0:0.57.0 +grpc-google-cloud-alloydb-v1:0.57.0:0.57.0 +grpc-google-cloud-alloydb-v1alpha:0.57.0:0.57.0 +google-cloud-biglake:0.56.0:0.56.0 +proto-google-cloud-biglake-v1alpha1:0.56.0:0.56.0 +grpc-google-cloud-biglake-v1alpha1:0.56.0:0.56.0 +google-cloud-workstations:0.56.0:0.56.0 +proto-google-cloud-workstations-v1beta:0.56.0:0.56.0 +grpc-google-cloud-workstations-v1beta:0.56.0:0.56.0 +google-cloud-confidentialcomputing:0.54.0:0.54.0 +proto-google-cloud-confidentialcomputing-v1:0.54.0:0.54.0 +proto-google-cloud-confidentialcomputing-v1alpha1:0.54.0:0.54.0 +grpc-google-cloud-confidentialcomputing-v1:0.54.0:0.54.0 +grpc-google-cloud-confidentialcomputing-v1alpha1:0.54.0:0.54.0 +proto-google-cloud-workstations-v1:0.56.0:0.56.0 +grpc-google-cloud-workstations-v1:0.56.0:0.56.0 +proto-google-cloud-biglake-v1:0.56.0:0.56.0 +grpc-google-cloud-biglake-v1:0.56.0:0.56.0 +google-cloud-storageinsights:0.53.0:0.53.0 +proto-google-cloud-storageinsights-v1:0.53.0:0.53.0 +grpc-google-cloud-storageinsights-v1:0.53.0:0.53.0 +google-cloud-cloudsupport:0.52.0:0.52.0 +proto-google-cloud-cloudsupport-v2:0.52.0:0.52.0 +grpc-google-cloud-cloudsupport-v2:0.52.0:0.52.0 +google-cloud-rapidmigrationassessment:0.51.0:0.51.0 +proto-google-cloud-rapidmigrationassessment-v1:0.51.0:0.51.0 +grpc-google-cloud-rapidmigrationassessment-v1:0.51.0:0.51.0 +proto-google-maps-mapsplatformdatasets-v1:0.57.0:0.57.0 +grpc-google-maps-mapsplatformdatasets-v1:0.57.0:0.57.0 +google-shopping-merchant-accounts:0.24.0:0.24.0 +proto-google-shopping-merchant-accounts-v1beta:0.24.0:0.24.0 +grpc-google-shopping-merchant-accounts-v1beta:0.24.0:0.24.0 +proto-google-cloud-discoveryengine-v1:0.64.0:0.64.0 +grpc-google-cloud-discoveryengine-v1:0.64.0:0.64.0 +google-cloud-migrationcenter:0.50.0:0.50.0 +proto-google-cloud-migrationcenter-v1:0.50.0:0.50.0 +grpc-google-cloud-migrationcenter-v1:0.50.0:0.50.0 +google-cloud-policysimulator:0.47.0:0.47.0 +proto-google-cloud-policysimulator-v1:0.47.0:0.47.0 +grpc-google-cloud-policysimulator-v1:0.47.0:0.47.0 +google-cloud-netapp:0.47.0:0.47.0 +proto-google-cloud-netapp-v1beta1:0.47.0:0.47.0 +grpc-google-cloud-netapp-v1beta1:0.47.0:0.47.0 +proto-google-cloud-netapp-v1:0.47.0:0.47.0 +grpc-google-cloud-netapp-v1:0.47.0:0.47.0 +proto-google-cloud-cloudcommerceconsumerprocurement-v1:0.66.0:0.66.0 +grpc-google-cloud-cloudcommerceconsumerprocurement-v1:0.66.0:0.66.0 +google-cloud-java-alloydb-connectors:0.46.0:0.46.0 +proto-google-cloud-java-alloydb-connectors-v1alpha:0.46.0:0.46.0 +google-cloud-alloydb-connectors:0.46.0:0.46.0 +proto-google-cloud-alloydb-connectors-v1alpha:0.46.0:0.46.0 +proto-google-cloud-language-v2:2.69.0:2.69.0 +grpc-google-cloud-language-v2:2.69.0:2.69.0 +google-cloud-infra-manager:0.45.0:0.45.0 +proto-google-cloud-infra-manager-v1:0.45.0:0.45.0 +grpc-google-cloud-infra-manager-v1:0.45.0:0.45.0 +proto-google-cloud-notebooks-v2:1.66.0:1.66.0 +grpc-google-cloud-notebooks-v2:1.66.0:1.66.0 +proto-google-cloud-alloydb-connectors-v1beta:0.46.0:0.46.0 +google-shopping-merchant-inventories:0.44.0:0.44.0 +proto-google-shopping-merchant-inventories-v1beta:0.44.0:0.44.0 +grpc-google-shopping-merchant-inventories-v1beta:0.44.0:0.44.0 +proto-google-cloud-policy-troubleshooter-v3:1.67.0:1.67.0 +grpc-google-cloud-policy-troubleshooter-v3:1.67.0:1.67.0 +google-shopping-merchant-reports:0.44.0:0.44.0 +proto-google-shopping-merchant-reports-v1beta:0.44.0:0.44.0 +grpc-google-shopping-merchant-reports-v1beta:0.44.0:0.44.0 +proto-google-cloud-alloydb-connectors-v1:0.46.0:0.46.0 +proto-google-cloud-discoveryengine-v1alpha:0.64.0:0.64.0 +grpc-google-cloud-discoveryengine-v1alpha:0.64.0:0.64.0 +google-cloud-redis-cluster:0.40.0:0.40.0 +proto-google-cloud-redis-cluster-v1beta1:0.40.0:0.40.0 +proto-google-cloud-redis-cluster-v1:0.40.0:0.40.0 +grpc-google-cloud-redis-cluster-v1:0.40.0:0.40.0 +grpc-google-cloud-redis-cluster-v1beta1:0.40.0:0.40.0 +google-maps-places:0.39.0:0.39.0 +proto-google-maps-places-v1:0.39.0:0.39.0 +grpc-google-maps-places-v1:0.39.0:0.39.0 +google-cloud-telcoautomation:0.38.0:0.38.0 +proto-google-cloud-telcoautomation-v1:0.38.0:0.38.0 +proto-google-cloud-telcoautomation-v1alpha1:0.38.0:0.38.0 +grpc-google-cloud-telcoautomation-v1:0.38.0:0.38.0 +grpc-google-cloud-telcoautomation-v1alpha1:0.38.0:0.38.0 +google-cloud-securesourcemanager:0.38.0:0.38.0 +proto-google-cloud-securesourcemanager-v1:0.38.0:0.38.0 +grpc-google-cloud-securesourcemanager-v1:0.38.0:0.38.0 +google-cloud-vertexai:1.28.0:1.28.0 +proto-google-cloud-vertexai-v1:1.28.0:1.28.0 +proto-google-cloud-vertexai-v1beta1:1.28.0:1.28.0 +grpc-google-cloud-vertexai-v1:1.28.0:1.28.0 +grpc-google-cloud-vertexai-v1beta1:1.28.0:1.28.0 +google-cloud-edgenetwork:0.36.0:0.36.0 +proto-google-cloud-edgenetwork-v1:0.36.0:0.36.0 +grpc-google-cloud-edgenetwork-v1:0.36.0:0.36.0 +google-cloud-cloudquotas:0.36.0:0.36.0 +proto-google-cloud-cloudquotas-v1:0.36.0:0.36.0 +grpc-google-cloud-cloudquotas-v1:0.36.0:0.36.0 +google-cloud-securitycentermanagement:0.36.0:0.36.0 +proto-google-cloud-securitycentermanagement-v1:0.36.0:0.36.0 +grpc-google-cloud-securitycentermanagement-v1:0.36.0:0.36.0 +google-shopping-css:0.36.0:0.36.0 +proto-google-shopping-css-v1:0.36.0:0.36.0 +grpc-google-shopping-css-v1:0.36.0:0.36.0 +google-cloud-meet:0.35.0:0.35.0 +proto-google-cloud-meet-v2beta:0.35.0:0.35.0 +grpc-google-cloud-meet-v2beta:0.35.0:0.35.0 +google-cloud-servicehealth:0.35.0:0.35.0 +proto-google-cloud-servicehealth-v1:0.35.0:0.35.0 +grpc-google-cloud-servicehealth-v1:0.35.0:0.35.0 +proto-google-cloud-meet-v2:0.35.0:0.35.0 +grpc-google-cloud-meet-v2:0.35.0:0.35.0 +google-cloud-securityposture:0.33.0:0.33.0 +proto-google-cloud-securityposture-v1:0.33.0:0.33.0 +grpc-google-cloud-securityposture-v1:0.33.0:0.33.0 +proto-google-cloud-securitycenter-v2:2.76.0:2.76.0 +grpc-google-cloud-securitycenter-v2:2.76.0:2.76.0 +google-cloud-cloudcontrolspartner:0.32.0:0.32.0 +proto-google-cloud-cloudcontrolspartner-v1beta:0.32.0:0.32.0 +proto-google-cloud-cloudcontrolspartner-v1:0.32.0:0.32.0 +grpc-google-cloud-cloudcontrolspartner-v1:0.32.0:0.32.0 +grpc-google-cloud-cloudcontrolspartner-v1beta:0.32.0:0.32.0 +google-cloud-workspaceevents:0.32.0:0.32.0 +proto-google-cloud-workspaceevents-v1:0.32.0:0.32.0 +grpc-google-cloud-workspaceevents-v1:0.32.0:0.32.0 +google-cloud-apphub:0.32.0:0.32.0 +proto-google-cloud-apphub-v1:0.32.0:0.32.0 +grpc-google-cloud-apphub-v1:0.32.0:0.32.0 +google-cloud-chat:0.32.0:0.32.0 +proto-google-cloud-chat-v1:0.32.0:0.32.0 +grpc-google-cloud-chat-v1:0.32.0:0.32.0 +google-shopping-merchant-quota:0.31.0:0.31.0 +proto-google-shopping-merchant-quota-v1beta:0.31.0:0.31.0 +grpc-google-shopping-merchant-quota-v1beta:0.31.0:0.31.0 +proto-google-cloud-secretmanager-v1beta2:2.68.0:2.68.0 +grpc-google-cloud-secretmanager-v1beta2:2.68.0:2.68.0 +google-cloud-parallelstore:0.31.0:0.31.0 +proto-google-cloud-parallelstore-v1beta:0.31.0:0.31.0 +grpc-google-cloud-parallelstore-v1beta:0.31.0:0.31.0 +google-cloud-backupdr:0.27.0:0.27.0 +proto-google-cloud-backupdr-v1:0.27.0:0.27.0 +grpc-google-cloud-backupdr-v1:0.27.0:0.27.0 +google-maps-solar:0.27.0:0.27.0 +proto-google-maps-solar-v1:0.27.0:0.27.0 +grpc-google-maps-solar-v1:0.27.0:0.27.0 +google-shopping-merchant-datasources:0.24.0:0.24.0 +proto-google-shopping-merchant-datasources-v1beta:0.24.0:0.24.0 +grpc-google-shopping-merchant-datasources-v1beta:0.24.0:0.24.0 +google-shopping-merchant-conversions:0.27.0:0.27.0 +proto-google-shopping-merchant-conversions-v1beta:0.27.0:0.27.0 +grpc-google-shopping-merchant-conversions-v1beta:0.27.0:0.27.0 +google-shopping-merchant-lfp:0.27.0:0.27.0 +proto-google-shopping-merchant-lfp-v1beta:0.27.0:0.27.0 +grpc-google-shopping-merchant-lfp-v1beta:0.27.0:0.27.0 +google-shopping-merchant-notifications:0.27.0:0.27.0 +proto-google-shopping-merchant-notifications-v1beta:0.27.0:0.27.0 +grpc-google-shopping-merchant-notifications-v1beta:0.27.0:0.27.0 +ad-manager:0.27.0:0.27.0 +proto-ad-manager-v1:0.27.0:0.27.0 +google-maps-routeoptimization:0.26.0:0.26.0 +proto-google-maps-routeoptimization-v1:0.26.0:0.26.0 +grpc-google-maps-routeoptimization-v1:0.26.0:0.26.0 +proto-google-cloud-publicca-v1:0.65.0:0.65.0 +grpc-google-cloud-publicca-v1:0.65.0:0.65.0 +google-cloud-visionai:0.25.0:0.25.0 +proto-google-cloud-visionai-v1:0.25.0:0.25.0 +grpc-google-cloud-visionai-v1:0.25.0:0.25.0 +google-cloud-developerconnect:0.25.0:0.25.0 +proto-google-cloud-developerconnect-v1:0.25.0:0.25.0 +grpc-google-cloud-developerconnect-v1:0.25.0:0.25.0 +google-cloud-iap:0.24.0:0.24.0 +proto-google-cloud-iap-v1:0.24.0:0.24.0 +grpc-google-cloud-iap-v1:0.24.0:0.24.0 +google-cloud-managedkafka:0.24.0:0.24.0 +proto-google-cloud-managedkafka-v1:0.24.0:0.24.0 +grpc-google-cloud-managedkafka-v1:0.24.0:0.24.0 +google-cloud-networkservices:0.24.0:0.24.0 +proto-google-cloud-networkservices-v1:0.24.0:0.24.0 +grpc-google-cloud-networkservices-v1:0.24.0:0.24.0 +google-shopping-merchant-products:0.24.0:0.24.0 +proto-google-shopping-merchant-products-v1beta:0.24.0:0.24.0 +grpc-google-shopping-merchant-products-v1beta:0.24.0:0.24.0 +google-cloud-gdchardwaremanagement:0.23.0:0.23.0 +proto-google-cloud-gdchardwaremanagement-v1alpha:0.23.0:0.23.0 +grpc-google-cloud-gdchardwaremanagement-v1alpha:0.23.0:0.23.0 +google-cloud-privilegedaccessmanager:0.22.0:0.22.0 +proto-google-cloud-privilegedaccessmanager-v1:0.22.0:0.22.0 +grpc-google-cloud-privilegedaccessmanager-v1:0.22.0:0.22.0 +google-cloud-apihub:0.21.0:0.21.0 +proto-google-cloud-apihub-v1:0.21.0:0.21.0 +grpc-google-cloud-apihub-v1:0.21.0:0.21.0 +google-cloud-connectgateway:0.20.0:0.20.0 +proto-google-cloud-connectgateway-v1:0.20.0:0.20.0 +google-maps-area-insights:0.19.0:0.19.0 +proto-google-maps-area-insights-v1:0.19.0:0.19.0 +grpc-google-maps-area-insights-v1:0.19.0:0.19.0 +admin:0.17.0:0.17.0 +proto-admin-v1alpha:0.17.0:0.17.0 +grpc-admin-v1alpha:0.17.0:0.17.0 +google-cloud-oracledatabase:0.17.0:0.17.0 +proto-google-cloud-oracledatabase-v1:0.17.0:0.17.0 +proto-google-cloud-parallelstore-v1:0.31.0:0.31.0 +grpc-google-cloud-parallelstore-v1:0.31.0:0.31.0 +google-maps-fleetengine:0.15.0:0.15.0 +proto-google-maps-fleetengine-v1:0.15.0:0.15.0 +grpc-google-maps-fleetengine-v1:0.15.0:0.15.0 +google-maps-fleetengine-delivery:0.15.0:0.15.0 +proto-google-maps-fleetengine-delivery-v1:0.15.0:0.15.0 +grpc-google-maps-fleetengine-delivery-v1:0.15.0:0.15.0 +google-shopping-merchant-reviews:0.14.0:0.14.0 +proto-google-shopping-merchant-reviews-v1beta:0.14.0:0.14.0 +grpc-google-shopping-merchant-reviews-v1beta:0.14.0:0.14.0 +google-cloud-valkey:0.14.0:0.14.0 +proto-google-cloud-valkey-v1:0.14.0:0.14.0 +proto-google-cloud-valkey-v1beta:0.14.0:0.14.0 +proto-google-cloud-cloudquotas-v1beta:0.36.0:0.36.0 +grpc-google-cloud-cloudquotas-v1beta:0.36.0:0.36.0 +proto-google-cloud-secretmanager-v1beta1:2.68.0:2.68.0 +grpc-google-cloud-secretmanager-v1beta1:2.68.0:2.68.0 +google-cloud-parametermanager:0.12.0:0.12.0 +proto-google-cloud-parametermanager-v1:0.12.0:0.12.0 +grpc-google-cloud-parametermanager-v1:0.12.0:0.12.0 +google-cloud-modelarmor:0.9.0:0.9.0 +proto-google-cloud-modelarmor-v1:0.9.0:0.9.0 +grpc-google-cloud-modelarmor-v1:0.9.0:0.9.0 +google-cloud-financialservices:0.9.0:0.9.0 +proto-google-cloud-financialservices-v1:0.9.0:0.9.0 +grpc-google-cloud-financialservices-v1:0.9.0:0.9.0 +google-cloud-devicestreaming:0.8.0:0.8.0 +proto-google-cloud-devicestreaming-v1:0.8.0:0.8.0 +grpc-google-cloud-devicestreaming-v1:0.8.0:0.8.0 +google-shopping-merchant-productstudio:0.8.0:0.8.0 +proto-google-shopping-merchant-productstudio-v1alpha:0.8.0:0.8.0 +grpc-google-shopping-merchant-productstudio-v1alpha:0.8.0:0.8.0 +google-cloud-storagebatchoperations:0.8.0:0.8.0 +proto-google-cloud-storagebatchoperations-v1:0.8.0:0.8.0 +grpc-google-cloud-storagebatchoperations-v1:0.8.0:0.8.0 +google-shopping-merchant-issue-resolution:0.8.0:0.8.0 +proto-google-shopping-merchant-issue-resolution-v1beta:0.8.0:0.8.0 +grpc-google-shopping-merchant-issue-resolution-v1beta:0.8.0:0.8.0 +google-cloud-lustre:0.8.0:0.8.0 +proto-google-cloud-lustre-v1:0.8.0:0.8.0 +grpc-google-cloud-lustre-v1:0.8.0:0.8.0 +google-shopping-merchant-order-tracking:0.8.0:0.8.0 +proto-google-shopping-merchant-order-tracking-v1beta:0.8.0:0.8.0 +grpc-google-shopping-merchant-order-tracking-v1beta:0.8.0:0.8.0 +grpc-google-cloud-oracledatabase-v1:0.17.0:0.17.0 +google-cloud-chronicle:0.6.0:0.6.0 +proto-google-cloud-chronicle-v1:0.6.0:0.6.0 +grpc-google-cloud-chronicle-v1:0.6.0:0.6.0 +proto-google-cloud-cloudsupport-v2beta:0.52.0:0.52.0 +grpc-google-cloud-cloudsupport-v2beta:0.52.0:0.52.0 +proto-google-cloud-modelarmor-v1beta:0.9.0:0.9.0 +grpc-google-cloud-modelarmor-v1beta:0.9.0:0.9.0 +proto-google-cloud-dataform-v1:0.67.0:0.67.0 +grpc-google-cloud-dataform-v1:0.67.0:0.67.0 +google-cloud-spanneradapter:0.4.0:0.4.0 +proto-google-cloud-spanneradapter-v1:0.4.0:0.4.0 +grpc-google-cloud-spanneradapter-v1:0.4.0:0.4.0 +proto-google-cloud-workspaceevents-v1beta:0.32.0:0.32.0 +grpc-google-cloud-workspaceevents-v1beta:0.32.0:0.32.0 +google-cloud-maintenance:0.2.0:0.2.0 +proto-google-cloud-maintenance-v1beta:0.2.0:0.2.0 +grpc-google-cloud-maintenance-v1beta:0.2.0:0.2.0 +google-cloud-configdelivery:0.2.0:0.2.0 +proto-google-cloud-configdelivery-v1beta:0.2.0:0.2.0 +grpc-google-cloud-configdelivery-v1beta:0.2.0:0.2.0 +proto-google-cloud-bigquerydatapolicy-v2beta1:0.65.0:0.65.0 +grpc-google-cloud-bigquerydatapolicy-v2beta1:0.65.0:0.65.0 +google-cloud-licensemanager:0.1.0:0.1.0 +proto-google-cloud-licensemanager-v1:0.1.0:0.1.0 +grpc-google-cloud-licensemanager-v1:0.1.0:0.1.0 +proto-google-shopping-merchant-reports-v1alpha:0.44.0:0.44.0 +grpc-google-shopping-merchant-reports-v1alpha:0.44.0:0.44.0